{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/monaco-editor/esm/vs/base/common/platform.js","webpack:///./node_modules/node-libs-browser/mock/process.js","webpack:///./node_modules/monaco-editor/esm/vs/language/typescript/lib/typescriptServices.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/process.js","webpack:///(webpack)/buildin/global.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/errors.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/functional.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/iterator.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/lifecycle.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/linkedList.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/stopwatch.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/event.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/types.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/strings.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/worker/simpleWorker.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/diff/diffChange.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/hash.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/diff/diff.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/path.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/uri.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/core/position.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/core/range.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/diff/diffComputer.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/uint.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/viewModel/prefixSumComputer.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/model/mirrorTextModel.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/model/wordHelper.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/core/characterClassifier.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/modes/linkComputer.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/modes/supports/inplaceReplaceSupport.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/cancellation.js","webpack:///./node_modules/monaco-editor/esm/vs/base/common/keyCodes.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneEnums.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/core/selection.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/core/token.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/standalone/standaloneBase.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/common/services/editorSimpleWorker.js","webpack:///./node_modules/monaco-editor/esm/vs/editor/editor.worker.js","webpack:///./node_modules/monaco-editor/esm/vs/language/typescript/lib/lib.js","webpack:///./node_modules/monaco-editor/esm/vs/language/typescript/tsWorker.js","webpack:///./node_modules/monaco-editor/esm/vs/language/typescript/ts.worker.js","webpack:///(webpack)/buildin/harmony-module.js","webpack:///./node_modules/path-browserify/index.js"],"names":["installedModules","__webpack_require__","moduleId","exports","module","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","prototype","hasOwnProperty","p","s","_a","LANGUAGE_DEFAULT","_isWindows","_isMacintosh","_isLinux","_isLinuxSnap","_isNative","_isWeb","_isIOS","_locale","undefined","_language","_translationsConfigFile","_userAgent","globals","self","global","nodeProcess","vscode","process","isElectronRenderer","versions","electron","type","navigator","platform","env","rawNlsConfig","nlsConfig","JSON","parse","resolved","availableLanguages","locale","e","console","error","userAgent","indexOf","maxTouchPoints","language","_platform","isWindows","isMacintosh","isWeb","setImmediate","postMessage","importScripts","pending","addEventListener","data","vscodeSetImmediateId","len","length","candidate","id","splice","callback","lastId","myId","push","nextTick","_promise","Promise","resolve","then","fn","args","Array","slice","arguments","shift","setTimeout","apply","arch","execPath","title","pid","browser","argv","binding","Error","path","cwd","chdir","dir","exit","kill","umask","dlopen","uptime","memoryUsage","uvCounters","features","__spreadArray","to","from","pack","ar","concat","__assign","assign","this","__makeTemplateObject","cooked","raw","__generator","thisArg","body","f","y","g","_","label","sent","trys","ops","next","verb","iterator","v","step","op","TypeError","done","pop","__rest","getOwnPropertySymbols","propertyIsEnumerable","__extends","extendStatics","b","setPrototypeOf","__proto__","String","__","constructor","ts","createMapData","sentinel","prev","head","tail","size","createMapEntry","sameValueZero","x","getPrev","entry","getNext","skipNext","getEntry","addOrUpdateEntry","existing","deleteEntry","clearEntries","node","forEachEntry","action","forEachIteration","createIteratorData","selector","current","iteratorNext","ShimCollections","createMapShim","getIterator","MapIterator","_data","Map","iterable","_this","_mapData","set","configurable","has","delete","clear","keys","_value","values","_key","entries","forEach","createSetShim","SetIterator","Set","add","versionMajorMinor","version","Comparison","NativeCollections","tryGetNativeMap","tryGetNativeSet","getCollectionImplementation","nativeFactory","shimFactory","isArray","arrayIterator","createMap","createMapFromTemplate","template","map","array","result","forEachRight","firstDefined","firstDefinedIterator","iter","iterResult","reduceLeftIterator","initial","pos","zipWith","arrayA","arrayB","Debug","assertEqual","zipToIterator","zipToMap","assert","intersperse","input","element","every","find","predicate","findLast","findIndex","startIndex","findLastIndex","findMap","fail","contains","equalityComparer","equateValues","_i","array_1","arraysEqual","a","indexOfAnyCharCode","text","charCodes","start","charCodeAt","countWhere","count","filter","item","filterMutate","outIndex","mapIterator","mapFn","iterRes","sameMap","mapped","flatten","array_2","addRange","flatMap","mapfn","append","emptyArray","flatMapToMutable","flatMapIterator","first","emptyIterator","currentIter","currentRes","res","sameFlatMap","mapAllOrFail","mapDefined","mapDefinedIterator","mapDefinedEntries","newKey","newValue","mapDefinedValues","result_1","getOrUpdate","tryAddToSet","singleIterator","wasDone","spanMap","keyfn","previousKey","mapEntries","some","array_3","getRangesWhere","arr","pred","cb","concatenate","array1","array2","selectIndex","indicesOf","deduplicateRelational","comparer","indices","stableSortIndices","last","deduplicated","index","sort","deduplicateEquality","array_4","pushIfUnique","deduplicate","deduplicateSorted","insertSorted","insert","compare","insertIndex","binarySearch","identity","sortAndDeduplicate","compareStringsCaseSensitive","arrayIsSorted","prevElement","arrayIsEqualTo","compact","relativeComplement","loopB","offsetA","offsetB","assertGreaterThanOrEqual","loopA","startA","sum","prop","array_5","combine","xs","ys","toOffset","offset","end","toAdd","appendIfUnique","compareValues","arrayReverseIterator","stableSort","rangeEquals","elementAt","firstOrUndefined","lastOrUndefined","singleOrUndefined","singleOrMany","replaceElement","keySelector","keyComparer","binarySearchKey","low","high","middle","midKey","reduceLeft","emptyMap","emptySet","hasProperty","getProperty","getOwnKeys","getAllKeys","obj","names","getOwnPropertyNames","names_1","getPrototypeOf","getOwnValues","sparseArray","_entries","getEntries","arrayOf","arrayFrom","args_1","arg","equalOwnProperties","left","right","arrayToMap","makeKey","makeValue","array_6","arrayToNumericMap","array_7","arrayToMultiMap","createMultiMap","values_1","group","getGroupId","resultSelector","clone","extend","second","copyProperties","maybeBind","multiMapAdd","remove","multiMapRemove","unorderedRemoveItem","createUnderscoreEscapedMultiMap","toArray","isString","isNumber","tryCast","test","cast","getFunctionName","noop","returnFalse","returnTrue","returnUndefined","toLowerCase","fileNameLowerCaseRegExp","toFileNameLowerCase","replace","notImplemented","memoize","memoizeOne","compose","args_2","u","equateStringsCaseInsensitive","toUpperCase","equateStringsCaseSensitive","compareComparableValues","compareTextSpans","min","compareStringsCaseInsensitive","getStringComparer","ignoreCase","AssertionLevel","uiComparerCaseSensitive","uiLocale","createUIStringComparer","defaultComparer","enUSComparer","stringComparerFactory","getStringComparerFactory","createStringComparer","compareWithCallback","createIntlCollatorStringComparer","Intl","Collator","usage","sensitivity","createLocaleCompareStringComparer","createFallbackStringComparer","compareStrings","localeCompare","compareDictionaryOrder","toLocaleUpperCase","getUILocale","setUILocale","compareStringsCaseSensitiveUI","compareProperties","compareBooleans","getSpellingSuggestion","candidates","getName","bestCandidate","maximumLengthDifference","Math","floor","bestDistance","candidates_1","candidateName","abs","distance","levenshteinWithMax","s1","s2","max","previous","big","c1","minJ","ceil","maxJ","colMin","j","substitutionDistance","dist","temp","endsWith","str","suffix","expectedPos","removeSuffix","tryRemoveSuffix","stringContains","substring","removeMinAndVersionNumbers","fileName","ch","orderedRemoveItem","orderedRemoveItemAt","unorderedRemoveItemAt","unorderedRemoveFirstItemWhere","createGetCanonicalFileName","useCaseSensitiveFileNames","patternText","prefix","matchedText","pattern","isPatternMatch","findBestPatternMatch","getPattern","matchedValue","longestMatchPrefixLength","values_2","startsWith","lastIndexOf","removePrefix","substr","tryRemovePrefix","getCanonicalFileName","and","or","fs","fs_1","not","assertType","singleElementArray","enumerateInsertsAndDeletes","newItems","oldItems","inserted","deleted","unchanged","newIndex","oldIndex","newLen","oldLen","hasChanges","newItem","oldItem","compareResult","fill","cartesianProduct","arrays","cartesianProductWorker","outer","inner","padLeft","padString","repeat","padRight","takeWhile","trimEndImpl","isWhiteSpaceLike","trimString","trim","trimStringEnd","trimStringStart","trimEnd","trimStart","LogLevel","typeScriptVersion","currentAssertionLevel","getTypeScriptVersion","Version","shouldLog","level","currentLogLevel","logMessage","loggingHost","log","Info","Warning","isDebugging","log_1","warn","trace","Verbose","assertionCache","getAssertionLevel","setAssertionLevel","prevAssertionLevel","cachedFunc","assertion","shouldAssert","shouldAssertFunction","message","stackCrawlMark","captureStackTrace","failBadSyntaxKind","formatSyntaxKind","kind","expression","verboseDebugInfo","msg","msg2","assertLessThan","assertLessThanOrEqual","assertIsDefined","checkDefined","assertEachIsDefined","value_1","checkEachDefined","assertNever","member","detail","stringify","assertEachNode","nodes","assertNode","assertNotNode","assertOptionalNode","assertOptionalToken","assertMissingNode","func","Function","toString","match","exec","formatSymbol","symbol","unescapeLeadingUnderscores","escapedName","formatSymbolFlags","flags","declarations","formatEnum","enumObject","isFlags","members","getEnumMembers","remainingFlags","members_1","enumValue","enumName","_b","members_2","_c","SyntaxKind","formatNodeFlags","NodeFlags","formatModifierFlags","ModifierFlags","formatTransformFlags","TransformFlags","formatEmitFlags","EmitFlags","SymbolFlags","formatTypeFlags","TypeFlags","formatSignatureFlags","SignatureFlags","formatObjectFlags","ObjectFlags","formatFlowFlags","FlowFlags","assertDefined","assertEachDefined","extendedDebugModule","flowNodeProto","nodeArrayProto","isDebugInfoEnabled","extendedDebug","enableDebugInfo","printControlFlowGraph","flowNode","formatControlFlowGraph","attachFlowNodeDebugInfoWorker","defineProperties","__tsDebuggerDisplay","flowHeader","__debugFlowFlags","__debugToString","attachFlowNodeDebugInfo","attachNodeArrayDebugInfoWorker","defaultValue","attachNodeArrayDebugInfo","weakTypeTextMap","weakNodeTextMap","objectAllocator","getSymbolConstructor","symbolHeader","remainingSymbolFlags","symbolName","__debugFlags","getTypeConstructor","typeHeader","negative","base10Value","intrinsicName","objectFlags","remainingObjectFlags","__debugObjectFlags","__debugTypeToString","getWeakTypeTextMap","checker","typeToString","getSignatureConstructor","__debugSignatureToString","signatureToString","nodeConstructors","getNodeConstructor","getIdentifierConstructor","getTokenConstructor","getSourceFileConstructor","nodeConstructors_1","ctor","nodeHeader","isGeneratedIdentifier","isIdentifier","idText","isPrivateIdentifier","isStringLiteral","isNumericLiteral","isBigIntLiteral","isTypeParameterDeclaration","isParameter","isConstructorDeclaration","isGetAccessorDeclaration","isSetAccessorDeclaration","isCallSignatureDeclaration","isConstructSignatureDeclaration","isIndexSignatureDeclaration","isTypePredicateNode","isTypeReferenceNode","isFunctionTypeNode","isConstructorTypeNode","isTypeQueryNode","isTypeLiteralNode","isArrayTypeNode","isTupleTypeNode","isOptionalTypeNode","isRestTypeNode","isUnionTypeNode","isIntersectionTypeNode","isConditionalTypeNode","isInferTypeNode","isParenthesizedTypeNode","isThisTypeNode","isTypeOperatorNode","isIndexedAccessTypeNode","isMappedTypeNode","isLiteralTypeNode","isNamedTupleMember","isImportTypeNode","__debugKind","__debugNodeFlags","__debugModifierFlags","getEffectiveModifierFlagsNoCache","__debugTransformFlags","transformFlags","__debugIsParseTreeNode","isParseTreeNode","__debugEmitFlags","getEmitFlags","__debugGetText","includeTrivia","nodeIsSynthesized","getWeakNodeTextMap","parseNode","getParseTreeNode","sourceFile","getSourceFileOfNode","getSourceTextOfNodeFromSourceFile","sys","require","getDirectoryPath","resolvePath","getExecutingFilePath","init","WeakMap","formatDeprecationMessage","errorAfter","since","deprecationMessage","formatStringFromArgs","createErrorDeprecation","createWarningDeprecation","hasWrittenDeprecation","createDeprecation","options","warnAfter","compareTo","wrapFunction","deprecation","deprecate","versionRegExp","prereleaseRegExp","buildRegExp","numericIdentifierRegExp","major","minor","patch","prerelease","build","tryParseComponents","split","tryParse","other","comparePrereleaseIdentifiers","increment","field","join","zero","_d","parseInt","leftIdentifier","rightIdentifier","leftIsNumeric","rightIsNumeric","VersionRange","spec","_alternatives","parseRange","sets","range","testDisjunction","formatDisjunction","logicalOrRegExp","whitespaceRegExp","partialRegExp","hyphenRegExp","rangeRegExp","alternatives","comparators","parseHyphen","simple","match_1","parseComparator","parsePartial","isWildcard","leftResult","rightResult","createComparator","operator","part","operand","alternatives_1","alternative","testAlternative","comparators_1","comparator","testComparator","cmp","formatAlternative","formatComparator","hasRequiredAPI","performance","PerformanceObserver","timeOrigin","mark","measure","now","tryGetWebPerformanceHooks","shouldWriteNativeEvents","tryGetNodePerformanceHooks","performance_1","nodePerformance_1","PerformanceObserver_1","version_1","clearMarks","nativePerformanceHooks","nativePerformance","tryGetNativePerformanceHooks","timestamp","Date","perfHooks","performanceImpl","createTimerIf","condition","measureName","startMarkName","endMarkName","createTimer","nullTimer","enterCount","enter","enabled","timeorigin","marks","counts","durations","markName","previousDuration","getCount","getDuration","forEachMeasure","duration","isEnabled","enable","system","cpuProfilingEnabled","debugMode","disable","etwModule","nullLogger","logEvent","logErrEvent","logPerfEvent","logInfoEvent","logStartCommand","logStopCommand","logStartUpdateProgram","logStopUpdateProgram","logStartUpdateGraph","logStopUpdateGraph","logStartResolveModule","logStopResolveModule","logStartParseSourceFile","logStopParseSourceFile","logStartReadFile","logStopReadFile","logStartBindFile","logStopBindFile","logStartScheduledOperation","logStopScheduledOperation","TS_ETW_MODULE_PATH","perfLogger","tracingEnabled","legendPath","traceCount","traceFd","typeCatalog","legend","startTracing","tracingMode","traceDir","configFilePath","tracing","combinePaths","existsSync","mkdirSync","recursive","countPart","tracePath","typesPath","openSync","meta","cat","ph","tid","writeSync","stopTracing","closeSync","dumpTypes","recordType","instant","phase","writeEvent","Phase","eventStack","separateBeginAndEnd","time","writeStackEvent","popAll","endTime","sampleInterval","eventType","extras","getLocation","file","indexFromOne","getLineAndCharacterOfPosition","lc","line","character","types","_e","_f","_g","_h","_j","_k","_l","_m","_o","_p","_q","_r","_s","_t","_u","_v","_w","_x","typesFd","recursionIdentityMap","numTypes","aliasSymbol","display","_y","indexedAccessProperties","indexedAccessType","indexedAccessObjectType","objectType","indexedAccessIndexType","indexType","referenceProperties","referenceType","instantiatedType","target","typeArguments","resolvedTypeArguments","referenceLocation","conditionalProperties","conditionalType","conditionalCheckType","checkType","conditionalExtendsType","extendsType","conditionalTrueType","resolvedTrueType","conditionalFalseType","resolvedFalseType","substitutionProperties","substitutionType","substitutionBaseType","baseType","substituteType","substitute","reverseMappedProperties","reverseMappedType","reverseMappedSourceType","source","reverseMappedMappedType","mappedType","reverseMappedConstraintType","constraintType","evolvingArrayProperties","evolvingArrayType","evolvingArrayElementType","elementType","evolvingArrayFinalType","finalArrayType","recursionToken","recursionIdentity","getRecursionIdentity","descriptor","recursionId","isTuple","unionTypes","intersectionTypes","aliasTypeArguments","keyofType","destructuringPattern","firstDeclaration","dumpLegend","writeFileSync","dumpTracingLegend","JsxFlags","RelationComparisonResult","GeneratedIdentifierFlags","TokenFlags","CommentDirectiveType","DiagnosticCategory","OperationCanceledException","diagnosticCategoryName","lowerCase","category","FileIncludeKind","FilePreprocessingDiagnosticsKind","StructureIsReused","ExitStatus","UnionReduction","ContextFlags","NodeBuilderFlags","TypeFormatFlags","SymbolFormatFlags","SymbolAccessibility","SyntheticSymbolKind","TypePredicateKind","TypeReferenceSerializationKind","EnumKind","CheckFlags","InternalSymbolName","NodeCheckFlags","VarianceFlags","ElementFlags","AccessFlags","JsxReferenceKind","SignatureKind","IndexKind","TypeMapKind","InferencePriority","InferenceFlags","Ternary","AssignmentDeclarationKind","ModuleResolutionKind","WatchFileKind","WatchDirectoryKind","PollingWatchKind","ModuleKind","JsxEmit","ImportsNotUsedAsValues","NewLineKind","ScriptKind","ScriptTarget","LanguageVariant","WatchDirectoryFlags","CharacterCodes","Extension","ExternalEmitHelpers","EmitHint","OuterExpressionKinds","LexicalEnvironmentFlags","BundleFileSectionKind","ListFormat","PragmaKindFlags","commentPragmas","optional","captureSpan","directorySeparator","altDirectorySeparator","urlSchemeSeparator","backslashRegExp","isAnyDirectorySeparator","charCode","isUrl","getEncodedRootLength","isRootedDiskPath","isDiskPathRoot","rootLength","pathIsAbsolute","pathIsRelative","pathIsBareSpecifier","hasExtension","getBaseFileName","fileExtensionIs","extension","fileExtensionIsOneOf","extensions","extensions_1","hasTrailingDirectorySeparator","isVolumeCharacter","getFileUrlVolumeSeparatorEnd","url","ch0","ch2","p1","schemeEnd","authorityStart","authorityEnd","scheme","authority","volumeSeparatorEnd","getRootLength","normalizeSlashes","removeTrailingDirectorySeparator","getAnyExtensionFromPath","tryGetExtensionFromPath","stringEqualityComparer","pathExtension","getAnyExtensionFromPathWorker","extensions_2","baseFileName","extensionIndex","pathComponents","root","rest","getPathComponents","currentDirectory","getPathFromPathComponents","ensureTrailingDirectorySeparator","lastIndex","reducePathComponents","components","reduced","component","paths","paths_1","relativePath","normalizePath","getNormalizedPathComponents","getNormalizedAbsolutePath","relativePathSegmentRegExp","simplified","normalized","getPathWithoutRoot","getNormalizedAbsolutePathWithoutRoot","toPath","basePath","nonCanonicalizedPath","normalizePathAndParts","parts","joinedParts","ensurePathIsNonModuleName","changeAnyExtension","ext","pathext","comparePathsWorker","componentComparer","aRoot","bRoot","aRest","bRest","aComponents","bComponents","sharedLength","result_2","comparePathsCaseSensitive","comparePathsCaseInsensitive","comparePaths","containsPath","parent","child","parentComponents","childComponents","componentEqualityComparer","startsWithDirectory","directoryName","canonicalFileName","canonicalDirectoryName","getPathComponentsRelativeTo","fromComponents","toComponents","fromComponent","toComponent","relative","getRelativePathFromDirectory","fromDirectory","getCanonicalFileNameOrIgnoreCase","convertToRelativePath","absoluteOrRelativePath","getRelativePathToDirectoryOrUrl","getRelativePathFromFile","directoryPathOrUrl","relativeOrAbsolutePath","isAbsolutePathAnUrl","firstComponent","charAt","forEachAncestorDirectory","directory","parentPath","isNodeModulesDirectory","dirPath","generateDjb2Hash","acc","setStackTraceLimit","stackTraceLimit","FileWatcherEventKind","PollingInterval","getModifiedTime","host","missingFileModifiedTime","createPollingIntervalBasedLevels","levels","Low","Medium","High","defaultChunkLevels","pollingChunkSize","setCustomPollingValues","getEnvironmentVariable","pollingIntervalChanged","setCustomLevels","getCustomPollingBasedLevels","unchangedPollThresholds","getLevel","envVar","getCustomLevels","baseVariable","customLevels","setCustomLevel","customLevel","Number","setLevel","defaultLevels","pollWatchedFileQueue","queue","pollIndex","chunkSize","callbackOnWatchFileStat","definedValueCopyToIndex","canVisit","nextPollIndex","watchedFile","isClosed","fileChanged","onWatchedFileStat","createDynamicPriorityPollingWatchFile","watchedFiles","changedFilesInLastPoll","lowPollingIntervalQueue","createPollingIntervalQueue","mediumPollingIntervalQueue","highPollingIntervalQueue","watchFile","defaultPollingInterval","unchangedPolls","mtime","addToPollingIntervalQueue","close","pollingInterval","pollScheduled","pollPollingIntervalQueue","pollQueue","scheduleNextPoll","pollLowPollingIntervalQueue","onWatchFileStat","addChangedFileToLowPollingIntervalQueue","pollingIntervalQueue","scheduleNextPollIfNotAlreadyScheduled","createUseFsEventsOnParentDirectoryWatchFile","fsWatch","fileWatcherCallbacks","dirWatchers","toCanonicalName","nonPollingWatchFile","_pollingInterval","fallbackOptions","filePath","watcher","createDirectoryWatcher","referenceCount","dirName","_eventName","relativeFileName","callbacks","callbacks_1","fileCallback","Changed","createFixedChunkSizePollingWatchFile","createSingleFileWatcherPerName","cache","callbacksCache","toCanonicalFileName","refCount","eventKind","closeFileWatcherOf","modifiedTime","oldTime","getTime","newTime","getFileWatcherEventKind","Created","Deleted","setSysLog","logger","sysLog","createDirectoryWatcherSupportingRecursive","timerToUpdateChildWatches","watchDirectory","getCurrentDirectory","getAccessibleSortedChildDirectories","directoryExists","realpath","clearTimeout","callbackCache","cacheToUpdateChildWatches","filePathComparer","toCanonicalFilePath","directoryWatcher","isIgnoredPath","synchronousWatchDirectory","invokeCallbacks","updateChildWatches","nonSyncUpdateChildWatches","childWatches","callbackToAdd","closeFileWatcher","fileNameOrInvokeMap","fileNames","invokeMap","rootDirName","parentWatcher","scheduleUpdateChildWatches","removeChildWatches","onTimerToUpdateChildWatches","elapsed","existingChildWatches","existingChildWatches_1","childWatcher","parentDir","parentDirPath","newChildWatches","childFullName","createAndAddChildDirectoryWatcher","addChildDirectoryWatcher","childName","ignoredPaths","searchPath","isInPath","isIgnoredByWatchOptions","createFileWatcherCallback","_fileName","createFsWatchCallbackForFileWatcherCallback","fileExists","eventName","pathToCheck","excludeDirectories","excludeFiles","matchesExclude","createFsWatchCallbackForDirectoryWatcherCallback","createSystemWatchFunctions","dynamicPollingWatchFile","fixedChunkSizePollingWatchFile","hostRecursiveDirectoryWatcher","pollingWatchFile","fsSupportsRecursiveFsWatch","tscWatchFile","useNonPollingWatchers","tscWatchDirectory","defaultWatchFileKind","updateOptionsForWatchFile","watchFileKind","FixedPollingInterval","PriorityPollingInterval","DynamicPriorityPolling","ensureDynamicPollingWatchFile","FixedChunkSizePolling","ensureFixedChunkSizePollingWatchFile","UseFsEvents","getFallbackOptions","UseFsEventsOnParentDirectory","generateWatchFileOptions","PriorityInterval","DynamicPriority","fallbackPolling","defaultFallbackPolling","nonRecursiveWatchDirectory","watchDirectoryOptions","updateOptionsForWatchDirectory","watchDirectoryKind","patchWriteFileEnsuringDirectory","originalWriteFile","writeFile","writeBom","writeFileEnsuringDirectories","writeByteOrderMark","createDirectory","getNodeMajorVersion","dot","FileSystemEntryKind","diag","code","reportsUnnecessary","elidedInCompatabilityPyramid","reportsDeprecated","Diagnostics","Unterminated_string_literal","Identifier_expected","_0_expected","A_file_cannot_have_a_reference_to_itself","The_parser_expected_to_find_a_to_match_the_token_here","Trailing_comma_not_allowed","Asterisk_Slash_expected","An_element_access_expression_should_take_an_argument","Unexpected_token","A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma","A_rest_parameter_must_be_last_in_a_parameter_list","Parameter_cannot_have_question_mark_and_initializer","A_required_parameter_cannot_follow_an_optional_parameter","An_index_signature_cannot_have_a_rest_parameter","An_index_signature_parameter_cannot_have_an_accessibility_modifier","An_index_signature_parameter_cannot_have_a_question_mark","An_index_signature_parameter_cannot_have_an_initializer","An_index_signature_must_have_a_type_annotation","An_index_signature_parameter_must_have_a_type_annotation","readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature","An_index_signature_cannot_have_a_trailing_comma","Accessibility_modifier_already_seen","_0_modifier_must_precede_1_modifier","_0_modifier_already_seen","_0_modifier_cannot_appear_on_class_elements_of_this_kind","super_must_be_followed_by_an_argument_list_or_member_access","Only_ambient_modules_can_use_quoted_names","Statements_are_not_allowed_in_ambient_contexts","A_declare_modifier_cannot_be_used_in_an_already_ambient_context","Initializers_are_not_allowed_in_ambient_contexts","_0_modifier_cannot_be_used_in_an_ambient_context","_0_modifier_cannot_be_used_with_a_class_declaration","_0_modifier_cannot_be_used_here","_0_modifier_cannot_appear_on_a_data_property","_0_modifier_cannot_appear_on_a_module_or_namespace_element","A_0_modifier_cannot_be_used_with_an_interface_declaration","Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier","A_rest_parameter_cannot_be_optional","A_rest_parameter_cannot_have_an_initializer","A_set_accessor_must_have_exactly_one_parameter","A_set_accessor_cannot_have_an_optional_parameter","A_set_accessor_parameter_cannot_have_an_initializer","A_set_accessor_cannot_have_rest_parameter","A_get_accessor_cannot_have_parameters","Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value","Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher","An_async_function_or_method_must_have_a_valid_awaitable_return_type","The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member","A_promise_must_have_a_then_method","The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback","Enum_member_must_have_initializer","Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method","An_export_assignment_cannot_be_used_in_a_namespace","The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0","In_ambient_enum_declarations_member_initializer_must_be_constant_expression","Unexpected_token_A_constructor_method_accessor_or_property_was_expected","Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces","_0_modifier_cannot_appear_on_a_type_member","_0_modifier_cannot_appear_on_an_index_signature","A_0_modifier_cannot_be_used_with_an_import_declaration","Invalid_reference_directive_syntax","Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0","_0_modifier_cannot_appear_on_a_constructor_declaration","_0_modifier_cannot_appear_on_a_parameter","Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement","Type_parameters_cannot_appear_on_a_constructor_declaration","Type_annotation_cannot_appear_on_a_constructor_declaration","An_accessor_cannot_have_type_parameters","A_set_accessor_cannot_have_a_return_type_annotation","An_index_signature_must_have_exactly_one_parameter","_0_list_cannot_be_empty","Type_parameter_list_cannot_be_empty","Type_argument_list_cannot_be_empty","Invalid_use_of_0_in_strict_mode","with_statements_are_not_allowed_in_strict_mode","delete_cannot_be_called_on_an_identifier_in_strict_mode","for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules","A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement","A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement","The_left_hand_side_of_a_for_of_statement_may_not_be_async","Jump_target_cannot_cross_function_boundary","A_return_statement_can_only_be_used_within_a_function_body","Expression_expected","Type_expected","A_default_clause_cannot_appear_more_than_once_in_a_switch_statement","Duplicate_label_0","A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement","A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement","An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode","An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name","An_object_literal_cannot_have_property_and_accessor_with_the_same_name","An_export_assignment_cannot_have_modifiers","Octal_literals_are_not_allowed_in_strict_mode","Variable_declaration_list_cannot_be_empty","Digit_expected","Hexadecimal_digit_expected","Unexpected_end_of_text","Invalid_character","Declaration_or_statement_expected","Statement_expected","case_or_default_expected","Property_or_signature_expected","Enum_member_expected","Variable_declaration_expected","Argument_expression_expected","Property_assignment_expected","Expression_or_comma_expected","Parameter_declaration_expected","Type_parameter_declaration_expected","Type_argument_expected","String_literal_expected","Line_break_not_permitted_here","or_expected","Declaration_expected","Import_declarations_in_a_namespace_cannot_reference_a_module","Cannot_use_imports_exports_or_module_augmentations_when_module_is_none","File_name_0_differs_from_already_included_file_name_1_only_in_casing","const_declarations_must_be_initialized","const_declarations_can_only_be_declared_inside_a_block","let_declarations_can_only_be_declared_inside_a_block","Unterminated_template_literal","Unterminated_regular_expression_literal","An_object_member_cannot_be_declared_optional","A_yield_expression_is_only_allowed_in_a_generator_body","Computed_property_names_are_not_allowed_in_enums","A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type","A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type","A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type","A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type","A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type","A_comma_expression_is_not_allowed_in_a_computed_property_name","extends_clause_already_seen","extends_clause_must_precede_implements_clause","Classes_can_only_extend_a_single_class","implements_clause_already_seen","Interface_declaration_cannot_have_implements_clause","Binary_digit_expected","Octal_digit_expected","Unexpected_token_expected","Property_destructuring_pattern_expected","Array_element_destructuring_pattern_expected","A_destructuring_declaration_must_have_an_initializer","An_implementation_cannot_be_declared_in_ambient_contexts","Modifiers_cannot_appear_here","Merge_conflict_marker_encountered","A_rest_element_cannot_have_an_initializer","A_parameter_property_may_not_be_declared_using_a_binding_pattern","Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement","The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer","The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer","An_import_declaration_cannot_have_modifiers","Module_0_has_no_default_export","An_export_declaration_cannot_have_modifiers","Export_declarations_are_not_permitted_in_a_namespace","export_Asterisk_does_not_re_export_a_default","Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified","Catch_clause_variable_cannot_have_an_initializer","An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive","Unterminated_Unicode_escape_sequence","Line_terminator_not_permitted_before_arrow","Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead","Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead","Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type","Decorators_are_not_valid_here","Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name","_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module","Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode","A_class_declaration_without_the_default_modifier_must_have_a_name","Identifier_expected_0_is_a_reserved_word_in_strict_mode","Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode","Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode","Invalid_use_of_0_Modules_are_automatically_in_strict_mode","Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules","Export_assignment_is_not_supported_when_module_flag_is_system","Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning","Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher","Generators_are_not_allowed_in_an_ambient_context","An_overload_signature_cannot_be_declared_as_a_generator","_0_tag_already_specified","Signature_0_must_be_a_type_predicate","Cannot_find_parameter_0","Type_predicate_0_is_not_assignable_to_1","Parameter_0_is_not_in_the_same_position_as_parameter_1","A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods","A_type_predicate_cannot_reference_a_rest_parameter","A_type_predicate_cannot_reference_element_0_in_a_binding_pattern","An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration","An_import_declaration_can_only_be_used_in_a_namespace_or_module","An_export_declaration_can_only_be_used_in_a_module","An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file","A_namespace_declaration_is_only_allowed_in_a_namespace_or_module","The_return_type_of_a_property_decorator_function_must_be_either_void_or_any","The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any","Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression","Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression","Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression","Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression","abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration","_0_modifier_cannot_be_used_with_1_modifier","Abstract_methods_can_only_appear_within_an_abstract_class","Method_0_cannot_have_an_implementation_because_it_is_marked_abstract","An_interface_property_cannot_have_an_initializer","A_type_literal_property_cannot_have_an_initializer","A_class_member_cannot_have_the_0_keyword","A_decorator_can_only_decorate_a_method_implementation_not_an_overload","Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5","Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode","Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode","_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag","A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference","A_definite_assignment_assertion_is_not_permitted_in_this_context","A_required_element_cannot_follow_an_optional_element","A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration","Module_0_can_only_be_default_imported_using_the_1_flag","Keywords_cannot_contain_escape_characters","Already_included_file_name_0_differs_from_file_name_1_only_in_casing","Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module","Declarations_with_initializers_cannot_also_have_definite_assignment_assertions","Declarations_with_definite_assignment_assertions_must_also_have_type_annotations","A_rest_element_cannot_follow_another_rest_element","An_optional_element_cannot_follow_a_rest_element","Property_0_cannot_have_an_initializer_because_it_is_marked_abstract","An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type","with_statements_are_not_allowed_in_an_async_function_block","await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules","Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern","The_body_of_an_if_statement_cannot_be_the_empty_statement","Global_module_exports_may_only_appear_in_module_files","Global_module_exports_may_only_appear_in_declaration_files","Global_module_exports_may_only_appear_at_top_level","A_parameter_property_cannot_be_declared_using_a_rest_parameter","An_abstract_accessor_cannot_have_an_implementation","A_default_export_can_only_be_used_in_an_ECMAScript_style_module","Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member","Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member","Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member","Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd","Dynamic_import_must_have_one_specifier_as_an_argument","Specifier_of_dynamic_import_cannot_be_spread_element","Dynamic_import_cannot_have_type_arguments","String_literal_with_double_quotes_expected","Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal","_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0","A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly","A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly","A_variable_whose_type_is_a_unique_symbol_type_must_be_const","unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name","unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement","unique_symbol_types_are_not_allowed_here","An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead","infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type","Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here","Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0","Type_arguments_cannot_be_used_here","The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system","A_label_is_not_allowed_here","An_expression_of_type_void_cannot_be_tested_for_truthiness","This_parameter_is_not_allowed_with_use_strict_directive","use_strict_directive_cannot_be_used_with_non_simple_parameter_list","Non_simple_parameter_declared_here","use_strict_directive_used_here","Print_the_final_configuration_instead_of_building","Message","An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal","A_bigint_literal_cannot_use_exponential_notation","A_bigint_literal_must_be_an_integer","readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types","A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals","Did_you_mean_to_mark_this_function_as_async","An_enum_member_name_must_be_followed_by_a_or","Tagged_template_expressions_are_not_permitted_in_an_optional_chain","Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here","Did_you_mean_to_parenthesize_this_function_type","_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type","_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type","A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both","Convert_to_type_only_export","Convert_all_re_exported_types_to_type_only_exports","Split_into_two_separate_import_declarations","Split_all_invalid_type_only_imports","Did_you_mean_0","This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error","Convert_to_type_only_import","Convert_all_imports_not_used_as_a_value_to_type_only_imports","await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module","_0_was_imported_here","_0_was_exported_here","Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher","An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type","An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type","Unexpected_token_Did_you_mean_or_rbrace","Unexpected_token_Did_you_mean_or_gt","Only_named_exports_may_use_export_type","A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list","Function_type_notation_must_be_parenthesized_when_used_in_a_union_type","Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type","Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type","Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type","_0_is_not_allowed_as_a_variable_declaration_name","Provides_a_root_package_name_when_using_outFile_with_declarations","The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit","An_import_alias_cannot_use_import_type","Imported_via_0_from_file_1","Imported_via_0_from_file_1_with_packageId_2","Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions","Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions","Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions","Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions","File_is_included_via_import_here","Referenced_via_0_from_file_1","File_is_included_via_reference_here","Type_library_referenced_via_0_from_file_1","Type_library_referenced_via_0_from_file_1_with_packageId_2","File_is_included_via_type_library_reference_here","Library_referenced_via_0_from_file_1","File_is_included_via_library_reference_here","Matched_by_include_pattern_0_in_1","File_is_matched_by_include_pattern_specified_here","Part_of_files_list_in_tsconfig_json","File_is_matched_by_files_list_specified_here","Output_from_referenced_project_0_included_because_1_specified","Output_from_referenced_project_0_included_because_module_is_specified_as_none","File_is_output_from_referenced_project_specified_here","Source_from_referenced_project_0_included_because_1_specified","Source_from_referenced_project_0_included_because_module_is_specified_as_none","File_is_source_from_referenced_project_specified_here","Entry_point_of_type_library_0_specified_in_compilerOptions","Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1","File_is_entry_point_of_type_library_specified_here","Entry_point_for_implicit_type_library_0","Entry_point_for_implicit_type_library_0_with_packageId_1","Library_0_specified_in_compilerOptions","File_is_library_specified_here","Default_library","Default_library_for_target_0","File_is_default_library_for_target_specified_here","Root_file_specified_for_compilation","File_is_output_of_project_reference_source_0","File_redirects_to_file_0","The_file_is_in_the_program_because_Colon","for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module","Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher","Decorators_may_not_be_applied_to_this_parameters","Unexpected_keyword_or_identifier","Unknown_keyword_or_identifier_Did_you_mean_0","Decorators_must_precede_the_name_and_all_keywords_of_property_declarations","Namespace_must_be_given_a_name","Interface_must_be_given_a_name","Type_alias_must_be_given_a_name","Variable_declaration_not_allowed_at_this_location","Cannot_start_a_function_call_in_a_type_annotation","Expected_for_property_initializer","Module_declaration_names_may_only_use_or_quoted_strings","The_types_of_0_are_incompatible_between_these_types","The_types_returned_by_0_are_incompatible_between_these_types","Call_signature_return_types_0_and_1_are_incompatible","Construct_signature_return_types_0_and_1_are_incompatible","Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1","Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1","Duplicate_identifier_0","Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor","Static_members_cannot_reference_class_type_parameters","Circular_definition_of_import_alias_0","Cannot_find_name_0","Module_0_has_no_exported_member_1","File_0_is_not_a_module","Cannot_find_module_0_or_its_corresponding_type_declarations","Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity","An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements","Type_0_recursively_references_itself_as_a_base_type","A_class_may_only_extend_another_class","An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members","Type_parameter_0_has_a_circular_constraint","Generic_type_0_requires_1_type_argument_s","Type_0_is_not_generic","Global_type_0_must_be_a_class_or_interface_type","Global_type_0_must_have_1_type_parameter_s","Cannot_find_global_type_0","Named_property_0_of_types_1_and_2_are_not_identical","Interface_0_cannot_simultaneously_extend_types_1_and_2","Excessive_stack_depth_comparing_types_0_and_1","Type_0_is_not_assignable_to_type_1","Cannot_redeclare_exported_variable_0","Property_0_is_missing_in_type_1","Property_0_is_private_in_type_1_but_not_in_type_2","Types_of_property_0_are_incompatible","Property_0_is_optional_in_type_1_but_required_in_type_2","Types_of_parameters_0_and_1_are_incompatible","Index_signature_for_type_0_is_missing_in_type_1","_0_and_1_index_signatures_are_incompatible","this_cannot_be_referenced_in_a_module_or_namespace_body","this_cannot_be_referenced_in_current_location","this_cannot_be_referenced_in_constructor_arguments","this_cannot_be_referenced_in_a_static_property_initializer","super_can_only_be_referenced_in_a_derived_class","super_cannot_be_referenced_in_constructor_arguments","Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors","super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class","Property_0_does_not_exist_on_type_1","Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword","Property_0_is_private_and_only_accessible_within_class_1","An_index_expression_argument_must_be_of_type_string_number_symbol_or_any","This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0","Type_0_does_not_satisfy_the_constraint_1","Argument_of_type_0_is_not_assignable_to_parameter_of_type_1","Call_target_does_not_contain_any_signatures","Untyped_function_calls_may_not_accept_type_arguments","Value_of_type_0_is_not_callable_Did_you_mean_to_include_new","This_expression_is_not_callable","Only_a_void_function_can_be_called_with_the_new_keyword","This_expression_is_not_constructable","Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first","Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1","This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found","A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value","An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type","The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access","The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter","The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type","The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol","The_right_hand_side_of_an_in_expression_must_not_be_a_primitive","The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type","The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type","The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access","Operator_0_cannot_be_applied_to_types_1_and_2","Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined","This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap","Type_parameter_name_cannot_be_0","A_parameter_property_is_only_allowed_in_a_constructor_implementation","A_rest_parameter_must_be_of_an_array_type","A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation","Parameter_0_cannot_reference_itself","Parameter_0_cannot_reference_identifier_1_declared_after_it","Duplicate_index_signature_for_type_0","A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers","Constructors_for_derived_classes_must_contain_a_super_call","A_get_accessor_must_return_a_value","The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type","A_signature_with_an_implementation_cannot_use_a_string_literal_type","Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature","Overload_signatures_must_all_be_exported_or_non_exported","Overload_signatures_must_all_be_ambient_or_non_ambient","Overload_signatures_must_all_be_public_private_or_protected","Overload_signatures_must_all_be_optional_or_required","Function_overload_must_be_static","Function_overload_must_not_be_static","Function_implementation_name_must_be_0","Constructor_implementation_is_missing","Function_implementation_is_missing_or_not_immediately_following_the_declaration","Multiple_constructor_implementations_are_not_allowed","Duplicate_function_implementation","This_overload_signature_is_not_compatible_with_its_implementation_signature","Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local","Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters","Declaration_name_conflicts_with_built_in_global_identifier_0","constructor_cannot_be_used_as_a_parameter_property_name","Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference","Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference","Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference","Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference","Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2","The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation","The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any","The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access","The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0","Setters_cannot_return_a_value","Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class","The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any","Property_0_of_type_1_is_not_assignable_to_2_index_type_3","_0_index_type_1_is_not_assignable_to_2_index_type_3","Class_name_cannot_be_0","Class_0_incorrectly_extends_base_class_1","Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2","Class_static_side_0_incorrectly_extends_base_class_static_side_1","Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1","Types_of_construct_signatures_are_incompatible","Class_0_incorrectly_implements_interface_1","A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members","Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor","Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function","Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function","Interface_name_cannot_be_0","All_declarations_of_0_must_have_identical_type_parameters","Interface_0_incorrectly_extends_interface_1","Enum_name_cannot_be_0","In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element","A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged","A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged","Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces","Ambient_module_declaration_cannot_specify_relative_module_name","Module_0_is_hidden_by_a_local_declaration_with_the_same_name","Import_name_cannot_be_0","Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name","Import_declaration_conflicts_with_local_declaration_of_0","Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module","Types_have_separate_declarations_of_a_private_property_0","Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2","Property_0_is_protected_in_type_1_but_public_in_type_2","Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses","Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2","The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead","Block_scoped_variable_0_used_before_its_declaration","Class_0_used_before_its_declaration","Enum_0_used_before_its_declaration","Cannot_redeclare_block_scoped_variable_0","An_enum_member_cannot_have_a_numeric_name","The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly","Variable_0_is_used_before_being_assigned","Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0","Type_alias_0_circularly_references_itself","Type_alias_name_cannot_be_0","An_AMD_module_cannot_have_multiple_name_assignments","Module_0_declares_1_locally_but_it_is_not_exported","Module_0_declares_1_locally_but_it_is_exported_as_2","Type_0_is_not_an_array_type","A_rest_element_must_be_last_in_a_destructuring_pattern","A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature","A_computed_property_name_must_be_of_type_string_number_symbol_or_any","this_cannot_be_referenced_in_a_computed_property_name","super_cannot_be_referenced_in_a_computed_property_name","A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type","Cannot_find_global_value_0","The_0_operator_cannot_be_applied_to_type_symbol","Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object","A_computed_property_name_of_the_form_0_must_be_of_type_symbol","Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher","Enum_declarations_must_all_be_const_or_non_const","const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values","const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query","A_const_enum_member_can_only_be_accessed_using_a_string_literal","const_enum_member_initializer_was_evaluated_to_a_non_finite_value","const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN","Property_0_does_not_exist_on_const_enum_1","let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations","Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1","The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation","Export_declaration_conflicts_with_exported_declaration_of_0","The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access","Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator","An_iterator_must_have_a_next_method","The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property","The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern","Cannot_redeclare_identifier_0_in_catch_clause","Tuple_type_0_of_length_1_has_no_element_at_index_2","Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher","Type_0_is_not_an_array_type_or_a_string_type","The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression","This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export","Module_0_uses_export_and_cannot_be_used_with_export_Asterisk","An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments","A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments","A_rest_element_cannot_contain_a_binding_pattern","_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation","Cannot_find_namespace_0","Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator","A_generator_cannot_have_a_void_type_annotation","_0_is_referenced_directly_or_indirectly_in_its_own_base_expression","Type_0_is_not_a_constructor_function_type","No_base_constructor_has_the_specified_number_of_type_arguments","Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members","Base_constructors_must_all_have_the_same_return_type","Cannot_create_an_instance_of_an_abstract_class","Overload_signatures_must_all_be_abstract_or_non_abstract","Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression","Classes_containing_abstract_methods_must_be_marked_abstract","Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2","All_declarations_of_an_abstract_method_must_be_consecutive","Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type","A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard","An_async_iterator_must_have_a_next_method","Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions","Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions","The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method","yield_expressions_cannot_be_used_in_a_parameter_initializer","await_expressions_cannot_be_used_in_a_parameter_initializer","Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value","A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface","The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary","A_module_cannot_have_multiple_default_exports","Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions","Property_0_is_incompatible_with_index_signature","Object_is_possibly_null","Object_is_possibly_undefined","Object_is_possibly_null_or_undefined","A_function_returning_never_cannot_have_a_reachable_end_point","Enum_type_0_has_members_with_initializers_that_are_not_literals","Type_0_cannot_be_used_to_index_type_1","Type_0_has_no_matching_index_signature_for_type_1","Type_0_cannot_be_used_as_an_index_type","Cannot_assign_to_0_because_it_is_not_a_variable","Cannot_assign_to_0_because_it_is_a_read_only_property","The_target_of_an_assignment_must_be_a_variable_or_a_property_access","Index_signature_in_type_0_only_permits_reading","Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference","Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference","A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any","The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property","Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator","Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator","Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later","Property_0_does_not_exist_on_type_1_Did_you_mean_2","Cannot_find_name_0_Did_you_mean_1","Computed_values_are_not_permitted_in_an_enum_with_string_valued_members","Expected_0_arguments_but_got_1","Expected_at_least_0_arguments_but_got_1","A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter","Expected_0_type_arguments_but_got_1","Type_0_has_no_properties_in_common_with_type_1","Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it","Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2","Base_class_expressions_cannot_reference_class_type_parameters","The_containing_function_or_module_body_is_too_large_for_control_flow_analysis","Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor","Property_0_is_used_before_being_assigned","A_rest_element_cannot_have_a_property_name","Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations","Property_0_may_not_exist_on_type_1_Did_you_mean_2","Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators","Could_not_find_name_0_Did_you_mean_1","Object_is_of_type_unknown","Rest_signatures_are_incompatible","Property_0_is_incompatible_with_rest_element_type","A_rest_element_type_must_be_an_array_type","No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments","Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead","Return_type_annotation_circularly_references_itself","Unused_ts_expect_error_directive","Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode","Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery","Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha","Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later","Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom","_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later","Enum_type_0_circularly_references_itself","JSDoc_type_0_circularly_references_itself","Cannot_assign_to_0_because_it_is_a_constant","Type_instantiation_is_excessively_deep_and_possibly_infinite","Expression_produces_a_union_type_that_is_too_complex_to_represent","Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig","Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig","Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig","This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag","_0_can_only_be_imported_by_using_a_default_import","_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import","_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import","_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import","JSX_element_attributes_type_0_may_not_be_a_union_type","The_return_type_of_a_JSX_element_constructor_must_return_an_object_type","JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist","Property_0_in_type_1_is_not_assignable_to_type_2","JSX_element_type_0_does_not_have_any_construct_or_call_signatures","JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements","Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property","JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property","The_global_type_JSX_0_may_not_have_more_than_one_property","JSX_spread_child_must_be_an_array_type","_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property","_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor","Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration","Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead","Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead","Type_of_property_0_circularly_references_itself_in_mapped_type_1","_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import","_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import","Source_has_0_element_s_but_target_requires_1","Source_has_0_element_s_but_target_allows_only_1","Target_requires_0_element_s_but_source_may_have_fewer","Target_allows_only_0_element_s_but_source_may_have_more","Source_provides_no_match_for_required_element_at_position_0_in_target","Source_provides_no_match_for_variadic_element_at_position_0_in_target","Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target","Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target","Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target","Cannot_assign_to_0_because_it_is_an_enum","Cannot_assign_to_0_because_it_is_a_class","Cannot_assign_to_0_because_it_is_a_function","Cannot_assign_to_0_because_it_is_a_namespace","Cannot_assign_to_0_because_it_is_an_import","JSX_property_access_expressions_cannot_include_JSX_namespace_names","_0_index_signatures_are_incompatible","Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity","A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums","Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead","Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1","Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition","Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition","JSX_expressions_must_have_one_parent_element","Type_0_provides_no_match_for_the_signature_1","super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher","super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions","Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module","Cannot_find_name_0_Did_you_mean_the_static_member_1_0","Cannot_find_name_0_Did_you_mean_the_instance_member_this_0","Invalid_module_name_in_augmentation_module_0_cannot_be_found","Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented","Exports_and_export_assignments_are_not_permitted_in_module_augmentations","Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module","export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible","Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations","Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context","Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity","Cannot_assign_a_0_constructor_type_to_a_1_constructor_type","Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration","Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration","Cannot_extend_a_class_0_Class_constructor_is_marked_as_private","Accessors_must_both_be_abstract_or_non_abstract","A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type","Type_0_is_not_comparable_to_type_1","A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void","A_0_parameter_must_be_the_first_parameter","A_constructor_cannot_have_a_this_parameter","get_and_set_accessor_must_have_the_same_this_type","this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation","The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1","The_this_types_of_each_signature_are_incompatible","_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead","All_declarations_of_0_must_have_identical_modifiers","Cannot_find_type_definition_file_for_0","Cannot_extend_an_interface_0_Did_you_mean_implements","_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0","An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead","_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible","_0_only_refers_to_a_type_but_is_being_used_as_a_value_here","Namespace_0_has_no_exported_member_1","Left_side_of_comma_operator_is_unused_and_has_no_side_effects","The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead","An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option","Spread_types_may_only_be_created_from_object_types","Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1","Rest_types_may_only_be_created_from_object_types","The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access","_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here","The_operand_of_a_delete_operator_must_be_a_property_reference","The_operand_of_a_delete_operator_cannot_be_a_read_only_property","An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option","Required_type_parameters_may_not_follow_optional_type_parameters","Generic_type_0_requires_between_1_and_2_type_arguments","Cannot_use_namespace_0_as_a_value","Cannot_use_namespace_0_as_a_type","_0_are_specified_twice_The_attribute_named_0_will_be_overwritten","A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option","A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option","Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1","The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context","Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor","Type_parameter_0_has_a_circular_default","Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2","Duplicate_property_0","Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated","Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass","Cannot_invoke_an_object_which_is_possibly_null","Cannot_invoke_an_object_which_is_possibly_undefined","Cannot_invoke_an_object_which_is_possibly_null_or_undefined","_0_has_no_exported_member_named_1_Did_you_mean_2","Class_name_cannot_be_Object_when_targeting_ES5_with_module_0","Cannot_find_lib_definition_for_0","Cannot_find_lib_definition_for_0_Did_you_mean_1","_0_is_declared_here","Property_0_is_used_before_its_initialization","An_arrow_function_cannot_have_a_this_parameter","Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String","Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension","Property_0_was_also_declared_here","Are_you_missing_a_semicolon","Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1","Operator_0_cannot_be_applied_to_type_1","BigInt_literals_are_not_available_when_targeting_lower_than_ES2020","An_outer_value_of_this_is_shadowed_by_this_container","Type_0_is_missing_the_following_properties_from_type_1_Colon_2","Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more","Property_0_is_missing_in_type_1_but_required_in_type_2","The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary","No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments","Type_parameter_defaults_can_only_reference_previously_declared_type_parameters","This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided","This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided","_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2","Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided","_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0","The_implementation_signature_is_declared_here","Circularity_originates_in_type_at_this_location","The_first_export_default_is_here","Another_export_default_is_here","super_may_not_use_type_arguments","No_constituent_of_type_0_is_callable","Not_all_constituents_of_type_0_are_callable","Type_0_has_no_call_signatures","Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other","No_constituent_of_type_0_is_constructable","Not_all_constituents_of_type_0_are_constructable","Type_0_has_no_construct_signatures","Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other","Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0","Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0","Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0","Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0","The_0_property_of_an_iterator_must_be_a_method","The_0_property_of_an_async_iterator_must_be_a_method","No_overload_matches_this_call","The_last_overload_gave_the_following_error","The_last_overload_is_declared_here","Overload_0_of_1_2_gave_the_following_error","Did_you_forget_to_use_await","This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead","Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation","Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name","The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access","The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access","The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access","The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access","The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access","_0_needs_an_explicit_type_annotation","_0_is_specified_more_than_once_so_this_usage_will_be_overwritten","get_and_set_accessors_cannot_declare_this_parameters","This_spread_always_overwrites_this_property","_0_cannot_be_used_as_a_JSX_component","Its_return_type_0_is_not_a_valid_JSX_element","Its_instance_type_0_is_not_a_valid_JSX_element","Its_element_type_0_is_not_a_valid_JSX_element","The_operand_of_a_delete_operator_must_be_optional","Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later","Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option","The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible","Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise","The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types","It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked","A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract","The_declaration_was_marked_as_deprecated_here","Type_produces_a_tuple_type_that_is_too_large_to_represent","Expression_produces_a_tuple_type_that_is_too_large_to_represent","This_condition_will_always_return_true_since_this_0_is_always_defined","Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher","Cannot_assign_to_private_method_0_Private_methods_are_not_writable","Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name","Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag","Private_accessor_was_defined_without_a_getter","This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0","A_get_accessor_must_be_at_least_as_accessible_as_the_setter","Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses","Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false","Initializer_for_property_0","Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom","Class_declaration_cannot_implement_overload_list_for_0","Function_with_bodies_can_only_merge_with_classes_that_are_ambient","arguments_cannot_be_referenced_in_property_initializers","Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class","Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block","Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers","Namespace_name_cannot_be_0","Import_declaration_0_is_using_private_name_1","Type_parameter_0_of_exported_class_has_or_is_using_private_name_1","Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1","Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1","Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1","Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1","Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1","Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1","Type_parameter_0_of_exported_function_has_or_is_using_private_name_1","Implements_clause_of_exported_class_0_has_or_is_using_private_name_1","extends_clause_of_exported_class_0_has_or_is_using_private_name_1","extends_clause_of_exported_class_has_or_is_using_private_name_0","extends_clause_of_exported_interface_0_has_or_is_using_private_name_1","Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Exported_variable_0_has_or_is_using_name_1_from_private_module_2","Exported_variable_0_has_or_is_using_private_name_1","Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2","Public_static_property_0_of_exported_class_has_or_is_using_private_name_1","Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2","Public_property_0_of_exported_class_has_or_is_using_private_name_1","Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2","Property_0_of_exported_interface_has_or_is_using_private_name_1","Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2","Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1","Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2","Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1","Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2","Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1","Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2","Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1","Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1","Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0","Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1","Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0","Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1","Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0","Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named","Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1","Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0","Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named","Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1","Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0","Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1","Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0","Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named","Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1","Return_type_of_exported_function_has_or_is_using_private_name_0","Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1","Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1","Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1","Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1","Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1","Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1","Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_exported_function_has_or_is_using_private_name_1","Exported_type_alias_0_has_or_is_using_private_name_1","Default_export_of_the_module_has_or_is_using_private_name_0","Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1","Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2","Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict","Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1","Property_0_of_exported_class_expression_may_not_be_private_or_protected","Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2","Public_static_method_0_of_exported_class_has_or_is_using_private_name_1","Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2","Public_method_0_of_exported_class_has_or_is_using_private_name_1","Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2","Method_0_of_exported_interface_has_or_is_using_private_name_1","Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1","The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1","Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter","Parameter_0_of_accessor_has_or_is_using_private_name_1","Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2","Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named","Type_arguments_for_0_circularly_reference_themselves","Tuple_type_arguments_circularly_reference_themselves","Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0","This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class","This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0","This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0","This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0","This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0","This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1","The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized","The_current_host_does_not_support_the_0_option","Cannot_find_the_common_subdirectory_path_for_the_input_files","File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0","Cannot_read_file_0_Colon_1","Failed_to_parse_file_0_Colon_1","Unknown_compiler_option_0","Compiler_option_0_requires_a_value_of_type_1","Unknown_compiler_option_0_Did_you_mean_1","Could_not_write_file_0_Colon_1","Option_project_cannot_be_mixed_with_source_files_on_a_command_line","Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher","Option_0_cannot_be_specified_when_option_target_is_ES3","Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided","Option_0_cannot_be_specified_without_specifying_option_1","Option_0_cannot_be_specified_with_option_1","A_tsconfig_json_file_is_already_defined_at_Colon_0","Cannot_write_file_0_because_it_would_overwrite_input_file","Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files","Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0","The_specified_path_does_not_exist_Colon_0","Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier","Pattern_0_can_have_at_most_one_Asterisk_character","Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character","Substitutions_for_pattern_0_should_be_an_array","Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2","File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0","Substitutions_for_pattern_0_shouldn_t_be_an_empty_array","Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name","Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig","Option_0_cannot_be_specified_without_specifying_option_1_or_option_2","Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy","Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext","Unknown_build_option_0","Build_option_0_requires_a_value_of_type_1","Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified","_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2","_0_and_1_operations_cannot_be_mixed_without_parentheses","Unknown_build_option_0_Did_you_mean_1","Unknown_watch_option_0","Unknown_watch_option_0_Did_you_mean_1","Watch_option_0_requires_a_value_of_type_1","Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0","_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1","Cannot_read_file_0","Tuple_members_must_all_have_names_or_all_not_have_names","A_tuple_member_cannot_be_both_optional_and_rest","A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type","A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type","The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary","Option_0_cannot_be_specified_when_option_jsx_is_1","Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash","Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled","The_root_value_of_a_0_file_must_be_an_object","Compiler_option_0_may_only_be_used_with_build","Compiler_option_0_may_not_be_used_with_build","Generates_a_sourcemap_for_each_corresponding_d_ts_file","Concatenate_and_emit_output_to_single_file","Generates_corresponding_d_ts_file","Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations","Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations","Watch_input_files","Redirect_output_structure_to_the_directory","Do_not_erase_const_enum_declarations_in_generated_code","Do_not_emit_outputs_if_any_errors_were_reported","Do_not_emit_comments_to_output","Do_not_emit_outputs","Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking","Skip_type_checking_of_declaration_files","Do_not_resolve_the_real_path_of_symlinks","Only_emit_d_ts_declaration_files","Specify_ECMAScript_target_version","Specify_module_code_generation","Print_this_message","Print_the_compiler_s_version","Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json","Syntax_Colon_0","Examples_Colon_0","Options_Colon","Version_0","Insert_command_line_options_and_files_from_a_file","Starting_compilation_in_watch_mode","File_change_detected_Starting_incremental_compilation","KIND","FILE","VERSION","LOCATION","DIRECTORY","STRATEGY","FILE_OR_DIRECTORY","Generates_corresponding_map_file","Compiler_option_0_expects_an_argument","Unterminated_quoted_string_in_response_file_0","Argument_for_0_option_must_be_Colon_1","Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1","Unsupported_locale_0","Unable_to_open_file_0","Corrupted_locale_file_0","Raise_error_on_expressions_and_declarations_with_an_implied_any_type","File_0_not_found","File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1","Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures","Do_not_emit_declarations_for_code_that_has_an_internal_annotation","Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir","File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files","Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix","NEWLINE","Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line","Enables_experimental_support_for_ES7_decorators","Enables_experimental_support_for_emitting_type_metadata_for_decorators","Enables_experimental_support_for_ES7_async_functions","Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6","Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file","Successfully_created_a_tsconfig_json_file","Suppress_excess_property_checks_for_object_literals","Stylize_errors_and_messages_using_color_and_context_experimental","Do_not_report_errors_on_unused_labels","Report_error_when_not_all_code_paths_in_function_return_a_value","Report_errors_for_fallthrough_cases_in_switch_statement","Do_not_report_errors_on_unreachable_code","Disallow_inconsistently_cased_references_to_the_same_file","Specify_library_files_to_be_included_in_the_compilation","Specify_JSX_code_generation","File_0_has_an_unsupported_extension_so_skipping_it","Only_amd_and_system_modules_are_supported_alongside_0","Base_directory_to_resolve_non_absolute_module_names","Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit","Enable_tracing_of_the_name_resolution_process","Resolving_module_0_from_1","Explicitly_specified_module_resolution_kind_Colon_0","Module_resolution_kind_is_not_specified_using_0","Module_name_0_was_successfully_resolved_to_1","Module_name_0_was_not_resolved","paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0","Module_name_0_matched_pattern_1","Trying_substitution_0_candidate_module_location_Colon_1","Resolving_module_name_0_relative_to_base_url_1_2","Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1","File_0_does_not_exist","File_0_exist_use_it_as_a_name_resolution_result","Loading_module_0_from_node_modules_folder_target_file_type_1","Found_package_json_at_0","package_json_does_not_have_a_0_field","package_json_has_0_field_1_that_references_2","Allow_javascript_files_to_be_compiled","Option_0_should_have_array_of_strings_as_a_value","Checking_if_0_is_the_longest_matching_prefix_for_1_2","Expected_type_of_0_field_in_package_json_to_be_1_got_2","baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1","rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0","Longest_matching_prefix_for_0_is_1","Loading_0_from_the_root_dir_1_candidate_location_2","Trying_other_entries_in_rootDirs","Module_resolution_using_rootDirs_has_failed","Do_not_emit_use_strict_directives_in_module_output","Enable_strict_null_checks","Unknown_option_excludes_Did_you_mean_exclude","Raise_error_on_this_expressions_with_an_implied_any_type","Resolving_type_reference_directive_0_containing_file_1_root_directory_2","Resolving_using_primary_search_paths","Resolving_from_node_modules_folder","Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2","Type_reference_directive_0_was_not_resolved","Resolving_with_primary_search_path_0","Root_directory_cannot_be_determined_skipping_primary_search_paths","Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set","Type_declaration_files_to_be_included_in_compilation","Looking_up_in_node_modules_folder_initial_location_0","Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder","Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1","Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set","Resolving_real_path_for_0_result_1","Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system","File_name_0_has_a_1_extension_stripping_it","_0_is_declared_but_its_value_is_never_read","Report_errors_on_unused_locals","Report_errors_on_unused_parameters","The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files","Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1","Property_0_is_declared_but_its_value_is_never_read","Import_emit_helpers_from_tslib","Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2","Parse_in_strict_mode_and_emit_use_strict_for_each_source_file","Module_0_was_resolved_to_1_but_jsx_is_not_set","Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1","Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified","Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h","Resolution_for_module_0_was_found_in_cache_from_location_1","Directory_0_does_not_exist_skipping_all_lookups_in_it","Show_diagnostic_information","Show_verbose_diagnostic_information","Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file","Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set","Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule","Print_names_of_generated_files_part_of_the_compilation","Print_names_of_files_part_of_the_compilation","The_locale_used_when_displaying_messages_to_the_user_e_g_en_us","Do_not_generate_custom_helper_functions_like_extends_in_compiled_output","Do_not_include_the_default_library_file_lib_d_ts","Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files","Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files","List_of_folders_to_include_type_definitions_from","Disable_size_limitations_on_JavaScript_projects","The_character_set_of_the_input_files","Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files","Do_not_truncate_error_messages","Output_directory_for_generated_declaration_files","A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl","List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime","Show_all_compiler_options","Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file","Command_line_Options","Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3","Enable_all_strict_type_checking_options","List_of_language_service_plugins","Scoped_package_detected_looking_in_0","Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2","Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3","Enable_strict_checking_of_function_types","Enable_strict_checking_of_property_initialization_in_classes","Numeric_separators_are_not_allowed_here","Multiple_consecutive_numeric_separators_are_not_permitted","Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen","All_imports_in_import_declaration_are_unused","Found_1_error_Watching_for_file_changes","Found_0_errors_Watching_for_file_changes","Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols","_0_is_declared_but_never_used","Include_modules_imported_with_json_extension","All_destructured_elements_are_unused","All_variables_are_unused","Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0","Conflicts_are_in_this_file","Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0","_0_was_also_declared_here","and_here","All_type_parameters_are_unused","package_json_has_a_typesVersions_field_with_version_specific_path_mappings","package_json_does_not_have_a_typesVersions_entry_that_matches_version_0","package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2","package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range","An_argument_for_0_was_not_provided","An_argument_matching_this_binding_pattern_was_not_provided","Did_you_mean_to_call_this_expression","Did_you_mean_to_use_new_with_this_expression","Enable_strict_bind_call_and_apply_methods_on_functions","Using_compiler_options_of_project_reference_redirect_0","Found_1_error","Found_0_errors","Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2","Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3","package_json_had_a_falsy_0_field","Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects","Emit_class_fields_with_Define_instead_of_Set","Generates_a_CPU_profile","Disable_solution_searching_for_this_project","Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory","Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling","Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize","Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3","Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line","Could_not_resolve_the_path_0_with_the_extensions_Colon_1","Declaration_augments_declaration_in_another_file_This_cannot_be_serialized","This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file","This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without","Disable_loading_referenced_projects","Arguments_for_the_rest_parameter_0_were_not_provided","Generates_an_event_trace_and_a_list_of_types","Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react","File_0_exists_according_to_earlier_cached_lookups","File_0_does_not_exist_according_to_earlier_cached_lookups","Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1","Resolving_type_reference_directive_0_containing_file_1","Interpret_optional_property_types_as_written_rather_than_adding_undefined","Modules","File_Management","Emit","JavaScript_Support","Type_Checking","Editor_Support","Watch_and_Build_Modes","Compiler_Diagnostics","Interop_Constraints","Backwards_Compatibility","Language_and_Environment","Projects","Output_Formatting","Completeness","Projects_to_reference","Enable_project_compilation","Composite_projects_may_not_disable_declaration_emit","Output_file_0_has_not_been_built_from_source_file_1","Referenced_project_0_must_have_setting_composite_Colon_true","File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern","Cannot_prepend_project_0_because_it_does_not_have_outFile_set","Output_file_0_from_project_1_does_not_exist","Referenced_project_0_may_not_disable_emit","Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2","Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2","Project_0_is_out_of_date_because_output_file_1_does_not_exist","Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date","Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies","Projects_in_this_build_Colon_0","A_non_dry_build_would_delete_the_following_files_Colon_0","A_non_dry_build_would_build_project_0","Building_project_0","Updating_output_timestamps_of_project_0","delete_this_Project_0_is_up_to_date_because_it_was_previously_built","Project_0_is_up_to_date","Skipping_build_of_project_0_because_its_dependency_1_has_errors","Project_0_can_t_be_built_because_its_dependency_1_has_errors","Build_one_or_more_projects_and_their_dependencies_if_out_of_date","Delete_the_outputs_of_all_projects","Show_what_would_be_built_or_deleted_if_specified_with_clean","Option_build_must_be_the_first_command_line_argument","Options_0_and_1_cannot_be_combined","Updating_unchanged_output_timestamps_of_project_0","Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed","Updating_output_of_project_0","A_non_dry_build_would_update_timestamps_for_output_of_project_0","A_non_dry_build_would_update_output_of_project_0","Cannot_update_output_of_project_0_because_there_was_error_reading_file_1","Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1","Enable_incremental_compilation","Composite_projects_may_not_disable_incremental_compilation","Specify_file_to_store_incremental_compilation_information","Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2","Skipping_build_of_project_0_because_its_dependency_1_was_not_built","Project_0_can_t_be_built_because_its_dependency_1_was_not_built","Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it","_0_is_deprecated","Suggestion","Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found","The_signature_0_of_1_is_deprecated","Project_0_is_being_forcibly_rebuilt","Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved","Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2","Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3","Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved","Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3","Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4","Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved","Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3","Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4","Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved","The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1","The_expected_type_comes_from_this_index_signature","The_expected_type_comes_from_the_return_type_of_this_signature","Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing","File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option","Print_names_of_files_and_the_reason_they_are_part_of_the_compilation","Consider_adding_a_declare_modifier_to_this_class","Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files","Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export","Allow_accessing_UMD_globals_from_modules","Disable_error_reporting_for_unreachable_code","Disable_error_reporting_for_unused_labels","Ensure_use_strict_is_always_emitted","Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it","Specify_the_base_directory_to_resolve_non_relative_module_names","No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files","Enable_error_reporting_in_type_checked_JavaScript_files","Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references","Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project","Specify_the_output_directory_for_generated_declaration_files","Create_sourcemaps_for_d_ts_files","Output_compiler_performance_information_after_building","Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project","Reduce_the_number_of_projects_loaded_automatically_by_TypeScript","Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server","Opt_a_project_out_of_multi_project_reference_checking_when_editing","Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects","Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration","Only_output_d_ts_files_and_not_JavaScript_files","Emit_design_type_metadata_for_decorated_declarations_in_source_files","Disable_the_type_acquisition_for_JavaScript_projects","Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility","Filters_results_from_the_include_option","Remove_a_list_of_directories_from_the_watch_process","Remove_a_list_of_files_from_the_watch_mode_s_processing","Enable_experimental_support_for_TC39_stage_2_draft_decorators","Print_files_read_during_the_compilation_including_why_it_was_included","Output_more_detailed_compiler_performance_information_after_building","Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited","Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers","Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include","Build_all_projects_including_those_that_appear_to_be_up_to_date","Ensure_that_casing_is_correct_in_imports","Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging","Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file","Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation","Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects","Include_sourcemap_files_inside_the_emitted_JavaScript","Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript","Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports","Specify_what_JSX_code_is_generated","Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h","Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment","Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk","Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option","Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment","Print_the_names_of_emitted_files_after_a_compilation","Print_all_of_the_files_read_during_the_compilation","Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit","Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs","Specify_what_module_code_is_generated","Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier","Set_the_newline_character_for_emitting_files","Disable_emitting_files_from_a_compilation","Disable_generating_custom_helper_functions_like_extends_in_compiled_output","Disable_emitting_files_if_any_type_checking_errors_are_reported","Disable_truncating_types_in_error_messages","Enable_error_reporting_for_fallthrough_cases_in_switch_statements","Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type","Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier","Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function","Enable_error_reporting_when_this_is_given_the_type_any","Disable_adding_use_strict_directives_in_emitted_JavaScript_files","Disable_including_any_library_files_including_the_default_lib_d_ts","Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type","Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project","Disable_strict_checking_of_generic_signatures_in_function_types","Add_undefined_to_a_type_when_accessed_using_an_index","Enable_error_reporting_when_a_local_variables_aren_t_read","Raise_an_error_when_a_function_parameter_isn_t_read","Deprecated_setting_Use_outFile_instead","Specify_an_output_folder_for_all_emitted_files","Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output","Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations","Specify_a_list_of_language_service_plugins_to_include","Disable_erasing_const_enum_declarations_in_generated_code","Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node","Disable_wiping_the_console_in_watch_mode","Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read","Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit","Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references","Disable_emitting_comments","Enable_importing_json_files","Specify_the_root_folder_within_your_source_files","Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules","Skip_type_checking_d_ts_files_that_are_included_with_TypeScript","Skip_type_checking_all_d_ts_files","Create_source_map_files_for_emitted_JavaScript_files","Specify_the_root_path_for_debuggers_to_find_the_reference_source_code","Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function","When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible","When_type_checking_take_into_account_null_and_undefined","Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor","Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments","Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals","Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures","Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively","Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations","Log_paths_used_during_the_moduleResolution_process","Specify_the_folder_for_tsbuildinfo_incremental_compilation_files","Specify_options_for_automatic_acquisition_of_declaration_files","Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types","Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file","Emit_ECMAScript_standard_compliant_class_fields","Enable_verbose_logging","Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality","Specify_how_the_TypeScript_watch_mode_works","Include_undefined_in_index_signature_results","Require_undeclared_properties_from_index_signatures_to_use_element_accesses","Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types","Type_catch_clause_variables_as_unknown_instead_of_any","one_of_Colon","one_or_more_Colon","type_Colon","default_Colon","module_system_or_esModuleInterop","false_unless_strict_is_set","false_unless_composite_is_set","node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified","if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk","true_if_composite_false_otherwise","module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node","Computed_from_the_list_of_input_files","Platform_specific","You_can_learn_about_all_of_the_compiler_options_at_0","Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon","Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0","COMMON_COMMANDS","ALL_COMPILER_OPTIONS","WATCH_OPTIONS","BUILD_OPTIONS","COMMON_COMPILER_OPTIONS","COMMAND_LINE_FLAGS","tsc_Colon_The_TypeScript_Compiler","Compiles_the_current_project_tsconfig_json_in_the_working_directory","Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options","Build_a_composite_project_in_the_working_directory","Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory","Compiles_the_TypeScript_project_located_at_the_specified_path","An_expanded_version_of_this_information_showing_all_possible_compiler_options","Compiles_the_current_project_with_additional_settings","Variable_0_implicitly_has_an_1_type","Parameter_0_implicitly_has_an_1_type","Member_0_implicitly_has_an_1_type","new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type","_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type","Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type","Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type","Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type","Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number","Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type","Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature","Object_literal_s_property_0_implicitly_has_an_1_type","Rest_parameter_0_implicitly_has_an_any_type","Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type","_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer","_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions","Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions","Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation","JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists","Unreachable_code_detected","Unused_label","Fallthrough_case_in_switch","Not_all_code_paths_return_a_value","Binding_element_0_implicitly_has_an_1_type","Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation","Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation","Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined","Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0","Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0","Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports","Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead","Mapped_object_type_implicitly_has_an_any_template_type","If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1","The_containing_arrow_function_captures_the_global_value_of_this","Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used","Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage","Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage","Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage","Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage","Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage","Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage","Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage","_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage","Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1","Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1","Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1","No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1","_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type","The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed","yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation","You_cannot_rename_this_element","You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library","import_can_only_be_used_in_TypeScript_files","export_can_only_be_used_in_TypeScript_files","Type_parameter_declarations_can_only_be_used_in_TypeScript_files","implements_clauses_can_only_be_used_in_TypeScript_files","_0_declarations_can_only_be_used_in_TypeScript_files","Type_aliases_can_only_be_used_in_TypeScript_files","The_0_modifier_can_only_be_used_in_TypeScript_files","Type_annotations_can_only_be_used_in_TypeScript_files","Type_arguments_can_only_be_used_in_TypeScript_files","Parameter_modifiers_can_only_be_used_in_TypeScript_files","Non_null_assertions_can_only_be_used_in_TypeScript_files","Type_assertion_expressions_can_only_be_used_in_TypeScript_files","Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0","Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0","Report_errors_in_js_files","JSDoc_types_can_only_be_used_inside_documentation_comments","JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags","JSDoc_0_is_not_attached_to_a_class","JSDoc_0_1_does_not_match_the_extends_2_clause","JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name","Class_declarations_cannot_have_more_than_one_augments_or_extends_tag","Expected_0_type_arguments_provide_these_with_an_extends_tag","Expected_0_1_type_arguments_provide_these_with_an_extends_tag","JSDoc_may_only_appear_in_the_last_parameter_of_a_signature","JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type","The_type_of_a_function_declaration_must_match_the_function_s_signature","You_cannot_rename_a_module_via_a_global_import","Qualified_name_0_is_not_allowed_without_a_leading_param_object_1","A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags","The_tag_was_first_specified_here","Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause","class_expressions_are_not_currently_supported","Language_service_is_disabled","Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit","Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit","JSX_attributes_must_only_be_assigned_a_non_empty_expression","JSX_elements_cannot_have_multiple_attributes_with_the_same_name","Expected_corresponding_JSX_closing_tag_for_0","JSX_attribute_expected","Cannot_use_JSX_unless_the_jsx_flag_is_provided","A_constructor_cannot_contain_a_super_call_when_its_class_extends_null","An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses","A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses","JSX_element_0_has_no_corresponding_closing_tag","super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class","Unknown_type_acquisition_option_0","super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class","_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2","Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor","JSX_fragment_has_no_corresponding_closing_tag","Expected_corresponding_closing_tag_for_JSX_fragment","The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option","An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments","Unknown_type_acquisition_option_0_Did_you_mean_1","Circularity_detected_while_resolving_configuration_Colon_0","A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not","The_files_list_in_config_file_0_is_empty","No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2","File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module","This_constructor_function_may_be_converted_to_a_class_declaration","Import_may_be_converted_to_a_default_import","JSDoc_types_may_be_moved_to_TypeScript_types","require_call_may_be_converted_to_an_import","This_may_be_converted_to_an_async_function","await_has_no_effect_on_the_type_of_this_expression","Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers","Add_missing_super_call","Make_super_call_the_first_statement_in_the_constructor","Change_extends_to_implements","Remove_unused_declaration_for_Colon_0","Remove_import_from_0","Implement_interface_0","Implement_inherited_abstract_class","Add_0_to_unresolved_variable","Remove_variable_statement","Remove_template_tag","Remove_type_parameters","Import_0_from_module_1","Change_0_to_1","Add_0_to_existing_import_declaration_from_1","Declare_property_0","Add_index_signature_for_property_0","Disable_checking_for_this_file","Ignore_this_error_message","Initialize_property_0_in_the_constructor","Initialize_static_property_0","Change_spelling_to_0","Declare_method_0","Declare_static_method_0","Prefix_0_with_an_underscore","Rewrite_as_the_indexed_access_type_0","Declare_static_property_0","Call_decorator_expression","Add_async_modifier_to_containing_function","Replace_infer_0_with_unknown","Replace_all_unused_infer_with_unknown","Import_default_0_from_module_1","Add_default_import_0_to_existing_import_declaration_from_1","Add_parameter_name","Declare_private_property_0","Replace_0_with_Promise_1","Fix_all_incorrect_return_type_of_an_async_functions","Declare_private_method_0","Remove_unused_destructuring_declaration","Remove_unused_declarations_for_Colon_0","Declare_a_private_field_named_0","Convert_function_to_an_ES2015_class","Convert_function_0_to_class","Convert_0_to_1_in_0","Extract_to_0_in_1","Extract_function","Extract_constant","Extract_to_0_in_enclosing_scope","Extract_to_0_in_1_scope","Annotate_with_type_from_JSDoc","Annotate_with_types_from_JSDoc","Infer_type_of_0_from_usage","Infer_parameter_types_from_usage","Convert_to_default_import","Install_0","Replace_import_with_0","Use_synthetic_default_member","Convert_to_ES6_module","Add_undefined_type_to_property_0","Add_initializer_to_property_0","Add_definite_assignment_assertion_to_property_0","Convert_all_type_literals_to_mapped_type","Add_all_missing_members","Infer_all_types_from_usage","Delete_all_unused_declarations","Prefix_all_unused_declarations_with_where_possible","Fix_all_detected_spelling_errors","Add_initializers_to_all_uninitialized_properties","Add_definite_assignment_assertions_to_all_uninitialized_properties","Add_undefined_type_to_all_uninitialized_properties","Change_all_jsdoc_style_types_to_TypeScript","Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types","Implement_all_unimplemented_interfaces","Install_all_missing_types_packages","Rewrite_all_as_indexed_access_types","Convert_all_to_default_imports","Make_all_super_calls_the_first_statement_in_their_constructor","Add_qualifier_to_all_unresolved_variables_matching_a_member_name","Change_all_extended_interfaces_to_implements","Add_all_missing_super_calls","Implement_all_inherited_abstract_classes","Add_all_missing_async_modifiers","Add_ts_ignore_to_all_error_messages","Annotate_everything_with_types_from_JSDoc","Add_to_all_uncalled_decorators","Convert_all_constructor_functions_to_classes","Generate_get_and_set_accessors","Convert_require_to_import","Convert_all_require_to_import","Move_to_a_new_file","Remove_unreachable_code","Remove_all_unreachable_code","Add_missing_typeof","Remove_unused_label","Remove_all_unused_labels","Convert_0_to_mapped_object_type","Convert_namespace_import_to_named_imports","Convert_named_imports_to_namespace_import","Add_or_remove_braces_in_an_arrow_function","Add_braces_to_arrow_function","Remove_braces_from_arrow_function","Convert_default_export_to_named_export","Convert_named_export_to_default_export","Add_missing_enum_member_0","Add_all_missing_imports","Convert_to_async_function","Convert_all_to_async_functions","Add_missing_call_parentheses","Add_all_missing_call_parentheses","Add_unknown_conversion_for_non_overlapping_types","Add_unknown_to_all_conversions_of_non_overlapping_types","Add_missing_new_operator_to_call","Add_missing_new_operator_to_all_calls","Add_names_to_all_parameters_without_names","Enable_the_experimentalDecorators_option_in_your_configuration_file","Convert_parameters_to_destructured_object","Extract_type","Extract_to_type_alias","Extract_to_typedef","Infer_this_type_of_0_from_usage","Add_const_to_unresolved_variable","Add_const_to_all_unresolved_variables","Add_await","Add_await_to_initializer_for_0","Fix_all_expressions_possibly_missing_await","Remove_unnecessary_await","Remove_all_unnecessary_uses_of_await","Enable_the_jsx_flag_in_your_configuration_file","Add_await_to_initializers","Extract_to_interface","Convert_to_a_bigint_numeric_literal","Convert_all_to_bigint_numeric_literals","Convert_const_to_let","Prefix_with_declare","Prefix_all_incorrect_property_declarations_with_declare","Convert_to_template_string","Add_export_to_make_this_file_into_a_module","Set_the_target_option_in_your_configuration_file_to_0","Set_the_module_option_in_your_configuration_file_to_0","Convert_invalid_character_to_its_html_entity_code","Convert_all_invalid_characters_to_HTML_entity_code","Add_class_tag","Add_this_tag","Add_this_parameter","Convert_function_expression_0_to_arrow_function","Convert_function_declaration_0_to_arrow_function","Fix_all_implicit_this_errors","Wrap_invalid_character_in_an_expression_container","Wrap_all_invalid_characters_in_an_expression_container","Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file","Add_a_return_statement","Remove_braces_from_arrow_function_body","Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal","Add_all_missing_return_statement","Remove_braces_from_all_arrow_function_bodies_with_relevant_issues","Wrap_all_object_literal_with_parentheses","Move_labeled_tuple_element_modifiers_to_labels","Convert_overload_list_to_single_signature","Generate_get_and_set_accessors_for_all_overriding_properties","Wrap_in_JSX_fragment","Wrap_all_unparented_JSX_in_JSX_fragment","Convert_arrow_function_or_function_expression","Convert_to_anonymous_function","Convert_to_named_function","Convert_to_arrow_function","Remove_parentheses","Could_not_find_a_containing_arrow_function","Containing_function_is_not_an_arrow_function","Could_not_find_export_statement","This_file_already_has_a_default_export","Could_not_find_import_clause","Could_not_find_namespace_import_or_named_imports","Selection_is_not_a_valid_type_node","No_type_could_be_extracted_from_this_type_node","Could_not_find_property_for_which_to_generate_accessor","Name_is_not_valid","Can_only_convert_property_with_modifier","Switch_each_misused_0_to_1","Convert_to_optional_chain_expression","Could_not_find_convertible_access_expression","Could_not_find_matching_access_expressions","Can_only_convert_logical_AND_access_chains","Add_void_to_Promise_resolved_without_a_value","Add_void_to_all_Promises_resolved_without_a_value","Use_element_access_for_0","Use_element_access_for_all_undeclared_properties","Delete_all_unused_imports","Infer_function_return_type","Return_type_must_be_inferred_from_a_function","Could_not_determine_function_return_type","Could_not_convert_to_arrow_function","Could_not_convert_to_named_function","Could_not_convert_to_anonymous_function","Can_only_convert_string_concatenation","Selection_is_not_a_valid_statement_or_statements","Add_missing_function_declaration_0","Add_all_missing_function_declarations","Method_not_implemented","Function_not_implemented","Add_override_modifier","Remove_override_modifier","Add_all_missing_override_modifiers","Remove_all_unnecessary_override_modifiers","Can_only_convert_named_export","Add_missing_properties","Add_all_missing_properties","Add_missing_attributes","Add_all_missing_attributes","No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer","Classes_may_not_have_a_field_named_constructor","JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array","Private_identifiers_cannot_be_used_as_parameters","An_accessibility_modifier_cannot_be_used_with_a_private_identifier","The_operand_of_a_delete_operator_cannot_be_a_private_identifier","constructor_is_a_reserved_word","Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier","The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling","Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2","Private_identifiers_are_not_allowed_outside_class_bodies","The_shadowing_declaration_of_0_is_defined_here","The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here","_0_modifier_cannot_be_used_with_a_private_identifier","An_enum_member_cannot_be_named_with_a_private_identifier","can_only_be_used_at_the_start_of_a_file","Compiler_reserves_name_0_when_emitting_private_identifier_downlevel","Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher","Private_identifiers_are_not_allowed_in_variable_declarations","An_optional_chain_cannot_contain_private_identifiers","The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents","The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some","Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead","Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment","Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name","Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator","Await_expression_cannot_be_used_inside_a_class_static_block","For_await_loops_cannot_be_used_inside_a_class_static_block","Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block","A_return_statement_cannot_be_used_inside_a_class_static_block","tokenIsIdentifierOrKeyword","token","tokenIsIdentifierOrKeywordOrGreaterThan","textToKeywordObj","abstract","any","as","asserts","bigint","boolean","break","case","catch","class","continue","const","debugger","declare","default","do","else","enum","export","extends","false","finally","for","function","if","implements","import","in","infer","instanceof","interface","intrinsic","is","keyof","let","namespace","never","new","null","number","package","private","protected","public","override","readonly","return","static","string","super","switch","throw","true","try","typeof","unique","unknown","var","void","while","with","yield","async","await","of","textToKeyword","textToToken","unicodeES3IdentifierStart","unicodeES3IdentifierPart","unicodeES5IdentifierStart","unicodeES5IdentifierPart","unicodeESNextIdentifierStart","unicodeESNextIdentifierPart","commentDirectiveRegExSingleLine","commentDirectiveRegExMultiLine","lookupInUnicodeMap","mid","lo","hi","isUnicodeIdentifierStart","languageVersion","isUnicodeIdentifierPart","makeReverseMap","tokenStrings","tokenToString","stringToToken","computeLineStarts","lineStart","isLineBreak","getPositionOfLineAndCharacter","allowEdits","computePositionOfLineAndCharacter","getLineStarts","lineStarts","debugText","lineMap","computeLineAndCharacterOfPosition","position","lineNumber","computeLineOfPosition","lowerBound","getLinesBetweenPositions","pos1","pos2","lower","isNegative","upper","lowerLine","upperLine","isWhiteSpaceSingleLine","isDigit","isHexDigit","isCodePoint","isOctalDigit","couldStartTrivia","skipTrivia","stopAfterLineBreak","stopAtComments","inJSDoc","positionIsSynthesized","canConsumeStar","isConflictMarkerTrivia","scanConflictMarkerTrivia","isShebangTrivia","scanShebangTrivia","mergeConflictMarkerLength","currentChar","shebangTriviaRegex","shebang","iterateCommentRanges","reduce","trailing","state","pendingPos","pendingEnd","pendingKind","pendingHasTrailingNewLine","hasPendingCommentRange","collecting","accumulator","getShebang","scan","nextChar","hasTrailingNewLine","startPos","forEachLeadingCommentRange","forEachTrailingCommentRange","reduceEachLeadingCommentRange","reduceEachTrailingCommentRange","appendCommentRange","_state","comments","getLeadingCommentRanges","getTrailingCommentRanges","isIdentifierStart","isIdentifierPart","identifierVariant","isIdentifierText","codePointAt","charSize","createScanner","languageVariant","textInitial","onError","tokenPos","tokenValue","tokenFlags","commentDirectives","inJSDocType","setText","scanner","getStartPos","getTextPos","getToken","getTokenPos","getTokenText","getTokenValue","hasUnicodeEscape","hasExtendedUnicodeEscape","hasPrecedingLineBreak","hasPrecedingJSDocComment","isReservedWord","isUnterminated","getCommentDirectives","getNumericLiteralFlags","getTokenFlags","reScanGreaterToken","reScanAsteriskEqualsToken","reScanSlashToken","reScanTemplateToken","reScanTemplateHeadOrNoSubstitutionTemplate","scanJsxIdentifier","scanJsxAttributeValue","reScanJsxAttributeValue","reScanJsxToken","reScanLessThanToken","reScanHashToken","reScanQuestionToken","reScanInvalidIdentifier","scanJsxToken","scanJsDocToken","getText","clearCommentDirectives","setScriptTarget","setLanguageVariant","setOnError","setTextPos","setInJSDocType","tryScan","lookAhead","scanRange","errPos","oldPos","scanNumberFragment","allowSeparator","isPreviousTokenSeparator","scanNumber","decimalFragment","scientificFragment","mainFragment","preNumericPart","finalFragment","checkForIdentifierStartAfterNumericLiteral","checkBigIntSuffix","numericStart","isScientific","identifierStart","scanIdentifierParts","scanOctalDigits","scanExactNumberOfHexDigits","canHaveSeparators","valueString","scanHexDigits","scanMinimumNumberOfHexDigits","minCount","scanAsManyAsPossible","valueChars","fromCharCode","scanString","jsxAttributeString","quote","scanEscapeSequence","scanTemplateAndSetTokenValue","isTaggedTemplate","startedWithBacktick","resultingToken","contents","currChar","escapePos","savePos","escapedValueString","escapedValue","scanExtendedUnicodeEscape","scanHexadecimalEscape","numDigits","isInvalidExtendedEscape","utf16EncodeAsString","peekUnicodeEscape","start_1","peekExtendedUnicodeEscape","start_2","getIdentifierToken","keyword","scanBinaryOrOctalDigits","base","separatorAllowed","parsePseudoBigInt","numericValue","asteriskSeen","appendIfCommentDirective","commentClosed","lastLineStart","ch_1","extendedCookedChar","cookedChar","scanIdentifier","identifierKind","startCharacter","inEscape","inCharacterClass","commentDirectiveRegEx","getDirectiveFromComment","allowMultilineJsxText","char","firstNonWhitespace","namespaceSeparator","speculationHelper","isLookahead","saveStartPos","saveTokenPos","saveToken","saveTokenValue","saveTokenFlags","saveEnd","saveErrorExpectations","newText","errorCallback","scriptTarget","variant","textPos","inType","utf16EncodeAsStringFallback","codePoint","codeUnit1","codeUnit2","utf16EncodeAsStringWorker","fromCodePoint","isExternalModuleNameRelative","moduleName","sortAndDeduplicateDiagnostics","diagnostics","compareDiagnostics","getDefaultLibFileName","textSpanEnd","span","textSpanIsEmpty","textSpanContainsPosition","textRangeContainsPositionInclusive","textSpanContainsTextSpan","textSpanOverlapsWith","textSpanOverlap","span1","span2","overlap","textSpanIntersection","textSpanIntersectsWithTextSpan","decodedTextSpanIntersectsWith","textSpanIntersectsWith","start1","length1","start2","length2","end1","end2","textSpanIntersectsWithPosition","createTextSpanFromBounds","createTextSpan","textChangeRangeNewSpan","newLength","textChangeRangeIsUnchanged","createTextChangeRange","collapseTextChangeRangesAcrossMultipleVersions","changes","unchangedTextChangeRange","change0","oldStartN","oldEndN","newEndN","nextChange","oldStart1","oldEnd1","newEnd1","oldStart2","oldEnd2","newEnd2","getTypeParameterOwner","isFunctionLike","isClassLike","isParameterPropertyDeclaration","hasSyntacticModifier","isEmptyBindingPattern","isBindingPattern","elements","isEmptyBindingElement","isOmittedExpression","walkUpBindingElementsAndPatterns","isBindingElement","getCombinedFlags","getFlags","getCombinedModifierFlags","getEffectiveModifierFlags","getCombinedNodeFlagsAlwaysIncludeJSDoc","getEffectiveModifierFlagsAlwaysIncludeJSDoc","getCombinedNodeFlags","validateLocaleAndSetLanguage","errors","lowerCaseLocale","matchResult","territory","supportedLocaleDirectories","trySetLanguageAndTerritory","createCompilerDiagnostic","compilerFilePath","containingDirectoryPath","fileContents","readFile","setLocalizedDiagnosticMessages","getOriginalNode","nodeTest","original","findAncestor","escapeLeadingUnderscores","identifier","identifierOrPrivateName","escapedText","valueDeclaration","isPrivateIdentifierClassElementDeclaration","nameForNamelessJSDocTypedef","declaration","hostNode","isDeclaration","getDeclarationIdentifier","declarationList","expr","operatorToken","argumentExpression","statement","isExpression","getNameOfDeclaration","nodeHasName","isNamedDeclaration","isVariableStatement","getNameOfJSDocTypedef","getNonAssignedNameOfDeclaration","expr_1","getAssignmentDeclarationKind","getElementOrPropertyAccessArgumentExpressionOrName","isBindableStaticElementAccessExpression","isFunctionExpression","isArrowFunction","isClassExpression","getAssignedName","isPropertyAssignment","isBinaryExpression","isAccessExpression","isVariableDeclaration","getJSDocParameterTagsWorker","param","noCache","name_1","getJSDocTagsWorker","tag","isJSDocParameterTag","parameters","paramTags","getJSDocParameterTags","getJSDocParameterTagsNoCache","getJSDocTypeParameterTagsWorker","isJSDocTemplateTag","typeParameters","tp","getJSDocTypeParameterTags","getJSDocTypeParameterTagsNoCache","hasJSDocParameterTags","getFirstJSDocTag","getJSDocAugmentsTag","isJSDocAugmentsTag","getJSDocImplementsTags","getAllJSDocTags","isJSDocImplementsTag","getJSDocClassTag","isJSDocClassTag","getJSDocPublicTag","isJSDocPublicTag","getJSDocPublicTagNoCache","getJSDocPrivateTag","isJSDocPrivateTag","getJSDocPrivateTagNoCache","getJSDocProtectedTag","isJSDocProtectedTag","getJSDocProtectedTagNoCache","getJSDocReadonlyTag","isJSDocReadonlyTag","getJSDocReadonlyTagNoCache","getJSDocOverrideTagNoCache","isJSDocOverrideTag","getJSDocDeprecatedTag","isJSDocDeprecatedTag","getJSDocDeprecatedTagNoCache","getJSDocEnumTag","isJSDocEnumTag","getJSDocThisTag","isJSDocThisTag","getJSDocReturnTag","isJSDocReturnTag","getJSDocTemplateTag","getJSDocTypeTag","isJSDocTypeTag","typeExpression","getJSDocType","getJSDocReturnType","returnTag","typeTag","sig","isJSDocFunctionType","tags","jsDocCache","getJSDocCommentsAndTags","isJSDoc","getJSDocTags","getJSDocTagsNoCache","getAllJSDocTagsOfKind","doc","getTextOfJSDocComment","comment","entityNameToString","getEffectiveTypeParameterDeclarations","isJSDocSignature","isJSDocTypeAlias","isInJSFile","decls","getJSDocTypeParameterDeclarations","getEffectiveConstraintOfTypeParameter","constraint","isMemberName","isGetOrSetAccessorDeclaration","isPropertyAccessChain","isPropertyAccessExpression","isElementAccessChain","isElementAccessExpression","isCallChain","isCallExpression","isOptionalChain","isOptionalChainRoot","isNonNullExpression","questionDotToken","isExpressionOfOptionalChainRoot","isOutermostOptionalChain","isNullishCoalesce","isConstTypeReference","typeName","skipPartiallyEmittedExpressions","skipOuterExpressions","isNonNullChain","isBreakOrContinueStatement","isNamedExportBindings","isUnparsedTextLike","isUnparsedNode","isJSDocPropertyLikeTag","isNode","isNodeKind","isTokenKind","isToken","isNodeArray","isLiteralKind","isLiteralExpression","isTemplateLiteralKind","isTemplateLiteralToken","isTemplateMiddleOrTemplateTail","isImportOrExportSpecifier","isImportSpecifier","isExportSpecifier","isTypeOnlyImportOrExportDeclaration","isTypeOnly","isStringTextContainingNode","autoGenerateFlags","isPropertyDeclaration","isMethodOrAccessor","isPrivateIdentifierPropertyAccessExpression","isModifierKind","isParameterPropertyModifier","modifierToFlag","isClassMemberModifier","idToken","isModifier","isEntityName","isPropertyName","isBindingName","isFunctionLikeKind","isFunctionLikeOrClassStaticBlockDeclaration","isClassStaticBlockDeclaration","isFunctionLikeDeclaration","isFunctionLikeDeclarationKind","isBooleanLiteral","isFunctionOrModuleBlock","isSourceFile","isModuleBlock","isBlock","isClassElement","isAccessor","isTypeElement","isClassOrTypeElement","isObjectLiteralElementLike","isTypeNode","isTypeNodeKind","isFunctionOrConstructorTypeNode","isAssignmentPattern","isArrayBindingElement","isDeclarationBindingElement","bindingElement","isBindingOrAssignmentPattern","isObjectBindingOrAssignmentPattern","isArrayBindingOrAssignmentPattern","isObjectBindingOrAssignmentElement","isPropertyAccessOrQualifiedNameOrImportTypeNode","isPropertyAccessOrQualifiedName","isCallLikeExpression","isCallOrNewExpression","isTemplateLiteral","isLeftHandSideExpression","isLeftHandSideExpressionKind","isUnaryExpression","isUnaryExpressionKind","isUnaryExpressionWithWrite","isExpressionKind","isAssertionExpression","isNotEmittedOrPartiallyEmittedNode","isNotEmittedStatement","isPartiallyEmittedExpression","isIterationStatement","lookInLabeledStatements","isScopeMarker","isExportAssignment","isExportDeclaration","hasScopeMarker","statements","needsScopeMarker","isAnyImportOrReExport","isAmbientModule","isExternalModuleIndicator","isForInOrOfStatement","isConciseBody","isFunctionBody","isForInitializer","isVariableDeclarationList","isModuleBody","isNamespaceBody","isJSDocNamespaceBody","isNamedImportBindings","isModuleOrEnumDeclaration","isDeclarationKind","isDeclarationStatementKind","isStatementKindButNotDeclarationKind","isDeclarationStatement","isStatementButNotDeclaration","isStatement","isBlockStatement","isFunctionBlock","isStatementOrBlock","isModuleReference","isJsxTagNameExpression","isJsxChild","isJsxAttributeLike","isStringLiteralOrJsxExpression","isJsxOpeningLikeElement","isCaseOrDefaultClause","isJSDocNode","isJSDocCommentContainingNode","isJSDocLinkLike","isJSDocTag","isJSDocTypeLiteral","isSetAccessor","isGetAccessor","hasJSDocNodes","jsDoc","hasType","hasInitializer","initializer","hasOnlyExpressionInitializer","isObjectLiteralElement","isTypeReferenceType","MAX_SMI_X86","guessIndentation","lines","indentation","lines_1","isStringLiteralLike","getDeclarationOfKind","declarations_1","createUnderscoreEscapedMap","hasEntries","createSymbolTable","symbols","symbols_1","isTransientSymbol","resolvingEmptyArray","externalHelpersModuleNameText","defaultMaximumTruncationLength","noTruncationMaximumTruncationLength","stringWriter","createSingleLineStringWriter","writeText","write","rawWrite","writeKeyword","writeOperator","writePunctuation","writeSpace","writeStringLiteral","writeLiteral","writeParameter","writeProperty","writeSymbol","writeTrailingSemicolon","writeComment","getLine","getColumn","getIndent","isAtStartOfLine","hasTrailingComment","hasTrailingWhitespace","writeLine","increaseIndent","decreaseIndent","trackSymbol","reportInaccessibleThisError","reportInaccessibleUniqueSymbolError","reportPrivateInBaseOfClassExpression","changesAffectModuleResolution","oldOptions","newOptions","optionsHaveModuleResolutionChanges","optionsHaveChanges","moduleResolutionOptionDeclarations","changesAffectingProgramStructure","optionsAffectingProgramStructure","optionDeclarations","isJsonEqual","getCompilerOptionValue","forEachAncestor","forEachKey","copyEntries","usingSingleLineStringWriter","oldString","getFullWidth","getResolvedModule","moduleNameText","resolvedModules","setResolvedModule","resolvedModule","setResolvedTypeReferenceDirective","typeReferenceDirectiveName","resolvedTypeReferenceDirective","resolvedTypeReferenceDirectiveNames","projectReferenceIsEqualTo","oldRef","newRef","prepend","circular","moduleResolutionIsEqualTo","oldResolution","newResolution","isExternalLibraryImport","resolvedFileName","originalPath","packageIdIsEqual","packageId","subModuleName","packageIdToString","fullName","typeDirectiveIsEqualTo","primary","hasChangesInResolutions","newResolutions","oldResolutions","changed","containsParseError","aggregateChildData","thisNodeOrAnySubNodesHasError","forEachChild","getSourceFileOfModule","getNonAugmentationDeclaration","isStatementWithLocals","getStartPositionOfLine","nodePosToString","loc","getEndLinePosition","lineIndex","sourceText","isFileLevelUniqueName","hasGlobalName","identifiers","nodeIsMissing","nodeIsPresent","insertStatementsAfterPrologue","isPrologueDirective","statementIndex","insertStatementAfterPrologue","isAnyPrologueDirective","insertStatementsAfterStandardPrologue","insertStatementsAfterCustomPrologue","insertStatementAfterStandardPrologue","insertStatementAfterCustomPrologue","isRecognizedTripleSlashComment","commentPos","commentEnd","textSubStr","fullTripleSlashReferencePathRegEx","fullTripleSlashAMDReferencePathRegEx","fullTripleSlashReferenceTypeReferenceDirectiveRegEx","defaultLibReferenceRegEx","isPinnedComment","createCommentDirectivesMap","directivesByLine","commentDirective","usedLines","getUnusedExpectations","markUsed","directive","getTokenPosOfNode","includeJsDoc","_children","isInJSDoc","getNonDecoratorTokenPosOfNode","decorators","getTextOfNodeFromSourceText","isJSDocTypeExpressionOrChild","isJSDocTypeExpression","isExportNamespaceAsDefaultDeclaration","exportClause","isNamespaceExport","getTextOfNode","getPos","indexOfNode","nodeArray","emitNode","getScriptTargetFeatures","es2015","RegExp","Reflect","ArrayConstructor","ObjectConstructor","NumberConstructor","PromiseConstructor","WeakSet","Iterator","AsyncIterator","StringConstructor","es2016","es2017","Atomics","SharedArrayBuffer","DateTimeFormat","es2018","RegExpMatchArray","RegExpExecArray","AsyncIterable","AsyncIterableIterator","AsyncGenerator","AsyncGeneratorFunction","es2019","es2020","BigInt","BigInt64Array","BigUint64Array","SymbolConstructor","DataView","RelativeTimeFormat","es2021","esnext","NumberFormat","getLiteralText","canUseOriginalText","escapeText","escapeJsxAttributeString","escapeString","escapeNonAsciiString","singleQuote","rawText","escapeTemplateSubstitution","numericLiteralFlags","getTextOfConstantValue","makeIdentifierFromModuleName","isBlockOrCatchScoped","isCatchClauseVariableDeclarationOrBindingElement","getRootDeclaration","isModuleDeclaration","isGlobalScopeAugmentation","isModuleWithStringLiteralName","isNonGlobalAmbientModule","isEffectiveModuleDeclaration","isShorthandAmbientModuleSymbol","moduleSymbol","isShorthandAmbientModule","isBlockScopedContainerTopLevel","isExternalModuleAugmentation","isModuleAugmentationExternal","isExternalModule","isEffectiveExternalModule","compilerOptions","isolatedModules","getEmitModuleKind","CommonJS","commonJsModuleIndicator","isEffectiveStrictModeSourceFile","scriptKind","isDeclarationFile","getStrictOptionValue","startsWithUseStrict","ES2015","noImplicitUseStrict","isBlockScope","parentNode","isDeclarationWithTypeParameters","isDeclarationWithTypeParameterChildren","isAnyImportSyntax","isLateVisibilityPaintedStatement","hasPossibleExternalModuleReference","isImportCall","getEnclosingBlockScopeContainer","forEachEnclosingBlockScopeContainer","container","declarationNameToString","getNameFromIndexInfo","info","isComputedNonLiteralName","isStringOrNumericLiteralLike","getTextOfPropertyName","createDiagnosticForNode","arg0","arg1","arg2","arg3","createDiagnosticForNodeInSourceFile","createDiagnosticForNodeArray","createFileDiagnostic","getErrorSpanForNode","createDiagnosticForNodeFromMessageChain","messageChain","relatedInformation","createFileDiagnosticFromMessageChain","assertDiagnosticLocation","messageText","createDiagnosticForFileFromMessageChain","createDiagnosticForRange","getSpanOfTokenAtPosition","getErrorSpanForArrowFunction","startLine","endLine","errorNode","pos_1","isMissing","isJsxText","isExternalOrCommonJsModule","externalModuleIndicator","isJsonSourceFile","isEnumConst","isDeclarationReadonly","isVarConst","isLet","isSuperCall","isImportMeta","isMetaProperty","keywordToken","isLiteralImportTypeNode","argument","literal","isCustomPrologue","isHoistedFunction","isFunctionDeclaration","isHoistedVariable","isHoistedVariableStatement","getLeadingCommentRangesOfNode","sourceFileOfNode","getJSDocCommentRanges","commentRanges","GetLiteralTextFlags","isPartOfTypeNode","isExpressionWithTypeArgumentsInClassExtendsClause","isTypeOf","isChildOfNodeWithKind","forEachReturnStatement","visitor","traverse","forEachYieldExpression","getRestParameterElementType","getMembersOfDeclaration","properties","isVariableLike","isVariableLikeOrAccessor","isVariableDeclarationInVariableStatement","isValidESSymbolDeclaration","hasEffectiveReadonlyModifier","hasStaticModifier","isPropertySignature","introducesArgumentsExoticObject","unwrapInnermostStatementOfLabel","beforeUnwrapLabelCallback","isObjectLiteralMethod","isObjectLiteralOrClassExpressionMethod","isIdentifierTypePredicate","isThisTypePredicate","getPropertyAssignment","objectLiteral","key2","propName","getPropertyArrayElementValue","propKey","elementValue","isArrayLiteralExpression","getTsConfigObjectLiteralExpression","tsConfigSourceFile","isObjectLiteralExpression","getTsConfigPropArrayElementValue","getTsConfigPropArray","jsonObjectLiteral","getContainingFunction","getContainingFunctionDeclaration","getContainingClass","getContainingClassStaticBlock","getContainingFunctionOrClassStaticBlock","getThisContainer","includeArrowFunctions","isInTopLevelContext","isClassDeclaration","getNewTargetContainer","getSuperContainer","stopOnFunctions","getImmediatelyInvokedFunctionExpression","isSuperOrSuperProperty","isSuperProperty","isThisProperty","isThisInitializedDeclaration","isThisInitializedObjectBindingExpression","isShorthandPropertyAssignment","getEntityNameFromTypeNode","isEntityNameExpression","getInvokedExpression","tagName","nodeCanBeDecorated","grandparent","nodeIsDecorated","nodeOrChildIsDecorated","childIsDecorated","classOrConstructorParameterIsDecorated","getFirstConstructorWithBody","isJSXTagName","isExpressionNode","isJSDocNameReference","isJSDocMemberName","isInExpressionContext","forStatement","incrementor","forInStatement","objectAssignmentInitializer","isPartOfTypeQuery","isNamespaceReexportDeclaration","moduleSpecifier","isExternalModuleImportEqualsDeclaration","moduleReference","getExternalModuleImportEqualsDeclarationExpression","getExternalModuleRequireArgument","isRequireVariableDeclaration","getLeftmostAccessExpression","isInternalModuleImportEqualsDeclaration","isSourceFileJS","isSourceFileNotJS","isInJsonFile","isSourceFileNotJson","isJSDocIndexSignature","isRequireCall","callExpression","requireStringLiteralLikeArgument","isRequireVariableStatement","decl","isSingleOrDoubleQuote","isStringDoubleQuoted","isAssignmentDeclaration","getEffectiveInitializer","isSameEntityName","getDeclaredExpandoInitializer","getExpandoInitializer","isPrototypeAccess","hasExpandoValueProperty","isPrototypeAssignment","getAssignedExpandoInitializer","getDefaultedExpandoInitializer","isBindableObjectDefinePropertyCall","skipParentheses","isDefaultedExpandoInitializer","getNameOfExpando","isPropertyNameLiteral","getTextOfIdentifierOrLiteral","isLiteralLikeAccess","nameOrArgument","getNameOrArgument","getElementOrPropertyAccessName","getRightMostAssignedExpression","isAssignmentExpression","isExportsIdentifier","isModuleIdentifier","isModuleExportsAccessExpression","isLiteralLikeElementAccess","special","getAssignmentDeclarationKindWorker","isBindableStaticNameExpression","isBindableStaticAccessExpression","excludeThisKeyword","entityName","isVoidZero","getInitializerOfBinaryExpression","getAssignmentDeclarationPropertyAccessKind","isVoidExpression","lhs","nextToLast","isDynamicName","isPrototypePropertyAssignment","isSpecialPropertyDeclaration","setValueDeclaration","isFunctionSymbol","tryGetModuleSpecifierFromDeclaration","isExternalModuleReference","importFromModuleSpecifier","tryGetImportFromModuleSpecifier","getExternalModuleName","getNamespaceDeclarationNode","importClause","namedBindings","isNamespaceImport","isDefaultImport","forEachImportClauseDeclaration","hasQuestionToken","questionToken","isJSDocConstructSignature","isTypeAlias","isTypeAliasDeclaration","getSourceOfAssignment","isExpressionStatement","getSourceOfDefaultedAssignment","getSingleInitializerOfVariableStatementOrPropertyDeclaration","getSingleVariableOfVariableStatement","getNestedModuleDeclaration","getNextJSDocCommentLocation","getParameterSymbolFromJSDoc","getHostSignatureFromJSDoc","parameter","getEffectiveJSDocHost","getJSDocHost","getJSDocRoot","getTypeParameterFromJsDoc","hasRestParameter","isRestParameter","dotDotDotToken","hasTypeArguments","getAssignmentTargetKind","binaryOperator","isAssignmentOperator","isLogicalOrCoalescingAssignmentOperator","unaryOperator","isAssignmentTarget","isNodeWithPossibleHoistedDeclaration","isValueSignatureDeclaration","walkUp","walkUpParenthesizedTypes","walkUpParenthesizedExpressions","walkUpParenthesizedTypesAndGetParentAndChild","isDeleteTarget","isNodeDescendantOf","ancestor","isDeclarationName","getDeclarationFromName","isComputedPropertyName","isQualifiedName","binExp","isLiteralComputedPropertyDeclarationName","isIdentifierName","propertyName","isAliasSymbolDeclaration","exportAssignmentIsAlias","isAliasableExpression","getAliasDeclarationFromName","getExportAssignmentExpression","getPropertyAssignmentAliasLikeExpression","getEffectiveBaseTypeNode","getClassExtendsHeritageElement","heritageClause","getHeritageClause","heritageClauses","getEffectiveImplementsTypeNodes","getAllSuperTypeNodes","isInterfaceDeclaration","getInterfaceBaseTypeNodes","clauses","clauses_1","clause","getAncestor","isKeyword","isContextualKeyword","isNonContextualKeyword","isFutureReservedKeyword","isStringANonContextualKeyword","isStringAKeyword","isIdentifierANonContextualKeyword","originalKeywordKind","isTrivia","getFunctionFlags","asteriskToken","isAsyncFunction","isSignedNumericLiteral","isPrefixUnaryExpression","hasDynamicName","getPropertyNameForPropertyNameNode","nameExpression","getEscapedTextOfIdentifierOrLiteral","getPropertyNameForUniqueESSymbol","getSymbolId","getSymbolNameForPrivateIdentifier","containingClassSymbol","description","isKnownSymbol","isPrivateIdentifierSymbol","isESSymbolIdentifier","isPushOrUnshiftIdentifier","isParameterDeclaration","nodeStartsNewLexicalEnvironment","getOriginalSourceFile","getExpressionAssociativity","getOperator","hasArguments","getOperatorAssociativity","getExpressionPrecedence","getOperatorPrecedence","nodeKind","operatorKind","getBinaryOperatorPrecedence","getSemanticJsxChildren","children","containsOnlyTriviaWhiteSpaces","createDiagnosticCollection","nonFileDiagnostics","filesWithDiagnostics","fileDiagnostics","hasReadNonFileDiagnostics","lookup","getGlobalDiagnostics","getDiagnostics","diagnostic","compareDiagnosticsSkipRelatedInformation","fileDiags","unshift","AssignmentKind","FunctionFlags","Associativity","OperatorPrecedence","templateSubstitutionRegExp","hasInvalidEscape","isNoSubstitutionTemplateLiteral","templateFlags","templateSpans","doubleQuoteEscapedCharsRegExp","singleQuoteEscapedCharsRegExp","backtickQuoteEscapedCharsRegExp","escapedCharsMap","\"","encodeUtf16EscapeSequence","hexCharCode","paddedHexCode","getReplacement","quoteChar","escapedCharsRegExp","nonAsciiCharacters","jsxDoubleQuoteEscapedCharsRegExp","jsxSingleQuoteEscapedCharsRegExp","jsxEscapedCharsMap","encodeJsxCharacterEntity","getJsxAttributeStringReplacement","stripQuotes","isQuoteOrBacktick","isIntrinsicJsxName","indentStrings","getIndentString","singleLevel","getIndentSize","createTextWriter","newLine","output","indent","lineCount","linePos","updateLineCountAndPosFor","lineStartsOfS","reset","force","getTextPosWithWriteLine","getTrailingSemicolonDeferringWriter","writer","pendingTrailingSemicolon","commitPendingTrailingSemicolon","sym","hostUsesCaseSensitiveFileNames","hostGetCanonicalFileName","getResolvedExternalModuleName","referenceFile","getExternalModuleNameFromPath","getCanonicalAbsolutePath","getExternalModuleNameFromDeclaration","resolver","getExternalModuleFileFromDeclaration","specifier","getCommonSourceDirectory","referencePath","extensionless","removeFileExtension","getOwnEmitOutputFilePath","emitOutputFilePathWithoutExtension","getCompilerOptions","outDir","getSourceFilePathInNewDir","getDeclarationEmitOutputFilePath","getDeclarationEmitOutputFilePathWorker","commonSourceDirectory","outputDir","declarationDir","getSourceFilePathInNewDirWorker","outFile","out","getPathsBasePath","baseUrl","pathsBasePath","getSourceFilesToEmit","targetSourceFile","forceDtsEmit","moduleKind","moduleEmitEnabled_1","emitDeclarationOnly","AMD","System","getSourceFiles","sourceFileMayBeEmitted","sourceFiles","noEmitForJsFiles","isSourceFileFromExternalLibrary","getResolvedProjectReferenceToRedirect","isSourceOfProjectReferenceRedirect","newDirPath","sourceFilePath","isSourceFileInCommonSourceDirectory","hostErrorMessage","ensureDirectoriesExist","directoryPath","parentDirectory","getLineOfLocalPosition","getLineOfLocalPositionFromLineMap","getSetAccessorValueParameter","accessor","hasThis","parameterIsThisKeyword","getSetAccessorTypeAnnotationNode","getThisParameter","signature","thisParameter","isThisIdentifier","identifierIsThisKeyword","isThisInTypeQuery","getAllAccessorDeclarations","firstAccessor","secondAccessor","getAccessor","setAccessor","isStatic","memberName","accessorName","getEffectiveTypeAnnotationNode","getTypeAnnotationNode","getEffectiveReturnTypeNode","isNonTypeAliasTemplate","getEffectiveSetAccessorTypeAnnotationNode","emitNewLineBeforeLeadingComments","leadingComments","emitNewLineBeforeLeadingCommentsOfPosition","emitNewLineBeforeLeadingCommentOfPosition","emitComments","leadingSeparator","trailingSeparator","emitInterveningSeparator","comments_1","emitDetachedComments","removeComments","currentDetachedCommentInfo","isPinnedCommentLocal","detachedComments","lastComment","leadingComments_1","lastCommentLine","commentLine","nodeLine","nodePos","detachedCommentEndPos","writeCommentRange","firstCommentLineAndCharacter","firstCommentLineIndent","currentLine","nextLineStart","calculateIndent","currentWriterIndentSpacing","spacesToEmit","numberOfSingleSpacesToEmit","indentSizeSpaceString","writeTrimmedCurrentLine","currentLineText","currentLineIndent","hasEffectiveModifiers","hasSyntacticModifiers","getSyntacticModifierFlags","hasEffectiveModifier","getSelectedEffectiveModifierFlags","getSelectedSyntacticModifierFlags","hasOverrideModifier","hasAbstractModifier","hasAmbientModifier","getModifierFlagsWorker","includeJSDoc","alwaysIncludeJSDoc","modifierFlagsCache","getSyntacticModifierFlagsNoCache","getJSDocModifierFlagsNoCache","modifiersToFlags","modifiers","isInJSDocNamespace","modifiers_1","modifier","createModifiers","modifierFlags","factory","createNodeArray","createModifiersFromModifierFlags","isLogicalOperator","isLogicalOrCoalescingAssignmentExpression","tryGetClassExtendingExpressionWithTypeArguments","cls","tryGetClassImplementingOrExtendingExpressionWithTypeArguments","isImplements","isExpressionWithTypeArguments","isHeritageClause","excludeCompoundAssignment","isLeftHandSideOfAssignment","isDestructuringAssignment","isPropertyAccessEntityNameExpression","getFirstIdentifier","isDottedName","tryGetPropertyAccessOrIdentifierToString","baseStr","isRightSideOfQualifiedNameOrPropertyAccess","isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName","isEmptyObjectLiteral","isEmptyArrayLiteral","getLocalSymbolForExportDefault","isExportDefaultSymbol","localSymbol","tryExtractTSExtension","supportedTSExtensionsForExtractExtension","getExpandedCharCodes","base64Digits","convertToBase64","byte1","byte2","byte3","byte4","getStringFromExpandedCharCodes","codes","nextCode","base64encode","base64decode","expandedCharCodes","ch1","ch3","ch4","code1","code2","code3","readJson","jsonText","parseConfigFileTextToJson","config","directoryProbablyExists","AccessKind","carriageReturnLineFeed","lineFeed","getNewLineCharacter","getNewLine","createRange","moveRangeEnd","moveRangePos","moveRangePastDecorators","moveRangePastModifiers","isCollapsedRange","createTokenRange","rangeIsOnSingleLine","rangeStartIsOnSameLineAsRangeEnd","rangeStartPositionsAreOnSameLine","range1","range2","positionsAreOnSameLine","getStartPositionOfRange","rangeEndPositionsAreOnSameLine","rangeEndIsOnSameLineAsRangeStart","getLinesBetweenRangeEndAndRangeStart","includeSecondRangeComments","range2Start","getLinesBetweenRangeEndPositions","isNodeArrayMultiLine","list","includeComments","getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter","stopPos","prevPos","getPreviousNonWhitespacePosition","getLinesBetweenPositionAndNextNonWhitespaceCharacter","nextPos","isDeclarationNameOfEnumOrNamespace","getInitializedVariables","isInitializedVariable","isWatchSet","watch","getCheckFlags","checkFlags","getDeclarationModifierFlagsFromSymbol","isWrite","accessModifier","staticModifier","skipAlias","getAliasedSymbol","getCombinedLocalAndExportSymbolFlags","exportSymbol","isWriteOnlyAccess","accessKind","isWriteAccess","writeOrReadWrite","parentAccess","reverseAccessKind","compareDataObjects","dst","src","clearMap","onDeleteValue","mutateMapSkippingNewValues","newMap","onExistingValue","existingValue","valueInNewMap","mutateMap","createNewValue","isAbstractConstructorSymbol","getClassLikeDeclarationOfSymbol","getObjectFlags","typeHasCallOrConstructSignatures","getSignaturesOfType","forSomeAncestorDirectory","isUMDExportSymbol","isNamespaceExportDeclaration","showModuleSpecifier","getLastChild","lastChild","addToSeen","seen","isObjectTypeDeclaration","getNameOfAccessExpression","isBundleFileTextLike","section","isNamedImportsOrExports","getLeftmostExpression","stopAtCallExpressions","mergeId","Type","Signature","Node","Token","Identifier","SourceMapSource","setObjectAllocator","alloc","baseIndex","_match","messages","localizedDiagnosticMessages","getLocaleSpecificMessage","createDetachedDiagnostic","isDiagnosticWithDetachedLocation","attachFileToDiagnostic","diagnosticWithLocation","related","attachFileToDiagnostics","diagnosticsWithLocation","diagnostics_1","formatMessage","_dummy","createCompilerDiagnosticFromMessageChain","chain","chainDiagnosticMessages","details","concatenateDiagnosticMessageChains","headChain","tailChain","lastChain","getDiagnosticFilePath","d1","d2","compareRelatedInformation","compareMessageText","d1i","d2i","t1","t2","getLanguageVariant","getEmitScriptTarget","getEmitModuleResolutionKind","moduleResolution","NodeJs","Classic","hasJsonModuleEmitEnabled","ES2020","ESNext","unreachableCodeIsError","allowUnreachableCode","unusedLabelIsError","allowUnusedLabels","getAreDeclarationMapsEnabled","getEmitDeclarations","declarationMap","getAllowSyntheticDefaultImports","allowSyntheticDefaultImports","esModuleInterop","composite","shouldPreserveConstEnums","preserveConstEnums","isIncrementalCompilation","incremental","flag","strict","getAllowJSCompilerOption","allowJs","checkJs","getUseDefineForClassFields","useDefineForClassFields","compilerOptionsAffectSemanticDiagnostics","semanticDiagnosticsOptionDeclarations","compilerOptionsAffectEmit","affectsEmitOptionDeclarations","option","strictFlag","getJSXTransformEnabled","jsx","getJSXImplicitImportBase","jsxImportSourcePragmas","pragmas","jsxImportSourcePragma","jsxImportSource","getJSXRuntimeImport","hasZeroOrOneAsteriskCharacter","seenAsterisk","createSymlinkCache","symlinkedDirectories","symlinkedDirectoriesByRealpath","symlinkedFiles","hasProcessedResolutions","getSymlinkedFiles","getSymlinkedDirectories","getSymlinkedDirectoriesByRealpath","setSymlinkedFile","real","setSymlinkedDirectory","symlink","symlinkPath","containsIgnoredPath","realPath","setSymlinkedDirectoryFromSymlinkedFile","guessDirectorySymlink","commonResolved","commonOriginal","setSymlinksFromResolutions","files","typeReferenceDirectives","files_1","resolution","processResolution","aParts","bParts","isDirectory","isNodeModulesOrScopedPackageDirectory","stripLeadingDirectorySeparator","tryRemoveDirectoryPrefix","withoutPrefix","getPrivateIdentifierConstructor","getSourceMapSourceConstructor","reservedCharacterPattern","regExpEscape","escapeRegExpCharacter","wildcardCharCodes","commonPackageFolders","implicitExcludePathRegexPattern","filesMatcher","singleAsteriskRegexFragment","doubleAsteriskRegexFragment","replaceWildcardCharacter","directoriesMatcher","excludeMatcher","wildcardMatchers","directories","exclude","getRegularExpressionForWildcard","specs","patterns","getRegularExpressionsForWildcards","terminator","getSubPatternFromSpec","isImplicitGlob","lastPathComponent","getPatternFromSpec","subpattern","hasWrittenComponent","lastComponent","optionalCount","components_1","componentPattern","getFileMatcherPatterns","excludes","includes","absolutePath","includeFilePatterns","includeFilePattern","includeDirectoryPattern","excludePattern","basePaths","getBasePaths","getRegexFromPattern","matchFiles","depth","getFileSystemEntries","includeFileRegexes","includeDirectoryRegex","excludeRegex","results","visited","toCanonical","visitDirectory","canonicalPath","_loop_1","absoluteName","includeIndex","re","includeBasePaths","includes_1","include","absolute","getIncludeBasePath","_loop_2","includeBasePath","includeBasePaths_1","wildcardOffset","ensureScriptKind","getScriptKindFromFileName","supportedTSExtensions","supportedTSExtensionsWithJson","supportedJSExtensions","supportedJSAndJsonExtensions","allSupportedExtensions","allSupportedExtensionsWithJson","getSupportedExtensions","extraFileExtensions","needJsExtensions","isJSLike","getSuppoertedExtensionsWithJsonIfResolveJsonModule","supportedExtensions","resolveJsonModule","hasJSFileExtension","hasTSFileExtension","isSupportedSourceFileName","numberOfDirectorySeparators","compareNumberOfDirectorySeparators","path1","path2","getExtensionPriority","adjustExtensionPriority","extensionPriority","getNextLowestExtensionPriority","ExtensionPriority","extensionsToRemove","extensionsToRemove_1","tryRemoveExtension","removeExtension","changeExtension","newExtension","tryParsePattern","indexOfStar","tryParsePatterns","extensionIsTS","resolutionExtensionIsTSOrJson","extensionFromPath","isAnySupportedFileExtension","isCheckJsEnabledForFile","checkJsDirective","matchPatternOrExact","patternOrStrings","patternOrStrings_1","patternOrString","sliceAfter","addRelatedInfo","minAndMax","getValue","rangeOfNode","rangeOfTypeParameters","skipTypeChecking","skipLibCheck","skipDefaultLibCheck","hasNoDefaultLib","stringValue","log2Base","nIndex","nonZeroStart","endIndex","bitsNeeded","segments","Uint16Array","bitOffset","segment","digitChar","digit","shiftedDigit","residual","firstNonzeroSegment","segmentsRemaining","mod10","newSegment","segmentValue","pseudoBigIntToString","isValidTypeOnlyAliasUseSite","useSite","isIdentifierInNonEmittingHeritageClause","isPartOfPossiblyValidTypeOrAbstractComputedPropertyName","isShorthandPropertyNameUseSite","typeOnlyDeclarationIsExport","typeOnlyDeclaration","containerKind","isIdentifierTypeReference","arrayIsHomogeneous","length_1","setTextRangePos","setTextRangeEnd","setTextRangePosEnd","setTextRangePosWidth","width","setNodeFlags","newFlags","setParent","setEachParent","children_1","setParentRecursive","rootNode","forEachChildRecursively","bindParentToChildIgnoringJSDoc","bindParentToChild","bindJSDoc","isPackedElement","isPackedArrayLiteral","expressionResultIsUnused","isParenthesizedExpression","isForStatement","isCommaListExpression","getContainingNodeArray","parent_1","isEnumMember","hasContextSensitiveParameters","isInfinityOrNaNString","emptyFileSystemEntries","createBaseNodeFactory","NodeConstructor","TokenConstructor","IdentifierConstructor","PrivateIdentifierConstructor","SourceFileConstructor","createBaseSourceFileNode","createBaseIdentifierNode","createBasePrivateIdentifierNode","createBaseTokenNode","createBaseNode","createParenthesizerRules","binaryLeftOperandParenthesizerCache","binaryRightOperandParenthesizerCache","getParenthesizeLeftSideOfBinaryForOperator","getParenthesizeRightSideOfBinaryForOperator","parenthesizeLeftSideOfBinary","parenthesizeRightSideOfBinary","parenthesizeExpressionOfComputedPropertyName","parenthesizeConditionOfConditionalExpression","parenthesizeBranchOfConditionalExpression","parenthesizeExpressionOfExportDefault","parenthesizeExpressionOfNew","parenthesizeLeftSideOfAccess","parenthesizeOperandOfPostfixUnary","parenthesizeOperandOfPrefixUnary","parenthesizeExpressionsOfCommaDelimitedList","parenthesizeExpressionForDisallowedComma","parenthesizeExpressionOfExpressionStatement","parenthesizeConciseBodyOfArrowFunction","parenthesizeMemberOfConditionalType","parenthesizeMemberOfElementType","parenthesizeElementTypeOfArrayType","parenthesizeConstituentTypesOfUnionOrIntersectionType","parenthesizeTypeArguments","parenthesizerRule","binaryOperandNeedsParentheses","isLeftSideOfBinary","leftOperand","binaryOperatorPrecedence","binaryOperatorAssociativity","emittedOperand","operandPrecedence","operatorHasAssociativeProperty","leftKind","getLiteralKindOfBinaryPlusOperand","operandAssociativity","cachedLiteralKind","literalKind","parenthesizeBinaryOperand","skipped","createParenthesizedExpression","leftSide","rightSide","isCommaSequence","conditionalPrecedence","emittedCondition","conditionPrecedence","branch","emittedExpression","check","needsParens","leftmostExpr","setTextRange","hasTrailingComma","expressionPrecedence","commaPrecedence","callee","updated","updateCallExpression","restoreOuterExpressions","leftmostExpressionKind","createParenthesizedType","parenthesizeOrdinalTypeArgument","nullParenthesizerRules","_binaryOperator","_leftSide","createNodeConverters","convertToFunctionBlock","convertToFunctionExpression","convertToArrayAssignmentElement","convertToObjectAssignmentElement","convertToAssignmentPattern","convertToObjectAssignmentPattern","convertToArrayAssignmentPattern","convertToAssignmentElementTarget","multiLine","returnStatement","createReturnStatement","createBlock","createFunctionExpression","setOriginalNode","getStartsOnNewLine","setStartsOnNewLine","createSpreadElement","createAssignment","createSpreadAssignment","createPropertyAssignment","createShorthandPropertyAssignment","isObjectBindingPattern","createObjectLiteralExpression","isArrayBindingPattern","createArrayLiteralExpression","nullNodeConverters","rawTextScanner","nextAutoGenerateId","createNodeFactory","baseFactory","update","updateWithoutOriginal","updateWithOriginal","parenthesizerRules","converters","getBinaryCreateFunction","createBinaryExpression","getPrefixUnaryCreateFunction","createPrefixUnaryExpression","getPostfixUnaryCreateFunction","createPostfixUnaryExpression","getJSDocPrimaryTypeCreateFunction","createJSDocPrimaryTypeWorker","getJSDocUnaryTypeCreateFunction","createJSDocUnaryTypeWorker","getJSDocUnaryTypeUpdateFunction","updateJSDocUnaryTypeWorker","getJSDocSimpleTagCreateFunction","createJSDocSimpleTagWorker","getJSDocSimpleTagUpdateFunction","updateJSDocSimpleTagWorker","getJSDocTypeLikeTagCreateFunction","createJSDocTypeLikeTagWorker","getJSDocTypeLikeTagUpdateFunction","updateJSDocTypeLikeTagWorker","createNumericLiteral","createBigIntLiteral","createStringLiteral","createStringLiteralFromNode","createRegularExpressionLiteral","createLiteralLikeNode","createIdentifier","updateIdentifier","createTempVariable","createLoopVariable","createUniqueName","getGeneratedNameForNode","createPrivateIdentifier","createToken","createSuper","createThis","createNull","createTrue","createFalse","createModifier","createQualifiedName","updateQualifiedName","createComputedPropertyName","updateComputedPropertyName","createTypeParameterDeclaration","updateTypeParameterDeclaration","createParameterDeclaration","updateParameterDeclaration","createDecorator","updateDecorator","createPropertySignature","updatePropertySignature","createPropertyDeclaration","updatePropertyDeclaration","createMethodSignature","updateMethodSignature","createMethodDeclaration","updateMethodDeclaration","createConstructorDeclaration","updateConstructorDeclaration","createGetAccessorDeclaration","updateGetAccessorDeclaration","createSetAccessorDeclaration","updateSetAccessorDeclaration","createCallSignature","updateCallSignature","createConstructSignature","updateConstructSignature","createIndexSignature","updateIndexSignature","createClassStaticBlockDeclaration","updateClassStaticBlockDeclaration","createTemplateLiteralTypeSpan","updateTemplateLiteralTypeSpan","createKeywordTypeNode","createTypePredicateNode","updateTypePredicateNode","createTypeReferenceNode","updateTypeReferenceNode","createFunctionTypeNode","updateFunctionTypeNode","createConstructorTypeNode","updateConstructorTypeNode","createTypeQueryNode","updateTypeQueryNode","createTypeLiteralNode","updateTypeLiteralNode","createArrayTypeNode","updateArrayTypeNode","createTupleTypeNode","updateTupleTypeNode","createNamedTupleMember","updateNamedTupleMember","createOptionalTypeNode","updateOptionalTypeNode","createRestTypeNode","updateRestTypeNode","createUnionTypeNode","updateUnionTypeNode","createIntersectionTypeNode","updateIntersectionTypeNode","createConditionalTypeNode","updateConditionalTypeNode","createInferTypeNode","updateInferTypeNode","createImportTypeNode","updateImportTypeNode","updateParenthesizedType","createThisTypeNode","createTypeOperatorNode","updateTypeOperatorNode","createIndexedAccessTypeNode","updateIndexedAccessTypeNode","createMappedTypeNode","updateMappedTypeNode","createLiteralTypeNode","updateLiteralTypeNode","createTemplateLiteralType","updateTemplateLiteralType","createObjectBindingPattern","updateObjectBindingPattern","createArrayBindingPattern","updateArrayBindingPattern","createBindingElement","updateBindingElement","updateArrayLiteralExpression","updateObjectLiteralExpression","createPropertyAccessExpression","setEmitFlags","updatePropertyAccessExpression","createPropertyAccessChain","updatePropertyAccessChain","createElementAccessExpression","updateElementAccessExpression","createElementAccessChain","updateElementAccessChain","createCallExpression","createCallChain","updateCallChain","createNewExpression","updateNewExpression","createTaggedTemplateExpression","updateTaggedTemplateExpression","createTypeAssertion","updateTypeAssertion","updateParenthesizedExpression","updateFunctionExpression","createArrowFunction","updateArrowFunction","createDeleteExpression","updateDeleteExpression","createTypeOfExpression","updateTypeOfExpression","createVoidExpression","updateVoidExpression","createAwaitExpression","updateAwaitExpression","updatePrefixUnaryExpression","updatePostfixUnaryExpression","updateBinaryExpression","createConditionalExpression","updateConditionalExpression","createTemplateExpression","updateTemplateExpression","createTemplateHead","createTemplateMiddle","createTemplateTail","createNoSubstitutionTemplateLiteral","createTemplateLiteralLikeNode","createYieldExpression","updateYieldExpression","updateSpreadElement","createClassExpression","updateClassExpression","createOmittedExpression","createExpressionWithTypeArguments","updateExpressionWithTypeArguments","createAsExpression","updateAsExpression","createNonNullExpression","updateNonNullExpression","createNonNullChain","updateNonNullChain","createMetaProperty","updateMetaProperty","createTemplateSpan","updateTemplateSpan","createSemicolonClassElement","updateBlock","createVariableStatement","updateVariableStatement","createEmptyStatement","createExpressionStatement","updateExpressionStatement","createIfStatement","updateIfStatement","createDoStatement","updateDoStatement","createWhileStatement","updateWhileStatement","createForStatement","updateForStatement","createForInStatement","updateForInStatement","createForOfStatement","updateForOfStatement","createContinueStatement","updateContinueStatement","createBreakStatement","updateBreakStatement","updateReturnStatement","createWithStatement","updateWithStatement","createSwitchStatement","updateSwitchStatement","createLabeledStatement","updateLabeledStatement","createThrowStatement","updateThrowStatement","createTryStatement","updateTryStatement","createDebuggerStatement","createVariableDeclaration","updateVariableDeclaration","createVariableDeclarationList","updateVariableDeclarationList","createFunctionDeclaration","updateFunctionDeclaration","createClassDeclaration","updateClassDeclaration","createInterfaceDeclaration","updateInterfaceDeclaration","createTypeAliasDeclaration","updateTypeAliasDeclaration","createEnumDeclaration","updateEnumDeclaration","createModuleDeclaration","updateModuleDeclaration","createModuleBlock","updateModuleBlock","createCaseBlock","updateCaseBlock","createNamespaceExportDeclaration","updateNamespaceExportDeclaration","createImportEqualsDeclaration","updateImportEqualsDeclaration","createImportDeclaration","updateImportDeclaration","createImportClause","updateImportClause","createNamespaceImport","updateNamespaceImport","createNamespaceExport","updateNamespaceExport","createNamedImports","updateNamedImports","createImportSpecifier","updateImportSpecifier","createExportAssignment","updateExportAssignment","createExportDeclaration","updateExportDeclaration","createNamedExports","updateNamedExports","createExportSpecifier","updateExportSpecifier","createMissingDeclaration","createExternalModuleReference","updateExternalModuleReference","createJSDocFunctionType","updateJSDocFunctionType","createJSDocTypeLiteral","updateJSDocTypeLiteral","createJSDocTypeExpression","updateJSDocTypeExpression","createJSDocSignature","updateJSDocSignature","createJSDocTemplateTag","updateJSDocTemplateTag","createJSDocTypedefTag","updateJSDocTypedefTag","createJSDocParameterTag","updateJSDocParameterTag","createJSDocPropertyTag","updateJSDocPropertyTag","createJSDocCallbackTag","updateJSDocCallbackTag","createJSDocAugmentsTag","updateJSDocAugmentsTag","createJSDocImplementsTag","updateJSDocImplementsTag","createJSDocSeeTag","updateJSDocSeeTag","createJSDocNameReference","updateJSDocNameReference","createJSDocMemberName","updateJSDocMemberName","createJSDocLink","updateJSDocLink","createJSDocLinkCode","updateJSDocLinkCode","createJSDocLinkPlain","updateJSDocLinkPlain","createJSDocUnknownTag","updateJSDocUnknownTag","createJSDocText","updateJSDocText","createJSDocComment","updateJSDocComment","createJsxElement","updateJsxElement","createJsxSelfClosingElement","updateJsxSelfClosingElement","createJsxOpeningElement","updateJsxOpeningElement","createJsxClosingElement","updateJsxClosingElement","createJsxFragment","createJsxText","updateJsxText","createJsxOpeningFragment","createJsxJsxClosingFragment","updateJsxFragment","createJsxAttribute","updateJsxAttribute","createJsxAttributes","updateJsxAttributes","createJsxSpreadAttribute","updateJsxSpreadAttribute","createJsxExpression","updateJsxExpression","createCaseClause","updateCaseClause","createDefaultClause","updateDefaultClause","createHeritageClause","updateHeritageClause","createCatchClause","updateCatchClause","updatePropertyAssignment","updateShorthandPropertyAssignment","updateSpreadAssignment","createEnumMember","updateEnumMember","createSourceFile","updateSourceFile","createBundle","updateBundle","createUnparsedSource","createUnparsedPrologue","createUnparsedPrepend","createUnparsedTextLike","createUnparsedSyntheticReference","createInputFiles","createSyntheticExpression","createSyntaxList","createNotEmittedStatement","createPartiallyEmittedExpression","updatePartiallyEmittedExpression","createCommaListExpression","updateCommaListExpression","createEndOfDeclarationMarker","createMergeDeclarationMarker","createSyntheticReferenceExpression","updateSyntheticReferenceExpression","cloneNode","createImmediatelyInvokedFunctionExpression","createImmediatelyInvokedArrowFunction","createVoidZero","createExportDefault","createExternalModuleExport","createTypeCheck","createMethodCall","createGlobalMethodCall","createFunctionBindCall","createFunctionCallCall","createFunctionApplyCall","createArraySliceCall","createArrayConcatCall","createObjectDefinePropertyCall","createReflectGetCall","createReflectSetCall","createPropertyDescriptor","createCallBinding","createAssignmentTargetWrapper","inlineExpressions","getInternalName","getLocalName","getExportName","getDeclarationName","getNamespaceMemberName","getExternalModuleOrNamespaceExportName","restoreEnclosingLabel","createUseStrictPrologue","copyPrologue","copyStandardPrologue","copyCustomPrologue","ensureUseStrict","liftToBlock","mergeLexicalEnvironment","updateModifiers","aggregateChildrenFlags","array_8","createBaseDeclaration","asNodeArray","propagateChildrenFlags","locals","nextContainer","createBaseNamedDeclaration","asName","propagateIdentifierNameFlags","propagateChildFlags","createBaseGenericNamedDeclaration","createBaseSignatureDeclaration","updateBaseSignatureDeclaration","createBaseFunctionLikeDeclaration","updateBaseFunctionLikeDeclaration","exclamationToken","createBaseInterfaceOrClassLikeDeclaration","createBaseClassLikeDeclaration","createBaseBindingLikeDeclaration","createBaseVariableLikeDeclaration","createBaseLiteral","createBaseToken","createBaseStringLiteral","isSingleQuote","sourceNode","textSourceNode","createBaseIdentifier","createBaseGeneratedIdentifier","autoGenerateId","recordTempVariable","reservedInNestedScopes","defaultType","questionOrExclamationToken","isQuestionToken","isExclamationToken","assertsModifier","parameterName","createConstructorTypeNode1","createConstructorTypeNode2","updateConstructorTypeNode1","updateConstructorTypeNode2","exprName","createUnionOrIntersectionTypeNode","updateUnionOrIntersectionTypeNode","trueType","falseType","typeParameter","qualifier","readonlyToken","nameType","createBaseExpression","lastElement","elementsArray","isSuperKeyword","asExpression","argumentsArray","isImportKeyword","equalsGreaterThanToken","isLocalName","asToken","propagateAssignmentPatternFlags","getElementsOfBindingOrAssignmentPattern","getTargetOfBindingOrAssignmentElement","flags_1","whenTrue","colonToken","whenFalse","createTemplateLiteralLikeNodeChecked","getCookedText","thenStatement","elseStatement","asEmbeddedStatement","awaitModifier","caseBlock","tryBlock","catchClause","finallyBlock","isExportEquals","propertyTags","isArrayType","jsDocPropertyTags","getDefaultTagName","defaultTagName","getDefaultTagNameForKind","createBaseJSDocTag","getJSDocTypeAliasName","isBracketed","isNameFirst","className","openingElement","closingElement","attributes","openingFragment","closingFragment","variableDeclaration","block","finishUpdatePropertyAssignment","finishUpdateShorthandPropertyAssignment","equalsToken","endOfFileToken","cloneSourceFileWithChanges","referencedFiles","typeReferences","libReferences","libReferenceDirectives","prepends","prologues","syntheticReferences","texts","createBaseUnparsedNode","internal","javascriptText","declarationText","isSpread","tupleNameSource","flattenCommaElements","isCommaToken","paramValue","exportName","createStrictEquality","methodName","argumentsList","argumentsExpression","globalObjectName","propertyKey","receiver","tryAddPropertyAssignment","singleLine","isData","writable","updateOuterExpression","outerExpression","isIgnorableParen","getSourceMapRange","getCommentRange","getSyntheticLeadingComments","getSyntheticTrailingComments","innerExpression","kinds","isOuterExpression","outermostLabeledStatement","afterRestoreLabelCallback","isLabeledStatement","shouldBeCapturedInTempVariable","cacheIdentifiers","paramName","expressions","createComma","allowComments","allowSourceMaps","emitFlags","nodeName","qualifiedName","isUseStrictPrologue","startOnNewLine","foundUseStrict","statementOffset","numStatements","visitNode","findUseStrictPrologue","findSpanEnd","leftStandardPrologueEnd","leftHoistedFunctionsEnd","leftHoistedVariablesEnd","rightStandardPrologueEnd","rightHoistedFunctionsEnd","rightHoistedVariablesEnd","rightCustomPrologueEnd","leftPrologues","leftPrologue","rightPrologue","isMethodSignature","isMethodDeclaration","isEnumDeclaration","isImportEqualsDeclaration","isImportDeclaration","NodeFactoryFlags","invalidValueSentinel","propagatePropertyNameFlagsOfChild","childFlags","getTransformFlagsSubtreeExclusions","subtreeFlags","children_2","makeSynthetic","syntheticFactory","createUnparsedSourceFile","textOrInputFiles","mapPathOrType","mapTextOrStripInternal","stripInternal","bundleFileInfo","sourceMapPath","sourceMapText","getSourceMapText","oldFileOfCurrentEmit","javascriptPath","declarationPath","javascriptMapPath","declarationMapPath","javascriptMapText","declarationMapText","buildInfo","bundle","js","dts","parseOldFileOfCurrentEmit","parseUnparsedSourceFile","helpers","prependChildren","sections","getAllUnscopedEmitHelpers","prependTexts","textNode","parseNodeFactory","sources","javascriptTextOrReadFileText","declarationTextOrJavascriptPath","javascriptMapTextOrDeclarationPath","declarationMapTextOrBuildInfoPath","buildInfoPath","buildInfo_1","cache_1","textGetter_1","definedTextGetter_1","getAndCacheBuildInfo_1","getBuildInfo","createSourceMapSource","mergeEmitNode","sourceEmitNode","destEmitNode","trailingComments","commentRange","sourceMapRange","tokenSourceMapRanges","constantValue","startsOnNewLine","mergeTokenSourceMapRanges","helpers_1","helper","sourceRanges","destRanges","getOrCreateEmitNode","annotatedNodes","disposeEmitNodes","annotatedNodes_1","removeAllComments","addEmitFlags","setSourceMapRange","getTokenSourceMapRange","setTokenSourceMapRange","setCommentRange","setSyntheticLeadingComments","addSyntheticLeadingComment","setSyntheticTrailingComments","addSyntheticTrailingComment","moveSyntheticComments","emit","getConstantValue","setConstantValue","addEmitHelper","addEmitHelpers","helpers_2","removeEmitHelper","getEmitHelpers","moveEmitHelpers","sourceEmitHelpers","targetEmitNode","helpersRemoved","ignoreSourceNewlines","createEmitHelperFactory","context","immutableTrue","immutableFalse","getUnscopedHelperName","createDecorateHelper","createMetadataHelper","createParamHelper","createAssignHelper","createAwaitHelper","createAsyncGeneratorHelper","createAsyncDelegatorHelper","createAsyncValuesHelper","createRestHelper","createAwaiterHelper","createExtendsHelper","createTemplateObjectHelper","createSpreadArrayHelper","createValuesHelper","createReadHelper","createGeneratorHelper","createCreateBindingHelper","createImportStarHelper","createImportStarCallbackHelper","createImportDefaultHelper","createExportStarHelper","createClassPrivateFieldGetHelper","createClassPrivateFieldSetHelper","decoratorExpressions","requestEmitHelper","decorateHelper","metadataKey","metadataValue","metadataHelper","parameterOffset","location","paramHelper","attributesSegments","assignHelper","awaitHelper","generatorFunc","hasLexicalThis","asyncGeneratorHelper","asyncDelegator","asyncValues","computedTempVariables","restHelper","propertyNames","computedTempVariableOffset","getPropertyNameOfBindingOrAssignmentElement","createAdd","hasLexicalArguments","promiseConstructor","awaiterHelper","createExpressionFromEntityName","extendsHelper","templateObjectHelper","packFrom","spreadArrayHelper","valuesHelper","iteratorRecord","readHelper","generatorHelper","inputName","outputName","createBindingHelper","importStarHelper","importDefaultHelper","moduleExpression","exportsExpression","exportStarHelper","classPrivateFieldGetHelper","classPrivateFieldSetHelper","compareEmitHelpers","priority","helperString","uniqueName","allUnscopedEmitHelpers","setModuleDefaultHelper","isCallToHelper","firstSegment","helperName","importName","scoped","dependencies","asyncSuperHelper","advancedAsyncSuperHelper","isRegularExpressionLiteral","isTemplateHead","isTemplateMiddle","isTemplateTail","isDotDotDotToken","isPlusToken","isMinusToken","isAsteriskToken","isColonToken","isQuestionDotToken","isEqualsGreaterThanToken","isExportModifier","isAsyncModifier","isAssertsKeyword","isAwaitKeyword","isReadonlyKeyword","isStaticModifier","isAbstractModifier","isDecorator","isTemplateLiteralTypeSpan","isTemplateLiteralTypeNode","isNewExpression","isTaggedTemplateExpression","isTypeAssertionExpression","isDeleteExpression","isTypeOfExpression","isAwaitExpression","isPostfixUnaryExpression","isConditionalExpression","isTemplateExpression","isYieldExpression","isSpreadElement","isAsExpression","isSyntheticExpression","isTemplateSpan","isSemicolonClassElement","isEmptyStatement","isIfStatement","isDoStatement","isWhileStatement","isForInStatement","isForOfStatement","isContinueStatement","isBreakStatement","isReturnStatement","isWithStatement","isSwitchStatement","isThrowStatement","isTryStatement","isDebuggerStatement","isCaseBlock","isImportClause","isNamedImports","isNamedExports","isMissingDeclaration","isSyntheticReference","isMergeDeclarationMarker","isEndOfDeclarationMarker","isJsxElement","isJsxSelfClosingElement","isJsxOpeningElement","isJsxClosingElement","isJsxFragment","isJsxOpeningFragment","isJsxClosingFragment","isJsxAttribute","isJsxAttributes","isJsxSpreadAttribute","isJsxExpression","isCaseClause","isDefaultClause","isCatchClause","isSpreadAssignment","isUnparsedPrepend","isBundle","isUnparsedSource","isJSDocLink","isJSDocLinkCode","isJSDocLinkPlain","isJSDocAllType","isJSDocUnknownType","isJSDocNullableType","isJSDocNonNullableType","isJSDocOptionalType","isJSDocVariadicType","isJSDocNamepathType","isJSDocAuthorTag","isJSDocCallbackTag","isJSDocSeeTag","isJSDocTypedefTag","isJSDocUnknownTag","isJSDocPropertyTag","isSyntaxList","createEmptyExports","createMemberAccessForPropertyName","createReactNamespace","reactNamespace","react","createJsxFactoryExpressionFromEntityName","jsxFactory","createJsxFactoryExpression","jsxFactoryEntity","createJsxFragmentFactoryExpression","jsxFragmentFactoryEntity","createExpressionForJsxElement","props","children_3","createExpressionForJsxFragment","parentElement","children_4","createForOfBindingStatement","boundValue","updatedDeclaration","updatedExpression","insertLeadingStatement","dest","createExpressionForPropertyName","createExpressionForAccessorDeclaration","createExpressionForPropertyAssignment","createExpressionForShorthandPropertyAssignment","createExpressionForMethodDeclaration","method","createExpressionForObjectLiteralElementLike","expandPreOrPostfixIncrementOrDecrementExpression","resultVariable","operation","isInternalName","isExportName","statements_1","firstStatement","skipAssertions","getExternalHelpersModuleName","externalHelpersModuleName","hasRecordedExternalHelpers","externalHelpers","createExternalHelpersImportDeclarationIfNeeded","nodeFactory","helperFactory","hasExportStarsToExportValues","hasImportStar","hasImportDefault","importHelpers","helperNames","helpers_3","getOrCreateExternalHelpersModuleNameIfNeeded","externalHelpersImportDeclaration","hasImportStarOrImportDefault","helpers_4","getLocalNameForExternalImport","namespaceDeclaration","getExternalModuleNameLiteral","importNode","tryGetModuleNameFromDeclaration","tryRenameExternalModule","rename","renamedDependencies","tryGetModuleNameFromFile","getInitializerOfBindingOrAssignmentElement","getRestIndicatorOfBindingOrAssignmentElement","tryGetPropertyNameOfBindingOrAssignmentElement","isStringOrNumericLiteral","rightNode","canHaveModifiers","isLiteralTypeLikeExpression","isExponentiationOperator","isMultiplicativeOperator","isMultiplicativeOperatorOrHigher","isAdditiveOperator","isAdditiveOperatorOrHigher","isShiftOperator","isShiftOperatorOrHigher","isRelationalOperator","isRelationalOperatorOrHigher","isEqualityOperator","isEqualityOperatorOrHigher","isBitwiseOperator","isBitwiseOperatorOrHigher","isLogicalOperatorOrHigher","isAssignmentOperatorOrHigher","isBinaryOperator","isBinaryOperatorToken","BinaryExpressionState","isTypeNodeOrTypeParameterDeclaration","isQuestionOrExclamationToken","isIdentifierOrThisTypeNode","isReadonlyKeywordOrPlusOrMinusToken","isQuestionOrPlusOrMinusToken","isModuleName","machine","stackIndex","stateStack","nodeStack","userStateStack","_resultHolder","outerState","prevUserState","onEnter","nextState","_outerState","onLeft","nextNode","checkCircularity","pushStack","onOperator","onRight","resultHolder","onExit","foldState","side","_machine","_nodeStack","_userStateStack","currentState","BinaryExpressionStateMachine","createBinaryExpressionTrampoline","trampoline","SpeculationKind","Parser","IncrementalParser","cbNode","visitNodes","cbNodes","nodes_1","isJSDocLikeText","gatherPossibleChildren","parents","addWorkItem","setParentNodes","parseSourceFile","parseIsolatedEntityName","parseJsonText","textChangeRange","aggressiveChecks","newSourceFile","parseIsolatedJSDocComment","content","JSDocParser","fixupParentReferences","parseJSDocTypeExpressionForTests","isDeclarationFileName","processCommentPragmas","extractPragmas","pragmas_1","pragma","currentValue","processPragmasIntoFields","reportDiagnostic","amdDependencies","entryOrList","referencedFiles_1","typeReferenceDirectives_1","libReferenceDirectives_1","lib","entryOrList_1","parseBaseNodeFactory","disallowInAndDecoratorContext","countNode","nodeCount","sourceFlags","parseDiagnostics","jsDocDiagnostics","syntaxCursor","currentToken","privateIdentifiers","identifierCount","parsingContext","notParenthesizedArrow","contextFlags","baseNodeFactory","topLevel","parseErrorBeforeNextFinishedNode","result_3","convertToObjectWorker","initializeState","parseSourceFileWorker","clearState","nextToken","parseEntityName","isInvalid","getNodePos","parseTokenNode","expression_1","parseArrayLiteralExpression","parsePrefixUnaryExpression","parseObjectLiteralExpression","parseLiteralNode","parseErrorAtCurrentToken","finishNode","parseExpectedToken","_sourceText","_languageVersion","_syntaxCursor","_scriptKind","scanError","parseList","parseStatement","addJSDocComment","reportPragmaDiagnostic","withJSDoc","hasJSDoc","hasDeprecatedTag","parseJSDocComment","reparseTopLevelAwait","savedSyntaxCursor","baseSyntaxCursor","createSyntaxCursor","currentNode","savedParseDiagnostics","findNextStatementWithAwait","_loop_3","prevStatement","nextStatement","findNextStatementWithoutAwait","diagnosticStart","diagnosticEnd","savedContextFlags","parseListElement","nonAwaitStatement","prevStatement_1","containsPossibleTopLevelAwait","intersectsChange","setExternalModuleIndicator","bindDiagnostics","bindSuggestionDiagnostics","setContextFlag","val","setDisallowInContext","setYieldContext","setDecoratorContext","setAwaitContext","doOutsideOfContext","contextFlagsToClear","doInsideOfContext","contextFlagsToSet","allowInAnd","disallowInAnd","doInYieldContext","doInDecoratorContext","doInAwaitContext","doOutsideOfAwaitContext","doInYieldAndAwaitContext","doOutsideOfYieldAndAwaitContext","inContext","inYieldContext","inDisallowInContext","inDecoratorContext","inAwaitContext","parseErrorAt","parseErrorAtPosition","lastError","parseErrorAtRange","nextTokenWithoutCheck","nextTokenAnd","nextTokenJSDoc","scanJsxText","speculationKind","saveParseDiagnosticsLength","saveParseErrorBeforeNextFinishedNode","saveContextFlags","isBindingIdentifier","parseExpected","diagnosticMessage","shouldAdvance","ParsingContext","Tristate","viableKeywordSuggestions","parseErrorForMissingSemicolonAfter","expressionText","parseErrorForInvalidName","suggestion","getSpaceSuggestion","nameDiagnostic","blankDiagnostic","tokenIfBlankName","viableKeywordSuggestions_1","parseSemicolonAfterPropertyName","canParseSemicolon","tryParseSemicolon","parseExpectedJSDoc","parseOptional","parseOptionalToken","parseOptionalTokenJSDoc","parseTokenNodeJSDoc","createMissingNode","parseExpectedTokenJSDoc","parseSemicolon","reportAtCurrentPosition","internIdentifier","privateIdentifierDiagnosticMessage","msgArg","defaultMessage","parseBindingIdentifier","parseIdentifier","parseIdentifierName","isLiteralPropertyName","parsePropertyNameWorker","allowComputedPropertyNames","parseComputedPropertyName","parsePrivateIdentifier","parsePropertyName","parseExpression","internPrivateIdentifier","privateIdentifier","parseContextualModifier","nextTokenCanFollowModifier","nextTokenIsOnSameLineAndCanFollowModifier","canFollowModifier","nextTokenCanFollowDefaultKeyword","nextTokenCanFollowExportModifier","canFollowExportModifier","parseAnyContextualModifier","nextTokenIsClassKeywordOnSameLine","nextTokenIsFunctionKeywordOnSameLine","isListElement","inErrorRecovery","isStartOfStatement","isTypeMemberStart","isClassMemberStart","isValidHeritageClauseObjectLiteral","isHeritageClauseExtendsOrImplementsKeyword","isStartOfLeftHandSideExpression","isBindingIdentifierOrPrivateIdentifierOrPattern","isStartOfExpression","isStartOfParameter","isStartOfType","nextTokenIsIdentifier","nextTokenIsIdentifierOrKeyword","nextTokenIsIdentifierOrKeywordOrGreaterThan","nextTokenIsStartOfExpression","nextTokenIsStartOfType","isListTerminator","isVariableDeclaratorListTerminator","nextTokenIsSlash","isInOrOfKeyword","isInSomeParsingContext","parseElement","saveParsingContext","listPos","abortParsingListOrMoveToNextToken","consumeNode","isReusableParsingContext","nodeContextFlags","canReuseNode","isReusableClassMember","isReusableSwitchClause","isReusableStatement","isReusableEnumMember","isReusableTypeMember","isReusableVariableDeclaration","isReusableParameter","methodDeclaration","nameIsConstructor","variableDeclarator","parsingContextErrors","parseDelimitedList","considerSemicolonAsDelimiter","commaStart","getExpectedCommaDiagnostic","createMissingList","isMissingList","parseBracketedList","open","allowReservedWords","entity","dotPos","jsdocDotPos","parseRightSideOfDot","allowIdentifierNames","allowPrivateIdentifiers","matchesPattern","nextTokenIsIdentifierOrKeywordOnSameLine","parseTemplateSpans","parseTemplateSpan","parseTemplateExpression","parseTemplateHead","parseTemplateType","parseTemplateTypeSpans","parseTemplateTypeSpan","parseType","parseLiteralOfTemplateSpan","parseTemplateMiddleOrTemplateTail","parseLiteralLikeNode","fragment","getTemplateLiteralRawText","isLast","tokenText","parseEntityNameOfTypeReference","parseTypeArgumentsOfTypeReference","parseTypeReference","typeHasArrowFunctionBlockingParseError","parseThisTypePredicate","parseThisTypeNode","parseJSDocAllType","createJSDocAllType","parseJSDocNonNullableType","createJSDocNonNullableType","parseNonArrayType","parseJSDocUnknownOrNullableType","createJSDocUnknownType","createJSDocNullableType","parseJSDocFunctionType","nextTokenIsOpenParen","parseParameters","parseReturnType","parseJSDocParameter","parseJSDocType","moduleTag","createJSDocNamepathType","terminate","hasDotDotDot","parseTypeOrTypePredicate","createJSDocVariadicType","createJSDocOptionalType","parseTypeQuery","parseTypeParameter","parseUnaryExpressionOrHigher","parseTypeParameters","isJSDocParameter","parseNameOfParameter","parseIdentifierOrPattern","parseParameterInOuterAwaitContext","parseParameterWorker","parseParameter","inOuterAwaitContext","parseDecorators","node_1","parseTypeAnnotation","savedTopLevel","parseModifiers","parseInitializer","returnToken","isType","shouldParseReturnType","parseParametersWorker","savedYieldContext","savedAwaitContext","parseTypeMemberSemicolon","parseSignatureMember","isIndexSignature","isUnambiguouslyIndexSignature","parseIndexSignatureDeclaration","parsePropertyOrMethodSignature","parseTypeMember","nextTokenIsOpenParenOrLessThan","parseAccessorDeclaration","nextTokenIsDot","nextTokenIsOpenParenOrLessThanOrDot","parseTypeLiteral","parseObjectTypeMembers","isStartOfMappedType","parseMappedTypeParameter","parseMappedType","parseTupleElementType","isNextTokenColonOrQuestionColon","isTupleElementName","parseTupleElementNameOrTupleElementType","parseTupleType","parseParenthesizedType","parseModifiersForConstructorType","parseFunctionOrConstructorType","isConstructorType","parseKeywordAndNoDot","parseLiteralTypeNode","isStartOfTypeOfImportType","parseImportType","nextTokenIsNumericOrBigIntLiteral","thisKeyword","parseAssertsTypePredicate","inStartOfParameter","isStartOfParenthesizedOrFunctionType","parsePostfixTypeOrHigher","parseTypeOperator","parseTypeOperatorOrHigher","parseTypeParameterOfInferType","parseInferType","parseFunctionOrConstructorTypeToError","isInUnionType","isStartOfFunctionTypeOrConstructorType","parseUnionOrIntersectionType","parseConstituentType","createTypeNode","isUnionType","hasLeadingOperator","parseIntersectionTypeOrHigher","parseUnionTypeOrHigher","nextTokenIsNewKeyword","isUnambiguouslyStartOfFunctionType","skipParameterStart","previousErrorCount","typePredicateVariable","parseTypePredicatePrefix","parseTypeWorker","noConditionalTypes","isStartOfExpressionStatement","saveDecoratorContext","parseAssignmentExpressionOrHigher","makeBinaryExpression","parseYieldExpression","arrowExpression","tryParseParenthesizedArrowFunctionExpression","tryParseAsyncSimpleArrowFunctionExpression","parseBinaryExpressionOrHigher","parseSimpleArrowFunctionExpression","parseConditionalExpressionRest","nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine","nextTokenIsIdentifierOnSameLine","asyncModifier","parseArrowFunctionExpressionBody","triState","isParenthesizedArrowFunctionExpression","parseParenthesizedArrowFunctionExpression","parsePossibleParenthesizedArrowFunctionExpression","isParenthesizedArrowFunctionExpressionWorker","third","isArrowFunctionInJsx","fourth","isUnParenthesizedAsyncArrowFunctionWorker","parseModifiersForArrowFunction","allowAmbiguity","isAsync","hasJSDocFunctionType","lastToken","parseFunctionBlock","precedence","parseBinaryExpressionRest","newPrecedence","consumeCurrentOperator","makeAsExpression","parseSimpleUnaryExpression","parseDeleteExpression","parseTypeOfExpression","parseVoidExpression","parseAwaitExpression","isUpdateExpression","updateExpression","parseUpdateExpression","simpleUnaryExpression","parseTypeAssertion","parseLeftHandSideExpressionOrHigher","parseJsxElementOrSelfClosingElementOrFragment","parseMemberExpressionOrHigher","parseSuperExpression","parseCallExpressionRest","parsePrimaryExpression","parseMemberExpressionRest","parseTypeArgumentsInExpression","inExpressionContext","topInvalidNodePosition","openingTag","opening","parseJsxOpeningOrSelfClosingElementOrOpeningFragment","parseJsxChildren","tagNamesAreEquivalent","newLast","parseJsxClosingElement","parseJsxClosingFragment","topBadPos_1","invalidElement","parseJsxText","parseJsxChild","parseJsxExpression","parseJsxAttributes","parseJsxAttribute","parseJsxElementName","tryParseTypeArguments","parseJsxSpreadAttribute","nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate","isTemplateStartOfTaggedTemplate","isStartOfOptionalPropertyOrElementAccessChain","tryReparseOptionalChain","parsePropertyAccessExpressionRest","propertyAccess","parseElementAccessExpressionRest","indexedAccess","allowOptionalChain","isPropertyAccess","parseTaggedTemplateRest","tagExpression","argumentList","parseArgumentList","callExpr","parseArgumentExpression","canFollowTypeArgumentsInExpression","parseParenthesizedExpression","parseFunctionExpression","parseClassExpression","parseNewExpressionOrNewDotTarget","parseSpreadElement","parseArgumentOrArrayLiteralElement","parseObjectLiteralElement","tokenIsIdentifier","parseMethodDeclaration","openBracePosition","savedDecoratorContext","isGenerator","parseOptionalBindingIdentifier","expressionPos","parseBlock","ignoreMissingOpenBrace","parseEmptyStatement","parseIfStatement","parseDoStatement","parseWhileStatement","parseForOrForInOrForOfStatement","awaitToken","parseVariableDeclarationList","parseBreakOrContinueStatement","parseReturnStatement","parseWithStatement","parseCaseClause","parseDefaultClause","parseCaseOrDefaultClause","parseCaseBlock","parseSwitchStatement","parseThrowStatement","parseTryStatement","parseCatchClause","parseVariableDeclaration","parseDebuggerStatement","parseExpressionOrLabeledStatement","hasParen","nextTokenIsIdentifierOrStringLiteralOnSameLine","currentToken_1","isStartOfDeclaration","nextTokenIsBindingIdentifierOrStartOfDestructuring","isLetDeclaration","parseVariableStatement","parseFunctionDeclaration","parseClassDeclaration","parseDeclaration","isDeclareModifier","isAmbient","tryReuseAmbientDeclaration","parseDeclarationWorker","parseInterfaceDeclaration","parseTypeAliasDeclaration","parseEnumDeclaration","parseModuleDeclaration","parseImportDeclarationOrImportEqualsDeclaration","parseExportAssignment","parseNamespaceExportDeclaration","parseExportDeclaration","missing","parseFunctionBlockOrSemicolon","parseArrayBindingElement","parseObjectBindingElement","parseObjectBindingPattern","parseArrayBindingPattern","parseVariableDeclarationAllowExclamation","allowExclamation","inForStatementInitializer","canFollowContextualOfKeyword","savedDisallowIn","parseConstructorName","literalNode","tryParseConstructorDeclaration","parsePropertyDeclaration","parsePropertyOrMethodDeclaration","parseClassStaticBlockDeclaration","parseClassStaticBlockBody","parseDecoratorExpression","awaitExpression","memberExpression","tryParseDecorator","decorator","tryParseModifier","permitInvalidConstAsModifier","stopOnStartOfClassStaticBlock","nextTokenIsOpenBrace","parseClassElement","constructorDeclaration","parseClassDeclarationOrExpression","parseNameOfClassDeclarationOrExpression","parseHeritageClauses","parseClassMembers","isImplementsClause","parseHeritageClause","tok","parseExpressionWithTypeArguments","parseEnumMember","parseModuleBlock","parseModuleOrNamespaceDeclaration","namespaceFlag","parseAmbientExternalModuleDeclaration","afterImportPos","tokenAfterImportDefinitelyProducesImportDeclaration","tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration","parseImportEqualsDeclaration","parseImportClause","parseModuleSpecifier","parseModuleReference","finished","parseNamespaceImport","parseNamedImportsOrExports","parseExternalModuleReference","parseImportSpecifier","parseExportSpecifier","parseImportOrExportSpecifier","checkIdentifierIsKeyword","checkIdentifierStart","checkIdentifierEnd","identifierName","parseNamespaceExport","namespaceExportPos","isAnExternalModuleIndicatorNode","getImportMetaIfNecessary","hasModifierOfKind","walkTreeForExternalModuleIndicators","jsDocTypeExpression","parseJSDocTypeExpression","mayOmitBraces","hasBrace","parseJSDocNameReference","p2","parseJSDocCommentWorker","JSDocState","PropertyLikeParse","tagsPos","tagsEnd","linkEnd","commentsPos","margin","pushComment","parseOptionalJsdoc","loop","removeTrailingWhitespace","addTag","parseTag","asterisk","whitespace","linkStart","link","parseJSDocLink","removeLeadingNewlines","tagsArray","isNextNonwhitespaceTokenEndOfFile","skipWhitespace","skipWhitespaceOrAsterisk","precedingLineBreak","seenLineBreak","indentText","parseJSDocIdentifierName","parseAuthorTag","parseImplementsTag","parseAugmentsTag","parseSimpleTag","createJSDocClassTag","createJSDocPublicTag","createJSDocPrivateTag","createJSDocProtectedTag","createJSDocReadonlyTag","createJSDocOverrideTag","createJSDocDeprecatedTag","parseThisTag","parseEnumTag","parseParameterOrPropertyTag","parseReturnTag","parseTemplateTag","parseTypeTag","parseTypedefTag","parseCallbackTag","parseSeeTag","parseUnknownTag","parseTrailingTagComments","parseTagComments","initialMargin","previousWhitespace","isNextJSDocTokenWhitespace","linkType","parseJSDocLinkPrefix","tryParseTypeExpression","parseBracketNameInPropertyAndParamTag","isBackquoted","parseJSDocEntityName","isObjectOrObjectArrayTypeReference","nestedTypeLiteral","parseNestedTypeLiteral","parseChildParameterOrPropertyTag","createJSDocReturnTag","createJSDocTypeTag","isLink","commentStart","textOnly","parseAuthorNameAndEmail","allParts","createJSDocAuthorTag","inEmail","parseExpressionWithTypeArgumentsForAugments","usedBrace","parsePropertyAccessEntityNameExpression","createTag","createJSDocThisTag","createJSDocEnumTag","parseJSDocTypeNameWithNamespace","childTypeTag","hasChildren","parseChildPropertyTag","jsdocTypeLiteral","typedefTag","nested","typeNameOrNamespaceName","jsDocNamespaceNode","parseCallbackTagParameters","escapedTextsEqual","canParseTag","tryParseChildTag","parseTemplateTagTypeParameter","typeParameterPos","parseTemplateTagTypeParameters","checkChangeRange","incrementalSourceFile","hasBeenIncrementallyParsed","oldText","changeRange","extendToAffectedRange","delta","updateTokenPositionsAndMarkElements","getNewCommentDirectives","oldDirectives","newDirectives","changeStart","changeRangeOldEnd","addedNewlyScannedDirectives","oldDirectives_1","addNewlyScannedDirectives","updatedDirective","moveElementEntirelyPastChangeRange","visitArray","shouldCheckNode","jsDocComment","checkNodePositions","array_9","adjustIntersectingElement","changeRangeNewEnd","pos_2","visitNode_1","fullEnd","array_10","maxLookahead","nearestNode","findNearestNodeStartingBeforeOrAtPosition","finalSpan","finalLength","lastNodeEntirelyBeforePosition","bestResult","visit","lastChildOfLastEntireNodeBeforePosition","getLastDescendant","oldTextPrefix","newTextPrefix","oldTextSuffix","newTextSuffix","currentArray","currentArrayIndex","lastQueriedPosition","findHighestListElementThatStartsAtPosition","InvalidPosition","namedArgRegExCache","getNamedArgRegEx","tripleSlashXMLCommentStartRegEx","singleLinePragmaRegEx","tripleSlash","matcher","addPragmaForMatch","multiLinePragmaRegEx","multiLineMatch","getNamedPragmaArguments","argMap","rhs","compileOnSaveCommandLineOption","jsxOptionMap","inverseJsxOptionMap","libEntries","libs","libMap","optionsForWatch","fixedpollinginterval","prioritypollinginterval","dynamicprioritypolling","fixedchunksizepolling","usefsevents","usefseventsonparentdirectory","fixedinterval","FixedInterval","priorityinterval","dynamicpriority","fixedchunksize","FixedChunkSize","isFilePath","extraValidation","specToDiagnostic","commonOptionsWithBuild","shortName","showInSimplifiedHelpView","isCommandLineOnly","defaultValueDescription","paramType","transpileOptionValue","affectsSemanticDiagnostics","affectsEmit","targetOptionDeclaration","es3","es5","es6","affectsSourceFile","affectsModuleResolution","optionsNameMapCache","commandOptionsWithoutBuild","none","None","commonjs","amd","umd","UMD","affectsProgramStructure","isTSConfigOnly","preserve","affectsBindDiagnostics","classic","crlf","lf","createOptionNameMap","optionsNameMap","shortOptionNames","getOptionsNameMap","sourceFileAffectingCompilerOptions","transpileOptionValueCompilerOptions","optionsForBuild","buildOpts","typeAcquisitionDeclarations","buildOptionsNameMapCache","compilerOptionsAlternateMode","getBuildOptionsNameMap","convertEnableAutoDiscoveryToEnable","typeAcquisition","enableAutoDiscovery","createCompilerDiagnosticForInvalidCustomType","opt","createDiagnosticForInvalidCustomType","createDiagnostic","namesOfType","parseCustomTypeOption","convertJsonOptionOfCustomType","parseListTypeOption","validateJsonOptionValue","getOptionName","createUnknownOptionError","unknownOption","createDiagnostics","unknownOptionErrorText","alternateMode","possibleOption","unknownDidYouMeanDiagnostic","unknownOptionDiagnostic","parseCommandLineWorker","commandLine","watchOptions","parseStrings","parseResponseFile","inputOptionName","getOptionDeclarationFromName","parseOptionValue","watchOpt","watchOptionsDidYouMeanDiagnostics","tryReadFile","optValue","optionTypeMismatchDiagnostic","getCompilerOptionValueTypeString","parseCommandLine","compilerOptionsDidYouMeanDiagnostics","getOptionFromName","optionName","allowShort","getOptionNameMap","short","defaultInitCompilerOptions","forceConsistentCasingInFileNames","buildOptionsAlternateMode","buildOptionsDidYouMeanDiagnostics","parseBuildCommand","projects","buildOptions","clean","verbose","dry","getDiagnosticText","_message","_args","getParsedCommandLineOfConfigFile","configFileName","optionsToExtend","extendedConfigCache","watchOptionsToExtend","configFileText","resolvedPath","originalFileName","parseJsonSourceFileConfigFileContent","onUnRecoverableConfigFileDiagnostic","readConfigFile","textOrDiagnostic","jsonSourceFile","convertConfigFileToObject","readJsonConfigFile","commandLineOptionsToMap","watchOptionsNameMapCache","typeAcquisitionDidYouMeanDiagnostics","getWatchOptionsNameMap","commandLineCompilerOptionsMapCache","commandLineWatchOptionsMapCache","commandLineTypeAcquisitionMapCache","_tsconfigRootOptions","getCommandLineCompilerOptionsMap","getCommandLineWatchOptionsMap","getCommandLineTypeAcquisitionMap","getTsconfigRootOptionsMap","elementOptions","extraKeyDiagnostics","reportOptionsErrors","optionsIterator","rootExpression","knownRootOptions","firstObject","convertToObject","returnValue","jsonConversionNotifier","convertPropertyValueToJson","isRootOptionMap","knownOptions","convertObjectLiteralExpressionToJson","parentOption","_loop_4","isDoubleQuotedString","textOfKey","keyText","isValidOptionValue","isCompilerOptionsValue","onSetValidOptionKeyValueInParent","onSetValidOptionKeyValueInRoot","onSetUnknownOptionKeyValueInRoot","convertArrayLiteralExpressionToJson","elementOption","valueExpression","invalidReported","reportInvalidOptionValue","validateValue","customOption","objectLiteralExpression","isError","isNullOrUndefined","expectedType","convertToTSConfig","configParseResult","configFile","configFileSpecs","validatedIncludeSpecs","matchesSpecs","validatedExcludeSpecs","optionMap","serializeCompilerOptions","watchOptionMap","serializeWatchOptions","optionMapToObject","showConfig","help","listFiles","listEmittedFiles","project","references","projectReferences","filterSameAsDefaultInclude","compileOnSave","cur","includeSpecs","excludeSpecs","excludeRe","includeRe","getCustomTypeMapOfCommandLineOption","optionDefinition","getNameOfCompilerOptionValue","customTypeMap","mapValue","pathOptions","serializeOptionBaseObject","_loop_5","customTypeMap_1","generateTSConfig","compilerOptionsMap","writeConfigurations","getDefaultValueForOption","makePadding","paddingLength","isAllowedOptionForOutput","categoriesToSkip","categorizedOptions","optionDeclarations_1","marginLength","seenKnownKeys","options_1","tab","entries_2","convertToOptionsWithAbsolutePaths","toAbsolutePath","convertToOptionValueWithAbsolutePaths","parseJsonConfigFileContent","json","existingOptions","resolutionStack","existingWatchOptions","parseJsonConfigFileContentWorker","setConfigFileInOptions","directoryOfCombinedPath","parsedConfig","parseConfig","getConfigFileSpecs","basePathForFileNames","getFileNames","getProjectReferences","getDefaultTypeAcquisition","wildcardDirectories","getWildcardDirectories","referencesOfRaw","getPropFromRaw","filesSpecs","toPropValue","getSpecsFromRaw","hasZeroOrNoReferences","hasExtends","nodeValue","createCompilerDiagnosticOnlyIfJson","excludeOfRaw","validateSpecs","validatedFilesSpec","pathPatterns","getFileNamesFromConfigSpecs","shouldReportNoInputFiles","canJsonReportNoInputFiles","getErrorForNoInputFiles","referencesOfRaw_1","ref","specResult","validateElement","elementTypeName","isErrorNoInputFiles","canJsonReportNoInutFiles","updateErrorForNoInputFiles","configParseDiagnostics","existingErrors","isSuccessfulParsedTsconfig","ownConfig","parseOwnConfigOfJson","parseOwnConfigOfJsonSourceFile","extendedConfigPath","extendedConfig","getExtendedConfig","relativeDifference_1","baseRaw_1","raw_1","setPropertyInRawIfNotUndefined","convertCompilerOptionsFromJsonWorker","convertTypeAcquisitionFromJsonWorker","typingOptions","convertWatchOptionsFromJsonWorker","convertCompileOnSaveOptionFromJson","newBase","getExtendsConfigPath","typingOptionstypeAcquisition","getDefaultCompilerOptions","currentOption","normalizeOptionValue","_keyNode","valueNode","keyNode","_valueNode","nodeModuleNameResolver","extendedResult","extendedSourceFiles","jsonOption","convertJsonOption","convertCompilerOptionsFromJson","jsonOptions","convertTypeAcquisitionFromJson","maxNodeModuleJsDepth","noEmit","convertOptionsFromJson","defaultOptions","optType","convertJsonOptionOfListType","validatedValue","normalizeNonListOptionValue","listOption_1","invalidTrailingRecursionPattern","wildcardDirectoryPattern","jsonOnlyIncludeRegexes","keyMapper","literalFileMap","wildcardFileMap","wildCardJsonFileMap","supportedExtensionsWithJsonIfResolveJsonModule","validatedFilesSpec_1","_loop_6","key_1","hasFileWithHigherPriorityExtension","removeWildcardFilesWithLowerPriorityExtension","readDirectory","literalFiles","wildcardFiles","isExcludedFile","validatedFilesSpec_2","matchesExcludeWorker","invalidDotDotAfterRecursiveWildcard","wildcardIndex","lastDotIndex","disallowTrailingRecursion","specKey","rawExcludeRegex","recursiveKeys","include_1","getWildcardDirectoryFromSpec","existingFlags","recursiveKeys_1","recursiveKey","questionWildcardIndex","starWildcardIndex","lastDirectorySeperatorIndex","adjustedExtensionPriority","higherPriorityExtension","higherPriorityPath","nextExtensionPriority","lowerPriorityExtension","lowerPriorityPath","convertCompilerOptionsForTelemetry","opts","getOptionValueWithEmptyStrings","elementType_1","optionEnumValue","optionStringValue","isTraceEnabled","traceResolution","withPackageId","packageInfo","packageJsonContent","packageDirectory","noPackageId","removeIgnoredPackageId","Extensions","resolvedTypeScriptOnly","createResolvedModuleWithFailedLookupLocations","failedLookupLocations","resultFromCache","readPackageJsonField","jsonContent","fieldName","typeOfTag","traceEnabled","readPackageJsonPathField","baseDirectory","readPackageJsonTypesFields","readPackageJsonTSConfigField","readPackageJsonMainField","readPackageJsonTypesVersionsField","typesVersions","readPackageJsonTypesVersionPaths","getPackageJsonTypesVersionsPaths","bestVersionKey","bestVersionPaths","keyRange","getEffectiveTypeRoots","typeRoots","getDefaultTypeRoots","atTypes","nodeModulesAtTypes","resolveTypeReferenceDirective","containingFile","redirectedReference","containingDirectory","perFolderCache","getOrCreateCacheForDirectory","traceResult","moduleResolutionState","packageJsonInfoCache","primaryLookup","secondaryLookup","preserveSymlinks","pathContainsNodeModules","typeRoot","candidateDirectory","loadNodeModuleFromDirectory","DtsOnly","initialLocationForSecondaryLookup","result_4","nodeLoadModuleByRelativeName","searchResult","loadModuleFromNearestNodeModulesDirectory","getAutomaticTypeDirectiveNames","getDirectories","typeRoots_1","typeDirectivePath","packageJsonPath","isNotNeededPackage","typings","createCacheWithRedirects","ownMap","redirectsMap","getOwnMap","getOrCreateMapOfCacheRedirects","setOwnOptions","setOwnMap","newOwnMap","redirects","createPackageJsonInfoCache","getPackageJsonInfo","setPackageJsonInfo","getOrCreateCache","cacheWithRedirects","updateRedirectsMap","directoryToModuleNameMap","moduleNameToDirectoryMap","createPerDirectoryResolutionCache","createModuleResolutionCache","preDirectoryResolutionCache","getOrCreateCacheForModuleName","getPackageJsonInfoCache","nonRelativeModuleName","createPerModuleNameCache","directoryPathMap","commonPrefix","getCommonPrefix","resolutionDirectory","limit","sep","createTypeReferenceDirectiveResolutionCache","resolveModuleNameFromCache","resolveModuleName","classicNameResolver","tryLoadModuleUsingOptionalResolutionSettings","loader","tryLoadModuleUsingPathsIfEligible","tryLoadModuleUsingRootDirs","tryLoadModuleUsingBaseUrl","tryLoadModuleUsingPaths","rootDirs","matchedRootDir","matchedNormalizedPrefix","rootDir","normalizedRoot","isLongestMatchingPrefix","candidate_1","resolvedFileName_1","resolveJSModule","initialDir","tryResolveJSModuleWorker","tryResolveJSModule","jsOnlyExtensions","JavaScript","tsExtensions","TypeScript","tsPlusJsonExtensions","Json","tsconfigExtensions","TSConfig","nodeModuleNameResolverWorker","lookupConfig","tryResolve","onlyRecordFailures","toSearchResult","resolved_2","resolved_1","resolvedValue","considerPackageJson","parentOfCandidate","resolvedFromFile","loadModuleFromFile","parseNodeModuleFromPath","candidateExists","nodeModulesPathPart","idx","indexAfterNodeModules","indexAfterPackageName","moveToNextDirectorySeparatorIfAvailable","prevSeparatorIndex","nextSeparatorIndex","loadModuleFromFileNoPackageId","extensionLess","tryAddingExtensions","resolvedByAddingExtension","tryExtension","tryFile","versionPaths","loadNodeModuleFromDirectoryWorker","packageFile","fromFile","resolvedIfExtensionMatches","nextExtensions","onlyRecordFailuresForPackageFile","onlyRecordFailuresForIndex","indexPath","packageFileResult","extensionIsOk","parsePackageName","packageName","loadModuleFromNearestNodeModulesDirectoryWorker","loadModuleFromNearestNodeModulesDirectoryTypesScope","typesScopeOnly","perModuleNameCache","ancestorDirectory","resolutionFromCache","tryFindNonRelativeModuleNameInCache","loadModuleFromImmediateNodeModulesDirectory","nodeModulesFolder","nodeModulesFolderExists","packageResult","loadModuleFromSpecificNodeModulesDirectory","nodeModulesAtTypes_1","nodeModulesAtTypesExists","mangleScopedPackageNameWithTrace","nodeModulesDirectory","nodeModulesDirectoryExists","pathAndExtension","packageDirectoryExists","fromPaths","matchedPattern","matchedStar_1","matchedPatternText","subst","path_1","mangledScopedPackageSeparator","mangled","mangleScopedPackageName","getTypesPackageName","replaceSlash","getPackageNameFromTypesPackageName","mangledName","withoutAtTypePrefix","unmangleScopedPackageName","typesPackageName","resolvedUsingSettings","perModuleNameCache_1","resolved_3","searchName","loadModuleFromGlobalCache","projectName","globalCache","ContainerFlags","getModuleInstanceState","getModuleInstanceStateCached","nodeId","getNodeId","getModuleInstanceStateWorker","exportDeclaration","specifierState","getModuleInstanceStateForAliasTarget","state_1","childState","found","statements_2","initFlowNode","ModuleInstanceState","binder","createBinder","bindSourceFile","thisParentContainer","blockScopeContainer","lastContainer","delayedTypeAliases","seenThisKeyword","currentFlow","currentBreakTarget","currentContinueTarget","currentReturnTarget","currentTrueTarget","currentFalseTarget","currentExceptionTarget","preSwitchCaseFlow","activeLabelList","hasExplicitReturn","inStrictMode","classifiableNames","inAssignmentPattern","symbolCount","unreachableFlow","reportedUnreachableFlow","bindBinaryExpressionFlow","createBindBinaryExpressionFlow","bindInStrictMode","delayedBindJSDocTypedefTag","createSymbol","addDeclarationToSymbol","symbolFlags","constEnumOnlyModule","containingClass","functionType","getDisplayName","declareSymbol","symbolTable","isReplaceableByMethod","isComputedName","isDefaultExport","message_1","messageNeedsName_1","multipleDefaultExports_1","relatedInformation_1","declarationName_1","declareModuleMember","symbolExcludes","hasExportModifier","jsdocTreatAsExported","exportKind","local","declName","isTopLevelNamespaceAssignment","bindContainer","containerFlags","saveContainer","saveThisParentContainer","savedBlockScopeContainer","addToContainerChain","saveCurrentFlow","saveBreakTarget","saveContinueTarget","saveReturnTarget","saveExceptionTarget","saveActiveLabelList","saveHasExplicitReturn","isIIFE","createBranchLabel","bindChildren","endFlowNode","addAntecedent","finishFlowLabel","returnFlowNode","bindEachFunctionsFirst","bindEach","bindFunction","bindEachChild","saveInAssignmentPattern","checkUnreachable","bindWhileStatement","bindDoStatement","bindForStatement","bindForInOrForOfStatement","bindIfStatement","bindReturnOrThrow","bindBreakOrContinueStatement","bindTryStatement","bindSwitchStatement","bindCaseBlock","bindCaseClause","bindExpressionStatement","bindLabeledStatement","bindPrefixUnaryExpressionFlow","bindPostfixUnaryExpressionFlow","bindDestructuringAssignmentFlow","bindDeleteExpressionFlow","bindConditionalExpressionFlow","bindVariableDeclarationFlow","bindAccessExpressionFlow","bindCallExpressionFlow","bindNonNullExpressionFlow","bindJSDocTypeAlias","bindBindingElementFlow","isNarrowingExpression","containsNarrowableReference","hasNarrowableArgument","isNarrowingBinaryExpression","isNarrowableReference","isNarrowingTypeofOperands","expr1","expr2","isNarrowableOperand","antecedents","createLoopLabel","createReduceLabel","antecedent","setFlowNodeReferenced","flow","createFlowCondition","createFlowSwitchClause","switchStatement","clauseStart","clauseEnd","createFlowMutation","createFlowCall","isStatementCondition","isLogicalExpression","isLogicalAssignmentExpression","isTopLevelLogicalExpression","doWithConditionalBranches","trueTarget","falseTarget","savedTrueTarget","savedFalseTarget","bindCondition","bindIterativeStatement","breakTarget","continueTarget","setContinueTarget","preWhileLabel","preBodyLabel","postWhileLabel","preDoLabel","preConditionLabel","postDoLabel","preLoopLabel","postLoopLabel","bindAssignmentTargetFlow","thenLabel","elseLabel","postIfLabel","findActiveLabel","bindBreakOrContinueFlow","flowLabel","activeLabel","referenced","normalExitLabel","returnLabel","exceptionLabel","finallyLabel","postSwitchLabel","savePreSwitchCaseFlow","hasDefault","possiblyExhaustive","isNarrowingSwitch","fallthroughFlow","preCaseLabel","noFallthroughCasesInSwitch","fallthroughFlowNode","maybeBindExpressionFlowIfCall","postStatementLabel","errorOrSuggestionOnNode","bindDestructuringTargetFlow","bindLogicalLikeExpression","preRightLabel","saveTrueTarget","saveInStrictMode","bindWorker","saveParent","skip","inStrictModeStack","parentStack","postExpressionLabel","_node","elementAccess","savedInStrictMode","savedParent","trueLabel","falseLabel","bindInitializedVariableFlow","bindJSDocClassTag","bindOptionalExpression","bindOptionalChainRest","bindOptionalChain","preChainLabel","bindOptionalChainFlow","getContainerFlags","declareSymbolAndAddToSymbolTable","declareSourceFileMember","declareClassMember","hasExportDeclarations","setExportContextFlag","bindModuleDeclaration","errorOnFirstToken","declareModuleSymbol","patternAmbientModules","instantiated","bindFunctionOrConstructorType","typeLiteralSymbol","bindObjectLiteralExpression","ElementKind","currentKind","existingKind","bindAnonymousDeclaration","bindJsxAttributes","bindJsxAttribute","bindBlockScopedDeclaration","saveLastContainer","saveBlockScopeContainer","delayedTypeAliases_1","typeAlias","isTopLevel","bindPotentiallyMissingNamespaces","oldContainer","isExportsOrModuleExportsOrAlias","checkContextualIdentifier","getStrictModeIdentifierMessage","checkPrivateIdentifier","checkStrictModeBinaryExpression","checkStrictModeEvalOrArguments","checkStrictModeCatchClause","checkStrictModeDeleteExpression","isEvalOrArgumentsIdentifier","contextNode","getStrictModeEvalOrArgumentsMessage","checkStrictModeFunctionName","getStrictModeBlockScopeFunctionDeclarationMessage","checkStrictModeFunctionDeclaration","errorSpan","checkStrictModeNumericLiteral","checkStrictModePostfixUnaryExpression","checkStrictModePrefixUnaryExpression","checkStrictModeWithStatement","checkStrictModeLabeledStatement","errorOrSuggestionOnRange","startNode","endNode","addErrorOrSuggestionDiagnostic","updateStrictModeStatementList","statements_3","isUseStrictPrologueDirective","nodeText","bindSpecialPropertyDeclaration","lookupSymbolForName","specialKind","bindExportsPropertyAssignment","bindModuleExportsAssignment","bindPrototypePropertyAssignment","bindPrototypeAssignment","bindThisPropertyAssignment","bindSpecialPropertyAssignment","bindTypeParameter","bindParameter","bindVariableDeclarationOrBindingElement","bindPropertyWorker","bindPropertyOrMethodOrAccessor","bindFunctionDeclaration","bindAnonymousTypeWorker","bindFunctionExpression","assignmentKind","bindObjectDefinePropertyAssignment","bindObjectDefinePropertyExport","bindObjectDefinePrototypeProperty","bindCallExpression","bindClassLikeDeclaration","bindEnumDeclaration","bindNamespaceExportDeclaration","bindImportClause","bindExportDeclaration","bindExportAssignment","bindSourceFileIfExternalModule","propTag","bindSourceFileAsExternalModule","originalSymbol","globalExports","setCommonJsModuleIndicator","forEachIdentifierInEntityName","isAlias","assignedExpression","bindExportAssignedObjectMemberAlias","hasPrivateIdentifier","thisContainer","constructorSymbol","lookupSymbolForPropertyAccess","bindDynamicallyNamedThisPropertyAssignment","addLateBoundAssignmentDeclarationToSymbol","assignmentDeclarationMembers","bindStaticPropertyAssignment","bindPropertyAssignment","namespaceSymbol","bindPotentiallyNewExpandoMemberToNamespace","classPrototype","constructorFunction","isToplevel","parentSymbol","rootExpr","isPrototypeProperty","containerIsClass","flags_2","excludeFlags_1","table","jsGlobalAugmentations","isExpandoSymbol","getParentOfBinaryExpression","lookupContainer","bindingName","prototypeSymbol","symbolExport","classDeclaration","getInferTypeContainer","container_1","container_2","shouldReportErrorOnModuleDeclaration","instanceState","reportError","isError_1","eachUnreachableRange","isExecutableStatement","slice_1","afterEnd","isPurelyTypeDeclaration","q","createGetSymbolWalker","getRestTypeOfSignature","getTypePredicateOfSignature","getReturnTypeOfSignature","getBaseTypes","resolveStructuredTypeMembers","getTypeOfSymbol","getResolvedSymbol","getConstraintOfTypeParameter","getTypeArguments","getSymbolWalker","accept","visitedTypes","visitedSymbols","walkType","visitType","walkSymbol","visitSymbol","shouldBail","visitTypeReference","visitMappedType","visitInterfaceType","visitObjectType","visitTypeParameter","visitUnionOrIntersectionType","visitIndexType","visitIndexedAccessType","templateType","modifiersType","visitSignature","typePredicate","interfaceT","thisType","indexInfos","keyType","callSignatures","constructSignatures","symbolId","query","IterationUse","IterationTypeKind","WideningKind","TypeFacts","ambientModuleSymbolRegex","anon","nextSymbolId","nextNodeId","nextMergeId","nextFlowId","TypeSystemPropertyName","CheckMode","SignatureCheckMode","IntersectionState","MappedTypeModifiers","ExpandingFlags","MembersOrExportsResolutionKind","UnusedKind","typeofEQFacts","typeofNEFacts","DeclarationMeaning","DeclarationSpaces","MinArgumentCountFlags","IntrinsicTypeKind","isNotOverloadAndNotAccessor","isNotOverload","isNotAccessor","JsxNames","intrinsicTypeKinds","Uppercase","Lowercase","Capitalize","Uncapitalize","SymbolLinks","NodeLinks","isInstantiatedModule","moduleState","createTypeChecker","produceDiagnostics","cancellationToken","requestedExternalEmitHelpers","externalHelpersModule","getPackagesSet","sf","typeCount","enumCount","totalInstantiationCount","instantiationCount","instantiationDepth","emptySymbols","arrayVariances","strictNullChecks","strictFunctionTypes","strictBindCallApply","strictPropertyInitialization","noImplicitAny","noImplicitThis","useUnknownInCatchVariables","keyofStringsOnly","freshObjectLiteralFlag","suppressExcessPropertyErrors","exactOptionalPropertyTypes","checkBinaryExpression","createCheckBinaryExpression","emitResolver","createResolver","nodeBuilder","createNodeBuilder","undefinedSymbol","globalThisSymbol","apparentArgumentCount","argumentsSymbol","requireSymbol","getNodeCount","getIdentifierCount","getSymbolCount","getTypeCount","getInstantiationCount","getRelationCacheSizes","assignable","assignableRelation","identityRelation","subtype","subtypeRelation","strictSubtype","strictSubtypeRelation","isUndefinedSymbol","isArgumentsSymbol","isUnknownSymbol","unknownSymbol","getMergedSymbol","getUnmatchedProperties","getTypeOfSymbolAtLocation","locationIn","errorType","getSymbolsOfParameterPropertyDeclaration","parameterIn","getDeclaredTypeOfSymbol","getPropertiesOfType","getPropertyOfType","getPrivateIdentifierPropertyOfType","leftType","lexicallyScopedIdentifier","lookupSymbolForPrivateIdentifierDeclaration","getTypeOfPropertyOfType","getIndexInfoOfType","stringType","numberType","getIndexInfosOfType","getIndexTypeOfType","getBaseTypeOfLiteralType","getWidenedType","getTypeFromTypeNode","nodeIn","getParameterType","getTypeAtPosition","getParameterIdentifierNameAtPosition","getPromisedTypeOfPromise","getAwaitedType","isNullableType","getNullableType","getNonNullableType","getNonOptionalType","removeOptionalTypeMarker","typeToTypeNode","indexInfoToIndexSignatureDeclaration","signatureToSignatureDeclaration","symbolToEntityName","symbolToExpression","symbolToTypeParameterDeclarations","symbolToParameterDeclaration","typeParameterToDeclaration","getSymbolsInScope","meaning","getSymbolAtLocation","getIndexInfosAtLocation","getShorthandAssignmentValueSymbol","getExportSpecifierLocalTargetSymbol","getExportSymbolOfSymbol","getTypeAtLocation","getTypeOfNode","getTypeOfAssignmentPattern","getPropertySymbolOfDestructuringAssignment","enclosingDeclaration","symbolToString","typePredicateToString","writeSignature","writeType","writeTypePredicate","getAugmentedPropertiesOfType","getRootSymbols","getSymbolOfExpando","getContextualType","containingCall","containingCallResolvedSignature","getNodeLinks","resolvedSignature","toMarkSkip","skipDirectInference","getContextualTypeForObjectLiteralElement","getContextualTypeForArgumentAtIndex","argIndex","getContextualTypeForJsxAttribute","isContextSensitive","getTypeOfPropertyOfContextualType","getFullyQualifiedName","getResolvedSignature","candidatesOutArray","argumentCount","getResolvedSignatureWorker","getResolvedSignatureForSignatureHelp","getExpandedParameters","hasEffectiveRestParameter","containsArgumentsReference","canHaveConstantValue","isValidPropertyAccess","isValidPropertyAccessForCompletions","getSignatureFromDeclaration","declarationIn","isImplementationOfOverload","getImmediateAliasedSymbol","resolveAlias","getEmitResolver","getExportsOfModule","getExportsOfModuleAsArray","getExportsAndPropertiesOfModule","forEachExportAndPropertyOfModule","getAmbientModules","getJsxIntrinsicTagNamesAt","isOptionalParameter","tryGetMemberInModuleExports","tryGetMemberInModuleExportsAndProperties","tryFindAmbientModule","tryFindAmbientModuleWithoutAugmentations","getApparentType","getUnionType","isTypeAssignableTo","createAnonymousType","createSignature","createIndexInfo","getAnyType","anyType","getStringType","getNumberType","createPromiseType","createArrayType","getElementTypeOfArrayType","getBooleanType","booleanType","getFalseType","fresh","regularFalseType","getTrueType","regularTrueType","getVoidType","voidType","getUndefinedType","undefinedType","getNullType","nullType","getESSymbolType","esSymbolType","getNeverType","neverType","getOptionalType","optionalType","isSymbolAccessible","isTupleType","isArrayLikeType","isTypeInvalidDueToUnionDiscriminant","getAllPossiblePropertiesOfTypes","getSuggestedSymbolForNonexistentProperty","getSuggestionForNonexistentProperty","getSuggestedSymbolForNonexistentJSXAttribute","getSuggestedSymbolForNonexistentSymbol","getSuggestionForNonexistentSymbol","getSuggestedSymbolForNonexistentModule","getSuggestionForNonexistentExport","getSuggestedSymbolForNonexistentClassMember","getBaseConstraintOfType","getDefaultFromTypeParameter","resolveName","excludeGlobals","getJsxNamespace","getJsxFragmentFactory","jsxFragmentFactory","getJsxFragmentFactoryEntity","getAccessibleSymbolChain","resolveExternalModuleName","moduleSpecifierIn","resolveExternalModuleSymbol","tryGetThisTypeAt","includeGlobalThis","getTypeArgumentConstraint","getSuggestionDiagnostics","fileIn","ct","checkSourceFile","suggestionDiagnostics","checkUnusedIdentifiers","getPotentiallyUnusedIdentifiers","containingNode","unusedIsError","runWithCancellationToken","getLocalTypeParametersOfClassOrInterfaceOrTypeAlias","isDeclarationVisible","checkMode","tupleTypes","stringLiteralTypes","numberLiteralTypes","bigIntLiteralTypes","enumLiteralTypes","indexedAccessTypes","templateLiteralTypes","stringMappingTypes","substitutionTypes","subtypeReductionCache","evolvingArrayTypes","undefinedProperties","resolvingSymbol","createIntrinsicType","autoType","wildcardType","nonInferrableAnyType","intrinsicMarkerType","unknownType","undefinedWideningType","missingType","nullWideningType","bigintType","regularType","freshType","silentNeverType","nonInferrableType","implicitNeverType","unreachableNeverType","nonPrimitiveType","stringOrNumberType","stringNumberSymbolType","keyofConstraintType","numberOrBigIntType","templateConstraintType","restrictiveMapper","makeFunctionTypeMapper","getRestrictiveTypeParameter","permissiveMapper","emptyObjectType","emptyJsxObjectType","emptyTypeLiteralSymbol","emptyTypeLiteralType","emptyGenericType","instantiations","anyFunctionType","noConstraintType","circularConstraintType","resolvingDefaultType","markerSuperType","createTypeParameter","markerSubType","amalgamatedDuplicates","ambientModulesCache","patternAmbientModuleAugmentations","globalObjectType","globalFunctionType","globalCallableFunctionType","globalNewableFunctionType","globalArrayType","globalReadonlyArrayType","globalStringType","globalNumberType","globalBooleanType","globalRegExpType","globalThisType","anyArrayType","autoArrayType","anyReadonlyArrayType","deferredGlobalNonNullableTypeAlias","deferredGlobalESSymbolConstructorSymbol","deferredGlobalESSymbolConstructorTypeSymbol","deferredGlobalESSymbolType","deferredGlobalTypedPropertyDescriptorType","deferredGlobalPromiseType","deferredGlobalPromiseLikeType","deferredGlobalPromiseConstructorSymbol","deferredGlobalPromiseConstructorLikeType","deferredGlobalIterableType","deferredGlobalIteratorType","deferredGlobalIterableIteratorType","deferredGlobalGeneratorType","deferredGlobalIteratorYieldResultType","deferredGlobalIteratorReturnResultType","deferredGlobalAsyncIterableType","deferredGlobalAsyncIteratorType","deferredGlobalAsyncIterableIteratorType","deferredGlobalAsyncGeneratorType","deferredGlobalTemplateStringsArrayType","deferredGlobalImportMetaType","deferredGlobalImportMetaExpressionType","deferredGlobalExtractSymbol","deferredGlobalOmitSymbol","deferredGlobalBigIntType","lastFlowNode","lastFlowNodeReachable","flowTypeCache","_jsxNamespace","_jsxFactoryEntity","outofbandVarianceMarkerHandler","markerOtherType","noTypePredicate","createTypePredicate","anySignature","unknownSignature","resolvingSignature","silentNeverSignature","enumNumberIndexInfo","iterationTypesCache","noIterationTypes","anyIterationTypes","createIterationTypes","anyIterationTypesExceptNext","defaultIterationTypes","asyncIterationTypesResolver","iterableCacheKey","iteratorCacheKey","iteratorSymbolName","getGlobalIteratorType","getGlobalAsyncIteratorType","getGlobalIterableType","getGlobalAsyncIterableType","getGlobalIterableIteratorType","getGlobalAsyncIterableIteratorType","getGlobalGeneratorType","getGlobalAsyncGeneratorType","resolveIterationType","mustHaveANextMethodDiagnostic","mustBeAMethodDiagnostic","mustHaveAValueDiagnostic","syncIterationTypesResolver","_errorNode","reverseMappedCache","inInferTypeForHomomorphicMappedType","allPotentiallyUnusedIdentifiers","flowLoopStart","flowLoopCount","sharedFlowCount","flowAnalysisDisabled","flowInvocationCount","emptyStringType","getStringLiteralType","zeroType","getNumberLiteralType","zeroBigIntType","getBigIntLiteralType","resolutionTargets","resolutionResults","resolutionPropertyNames","suggestionCount","maximumSuggestionCount","mergedSymbols","symbolLinks","nodeLinks","flowLoopCaches","flowLoopNodes","flowLoopKeys","flowLoopTypes","sharedFlowNodes","sharedFlowTypes","flowNodeReachable","flowNodePostSuper","potentialThisCollisions","potentialNewTargetCollisions","potentialWeakMapSetCollisions","potentialReflectCollisions","awaitedTypeStack","typeofTypesByName","typeofType","createTypeofType","comparableRelation","enumRelation","builtinGlobals","initializeTypeChecker","localJsxFragmentNamespace","jsxFragmentPragma","chosenPragma","localJsxFragmentFactory","markAsSynthetic","localJsxNamespace","jsxPragma","localJsxFactory","visitEachChild","nullTransformationContext","lookupOrIssueError","errorSkippedOn","skippedOn","createError","addErrorOrSuggestion","errorOrSuggestion","errorAndMaybeSuggestAwait","maybeMissingAwait","addDeprecatedSuggestionWorker","deprecatedTag","addDeprecatedSuggestion","deprecatedEntity","addDeprecatedSuggestionWithSignature","signatureString","getExcludedSymbolFlags","recordMergedSymbol","cloneSymbol","mergeSymbol","unidirectional","resolvedTarget","resolveSymbol","mergeSymbolTable","isEitherEnum","isEitherBlockScoped_1","sourceSymbolFile","targetSymbolFile","symbolName_1","firstFile_1","secondFile_1","filesDuplicates","firstFile","secondFile","conflictingSymbols","conflictingSymbolInfo","isBlockScoped","firstFileLocations","secondFileLocations","addDuplicateLocations","addDuplicateDeclarationErrorsForSymbols","locs","addDuplicateDeclarationError","relatedNodes","err","_loop_7","relatedNode","adjustedNode","leadingMessage","followOnMessage","combineSymbolTables","combined","sourceSymbol","targetSymbol","mergeModuleAugmentation","moduleAugmentation","moduleNotFoundError","mainModule_1","resolveExternalModuleNameWorker","merged","resolvedExports","getResolvedMembersOrExportsOfSymbol","addToSymbolTable","addDeclarationDiagnostic","getSymbolLinks","isGlobalSourceFile","getSymbol","parameterSymbol","propertySymbol","getMembersOfSymbol","isBlockScopedNameDeclaredBeforeUse","declarationFile","useFile","declContainer","isInTypeQuery","isUsedInFunctionOrInstanceProperty","errorBindingElement","isImmediatelyUsedInInitializerOfBlockScopedVariable","isPropertyImmediatelyReferencedWithinDeclaration","usageInTypeDeclaration","isSameScopeDescendentOf","propertyDeclaration","initializerOfProperty","getSymbolOfNode","staticBlocks","isPropertyInitializedInStaticBlocks","isDeclarationInstanceProperty","stopAtAnyPropertyDeclaration","ancestorChangingReferenceScope","useOuterVariableScopeInParameter","lastLocation","functionLocation","links","declarationRequiresScopeChange","requiresScopeChange","requiresScopeChangeWorker","nameNotFoundMessage","nameArg","isUse","issueSuggestions","resolveNameHelper","lastSelfReferenceLocation","propertyWithInvalidInitializer","associatedDeclarationForContainingInitializerOrBindingName","originalLocation","withinDeferredContext","errorLocation","isInExternalModule","useResult","getIsDeferredContext","moduleExports","moduleExport","findConstructorDeclaration","isTypeParameterSymbolDeclaredInContainer","functionName","isSelfReferenceLocation","isReferenced","diagnosticName","exportOrLocalSymbol","getExportSymbolOfValueSymbolIfExported","checkResolvedBlockScopedVariable","allowUmdGlobalAccess","getLateBoundSymbol","checkSymbolUsageInExpressionContext","checkAndReportErrorForMissingPrefix","checkAndReportErrorForExtendingInterface","checkAndReportErrorForUsingTypeAsNamespace","checkAndReportErrorForExportingPrimitiveType","checkAndReportErrorForUsingTypeAsValue","checkAndReportErrorForUsingNamespaceModuleAsValue","checkAndReportErrorForUsingValueAsType","isGlobalScopeAugmentationDeclaration","suggestionName","isUncheckedJS","isUncheckedJSSuggestion","getSuggestedLibForNonExistentName","getTypeOnlyAliasDeclaration","isExport","relatedMessage","unescapedName","isTypeReferenceIdentifier","classSymbol","constructorType","instanceType","getEntityNameForExtendingInterface","resolveEntityName","namespaceMeaning","propType","isPrimitiveTypeName","rawName","isES2015OrLaterConstructorName","maybeMappedType","allTypesAssignableToKind","declarationName","stopAt","getAnyImportSyntax","getDeclarationOfAliasSymbol","isAliasableOrJsExpression","isJSConstructor","getTargetOfImportEqualsDeclaration","dontResolveAlias","commonJSPropertyAccess","getCommonJSPropertyAccess","resolveExternalModuleTypeByLiteral","immediate","resolved_4","markSymbolOfAliasDeclarationIfTypeOnly","getSymbolOfPartOfRightHandSideOfImportEquals","checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol","resolveExportByName","exportValue","isSyntacticDefault","canHaveSyntheticDefault","defaultExportSymbol","hasExportAssignmentSymbol","getTargetOfImportClause","exportDefaultSymbol","hasSyntheticDefault","compilerOptionName","exportEqualsSymbol","exportAssignment","reportNonDefaultExport","exportStar","defaultExport","getTargetOfNamespaceImport","resolveESModuleSymbol","getTargetOfNamespaceExport","combineValueAndTypeSymbols","valueSymbol","typeSymbol","getExportOfModule","getExportsOfSymbol","getPropertyOfVariable","typeAnnotation","getExternalModuleMember","suppressInteropError","symbolFromVariable","symbolFromModule","reportNonExportedMember","exportedEqualsSymbol","getSymbolIfSameReference","reportInvalidImportEqualsExportMember","exportedSymbol","symbolsToArray","getTargetOfImportSpecifier","getTargetOfNamespaceExportDeclaration","getTargetOfExportSpecifier","getTargetOfExportAssignment","getTargetOfAliasLikeExpression","checkExpressionCached","aliasLike","resolvedSymbol","getTargetOfPropertyAssignment","dontRecursivelyResolve","getTargetOfAccessExpression","getTargetOfAliasDeclaration","isNonLocalAlias","tryResolveAlias","aliasDeclaration","immediateTarget","finalTarget","overwriteEmpty","links_1","markSymbolOfAliasDeclarationIfTypeOnlyWorker","aliasDeclarationLinks","typeOnly","markExportAsReferenced","markAlias","isConstEnumOrConstEnumOnlyModule","markAliasSymbolAsReferenced","markConstEnumAliasAsReferenced","constEnumReferenced","containingLocation","ignoreErrors","getCannotFindNameDiagnosticForName","symbolFromJSPrototype","resolveEntityNameFromAssignmentDeclaration","isCommonJsRequire","moduleSym","resolvedModuleSymbol","namespaceName","isJSDocTypeReference","secondaryLocation","getAssignmentDeclarationLocation","getDeclarationOfJSPrototypeContainer","getExpandoSymbol","initSymbol","mergeJSSymbols","moduleReferenceExpression","isClassic","errorMessage","isForAugmentation","resolveExternalModule","ambientModule","currentSourceFile","resolutionDiagnostic","getResolutionDiagnostic","getSourceFile","errorOnImplicitAnyModule","augmentation","redirect","getProjectReferenceRedirect","tsExtension","importSourceWithoutExtension","replacedImportSource","moduleKind_1","errorInfo","typesPackageExists","exportEquals","exported","getCommonJsExportEquals","cjsExportMerged","referencingLocation","referenceParent","sigs","getSignaturesOfStructuredType","moduleType","getTypeWithSyntheticDefaultImportType","originatingImport","resolvedModuleType","shouldTreatPropertiesOfExternalModuleAsExports","isReservedMemberName","resolvedExternalModuleType","getExportsOfModuleWorker","extendExportSymbols","lookupTable","exportNode","collisionTracker","exportsWithDuplicate","specifierText","exportStars","nestedSymbols","lookupTable_1","exportedSymbols","exportsWithDuplicate_1","getParentOfSymbol","getAlternativeContainingModules","extendedContainersByFile","imports","importRef","getAliasForSymbolInContainer","extendedContainers","otherFiles","otherFiles_1","getContainersOfSymbol","additionalContainers","fileSymbolIfFileSymbolExportEqualsContainer","reexportContainers","objectLiteralContainer","getVariableDeclarationOfObjectLiteral","getQualifiedLeftMeaning","firstVariableMatch","forEachSymbolTableInScope","hasNonGlobalAugmentationExternalModuleSymbol","getFileSymbolIfFileSymbolExportEqualsContainer","firstDecl","fileSymbol","getExternalModuleContainer","quick","symbolIsValue","members_3","createType","createOriginType","createObjectType","getNamedMembers","getNamedOrIndexSignatureMembers","getIndexSymbolFromSymbolTable","setStructuredTypeMembers","getResolvedTypeWithoutAbstractConstructSignatures","objectTypeWithoutAbstractConstructSignatures","typeCopy","_loop_8","table_1","memberSymbol","state_2","rightMeaning","useOnlyExternalAliasing","visitedSymbolTablesMap","isPropertyOrMethodDeclarationSymbol","accessibleChainCache","firstRelevantLocation","___","visitedSymbolTables","getAccessibleSymbolChainFromSymbolTable","ignoreQualification","isLocalNameLookup","trySymbolTable","canQualifySymbol","symbolFromSymbolTable","needsQualification","isAccessible","resolvedAliasSymbol","resolvedImportedSymbol","getCandidateListForSymbol","candidateTable","accessibleSymbolsFromExports","qualify","isTypeSymbolAccessible","access","isSymbolAccessibleWorker","accessibility","isValueSymbolAccessible","isSymbolAccessibleByFlags","isAnySymbolAccessible","initialSymbol","shouldComputeAliasesToMakeVisible","allowModules","hadAccessibleChain","earlyModuleBail","accessibleSymbolChain","hasAccessibleDeclarations","hasVisibleDeclarations","containers","parentResult","errorSymbolName","errorModuleName","symbolExternalModule","enclosingExternalModule","hasExternalModuleSymbol","shouldComputeAliasToMakeVisible","aliasesToMakeVisible","getIsDeclarationVisible","anyImportSyntax","addVisibleAlias","aliasingStatement","isVisible","isEntityNameVisible","firstIdentifier","nodeFlags","builder","symbolToStringWorker","printer","createPrinter","neverAsciiEscape","writeNode","signatureToStringWorker","sigOutput","toNodeBuilderFlags","omitTrailingSemicolon","noTruncation","noErrorTruncation","typeNode","maxLength","getTypeNamesForErrorDisplay","leftStr","symbolValueDeclarationIsContextSensitive","rightStr","getTypeNameForErrorDisplay","isClassInstanceSide","getDeclaredTypeOfClassOrInterface","tracker","withContext","typeToTypeNodeHelper","indexInfo","indexInfoToIndexSignatureDeclarationHelper","signatureToSignatureDeclarationHelper","symbolToName","typeParametersToTypeParameterDeclarations","symbolTableToDeclarationStatements","bundled","moduleResolverHost","getSymlinkCache","redirectTargetsMap","getFileIncludeReasons","encounteredError","reportedDiagnostic","symbolDepth","inferTypeParameters","approximateLength","wrapSymbolTrackerToReportForContext","resultingNode","truncating","reportTruncationError","oldTrackSymbol","reportCyclicStructureError","wrapReportedDiagnostic","reportLikelyUnsafeImportRequiredError","reportNonlocalAugmentation","reportNonSerializableProperty","checkTruncationLength","throwIfCancellationRequested","inTypeAlias","getReducedType","parentName","symbolToTypeNode","appendReferenceToType","isThisTypeParameter","typeArgumentNodes","mapToTypeNodes","visitAndTransformType","typeReferenceToTypeNode","typeParameterToDeclarationWithConstraint","typeParameterToName","origin","formatUnionTypes","typeNodes","createAnonymousTypeNode","indexedType","indexTypeNode","texts_1","types_1","templateHead","objectTypeNode","conditionalTypeToTypeNode","checkTypeNode","saveInferTypeParameters","extendsTypeNode","trueTypeNode","typeToTypeNodeOrCircularityElision","getTrueTypeFromConditionalType","falseTypeNode","getFalseTypeFromConditionalType","getTypeId","createElidedInformationPlaceholder","createMappedTypeNodeFromType","appropriateConstraintTypeNode","isMappedTypeWithKeyofConstraintDeclaration","getModifiersTypeFromMappedType","getConstraintTypeFromMappedType","typeParameterNode","getTypeParameterFromMappedType","nameTypeNode","getNameTypeFromMappedType","templateTypeNode","removeMissingType","getTemplateTypeFromMappedType","getMappedTypeModifiers","mappedTypeNode","typeId","isInstanceType","getBaseTypeVariableOfClass","shouldWriteTypeOfFunctionSymbol","getTypeAliasForTypeLiteral","createTypeNodeFromObjectType","isStaticMethodSymbol","isNonLocalFunctionSymbol","transform","isConstructorObject","serializedTypes","cachedResult","addedLength","deepCloneOrReuseNode","startLength","isGenericMappedType","containsError","signatureNode","abstractSignatures","getOrCreateTypeFromSignature","typeElementCount","getIntersectionType","savedFlags","createTypeNodesFromResolvedType","typeLiteralNode","typeArgumentNode","arrayType","outerTypeParameters","resultType","length_2","getParentSymbolOfTypeParameter","typeArgumentSlice","flags_3","typeParameterCount","finalRef","elementFlags","arity","getTypeReferenceArity","tupleConstituentNodes","labeledElementDeclarations","getTupleElementLabel","tupleTypeNode","ids","getAccessStack","ids_1","ids_2","resolvedType","typeElements","properties_1","addPropertyToElementList","shouldUsePlaceholderForProperty","reverseMappedStack","propertyType","propertyIsReverseMapped","getNonMissingTypeOfSymbol","saveEnclosingDeclaration","isLateBoundName","hasLateBindableName","trackComputedName","getPropertyNameNodeForSymbol","optionalToken","getPropertiesOfObjectType","isReadonlySymbol","signatures","filterType","signatures_1","preserveCommentsOn","propertyTypeNode","serializeTypeForDeclaration","propertySignature","commentText","isBareList","mayHaveNameCollisions","seenNames","result_5","types_2","typeNode_1","typesAreSameReference","types_3","resultIndex","indexerTypeNode","indexingParameter","isReadonly","suppressAny","mapper","instantiateType","returnTypeNode","expandedParams","privateSymbolVisitor","bundledImports","returnType","isTypeAny","serializeReturnTypeForSignature","constraintNode","defaultParameter","defaultParameterNode","preserveModifierFlags","parameterDeclaration","parameterType","isRequiredInitializedParameter","isOptionalUninitializedParameter","getTypeWithFacts","parameterTypeNode","isRest","cloneBindingName","isOptional","parameterNode","elideInitializerAndSetEmitFlags","isLateBindableName","accessExpression","lookupSymbolChain","yieldModuleSymbol","lookupSymbolChainWorker","isTypeParameter","getSymbolChain","endOfChain","parentSpecifiers","parents_1","getSpecifierForModuleSymbol","sortByBestName","sortedParents","sortedParents_1","parentChain","specifierA","specifierB","isBRelative","moduleSpecifiers","countPathComponents","typeParameterNodes","getTargetSymbol","lookupTypeParameterNodes","typeParameterSymbolList","nextSymbol_1","params","getTypeParametersOfClassOrInterface","getMappedType","getTopmostIndexedAccessType","top","equivalentFileSymbol","trackReferencedAmbientModule","ambientDecls","contextFile","specifierCache","isBundle_1","specifierCompilerOptions","getModuleSpecifiers","importModuleSpecifierPreference","importModuleSpecifierEnding","overrideTypeArguments","nonRootParts","createAccessFromSymbolChain","lit","trackExternalModuleSymbolOfImportTypeNode","splitNode","lastTypeArgs","stopper","getNameOfSymbolAsWritten","exports_1","ex","LHS","typeParameterShadowsNameInScope","typeParameterNames","cached","rawtext","typeParameterNamesByTextNextNameCount","typeParameterNamesByText","expectsIdentifier","createEntityNameFromSymbolChain","createExpressionFromSymbolChain","firstChar","canUsePropertyAccess","isStringNamed","isSingleQuotedStringNamed","fromNameType","getPropertyNameNodeForSymbolFromNameType","stringNamed","createPropertyNameNodeForIdentifierOrLiteral","isNumericLiteralName","cloneNodeBuilderContext","getDeclarationWithTypeAnnotation","existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount","getMinTypeArgumentCount","includePrivateSymbol","declWithExistingAnnotation","result_6","serializeExistingTypeNode","oldFlags","annotation","annotated","thisInstantiated","isThisType","trackExistingEntityName","introducesError","leftmost","hadError","transformed","visitExistingNodeTreeSymbols","typeViaParent","overrideTypeNode","newTypeNode_1","getEffectiveDotDotDotForParameter","getNameForJSDocFunctionParameter","getIntendedTypeFromJSDocTypeReference","resolveTypeReferenceName","getTypeReferenceName","nodeSymbol","rewriteModuleSpecifier","targetFile","resolverHost","newName","serializePropertySymbolForClass","makeSerializePropertySymbol","serializePropertySymbolForInterfaceWorker","_decorators","mods","question","deferredPrivatesStack","oldcontext","usedSymbolNames","remappedSymbolNames","accessibleResult","baseName","getInternalSymbolName","addingDeclare","visitSymbolTable","mergeRedundantStatements","isIdentifierAndNotUndefined","getNamesOfDeclaration","flattenExportAssignedNamespace","nsIndex","excessExports","name_2","mixinExportFlag_1","addResult","mergeExportDeclarations","nonExports","reexports","groups","_loop_9","group_1","groups_1","inlineExportModifiers","exportDecl","replacements","associatedIndices","canHaveExportModifier","associatedIndices_1","index_1","addExportModifier","isTypeDeclaration","removeExportModifier","suppressNewPrivateContext","propertyAsAlias","serializeSymbol","isPrivate","visitedSym","skipMembershipCheck","oldContext","serializeSymbolWorker","isDefault","needsPostExportDefault","needsExportDeclaration","isConstMergedWithNS","isConstMergedWithNSPrintableAsSignatureMerge","isTypeRepresentableAsFunctionNamespaceMerge","serializeAsFunctionNamespaceMerge","serializeTypeAlias","createdExport","serializeMaybeAliasAssignment","localName","isConstVariable","getUnusedName","textRange","propertyAccessRequire","alias","serializeEnum","serializeAsAlias","serializeAsClass","isTypeOnlyNamespace","serializeModule","serializeInterface","isExternalImportAlias","isExportingScope","additionalModifierFlags","newModifierFlags","enclosingDeclaration_1","aliasType","getDeclaredTypeOfTypeAlias","typeParams","typeParamDecls","jsdocAliasDecl","oldEnclosingDecl","interfaceType","localParams","baseTypes","serializePropertySymbolForInterface","serializeSignatures","indexSignatures","serializeIndexSignatures","trySerializeAsTypeReference","getNamespaceMembersForSerialization","isNamespaceMember","locationMap","realMembers","mergedMembers","serializeAsNamespaceDeclaration","containingFile_1","nsBody","aliasDecl","targetName","isConstEnumSymbol","initializedValue","signatures_2","getSignatureTextRangeLocation","localVsRemoteMap","localProps","fakespace","oldResults","oldAddingDeclare","subcontext","defaultReplaced","exportModifierStripped","sanitizeJSDocImplements","oldEnclosing","cleanup","originalDecl","classType","originalImplements","implementsExpressions","getImplementsTypes","serializeImplementedType","staticType","isClass","staticBaseType","getBaseConstructorTypeOfClass","serializeBaseType","symbolProps","getNonInterhitedProperties","publicSymbolProps","valueDecl","privateProperties","publicProperties","staticMembers","isNonConstructableClassLikeInJsFile","constructors","verbatimTargetName","specifier_1","serializeExportSpecifier","specifier_2","isLocalImport","isExportAssignmentCompatibleSymbolName","first_1","getFirstNonModuleExportsIdentifier","oldTrack","varName","typeToSerialize","hostSymbol","ctxSrc","createProperty","methodKind","useAccessors","isTypeIdenticalTo","firstPropertyLikeDecl","isPrivate_1","results_1","signatures_3","outputKind","baseSigs","failed","compareSignaturesIdentical","compareTypesIdentical","privateProtected","signatures_4","signatures_5","baseInfo","rootName","tempName","typeArgs","reference","getNameCandidateWorker","nameCandidate","typePredicateToStringWorker","getBaseTypeOfEnumLiteralType","getRegularTypeOfLiteralType","visibilityToString","isTopLevelInExternalModuleAugmentation","isDefaultBindingContext","getNameOfSymbolFromNameType","name_3","determineIfDeclarationIsVisible","getDeclarationContainer","collectLinkedAliases","setVisibility","buildVisibleNodeList","resultNode","internalModuleReference","importSymbol","pushTypeResolution","resolutionCycleStartIndex","findResolutionCycleStartIndex","length_3","declaredType","resolvedBaseConstructorType","resolvedReturnType","immediateBaseConstraint","baseTypesResolved","popTypeResolution","getTypeOfPrototypeProperty","createTypeReference","getTypeOfPropertyOrIndexSignature","getApplicableIndexInfoForName","getTypeForBindingElementParent","getTypeForVariableLikeDeclaration","getRestType","mapType","omitKeyType","getLiteralTypeFromPropertyName","isGenericObjectType","isGenericIndexType","omitTypeAlias","getGlobalOmitSymbol","getTypeAliasInstantiation","getLiteralTypeFromProperty","isSpreadableProperty","getSpreadSymbol","isGenericTypeWithUndefinedConstraint","maybeTypeOfKind","getNonUndefinedType","typeOrConstraint","someType","getBaseConstraintOrType","getFlowTypeOfDestructuring","getSyntheticElementAccess","getFlowTypeOfReference","getParentElementAccess","getDestructuringPropertyName","lhsExpr","getLiteralPropertyNameText","getTypeForBindingElement","parentType","getTypeFacts","getTypeOfInitializer","isValidSpreadType","literalMembers","getIndexedAccessType","checkIteratedTypeOrElementType","index_2","everyType","sliceTupleType","accessFlags","hasDefaultValue","getIndexedAccessTypeOrUndefined","getFalsyFlags","checkDeclarationInitializer","widenTypeInferredFromInitializer","getTypeForDeclarationFromJSDocComment","jsdocType","addOptionality","isProperty","includeOptionality","getIndexType","getNonNullableTypeIfNeeded","checkExpression","getExtractStringType","forOfStatement","checkRightHandSideOfForOf","isJSDocOptionalParameter","isOptionalJSDocPropertyLikeTag","tryGetTypeFromEffectiveTypeNode","hasBindableName","getterSignature","getAccessorThisParameter","getRestTypeAtPosition","getContextualThisParameterType","getContextuallyTypedParameterType","containerObjectType","getJSContainerObjectType","getFlowTypeInStaticBlocks","getTypeOfPropertyInBaseClass","getFlowTypeInConstructor","getTypeFromBindingPattern","isConstructorDeclaredProperty","getDeclaringConstructor","isPossiblyAliasedThisProperty","getAnnotatedTypeForAssignmentDeclaration","isAutoTypedProperty","getFlowTypeFromCommonJSExport","accessName","areAllModuleExports","staticBlocks_1","staticBlock","flowType","getFlowTypeOfProperty","convertAutoToAny","initialType","getWidenedTypeForAssignmentDeclaration","getWidenedLiteralType","definedInConstructor","definedInMethod","isDeclarationInConstructor","getInitializerTypeFromAssignmentDeclaration","constructorTypes","getConstructorDefinedThisAssignmentTypes","sourceTypes","widened","reportImplicitAny","s_2","errorNextVariableOrPropertyDeclarationMustHaveSameType","typeNode_2","annotationSymbol","objectLitType","valueType","getFunc","getSig","getSingleCallSignature","setFunc","setSig","getTypeOfFirstParameterOfSignature","containsSameNamedThisProperty","exportedType","members_4","initialSize","exportedMember","exportedMemberName","union","isEmptyArrayLiteralType","thisProperty","isMatchingReference","getTypeFromBindingElement","includePatternInType","reportErrors","contextualType","declarationBelongsToPrivateAmbientMember","getTypeFromObjectBindingPattern","stringIndexInfo","exprType","isTypeUsableAsPropertyName","getPropertyNameFromType","getTypeFromArrayBindingPattern","restElement","createIterableType","elementTypes","minLength","createTupleType","cloneTypeReference","getWidenedTypeForVariableLikeDeclaration","widenTypeForVariableLikeDeclaration","isGlobalSymbolConstructor","globalSymbol","getGlobalESSymbolConstructorTypeSymbol","getESSymbolLikeTypeForNode","reportErrorsFromWidening","memberDeclaration","isPrivateWithinAmbient","getTypeOfVariableOrParameterOrProperty","getTypeOfVariableOrParameterOrPropertyWorker","type_1","getTypeOfFuncClassEnumModule","reportCircularityError","checkPropertyAssignment","checkJsxAttribute","checkExpressionForMutableLocation","checkObjectLiteralMethod","getTypeOfEnumMember","resolveTypeOfAccessors","getAnnotatedAccessorTypeNode","getterTypeAnnotation","setterTypeAnnotation","getAnnotatedAccessorType","getAnnotatedAccessorThisParameter","getThisTypeOfDeclaration","getThisTypeOfSignature","getTypeOfAccessors","getTypeOfAccessorsWorker","getTypeOfSetAccessor","writing","setter","setterType","instantiateTypeIfNeeded","jsDocType","getterType","returnTypeFromBody","getReturnTypeFromBody","baseConstructorType","originalLinks","expando","getTypeOfFuncClassEnumModuleWorker","type_2","baseTypeVariable","getDeclaredTypeOfEnumMember","getTypeOfAlias","isDuplicatedCommonJSExport","getTypeOfInstantiatedSymbol","getTypeOfSymbolWithDeferredType","deferralParent","deferralConstituents","getSetAccessorTypeOfSymbol","getTypeOfMappedSymbol","getTypeOfReverseMappedSymbol","isReferenceToType","getTargetType","hasBaseType","checkBase","appendTypeParameters","declarations_2","getDeclaredTypeOfTypeParameter","getOuterTypeParameters","includeThisTypes","getInferTypeParameters","outerAndOwnTypeParameters","paramSymbol","getOuterTypeParametersOfClassOrInterface","isMixinConstructorType","signatureHasRestParameter","getTypeOfParameter","getBaseTypeNodeOfClass","getConstructorsForTypeArguments","typeArgCount","isJavascript","getInstantiatedConstructorsForTypeArguments","getSignatureInstantiation","extended","baseTypeNode","getConstraintFromTypeParameter","ctorReturn","ctorSig","resolvedImplementsTypes","implementsTypeNodes","implementsTypeNodes_1","implementsType","reportCircularBaseType","resolvedBaseTypes","getTupleBaseType","resolveBaseTypesOfClass","resolveBaseTypesOfInterface","originalBaseType","areAllOuterTypeParametersApplied","getTypeFromClassOrInterfaceReference","reducedBaseType","isValidBaseType","elaboration","elaborateNeverIntersection","last_1","isThislessInterface","baseTypeNodes","baseTypeNodes_1","baseSymbol","getAssignedClassSymbol","localTypeParameters","getTypeListId","isStringConcatExpression","isLiteralEnumMember","getEnumKind","enumKind","hasNonLiteralMember","getDeclaredTypeOfEnum","memberTypeList","getEnumMemberValue","memberType","getFreshTypeOfLiteralType","getEnumLiteralType","enumType_1","enumType","getDeclaredTypeOfAlias","tryGetDeclaredTypeOfSymbol","isThislessType","isThislessTypeParameter","isThislessVariableLikeDeclaration","isThislessFunctionLikeDeclaration","isThisless","createInstantiatedSymbolTable","mappingThisOnly","symbols_2","instantiateSymbol","addInheritedMembers","baseSymbols","baseSymbols_1","isStaticPrivateIdentifierProperty","resolveDeclaredMembers","declaredProperties","declaredCallSignatures","declaredConstructSignatures","declaredIndexInfos","getSignaturesOfSymbol","getIndexInfosOfSymbol","checkComputedPropertyName","isNonBindableDynamicName","addDeclarationToLateBoundSymbol","lateSymbol","lateBindMember","earlySymbols","lateSymbols","earlySymbol","name_4","resolutionKind","isStatic_1","members_5","assignments","decls_1","isInstanceMember","getTypeWithThisArgument","thisArgument","needApparentType","resolveObjectTypeMembers","createTypeMapper","instantiateSignatures","instantiateIndexInfos","baseTypes_1","instantiatedBaseType","inheritedIndexInfos","findIndexInfo","resolveClassOrInterfaceMembers","resolveTypeReferenceMembers","paddedTypeArguments","resolvedTypePredicate","minArgumentCount","resolvedMinArgumentCount","compositeSignatures","compositeKind","cloneSignature","createUnionSignature","unionSignatures","getOptionalCallSignature","callChainFlags","optionalCallSignatureCache","createOptionalCallSignature","skipUnionExpanding","restIndex_1","restType","expandSignatureParametersWithTupleMembers","restIndex","associatedNames","restParams","tupleLabelName","getParameterNameAtPosition","getDefaultConstructSignatures","baseSignatures","isAbstract","isJavaScript","typeArgumentsFromTypeReferenceNode","baseSignatures_1","baseSig","minTypeArgumentCount","typeParamCount","createSignatureInstantiation","fillMissingTypeArguments","findMatchingSignature","signatureList","partialMatch","ignoreThisTypes","ignoreReturnTypes","signatureList_1","compareTypesSubtypeOf","findMatchingSignatures","signatureLists","listIndex","getUnionSignatures","indexWithLengthOverOne","firstThisParameterOfUnionSignatures","createSymbolWithType","masterList","_loop_10","signature_1","compareTypeParametersIdentical","combineSignaturesOfUnionMembers","signatureLists_1","state_3","sourceParams","targetParams","combineUnionThisParam","combineUnionParameters","leftCount","getParameterCount","rightCount","longest","shorter","longestCount","eitherHasEffectiveRest","needsExtraRestElement","longestParamType","tryGetTypeAtPosition","shorterParamType","unionParamType","isRestParam","getMinArgumentCount","leftName","rightName","restParamSymbol","paramMapper","thisParam","minArgCount","combineTypeMappers","getUnionIndexInfos","sourceInfos","_loop_11","sourceInfos_1","resolveUnionTypeMembers","intersectTypes","type1","type2","findMixins","constructorTypeCount","mixinFlags","firstMixinIndex","includeMixinType","mixedTypes","resolveIntersectionTypeMembers","mixinCount","_loop_12","appendSignatures","infos","newInfo","appendIndexInfo","newSignatures","_loop_13","newSignatures_1","resolveAnonymousTypeMembers","varsOnly_1","baseConstructorIndexInfo","indexSymbol","getIndexInfosOfIndexSymbol","classType_1","replaceIndexedAccess","instantiable","replacement","resolveReverseMappedTypeMembers","readonlyMask","optionalMask","inferReverseMappedType","inferredProp","newTypeParam","newMappedType","getLowerBoundOfKeyType","isGenericTupleType","getKnownKeysOfTupleType","isDistributive","getConditionalTypeInstantiation","prependTypeMapping","getIsLateCheckFlag","resolveMappedTypeMembers","templateModifiers","addMemberForKeyType","forEachType","propNameType","appendTypeMapping","addMemberForKeyTypeWorker","existingProp","modifiersProp","stripOptional","lateFlag","syntheticOrigin","isValidIndexKeyType","indexKeyType","removeMissingOrUndefinedType","getConstraintDeclarationForMappedType","constraintDeclaration","getTypeFromMappedTypeNode","extendedConstraint","getMappedTypeOptionality","getCombinedMappedTypeOptionality","optionality","isPartialMappedType","getPropertyOfObjectType","getPropertiesOfUnionOrIntersectionType","resolvedProperties","combinedProp","getPropertyOfUnionOrIntersectionType","getReducedApparentType","expected","isLiteralType","unionType","types_4","createUnionOrIntersectionProperty","getConstraintOfType","getConstraintOfIndexedAccess","getConstraintOfConditionalType","hasNonCircularBaseConstraint","getConstraintFromIndexedAccess","getSimplifiedTypeOrConstraint","getSimplifiedType","indexConstraint","objectConstraint","getDefaultConstraintOfConditionalType","resolvedDefaultConstraint","trueConstraint","getInferredTrueTypeFromConditionalType","falseConstraint","getConstraintOfDistributiveConditionalType","restrictiveInstantiation","getConstraintFromConditionalType","getEffectiveConstraintOfIntersection","targetIsUnion","constraints","hasDisjointDomainType","types_5","types_6","getResolvedBaseConstraint","resolvedBaseConstraint","stack","getImmediateBaseConstraint","isDeeplyNestedType","computeBaseConstraint","getConstraintDeclaration","getBaseConstraint","different","types_7","type_3","getTemplateLiteralType","getStringMappingType","baseObjectType","baseIndexType","baseIndexedAccess","getApparentTypeOfIntersectionType","resolvedApparentType","getResolvedTypeParameterDefault","targetDefault","defaultDeclaration","hasNonCircularTypeParameterDefault","hasTypeParameterDefault","getApparentTypeOfMappedType","getResolvedApparentTypeOfMappedType","typeVariable","getHomomorphicTypeVariable","getGlobalBigIntType","getGlobalESSymbolType","containingType","skipObjectFunctionPropertyAugment","singleProp","propSet","indexTypes","isUnion","optionalFlag","syntheticFlag","mergedInstantiations","isInstantiation","getRestTypeOfTupleType","isObjectLiteralType","clone_1","firstType","firstValueDeclaration","propTypes","hasNonUniformValueDeclaration","props_1","getUnionOrIntersectionProperty","propertyCacheWithoutObjectFunctionPropertyAugment","propertyCache","resolvedReducedType","getReducedUnionType","isNeverReducedProperty","reducedTypes","isDiscriminantWithNeverType","isConflictingPrivateProperty","neverProp","privateProp","symbol_1","findApplicableIndexInfo","applicableInfo","applicableInfos","indexInfos_1","isApplicableIndexType","getIndexInfosOfStructuredType","getApplicableIndexInfos","getApplicableIndexInfo","getTypeParametersFromDeclaration","withAugmentations","parameterIndex","iife","isOptionalPropertyDeclaration","isJavaScriptImplicitAny","numTypeParameters","numTypeArguments","baseDefaultType","getDefaultTypeArgumentType","hasThisParameter","isJSConstructSignature","isUntypedSignatureInJSFile","isOptionalParameter_1","otherKind","maybeAddJsSyntheticRestParameter","lastParam","lastParamTags","lastParamVariadicType","syntheticArgsSymbol","getSignatureOfTypeTag","getReturnTypeOfTypeTag","targetTypePredicate","instantiateTypePredicate","getUnionOrIntersectionTypePredicate","jsdocPredicate","jsdocSignature","createTypePredicateFromTypePredicateNode","getUnionOrIntersectionType","unionReduction","getReturnTypeFromAnnotation","addOptionalTypeMarker","isResolvingReturnTypeOfSignature","tryGetRestTypeOfSignature","sigRestType","inferredTypeParameters","instantiatedSignature","getSignatureInstantiationWithoutFillingInTypeArguments","returnSignature","getSingleCallOrConstructSignature","newReturnSignature","newInstantiatedSignature","instantiation","instantiateSignature","createSignatureTypeMapper","getErasedSignature","erasedSignatureCache","createErasedSignature","createTypeEraser","getCanonicalSignature","canonicalSignatureCache","createCanonicalSignature","getBaseSignature","baseSignatureCache","typeEraser","baseConstraintMapper_1","baseConstraints","instantiateTypes","isolatedSignatureType","isConstructor","getIndexSymbol","indexInfos_2","_loop_14","isPatternLiteralType","getInferredTypeParameterConstraint","inferences","childTypeParameter","grandParent","typeReference","getTypeParametersForTypeReference","declaredConstraint","getEffectiveTypeArguments","checkMappedType_1","nodeType","makeUnaryTypeMapper","targetConstraint","length_4","startId","getAliasId","getPropagatingFlagsOfTypes","excludeKinds","types_8","createDeferredTypeReference","getAliasSymbolForTypeNode","localAliasTypeArguments","getTypeArgumentsForAliasSymbol","isJs","isJsImplicitAny","missingAugmentsTag","typeStr","isDeferredTypeReferenceNode","checkNoTypeArguments","instantiateTypeWithAlias","getTypeFromTypeAliasReference","newAliasSymbol","isLocalTypeAlias","typeReferenceName","getTypeReferenceType","getTypeFromJSDocValueReference","resolvedJSDocType","typeType","isImportTypeWithQualifier","getSubstitutionType","isUnaryTupleTypeNode","getImpliedConstraint","checkNode","extendsNode","getActualTypeVariable","getConditionalFlowTypeOfType","covariant","indexed","getTypeFromJSDocNullableTypeNode","getTypeFromTypeReference","getTypeFromTypeQueryNode","checkThisExpression","getTypeOfGlobalSymbol","getTypeDeclaration","declarations_3","getGlobalValueSymbol","getGlobalSymbol","getGlobalTypeSymbol","getGlobalType","getGlobalTypedPropertyDescriptorType","getGlobalTemplateStringsArrayType","getGlobalImportMetaType","getGlobalImportMetaExpressionType","importMetaType","metaPropertySymbol","getGlobalESSymbolConstructorSymbol","getGlobalPromiseType","getGlobalPromiseLikeType","getGlobalPromiseConstructorSymbol","getGlobalPromiseConstructorLikeType","getGlobalIteratorYieldResultType","getGlobalIteratorReturnResultType","getGlobalTypeOrUndefined","getGlobalExtractSymbol","createTypeFromGenericGlobalType","genericGlobalType","createTypedPropertyDescriptorType","iteratedType","getTupleElementFlags","getRestTypeElementFlags","getArrayElementTypeNode","getArrayOrTupleTargetType","isReadonlyTypeOperator","missingName","getTupleTargetType","hasDefaultTypeArguments","isResolvedByTypeAlias","mayResolveTypeAlias","getTypeFromArrayOrTupleTypeNode","createNormalizedTypeReference","namedMemberDeclarations","tupleTarget","createTupleTargetType","combinedFlags","tupleLabelDeclaration","fixedLength","lengthSymbol","literalTypes","hasRestElement","createNormalizedTupleType","unionIndex_1","checkCrossProductUnion","expandedTypes","expandedFlags","expandedDeclarations","lastRequiredIndex","firstRestIndex","lastOptionalOrRestIndex","_loop_15","addElement","state_4","endSkipCount","getRestArrayTypeOfTupleType","getStartElementCount","getEndElementCount","getTypeFromOptionalTypeNode","containsType","insertType","addTypeToUnion","typeSet","addTypesToUnion","isNamedUnionType","types_9","removeSubtypes","hasObjectTypes","hasEmptyObject","isEmptyResolvedType","keyProperty","isUnitType","keyPropertyType","types_10","estimatedCount","typeIds","isTypeRelatedTo","isTypeDerivedFrom","removeRedundantLiteralTypes","reduceVoidUndefined","isFreshLiteralType","removeStringLiteralsMatchedByTemplateLiterals","templates","_loop_16","isTypeSubtypeOf","addNamedUnions","namedUnions","types_11","createOriginUnionOrIntersectionType","missingIndex","_loop_17","typeSet_1","namedTypesCount","namedUnions_1","getUnionTypeFromSortedList","signatures_6","typePredicateKindsMatch","compositeType","typeKey","getTypeFromUnionTypeNode","addTypeToIntersection","addTypesToIntersection","isEmptyAnonymousObjectType","types_12","removeRedundantPrimitiveTypes","eachUnionContains","unionTypes_1","primitive","extractRedundantTemplateLiterals","literals","literals_1","extractIrreducible","tt","intersectUnionsOfPrimitiveTypes","checked","unionTypes_2","createIntersectionType","typeMembershipMap","constituents","getCrossProductIntersections","getCrossProductUnionSize","intersections","length_5","getTypeFromIntersectionTypeNode","createIndexType","stringsOnly","createOriginIndexType","getIndexTypeForGenericType","resolvedStringIndexType","resolvedIndexType","instantiateTypeAsMappedNameType","getIndexTypeForMappedType","noIndexSignatures","hasDistributiveNameType","includeNonPublic","getLiteralTypeFromProperties","includeOrigin","propertyTypes","indexKeyTypes","extractTypeAlias","getIndexTypeOrString","getTypeFromTypeOperatorNode","getTypeFromTemplateTypeNode","unionIndex","newTypes","newTexts","addSpans","getTemplateStringForType","isPatternLiteralPlaceholderType","getStringMappingTypeForGenericType","applyStringMapping","createStringMappingType","createIndexedAccessType","isJSLiteralType","getPropertyNameFromIndex","accessNode","isUncalledFunctionReference","hasMatchingArgument","getPropertyTypeForIndexType","originalObjectType","fullIndexType","getDeclarationNodeFlagsFromSymbol","deprecatedNode","markPropertyAsReferenced","isSelfTypeAccess","isAssignmentToReadonlyEntity","isThisPropertyAccessInConstructor","indexNode","getIndexNodeForAccessExpression","errorIfWritingToReadonlyIndex","isTypeAssignableToKind","isConstEnumObjectType","suppressImplicitAnyIndexErrors","typeHasStaticProperty","suggestion_1","getSuggestionForNonexistentIndexSignature","symbolName_2","isGenericType","getGenericObjectFlags","getSimplifiedIndexedAccessType","getSimplifiedConditionalType","distributeIndexOverObjectType","distributeObjectOverIndexType","distributedOverIndex","distributedOverObject","getElementTypeOfSliceOfTupleType","substituteIndexedMappedType","isConditionalTypeAlwaysTrueDisregardingInferTypes","extendsInferParamMapper","getRestrictiveInstantiation","isIntersectionEmpty","templateMapper","indexTypeLessThan","isStringIndexSignatureOnlyType","noUncheckedIndexedAccess","persistentAccessFlags","apparentObjectType","wasMissingProp","getTypeFromIndexedAccessTypeNode","potentialAlias","isTypicalNondistributiveConditional","isSingletonTupleType","unwrapNondistributiveConditionalTuple","getConditionalType","extraTypes","isUnwrapped","checkTypeInstantiable","combinedMapper","createInferenceContext","inferTypes","inferredExtendsType","getPermissiveInstantiation","falseType_1","newRoot","resolvedInferredTrueType","getTypeFromConditionalTypeNode","allOuterTypeParameters","isTypeParameterPossiblyReferenced","getTypeFromInferTypeNode","getIdentifierChain","getTypeFromImportTypeNode","targetMeaning","innerModuleSymbol","resolveImportSymbolType","nameStack","currentNamespace","mergedResolvedSymbol","getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode","isNonGenericObjectType","isEmptyObjectTypeOrSpreadsIntoEmptyObject","isEmptyObjectType","tryMergeUnionOfObjectTypeAndEmptyObject","secondType","getAnonymousPartialType","isSetonlyAccessor","spread","getSpreadType","lastLeft","skippedPrivateMembers","rightProp","leftProp","rightType","leftSpread","rightSpread","getIndexInfoWithReadonly","createLiteralType","enumId","getTypeFromLiteralTypeNode","createUniqueESSymbolType","uniqueESSymbolType","getThisType","getTypeFromThisTypeNode","getTypeFromRestTypeNode","getTypeFromNamedTupleTypeNode","getTypeFromTypeNodeWorker","getTypeFromJSDocVariadicType","instantiateList","items","instantiator","instantiateIndexInfo","targets","makeArrayTypeMapper","mapper1","mapper2","makeCompositeTypeMapper","createBackreferenceMapper","mergeTypeMappers","cloneTypeParameter","eraseTypeParameters","freshTypeParameters","freshTypeParameters_1","couldContainTypeVariables","getObjectTypeInstantiation","templateTagParameters","allDeclarations_1","combinedMapper_1","newAliasTypeArguments","newMapper","instantiateMappedType","instantiateAnonymousType","maybeTypeParameterReference","containsReference","mappedTypeVariable","mapTypeWithAlias","instantiateMappedArrayType","instantiateMappedGenericTupleType","instantiateMappedTupleType","getModifiedReadonlyState","tupleType","singleton","newReadonly","instantiateMappedTypeTemplate","isReadonlyArrayType","newTupleModifiers","origTypeParameter","freshTypeParameter","instantiateConditionalType","checkType_1","instantiateTypeWorker","newTypeArguments","instantiateReverseMappedType","maybeVariable","sub","innerMappedType","innerIndexType","inferTypeForHomomorphicMappedType","permissiveInstantiation","isContextSensitiveFunctionLikeDeclaration","hasContextSensitiveReturnExpression","isContextSensitiveFunctionOrObjectLiteralMethod","isFunctionExpressionOrArrowFunction","getTypeWithoutSignatures","compareTypesAssignable","isFunctionObjectType","isTypeComparableTo","areTypesComparable","checkTypeAssignableTo","headMessage","containingMessageChain","errorOutputObject","checkTypeRelatedTo","checkTypeAssignableToAndOptionallyElaborate","checkTypeRelatedToAndOptionallyElaborate","relation","errorOutputContainer","elaborateError","isOrHasGenericConditional","elaborateDidYouMeanToCallOrConstruct","elaborateObjectLiteral","elaborateArrayLiteral","elaborateJsxComponents","elaborateArrowFunction","resultObj","sourceSig","targetSignatures","returnExpression","sourceReturn","targetReturn","elaborated","getBestMatchIndexedAccessTypeOrUndefined","best","getBestMatchingType","checkExpressionForMutableLocationWithContextualType","sourcePropType","elaborateElementwise","reportedError","status","targetPropType","targetIsOptional","sourceIsOptional","specificSource","reportedDiag","targetProp","issuedElaboration","targetNode","generateJsxAttributes","isHyphenatedJsxName","generateJsxChildren","getInvalidTextDiagnostic","memberOffset","elem","getElaborationElementForJsxChild","invalidTextDiagnostic","containingElement","childPropName","getJsxElementChildrenPropertyName","getJsxNamespaceAt","childrenPropName","childrenNameType","childrenTargetType","validChildren","moreThanOneRealChildren","arrayLikeTargetParts","isArrayOrTupleLikeType","nonArrayLikeTargetParts","realSource","checkJsxChildren","getInvalidTextualChildDiagnostic","skipLogging","elem_1","tagNameText","generateLimitedTupleElements","isTupleLikeType","tupleizedType","checkArrayLiteral","generateObjectLiteralElements","checkTypeComparableTo","isSignatureAssignableTo","compareSignaturesRelated","isAnySignature","errorReporter","incompatibleErrorReporter","compareTypes","reportUnreliableMarkers","targetCount","sourceHasMoreParameters","instantiateSignatureInContextOf","sourceCount","sourceRestType","getNonArrayRestType","targetRestType","strictVariance","sourceThisType","targetThisType","paramCount","sourceType","targetType","targetSig","targetReturnType","sourceReturnType","sourceTypePredicate","compareTypePredicateRelatedTo","isImplementationCompatibleWithOverload","implementation","overload","erasedSource","erasedTarget","isEnumTypeRelatedTo","targetEnumType","targetProperty","isSimpleTypeRelatedTo","getRelationKey","isIgnoredJsxProperty","sourceProp","getNormalizedType","getSingleBaseForNonAugmentingSubtype","relatedInfo","maybeKeys","sourceStack","targetStack","lastSkippedInfo","maybeCount","expandingFlags","overflow","overrideNextErrorInfo","incompatibleStack","inPropertyCheck","isRelatedTo","reportIncompatibleStack","sourceId","targetId","helpfulRetry","diag_1","resetErrorInfo","saved","captureErrorCalculationState","reportIncompatibleError","reportRelationError","secondaryRootErrors","mappedMsg","secondaryRootErrors_1","originalValue","associateRelatedInfo","generalizedSource","generalizedSourceType","typeCouldHaveTopLevelSingletonTypes","needsOriginalSource","tryElaborateErrorsForPrimitivesAndObjects","tryElaborateArrayLikeErrors","isMutableArrayOrTuple","originalSource","originalTarget","intersectionState","reportErrorResults","isIdenticalTo","nullStrippedTarget","extractTypesOfKind","isComparingJsxAttributes","isPerformingExcessPropertyChecks","hasExcessProperties","isPerformingCommonPropertyChecks","isWeakType","hasCommonProperties","sourceString","targetString","calls","constructs","traceUnionsOrIntersectionsTooLarge","saveErrorInfo","getConstituentCount","recursiveTypeRelatedTo","structuredTypeRelatedTo","sourceHasBase","targetHasBase","maybeSuppress","currentError","targetTypes","intrinsicAttributes","getJsxType","IntrinsicAttributes","intrinsicClassAttributes","IntrinsicClassAttributes","sourceUnionOrIntersection","targetUnionOrIntersection","sourceSize","targetSize","result_7","eachTypeRelatedToSomeType","getTypeOfPropertyInTypes","appendPropType","isExcessPropertyCheckTarget","isTypeSubsetOf","checkTypes","reducedTarget","findMatchingDiscriminantType","filterPrimitivesIfContainsNonPrimitive","_loop_18","shouldCheckAsExcessProperty","isKnownProperty","errorTarget","suggestionSymbol","objectLiteralDeclaration_1","propDeclaration","state_5","sourceTypes_1","typeRelatedToSomeType","getMatchingUnionConstituentForType","targetTypes_1","bestMatchingType","typeRelatedToEachType","targetTypes_2","someTypeRelatedToType","getUndefinedStrippedTargetIfNeeded","eachTypeRelatedToType","undefinedStrippedTarget","related_1","typeArgumentsRelatedTo","variances","varianceFlags","variance","reportUnmeasurableMarkers","broadestEquivalentId","maybeStart","originalHandler","saveExpandingFlags","propagatingVarianceFlags","onlyUnreliable","sourceIdStack","targetIdStack","structuredTypeRelatedToWorker","propertiesRelatedTo","getRegularTypeOfObjectLiteral","originalErrorInfo","result_8","varianceCheckFailed","aliasTypeArgumentsContainsMarker","getAliasVariances","varianceResult","relateVariances","isSingleElementGenericTupleType","countMessageChainBreadth","sourceKeys","includeOptional","filteredByApplicability","nonNullComponent","indexingType","skipTrue","skipFalse","distributionMapper","checkVar","newParam","localResult","result_9","inferTypesFromTemplateLiteralType","isValidTypeForTemplateLiteralPlaceholder","baseConstraint","sourceExtends","ctx","distributiveConstraint","defaultConstraint","mappedTypeRelatedTo","sourceIsPrimitive","getVariances","reportStructuralErrors","signaturesRelatedTo","indexSignaturesRelatedTo","objectOnlyTarget","result_10","typeRelatedToDiscriminatedType","sourceTypeArguments","targetTypeArguments","allowStructuralFallback","hasCovariantVoidArgument","modifiersRelated","result_11","sourceConstraint","sourceProperties","sourcePropertiesFiltered","findDiscriminantProperties","numCombinations","sourcePropertiesFiltered_1","sourceProperty","countTypes","sourceDiscriminantTypes","excludedProperties","sourcePropertyType","discriminantCombinations","matchingTypes","_loop_19","combination","hasMatch","_loop_20","propertyRelatedTo","state_7","discriminantCombinations_1","state_6","matchingTypes_1","excludeProperties","isPropertySymbolTypeRelated","getTypeOfSourceProperty","effectiveTarget","effectiveSource","skipOptional","sourcePropFlags","targetPropFlags","isValidOverrideOf","getDeclaringClass","reportUnmatchedProperty","unmatchedProperty","requireOptionalProperties","shouldSkipElaboration","privateIdentifierDescription","symbolTableKey","sourceName","propertiesIdenticalTo","sourceArity","targetArity","sourceRestFlag","targetRestFlag","sourceMinLength","targetMinLength","startCount","endCount","canExcludeDiscriminants","sourceIndex","targetFlags","targetCheckType","getUnmatchedProperty","numericNamesOnly","targetProperties","sourceProperties_1","signaturesIdenticalTo","sourceIsJSConstructor","targetIsJSConstructor","sourceSignatures","sourceIsAbstract","targetIsAbstract","constructorVisibilitiesAreCompatible","incompatibleReporter","reportIncompatibleConstructSignatureReturn","reportIncompatibleCallSignatureReturn","sourceObjectFlags","targetObjectFlags","signatureRelatedTo","eraseGenerics","noStrictGenericChecks","sourceSignature","targetSignature","constructSignatureToString","targetSignatures_1","shouldElaborateErrors","sourceSignatures_1","siga","sigb","erase","membersRelatedToIndexInfo","targetInfo","props_2","indexInfoRelatedTo","sourceInfo","indexSignaturesIdenticalTo","targetHasStringIndex","indexInfos_3","typeRelatedToIndexInfo","isObjectTypeWithInferableIndex","targetInfos","targetInfos_1","sourceAccessibility","targetAccessibility","findMatchingTypeReferenceOrTypeAliasReference","findBestTypeForObjectLiteral","findBestTypeForInvokable","findMostOverlappyType","discriminateTypeByDiscriminableItems","discriminators","skipPartial","discriminable","discriminators_1","getDiscriminatingType","nextMatch","getMarkerTypeReference","getVariancesWorker","_links","marker","createMarkerType","_loop_21","unmeasurable","unreliable","oldHandler","typeWithSuper","typeWithSub","typeParameters_1","isUnconstrainedTypeParameter","isNonDeferredTypeReference","isTypeReferenceWithGenericArguments","getTypeReferenceId","postFix","forEachProperty","baseClassType","isPropertyInClassDerivedFrom","baseClass","sp","sourceClass","isClassDerivedFromDeclaringClasses","checkClass","identity_1","isObjectOrArrayLiteralType","isPropertyIdenticalTo","sourcePropAccessibility","targetPropAccessibility","isMatchingSignature","sourceParameterCount","targetParameterCount","sourceMinArgumentCount","targetMinArgumentCount","sourceHasRestParameter","targetHasRestParameter","targetLen","compareTypePredicatesIdentical","literalTypesWithSameBaseType","commonBaseType","types_13","getSupertypeOrUnion","getCommonSupertype","primaryTypes","getFalsyFlagsOfTypes","getCommonSubtype","cachedEquivalentBaseType","bases","instantiatedBase","isEmptyLiteralType","getTupleElementType","isNeitherUnitTypeNorNever","isUnitLikeType","extractUnitType","getWidenedUniqueESSymbolType","getWidenedLiteralLikeTypeForContextualType","isLiteralOfContextualType","getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded","contextualSignatureReturnType","getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded","isAsyncGenerator","getIterationTypeOfGeneratorFunctionReturnType","isTupleTypeStructureMatching","isZeroBigInt","types_14","removeDefinitelyFalsyTypes","extractDefinitelyFalsyTypes","getDefinitelyFalsyPartOfType","getGlobalNonNullableTypeInstantiation","reducedType","removeType","propagateOptionalTypeMarker","wasOptional","getOptionalExpressionType","containsMissingType","isCoercibleUnderDoubleEquals","transformTypeOfMembers","regularNew","createWideningContext","siblings","getSiblingsOfContext","siblings_1","getPropertiesOfContext","getWidenedProperty","propContext","getWidenedTypeWithContext","getUndefinedProperty","getWidenedTypeOfObjectLiteral","unionContext_1","widenedTypes","reportWideningErrorsInType","errorReported","wideningKind","typeAsString","getContextualSignatureForFunctionLikeDeclaration","applyToParameterTypes","getEffectiveRestType","targetNonRestCount","applyToReturnTypes","createInferenceContextWorker","createInferenceInfo","cloneInferenceContext","extraFlags","cloneInferenceInfo","mapToInferredType","nonFixingMapper","fix","inference","isFixed","clearCachedInferences","getInferredType","inferences_1","inferredType","contraCandidates","impliedArity","cloneInferredPartOfContext","hasInferenceCandidates","getMapperFromContext","isNonGenericTopLevelType","isTypeParameterAtTopLevel","createEmptyObjectTypeFromStringLiteral","literalProp","createReverseMappedType","isPartiallyInferableType","reversed","getTypeFromInference","matchDiscriminantProperties","properties_2","tupleTypesDefinitelyUnrelated","typesDefinitelyUnrelated","hasSkipDirectInferenceFlag","isFromInferenceBlockedSource","isValidBigIntString","success","isFinite","inferFromLiteralPartsToTemplateLiteral","getStringLikeTypeForType","sourceTexts","lastSourceIndex","sourceStartText","sourceEndText","targetTexts","lastTargetIndex","targetStartText","targetEndText","remainingEndText","matches","seg","delim","getSourceText","addMatch","matchType","contravariant","propagationType","bivariant","inferencePriority","allowComplexConstraintInference","inferFromTypes","savePropagationType","inferFromTypeArguments","inferFromMatchingTypes","isTypeOrBaseIdenticalTo","tempSources","tempTargets","isTypeCloselyMatchedBy","inferWithPriority","getInferenceInfoForType","invokeOnce","simplified_1","empty","oldPriority","inferToConditionalType","inferToMultipleTypes","sourceTypes_2","inferToTemplateLiteralType","apparentSource","inferFromObjectTypes","newPriority","savePriority","saveInferencePriority","sourceIdentity","targetIdentity","matchedSources","matchedTargets","targets_1","sources_1","inferFromContravariantTypes","inferences_2","getSingleTypeVariableFromIntersectionTypes","types_15","typeVariableCount","nakedTypeVariable","matched_1","inferenceCircularity","targets_2","intersectionTypeVariable","unmatched","targets_3","targets_4","inferToMappedType","sourceNameType","targetNameType","endLength","middleLength","endsInOptional","sourceSlice","inferFromIndexTypes","inferFromProperties","inferFromSignatures","properties_3","sourceLen","skipParameters","inferFromSignature","saveBivariant","indexInfos_4","indexInfos_5","hasPrimitiveConstraint","unionObjectAndArrayLiteralCandidates","objectLiterals","literalsType","getContravariantInference","getCovariantInference","primitiveConstraint","widenLiteralTypes","baseCandidates","unwidenedType","inferredCovariantType","inferredContravariantType","instantiatedConstraint","isInJavaScriptFile","getInferredTypes","getFlowCacheKey","flowContainer","getAccessedPropertyName","containsTruthyCheck","getPropertyAccess","containsMatchingReference","optionalChainContainsReference","isDiscriminantProperty","sourceProperties_2","mapTypesByKeyProperty","_loop_22","discriminant","duplicate_1","types_16","state_8","getKeyPropertyName","keyPropertyName","mapByKeyProperty","constituentMap","getConstituentTypeForKeyType","getMatchingUnionConstituentForObjectLiteral","propNode","isPossiblyDiscriminantValue","getTypeOfExpression","isOrContainsMatchingReference","getFlowNodeId","typeMaybeAssignableTo","getAssignmentReducedType","assignedType","ignoreObjects","isEmpty","isZero","facts","getTypeWithDefault","defaultExpression","getTypeOfDestructuredProperty","includeUndefinedInIndexSignature","getTypeOfDestructuredArrayElement","getTypeOfDestructuredSpreadExpression","getAssignedTypeOfBinaryExpression","isDestructuringDefaultAssignment","isDestructuringAssignmentTarget","getAssignedType","getAssignedTypeOfArrayLiteralElement","getAssignedTypeOfSpreadExpression","getAssignedTypeOfPropertyAssignment","getAssignedTypeOfShorthandPropertyAssignment","getInitialTypeOfBindingElement","getInitialType","getInitialTypeOfVariableDeclaration","isEmptyArrayAssignment","getReferenceCandidate","getReferenceRoot","getTypeOfSwitchClause","getSwitchClauseTypes","switchTypes","getSwitchClauseTypeOfWitnesses","retainDefault","witnesses","eachTypeContainedIn","isTypeSubsetOfUnion","everyContainedType","filtered","newOrigin","originTypes","originFiltered","noReductions","mappedTypes","types_17","replacePrimitivesWithLiterals","typeWithPrimitives","typeWithLiterals","isIncomplete","getTypeFromFlowType","createFlowType","incomplete","createEvolvingArrayType","getEvolvingArrayType","addEvolvingArrayElementType","getContextFreeTypeOfExpression","createFinalArrayType","getFinalArrayType","finalizeEvolvingArrayType","getElementTypeOfEvolvingArrayType","isEvolvingArrayTypeList","hasEvolvingArrayType","types_18","isEvolvingArrayOperationTarget","isLengthPushOrUnshift","isElementAssignment","isDeclarationWithExplicitTypeAnnotation","getExplicitTypeOfSymbol","expressionType","getTypeOfDottedName","use","getExplicitThisType","checkSuperExpression","getEffectsSignature","effectsSignature","funcType","checkNonNullType","checkNonNullExpression","hasTypePredicateOrNeverReturnType","getTypePredicateArgument","invokedExpression","reportFlowControlError","isReachableFlowNode","isReachableFlowNodeWorker","isFalseExpression","noCacheCheck","reachable","predicateArgument","saveAntecedents","isExhaustiveSwitchStatement","isPostSuperFlowNode","postSuper","isConstantReference","isParameterAssigned","isKeySet","flowDepth","inlineLevel","sharedFlowStart","evolvedType","getTypeAtFlowNode","getOrSetCacheKey","flowId","sharedFlow","getTypeAtFlowAssignment","getTypeAtFlowCall","getTypeAtFlowCondition","getTypeAtSwitchClause","getTypeAtFlowBranchLabel","getTypeAtFlowLoopLabel","getTypeAtFlowArrayMutation","getInitialOrAssignedType","getNarrowableTypeForReference","narrowTypeByAssertion","narrowType","narrowedType","narrowTypeByTypePredicate","evolvedType_1","assumeTrue","nonEvolvingType","narrowTypeBySwitchOnDiscriminant","narrowBySwitchOnTypeOf","narrowTypeBySwitchOptionalChainContainment","getDiscriminantPropertyAccess","narrowTypeBySwitchOnDiscriminantProperty","bypassFlow","antecedentTypes","subtypeReduction","seenIncomplete","getUnionOrEvolvingArrayType","firstAntecedentType","saveFlowTypeCache","cached_1","computedType","narrowTypeByDiscriminant","removeNullable","narrowedPropType","discriminantType","narrowTypeByDiscriminantProperty","narrowTypeByEquality","clauseTypes","narrowTypeByTruthiness","isTypePresencePossible","narrowByInKeyword","narrowTypeByBinaryExpression","narrowTypeByTypeof","narrowTypeByOptionalChainContainment","leftAccess","rightAccess","isMatchingConstructorReference","narrowTypeByConstructor","narrowTypeByInstanceof","equalsOperator","nullableFlags","doubleEquals","filterFn","typeOfExpr","impliedType","getImpliedTypeFromTypeofGuard","narrowUnionMemberByTypeof","clauseCheck","everyClauseChecks","hasDefaultClause","groundClauseTypes","caseType","switchWitnesses","clauseWitnesses","switchFacts","defaultCaseLocation","witness","fixedClauseStart","fixedClauseEnd","getFactsFromTypeofSwitch","identifierType","isFunctionType","prototypeProperty","prototypeType","isConstructedBy","prototypePropertyType","nonConstructorTypeInUnion","getNarrowedType","isRelated","assignableType","narrowTypeByCallExpression","callAccess","narrowTypeByOptionality","assumePresent","getControlFlowContainer","hasParentWithAssignmentsMarked","markParameterAssignments","isAssigned","removeOptionalityFromDeclaredType","annotationIncludesUndefined","isConstraintPosition","isGenericTypeWithoutNullableConstraint","isGenericTypeWithUnionConstraint","hasNonBindingPatternContextualTypeWithNoGenericTypes","substituteConstraints","isExportOrExportExpression","markAliasReferenced","checkIdentifier","isInPropertyInitializerOrClassStaticBlock","localOrExportSymbol","checkNestedBlockScopedBinding","assignmentError","declarationContainer","isOuterVariable","isSpreadDestructuringAssignmentTarget","isModuleExports","assumeInitialized","isInsideFunctionOrInstancePropertyInitializer","threshold","getPartOfForStatementContainingNode","getEnclosingIterationStatement","isCaptured","enclosingIterationStatement","capturesBlockScopeBindingInLoopBody","varDeclList","capturedBindings","capturedBlockScopeBindings","isAssignedInBodyOfForStatement","isBindingCapturedByNode","captureLexicalThis","classNode","findFirstSuperCall","classDeclarationExtendsNull","classDecl","classInstanceType","checkThisBeforeSuper","containingClassDecl","checkThisInStaticClassFieldInitializerInDecoratedClass","thisExpression","isNodeInTypeQuery","capturedByArrowFunction","isInConstructorArgumentInitializer","globalThisType_1","outsideThis","isInJS","isInParameterInitializerBeforeContainingFunction","getTypeForThisExpressionFromJSDoc","getClassNameFromPrototypeMethod","jsDocFunctionType","thisTag","constructorDecl","immediateContainer","needToCaptureLexicalThis","canUseSuperExpression","isLegalUsageOfSuperExpression","nodeCheckFlag","classLikeDeclaration","getContainingObjectLiteral","getThisTypeArgument","getThisTypeFromContextualType","contextualSignature","getContextualSignature","inJs","containingLiteral","getApparentTypeOfContextualType","getInferenceContext","getEffectiveCallArguments","indexOfParameter","getSpreadArgumentType","getContextualTypeForVariableLikeDeclaration","getContextualTypeForBindingElement","getContextualTypeForStaticPropertyDeclaration","getContextualTypeForElementExpression","getContextualTypeForInitializerExpression","getContextualTypeForReturnExpression","contextualReturnType","getContextualReturnType","functionFlags","iterationTypes","getIterationTypesOfIterable","contextualAwaitedType","createPromiseLikeType","getContextualTypeForAwaitOperand","getContextualTypeForYieldOperand","inBindingInitializer","getContextualIterationType","functionDecl","getContextualTypeForArgument","callTarget","getEffectiveFirstArgumentForJsxSignature","getContextualTypeForSubstitutionExpression","substitutionExpression","getContextualTypeForBinaryOperand","binaryExpression","getContextualTypeForAssignmentDeclaration","getSymbolForExpression","lhsType","tryGetPrivateIdentifierPropertyOfType","lexicallyScopedSymbol","lhsSymbol","overallAnnotation","getContextualTypeForThisPropertyAssignment","decl_1","annotated_1","nameStr","thisAccess","isCircularMappedProperty","constraintOfConstraint","propertyNameType","getContextualTypeForObjectLiteralMethod","propertyAssignmentType","nameType_1","arrayContextualType","getIteratedTypeOrElementType","getContextualTypeForConditionalOperand","conditional","getContextualTypeForChildJsxExpression","attributesType","jsxChildrenPropertyName","realChildren","childIndex","childFieldType","getContextualTypeForJsxExpression","exprParent","attribute","discriminateContextualTypeByObjectMembers","discriminateContextualTypeByJSXAttributes","instantiateContextualType","apparentType","inferenceContext","instantiateInstantiableTypes","returnMapper","tryFindWhenConstTypeReference","arrayLiteral","getContextualJsxElementAttributesType","getJsxReferenceKind","getJsxPropsTypeFromCallSignature","getJsxPropsTypeFromClassType","propsType","getTypeOfFirstParameterOfSignatureWithFallback","getJsxManagedAttributesFromLocatedAttributes","intrinsicAttribs","getJsxPropsTypeForSignatureFromMember","forcedLookupLocation","instance","getStaticTypeOfReferencedJsxConstructor","isJsxIntrinsicIdentifier","getIntrinsicAttributesTypeFromJsxOpeningLikeElement","fakeSignature","createSignatureForJSXIntrinsic","tagType","getIntrinsicAttributesTypeFromStringLiteralType","managedSym","getJsxLibraryManagedAttributes","declaredManagedType","ctorType","getJsxElementPropertiesName","apparentAttributesType","intrinsicClassAttribs","hostClassType","getIntersectedSignatures","combineSignaturesOfIntersectionMembers","combineIntersectionThisParam","combineIntersectionParameters","getContextualCallSignature","applicableByArity","isAritySmaller","typeTagSignature","types_19","checkSpreadExpression","checkExternalEmitHelpers","downlevelIteration","arrayOrIterableType","checkSyntheticExpression","forceTuple","elementCount","inDestructuringPattern","inConstContext","isConstContext","hasOmittedExpression","spreadType","restElementType","elementContextualType","createArrayLiteralType","literalType","isNumericName","isNumericComputedName","isSymbolWithNumericName","isSymbolWithSymbolName","getObjectLiteralIndexInfo","checkObjectLiteral","checkGrammarObjectLiteralExpression","allPropertiesTable","propertiesTable","propertiesArray","contextualTypeHasPattern","isInJavascript","enumTag","isJSObjectLiteral","patternWithComputedProperties","hasComputedStringProperty","hasComputedNumberProperty","hasComputedSymbolProperty","memberDecl","computedNameType","impliedProp","createObjectLiteralType","mergedType","checkSpreadPropOverrides","checkNodeDeferred","checkJsxSelfClosingElementDeferred","checkJsxOpeningLikeElementOrOpeningFragment","checkJsxSelfClosingElement","_checkMode","getJsxElementTypeAt","checkJsxElementDeferred","getIntrinsicTagSymbol","checkJsxElement","checkJsxFragment","nodeSourceFile","createJsxAttributesTypeFromAttributesProperty","openingLikeElement","typeToIntersect","allAttributesTable","attributesTable","hasSpreadAnyType","explicitlySpecifyChildrenAttribute","attributeDecl","attributeSymbol","createJsxAttributesType","childrenTypes","childrenContextualType","childrenPropSymbol","childPropMap","checkJsxAttributes","intrinsicElementsType","IntrinsicElements","intrinsicProp","jsxFlags","indexSignatureType","getJsxNamespaceContainerForImplicitImport","jsxImplicitImportContainer","runtimeImportSpecifier","mod","jsxNamespace","resolvedNamespace","JSX","getNameFromJsxElementAttributesContainer","nameOfAttribPropContainer","jsxElementAttribPropInterfaceSym","jsxElementAttribPropInterfaceType","propertiesOfJsxElementAttribPropInterface","LibraryManagedAttributes","ElementAttributesPropertyNameContainer","ElementChildrenAttributeNameContainer","getUninstantiatedJsxSignaturesOfType","caller","intrinsicType","apparentElemType","stringLiteralTypeName","checkJsxReturnAssignableToAppropriateBound","refKind","elemInstanceType","sfcReturnConstraint","getJsxStatelessElementTypeAt","generateInitialErrorChain","classConstraint","getJsxElementClassTypeAt","componentName","resolvedJsxElementAttributesType","ElementClass","Element","jsxElementType","intrinsics","checkJsxPreconditions","isNodeOpeningLikeElement","checkGrammarJsxElement","jsxFactoryRefErr","jsxFactoryNamespace","jsxFactoryLocation","jsxFactorySym","jsxOpeningLikeNode","checkDeprecatedSignature","checkJsxExpression","checkGrammarJsxExpression","checkPropertyAccessibility","isSuper","symbolHasNonMethodDeclaration","declaringClassDeclaration","isNodeUsedDuringClassInitialization","isNodeWithinClass","enclosingClass","forEachEnclosingClass","getThisParameterFromNodeContext","reportObjectPossiblyNullOrUndefinedError","reportCannotInvokePossiblyNullOrUndefinedError","checkNonNullTypeWithReporter","checkNonNullNonVoidType","nonNullType","checkPropertyAccessExpression","checkPropertyAccessChain","checkPropertyAccessExpressionOrQualifiedName","nonOptionalType","checkQualifiedName","isMethodAccessForCall","checkPrivateIdentifierPropertyAccess","propertyOnType","diagName","typeValueDecl","typeClass_1","lexicalValueDecl","lexicalClass","isAnyLike","grammarErrorOnNode","lexicalClass_1","parentStaticFieldInitializer","parentStaticFieldInitializerSymbol","checkPropertyNotUsedBeforeDeclaration","reportNonexistentProperty","noPropertyAccessFromIndexSignature","getFlowTypeOfAccessExpression","excludeClasses","assumeUninitialized","isPropertyWithoutInitializer","isPropertyDeclaredInAncestorClass","getSuperClass","superProperty","promisedType","missingProperty","libSuggestion","getSuggestedLibForNonExistentProperty","suggestedName","containerSeemsToBeEmptyDomElement","resultDiagnostic","allFeatures","libTargets","libTargets_1","libTarget","containingTypes","libTargets_2","featuresOfLib","featuresOfContainingType","getSpellingSuggestionForName","parent_2","strName","jsxSpecific","outerName","symbolResult","targetModule","keyedType","hasProp","suggestedMethod","getCandidateName","nodeForCheckWriteOnly","hasPrivateModifier","containingMethod","isValidPropertyAccessWithType","declClass_1","getForInVariableSymbol","variable","hasNumericPropertyNames","isForInVariableForNumericPropertyNames","checkIndexedAccess","checkElementAccessChain","checkElementAccessExpression","indexExpression","effectiveIndexType","checkIndexedAccessIndexType","callLikeExpressionMayHaveTypeArguments","resolveUntypedCall","checkSourceElement","resolveErrorCall","reorderCandidates","lastParent","lastSymbol","spliceIndex","cutoffIndex","specializedIndex","signatures_7","signatureHasLiteralTypes","isSpreadArgument","getSpreadArgumentIndex","acceptsVoid","acceptsVoidUndefinedUnknownOrAny","hasCorrectArity","signatureHelpTrailingComma","argCount","callIsIncomplete","effectiveParameterCount","effectiveMinimumArguments","lastSpan","templateLiteral","getDecoratorArgumentCount","spreadArgIndex","hasCorrectTypeArgumentArity","getSingleSignature","allowMembers","inferJsxTypeArguments","checkAttrType","checkExpressionWithContextualType","getThisArgumentType","thisArgumentNode","thisArgumentType","inferTypeArguments","outerContext","outerMapper","inferenceSourceType","inferenceTargetType","returnContext","returnSourceType","getThisArgumentOfCall","argType","getMutableArrayOrTupleType","hasPrimitiveContextualType","checkTypeArguments","typeArgumentTypes","typeArgumentHeadMessage","typeArgument","checkApplicableSignatureForJsxOpeningLikeElement","checkTagNameDoesNotExpectTooManyArguments","tagCallSignatures","getJsxFactoryEntity","factorySymbol","factoryType","hasFirstParamSignatures","maxParamCount","callSignatures_1","firstparam","signaturesOfParam","signaturesOfParam_1","paramSig","absoluteMinArgCount","Infinity","tagCallSignatures_1","tagSig","tagRequiredArgCount","tagNameDeclaration","getSignatureApplicabilityError","headMessage_1","checkArgType","maybeAddMissingAwaitInfo","restArgCount","getAwaitedTypeOfPromise","awaitedTypeOfSource","args_3","getEffectiveDecoratorArguments","spreadIndex","effectiveArgs_1","_loop_23","syntheticArg","hasPropDesc","getParentTypeOfClassElement","getClassElementPropertyKeyType","getDiagnosticSpanForCallNode","doNotIncludeArguments","nameSpan","expressionSpan","getDiagnosticForCallNode","length_6","isPromiseResolveArityError","globalPromiseSymbol","getArgumentArityError","closestSignature","POSITIVE_INFINITY","NEGATIVE_INFINITY","maxBelow","minAbove","signatures_8","minParameter","maxParameter","parameterRange","parameterError","getTypeArgumentArityError","min_1","belowArgCount","aboveArgCount","signatures_9","min_2","resolveCall","fallbackError","isJsxOpeningOrSelfClosingElement","candidatesForArgumentError","candidateForArgumentArityError","candidateForTypeArgumentError","isSingleNonGenericCandidate","argCheckMode","chooseOverload","chain_1","last_2","diags","diags_1","addImplementationSuccessElaboration","allDiagnostics","min_3","MAX_VALUE","minIndex","i_1","_loop_24","chain_2","diags_2","candidatesForArgumentError_1","diags_3","length_7","signaturesWithCorrectTypeArgumentArity","getCandidateForOverloadFailure","oldCandidatesForArgumentError","oldCandidateForArgumentArityError","oldCandidateForTypeArgumentError","failedSignatureDeclarations","isOverload","implDecl","isSingleNonGenericCandidate_1","candidateIndex","checkCandidate","hasCandidatesOutArray","pickLongestCandidateSignature","createUnionOfSignaturesForOverloadFailure","thisParameters","createCombinedSymbolFromTypes","getNumNonRestParameters","maxNonRestParam","_loop_25","restParameterSymbols","createCombinedSymbolForOverloadFailure","numParams","bestIndex","getLongestCandidateIndex","getTypeArgumentsFromNodes","inferSignatureInstantiationForOverloadFailure","argsCount","maxParamsIndex","maxParams","resolveCallExpression","superType","baseConstructors","numConstructSignatures","isUntypedFunctionCall","invocationError","isGenericFunctionReturningFunction","skippedGenericFunction","apparentFuncType","numCallSignatures","resolveNewExpression","isConstructorAccessible","typeHasProtectedAccessibleBase","firstBase","intersectionMember","declaringClass","invocationErrorDetails","isCall","awaitedType","hasSignatures","types_20","constituent","length_8","invocationErrorRecovery","resolveTaggedTemplateExpression","getDiagnosticHeadMessageForDecoratorResolution","resolveDecorator","isPotentiallyUncalledDecorator","nodeStr","errorDetails","returnNode","resolveJsxOpeningLikeElement","exprTypes","resolveSignature","inferredClassSymbol","inferred","assignmentSymbol","getAssignedJSPrototype","allowDeclaration","parentNodeOperator","checkCallExpression","checkGrammarTypeArguments","checkGrammarArguments","isSymbolOrSymbolForCall","jsSymbol","jsAssignmentType","suggestionNode","getDeprecatedSuggestionNode","globalESSymbol","checkImportCallExpression","checkGrammarImportCallExpression","createPromiseReturnType","specifierType","esModuleSymbol","synthType","syntheticType","memberTable","newSymbol","anonymousSymbol","defaultContainingObject","resolvedRequire","targetDeclarationKind","checkTaggedTemplateExpression","checkGrammarTaggedTemplateChain","checkAssertion","checkAssertionWorker","isValidConstAssertionArgument","errNode","widenedType","checkNonNullChain","checkNonNullAssertion","checkMetaProperty","checkGrammarMetaProperty","checkNewTargetMetaProperty","checkImportMetaProperty","checkMetaPropertyKeyword","createNewTargetExpressionType","overrideRestType","restParameter","isParameterDeclarationWithIdentifierName","associatedName","isRestTupleElement","isValidDeclarationForTupleLabel","getNameableDeclarationAtPosition","parameterCount","strongArityForUntypedJS","voidIsNonOptional","firstOptionalIndex","requiredCount","fallbackType","inferFromAnnotatedParameters","instantiatedContext","assignContextualParameterTypes","restPos","assignParameterType","contextualParameterType","assignNonContextualParameterTypes","assignBindingElementTypes","globalPromiseType","globalPromiseLikeType","promiseType","targetPropertySymbol","yieldType","nextType","fallbackReturnType","checkAwaitedType","returnTypes","checkAndAggregateReturnExpressionTypes","checkAndAggregateYieldOperandTypes","yieldTypes","nextTypes","createGeneratorReturnType","globalGeneratorType","globalType","getIterationTypesOfGlobalIterableType","iterableIteratorReturnType","iterableIteratorNextType","yieldExpression","yieldExpressionType","getYieldedTypeOfYieldExpression","sentType","yieldedType","isExhaustive","computeExhaustiveSwitchStatement","operandType","notEqualFacts_1","type_4","functionHasImplicitReturn","aggregatedTypes","hasReturnWithNoExpression","hasReturnOfTypeNever","mayReturnNever","checkAllCodePathsInNonVoidFunctionReturnOrThrow","unwrapReturnType","noImplicitReturns","inferredReturnType","isUnwrappedReturnTypeVoidOrAny","checkFunctionExpressionOrObjectLiteralMethod","checkCollisionsForDeclarationName","contextFreeType","returnOnlySignature","returnOnlyType","hasGrammarError","checkGrammarFunctionLikeDeclaration","checkGrammarForGenerator","contextuallyCheckFunctionExpressionOrObjectLiteralMethod","instantiatedContextualSignature","checkSignatureDeclaration","checkFunctionExpressionOrObjectLiteralMethodDeferred","returnOrPromisedType","checkArithmeticOperandType","isAwaitValid","isReadonlyAssignmentDeclaration","writableProp","writableType","rawOriginalType","setProp","isAssignmentDeclaration_1","isLocalPropertyDeclaration","isLocalParameterProperty","isLocalThisPropertyAssignment","isLocalThisPropertyAssignmentConstructorFunction","isWriteableSymbol","symbol_2","checkReferenceExpression","invalidReferenceMessage","invalidOptionalChainMessage","checkDeleteExpression","checkDeleteExpressionMustBeOptional","checkTypeOfExpression","checkVoidExpression","checkAwaitExpression","hasParseDiagnostics","checkPrefixUnaryExpression","getUnaryResultType","checkTruthinessExpression","ok","checkPostfixUnaryExpression","types_21","subType","checkInstanceOfExpression","checkInExpression","rightTypeConstraint","checkObjectLiteralAssignment","rightIsThis","checkObjectLiteralDestructuringPropertyAssignment","objectLiteralType","propertyIndex","allProperties","checkDestructuringAssignment","nonRestNames","allProperties_1","otherProperty","checkGrammarForDisallowedTrailingComma","checkArrayLiteralAssignment","possiblyOutOfBoundsType","inBoundsType","checkArrayLiteralDestructuringElementAssignment","elementIndex","elementType_2","restExpression","exprOrAssignment","checkBinaryLikeExpression","checkReferenceAssignment","optionalError","isSideEffectFree","isTypeEqualityComparableTo","setLeftType","setLastResult","typeStack","checkGrammarNullishCoalesceWithLogicalExpression","maybeCheckExpression","getLastResult","checkTestingKnownTruthyCallableOrAwaitableType","checkTruthinessOfType","getLeftType","checkBinaryLikeExpressionWorker","_side","suggestedOperator","getSuggestedBooleanOperator","resultType_1","leftOk","rightOk","bothAreBigIntLike","reportOperatorError","checkAssignmentOperator","checkForDisallowedESSymbolOperand","closeEnoughKind_1","reportOperatorErrorUnless","resultType_2","resultType_3","resultType_4","declKind","checkAssignmentDeclaration","isEvalNode","start_3","isInDiag2657","offendingSymbolOperand","typesAreCompatible","wouldWorkWithAwait","awaitedLeftType","awaitedRightType","effectiveLeft","effectiveRight","getBaseTypesIfUnrelated","tryGiveBetterPrimaryError","leftBase","rightBase","checkYieldExpression","grammarErrorOnFirstToken","getIterationTypesOfGeneratorFunctionReturnType","signatureYieldType","signatureNextType","resolvedSignatureNextType","getIterationTypeOfIterable","checkConditionalExpression","isTemplateLiteralContext","checkTemplateExpression","isTemplateLiteralContextualType","getContextNode","saveContextualType","saveInferenceContext","saveFlowLoopStart","isTypeAssertion","getQuickTypeOfExpression","padTupleType","patternElements","candidateType","checkGrammarMethod","uninstantiatedType","instantiateTypeWithSingleGenericCallSignature","callSignature","constructSignature","uniqueTypeParameters","getUniqueTypeParameters","inferences_3","hasOverlappingInferences","mergeInferences","oldTypeParameters","newTypeParameters","typeParameters_2","hasTypeParameterByName","getUniqueTypeParameterName","newTypeParameter","newTypeParameters_1","augmentedName","getReturnTypeOfSingleNonGenericCallSignature","getReturnTypeOfSingleNonGenericSignatureOfCallChain","quickType","cachedType","startInvocationCount","saveCurrentNode","checkExpressionWorker","checkConstEnumAccess","isInRightSideOfImportOrExportAssignment","constEnumDeclaration","checkParenthesizedExpression","checkGrammarNumericLiteral","checkGrammarBigIntLiteral","checkClassExpression","checkTypeParameter","checkTypeNameIsReserved","checkParameter","checkGrammarDecoratorsAndModifiers","checkVariableLikeDeclaration","checkTypePredicate","getTypePredicateParent","leadingError","hasReportedError","checkIfTypePredicateVariableIsDeclaredInBindingPattern","predicateVariableNode","predicateVariableName","checkGrammarIndexSignature","checkTypeParameters","checkCollisionWithArgumentsInGeneratedCode","functionFlags_1","generatorYieldType","generatorReturnType","generatorNextType","generatorInstantiation","checkAsyncFunctionReturnType","registerForUnusedIdentifiersCheck","checkClassForDuplicateDeclarations","instanceNames","staticNames","addName","isStaticMember","privateStaticFlags","prevIsMethod","isMethod","checkClassForStaticPropertyNameConflicts","memberNameNode","checkObjectTypeForDuplicateDeclarations","checkTypeForDuplicateIndexSignatures","indexSignatureMap_1","_loop_26","checkPropertyDeclaration","checkGrammarProperty","checkGrammarComputedPropertyName","setNodeLinksForPrivateIdentifierScope","checkPropertySignature","checkMethodDeclaration","checkFunctionOrMethodDeclaration","lexicalScope","checkClassStaticBlockDeclaration","checkConstructorDeclaration","checkGrammarConstructorTypeParameters","checkGrammarConstructorTypeAnnotation","checkFunctionOrConstructorSymbol","classExtendsNull","superCall","superCallShouldBeFirst","isInstancePropertyWithInitializerOrPrivateIdentifierProperty","superCallStatement","statements_4","checkAccessorDeclaration","checkGrammarAccessor","checkDecorators","getNodeCheckFlags","getterFlags","setterFlags","checkMissingDeclaration","checkTypeArgumentConstraints","checkTypeReferenceNode","grammarErrorAtPos","typeReferenceNode","checkTypeQuery","checkTypeLiteral","checkIndexConstraints","checkArrayType","checkTupleType","seenOptionalElement","seenRestElement","hasNamedElement","elementTypes_1","checkUnionOrIntersectionType","propertyName_1","checkIndexedAccessType","checkMappedType","checkThisType","checkTypeOperator","checkGrammarTypeOperatorNode","checkConditionalType","checkInferType","checkTemplateLiteralType","checkImportType","checkNamedTupleMember","getEffectiveDeclarationFlags","flagsToCheck","bodyDeclaration","lastSeenNonAmbientDeclaration","previousDeclaration","someNodeFlags","allNodeFlags","someHaveQuestionToken","allHaveQuestionToken","hasOverloads","duplicateFunctionDeclaration","multipleConstructorImplementation","hasNonAmbientClass","functionDeclarations","declarations_4","inAmbientContext","inAmbientContextOrInterface","currentNodeFlags","bodyIsPresent","reportImplementationExpectedError","relatedDiagnostics_1","checkFlagAgreementBetweenOverloads","checkQuestionTokenAgreementBetweenOverloads","bodySignature","signatures_10","getCanonicalOverload","overloads","implementationSharesContainerWithFirstOverload","someOverloadFlags","allOverloadFlags","someButNotAllOverloadFlags","canonicalFlags_1","deviation","canonicalHasQuestionToken_1","subsequentNode","errorNode_1","subsequentName","checkExportsOnMergedDeclarations","exportedDeclarationSpaces","nonExportedDeclarationSpaces","defaultExportedDeclarationSpaces","declarationSpaces","getDeclarationSpaces","effectiveDeclarationFlags","nonDefaultExportedDeclarationSpaces","commonDeclarationSpacesForExportsAndLocals","commonDeclarationSpacesForDefaultAndNonDefault","node_2","result_12","typeAsPromise","promisedTypeOfPromise","thenFunction","thenSignatures","onfulfilledParameterType","onfulfilledParameterSignatures","isThenableType","typeAsAwaitable","awaitedTypeOfType","constituentType","getAwaitedTypeWorker","markTypeNodeAsReferenced","promiseConstructorName","promiseConstructorSymbol","promiseConstructorType","globalPromiseConstructorLikeType","collidingSymbol","checkDecorator","expectedReturnType","classConstructorType","methodType","descriptorType","markEntityNameOrEntityExpressionAsReference","rootSymbol","markDecoratorMedataDataTypeNodeAsReferenced","getEntityNameForDecoratorMetadata","getEntityNameForDecoratorMetadataFromTypeList","commonEntityName","types_22","individualEntityName","getParameterTypeNodeForDecoratorCheck","experimentalDecorators","firstDecorator","emitDecoratorMetadata","otherAccessor","containingSignature","checkFunctionDeclaration","checkJSDocTypeAliasTag","checkJSDocTemplateTag","checkJSDocTypeTag","checkJSDocParameterTag","checkJSDocPropertyTag","checkJSDocFunctionType","checkJSDocImplementsTag","classLike","checkJSDocAugmentsTag","augmentsTags","getIdentifierFromEntityNameExpression","potentiallyUnusedIdentifiers","addDiagnostic","potentiallyUnusedIdentifiers_1","checkUnusedClassMembers","checkUnusedTypeParameters","checkUnusedLocalsAndParameters","checkUnusedInferTypeParameter","errorUnusedLocal","isIdentifierThatStartsWithUnderscore","isTypeParameterUnused","seenParentsWithEveryUnused","typeParameters_3","only","addToGroup","getKey","keyString","tryGetRootParameterDeclaration","isValidUnusedLocalDeclaration","isImportedDeclaration","nodeWithLocals","unusedImports","unusedDestructures","unusedVariables","importClauseFromImported","unuseds","importDecl","nDeclarations","unuseds_1","unused","bindingPattern","bindingElements","bindingNameText","bindingElements_1","declarations_5","checkBlock","checkGrammarStatementInAmbientContext","saveFlowAnalysisDisabled","needCollisionCheckForIdentifier","checkIfThisIsCapturedInEnclosingScope","isDeclaration_1","checkIfNewTargetIsCapturedInEnclosingScope","isDeclaration_2","checkCollisionWithRequireExportsInGeneratedCode","checkCollisionWithGlobalPromiseInGeneratedCode","recordPotentialCollisionWithWeakMapSetInGeneratedCode","checkWeakMapSetCollision","enclosingBlockScope","recordPotentialCollisionWithReflectInGeneratedCode","checkReflectCollision","hasCollision","checkClassNameCollisionWithObject","checkVarDeclaredNamesNotShadowed","localDeclarationSymbol","namesShareScope","nameText","needCheckInitializer","needCheckWidenedType","initializerType","checkAliasSymbol","isJSObjectLiteralInitializer","areDeclarationFlagsIdentical","declarationType","nextDeclaration","nextDeclarationName","interestingFlags","checkVariableDeclaration","checkGrammarVariableDeclaration","checkBindingElement","checkGrammarBindingElement","checkVariableStatement","checkGrammarVariableDeclarationList","checkGrammarForDisallowedLetOrConstStatement","checkExpressionStatement","checkIfStatement","condExpr","testedNode","isPromise","testedSymbol","isUsed","isSymbolUsedInBinaryExpressionChain","isSymbolUsedInConditionBody","childNode","childSymbol","testedExpression","childExpression","checkDoStatement","checkWhileStatement","checkForStatement","checkForOfStatement","checkGrammarForInOrForOfStatement","checkForInOrForOfVariableDeclaration","varExpr","checkForInStatement","iterationStatement","variableDeclarationList","inputType","checkAssignability","allowAsyncIterables","uplevelIteration","possibleOutOfBounds","hasStringConstituent","arrayTypes","filteredTypes","allowsStrings","getIterationDiagnosticDetails","defaultDiagnostic","arrayElementType","isES2015OrLaterIterable","reportTypeNotIterableError","typeKind","getIterationTypesKeyFromIterationTypeKind","combineIterationTypes","array_11","getCachedIterationTypes","cacheKey","setCachedIterationTypes","cachedTypes","iterationTypes_1","getIterationTypesOfIterableWorker","allIterationTypes","iterationTypes_2","getAsyncFromSyncIterationTypes","getIterationTypesOfIterableCached","getIterationTypesOfIterableFast","getIterationTypesOfIterableSlow","globalIterationTypes","getPropertyNameForKnownSymbolName","uniqueType","iteratorType","getIterationTypesOfIterator","getIterationTypesOfIteratorCached","getIterationTypesOfIteratorFast","getIterationTypesOfIteratorSlow","isIteratorResult","doneType","isYieldIteratorResult","isReturnIteratorResult","getIterationTypesOfIteratorResult","yieldType_1","returnType_1","yieldIteratorResult","returnIteratorResult","getIterationTypesOfMethod","methodParameterTypes","methodReturnTypes","methodSignatures","globalIteratorType","isGeneratorMethod","isIteratorMethod","methodSignatures_1","methodParameterType","resolvedMethodParameterType","methodReturnType","resolvedMethodReturnType","checkBreakOrContinueStatement","checkGrammarBreakOrContinueStatement","unwrappedReturnType","checkReturnStatement","unwrappedExprType","checkWithStatement","checkSwitchStatement","firstDefaultClause","hasDuplicateDefaultClause","expressionIsLiteral","caseIsLiteral","comparedExpressionType","checkLabeledStatement","checkThrowStatement","grammarErrorAfterFirstToken","checkTryStatement","blockLocals_1","caughtName","blockLocal","isStaticIndex","checkIndexConstraintForProperty","typeDeclaration","indexInfos_6","checkIndexConstraintForIndexSignature","interfaceDeclaration","localPropDeclaration","_loop_27","localIndexDeclaration","indexInfos_7","checkInfo","localCheckDeclaration","_loop_28","indexInfos_8","typeParameterDeclarations","seenDefault","checkTypeParametersNotReferenced","checkTypeParameterListsIdentical","typeParametersChecked","getClassOrInterfaceDeclarationsOfSymbol","areTypeParametersIdentical","declarations_6","targetParameters","maxTypeArgumentCount","declarations_7","sourceParameters","sourceDefault","checkClassLikeDeclaration","checkClassExpressionDeferred","checkClassDeclaration","checkGrammarClassLikeDeclaration","typeWithThis","nodeInAmbientContext","baseType_1","checkBaseTypeAccessibility","baseWithThis","issueMemberSpecificError","checkKindsOfPropertyMemberOverrides","checkMembersForMissingOverrideModifier","implementedTypeNodes","implementedTypeNodes_1","typeRefNode","genericDiag","checkPropertyInitialization","baseStaticType","_loop_29","checkClassMember","memberIsParameterProperty","hasOverride","hasStatic","noImplicitOverride","declaredProp","baseProp","baseClassName","baseHasAbstract","broadDiag","issuedMemberError","_loop_30","rootChain","typeClassDeclaration","baseProperties","basePropertyCheck","baseProperties_1","baseProperty","derived","baseDeclarationFlags","derivedClassDecl","otherBaseType","baseSymbol_1","derivedElsewhere","derivedDeclarationFlags","basePropertyFlags","derivedPropertyFlags","overriddenInstanceProperty","overriddenInstanceAccessor","errorMessage_1","uninitialized","isPropertyInitializedInConstructor","errorMessage_2","baseTypes_2","properties_5","properties_4","checkInheritedPropertiesAreIdentical","baseTypes_3","properties_6","isInheritedProperty","typeName1","typeName2","endPos","staticBlocks_2","checkInterfaceDeclaration","checkGrammarInterfaceDeclaration","firstInterfaceDecl","heritageElement","checkTypeAliasDeclaration","computeEnumMemberValues","autoValue","computeMemberValue","enumMemberValue","computeConstantValue","isConstEnum","evaluate","isNaN","value_2","pow","evaluateEnumMember","isConstantMemberAccess","enumSymbol","checkEnumDeclaration","checkEnumMember","enumIsConst_1","seenEnumMissingInitialInitializer_1","enumDeclaration","firstEnumMember","getFirstNonAmbientClassOrFunctionDeclaration","declarations_8","inSameLexicalScope","node1","node2","container1","container2","checkModuleDeclaration","isGlobalAugmentation","isAmbientExternalModule","contextErrorMessage","checkGrammarModuleElementContext","firstNonAmbientClassOrFunc","mergedClass","checkBody","checkModuleAugmentationElement","el","checkExternalImportOrExportDeclaration","inAmbientExternalModule","excludedMeanings","checkImportBinding","checkImportDeclaration","checkGrammarImportClause","moduleExisted","checkImportEqualsDeclaration","checkExportDeclaration","checkGrammarExportDeclaration","checkExportSpecifier","inAmbientNamespaceDeclaration","isTypeOnlyExportStar","isInAppropriateContext","importClauseContainsReferencedImport","importClauseContainsConstEnumUsedAsValue","canConvertImportDeclarationToTypeOnly","isReferencedAliasDeclaration","canConvertImportEqualsDeclarationToTypeOnly","checkImportsForTypeOnlyConversion","exportedName","checkExportAssignment","illegalContextMessage","checkExternalModuleExports","hasExportedMembers","exportsChecked","exports_2","exportedDeclarationsCount","checkSourceElementWorker","checkJSDocTypeIsInJsFile","checkJSDocVariadicType","paramTag","host_1","isCallbackTag","lastParamDeclaration","enclosingFile","deferredNodes","checkDeferredNodes","checkDeferredNode","checkSourceFileWorker","noUnusedLocals","noUnusedParameters","checkGrammarSourceFile","importsNotUsedAsValues","getDiagnosticsWorker","throwIfNonDiagnosticsProducing","previousGlobalDiagnostics","previousGlobalDiagnosticsSize","semanticDiagnostics","currentGlobalDiagnostics","deferredGlobalDiagnostics","isStaticSymbol","populateSymbols","copySymbols","copyLocallyVisibleExportSymbols","copySymbol","funcName","isTypeDeclarationName","isHeritageClauseElementIdentifier","getLeftSideOfImportEqualsOrExportAssignment","nodeOnRightSide","getSpecialPropertyAssignmentSymbolFromEntityName","specialPropertyAssignmentKind","isImportTypeQualifierPart","getSymbolOfNameOrPropertyAccessExpression","specialPropertyAssignmentSymbol","importEqualsDeclaration","possibleImportNode","entityNameSymbol","isJSDoc_1","resolveJSDocMemberName","proto","isDeclarationNameOrImportPropertyName","typeOfPattern","keyType_1","objectTypes","typeFromTypeNode","getRegularTypeOfExpression","node_3","typeOfParentObjectLiteral","typeOfArrayLiteral","typeOfObjectLiteral","propsByName","roots","getImmediateRootSymbols","tryGetAliasTarget","isArgumentsLocalBinding","getReferencedValueSymbol","moduleExportsSomeValue","hasExportAssignment","exportsSomeValue","isValue","isNameOfModuleOrEnumDeclaration","getReferencedExportContainer","prefixLocals","parentSymbol_1","symbolFile","symbolIsUmdExport","getReferencedImportDeclaration","generatedImportReference","isSymbolOfDestructuredElementOfCatchBinding","isSymbolOfDeclarationWithCollidingName","isDeclarationWithCollidingName","nodeLinks_1","isDeclaredInLoop","inLoopInitializer","inLoopBodyBlock","getReferencedDeclarationWithCollidingName","isValueAliasDeclaration","isAliasResolvedToValue","isTopLevelValueImportEqualsWithEntityName","checkChildren","signaturesOfSymbol","isOptionalUninitializedParameterProperty","isExpandoFunctionDeclaration","getPropertiesOfContainerFunction","getTypeReferenceSerializationKind","typeNameIn","Unknown","rootValueSymbol","TypeWithCallSignature","TypeWithConstructSignatureAndValue","ObjectType","VoidNullableOrNeverType","BooleanType","NumberLikeType","BigIntLikeType","StringLikeType","ArrayLikeType","ESSymbolType","createTypeOfDeclaration","addUndefined","createReturnTypeOfSignatureDeclaration","signatureDeclarationIn","signatureDeclaration","exprIn","startInDeclarationContainer","getReferencedValueDeclaration","referenceIn","isLiteralConstDeclaration","literalTypeToNode","enclosing","enumResult","literalValue","createLiteralConstValue","jsxFragPragmas","jsxFragPragma","fileToDirective","resolvedTypeReferenceDirectives","getResolvedTypeReferenceDirectives","resolvedDirective","addReferencedFilesToTypeDirective","getTypeReferenceDirectivesForEntityName","getTypeReferenceDirectivesForSymbol","isLateBound","getSymbolOfExternalModuleSpecifier","parseDecl","getDeclarationStatementsForSourceFile","isImportRequiredByAugmentation","importTarget","declFile","isInHeritageClause","isSymbolFromTypeDeclarationFile","typeReferenceDirective","resolvedFile","resolveTripleslashReference","referencedFile","augmentations","redirectInfo","fileGlobalThisSymbol","moduleAugmentations","augmentations_1","list_1","augmentations_2","list_2","firstFileLocations_1","secondFileLocations_1","helpersModule","resolveHelpersModule","uncheckedHelpers","getHelperName","checkGrammarDecorators","checkGrammarModifiers","accessors","lastStatic","lastDeclare","lastAsync","lastReadonly","lastOverride","quickResult","reportObviousModifierErrors","checkGrammarAsyncModifier","shouldReportBadModifier","nodeHasAnyModifiersExcept","allowedModifier","checkGrammarTypeParameterList","checkGrammarParameterList","seenOptionalParameter","getNonSimpleParameters","checkGrammarForUseStrictSimpleParameterList","useStrictDirective_1","nonSimpleParameters","diagnostics_2","checkGrammarArrowFunction","checkGrammarClassDeclarationHeritageClauses","checkGrammarIndexSignatureParameters","checkGrammarForAtLeastOneTypeArgument","checkGrammarForOmittedArgument","args_4","checkGrammarHeritageClause","listType","checkGrammarExpressionWithTypeArguments","seenExtendsClause","seenImplementsClause","computedPropertyName","checkGrammarForInvalidQuestionMark","checkGrammarForInvalidExclamationToken","inDestructuring","effectiveName","checkGrammarJsxName","attr","check_1","checkGrammarJsxNestedIdentifier","forInOrOfStatement","variableList","doesAccessorHaveCorrectParameterCount","checkGrammarForInvalidDynamicName","isMisplacedContinueLabel","isStringOrNumberLiteralExpression","isBigIntLiteralExpression","isSimpleLiteralEnumReference","checkAmbientInitializer","isInvalidInitializer","isConstOrReadonly","checkESModuleMarker","checkLetConstNames","checkGrammarNameInLetOrConstDeclarations","grammarErrorOnNodeSkippedOn","elements_1","elements_2","allowLetAndConstDeclarations","nodeForSourceFile","jsdocTypeParameters","checkGrammarTopLevelElementForRequiredDeclareModifier","checkGrammarTopLevelElementsForRequiredDeclareModifier","hasReportedStatementInAmbientContext","links_2","withMinus","checkNumericLiteralValueSize","apparentValue","nodeArguments","unionTarget","overlapObjFlags","signatureKind","bestMatch","matchingCount","lift","visitedNode","extractSingleNode","visited_1","updatedArray","visitLexicalEnvironment","nodesVisitor","startLexicalEnvironment","endLexicalEnvironment","visitParameterList","setLexicalEnvironmentFlags","getLexicalEnvironmentFlags","addDefaultValueAssignmentsIfNeeded","suspendLexicalEnvironment","addDefaultValueAssignmentIfNeeded","addDefaultValueAssignmentForBindingPattern","addDefaultValueAssignmentForInitializer","addInitializationStatement","visitFunctionBody","nodeVisitor","resumeLexicalEnvironment","visitIterationBody","startBlockScope","endBlockScope","tokenVisitor","createSourceMapGenerator","sourceRoot","sourcesDirectoryPath","generatorOptions","sourcesContent","nameToNameIndexMap","extendedDiagnostics","rawSources","sourceToSourceIndexMap","mappingCharCodes","mappings","lastGeneratedLine","lastGeneratedCharacter","lastSourceLine","lastSourceCharacter","lastNameIndex","hasLast","pendingGeneratedLine","pendingGeneratedCharacter","pendingSourceIndex","pendingSourceLine","pendingSourceCharacter","pendingNameIndex","hasPending","hasPendingSource","hasPendingName","getSources","addSource","setSourceContent","addMapping","appendSourceMap","toJSON","nameIndex","isNewGeneratedPosition","generatedLine","generatedCharacter","isBacktrackingSourcePosition","sourceLine","sourceCharacter","commitPendingMapping","nameIndexToNewNameIndexMap","sourceIndexToNewSourceIndexMap","mappingIterator","decodeMappings","newSourceIndex","newSourceLine","newSourceCharacter","newNameIndex","rawPath","combinedPath","rawGeneratedLine","newGeneratedLine","rawGeneratedCharacter","newGeneratedCharacter","shouldCommitMapping","appendMappingCharCode","flushMappingBuffer","appendBase64VLQ","inValue","currentDigit","base64FormatEncode","sourceMapCommentRegExp","whitespaceOrMapCommentRegExp","getLineInfo","getLineCount","getLineText","tryGetSourceMappingURL","lineInfo","isStringOrNull","isRawSourceMap","tryParseRawSourceMap","parsed","captureMapping","hasSource","hasName","base64VLQFormatDecode","stopIterating","setErrorAndStopIterating","isSourceMappingSegmentEnd","setError","moreDigits","shiftCount","currentByte","base64FormatDecode","sameMapping","isSourceMapping","mapping","isSourceMappedPosition","sourcePosition","sameMappedPosition","generatedPosition","compareSourcePositions","compareGeneratedPositions","getSourcePositionOfMapping","getGeneratedPositionOfMapping","createDocumentPositionMapper","mapPath","decodedMappings","generatedMappings","sourceMappings","mapDirectory","generatedAbsoluteFilePath","generatedFile","getSourceFileLike","sourceFileAbsolutePaths","getSourcePosition","getGeneratedPosition","processMapping","getDecodedMappings","decoder","getSourceMappings","lists","getGeneratedMappings","targetIndex","identitySourceMapConsumer","getOriginalNodeId","containsDefaultReference","isNamedDefaultReference","chainBundle","transformSourceFile","transformSourceFileOrBundle","transformBundle","getExportNeedsImportStarHelper","getImportNeedsImportStarHelper","bindings","defaultRefCount","getImportNeedsImportDefaultHelper","collectExternalModuleInfo","exportedNames","externalImports","exportSpecifiers","exportedBindings","uniqueExports","hasExportDefault","addExportedNamesForExportDeclaration","multiMapSparseArrayAdd","collectExportedVariableInfo","getEmitHelperFactory","isSimpleCopiableExpression","isSimpleInlineableExpression","isCompoundAssignment","getNonAssignmentOperatorForCompoundAssignment","addPrologueDirectivesAndInitialSuperCall","superIndex","getProperties","requireInitializer","isInitializedOrStaticProperty","isStaticPropertyDeclarationOrClassStaticBlockDeclaration","isStaticPropertyDeclaration","getStaticPropertiesAndClassStaticBlock","isInitializedProperty","isNonStaticMethodOrAccessorWithPrivateName","flattenDestructuringAssignment","needsValue","createAssignmentCallback","flattenContext","hoistTempVariables","emitExpression","emitBindingOrAssignment","createArrayBindingOrAssignmentPattern","makeArrayAssignmentPattern","createObjectBindingOrAssignmentPattern","makeObjectAssignmentPattern","createArrayBindingOrAssignmentElement","makeAssignmentElement","bindingOrAssignmentElementAssignsToName","bindingOrAssignmentElementContainsNonLiteralComputedName","ensureIdentifier","flattenBindingOrAssignmentElement","bindingOrAssignmentPatternAssignsToName","elements_3","bindingOrAssignmentPatternContainsNonLiteralComputedName","flattenDestructuringBinding","rval","skipInitializer","pendingExpressions","pendingDeclarations","makeArrayBindingPattern","makeObjectBindingPattern","makeBindingElement","hoistVariableDeclaration","pendingDeclaration","pendingDeclarations_1","pendingExpressions_1","bindingTarget","createDefaultValueCheck","flattenObjectBindingOrAssignmentPattern","flattenArrayBindingOrAssignmentPattern","numElements","reuseIdentifierExpressions","rhsValue","createDestructuringPropertyAccess","restContainingElements","hasTransformedPriorElement","isSimpleBindingOrAssignmentElement","restContainingElements_1","FlattenLevel","ProcessLevel","processTaggedTemplateExpression","recordTaggedTemplateString","templateArguments","cookedStrings","rawStrings","LiftRestriction","createTemplateCooked","getRawLiteral","templateSpan","helperCall","tempVar","createLogicalOr","TypeScriptSubstitutionFlags","ClassFacts","USE_NEW_TYPE_METADATA_FORMAT","transformTypeScript","currentNamespaceContainerName","currentLexicalScope","currentNameScope","currentScopeFirstDeclarationsOfName","currentClassHasParameterProperties","enabledSubstitutions","classAliases","applicableSubstitutions","emitHelpers","previousOnEmitNode","onEmitNode","previousOnSubstituteNode","onSubstituteNode","enableSubstitution","saveStateAndInvoke","visitSourceFile","readEmitHelpers","savedCurrentScope","savedCurrentNameScope","savedCurrentScopeFirstDeclarationsOfName","savedCurrentClassHasParameterProperties","onBeforeVisitNode","recordEmittedDeclarationInScope","visitorWorker","visitTypeScript","sourceElementVisitor","sourceElementVisitorWorker","visitElidableStatement","visitImportDeclaration","visitImportEqualsDeclaration","visitExportAssignment","visitExportDeclaration","namespaceElementVisitor","namespaceElementVisitorWorker","classElementVisitor","classElementVisitorWorker","visitConstructor","visitPropertyDeclaration","modifierVisitor","visitClassDeclaration","visitClassExpression","visitHeritageClause","visitExpressionWithTypeArguments","visitMethodDeclaration","visitGetAccessor","visitSetAccessor","visitFunctionDeclaration","visitFunctionExpression","visitArrowFunction","visitParameter","visitParenthesizedExpression","visitAssertionExpression","visitCallExpression","visitNewExpression","visitTaggedTemplateExpression","visitNonNullExpression","visitEnumDeclaration","visitVariableStatement","visitVariableDeclaration","visitModuleDeclaration","visitJsxSelfClosingElement","visitJsxJsxOpeningElement","alwaysStrict","getClassFacts","staticProperties","extendsClauseElement","isExportOfNamespace","isDefaultExternalModuleExport","isNamedExternalModuleExport","hasTypeScriptClassSyntax","isClassLikeDeclarationWithTypeScriptSyntax","classStatement","createClassDeclarationHeadWithDecorators","createClassDeclarationHeadWithoutDecorators","addClassElementDecorationStatements","addConstructorDecorationStatement","closingBraceLocation","varStatement","addExportMemberAssignment","transformClassMembers","classAlias","getClassAliasIfNeeded","classExpression","parametersWithPropertyAssignments","parametersWithPropertyAssignments_1","getDecoratedClassElements","isStaticDecoratedClassElement","isInstanceDecoratedClassElement","isDecoratedClassElement","isStaticElement","getDecoratorsOfParameters","firstParameterIsThis","firstParameterOffset","numParameters","getAllDecoratorsOfConstructor","getAllDecoratorsOfClassElement","getAllDecoratorsOfAccessors","getAllDecoratorsOfMethod","getAllDecoratorsOfProperty","firstAccessorWithDecorators","transformAllDecoratorsOfDeclaration","allDecorators","transformDecorator","transformDecoratorsOfParameter","addTypeMetadata","generateClassElementDecorationExpressions","expressionToStatement","members_6","generateClassElementDecorationExpression","getClassMemberPrefix","getExpressionForPropertyName","generateConstructorDecorationExpression","decorate","decorators_1","addNewTypeMetadata","addOldTypeMetadata","shouldAddTypeMetadata","serializeTypeOfNode","shouldAddParamTypesMetadata","serializeParameterTypesOfNode","shouldAddReturnTypeMetadata","serializeReturnTypeOfNode","getAccessorTypeNode","serializeTypeNode","getParametersOfDecoratedDeclaration","getGlobalBigIntNameWithFallback","getGlobalSymbolNameWithFallback","serializeTypeReferenceNode","serializeTypeList","serializedUnion","types_23","serializedIndividual","serialized","serializeEntityNameAsExpressionFallback","serializeEntityNameAsExpression","createCheckedValue","createLogicalAnd","createStrictInequality","copied","serializeQualifiedNameAsExpression","generateNameForComputedPropertyName","visitPropertyNameOfClassElement","generatedName","shouldEmitFunctionLikeDeclaration","transformConstructorBody","indexOfFirstStatement","transformParameterWithPropertyAssignment","shouldEmitAccessorDeclaration","variables","transformInitializedVariable","createNamespaceExportExpression","getNamespaceMemberNameWithSourceMapsAndWithoutComments","shouldEmitEnumDeclaration","varAdded","addVarForEnumOrModuleDeclaration","getNamespaceParameterName","containerName","getNamespaceContainerName","moduleArg","hasNamespaceQualifiedExportName","enumStatement","transformEnumBody","savedCurrentNamespaceLocalName","transformEnumMember","transformEnumMemberDeclarationValue","innerAssignment","outerAssignment","enableSubstitutionForNonQualifiedEnumMembers","shouldEmitModuleDeclaration","isExternalModuleExport","declaredNameInScope","isFirstEmittedDeclarationInScope","mergeMarker","enableSubstitutionForNamespaceExports","moduleStatement","transformModuleBody","namespaceLocalName","savedCurrentNamespaceContainerName","savedCurrentNamespace","statementsLocation","blockLocation","moduleBlock","getInnerMostModuleDeclarationFromDottedModule","moduleDeclaration","recursiveInnerModule","visitImportClause","visitNamedImportBindings","visitImportSpecifier","visitNamedExportBindings","visitNamedExports","visitExportSpecifier","visitNamespaceExports","shouldEmitImportEqualsDeclaration","enableSubstitutionForClassAliases","getClassPrototype","enableEmitNotification","isTransformedModuleDeclaration","isTransformedEnumDeclaration","hint","emitCallback","savedApplicableSubstitutions","savedCurrentSourceFile","substituteExpression","substituteShorthandPropertyAssignment","trySubstituteNamespaceExportedName","substituteExpressionIdentifier","substitutePropertyAccessExpression","substituteElementAccessExpression","trySubstituteClassAlias","clone_2","substituteConstantValue","tryGetConstEnumValue","originalNode","ClassPropertySubstitutionFlags","transformClassFields","addBlockScopedVariable","shouldTransformPrivateElementsOrClassStaticBlocks","shouldTransformSuperInStaticInitializers","shouldTransformThisInStaticInitializers","pendingStatements","currentClassLexicalEnvironment","currentComputedPropertyNameClassLexicalEnvironment","currentStaticPropertyDeclarationOrStaticBlock","classLexicalEnvironmentStack","classLexicalEnvironmentMap","valueIsDiscarded","visitClassLike","visitPrivateIdentifier","visitClassStaticBlockDeclaration","visitPreOrPostfixUnaryExpression","visitBinaryExpression","visitPropertyAccessExpression","visitElementAccessExpression","visitExpressionStatement","visitForStatement","savedCurrentStaticPropertyDeclarationOrStaticBlock","discardedValueVisitor","heritageClauseVisitor","visitorDestructuringTarget","visitAssignmentPattern","visitMethodOrAccessorDeclaration","visitComputedPropertyName","savedPendingStatements","accessPrivateIdentifier","isValid","getHoistedFunctionName","getPendingExpressions","getterName","setterName","getPropertyNameExpressionIfNeeded","createPrivateIdentifierAccess","createPrivateIdentifierAccessHelper","brandCheckIdentifier","variableName","privateIdentifierInfo","classConstructor","superClassReference","visitInvalidSuperProperty","createCopiableReceiverExpr","readExpression","initializeExpression","createPrivateIdentifierAssignment","invocation","transformClassStaticBlockDeclaration","savedPendingExpressions","superPropertyGet","doesClassElementNeedTransform","startClassLexicalEnvironment","getPrivateIdentifierEnvironment","privateInstanceMethodsAndAccessors","getPrivateInstanceMethodsAndAccessors","weakSetName","createHoistedVariableForClass","endClassLexicalEnvironment","getClassLexicalEnvironment","enableSubstitutionForClassStaticThisOrSuperReference","pendingClassReferenceAssignment","isDerivedClass","addPropertyOrClassStaticBlockStatements","isDecoratedClassDeclaration","staticPropertiesOrClassStaticBlocks","isClassWithConstructorReference","createClassTempVar","classCheckFlags","requiresBlockScopedVar","hasTransformableStatics","generateInitializedPropertyExpressionsOrClassStaticBlock","addPrivateIdentifierToEnvironment","createBrandCheckWeakSetForPrivateMethods","transformConstructor","isClassElementThatRequiresConstructorStatement","privateMethodsAndAccessors","needsConstructorBody","afterParameterProperties","addMethodStatements","properties_7","transformProperty","propertiesOrClassStaticBlocks","propertiesOrClassStaticBlocks_1","transformPropertyWorker","emitAssignment","createPrivateStaticFieldInitializer","createPrivateInstanceFieldInitializer","propertyOriginalNode","memberAccess","methods","createPrivateInstanceMethodInitializer","classLexicalEnvironment","savedClassLexicalEnvironment","savedCurrentComputedPropertyNameClassLexicalEnvironment","substituteThisExpression","clone_3","shouldHoist","inlinable","alreadyTransformed","privateIdentifierEnvironment","lex","privateEnv","assignmentExpressions","privateName","previousInfo","isReservedPrivateName","createHoistedVariableForPrivateName","weakMapName","wrapPrivateIdentifierForDestructuringTarget","visitArrayAssignmentTarget","wrapped","visitObjectAssignmentTarget","PrivateIdentifierKind","ES2017SubstitutionFlags","transformES2017","enclosingFunctionParameterNames","capturedSuperProperties","hasSuperElementAccess","enclosingSuperContainerFlags","substitutedSuperAccessors","inTopLevelContext","inHasLexicalThisContext","doWithContext","visitDefault","visitAwaitExpression","asyncBodyVisitor","visitVariableStatementInAsyncBody","visitForStatementInAsyncBody","visitForInStatementInAsyncBody","visitForOfStatementInAsyncBody","visitCatchClauseInAsyncBody","catchClauseUnshadowedNames","catchClauseNames","recordDeclarationName","savedEnclosingFunctionParameterNames","isVariableDeclarationListWithCollidingName","visitVariableDeclarationListWithCollidingNames","transformAsyncFunctionBody","collidesWithParameterName","hasReceiver","hoistVariableDeclarationList","hoistVariable","converted","getPromiseConstructor","savedCapturedSuperProperties","savedHasSuperElementAccess","transformAsyncFunctionBodyWorker","emitSuperHelpers","enableSubstitutionForAsyncMethodsWithSuper","variableStatement","createSuperAccessVariableStatement","serializationKind","isSuperContainer","superContainerFlags","savedEnclosingSuperContainerFlags","substituteCallExpression","createSuperElementAccessInAsyncMethod","hasBinding","getterAndSetter","ESNextSubstitutionFlags","HierarchyFacts","transformES2018","enclosingFunctionFlags","taggedTemplateStringDeclarations","exportedVariableStatement","hierarchyFacts","affectsSubtree","excludeFacts","includeFacts","enterSubtree","ancestorFacts","exitSubtree","visitorWithUnusedExpressionResult","visitorNoAsyncModifier","doWithHierarchyFacts","visitYieldExpression","visitReturnStatement","visitLabeledStatement","visitObjectLiteralExpression","visitCommaListExpression","visitCatchClause","visitForOfStatement","visitVoidExpression","visitConstructorDeclaration","visitGetAccessorDeclaration","visitSetAccessorDeclaration","createDownlevelAwait","chunkObjectLiteralElements","chunkObject","objects","elements_4","updatedDecl","visitedBindings","savedExportedVariableStatement","visitVariableDeclarationWorker","transformForOfStatementWithObjectRest","transformForAwaitOfStatement","initializerWithoutParens","bodyLocation","convertForOfStatementHead","errorRecord","catchVariable","returnMethod","callValues","callNext","getDone","callReturn","createLogicalNot","savedEnclosingFunctionFlags","transformFunctionBody","transformAsyncGeneratorFunctionBody","appendObjectRestAssignmentsIfNeeded","leadingStatements","transformES2019","transformES2020","visitNonOptionalCallExpression","visitOptionalExpression","transformNullishCoalescingExpression","visitDeleteExpression","flattenChain","visitNonOptionalParenthesizedExpression","captureThisArg","isDelete","visitNonOptionalExpression","visitNonOptionalPropertyOrElementAccessExpression","leftThisArg","leftExpression","capturedLeft","rightExpression","createNotNullCondition","invert","transformES2021","transformLogicalAssignment","nonAssignmentOperator","assignmentTarget","propertyAccessTargetSimpleCopiable","propertyAccessTarget","propertyAccessTargetAssignment","elementAccessArgumentSimpleCopiable","elementAccessArgument","transformESNext","transformJsx","currentFileState","getCurrentFileNameExpression","filenameDeclaration","getJsxFactoryCalleePrimitive","childrenLength","getJsxFactoryCallee","getImplicitImportForName","getImplicitJsxFragmentReference","importSource","importSpecifier","utilizedImplicitRuntimeImports","specifierSourceImports","importSpecifiersMap","importStatement","requireStatement","visitJsxElement","visitJsxFragment","visitJsxExpression","transformJsxChildToExpression","visitJsxText","hasKeyAfterPropsSpread","shouldUseCreateElement","isChild","tagTransform","visitJsxOpeningLikeElementCreateElement","visitJsxOpeningLikeElementJSX","visitJsxOpeningFragmentCreateElement","visitJsxOpeningFragmentJSX","convertJsxChildrenToChildrenPropObject","nonWhitespaceChildren","result_13","objectProperties","getTagName","keyAttr","attrs","transformJsxSpreadAttributeToExpression","transformJsxAttributeToObjectLiteralElement","visitJsxOpeningLikeElementOrFragmentJSX","transformJsxAttributeInitializer","originalFile","lineCol","transformJsxSpreadAttributeToSpreadAssignment","childrenProps","getAttributeName","tryDecodeEntities","fixed","fixupWhitespaceAndDecodeEntities","lastNonWhitespace","addLineOfJsxText","trimmedLine","decoded","decodeEntities","_all","_number","_digits","decimal","hex","word","entities","quot","amp","apos","lt","gt","nbsp","iexcl","cent","pound","curren","yen","brvbar","sect","uml","copy","ordf","laquo","shy","reg","macr","deg","plusmn","sup2","sup3","acute","micro","para","middot","cedil","sup1","ordm","raquo","frac14","frac12","frac34","iquest","Agrave","Aacute","Acirc","Atilde","Auml","Aring","AElig","Ccedil","Egrave","Eacute","Ecirc","Euml","Igrave","Iacute","Icirc","Iuml","ETH","Ntilde","Ograve","Oacute","Ocirc","Otilde","Ouml","times","Oslash","Ugrave","Uacute","Ucirc","Uuml","Yacute","THORN","szlig","agrave","aacute","acirc","atilde","auml","aring","aelig","ccedil","egrave","eacute","ecirc","euml","igrave","iacute","icirc","iuml","eth","ntilde","ograve","oacute","ocirc","otilde","ouml","divide","oslash","ugrave","uacute","ucirc","uuml","yacute","thorn","yuml","OElig","oelig","Scaron","scaron","Yuml","fnof","circ","tilde","Alpha","Beta","Gamma","Delta","Epsilon","Zeta","Eta","Theta","Iota","Kappa","Lambda","Mu","Nu","Xi","Omicron","Pi","Rho","Sigma","Tau","Upsilon","Phi","Chi","Psi","Omega","alpha","beta","gamma","epsilon","zeta","eta","theta","iota","kappa","lambda","mu","nu","xi","omicron","pi","rho","sigmaf","sigma","tau","upsilon","phi","chi","psi","omega","thetasym","upsih","piv","ensp","emsp","thinsp","zwnj","zwj","lrm","rlm","ndash","mdash","lsquo","rsquo","sbquo","ldquo","rdquo","bdquo","dagger","Dagger","bull","hellip","permil","prime","Prime","lsaquo","rsaquo","oline","frasl","euro","image","weierp","trade","alefsym","larr","uarr","rarr","darr","harr","crarr","lArr","uArr","rArr","dArr","hArr","forall","exist","nabla","isin","notin","ni","prod","minus","lowast","radic","infin","ang","cap","cup","int","there4","sim","cong","asymp","ne","equiv","le","ge","sup","nsub","sube","supe","oplus","otimes","perp","sdot","lceil","rceil","lfloor","rfloor","lang","rang","loz","spades","clubs","hearts","diams","transformES2016","visitExponentiationAssignmentExpression","visitExponentiationExpression","expressionTemp","argumentExpressionTemp","ES2015SubstitutionFlags","LoopOutParameterFlags","CopyDirection","Jump","SpreadSegmentKind","createSpreadSegment","transformES2015","currentText","convertedLoopState","isReturnVoidStatementInConstructorWithCapturedSuper","isOrMayContainReturnCompletion","shouldVisitNode","shouldConvertIterationStatement","classWrapperStatementVisitor","callExpressionVisitor","visitSuperKeyword","visitIdentifier","visitVariableDeclarationList","visitSwitchStatement","visitCaseBlock","visitBlock","visitBreakOrContinueStatement","visitDoOrWhileStatement","visitForInStatement","visitShorthandPropertyAssignment","visitArrayLiteralExpression","visitTemplateLiteral","visitStringLiteral","visitNumericLiteral","visitTemplateExpression","visitSpreadElement","visitThisKeyword","visitMetaProperty","visitAccessorDeclaration","prologue","insertCaptureThisForNodeIfNeeded","savedAllowedNonLabeledJumps","allowedNonLabeledJumps","returnCapturedThis","nonLocalJumps","containsLexicalThis","thisName","argumentsName","jump","canUseBreakOrContinue","labels","labelMarker","setLabeledJump","loopOutParameters","outParams","copyExpr","copyOutParameter","transformClassLikeDeclarationToExpression","exportStatement","enableSubstitutionsForBlockScopedBindings","classFunction","transformClassBody","constructorLikeName","addExtendsHelperIfNeeded","addConstructor","addClassMembers","savedConvertedLoopState","hasSynthesizedSuper","hasSynthesizedDefaultSuperCall","transformConstructorParameters","createDefaultConstructorBody","createDefaultSuperCallOrThis","statementsArray","superCallExpression","addRestParameterIfNeeded","visitImmediateSuperCallInBody","insertCaptureNewTargetIfNeeded","insertCaptureThisForNode","createActualThis","isSufficientlyCoveredByReturnStatements","ifStatement","lastStatement","hasDefaultValueOrBindingPattern","added","insertDefaultValueAssignmentForBindingPattern","insertDefaultValueAssignmentForInitializer","shouldAddRestParameter","inConstructorWithSynthesizedSuper","prologueStatements","expressionName","createLessThan","createPostfixIncrement","createSubtract","enableSubstitutionsForCapturedThis","captureThisStatement","copyOnWrite","newTarget","captureNewTargetStatement","transformSemicolonClassElementToStatement","transformClassMethodDeclarationToStatement","transformAccessorsToStatement","memberFunction","transformFunctionLikeToExpression","transformAccessorsToExpression","visitedAccessorName","getterFunction","setterFunction","closeBraceLocation","isVariableStatementOfTypeScriptClassWrapper","hoistVariableDeclarationDeclaredInConvertedLoop","assignment","visitVariableDeclarationInLetDeclarationList","getRangeUnion","declarations_9","shouldEmitExplicitInitializerForLetDeclaration","isCapturedInFunction","emittedAsTopLevel","emitExplicitInitializer","recordLabel","resetLabel","visitIterationStatement","visitIterationStatementWithFacts","convert","convertIterationStatementBodyIfNecessary","visitEachChildOfForStatement","convertForOfStatementForIterable","convertForOfStatementForArray","convertedLoopBodyStatements","firstOriginalDeclaration","createSyntheticBlockForConvertedStatements","counter","rhsReference","numInitialProperties","hasComputed","addObjectLiteralMembers","shouldConvertPartOfIterationStatement","shouldConvertInitializerOfForStatement","shouldConvertConditionOfForStatement","shouldConvertIncrementorOfForStatement","shouldConvertBodyOfIterationStatement","hoistedLocalVariables","saveAllowedNonLabeledJumps","createConvertedLoopState","outerConvertedLoopState","initializerFunction","createFunctionForInitializerOfForStatement","bodyFunction","createFunctionForBodyOfIterationStatement","functionDeclaration","addExtraDeclarationsForConvertedLoop","generateCallToConvertedLoopInitializer","containsYield","clone_4","convertIterationStatementCore","clone_5","convertedLoopBody","convertForStatement","convertForInStatement","convertForOfStatement","convertDoStatement","convertWhileStatement","shouldConvertCondition","shouldConvertIncrementor","loopInitializer","loopParameters","hasCapturedBindingsInForInitializer","processLoopVariableDeclaration","extraVariableDeclarations","outParam","outParamName","conditionVariable","createOutVariable","originalName","copyOutParameters","lexicalEnvironment","loopBody","generateCallToConvertedLoop","copyDirection","partFlags","outParams_1","initFunctionExpressionName","callResult","loopFunctionExpressionName","isSimpleLoop","labeledNonLocalBreaks","labeledNonLocalContinues","loopResultName","stateVariable","caseClauses","processLabeledJumps","isBreak","labelText","outerLoop","numProperties","transformObjectLiteralMethodDeclarationToExpression","transformPropertyAssignmentToExpression","transformShorthandPropertyAssignmentToExpression","newVariableDeclaration","vars","destructure","addStatementToStartOfBlock","transformedStatements","functionExpression","transformAndSpreadElements","visitTypeScriptClassWrapper","visitCallExpressionWithPotentialCapturedThisAssignment","isVariableStatementWithInitializer","stmt","bodyStatements","classStatements","remainingStatements","aliasAssignment","funcStatements","classBodyStart","classBodyEnd","extendsCall","assignToCapturedThis","resultingCall","isArgumentList","partitionSpread","partition","visitPartition","_start","startsWithSpread","visitSpanOfSpreads","visitSpanOfNonSpreads","chunk","visitExpressionOfSpread","isCallToReadHelper","All","addTemplateHead","addTemplateSpans","shouldAddTemplateHead","isExpressionOfCall","substituteIdentifier","isNameOfDeclarationWithCollidingName","substituteThisKeyword","isPartOfClassBody","blockScope","hasExtendsClause","statementExpression","callArgument","transformES5","noSubstitution","substitutePropertyAssignment","literalName","trySubstituteReservedName","OpCode","BlockAction","CodeBlockKind","ExceptionBlockState","Instruction","getInstructionName","instruction","transformGenerators","renamedCatchVariables","renamedCatchVariableDeclarations","inGeneratorFunctionBody","inStatementContainingYield","blocks","blockOffsets","blockActions","blockStack","labelOffsets","labelExpressions","hoistFunctionDeclaration","operations","operationArguments","operationLocations","labelNumbers","lastOperationWasAbrupt","lastOperationWasCompletion","exceptionBlockStack","currentExceptionBlock","withBlockStack","nextLabelId","blockIndex","labelNumber","visitJavaScriptInStatementContainingYield","visitJavaScriptInGeneratorFunctionBody","visitGenerator","visitDoStatement","visitWhileStatement","visitBreakStatement","visitContinueStatement","visitJavaScriptContainingYield","visitConditionalExpression","transformGeneratorFunctionBody","savedInGeneratorFunctionBody","savedInStatementContainingYield","savedBlocks","savedBlockOffsets","savedBlockActions","savedBlockStack","savedLabelOffsets","savedLabelExpressions","savedNextLabelId","savedOperations","savedOperationArguments","savedOperationLocations","savedState","transformAndEmitStatements","buildResult","transformAndEmitVariableDeclarationList","assoc","visitLeftAssociativeBinaryExpression","visitRightAssociativeBinaryExpression","cacheExpression","visitLogicalBinaryExpression","visitCommaExpression","emitWorker","resultLabel","defineLabel","resultLocal","declareLocal","emitBreakWhenFalse","emitBreakWhenTrue","markLabel","whenFalseLabel","emitBreak","resumeLabel","emitYieldStar","emitYield","createGeneratorResume","visitElements","leadingElement","numInitialElements","countInitialNodesWithoutYield","initialElements","reduceElement","hasAssignedTemp","reduceProperty","emitStatement","transformAndEmitStatement","transformAndEmitEmbeddedStatement","transformAndEmitStatementWorker","transformAndEmitBlock","transformAndEmitExpressionStatement","transformAndEmitIfStatement","transformAndEmitDoStatement","transformAndEmitWhileStatement","transformAndEmitForStatement","transformAndEmitForInStatement","transformAndEmitContinueStatement","transformAndEmitBreakStatement","transformAndEmitReturnStatement","transformAndEmitWithStatement","transformAndEmitSwitchStatement","transformAndEmitLabeledStatement","transformAndEmitThrowStatement","transformAndEmitTryStatement","numVariables","variablesWritten","endLabel","conditionLabel","loopLabel","beginLoopBlock","endLoopBlock","beginScriptLoopBlock","incrementLabel","keysArray","keysIndex","variable_1","findContinueTarget","createInlineBreak","findBreakTarget","emitReturn","createInlineReturn","beginWithBlock","endWithBlock","numClauses","beginSwitchBlock","clauseLabels","defaultClauseIndex","clausesWritten","pendingClauses","defaultClausesSkipped","endSwitchBlock","beginScriptSwitchBlock","beginLabeledBlock","endLabeledBlock","beginScriptLabeledBlock","emitThrow","beginExceptionBlock","beginCatchBlock","beginFinallyBlock","endExceptionBlock","numNodes","clone_6","beginBlock","endBlock","peekBlock","peekBlockKind","startLabel","emitNop","exception","catchLabel","emitEndfinally","isScript","breakLabel","continueLabel","supportsUnlabeledBreak","supportsLabeledBreakOrContinue","supportsUnlabeledContinue","hasImmediateContainingLabeledBlock","containingBlock","createLabel","createInstruction","operationIndex","buildStatements","writeOperation","flushFinalLabel","labelExpression","flushLabel","appendLabel","isFinalLabelReachable","tryEnterLabel","writeReturn","updateLabelExpressions","markLabelEnd","withBlock","labelNumber_1","labels_1","expressions_1","tryEnterOrLeaveBlock","blockAction","opcode","writeEndfinally","writeStatement","writeAssign","writeBreak","writeBreakWhenTrue","writeBreakWhenFalse","writeYield","writeYieldStar","writeThrow","operationLocation","transformModule","getTransformModuleDelegate","transformAMDModule","transformUMDModule","transformCommonJSModule","getEmitHost","currentModuleInfo","needUMDDynamicImportHelper","moduleInfoMap","deferredExports","shouldEmitUnderscoreUnderscoreESModule","topLevelVisitor","createUnderscoreUnderscoreESModule","nextId","addExportEqualsIfNeeded","define","collectAsynchronousDependencies","aliasedModuleNames","unaliasedModuleNames","importAliasNames","transformAsynchronousModuleBody","umdHeader","includeNonAmdDependencies","amdDependency","externalModuleName","importAliasName","getAMDImportExpressionForImport","getHelperExpressionForImport","dynamicImportUMDHelper","emitAsReturn","expressionResult","visitMergeDeclarationMarker","visitEndOfDeclarationMarker","visitPartiallyEmittedExpression","visitImportCallExpression","visitDestructuringAssignment","destructuringNeedsFlattening","getExports","createAllExportExpressions","exportedNames_1","createExportExpression","firstArgument","createImportCallExpressionAMD","createImportCallExpressionUMD","createImportCallExpressionCommonJS","argClone","reject","promise","promiseResolveCall","requireCall","getHelperExpressionForExport","innerExpr","createRequireCall","hasAssociatedEndOfDeclarationMarker","appendExportsOfImportDeclaration","appendExportsOfImportEqualsDeclaration","exportNeedsImportDefault","exportedValue","appendExportStatement","appendExportsOfHoistedDeclaration","removeCommentsOnExpressions","updatedVariable","appendExportsOfVariableStatement","exportedNames_2","appendExportsOfDeclaration","importBinding","appendExportsOfBindingElement","liveBinding","exportSpecifiers_1","exportSpecifier","createExportStatement","exportedOrImportedName","substituteTaggedTemplateExpression","substituteBinaryExpression","exportContainer","importDeclaration","exportedNames_3","transformSystemModule","moduleInfo","exportFunction","contextObject","hoistedStatements","enclosingBlockScopedContainer","exportFunctionsMap","noSubstitutionMap","contextObjectMap","dependencyGroups","collectDependencyGroups","moduleBodyBlock","createSystemModuleBody","moduleBodyFunction","dependencyGroup","groupIndices","externalImports_1","externalImport","groupIndex","executeStatements","exportStarFunction","addExportStarIfNeeded","moduleObject","createSettersArray","hasExportDeclarationWithExportClause","exportStarFunction_1","createExportStarFunction","exportedLocalName","exportedNamesStorageRef","localNames","setters","dependencyGroups_1","group_2","importVariableName","topLevelNestedVisitor","shouldHoistVariableDeclarationList","isExportedDeclaration","isMarkedDeclaration","hoistBindingElement","createExportedVariableAssignment","createNonExportedVariableAssignment","createVariableAssignment","preventSubstitution","exportSelf","excludeName","exportSpecifiers_2","visitWithStatement","visitCaseClause","visitDefaultClause","visitTryStatement","savedEnclosingBlockScopedContainer","visitForInitializer","shouldHoistForInitializer","visitPrefixOrPostfixUnaryExpression","hasExportedReferenceInDestructuringTarget","exportedNames_4","isSubstitutionPrevented","substituteUnspecified","substituteMetaProperty","exportedNames_5","transformECMAScriptModule","helperNameSubstitutions","updateExternalModule","oldIdentifier","synthName","substituteHelperName","substitution","canProduceDiagnostics","createGetSymbolAccessibilityDiagnosticForNodeName","getAccessorNameVisibilityError","getMethodNameVisibilityError","createGetSymbolAccessibilityDiagnosticForNode","symbolAccessibilityResult","getAccessorNameVisibilityDiagnosticMessage","getMethodNameVisibilityDiagnosticMessage","getVariableDeclarationTypeVisibilityError","getAccessorDeclarationTypeVisibilityError","getReturnTypeVisibilityError","getParameterDeclarationTypeVisibilityError","getTypeParameterConstraintVisibilityError","getHeritageClauseVisibilityError","getImportEntityNameVisibilityError","getTypeAliasDeclarationVisibilityError","getVariableDeclarationTypeVisibilityDiagnosticMessage","getParameterDeclarationTypeVisibilityDiagnosticMessage","getDeclarationDiagnostics","transformNodes","transformDeclarations","hasInternalAnnotation","isInternalDeclaration","parseTreeNode","paramIdx","previousSibling","leadingCommentRanges","declarationEmitNodeBuilderFlags","necessaryTypeReferences","lateMarkedStatements","lateStatementReplacementMap","suppressNewDiagnosticContexts","exportedModulesFromDeclarationEmit","errorNameNode","errorFallbackNode","refs","emittedImports","throwDiagnostic","getSymbolAccessibilityDiagnostic","needsDeclare","isBundledEmit","resultHasExternalModuleIndicator","needsScopeFixMarker","resultHasScopeMarker","symbolTracker","noResolve","transformRoot","recordTypeReferenceDirectivesIfNecessary","typeReferenceDirectives_2","directives","handleSymbolAccessibilityError","issuedDiagnostic","errorDeclarationNameWithFallback","primaryDeclaration","augmentingDeclarations","augmentingDeclarations_1","transformDeclarationsForJS","oldDiag","hasNoDefaultLib_1","collectReferences","collectLibs","visitDeclarationStatements","newFile","transformAndReplaceLatePaintedStatements","syntheticFileReferences","syntheticTypeReferences","getFileReferencesForUsedTypeReferences","syntheticLibReferences","getLibReferences","outputFilePath_1","getOutputPathsFor","declarationFilePath","referenceVisitor_1","mapReferencesIntoArray","combinedStatements","outputFilePath","referenceVisitor","getFileReferenceForTypeName","emittedImports_1","declFileName","jsFilePath","getModuleSpecifier","ret","getSourceFileFromReference","getLibFileFromReference","filterBindingPatternInitializers","visitBindingElement","shouldPrintWithInitializer","ensureParameter","modifierMask","maskModifiers","ensureType","ensureNoInitializer","canHaveLiteralInitializer","ignorePrivate","shouldUseResolverType","visitDeclarationSubtree","isDeclarationAndNotVisible","getBindingNameVisible","shouldEmitFunctionProperties","overloadSignatures","updateParamsList","newParams","updateAccessorParamsList","newValueParameter","valueParameter","accessorType","getTypeAnnotationFromAllAccessorDeclarations","ensureTypeParams","isEnclosingDeclaration","checkEntityNameVisibility","visibilityResult","preserveJsDoc","transformImportEqualsDeclaration","transformImportDeclaration","visibleDefaultBinding","bindingList","priorNeedsDeclare","transformTopLevelDeclaration","visitLateVisibilityMarkedStatements","shouldStripInternal","previousEnclosingDeclaration","canProduceDiagnostic","oldWithinObjectLiteralType","shouldEnterSuppressNewDiagnosticsContextContext","ensureModifiers","isProcessedComponent","recreateBindingPattern","isPrivateMethodTypeParameter","checkName","isPreservedDeclarationStatement","newId","varDecl","stripExportModifiers","canProdiceDiagnostic","previousNeedsDeclare","transformHeritageClauses","fakespace_1","exportMappings_1","isNonContextualKeywordName","gen","exp","namespaceDecl","cleanDeclaration","exportDefaultDeclaration","oldNeedsScopeFix","oldHasScopeFix","lateStatements","parameterProperties","oldDiag_1","walkBindingPattern","elems","memberNodes","extendsClause_1","oldId","newId_1","oldDiag_2","newClause","transformVariableStatement","constValue","recreateBindingElement","currentFlags","ensureModifierFlags","mask","additions","isAlwaysType","parentIsFile","maskModifierFlags","getTypeAnnotationFromAccessor","modifierAdditions","getModuleTransformer","TransformationState","SyntaxKindFeatureFlags","getTransformers","customTransformers","emitOnlyDtsFiles","scriptTransformers","getScriptTransformers","declarationTransformers","getDeclarationTransformers","transformers","before","wrapScriptTransformerFactory","after","afterDeclarations","wrapDeclarationTransformerFactory","wrapCustomTransformer","transformer","wrapCustomTransformerFactory","handleDefault","customTransformer","noEmitSubstitution","_hint","noEmitNotification","allowDtsFiles","lexicalEnvironmentVariableDeclarations","lexicalEnvironmentFunctionDeclarations","lexicalEnvironmentStatements","blockScopedVariableDeclarations","enabledSyntaxKindFeatures","lexicalEnvironmentFlags","lexicalEnvironmentVariableDeclarationsStack","lexicalEnvironmentFunctionDeclarationsStack","lexicalEnvironmentStatementsStack","lexicalEnvironmentFlagsStack","lexicalEnvironmentStackOffset","lexicalEnvironmentSuspended","blockScopedVariableDeclarationsStack","blockScopeStackOffset","isSubstitutionEnabled","isEmitNotificationEnabled","nodes_2","transformersWithContext","transformation","transformersWithContext_1","nodes_3","substituteNode","emitNodeWithNotification","dispose","h","nodes_4","noTransformers","PipelinePhase","TempFlags","brackets","createBracketsMap","isBuildInfoFile","forEachEmittedFile","sourceFilesOrTargetSourceFile","onlyBuildInfo","includeBuildInfo","getPrependNodes","sourceFiles_1","getTsBuildInfoEmitOutputFilePath","tsBuildInfoFile","buildInfoExtensionLess","outPath","configFileExtensionLess","getOutputPathsForBundle","forceDtsPaths","sourceMapFilePath","getSourceMapFilePath","ownOutputFilePath","getOutputExtension","isJsonFile","isJsonEmittedToSameLocation","sourceMap","inlineSourceMap","getOutputPathWithoutChangingExt","inputFileName","getCommonSourceDirectoryOfConfig","getOutputDeclarationFileName","getOutputJSFileName","outputFileName","createAddOutput","outputs","addOutput","getOutputs","getSingleOutputFileNames","getOwnOutputFileNames","emittedFiles","checkSourceFilesBelongToPath","computeCommonSourceDirectoryOfFilenames","getAllProjectOutputs","getCommonSourceDirectory_1","getOutputFileNames","getFirstProjectOutput","emitFiles","bundleBuildInfo","sourceMapDataList","emittedFilesList","emitterDiagnostics","emitSkipped","emitSourceFileOrBundle","sourceMaps","sourceFileOrBundle","buildInfoDirectory","relativeToBuildInfo","emitJsFileOrBundle","emitDeclarationFileOrBundle","emitBuildInfo","program","getProgramBuildInfo","isEmitBlocked","getBuildInfoText","printerOptions","noEmitHelpers","inlineSources","writeBundleFileInfo","printSourceFileOrBundle","filesForEmit","inputListOrBundle","declarationTransform","onlyPrintJsDocStyle","recordInternalSection","declarationPrinter","declBlocked","mapRoot","mapOptions","sourceMapGenerator","shouldEmitSourceMaps","getSourceRoot","getSourceMapDirectory","writeBundle","inputSourceFileNames","sourceMappingURL","getSourceMappingURL","emitBOM","sourceMapDir","base64SourceMapText","sourceMapFile","encodeURI","buildInfoText","createSourceFilesFromBundleBuildInfo","jsBundle","prologueMap","prologueInfo","eofToken","emitUsingBuildInfo","getCommandLine","jsFileText","ownPrependInput","outputFiles","prependNodes","createPrependNodes","sourceFilesForJsEmit","emitHost","getSourceFileByPath","newBuildInfo","notImplementedResolver","handlers","nodeIdToGeneratedName","autoGeneratedIdToGeneratedName","generatedNames","tempFlagsStack","tempFlags","reservedNamesStack","reservedNames","nextListElementPos","ownWriter","isOwnFileEmit","sourceMapSource","mostRecentlyAddedSourceMapSource","currentLineMap","detachedCommentsInfo","lastSubstitution","currentParenthesizerRule","onBeforeEmitNode","onAfterEmitNode","onBeforeEmitNodeArray","onAfterEmitNodeArray","onBeforeEmitToken","onAfterEmitToken","bundledHelpers","preserveSourceNewlines","writeBase","sourceFileTextPos","sourceFileTextKind","sourceMapsDisabled","sourceMapSourceIndex","mostRecentlyAddedSourceMapSourceIndex","containerPos","containerEnd","declarationListContainerEnd","hasWrittenComment","commentsDisabled","enterComment","exitComment","parenthesizer","emitBinaryExpression","createEmitBinaryExpression","printNode","printList","printFile","printBundle","writeList","printUnparsedSource","beginPrint","endPrint","format","unparsed","writeUnparsedSource","previousWriter","setWriter","print","setSourceFile","emitList","updateOrPushBundleFileTextLike","recordBundleFileInternalSectionStart","prevSourceFileTextKind","recordBundleFileTextLikeSection","recordBundleFileInternalSectionEnd","emitShebangIfNeeded","emitPrologueDirectivesIfNeeded","emitSyntheticTripleSlashReferencesIfNeeded","savedSections","newSections","getPrologueDirectivesFromBundledSourceFiles","getHelpersFromBundledSourceFiles","pipelineEmit","setSourceMapSource","_writer","_sourceMapGenerator","getCurrentLineMap","emitIdentifierName","emitJsxAttributeValue","beforeEmitNode","afterEmitNode","savedPreserveSourceNewlines","emitHint","pipelinePhase","getPipelinePhase","shouldEmitComments","pipelineEmitWithNotification","pipelineEmitWithSubstitution","pipelineEmitWithComments","pipelineEmitWithSourceMaps","pipelineEmitWithHint","getNextPipelinePhase","currentPhase","pipelineEmitWithHintWorker","emitSourceFile","emitIdentifier","emitLiteral","emitMappedTypeParameter","emitEmptyStatement","emitPrivateIdentifier","emitQualifiedName","emitComputedPropertyName","emitTypeParameter","emitParameter","emitDecorator","emitPropertySignature","emitPropertyDeclaration","emitMethodSignature","emitMethodDeclaration","emitClassStaticBlockDeclaration","emitConstructor","emitAccessorDeclaration","emitCallSignature","emitConstructSignature","emitIndexSignature","emitTypePredicate","emitTypeReference","emitFunctionType","emitConstructorType","emitTypeQuery","emitTypeLiteral","emitArrayType","emitTupleType","emitOptionalType","emitUnionType","emitIntersectionType","emitConditionalType","emitInferType","emitParenthesizedType","emitExpressionWithTypeArguments","emitThisType","emitTypeOperator","emitIndexedAccessType","emitMappedType","emitLiteralType","emitNamedTupleMember","emitTemplateType","emitTemplateTypeSpan","emitImportTypeNode","emitObjectBindingPattern","emitArrayBindingPattern","emitBindingElement","emitTemplateSpan","emitSemicolonClassElement","emitBlock","emitVariableStatement","emitExpressionStatement","emitIfStatement","emitDoStatement","emitWhileStatement","emitForStatement","emitForInStatement","emitForOfStatement","emitContinueStatement","emitBreakStatement","emitReturnStatement","emitWithStatement","emitSwitchStatement","emitLabeledStatement","emitThrowStatement","emitTryStatement","emitDebuggerStatement","emitVariableDeclaration","emitVariableDeclarationList","emitFunctionDeclaration","emitClassDeclaration","emitInterfaceDeclaration","emitTypeAliasDeclaration","emitEnumDeclaration","emitModuleDeclaration","emitModuleBlock","emitCaseBlock","emitNamespaceExportDeclaration","emitImportEqualsDeclaration","emitImportDeclaration","emitImportClause","emitNamespaceImport","emitNamespaceExport","emitNamedImports","emitImportSpecifier","emitExportAssignment","emitExportDeclaration","emitNamedExports","emitExportSpecifier","emitExternalModuleReference","emitJsxText","emitJsxOpeningElementOrFragment","emitJsxClosingElementOrFragment","emitJsxAttribute","emitJsxAttributes","emitJsxSpreadAttribute","emitJsxExpression","emitCaseClause","emitDefaultClause","emitHeritageClause","emitCatchClause","emitPropertyAssignment","emitShorthandPropertyAssignment","emitSpreadAssignment","emitEnumMember","writeUnparsedNode","emitUnparsedSourceOrPrepend","emitUnparsedTextLike","emitUnparsedSyntheticReference","emitJSDocTypeExpression","emitJSDocNameReference","emitJSDocNullableType","emitJSDocNonNullableType","emitJSDocOptionalType","emitJSDocFunctionType","emitRestOrJSDocVariadicType","emitJSDoc","emitJSDocTypeLiteral","emitJSDocSignature","emitJSDocSimpleTag","emitJSDocHeritageTag","emitJSDocCallbackTag","emitJSDocPropertyLikeTag","emitJSDocSimpleTypedTag","emitJSDocTemplateTag","emitJSDocTypedefTag","emitJSDocSeeTag","emitNumericOrBigIntLiteral","emitArrayLiteralExpression","emitObjectLiteralExpression","emitPropertyAccessExpression","emitElementAccessExpression","emitCallExpression","emitNewExpression","emitTaggedTemplateExpression","emitTypeAssertionExpression","emitParenthesizedExpression","emitFunctionExpression","emitArrowFunction","emitDeleteExpression","emitTypeOfExpression","emitVoidExpression","emitAwaitExpression","emitPrefixUnaryExpression","emitPostfixUnaryExpression","emitConditionalExpression","emitTemplateExpression","emitYieldExpression","emitSpreadElement","emitClassExpression","emitAsExpression","emitNonNullExpression","emitMetaProperty","emitJsxElement","emitJsxSelfClosingElement","emitJsxFragment","emitPartiallyEmittedExpression","emitCommaList","writeTokenNode","shouldSkip","getSortedEmitHelpers","helpers_5","helpersEmitted","numPrepends","shouldBundle","helpers_6","writeLines","makeFileLevelOptimisticUniqueName","jsxAttributeEscape","getLiteralTextOfNode","emitEntityName","emitDecorators","emitModifiers","emitNodeWithWriter","emitTypeAnnotation","emitInitializer","pushNameGenerationScope","emitTypeParameters","emitParameters","popNameGenerationScope","emitSignatureAndBody","emitSignatureHead","emitBlockFunctionBody","emitParametersForIndexSignature","emitTypeArguments","emitParametersForArrow","emitTokenWithComment","writeTokenText","preferNewLine","emitExpressionList","generateMemberNames","indentedFlag","allowTrailingComma","linesBeforeDot","getLinesBetweenNodes","linesAfterDot","writeLinesAndIndent","shouldEmitDotDot","mayNeedDotDotForPropertyAccess","decreaseIndentIf","indirectCall","openParenPos","indented","writeLineSeparatorsAndIndentBefore","writeLineSeparatorsAfter","generateNameIfNeeded","emitFunctionDeclarationOrExpression","emitArrowFunctionHead","shouldEmitWhitespaceBeforeOperand","preserveSourceNewlinesStack","containerPosStack","containerEndStack","declarationListContainerEndStack","emitComments_1","shouldEmitCommentsStack","emitSourceMaps","shouldEmitSourceMapsStack","emitCommentsBeforeNode","emitSourceMapsBeforeNode","_workArea","maybeEmitExpression","isCommaOperator","linesBeforeOperator","linesAfterOperator","emitLeadingCommentsOfPosition","emitTrailingCommentsOfPosition","savedContainerPos","savedContainerEnd","savedDeclarationListContainerEnd","shouldEmitComments_1","shouldEmitSourceMaps_1","emitSourceMapsAfterNode","emitCommentsAfterNode","linesBeforeQuestion","linesAfterQuestion","linesBeforeColon","linesAfterColon","emitExpressionWithLeadingSpace","emitClassDeclarationOrExpression","writeToken","emitBlockStatements","isEmptyBlock","forceSingleLine","isEmbeddedStatement","emitEmbeddedStatement","writeLineOrSpace","emitWhileClause","emitForBinding","emitWithTrailingSpace","emitWithLeadingSpace","indentLeading","isSimilarNode","needsIndent","isJsxExprContext","generateNames","shouldEmitBlockFunctionBodyOnSingleLine","getLeadingLineTerminatorCount","getClosingLineTerminatorCount","previousStatement","getSeparatingLineTerminatorCount","emitBlockFunctionBodyOnSingleLine","emitBlockFunctionBodyWorker","emitBodyWithDetachedComments","emitPrologueDirectives","emitModuleReference","asPos","emitNamedImportsOrExports","emitImportOrExportSpecifier","fromPos","emitJsxTagName","emitNodeWithPrefix","hasTrailingCommentsAtPosition","hasLeadingCommentsAtPosition","hasCommentsAtPosition","isMultiline","emitCaseOrDefaultClauseRest","colonPos","emitAsSingleStatement","lines_2","emitJSDocTagName","emitJSDocComment","shouldEmitDetachedComment","emitSourceFileWorker","emitTripleSlashDirectives","emitTripleSlashDirectivesIfNeeded","dep","files_2","types_24","libs_1","seenPrologueDirectives","recordBundleFileSection","needsToSetSourceFile","shouldEmitPrologueDirective","emitUnparsedPrologues","prologues_1","savedWrite","equalCommentStartPos","prefixWriter","canEmitSimpleArrowHead","writeDelimiter","emitNodeList","isUndefined","getOpeningBracket","mayEmitInterveningComments","shouldEmitInterveningComments","leadingLineTerminatorCount","previousSourceFileTextKind","shouldDecreaseIndentAfterEmit","separatingLineTerminatorCount","skipTrailingComments","closingLineTerminatorCount","getClosingBracket","emitTokenWithSourceMap","tokenString","prevChildNode","nextChildNode","lines_3","lineText","writeSpaceIfNotIndenting","value1","value2","firstChild_1","getEffectiveLines","synthesizedNodeStartsOnNewLine","previousNode","siblingNodePositionsAreComparable","originalNodesHaveSameParent","end_1","getLineDifference","leadingNewlines","trailingNewlines","skipSynthesizedParentheses","generateName","terminateUnterminatedLiterals","reserveNameInNestedScopes","generateNameCached","getNodeForGeneratedName","makeName","generateNameForNode","isUniqueName","isUniqueLocalName","makeTempVariableName","makeUniqueName","checkFn","optimistic","generateNameForModuleOrEnum","generateNameForImportOrExportDeclaration","generateNameForExportDefault","generateNameForClassExpression","generateNameForMethodOrAccessor","emitLeadingCommentsOfNode","emitTrailingCommentsOfNode","skipLeadingComments","emitLeadingComments","emitLeadingSynthesizedComment","emitTrailingSynthesizedComment","emitTrailingComments","hasLeadingNewline","writeSynthesizedComment","formatSynthesizedComment","detachedRange","emitDetachedCommentsAndUpdateCommentsInfo","nodeA","nodeB","parentNodeArray","prevNodeIndex","isEmittedNode","forEachLeadingCommentToEmit","emitNonTripleSlashLeadingComment","emitLeadingComment","emitTripleSlashLeadingComment","rangePos","isTripleSlashComment","shouldWriteComment","emitPos","forEachTrailingCommentToEmit","emitTrailingComment","_kind","prefixSpace","forceNoNewline","emitTrailingCommentOfPositionNoNewline","emitTrailingCommentOfPosition","hasDetachedComments","forEachLeadingCommentWithoutDetachedComments","emitComment","getParsedSourceMap","parsedSourceMap","emitSourcePos","skipSourceTrivia","isJsonSourceMapSource","savedSourceMapSource","savedSourceMapSourceIndex","resetSourceMapSource","createCachedDirectoryStructureHost","cachedReadDirectoryResult","encoding","addOrDeleteFileOrDirectory","addOrDeleteFile","clearCache","getCachedFileSystemEntries","rootDirPath","getCachedFileSystemEntriesForBaseDir","getBaseNameOfFileName","createCachedFileSystemEntries","resultFromHost","tryReadDirectory","fileNameEqual","name1","name2","hasEntry","updateFileSystemEntry","updateFilesOfFileSystemEntry","rootSymLinkResult","rootResult","getFileSystemEntriesFromHost","fileOrDirectory","fileOrDirectoryPath","existingResult","fsQueryResult","WatchLogLevel","updateSharedExtendedConfigFileWatcher","projectPath","extendedConfigFilesMap","createExtendedConfigFileWatch","extendedConfigs","extendedConfigFilePath","extendedConfigFileName","clearSharedExtendedConfigFileWatcher","cleanExtendedConfigCache","extendedFile","updatePackageJsonWatch","lookups","packageJsonWatches","createPackageJsonWatch","updateMissingFilePathsWatch","missingFileWatches","createMissingFileWatch","missingFilePaths","getMissingFilePaths","newMissingFilePathMap","updateWatchingWildcardDirectories","existingWatchedForWildcards","createWildcardDirectoryWatcher","updateWildcardDirectoryWatcher","existingWatcher","isIgnoredFileFromWildCardWatching","watchedDirPath","writeLog","newPath","removeIgnoredPath","filePathWithoutExtension","realProgram","isBuilderProgram","getProgramOrUndefined","builderProgram","hasSourceFile","getState","fileInfos","rootFile","isEmittedFileOfProgram","isEmittedFile","getWatchFactory","watchLogLevel","getDetailWatchInfo","plainInvokeFactory","triggerInvokingFactory","createTriggerLoggingAddWatch","createFileWatcherWithLogging","createDirectoryWatcherWithLogging","excludeWatcherFactory","createExcludeWatcherWithLogging","returnNoopFileWatcher","createExcludeHandlingAddWatch","detailInfo1","detailInfo2","getWatchInfo","watchInfo","triggerredInfo","objWithWatcher","ConfigFileProgramReloadLevel","findConfigFile","configName","referencedFileName","commonPathComponents","sourcePathComponents","createCompilerHost","createCompilerHostWorker","outputFingerprints","existingDirectories","computeHash","createHash","compilerHost","writeFileWorker","hash","mtimeBefore","fingerprint","byteOrderMark","mtimeAfter","getDefaultLibLocation","changeCompilerHostLikeToUseCache","originalReadFile","originalFileExists","originalDirectoryExists","originalCreateDirectory","readFileCache","fileExistsCache","directoryExistsCache","sourceFileCache","readFileWithCache","setReadFileCache","getSourceFileWithCache","shouldCreateNewSourceFile","getPreEmitDiagnostics","getConfigFileParsingDiagnostics","getOptionsDiagnostics","getSyntacticDiagnostics","getSemanticDiagnostics","formatDiagnostics","diagnostics_3","formatDiagnostic","flattenDiagnosticMessageText","ForegroundColorEscapeSequences","gutterStyleSequence","gutterSeparator","resetEscapeSequence","ellipsis","halfIndent","getCategoryFormat","Red","Yellow","Blue","formatColorAndReset","formatStyle","formatCodeSpan","squiggleColor","firstLine","firstLineChar","lastLine","lastLineChar","lastLineInFile","hasMoreThanFiveLines","gutterWidth","lineEnd","lineContent","lastCharForLine","formatLocation","color","Cyan","formatDiagnosticsWithColorAndContext","diagnostics_4","Grey","length_9","kid","loadWithLocalCache","resolutions","names_2","forEachResolvedProjectReference","resolvedProjectReferences","forEachProjectReference","resolvedRef","cbResolvedRef","cbRef","seenResolvedRefs","worker","isReferencedFile","reason","Import","ReferenceFile","TypeReferenceDirective","LibReferenceDirective","isReferenceFileLocation","getReferencedFileLocation","importLiteral","getModuleNameStringLiteralAt","isProgramUptoDate","rootFileNames","getSourceVersion","hasInvalidatedResolution","hasChangedAutomaticTypeDirectiveNames","getParsedCommandLine","getRootFileNames","projectReferenceUptoDate","sourceFileNotUptoDate","currentOptions","sourceFileVersionUptoDate","resolvedProjectReferenceUptoDate","getResolvedProjectReferences","oldResolvedRef","refPath_1","resolveProjectReferencePath","newParsedCommandLine","childResolvedRef","refPath","configFileParseResult","shouldProgramCreateNewSourceFiles","createCreateProgramOptions","rootNames","oldProgram","configFileParsingDiagnostics","createProgram","rootNamesOrOptions","_options","_host","_oldProgram","_configFileParsingDiagnostics","processingDefaultLibFiles","processingOtherFiles","symlinks","diagnosticsProducingTypeChecker","noDiagnosticsTypeChecker","fileProcessingDiagnostics","createProgramOptions","ambientModuleNameToUnmodifiedFileName","fileReasons","cachedBindAndCheckDiagnosticsForFile","cachedDeclarationDiagnosticsForFile","currentNodeModulesDepth","modulesWithElidedImports","sourceFilesFoundSearchingNodeModules","_compilerOptionsObjectLiteralSyntax","moduleResolutionCache","typeReferenceDirectiveResolutionCache","actualResolveModuleNamesWorker","actualResolveTypeReferenceDirectiveNamesWorker","configParsingHost","parseConfigHostFromCompilerHostLike","skipDefaultLib","noLib","getDefaultLibraryFileName","defaultLibraryPath","programDiagnostics","hasEmitBlockingDiagnostics","resolveModuleNames","moduleNames","reusedNames","withExtension","loader_1","_reusedNames","resolveTypeReferenceDirectives","typeDirectiveNames","loader_2","typesRef","typeReferenceDirectiveNames","projectReferenceRedirects","mapFromFileToProjectReferenceRedirects","mapFromToProjectReferenceRedirectSource","packageIdToSourceFile","sourceFileToPackageName","usesUriStyleNodeCoreModules","filesByName","filesByNameIgnoreCase","useSourceOfProjectReferenceRedirect","disableSourceOfProjectReferenceRedirect","updateHostForUseSourceOfProjectReferenceRedirect","getSourceOfProjectReferenceRedirect","onProgramCreateComplete","hasOldProgram","structureIsReused","tryReuseStructureFromOldProgram","parseProjectReferenceConfigFile","parsedRef","processProjectReferenceFile","SourceFromProjectReference","OutputFromProjectReference","getCommonSourceDirectory_2","processRootFile","RootFile","containingFilename","inferredTypesContainingFile","resolveTypeReferenceDirectiveNamesWorker","processTypeReferenceDirective","AutomaticTypeDirectiveFile","defaultLibraryFileName","LibFile","libFileName","compareDefaultLibFiles","onReleaseOldSourceFile","oldSourceFiles","oldSourceFiles_1","oldSourceFile","resolvedProjectReference","getResolvedProjectReferenceByPath","onReleaseParsedCommandLine","oldReference","oldRefPath","getModuleResolutionCache","getFilesByNameMap","getCachedSemanticDiagnostics","getBindAndCheckDiagnostics","getProgramDiagnostics","getTypeChecker","getClassifiableNames","getDiagnosticsProducingTypeChecker","getFileProcessingDiagnostics","isSourceFileDefaultLibrary","dropDiagnosticsProducingTypeChecker","getResolvedModuleWithFailedLookupLocationsFromCache","createDiagnosticExplainingFile","fileProcessingReason","verifyCompilerOptions","resolveModuleNamesWorker","containingFileName","getRedirectReferenceForResolution","resultFromDts","getRedirectReferenceForResolutionFromSourceOfProject","realDeclarationFileName","realDeclarationPath","getDefaultLibFilePriority","basename","emittedFiles_1","files_3","resolveModuleNamesReusingOldState","ambientModuleNames","unknownModuleNames","result_14","moduleNames_1","predictedToResolveToAmbientModuleMarker","oldResolvedModule","resolvesToAmbientModuleInNonModifiedFile","moduleNameResolvesToAmbientModuleInNonModifiedFile","resolutionToFile","unmodifiedFile","canReuseProjectReferences","newResolvedRef","oldProjectReferences","newReferences","oldRootNames","newSourceFiles","modifiedSourceFiles","missingFilePath","SeenPackageName","seenPackageNames","oldSourceFiles_2","unredirected","prevKind","newKind","fileReferenceIsEqualTo","collectExternalModuleReferences","moduleNameIsEqualTo","oldFile","modifiedFiles","oldSourceFiles_3","modifiedSourceFiles_1","getModuleNames","resolutionsChanged","typesReferenceDirectives","typeReferenceResolutions","typeReferenceEesolutionsChanged","newSourceFiles_1","oldFilesByNameMap","writeFileCallback","emitResult","_ref","emitFileName","handleNoEmitOptions","getDiagnosticsHelper","getSyntacticDiagnosticsForFile","getSemanticDiagnosticsForFile","perFile","getBindAndCheckDiagnosticsForFile","programDiagnosticsInFile","getDiagnosticsWithPrecedingDirectives","getDeclarationDiagnosticsWorker","getDeclarationDiagnosticsForFile","additionalSyntacticDiagnostics","getJSSyntacticDiagnosticsForFile","filterSemanticDiagnostics","getAndCacheDiagnostics","getBindAndCheckDiagnosticsForFileNoCache","typeChecker","isCheckJs","isTsNoCheck","includeBindAndCheckDiagnostics","checkDiagnostics","getMergedBindAndCheckDiagnostics","flatDiagnostics","errorExpectation","markPrecedingCommentDirectiveLine","walk","walkArray","interfaceKeyword","moduleKeyword","enumKeyword","checkModifiers","isConstValid","modifiers_2","getDeclarationDiagnosticsForFileNoCache","getOptionsDiagnosticsOfConfigFile","isDefaultLib","ignoreNoDefaultLib","processSourceFile","createSyntheticImport","externalHelpersModuleReference","ambientModules","isJavaScriptFile","isExternalModuleFile","jsxImport","collectModuleReferences","collectDynamicImportOrRequireCalls","inAmbientModule","moduleNameExpr","getNodeAtPosition","getContainingChild","libName","referencingFile","getSourceFileFromReferenceWorker","canonicalFileName_1","allowNonTsExtensions","sourceFileNoExtension","sourceFileWithAddedExtension","findSourceFile","addFilePreprocessingFileExplainingDiagnostic","reportFileNamesDifferOnlyInCasingError","existingFile","hasExistingReasonToReportErrorOn","createRedirectSourceFile","redirectTarget","fileIncludeKind","findSourceFileWorker","file_1","addFileToFilesByName","redirectedPath","file_2","addFileIncludeReason","checkedName","isRedirect","checkedAbsolutePath","inputAbsolutePath","processReferencedFiles","processTypeReferenceDirectives","processLibReferenceDirectives","processImportedModules","redirectProject","getProjectReferenceRedirectProject","getProjectReferenceOutputName","packageIdKey","fileFromPackageId","dupFile","pathLowerCase","referencedProject","referencedProjectPath","outputDts","getCommonSourceDirectory_3","projectReferencePath","typeDirectives","hasResolved","processTypeReferenceDirectiveWorker","previousResolution","saveResolution","otherFileText","libReference","unqualifiedLibName","optionsForFile","isFromNodeModulesSearch","isJsFile","isJsFileFromNodeModules","elideImport","shouldAddFile","rootDirectory","allFilesBelongToPath","absoluteRootDirectoryPath","sourceFiles_2","absoluteSourceFilePath","addProgramDiagnosticExplainingFile","fromCache","createDiagnosticForOptionName","outputFile","verifyProjectReferences","rootPaths","files_4","createDiagnosticForOptionPaths","typeOfSubst","createDiagnosticForOptionPathKeyValue","firstNonAmbientExternalModuleSourceFile","firstNonExternalModuleSourceFile","createOptionValueDiagnostic","suppressOutputPathCheck","emitFilesSeen_1","emitFileNames","verifyEmitFilePath","emitFilesSeen","emitFilePath","blockEmittingOfFile","emitFileKey","fileIncludeReasons","locationReason","processReason","fileIncludeReasonDetails","explainIfFileIsRedirect","fileIncludeReasonToDiagnostics","fileIncludeReasonToRelatedInformation","message_2","configFileNode","matchedByFiles","getMatchedFileSpec","matchedByInclude","getMatchedIncludeSpec","referencedResolvedRef_1","referenceInfo","referencesSyntax","getOptionsSyntaxByArrayElementValue","getOptionsSyntaxByValue","parentFile","inputs","createDiagnosticForReference","valueIndex","needCompilerDiagnostic","pathsSyntax","getOptionPathsSyntax","pathsSyntax_1","pathProp","keyProps","onKey","pathsSyntax_2","createOptionDiagnosticInObjectLiteralSyntax","getOptionsSyntaxByName","compilerOptionsObjectLiteralSyntax","getCompilerOptionsObjectLiteralSyntax","syntaxByName","option1","option2","option3","createDiagnosticForOption","key1","props_3","isSameFile","file1","file2","setOfDeclarationDirectories","originalGetDirectories","originalRealpath","handleDirectoryCouldBeSymlink","fileOrDirectoryExistsUsingSource","fileExistsIfProjectReferenceDts","directoryExistsIfProjectReferenceDeclDir","dirPathWithTrailingDirectorySeparator","declDirPath","symlinkCache","isFile","symlinkedDirectory","emitSkippedWithNoDiagnostics","noEmitOnError","directoryStructureHost","resolvedRefOpts","hostOrRef","passedInRef","resolveConfigFileProjectName","needJsx","needAllowJs","needResolveJsonModule","moduleAugmentations_1","aug","augIndex","moduleAugmentations_2","getFileEmitOutput","BuilderState","manyToManyPathMapCount","createManyToManyPathMap","forward","reverse","getKeys","getValues","k","hasKey","deletedKeys","deleteKey","deleteFromMultimap","vSet","existingVSet","addToMultimap","removeEmpty","getReferencedFilesFromImportedModuleSymbol","getReferencedFilesFromImportLiteral","getReferencedFileFromFileName","sourceFileDirectory","getReferencedFiles","declarationSourceFilePaths","addReferencedFile","referencedPath","typeFilePath","addReferenceFromAmbientModule","declarationSourceFile","canReuseOldState","newReferencedMap","oldState","referencedMap","newProgram","disableUseFileVersionAsSignature","exportedModulesMap","hasCalledUpdateShapeSignature","useOldState","version_2","oldInfo","exportedModules","affectsGlobalScope","isFileAffectingGlobalScope","useFileVersionAsSignature","releaseCache","allFilesExcludingDefaultLibraryFile","allFileNames","getFilesAffectedBy","programOfThisState","cacheToUpdateSignature","exportedModulesMapCache","signatureCache","updateShapeSignature","getFilesAffectedByUpdatedShapeWhenModuleEmit","getFilesAffectedByUpdatedShapeWhenNonModuleEmit","updateSignaturesFromCache","updateSignatureOfFile","latestSignature","prevSignature","emitOutput_1","firstDts_1","updateExportedModules","addExportedModule","exportedModulePaths","updateExportedFilesMapFromCache","cacheId","cacheVersion","previousCache","getAllDependencies","getAllFileNames","seenMap","getReferencedByPaths","referencedFilePath","containsOnlyAmbientModules","containsGlobalScopeAugmentation","getAllFilesExcludingDefaultLibraryFile","firstSourceFile","addSourceFile","sourceFileWithUpdatedShape","seenFileNamesMap","currentPath","BuilderProgramKind","hasSameKeys","map1","map2","createBuilderProgramState","semanticDiagnosticsPerFile","changedFilesSet","oldCompilerOptions","canCopySemanticDiagnostics","currentChangedFilePath","affectedSignatures","currentAffectedFilesSignatures","affectedFiles","affectedFilesPendingEmit","affectedFilesPendingEmitKind","affectedFilesPendingEmitIndex","seenAffectedFiles","oldReferencedMap","copyDeclarationFileDiagnostics","copyLibFileDiagnostics","hasReusableDiagnostic","convertToDiagnostics","semanticDiagnosticsFromOldState","addToAffectedFilesPendingEmit","buildInfoEmitPending","convertToDiagnosticRelatedInformation","reportDeprecated","cloneBuilderProgramState","newState","affectedFilesIndex","currentAffectedFilesExportedModulesMap","cleanedDiagnosticsOfLibFiles","seenEmittedFiles","programEmitComplete","assertSourceFileOkWithoutNextAffectedCall","getNextAffectedFile","affectedFile","handleDtsMayChangeOfAffectedFile","nextKey","getNextAffectedFilePendingEmit","seenKind","emitKind","removeSemanticDiagnosticsOf","assumeChangesOnlyAffectDirectDependencies","forEachReferencingModulesOfExportOfAffectedFile","handleDtsMayChangeOf","program_1","options_2","isChangedSignature","newSignature","oldSignature","seenFileAndExportsOfFile","exportedFromPath","forEachFilesReferencingPath","forEachFileAndExportsOfFile","referencingFilePath","doneWithAffectedFile","affected","isPendingEmit","isBuildInfoEmit","toAffectedFileResult","toAffectedFileEmitResult","getSemanticDiagnosticsOfFile","getBinderAndCheckerDiagnosticsOfFile","cachedDiagnostics","fileIdsList","fileNamesToFileIdListId","fileNameToFileId","fileId","toFileId","actualSignature","toFileIdListId","convertToReusableDiagnostics","seenFiles","convertToProgramBuildInfoCompilerOptions","relativeToBuildInfoEnsuringAbsolutePath","fileIds","fileIdListId","optionKey","optionInfo","convertToReusableCompilerOptionValue","convertToReusableDiagnosticRelatedInformation","getBuilderCreationParameters","newProgramOrRootNames","hostOrOptions","oldProgramOrHost","configFileParsingDiagnosticsOrOldProgram","getProgram","createBuilderProgram","backupState","createRedirectedBuilderProgram","restoreState","releaseProgram","SemanticDiagnosticsBuilderProgram","getSemanticDiagnosticsOfNextAffectedFile","EmitAndSemanticDiagnosticsBuilderProgram","emitNextAffectedFile","isPendingEmitFile","pendingAffectedFile","affected_1","savedAffectedFilesPendingEmit","savedAffectedFilesPendingEmitKind","savedAffectedFilesPendingEmitIndex","restorePendingEmitOnHandlingNoEmitSuccess","affectedEmitResult","ignoreSourceFile","sourceFile_1","affectedFilePendingEmit","toBuilderStateFileInfo","fileInfo","createBuildProgramUsingProgramBuildInfo","filePaths","filePathsSetList","toFilePath","toManyToManyPathMap","toFilePathsSet","fileIdsListId","referenceMap","emitOnlyDts","BuilderFileEmit","createSemanticDiagnosticsBuilderProgram","createEmitAndSemanticDiagnosticsBuilderProgram","createAbstractBuilder","newConfigFileParsingDiagnostics","canWatchDirectory","nextDirectorySeparator","pathPartForUserCheck","isNonDirectorySeparatorRoot","search","searchIndex","searchLevels","createResolutionCache","resolutionHost","rootDirForResolution","logChangesWhenResolvingModule","filesWithChangedSetOfUnresolvedImports","filesWithInvalidatedResolutions","filesWithInvalidatedNonRelativeUnresolvedImports","failedLookupChecks","startsWithPathChecks","isInDirectoryChecks","nonRelativeExternalModuleResolutions","resolutionsWithFailedLookups","resolvedFileToResolution","cachedDirectoryStructureHost","getCachedDirectoryStructureHost","resolvedModuleNames","perDirectoryResolvedModuleNames","nonRelativeModuleNameCache","perDirectoryResolvedTypeReferenceDirectives","failedLookupDefaultExtensions","customFailedLookupPaths","directoryWatchesOfFailedLookups","rootPath","rootSplitLength","typeRootsWatches","startRecordingFilesWithChangedResolutions","finishRecordingFilesWithChangedResolutions","startCachingPerDirectoryResolution","clearPerDirectoryResolutions","finishCachingPerDirectoryResolution","removeResolutionsFromProjectReferenceRedirects","removeResolutionsOfFile","invalidateResolutionOfFile","invalidateResolutionsOfFailedLookupLocations","setFilesWithInvalidatedNonRelativeUnresolvedImports","createHasInvalidatedResolution","isFileWithInvalidatedNonRelativeUnresolvedImports","updateTypeRootsWatch","closeTypeRootsWatch","getResolvedTypeReferenceDirective","isInDirectoryPath","collected","forceAllFilesAsInvalidated","watchFailedLookupLocationOfNonRelativeModuleResolutions","primaryResult","getGlobalCache","globalCacheResolutionModuleName","resolveNamesWithLocalCache","perDirectoryCacheWithRedirects","getResolutionWithResolvedFileName","shouldRetryResolution","logChanges","resolutionsInFile","perDirectoryCache","perDirectoryResolution","getCompilationSettings","hasInvalidatedNonRelativeUnresolvedImport","getCurrentProgram","oldRedirect","unmatchedRedirects","seenNamesInFile","names_3","isInvalidated","existingResolution","resolutionInDirectory","getCompilerHost","packagetId","watchFailedLookupLocationsOfExternalModuleResolutions","stopWatchFailedLookupLocationOfResolution","resolutionIsEqualTo","oldResult","newResult","isNodeModulesAtTypesDirectory","getDirectoryToWatchFailedLookupLocation","failedLookupLocation","failedLookupLocationPath","failedLookupPathSplit","failedLookupSplit","nonRecursive","getDirectoryToWatchFromFailedLookupLocationDirectory","subDirectoryPath","subDirectory","isPathWithDefaultFailedLookupExtension","watchFailedLookupLocationOfResolution","setAtRoot","failedLookupLocations_1","toWatch","setDirectoryWatcher","dirWatcher","removeAtRoot","failedLookupLocations_2","removeDirectoryWatcher","watchDirectoryOfFailedLookupLocation","scheduleInvalidateResolutionOfFailedLookupLocation","removeResolutionsOfFileFromCache","invalidateResolutions","canInvalidate","invalidated","resolutions_1","containingFilePath","prevHasChangedAutomaticTypeDirectiveNames","onChangedAutomaticTypeDirectiveNames","filesMap","isCreatingWatchedDirectory","updatedPath","fileIsOpen","dirOfFileOrDirectory","packagePath","scheduleInvalidateResolutionsOfFailedLookupLocations","canInvalidateFailedLookupResolution","locationPath","getDirectoryToWatchFailedLookupLocationFromTypeRoot","typeRootPath","createTypeRootsWatch","watchTypeRootsDirectory","directoryExistsForTypeRootWatch","tr","nodeTypesDirectory","moduleSpecifiers_1","RelativePreference","Ending","getPreferences","importingSourceFile","relativePreference","ending","getEnding","usesJsExtensionOnImports","getPreferencesForUpdate","oldImportSpecifier","updateModuleSpecifier","importingSourceFileName","toFileName","getModuleSpecifierWorker","getNodeModulesPackageName","nodeModulesFileName","preferences","getInfo","modulePaths","getAllModulePaths","modulePath","tryGetModuleNameAsNodeModule","userPreferences","getLocalModuleSpecifier","tryGetModuleSpecifiersFromCache","tryGetModuleSpecifiersFromCacheWorker","moduleSourceFile","getModuleSpecifierCache","getModuleSpecifiersWithCacheInfo","computedWithoutCache","ambient","tryGetModuleNameFromAmbientModule","specifiers","getAllModulePathsWorker","computeModuleSpecifiers","existingSpecifier","moduleSpecifiers_2","nodeModulesSpecifiers","pathsSpecifiers","relativeSpecifiers","importedFileIsInNodeModules","isInNodeModules","modulePaths_1","sourceDirectory","moduleFileName","tryGetModuleNameFromRootDirs","removeExtensionAndIndexPostFix","relativeToBaseUrl","getRelativePathIfInDirectory","importRelativeToBaseUrl","tryGetModuleNameFromPaths","nonRelative","projectDirectory","sourceIsInternal","targetIsInternal","nearestTargetPackageJson","getNearestAncestorDirectoryWithPackageJson","nearestSourcePackageJson","isPathRelativeToParent","comparePathsByRedirectAndNumberOfDirectorySeparators","forEachFileNameOfModule","importingFileName","importedFileName","preferSymlinks","referenceRedirect","importedPath","importedFileNames","shouldFilterIgnoredPaths","result_15","fullImportedFileName","realPathDirectory","symlinkDirectories","symlinkDirectories_1","symlinkDirectory","result_16","importingFilePath","importedFilePath","setModulePaths","importedFileFromNodeModules","out_directory_1","sortedPaths","_loop_31","pathsInDirectory","directoryStart","newDirectory","state_9","remainingPaths","ambientModuleDeclareCandidates","topNamespace","getTopNamespace","originalExportSymbol","ambientModuleDeclare","relativeToBaseUrlWithIndex","patternText_1","matchedStar","normalizedTargetPath","getPathRelativeToRootDirs","normalizedSourcePath","packageNameOnly","getNodeModulePathParts","isPackageRootPath","packageRootIndex","moduleFileNameForExtensionless","tryDirectoryWithPackageJson","moduleFileToTry","packageRootPath","getExtensionlessFileName","globalTypingsCacheLocation","getGlobalTypingsCacheLocation","pathToTopLevelNodeModules","topLevelNodeModulesIndex","nodeModulesDirectoryName","topLevelPackageNameIndex","mainFileRelative","main","mainExportFile","fullModulePathWithoutExtension","fileNameIndex","tryGetAnyFileFromPath","isMixedContent","extensions_3","fullPath","States","partStart","partEnd","noExtension","getJSExtensionForFile","tryGetJSExtensionForFile","sysFormatDiagnosticsHost","createDiagnosticReporter","pretty","clearScreenIfNotWatchingForFileChanges","clearScreen","preserveWatchOutput","screenStartingMessageCodes","getPlainDiagnosticFollowingNewLines","getLocaleTimeString","toLocaleTimeString","timeZone","createWatchStatusReporter","parseConfigFileWithSystem","reportUnrecoverableDiagnostic","getErrorCountForSummary","getWatchErrorSummaryDiagnosticMessage","errorCount","getErrorSummaryText","explainFiles","listFilesOnly","reasons","fileNameConvertor","fileSpec","includeSpec","referenceText","isOutput","referencedResolvedRef","emitFilesAndReportErrors","reportSummary","isListFilesOnly","configFileParsingDiagnosticsLength","emitDiagnostics","currentDir_1","filepath","emitFilesAndReportErrorsAndGetExitStatus","DiagnosticsPresent_OutputsSkipped","DiagnosticsPresent_OutputsGenerated","Success","createWatchHost","reportWatchStatus","onWatchStatusChange","createWatchFactory","TriggerOnly","createCompilerHostFromProgramHost","hostGetNewLine","charset","setGetSourceFileAsHashVersioned","originalGetSourceFile","createProgramHost","createWatchCompilerHost","afterProgramCreate","createWatchCompilerHostOfConfigFile","diagnosticReporter","createWatchCompilerHostOfFilesAndCompilerOptions","rootFiles","performIncrementalCompilation","createIncrementalCompilerHost","createIncrementalProgram","exitStatus","reportErrorSummary","afterProgramEmitAndDiagnostics","noopFileWatcher","WatchType","ConfigFile","ExtendedConfigFile","SourceFile","MissingFile","WildcardDirectory","FailedLookupLocations","TypeRoots","ConfigFileOfReferencedProject","ExtendedConfigOfReferencedProject","WildcardDirectoryOfReferencedProject","PackageJson","readBuilderProgram","rootFilesOrConfigFileName","projectReferencesOrWatchOptionsToExtend","watchOptionsOrExtraFileExtensions","createWatchProgram","reloadLevel","missingFilesMap","packageJsonMap","watchedWildcardDirectories","timerToUpdateProgram","timerToInvalidateFailedLookupResolutions","parsedConfigs","sharedExtendedConfigFileWatchers","missingFilePathsRequestedForRelease","changesAffectResolution","sourceFilesCache","hasChangedCompilerOptions","optionsToExtendForConfigFile","canConfigFileJsonReportNoInputFiles","hasChangedConfigFileParsingErrors","parseConfigFileHost","updateNewLine","configFileParsingResult","setConfigFileParsingResult","reportWatchDiagnostic","parseConfigFile","configFileWatcher","scheduleProgramReload","getNewSourceFile","getVersionedSourceFileByPath","onInvalidatedResolution","scheduleProgramUpdate","resolutionCache","userProvidedResolution","synchronizeProgram","watchConfigFileWildCardDirectories","updateExtendedConfigFilesWatches","getCurrentBuilderProgram","updateProgram","updateRootFileNames","clearInvalidateResolutionsOfFailedLookupLocations","fileWatcher","watchedDirectories","createNewProgram","needsUpdateInTypeRootWatch","packageCacheEntries","watchMissingFilePath","watchPackageJsonLookupPath","missingFilePathsRequestedForRelease_1","isFileMissingOnHost","hostSourceFile","isFilePresenceUnknownOnHost","watchFilePath","onSourceFileChange","nextSourceFileVersion","_oldOptions","hasSourceFileByPath","hostSourceFileInfo","invalidateResolutionsOfFailedLookup","updateProgramWithWatchStatus","Full","Partial","reloadFileNamesFromConfigFile","reloadConfigFile","configPath","parsedCommandLine","getParsedCommandLineFromConfigFileHost","watchReferencedProject","watchType","updateCachedSystemWithFile","onMissingFileChange","onPackageJsonChange","watchWildcardDirectory","forProjectPath","UpToDateStatusType","BuildResultFlags","InvalidatedProjectKind","BuildStep","minimumDate","maximumDate","getOrCreateValueFromConfigFileMap","configFileMap","createT","getOrCreateValueMapFromConfigFileMap","newer","date1","date2","isCircularBuildOrder","buildOrder","getBuildOrderFromAnyBuildOrder","anyBuildOrder","createBuilderStatusReporter","createSolutionBuilderHostBase","reportSolutionBuilderStatus","setModifiedTime","date","deleteFile","createSolutionBuilderHost","createSolutionBuilderWithWatchHost","watchHost","getCompilerOptionsOfBuildOptions","createSolutionBuilder","createSolutionBuilderWorker","createSolutionBuilderWithWatch","baseWatchOptions","createSolutionBuilderState","hostOrHostWithWatch","hostWithWatch","baseCompilerOptions","projectCompilerOptions","toResolvedConfigFilePath","loader_3","loader_4","resolvedConfigFilePaths","configFileCache","projectStatus","buildInfoChecked","builderPrograms","projectPendingBuild","projectErrorsReported","allProjectBuildPending","needsSummary","watchAllProjectsPending","currentInvalidatedProject","allWatchedWildcardDirectories","allWatchedInputFiles","allWatchedConfigFiles","allWatchedExtendedConfigFiles","allWatchedPackageJsonFiles","lastCachedPackageJsonLookups","timerToBuildInvalidatedProject","reportFileChangeDetected","isParsedCommandLine","getCachedParsedConfigFile","resolveProjectName","createBuildOrder","circularDiagnostics","temporaryMarks","permanentMarks","circularityReportStack","roots_1","inCircularContext","projPath","resolvedRefPath","getBuildOrder","createStateBuildOrder","currentProjects","noopOnDelete","existingMap","getBuildOrderFor","onlyReferences","resolvedProject","buildOrderFromState","projectPath_1","projectIndex","enableCache","disableCache","originalReadFileWithCache","clearProjectStatus","addProjToQueue","proj","setupInitialBuild","doneInvalidatedProject","createUpdateOutputFileStampsProject","updateOutputFileStampsPending","UpdateOutputFileStamps","updateOutputFileStatmps","updateOutputTimestamps","createBuildOrUpdateInvalidedProject","invalidatedProjectOfBundle","Build","CreateProgram","EmitBundle","getBuilderProgram","withProgramOrUndefined","withProgramOrEmptyArray","getCustomTransformers","executeSteps","SemanticDiagnostics","EmitBuildInfo","emitBundle","Done","reportStatus","QueueReferencingProjects","reportAndStoreErrors","getOldProgram","handleDiagnostics","errorFlags","buildErrors","getSyntaxDiagnostics","SyntaxErrors","TypeErrors","declDiagnostics","reportDeclarationDiagnostics","DeclarationEmitErrors","resultFlags","DeclarationOutputUnchanged","newestDeclarationFileContentChangedTime","anyDtsChanged","emittedOutputs","priorChangeTime","finishEmit","EmitErrors","listEmittedFile","afterProgramDone","priorNewestUpdateTime","newestDeclarationFileContentChangedTimeIsMaximumDate","oldestOutputFileName","updateOutputTimestampsWorker","UpToDate","UpdateBundle","refName","relName","BuildInvalidatedProjectOfBundle","till","currentStep","SyntaxDiagnostics","queueReferencingProjects","needsBuild","OutOfDateWithPrepend","getNextInvalidatedProject","reportQueue","reportBuildQueue","watchConfigFile","watchExtendedConfigFiles","watchWildCardDirectories","watchInputFiles","watchPackageJsonFiles","getUpToDateStatus","verboseReportProjectStatus","UpToDateWithUpstreamTypes","UpstreamBlocked","ContainerOnly","upstreamProjectBlocked","upstreamProjectName","reportParseConfigFileDiagnostic","afterEmitBundle","canEmitBuildInfo","Unbuildable","checkConfigFileUpToDateStatus","oldestOutputFileTime","tsconfigTime","OutOfDateWithSelf","outOfDateOutputFileName","newerInputFileName","getUpToDateStatusWorker","newestInputFileName","newestInputFileTime","inputFile","inputTime","missingOutputFileName","newestOutputFileName","newestOutputFileTime","isOutOfDateWithInputs","outputs_1","outputTime","outputModifiedTime","upstreamChangedProject","pseudoUpToDate","usesPrepend","ComputingUpstream","refStatus","UpstreamOutOfDate","OutOfDateWithUpstream","newerProjectName","OutputMissing","configStatus","extendedConfigStatus","dependentPackageFileStatus","TsVersionOutputOfDate","prior","actual","verboseMessage","skipOutputs","reportVerbose","outputs_2","AnyErrors","nextProject","nextProjectPath","nextProjectConfig","InvalidProject_OutputsSkipped","successfulProjects","invalidatedProject","startWatching","ProjectReferenceCycle_OutputsSkipped","filesToDelete","buildOrder_1","inputFileNames","outputs_3","invalidateProject","invalidateProjectAndScheduleBuilds","scheduleBuildInvalidatedProject","buildNextInvalidatedProject","projectConfigFilePath","_path","_input","cfg","stopWatching","watchedPacageJsonFiles","buildReferences","cleanReferences","getUpToDateStatusOfProject","getAllParsedConfigs","canReportSummary","totalErrors","singleProjectErrors","buildQueue","reportUpToDateStatus","server","hasArgument","argumentName","findArgument","nowString","getHours","getMinutes","getSeconds","getMilliseconds","ActionSet","ActionInvalidate","ActionPackageInstalled","EventTypesRegistry","EventBeginInstallTypes","EventEndInstallTypes","EventInitializationFailed","Arguments","GlobalCacheLocation","LogFile","EnableTelemetry","TypingSafeListLocation","TypesMapLocation","NpmLocation","ValidateDefaultNpmLocation","JsTyping","isTypingUpToDate","cachedTyping","availableTypingVersions","availableVersion","unprefixedNodeCoreModuleList","nonRelativeModuleNameForTypingCache","nodeCoreModules","loadSafeList","safeListPath","loadTypesMap","typesMapPath","simpleMap","discoverTypings","projectRootPath","safeList","packageNameToTypingLocation","unresolvedImports","typesRegistry","cachedTypingPaths","newTypingNames","filesToWatch","inferredTypings","addInferredTypings","possibleSearchDirs","searchDir","getTypingNamesFromJson","bowerJsonPath","bowerComponentsPath","getTypingNamesFromPackagesFolder","nodeModulesPath","disableFilenameBasedTypeAcquisition","getTypingNamesFromSourceFileNames","module_1","typing","registryEntry","typingLocation","exclude_1","excludeTypingName","didDelete","addInferredTyping","typingName","typingNames","jsonPath","jsonConfig","jsonTypingNames","devDependencies","optionalDependencies","peerDependencies","fromFileNames","inferredTypingName","cleanedTypingName","hasJsxFile","packagesFolderPath","packageNames","fileNames_1","normalizedFileName","packageJson","_requiredBy","ownTypes","prefixedNodeCoreModuleList","nodeCoreModuleList","NameValidationResult","maxPackageNameLength","validatePackageName","validatePackageNameWorker","supportScopedPackage","scopeResult","isScopeName","encodeURIComponent","renderPackageNameValidationFailure","renderPackageNameValidationFailureWorker","IndentStyle","SemicolonPreference","getDefaultFormatCodeSettings","newLineCharacter","indentSize","tabSize","convertTabsToSpaces","indentStyle","Smart","insertSpaceAfterConstructor","insertSpaceAfterCommaDelimiter","insertSpaceAfterSemicolonInForStatements","insertSpaceBeforeAndAfterBinaryOperators","insertSpaceAfterKeywordsInControlFlowStatements","insertSpaceAfterFunctionKeywordForAnonymousFunctions","insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis","insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets","insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces","insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces","insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces","insertSpaceBeforeFunctionParenthesis","placeOpenBraceOnNewLineForFunctions","placeOpenBraceOnNewLineForControlBlocks","semicolons","Ignore","trimTrailingWhitespace","ScriptSnapshot","StringScriptSnapshot","getLength","getChangeRange","fromString","PackageJsonDependencyGroup","PackageJsonAutoImportPreference","LanguageServiceMode","emptyOptions","SemanticClassificationFormat","CompletionTriggerKind","InlayHintKind","HighlightSpanKind","testFormatSettings","SymbolDisplayPartKind","OutliningSpanKind","OutputFileType","EndOfLineState","TokenClass","ScriptElementKind","ScriptElementKindModifier","ClassificationTypeNames","ClassificationType","getMeaningFromDeclaration","getMeaningFromLocation","getAdjustedReferenceLocation","isInRightSideOfInternalImportEqualsDeclaration","getMeaningFromRightHandSideOfImportEquals","isTypeReference","isNamespaceReference","isQualifiedNameNamespaceReference","isPropertyAccessNamespaceReference","isLastClause","isCallExpressionTarget","includeElementAccess","skipPastOuterExpressions","isCalleeWorker","selectExpressionOfCallOrNewExpressionOrDecorator","isNewExpressionTarget","isCallOrNewExpressionTarget","isTaggedTemplateTag","selectTagOfTaggedTemplateExpression","isDecoratorTarget","isJsxOpeningLikeElementTagName","selectTagNameOfJsxOpeningLikeElement","calleeSelector","climbPastPropertyOrElementAccess","climbPastPropertyAccess","isRightSideOfPropertyAccess","isArgumentExpressionOfElementAccess","getTargetLabel","referenceNode","labelName","hasPropertyAccessExpressionWithName","isJumpStatementTarget","isLabelOfLabeledStatement","isLabelName","isTagName","isRightSideOfQualifiedName","isNameOfModuleDeclaration","isNameOfFunctionDeclaration","isLiteralNameOfPropertyDeclarationOrIndexAccess","isExpressionOfExternalModuleImportEqualsDeclaration","getContainerNode","getNodeKind","getKindOfVariableDeclaration","rightKind","isThis","SemanticMeaning","tripleSlashDirectivePrefixRegex","getLineStartPositionForPosition","rangeContainsRange","r1","r2","startEndContainsRange","rangeContainsRangeExclusive","rangeContainsPositionExclusive","rangeContainsPosition","rangeContainsStartEnd","rangeOverlapsWithStartEnd","startEndOverlapsWithStartEnd","nodeOverlapsWithStartEnd","getStart","positionBelongsToNode","isCompletedNode","nodeEndsWith","hasChildOfKind","unaryWordExpression","expectedLastToken","getChildren","findListItemInfo","findContainingList","listItemIndex","findChildOfKind","syntaxList","isDefaultModifier","isClassKeyword","isFunctionKeyword","getAdjustedLocationForClass","defaultModifier","classKeyword","getAdjustedLocationForFunction","functionKeyword","getAncestorTypeNode","lastTypeNode","getContextualTypeOrAncestorTypeNodeType","isEqualityOperatorKind","ancestorTypeNode","getAdjustedLocationForDeclaration","forRename","getAdjustedLocationForImportDeclaration","onlyBinding","getAdjustedLocationForExportDeclaration","getAdjustedLocationForHeritageClause","getAdjustedLocation","getAdjustedRenameLocation","getTouchingPropertyName","getTouchingToken","includePrecedingTokenAtEndPosition","getTokenAtPositionWorker","getTokenAtPosition","allowPositionInLeadingTrivia","includeEndPosition","getFullStart","getEnd","previousToken","findPrecedingToken","findFirstNonJsxWhitespaceToken","tokenAtPosition","isWhiteSpaceOnlyJsxText","findNextToken","findTokenOnLeftOfPosition","shouldDiveInChildNode","nodeHasTokens","excludeJsdoc","isNonWhitespaceToken","lookInPreviousChild","findRightmostChildNodeWithTokens","findRightmostToken","exclusiveStartPosition","isInString","isInsideJsxElementOrAttribute","isInTemplateString","isInJSXText","isInsideJsxElement","isInsideJsxElementTraversal","findPrecedingMatchingToken","matchingTokenKind","closeTokenText","matchingTokenText","tokenFullStart","bestGuessIndex","nodeAtGuess","tokenKind","remainingMatchingTokens","preceding","removeOptionality","isOptionalExpression","isPossiblyTypeArgumentPosition","getPossibleTypeArgumentsInfo","called","getPossibleGenericSignatures","nTypeArguments","typeArgumentCount","getConstructSignatures","getCallSignatures","tokenIn","remainingLessThanTokens","isInComment","formatting","getRangeOfEnclosingComment","hasDocComment","getWidth","getNodeModifiers","excludeFlags","getTypeArgumentOrTypeParameterList","isComment","isStringOrRegularExpressionOrTemplateLiteral","isPunctuation","isInsideTemplateLiteral","isAccessibilityModifier","cloneCompilerOptions","isArrayLiteralOrObjectLiteralDestructuringPattern","isInReferenceComment","isInReferenceCommentWorker","isInNonReferenceComment","shouldBeReference","getReplacementSpanForContextToken","contextToken","createTextSpanFromStringLiteralLikeContent","createTextSpanFromNode","createTextRangeFromNode","createTextSpanFromRange","createTextRangeFromSpan","createTextChangeFromStartLength","createTextChange","isTypeKeyword","typeKeywords","isTypeKeywordToken","isExternalModuleSymbol","nodeSeenTracker","getSnapshotText","snap","repeatString","skipConstraint","getConstraint","getNameFromPropertyName","programContainsModules","programContainsEs6Modules","compilerOptionsIndicateEs6Modules","createModuleSpecifierResolutionHost","getModuleSpecifierResolverHost","makeImportIfNecessary","defaultImport","namedImports","quotePreference","makeImport","makeStringLiteral","quotePreferenceFromString","getQuotePreference","firstModuleSpecifier","getQuoteFromPreference","qp","symbolNameNoDefault","escaped","symbolEscapedNameNoDefault","isModuleSpecifierLike","isObjectBindingElementWithoutPropertyName","getPropertySymbolFromBindingElement","getParentNodeInSpan","spanContainsNode","findModifier","insertImports","blankLineBetween","importKindPredicate","existingImportStatements","sortedNewImports","OrganizeImports","compareImportsOrRequireStatements","importsAreSorted","sortedNewImports_1","newImport","insertionIndex","getImportDeclarationInsertionIndex","leadingTriviaOption","textChanges","LeadingTriviaOption","Exclude","insertNodeBefore","prevImport","insertNodeAfter","lastExistingImport","insertNodesAfter","insertNodesAtTopOfFile","getTypeKeywordOfTypeOnlyImport","getChildAt","textSpansEqual","documentSpansEqual","textSpan","forEachUnique","isTextWhiteSpaceLike","isFirstDeclarationOfSymbolParameter","QuotePreference","displayPartWriter","getDisplayPartWriter","displayParts","absoluteMaximumLength","resetWriter","unknownWrite","writeKind","finalText","displayPart","space","punctuation","stringLiteral","writeIndent","indentString","symbolPart","lineBreakPart","displayPartKind","enumMemberName","interfaceName","typeParameterName","aliasName","spacePart","keywordPart","punctuationPart","operatorPart","parameterNamePart","propertyNamePart","textOrKeywordPart","textPart","typeAliasNamePart","typeParameterNamePart","linkTextPart","linkText","linkNamePart","linkName","linkPart","buildLinkParts","getNewLineOrDefaultFromHost","formatSettings","lineBreak","mapToDisplayParts","writeDisplayParts","typeToDisplayParts","typechecker","symbolToDisplayParts","signatureToDisplayParts","isImportOrExportSpecifierName","getScriptKind","getSymbolTarget","isAliasSymbol","getUniqueSymbolId","getFirstNonSpaceCharacterPosition","getPrecedingNonSpaceCharacterPosition","getSynthesizedDeepClone","getSynthesizedDeepCloneWorker","suppressLeadingAndTrailingTrivia","getSynthesizedDeepCloneWithReplacements","replaceNode","nodeClone","nodesClone","getSynthesizedDeepClonesWithReplacements","getSynthesizedDeepClones","suppressLeadingTrivia","suppressTrailingTrivia","addEmitFlagsRecursively","getFirstChild","copyComments","hasLeadingLineBreak","copyLeadingComments","copyTrailingAsLeadingComments","copyTrailingComments","getChild","getUniqueName","getRenameLocation","edits","renameFilename","preferLastLocation","lastPos","edits_1","textChanges_2","textChanges_1","change","indexInTextChange","commentKind","getAddCommentsFunction","htnl","needsParentheses","getContextualTypeFromParent","getSwitchedType","quoted","isStringLiteralOrTemplate","hasIndexSignature","getStringIndexType","getNumberIndexType","caseClause","getTypeNodeIfAccessible","enclosingScope","typeIsAccessible","notAccessible","syntaxRequiresTrailingCommaOrSemicolonOrASI","syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI","syntaxRequiresTrailingModuleBlockOrSemicolonOrASI","syntaxRequiresTrailingSemicolonOrASI","nodeIsASICandidate","getLastToken","topNode","positionIsASICandidate","contextAncestor","syntaxMayBeASICandidate","probablyUsesSemicolons","withSemicolon","withoutSemicolon","nStatementsToObserve","tryGetDirectories","tryIOAndConsumeErrors","tryFileExists","tryDirectoryExists","tryAndIgnoreErrors","toApply","findPackageJsons","startDirectory","stopDirectory","currentConfigPath","findPackageJson","getPackageJsonsVisibleToFile","packageJsons","packageJsonFileName","createPackageJsonInfo","dependencyKeys","stringContent","tryParseJson","dependencyKeys_1","dependencyMap","parseable","dependencyName","inGroups","deps","createPackageJsonImportFilter","usesNodeCoreModules","allowsImportingAmbientModule","allowsImportingSourceFile","allowsImportingSpecifier","moduleSpecifierIsCoveredByPackageJson","getNodeModuleRootSpecifier","packageJsons_1","moduleSpecifierResolutionHost","declaringSourceFile","declaringNodeModuleName","getNodeModulesPackageNameFromFileName","declaredModuleSpecifier","isAllowedCoreNodeModulesImport","consumesNodeCoreModules","fullSpecifier","isInsideNodeModules","isDiagnosticWithLocation","findDiagnosticForNode","sortedFileDiagnostics","getDiagnosticsWithinSpan","getRefactorContextSpan","startPosition","endPosition","mapOneOrMany","valueOrArray","firstOrOnly","getNameForExportedSymbol","codefix","moduleSymbolToValidIdentifier","getSymbolParentOrFail","inJS","stringContainsAt","haystack","needle","needleLength","startsWithUnderscore","isGlobalDeclaration","isNonGlobalDeclaration","isDeprecatedDeclaration","shouldUseUriStyleNodeCoreModules","decisionFromFile","ANONYMOUS","createCacheableExportInfoMap","usableByFileName","exportInfoId","exportInfo","isUsableByFile","importingFile","moduleFile","isFromPackageJson","namedSymbol","importedName","storedSymbol","storedModuleSymbol","rehydrateCachedInfo","parseKey","ambientModuleName","releaseSymbols","onFileChanged","typeAcquisitionEnabled","fileIsGlobalOnly","ambientModuleDeclarationsAreEqual","cachedSymbol","cachedModuleSymbol","getPackageJsonAutoImportProvider","unquoted","moduleKey","createSymbolKey","oldFileStatementIndex","newFileStatementIndex","isMatchingModuleDeclaration","isImportableFile","packageJsonFilter","moduleSpecifierCache","isAutoImportable","globalTypingsCache","hasImportablePath","toFile","isImportablePath","setIsAutoImportable","fromPath","globalCachePath","toNodeModules","toNodeModulesParent","forEachExternalModuleToImportFrom","useAutoImportProvider","forEachExternalModule","autoImportProvider","allSourceFiles","allSourceFiles_1","getExportInfoMap","getCachedExportInfoMap","moduleCount","seenExports","defaultInfo","getDefaultLikeExportInfo","isImportableSymbol","getDefaultLikeExportWorker","getDefaultExportInfoWorker","symbolForMeaning","getNameForExportDefault","aliased","ImportKind","ExportKind","createClassifier","getClassificationsForLine","lexState","syntacticClassifierAbsent","convertClassificationsToResult","getEncodedLexicalClassifications","lastNonTriviaToken","templateStack","getPrefixFromLexState","pushTemplate","endOfLineState","spans","angleBracketStack","handleToken","pushEncodedClassification","classFromKind","getNewEndOfLineState","noRegexTable","lastTemplateStackToken","canFollow","lastOnTemplateStack","lastCharIndex","numBackslashes","classification","classifications","dense","lastEnd","whitespaceLength_1","Whitespace","convertClassification","whitespaceLength","finalLexState","Comment","Keyword","NumberLiteral","BigIntLiteral","Operator","StringLiteral","Punctuation","keyword1","keyword2","isBinaryExpressionOperatorToken","isPrefixUnaryExpressionOperatorToken","getSemanticClassifications","convertClassificationsToSpans","getEncodedSemanticClassifications","checkForClassificationCancellation","classifySymbol","pushClassification","meaningAtPosition","hasValueSideModule","getClassificationTypeName","classificationType","getSyntacticClassifications","getEncodedSyntacticClassifications","spanStart","spanLength","triviaScanner","mergeConflictScanner","processElement","classifyLeadingTriviaAndGetTokenStart","classifyComment","classifyDisabledMergeCode","docCommentAndDiagnostics","classifyJSDocComment","tryClassifyTripleSlashComment","pushCommentRange","docComment","processJSDocParameterTag","processJSDocTemplateTag","tripleSlashXMLCommentRegEx","attributeRegex","attrText","attrPos","attrMatch","newAttrPos","classifyDisabledCodeToken","classifyTokenType","tryClassifyNode","classifiedElementName","tryClassifyJsxElementName","tokenStart","tokenWidth","classifier","v2020","getSemanticTokens","resultTokens","collector","typeIdx","modifierSet","collectTokens","inJSXElement","prevInJSXElement","inImportClause","parentIsDeclaration","tokenFromDeclarationMapping","reclassifyByType","isLocalDeclaration","getDeclarationForBindingElement","isExpressionInCallExpression","TokenEncodingConsts","TokenType","TokenModifier","Completions","StringCompletions","getStringLiteralCompletions","getTripleSlashReferenceCompletion","convertPathCompletions","getStringLiteralCompletionEntries","convertStringLiteralCompletions","completion","optionalReplacementSpan","getCompletionEntriesFromSymbols","isGlobalCompletion","isMemberCompletion","isNewIdentifierLocation","kindModifiers","sortText","SortText","LocationPriority","replacementSpan","isNewIdentifier","getStringLiteralCompletionDetails","completions","stringLiteralCompletionDetails","createCompletionDetails","kindModifiersFromExtension","createCompletionDetailsForSymbol","pathCompletions","StringLiteralCompletionKind","IncludeExtensionsOption","walkUpParentheses","typeReference_1","getStringLiteralTypes","stringLiteralCompletionsFromProperties","getStringLiteralCompletionsFromModuleNames","alreadyUsedTypes_1","getAlreadyUsedTypesInStringLiteralUnion","stringLiteralCompletionsForObjectLiteral","fromContextualType","isRequireCallArgument","argumentInfo","SignatureHelp","getArgumentInfoForCompletions","getStringLiteralCompletionsFromSignature","uniques","argumentIndex","getApparentProperties","completionsType","getPropertiesForObjectExpression","nameAndKind","directoryResult","addReplacementSpans","textStart","getDirectoryFragmentTextSpan","wholeSpan","getStringLiteralCompletionsFromModuleNamesWorker","scriptPath","scriptDirectory","isPathRelativeToScript","getCompletionEntriesForRelativeModules","getCompletionEntriesForNonRelativeModules","getExtensionOptions","includeExtensionsOption","getSupportedExtensionsForModuleResolution","includeExtensions","extensionOptions","getCompletionEntriesForDirectoryFragmentWithRootDirs","getCompletionEntriesForDirectoryFragment","getBaseDirectoriesFromRootDirs","relativeDirectory","baseDirectories","foundFiles","foundFileName","outputExtension","foundFile","directories_1","versionResult","addCompletionEntriesFromPaths","fileExtensions","getCompletionsForPathMapping","projectDir","fragmentDirectory","getFragmentDirectory","getAmbientModuleCompletions","ambientName","getCompletionEntriesFromTypings","foundGlobal","enumerateNodeModulesVisibleToScript","nodeModules","containsSlash","justPathMappingName","pathPrefix","remainingFragment","getModulesForPathsPattern","normalizedPrefix","normalizedPrefixDirectory","normalizedPrefixBase","fragmentHasPath","expandedPrefixDirectory","normalizedSuffix","completePrefix","includeGlob","trimPrefixAndSuffix","withoutStartAndEnd","removeLeadingDirectorySeparator","nonRelativeModuleNames","moduleNameWithSeparator_1","tripleSlashDirectiveFragmentRegex","toComplete","getCompletionEntriesFromDirectories","typesDir","typeDirectoryName","nodeModulesDependencyKeys_1","nodeModulesDependencyKeys","slashIndex","slashCharCode","SortTextId","CompletionSource","SymbolOriginInfoKind","KeywordCompletionFilters","GlobalsSearch","CompletionDataKind","originIsThisType","originIsSymbolMember","originIsExport","originIsResolvedExport","originIncludesSymbolName","originIsPackageJsonImport","originIsPromise","originIsNullableMember","resolvingModuleSpecifiers","logPrefix","isForImportStatementCompletion","resolutionLimitExceeded","ambientCount","resolvedCount","resolvedFromCacheCount","cacheAttemptCount","hitRateMessage","toFixed","isFromAmbientModule","getModuleSpecifierForBestExportInfo","shouldResolveModuleSpecifier","allowIncompleteCompletions","moduleSpecifierResolutionLimit","shouldGetModuleSpecifierFromCache","moduleSpecifierResolutionCacheAttemptLimit","computedWithoutCacheCount","getCompletionsAtPosition","triggerCharacter","completionKind","getRelevantTokens","isValidTrigger","includeCompletionsForImportStatements","includeCompletionsWithInsertText","incompleteCompletionsCache","getIncompleteCompletionsCache","incompleteContinuation","continuePreviousIncompleteResponse","stringCompletions","getLabelCompletionAtPosition","completionData","getCompletionData","isUncheckedFile","response","completionInfoFromData","jsdocCompletionInfo","JsDoc","getJSDocTagNameCompletions","getJSDocTagCompletions","getJSDocParameterNameCompletions","specificKeywordCompletionInfo","keywords","previousResponse","lowerCaseTokenText","exportMap","autoImportProviderChecker","newEntries","hasAction","charactersFuzzyMatchInString","getAutoImportSymbolFromCompletionEntryData","originToCompletionEntryData","getSourceFromOrigin","sourceDisplay","GlobalsOrKeywords","getOptionalReplacementSpan","isInSnippetScope","propertyAccessToConvert","keywordFilters","symbolToOriginInfoMap","recommendedCompletion","isJsxInitializer","isTypeOnlyLocation","isJsxIdentifierExpected","importCompletionNode","insideJsDocTagTypeExpression","symbolToSortTextIdMap","hasUnresolvedAutoImports","completionInfo","getJsxClosingTagCompletion","uniqueNames","getJSCompletionEntries","entryNames","getKeywordCompletions","keywordEntry","createCompletionEntryForLiteral","isMemberCompletionKind","jsxClosingElement","hasClosingAngleBracket","closingTag","fullClosingTag","getNameTable","realName","JavascriptIdentifiers","isFromUncheckedFile","completionNameForLiteral","createCompletionEntry","needsConvertPropertyAccess","useSemicolons","insertText","isSnippet","insertQuestionDot","useBraces","quotePropertyName","precedingToken","awaitText","getInsertTextAndReplacementSpanForImportCompletion","includeCompletionsWithSnippetText","SymbolDisplay","getSymbolKind","getSymbolModifiers","isRecommended","isRecommendedCompletionMatch","isPackageJsonImport","isImportStatementCompletion","quotedModuleSpecifier","tabStop","importKind","getImportKind","ThisProperty","jsxIdentifierExpected","getVariableDeclaration","getCompletionEntryDisplayNameForSymbol","shouldIncludeSymbol","sortTextId","isDeprecated","shouldShadowLaterSymbols","symbolOrigin","symbolCanBeReferencedAtTypeLocation","getLabelStatementCompletions","getSymbolCompletionFromEntryId","entryId","autoImport","includeCompletionsForModuleExports","request","getCompletionEntryDetails","formatContext","symbolCompletion","getJSDocTagNameCompletionDetails","getJSDocTagCompletionDetails","getJSDocParameterNameCompletionDetails","createSimpleDetails","getCompletionEntryCodeActionsAndSourceDisplay","codeActions","numericLiteral","allKeywordsCompletions","kind2","getSymbolDisplayPartsDocumentationAndSymbolKind","documentation","symbolKind","previousToken_1","getImportCompletionNode","getImportCompletionAction","codeAction","getCompletionEntrySymbol","getRecommendedCompletion","getFirstSymbolInChain","argInfo","isModuleSymbol","detailsEntryId","insideComment","getJsDocTagAtPosition","isTagWithTypeExpression","isCurrentlyEditingNode","tokens","isRightOfDot","isRightOfQuestionDot","isRightOfOpenTag","isStartingCloseTag","importCompletionCandidate","isCompletionListBlocker","leftmostAccessExpression","getChildCount","getFirstToken","binaryExpressionMayBeOpenTag","semanticStart","isNonContextualObjectLiteral","seenPropertySymbols","isTypeOnlyCompletion","getModuleSpecifierResolutionHost","getTypeScriptMemberSymbols","tryGetGlobalSymbols","tagSymbol","isLiteral","isImportType","isTypeLocation","isRhsOfImportDeclaration","isNamespaceName","isValidValueAccess_1","isValidTypeAccess_1","isValidAccess","exportedSymbols_1","canCorrectToQuestionDot","includeAutomaticOptionalChainCompletions","addTypeProperties","insertAwait","getPropertiesForCompletion","addPropertySymbol","leftMostName","getLeftMostName","nameSymbol","firstAccessibleSymbol","getNullableSymbolOriginInfoKind","addSymbolOriginInfo","addSymbolSortInfo","isStaticProperty","tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols","tryGetObjectLikeCompletionSymbols","tryGetImportCompletionSymbols","tryGetImportOrExportClauseCompletionSymbols","tryGetLocalNamedExportCompletionSymbols","tryGetConstructorCompletion","tryGetClassLikeCompletionSymbols","tryGetJsxCompletionSymbols","getGlobalCompletions","tryGetConstructorLikeCompletionContainer","jsxContainer","tryGetContainingJsxElement","attrsType","filterJsxAttributes","setSortTextToOptionalMember","collectAutoImports","tryGetFunctionLikeBodyCompletionContainer","isNewIdentifierDefinitionLocation","adjustedPosition","scopeNode","getScopeNode","isSnippetScope","symbolMeanings","isProbablyGlobalType","shouldOfferImportCompletions","isContextTokenValueLocation","isContextTokenTypeLocation","parentKind","packageJsonAutoImportProvider","isCompletionDetailsMatch","defaultExportInfo","isImportableExportInfo","exportInfo_1","pushAutoImportSymbol","initialToken","scope","isInStringOrRegularExpressionOrTemplateLiteral","isSolelyIdentifierDefinitionLocation","isDotOfNumericLiteral","isInJsxText","containingNodeKind","keywordForNode","tryGetTypeLiteralNode","intersectionTypeNode","containerTypeNode","containerExpectedType","getConstraintOfTypeArgumentProperty","containerActualType","existingMembers","existingMemberEscapedNames","typeMembers","objectLikeContainer","tryGetObjectLikeCompletionContainer","tryGetObjectLiteralContextualType","hasStringIndexType","hasNumberIndextype","rootDeclaration","canGetType","typeForObject_1","containerClass_1","filterObjectMembersList","namedImportsOrExports","moduleSpecifierSymbol","namedExports","localsContainer","tryGetObjectTypeDeclarationCompletionContainer","classElement","classElementModifierFlags","filterClassMembersList","isConstructorParameterCompletion","prev_1","isVariableDeclarationListButNotTypeArgument","isFunctionLikeButNotConstructor","isFromObjectTypeDeclaration","isClassMemberCompletionKeyword","ancestorClassLike","isPreviousPropertyDeclarationTerminated","ancestorPropertyDeclaraion","getFullText","contextualMemberSymbols","membersDeclaredBySpreadAssignment","existingMemberNames","existingMembers_1","existingName","setMembersDeclaredBySpreadAssignment","filteredSymbols","setSortTextToMemberDeclaredBySpreadAssignment","contextualMemberSymbols_1","contextualMemberSymbol","currentClassElementModifierFlags","existingMembers_2","attributes_1","containingProgram","validNameResult","CompletionKind","_keywordCompletions","keywordFilter","filterOutTsOnlyKeywords","getTypescriptKeywordCompletions","isTypeScriptOnlyKeyword","isFunctionLikeBodyKeyword","isInterfaceOrTypeLiteralCompletionKeyword","jsdoc","hasCompletionsType","hasDeclarationOtherThanSelf","isValidKeyword","selfSymbol","getCandidate","isModuleSpecifierMissingOrEmpty","isArrowFunctionBody","seenModules","identifierString","lowercaseCharacters","prevChar","matchedFirstCharacter","characterIndex","strIndex","strChar","testChar","toUpperCharCode","DocumentHighlights","getDocumentHighlights","sourceFilesToSearch","highlightSpans","getHighlightSpanForNode","getSemanticDocumentHighlights","getSyntacticDocumentHighlights","sourceFilesSet","referenceEntries","FindAllReferences","getReferenceEntriesForNode","toHighlightSpan","redirectTarget_1","getHighlightSpans","getIfElseOccurrences","useParent","getReturnOccurrences","getThrowOccurrences","tryStatement","getTryCatchFinallyOccurrences","getSwitchCaseDefaultOccurrences","getBreakOrContinueStatementOccurrences","getLoopBreakContinueOccurrences","getFromAllDeclarations","getAsyncAndAwaitOccurrences","getYieldOccurrences","getModifierOccurrences","getNodes","aggregateOwnedThrowStatements","flatMapChildren","getThrowStatementOwner","throwStatement","aggregateAllBreakAndContinueStatements","ownsBreakOrContinueStatement","owner","actualOwner","getBreakOrContinueOwner","isLabeledBy","getNodesToSearchForModifier","modifierFlag","pushKeywordIf","keywordList","loopNode","loopTokens","breakOrContinueStatement","finallyKeyword","traverseWithoutCrossingFunction","getIfElseKeywords","elseKeyword","ifKeyword","shouldCombineElseAndIf","isDocumentRegistryEntry","createDocumentRegistry","createDocumentRegistryInternal","externalCache","buckets","reportStats","bucketInfoArray","languageServiceRefCount","bucket","acquireDocument","compilationSettings","scriptSnapshot","getKeyForCompilationSettings","acquireDocumentWithKey","acquireOrUpdateDocument","updateDocument","updateDocumentWithKey","getDocumentRegistryEntry","bucketEntry","acquiring","getDocument","setBucketEntry","updateLanguageServiceSourceFile","setDocument","createLanguageServiceSourceFile","scriptKindMap","releaseDocument","releaseDocumentWithKey","getLanguageServiceRefCounts","settings","createImportTracker","allDirectImports","getDirectImportsMap","isForRename","getImportersForExport","directImports","indirectUsers","getSearchesFromDirectImports","exportingModuleSymbol","markSeenDirectImport","markSeenIndirectUser","isAvailableThroughGlobal","indirectUserDeclarations","handleDirectImports","getIndirectUsers","addIndirectUser","theseDirectImports","getDirectImports","theseDirectImports_1","direct","handleImportCall","handleNamespaceImport","getSourceFileLikeForImportDeclaration","getContainingModuleSymbol","isExported","importCall","isAmbientModuleDeclaration","stopAtAmbientModule","isReExport","alreadyAddedDirect","sourceFileLike","findNamespaceReExports","addTransitiveDependencies","isNew","directImports_1","directImport","importSearches","singleReferences","addSearch","directImports_2","handleImport","handleNamespaceImportLike","searchForNamedImport","defaultImportAlias","isExternalModuleImportEquals","isNameMatch","namespaceImportSymbol","forEachPossibleImportOrExportStatement","findModuleReferences","searchModuleSymbol","searchSourceFile","forEachImport","_importDecl","getImportOrExportSymbol","comingFromExport","getExport","getImport","getSpecialPropertyExport","getExportKindForDeclaration","getExportNode","getExportAssignmentExport","useLhsSymbol","isImport","isNodeImport","importedSymbol","skipExportSpecifierSymbol","getExportEqualsLocalSymbol","getExportInfo","importer","eq","ImportExport","Core","nodeEntry","getContextNodeForNodeEntry","isContextWithStartAndEndNode","validImport","declOrStatement","toContextSpan","contextSpan","getTextSpan","findReferencedSymbols","referencedSymbols","getReferencedSymbolsForNode","definition","definitionToReferencedSymbolDefinitionInfo","toReferenceEntry","getImplementationsAtPosition","getImplementationReferenceEntries","seenNodes","entries_1","toImplementationLocation","getReferenceEntriesForShorthandPropertyAssignment","implementations","findReferenceOrRenameEntries","convertEntry","flattenEntries","referenceSymbols","def","getDefinitionKindAndDisplayParts","displayParts_1","kind_1","getFileAndTextSpanFromNode","displayParts_2","getIntersectingMeaningFromDeclarations","toRenameLocation","providePrefixAndSuffixText","entryToDocumentSpan","getPrefixAndSuffixText","documentSpan","isDefinition","isWriteAccessForReference","isDefinitionForReference","isShorthandAssignment","prefixColon","prefixText","suffixColon","suffixText","implementationKindDisplayParts","writeAccess","getTextSpanOfEntry","declarationIsWriteAccess","DefinitionKind","EntryKind","FindReferencesUse","GoToDefinition","getReferenceAtPosition","getReferencedSymbolsForModule","getReferencesForNonModule","getReferencedSymbolsSpecial","moduleReferences","getReferencedSymbolsForModuleIfDeclaredBySourceFile","aliasedSymbol","getMergedAliasedSymbolOfNamespaceExportDeclaration","moduleReferencesOfExportTarget","getReferencedSymbolsForSymbol","mergeReferences","getReferencesForStringLiteral","getReferencesForFileName","refFileMap","references_1","referencesToMerge","referencesToMerge_1","refIndex","entry1","entry2","entry1File","getSourceFileIndexOfEntry","entry2File","entry1Span","entry2Span","references_2","excludeImportTypeOfExportEquals","importType","getAllReferencesForKeyword","labelDefinition","getLabelReferencesInNode","getReferencesForThisKeyword","getReferencesForSuperKeyword","skipPastExportOrImportSpecifierOrUnion","isForRenameWithPrefixAndSuffixText","searchMeaning","State","getSpecialSearchKind","getReferencesAtExportSpecifier","createSearch","addReference","searchForImportsOfExport","allSearchSymbols","populateSearchSymbolSet","providePrefixAndSuffixTextForRename","getReferencesInContainerOrFiles","getSymbolScope","getReferencesInContainer","searchForName","useLocalSymbolForExportSpecifier","getLocalSymbolForExportSpecifier","SpecialSearchKind","getNonModuleSymbolOfMergedModuleSymbol","specialSearchKind","inheritsFromCache","markSeenContainingTypeReference","markSeenReExportRHS","symbolIdToReferences","sourceFileToSeenSymbols","includesSourceFile","getImportSearches","importTracker","comingFrom","searchOptions","getParentSymbolsOfPropertyAccess","referenceAdder","searchSymbol","addStringOrCommentReference","markSearchedSymbols","seenSymbols","anyNewSymbols","exportLocation","addRef","singleReferences_1","singleRef","shouldAddSingleReference","importSearches_1","importLocation","getReferencesInSourceFile","indirectSearch","indirectUsers_1","indirectUser","eachExportReference","importSearches_2","indirectUsers_2","getPossibleSymbolReferenceNodes","hasExportAssignmentDeclaration","hasMatchingMeaning","searchForImportedSymbol","exportingFile","privateDeclaration","exposedByParent","isSymbolReferencedInFile","searchContainer","eachSymbolReferenceInFile","referenceSymbol","someSignatureUsage","sourceFiles_3","getPossibleSymbolReferencePositions","positions","sourceLength","symbolNameLength","targetLabel","isValidReferencePosition","searchSymbolName","keywordKind","addReferencesHere","getReferencesAtLocation","relatedSymbol","getRelatedSymbol","addConstructorReferences","addClassStaticThisReferences","getImportOrExportReferences","getReferenceForShorthandProperty","findInStrings","findInComments","alwaysGetReferences","imported","isExportSpecifierAlias","importOrExport","shorthandValueSymbol","addImplementationReferences","pusher","findOwnConstructorReferences","classExtending","tryGetClassByExtendingIdentifier","findSuperConstructorAccesses","findInheritedConstructorReferences","addNode","getClassConstructorSymbol","ctrKeyword","forEachDescendantOfKind","hasOwnConstructor","refNode","isImplementation","getContainingClassIfInHeritageClause","typeHavingNode","addIfImplementation","isImplementationExpression","explicitlyInheritsFrom","cachedResults","inherits","superKeyword","searchSpaceNode","staticFlag","isParameterName","thisOrSuperKeyword","refType","forEachRelatedSymbol","isForRenamePopulateSearchSymbolSet","onlyIncludeBindingElementAtReferenceLocation","cbSymbol","allowBaseTypes","containingObjectLiteralElement","getContainingObjectLiteralElement","res_1","getPropertySymbolsFromContextualType","fromRoot","res1","res2","res_2","paramProps","res_3","bindingElementPropertySymbol","getPropertySymbolOfObjectBindingPatternWithoutPropertyName","includeOriginalSymbolOfBindingElement","getPropertySymbolsFromBaseTypes","recur","lastIterationMeaning","declarationMeaning","refSymbol","shorthandSymbol","getDeclarations","propertyAccessExpression","isUnionOrIntersection","CallHierarchy","isNamedExpression","isConstNamedExpression","isPossibleCallHierarchyDeclaration","isValidCallHierarchyDeclaration","getCallHierarchyDeclarationReferenceNode","getSymbolOfCallHierarchyDeclaration","getCallHierarchyItemName","printer_1","getCallHierarchItemContainerName","findImplementation","findAllInitialDeclarations","keys_1","sortedDeclarations","lastDecl","sortedDeclarations_1","findImplementationOrAllInitialDeclarations","resolveCallHierarchyDeclaration","followingSymbol","createCallHierarchyItem","selectionSpan","isDefined","convertEntryToCallSite","getCallSiteGroupKey","createCallHierarchyIncomingCall","fromSpans","convertCallSiteGroupToIncomingCall","getIncomingCalls","createCallSiteCollector","callSites","recordCallSite","declaration_1","collect","collectCallSitesOfSourceFile","collectCallSitesOfModuleDeclaration","collectCallSitesOfFunctionLikeDeclaration","collectCallSitesOfClassStaticBlockDeclaration","collectCallSitesOfClassLikeDeclaration","heritage","collectCallSites","createCallHierarchyOutgoingCall","convertCallSiteGroupToOutgoingCall","getOutgoingCalls","getEditsForFileRename","oldFileOrDirPath","newFileOrDirPath","sourceMapper","oldToNew","getPathUpdater","newToOld","ChangeTracker","changeTracker","updateTsconfigFiles","updateImports","canonicalOldPath","tryGetSourcePosition","getUpdatedPath","makeCorrespondingRelativeChange","pathToUpdate","a0","b0","a1","rel","combinePathsSafe","configDir","foundExactMatch","updatePaths","matchers","pathsProperty","tryUpdateString","elementFileName","replaceRangeWithText","createStringRange","allFiles","newFromOld","newImportFromPath","newImportFromDirectory","oldFromNew","oldImportFromPath","oldImportFromDirectory","importingSourceFileMoved","updateImportsWorker","oldAbsolute","newAbsolute","importedModuleSymbol","toImport","getSourceFileToImportFromResolved","getSourceFileToImport","newFileName","allFiles_1","combineNormal","pathA","pathB","oldFileName","tryChange","tryChangeWithIgnoringPackageJsonExisting","tryChangeWithIgnoringPackageJson","updateRef","updateImport","importStringLiteral","getDefinitionAtPosition","fileReferenceDefinition","getDefinitionInfoForFileReference","unverified","getDefinitionFromOverriddenMember","createDefinitionInfoFromName","containerName_1","getDefinitionInfoForIndexSignatures","calledDeclaration","tryGetSignatureDeclaration","isConstructorLike","sigInfo","createDefinitionFromSignatureDeclaration","symbolMatchesSignature","defs","getDefinitionFromSymbol","shorthandSymbol_1","definitions","createDefinitionInfo","getDefinitionFromObjectLiteralElement","baseDeclaration","findReferenceInPosition","libReferenceDirective","verifiedFileName","getTypeDefinitionAtPosition","typeAtLocation","tryGetReturnTypeOfFunction","fromReturnType","definitionFromType","getDefinitionAndBoundSpan","shouldSkipAlias","declarationNode","filteredDeclarations","getConstructSignatureDefinition","getCallSignatureDefinition","getSignatureDefinition","signatureDeclarations","selectConstructors","declarationsWithBody","isLocal","isDefinitionVisible","targetFileName","getAncestorCallLikeExpression","callLike","jsDocTagNameCompletionEntries","jsDocTagCompletionEntries","jsDocTagNames","getJsDocCommentsFromDeclarations","getCommentHavingNodes","newparts","getDisplayPartsFromComment","isIdenticalListOfDisplayParts","parts1","parts2","getJsDocTagsFromDeclarations","tags_1","getCommentDisplayParts","namePart","getTagNameDisplayPart","withNode","addComment","nameThusFar","getDocCommentTemplateAtPosition","tokenAtPos","existingDocComment","commentOwnerInfo","getCommentOwnerInfo","commentOwner","hasReturn","indentationStr","getIndentationStringAtPosition","parameterDocComments","returnsDocComment","openComment","closeComment","preamble","caretOffset","getCommentOwnerInfoWorker","varDeclarations","getRightHandSideOfAssignment","be","generateReturnInDocTemplate","rightHandSide","NavigateTo","getNavigateToItems","searchValue","maxResultCount","excludeDtsFiles","patternMatcher","createPatternMatcher","rawItems","getNamedDeclarations","getItemsFromNamedDeclaration","sourceFiles_4","compareNavigateToItems","createNavigateToItem","getMatchForLastSegmentOfPattern","shouldKeepItem","patternContainsDots","fullMatch","getFullMatch","getContainers","matchKind","isCaseSensitive","tryAddSingleDeclarationName","pushLiteral","tryAddComputedPropertyName","i1","i2","rawItem","PatternMatchKind","NavigationBar","curCancellationToken","curSourceFile","trackedEs5Classes","whiteSpaceRegex","parentsStack","trackedEs5ClassesStack","emptyChildItemArray","getNavigationBarItems","primaryNavBarMenuItems","rootNavigationBarNode","convertToPrimaryNavBarMenuItem","getNavigationTree","convertToTree","cleanText","navigationBarNodeKind","pushChild","additionalNodes","addChildrenRecursively","addLeafNode","emptyNavigationBarNode","addTrackedEs5Class","endNestedNodes","startNestedNodes","navNode","mergeChildren","sortChildren","addNodeWithRecursiveChild","addNodeWithRecursiveInitializer","isFunctionOrClassExpression","hasNavigationBarName","ctr","nameNode","isComputedProperty","getInteriorModule","prototypeAccess","defineCall","classNameIdentifier","targetFunction","nameToItems","itemsWithSameName","itemsWithSameName_1","itemWithSameName","tryMerge","isEs5ClassMember","tryMergeEs5Class","bIndex","isPossibleConstructor","bAssignmentDeclarationKind","aAssignmentDeclarationKind","isSynthesized","lastANode","ctorFunction","ctorNode","bNode","shouldReallyMerge","merge","isOwnChild","areSameModule","getFullyQualifiedModuleName","par","compareChildren","child1","child2","tryGetName","getModuleName","getFunctionOrClassName","getItemName","shouldAppearInPrimaryNavBarMenu","isTopLevelFunctionDeclaration","getModifiers","getSpans","getNodeSpan","childItems","convertToSecondaryNavBarMenuItem","bolded","grayed","getCalledExpressionName","organizeImports","skipDestructiveCodeActions","fromContext","coalesceAndOrganizeImports","importGroup","coalesceImports","removeUnusedImports","topLevelImportDecls","organizeImportsWorker","topLevelExportDecls","coalesceExports","ambientModuleImportDecls","ambientModuleExportDecls","getChanges","oldImportDecls","coalesce","oldImportGroups","sortedImportGroups","group1","group2","compareModuleSpecifiers","newImportDecls","deleteNodes","trailingTriviaOption","TrailingTriviaOption","Include","replaceOptions","replaceNodeWithNodes","nodeHasTrailingComment","oldImports","jsxElementsPresent","usedImports","oldImports_1","isDeclarationUsed","newElements","updateImportDeclarationAndClause","hasModuleDeclarationMatchingSpecifier","moduleSpecifierText","getCategorizedImports","importWithoutClause","typeOnlyImports","regularImports","coalescedImports","defaultImports","namespaceImports","sortedNamespaceImports","compareIdentifiers","sortedNamespaceImports_1","namespaceImport","newDefaultImport","newImportSpecifiers","defaultImports_1","sortedImportSpecifiers","sortSpecifiers","newNamedImports","importGroup_1","group_3","exportGroup","getCategorizedExports","exportWithoutClause","typeOnlyExports","coalescedExports","exportGroup_1","newExportSpecifiers","sortedExportSpecifiers","exportGroup_2","compareImportOrExportSpecifiers","m1","m2","getModuleSpecifierExpression","importSpecifiersAreSorted","sortedImports","getImportSpecifierInsertionIndex","compareImportKind","getImportKindOrder","OutliningElementsCollector","collectElements","addNodeOutliningSpans","addRegionOutliningSpans","depthRemaining","visitNonImportNode","firstImport","addOutliningForLeadingCommentsForNode","lastImport","createOutliningSpanFromBounds","addOutliningForLeadingCommentsForPos","getOutliningSpanForNode","regions","lineStarts_1","currentLineStart","getLineEndOfPosition","isRegionDelimiter","region","hintSpan","createOutliningSpan","regionDelimiterRegExp","firstSingleLineCommentStart","lastSingleLineCommentEnd","singleLineCommentCount","combineAndAddMultipleSingleLineComments","functionSpan","spanForNode","spanForNodeArray","spanForObjectOrArrayLiteral","spanForJSXElement","spanForJSXFragment","spanForJSXAttributes","spanForTemplateLiteral","spanForArrowFunction","spanForCallExpression","openToken","closeToken","spanBetweenTokens","bannerText","hintSpanNode","autoCollapse","useFullStart","tryGetFunctionOpenToken","openParenToken","createPatternMatch","stringToWordSpans","dotSeparatedSegments","createSegment","subWordTextChunks","matchSegment","candidateContainers","candidateMatch","betterMatch","getWordSpans","breakIntoWordSpans","matchTextChunk","indexOfIgnoringCase","textLowerCase","exact","isLowerCase","wordSpans","wordSpans_1","partStartsWith","isUpperCaseLetter","characterSpans","candidateParts","tryCamelCaseMatch","camelCase","totalTextChunk","subWordTextChunks_1","subWordTextChunk","compareMatches","candidateSpan","patternSpan","everyInRange","equalChars","firstMatch","contiguous","chunkCharacterSpans","currentCandidate","currentChunkSpan","candidatePart","gotOneMatchThisCandidate","chunkCharacterSpan","createTextChunk","breakPatternIntoTextChunks","isLowerCaseLetter","valueChar","isWordChar","wordStart","wordLength","breakIntoCharacterSpans","breakIntoSpans","lastIsDigit","currentIsDigit","hasTransitionFromLowerToUpper","transitionFromLowerToUpper","hasTransitionFromUpperToLower","transitionFromUpperToLower","charIsPunctuation","isAllPunctuation","lastIsUpper","currentIsUpper","preProcessFile","readImportFiles","detectJavaScriptImports","ambientExternalModules","pragmaContext","importedFiles","braceNesting","externalModule","getFileReference","recordAmbientExternalModule","recordModuleName","markAsExternalModuleIfTopLevel","tryConsumeDeclare","tryConsumeImport","skipTypeKeyword","tryConsumeRequireCall","tryConsumeExport","skipCurrentToken","allowTemplateLiterals","tryConsumeDefine","processImports","ambientExternalModules_1","isLibFile","ambientExternalModules_2","Rename","getRenameInfo","nodeIsEligibleForRename","renameInfo","getRenameInfoForNode","getRenameInfoError","isDefinedInLibraryFile","allowRenameOfImportPath","getRenameInfoForModule","specifierName","displayName","fullDisplayName","getRenameInfoSuccess","withoutIndex","indexAfterLastSlash","triggerSpan","canRename","fileToRename","createTriggerSpanForNode","localizedErrorMessage","SmartSelectionRange","getSmartSelectionRange","selectionRange","getSelectionChildren","prevNode","pushSelectionCommentRange","positionShouldSnapToNode","end_2","pushSelectionRange","isBetweenMultiLineBookends","isListOpener","isListCloser","getEndPos","nodeEnd","groupChildren","openBraceToken","closeBraceToken","groupedWithPlusMinusTokens","groupedWithBrackets","splitChildren","groupedDotDotDotAndName_1","groupedWithQuestionToken","groupOn","pivotOn","separateTrailingSemicolon","splitTokenIndex","leftChildren","splitToken","separateLastToken","rightChildren","InvocationKind","CandidateOrTypeKind","getSignatureHelpItems","triggerReason","startingToken","onlyUseSyntacticOwners","isManuallyInvoked","getContainingArgumentInfo","candidateInfo","getCandidateOrTypeInfo","createSignatureHelpItems","createTypeHelpItems","createJSSignatureHelpItems","isSyntacticOwner","containsPrecedingToken","invocationChildren","containingList","getExpressionFromInvocation","currentParent","getImmediatelyContainingArgumentInfo","isTypeParameterList","getArgumentOrParameterListInfo","getArgumentOrParameterListAndIndex","getArgumentCount","argumentsSpan","getApplicableSpanForArguments","getChildListThatStartsWithOpenerToken","getArgumentIndex","getArgumentListInfoForTemplate","templateExpression","spanIndex","getArgumentIndexForTemplatePiece","attributeSpanStart","attributeSpanEnd","typeArgInfo","getImmediatelyContainingArgumentOrContextualParameterInfo","tryGetParameterInfo","getHighestBinary","countBinaryExpressionParameters","_position","getContextualSignatureLocationInfo","nonNullableContextualType","chooseBetterSymbol","highestBinary","contextualType_1","argumentIndex_1","argumentCount_1","listChildren","getApplicableSpanForTaggedTemplate","applicableSpanStart","applicableSpanEnd","taggedTemplate","openerToken","indexOfOpenerToken","getEnclosingDeclarationFromInvocation","signatureHelpNodeBuilderFlags","useFullPrefix","applicableSpan","callTargetSymbol","callTargetDisplayParts","candidateSignature","getSignatureHelpItem","selectedItemIndex","itemsSeen","item_1","isVariadic","selected","firstRest","getTypeHelpItem","typeSymbolDisplay","createSignatureHelpParameterForTypeParameter","getDocumentationComment","getJsDocTags","prefixDisplayParts","suffixDisplayParts","separatorDisplayParts","itemInfoForTypeParameters","itemInfoForParameters","returnTypeToDisplayParts","paramList","parameterParts","typeParameterParts","pList","parameterList","createSignatureHelpParameterForParameter","InlayHints","maxHintsLength","leadingParameterNameCommentRegexFactory","shouldShowParameterNameHints","includeInlayParameterNameHints","shouldShowLiteralParameterNameHintsOnly","provideInlayHints","sourceFileText","includeInlayVariableTypeHints","includeInlayPropertyDeclarationTypeHints","visitVariableLikeDeclaration","includeInlayEnumMemberValueHints","visitEnumMember","visitCallOrNewExpression","includeInlayFunctionParameterTypeHints","visitFunctionLikeForParameterType","includeInlayFunctionLikeReturnTypeHints","isSignatureSupportingReturnAnnotation","visitFunctionDeclarationLikeForReturnType","addParameterHints","isFirstVariadicArgument","truncation","whitespaceAfter","addTypeHints","whitespaceBefore","addEnumMemberValueHints","isModuleReferenceType","effectiveTypeAnnotation","typeDisplayString","printTypeInSingleLine","originalArg","isHintableLiteral","identifierNameInfo","isParameterNameNotSameAsArgument","includeInlayParameterNameHintsWhenArgumentMatchesName","identifierOrAccessExpressionPostfixMatchesParameterName","leadingCommentsContainsParameterName","ranges","regex","getTypeAnnotationPosition","closeParenToken","getParameterDeclarationTypeDisplayString","signatureParamType","base64UrlRegExp","getSourceMapper","documentPositionMappers","tryGetGeneratedPosition","toLineColumnOffset","getDocumentPositionMapper","generatedFileName","sourceFileName","newLoc","getOrCreateSourceFileLike","fileFromCache","createSourceFileLike","generatedFileLineInfo","readMapFile","mapFileName","base64Object","convertDocumentToSourceMapper","possibleMapLocations","originalMapFileName","possibleMapLocations_1","mapFileName_1","mapFileContents","visitedNestedConvertibleFunctions","computeSuggestionDiagnostics","containsTopLevelCommonjs","getErrorNodeFromCommonJsIndicator","importNameForConvertToDefaultImport","canBeConvertedToClass","parameterShouldGetTypeFromJSDoc","canBeConvertedToAsync","addConvertToAsyncFunctionDiagnostics","propertyAccessLeftHandSide","isConvertibleFunction","getKeyFromNode","hasReturnStatementWithPromiseHandler","returnsPromise","isReturnStatementWithFixablePromiseHandler","isFixablePromiseHandler","isPromiseHandler","isFixablePromiseArgument","hasSupportedNumberOfArguments","symbolDisplayNodeBuilderFlags","getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar","isLocalVariableOrFunction","unionPropertyKind","rootSymbolFlags","typeOfUnionProperty","getNormalizedSymbolModifiers","semanticMeaning","documentationFromAlias","tagsFromAlias","hasAddedSymbolInfo","isThisExpression","hasMultipleSignatures","callExpressionLike","useConstructSignatures","allSignatures","addPrefixForAnyFunctionOrVar","pushSymbolKind","addFullSymbolName","addSignatureDisplayParts","functionDeclaration_1","locationIsSymbolDeclaration","addAliasPrefixIfNecessary","writeTypeParametersOfSymbol","prefixNextMeaning","isNamespace","addInPrefix","resolvedNode","isExternalModuleDeclaration","shouldUseAliasName","resolvedInfo","getContextualDocumentationComment","internalAliasSymbol","getPrinter","labelDecl","rhsSymbol","symbolToDisplay","fullSymbolDisplayParts","transpileModule","transpileOptions","fixupCompilerOptions","transpileOptionValueCompilerOptions_1","outputText","reportDiagnostics","transpile","commandLineOptionsStringToEnum","commandLineOptionsStringToEnum_1","FormattingRequestKind","FormattingContext","formattingRequestKind","updateContext","currentRange","currentTokenParent","nextRange","nextTokenParent","commonParent","currentTokenSpan","nextTokenSpan","contextNodeAllOnSameLine","nextNodeAllOnSameLine","tokensAreOnSameLine","contextNodeBlockIsOnOneLine","nextNodeBlockIsOnOneLine","ContextNodeAllOnSameLine","NodeIsOnOneLine","NextNodeAllOnSameLine","TokensAreOnSameLine","ContextNodeBlockIsOnOneLine","BlockIsOnOneLine","NextNodeBlockIsOnOneLine","openBrace","closeBrace","ScanAction","standardScanner","jsxScanner","getFormattingScanner","leadingTrivia","trailingTrivia","savedPos","lastScanAction","lastTokenInfo","wasNewLine","advance","readTokenInfo","readEOFTokenRange","isOnToken","isOnEOF","getCurrentLeadingTrivia","lastTrailingTriviaWasNewLine","skipToEndOf","skipToStartOf","isStarted","shouldRescanGreaterThanToken","shouldRescanJsxIdentifier","shouldRescanJsxText","shouldRescanSlashToken","shouldRescanTemplateToken","shouldRescanJsxAttributeValue","startsWithSlashToken","expectedScanAction","fixTokenKind","getNextToken","createTextRangeWithKind","trivia","newToken","tokenInfo","anyContext","RuleAction","RuleFlags","getAllRules","allTokens","anyTokenExcept","isSpecific","anyToken","anyTokenIncludingMultilineComments","tokenRangeFrom","anyTokenIncludingEOF","tokenRangeFromRange","binaryOperators","binaryKeywordOperators","unaryPrefixOperators","unaryPrefixExpressions","unaryPreincrementExpressions","unaryPostincrementExpressions","unaryPredecrementExpressions","unaryPostdecrementExpressions","typeNames","functionOpenBraceLeftTokenRange","typeScriptOpenBraceLeftTokenRange","controlOpenBraceLeftTokenRange","highPriorityCommonRules","rule","isNonJsxSameLineTokenContext","isNotBinaryOpContext","isNotTypeAnnotationContext","isConditionalOperatorContext","isImportTypeContext","isNotStatementConditionContext","isBinaryOpContext","isMultilineBlockContext","isAfterCodeBlockContext","isObjectContext","isControlDeclContext","isFunctionDeclarationOrFunctionExpressionContext","isFunctionDeclContext","isYieldOrYieldStarWithOperand","isStartOfVariableDeclarationList","isFunctionCallOrNewContext","isPreviousTokenNotComma","isVoidOpContext","isArrowFunctionContext","isNextTokenParentJsxAttribute","isJsxSelfClosingElementContext","isJsxAttributeContext","isModuleDeclContext","isObjectTypeContext","isTypeArgumentOrParameterOrAssertionContext","isNotFunctionDeclContext","isEndOfDecoratorContextOnSameLine","isNonNullAssertionContext","isConstructorSignatureContext","userConfigurableRules","isOptionEnabled","isOptionDisabledOrUndefined","isNonJsxElementOrFragmentContext","isNextTokenNotCloseBracket","isNextTokenNotCloseParen","isOptionEnabledOrUndefined","isBraceWrappedContext","isOptionDisabled","isNonJsxTextContext","isJsxExpressionContext","isForContext","isBeforeMultilineBlockContext","isTypeScriptDeclWithBlockContext","isTypeAssertionContext","isTypeAnnotationContext","optionEquals","Remove","isSemicolonDeletionContext","Insert","isSemicolonInsertionContext","lowPriorityCommonRules","isOptionDisabledOrUndefinedOrTokensOnSameLine","isNotFormatOnEnter","isSameLineTokenOrBeforeBlockContext","isBeforeBlockContext","isNotBeforeBlockInFunctionDeclarationContext","isNotForContext","debugName","leftTokenRange","toTokenRange","rightTokenRange","except","optionValue","contextKind","isSingleLineBlockContext","isBlockContext","nodeIsBlockContext","nodeIsTypeScriptDeclWithBlockContext","blockParent","isFunctionCallContext","isNewContext","nodeIsInDecoratorContext","isTypeArgumentOrParameterOrAssertion","isStatementConditionContext","nextTokenKind","nextTokenStart","nextRealToken","getFormatContext","getRules","getRulesMap","rulesMapCache","createRulesMap","getRuleActionExclusion","ruleAction","rules","buildMap","getRuleBucketIndex","rules_1","ruleActionMask","bucket_1","acceptRuleActions","mapRowLength","rulesBucketConstructionStateList","rules_2","specificRule","rulesBucket","addRule","row","column","RulesPosition","maskBitSize","specificTokens","constructionState","rulesBucketIndex","StopRulesSpecific","StopRulesAny","ContextRulesSpecific","ContextRulesAny","NoContextRulesSpecific","NoContextRulesAny","getInsertionIndex","increaseInsertionIndex","indexBitmap","maskPosition","textRangeWithKind","Constants","LineAction","internedSizes","internedTabsIndentation","internedSpacesIndentation","formatOnEnter","endOfFormatSpan","formatSpan","formatOnSemicolon","semicolon","findImmediatelyPrecedingTokenOfKind","formatNodeLines","findOutermostNodeWithinListLevel","formatOnOpeningCurly","openingCurly","curlyBraceRange","outermostNode","formatOnClosingCurly","formatDocument","formatSelection","expectedTokenKind","findEnclosingNode","prepareRangeContainsErrorFunction","originalRange","rangeHasNoErrors","sorted","e1","e2","getScanStartPosition","enclosingNode","getOwnOrInheritedDelta","previousLine","SmartIndenter","shouldIndentChildNode","formatNodeGivenIndentation","initialIndentation","formatSpanWorker","requestKind","getIndentationForNode","formattingScanner","rangeContainsError","previousRange","previousParent","previousRangeStartLine","lastIndentedLine","formattingContext","indentationOnLastIndentedLine","undecoratedStartLine","processNode","nodeWillIndentChild","indentTriviaItems","processRange","trimTrailingWhitespacesForRemainingRange","tryComputeIndentationForListItem","parentStartLine","inheritedIndentation","startLinePosition","findFirstNonWhitespaceColumn","baseIndentSize","getBaseIndentation","computeIndentation","parentDynamicIndentation","effectiveParentStartLine","getIndentation","getDelta","childStartsOnTheSameLineWithElseInIfStatement","childIsUnindentedBranchOfConditionalExpression","argumentStartsOnSameLineAsPreviousArgument","getFirstNonDecoratorTokenOfNode","getDynamicIndentation","nodeStartLine","getIndentationForComment","tokenIndentation","getIndentationForToken","suppressDelta","shouldAddDelta","recomputeIndentation","lineAdded","undecoratedNodeStartLine","nodeDynamicIndentation","childContextNode","processChildNode","processChildNodes","consumeTokenAndAdvanceScanner","processPair","undecoratedParentStartLine","isListItem","isFirstListItem","childStartPos","childStartLine","undecoratedChildStartLine","childIndentationAmount","childIndentation","listStartToken","getOpenTokenForList","listDynamicIndentation","indentationOnListStartToken","listEndToken","getCloseTokenForOpenToken","commaTokenLine","currentTokenInfo","dynamicIndentation","isListEndToken","lastTriviaWasNewLine","indentToken","processTrivia","lineAction","isTokenInRange","rangeHasError","savePreviousRange","prevEndLine","indentNextTokenOrTrivia","commentIndentation_1","insertIndentation","commentIndentation","indentSingleLine","trivia_1","triviaItem","triviaInRange","indentMultilineComment","trivia_2","triviaItemStart","rangeStart","originalStart","trimTrailingWhitespacesForLines","currentItem","currentStartLine","previousItem","previousStartLine","trimTrailingWhitespaces","applyRuleEdits","indentationString","getIndentationString","recordReplace","characterToColumn","indentationIsDifferent","characterInLine","firstLineIsIndented","indentFinalLine","endOfLine","startLinePos","nonWhitespaceColumnInFirstPart","findFirstNonWhitespaceCharacterAndColumn","startLinePos_1","nonWhitespaceCharacterAndColumn","newIndentation","recordDelete","line1","line2","lineStartPosition","lineEndPosition","whitespaceStart","getTrailingWhitespaceStartPosition","recordInsert","onLaterLine","lineDelta","posDelta","trailingRangesOfPreviousToken","leadingCommentRangesOfNextToken","resetInternedStrings","spacesString","quotient","remainder","tabs","spaces","tabString","Value","NextTokenKind","assumeNewLineBeforeCloseBrace","enclosingCommentRange","getCommentIndent","precedingTokenIsLiteral","lineAtPosition","Block","getBlockIndent","actualIndentation","getActualIndentationForListItemBeforeComma","containerList","getListByPosition","getActualIndentationForListStartLine","getSmartIndent","commentStartLine","startPositionOfLine","firstNonWhitespaceCharacterCode","currentStart","getStartLineAndCharacterForNode","nextTokenIsCurlyBraceOnSameLineAsCursor","indentationDelta","getIndentationForNodeWorker","getActualIndentationForListItem","ignoreActualIndentationRange","isNextChild","useActualIndentation","containingListOrParentStart","getContainingListOrParentStart","parentAndChildShareLine","firstListChild","getContainingList","listIndentsChild","getActualIndentationForNode","useTrueStart","isArgumentAndStartLineOverlapsExpressionBeingCalled","commaToken","commaItemInfo","deriveActualIndentationFromList","currentLineAndChar","findColumnForFirstNonWhitespaceCharacterInLine","nextTokenStartLine","expressionOfCallExpressionEnd","expressionOfCallExpressionEndLine","elseKeywordStartLine","conditionEndLine","trueStartLine","trueEndLine","currentIndex","lineOfPreviousNode","getListByRange","getList","getVisualListRange","lineAndCharacter","indentByDefault","childKind","indentMultiLineObjectLiteralBeginningOnBlankLine","rangeIsOnOneLine","isControlFlowEndingStatement","textChanges_3","__pos","setPos","__end","setEnd","skipWhitespacesAndLineBreaks","hasCommentsBeforeLineBreak","ChangeKind","useNonAdjustedPositions","getAdjustedRange","getAdjustedStartPosition","getAdjustedEndPosition","StartLine","JSDoc","JSDocComments","fullStart","fullStartLine","IncludeAll","adjustedStartPosition","getEndPositionOfMultilineTrailingComment","nodeEndLine","comments_2","commentEndLine","ExcludeWhitespace","realEnd","multilineEndPosition","newEnd","isSeparator","isThisTypeAnnotatable","containingFunction","changesToText","deleteDeclaration","newFiles","classesWithNodesInsertedAtStart","deletedNodes","pushRaw","Text","deleteRange","deleteNode","deleteModifier","deleteNodeRange","deleteNodeRangeExcludingEnd","afterEndNode","replaceRange","newNode","ReplaceWithSingleNode","oldNode","replaceNodeRange","replaceRangeWithNodes","newNodes","ReplaceWithMultipleNodes","replaceNodeWithText","replaceNodeRangeWithNodes","configurableEnd","nextCommaToken","replacePropertyAssignment","insertNodeAt","insertNodesAt","insertNodeAtTopOfFile","insertAtTopOfFile","getInsertionPositionAtSourceFileTop","insertFirstParameter","p0","getOptionsForInsertNodeBefore","insertModifierAt","insertModifierBefore","insertCommentBeforeLine","insertAtLineStart","isValidLocationToAddComment","insertJsdocCommentBefore","fnStart","preserveLeadingWhitespace","tryInsertTypeAnnotation","tryInsertThisTypeAnnotation","insertTypeParameters","joiner","insertNodeAtConstructorStart","newStatement","replaceConstructorBody","insertNodeAtConstructorStartAfterSuperCall","insertNodeAtConstructorEnd","insertNodeAtEndOfScope","insertNodeAtClassStart","newElement","insertNodeAtStartWorker","insertNodeAtObjectStart","guessIndentationFromExistingMembers","computeIndentationForNewMember","getMembersOrProperties","getInsertNodeAtStartInsertOptions","lastRange","memberStart","memberIndentation","clsStart","isFirstInsertion","insertTrailingComma","insertLeadingComma","insertNodeAfterComma","insertNodeAfterWorker","getInsertNodeAfterOptions","insertNodeAtEndOfList","needSemicolonBetween","getInsertNodeAfterOptionsWorker","insertName","arrow","lparen","insertExportModifier","insertNodeInListAfter","afterStart","afterStartLinePosition","separator","multilineList","tokenBeforeInsertPosition","afterMinusOneStartLinePosition","insertPos","parenthesizeExpression","finishClassesWithNodesInsertedAtStart","getClassOrObjectBraceEnds","openBraceEnd","closeBraceEnd","isSingleLine","finishDeleteDeclarations","deletedNodesInLists","this_1","lastNonDeletedIndex","startPositionToDeleteNodeInList","validate","getTextChangesFromChanges","newFileChanges","createNewFile","getNewFileText","newFileChangesWorker","applyChanges","assignPositionsToNode","assignPositionsToNodeArray","createWriter","lastNonTriviaPosition","setLastNonTriviaPosition","lastPrologue","advancePastLineBreak","firstNodeLine","ranges_1","pinnedOrTripleSlash","lastCommentEndLine","deleteNodeInList","changesInFile","computeNewText","isNewFile","nonFormattedText","getNonformattedText","getFormattedTextOfNode","noIndent","getFormatCodeSettingsForWriting","shouldAutoDetectSemicolonPreference","shouldRemoveSemicolons","formatOptions","deleteDeclaration_1","oldFunction","isFirstImport","preserveComma","deleteVariableDeclaration","deleteImportBinding","deleteDefaultImport","gp","errorCodeToFixes","fixIdToRegistration","diagnosticToString","createCodeFixActionWithoutFixAll","fixName","createCodeFixActionWorker","createCodeFixAction","fixId","fixAllDescription","command","createCodeFixActionMaybeFixAll","commands","registerCodeFix","errorCodes","fixIds","getSupportedErrorCodes","removeFixIdIfFixAllUnavailable","registration","maybeFixableDiagnostics","fixAllUnavailable","getFixes","registrations","errorCode","getCodeActions","getAllFixes","getAllCodeActions","createCombinedCodeActions","createFileTextChanges","codeFixAll","eachDiagnostic","refactor_1","refactors","registerRefactor","refactor","getApplicableRefactors","isCancellationRequested","refactorKindBeginsWith","getAvailableActions","getEditsForRefactor","refactorName","actionName","getEditsForAction","makeChange","getFix","trackChanges","fixedDeclarations","insertionSite","cloneWithModifier","getFixableErrorSpanDeclaration","getIsMatchingAsyncError","directSpan","propertyAccessCode","callableConstructableErrorCodes","getDeclarationSiteFix","awaitableInitializers","findAwaitableInitializers","initializerChanges","initializers","needsSecondPassForFixAll","declarationSymbol","getUseSiteFix","isMissingAwaitError","getFixableErrorSpanExpression","isInsideAwaitableBody","getIdentifiersFromErrorSpanExpression","isCompleteFix","isUsedElsewhere","symbolReferenceIsAlsoMissingAwait","sides","insertLeadingSemicolonIfNeeded","beforeNode","fixedNodes","forInitializer","isPossiblyPartOfDestructuring","applyChange","checker_1","arrayElementCouldBeVariableDeclaration","commaExpression","isPossiblyPartOfCommaSeperatedInitializer","expressionCouldBeVariableDeclaration","getDeclaration","isDeclarationWithType","hasUsableJSDoc","doChange","needParens","transformJSDocType","transformJSDocOptionalType","transformJSDocNullableType","transformJSDocVariadicType","transformJSDocFunctionType","transformJSDocTypeReference","transformJSDocParameter","dotdotdot","transformJSDocIndexSignature","indexSignature","ctorSymbol","ctorDeclaration","createClassFromFunctionDeclaration","createClassFromVariableDeclaration","createClassElementsFromSymbol","memberElements","memberElement","createClassElement","prototypes","shouldConvertDeclaration","_target","isConstructorAssignment","assignmentBinaryExpression","assignmentExpr","nodeToDelete","tryGetPropertyName","createFunctionLikeExpressionMember","createFunctionExpressionMember","createArrowFunctionExpressionMember","fullModifiers","getModifierKindFromSource","arrowFunction","bodyBlock","arrowFunctionBody","SynthBindingNameKind","codeActionSucceeded","convertToAsyncFunction","functionToConvert","synthNamesMap","setOfExpressionsToReturn","getAllPromiseExpressionsToReturn","functionToConvertRenamed","renameCollidingVarNames","returnStatements","getReturnStatementsWithPromiseHandlers","transformExpression","returnStatements_1","isPromiseReturningCallExpression","isPromiseTypedExpression","isExpressionOfName","nodeToRename","identsToRenameMap","collidingSymbolMap","lastCallSignature","getLastCallSignature","symbolIdString","collidingSymbols","prevSymbol","getNewNameIfConflict","createSynthIdentifier","firstParameter","ident","originalNames","numVarsSameName","silentFail","prevArgName","transformThen","transformCatch","transformPromiseExpressionOfPropertyAccess","possibleNameForVarDecl","argName","getArgBindingName","shouldReturn","isSynthIdentifier","newSynthName","createUniqueSynthName","hasBeenDeclared","varDeclIdentifier","transformationBody","getTransformationBody","catchArg","catchVariableDeclaration","typeArray","unionTypeNode","destructuredResult","isSynthBindingPattern","renamedPrevArg","onFulfilled","onRejected","onFulfilledArgumentName","onRejectedArgumentName","transformationBody2","createVariableOrAssignmentOrExpressionStatement","isEmptyBindingName","getNode","maybeAnnotateAndReturn","expressionToReturn","synthCall","getReturnType","varDeclOrAssignment","funcBody","refactoredStmts","seenReturnStatement","getInnerTransformationBody","possiblyAwaitedRightHandSide","getPossiblyAwaitedRightHandSide","removeReturns","innerRetStmts","innerCbBody","transformedStatement","stmts","stmts_1","possiblyAwaitedExpression","innerRetStmts_1","funcNode","getMappedBindingNameOrDefault","getMapEntryOrDefault","createSynthBindingPattern","mapEntry","fixImportOfModuleExports","convertFileToEs6Module","collectFreeIdentifiers","additional","collectExportRenames","convertExportsAccesses","useSitesToUnqualify","moduleExportsChangedToDefault","newUseSites","convertVariableStatement","moduleExportsChanged","convertStatement","forEachExportReference","isAssignmentLhs","convertAssignment","combinedUseSites_1","foundImport","convertedImports","convertSingleImport","convertPropertyAccessImport","newImports","tmp","makeSingleImport","makeConst","tryChangeModuleExportsObject","convertReExportAll","convertNamedExport","convertExportsDotXEquals_replaceNode","functionExpressionToDeclaration","makeExportDeclaration","convertExportsPropertyAssignment","reExported","reExportDefault","reExportStar","semi","exportConst","classExpressionToDeclaration","replaceImportUseSites","nodeOrNodes","importSpecifiers","makeImportSpecifier","moduleSpecifierToValidIdentifier","convertSingleIdentifierImport","namedBindingsNames","needDefaultImport","importDefaultName","idName","forEachFreeIdentifier","isFreeIdentifier","additionalModifiers","getQualifiedName","rightText","getExportSpecifierForDiagnosticSpan","fixSingleExportDeclaration","typeExportSpecifiers","getTypeExportSpecifiers","valueExportDeclaration","typeExportDeclaration","originExportSpecifier","fixedExportDeclarations","getImportDeclarationForDiagnosticSpan","fixSingleImportDeclaration","getClass","symbolPointsToNonPrivateMember","addMissingDeclarations","implementedTypeNode","maybeHeritageClauseSymbol","getHeritageClauseSymbolTable","implementedType","implementedTypeSymbols","nonPrivateAndNotExistedInHeritageClauseMembers","createMissingIndexSignatureDeclaration","importAdder","createImportAdder","indexInfoOfKind","insertInterfaceMemberNode","getNoopSymbolTrackerWithResolver","createMissingMemberNodes","writeFixes","heritageClauseNode","heritageClauseType","heritageClauseTypeSymbols","seenClassDeclarations","importFixName","ImportFixKind","importFixId","createImportAdderWorker","addToNamespace","addToExisting","addImportFromDiagnostic","addImportFromExportedSymbol","getFixesInfo","fixes","addImport","usageIsTypeOnly","exportInfos","getAllReExportingModules","preferTypeOnlyImport","useRequire","shouldUseRequire","getImportFixForSymbol","importClauseOrBindingPattern","canUseTypeOnlyImport","namespaceLikeImport","newDeclarations","addToNamespace_1","addNamespaceQualifier","importType_1","addImportType","doAddExistingFix","getNewRequires","getNewImports","getSymbolExportInfoForSymbol","codeFixActionToCodeAction","codeActionForFix","getBestFix","getImportFixes","mainProgramInfo","getInfoWithChecker","named","isImportable","fromCacheOnly","getNewImportFixes","isTypeOnlyPosition","existingImports","getExistingImportDeclarations","useNamespace","tryUseExistingNamespaceImport","tryAddToExistingImport","getFixesForAddImport","namespacePrefix","getNamespaceLikeImportText","getTargetModuleFromNamespaceLikeImport","otherFile","moduleSymbols","existingDeclaration","newImportInfoFromExistingSpecifier","symbolToken","getFixesInfoForUMDImport","getFixesInfoForNonUMDImport","sortFixes","compareNodeCoreModuleSpecifiers","umdSymbol","getUmdSymbol","forceImportKeyword","getExportEqualsImportKind","getUmdImportKind","getSymbolName","getExportInfos","currentTokenMeaning","originalSymbolToExportInfos","addSymbol","symbolHasMeaning","exportSymbolWithIdenticalName","allowSyntheticDefaults","isJS","codeActionForFixWorker","getImportTypePrefix","moduleSpecifierWithoutQuotes","importsCollection","convertTypeOnlyToRegular","existingSpecifiers","newSpecifiers","newSpecifiers_1","prevSpecifier","newSpecifiers_2","namedImports_2","addElementToBindingPattern","namedImports_1","createConstEqualsRequireDeclaration","lastCharWasValid","firstCharCode","fixAddOverrideId","fixRemoveOverrideId","errorCodeFixIdMap","dispatchChanges","doAddOverrideModifierChange","doRemoveOverrideModifierChange","findContainerClassElementLike","abstractModifier","accessibilityModifier","modifierPos","overrideModifier","isClassElementLikeHasJSDoc","descriptions","fixAllDescriptions","getPropertyAccessExpression","fnKeyword","getNamedTupleMember","namedTupleMember","unwrappedType","sawOptional","sawRest","suggestedSymbol","resolvedSourceFile","getResolvedSourceFileFromImportDeclaration","convertSemanticMeaningToSymbolFlags","valDecl","ProblemKind","fixIdAddReturnStatement","fixRemoveBracesFromArrowFunctionBody","fixIdWrapTheBlockWithParen","createObjectTypeFromLabeledExpression","getFixInfo","expectType","checkFixedAssignableTo","MissingReturnStatement","commentSource","MissingParentheses","firstBlockStatement","newSig","getVariableLikeInitializer","addReturnStatement","probablyNeedSemi","removeBlockBodyBrace","withParen","newBody","wrapBlockWithParen","getActionForfixAddReturnStatement","getActionForFixRemoveBracesFromArrowFunctionBody","getActionForfixWrapTheBlockWithParen","InfoKind","fixMissingMember","fixMissingProperties","fixMissingAttributes","fixMissingFunctionDeclaration","parentDeclaration","getUnmatchedAttributes","leftExpressionType","moduleDeclarationSourceFile","isSourceFileFromLibrary","classOrInterface","makeStatic","declSourceFile","isJSFile","getActionsForMissingMemberDeclaration","createActionForAddMissingMemberInJavascriptFile","createActionsForAddMissingMemberInTypeScriptFile","addMissingMemberInJs","tokenName","staticInitialization","initializePropertyToUndefined","lastProp","getNodeToInsertPropertyAfter","propertyInitialization","createUndefined","getTypeNode","addPropertyDeclarationChanges","addPropertyDeclaration","actions","createAddIndexSignatureAction","otherExpression","stringTypeNode","getActionsForMissingMethodDeclaration","addMethodDeclarationChanges","addMethodDeclaration","createSignatureDeclarationFromCallExpression","containingMethodDeclaration","addEnumMemberDeclaration","hasStringInitializer","enumMember","addFunctionDeclaration","addJsxAttributes","jsxAttributesNode","hasSpreadAttribute","tryGetValueFromType","jsxAttributes","addObjectLiteralProperties","createSignatureDeclarationFromSignature","createStubbedBody","targetProps","typeDeclToMembers","token_1","supers","getAllSupers","superClassOrInterface","superInfos","infos_1","addMissingNewOperator","findAncestorMatchingSpan","newExpression","fixIdInstallTypesPackage","errorCodeCannotFindModule","getInstallCommand","tryGetImportedPackageName","getTypesPackageNameToInstall","diagCode","isKnownTypesPackageName","_changes","pkg","addMissingMembers","instantiatedExtendsType","abstractAndNonPrivateExtendsSymbols","symbolPointsToNonPrivateAndAbstractMember","findSuperCall","seenClasses","setJsonCompilerOptionValue","fixID","codeFixes","moduleOutOfRange","targetOutOfRange","configObject","setJsonCompilerOptionValues","extendsToken","doChanges","implementsToken","implementsFullStart","didYouMeanStaticMemberCode","fixIdExpression","fixIdHtmlEntity","changeToExpression","changeToHtmlEntity","htmlEntity","isValidCharacter","useHtmlEntity","fixIdPrefix","fixIdDelete","fixIdDeleteImports","fixIdInfer","changeInferToUnknown","createDeleteFix","deleteTypeParameters","tryGetFullImport","canDeleteEntireVariableStatement","deleteEntireVariableStatement","deleteDestructuringElements","tryPrefixDeclaration","canPrefix","tryDeleteDeclaration","isFixAll","tryDeleteDeclarationWorker","mayDeleteExpression","tryDeleteParameter","mayDeleteParameter","isNotProvidedArguments","referent","isSuperCall_1","isSuperMethodCall","isOverriddenMethod","isCallbackLike","isLastParameter","deletion","logData","statementKind","end_3","lastWhere","a_1","labeledStatement","statementPos","fixIdPlain","fixIdNullable","oldTypeNode","newType","isTypeContainer","fixedType","getCallName","callName","insertBefore","generateAccessorFromProperty","edits_2","edit","getDiagnostic","mapSuggestionDiagnostic","markSeen","annotateVariableDeclaration","inferTypeForVariableFromUsage","addJSDocTags","annotateSetAccessor","annotateParameters","annotate","annotateThis","parameterInferences","inferTypeForParametersFromUsage","annotateJSDocParameters","parameterInferences_1","getFunctionReferences","thisInference","inferTypeFromReferences","annotateJSDocThis","setAccessorDeclaration","tryReplaceImportTypeNodeWithAutoImport","importableReference","tryGetAutoImportableReferenceFromTypeNode","newTags","oldTags","unmergedNewTags","newTag","tryMergeJsdocTags","jsDocNode","getJsDocNodeForArrowFunction","oldTag","oldParam","getReferences","single","searchToken","builtinConstructors","builtins","createEmptyUsage","isNumberOrString","candidateTypes","numberIndex","stringIndex","candidateThisTypes","inferredTypes","combineUsages","usages","combinedProperties","usages_1","ps","combineTypes","inferTypesFromReferencesSingle","references_3","calculateUsageOfNode","calls_1","argumentTypes","references_4","references_5","inferTypeFromExpressionStatement","inferTypeFromPrefixUnaryExpression","inferTypeFromBinaryExpression","inferTypeFromSwitchStatementLabel","inferTypeFromCallExpression","inferTypeFromContextualType","inferTypeFromPropertyAccessExpression","inferTypeFromPropertyElementExpression","inferTypeFromPropertyAssignment","inferTypeFromPropertyDeclaration","addCandidateType","otherOperandType","return_","propertyUsage","indexUsage","nodeWithRealType","addCandidateThisType","removeLowPriorityInferences","priorities","toRemove","priorities_1","combineFromUsage","stringNumber","good","anons","combineAnonymousTypes","stringIndices","numberIndices","stringIndexReadonly","numberIndexReadonly","anons_1","numberIndexInfo","inferStructuralType","inferNamedTypesFromProperties","getSignatureFromCalls","allPropertiesAreAssignableToUsage","inferInstantiationFromUsage","propUsage","getFunctionFromCalls","generic","singleTypeParameter","genericPropertyType","genericType","usageType","genericArgs","usageArgs","genericSigs","usageSigs","genericSig","usageSig","genericParam","usageParam","genericParamType","genericReturn","usageReturn","promisedTypeNode","seenLines","possiblyMissingSymbols","addClassElement","classMembers","possiblyMissingSymbols_1","addNewNodeForMemberSymbol","visibilityModifier","createVisibilityModifier","importSymbols","allAccessors","orderedAccessors","orderedAccessors_1","createStubbedMethodBody","createDummyParameters","outputMethod","createMethodImplementingSignatures","typeParameterDecl","newParameters","parameterDecl","typeToAutoImportableTypeNode","newParameter","maxArgsSignature","someSigHasRestParameter","maxNonRestArgs","maxArgsParameterSymbolNames","createStubbedMethod","getReturnTypeFromSignatures","tsconfigObjectLiteral","compilerOptionsProperty","findJsonProperty","optionProperty","createJsonPropertyAssignment","importTypeNode","replaceFirstIdentifierOfEntityName","newIdentifier","_actionName","fieldInfo","getAccessorConvertiblePropertyAtPosition","isRefactorErrorInfo","accessorModifiers","fieldModifiers","prepareModifierFlagsForAccessor","prepareModifierFlagsForField","updateFieldDeclaration","generateGetAccessor","insertAccessor","updateReadonlyPropertyInitializerStatementConstructor","generateSetAccessor","isConvertibleName","isAcceptedDeclaration","createPropertyName","createAccessorAccessExpression","leftHead","considerEmptySpans","cursorRequest","startWithUnderscore","getDeclarationType","renameAccessor","updatePropertyAssignmentDeclaration","superElement","superSymbol","superDecl","getCodeFixesForImportDeclaration","variations","createAction","getActionsForUsageOfInvalidImport","targetKind","getImportCodeFixesForExpression","getActionsForInvalidImportLocation","relatedImport","sourceFile_2","fixIdAddDefiniteAssignmentAssertions","fixIdAddUndefinedType","fixIdAddInitializer","getPropertyDeclaration","getActionForAddMissingDefiniteAssignmentAssertion","addDefiniteAssignmentAssertion","propertyDeclarationSourceFile","getActionForAddMissingUndefinedType","addUndefinedType","undefinedTypeNode","getActionForAddMissingInitializer","getInitializer","addInitializer","getDefaultValueFromType","isNumberLiteral","defaultImportName","required","tryCreateNamedImportsFromObjectBindingPattern","fixIdAddMissingTypeof","getImportTypeNode","newTypeNode","findNodeToFix","lessThanToken","firstJsxElementOrOpenElement","binaryExpr","flattenInvalidBinaryExpr","createTypeAliasFromInterface","otherMembers","mappedTypeParameter","mappedIntersectionType","intersectionType","awaitKeyword","expressionToReplace","hasSurroundingParens","leftMostExpression","getImportDeclaration","splitTypeOnlyImport","getConstTokenRange","constToken","expectedErrorCode","defaultToNamedAction","namedToDefaultAction","considerPartialSpans","wasDefault","noSymbolError","vs","exportingSourceFile","changeExport","changeImports","makeExportSpecifier","exportKeyword","changeDefaultToNamedImport","changeNamedToDefaultImport","provideRefactorNotApplicableReason","notApplicableReason","renameLocation","namespaceToNamedAction","namedToNamespaceAction","getImportToConvert","toConvert","doChangeNamespaceToNamed","doChangeNamedToNamespace","usedAsNamespaceOrDefault","nodesToReplace","conflictingNames","getRightOfPropertyAccessOrQualifiedName","getLeftOfPropertyAccessOrQualifiedName","exportNameToImportName","nodesToReplace_1","propertyAccessOrQualifiedName","toConvertSymbols","namedImport","preferredName","hasNamespaceNameConflict","namespaceNameConflicts","namespaceImportName","neededNamedImports","old","convertToOptionalChainExpression","convertToOptionalChainExpressionMessage","toOptionalChainAction","isValidExpression","isValidStatement","isValidExpressionOrStatement","forEmptySpan","startToken","endToken","adjustedSpan","getValidParentNodeOfEmptySpan","getValidParentNodeContainingSpan","getExpression","getConditionalInfo","getBinaryInfo","finalExpression","getFinalExpressionInChain","getMatchingStart","occurrences","getOccurrencesInExpression","matchTo","finalMatch","subchain","chainStartsWith","getTextOfChainNode","convertOccurrences","lastOccurrence","isOccurrence","firstOccurrence","convertedChain","addOrRemoveBracesToArrowFunction","refactorDescription","functionOverloadAction","getConvertableOverloadListAtPosition","signatureDecls","lastDeclaration","getNewParametersForCombinedSignature","lastSig","convertSignatureParametersToTuple","convertParameterToNamedTupleMember","parameterDocComment","newComment","displayPartsToString","isConvertableSignatureDeclaration","containingDecl","signatureSymbol","kindOne","returnOne","extractSymbol","Messages","RangeFacts","SpecialScope","Usage","extractConstantAction","extractFunctionAction","requestedRefactor","rangeToExtract","getRangeToExtract","targetRange","getStringError","extractions","getPossibleExtractions","innermostErrorFunctionAction","innermostErrorConstantAction","functionActions","usedFunctionNames","constantActions","usedConstantNames","extractions_1","functionExtraction","constantExtraction","description_1","parsedFunctionIndexMatch","getFunctionExtractionAtIndex","parsedConstantIndexMatch","getConstantExtractionAtIndex","invoked","cannotExtractEmpty","getAdjustedSpanFromNodes","getExtractableParent","rangeFacts","cannotExtractRange","cannotExtractJSDoc","isBlockLike","errors_1","refineNode","checkRootNode","getStatementOrExpressionRange","numInitializers","lastInitializer","cannotExtractIdentifier","checkForStaticContext","nodeToCheck","InStaticRegion","ctorOrMethod","PermittedJumps","isExtractableExpression","statementOrExpressionExpected","cannotExtractAmbientBlock","seenLabels","permittedJumps","declaringNode","cannotExtractExportedEntity","cannotExtractImport","containingClass_1","cannotExtractSuper","UsesThis","functionWillNotBeVisibleInTheNewScope","savedPermittedJumps","cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange","cannotExtractRangeContainingConditionalBreakOrContinueStatements","IsAsyncFunction","IsGenerator","HasReturn","cannotExtractRangeContainingConditionalReturnStatement","isScope","collectEnclosingScopes","isReadonlyArray","scopes","requestedChangesIndex","getPossibleExtractionsWorker","readsAndWrites","usagesPerScope","functionErrorsPerScope","exposedVariableDeclarations","extractFunctionInScope","constantErrorsPerScope","extractConstantInScope","functionDescription","constantDescription","functionDescriptionPart","getDescriptionForFunctionInScope","constantDescriptionPart","getDescriptionForConstantInScope","scopeDescription","getDescriptionForFunctionLikeDeclaration","getDescriptionForClassLikeDeclaration","getDescriptionForModuleLikeDeclaration","enclosingTextRange","getEnclosingTextRange","collectReadsAndWrites","writes","usagesInScope","typeParameterUsages","substitutions","functionNameText","callArguments","paramDecl","typeParametersAndDeclarations","getFirstDeclaration","sortedTypeParametersAndDeclarations","compareTypesByDeclarationOrder","callTypeArguments","newFunction","returnValueProperty","minInsertionPos","nodeToInsertBefore","getNodeToInsertFunctionBefore","getCalledExpression","isInJSXContent","commonNodeFlags","sawExplicitType","exposedVariableDeclarations_1","variableType","typeLiteral","exposedVariableDeclarations_2","getTypeDeepCloneUnionUndefined","getPropertyAssignmentsForWritesAndVariableDeclarations","renameRange","withoutParens","localNameText","transformConstantInitializer","transformFunctionInitializerAndType","newVariable","localReference","maxInsertionPos","getNodeToInsertPropertyBefore","oldVariableDeclaration","getContainingVariableDeclarationIfInList","newVariableStatement","getNodeToInsertConstantBefore","functionSignature","getTypeParameters","hasAny","declaration1","declaration2","functionReference","hasWritesOrVariableDeclarations","ignoreReturns","rewrittenStatements","oldIgnoreReturns","getStatementsOrClassElements","minPos","maxPos","prevMember","prevScope","curr","variableAssignments","writeAssignments","w","firstExposedNonVariableDeclaration","expressionDiagnostic","allTypeParameterUsages","substitutionsPerScope","visibleDeclarationsInExtractedRange","exposedVariableSymbolSet","expressionExpected","uselessConstantType","scopes_1","constantErrors","cannotExtractToJSClass","cannotExtractToExpressionArrowFunction","seenUsages","unmodifiedNode","inGenericContext","isInGenericContext","collectUsages","recordTypeParameterUsages","seenTypeParameterUsages","i_2","containingLexicalScopeOfExtraction","checkForUsedDeclarations","scopeUsages","cannotAccessVariablesFromNestedScopes","readonlyClassPropertyWrite","hasWrite","cannotWriteInExpression","cannotExtractReadonlyPropertyInitializerOutsideConstructor","symbolWalker","visitedTypes_1","visitedType","valueUsage","recordUsage","recordUsagebySymbol","isTypeName","getSymbolReferencedByIdentifier","lastUsage","usagesPerScope_1","perScope","prevEntry","declInFile","cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators","functionErrorsPerScope_1","constantErrorsPerScope_1","tryReplaceWithQualifiedNameOrPropertyAccess","typeWillNotBeVisibleInTheNewScope","idString","scopeDecl","createMessage","extractToTypeAliasAction","extractToInterfaceAction","extractToTypeDefAction","selection","rangeContainsSkipTrivia","collectTypeParameters","flattenTypeLiteralNodeReference","seen_1","flattenedTypeMembers","conditionalTypeNode","functionLikeNode","doTypeAliasChange","doInterfaceChange","doTypedefChange","generateGetAccessorAndSetAccessor","actionDescription","generateGetSetAction","nameNeedRename","renameLocationOffset","known","requested","moveToNewFileAction","getRangeToMove","startNodeIndex","startStatement","toMove","afterLast","afterEndNodeIndex","getUsageInfo","all","newModuleName","makeUniqueModuleName","getNewModuleName","movedSymbols","newFileNameWithExtension","getNewStatementsAndRemoveFromOldFile","addNewFileToTsconfig","getStatementsToMove","rangeToMove","isAllowedStatementToMove","afterEndIndex","isPureImport","newFileAbsolutePath","newFilePath","cfgObject","filesProp","prologueDirectives","deleteMovedStatements","useEs6ModuleSyntax","importsFromNewFile","createOldFileImportsFromNewFile","oldFileImportsFromNewFile","deleteUnusedOldImports","unusedImportsFromOldFile","updateImportsInOtherFiles","getNewFileImportsAndAddExportInOldFile","oldImportsNeededByNewFile","newFileImportsFromOldFile","addExports","moved","moved_1","toDelete","forEachImportInStatement","deleteUnusedImports","moduleSpecifierFromImport","shouldMove","newModuleSpecifier","newImportDeclaration","filterImport","getNamespaceLikeImport","updateNamespaceLikeImport","oldImportId","oldImportNode","preferredNewNamespaceName","needUniqueName","toChange","newNamespaceName","toChange_1","updateNamespaceLikeImportNode","newNamespaceId","newModuleString","newFileNeedExport","useEs6Imports","makeImportOrRequire","makeVariableStatement","needExport","useEs6Exports","isTopLevelDeclarationStatement","forEachTopLevelDeclaration","addExport","isUnused","deleteUnusedImportsInDeclaration","deleteUnusedImportsInVariableDeclaration","defaultUnused","namedBindingsUnused","importsToCopy","oldFileDefault","copiedOldImports","oldStatement","oldFileNamedImports","markSeenTop","isTopLevelDeclaration","nameOfTopLevelDeclaration","getTopLevelDeclarationStatement","addExportToChanges","inDirectory","SymbolSet","containsJsx","jsxNamespaceSymbol","getJsxNamespaceSymbol","toMove_1","toMove_2","forEachReference","isInImport","sourceFileOfTopLevelDeclaration","isVariableDeclarationInImport","keep","filterNamedBindings","filterBindingName","onReference","allowTextChangesInNewFiles","isNonVariableTopLevelDeclaration","forEachTopLevelDeclarationInBindingName","em","getNamesToExportInCommonJS","addEs6Export","addCommonjsExport","addBracesAction","removeBracesAction","getConvertibleArrowFunctionAtPosition","addBraces","returnStatement_1","actualExpression","considerFunctionBodies","convertParamsToDestructuredObject","minimumParameterLength","toDestructuredAction","getFunctionDeclarationAtPosition","groupedReferences","getGroupedReferences","valid","newFunctionDeclarationParams","createNewParameters","newSignatureParams","replaceParameters","functionCalls","functionCalls_1","newArgument","createNewArgument","declarationOrSignature","parameterDeclarations","functionNames","getFunctionNames","classNames","getClassNames","groupReferences","classReferences","accessExpressions","typeUsages","functionSymbols","getSymbolTargetAtLocation","classSymbols","contextualSymbols","getSymbolForContextualType","referenceEntries_1","isValidMethodSignature","entryToFunctionCall","contextualSymbol","entryToDeclaration","importOrExportReference","entryToImportOrExport","entryToAccessExpression","entryToType","callOrNewExpression","callOrNewExpression_1","elementAccessExpression","callOrNewExpression_2","isTopLevelJSDoc","isValidFunctionDeclaration","containingJSDoc","containingNonJSDoc","isValidParameterNodeArray","hasNameOrDefault","isSingleImplementation","isValidVariableDeclaration","functionOrClassDeclaration","defaultKeyword","getRefactorableParametersLength","isValidParameterDeclaration","getRefactorableParameters","createPropertyOrShorthandAssignment","functionArguments","nonRestArguments","getParameterName","restArguments","restProperty","objectInitializer","refactorableParameters","createBindingElementFromParameterDeclaration","objectParameterName","objectParameterType","createParameterTypeNode","objectParameter","newThisParameter","createPropertySignatureFromParameterDeclaration","paramDeclaration","convertStringOrTemplateLiteral","convertStringAction","getNodeOrParentOfParentheses","maybeBinary","getParentBinaryExpression","refactorInfo","treeToArray","isValidConcatenation","nestedBinary","isNonStringBinary","getEditsForToTemplateLiteral","nodesToTemplate","trailingCommentRanges","trailingRange_1","isNotEqualsOperator","operators","validOperators","hasString","leftHasString","leftOperatorValid","currentOperatorValid","copyTrailingOperatorComments","copyCommentFromMultiNode","copyOperatorComments","indexes","escapeRawStringForTemplate","getRawTextOfTemplate","rightShaving","concatConsecutiveString","copyCommentFromStringLiterals","begin","headText","rawHeadText","headIndexes","noSubstitutionTemplateLiteral","out_i_1","getExpressionFromParenthesesOrExpression","subsequentText","rawSubsequentText","stringIndexes","copyExpressionComments","isLastSpan","templatePart","convertArrowFunctionOrFunctionExpression","toAnonymousFunctionAction","toNamedFunctionAction","toArrowFunctionAction","getFunctionInfo","selectedVariableDeclaration","possibleActions","getEditInfoForConvertToAnonymousFunction","variableInfo","getVariableInfo","getEditInfoForConvertToNamedFunction","getEditInfoForConvertToArrowFunction","containingThis","containsThis","checkThis","tryGetFunctionFromVariableDeclaration","maybeFunc","isFunctionReferencedInFile","isSingleVariableDeclaration","convertToBlock","modifiersFlags","canBeConvertedToExpression","inferFunctionReturnType","inferReturnTypeAction","closeParen","isConvertibleDeclaration","tryGetReturnType","createNode","NodeObject","IdentifierObject","PrivateIdentifierObject","TokenObject","servicesVersion","assertHasRealPosition","includeJsDocComment","getLeadingTriviaWidth","createChildren","cbNodeArray","addSyntheticNodes","processNodes","TokenOrIdentifierObject","SymbolObject","getEscapedName","documentationComment","contextualGetAccessorDocumentationComment","contextualSetAccessorDocumentationComment","_super","TypeObject","isClassOrInterface","getDefault","isIntersection","SignatureObject","getParameters","jsDocTags","getJsDocTagsOfSignature","hasJSDocInheritDocTag","inheritedTags","findBaseOfDeclaration","seenSymbols_1","inheritedDocs","classOrInterfaceDeclaration","superTypeNode","SourceFileObject","lastCharPos","fullText","namedDeclarations","computeNamedDeclarations","addDeclaration","SourceMapSourceObject","getServicesObjectAllocator","toEditorSettings","optionsAsMap","allPropertiesAreCamelCased","isCamelCase","getSupportedCodeFixes","HostCache","fileNameToEntry","getScriptFileNames","rootFileNames_1","createEntry","getScriptSnapshot","hostFileName","getScriptVersion","getEntryByPath","getHostFileInformation","getOrCreateEntryByPath","SyntaxTreeCache","getCurrentSourceFile","currentFileName","currentFileVersion","editRange","currentFileScriptSnapshot","setSourceFileFields","setNodeParents","changedText","nameTable","NoopCancellationToken","CancellationTokenObject","ThrottledCancellationToken","hostCancellationToken","throttleWaitMilliseconds","lastCancellationCheckTime","invalidOperationsInPartialSemanticMode","invalidOperationsInSyntacticMode","createLanguageService","documentRegistry","syntaxOnlyOrLanguageServiceMode","languageServiceMode","Semantic","Syntactic","lastProjectVersion","syntaxTreeCache","lastTypesRootVersion","getCancellationToken","getLocalizedDiagnosticMessages","getValidSourceFile","ProgramFiles","synchronizeHostData","getProjectVersion","hostProjectVersion","typeRootsVersion","getTypeRootsVersion","parsedCommandLines","hostCache","newSettings","parseConfigHost","getOrCreateSourceFile","getOrCreateSourceFileByPath","setCompilerHost","documentRegistryBucketKey","getParsedCommandLineOfConfigFileUsingSourceFile","oldSettingsKey","_onError","hostFileInformation","getAutoImportProvider","cleanupSemanticCache","declarationDiagnostics","getCompilerOptionsDiagnostics","fullPreferences","includeExternalModuleExports","includeInsertTextCompletions","triggerKind","formattingOptions","getQuickInfoAtPosition","nodeForQuickInfo","getNodeForQuickInfo","getSymbolAtLocationForQuickInfo","shouldGetType","getImplementationAtPosition","getOccurrencesAtPosition","highlightSpan","filesToSearch","findRenameLocations","getReferencesWorker","getReferencesAtPosition","findReferences","getFileReferences","getEmitOutput","getNonBoundSourceFile","getNameOrDottedNameSpan","_endPos","nodeForStartPos","getBreakpointStatementAtPosition","BreakpointResolver","spanInSourceFileAtLocation","responseFormat","getOutliningSpans","braceMatching","getBraceMatchingAtPosition","getIndentationAtPosition","editorOptions","getFormattingEditsForRange","getFormattingEditsForDocument","getFormattingEditsAfterKeystroke","getCodeFixesAtPosition","getCombinedCodeFix","oldFilePath","applyCodeActionCommand","actionOrFormatSettingsOrUndefined","applySingleCodeActionCommand","getPath","installPackage","isValidBraceCompletionAtPosition","openingBrace","getJsxClosingTagAtPosition","isUnclosedTag","getLinesForRange","toggleLineComment","insertComment","isCommenting","leftMostPosition","lineTextStarts","firstNonWhitespaceCharacterRegex","isJsx","regExec","lineTextStart","toggleMultilineComment","isInsideJsx","hasComment","openMultiline","closeMultiline","openMultilineRegex","closeMultilineRegex","newPos","firstPos","positions_1","commentSelection","uncommentSelection","getSpanOfEnclosingComment","onlyMultiLine","getTodoComments","descriptors","isNodeModulesFile","regExp","getTodoCommentsRegExp","matchArray","firstDescriptorCaptureIndex","matchPosition","isLetterOrDigit","escapeRegExp","singleLineCommentStart","multiLineCommentStart","anyNumberOfSpacesAndAsterisksAtStartOfLine","endOfLineOrEndOfComment","messageRemainder","messagePortion","regExpString","getRefactorContext","positionOrRange","getInlayHintsContext","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","ls","clearSourceMapperCache","PartialSemantic","initializeNameTable","literalIsName","isArgumentOfElementAccessExpression","getContainingObjectLiteralElementWorker","unionSymbolOk","discriminatedPropertySymbols","getDefaultLibFilePath","__dirname","tokenAtLocation","lineOfPosition","spanInNode","textSpanEndingAtNextToken","previousTokenToFindNextEndToken","spanInNodeIfStartsOnSameLine","otherwiseOnNode","spanInNodeArray","spanInPreviousNode","spanInNextNode","spanInVariableDeclaration","spanInParameterDeclaration","spanInFunctionDeclaration","spanInFunctionBlock","spanInBlock","spanInForStatement","spanInInitializerOfForLike","spanInBindingPattern","spanInOpenBraceToken","spanInCloseBraceToken","spanInCloseBracketToken","spanInOpenParenToken","spanInCloseParenToken","spanInColonToken","spanInGreaterThanOrLessThanToken","spanInWhileKeyword","spanInOfKeyword","spanInArrayLiteralOrObjectLiteralDestructuringPattern","textSpanFromVariableDeclaration","canHaveSpanInParameterDeclaration","canFunctionHaveSpanInWholeDeclaration","nodeForSpanInBlock","forLikeStatement","firstBindingElement","lastClause","debugObjectHost","logInternalError","ScriptSnapshotShimAdapter","scriptSnapshotShim","oldSnapshot","oldSnapshotShim","encoded","LanguageServiceShimHostAdapter","shimHost","loggingEnabled","getModuleResolutionsForFile","typeDirectivesForFile","getTypeReferenceDirectiveResolutionsForFile","settingsJson","diagnosticMessagesJson","CoreServicesShimHostAdapter","simpleForwardCall","logPerformance","forwardJSONCall","forwardCall","returnJson","canceled","ShimBase","registerShim","unregisterShim","realizeDiagnostics","realizeDiagnostic","LanguageServiceShimObject","languageService","dummy","CollectGarbage","refresh","throwOnError","convertClassifications","localOptions","normalizedName","entryName","preference","getEmitOutputObject","ClassifierShimObject","classifyKeywordsInGenerics","CoreServicesShimObject","compilerOptionsJson","getPreProcessedFileInfo","sourceTextSnapshot","convertFileReferences","refs_1","getTSConfigFileInfo","getDefaultCompilationSettings","discoverTypingsJson","TypeScriptServicesFactory","_shims","getServicesVersion","createLanguageServiceShim","hostAdapter","createClassifierShim","createCoreServicesShim","adapter","shim","globalThis","__magic__","window","Services","toolsVersion","factoryDeprecation","createParameter","updateParameter","updateProperty","createMethod","updateMethod","createConstructor","updateConstructor","createGetAccessor","updateGetAccessor","createSetAccessor","updateSetAccessor","createTypePredicateNodeWithModifier","updateTypePredicateNodeWithModifier","createArrayLiteral","updateArrayLiteral","createObjectLiteral","updateObjectLiteral","createPropertyAccess","updatePropertyAccess","createElementAccess","updateElementAccess","createCall","updateCall","createNew","updateNew","createParen","updateParen","createDelete","updateDelete","createTypeOf","updateTypeOf","createVoid","updateVoid","createAwait","updateAwait","createPrefix","updatePrefix","createPostfix","updatePostfix","createBinary","updateConditional","updateYield","createSpread","updateSpread","createStatement","updateStatement","createIf","updateIf","createDo","updateDo","createWhile","updateWhile","createFor","updateFor","createForIn","updateForIn","createForOf","updateForOf","createContinue","updateContinue","createBreak","updateBreak","createReturn","updateReturn","createWith","updateWith","createSwitch","updateSwitch","updateLabel","createThrow","updateThrow","createTry","updateTry","createJSDocTag","updateSourceFileNode","createCommaList","updateCommaList","createOptimisticUniqueName","createFileLevelUniqueName","createLiteral","operatorOrType","createTaggedTemplate","typeArgumentsOrTemplate","updateTaggedTemplate","updateBinary","createConditional","questionTokenOrWhenTrue","whenTrueOrWhenFalse","createYield","asteriskTokenOrExpression","equalsGreaterThanTokenOrBody","exclamationTokenOrType","typeOrInitializer","createJSDocParamTag","getMutableClone","isIdentifierOrPrivateIdentifier","safeProcess","sandboxProcess","ErrorHandler","listeners","unexpectedErrorHandler","listener","errorHandler","onUnexpectedError","isPromiseCanceledError","transformErrorForSerialization","stacktrace","$isError","canceledName","didCall","Iterable","thing","_empty","freeze","iterables","concatNested","reducer","initialValue","consume","atMost","consumed","equals","at","bt","ai","bi","an","bn","TRACK_DISPOSABLES","disposableTracker","setDisposableTracker","__is_disposable_tracked__","Disposable","disposable","trackDisposable","markAsDisposed","setParentOfDisposable","setParentOfDisposables","MultiDisposeError","combinedDisposable","disposables","toDisposable","DisposableStore","_toDispose","_isDisposed","DISABLE_DISPOSED_WARNING","_store","Undefined","LinkedList","_first","_last","_size","_insert","atTheEnd","oldLast","oldFirst","didRemove","_remove","anchor","hasPerformanceNow","highResolution","_highResolution","_startTime","_now","_stopTime","Event","once","event","thisArgs","didFire","snapshot","each","signal","events","emitter","fire","debounce","delay","leading","leakWarningThreshold","subscription","handle","numDebouncedCalls","_output","latch","firstCall","shouldEmit","isT","buffer","_buffer","flush","ChainableEvent","fromNodeEventEmitter","onFirstListenerAdd","on","onLastListenerRemove","removeListener","fromDOMEventEmitter","removeEventListener","toPromise","_listenerCount","_invocationCount","_elapsedOverall","_name","_idPool","listenerCount","_stopWatch","_globalLeakWarningThreshold","LeakageMonitor","customThreshold","random","_warnCountdown","_stacks","topStack","topCount","_disposed","_leakageMon","_perfMon","_profName","_event","_listeners","firstListener","onFirstListenerDidAdd","onListenerDidAdd","removeMonitor","hasListeners","_deliveryQueue","stop","getAllPropertyNames","getAllMethodNames","createProxyObject","methodNames","invoke","createProxyMethod","splitLines","firstNonWhitespaceIndex","chCode","lastNonWhitespaceIndex","isUpperAsciiLetter","isHighSurrogate","isLowSurrogate","computeCodePoint","highSurrogate","lowSurrogate","GraphemeBreakTree","getGraphemeBreakRawData","_INSTANCE","nodeIndex","INITIALIZE","RequestMessage","vsWorker","req","ReplyMessage","seq","SubscribeEventMessage","EventMessage","UnsubscribeEventMessage","handler","_workerId","_handler","_lastSentReq","_pendingReplies","_pendingEmitters","_pendingEvents","workerId","_send","_handleMessage","_handleReplyMessage","_handleRequestMessage","_handleSubscribeEventMessage","_handleEventMessage","_handleUnsubscribeEventMessage","replyMessage","reply","requestMessage","handleMessage","handleEvent","transfer","ArrayBuffer","sendMessage","propertyIsEvent","propertyIsDynamicEvent","proxyListen","createProxyDynamicEvent","requestHandlerFactory","_requestHandlerFactory","_requestHandler","_protocol","_handleEvent","initialize","loaderConfig","hostMethods","setWorkerId","proxyMethodRequest","listen","hostProxy","trustedTypesPolicy","catchError","DiffChange","originalLength","modifiedStart","modifiedLength","numberHash","initialHashVal","stringHash","hashVal","leftRotate","bits","totalBits","byteLength","leftPad","toHexString","bufferOrValue","bitsize","Uint8Array","padStart","_h0","_h1","_h2","_h3","_h4","_buff","_buffDV","_buffLen","_totalLen","_leftoverHighSurrogate","_finished","strLen","buff","buffLen","leftoverHighSurrogate","nextCharCode","_push","_step","_wrapUp","ml","setUint32","bigBlock32","_bigBlock32","getUint32","StringDiffSequence","characters","Int32Array","stringDiff","modified","ComputeDiff","MyArray","sourceArray","destinationArray","destinationIndex","m_changes","m_originalStart","m_modifiedStart","m_originalCount","m_modifiedCount","originalIndex","modifiedIndex","MarkNextChange","originalSequence","modifiedSequence","continueProcessingPredicate","ContinueProcessingPredicate","_originalSequence","_modifiedSequence","originalStringElements","originalElementsOrHash","originalHasStrings","_getElements","modifiedStringElements","modifiedElementsOrHash","modifiedHasStrings","_hasStrings","_originalStringElements","_originalElementsOrHash","_modifiedStringElements","_modifiedElementsOrHash","m_forwardHistory","m_reverseHistory","sequence","getElements","_isStringArray","hashes","ElementsAreEqual","originalElement","_getStrictElement","modifiedElement","getStrictElement","index1","index2","_ComputeDiff","originalEnd","modifiedEnd","quitEarlyArr","ComputeDiffRecursive","PrettifyChanges","quitEarly","Assert","midOriginalArr","midModifiedArr","ComputeRecursionPoint","midOriginal","midModified","leftChanges","rightChanges","ConcatenateChanges","diagonalForwardBase","diagonalForwardStart","diagonalForwardEnd","diagonalForwardOffset","diagonalReverseBase","diagonalReverseStart","diagonalReverseEnd","diagonalReverseOffset","forwardPoints","reversePoints","deltaIsEven","forwardChanges","reverseChanges","changeHelper","diagonalMin","diagonalMax","diagonalRelative","lastOriginalIndex","historyIndex","diagonal","AddModifiedElement","AddOriginalElement","getReverseChanges","originalStartPoint","modifiedStartPoint","lastForwardChange","getOriginalEnd","getModifiedEnd","maxDifferences","numDiagonals","numDifferences","furthestOriginalIndex","furthestModifiedIndex","ClipDiagonalBound","tempOriginalIndex","WALKTRACE","matchLengthOfLongest","Copy2","originalStop","modifiedStop","checkOriginal","checkModified","OriginalElementsAreEqual","ModifiedElementsAreEqual","startStrictEqual","ElementsAreStrictEqual","endStrictEqual","mergedChangeArr","ChangesOverlap","prevChange","bestDelta","bestScore","_boundaryScore","touchingPreviousChange","score","aChange","bChange","matchedLength","aOriginalStart","bOriginalEnd","abOriginalLength","aModifiedStart","bModifiedEnd","abModifiedLength","_findBetterContiguousSequence","originalMatchStart","modifiedMatchStart","desiredLength","originalMax","modifiedMax","bestOriginalStart","bestModifiedStart","_contiguousSequenceScore","_OriginalIsBoundary","_ModifiedIsBoundary","originalScore","_OriginalRegionIsBoundary","modifiedScore","_ModifiedRegionIsBoundary","Copy","diagonalBaseIndex","diagonalsBelow","diagonalsAbove","diffEven","lowerBoundEven","upperBoundEven","CHAR_UPPERCASE_A","CHAR_LOWERCASE_A","CHAR_UPPERCASE_Z","CHAR_LOWERCASE_Z","CHAR_DOT","CHAR_FORWARD_SLASH","CHAR_BACKWARD_SLASH","CHAR_COLON","CHAR_QUESTION_MARK","ErrorInvalidArgType","determiner","validateString","isPathSeparator","isPosixPathSeparator","isWindowsDeviceRoot","normalizeString","allowAboveRoot","lastSegmentLength","lastSlash","dots","lastSlashIndex","_format","pathObject","win32","pathSegments","resolvedDevice","resolvedTail","resolvedAbsolute","rootEnd","device","isAbsolute","firstPart","joined","needsReplace","slashCount","firstLen","normalize","fromOrig","toOrig","fromStart","fromEnd","fromLen","toStart","toEnd","toLen","lastCommonSep","fromCode","matchedSlash","extIdx","firstNonSlashEnd","startDot","startPart","preDotState","delimiter","posix","hasRoot","dirname","extname","_schemePattern","_singleSlashStart","_doubleSlashStart","_validateUri","_strict","_schemeFix","_referenceResolution","_slash","_regexp","schemeOrData","fsPath","uriToFsPath","Uri","percentDecode","uri","pathFragment","skipEncoding","_asFormatted","_formatted","external","_fsPath","_sep","_pathSepMarker","$mid","encodeTable","encodeURIComponentFast","uriComponent","allowSlash","nativeEncodePos","encodeURIComponentMinimal","keepDriveLetterCasing","encoder","userinfo","decodeURIComponentGraceful","decodeURIComponent","_rEncodedAsHex","Position","newLineNumber","newColumn","deltaLineNumber","deltaColumn","isBefore","isBeforeOrEqual","aLineNumber","bLineNumber","aColumn","bColumn","startLineNumber","startColumn","endLineNumber","endColumn","containsPosition","containsRange","otherRange","strictContainsRange","plusRange","intersectRanges","resultStartLineNumber","resultStartColumn","resultEndLineNumber","resultEndColumn","otherStartLineNumber","otherStartColumn","otherEndLineNumber","otherEndColumn","equalsRange","getEndPosition","getStartPosition","collapseToStart","aStartLineNumber","bStartLineNumber","aStartColumn","bStartColumn","aEndLineNumber","bEndLineNumber","aEndColumn","bEndColumn","aExists","bExists","MINIMUM_MATCHING_CHARACTER_LENGTH","computeDiff","diffAlgo","LineSequence","startColumns","endColumns","getFirstNonBlankColumn","getLastNonBlankColumn","_startColumns","_endColumns","shouldIgnoreTrimWhitespace","lineNumbers","columns","col","CharSequence","_charCodes","_lineNumbers","_columns","CharChange","originalStartLineNumber","originalStartColumn","originalEndLineNumber","originalEndColumn","modifiedStartLineNumber","modifiedStartColumn","modifiedEndLineNumber","modifiedEndColumn","diffChange","originalCharSequence","modifiedCharSequence","getStartLineNumber","getStartColumn","getEndLineNumber","getEndColumn","postProcessCharChanges","rawChanges","currChange","originalMatchingLength","modifiedMatchingLength","matchingLength","LineChange","charChanges","originalLineSequence","modifiedLineSequence","continueCharDiff","shouldComputeCharChanges","shouldPostProcessCharChanges","createCharSequence","createFromDiffChange","DiffComputer","originalLines","modifiedLines","shouldMakePrettyDiff","continueLineDiff","createContinueProcessingPredicate","maxComputationTime","diffResult","lineChanges","createFromDiffResult","originalLineIndex","modifiedLineIndex","originalLine","modifiedLine","originalChar","modifiedChar","_pushTrimWhitespaceCharChange","originalMaxColumn","modifiedMaxColumn","originalLineNumber","modifiedLineNumber","_mergeTrimWhitespaceCharChange","txt","maximumRuntime","startTime","toUint8","toUint32","PrefixSumIndexOfResult","_prefixSumIndexOfResultBrand","prefixSum","Uint32Array","prefixSumValidIndex","insertValues","oldValues","oldPrefixSum","insertValuesLen","subarray","maxCount","_getPrefixSum","getTotalSum","midStop","midStart","eol","versionId","_uri","_lines","_eol","_versionId","_lineStarts","_cachedTextValue","_acceptDeleteRange","_acceptInsertText","eolLength","linesLength","lineStartValues","changeValue","_setLineText","removeValues","insertLines","newLengths","USUAL_WORD_SEPARATORS","createWordRegExp","allowInWords","DEFAULT_WORD_REGEXP","ensureValidWordDefinition","wordDefinition","multiline","unicode","_defaultConfig","maxLen","windowSize","timeBudget","getWordAtText","textOffset","prevRegexIndex","regexIndex","thisMatch","_findRegexMatchEnclosingPosition","matchIndex","_defaultValue","_asciiMap","_createAsciiMap","_map","asciiMap","Uint8Matrix","rows","cols","StateMachine","edges","maxCharCode","maxState","states","_states","_maxCharCode","_stateMachine","getStateMachine","_classifier","getClassifier","FORCE_TERMINATION_CHARACTERS","CANNOT_END_WITH_CHARACTERS","LinkComputer","linkBeginIndex","linkEndIndex","lastIncludedCharIndex","chClass","charCodeBeforeLink","lastCharCodeInLink","model","stateMachine","getLineContent","linkBeginChCode","hasOpenParens","hasOpenSquareBracket","inSquareBrackets","hasOpenCurlyBracket","resetStateMachine","_createLink","computeLinks","BasicInplaceReplace","_defaultValueSet","text1","text2","up","doNavigateValueSet","numberResult","numberReplace","textReplace","precision","n1","n2","parseFloat","valueSetsReplace","valueSets","valueSetReplace","valueSet","INSTANCE","shortcutEvent","CancellationToken","isCancellationToken","Cancelled","onCancellationRequested","_isCancelled","_emitter","CancellationTokenSource","_token","_parentListener","cancel","KeyCodeStrMap","_keyCodeToStr","_strToKeyCode","keyCode","uiMap","userSettingsUSMap","userSettingsGeneralMap","EVENT_KEY_CODE_MAP","NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE","scanCodeIntToStr","scanCodeStrToInt","scanCodeLowerCaseStrToInt","IMMUTABLE_CODE_TO_KEY_CODE","IMMUTABLE_KEY_CODE_TO_CODE","KeyCodeUtils","AccessibilitySupport","CompletionItemInsertTextRule","CompletionItemKind","CompletionItemTag","ContentWidgetPositionPreference","CursorChangeReason","DefaultEndOfLine","DocumentHighlightKind","EditorAutoIndentStrategy","EditorOption","EndOfLinePreference","EndOfLineSequence","IndentAction","InlineCompletionTriggerKind","KeyCode","MarkerSeverity","MarkerTag","MinimapPosition","MouseTargetType","OverlayWidgetPositionPreference","OverviewRulerLane","RenderLineNumbersType","RenderMinimap","ScrollType","ScrollbarVisibility","SelectionDirection","SignatureHelpTriggerKind","SymbolKind","SymbolTag","TextEditorCursorBlinkingStyle","TextEditorCursorStyle","TrackedRangeStickiness","WrappingIndent","KeyChord","secondPart","chordPart","seenKeyCode","seenScanCode","_keyCodeOrd","immutable","scanCode","scanCodeStr","keyCodeStr","eventKeyCode","vkey","usUserSettingsLabel","generalUserSettingsLabel","keyCodeToStr","strToKeyCode","toUserSettingsUS","toUserSettingsGeneral","fromUserSettings","toElectronAccelerator","selectionStartLineNumber","selectionStartColumn","positionLineNumber","positionColumn","selectionsEqual","getDirection","sel","direction","_tokenBrand","createMonacoBaseAPI","editor","languages","Emitter","KeyMod","Range","Selection","CtrlCmd","Shift","Alt","WinCtrl","__awaiter","_arguments","P","generator","adopt","fulfilled","rejected","wordAtText","wordenize","_wordenize","wordRangesIdx","wordRanges","words","_validateRange","lineEnding","startLineIndex","endLineIndex","resultLines","_validatePosition","_ensureLineStarts","getPrefixSum","getIndexOf","lineLength","isIPosition","hasChanged","maxCharacter","foreignModuleFactory","_models","_foreignModuleFactory","_foreignModule","EOL","strURL","onEvents","originalUrl","modifiedUrl","ignoreTrimWhitespace","_getModel","getLinesContent","diffComputer","identical","_modelsAreIdentical","originalLineCount","modifiedLineCount","modelUrl","lastEol","compareRangesUsingStarts","aRng","bRng","getValueInRange","_diffLimit","editOffset","offsetAt","positionAt","newEdit","modelUrls","leadingWord","wordDef","wordDefFlags","sw","wordDefRegExp","_suggestionsLimit","getLineWords","selectionText","wordRange","getWordAtPosition","navigateValueSet","createData","foreignHostMethods","fhr","foreignHost","getMirrorModels","_getModels","monaco","initialized","foreignModule","simpleWorker","onmessage","libFileMap","fileNameIsLib","resource","TypeScriptWorker","_extraLibs","_languageService","_ctx","_compilerOptions","extraLibs","_inlayHintsOptions","inlayHintsOptions","getLanguageService","getExtraLibs","allModels","models","isDefaultLibFileName","getScriptText","_getScriptText","libizedFileName","TS","TSX","JS","eslib","getLibFiles","clearFiles","tsDiagnostics","tsDiagnostics_1","tsDiagnostic","tsRelatedDiagnostic","relatedDiagnostic","postion","updateExtraLibs","originalModule","webpackPolyfill","normalizeArray","trailingSlash","fromParts","toParts","samePartsLength","outputParts"],"mappings":"aACE,IAAIA,EAAmB,GAGvB,SAASC,EAAoBC,GAG5B,GAAGF,EAAiBE,GACnB,OAAOF,EAAiBE,GAAUC,QAGnC,IAAIC,EAASJ,EAAiBE,GAAY,CACzCG,EAAGH,EACHI,GAAG,EACHH,QAAS,IAUV,OANAI,EAAQL,GAAUM,KAAKJ,EAAOD,QAASC,EAAQA,EAAOD,QAASF,GAG/DG,EAAOE,GAAI,EAGJF,EAAOD,QAKfF,EAAoBQ,EAAIF,EAGxBN,EAAoBS,EAAIV,EAGxBC,EAAoBU,EAAI,SAASR,EAASS,EAAMC,GAC3CZ,EAAoBa,EAAEX,EAASS,IAClCG,OAAOC,eAAeb,EAASS,EAAM,CAAEK,YAAY,EAAMC,IAAKL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AATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,EAEX,SAASysG,GAA2BzsG,GAChC,OAAgB,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,EAEX,SAAS0sG,GAAqC1sG,GAC1C,OAAgB,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,GACS,MAATA,EAGX,SAAS4+F,GAAc95G,GACnB,OAAkB,MAAdA,EAAKkb,KACGlb,EAAKshC,QAA+B,MAArBthC,EAAKshC,OAAOpmB,MAAwCrc,EAAGohH,WAAWjgH,GAEtF0nH,GAAkB1nH,EAAKkb,MAIlC,SAAS2sG,GAAuB7nH,GAC5B,OAAO2nH,GAA2B3nH,EAAKkb,MAO3C,SAAS4sG,GAA6B9nH,GAClC,OAAO4nH,GAAqC5nH,EAAKkb,MAIrD,SAAS6sG,GAAY/nH,GACjB,IAAIkb,EAAOlb,EAAKkb,KAChB,OAAO0sG,GAAqC1sG,IACrCysG,GAA2BzsG,IAC3B8sG,GAAiBhoH,GAG5B,SAASgoH,GAAiBhoH,GACtB,OAAkB,MAAdA,EAAKkb,aAEWpkB,IAAhBkJ,EAAKshC,QACoB,MAArBthC,EAAKshC,OAAOpmB,MAAwD,MAArBlb,EAAKshC,OAAOpmB,QAI3Drc,EAAGopH,gBAAgBjoH,IAM/B,SAASkoH,GAAmBloH,GACxB,IAAIkb,EAAOlb,EAAKkb,KAChB,OAAO0sG,GAAqC1sG,IACrCysG,GAA2BzsG,IAClB,MAATA,EAKX,SAASitG,GAAkBnoH,GACvB,IAAIkb,EAAOlb,EAAK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tH,SAASqpjB,EAA2BjoF,EAAal4d,GAC7C,IAAIqijB,EAAWD,EAA8BpijB,GACzC+zI,EAAYsua,GAAYnqF,EAAY3qO,qBAAqB80T,GAE7D,OAAOxjjB,EAAG6Q,QAAQqkI,GAAaA,EAAUn6B,aAAa,SAAUllH,GAAK,OAAOmK,EAAGq4G,eAAexiH,KAAOmK,EAAG2kB,mBAAmB9uB,MAE/H,SAAS0rjB,EAAkBpgjB,GACvB,OAAQA,EAAKkb,MACT,KAAK,IACL,KAAK,IACL,KAAK,IACD,OAAO,EACX,QACI,OAAO,GA7SnBozhB,EAAeoR,wBAA0BA,EAwFzCpR,EAAeC,uBAAyBA,EAgBxCD,EAAe4S,4BAA8BA,EAkC7C5S,EAAeiT,0BAA4BA,EAoI3CjT,EAAeyS,wBAA0BA,GArW7C,CAuYoBlijB,EAAGyviB,iBAAmBzviB,EAAGyviB,eAAiB,KAzYlE,CA0YGzviB,IAAOA,EAAK,KAGf,SAAWA,IAEP,SAAWqxhB,GACP,IAgFIoyB,EACAC,EAjFAC,EAAgB,CAChB,WACA,SACA,QACA,WACA,QACA,WACA,SACA,UACA,WACA,QACA,YACA,WACA,cACA,aACA,YACA,UACA,aACA,cACA,QACA,OACA,QACA,UACA,UACA,UACA,WACA,QACA,OACA,eACA,QACA,WACA,YACA,SACA,kBACA,OACA,SACA,aACA,aACA,QACA,WACA,YACA,OACA,QACA,UACA,OACA,UACA,SACA,WACA,SACA,QACA,SACA,OACA,YACA,WACA,UACA,QACA,UACA,WACA,YACA,SACA,WACA,WACA,UACA,MACA,QACA,SACA,UACA,WACA,OACA,SACA,OACA,WACA,OACA,UACA,MACA,YACA,UACA,UACA,UAIJ,SAASC,EAAiCrliB,EAAcsE,GAOpD,IAAIwe,EAAQ,GAsBZ,OArBArhC,EAAGmxgB,cAAc5yf,GAAc,SAAUw8F,GACrC,IAAK,IAAI50G,EAAK,EAAG5O,EAAKssjB,EAAsB9oc,GAAc50G,EAAK5O,EAAGqD,OAAQuL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WpR,GAC3B,GAAa,KAATy7C,GASS,IAATvkC,IAGFgspB,GAAe,EACfhspB,EAAMlX,EAAI,GAEC,KAATy7C,GAEkB,IAAd4nnB,EACFA,EAAWrjqB,EACY,IAAhBujqB,IACPA,EAAc,IACK,IAAdF,IAGTE,GAAe,QArBb,IAAKL,EAAc,CACjBI,EAAYtjqB,EAAI,EAChB,OAuBR,OAAkB,IAAdqjqB,IAA4B,IAATnspB,GAEH,IAAhBqspB,GAEgB,IAAhBA,GAAqBF,IAAanspB,EAAM,GAAKmspB,IAAaC,EAAY,EACjE,GAEFp8pB,EAAKb,MAAMg9pB,EAAUnspB,IAa9B,IAAIkL,EAA6B,MAApB,KAAKA,QAAQ,GACpB,SAAU7B,EAAKpP,EAAO/L,GAAO,OAAOmb,EAAI6B,OAAOjR,EAAO/L,IACtD,SAAUmb,EAAKpP,EAAO/L,GAEpB,OADI+L,EAAQ,IAAGA,EAAQoP,EAAIlb,OAAS8L,GAC7BoP,EAAI6B,OAAOjR,EAAO/L,M","file":"ts.worker.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = \"d0c7\");\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar _a;\nconst LANGUAGE_DEFAULT = 'en';\nlet _isWindows = false;\nlet _isMacintosh = false;\nlet _isLinux = false;\nlet _isLinuxSnap = false;\nlet _isNative = false;\nlet _isWeb = false;\nlet _isIOS = false;\nlet _locale = undefined;\nlet _language = LANGUAGE_DEFAULT;\nlet _translationsConfigFile = undefined;\nlet _userAgent = undefined;\nexport const globals = (typeof self === 'object' ? self : typeof global === 'object' ? global : {});\nlet nodeProcess = undefined;\nif (typeof globals.vscode !== 'undefined' && typeof globals.vscode.process !== 'undefined') {\n // Native environment (sandboxed)\n nodeProcess = globals.vscode.process;\n}\nelse if (typeof process !== 'undefined') {\n // Native environment (non-sandboxed)\n nodeProcess = process;\n}\nconst isElectronRenderer = typeof ((_a = nodeProcess === null || nodeProcess === void 0 ? void 0 : nodeProcess.versions) === null || _a === void 0 ? void 0 : _a.electron) === 'string' && nodeProcess.type === 'renderer';\n// Web environment\nif (typeof navigator === 'object' && !isElectronRenderer) {\n _userAgent = navigator.userAgent;\n _isWindows = _userAgent.indexOf('Windows') >= 0;\n _isMacintosh = _userAgent.indexOf('Macintosh') >= 0;\n _isIOS = (_userAgent.indexOf('Macintosh') >= 0 || _userAgent.indexOf('iPad') >= 0 || _userAgent.indexOf('iPhone') >= 0) && !!navigator.maxTouchPoints && navigator.maxTouchPoints > 0;\n _isLinux = _userAgent.indexOf('Linux') >= 0;\n _isWeb = true;\n _locale = navigator.language;\n _language = _locale;\n}\n// Native environment\nelse if (typeof nodeProcess === 'object') {\n _isWindows = (nodeProcess.platform === 'win32');\n _isMacintosh = (nodeProcess.platform === 'darwin');\n _isLinux = (nodeProcess.platform === 'linux');\n _isLinuxSnap = _isLinux && !!nodeProcess.env['SNAP'] && !!nodeProcess.env['SNAP_REVISION'];\n _locale = LANGUAGE_DEFAULT;\n _language = LANGUAGE_DEFAULT;\n const rawNlsConfig = nodeProcess.env['VSCODE_NLS_CONFIG'];\n if (rawNlsConfig) {\n try {\n const nlsConfig = JSON.parse(rawNlsConfig);\n const resolved = nlsConfig.availableLanguages['*'];\n _locale = nlsConfig.locale;\n // VSCode's default language is 'en'\n _language = resolved ? resolved : LANGUAGE_DEFAULT;\n _translationsConfigFile = nlsConfig._translationsConfigFile;\n }\n catch (e) {\n }\n }\n _isNative = true;\n}\n// Unknown environment\nelse {\n console.error('Unable to resolve platform.');\n}\nlet _platform = 0 /* Web */;\nif (_isMacintosh) {\n _platform = 1 /* Mac */;\n}\nelse if (_isWindows) {\n _platform = 3 /* Windows */;\n}\nelse if (_isLinux) {\n _platform = 2 /* Linux */;\n}\nexport const isWindows = _isWindows;\nexport const isMacintosh = _isMacintosh;\nexport const isLinux = _isLinux;\nexport const isNative = _isNative;\nexport const isWeb = _isWeb;\nexport const isIOS = _isIOS;\nexport const userAgent = _userAgent;\nexport const setImmediate = (function defineSetImmediate() {\n if (globals.setImmediate) {\n return globals.setImmediate.bind(globals);\n }\n if (typeof globals.postMessage === 'function' && !globals.importScripts) {\n let pending = [];\n globals.addEventListener('message', (e) => {\n if (e.data && e.data.vscodeSetImmediateId) {\n for (let i = 0, len = pending.length; i < len; i++) {\n const candidate = pending[i];\n if (candidate.id === e.data.vscodeSetImmediateId) {\n pending.splice(i, 1);\n candidate.callback();\n return;\n }\n }\n }\n });\n let lastId = 0;\n return (callback) => {\n const myId = ++lastId;\n pending.push({\n id: myId,\n callback: callback\n });\n globals.postMessage({ vscodeSetImmediateId: myId }, '*');\n };\n }\n if (typeof (nodeProcess === null || nodeProcess === void 0 ? void 0 : nodeProcess.nextTick) === 'function') {\n return nodeProcess.nextTick.bind(nodeProcess);\n }\n const _promise = Promise.resolve();\n return (callback) => _promise.then(callback);\n})();\nexport const OS = (_isMacintosh || _isIOS ? 2 /* Macintosh */ : (_isWindows ? 1 /* Windows */ : 3 /* Linux */));\nlet _isLittleEndian = true;\nlet _isLittleEndianComputed = false;\nexport function isLittleEndian() {\n if (!_isLittleEndianComputed) {\n _isLittleEndianComputed = true;\n const test = new Uint8Array(2);\n test[0] = 1;\n test[1] = 2;\n const view = new Uint16Array(test.buffer);\n _isLittleEndian = (view[0] === (2 << 8) + 1);\n }\n return _isLittleEndian;\n}\n","exports.nextTick = function nextTick(fn) {\n var args = Array.prototype.slice.call(arguments);\n args.shift();\n setTimeout(function () {\n fn.apply(null, args);\n }, 0);\n};\n\nexports.platform = exports.arch = \nexports.execPath = exports.title = 'browser';\nexports.pid = 1;\nexports.browser = true;\nexports.env = {};\nexports.argv = [];\n\nexports.binding = function (name) {\n\tthrow new Error('No such module. (Possibly not yet loaded)')\n};\n\n(function () {\n var cwd = '/';\n var path;\n exports.cwd = function () { return cwd };\n exports.chdir = function (dir) {\n if (!path) path = require('path');\n cwd = path.resolve(dir, cwd);\n };\n})();\n\nexports.exit = exports.kill = \nexports.umask = exports.dlopen = \nexports.uptime = exports.memoryUsage = \nexports.uvCounters = function() {};\nexports.features = {};\n","//\n// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`\n//\n/*! *****************************************************************************\nCopyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthis file except in compliance with the License. You may obtain a copy of the\nLicense at http://www.apache.org/licenses/LICENSE-2.0\n\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\nMERCHANTABLITY OR NON-INFRINGEMENT.\n\nSee the Apache Version 2.0 License for specific language governing permissions\nand limitations under the License.\n***************************************************************************** */\n\n\"use strict\";\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\n return cooked;\n};\nvar __generator = (this && this.__generator) || function (thisArg, body) {\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\n function verb(n) { return function (v) { return step([n, v]); }; }\n function step(op) {\n if (f) throw new TypeError(\"Generator is already executing.\");\n while (_) try {\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\n if (y = 0, t) op = [op[0] & 2, t.value];\n switch (op[0]) {\n case 0: case 1: t = op; break;\n case 4: _.label++; return { value: op[1], done: false };\n case 5: _.label++; y = op[1]; op = [0]; continue;\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\n default:\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\n if (t[2]) _.ops.pop();\n _.trys.pop(); continue;\n }\n op = body.call(thisArg, _);\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\n }\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n/* @internal */\nvar ts;\n(function (ts) {\n function createMapData() {\n var sentinel = {};\n sentinel.prev = sentinel;\n return { head: sentinel, tail: sentinel, size: 0 };\n }\n function createMapEntry(key, value) {\n return { key: key, value: value, next: undefined, prev: undefined };\n }\n function sameValueZero(x, y) {\n // Treats -0 === 0 and NaN === NaN\n return x === y || x !== x && y !== y;\n }\n function getPrev(entry) {\n var prev = entry.prev;\n // Entries without a 'prev' have been removed from the map.\n // An entry whose 'prev' points to itself is the head of the list and is invalid here.\n if (!prev || prev === entry)\n throw new Error(\"Illegal state\");\n return prev;\n }\n function getNext(entry) {\n while (entry) {\n // Entries without a 'prev' have been removed from the map. Their 'next'\n // pointer should point to the previous entry prior to deletion and\n // that entry should be skipped to resume iteration.\n var skipNext = !entry.prev;\n entry = entry.next;\n if (skipNext) {\n continue;\n }\n return entry;\n }\n }\n function getEntry(data, key) {\n // We walk backwards from 'tail' to prioritize recently added entries.\n // We skip 'head' because it is an empty entry used to track iteration start.\n for (var entry = data.tail; entry !== data.head; entry = getPrev(entry)) {\n if (sameValueZero(entry.key, key)) {\n return entry;\n }\n }\n }\n function addOrUpdateEntry(data, key, value) {\n var existing = getEntry(data, key);\n if (existing) {\n existing.value = value;\n return;\n }\n var entry = createMapEntry(key, value);\n entry.prev = data.tail;\n data.tail.next = entry;\n data.tail = entry;\n data.size++;\n return entry;\n }\n function deleteEntry(data, key) {\n // We walk backwards from 'tail' to prioritize recently added entries.\n // We skip 'head' because it is an empty entry used to track iteration start.\n for (var entry = data.tail; entry !== data.head; entry = getPrev(entry)) {\n // all entries in the map should have a 'prev' pointer.\n if (entry.prev === undefined)\n throw new Error(\"Illegal state\");\n if (sameValueZero(entry.key, key)) {\n if (entry.next) {\n entry.next.prev = entry.prev;\n }\n else {\n // an entry in the map without a 'next' pointer must be the 'tail'.\n if (data.tail !== entry)\n throw new Error(\"Illegal state\");\n data.tail = entry.prev;\n }\n entry.prev.next = entry.next;\n entry.next = entry.prev;\n entry.prev = undefined;\n data.size--;\n return entry;\n }\n }\n }\n function clearEntries(data) {\n var node = data.tail;\n while (node !== data.head) {\n var prev = getPrev(node);\n node.next = data.head;\n node.prev = undefined;\n node = prev;\n }\n data.head.next = undefined;\n data.tail = data.head;\n data.size = 0;\n }\n function forEachEntry(data, action) {\n var entry = data.head;\n while (entry) {\n entry = getNext(entry);\n if (entry) {\n action(entry.value, entry.key);\n }\n }\n }\n function forEachIteration(iterator, action) {\n if (iterator) {\n for (var step = iterator.next(); !step.done; step = iterator.next()) {\n action(step.value);\n }\n }\n }\n function createIteratorData(data, selector) {\n return { current: data.head, selector: selector };\n }\n function iteratorNext(data) {\n // Navigate to the next entry.\n data.current = getNext(data.current);\n if (data.current) {\n return { value: data.selector(data.current.key, data.current.value), done: false };\n }\n else {\n return { value: undefined, done: true };\n }\n }\n /* @internal */\n var ShimCollections;\n (function (ShimCollections) {\n function createMapShim(getIterator) {\n var MapIterator = /** @class */ (function () {\n function MapIterator(data, selector) {\n this._data = createIteratorData(data, selector);\n }\n MapIterator.prototype.next = function () { return iteratorNext(this._data); };\n return MapIterator;\n }());\n return /** @class */ (function () {\n function Map(iterable) {\n var _this = this;\n this._mapData = createMapData();\n forEachIteration(getIterator(iterable), function (_a) {\n var key = _a[0], value = _a[1];\n return _this.set(key, value);\n });\n }\n Object.defineProperty(Map.prototype, \"size\", {\n get: function () { return this._mapData.size; },\n enumerable: false,\n configurable: true\n });\n Map.prototype.get = function (key) { var _a; return (_a = getEntry(this._mapData, key)) === null || _a === void 0 ? void 0 : _a.value; };\n Map.prototype.set = function (key, value) { return addOrUpdateEntry(this._mapData, key, value), this; };\n Map.prototype.has = function (key) { return !!getEntry(this._mapData, key); };\n Map.prototype.delete = function (key) { return !!deleteEntry(this._mapData, key); };\n Map.prototype.clear = function () { clearEntries(this._mapData); };\n Map.prototype.keys = function () { return new MapIterator(this._mapData, function (key, _value) { return key; }); };\n Map.prototype.values = function () { return new MapIterator(this._mapData, function (_key, value) { return value; }); };\n Map.prototype.entries = function () { return new MapIterator(this._mapData, function (key, value) { return [key, value]; }); };\n Map.prototype.forEach = function (action) { forEachEntry(this._mapData, action); };\n return Map;\n }());\n }\n ShimCollections.createMapShim = createMapShim;\n function createSetShim(getIterator) {\n var SetIterator = /** @class */ (function () {\n function SetIterator(data, selector) {\n this._data = createIteratorData(data, selector);\n }\n SetIterator.prototype.next = function () { return iteratorNext(this._data); };\n return SetIterator;\n }());\n return /** @class */ (function () {\n function Set(iterable) {\n var _this = this;\n this._mapData = createMapData();\n forEachIteration(getIterator(iterable), function (value) { return _this.add(value); });\n }\n Object.defineProperty(Set.prototype, \"size\", {\n get: function () { return this._mapData.size; },\n enumerable: false,\n configurable: true\n });\n Set.prototype.add = function (value) { return addOrUpdateEntry(this._mapData, value, value), this; };\n Set.prototype.has = function (value) { return !!getEntry(this._mapData, value); };\n Set.prototype.delete = function (value) { return !!deleteEntry(this._mapData, value); };\n Set.prototype.clear = function () { clearEntries(this._mapData); };\n Set.prototype.keys = function () { return new SetIterator(this._mapData, function (key, _value) { return key; }); };\n Set.prototype.values = function () { return new SetIterator(this._mapData, function (_key, value) { return value; }); };\n Set.prototype.entries = function () { return new SetIterator(this._mapData, function (key, value) { return [key, value]; }); };\n Set.prototype.forEach = function (action) { forEachEntry(this._mapData, action); };\n return Set;\n }());\n }\n ShimCollections.createSetShim = createSetShim;\n })(ShimCollections = ts.ShimCollections || (ts.ShimCollections = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n // WARNING: The script `configurePrerelease.ts` uses a regexp to parse out these values.\n // If changing the text in this section, be sure to test `configurePrerelease` too.\n ts.versionMajorMinor = \"4.4\";\n // The following is baselined as a literal template type without intervention\n /** The version of the TypeScript compiler release */\n // eslint-disable-next-line @typescript-eslint/no-inferrable-types\n ts.version = \"4.4.4\";\n /* @internal */\n var Comparison;\n (function (Comparison) {\n Comparison[Comparison[\"LessThan\"] = -1] = \"LessThan\";\n Comparison[Comparison[\"EqualTo\"] = 0] = \"EqualTo\";\n Comparison[Comparison[\"GreaterThan\"] = 1] = \"GreaterThan\";\n })(Comparison = ts.Comparison || (ts.Comparison = {}));\n /* @internal */\n var NativeCollections;\n (function (NativeCollections) {\n /**\n * Returns the native Map implementation if it is available and compatible (i.e. supports iteration).\n */\n function tryGetNativeMap() {\n // Internet Explorer's Map doesn't support iteration, so don't use it.\n // eslint-disable-next-line no-in-operator\n return typeof Map !== \"undefined\" && \"entries\" in Map.prototype && new Map([[0, 0]]).size === 1 ? Map : undefined;\n }\n NativeCollections.tryGetNativeMap = tryGetNativeMap;\n /**\n * Returns the native Set implementation if it is available and compatible (i.e. supports iteration).\n */\n function tryGetNativeSet() {\n // Internet Explorer's Set doesn't support iteration, so don't use it.\n // eslint-disable-next-line no-in-operator\n return typeof Set !== \"undefined\" && \"entries\" in Set.prototype && new Set([0]).size === 1 ? Set : undefined;\n }\n NativeCollections.tryGetNativeSet = tryGetNativeSet;\n })(NativeCollections = ts.NativeCollections || (ts.NativeCollections = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function getCollectionImplementation(name, nativeFactory, shimFactory) {\n var _a;\n // NOTE: ts.ShimCollections will be defined for typescriptServices.js but not for tsc.js, so we must test for it.\n var constructor = (_a = ts.NativeCollections[nativeFactory]()) !== null && _a !== void 0 ? _a : ts.ShimCollections === null || ts.ShimCollections === void 0 ? void 0 : ts.ShimCollections[shimFactory](getIterator);\n if (constructor)\n return constructor;\n throw new Error(\"TypeScript requires an environment that provides a compatible native \" + name + \" implementation.\");\n }\n ts.Map = getCollectionImplementation(\"Map\", \"tryGetNativeMap\", \"createMapShim\");\n ts.Set = getCollectionImplementation(\"Set\", \"tryGetNativeSet\", \"createSetShim\");\n function getIterator(iterable) {\n if (iterable) {\n if (isArray(iterable))\n return arrayIterator(iterable);\n if (iterable instanceof ts.Map)\n return iterable.entries();\n if (iterable instanceof ts.Set)\n return iterable.values();\n throw new Error(\"Iteration not supported.\");\n }\n }\n ts.getIterator = getIterator;\n ts.emptyArray = [];\n ts.emptyMap = new ts.Map();\n ts.emptySet = new ts.Set();\n function createMap() {\n return new ts.Map();\n }\n ts.createMap = createMap;\n /**\n * Create a new map from a template object is provided, the map will copy entries from it.\n * @deprecated Use `new Map(getEntries(template))` instead.\n */\n function createMapFromTemplate(template) {\n var map = new ts.Map();\n // Copies keys/values from template. Note that for..in will not throw if\n // template is undefined, and instead will just exit the loop.\n for (var key in template) {\n if (hasOwnProperty.call(template, key)) {\n map.set(key, template[key]);\n }\n }\n return map;\n }\n ts.createMapFromTemplate = createMapFromTemplate;\n function length(array) {\n return array ? array.length : 0;\n }\n ts.length = length;\n /**\n * Iterates through 'array' by index and performs the callback on each element of array until the callback\n * returns a truthy value, then returns that value.\n * If no such value is found, the callback is applied to each element of array and undefined is returned.\n */\n function forEach(array, callback) {\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var result = callback(array[i], i);\n if (result) {\n return result;\n }\n }\n }\n return undefined;\n }\n ts.forEach = forEach;\n /**\n * Like `forEach`, but iterates in reverse order.\n */\n function forEachRight(array, callback) {\n if (array) {\n for (var i = array.length - 1; i >= 0; i--) {\n var result = callback(array[i], i);\n if (result) {\n return result;\n }\n }\n }\n return undefined;\n }\n ts.forEachRight = forEachRight;\n /** Like `forEach`, but suitable for use with numbers and strings (which may be falsy). */\n function firstDefined(array, callback) {\n if (array === undefined) {\n return undefined;\n }\n for (var i = 0; i < array.length; i++) {\n var result = callback(array[i], i);\n if (result !== undefined) {\n return result;\n }\n }\n return undefined;\n }\n ts.firstDefined = firstDefined;\n function firstDefinedIterator(iter, callback) {\n while (true) {\n var iterResult = iter.next();\n if (iterResult.done) {\n return undefined;\n }\n var result = callback(iterResult.value);\n if (result !== undefined) {\n return result;\n }\n }\n }\n ts.firstDefinedIterator = firstDefinedIterator;\n function reduceLeftIterator(iterator, f, initial) {\n var result = initial;\n if (iterator) {\n for (var step = iterator.next(), pos = 0; !step.done; step = iterator.next(), pos++) {\n result = f(result, step.value, pos);\n }\n }\n return result;\n }\n ts.reduceLeftIterator = reduceLeftIterator;\n function zipWith(arrayA, arrayB, callback) {\n var result = [];\n ts.Debug.assertEqual(arrayA.length, arrayB.length);\n for (var i = 0; i < arrayA.length; i++) {\n result.push(callback(arrayA[i], arrayB[i], i));\n }\n return result;\n }\n ts.zipWith = zipWith;\n function zipToIterator(arrayA, arrayB) {\n ts.Debug.assertEqual(arrayA.length, arrayB.length);\n var i = 0;\n return {\n next: function () {\n if (i === arrayA.length) {\n return { value: undefined, done: true };\n }\n i++;\n return { value: [arrayA[i - 1], arrayB[i - 1]], done: false };\n }\n };\n }\n ts.zipToIterator = zipToIterator;\n function zipToMap(keys, values) {\n ts.Debug.assert(keys.length === values.length);\n var map = new ts.Map();\n for (var i = 0; i < keys.length; ++i) {\n map.set(keys[i], values[i]);\n }\n return map;\n }\n ts.zipToMap = zipToMap;\n /**\n * Creates a new array with `element` interspersed in between each element of `input`\n * if there is more than 1 value in `input`. Otherwise, returns the existing array.\n */\n function intersperse(input, element) {\n if (input.length <= 1) {\n return input;\n }\n var result = [];\n for (var i = 0, n = input.length; i < n; i++) {\n if (i)\n result.push(element);\n result.push(input[i]);\n }\n return result;\n }\n ts.intersperse = intersperse;\n /**\n * Iterates through `array` by index and performs the callback on each element of array until the callback\n * returns a falsey value, then returns false.\n * If no such value is found, the callback is applied to each element of array and `true` is returned.\n */\n function every(array, callback) {\n if (array) {\n for (var i = 0; i < array.length; i++) {\n if (!callback(array[i], i)) {\n return false;\n }\n }\n }\n return true;\n }\n ts.every = every;\n function find(array, predicate) {\n for (var i = 0; i < array.length; i++) {\n var value = array[i];\n if (predicate(value, i)) {\n return value;\n }\n }\n return undefined;\n }\n ts.find = find;\n function findLast(array, predicate) {\n for (var i = array.length - 1; i >= 0; i--) {\n var value = array[i];\n if (predicate(value, i)) {\n return value;\n }\n }\n return undefined;\n }\n ts.findLast = findLast;\n /** Works like Array.prototype.findIndex, returning `-1` if no element satisfying the predicate is found. */\n function findIndex(array, predicate, startIndex) {\n for (var i = startIndex || 0; i < array.length; i++) {\n if (predicate(array[i], i)) {\n return i;\n }\n }\n return -1;\n }\n ts.findIndex = findIndex;\n function findLastIndex(array, predicate, startIndex) {\n for (var i = startIndex === undefined ? array.length - 1 : startIndex; i >= 0; i--) {\n if (predicate(array[i], i)) {\n return i;\n }\n }\n return -1;\n }\n ts.findLastIndex = findLastIndex;\n /**\n * Returns the first truthy result of `callback`, or else fails.\n * This is like `forEach`, but never returns undefined.\n */\n function findMap(array, callback) {\n for (var i = 0; i < array.length; i++) {\n var result = callback(array[i], i);\n if (result) {\n return result;\n }\n }\n return ts.Debug.fail();\n }\n ts.findMap = findMap;\n function contains(array, value, equalityComparer) {\n if (equalityComparer === void 0) { equalityComparer = equateValues; }\n if (array) {\n for (var _i = 0, array_1 = array; _i < array_1.length; _i++) {\n var v = array_1[_i];\n if (equalityComparer(v, value)) {\n return true;\n }\n }\n }\n return false;\n }\n ts.contains = contains;\n function arraysEqual(a, b, equalityComparer) {\n if (equalityComparer === void 0) { equalityComparer = equateValues; }\n return a.length === b.length && a.every(function (x, i) { return equalityComparer(x, b[i]); });\n }\n ts.arraysEqual = arraysEqual;\n function indexOfAnyCharCode(text, charCodes, start) {\n for (var i = start || 0; i < text.length; i++) {\n if (contains(charCodes, text.charCodeAt(i))) {\n return i;\n }\n }\n return -1;\n }\n ts.indexOfAnyCharCode = indexOfAnyCharCode;\n function countWhere(array, predicate) {\n var count = 0;\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var v = array[i];\n if (predicate(v, i)) {\n count++;\n }\n }\n }\n return count;\n }\n ts.countWhere = countWhere;\n function filter(array, f) {\n if (array) {\n var len = array.length;\n var i = 0;\n while (i < len && f(array[i]))\n i++;\n if (i < len) {\n var result = array.slice(0, i);\n i++;\n while (i < len) {\n var item = array[i];\n if (f(item)) {\n result.push(item);\n }\n i++;\n }\n return result;\n }\n }\n return array;\n }\n ts.filter = filter;\n function filterMutate(array, f) {\n var outIndex = 0;\n for (var i = 0; i < array.length; i++) {\n if (f(array[i], i, array)) {\n array[outIndex] = array[i];\n outIndex++;\n }\n }\n array.length = outIndex;\n }\n ts.filterMutate = filterMutate;\n function clear(array) {\n array.length = 0;\n }\n ts.clear = clear;\n function map(array, f) {\n var result;\n if (array) {\n result = [];\n for (var i = 0; i < array.length; i++) {\n result.push(f(array[i], i));\n }\n }\n return result;\n }\n ts.map = map;\n function mapIterator(iter, mapFn) {\n return {\n next: function () {\n var iterRes = iter.next();\n return iterRes.done ? iterRes : { value: mapFn(iterRes.value), done: false };\n }\n };\n }\n ts.mapIterator = mapIterator;\n function sameMap(array, f) {\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var item = array[i];\n var mapped = f(item, i);\n if (item !== mapped) {\n var result = array.slice(0, i);\n result.push(mapped);\n for (i++; i < array.length; i++) {\n result.push(f(array[i], i));\n }\n return result;\n }\n }\n }\n return array;\n }\n ts.sameMap = sameMap;\n /**\n * Flattens an array containing a mix of array or non-array elements.\n *\n * @param array The array to flatten.\n */\n function flatten(array) {\n var result = [];\n for (var _i = 0, array_2 = array; _i < array_2.length; _i++) {\n var v = array_2[_i];\n if (v) {\n if (isArray(v)) {\n addRange(result, v);\n }\n else {\n result.push(v);\n }\n }\n }\n return result;\n }\n ts.flatten = flatten;\n /**\n * Maps an array. If the mapped value is an array, it is spread into the result.\n *\n * @param array The array to map.\n * @param mapfn The callback used to map the result into one or more values.\n */\n function flatMap(array, mapfn) {\n var result;\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var v = mapfn(array[i], i);\n if (v) {\n if (isArray(v)) {\n result = addRange(result, v);\n }\n else {\n result = append(result, v);\n }\n }\n }\n }\n return result || ts.emptyArray;\n }\n ts.flatMap = flatMap;\n function flatMapToMutable(array, mapfn) {\n var result = [];\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var v = mapfn(array[i], i);\n if (v) {\n if (isArray(v)) {\n addRange(result, v);\n }\n else {\n result.push(v);\n }\n }\n }\n }\n return result;\n }\n ts.flatMapToMutable = flatMapToMutable;\n function flatMapIterator(iter, mapfn) {\n var first = iter.next();\n if (first.done) {\n return ts.emptyIterator;\n }\n var currentIter = getIterator(first.value);\n return {\n next: function () {\n while (true) {\n var currentRes = currentIter.next();\n if (!currentRes.done) {\n return currentRes;\n }\n var iterRes = iter.next();\n if (iterRes.done) {\n return iterRes;\n }\n currentIter = getIterator(iterRes.value);\n }\n },\n };\n function getIterator(x) {\n var res = mapfn(x);\n return res === undefined ? ts.emptyIterator : isArray(res) ? arrayIterator(res) : res;\n }\n }\n ts.flatMapIterator = flatMapIterator;\n function sameFlatMap(array, mapfn) {\n var result;\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var item = array[i];\n var mapped = mapfn(item, i);\n if (result || item !== mapped || isArray(mapped)) {\n if (!result) {\n result = array.slice(0, i);\n }\n if (isArray(mapped)) {\n addRange(result, mapped);\n }\n else {\n result.push(mapped);\n }\n }\n }\n }\n return result || array;\n }\n ts.sameFlatMap = sameFlatMap;\n function mapAllOrFail(array, mapFn) {\n var result = [];\n for (var i = 0; i < array.length; i++) {\n var mapped = mapFn(array[i], i);\n if (mapped === undefined) {\n return undefined;\n }\n result.push(mapped);\n }\n return result;\n }\n ts.mapAllOrFail = mapAllOrFail;\n function mapDefined(array, mapFn) {\n var result = [];\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var mapped = mapFn(array[i], i);\n if (mapped !== undefined) {\n result.push(mapped);\n }\n }\n }\n return result;\n }\n ts.mapDefined = mapDefined;\n function mapDefinedIterator(iter, mapFn) {\n return {\n next: function () {\n while (true) {\n var res = iter.next();\n if (res.done) {\n return res;\n }\n var value = mapFn(res.value);\n if (value !== undefined) {\n return { value: value, done: false };\n }\n }\n }\n };\n }\n ts.mapDefinedIterator = mapDefinedIterator;\n function mapDefinedEntries(map, f) {\n if (!map) {\n return undefined;\n }\n var result = new ts.Map();\n map.forEach(function (value, key) {\n var entry = f(key, value);\n if (entry !== undefined) {\n var newKey = entry[0], newValue = entry[1];\n if (newKey !== undefined && newValue !== undefined) {\n result.set(newKey, newValue);\n }\n }\n });\n return result;\n }\n ts.mapDefinedEntries = mapDefinedEntries;\n function mapDefinedValues(set, f) {\n if (set) {\n var result_1 = new ts.Set();\n set.forEach(function (value) {\n var newValue = f(value);\n if (newValue !== undefined) {\n result_1.add(newValue);\n }\n });\n return result_1;\n }\n }\n ts.mapDefinedValues = mapDefinedValues;\n function getOrUpdate(map, key, callback) {\n if (map.has(key)) {\n return map.get(key);\n }\n var value = callback();\n map.set(key, value);\n return value;\n }\n ts.getOrUpdate = getOrUpdate;\n function tryAddToSet(set, value) {\n if (!set.has(value)) {\n set.add(value);\n return true;\n }\n return false;\n }\n ts.tryAddToSet = tryAddToSet;\n ts.emptyIterator = { next: function () { return ({ value: undefined, done: true }); } };\n function singleIterator(value) {\n var done = false;\n return {\n next: function () {\n var wasDone = done;\n done = true;\n return wasDone ? { value: undefined, done: true } : { value: value, done: false };\n }\n };\n }\n ts.singleIterator = singleIterator;\n function spanMap(array, keyfn, mapfn) {\n var result;\n if (array) {\n result = [];\n var len = array.length;\n var previousKey = void 0;\n var key = void 0;\n var start = 0;\n var pos = 0;\n while (start < len) {\n while (pos < len) {\n var value = array[pos];\n key = keyfn(value, pos);\n if (pos === 0) {\n previousKey = key;\n }\n else if (key !== previousKey) {\n break;\n }\n pos++;\n }\n if (start < pos) {\n var v = mapfn(array.slice(start, pos), previousKey, start, pos);\n if (v) {\n result.push(v);\n }\n start = pos;\n }\n previousKey = key;\n pos++;\n }\n }\n return result;\n }\n ts.spanMap = spanMap;\n function mapEntries(map, f) {\n if (!map) {\n return undefined;\n }\n var result = new ts.Map();\n map.forEach(function (value, key) {\n var _a = f(key, value), newKey = _a[0], newValue = _a[1];\n result.set(newKey, newValue);\n });\n return result;\n }\n ts.mapEntries = mapEntries;\n function some(array, predicate) {\n if (array) {\n if (predicate) {\n for (var _i = 0, array_3 = array; _i < array_3.length; _i++) {\n var v = array_3[_i];\n if (predicate(v)) {\n return true;\n }\n }\n }\n else {\n return array.length > 0;\n }\n }\n return false;\n }\n ts.some = some;\n /** Calls the callback with (start, afterEnd) index pairs for each range where 'pred' is true. */\n function getRangesWhere(arr, pred, cb) {\n var start;\n for (var i = 0; i < arr.length; i++) {\n if (pred(arr[i])) {\n start = start === undefined ? i : start;\n }\n else {\n if (start !== undefined) {\n cb(start, i);\n start = undefined;\n }\n }\n }\n if (start !== undefined)\n cb(start, arr.length);\n }\n ts.getRangesWhere = getRangesWhere;\n function concatenate(array1, array2) {\n if (!some(array2))\n return array1;\n if (!some(array1))\n return array2;\n return __spreadArray(__spreadArray([], array1, true), array2, true);\n }\n ts.concatenate = concatenate;\n function selectIndex(_, i) {\n return i;\n }\n function indicesOf(array) {\n return array.map(selectIndex);\n }\n ts.indicesOf = indicesOf;\n function deduplicateRelational(array, equalityComparer, comparer) {\n // Perform a stable sort of the array. This ensures the first entry in a list of\n // duplicates remains the first entry in the result.\n var indices = indicesOf(array);\n stableSortIndices(array, indices, comparer);\n var last = array[indices[0]];\n var deduplicated = [indices[0]];\n for (var i = 1; i < indices.length; i++) {\n var index = indices[i];\n var item = array[index];\n if (!equalityComparer(last, item)) {\n deduplicated.push(index);\n last = item;\n }\n }\n // restore original order\n deduplicated.sort();\n return deduplicated.map(function (i) { return array[i]; });\n }\n function deduplicateEquality(array, equalityComparer) {\n var result = [];\n for (var _i = 0, array_4 = array; _i < array_4.length; _i++) {\n var item = array_4[_i];\n pushIfUnique(result, item, equalityComparer);\n }\n return result;\n }\n /**\n * Deduplicates an unsorted array.\n * @param equalityComparer An `EqualityComparer` used to determine if two values are duplicates.\n * @param comparer An optional `Comparer` used to sort entries before comparison, though the\n * result will remain in the original order in `array`.\n */\n function deduplicate(array, equalityComparer, comparer) {\n return array.length === 0 ? [] :\n array.length === 1 ? array.slice() :\n comparer ? deduplicateRelational(array, equalityComparer, comparer) :\n deduplicateEquality(array, equalityComparer);\n }\n ts.deduplicate = deduplicate;\n /**\n * Deduplicates an array that has already been sorted.\n */\n function deduplicateSorted(array, comparer) {\n if (array.length === 0)\n return ts.emptyArray;\n var last = array[0];\n var deduplicated = [last];\n for (var i = 1; i < array.length; i++) {\n var next = array[i];\n switch (comparer(next, last)) {\n // equality comparison\n case true:\n // relational comparison\n // falls through\n case 0 /* EqualTo */:\n continue;\n case -1 /* LessThan */:\n // If `array` is sorted, `next` should **never** be less than `last`.\n return ts.Debug.fail(\"Array is unsorted.\");\n }\n deduplicated.push(last = next);\n }\n return deduplicated;\n }\n function insertSorted(array, insert, compare) {\n if (array.length === 0) {\n array.push(insert);\n return;\n }\n var insertIndex = binarySearch(array, insert, identity, compare);\n if (insertIndex < 0) {\n array.splice(~insertIndex, 0, insert);\n }\n }\n ts.insertSorted = insertSorted;\n function sortAndDeduplicate(array, comparer, equalityComparer) {\n return deduplicateSorted(sort(array, comparer), equalityComparer || comparer || compareStringsCaseSensitive);\n }\n ts.sortAndDeduplicate = sortAndDeduplicate;\n function arrayIsSorted(array, comparer) {\n if (array.length < 2)\n return true;\n var prevElement = array[0];\n for (var _i = 0, _a = array.slice(1); _i < _a.length; _i++) {\n var element = _a[_i];\n if (comparer(prevElement, element) === 1 /* GreaterThan */) {\n return false;\n }\n prevElement = element;\n }\n return true;\n }\n ts.arrayIsSorted = arrayIsSorted;\n function arrayIsEqualTo(array1, array2, equalityComparer) {\n if (equalityComparer === void 0) { equalityComparer = equateValues; }\n if (!array1 || !array2) {\n return array1 === array2;\n }\n if (array1.length !== array2.length) {\n return false;\n }\n for (var i = 0; i < array1.length; i++) {\n if (!equalityComparer(array1[i], array2[i], i)) {\n return false;\n }\n }\n return true;\n }\n ts.arrayIsEqualTo = arrayIsEqualTo;\n function compact(array) {\n var result;\n if (array) {\n for (var i = 0; i < array.length; i++) {\n var v = array[i];\n if (result || !v) {\n if (!result) {\n result = array.slice(0, i);\n }\n if (v) {\n result.push(v);\n }\n }\n }\n }\n return result || array;\n }\n ts.compact = compact;\n /**\n * Gets the relative complement of `arrayA` with respect to `arrayB`, returning the elements that\n * are not present in `arrayA` but are present in `arrayB`. Assumes both arrays are sorted\n * based on the provided comparer.\n */\n function relativeComplement(arrayA, arrayB, comparer) {\n if (!arrayB || !arrayA || arrayB.length === 0 || arrayA.length === 0)\n return arrayB;\n var result = [];\n loopB: for (var offsetA = 0, offsetB = 0; offsetB < arrayB.length; offsetB++) {\n if (offsetB > 0) {\n // Ensure `arrayB` is properly sorted.\n ts.Debug.assertGreaterThanOrEqual(comparer(arrayB[offsetB], arrayB[offsetB - 1]), 0 /* EqualTo */);\n }\n loopA: for (var startA = offsetA; offsetA < arrayA.length; offsetA++) {\n if (offsetA > startA) {\n // Ensure `arrayA` is properly sorted. We only need to perform this check if\n // `offsetA` has changed since we entered the loop.\n ts.Debug.assertGreaterThanOrEqual(comparer(arrayA[offsetA], arrayA[offsetA - 1]), 0 /* EqualTo */);\n }\n switch (comparer(arrayB[offsetB], arrayA[offsetA])) {\n case -1 /* LessThan */:\n // If B is less than A, B does not exist in arrayA. Add B to the result and\n // move to the next element in arrayB without changing the current position\n // in arrayA.\n result.push(arrayB[offsetB]);\n continue loopB;\n case 0 /* EqualTo */:\n // If B is equal to A, B exists in arrayA. Move to the next element in\n // arrayB without adding B to the result or changing the current position\n // in arrayA.\n continue loopB;\n case 1 /* GreaterThan */:\n // If B is greater than A, we need to keep looking for B in arrayA. Move to\n // the next element in arrayA and recheck.\n continue loopA;\n }\n }\n }\n return result;\n }\n ts.relativeComplement = relativeComplement;\n function sum(array, prop) {\n var result = 0;\n for (var _i = 0, array_5 = array; _i < array_5.length; _i++) {\n var v = array_5[_i];\n result += v[prop];\n }\n return result;\n }\n ts.sum = sum;\n function append(to, value) {\n if (value === undefined)\n return to;\n if (to === undefined)\n return [value];\n to.push(value);\n return to;\n }\n ts.append = append;\n function combine(xs, ys) {\n if (xs === undefined)\n return ys;\n if (ys === undefined)\n return xs;\n if (isArray(xs))\n return isArray(ys) ? concatenate(xs, ys) : append(xs, ys);\n if (isArray(ys))\n return append(ys, xs);\n return [xs, ys];\n }\n ts.combine = combine;\n /**\n * Gets the actual offset into an array for a relative offset. Negative offsets indicate a\n * position offset from the end of the array.\n */\n function toOffset(array, offset) {\n return offset < 0 ? array.length + offset : offset;\n }\n function addRange(to, from, start, end) {\n if (from === undefined || from.length === 0)\n return to;\n if (to === undefined)\n return from.slice(start, end);\n start = start === undefined ? 0 : toOffset(from, start);\n end = end === undefined ? from.length : toOffset(from, end);\n for (var i = start; i < end && i < from.length; i++) {\n if (from[i] !== undefined) {\n to.push(from[i]);\n }\n }\n return to;\n }\n ts.addRange = addRange;\n /**\n * @return Whether the value was added.\n */\n function pushIfUnique(array, toAdd, equalityComparer) {\n if (contains(array, toAdd, equalityComparer)) {\n return false;\n }\n else {\n array.push(toAdd);\n return true;\n }\n }\n ts.pushIfUnique = pushIfUnique;\n /**\n * Unlike `pushIfUnique`, this can take `undefined` as an input, and returns a new array.\n */\n function appendIfUnique(array, toAdd, equalityComparer) {\n if (array) {\n pushIfUnique(array, toAdd, equalityComparer);\n return array;\n }\n else {\n return [toAdd];\n }\n }\n ts.appendIfUnique = appendIfUnique;\n function stableSortIndices(array, indices, comparer) {\n // sort indices by value then position\n indices.sort(function (x, y) { return comparer(array[x], array[y]) || compareValues(x, y); });\n }\n /**\n * Returns a new sorted array.\n */\n function sort(array, comparer) {\n return (array.length === 0 ? array : array.slice().sort(comparer));\n }\n ts.sort = sort;\n function arrayIterator(array) {\n var i = 0;\n return { next: function () {\n if (i === array.length) {\n return { value: undefined, done: true };\n }\n else {\n i++;\n return { value: array[i - 1], done: false };\n }\n } };\n }\n ts.arrayIterator = arrayIterator;\n function arrayReverseIterator(array) {\n var i = array.length;\n return {\n next: function () {\n if (i === 0) {\n return { value: undefined, done: true };\n }\n else {\n i--;\n return { value: array[i], done: false };\n }\n }\n };\n }\n ts.arrayReverseIterator = arrayReverseIterator;\n /**\n * Stable sort of an array. Elements equal to each other maintain their relative position in the array.\n */\n function stableSort(array, comparer) {\n var indices = indicesOf(array);\n stableSortIndices(array, indices, comparer);\n return indices.map(function (i) { return array[i]; });\n }\n ts.stableSort = stableSort;\n function rangeEquals(array1, array2, pos, end) {\n while (pos < end) {\n if (array1[pos] !== array2[pos]) {\n return false;\n }\n pos++;\n }\n return true;\n }\n ts.rangeEquals = rangeEquals;\n /**\n * Returns the element at a specific offset in an array if non-empty, `undefined` otherwise.\n * A negative offset indicates the element should be retrieved from the end of the array.\n */\n function elementAt(array, offset) {\n if (array) {\n offset = toOffset(array, offset);\n if (offset < array.length) {\n return array[offset];\n }\n }\n return undefined;\n }\n ts.elementAt = elementAt;\n /**\n * Returns the first element of an array if non-empty, `undefined` otherwise.\n */\n function firstOrUndefined(array) {\n return array.length === 0 ? undefined : array[0];\n }\n ts.firstOrUndefined = firstOrUndefined;\n function first(array) {\n ts.Debug.assert(array.length !== 0);\n return array[0];\n }\n ts.first = first;\n /**\n * Returns the last element of an array if non-empty, `undefined` otherwise.\n */\n function lastOrUndefined(array) {\n return array.length === 0 ? undefined : array[array.length - 1];\n }\n ts.lastOrUndefined = lastOrUndefined;\n function last(array) {\n ts.Debug.assert(array.length !== 0);\n return array[array.length - 1];\n }\n ts.last = last;\n /**\n * Returns the only element of an array if it contains only one element, `undefined` otherwise.\n */\n function singleOrUndefined(array) {\n return array && array.length === 1\n ? array[0]\n : undefined;\n }\n ts.singleOrUndefined = singleOrUndefined;\n function singleOrMany(array) {\n return array && array.length === 1\n ? array[0]\n : array;\n }\n ts.singleOrMany = singleOrMany;\n function replaceElement(array, index, value) {\n var result = array.slice(0);\n result[index] = value;\n return result;\n }\n ts.replaceElement = replaceElement;\n /**\n * Performs a binary search, finding the index at which `value` occurs in `array`.\n * If no such index is found, returns the 2's-complement of first index at which\n * `array[index]` exceeds `value`.\n * @param array A sorted array whose first element must be no larger than number\n * @param value The value to be searched for in the array.\n * @param keySelector A callback used to select the search key from `value` and each element of\n * `array`.\n * @param keyComparer A callback used to compare two keys in a sorted array.\n * @param offset An offset into `array` at which to start the search.\n */\n function binarySearch(array, value, keySelector, keyComparer, offset) {\n return binarySearchKey(array, keySelector(value), keySelector, keyComparer, offset);\n }\n ts.binarySearch = binarySearch;\n /**\n * Performs a binary search, finding the index at which an object with `key` occurs in `array`.\n * If no such index is found, returns the 2's-complement of first index at which\n * `array[index]` exceeds `key`.\n * @param array A sorted array whose first element must be no larger than number\n * @param key The key to be searched for in the array.\n * @param keySelector A callback used to select the search key from each element of `array`.\n * @param keyComparer A callback used to compare two keys in a sorted array.\n * @param offset An offset into `array` at which to start the search.\n */\n function binarySearchKey(array, key, keySelector, keyComparer, offset) {\n if (!some(array)) {\n return -1;\n }\n var low = offset || 0;\n var high = array.length - 1;\n while (low <= high) {\n var middle = low + ((high - low) >> 1);\n var midKey = keySelector(array[middle], middle);\n switch (keyComparer(midKey, key)) {\n case -1 /* LessThan */:\n low = middle + 1;\n break;\n case 0 /* EqualTo */:\n return middle;\n case 1 /* GreaterThan */:\n high = middle - 1;\n break;\n }\n }\n return ~low;\n }\n ts.binarySearchKey = binarySearchKey;\n function reduceLeft(array, f, initial, start, count) {\n if (array && array.length > 0) {\n var size = array.length;\n if (size > 0) {\n var pos = start === undefined || start < 0 ? 0 : start;\n var end = count === undefined || pos + count > size - 1 ? size - 1 : pos + count;\n var result = void 0;\n if (arguments.length <= 2) {\n result = array[pos];\n pos++;\n }\n else {\n result = initial;\n }\n while (pos <= end) {\n result = f(result, array[pos], pos);\n pos++;\n }\n return result;\n }\n }\n return initial;\n }\n ts.reduceLeft = reduceLeft;\n var hasOwnProperty = Object.prototype.hasOwnProperty;\n /**\n * Indicates whether a map-like contains an own property with the specified key.\n *\n * @param map A map-like.\n * @param key A property key.\n */\n function hasProperty(map, key) {\n return hasOwnProperty.call(map, key);\n }\n ts.hasProperty = hasProperty;\n /**\n * Gets the value of an owned property in a map-like.\n *\n * @param map A map-like.\n * @param key A property key.\n */\n function getProperty(map, key) {\n return hasOwnProperty.call(map, key) ? map[key] : undefined;\n }\n ts.getProperty = getProperty;\n /**\n * Gets the owned, enumerable property keys of a map-like.\n */\n function getOwnKeys(map) {\n var keys = [];\n for (var key in map) {\n if (hasOwnProperty.call(map, key)) {\n keys.push(key);\n }\n }\n return keys;\n }\n ts.getOwnKeys = getOwnKeys;\n function getAllKeys(obj) {\n var result = [];\n do {\n var names = Object.getOwnPropertyNames(obj);\n for (var _i = 0, names_1 = names; _i < names_1.length; _i++) {\n var name = names_1[_i];\n pushIfUnique(result, name);\n }\n } while (obj = Object.getPrototypeOf(obj));\n return result;\n }\n ts.getAllKeys = getAllKeys;\n function getOwnValues(sparseArray) {\n var values = [];\n for (var key in sparseArray) {\n if (hasOwnProperty.call(sparseArray, key)) {\n values.push(sparseArray[key]);\n }\n }\n return values;\n }\n ts.getOwnValues = getOwnValues;\n var _entries = Object.entries || (function (obj) {\n var keys = getOwnKeys(obj);\n var result = Array(keys.length);\n for (var i = 0; i < keys.length; i++) {\n result[i] = [keys[i], obj[keys[i]]];\n }\n return result;\n });\n function getEntries(obj) {\n return obj ? _entries(obj) : [];\n }\n ts.getEntries = getEntries;\n function arrayOf(count, f) {\n var result = new Array(count);\n for (var i = 0; i < count; i++) {\n result[i] = f(i);\n }\n return result;\n }\n ts.arrayOf = arrayOf;\n function arrayFrom(iterator, map) {\n var result = [];\n for (var iterResult = iterator.next(); !iterResult.done; iterResult = iterator.next()) {\n result.push(map ? map(iterResult.value) : iterResult.value);\n }\n return result;\n }\n ts.arrayFrom = arrayFrom;\n function assign(t) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n for (var _a = 0, args_1 = args; _a < args_1.length; _a++) {\n var arg = args_1[_a];\n if (arg === undefined)\n continue;\n for (var p in arg) {\n if (hasProperty(arg, p)) {\n t[p] = arg[p];\n }\n }\n }\n return t;\n }\n ts.assign = assign;\n /**\n * Performs a shallow equality comparison of the contents of two map-likes.\n *\n * @param left A map-like whose properties should be compared.\n * @param right A map-like whose properties should be compared.\n */\n function equalOwnProperties(left, right, equalityComparer) {\n if (equalityComparer === void 0) { equalityComparer = equateValues; }\n if (left === right)\n return true;\n if (!left || !right)\n return false;\n for (var key in left) {\n if (hasOwnProperty.call(left, key)) {\n if (!hasOwnProperty.call(right, key))\n return false;\n if (!equalityComparer(left[key], right[key]))\n return false;\n }\n }\n for (var key in right) {\n if (hasOwnProperty.call(right, key)) {\n if (!hasOwnProperty.call(left, key))\n return false;\n }\n }\n return true;\n }\n ts.equalOwnProperties = equalOwnProperties;\n function arrayToMap(array, makeKey, makeValue) {\n if (makeValue === void 0) { makeValue = identity; }\n var result = new ts.Map();\n for (var _i = 0, array_6 = array; _i < array_6.length; _i++) {\n var value = array_6[_i];\n var key = makeKey(value);\n if (key !== undefined)\n result.set(key, makeValue(value));\n }\n return result;\n }\n ts.arrayToMap = arrayToMap;\n function arrayToNumericMap(array, makeKey, makeValue) {\n if (makeValue === void 0) { makeValue = identity; }\n var result = [];\n for (var _i = 0, array_7 = array; _i < array_7.length; _i++) {\n var value = array_7[_i];\n result[makeKey(value)] = makeValue(value);\n }\n return result;\n }\n ts.arrayToNumericMap = arrayToNumericMap;\n function arrayToMultiMap(values, makeKey, makeValue) {\n if (makeValue === void 0) { makeValue = identity; }\n var result = createMultiMap();\n for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {\n var value = values_1[_i];\n result.add(makeKey(value), makeValue(value));\n }\n return result;\n }\n ts.arrayToMultiMap = arrayToMultiMap;\n function group(values, getGroupId, resultSelector) {\n if (resultSelector === void 0) { resultSelector = identity; }\n return arrayFrom(arrayToMultiMap(values, getGroupId).values(), resultSelector);\n }\n ts.group = group;\n function clone(object) {\n var result = {};\n for (var id in object) {\n if (hasOwnProperty.call(object, id)) {\n result[id] = object[id];\n }\n }\n return result;\n }\n ts.clone = clone;\n /**\n * Creates a new object by adding the own properties of `second`, then the own properties of `first`.\n *\n * NOTE: This means that if a property exists in both `first` and `second`, the property in `first` will be chosen.\n */\n function extend(first, second) {\n var result = {};\n for (var id in second) {\n if (hasOwnProperty.call(second, id)) {\n result[id] = second[id];\n }\n }\n for (var id in first) {\n if (hasOwnProperty.call(first, id)) {\n result[id] = first[id];\n }\n }\n return result;\n }\n ts.extend = extend;\n function copyProperties(first, second) {\n for (var id in second) {\n if (hasOwnProperty.call(second, id)) {\n first[id] = second[id];\n }\n }\n }\n ts.copyProperties = copyProperties;\n function maybeBind(obj, fn) {\n return fn ? fn.bind(obj) : undefined;\n }\n ts.maybeBind = maybeBind;\n function createMultiMap() {\n var map = new ts.Map();\n map.add = multiMapAdd;\n map.remove = multiMapRemove;\n return map;\n }\n ts.createMultiMap = createMultiMap;\n function multiMapAdd(key, value) {\n var values = this.get(key);\n if (values) {\n values.push(value);\n }\n else {\n this.set(key, values = [value]);\n }\n return values;\n }\n function multiMapRemove(key, value) {\n var values = this.get(key);\n if (values) {\n unorderedRemoveItem(values, value);\n if (!values.length) {\n this.delete(key);\n }\n }\n }\n function createUnderscoreEscapedMultiMap() {\n return createMultiMap();\n }\n ts.createUnderscoreEscapedMultiMap = createUnderscoreEscapedMultiMap;\n /**\n * Tests whether a value is an array.\n */\n function isArray(value) {\n return Array.isArray ? Array.isArray(value) : value instanceof Array;\n }\n ts.isArray = isArray;\n function toArray(value) {\n return isArray(value) ? value : [value];\n }\n ts.toArray = toArray;\n /**\n * Tests whether a value is string\n */\n function isString(text) {\n return typeof text === \"string\";\n }\n ts.isString = isString;\n function isNumber(x) {\n return typeof x === \"number\";\n }\n ts.isNumber = isNumber;\n function tryCast(value, test) {\n return value !== undefined && test(value) ? value : undefined;\n }\n ts.tryCast = tryCast;\n function cast(value, test) {\n if (value !== undefined && test(value))\n return value;\n return ts.Debug.fail(\"Invalid cast. The supplied value \" + value + \" did not pass the test '\" + ts.Debug.getFunctionName(test) + \"'.\");\n }\n ts.cast = cast;\n /** Does nothing. */\n function noop(_) { }\n ts.noop = noop;\n /** Do nothing and return false */\n function returnFalse() { return false; }\n ts.returnFalse = returnFalse;\n /** Do nothing and return true */\n function returnTrue() { return true; }\n ts.returnTrue = returnTrue;\n /** Do nothing and return undefined */\n function returnUndefined() { return undefined; }\n ts.returnUndefined = returnUndefined;\n /** Returns its argument. */\n function identity(x) { return x; }\n ts.identity = identity;\n /** Returns lower case string */\n function toLowerCase(x) { return x.toLowerCase(); }\n ts.toLowerCase = toLowerCase;\n // We convert the file names to lower case as key for file name on case insensitive file system\n // While doing so we need to handle special characters (eg \\u0130) to ensure that we dont convert\n // it to lower case, fileName with its lowercase form can exist along side it.\n // Handle special characters and make those case sensitive instead\n //\n // |-#--|-Unicode--|-Char code-|-Desc-------------------------------------------------------------------|\n // | 1. | i | 105 | Ascii i |\n // | 2. | I | 73 | Ascii I |\n // |-------- Special characters ------------------------------------------------------------------------|\n // | 3. | \\u0130 | 304 | Upper case I with dot above |\n // | 4. | i,\\u0307 | 105,775 | i, followed by 775: Lower case of (3rd item) |\n // | 5. | I,\\u0307 | 73,775 | I, followed by 775: Upper case of (4th item), lower case is (4th item) |\n // | 6. | \\u0131 | 305 | Lower case i without dot, upper case is I (2nd item) |\n // | 7. | \\u00DF | 223 | Lower case sharp s |\n //\n // Because item 3 is special where in its lowercase character has its own\n // upper case form we cant convert its case.\n // Rest special characters are either already in lower case format or\n // they have corresponding upper case character so they dont need special handling\n //\n // But to avoid having to do string building for most common cases, also ignore\n // a-z, 0-9, \\u0131, \\u00DF, \\, /, ., : and space\n var fileNameLowerCaseRegExp = /[^\\u0130\\u0131\\u00DFa-z0-9\\\\/:\\-_\\. ]+/g;\n /**\n * Case insensitive file systems have descripencies in how they handle some characters (eg. turkish Upper case I with dot on top - \\u0130)\n * This function is used in places where we want to make file name as a key on these systems\n * It is possible on mac to be able to refer to file name with I with dot on top as a fileName with its lower case form\n * But on windows we cannot. Windows can have fileName with I with dot on top next to its lower case and they can not each be referred with the lowercase forms\n * Technically we would want this function to be platform sepcific as well but\n * our api has till now only taken caseSensitive as the only input and just for some characters we dont want to update API and ensure all customers use those api\n * We could use upper case and we would still need to deal with the descripencies but\n * we want to continue using lower case since in most cases filenames are lowercasewe and wont need any case changes and avoid having to store another string for the key\n * So for this function purpose, we go ahead and assume character I with dot on top it as case sensitive since its very unlikely to use lower case form of that special character\n */\n function toFileNameLowerCase(x) {\n return fileNameLowerCaseRegExp.test(x) ?\n x.replace(fileNameLowerCaseRegExp, toLowerCase) :\n x;\n }\n ts.toFileNameLowerCase = toFileNameLowerCase;\n /** Throws an error because a function is not implemented. */\n function notImplemented() {\n throw new Error(\"Not implemented\");\n }\n ts.notImplemented = notImplemented;\n function memoize(callback) {\n var value;\n return function () {\n if (callback) {\n value = callback();\n callback = undefined;\n }\n return value;\n };\n }\n ts.memoize = memoize;\n /** A version of `memoize` that supports a single primitive argument */\n function memoizeOne(callback) {\n var map = new ts.Map();\n return function (arg) {\n var key = typeof arg + \":\" + arg;\n var value = map.get(key);\n if (value === undefined && !map.has(key)) {\n value = callback(arg);\n map.set(key, value);\n }\n return value;\n };\n }\n ts.memoizeOne = memoizeOne;\n function compose(a, b, c, d, e) {\n if (!!e) {\n var args_2 = [];\n for (var i = 0; i < arguments.length; i++) {\n args_2[i] = arguments[i];\n }\n return function (t) { return reduceLeft(args_2, function (u, f) { return f(u); }, t); };\n }\n else if (d) {\n return function (t) { return d(c(b(a(t)))); };\n }\n else if (c) {\n return function (t) { return c(b(a(t))); };\n }\n else if (b) {\n return function (t) { return b(a(t)); };\n }\n else if (a) {\n return function (t) { return a(t); };\n }\n else {\n return function (t) { return t; };\n }\n }\n ts.compose = compose;\n var AssertionLevel;\n (function (AssertionLevel) {\n AssertionLevel[AssertionLevel[\"None\"] = 0] = \"None\";\n AssertionLevel[AssertionLevel[\"Normal\"] = 1] = \"Normal\";\n AssertionLevel[AssertionLevel[\"Aggressive\"] = 2] = \"Aggressive\";\n AssertionLevel[AssertionLevel[\"VeryAggressive\"] = 3] = \"VeryAggressive\";\n })(AssertionLevel = ts.AssertionLevel || (ts.AssertionLevel = {}));\n function equateValues(a, b) {\n return a === b;\n }\n ts.equateValues = equateValues;\n /**\n * Compare the equality of two strings using a case-sensitive ordinal comparison.\n *\n * Case-sensitive comparisons compare both strings one code-point at a time using the integer\n * value of each code-point after applying `toUpperCase` to each string. We always map both\n * strings to their upper-case form as some unicode characters do not properly round-trip to\n * lowercase (such as `ẞ` (German sharp capital s)).\n */\n function equateStringsCaseInsensitive(a, b) {\n return a === b\n || a !== undefined\n && b !== undefined\n && a.toUpperCase() === b.toUpperCase();\n }\n ts.equateStringsCaseInsensitive = equateStringsCaseInsensitive;\n /**\n * Compare the equality of two strings using a case-sensitive ordinal comparison.\n *\n * Case-sensitive comparisons compare both strings one code-point at a time using the\n * integer value of each code-point.\n */\n function equateStringsCaseSensitive(a, b) {\n return equateValues(a, b);\n }\n ts.equateStringsCaseSensitive = equateStringsCaseSensitive;\n function compareComparableValues(a, b) {\n return a === b ? 0 /* EqualTo */ :\n a === undefined ? -1 /* LessThan */ :\n b === undefined ? 1 /* GreaterThan */ :\n a < b ? -1 /* LessThan */ :\n 1 /* GreaterThan */;\n }\n /**\n * Compare two numeric values for their order relative to each other.\n * To compare strings, use any of the `compareStrings` functions.\n */\n function compareValues(a, b) {\n return compareComparableValues(a, b);\n }\n ts.compareValues = compareValues;\n /**\n * Compare two TextSpans, first by `start`, then by `length`.\n */\n function compareTextSpans(a, b) {\n return compareValues(a === null || a === void 0 ? void 0 : a.start, b === null || b === void 0 ? void 0 : b.start) || compareValues(a === null || a === void 0 ? void 0 : a.length, b === null || b === void 0 ? void 0 : b.length);\n }\n ts.compareTextSpans = compareTextSpans;\n function min(a, b, compare) {\n return compare(a, b) === -1 /* LessThan */ ? a : b;\n }\n ts.min = min;\n /**\n * Compare two strings using a case-insensitive ordinal comparison.\n *\n * Ordinal comparisons are based on the difference between the unicode code points of both\n * strings. Characters with multiple unicode representations are considered unequal. Ordinal\n * comparisons provide predictable ordering, but place \"a\" after \"B\".\n *\n * Case-insensitive comparisons compare both strings one code-point at a time using the integer\n * value of each code-point after applying `toUpperCase` to each string. We always map both\n * strings to their upper-case form as some unicode characters do not properly round-trip to\n * lowercase (such as `ẞ` (German sharp capital s)).\n */\n function compareStringsCaseInsensitive(a, b) {\n if (a === b)\n return 0 /* EqualTo */;\n if (a === undefined)\n return -1 /* LessThan */;\n if (b === undefined)\n return 1 /* GreaterThan */;\n a = a.toUpperCase();\n b = b.toUpperCase();\n return a < b ? -1 /* LessThan */ : a > b ? 1 /* GreaterThan */ : 0 /* EqualTo */;\n }\n ts.compareStringsCaseInsensitive = compareStringsCaseInsensitive;\n /**\n * Compare two strings using a case-sensitive ordinal comparison.\n *\n * Ordinal comparisons are based on the difference between the unicode code points of both\n * strings. Characters with multiple unicode representations are considered unequal. Ordinal\n * comparisons provide predictable ordering, but place \"a\" after \"B\".\n *\n * Case-sensitive comparisons compare both strings one code-point at a time using the integer\n * value of each code-point.\n */\n function compareStringsCaseSensitive(a, b) {\n return compareComparableValues(a, b);\n }\n ts.compareStringsCaseSensitive = compareStringsCaseSensitive;\n function getStringComparer(ignoreCase) {\n return ignoreCase ? compareStringsCaseInsensitive : compareStringsCaseSensitive;\n }\n ts.getStringComparer = getStringComparer;\n /**\n * Creates a string comparer for use with string collation in the UI.\n */\n var createUIStringComparer = (function () {\n var defaultComparer;\n var enUSComparer;\n var stringComparerFactory = getStringComparerFactory();\n return createStringComparer;\n function compareWithCallback(a, b, comparer) {\n if (a === b)\n return 0 /* EqualTo */;\n if (a === undefined)\n return -1 /* LessThan */;\n if (b === undefined)\n return 1 /* GreaterThan */;\n var value = comparer(a, b);\n return value < 0 ? -1 /* LessThan */ : value > 0 ? 1 /* GreaterThan */ : 0 /* EqualTo */;\n }\n function createIntlCollatorStringComparer(locale) {\n // Intl.Collator.prototype.compare is bound to the collator. See NOTE in\n // http://www.ecma-international.org/ecma-402/2.0/#sec-Intl.Collator.prototype.compare\n var comparer = new Intl.Collator(locale, { usage: \"sort\", sensitivity: \"variant\" }).compare;\n return function (a, b) { return compareWithCallback(a, b, comparer); };\n }\n function createLocaleCompareStringComparer(locale) {\n // if the locale is not the default locale (`undefined`), use the fallback comparer.\n if (locale !== undefined)\n return createFallbackStringComparer();\n return function (a, b) { return compareWithCallback(a, b, compareStrings); };\n function compareStrings(a, b) {\n return a.localeCompare(b);\n }\n }\n function createFallbackStringComparer() {\n // An ordinal comparison puts \"A\" after \"b\", but for the UI we want \"A\" before \"b\".\n // We first sort case insensitively. So \"Aaa\" will come before \"baa\".\n // Then we sort case sensitively, so \"aaa\" will come before \"Aaa\".\n //\n // For case insensitive comparisons we always map both strings to their\n // upper-case form as some unicode characters do not properly round-trip to\n // lowercase (such as `ẞ` (German sharp capital s)).\n return function (a, b) { return compareWithCallback(a, b, compareDictionaryOrder); };\n function compareDictionaryOrder(a, b) {\n return compareStrings(a.toUpperCase(), b.toUpperCase()) || compareStrings(a, b);\n }\n function compareStrings(a, b) {\n return a < b ? -1 /* LessThan */ : a > b ? 1 /* GreaterThan */ : 0 /* EqualTo */;\n }\n }\n function getStringComparerFactory() {\n // If the host supports Intl, we use it for comparisons using the default locale.\n if (typeof Intl === \"object\" && typeof Intl.Collator === \"function\") {\n return createIntlCollatorStringComparer;\n }\n // If the host does not support Intl, we fall back to localeCompare.\n // localeCompare in Node v0.10 is just an ordinal comparison, so don't use it.\n if (typeof String.prototype.localeCompare === \"function\" &&\n typeof String.prototype.toLocaleUpperCase === \"function\" &&\n \"a\".localeCompare(\"B\") < 0) {\n return createLocaleCompareStringComparer;\n }\n // Otherwise, fall back to ordinal comparison:\n return createFallbackStringComparer;\n }\n function createStringComparer(locale) {\n // Hold onto common string comparers. This avoids constantly reallocating comparers during\n // tests.\n if (locale === undefined) {\n return defaultComparer || (defaultComparer = stringComparerFactory(locale));\n }\n else if (locale === \"en-US\") {\n return enUSComparer || (enUSComparer = stringComparerFactory(locale));\n }\n else {\n return stringComparerFactory(locale);\n }\n }\n })();\n var uiComparerCaseSensitive;\n var uiLocale;\n function getUILocale() {\n return uiLocale;\n }\n ts.getUILocale = getUILocale;\n function setUILocale(value) {\n if (uiLocale !== value) {\n uiLocale = value;\n uiComparerCaseSensitive = undefined;\n }\n }\n ts.setUILocale = setUILocale;\n /**\n * Compare two strings in a using the case-sensitive sort behavior of the UI locale.\n *\n * Ordering is not predictable between different host locales, but is best for displaying\n * ordered data for UI presentation. Characters with multiple unicode representations may\n * be considered equal.\n *\n * Case-sensitive comparisons compare strings that differ in base characters, or\n * accents/diacritic marks, or case as unequal.\n */\n function compareStringsCaseSensitiveUI(a, b) {\n var comparer = uiComparerCaseSensitive || (uiComparerCaseSensitive = createUIStringComparer(uiLocale));\n return comparer(a, b);\n }\n ts.compareStringsCaseSensitiveUI = compareStringsCaseSensitiveUI;\n function compareProperties(a, b, key, comparer) {\n return a === b ? 0 /* EqualTo */ :\n a === undefined ? -1 /* LessThan */ :\n b === undefined ? 1 /* GreaterThan */ :\n comparer(a[key], b[key]);\n }\n ts.compareProperties = compareProperties;\n /** True is greater than false. */\n function compareBooleans(a, b) {\n return compareValues(a ? 1 : 0, b ? 1 : 0);\n }\n ts.compareBooleans = compareBooleans;\n /**\n * Given a name and a list of names that are *not* equal to the name, return a spelling suggestion if there is one that is close enough.\n * Names less than length 3 only check for case-insensitive equality.\n *\n * find the candidate with the smallest Levenshtein distance,\n * except for candidates:\n * * With no name\n * * Whose length differs from the target name by more than 0.34 of the length of the name.\n * * Whose levenshtein distance is more than 0.4 of the length of the name\n * (0.4 allows 1 substitution/transposition for every 5 characters,\n * and 1 insertion/deletion at 3 characters)\n */\n function getSpellingSuggestion(name, candidates, getName) {\n var maximumLengthDifference = Math.min(2, Math.floor(name.length * 0.34));\n var bestDistance = Math.floor(name.length * 0.4) + 1; // If the best result is worse than this, don't bother.\n var bestCandidate;\n for (var _i = 0, candidates_1 = candidates; _i < candidates_1.length; _i++) {\n var candidate = candidates_1[_i];\n var candidateName = getName(candidate);\n if (candidateName !== undefined && Math.abs(candidateName.length - name.length) <= maximumLengthDifference) {\n if (candidateName === name) {\n continue;\n }\n // Only consider candidates less than 3 characters long when they differ by case.\n // Otherwise, don't bother, since a user would usually notice differences of a 2-character name.\n if (candidateName.length < 3 && candidateName.toLowerCase() !== name.toLowerCase()) {\n continue;\n }\n var distance = levenshteinWithMax(name, candidateName, bestDistance - 0.1);\n if (distance === undefined) {\n continue;\n }\n ts.Debug.assert(distance < bestDistance); // Else `levenshteinWithMax` should return undefined\n bestDistance = distance;\n bestCandidate = candidate;\n }\n }\n return bestCandidate;\n }\n ts.getSpellingSuggestion = getSpellingSuggestion;\n function levenshteinWithMax(s1, s2, max) {\n var previous = new Array(s2.length + 1);\n var current = new Array(s2.length + 1);\n /** Represents any value > max. We don't care about the particular value. */\n var big = max + 0.01;\n for (var i = 0; i <= s2.length; i++) {\n previous[i] = i;\n }\n for (var i = 1; i <= s1.length; i++) {\n var c1 = s1.charCodeAt(i - 1);\n var minJ = Math.ceil(i > max ? i - max : 1);\n var maxJ = Math.floor(s2.length > max + i ? max + i : s2.length);\n current[0] = i;\n /** Smallest value of the matrix in the ith column. */\n var colMin = i;\n for (var j = 1; j < minJ; j++) {\n current[j] = big;\n }\n for (var j = minJ; j <= maxJ; j++) {\n // case difference should be significantly cheaper than other differences\n var substitutionDistance = s1[i - 1].toLowerCase() === s2[j - 1].toLowerCase()\n ? (previous[j - 1] + 0.1)\n : (previous[j - 1] + 2);\n var dist = c1 === s2.charCodeAt(j - 1)\n ? previous[j - 1]\n : Math.min(/*delete*/ previous[j] + 1, /*insert*/ current[j - 1] + 1, /*substitute*/ substitutionDistance);\n current[j] = dist;\n colMin = Math.min(colMin, dist);\n }\n for (var j = maxJ + 1; j <= s2.length; j++) {\n current[j] = big;\n }\n if (colMin > max) {\n // Give up -- everything in this column is > max and it can't get better in future columns.\n return undefined;\n }\n var temp = previous;\n previous = current;\n current = temp;\n }\n var res = previous[s2.length];\n return res > max ? undefined : res;\n }\n function endsWith(str, suffix) {\n var expectedPos = str.length - suffix.length;\n return expectedPos >= 0 && str.indexOf(suffix, expectedPos) === expectedPos;\n }\n ts.endsWith = endsWith;\n function removeSuffix(str, suffix) {\n return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : str;\n }\n ts.removeSuffix = removeSuffix;\n function tryRemoveSuffix(str, suffix) {\n return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : undefined;\n }\n ts.tryRemoveSuffix = tryRemoveSuffix;\n function stringContains(str, substring) {\n return str.indexOf(substring) !== -1;\n }\n ts.stringContains = stringContains;\n /**\n * Takes a string like \"jquery-min.4.2.3\" and returns \"jquery\"\n */\n function removeMinAndVersionNumbers(fileName) {\n // We used to use the regex /[.-]((min)|(\\d+(\\.\\d+)*))$/ and would just .replace it twice.\n // Unfortunately, that regex has O(n^2) performance because v8 doesn't match from the end of the string.\n // Instead, we now essentially scan the filename (backwards) ourselves.\n var end = fileName.length;\n for (var pos = end - 1; pos > 0; pos--) {\n var ch = fileName.charCodeAt(pos);\n if (ch >= 48 /* _0 */ && ch <= 57 /* _9 */) {\n // Match a \\d+ segment\n do {\n --pos;\n ch = fileName.charCodeAt(pos);\n } while (pos > 0 && ch >= 48 /* _0 */ && ch <= 57 /* _9 */);\n }\n else if (pos > 4 && (ch === 110 /* n */ || ch === 78 /* N */)) {\n // Looking for \"min\" or \"min\"\n // Already matched the 'n'\n --pos;\n ch = fileName.charCodeAt(pos);\n if (ch !== 105 /* i */ && ch !== 73 /* I */) {\n break;\n }\n --pos;\n ch = fileName.charCodeAt(pos);\n if (ch !== 109 /* m */ && ch !== 77 /* M */) {\n break;\n }\n --pos;\n ch = fileName.charCodeAt(pos);\n }\n else {\n // This character is not part of either suffix pattern\n break;\n }\n if (ch !== 45 /* minus */ && ch !== 46 /* dot */) {\n break;\n }\n end = pos;\n }\n // end might be fileName.length, in which case this should internally no-op\n return end === fileName.length ? fileName : fileName.slice(0, end);\n }\n ts.removeMinAndVersionNumbers = removeMinAndVersionNumbers;\n /** Remove an item from an array, moving everything to its right one space left. */\n function orderedRemoveItem(array, item) {\n for (var i = 0; i < array.length; i++) {\n if (array[i] === item) {\n orderedRemoveItemAt(array, i);\n return true;\n }\n }\n return false;\n }\n ts.orderedRemoveItem = orderedRemoveItem;\n /** Remove an item by index from an array, moving everything to its right one space left. */\n function orderedRemoveItemAt(array, index) {\n // This seems to be faster than either `array.splice(i, 1)` or `array.copyWithin(i, i+ 1)`.\n for (var i = index; i < array.length - 1; i++) {\n array[i] = array[i + 1];\n }\n array.pop();\n }\n ts.orderedRemoveItemAt = orderedRemoveItemAt;\n function unorderedRemoveItemAt(array, index) {\n // Fill in the \"hole\" left at `index`.\n array[index] = array[array.length - 1];\n array.pop();\n }\n ts.unorderedRemoveItemAt = unorderedRemoveItemAt;\n /** Remove the *first* occurrence of `item` from the array. */\n function unorderedRemoveItem(array, item) {\n return unorderedRemoveFirstItemWhere(array, function (element) { return element === item; });\n }\n ts.unorderedRemoveItem = unorderedRemoveItem;\n /** Remove the *first* element satisfying `predicate`. */\n function unorderedRemoveFirstItemWhere(array, predicate) {\n for (var i = 0; i < array.length; i++) {\n if (predicate(array[i])) {\n unorderedRemoveItemAt(array, i);\n return true;\n }\n }\n return false;\n }\n function createGetCanonicalFileName(useCaseSensitiveFileNames) {\n return useCaseSensitiveFileNames ? identity : toFileNameLowerCase;\n }\n ts.createGetCanonicalFileName = createGetCanonicalFileName;\n function patternText(_a) {\n var prefix = _a.prefix, suffix = _a.suffix;\n return prefix + \"*\" + suffix;\n }\n ts.patternText = patternText;\n /**\n * Given that candidate matches pattern, returns the text matching the '*'.\n * E.g.: matchedText(tryParsePattern(\"foo*baz\"), \"foobarbaz\") === \"bar\"\n */\n function matchedText(pattern, candidate) {\n ts.Debug.assert(isPatternMatch(pattern, candidate));\n return candidate.substring(pattern.prefix.length, candidate.length - pattern.suffix.length);\n }\n ts.matchedText = matchedText;\n /** Return the object corresponding to the best pattern to match `candidate`. */\n function findBestPatternMatch(values, getPattern, candidate) {\n var matchedValue;\n // use length of prefix as betterness criteria\n var longestMatchPrefixLength = -1;\n for (var _i = 0, values_2 = values; _i < values_2.length; _i++) {\n var v = values_2[_i];\n var pattern = getPattern(v);\n if (isPatternMatch(pattern, candidate) && pattern.prefix.length > longestMatchPrefixLength) {\n longestMatchPrefixLength = pattern.prefix.length;\n matchedValue = v;\n }\n }\n return matchedValue;\n }\n ts.findBestPatternMatch = findBestPatternMatch;\n function startsWith(str, prefix) {\n return str.lastIndexOf(prefix, 0) === 0;\n }\n ts.startsWith = startsWith;\n function removePrefix(str, prefix) {\n return startsWith(str, prefix) ? str.substr(prefix.length) : str;\n }\n ts.removePrefix = removePrefix;\n function tryRemovePrefix(str, prefix, getCanonicalFileName) {\n if (getCanonicalFileName === void 0) { getCanonicalFileName = identity; }\n return startsWith(getCanonicalFileName(str), getCanonicalFileName(prefix)) ? str.substring(prefix.length) : undefined;\n }\n ts.tryRemovePrefix = tryRemovePrefix;\n function isPatternMatch(_a, candidate) {\n var prefix = _a.prefix, suffix = _a.suffix;\n return candidate.length >= prefix.length + suffix.length &&\n startsWith(candidate, prefix) &&\n endsWith(candidate, suffix);\n }\n function and(f, g) {\n return function (arg) { return f(arg) && g(arg); };\n }\n ts.and = and;\n function or() {\n var fs = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n fs[_i] = arguments[_i];\n }\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n for (var _a = 0, fs_1 = fs; _a < fs_1.length; _a++) {\n var f = fs_1[_a];\n if (f.apply(void 0, args)) {\n return true;\n }\n }\n return false;\n };\n }\n ts.or = or;\n function not(fn) {\n return function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return !fn.apply(void 0, args);\n };\n }\n ts.not = not;\n function assertType(_) { }\n ts.assertType = assertType;\n function singleElementArray(t) {\n return t === undefined ? undefined : [t];\n }\n ts.singleElementArray = singleElementArray;\n function enumerateInsertsAndDeletes(newItems, oldItems, comparer, inserted, deleted, unchanged) {\n unchanged = unchanged || noop;\n var newIndex = 0;\n var oldIndex = 0;\n var newLen = newItems.length;\n var oldLen = oldItems.length;\n var hasChanges = false;\n while (newIndex < newLen && oldIndex < oldLen) {\n var newItem = newItems[newIndex];\n var oldItem = oldItems[oldIndex];\n var compareResult = comparer(newItem, oldItem);\n if (compareResult === -1 /* LessThan */) {\n inserted(newItem);\n newIndex++;\n hasChanges = true;\n }\n else if (compareResult === 1 /* GreaterThan */) {\n deleted(oldItem);\n oldIndex++;\n hasChanges = true;\n }\n else {\n unchanged(oldItem, newItem);\n newIndex++;\n oldIndex++;\n }\n }\n while (newIndex < newLen) {\n inserted(newItems[newIndex++]);\n hasChanges = true;\n }\n while (oldIndex < oldLen) {\n deleted(oldItems[oldIndex++]);\n hasChanges = true;\n }\n return hasChanges;\n }\n ts.enumerateInsertsAndDeletes = enumerateInsertsAndDeletes;\n function fill(length, cb) {\n var result = Array(length);\n for (var i = 0; i < length; i++) {\n result[i] = cb(i);\n }\n return result;\n }\n ts.fill = fill;\n function cartesianProduct(arrays) {\n var result = [];\n cartesianProductWorker(arrays, result, /*outer*/ undefined, 0);\n return result;\n }\n ts.cartesianProduct = cartesianProduct;\n function cartesianProductWorker(arrays, result, outer, index) {\n for (var _i = 0, _a = arrays[index]; _i < _a.length; _i++) {\n var element = _a[_i];\n var inner = void 0;\n if (outer) {\n inner = outer.slice();\n inner.push(element);\n }\n else {\n inner = [element];\n }\n if (index === arrays.length - 1) {\n result.push(inner);\n }\n else {\n cartesianProductWorker(arrays, result, inner, index + 1);\n }\n }\n }\n /**\n * Returns string left-padded with spaces or zeros until it reaches the given length.\n *\n * @param s String to pad.\n * @param length Final padded length. If less than or equal to 's.length', returns 's' unchanged.\n * @param padString Character to use as padding (default \" \").\n */\n function padLeft(s, length, padString) {\n if (padString === void 0) { padString = \" \"; }\n return length <= s.length ? s : padString.repeat(length - s.length) + s;\n }\n ts.padLeft = padLeft;\n /**\n * Returns string right-padded with spaces until it reaches the given length.\n *\n * @param s String to pad.\n * @param length Final padded length. If less than or equal to 's.length', returns 's' unchanged.\n * @param padString Character to use as padding (default \" \").\n */\n function padRight(s, length, padString) {\n if (padString === void 0) { padString = \" \"; }\n return length <= s.length ? s : s + padString.repeat(length - s.length);\n }\n ts.padRight = padRight;\n function takeWhile(array, predicate) {\n var len = array.length;\n var index = 0;\n while (index < len && predicate(array[index])) {\n index++;\n }\n return array.slice(0, index);\n }\n ts.takeWhile = takeWhile;\n /**\n * Removes the leading and trailing white space and line terminator characters from a string.\n */\n ts.trimString = !!String.prototype.trim ? (function (s) { return s.trim(); }) : function (s) { return ts.trimStringEnd(ts.trimStringStart(s)); };\n /**\n * Returns a copy with trailing whitespace removed.\n */\n ts.trimStringEnd = !!String.prototype.trimEnd ? (function (s) { return s.trimEnd(); }) : trimEndImpl;\n /**\n * Returns a copy with leading whitespace removed.\n */\n ts.trimStringStart = !!String.prototype.trimStart ? (function (s) { return s.trimStart(); }) : function (s) { return s.replace(/^\\s+/g, \"\"); };\n /**\n * https://jsbench.me/gjkoxld4au/1\n * The simple regex for this, /\\s+$/g is O(n^2) in v8.\n * The native .trimEnd method is by far best, but since that's technically ES2019,\n * we provide a (still much faster than the simple regex) fallback.\n */\n function trimEndImpl(s) {\n var end = s.length - 1;\n while (end >= 0) {\n if (!ts.isWhiteSpaceLike(s.charCodeAt(end)))\n break;\n end--;\n }\n return s.slice(0, end + 1);\n }\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var LogLevel;\n (function (LogLevel) {\n LogLevel[LogLevel[\"Off\"] = 0] = \"Off\";\n LogLevel[LogLevel[\"Error\"] = 1] = \"Error\";\n LogLevel[LogLevel[\"Warning\"] = 2] = \"Warning\";\n LogLevel[LogLevel[\"Info\"] = 3] = \"Info\";\n LogLevel[LogLevel[\"Verbose\"] = 4] = \"Verbose\";\n })(LogLevel = ts.LogLevel || (ts.LogLevel = {}));\n var Debug;\n (function (Debug) {\n var typeScriptVersion;\n /* eslint-disable prefer-const */\n var currentAssertionLevel = 0 /* None */;\n Debug.currentLogLevel = LogLevel.Warning;\n Debug.isDebugging = false;\n function getTypeScriptVersion() {\n return typeScriptVersion !== null && typeScriptVersion !== void 0 ? typeScriptVersion : (typeScriptVersion = new ts.Version(ts.version));\n }\n Debug.getTypeScriptVersion = getTypeScriptVersion;\n function shouldLog(level) {\n return Debug.currentLogLevel <= level;\n }\n Debug.shouldLog = shouldLog;\n function logMessage(level, s) {\n if (Debug.loggingHost && shouldLog(level)) {\n Debug.loggingHost.log(level, s);\n }\n }\n function log(s) {\n logMessage(LogLevel.Info, s);\n }\n Debug.log = log;\n (function (log_1) {\n function error(s) {\n logMessage(LogLevel.Error, s);\n }\n log_1.error = error;\n function warn(s) {\n logMessage(LogLevel.Warning, s);\n }\n log_1.warn = warn;\n function log(s) {\n logMessage(LogLevel.Info, s);\n }\n log_1.log = log;\n function trace(s) {\n logMessage(LogLevel.Verbose, s);\n }\n log_1.trace = trace;\n })(log = Debug.log || (Debug.log = {}));\n var assertionCache = {};\n function getAssertionLevel() {\n return currentAssertionLevel;\n }\n Debug.getAssertionLevel = getAssertionLevel;\n function setAssertionLevel(level) {\n var prevAssertionLevel = currentAssertionLevel;\n currentAssertionLevel = level;\n if (level > prevAssertionLevel) {\n // restore assertion functions for the current assertion level (see `shouldAssertFunction`).\n for (var _i = 0, _a = ts.getOwnKeys(assertionCache); _i < _a.length; _i++) {\n var key = _a[_i];\n var cachedFunc = assertionCache[key];\n if (cachedFunc !== undefined && Debug[key] !== cachedFunc.assertion && level >= cachedFunc.level) {\n Debug[key] = cachedFunc;\n assertionCache[key] = undefined;\n }\n }\n }\n }\n Debug.setAssertionLevel = setAssertionLevel;\n function shouldAssert(level) {\n return currentAssertionLevel >= level;\n }\n Debug.shouldAssert = shouldAssert;\n /**\n * Tests whether an assertion function should be executed. If it shouldn't, it is cached and replaced with `ts.noop`.\n * Replaced assertion functions are restored when `Debug.setAssertionLevel` is set to a high enough level.\n * @param level The minimum assertion level required.\n * @param name The name of the current assertion function.\n */\n function shouldAssertFunction(level, name) {\n if (!shouldAssert(level)) {\n assertionCache[name] = { level: level, assertion: Debug[name] };\n Debug[name] = ts.noop;\n return false;\n }\n return true;\n }\n function fail(message, stackCrawlMark) {\n // MONACOCHANGE\n // debugger;\n // END MONACOCHANGE\n var e = new Error(message ? \"Debug Failure. \" + message : \"Debug Failure.\");\n if (Error.captureStackTrace) {\n Error.captureStackTrace(e, stackCrawlMark || fail);\n }\n throw e;\n }\n Debug.fail = fail;\n function failBadSyntaxKind(node, message, stackCrawlMark) {\n return fail((message || \"Unexpected node.\") + \"\\r\\nNode \" + formatSyntaxKind(node.kind) + \" was unexpected.\", stackCrawlMark || failBadSyntaxKind);\n }\n Debug.failBadSyntaxKind = failBadSyntaxKind;\n function assert(expression, message, verboseDebugInfo, stackCrawlMark) {\n if (!expression) {\n message = message ? \"False expression: \" + message : \"False expression.\";\n if (verboseDebugInfo) {\n message += \"\\r\\nVerbose Debug Information: \" + (typeof verboseDebugInfo === \"string\" ? verboseDebugInfo : verboseDebugInfo());\n }\n fail(message, stackCrawlMark || assert);\n }\n }\n Debug.assert = assert;\n function assertEqual(a, b, msg, msg2, stackCrawlMark) {\n if (a !== b) {\n var message = msg ? msg2 ? msg + \" \" + msg2 : msg : \"\";\n fail(\"Expected \" + a + \" === \" + b + \". \" + message, stackCrawlMark || assertEqual);\n }\n }\n Debug.assertEqual = assertEqual;\n function assertLessThan(a, b, msg, stackCrawlMark) {\n if (a >= b) {\n fail(\"Expected \" + a + \" < \" + b + \". \" + (msg || \"\"), stackCrawlMark || assertLessThan);\n }\n }\n Debug.assertLessThan = assertLessThan;\n function assertLessThanOrEqual(a, b, stackCrawlMark) {\n if (a > b) {\n fail(\"Expected \" + a + \" <= \" + b, stackCrawlMark || assertLessThanOrEqual);\n }\n }\n Debug.assertLessThanOrEqual = assertLessThanOrEqual;\n function assertGreaterThanOrEqual(a, b, stackCrawlMark) {\n if (a < b) {\n fail(\"Expected \" + a + \" >= \" + b, stackCrawlMark || assertGreaterThanOrEqual);\n }\n }\n Debug.assertGreaterThanOrEqual = assertGreaterThanOrEqual;\n function assertIsDefined(value, message, stackCrawlMark) {\n // eslint-disable-next-line no-null/no-null\n if (value === undefined || value === null) {\n fail(message, stackCrawlMark || assertIsDefined);\n }\n }\n Debug.assertIsDefined = assertIsDefined;\n function checkDefined(value, message, stackCrawlMark) {\n assertIsDefined(value, message, stackCrawlMark || checkDefined);\n return value;\n }\n Debug.checkDefined = checkDefined;\n /**\n * @deprecated Use `checkDefined` to check whether a value is defined inline. Use `assertIsDefined` to check whether\n * a value is defined at the statement level.\n */\n Debug.assertDefined = checkDefined;\n function assertEachIsDefined(value, message, stackCrawlMark) {\n for (var _i = 0, value_1 = value; _i < value_1.length; _i++) {\n var v = value_1[_i];\n assertIsDefined(v, message, stackCrawlMark || assertEachIsDefined);\n }\n }\n Debug.assertEachIsDefined = assertEachIsDefined;\n function checkEachDefined(value, message, stackCrawlMark) {\n assertEachIsDefined(value, message, stackCrawlMark || checkEachDefined);\n return value;\n }\n Debug.checkEachDefined = checkEachDefined;\n /**\n * @deprecated Use `checkEachDefined` to check whether the elements of an array are defined inline. Use `assertEachIsDefined` to check whether\n * the elements of an array are defined at the statement level.\n */\n Debug.assertEachDefined = checkEachDefined;\n function assertNever(member, message, stackCrawlMark) {\n if (message === void 0) { message = \"Illegal value:\"; }\n var detail = typeof member === \"object\" && ts.hasProperty(member, \"kind\") && ts.hasProperty(member, \"pos\") && formatSyntaxKind ? \"SyntaxKind: \" + formatSyntaxKind(member.kind) : JSON.stringify(member);\n return fail(message + \" \" + detail, stackCrawlMark || assertNever);\n }\n Debug.assertNever = assertNever;\n function assertEachNode(nodes, test, message, stackCrawlMark) {\n if (shouldAssertFunction(1 /* Normal */, \"assertEachNode\")) {\n assert(test === undefined || ts.every(nodes, test), message || \"Unexpected node.\", function () { return \"Node array did not pass test '\" + getFunctionName(test) + \"'.\"; }, stackCrawlMark || assertEachNode);\n }\n }\n Debug.assertEachNode = assertEachNode;\n function assertNode(node, test, message, stackCrawlMark) {\n if (shouldAssertFunction(1 /* Normal */, \"assertNode\")) {\n assert(node !== undefined && (test === undefined || test(node)), message || \"Unexpected node.\", function () { return \"Node \" + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + \" did not pass test '\" + getFunctionName(test) + \"'.\"; }, stackCrawlMark || assertNode);\n }\n }\n Debug.assertNode = assertNode;\n function assertNotNode(node, test, message, stackCrawlMark) {\n if (shouldAssertFunction(1 /* Normal */, \"assertNotNode\")) {\n assert(node === undefined || test === undefined || !test(node), message || \"Unexpected node.\", function () { return \"Node \" + formatSyntaxKind(node.kind) + \" should not have passed test '\" + getFunctionName(test) + \"'.\"; }, stackCrawlMark || assertNotNode);\n }\n }\n Debug.assertNotNode = assertNotNode;\n function assertOptionalNode(node, test, message, stackCrawlMark) {\n if (shouldAssertFunction(1 /* Normal */, \"assertOptionalNode\")) {\n assert(test === undefined || node === undefined || test(node), message || \"Unexpected node.\", function () { return \"Node \" + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + \" did not pass test '\" + getFunctionName(test) + \"'.\"; }, stackCrawlMark || assertOptionalNode);\n }\n }\n Debug.assertOptionalNode = assertOptionalNode;\n function assertOptionalToken(node, kind, message, stackCrawlMark) {\n if (shouldAssertFunction(1 /* Normal */, \"assertOptionalToken\")) {\n assert(kind === undefined || node === undefined || node.kind === kind, message || \"Unexpected node.\", function () { return \"Node \" + formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind) + \" was not a '\" + formatSyntaxKind(kind) + \"' token.\"; }, stackCrawlMark || assertOptionalToken);\n }\n }\n Debug.assertOptionalToken = assertOptionalToken;\n function assertMissingNode(node, message, stackCrawlMark) {\n if (shouldAssertFunction(1 /* Normal */, \"assertMissingNode\")) {\n assert(node === undefined, message || \"Unexpected node.\", function () { return \"Node \" + formatSyntaxKind(node.kind) + \" was unexpected'.\"; }, stackCrawlMark || assertMissingNode);\n }\n }\n Debug.assertMissingNode = assertMissingNode;\n function type(_value) { }\n Debug.type = type;\n function getFunctionName(func) {\n if (typeof func !== \"function\") {\n return \"\";\n }\n else if (func.hasOwnProperty(\"name\")) {\n return func.name;\n }\n else {\n var text = Function.prototype.toString.call(func);\n var match = /^function\\s+([\\w\\$]+)\\s*\\(/.exec(text);\n return match ? match[1] : \"\";\n }\n }\n Debug.getFunctionName = getFunctionName;\n function formatSymbol(symbol) {\n return \"{ name: \" + ts.unescapeLeadingUnderscores(symbol.escapedName) + \"; flags: \" + formatSymbolFlags(symbol.flags) + \"; declarations: \" + ts.map(symbol.declarations, function (node) { return formatSyntaxKind(node.kind); }) + \" }\";\n }\n Debug.formatSymbol = formatSymbol;\n /**\n * Formats an enum value as a string for debugging and debug assertions.\n */\n function formatEnum(value, enumObject, isFlags) {\n if (value === void 0) { value = 0; }\n var members = getEnumMembers(enumObject);\n if (value === 0) {\n return members.length > 0 && members[0][0] === 0 ? members[0][1] : \"0\";\n }\n if (isFlags) {\n var result = \"\";\n var remainingFlags = value;\n for (var _i = 0, members_1 = members; _i < members_1.length; _i++) {\n var _a = members_1[_i], enumValue = _a[0], enumName = _a[1];\n if (enumValue > value) {\n break;\n }\n if (enumValue !== 0 && enumValue & value) {\n result = \"\" + result + (result ? \"|\" : \"\") + enumName;\n remainingFlags &= ~enumValue;\n }\n }\n if (remainingFlags === 0) {\n return result;\n }\n }\n else {\n for (var _b = 0, members_2 = members; _b < members_2.length; _b++) {\n var _c = members_2[_b], enumValue = _c[0], enumName = _c[1];\n if (enumValue === value) {\n return enumName;\n }\n }\n }\n return value.toString();\n }\n Debug.formatEnum = formatEnum;\n function getEnumMembers(enumObject) {\n var result = [];\n for (var name in enumObject) {\n var value = enumObject[name];\n if (typeof value === \"number\") {\n result.push([value, name]);\n }\n }\n return ts.stableSort(result, function (x, y) { return ts.compareValues(x[0], y[0]); });\n }\n function formatSyntaxKind(kind) {\n return formatEnum(kind, ts.SyntaxKind, /*isFlags*/ false);\n }\n Debug.formatSyntaxKind = formatSyntaxKind;\n function formatNodeFlags(flags) {\n return formatEnum(flags, ts.NodeFlags, /*isFlags*/ true);\n }\n Debug.formatNodeFlags = formatNodeFlags;\n function formatModifierFlags(flags) {\n return formatEnum(flags, ts.ModifierFlags, /*isFlags*/ true);\n }\n Debug.formatModifierFlags = formatModifierFlags;\n function formatTransformFlags(flags) {\n return formatEnum(flags, ts.TransformFlags, /*isFlags*/ true);\n }\n Debug.formatTransformFlags = formatTransformFlags;\n function formatEmitFlags(flags) {\n return formatEnum(flags, ts.EmitFlags, /*isFlags*/ true);\n }\n Debug.formatEmitFlags = formatEmitFlags;\n function formatSymbolFlags(flags) {\n return formatEnum(flags, ts.SymbolFlags, /*isFlags*/ true);\n }\n Debug.formatSymbolFlags = formatSymbolFlags;\n function formatTypeFlags(flags) {\n return formatEnum(flags, ts.TypeFlags, /*isFlags*/ true);\n }\n Debug.formatTypeFlags = formatTypeFlags;\n function formatSignatureFlags(flags) {\n return formatEnum(flags, ts.SignatureFlags, /*isFlags*/ true);\n }\n Debug.formatSignatureFlags = formatSignatureFlags;\n function formatObjectFlags(flags) {\n return formatEnum(flags, ts.ObjectFlags, /*isFlags*/ true);\n }\n Debug.formatObjectFlags = formatObjectFlags;\n function formatFlowFlags(flags) {\n return formatEnum(flags, ts.FlowFlags, /*isFlags*/ true);\n }\n Debug.formatFlowFlags = formatFlowFlags;\n var isDebugInfoEnabled = false;\n var extendedDebugModule;\n function extendedDebug() {\n enableDebugInfo();\n if (!extendedDebugModule) {\n throw new Error(\"Debugging helpers could not be loaded.\");\n }\n return extendedDebugModule;\n }\n function printControlFlowGraph(flowNode) {\n return console.log(formatControlFlowGraph(flowNode));\n }\n Debug.printControlFlowGraph = printControlFlowGraph;\n function formatControlFlowGraph(flowNode) {\n return extendedDebug().formatControlFlowGraph(flowNode);\n }\n Debug.formatControlFlowGraph = formatControlFlowGraph;\n var flowNodeProto;\n function attachFlowNodeDebugInfoWorker(flowNode) {\n if (!(\"__debugFlowFlags\" in flowNode)) { // eslint-disable-line no-in-operator\n Object.defineProperties(flowNode, {\n // for use with vscode-js-debug's new customDescriptionGenerator in launch.json\n __tsDebuggerDisplay: {\n value: function () {\n var flowHeader = this.flags & 2 /* Start */ ? \"FlowStart\" :\n this.flags & 4 /* BranchLabel */ ? \"FlowBranchLabel\" :\n this.flags & 8 /* LoopLabel */ ? \"FlowLoopLabel\" :\n this.flags & 16 /* Assignment */ ? \"FlowAssignment\" :\n this.flags & 32 /* TrueCondition */ ? \"FlowTrueCondition\" :\n this.flags & 64 /* FalseCondition */ ? \"FlowFalseCondition\" :\n this.flags & 128 /* SwitchClause */ ? \"FlowSwitchClause\" :\n this.flags & 256 /* ArrayMutation */ ? \"FlowArrayMutation\" :\n this.flags & 512 /* Call */ ? \"FlowCall\" :\n this.flags & 1024 /* ReduceLabel */ ? \"FlowReduceLabel\" :\n this.flags & 1 /* Unreachable */ ? \"FlowUnreachable\" :\n \"UnknownFlow\";\n var remainingFlags = this.flags & ~(2048 /* Referenced */ - 1);\n return \"\" + flowHeader + (remainingFlags ? \" (\" + formatFlowFlags(remainingFlags) + \")\" : \"\");\n }\n },\n __debugFlowFlags: { get: function () { return formatEnum(this.flags, ts.FlowFlags, /*isFlags*/ true); } },\n __debugToString: { value: function () { return formatControlFlowGraph(this); } }\n });\n }\n }\n function attachFlowNodeDebugInfo(flowNode) {\n if (isDebugInfoEnabled) {\n if (typeof Object.setPrototypeOf === \"function\") {\n // if we're in es2015, attach the method to a shared prototype for `FlowNode`\n // so the method doesn't show up in the watch window.\n if (!flowNodeProto) {\n flowNodeProto = Object.create(Object.prototype);\n attachFlowNodeDebugInfoWorker(flowNodeProto);\n }\n Object.setPrototypeOf(flowNode, flowNodeProto);\n }\n else {\n // not running in an es2015 environment, attach the method directly.\n attachFlowNodeDebugInfoWorker(flowNode);\n }\n }\n }\n Debug.attachFlowNodeDebugInfo = attachFlowNodeDebugInfo;\n var nodeArrayProto;\n function attachNodeArrayDebugInfoWorker(array) {\n if (!(\"__tsDebuggerDisplay\" in array)) { // eslint-disable-line no-in-operator\n Object.defineProperties(array, {\n __tsDebuggerDisplay: {\n value: function (defaultValue) {\n // An `Array` with extra properties is rendered as `[A, B, prop1: 1, prop2: 2]`. Most of\n // these aren't immediately useful so we trim off the `prop1: ..., prop2: ...` part from the\n // formatted string.\n // This regex can trigger slow backtracking because of overlapping potential captures.\n // We don't care, this is debug code that's only enabled with a debugger attached -\n // we're just taking note of it for anyone checking regex performance in the future.\n defaultValue = String(defaultValue).replace(/(?:,[\\s\\w\\d_]+:[^,]+)+\\]$/, \"]\");\n return \"NodeArray \" + defaultValue;\n }\n }\n });\n }\n }\n function attachNodeArrayDebugInfo(array) {\n if (isDebugInfoEnabled) {\n if (typeof Object.setPrototypeOf === \"function\") {\n // if we're in es2015, attach the method to a shared prototype for `NodeArray`\n // so the method doesn't show up in the watch window.\n if (!nodeArrayProto) {\n nodeArrayProto = Object.create(Array.prototype);\n attachNodeArrayDebugInfoWorker(nodeArrayProto);\n }\n Object.setPrototypeOf(array, nodeArrayProto);\n }\n else {\n // not running in an es2015 environment, attach the method directly.\n attachNodeArrayDebugInfoWorker(array);\n }\n }\n }\n Debug.attachNodeArrayDebugInfo = attachNodeArrayDebugInfo;\n /**\n * Injects debug information into frequently used types.\n */\n function enableDebugInfo() {\n if (isDebugInfoEnabled)\n return;\n // avoid recomputing\n var weakTypeTextMap;\n var weakNodeTextMap;\n function getWeakTypeTextMap() {\n if (weakTypeTextMap === undefined) {\n if (typeof WeakMap === \"function\")\n weakTypeTextMap = new WeakMap();\n }\n return weakTypeTextMap;\n }\n function getWeakNodeTextMap() {\n if (weakNodeTextMap === undefined) {\n if (typeof WeakMap === \"function\")\n weakNodeTextMap = new WeakMap();\n }\n return weakNodeTextMap;\n }\n // Add additional properties in debug mode to assist with debugging.\n Object.defineProperties(ts.objectAllocator.getSymbolConstructor().prototype, {\n // for use with vscode-js-debug's new customDescriptionGenerator in launch.json\n __tsDebuggerDisplay: {\n value: function () {\n var symbolHeader = this.flags & 33554432 /* Transient */ ? \"TransientSymbol\" :\n \"Symbol\";\n var remainingSymbolFlags = this.flags & ~33554432 /* Transient */;\n return symbolHeader + \" '\" + ts.symbolName(this) + \"'\" + (remainingSymbolFlags ? \" (\" + formatSymbolFlags(remainingSymbolFlags) + \")\" : \"\");\n }\n },\n __debugFlags: { get: function () { return formatSymbolFlags(this.flags); } }\n });\n Object.defineProperties(ts.objectAllocator.getTypeConstructor().prototype, {\n // for use with vscode-js-debug's new customDescriptionGenerator in launch.json\n __tsDebuggerDisplay: {\n value: function () {\n var typeHeader = this.flags & 98304 /* Nullable */ ? \"NullableType\" :\n this.flags & 384 /* StringOrNumberLiteral */ ? \"LiteralType \" + JSON.stringify(this.value) :\n this.flags & 2048 /* BigIntLiteral */ ? \"LiteralType \" + (this.value.negative ? \"-\" : \"\") + this.value.base10Value + \"n\" :\n this.flags & 8192 /* UniqueESSymbol */ ? \"UniqueESSymbolType\" :\n this.flags & 32 /* Enum */ ? \"EnumType\" :\n this.flags & 67359327 /* Intrinsic */ ? \"IntrinsicType \" + this.intrinsicName :\n this.flags & 1048576 /* Union */ ? \"UnionType\" :\n this.flags & 2097152 /* Intersection */ ? \"IntersectionType\" :\n this.flags & 4194304 /* Index */ ? \"IndexType\" :\n this.flags & 8388608 /* IndexedAccess */ ? \"IndexedAccessType\" :\n this.flags & 16777216 /* Conditional */ ? \"ConditionalType\" :\n this.flags & 33554432 /* Substitution */ ? \"SubstitutionType\" :\n this.flags & 262144 /* TypeParameter */ ? \"TypeParameter\" :\n this.flags & 524288 /* Object */ ?\n this.objectFlags & 3 /* ClassOrInterface */ ? \"InterfaceType\" :\n this.objectFlags & 4 /* Reference */ ? \"TypeReference\" :\n this.objectFlags & 8 /* Tuple */ ? \"TupleType\" :\n this.objectFlags & 16 /* Anonymous */ ? \"AnonymousType\" :\n this.objectFlags & 32 /* Mapped */ ? \"MappedType\" :\n this.objectFlags & 1024 /* ReverseMapped */ ? \"ReverseMappedType\" :\n this.objectFlags & 256 /* EvolvingArray */ ? \"EvolvingArrayType\" :\n \"ObjectType\" :\n \"Type\";\n var remainingObjectFlags = this.flags & 524288 /* Object */ ? this.objectFlags & ~1343 /* ObjectTypeKindMask */ : 0;\n return \"\" + typeHeader + (this.symbol ? \" '\" + ts.symbolName(this.symbol) + \"'\" : \"\") + (remainingObjectFlags ? \" (\" + formatObjectFlags(remainingObjectFlags) + \")\" : \"\");\n }\n },\n __debugFlags: { get: function () { return formatTypeFlags(this.flags); } },\n __debugObjectFlags: { get: function () { return this.flags & 524288 /* Object */ ? formatObjectFlags(this.objectFlags) : \"\"; } },\n __debugTypeToString: {\n value: function () {\n // avoid recomputing\n var map = getWeakTypeTextMap();\n var text = map === null || map === void 0 ? void 0 : map.get(this);\n if (text === undefined) {\n text = this.checker.typeToString(this);\n map === null || map === void 0 ? void 0 : map.set(this, text);\n }\n return text;\n }\n },\n });\n Object.defineProperties(ts.objectAllocator.getSignatureConstructor().prototype, {\n __debugFlags: { get: function () { return formatSignatureFlags(this.flags); } },\n __debugSignatureToString: { value: function () { var _a; return (_a = this.checker) === null || _a === void 0 ? void 0 : _a.signatureToString(this); } }\n });\n var nodeConstructors = [\n ts.objectAllocator.getNodeConstructor(),\n ts.objectAllocator.getIdentifierConstructor(),\n ts.objectAllocator.getTokenConstructor(),\n ts.objectAllocator.getSourceFileConstructor()\n ];\n for (var _i = 0, nodeConstructors_1 = nodeConstructors; _i < nodeConstructors_1.length; _i++) {\n var ctor = nodeConstructors_1[_i];\n if (!ctor.prototype.hasOwnProperty(\"__debugKind\")) {\n Object.defineProperties(ctor.prototype, {\n // for use with vscode-js-debug's new customDescriptionGenerator in launch.json\n __tsDebuggerDisplay: {\n value: function () {\n var nodeHeader = ts.isGeneratedIdentifier(this) ? \"GeneratedIdentifier\" :\n ts.isIdentifier(this) ? \"Identifier '\" + ts.idText(this) + \"'\" :\n ts.isPrivateIdentifier(this) ? \"PrivateIdentifier '\" + ts.idText(this) + \"'\" :\n ts.isStringLiteral(this) ? \"StringLiteral \" + JSON.stringify(this.text.length < 10 ? this.text : this.text.slice(10) + \"...\") :\n ts.isNumericLiteral(this) ? \"NumericLiteral \" + this.text :\n ts.isBigIntLiteral(this) ? \"BigIntLiteral \" + this.text + \"n\" :\n ts.isTypeParameterDeclaration(this) ? \"TypeParameterDeclaration\" :\n ts.isParameter(this) ? \"ParameterDeclaration\" :\n ts.isConstructorDeclaration(this) ? \"ConstructorDeclaration\" :\n ts.isGetAccessorDeclaration(this) ? \"GetAccessorDeclaration\" :\n ts.isSetAccessorDeclaration(this) ? \"SetAccessorDeclaration\" :\n ts.isCallSignatureDeclaration(this) ? \"CallSignatureDeclaration\" :\n ts.isConstructSignatureDeclaration(this) ? \"ConstructSignatureDeclaration\" :\n ts.isIndexSignatureDeclaration(this) ? \"IndexSignatureDeclaration\" :\n ts.isTypePredicateNode(this) ? \"TypePredicateNode\" :\n ts.isTypeReferenceNode(this) ? \"TypeReferenceNode\" :\n ts.isFunctionTypeNode(this) ? \"FunctionTypeNode\" :\n ts.isConstructorTypeNode(this) ? \"ConstructorTypeNode\" :\n ts.isTypeQueryNode(this) ? \"TypeQueryNode\" :\n ts.isTypeLiteralNode(this) ? \"TypeLiteralNode\" :\n ts.isArrayTypeNode(this) ? \"ArrayTypeNode\" :\n ts.isTupleTypeNode(this) ? \"TupleTypeNode\" :\n ts.isOptionalTypeNode(this) ? \"OptionalTypeNode\" :\n ts.isRestTypeNode(this) ? \"RestTypeNode\" :\n ts.isUnionTypeNode(this) ? \"UnionTypeNode\" :\n ts.isIntersectionTypeNode(this) ? \"IntersectionTypeNode\" :\n ts.isConditionalTypeNode(this) ? \"ConditionalTypeNode\" :\n ts.isInferTypeNode(this) ? \"InferTypeNode\" :\n ts.isParenthesizedTypeNode(this) ? \"ParenthesizedTypeNode\" :\n ts.isThisTypeNode(this) ? \"ThisTypeNode\" :\n ts.isTypeOperatorNode(this) ? \"TypeOperatorNode\" :\n ts.isIndexedAccessTypeNode(this) ? \"IndexedAccessTypeNode\" :\n ts.isMappedTypeNode(this) ? \"MappedTypeNode\" :\n ts.isLiteralTypeNode(this) ? \"LiteralTypeNode\" :\n ts.isNamedTupleMember(this) ? \"NamedTupleMember\" :\n ts.isImportTypeNode(this) ? \"ImportTypeNode\" :\n formatSyntaxKind(this.kind);\n return \"\" + nodeHeader + (this.flags ? \" (\" + formatNodeFlags(this.flags) + \")\" : \"\");\n }\n },\n __debugKind: { get: function () { return formatSyntaxKind(this.kind); } },\n __debugNodeFlags: { get: function () { return formatNodeFlags(this.flags); } },\n __debugModifierFlags: { get: function () { return formatModifierFlags(ts.getEffectiveModifierFlagsNoCache(this)); } },\n __debugTransformFlags: { get: function () { return formatTransformFlags(this.transformFlags); } },\n __debugIsParseTreeNode: { get: function () { return ts.isParseTreeNode(this); } },\n __debugEmitFlags: { get: function () { return formatEmitFlags(ts.getEmitFlags(this)); } },\n __debugGetText: {\n value: function (includeTrivia) {\n if (ts.nodeIsSynthesized(this))\n return \"\";\n // avoid recomputing\n var map = getWeakNodeTextMap();\n var text = map === null || map === void 0 ? void 0 : map.get(this);\n if (text === undefined) {\n var parseNode = ts.getParseTreeNode(this);\n var sourceFile = parseNode && ts.getSourceFileOfNode(parseNode);\n text = sourceFile ? ts.getSourceTextOfNodeFromSourceFile(sourceFile, parseNode, includeTrivia) : \"\";\n map === null || map === void 0 ? void 0 : map.set(this, text);\n }\n return text;\n }\n }\n });\n }\n }\n // attempt to load extended debugging information\n try {\n if (ts.sys && ts.sys.require) {\n var basePath = ts.getDirectoryPath(ts.resolvePath(ts.sys.getExecutingFilePath()));\n // MONACOCHANGE\n var result = undefined;\n // END MONACOCHANGE\n if (!result.error) {\n result.module.init(ts);\n extendedDebugModule = result.module;\n }\n }\n }\n catch (_a) {\n // do nothing\n }\n isDebugInfoEnabled = true;\n }\n Debug.enableDebugInfo = enableDebugInfo;\n function formatDeprecationMessage(name, error, errorAfter, since, message) {\n var deprecationMessage = error ? \"DeprecationError: \" : \"DeprecationWarning: \";\n deprecationMessage += \"'\" + name + \"' \";\n deprecationMessage += since ? \"has been deprecated since v\" + since : \"is deprecated\";\n deprecationMessage += error ? \" and can no longer be used.\" : errorAfter ? \" and will no longer be usable after v\" + errorAfter + \".\" : \".\";\n deprecationMessage += message ? \" \" + ts.formatStringFromArgs(message, [name], 0) : \"\";\n return deprecationMessage;\n }\n function createErrorDeprecation(name, errorAfter, since, message) {\n var deprecationMessage = formatDeprecationMessage(name, /*error*/ true, errorAfter, since, message);\n return function () {\n throw new TypeError(deprecationMessage);\n };\n }\n function createWarningDeprecation(name, errorAfter, since, message) {\n var hasWrittenDeprecation = false;\n return function () {\n if (!hasWrittenDeprecation) {\n log.warn(formatDeprecationMessage(name, /*error*/ false, errorAfter, since, message));\n hasWrittenDeprecation = true;\n }\n };\n }\n function createDeprecation(name, options) {\n var _a, _b;\n if (options === void 0) { options = {}; }\n var version = typeof options.typeScriptVersion === \"string\" ? new ts.Version(options.typeScriptVersion) : (_a = options.typeScriptVersion) !== null && _a !== void 0 ? _a : getTypeScriptVersion();\n var errorAfter = typeof options.errorAfter === \"string\" ? new ts.Version(options.errorAfter) : options.errorAfter;\n var warnAfter = typeof options.warnAfter === \"string\" ? new ts.Version(options.warnAfter) : options.warnAfter;\n var since = typeof options.since === \"string\" ? new ts.Version(options.since) : (_b = options.since) !== null && _b !== void 0 ? _b : warnAfter;\n var error = options.error || errorAfter && version.compareTo(errorAfter) <= 0;\n var warn = !warnAfter || version.compareTo(warnAfter) >= 0;\n return error ? createErrorDeprecation(name, errorAfter, since, options.message) :\n warn ? createWarningDeprecation(name, errorAfter, since, options.message) :\n ts.noop;\n }\n function wrapFunction(deprecation, func) {\n return function () {\n deprecation();\n return func.apply(this, arguments);\n };\n }\n function deprecate(func, options) {\n var deprecation = createDeprecation(getFunctionName(func), options);\n return wrapFunction(deprecation, func);\n }\n Debug.deprecate = deprecate;\n })(Debug = ts.Debug || (ts.Debug = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n // https://semver.org/#spec-item-2\n // > A normal version number MUST take the form X.Y.Z where X, Y, and Z are non-negative\n // > integers, and MUST NOT contain leading zeroes. X is the major version, Y is the minor\n // > version, and Z is the patch version. Each element MUST increase numerically.\n //\n // NOTE: We differ here in that we allow X and X.Y, with missing parts having the default\n // value of `0`.\n var versionRegExp = /^(0|[1-9]\\d*)(?:\\.(0|[1-9]\\d*)(?:\\.(0|[1-9]\\d*)(?:\\-([a-z0-9-.]+))?(?:\\+([a-z0-9-.]+))?)?)?$/i;\n // https://semver.org/#spec-item-9\n // > A pre-release version MAY be denoted by appending a hyphen and a series of dot separated\n // > identifiers immediately following the patch version. Identifiers MUST comprise only ASCII\n // > alphanumerics and hyphen [0-9A-Za-z-]. Identifiers MUST NOT be empty. Numeric identifiers\n // > MUST NOT include leading zeroes.\n var prereleaseRegExp = /^(?:0|[1-9]\\d*|[a-z-][a-z0-9-]*)(?:\\.(?:0|[1-9]\\d*|[a-z-][a-z0-9-]*))*$/i;\n // https://semver.org/#spec-item-10\n // > Build metadata MAY be denoted by appending a plus sign and a series of dot separated\n // > identifiers immediately following the patch or pre-release version. Identifiers MUST\n // > comprise only ASCII alphanumerics and hyphen [0-9A-Za-z-]. Identifiers MUST NOT be empty.\n var buildRegExp = /^[a-z0-9-]+(?:\\.[a-z0-9-]+)*$/i;\n // https://semver.org/#spec-item-9\n // > Numeric identifiers MUST NOT include leading zeroes.\n var numericIdentifierRegExp = /^(0|[1-9]\\d*)$/;\n /**\n * Describes a precise semantic version number, https://semver.org\n */\n var Version = /** @class */ (function () {\n function Version(major, minor, patch, prerelease, build) {\n if (minor === void 0) { minor = 0; }\n if (patch === void 0) { patch = 0; }\n if (prerelease === void 0) { prerelease = \"\"; }\n if (build === void 0) { build = \"\"; }\n if (typeof major === \"string\") {\n var result = ts.Debug.checkDefined(tryParseComponents(major), \"Invalid version\");\n (major = result.major, minor = result.minor, patch = result.patch, prerelease = result.prerelease, build = result.build);\n }\n ts.Debug.assert(major >= 0, \"Invalid argument: major\");\n ts.Debug.assert(minor >= 0, \"Invalid argument: minor\");\n ts.Debug.assert(patch >= 0, \"Invalid argument: patch\");\n ts.Debug.assert(!prerelease || prereleaseRegExp.test(prerelease), \"Invalid argument: prerelease\");\n ts.Debug.assert(!build || buildRegExp.test(build), \"Invalid argument: build\");\n this.major = major;\n this.minor = minor;\n this.patch = patch;\n this.prerelease = prerelease ? prerelease.split(\".\") : ts.emptyArray;\n this.build = build ? build.split(\".\") : ts.emptyArray;\n }\n Version.tryParse = function (text) {\n var result = tryParseComponents(text);\n if (!result)\n return undefined;\n var major = result.major, minor = result.minor, patch = result.patch, prerelease = result.prerelease, build = result.build;\n return new Version(major, minor, patch, prerelease, build);\n };\n Version.prototype.compareTo = function (other) {\n // https://semver.org/#spec-item-11\n // > Precedence is determined by the first difference when comparing each of these\n // > identifiers from left to right as follows: Major, minor, and patch versions are\n // > always compared numerically.\n //\n // https://semver.org/#spec-item-11\n // > Precedence for two pre-release versions with the same major, minor, and patch version\n // > MUST be determined by comparing each dot separated identifier from left to right until\n // > a difference is found [...]\n //\n // https://semver.org/#spec-item-11\n // > Build metadata does not figure into precedence\n if (this === other)\n return 0 /* EqualTo */;\n if (other === undefined)\n return 1 /* GreaterThan */;\n return ts.compareValues(this.major, other.major)\n || ts.compareValues(this.minor, other.minor)\n || ts.compareValues(this.patch, other.patch)\n || comparePrereleaseIdentifiers(this.prerelease, other.prerelease);\n };\n Version.prototype.increment = function (field) {\n switch (field) {\n case \"major\": return new Version(this.major + 1, 0, 0);\n case \"minor\": return new Version(this.major, this.minor + 1, 0);\n case \"patch\": return new Version(this.major, this.minor, this.patch + 1);\n default: return ts.Debug.assertNever(field);\n }\n };\n Version.prototype.toString = function () {\n var result = this.major + \".\" + this.minor + \".\" + this.patch;\n if (ts.some(this.prerelease))\n result += \"-\" + this.prerelease.join(\".\");\n if (ts.some(this.build))\n result += \"+\" + this.build.join(\".\");\n return result;\n };\n Version.zero = new Version(0, 0, 0);\n return Version;\n }());\n ts.Version = Version;\n function tryParseComponents(text) {\n var match = versionRegExp.exec(text);\n if (!match)\n return undefined;\n var major = match[1], _a = match[2], minor = _a === void 0 ? \"0\" : _a, _b = match[3], patch = _b === void 0 ? \"0\" : _b, _c = match[4], prerelease = _c === void 0 ? \"\" : _c, _d = match[5], build = _d === void 0 ? \"\" : _d;\n if (prerelease && !prereleaseRegExp.test(prerelease))\n return undefined;\n if (build && !buildRegExp.test(build))\n return undefined;\n return {\n major: parseInt(major, 10),\n minor: parseInt(minor, 10),\n patch: parseInt(patch, 10),\n prerelease: prerelease,\n build: build\n };\n }\n function comparePrereleaseIdentifiers(left, right) {\n // https://semver.org/#spec-item-11\n // > When major, minor, and patch are equal, a pre-release version has lower precedence\n // > than a normal version.\n if (left === right)\n return 0 /* EqualTo */;\n if (left.length === 0)\n return right.length === 0 ? 0 /* EqualTo */ : 1 /* GreaterThan */;\n if (right.length === 0)\n return -1 /* LessThan */;\n // https://semver.org/#spec-item-11\n // > Precedence for two pre-release versions with the same major, minor, and patch version\n // > MUST be determined by comparing each dot separated identifier from left to right until\n // > a difference is found [...]\n var length = Math.min(left.length, right.length);\n for (var i = 0; i < length; i++) {\n var leftIdentifier = left[i];\n var rightIdentifier = right[i];\n if (leftIdentifier === rightIdentifier)\n continue;\n var leftIsNumeric = numericIdentifierRegExp.test(leftIdentifier);\n var rightIsNumeric = numericIdentifierRegExp.test(rightIdentifier);\n if (leftIsNumeric || rightIsNumeric) {\n // https://semver.org/#spec-item-11\n // > Numeric identifiers always have lower precedence than non-numeric identifiers.\n if (leftIsNumeric !== rightIsNumeric)\n return leftIsNumeric ? -1 /* LessThan */ : 1 /* GreaterThan */;\n // https://semver.org/#spec-item-11\n // > identifiers consisting of only digits are compared numerically\n var result = ts.compareValues(+leftIdentifier, +rightIdentifier);\n if (result)\n return result;\n }\n else {\n // https://semver.org/#spec-item-11\n // > identifiers with letters or hyphens are compared lexically in ASCII sort order.\n var result = ts.compareStringsCaseSensitive(leftIdentifier, rightIdentifier);\n if (result)\n return result;\n }\n }\n // https://semver.org/#spec-item-11\n // > A larger set of pre-release fields has a higher precedence than a smaller set, if all\n // > of the preceding identifiers are equal.\n return ts.compareValues(left.length, right.length);\n }\n /**\n * Describes a semantic version range, per https://github.com/npm/node-semver#ranges\n */\n var VersionRange = /** @class */ (function () {\n function VersionRange(spec) {\n this._alternatives = spec ? ts.Debug.checkDefined(parseRange(spec), \"Invalid range spec.\") : ts.emptyArray;\n }\n VersionRange.tryParse = function (text) {\n var sets = parseRange(text);\n if (sets) {\n var range = new VersionRange(\"\");\n range._alternatives = sets;\n return range;\n }\n return undefined;\n };\n VersionRange.prototype.test = function (version) {\n if (typeof version === \"string\")\n version = new Version(version);\n return testDisjunction(version, this._alternatives);\n };\n VersionRange.prototype.toString = function () {\n return formatDisjunction(this._alternatives);\n };\n return VersionRange;\n }());\n ts.VersionRange = VersionRange;\n // https://github.com/npm/node-semver#range-grammar\n //\n // range-set ::= range ( logical-or range ) *\n // range ::= hyphen | simple ( ' ' simple ) * | ''\n // logical-or ::= ( ' ' ) * '||' ( ' ' ) *\n var logicalOrRegExp = /\\|\\|/g;\n var whitespaceRegExp = /\\s+/g;\n // https://github.com/npm/node-semver#range-grammar\n //\n // partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?\n // xr ::= 'x' | 'X' | '*' | nr\n // nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *\n // qualifier ::= ( '-' pre )? ( '+' build )?\n // pre ::= parts\n // build ::= parts\n // parts ::= part ( '.' part ) *\n // part ::= nr | [-0-9A-Za-z]+\n var partialRegExp = /^([xX*0]|[1-9]\\d*)(?:\\.([xX*0]|[1-9]\\d*)(?:\\.([xX*0]|[1-9]\\d*)(?:-([a-z0-9-.]+))?(?:\\+([a-z0-9-.]+))?)?)?$/i;\n // https://github.com/npm/node-semver#range-grammar\n //\n // hyphen ::= partial ' - ' partial\n var hyphenRegExp = /^\\s*([a-z0-9-+.*]+)\\s+-\\s+([a-z0-9-+.*]+)\\s*$/i;\n // https://github.com/npm/node-semver#range-grammar\n //\n // simple ::= primitive | partial | tilde | caret\n // primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial\n // tilde ::= '~' partial\n // caret ::= '^' partial\n var rangeRegExp = /^(~|\\^|<|<=|>|>=|=)?\\s*([a-z0-9-+.*]+)$/i;\n function parseRange(text) {\n var alternatives = [];\n for (var _i = 0, _a = ts.trimString(text).split(logicalOrRegExp); _i < _a.length; _i++) {\n var range = _a[_i];\n if (!range)\n continue;\n var comparators = [];\n range = ts.trimString(range);\n var match = hyphenRegExp.exec(range);\n if (match) {\n if (!parseHyphen(match[1], match[2], comparators))\n return undefined;\n }\n else {\n for (var _b = 0, _c = range.split(whitespaceRegExp); _b < _c.length; _b++) {\n var simple = _c[_b];\n var match_1 = rangeRegExp.exec(ts.trimString(simple));\n if (!match_1 || !parseComparator(match_1[1], match_1[2], comparators))\n return undefined;\n }\n }\n alternatives.push(comparators);\n }\n return alternatives;\n }\n function parsePartial(text) {\n var match = partialRegExp.exec(text);\n if (!match)\n return undefined;\n var major = match[1], _a = match[2], minor = _a === void 0 ? \"*\" : _a, _b = match[3], patch = _b === void 0 ? \"*\" : _b, prerelease = match[4], build = match[5];\n var version = new Version(isWildcard(major) ? 0 : parseInt(major, 10), isWildcard(major) || isWildcard(minor) ? 0 : parseInt(minor, 10), isWildcard(major) || isWildcard(minor) || isWildcard(patch) ? 0 : parseInt(patch, 10), prerelease, build);\n return { version: version, major: major, minor: minor, patch: patch };\n }\n function parseHyphen(left, right, comparators) {\n var leftResult = parsePartial(left);\n if (!leftResult)\n return false;\n var rightResult = parsePartial(right);\n if (!rightResult)\n return false;\n if (!isWildcard(leftResult.major)) {\n comparators.push(createComparator(\">=\", leftResult.version));\n }\n if (!isWildcard(rightResult.major)) {\n comparators.push(isWildcard(rightResult.minor) ? createComparator(\"<\", rightResult.version.increment(\"major\")) :\n isWildcard(rightResult.patch) ? createComparator(\"<\", rightResult.version.increment(\"minor\")) :\n createComparator(\"<=\", rightResult.version));\n }\n return true;\n }\n function parseComparator(operator, text, comparators) {\n var result = parsePartial(text);\n if (!result)\n return false;\n var version = result.version, major = result.major, minor = result.minor, patch = result.patch;\n if (!isWildcard(major)) {\n switch (operator) {\n case \"~\":\n comparators.push(createComparator(\">=\", version));\n comparators.push(createComparator(\"<\", version.increment(isWildcard(minor) ? \"major\" :\n \"minor\")));\n break;\n case \"^\":\n comparators.push(createComparator(\">=\", version));\n comparators.push(createComparator(\"<\", version.increment(version.major > 0 || isWildcard(minor) ? \"major\" :\n version.minor > 0 || isWildcard(patch) ? \"minor\" :\n \"patch\")));\n break;\n case \"<\":\n case \">=\":\n comparators.push(createComparator(operator, version));\n break;\n case \"<=\":\n case \">\":\n comparators.push(isWildcard(minor) ? createComparator(operator === \"<=\" ? \"<\" : \">=\", version.increment(\"major\")) :\n isWildcard(patch) ? createComparator(operator === \"<=\" ? \"<\" : \">=\", version.increment(\"minor\")) :\n createComparator(operator, version));\n break;\n case \"=\":\n case undefined:\n if (isWildcard(minor) || isWildcard(patch)) {\n comparators.push(createComparator(\">=\", version));\n comparators.push(createComparator(\"<\", version.increment(isWildcard(minor) ? \"major\" : \"minor\")));\n }\n else {\n comparators.push(createComparator(\"=\", version));\n }\n break;\n default:\n // unrecognized\n return false;\n }\n }\n else if (operator === \"<\" || operator === \">\") {\n comparators.push(createComparator(\"<\", Version.zero));\n }\n return true;\n }\n function isWildcard(part) {\n return part === \"*\" || part === \"x\" || part === \"X\";\n }\n function createComparator(operator, operand) {\n return { operator: operator, operand: operand };\n }\n function testDisjunction(version, alternatives) {\n // an empty disjunction is treated as \"*\" (all versions)\n if (alternatives.length === 0)\n return true;\n for (var _i = 0, alternatives_1 = alternatives; _i < alternatives_1.length; _i++) {\n var alternative = alternatives_1[_i];\n if (testAlternative(version, alternative))\n return true;\n }\n return false;\n }\n function testAlternative(version, comparators) {\n for (var _i = 0, comparators_1 = comparators; _i < comparators_1.length; _i++) {\n var comparator = comparators_1[_i];\n if (!testComparator(version, comparator.operator, comparator.operand))\n return false;\n }\n return true;\n }\n function testComparator(version, operator, operand) {\n var cmp = version.compareTo(operand);\n switch (operator) {\n case \"<\": return cmp < 0;\n case \"<=\": return cmp <= 0;\n case \">\": return cmp > 0;\n case \">=\": return cmp >= 0;\n case \"=\": return cmp === 0;\n default: return ts.Debug.assertNever(operator);\n }\n }\n function formatDisjunction(alternatives) {\n return ts.map(alternatives, formatAlternative).join(\" || \") || \"*\";\n }\n function formatAlternative(comparators) {\n return ts.map(comparators, formatComparator).join(\" \");\n }\n function formatComparator(comparator) {\n return \"\" + comparator.operator + comparator.operand;\n }\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n // The following definitions provide the minimum compatible support for the Web Performance User Timings API\n // between browsers and NodeJS:\n // eslint-disable-next-line @typescript-eslint/naming-convention\n function hasRequiredAPI(performance, PerformanceObserver) {\n return typeof performance === \"object\" &&\n typeof performance.timeOrigin === \"number\" &&\n typeof performance.mark === \"function\" &&\n typeof performance.measure === \"function\" &&\n typeof performance.now === \"function\" &&\n typeof PerformanceObserver === \"function\";\n }\n function tryGetWebPerformanceHooks() {\n if (typeof performance === \"object\" &&\n typeof PerformanceObserver === \"function\" &&\n hasRequiredAPI(performance, PerformanceObserver)) {\n return {\n // For now we always write native performance events when running in the browser. We may\n // make this conditional in the future if we find that native web performance hooks\n // in the browser also slow down compilation.\n shouldWriteNativeEvents: true,\n performance: performance,\n PerformanceObserver: PerformanceObserver\n };\n }\n }\n function tryGetNodePerformanceHooks() {\n if (typeof process !== \"undefined\" && process.nextTick && !process.browser && typeof module === \"object\" && typeof require === \"function\") {\n try {\n var performance_1;\n var _a /* MONACOCHANGE */= {}/* END MONACOCHANGE */, nodePerformance_1 = _a.performance, PerformanceObserver_1 = _a.PerformanceObserver;\n if (hasRequiredAPI(nodePerformance_1, PerformanceObserver_1)) {\n performance_1 = nodePerformance_1;\n // There is a bug in Node's performance.measure prior to 12.16.3/13.13.0 that does not\n // match the Web Performance API specification. Node's implementation did not allow\n // optional `start` and `end` arguments for `performance.measure`.\n // See https://github.com/nodejs/node/pull/32651 for more information.\n var version_1 = new ts.Version(process.versions.node);\n var range = new ts.VersionRange(\"<12.16.3 || 13 <13.13\");\n if (range.test(version_1)) {\n performance_1 = {\n get timeOrigin() { return nodePerformance_1.timeOrigin; },\n now: function () { return nodePerformance_1.now(); },\n mark: function (name) { return nodePerformance_1.mark(name); },\n measure: function (name, start, end) {\n if (start === void 0) { start = \"nodeStart\"; }\n if (end === undefined) {\n end = \"__performance.measure-fix__\";\n nodePerformance_1.mark(end);\n }\n nodePerformance_1.measure(name, start, end);\n if (end === \"__performance.measure-fix__\") {\n nodePerformance_1.clearMarks(\"__performance.measure-fix__\");\n }\n }\n };\n }\n return {\n // By default, only write native events when generating a cpu profile or using the v8 profiler.\n shouldWriteNativeEvents: false,\n performance: performance_1,\n PerformanceObserver: PerformanceObserver_1\n };\n }\n }\n catch (_b) {\n // ignore errors\n }\n }\n }\n // Unlike with the native Map/Set 'tryGet' functions in corePublic.ts, we eagerly evaluate these\n // since we will need them for `timestamp`, below.\n var nativePerformanceHooks = tryGetWebPerformanceHooks() || tryGetNodePerformanceHooks();\n var nativePerformance = nativePerformanceHooks === null || nativePerformanceHooks === void 0 ? void 0 : nativePerformanceHooks.performance;\n function tryGetNativePerformanceHooks() {\n return nativePerformanceHooks;\n }\n ts.tryGetNativePerformanceHooks = tryGetNativePerformanceHooks;\n /** Gets a timestamp with (at least) ms resolution */\n ts.timestamp = nativePerformance ? function () { return nativePerformance.now(); } :\n Date.now ? Date.now :\n function () { return +(new Date()); };\n})(ts || (ts = {}));\n/*@internal*/\n/** Performance measurements for the compiler. */\nvar ts;\n(function (ts) {\n var performance;\n (function (performance) {\n var perfHooks;\n // when set, indicates the implementation of `Performance` to use for user timing.\n // when unset, indicates user timing is unavailable or disabled.\n var performanceImpl;\n function createTimerIf(condition, measureName, startMarkName, endMarkName) {\n return condition ? createTimer(measureName, startMarkName, endMarkName) : performance.nullTimer;\n }\n performance.createTimerIf = createTimerIf;\n function createTimer(measureName, startMarkName, endMarkName) {\n var enterCount = 0;\n return {\n enter: enter,\n exit: exit\n };\n function enter() {\n if (++enterCount === 1) {\n mark(startMarkName);\n }\n }\n function exit() {\n if (--enterCount === 0) {\n mark(endMarkName);\n measure(measureName, startMarkName, endMarkName);\n }\n else if (enterCount < 0) {\n ts.Debug.fail(\"enter/exit count does not match.\");\n }\n }\n }\n performance.createTimer = createTimer;\n performance.nullTimer = { enter: ts.noop, exit: ts.noop };\n var enabled = false;\n var timeorigin = ts.timestamp();\n var marks = new ts.Map();\n var counts = new ts.Map();\n var durations = new ts.Map();\n /**\n * Marks a performance event.\n *\n * @param markName The name of the mark.\n */\n function mark(markName) {\n var _a;\n if (enabled) {\n var count = (_a = counts.get(markName)) !== null && _a !== void 0 ? _a : 0;\n counts.set(markName, count + 1);\n marks.set(markName, ts.timestamp());\n performanceImpl === null || performanceImpl === void 0 ? void 0 : performanceImpl.mark(markName);\n }\n }\n performance.mark = mark;\n /**\n * Adds a performance measurement with the specified name.\n *\n * @param measureName The name of the performance measurement.\n * @param startMarkName The name of the starting mark. If not supplied, the point at which the\n * profiler was enabled is used.\n * @param endMarkName The name of the ending mark. If not supplied, the current timestamp is\n * used.\n */\n function measure(measureName, startMarkName, endMarkName) {\n var _a, _b;\n if (enabled) {\n var end = (_a = (endMarkName !== undefined ? marks.get(endMarkName) : undefined)) !== null && _a !== void 0 ? _a : ts.timestamp();\n var start = (_b = (startMarkName !== undefined ? marks.get(startMarkName) : undefined)) !== null && _b !== void 0 ? _b : timeorigin;\n var previousDuration = durations.get(measureName) || 0;\n durations.set(measureName, previousDuration + (end - start));\n performanceImpl === null || performanceImpl === void 0 ? void 0 : performanceImpl.measure(measureName, startMarkName, endMarkName);\n }\n }\n performance.measure = measure;\n /**\n * Gets the number of times a marker was encountered.\n *\n * @param markName The name of the mark.\n */\n function getCount(markName) {\n return counts.get(markName) || 0;\n }\n performance.getCount = getCount;\n /**\n * Gets the total duration of all measurements with the supplied name.\n *\n * @param measureName The name of the measure whose durations should be accumulated.\n */\n function getDuration(measureName) {\n return durations.get(measureName) || 0;\n }\n performance.getDuration = getDuration;\n /**\n * Iterate over each measure, performing some action\n *\n * @param cb The action to perform for each measure\n */\n function forEachMeasure(cb) {\n durations.forEach(function (duration, measureName) { return cb(measureName, duration); });\n }\n performance.forEachMeasure = forEachMeasure;\n /**\n * Indicates whether the performance API is enabled.\n */\n function isEnabled() {\n return enabled;\n }\n performance.isEnabled = isEnabled;\n /** Enables (and resets) performance measurements for the compiler. */\n function enable(system) {\n var _a;\n if (system === void 0) { system = ts.sys; }\n if (!enabled) {\n enabled = true;\n perfHooks || (perfHooks = ts.tryGetNativePerformanceHooks());\n if (perfHooks) {\n timeorigin = perfHooks.performance.timeOrigin;\n // NodeJS's Web Performance API is currently slower than expected, but we'd still like\n // to be able to leverage native trace events when node is run with either `--cpu-prof`\n // or `--prof`, if we're running with our own `--generateCpuProfile` flag, or when\n // running in debug mode (since its possible to generate a cpu profile while debugging).\n if (perfHooks.shouldWriteNativeEvents || ((_a = system === null || system === void 0 ? void 0 : system.cpuProfilingEnabled) === null || _a === void 0 ? void 0 : _a.call(system)) || (system === null || system === void 0 ? void 0 : system.debugMode)) {\n performanceImpl = perfHooks.performance;\n }\n }\n }\n return true;\n }\n performance.enable = enable;\n /** Disables performance measurements for the compiler. */\n function disable() {\n if (enabled) {\n marks.clear();\n counts.clear();\n durations.clear();\n performanceImpl = undefined;\n enabled = false;\n }\n }\n performance.disable = disable;\n })(performance = ts.performance || (ts.performance = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var _a;\n var nullLogger = {\n logEvent: ts.noop,\n logErrEvent: ts.noop,\n logPerfEvent: ts.noop,\n logInfoEvent: ts.noop,\n logStartCommand: ts.noop,\n logStopCommand: ts.noop,\n logStartUpdateProgram: ts.noop,\n logStopUpdateProgram: ts.noop,\n logStartUpdateGraph: ts.noop,\n logStopUpdateGraph: ts.noop,\n logStartResolveModule: ts.noop,\n logStopResolveModule: ts.noop,\n logStartParseSourceFile: ts.noop,\n logStopParseSourceFile: ts.noop,\n logStartReadFile: ts.noop,\n logStopReadFile: ts.noop,\n logStartBindFile: ts.noop,\n logStopBindFile: ts.noop,\n logStartScheduledOperation: ts.noop,\n logStopScheduledOperation: ts.noop,\n };\n // Load optional module to enable Event Tracing for Windows\n // See https://github.com/microsoft/typescript-etw for more information\n var etwModule;\n try {\n var etwModulePath = (_a = process.env.TS_ETW_MODULE_PATH) !== null && _a !== void 0 ? _a : \"./node_modules/@microsoft/typescript-etw\";\n // require() will throw an exception if the module is not found\n // It may also return undefined if not installed properly\n // MONACOCHANGE\n etwModule = undefined;\n // END MONACOCHANGE\n }\n catch (e) {\n etwModule = undefined;\n }\n /** Performance logger that will generate ETW events if possible - check for `logEvent` member, as `etwModule` will be `{}` when browserified */\n ts.perfLogger = etwModule && etwModule.logEvent ? etwModule : nullLogger;\n})(ts || (ts = {}));\n/* Tracing events for the compiler. */\n/*@internal*/\nvar ts;\n(function (ts) {\n // enable the above using startTracing()\n // `tracingEnabled` should never be used directly, only through the above\n var tracingEnabled;\n (function (tracingEnabled) {\n var fs;\n var traceCount = 0;\n var traceFd = 0;\n var mode;\n var typeCatalog = []; // NB: id is index + 1\n var legendPath;\n var legend = [];\n ;\n /** Starts tracing for the given project. */\n function startTracing(tracingMode, traceDir, configFilePath) {\n ts.Debug.assert(!ts.tracing, \"Tracing already started\");\n if (fs === undefined) {\n try {\n // MONACOCHANGE\n fs = undefined;\n // END MONACOCHANGE\n }\n catch (e) {\n throw new Error(\"tracing requires having fs\\n(original error: \" + (e.message || e) + \")\");\n }\n }\n mode = tracingMode;\n typeCatalog.length = 0;\n if (legendPath === undefined) {\n legendPath = ts.combinePaths(traceDir, \"legend.json\");\n }\n // Note that writing will fail later on if it exists and is not a directory\n if (!fs.existsSync(traceDir)) {\n fs.mkdirSync(traceDir, { recursive: true });\n }\n var countPart = mode === \"build\" ? \".\" + process.pid + \"-\" + ++traceCount\n : mode === \"server\" ? \".\" + process.pid\n : \"\";\n var tracePath = ts.combinePaths(traceDir, \"trace\" + countPart + \".json\");\n var typesPath = ts.combinePaths(traceDir, \"types\" + countPart + \".json\");\n legend.push({\n configFilePath: configFilePath,\n tracePath: tracePath,\n typesPath: typesPath,\n });\n traceFd = fs.openSync(tracePath, \"w\");\n ts.tracing = tracingEnabled; // only when traceFd is properly set\n // Start with a prefix that contains some metadata that the devtools profiler expects (also avoids a warning on import)\n var meta = { cat: \"__metadata\", ph: \"M\", ts: 1000 * ts.timestamp(), pid: 1, tid: 1 };\n fs.writeSync(traceFd, \"[\\n\"\n + [__assign({ name: \"process_name\", args: { name: \"tsc\" } }, meta), __assign({ name: \"thread_name\", args: { name: \"Main\" } }, meta), __assign(__assign({ name: \"TracingStartedInBrowser\" }, meta), { cat: \"disabled-by-default-devtools.timeline\" })]\n .map(function (v) { return JSON.stringify(v); }).join(\",\\n\"));\n }\n tracingEnabled.startTracing = startTracing;\n /** Stops tracing for the in-progress project and dumps the type catalog. */\n function stopTracing() {\n ts.Debug.assert(ts.tracing, \"Tracing is not in progress\");\n ts.Debug.assert(!!typeCatalog.length === (mode !== \"server\")); // Have a type catalog iff not in server mode\n fs.writeSync(traceFd, \"\\n]\\n\");\n fs.closeSync(traceFd);\n ts.tracing = undefined;\n if (typeCatalog.length) {\n dumpTypes(typeCatalog);\n }\n else {\n // We pre-computed this path for convenience, but clear it\n // now that the file won't be created.\n legend[legend.length - 1].typesPath = undefined;\n }\n }\n tracingEnabled.stopTracing = stopTracing;\n function recordType(type) {\n if (mode !== \"server\") {\n typeCatalog.push(type);\n }\n }\n tracingEnabled.recordType = recordType;\n var Phase;\n (function (Phase) {\n Phase[\"Parse\"] = \"parse\";\n Phase[\"Program\"] = \"program\";\n Phase[\"Bind\"] = \"bind\";\n Phase[\"Check\"] = \"check\";\n Phase[\"CheckTypes\"] = \"checkTypes\";\n Phase[\"Emit\"] = \"emit\";\n Phase[\"Session\"] = \"session\";\n })(Phase = tracingEnabled.Phase || (tracingEnabled.Phase = {}));\n function instant(phase, name, args) {\n writeEvent(\"I\", phase, name, args, \"\\\"s\\\":\\\"g\\\"\");\n }\n tracingEnabled.instant = instant;\n var eventStack = [];\n /**\n * @param separateBeginAndEnd - used for special cases where we need the trace point even if the event\n * never terminates (typically for reducing a scenario too big to trace to one that can be completed).\n * In the future we might implement an exit handler to dump unfinished events which would deprecate\n * these operations.\n */\n function push(phase, name, args, separateBeginAndEnd) {\n if (separateBeginAndEnd === void 0) { separateBeginAndEnd = false; }\n if (separateBeginAndEnd) {\n writeEvent(\"B\", phase, name, args);\n }\n eventStack.push({ phase: phase, name: name, args: args, time: 1000 * ts.timestamp(), separateBeginAndEnd: separateBeginAndEnd });\n }\n tracingEnabled.push = push;\n function pop() {\n ts.Debug.assert(eventStack.length > 0);\n writeStackEvent(eventStack.length - 1, 1000 * ts.timestamp());\n eventStack.length--;\n }\n tracingEnabled.pop = pop;\n function popAll() {\n var endTime = 1000 * ts.timestamp();\n for (var i = eventStack.length - 1; i >= 0; i--) {\n writeStackEvent(i, endTime);\n }\n eventStack.length = 0;\n }\n tracingEnabled.popAll = popAll;\n // sample every 10ms\n var sampleInterval = 1000 * 10;\n function writeStackEvent(index, endTime) {\n var _a = eventStack[index], phase = _a.phase, name = _a.name, args = _a.args, time = _a.time, separateBeginAndEnd = _a.separateBeginAndEnd;\n if (separateBeginAndEnd) {\n writeEvent(\"E\", phase, name, args, /*extras*/ undefined, endTime);\n }\n // test if [time,endTime) straddles a sampling point\n else if (sampleInterval - (time % sampleInterval) <= endTime - time) {\n writeEvent(\"X\", phase, name, args, \"\\\"dur\\\":\" + (endTime - time), time);\n }\n }\n function writeEvent(eventType, phase, name, args, extras, time) {\n if (time === void 0) { time = 1000 * ts.timestamp(); }\n // In server mode, there's no easy way to dump type information, so we drop events that would require it.\n if (mode === \"server\" && phase === \"checkTypes\" /* CheckTypes */)\n return;\n ts.performance.mark(\"beginTracing\");\n fs.writeSync(traceFd, \",\\n{\\\"pid\\\":1,\\\"tid\\\":1,\\\"ph\\\":\\\"\" + eventType + \"\\\",\\\"cat\\\":\\\"\" + phase + \"\\\",\\\"ts\\\":\" + time + \",\\\"name\\\":\\\"\" + name + \"\\\"\");\n if (extras)\n fs.writeSync(traceFd, \",\" + extras);\n if (args)\n fs.writeSync(traceFd, \",\\\"args\\\":\" + JSON.stringify(args));\n fs.writeSync(traceFd, \"}\");\n ts.performance.mark(\"endTracing\");\n ts.performance.measure(\"Tracing\", \"beginTracing\", \"endTracing\");\n }\n function getLocation(node) {\n var file = ts.getSourceFileOfNode(node);\n return !file\n ? undefined\n : {\n path: file.path,\n start: indexFromOne(ts.getLineAndCharacterOfPosition(file, node.pos)),\n end: indexFromOne(ts.getLineAndCharacterOfPosition(file, node.end)),\n };\n function indexFromOne(lc) {\n return {\n line: lc.line + 1,\n character: lc.character + 1,\n };\n }\n }\n function dumpTypes(types) {\n var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;\n ts.performance.mark(\"beginDumpTypes\");\n var typesPath = legend[legend.length - 1].typesPath;\n var typesFd = fs.openSync(typesPath, \"w\");\n var recursionIdentityMap = new ts.Map();\n // Cleverness: no line break here so that the type ID will match the line number\n fs.writeSync(typesFd, \"[\");\n var numTypes = types.length;\n for (var i = 0; i < numTypes; i++) {\n var type = types[i];\n var objectFlags = type.objectFlags;\n var symbol = (_a = type.aliasSymbol) !== null && _a !== void 0 ? _a : type.symbol;\n // It's slow to compute the display text, so skip it unless it's really valuable (or cheap)\n var display = void 0;\n if ((objectFlags & 16 /* Anonymous */) | (type.flags & 2944 /* Literal */)) {\n try {\n display = (_b = type.checker) === null || _b === void 0 ? void 0 : _b.typeToString(type);\n }\n catch (_y) {\n display = undefined;\n }\n }\n var indexedAccessProperties = {};\n if (type.flags & 8388608 /* IndexedAccess */) {\n var indexedAccessType = type;\n indexedAccessProperties = {\n indexedAccessObjectType: (_c = indexedAccessType.objectType) === null || _c === void 0 ? void 0 : _c.id,\n indexedAccessIndexType: (_d = indexedAccessType.indexType) === null || _d === void 0 ? void 0 : _d.id,\n };\n }\n var referenceProperties = {};\n if (objectFlags & 4 /* Reference */) {\n var referenceType = type;\n referenceProperties = {\n instantiatedType: (_e = referenceType.target) === null || _e === void 0 ? void 0 : _e.id,\n typeArguments: (_f = referenceType.resolvedTypeArguments) === null || _f === void 0 ? void 0 : _f.map(function (t) { return t.id; }),\n referenceLocation: getLocation(referenceType.node),\n };\n }\n var conditionalProperties = {};\n if (type.flags & 16777216 /* Conditional */) {\n var conditionalType = type;\n conditionalProperties = {\n conditionalCheckType: (_g = conditionalType.checkType) === null || _g === void 0 ? void 0 : _g.id,\n conditionalExtendsType: (_h = conditionalType.extendsType) === null || _h === void 0 ? void 0 : _h.id,\n conditionalTrueType: (_k = (_j = conditionalType.resolvedTrueType) === null || _j === void 0 ? void 0 : _j.id) !== null && _k !== void 0 ? _k : -1,\n conditionalFalseType: (_m = (_l = conditionalType.resolvedFalseType) === null || _l === void 0 ? void 0 : _l.id) !== null && _m !== void 0 ? _m : -1,\n };\n }\n var substitutionProperties = {};\n if (type.flags & 33554432 /* Substitution */) {\n var substitutionType = type;\n substitutionProperties = {\n substitutionBaseType: (_o = substitutionType.baseType) === null || _o === void 0 ? void 0 : _o.id,\n substituteType: (_p = substitutionType.substitute) === null || _p === void 0 ? void 0 : _p.id,\n };\n }\n var reverseMappedProperties = {};\n if (objectFlags & 1024 /* ReverseMapped */) {\n var reverseMappedType = type;\n reverseMappedProperties = {\n reverseMappedSourceType: (_q = reverseMappedType.source) === null || _q === void 0 ? void 0 : _q.id,\n reverseMappedMappedType: (_r = reverseMappedType.mappedType) === null || _r === void 0 ? void 0 : _r.id,\n reverseMappedConstraintType: (_s = reverseMappedType.constraintType) === null || _s === void 0 ? void 0 : _s.id,\n };\n }\n var evolvingArrayProperties = {};\n if (objectFlags & 256 /* EvolvingArray */) {\n var evolvingArrayType = type;\n evolvingArrayProperties = {\n evolvingArrayElementType: evolvingArrayType.elementType.id,\n evolvingArrayFinalType: (_t = evolvingArrayType.finalArrayType) === null || _t === void 0 ? void 0 : _t.id,\n };\n }\n // We can't print out an arbitrary object, so just assign each one a unique number.\n // Don't call it an \"id\" so people don't treat it as a type id.\n var recursionToken = void 0;\n var recursionIdentity = type.checker.getRecursionIdentity(type);\n if (recursionIdentity) {\n recursionToken = recursionIdentityMap.get(recursionIdentity);\n if (!recursionToken) {\n recursionToken = recursionIdentityMap.size;\n recursionIdentityMap.set(recursionIdentity, recursionToken);\n }\n }\n var descriptor = __assign(__assign(__assign(__assign(__assign(__assign(__assign({ id: type.id, intrinsicName: type.intrinsicName, symbolName: (symbol === null || symbol === void 0 ? void 0 : symbol.escapedName) && ts.unescapeLeadingUnderscores(symbol.escapedName), recursionId: recursionToken, isTuple: objectFlags & 8 /* Tuple */ ? true : undefined, unionTypes: (type.flags & 1048576 /* Union */) ? (_u = type.types) === null || _u === void 0 ? void 0 : _u.map(function (t) { return t.id; }) : undefined, intersectionTypes: (type.flags & 2097152 /* Intersection */) ? type.types.map(function (t) { return t.id; }) : undefined, aliasTypeArguments: (_v = type.aliasTypeArguments) === null || _v === void 0 ? void 0 : _v.map(function (t) { return t.id; }), keyofType: (type.flags & 4194304 /* Index */) ? (_w = type.type) === null || _w === void 0 ? void 0 : _w.id : undefined }, indexedAccessProperties), referenceProperties), conditionalProperties), substitutionProperties), reverseMappedProperties), evolvingArrayProperties), { destructuringPattern: getLocation(type.pattern), firstDeclaration: getLocation((_x = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _x === void 0 ? void 0 : _x[0]), flags: ts.Debug.formatTypeFlags(type.flags).split(\"|\"), display: display });\n fs.writeSync(typesFd, JSON.stringify(descriptor));\n if (i < numTypes - 1) {\n fs.writeSync(typesFd, \",\\n\");\n }\n }\n fs.writeSync(typesFd, \"]\\n\");\n fs.closeSync(typesFd);\n ts.performance.mark(\"endDumpTypes\");\n ts.performance.measure(\"Dump types\", \"beginDumpTypes\", \"endDumpTypes\");\n }\n function dumpLegend() {\n if (!legendPath) {\n return;\n }\n fs.writeFileSync(legendPath, JSON.stringify(legend));\n }\n tracingEnabled.dumpLegend = dumpLegend;\n })(tracingEnabled || (tracingEnabled = {}));\n // define after tracingEnabled is initialized\n ts.startTracing = tracingEnabled.startTracing;\n ts.dumpTracingLegend = tracingEnabled.dumpLegend;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n // token > SyntaxKind.Identifier => token is a keyword\n // Also, If you add a new SyntaxKind be sure to keep the `Markers` section at the bottom in sync\n var SyntaxKind;\n (function (SyntaxKind) {\n SyntaxKind[SyntaxKind[\"Unknown\"] = 0] = \"Unknown\";\n SyntaxKind[SyntaxKind[\"EndOfFileToken\"] = 1] = \"EndOfFileToken\";\n SyntaxKind[SyntaxKind[\"SingleLineCommentTrivia\"] = 2] = \"SingleLineCommentTrivia\";\n SyntaxKind[SyntaxKind[\"MultiLineCommentTrivia\"] = 3] = \"MultiLineCommentTrivia\";\n SyntaxKind[SyntaxKind[\"NewLineTrivia\"] = 4] = \"NewLineTrivia\";\n SyntaxKind[SyntaxKind[\"WhitespaceTrivia\"] = 5] = \"WhitespaceTrivia\";\n // We detect and preserve #! on the first line\n SyntaxKind[SyntaxKind[\"ShebangTrivia\"] = 6] = \"ShebangTrivia\";\n // We detect and provide better error recovery when we encounter a git merge marker. This\n // allows us to edit files with git-conflict markers in them in a much more pleasant manner.\n SyntaxKind[SyntaxKind[\"ConflictMarkerTrivia\"] = 7] = \"ConflictMarkerTrivia\";\n // Literals\n SyntaxKind[SyntaxKind[\"NumericLiteral\"] = 8] = \"NumericLiteral\";\n SyntaxKind[SyntaxKind[\"BigIntLiteral\"] = 9] = \"BigIntLiteral\";\n SyntaxKind[SyntaxKind[\"StringLiteral\"] = 10] = \"StringLiteral\";\n SyntaxKind[SyntaxKind[\"JsxText\"] = 11] = \"JsxText\";\n SyntaxKind[SyntaxKind[\"JsxTextAllWhiteSpaces\"] = 12] = \"JsxTextAllWhiteSpaces\";\n SyntaxKind[SyntaxKind[\"RegularExpressionLiteral\"] = 13] = \"RegularExpressionLiteral\";\n SyntaxKind[SyntaxKind[\"NoSubstitutionTemplateLiteral\"] = 14] = \"NoSubstitutionTemplateLiteral\";\n // Pseudo-literals\n SyntaxKind[SyntaxKind[\"TemplateHead\"] = 15] = \"TemplateHead\";\n SyntaxKind[SyntaxKind[\"TemplateMiddle\"] = 16] = \"TemplateMiddle\";\n SyntaxKind[SyntaxKind[\"TemplateTail\"] = 17] = \"TemplateTail\";\n // Punctuation\n SyntaxKind[SyntaxKind[\"OpenBraceToken\"] = 18] = \"OpenBraceToken\";\n SyntaxKind[SyntaxKind[\"CloseBraceToken\"] = 19] = \"CloseBraceToken\";\n SyntaxKind[SyntaxKind[\"OpenParenToken\"] = 20] = \"OpenParenToken\";\n SyntaxKind[SyntaxKind[\"CloseParenToken\"] = 21] = \"CloseParenToken\";\n SyntaxKind[SyntaxKind[\"OpenBracketToken\"] = 22] = \"OpenBracketToken\";\n SyntaxKind[SyntaxKind[\"CloseBracketToken\"] = 23] = \"CloseBracketToken\";\n SyntaxKind[SyntaxKind[\"DotToken\"] = 24] = \"DotToken\";\n SyntaxKind[SyntaxKind[\"DotDotDotToken\"] = 25] = \"DotDotDotToken\";\n SyntaxKind[SyntaxKind[\"SemicolonToken\"] = 26] = \"SemicolonToken\";\n SyntaxKind[SyntaxKind[\"CommaToken\"] = 27] = \"CommaToken\";\n SyntaxKind[SyntaxKind[\"QuestionDotToken\"] = 28] = \"QuestionDotToken\";\n SyntaxKind[SyntaxKind[\"LessThanToken\"] = 29] = \"LessThanToken\";\n SyntaxKind[SyntaxKind[\"LessThanSlashToken\"] = 30] = \"LessThanSlashToken\";\n SyntaxKind[SyntaxKind[\"GreaterThanToken\"] = 31] = \"GreaterThanToken\";\n SyntaxKind[SyntaxKind[\"LessThanEqualsToken\"] = 32] = \"LessThanEqualsToken\";\n SyntaxKind[SyntaxKind[\"GreaterThanEqualsToken\"] = 33] = \"GreaterThanEqualsToken\";\n SyntaxKind[SyntaxKind[\"EqualsEqualsToken\"] = 34] = \"EqualsEqualsToken\";\n SyntaxKind[SyntaxKind[\"ExclamationEqualsToken\"] = 35] = \"ExclamationEqualsToken\";\n SyntaxKind[SyntaxKind[\"EqualsEqualsEqualsToken\"] = 36] = \"EqualsEqualsEqualsToken\";\n SyntaxKind[SyntaxKind[\"ExclamationEqualsEqualsToken\"] = 37] = \"ExclamationEqualsEqualsToken\";\n SyntaxKind[SyntaxKind[\"EqualsGreaterThanToken\"] = 38] = \"EqualsGreaterThanToken\";\n SyntaxKind[SyntaxKind[\"PlusToken\"] = 39] = \"PlusToken\";\n SyntaxKind[SyntaxKind[\"MinusToken\"] = 40] = \"MinusToken\";\n SyntaxKind[SyntaxKind[\"AsteriskToken\"] = 41] = \"AsteriskToken\";\n SyntaxKind[SyntaxKind[\"AsteriskAsteriskToken\"] = 42] = \"AsteriskAsteriskToken\";\n SyntaxKind[SyntaxKind[\"SlashToken\"] = 43] = \"SlashToken\";\n SyntaxKind[SyntaxKind[\"PercentToken\"] = 44] = \"PercentToken\";\n SyntaxKind[SyntaxKind[\"PlusPlusToken\"] = 45] = \"PlusPlusToken\";\n SyntaxKind[SyntaxKind[\"MinusMinusToken\"] = 46] = \"MinusMinusToken\";\n SyntaxKind[SyntaxKind[\"LessThanLessThanToken\"] = 47] = \"LessThanLessThanToken\";\n SyntaxKind[SyntaxKind[\"GreaterThanGreaterThanToken\"] = 48] = \"GreaterThanGreaterThanToken\";\n SyntaxKind[SyntaxKind[\"GreaterThanGreaterThanGreaterThanToken\"] = 49] = \"GreaterThanGreaterThanGreaterThanToken\";\n SyntaxKind[SyntaxKind[\"AmpersandToken\"] = 50] = \"AmpersandToken\";\n SyntaxKind[SyntaxKind[\"BarToken\"] = 51] = \"BarToken\";\n SyntaxKind[SyntaxKind[\"CaretToken\"] = 52] = \"CaretToken\";\n SyntaxKind[SyntaxKind[\"ExclamationToken\"] = 53] = \"ExclamationToken\";\n SyntaxKind[SyntaxKind[\"TildeToken\"] = 54] = \"TildeToken\";\n SyntaxKind[SyntaxKind[\"AmpersandAmpersandToken\"] = 55] = \"AmpersandAmpersandToken\";\n SyntaxKind[SyntaxKind[\"BarBarToken\"] = 56] = \"BarBarToken\";\n SyntaxKind[SyntaxKind[\"QuestionToken\"] = 57] = \"QuestionToken\";\n SyntaxKind[SyntaxKind[\"ColonToken\"] = 58] = \"ColonToken\";\n SyntaxKind[SyntaxKind[\"AtToken\"] = 59] = \"AtToken\";\n SyntaxKind[SyntaxKind[\"QuestionQuestionToken\"] = 60] = \"QuestionQuestionToken\";\n /** Only the JSDoc scanner produces BacktickToken. The normal scanner produces NoSubstitutionTemplateLiteral and related kinds. */\n SyntaxKind[SyntaxKind[\"BacktickToken\"] = 61] = \"BacktickToken\";\n /** Only the JSDoc scanner produces HashToken. The normal scanner produces PrivateIdentifier. */\n SyntaxKind[SyntaxKind[\"HashToken\"] = 62] = \"HashToken\";\n // Assignments\n SyntaxKind[SyntaxKind[\"EqualsToken\"] = 63] = \"EqualsToken\";\n SyntaxKind[SyntaxKind[\"PlusEqualsToken\"] = 64] = \"PlusEqualsToken\";\n SyntaxKind[SyntaxKind[\"MinusEqualsToken\"] = 65] = \"MinusEqualsToken\";\n SyntaxKind[SyntaxKind[\"AsteriskEqualsToken\"] = 66] = \"AsteriskEqualsToken\";\n SyntaxKind[SyntaxKind[\"AsteriskAsteriskEqualsToken\"] = 67] = \"AsteriskAsteriskEqualsToken\";\n SyntaxKind[SyntaxKind[\"SlashEqualsToken\"] = 68] = \"SlashEqualsToken\";\n SyntaxKind[SyntaxKind[\"PercentEqualsToken\"] = 69] = \"PercentEqualsToken\";\n SyntaxKind[SyntaxKind[\"LessThanLessThanEqualsToken\"] = 70] = \"LessThanLessThanEqualsToken\";\n SyntaxKind[SyntaxKind[\"GreaterThanGreaterThanEqualsToken\"] = 71] = \"GreaterThanGreaterThanEqualsToken\";\n SyntaxKind[SyntaxKind[\"GreaterThanGreaterThanGreaterThanEqualsToken\"] = 72] = \"GreaterThanGreaterThanGreaterThanEqualsToken\";\n SyntaxKind[SyntaxKind[\"AmpersandEqualsToken\"] = 73] = \"AmpersandEqualsToken\";\n SyntaxKind[SyntaxKind[\"BarEqualsToken\"] = 74] = \"BarEqualsToken\";\n SyntaxKind[SyntaxKind[\"BarBarEqualsToken\"] = 75] = \"BarBarEqualsToken\";\n SyntaxKind[SyntaxKind[\"AmpersandAmpersandEqualsToken\"] = 76] = \"AmpersandAmpersandEqualsToken\";\n SyntaxKind[SyntaxKind[\"QuestionQuestionEqualsToken\"] = 77] = \"QuestionQuestionEqualsToken\";\n SyntaxKind[SyntaxKind[\"CaretEqualsToken\"] = 78] = \"CaretEqualsToken\";\n // Identifiers and PrivateIdentifiers\n SyntaxKind[SyntaxKind[\"Identifier\"] = 79] = \"Identifier\";\n SyntaxKind[SyntaxKind[\"PrivateIdentifier\"] = 80] = \"PrivateIdentifier\";\n // Reserved words\n SyntaxKind[SyntaxKind[\"BreakKeyword\"] = 81] = \"BreakKeyword\";\n SyntaxKind[SyntaxKind[\"CaseKeyword\"] = 82] = \"CaseKeyword\";\n SyntaxKind[SyntaxKind[\"CatchKeyword\"] = 83] = \"CatchKeyword\";\n SyntaxKind[SyntaxKind[\"ClassKeyword\"] = 84] = \"ClassKeyword\";\n SyntaxKind[SyntaxKind[\"ConstKeyword\"] = 85] = \"ConstKeyword\";\n SyntaxKind[SyntaxKind[\"ContinueKeyword\"] = 86] = \"ContinueKeyword\";\n SyntaxKind[SyntaxKind[\"DebuggerKeyword\"] = 87] = \"DebuggerKeyword\";\n SyntaxKind[SyntaxKind[\"DefaultKeyword\"] = 88] = \"DefaultKeyword\";\n SyntaxKind[SyntaxKind[\"DeleteKeyword\"] = 89] = \"DeleteKeyword\";\n SyntaxKind[SyntaxKind[\"DoKeyword\"] = 90] = \"DoKeyword\";\n SyntaxKind[SyntaxKind[\"ElseKeyword\"] = 91] = \"ElseKeyword\";\n SyntaxKind[SyntaxKind[\"EnumKeyword\"] = 92] = \"EnumKeyword\";\n SyntaxKind[SyntaxKind[\"ExportKeyword\"] = 93] = \"ExportKeyword\";\n SyntaxKind[SyntaxKind[\"ExtendsKeyword\"] = 94] = \"ExtendsKeyword\";\n SyntaxKind[SyntaxKind[\"FalseKeyword\"] = 95] = \"FalseKeyword\";\n SyntaxKind[SyntaxKind[\"FinallyKeyword\"] = 96] = \"FinallyKeyword\";\n SyntaxKind[SyntaxKind[\"ForKeyword\"] = 97] = \"ForKeyword\";\n SyntaxKind[SyntaxKind[\"FunctionKeyword\"] = 98] = \"FunctionKeyword\";\n SyntaxKind[SyntaxKind[\"IfKeyword\"] = 99] = \"IfKeyword\";\n SyntaxKind[SyntaxKind[\"ImportKeyword\"] = 100] = \"ImportKeyword\";\n SyntaxKind[SyntaxKind[\"InKeyword\"] = 101] = \"InKeyword\";\n SyntaxKind[SyntaxKind[\"InstanceOfKeyword\"] = 102] = \"InstanceOfKeyword\";\n SyntaxKind[SyntaxKind[\"NewKeyword\"] = 103] = \"NewKeyword\";\n SyntaxKind[SyntaxKind[\"NullKeyword\"] = 104] = \"NullKeyword\";\n SyntaxKind[SyntaxKind[\"ReturnKeyword\"] = 105] = \"ReturnKeyword\";\n SyntaxKind[SyntaxKind[\"SuperKeyword\"] = 106] = \"SuperKeyword\";\n SyntaxKind[SyntaxKind[\"SwitchKeyword\"] = 107] = \"SwitchKeyword\";\n SyntaxKind[SyntaxKind[\"ThisKeyword\"] = 108] = \"ThisKeyword\";\n SyntaxKind[SyntaxKind[\"ThrowKeyword\"] = 109] = \"ThrowKeyword\";\n SyntaxKind[SyntaxKind[\"TrueKeyword\"] = 110] = \"TrueKeyword\";\n SyntaxKind[SyntaxKind[\"TryKeyword\"] = 111] = \"TryKeyword\";\n SyntaxKind[SyntaxKind[\"TypeOfKeyword\"] = 112] = \"TypeOfKeyword\";\n SyntaxKind[SyntaxKind[\"VarKeyword\"] = 113] = \"VarKeyword\";\n SyntaxKind[SyntaxKind[\"VoidKeyword\"] = 114] = \"VoidKeyword\";\n SyntaxKind[SyntaxKind[\"WhileKeyword\"] = 115] = \"WhileKeyword\";\n SyntaxKind[SyntaxKind[\"WithKeyword\"] = 116] = \"WithKeyword\";\n // Strict mode reserved words\n SyntaxKind[SyntaxKind[\"ImplementsKeyword\"] = 117] = \"ImplementsKeyword\";\n SyntaxKind[SyntaxKind[\"InterfaceKeyword\"] = 118] = \"InterfaceKeyword\";\n SyntaxKind[SyntaxKind[\"LetKeyword\"] = 119] = \"LetKeyword\";\n SyntaxKind[SyntaxKind[\"PackageKeyword\"] = 120] = \"PackageKeyword\";\n SyntaxKind[SyntaxKind[\"PrivateKeyword\"] = 121] = \"PrivateKeyword\";\n SyntaxKind[SyntaxKind[\"ProtectedKeyword\"] = 122] = \"ProtectedKeyword\";\n SyntaxKind[SyntaxKind[\"PublicKeyword\"] = 123] = \"PublicKeyword\";\n SyntaxKind[SyntaxKind[\"StaticKeyword\"] = 124] = \"StaticKeyword\";\n SyntaxKind[SyntaxKind[\"YieldKeyword\"] = 125] = \"YieldKeyword\";\n // Contextual keywords\n SyntaxKind[SyntaxKind[\"AbstractKeyword\"] = 126] = \"AbstractKeyword\";\n SyntaxKind[SyntaxKind[\"AsKeyword\"] = 127] = \"AsKeyword\";\n SyntaxKind[SyntaxKind[\"AssertsKeyword\"] = 128] = \"AssertsKeyword\";\n SyntaxKind[SyntaxKind[\"AnyKeyword\"] = 129] = \"AnyKeyword\";\n SyntaxKind[SyntaxKind[\"AsyncKeyword\"] = 130] = \"AsyncKeyword\";\n SyntaxKind[SyntaxKind[\"AwaitKeyword\"] = 131] = \"AwaitKeyword\";\n SyntaxKind[SyntaxKind[\"BooleanKeyword\"] = 132] = \"BooleanKeyword\";\n SyntaxKind[SyntaxKind[\"ConstructorKeyword\"] = 133] = \"ConstructorKeyword\";\n SyntaxKind[SyntaxKind[\"DeclareKeyword\"] = 134] = \"DeclareKeyword\";\n SyntaxKind[SyntaxKind[\"GetKeyword\"] = 135] = \"GetKeyword\";\n SyntaxKind[SyntaxKind[\"InferKeyword\"] = 136] = \"InferKeyword\";\n SyntaxKind[SyntaxKind[\"IntrinsicKeyword\"] = 137] = \"IntrinsicKeyword\";\n SyntaxKind[SyntaxKind[\"IsKeyword\"] = 138] = \"IsKeyword\";\n SyntaxKind[SyntaxKind[\"KeyOfKeyword\"] = 139] = \"KeyOfKeyword\";\n SyntaxKind[SyntaxKind[\"ModuleKeyword\"] = 140] = \"ModuleKeyword\";\n SyntaxKind[SyntaxKind[\"NamespaceKeyword\"] = 141] = \"NamespaceKeyword\";\n SyntaxKind[SyntaxKind[\"NeverKeyword\"] = 142] = \"NeverKeyword\";\n SyntaxKind[SyntaxKind[\"ReadonlyKeyword\"] = 143] = \"ReadonlyKeyword\";\n SyntaxKind[SyntaxKind[\"RequireKeyword\"] = 144] = \"RequireKeyword\";\n SyntaxKind[SyntaxKind[\"NumberKeyword\"] = 145] = \"NumberKeyword\";\n SyntaxKind[SyntaxKind[\"ObjectKeyword\"] = 146] = \"ObjectKeyword\";\n SyntaxKind[SyntaxKind[\"SetKeyword\"] = 147] = \"SetKeyword\";\n SyntaxKind[SyntaxKind[\"StringKeyword\"] = 148] = \"StringKeyword\";\n SyntaxKind[SyntaxKind[\"SymbolKeyword\"] = 149] = \"SymbolKeyword\";\n SyntaxKind[SyntaxKind[\"TypeKeyword\"] = 150] = \"TypeKeyword\";\n SyntaxKind[SyntaxKind[\"UndefinedKeyword\"] = 151] = \"UndefinedKeyword\";\n SyntaxKind[SyntaxKind[\"UniqueKeyword\"] = 152] = \"UniqueKeyword\";\n SyntaxKind[SyntaxKind[\"UnknownKeyword\"] = 153] = \"UnknownKeyword\";\n SyntaxKind[SyntaxKind[\"FromKeyword\"] = 154] = \"FromKeyword\";\n SyntaxKind[SyntaxKind[\"GlobalKeyword\"] = 155] = \"GlobalKeyword\";\n SyntaxKind[SyntaxKind[\"BigIntKeyword\"] = 156] = \"BigIntKeyword\";\n SyntaxKind[SyntaxKind[\"OverrideKeyword\"] = 157] = \"OverrideKeyword\";\n SyntaxKind[SyntaxKind[\"OfKeyword\"] = 158] = \"OfKeyword\";\n // Parse tree nodes\n // Names\n SyntaxKind[SyntaxKind[\"QualifiedName\"] = 159] = \"QualifiedName\";\n SyntaxKind[SyntaxKind[\"ComputedPropertyName\"] = 160] = \"ComputedPropertyName\";\n // Signature elements\n SyntaxKind[SyntaxKind[\"TypeParameter\"] = 161] = \"TypeParameter\";\n SyntaxKind[SyntaxKind[\"Parameter\"] = 162] = \"Parameter\";\n SyntaxKind[SyntaxKind[\"Decorator\"] = 163] = \"Decorator\";\n // TypeMember\n SyntaxKind[SyntaxKind[\"PropertySignature\"] = 164] = \"PropertySignature\";\n SyntaxKind[SyntaxKind[\"PropertyDeclaration\"] = 165] = \"PropertyDeclaration\";\n SyntaxKind[SyntaxKind[\"MethodSignature\"] = 166] = \"MethodSignature\";\n SyntaxKind[SyntaxKind[\"MethodDeclaration\"] = 167] = \"MethodDeclaration\";\n SyntaxKind[SyntaxKind[\"ClassStaticBlockDeclaration\"] = 168] = \"ClassStaticBlockDeclaration\";\n SyntaxKind[SyntaxKind[\"Constructor\"] = 169] = \"Constructor\";\n SyntaxKind[SyntaxKind[\"GetAccessor\"] = 170] = \"GetAccessor\";\n SyntaxKind[SyntaxKind[\"SetAccessor\"] = 171] = \"SetAccessor\";\n SyntaxKind[SyntaxKind[\"CallSignature\"] = 172] = \"CallSignature\";\n SyntaxKind[SyntaxKind[\"ConstructSignature\"] = 173] = \"ConstructSignature\";\n SyntaxKind[SyntaxKind[\"IndexSignature\"] = 174] = \"IndexSignature\";\n // Type\n SyntaxKind[SyntaxKind[\"TypePredicate\"] = 175] = \"TypePredicate\";\n SyntaxKind[SyntaxKind[\"TypeReference\"] = 176] = \"TypeReference\";\n SyntaxKind[SyntaxKind[\"FunctionType\"] = 177] = \"FunctionType\";\n SyntaxKind[SyntaxKind[\"ConstructorType\"] = 178] = \"ConstructorType\";\n SyntaxKind[SyntaxKind[\"TypeQuery\"] = 179] = \"TypeQuery\";\n SyntaxKind[SyntaxKind[\"TypeLiteral\"] = 180] = \"TypeLiteral\";\n SyntaxKind[SyntaxKind[\"ArrayType\"] = 181] = \"ArrayType\";\n SyntaxKind[SyntaxKind[\"TupleType\"] = 182] = \"TupleType\";\n SyntaxKind[SyntaxKind[\"OptionalType\"] = 183] = \"OptionalType\";\n SyntaxKind[SyntaxKind[\"RestType\"] = 184] = \"RestType\";\n SyntaxKind[SyntaxKind[\"UnionType\"] = 185] = \"UnionType\";\n SyntaxKind[SyntaxKind[\"IntersectionType\"] = 186] = \"IntersectionType\";\n SyntaxKind[SyntaxKind[\"ConditionalType\"] = 187] = \"ConditionalType\";\n SyntaxKind[SyntaxKind[\"InferType\"] = 188] = \"InferType\";\n SyntaxKind[SyntaxKind[\"ParenthesizedType\"] = 189] = \"ParenthesizedType\";\n SyntaxKind[SyntaxKind[\"ThisType\"] = 190] = \"ThisType\";\n SyntaxKind[SyntaxKind[\"TypeOperator\"] = 191] = \"TypeOperator\";\n SyntaxKind[SyntaxKind[\"IndexedAccessType\"] = 192] = \"IndexedAccessType\";\n SyntaxKind[SyntaxKind[\"MappedType\"] = 193] = \"MappedType\";\n SyntaxKind[SyntaxKind[\"LiteralType\"] = 194] = \"LiteralType\";\n SyntaxKind[SyntaxKind[\"NamedTupleMember\"] = 195] = \"NamedTupleMember\";\n SyntaxKind[SyntaxKind[\"TemplateLiteralType\"] = 196] = \"TemplateLiteralType\";\n SyntaxKind[SyntaxKind[\"TemplateLiteralTypeSpan\"] = 197] = \"TemplateLiteralTypeSpan\";\n SyntaxKind[SyntaxKind[\"ImportType\"] = 198] = \"ImportType\";\n // Binding patterns\n SyntaxKind[SyntaxKind[\"ObjectBindingPattern\"] = 199] = \"ObjectBindingPattern\";\n SyntaxKind[SyntaxKind[\"ArrayBindingPattern\"] = 200] = \"ArrayBindingPattern\";\n SyntaxKind[SyntaxKind[\"BindingElement\"] = 201] = \"BindingElement\";\n // Expression\n SyntaxKind[SyntaxKind[\"ArrayLiteralExpression\"] = 202] = \"ArrayLiteralExpression\";\n SyntaxKind[SyntaxKind[\"ObjectLiteralExpression\"] = 203] = \"ObjectLiteralExpression\";\n SyntaxKind[SyntaxKind[\"PropertyAccessExpression\"] = 204] = \"PropertyAccessExpression\";\n SyntaxKind[SyntaxKind[\"ElementAccessExpression\"] = 205] = \"ElementAccessExpression\";\n SyntaxKind[SyntaxKind[\"CallExpression\"] = 206] = \"CallExpression\";\n SyntaxKind[SyntaxKind[\"NewExpression\"] = 207] = \"NewExpression\";\n SyntaxKind[SyntaxKind[\"TaggedTemplateExpression\"] = 208] = \"TaggedTemplateExpression\";\n SyntaxKind[SyntaxKind[\"TypeAssertionExpression\"] = 209] = \"TypeAssertionExpression\";\n SyntaxKind[SyntaxKind[\"ParenthesizedExpression\"] = 210] = \"ParenthesizedExpression\";\n SyntaxKind[SyntaxKind[\"FunctionExpression\"] = 211] = \"FunctionExpression\";\n SyntaxKind[SyntaxKind[\"ArrowFunction\"] = 212] = \"ArrowFunction\";\n SyntaxKind[SyntaxKind[\"DeleteExpression\"] = 213] = \"DeleteExpression\";\n SyntaxKind[SyntaxKind[\"TypeOfExpression\"] = 214] = \"TypeOfExpression\";\n SyntaxKind[SyntaxKind[\"VoidExpression\"] = 215] = \"VoidExpression\";\n SyntaxKind[SyntaxKind[\"AwaitExpression\"] = 216] = \"AwaitExpression\";\n SyntaxKind[SyntaxKind[\"PrefixUnaryExpression\"] = 217] = \"PrefixUnaryExpression\";\n SyntaxKind[SyntaxKind[\"PostfixUnaryExpression\"] = 218] = \"PostfixUnaryExpression\";\n SyntaxKind[SyntaxKind[\"BinaryExpression\"] = 219] = \"BinaryExpression\";\n SyntaxKind[SyntaxKind[\"ConditionalExpression\"] = 220] = \"ConditionalExpression\";\n SyntaxKind[SyntaxKind[\"TemplateExpression\"] = 221] = \"TemplateExpression\";\n SyntaxKind[SyntaxKind[\"YieldExpression\"] = 222] = \"YieldExpression\";\n SyntaxKind[SyntaxKind[\"SpreadElement\"] = 223] = \"SpreadElement\";\n SyntaxKind[SyntaxKind[\"ClassExpression\"] = 224] = \"ClassExpression\";\n SyntaxKind[SyntaxKind[\"OmittedExpression\"] = 225] = \"OmittedExpression\";\n SyntaxKind[SyntaxKind[\"ExpressionWithTypeArguments\"] = 226] = \"ExpressionWithTypeArguments\";\n SyntaxKind[SyntaxKind[\"AsExpression\"] = 227] = \"AsExpression\";\n SyntaxKind[SyntaxKind[\"NonNullExpression\"] = 228] = \"NonNullExpression\";\n SyntaxKind[SyntaxKind[\"MetaProperty\"] = 229] = \"MetaProperty\";\n SyntaxKind[SyntaxKind[\"SyntheticExpression\"] = 230] = \"SyntheticExpression\";\n // Misc\n SyntaxKind[SyntaxKind[\"TemplateSpan\"] = 231] = \"TemplateSpan\";\n SyntaxKind[SyntaxKind[\"SemicolonClassElement\"] = 232] = \"SemicolonClassElement\";\n // Element\n SyntaxKind[SyntaxKind[\"Block\"] = 233] = \"Block\";\n SyntaxKind[SyntaxKind[\"EmptyStatement\"] = 234] = \"EmptyStatement\";\n SyntaxKind[SyntaxKind[\"VariableStatement\"] = 235] = \"VariableStatement\";\n SyntaxKind[SyntaxKind[\"ExpressionStatement\"] = 236] = \"ExpressionStatement\";\n SyntaxKind[SyntaxKind[\"IfStatement\"] = 237] = \"IfStatement\";\n SyntaxKind[SyntaxKind[\"DoStatement\"] = 238] = \"DoStatement\";\n SyntaxKind[SyntaxKind[\"WhileStatement\"] = 239] = \"WhileStatement\";\n SyntaxKind[SyntaxKind[\"ForStatement\"] = 240] = \"ForStatement\";\n SyntaxKind[SyntaxKind[\"ForInStatement\"] = 241] = \"ForInStatement\";\n SyntaxKind[SyntaxKind[\"ForOfStatement\"] = 242] = \"ForOfStatement\";\n SyntaxKind[SyntaxKind[\"ContinueStatement\"] = 243] = \"ContinueStatement\";\n SyntaxKind[SyntaxKind[\"BreakStatement\"] = 244] = \"BreakStatement\";\n SyntaxKind[SyntaxKind[\"ReturnStatement\"] = 245] = \"ReturnStatement\";\n SyntaxKind[SyntaxKind[\"WithStatement\"] = 246] = \"WithStatement\";\n SyntaxKind[SyntaxKind[\"SwitchStatement\"] = 247] = \"SwitchStatement\";\n SyntaxKind[SyntaxKind[\"LabeledStatement\"] = 248] = \"LabeledStatement\";\n SyntaxKind[SyntaxKind[\"ThrowStatement\"] = 249] = \"ThrowStatement\";\n SyntaxKind[SyntaxKind[\"TryStatement\"] = 250] = \"TryStatement\";\n SyntaxKind[SyntaxKind[\"DebuggerStatement\"] = 251] = \"DebuggerStatement\";\n SyntaxKind[SyntaxKind[\"VariableDeclaration\"] = 252] = \"VariableDeclaration\";\n SyntaxKind[SyntaxKind[\"VariableDeclarationList\"] = 253] = \"VariableDeclarationList\";\n SyntaxKind[SyntaxKind[\"FunctionDeclaration\"] = 254] = \"FunctionDeclaration\";\n SyntaxKind[SyntaxKind[\"ClassDeclaration\"] = 255] = \"ClassDeclaration\";\n SyntaxKind[SyntaxKind[\"InterfaceDeclaration\"] = 256] = \"InterfaceDeclaration\";\n SyntaxKind[SyntaxKind[\"TypeAliasDeclaration\"] = 257] = \"TypeAliasDeclaration\";\n SyntaxKind[SyntaxKind[\"EnumDeclaration\"] = 258] = \"EnumDeclaration\";\n SyntaxKind[SyntaxKind[\"ModuleDeclaration\"] = 259] = \"ModuleDeclaration\";\n SyntaxKind[SyntaxKind[\"ModuleBlock\"] = 260] = \"ModuleBlock\";\n SyntaxKind[SyntaxKind[\"CaseBlock\"] = 261] = \"CaseBlock\";\n SyntaxKind[SyntaxKind[\"NamespaceExportDeclaration\"] = 262] = \"NamespaceExportDeclaration\";\n SyntaxKind[SyntaxKind[\"ImportEqualsDeclaration\"] = 263] = \"ImportEqualsDeclaration\";\n SyntaxKind[SyntaxKind[\"ImportDeclaration\"] = 264] = \"ImportDeclaration\";\n SyntaxKind[SyntaxKind[\"ImportClause\"] = 265] = \"ImportClause\";\n SyntaxKind[SyntaxKind[\"NamespaceImport\"] = 266] = \"NamespaceImport\";\n SyntaxKind[SyntaxKind[\"NamedImports\"] = 267] = \"NamedImports\";\n SyntaxKind[SyntaxKind[\"ImportSpecifier\"] = 268] = \"ImportSpecifier\";\n SyntaxKind[SyntaxKind[\"ExportAssignment\"] = 269] = \"ExportAssignment\";\n SyntaxKind[SyntaxKind[\"ExportDeclaration\"] = 270] = \"ExportDeclaration\";\n SyntaxKind[SyntaxKind[\"NamedExports\"] = 271] = \"NamedExports\";\n SyntaxKind[SyntaxKind[\"NamespaceExport\"] = 272] = \"NamespaceExport\";\n SyntaxKind[SyntaxKind[\"ExportSpecifier\"] = 273] = \"ExportSpecifier\";\n SyntaxKind[SyntaxKind[\"MissingDeclaration\"] = 274] = \"MissingDeclaration\";\n // Module references\n SyntaxKind[SyntaxKind[\"ExternalModuleReference\"] = 275] = \"ExternalModuleReference\";\n // JSX\n SyntaxKind[SyntaxKind[\"JsxElement\"] = 276] = \"JsxElement\";\n SyntaxKind[SyntaxKind[\"JsxSelfClosingElement\"] = 277] = \"JsxSelfClosingElement\";\n SyntaxKind[SyntaxKind[\"JsxOpeningElement\"] = 278] = \"JsxOpeningElement\";\n SyntaxKind[SyntaxKind[\"JsxClosingElement\"] = 279] = \"JsxClosingElement\";\n SyntaxKind[SyntaxKind[\"JsxFragment\"] = 280] = \"JsxFragment\";\n SyntaxKind[SyntaxKind[\"JsxOpeningFragment\"] = 281] = \"JsxOpeningFragment\";\n SyntaxKind[SyntaxKind[\"JsxClosingFragment\"] = 282] = \"JsxClosingFragment\";\n SyntaxKind[SyntaxKind[\"JsxAttribute\"] = 283] = \"JsxAttribute\";\n SyntaxKind[SyntaxKind[\"JsxAttributes\"] = 284] = \"JsxAttributes\";\n SyntaxKind[SyntaxKind[\"JsxSpreadAttribute\"] = 285] = \"JsxSpreadAttribute\";\n SyntaxKind[SyntaxKind[\"JsxExpression\"] = 286] = \"JsxExpression\";\n // Clauses\n SyntaxKind[SyntaxKind[\"CaseClause\"] = 287] = \"CaseClause\";\n SyntaxKind[SyntaxKind[\"DefaultClause\"] = 288] = \"DefaultClause\";\n SyntaxKind[SyntaxKind[\"HeritageClause\"] = 289] = \"HeritageClause\";\n SyntaxKind[SyntaxKind[\"CatchClause\"] = 290] = \"CatchClause\";\n // Property assignments\n SyntaxKind[SyntaxKind[\"PropertyAssignment\"] = 291] = \"PropertyAssignment\";\n SyntaxKind[SyntaxKind[\"ShorthandPropertyAssignment\"] = 292] = \"ShorthandPropertyAssignment\";\n SyntaxKind[SyntaxKind[\"SpreadAssignment\"] = 293] = \"SpreadAssignment\";\n // Enum\n SyntaxKind[SyntaxKind[\"EnumMember\"] = 294] = \"EnumMember\";\n // Unparsed\n SyntaxKind[SyntaxKind[\"UnparsedPrologue\"] = 295] = \"UnparsedPrologue\";\n SyntaxKind[SyntaxKind[\"UnparsedPrepend\"] = 296] = \"UnparsedPrepend\";\n SyntaxKind[SyntaxKind[\"UnparsedText\"] = 297] = \"UnparsedText\";\n SyntaxKind[SyntaxKind[\"UnparsedInternalText\"] = 298] = \"UnparsedInternalText\";\n SyntaxKind[SyntaxKind[\"UnparsedSyntheticReference\"] = 299] = \"UnparsedSyntheticReference\";\n // Top-level nodes\n SyntaxKind[SyntaxKind[\"SourceFile\"] = 300] = \"SourceFile\";\n SyntaxKind[SyntaxKind[\"Bundle\"] = 301] = \"Bundle\";\n SyntaxKind[SyntaxKind[\"UnparsedSource\"] = 302] = \"UnparsedSource\";\n SyntaxKind[SyntaxKind[\"InputFiles\"] = 303] = \"InputFiles\";\n // JSDoc nodes\n SyntaxKind[SyntaxKind[\"JSDocTypeExpression\"] = 304] = \"JSDocTypeExpression\";\n SyntaxKind[SyntaxKind[\"JSDocNameReference\"] = 305] = \"JSDocNameReference\";\n SyntaxKind[SyntaxKind[\"JSDocMemberName\"] = 306] = \"JSDocMemberName\";\n SyntaxKind[SyntaxKind[\"JSDocAllType\"] = 307] = \"JSDocAllType\";\n SyntaxKind[SyntaxKind[\"JSDocUnknownType\"] = 308] = \"JSDocUnknownType\";\n SyntaxKind[SyntaxKind[\"JSDocNullableType\"] = 309] = \"JSDocNullableType\";\n SyntaxKind[SyntaxKind[\"JSDocNonNullableType\"] = 310] = \"JSDocNonNullableType\";\n SyntaxKind[SyntaxKind[\"JSDocOptionalType\"] = 311] = \"JSDocOptionalType\";\n SyntaxKind[SyntaxKind[\"JSDocFunctionType\"] = 312] = \"JSDocFunctionType\";\n SyntaxKind[SyntaxKind[\"JSDocVariadicType\"] = 313] = \"JSDocVariadicType\";\n SyntaxKind[SyntaxKind[\"JSDocNamepathType\"] = 314] = \"JSDocNamepathType\";\n SyntaxKind[SyntaxKind[\"JSDocComment\"] = 315] = \"JSDocComment\";\n SyntaxKind[SyntaxKind[\"JSDocText\"] = 316] = \"JSDocText\";\n SyntaxKind[SyntaxKind[\"JSDocTypeLiteral\"] = 317] = \"JSDocTypeLiteral\";\n SyntaxKind[SyntaxKind[\"JSDocSignature\"] = 318] = \"JSDocSignature\";\n SyntaxKind[SyntaxKind[\"JSDocLink\"] = 319] = \"JSDocLink\";\n SyntaxKind[SyntaxKind[\"JSDocLinkCode\"] = 320] = \"JSDocLinkCode\";\n SyntaxKind[SyntaxKind[\"JSDocLinkPlain\"] = 321] = \"JSDocLinkPlain\";\n SyntaxKind[SyntaxKind[\"JSDocTag\"] = 322] = \"JSDocTag\";\n SyntaxKind[SyntaxKind[\"JSDocAugmentsTag\"] = 323] = \"JSDocAugmentsTag\";\n SyntaxKind[SyntaxKind[\"JSDocImplementsTag\"] = 324] = \"JSDocImplementsTag\";\n SyntaxKind[SyntaxKind[\"JSDocAuthorTag\"] = 325] = \"JSDocAuthorTag\";\n SyntaxKind[SyntaxKind[\"JSDocDeprecatedTag\"] = 326] = \"JSDocDeprecatedTag\";\n SyntaxKind[SyntaxKind[\"JSDocClassTag\"] = 327] = \"JSDocClassTag\";\n SyntaxKind[SyntaxKind[\"JSDocPublicTag\"] = 328] = \"JSDocPublicTag\";\n SyntaxKind[SyntaxKind[\"JSDocPrivateTag\"] = 329] = \"JSDocPrivateTag\";\n SyntaxKind[SyntaxKind[\"JSDocProtectedTag\"] = 330] = \"JSDocProtectedTag\";\n SyntaxKind[SyntaxKind[\"JSDocReadonlyTag\"] = 331] = \"JSDocReadonlyTag\";\n SyntaxKind[SyntaxKind[\"JSDocOverrideTag\"] = 332] = \"JSDocOverrideTag\";\n SyntaxKind[SyntaxKind[\"JSDocCallbackTag\"] = 333] = \"JSDocCallbackTag\";\n SyntaxKind[SyntaxKind[\"JSDocEnumTag\"] = 334] = \"JSDocEnumTag\";\n SyntaxKind[SyntaxKind[\"JSDocParameterTag\"] = 335] = \"JSDocParameterTag\";\n SyntaxKind[SyntaxKind[\"JSDocReturnTag\"] = 336] = \"JSDocReturnTag\";\n SyntaxKind[SyntaxKind[\"JSDocThisTag\"] = 337] = \"JSDocThisTag\";\n SyntaxKind[SyntaxKind[\"JSDocTypeTag\"] = 338] = \"JSDocTypeTag\";\n SyntaxKind[SyntaxKind[\"JSDocTemplateTag\"] = 339] = \"JSDocTemplateTag\";\n SyntaxKind[SyntaxKind[\"JSDocTypedefTag\"] = 340] = \"JSDocTypedefTag\";\n SyntaxKind[SyntaxKind[\"JSDocSeeTag\"] = 341] = \"JSDocSeeTag\";\n SyntaxKind[SyntaxKind[\"JSDocPropertyTag\"] = 342] = \"JSDocPropertyTag\";\n // Synthesized list\n SyntaxKind[SyntaxKind[\"SyntaxList\"] = 343] = \"SyntaxList\";\n // Transformation nodes\n SyntaxKind[SyntaxKind[\"NotEmittedStatement\"] = 344] = \"NotEmittedStatement\";\n SyntaxKind[SyntaxKind[\"PartiallyEmittedExpression\"] = 345] = \"PartiallyEmittedExpression\";\n SyntaxKind[SyntaxKind[\"CommaListExpression\"] = 346] = \"CommaListExpression\";\n SyntaxKind[SyntaxKind[\"MergeDeclarationMarker\"] = 347] = \"MergeDeclarationMarker\";\n SyntaxKind[SyntaxKind[\"EndOfDeclarationMarker\"] = 348] = \"EndOfDeclarationMarker\";\n SyntaxKind[SyntaxKind[\"SyntheticReferenceExpression\"] = 349] = \"SyntheticReferenceExpression\";\n // Enum value count\n SyntaxKind[SyntaxKind[\"Count\"] = 350] = \"Count\";\n // Markers\n SyntaxKind[SyntaxKind[\"FirstAssignment\"] = 63] = \"FirstAssignment\";\n SyntaxKind[SyntaxKind[\"LastAssignment\"] = 78] = \"LastAssignment\";\n SyntaxKind[SyntaxKind[\"FirstCompoundAssignment\"] = 64] = \"FirstCompoundAssignment\";\n SyntaxKind[SyntaxKind[\"LastCompoundAssignment\"] = 78] = \"LastCompoundAssignment\";\n SyntaxKind[SyntaxKind[\"FirstReservedWord\"] = 81] = \"FirstReservedWord\";\n SyntaxKind[SyntaxKind[\"LastReservedWord\"] = 116] = \"LastReservedWord\";\n SyntaxKind[SyntaxKind[\"FirstKeyword\"] = 81] = \"FirstKeyword\";\n SyntaxKind[SyntaxKind[\"LastKeyword\"] = 158] = \"LastKeyword\";\n SyntaxKind[SyntaxKind[\"FirstFutureReservedWord\"] = 117] = \"FirstFutureReservedWord\";\n SyntaxKind[SyntaxKind[\"LastFutureReservedWord\"] = 125] = \"LastFutureReservedWord\";\n SyntaxKind[SyntaxKind[\"FirstTypeNode\"] = 175] = \"FirstTypeNode\";\n SyntaxKind[SyntaxKind[\"LastTypeNode\"] = 198] = \"LastTypeNode\";\n SyntaxKind[SyntaxKind[\"FirstPunctuation\"] = 18] = \"FirstPunctuation\";\n SyntaxKind[SyntaxKind[\"LastPunctuation\"] = 78] = \"LastPunctuation\";\n SyntaxKind[SyntaxKind[\"FirstToken\"] = 0] = \"FirstToken\";\n SyntaxKind[SyntaxKind[\"LastToken\"] = 158] = \"LastToken\";\n SyntaxKind[SyntaxKind[\"FirstTriviaToken\"] = 2] = \"FirstTriviaToken\";\n SyntaxKind[SyntaxKind[\"LastTriviaToken\"] = 7] = \"LastTriviaToken\";\n SyntaxKind[SyntaxKind[\"FirstLiteralToken\"] = 8] = \"FirstLiteralToken\";\n SyntaxKind[SyntaxKind[\"LastLiteralToken\"] = 14] = \"LastLiteralToken\";\n SyntaxKind[SyntaxKind[\"FirstTemplateToken\"] = 14] = \"FirstTemplateToken\";\n SyntaxKind[SyntaxKind[\"LastTemplateToken\"] = 17] = \"LastTemplateToken\";\n SyntaxKind[SyntaxKind[\"FirstBinaryOperator\"] = 29] = \"FirstBinaryOperator\";\n SyntaxKind[SyntaxKind[\"LastBinaryOperator\"] = 78] = \"LastBinaryOperator\";\n SyntaxKind[SyntaxKind[\"FirstStatement\"] = 235] = \"FirstStatement\";\n SyntaxKind[SyntaxKind[\"LastStatement\"] = 251] = \"LastStatement\";\n SyntaxKind[SyntaxKind[\"FirstNode\"] = 159] = \"FirstNode\";\n SyntaxKind[SyntaxKind[\"FirstJSDocNode\"] = 304] = \"FirstJSDocNode\";\n SyntaxKind[SyntaxKind[\"LastJSDocNode\"] = 342] = \"LastJSDocNode\";\n SyntaxKind[SyntaxKind[\"FirstJSDocTagNode\"] = 322] = \"FirstJSDocTagNode\";\n SyntaxKind[SyntaxKind[\"LastJSDocTagNode\"] = 342] = \"LastJSDocTagNode\";\n /* @internal */ SyntaxKind[SyntaxKind[\"FirstContextualKeyword\"] = 126] = \"FirstContextualKeyword\";\n /* @internal */ SyntaxKind[SyntaxKind[\"LastContextualKeyword\"] = 158] = \"LastContextualKeyword\";\n })(SyntaxKind = ts.SyntaxKind || (ts.SyntaxKind = {}));\n var NodeFlags;\n (function (NodeFlags) {\n NodeFlags[NodeFlags[\"None\"] = 0] = \"None\";\n NodeFlags[NodeFlags[\"Let\"] = 1] = \"Let\";\n NodeFlags[NodeFlags[\"Const\"] = 2] = \"Const\";\n NodeFlags[NodeFlags[\"NestedNamespace\"] = 4] = \"NestedNamespace\";\n NodeFlags[NodeFlags[\"Synthesized\"] = 8] = \"Synthesized\";\n NodeFlags[NodeFlags[\"Namespace\"] = 16] = \"Namespace\";\n NodeFlags[NodeFlags[\"OptionalChain\"] = 32] = \"OptionalChain\";\n NodeFlags[NodeFlags[\"ExportContext\"] = 64] = \"ExportContext\";\n NodeFlags[NodeFlags[\"ContainsThis\"] = 128] = \"ContainsThis\";\n NodeFlags[NodeFlags[\"HasImplicitReturn\"] = 256] = \"HasImplicitReturn\";\n NodeFlags[NodeFlags[\"HasExplicitReturn\"] = 512] = \"HasExplicitReturn\";\n NodeFlags[NodeFlags[\"GlobalAugmentation\"] = 1024] = \"GlobalAugmentation\";\n NodeFlags[NodeFlags[\"HasAsyncFunctions\"] = 2048] = \"HasAsyncFunctions\";\n NodeFlags[NodeFlags[\"DisallowInContext\"] = 4096] = \"DisallowInContext\";\n NodeFlags[NodeFlags[\"YieldContext\"] = 8192] = \"YieldContext\";\n NodeFlags[NodeFlags[\"DecoratorContext\"] = 16384] = \"DecoratorContext\";\n NodeFlags[NodeFlags[\"AwaitContext\"] = 32768] = \"AwaitContext\";\n NodeFlags[NodeFlags[\"ThisNodeHasError\"] = 65536] = \"ThisNodeHasError\";\n NodeFlags[NodeFlags[\"JavaScriptFile\"] = 131072] = \"JavaScriptFile\";\n NodeFlags[NodeFlags[\"ThisNodeOrAnySubNodesHasError\"] = 262144] = \"ThisNodeOrAnySubNodesHasError\";\n NodeFlags[NodeFlags[\"HasAggregatedChildData\"] = 524288] = \"HasAggregatedChildData\";\n // These flags will be set when the parser encounters a dynamic import expression or 'import.meta' to avoid\n // walking the tree if the flags are not set. However, these flags are just a approximation\n // (hence why it's named \"PossiblyContainsDynamicImport\") because once set, the flags never get cleared.\n // During editing, if a dynamic import is removed, incremental parsing will *NOT* clear this flag.\n // This means that the tree will always be traversed during module resolution, or when looking for external module indicators.\n // However, the removal operation should not occur often and in the case of the\n // removal, it is likely that users will add the import anyway.\n // The advantage of this approach is its simplicity. For the case of batch compilation,\n // we guarantee that users won't have to pay the price of walking the tree if a dynamic import isn't used.\n /* @internal */ NodeFlags[NodeFlags[\"PossiblyContainsDynamicImport\"] = 1048576] = \"PossiblyContainsDynamicImport\";\n /* @internal */ NodeFlags[NodeFlags[\"PossiblyContainsImportMeta\"] = 2097152] = \"PossiblyContainsImportMeta\";\n NodeFlags[NodeFlags[\"JSDoc\"] = 4194304] = \"JSDoc\";\n /* @internal */ NodeFlags[NodeFlags[\"Ambient\"] = 8388608] = \"Ambient\";\n /* @internal */ NodeFlags[NodeFlags[\"InWithStatement\"] = 16777216] = \"InWithStatement\";\n NodeFlags[NodeFlags[\"JsonFile\"] = 33554432] = \"JsonFile\";\n /* @internal */ NodeFlags[NodeFlags[\"TypeCached\"] = 67108864] = \"TypeCached\";\n /* @internal */ NodeFlags[NodeFlags[\"Deprecated\"] = 134217728] = \"Deprecated\";\n NodeFlags[NodeFlags[\"BlockScoped\"] = 3] = \"BlockScoped\";\n NodeFlags[NodeFlags[\"ReachabilityCheckFlags\"] = 768] = \"ReachabilityCheckFlags\";\n NodeFlags[NodeFlags[\"ReachabilityAndEmitFlags\"] = 2816] = \"ReachabilityAndEmitFlags\";\n // Parsing context flags\n NodeFlags[NodeFlags[\"ContextFlags\"] = 25358336] = \"ContextFlags\";\n // Exclude these flags when parsing a Type\n NodeFlags[NodeFlags[\"TypeExcludesFlags\"] = 40960] = \"TypeExcludesFlags\";\n // Represents all flags that are potentially set once and\n // never cleared on SourceFiles which get re-used in between incremental parses.\n // See the comment above on `PossiblyContainsDynamicImport` and `PossiblyContainsImportMeta`.\n /* @internal */ NodeFlags[NodeFlags[\"PermanentlySetIncrementalFlags\"] = 3145728] = \"PermanentlySetIncrementalFlags\";\n })(NodeFlags = ts.NodeFlags || (ts.NodeFlags = {}));\n var ModifierFlags;\n (function (ModifierFlags) {\n ModifierFlags[ModifierFlags[\"None\"] = 0] = \"None\";\n ModifierFlags[ModifierFlags[\"Export\"] = 1] = \"Export\";\n ModifierFlags[ModifierFlags[\"Ambient\"] = 2] = \"Ambient\";\n ModifierFlags[ModifierFlags[\"Public\"] = 4] = \"Public\";\n ModifierFlags[ModifierFlags[\"Private\"] = 8] = \"Private\";\n ModifierFlags[ModifierFlags[\"Protected\"] = 16] = \"Protected\";\n ModifierFlags[ModifierFlags[\"Static\"] = 32] = \"Static\";\n ModifierFlags[ModifierFlags[\"Readonly\"] = 64] = \"Readonly\";\n ModifierFlags[ModifierFlags[\"Abstract\"] = 128] = \"Abstract\";\n ModifierFlags[ModifierFlags[\"Async\"] = 256] = \"Async\";\n ModifierFlags[ModifierFlags[\"Default\"] = 512] = \"Default\";\n ModifierFlags[ModifierFlags[\"Const\"] = 2048] = \"Const\";\n ModifierFlags[ModifierFlags[\"HasComputedJSDocModifiers\"] = 4096] = \"HasComputedJSDocModifiers\";\n ModifierFlags[ModifierFlags[\"Deprecated\"] = 8192] = \"Deprecated\";\n ModifierFlags[ModifierFlags[\"Override\"] = 16384] = \"Override\";\n ModifierFlags[ModifierFlags[\"HasComputedFlags\"] = 536870912] = \"HasComputedFlags\";\n ModifierFlags[ModifierFlags[\"AccessibilityModifier\"] = 28] = \"AccessibilityModifier\";\n // Accessibility modifiers and 'readonly' can be attached to a parameter in a constructor to make it a property.\n ModifierFlags[ModifierFlags[\"ParameterPropertyModifier\"] = 16476] = \"ParameterPropertyModifier\";\n ModifierFlags[ModifierFlags[\"NonPublicAccessibilityModifier\"] = 24] = \"NonPublicAccessibilityModifier\";\n ModifierFlags[ModifierFlags[\"TypeScriptModifier\"] = 18654] = \"TypeScriptModifier\";\n ModifierFlags[ModifierFlags[\"ExportDefault\"] = 513] = \"ExportDefault\";\n ModifierFlags[ModifierFlags[\"All\"] = 27647] = \"All\";\n })(ModifierFlags = ts.ModifierFlags || (ts.ModifierFlags = {}));\n var JsxFlags;\n (function (JsxFlags) {\n JsxFlags[JsxFlags[\"None\"] = 0] = \"None\";\n /** An element from a named property of the JSX.IntrinsicElements interface */\n JsxFlags[JsxFlags[\"IntrinsicNamedElement\"] = 1] = \"IntrinsicNamedElement\";\n /** An element inferred from the string index signature of the JSX.IntrinsicElements interface */\n JsxFlags[JsxFlags[\"IntrinsicIndexedElement\"] = 2] = \"IntrinsicIndexedElement\";\n JsxFlags[JsxFlags[\"IntrinsicElement\"] = 3] = \"IntrinsicElement\";\n })(JsxFlags = ts.JsxFlags || (ts.JsxFlags = {}));\n /* @internal */\n var RelationComparisonResult;\n (function (RelationComparisonResult) {\n RelationComparisonResult[RelationComparisonResult[\"Succeeded\"] = 1] = \"Succeeded\";\n RelationComparisonResult[RelationComparisonResult[\"Failed\"] = 2] = \"Failed\";\n RelationComparisonResult[RelationComparisonResult[\"Reported\"] = 4] = \"Reported\";\n RelationComparisonResult[RelationComparisonResult[\"ReportsUnmeasurable\"] = 8] = \"ReportsUnmeasurable\";\n RelationComparisonResult[RelationComparisonResult[\"ReportsUnreliable\"] = 16] = \"ReportsUnreliable\";\n RelationComparisonResult[RelationComparisonResult[\"ReportsMask\"] = 24] = \"ReportsMask\";\n })(RelationComparisonResult = ts.RelationComparisonResult || (ts.RelationComparisonResult = {}));\n var GeneratedIdentifierFlags;\n (function (GeneratedIdentifierFlags) {\n // Kinds\n GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"None\"] = 0] = \"None\";\n /*@internal*/ GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"Auto\"] = 1] = \"Auto\";\n /*@internal*/ GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"Loop\"] = 2] = \"Loop\";\n /*@internal*/ GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"Unique\"] = 3] = \"Unique\";\n /*@internal*/ GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"Node\"] = 4] = \"Node\";\n /*@internal*/ GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"KindMask\"] = 7] = \"KindMask\";\n // Flags\n GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"ReservedInNestedScopes\"] = 8] = \"ReservedInNestedScopes\";\n GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"Optimistic\"] = 16] = \"Optimistic\";\n GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"FileLevel\"] = 32] = \"FileLevel\";\n GeneratedIdentifierFlags[GeneratedIdentifierFlags[\"AllowNameSubstitution\"] = 64] = \"AllowNameSubstitution\";\n })(GeneratedIdentifierFlags = ts.GeneratedIdentifierFlags || (ts.GeneratedIdentifierFlags = {}));\n var TokenFlags;\n (function (TokenFlags) {\n TokenFlags[TokenFlags[\"None\"] = 0] = \"None\";\n /* @internal */\n TokenFlags[TokenFlags[\"PrecedingLineBreak\"] = 1] = \"PrecedingLineBreak\";\n /* @internal */\n TokenFlags[TokenFlags[\"PrecedingJSDocComment\"] = 2] = \"PrecedingJSDocComment\";\n /* @internal */\n TokenFlags[TokenFlags[\"Unterminated\"] = 4] = \"Unterminated\";\n /* @internal */\n TokenFlags[TokenFlags[\"ExtendedUnicodeEscape\"] = 8] = \"ExtendedUnicodeEscape\";\n TokenFlags[TokenFlags[\"Scientific\"] = 16] = \"Scientific\";\n TokenFlags[TokenFlags[\"Octal\"] = 32] = \"Octal\";\n TokenFlags[TokenFlags[\"HexSpecifier\"] = 64] = \"HexSpecifier\";\n TokenFlags[TokenFlags[\"BinarySpecifier\"] = 128] = \"BinarySpecifier\";\n TokenFlags[TokenFlags[\"OctalSpecifier\"] = 256] = \"OctalSpecifier\";\n /* @internal */\n TokenFlags[TokenFlags[\"ContainsSeparator\"] = 512] = \"ContainsSeparator\";\n /* @internal */\n TokenFlags[TokenFlags[\"UnicodeEscape\"] = 1024] = \"UnicodeEscape\";\n /* @internal */\n TokenFlags[TokenFlags[\"ContainsInvalidEscape\"] = 2048] = \"ContainsInvalidEscape\";\n /* @internal */\n TokenFlags[TokenFlags[\"BinaryOrOctalSpecifier\"] = 384] = \"BinaryOrOctalSpecifier\";\n /* @internal */\n TokenFlags[TokenFlags[\"NumericLiteralFlags\"] = 1008] = \"NumericLiteralFlags\";\n /* @internal */\n TokenFlags[TokenFlags[\"TemplateLiteralLikeFlags\"] = 2048] = \"TemplateLiteralLikeFlags\";\n })(TokenFlags = ts.TokenFlags || (ts.TokenFlags = {}));\n // NOTE: Ensure this is up-to-date with src/debug/debug.ts\n var FlowFlags;\n (function (FlowFlags) {\n FlowFlags[FlowFlags[\"Unreachable\"] = 1] = \"Unreachable\";\n FlowFlags[FlowFlags[\"Start\"] = 2] = \"Start\";\n FlowFlags[FlowFlags[\"BranchLabel\"] = 4] = \"BranchLabel\";\n FlowFlags[FlowFlags[\"LoopLabel\"] = 8] = \"LoopLabel\";\n FlowFlags[FlowFlags[\"Assignment\"] = 16] = \"Assignment\";\n FlowFlags[FlowFlags[\"TrueCondition\"] = 32] = \"TrueCondition\";\n FlowFlags[FlowFlags[\"FalseCondition\"] = 64] = \"FalseCondition\";\n FlowFlags[FlowFlags[\"SwitchClause\"] = 128] = \"SwitchClause\";\n FlowFlags[FlowFlags[\"ArrayMutation\"] = 256] = \"ArrayMutation\";\n FlowFlags[FlowFlags[\"Call\"] = 512] = \"Call\";\n FlowFlags[FlowFlags[\"ReduceLabel\"] = 1024] = \"ReduceLabel\";\n FlowFlags[FlowFlags[\"Referenced\"] = 2048] = \"Referenced\";\n FlowFlags[FlowFlags[\"Shared\"] = 4096] = \"Shared\";\n FlowFlags[FlowFlags[\"Label\"] = 12] = \"Label\";\n FlowFlags[FlowFlags[\"Condition\"] = 96] = \"Condition\";\n })(FlowFlags = ts.FlowFlags || (ts.FlowFlags = {}));\n /* @internal */\n var CommentDirectiveType;\n (function (CommentDirectiveType) {\n CommentDirectiveType[CommentDirectiveType[\"ExpectError\"] = 0] = \"ExpectError\";\n CommentDirectiveType[CommentDirectiveType[\"Ignore\"] = 1] = \"Ignore\";\n })(CommentDirectiveType = ts.CommentDirectiveType || (ts.CommentDirectiveType = {}));\n var OperationCanceledException = /** @class */ (function () {\n function OperationCanceledException() {\n }\n return OperationCanceledException;\n }());\n ts.OperationCanceledException = OperationCanceledException;\n /*@internal*/\n var FileIncludeKind;\n (function (FileIncludeKind) {\n FileIncludeKind[FileIncludeKind[\"RootFile\"] = 0] = \"RootFile\";\n FileIncludeKind[FileIncludeKind[\"SourceFromProjectReference\"] = 1] = \"SourceFromProjectReference\";\n FileIncludeKind[FileIncludeKind[\"OutputFromProjectReference\"] = 2] = \"OutputFromProjectReference\";\n FileIncludeKind[FileIncludeKind[\"Import\"] = 3] = \"Import\";\n FileIncludeKind[FileIncludeKind[\"ReferenceFile\"] = 4] = \"ReferenceFile\";\n FileIncludeKind[FileIncludeKind[\"TypeReferenceDirective\"] = 5] = \"TypeReferenceDirective\";\n FileIncludeKind[FileIncludeKind[\"LibFile\"] = 6] = \"LibFile\";\n FileIncludeKind[FileIncludeKind[\"LibReferenceDirective\"] = 7] = \"LibReferenceDirective\";\n FileIncludeKind[FileIncludeKind[\"AutomaticTypeDirectiveFile\"] = 8] = \"AutomaticTypeDirectiveFile\";\n })(FileIncludeKind = ts.FileIncludeKind || (ts.FileIncludeKind = {}));\n /*@internal*/\n var FilePreprocessingDiagnosticsKind;\n (function (FilePreprocessingDiagnosticsKind) {\n FilePreprocessingDiagnosticsKind[FilePreprocessingDiagnosticsKind[\"FilePreprocessingReferencedDiagnostic\"] = 0] = \"FilePreprocessingReferencedDiagnostic\";\n FilePreprocessingDiagnosticsKind[FilePreprocessingDiagnosticsKind[\"FilePreprocessingFileExplainingDiagnostic\"] = 1] = \"FilePreprocessingFileExplainingDiagnostic\";\n })(FilePreprocessingDiagnosticsKind = ts.FilePreprocessingDiagnosticsKind || (ts.FilePreprocessingDiagnosticsKind = {}));\n /* @internal */\n var StructureIsReused;\n (function (StructureIsReused) {\n StructureIsReused[StructureIsReused[\"Not\"] = 0] = \"Not\";\n StructureIsReused[StructureIsReused[\"SafeModules\"] = 1] = \"SafeModules\";\n StructureIsReused[StructureIsReused[\"Completely\"] = 2] = \"Completely\";\n })(StructureIsReused = ts.StructureIsReused || (ts.StructureIsReused = {}));\n /** Return code used by getEmitOutput function to indicate status of the function */\n var ExitStatus;\n (function (ExitStatus) {\n // Compiler ran successfully. Either this was a simple do-nothing compilation (for example,\n // when -version or -help was provided, or this was a normal compilation, no diagnostics\n // were produced, and all outputs were generated successfully.\n ExitStatus[ExitStatus[\"Success\"] = 0] = \"Success\";\n // Diagnostics were produced and because of them no code was generated.\n ExitStatus[ExitStatus[\"DiagnosticsPresent_OutputsSkipped\"] = 1] = \"DiagnosticsPresent_OutputsSkipped\";\n // Diagnostics were produced and outputs were generated in spite of them.\n ExitStatus[ExitStatus[\"DiagnosticsPresent_OutputsGenerated\"] = 2] = \"DiagnosticsPresent_OutputsGenerated\";\n // When build skipped because passed in project is invalid\n ExitStatus[ExitStatus[\"InvalidProject_OutputsSkipped\"] = 3] = \"InvalidProject_OutputsSkipped\";\n // When build is skipped because project references form cycle\n ExitStatus[ExitStatus[\"ProjectReferenceCycle_OutputsSkipped\"] = 4] = \"ProjectReferenceCycle_OutputsSkipped\";\n /** @deprecated Use ProjectReferenceCycle_OutputsSkipped instead. */\n ExitStatus[ExitStatus[\"ProjectReferenceCycle_OutputsSkupped\"] = 4] = \"ProjectReferenceCycle_OutputsSkupped\";\n })(ExitStatus = ts.ExitStatus || (ts.ExitStatus = {}));\n /* @internal */\n var UnionReduction;\n (function (UnionReduction) {\n UnionReduction[UnionReduction[\"None\"] = 0] = \"None\";\n UnionReduction[UnionReduction[\"Literal\"] = 1] = \"Literal\";\n UnionReduction[UnionReduction[\"Subtype\"] = 2] = \"Subtype\";\n })(UnionReduction = ts.UnionReduction || (ts.UnionReduction = {}));\n /* @internal */\n var ContextFlags;\n (function (ContextFlags) {\n ContextFlags[ContextFlags[\"None\"] = 0] = \"None\";\n ContextFlags[ContextFlags[\"Signature\"] = 1] = \"Signature\";\n ContextFlags[ContextFlags[\"NoConstraints\"] = 2] = \"NoConstraints\";\n ContextFlags[ContextFlags[\"Completions\"] = 4] = \"Completions\";\n ContextFlags[ContextFlags[\"SkipBindingPatterns\"] = 8] = \"SkipBindingPatterns\";\n })(ContextFlags = ts.ContextFlags || (ts.ContextFlags = {}));\n // NOTE: If modifying this enum, must modify `TypeFormatFlags` too!\n var NodeBuilderFlags;\n (function (NodeBuilderFlags) {\n NodeBuilderFlags[NodeBuilderFlags[\"None\"] = 0] = \"None\";\n // Options\n NodeBuilderFlags[NodeBuilderFlags[\"NoTruncation\"] = 1] = \"NoTruncation\";\n NodeBuilderFlags[NodeBuilderFlags[\"WriteArrayAsGenericType\"] = 2] = \"WriteArrayAsGenericType\";\n NodeBuilderFlags[NodeBuilderFlags[\"GenerateNamesForShadowedTypeParams\"] = 4] = \"GenerateNamesForShadowedTypeParams\";\n NodeBuilderFlags[NodeBuilderFlags[\"UseStructuralFallback\"] = 8] = \"UseStructuralFallback\";\n NodeBuilderFlags[NodeBuilderFlags[\"ForbidIndexedAccessSymbolReferences\"] = 16] = \"ForbidIndexedAccessSymbolReferences\";\n NodeBuilderFlags[NodeBuilderFlags[\"WriteTypeArgumentsOfSignature\"] = 32] = \"WriteTypeArgumentsOfSignature\";\n NodeBuilderFlags[NodeBuilderFlags[\"UseFullyQualifiedType\"] = 64] = \"UseFullyQualifiedType\";\n NodeBuilderFlags[NodeBuilderFlags[\"UseOnlyExternalAliasing\"] = 128] = \"UseOnlyExternalAliasing\";\n NodeBuilderFlags[NodeBuilderFlags[\"SuppressAnyReturnType\"] = 256] = \"SuppressAnyReturnType\";\n NodeBuilderFlags[NodeBuilderFlags[\"WriteTypeParametersInQualifiedName\"] = 512] = \"WriteTypeParametersInQualifiedName\";\n NodeBuilderFlags[NodeBuilderFlags[\"MultilineObjectLiterals\"] = 1024] = \"MultilineObjectLiterals\";\n NodeBuilderFlags[NodeBuilderFlags[\"WriteClassExpressionAsTypeLiteral\"] = 2048] = \"WriteClassExpressionAsTypeLiteral\";\n NodeBuilderFlags[NodeBuilderFlags[\"UseTypeOfFunction\"] = 4096] = \"UseTypeOfFunction\";\n NodeBuilderFlags[NodeBuilderFlags[\"OmitParameterModifiers\"] = 8192] = \"OmitParameterModifiers\";\n NodeBuilderFlags[NodeBuilderFlags[\"UseAliasDefinedOutsideCurrentScope\"] = 16384] = \"UseAliasDefinedOutsideCurrentScope\";\n NodeBuilderFlags[NodeBuilderFlags[\"UseSingleQuotesForStringLiteralType\"] = 268435456] = \"UseSingleQuotesForStringLiteralType\";\n NodeBuilderFlags[NodeBuilderFlags[\"NoTypeReduction\"] = 536870912] = \"NoTypeReduction\";\n NodeBuilderFlags[NodeBuilderFlags[\"NoUndefinedOptionalParameterType\"] = 1073741824] = \"NoUndefinedOptionalParameterType\";\n // Error handling\n NodeBuilderFlags[NodeBuilderFlags[\"AllowThisInObjectLiteral\"] = 32768] = \"AllowThisInObjectLiteral\";\n NodeBuilderFlags[NodeBuilderFlags[\"AllowQualifiedNameInPlaceOfIdentifier\"] = 65536] = \"AllowQualifiedNameInPlaceOfIdentifier\";\n /** @deprecated AllowQualifedNameInPlaceOfIdentifier. Use AllowQualifiedNameInPlaceOfIdentifier instead. */\n NodeBuilderFlags[NodeBuilderFlags[\"AllowQualifedNameInPlaceOfIdentifier\"] = 65536] = \"AllowQualifedNameInPlaceOfIdentifier\";\n NodeBuilderFlags[NodeBuilderFlags[\"AllowAnonymousIdentifier\"] = 131072] = \"AllowAnonymousIdentifier\";\n NodeBuilderFlags[NodeBuilderFlags[\"AllowEmptyUnionOrIntersection\"] = 262144] = \"AllowEmptyUnionOrIntersection\";\n NodeBuilderFlags[NodeBuilderFlags[\"AllowEmptyTuple\"] = 524288] = \"AllowEmptyTuple\";\n NodeBuilderFlags[NodeBuilderFlags[\"AllowUniqueESSymbolType\"] = 1048576] = \"AllowUniqueESSymbolType\";\n NodeBuilderFlags[NodeBuilderFlags[\"AllowEmptyIndexInfoType\"] = 2097152] = \"AllowEmptyIndexInfoType\";\n // Errors (cont.)\n NodeBuilderFlags[NodeBuilderFlags[\"AllowNodeModulesRelativePaths\"] = 67108864] = \"AllowNodeModulesRelativePaths\";\n /* @internal */ NodeBuilderFlags[NodeBuilderFlags[\"DoNotIncludeSymbolChain\"] = 134217728] = \"DoNotIncludeSymbolChain\";\n NodeBuilderFlags[NodeBuilderFlags[\"IgnoreErrors\"] = 70221824] = \"IgnoreErrors\";\n // State\n NodeBuilderFlags[NodeBuilderFlags[\"InObjectTypeLiteral\"] = 4194304] = \"InObjectTypeLiteral\";\n NodeBuilderFlags[NodeBuilderFlags[\"InTypeAlias\"] = 8388608] = \"InTypeAlias\";\n NodeBuilderFlags[NodeBuilderFlags[\"InInitialEntityName\"] = 16777216] = \"InInitialEntityName\";\n })(NodeBuilderFlags = ts.NodeBuilderFlags || (ts.NodeBuilderFlags = {}));\n // Ensure the shared flags between this and `NodeBuilderFlags` stay in alignment\n var TypeFormatFlags;\n (function (TypeFormatFlags) {\n TypeFormatFlags[TypeFormatFlags[\"None\"] = 0] = \"None\";\n TypeFormatFlags[TypeFormatFlags[\"NoTruncation\"] = 1] = \"NoTruncation\";\n TypeFormatFlags[TypeFormatFlags[\"WriteArrayAsGenericType\"] = 2] = \"WriteArrayAsGenericType\";\n // hole because there's a hole in node builder flags\n TypeFormatFlags[TypeFormatFlags[\"UseStructuralFallback\"] = 8] = \"UseStructuralFallback\";\n // hole because there's a hole in node builder flags\n TypeFormatFlags[TypeFormatFlags[\"WriteTypeArgumentsOfSignature\"] = 32] = \"WriteTypeArgumentsOfSignature\";\n TypeFormatFlags[TypeFormatFlags[\"UseFullyQualifiedType\"] = 64] = \"UseFullyQualifiedType\";\n // hole because `UseOnlyExternalAliasing` is here in node builder flags, but functions which take old flags use `SymbolFormatFlags` instead\n TypeFormatFlags[TypeFormatFlags[\"SuppressAnyReturnType\"] = 256] = \"SuppressAnyReturnType\";\n // hole because `WriteTypeParametersInQualifiedName` is here in node builder flags, but functions which take old flags use `SymbolFormatFlags` for this instead\n TypeFormatFlags[TypeFormatFlags[\"MultilineObjectLiterals\"] = 1024] = \"MultilineObjectLiterals\";\n TypeFormatFlags[TypeFormatFlags[\"WriteClassExpressionAsTypeLiteral\"] = 2048] = \"WriteClassExpressionAsTypeLiteral\";\n TypeFormatFlags[TypeFormatFlags[\"UseTypeOfFunction\"] = 4096] = \"UseTypeOfFunction\";\n TypeFormatFlags[TypeFormatFlags[\"OmitParameterModifiers\"] = 8192] = \"OmitParameterModifiers\";\n TypeFormatFlags[TypeFormatFlags[\"UseAliasDefinedOutsideCurrentScope\"] = 16384] = \"UseAliasDefinedOutsideCurrentScope\";\n TypeFormatFlags[TypeFormatFlags[\"UseSingleQuotesForStringLiteralType\"] = 268435456] = \"UseSingleQuotesForStringLiteralType\";\n TypeFormatFlags[TypeFormatFlags[\"NoTypeReduction\"] = 536870912] = \"NoTypeReduction\";\n // Error Handling\n TypeFormatFlags[TypeFormatFlags[\"AllowUniqueESSymbolType\"] = 1048576] = \"AllowUniqueESSymbolType\";\n // TypeFormatFlags exclusive\n TypeFormatFlags[TypeFormatFlags[\"AddUndefined\"] = 131072] = \"AddUndefined\";\n TypeFormatFlags[TypeFormatFlags[\"WriteArrowStyleSignature\"] = 262144] = \"WriteArrowStyleSignature\";\n // State\n TypeFormatFlags[TypeFormatFlags[\"InArrayType\"] = 524288] = \"InArrayType\";\n TypeFormatFlags[TypeFormatFlags[\"InElementType\"] = 2097152] = \"InElementType\";\n TypeFormatFlags[TypeFormatFlags[\"InFirstTypeArgument\"] = 4194304] = \"InFirstTypeArgument\";\n TypeFormatFlags[TypeFormatFlags[\"InTypeAlias\"] = 8388608] = \"InTypeAlias\";\n /** @deprecated */ TypeFormatFlags[TypeFormatFlags[\"WriteOwnNameForAnyLike\"] = 0] = \"WriteOwnNameForAnyLike\";\n TypeFormatFlags[TypeFormatFlags[\"NodeBuilderFlagsMask\"] = 814775659] = \"NodeBuilderFlagsMask\";\n })(TypeFormatFlags = ts.TypeFormatFlags || (ts.TypeFormatFlags = {}));\n var SymbolFormatFlags;\n (function (SymbolFormatFlags) {\n SymbolFormatFlags[SymbolFormatFlags[\"None\"] = 0] = \"None\";\n // Write symbols's type argument if it is instantiated symbol\n // eg. class C { p: T } <-- Show p as C.p here\n // var a: C;\n // var p = a.p; <--- Here p is property of C so show it as C.p instead of just C.p\n SymbolFormatFlags[SymbolFormatFlags[\"WriteTypeParametersOrArguments\"] = 1] = \"WriteTypeParametersOrArguments\";\n // Use only external alias information to get the symbol name in the given context\n // eg. module m { export class c { } } import x = m.c;\n // When this flag is specified m.c will be used to refer to the class instead of alias symbol x\n SymbolFormatFlags[SymbolFormatFlags[\"UseOnlyExternalAliasing\"] = 2] = \"UseOnlyExternalAliasing\";\n // Build symbol name using any nodes needed, instead of just components of an entity name\n SymbolFormatFlags[SymbolFormatFlags[\"AllowAnyNodeKind\"] = 4] = \"AllowAnyNodeKind\";\n // Prefer aliases which are not directly visible\n SymbolFormatFlags[SymbolFormatFlags[\"UseAliasDefinedOutsideCurrentScope\"] = 8] = \"UseAliasDefinedOutsideCurrentScope\";\n // Skip building an accessible symbol chain\n /* @internal */ SymbolFormatFlags[SymbolFormatFlags[\"DoNotIncludeSymbolChain\"] = 16] = \"DoNotIncludeSymbolChain\";\n })(SymbolFormatFlags = ts.SymbolFormatFlags || (ts.SymbolFormatFlags = {}));\n /* @internal */\n var SymbolAccessibility;\n (function (SymbolAccessibility) {\n SymbolAccessibility[SymbolAccessibility[\"Accessible\"] = 0] = \"Accessible\";\n SymbolAccessibility[SymbolAccessibility[\"NotAccessible\"] = 1] = \"NotAccessible\";\n SymbolAccessibility[SymbolAccessibility[\"CannotBeNamed\"] = 2] = \"CannotBeNamed\";\n })(SymbolAccessibility = ts.SymbolAccessibility || (ts.SymbolAccessibility = {}));\n /* @internal */\n var SyntheticSymbolKind;\n (function (SyntheticSymbolKind) {\n SyntheticSymbolKind[SyntheticSymbolKind[\"UnionOrIntersection\"] = 0] = \"UnionOrIntersection\";\n SyntheticSymbolKind[SyntheticSymbolKind[\"Spread\"] = 1] = \"Spread\";\n })(SyntheticSymbolKind = ts.SyntheticSymbolKind || (ts.SyntheticSymbolKind = {}));\n var TypePredicateKind;\n (function (TypePredicateKind) {\n TypePredicateKind[TypePredicateKind[\"This\"] = 0] = \"This\";\n TypePredicateKind[TypePredicateKind[\"Identifier\"] = 1] = \"Identifier\";\n TypePredicateKind[TypePredicateKind[\"AssertsThis\"] = 2] = \"AssertsThis\";\n TypePredicateKind[TypePredicateKind[\"AssertsIdentifier\"] = 3] = \"AssertsIdentifier\";\n })(TypePredicateKind = ts.TypePredicateKind || (ts.TypePredicateKind = {}));\n /** Indicates how to serialize the name for a TypeReferenceNode when emitting decorator metadata */\n /* @internal */\n var TypeReferenceSerializationKind;\n (function (TypeReferenceSerializationKind) {\n // The TypeReferenceNode could not be resolved.\n // The type name should be emitted using a safe fallback.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"Unknown\"] = 0] = \"Unknown\";\n // The TypeReferenceNode resolves to a type with a constructor\n // function that can be reached at runtime (e.g. a `class`\n // declaration or a `var` declaration for the static side\n // of a type, such as the global `Promise` type in lib.d.ts).\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"TypeWithConstructSignatureAndValue\"] = 1] = \"TypeWithConstructSignatureAndValue\";\n // The TypeReferenceNode resolves to a Void-like, Nullable, or Never type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"VoidNullableOrNeverType\"] = 2] = \"VoidNullableOrNeverType\";\n // The TypeReferenceNode resolves to a Number-like type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"NumberLikeType\"] = 3] = \"NumberLikeType\";\n // The TypeReferenceNode resolves to a BigInt-like type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"BigIntLikeType\"] = 4] = \"BigIntLikeType\";\n // The TypeReferenceNode resolves to a String-like type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"StringLikeType\"] = 5] = \"StringLikeType\";\n // The TypeReferenceNode resolves to a Boolean-like type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"BooleanType\"] = 6] = \"BooleanType\";\n // The TypeReferenceNode resolves to an Array-like type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"ArrayLikeType\"] = 7] = \"ArrayLikeType\";\n // The TypeReferenceNode resolves to the ESSymbol type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"ESSymbolType\"] = 8] = \"ESSymbolType\";\n // The TypeReferenceNode resolved to the global Promise constructor symbol.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"Promise\"] = 9] = \"Promise\";\n // The TypeReferenceNode resolves to a Function type or a type with call signatures.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"TypeWithCallSignature\"] = 10] = \"TypeWithCallSignature\";\n // The TypeReferenceNode resolves to any other type.\n TypeReferenceSerializationKind[TypeReferenceSerializationKind[\"ObjectType\"] = 11] = \"ObjectType\";\n })(TypeReferenceSerializationKind = ts.TypeReferenceSerializationKind || (ts.TypeReferenceSerializationKind = {}));\n var SymbolFlags;\n (function (SymbolFlags) {\n SymbolFlags[SymbolFlags[\"None\"] = 0] = \"None\";\n SymbolFlags[SymbolFlags[\"FunctionScopedVariable\"] = 1] = \"FunctionScopedVariable\";\n SymbolFlags[SymbolFlags[\"BlockScopedVariable\"] = 2] = \"BlockScopedVariable\";\n SymbolFlags[SymbolFlags[\"Property\"] = 4] = \"Property\";\n SymbolFlags[SymbolFlags[\"EnumMember\"] = 8] = \"EnumMember\";\n SymbolFlags[SymbolFlags[\"Function\"] = 16] = \"Function\";\n SymbolFlags[SymbolFlags[\"Class\"] = 32] = \"Class\";\n SymbolFlags[SymbolFlags[\"Interface\"] = 64] = \"Interface\";\n SymbolFlags[SymbolFlags[\"ConstEnum\"] = 128] = \"ConstEnum\";\n SymbolFlags[SymbolFlags[\"RegularEnum\"] = 256] = \"RegularEnum\";\n SymbolFlags[SymbolFlags[\"ValueModule\"] = 512] = \"ValueModule\";\n SymbolFlags[SymbolFlags[\"NamespaceModule\"] = 1024] = \"NamespaceModule\";\n SymbolFlags[SymbolFlags[\"TypeLiteral\"] = 2048] = \"TypeLiteral\";\n SymbolFlags[SymbolFlags[\"ObjectLiteral\"] = 4096] = \"ObjectLiteral\";\n SymbolFlags[SymbolFlags[\"Method\"] = 8192] = \"Method\";\n SymbolFlags[SymbolFlags[\"Constructor\"] = 16384] = \"Constructor\";\n SymbolFlags[SymbolFlags[\"GetAccessor\"] = 32768] = \"GetAccessor\";\n SymbolFlags[SymbolFlags[\"SetAccessor\"] = 65536] = \"SetAccessor\";\n SymbolFlags[SymbolFlags[\"Signature\"] = 131072] = \"Signature\";\n SymbolFlags[SymbolFlags[\"TypeParameter\"] = 262144] = \"TypeParameter\";\n SymbolFlags[SymbolFlags[\"TypeAlias\"] = 524288] = \"TypeAlias\";\n SymbolFlags[SymbolFlags[\"ExportValue\"] = 1048576] = \"ExportValue\";\n SymbolFlags[SymbolFlags[\"Alias\"] = 2097152] = \"Alias\";\n SymbolFlags[SymbolFlags[\"Prototype\"] = 4194304] = \"Prototype\";\n SymbolFlags[SymbolFlags[\"ExportStar\"] = 8388608] = \"ExportStar\";\n SymbolFlags[SymbolFlags[\"Optional\"] = 16777216] = \"Optional\";\n SymbolFlags[SymbolFlags[\"Transient\"] = 33554432] = \"Transient\";\n SymbolFlags[SymbolFlags[\"Assignment\"] = 67108864] = \"Assignment\";\n SymbolFlags[SymbolFlags[\"ModuleExports\"] = 134217728] = \"ModuleExports\";\n /* @internal */\n SymbolFlags[SymbolFlags[\"All\"] = 67108863] = \"All\";\n SymbolFlags[SymbolFlags[\"Enum\"] = 384] = \"Enum\";\n SymbolFlags[SymbolFlags[\"Variable\"] = 3] = \"Variable\";\n SymbolFlags[SymbolFlags[\"Value\"] = 111551] = \"Value\";\n SymbolFlags[SymbolFlags[\"Type\"] = 788968] = \"Type\";\n SymbolFlags[SymbolFlags[\"Namespace\"] = 1920] = \"Namespace\";\n SymbolFlags[SymbolFlags[\"Module\"] = 1536] = \"Module\";\n SymbolFlags[SymbolFlags[\"Accessor\"] = 98304] = \"Accessor\";\n // Variables can be redeclared, but can not redeclare a block-scoped declaration with the\n // same name, or any other value that is not a variable, e.g. ValueModule or Class\n SymbolFlags[SymbolFlags[\"FunctionScopedVariableExcludes\"] = 111550] = \"FunctionScopedVariableExcludes\";\n // Block-scoped declarations are not allowed to be re-declared\n // they can not merge with anything in the value space\n SymbolFlags[SymbolFlags[\"BlockScopedVariableExcludes\"] = 111551] = \"BlockScopedVariableExcludes\";\n SymbolFlags[SymbolFlags[\"ParameterExcludes\"] = 111551] = \"ParameterExcludes\";\n SymbolFlags[SymbolFlags[\"PropertyExcludes\"] = 0] = \"PropertyExcludes\";\n SymbolFlags[SymbolFlags[\"EnumMemberExcludes\"] = 900095] = \"EnumMemberExcludes\";\n SymbolFlags[SymbolFlags[\"FunctionExcludes\"] = 110991] = \"FunctionExcludes\";\n SymbolFlags[SymbolFlags[\"ClassExcludes\"] = 899503] = \"ClassExcludes\";\n SymbolFlags[SymbolFlags[\"InterfaceExcludes\"] = 788872] = \"InterfaceExcludes\";\n SymbolFlags[SymbolFlags[\"RegularEnumExcludes\"] = 899327] = \"RegularEnumExcludes\";\n SymbolFlags[SymbolFlags[\"ConstEnumExcludes\"] = 899967] = \"ConstEnumExcludes\";\n SymbolFlags[SymbolFlags[\"ValueModuleExcludes\"] = 110735] = \"ValueModuleExcludes\";\n SymbolFlags[SymbolFlags[\"NamespaceModuleExcludes\"] = 0] = \"NamespaceModuleExcludes\";\n SymbolFlags[SymbolFlags[\"MethodExcludes\"] = 103359] = \"MethodExcludes\";\n SymbolFlags[SymbolFlags[\"GetAccessorExcludes\"] = 46015] = \"GetAccessorExcludes\";\n SymbolFlags[SymbolFlags[\"SetAccessorExcludes\"] = 78783] = \"SetAccessorExcludes\";\n SymbolFlags[SymbolFlags[\"TypeParameterExcludes\"] = 526824] = \"TypeParameterExcludes\";\n SymbolFlags[SymbolFlags[\"TypeAliasExcludes\"] = 788968] = \"TypeAliasExcludes\";\n SymbolFlags[SymbolFlags[\"AliasExcludes\"] = 2097152] = \"AliasExcludes\";\n SymbolFlags[SymbolFlags[\"ModuleMember\"] = 2623475] = \"ModuleMember\";\n SymbolFlags[SymbolFlags[\"ExportHasLocal\"] = 944] = \"ExportHasLocal\";\n SymbolFlags[SymbolFlags[\"BlockScoped\"] = 418] = \"BlockScoped\";\n SymbolFlags[SymbolFlags[\"PropertyOrAccessor\"] = 98308] = \"PropertyOrAccessor\";\n SymbolFlags[SymbolFlags[\"ClassMember\"] = 106500] = \"ClassMember\";\n /* @internal */\n SymbolFlags[SymbolFlags[\"ExportSupportsDefaultModifier\"] = 112] = \"ExportSupportsDefaultModifier\";\n /* @internal */\n SymbolFlags[SymbolFlags[\"ExportDoesNotSupportDefaultModifier\"] = -113] = \"ExportDoesNotSupportDefaultModifier\";\n /* @internal */\n // The set of things we consider semantically classifiable. Used to speed up the LS during\n // classification.\n SymbolFlags[SymbolFlags[\"Classifiable\"] = 2885600] = \"Classifiable\";\n /* @internal */\n SymbolFlags[SymbolFlags[\"LateBindingContainer\"] = 6256] = \"LateBindingContainer\";\n })(SymbolFlags = ts.SymbolFlags || (ts.SymbolFlags = {}));\n /* @internal */\n var EnumKind;\n (function (EnumKind) {\n EnumKind[EnumKind[\"Numeric\"] = 0] = \"Numeric\";\n EnumKind[EnumKind[\"Literal\"] = 1] = \"Literal\"; // Literal enum (each member has a TypeFlags.EnumLiteral type)\n })(EnumKind = ts.EnumKind || (ts.EnumKind = {}));\n /* @internal */\n var CheckFlags;\n (function (CheckFlags) {\n CheckFlags[CheckFlags[\"Instantiated\"] = 1] = \"Instantiated\";\n CheckFlags[CheckFlags[\"SyntheticProperty\"] = 2] = \"SyntheticProperty\";\n CheckFlags[CheckFlags[\"SyntheticMethod\"] = 4] = \"SyntheticMethod\";\n CheckFlags[CheckFlags[\"Readonly\"] = 8] = \"Readonly\";\n CheckFlags[CheckFlags[\"ReadPartial\"] = 16] = \"ReadPartial\";\n CheckFlags[CheckFlags[\"WritePartial\"] = 32] = \"WritePartial\";\n CheckFlags[CheckFlags[\"HasNonUniformType\"] = 64] = \"HasNonUniformType\";\n CheckFlags[CheckFlags[\"HasLiteralType\"] = 128] = \"HasLiteralType\";\n CheckFlags[CheckFlags[\"ContainsPublic\"] = 256] = \"ContainsPublic\";\n CheckFlags[CheckFlags[\"ContainsProtected\"] = 512] = \"ContainsProtected\";\n CheckFlags[CheckFlags[\"ContainsPrivate\"] = 1024] = \"ContainsPrivate\";\n CheckFlags[CheckFlags[\"ContainsStatic\"] = 2048] = \"ContainsStatic\";\n CheckFlags[CheckFlags[\"Late\"] = 4096] = \"Late\";\n CheckFlags[CheckFlags[\"ReverseMapped\"] = 8192] = \"ReverseMapped\";\n CheckFlags[CheckFlags[\"OptionalParameter\"] = 16384] = \"OptionalParameter\";\n CheckFlags[CheckFlags[\"RestParameter\"] = 32768] = \"RestParameter\";\n CheckFlags[CheckFlags[\"DeferredType\"] = 65536] = \"DeferredType\";\n CheckFlags[CheckFlags[\"HasNeverType\"] = 131072] = \"HasNeverType\";\n CheckFlags[CheckFlags[\"Mapped\"] = 262144] = \"Mapped\";\n CheckFlags[CheckFlags[\"StripOptional\"] = 524288] = \"StripOptional\";\n CheckFlags[CheckFlags[\"Synthetic\"] = 6] = \"Synthetic\";\n CheckFlags[CheckFlags[\"Discriminant\"] = 192] = \"Discriminant\";\n CheckFlags[CheckFlags[\"Partial\"] = 48] = \"Partial\";\n })(CheckFlags = ts.CheckFlags || (ts.CheckFlags = {}));\n var InternalSymbolName;\n (function (InternalSymbolName) {\n InternalSymbolName[\"Call\"] = \"__call\";\n InternalSymbolName[\"Constructor\"] = \"__constructor\";\n InternalSymbolName[\"New\"] = \"__new\";\n InternalSymbolName[\"Index\"] = \"__index\";\n InternalSymbolName[\"ExportStar\"] = \"__export\";\n InternalSymbolName[\"Global\"] = \"__global\";\n InternalSymbolName[\"Missing\"] = \"__missing\";\n InternalSymbolName[\"Type\"] = \"__type\";\n InternalSymbolName[\"Object\"] = \"__object\";\n InternalSymbolName[\"JSXAttributes\"] = \"__jsxAttributes\";\n InternalSymbolName[\"Class\"] = \"__class\";\n InternalSymbolName[\"Function\"] = \"__function\";\n InternalSymbolName[\"Computed\"] = \"__computed\";\n InternalSymbolName[\"Resolving\"] = \"__resolving__\";\n InternalSymbolName[\"ExportEquals\"] = \"export=\";\n InternalSymbolName[\"Default\"] = \"default\";\n InternalSymbolName[\"This\"] = \"this\";\n })(InternalSymbolName = ts.InternalSymbolName || (ts.InternalSymbolName = {}));\n /* @internal */\n var NodeCheckFlags;\n (function (NodeCheckFlags) {\n NodeCheckFlags[NodeCheckFlags[\"TypeChecked\"] = 1] = \"TypeChecked\";\n NodeCheckFlags[NodeCheckFlags[\"LexicalThis\"] = 2] = \"LexicalThis\";\n NodeCheckFlags[NodeCheckFlags[\"CaptureThis\"] = 4] = \"CaptureThis\";\n NodeCheckFlags[NodeCheckFlags[\"CaptureNewTarget\"] = 8] = \"CaptureNewTarget\";\n NodeCheckFlags[NodeCheckFlags[\"SuperInstance\"] = 256] = \"SuperInstance\";\n NodeCheckFlags[NodeCheckFlags[\"SuperStatic\"] = 512] = \"SuperStatic\";\n NodeCheckFlags[NodeCheckFlags[\"ContextChecked\"] = 1024] = \"ContextChecked\";\n NodeCheckFlags[NodeCheckFlags[\"AsyncMethodWithSuper\"] = 2048] = \"AsyncMethodWithSuper\";\n NodeCheckFlags[NodeCheckFlags[\"AsyncMethodWithSuperBinding\"] = 4096] = \"AsyncMethodWithSuperBinding\";\n NodeCheckFlags[NodeCheckFlags[\"CaptureArguments\"] = 8192] = \"CaptureArguments\";\n NodeCheckFlags[NodeCheckFlags[\"EnumValuesComputed\"] = 16384] = \"EnumValuesComputed\";\n NodeCheckFlags[NodeCheckFlags[\"LexicalModuleMergesWithClass\"] = 32768] = \"LexicalModuleMergesWithClass\";\n NodeCheckFlags[NodeCheckFlags[\"LoopWithCapturedBlockScopedBinding\"] = 65536] = \"LoopWithCapturedBlockScopedBinding\";\n NodeCheckFlags[NodeCheckFlags[\"ContainsCapturedBlockScopeBinding\"] = 131072] = \"ContainsCapturedBlockScopeBinding\";\n NodeCheckFlags[NodeCheckFlags[\"CapturedBlockScopedBinding\"] = 262144] = \"CapturedBlockScopedBinding\";\n NodeCheckFlags[NodeCheckFlags[\"BlockScopedBindingInLoop\"] = 524288] = \"BlockScopedBindingInLoop\";\n NodeCheckFlags[NodeCheckFlags[\"ClassWithBodyScopedClassBinding\"] = 1048576] = \"ClassWithBodyScopedClassBinding\";\n NodeCheckFlags[NodeCheckFlags[\"BodyScopedClassBinding\"] = 2097152] = \"BodyScopedClassBinding\";\n NodeCheckFlags[NodeCheckFlags[\"NeedsLoopOutParameter\"] = 4194304] = \"NeedsLoopOutParameter\";\n NodeCheckFlags[NodeCheckFlags[\"AssignmentsMarked\"] = 8388608] = \"AssignmentsMarked\";\n NodeCheckFlags[NodeCheckFlags[\"ClassWithConstructorReference\"] = 16777216] = \"ClassWithConstructorReference\";\n NodeCheckFlags[NodeCheckFlags[\"ConstructorReferenceInClass\"] = 33554432] = \"ConstructorReferenceInClass\";\n NodeCheckFlags[NodeCheckFlags[\"ContainsClassWithPrivateIdentifiers\"] = 67108864] = \"ContainsClassWithPrivateIdentifiers\";\n NodeCheckFlags[NodeCheckFlags[\"ContainsSuperPropertyInStaticInitializer\"] = 134217728] = \"ContainsSuperPropertyInStaticInitializer\";\n })(NodeCheckFlags = ts.NodeCheckFlags || (ts.NodeCheckFlags = {}));\n var TypeFlags;\n (function (TypeFlags) {\n TypeFlags[TypeFlags[\"Any\"] = 1] = \"Any\";\n TypeFlags[TypeFlags[\"Unknown\"] = 2] = \"Unknown\";\n TypeFlags[TypeFlags[\"String\"] = 4] = \"String\";\n TypeFlags[TypeFlags[\"Number\"] = 8] = \"Number\";\n TypeFlags[TypeFlags[\"Boolean\"] = 16] = \"Boolean\";\n TypeFlags[TypeFlags[\"Enum\"] = 32] = \"Enum\";\n TypeFlags[TypeFlags[\"BigInt\"] = 64] = \"BigInt\";\n TypeFlags[TypeFlags[\"StringLiteral\"] = 128] = \"StringLiteral\";\n TypeFlags[TypeFlags[\"NumberLiteral\"] = 256] = \"NumberLiteral\";\n TypeFlags[TypeFlags[\"BooleanLiteral\"] = 512] = \"BooleanLiteral\";\n TypeFlags[TypeFlags[\"EnumLiteral\"] = 1024] = \"EnumLiteral\";\n TypeFlags[TypeFlags[\"BigIntLiteral\"] = 2048] = \"BigIntLiteral\";\n TypeFlags[TypeFlags[\"ESSymbol\"] = 4096] = \"ESSymbol\";\n TypeFlags[TypeFlags[\"UniqueESSymbol\"] = 8192] = \"UniqueESSymbol\";\n TypeFlags[TypeFlags[\"Void\"] = 16384] = \"Void\";\n TypeFlags[TypeFlags[\"Undefined\"] = 32768] = \"Undefined\";\n TypeFlags[TypeFlags[\"Null\"] = 65536] = \"Null\";\n TypeFlags[TypeFlags[\"Never\"] = 131072] = \"Never\";\n TypeFlags[TypeFlags[\"TypeParameter\"] = 262144] = \"TypeParameter\";\n TypeFlags[TypeFlags[\"Object\"] = 524288] = \"Object\";\n TypeFlags[TypeFlags[\"Union\"] = 1048576] = \"Union\";\n TypeFlags[TypeFlags[\"Intersection\"] = 2097152] = \"Intersection\";\n TypeFlags[TypeFlags[\"Index\"] = 4194304] = \"Index\";\n TypeFlags[TypeFlags[\"IndexedAccess\"] = 8388608] = \"IndexedAccess\";\n TypeFlags[TypeFlags[\"Conditional\"] = 16777216] = \"Conditional\";\n TypeFlags[TypeFlags[\"Substitution\"] = 33554432] = \"Substitution\";\n TypeFlags[TypeFlags[\"NonPrimitive\"] = 67108864] = \"NonPrimitive\";\n TypeFlags[TypeFlags[\"TemplateLiteral\"] = 134217728] = \"TemplateLiteral\";\n TypeFlags[TypeFlags[\"StringMapping\"] = 268435456] = \"StringMapping\";\n /* @internal */\n TypeFlags[TypeFlags[\"AnyOrUnknown\"] = 3] = \"AnyOrUnknown\";\n /* @internal */\n TypeFlags[TypeFlags[\"Nullable\"] = 98304] = \"Nullable\";\n TypeFlags[TypeFlags[\"Literal\"] = 2944] = \"Literal\";\n TypeFlags[TypeFlags[\"Unit\"] = 109440] = \"Unit\";\n TypeFlags[TypeFlags[\"StringOrNumberLiteral\"] = 384] = \"StringOrNumberLiteral\";\n /* @internal */\n TypeFlags[TypeFlags[\"StringOrNumberLiteralOrUnique\"] = 8576] = \"StringOrNumberLiteralOrUnique\";\n /* @internal */\n TypeFlags[TypeFlags[\"DefinitelyFalsy\"] = 117632] = \"DefinitelyFalsy\";\n TypeFlags[TypeFlags[\"PossiblyFalsy\"] = 117724] = \"PossiblyFalsy\";\n /* @internal */\n TypeFlags[TypeFlags[\"Intrinsic\"] = 67359327] = \"Intrinsic\";\n /* @internal */\n TypeFlags[TypeFlags[\"Primitive\"] = 131068] = \"Primitive\";\n TypeFlags[TypeFlags[\"StringLike\"] = 402653316] = \"StringLike\";\n TypeFlags[TypeFlags[\"NumberLike\"] = 296] = \"NumberLike\";\n TypeFlags[TypeFlags[\"BigIntLike\"] = 2112] = \"BigIntLike\";\n TypeFlags[TypeFlags[\"BooleanLike\"] = 528] = \"BooleanLike\";\n TypeFlags[TypeFlags[\"EnumLike\"] = 1056] = \"EnumLike\";\n TypeFlags[TypeFlags[\"ESSymbolLike\"] = 12288] = \"ESSymbolLike\";\n TypeFlags[TypeFlags[\"VoidLike\"] = 49152] = \"VoidLike\";\n /* @internal */\n TypeFlags[TypeFlags[\"DisjointDomains\"] = 469892092] = \"DisjointDomains\";\n TypeFlags[TypeFlags[\"UnionOrIntersection\"] = 3145728] = \"UnionOrIntersection\";\n TypeFlags[TypeFlags[\"StructuredType\"] = 3670016] = \"StructuredType\";\n TypeFlags[TypeFlags[\"TypeVariable\"] = 8650752] = \"TypeVariable\";\n TypeFlags[TypeFlags[\"InstantiableNonPrimitive\"] = 58982400] = \"InstantiableNonPrimitive\";\n TypeFlags[TypeFlags[\"InstantiablePrimitive\"] = 406847488] = \"InstantiablePrimitive\";\n TypeFlags[TypeFlags[\"Instantiable\"] = 465829888] = \"Instantiable\";\n TypeFlags[TypeFlags[\"StructuredOrInstantiable\"] = 469499904] = \"StructuredOrInstantiable\";\n /* @internal */\n TypeFlags[TypeFlags[\"ObjectFlagsType\"] = 3899393] = \"ObjectFlagsType\";\n /* @internal */\n TypeFlags[TypeFlags[\"Simplifiable\"] = 25165824] = \"Simplifiable\";\n /* @internal */\n TypeFlags[TypeFlags[\"Singleton\"] = 67358815] = \"Singleton\";\n // 'Narrowable' types are types where narrowing actually narrows.\n // This *should* be every type other than null, undefined, void, and never\n TypeFlags[TypeFlags[\"Narrowable\"] = 536624127] = \"Narrowable\";\n /* @internal */\n TypeFlags[TypeFlags[\"NotPrimitiveUnion\"] = 468598819] = \"NotPrimitiveUnion\";\n // The following flags are aggregated during union and intersection type construction\n /* @internal */\n TypeFlags[TypeFlags[\"IncludesMask\"] = 205258751] = \"IncludesMask\";\n // The following flags are used for different purposes during union and intersection type construction\n /* @internal */\n TypeFlags[TypeFlags[\"IncludesStructuredOrInstantiable\"] = 262144] = \"IncludesStructuredOrInstantiable\";\n /* @internal */\n TypeFlags[TypeFlags[\"IncludesNonWideningType\"] = 4194304] = \"IncludesNonWideningType\";\n /* @internal */\n TypeFlags[TypeFlags[\"IncludesWildcard\"] = 8388608] = \"IncludesWildcard\";\n /* @internal */\n TypeFlags[TypeFlags[\"IncludesEmptyObject\"] = 16777216] = \"IncludesEmptyObject\";\n })(TypeFlags = ts.TypeFlags || (ts.TypeFlags = {}));\n // Types included in TypeFlags.ObjectFlagsType have an objectFlags property. Some ObjectFlags\n // are specific to certain types and reuse the same bit position. Those ObjectFlags require a check\n // for a certain TypeFlags value to determine their meaning.\n var ObjectFlags;\n (function (ObjectFlags) {\n ObjectFlags[ObjectFlags[\"Class\"] = 1] = \"Class\";\n ObjectFlags[ObjectFlags[\"Interface\"] = 2] = \"Interface\";\n ObjectFlags[ObjectFlags[\"Reference\"] = 4] = \"Reference\";\n ObjectFlags[ObjectFlags[\"Tuple\"] = 8] = \"Tuple\";\n ObjectFlags[ObjectFlags[\"Anonymous\"] = 16] = \"Anonymous\";\n ObjectFlags[ObjectFlags[\"Mapped\"] = 32] = \"Mapped\";\n ObjectFlags[ObjectFlags[\"Instantiated\"] = 64] = \"Instantiated\";\n ObjectFlags[ObjectFlags[\"ObjectLiteral\"] = 128] = \"ObjectLiteral\";\n ObjectFlags[ObjectFlags[\"EvolvingArray\"] = 256] = \"EvolvingArray\";\n ObjectFlags[ObjectFlags[\"ObjectLiteralPatternWithComputedProperties\"] = 512] = \"ObjectLiteralPatternWithComputedProperties\";\n ObjectFlags[ObjectFlags[\"ReverseMapped\"] = 1024] = \"ReverseMapped\";\n ObjectFlags[ObjectFlags[\"JsxAttributes\"] = 2048] = \"JsxAttributes\";\n ObjectFlags[ObjectFlags[\"MarkerType\"] = 4096] = \"MarkerType\";\n ObjectFlags[ObjectFlags[\"JSLiteral\"] = 8192] = \"JSLiteral\";\n ObjectFlags[ObjectFlags[\"FreshLiteral\"] = 16384] = \"FreshLiteral\";\n ObjectFlags[ObjectFlags[\"ArrayLiteral\"] = 32768] = \"ArrayLiteral\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"PrimitiveUnion\"] = 65536] = \"PrimitiveUnion\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"ContainsWideningType\"] = 131072] = \"ContainsWideningType\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"ContainsObjectOrArrayLiteral\"] = 262144] = \"ContainsObjectOrArrayLiteral\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"NonInferrableType\"] = 524288] = \"NonInferrableType\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"CouldContainTypeVariablesComputed\"] = 1048576] = \"CouldContainTypeVariablesComputed\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"CouldContainTypeVariables\"] = 2097152] = \"CouldContainTypeVariables\";\n ObjectFlags[ObjectFlags[\"ClassOrInterface\"] = 3] = \"ClassOrInterface\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"RequiresWidening\"] = 393216] = \"RequiresWidening\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"PropagatingFlags\"] = 917504] = \"PropagatingFlags\";\n // Object flags that uniquely identify the kind of ObjectType\n /* @internal */\n ObjectFlags[ObjectFlags[\"ObjectTypeKindMask\"] = 1343] = \"ObjectTypeKindMask\";\n // Flags that require TypeFlags.Object\n ObjectFlags[ObjectFlags[\"ContainsSpread\"] = 4194304] = \"ContainsSpread\";\n ObjectFlags[ObjectFlags[\"ObjectRestType\"] = 8388608] = \"ObjectRestType\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsClassInstanceClone\"] = 16777216] = \"IsClassInstanceClone\";\n // Flags that require TypeFlags.Object and ObjectFlags.Reference\n /* @internal */\n ObjectFlags[ObjectFlags[\"IdenticalBaseTypeCalculated\"] = 33554432] = \"IdenticalBaseTypeCalculated\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"IdenticalBaseTypeExists\"] = 67108864] = \"IdenticalBaseTypeExists\";\n // Flags that require TypeFlags.UnionOrIntersection or TypeFlags.Substitution\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsGenericTypeComputed\"] = 4194304] = \"IsGenericTypeComputed\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsGenericObjectType\"] = 8388608] = \"IsGenericObjectType\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsGenericIndexType\"] = 16777216] = \"IsGenericIndexType\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsGenericType\"] = 25165824] = \"IsGenericType\";\n // Flags that require TypeFlags.Union\n /* @internal */\n ObjectFlags[ObjectFlags[\"ContainsIntersections\"] = 33554432] = \"ContainsIntersections\";\n // Flags that require TypeFlags.Intersection\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsNeverIntersectionComputed\"] = 33554432] = \"IsNeverIntersectionComputed\";\n /* @internal */\n ObjectFlags[ObjectFlags[\"IsNeverIntersection\"] = 67108864] = \"IsNeverIntersection\";\n })(ObjectFlags = ts.ObjectFlags || (ts.ObjectFlags = {}));\n /* @internal */\n var VarianceFlags;\n (function (VarianceFlags) {\n VarianceFlags[VarianceFlags[\"Invariant\"] = 0] = \"Invariant\";\n VarianceFlags[VarianceFlags[\"Covariant\"] = 1] = \"Covariant\";\n VarianceFlags[VarianceFlags[\"Contravariant\"] = 2] = \"Contravariant\";\n VarianceFlags[VarianceFlags[\"Bivariant\"] = 3] = \"Bivariant\";\n VarianceFlags[VarianceFlags[\"Independent\"] = 4] = \"Independent\";\n VarianceFlags[VarianceFlags[\"VarianceMask\"] = 7] = \"VarianceMask\";\n VarianceFlags[VarianceFlags[\"Unmeasurable\"] = 8] = \"Unmeasurable\";\n VarianceFlags[VarianceFlags[\"Unreliable\"] = 16] = \"Unreliable\";\n VarianceFlags[VarianceFlags[\"AllowsStructuralFallback\"] = 24] = \"AllowsStructuralFallback\";\n })(VarianceFlags = ts.VarianceFlags || (ts.VarianceFlags = {}));\n var ElementFlags;\n (function (ElementFlags) {\n ElementFlags[ElementFlags[\"Required\"] = 1] = \"Required\";\n ElementFlags[ElementFlags[\"Optional\"] = 2] = \"Optional\";\n ElementFlags[ElementFlags[\"Rest\"] = 4] = \"Rest\";\n ElementFlags[ElementFlags[\"Variadic\"] = 8] = \"Variadic\";\n ElementFlags[ElementFlags[\"Fixed\"] = 3] = \"Fixed\";\n ElementFlags[ElementFlags[\"Variable\"] = 12] = \"Variable\";\n ElementFlags[ElementFlags[\"NonRequired\"] = 14] = \"NonRequired\";\n ElementFlags[ElementFlags[\"NonRest\"] = 11] = \"NonRest\";\n })(ElementFlags = ts.ElementFlags || (ts.ElementFlags = {}));\n /* @internal */\n var AccessFlags;\n (function (AccessFlags) {\n AccessFlags[AccessFlags[\"None\"] = 0] = \"None\";\n AccessFlags[AccessFlags[\"IncludeUndefined\"] = 1] = \"IncludeUndefined\";\n AccessFlags[AccessFlags[\"NoIndexSignatures\"] = 2] = \"NoIndexSignatures\";\n AccessFlags[AccessFlags[\"Writing\"] = 4] = \"Writing\";\n AccessFlags[AccessFlags[\"CacheSymbol\"] = 8] = \"CacheSymbol\";\n AccessFlags[AccessFlags[\"NoTupleBoundsCheck\"] = 16] = \"NoTupleBoundsCheck\";\n AccessFlags[AccessFlags[\"ExpressionPosition\"] = 32] = \"ExpressionPosition\";\n AccessFlags[AccessFlags[\"ReportDeprecated\"] = 64] = \"ReportDeprecated\";\n AccessFlags[AccessFlags[\"SuppressNoImplicitAnyError\"] = 128] = \"SuppressNoImplicitAnyError\";\n AccessFlags[AccessFlags[\"Contextual\"] = 256] = \"Contextual\";\n AccessFlags[AccessFlags[\"Persistent\"] = 1] = \"Persistent\";\n })(AccessFlags = ts.AccessFlags || (ts.AccessFlags = {}));\n /* @internal */\n var JsxReferenceKind;\n (function (JsxReferenceKind) {\n JsxReferenceKind[JsxReferenceKind[\"Component\"] = 0] = \"Component\";\n JsxReferenceKind[JsxReferenceKind[\"Function\"] = 1] = \"Function\";\n JsxReferenceKind[JsxReferenceKind[\"Mixed\"] = 2] = \"Mixed\";\n })(JsxReferenceKind = ts.JsxReferenceKind || (ts.JsxReferenceKind = {}));\n var SignatureKind;\n (function (SignatureKind) {\n SignatureKind[SignatureKind[\"Call\"] = 0] = \"Call\";\n SignatureKind[SignatureKind[\"Construct\"] = 1] = \"Construct\";\n })(SignatureKind = ts.SignatureKind || (ts.SignatureKind = {}));\n /* @internal */\n var SignatureFlags;\n (function (SignatureFlags) {\n SignatureFlags[SignatureFlags[\"None\"] = 0] = \"None\";\n // Propagating flags\n SignatureFlags[SignatureFlags[\"HasRestParameter\"] = 1] = \"HasRestParameter\";\n SignatureFlags[SignatureFlags[\"HasLiteralTypes\"] = 2] = \"HasLiteralTypes\";\n SignatureFlags[SignatureFlags[\"Abstract\"] = 4] = \"Abstract\";\n // Non-propagating flags\n SignatureFlags[SignatureFlags[\"IsInnerCallChain\"] = 8] = \"IsInnerCallChain\";\n SignatureFlags[SignatureFlags[\"IsOuterCallChain\"] = 16] = \"IsOuterCallChain\";\n SignatureFlags[SignatureFlags[\"IsUntypedSignatureInJSFile\"] = 32] = \"IsUntypedSignatureInJSFile\";\n // We do not propagate `IsInnerCallChain` or `IsOuterCallChain` to instantiated signatures, as that would result in us\n // attempting to add `| undefined` on each recursive call to `getReturnTypeOfSignature` when\n // instantiating the return type.\n SignatureFlags[SignatureFlags[\"PropagatingFlags\"] = 39] = \"PropagatingFlags\";\n SignatureFlags[SignatureFlags[\"CallChainFlags\"] = 24] = \"CallChainFlags\";\n })(SignatureFlags = ts.SignatureFlags || (ts.SignatureFlags = {}));\n var IndexKind;\n (function (IndexKind) {\n IndexKind[IndexKind[\"String\"] = 0] = \"String\";\n IndexKind[IndexKind[\"Number\"] = 1] = \"Number\";\n })(IndexKind = ts.IndexKind || (ts.IndexKind = {}));\n /* @internal */\n var TypeMapKind;\n (function (TypeMapKind) {\n TypeMapKind[TypeMapKind[\"Simple\"] = 0] = \"Simple\";\n TypeMapKind[TypeMapKind[\"Array\"] = 1] = \"Array\";\n TypeMapKind[TypeMapKind[\"Function\"] = 2] = \"Function\";\n TypeMapKind[TypeMapKind[\"Composite\"] = 3] = \"Composite\";\n TypeMapKind[TypeMapKind[\"Merged\"] = 4] = \"Merged\";\n })(TypeMapKind = ts.TypeMapKind || (ts.TypeMapKind = {}));\n var InferencePriority;\n (function (InferencePriority) {\n InferencePriority[InferencePriority[\"NakedTypeVariable\"] = 1] = \"NakedTypeVariable\";\n InferencePriority[InferencePriority[\"SpeculativeTuple\"] = 2] = \"SpeculativeTuple\";\n InferencePriority[InferencePriority[\"SubstituteSource\"] = 4] = \"SubstituteSource\";\n InferencePriority[InferencePriority[\"HomomorphicMappedType\"] = 8] = \"HomomorphicMappedType\";\n InferencePriority[InferencePriority[\"PartialHomomorphicMappedType\"] = 16] = \"PartialHomomorphicMappedType\";\n InferencePriority[InferencePriority[\"MappedTypeConstraint\"] = 32] = \"MappedTypeConstraint\";\n InferencePriority[InferencePriority[\"ContravariantConditional\"] = 64] = \"ContravariantConditional\";\n InferencePriority[InferencePriority[\"ReturnType\"] = 128] = \"ReturnType\";\n InferencePriority[InferencePriority[\"LiteralKeyof\"] = 256] = \"LiteralKeyof\";\n InferencePriority[InferencePriority[\"NoConstraints\"] = 512] = \"NoConstraints\";\n InferencePriority[InferencePriority[\"AlwaysStrict\"] = 1024] = \"AlwaysStrict\";\n InferencePriority[InferencePriority[\"MaxValue\"] = 2048] = \"MaxValue\";\n InferencePriority[InferencePriority[\"PriorityImpliesCombination\"] = 416] = \"PriorityImpliesCombination\";\n InferencePriority[InferencePriority[\"Circularity\"] = -1] = \"Circularity\";\n })(InferencePriority = ts.InferencePriority || (ts.InferencePriority = {}));\n /* @internal */\n var InferenceFlags;\n (function (InferenceFlags) {\n InferenceFlags[InferenceFlags[\"None\"] = 0] = \"None\";\n InferenceFlags[InferenceFlags[\"NoDefault\"] = 1] = \"NoDefault\";\n InferenceFlags[InferenceFlags[\"AnyDefault\"] = 2] = \"AnyDefault\";\n InferenceFlags[InferenceFlags[\"SkippedGenericFunction\"] = 4] = \"SkippedGenericFunction\";\n })(InferenceFlags = ts.InferenceFlags || (ts.InferenceFlags = {}));\n /**\n * Ternary values are defined such that\n * x & y picks the lesser in the order False < Unknown < Maybe < True, and\n * x | y picks the greater in the order False < Unknown < Maybe < True.\n * Generally, Ternary.Maybe is used as the result of a relation that depends on itself, and\n * Ternary.Unknown is used as the result of a variance check that depends on itself. We make\n * a distinction because we don't want to cache circular variance check results.\n */\n /* @internal */\n var Ternary;\n (function (Ternary) {\n Ternary[Ternary[\"False\"] = 0] = \"False\";\n Ternary[Ternary[\"Unknown\"] = 1] = \"Unknown\";\n Ternary[Ternary[\"Maybe\"] = 3] = \"Maybe\";\n Ternary[Ternary[\"True\"] = -1] = \"True\";\n })(Ternary = ts.Ternary || (ts.Ternary = {}));\n /* @internal */\n var AssignmentDeclarationKind;\n (function (AssignmentDeclarationKind) {\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"None\"] = 0] = \"None\";\n /// exports.name = expr\n /// module.exports.name = expr\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"ExportsProperty\"] = 1] = \"ExportsProperty\";\n /// module.exports = expr\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"ModuleExports\"] = 2] = \"ModuleExports\";\n /// className.prototype.name = expr\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"PrototypeProperty\"] = 3] = \"PrototypeProperty\";\n /// this.name = expr\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"ThisProperty\"] = 4] = \"ThisProperty\";\n // F.name = expr\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"Property\"] = 5] = \"Property\";\n // F.prototype = { ... }\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"Prototype\"] = 6] = \"Prototype\";\n // Object.defineProperty(x, 'name', { value: any, writable?: boolean (false by default) });\n // Object.defineProperty(x, 'name', { get: Function, set: Function });\n // Object.defineProperty(x, 'name', { get: Function });\n // Object.defineProperty(x, 'name', { set: Function });\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"ObjectDefinePropertyValue\"] = 7] = \"ObjectDefinePropertyValue\";\n // Object.defineProperty(exports || module.exports, 'name', ...);\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"ObjectDefinePropertyExports\"] = 8] = \"ObjectDefinePropertyExports\";\n // Object.defineProperty(Foo.prototype, 'name', ...);\n AssignmentDeclarationKind[AssignmentDeclarationKind[\"ObjectDefinePrototypeProperty\"] = 9] = \"ObjectDefinePrototypeProperty\";\n })(AssignmentDeclarationKind = ts.AssignmentDeclarationKind || (ts.AssignmentDeclarationKind = {}));\n var DiagnosticCategory;\n (function (DiagnosticCategory) {\n DiagnosticCategory[DiagnosticCategory[\"Warning\"] = 0] = \"Warning\";\n DiagnosticCategory[DiagnosticCategory[\"Error\"] = 1] = \"Error\";\n DiagnosticCategory[DiagnosticCategory[\"Suggestion\"] = 2] = \"Suggestion\";\n DiagnosticCategory[DiagnosticCategory[\"Message\"] = 3] = \"Message\";\n })(DiagnosticCategory = ts.DiagnosticCategory || (ts.DiagnosticCategory = {}));\n /* @internal */\n function diagnosticCategoryName(d, lowerCase) {\n if (lowerCase === void 0) { lowerCase = true; }\n var name = DiagnosticCategory[d.category];\n return lowerCase ? name.toLowerCase() : name;\n }\n ts.diagnosticCategoryName = diagnosticCategoryName;\n var ModuleResolutionKind;\n (function (ModuleResolutionKind) {\n ModuleResolutionKind[ModuleResolutionKind[\"Classic\"] = 1] = \"Classic\";\n ModuleResolutionKind[ModuleResolutionKind[\"NodeJs\"] = 2] = \"NodeJs\";\n })(ModuleResolutionKind = ts.ModuleResolutionKind || (ts.ModuleResolutionKind = {}));\n var WatchFileKind;\n (function (WatchFileKind) {\n WatchFileKind[WatchFileKind[\"FixedPollingInterval\"] = 0] = \"FixedPollingInterval\";\n WatchFileKind[WatchFileKind[\"PriorityPollingInterval\"] = 1] = \"PriorityPollingInterval\";\n WatchFileKind[WatchFileKind[\"DynamicPriorityPolling\"] = 2] = \"DynamicPriorityPolling\";\n WatchFileKind[WatchFileKind[\"FixedChunkSizePolling\"] = 3] = \"FixedChunkSizePolling\";\n WatchFileKind[WatchFileKind[\"UseFsEvents\"] = 4] = \"UseFsEvents\";\n WatchFileKind[WatchFileKind[\"UseFsEventsOnParentDirectory\"] = 5] = \"UseFsEventsOnParentDirectory\";\n })(WatchFileKind = ts.WatchFileKind || (ts.WatchFileKind = {}));\n var WatchDirectoryKind;\n (function (WatchDirectoryKind) {\n WatchDirectoryKind[WatchDirectoryKind[\"UseFsEvents\"] = 0] = \"UseFsEvents\";\n WatchDirectoryKind[WatchDirectoryKind[\"FixedPollingInterval\"] = 1] = \"FixedPollingInterval\";\n WatchDirectoryKind[WatchDirectoryKind[\"DynamicPriorityPolling\"] = 2] = \"DynamicPriorityPolling\";\n WatchDirectoryKind[WatchDirectoryKind[\"FixedChunkSizePolling\"] = 3] = \"FixedChunkSizePolling\";\n })(WatchDirectoryKind = ts.WatchDirectoryKind || (ts.WatchDirectoryKind = {}));\n var PollingWatchKind;\n (function (PollingWatchKind) {\n PollingWatchKind[PollingWatchKind[\"FixedInterval\"] = 0] = \"FixedInterval\";\n PollingWatchKind[PollingWatchKind[\"PriorityInterval\"] = 1] = \"PriorityInterval\";\n PollingWatchKind[PollingWatchKind[\"DynamicPriority\"] = 2] = \"DynamicPriority\";\n PollingWatchKind[PollingWatchKind[\"FixedChunkSize\"] = 3] = \"FixedChunkSize\";\n })(PollingWatchKind = ts.PollingWatchKind || (ts.PollingWatchKind = {}));\n var ModuleKind;\n (function (ModuleKind) {\n ModuleKind[ModuleKind[\"None\"] = 0] = \"None\";\n ModuleKind[ModuleKind[\"CommonJS\"] = 1] = \"CommonJS\";\n ModuleKind[ModuleKind[\"AMD\"] = 2] = \"AMD\";\n ModuleKind[ModuleKind[\"UMD\"] = 3] = \"UMD\";\n ModuleKind[ModuleKind[\"System\"] = 4] = \"System\";\n // NOTE: ES module kinds should be contiguous to more easily check whether a module kind is *any* ES module kind.\n // Non-ES module kinds should not come between ES2015 (the earliest ES module kind) and ESNext (the last ES\n // module kind).\n ModuleKind[ModuleKind[\"ES2015\"] = 5] = \"ES2015\";\n ModuleKind[ModuleKind[\"ES2020\"] = 6] = \"ES2020\";\n ModuleKind[ModuleKind[\"ESNext\"] = 99] = \"ESNext\";\n })(ModuleKind = ts.ModuleKind || (ts.ModuleKind = {}));\n var JsxEmit;\n (function (JsxEmit) {\n JsxEmit[JsxEmit[\"None\"] = 0] = \"None\";\n JsxEmit[JsxEmit[\"Preserve\"] = 1] = \"Preserve\";\n JsxEmit[JsxEmit[\"React\"] = 2] = \"React\";\n JsxEmit[JsxEmit[\"ReactNative\"] = 3] = \"ReactNative\";\n JsxEmit[JsxEmit[\"ReactJSX\"] = 4] = \"ReactJSX\";\n JsxEmit[JsxEmit[\"ReactJSXDev\"] = 5] = \"ReactJSXDev\";\n })(JsxEmit = ts.JsxEmit || (ts.JsxEmit = {}));\n var ImportsNotUsedAsValues;\n (function (ImportsNotUsedAsValues) {\n ImportsNotUsedAsValues[ImportsNotUsedAsValues[\"Remove\"] = 0] = \"Remove\";\n ImportsNotUsedAsValues[ImportsNotUsedAsValues[\"Preserve\"] = 1] = \"Preserve\";\n ImportsNotUsedAsValues[ImportsNotUsedAsValues[\"Error\"] = 2] = \"Error\";\n })(ImportsNotUsedAsValues = ts.ImportsNotUsedAsValues || (ts.ImportsNotUsedAsValues = {}));\n var NewLineKind;\n (function (NewLineKind) {\n NewLineKind[NewLineKind[\"CarriageReturnLineFeed\"] = 0] = \"CarriageReturnLineFeed\";\n NewLineKind[NewLineKind[\"LineFeed\"] = 1] = \"LineFeed\";\n })(NewLineKind = ts.NewLineKind || (ts.NewLineKind = {}));\n var ScriptKind;\n (function (ScriptKind) {\n ScriptKind[ScriptKind[\"Unknown\"] = 0] = \"Unknown\";\n ScriptKind[ScriptKind[\"JS\"] = 1] = \"JS\";\n ScriptKind[ScriptKind[\"JSX\"] = 2] = \"JSX\";\n ScriptKind[ScriptKind[\"TS\"] = 3] = \"TS\";\n ScriptKind[ScriptKind[\"TSX\"] = 4] = \"TSX\";\n ScriptKind[ScriptKind[\"External\"] = 5] = \"External\";\n ScriptKind[ScriptKind[\"JSON\"] = 6] = \"JSON\";\n /**\n * Used on extensions that doesn't define the ScriptKind but the content defines it.\n * Deferred extensions are going to be included in all project contexts.\n */\n ScriptKind[ScriptKind[\"Deferred\"] = 7] = \"Deferred\";\n })(ScriptKind = ts.ScriptKind || (ts.ScriptKind = {}));\n var ScriptTarget;\n (function (ScriptTarget) {\n ScriptTarget[ScriptTarget[\"ES3\"] = 0] = \"ES3\";\n ScriptTarget[ScriptTarget[\"ES5\"] = 1] = \"ES5\";\n ScriptTarget[ScriptTarget[\"ES2015\"] = 2] = \"ES2015\";\n ScriptTarget[ScriptTarget[\"ES2016\"] = 3] = \"ES2016\";\n ScriptTarget[ScriptTarget[\"ES2017\"] = 4] = \"ES2017\";\n ScriptTarget[ScriptTarget[\"ES2018\"] = 5] = \"ES2018\";\n ScriptTarget[ScriptTarget[\"ES2019\"] = 6] = \"ES2019\";\n ScriptTarget[ScriptTarget[\"ES2020\"] = 7] = \"ES2020\";\n ScriptTarget[ScriptTarget[\"ES2021\"] = 8] = \"ES2021\";\n ScriptTarget[ScriptTarget[\"ESNext\"] = 99] = \"ESNext\";\n ScriptTarget[ScriptTarget[\"JSON\"] = 100] = \"JSON\";\n ScriptTarget[ScriptTarget[\"Latest\"] = 99] = \"Latest\";\n })(ScriptTarget = ts.ScriptTarget || (ts.ScriptTarget = {}));\n var LanguageVariant;\n (function (LanguageVariant) {\n LanguageVariant[LanguageVariant[\"Standard\"] = 0] = \"Standard\";\n LanguageVariant[LanguageVariant[\"JSX\"] = 1] = \"JSX\";\n })(LanguageVariant = ts.LanguageVariant || (ts.LanguageVariant = {}));\n var WatchDirectoryFlags;\n (function (WatchDirectoryFlags) {\n WatchDirectoryFlags[WatchDirectoryFlags[\"None\"] = 0] = \"None\";\n WatchDirectoryFlags[WatchDirectoryFlags[\"Recursive\"] = 1] = \"Recursive\";\n })(WatchDirectoryFlags = ts.WatchDirectoryFlags || (ts.WatchDirectoryFlags = {}));\n /* @internal */\n var CharacterCodes;\n (function (CharacterCodes) {\n CharacterCodes[CharacterCodes[\"nullCharacter\"] = 0] = \"nullCharacter\";\n CharacterCodes[CharacterCodes[\"maxAsciiCharacter\"] = 127] = \"maxAsciiCharacter\";\n CharacterCodes[CharacterCodes[\"lineFeed\"] = 10] = \"lineFeed\";\n CharacterCodes[CharacterCodes[\"carriageReturn\"] = 13] = \"carriageReturn\";\n CharacterCodes[CharacterCodes[\"lineSeparator\"] = 8232] = \"lineSeparator\";\n CharacterCodes[CharacterCodes[\"paragraphSeparator\"] = 8233] = \"paragraphSeparator\";\n CharacterCodes[CharacterCodes[\"nextLine\"] = 133] = \"nextLine\";\n // Unicode 3.0 space characters\n CharacterCodes[CharacterCodes[\"space\"] = 32] = \"space\";\n CharacterCodes[CharacterCodes[\"nonBreakingSpace\"] = 160] = \"nonBreakingSpace\";\n CharacterCodes[CharacterCodes[\"enQuad\"] = 8192] = \"enQuad\";\n CharacterCodes[CharacterCodes[\"emQuad\"] = 8193] = \"emQuad\";\n CharacterCodes[CharacterCodes[\"enSpace\"] = 8194] = \"enSpace\";\n CharacterCodes[CharacterCodes[\"emSpace\"] = 8195] = \"emSpace\";\n CharacterCodes[CharacterCodes[\"threePerEmSpace\"] = 8196] = \"threePerEmSpace\";\n CharacterCodes[CharacterCodes[\"fourPerEmSpace\"] = 8197] = \"fourPerEmSpace\";\n CharacterCodes[CharacterCodes[\"sixPerEmSpace\"] = 8198] = \"sixPerEmSpace\";\n CharacterCodes[CharacterCodes[\"figureSpace\"] = 8199] = \"figureSpace\";\n CharacterCodes[CharacterCodes[\"punctuationSpace\"] = 8200] = \"punctuationSpace\";\n CharacterCodes[CharacterCodes[\"thinSpace\"] = 8201] = \"thinSpace\";\n CharacterCodes[CharacterCodes[\"hairSpace\"] = 8202] = \"hairSpace\";\n CharacterCodes[CharacterCodes[\"zeroWidthSpace\"] = 8203] = \"zeroWidthSpace\";\n CharacterCodes[CharacterCodes[\"narrowNoBreakSpace\"] = 8239] = \"narrowNoBreakSpace\";\n CharacterCodes[CharacterCodes[\"ideographicSpace\"] = 12288] = \"ideographicSpace\";\n CharacterCodes[CharacterCodes[\"mathematicalSpace\"] = 8287] = \"mathematicalSpace\";\n CharacterCodes[CharacterCodes[\"ogham\"] = 5760] = \"ogham\";\n CharacterCodes[CharacterCodes[\"_\"] = 95] = \"_\";\n CharacterCodes[CharacterCodes[\"$\"] = 36] = \"$\";\n CharacterCodes[CharacterCodes[\"_0\"] = 48] = \"_0\";\n CharacterCodes[CharacterCodes[\"_1\"] = 49] = \"_1\";\n CharacterCodes[CharacterCodes[\"_2\"] = 50] = \"_2\";\n CharacterCodes[CharacterCodes[\"_3\"] = 51] = \"_3\";\n CharacterCodes[CharacterCodes[\"_4\"] = 52] = \"_4\";\n CharacterCodes[CharacterCodes[\"_5\"] = 53] = \"_5\";\n CharacterCodes[CharacterCodes[\"_6\"] = 54] = \"_6\";\n CharacterCodes[CharacterCodes[\"_7\"] = 55] = \"_7\";\n CharacterCodes[CharacterCodes[\"_8\"] = 56] = \"_8\";\n CharacterCodes[CharacterCodes[\"_9\"] = 57] = \"_9\";\n CharacterCodes[CharacterCodes[\"a\"] = 97] = \"a\";\n CharacterCodes[CharacterCodes[\"b\"] = 98] = \"b\";\n CharacterCodes[CharacterCodes[\"c\"] = 99] = \"c\";\n CharacterCodes[CharacterCodes[\"d\"] = 100] = \"d\";\n CharacterCodes[CharacterCodes[\"e\"] = 101] = \"e\";\n CharacterCodes[CharacterCodes[\"f\"] = 102] = \"f\";\n CharacterCodes[CharacterCodes[\"g\"] = 103] = \"g\";\n CharacterCodes[CharacterCodes[\"h\"] = 104] = \"h\";\n CharacterCodes[CharacterCodes[\"i\"] = 105] = \"i\";\n CharacterCodes[CharacterCodes[\"j\"] = 106] = \"j\";\n CharacterCodes[CharacterCodes[\"k\"] = 107] = \"k\";\n CharacterCodes[CharacterCodes[\"l\"] = 108] = \"l\";\n CharacterCodes[CharacterCodes[\"m\"] = 109] = \"m\";\n CharacterCodes[CharacterCodes[\"n\"] = 110] = \"n\";\n CharacterCodes[CharacterCodes[\"o\"] = 111] = \"o\";\n CharacterCodes[CharacterCodes[\"p\"] = 112] = \"p\";\n CharacterCodes[CharacterCodes[\"q\"] = 113] = \"q\";\n CharacterCodes[CharacterCodes[\"r\"] = 114] = \"r\";\n CharacterCodes[CharacterCodes[\"s\"] = 115] = \"s\";\n CharacterCodes[CharacterCodes[\"t\"] = 116] = \"t\";\n CharacterCodes[CharacterCodes[\"u\"] = 117] = \"u\";\n CharacterCodes[CharacterCodes[\"v\"] = 118] = \"v\";\n CharacterCodes[CharacterCodes[\"w\"] = 119] = \"w\";\n CharacterCodes[CharacterCodes[\"x\"] = 120] = \"x\";\n CharacterCodes[CharacterCodes[\"y\"] = 121] = \"y\";\n CharacterCodes[CharacterCodes[\"z\"] = 122] = \"z\";\n CharacterCodes[CharacterCodes[\"A\"] = 65] = \"A\";\n CharacterCodes[CharacterCodes[\"B\"] = 66] = \"B\";\n CharacterCodes[CharacterCodes[\"C\"] = 67] = \"C\";\n CharacterCodes[CharacterCodes[\"D\"] = 68] = \"D\";\n CharacterCodes[CharacterCodes[\"E\"] = 69] = \"E\";\n CharacterCodes[CharacterCodes[\"F\"] = 70] = \"F\";\n CharacterCodes[CharacterCodes[\"G\"] = 71] = \"G\";\n CharacterCodes[CharacterCodes[\"H\"] = 72] = \"H\";\n CharacterCodes[CharacterCodes[\"I\"] = 73] = \"I\";\n CharacterCodes[CharacterCodes[\"J\"] = 74] = \"J\";\n CharacterCodes[CharacterCodes[\"K\"] = 75] = \"K\";\n CharacterCodes[CharacterCodes[\"L\"] = 76] = \"L\";\n CharacterCodes[CharacterCodes[\"M\"] = 77] = \"M\";\n CharacterCodes[CharacterCodes[\"N\"] = 78] = \"N\";\n CharacterCodes[CharacterCodes[\"O\"] = 79] = \"O\";\n CharacterCodes[CharacterCodes[\"P\"] = 80] = \"P\";\n CharacterCodes[CharacterCodes[\"Q\"] = 81] = \"Q\";\n CharacterCodes[CharacterCodes[\"R\"] = 82] = \"R\";\n CharacterCodes[CharacterCodes[\"S\"] = 83] = \"S\";\n CharacterCodes[CharacterCodes[\"T\"] = 84] = \"T\";\n CharacterCodes[CharacterCodes[\"U\"] = 85] = \"U\";\n CharacterCodes[CharacterCodes[\"V\"] = 86] = \"V\";\n CharacterCodes[CharacterCodes[\"W\"] = 87] = \"W\";\n CharacterCodes[CharacterCodes[\"X\"] = 88] = \"X\";\n CharacterCodes[CharacterCodes[\"Y\"] = 89] = \"Y\";\n CharacterCodes[CharacterCodes[\"Z\"] = 90] = \"Z\";\n CharacterCodes[CharacterCodes[\"ampersand\"] = 38] = \"ampersand\";\n CharacterCodes[CharacterCodes[\"asterisk\"] = 42] = \"asterisk\";\n CharacterCodes[CharacterCodes[\"at\"] = 64] = \"at\";\n CharacterCodes[CharacterCodes[\"backslash\"] = 92] = \"backslash\";\n CharacterCodes[CharacterCodes[\"backtick\"] = 96] = \"backtick\";\n CharacterCodes[CharacterCodes[\"bar\"] = 124] = \"bar\";\n CharacterCodes[CharacterCodes[\"caret\"] = 94] = \"caret\";\n CharacterCodes[CharacterCodes[\"closeBrace\"] = 125] = \"closeBrace\";\n CharacterCodes[CharacterCodes[\"closeBracket\"] = 93] = \"closeBracket\";\n CharacterCodes[CharacterCodes[\"closeParen\"] = 41] = \"closeParen\";\n CharacterCodes[CharacterCodes[\"colon\"] = 58] = \"colon\";\n CharacterCodes[CharacterCodes[\"comma\"] = 44] = \"comma\";\n CharacterCodes[CharacterCodes[\"dot\"] = 46] = \"dot\";\n CharacterCodes[CharacterCodes[\"doubleQuote\"] = 34] = \"doubleQuote\";\n CharacterCodes[CharacterCodes[\"equals\"] = 61] = \"equals\";\n CharacterCodes[CharacterCodes[\"exclamation\"] = 33] = \"exclamation\";\n CharacterCodes[CharacterCodes[\"greaterThan\"] = 62] = \"greaterThan\";\n CharacterCodes[CharacterCodes[\"hash\"] = 35] = \"hash\";\n CharacterCodes[CharacterCodes[\"lessThan\"] = 60] = \"lessThan\";\n CharacterCodes[CharacterCodes[\"minus\"] = 45] = \"minus\";\n CharacterCodes[CharacterCodes[\"openBrace\"] = 123] = \"openBrace\";\n CharacterCodes[CharacterCodes[\"openBracket\"] = 91] = \"openBracket\";\n CharacterCodes[CharacterCodes[\"openParen\"] = 40] = \"openParen\";\n CharacterCodes[CharacterCodes[\"percent\"] = 37] = \"percent\";\n CharacterCodes[CharacterCodes[\"plus\"] = 43] = \"plus\";\n CharacterCodes[CharacterCodes[\"question\"] = 63] = \"question\";\n CharacterCodes[CharacterCodes[\"semicolon\"] = 59] = \"semicolon\";\n CharacterCodes[CharacterCodes[\"singleQuote\"] = 39] = \"singleQuote\";\n CharacterCodes[CharacterCodes[\"slash\"] = 47] = \"slash\";\n CharacterCodes[CharacterCodes[\"tilde\"] = 126] = \"tilde\";\n CharacterCodes[CharacterCodes[\"backspace\"] = 8] = \"backspace\";\n CharacterCodes[CharacterCodes[\"formFeed\"] = 12] = \"formFeed\";\n CharacterCodes[CharacterCodes[\"byteOrderMark\"] = 65279] = \"byteOrderMark\";\n CharacterCodes[CharacterCodes[\"tab\"] = 9] = \"tab\";\n CharacterCodes[CharacterCodes[\"verticalTab\"] = 11] = \"verticalTab\";\n })(CharacterCodes = ts.CharacterCodes || (ts.CharacterCodes = {}));\n var Extension;\n (function (Extension) {\n Extension[\"Ts\"] = \".ts\";\n Extension[\"Tsx\"] = \".tsx\";\n Extension[\"Dts\"] = \".d.ts\";\n Extension[\"Js\"] = \".js\";\n Extension[\"Jsx\"] = \".jsx\";\n Extension[\"Json\"] = \".json\";\n Extension[\"TsBuildInfo\"] = \".tsbuildinfo\";\n })(Extension = ts.Extension || (ts.Extension = {}));\n /* @internal */\n var TransformFlags;\n (function (TransformFlags) {\n TransformFlags[TransformFlags[\"None\"] = 0] = \"None\";\n // Facts\n // - Flags used to indicate that a node or subtree contains syntax that requires transformation.\n TransformFlags[TransformFlags[\"ContainsTypeScript\"] = 1] = \"ContainsTypeScript\";\n TransformFlags[TransformFlags[\"ContainsJsx\"] = 2] = \"ContainsJsx\";\n TransformFlags[TransformFlags[\"ContainsESNext\"] = 4] = \"ContainsESNext\";\n TransformFlags[TransformFlags[\"ContainsES2021\"] = 8] = \"ContainsES2021\";\n TransformFlags[TransformFlags[\"ContainsES2020\"] = 16] = \"ContainsES2020\";\n TransformFlags[TransformFlags[\"ContainsES2019\"] = 32] = \"ContainsES2019\";\n TransformFlags[TransformFlags[\"ContainsES2018\"] = 64] = \"ContainsES2018\";\n TransformFlags[TransformFlags[\"ContainsES2017\"] = 128] = \"ContainsES2017\";\n TransformFlags[TransformFlags[\"ContainsES2016\"] = 256] = \"ContainsES2016\";\n TransformFlags[TransformFlags[\"ContainsES2015\"] = 512] = \"ContainsES2015\";\n TransformFlags[TransformFlags[\"ContainsGenerator\"] = 1024] = \"ContainsGenerator\";\n TransformFlags[TransformFlags[\"ContainsDestructuringAssignment\"] = 2048] = \"ContainsDestructuringAssignment\";\n // Markers\n // - Flags used to indicate that a subtree contains a specific transformation.\n TransformFlags[TransformFlags[\"ContainsTypeScriptClassSyntax\"] = 4096] = \"ContainsTypeScriptClassSyntax\";\n TransformFlags[TransformFlags[\"ContainsLexicalThis\"] = 8192] = \"ContainsLexicalThis\";\n TransformFlags[TransformFlags[\"ContainsRestOrSpread\"] = 16384] = \"ContainsRestOrSpread\";\n TransformFlags[TransformFlags[\"ContainsObjectRestOrSpread\"] = 32768] = \"ContainsObjectRestOrSpread\";\n TransformFlags[TransformFlags[\"ContainsComputedPropertyName\"] = 65536] = \"ContainsComputedPropertyName\";\n TransformFlags[TransformFlags[\"ContainsBlockScopedBinding\"] = 131072] = \"ContainsBlockScopedBinding\";\n TransformFlags[TransformFlags[\"ContainsBindingPattern\"] = 262144] = \"ContainsBindingPattern\";\n TransformFlags[TransformFlags[\"ContainsYield\"] = 524288] = \"ContainsYield\";\n TransformFlags[TransformFlags[\"ContainsAwait\"] = 1048576] = \"ContainsAwait\";\n TransformFlags[TransformFlags[\"ContainsHoistedDeclarationOrCompletion\"] = 2097152] = \"ContainsHoistedDeclarationOrCompletion\";\n TransformFlags[TransformFlags[\"ContainsDynamicImport\"] = 4194304] = \"ContainsDynamicImport\";\n TransformFlags[TransformFlags[\"ContainsClassFields\"] = 8388608] = \"ContainsClassFields\";\n TransformFlags[TransformFlags[\"ContainsPossibleTopLevelAwait\"] = 16777216] = \"ContainsPossibleTopLevelAwait\";\n TransformFlags[TransformFlags[\"ContainsLexicalSuper\"] = 33554432] = \"ContainsLexicalSuper\";\n TransformFlags[TransformFlags[\"ContainsUpdateExpressionForIdentifier\"] = 67108864] = \"ContainsUpdateExpressionForIdentifier\";\n // Please leave this as 1 << 29.\n // It is the maximum bit we can set before we outgrow the size of a v8 small integer (SMI) on an x86 system.\n // It is a good reminder of how much room we have left\n TransformFlags[TransformFlags[\"HasComputedFlags\"] = 536870912] = \"HasComputedFlags\";\n // Assertions\n // - Bitmasks that are used to assert facts about the syntax of a node and its subtree.\n TransformFlags[TransformFlags[\"AssertTypeScript\"] = 1] = \"AssertTypeScript\";\n TransformFlags[TransformFlags[\"AssertJsx\"] = 2] = \"AssertJsx\";\n TransformFlags[TransformFlags[\"AssertESNext\"] = 4] = \"AssertESNext\";\n TransformFlags[TransformFlags[\"AssertES2021\"] = 8] = \"AssertES2021\";\n TransformFlags[TransformFlags[\"AssertES2020\"] = 16] = \"AssertES2020\";\n TransformFlags[TransformFlags[\"AssertES2019\"] = 32] = \"AssertES2019\";\n TransformFlags[TransformFlags[\"AssertES2018\"] = 64] = \"AssertES2018\";\n TransformFlags[TransformFlags[\"AssertES2017\"] = 128] = \"AssertES2017\";\n TransformFlags[TransformFlags[\"AssertES2016\"] = 256] = \"AssertES2016\";\n TransformFlags[TransformFlags[\"AssertES2015\"] = 512] = \"AssertES2015\";\n TransformFlags[TransformFlags[\"AssertGenerator\"] = 1024] = \"AssertGenerator\";\n TransformFlags[TransformFlags[\"AssertDestructuringAssignment\"] = 2048] = \"AssertDestructuringAssignment\";\n // Scope Exclusions\n // - Bitmasks that exclude flags from propagating out of a specific context\n // into the subtree flags of their container.\n TransformFlags[TransformFlags[\"OuterExpressionExcludes\"] = 536870912] = \"OuterExpressionExcludes\";\n TransformFlags[TransformFlags[\"PropertyAccessExcludes\"] = 536870912] = \"PropertyAccessExcludes\";\n TransformFlags[TransformFlags[\"NodeExcludes\"] = 536870912] = \"NodeExcludes\";\n TransformFlags[TransformFlags[\"ArrowFunctionExcludes\"] = 557748224] = \"ArrowFunctionExcludes\";\n TransformFlags[TransformFlags[\"FunctionExcludes\"] = 591310848] = \"FunctionExcludes\";\n TransformFlags[TransformFlags[\"ConstructorExcludes\"] = 591306752] = \"ConstructorExcludes\";\n TransformFlags[TransformFlags[\"MethodOrAccessorExcludes\"] = 574529536] = \"MethodOrAccessorExcludes\";\n TransformFlags[TransformFlags[\"PropertyExcludes\"] = 570433536] = \"PropertyExcludes\";\n TransformFlags[TransformFlags[\"ClassExcludes\"] = 536940544] = \"ClassExcludes\";\n TransformFlags[TransformFlags[\"ModuleExcludes\"] = 589443072] = \"ModuleExcludes\";\n TransformFlags[TransformFlags[\"TypeExcludes\"] = -2] = \"TypeExcludes\";\n TransformFlags[TransformFlags[\"ObjectLiteralExcludes\"] = 536973312] = \"ObjectLiteralExcludes\";\n TransformFlags[TransformFlags[\"ArrayLiteralOrCallOrNewExcludes\"] = 536887296] = \"ArrayLiteralOrCallOrNewExcludes\";\n TransformFlags[TransformFlags[\"VariableDeclarationListExcludes\"] = 537165824] = \"VariableDeclarationListExcludes\";\n TransformFlags[TransformFlags[\"ParameterExcludes\"] = 536870912] = \"ParameterExcludes\";\n TransformFlags[TransformFlags[\"CatchClauseExcludes\"] = 536903680] = \"CatchClauseExcludes\";\n TransformFlags[TransformFlags[\"BindingPatternExcludes\"] = 536887296] = \"BindingPatternExcludes\";\n TransformFlags[TransformFlags[\"ContainsLexicalThisOrSuper\"] = 33562624] = \"ContainsLexicalThisOrSuper\";\n // Propagating flags\n // - Bitmasks for flags that should propagate from a child\n TransformFlags[TransformFlags[\"PropertyNamePropagatingFlags\"] = 33562624] = \"PropertyNamePropagatingFlags\";\n // Masks\n // - Additional bitmasks\n })(TransformFlags = ts.TransformFlags || (ts.TransformFlags = {}));\n var EmitFlags;\n (function (EmitFlags) {\n EmitFlags[EmitFlags[\"None\"] = 0] = \"None\";\n EmitFlags[EmitFlags[\"SingleLine\"] = 1] = \"SingleLine\";\n EmitFlags[EmitFlags[\"AdviseOnEmitNode\"] = 2] = \"AdviseOnEmitNode\";\n EmitFlags[EmitFlags[\"NoSubstitution\"] = 4] = \"NoSubstitution\";\n EmitFlags[EmitFlags[\"CapturesThis\"] = 8] = \"CapturesThis\";\n EmitFlags[EmitFlags[\"NoLeadingSourceMap\"] = 16] = \"NoLeadingSourceMap\";\n EmitFlags[EmitFlags[\"NoTrailingSourceMap\"] = 32] = \"NoTrailingSourceMap\";\n EmitFlags[EmitFlags[\"NoSourceMap\"] = 48] = \"NoSourceMap\";\n EmitFlags[EmitFlags[\"NoNestedSourceMaps\"] = 64] = \"NoNestedSourceMaps\";\n EmitFlags[EmitFlags[\"NoTokenLeadingSourceMaps\"] = 128] = \"NoTokenLeadingSourceMaps\";\n EmitFlags[EmitFlags[\"NoTokenTrailingSourceMaps\"] = 256] = \"NoTokenTrailingSourceMaps\";\n EmitFlags[EmitFlags[\"NoTokenSourceMaps\"] = 384] = \"NoTokenSourceMaps\";\n EmitFlags[EmitFlags[\"NoLeadingComments\"] = 512] = \"NoLeadingComments\";\n EmitFlags[EmitFlags[\"NoTrailingComments\"] = 1024] = \"NoTrailingComments\";\n EmitFlags[EmitFlags[\"NoComments\"] = 1536] = \"NoComments\";\n EmitFlags[EmitFlags[\"NoNestedComments\"] = 2048] = \"NoNestedComments\";\n EmitFlags[EmitFlags[\"HelperName\"] = 4096] = \"HelperName\";\n EmitFlags[EmitFlags[\"ExportName\"] = 8192] = \"ExportName\";\n EmitFlags[EmitFlags[\"LocalName\"] = 16384] = \"LocalName\";\n EmitFlags[EmitFlags[\"InternalName\"] = 32768] = \"InternalName\";\n EmitFlags[EmitFlags[\"Indented\"] = 65536] = \"Indented\";\n EmitFlags[EmitFlags[\"NoIndentation\"] = 131072] = \"NoIndentation\";\n EmitFlags[EmitFlags[\"AsyncFunctionBody\"] = 262144] = \"AsyncFunctionBody\";\n EmitFlags[EmitFlags[\"ReuseTempVariableScope\"] = 524288] = \"ReuseTempVariableScope\";\n EmitFlags[EmitFlags[\"CustomPrologue\"] = 1048576] = \"CustomPrologue\";\n EmitFlags[EmitFlags[\"NoHoisting\"] = 2097152] = \"NoHoisting\";\n EmitFlags[EmitFlags[\"HasEndOfDeclarationMarker\"] = 4194304] = \"HasEndOfDeclarationMarker\";\n EmitFlags[EmitFlags[\"Iterator\"] = 8388608] = \"Iterator\";\n EmitFlags[EmitFlags[\"NoAsciiEscaping\"] = 16777216] = \"NoAsciiEscaping\";\n /*@internal*/ EmitFlags[EmitFlags[\"TypeScriptClassWrapper\"] = 33554432] = \"TypeScriptClassWrapper\";\n /*@internal*/ EmitFlags[EmitFlags[\"NeverApplyImportHelper\"] = 67108864] = \"NeverApplyImportHelper\";\n /*@internal*/ EmitFlags[EmitFlags[\"IgnoreSourceNewlines\"] = 134217728] = \"IgnoreSourceNewlines\";\n /*@internal*/ EmitFlags[EmitFlags[\"Immutable\"] = 268435456] = \"Immutable\";\n /*@internal*/ EmitFlags[EmitFlags[\"IndirectCall\"] = 536870912] = \"IndirectCall\";\n })(EmitFlags = ts.EmitFlags || (ts.EmitFlags = {}));\n /**\n * Used by the checker, this enum keeps track of external emit helpers that should be type\n * checked.\n */\n /* @internal */\n var ExternalEmitHelpers;\n (function (ExternalEmitHelpers) {\n ExternalEmitHelpers[ExternalEmitHelpers[\"Extends\"] = 1] = \"Extends\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Assign\"] = 2] = \"Assign\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Rest\"] = 4] = \"Rest\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Decorate\"] = 8] = \"Decorate\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Metadata\"] = 16] = \"Metadata\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Param\"] = 32] = \"Param\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Awaiter\"] = 64] = \"Awaiter\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Generator\"] = 128] = \"Generator\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Values\"] = 256] = \"Values\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Read\"] = 512] = \"Read\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"SpreadArray\"] = 1024] = \"SpreadArray\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"Await\"] = 2048] = \"Await\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"AsyncGenerator\"] = 4096] = \"AsyncGenerator\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"AsyncDelegator\"] = 8192] = \"AsyncDelegator\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"AsyncValues\"] = 16384] = \"AsyncValues\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"ExportStar\"] = 32768] = \"ExportStar\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"ImportStar\"] = 65536] = \"ImportStar\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"ImportDefault\"] = 131072] = \"ImportDefault\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"MakeTemplateObject\"] = 262144] = \"MakeTemplateObject\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"ClassPrivateFieldGet\"] = 524288] = \"ClassPrivateFieldGet\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"ClassPrivateFieldSet\"] = 1048576] = \"ClassPrivateFieldSet\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"CreateBinding\"] = 2097152] = \"CreateBinding\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"FirstEmitHelper\"] = 1] = \"FirstEmitHelper\";\n ExternalEmitHelpers[ExternalEmitHelpers[\"LastEmitHelper\"] = 2097152] = \"LastEmitHelper\";\n // Helpers included by ES2015 for..of\n ExternalEmitHelpers[ExternalEmitHelpers[\"ForOfIncludes\"] = 256] = \"ForOfIncludes\";\n // Helpers included by ES2017 for..await..of\n ExternalEmitHelpers[ExternalEmitHelpers[\"ForAwaitOfIncludes\"] = 16384] = \"ForAwaitOfIncludes\";\n // Helpers included by ES2017 async generators\n ExternalEmitHelpers[ExternalEmitHelpers[\"AsyncGeneratorIncludes\"] = 6144] = \"AsyncGeneratorIncludes\";\n // Helpers included by yield* in ES2017 async generators\n ExternalEmitHelpers[ExternalEmitHelpers[\"AsyncDelegatorIncludes\"] = 26624] = \"AsyncDelegatorIncludes\";\n // Helpers included by ES2015 spread\n ExternalEmitHelpers[ExternalEmitHelpers[\"SpreadIncludes\"] = 1536] = \"SpreadIncludes\";\n })(ExternalEmitHelpers = ts.ExternalEmitHelpers || (ts.ExternalEmitHelpers = {}));\n var EmitHint;\n (function (EmitHint) {\n EmitHint[EmitHint[\"SourceFile\"] = 0] = \"SourceFile\";\n EmitHint[EmitHint[\"Expression\"] = 1] = \"Expression\";\n EmitHint[EmitHint[\"IdentifierName\"] = 2] = \"IdentifierName\";\n EmitHint[EmitHint[\"MappedTypeParameter\"] = 3] = \"MappedTypeParameter\";\n EmitHint[EmitHint[\"Unspecified\"] = 4] = \"Unspecified\";\n EmitHint[EmitHint[\"EmbeddedStatement\"] = 5] = \"EmbeddedStatement\";\n EmitHint[EmitHint[\"JsxAttributeValue\"] = 6] = \"JsxAttributeValue\";\n })(EmitHint = ts.EmitHint || (ts.EmitHint = {}));\n var OuterExpressionKinds;\n (function (OuterExpressionKinds) {\n OuterExpressionKinds[OuterExpressionKinds[\"Parentheses\"] = 1] = \"Parentheses\";\n OuterExpressionKinds[OuterExpressionKinds[\"TypeAssertions\"] = 2] = \"TypeAssertions\";\n OuterExpressionKinds[OuterExpressionKinds[\"NonNullAssertions\"] = 4] = \"NonNullAssertions\";\n OuterExpressionKinds[OuterExpressionKinds[\"PartiallyEmittedExpressions\"] = 8] = \"PartiallyEmittedExpressions\";\n OuterExpressionKinds[OuterExpressionKinds[\"Assertions\"] = 6] = \"Assertions\";\n OuterExpressionKinds[OuterExpressionKinds[\"All\"] = 15] = \"All\";\n })(OuterExpressionKinds = ts.OuterExpressionKinds || (ts.OuterExpressionKinds = {}));\n /* @internal */\n var LexicalEnvironmentFlags;\n (function (LexicalEnvironmentFlags) {\n LexicalEnvironmentFlags[LexicalEnvironmentFlags[\"None\"] = 0] = \"None\";\n LexicalEnvironmentFlags[LexicalEnvironmentFlags[\"InParameters\"] = 1] = \"InParameters\";\n LexicalEnvironmentFlags[LexicalEnvironmentFlags[\"VariablesHoistedInParameters\"] = 2] = \"VariablesHoistedInParameters\"; // a temp variable was hoisted while visiting a parameter list\n })(LexicalEnvironmentFlags = ts.LexicalEnvironmentFlags || (ts.LexicalEnvironmentFlags = {}));\n /*@internal*/\n var BundleFileSectionKind;\n (function (BundleFileSectionKind) {\n BundleFileSectionKind[\"Prologue\"] = \"prologue\";\n BundleFileSectionKind[\"EmitHelpers\"] = \"emitHelpers\";\n BundleFileSectionKind[\"NoDefaultLib\"] = \"no-default-lib\";\n BundleFileSectionKind[\"Reference\"] = \"reference\";\n BundleFileSectionKind[\"Type\"] = \"type\";\n BundleFileSectionKind[\"Lib\"] = \"lib\";\n BundleFileSectionKind[\"Prepend\"] = \"prepend\";\n BundleFileSectionKind[\"Text\"] = \"text\";\n BundleFileSectionKind[\"Internal\"] = \"internal\";\n // comments?\n })(BundleFileSectionKind = ts.BundleFileSectionKind || (ts.BundleFileSectionKind = {}));\n var ListFormat;\n (function (ListFormat) {\n ListFormat[ListFormat[\"None\"] = 0] = \"None\";\n // Line separators\n ListFormat[ListFormat[\"SingleLine\"] = 0] = \"SingleLine\";\n ListFormat[ListFormat[\"MultiLine\"] = 1] = \"MultiLine\";\n ListFormat[ListFormat[\"PreserveLines\"] = 2] = \"PreserveLines\";\n ListFormat[ListFormat[\"LinesMask\"] = 3] = \"LinesMask\";\n // Delimiters\n ListFormat[ListFormat[\"NotDelimited\"] = 0] = \"NotDelimited\";\n ListFormat[ListFormat[\"BarDelimited\"] = 4] = \"BarDelimited\";\n ListFormat[ListFormat[\"AmpersandDelimited\"] = 8] = \"AmpersandDelimited\";\n ListFormat[ListFormat[\"CommaDelimited\"] = 16] = \"CommaDelimited\";\n ListFormat[ListFormat[\"AsteriskDelimited\"] = 32] = \"AsteriskDelimited\";\n ListFormat[ListFormat[\"DelimitersMask\"] = 60] = \"DelimitersMask\";\n ListFormat[ListFormat[\"AllowTrailingComma\"] = 64] = \"AllowTrailingComma\";\n // Whitespace\n ListFormat[ListFormat[\"Indented\"] = 128] = \"Indented\";\n ListFormat[ListFormat[\"SpaceBetweenBraces\"] = 256] = \"SpaceBetweenBraces\";\n ListFormat[ListFormat[\"SpaceBetweenSiblings\"] = 512] = \"SpaceBetweenSiblings\";\n // Brackets/Braces\n ListFormat[ListFormat[\"Braces\"] = 1024] = \"Braces\";\n ListFormat[ListFormat[\"Parenthesis\"] = 2048] = \"Parenthesis\";\n ListFormat[ListFormat[\"AngleBrackets\"] = 4096] = \"AngleBrackets\";\n ListFormat[ListFormat[\"SquareBrackets\"] = 8192] = \"SquareBrackets\";\n ListFormat[ListFormat[\"BracketsMask\"] = 15360] = \"BracketsMask\";\n ListFormat[ListFormat[\"OptionalIfUndefined\"] = 16384] = \"OptionalIfUndefined\";\n ListFormat[ListFormat[\"OptionalIfEmpty\"] = 32768] = \"OptionalIfEmpty\";\n ListFormat[ListFormat[\"Optional\"] = 49152] = \"Optional\";\n // Other\n ListFormat[ListFormat[\"PreferNewLine\"] = 65536] = \"PreferNewLine\";\n ListFormat[ListFormat[\"NoTrailingNewLine\"] = 131072] = \"NoTrailingNewLine\";\n ListFormat[ListFormat[\"NoInterveningComments\"] = 262144] = \"NoInterveningComments\";\n ListFormat[ListFormat[\"NoSpaceIfEmpty\"] = 524288] = \"NoSpaceIfEmpty\";\n ListFormat[ListFormat[\"SingleElement\"] = 1048576] = \"SingleElement\";\n ListFormat[ListFormat[\"SpaceAfterList\"] = 2097152] = \"SpaceAfterList\";\n // Precomputed Formats\n ListFormat[ListFormat[\"Modifiers\"] = 262656] = \"Modifiers\";\n ListFormat[ListFormat[\"HeritageClauses\"] = 512] = \"HeritageClauses\";\n ListFormat[ListFormat[\"SingleLineTypeLiteralMembers\"] = 768] = \"SingleLineTypeLiteralMembers\";\n ListFormat[ListFormat[\"MultiLineTypeLiteralMembers\"] = 32897] = \"MultiLineTypeLiteralMembers\";\n ListFormat[ListFormat[\"SingleLineTupleTypeElements\"] = 528] = \"SingleLineTupleTypeElements\";\n ListFormat[ListFormat[\"MultiLineTupleTypeElements\"] = 657] = \"MultiLineTupleTypeElements\";\n ListFormat[ListFormat[\"UnionTypeConstituents\"] = 516] = \"UnionTypeConstituents\";\n ListFormat[ListFormat[\"IntersectionTypeConstituents\"] = 520] = \"IntersectionTypeConstituents\";\n ListFormat[ListFormat[\"ObjectBindingPatternElements\"] = 525136] = \"ObjectBindingPatternElements\";\n ListFormat[ListFormat[\"ArrayBindingPatternElements\"] = 524880] = \"ArrayBindingPatternElements\";\n ListFormat[ListFormat[\"ObjectLiteralExpressionProperties\"] = 526226] = \"ObjectLiteralExpressionProperties\";\n ListFormat[ListFormat[\"ArrayLiteralExpressionElements\"] = 8914] = \"ArrayLiteralExpressionElements\";\n ListFormat[ListFormat[\"CommaListElements\"] = 528] = \"CommaListElements\";\n ListFormat[ListFormat[\"CallExpressionArguments\"] = 2576] = \"CallExpressionArguments\";\n ListFormat[ListFormat[\"NewExpressionArguments\"] = 18960] = \"NewExpressionArguments\";\n ListFormat[ListFormat[\"TemplateExpressionSpans\"] = 262144] = \"TemplateExpressionSpans\";\n ListFormat[ListFormat[\"SingleLineBlockStatements\"] = 768] = \"SingleLineBlockStatements\";\n ListFormat[ListFormat[\"MultiLineBlockStatements\"] = 129] = \"MultiLineBlockStatements\";\n ListFormat[ListFormat[\"VariableDeclarationList\"] = 528] = \"VariableDeclarationList\";\n ListFormat[ListFormat[\"SingleLineFunctionBodyStatements\"] = 768] = \"SingleLineFunctionBodyStatements\";\n ListFormat[ListFormat[\"MultiLineFunctionBodyStatements\"] = 1] = \"MultiLineFunctionBodyStatements\";\n ListFormat[ListFormat[\"ClassHeritageClauses\"] = 0] = \"ClassHeritageClauses\";\n ListFormat[ListFormat[\"ClassMembers\"] = 129] = \"ClassMembers\";\n ListFormat[ListFormat[\"InterfaceMembers\"] = 129] = \"InterfaceMembers\";\n ListFormat[ListFormat[\"EnumMembers\"] = 145] = \"EnumMembers\";\n ListFormat[ListFormat[\"CaseBlockClauses\"] = 129] = \"CaseBlockClauses\";\n ListFormat[ListFormat[\"NamedImportsOrExportsElements\"] = 525136] = \"NamedImportsOrExportsElements\";\n ListFormat[ListFormat[\"JsxElementOrFragmentChildren\"] = 262144] = \"JsxElementOrFragmentChildren\";\n ListFormat[ListFormat[\"JsxElementAttributes\"] = 262656] = \"JsxElementAttributes\";\n ListFormat[ListFormat[\"CaseOrDefaultClauseStatements\"] = 163969] = \"CaseOrDefaultClauseStatements\";\n ListFormat[ListFormat[\"HeritageClauseTypes\"] = 528] = \"HeritageClauseTypes\";\n ListFormat[ListFormat[\"SourceFileStatements\"] = 131073] = \"SourceFileStatements\";\n ListFormat[ListFormat[\"Decorators\"] = 2146305] = \"Decorators\";\n ListFormat[ListFormat[\"TypeArguments\"] = 53776] = \"TypeArguments\";\n ListFormat[ListFormat[\"TypeParameters\"] = 53776] = \"TypeParameters\";\n ListFormat[ListFormat[\"Parameters\"] = 2576] = \"Parameters\";\n ListFormat[ListFormat[\"IndexSignatureParameters\"] = 8848] = \"IndexSignatureParameters\";\n ListFormat[ListFormat[\"JSDocComment\"] = 33] = \"JSDocComment\";\n })(ListFormat = ts.ListFormat || (ts.ListFormat = {}));\n /* @internal */\n var PragmaKindFlags;\n (function (PragmaKindFlags) {\n PragmaKindFlags[PragmaKindFlags[\"None\"] = 0] = \"None\";\n /**\n * Triple slash comment of the form\n * /// \n */\n PragmaKindFlags[PragmaKindFlags[\"TripleSlashXML\"] = 1] = \"TripleSlashXML\";\n /**\n * Single line comment of the form\n * // @pragma-name argval1 argval2\n * or\n * /// @pragma-name argval1 argval2\n */\n PragmaKindFlags[PragmaKindFlags[\"SingleLine\"] = 2] = \"SingleLine\";\n /**\n * Multiline non-jsdoc pragma of the form\n * /* @pragma-name argval1 argval2 * /\n */\n PragmaKindFlags[PragmaKindFlags[\"MultiLine\"] = 4] = \"MultiLine\";\n PragmaKindFlags[PragmaKindFlags[\"All\"] = 7] = \"All\";\n PragmaKindFlags[PragmaKindFlags[\"Default\"] = 7] = \"Default\";\n })(PragmaKindFlags = ts.PragmaKindFlags || (ts.PragmaKindFlags = {}));\n // While not strictly a type, this is here because `PragmaMap` needs to be here to be used with `SourceFile`, and we don't\n // fancy effectively defining it twice, once in value-space and once in type-space\n /* @internal */\n ts.commentPragmas = {\n \"reference\": {\n args: [\n { name: \"types\", optional: true, captureSpan: true },\n { name: \"lib\", optional: true, captureSpan: true },\n { name: \"path\", optional: true, captureSpan: true },\n { name: \"no-default-lib\", optional: true }\n ],\n kind: 1 /* TripleSlashXML */\n },\n \"amd-dependency\": {\n args: [{ name: \"path\" }, { name: \"name\", optional: true }],\n kind: 1 /* TripleSlashXML */\n },\n \"amd-module\": {\n args: [{ name: \"name\" }],\n kind: 1 /* TripleSlashXML */\n },\n \"ts-check\": {\n kind: 2 /* SingleLine */\n },\n \"ts-nocheck\": {\n kind: 2 /* SingleLine */\n },\n \"jsx\": {\n args: [{ name: \"factory\" }],\n kind: 4 /* MultiLine */\n },\n \"jsxfrag\": {\n args: [{ name: \"factory\" }],\n kind: 4 /* MultiLine */\n },\n \"jsximportsource\": {\n args: [{ name: \"factory\" }],\n kind: 4 /* MultiLine */\n },\n \"jsxruntime\": {\n args: [{ name: \"factory\" }],\n kind: 4 /* MultiLine */\n },\n };\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n /**\n * Internally, we represent paths as strings with '/' as the directory separator.\n * When we make system calls (eg: LanguageServiceHost.getDirectory()),\n * we expect the host to correctly handle paths in our specified format.\n */\n ts.directorySeparator = \"/\";\n ts.altDirectorySeparator = \"\\\\\";\n var urlSchemeSeparator = \"://\";\n var backslashRegExp = /\\\\/g;\n //// Path Tests\n /**\n * Determines whether a charCode corresponds to `/` or `\\`.\n */\n function isAnyDirectorySeparator(charCode) {\n return charCode === 47 /* slash */ || charCode === 92 /* backslash */;\n }\n ts.isAnyDirectorySeparator = isAnyDirectorySeparator;\n /**\n * Determines whether a path starts with a URL scheme (e.g. starts with `http://`, `ftp://`, `file://`, etc.).\n */\n function isUrl(path) {\n return getEncodedRootLength(path) < 0;\n }\n ts.isUrl = isUrl;\n /**\n * Determines whether a path is an absolute disk path (e.g. starts with `/`, or a dos path\n * like `c:`, `c:\\` or `c:/`).\n */\n function isRootedDiskPath(path) {\n return getEncodedRootLength(path) > 0;\n }\n ts.isRootedDiskPath = isRootedDiskPath;\n /**\n * Determines whether a path consists only of a path root.\n */\n function isDiskPathRoot(path) {\n var rootLength = getEncodedRootLength(path);\n return rootLength > 0 && rootLength === path.length;\n }\n ts.isDiskPathRoot = isDiskPathRoot;\n /**\n * Determines whether a path starts with an absolute path component (i.e. `/`, `c:/`, `file://`, etc.).\n *\n * ```ts\n * // POSIX\n * pathIsAbsolute(\"/path/to/file.ext\") === true\n * // DOS\n * pathIsAbsolute(\"c:/path/to/file.ext\") === true\n * // URL\n * pathIsAbsolute(\"file:///path/to/file.ext\") === true\n * // Non-absolute\n * pathIsAbsolute(\"path/to/file.ext\") === false\n * pathIsAbsolute(\"./path/to/file.ext\") === false\n * ```\n */\n function pathIsAbsolute(path) {\n return getEncodedRootLength(path) !== 0;\n }\n ts.pathIsAbsolute = pathIsAbsolute;\n /**\n * Determines whether a path starts with a relative path component (i.e. `.` or `..`).\n */\n function pathIsRelative(path) {\n return /^\\.\\.?($|[\\\\/])/.test(path);\n }\n ts.pathIsRelative = pathIsRelative;\n /**\n * Determines whether a path is neither relative nor absolute, e.g. \"path/to/file\".\n * Also known misleadingly as \"non-relative\".\n */\n function pathIsBareSpecifier(path) {\n return !pathIsAbsolute(path) && !pathIsRelative(path);\n }\n ts.pathIsBareSpecifier = pathIsBareSpecifier;\n function hasExtension(fileName) {\n return ts.stringContains(getBaseFileName(fileName), \".\");\n }\n ts.hasExtension = hasExtension;\n function fileExtensionIs(path, extension) {\n return path.length > extension.length && ts.endsWith(path, extension);\n }\n ts.fileExtensionIs = fileExtensionIs;\n function fileExtensionIsOneOf(path, extensions) {\n for (var _i = 0, extensions_1 = extensions; _i < extensions_1.length; _i++) {\n var extension = extensions_1[_i];\n if (fileExtensionIs(path, extension)) {\n return true;\n }\n }\n return false;\n }\n ts.fileExtensionIsOneOf = fileExtensionIsOneOf;\n /**\n * Determines whether a path has a trailing separator (`/` or `\\\\`).\n */\n function hasTrailingDirectorySeparator(path) {\n return path.length > 0 && isAnyDirectorySeparator(path.charCodeAt(path.length - 1));\n }\n ts.hasTrailingDirectorySeparator = hasTrailingDirectorySeparator;\n //// Path Parsing\n function isVolumeCharacter(charCode) {\n return (charCode >= 97 /* a */ && charCode <= 122 /* z */) ||\n (charCode >= 65 /* A */ && charCode <= 90 /* Z */);\n }\n function getFileUrlVolumeSeparatorEnd(url, start) {\n var ch0 = url.charCodeAt(start);\n if (ch0 === 58 /* colon */)\n return start + 1;\n if (ch0 === 37 /* percent */ && url.charCodeAt(start + 1) === 51 /* _3 */) {\n var ch2 = url.charCodeAt(start + 2);\n if (ch2 === 97 /* a */ || ch2 === 65 /* A */)\n return start + 3;\n }\n return -1;\n }\n /**\n * Returns length of the root part of a path or URL (i.e. length of \"/\", \"x:/\", \"//server/share/, file:///user/files\").\n * If the root is part of a URL, the twos-complement of the root length is returned.\n */\n function getEncodedRootLength(path) {\n if (!path)\n return 0;\n var ch0 = path.charCodeAt(0);\n // POSIX or UNC\n if (ch0 === 47 /* slash */ || ch0 === 92 /* backslash */) {\n if (path.charCodeAt(1) !== ch0)\n return 1; // POSIX: \"/\" (or non-normalized \"\\\")\n var p1 = path.indexOf(ch0 === 47 /* slash */ ? ts.directorySeparator : ts.altDirectorySeparator, 2);\n if (p1 < 0)\n return path.length; // UNC: \"//server\" or \"\\\\server\"\n return p1 + 1; // UNC: \"//server/\" or \"\\\\server\\\"\n }\n // DOS\n if (isVolumeCharacter(ch0) && path.charCodeAt(1) === 58 /* colon */) {\n var ch2 = path.charCodeAt(2);\n if (ch2 === 47 /* slash */ || ch2 === 92 /* backslash */)\n return 3; // DOS: \"c:/\" or \"c:\\\"\n if (path.length === 2)\n return 2; // DOS: \"c:\" (but not \"c:d\")\n }\n // URL\n var schemeEnd = path.indexOf(urlSchemeSeparator);\n if (schemeEnd !== -1) {\n var authorityStart = schemeEnd + urlSchemeSeparator.length;\n var authorityEnd = path.indexOf(ts.directorySeparator, authorityStart);\n if (authorityEnd !== -1) { // URL: \"file:///\", \"file://server/\", \"file://server/path\"\n // For local \"file\" URLs, include the leading DOS volume (if present).\n // Per https://www.ietf.org/rfc/rfc1738.txt, a host of \"\" or \"localhost\" is a\n // special case interpreted as \"the machine from which the URL is being interpreted\".\n var scheme = path.slice(0, schemeEnd);\n var authority = path.slice(authorityStart, authorityEnd);\n if (scheme === \"file\" && (authority === \"\" || authority === \"localhost\") &&\n isVolumeCharacter(path.charCodeAt(authorityEnd + 1))) {\n var volumeSeparatorEnd = getFileUrlVolumeSeparatorEnd(path, authorityEnd + 2);\n if (volumeSeparatorEnd !== -1) {\n if (path.charCodeAt(volumeSeparatorEnd) === 47 /* slash */) {\n // URL: \"file:///c:/\", \"file://localhost/c:/\", \"file:///c%3a/\", \"file://localhost/c%3a/\"\n return ~(volumeSeparatorEnd + 1);\n }\n if (volumeSeparatorEnd === path.length) {\n // URL: \"file:///c:\", \"file://localhost/c:\", \"file:///c$3a\", \"file://localhost/c%3a\"\n // but not \"file:///c:d\" or \"file:///c%3ad\"\n return ~volumeSeparatorEnd;\n }\n }\n }\n return ~(authorityEnd + 1); // URL: \"file://server/\", \"http://server/\"\n }\n return ~path.length; // URL: \"file://server\", \"http://server\"\n }\n // relative\n return 0;\n }\n /**\n * Returns length of the root part of a path or URL (i.e. length of \"/\", \"x:/\", \"//server/share/, file:///user/files\").\n *\n * For example:\n * ```ts\n * getRootLength(\"a\") === 0 // \"\"\n * getRootLength(\"/\") === 1 // \"/\"\n * getRootLength(\"c:\") === 2 // \"c:\"\n * getRootLength(\"c:d\") === 0 // \"\"\n * getRootLength(\"c:/\") === 3 // \"c:/\"\n * getRootLength(\"c:\\\\\") === 3 // \"c:\\\\\"\n * getRootLength(\"//server\") === 7 // \"//server\"\n * getRootLength(\"//server/share\") === 8 // \"//server/\"\n * getRootLength(\"\\\\\\\\server\") === 7 // \"\\\\\\\\server\"\n * getRootLength(\"\\\\\\\\server\\\\share\") === 8 // \"\\\\\\\\server\\\\\"\n * getRootLength(\"file:///path\") === 8 // \"file:///\"\n * getRootLength(\"file:///c:\") === 10 // \"file:///c:\"\n * getRootLength(\"file:///c:d\") === 8 // \"file:///\"\n * getRootLength(\"file:///c:/path\") === 11 // \"file:///c:/\"\n * getRootLength(\"file://server\") === 13 // \"file://server\"\n * getRootLength(\"file://server/path\") === 14 // \"file://server/\"\n * getRootLength(\"http://server\") === 13 // \"http://server\"\n * getRootLength(\"http://server/path\") === 14 // \"http://server/\"\n * ```\n */\n function getRootLength(path) {\n var rootLength = getEncodedRootLength(path);\n return rootLength < 0 ? ~rootLength : rootLength;\n }\n ts.getRootLength = getRootLength;\n function getDirectoryPath(path) {\n path = normalizeSlashes(path);\n // If the path provided is itself the root, then return it.\n var rootLength = getRootLength(path);\n if (rootLength === path.length)\n return path;\n // return the leading portion of the path up to the last (non-terminal) directory separator\n // but not including any trailing directory separator.\n path = removeTrailingDirectorySeparator(path);\n return path.slice(0, Math.max(rootLength, path.lastIndexOf(ts.directorySeparator)));\n }\n ts.getDirectoryPath = getDirectoryPath;\n function getBaseFileName(path, extensions, ignoreCase) {\n path = normalizeSlashes(path);\n // if the path provided is itself the root, then it has not file name.\n var rootLength = getRootLength(path);\n if (rootLength === path.length)\n return \"\";\n // return the trailing portion of the path starting after the last (non-terminal) directory\n // separator but not including any trailing directory separator.\n path = removeTrailingDirectorySeparator(path);\n var name = path.slice(Math.max(getRootLength(path), path.lastIndexOf(ts.directorySeparator) + 1));\n var extension = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(name, extensions, ignoreCase) : undefined;\n return extension ? name.slice(0, name.length - extension.length) : name;\n }\n ts.getBaseFileName = getBaseFileName;\n function tryGetExtensionFromPath(path, extension, stringEqualityComparer) {\n if (!ts.startsWith(extension, \".\"))\n extension = \".\" + extension;\n if (path.length >= extension.length && path.charCodeAt(path.length - extension.length) === 46 /* dot */) {\n var pathExtension = path.slice(path.length - extension.length);\n if (stringEqualityComparer(pathExtension, extension)) {\n return pathExtension;\n }\n }\n }\n function getAnyExtensionFromPathWorker(path, extensions, stringEqualityComparer) {\n if (typeof extensions === \"string\") {\n return tryGetExtensionFromPath(path, extensions, stringEqualityComparer) || \"\";\n }\n for (var _i = 0, extensions_2 = extensions; _i < extensions_2.length; _i++) {\n var extension = extensions_2[_i];\n var result = tryGetExtensionFromPath(path, extension, stringEqualityComparer);\n if (result)\n return result;\n }\n return \"\";\n }\n function getAnyExtensionFromPath(path, extensions, ignoreCase) {\n // Retrieves any string from the final \".\" onwards from a base file name.\n // Unlike extensionFromPath, which throws an exception on unrecognized extensions.\n if (extensions) {\n return getAnyExtensionFromPathWorker(removeTrailingDirectorySeparator(path), extensions, ignoreCase ? ts.equateStringsCaseInsensitive : ts.equateStringsCaseSensitive);\n }\n var baseFileName = getBaseFileName(path);\n var extensionIndex = baseFileName.lastIndexOf(\".\");\n if (extensionIndex >= 0) {\n return baseFileName.substring(extensionIndex);\n }\n return \"\";\n }\n ts.getAnyExtensionFromPath = getAnyExtensionFromPath;\n function pathComponents(path, rootLength) {\n var root = path.substring(0, rootLength);\n var rest = path.substring(rootLength).split(ts.directorySeparator);\n if (rest.length && !ts.lastOrUndefined(rest))\n rest.pop();\n return __spreadArray([root], rest, true);\n }\n /**\n * Parse a path into an array containing a root component (at index 0) and zero or more path\n * components (at indices > 0). The result is not normalized.\n * If the path is relative, the root component is `\"\"`.\n * If the path is absolute, the root component includes the first path separator (`/`).\n *\n * ```ts\n * // POSIX\n * getPathComponents(\"/path/to/file.ext\") === [\"/\", \"path\", \"to\", \"file.ext\"]\n * getPathComponents(\"/path/to/\") === [\"/\", \"path\", \"to\"]\n * getPathComponents(\"/\") === [\"/\"]\n * // DOS\n * getPathComponents(\"c:/path/to/file.ext\") === [\"c:/\", \"path\", \"to\", \"file.ext\"]\n * getPathComponents(\"c:/path/to/\") === [\"c:/\", \"path\", \"to\"]\n * getPathComponents(\"c:/\") === [\"c:/\"]\n * getPathComponents(\"c:\") === [\"c:\"]\n * // URL\n * getPathComponents(\"http://typescriptlang.org/path/to/file.ext\") === [\"http://typescriptlang.org/\", \"path\", \"to\", \"file.ext\"]\n * getPathComponents(\"http://typescriptlang.org/path/to/\") === [\"http://typescriptlang.org/\", \"path\", \"to\"]\n * getPathComponents(\"http://typescriptlang.org/\") === [\"http://typescriptlang.org/\"]\n * getPathComponents(\"http://typescriptlang.org\") === [\"http://typescriptlang.org\"]\n * getPathComponents(\"file://server/path/to/file.ext\") === [\"file://server/\", \"path\", \"to\", \"file.ext\"]\n * getPathComponents(\"file://server/path/to/\") === [\"file://server/\", \"path\", \"to\"]\n * getPathComponents(\"file://server/\") === [\"file://server/\"]\n * getPathComponents(\"file://server\") === [\"file://server\"]\n * getPathComponents(\"file:///path/to/file.ext\") === [\"file:///\", \"path\", \"to\", \"file.ext\"]\n * getPathComponents(\"file:///path/to/\") === [\"file:///\", \"path\", \"to\"]\n * getPathComponents(\"file:///\") === [\"file:///\"]\n * getPathComponents(\"file://\") === [\"file://\"]\n */\n function getPathComponents(path, currentDirectory) {\n if (currentDirectory === void 0) { currentDirectory = \"\"; }\n path = combinePaths(currentDirectory, path);\n return pathComponents(path, getRootLength(path));\n }\n ts.getPathComponents = getPathComponents;\n //// Path Formatting\n /**\n * Formats a parsed path consisting of a root component (at index 0) and zero or more path\n * segments (at indices > 0).\n *\n * ```ts\n * getPathFromPathComponents([\"/\", \"path\", \"to\", \"file.ext\"]) === \"/path/to/file.ext\"\n * ```\n */\n function getPathFromPathComponents(pathComponents) {\n if (pathComponents.length === 0)\n return \"\";\n var root = pathComponents[0] && ensureTrailingDirectorySeparator(pathComponents[0]);\n return root + pathComponents.slice(1).join(ts.directorySeparator);\n }\n ts.getPathFromPathComponents = getPathFromPathComponents;\n //// Path Normalization\n /**\n * Normalize path separators, converting `\\` into `/`.\n */\n function normalizeSlashes(path) {\n var index = path.indexOf(\"\\\\\");\n if (index === -1) {\n return path;\n }\n backslashRegExp.lastIndex = index; // prime regex with known position\n return path.replace(backslashRegExp, ts.directorySeparator);\n }\n ts.normalizeSlashes = normalizeSlashes;\n /**\n * Reduce an array of path components to a more simplified path by navigating any\n * `\".\"` or `\"..\"` entries in the path.\n */\n function reducePathComponents(components) {\n if (!ts.some(components))\n return [];\n var reduced = [components[0]];\n for (var i = 1; i < components.length; i++) {\n var component = components[i];\n if (!component)\n continue;\n if (component === \".\")\n continue;\n if (component === \"..\") {\n if (reduced.length > 1) {\n if (reduced[reduced.length - 1] !== \"..\") {\n reduced.pop();\n continue;\n }\n }\n else if (reduced[0])\n continue;\n }\n reduced.push(component);\n }\n return reduced;\n }\n ts.reducePathComponents = reducePathComponents;\n /**\n * Combines paths. If a path is absolute, it replaces any previous path. Relative paths are not simplified.\n *\n * ```ts\n * // Non-rooted\n * combinePaths(\"path\", \"to\", \"file.ext\") === \"path/to/file.ext\"\n * combinePaths(\"path\", \"dir\", \"..\", \"to\", \"file.ext\") === \"path/dir/../to/file.ext\"\n * // POSIX\n * combinePaths(\"/path\", \"to\", \"file.ext\") === \"/path/to/file.ext\"\n * combinePaths(\"/path\", \"/to\", \"file.ext\") === \"/to/file.ext\"\n * // DOS\n * combinePaths(\"c:/path\", \"to\", \"file.ext\") === \"c:/path/to/file.ext\"\n * combinePaths(\"c:/path\", \"c:/to\", \"file.ext\") === \"c:/to/file.ext\"\n * // URL\n * combinePaths(\"file:///path\", \"to\", \"file.ext\") === \"file:///path/to/file.ext\"\n * combinePaths(\"file:///path\", \"file:///to\", \"file.ext\") === \"file:///to/file.ext\"\n * ```\n */\n function combinePaths(path) {\n var paths = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n paths[_i - 1] = arguments[_i];\n }\n if (path)\n path = normalizeSlashes(path);\n for (var _a = 0, paths_1 = paths; _a < paths_1.length; _a++) {\n var relativePath = paths_1[_a];\n if (!relativePath)\n continue;\n relativePath = normalizeSlashes(relativePath);\n if (!path || getRootLength(relativePath) !== 0) {\n path = relativePath;\n }\n else {\n path = ensureTrailingDirectorySeparator(path) + relativePath;\n }\n }\n return path;\n }\n ts.combinePaths = combinePaths;\n /**\n * Combines and resolves paths. If a path is absolute, it replaces any previous path. Any\n * `.` and `..` path components are resolved. Trailing directory separators are preserved.\n *\n * ```ts\n * resolvePath(\"/path\", \"to\", \"file.ext\") === \"path/to/file.ext\"\n * resolvePath(\"/path\", \"to\", \"file.ext/\") === \"path/to/file.ext/\"\n * resolvePath(\"/path\", \"dir\", \"..\", \"to\", \"file.ext\") === \"path/to/file.ext\"\n * ```\n */\n function resolvePath(path) {\n var paths = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n paths[_i - 1] = arguments[_i];\n }\n return normalizePath(ts.some(paths) ? combinePaths.apply(void 0, __spreadArray([path], paths, false)) : normalizeSlashes(path));\n }\n ts.resolvePath = resolvePath;\n /**\n * Parse a path into an array containing a root component (at index 0) and zero or more path\n * components (at indices > 0). The result is normalized.\n * If the path is relative, the root component is `\"\"`.\n * If the path is absolute, the root component includes the first path separator (`/`).\n *\n * ```ts\n * getNormalizedPathComponents(\"to/dir/../file.ext\", \"/path/\") === [\"/\", \"path\", \"to\", \"file.ext\"]\n * ```\n */\n function getNormalizedPathComponents(path, currentDirectory) {\n return reducePathComponents(getPathComponents(path, currentDirectory));\n }\n ts.getNormalizedPathComponents = getNormalizedPathComponents;\n function getNormalizedAbsolutePath(fileName, currentDirectory) {\n return getPathFromPathComponents(getNormalizedPathComponents(fileName, currentDirectory));\n }\n ts.getNormalizedAbsolutePath = getNormalizedAbsolutePath;\n function normalizePath(path) {\n path = normalizeSlashes(path);\n // Most paths don't require normalization\n if (!relativePathSegmentRegExp.test(path)) {\n return path;\n }\n // Some paths only require cleanup of `/./` or leading `./`\n var simplified = path.replace(/\\/\\.\\//g, \"/\").replace(/^\\.\\//, \"\");\n if (simplified !== path) {\n path = simplified;\n if (!relativePathSegmentRegExp.test(path)) {\n return path;\n }\n }\n // Other paths require full normalization\n var normalized = getPathFromPathComponents(reducePathComponents(getPathComponents(path)));\n return normalized && hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(normalized) : normalized;\n }\n ts.normalizePath = normalizePath;\n function getPathWithoutRoot(pathComponents) {\n if (pathComponents.length === 0)\n return \"\";\n return pathComponents.slice(1).join(ts.directorySeparator);\n }\n function getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory) {\n return getPathWithoutRoot(getNormalizedPathComponents(fileName, currentDirectory));\n }\n ts.getNormalizedAbsolutePathWithoutRoot = getNormalizedAbsolutePathWithoutRoot;\n function toPath(fileName, basePath, getCanonicalFileName) {\n var nonCanonicalizedPath = isRootedDiskPath(fileName)\n ? normalizePath(fileName)\n : getNormalizedAbsolutePath(fileName, basePath);\n return getCanonicalFileName(nonCanonicalizedPath);\n }\n ts.toPath = toPath;\n function normalizePathAndParts(path) {\n path = normalizeSlashes(path);\n var _a = reducePathComponents(getPathComponents(path)), root = _a[0], parts = _a.slice(1);\n if (parts.length) {\n var joinedParts = root + parts.join(ts.directorySeparator);\n return { path: hasTrailingDirectorySeparator(path) ? ensureTrailingDirectorySeparator(joinedParts) : joinedParts, parts: parts };\n }\n else {\n return { path: root, parts: parts };\n }\n }\n ts.normalizePathAndParts = normalizePathAndParts;\n function removeTrailingDirectorySeparator(path) {\n if (hasTrailingDirectorySeparator(path)) {\n return path.substr(0, path.length - 1);\n }\n return path;\n }\n ts.removeTrailingDirectorySeparator = removeTrailingDirectorySeparator;\n function ensureTrailingDirectorySeparator(path) {\n if (!hasTrailingDirectorySeparator(path)) {\n return path + ts.directorySeparator;\n }\n return path;\n }\n ts.ensureTrailingDirectorySeparator = ensureTrailingDirectorySeparator;\n /**\n * Ensures a path is either absolute (prefixed with `/` or `c:`) or dot-relative (prefixed\n * with `./` or `../`) so as not to be confused with an unprefixed module name.\n *\n * ```ts\n * ensurePathIsNonModuleName(\"/path/to/file.ext\") === \"/path/to/file.ext\"\n * ensurePathIsNonModuleName(\"./path/to/file.ext\") === \"./path/to/file.ext\"\n * ensurePathIsNonModuleName(\"../path/to/file.ext\") === \"../path/to/file.ext\"\n * ensurePathIsNonModuleName(\"path/to/file.ext\") === \"./path/to/file.ext\"\n * ```\n */\n function ensurePathIsNonModuleName(path) {\n return !pathIsAbsolute(path) && !pathIsRelative(path) ? \"./\" + path : path;\n }\n ts.ensurePathIsNonModuleName = ensurePathIsNonModuleName;\n function changeAnyExtension(path, ext, extensions, ignoreCase) {\n var pathext = extensions !== undefined && ignoreCase !== undefined ? getAnyExtensionFromPath(path, extensions, ignoreCase) : getAnyExtensionFromPath(path);\n return pathext ? path.slice(0, path.length - pathext.length) + (ts.startsWith(ext, \".\") ? ext : \".\" + ext) : path;\n }\n ts.changeAnyExtension = changeAnyExtension;\n //// Path Comparisons\n // check path for these segments: '', '.'. '..'\n var relativePathSegmentRegExp = /(?:\\/\\/)|(?:^|\\/)\\.\\.?(?:$|\\/)/;\n function comparePathsWorker(a, b, componentComparer) {\n if (a === b)\n return 0 /* EqualTo */;\n if (a === undefined)\n return -1 /* LessThan */;\n if (b === undefined)\n return 1 /* GreaterThan */;\n // NOTE: Performance optimization - shortcut if the root segments differ as there would be no\n // need to perform path reduction.\n var aRoot = a.substring(0, getRootLength(a));\n var bRoot = b.substring(0, getRootLength(b));\n var result = ts.compareStringsCaseInsensitive(aRoot, bRoot);\n if (result !== 0 /* EqualTo */) {\n return result;\n }\n // NOTE: Performance optimization - shortcut if there are no relative path segments in\n // the non-root portion of the path\n var aRest = a.substring(aRoot.length);\n var bRest = b.substring(bRoot.length);\n if (!relativePathSegmentRegExp.test(aRest) && !relativePathSegmentRegExp.test(bRest)) {\n return componentComparer(aRest, bRest);\n }\n // The path contains a relative path segment. Normalize the paths and perform a slower component\n // by component comparison.\n var aComponents = reducePathComponents(getPathComponents(a));\n var bComponents = reducePathComponents(getPathComponents(b));\n var sharedLength = Math.min(aComponents.length, bComponents.length);\n for (var i = 1; i < sharedLength; i++) {\n var result_2 = componentComparer(aComponents[i], bComponents[i]);\n if (result_2 !== 0 /* EqualTo */) {\n return result_2;\n }\n }\n return ts.compareValues(aComponents.length, bComponents.length);\n }\n /**\n * Performs a case-sensitive comparison of two paths. Path roots are always compared case-insensitively.\n */\n function comparePathsCaseSensitive(a, b) {\n return comparePathsWorker(a, b, ts.compareStringsCaseSensitive);\n }\n ts.comparePathsCaseSensitive = comparePathsCaseSensitive;\n /**\n * Performs a case-insensitive comparison of two paths.\n */\n function comparePathsCaseInsensitive(a, b) {\n return comparePathsWorker(a, b, ts.compareStringsCaseInsensitive);\n }\n ts.comparePathsCaseInsensitive = comparePathsCaseInsensitive;\n function comparePaths(a, b, currentDirectory, ignoreCase) {\n if (typeof currentDirectory === \"string\") {\n a = combinePaths(currentDirectory, a);\n b = combinePaths(currentDirectory, b);\n }\n else if (typeof currentDirectory === \"boolean\") {\n ignoreCase = currentDirectory;\n }\n return comparePathsWorker(a, b, ts.getStringComparer(ignoreCase));\n }\n ts.comparePaths = comparePaths;\n function containsPath(parent, child, currentDirectory, ignoreCase) {\n if (typeof currentDirectory === \"string\") {\n parent = combinePaths(currentDirectory, parent);\n child = combinePaths(currentDirectory, child);\n }\n else if (typeof currentDirectory === \"boolean\") {\n ignoreCase = currentDirectory;\n }\n if (parent === undefined || child === undefined)\n return false;\n if (parent === child)\n return true;\n var parentComponents = reducePathComponents(getPathComponents(parent));\n var childComponents = reducePathComponents(getPathComponents(child));\n if (childComponents.length < parentComponents.length) {\n return false;\n }\n var componentEqualityComparer = ignoreCase ? ts.equateStringsCaseInsensitive : ts.equateStringsCaseSensitive;\n for (var i = 0; i < parentComponents.length; i++) {\n var equalityComparer = i === 0 ? ts.equateStringsCaseInsensitive : componentEqualityComparer;\n if (!equalityComparer(parentComponents[i], childComponents[i])) {\n return false;\n }\n }\n return true;\n }\n ts.containsPath = containsPath;\n /**\n * Determines whether `fileName` starts with the specified `directoryName` using the provided path canonicalization callback.\n * Comparison is case-sensitive between the canonical paths.\n *\n * Use `containsPath` if file names are not already reduced and absolute.\n */\n function startsWithDirectory(fileName, directoryName, getCanonicalFileName) {\n var canonicalFileName = getCanonicalFileName(fileName);\n var canonicalDirectoryName = getCanonicalFileName(directoryName);\n return ts.startsWith(canonicalFileName, canonicalDirectoryName + \"/\") || ts.startsWith(canonicalFileName, canonicalDirectoryName + \"\\\\\");\n }\n ts.startsWithDirectory = startsWithDirectory;\n //// Relative Paths\n function getPathComponentsRelativeTo(from, to, stringEqualityComparer, getCanonicalFileName) {\n var fromComponents = reducePathComponents(getPathComponents(from));\n var toComponents = reducePathComponents(getPathComponents(to));\n var start;\n for (start = 0; start < fromComponents.length && start < toComponents.length; start++) {\n var fromComponent = getCanonicalFileName(fromComponents[start]);\n var toComponent = getCanonicalFileName(toComponents[start]);\n var comparer = start === 0 ? ts.equateStringsCaseInsensitive : stringEqualityComparer;\n if (!comparer(fromComponent, toComponent))\n break;\n }\n if (start === 0) {\n return toComponents;\n }\n var components = toComponents.slice(start);\n var relative = [];\n for (; start < fromComponents.length; start++) {\n relative.push(\"..\");\n }\n return __spreadArray(__spreadArray([\"\"], relative, true), components, true);\n }\n ts.getPathComponentsRelativeTo = getPathComponentsRelativeTo;\n function getRelativePathFromDirectory(fromDirectory, to, getCanonicalFileNameOrIgnoreCase) {\n ts.Debug.assert((getRootLength(fromDirectory) > 0) === (getRootLength(to) > 0), \"Paths must either both be absolute or both be relative\");\n var getCanonicalFileName = typeof getCanonicalFileNameOrIgnoreCase === \"function\" ? getCanonicalFileNameOrIgnoreCase : ts.identity;\n var ignoreCase = typeof getCanonicalFileNameOrIgnoreCase === \"boolean\" ? getCanonicalFileNameOrIgnoreCase : false;\n var pathComponents = getPathComponentsRelativeTo(fromDirectory, to, ignoreCase ? ts.equateStringsCaseInsensitive : ts.equateStringsCaseSensitive, getCanonicalFileName);\n return getPathFromPathComponents(pathComponents);\n }\n ts.getRelativePathFromDirectory = getRelativePathFromDirectory;\n function convertToRelativePath(absoluteOrRelativePath, basePath, getCanonicalFileName) {\n return !isRootedDiskPath(absoluteOrRelativePath)\n ? absoluteOrRelativePath\n : getRelativePathToDirectoryOrUrl(basePath, absoluteOrRelativePath, basePath, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false);\n }\n ts.convertToRelativePath = convertToRelativePath;\n function getRelativePathFromFile(from, to, getCanonicalFileName) {\n return ensurePathIsNonModuleName(getRelativePathFromDirectory(getDirectoryPath(from), to, getCanonicalFileName));\n }\n ts.getRelativePathFromFile = getRelativePathFromFile;\n function getRelativePathToDirectoryOrUrl(directoryPathOrUrl, relativeOrAbsolutePath, currentDirectory, getCanonicalFileName, isAbsolutePathAnUrl) {\n var pathComponents = getPathComponentsRelativeTo(resolvePath(currentDirectory, directoryPathOrUrl), resolvePath(currentDirectory, relativeOrAbsolutePath), ts.equateStringsCaseSensitive, getCanonicalFileName);\n var firstComponent = pathComponents[0];\n if (isAbsolutePathAnUrl && isRootedDiskPath(firstComponent)) {\n var prefix = firstComponent.charAt(0) === ts.directorySeparator ? \"file://\" : \"file:///\";\n pathComponents[0] = prefix + firstComponent;\n }\n return getPathFromPathComponents(pathComponents);\n }\n ts.getRelativePathToDirectoryOrUrl = getRelativePathToDirectoryOrUrl;\n function forEachAncestorDirectory(directory, callback) {\n while (true) {\n var result = callback(directory);\n if (result !== undefined) {\n return result;\n }\n var parentPath = getDirectoryPath(directory);\n if (parentPath === directory) {\n return undefined;\n }\n directory = parentPath;\n }\n }\n ts.forEachAncestorDirectory = forEachAncestorDirectory;\n function isNodeModulesDirectory(dirPath) {\n return ts.endsWith(dirPath, \"/node_modules\");\n }\n ts.isNodeModulesDirectory = isNodeModulesDirectory;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /**\n * djb2 hashing algorithm\n * http://www.cse.yorku.ca/~oz/hash.html\n */\n /* @internal */\n function generateDjb2Hash(data) {\n var acc = 5381;\n for (var i = 0; i < data.length; i++) {\n acc = ((acc << 5) + acc) + data.charCodeAt(i);\n }\n return acc.toString();\n }\n ts.generateDjb2Hash = generateDjb2Hash;\n /**\n * Set a high stack trace limit to provide more information in case of an error.\n * Called for command-line and server use cases.\n * Not called if TypeScript is used as a library.\n */\n /* @internal */\n function setStackTraceLimit() {\n if (Error.stackTraceLimit < 100) { // Also tests that we won't set the property if it doesn't exist.\n Error.stackTraceLimit = 100;\n }\n }\n ts.setStackTraceLimit = setStackTraceLimit;\n var FileWatcherEventKind;\n (function (FileWatcherEventKind) {\n FileWatcherEventKind[FileWatcherEventKind[\"Created\"] = 0] = \"Created\";\n FileWatcherEventKind[FileWatcherEventKind[\"Changed\"] = 1] = \"Changed\";\n FileWatcherEventKind[FileWatcherEventKind[\"Deleted\"] = 2] = \"Deleted\";\n })(FileWatcherEventKind = ts.FileWatcherEventKind || (ts.FileWatcherEventKind = {}));\n /* @internal */\n var PollingInterval;\n (function (PollingInterval) {\n PollingInterval[PollingInterval[\"High\"] = 2000] = \"High\";\n PollingInterval[PollingInterval[\"Medium\"] = 500] = \"Medium\";\n PollingInterval[PollingInterval[\"Low\"] = 250] = \"Low\";\n })(PollingInterval = ts.PollingInterval || (ts.PollingInterval = {}));\n /* @internal */\n ts.missingFileModifiedTime = new Date(0); // Any subsequent modification will occur after this time\n /* @internal */\n function getModifiedTime(host, fileName) {\n return host.getModifiedTime(fileName) || ts.missingFileModifiedTime;\n }\n ts.getModifiedTime = getModifiedTime;\n function createPollingIntervalBasedLevels(levels) {\n var _a;\n return _a = {},\n _a[PollingInterval.Low] = levels.Low,\n _a[PollingInterval.Medium] = levels.Medium,\n _a[PollingInterval.High] = levels.High,\n _a;\n }\n var defaultChunkLevels = { Low: 32, Medium: 64, High: 256 };\n var pollingChunkSize = createPollingIntervalBasedLevels(defaultChunkLevels);\n /* @internal */\n ts.unchangedPollThresholds = createPollingIntervalBasedLevels(defaultChunkLevels);\n /* @internal */\n function setCustomPollingValues(system) {\n if (!system.getEnvironmentVariable) {\n return;\n }\n var pollingIntervalChanged = setCustomLevels(\"TSC_WATCH_POLLINGINTERVAL\", PollingInterval);\n pollingChunkSize = getCustomPollingBasedLevels(\"TSC_WATCH_POLLINGCHUNKSIZE\", defaultChunkLevels) || pollingChunkSize;\n ts.unchangedPollThresholds = getCustomPollingBasedLevels(\"TSC_WATCH_UNCHANGEDPOLLTHRESHOLDS\", defaultChunkLevels) || ts.unchangedPollThresholds;\n function getLevel(envVar, level) {\n return system.getEnvironmentVariable(envVar + \"_\" + level.toUpperCase());\n }\n function getCustomLevels(baseVariable) {\n var customLevels;\n setCustomLevel(\"Low\");\n setCustomLevel(\"Medium\");\n setCustomLevel(\"High\");\n return customLevels;\n function setCustomLevel(level) {\n var customLevel = getLevel(baseVariable, level);\n if (customLevel) {\n (customLevels || (customLevels = {}))[level] = Number(customLevel);\n }\n }\n }\n function setCustomLevels(baseVariable, levels) {\n var customLevels = getCustomLevels(baseVariable);\n if (customLevels) {\n setLevel(\"Low\");\n setLevel(\"Medium\");\n setLevel(\"High\");\n return true;\n }\n return false;\n function setLevel(level) {\n levels[level] = customLevels[level] || levels[level];\n }\n }\n function getCustomPollingBasedLevels(baseVariable, defaultLevels) {\n var customLevels = getCustomLevels(baseVariable);\n return (pollingIntervalChanged || customLevels) &&\n createPollingIntervalBasedLevels(customLevels ? __assign(__assign({}, defaultLevels), customLevels) : defaultLevels);\n }\n }\n ts.setCustomPollingValues = setCustomPollingValues;\n function pollWatchedFileQueue(host, queue, pollIndex, chunkSize, callbackOnWatchFileStat) {\n var definedValueCopyToIndex = pollIndex;\n // Max visit would be all elements of the queue\n for (var canVisit = queue.length; chunkSize && canVisit; nextPollIndex(), canVisit--) {\n var watchedFile = queue[pollIndex];\n if (!watchedFile) {\n continue;\n }\n else if (watchedFile.isClosed) {\n queue[pollIndex] = undefined;\n continue;\n }\n // Only files polled count towards chunkSize\n chunkSize--;\n var fileChanged = onWatchedFileStat(watchedFile, getModifiedTime(host, watchedFile.fileName));\n if (watchedFile.isClosed) {\n // Closed watcher as part of callback\n queue[pollIndex] = undefined;\n continue;\n }\n callbackOnWatchFileStat === null || callbackOnWatchFileStat === void 0 ? void 0 : callbackOnWatchFileStat(watchedFile, pollIndex, fileChanged);\n // Defragment the queue while we are at it\n if (queue[pollIndex]) {\n // Copy this file to the non hole location\n if (definedValueCopyToIndex < pollIndex) {\n queue[definedValueCopyToIndex] = watchedFile;\n queue[pollIndex] = undefined;\n }\n definedValueCopyToIndex++;\n }\n }\n // Return next poll index\n return pollIndex;\n function nextPollIndex() {\n pollIndex++;\n if (pollIndex === queue.length) {\n if (definedValueCopyToIndex < pollIndex) {\n // There are holes from definedValueCopyToIndex to end of queue, change queue size\n queue.length = definedValueCopyToIndex;\n }\n pollIndex = 0;\n definedValueCopyToIndex = 0;\n }\n }\n }\n /* @internal */\n function createDynamicPriorityPollingWatchFile(host) {\n var watchedFiles = [];\n var changedFilesInLastPoll = [];\n var lowPollingIntervalQueue = createPollingIntervalQueue(PollingInterval.Low);\n var mediumPollingIntervalQueue = createPollingIntervalQueue(PollingInterval.Medium);\n var highPollingIntervalQueue = createPollingIntervalQueue(PollingInterval.High);\n return watchFile;\n function watchFile(fileName, callback, defaultPollingInterval) {\n var file = {\n fileName: fileName,\n callback: callback,\n unchangedPolls: 0,\n mtime: getModifiedTime(host, fileName)\n };\n watchedFiles.push(file);\n addToPollingIntervalQueue(file, defaultPollingInterval);\n return {\n close: function () {\n file.isClosed = true;\n // Remove from watchedFiles\n ts.unorderedRemoveItem(watchedFiles, file);\n // Do not update polling interval queue since that will happen as part of polling\n }\n };\n }\n function createPollingIntervalQueue(pollingInterval) {\n var queue = [];\n queue.pollingInterval = pollingInterval;\n queue.pollIndex = 0;\n queue.pollScheduled = false;\n return queue;\n }\n function pollPollingIntervalQueue(queue) {\n queue.pollIndex = pollQueue(queue, queue.pollingInterval, queue.pollIndex, pollingChunkSize[queue.pollingInterval]);\n // Set the next polling index and timeout\n if (queue.length) {\n scheduleNextPoll(queue.pollingInterval);\n }\n else {\n ts.Debug.assert(queue.pollIndex === 0);\n queue.pollScheduled = false;\n }\n }\n function pollLowPollingIntervalQueue(queue) {\n // Always poll complete list of changedFilesInLastPoll\n pollQueue(changedFilesInLastPoll, PollingInterval.Low, /*pollIndex*/ 0, changedFilesInLastPoll.length);\n // Finally do the actual polling of the queue\n pollPollingIntervalQueue(queue);\n // Schedule poll if there are files in changedFilesInLastPoll but no files in the actual queue\n // as pollPollingIntervalQueue wont schedule for next poll\n if (!queue.pollScheduled && changedFilesInLastPoll.length) {\n scheduleNextPoll(PollingInterval.Low);\n }\n }\n function pollQueue(queue, pollingInterval, pollIndex, chunkSize) {\n return pollWatchedFileQueue(host, queue, pollIndex, chunkSize, onWatchFileStat);\n function onWatchFileStat(watchedFile, pollIndex, fileChanged) {\n if (fileChanged) {\n watchedFile.unchangedPolls = 0;\n // Changed files go to changedFilesInLastPoll queue\n if (queue !== changedFilesInLastPoll) {\n queue[pollIndex] = undefined;\n addChangedFileToLowPollingIntervalQueue(watchedFile);\n }\n }\n else if (watchedFile.unchangedPolls !== ts.unchangedPollThresholds[pollingInterval]) {\n watchedFile.unchangedPolls++;\n }\n else if (queue === changedFilesInLastPoll) {\n // Restart unchangedPollCount for unchanged file and move to low polling interval queue\n watchedFile.unchangedPolls = 1;\n queue[pollIndex] = undefined;\n addToPollingIntervalQueue(watchedFile, PollingInterval.Low);\n }\n else if (pollingInterval !== PollingInterval.High) {\n watchedFile.unchangedPolls++;\n queue[pollIndex] = undefined;\n addToPollingIntervalQueue(watchedFile, pollingInterval === PollingInterval.Low ? PollingInterval.Medium : PollingInterval.High);\n }\n }\n }\n function pollingIntervalQueue(pollingInterval) {\n switch (pollingInterval) {\n case PollingInterval.Low:\n return lowPollingIntervalQueue;\n case PollingInterval.Medium:\n return mediumPollingIntervalQueue;\n case PollingInterval.High:\n return highPollingIntervalQueue;\n }\n }\n function addToPollingIntervalQueue(file, pollingInterval) {\n pollingIntervalQueue(pollingInterval).push(file);\n scheduleNextPollIfNotAlreadyScheduled(pollingInterval);\n }\n function addChangedFileToLowPollingIntervalQueue(file) {\n changedFilesInLastPoll.push(file);\n scheduleNextPollIfNotAlreadyScheduled(PollingInterval.Low);\n }\n function scheduleNextPollIfNotAlreadyScheduled(pollingInterval) {\n if (!pollingIntervalQueue(pollingInterval).pollScheduled) {\n scheduleNextPoll(pollingInterval);\n }\n }\n function scheduleNextPoll(pollingInterval) {\n pollingIntervalQueue(pollingInterval).pollScheduled = host.setTimeout(pollingInterval === PollingInterval.Low ? pollLowPollingIntervalQueue : pollPollingIntervalQueue, pollingInterval, pollingIntervalQueue(pollingInterval));\n }\n }\n ts.createDynamicPriorityPollingWatchFile = createDynamicPriorityPollingWatchFile;\n function createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames) {\n // One file can have multiple watchers\n var fileWatcherCallbacks = ts.createMultiMap();\n var dirWatchers = new ts.Map();\n var toCanonicalName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n return nonPollingWatchFile;\n function nonPollingWatchFile(fileName, callback, _pollingInterval, fallbackOptions) {\n var filePath = toCanonicalName(fileName);\n fileWatcherCallbacks.add(filePath, callback);\n var dirPath = ts.getDirectoryPath(filePath) || \".\";\n var watcher = dirWatchers.get(dirPath) ||\n createDirectoryWatcher(ts.getDirectoryPath(fileName) || \".\", dirPath, fallbackOptions);\n watcher.referenceCount++;\n return {\n close: function () {\n if (watcher.referenceCount === 1) {\n watcher.close();\n dirWatchers.delete(dirPath);\n }\n else {\n watcher.referenceCount--;\n }\n fileWatcherCallbacks.remove(filePath, callback);\n }\n };\n }\n function createDirectoryWatcher(dirName, dirPath, fallbackOptions) {\n var watcher = fsWatch(dirName, 1 /* Directory */, function (_eventName, relativeFileName) {\n // When files are deleted from disk, the triggered \"rename\" event would have a relativefileName of \"undefined\"\n if (!ts.isString(relativeFileName)) {\n return;\n }\n var fileName = ts.getNormalizedAbsolutePath(relativeFileName, dirName);\n // Some applications save a working file via rename operations\n var callbacks = fileName && fileWatcherCallbacks.get(toCanonicalName(fileName));\n if (callbacks) {\n for (var _i = 0, callbacks_1 = callbacks; _i < callbacks_1.length; _i++) {\n var fileCallback = callbacks_1[_i];\n fileCallback(fileName, FileWatcherEventKind.Changed);\n }\n }\n }, \n /*recursive*/ false, PollingInterval.Medium, fallbackOptions);\n watcher.referenceCount = 0;\n dirWatchers.set(dirPath, watcher);\n return watcher;\n }\n }\n function createFixedChunkSizePollingWatchFile(host) {\n var watchedFiles = [];\n var pollIndex = 0;\n var pollScheduled;\n return watchFile;\n function watchFile(fileName, callback) {\n var file = {\n fileName: fileName,\n callback: callback,\n mtime: getModifiedTime(host, fileName)\n };\n watchedFiles.push(file);\n scheduleNextPoll();\n return {\n close: function () {\n file.isClosed = true;\n ts.unorderedRemoveItem(watchedFiles, file);\n }\n };\n }\n function pollQueue() {\n pollScheduled = undefined;\n pollIndex = pollWatchedFileQueue(host, watchedFiles, pollIndex, pollingChunkSize[PollingInterval.Low]);\n scheduleNextPoll();\n }\n function scheduleNextPoll() {\n if (!watchedFiles.length || pollScheduled)\n return;\n pollScheduled = host.setTimeout(pollQueue, PollingInterval.High);\n }\n }\n /* @internal */\n function createSingleFileWatcherPerName(watchFile, useCaseSensitiveFileNames) {\n var cache = new ts.Map();\n var callbacksCache = ts.createMultiMap();\n var toCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n return function (fileName, callback, pollingInterval, options) {\n var path = toCanonicalFileName(fileName);\n var existing = cache.get(path);\n if (existing) {\n existing.refCount++;\n }\n else {\n cache.set(path, {\n watcher: watchFile(fileName, function (fileName, eventKind) { return ts.forEach(callbacksCache.get(path), function (cb) { return cb(fileName, eventKind); }); }, pollingInterval, options),\n refCount: 1\n });\n }\n callbacksCache.add(path, callback);\n return {\n close: function () {\n var watcher = ts.Debug.checkDefined(cache.get(path));\n callbacksCache.remove(path, callback);\n watcher.refCount--;\n if (watcher.refCount)\n return;\n cache.delete(path);\n ts.closeFileWatcherOf(watcher);\n }\n };\n };\n }\n ts.createSingleFileWatcherPerName = createSingleFileWatcherPerName;\n /**\n * Returns true if file status changed\n */\n /*@internal*/\n function onWatchedFileStat(watchedFile, modifiedTime) {\n var oldTime = watchedFile.mtime.getTime();\n var newTime = modifiedTime.getTime();\n if (oldTime !== newTime) {\n watchedFile.mtime = modifiedTime;\n watchedFile.callback(watchedFile.fileName, getFileWatcherEventKind(oldTime, newTime));\n return true;\n }\n return false;\n }\n ts.onWatchedFileStat = onWatchedFileStat;\n /*@internal*/\n function getFileWatcherEventKind(oldTime, newTime) {\n return oldTime === 0\n ? FileWatcherEventKind.Created\n : newTime === 0\n ? FileWatcherEventKind.Deleted\n : FileWatcherEventKind.Changed;\n }\n ts.getFileWatcherEventKind = getFileWatcherEventKind;\n /*@internal*/\n ts.ignoredPaths = [\"/node_modules/.\", \"/.git\", \"/.#\"];\n /*@internal*/\n ts.sysLog = ts.noop; // eslint-disable-line prefer-const\n /*@internal*/\n function setSysLog(logger) {\n ts.sysLog = logger;\n }\n ts.setSysLog = setSysLog;\n /**\n * Watch the directory recursively using host provided method to watch child directories\n * that means if this is recursive watcher, watch the children directories as well\n * (eg on OS that dont support recursive watch using fs.watch use fs.watchFile)\n */\n /*@internal*/\n function createDirectoryWatcherSupportingRecursive(_a) {\n var watchDirectory = _a.watchDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, directoryExists = _a.directoryExists, realpath = _a.realpath, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout;\n var cache = new ts.Map();\n var callbackCache = ts.createMultiMap();\n var cacheToUpdateChildWatches = new ts.Map();\n var timerToUpdateChildWatches;\n var filePathComparer = ts.getStringComparer(!useCaseSensitiveFileNames);\n var toCanonicalFilePath = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n return function (dirName, callback, recursive, options) { return recursive ?\n createDirectoryWatcher(dirName, options, callback) :\n watchDirectory(dirName, callback, recursive, options); };\n /**\n * Create the directory watcher for the dirPath.\n */\n function createDirectoryWatcher(dirName, options, callback) {\n var dirPath = toCanonicalFilePath(dirName);\n var directoryWatcher = cache.get(dirPath);\n if (directoryWatcher) {\n directoryWatcher.refCount++;\n }\n else {\n directoryWatcher = {\n watcher: watchDirectory(dirName, function (fileName) {\n if (isIgnoredPath(fileName, options))\n return;\n if (options === null || options === void 0 ? void 0 : options.synchronousWatchDirectory) {\n // Call the actual callback\n invokeCallbacks(dirPath, fileName);\n // Iterate through existing children and update the watches if needed\n updateChildWatches(dirName, dirPath, options);\n }\n else {\n nonSyncUpdateChildWatches(dirName, dirPath, fileName, options);\n }\n }, /*recursive*/ false, options),\n refCount: 1,\n childWatches: ts.emptyArray\n };\n cache.set(dirPath, directoryWatcher);\n updateChildWatches(dirName, dirPath, options);\n }\n var callbackToAdd = callback && { dirName: dirName, callback: callback };\n if (callbackToAdd) {\n callbackCache.add(dirPath, callbackToAdd);\n }\n return {\n dirName: dirName,\n close: function () {\n var directoryWatcher = ts.Debug.checkDefined(cache.get(dirPath));\n if (callbackToAdd)\n callbackCache.remove(dirPath, callbackToAdd);\n directoryWatcher.refCount--;\n if (directoryWatcher.refCount)\n return;\n cache.delete(dirPath);\n ts.closeFileWatcherOf(directoryWatcher);\n directoryWatcher.childWatches.forEach(ts.closeFileWatcher);\n }\n };\n }\n function invokeCallbacks(dirPath, fileNameOrInvokeMap, fileNames) {\n var fileName;\n var invokeMap;\n if (ts.isString(fileNameOrInvokeMap)) {\n fileName = fileNameOrInvokeMap;\n }\n else {\n invokeMap = fileNameOrInvokeMap;\n }\n // Call the actual callback\n callbackCache.forEach(function (callbacks, rootDirName) {\n var _a;\n if (invokeMap && invokeMap.get(rootDirName) === true)\n return;\n if (rootDirName === dirPath || (ts.startsWith(dirPath, rootDirName) && dirPath[rootDirName.length] === ts.directorySeparator)) {\n if (invokeMap) {\n if (fileNames) {\n var existing = invokeMap.get(rootDirName);\n if (existing) {\n (_a = existing).push.apply(_a, fileNames);\n }\n else {\n invokeMap.set(rootDirName, fileNames.slice());\n }\n }\n else {\n invokeMap.set(rootDirName, true);\n }\n }\n else {\n callbacks.forEach(function (_a) {\n var callback = _a.callback;\n return callback(fileName);\n });\n }\n }\n });\n }\n function nonSyncUpdateChildWatches(dirName, dirPath, fileName, options) {\n // Iterate through existing children and update the watches if needed\n var parentWatcher = cache.get(dirPath);\n if (parentWatcher && directoryExists(dirName)) {\n // Schedule the update and postpone invoke for callbacks\n scheduleUpdateChildWatches(dirName, dirPath, fileName, options);\n return;\n }\n // Call the actual callbacks and remove child watches\n invokeCallbacks(dirPath, fileName);\n removeChildWatches(parentWatcher);\n }\n function scheduleUpdateChildWatches(dirName, dirPath, fileName, options) {\n var existing = cacheToUpdateChildWatches.get(dirPath);\n if (existing) {\n existing.fileNames.push(fileName);\n }\n else {\n cacheToUpdateChildWatches.set(dirPath, { dirName: dirName, options: options, fileNames: [fileName] });\n }\n if (timerToUpdateChildWatches) {\n clearTimeout(timerToUpdateChildWatches);\n timerToUpdateChildWatches = undefined;\n }\n timerToUpdateChildWatches = setTimeout(onTimerToUpdateChildWatches, 1000);\n }\n function onTimerToUpdateChildWatches() {\n timerToUpdateChildWatches = undefined;\n ts.sysLog(\"sysLog:: onTimerToUpdateChildWatches:: \" + cacheToUpdateChildWatches.size);\n var start = ts.timestamp();\n var invokeMap = new ts.Map();\n while (!timerToUpdateChildWatches && cacheToUpdateChildWatches.size) {\n var result = cacheToUpdateChildWatches.entries().next();\n ts.Debug.assert(!result.done);\n var _a = result.value, dirPath = _a[0], _b = _a[1], dirName = _b.dirName, options = _b.options, fileNames = _b.fileNames;\n cacheToUpdateChildWatches.delete(dirPath);\n // Because the child refresh is fresh, we would need to invalidate whole root directory being watched\n // to ensure that all the changes are reflected at this time\n var hasChanges = updateChildWatches(dirName, dirPath, options);\n invokeCallbacks(dirPath, invokeMap, hasChanges ? undefined : fileNames);\n }\n ts.sysLog(\"sysLog:: invokingWatchers:: Elapsed:: \" + (ts.timestamp() - start) + \"ms:: \" + cacheToUpdateChildWatches.size);\n callbackCache.forEach(function (callbacks, rootDirName) {\n var existing = invokeMap.get(rootDirName);\n if (existing) {\n callbacks.forEach(function (_a) {\n var callback = _a.callback, dirName = _a.dirName;\n if (ts.isArray(existing)) {\n existing.forEach(callback);\n }\n else {\n callback(dirName);\n }\n });\n }\n });\n var elapsed = ts.timestamp() - start;\n ts.sysLog(\"sysLog:: Elapsed:: \" + elapsed + \"ms:: onTimerToUpdateChildWatches:: \" + cacheToUpdateChildWatches.size + \" \" + timerToUpdateChildWatches);\n }\n function removeChildWatches(parentWatcher) {\n if (!parentWatcher)\n return;\n var existingChildWatches = parentWatcher.childWatches;\n parentWatcher.childWatches = ts.emptyArray;\n for (var _i = 0, existingChildWatches_1 = existingChildWatches; _i < existingChildWatches_1.length; _i++) {\n var childWatcher = existingChildWatches_1[_i];\n childWatcher.close();\n removeChildWatches(cache.get(toCanonicalFilePath(childWatcher.dirName)));\n }\n }\n function updateChildWatches(parentDir, parentDirPath, options) {\n // Iterate through existing children and update the watches if needed\n var parentWatcher = cache.get(parentDirPath);\n if (!parentWatcher)\n return false;\n var newChildWatches;\n var hasChanges = ts.enumerateInsertsAndDeletes(directoryExists(parentDir) ? ts.mapDefined(getAccessibleSortedChildDirectories(parentDir), function (child) {\n var childFullName = ts.getNormalizedAbsolutePath(child, parentDir);\n // Filter our the symbolic link directories since those arent included in recursive watch\n // which is same behaviour when recursive: true is passed to fs.watch\n return !isIgnoredPath(childFullName, options) && filePathComparer(childFullName, ts.normalizePath(realpath(childFullName))) === 0 /* EqualTo */ ? childFullName : undefined;\n }) : ts.emptyArray, parentWatcher.childWatches, function (child, childWatcher) { return filePathComparer(child, childWatcher.dirName); }, createAndAddChildDirectoryWatcher, ts.closeFileWatcher, addChildDirectoryWatcher);\n parentWatcher.childWatches = newChildWatches || ts.emptyArray;\n return hasChanges;\n /**\n * Create new childDirectoryWatcher and add it to the new ChildDirectoryWatcher list\n */\n function createAndAddChildDirectoryWatcher(childName) {\n var result = createDirectoryWatcher(childName, options);\n addChildDirectoryWatcher(result);\n }\n /**\n * Add child directory watcher to the new ChildDirectoryWatcher list\n */\n function addChildDirectoryWatcher(childWatcher) {\n (newChildWatches || (newChildWatches = [])).push(childWatcher);\n }\n }\n function isIgnoredPath(path, options) {\n return ts.some(ts.ignoredPaths, function (searchPath) { return isInPath(path, searchPath); }) ||\n isIgnoredByWatchOptions(path, options, useCaseSensitiveFileNames, getCurrentDirectory);\n }\n function isInPath(path, searchPath) {\n if (ts.stringContains(path, searchPath))\n return true;\n if (useCaseSensitiveFileNames)\n return false;\n return ts.stringContains(toCanonicalFilePath(path), searchPath);\n }\n }\n ts.createDirectoryWatcherSupportingRecursive = createDirectoryWatcherSupportingRecursive;\n /*@internal*/\n var FileSystemEntryKind;\n (function (FileSystemEntryKind) {\n FileSystemEntryKind[FileSystemEntryKind[\"File\"] = 0] = \"File\";\n FileSystemEntryKind[FileSystemEntryKind[\"Directory\"] = 1] = \"Directory\";\n })(FileSystemEntryKind = ts.FileSystemEntryKind || (ts.FileSystemEntryKind = {}));\n /*@internal*/\n function createFileWatcherCallback(callback) {\n return function (_fileName, eventKind) { return callback(eventKind === FileWatcherEventKind.Changed ? \"change\" : \"rename\", \"\"); };\n }\n ts.createFileWatcherCallback = createFileWatcherCallback;\n function createFsWatchCallbackForFileWatcherCallback(fileName, callback, fileExists) {\n return function (eventName) {\n if (eventName === \"rename\") {\n callback(fileName, fileExists(fileName) ? FileWatcherEventKind.Created : FileWatcherEventKind.Deleted);\n }\n else {\n // Change\n callback(fileName, FileWatcherEventKind.Changed);\n }\n };\n }\n function isIgnoredByWatchOptions(pathToCheck, options, useCaseSensitiveFileNames, getCurrentDirectory) {\n return ((options === null || options === void 0 ? void 0 : options.excludeDirectories) || (options === null || options === void 0 ? void 0 : options.excludeFiles)) && (ts.matchesExclude(pathToCheck, options === null || options === void 0 ? void 0 : options.excludeFiles, useCaseSensitiveFileNames, getCurrentDirectory()) ||\n ts.matchesExclude(pathToCheck, options === null || options === void 0 ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames, getCurrentDirectory()));\n }\n function createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory) {\n return function (eventName, relativeFileName) {\n // In watchDirectory we only care about adding and removing files (when event name is\n // \"rename\"); changes made within files are handled by corresponding fileWatchers (when\n // event name is \"change\")\n if (eventName === \"rename\") {\n // When deleting a file, the passed baseFileName is null\n var fileName = !relativeFileName ? directoryName : ts.normalizePath(ts.combinePaths(directoryName, relativeFileName));\n if (!relativeFileName || !isIgnoredByWatchOptions(fileName, options, useCaseSensitiveFileNames, getCurrentDirectory)) {\n callback(fileName);\n }\n }\n };\n }\n /*@internal*/\n function createSystemWatchFunctions(_a) {\n var pollingWatchFile = _a.pollingWatchFile, getModifiedTime = _a.getModifiedTime, setTimeout = _a.setTimeout, clearTimeout = _a.clearTimeout, fsWatch = _a.fsWatch, fileExists = _a.fileExists, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, getCurrentDirectory = _a.getCurrentDirectory, fsSupportsRecursiveFsWatch = _a.fsSupportsRecursiveFsWatch, directoryExists = _a.directoryExists, getAccessibleSortedChildDirectories = _a.getAccessibleSortedChildDirectories, realpath = _a.realpath, tscWatchFile = _a.tscWatchFile, useNonPollingWatchers = _a.useNonPollingWatchers, tscWatchDirectory = _a.tscWatchDirectory, defaultWatchFileKind = _a.defaultWatchFileKind;\n var dynamicPollingWatchFile;\n var fixedChunkSizePollingWatchFile;\n var nonPollingWatchFile;\n var hostRecursiveDirectoryWatcher;\n return {\n watchFile: watchFile,\n watchDirectory: watchDirectory\n };\n function watchFile(fileName, callback, pollingInterval, options) {\n options = updateOptionsForWatchFile(options, useNonPollingWatchers);\n var watchFileKind = ts.Debug.checkDefined(options.watchFile);\n switch (watchFileKind) {\n case ts.WatchFileKind.FixedPollingInterval:\n return pollingWatchFile(fileName, callback, PollingInterval.Low, /*options*/ undefined);\n case ts.WatchFileKind.PriorityPollingInterval:\n return pollingWatchFile(fileName, callback, pollingInterval, /*options*/ undefined);\n case ts.WatchFileKind.DynamicPriorityPolling:\n return ensureDynamicPollingWatchFile()(fileName, callback, pollingInterval, /*options*/ undefined);\n case ts.WatchFileKind.FixedChunkSizePolling:\n return ensureFixedChunkSizePollingWatchFile()(fileName, callback, /* pollingInterval */ undefined, /*options*/ undefined);\n case ts.WatchFileKind.UseFsEvents:\n return fsWatch(fileName, 0 /* File */, createFsWatchCallbackForFileWatcherCallback(fileName, callback, fileExists), \n /*recursive*/ false, pollingInterval, ts.getFallbackOptions(options));\n case ts.WatchFileKind.UseFsEventsOnParentDirectory:\n if (!nonPollingWatchFile) {\n nonPollingWatchFile = createUseFsEventsOnParentDirectoryWatchFile(fsWatch, useCaseSensitiveFileNames);\n }\n return nonPollingWatchFile(fileName, callback, pollingInterval, ts.getFallbackOptions(options));\n default:\n ts.Debug.assertNever(watchFileKind);\n }\n }\n function ensureDynamicPollingWatchFile() {\n return dynamicPollingWatchFile || (dynamicPollingWatchFile = createDynamicPriorityPollingWatchFile({ getModifiedTime: getModifiedTime, setTimeout: setTimeout }));\n }\n function ensureFixedChunkSizePollingWatchFile() {\n return fixedChunkSizePollingWatchFile || (fixedChunkSizePollingWatchFile = createFixedChunkSizePollingWatchFile({ getModifiedTime: getModifiedTime, setTimeout: setTimeout }));\n }\n function updateOptionsForWatchFile(options, useNonPollingWatchers) {\n if (options && options.watchFile !== undefined)\n return options;\n switch (tscWatchFile) {\n case \"PriorityPollingInterval\":\n // Use polling interval based on priority when create watch using host.watchFile\n return { watchFile: ts.WatchFileKind.PriorityPollingInterval };\n case \"DynamicPriorityPolling\":\n // Use polling interval but change the interval depending on file changes and their default polling interval\n return { watchFile: ts.WatchFileKind.DynamicPriorityPolling };\n case \"UseFsEvents\":\n // Use notifications from FS to watch with falling back to fs.watchFile\n return generateWatchFileOptions(ts.WatchFileKind.UseFsEvents, ts.PollingWatchKind.PriorityInterval, options);\n case \"UseFsEventsWithFallbackDynamicPolling\":\n // Use notifications from FS to watch with falling back to dynamic watch file\n return generateWatchFileOptions(ts.WatchFileKind.UseFsEvents, ts.PollingWatchKind.DynamicPriority, options);\n case \"UseFsEventsOnParentDirectory\":\n useNonPollingWatchers = true;\n // fall through\n default:\n return useNonPollingWatchers ?\n // Use notifications from FS to watch with falling back to fs.watchFile\n generateWatchFileOptions(ts.WatchFileKind.UseFsEventsOnParentDirectory, ts.PollingWatchKind.PriorityInterval, options) :\n // Default to do not use fixed polling interval\n { watchFile: (defaultWatchFileKind === null || defaultWatchFileKind === void 0 ? void 0 : defaultWatchFileKind()) || ts.WatchFileKind.FixedPollingInterval };\n }\n }\n function generateWatchFileOptions(watchFile, fallbackPolling, options) {\n var defaultFallbackPolling = options === null || options === void 0 ? void 0 : options.fallbackPolling;\n return {\n watchFile: watchFile,\n fallbackPolling: defaultFallbackPolling === undefined ?\n fallbackPolling :\n defaultFallbackPolling\n };\n }\n function watchDirectory(directoryName, callback, recursive, options) {\n if (fsSupportsRecursiveFsWatch) {\n return fsWatch(directoryName, 1 /* Directory */, createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), recursive, PollingInterval.Medium, ts.getFallbackOptions(options));\n }\n if (!hostRecursiveDirectoryWatcher) {\n hostRecursiveDirectoryWatcher = createDirectoryWatcherSupportingRecursive({\n useCaseSensitiveFileNames: useCaseSensitiveFileNames,\n getCurrentDirectory: getCurrentDirectory,\n directoryExists: directoryExists,\n getAccessibleSortedChildDirectories: getAccessibleSortedChildDirectories,\n watchDirectory: nonRecursiveWatchDirectory,\n realpath: realpath,\n setTimeout: setTimeout,\n clearTimeout: clearTimeout\n });\n }\n return hostRecursiveDirectoryWatcher(directoryName, callback, recursive, options);\n }\n function nonRecursiveWatchDirectory(directoryName, callback, recursive, options) {\n ts.Debug.assert(!recursive);\n var watchDirectoryOptions = updateOptionsForWatchDirectory(options);\n var watchDirectoryKind = ts.Debug.checkDefined(watchDirectoryOptions.watchDirectory);\n switch (watchDirectoryKind) {\n case ts.WatchDirectoryKind.FixedPollingInterval:\n return pollingWatchFile(directoryName, function () { return callback(directoryName); }, PollingInterval.Medium, \n /*options*/ undefined);\n case ts.WatchDirectoryKind.DynamicPriorityPolling:\n return ensureDynamicPollingWatchFile()(directoryName, function () { return callback(directoryName); }, PollingInterval.Medium, \n /*options*/ undefined);\n case ts.WatchDirectoryKind.FixedChunkSizePolling:\n return ensureFixedChunkSizePollingWatchFile()(directoryName, function () { return callback(directoryName); }, \n /* pollingInterval */ undefined, \n /*options*/ undefined);\n case ts.WatchDirectoryKind.UseFsEvents:\n return fsWatch(directoryName, 1 /* Directory */, createFsWatchCallbackForDirectoryWatcherCallback(directoryName, callback, options, useCaseSensitiveFileNames, getCurrentDirectory), recursive, PollingInterval.Medium, ts.getFallbackOptions(watchDirectoryOptions));\n default:\n ts.Debug.assertNever(watchDirectoryKind);\n }\n }\n function updateOptionsForWatchDirectory(options) {\n if (options && options.watchDirectory !== undefined)\n return options;\n switch (tscWatchDirectory) {\n case \"RecursiveDirectoryUsingFsWatchFile\":\n // Use polling interval based on priority when create watch using host.watchFile\n return { watchDirectory: ts.WatchDirectoryKind.FixedPollingInterval };\n case \"RecursiveDirectoryUsingDynamicPriorityPolling\":\n // Use polling interval but change the interval depending on file changes and their default polling interval\n return { watchDirectory: ts.WatchDirectoryKind.DynamicPriorityPolling };\n default:\n var defaultFallbackPolling = options === null || options === void 0 ? void 0 : options.fallbackPolling;\n return {\n watchDirectory: ts.WatchDirectoryKind.UseFsEvents,\n fallbackPolling: defaultFallbackPolling !== undefined ?\n defaultFallbackPolling :\n undefined\n };\n }\n }\n }\n ts.createSystemWatchFunctions = createSystemWatchFunctions;\n /**\n * patch writefile to create folder before writing the file\n */\n /*@internal*/\n function patchWriteFileEnsuringDirectory(sys) {\n // patch writefile to create folder before writing the file\n var originalWriteFile = sys.writeFile;\n sys.writeFile = function (path, data, writeBom) {\n return ts.writeFileEnsuringDirectories(path, data, !!writeBom, function (path, data, writeByteOrderMark) { return originalWriteFile.call(sys, path, data, writeByteOrderMark); }, function (path) { return sys.createDirectory(path); }, function (path) { return sys.directoryExists(path); });\n };\n }\n ts.patchWriteFileEnsuringDirectory = patchWriteFileEnsuringDirectory;\n function getNodeMajorVersion() {\n if (typeof process === \"undefined\") {\n return undefined;\n }\n var version = process.version;\n if (!version) {\n return undefined;\n }\n var dot = version.indexOf(\".\");\n if (dot === -1) {\n return undefined;\n }\n return parseInt(version.substring(1, dot));\n }\n ts.getNodeMajorVersion = getNodeMajorVersion;\n // TODO: GH#18217 this is used as if it's certainly defined in many places.\n // eslint-disable-next-line prefer-const\n // MONACOCHANGE\n ts.sys = undefined;\n // END MONACOCHANGE\n if (ts.sys && ts.sys.getEnvironmentVariable) {\n setCustomPollingValues(ts.sys);\n ts.Debug.setAssertionLevel(/^development$/i.test(ts.sys.getEnvironmentVariable(\"NODE_ENV\"))\n ? 1 /* Normal */\n : 0 /* None */);\n }\n if (ts.sys && ts.sys.debugMode) {\n ts.Debug.isDebugging = true;\n }\n})(ts || (ts = {}));\n// \n// generated from './diagnosticInformationMap.generated.ts' by 'src/compiler'\n/* @internal */\nvar ts;\n(function (ts) {\n function diag(code, category, key, message, reportsUnnecessary, elidedInCompatabilityPyramid, reportsDeprecated) {\n return { code: code, category: category, key: key, message: message, reportsUnnecessary: reportsUnnecessary, elidedInCompatabilityPyramid: elidedInCompatabilityPyramid, reportsDeprecated: reportsDeprecated };\n }\n ts.Diagnostics = {\n Unterminated_string_literal: diag(1002, ts.DiagnosticCategory.Error, \"Unterminated_string_literal_1002\", \"Unterminated string literal.\"),\n Identifier_expected: diag(1003, ts.DiagnosticCategory.Error, \"Identifier_expected_1003\", \"Identifier expected.\"),\n _0_expected: diag(1005, ts.DiagnosticCategory.Error, \"_0_expected_1005\", \"'{0}' expected.\"),\n A_file_cannot_have_a_reference_to_itself: diag(1006, ts.DiagnosticCategory.Error, \"A_file_cannot_have_a_reference_to_itself_1006\", \"A file cannot have a reference to itself.\"),\n The_parser_expected_to_find_a_to_match_the_token_here: diag(1007, ts.DiagnosticCategory.Error, \"The_parser_expected_to_find_a_to_match_the_token_here_1007\", \"The parser expected to find a '}' to match the '{' token here.\"),\n Trailing_comma_not_allowed: diag(1009, ts.DiagnosticCategory.Error, \"Trailing_comma_not_allowed_1009\", \"Trailing comma not allowed.\"),\n Asterisk_Slash_expected: diag(1010, ts.DiagnosticCategory.Error, \"Asterisk_Slash_expected_1010\", \"'*/' expected.\"),\n An_element_access_expression_should_take_an_argument: diag(1011, ts.DiagnosticCategory.Error, \"An_element_access_expression_should_take_an_argument_1011\", \"An element access expression should take an argument.\"),\n Unexpected_token: diag(1012, ts.DiagnosticCategory.Error, \"Unexpected_token_1012\", \"Unexpected token.\"),\n A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma: diag(1013, ts.DiagnosticCategory.Error, \"A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma_1013\", \"A rest parameter or binding pattern may not have a trailing comma.\"),\n A_rest_parameter_must_be_last_in_a_parameter_list: diag(1014, ts.DiagnosticCategory.Error, \"A_rest_parameter_must_be_last_in_a_parameter_list_1014\", \"A rest parameter must be last in a parameter list.\"),\n Parameter_cannot_have_question_mark_and_initializer: diag(1015, ts.DiagnosticCategory.Error, \"Parameter_cannot_have_question_mark_and_initializer_1015\", \"Parameter cannot have question mark and initializer.\"),\n A_required_parameter_cannot_follow_an_optional_parameter: diag(1016, ts.DiagnosticCategory.Error, \"A_required_parameter_cannot_follow_an_optional_parameter_1016\", \"A required parameter cannot follow an optional parameter.\"),\n An_index_signature_cannot_have_a_rest_parameter: diag(1017, ts.DiagnosticCategory.Error, \"An_index_signature_cannot_have_a_rest_parameter_1017\", \"An index signature cannot have a rest parameter.\"),\n An_index_signature_parameter_cannot_have_an_accessibility_modifier: diag(1018, ts.DiagnosticCategory.Error, \"An_index_signature_parameter_cannot_have_an_accessibility_modifier_1018\", \"An index signature parameter cannot have an accessibility modifier.\"),\n An_index_signature_parameter_cannot_have_a_question_mark: diag(1019, ts.DiagnosticCategory.Error, \"An_index_signature_parameter_cannot_have_a_question_mark_1019\", \"An index signature parameter cannot have a question mark.\"),\n An_index_signature_parameter_cannot_have_an_initializer: diag(1020, ts.DiagnosticCategory.Error, \"An_index_signature_parameter_cannot_have_an_initializer_1020\", \"An index signature parameter cannot have an initializer.\"),\n An_index_signature_must_have_a_type_annotation: diag(1021, ts.DiagnosticCategory.Error, \"An_index_signature_must_have_a_type_annotation_1021\", \"An index signature must have a type annotation.\"),\n An_index_signature_parameter_must_have_a_type_annotation: diag(1022, ts.DiagnosticCategory.Error, \"An_index_signature_parameter_must_have_a_type_annotation_1022\", \"An index signature parameter must have a type annotation.\"),\n readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature: diag(1024, ts.DiagnosticCategory.Error, \"readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature_1024\", \"'readonly' modifier can only appear on a property declaration or index signature.\"),\n An_index_signature_cannot_have_a_trailing_comma: diag(1025, ts.DiagnosticCategory.Error, \"An_index_signature_cannot_have_a_trailing_comma_1025\", \"An index signature cannot have a trailing comma.\"),\n Accessibility_modifier_already_seen: diag(1028, ts.DiagnosticCategory.Error, \"Accessibility_modifier_already_seen_1028\", \"Accessibility modifier already seen.\"),\n _0_modifier_must_precede_1_modifier: diag(1029, ts.DiagnosticCategory.Error, \"_0_modifier_must_precede_1_modifier_1029\", \"'{0}' modifier must precede '{1}' modifier.\"),\n _0_modifier_already_seen: diag(1030, ts.DiagnosticCategory.Error, \"_0_modifier_already_seen_1030\", \"'{0}' modifier already seen.\"),\n _0_modifier_cannot_appear_on_class_elements_of_this_kind: diag(1031, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_class_elements_of_this_kind_1031\", \"'{0}' modifier cannot appear on class elements of this kind.\"),\n super_must_be_followed_by_an_argument_list_or_member_access: diag(1034, ts.DiagnosticCategory.Error, \"super_must_be_followed_by_an_argument_list_or_member_access_1034\", \"'super' must be followed by an argument list or member access.\"),\n Only_ambient_modules_can_use_quoted_names: diag(1035, ts.DiagnosticCategory.Error, \"Only_ambient_modules_can_use_quoted_names_1035\", \"Only ambient modules can use quoted names.\"),\n Statements_are_not_allowed_in_ambient_contexts: diag(1036, ts.DiagnosticCategory.Error, \"Statements_are_not_allowed_in_ambient_contexts_1036\", \"Statements are not allowed in ambient contexts.\"),\n A_declare_modifier_cannot_be_used_in_an_already_ambient_context: diag(1038, ts.DiagnosticCategory.Error, \"A_declare_modifier_cannot_be_used_in_an_already_ambient_context_1038\", \"A 'declare' modifier cannot be used in an already ambient context.\"),\n Initializers_are_not_allowed_in_ambient_contexts: diag(1039, ts.DiagnosticCategory.Error, \"Initializers_are_not_allowed_in_ambient_contexts_1039\", \"Initializers are not allowed in ambient contexts.\"),\n _0_modifier_cannot_be_used_in_an_ambient_context: diag(1040, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_be_used_in_an_ambient_context_1040\", \"'{0}' modifier cannot be used in an ambient context.\"),\n _0_modifier_cannot_be_used_with_a_class_declaration: diag(1041, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_be_used_with_a_class_declaration_1041\", \"'{0}' modifier cannot be used with a class declaration.\"),\n _0_modifier_cannot_be_used_here: diag(1042, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_be_used_here_1042\", \"'{0}' modifier cannot be used here.\"),\n _0_modifier_cannot_appear_on_a_data_property: diag(1043, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_a_data_property_1043\", \"'{0}' modifier cannot appear on a data property.\"),\n _0_modifier_cannot_appear_on_a_module_or_namespace_element: diag(1044, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_a_module_or_namespace_element_1044\", \"'{0}' modifier cannot appear on a module or namespace element.\"),\n A_0_modifier_cannot_be_used_with_an_interface_declaration: diag(1045, ts.DiagnosticCategory.Error, \"A_0_modifier_cannot_be_used_with_an_interface_declaration_1045\", \"A '{0}' modifier cannot be used with an interface declaration.\"),\n Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier: diag(1046, ts.DiagnosticCategory.Error, \"Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier_1046\", \"Top-level declarations in .d.ts files must start with either a 'declare' or 'export' modifier.\"),\n A_rest_parameter_cannot_be_optional: diag(1047, ts.DiagnosticCategory.Error, \"A_rest_parameter_cannot_be_optional_1047\", \"A rest parameter cannot be optional.\"),\n A_rest_parameter_cannot_have_an_initializer: diag(1048, ts.DiagnosticCategory.Error, \"A_rest_parameter_cannot_have_an_initializer_1048\", \"A rest parameter cannot have an initializer.\"),\n A_set_accessor_must_have_exactly_one_parameter: diag(1049, ts.DiagnosticCategory.Error, \"A_set_accessor_must_have_exactly_one_parameter_1049\", \"A 'set' accessor must have exactly one parameter.\"),\n A_set_accessor_cannot_have_an_optional_parameter: diag(1051, ts.DiagnosticCategory.Error, \"A_set_accessor_cannot_have_an_optional_parameter_1051\", \"A 'set' accessor cannot have an optional parameter.\"),\n A_set_accessor_parameter_cannot_have_an_initializer: diag(1052, ts.DiagnosticCategory.Error, \"A_set_accessor_parameter_cannot_have_an_initializer_1052\", \"A 'set' accessor parameter cannot have an initializer.\"),\n A_set_accessor_cannot_have_rest_parameter: diag(1053, ts.DiagnosticCategory.Error, \"A_set_accessor_cannot_have_rest_parameter_1053\", \"A 'set' accessor cannot have rest parameter.\"),\n A_get_accessor_cannot_have_parameters: diag(1054, ts.DiagnosticCategory.Error, \"A_get_accessor_cannot_have_parameters_1054\", \"A 'get' accessor cannot have parameters.\"),\n Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value: diag(1055, ts.DiagnosticCategory.Error, \"Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Prom_1055\", \"Type '{0}' is not a valid async function return type in ES5/ES3 because it does not refer to a Promise-compatible constructor value.\"),\n Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher: diag(1056, ts.DiagnosticCategory.Error, \"Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher_1056\", \"Accessors are only available when targeting ECMAScript 5 and higher.\"),\n An_async_function_or_method_must_have_a_valid_awaitable_return_type: diag(1057, ts.DiagnosticCategory.Error, \"An_async_function_or_method_must_have_a_valid_awaitable_return_type_1057\", \"An async function or method must have a valid awaitable return type.\"),\n The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1058, ts.DiagnosticCategory.Error, \"The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_t_1058\", \"The return type of an async function must either be a valid promise or must not contain a callable 'then' member.\"),\n A_promise_must_have_a_then_method: diag(1059, ts.DiagnosticCategory.Error, \"A_promise_must_have_a_then_method_1059\", \"A promise must have a 'then' method.\"),\n The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback: diag(1060, ts.DiagnosticCategory.Error, \"The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback_1060\", \"The first parameter of the 'then' method of a promise must be a callback.\"),\n Enum_member_must_have_initializer: diag(1061, ts.DiagnosticCategory.Error, \"Enum_member_must_have_initializer_1061\", \"Enum member must have initializer.\"),\n Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method: diag(1062, ts.DiagnosticCategory.Error, \"Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method_1062\", \"Type is referenced directly or indirectly in the fulfillment callback of its own 'then' method.\"),\n An_export_assignment_cannot_be_used_in_a_namespace: diag(1063, ts.DiagnosticCategory.Error, \"An_export_assignment_cannot_be_used_in_a_namespace_1063\", \"An export assignment cannot be used in a namespace.\"),\n The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0: diag(1064, ts.DiagnosticCategory.Error, \"The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_wri_1064\", \"The return type of an async function or method must be the global Promise type. Did you mean to write 'Promise<{0}>'?\"),\n In_ambient_enum_declarations_member_initializer_must_be_constant_expression: diag(1066, ts.DiagnosticCategory.Error, \"In_ambient_enum_declarations_member_initializer_must_be_constant_expression_1066\", \"In ambient enum declarations member initializer must be constant expression.\"),\n Unexpected_token_A_constructor_method_accessor_or_property_was_expected: diag(1068, ts.DiagnosticCategory.Error, \"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068\", \"Unexpected token. A constructor, method, accessor, or property was expected.\"),\n Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces: diag(1069, ts.DiagnosticCategory.Error, \"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069\", \"Unexpected token. A type parameter name was expected without curly braces.\"),\n _0_modifier_cannot_appear_on_a_type_member: diag(1070, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_a_type_member_1070\", \"'{0}' modifier cannot appear on a type member.\"),\n _0_modifier_cannot_appear_on_an_index_signature: diag(1071, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_an_index_signature_1071\", \"'{0}' modifier cannot appear on an index signature.\"),\n A_0_modifier_cannot_be_used_with_an_import_declaration: diag(1079, ts.DiagnosticCategory.Error, \"A_0_modifier_cannot_be_used_with_an_import_declaration_1079\", \"A '{0}' modifier cannot be used with an import declaration.\"),\n Invalid_reference_directive_syntax: diag(1084, ts.DiagnosticCategory.Error, \"Invalid_reference_directive_syntax_1084\", \"Invalid 'reference' directive syntax.\"),\n Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0: diag(1085, ts.DiagnosticCategory.Error, \"Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0_1085\", \"Octal literals are not available when targeting ECMAScript 5 and higher. Use the syntax '{0}'.\"),\n _0_modifier_cannot_appear_on_a_constructor_declaration: diag(1089, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_a_constructor_declaration_1089\", \"'{0}' modifier cannot appear on a constructor declaration.\"),\n _0_modifier_cannot_appear_on_a_parameter: diag(1090, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_appear_on_a_parameter_1090\", \"'{0}' modifier cannot appear on a parameter.\"),\n Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement: diag(1091, ts.DiagnosticCategory.Error, \"Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement_1091\", \"Only a single variable declaration is allowed in a 'for...in' statement.\"),\n Type_parameters_cannot_appear_on_a_constructor_declaration: diag(1092, ts.DiagnosticCategory.Error, \"Type_parameters_cannot_appear_on_a_constructor_declaration_1092\", \"Type parameters cannot appear on a constructor declaration.\"),\n Type_annotation_cannot_appear_on_a_constructor_declaration: diag(1093, ts.DiagnosticCategory.Error, \"Type_annotation_cannot_appear_on_a_constructor_declaration_1093\", \"Type annotation cannot appear on a constructor declaration.\"),\n An_accessor_cannot_have_type_parameters: diag(1094, ts.DiagnosticCategory.Error, \"An_accessor_cannot_have_type_parameters_1094\", \"An accessor cannot have type parameters.\"),\n A_set_accessor_cannot_have_a_return_type_annotation: diag(1095, ts.DiagnosticCategory.Error, \"A_set_accessor_cannot_have_a_return_type_annotation_1095\", \"A 'set' accessor cannot have a return type annotation.\"),\n An_index_signature_must_have_exactly_one_parameter: diag(1096, ts.DiagnosticCategory.Error, \"An_index_signature_must_have_exactly_one_parameter_1096\", \"An index signature must have exactly one parameter.\"),\n _0_list_cannot_be_empty: diag(1097, ts.DiagnosticCategory.Error, \"_0_list_cannot_be_empty_1097\", \"'{0}' list cannot be empty.\"),\n Type_parameter_list_cannot_be_empty: diag(1098, ts.DiagnosticCategory.Error, \"Type_parameter_list_cannot_be_empty_1098\", \"Type parameter list cannot be empty.\"),\n Type_argument_list_cannot_be_empty: diag(1099, ts.DiagnosticCategory.Error, \"Type_argument_list_cannot_be_empty_1099\", \"Type argument list cannot be empty.\"),\n Invalid_use_of_0_in_strict_mode: diag(1100, ts.DiagnosticCategory.Error, \"Invalid_use_of_0_in_strict_mode_1100\", \"Invalid use of '{0}' in strict mode.\"),\n with_statements_are_not_allowed_in_strict_mode: diag(1101, ts.DiagnosticCategory.Error, \"with_statements_are_not_allowed_in_strict_mode_1101\", \"'with' statements are not allowed in strict mode.\"),\n delete_cannot_be_called_on_an_identifier_in_strict_mode: diag(1102, ts.DiagnosticCategory.Error, \"delete_cannot_be_called_on_an_identifier_in_strict_mode_1102\", \"'delete' cannot be called on an identifier in strict mode.\"),\n for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1103, ts.DiagnosticCategory.Error, \"for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1103\", \"'for await' loops are only allowed within async functions and at the top levels of modules.\"),\n A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement: diag(1104, ts.DiagnosticCategory.Error, \"A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement_1104\", \"A 'continue' statement can only be used within an enclosing iteration statement.\"),\n A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement: diag(1105, ts.DiagnosticCategory.Error, \"A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement_1105\", \"A 'break' statement can only be used within an enclosing iteration or switch statement.\"),\n The_left_hand_side_of_a_for_of_statement_may_not_be_async: diag(1106, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_of_statement_may_not_be_async_1106\", \"The left-hand side of a 'for...of' statement may not be 'async'.\"),\n Jump_target_cannot_cross_function_boundary: diag(1107, ts.DiagnosticCategory.Error, \"Jump_target_cannot_cross_function_boundary_1107\", \"Jump target cannot cross function boundary.\"),\n A_return_statement_can_only_be_used_within_a_function_body: diag(1108, ts.DiagnosticCategory.Error, \"A_return_statement_can_only_be_used_within_a_function_body_1108\", \"A 'return' statement can only be used within a function body.\"),\n Expression_expected: diag(1109, ts.DiagnosticCategory.Error, \"Expression_expected_1109\", \"Expression expected.\"),\n Type_expected: diag(1110, ts.DiagnosticCategory.Error, \"Type_expected_1110\", \"Type expected.\"),\n A_default_clause_cannot_appear_more_than_once_in_a_switch_statement: diag(1113, ts.DiagnosticCategory.Error, \"A_default_clause_cannot_appear_more_than_once_in_a_switch_statement_1113\", \"A 'default' clause cannot appear more than once in a 'switch' statement.\"),\n Duplicate_label_0: diag(1114, ts.DiagnosticCategory.Error, \"Duplicate_label_0_1114\", \"Duplicate label '{0}'.\"),\n A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement: diag(1115, ts.DiagnosticCategory.Error, \"A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement_1115\", \"A 'continue' statement can only jump to a label of an enclosing iteration statement.\"),\n A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement: diag(1116, ts.DiagnosticCategory.Error, \"A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement_1116\", \"A 'break' statement can only jump to a label of an enclosing statement.\"),\n An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode: diag(1117, ts.DiagnosticCategory.Error, \"An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode_1117\", \"An object literal cannot have multiple properties with the same name in strict mode.\"),\n An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name: diag(1118, ts.DiagnosticCategory.Error, \"An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name_1118\", \"An object literal cannot have multiple get/set accessors with the same name.\"),\n An_object_literal_cannot_have_property_and_accessor_with_the_same_name: diag(1119, ts.DiagnosticCategory.Error, \"An_object_literal_cannot_have_property_and_accessor_with_the_same_name_1119\", \"An object literal cannot have property and accessor with the same name.\"),\n An_export_assignment_cannot_have_modifiers: diag(1120, ts.DiagnosticCategory.Error, \"An_export_assignment_cannot_have_modifiers_1120\", \"An export assignment cannot have modifiers.\"),\n Octal_literals_are_not_allowed_in_strict_mode: diag(1121, ts.DiagnosticCategory.Error, \"Octal_literals_are_not_allowed_in_strict_mode_1121\", \"Octal literals are not allowed in strict mode.\"),\n Variable_declaration_list_cannot_be_empty: diag(1123, ts.DiagnosticCategory.Error, \"Variable_declaration_list_cannot_be_empty_1123\", \"Variable declaration list cannot be empty.\"),\n Digit_expected: diag(1124, ts.DiagnosticCategory.Error, \"Digit_expected_1124\", \"Digit expected.\"),\n Hexadecimal_digit_expected: diag(1125, ts.DiagnosticCategory.Error, \"Hexadecimal_digit_expected_1125\", \"Hexadecimal digit expected.\"),\n Unexpected_end_of_text: diag(1126, ts.DiagnosticCategory.Error, \"Unexpected_end_of_text_1126\", \"Unexpected end of text.\"),\n Invalid_character: diag(1127, ts.DiagnosticCategory.Error, \"Invalid_character_1127\", \"Invalid character.\"),\n Declaration_or_statement_expected: diag(1128, ts.DiagnosticCategory.Error, \"Declaration_or_statement_expected_1128\", \"Declaration or statement expected.\"),\n Statement_expected: diag(1129, ts.DiagnosticCategory.Error, \"Statement_expected_1129\", \"Statement expected.\"),\n case_or_default_expected: diag(1130, ts.DiagnosticCategory.Error, \"case_or_default_expected_1130\", \"'case' or 'default' expected.\"),\n Property_or_signature_expected: diag(1131, ts.DiagnosticCategory.Error, \"Property_or_signature_expected_1131\", \"Property or signature expected.\"),\n Enum_member_expected: diag(1132, ts.DiagnosticCategory.Error, \"Enum_member_expected_1132\", \"Enum member expected.\"),\n Variable_declaration_expected: diag(1134, ts.DiagnosticCategory.Error, \"Variable_declaration_expected_1134\", \"Variable declaration expected.\"),\n Argument_expression_expected: diag(1135, ts.DiagnosticCategory.Error, \"Argument_expression_expected_1135\", \"Argument expression expected.\"),\n Property_assignment_expected: diag(1136, ts.DiagnosticCategory.Error, \"Property_assignment_expected_1136\", \"Property assignment expected.\"),\n Expression_or_comma_expected: diag(1137, ts.DiagnosticCategory.Error, \"Expression_or_comma_expected_1137\", \"Expression or comma expected.\"),\n Parameter_declaration_expected: diag(1138, ts.DiagnosticCategory.Error, \"Parameter_declaration_expected_1138\", \"Parameter declaration expected.\"),\n Type_parameter_declaration_expected: diag(1139, ts.DiagnosticCategory.Error, \"Type_parameter_declaration_expected_1139\", \"Type parameter declaration expected.\"),\n Type_argument_expected: diag(1140, ts.DiagnosticCategory.Error, \"Type_argument_expected_1140\", \"Type argument expected.\"),\n String_literal_expected: diag(1141, ts.DiagnosticCategory.Error, \"String_literal_expected_1141\", \"String literal expected.\"),\n Line_break_not_permitted_here: diag(1142, ts.DiagnosticCategory.Error, \"Line_break_not_permitted_here_1142\", \"Line break not permitted here.\"),\n or_expected: diag(1144, ts.DiagnosticCategory.Error, \"or_expected_1144\", \"'{' or ';' expected.\"),\n Declaration_expected: diag(1146, ts.DiagnosticCategory.Error, \"Declaration_expected_1146\", \"Declaration expected.\"),\n Import_declarations_in_a_namespace_cannot_reference_a_module: diag(1147, ts.DiagnosticCategory.Error, \"Import_declarations_in_a_namespace_cannot_reference_a_module_1147\", \"Import declarations in a namespace cannot reference a module.\"),\n Cannot_use_imports_exports_or_module_augmentations_when_module_is_none: diag(1148, ts.DiagnosticCategory.Error, \"Cannot_use_imports_exports_or_module_augmentations_when_module_is_none_1148\", \"Cannot use imports, exports, or module augmentations when '--module' is 'none'.\"),\n File_name_0_differs_from_already_included_file_name_1_only_in_casing: diag(1149, ts.DiagnosticCategory.Error, \"File_name_0_differs_from_already_included_file_name_1_only_in_casing_1149\", \"File name '{0}' differs from already included file name '{1}' only in casing.\"),\n const_declarations_must_be_initialized: diag(1155, ts.DiagnosticCategory.Error, \"const_declarations_must_be_initialized_1155\", \"'const' declarations must be initialized.\"),\n const_declarations_can_only_be_declared_inside_a_block: diag(1156, ts.DiagnosticCategory.Error, \"const_declarations_can_only_be_declared_inside_a_block_1156\", \"'const' declarations can only be declared inside a block.\"),\n let_declarations_can_only_be_declared_inside_a_block: diag(1157, ts.DiagnosticCategory.Error, \"let_declarations_can_only_be_declared_inside_a_block_1157\", \"'let' declarations can only be declared inside a block.\"),\n Unterminated_template_literal: diag(1160, ts.DiagnosticCategory.Error, \"Unterminated_template_literal_1160\", \"Unterminated template literal.\"),\n Unterminated_regular_expression_literal: diag(1161, ts.DiagnosticCategory.Error, \"Unterminated_regular_expression_literal_1161\", \"Unterminated regular expression literal.\"),\n An_object_member_cannot_be_declared_optional: diag(1162, ts.DiagnosticCategory.Error, \"An_object_member_cannot_be_declared_optional_1162\", \"An object member cannot be declared optional.\"),\n A_yield_expression_is_only_allowed_in_a_generator_body: diag(1163, ts.DiagnosticCategory.Error, \"A_yield_expression_is_only_allowed_in_a_generator_body_1163\", \"A 'yield' expression is only allowed in a generator body.\"),\n Computed_property_names_are_not_allowed_in_enums: diag(1164, ts.DiagnosticCategory.Error, \"Computed_property_names_are_not_allowed_in_enums_1164\", \"Computed property names are not allowed in enums.\"),\n A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1165, ts.DiagnosticCategory.Error, \"A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_t_1165\", \"A computed property name in an ambient context must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type: diag(1166, ts.DiagnosticCategory.Error, \"A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_1166\", \"A computed property name in a class property declaration must have a simple literal type or a 'unique symbol' type.\"),\n A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1168, ts.DiagnosticCategory.Error, \"A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_ty_1168\", \"A computed property name in a method overload must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1169, ts.DiagnosticCategory.Error, \"A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_1169\", \"A computed property name in an interface must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type: diag(1170, ts.DiagnosticCategory.Error, \"A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type__1170\", \"A computed property name in a type literal must refer to an expression whose type is a literal type or a 'unique symbol' type.\"),\n A_comma_expression_is_not_allowed_in_a_computed_property_name: diag(1171, ts.DiagnosticCategory.Error, \"A_comma_expression_is_not_allowed_in_a_computed_property_name_1171\", \"A comma expression is not allowed in a computed property name.\"),\n extends_clause_already_seen: diag(1172, ts.DiagnosticCategory.Error, \"extends_clause_already_seen_1172\", \"'extends' clause already seen.\"),\n extends_clause_must_precede_implements_clause: diag(1173, ts.DiagnosticCategory.Error, \"extends_clause_must_precede_implements_clause_1173\", \"'extends' clause must precede 'implements' clause.\"),\n Classes_can_only_extend_a_single_class: diag(1174, ts.DiagnosticCategory.Error, \"Classes_can_only_extend_a_single_class_1174\", \"Classes can only extend a single class.\"),\n implements_clause_already_seen: diag(1175, ts.DiagnosticCategory.Error, \"implements_clause_already_seen_1175\", \"'implements' clause already seen.\"),\n Interface_declaration_cannot_have_implements_clause: diag(1176, ts.DiagnosticCategory.Error, \"Interface_declaration_cannot_have_implements_clause_1176\", \"Interface declaration cannot have 'implements' clause.\"),\n Binary_digit_expected: diag(1177, ts.DiagnosticCategory.Error, \"Binary_digit_expected_1177\", \"Binary digit expected.\"),\n Octal_digit_expected: diag(1178, ts.DiagnosticCategory.Error, \"Octal_digit_expected_1178\", \"Octal digit expected.\"),\n Unexpected_token_expected: diag(1179, ts.DiagnosticCategory.Error, \"Unexpected_token_expected_1179\", \"Unexpected token. '{' expected.\"),\n Property_destructuring_pattern_expected: diag(1180, ts.DiagnosticCategory.Error, \"Property_destructuring_pattern_expected_1180\", \"Property destructuring pattern expected.\"),\n Array_element_destructuring_pattern_expected: diag(1181, ts.DiagnosticCategory.Error, \"Array_element_destructuring_pattern_expected_1181\", \"Array element destructuring pattern expected.\"),\n A_destructuring_declaration_must_have_an_initializer: diag(1182, ts.DiagnosticCategory.Error, \"A_destructuring_declaration_must_have_an_initializer_1182\", \"A destructuring declaration must have an initializer.\"),\n An_implementation_cannot_be_declared_in_ambient_contexts: diag(1183, ts.DiagnosticCategory.Error, \"An_implementation_cannot_be_declared_in_ambient_contexts_1183\", \"An implementation cannot be declared in ambient contexts.\"),\n Modifiers_cannot_appear_here: diag(1184, ts.DiagnosticCategory.Error, \"Modifiers_cannot_appear_here_1184\", \"Modifiers cannot appear here.\"),\n Merge_conflict_marker_encountered: diag(1185, ts.DiagnosticCategory.Error, \"Merge_conflict_marker_encountered_1185\", \"Merge conflict marker encountered.\"),\n A_rest_element_cannot_have_an_initializer: diag(1186, ts.DiagnosticCategory.Error, \"A_rest_element_cannot_have_an_initializer_1186\", \"A rest element cannot have an initializer.\"),\n A_parameter_property_may_not_be_declared_using_a_binding_pattern: diag(1187, ts.DiagnosticCategory.Error, \"A_parameter_property_may_not_be_declared_using_a_binding_pattern_1187\", \"A parameter property may not be declared using a binding pattern.\"),\n Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement: diag(1188, ts.DiagnosticCategory.Error, \"Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement_1188\", \"Only a single variable declaration is allowed in a 'for...of' statement.\"),\n The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer: diag(1189, ts.DiagnosticCategory.Error, \"The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer_1189\", \"The variable declaration of a 'for...in' statement cannot have an initializer.\"),\n The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer: diag(1190, ts.DiagnosticCategory.Error, \"The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer_1190\", \"The variable declaration of a 'for...of' statement cannot have an initializer.\"),\n An_import_declaration_cannot_have_modifiers: diag(1191, ts.DiagnosticCategory.Error, \"An_import_declaration_cannot_have_modifiers_1191\", \"An import declaration cannot have modifiers.\"),\n Module_0_has_no_default_export: diag(1192, ts.DiagnosticCategory.Error, \"Module_0_has_no_default_export_1192\", \"Module '{0}' has no default export.\"),\n An_export_declaration_cannot_have_modifiers: diag(1193, ts.DiagnosticCategory.Error, \"An_export_declaration_cannot_have_modifiers_1193\", \"An export declaration cannot have modifiers.\"),\n Export_declarations_are_not_permitted_in_a_namespace: diag(1194, ts.DiagnosticCategory.Error, \"Export_declarations_are_not_permitted_in_a_namespace_1194\", \"Export declarations are not permitted in a namespace.\"),\n export_Asterisk_does_not_re_export_a_default: diag(1195, ts.DiagnosticCategory.Error, \"export_Asterisk_does_not_re_export_a_default_1195\", \"'export *' does not re-export a default.\"),\n Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified: diag(1196, ts.DiagnosticCategory.Error, \"Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified_1196\", \"Catch clause variable type annotation must be 'any' or 'unknown' if specified.\"),\n Catch_clause_variable_cannot_have_an_initializer: diag(1197, ts.DiagnosticCategory.Error, \"Catch_clause_variable_cannot_have_an_initializer_1197\", \"Catch clause variable cannot have an initializer.\"),\n An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive: diag(1198, ts.DiagnosticCategory.Error, \"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198\", \"An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive.\"),\n Unterminated_Unicode_escape_sequence: diag(1199, ts.DiagnosticCategory.Error, \"Unterminated_Unicode_escape_sequence_1199\", \"Unterminated Unicode escape sequence.\"),\n Line_terminator_not_permitted_before_arrow: diag(1200, ts.DiagnosticCategory.Error, \"Line_terminator_not_permitted_before_arrow_1200\", \"Line terminator not permitted before arrow.\"),\n Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead: diag(1202, ts.DiagnosticCategory.Error, \"Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_1202\", \"Import assignment cannot be used when targeting ECMAScript modules. Consider using 'import * as ns from \\\"mod\\\"', 'import {a} from \\\"mod\\\"', 'import d from \\\"mod\\\"', or another module format instead.\"),\n Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead: diag(1203, ts.DiagnosticCategory.Error, \"Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or__1203\", \"Export assignment cannot be used when targeting ECMAScript modules. Consider using 'export default' or another module format instead.\"),\n Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type: diag(1205, ts.DiagnosticCategory.Error, \"Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type_1205\", \"Re-exporting a type when the '--isolatedModules' flag is provided requires using 'export type'.\"),\n Decorators_are_not_valid_here: diag(1206, ts.DiagnosticCategory.Error, \"Decorators_are_not_valid_here_1206\", \"Decorators are not valid here.\"),\n Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name: diag(1207, ts.DiagnosticCategory.Error, \"Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name_1207\", \"Decorators cannot be applied to multiple get/set accessors of the same name.\"),\n _0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module: diag(1208, ts.DiagnosticCategory.Error, \"_0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_imp_1208\", \"'{0}' cannot be compiled under '--isolatedModules' because it is considered a global script file. Add an import, export, or an empty 'export {}' statement to make it a module.\"),\n Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode: diag(1210, ts.DiagnosticCategory.Error, \"Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of__1210\", \"Code contained in a class is evaluated in JavaScript's strict mode which does not allow this use of '{0}'. For more information, see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode.\"),\n A_class_declaration_without_the_default_modifier_must_have_a_name: diag(1211, ts.DiagnosticCategory.Error, \"A_class_declaration_without_the_default_modifier_must_have_a_name_1211\", \"A class declaration without the 'default' modifier must have a name.\"),\n Identifier_expected_0_is_a_reserved_word_in_strict_mode: diag(1212, ts.DiagnosticCategory.Error, \"Identifier_expected_0_is_a_reserved_word_in_strict_mode_1212\", \"Identifier expected. '{0}' is a reserved word in strict mode.\"),\n Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: diag(1213, ts.DiagnosticCategory.Error, \"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_stric_1213\", \"Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode.\"),\n Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode: diag(1214, ts.DiagnosticCategory.Error, \"Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode_1214\", \"Identifier expected. '{0}' is a reserved word in strict mode. Modules are automatically in strict mode.\"),\n Invalid_use_of_0_Modules_are_automatically_in_strict_mode: diag(1215, ts.DiagnosticCategory.Error, \"Invalid_use_of_0_Modules_are_automatically_in_strict_mode_1215\", \"Invalid use of '{0}'. Modules are automatically in strict mode.\"),\n Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules: diag(1216, ts.DiagnosticCategory.Error, \"Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules_1216\", \"Identifier expected. '__esModule' is reserved as an exported marker when transforming ECMAScript modules.\"),\n Export_assignment_is_not_supported_when_module_flag_is_system: diag(1218, ts.DiagnosticCategory.Error, \"Export_assignment_is_not_supported_when_module_flag_is_system_1218\", \"Export assignment is not supported when '--module' flag is 'system'.\"),\n Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning: diag(1219, ts.DiagnosticCategory.Error, \"Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_t_1219\", \"Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' option in your 'tsconfig' or 'jsconfig' to remove this warning.\"),\n Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher: diag(1220, ts.DiagnosticCategory.Error, \"Generators_are_only_available_when_targeting_ECMAScript_2015_or_higher_1220\", \"Generators are only available when targeting ECMAScript 2015 or higher.\"),\n Generators_are_not_allowed_in_an_ambient_context: diag(1221, ts.DiagnosticCategory.Error, \"Generators_are_not_allowed_in_an_ambient_context_1221\", \"Generators are not allowed in an ambient context.\"),\n An_overload_signature_cannot_be_declared_as_a_generator: diag(1222, ts.DiagnosticCategory.Error, \"An_overload_signature_cannot_be_declared_as_a_generator_1222\", \"An overload signature cannot be declared as a generator.\"),\n _0_tag_already_specified: diag(1223, ts.DiagnosticCategory.Error, \"_0_tag_already_specified_1223\", \"'{0}' tag already specified.\"),\n Signature_0_must_be_a_type_predicate: diag(1224, ts.DiagnosticCategory.Error, \"Signature_0_must_be_a_type_predicate_1224\", \"Signature '{0}' must be a type predicate.\"),\n Cannot_find_parameter_0: diag(1225, ts.DiagnosticCategory.Error, \"Cannot_find_parameter_0_1225\", \"Cannot find parameter '{0}'.\"),\n Type_predicate_0_is_not_assignable_to_1: diag(1226, ts.DiagnosticCategory.Error, \"Type_predicate_0_is_not_assignable_to_1_1226\", \"Type predicate '{0}' is not assignable to '{1}'.\"),\n Parameter_0_is_not_in_the_same_position_as_parameter_1: diag(1227, ts.DiagnosticCategory.Error, \"Parameter_0_is_not_in_the_same_position_as_parameter_1_1227\", \"Parameter '{0}' is not in the same position as parameter '{1}'.\"),\n A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods: diag(1228, ts.DiagnosticCategory.Error, \"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228\", \"A type predicate is only allowed in return type position for functions and methods.\"),\n A_type_predicate_cannot_reference_a_rest_parameter: diag(1229, ts.DiagnosticCategory.Error, \"A_type_predicate_cannot_reference_a_rest_parameter_1229\", \"A type predicate cannot reference a rest parameter.\"),\n A_type_predicate_cannot_reference_element_0_in_a_binding_pattern: diag(1230, ts.DiagnosticCategory.Error, \"A_type_predicate_cannot_reference_element_0_in_a_binding_pattern_1230\", \"A type predicate cannot reference element '{0}' in a binding pattern.\"),\n An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration: diag(1231, ts.DiagnosticCategory.Error, \"An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration_1231\", \"An export assignment must be at the top level of a file or module declaration.\"),\n An_import_declaration_can_only_be_used_in_a_namespace_or_module: diag(1232, ts.DiagnosticCategory.Error, \"An_import_declaration_can_only_be_used_in_a_namespace_or_module_1232\", \"An import declaration can only be used in a namespace or module.\"),\n An_export_declaration_can_only_be_used_in_a_module: diag(1233, ts.DiagnosticCategory.Error, \"An_export_declaration_can_only_be_used_in_a_module_1233\", \"An export declaration can only be used in a module.\"),\n An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file: diag(1234, ts.DiagnosticCategory.Error, \"An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file_1234\", \"An ambient module declaration is only allowed at the top level in a file.\"),\n A_namespace_declaration_is_only_allowed_in_a_namespace_or_module: diag(1235, ts.DiagnosticCategory.Error, \"A_namespace_declaration_is_only_allowed_in_a_namespace_or_module_1235\", \"A namespace declaration is only allowed in a namespace or module.\"),\n The_return_type_of_a_property_decorator_function_must_be_either_void_or_any: diag(1236, ts.DiagnosticCategory.Error, \"The_return_type_of_a_property_decorator_function_must_be_either_void_or_any_1236\", \"The return type of a property decorator function must be either 'void' or 'any'.\"),\n The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any: diag(1237, ts.DiagnosticCategory.Error, \"The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any_1237\", \"The return type of a parameter decorator function must be either 'void' or 'any'.\"),\n Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression: diag(1238, ts.DiagnosticCategory.Error, \"Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression_1238\", \"Unable to resolve signature of class decorator when called as an expression.\"),\n Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression: diag(1239, ts.DiagnosticCategory.Error, \"Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression_1239\", \"Unable to resolve signature of parameter decorator when called as an expression.\"),\n Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression: diag(1240, ts.DiagnosticCategory.Error, \"Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression_1240\", \"Unable to resolve signature of property decorator when called as an expression.\"),\n Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression: diag(1241, ts.DiagnosticCategory.Error, \"Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression_1241\", \"Unable to resolve signature of method decorator when called as an expression.\"),\n abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration: diag(1242, ts.DiagnosticCategory.Error, \"abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration_1242\", \"'abstract' modifier can only appear on a class, method, or property declaration.\"),\n _0_modifier_cannot_be_used_with_1_modifier: diag(1243, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_be_used_with_1_modifier_1243\", \"'{0}' modifier cannot be used with '{1}' modifier.\"),\n Abstract_methods_can_only_appear_within_an_abstract_class: diag(1244, ts.DiagnosticCategory.Error, \"Abstract_methods_can_only_appear_within_an_abstract_class_1244\", \"Abstract methods can only appear within an abstract class.\"),\n Method_0_cannot_have_an_implementation_because_it_is_marked_abstract: diag(1245, ts.DiagnosticCategory.Error, \"Method_0_cannot_have_an_implementation_because_it_is_marked_abstract_1245\", \"Method '{0}' cannot have an implementation because it is marked abstract.\"),\n An_interface_property_cannot_have_an_initializer: diag(1246, ts.DiagnosticCategory.Error, \"An_interface_property_cannot_have_an_initializer_1246\", \"An interface property cannot have an initializer.\"),\n A_type_literal_property_cannot_have_an_initializer: diag(1247, ts.DiagnosticCategory.Error, \"A_type_literal_property_cannot_have_an_initializer_1247\", \"A type literal property cannot have an initializer.\"),\n A_class_member_cannot_have_the_0_keyword: diag(1248, ts.DiagnosticCategory.Error, \"A_class_member_cannot_have_the_0_keyword_1248\", \"A class member cannot have the '{0}' keyword.\"),\n A_decorator_can_only_decorate_a_method_implementation_not_an_overload: diag(1249, ts.DiagnosticCategory.Error, \"A_decorator_can_only_decorate_a_method_implementation_not_an_overload_1249\", \"A decorator can only decorate a method implementation, not an overload.\"),\n Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5: diag(1250, ts.DiagnosticCategory.Error, \"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_1250\", \"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'.\"),\n Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode: diag(1251, ts.DiagnosticCategory.Error, \"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_d_1251\", \"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Class definitions are automatically in strict mode.\"),\n Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode: diag(1252, ts.DiagnosticCategory.Error, \"Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_1252\", \"Function declarations are not allowed inside blocks in strict mode when targeting 'ES3' or 'ES5'. Modules are automatically in strict mode.\"),\n _0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag: diag(1253, ts.DiagnosticCategory.Error, \"_0_tag_cannot_be_used_independently_as_a_top_level_JSDoc_tag_1253\", \"'{0}' tag cannot be used independently as a top level JSDoc tag.\"),\n A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference: diag(1254, ts.DiagnosticCategory.Error, \"A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_refere_1254\", \"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.\"),\n A_definite_assignment_assertion_is_not_permitted_in_this_context: diag(1255, ts.DiagnosticCategory.Error, \"A_definite_assignment_assertion_is_not_permitted_in_this_context_1255\", \"A definite assignment assertion '!' is not permitted in this context.\"),\n A_required_element_cannot_follow_an_optional_element: diag(1257, ts.DiagnosticCategory.Error, \"A_required_element_cannot_follow_an_optional_element_1257\", \"A required element cannot follow an optional element.\"),\n A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration: diag(1258, ts.DiagnosticCategory.Error, \"A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration_1258\", \"A default export must be at the top level of a file or module declaration.\"),\n Module_0_can_only_be_default_imported_using_the_1_flag: diag(1259, ts.DiagnosticCategory.Error, \"Module_0_can_only_be_default_imported_using_the_1_flag_1259\", \"Module '{0}' can only be default-imported using the '{1}' flag\"),\n Keywords_cannot_contain_escape_characters: diag(1260, ts.DiagnosticCategory.Error, \"Keywords_cannot_contain_escape_characters_1260\", \"Keywords cannot contain escape characters.\"),\n Already_included_file_name_0_differs_from_file_name_1_only_in_casing: diag(1261, ts.DiagnosticCategory.Error, \"Already_included_file_name_0_differs_from_file_name_1_only_in_casing_1261\", \"Already included file name '{0}' differs from file name '{1}' only in casing.\"),\n Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module: diag(1262, ts.DiagnosticCategory.Error, \"Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module_1262\", \"Identifier expected. '{0}' is a reserved word at the top-level of a module.\"),\n Declarations_with_initializers_cannot_also_have_definite_assignment_assertions: diag(1263, ts.DiagnosticCategory.Error, \"Declarations_with_initializers_cannot_also_have_definite_assignment_assertions_1263\", \"Declarations with initializers cannot also have definite assignment assertions.\"),\n Declarations_with_definite_assignment_assertions_must_also_have_type_annotations: diag(1264, ts.DiagnosticCategory.Error, \"Declarations_with_definite_assignment_assertions_must_also_have_type_annotations_1264\", \"Declarations with definite assignment assertions must also have type annotations.\"),\n A_rest_element_cannot_follow_another_rest_element: diag(1265, ts.DiagnosticCategory.Error, \"A_rest_element_cannot_follow_another_rest_element_1265\", \"A rest element cannot follow another rest element.\"),\n An_optional_element_cannot_follow_a_rest_element: diag(1266, ts.DiagnosticCategory.Error, \"An_optional_element_cannot_follow_a_rest_element_1266\", \"An optional element cannot follow a rest element.\"),\n Property_0_cannot_have_an_initializer_because_it_is_marked_abstract: diag(1267, ts.DiagnosticCategory.Error, \"Property_0_cannot_have_an_initializer_because_it_is_marked_abstract_1267\", \"Property '{0}' cannot have an initializer because it is marked abstract.\"),\n An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type: diag(1268, ts.DiagnosticCategory.Error, \"An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type_1268\", \"An index signature parameter type must be 'string', 'number', 'symbol', or a template literal type.\"),\n with_statements_are_not_allowed_in_an_async_function_block: diag(1300, ts.DiagnosticCategory.Error, \"with_statements_are_not_allowed_in_an_async_function_block_1300\", \"'with' statements are not allowed in an async function block.\"),\n await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules: diag(1308, ts.DiagnosticCategory.Error, \"await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules_1308\", \"'await' expressions are only allowed within async functions and at the top levels of modules.\"),\n Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern: diag(1312, ts.DiagnosticCategory.Error, \"Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_1312\", \"Did you mean to use a ':'? An '=' can only follow a property name when the containing object literal is part of a destructuring pattern.\"),\n The_body_of_an_if_statement_cannot_be_the_empty_statement: diag(1313, ts.DiagnosticCategory.Error, \"The_body_of_an_if_statement_cannot_be_the_empty_statement_1313\", \"The body of an 'if' statement cannot be the empty statement.\"),\n Global_module_exports_may_only_appear_in_module_files: diag(1314, ts.DiagnosticCategory.Error, \"Global_module_exports_may_only_appear_in_module_files_1314\", \"Global module exports may only appear in module files.\"),\n Global_module_exports_may_only_appear_in_declaration_files: diag(1315, ts.DiagnosticCategory.Error, \"Global_module_exports_may_only_appear_in_declaration_files_1315\", \"Global module exports may only appear in declaration files.\"),\n Global_module_exports_may_only_appear_at_top_level: diag(1316, ts.DiagnosticCategory.Error, \"Global_module_exports_may_only_appear_at_top_level_1316\", \"Global module exports may only appear at top level.\"),\n A_parameter_property_cannot_be_declared_using_a_rest_parameter: diag(1317, ts.DiagnosticCategory.Error, \"A_parameter_property_cannot_be_declared_using_a_rest_parameter_1317\", \"A parameter property cannot be declared using a rest parameter.\"),\n An_abstract_accessor_cannot_have_an_implementation: diag(1318, ts.DiagnosticCategory.Error, \"An_abstract_accessor_cannot_have_an_implementation_1318\", \"An abstract accessor cannot have an implementation.\"),\n A_default_export_can_only_be_used_in_an_ECMAScript_style_module: diag(1319, ts.DiagnosticCategory.Error, \"A_default_export_can_only_be_used_in_an_ECMAScript_style_module_1319\", \"A default export can only be used in an ECMAScript-style module.\"),\n Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1320, ts.DiagnosticCategory.Error, \"Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member_1320\", \"Type of 'await' operand must either be a valid promise or must not contain a callable 'then' member.\"),\n Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1321, ts.DiagnosticCategory.Error, \"Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_cal_1321\", \"Type of 'yield' operand in an async generator must either be a valid promise or must not contain a callable 'then' member.\"),\n Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member: diag(1322, ts.DiagnosticCategory.Error, \"Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_con_1322\", \"Type of iterated elements of a 'yield*' operand must either be a valid promise or must not contain a callable 'then' member.\"),\n Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd: diag(1323, ts.DiagnosticCategory.Error, \"Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system__1323\", \"Dynamic imports are only supported when the '--module' flag is set to 'es2020', 'esnext', 'commonjs', 'amd', 'system', or 'umd'.\"),\n Dynamic_import_must_have_one_specifier_as_an_argument: diag(1324, ts.DiagnosticCategory.Error, \"Dynamic_import_must_have_one_specifier_as_an_argument_1324\", \"Dynamic import must have one specifier as an argument.\"),\n Specifier_of_dynamic_import_cannot_be_spread_element: diag(1325, ts.DiagnosticCategory.Error, \"Specifier_of_dynamic_import_cannot_be_spread_element_1325\", \"Specifier of dynamic import cannot be spread element.\"),\n Dynamic_import_cannot_have_type_arguments: diag(1326, ts.DiagnosticCategory.Error, \"Dynamic_import_cannot_have_type_arguments_1326\", \"Dynamic import cannot have type arguments.\"),\n String_literal_with_double_quotes_expected: diag(1327, ts.DiagnosticCategory.Error, \"String_literal_with_double_quotes_expected_1327\", \"String literal with double quotes expected.\"),\n Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal: diag(1328, ts.DiagnosticCategory.Error, \"Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_li_1328\", \"Property value can only be string literal, numeric literal, 'true', 'false', 'null', object literal or array literal.\"),\n _0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0: diag(1329, ts.DiagnosticCategory.Error, \"_0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write__1329\", \"'{0}' accepts too few arguments to be used as a decorator here. Did you mean to call it first and write '@{0}()'?\"),\n A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly: diag(1330, ts.DiagnosticCategory.Error, \"A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly_1330\", \"A property of an interface or type literal whose type is a 'unique symbol' type must be 'readonly'.\"),\n A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly: diag(1331, ts.DiagnosticCategory.Error, \"A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly_1331\", \"A property of a class whose type is a 'unique symbol' type must be both 'static' and 'readonly'.\"),\n A_variable_whose_type_is_a_unique_symbol_type_must_be_const: diag(1332, ts.DiagnosticCategory.Error, \"A_variable_whose_type_is_a_unique_symbol_type_must_be_const_1332\", \"A variable whose type is a 'unique symbol' type must be 'const'.\"),\n unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name: diag(1333, ts.DiagnosticCategory.Error, \"unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name_1333\", \"'unique symbol' types may not be used on a variable declaration with a binding name.\"),\n unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement: diag(1334, ts.DiagnosticCategory.Error, \"unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement_1334\", \"'unique symbol' types are only allowed on variables in a variable statement.\"),\n unique_symbol_types_are_not_allowed_here: diag(1335, ts.DiagnosticCategory.Error, \"unique_symbol_types_are_not_allowed_here_1335\", \"'unique symbol' types are not allowed here.\"),\n An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead: diag(1337, ts.DiagnosticCategory.Error, \"An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_o_1337\", \"An index signature parameter type cannot be a literal type or generic type. Consider using a mapped object type instead.\"),\n infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type: diag(1338, ts.DiagnosticCategory.Error, \"infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type_1338\", \"'infer' declarations are only permitted in the 'extends' clause of a conditional type.\"),\n Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here: diag(1339, ts.DiagnosticCategory.Error, \"Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here_1339\", \"Module '{0}' does not refer to a value, but is used as a value here.\"),\n Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0: diag(1340, ts.DiagnosticCategory.Error, \"Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0_1340\", \"Module '{0}' does not refer to a type, but is used as a type here. Did you mean 'typeof import('{0}')'?\"),\n Type_arguments_cannot_be_used_here: diag(1342, ts.DiagnosticCategory.Error, \"Type_arguments_cannot_be_used_here_1342\", \"Type arguments cannot be used here.\"),\n The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system: diag(1343, ts.DiagnosticCategory.Error, \"The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system_1343\", \"The 'import.meta' meta-property is only allowed when the '--module' option is 'es2020', 'esnext', or 'system'.\"),\n A_label_is_not_allowed_here: diag(1344, ts.DiagnosticCategory.Error, \"A_label_is_not_allowed_here_1344\", \"'A label is not allowed here.\"),\n An_expression_of_type_void_cannot_be_tested_for_truthiness: diag(1345, ts.DiagnosticCategory.Error, \"An_expression_of_type_void_cannot_be_tested_for_truthiness_1345\", \"An expression of type 'void' cannot be tested for truthiness.\"),\n This_parameter_is_not_allowed_with_use_strict_directive: diag(1346, ts.DiagnosticCategory.Error, \"This_parameter_is_not_allowed_with_use_strict_directive_1346\", \"This parameter is not allowed with 'use strict' directive.\"),\n use_strict_directive_cannot_be_used_with_non_simple_parameter_list: diag(1347, ts.DiagnosticCategory.Error, \"use_strict_directive_cannot_be_used_with_non_simple_parameter_list_1347\", \"'use strict' directive cannot be used with non-simple parameter list.\"),\n Non_simple_parameter_declared_here: diag(1348, ts.DiagnosticCategory.Error, \"Non_simple_parameter_declared_here_1348\", \"Non-simple parameter declared here.\"),\n use_strict_directive_used_here: diag(1349, ts.DiagnosticCategory.Error, \"use_strict_directive_used_here_1349\", \"'use strict' directive used here.\"),\n Print_the_final_configuration_instead_of_building: diag(1350, ts.DiagnosticCategory.Message, \"Print_the_final_configuration_instead_of_building_1350\", \"Print the final configuration instead of building.\"),\n An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal: diag(1351, ts.DiagnosticCategory.Error, \"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351\", \"An identifier or keyword cannot immediately follow a numeric literal.\"),\n A_bigint_literal_cannot_use_exponential_notation: diag(1352, ts.DiagnosticCategory.Error, \"A_bigint_literal_cannot_use_exponential_notation_1352\", \"A bigint literal cannot use exponential notation.\"),\n A_bigint_literal_must_be_an_integer: diag(1353, ts.DiagnosticCategory.Error, \"A_bigint_literal_must_be_an_integer_1353\", \"A bigint literal must be an integer.\"),\n readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types: diag(1354, ts.DiagnosticCategory.Error, \"readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types_1354\", \"'readonly' type modifier is only permitted on array and tuple literal types.\"),\n A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals: diag(1355, ts.DiagnosticCategory.Error, \"A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array__1355\", \"A 'const' assertions can only be applied to references to enum members, or string, number, boolean, array, or object literals.\"),\n Did_you_mean_to_mark_this_function_as_async: diag(1356, ts.DiagnosticCategory.Error, \"Did_you_mean_to_mark_this_function_as_async_1356\", \"Did you mean to mark this function as 'async'?\"),\n An_enum_member_name_must_be_followed_by_a_or: diag(1357, ts.DiagnosticCategory.Error, \"An_enum_member_name_must_be_followed_by_a_or_1357\", \"An enum member name must be followed by a ',', '=', or '}'.\"),\n Tagged_template_expressions_are_not_permitted_in_an_optional_chain: diag(1358, ts.DiagnosticCategory.Error, \"Tagged_template_expressions_are_not_permitted_in_an_optional_chain_1358\", \"Tagged template expressions are not permitted in an optional chain.\"),\n Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here: diag(1359, ts.DiagnosticCategory.Error, \"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359\", \"Identifier expected. '{0}' is a reserved word that cannot be used here.\"),\n Did_you_mean_to_parenthesize_this_function_type: diag(1360, ts.DiagnosticCategory.Error, \"Did_you_mean_to_parenthesize_this_function_type_1360\", \"Did you mean to parenthesize this function type?\"),\n _0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type: diag(1361, ts.DiagnosticCategory.Error, \"_0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type_1361\", \"'{0}' cannot be used as a value because it was imported using 'import type'.\"),\n _0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type: diag(1362, ts.DiagnosticCategory.Error, \"_0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type_1362\", \"'{0}' cannot be used as a value because it was exported using 'export type'.\"),\n A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both: diag(1363, ts.DiagnosticCategory.Error, \"A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both_1363\", \"A type-only import can specify a default import or named bindings, but not both.\"),\n Convert_to_type_only_export: diag(1364, ts.DiagnosticCategory.Message, \"Convert_to_type_only_export_1364\", \"Convert to type-only export\"),\n Convert_all_re_exported_types_to_type_only_exports: diag(1365, ts.DiagnosticCategory.Message, \"Convert_all_re_exported_types_to_type_only_exports_1365\", \"Convert all re-exported types to type-only exports\"),\n Split_into_two_separate_import_declarations: diag(1366, ts.DiagnosticCategory.Message, \"Split_into_two_separate_import_declarations_1366\", \"Split into two separate import declarations\"),\n Split_all_invalid_type_only_imports: diag(1367, ts.DiagnosticCategory.Message, \"Split_all_invalid_type_only_imports_1367\", \"Split all invalid type-only imports\"),\n Did_you_mean_0: diag(1369, ts.DiagnosticCategory.Message, \"Did_you_mean_0_1369\", \"Did you mean '{0}'?\"),\n This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error: diag(1371, ts.DiagnosticCategory.Error, \"This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set__1371\", \"This import is never used as a value and must use 'import type' because 'importsNotUsedAsValues' is set to 'error'.\"),\n Convert_to_type_only_import: diag(1373, ts.DiagnosticCategory.Message, \"Convert_to_type_only_import_1373\", \"Convert to type-only import\"),\n Convert_all_imports_not_used_as_a_value_to_type_only_imports: diag(1374, ts.DiagnosticCategory.Message, \"Convert_all_imports_not_used_as_a_value_to_type_only_imports_1374\", \"Convert all imports not used as a value to type-only imports\"),\n await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1375, ts.DiagnosticCategory.Error, \"await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_fi_1375\", \"'await' expressions are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.\"),\n _0_was_imported_here: diag(1376, ts.DiagnosticCategory.Message, \"_0_was_imported_here_1376\", \"'{0}' was imported here.\"),\n _0_was_exported_here: diag(1377, ts.DiagnosticCategory.Message, \"_0_was_exported_here_1377\", \"'{0}' was exported here.\"),\n Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher: diag(1378, ts.DiagnosticCategory.Error, \"Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_t_1378\", \"Top-level 'await' expressions are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher.\"),\n An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type: diag(1379, ts.DiagnosticCategory.Error, \"An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type_1379\", \"An import alias cannot reference a declaration that was exported using 'export type'.\"),\n An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type: diag(1380, ts.DiagnosticCategory.Error, \"An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type_1380\", \"An import alias cannot reference a declaration that was imported using 'import type'.\"),\n Unexpected_token_Did_you_mean_or_rbrace: diag(1381, ts.DiagnosticCategory.Error, \"Unexpected_token_Did_you_mean_or_rbrace_1381\", \"Unexpected token. Did you mean `{'}'}` or `}`?\"),\n Unexpected_token_Did_you_mean_or_gt: diag(1382, ts.DiagnosticCategory.Error, \"Unexpected_token_Did_you_mean_or_gt_1382\", \"Unexpected token. Did you mean `{'>'}` or `>`?\"),\n Only_named_exports_may_use_export_type: diag(1383, ts.DiagnosticCategory.Error, \"Only_named_exports_may_use_export_type_1383\", \"Only named exports may use 'export type'.\"),\n A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list: diag(1384, ts.DiagnosticCategory.Error, \"A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list_1384\", \"A 'new' expression with type arguments must always be followed by a parenthesized argument list.\"),\n Function_type_notation_must_be_parenthesized_when_used_in_a_union_type: diag(1385, ts.DiagnosticCategory.Error, \"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385\", \"Function type notation must be parenthesized when used in a union type.\"),\n Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type: diag(1386, ts.DiagnosticCategory.Error, \"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386\", \"Constructor type notation must be parenthesized when used in a union type.\"),\n Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: diag(1387, ts.DiagnosticCategory.Error, \"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387\", \"Function type notation must be parenthesized when used in an intersection type.\"),\n Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type: diag(1388, ts.DiagnosticCategory.Error, \"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388\", \"Constructor type notation must be parenthesized when used in an intersection type.\"),\n _0_is_not_allowed_as_a_variable_declaration_name: diag(1389, ts.DiagnosticCategory.Error, \"_0_is_not_allowed_as_a_variable_declaration_name_1389\", \"'{0}' is not allowed as a variable declaration name.\"),\n Provides_a_root_package_name_when_using_outFile_with_declarations: diag(1390, ts.DiagnosticCategory.Message, \"Provides_a_root_package_name_when_using_outFile_with_declarations_1390\", \"Provides a root package name when using outFile with declarations.\"),\n The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_declaration_emit: diag(1391, ts.DiagnosticCategory.Error, \"The_bundledPackageName_option_must_be_provided_when_using_outFile_and_node_module_resolution_with_de_1391\", \"The 'bundledPackageName' option must be provided when using outFile and node module resolution with declaration emit.\"),\n An_import_alias_cannot_use_import_type: diag(1392, ts.DiagnosticCategory.Error, \"An_import_alias_cannot_use_import_type_1392\", \"An import alias cannot use 'import type'\"),\n Imported_via_0_from_file_1: diag(1393, ts.DiagnosticCategory.Message, \"Imported_via_0_from_file_1_1393\", \"Imported via {0} from file '{1}'\"),\n Imported_via_0_from_file_1_with_packageId_2: diag(1394, ts.DiagnosticCategory.Message, \"Imported_via_0_from_file_1_with_packageId_2_1394\", \"Imported via {0} from file '{1}' with packageId '{2}'\"),\n Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions: diag(1395, ts.DiagnosticCategory.Message, \"Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions_1395\", \"Imported via {0} from file '{1}' to import 'importHelpers' as specified in compilerOptions\"),\n Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions: diag(1396, ts.DiagnosticCategory.Message, \"Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions_1396\", \"Imported via {0} from file '{1}' with packageId '{2}' to import 'importHelpers' as specified in compilerOptions\"),\n Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions: diag(1397, ts.DiagnosticCategory.Message, \"Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions_1397\", \"Imported via {0} from file '{1}' to import 'jsx' and 'jsxs' factory functions\"),\n Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions: diag(1398, ts.DiagnosticCategory.Message, \"Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions_1398\", \"Imported via {0} from file '{1}' with packageId '{2}' to import 'jsx' and 'jsxs' factory functions\"),\n File_is_included_via_import_here: diag(1399, ts.DiagnosticCategory.Message, \"File_is_included_via_import_here_1399\", \"File is included via import here.\"),\n Referenced_via_0_from_file_1: diag(1400, ts.DiagnosticCategory.Message, \"Referenced_via_0_from_file_1_1400\", \"Referenced via '{0}' from file '{1}'\"),\n File_is_included_via_reference_here: diag(1401, ts.DiagnosticCategory.Message, \"File_is_included_via_reference_here_1401\", \"File is included via reference here.\"),\n Type_library_referenced_via_0_from_file_1: diag(1402, ts.DiagnosticCategory.Message, \"Type_library_referenced_via_0_from_file_1_1402\", \"Type library referenced via '{0}' from file '{1}'\"),\n Type_library_referenced_via_0_from_file_1_with_packageId_2: diag(1403, ts.DiagnosticCategory.Message, \"Type_library_referenced_via_0_from_file_1_with_packageId_2_1403\", \"Type library referenced via '{0}' from file '{1}' with packageId '{2}'\"),\n File_is_included_via_type_library_reference_here: diag(1404, ts.DiagnosticCategory.Message, \"File_is_included_via_type_library_reference_here_1404\", \"File is included via type library reference here.\"),\n Library_referenced_via_0_from_file_1: diag(1405, ts.DiagnosticCategory.Message, \"Library_referenced_via_0_from_file_1_1405\", \"Library referenced via '{0}' from file '{1}'\"),\n File_is_included_via_library_reference_here: diag(1406, ts.DiagnosticCategory.Message, \"File_is_included_via_library_reference_here_1406\", \"File is included via library reference here.\"),\n Matched_by_include_pattern_0_in_1: diag(1407, ts.DiagnosticCategory.Message, \"Matched_by_include_pattern_0_in_1_1407\", \"Matched by include pattern '{0}' in '{1}'\"),\n File_is_matched_by_include_pattern_specified_here: diag(1408, ts.DiagnosticCategory.Message, \"File_is_matched_by_include_pattern_specified_here_1408\", \"File is matched by include pattern specified here.\"),\n Part_of_files_list_in_tsconfig_json: diag(1409, ts.DiagnosticCategory.Message, \"Part_of_files_list_in_tsconfig_json_1409\", \"Part of 'files' list in tsconfig.json\"),\n File_is_matched_by_files_list_specified_here: diag(1410, ts.DiagnosticCategory.Message, \"File_is_matched_by_files_list_specified_here_1410\", \"File is matched by 'files' list specified here.\"),\n Output_from_referenced_project_0_included_because_1_specified: diag(1411, ts.DiagnosticCategory.Message, \"Output_from_referenced_project_0_included_because_1_specified_1411\", \"Output from referenced project '{0}' included because '{1}' specified\"),\n Output_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1412, ts.DiagnosticCategory.Message, \"Output_from_referenced_project_0_included_because_module_is_specified_as_none_1412\", \"Output from referenced project '{0}' included because '--module' is specified as 'none'\"),\n File_is_output_from_referenced_project_specified_here: diag(1413, ts.DiagnosticCategory.Message, \"File_is_output_from_referenced_project_specified_here_1413\", \"File is output from referenced project specified here.\"),\n Source_from_referenced_project_0_included_because_1_specified: diag(1414, ts.DiagnosticCategory.Message, \"Source_from_referenced_project_0_included_because_1_specified_1414\", \"Source from referenced project '{0}' included because '{1}' specified\"),\n Source_from_referenced_project_0_included_because_module_is_specified_as_none: diag(1415, ts.DiagnosticCategory.Message, \"Source_from_referenced_project_0_included_because_module_is_specified_as_none_1415\", \"Source from referenced project '{0}' included because '--module' is specified as 'none'\"),\n File_is_source_from_referenced_project_specified_here: diag(1416, ts.DiagnosticCategory.Message, \"File_is_source_from_referenced_project_specified_here_1416\", \"File is source from referenced project specified here.\"),\n Entry_point_of_type_library_0_specified_in_compilerOptions: diag(1417, ts.DiagnosticCategory.Message, \"Entry_point_of_type_library_0_specified_in_compilerOptions_1417\", \"Entry point of type library '{0}' specified in compilerOptions\"),\n Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1: diag(1418, ts.DiagnosticCategory.Message, \"Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1_1418\", \"Entry point of type library '{0}' specified in compilerOptions with packageId '{1}'\"),\n File_is_entry_point_of_type_library_specified_here: diag(1419, ts.DiagnosticCategory.Message, \"File_is_entry_point_of_type_library_specified_here_1419\", \"File is entry point of type library specified here.\"),\n Entry_point_for_implicit_type_library_0: diag(1420, ts.DiagnosticCategory.Message, \"Entry_point_for_implicit_type_library_0_1420\", \"Entry point for implicit type library '{0}'\"),\n Entry_point_for_implicit_type_library_0_with_packageId_1: diag(1421, ts.DiagnosticCategory.Message, \"Entry_point_for_implicit_type_library_0_with_packageId_1_1421\", \"Entry point for implicit type library '{0}' with packageId '{1}'\"),\n Library_0_specified_in_compilerOptions: diag(1422, ts.DiagnosticCategory.Message, \"Library_0_specified_in_compilerOptions_1422\", \"Library '{0}' specified in compilerOptions\"),\n File_is_library_specified_here: diag(1423, ts.DiagnosticCategory.Message, \"File_is_library_specified_here_1423\", \"File is library specified here.\"),\n Default_library: diag(1424, ts.DiagnosticCategory.Message, \"Default_library_1424\", \"Default library\"),\n Default_library_for_target_0: diag(1425, ts.DiagnosticCategory.Message, \"Default_library_for_target_0_1425\", \"Default library for target '{0}'\"),\n File_is_default_library_for_target_specified_here: diag(1426, ts.DiagnosticCategory.Message, \"File_is_default_library_for_target_specified_here_1426\", \"File is default library for target specified here.\"),\n Root_file_specified_for_compilation: diag(1427, ts.DiagnosticCategory.Message, \"Root_file_specified_for_compilation_1427\", \"Root file specified for compilation\"),\n File_is_output_of_project_reference_source_0: diag(1428, ts.DiagnosticCategory.Message, \"File_is_output_of_project_reference_source_0_1428\", \"File is output of project reference source '{0}'\"),\n File_redirects_to_file_0: diag(1429, ts.DiagnosticCategory.Message, \"File_redirects_to_file_0_1429\", \"File redirects to file '{0}'\"),\n The_file_is_in_the_program_because_Colon: diag(1430, ts.DiagnosticCategory.Message, \"The_file_is_in_the_program_because_Colon_1430\", \"The file is in the program because:\"),\n for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module: diag(1431, ts.DiagnosticCategory.Error, \"for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_1431\", \"'for await' loops are only allowed at the top level of a file when that file is a module, but this file has no imports or exports. Consider adding an empty 'export {}' to make this file a module.\"),\n Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher: diag(1432, ts.DiagnosticCategory.Error, \"Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_1432\", \"Top-level 'for await' loops are only allowed when the 'module' option is set to 'esnext' or 'system', and the 'target' option is set to 'es2017' or higher.\"),\n Decorators_may_not_be_applied_to_this_parameters: diag(1433, ts.DiagnosticCategory.Error, \"Decorators_may_not_be_applied_to_this_parameters_1433\", \"Decorators may not be applied to 'this' parameters.\"),\n Unexpected_keyword_or_identifier: diag(1434, ts.DiagnosticCategory.Error, \"Unexpected_keyword_or_identifier_1434\", \"Unexpected keyword or identifier.\"),\n Unknown_keyword_or_identifier_Did_you_mean_0: diag(1435, ts.DiagnosticCategory.Error, \"Unknown_keyword_or_identifier_Did_you_mean_0_1435\", \"Unknown keyword or identifier. Did you mean '{0}'?\"),\n Decorators_must_precede_the_name_and_all_keywords_of_property_declarations: diag(1436, ts.DiagnosticCategory.Error, \"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436\", \"Decorators must precede the name and all keywords of property declarations.\"),\n Namespace_must_be_given_a_name: diag(1437, ts.DiagnosticCategory.Error, \"Namespace_must_be_given_a_name_1437\", \"Namespace must be given a name.\"),\n Interface_must_be_given_a_name: diag(1438, ts.DiagnosticCategory.Error, \"Interface_must_be_given_a_name_1438\", \"Interface must be given a name.\"),\n Type_alias_must_be_given_a_name: diag(1439, ts.DiagnosticCategory.Error, \"Type_alias_must_be_given_a_name_1439\", \"Type alias must be given a name.\"),\n Variable_declaration_not_allowed_at_this_location: diag(1440, ts.DiagnosticCategory.Error, \"Variable_declaration_not_allowed_at_this_location_1440\", \"Variable declaration not allowed at this location.\"),\n Cannot_start_a_function_call_in_a_type_annotation: diag(1441, ts.DiagnosticCategory.Error, \"Cannot_start_a_function_call_in_a_type_annotation_1441\", \"Cannot start a function call in a type annotation.\"),\n Expected_for_property_initializer: diag(1442, ts.DiagnosticCategory.Error, \"Expected_for_property_initializer_1442\", \"Expected '=' for property initializer.\"),\n Module_declaration_names_may_only_use_or_quoted_strings: diag(1443, ts.DiagnosticCategory.Error, \"Module_declaration_names_may_only_use_or_quoted_strings_1443\", \"Module declaration names may only use ' or \\\" quoted strings.\"),\n The_types_of_0_are_incompatible_between_these_types: diag(2200, ts.DiagnosticCategory.Error, \"The_types_of_0_are_incompatible_between_these_types_2200\", \"The types of '{0}' are incompatible between these types.\"),\n The_types_returned_by_0_are_incompatible_between_these_types: diag(2201, ts.DiagnosticCategory.Error, \"The_types_returned_by_0_are_incompatible_between_these_types_2201\", \"The types returned by '{0}' are incompatible between these types.\"),\n Call_signature_return_types_0_and_1_are_incompatible: diag(2202, ts.DiagnosticCategory.Error, \"Call_signature_return_types_0_and_1_are_incompatible_2202\", \"Call signature return types '{0}' and '{1}' are incompatible.\", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ true),\n Construct_signature_return_types_0_and_1_are_incompatible: diag(2203, ts.DiagnosticCategory.Error, \"Construct_signature_return_types_0_and_1_are_incompatible_2203\", \"Construct signature return types '{0}' and '{1}' are incompatible.\", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ true),\n Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag(2204, ts.DiagnosticCategory.Error, \"Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2204\", \"Call signatures with no arguments have incompatible return types '{0}' and '{1}'.\", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ true),\n Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1: diag(2205, ts.DiagnosticCategory.Error, \"Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1_2205\", \"Construct signatures with no arguments have incompatible return types '{0}' and '{1}'.\", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ true),\n Duplicate_identifier_0: diag(2300, ts.DiagnosticCategory.Error, \"Duplicate_identifier_0_2300\", \"Duplicate identifier '{0}'.\"),\n Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: diag(2301, ts.DiagnosticCategory.Error, \"Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor_2301\", \"Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor.\"),\n Static_members_cannot_reference_class_type_parameters: diag(2302, ts.DiagnosticCategory.Error, \"Static_members_cannot_reference_class_type_parameters_2302\", \"Static members cannot reference class type parameters.\"),\n Circular_definition_of_import_alias_0: diag(2303, ts.DiagnosticCategory.Error, \"Circular_definition_of_import_alias_0_2303\", \"Circular definition of import alias '{0}'.\"),\n Cannot_find_name_0: diag(2304, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_2304\", \"Cannot find name '{0}'.\"),\n Module_0_has_no_exported_member_1: diag(2305, ts.DiagnosticCategory.Error, \"Module_0_has_no_exported_member_1_2305\", \"Module '{0}' has no exported member '{1}'.\"),\n File_0_is_not_a_module: diag(2306, ts.DiagnosticCategory.Error, \"File_0_is_not_a_module_2306\", \"File '{0}' is not a module.\"),\n Cannot_find_module_0_or_its_corresponding_type_declarations: diag(2307, ts.DiagnosticCategory.Error, \"Cannot_find_module_0_or_its_corresponding_type_declarations_2307\", \"Cannot find module '{0}' or its corresponding type declarations.\"),\n Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity: diag(2308, ts.DiagnosticCategory.Error, \"Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambig_2308\", \"Module {0} has already exported a member named '{1}'. Consider explicitly re-exporting to resolve the ambiguity.\"),\n An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements: diag(2309, ts.DiagnosticCategory.Error, \"An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements_2309\", \"An export assignment cannot be used in a module with other exported elements.\"),\n Type_0_recursively_references_itself_as_a_base_type: diag(2310, ts.DiagnosticCategory.Error, \"Type_0_recursively_references_itself_as_a_base_type_2310\", \"Type '{0}' recursively references itself as a base type.\"),\n A_class_may_only_extend_another_class: diag(2311, ts.DiagnosticCategory.Error, \"A_class_may_only_extend_another_class_2311\", \"A class may only extend another class.\"),\n An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2312, ts.DiagnosticCategory.Error, \"An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_me_2312\", \"An interface can only extend an object type or intersection of object types with statically known members.\"),\n Type_parameter_0_has_a_circular_constraint: diag(2313, ts.DiagnosticCategory.Error, \"Type_parameter_0_has_a_circular_constraint_2313\", \"Type parameter '{0}' has a circular constraint.\"),\n Generic_type_0_requires_1_type_argument_s: diag(2314, ts.DiagnosticCategory.Error, \"Generic_type_0_requires_1_type_argument_s_2314\", \"Generic type '{0}' requires {1} type argument(s).\"),\n Type_0_is_not_generic: diag(2315, ts.DiagnosticCategory.Error, \"Type_0_is_not_generic_2315\", \"Type '{0}' is not generic.\"),\n Global_type_0_must_be_a_class_or_interface_type: diag(2316, ts.DiagnosticCategory.Error, \"Global_type_0_must_be_a_class_or_interface_type_2316\", \"Global type '{0}' must be a class or interface type.\"),\n Global_type_0_must_have_1_type_parameter_s: diag(2317, ts.DiagnosticCategory.Error, \"Global_type_0_must_have_1_type_parameter_s_2317\", \"Global type '{0}' must have {1} type parameter(s).\"),\n Cannot_find_global_type_0: diag(2318, ts.DiagnosticCategory.Error, \"Cannot_find_global_type_0_2318\", \"Cannot find global type '{0}'.\"),\n Named_property_0_of_types_1_and_2_are_not_identical: diag(2319, ts.DiagnosticCategory.Error, \"Named_property_0_of_types_1_and_2_are_not_identical_2319\", \"Named property '{0}' of types '{1}' and '{2}' are not identical.\"),\n Interface_0_cannot_simultaneously_extend_types_1_and_2: diag(2320, ts.DiagnosticCategory.Error, \"Interface_0_cannot_simultaneously_extend_types_1_and_2_2320\", \"Interface '{0}' cannot simultaneously extend types '{1}' and '{2}'.\"),\n Excessive_stack_depth_comparing_types_0_and_1: diag(2321, ts.DiagnosticCategory.Error, \"Excessive_stack_depth_comparing_types_0_and_1_2321\", \"Excessive stack depth comparing types '{0}' and '{1}'.\"),\n Type_0_is_not_assignable_to_type_1: diag(2322, ts.DiagnosticCategory.Error, \"Type_0_is_not_assignable_to_type_1_2322\", \"Type '{0}' is not assignable to type '{1}'.\"),\n Cannot_redeclare_exported_variable_0: diag(2323, ts.DiagnosticCategory.Error, \"Cannot_redeclare_exported_variable_0_2323\", \"Cannot redeclare exported variable '{0}'.\"),\n Property_0_is_missing_in_type_1: diag(2324, ts.DiagnosticCategory.Error, \"Property_0_is_missing_in_type_1_2324\", \"Property '{0}' is missing in type '{1}'.\"),\n Property_0_is_private_in_type_1_but_not_in_type_2: diag(2325, ts.DiagnosticCategory.Error, \"Property_0_is_private_in_type_1_but_not_in_type_2_2325\", \"Property '{0}' is private in type '{1}' but not in type '{2}'.\"),\n Types_of_property_0_are_incompatible: diag(2326, ts.DiagnosticCategory.Error, \"Types_of_property_0_are_incompatible_2326\", \"Types of property '{0}' are incompatible.\"),\n Property_0_is_optional_in_type_1_but_required_in_type_2: diag(2327, ts.DiagnosticCategory.Error, \"Property_0_is_optional_in_type_1_but_required_in_type_2_2327\", \"Property '{0}' is optional in type '{1}' but required in type '{2}'.\"),\n Types_of_parameters_0_and_1_are_incompatible: diag(2328, ts.DiagnosticCategory.Error, \"Types_of_parameters_0_and_1_are_incompatible_2328\", \"Types of parameters '{0}' and '{1}' are incompatible.\"),\n Index_signature_for_type_0_is_missing_in_type_1: diag(2329, ts.DiagnosticCategory.Error, \"Index_signature_for_type_0_is_missing_in_type_1_2329\", \"Index signature for type '{0}' is missing in type '{1}'.\"),\n _0_and_1_index_signatures_are_incompatible: diag(2330, ts.DiagnosticCategory.Error, \"_0_and_1_index_signatures_are_incompatible_2330\", \"'{0}' and '{1}' index signatures are incompatible.\"),\n this_cannot_be_referenced_in_a_module_or_namespace_body: diag(2331, ts.DiagnosticCategory.Error, \"this_cannot_be_referenced_in_a_module_or_namespace_body_2331\", \"'this' cannot be referenced in a module or namespace body.\"),\n this_cannot_be_referenced_in_current_location: diag(2332, ts.DiagnosticCategory.Error, \"this_cannot_be_referenced_in_current_location_2332\", \"'this' cannot be referenced in current location.\"),\n this_cannot_be_referenced_in_constructor_arguments: diag(2333, ts.DiagnosticCategory.Error, \"this_cannot_be_referenced_in_constructor_arguments_2333\", \"'this' cannot be referenced in constructor arguments.\"),\n this_cannot_be_referenced_in_a_static_property_initializer: diag(2334, ts.DiagnosticCategory.Error, \"this_cannot_be_referenced_in_a_static_property_initializer_2334\", \"'this' cannot be referenced in a static property initializer.\"),\n super_can_only_be_referenced_in_a_derived_class: diag(2335, ts.DiagnosticCategory.Error, \"super_can_only_be_referenced_in_a_derived_class_2335\", \"'super' can only be referenced in a derived class.\"),\n super_cannot_be_referenced_in_constructor_arguments: diag(2336, ts.DiagnosticCategory.Error, \"super_cannot_be_referenced_in_constructor_arguments_2336\", \"'super' cannot be referenced in constructor arguments.\"),\n Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors: diag(2337, ts.DiagnosticCategory.Error, \"Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors_2337\", \"Super calls are not permitted outside constructors or in nested functions inside constructors.\"),\n super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class: diag(2338, ts.DiagnosticCategory.Error, \"super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_der_2338\", \"'super' property access is permitted only in a constructor, member function, or member accessor of a derived class.\"),\n Property_0_does_not_exist_on_type_1: diag(2339, ts.DiagnosticCategory.Error, \"Property_0_does_not_exist_on_type_1_2339\", \"Property '{0}' does not exist on type '{1}'.\"),\n Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: diag(2340, ts.DiagnosticCategory.Error, \"Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword_2340\", \"Only public and protected methods of the base class are accessible via the 'super' keyword.\"),\n Property_0_is_private_and_only_accessible_within_class_1: diag(2341, ts.DiagnosticCategory.Error, \"Property_0_is_private_and_only_accessible_within_class_1_2341\", \"Property '{0}' is private and only accessible within class '{1}'.\"),\n An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: diag(2342, ts.DiagnosticCategory.Error, \"An_index_expression_argument_must_be_of_type_string_number_symbol_or_any_2342\", \"An index expression argument must be of type 'string', 'number', 'symbol', or 'any'.\"),\n This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0: diag(2343, ts.DiagnosticCategory.Error, \"This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_ve_2343\", \"This syntax requires an imported helper named '{1}' which does not exist in '{0}'. Consider upgrading your version of '{0}'.\"),\n Type_0_does_not_satisfy_the_constraint_1: diag(2344, ts.DiagnosticCategory.Error, \"Type_0_does_not_satisfy_the_constraint_1_2344\", \"Type '{0}' does not satisfy the constraint '{1}'.\"),\n Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: diag(2345, ts.DiagnosticCategory.Error, \"Argument_of_type_0_is_not_assignable_to_parameter_of_type_1_2345\", \"Argument of type '{0}' is not assignable to parameter of type '{1}'.\"),\n Call_target_does_not_contain_any_signatures: diag(2346, ts.DiagnosticCategory.Error, \"Call_target_does_not_contain_any_signatures_2346\", \"Call target does not contain any signatures.\"),\n Untyped_function_calls_may_not_accept_type_arguments: diag(2347, ts.DiagnosticCategory.Error, \"Untyped_function_calls_may_not_accept_type_arguments_2347\", \"Untyped function calls may not accept type arguments.\"),\n Value_of_type_0_is_not_callable_Did_you_mean_to_include_new: diag(2348, ts.DiagnosticCategory.Error, \"Value_of_type_0_is_not_callable_Did_you_mean_to_include_new_2348\", \"Value of type '{0}' is not callable. Did you mean to include 'new'?\"),\n This_expression_is_not_callable: diag(2349, ts.DiagnosticCategory.Error, \"This_expression_is_not_callable_2349\", \"This expression is not callable.\"),\n Only_a_void_function_can_be_called_with_the_new_keyword: diag(2350, ts.DiagnosticCategory.Error, \"Only_a_void_function_can_be_called_with_the_new_keyword_2350\", \"Only a void function can be called with the 'new' keyword.\"),\n This_expression_is_not_constructable: diag(2351, ts.DiagnosticCategory.Error, \"This_expression_is_not_constructable_2351\", \"This expression is not constructable.\"),\n Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first: diag(2352, ts.DiagnosticCategory.Error, \"Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the__2352\", \"Conversion of type '{0}' to type '{1}' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first.\"),\n Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1: diag(2353, ts.DiagnosticCategory.Error, \"Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1_2353\", \"Object literal may only specify known properties, and '{0}' does not exist in type '{1}'.\"),\n This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found: diag(2354, ts.DiagnosticCategory.Error, \"This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found_2354\", \"This syntax requires an imported helper but module '{0}' cannot be found.\"),\n A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value: diag(2355, ts.DiagnosticCategory.Error, \"A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value_2355\", \"A function whose declared type is neither 'void' nor 'any' must return a value.\"),\n An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2356, ts.DiagnosticCategory.Error, \"An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type_2356\", \"An arithmetic operand must be of type 'any', 'number', 'bigint' or an enum type.\"),\n The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access: diag(2357, ts.DiagnosticCategory.Error, \"The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access_2357\", \"The operand of an increment or decrement operator must be a variable or a property access.\"),\n The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: diag(2358, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_paramete_2358\", \"The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter.\"),\n The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: diag(2359, ts.DiagnosticCategory.Error, \"The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_F_2359\", \"The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type.\"),\n The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol: diag(2360, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol_2360\", \"The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.\"),\n The_right_hand_side_of_an_in_expression_must_not_be_a_primitive: diag(2361, ts.DiagnosticCategory.Error, \"The_right_hand_side_of_an_in_expression_must_not_be_a_primitive_2361\", \"The right-hand side of an 'in' expression must not be a primitive.\"),\n The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2362, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2362\", \"The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.\"),\n The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type: diag(2363, ts.DiagnosticCategory.Error, \"The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type_2363\", \"The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type.\"),\n The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access: diag(2364, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access_2364\", \"The left-hand side of an assignment expression must be a variable or a property access.\"),\n Operator_0_cannot_be_applied_to_types_1_and_2: diag(2365, ts.DiagnosticCategory.Error, \"Operator_0_cannot_be_applied_to_types_1_and_2_2365\", \"Operator '{0}' cannot be applied to types '{1}' and '{2}'.\"),\n Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined: diag(2366, ts.DiagnosticCategory.Error, \"Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined_2366\", \"Function lacks ending return statement and return type does not include 'undefined'.\"),\n This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap: diag(2367, ts.DiagnosticCategory.Error, \"This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap_2367\", \"This condition will always return '{0}' since the types '{1}' and '{2}' have no overlap.\"),\n Type_parameter_name_cannot_be_0: diag(2368, ts.DiagnosticCategory.Error, \"Type_parameter_name_cannot_be_0_2368\", \"Type parameter name cannot be '{0}'.\"),\n A_parameter_property_is_only_allowed_in_a_constructor_implementation: diag(2369, ts.DiagnosticCategory.Error, \"A_parameter_property_is_only_allowed_in_a_constructor_implementation_2369\", \"A parameter property is only allowed in a constructor implementation.\"),\n A_rest_parameter_must_be_of_an_array_type: diag(2370, ts.DiagnosticCategory.Error, \"A_rest_parameter_must_be_of_an_array_type_2370\", \"A rest parameter must be of an array type.\"),\n A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation: diag(2371, ts.DiagnosticCategory.Error, \"A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation_2371\", \"A parameter initializer is only allowed in a function or constructor implementation.\"),\n Parameter_0_cannot_reference_itself: diag(2372, ts.DiagnosticCategory.Error, \"Parameter_0_cannot_reference_itself_2372\", \"Parameter '{0}' cannot reference itself.\"),\n Parameter_0_cannot_reference_identifier_1_declared_after_it: diag(2373, ts.DiagnosticCategory.Error, \"Parameter_0_cannot_reference_identifier_1_declared_after_it_2373\", \"Parameter '{0}' cannot reference identifier '{1}' declared after it.\"),\n Duplicate_index_signature_for_type_0: diag(2374, ts.DiagnosticCategory.Error, \"Duplicate_index_signature_for_type_0_2374\", \"Duplicate index signature for type '{0}'.\"),\n A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers: diag(2376, ts.DiagnosticCategory.Error, \"A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_proper_2376\", \"A 'super' call must be the first statement in the constructor when a class contains initialized properties, parameter properties, or private identifiers.\"),\n Constructors_for_derived_classes_must_contain_a_super_call: diag(2377, ts.DiagnosticCategory.Error, \"Constructors_for_derived_classes_must_contain_a_super_call_2377\", \"Constructors for derived classes must contain a 'super' call.\"),\n A_get_accessor_must_return_a_value: diag(2378, ts.DiagnosticCategory.Error, \"A_get_accessor_must_return_a_value_2378\", \"A 'get' accessor must return a value.\"),\n The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type: diag(2380, ts.DiagnosticCategory.Error, \"The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type_2380\", \"The return type of a 'get' accessor must be assignable to its 'set' accessor type\"),\n A_signature_with_an_implementation_cannot_use_a_string_literal_type: diag(2381, ts.DiagnosticCategory.Error, \"A_signature_with_an_implementation_cannot_use_a_string_literal_type_2381\", \"A signature with an implementation cannot use a string literal type.\"),\n Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature: diag(2382, ts.DiagnosticCategory.Error, \"Specialized_overload_signature_is_not_assignable_to_any_non_specialized_signature_2382\", \"Specialized overload signature is not assignable to any non-specialized signature.\"),\n Overload_signatures_must_all_be_exported_or_non_exported: diag(2383, ts.DiagnosticCategory.Error, \"Overload_signatures_must_all_be_exported_or_non_exported_2383\", \"Overload signatures must all be exported or non-exported.\"),\n Overload_signatures_must_all_be_ambient_or_non_ambient: diag(2384, ts.DiagnosticCategory.Error, \"Overload_signatures_must_all_be_ambient_or_non_ambient_2384\", \"Overload signatures must all be ambient or non-ambient.\"),\n Overload_signatures_must_all_be_public_private_or_protected: diag(2385, ts.DiagnosticCategory.Error, \"Overload_signatures_must_all_be_public_private_or_protected_2385\", \"Overload signatures must all be public, private or protected.\"),\n Overload_signatures_must_all_be_optional_or_required: diag(2386, ts.DiagnosticCategory.Error, \"Overload_signatures_must_all_be_optional_or_required_2386\", \"Overload signatures must all be optional or required.\"),\n Function_overload_must_be_static: diag(2387, ts.DiagnosticCategory.Error, \"Function_overload_must_be_static_2387\", \"Function overload must be static.\"),\n Function_overload_must_not_be_static: diag(2388, ts.DiagnosticCategory.Error, \"Function_overload_must_not_be_static_2388\", \"Function overload must not be static.\"),\n Function_implementation_name_must_be_0: diag(2389, ts.DiagnosticCategory.Error, \"Function_implementation_name_must_be_0_2389\", \"Function implementation name must be '{0}'.\"),\n Constructor_implementation_is_missing: diag(2390, ts.DiagnosticCategory.Error, \"Constructor_implementation_is_missing_2390\", \"Constructor implementation is missing.\"),\n Function_implementation_is_missing_or_not_immediately_following_the_declaration: diag(2391, ts.DiagnosticCategory.Error, \"Function_implementation_is_missing_or_not_immediately_following_the_declaration_2391\", \"Function implementation is missing or not immediately following the declaration.\"),\n Multiple_constructor_implementations_are_not_allowed: diag(2392, ts.DiagnosticCategory.Error, \"Multiple_constructor_implementations_are_not_allowed_2392\", \"Multiple constructor implementations are not allowed.\"),\n Duplicate_function_implementation: diag(2393, ts.DiagnosticCategory.Error, \"Duplicate_function_implementation_2393\", \"Duplicate function implementation.\"),\n This_overload_signature_is_not_compatible_with_its_implementation_signature: diag(2394, ts.DiagnosticCategory.Error, \"This_overload_signature_is_not_compatible_with_its_implementation_signature_2394\", \"This overload signature is not compatible with its implementation signature.\"),\n Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local: diag(2395, ts.DiagnosticCategory.Error, \"Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local_2395\", \"Individual declarations in merged declaration '{0}' must be all exported or all local.\"),\n Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters: diag(2396, ts.DiagnosticCategory.Error, \"Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters_2396\", \"Duplicate identifier 'arguments'. Compiler uses 'arguments' to initialize rest parameters.\"),\n Declaration_name_conflicts_with_built_in_global_identifier_0: diag(2397, ts.DiagnosticCategory.Error, \"Declaration_name_conflicts_with_built_in_global_identifier_0_2397\", \"Declaration name conflicts with built-in global identifier '{0}'.\"),\n constructor_cannot_be_used_as_a_parameter_property_name: diag(2398, ts.DiagnosticCategory.Error, \"constructor_cannot_be_used_as_a_parameter_property_name_2398\", \"'constructor' cannot be used as a parameter property name.\"),\n Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference: diag(2399, ts.DiagnosticCategory.Error, \"Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference_2399\", \"Duplicate identifier '_this'. Compiler uses variable declaration '_this' to capture 'this' reference.\"),\n Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference: diag(2400, ts.DiagnosticCategory.Error, \"Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference_2400\", \"Expression resolves to variable declaration '_this' that compiler uses to capture 'this' reference.\"),\n Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference: diag(2401, ts.DiagnosticCategory.Error, \"Duplicate_identifier_super_Compiler_uses_super_to_capture_base_class_reference_2401\", \"Duplicate identifier '_super'. Compiler uses '_super' to capture base class reference.\"),\n Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference: diag(2402, ts.DiagnosticCategory.Error, \"Expression_resolves_to_super_that_compiler_uses_to_capture_base_class_reference_2402\", \"Expression resolves to '_super' that compiler uses to capture base class reference.\"),\n Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2: diag(2403, ts.DiagnosticCategory.Error, \"Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_t_2403\", \"Subsequent variable declarations must have the same type. Variable '{0}' must be of type '{1}', but here has type '{2}'.\"),\n The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation: diag(2404, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation_2404\", \"The left-hand side of a 'for...in' statement cannot use a type annotation.\"),\n The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any: diag(2405, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any_2405\", \"The left-hand side of a 'for...in' statement must be of type 'string' or 'any'.\"),\n The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access: diag(2406, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access_2406\", \"The left-hand side of a 'for...in' statement must be a variable or a property access.\"),\n The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0: diag(2407, ts.DiagnosticCategory.Error, \"The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_2407\", \"The right-hand side of a 'for...in' statement must be of type 'any', an object type or a type parameter, but here has type '{0}'.\"),\n Setters_cannot_return_a_value: diag(2408, ts.DiagnosticCategory.Error, \"Setters_cannot_return_a_value_2408\", \"Setters cannot return a value.\"),\n Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class: diag(2409, ts.DiagnosticCategory.Error, \"Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class_2409\", \"Return type of constructor signature must be assignable to the instance type of the class.\"),\n The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any: diag(2410, ts.DiagnosticCategory.Error, \"The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any_2410\", \"The 'with' statement is not supported. All symbols in a 'with' block will have type 'any'.\"),\n Property_0_of_type_1_is_not_assignable_to_2_index_type_3: diag(2411, ts.DiagnosticCategory.Error, \"Property_0_of_type_1_is_not_assignable_to_2_index_type_3_2411\", \"Property '{0}' of type '{1}' is not assignable to '{2}' index type '{3}'.\"),\n _0_index_type_1_is_not_assignable_to_2_index_type_3: diag(2413, ts.DiagnosticCategory.Error, \"_0_index_type_1_is_not_assignable_to_2_index_type_3_2413\", \"'{0}' index type '{1}' is not assignable to '{2}' index type '{3}'.\"),\n Class_name_cannot_be_0: diag(2414, ts.DiagnosticCategory.Error, \"Class_name_cannot_be_0_2414\", \"Class name cannot be '{0}'.\"),\n Class_0_incorrectly_extends_base_class_1: diag(2415, ts.DiagnosticCategory.Error, \"Class_0_incorrectly_extends_base_class_1_2415\", \"Class '{0}' incorrectly extends base class '{1}'.\"),\n Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2: diag(2416, ts.DiagnosticCategory.Error, \"Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2_2416\", \"Property '{0}' in type '{1}' is not assignable to the same property in base type '{2}'.\"),\n Class_static_side_0_incorrectly_extends_base_class_static_side_1: diag(2417, ts.DiagnosticCategory.Error, \"Class_static_side_0_incorrectly_extends_base_class_static_side_1_2417\", \"Class static side '{0}' incorrectly extends base class static side '{1}'.\"),\n Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1: diag(2418, ts.DiagnosticCategory.Error, \"Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1_2418\", \"Type of computed property's value is '{0}', which is not assignable to type '{1}'.\"),\n Types_of_construct_signatures_are_incompatible: diag(2419, ts.DiagnosticCategory.Error, \"Types_of_construct_signatures_are_incompatible_2419\", \"Types of construct signatures are incompatible.\"),\n Class_0_incorrectly_implements_interface_1: diag(2420, ts.DiagnosticCategory.Error, \"Class_0_incorrectly_implements_interface_1_2420\", \"Class '{0}' incorrectly implements interface '{1}'.\"),\n A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2422, ts.DiagnosticCategory.Error, \"A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_memb_2422\", \"A class can only implement an object type or intersection of object types with statically known members.\"),\n Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor: diag(2423, ts.DiagnosticCategory.Error, \"Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_access_2423\", \"Class '{0}' defines instance member function '{1}', but extended class '{2}' defines it as instance member accessor.\"),\n Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2425, ts.DiagnosticCategory.Error, \"Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_functi_2425\", \"Class '{0}' defines instance member property '{1}', but extended class '{2}' defines it as instance member function.\"),\n Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function: diag(2426, ts.DiagnosticCategory.Error, \"Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_functi_2426\", \"Class '{0}' defines instance member accessor '{1}', but extended class '{2}' defines it as instance member function.\"),\n Interface_name_cannot_be_0: diag(2427, ts.DiagnosticCategory.Error, \"Interface_name_cannot_be_0_2427\", \"Interface name cannot be '{0}'.\"),\n All_declarations_of_0_must_have_identical_type_parameters: diag(2428, ts.DiagnosticCategory.Error, \"All_declarations_of_0_must_have_identical_type_parameters_2428\", \"All declarations of '{0}' must have identical type parameters.\"),\n Interface_0_incorrectly_extends_interface_1: diag(2430, ts.DiagnosticCategory.Error, \"Interface_0_incorrectly_extends_interface_1_2430\", \"Interface '{0}' incorrectly extends interface '{1}'.\"),\n Enum_name_cannot_be_0: diag(2431, ts.DiagnosticCategory.Error, \"Enum_name_cannot_be_0_2431\", \"Enum name cannot be '{0}'.\"),\n In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element: diag(2432, ts.DiagnosticCategory.Error, \"In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enu_2432\", \"In an enum with multiple declarations, only one declaration can omit an initializer for its first enum element.\"),\n A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged: diag(2433, ts.DiagnosticCategory.Error, \"A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merg_2433\", \"A namespace declaration cannot be in a different file from a class or function with which it is merged.\"),\n A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged: diag(2434, ts.DiagnosticCategory.Error, \"A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged_2434\", \"A namespace declaration cannot be located prior to a class or function with which it is merged.\"),\n Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces: diag(2435, ts.DiagnosticCategory.Error, \"Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces_2435\", \"Ambient modules cannot be nested in other modules or namespaces.\"),\n Ambient_module_declaration_cannot_specify_relative_module_name: diag(2436, ts.DiagnosticCategory.Error, \"Ambient_module_declaration_cannot_specify_relative_module_name_2436\", \"Ambient module declaration cannot specify relative module name.\"),\n Module_0_is_hidden_by_a_local_declaration_with_the_same_name: diag(2437, ts.DiagnosticCategory.Error, \"Module_0_is_hidden_by_a_local_declaration_with_the_same_name_2437\", \"Module '{0}' is hidden by a local declaration with the same name.\"),\n Import_name_cannot_be_0: diag(2438, ts.DiagnosticCategory.Error, \"Import_name_cannot_be_0_2438\", \"Import name cannot be '{0}'.\"),\n Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name: diag(2439, ts.DiagnosticCategory.Error, \"Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relati_2439\", \"Import or export declaration in an ambient module declaration cannot reference module through relative module name.\"),\n Import_declaration_conflicts_with_local_declaration_of_0: diag(2440, ts.DiagnosticCategory.Error, \"Import_declaration_conflicts_with_local_declaration_of_0_2440\", \"Import declaration conflicts with local declaration of '{0}'.\"),\n Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module: diag(2441, ts.DiagnosticCategory.Error, \"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_2441\", \"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module.\"),\n Types_have_separate_declarations_of_a_private_property_0: diag(2442, ts.DiagnosticCategory.Error, \"Types_have_separate_declarations_of_a_private_property_0_2442\", \"Types have separate declarations of a private property '{0}'.\"),\n Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2: diag(2443, ts.DiagnosticCategory.Error, \"Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2_2443\", \"Property '{0}' is protected but type '{1}' is not a class derived from '{2}'.\"),\n Property_0_is_protected_in_type_1_but_public_in_type_2: diag(2444, ts.DiagnosticCategory.Error, \"Property_0_is_protected_in_type_1_but_public_in_type_2_2444\", \"Property '{0}' is protected in type '{1}' but public in type '{2}'.\"),\n Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses: diag(2445, ts.DiagnosticCategory.Error, \"Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses_2445\", \"Property '{0}' is protected and only accessible within class '{1}' and its subclasses.\"),\n Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2: diag(2446, ts.DiagnosticCategory.Error, \"Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_cl_2446\", \"Property '{0}' is protected and only accessible through an instance of class '{1}'. This is an instance of class '{2}'.\"),\n The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead: diag(2447, ts.DiagnosticCategory.Error, \"The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead_2447\", \"The '{0}' operator is not allowed for boolean types. Consider using '{1}' instead.\"),\n Block_scoped_variable_0_used_before_its_declaration: diag(2448, ts.DiagnosticCategory.Error, \"Block_scoped_variable_0_used_before_its_declaration_2448\", \"Block-scoped variable '{0}' used before its declaration.\"),\n Class_0_used_before_its_declaration: diag(2449, ts.DiagnosticCategory.Error, \"Class_0_used_before_its_declaration_2449\", \"Class '{0}' used before its declaration.\"),\n Enum_0_used_before_its_declaration: diag(2450, ts.DiagnosticCategory.Error, \"Enum_0_used_before_its_declaration_2450\", \"Enum '{0}' used before its declaration.\"),\n Cannot_redeclare_block_scoped_variable_0: diag(2451, ts.DiagnosticCategory.Error, \"Cannot_redeclare_block_scoped_variable_0_2451\", \"Cannot redeclare block-scoped variable '{0}'.\"),\n An_enum_member_cannot_have_a_numeric_name: diag(2452, ts.DiagnosticCategory.Error, \"An_enum_member_cannot_have_a_numeric_name_2452\", \"An enum member cannot have a numeric name.\"),\n The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_type_arguments_explicitly: diag(2453, ts.DiagnosticCategory.Error, \"The_type_argument_for_type_parameter_0_cannot_be_inferred_from_the_usage_Consider_specifying_the_typ_2453\", \"The type argument for type parameter '{0}' cannot be inferred from the usage. Consider specifying the type arguments explicitly.\"),\n Variable_0_is_used_before_being_assigned: diag(2454, ts.DiagnosticCategory.Error, \"Variable_0_is_used_before_being_assigned_2454\", \"Variable '{0}' is used before being assigned.\"),\n Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0: diag(2455, ts.DiagnosticCategory.Error, \"Type_argument_candidate_1_is_not_a_valid_type_argument_because_it_is_not_a_supertype_of_candidate_0_2455\", \"Type argument candidate '{1}' is not a valid type argument because it is not a supertype of candidate '{0}'.\"),\n Type_alias_0_circularly_references_itself: diag(2456, ts.DiagnosticCategory.Error, \"Type_alias_0_circularly_references_itself_2456\", \"Type alias '{0}' circularly references itself.\"),\n Type_alias_name_cannot_be_0: diag(2457, ts.DiagnosticCategory.Error, \"Type_alias_name_cannot_be_0_2457\", \"Type alias name cannot be '{0}'.\"),\n An_AMD_module_cannot_have_multiple_name_assignments: diag(2458, ts.DiagnosticCategory.Error, \"An_AMD_module_cannot_have_multiple_name_assignments_2458\", \"An AMD module cannot have multiple name assignments.\"),\n Module_0_declares_1_locally_but_it_is_not_exported: diag(2459, ts.DiagnosticCategory.Error, \"Module_0_declares_1_locally_but_it_is_not_exported_2459\", \"Module '{0}' declares '{1}' locally, but it is not exported.\"),\n Module_0_declares_1_locally_but_it_is_exported_as_2: diag(2460, ts.DiagnosticCategory.Error, \"Module_0_declares_1_locally_but_it_is_exported_as_2_2460\", \"Module '{0}' declares '{1}' locally, but it is exported as '{2}'.\"),\n Type_0_is_not_an_array_type: diag(2461, ts.DiagnosticCategory.Error, \"Type_0_is_not_an_array_type_2461\", \"Type '{0}' is not an array type.\"),\n A_rest_element_must_be_last_in_a_destructuring_pattern: diag(2462, ts.DiagnosticCategory.Error, \"A_rest_element_must_be_last_in_a_destructuring_pattern_2462\", \"A rest element must be last in a destructuring pattern.\"),\n A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature: diag(2463, ts.DiagnosticCategory.Error, \"A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature_2463\", \"A binding pattern parameter cannot be optional in an implementation signature.\"),\n A_computed_property_name_must_be_of_type_string_number_symbol_or_any: diag(2464, ts.DiagnosticCategory.Error, \"A_computed_property_name_must_be_of_type_string_number_symbol_or_any_2464\", \"A computed property name must be of type 'string', 'number', 'symbol', or 'any'.\"),\n this_cannot_be_referenced_in_a_computed_property_name: diag(2465, ts.DiagnosticCategory.Error, \"this_cannot_be_referenced_in_a_computed_property_name_2465\", \"'this' cannot be referenced in a computed property name.\"),\n super_cannot_be_referenced_in_a_computed_property_name: diag(2466, ts.DiagnosticCategory.Error, \"super_cannot_be_referenced_in_a_computed_property_name_2466\", \"'super' cannot be referenced in a computed property name.\"),\n A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: diag(2467, ts.DiagnosticCategory.Error, \"A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type_2467\", \"A computed property name cannot reference a type parameter from its containing type.\"),\n Cannot_find_global_value_0: diag(2468, ts.DiagnosticCategory.Error, \"Cannot_find_global_value_0_2468\", \"Cannot find global value '{0}'.\"),\n The_0_operator_cannot_be_applied_to_type_symbol: diag(2469, ts.DiagnosticCategory.Error, \"The_0_operator_cannot_be_applied_to_type_symbol_2469\", \"The '{0}' operator cannot be applied to type 'symbol'.\"),\n Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object: diag(2470, ts.DiagnosticCategory.Error, \"Symbol_reference_does_not_refer_to_the_global_Symbol_constructor_object_2470\", \"'Symbol' reference does not refer to the global Symbol constructor object.\"),\n A_computed_property_name_of_the_form_0_must_be_of_type_symbol: diag(2471, ts.DiagnosticCategory.Error, \"A_computed_property_name_of_the_form_0_must_be_of_type_symbol_2471\", \"A computed property name of the form '{0}' must be of type 'symbol'.\"),\n Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher: diag(2472, ts.DiagnosticCategory.Error, \"Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher_2472\", \"Spread operator in 'new' expressions is only available when targeting ECMAScript 5 and higher.\"),\n Enum_declarations_must_all_be_const_or_non_const: diag(2473, ts.DiagnosticCategory.Error, \"Enum_declarations_must_all_be_const_or_non_const_2473\", \"Enum declarations must all be const or non-const.\"),\n const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values: diag(2474, ts.DiagnosticCategory.Error, \"const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values_2474\", \"const enum member initializers can only contain literal values and other computed enum values.\"),\n const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query: diag(2475, ts.DiagnosticCategory.Error, \"const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_im_2475\", \"'const' enums can only be used in property or index access expressions or the right hand side of an import declaration or export assignment or type query.\"),\n A_const_enum_member_can_only_be_accessed_using_a_string_literal: diag(2476, ts.DiagnosticCategory.Error, \"A_const_enum_member_can_only_be_accessed_using_a_string_literal_2476\", \"A const enum member can only be accessed using a string literal.\"),\n const_enum_member_initializer_was_evaluated_to_a_non_finite_value: diag(2477, ts.DiagnosticCategory.Error, \"const_enum_member_initializer_was_evaluated_to_a_non_finite_value_2477\", \"'const' enum member initializer was evaluated to a non-finite value.\"),\n const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN: diag(2478, ts.DiagnosticCategory.Error, \"const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN_2478\", \"'const' enum member initializer was evaluated to disallowed value 'NaN'.\"),\n Property_0_does_not_exist_on_const_enum_1: diag(2479, ts.DiagnosticCategory.Error, \"Property_0_does_not_exist_on_const_enum_1_2479\", \"Property '{0}' does not exist on 'const' enum '{1}'.\"),\n let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: diag(2480, ts.DiagnosticCategory.Error, \"let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations_2480\", \"'let' is not allowed to be used as a name in 'let' or 'const' declarations.\"),\n Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: diag(2481, ts.DiagnosticCategory.Error, \"Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1_2481\", \"Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'.\"),\n The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: diag(2483, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation_2483\", \"The left-hand side of a 'for...of' statement cannot use a type annotation.\"),\n Export_declaration_conflicts_with_exported_declaration_of_0: diag(2484, ts.DiagnosticCategory.Error, \"Export_declaration_conflicts_with_exported_declaration_of_0_2484\", \"Export declaration conflicts with exported declaration of '{0}'.\"),\n The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access: diag(2487, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access_2487\", \"The left-hand side of a 'for...of' statement must be a variable or a property access.\"),\n Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2488, ts.DiagnosticCategory.Error, \"Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator_2488\", \"Type '{0}' must have a '[Symbol.iterator]()' method that returns an iterator.\"),\n An_iterator_must_have_a_next_method: diag(2489, ts.DiagnosticCategory.Error, \"An_iterator_must_have_a_next_method_2489\", \"An iterator must have a 'next()' method.\"),\n The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property: diag(2490, ts.DiagnosticCategory.Error, \"The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property_2490\", \"The type returned by the '{0}()' method of an iterator must have a 'value' property.\"),\n The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: diag(2491, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern_2491\", \"The left-hand side of a 'for...in' statement cannot be a destructuring pattern.\"),\n Cannot_redeclare_identifier_0_in_catch_clause: diag(2492, ts.DiagnosticCategory.Error, \"Cannot_redeclare_identifier_0_in_catch_clause_2492\", \"Cannot redeclare identifier '{0}' in catch clause.\"),\n Tuple_type_0_of_length_1_has_no_element_at_index_2: diag(2493, ts.DiagnosticCategory.Error, \"Tuple_type_0_of_length_1_has_no_element_at_index_2_2493\", \"Tuple type '{0}' of length '{1}' has no element at index '{2}'.\"),\n Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: diag(2494, ts.DiagnosticCategory.Error, \"Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher_2494\", \"Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.\"),\n Type_0_is_not_an_array_type_or_a_string_type: diag(2495, ts.DiagnosticCategory.Error, \"Type_0_is_not_an_array_type_or_a_string_type_2495\", \"Type '{0}' is not an array type or a string type.\"),\n The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression: diag(2496, ts.DiagnosticCategory.Error, \"The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_stand_2496\", \"The 'arguments' object cannot be referenced in an arrow function in ES3 and ES5. Consider using a standard function expression.\"),\n This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export: diag(2497, ts.DiagnosticCategory.Error, \"This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_2497\", \"This module can only be referenced with ECMAScript imports/exports by turning on the '{0}' flag and referencing its default export.\"),\n Module_0_uses_export_and_cannot_be_used_with_export_Asterisk: diag(2498, ts.DiagnosticCategory.Error, \"Module_0_uses_export_and_cannot_be_used_with_export_Asterisk_2498\", \"Module '{0}' uses 'export =' and cannot be used with 'export *'.\"),\n An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2499, ts.DiagnosticCategory.Error, \"An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments_2499\", \"An interface can only extend an identifier/qualified-name with optional type arguments.\"),\n A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments: diag(2500, ts.DiagnosticCategory.Error, \"A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments_2500\", \"A class can only implement an identifier/qualified-name with optional type arguments.\"),\n A_rest_element_cannot_contain_a_binding_pattern: diag(2501, ts.DiagnosticCategory.Error, \"A_rest_element_cannot_contain_a_binding_pattern_2501\", \"A rest element cannot contain a binding pattern.\"),\n _0_is_referenced_directly_or_indirectly_in_its_own_type_annotation: diag(2502, ts.DiagnosticCategory.Error, \"_0_is_referenced_directly_or_indirectly_in_its_own_type_annotation_2502\", \"'{0}' is referenced directly or indirectly in its own type annotation.\"),\n Cannot_find_namespace_0: diag(2503, ts.DiagnosticCategory.Error, \"Cannot_find_namespace_0_2503\", \"Cannot find namespace '{0}'.\"),\n Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator: diag(2504, ts.DiagnosticCategory.Error, \"Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator_2504\", \"Type '{0}' must have a '[Symbol.asyncIterator]()' method that returns an async iterator.\"),\n A_generator_cannot_have_a_void_type_annotation: diag(2505, ts.DiagnosticCategory.Error, \"A_generator_cannot_have_a_void_type_annotation_2505\", \"A generator cannot have a 'void' type annotation.\"),\n _0_is_referenced_directly_or_indirectly_in_its_own_base_expression: diag(2506, ts.DiagnosticCategory.Error, \"_0_is_referenced_directly_or_indirectly_in_its_own_base_expression_2506\", \"'{0}' is referenced directly or indirectly in its own base expression.\"),\n Type_0_is_not_a_constructor_function_type: diag(2507, ts.DiagnosticCategory.Error, \"Type_0_is_not_a_constructor_function_type_2507\", \"Type '{0}' is not a constructor function type.\"),\n No_base_constructor_has_the_specified_number_of_type_arguments: diag(2508, ts.DiagnosticCategory.Error, \"No_base_constructor_has_the_specified_number_of_type_arguments_2508\", \"No base constructor has the specified number of type arguments.\"),\n Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members: diag(2509, ts.DiagnosticCategory.Error, \"Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_2509\", \"Base constructor return type '{0}' is not an object type or intersection of object types with statically known members.\"),\n Base_constructors_must_all_have_the_same_return_type: diag(2510, ts.DiagnosticCategory.Error, \"Base_constructors_must_all_have_the_same_return_type_2510\", \"Base constructors must all have the same return type.\"),\n Cannot_create_an_instance_of_an_abstract_class: diag(2511, ts.DiagnosticCategory.Error, \"Cannot_create_an_instance_of_an_abstract_class_2511\", \"Cannot create an instance of an abstract class.\"),\n Overload_signatures_must_all_be_abstract_or_non_abstract: diag(2512, ts.DiagnosticCategory.Error, \"Overload_signatures_must_all_be_abstract_or_non_abstract_2512\", \"Overload signatures must all be abstract or non-abstract.\"),\n Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression: diag(2513, ts.DiagnosticCategory.Error, \"Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression_2513\", \"Abstract method '{0}' in class '{1}' cannot be accessed via super expression.\"),\n Classes_containing_abstract_methods_must_be_marked_abstract: diag(2514, ts.DiagnosticCategory.Error, \"Classes_containing_abstract_methods_must_be_marked_abstract_2514\", \"Classes containing abstract methods must be marked abstract.\"),\n Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2: diag(2515, ts.DiagnosticCategory.Error, \"Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2_2515\", \"Non-abstract class '{0}' does not implement inherited abstract member '{1}' from class '{2}'.\"),\n All_declarations_of_an_abstract_method_must_be_consecutive: diag(2516, ts.DiagnosticCategory.Error, \"All_declarations_of_an_abstract_method_must_be_consecutive_2516\", \"All declarations of an abstract method must be consecutive.\"),\n Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type: diag(2517, ts.DiagnosticCategory.Error, \"Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type_2517\", \"Cannot assign an abstract constructor type to a non-abstract constructor type.\"),\n A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard: diag(2518, ts.DiagnosticCategory.Error, \"A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard_2518\", \"A 'this'-based type guard is not compatible with a parameter-based type guard.\"),\n An_async_iterator_must_have_a_next_method: diag(2519, ts.DiagnosticCategory.Error, \"An_async_iterator_must_have_a_next_method_2519\", \"An async iterator must have a 'next()' method.\"),\n Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions: diag(2520, ts.DiagnosticCategory.Error, \"Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions_2520\", \"Duplicate identifier '{0}'. Compiler uses declaration '{1}' to support async functions.\"),\n Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions: diag(2521, ts.DiagnosticCategory.Error, \"Expression_resolves_to_variable_declaration_0_that_compiler_uses_to_support_async_functions_2521\", \"Expression resolves to variable declaration '{0}' that compiler uses to support async functions.\"),\n The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method: diag(2522, ts.DiagnosticCategory.Error, \"The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_usi_2522\", \"The 'arguments' object cannot be referenced in an async function or method in ES3 and ES5. Consider using a standard function or method.\"),\n yield_expressions_cannot_be_used_in_a_parameter_initializer: diag(2523, ts.DiagnosticCategory.Error, \"yield_expressions_cannot_be_used_in_a_parameter_initializer_2523\", \"'yield' expressions cannot be used in a parameter initializer.\"),\n await_expressions_cannot_be_used_in_a_parameter_initializer: diag(2524, ts.DiagnosticCategory.Error, \"await_expressions_cannot_be_used_in_a_parameter_initializer_2524\", \"'await' expressions cannot be used in a parameter initializer.\"),\n Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: diag(2525, ts.DiagnosticCategory.Error, \"Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value_2525\", \"Initializer provides no value for this binding element and the binding element has no default value.\"),\n A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface: diag(2526, ts.DiagnosticCategory.Error, \"A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface_2526\", \"A 'this' type is available only in a non-static member of a class or interface.\"),\n The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary: diag(2527, ts.DiagnosticCategory.Error, \"The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary_2527\", \"The inferred type of '{0}' references an inaccessible '{1}' type. A type annotation is necessary.\"),\n A_module_cannot_have_multiple_default_exports: diag(2528, ts.DiagnosticCategory.Error, \"A_module_cannot_have_multiple_default_exports_2528\", \"A module cannot have multiple default exports.\"),\n Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions: diag(2529, ts.DiagnosticCategory.Error, \"Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_func_2529\", \"Duplicate identifier '{0}'. Compiler reserves name '{1}' in top level scope of a module containing async functions.\"),\n Property_0_is_incompatible_with_index_signature: diag(2530, ts.DiagnosticCategory.Error, \"Property_0_is_incompatible_with_index_signature_2530\", \"Property '{0}' is incompatible with index signature.\"),\n Object_is_possibly_null: diag(2531, ts.DiagnosticCategory.Error, \"Object_is_possibly_null_2531\", \"Object is possibly 'null'.\"),\n Object_is_possibly_undefined: diag(2532, ts.DiagnosticCategory.Error, \"Object_is_possibly_undefined_2532\", \"Object is possibly 'undefined'.\"),\n Object_is_possibly_null_or_undefined: diag(2533, ts.DiagnosticCategory.Error, \"Object_is_possibly_null_or_undefined_2533\", \"Object is possibly 'null' or 'undefined'.\"),\n A_function_returning_never_cannot_have_a_reachable_end_point: diag(2534, ts.DiagnosticCategory.Error, \"A_function_returning_never_cannot_have_a_reachable_end_point_2534\", \"A function returning 'never' cannot have a reachable end point.\"),\n Enum_type_0_has_members_with_initializers_that_are_not_literals: diag(2535, ts.DiagnosticCategory.Error, \"Enum_type_0_has_members_with_initializers_that_are_not_literals_2535\", \"Enum type '{0}' has members with initializers that are not literals.\"),\n Type_0_cannot_be_used_to_index_type_1: diag(2536, ts.DiagnosticCategory.Error, \"Type_0_cannot_be_used_to_index_type_1_2536\", \"Type '{0}' cannot be used to index type '{1}'.\"),\n Type_0_has_no_matching_index_signature_for_type_1: diag(2537, ts.DiagnosticCategory.Error, \"Type_0_has_no_matching_index_signature_for_type_1_2537\", \"Type '{0}' has no matching index signature for type '{1}'.\"),\n Type_0_cannot_be_used_as_an_index_type: diag(2538, ts.DiagnosticCategory.Error, \"Type_0_cannot_be_used_as_an_index_type_2538\", \"Type '{0}' cannot be used as an index type.\"),\n Cannot_assign_to_0_because_it_is_not_a_variable: diag(2539, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_not_a_variable_2539\", \"Cannot assign to '{0}' because it is not a variable.\"),\n Cannot_assign_to_0_because_it_is_a_read_only_property: diag(2540, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_a_read_only_property_2540\", \"Cannot assign to '{0}' because it is a read-only property.\"),\n The_target_of_an_assignment_must_be_a_variable_or_a_property_access: diag(2541, ts.DiagnosticCategory.Error, \"The_target_of_an_assignment_must_be_a_variable_or_a_property_access_2541\", \"The target of an assignment must be a variable or a property access.\"),\n Index_signature_in_type_0_only_permits_reading: diag(2542, ts.DiagnosticCategory.Error, \"Index_signature_in_type_0_only_permits_reading_2542\", \"Index signature in type '{0}' only permits reading.\"),\n Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference: diag(2543, ts.DiagnosticCategory.Error, \"Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_me_2543\", \"Duplicate identifier '_newTarget'. Compiler uses variable declaration '_newTarget' to capture 'new.target' meta-property reference.\"),\n Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference: diag(2544, ts.DiagnosticCategory.Error, \"Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta__2544\", \"Expression resolves to variable declaration '_newTarget' that compiler uses to capture 'new.target' meta-property reference.\"),\n A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any: diag(2545, ts.DiagnosticCategory.Error, \"A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any_2545\", \"A mixin class must have a constructor with a single rest parameter of type 'any[]'.\"),\n The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property: diag(2547, ts.DiagnosticCategory.Error, \"The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_pro_2547\", \"The type returned by the '{0}()' method of an async iterator must be a promise for a type with a 'value' property.\"),\n Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2548, ts.DiagnosticCategory.Error, \"Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator_2548\", \"Type '{0}' is not an array type or does not have a '[Symbol.iterator]()' method that returns an iterator.\"),\n Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator: diag(2549, ts.DiagnosticCategory.Error, \"Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns__2549\", \"Type '{0}' is not an array type or a string type or does not have a '[Symbol.iterator]()' method that returns an iterator.\"),\n Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later: diag(2550, ts.DiagnosticCategory.Error, \"Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_c_2550\", \"Property '{0}' does not exist on type '{1}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{2}' or later.\"),\n Property_0_does_not_exist_on_type_1_Did_you_mean_2: diag(2551, ts.DiagnosticCategory.Error, \"Property_0_does_not_exist_on_type_1_Did_you_mean_2_2551\", \"Property '{0}' does not exist on type '{1}'. Did you mean '{2}'?\"),\n Cannot_find_name_0_Did_you_mean_1: diag(2552, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Did_you_mean_1_2552\", \"Cannot find name '{0}'. Did you mean '{1}'?\"),\n Computed_values_are_not_permitted_in_an_enum_with_string_valued_members: diag(2553, ts.DiagnosticCategory.Error, \"Computed_values_are_not_permitted_in_an_enum_with_string_valued_members_2553\", \"Computed values are not permitted in an enum with string valued members.\"),\n Expected_0_arguments_but_got_1: diag(2554, ts.DiagnosticCategory.Error, \"Expected_0_arguments_but_got_1_2554\", \"Expected {0} arguments, but got {1}.\"),\n Expected_at_least_0_arguments_but_got_1: diag(2555, ts.DiagnosticCategory.Error, \"Expected_at_least_0_arguments_but_got_1_2555\", \"Expected at least {0} arguments, but got {1}.\"),\n A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter: diag(2556, ts.DiagnosticCategory.Error, \"A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter_2556\", \"A spread argument must either have a tuple type or be passed to a rest parameter.\"),\n Expected_0_type_arguments_but_got_1: diag(2558, ts.DiagnosticCategory.Error, \"Expected_0_type_arguments_but_got_1_2558\", \"Expected {0} type arguments, but got {1}.\"),\n Type_0_has_no_properties_in_common_with_type_1: diag(2559, ts.DiagnosticCategory.Error, \"Type_0_has_no_properties_in_common_with_type_1_2559\", \"Type '{0}' has no properties in common with type '{1}'.\"),\n Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it: diag(2560, ts.DiagnosticCategory.Error, \"Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it_2560\", \"Value of type '{0}' has no properties in common with type '{1}'. Did you mean to call it?\"),\n Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2: diag(2561, ts.DiagnosticCategory.Error, \"Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_writ_2561\", \"Object literal may only specify known properties, but '{0}' does not exist in type '{1}'. Did you mean to write '{2}'?\"),\n Base_class_expressions_cannot_reference_class_type_parameters: diag(2562, ts.DiagnosticCategory.Error, \"Base_class_expressions_cannot_reference_class_type_parameters_2562\", \"Base class expressions cannot reference class type parameters.\"),\n The_containing_function_or_module_body_is_too_large_for_control_flow_analysis: diag(2563, ts.DiagnosticCategory.Error, \"The_containing_function_or_module_body_is_too_large_for_control_flow_analysis_2563\", \"The containing function or module body is too large for control flow analysis.\"),\n Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor: diag(2564, ts.DiagnosticCategory.Error, \"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor_2564\", \"Property '{0}' has no initializer and is not definitely assigned in the constructor.\"),\n Property_0_is_used_before_being_assigned: diag(2565, ts.DiagnosticCategory.Error, \"Property_0_is_used_before_being_assigned_2565\", \"Property '{0}' is used before being assigned.\"),\n A_rest_element_cannot_have_a_property_name: diag(2566, ts.DiagnosticCategory.Error, \"A_rest_element_cannot_have_a_property_name_2566\", \"A rest element cannot have a property name.\"),\n Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations: diag(2567, ts.DiagnosticCategory.Error, \"Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations_2567\", \"Enum declarations can only merge with namespace or other enum declarations.\"),\n Property_0_may_not_exist_on_type_1_Did_you_mean_2: diag(2568, ts.DiagnosticCategory.Error, \"Property_0_may_not_exist_on_type_1_Did_you_mean_2_2568\", \"Property '{0}' may not exist on type '{1}'. Did you mean '{2}'?\"),\n Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators: diag(2569, ts.DiagnosticCategory.Error, \"Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterati_2569\", \"Type '{0}' is not an array type or a string type. Use compiler option '--downlevelIteration' to allow iterating of iterators.\"),\n Could_not_find_name_0_Did_you_mean_1: diag(2570, ts.DiagnosticCategory.Error, \"Could_not_find_name_0_Did_you_mean_1_2570\", \"Could not find name '{0}'. Did you mean '{1}'?\"),\n Object_is_of_type_unknown: diag(2571, ts.DiagnosticCategory.Error, \"Object_is_of_type_unknown_2571\", \"Object is of type 'unknown'.\"),\n Rest_signatures_are_incompatible: diag(2572, ts.DiagnosticCategory.Error, \"Rest_signatures_are_incompatible_2572\", \"Rest signatures are incompatible.\"),\n Property_0_is_incompatible_with_rest_element_type: diag(2573, ts.DiagnosticCategory.Error, \"Property_0_is_incompatible_with_rest_element_type_2573\", \"Property '{0}' is incompatible with rest element type.\"),\n A_rest_element_type_must_be_an_array_type: diag(2574, ts.DiagnosticCategory.Error, \"A_rest_element_type_must_be_an_array_type_2574\", \"A rest element type must be an array type.\"),\n No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments: diag(2575, ts.DiagnosticCategory.Error, \"No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments_2575\", \"No overload expects {0} arguments, but overloads do exist that expect either {1} or {2} arguments.\"),\n Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead: diag(2576, ts.DiagnosticCategory.Error, \"Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead_2576\", \"Property '{0}' does not exist on type '{1}'. Did you mean to access the static member '{2}' instead?\"),\n Return_type_annotation_circularly_references_itself: diag(2577, ts.DiagnosticCategory.Error, \"Return_type_annotation_circularly_references_itself_2577\", \"Return type annotation circularly references itself.\"),\n Unused_ts_expect_error_directive: diag(2578, ts.DiagnosticCategory.Error, \"Unused_ts_expect_error_directive_2578\", \"Unused '@ts-expect-error' directive.\"),\n Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode: diag(2580, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2580\", \"Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node`.\"),\n Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery: diag(2581, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2581\", \"Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery`.\"),\n Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha: diag(2582, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2582\", \"Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha`.\"),\n Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later: diag(2583, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2583\", \"Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to '{1}' or later.\"),\n Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom: diag(2584, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2584\", \"Cannot find name '{0}'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.\"),\n _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later: diag(2585, ts.DiagnosticCategory.Error, \"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_2585\", \"'{0}' only refers to a type, but is being used as a value here. Do you need to change your target library? Try changing the 'lib' compiler option to es2015 or later.\"),\n Enum_type_0_circularly_references_itself: diag(2586, ts.DiagnosticCategory.Error, \"Enum_type_0_circularly_references_itself_2586\", \"Enum type '{0}' circularly references itself.\"),\n JSDoc_type_0_circularly_references_itself: diag(2587, ts.DiagnosticCategory.Error, \"JSDoc_type_0_circularly_references_itself_2587\", \"JSDoc type '{0}' circularly references itself.\"),\n Cannot_assign_to_0_because_it_is_a_constant: diag(2588, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_a_constant_2588\", \"Cannot assign to '{0}' because it is a constant.\"),\n Type_instantiation_is_excessively_deep_and_possibly_infinite: diag(2589, ts.DiagnosticCategory.Error, \"Type_instantiation_is_excessively_deep_and_possibly_infinite_2589\", \"Type instantiation is excessively deep and possibly infinite.\"),\n Expression_produces_a_union_type_that_is_too_complex_to_represent: diag(2590, ts.DiagnosticCategory.Error, \"Expression_produces_a_union_type_that_is_too_complex_to_represent_2590\", \"Expression produces a union type that is too complex to represent.\"),\n Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig: diag(2591, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashno_2591\", \"Cannot find name '{0}'. Do you need to install type definitions for node? Try `npm i --save-dev @types/node` and then add 'node' to the types field in your tsconfig.\"),\n Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig: diag(2592, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slash_2592\", \"Cannot find name '{0}'. Do you need to install type definitions for jQuery? Try `npm i --save-dev @types/jquery` and then add 'jquery' to the types field in your tsconfig.\"),\n Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig: diag(2593, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_type_2593\", \"Cannot find name '{0}'. Do you need to install type definitions for a test runner? Try `npm i --save-dev @types/jest` or `npm i --save-dev @types/mocha` and then add 'jest' or 'mocha' to the types field in your tsconfig.\"),\n This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag: diag(2594, ts.DiagnosticCategory.Error, \"This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the__2594\", \"This module is declared with using 'export =', and can only be used with a default import when using the '{0}' flag.\"),\n _0_can_only_be_imported_by_using_a_default_import: diag(2595, ts.DiagnosticCategory.Error, \"_0_can_only_be_imported_by_using_a_default_import_2595\", \"'{0}' can only be imported by using a default import.\"),\n _0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2596, ts.DiagnosticCategory.Error, \"_0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import_2596\", \"'{0}' can only be imported by turning on the 'esModuleInterop' flag and using a default import.\"),\n _0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import: diag(2597, ts.DiagnosticCategory.Error, \"_0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import_2597\", \"'{0}' can only be imported by using a 'require' call or by using a default import.\"),\n _0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2598, ts.DiagnosticCategory.Error, \"_0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using__2598\", \"'{0}' can only be imported by using a 'require' call or by turning on the 'esModuleInterop' flag and using a default import.\"),\n JSX_element_attributes_type_0_may_not_be_a_union_type: diag(2600, ts.DiagnosticCategory.Error, \"JSX_element_attributes_type_0_may_not_be_a_union_type_2600\", \"JSX element attributes type '{0}' may not be a union type.\"),\n The_return_type_of_a_JSX_element_constructor_must_return_an_object_type: diag(2601, ts.DiagnosticCategory.Error, \"The_return_type_of_a_JSX_element_constructor_must_return_an_object_type_2601\", \"The return type of a JSX element constructor must return an object type.\"),\n JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist: diag(2602, ts.DiagnosticCategory.Error, \"JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist_2602\", \"JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.\"),\n Property_0_in_type_1_is_not_assignable_to_type_2: diag(2603, ts.DiagnosticCategory.Error, \"Property_0_in_type_1_is_not_assignable_to_type_2_2603\", \"Property '{0}' in type '{1}' is not assignable to type '{2}'.\"),\n JSX_element_type_0_does_not_have_any_construct_or_call_signatures: diag(2604, ts.DiagnosticCategory.Error, \"JSX_element_type_0_does_not_have_any_construct_or_call_signatures_2604\", \"JSX element type '{0}' does not have any construct or call signatures.\"),\n JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements: diag(2605, ts.DiagnosticCategory.Error, \"JSX_element_type_0_is_not_a_constructor_function_for_JSX_elements_2605\", \"JSX element type '{0}' is not a constructor function for JSX elements.\"),\n Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property: diag(2606, ts.DiagnosticCategory.Error, \"Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property_2606\", \"Property '{0}' of JSX spread attribute is not assignable to target property.\"),\n JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property: diag(2607, ts.DiagnosticCategory.Error, \"JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property_2607\", \"JSX element class does not support attributes because it does not have a '{0}' property.\"),\n The_global_type_JSX_0_may_not_have_more_than_one_property: diag(2608, ts.DiagnosticCategory.Error, \"The_global_type_JSX_0_may_not_have_more_than_one_property_2608\", \"The global type 'JSX.{0}' may not have more than one property.\"),\n JSX_spread_child_must_be_an_array_type: diag(2609, ts.DiagnosticCategory.Error, \"JSX_spread_child_must_be_an_array_type_2609\", \"JSX spread child must be an array type.\"),\n _0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property: diag(2610, ts.DiagnosticCategory.Error, \"_0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property_2610\", \"'{0}' is defined as an accessor in class '{1}', but is overridden here in '{2}' as an instance property.\"),\n _0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor: diag(2611, ts.DiagnosticCategory.Error, \"_0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor_2611\", \"'{0}' is defined as a property in class '{1}', but is overridden here in '{2}' as an accessor.\"),\n Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration: diag(2612, ts.DiagnosticCategory.Error, \"Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_2612\", \"Property '{0}' will overwrite the base property in '{1}'. If this is intentional, add an initializer. Otherwise, add a 'declare' modifier or remove the redundant declaration.\"),\n Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead: diag(2613, ts.DiagnosticCategory.Error, \"Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead_2613\", \"Module '{0}' has no default export. Did you mean to use 'import { {1} } from {0}' instead?\"),\n Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead: diag(2614, ts.DiagnosticCategory.Error, \"Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead_2614\", \"Module '{0}' has no exported member '{1}'. Did you mean to use 'import {1} from {0}' instead?\"),\n Type_of_property_0_circularly_references_itself_in_mapped_type_1: diag(2615, ts.DiagnosticCategory.Error, \"Type_of_property_0_circularly_references_itself_in_mapped_type_1_2615\", \"Type of property '{0}' circularly references itself in mapped type '{1}'.\"),\n _0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import: diag(2616, ts.DiagnosticCategory.Error, \"_0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import_2616\", \"'{0}' can only be imported by using 'import {1} = require({2})' or a default import.\"),\n _0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import: diag(2617, ts.DiagnosticCategory.Error, \"_0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_us_2617\", \"'{0}' can only be imported by using 'import {1} = require({2})' or by turning on the 'esModuleInterop' flag and using a default import.\"),\n Source_has_0_element_s_but_target_requires_1: diag(2618, ts.DiagnosticCategory.Error, \"Source_has_0_element_s_but_target_requires_1_2618\", \"Source has {0} element(s) but target requires {1}.\"),\n Source_has_0_element_s_but_target_allows_only_1: diag(2619, ts.DiagnosticCategory.Error, \"Source_has_0_element_s_but_target_allows_only_1_2619\", \"Source has {0} element(s) but target allows only {1}.\"),\n Target_requires_0_element_s_but_source_may_have_fewer: diag(2620, ts.DiagnosticCategory.Error, \"Target_requires_0_element_s_but_source_may_have_fewer_2620\", \"Target requires {0} element(s) but source may have fewer.\"),\n Target_allows_only_0_element_s_but_source_may_have_more: diag(2621, ts.DiagnosticCategory.Error, \"Target_allows_only_0_element_s_but_source_may_have_more_2621\", \"Target allows only {0} element(s) but source may have more.\"),\n Source_provides_no_match_for_required_element_at_position_0_in_target: diag(2623, ts.DiagnosticCategory.Error, \"Source_provides_no_match_for_required_element_at_position_0_in_target_2623\", \"Source provides no match for required element at position {0} in target.\"),\n Source_provides_no_match_for_variadic_element_at_position_0_in_target: diag(2624, ts.DiagnosticCategory.Error, \"Source_provides_no_match_for_variadic_element_at_position_0_in_target_2624\", \"Source provides no match for variadic element at position {0} in target.\"),\n Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target: diag(2625, ts.DiagnosticCategory.Error, \"Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target_2625\", \"Variadic element at position {0} in source does not match element at position {1} in target.\"),\n Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target: diag(2626, ts.DiagnosticCategory.Error, \"Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target_2626\", \"Type at position {0} in source is not compatible with type at position {1} in target.\"),\n Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target: diag(2627, ts.DiagnosticCategory.Error, \"Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target_2627\", \"Type at positions {0} through {1} in source is not compatible with type at position {2} in target.\"),\n Cannot_assign_to_0_because_it_is_an_enum: diag(2628, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_an_enum_2628\", \"Cannot assign to '{0}' because it is an enum.\"),\n Cannot_assign_to_0_because_it_is_a_class: diag(2629, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_a_class_2629\", \"Cannot assign to '{0}' because it is a class.\"),\n Cannot_assign_to_0_because_it_is_a_function: diag(2630, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_a_function_2630\", \"Cannot assign to '{0}' because it is a function.\"),\n Cannot_assign_to_0_because_it_is_a_namespace: diag(2631, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_a_namespace_2631\", \"Cannot assign to '{0}' because it is a namespace.\"),\n Cannot_assign_to_0_because_it_is_an_import: diag(2632, ts.DiagnosticCategory.Error, \"Cannot_assign_to_0_because_it_is_an_import_2632\", \"Cannot assign to '{0}' because it is an import.\"),\n JSX_property_access_expressions_cannot_include_JSX_namespace_names: diag(2633, ts.DiagnosticCategory.Error, \"JSX_property_access_expressions_cannot_include_JSX_namespace_names_2633\", \"JSX property access expressions cannot include JSX namespace names\"),\n _0_index_signatures_are_incompatible: diag(2634, ts.DiagnosticCategory.Error, \"_0_index_signatures_are_incompatible_2634\", \"'{0}' index signatures are incompatible.\"),\n Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity: diag(2649, ts.DiagnosticCategory.Error, \"Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity_2649\", \"Cannot augment module '{0}' with value exports because it resolves to a non-module entity.\"),\n A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums: diag(2651, ts.DiagnosticCategory.Error, \"A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_memb_2651\", \"A member initializer in a enum declaration cannot reference members declared after it, including members defined in other enums.\"),\n Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead: diag(2652, ts.DiagnosticCategory.Error, \"Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_d_2652\", \"Merged declaration '{0}' cannot include a default export declaration. Consider adding a separate 'export default {0}' declaration instead.\"),\n Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1: diag(2653, ts.DiagnosticCategory.Error, \"Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1_2653\", \"Non-abstract class expression does not implement inherited abstract member '{0}' from class '{1}'.\"),\n Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_package_author_to_update_the_package_definition: diag(2654, ts.DiagnosticCategory.Error, \"Exported_external_package_typings_file_cannot_contain_tripleslash_references_Please_contact_the_pack_2654\", \"Exported external package typings file cannot contain tripleslash references. Please contact the package author to update the package definition.\"),\n Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_the_package_definition: diag(2656, ts.DiagnosticCategory.Error, \"Exported_external_package_typings_file_0_is_not_a_module_Please_contact_the_package_author_to_update_2656\", \"Exported external package typings file '{0}' is not a module. Please contact the package author to update the package definition.\"),\n JSX_expressions_must_have_one_parent_element: diag(2657, ts.DiagnosticCategory.Error, \"JSX_expressions_must_have_one_parent_element_2657\", \"JSX expressions must have one parent element.\"),\n Type_0_provides_no_match_for_the_signature_1: diag(2658, ts.DiagnosticCategory.Error, \"Type_0_provides_no_match_for_the_signature_1_2658\", \"Type '{0}' provides no match for the signature '{1}'.\"),\n super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher: diag(2659, ts.DiagnosticCategory.Error, \"super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_highe_2659\", \"'super' is only allowed in members of object literal expressions when option 'target' is 'ES2015' or higher.\"),\n super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions: diag(2660, ts.DiagnosticCategory.Error, \"super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions_2660\", \"'super' can only be referenced in members of derived classes or object literal expressions.\"),\n Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module: diag(2661, ts.DiagnosticCategory.Error, \"Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module_2661\", \"Cannot export '{0}'. Only local declarations can be exported from a module.\"),\n Cannot_find_name_0_Did_you_mean_the_static_member_1_0: diag(2662, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Did_you_mean_the_static_member_1_0_2662\", \"Cannot find name '{0}'. Did you mean the static member '{1}.{0}'?\"),\n Cannot_find_name_0_Did_you_mean_the_instance_member_this_0: diag(2663, ts.DiagnosticCategory.Error, \"Cannot_find_name_0_Did_you_mean_the_instance_member_this_0_2663\", \"Cannot find name '{0}'. Did you mean the instance member 'this.{0}'?\"),\n Invalid_module_name_in_augmentation_module_0_cannot_be_found: diag(2664, ts.DiagnosticCategory.Error, \"Invalid_module_name_in_augmentation_module_0_cannot_be_found_2664\", \"Invalid module name in augmentation, module '{0}' cannot be found.\"),\n Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented: diag(2665, ts.DiagnosticCategory.Error, \"Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augm_2665\", \"Invalid module name in augmentation. Module '{0}' resolves to an untyped module at '{1}', which cannot be augmented.\"),\n Exports_and_export_assignments_are_not_permitted_in_module_augmentations: diag(2666, ts.DiagnosticCategory.Error, \"Exports_and_export_assignments_are_not_permitted_in_module_augmentations_2666\", \"Exports and export assignments are not permitted in module augmentations.\"),\n Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module: diag(2667, ts.DiagnosticCategory.Error, \"Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_mod_2667\", \"Imports are not permitted in module augmentations. Consider moving them to the enclosing external module.\"),\n export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible: diag(2668, ts.DiagnosticCategory.Error, \"export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always__2668\", \"'export' modifier cannot be applied to ambient modules and module augmentations since they are always visible.\"),\n Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations: diag(2669, ts.DiagnosticCategory.Error, \"Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_2669\", \"Augmentations for the global scope can only be directly nested in external modules or ambient module declarations.\"),\n Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context: diag(2670, ts.DiagnosticCategory.Error, \"Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambien_2670\", \"Augmentations for the global scope should have 'declare' modifier unless they appear in already ambient context.\"),\n Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity: diag(2671, ts.DiagnosticCategory.Error, \"Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity_2671\", \"Cannot augment module '{0}' because it resolves to a non-module entity.\"),\n Cannot_assign_a_0_constructor_type_to_a_1_constructor_type: diag(2672, ts.DiagnosticCategory.Error, \"Cannot_assign_a_0_constructor_type_to_a_1_constructor_type_2672\", \"Cannot assign a '{0}' constructor type to a '{1}' constructor type.\"),\n Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration: diag(2673, ts.DiagnosticCategory.Error, \"Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration_2673\", \"Constructor of class '{0}' is private and only accessible within the class declaration.\"),\n Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration: diag(2674, ts.DiagnosticCategory.Error, \"Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration_2674\", \"Constructor of class '{0}' is protected and only accessible within the class declaration.\"),\n Cannot_extend_a_class_0_Class_constructor_is_marked_as_private: diag(2675, ts.DiagnosticCategory.Error, \"Cannot_extend_a_class_0_Class_constructor_is_marked_as_private_2675\", \"Cannot extend a class '{0}'. Class constructor is marked as private.\"),\n Accessors_must_both_be_abstract_or_non_abstract: diag(2676, ts.DiagnosticCategory.Error, \"Accessors_must_both_be_abstract_or_non_abstract_2676\", \"Accessors must both be abstract or non-abstract.\"),\n A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type: diag(2677, ts.DiagnosticCategory.Error, \"A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type_2677\", \"A type predicate's type must be assignable to its parameter's type.\"),\n Type_0_is_not_comparable_to_type_1: diag(2678, ts.DiagnosticCategory.Error, \"Type_0_is_not_comparable_to_type_1_2678\", \"Type '{0}' is not comparable to type '{1}'.\"),\n A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void: diag(2679, ts.DiagnosticCategory.Error, \"A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void_2679\", \"A function that is called with the 'new' keyword cannot have a 'this' type that is 'void'.\"),\n A_0_parameter_must_be_the_first_parameter: diag(2680, ts.DiagnosticCategory.Error, \"A_0_parameter_must_be_the_first_parameter_2680\", \"A '{0}' parameter must be the first parameter.\"),\n A_constructor_cannot_have_a_this_parameter: diag(2681, ts.DiagnosticCategory.Error, \"A_constructor_cannot_have_a_this_parameter_2681\", \"A constructor cannot have a 'this' parameter.\"),\n get_and_set_accessor_must_have_the_same_this_type: diag(2682, ts.DiagnosticCategory.Error, \"get_and_set_accessor_must_have_the_same_this_type_2682\", \"'get' and 'set' accessor must have the same 'this' type.\"),\n this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation: diag(2683, ts.DiagnosticCategory.Error, \"this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_2683\", \"'this' implicitly has type 'any' because it does not have a type annotation.\"),\n The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1: diag(2684, ts.DiagnosticCategory.Error, \"The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1_2684\", \"The 'this' context of type '{0}' is not assignable to method's 'this' of type '{1}'.\"),\n The_this_types_of_each_signature_are_incompatible: diag(2685, ts.DiagnosticCategory.Error, \"The_this_types_of_each_signature_are_incompatible_2685\", \"The 'this' types of each signature are incompatible.\"),\n _0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead: diag(2686, ts.DiagnosticCategory.Error, \"_0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead_2686\", \"'{0}' refers to a UMD global, but the current file is a module. Consider adding an import instead.\"),\n All_declarations_of_0_must_have_identical_modifiers: diag(2687, ts.DiagnosticCategory.Error, \"All_declarations_of_0_must_have_identical_modifiers_2687\", \"All declarations of '{0}' must have identical modifiers.\"),\n Cannot_find_type_definition_file_for_0: diag(2688, ts.DiagnosticCategory.Error, \"Cannot_find_type_definition_file_for_0_2688\", \"Cannot find type definition file for '{0}'.\"),\n Cannot_extend_an_interface_0_Did_you_mean_implements: diag(2689, ts.DiagnosticCategory.Error, \"Cannot_extend_an_interface_0_Did_you_mean_implements_2689\", \"Cannot extend an interface '{0}'. Did you mean 'implements'?\"),\n _0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0: diag(2690, ts.DiagnosticCategory.Error, \"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0_2690\", \"'{0}' only refers to a type, but is being used as a value here. Did you mean to use '{1} in {0}'?\"),\n An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead: diag(2691, ts.DiagnosticCategory.Error, \"An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead_2691\", \"An import path cannot end with a '{0}' extension. Consider importing '{1}' instead.\"),\n _0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible: diag(2692, ts.DiagnosticCategory.Error, \"_0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible_2692\", \"'{0}' is a primitive, but '{1}' is a wrapper object. Prefer using '{0}' when possible.\"),\n _0_only_refers_to_a_type_but_is_being_used_as_a_value_here: diag(2693, ts.DiagnosticCategory.Error, \"_0_only_refers_to_a_type_but_is_being_used_as_a_value_here_2693\", \"'{0}' only refers to a type, but is being used as a value here.\"),\n Namespace_0_has_no_exported_member_1: diag(2694, ts.DiagnosticCategory.Error, \"Namespace_0_has_no_exported_member_1_2694\", \"Namespace '{0}' has no exported member '{1}'.\"),\n Left_side_of_comma_operator_is_unused_and_has_no_side_effects: diag(2695, ts.DiagnosticCategory.Error, \"Left_side_of_comma_operator_is_unused_and_has_no_side_effects_2695\", \"Left side of comma operator is unused and has no side effects.\", /*reportsUnnecessary*/ true),\n The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead: diag(2696, ts.DiagnosticCategory.Error, \"The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead_2696\", \"The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?\"),\n An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2697, ts.DiagnosticCategory.Error, \"An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_in_2697\", \"An async function or method must return a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.\"),\n Spread_types_may_only_be_created_from_object_types: diag(2698, ts.DiagnosticCategory.Error, \"Spread_types_may_only_be_created_from_object_types_2698\", \"Spread types may only be created from object types.\"),\n Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1: diag(2699, ts.DiagnosticCategory.Error, \"Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1_2699\", \"Static property '{0}' conflicts with built-in property 'Function.{0}' of constructor function '{1}'.\"),\n Rest_types_may_only_be_created_from_object_types: diag(2700, ts.DiagnosticCategory.Error, \"Rest_types_may_only_be_created_from_object_types_2700\", \"Rest types may only be created from object types.\"),\n The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access: diag(2701, ts.DiagnosticCategory.Error, \"The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access_2701\", \"The target of an object rest assignment must be a variable or a property access.\"),\n _0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here: diag(2702, ts.DiagnosticCategory.Error, \"_0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here_2702\", \"'{0}' only refers to a type, but is being used as a namespace here.\"),\n The_operand_of_a_delete_operator_must_be_a_property_reference: diag(2703, ts.DiagnosticCategory.Error, \"The_operand_of_a_delete_operator_must_be_a_property_reference_2703\", \"The operand of a 'delete' operator must be a property reference.\"),\n The_operand_of_a_delete_operator_cannot_be_a_read_only_property: diag(2704, ts.DiagnosticCategory.Error, \"The_operand_of_a_delete_operator_cannot_be_a_read_only_property_2704\", \"The operand of a 'delete' operator cannot be a read-only property.\"),\n An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2705, ts.DiagnosticCategory.Error, \"An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_de_2705\", \"An async function or method in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.\"),\n Required_type_parameters_may_not_follow_optional_type_parameters: diag(2706, ts.DiagnosticCategory.Error, \"Required_type_parameters_may_not_follow_optional_type_parameters_2706\", \"Required type parameters may not follow optional type parameters.\"),\n Generic_type_0_requires_between_1_and_2_type_arguments: diag(2707, ts.DiagnosticCategory.Error, \"Generic_type_0_requires_between_1_and_2_type_arguments_2707\", \"Generic type '{0}' requires between {1} and {2} type arguments.\"),\n Cannot_use_namespace_0_as_a_value: diag(2708, ts.DiagnosticCategory.Error, \"Cannot_use_namespace_0_as_a_value_2708\", \"Cannot use namespace '{0}' as a value.\"),\n Cannot_use_namespace_0_as_a_type: diag(2709, ts.DiagnosticCategory.Error, \"Cannot_use_namespace_0_as_a_type_2709\", \"Cannot use namespace '{0}' as a type.\"),\n _0_are_specified_twice_The_attribute_named_0_will_be_overwritten: diag(2710, ts.DiagnosticCategory.Error, \"_0_are_specified_twice_The_attribute_named_0_will_be_overwritten_2710\", \"'{0}' are specified twice. The attribute named '{0}' will be overwritten.\"),\n A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option: diag(2711, ts.DiagnosticCategory.Error, \"A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES20_2711\", \"A dynamic import call returns a 'Promise'. Make sure you have a declaration for 'Promise' or include 'ES2015' in your '--lib' option.\"),\n A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option: diag(2712, ts.DiagnosticCategory.Error, \"A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declarat_2712\", \"A dynamic import call in ES5/ES3 requires the 'Promise' constructor. Make sure you have a declaration for the 'Promise' constructor or include 'ES2015' in your '--lib' option.\"),\n Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1: diag(2713, ts.DiagnosticCategory.Error, \"Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_p_2713\", \"Cannot access '{0}.{1}' because '{0}' is a type, but not a namespace. Did you mean to retrieve the type of the property '{1}' in '{0}' with '{0}[\\\"{1}\\\"]'?\"),\n The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context: diag(2714, ts.DiagnosticCategory.Error, \"The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context_2714\", \"The expression of an export assignment must be an identifier or qualified name in an ambient context.\"),\n Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor: diag(2715, ts.DiagnosticCategory.Error, \"Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor_2715\", \"Abstract property '{0}' in class '{1}' cannot be accessed in the constructor.\"),\n Type_parameter_0_has_a_circular_default: diag(2716, ts.DiagnosticCategory.Error, \"Type_parameter_0_has_a_circular_default_2716\", \"Type parameter '{0}' has a circular default.\"),\n Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2: diag(2717, ts.DiagnosticCategory.Error, \"Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_t_2717\", \"Subsequent property declarations must have the same type. Property '{0}' must be of type '{1}', but here has type '{2}'.\"),\n Duplicate_property_0: diag(2718, ts.DiagnosticCategory.Error, \"Duplicate_property_0_2718\", \"Duplicate property '{0}'.\"),\n Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated: diag(2719, ts.DiagnosticCategory.Error, \"Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated_2719\", \"Type '{0}' is not assignable to type '{1}'. Two different types with this name exist, but they are unrelated.\"),\n Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass: diag(2720, ts.DiagnosticCategory.Error, \"Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclas_2720\", \"Class '{0}' incorrectly implements class '{1}'. Did you mean to extend '{1}' and inherit its members as a subclass?\"),\n Cannot_invoke_an_object_which_is_possibly_null: diag(2721, ts.DiagnosticCategory.Error, \"Cannot_invoke_an_object_which_is_possibly_null_2721\", \"Cannot invoke an object which is possibly 'null'.\"),\n Cannot_invoke_an_object_which_is_possibly_undefined: diag(2722, ts.DiagnosticCategory.Error, \"Cannot_invoke_an_object_which_is_possibly_undefined_2722\", \"Cannot invoke an object which is possibly 'undefined'.\"),\n Cannot_invoke_an_object_which_is_possibly_null_or_undefined: diag(2723, ts.DiagnosticCategory.Error, \"Cannot_invoke_an_object_which_is_possibly_null_or_undefined_2723\", \"Cannot invoke an object which is possibly 'null' or 'undefined'.\"),\n _0_has_no_exported_member_named_1_Did_you_mean_2: diag(2724, ts.DiagnosticCategory.Error, \"_0_has_no_exported_member_named_1_Did_you_mean_2_2724\", \"'{0}' has no exported member named '{1}'. Did you mean '{2}'?\"),\n Class_name_cannot_be_Object_when_targeting_ES5_with_module_0: diag(2725, ts.DiagnosticCategory.Error, \"Class_name_cannot_be_Object_when_targeting_ES5_with_module_0_2725\", \"Class name cannot be 'Object' when targeting ES5 with module {0}.\"),\n Cannot_find_lib_definition_for_0: diag(2726, ts.DiagnosticCategory.Error, \"Cannot_find_lib_definition_for_0_2726\", \"Cannot find lib definition for '{0}'.\"),\n Cannot_find_lib_definition_for_0_Did_you_mean_1: diag(2727, ts.DiagnosticCategory.Error, \"Cannot_find_lib_definition_for_0_Did_you_mean_1_2727\", \"Cannot find lib definition for '{0}'. Did you mean '{1}'?\"),\n _0_is_declared_here: diag(2728, ts.DiagnosticCategory.Message, \"_0_is_declared_here_2728\", \"'{0}' is declared here.\"),\n Property_0_is_used_before_its_initialization: diag(2729, ts.DiagnosticCategory.Error, \"Property_0_is_used_before_its_initialization_2729\", \"Property '{0}' is used before its initialization.\"),\n An_arrow_function_cannot_have_a_this_parameter: diag(2730, ts.DiagnosticCategory.Error, \"An_arrow_function_cannot_have_a_this_parameter_2730\", \"An arrow function cannot have a 'this' parameter.\"),\n Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String: diag(2731, ts.DiagnosticCategory.Error, \"Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_i_2731\", \"Implicit conversion of a 'symbol' to a 'string' will fail at runtime. Consider wrapping this expression in 'String(...)'.\"),\n Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension: diag(2732, ts.DiagnosticCategory.Error, \"Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension_2732\", \"Cannot find module '{0}'. Consider using '--resolveJsonModule' to import module with '.json' extension.\"),\n Property_0_was_also_declared_here: diag(2733, ts.DiagnosticCategory.Error, \"Property_0_was_also_declared_here_2733\", \"Property '{0}' was also declared here.\"),\n Are_you_missing_a_semicolon: diag(2734, ts.DiagnosticCategory.Error, \"Are_you_missing_a_semicolon_2734\", \"Are you missing a semicolon?\"),\n Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1: diag(2735, ts.DiagnosticCategory.Error, \"Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1_2735\", \"Did you mean for '{0}' to be constrained to type 'new (...args: any[]) => {1}'?\"),\n Operator_0_cannot_be_applied_to_type_1: diag(2736, ts.DiagnosticCategory.Error, \"Operator_0_cannot_be_applied_to_type_1_2736\", \"Operator '{0}' cannot be applied to type '{1}'.\"),\n BigInt_literals_are_not_available_when_targeting_lower_than_ES2020: diag(2737, ts.DiagnosticCategory.Error, \"BigInt_literals_are_not_available_when_targeting_lower_than_ES2020_2737\", \"BigInt literals are not available when targeting lower than ES2020.\"),\n An_outer_value_of_this_is_shadowed_by_this_container: diag(2738, ts.DiagnosticCategory.Message, \"An_outer_value_of_this_is_shadowed_by_this_container_2738\", \"An outer value of 'this' is shadowed by this container.\"),\n Type_0_is_missing_the_following_properties_from_type_1_Colon_2: diag(2739, ts.DiagnosticCategory.Error, \"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_2739\", \"Type '{0}' is missing the following properties from type '{1}': {2}\"),\n Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more: diag(2740, ts.DiagnosticCategory.Error, \"Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more_2740\", \"Type '{0}' is missing the following properties from type '{1}': {2}, and {3} more.\"),\n Property_0_is_missing_in_type_1_but_required_in_type_2: diag(2741, ts.DiagnosticCategory.Error, \"Property_0_is_missing_in_type_1_but_required_in_type_2_2741\", \"Property '{0}' is missing in type '{1}' but required in type '{2}'.\"),\n The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary: diag(2742, ts.DiagnosticCategory.Error, \"The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_a_2742\", \"The inferred type of '{0}' cannot be named without a reference to '{1}'. This is likely not portable. A type annotation is necessary.\"),\n No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments: diag(2743, ts.DiagnosticCategory.Error, \"No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments_2743\", \"No overload expects {0} type arguments, but overloads do exist that expect either {1} or {2} type arguments.\"),\n Type_parameter_defaults_can_only_reference_previously_declared_type_parameters: diag(2744, ts.DiagnosticCategory.Error, \"Type_parameter_defaults_can_only_reference_previously_declared_type_parameters_2744\", \"Type parameter defaults can only reference previously declared type parameters.\"),\n This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided: diag(2745, ts.DiagnosticCategory.Error, \"This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_pr_2745\", \"This JSX tag's '{0}' prop expects type '{1}' which requires multiple children, but only a single child was provided.\"),\n This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided: diag(2746, ts.DiagnosticCategory.Error, \"This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided_2746\", \"This JSX tag's '{0}' prop expects a single child of type '{1}', but multiple children were provided.\"),\n _0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2: diag(2747, ts.DiagnosticCategory.Error, \"_0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_t_2747\", \"'{0}' components don't accept text as child elements. Text in JSX has the type 'string', but the expected type of '{1}' is '{2}'.\"),\n Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided: diag(2748, ts.DiagnosticCategory.Error, \"Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided_2748\", \"Cannot access ambient const enums when the '--isolatedModules' flag is provided.\"),\n _0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0: diag(2749, ts.DiagnosticCategory.Error, \"_0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0_2749\", \"'{0}' refers to a value, but is being used as a type here. Did you mean 'typeof {0}'?\"),\n The_implementation_signature_is_declared_here: diag(2750, ts.DiagnosticCategory.Error, \"The_implementation_signature_is_declared_here_2750\", \"The implementation signature is declared here.\"),\n Circularity_originates_in_type_at_this_location: diag(2751, ts.DiagnosticCategory.Error, \"Circularity_originates_in_type_at_this_location_2751\", \"Circularity originates in type at this location.\"),\n The_first_export_default_is_here: diag(2752, ts.DiagnosticCategory.Error, \"The_first_export_default_is_here_2752\", \"The first export default is here.\"),\n Another_export_default_is_here: diag(2753, ts.DiagnosticCategory.Error, \"Another_export_default_is_here_2753\", \"Another export default is here.\"),\n super_may_not_use_type_arguments: diag(2754, ts.DiagnosticCategory.Error, \"super_may_not_use_type_arguments_2754\", \"'super' may not use type arguments.\"),\n No_constituent_of_type_0_is_callable: diag(2755, ts.DiagnosticCategory.Error, \"No_constituent_of_type_0_is_callable_2755\", \"No constituent of type '{0}' is callable.\"),\n Not_all_constituents_of_type_0_are_callable: diag(2756, ts.DiagnosticCategory.Error, \"Not_all_constituents_of_type_0_are_callable_2756\", \"Not all constituents of type '{0}' are callable.\"),\n Type_0_has_no_call_signatures: diag(2757, ts.DiagnosticCategory.Error, \"Type_0_has_no_call_signatures_2757\", \"Type '{0}' has no call signatures.\"),\n Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other: diag(2758, ts.DiagnosticCategory.Error, \"Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_2758\", \"Each member of the union type '{0}' has signatures, but none of those signatures are compatible with each other.\"),\n No_constituent_of_type_0_is_constructable: diag(2759, ts.DiagnosticCategory.Error, \"No_constituent_of_type_0_is_constructable_2759\", \"No constituent of type '{0}' is constructable.\"),\n Not_all_constituents_of_type_0_are_constructable: diag(2760, ts.DiagnosticCategory.Error, \"Not_all_constituents_of_type_0_are_constructable_2760\", \"Not all constituents of type '{0}' are constructable.\"),\n Type_0_has_no_construct_signatures: diag(2761, ts.DiagnosticCategory.Error, \"Type_0_has_no_construct_signatures_2761\", \"Type '{0}' has no construct signatures.\"),\n Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other: diag(2762, ts.DiagnosticCategory.Error, \"Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_2762\", \"Each member of the union type '{0}' has construct signatures, but none of those signatures are compatible with each other.\"),\n Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0: diag(2763, ts.DiagnosticCategory.Error, \"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_s_2763\", \"Cannot iterate value because the 'next' method of its iterator expects type '{1}', but for-of will always send '{0}'.\"),\n Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0: diag(2764, ts.DiagnosticCategory.Error, \"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_al_2764\", \"Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array spread will always send '{0}'.\"),\n Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0: diag(2765, ts.DiagnosticCategory.Error, \"Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring__2765\", \"Cannot iterate value because the 'next' method of its iterator expects type '{1}', but array destructuring will always send '{0}'.\"),\n Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0: diag(2766, ts.DiagnosticCategory.Error, \"Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_co_2766\", \"Cannot delegate iteration to value because the 'next' method of its iterator expects type '{1}', but the containing generator will always send '{0}'.\"),\n The_0_property_of_an_iterator_must_be_a_method: diag(2767, ts.DiagnosticCategory.Error, \"The_0_property_of_an_iterator_must_be_a_method_2767\", \"The '{0}' property of an iterator must be a method.\"),\n The_0_property_of_an_async_iterator_must_be_a_method: diag(2768, ts.DiagnosticCategory.Error, \"The_0_property_of_an_async_iterator_must_be_a_method_2768\", \"The '{0}' property of an async iterator must be a method.\"),\n No_overload_matches_this_call: diag(2769, ts.DiagnosticCategory.Error, \"No_overload_matches_this_call_2769\", \"No overload matches this call.\"),\n The_last_overload_gave_the_following_error: diag(2770, ts.DiagnosticCategory.Error, \"The_last_overload_gave_the_following_error_2770\", \"The last overload gave the following error.\"),\n The_last_overload_is_declared_here: diag(2771, ts.DiagnosticCategory.Error, \"The_last_overload_is_declared_here_2771\", \"The last overload is declared here.\"),\n Overload_0_of_1_2_gave_the_following_error: diag(2772, ts.DiagnosticCategory.Error, \"Overload_0_of_1_2_gave_the_following_error_2772\", \"Overload {0} of {1}, '{2}', gave the following error.\"),\n Did_you_forget_to_use_await: diag(2773, ts.DiagnosticCategory.Error, \"Did_you_forget_to_use_await_2773\", \"Did you forget to use 'await'?\"),\n This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead: diag(2774, ts.DiagnosticCategory.Error, \"This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_2774\", \"This condition will always return true since this function is always defined. Did you mean to call it instead?\"),\n Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation: diag(2775, ts.DiagnosticCategory.Error, \"Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation_2775\", \"Assertions require every name in the call target to be declared with an explicit type annotation.\"),\n Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name: diag(2776, ts.DiagnosticCategory.Error, \"Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name_2776\", \"Assertions require the call target to be an identifier or qualified name.\"),\n The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access: diag(2777, ts.DiagnosticCategory.Error, \"The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access_2777\", \"The operand of an increment or decrement operator may not be an optional property access.\"),\n The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access: diag(2778, ts.DiagnosticCategory.Error, \"The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access_2778\", \"The target of an object rest assignment may not be an optional property access.\"),\n The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access: diag(2779, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access_2779\", \"The left-hand side of an assignment expression may not be an optional property access.\"),\n The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access: diag(2780, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access_2780\", \"The left-hand side of a 'for...in' statement may not be an optional property access.\"),\n The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access: diag(2781, ts.DiagnosticCategory.Error, \"The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access_2781\", \"The left-hand side of a 'for...of' statement may not be an optional property access.\"),\n _0_needs_an_explicit_type_annotation: diag(2782, ts.DiagnosticCategory.Message, \"_0_needs_an_explicit_type_annotation_2782\", \"'{0}' needs an explicit type annotation.\"),\n _0_is_specified_more_than_once_so_this_usage_will_be_overwritten: diag(2783, ts.DiagnosticCategory.Error, \"_0_is_specified_more_than_once_so_this_usage_will_be_overwritten_2783\", \"'{0}' is specified more than once, so this usage will be overwritten.\"),\n get_and_set_accessors_cannot_declare_this_parameters: diag(2784, ts.DiagnosticCategory.Error, \"get_and_set_accessors_cannot_declare_this_parameters_2784\", \"'get' and 'set' accessors cannot declare 'this' parameters.\"),\n This_spread_always_overwrites_this_property: diag(2785, ts.DiagnosticCategory.Error, \"This_spread_always_overwrites_this_property_2785\", \"This spread always overwrites this property.\"),\n _0_cannot_be_used_as_a_JSX_component: diag(2786, ts.DiagnosticCategory.Error, \"_0_cannot_be_used_as_a_JSX_component_2786\", \"'{0}' cannot be used as a JSX component.\"),\n Its_return_type_0_is_not_a_valid_JSX_element: diag(2787, ts.DiagnosticCategory.Error, \"Its_return_type_0_is_not_a_valid_JSX_element_2787\", \"Its return type '{0}' is not a valid JSX element.\"),\n Its_instance_type_0_is_not_a_valid_JSX_element: diag(2788, ts.DiagnosticCategory.Error, \"Its_instance_type_0_is_not_a_valid_JSX_element_2788\", \"Its instance type '{0}' is not a valid JSX element.\"),\n Its_element_type_0_is_not_a_valid_JSX_element: diag(2789, ts.DiagnosticCategory.Error, \"Its_element_type_0_is_not_a_valid_JSX_element_2789\", \"Its element type '{0}' is not a valid JSX element.\"),\n The_operand_of_a_delete_operator_must_be_optional: diag(2790, ts.DiagnosticCategory.Error, \"The_operand_of_a_delete_operator_must_be_optional_2790\", \"The operand of a 'delete' operator must be optional.\"),\n Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later: diag(2791, ts.DiagnosticCategory.Error, \"Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_lat_2791\", \"Exponentiation cannot be performed on 'bigint' values unless the 'target' option is set to 'es2016' or later.\"),\n Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option: diag(2792, ts.DiagnosticCategory.Error, \"Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_th_2792\", \"Cannot find module '{0}'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?\"),\n The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible: diag(2793, ts.DiagnosticCategory.Error, \"The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_2793\", \"The call would have succeeded against this implementation, but implementation signatures of overloads are not externally visible.\"),\n Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise: diag(2794, ts.DiagnosticCategory.Error, \"Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise_2794\", \"Expected {0} arguments, but got {1}. Did you forget to include 'void' in your type argument to 'Promise'?\"),\n The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types: diag(2795, ts.DiagnosticCategory.Error, \"The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types_2795\", \"The 'intrinsic' keyword can only be used to declare compiler provided intrinsic types.\"),\n It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked: diag(2796, ts.DiagnosticCategory.Error, \"It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tag_2796\", \"It is likely that you are missing a comma to separate these two template expressions. They form a tagged template expression which cannot be invoked.\"),\n A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract: diag(2797, ts.DiagnosticCategory.Error, \"A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_2797\", \"A mixin class that extends from a type variable containing an abstract construct signature must also be declared 'abstract'.\"),\n The_declaration_was_marked_as_deprecated_here: diag(2798, ts.DiagnosticCategory.Error, \"The_declaration_was_marked_as_deprecated_here_2798\", \"The declaration was marked as deprecated here.\"),\n Type_produces_a_tuple_type_that_is_too_large_to_represent: diag(2799, ts.DiagnosticCategory.Error, \"Type_produces_a_tuple_type_that_is_too_large_to_represent_2799\", \"Type produces a tuple type that is too large to represent.\"),\n Expression_produces_a_tuple_type_that_is_too_large_to_represent: diag(2800, ts.DiagnosticCategory.Error, \"Expression_produces_a_tuple_type_that_is_too_large_to_represent_2800\", \"Expression produces a tuple type that is too large to represent.\"),\n This_condition_will_always_return_true_since_this_0_is_always_defined: diag(2801, ts.DiagnosticCategory.Error, \"This_condition_will_always_return_true_since_this_0_is_always_defined_2801\", \"This condition will always return true since this '{0}' is always defined.\"),\n Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher: diag(2802, ts.DiagnosticCategory.Error, \"Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es201_2802\", \"Type '{0}' can only be iterated through when using the '--downlevelIteration' flag or with a '--target' of 'es2015' or higher.\"),\n Cannot_assign_to_private_method_0_Private_methods_are_not_writable: diag(2803, ts.DiagnosticCategory.Error, \"Cannot_assign_to_private_method_0_Private_methods_are_not_writable_2803\", \"Cannot assign to private method '{0}'. Private methods are not writable.\"),\n Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name: diag(2804, ts.DiagnosticCategory.Error, \"Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name_2804\", \"Duplicate identifier '{0}'. Static and instance elements cannot share the same private name.\"),\n Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag: diag(2805, ts.DiagnosticCategory.Error, \"Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_no_2805\", \"Static fields with private names can't have initializers when the '--useDefineForClassFields' flag is not specified with a '--target' of 'esnext'. Consider adding the '--useDefineForClassFields' flag.\"),\n Private_accessor_was_defined_without_a_getter: diag(2806, ts.DiagnosticCategory.Error, \"Private_accessor_was_defined_without_a_getter_2806\", \"Private accessor was defined without a getter.\"),\n This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0: diag(2807, ts.DiagnosticCategory.Error, \"This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_o_2807\", \"This syntax requires an imported helper named '{1}' with {2} parameters, which is not compatible with the one in '{0}'. Consider upgrading your version of '{0}'.\"),\n A_get_accessor_must_be_at_least_as_accessible_as_the_setter: diag(2808, ts.DiagnosticCategory.Error, \"A_get_accessor_must_be_at_least_as_accessible_as_the_setter_2808\", \"A get accessor must be at least as accessible as the setter\"),\n Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses: diag(2809, ts.DiagnosticCategory.Error, \"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809\", \"Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the the whole assignment in parentheses.\"),\n Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false: diag(2810, ts.DiagnosticCategory.Error, \"Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnex_2810\", \"Property '{0}' may not be used in a static property's initializer in the same class when 'target' is 'esnext' and 'useDefineForClassFields' is 'false'.\"),\n Initializer_for_property_0: diag(2811, ts.DiagnosticCategory.Error, \"Initializer_for_property_0_2811\", \"Initializer for property '{0}'\"),\n Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom: diag(2812, ts.DiagnosticCategory.Error, \"Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom_2812\", \"Property '{0}' does not exist on type '{1}'. Try changing the 'lib' compiler option to include 'dom'.\"),\n Class_declaration_cannot_implement_overload_list_for_0: diag(2813, ts.DiagnosticCategory.Error, \"Class_declaration_cannot_implement_overload_list_for_0_2813\", \"Class declaration cannot implement overload list for '{0}'.\"),\n Function_with_bodies_can_only_merge_with_classes_that_are_ambient: diag(2814, ts.DiagnosticCategory.Error, \"Function_with_bodies_can_only_merge_with_classes_that_are_ambient_2814\", \"Function with bodies can only merge with classes that are ambient.\"),\n arguments_cannot_be_referenced_in_property_initializers: diag(2815, ts.DiagnosticCategory.Error, \"arguments_cannot_be_referenced_in_property_initializers_2815\", \"'arguments' cannot be referenced in property initializers.\"),\n Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class: diag(2816, ts.DiagnosticCategory.Error, \"Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class_2816\", \"Cannot use 'this' in a static property initializer of a decorated class.\"),\n Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block: diag(2817, ts.DiagnosticCategory.Error, \"Property_0_has_no_initializer_and_is_not_definitely_assigned_in_a_class_static_block_2817\", \"Property '{0}' has no initializer and is not definitely assigned in a class static block.\"),\n Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers: diag(2818, ts.DiagnosticCategory.Error, \"Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializer_2818\", \"Duplicate identifier '{0}'. Compiler reserves name '{1}' when emitting 'super' references in static initializers.\"),\n Namespace_name_cannot_be_0: diag(2819, ts.DiagnosticCategory.Error, \"Namespace_name_cannot_be_0_2819\", \"Namespace name cannot be '{0}'.\"),\n Import_declaration_0_is_using_private_name_1: diag(4000, ts.DiagnosticCategory.Error, \"Import_declaration_0_is_using_private_name_1_4000\", \"Import declaration '{0}' is using private name '{1}'.\"),\n Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: diag(4002, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_exported_class_has_or_is_using_private_name_1_4002\", \"Type parameter '{0}' of exported class has or is using private name '{1}'.\"),\n Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: diag(4004, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1_4004\", \"Type parameter '{0}' of exported interface has or is using private name '{1}'.\"),\n Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4006, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4006\", \"Type parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.\"),\n Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4008, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4008\", \"Type parameter '{0}' of call signature from exported interface has or is using private name '{1}'.\"),\n Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4010, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4010\", \"Type parameter '{0}' of public static method from exported class has or is using private name '{1}'.\"),\n Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4012, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4012\", \"Type parameter '{0}' of public method from exported class has or is using private name '{1}'.\"),\n Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4014, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4014\", \"Type parameter '{0}' of method from exported interface has or is using private name '{1}'.\"),\n Type_parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4016, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_exported_function_has_or_is_using_private_name_1_4016\", \"Type parameter '{0}' of exported function has or is using private name '{1}'.\"),\n Implements_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4019, ts.DiagnosticCategory.Error, \"Implements_clause_of_exported_class_0_has_or_is_using_private_name_1_4019\", \"Implements clause of exported class '{0}' has or is using private name '{1}'.\"),\n extends_clause_of_exported_class_0_has_or_is_using_private_name_1: diag(4020, ts.DiagnosticCategory.Error, \"extends_clause_of_exported_class_0_has_or_is_using_private_name_1_4020\", \"'extends' clause of exported class '{0}' has or is using private name '{1}'.\"),\n extends_clause_of_exported_class_has_or_is_using_private_name_0: diag(4021, ts.DiagnosticCategory.Error, \"extends_clause_of_exported_class_has_or_is_using_private_name_0_4021\", \"'extends' clause of exported class has or is using private name '{0}'.\"),\n extends_clause_of_exported_interface_0_has_or_is_using_private_name_1: diag(4022, ts.DiagnosticCategory.Error, \"extends_clause_of_exported_interface_0_has_or_is_using_private_name_1_4022\", \"'extends' clause of exported interface '{0}' has or is using private name '{1}'.\"),\n Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4023, ts.DiagnosticCategory.Error, \"Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4023\", \"Exported variable '{0}' has or is using name '{1}' from external module {2} but cannot be named.\"),\n Exported_variable_0_has_or_is_using_name_1_from_private_module_2: diag(4024, ts.DiagnosticCategory.Error, \"Exported_variable_0_has_or_is_using_name_1_from_private_module_2_4024\", \"Exported variable '{0}' has or is using name '{1}' from private module '{2}'.\"),\n Exported_variable_0_has_or_is_using_private_name_1: diag(4025, ts.DiagnosticCategory.Error, \"Exported_variable_0_has_or_is_using_private_name_1_4025\", \"Exported variable '{0}' has or is using private name '{1}'.\"),\n Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4026, ts.DiagnosticCategory.Error, \"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot__4026\", \"Public static property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4027, ts.DiagnosticCategory.Error, \"Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4027\", \"Public static property '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n Public_static_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4028, ts.DiagnosticCategory.Error, \"Public_static_property_0_of_exported_class_has_or_is_using_private_name_1_4028\", \"Public static property '{0}' of exported class has or is using private name '{1}'.\"),\n Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4029, ts.DiagnosticCategory.Error, \"Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_name_4029\", \"Public property '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4030, ts.DiagnosticCategory.Error, \"Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4030\", \"Public property '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n Public_property_0_of_exported_class_has_or_is_using_private_name_1: diag(4031, ts.DiagnosticCategory.Error, \"Public_property_0_of_exported_class_has_or_is_using_private_name_1_4031\", \"Public property '{0}' of exported class has or is using private name '{1}'.\"),\n Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4032, ts.DiagnosticCategory.Error, \"Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4032\", \"Property '{0}' of exported interface has or is using name '{1}' from private module '{2}'.\"),\n Property_0_of_exported_interface_has_or_is_using_private_name_1: diag(4033, ts.DiagnosticCategory.Error, \"Property_0_of_exported_interface_has_or_is_using_private_name_1_4033\", \"Property '{0}' of exported interface has or is using private name '{1}'.\"),\n Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4034, ts.DiagnosticCategory.Error, \"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_mod_4034\", \"Parameter type of public static setter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4035, ts.DiagnosticCategory.Error, \"Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1_4035\", \"Parameter type of public static setter '{0}' from exported class has or is using private name '{1}'.\"),\n Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4036, ts.DiagnosticCategory.Error, \"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4036\", \"Parameter type of public setter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1: diag(4037, ts.DiagnosticCategory.Error, \"Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1_4037\", \"Parameter type of public setter '{0}' from exported class has or is using private name '{1}'.\"),\n Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4038, ts.DiagnosticCategory.Error, \"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_modul_4038\", \"Return type of public static getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4039, ts.DiagnosticCategory.Error, \"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_4039\", \"Return type of public static getter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4040, ts.DiagnosticCategory.Error, \"Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1_4040\", \"Return type of public static getter '{0}' from exported class has or is using private name '{1}'.\"),\n Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4041, ts.DiagnosticCategory.Error, \"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_4041\", \"Return type of public getter '{0}' from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4042, ts.DiagnosticCategory.Error, \"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2_4042\", \"Return type of public getter '{0}' from exported class has or is using name '{1}' from private module '{2}'.\"),\n Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1: diag(4043, ts.DiagnosticCategory.Error, \"Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1_4043\", \"Return type of public getter '{0}' from exported class has or is using private name '{1}'.\"),\n Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4044, ts.DiagnosticCategory.Error, \"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_mod_4044\", \"Return type of constructor signature from exported interface has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4045, ts.DiagnosticCategory.Error, \"Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0_4045\", \"Return type of constructor signature from exported interface has or is using private name '{0}'.\"),\n Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4046, ts.DiagnosticCategory.Error, \"Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4046\", \"Return type of call signature from exported interface has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4047, ts.DiagnosticCategory.Error, \"Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0_4047\", \"Return type of call signature from exported interface has or is using private name '{0}'.\"),\n Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4048, ts.DiagnosticCategory.Error, \"Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4048\", \"Return type of index signature from exported interface has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0: diag(4049, ts.DiagnosticCategory.Error, \"Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0_4049\", \"Return type of index signature from exported interface has or is using private name '{0}'.\"),\n Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4050, ts.DiagnosticCategory.Error, \"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module__4050\", \"Return type of public static method from exported class has or is using name '{0}' from external module {1} but cannot be named.\"),\n Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4051, ts.DiagnosticCategory.Error, \"Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4051\", \"Return type of public static method from exported class has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0: diag(4052, ts.DiagnosticCategory.Error, \"Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0_4052\", \"Return type of public static method from exported class has or is using private name '{0}'.\"),\n Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4053, ts.DiagnosticCategory.Error, \"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_c_4053\", \"Return type of public method from exported class has or is using name '{0}' from external module {1} but cannot be named.\"),\n Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1: diag(4054, ts.DiagnosticCategory.Error, \"Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1_4054\", \"Return type of public method from exported class has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0: diag(4055, ts.DiagnosticCategory.Error, \"Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0_4055\", \"Return type of public method from exported class has or is using private name '{0}'.\"),\n Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1: diag(4056, ts.DiagnosticCategory.Error, \"Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1_4056\", \"Return type of method from exported interface has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0: diag(4057, ts.DiagnosticCategory.Error, \"Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0_4057\", \"Return type of method from exported interface has or is using private name '{0}'.\"),\n Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named: diag(4058, ts.DiagnosticCategory.Error, \"Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named_4058\", \"Return type of exported function has or is using name '{0}' from external module {1} but cannot be named.\"),\n Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1: diag(4059, ts.DiagnosticCategory.Error, \"Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1_4059\", \"Return type of exported function has or is using name '{0}' from private module '{1}'.\"),\n Return_type_of_exported_function_has_or_is_using_private_name_0: diag(4060, ts.DiagnosticCategory.Error, \"Return_type_of_exported_function_has_or_is_using_private_name_0_4060\", \"Return type of exported function has or is using private name '{0}'.\"),\n Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4061, ts.DiagnosticCategory.Error, \"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_can_4061\", \"Parameter '{0}' of constructor from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4062, ts.DiagnosticCategory.Error, \"Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2_4062\", \"Parameter '{0}' of constructor from exported class has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1: diag(4063, ts.DiagnosticCategory.Error, \"Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1_4063\", \"Parameter '{0}' of constructor from exported class has or is using private name '{1}'.\"),\n Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4064, ts.DiagnosticCategory.Error, \"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_mod_4064\", \"Parameter '{0}' of constructor signature from exported interface has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4065, ts.DiagnosticCategory.Error, \"Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1_4065\", \"Parameter '{0}' of constructor signature from exported interface has or is using private name '{1}'.\"),\n Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4066, ts.DiagnosticCategory.Error, \"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4066\", \"Parameter '{0}' of call signature from exported interface has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4067, ts.DiagnosticCategory.Error, \"Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1_4067\", \"Parameter '{0}' of call signature from exported interface has or is using private name '{1}'.\"),\n Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4068, ts.DiagnosticCategory.Error, \"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module__4068\", \"Parameter '{0}' of public static method from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4069, ts.DiagnosticCategory.Error, \"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4069\", \"Parameter '{0}' of public static method from exported class has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1: diag(4070, ts.DiagnosticCategory.Error, \"Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1_4070\", \"Parameter '{0}' of public static method from exported class has or is using private name '{1}'.\"),\n Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4071, ts.DiagnosticCategory.Error, \"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_c_4071\", \"Parameter '{0}' of public method from exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4072, ts.DiagnosticCategory.Error, \"Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2_4072\", \"Parameter '{0}' of public method from exported class has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1: diag(4073, ts.DiagnosticCategory.Error, \"Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1_4073\", \"Parameter '{0}' of public method from exported class has or is using private name '{1}'.\"),\n Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4074, ts.DiagnosticCategory.Error, \"Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4074\", \"Parameter '{0}' of method from exported interface has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1: diag(4075, ts.DiagnosticCategory.Error, \"Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1_4075\", \"Parameter '{0}' of method from exported interface has or is using private name '{1}'.\"),\n Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4076, ts.DiagnosticCategory.Error, \"Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4076\", \"Parameter '{0}' of exported function has or is using name '{1}' from external module {2} but cannot be named.\"),\n Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2: diag(4077, ts.DiagnosticCategory.Error, \"Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2_4077\", \"Parameter '{0}' of exported function has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_exported_function_has_or_is_using_private_name_1: diag(4078, ts.DiagnosticCategory.Error, \"Parameter_0_of_exported_function_has_or_is_using_private_name_1_4078\", \"Parameter '{0}' of exported function has or is using private name '{1}'.\"),\n Exported_type_alias_0_has_or_is_using_private_name_1: diag(4081, ts.DiagnosticCategory.Error, \"Exported_type_alias_0_has_or_is_using_private_name_1_4081\", \"Exported type alias '{0}' has or is using private name '{1}'.\"),\n Default_export_of_the_module_has_or_is_using_private_name_0: diag(4082, ts.DiagnosticCategory.Error, \"Default_export_of_the_module_has_or_is_using_private_name_0_4082\", \"Default export of the module has or is using private name '{0}'.\"),\n Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1: diag(4083, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1_4083\", \"Type parameter '{0}' of exported type alias has or is using private name '{1}'.\"),\n Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2: diag(4084, ts.DiagnosticCategory.Error, \"Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2_4084\", \"Exported type alias '{0}' has or is using private name '{1}' from module {2}.\"),\n Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict: diag(4090, ts.DiagnosticCategory.Error, \"Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_librar_4090\", \"Conflicting definitions for '{0}' found at '{1}' and '{2}'. Consider installing a specific version of this library to resolve the conflict.\"),\n Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4091, ts.DiagnosticCategory.Error, \"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2_4091\", \"Parameter '{0}' of index signature from exported interface has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1: diag(4092, ts.DiagnosticCategory.Error, \"Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1_4092\", \"Parameter '{0}' of index signature from exported interface has or is using private name '{1}'.\"),\n Property_0_of_exported_class_expression_may_not_be_private_or_protected: diag(4094, ts.DiagnosticCategory.Error, \"Property_0_of_exported_class_expression_may_not_be_private_or_protected_4094\", \"Property '{0}' of exported class expression may not be private or protected.\"),\n Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4095, ts.DiagnosticCategory.Error, \"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_4095\", \"Public static method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4096, ts.DiagnosticCategory.Error, \"Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4096\", \"Public static method '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n Public_static_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4097, ts.DiagnosticCategory.Error, \"Public_static_method_0_of_exported_class_has_or_is_using_private_name_1_4097\", \"Public static method '{0}' of exported class has or is using private name '{1}'.\"),\n Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4098, ts.DiagnosticCategory.Error, \"Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4098\", \"Public method '{0}' of exported class has or is using name '{1}' from external module {2} but cannot be named.\"),\n Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2: diag(4099, ts.DiagnosticCategory.Error, \"Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2_4099\", \"Public method '{0}' of exported class has or is using name '{1}' from private module '{2}'.\"),\n Public_method_0_of_exported_class_has_or_is_using_private_name_1: diag(4100, ts.DiagnosticCategory.Error, \"Public_method_0_of_exported_class_has_or_is_using_private_name_1_4100\", \"Public method '{0}' of exported class has or is using private name '{1}'.\"),\n Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2: diag(4101, ts.DiagnosticCategory.Error, \"Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2_4101\", \"Method '{0}' of exported interface has or is using name '{1}' from private module '{2}'.\"),\n Method_0_of_exported_interface_has_or_is_using_private_name_1: diag(4102, ts.DiagnosticCategory.Error, \"Method_0_of_exported_interface_has_or_is_using_private_name_1_4102\", \"Method '{0}' of exported interface has or is using private name '{1}'.\"),\n Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1: diag(4103, ts.DiagnosticCategory.Error, \"Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1_4103\", \"Type parameter '{0}' of exported mapped object type is using private name '{1}'.\"),\n The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1: diag(4104, ts.DiagnosticCategory.Error, \"The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1_4104\", \"The type '{0}' is 'readonly' and cannot be assigned to the mutable type '{1}'.\"),\n Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter: diag(4105, ts.DiagnosticCategory.Error, \"Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter_4105\", \"Private or protected member '{0}' cannot be accessed on a type parameter.\"),\n Parameter_0_of_accessor_has_or_is_using_private_name_1: diag(4106, ts.DiagnosticCategory.Error, \"Parameter_0_of_accessor_has_or_is_using_private_name_1_4106\", \"Parameter '{0}' of accessor has or is using private name '{1}'.\"),\n Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2: diag(4107, ts.DiagnosticCategory.Error, \"Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2_4107\", \"Parameter '{0}' of accessor has or is using name '{1}' from private module '{2}'.\"),\n Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named: diag(4108, ts.DiagnosticCategory.Error, \"Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named_4108\", \"Parameter '{0}' of accessor has or is using name '{1}' from external module '{2}' but cannot be named.\"),\n Type_arguments_for_0_circularly_reference_themselves: diag(4109, ts.DiagnosticCategory.Error, \"Type_arguments_for_0_circularly_reference_themselves_4109\", \"Type arguments for '{0}' circularly reference themselves.\"),\n Tuple_type_arguments_circularly_reference_themselves: diag(4110, ts.DiagnosticCategory.Error, \"Tuple_type_arguments_circularly_reference_themselves_4110\", \"Tuple type arguments circularly reference themselves.\"),\n Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0: diag(4111, ts.DiagnosticCategory.Error, \"Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0_4111\", \"Property '{0}' comes from an index signature, so it must be accessed with ['{0}'].\"),\n This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class: diag(4112, ts.DiagnosticCategory.Error, \"This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another__4112\", \"This member cannot have an 'override' modifier because its containing class '{0}' does not extend another class.\"),\n This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0: diag(4113, ts.DiagnosticCategory.Error, \"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_4113\", \"This member cannot have an 'override' modifier because it is not declared in the base class '{0}'.\"),\n This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0: diag(4114, ts.DiagnosticCategory.Error, \"This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0_4114\", \"This member must have an 'override' modifier because it overrides a member in the base class '{0}'.\"),\n This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0: diag(4115, ts.DiagnosticCategory.Error, \"This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0_4115\", \"This parameter property must have an 'override' modifier because it overrides a member in base class '{0}'.\"),\n This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0: diag(4116, ts.DiagnosticCategory.Error, \"This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared__4116\", \"This member must have an 'override' modifier because it overrides an abstract method that is declared in the base class '{0}'.\"),\n This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1: diag(4117, ts.DiagnosticCategory.Error, \"This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you__4117\", \"This member cannot have an 'override' modifier because it is not declared in the base class '{0}'. Did you mean '{1}'?\"),\n The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized: diag(4118, ts.DiagnosticCategory.Error, \"The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized_4118\", \"The type of this node cannot be serialized because its property '{0}' cannot be serialized.\"),\n The_current_host_does_not_support_the_0_option: diag(5001, ts.DiagnosticCategory.Error, \"The_current_host_does_not_support_the_0_option_5001\", \"The current host does not support the '{0}' option.\"),\n Cannot_find_the_common_subdirectory_path_for_the_input_files: diag(5009, ts.DiagnosticCategory.Error, \"Cannot_find_the_common_subdirectory_path_for_the_input_files_5009\", \"Cannot find the common subdirectory path for the input files.\"),\n File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5010, ts.DiagnosticCategory.Error, \"File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0_5010\", \"File specification cannot end in a recursive directory wildcard ('**'): '{0}'.\"),\n Cannot_read_file_0_Colon_1: diag(5012, ts.DiagnosticCategory.Error, \"Cannot_read_file_0_Colon_1_5012\", \"Cannot read file '{0}': {1}.\"),\n Failed_to_parse_file_0_Colon_1: diag(5014, ts.DiagnosticCategory.Error, \"Failed_to_parse_file_0_Colon_1_5014\", \"Failed to parse file '{0}': {1}.\"),\n Unknown_compiler_option_0: diag(5023, ts.DiagnosticCategory.Error, \"Unknown_compiler_option_0_5023\", \"Unknown compiler option '{0}'.\"),\n Compiler_option_0_requires_a_value_of_type_1: diag(5024, ts.DiagnosticCategory.Error, \"Compiler_option_0_requires_a_value_of_type_1_5024\", \"Compiler option '{0}' requires a value of type {1}.\"),\n Unknown_compiler_option_0_Did_you_mean_1: diag(5025, ts.DiagnosticCategory.Error, \"Unknown_compiler_option_0_Did_you_mean_1_5025\", \"Unknown compiler option '{0}'. Did you mean '{1}'?\"),\n Could_not_write_file_0_Colon_1: diag(5033, ts.DiagnosticCategory.Error, \"Could_not_write_file_0_Colon_1_5033\", \"Could not write file '{0}': {1}.\"),\n Option_project_cannot_be_mixed_with_source_files_on_a_command_line: diag(5042, ts.DiagnosticCategory.Error, \"Option_project_cannot_be_mixed_with_source_files_on_a_command_line_5042\", \"Option 'project' cannot be mixed with source files on a command line.\"),\n Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher: diag(5047, ts.DiagnosticCategory.Error, \"Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES_5047\", \"Option 'isolatedModules' can only be used when either option '--module' is provided or option 'target' is 'ES2015' or higher.\"),\n Option_0_cannot_be_specified_when_option_target_is_ES3: diag(5048, ts.DiagnosticCategory.Error, \"Option_0_cannot_be_specified_when_option_target_is_ES3_5048\", \"Option '{0}' cannot be specified when option 'target' is 'ES3'.\"),\n Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided: diag(5051, ts.DiagnosticCategory.Error, \"Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided_5051\", \"Option '{0} can only be used when either option '--inlineSourceMap' or option '--sourceMap' is provided.\"),\n Option_0_cannot_be_specified_without_specifying_option_1: diag(5052, ts.DiagnosticCategory.Error, \"Option_0_cannot_be_specified_without_specifying_option_1_5052\", \"Option '{0}' cannot be specified without specifying option '{1}'.\"),\n Option_0_cannot_be_specified_with_option_1: diag(5053, ts.DiagnosticCategory.Error, \"Option_0_cannot_be_specified_with_option_1_5053\", \"Option '{0}' cannot be specified with option '{1}'.\"),\n A_tsconfig_json_file_is_already_defined_at_Colon_0: diag(5054, ts.DiagnosticCategory.Error, \"A_tsconfig_json_file_is_already_defined_at_Colon_0_5054\", \"A 'tsconfig.json' file is already defined at: '{0}'.\"),\n Cannot_write_file_0_because_it_would_overwrite_input_file: diag(5055, ts.DiagnosticCategory.Error, \"Cannot_write_file_0_because_it_would_overwrite_input_file_5055\", \"Cannot write file '{0}' because it would overwrite input file.\"),\n Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files: diag(5056, ts.DiagnosticCategory.Error, \"Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files_5056\", \"Cannot write file '{0}' because it would be overwritten by multiple input files.\"),\n Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0: diag(5057, ts.DiagnosticCategory.Error, \"Cannot_find_a_tsconfig_json_file_at_the_specified_directory_Colon_0_5057\", \"Cannot find a tsconfig.json file at the specified directory: '{0}'.\"),\n The_specified_path_does_not_exist_Colon_0: diag(5058, ts.DiagnosticCategory.Error, \"The_specified_path_does_not_exist_Colon_0_5058\", \"The specified path does not exist: '{0}'.\"),\n Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier: diag(5059, ts.DiagnosticCategory.Error, \"Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier_5059\", \"Invalid value for '--reactNamespace'. '{0}' is not a valid identifier.\"),\n Pattern_0_can_have_at_most_one_Asterisk_character: diag(5061, ts.DiagnosticCategory.Error, \"Pattern_0_can_have_at_most_one_Asterisk_character_5061\", \"Pattern '{0}' can have at most one '*' character.\"),\n Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character: diag(5062, ts.DiagnosticCategory.Error, \"Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character_5062\", \"Substitution '{0}' in pattern '{1}' can have at most one '*' character.\"),\n Substitutions_for_pattern_0_should_be_an_array: diag(5063, ts.DiagnosticCategory.Error, \"Substitutions_for_pattern_0_should_be_an_array_5063\", \"Substitutions for pattern '{0}' should be an array.\"),\n Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2: diag(5064, ts.DiagnosticCategory.Error, \"Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2_5064\", \"Substitution '{0}' for pattern '{1}' has incorrect type, expected 'string', got '{2}'.\"),\n File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0: diag(5065, ts.DiagnosticCategory.Error, \"File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildca_5065\", \"File specification cannot contain a parent directory ('..') that appears after a recursive directory wildcard ('**'): '{0}'.\"),\n Substitutions_for_pattern_0_shouldn_t_be_an_empty_array: diag(5066, ts.DiagnosticCategory.Error, \"Substitutions_for_pattern_0_shouldn_t_be_an_empty_array_5066\", \"Substitutions for pattern '{0}' shouldn't be an empty array.\"),\n Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(5067, ts.DiagnosticCategory.Error, \"Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name_5067\", \"Invalid value for 'jsxFactory'. '{0}' is not a valid identifier or qualified-name.\"),\n Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig: diag(5068, ts.DiagnosticCategory.Error, \"Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript__5068\", \"Adding a tsconfig.json file will help organize projects that contain both TypeScript and JavaScript files. Learn more at https://aka.ms/tsconfig.\"),\n Option_0_cannot_be_specified_without_specifying_option_1_or_option_2: diag(5069, ts.DiagnosticCategory.Error, \"Option_0_cannot_be_specified_without_specifying_option_1_or_option_2_5069\", \"Option '{0}' cannot be specified without specifying option '{1}' or option '{2}'.\"),\n Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy: diag(5070, ts.DiagnosticCategory.Error, \"Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy_5070\", \"Option '--resolveJsonModule' cannot be specified without 'node' module resolution strategy.\"),\n Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext: diag(5071, ts.DiagnosticCategory.Error, \"Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_5071\", \"Option '--resolveJsonModule' can only be specified when module code generation is 'commonjs', 'amd', 'es2015' or 'esNext'.\"),\n Unknown_build_option_0: diag(5072, ts.DiagnosticCategory.Error, \"Unknown_build_option_0_5072\", \"Unknown build option '{0}'.\"),\n Build_option_0_requires_a_value_of_type_1: diag(5073, ts.DiagnosticCategory.Error, \"Build_option_0_requires_a_value_of_type_1_5073\", \"Build option '{0}' requires a value of type {1}.\"),\n Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified: diag(5074, ts.DiagnosticCategory.Error, \"Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBui_5074\", \"Option '--incremental' can only be specified using tsconfig, emitting to single file or when option '--tsBuildInfoFile' is specified.\"),\n _0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2: diag(5075, ts.DiagnosticCategory.Error, \"_0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_5075\", \"'{0}' is assignable to the constraint of type '{1}', but '{1}' could be instantiated with a different subtype of constraint '{2}'.\"),\n _0_and_1_operations_cannot_be_mixed_without_parentheses: diag(5076, ts.DiagnosticCategory.Error, \"_0_and_1_operations_cannot_be_mixed_without_parentheses_5076\", \"'{0}' and '{1}' operations cannot be mixed without parentheses.\"),\n Unknown_build_option_0_Did_you_mean_1: diag(5077, ts.DiagnosticCategory.Error, \"Unknown_build_option_0_Did_you_mean_1_5077\", \"Unknown build option '{0}'. Did you mean '{1}'?\"),\n Unknown_watch_option_0: diag(5078, ts.DiagnosticCategory.Error, \"Unknown_watch_option_0_5078\", \"Unknown watch option '{0}'.\"),\n Unknown_watch_option_0_Did_you_mean_1: diag(5079, ts.DiagnosticCategory.Error, \"Unknown_watch_option_0_Did_you_mean_1_5079\", \"Unknown watch option '{0}'. Did you mean '{1}'?\"),\n Watch_option_0_requires_a_value_of_type_1: diag(5080, ts.DiagnosticCategory.Error, \"Watch_option_0_requires_a_value_of_type_1_5080\", \"Watch option '{0}' requires a value of type {1}.\"),\n Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0: diag(5081, ts.DiagnosticCategory.Error, \"Cannot_find_a_tsconfig_json_file_at_the_current_directory_Colon_0_5081\", \"Cannot find a tsconfig.json file at the current directory: {0}.\"),\n _0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1: diag(5082, ts.DiagnosticCategory.Error, \"_0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1_5082\", \"'{0}' could be instantiated with an arbitrary type which could be unrelated to '{1}'.\"),\n Cannot_read_file_0: diag(5083, ts.DiagnosticCategory.Error, \"Cannot_read_file_0_5083\", \"Cannot read file '{0}'.\"),\n Tuple_members_must_all_have_names_or_all_not_have_names: diag(5084, ts.DiagnosticCategory.Error, \"Tuple_members_must_all_have_names_or_all_not_have_names_5084\", \"Tuple members must all have names or all not have names.\"),\n A_tuple_member_cannot_be_both_optional_and_rest: diag(5085, ts.DiagnosticCategory.Error, \"A_tuple_member_cannot_be_both_optional_and_rest_5085\", \"A tuple member cannot be both optional and rest.\"),\n A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type: diag(5086, ts.DiagnosticCategory.Error, \"A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_c_5086\", \"A labeled tuple element is declared as optional with a question mark after the name and before the colon, rather than after the type.\"),\n A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type: diag(5087, ts.DiagnosticCategory.Error, \"A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type_5087\", \"A labeled tuple element is declared as rest with a '...' before the name, rather than before the type.\"),\n The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary: diag(5088, ts.DiagnosticCategory.Error, \"The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialize_5088\", \"The inferred type of '{0}' references a type with a cyclic structure which cannot be trivially serialized. A type annotation is necessary.\"),\n Option_0_cannot_be_specified_when_option_jsx_is_1: diag(5089, ts.DiagnosticCategory.Error, \"Option_0_cannot_be_specified_when_option_jsx_is_1_5089\", \"Option '{0}' cannot be specified when option 'jsx' is '{1}'.\"),\n Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash: diag(5090, ts.DiagnosticCategory.Error, \"Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash_5090\", \"Non-relative paths are not allowed when 'baseUrl' is not set. Did you forget a leading './'?\"),\n Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled: diag(5091, ts.DiagnosticCategory.Error, \"Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled_5091\", \"Option 'preserveConstEnums' cannot be disabled when 'isolatedModules' is enabled.\"),\n The_root_value_of_a_0_file_must_be_an_object: diag(5092, ts.DiagnosticCategory.Error, \"The_root_value_of_a_0_file_must_be_an_object_5092\", \"The root value of a '{0}' file must be an object.\"),\n Compiler_option_0_may_only_be_used_with_build: diag(5093, ts.DiagnosticCategory.Error, \"Compiler_option_0_may_only_be_used_with_build_5093\", \"Compiler option '--{0}' may only be used with '--build'.\"),\n Compiler_option_0_may_not_be_used_with_build: diag(5094, ts.DiagnosticCategory.Error, \"Compiler_option_0_may_not_be_used_with_build_5094\", \"Compiler option '--{0}' may not be used with '--build'.\"),\n Generates_a_sourcemap_for_each_corresponding_d_ts_file: diag(6000, ts.DiagnosticCategory.Message, \"Generates_a_sourcemap_for_each_corresponding_d_ts_file_6000\", \"Generates a sourcemap for each corresponding '.d.ts' file.\"),\n Concatenate_and_emit_output_to_single_file: diag(6001, ts.DiagnosticCategory.Message, \"Concatenate_and_emit_output_to_single_file_6001\", \"Concatenate and emit output to single file.\"),\n Generates_corresponding_d_ts_file: diag(6002, ts.DiagnosticCategory.Message, \"Generates_corresponding_d_ts_file_6002\", \"Generates corresponding '.d.ts' file.\"),\n Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations: diag(6655, ts.DiagnosticCategory.Message, \"Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations_6655\", \"Specify the location where debugger should locate map files instead of generated locations.\"),\n Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations: diag(6004, ts.DiagnosticCategory.Message, \"Specify_the_location_where_debugger_should_locate_TypeScript_files_instead_of_source_locations_6004\", \"Specify the location where debugger should locate TypeScript files instead of source locations.\"),\n Watch_input_files: diag(6005, ts.DiagnosticCategory.Message, \"Watch_input_files_6005\", \"Watch input files.\"),\n Redirect_output_structure_to_the_directory: diag(6006, ts.DiagnosticCategory.Message, \"Redirect_output_structure_to_the_directory_6006\", \"Redirect output structure to the directory.\"),\n Do_not_erase_const_enum_declarations_in_generated_code: diag(6007, ts.DiagnosticCategory.Message, \"Do_not_erase_const_enum_declarations_in_generated_code_6007\", \"Do not erase const enum declarations in generated code.\"),\n Do_not_emit_outputs_if_any_errors_were_reported: diag(6008, ts.DiagnosticCategory.Message, \"Do_not_emit_outputs_if_any_errors_were_reported_6008\", \"Do not emit outputs if any errors were reported.\"),\n Do_not_emit_comments_to_output: diag(6009, ts.DiagnosticCategory.Message, \"Do_not_emit_comments_to_output_6009\", \"Do not emit comments to output.\"),\n Do_not_emit_outputs: diag(6010, ts.DiagnosticCategory.Message, \"Do_not_emit_outputs_6010\", \"Do not emit outputs.\"),\n Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typechecking: diag(6011, ts.DiagnosticCategory.Message, \"Allow_default_imports_from_modules_with_no_default_export_This_does_not_affect_code_emit_just_typech_6011\", \"Allow default imports from modules with no default export. This does not affect code emit, just typechecking.\"),\n Skip_type_checking_of_declaration_files: diag(6012, ts.DiagnosticCategory.Message, \"Skip_type_checking_of_declaration_files_6012\", \"Skip type checking of declaration files.\"),\n Do_not_resolve_the_real_path_of_symlinks: diag(6013, ts.DiagnosticCategory.Message, \"Do_not_resolve_the_real_path_of_symlinks_6013\", \"Do not resolve the real path of symlinks.\"),\n Only_emit_d_ts_declaration_files: diag(6014, ts.DiagnosticCategory.Message, \"Only_emit_d_ts_declaration_files_6014\", \"Only emit '.d.ts' declaration files.\"),\n Specify_ECMAScript_target_version: diag(6015, ts.DiagnosticCategory.Message, \"Specify_ECMAScript_target_version_6015\", \"Specify ECMAScript target version.\"),\n Specify_module_code_generation: diag(6016, ts.DiagnosticCategory.Message, \"Specify_module_code_generation_6016\", \"Specify module code generation.\"),\n Print_this_message: diag(6017, ts.DiagnosticCategory.Message, \"Print_this_message_6017\", \"Print this message.\"),\n Print_the_compiler_s_version: diag(6019, ts.DiagnosticCategory.Message, \"Print_the_compiler_s_version_6019\", \"Print the compiler's version.\"),\n Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json: diag(6020, ts.DiagnosticCategory.Message, \"Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json_6020\", \"Compile the project given the path to its configuration file, or to a folder with a 'tsconfig.json'.\"),\n Syntax_Colon_0: diag(6023, ts.DiagnosticCategory.Message, \"Syntax_Colon_0_6023\", \"Syntax: {0}\"),\n options: diag(6024, ts.DiagnosticCategory.Message, \"options_6024\", \"options\"),\n file: diag(6025, ts.DiagnosticCategory.Message, \"file_6025\", \"file\"),\n Examples_Colon_0: diag(6026, ts.DiagnosticCategory.Message, \"Examples_Colon_0_6026\", \"Examples: {0}\"),\n Options_Colon: diag(6027, ts.DiagnosticCategory.Message, \"Options_Colon_6027\", \"Options:\"),\n Version_0: diag(6029, ts.DiagnosticCategory.Message, \"Version_0_6029\", \"Version {0}\"),\n Insert_command_line_options_and_files_from_a_file: diag(6030, ts.DiagnosticCategory.Message, \"Insert_command_line_options_and_files_from_a_file_6030\", \"Insert command line options and files from a file.\"),\n Starting_compilation_in_watch_mode: diag(6031, ts.DiagnosticCategory.Message, \"Starting_compilation_in_watch_mode_6031\", \"Starting compilation in watch mode...\"),\n File_change_detected_Starting_incremental_compilation: diag(6032, ts.DiagnosticCategory.Message, \"File_change_detected_Starting_incremental_compilation_6032\", \"File change detected. Starting incremental compilation...\"),\n KIND: diag(6034, ts.DiagnosticCategory.Message, \"KIND_6034\", \"KIND\"),\n FILE: diag(6035, ts.DiagnosticCategory.Message, \"FILE_6035\", \"FILE\"),\n VERSION: diag(6036, ts.DiagnosticCategory.Message, \"VERSION_6036\", \"VERSION\"),\n LOCATION: diag(6037, ts.DiagnosticCategory.Message, \"LOCATION_6037\", \"LOCATION\"),\n DIRECTORY: diag(6038, ts.DiagnosticCategory.Message, \"DIRECTORY_6038\", \"DIRECTORY\"),\n STRATEGY: diag(6039, ts.DiagnosticCategory.Message, \"STRATEGY_6039\", \"STRATEGY\"),\n FILE_OR_DIRECTORY: diag(6040, ts.DiagnosticCategory.Message, \"FILE_OR_DIRECTORY_6040\", \"FILE OR DIRECTORY\"),\n Generates_corresponding_map_file: diag(6043, ts.DiagnosticCategory.Message, \"Generates_corresponding_map_file_6043\", \"Generates corresponding '.map' file.\"),\n Compiler_option_0_expects_an_argument: diag(6044, ts.DiagnosticCategory.Error, \"Compiler_option_0_expects_an_argument_6044\", \"Compiler option '{0}' expects an argument.\"),\n Unterminated_quoted_string_in_response_file_0: diag(6045, ts.DiagnosticCategory.Error, \"Unterminated_quoted_string_in_response_file_0_6045\", \"Unterminated quoted string in response file '{0}'.\"),\n Argument_for_0_option_must_be_Colon_1: diag(6046, ts.DiagnosticCategory.Error, \"Argument_for_0_option_must_be_Colon_1_6046\", \"Argument for '{0}' option must be: {1}.\"),\n Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1: diag(6048, ts.DiagnosticCategory.Error, \"Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1_6048\", \"Locale must be of the form or -. For example '{0}' or '{1}'.\"),\n Unsupported_locale_0: diag(6049, ts.DiagnosticCategory.Error, \"Unsupported_locale_0_6049\", \"Unsupported locale '{0}'.\"),\n Unable_to_open_file_0: diag(6050, ts.DiagnosticCategory.Error, \"Unable_to_open_file_0_6050\", \"Unable to open file '{0}'.\"),\n Corrupted_locale_file_0: diag(6051, ts.DiagnosticCategory.Error, \"Corrupted_locale_file_0_6051\", \"Corrupted locale file {0}.\"),\n Raise_error_on_expressions_and_declarations_with_an_implied_any_type: diag(6052, ts.DiagnosticCategory.Message, \"Raise_error_on_expressions_and_declarations_with_an_implied_any_type_6052\", \"Raise error on expressions and declarations with an implied 'any' type.\"),\n File_0_not_found: diag(6053, ts.DiagnosticCategory.Error, \"File_0_not_found_6053\", \"File '{0}' not found.\"),\n File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1: diag(6054, ts.DiagnosticCategory.Error, \"File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1_6054\", \"File '{0}' has an unsupported extension. The only supported extensions are {1}.\"),\n Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures: diag(6055, ts.DiagnosticCategory.Message, \"Suppress_noImplicitAny_errors_for_indexing_objects_lacking_index_signatures_6055\", \"Suppress noImplicitAny errors for indexing objects lacking index signatures.\"),\n Do_not_emit_declarations_for_code_that_has_an_internal_annotation: diag(6056, ts.DiagnosticCategory.Message, \"Do_not_emit_declarations_for_code_that_has_an_internal_annotation_6056\", \"Do not emit declarations for code that has an '@internal' annotation.\"),\n Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir: diag(6058, ts.DiagnosticCategory.Message, \"Specify_the_root_directory_of_input_files_Use_to_control_the_output_directory_structure_with_outDir_6058\", \"Specify the root directory of input files. Use to control the output directory structure with --outDir.\"),\n File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files: diag(6059, ts.DiagnosticCategory.Error, \"File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files_6059\", \"File '{0}' is not under 'rootDir' '{1}'. 'rootDir' is expected to contain all source files.\"),\n Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix: diag(6060, ts.DiagnosticCategory.Message, \"Specify_the_end_of_line_sequence_to_be_used_when_emitting_files_Colon_CRLF_dos_or_LF_unix_6060\", \"Specify the end of line sequence to be used when emitting files: 'CRLF' (dos) or 'LF' (unix).\"),\n NEWLINE: diag(6061, ts.DiagnosticCategory.Message, \"NEWLINE_6061\", \"NEWLINE\"),\n Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line: diag(6064, ts.DiagnosticCategory.Error, \"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line_6064\", \"Option '{0}' can only be specified in 'tsconfig.json' file or set to 'null' on command line.\"),\n Enables_experimental_support_for_ES7_decorators: diag(6065, ts.DiagnosticCategory.Message, \"Enables_experimental_support_for_ES7_decorators_6065\", \"Enables experimental support for ES7 decorators.\"),\n Enables_experimental_support_for_emitting_type_metadata_for_decorators: diag(6066, ts.DiagnosticCategory.Message, \"Enables_experimental_support_for_emitting_type_metadata_for_decorators_6066\", \"Enables experimental support for emitting type metadata for decorators.\"),\n Enables_experimental_support_for_ES7_async_functions: diag(6068, ts.DiagnosticCategory.Message, \"Enables_experimental_support_for_ES7_async_functions_6068\", \"Enables experimental support for ES7 async functions.\"),\n Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6: diag(6069, ts.DiagnosticCategory.Message, \"Specify_module_resolution_strategy_Colon_node_Node_js_or_classic_TypeScript_pre_1_6_6069\", \"Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6).\"),\n Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file: diag(6070, ts.DiagnosticCategory.Message, \"Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file_6070\", \"Initializes a TypeScript project and creates a tsconfig.json file.\"),\n Successfully_created_a_tsconfig_json_file: diag(6071, ts.DiagnosticCategory.Message, \"Successfully_created_a_tsconfig_json_file_6071\", \"Successfully created a tsconfig.json file.\"),\n Suppress_excess_property_checks_for_object_literals: diag(6072, ts.DiagnosticCategory.Message, \"Suppress_excess_property_checks_for_object_literals_6072\", \"Suppress excess property checks for object literals.\"),\n Stylize_errors_and_messages_using_color_and_context_experimental: diag(6073, ts.DiagnosticCategory.Message, \"Stylize_errors_and_messages_using_color_and_context_experimental_6073\", \"Stylize errors and messages using color and context (experimental).\"),\n Do_not_report_errors_on_unused_labels: diag(6074, ts.DiagnosticCategory.Message, \"Do_not_report_errors_on_unused_labels_6074\", \"Do not report errors on unused labels.\"),\n Report_error_when_not_all_code_paths_in_function_return_a_value: diag(6075, ts.DiagnosticCategory.Message, \"Report_error_when_not_all_code_paths_in_function_return_a_value_6075\", \"Report error when not all code paths in function return a value.\"),\n Report_errors_for_fallthrough_cases_in_switch_statement: diag(6076, ts.DiagnosticCategory.Message, \"Report_errors_for_fallthrough_cases_in_switch_statement_6076\", \"Report errors for fallthrough cases in switch statement.\"),\n Do_not_report_errors_on_unreachable_code: diag(6077, ts.DiagnosticCategory.Message, \"Do_not_report_errors_on_unreachable_code_6077\", \"Do not report errors on unreachable code.\"),\n Disallow_inconsistently_cased_references_to_the_same_file: diag(6078, ts.DiagnosticCategory.Message, \"Disallow_inconsistently_cased_references_to_the_same_file_6078\", \"Disallow inconsistently-cased references to the same file.\"),\n Specify_library_files_to_be_included_in_the_compilation: diag(6079, ts.DiagnosticCategory.Message, \"Specify_library_files_to_be_included_in_the_compilation_6079\", \"Specify library files to be included in the compilation.\"),\n Specify_JSX_code_generation: diag(6080, ts.DiagnosticCategory.Message, \"Specify_JSX_code_generation_6080\", \"Specify JSX code generation.\"),\n File_0_has_an_unsupported_extension_so_skipping_it: diag(6081, ts.DiagnosticCategory.Message, \"File_0_has_an_unsupported_extension_so_skipping_it_6081\", \"File '{0}' has an unsupported extension, so skipping it.\"),\n Only_amd_and_system_modules_are_supported_alongside_0: diag(6082, ts.DiagnosticCategory.Error, \"Only_amd_and_system_modules_are_supported_alongside_0_6082\", \"Only 'amd' and 'system' modules are supported alongside --{0}.\"),\n Base_directory_to_resolve_non_absolute_module_names: diag(6083, ts.DiagnosticCategory.Message, \"Base_directory_to_resolve_non_absolute_module_names_6083\", \"Base directory to resolve non-absolute module names.\"),\n Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react_JSX_emit: diag(6084, ts.DiagnosticCategory.Message, \"Deprecated_Use_jsxFactory_instead_Specify_the_object_invoked_for_createElement_when_targeting_react__6084\", \"[Deprecated] Use '--jsxFactory' instead. Specify the object invoked for createElement when targeting 'react' JSX emit\"),\n Enable_tracing_of_the_name_resolution_process: diag(6085, ts.DiagnosticCategory.Message, \"Enable_tracing_of_the_name_resolution_process_6085\", \"Enable tracing of the name resolution process.\"),\n Resolving_module_0_from_1: diag(6086, ts.DiagnosticCategory.Message, \"Resolving_module_0_from_1_6086\", \"======== Resolving module '{0}' from '{1}'. ========\"),\n Explicitly_specified_module_resolution_kind_Colon_0: diag(6087, ts.DiagnosticCategory.Message, \"Explicitly_specified_module_resolution_kind_Colon_0_6087\", \"Explicitly specified module resolution kind: '{0}'.\"),\n Module_resolution_kind_is_not_specified_using_0: diag(6088, ts.DiagnosticCategory.Message, \"Module_resolution_kind_is_not_specified_using_0_6088\", \"Module resolution kind is not specified, using '{0}'.\"),\n Module_name_0_was_successfully_resolved_to_1: diag(6089, ts.DiagnosticCategory.Message, \"Module_name_0_was_successfully_resolved_to_1_6089\", \"======== Module name '{0}' was successfully resolved to '{1}'. ========\"),\n Module_name_0_was_not_resolved: diag(6090, ts.DiagnosticCategory.Message, \"Module_name_0_was_not_resolved_6090\", \"======== Module name '{0}' was not resolved. ========\"),\n paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0: diag(6091, ts.DiagnosticCategory.Message, \"paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0_6091\", \"'paths' option is specified, looking for a pattern to match module name '{0}'.\"),\n Module_name_0_matched_pattern_1: diag(6092, ts.DiagnosticCategory.Message, \"Module_name_0_matched_pattern_1_6092\", \"Module name '{0}', matched pattern '{1}'.\"),\n Trying_substitution_0_candidate_module_location_Colon_1: diag(6093, ts.DiagnosticCategory.Message, \"Trying_substitution_0_candidate_module_location_Colon_1_6093\", \"Trying substitution '{0}', candidate module location: '{1}'.\"),\n Resolving_module_name_0_relative_to_base_url_1_2: diag(6094, ts.DiagnosticCategory.Message, \"Resolving_module_name_0_relative_to_base_url_1_2_6094\", \"Resolving module name '{0}' relative to base url '{1}' - '{2}'.\"),\n Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1: diag(6095, ts.DiagnosticCategory.Message, \"Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1_6095\", \"Loading module as file / folder, candidate module location '{0}', target file type '{1}'.\"),\n File_0_does_not_exist: diag(6096, ts.DiagnosticCategory.Message, \"File_0_does_not_exist_6096\", \"File '{0}' does not exist.\"),\n File_0_exist_use_it_as_a_name_resolution_result: diag(6097, ts.DiagnosticCategory.Message, \"File_0_exist_use_it_as_a_name_resolution_result_6097\", \"File '{0}' exist - use it as a name resolution result.\"),\n Loading_module_0_from_node_modules_folder_target_file_type_1: diag(6098, ts.DiagnosticCategory.Message, \"Loading_module_0_from_node_modules_folder_target_file_type_1_6098\", \"Loading module '{0}' from 'node_modules' folder, target file type '{1}'.\"),\n Found_package_json_at_0: diag(6099, ts.DiagnosticCategory.Message, \"Found_package_json_at_0_6099\", \"Found 'package.json' at '{0}'.\"),\n package_json_does_not_have_a_0_field: diag(6100, ts.DiagnosticCategory.Message, \"package_json_does_not_have_a_0_field_6100\", \"'package.json' does not have a '{0}' field.\"),\n package_json_has_0_field_1_that_references_2: diag(6101, ts.DiagnosticCategory.Message, \"package_json_has_0_field_1_that_references_2_6101\", \"'package.json' has '{0}' field '{1}' that references '{2}'.\"),\n Allow_javascript_files_to_be_compiled: diag(6102, ts.DiagnosticCategory.Message, \"Allow_javascript_files_to_be_compiled_6102\", \"Allow javascript files to be compiled.\"),\n Option_0_should_have_array_of_strings_as_a_value: diag(6103, ts.DiagnosticCategory.Error, \"Option_0_should_have_array_of_strings_as_a_value_6103\", \"Option '{0}' should have array of strings as a value.\"),\n Checking_if_0_is_the_longest_matching_prefix_for_1_2: diag(6104, ts.DiagnosticCategory.Message, \"Checking_if_0_is_the_longest_matching_prefix_for_1_2_6104\", \"Checking if '{0}' is the longest matching prefix for '{1}' - '{2}'.\"),\n Expected_type_of_0_field_in_package_json_to_be_1_got_2: diag(6105, ts.DiagnosticCategory.Message, \"Expected_type_of_0_field_in_package_json_to_be_1_got_2_6105\", \"Expected type of '{0}' field in 'package.json' to be '{1}', got '{2}'.\"),\n baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1: diag(6106, ts.DiagnosticCategory.Message, \"baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1_6106\", \"'baseUrl' option is set to '{0}', using this value to resolve non-relative module name '{1}'.\"),\n rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0: diag(6107, ts.DiagnosticCategory.Message, \"rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0_6107\", \"'rootDirs' option is set, using it to resolve relative module name '{0}'.\"),\n Longest_matching_prefix_for_0_is_1: diag(6108, ts.DiagnosticCategory.Message, \"Longest_matching_prefix_for_0_is_1_6108\", \"Longest matching prefix for '{0}' is '{1}'.\"),\n Loading_0_from_the_root_dir_1_candidate_location_2: diag(6109, ts.DiagnosticCategory.Message, \"Loading_0_from_the_root_dir_1_candidate_location_2_6109\", \"Loading '{0}' from the root dir '{1}', candidate location '{2}'.\"),\n Trying_other_entries_in_rootDirs: diag(6110, ts.DiagnosticCategory.Message, \"Trying_other_entries_in_rootDirs_6110\", \"Trying other entries in 'rootDirs'.\"),\n Module_resolution_using_rootDirs_has_failed: diag(6111, ts.DiagnosticCategory.Message, \"Module_resolution_using_rootDirs_has_failed_6111\", \"Module resolution using 'rootDirs' has failed.\"),\n Do_not_emit_use_strict_directives_in_module_output: diag(6112, ts.DiagnosticCategory.Message, \"Do_not_emit_use_strict_directives_in_module_output_6112\", \"Do not emit 'use strict' directives in module output.\"),\n Enable_strict_null_checks: diag(6113, ts.DiagnosticCategory.Message, \"Enable_strict_null_checks_6113\", \"Enable strict null checks.\"),\n Unknown_option_excludes_Did_you_mean_exclude: diag(6114, ts.DiagnosticCategory.Error, \"Unknown_option_excludes_Did_you_mean_exclude_6114\", \"Unknown option 'excludes'. Did you mean 'exclude'?\"),\n Raise_error_on_this_expressions_with_an_implied_any_type: diag(6115, ts.DiagnosticCategory.Message, \"Raise_error_on_this_expressions_with_an_implied_any_type_6115\", \"Raise error on 'this' expressions with an implied 'any' type.\"),\n Resolving_type_reference_directive_0_containing_file_1_root_directory_2: diag(6116, ts.DiagnosticCategory.Message, \"Resolving_type_reference_directive_0_containing_file_1_root_directory_2_6116\", \"======== Resolving type reference directive '{0}', containing file '{1}', root directory '{2}'. ========\"),\n Resolving_using_primary_search_paths: diag(6117, ts.DiagnosticCategory.Message, \"Resolving_using_primary_search_paths_6117\", \"Resolving using primary search paths...\"),\n Resolving_from_node_modules_folder: diag(6118, ts.DiagnosticCategory.Message, \"Resolving_from_node_modules_folder_6118\", \"Resolving from node_modules folder...\"),\n Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2: diag(6119, ts.DiagnosticCategory.Message, \"Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2_6119\", \"======== Type reference directive '{0}' was successfully resolved to '{1}', primary: {2}. ========\"),\n Type_reference_directive_0_was_not_resolved: diag(6120, ts.DiagnosticCategory.Message, \"Type_reference_directive_0_was_not_resolved_6120\", \"======== Type reference directive '{0}' was not resolved. ========\"),\n Resolving_with_primary_search_path_0: diag(6121, ts.DiagnosticCategory.Message, \"Resolving_with_primary_search_path_0_6121\", \"Resolving with primary search path '{0}'.\"),\n Root_directory_cannot_be_determined_skipping_primary_search_paths: diag(6122, ts.DiagnosticCategory.Message, \"Root_directory_cannot_be_determined_skipping_primary_search_paths_6122\", \"Root directory cannot be determined, skipping primary search paths.\"),\n Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set: diag(6123, ts.DiagnosticCategory.Message, \"Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set_6123\", \"======== Resolving type reference directive '{0}', containing file '{1}', root directory not set. ========\"),\n Type_declaration_files_to_be_included_in_compilation: diag(6124, ts.DiagnosticCategory.Message, \"Type_declaration_files_to_be_included_in_compilation_6124\", \"Type declaration files to be included in compilation.\"),\n Looking_up_in_node_modules_folder_initial_location_0: diag(6125, ts.DiagnosticCategory.Message, \"Looking_up_in_node_modules_folder_initial_location_0_6125\", \"Looking up in 'node_modules' folder, initial location '{0}'.\"),\n Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder: diag(6126, ts.DiagnosticCategory.Message, \"Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_mod_6126\", \"Containing file is not specified and root directory cannot be determined, skipping lookup in 'node_modules' folder.\"),\n Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1: diag(6127, ts.DiagnosticCategory.Message, \"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1_6127\", \"======== Resolving type reference directive '{0}', containing file not set, root directory '{1}'. ========\"),\n Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set: diag(6128, ts.DiagnosticCategory.Message, \"Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set_6128\", \"======== Resolving type reference directive '{0}', containing file not set, root directory not set. ========\"),\n Resolving_real_path_for_0_result_1: diag(6130, ts.DiagnosticCategory.Message, \"Resolving_real_path_for_0_result_1_6130\", \"Resolving real path for '{0}', result '{1}'.\"),\n Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system: diag(6131, ts.DiagnosticCategory.Error, \"Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system_6131\", \"Cannot compile modules using option '{0}' unless the '--module' flag is 'amd' or 'system'.\"),\n File_name_0_has_a_1_extension_stripping_it: diag(6132, ts.DiagnosticCategory.Message, \"File_name_0_has_a_1_extension_stripping_it_6132\", \"File name '{0}' has a '{1}' extension - stripping it.\"),\n _0_is_declared_but_its_value_is_never_read: diag(6133, ts.DiagnosticCategory.Error, \"_0_is_declared_but_its_value_is_never_read_6133\", \"'{0}' is declared but its value is never read.\", /*reportsUnnecessary*/ true),\n Report_errors_on_unused_locals: diag(6134, ts.DiagnosticCategory.Message, \"Report_errors_on_unused_locals_6134\", \"Report errors on unused locals.\"),\n Report_errors_on_unused_parameters: diag(6135, ts.DiagnosticCategory.Message, \"Report_errors_on_unused_parameters_6135\", \"Report errors on unused parameters.\"),\n The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files: diag(6136, ts.DiagnosticCategory.Message, \"The_maximum_dependency_depth_to_search_under_node_modules_and_load_JavaScript_files_6136\", \"The maximum dependency depth to search under node_modules and load JavaScript files.\"),\n Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1: diag(6137, ts.DiagnosticCategory.Error, \"Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1_6137\", \"Cannot import type declaration files. Consider importing '{0}' instead of '{1}'.\"),\n Property_0_is_declared_but_its_value_is_never_read: diag(6138, ts.DiagnosticCategory.Error, \"Property_0_is_declared_but_its_value_is_never_read_6138\", \"Property '{0}' is declared but its value is never read.\", /*reportsUnnecessary*/ true),\n Import_emit_helpers_from_tslib: diag(6139, ts.DiagnosticCategory.Message, \"Import_emit_helpers_from_tslib_6139\", \"Import emit helpers from 'tslib'.\"),\n Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2: diag(6140, ts.DiagnosticCategory.Error, \"Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using__6140\", \"Auto discovery for typings is enabled in project '{0}'. Running extra resolution pass for module '{1}' using cache location '{2}'.\"),\n Parse_in_strict_mode_and_emit_use_strict_for_each_source_file: diag(6141, ts.DiagnosticCategory.Message, \"Parse_in_strict_mode_and_emit_use_strict_for_each_source_file_6141\", \"Parse in strict mode and emit \\\"use strict\\\" for each source file.\"),\n Module_0_was_resolved_to_1_but_jsx_is_not_set: diag(6142, ts.DiagnosticCategory.Error, \"Module_0_was_resolved_to_1_but_jsx_is_not_set_6142\", \"Module '{0}' was resolved to '{1}', but '--jsx' is not set.\"),\n Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1: diag(6144, ts.DiagnosticCategory.Message, \"Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1_6144\", \"Module '{0}' was resolved as locally declared ambient module in file '{1}'.\"),\n Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified: diag(6145, ts.DiagnosticCategory.Message, \"Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified_6145\", \"Module '{0}' was resolved as ambient module declared in '{1}' since this file was not modified.\"),\n Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h: diag(6146, ts.DiagnosticCategory.Message, \"Specify_the_JSX_factory_function_to_use_when_targeting_react_JSX_emit_e_g_React_createElement_or_h_6146\", \"Specify the JSX factory function to use when targeting 'react' JSX emit, e.g. 'React.createElement' or 'h'.\"),\n Resolution_for_module_0_was_found_in_cache_from_location_1: diag(6147, ts.DiagnosticCategory.Message, \"Resolution_for_module_0_was_found_in_cache_from_location_1_6147\", \"Resolution for module '{0}' was found in cache from location '{1}'.\"),\n Directory_0_does_not_exist_skipping_all_lookups_in_it: diag(6148, ts.DiagnosticCategory.Message, \"Directory_0_does_not_exist_skipping_all_lookups_in_it_6148\", \"Directory '{0}' does not exist, skipping all lookups in it.\"),\n Show_diagnostic_information: diag(6149, ts.DiagnosticCategory.Message, \"Show_diagnostic_information_6149\", \"Show diagnostic information.\"),\n Show_verbose_diagnostic_information: diag(6150, ts.DiagnosticCategory.Message, \"Show_verbose_diagnostic_information_6150\", \"Show verbose diagnostic information.\"),\n Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file: diag(6151, ts.DiagnosticCategory.Message, \"Emit_a_single_file_with_source_maps_instead_of_having_a_separate_file_6151\", \"Emit a single file with source maps instead of having a separate file.\"),\n Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap_to_be_set: diag(6152, ts.DiagnosticCategory.Message, \"Emit_the_source_alongside_the_sourcemaps_within_a_single_file_requires_inlineSourceMap_or_sourceMap__6152\", \"Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set.\"),\n Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule: diag(6153, ts.DiagnosticCategory.Message, \"Transpile_each_file_as_a_separate_module_similar_to_ts_transpileModule_6153\", \"Transpile each file as a separate module (similar to 'ts.transpileModule').\"),\n Print_names_of_generated_files_part_of_the_compilation: diag(6154, ts.DiagnosticCategory.Message, \"Print_names_of_generated_files_part_of_the_compilation_6154\", \"Print names of generated files part of the compilation.\"),\n Print_names_of_files_part_of_the_compilation: diag(6155, ts.DiagnosticCategory.Message, \"Print_names_of_files_part_of_the_compilation_6155\", \"Print names of files part of the compilation.\"),\n The_locale_used_when_displaying_messages_to_the_user_e_g_en_us: diag(6156, ts.DiagnosticCategory.Message, \"The_locale_used_when_displaying_messages_to_the_user_e_g_en_us_6156\", \"The locale used when displaying messages to the user (e.g. 'en-us')\"),\n Do_not_generate_custom_helper_functions_like_extends_in_compiled_output: diag(6157, ts.DiagnosticCategory.Message, \"Do_not_generate_custom_helper_functions_like_extends_in_compiled_output_6157\", \"Do not generate custom helper functions like '__extends' in compiled output.\"),\n Do_not_include_the_default_library_file_lib_d_ts: diag(6158, ts.DiagnosticCategory.Message, \"Do_not_include_the_default_library_file_lib_d_ts_6158\", \"Do not include the default library file (lib.d.ts).\"),\n Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files: diag(6159, ts.DiagnosticCategory.Message, \"Do_not_add_triple_slash_references_or_imported_modules_to_the_list_of_compiled_files_6159\", \"Do not add triple-slash references or imported modules to the list of compiled files.\"),\n Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files: diag(6160, ts.DiagnosticCategory.Message, \"Deprecated_Use_skipLibCheck_instead_Skip_type_checking_of_default_library_declaration_files_6160\", \"[Deprecated] Use '--skipLibCheck' instead. Skip type checking of default library declaration files.\"),\n List_of_folders_to_include_type_definitions_from: diag(6161, ts.DiagnosticCategory.Message, \"List_of_folders_to_include_type_definitions_from_6161\", \"List of folders to include type definitions from.\"),\n Disable_size_limitations_on_JavaScript_projects: diag(6162, ts.DiagnosticCategory.Message, \"Disable_size_limitations_on_JavaScript_projects_6162\", \"Disable size limitations on JavaScript projects.\"),\n The_character_set_of_the_input_files: diag(6163, ts.DiagnosticCategory.Message, \"The_character_set_of_the_input_files_6163\", \"The character set of the input files.\"),\n Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files: diag(6622, ts.DiagnosticCategory.Message, \"Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files_6622\", \"Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files.\"),\n Do_not_truncate_error_messages: diag(6165, ts.DiagnosticCategory.Message, \"Do_not_truncate_error_messages_6165\", \"Do not truncate error messages.\"),\n Output_directory_for_generated_declaration_files: diag(6166, ts.DiagnosticCategory.Message, \"Output_directory_for_generated_declaration_files_6166\", \"Output directory for generated declaration files.\"),\n A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl: diag(6167, ts.DiagnosticCategory.Message, \"A_series_of_entries_which_re_map_imports_to_lookup_locations_relative_to_the_baseUrl_6167\", \"A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.\"),\n List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime: diag(6168, ts.DiagnosticCategory.Message, \"List_of_root_folders_whose_combined_content_represents_the_structure_of_the_project_at_runtime_6168\", \"List of root folders whose combined content represents the structure of the project at runtime.\"),\n Show_all_compiler_options: diag(6169, ts.DiagnosticCategory.Message, \"Show_all_compiler_options_6169\", \"Show all compiler options.\"),\n Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file: diag(6170, ts.DiagnosticCategory.Message, \"Deprecated_Use_outFile_instead_Concatenate_and_emit_output_to_single_file_6170\", \"[Deprecated] Use '--outFile' instead. Concatenate and emit output to single file\"),\n Command_line_Options: diag(6171, ts.DiagnosticCategory.Message, \"Command_line_Options_6171\", \"Command-line Options\"),\n Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3: diag(6179, ts.DiagnosticCategory.Message, \"Provide_full_support_for_iterables_in_for_of_spread_and_destructuring_when_targeting_ES5_or_ES3_6179\", \"Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'.\"),\n Enable_all_strict_type_checking_options: diag(6180, ts.DiagnosticCategory.Message, \"Enable_all_strict_type_checking_options_6180\", \"Enable all strict type-checking options.\"),\n List_of_language_service_plugins: diag(6181, ts.DiagnosticCategory.Message, \"List_of_language_service_plugins_6181\", \"List of language service plugins.\"),\n Scoped_package_detected_looking_in_0: diag(6182, ts.DiagnosticCategory.Message, \"Scoped_package_detected_looking_in_0_6182\", \"Scoped package detected, looking in '{0}'\"),\n Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2: diag(6183, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_6183\", \"Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}'.\"),\n Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: diag(6184, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package__6184\", \"Reusing resolution of module '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'.\"),\n Enable_strict_checking_of_function_types: diag(6186, ts.DiagnosticCategory.Message, \"Enable_strict_checking_of_function_types_6186\", \"Enable strict checking of function types.\"),\n Enable_strict_checking_of_property_initialization_in_classes: diag(6187, ts.DiagnosticCategory.Message, \"Enable_strict_checking_of_property_initialization_in_classes_6187\", \"Enable strict checking of property initialization in classes.\"),\n Numeric_separators_are_not_allowed_here: diag(6188, ts.DiagnosticCategory.Error, \"Numeric_separators_are_not_allowed_here_6188\", \"Numeric separators are not allowed here.\"),\n Multiple_consecutive_numeric_separators_are_not_permitted: diag(6189, ts.DiagnosticCategory.Error, \"Multiple_consecutive_numeric_separators_are_not_permitted_6189\", \"Multiple consecutive numeric separators are not permitted.\"),\n Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen: diag(6191, ts.DiagnosticCategory.Message, \"Whether_to_keep_outdated_console_output_in_watch_mode_instead_of_clearing_the_screen_6191\", \"Whether to keep outdated console output in watch mode instead of clearing the screen.\"),\n All_imports_in_import_declaration_are_unused: diag(6192, ts.DiagnosticCategory.Error, \"All_imports_in_import_declaration_are_unused_6192\", \"All imports in import declaration are unused.\", /*reportsUnnecessary*/ true),\n Found_1_error_Watching_for_file_changes: diag(6193, ts.DiagnosticCategory.Message, \"Found_1_error_Watching_for_file_changes_6193\", \"Found 1 error. Watching for file changes.\"),\n Found_0_errors_Watching_for_file_changes: diag(6194, ts.DiagnosticCategory.Message, \"Found_0_errors_Watching_for_file_changes_6194\", \"Found {0} errors. Watching for file changes.\"),\n Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols: diag(6195, ts.DiagnosticCategory.Message, \"Resolve_keyof_to_string_valued_property_names_only_no_numbers_or_symbols_6195\", \"Resolve 'keyof' to string valued property names only (no numbers or symbols).\"),\n _0_is_declared_but_never_used: diag(6196, ts.DiagnosticCategory.Error, \"_0_is_declared_but_never_used_6196\", \"'{0}' is declared but never used.\", /*reportsUnnecessary*/ true),\n Include_modules_imported_with_json_extension: diag(6197, ts.DiagnosticCategory.Message, \"Include_modules_imported_with_json_extension_6197\", \"Include modules imported with '.json' extension\"),\n All_destructured_elements_are_unused: diag(6198, ts.DiagnosticCategory.Error, \"All_destructured_elements_are_unused_6198\", \"All destructured elements are unused.\", /*reportsUnnecessary*/ true),\n All_variables_are_unused: diag(6199, ts.DiagnosticCategory.Error, \"All_variables_are_unused_6199\", \"All variables are unused.\", /*reportsUnnecessary*/ true),\n Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0: diag(6200, ts.DiagnosticCategory.Error, \"Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0_6200\", \"Definitions of the following identifiers conflict with those in another file: {0}\"),\n Conflicts_are_in_this_file: diag(6201, ts.DiagnosticCategory.Message, \"Conflicts_are_in_this_file_6201\", \"Conflicts are in this file.\"),\n Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0: diag(6202, ts.DiagnosticCategory.Error, \"Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0_6202\", \"Project references may not form a circular graph. Cycle detected: {0}\"),\n _0_was_also_declared_here: diag(6203, ts.DiagnosticCategory.Message, \"_0_was_also_declared_here_6203\", \"'{0}' was also declared here.\"),\n and_here: diag(6204, ts.DiagnosticCategory.Message, \"and_here_6204\", \"and here.\"),\n All_type_parameters_are_unused: diag(6205, ts.DiagnosticCategory.Error, \"All_type_parameters_are_unused_6205\", \"All type parameters are unused.\"),\n package_json_has_a_typesVersions_field_with_version_specific_path_mappings: diag(6206, ts.DiagnosticCategory.Message, \"package_json_has_a_typesVersions_field_with_version_specific_path_mappings_6206\", \"'package.json' has a 'typesVersions' field with version-specific path mappings.\"),\n package_json_does_not_have_a_typesVersions_entry_that_matches_version_0: diag(6207, ts.DiagnosticCategory.Message, \"package_json_does_not_have_a_typesVersions_entry_that_matches_version_0_6207\", \"'package.json' does not have a 'typesVersions' entry that matches version '{0}'.\"),\n package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2: diag(6208, ts.DiagnosticCategory.Message, \"package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_ma_6208\", \"'package.json' has a 'typesVersions' entry '{0}' that matches compiler version '{1}', looking for a pattern to match module name '{2}'.\"),\n package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range: diag(6209, ts.DiagnosticCategory.Message, \"package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range_6209\", \"'package.json' has a 'typesVersions' entry '{0}' that is not a valid semver range.\"),\n An_argument_for_0_was_not_provided: diag(6210, ts.DiagnosticCategory.Message, \"An_argument_for_0_was_not_provided_6210\", \"An argument for '{0}' was not provided.\"),\n An_argument_matching_this_binding_pattern_was_not_provided: diag(6211, ts.DiagnosticCategory.Message, \"An_argument_matching_this_binding_pattern_was_not_provided_6211\", \"An argument matching this binding pattern was not provided.\"),\n Did_you_mean_to_call_this_expression: diag(6212, ts.DiagnosticCategory.Message, \"Did_you_mean_to_call_this_expression_6212\", \"Did you mean to call this expression?\"),\n Did_you_mean_to_use_new_with_this_expression: diag(6213, ts.DiagnosticCategory.Message, \"Did_you_mean_to_use_new_with_this_expression_6213\", \"Did you mean to use 'new' with this expression?\"),\n Enable_strict_bind_call_and_apply_methods_on_functions: diag(6214, ts.DiagnosticCategory.Message, \"Enable_strict_bind_call_and_apply_methods_on_functions_6214\", \"Enable strict 'bind', 'call', and 'apply' methods on functions.\"),\n Using_compiler_options_of_project_reference_redirect_0: diag(6215, ts.DiagnosticCategory.Message, \"Using_compiler_options_of_project_reference_redirect_0_6215\", \"Using compiler options of project reference redirect '{0}'.\"),\n Found_1_error: diag(6216, ts.DiagnosticCategory.Message, \"Found_1_error_6216\", \"Found 1 error.\"),\n Found_0_errors: diag(6217, ts.DiagnosticCategory.Message, \"Found_0_errors_6217\", \"Found {0} errors.\"),\n Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2: diag(6218, ts.DiagnosticCategory.Message, \"Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2_6218\", \"======== Module name '{0}' was successfully resolved to '{1}' with Package ID '{2}'. ========\"),\n Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3: diag(6219, ts.DiagnosticCategory.Message, \"Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3_6219\", \"======== Type reference directive '{0}' was successfully resolved to '{1}' with Package ID '{2}', primary: {3}. ========\"),\n package_json_had_a_falsy_0_field: diag(6220, ts.DiagnosticCategory.Message, \"package_json_had_a_falsy_0_field_6220\", \"'package.json' had a falsy '{0}' field.\"),\n Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects: diag(6221, ts.DiagnosticCategory.Message, \"Disable_use_of_source_files_instead_of_declaration_files_from_referenced_projects_6221\", \"Disable use of source files instead of declaration files from referenced projects.\"),\n Emit_class_fields_with_Define_instead_of_Set: diag(6222, ts.DiagnosticCategory.Message, \"Emit_class_fields_with_Define_instead_of_Set_6222\", \"Emit class fields with Define instead of Set.\"),\n Generates_a_CPU_profile: diag(6223, ts.DiagnosticCategory.Message, \"Generates_a_CPU_profile_6223\", \"Generates a CPU profile.\"),\n Disable_solution_searching_for_this_project: diag(6224, ts.DiagnosticCategory.Message, \"Disable_solution_searching_for_this_project_6224\", \"Disable solution searching for this project.\"),\n Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling_UseFsEvents_UseFsEventsOnParentDirectory: diag(6225, ts.DiagnosticCategory.Message, \"Specify_strategy_for_watching_file_Colon_FixedPollingInterval_default_PriorityPollingInterval_Dynami_6225\", \"Specify strategy for watching file: 'FixedPollingInterval' (default), 'PriorityPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling', 'UseFsEvents', 'UseFsEventsOnParentDirectory'.\"),\n Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively_Colon_UseFsEvents_default_FixedPollingInterval_DynamicPriorityPolling_FixedChunkSizePolling: diag(6226, ts.DiagnosticCategory.Message, \"Specify_strategy_for_watching_directory_on_platforms_that_don_t_support_recursive_watching_natively__6226\", \"Specify strategy for watching directory on platforms that don't support recursive watching natively: 'UseFsEvents' (default), 'FixedPollingInterval', 'DynamicPriorityPolling', 'FixedChunkSizePolling'.\"),\n Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_FixedInterval_default_PriorityInterval_DynamicPriority_FixedChunkSize: diag(6227, ts.DiagnosticCategory.Message, \"Specify_strategy_for_creating_a_polling_watch_when_it_fails_to_create_using_file_system_events_Colon_6227\", \"Specify strategy for creating a polling watch when it fails to create using file system events: 'FixedInterval' (default), 'PriorityInterval', 'DynamicPriority', 'FixedChunkSize'.\"),\n Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3: diag(6229, ts.DiagnosticCategory.Error, \"Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3_6229\", \"Tag '{0}' expects at least '{1}' arguments, but the JSX factory '{2}' provides at most '{3}'.\"),\n Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line: diag(6230, ts.DiagnosticCategory.Error, \"Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line_6230\", \"Option '{0}' can only be specified in 'tsconfig.json' file or set to 'false' or 'null' on command line.\"),\n Could_not_resolve_the_path_0_with_the_extensions_Colon_1: diag(6231, ts.DiagnosticCategory.Error, \"Could_not_resolve_the_path_0_with_the_extensions_Colon_1_6231\", \"Could not resolve the path '{0}' with the extensions: {1}.\"),\n Declaration_augments_declaration_in_another_file_This_cannot_be_serialized: diag(6232, ts.DiagnosticCategory.Error, \"Declaration_augments_declaration_in_another_file_This_cannot_be_serialized_6232\", \"Declaration augments declaration in another file. This cannot be serialized.\"),\n This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file: diag(6233, ts.DiagnosticCategory.Error, \"This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_fil_6233\", \"This is the declaration being augmented. Consider moving the augmenting declaration into the same file.\"),\n This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without: diag(6234, ts.DiagnosticCategory.Error, \"This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without_6234\", \"This expression is not callable because it is a 'get' accessor. Did you mean to use it without '()'?\"),\n Disable_loading_referenced_projects: diag(6235, ts.DiagnosticCategory.Message, \"Disable_loading_referenced_projects_6235\", \"Disable loading referenced projects.\"),\n Arguments_for_the_rest_parameter_0_were_not_provided: diag(6236, ts.DiagnosticCategory.Error, \"Arguments_for_the_rest_parameter_0_were_not_provided_6236\", \"Arguments for the rest parameter '{0}' were not provided.\"),\n Generates_an_event_trace_and_a_list_of_types: diag(6237, ts.DiagnosticCategory.Message, \"Generates_an_event_trace_and_a_list_of_types_6237\", \"Generates an event trace and a list of types.\"),\n Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react: diag(6238, ts.DiagnosticCategory.Error, \"Specify_the_module_specifier_to_be_used_to_import_the_jsx_and_jsxs_factory_functions_from_eg_react_6238\", \"Specify the module specifier to be used to import the 'jsx' and 'jsxs' factory functions from. eg, react\"),\n File_0_exists_according_to_earlier_cached_lookups: diag(6239, ts.DiagnosticCategory.Message, \"File_0_exists_according_to_earlier_cached_lookups_6239\", \"File '{0}' exists according to earlier cached lookups.\"),\n File_0_does_not_exist_according_to_earlier_cached_lookups: diag(6240, ts.DiagnosticCategory.Message, \"File_0_does_not_exist_according_to_earlier_cached_lookups_6240\", \"File '{0}' does not exist according to earlier cached lookups.\"),\n Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1: diag(6241, ts.DiagnosticCategory.Message, \"Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1_6241\", \"Resolution for type reference directive '{0}' was found in cache from location '{1}'.\"),\n Resolving_type_reference_directive_0_containing_file_1: diag(6242, ts.DiagnosticCategory.Message, \"Resolving_type_reference_directive_0_containing_file_1_6242\", \"======== Resolving type reference directive '{0}', containing file '{1}'. ========\"),\n Interpret_optional_property_types_as_written_rather_than_adding_undefined: diag(6243, ts.DiagnosticCategory.Message, \"Interpret_optional_property_types_as_written_rather_than_adding_undefined_6243\", \"Interpret optional property types as written, rather than adding 'undefined'.\"),\n Modules: diag(6244, ts.DiagnosticCategory.Message, \"Modules_6244\", \"Modules\"),\n File_Management: diag(6245, ts.DiagnosticCategory.Message, \"File_Management_6245\", \"File Management\"),\n Emit: diag(6246, ts.DiagnosticCategory.Message, \"Emit_6246\", \"Emit\"),\n JavaScript_Support: diag(6247, ts.DiagnosticCategory.Message, \"JavaScript_Support_6247\", \"JavaScript Support\"),\n Type_Checking: diag(6248, ts.DiagnosticCategory.Message, \"Type_Checking_6248\", \"Type Checking\"),\n Editor_Support: diag(6249, ts.DiagnosticCategory.Message, \"Editor_Support_6249\", \"Editor Support\"),\n Watch_and_Build_Modes: diag(6250, ts.DiagnosticCategory.Message, \"Watch_and_Build_Modes_6250\", \"Watch and Build Modes\"),\n Compiler_Diagnostics: diag(6251, ts.DiagnosticCategory.Message, \"Compiler_Diagnostics_6251\", \"Compiler Diagnostics\"),\n Interop_Constraints: diag(6252, ts.DiagnosticCategory.Message, \"Interop_Constraints_6252\", \"Interop Constraints\"),\n Backwards_Compatibility: diag(6253, ts.DiagnosticCategory.Message, \"Backwards_Compatibility_6253\", \"Backwards Compatibility\"),\n Language_and_Environment: diag(6254, ts.DiagnosticCategory.Message, \"Language_and_Environment_6254\", \"Language and Environment\"),\n Projects: diag(6255, ts.DiagnosticCategory.Message, \"Projects_6255\", \"Projects\"),\n Output_Formatting: diag(6256, ts.DiagnosticCategory.Message, \"Output_Formatting_6256\", \"Output Formatting\"),\n Completeness: diag(6257, ts.DiagnosticCategory.Message, \"Completeness_6257\", \"Completeness\"),\n Projects_to_reference: diag(6300, ts.DiagnosticCategory.Message, \"Projects_to_reference_6300\", \"Projects to reference\"),\n Enable_project_compilation: diag(6302, ts.DiagnosticCategory.Message, \"Enable_project_compilation_6302\", \"Enable project compilation\"),\n Composite_projects_may_not_disable_declaration_emit: diag(6304, ts.DiagnosticCategory.Error, \"Composite_projects_may_not_disable_declaration_emit_6304\", \"Composite projects may not disable declaration emit.\"),\n Output_file_0_has_not_been_built_from_source_file_1: diag(6305, ts.DiagnosticCategory.Error, \"Output_file_0_has_not_been_built_from_source_file_1_6305\", \"Output file '{0}' has not been built from source file '{1}'.\"),\n Referenced_project_0_must_have_setting_composite_Colon_true: diag(6306, ts.DiagnosticCategory.Error, \"Referenced_project_0_must_have_setting_composite_Colon_true_6306\", \"Referenced project '{0}' must have setting \\\"composite\\\": true.\"),\n File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern: diag(6307, ts.DiagnosticCategory.Error, \"File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_includ_6307\", \"File '{0}' is not listed within the file list of project '{1}'. Projects must list all files or use an 'include' pattern.\"),\n Cannot_prepend_project_0_because_it_does_not_have_outFile_set: diag(6308, ts.DiagnosticCategory.Error, \"Cannot_prepend_project_0_because_it_does_not_have_outFile_set_6308\", \"Cannot prepend project '{0}' because it does not have 'outFile' set\"),\n Output_file_0_from_project_1_does_not_exist: diag(6309, ts.DiagnosticCategory.Error, \"Output_file_0_from_project_1_does_not_exist_6309\", \"Output file '{0}' from project '{1}' does not exist\"),\n Referenced_project_0_may_not_disable_emit: diag(6310, ts.DiagnosticCategory.Error, \"Referenced_project_0_may_not_disable_emit_6310\", \"Referenced project '{0}' may not disable emit.\"),\n Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2: diag(6350, ts.DiagnosticCategory.Message, \"Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2_6350\", \"Project '{0}' is out of date because oldest output '{1}' is older than newest input '{2}'\"),\n Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2: diag(6351, ts.DiagnosticCategory.Message, \"Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2_6351\", \"Project '{0}' is up to date because newest input '{1}' is older than oldest output '{2}'\"),\n Project_0_is_out_of_date_because_output_file_1_does_not_exist: diag(6352, ts.DiagnosticCategory.Message, \"Project_0_is_out_of_date_because_output_file_1_does_not_exist_6352\", \"Project '{0}' is out of date because output file '{1}' does not exist\"),\n Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date: diag(6353, ts.DiagnosticCategory.Message, \"Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date_6353\", \"Project '{0}' is out of date because its dependency '{1}' is out of date\"),\n Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies: diag(6354, ts.DiagnosticCategory.Message, \"Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies_6354\", \"Project '{0}' is up to date with .d.ts files from its dependencies\"),\n Projects_in_this_build_Colon_0: diag(6355, ts.DiagnosticCategory.Message, \"Projects_in_this_build_Colon_0_6355\", \"Projects in this build: {0}\"),\n A_non_dry_build_would_delete_the_following_files_Colon_0: diag(6356, ts.DiagnosticCategory.Message, \"A_non_dry_build_would_delete_the_following_files_Colon_0_6356\", \"A non-dry build would delete the following files: {0}\"),\n A_non_dry_build_would_build_project_0: diag(6357, ts.DiagnosticCategory.Message, \"A_non_dry_build_would_build_project_0_6357\", \"A non-dry build would build project '{0}'\"),\n Building_project_0: diag(6358, ts.DiagnosticCategory.Message, \"Building_project_0_6358\", \"Building project '{0}'...\"),\n Updating_output_timestamps_of_project_0: diag(6359, ts.DiagnosticCategory.Message, \"Updating_output_timestamps_of_project_0_6359\", \"Updating output timestamps of project '{0}'...\"),\n delete_this_Project_0_is_up_to_date_because_it_was_previously_built: diag(6360, ts.DiagnosticCategory.Message, \"delete_this_Project_0_is_up_to_date_because_it_was_previously_built_6360\", \"delete this - Project '{0}' is up to date because it was previously built\"),\n Project_0_is_up_to_date: diag(6361, ts.DiagnosticCategory.Message, \"Project_0_is_up_to_date_6361\", \"Project '{0}' is up to date\"),\n Skipping_build_of_project_0_because_its_dependency_1_has_errors: diag(6362, ts.DiagnosticCategory.Message, \"Skipping_build_of_project_0_because_its_dependency_1_has_errors_6362\", \"Skipping build of project '{0}' because its dependency '{1}' has errors\"),\n Project_0_can_t_be_built_because_its_dependency_1_has_errors: diag(6363, ts.DiagnosticCategory.Message, \"Project_0_can_t_be_built_because_its_dependency_1_has_errors_6363\", \"Project '{0}' can't be built because its dependency '{1}' has errors\"),\n Build_one_or_more_projects_and_their_dependencies_if_out_of_date: diag(6364, ts.DiagnosticCategory.Message, \"Build_one_or_more_projects_and_their_dependencies_if_out_of_date_6364\", \"Build one or more projects and their dependencies, if out of date\"),\n Delete_the_outputs_of_all_projects: diag(6365, ts.DiagnosticCategory.Message, \"Delete_the_outputs_of_all_projects_6365\", \"Delete the outputs of all projects\"),\n Show_what_would_be_built_or_deleted_if_specified_with_clean: diag(6367, ts.DiagnosticCategory.Message, \"Show_what_would_be_built_or_deleted_if_specified_with_clean_6367\", \"Show what would be built (or deleted, if specified with '--clean')\"),\n Option_build_must_be_the_first_command_line_argument: diag(6369, ts.DiagnosticCategory.Error, \"Option_build_must_be_the_first_command_line_argument_6369\", \"Option '--build' must be the first command line argument.\"),\n Options_0_and_1_cannot_be_combined: diag(6370, ts.DiagnosticCategory.Error, \"Options_0_and_1_cannot_be_combined_6370\", \"Options '{0}' and '{1}' cannot be combined.\"),\n Updating_unchanged_output_timestamps_of_project_0: diag(6371, ts.DiagnosticCategory.Message, \"Updating_unchanged_output_timestamps_of_project_0_6371\", \"Updating unchanged output timestamps of project '{0}'...\"),\n Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed: diag(6372, ts.DiagnosticCategory.Message, \"Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed_6372\", \"Project '{0}' is out of date because output of its dependency '{1}' has changed\"),\n Updating_output_of_project_0: diag(6373, ts.DiagnosticCategory.Message, \"Updating_output_of_project_0_6373\", \"Updating output of project '{0}'...\"),\n A_non_dry_build_would_update_timestamps_for_output_of_project_0: diag(6374, ts.DiagnosticCategory.Message, \"A_non_dry_build_would_update_timestamps_for_output_of_project_0_6374\", \"A non-dry build would update timestamps for output of project '{0}'\"),\n A_non_dry_build_would_update_output_of_project_0: diag(6375, ts.DiagnosticCategory.Message, \"A_non_dry_build_would_update_output_of_project_0_6375\", \"A non-dry build would update output of project '{0}'\"),\n Cannot_update_output_of_project_0_because_there_was_error_reading_file_1: diag(6376, ts.DiagnosticCategory.Message, \"Cannot_update_output_of_project_0_because_there_was_error_reading_file_1_6376\", \"Cannot update output of project '{0}' because there was error reading file '{1}'\"),\n Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1: diag(6377, ts.DiagnosticCategory.Error, \"Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1_6377\", \"Cannot write file '{0}' because it will overwrite '.tsbuildinfo' file generated by referenced project '{1}'\"),\n Enable_incremental_compilation: diag(6378, ts.DiagnosticCategory.Message, \"Enable_incremental_compilation_6378\", \"Enable incremental compilation\"),\n Composite_projects_may_not_disable_incremental_compilation: diag(6379, ts.DiagnosticCategory.Error, \"Composite_projects_may_not_disable_incremental_compilation_6379\", \"Composite projects may not disable incremental compilation.\"),\n Specify_file_to_store_incremental_compilation_information: diag(6380, ts.DiagnosticCategory.Message, \"Specify_file_to_store_incremental_compilation_information_6380\", \"Specify file to store incremental compilation information\"),\n Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2: diag(6381, ts.DiagnosticCategory.Message, \"Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_curren_6381\", \"Project '{0}' is out of date because output for it was generated with version '{1}' that differs with current version '{2}'\"),\n Skipping_build_of_project_0_because_its_dependency_1_was_not_built: diag(6382, ts.DiagnosticCategory.Message, \"Skipping_build_of_project_0_because_its_dependency_1_was_not_built_6382\", \"Skipping build of project '{0}' because its dependency '{1}' was not built\"),\n Project_0_can_t_be_built_because_its_dependency_1_was_not_built: diag(6383, ts.DiagnosticCategory.Message, \"Project_0_can_t_be_built_because_its_dependency_1_was_not_built_6383\", \"Project '{0}' can't be built because its dependency '{1}' was not built\"),\n Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6384, ts.DiagnosticCategory.Message, \"Have_recompiles_in_incremental_and_watch_assume_that_changes_within_a_file_will_only_affect_files_di_6384\", \"Have recompiles in '--incremental' and '--watch' assume that changes within a file will only affect files directly depending on it.\"),\n _0_is_deprecated: diag(6385, ts.DiagnosticCategory.Suggestion, \"_0_is_deprecated_6385\", \"'{0}' is deprecated.\", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),\n Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_native_implementation_of_the_Web_Performance_API_could_not_be_found: diag(6386, ts.DiagnosticCategory.Message, \"Performance_timings_for_diagnostics_or_extendedDiagnostics_are_not_available_in_this_session_A_nativ_6386\", \"Performance timings for '--diagnostics' or '--extendedDiagnostics' are not available in this session. A native implementation of the Web Performance API could not be found.\"),\n The_signature_0_of_1_is_deprecated: diag(6387, ts.DiagnosticCategory.Suggestion, \"The_signature_0_of_1_is_deprecated_6387\", \"The signature '{0}' of '{1}' is deprecated.\", /*reportsUnnecessary*/ undefined, /*elidedInCompatabilityPyramid*/ undefined, /*reportsDeprecated*/ true),\n Project_0_is_being_forcibly_rebuilt: diag(6388, ts.DiagnosticCategory.Message, \"Project_0_is_being_forcibly_rebuilt_6388\", \"Project '{0}' is being forcibly rebuilt\"),\n Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved: diag(6389, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved_6389\", \"Reusing resolution of module '{0}' from '{1}' of old program, it was not resolved.\"),\n Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2: diag(6390, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6390\", \"Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}'.\"),\n Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3: diag(6391, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved__6391\", \"Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was successfully resolved to '{2}' with Package ID '{3}'.\"),\n Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved: diag(6392, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved_6392\", \"Reusing resolution of type reference directive '{0}' from '{1}' of old program, it was not resolved.\"),\n Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3: diag(6393, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6393\", \"Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'.\"),\n Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: diag(6394, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_6394\", \"Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'.\"),\n Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: diag(6395, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved_6395\", \"Reusing resolution of module '{0}' from '{1}' found in cache from location '{2}', it was not resolved.\"),\n Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3: diag(6396, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6396\", \"Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}'.\"),\n Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4: diag(6397, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_succes_6397\", \"Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was successfully resolved to '{3}' with Package ID '{4}'.\"),\n Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved: diag(6398, ts.DiagnosticCategory.Message, \"Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_re_6398\", \"Reusing resolution of type reference directive '{0}' from '{1}' found in cache from location '{2}', it was not resolved.\"),\n The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1: diag(6500, ts.DiagnosticCategory.Message, \"The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1_6500\", \"The expected type comes from property '{0}' which is declared here on type '{1}'\"),\n The_expected_type_comes_from_this_index_signature: diag(6501, ts.DiagnosticCategory.Message, \"The_expected_type_comes_from_this_index_signature_6501\", \"The expected type comes from this index signature.\"),\n The_expected_type_comes_from_the_return_type_of_this_signature: diag(6502, ts.DiagnosticCategory.Message, \"The_expected_type_comes_from_the_return_type_of_this_signature_6502\", \"The expected type comes from the return type of this signature.\"),\n Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing: diag(6503, ts.DiagnosticCategory.Message, \"Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing_6503\", \"Print names of files that are part of the compilation and then stop processing.\"),\n File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option: diag(6504, ts.DiagnosticCategory.Error, \"File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option_6504\", \"File '{0}' is a JavaScript file. Did you mean to enable the 'allowJs' option?\"),\n Print_names_of_files_and_the_reason_they_are_part_of_the_compilation: diag(6505, ts.DiagnosticCategory.Message, \"Print_names_of_files_and_the_reason_they_are_part_of_the_compilation_6505\", \"Print names of files and the reason they are part of the compilation.\"),\n Consider_adding_a_declare_modifier_to_this_class: diag(6506, ts.DiagnosticCategory.Message, \"Consider_adding_a_declare_modifier_to_this_class_6506\", \"Consider adding a 'declare' modifier to this class.\"),\n Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files: diag(6600, ts.DiagnosticCategory.Message, \"Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these__6600\", \"Allow JavaScript files to be a part of your program. Use the `checkJS` option to get errors from these files.\"),\n Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export: diag(6601, ts.DiagnosticCategory.Message, \"Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export_6601\", \"Allow 'import x from y' when a module doesn't have a default export.\"),\n Allow_accessing_UMD_globals_from_modules: diag(6602, ts.DiagnosticCategory.Message, \"Allow_accessing_UMD_globals_from_modules_6602\", \"Allow accessing UMD globals from modules.\"),\n Disable_error_reporting_for_unreachable_code: diag(6603, ts.DiagnosticCategory.Message, \"Disable_error_reporting_for_unreachable_code_6603\", \"Disable error reporting for unreachable code.\"),\n Disable_error_reporting_for_unused_labels: diag(6604, ts.DiagnosticCategory.Message, \"Disable_error_reporting_for_unused_labels_6604\", \"Disable error reporting for unused labels.\"),\n Ensure_use_strict_is_always_emitted: diag(6605, ts.DiagnosticCategory.Message, \"Ensure_use_strict_is_always_emitted_6605\", \"Ensure 'use strict' is always emitted.\"),\n Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it: diag(6606, ts.DiagnosticCategory.Message, \"Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_wi_6606\", \"Have recompiles in projects that use `incremental` and `watch` mode assume that changes within a file will only affect files directly depending on it.\"),\n Specify_the_base_directory_to_resolve_non_relative_module_names: diag(6607, ts.DiagnosticCategory.Message, \"Specify_the_base_directory_to_resolve_non_relative_module_names_6607\", \"Specify the base directory to resolve non-relative module names.\"),\n No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files: diag(6608, ts.DiagnosticCategory.Message, \"No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files_6608\", \"No longer supported. In early versions, manually set the text encoding for reading files.\"),\n Enable_error_reporting_in_type_checked_JavaScript_files: diag(6609, ts.DiagnosticCategory.Message, \"Enable_error_reporting_in_type_checked_JavaScript_files_6609\", \"Enable error reporting in type-checked JavaScript files.\"),\n Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references: diag(6611, ts.DiagnosticCategory.Message, \"Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references_6611\", \"Enable constraints that allow a TypeScript project to be used with project references.\"),\n Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project: diag(6612, ts.DiagnosticCategory.Message, \"Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project_6612\", \"Generate .d.ts files from TypeScript and JavaScript files in your project.\"),\n Specify_the_output_directory_for_generated_declaration_files: diag(6613, ts.DiagnosticCategory.Message, \"Specify_the_output_directory_for_generated_declaration_files_6613\", \"Specify the output directory for generated declaration files.\"),\n Create_sourcemaps_for_d_ts_files: diag(6614, ts.DiagnosticCategory.Message, \"Create_sourcemaps_for_d_ts_files_6614\", \"Create sourcemaps for d.ts files.\"),\n Output_compiler_performance_information_after_building: diag(6615, ts.DiagnosticCategory.Message, \"Output_compiler_performance_information_after_building_6615\", \"Output compiler performance information after building.\"),\n Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project: diag(6616, ts.DiagnosticCategory.Message, \"Disables_inference_for_type_acquisition_by_looking_at_filenames_in_a_project_6616\", \"Disables inference for type acquisition by looking at filenames in a project.\"),\n Reduce_the_number_of_projects_loaded_automatically_by_TypeScript: diag(6617, ts.DiagnosticCategory.Message, \"Reduce_the_number_of_projects_loaded_automatically_by_TypeScript_6617\", \"Reduce the number of projects loaded automatically by TypeScript.\"),\n Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server: diag(6618, ts.DiagnosticCategory.Message, \"Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server_6618\", \"Remove the 20mb cap on total source code size for JavaScript files in the TypeScript language server.\"),\n Opt_a_project_out_of_multi_project_reference_checking_when_editing: diag(6619, ts.DiagnosticCategory.Message, \"Opt_a_project_out_of_multi_project_reference_checking_when_editing_6619\", \"Opt a project out of multi-project reference checking when editing.\"),\n Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects: diag(6620, ts.DiagnosticCategory.Message, \"Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects_6620\", \"Disable preferring source files instead of declaration files when referencing composite projects\"),\n Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration: diag(6621, ts.DiagnosticCategory.Message, \"Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration_6621\", \"Emit more compliant, but verbose and less performant JavaScript for iteration.\"),\n Only_output_d_ts_files_and_not_JavaScript_files: diag(6623, ts.DiagnosticCategory.Message, \"Only_output_d_ts_files_and_not_JavaScript_files_6623\", \"Only output d.ts files and not JavaScript files.\"),\n Emit_design_type_metadata_for_decorated_declarations_in_source_files: diag(6624, ts.DiagnosticCategory.Message, \"Emit_design_type_metadata_for_decorated_declarations_in_source_files_6624\", \"Emit design-type metadata for decorated declarations in source files.\"),\n Disable_the_type_acquisition_for_JavaScript_projects: diag(6625, ts.DiagnosticCategory.Message, \"Disable_the_type_acquisition_for_JavaScript_projects_6625\", \"Disable the type acquisition for JavaScript projects\"),\n Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility: diag(6626, ts.DiagnosticCategory.Message, \"Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheti_6626\", \"Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility.\"),\n Filters_results_from_the_include_option: diag(6627, ts.DiagnosticCategory.Message, \"Filters_results_from_the_include_option_6627\", \"Filters results from the `include` option.\"),\n Remove_a_list_of_directories_from_the_watch_process: diag(6628, ts.DiagnosticCategory.Message, \"Remove_a_list_of_directories_from_the_watch_process_6628\", \"Remove a list of directories from the watch process.\"),\n Remove_a_list_of_files_from_the_watch_mode_s_processing: diag(6629, ts.DiagnosticCategory.Message, \"Remove_a_list_of_files_from_the_watch_mode_s_processing_6629\", \"Remove a list of files from the watch mode's processing.\"),\n Enable_experimental_support_for_TC39_stage_2_draft_decorators: diag(6630, ts.DiagnosticCategory.Message, \"Enable_experimental_support_for_TC39_stage_2_draft_decorators_6630\", \"Enable experimental support for TC39 stage 2 draft decorators.\"),\n Print_files_read_during_the_compilation_including_why_it_was_included: diag(6631, ts.DiagnosticCategory.Message, \"Print_files_read_during_the_compilation_including_why_it_was_included_6631\", \"Print files read during the compilation including why it was included.\"),\n Output_more_detailed_compiler_performance_information_after_building: diag(6632, ts.DiagnosticCategory.Message, \"Output_more_detailed_compiler_performance_information_after_building_6632\", \"Output more detailed compiler performance information after building.\"),\n Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_are_inherited: diag(6633, ts.DiagnosticCategory.Message, \"Specify_one_or_more_path_or_node_module_references_to_base_configuration_files_from_which_settings_a_6633\", \"Specify one or more path or node module references to base configuration files from which settings are inherited.\"),\n Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers: diag(6634, ts.DiagnosticCategory.Message, \"Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers_6634\", \"Specify what approach the watcher should use if the system runs out of native file watchers.\"),\n Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include: diag(6635, ts.DiagnosticCategory.Message, \"Include_a_list_of_files_This_does_not_support_glob_patterns_as_opposed_to_include_6635\", \"Include a list of files. This does not support glob patterns, as opposed to `include`.\"),\n Build_all_projects_including_those_that_appear_to_be_up_to_date: diag(6636, ts.DiagnosticCategory.Message, \"Build_all_projects_including_those_that_appear_to_be_up_to_date_6636\", \"Build all projects, including those that appear to be up to date\"),\n Ensure_that_casing_is_correct_in_imports: diag(6637, ts.DiagnosticCategory.Message, \"Ensure_that_casing_is_correct_in_imports_6637\", \"Ensure that casing is correct in imports.\"),\n Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging: diag(6638, ts.DiagnosticCategory.Message, \"Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging_6638\", \"Emit a v8 CPU profile of the compiler run for debugging.\"),\n Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file: diag(6639, ts.DiagnosticCategory.Message, \"Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file_6639\", \"Allow importing helper functions from tslib once per project, instead of including them per-file.\"),\n Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation: diag(6641, ts.DiagnosticCategory.Message, \"Specify_a_list_of_glob_patterns_that_match_files_to_be_included_in_compilation_6641\", \"Specify a list of glob patterns that match files to be included in compilation.\"),\n Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects: diag(6642, ts.DiagnosticCategory.Message, \"Save_tsbuildinfo_files_to_allow_for_incremental_compilation_of_projects_6642\", \"Save .tsbuildinfo files to allow for incremental compilation of projects.\"),\n Include_sourcemap_files_inside_the_emitted_JavaScript: diag(6643, ts.DiagnosticCategory.Message, \"Include_sourcemap_files_inside_the_emitted_JavaScript_6643\", \"Include sourcemap files inside the emitted JavaScript.\"),\n Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript: diag(6644, ts.DiagnosticCategory.Message, \"Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript_6644\", \"Include source code in the sourcemaps inside the emitted JavaScript.\"),\n Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports: diag(6645, ts.DiagnosticCategory.Message, \"Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports_6645\", \"Ensure that each file can be safely transpiled without relying on other imports.\"),\n Specify_what_JSX_code_is_generated: diag(6646, ts.DiagnosticCategory.Message, \"Specify_what_JSX_code_is_generated_6646\", \"Specify what JSX code is generated.\"),\n Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h: diag(6647, ts.DiagnosticCategory.Message, \"Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h_6647\", \"Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'\"),\n Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment: diag(6648, ts.DiagnosticCategory.Message, \"Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragme_6648\", \"Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'.\"),\n Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk: diag(6649, ts.DiagnosticCategory.Message, \"Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Ast_6649\", \"Specify module specifier used to import the JSX factory functions when using `jsx: react-jsx*`.`\"),\n Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option: diag(6650, ts.DiagnosticCategory.Message, \"Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option_6650\", \"Make keyof only return strings instead of string, numbers or symbols. Legacy option.\"),\n Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment: diag(6651, ts.DiagnosticCategory.Message, \"Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment_6651\", \"Specify a set of bundled library declaration files that describe the target runtime environment.\"),\n Print_the_names_of_emitted_files_after_a_compilation: diag(6652, ts.DiagnosticCategory.Message, \"Print_the_names_of_emitted_files_after_a_compilation_6652\", \"Print the names of emitted files after a compilation.\"),\n Print_all_of_the_files_read_during_the_compilation: diag(6653, ts.DiagnosticCategory.Message, \"Print_all_of_the_files_read_during_the_compilation_6653\", \"Print all of the files read during the compilation.\"),\n Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit: diag(6654, ts.DiagnosticCategory.Message, \"Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit_6654\", \"Set the language of the messaging from TypeScript. This does not affect emit.\"),\n Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs: diag(6656, ts.DiagnosticCategory.Message, \"Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicabl_6656\", \"Specify the maximum folder depth used for checking JavaScript files from `node_modules`. Only applicable with `allowJs`.\"),\n Specify_what_module_code_is_generated: diag(6657, ts.DiagnosticCategory.Message, \"Specify_what_module_code_is_generated_6657\", \"Specify what module code is generated.\"),\n Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier: diag(6658, ts.DiagnosticCategory.Message, \"Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier_6658\", \"Specify how TypeScript looks up a file from a given module specifier.\"),\n Set_the_newline_character_for_emitting_files: diag(6659, ts.DiagnosticCategory.Message, \"Set_the_newline_character_for_emitting_files_6659\", \"Set the newline character for emitting files.\"),\n Disable_emitting_files_from_a_compilation: diag(6660, ts.DiagnosticCategory.Message, \"Disable_emitting_files_from_a_compilation_6660\", \"Disable emitting files from a compilation.\"),\n Disable_generating_custom_helper_functions_like_extends_in_compiled_output: diag(6661, ts.DiagnosticCategory.Message, \"Disable_generating_custom_helper_functions_like_extends_in_compiled_output_6661\", \"Disable generating custom helper functions like `__extends` in compiled output.\"),\n Disable_emitting_files_if_any_type_checking_errors_are_reported: diag(6662, ts.DiagnosticCategory.Message, \"Disable_emitting_files_if_any_type_checking_errors_are_reported_6662\", \"Disable emitting files if any type checking errors are reported.\"),\n Disable_truncating_types_in_error_messages: diag(6663, ts.DiagnosticCategory.Message, \"Disable_truncating_types_in_error_messages_6663\", \"Disable truncating types in error messages.\"),\n Enable_error_reporting_for_fallthrough_cases_in_switch_statements: diag(6664, ts.DiagnosticCategory.Message, \"Enable_error_reporting_for_fallthrough_cases_in_switch_statements_6664\", \"Enable error reporting for fallthrough cases in switch statements.\"),\n Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type: diag(6665, ts.DiagnosticCategory.Message, \"Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type_6665\", \"Enable error reporting for expressions and declarations with an implied `any` type..\"),\n Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier: diag(6666, ts.DiagnosticCategory.Message, \"Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier_6666\", \"Ensure overriding members in derived classes are marked with an override modifier.\"),\n Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function: diag(6667, ts.DiagnosticCategory.Message, \"Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function_6667\", \"Enable error reporting for codepaths that do not explicitly return in a function.\"),\n Enable_error_reporting_when_this_is_given_the_type_any: diag(6668, ts.DiagnosticCategory.Message, \"Enable_error_reporting_when_this_is_given_the_type_any_6668\", \"Enable error reporting when `this` is given the type `any`.\"),\n Disable_adding_use_strict_directives_in_emitted_JavaScript_files: diag(6669, ts.DiagnosticCategory.Message, \"Disable_adding_use_strict_directives_in_emitted_JavaScript_files_6669\", \"Disable adding 'use strict' directives in emitted JavaScript files.\"),\n Disable_including_any_library_files_including_the_default_lib_d_ts: diag(6670, ts.DiagnosticCategory.Message, \"Disable_including_any_library_files_including_the_default_lib_d_ts_6670\", \"Disable including any library files, including the default lib.d.ts.\"),\n Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type: diag(6671, ts.DiagnosticCategory.Message, \"Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type_6671\", \"Enforces using indexed accessors for keys declared using an indexed type\"),\n Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project: diag(6672, ts.DiagnosticCategory.Message, \"Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add__6672\", \"Disallow `import`s, `require`s or ``s from expanding the number of files TypeScript should add to a project.\"),\n Disable_strict_checking_of_generic_signatures_in_function_types: diag(6673, ts.DiagnosticCategory.Message, \"Disable_strict_checking_of_generic_signatures_in_function_types_6673\", \"Disable strict checking of generic signatures in function types.\"),\n Add_undefined_to_a_type_when_accessed_using_an_index: diag(6674, ts.DiagnosticCategory.Message, \"Add_undefined_to_a_type_when_accessed_using_an_index_6674\", \"Add `undefined` to a type when accessed using an index.\"),\n Enable_error_reporting_when_a_local_variables_aren_t_read: diag(6675, ts.DiagnosticCategory.Message, \"Enable_error_reporting_when_a_local_variables_aren_t_read_6675\", \"Enable error reporting when a local variables aren't read.\"),\n Raise_an_error_when_a_function_parameter_isn_t_read: diag(6676, ts.DiagnosticCategory.Message, \"Raise_an_error_when_a_function_parameter_isn_t_read_6676\", \"Raise an error when a function parameter isn't read\"),\n Deprecated_setting_Use_outFile_instead: diag(6677, ts.DiagnosticCategory.Message, \"Deprecated_setting_Use_outFile_instead_6677\", \"Deprecated setting. Use `outFile` instead.\"),\n Specify_an_output_folder_for_all_emitted_files: diag(6678, ts.DiagnosticCategory.Message, \"Specify_an_output_folder_for_all_emitted_files_6678\", \"Specify an output folder for all emitted files.\"),\n Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output: diag(6679, ts.DiagnosticCategory.Message, \"Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designa_6679\", \"Specify a file that bundles all outputs into one JavaScript file. If `declaration` is true, also designates a file that bundles all .d.ts output.\"),\n Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations: diag(6680, ts.DiagnosticCategory.Message, \"Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations_6680\", \"Specify a set of entries that re-map imports to additional lookup locations.\"),\n Specify_a_list_of_language_service_plugins_to_include: diag(6681, ts.DiagnosticCategory.Message, \"Specify_a_list_of_language_service_plugins_to_include_6681\", \"Specify a list of language service plugins to include.\"),\n Disable_erasing_const_enum_declarations_in_generated_code: diag(6682, ts.DiagnosticCategory.Message, \"Disable_erasing_const_enum_declarations_in_generated_code_6682\", \"Disable erasing `const enum` declarations in generated code.\"),\n Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node: diag(6683, ts.DiagnosticCategory.Message, \"Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node_6683\", \"Disable resolving symlinks to their realpath. This correlates to the same flag in node.\"),\n Disable_wiping_the_console_in_watch_mode: diag(6684, ts.DiagnosticCategory.Message, \"Disable_wiping_the_console_in_watch_mode_6684\", \"Disable wiping the console in watch mode\"),\n Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read: diag(6685, ts.DiagnosticCategory.Message, \"Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read_6685\", \"Enable color and formatting in TypeScript's output to make compiler errors easier to read\"),\n Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit: diag(6686, ts.DiagnosticCategory.Message, \"Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit_6686\", \"Specify the object invoked for `createElement`. This only applies when targeting `react` JSX emit.\"),\n Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references: diag(6687, ts.DiagnosticCategory.Message, \"Specify_an_array_of_objects_that_specify_paths_for_projects_Used_in_project_references_6687\", \"Specify an array of objects that specify paths for projects. Used in project references.\"),\n Disable_emitting_comments: diag(6688, ts.DiagnosticCategory.Message, \"Disable_emitting_comments_6688\", \"Disable emitting comments.\"),\n Enable_importing_json_files: diag(6689, ts.DiagnosticCategory.Message, \"Enable_importing_json_files_6689\", \"Enable importing .json files\"),\n Specify_the_root_folder_within_your_source_files: diag(6690, ts.DiagnosticCategory.Message, \"Specify_the_root_folder_within_your_source_files_6690\", \"Specify the root folder within your source files.\"),\n Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules: diag(6691, ts.DiagnosticCategory.Message, \"Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules_6691\", \"Allow multiple folders to be treated as one when resolving modules.\"),\n Skip_type_checking_d_ts_files_that_are_included_with_TypeScript: diag(6692, ts.DiagnosticCategory.Message, \"Skip_type_checking_d_ts_files_that_are_included_with_TypeScript_6692\", \"Skip type checking .d.ts files that are included with TypeScript.\"),\n Skip_type_checking_all_d_ts_files: diag(6693, ts.DiagnosticCategory.Message, \"Skip_type_checking_all_d_ts_files_6693\", \"Skip type checking all .d.ts files.\"),\n Create_source_map_files_for_emitted_JavaScript_files: diag(6694, ts.DiagnosticCategory.Message, \"Create_source_map_files_for_emitted_JavaScript_files_6694\", \"Create source map files for emitted JavaScript files.\"),\n Specify_the_root_path_for_debuggers_to_find_the_reference_source_code: diag(6695, ts.DiagnosticCategory.Message, \"Specify_the_root_path_for_debuggers_to_find_the_reference_source_code_6695\", \"Specify the root path for debuggers to find the reference source code.\"),\n Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function: diag(6697, ts.DiagnosticCategory.Message, \"Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function_6697\", \"Check that the arguments for `bind`, `call`, and `apply` methods match the original function.\"),\n When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible: diag(6698, ts.DiagnosticCategory.Message, \"When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible_6698\", \"When assigning functions, check to ensure parameters and the return values are subtype-compatible.\"),\n When_type_checking_take_into_account_null_and_undefined: diag(6699, ts.DiagnosticCategory.Message, \"When_type_checking_take_into_account_null_and_undefined_6699\", \"When type checking, take into account `null` and `undefined`.\"),\n Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor: diag(6700, ts.DiagnosticCategory.Message, \"Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor_6700\", \"Check for class properties that are declared but not set in the constructor.\"),\n Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments: diag(6701, ts.DiagnosticCategory.Message, \"Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments_6701\", \"Disable emitting declarations that have `@internal` in their JSDoc comments.\"),\n Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals: diag(6702, ts.DiagnosticCategory.Message, \"Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals_6702\", \"Disable reporting of excess property errors during the creation of object literals.\"),\n Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures: diag(6703, ts.DiagnosticCategory.Message, \"Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures_6703\", \"Suppress `noImplicitAny` errors when indexing objects that lack index signatures.\"),\n Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively: diag(6704, ts.DiagnosticCategory.Message, \"Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_supp_6704\", \"Synchronously call callbacks and update the state of directory watchers on platforms that don`t support recursive watching natively.\"),\n Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations: diag(6705, ts.DiagnosticCategory.Message, \"Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declaratio_6705\", \"Set the JavaScript language version for emitted JavaScript and include compatible library declarations.\"),\n Log_paths_used_during_the_moduleResolution_process: diag(6706, ts.DiagnosticCategory.Message, \"Log_paths_used_during_the_moduleResolution_process_6706\", \"Log paths used during the `moduleResolution` process.\"),\n Specify_the_folder_for_tsbuildinfo_incremental_compilation_files: diag(6707, ts.DiagnosticCategory.Message, \"Specify_the_folder_for_tsbuildinfo_incremental_compilation_files_6707\", \"Specify the folder for .tsbuildinfo incremental compilation files.\"),\n Specify_options_for_automatic_acquisition_of_declaration_files: diag(6709, ts.DiagnosticCategory.Message, \"Specify_options_for_automatic_acquisition_of_declaration_files_6709\", \"Specify options for automatic acquisition of declaration files.\"),\n Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types: diag(6710, ts.DiagnosticCategory.Message, \"Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types_6710\", \"Specify multiple folders that act like `./node_modules/@types`.\"),\n Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file: diag(6711, ts.DiagnosticCategory.Message, \"Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file_6711\", \"Specify type package names to be included without being referenced in a source file.\"),\n Emit_ECMAScript_standard_compliant_class_fields: diag(6712, ts.DiagnosticCategory.Message, \"Emit_ECMAScript_standard_compliant_class_fields_6712\", \"Emit ECMAScript-standard-compliant class fields.\"),\n Enable_verbose_logging: diag(6713, ts.DiagnosticCategory.Message, \"Enable_verbose_logging_6713\", \"Enable verbose logging\"),\n Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality: diag(6714, ts.DiagnosticCategory.Message, \"Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality_6714\", \"Specify how directories are watched on systems that lack recursive file-watching functionality.\"),\n Specify_how_the_TypeScript_watch_mode_works: diag(6715, ts.DiagnosticCategory.Message, \"Specify_how_the_TypeScript_watch_mode_works_6715\", \"Specify how the TypeScript watch mode works.\"),\n Include_undefined_in_index_signature_results: diag(6716, ts.DiagnosticCategory.Message, \"Include_undefined_in_index_signature_results_6716\", \"Include 'undefined' in index signature results\"),\n Require_undeclared_properties_from_index_signatures_to_use_element_accesses: diag(6717, ts.DiagnosticCategory.Message, \"Require_undeclared_properties_from_index_signatures_to_use_element_accesses_6717\", \"Require undeclared properties from index signatures to use element accesses.\"),\n Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types: diag(6718, ts.DiagnosticCategory.Message, \"Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types_6718\", \"Specify emit/checking behavior for imports that are only used for types\"),\n Type_catch_clause_variables_as_unknown_instead_of_any: diag(6803, ts.DiagnosticCategory.Message, \"Type_catch_clause_variables_as_unknown_instead_of_any_6803\", \"Type catch clause variables as 'unknown' instead of 'any'.\"),\n one_of_Colon: diag(6900, ts.DiagnosticCategory.Message, \"one_of_Colon_6900\", \"one of:\"),\n one_or_more_Colon: diag(6901, ts.DiagnosticCategory.Message, \"one_or_more_Colon_6901\", \"one or more:\"),\n type_Colon: diag(6902, ts.DiagnosticCategory.Message, \"type_Colon_6902\", \"type:\"),\n default_Colon: diag(6903, ts.DiagnosticCategory.Message, \"default_Colon_6903\", \"default:\"),\n module_system_or_esModuleInterop: diag(6904, ts.DiagnosticCategory.Message, \"module_system_or_esModuleInterop_6904\", \"module === \\\"system\\\" or esModuleInterop\"),\n false_unless_strict_is_set: diag(6905, ts.DiagnosticCategory.Message, \"false_unless_strict_is_set_6905\", \"`false`, unless `strict` is set\"),\n false_unless_composite_is_set: diag(6906, ts.DiagnosticCategory.Message, \"false_unless_composite_is_set_6906\", \"`false`, unless `composite` is set\"),\n node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified: diag(6907, ts.DiagnosticCategory.Message, \"node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified_6907\", \"`[\\\"node_modules\\\", \\\"bower_components\\\", \\\"jspm_packages\\\"]`, plus the value of `outDir` if one is specified.\"),\n if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk: diag(6908, ts.DiagnosticCategory.Message, \"if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk_6908\", \"`[]` if `files` is specified, otherwise `[\\\"**/*\\\"]`\"),\n true_if_composite_false_otherwise: diag(6909, ts.DiagnosticCategory.Message, \"true_if_composite_false_otherwise_6909\", \"`true` if `composite`, `false` otherwise\"),\n module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node: diag(69010, ts.DiagnosticCategory.Message, \"module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node_69010\", \"module === `AMD` or `UMD` or `System` or `ES6`, then `Classic`, Otherwise `Node`\"),\n Computed_from_the_list_of_input_files: diag(6911, ts.DiagnosticCategory.Message, \"Computed_from_the_list_of_input_files_6911\", \"Computed from the list of input files\"),\n Platform_specific: diag(6912, ts.DiagnosticCategory.Message, \"Platform_specific_6912\", \"Platform specific\"),\n You_can_learn_about_all_of_the_compiler_options_at_0: diag(6913, ts.DiagnosticCategory.Message, \"You_can_learn_about_all_of_the_compiler_options_at_0_6913\", \"You can learn about all of the compiler options at {0}\"),\n Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_config_watch_mode_with_Colon: diag(6914, ts.DiagnosticCategory.Message, \"Including_watch_w_will_start_watching_the_current_project_for_the_file_changes_Once_set_you_can_conf_6914\", \"Including --watch, -w will start watching the current project for the file changes. Once set, you can config watch mode with:\"),\n Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_trigger_building_composite_projects_which_you_can_learn_more_about_at_0: diag(6915, ts.DiagnosticCategory.Message, \"Using_build_b_will_make_tsc_behave_more_like_a_build_orchestrator_than_a_compiler_This_is_used_to_tr_6915\", \"Using --build, -b will make tsc behave more like a build orchestrator than a compiler. This is used to trigger building composite projects which you can learn more about at {0}\"),\n COMMON_COMMANDS: diag(6916, ts.DiagnosticCategory.Message, \"COMMON_COMMANDS_6916\", \"COMMON COMMANDS\"),\n ALL_COMPILER_OPTIONS: diag(6917, ts.DiagnosticCategory.Message, \"ALL_COMPILER_OPTIONS_6917\", \"ALL COMPILER OPTIONS\"),\n WATCH_OPTIONS: diag(6918, ts.DiagnosticCategory.Message, \"WATCH_OPTIONS_6918\", \"WATCH OPTIONS\"),\n BUILD_OPTIONS: diag(6919, ts.DiagnosticCategory.Message, \"BUILD_OPTIONS_6919\", \"BUILD OPTIONS\"),\n COMMON_COMPILER_OPTIONS: diag(6920, ts.DiagnosticCategory.Message, \"COMMON_COMPILER_OPTIONS_6920\", \"COMMON COMPILER OPTIONS\"),\n COMMAND_LINE_FLAGS: diag(6921, ts.DiagnosticCategory.Message, \"COMMAND_LINE_FLAGS_6921\", \"COMMAND LINE FLAGS\"),\n tsc_Colon_The_TypeScript_Compiler: diag(6922, ts.DiagnosticCategory.Message, \"tsc_Colon_The_TypeScript_Compiler_6922\", \"tsc: The TypeScript Compiler\"),\n Compiles_the_current_project_tsconfig_json_in_the_working_directory: diag(6923, ts.DiagnosticCategory.Message, \"Compiles_the_current_project_tsconfig_json_in_the_working_directory_6923\", \"Compiles the current project (tsconfig.json in the working directory.)\"),\n Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options: diag(6924, ts.DiagnosticCategory.Message, \"Ignoring_tsconfig_json_compiles_the_specified_files_with_default_compiler_options_6924\", \"Ignoring tsconfig.json, compiles the specified files with default compiler options.\"),\n Build_a_composite_project_in_the_working_directory: diag(6925, ts.DiagnosticCategory.Message, \"Build_a_composite_project_in_the_working_directory_6925\", \"Build a composite project in the working directory.\"),\n Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory: diag(6926, ts.DiagnosticCategory.Message, \"Creates_a_tsconfig_json_with_the_recommended_settings_in_the_working_directory_6926\", \"Creates a tsconfig.json with the recommended settings in the working directory.\"),\n Compiles_the_TypeScript_project_located_at_the_specified_path: diag(6927, ts.DiagnosticCategory.Message, \"Compiles_the_TypeScript_project_located_at_the_specified_path_6927\", \"Compiles the TypeScript project located at the specified path.\"),\n An_expanded_version_of_this_information_showing_all_possible_compiler_options: diag(6928, ts.DiagnosticCategory.Message, \"An_expanded_version_of_this_information_showing_all_possible_compiler_options_6928\", \"An expanded version of this information, showing all possible compiler options\"),\n Compiles_the_current_project_with_additional_settings: diag(6929, ts.DiagnosticCategory.Message, \"Compiles_the_current_project_with_additional_settings_6929\", \"Compiles the current project, with additional settings.\"),\n Variable_0_implicitly_has_an_1_type: diag(7005, ts.DiagnosticCategory.Error, \"Variable_0_implicitly_has_an_1_type_7005\", \"Variable '{0}' implicitly has an '{1}' type.\"),\n Parameter_0_implicitly_has_an_1_type: diag(7006, ts.DiagnosticCategory.Error, \"Parameter_0_implicitly_has_an_1_type_7006\", \"Parameter '{0}' implicitly has an '{1}' type.\"),\n Member_0_implicitly_has_an_1_type: diag(7008, ts.DiagnosticCategory.Error, \"Member_0_implicitly_has_an_1_type_7008\", \"Member '{0}' implicitly has an '{1}' type.\"),\n new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type: diag(7009, ts.DiagnosticCategory.Error, \"new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type_7009\", \"'new' expression, whose target lacks a construct signature, implicitly has an 'any' type.\"),\n _0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type: diag(7010, ts.DiagnosticCategory.Error, \"_0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type_7010\", \"'{0}', which lacks return-type annotation, implicitly has an '{1}' return type.\"),\n Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7011, ts.DiagnosticCategory.Error, \"Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7011\", \"Function expression, which lacks return-type annotation, implicitly has an '{0}' return type.\"),\n Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: diag(7013, ts.DiagnosticCategory.Error, \"Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7013\", \"Construct signature, which lacks return-type annotation, implicitly has an 'any' return type.\"),\n Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type: diag(7014, ts.DiagnosticCategory.Error, \"Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type_7014\", \"Function type, which lacks return-type annotation, implicitly has an '{0}' return type.\"),\n Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number: diag(7015, ts.DiagnosticCategory.Error, \"Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number_7015\", \"Element implicitly has an 'any' type because index expression is not of type 'number'.\"),\n Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type: diag(7016, ts.DiagnosticCategory.Error, \"Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type_7016\", \"Could not find a declaration file for module '{0}'. '{1}' implicitly has an 'any' type.\"),\n Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature: diag(7017, ts.DiagnosticCategory.Error, \"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_7017\", \"Element implicitly has an 'any' type because type '{0}' has no index signature.\"),\n Object_literal_s_property_0_implicitly_has_an_1_type: diag(7018, ts.DiagnosticCategory.Error, \"Object_literal_s_property_0_implicitly_has_an_1_type_7018\", \"Object literal's property '{0}' implicitly has an '{1}' type.\"),\n Rest_parameter_0_implicitly_has_an_any_type: diag(7019, ts.DiagnosticCategory.Error, \"Rest_parameter_0_implicitly_has_an_any_type_7019\", \"Rest parameter '{0}' implicitly has an 'any[]' type.\"),\n Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type: diag(7020, ts.DiagnosticCategory.Error, \"Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type_7020\", \"Call signature, which lacks return-type annotation, implicitly has an 'any' return type.\"),\n _0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer: diag(7022, ts.DiagnosticCategory.Error, \"_0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or__7022\", \"'{0}' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.\"),\n _0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7023, ts.DiagnosticCategory.Error, \"_0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_reference_7023\", \"'{0}' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.\"),\n Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions: diag(7024, ts.DiagnosticCategory.Error, \"Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_ref_7024\", \"Function implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.\"),\n Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation: diag(7025, ts.DiagnosticCategory.Error, \"Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_retu_7025\", \"Generator implicitly has yield type '{0}' because it does not yield any values. Consider supplying a return type annotation.\"),\n JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists: diag(7026, ts.DiagnosticCategory.Error, \"JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists_7026\", \"JSX element implicitly has type 'any' because no interface 'JSX.{0}' exists.\"),\n Unreachable_code_detected: diag(7027, ts.DiagnosticCategory.Error, \"Unreachable_code_detected_7027\", \"Unreachable code detected.\", /*reportsUnnecessary*/ true),\n Unused_label: diag(7028, ts.DiagnosticCategory.Error, \"Unused_label_7028\", \"Unused label.\", /*reportsUnnecessary*/ true),\n Fallthrough_case_in_switch: diag(7029, ts.DiagnosticCategory.Error, \"Fallthrough_case_in_switch_7029\", \"Fallthrough case in switch.\"),\n Not_all_code_paths_return_a_value: diag(7030, ts.DiagnosticCategory.Error, \"Not_all_code_paths_return_a_value_7030\", \"Not all code paths return a value.\"),\n Binding_element_0_implicitly_has_an_1_type: diag(7031, ts.DiagnosticCategory.Error, \"Binding_element_0_implicitly_has_an_1_type_7031\", \"Binding element '{0}' implicitly has an '{1}' type.\"),\n Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation: diag(7032, ts.DiagnosticCategory.Error, \"Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation_7032\", \"Property '{0}' implicitly has type 'any', because its set accessor lacks a parameter type annotation.\"),\n Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation: diag(7033, ts.DiagnosticCategory.Error, \"Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation_7033\", \"Property '{0}' implicitly has type 'any', because its get accessor lacks a return type annotation.\"),\n Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined: diag(7034, ts.DiagnosticCategory.Error, \"Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined_7034\", \"Variable '{0}' implicitly has type '{1}' in some locations where its type cannot be determined.\"),\n Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0: diag(7035, ts.DiagnosticCategory.Error, \"Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare__7035\", \"Try `npm i --save-dev @types/{1}` if it exists or add a new declaration (.d.ts) file containing `declare module '{0}';`\"),\n Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0: diag(7036, ts.DiagnosticCategory.Error, \"Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0_7036\", \"Dynamic import's specifier must be of type 'string', but here has type '{0}'.\"),\n Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for_all_imports_Implies_allowSyntheticDefaultImports: diag(7037, ts.DiagnosticCategory.Message, \"Enables_emit_interoperability_between_CommonJS_and_ES_Modules_via_creation_of_namespace_objects_for__7037\", \"Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'.\"),\n Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead: diag(7038, ts.DiagnosticCategory.Message, \"Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cau_7038\", \"Type originates at this import. A namespace-style import cannot be called or constructed, and will cause a failure at runtime. Consider using a default import or import require here instead.\"),\n Mapped_object_type_implicitly_has_an_any_template_type: diag(7039, ts.DiagnosticCategory.Error, \"Mapped_object_type_implicitly_has_an_any_template_type_7039\", \"Mapped object type implicitly has an 'any' template type.\"),\n If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1: diag(7040, ts.DiagnosticCategory.Error, \"If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_S_7040\", \"If the '{0}' package actually exposes this module, consider sending a pull request to amend 'https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/{1}'\"),\n The_containing_arrow_function_captures_the_global_value_of_this: diag(7041, ts.DiagnosticCategory.Error, \"The_containing_arrow_function_captures_the_global_value_of_this_7041\", \"The containing arrow function captures the global value of 'this'.\"),\n Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used: diag(7042, ts.DiagnosticCategory.Error, \"Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used_7042\", \"Module '{0}' was resolved to '{1}', but '--resolveJsonModule' is not used.\"),\n Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7043, ts.DiagnosticCategory.Suggestion, \"Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7043\", \"Variable '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.\"),\n Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7044, ts.DiagnosticCategory.Suggestion, \"Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7044\", \"Parameter '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.\"),\n Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage: diag(7045, ts.DiagnosticCategory.Suggestion, \"Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage_7045\", \"Member '{0}' implicitly has an '{1}' type, but a better type may be inferred from usage.\"),\n Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage: diag(7046, ts.DiagnosticCategory.Suggestion, \"Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage_7046\", \"Variable '{0}' implicitly has type '{1}' in some locations, but a better type may be inferred from usage.\"),\n Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage: diag(7047, ts.DiagnosticCategory.Suggestion, \"Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage_7047\", \"Rest parameter '{0}' implicitly has an 'any[]' type, but a better type may be inferred from usage.\"),\n Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage: diag(7048, ts.DiagnosticCategory.Suggestion, \"Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage_7048\", \"Property '{0}' implicitly has type 'any', but a better type for its get accessor may be inferred from usage.\"),\n Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage: diag(7049, ts.DiagnosticCategory.Suggestion, \"Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage_7049\", \"Property '{0}' implicitly has type 'any', but a better type for its set accessor may be inferred from usage.\"),\n _0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage: diag(7050, ts.DiagnosticCategory.Suggestion, \"_0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage_7050\", \"'{0}' implicitly has an '{1}' return type, but a better type may be inferred from usage.\"),\n Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1: diag(7051, ts.DiagnosticCategory.Error, \"Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1_7051\", \"Parameter has a name but no type. Did you mean '{0}: {1}'?\"),\n Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1: diag(7052, ts.DiagnosticCategory.Error, \"Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1_7052\", \"Element implicitly has an 'any' type because type '{0}' has no index signature. Did you mean to call '{1}'?\"),\n Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1: diag(7053, ts.DiagnosticCategory.Error, \"Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1_7053\", \"Element implicitly has an 'any' type because expression of type '{0}' can't be used to index type '{1}'.\"),\n No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1: diag(7054, ts.DiagnosticCategory.Error, \"No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1_7054\", \"No index signature with a parameter of type '{0}' was found on type '{1}'.\"),\n _0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type: diag(7055, ts.DiagnosticCategory.Error, \"_0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type_7055\", \"'{0}', which lacks return-type annotation, implicitly has an '{1}' yield type.\"),\n The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed: diag(7056, ts.DiagnosticCategory.Error, \"The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_ty_7056\", \"The inferred type of this node exceeds the maximum length the compiler will serialize. An explicit type annotation is needed.\"),\n yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation: diag(7057, ts.DiagnosticCategory.Error, \"yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_t_7057\", \"'yield' expression implicitly results in an 'any' type because its containing generator lacks a return-type annotation.\"),\n You_cannot_rename_this_element: diag(8000, ts.DiagnosticCategory.Error, \"You_cannot_rename_this_element_8000\", \"You cannot rename this element.\"),\n You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library: diag(8001, ts.DiagnosticCategory.Error, \"You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library_8001\", \"You cannot rename elements that are defined in the standard TypeScript library.\"),\n import_can_only_be_used_in_TypeScript_files: diag(8002, ts.DiagnosticCategory.Error, \"import_can_only_be_used_in_TypeScript_files_8002\", \"'import ... =' can only be used in TypeScript files.\"),\n export_can_only_be_used_in_TypeScript_files: diag(8003, ts.DiagnosticCategory.Error, \"export_can_only_be_used_in_TypeScript_files_8003\", \"'export =' can only be used in TypeScript files.\"),\n Type_parameter_declarations_can_only_be_used_in_TypeScript_files: diag(8004, ts.DiagnosticCategory.Error, \"Type_parameter_declarations_can_only_be_used_in_TypeScript_files_8004\", \"Type parameter declarations can only be used in TypeScript files.\"),\n implements_clauses_can_only_be_used_in_TypeScript_files: diag(8005, ts.DiagnosticCategory.Error, \"implements_clauses_can_only_be_used_in_TypeScript_files_8005\", \"'implements' clauses can only be used in TypeScript files.\"),\n _0_declarations_can_only_be_used_in_TypeScript_files: diag(8006, ts.DiagnosticCategory.Error, \"_0_declarations_can_only_be_used_in_TypeScript_files_8006\", \"'{0}' declarations can only be used in TypeScript files.\"),\n Type_aliases_can_only_be_used_in_TypeScript_files: diag(8008, ts.DiagnosticCategory.Error, \"Type_aliases_can_only_be_used_in_TypeScript_files_8008\", \"Type aliases can only be used in TypeScript files.\"),\n The_0_modifier_can_only_be_used_in_TypeScript_files: diag(8009, ts.DiagnosticCategory.Error, \"The_0_modifier_can_only_be_used_in_TypeScript_files_8009\", \"The '{0}' modifier can only be used in TypeScript files.\"),\n Type_annotations_can_only_be_used_in_TypeScript_files: diag(8010, ts.DiagnosticCategory.Error, \"Type_annotations_can_only_be_used_in_TypeScript_files_8010\", \"Type annotations can only be used in TypeScript files.\"),\n Type_arguments_can_only_be_used_in_TypeScript_files: diag(8011, ts.DiagnosticCategory.Error, \"Type_arguments_can_only_be_used_in_TypeScript_files_8011\", \"Type arguments can only be used in TypeScript files.\"),\n Parameter_modifiers_can_only_be_used_in_TypeScript_files: diag(8012, ts.DiagnosticCategory.Error, \"Parameter_modifiers_can_only_be_used_in_TypeScript_files_8012\", \"Parameter modifiers can only be used in TypeScript files.\"),\n Non_null_assertions_can_only_be_used_in_TypeScript_files: diag(8013, ts.DiagnosticCategory.Error, \"Non_null_assertions_can_only_be_used_in_TypeScript_files_8013\", \"Non-null assertions can only be used in TypeScript files.\"),\n Type_assertion_expressions_can_only_be_used_in_TypeScript_files: diag(8016, ts.DiagnosticCategory.Error, \"Type_assertion_expressions_can_only_be_used_in_TypeScript_files_8016\", \"Type assertion expressions can only be used in TypeScript files.\"),\n Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0: diag(8017, ts.DiagnosticCategory.Error, \"Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0_8017\", \"Octal literal types must use ES2015 syntax. Use the syntax '{0}'.\"),\n Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0: diag(8018, ts.DiagnosticCategory.Error, \"Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0_8018\", \"Octal literals are not allowed in enums members initializer. Use the syntax '{0}'.\"),\n Report_errors_in_js_files: diag(8019, ts.DiagnosticCategory.Message, \"Report_errors_in_js_files_8019\", \"Report errors in .js files.\"),\n JSDoc_types_can_only_be_used_inside_documentation_comments: diag(8020, ts.DiagnosticCategory.Error, \"JSDoc_types_can_only_be_used_inside_documentation_comments_8020\", \"JSDoc types can only be used inside documentation comments.\"),\n JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags: diag(8021, ts.DiagnosticCategory.Error, \"JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags_8021\", \"JSDoc '@typedef' tag should either have a type annotation or be followed by '@property' or '@member' tags.\"),\n JSDoc_0_is_not_attached_to_a_class: diag(8022, ts.DiagnosticCategory.Error, \"JSDoc_0_is_not_attached_to_a_class_8022\", \"JSDoc '@{0}' is not attached to a class.\"),\n JSDoc_0_1_does_not_match_the_extends_2_clause: diag(8023, ts.DiagnosticCategory.Error, \"JSDoc_0_1_does_not_match_the_extends_2_clause_8023\", \"JSDoc '@{0} {1}' does not match the 'extends {2}' clause.\"),\n JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name: diag(8024, ts.DiagnosticCategory.Error, \"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_8024\", \"JSDoc '@param' tag has name '{0}', but there is no parameter with that name.\"),\n Class_declarations_cannot_have_more_than_one_augments_or_extends_tag: diag(8025, ts.DiagnosticCategory.Error, \"Class_declarations_cannot_have_more_than_one_augments_or_extends_tag_8025\", \"Class declarations cannot have more than one '@augments' or '@extends' tag.\"),\n Expected_0_type_arguments_provide_these_with_an_extends_tag: diag(8026, ts.DiagnosticCategory.Error, \"Expected_0_type_arguments_provide_these_with_an_extends_tag_8026\", \"Expected {0} type arguments; provide these with an '@extends' tag.\"),\n Expected_0_1_type_arguments_provide_these_with_an_extends_tag: diag(8027, ts.DiagnosticCategory.Error, \"Expected_0_1_type_arguments_provide_these_with_an_extends_tag_8027\", \"Expected {0}-{1} type arguments; provide these with an '@extends' tag.\"),\n JSDoc_may_only_appear_in_the_last_parameter_of_a_signature: diag(8028, ts.DiagnosticCategory.Error, \"JSDoc_may_only_appear_in_the_last_parameter_of_a_signature_8028\", \"JSDoc '...' may only appear in the last parameter of a signature.\"),\n JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type: diag(8029, ts.DiagnosticCategory.Error, \"JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_h_8029\", \"JSDoc '@param' tag has name '{0}', but there is no parameter with that name. It would match 'arguments' if it had an array type.\"),\n The_type_of_a_function_declaration_must_match_the_function_s_signature: diag(8030, ts.DiagnosticCategory.Error, \"The_type_of_a_function_declaration_must_match_the_function_s_signature_8030\", \"The type of a function declaration must match the function's signature.\"),\n You_cannot_rename_a_module_via_a_global_import: diag(8031, ts.DiagnosticCategory.Error, \"You_cannot_rename_a_module_via_a_global_import_8031\", \"You cannot rename a module via a global import.\"),\n Qualified_name_0_is_not_allowed_without_a_leading_param_object_1: diag(8032, ts.DiagnosticCategory.Error, \"Qualified_name_0_is_not_allowed_without_a_leading_param_object_1_8032\", \"Qualified name '{0}' is not allowed without a leading '@param {object} {1}'.\"),\n A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags: diag(8033, ts.DiagnosticCategory.Error, \"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033\", \"A JSDoc '@typedef' comment may not contain multiple '@type' tags.\"),\n The_tag_was_first_specified_here: diag(8034, ts.DiagnosticCategory.Error, \"The_tag_was_first_specified_here_8034\", \"The tag was first specified here.\"),\n Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_class_extends_clause: diag(9002, ts.DiagnosticCategory.Error, \"Only_identifiers_Slashqualified_names_with_optional_type_arguments_are_currently_supported_in_a_clas_9002\", \"Only identifiers/qualified-names with optional type arguments are currently supported in a class 'extends' clause.\"),\n class_expressions_are_not_currently_supported: diag(9003, ts.DiagnosticCategory.Error, \"class_expressions_are_not_currently_supported_9003\", \"'class' expressions are not currently supported.\"),\n Language_service_is_disabled: diag(9004, ts.DiagnosticCategory.Error, \"Language_service_is_disabled_9004\", \"Language service is disabled.\"),\n Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9005, ts.DiagnosticCategory.Error, \"Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_9005\", \"Declaration emit for this file requires using private name '{0}'. An explicit type annotation may unblock declaration emit.\"),\n Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit: diag(9006, ts.DiagnosticCategory.Error, \"Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotati_9006\", \"Declaration emit for this file requires using private name '{0}' from module '{1}'. An explicit type annotation may unblock declaration emit.\"),\n JSX_attributes_must_only_be_assigned_a_non_empty_expression: diag(17000, ts.DiagnosticCategory.Error, \"JSX_attributes_must_only_be_assigned_a_non_empty_expression_17000\", \"JSX attributes must only be assigned a non-empty 'expression'.\"),\n JSX_elements_cannot_have_multiple_attributes_with_the_same_name: diag(17001, ts.DiagnosticCategory.Error, \"JSX_elements_cannot_have_multiple_attributes_with_the_same_name_17001\", \"JSX elements cannot have multiple attributes with the same name.\"),\n Expected_corresponding_JSX_closing_tag_for_0: diag(17002, ts.DiagnosticCategory.Error, \"Expected_corresponding_JSX_closing_tag_for_0_17002\", \"Expected corresponding JSX closing tag for '{0}'.\"),\n JSX_attribute_expected: diag(17003, ts.DiagnosticCategory.Error, \"JSX_attribute_expected_17003\", \"JSX attribute expected.\"),\n Cannot_use_JSX_unless_the_jsx_flag_is_provided: diag(17004, ts.DiagnosticCategory.Error, \"Cannot_use_JSX_unless_the_jsx_flag_is_provided_17004\", \"Cannot use JSX unless the '--jsx' flag is provided.\"),\n A_constructor_cannot_contain_a_super_call_when_its_class_extends_null: diag(17005, ts.DiagnosticCategory.Error, \"A_constructor_cannot_contain_a_super_call_when_its_class_extends_null_17005\", \"A constructor cannot contain a 'super' call when its class extends 'null'.\"),\n An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17006, ts.DiagnosticCategory.Error, \"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006\", \"An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.\"),\n A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses: diag(17007, ts.DiagnosticCategory.Error, \"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007\", \"A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses.\"),\n JSX_element_0_has_no_corresponding_closing_tag: diag(17008, ts.DiagnosticCategory.Error, \"JSX_element_0_has_no_corresponding_closing_tag_17008\", \"JSX element '{0}' has no corresponding closing tag.\"),\n super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class: diag(17009, ts.DiagnosticCategory.Error, \"super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class_17009\", \"'super' must be called before accessing 'this' in the constructor of a derived class.\"),\n Unknown_type_acquisition_option_0: diag(17010, ts.DiagnosticCategory.Error, \"Unknown_type_acquisition_option_0_17010\", \"Unknown type acquisition option '{0}'.\"),\n super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class: diag(17011, ts.DiagnosticCategory.Error, \"super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class_17011\", \"'super' must be called before accessing a property of 'super' in the constructor of a derived class.\"),\n _0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2: diag(17012, ts.DiagnosticCategory.Error, \"_0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2_17012\", \"'{0}' is not a valid meta-property for keyword '{1}'. Did you mean '{2}'?\"),\n Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor: diag(17013, ts.DiagnosticCategory.Error, \"Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constru_17013\", \"Meta-property '{0}' is only allowed in the body of a function declaration, function expression, or constructor.\"),\n JSX_fragment_has_no_corresponding_closing_tag: diag(17014, ts.DiagnosticCategory.Error, \"JSX_fragment_has_no_corresponding_closing_tag_17014\", \"JSX fragment has no corresponding closing tag.\"),\n Expected_corresponding_closing_tag_for_JSX_fragment: diag(17015, ts.DiagnosticCategory.Error, \"Expected_corresponding_closing_tag_for_JSX_fragment_17015\", \"Expected corresponding closing tag for JSX fragment.\"),\n The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option: diag(17016, ts.DiagnosticCategory.Error, \"The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_com_17016\", \"The 'jsxFragmentFactory' compiler option must be provided to use JSX fragments with the 'jsxFactory' compiler option.\"),\n An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments: diag(17017, ts.DiagnosticCategory.Error, \"An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments_17017\", \"An @jsxFrag pragma is required when using an @jsx pragma with JSX fragments.\"),\n Unknown_type_acquisition_option_0_Did_you_mean_1: diag(17018, ts.DiagnosticCategory.Error, \"Unknown_type_acquisition_option_0_Did_you_mean_1_17018\", \"Unknown type acquisition option '{0}'. Did you mean '{1}'?\"),\n Circularity_detected_while_resolving_configuration_Colon_0: diag(18000, ts.DiagnosticCategory.Error, \"Circularity_detected_while_resolving_configuration_Colon_0_18000\", \"Circularity detected while resolving configuration: {0}\"),\n A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not: diag(18001, ts.DiagnosticCategory.Error, \"A_path_in_an_extends_option_must_be_relative_or_rooted_but_0_is_not_18001\", \"A path in an 'extends' option must be relative or rooted, but '{0}' is not.\"),\n The_files_list_in_config_file_0_is_empty: diag(18002, ts.DiagnosticCategory.Error, \"The_files_list_in_config_file_0_is_empty_18002\", \"The 'files' list in config file '{0}' is empty.\"),\n No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2: diag(18003, ts.DiagnosticCategory.Error, \"No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2_18003\", \"No inputs were found in config file '{0}'. Specified 'include' paths were '{1}' and 'exclude' paths were '{2}'.\"),\n File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module: diag(80001, ts.DiagnosticCategory.Suggestion, \"File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module_80001\", \"File is a CommonJS module; it may be converted to an ES6 module.\"),\n This_constructor_function_may_be_converted_to_a_class_declaration: diag(80002, ts.DiagnosticCategory.Suggestion, \"This_constructor_function_may_be_converted_to_a_class_declaration_80002\", \"This constructor function may be converted to a class declaration.\"),\n Import_may_be_converted_to_a_default_import: diag(80003, ts.DiagnosticCategory.Suggestion, \"Import_may_be_converted_to_a_default_import_80003\", \"Import may be converted to a default import.\"),\n JSDoc_types_may_be_moved_to_TypeScript_types: diag(80004, ts.DiagnosticCategory.Suggestion, \"JSDoc_types_may_be_moved_to_TypeScript_types_80004\", \"JSDoc types may be moved to TypeScript types.\"),\n require_call_may_be_converted_to_an_import: diag(80005, ts.DiagnosticCategory.Suggestion, \"require_call_may_be_converted_to_an_import_80005\", \"'require' call may be converted to an import.\"),\n This_may_be_converted_to_an_async_function: diag(80006, ts.DiagnosticCategory.Suggestion, \"This_may_be_converted_to_an_async_function_80006\", \"This may be converted to an async function.\"),\n await_has_no_effect_on_the_type_of_this_expression: diag(80007, ts.DiagnosticCategory.Suggestion, \"await_has_no_effect_on_the_type_of_this_expression_80007\", \"'await' has no effect on the type of this expression.\"),\n Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers: diag(80008, ts.DiagnosticCategory.Suggestion, \"Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accur_80008\", \"Numeric literals with absolute values equal to 2^53 or greater are too large to be represented accurately as integers.\"),\n Add_missing_super_call: diag(90001, ts.DiagnosticCategory.Message, \"Add_missing_super_call_90001\", \"Add missing 'super()' call\"),\n Make_super_call_the_first_statement_in_the_constructor: diag(90002, ts.DiagnosticCategory.Message, \"Make_super_call_the_first_statement_in_the_constructor_90002\", \"Make 'super()' call the first statement in the constructor\"),\n Change_extends_to_implements: diag(90003, ts.DiagnosticCategory.Message, \"Change_extends_to_implements_90003\", \"Change 'extends' to 'implements'\"),\n Remove_unused_declaration_for_Colon_0: diag(90004, ts.DiagnosticCategory.Message, \"Remove_unused_declaration_for_Colon_0_90004\", \"Remove unused declaration for: '{0}'\"),\n Remove_import_from_0: diag(90005, ts.DiagnosticCategory.Message, \"Remove_import_from_0_90005\", \"Remove import from '{0}'\"),\n Implement_interface_0: diag(90006, ts.DiagnosticCategory.Message, \"Implement_interface_0_90006\", \"Implement interface '{0}'\"),\n Implement_inherited_abstract_class: diag(90007, ts.DiagnosticCategory.Message, \"Implement_inherited_abstract_class_90007\", \"Implement inherited abstract class\"),\n Add_0_to_unresolved_variable: diag(90008, ts.DiagnosticCategory.Message, \"Add_0_to_unresolved_variable_90008\", \"Add '{0}.' to unresolved variable\"),\n Remove_variable_statement: diag(90010, ts.DiagnosticCategory.Message, \"Remove_variable_statement_90010\", \"Remove variable statement\"),\n Remove_template_tag: diag(90011, ts.DiagnosticCategory.Message, \"Remove_template_tag_90011\", \"Remove template tag\"),\n Remove_type_parameters: diag(90012, ts.DiagnosticCategory.Message, \"Remove_type_parameters_90012\", \"Remove type parameters\"),\n Import_0_from_module_1: diag(90013, ts.DiagnosticCategory.Message, \"Import_0_from_module_1_90013\", \"Import '{0}' from module \\\"{1}\\\"\"),\n Change_0_to_1: diag(90014, ts.DiagnosticCategory.Message, \"Change_0_to_1_90014\", \"Change '{0}' to '{1}'\"),\n Add_0_to_existing_import_declaration_from_1: diag(90015, ts.DiagnosticCategory.Message, \"Add_0_to_existing_import_declaration_from_1_90015\", \"Add '{0}' to existing import declaration from \\\"{1}\\\"\"),\n Declare_property_0: diag(90016, ts.DiagnosticCategory.Message, \"Declare_property_0_90016\", \"Declare property '{0}'\"),\n Add_index_signature_for_property_0: diag(90017, ts.DiagnosticCategory.Message, \"Add_index_signature_for_property_0_90017\", \"Add index signature for property '{0}'\"),\n Disable_checking_for_this_file: diag(90018, ts.DiagnosticCategory.Message, \"Disable_checking_for_this_file_90018\", \"Disable checking for this file\"),\n Ignore_this_error_message: diag(90019, ts.DiagnosticCategory.Message, \"Ignore_this_error_message_90019\", \"Ignore this error message\"),\n Initialize_property_0_in_the_constructor: diag(90020, ts.DiagnosticCategory.Message, \"Initialize_property_0_in_the_constructor_90020\", \"Initialize property '{0}' in the constructor\"),\n Initialize_static_property_0: diag(90021, ts.DiagnosticCategory.Message, \"Initialize_static_property_0_90021\", \"Initialize static property '{0}'\"),\n Change_spelling_to_0: diag(90022, ts.DiagnosticCategory.Message, \"Change_spelling_to_0_90022\", \"Change spelling to '{0}'\"),\n Declare_method_0: diag(90023, ts.DiagnosticCategory.Message, \"Declare_method_0_90023\", \"Declare method '{0}'\"),\n Declare_static_method_0: diag(90024, ts.DiagnosticCategory.Message, \"Declare_static_method_0_90024\", \"Declare static method '{0}'\"),\n Prefix_0_with_an_underscore: diag(90025, ts.DiagnosticCategory.Message, \"Prefix_0_with_an_underscore_90025\", \"Prefix '{0}' with an underscore\"),\n Rewrite_as_the_indexed_access_type_0: diag(90026, ts.DiagnosticCategory.Message, \"Rewrite_as_the_indexed_access_type_0_90026\", \"Rewrite as the indexed access type '{0}'\"),\n Declare_static_property_0: diag(90027, ts.DiagnosticCategory.Message, \"Declare_static_property_0_90027\", \"Declare static property '{0}'\"),\n Call_decorator_expression: diag(90028, ts.DiagnosticCategory.Message, \"Call_decorator_expression_90028\", \"Call decorator expression\"),\n Add_async_modifier_to_containing_function: diag(90029, ts.DiagnosticCategory.Message, \"Add_async_modifier_to_containing_function_90029\", \"Add async modifier to containing function\"),\n Replace_infer_0_with_unknown: diag(90030, ts.DiagnosticCategory.Message, \"Replace_infer_0_with_unknown_90030\", \"Replace 'infer {0}' with 'unknown'\"),\n Replace_all_unused_infer_with_unknown: diag(90031, ts.DiagnosticCategory.Message, \"Replace_all_unused_infer_with_unknown_90031\", \"Replace all unused 'infer' with 'unknown'\"),\n Import_default_0_from_module_1: diag(90032, ts.DiagnosticCategory.Message, \"Import_default_0_from_module_1_90032\", \"Import default '{0}' from module \\\"{1}\\\"\"),\n Add_default_import_0_to_existing_import_declaration_from_1: diag(90033, ts.DiagnosticCategory.Message, \"Add_default_import_0_to_existing_import_declaration_from_1_90033\", \"Add default import '{0}' to existing import declaration from \\\"{1}\\\"\"),\n Add_parameter_name: diag(90034, ts.DiagnosticCategory.Message, \"Add_parameter_name_90034\", \"Add parameter name\"),\n Declare_private_property_0: diag(90035, ts.DiagnosticCategory.Message, \"Declare_private_property_0_90035\", \"Declare private property '{0}'\"),\n Replace_0_with_Promise_1: diag(90036, ts.DiagnosticCategory.Message, \"Replace_0_with_Promise_1_90036\", \"Replace '{0}' with 'Promise<{1}>'\"),\n Fix_all_incorrect_return_type_of_an_async_functions: diag(90037, ts.DiagnosticCategory.Message, \"Fix_all_incorrect_return_type_of_an_async_functions_90037\", \"Fix all incorrect return type of an async functions\"),\n Declare_private_method_0: diag(90038, ts.DiagnosticCategory.Message, \"Declare_private_method_0_90038\", \"Declare private method '{0}'\"),\n Remove_unused_destructuring_declaration: diag(90039, ts.DiagnosticCategory.Message, \"Remove_unused_destructuring_declaration_90039\", \"Remove unused destructuring declaration\"),\n Remove_unused_declarations_for_Colon_0: diag(90041, ts.DiagnosticCategory.Message, \"Remove_unused_declarations_for_Colon_0_90041\", \"Remove unused declarations for: '{0}'\"),\n Declare_a_private_field_named_0: diag(90053, ts.DiagnosticCategory.Message, \"Declare_a_private_field_named_0_90053\", \"Declare a private field named '{0}'.\"),\n Convert_function_to_an_ES2015_class: diag(95001, ts.DiagnosticCategory.Message, \"Convert_function_to_an_ES2015_class_95001\", \"Convert function to an ES2015 class\"),\n Convert_function_0_to_class: diag(95002, ts.DiagnosticCategory.Message, \"Convert_function_0_to_class_95002\", \"Convert function '{0}' to class\"),\n Convert_0_to_1_in_0: diag(95003, ts.DiagnosticCategory.Message, \"Convert_0_to_1_in_0_95003\", \"Convert '{0}' to '{1} in {0}'\"),\n Extract_to_0_in_1: diag(95004, ts.DiagnosticCategory.Message, \"Extract_to_0_in_1_95004\", \"Extract to {0} in {1}\"),\n Extract_function: diag(95005, ts.DiagnosticCategory.Message, \"Extract_function_95005\", \"Extract function\"),\n Extract_constant: diag(95006, ts.DiagnosticCategory.Message, \"Extract_constant_95006\", \"Extract constant\"),\n Extract_to_0_in_enclosing_scope: diag(95007, ts.DiagnosticCategory.Message, \"Extract_to_0_in_enclosing_scope_95007\", \"Extract to {0} in enclosing scope\"),\n Extract_to_0_in_1_scope: diag(95008, ts.DiagnosticCategory.Message, \"Extract_to_0_in_1_scope_95008\", \"Extract to {0} in {1} scope\"),\n Annotate_with_type_from_JSDoc: diag(95009, ts.DiagnosticCategory.Message, \"Annotate_with_type_from_JSDoc_95009\", \"Annotate with type from JSDoc\"),\n Annotate_with_types_from_JSDoc: diag(95010, ts.DiagnosticCategory.Message, \"Annotate_with_types_from_JSDoc_95010\", \"Annotate with types from JSDoc\"),\n Infer_type_of_0_from_usage: diag(95011, ts.DiagnosticCategory.Message, \"Infer_type_of_0_from_usage_95011\", \"Infer type of '{0}' from usage\"),\n Infer_parameter_types_from_usage: diag(95012, ts.DiagnosticCategory.Message, \"Infer_parameter_types_from_usage_95012\", \"Infer parameter types from usage\"),\n Convert_to_default_import: diag(95013, ts.DiagnosticCategory.Message, \"Convert_to_default_import_95013\", \"Convert to default import\"),\n Install_0: diag(95014, ts.DiagnosticCategory.Message, \"Install_0_95014\", \"Install '{0}'\"),\n Replace_import_with_0: diag(95015, ts.DiagnosticCategory.Message, \"Replace_import_with_0_95015\", \"Replace import with '{0}'.\"),\n Use_synthetic_default_member: diag(95016, ts.DiagnosticCategory.Message, \"Use_synthetic_default_member_95016\", \"Use synthetic 'default' member.\"),\n Convert_to_ES6_module: diag(95017, ts.DiagnosticCategory.Message, \"Convert_to_ES6_module_95017\", \"Convert to ES6 module\"),\n Add_undefined_type_to_property_0: diag(95018, ts.DiagnosticCategory.Message, \"Add_undefined_type_to_property_0_95018\", \"Add 'undefined' type to property '{0}'\"),\n Add_initializer_to_property_0: diag(95019, ts.DiagnosticCategory.Message, \"Add_initializer_to_property_0_95019\", \"Add initializer to property '{0}'\"),\n Add_definite_assignment_assertion_to_property_0: diag(95020, ts.DiagnosticCategory.Message, \"Add_definite_assignment_assertion_to_property_0_95020\", \"Add definite assignment assertion to property '{0}'\"),\n Convert_all_type_literals_to_mapped_type: diag(95021, ts.DiagnosticCategory.Message, \"Convert_all_type_literals_to_mapped_type_95021\", \"Convert all type literals to mapped type\"),\n Add_all_missing_members: diag(95022, ts.DiagnosticCategory.Message, \"Add_all_missing_members_95022\", \"Add all missing members\"),\n Infer_all_types_from_usage: diag(95023, ts.DiagnosticCategory.Message, \"Infer_all_types_from_usage_95023\", \"Infer all types from usage\"),\n Delete_all_unused_declarations: diag(95024, ts.DiagnosticCategory.Message, \"Delete_all_unused_declarations_95024\", \"Delete all unused declarations\"),\n Prefix_all_unused_declarations_with_where_possible: diag(95025, ts.DiagnosticCategory.Message, \"Prefix_all_unused_declarations_with_where_possible_95025\", \"Prefix all unused declarations with '_' where possible\"),\n Fix_all_detected_spelling_errors: diag(95026, ts.DiagnosticCategory.Message, \"Fix_all_detected_spelling_errors_95026\", \"Fix all detected spelling errors\"),\n Add_initializers_to_all_uninitialized_properties: diag(95027, ts.DiagnosticCategory.Message, \"Add_initializers_to_all_uninitialized_properties_95027\", \"Add initializers to all uninitialized properties\"),\n Add_definite_assignment_assertions_to_all_uninitialized_properties: diag(95028, ts.DiagnosticCategory.Message, \"Add_definite_assignment_assertions_to_all_uninitialized_properties_95028\", \"Add definite assignment assertions to all uninitialized properties\"),\n Add_undefined_type_to_all_uninitialized_properties: diag(95029, ts.DiagnosticCategory.Message, \"Add_undefined_type_to_all_uninitialized_properties_95029\", \"Add undefined type to all uninitialized properties\"),\n Change_all_jsdoc_style_types_to_TypeScript: diag(95030, ts.DiagnosticCategory.Message, \"Change_all_jsdoc_style_types_to_TypeScript_95030\", \"Change all jsdoc-style types to TypeScript\"),\n Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types: diag(95031, ts.DiagnosticCategory.Message, \"Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types_95031\", \"Change all jsdoc-style types to TypeScript (and add '| undefined' to nullable types)\"),\n Implement_all_unimplemented_interfaces: diag(95032, ts.DiagnosticCategory.Message, \"Implement_all_unimplemented_interfaces_95032\", \"Implement all unimplemented interfaces\"),\n Install_all_missing_types_packages: diag(95033, ts.DiagnosticCategory.Message, \"Install_all_missing_types_packages_95033\", \"Install all missing types packages\"),\n Rewrite_all_as_indexed_access_types: diag(95034, ts.DiagnosticCategory.Message, \"Rewrite_all_as_indexed_access_types_95034\", \"Rewrite all as indexed access types\"),\n Convert_all_to_default_imports: diag(95035, ts.DiagnosticCategory.Message, \"Convert_all_to_default_imports_95035\", \"Convert all to default imports\"),\n Make_all_super_calls_the_first_statement_in_their_constructor: diag(95036, ts.DiagnosticCategory.Message, \"Make_all_super_calls_the_first_statement_in_their_constructor_95036\", \"Make all 'super()' calls the first statement in their constructor\"),\n Add_qualifier_to_all_unresolved_variables_matching_a_member_name: diag(95037, ts.DiagnosticCategory.Message, \"Add_qualifier_to_all_unresolved_variables_matching_a_member_name_95037\", \"Add qualifier to all unresolved variables matching a member name\"),\n Change_all_extended_interfaces_to_implements: diag(95038, ts.DiagnosticCategory.Message, \"Change_all_extended_interfaces_to_implements_95038\", \"Change all extended interfaces to 'implements'\"),\n Add_all_missing_super_calls: diag(95039, ts.DiagnosticCategory.Message, \"Add_all_missing_super_calls_95039\", \"Add all missing super calls\"),\n Implement_all_inherited_abstract_classes: diag(95040, ts.DiagnosticCategory.Message, \"Implement_all_inherited_abstract_classes_95040\", \"Implement all inherited abstract classes\"),\n Add_all_missing_async_modifiers: diag(95041, ts.DiagnosticCategory.Message, \"Add_all_missing_async_modifiers_95041\", \"Add all missing 'async' modifiers\"),\n Add_ts_ignore_to_all_error_messages: diag(95042, ts.DiagnosticCategory.Message, \"Add_ts_ignore_to_all_error_messages_95042\", \"Add '@ts-ignore' to all error messages\"),\n Annotate_everything_with_types_from_JSDoc: diag(95043, ts.DiagnosticCategory.Message, \"Annotate_everything_with_types_from_JSDoc_95043\", \"Annotate everything with types from JSDoc\"),\n Add_to_all_uncalled_decorators: diag(95044, ts.DiagnosticCategory.Message, \"Add_to_all_uncalled_decorators_95044\", \"Add '()' to all uncalled decorators\"),\n Convert_all_constructor_functions_to_classes: diag(95045, ts.DiagnosticCategory.Message, \"Convert_all_constructor_functions_to_classes_95045\", \"Convert all constructor functions to classes\"),\n Generate_get_and_set_accessors: diag(95046, ts.DiagnosticCategory.Message, \"Generate_get_and_set_accessors_95046\", \"Generate 'get' and 'set' accessors\"),\n Convert_require_to_import: diag(95047, ts.DiagnosticCategory.Message, \"Convert_require_to_import_95047\", \"Convert 'require' to 'import'\"),\n Convert_all_require_to_import: diag(95048, ts.DiagnosticCategory.Message, \"Convert_all_require_to_import_95048\", \"Convert all 'require' to 'import'\"),\n Move_to_a_new_file: diag(95049, ts.DiagnosticCategory.Message, \"Move_to_a_new_file_95049\", \"Move to a new file\"),\n Remove_unreachable_code: diag(95050, ts.DiagnosticCategory.Message, \"Remove_unreachable_code_95050\", \"Remove unreachable code\"),\n Remove_all_unreachable_code: diag(95051, ts.DiagnosticCategory.Message, \"Remove_all_unreachable_code_95051\", \"Remove all unreachable code\"),\n Add_missing_typeof: diag(95052, ts.DiagnosticCategory.Message, \"Add_missing_typeof_95052\", \"Add missing 'typeof'\"),\n Remove_unused_label: diag(95053, ts.DiagnosticCategory.Message, \"Remove_unused_label_95053\", \"Remove unused label\"),\n Remove_all_unused_labels: diag(95054, ts.DiagnosticCategory.Message, \"Remove_all_unused_labels_95054\", \"Remove all unused labels\"),\n Convert_0_to_mapped_object_type: diag(95055, ts.DiagnosticCategory.Message, \"Convert_0_to_mapped_object_type_95055\", \"Convert '{0}' to mapped object type\"),\n Convert_namespace_import_to_named_imports: diag(95056, ts.DiagnosticCategory.Message, \"Convert_namespace_import_to_named_imports_95056\", \"Convert namespace import to named imports\"),\n Convert_named_imports_to_namespace_import: diag(95057, ts.DiagnosticCategory.Message, \"Convert_named_imports_to_namespace_import_95057\", \"Convert named imports to namespace import\"),\n Add_or_remove_braces_in_an_arrow_function: diag(95058, ts.DiagnosticCategory.Message, \"Add_or_remove_braces_in_an_arrow_function_95058\", \"Add or remove braces in an arrow function\"),\n Add_braces_to_arrow_function: diag(95059, ts.DiagnosticCategory.Message, \"Add_braces_to_arrow_function_95059\", \"Add braces to arrow function\"),\n Remove_braces_from_arrow_function: diag(95060, ts.DiagnosticCategory.Message, \"Remove_braces_from_arrow_function_95060\", \"Remove braces from arrow function\"),\n Convert_default_export_to_named_export: diag(95061, ts.DiagnosticCategory.Message, \"Convert_default_export_to_named_export_95061\", \"Convert default export to named export\"),\n Convert_named_export_to_default_export: diag(95062, ts.DiagnosticCategory.Message, \"Convert_named_export_to_default_export_95062\", \"Convert named export to default export\"),\n Add_missing_enum_member_0: diag(95063, ts.DiagnosticCategory.Message, \"Add_missing_enum_member_0_95063\", \"Add missing enum member '{0}'\"),\n Add_all_missing_imports: diag(95064, ts.DiagnosticCategory.Message, \"Add_all_missing_imports_95064\", \"Add all missing imports\"),\n Convert_to_async_function: diag(95065, ts.DiagnosticCategory.Message, \"Convert_to_async_function_95065\", \"Convert to async function\"),\n Convert_all_to_async_functions: diag(95066, ts.DiagnosticCategory.Message, \"Convert_all_to_async_functions_95066\", \"Convert all to async functions\"),\n Add_missing_call_parentheses: diag(95067, ts.DiagnosticCategory.Message, \"Add_missing_call_parentheses_95067\", \"Add missing call parentheses\"),\n Add_all_missing_call_parentheses: diag(95068, ts.DiagnosticCategory.Message, \"Add_all_missing_call_parentheses_95068\", \"Add all missing call parentheses\"),\n Add_unknown_conversion_for_non_overlapping_types: diag(95069, ts.DiagnosticCategory.Message, \"Add_unknown_conversion_for_non_overlapping_types_95069\", \"Add 'unknown' conversion for non-overlapping types\"),\n Add_unknown_to_all_conversions_of_non_overlapping_types: diag(95070, ts.DiagnosticCategory.Message, \"Add_unknown_to_all_conversions_of_non_overlapping_types_95070\", \"Add 'unknown' to all conversions of non-overlapping types\"),\n Add_missing_new_operator_to_call: diag(95071, ts.DiagnosticCategory.Message, \"Add_missing_new_operator_to_call_95071\", \"Add missing 'new' operator to call\"),\n Add_missing_new_operator_to_all_calls: diag(95072, ts.DiagnosticCategory.Message, \"Add_missing_new_operator_to_all_calls_95072\", \"Add missing 'new' operator to all calls\"),\n Add_names_to_all_parameters_without_names: diag(95073, ts.DiagnosticCategory.Message, \"Add_names_to_all_parameters_without_names_95073\", \"Add names to all parameters without names\"),\n Enable_the_experimentalDecorators_option_in_your_configuration_file: diag(95074, ts.DiagnosticCategory.Message, \"Enable_the_experimentalDecorators_option_in_your_configuration_file_95074\", \"Enable the 'experimentalDecorators' option in your configuration file\"),\n Convert_parameters_to_destructured_object: diag(95075, ts.DiagnosticCategory.Message, \"Convert_parameters_to_destructured_object_95075\", \"Convert parameters to destructured object\"),\n Extract_type: diag(95077, ts.DiagnosticCategory.Message, \"Extract_type_95077\", \"Extract type\"),\n Extract_to_type_alias: diag(95078, ts.DiagnosticCategory.Message, \"Extract_to_type_alias_95078\", \"Extract to type alias\"),\n Extract_to_typedef: diag(95079, ts.DiagnosticCategory.Message, \"Extract_to_typedef_95079\", \"Extract to typedef\"),\n Infer_this_type_of_0_from_usage: diag(95080, ts.DiagnosticCategory.Message, \"Infer_this_type_of_0_from_usage_95080\", \"Infer 'this' type of '{0}' from usage\"),\n Add_const_to_unresolved_variable: diag(95081, ts.DiagnosticCategory.Message, \"Add_const_to_unresolved_variable_95081\", \"Add 'const' to unresolved variable\"),\n Add_const_to_all_unresolved_variables: diag(95082, ts.DiagnosticCategory.Message, \"Add_const_to_all_unresolved_variables_95082\", \"Add 'const' to all unresolved variables\"),\n Add_await: diag(95083, ts.DiagnosticCategory.Message, \"Add_await_95083\", \"Add 'await'\"),\n Add_await_to_initializer_for_0: diag(95084, ts.DiagnosticCategory.Message, \"Add_await_to_initializer_for_0_95084\", \"Add 'await' to initializer for '{0}'\"),\n Fix_all_expressions_possibly_missing_await: diag(95085, ts.DiagnosticCategory.Message, \"Fix_all_expressions_possibly_missing_await_95085\", \"Fix all expressions possibly missing 'await'\"),\n Remove_unnecessary_await: diag(95086, ts.DiagnosticCategory.Message, \"Remove_unnecessary_await_95086\", \"Remove unnecessary 'await'\"),\n Remove_all_unnecessary_uses_of_await: diag(95087, ts.DiagnosticCategory.Message, \"Remove_all_unnecessary_uses_of_await_95087\", \"Remove all unnecessary uses of 'await'\"),\n Enable_the_jsx_flag_in_your_configuration_file: diag(95088, ts.DiagnosticCategory.Message, \"Enable_the_jsx_flag_in_your_configuration_file_95088\", \"Enable the '--jsx' flag in your configuration file\"),\n Add_await_to_initializers: diag(95089, ts.DiagnosticCategory.Message, \"Add_await_to_initializers_95089\", \"Add 'await' to initializers\"),\n Extract_to_interface: diag(95090, ts.DiagnosticCategory.Message, \"Extract_to_interface_95090\", \"Extract to interface\"),\n Convert_to_a_bigint_numeric_literal: diag(95091, ts.DiagnosticCategory.Message, \"Convert_to_a_bigint_numeric_literal_95091\", \"Convert to a bigint numeric literal\"),\n Convert_all_to_bigint_numeric_literals: diag(95092, ts.DiagnosticCategory.Message, \"Convert_all_to_bigint_numeric_literals_95092\", \"Convert all to bigint numeric literals\"),\n Convert_const_to_let: diag(95093, ts.DiagnosticCategory.Message, \"Convert_const_to_let_95093\", \"Convert 'const' to 'let'\"),\n Prefix_with_declare: diag(95094, ts.DiagnosticCategory.Message, \"Prefix_with_declare_95094\", \"Prefix with 'declare'\"),\n Prefix_all_incorrect_property_declarations_with_declare: diag(95095, ts.DiagnosticCategory.Message, \"Prefix_all_incorrect_property_declarations_with_declare_95095\", \"Prefix all incorrect property declarations with 'declare'\"),\n Convert_to_template_string: diag(95096, ts.DiagnosticCategory.Message, \"Convert_to_template_string_95096\", \"Convert to template string\"),\n Add_export_to_make_this_file_into_a_module: diag(95097, ts.DiagnosticCategory.Message, \"Add_export_to_make_this_file_into_a_module_95097\", \"Add 'export {}' to make this file into a module\"),\n Set_the_target_option_in_your_configuration_file_to_0: diag(95098, ts.DiagnosticCategory.Message, \"Set_the_target_option_in_your_configuration_file_to_0_95098\", \"Set the 'target' option in your configuration file to '{0}'\"),\n Set_the_module_option_in_your_configuration_file_to_0: diag(95099, ts.DiagnosticCategory.Message, \"Set_the_module_option_in_your_configuration_file_to_0_95099\", \"Set the 'module' option in your configuration file to '{0}'\"),\n Convert_invalid_character_to_its_html_entity_code: diag(95100, ts.DiagnosticCategory.Message, \"Convert_invalid_character_to_its_html_entity_code_95100\", \"Convert invalid character to its html entity code\"),\n Convert_all_invalid_characters_to_HTML_entity_code: diag(95101, ts.DiagnosticCategory.Message, \"Convert_all_invalid_characters_to_HTML_entity_code_95101\", \"Convert all invalid characters to HTML entity code\"),\n Add_class_tag: diag(95102, ts.DiagnosticCategory.Message, \"Add_class_tag_95102\", \"Add '@class' tag\"),\n Add_this_tag: diag(95103, ts.DiagnosticCategory.Message, \"Add_this_tag_95103\", \"Add '@this' tag\"),\n Add_this_parameter: diag(95104, ts.DiagnosticCategory.Message, \"Add_this_parameter_95104\", \"Add 'this' parameter.\"),\n Convert_function_expression_0_to_arrow_function: diag(95105, ts.DiagnosticCategory.Message, \"Convert_function_expression_0_to_arrow_function_95105\", \"Convert function expression '{0}' to arrow function\"),\n Convert_function_declaration_0_to_arrow_function: diag(95106, ts.DiagnosticCategory.Message, \"Convert_function_declaration_0_to_arrow_function_95106\", \"Convert function declaration '{0}' to arrow function\"),\n Fix_all_implicit_this_errors: diag(95107, ts.DiagnosticCategory.Message, \"Fix_all_implicit_this_errors_95107\", \"Fix all implicit-'this' errors\"),\n Wrap_invalid_character_in_an_expression_container: diag(95108, ts.DiagnosticCategory.Message, \"Wrap_invalid_character_in_an_expression_container_95108\", \"Wrap invalid character in an expression container\"),\n Wrap_all_invalid_characters_in_an_expression_container: diag(95109, ts.DiagnosticCategory.Message, \"Wrap_all_invalid_characters_in_an_expression_container_95109\", \"Wrap all invalid characters in an expression container\"),\n Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file: diag(95110, ts.DiagnosticCategory.Message, \"Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file_95110\", \"Visit https://aka.ms/tsconfig.json to read more about this file\"),\n Add_a_return_statement: diag(95111, ts.DiagnosticCategory.Message, \"Add_a_return_statement_95111\", \"Add a return statement\"),\n Remove_braces_from_arrow_function_body: diag(95112, ts.DiagnosticCategory.Message, \"Remove_braces_from_arrow_function_body_95112\", \"Remove braces from arrow function body\"),\n Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal: diag(95113, ts.DiagnosticCategory.Message, \"Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal_95113\", \"Wrap the following body with parentheses which should be an object literal\"),\n Add_all_missing_return_statement: diag(95114, ts.DiagnosticCategory.Message, \"Add_all_missing_return_statement_95114\", \"Add all missing return statement\"),\n Remove_braces_from_all_arrow_function_bodies_with_relevant_issues: diag(95115, ts.DiagnosticCategory.Message, \"Remove_braces_from_all_arrow_function_bodies_with_relevant_issues_95115\", \"Remove braces from all arrow function bodies with relevant issues\"),\n Wrap_all_object_literal_with_parentheses: diag(95116, ts.DiagnosticCategory.Message, \"Wrap_all_object_literal_with_parentheses_95116\", \"Wrap all object literal with parentheses\"),\n Move_labeled_tuple_element_modifiers_to_labels: diag(95117, ts.DiagnosticCategory.Message, \"Move_labeled_tuple_element_modifiers_to_labels_95117\", \"Move labeled tuple element modifiers to labels\"),\n Convert_overload_list_to_single_signature: diag(95118, ts.DiagnosticCategory.Message, \"Convert_overload_list_to_single_signature_95118\", \"Convert overload list to single signature\"),\n Generate_get_and_set_accessors_for_all_overriding_properties: diag(95119, ts.DiagnosticCategory.Message, \"Generate_get_and_set_accessors_for_all_overriding_properties_95119\", \"Generate 'get' and 'set' accessors for all overriding properties\"),\n Wrap_in_JSX_fragment: diag(95120, ts.DiagnosticCategory.Message, \"Wrap_in_JSX_fragment_95120\", \"Wrap in JSX fragment\"),\n Wrap_all_unparented_JSX_in_JSX_fragment: diag(95121, ts.DiagnosticCategory.Message, \"Wrap_all_unparented_JSX_in_JSX_fragment_95121\", \"Wrap all unparented JSX in JSX fragment\"),\n Convert_arrow_function_or_function_expression: diag(95122, ts.DiagnosticCategory.Message, \"Convert_arrow_function_or_function_expression_95122\", \"Convert arrow function or function expression\"),\n Convert_to_anonymous_function: diag(95123, ts.DiagnosticCategory.Message, \"Convert_to_anonymous_function_95123\", \"Convert to anonymous function\"),\n Convert_to_named_function: diag(95124, ts.DiagnosticCategory.Message, \"Convert_to_named_function_95124\", \"Convert to named function\"),\n Convert_to_arrow_function: diag(95125, ts.DiagnosticCategory.Message, \"Convert_to_arrow_function_95125\", \"Convert to arrow function\"),\n Remove_parentheses: diag(95126, ts.DiagnosticCategory.Message, \"Remove_parentheses_95126\", \"Remove parentheses\"),\n Could_not_find_a_containing_arrow_function: diag(95127, ts.DiagnosticCategory.Message, \"Could_not_find_a_containing_arrow_function_95127\", \"Could not find a containing arrow function\"),\n Containing_function_is_not_an_arrow_function: diag(95128, ts.DiagnosticCategory.Message, \"Containing_function_is_not_an_arrow_function_95128\", \"Containing function is not an arrow function\"),\n Could_not_find_export_statement: diag(95129, ts.DiagnosticCategory.Message, \"Could_not_find_export_statement_95129\", \"Could not find export statement\"),\n This_file_already_has_a_default_export: diag(95130, ts.DiagnosticCategory.Message, \"This_file_already_has_a_default_export_95130\", \"This file already has a default export\"),\n Could_not_find_import_clause: diag(95131, ts.DiagnosticCategory.Message, \"Could_not_find_import_clause_95131\", \"Could not find import clause\"),\n Could_not_find_namespace_import_or_named_imports: diag(95132, ts.DiagnosticCategory.Message, \"Could_not_find_namespace_import_or_named_imports_95132\", \"Could not find namespace import or named imports\"),\n Selection_is_not_a_valid_type_node: diag(95133, ts.DiagnosticCategory.Message, \"Selection_is_not_a_valid_type_node_95133\", \"Selection is not a valid type node\"),\n No_type_could_be_extracted_from_this_type_node: diag(95134, ts.DiagnosticCategory.Message, \"No_type_could_be_extracted_from_this_type_node_95134\", \"No type could be extracted from this type node\"),\n Could_not_find_property_for_which_to_generate_accessor: diag(95135, ts.DiagnosticCategory.Message, \"Could_not_find_property_for_which_to_generate_accessor_95135\", \"Could not find property for which to generate accessor\"),\n Name_is_not_valid: diag(95136, ts.DiagnosticCategory.Message, \"Name_is_not_valid_95136\", \"Name is not valid\"),\n Can_only_convert_property_with_modifier: diag(95137, ts.DiagnosticCategory.Message, \"Can_only_convert_property_with_modifier_95137\", \"Can only convert property with modifier\"),\n Switch_each_misused_0_to_1: diag(95138, ts.DiagnosticCategory.Message, \"Switch_each_misused_0_to_1_95138\", \"Switch each misused '{0}' to '{1}'\"),\n Convert_to_optional_chain_expression: diag(95139, ts.DiagnosticCategory.Message, \"Convert_to_optional_chain_expression_95139\", \"Convert to optional chain expression\"),\n Could_not_find_convertible_access_expression: diag(95140, ts.DiagnosticCategory.Message, \"Could_not_find_convertible_access_expression_95140\", \"Could not find convertible access expression\"),\n Could_not_find_matching_access_expressions: diag(95141, ts.DiagnosticCategory.Message, \"Could_not_find_matching_access_expressions_95141\", \"Could not find matching access expressions\"),\n Can_only_convert_logical_AND_access_chains: diag(95142, ts.DiagnosticCategory.Message, \"Can_only_convert_logical_AND_access_chains_95142\", \"Can only convert logical AND access chains\"),\n Add_void_to_Promise_resolved_without_a_value: diag(95143, ts.DiagnosticCategory.Message, \"Add_void_to_Promise_resolved_without_a_value_95143\", \"Add 'void' to Promise resolved without a value\"),\n Add_void_to_all_Promises_resolved_without_a_value: diag(95144, ts.DiagnosticCategory.Message, \"Add_void_to_all_Promises_resolved_without_a_value_95144\", \"Add 'void' to all Promises resolved without a value\"),\n Use_element_access_for_0: diag(95145, ts.DiagnosticCategory.Message, \"Use_element_access_for_0_95145\", \"Use element access for '{0}'\"),\n Use_element_access_for_all_undeclared_properties: diag(95146, ts.DiagnosticCategory.Message, \"Use_element_access_for_all_undeclared_properties_95146\", \"Use element access for all undeclared properties.\"),\n Delete_all_unused_imports: diag(95147, ts.DiagnosticCategory.Message, \"Delete_all_unused_imports_95147\", \"Delete all unused imports\"),\n Infer_function_return_type: diag(95148, ts.DiagnosticCategory.Message, \"Infer_function_return_type_95148\", \"Infer function return type\"),\n Return_type_must_be_inferred_from_a_function: diag(95149, ts.DiagnosticCategory.Message, \"Return_type_must_be_inferred_from_a_function_95149\", \"Return type must be inferred from a function\"),\n Could_not_determine_function_return_type: diag(95150, ts.DiagnosticCategory.Message, \"Could_not_determine_function_return_type_95150\", \"Could not determine function return type\"),\n Could_not_convert_to_arrow_function: diag(95151, ts.DiagnosticCategory.Message, \"Could_not_convert_to_arrow_function_95151\", \"Could not convert to arrow function\"),\n Could_not_convert_to_named_function: diag(95152, ts.DiagnosticCategory.Message, \"Could_not_convert_to_named_function_95152\", \"Could not convert to named function\"),\n Could_not_convert_to_anonymous_function: diag(95153, ts.DiagnosticCategory.Message, \"Could_not_convert_to_anonymous_function_95153\", \"Could not convert to anonymous function\"),\n Can_only_convert_string_concatenation: diag(95154, ts.DiagnosticCategory.Message, \"Can_only_convert_string_concatenation_95154\", \"Can only convert string concatenation\"),\n Selection_is_not_a_valid_statement_or_statements: diag(95155, ts.DiagnosticCategory.Message, \"Selection_is_not_a_valid_statement_or_statements_95155\", \"Selection is not a valid statement or statements\"),\n Add_missing_function_declaration_0: diag(95156, ts.DiagnosticCategory.Message, \"Add_missing_function_declaration_0_95156\", \"Add missing function declaration '{0}'\"),\n Add_all_missing_function_declarations: diag(95157, ts.DiagnosticCategory.Message, \"Add_all_missing_function_declarations_95157\", \"Add all missing function declarations\"),\n Method_not_implemented: diag(95158, ts.DiagnosticCategory.Message, \"Method_not_implemented_95158\", \"Method not implemented.\"),\n Function_not_implemented: diag(95159, ts.DiagnosticCategory.Message, \"Function_not_implemented_95159\", \"Function not implemented.\"),\n Add_override_modifier: diag(95160, ts.DiagnosticCategory.Message, \"Add_override_modifier_95160\", \"Add 'override' modifier\"),\n Remove_override_modifier: diag(95161, ts.DiagnosticCategory.Message, \"Remove_override_modifier_95161\", \"Remove 'override' modifier\"),\n Add_all_missing_override_modifiers: diag(95162, ts.DiagnosticCategory.Message, \"Add_all_missing_override_modifiers_95162\", \"Add all missing 'override' modifiers\"),\n Remove_all_unnecessary_override_modifiers: diag(95163, ts.DiagnosticCategory.Message, \"Remove_all_unnecessary_override_modifiers_95163\", \"Remove all unnecessary 'override' modifiers\"),\n Can_only_convert_named_export: diag(95164, ts.DiagnosticCategory.Message, \"Can_only_convert_named_export_95164\", \"Can only convert named export\"),\n Add_missing_properties: diag(95165, ts.DiagnosticCategory.Message, \"Add_missing_properties_95165\", \"Add missing properties\"),\n Add_all_missing_properties: diag(95166, ts.DiagnosticCategory.Message, \"Add_all_missing_properties_95166\", \"Add all missing properties\"),\n Add_missing_attributes: diag(95167, ts.DiagnosticCategory.Message, \"Add_missing_attributes_95167\", \"Add missing attributes\"),\n Add_all_missing_attributes: diag(95168, ts.DiagnosticCategory.Message, \"Add_all_missing_attributes_95168\", \"Add all missing attributes\"),\n No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer: diag(18004, ts.DiagnosticCategory.Error, \"No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer_18004\", \"No value exists in scope for the shorthand property '{0}'. Either declare one or provide an initializer.\"),\n Classes_may_not_have_a_field_named_constructor: diag(18006, ts.DiagnosticCategory.Error, \"Classes_may_not_have_a_field_named_constructor_18006\", \"Classes may not have a field named 'constructor'.\"),\n JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array: diag(18007, ts.DiagnosticCategory.Error, \"JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array_18007\", \"JSX expressions may not use the comma operator. Did you mean to write an array?\"),\n Private_identifiers_cannot_be_used_as_parameters: diag(18009, ts.DiagnosticCategory.Error, \"Private_identifiers_cannot_be_used_as_parameters_18009\", \"Private identifiers cannot be used as parameters.\"),\n An_accessibility_modifier_cannot_be_used_with_a_private_identifier: diag(18010, ts.DiagnosticCategory.Error, \"An_accessibility_modifier_cannot_be_used_with_a_private_identifier_18010\", \"An accessibility modifier cannot be used with a private identifier.\"),\n The_operand_of_a_delete_operator_cannot_be_a_private_identifier: diag(18011, ts.DiagnosticCategory.Error, \"The_operand_of_a_delete_operator_cannot_be_a_private_identifier_18011\", \"The operand of a 'delete' operator cannot be a private identifier.\"),\n constructor_is_a_reserved_word: diag(18012, ts.DiagnosticCategory.Error, \"constructor_is_a_reserved_word_18012\", \"'#constructor' is a reserved word.\"),\n Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier: diag(18013, ts.DiagnosticCategory.Error, \"Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier_18013\", \"Property '{0}' is not accessible outside class '{1}' because it has a private identifier.\"),\n The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling: diag(18014, ts.DiagnosticCategory.Error, \"The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_priv_18014\", \"The property '{0}' cannot be accessed on type '{1}' within this class because it is shadowed by another private identifier with the same spelling.\"),\n Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2: diag(18015, ts.DiagnosticCategory.Error, \"Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2_18015\", \"Property '{0}' in type '{1}' refers to a different member that cannot be accessed from within type '{2}'.\"),\n Private_identifiers_are_not_allowed_outside_class_bodies: diag(18016, ts.DiagnosticCategory.Error, \"Private_identifiers_are_not_allowed_outside_class_bodies_18016\", \"Private identifiers are not allowed outside class bodies.\"),\n The_shadowing_declaration_of_0_is_defined_here: diag(18017, ts.DiagnosticCategory.Error, \"The_shadowing_declaration_of_0_is_defined_here_18017\", \"The shadowing declaration of '{0}' is defined here\"),\n The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here: diag(18018, ts.DiagnosticCategory.Error, \"The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here_18018\", \"The declaration of '{0}' that you probably intended to use is defined here\"),\n _0_modifier_cannot_be_used_with_a_private_identifier: diag(18019, ts.DiagnosticCategory.Error, \"_0_modifier_cannot_be_used_with_a_private_identifier_18019\", \"'{0}' modifier cannot be used with a private identifier.\"),\n An_enum_member_cannot_be_named_with_a_private_identifier: diag(18024, ts.DiagnosticCategory.Error, \"An_enum_member_cannot_be_named_with_a_private_identifier_18024\", \"An enum member cannot be named with a private identifier.\"),\n can_only_be_used_at_the_start_of_a_file: diag(18026, ts.DiagnosticCategory.Error, \"can_only_be_used_at_the_start_of_a_file_18026\", \"'#!' can only be used at the start of a file.\"),\n Compiler_reserves_name_0_when_emitting_private_identifier_downlevel: diag(18027, ts.DiagnosticCategory.Error, \"Compiler_reserves_name_0_when_emitting_private_identifier_downlevel_18027\", \"Compiler reserves name '{0}' when emitting private identifier downlevel.\"),\n Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher: diag(18028, ts.DiagnosticCategory.Error, \"Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher_18028\", \"Private identifiers are only available when targeting ECMAScript 2015 and higher.\"),\n Private_identifiers_are_not_allowed_in_variable_declarations: diag(18029, ts.DiagnosticCategory.Error, \"Private_identifiers_are_not_allowed_in_variable_declarations_18029\", \"Private identifiers are not allowed in variable declarations.\"),\n An_optional_chain_cannot_contain_private_identifiers: diag(18030, ts.DiagnosticCategory.Error, \"An_optional_chain_cannot_contain_private_identifiers_18030\", \"An optional chain cannot contain private identifiers.\"),\n The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents: diag(18031, ts.DiagnosticCategory.Error, \"The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituent_18031\", \"The intersection '{0}' was reduced to 'never' because property '{1}' has conflicting types in some constituents.\"),\n The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some: diag(18032, ts.DiagnosticCategory.Error, \"The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_pr_18032\", \"The intersection '{0}' was reduced to 'never' because property '{1}' exists in multiple constituents and is private in some.\"),\n Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead: diag(18033, ts.DiagnosticCategory.Error, \"Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhau_18033\", \"Only numeric enums can have computed members, but this expression has type '{0}'. If you do not need exhaustiveness checks, consider using an object literal instead.\"),\n Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compiler_option_is_specified_e_g_Fragment: diag(18034, ts.DiagnosticCategory.Message, \"Specify_the_JSX_fragment_factory_function_to_use_when_targeting_react_JSX_emit_with_jsxFactory_compi_18034\", \"Specify the JSX fragment factory function to use when targeting 'react' JSX emit with 'jsxFactory' compiler option is specified, e.g. 'Fragment'.\"),\n Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name: diag(18035, ts.DiagnosticCategory.Error, \"Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name_18035\", \"Invalid value for 'jsxFragmentFactory'. '{0}' is not a valid identifier or qualified-name.\"),\n Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator: diag(18036, ts.DiagnosticCategory.Error, \"Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_dec_18036\", \"Class decorators can't be used with static private identifier. Consider removing the experimental decorator.\"),\n Await_expression_cannot_be_used_inside_a_class_static_block: diag(18037, ts.DiagnosticCategory.Error, \"Await_expression_cannot_be_used_inside_a_class_static_block_18037\", \"Await expression cannot be used inside a class static block.\"),\n For_await_loops_cannot_be_used_inside_a_class_static_block: diag(18038, ts.DiagnosticCategory.Error, \"For_await_loops_cannot_be_used_inside_a_class_static_block_18038\", \"'For await' loops cannot be used inside a class static block.\"),\n Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block: diag(18039, ts.DiagnosticCategory.Error, \"Invalid_use_of_0_It_cannot_be_used_inside_a_class_static_block_18039\", \"Invalid use of '{0}'. It cannot be used inside a class static block.\"),\n A_return_statement_cannot_be_used_inside_a_class_static_block: diag(18041, ts.DiagnosticCategory.Error, \"A_return_statement_cannot_be_used_inside_a_class_static_block_18041\", \"A 'return' statement cannot be used inside a class static block.\"),\n };\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var _a;\n /* @internal */\n function tokenIsIdentifierOrKeyword(token) {\n return token >= 79 /* Identifier */;\n }\n ts.tokenIsIdentifierOrKeyword = tokenIsIdentifierOrKeyword;\n /* @internal */\n function tokenIsIdentifierOrKeywordOrGreaterThan(token) {\n return token === 31 /* GreaterThanToken */ || tokenIsIdentifierOrKeyword(token);\n }\n ts.tokenIsIdentifierOrKeywordOrGreaterThan = tokenIsIdentifierOrKeywordOrGreaterThan;\n /** @internal */\n ts.textToKeywordObj = (_a = {\n abstract: 126 /* AbstractKeyword */,\n any: 129 /* AnyKeyword */,\n as: 127 /* AsKeyword */,\n asserts: 128 /* AssertsKeyword */,\n bigint: 156 /* BigIntKeyword */,\n boolean: 132 /* BooleanKeyword */,\n break: 81 /* BreakKeyword */,\n case: 82 /* CaseKeyword */,\n catch: 83 /* CatchKeyword */,\n class: 84 /* ClassKeyword */,\n continue: 86 /* ContinueKeyword */,\n const: 85 /* ConstKeyword */\n },\n _a[\"\" + \"constructor\"] = 133 /* ConstructorKeyword */,\n _a.debugger = 87 /* DebuggerKeyword */,\n _a.declare = 134 /* DeclareKeyword */,\n _a.default = 88 /* DefaultKeyword */,\n _a.delete = 89 /* DeleteKeyword */,\n _a.do = 90 /* DoKeyword */,\n _a.else = 91 /* ElseKeyword */,\n _a.enum = 92 /* EnumKeyword */,\n _a.export = 93 /* ExportKeyword */,\n _a.extends = 94 /* ExtendsKeyword */,\n _a.false = 95 /* FalseKeyword */,\n _a.finally = 96 /* FinallyKeyword */,\n _a.for = 97 /* ForKeyword */,\n _a.from = 154 /* FromKeyword */,\n _a.function = 98 /* FunctionKeyword */,\n _a.get = 135 /* GetKeyword */,\n _a.if = 99 /* IfKeyword */,\n _a.implements = 117 /* ImplementsKeyword */,\n _a.import = 100 /* ImportKeyword */,\n _a.in = 101 /* InKeyword */,\n _a.infer = 136 /* InferKeyword */,\n _a.instanceof = 102 /* InstanceOfKeyword */,\n _a.interface = 118 /* InterfaceKeyword */,\n _a.intrinsic = 137 /* IntrinsicKeyword */,\n _a.is = 138 /* IsKeyword */,\n _a.keyof = 139 /* KeyOfKeyword */,\n _a.let = 119 /* LetKeyword */,\n _a.module = 140 /* ModuleKeyword */,\n _a.namespace = 141 /* NamespaceKeyword */,\n _a.never = 142 /* NeverKeyword */,\n _a.new = 103 /* NewKeyword */,\n _a.null = 104 /* NullKeyword */,\n _a.number = 145 /* NumberKeyword */,\n _a.object = 146 /* ObjectKeyword */,\n _a.package = 120 /* PackageKeyword */,\n _a.private = 121 /* PrivateKeyword */,\n _a.protected = 122 /* ProtectedKeyword */,\n _a.public = 123 /* PublicKeyword */,\n _a.override = 157 /* OverrideKeyword */,\n _a.readonly = 143 /* ReadonlyKeyword */,\n _a.require = 144 /* RequireKeyword */,\n _a.global = 155 /* GlobalKeyword */,\n _a.return = 105 /* ReturnKeyword */,\n _a.set = 147 /* SetKeyword */,\n _a.static = 124 /* StaticKeyword */,\n _a.string = 148 /* StringKeyword */,\n _a.super = 106 /* SuperKeyword */,\n _a.switch = 107 /* SwitchKeyword */,\n _a.symbol = 149 /* SymbolKeyword */,\n _a.this = 108 /* ThisKeyword */,\n _a.throw = 109 /* ThrowKeyword */,\n _a.true = 110 /* TrueKeyword */,\n _a.try = 111 /* TryKeyword */,\n _a.type = 150 /* TypeKeyword */,\n _a.typeof = 112 /* TypeOfKeyword */,\n _a.undefined = 151 /* UndefinedKeyword */,\n _a.unique = 152 /* UniqueKeyword */,\n _a.unknown = 153 /* UnknownKeyword */,\n _a.var = 113 /* VarKeyword */,\n _a.void = 114 /* VoidKeyword */,\n _a.while = 115 /* WhileKeyword */,\n _a.with = 116 /* WithKeyword */,\n _a.yield = 125 /* YieldKeyword */,\n _a.async = 130 /* AsyncKeyword */,\n _a.await = 131 /* AwaitKeyword */,\n _a.of = 158 /* OfKeyword */,\n _a);\n var textToKeyword = new ts.Map(ts.getEntries(ts.textToKeywordObj));\n var textToToken = new ts.Map(ts.getEntries(__assign(__assign({}, ts.textToKeywordObj), { \"{\": 18 /* OpenBraceToken */, \"}\": 19 /* CloseBraceToken */, \"(\": 20 /* OpenParenToken */, \")\": 21 /* CloseParenToken */, \"[\": 22 /* OpenBracketToken */, \"]\": 23 /* CloseBracketToken */, \".\": 24 /* DotToken */, \"...\": 25 /* DotDotDotToken */, \";\": 26 /* SemicolonToken */, \",\": 27 /* CommaToken */, \"<\": 29 /* LessThanToken */, \">\": 31 /* GreaterThanToken */, \"<=\": 32 /* LessThanEqualsToken */, \">=\": 33 /* GreaterThanEqualsToken */, \"==\": 34 /* EqualsEqualsToken */, \"!=\": 35 /* ExclamationEqualsToken */, \"===\": 36 /* EqualsEqualsEqualsToken */, \"!==\": 37 /* ExclamationEqualsEqualsToken */, \"=>\": 38 /* EqualsGreaterThanToken */, \"+\": 39 /* PlusToken */, \"-\": 40 /* MinusToken */, \"**\": 42 /* AsteriskAsteriskToken */, \"*\": 41 /* AsteriskToken */, \"/\": 43 /* SlashToken */, \"%\": 44 /* PercentToken */, \"++\": 45 /* PlusPlusToken */, \"--\": 46 /* MinusMinusToken */, \"<<\": 47 /* LessThanLessThanToken */, \">\": 48 /* GreaterThanGreaterThanToken */, \">>>\": 49 /* GreaterThanGreaterThanGreaterThanToken */, \"&\": 50 /* AmpersandToken */, \"|\": 51 /* BarToken */, \"^\": 52 /* CaretToken */, \"!\": 53 /* ExclamationToken */, \"~\": 54 /* TildeToken */, \"&&\": 55 /* AmpersandAmpersandToken */, \"||\": 56 /* BarBarToken */, \"?\": 57 /* QuestionToken */, \"??\": 60 /* QuestionQuestionToken */, \"?.\": 28 /* QuestionDotToken */, \":\": 58 /* ColonToken */, \"=\": 63 /* EqualsToken */, \"+=\": 64 /* PlusEqualsToken */, \"-=\": 65 /* MinusEqualsToken */, \"*=\": 66 /* AsteriskEqualsToken */, \"**=\": 67 /* AsteriskAsteriskEqualsToken */, \"/=\": 68 /* SlashEqualsToken */, \"%=\": 69 /* PercentEqualsToken */, \"<<=\": 70 /* LessThanLessThanEqualsToken */, \">>=\": 71 /* GreaterThanGreaterThanEqualsToken */, \">>>=\": 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */, \"&=\": 73 /* AmpersandEqualsToken */, \"|=\": 74 /* BarEqualsToken */, \"^=\": 78 /* CaretEqualsToken */, \"||=\": 75 /* BarBarEqualsToken */, \"&&=\": 76 /* AmpersandAmpersandEqualsToken */, \"??=\": 77 /* QuestionQuestionEqualsToken */, \"@\": 59 /* AtToken */, \"#\": 62 /* HashToken */, \"`\": 61 /* BacktickToken */ })));\n /*\n As per ECMAScript Language Specification 3th Edition, Section 7.6: Identifiers\n IdentifierStart ::\n Can contain Unicode 3.0.0 categories:\n Uppercase letter (Lu),\n Lowercase letter (Ll),\n Titlecase letter (Lt),\n Modifier letter (Lm),\n Other letter (Lo), or\n Letter number (Nl).\n IdentifierPart :: =\n Can contain IdentifierStart + Unicode 3.0.0 categories:\n Non-spacing mark (Mn),\n Combining spacing mark (Mc),\n Decimal number (Nd), or\n Connector punctuation (Pc).\n\n Codepoint ranges for ES3 Identifiers are extracted from the Unicode 3.0.0 specification at:\n http://www.unicode.org/Public/3.0-Update/UnicodeData-3.0.0.txt\n */\n var unicodeES3IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1610, 1649, 1747, 1749, 1749, 1765, 1766, 1786, 1788, 1808, 1808, 1810, 1836, 1920, 1957, 2309, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2784, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3294, 3294, 3296, 3297, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3424, 3425, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3805, 3840, 3840, 3904, 3911, 3913, 3946, 3976, 3979, 4096, 4129, 4131, 4135, 4137, 4138, 4176, 4181, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6067, 6176, 6263, 6272, 6312, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8319, 8319, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12346, 12353, 12436, 12445, 12446, 12449, 12538, 12540, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65138, 65140, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,];\n var unicodeES3IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 543, 546, 563, 592, 685, 688, 696, 699, 705, 720, 721, 736, 740, 750, 750, 768, 846, 864, 866, 890, 890, 902, 902, 904, 906, 908, 908, 910, 929, 931, 974, 976, 983, 986, 1011, 1024, 1153, 1155, 1158, 1164, 1220, 1223, 1224, 1227, 1228, 1232, 1269, 1272, 1273, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1441, 1443, 1465, 1467, 1469, 1471, 1471, 1473, 1474, 1476, 1476, 1488, 1514, 1520, 1522, 1569, 1594, 1600, 1621, 1632, 1641, 1648, 1747, 1749, 1756, 1759, 1768, 1770, 1773, 1776, 1788, 1808, 1836, 1840, 1866, 1920, 1968, 2305, 2307, 2309, 2361, 2364, 2381, 2384, 2388, 2392, 2403, 2406, 2415, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2492, 2494, 2500, 2503, 2504, 2507, 2509, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2562, 2562, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2649, 2652, 2654, 2654, 2662, 2676, 2689, 2691, 2693, 2699, 2701, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2784, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2870, 2873, 2876, 2883, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2913, 2918, 2927, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 2997, 2999, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3031, 3031, 3047, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3134, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3168, 3169, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3262, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3297, 3302, 3311, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3368, 3370, 3385, 3390, 3395, 3398, 3400, 3402, 3405, 3415, 3415, 3424, 3425, 3430, 3439, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3805, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3946, 3953, 3972, 3974, 3979, 3984, 3991, 3993, 4028, 4038, 4038, 4096, 4129, 4131, 4135, 4137, 4138, 4140, 4146, 4150, 4153, 4160, 4169, 4176, 4185, 4256, 4293, 4304, 4342, 4352, 4441, 4447, 4514, 4520, 4601, 4608, 4614, 4616, 4678, 4680, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4742, 4744, 4744, 4746, 4749, 4752, 4782, 4784, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4814, 4816, 4822, 4824, 4846, 4848, 4878, 4880, 4880, 4882, 4885, 4888, 4894, 4896, 4934, 4936, 4954, 4969, 4977, 5024, 5108, 5121, 5740, 5743, 5750, 5761, 5786, 5792, 5866, 6016, 6099, 6112, 6121, 6160, 6169, 6176, 6263, 6272, 6313, 7680, 7835, 7840, 7929, 7936, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8319, 8319, 8400, 8412, 8417, 8417, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8497, 8499, 8505, 8544, 8579, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12346, 12353, 12436, 12441, 12442, 12445, 12446, 12449, 12542, 12549, 12588, 12593, 12686, 12704, 12727, 13312, 19893, 19968, 40869, 40960, 42124, 44032, 55203, 63744, 64045, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65056, 65059, 65075, 65076, 65101, 65103, 65136, 65138, 65140, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65381, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,];\n /*\n As per ECMAScript Language Specification 5th Edition, Section 7.6: ISyntaxToken Names and Identifiers\n IdentifierStart ::\n Can contain Unicode 6.2 categories:\n Uppercase letter (Lu),\n Lowercase letter (Ll),\n Titlecase letter (Lt),\n Modifier letter (Lm),\n Other letter (Lo), or\n Letter number (Nl).\n IdentifierPart ::\n Can contain IdentifierStart + Unicode 6.2 categories:\n Non-spacing mark (Mn),\n Combining spacing mark (Mc),\n Decimal number (Nd),\n Connector punctuation (Pc),\n , or\n .\n\n Codepoint ranges for ES5 Identifiers are extracted from the Unicode 6.2 specification at:\n http://www.unicode.org/Public/6.2.0/ucd/UnicodeData.txt\n */\n var unicodeES5IdentifierStart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1488, 1514, 1520, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2208, 2208, 2210, 2220, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2423, 2425, 2431, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3133, 3160, 3161, 3168, 3169, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3424, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6000, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6263, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6428, 6480, 6509, 6512, 6516, 6528, 6571, 6593, 6599, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7401, 7404, 7406, 7409, 7413, 7414, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11823, 11823, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42647, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43648, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,];\n var unicodeES5IdentifierPart = [170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1319, 1329, 1366, 1369, 1369, 1377, 1415, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1520, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2048, 2093, 2112, 2139, 2208, 2208, 2210, 2220, 2276, 2302, 2304, 2403, 2406, 2415, 2417, 2423, 2425, 2431, 2433, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3073, 3075, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3123, 3125, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3161, 3168, 3171, 3174, 3183, 3202, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3330, 3331, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3396, 3398, 3400, 3402, 3406, 3415, 3415, 3424, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3719, 3720, 3722, 3722, 3725, 3725, 3732, 3735, 3737, 3743, 3745, 3747, 3749, 3749, 3751, 3751, 3754, 3755, 3757, 3769, 3771, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4992, 5007, 5024, 5108, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5872, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6000, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6263, 6272, 6314, 6320, 6389, 6400, 6428, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6617, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7376, 7378, 7380, 7414, 7424, 7654, 7676, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8204, 8205, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8473, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8493, 8495, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 11823, 11823, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12442, 12445, 12447, 12449, 12538, 12540, 12543, 12549, 12589, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40908, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42647, 42655, 42737, 42775, 42783, 42786, 42888, 42891, 42894, 42896, 42899, 42912, 42922, 43000, 43047, 43072, 43123, 43136, 43204, 43216, 43225, 43232, 43255, 43259, 43259, 43264, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43643, 43648, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43968, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65062, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500,];\n /**\n * Generated by scripts/regenerate-unicode-identifier-parts.js on node v12.4.0 with unicode 12.1\n * based on http://www.unicode.org/reports/tr31/ and https://www.ecma-international.org/ecma-262/6.0/#sec-names-and-keywords\n * unicodeESNextIdentifierStart corresponds to the ID_Start and Other_ID_Start property, and\n * unicodeESNextIdentifierPart corresponds to ID_Continue, Other_ID_Continue, plus ID_Start and Other_ID_Start\n */\n var unicodeESNextIdentifierStart = [65, 90, 97, 122, 170, 170, 181, 181, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 880, 884, 886, 887, 890, 893, 895, 895, 902, 902, 904, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1488, 1514, 1519, 1522, 1568, 1610, 1646, 1647, 1649, 1747, 1749, 1749, 1765, 1766, 1774, 1775, 1786, 1788, 1791, 1791, 1808, 1808, 1810, 1839, 1869, 1957, 1969, 1969, 1994, 2026, 2036, 2037, 2042, 2042, 2048, 2069, 2074, 2074, 2084, 2084, 2088, 2088, 2112, 2136, 2144, 2154, 2208, 2228, 2230, 2237, 2308, 2361, 2365, 2365, 2384, 2384, 2392, 2401, 2417, 2432, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2493, 2493, 2510, 2510, 2524, 2525, 2527, 2529, 2544, 2545, 2556, 2556, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2649, 2652, 2654, 2654, 2674, 2676, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2749, 2749, 2768, 2768, 2784, 2785, 2809, 2809, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2877, 2877, 2908, 2909, 2911, 2913, 2929, 2929, 2947, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3024, 3024, 3077, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3133, 3160, 3162, 3168, 3169, 3200, 3200, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3261, 3261, 3294, 3294, 3296, 3297, 3313, 3314, 3333, 3340, 3342, 3344, 3346, 3386, 3389, 3389, 3406, 3406, 3412, 3414, 3423, 3425, 3450, 3455, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3585, 3632, 3634, 3635, 3648, 3654, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3760, 3762, 3763, 3773, 3773, 3776, 3780, 3782, 3782, 3804, 3807, 3840, 3840, 3904, 3911, 3913, 3948, 3976, 3980, 4096, 4138, 4159, 4159, 4176, 4181, 4186, 4189, 4193, 4193, 4197, 4198, 4206, 4208, 4213, 4225, 4238, 4238, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5905, 5920, 5937, 5952, 5969, 5984, 5996, 5998, 6000, 6016, 6067, 6103, 6103, 6108, 6108, 6176, 6264, 6272, 6312, 6314, 6314, 6320, 6389, 6400, 6430, 6480, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6656, 6678, 6688, 6740, 6823, 6823, 6917, 6963, 6981, 6987, 7043, 7072, 7086, 7087, 7098, 7141, 7168, 7203, 7245, 7247, 7258, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7401, 7404, 7406, 7411, 7413, 7414, 7418, 7418, 7424, 7615, 7680, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8305, 8305, 8319, 8319, 8336, 8348, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11502, 11506, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11648, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 12293, 12295, 12321, 12329, 12337, 12341, 12344, 12348, 12353, 12438, 12443, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42527, 42538, 42539, 42560, 42606, 42623, 42653, 42656, 42735, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43009, 43011, 43013, 43015, 43018, 43020, 43042, 43072, 43123, 43138, 43187, 43250, 43255, 43259, 43259, 43261, 43262, 43274, 43301, 43312, 43334, 43360, 43388, 43396, 43442, 43471, 43471, 43488, 43492, 43494, 43503, 43514, 43518, 43520, 43560, 43584, 43586, 43588, 43595, 43616, 43638, 43642, 43642, 43646, 43695, 43697, 43697, 43701, 43702, 43705, 43709, 43712, 43712, 43714, 43714, 43739, 43741, 43744, 43754, 43762, 43764, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44002, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64285, 64287, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65136, 65140, 65142, 65276, 65313, 65338, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66176, 66204, 66208, 66256, 66304, 66335, 66349, 66378, 66384, 66421, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68096, 68112, 68115, 68117, 68119, 68121, 68149, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68324, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68899, 69376, 69404, 69415, 69415, 69424, 69445, 69600, 69622, 69635, 69687, 69763, 69807, 69840, 69864, 69891, 69926, 69956, 69956, 69968, 70002, 70006, 70006, 70019, 70066, 70081, 70084, 70106, 70106, 70108, 70108, 70144, 70161, 70163, 70187, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70366, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70461, 70461, 70480, 70480, 70493, 70497, 70656, 70708, 70727, 70730, 70751, 70751, 70784, 70831, 70852, 70853, 70855, 70855, 71040, 71086, 71128, 71131, 71168, 71215, 71236, 71236, 71296, 71338, 71352, 71352, 71424, 71450, 71680, 71723, 71840, 71903, 71935, 71935, 72096, 72103, 72106, 72144, 72161, 72161, 72163, 72163, 72192, 72192, 72203, 72242, 72250, 72250, 72272, 72272, 72284, 72329, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72750, 72768, 72768, 72818, 72847, 72960, 72966, 72968, 72969, 72971, 73008, 73030, 73030, 73056, 73061, 73063, 73064, 73066, 73097, 73112, 73112, 73440, 73458, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92880, 92909, 92928, 92975, 92992, 92995, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94032, 94032, 94099, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 123136, 123180, 123191, 123197, 123214, 123214, 123584, 123627, 124928, 125124, 125184, 125251, 125259, 125259, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101];\n var unicodeESNextIdentifierPart = [48, 57, 65, 90, 95, 95, 97, 122, 170, 170, 181, 181, 183, 183, 186, 186, 192, 214, 216, 246, 248, 705, 710, 721, 736, 740, 748, 748, 750, 750, 768, 884, 886, 887, 890, 893, 895, 895, 902, 906, 908, 908, 910, 929, 931, 1013, 1015, 1153, 1155, 1159, 1162, 1327, 1329, 1366, 1369, 1369, 1376, 1416, 1425, 1469, 1471, 1471, 1473, 1474, 1476, 1477, 1479, 1479, 1488, 1514, 1519, 1522, 1552, 1562, 1568, 1641, 1646, 1747, 1749, 1756, 1759, 1768, 1770, 1788, 1791, 1791, 1808, 1866, 1869, 1969, 1984, 2037, 2042, 2042, 2045, 2045, 2048, 2093, 2112, 2139, 2144, 2154, 2208, 2228, 2230, 2237, 2259, 2273, 2275, 2403, 2406, 2415, 2417, 2435, 2437, 2444, 2447, 2448, 2451, 2472, 2474, 2480, 2482, 2482, 2486, 2489, 2492, 2500, 2503, 2504, 2507, 2510, 2519, 2519, 2524, 2525, 2527, 2531, 2534, 2545, 2556, 2556, 2558, 2558, 2561, 2563, 2565, 2570, 2575, 2576, 2579, 2600, 2602, 2608, 2610, 2611, 2613, 2614, 2616, 2617, 2620, 2620, 2622, 2626, 2631, 2632, 2635, 2637, 2641, 2641, 2649, 2652, 2654, 2654, 2662, 2677, 2689, 2691, 2693, 2701, 2703, 2705, 2707, 2728, 2730, 2736, 2738, 2739, 2741, 2745, 2748, 2757, 2759, 2761, 2763, 2765, 2768, 2768, 2784, 2787, 2790, 2799, 2809, 2815, 2817, 2819, 2821, 2828, 2831, 2832, 2835, 2856, 2858, 2864, 2866, 2867, 2869, 2873, 2876, 2884, 2887, 2888, 2891, 2893, 2902, 2903, 2908, 2909, 2911, 2915, 2918, 2927, 2929, 2929, 2946, 2947, 2949, 2954, 2958, 2960, 2962, 2965, 2969, 2970, 2972, 2972, 2974, 2975, 2979, 2980, 2984, 2986, 2990, 3001, 3006, 3010, 3014, 3016, 3018, 3021, 3024, 3024, 3031, 3031, 3046, 3055, 3072, 3084, 3086, 3088, 3090, 3112, 3114, 3129, 3133, 3140, 3142, 3144, 3146, 3149, 3157, 3158, 3160, 3162, 3168, 3171, 3174, 3183, 3200, 3203, 3205, 3212, 3214, 3216, 3218, 3240, 3242, 3251, 3253, 3257, 3260, 3268, 3270, 3272, 3274, 3277, 3285, 3286, 3294, 3294, 3296, 3299, 3302, 3311, 3313, 3314, 3328, 3331, 3333, 3340, 3342, 3344, 3346, 3396, 3398, 3400, 3402, 3406, 3412, 3415, 3423, 3427, 3430, 3439, 3450, 3455, 3458, 3459, 3461, 3478, 3482, 3505, 3507, 3515, 3517, 3517, 3520, 3526, 3530, 3530, 3535, 3540, 3542, 3542, 3544, 3551, 3558, 3567, 3570, 3571, 3585, 3642, 3648, 3662, 3664, 3673, 3713, 3714, 3716, 3716, 3718, 3722, 3724, 3747, 3749, 3749, 3751, 3773, 3776, 3780, 3782, 3782, 3784, 3789, 3792, 3801, 3804, 3807, 3840, 3840, 3864, 3865, 3872, 3881, 3893, 3893, 3895, 3895, 3897, 3897, 3902, 3911, 3913, 3948, 3953, 3972, 3974, 3991, 3993, 4028, 4038, 4038, 4096, 4169, 4176, 4253, 4256, 4293, 4295, 4295, 4301, 4301, 4304, 4346, 4348, 4680, 4682, 4685, 4688, 4694, 4696, 4696, 4698, 4701, 4704, 4744, 4746, 4749, 4752, 4784, 4786, 4789, 4792, 4798, 4800, 4800, 4802, 4805, 4808, 4822, 4824, 4880, 4882, 4885, 4888, 4954, 4957, 4959, 4969, 4977, 4992, 5007, 5024, 5109, 5112, 5117, 5121, 5740, 5743, 5759, 5761, 5786, 5792, 5866, 5870, 5880, 5888, 5900, 5902, 5908, 5920, 5940, 5952, 5971, 5984, 5996, 5998, 6000, 6002, 6003, 6016, 6099, 6103, 6103, 6108, 6109, 6112, 6121, 6155, 6157, 6160, 6169, 6176, 6264, 6272, 6314, 6320, 6389, 6400, 6430, 6432, 6443, 6448, 6459, 6470, 6509, 6512, 6516, 6528, 6571, 6576, 6601, 6608, 6618, 6656, 6683, 6688, 6750, 6752, 6780, 6783, 6793, 6800, 6809, 6823, 6823, 6832, 6845, 6912, 6987, 6992, 7001, 7019, 7027, 7040, 7155, 7168, 7223, 7232, 7241, 7245, 7293, 7296, 7304, 7312, 7354, 7357, 7359, 7376, 7378, 7380, 7418, 7424, 7673, 7675, 7957, 7960, 7965, 7968, 8005, 8008, 8013, 8016, 8023, 8025, 8025, 8027, 8027, 8029, 8029, 8031, 8061, 8064, 8116, 8118, 8124, 8126, 8126, 8130, 8132, 8134, 8140, 8144, 8147, 8150, 8155, 8160, 8172, 8178, 8180, 8182, 8188, 8255, 8256, 8276, 8276, 8305, 8305, 8319, 8319, 8336, 8348, 8400, 8412, 8417, 8417, 8421, 8432, 8450, 8450, 8455, 8455, 8458, 8467, 8469, 8469, 8472, 8477, 8484, 8484, 8486, 8486, 8488, 8488, 8490, 8505, 8508, 8511, 8517, 8521, 8526, 8526, 8544, 8584, 11264, 11310, 11312, 11358, 11360, 11492, 11499, 11507, 11520, 11557, 11559, 11559, 11565, 11565, 11568, 11623, 11631, 11631, 11647, 11670, 11680, 11686, 11688, 11694, 11696, 11702, 11704, 11710, 11712, 11718, 11720, 11726, 11728, 11734, 11736, 11742, 11744, 11775, 12293, 12295, 12321, 12335, 12337, 12341, 12344, 12348, 12353, 12438, 12441, 12447, 12449, 12538, 12540, 12543, 12549, 12591, 12593, 12686, 12704, 12730, 12784, 12799, 13312, 19893, 19968, 40943, 40960, 42124, 42192, 42237, 42240, 42508, 42512, 42539, 42560, 42607, 42612, 42621, 42623, 42737, 42775, 42783, 42786, 42888, 42891, 42943, 42946, 42950, 42999, 43047, 43072, 43123, 43136, 43205, 43216, 43225, 43232, 43255, 43259, 43259, 43261, 43309, 43312, 43347, 43360, 43388, 43392, 43456, 43471, 43481, 43488, 43518, 43520, 43574, 43584, 43597, 43600, 43609, 43616, 43638, 43642, 43714, 43739, 43741, 43744, 43759, 43762, 43766, 43777, 43782, 43785, 43790, 43793, 43798, 43808, 43814, 43816, 43822, 43824, 43866, 43868, 43879, 43888, 44010, 44012, 44013, 44016, 44025, 44032, 55203, 55216, 55238, 55243, 55291, 63744, 64109, 64112, 64217, 64256, 64262, 64275, 64279, 64285, 64296, 64298, 64310, 64312, 64316, 64318, 64318, 64320, 64321, 64323, 64324, 64326, 64433, 64467, 64829, 64848, 64911, 64914, 64967, 65008, 65019, 65024, 65039, 65056, 65071, 65075, 65076, 65101, 65103, 65136, 65140, 65142, 65276, 65296, 65305, 65313, 65338, 65343, 65343, 65345, 65370, 65382, 65470, 65474, 65479, 65482, 65487, 65490, 65495, 65498, 65500, 65536, 65547, 65549, 65574, 65576, 65594, 65596, 65597, 65599, 65613, 65616, 65629, 65664, 65786, 65856, 65908, 66045, 66045, 66176, 66204, 66208, 66256, 66272, 66272, 66304, 66335, 66349, 66378, 66384, 66426, 66432, 66461, 66464, 66499, 66504, 66511, 66513, 66517, 66560, 66717, 66720, 66729, 66736, 66771, 66776, 66811, 66816, 66855, 66864, 66915, 67072, 67382, 67392, 67413, 67424, 67431, 67584, 67589, 67592, 67592, 67594, 67637, 67639, 67640, 67644, 67644, 67647, 67669, 67680, 67702, 67712, 67742, 67808, 67826, 67828, 67829, 67840, 67861, 67872, 67897, 67968, 68023, 68030, 68031, 68096, 68099, 68101, 68102, 68108, 68115, 68117, 68119, 68121, 68149, 68152, 68154, 68159, 68159, 68192, 68220, 68224, 68252, 68288, 68295, 68297, 68326, 68352, 68405, 68416, 68437, 68448, 68466, 68480, 68497, 68608, 68680, 68736, 68786, 68800, 68850, 68864, 68903, 68912, 68921, 69376, 69404, 69415, 69415, 69424, 69456, 69600, 69622, 69632, 69702, 69734, 69743, 69759, 69818, 69840, 69864, 69872, 69881, 69888, 69940, 69942, 69951, 69956, 69958, 69968, 70003, 70006, 70006, 70016, 70084, 70089, 70092, 70096, 70106, 70108, 70108, 70144, 70161, 70163, 70199, 70206, 70206, 70272, 70278, 70280, 70280, 70282, 70285, 70287, 70301, 70303, 70312, 70320, 70378, 70384, 70393, 70400, 70403, 70405, 70412, 70415, 70416, 70419, 70440, 70442, 70448, 70450, 70451, 70453, 70457, 70459, 70468, 70471, 70472, 70475, 70477, 70480, 70480, 70487, 70487, 70493, 70499, 70502, 70508, 70512, 70516, 70656, 70730, 70736, 70745, 70750, 70751, 70784, 70853, 70855, 70855, 70864, 70873, 71040, 71093, 71096, 71104, 71128, 71133, 71168, 71232, 71236, 71236, 71248, 71257, 71296, 71352, 71360, 71369, 71424, 71450, 71453, 71467, 71472, 71481, 71680, 71738, 71840, 71913, 71935, 71935, 72096, 72103, 72106, 72151, 72154, 72161, 72163, 72164, 72192, 72254, 72263, 72263, 72272, 72345, 72349, 72349, 72384, 72440, 72704, 72712, 72714, 72758, 72760, 72768, 72784, 72793, 72818, 72847, 72850, 72871, 72873, 72886, 72960, 72966, 72968, 72969, 72971, 73014, 73018, 73018, 73020, 73021, 73023, 73031, 73040, 73049, 73056, 73061, 73063, 73064, 73066, 73102, 73104, 73105, 73107, 73112, 73120, 73129, 73440, 73462, 73728, 74649, 74752, 74862, 74880, 75075, 77824, 78894, 82944, 83526, 92160, 92728, 92736, 92766, 92768, 92777, 92880, 92909, 92912, 92916, 92928, 92982, 92992, 92995, 93008, 93017, 93027, 93047, 93053, 93071, 93760, 93823, 93952, 94026, 94031, 94087, 94095, 94111, 94176, 94177, 94179, 94179, 94208, 100343, 100352, 101106, 110592, 110878, 110928, 110930, 110948, 110951, 110960, 111355, 113664, 113770, 113776, 113788, 113792, 113800, 113808, 113817, 113821, 113822, 119141, 119145, 119149, 119154, 119163, 119170, 119173, 119179, 119210, 119213, 119362, 119364, 119808, 119892, 119894, 119964, 119966, 119967, 119970, 119970, 119973, 119974, 119977, 119980, 119982, 119993, 119995, 119995, 119997, 120003, 120005, 120069, 120071, 120074, 120077, 120084, 120086, 120092, 120094, 120121, 120123, 120126, 120128, 120132, 120134, 120134, 120138, 120144, 120146, 120485, 120488, 120512, 120514, 120538, 120540, 120570, 120572, 120596, 120598, 120628, 120630, 120654, 120656, 120686, 120688, 120712, 120714, 120744, 120746, 120770, 120772, 120779, 120782, 120831, 121344, 121398, 121403, 121452, 121461, 121461, 121476, 121476, 121499, 121503, 121505, 121519, 122880, 122886, 122888, 122904, 122907, 122913, 122915, 122916, 122918, 122922, 123136, 123180, 123184, 123197, 123200, 123209, 123214, 123214, 123584, 123641, 124928, 125124, 125136, 125142, 125184, 125259, 125264, 125273, 126464, 126467, 126469, 126495, 126497, 126498, 126500, 126500, 126503, 126503, 126505, 126514, 126516, 126519, 126521, 126521, 126523, 126523, 126530, 126530, 126535, 126535, 126537, 126537, 126539, 126539, 126541, 126543, 126545, 126546, 126548, 126548, 126551, 126551, 126553, 126553, 126555, 126555, 126557, 126557, 126559, 126559, 126561, 126562, 126564, 126564, 126567, 126570, 126572, 126578, 126580, 126583, 126585, 126588, 126590, 126590, 126592, 126601, 126603, 126619, 126625, 126627, 126629, 126633, 126635, 126651, 131072, 173782, 173824, 177972, 177984, 178205, 178208, 183969, 183984, 191456, 194560, 195101, 917760, 917999];\n /**\n * Test for whether a single line comment with leading whitespace trimmed's text contains a directive.\n */\n var commentDirectiveRegExSingleLine = /^\\/\\/\\/?\\s*@(ts-expect-error|ts-ignore)/;\n /**\n * Test for whether a multi-line comment with leading whitespace trimmed's last line contains a directive.\n */\n var commentDirectiveRegExMultiLine = /^(?:\\/|\\*)*\\s*@(ts-expect-error|ts-ignore)/;\n function lookupInUnicodeMap(code, map) {\n // Bail out quickly if it couldn't possibly be in the map.\n if (code < map[0]) {\n return false;\n }\n // Perform binary search in one of the Unicode range maps\n var lo = 0;\n var hi = map.length;\n var mid;\n while (lo + 1 < hi) {\n mid = lo + (hi - lo) / 2;\n // mid has to be even to catch a range's beginning\n mid -= mid % 2;\n if (map[mid] <= code && code <= map[mid + 1]) {\n return true;\n }\n if (code < map[mid]) {\n hi = mid;\n }\n else {\n lo = mid + 2;\n }\n }\n return false;\n }\n /* @internal */ function isUnicodeIdentifierStart(code, languageVersion) {\n return languageVersion >= 2 /* ES2015 */ ?\n lookupInUnicodeMap(code, unicodeESNextIdentifierStart) :\n languageVersion === 1 /* ES5 */ ? lookupInUnicodeMap(code, unicodeES5IdentifierStart) :\n lookupInUnicodeMap(code, unicodeES3IdentifierStart);\n }\n ts.isUnicodeIdentifierStart = isUnicodeIdentifierStart;\n function isUnicodeIdentifierPart(code, languageVersion) {\n return languageVersion >= 2 /* ES2015 */ ?\n lookupInUnicodeMap(code, unicodeESNextIdentifierPart) :\n languageVersion === 1 /* ES5 */ ? lookupInUnicodeMap(code, unicodeES5IdentifierPart) :\n lookupInUnicodeMap(code, unicodeES3IdentifierPart);\n }\n function makeReverseMap(source) {\n var result = [];\n source.forEach(function (value, name) {\n result[value] = name;\n });\n return result;\n }\n var tokenStrings = makeReverseMap(textToToken);\n function tokenToString(t) {\n return tokenStrings[t];\n }\n ts.tokenToString = tokenToString;\n /* @internal */\n function stringToToken(s) {\n return textToToken.get(s);\n }\n ts.stringToToken = stringToToken;\n /* @internal */\n function computeLineStarts(text) {\n var result = new Array();\n var pos = 0;\n var lineStart = 0;\n while (pos < text.length) {\n var ch = text.charCodeAt(pos);\n pos++;\n switch (ch) {\n case 13 /* carriageReturn */:\n if (text.charCodeAt(pos) === 10 /* lineFeed */) {\n pos++;\n }\n // falls through\n case 10 /* lineFeed */:\n result.push(lineStart);\n lineStart = pos;\n break;\n default:\n if (ch > 127 /* maxAsciiCharacter */ && isLineBreak(ch)) {\n result.push(lineStart);\n lineStart = pos;\n }\n break;\n }\n }\n result.push(lineStart);\n return result;\n }\n ts.computeLineStarts = computeLineStarts;\n function getPositionOfLineAndCharacter(sourceFile, line, character, allowEdits) {\n return sourceFile.getPositionOfLineAndCharacter ?\n sourceFile.getPositionOfLineAndCharacter(line, character, allowEdits) :\n computePositionOfLineAndCharacter(getLineStarts(sourceFile), line, character, sourceFile.text, allowEdits);\n }\n ts.getPositionOfLineAndCharacter = getPositionOfLineAndCharacter;\n /* @internal */\n function computePositionOfLineAndCharacter(lineStarts, line, character, debugText, allowEdits) {\n if (line < 0 || line >= lineStarts.length) {\n if (allowEdits) {\n // Clamp line to nearest allowable value\n line = line < 0 ? 0 : line >= lineStarts.length ? lineStarts.length - 1 : line;\n }\n else {\n ts.Debug.fail(\"Bad line number. Line: \" + line + \", lineStarts.length: \" + lineStarts.length + \" , line map is correct? \" + (debugText !== undefined ? ts.arraysEqual(lineStarts, computeLineStarts(debugText)) : \"unknown\"));\n }\n }\n var res = lineStarts[line] + character;\n if (allowEdits) {\n // Clamp to nearest allowable values to allow the underlying to be edited without crashing (accuracy is lost, instead)\n // TODO: Somehow track edits between file as it was during the creation of sourcemap we have and the current file and\n // apply them to the computed position to improve accuracy\n return res > lineStarts[line + 1] ? lineStarts[line + 1] : typeof debugText === \"string\" && res > debugText.length ? debugText.length : res;\n }\n if (line < lineStarts.length - 1) {\n ts.Debug.assert(res < lineStarts[line + 1]);\n }\n else if (debugText !== undefined) {\n ts.Debug.assert(res <= debugText.length); // Allow single character overflow for trailing newline\n }\n return res;\n }\n ts.computePositionOfLineAndCharacter = computePositionOfLineAndCharacter;\n /* @internal */\n function getLineStarts(sourceFile) {\n return sourceFile.lineMap || (sourceFile.lineMap = computeLineStarts(sourceFile.text));\n }\n ts.getLineStarts = getLineStarts;\n /* @internal */\n function computeLineAndCharacterOfPosition(lineStarts, position) {\n var lineNumber = computeLineOfPosition(lineStarts, position);\n return {\n line: lineNumber,\n character: position - lineStarts[lineNumber]\n };\n }\n ts.computeLineAndCharacterOfPosition = computeLineAndCharacterOfPosition;\n /**\n * @internal\n * We assume the first line starts at position 0 and 'position' is non-negative.\n */\n function computeLineOfPosition(lineStarts, position, lowerBound) {\n var lineNumber = ts.binarySearch(lineStarts, position, ts.identity, ts.compareValues, lowerBound);\n if (lineNumber < 0) {\n // If the actual position was not found,\n // the binary search returns the 2's-complement of the next line start\n // e.g. if the line starts at [5, 10, 23, 80] and the position requested was 20\n // then the search will return -2.\n //\n // We want the index of the previous line start, so we subtract 1.\n // Review 2's-complement if this is confusing.\n lineNumber = ~lineNumber - 1;\n ts.Debug.assert(lineNumber !== -1, \"position cannot precede the beginning of the file\");\n }\n return lineNumber;\n }\n ts.computeLineOfPosition = computeLineOfPosition;\n /** @internal */\n function getLinesBetweenPositions(sourceFile, pos1, pos2) {\n if (pos1 === pos2)\n return 0;\n var lineStarts = getLineStarts(sourceFile);\n var lower = Math.min(pos1, pos2);\n var isNegative = lower === pos2;\n var upper = isNegative ? pos1 : pos2;\n var lowerLine = computeLineOfPosition(lineStarts, lower);\n var upperLine = computeLineOfPosition(lineStarts, upper, lowerLine);\n return isNegative ? lowerLine - upperLine : upperLine - lowerLine;\n }\n ts.getLinesBetweenPositions = getLinesBetweenPositions;\n function getLineAndCharacterOfPosition(sourceFile, position) {\n return computeLineAndCharacterOfPosition(getLineStarts(sourceFile), position);\n }\n ts.getLineAndCharacterOfPosition = getLineAndCharacterOfPosition;\n function isWhiteSpaceLike(ch) {\n return isWhiteSpaceSingleLine(ch) || isLineBreak(ch);\n }\n ts.isWhiteSpaceLike = isWhiteSpaceLike;\n /** Does not include line breaks. For that, see isWhiteSpaceLike. */\n function isWhiteSpaceSingleLine(ch) {\n // Note: nextLine is in the Zs space, and should be considered to be a whitespace.\n // It is explicitly not a line-break as it isn't in the exact set specified by EcmaScript.\n return ch === 32 /* space */ ||\n ch === 9 /* tab */ ||\n ch === 11 /* verticalTab */ ||\n ch === 12 /* formFeed */ ||\n ch === 160 /* nonBreakingSpace */ ||\n ch === 133 /* nextLine */ ||\n ch === 5760 /* ogham */ ||\n ch >= 8192 /* enQuad */ && ch <= 8203 /* zeroWidthSpace */ ||\n ch === 8239 /* narrowNoBreakSpace */ ||\n ch === 8287 /* mathematicalSpace */ ||\n ch === 12288 /* ideographicSpace */ ||\n ch === 65279 /* byteOrderMark */;\n }\n ts.isWhiteSpaceSingleLine = isWhiteSpaceSingleLine;\n function isLineBreak(ch) {\n // ES5 7.3:\n // The ECMAScript line terminator characters are listed in Table 3.\n // Table 3: Line Terminator Characters\n // Code Unit Value Name Formal Name\n // \\u000A Line Feed \n // \\u000D Carriage Return \n // \\u2028 Line separator \n // \\u2029 Paragraph separator \n // Only the characters in Table 3 are treated as line terminators. Other new line or line\n // breaking characters are treated as white space but not as line terminators.\n return ch === 10 /* lineFeed */ ||\n ch === 13 /* carriageReturn */ ||\n ch === 8232 /* lineSeparator */ ||\n ch === 8233 /* paragraphSeparator */;\n }\n ts.isLineBreak = isLineBreak;\n function isDigit(ch) {\n return ch >= 48 /* _0 */ && ch <= 57 /* _9 */;\n }\n function isHexDigit(ch) {\n return isDigit(ch) || ch >= 65 /* A */ && ch <= 70 /* F */ || ch >= 97 /* a */ && ch <= 102 /* f */;\n }\n function isCodePoint(code) {\n return code <= 0x10FFFF;\n }\n /* @internal */\n function isOctalDigit(ch) {\n return ch >= 48 /* _0 */ && ch <= 55 /* _7 */;\n }\n ts.isOctalDigit = isOctalDigit;\n function couldStartTrivia(text, pos) {\n // Keep in sync with skipTrivia\n var ch = text.charCodeAt(pos);\n switch (ch) {\n case 13 /* carriageReturn */:\n case 10 /* lineFeed */:\n case 9 /* tab */:\n case 11 /* verticalTab */:\n case 12 /* formFeed */:\n case 32 /* space */:\n case 47 /* slash */:\n // starts of normal trivia\n // falls through\n case 60 /* lessThan */:\n case 124 /* bar */:\n case 61 /* equals */:\n case 62 /* greaterThan */:\n // Starts of conflict marker trivia\n return true;\n case 35 /* hash */:\n // Only if its the beginning can we have #! trivia\n return pos === 0;\n default:\n return ch > 127 /* maxAsciiCharacter */;\n }\n }\n ts.couldStartTrivia = couldStartTrivia;\n /* @internal */\n function skipTrivia(text, pos, stopAfterLineBreak, stopAtComments, inJSDoc) {\n if (ts.positionIsSynthesized(pos)) {\n return pos;\n }\n var canConsumeStar = false;\n // Keep in sync with couldStartTrivia\n while (true) {\n var ch = text.charCodeAt(pos);\n switch (ch) {\n case 13 /* carriageReturn */:\n if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) {\n pos++;\n }\n // falls through\n case 10 /* lineFeed */:\n pos++;\n if (stopAfterLineBreak) {\n return pos;\n }\n canConsumeStar = !!inJSDoc;\n continue;\n case 9 /* tab */:\n case 11 /* verticalTab */:\n case 12 /* formFeed */:\n case 32 /* space */:\n pos++;\n continue;\n case 47 /* slash */:\n if (stopAtComments) {\n break;\n }\n if (text.charCodeAt(pos + 1) === 47 /* slash */) {\n pos += 2;\n while (pos < text.length) {\n if (isLineBreak(text.charCodeAt(pos))) {\n break;\n }\n pos++;\n }\n canConsumeStar = false;\n continue;\n }\n if (text.charCodeAt(pos + 1) === 42 /* asterisk */) {\n pos += 2;\n while (pos < text.length) {\n if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) {\n pos += 2;\n break;\n }\n pos++;\n }\n canConsumeStar = false;\n continue;\n }\n break;\n case 60 /* lessThan */:\n case 124 /* bar */:\n case 61 /* equals */:\n case 62 /* greaterThan */:\n if (isConflictMarkerTrivia(text, pos)) {\n pos = scanConflictMarkerTrivia(text, pos);\n canConsumeStar = false;\n continue;\n }\n break;\n case 35 /* hash */:\n if (pos === 0 && isShebangTrivia(text, pos)) {\n pos = scanShebangTrivia(text, pos);\n canConsumeStar = false;\n continue;\n }\n break;\n case 42 /* asterisk */:\n if (canConsumeStar) {\n pos++;\n canConsumeStar = false;\n continue;\n }\n break;\n default:\n if (ch > 127 /* maxAsciiCharacter */ && (isWhiteSpaceLike(ch))) {\n pos++;\n continue;\n }\n break;\n }\n return pos;\n }\n }\n ts.skipTrivia = skipTrivia;\n // All conflict markers consist of the same character repeated seven times. If it is\n // a <<<<<<< or >>>>>>> marker then it is also followed by a space.\n var mergeConflictMarkerLength = \"<<<<<<<\".length;\n function isConflictMarkerTrivia(text, pos) {\n ts.Debug.assert(pos >= 0);\n // Conflict markers must be at the start of a line.\n if (pos === 0 || isLineBreak(text.charCodeAt(pos - 1))) {\n var ch = text.charCodeAt(pos);\n if ((pos + mergeConflictMarkerLength) < text.length) {\n for (var i = 0; i < mergeConflictMarkerLength; i++) {\n if (text.charCodeAt(pos + i) !== ch) {\n return false;\n }\n }\n return ch === 61 /* equals */ ||\n text.charCodeAt(pos + mergeConflictMarkerLength) === 32 /* space */;\n }\n }\n return false;\n }\n function scanConflictMarkerTrivia(text, pos, error) {\n if (error) {\n error(ts.Diagnostics.Merge_conflict_marker_encountered, pos, mergeConflictMarkerLength);\n }\n var ch = text.charCodeAt(pos);\n var len = text.length;\n if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) {\n while (pos < len && !isLineBreak(text.charCodeAt(pos))) {\n pos++;\n }\n }\n else {\n ts.Debug.assert(ch === 124 /* bar */ || ch === 61 /* equals */);\n // Consume everything from the start of a ||||||| or ======= marker to the start\n // of the next ======= or >>>>>>> marker.\n while (pos < len) {\n var currentChar = text.charCodeAt(pos);\n if ((currentChar === 61 /* equals */ || currentChar === 62 /* greaterThan */) && currentChar !== ch && isConflictMarkerTrivia(text, pos)) {\n break;\n }\n pos++;\n }\n }\n return pos;\n }\n var shebangTriviaRegex = /^#!.*/;\n /*@internal*/\n function isShebangTrivia(text, pos) {\n // Shebangs check must only be done at the start of the file\n ts.Debug.assert(pos === 0);\n return shebangTriviaRegex.test(text);\n }\n ts.isShebangTrivia = isShebangTrivia;\n /*@internal*/\n function scanShebangTrivia(text, pos) {\n var shebang = shebangTriviaRegex.exec(text)[0];\n pos = pos + shebang.length;\n return pos;\n }\n ts.scanShebangTrivia = scanShebangTrivia;\n /**\n * Invokes a callback for each comment range following the provided position.\n *\n * Single-line comment ranges include the leading double-slash characters but not the ending\n * line break. Multi-line comment ranges include the leading slash-asterisk and trailing\n * asterisk-slash characters.\n *\n * @param reduce If true, accumulates the result of calling the callback in a fashion similar\n * to reduceLeft. If false, iteration stops when the callback returns a truthy value.\n * @param text The source text to scan.\n * @param pos The position at which to start scanning.\n * @param trailing If false, whitespace is skipped until the first line break and comments\n * between that location and the next token are returned. If true, comments occurring\n * between the given position and the next line break are returned.\n * @param cb The callback to execute as each comment range is encountered.\n * @param state A state value to pass to each iteration of the callback.\n * @param initial An initial value to pass when accumulating results (when \"reduce\" is true).\n * @returns If \"reduce\" is true, the accumulated value. If \"reduce\" is false, the first truthy\n * return value of the callback.\n */\n function iterateCommentRanges(reduce, text, pos, trailing, cb, state, initial) {\n var pendingPos;\n var pendingEnd;\n var pendingKind;\n var pendingHasTrailingNewLine;\n var hasPendingCommentRange = false;\n var collecting = trailing;\n var accumulator = initial;\n if (pos === 0) {\n collecting = true;\n var shebang = getShebang(text);\n if (shebang) {\n pos = shebang.length;\n }\n }\n scan: while (pos >= 0 && pos < text.length) {\n var ch = text.charCodeAt(pos);\n switch (ch) {\n case 13 /* carriageReturn */:\n if (text.charCodeAt(pos + 1) === 10 /* lineFeed */) {\n pos++;\n }\n // falls through\n case 10 /* lineFeed */:\n pos++;\n if (trailing) {\n break scan;\n }\n collecting = true;\n if (hasPendingCommentRange) {\n pendingHasTrailingNewLine = true;\n }\n continue;\n case 9 /* tab */:\n case 11 /* verticalTab */:\n case 12 /* formFeed */:\n case 32 /* space */:\n pos++;\n continue;\n case 47 /* slash */:\n var nextChar = text.charCodeAt(pos + 1);\n var hasTrailingNewLine = false;\n if (nextChar === 47 /* slash */ || nextChar === 42 /* asterisk */) {\n var kind = nextChar === 47 /* slash */ ? 2 /* SingleLineCommentTrivia */ : 3 /* MultiLineCommentTrivia */;\n var startPos = pos;\n pos += 2;\n if (nextChar === 47 /* slash */) {\n while (pos < text.length) {\n if (isLineBreak(text.charCodeAt(pos))) {\n hasTrailingNewLine = true;\n break;\n }\n pos++;\n }\n }\n else {\n while (pos < text.length) {\n if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) {\n pos += 2;\n break;\n }\n pos++;\n }\n }\n if (collecting) {\n if (hasPendingCommentRange) {\n accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator);\n if (!reduce && accumulator) {\n // If we are not reducing and we have a truthy result, return it.\n return accumulator;\n }\n }\n pendingPos = startPos;\n pendingEnd = pos;\n pendingKind = kind;\n pendingHasTrailingNewLine = hasTrailingNewLine;\n hasPendingCommentRange = true;\n }\n continue;\n }\n break scan;\n default:\n if (ch > 127 /* maxAsciiCharacter */ && (isWhiteSpaceLike(ch))) {\n if (hasPendingCommentRange && isLineBreak(ch)) {\n pendingHasTrailingNewLine = true;\n }\n pos++;\n continue;\n }\n break scan;\n }\n }\n if (hasPendingCommentRange) {\n accumulator = cb(pendingPos, pendingEnd, pendingKind, pendingHasTrailingNewLine, state, accumulator);\n }\n return accumulator;\n }\n function forEachLeadingCommentRange(text, pos, cb, state) {\n return iterateCommentRanges(/*reduce*/ false, text, pos, /*trailing*/ false, cb, state);\n }\n ts.forEachLeadingCommentRange = forEachLeadingCommentRange;\n function forEachTrailingCommentRange(text, pos, cb, state) {\n return iterateCommentRanges(/*reduce*/ false, text, pos, /*trailing*/ true, cb, state);\n }\n ts.forEachTrailingCommentRange = forEachTrailingCommentRange;\n function reduceEachLeadingCommentRange(text, pos, cb, state, initial) {\n return iterateCommentRanges(/*reduce*/ true, text, pos, /*trailing*/ false, cb, state, initial);\n }\n ts.reduceEachLeadingCommentRange = reduceEachLeadingCommentRange;\n function reduceEachTrailingCommentRange(text, pos, cb, state, initial) {\n return iterateCommentRanges(/*reduce*/ true, text, pos, /*trailing*/ true, cb, state, initial);\n }\n ts.reduceEachTrailingCommentRange = reduceEachTrailingCommentRange;\n function appendCommentRange(pos, end, kind, hasTrailingNewLine, _state, comments) {\n if (!comments) {\n comments = [];\n }\n comments.push({ kind: kind, pos: pos, end: end, hasTrailingNewLine: hasTrailingNewLine });\n return comments;\n }\n function getLeadingCommentRanges(text, pos) {\n return reduceEachLeadingCommentRange(text, pos, appendCommentRange, /*state*/ undefined, /*initial*/ undefined);\n }\n ts.getLeadingCommentRanges = getLeadingCommentRanges;\n function getTrailingCommentRanges(text, pos) {\n return reduceEachTrailingCommentRange(text, pos, appendCommentRange, /*state*/ undefined, /*initial*/ undefined);\n }\n ts.getTrailingCommentRanges = getTrailingCommentRanges;\n /** Optionally, get the shebang */\n function getShebang(text) {\n var match = shebangTriviaRegex.exec(text);\n if (match) {\n return match[0];\n }\n }\n ts.getShebang = getShebang;\n function isIdentifierStart(ch, languageVersion) {\n return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ ||\n ch === 36 /* $ */ || ch === 95 /* _ */ ||\n ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierStart(ch, languageVersion);\n }\n ts.isIdentifierStart = isIdentifierStart;\n function isIdentifierPart(ch, languageVersion, identifierVariant) {\n return ch >= 65 /* A */ && ch <= 90 /* Z */ || ch >= 97 /* a */ && ch <= 122 /* z */ ||\n ch >= 48 /* _0 */ && ch <= 57 /* _9 */ || ch === 36 /* $ */ || ch === 95 /* _ */ ||\n // \"-\" and \":\" are valid in JSX Identifiers\n (identifierVariant === 1 /* JSX */ ? (ch === 45 /* minus */ || ch === 58 /* colon */) : false) ||\n ch > 127 /* maxAsciiCharacter */ && isUnicodeIdentifierPart(ch, languageVersion);\n }\n ts.isIdentifierPart = isIdentifierPart;\n /* @internal */\n function isIdentifierText(name, languageVersion, identifierVariant) {\n var ch = codePointAt(name, 0);\n if (!isIdentifierStart(ch, languageVersion)) {\n return false;\n }\n for (var i = charSize(ch); i < name.length; i += charSize(ch)) {\n if (!isIdentifierPart(ch = codePointAt(name, i), languageVersion, identifierVariant)) {\n return false;\n }\n }\n return true;\n }\n ts.isIdentifierText = isIdentifierText;\n // Creates a scanner over a (possibly unspecified) range of a piece of text.\n function createScanner(languageVersion, skipTrivia, languageVariant, textInitial, onError, start, length) {\n if (languageVariant === void 0) { languageVariant = 0 /* Standard */; }\n var text = textInitial;\n // Current position (end position of text of current token)\n var pos;\n // end of text\n var end;\n // Start position of whitespace before current token\n var startPos;\n // Start position of text of current token\n var tokenPos;\n var token;\n var tokenValue;\n var tokenFlags;\n var commentDirectives;\n var inJSDocType = 0;\n setText(text, start, length);\n var scanner = {\n getStartPos: function () { return startPos; },\n getTextPos: function () { return pos; },\n getToken: function () { return token; },\n getTokenPos: function () { return tokenPos; },\n getTokenText: function () { return text.substring(tokenPos, pos); },\n getTokenValue: function () { return tokenValue; },\n hasUnicodeEscape: function () { return (tokenFlags & 1024 /* UnicodeEscape */) !== 0; },\n hasExtendedUnicodeEscape: function () { return (tokenFlags & 8 /* ExtendedUnicodeEscape */) !== 0; },\n hasPrecedingLineBreak: function () { return (tokenFlags & 1 /* PrecedingLineBreak */) !== 0; },\n hasPrecedingJSDocComment: function () { return (tokenFlags & 2 /* PrecedingJSDocComment */) !== 0; },\n isIdentifier: function () { return token === 79 /* Identifier */ || token > 116 /* LastReservedWord */; },\n isReservedWord: function () { return token >= 81 /* FirstReservedWord */ && token <= 116 /* LastReservedWord */; },\n isUnterminated: function () { return (tokenFlags & 4 /* Unterminated */) !== 0; },\n getCommentDirectives: function () { return commentDirectives; },\n getNumericLiteralFlags: function () { return tokenFlags & 1008 /* NumericLiteralFlags */; },\n getTokenFlags: function () { return tokenFlags; },\n reScanGreaterToken: reScanGreaterToken,\n reScanAsteriskEqualsToken: reScanAsteriskEqualsToken,\n reScanSlashToken: reScanSlashToken,\n reScanTemplateToken: reScanTemplateToken,\n reScanTemplateHeadOrNoSubstitutionTemplate: reScanTemplateHeadOrNoSubstitutionTemplate,\n scanJsxIdentifier: scanJsxIdentifier,\n scanJsxAttributeValue: scanJsxAttributeValue,\n reScanJsxAttributeValue: reScanJsxAttributeValue,\n reScanJsxToken: reScanJsxToken,\n reScanLessThanToken: reScanLessThanToken,\n reScanHashToken: reScanHashToken,\n reScanQuestionToken: reScanQuestionToken,\n reScanInvalidIdentifier: reScanInvalidIdentifier,\n scanJsxToken: scanJsxToken,\n scanJsDocToken: scanJsDocToken,\n scan: scan,\n getText: getText,\n clearCommentDirectives: clearCommentDirectives,\n setText: setText,\n setScriptTarget: setScriptTarget,\n setLanguageVariant: setLanguageVariant,\n setOnError: setOnError,\n setTextPos: setTextPos,\n setInJSDocType: setInJSDocType,\n tryScan: tryScan,\n lookAhead: lookAhead,\n scanRange: scanRange,\n };\n if (ts.Debug.isDebugging) {\n Object.defineProperty(scanner, \"__debugShowCurrentPositionInText\", {\n get: function () {\n var text = scanner.getText();\n return text.slice(0, scanner.getStartPos()) + \"║\" + text.slice(scanner.getStartPos());\n },\n });\n }\n return scanner;\n function error(message, errPos, length) {\n if (errPos === void 0) { errPos = pos; }\n if (onError) {\n var oldPos = pos;\n pos = errPos;\n onError(message, length || 0);\n pos = oldPos;\n }\n }\n function scanNumberFragment() {\n var start = pos;\n var allowSeparator = false;\n var isPreviousTokenSeparator = false;\n var result = \"\";\n while (true) {\n var ch = text.charCodeAt(pos);\n if (ch === 95 /* _ */) {\n tokenFlags |= 512 /* ContainsSeparator */;\n if (allowSeparator) {\n allowSeparator = false;\n isPreviousTokenSeparator = true;\n result += text.substring(start, pos);\n }\n else if (isPreviousTokenSeparator) {\n error(ts.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);\n }\n else {\n error(ts.Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);\n }\n pos++;\n start = pos;\n continue;\n }\n if (isDigit(ch)) {\n allowSeparator = true;\n isPreviousTokenSeparator = false;\n pos++;\n continue;\n }\n break;\n }\n if (text.charCodeAt(pos - 1) === 95 /* _ */) {\n error(ts.Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);\n }\n return result + text.substring(start, pos);\n }\n function scanNumber() {\n var start = pos;\n var mainFragment = scanNumberFragment();\n var decimalFragment;\n var scientificFragment;\n if (text.charCodeAt(pos) === 46 /* dot */) {\n pos++;\n decimalFragment = scanNumberFragment();\n }\n var end = pos;\n if (text.charCodeAt(pos) === 69 /* E */ || text.charCodeAt(pos) === 101 /* e */) {\n pos++;\n tokenFlags |= 16 /* Scientific */;\n if (text.charCodeAt(pos) === 43 /* plus */ || text.charCodeAt(pos) === 45 /* minus */)\n pos++;\n var preNumericPart = pos;\n var finalFragment = scanNumberFragment();\n if (!finalFragment) {\n error(ts.Diagnostics.Digit_expected);\n }\n else {\n scientificFragment = text.substring(end, preNumericPart) + finalFragment;\n end = pos;\n }\n }\n var result;\n if (tokenFlags & 512 /* ContainsSeparator */) {\n result = mainFragment;\n if (decimalFragment) {\n result += \".\" + decimalFragment;\n }\n if (scientificFragment) {\n result += scientificFragment;\n }\n }\n else {\n result = text.substring(start, end); // No need to use all the fragments; no _ removal needed\n }\n if (decimalFragment !== undefined || tokenFlags & 16 /* Scientific */) {\n checkForIdentifierStartAfterNumericLiteral(start, decimalFragment === undefined && !!(tokenFlags & 16 /* Scientific */));\n return {\n type: 8 /* NumericLiteral */,\n value: \"\" + +result // if value is not an integer, it can be safely coerced to a number\n };\n }\n else {\n tokenValue = result;\n var type = checkBigIntSuffix(); // if value is an integer, check whether it is a bigint\n checkForIdentifierStartAfterNumericLiteral(start);\n return { type: type, value: tokenValue };\n }\n }\n function checkForIdentifierStartAfterNumericLiteral(numericStart, isScientific) {\n if (!isIdentifierStart(codePointAt(text, pos), languageVersion)) {\n return;\n }\n var identifierStart = pos;\n var length = scanIdentifierParts().length;\n if (length === 1 && text[identifierStart] === \"n\") {\n if (isScientific) {\n error(ts.Diagnostics.A_bigint_literal_cannot_use_exponential_notation, numericStart, identifierStart - numericStart + 1);\n }\n else {\n error(ts.Diagnostics.A_bigint_literal_must_be_an_integer, numericStart, identifierStart - numericStart + 1);\n }\n }\n else {\n error(ts.Diagnostics.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal, identifierStart, length);\n pos = identifierStart;\n }\n }\n function scanOctalDigits() {\n var start = pos;\n while (isOctalDigit(text.charCodeAt(pos))) {\n pos++;\n }\n return +(text.substring(start, pos));\n }\n /**\n * Scans the given number of hexadecimal digits in the text,\n * returning -1 if the given number is unavailable.\n */\n function scanExactNumberOfHexDigits(count, canHaveSeparators) {\n var valueString = scanHexDigits(/*minCount*/ count, /*scanAsManyAsPossible*/ false, canHaveSeparators);\n return valueString ? parseInt(valueString, 16) : -1;\n }\n /**\n * Scans as many hexadecimal digits as are available in the text,\n * returning \"\" if the given number of digits was unavailable.\n */\n function scanMinimumNumberOfHexDigits(count, canHaveSeparators) {\n return scanHexDigits(/*minCount*/ count, /*scanAsManyAsPossible*/ true, canHaveSeparators);\n }\n function scanHexDigits(minCount, scanAsManyAsPossible, canHaveSeparators) {\n var valueChars = [];\n var allowSeparator = false;\n var isPreviousTokenSeparator = false;\n while (valueChars.length < minCount || scanAsManyAsPossible) {\n var ch = text.charCodeAt(pos);\n if (canHaveSeparators && ch === 95 /* _ */) {\n tokenFlags |= 512 /* ContainsSeparator */;\n if (allowSeparator) {\n allowSeparator = false;\n isPreviousTokenSeparator = true;\n }\n else if (isPreviousTokenSeparator) {\n error(ts.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);\n }\n else {\n error(ts.Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);\n }\n pos++;\n continue;\n }\n allowSeparator = canHaveSeparators;\n if (ch >= 65 /* A */ && ch <= 70 /* F */) {\n ch += 97 /* a */ - 65 /* A */; // standardize hex literals to lowercase\n }\n else if (!((ch >= 48 /* _0 */ && ch <= 57 /* _9 */) ||\n (ch >= 97 /* a */ && ch <= 102 /* f */))) {\n break;\n }\n valueChars.push(ch);\n pos++;\n isPreviousTokenSeparator = false;\n }\n if (valueChars.length < minCount) {\n valueChars = [];\n }\n if (text.charCodeAt(pos - 1) === 95 /* _ */) {\n error(ts.Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);\n }\n return String.fromCharCode.apply(String, valueChars);\n }\n function scanString(jsxAttributeString) {\n if (jsxAttributeString === void 0) { jsxAttributeString = false; }\n var quote = text.charCodeAt(pos);\n pos++;\n var result = \"\";\n var start = pos;\n while (true) {\n if (pos >= end) {\n result += text.substring(start, pos);\n tokenFlags |= 4 /* Unterminated */;\n error(ts.Diagnostics.Unterminated_string_literal);\n break;\n }\n var ch = text.charCodeAt(pos);\n if (ch === quote) {\n result += text.substring(start, pos);\n pos++;\n break;\n }\n if (ch === 92 /* backslash */ && !jsxAttributeString) {\n result += text.substring(start, pos);\n result += scanEscapeSequence();\n start = pos;\n continue;\n }\n if (isLineBreak(ch) && !jsxAttributeString) {\n result += text.substring(start, pos);\n tokenFlags |= 4 /* Unterminated */;\n error(ts.Diagnostics.Unterminated_string_literal);\n break;\n }\n pos++;\n }\n return result;\n }\n /**\n * Sets the current 'tokenValue' and returns a NoSubstitutionTemplateLiteral or\n * a literal component of a TemplateExpression.\n */\n function scanTemplateAndSetTokenValue(isTaggedTemplate) {\n var startedWithBacktick = text.charCodeAt(pos) === 96 /* backtick */;\n pos++;\n var start = pos;\n var contents = \"\";\n var resultingToken;\n while (true) {\n if (pos >= end) {\n contents += text.substring(start, pos);\n tokenFlags |= 4 /* Unterminated */;\n error(ts.Diagnostics.Unterminated_template_literal);\n resultingToken = startedWithBacktick ? 14 /* NoSubstitutionTemplateLiteral */ : 17 /* TemplateTail */;\n break;\n }\n var currChar = text.charCodeAt(pos);\n // '`'\n if (currChar === 96 /* backtick */) {\n contents += text.substring(start, pos);\n pos++;\n resultingToken = startedWithBacktick ? 14 /* NoSubstitutionTemplateLiteral */ : 17 /* TemplateTail */;\n break;\n }\n // '${'\n if (currChar === 36 /* $ */ && pos + 1 < end && text.charCodeAt(pos + 1) === 123 /* openBrace */) {\n contents += text.substring(start, pos);\n pos += 2;\n resultingToken = startedWithBacktick ? 15 /* TemplateHead */ : 16 /* TemplateMiddle */;\n break;\n }\n // Escape character\n if (currChar === 92 /* backslash */) {\n contents += text.substring(start, pos);\n contents += scanEscapeSequence(isTaggedTemplate);\n start = pos;\n continue;\n }\n // Speculated ECMAScript 6 Spec 11.8.6.1:\n // and LineTerminatorSequences are normalized to for Template Values\n if (currChar === 13 /* carriageReturn */) {\n contents += text.substring(start, pos);\n pos++;\n if (pos < end && text.charCodeAt(pos) === 10 /* lineFeed */) {\n pos++;\n }\n contents += \"\\n\";\n start = pos;\n continue;\n }\n pos++;\n }\n ts.Debug.assert(resultingToken !== undefined);\n tokenValue = contents;\n return resultingToken;\n }\n function scanEscapeSequence(isTaggedTemplate) {\n var start = pos;\n pos++;\n if (pos >= end) {\n error(ts.Diagnostics.Unexpected_end_of_text);\n return \"\";\n }\n var ch = text.charCodeAt(pos);\n pos++;\n switch (ch) {\n case 48 /* _0 */:\n // '\\01'\n if (isTaggedTemplate && pos < end && isDigit(text.charCodeAt(pos))) {\n pos++;\n tokenFlags |= 2048 /* ContainsInvalidEscape */;\n return text.substring(start, pos);\n }\n return \"\\0\";\n case 98 /* b */:\n return \"\\b\";\n case 116 /* t */:\n return \"\\t\";\n case 110 /* n */:\n return \"\\n\";\n case 118 /* v */:\n return \"\\v\";\n case 102 /* f */:\n return \"\\f\";\n case 114 /* r */:\n return \"\\r\";\n case 39 /* singleQuote */:\n return \"\\'\";\n case 34 /* doubleQuote */:\n return \"\\\"\";\n case 117 /* u */:\n if (isTaggedTemplate) {\n // '\\u' or '\\u0' or '\\u00' or '\\u000'\n for (var escapePos = pos; escapePos < pos + 4; escapePos++) {\n if (escapePos < end && !isHexDigit(text.charCodeAt(escapePos)) && text.charCodeAt(escapePos) !== 123 /* openBrace */) {\n pos = escapePos;\n tokenFlags |= 2048 /* ContainsInvalidEscape */;\n return text.substring(start, pos);\n }\n }\n }\n // '\\u{DDDDDDDD}'\n if (pos < end && text.charCodeAt(pos) === 123 /* openBrace */) {\n pos++;\n // '\\u{'\n if (isTaggedTemplate && !isHexDigit(text.charCodeAt(pos))) {\n tokenFlags |= 2048 /* ContainsInvalidEscape */;\n return text.substring(start, pos);\n }\n if (isTaggedTemplate) {\n var savePos = pos;\n var escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false);\n var escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;\n // '\\u{Not Code Point' or '\\u{CodePoint'\n if (!isCodePoint(escapedValue) || text.charCodeAt(pos) !== 125 /* closeBrace */) {\n tokenFlags |= 2048 /* ContainsInvalidEscape */;\n return text.substring(start, pos);\n }\n else {\n pos = savePos;\n }\n }\n tokenFlags |= 8 /* ExtendedUnicodeEscape */;\n return scanExtendedUnicodeEscape();\n }\n tokenFlags |= 1024 /* UnicodeEscape */;\n // '\\uDDDD'\n return scanHexadecimalEscape(/*numDigits*/ 4);\n case 120 /* x */:\n if (isTaggedTemplate) {\n if (!isHexDigit(text.charCodeAt(pos))) {\n tokenFlags |= 2048 /* ContainsInvalidEscape */;\n return text.substring(start, pos);\n }\n else if (!isHexDigit(text.charCodeAt(pos + 1))) {\n pos++;\n tokenFlags |= 2048 /* ContainsInvalidEscape */;\n return text.substring(start, pos);\n }\n }\n // '\\xDD'\n return scanHexadecimalEscape(/*numDigits*/ 2);\n // when encountering a LineContinuation (i.e. a backslash and a line terminator sequence),\n // the line terminator is interpreted to be \"the empty code unit sequence\".\n case 13 /* carriageReturn */:\n if (pos < end && text.charCodeAt(pos) === 10 /* lineFeed */) {\n pos++;\n }\n // falls through\n case 10 /* lineFeed */:\n case 8232 /* lineSeparator */:\n case 8233 /* paragraphSeparator */:\n return \"\";\n default:\n return String.fromCharCode(ch);\n }\n }\n function scanHexadecimalEscape(numDigits) {\n var escapedValue = scanExactNumberOfHexDigits(numDigits, /*canHaveSeparators*/ false);\n if (escapedValue >= 0) {\n return String.fromCharCode(escapedValue);\n }\n else {\n error(ts.Diagnostics.Hexadecimal_digit_expected);\n return \"\";\n }\n }\n function scanExtendedUnicodeEscape() {\n var escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false);\n var escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;\n var isInvalidExtendedEscape = false;\n // Validate the value of the digit\n if (escapedValue < 0) {\n error(ts.Diagnostics.Hexadecimal_digit_expected);\n isInvalidExtendedEscape = true;\n }\n else if (escapedValue > 0x10FFFF) {\n error(ts.Diagnostics.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive);\n isInvalidExtendedEscape = true;\n }\n if (pos >= end) {\n error(ts.Diagnostics.Unexpected_end_of_text);\n isInvalidExtendedEscape = true;\n }\n else if (text.charCodeAt(pos) === 125 /* closeBrace */) {\n // Only swallow the following character up if it's a '}'.\n pos++;\n }\n else {\n error(ts.Diagnostics.Unterminated_Unicode_escape_sequence);\n isInvalidExtendedEscape = true;\n }\n if (isInvalidExtendedEscape) {\n return \"\";\n }\n return utf16EncodeAsString(escapedValue);\n }\n // Current character is known to be a backslash. Check for Unicode escape of the form '\\uXXXX'\n // and return code point value if valid Unicode escape is found. Otherwise return -1.\n function peekUnicodeEscape() {\n if (pos + 5 < end && text.charCodeAt(pos + 1) === 117 /* u */) {\n var start_1 = pos;\n pos += 2;\n var value = scanExactNumberOfHexDigits(4, /*canHaveSeparators*/ false);\n pos = start_1;\n return value;\n }\n return -1;\n }\n function peekExtendedUnicodeEscape() {\n if (languageVersion >= 2 /* ES2015 */ && codePointAt(text, pos + 1) === 117 /* u */ && codePointAt(text, pos + 2) === 123 /* openBrace */) {\n var start_2 = pos;\n pos += 3;\n var escapedValueString = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ false);\n var escapedValue = escapedValueString ? parseInt(escapedValueString, 16) : -1;\n pos = start_2;\n return escapedValue;\n }\n return -1;\n }\n function scanIdentifierParts() {\n var result = \"\";\n var start = pos;\n while (pos < end) {\n var ch = codePointAt(text, pos);\n if (isIdentifierPart(ch, languageVersion)) {\n pos += charSize(ch);\n }\n else if (ch === 92 /* backslash */) {\n ch = peekExtendedUnicodeEscape();\n if (ch >= 0 && isIdentifierPart(ch, languageVersion)) {\n pos += 3;\n tokenFlags |= 8 /* ExtendedUnicodeEscape */;\n result += scanExtendedUnicodeEscape();\n start = pos;\n continue;\n }\n ch = peekUnicodeEscape();\n if (!(ch >= 0 && isIdentifierPart(ch, languageVersion))) {\n break;\n }\n tokenFlags |= 1024 /* UnicodeEscape */;\n result += text.substring(start, pos);\n result += utf16EncodeAsString(ch);\n // Valid Unicode escape is always six characters\n pos += 6;\n start = pos;\n }\n else {\n break;\n }\n }\n result += text.substring(start, pos);\n return result;\n }\n function getIdentifierToken() {\n // Reserved words are between 2 and 12 characters long and start with a lowercase letter\n var len = tokenValue.length;\n if (len >= 2 && len <= 12) {\n var ch = tokenValue.charCodeAt(0);\n if (ch >= 97 /* a */ && ch <= 122 /* z */) {\n var keyword = textToKeyword.get(tokenValue);\n if (keyword !== undefined) {\n return token = keyword;\n }\n }\n }\n return token = 79 /* Identifier */;\n }\n function scanBinaryOrOctalDigits(base) {\n var value = \"\";\n // For counting number of digits; Valid binaryIntegerLiteral must have at least one binary digit following B or b.\n // Similarly valid octalIntegerLiteral must have at least one octal digit following o or O.\n var separatorAllowed = false;\n var isPreviousTokenSeparator = false;\n while (true) {\n var ch = text.charCodeAt(pos);\n // Numeric separators are allowed anywhere within a numeric literal, except not at the beginning, or following another separator\n if (ch === 95 /* _ */) {\n tokenFlags |= 512 /* ContainsSeparator */;\n if (separatorAllowed) {\n separatorAllowed = false;\n isPreviousTokenSeparator = true;\n }\n else if (isPreviousTokenSeparator) {\n error(ts.Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);\n }\n else {\n error(ts.Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);\n }\n pos++;\n continue;\n }\n separatorAllowed = true;\n if (!isDigit(ch) || ch - 48 /* _0 */ >= base) {\n break;\n }\n value += text[pos];\n pos++;\n isPreviousTokenSeparator = false;\n }\n if (text.charCodeAt(pos - 1) === 95 /* _ */) {\n // Literal ends with underscore - not allowed\n error(ts.Diagnostics.Numeric_separators_are_not_allowed_here, pos - 1, 1);\n }\n return value;\n }\n function checkBigIntSuffix() {\n if (text.charCodeAt(pos) === 110 /* n */) {\n tokenValue += \"n\";\n // Use base 10 instead of base 2 or base 8 for shorter literals\n if (tokenFlags & 384 /* BinaryOrOctalSpecifier */) {\n tokenValue = ts.parsePseudoBigInt(tokenValue) + \"n\";\n }\n pos++;\n return 9 /* BigIntLiteral */;\n }\n else { // not a bigint, so can convert to number in simplified form\n // Number() may not support 0b or 0o, so use parseInt() instead\n var numericValue = tokenFlags & 128 /* BinarySpecifier */\n ? parseInt(tokenValue.slice(2), 2) // skip \"0b\"\n : tokenFlags & 256 /* OctalSpecifier */\n ? parseInt(tokenValue.slice(2), 8) // skip \"0o\"\n : +tokenValue;\n tokenValue = \"\" + numericValue;\n return 8 /* NumericLiteral */;\n }\n }\n function scan() {\n var _a;\n startPos = pos;\n tokenFlags = 0 /* None */;\n var asteriskSeen = false;\n while (true) {\n tokenPos = pos;\n if (pos >= end) {\n return token = 1 /* EndOfFileToken */;\n }\n var ch = codePointAt(text, pos);\n // Special handling for shebang\n if (ch === 35 /* hash */ && pos === 0 && isShebangTrivia(text, pos)) {\n pos = scanShebangTrivia(text, pos);\n if (skipTrivia) {\n continue;\n }\n else {\n return token = 6 /* ShebangTrivia */;\n }\n }\n switch (ch) {\n case 10 /* lineFeed */:\n case 13 /* carriageReturn */:\n tokenFlags |= 1 /* PrecedingLineBreak */;\n if (skipTrivia) {\n pos++;\n continue;\n }\n else {\n if (ch === 13 /* carriageReturn */ && pos + 1 < end && text.charCodeAt(pos + 1) === 10 /* lineFeed */) {\n // consume both CR and LF\n pos += 2;\n }\n else {\n pos++;\n }\n return token = 4 /* NewLineTrivia */;\n }\n case 9 /* tab */:\n case 11 /* verticalTab */:\n case 12 /* formFeed */:\n case 32 /* space */:\n case 160 /* nonBreakingSpace */:\n case 5760 /* ogham */:\n case 8192 /* enQuad */:\n case 8193 /* emQuad */:\n case 8194 /* enSpace */:\n case 8195 /* emSpace */:\n case 8196 /* threePerEmSpace */:\n case 8197 /* fourPerEmSpace */:\n case 8198 /* sixPerEmSpace */:\n case 8199 /* figureSpace */:\n case 8200 /* punctuationSpace */:\n case 8201 /* thinSpace */:\n case 8202 /* hairSpace */:\n case 8203 /* zeroWidthSpace */:\n case 8239 /* narrowNoBreakSpace */:\n case 8287 /* mathematicalSpace */:\n case 12288 /* ideographicSpace */:\n case 65279 /* byteOrderMark */:\n if (skipTrivia) {\n pos++;\n continue;\n }\n else {\n while (pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos))) {\n pos++;\n }\n return token = 5 /* WhitespaceTrivia */;\n }\n case 33 /* exclamation */:\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 37 /* ExclamationEqualsEqualsToken */;\n }\n return pos += 2, token = 35 /* ExclamationEqualsToken */;\n }\n pos++;\n return token = 53 /* ExclamationToken */;\n case 34 /* doubleQuote */:\n case 39 /* singleQuote */:\n tokenValue = scanString();\n return token = 10 /* StringLiteral */;\n case 96 /* backtick */:\n return token = scanTemplateAndSetTokenValue(/* isTaggedTemplate */ false);\n case 37 /* percent */:\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 69 /* PercentEqualsToken */;\n }\n pos++;\n return token = 44 /* PercentToken */;\n case 38 /* ampersand */:\n if (text.charCodeAt(pos + 1) === 38 /* ampersand */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 76 /* AmpersandAmpersandEqualsToken */;\n }\n return pos += 2, token = 55 /* AmpersandAmpersandToken */;\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 73 /* AmpersandEqualsToken */;\n }\n pos++;\n return token = 50 /* AmpersandToken */;\n case 40 /* openParen */:\n pos++;\n return token = 20 /* OpenParenToken */;\n case 41 /* closeParen */:\n pos++;\n return token = 21 /* CloseParenToken */;\n case 42 /* asterisk */:\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 66 /* AsteriskEqualsToken */;\n }\n if (text.charCodeAt(pos + 1) === 42 /* asterisk */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 67 /* AsteriskAsteriskEqualsToken */;\n }\n return pos += 2, token = 42 /* AsteriskAsteriskToken */;\n }\n pos++;\n if (inJSDocType && !asteriskSeen && (tokenFlags & 1 /* PrecedingLineBreak */)) {\n // decoration at the start of a JSDoc comment line\n asteriskSeen = true;\n continue;\n }\n return token = 41 /* AsteriskToken */;\n case 43 /* plus */:\n if (text.charCodeAt(pos + 1) === 43 /* plus */) {\n return pos += 2, token = 45 /* PlusPlusToken */;\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 64 /* PlusEqualsToken */;\n }\n pos++;\n return token = 39 /* PlusToken */;\n case 44 /* comma */:\n pos++;\n return token = 27 /* CommaToken */;\n case 45 /* minus */:\n if (text.charCodeAt(pos + 1) === 45 /* minus */) {\n return pos += 2, token = 46 /* MinusMinusToken */;\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 65 /* MinusEqualsToken */;\n }\n pos++;\n return token = 40 /* MinusToken */;\n case 46 /* dot */:\n if (isDigit(text.charCodeAt(pos + 1))) {\n tokenValue = scanNumber().value;\n return token = 8 /* NumericLiteral */;\n }\n if (text.charCodeAt(pos + 1) === 46 /* dot */ && text.charCodeAt(pos + 2) === 46 /* dot */) {\n return pos += 3, token = 25 /* DotDotDotToken */;\n }\n pos++;\n return token = 24 /* DotToken */;\n case 47 /* slash */:\n // Single-line comment\n if (text.charCodeAt(pos + 1) === 47 /* slash */) {\n pos += 2;\n while (pos < end) {\n if (isLineBreak(text.charCodeAt(pos))) {\n break;\n }\n pos++;\n }\n commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(tokenPos, pos), commentDirectiveRegExSingleLine, tokenPos);\n if (skipTrivia) {\n continue;\n }\n else {\n return token = 2 /* SingleLineCommentTrivia */;\n }\n }\n // Multi-line comment\n if (text.charCodeAt(pos + 1) === 42 /* asterisk */) {\n pos += 2;\n if (text.charCodeAt(pos) === 42 /* asterisk */ && text.charCodeAt(pos + 1) !== 47 /* slash */) {\n tokenFlags |= 2 /* PrecedingJSDocComment */;\n }\n var commentClosed = false;\n var lastLineStart = tokenPos;\n while (pos < end) {\n var ch_1 = text.charCodeAt(pos);\n if (ch_1 === 42 /* asterisk */ && text.charCodeAt(pos + 1) === 47 /* slash */) {\n pos += 2;\n commentClosed = true;\n break;\n }\n pos++;\n if (isLineBreak(ch_1)) {\n lastLineStart = pos;\n tokenFlags |= 1 /* PrecedingLineBreak */;\n }\n }\n commentDirectives = appendIfCommentDirective(commentDirectives, text.slice(lastLineStart, pos), commentDirectiveRegExMultiLine, lastLineStart);\n if (!commentClosed) {\n error(ts.Diagnostics.Asterisk_Slash_expected);\n }\n if (skipTrivia) {\n continue;\n }\n else {\n if (!commentClosed) {\n tokenFlags |= 4 /* Unterminated */;\n }\n return token = 3 /* MultiLineCommentTrivia */;\n }\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 68 /* SlashEqualsToken */;\n }\n pos++;\n return token = 43 /* SlashToken */;\n case 48 /* _0 */:\n if (pos + 2 < end && (text.charCodeAt(pos + 1) === 88 /* X */ || text.charCodeAt(pos + 1) === 120 /* x */)) {\n pos += 2;\n tokenValue = scanMinimumNumberOfHexDigits(1, /*canHaveSeparators*/ true);\n if (!tokenValue) {\n error(ts.Diagnostics.Hexadecimal_digit_expected);\n tokenValue = \"0\";\n }\n tokenValue = \"0x\" + tokenValue;\n tokenFlags |= 64 /* HexSpecifier */;\n return token = checkBigIntSuffix();\n }\n else if (pos + 2 < end && (text.charCodeAt(pos + 1) === 66 /* B */ || text.charCodeAt(pos + 1) === 98 /* b */)) {\n pos += 2;\n tokenValue = scanBinaryOrOctalDigits(/* base */ 2);\n if (!tokenValue) {\n error(ts.Diagnostics.Binary_digit_expected);\n tokenValue = \"0\";\n }\n tokenValue = \"0b\" + tokenValue;\n tokenFlags |= 128 /* BinarySpecifier */;\n return token = checkBigIntSuffix();\n }\n else if (pos + 2 < end && (text.charCodeAt(pos + 1) === 79 /* O */ || text.charCodeAt(pos + 1) === 111 /* o */)) {\n pos += 2;\n tokenValue = scanBinaryOrOctalDigits(/* base */ 8);\n if (!tokenValue) {\n error(ts.Diagnostics.Octal_digit_expected);\n tokenValue = \"0\";\n }\n tokenValue = \"0o\" + tokenValue;\n tokenFlags |= 256 /* OctalSpecifier */;\n return token = checkBigIntSuffix();\n }\n // Try to parse as an octal\n if (pos + 1 < end && isOctalDigit(text.charCodeAt(pos + 1))) {\n tokenValue = \"\" + scanOctalDigits();\n tokenFlags |= 32 /* Octal */;\n return token = 8 /* NumericLiteral */;\n }\n // This fall-through is a deviation from the EcmaScript grammar. The grammar says that a leading zero\n // can only be followed by an octal digit, a dot, or the end of the number literal. However, we are being\n // permissive and allowing decimal digits of the form 08* and 09* (which many browsers also do).\n // falls through\n case 49 /* _1 */:\n case 50 /* _2 */:\n case 51 /* _3 */:\n case 52 /* _4 */:\n case 53 /* _5 */:\n case 54 /* _6 */:\n case 55 /* _7 */:\n case 56 /* _8 */:\n case 57 /* _9 */:\n (_a = scanNumber(), token = _a.type, tokenValue = _a.value);\n return token;\n case 58 /* colon */:\n pos++;\n return token = 58 /* ColonToken */;\n case 59 /* semicolon */:\n pos++;\n return token = 26 /* SemicolonToken */;\n case 60 /* lessThan */:\n if (isConflictMarkerTrivia(text, pos)) {\n pos = scanConflictMarkerTrivia(text, pos, error);\n if (skipTrivia) {\n continue;\n }\n else {\n return token = 7 /* ConflictMarkerTrivia */;\n }\n }\n if (text.charCodeAt(pos + 1) === 60 /* lessThan */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 70 /* LessThanLessThanEqualsToken */;\n }\n return pos += 2, token = 47 /* LessThanLessThanToken */;\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 32 /* LessThanEqualsToken */;\n }\n if (languageVariant === 1 /* JSX */ &&\n text.charCodeAt(pos + 1) === 47 /* slash */ &&\n text.charCodeAt(pos + 2) !== 42 /* asterisk */) {\n return pos += 2, token = 30 /* LessThanSlashToken */;\n }\n pos++;\n return token = 29 /* LessThanToken */;\n case 61 /* equals */:\n if (isConflictMarkerTrivia(text, pos)) {\n pos = scanConflictMarkerTrivia(text, pos, error);\n if (skipTrivia) {\n continue;\n }\n else {\n return token = 7 /* ConflictMarkerTrivia */;\n }\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 36 /* EqualsEqualsEqualsToken */;\n }\n return pos += 2, token = 34 /* EqualsEqualsToken */;\n }\n if (text.charCodeAt(pos + 1) === 62 /* greaterThan */) {\n return pos += 2, token = 38 /* EqualsGreaterThanToken */;\n }\n pos++;\n return token = 63 /* EqualsToken */;\n case 62 /* greaterThan */:\n if (isConflictMarkerTrivia(text, pos)) {\n pos = scanConflictMarkerTrivia(text, pos, error);\n if (skipTrivia) {\n continue;\n }\n else {\n return token = 7 /* ConflictMarkerTrivia */;\n }\n }\n pos++;\n return token = 31 /* GreaterThanToken */;\n case 63 /* question */:\n if (text.charCodeAt(pos + 1) === 46 /* dot */ && !isDigit(text.charCodeAt(pos + 2))) {\n return pos += 2, token = 28 /* QuestionDotToken */;\n }\n if (text.charCodeAt(pos + 1) === 63 /* question */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 77 /* QuestionQuestionEqualsToken */;\n }\n return pos += 2, token = 60 /* QuestionQuestionToken */;\n }\n pos++;\n return token = 57 /* QuestionToken */;\n case 91 /* openBracket */:\n pos++;\n return token = 22 /* OpenBracketToken */;\n case 93 /* closeBracket */:\n pos++;\n return token = 23 /* CloseBracketToken */;\n case 94 /* caret */:\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 78 /* CaretEqualsToken */;\n }\n pos++;\n return token = 52 /* CaretToken */;\n case 123 /* openBrace */:\n pos++;\n return token = 18 /* OpenBraceToken */;\n case 124 /* bar */:\n if (isConflictMarkerTrivia(text, pos)) {\n pos = scanConflictMarkerTrivia(text, pos, error);\n if (skipTrivia) {\n continue;\n }\n else {\n return token = 7 /* ConflictMarkerTrivia */;\n }\n }\n if (text.charCodeAt(pos + 1) === 124 /* bar */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 75 /* BarBarEqualsToken */;\n }\n return pos += 2, token = 56 /* BarBarToken */;\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 74 /* BarEqualsToken */;\n }\n pos++;\n return token = 51 /* BarToken */;\n case 125 /* closeBrace */:\n pos++;\n return token = 19 /* CloseBraceToken */;\n case 126 /* tilde */:\n pos++;\n return token = 54 /* TildeToken */;\n case 64 /* at */:\n pos++;\n return token = 59 /* AtToken */;\n case 92 /* backslash */:\n var extendedCookedChar = peekExtendedUnicodeEscape();\n if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) {\n pos += 3;\n tokenFlags |= 8 /* ExtendedUnicodeEscape */;\n tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts();\n return token = getIdentifierToken();\n }\n var cookedChar = peekUnicodeEscape();\n if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) {\n pos += 6;\n tokenFlags |= 1024 /* UnicodeEscape */;\n tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts();\n return token = getIdentifierToken();\n }\n error(ts.Diagnostics.Invalid_character);\n pos++;\n return token = 0 /* Unknown */;\n case 35 /* hash */:\n if (pos !== 0 && text[pos + 1] === \"!\") {\n error(ts.Diagnostics.can_only_be_used_at_the_start_of_a_file);\n pos++;\n return token = 0 /* Unknown */;\n }\n if (isIdentifierStart(codePointAt(text, pos + 1), languageVersion)) {\n pos++;\n scanIdentifier(codePointAt(text, pos), languageVersion);\n }\n else {\n tokenValue = String.fromCharCode(codePointAt(text, pos));\n error(ts.Diagnostics.Invalid_character, pos++, charSize(ch));\n }\n return token = 80 /* PrivateIdentifier */;\n default:\n var identifierKind = scanIdentifier(ch, languageVersion);\n if (identifierKind) {\n return token = identifierKind;\n }\n else if (isWhiteSpaceSingleLine(ch)) {\n pos += charSize(ch);\n continue;\n }\n else if (isLineBreak(ch)) {\n tokenFlags |= 1 /* PrecedingLineBreak */;\n pos += charSize(ch);\n continue;\n }\n var size = charSize(ch);\n error(ts.Diagnostics.Invalid_character, pos, size);\n pos += size;\n return token = 0 /* Unknown */;\n }\n }\n }\n function reScanInvalidIdentifier() {\n ts.Debug.assert(token === 0 /* Unknown */, \"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'.\");\n pos = tokenPos = startPos;\n tokenFlags = 0;\n var ch = codePointAt(text, pos);\n var identifierKind = scanIdentifier(ch, 99 /* ESNext */);\n if (identifierKind) {\n return token = identifierKind;\n }\n pos += charSize(ch);\n return token; // Still `SyntaKind.Unknown`\n }\n function scanIdentifier(startCharacter, languageVersion) {\n var ch = startCharacter;\n if (isIdentifierStart(ch, languageVersion)) {\n pos += charSize(ch);\n while (pos < end && isIdentifierPart(ch = codePointAt(text, pos), languageVersion))\n pos += charSize(ch);\n tokenValue = text.substring(tokenPos, pos);\n if (ch === 92 /* backslash */) {\n tokenValue += scanIdentifierParts();\n }\n return getIdentifierToken();\n }\n }\n function reScanGreaterToken() {\n if (token === 31 /* GreaterThanToken */) {\n if (text.charCodeAt(pos) === 62 /* greaterThan */) {\n if (text.charCodeAt(pos + 1) === 62 /* greaterThan */) {\n if (text.charCodeAt(pos + 2) === 61 /* equals */) {\n return pos += 3, token = 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */;\n }\n return pos += 2, token = 49 /* GreaterThanGreaterThanGreaterThanToken */;\n }\n if (text.charCodeAt(pos + 1) === 61 /* equals */) {\n return pos += 2, token = 71 /* GreaterThanGreaterThanEqualsToken */;\n }\n pos++;\n return token = 48 /* GreaterThanGreaterThanToken */;\n }\n if (text.charCodeAt(pos) === 61 /* equals */) {\n pos++;\n return token = 33 /* GreaterThanEqualsToken */;\n }\n }\n return token;\n }\n function reScanAsteriskEqualsToken() {\n ts.Debug.assert(token === 66 /* AsteriskEqualsToken */, \"'reScanAsteriskEqualsToken' should only be called on a '*='\");\n pos = tokenPos + 1;\n return token = 63 /* EqualsToken */;\n }\n function reScanSlashToken() {\n if (token === 43 /* SlashToken */ || token === 68 /* SlashEqualsToken */) {\n var p = tokenPos + 1;\n var inEscape = false;\n var inCharacterClass = false;\n while (true) {\n // If we reach the end of a file, or hit a newline, then this is an unterminated\n // regex. Report error and return what we have so far.\n if (p >= end) {\n tokenFlags |= 4 /* Unterminated */;\n error(ts.Diagnostics.Unterminated_regular_expression_literal);\n break;\n }\n var ch = text.charCodeAt(p);\n if (isLineBreak(ch)) {\n tokenFlags |= 4 /* Unterminated */;\n error(ts.Diagnostics.Unterminated_regular_expression_literal);\n break;\n }\n if (inEscape) {\n // Parsing an escape character;\n // reset the flag and just advance to the next char.\n inEscape = false;\n }\n else if (ch === 47 /* slash */ && !inCharacterClass) {\n // A slash within a character class is permissible,\n // but in general it signals the end of the regexp literal.\n p++;\n break;\n }\n else if (ch === 91 /* openBracket */) {\n inCharacterClass = true;\n }\n else if (ch === 92 /* backslash */) {\n inEscape = true;\n }\n else if (ch === 93 /* closeBracket */) {\n inCharacterClass = false;\n }\n p++;\n }\n while (p < end && isIdentifierPart(text.charCodeAt(p), languageVersion)) {\n p++;\n }\n pos = p;\n tokenValue = text.substring(tokenPos, pos);\n token = 13 /* RegularExpressionLiteral */;\n }\n return token;\n }\n function appendIfCommentDirective(commentDirectives, text, commentDirectiveRegEx, lineStart) {\n var type = getDirectiveFromComment(ts.trimStringStart(text), commentDirectiveRegEx);\n if (type === undefined) {\n return commentDirectives;\n }\n return ts.append(commentDirectives, {\n range: { pos: lineStart, end: pos },\n type: type,\n });\n }\n function getDirectiveFromComment(text, commentDirectiveRegEx) {\n var match = commentDirectiveRegEx.exec(text);\n if (!match) {\n return undefined;\n }\n switch (match[1]) {\n case \"ts-expect-error\":\n return 0 /* ExpectError */;\n case \"ts-ignore\":\n return 1 /* Ignore */;\n }\n return undefined;\n }\n /**\n * Unconditionally back up and scan a template expression portion.\n */\n function reScanTemplateToken(isTaggedTemplate) {\n ts.Debug.assert(token === 19 /* CloseBraceToken */, \"'reScanTemplateToken' should only be called on a '}'\");\n pos = tokenPos;\n return token = scanTemplateAndSetTokenValue(isTaggedTemplate);\n }\n function reScanTemplateHeadOrNoSubstitutionTemplate() {\n pos = tokenPos;\n return token = scanTemplateAndSetTokenValue(/* isTaggedTemplate */ true);\n }\n function reScanJsxToken(allowMultilineJsxText) {\n if (allowMultilineJsxText === void 0) { allowMultilineJsxText = true; }\n pos = tokenPos = startPos;\n return token = scanJsxToken(allowMultilineJsxText);\n }\n function reScanLessThanToken() {\n if (token === 47 /* LessThanLessThanToken */) {\n pos = tokenPos + 1;\n return token = 29 /* LessThanToken */;\n }\n return token;\n }\n function reScanHashToken() {\n if (token === 80 /* PrivateIdentifier */) {\n pos = tokenPos + 1;\n return token = 62 /* HashToken */;\n }\n return token;\n }\n function reScanQuestionToken() {\n ts.Debug.assert(token === 60 /* QuestionQuestionToken */, \"'reScanQuestionToken' should only be called on a '??'\");\n pos = tokenPos + 1;\n return token = 57 /* QuestionToken */;\n }\n function scanJsxToken(allowMultilineJsxText) {\n if (allowMultilineJsxText === void 0) { allowMultilineJsxText = true; }\n startPos = tokenPos = pos;\n if (pos >= end) {\n return token = 1 /* EndOfFileToken */;\n }\n var char = text.charCodeAt(pos);\n if (char === 60 /* lessThan */) {\n if (text.charCodeAt(pos + 1) === 47 /* slash */) {\n pos += 2;\n return token = 30 /* LessThanSlashToken */;\n }\n pos++;\n return token = 29 /* LessThanToken */;\n }\n if (char === 123 /* openBrace */) {\n pos++;\n return token = 18 /* OpenBraceToken */;\n }\n // First non-whitespace character on this line.\n var firstNonWhitespace = 0;\n // These initial values are special because the first line is:\n // firstNonWhitespace = 0 to indicate that we want leading whitespace,\n while (pos < end) {\n char = text.charCodeAt(pos);\n if (char === 123 /* openBrace */) {\n break;\n }\n if (char === 60 /* lessThan */) {\n if (isConflictMarkerTrivia(text, pos)) {\n pos = scanConflictMarkerTrivia(text, pos, error);\n return token = 7 /* ConflictMarkerTrivia */;\n }\n break;\n }\n if (char === 62 /* greaterThan */) {\n error(ts.Diagnostics.Unexpected_token_Did_you_mean_or_gt, pos, 1);\n }\n if (char === 125 /* closeBrace */) {\n error(ts.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace, pos, 1);\n }\n // FirstNonWhitespace is 0, then we only see whitespaces so far. If we see a linebreak, we want to ignore that whitespaces.\n // i.e (- : whitespace)\n //
----\n //
becomes
\n //\n //
----
becomes
----
\n if (isLineBreak(char) && firstNonWhitespace === 0) {\n firstNonWhitespace = -1;\n }\n else if (!allowMultilineJsxText && isLineBreak(char) && firstNonWhitespace > 0) {\n // Stop JsxText on each line during formatting. This allows the formatter to\n // indent each line correctly.\n break;\n }\n else if (!isWhiteSpaceLike(char)) {\n firstNonWhitespace = pos;\n }\n pos++;\n }\n tokenValue = text.substring(startPos, pos);\n return firstNonWhitespace === -1 ? 12 /* JsxTextAllWhiteSpaces */ : 11 /* JsxText */;\n }\n // Scans a JSX identifier; these differ from normal identifiers in that\n // they allow dashes\n function scanJsxIdentifier() {\n if (tokenIsIdentifierOrKeyword(token)) {\n // An identifier or keyword has already been parsed - check for a `-` or a single instance of `:` and then append it and\n // everything after it to the token\n // Do note that this means that `scanJsxIdentifier` effectively _mutates_ the visible token without advancing to a new token\n // Any caller should be expecting this behavior and should only read the pos or token value after calling it.\n var namespaceSeparator = false;\n while (pos < end) {\n var ch = text.charCodeAt(pos);\n if (ch === 45 /* minus */) {\n tokenValue += \"-\";\n pos++;\n continue;\n }\n else if (ch === 58 /* colon */ && !namespaceSeparator) {\n tokenValue += \":\";\n pos++;\n namespaceSeparator = true;\n token = 79 /* Identifier */; // swap from keyword kind to identifier kind\n continue;\n }\n var oldPos = pos;\n tokenValue += scanIdentifierParts(); // reuse `scanIdentifierParts` so unicode escapes are handled\n if (pos === oldPos) {\n break;\n }\n }\n // Do not include a trailing namespace separator in the token, since this is against the spec.\n if (tokenValue.slice(-1) === \":\") {\n tokenValue = tokenValue.slice(0, -1);\n pos--;\n }\n }\n return token;\n }\n function scanJsxAttributeValue() {\n startPos = pos;\n switch (text.charCodeAt(pos)) {\n case 34 /* doubleQuote */:\n case 39 /* singleQuote */:\n tokenValue = scanString(/*jsxAttributeString*/ true);\n return token = 10 /* StringLiteral */;\n default:\n // If this scans anything other than `{`, it's a parse error.\n return scan();\n }\n }\n function reScanJsxAttributeValue() {\n pos = tokenPos = startPos;\n return scanJsxAttributeValue();\n }\n function scanJsDocToken() {\n startPos = tokenPos = pos;\n tokenFlags = 0 /* None */;\n if (pos >= end) {\n return token = 1 /* EndOfFileToken */;\n }\n var ch = codePointAt(text, pos);\n pos += charSize(ch);\n switch (ch) {\n case 9 /* tab */:\n case 11 /* verticalTab */:\n case 12 /* formFeed */:\n case 32 /* space */:\n while (pos < end && isWhiteSpaceSingleLine(text.charCodeAt(pos))) {\n pos++;\n }\n return token = 5 /* WhitespaceTrivia */;\n case 64 /* at */:\n return token = 59 /* AtToken */;\n case 13 /* carriageReturn */:\n if (text.charCodeAt(pos) === 10 /* lineFeed */) {\n pos++;\n }\n // falls through\n case 10 /* lineFeed */:\n tokenFlags |= 1 /* PrecedingLineBreak */;\n return token = 4 /* NewLineTrivia */;\n case 42 /* asterisk */:\n return token = 41 /* AsteriskToken */;\n case 123 /* openBrace */:\n return token = 18 /* OpenBraceToken */;\n case 125 /* closeBrace */:\n return token = 19 /* CloseBraceToken */;\n case 91 /* openBracket */:\n return token = 22 /* OpenBracketToken */;\n case 93 /* closeBracket */:\n return token = 23 /* CloseBracketToken */;\n case 60 /* lessThan */:\n return token = 29 /* LessThanToken */;\n case 62 /* greaterThan */:\n return token = 31 /* GreaterThanToken */;\n case 61 /* equals */:\n return token = 63 /* EqualsToken */;\n case 44 /* comma */:\n return token = 27 /* CommaToken */;\n case 46 /* dot */:\n return token = 24 /* DotToken */;\n case 96 /* backtick */:\n return token = 61 /* BacktickToken */;\n case 35 /* hash */:\n return token = 62 /* HashToken */;\n case 92 /* backslash */:\n pos--;\n var extendedCookedChar = peekExtendedUnicodeEscape();\n if (extendedCookedChar >= 0 && isIdentifierStart(extendedCookedChar, languageVersion)) {\n pos += 3;\n tokenFlags |= 8 /* ExtendedUnicodeEscape */;\n tokenValue = scanExtendedUnicodeEscape() + scanIdentifierParts();\n return token = getIdentifierToken();\n }\n var cookedChar = peekUnicodeEscape();\n if (cookedChar >= 0 && isIdentifierStart(cookedChar, languageVersion)) {\n pos += 6;\n tokenFlags |= 1024 /* UnicodeEscape */;\n tokenValue = String.fromCharCode(cookedChar) + scanIdentifierParts();\n return token = getIdentifierToken();\n }\n pos++;\n return token = 0 /* Unknown */;\n }\n if (isIdentifierStart(ch, languageVersion)) {\n var char = ch;\n while (pos < end && isIdentifierPart(char = codePointAt(text, pos), languageVersion) || text.charCodeAt(pos) === 45 /* minus */)\n pos += charSize(char);\n tokenValue = text.substring(tokenPos, pos);\n if (char === 92 /* backslash */) {\n tokenValue += scanIdentifierParts();\n }\n return token = getIdentifierToken();\n }\n else {\n return token = 0 /* Unknown */;\n }\n }\n function speculationHelper(callback, isLookahead) {\n var savePos = pos;\n var saveStartPos = startPos;\n var saveTokenPos = tokenPos;\n var saveToken = token;\n var saveTokenValue = tokenValue;\n var saveTokenFlags = tokenFlags;\n var result = callback();\n // If our callback returned something 'falsy' or we're just looking ahead,\n // then unconditionally restore us to where we were.\n if (!result || isLookahead) {\n pos = savePos;\n startPos = saveStartPos;\n tokenPos = saveTokenPos;\n token = saveToken;\n tokenValue = saveTokenValue;\n tokenFlags = saveTokenFlags;\n }\n return result;\n }\n function scanRange(start, length, callback) {\n var saveEnd = end;\n var savePos = pos;\n var saveStartPos = startPos;\n var saveTokenPos = tokenPos;\n var saveToken = token;\n var saveTokenValue = tokenValue;\n var saveTokenFlags = tokenFlags;\n var saveErrorExpectations = commentDirectives;\n setText(text, start, length);\n var result = callback();\n end = saveEnd;\n pos = savePos;\n startPos = saveStartPos;\n tokenPos = saveTokenPos;\n token = saveToken;\n tokenValue = saveTokenValue;\n tokenFlags = saveTokenFlags;\n commentDirectives = saveErrorExpectations;\n return result;\n }\n function lookAhead(callback) {\n return speculationHelper(callback, /*isLookahead*/ true);\n }\n function tryScan(callback) {\n return speculationHelper(callback, /*isLookahead*/ false);\n }\n function getText() {\n return text;\n }\n function clearCommentDirectives() {\n commentDirectives = undefined;\n }\n function setText(newText, start, length) {\n text = newText || \"\";\n end = length === undefined ? text.length : start + length;\n setTextPos(start || 0);\n }\n function setOnError(errorCallback) {\n onError = errorCallback;\n }\n function setScriptTarget(scriptTarget) {\n languageVersion = scriptTarget;\n }\n function setLanguageVariant(variant) {\n languageVariant = variant;\n }\n function setTextPos(textPos) {\n ts.Debug.assert(textPos >= 0);\n pos = textPos;\n startPos = textPos;\n tokenPos = textPos;\n token = 0 /* Unknown */;\n tokenValue = undefined;\n tokenFlags = 0 /* None */;\n }\n function setInJSDocType(inType) {\n inJSDocType += inType ? 1 : -1;\n }\n }\n ts.createScanner = createScanner;\n /* @internal */\n var codePointAt = String.prototype.codePointAt ? function (s, i) { return s.codePointAt(i); } : function codePointAt(str, i) {\n // from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/codePointAt\n var size = str.length;\n // Account for out-of-bounds indices:\n if (i < 0 || i >= size) {\n return undefined; // String.codePointAt returns `undefined` for OOB indexes\n }\n // Get the first code unit\n var first = str.charCodeAt(i);\n // check if it’s the start of a surrogate pair\n if (first >= 0xD800 && first <= 0xDBFF && size > i + 1) { // high surrogate and there is a next code unit\n var second = str.charCodeAt(i + 1);\n if (second >= 0xDC00 && second <= 0xDFFF) { // low surrogate\n // https://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae\n return (first - 0xD800) * 0x400 + second - 0xDC00 + 0x10000;\n }\n }\n return first;\n };\n /* @internal */\n function charSize(ch) {\n if (ch >= 0x10000) {\n return 2;\n }\n return 1;\n }\n // Derived from the 10.1.1 UTF16Encoding of the ES6 Spec.\n function utf16EncodeAsStringFallback(codePoint) {\n ts.Debug.assert(0x0 <= codePoint && codePoint <= 0x10FFFF);\n if (codePoint <= 65535) {\n return String.fromCharCode(codePoint);\n }\n var codeUnit1 = Math.floor((codePoint - 65536) / 1024) + 0xD800;\n var codeUnit2 = ((codePoint - 65536) % 1024) + 0xDC00;\n return String.fromCharCode(codeUnit1, codeUnit2);\n }\n var utf16EncodeAsStringWorker = String.fromCodePoint ? function (codePoint) { return String.fromCodePoint(codePoint); } : utf16EncodeAsStringFallback;\n /* @internal */\n function utf16EncodeAsString(codePoint) {\n return utf16EncodeAsStringWorker(codePoint);\n }\n ts.utf16EncodeAsString = utf16EncodeAsString;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function isExternalModuleNameRelative(moduleName) {\n // TypeScript 1.0 spec (April 2014): 11.2.1\n // An external module name is \"relative\" if the first term is \".\" or \"..\".\n // Update: We also consider a path like `C:\\foo.ts` \"relative\" because we do not search for it in `node_modules` or treat it as an ambient module.\n return ts.pathIsRelative(moduleName) || ts.isRootedDiskPath(moduleName);\n }\n ts.isExternalModuleNameRelative = isExternalModuleNameRelative;\n function sortAndDeduplicateDiagnostics(diagnostics) {\n return ts.sortAndDeduplicate(diagnostics, ts.compareDiagnostics);\n }\n ts.sortAndDeduplicateDiagnostics = sortAndDeduplicateDiagnostics;\n function getDefaultLibFileName(options) {\n switch (options.target) {\n case 99 /* ESNext */:\n return \"lib.esnext.full.d.ts\";\n case 8 /* ES2021 */:\n return \"lib.es2021.full.d.ts\";\n case 7 /* ES2020 */:\n return \"lib.es2020.full.d.ts\";\n case 6 /* ES2019 */:\n return \"lib.es2019.full.d.ts\";\n case 5 /* ES2018 */:\n return \"lib.es2018.full.d.ts\";\n case 4 /* ES2017 */:\n return \"lib.es2017.full.d.ts\";\n case 3 /* ES2016 */:\n return \"lib.es2016.full.d.ts\";\n case 2 /* ES2015 */:\n return \"lib.es6.d.ts\"; // We don't use lib.es2015.full.d.ts due to breaking change.\n default:\n return \"lib.d.ts\";\n }\n }\n ts.getDefaultLibFileName = getDefaultLibFileName;\n function textSpanEnd(span) {\n return span.start + span.length;\n }\n ts.textSpanEnd = textSpanEnd;\n function textSpanIsEmpty(span) {\n return span.length === 0;\n }\n ts.textSpanIsEmpty = textSpanIsEmpty;\n function textSpanContainsPosition(span, position) {\n return position >= span.start && position < textSpanEnd(span);\n }\n ts.textSpanContainsPosition = textSpanContainsPosition;\n /* @internal */\n function textRangeContainsPositionInclusive(span, position) {\n return position >= span.pos && position <= span.end;\n }\n ts.textRangeContainsPositionInclusive = textRangeContainsPositionInclusive;\n // Returns true if 'span' contains 'other'.\n function textSpanContainsTextSpan(span, other) {\n return other.start >= span.start && textSpanEnd(other) <= textSpanEnd(span);\n }\n ts.textSpanContainsTextSpan = textSpanContainsTextSpan;\n function textSpanOverlapsWith(span, other) {\n return textSpanOverlap(span, other) !== undefined;\n }\n ts.textSpanOverlapsWith = textSpanOverlapsWith;\n function textSpanOverlap(span1, span2) {\n var overlap = textSpanIntersection(span1, span2);\n return overlap && overlap.length === 0 ? undefined : overlap;\n }\n ts.textSpanOverlap = textSpanOverlap;\n function textSpanIntersectsWithTextSpan(span, other) {\n return decodedTextSpanIntersectsWith(span.start, span.length, other.start, other.length);\n }\n ts.textSpanIntersectsWithTextSpan = textSpanIntersectsWithTextSpan;\n function textSpanIntersectsWith(span, start, length) {\n return decodedTextSpanIntersectsWith(span.start, span.length, start, length);\n }\n ts.textSpanIntersectsWith = textSpanIntersectsWith;\n function decodedTextSpanIntersectsWith(start1, length1, start2, length2) {\n var end1 = start1 + length1;\n var end2 = start2 + length2;\n return start2 <= end1 && end2 >= start1;\n }\n ts.decodedTextSpanIntersectsWith = decodedTextSpanIntersectsWith;\n function textSpanIntersectsWithPosition(span, position) {\n return position <= textSpanEnd(span) && position >= span.start;\n }\n ts.textSpanIntersectsWithPosition = textSpanIntersectsWithPosition;\n function textSpanIntersection(span1, span2) {\n var start = Math.max(span1.start, span2.start);\n var end = Math.min(textSpanEnd(span1), textSpanEnd(span2));\n return start <= end ? createTextSpanFromBounds(start, end) : undefined;\n }\n ts.textSpanIntersection = textSpanIntersection;\n function createTextSpan(start, length) {\n if (start < 0) {\n throw new Error(\"start < 0\");\n }\n if (length < 0) {\n throw new Error(\"length < 0\");\n }\n return { start: start, length: length };\n }\n ts.createTextSpan = createTextSpan;\n function createTextSpanFromBounds(start, end) {\n return createTextSpan(start, end - start);\n }\n ts.createTextSpanFromBounds = createTextSpanFromBounds;\n function textChangeRangeNewSpan(range) {\n return createTextSpan(range.span.start, range.newLength);\n }\n ts.textChangeRangeNewSpan = textChangeRangeNewSpan;\n function textChangeRangeIsUnchanged(range) {\n return textSpanIsEmpty(range.span) && range.newLength === 0;\n }\n ts.textChangeRangeIsUnchanged = textChangeRangeIsUnchanged;\n function createTextChangeRange(span, newLength) {\n if (newLength < 0) {\n throw new Error(\"newLength < 0\");\n }\n return { span: span, newLength: newLength };\n }\n ts.createTextChangeRange = createTextChangeRange;\n ts.unchangedTextChangeRange = createTextChangeRange(createTextSpan(0, 0), 0); // eslint-disable-line prefer-const\n /**\n * Called to merge all the changes that occurred across several versions of a script snapshot\n * into a single change. i.e. if a user keeps making successive edits to a script we will\n * have a text change from V1 to V2, V2 to V3, ..., Vn.\n *\n * This function will then merge those changes into a single change range valid between V1 and\n * Vn.\n */\n function collapseTextChangeRangesAcrossMultipleVersions(changes) {\n if (changes.length === 0) {\n return ts.unchangedTextChangeRange;\n }\n if (changes.length === 1) {\n return changes[0];\n }\n // We change from talking about { { oldStart, oldLength }, newLength } to { oldStart, oldEnd, newEnd }\n // as it makes things much easier to reason about.\n var change0 = changes[0];\n var oldStartN = change0.span.start;\n var oldEndN = textSpanEnd(change0.span);\n var newEndN = oldStartN + change0.newLength;\n for (var i = 1; i < changes.length; i++) {\n var nextChange = changes[i];\n // Consider the following case:\n // i.e. two edits. The first represents the text change range { { 10, 50 }, 30 }. i.e. The span starting\n // at 10, with length 50 is reduced to length 30. The second represents the text change range { { 30, 30 }, 40 }.\n // i.e. the span starting at 30 with length 30 is increased to length 40.\n //\n // 0 10 20 30 40 50 60 70 80 90 100\n // -------------------------------------------------------------------------------------------------------\n // | /\n // | /----\n // T1 | /----\n // | /----\n // | /----\n // -------------------------------------------------------------------------------------------------------\n // | \\\n // | \\\n // T2 | \\\n // | \\\n // | \\\n // -------------------------------------------------------------------------------------------------------\n //\n // Merging these turns out to not be too difficult. First, determining the new start of the change is trivial\n // it's just the min of the old and new starts. i.e.:\n //\n // 0 10 20 30 40 50 60 70 80 90 100\n // ------------------------------------------------------------*------------------------------------------\n // | /\n // | /----\n // T1 | /----\n // | /----\n // | /----\n // ----------------------------------------$-------------------$------------------------------------------\n // . | \\\n // . | \\\n // T2 . | \\\n // . | \\\n // . | \\\n // ----------------------------------------------------------------------*--------------------------------\n //\n // (Note the dots represent the newly inferred start.\n // Determining the new and old end is also pretty simple. Basically it boils down to paying attention to the\n // absolute positions at the asterisks, and the relative change between the dollar signs. Basically, we see\n // which if the two $'s precedes the other, and we move that one forward until they line up. in this case that\n // means:\n //\n // 0 10 20 30 40 50 60 70 80 90 100\n // --------------------------------------------------------------------------------*----------------------\n // | /\n // | /----\n // T1 | /----\n // | /----\n // | /----\n // ------------------------------------------------------------$------------------------------------------\n // . | \\\n // . | \\\n // T2 . | \\\n // . | \\\n // . | \\\n // ----------------------------------------------------------------------*--------------------------------\n //\n // In other words (in this case), we're recognizing that the second edit happened after where the first edit\n // ended with a delta of 20 characters (60 - 40). Thus, if we go back in time to where the first edit started\n // that's the same as if we started at char 80 instead of 60.\n //\n // As it so happens, the same logic applies if the second edit precedes the first edit. In that case rather\n // than pushing the first edit forward to match the second, we'll push the second edit forward to match the\n // first.\n //\n // In this case that means we have { oldStart: 10, oldEnd: 80, newEnd: 70 } or, in TextChangeRange\n // semantics: { { start: 10, length: 70 }, newLength: 60 }\n //\n // The math then works out as follows.\n // If we have { oldStart1, oldEnd1, newEnd1 } and { oldStart2, oldEnd2, newEnd2 } then we can compute the\n // final result like so:\n //\n // {\n // oldStart3: Min(oldStart1, oldStart2),\n // oldEnd3: Max(oldEnd1, oldEnd1 + (oldEnd2 - newEnd1)),\n // newEnd3: Max(newEnd2, newEnd2 + (newEnd1 - oldEnd2))\n // }\n var oldStart1 = oldStartN;\n var oldEnd1 = oldEndN;\n var newEnd1 = newEndN;\n var oldStart2 = nextChange.span.start;\n var oldEnd2 = textSpanEnd(nextChange.span);\n var newEnd2 = oldStart2 + nextChange.newLength;\n oldStartN = Math.min(oldStart1, oldStart2);\n oldEndN = Math.max(oldEnd1, oldEnd1 + (oldEnd2 - newEnd1));\n newEndN = Math.max(newEnd2, newEnd2 + (newEnd1 - oldEnd2));\n }\n return createTextChangeRange(createTextSpanFromBounds(oldStartN, oldEndN), /*newLength*/ newEndN - oldStartN);\n }\n ts.collapseTextChangeRangesAcrossMultipleVersions = collapseTextChangeRangesAcrossMultipleVersions;\n function getTypeParameterOwner(d) {\n if (d && d.kind === 161 /* TypeParameter */) {\n for (var current = d; current; current = current.parent) {\n if (isFunctionLike(current) || isClassLike(current) || current.kind === 256 /* InterfaceDeclaration */) {\n return current;\n }\n }\n }\n }\n ts.getTypeParameterOwner = getTypeParameterOwner;\n function isParameterPropertyDeclaration(node, parent) {\n return ts.hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) && parent.kind === 169 /* Constructor */;\n }\n ts.isParameterPropertyDeclaration = isParameterPropertyDeclaration;\n function isEmptyBindingPattern(node) {\n if (isBindingPattern(node)) {\n return ts.every(node.elements, isEmptyBindingElement);\n }\n return false;\n }\n ts.isEmptyBindingPattern = isEmptyBindingPattern;\n function isEmptyBindingElement(node) {\n if (ts.isOmittedExpression(node)) {\n return true;\n }\n return isEmptyBindingPattern(node.name);\n }\n ts.isEmptyBindingElement = isEmptyBindingElement;\n function walkUpBindingElementsAndPatterns(binding) {\n var node = binding.parent;\n while (ts.isBindingElement(node.parent)) {\n node = node.parent.parent;\n }\n return node.parent;\n }\n ts.walkUpBindingElementsAndPatterns = walkUpBindingElementsAndPatterns;\n function getCombinedFlags(node, getFlags) {\n if (ts.isBindingElement(node)) {\n node = walkUpBindingElementsAndPatterns(node);\n }\n var flags = getFlags(node);\n if (node.kind === 252 /* VariableDeclaration */) {\n node = node.parent;\n }\n if (node && node.kind === 253 /* VariableDeclarationList */) {\n flags |= getFlags(node);\n node = node.parent;\n }\n if (node && node.kind === 235 /* VariableStatement */) {\n flags |= getFlags(node);\n }\n return flags;\n }\n function getCombinedModifierFlags(node) {\n return getCombinedFlags(node, ts.getEffectiveModifierFlags);\n }\n ts.getCombinedModifierFlags = getCombinedModifierFlags;\n /* @internal */\n function getCombinedNodeFlagsAlwaysIncludeJSDoc(node) {\n return getCombinedFlags(node, ts.getEffectiveModifierFlagsAlwaysIncludeJSDoc);\n }\n ts.getCombinedNodeFlagsAlwaysIncludeJSDoc = getCombinedNodeFlagsAlwaysIncludeJSDoc;\n // Returns the node flags for this node and all relevant parent nodes. This is done so that\n // nodes like variable declarations and binding elements can returned a view of their flags\n // that includes the modifiers from their container. i.e. flags like export/declare aren't\n // stored on the variable declaration directly, but on the containing variable statement\n // (if it has one). Similarly, flags for let/const are stored on the variable declaration\n // list. By calling this function, all those flags are combined so that the client can treat\n // the node as if it actually had those flags.\n function getCombinedNodeFlags(node) {\n return getCombinedFlags(node, function (n) { return n.flags; });\n }\n ts.getCombinedNodeFlags = getCombinedNodeFlags;\n /* @internal */\n ts.supportedLocaleDirectories = [\"cs\", \"de\", \"es\", \"fr\", \"it\", \"ja\", \"ko\", \"pl\", \"pt-br\", \"ru\", \"tr\", \"zh-cn\", \"zh-tw\"];\n /**\n * Checks to see if the locale is in the appropriate format,\n * and if it is, attempts to set the appropriate language.\n */\n function validateLocaleAndSetLanguage(locale, sys, errors) {\n var lowerCaseLocale = locale.toLowerCase();\n var matchResult = /^([a-z]+)([_\\-]([a-z]+))?$/.exec(lowerCaseLocale);\n if (!matchResult) {\n if (errors) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Locale_must_be_of_the_form_language_or_language_territory_For_example_0_or_1, \"en\", \"ja-jp\"));\n }\n return;\n }\n var language = matchResult[1];\n var territory = matchResult[3];\n // First try the entire locale, then fall back to just language if that's all we have.\n // Either ways do not fail, and fallback to the English diagnostic strings.\n if (ts.contains(ts.supportedLocaleDirectories, lowerCaseLocale) && !trySetLanguageAndTerritory(language, territory, errors)) {\n trySetLanguageAndTerritory(language, /*territory*/ undefined, errors);\n }\n // Set the UI locale for string collation\n ts.setUILocale(locale);\n function trySetLanguageAndTerritory(language, territory, errors) {\n var compilerFilePath = ts.normalizePath(sys.getExecutingFilePath());\n var containingDirectoryPath = ts.getDirectoryPath(compilerFilePath);\n var filePath = ts.combinePaths(containingDirectoryPath, language);\n if (territory) {\n filePath = filePath + \"-\" + territory;\n }\n filePath = sys.resolvePath(ts.combinePaths(filePath, \"diagnosticMessages.generated.json\"));\n if (!sys.fileExists(filePath)) {\n return false;\n }\n // TODO: Add codePage support for readFile?\n var fileContents = \"\";\n try {\n fileContents = sys.readFile(filePath);\n }\n catch (e) {\n if (errors) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Unable_to_open_file_0, filePath));\n }\n return false;\n }\n try {\n // this is a global mutation (or live binding update)!\n ts.setLocalizedDiagnosticMessages(JSON.parse(fileContents));\n }\n catch (_a) {\n if (errors) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Corrupted_locale_file_0, filePath));\n }\n return false;\n }\n return true;\n }\n }\n ts.validateLocaleAndSetLanguage = validateLocaleAndSetLanguage;\n function getOriginalNode(node, nodeTest) {\n if (node) {\n while (node.original !== undefined) {\n node = node.original;\n }\n }\n return !nodeTest || nodeTest(node) ? node : undefined;\n }\n ts.getOriginalNode = getOriginalNode;\n function findAncestor(node, callback) {\n while (node) {\n var result = callback(node);\n if (result === \"quit\") {\n return undefined;\n }\n else if (result) {\n return node;\n }\n node = node.parent;\n }\n return undefined;\n }\n ts.findAncestor = findAncestor;\n /**\n * Gets a value indicating whether a node originated in the parse tree.\n *\n * @param node The node to test.\n */\n function isParseTreeNode(node) {\n return (node.flags & 8 /* Synthesized */) === 0;\n }\n ts.isParseTreeNode = isParseTreeNode;\n function getParseTreeNode(node, nodeTest) {\n if (node === undefined || isParseTreeNode(node)) {\n return node;\n }\n node = node.original;\n while (node) {\n if (isParseTreeNode(node)) {\n return !nodeTest || nodeTest(node) ? node : undefined;\n }\n node = node.original;\n }\n }\n ts.getParseTreeNode = getParseTreeNode;\n /** Add an extra underscore to identifiers that start with two underscores to avoid issues with magic names like '__proto__' */\n function escapeLeadingUnderscores(identifier) {\n return (identifier.length >= 2 && identifier.charCodeAt(0) === 95 /* _ */ && identifier.charCodeAt(1) === 95 /* _ */ ? \"_\" + identifier : identifier);\n }\n ts.escapeLeadingUnderscores = escapeLeadingUnderscores;\n /**\n * Remove extra underscore from escaped identifier text content.\n *\n * @param identifier The escaped identifier text.\n * @returns The unescaped identifier text.\n */\n function unescapeLeadingUnderscores(identifier) {\n var id = identifier;\n return id.length >= 3 && id.charCodeAt(0) === 95 /* _ */ && id.charCodeAt(1) === 95 /* _ */ && id.charCodeAt(2) === 95 /* _ */ ? id.substr(1) : id;\n }\n ts.unescapeLeadingUnderscores = unescapeLeadingUnderscores;\n function idText(identifierOrPrivateName) {\n return unescapeLeadingUnderscores(identifierOrPrivateName.escapedText);\n }\n ts.idText = idText;\n function symbolName(symbol) {\n if (symbol.valueDeclaration && isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) {\n return idText(symbol.valueDeclaration.name);\n }\n return unescapeLeadingUnderscores(symbol.escapedName);\n }\n ts.symbolName = symbolName;\n /**\n * A JSDocTypedef tag has an _optional_ name field - if a name is not directly present, we should\n * attempt to draw the name from the node the declaration is on (as that declaration is what its' symbol\n * will be merged with)\n */\n function nameForNamelessJSDocTypedef(declaration) {\n var hostNode = declaration.parent.parent;\n if (!hostNode) {\n return undefined;\n }\n // Covers classes, functions - any named declaration host node\n if (isDeclaration(hostNode)) {\n return getDeclarationIdentifier(hostNode);\n }\n // Covers remaining cases (returning undefined if none match).\n switch (hostNode.kind) {\n case 235 /* VariableStatement */:\n if (hostNode.declarationList && hostNode.declarationList.declarations[0]) {\n return getDeclarationIdentifier(hostNode.declarationList.declarations[0]);\n }\n break;\n case 236 /* ExpressionStatement */:\n var expr = hostNode.expression;\n if (expr.kind === 219 /* BinaryExpression */ && expr.operatorToken.kind === 63 /* EqualsToken */) {\n expr = expr.left;\n }\n switch (expr.kind) {\n case 204 /* PropertyAccessExpression */:\n return expr.name;\n case 205 /* ElementAccessExpression */:\n var arg = expr.argumentExpression;\n if (ts.isIdentifier(arg)) {\n return arg;\n }\n }\n break;\n case 210 /* ParenthesizedExpression */: {\n return getDeclarationIdentifier(hostNode.expression);\n }\n case 248 /* LabeledStatement */: {\n if (isDeclaration(hostNode.statement) || isExpression(hostNode.statement)) {\n return getDeclarationIdentifier(hostNode.statement);\n }\n break;\n }\n }\n }\n function getDeclarationIdentifier(node) {\n var name = getNameOfDeclaration(node);\n return name && ts.isIdentifier(name) ? name : undefined;\n }\n /** @internal */\n function nodeHasName(statement, name) {\n if (isNamedDeclaration(statement) && ts.isIdentifier(statement.name) && idText(statement.name) === idText(name)) {\n return true;\n }\n if (ts.isVariableStatement(statement) && ts.some(statement.declarationList.declarations, function (d) { return nodeHasName(d, name); })) {\n return true;\n }\n return false;\n }\n ts.nodeHasName = nodeHasName;\n function getNameOfJSDocTypedef(declaration) {\n return declaration.name || nameForNamelessJSDocTypedef(declaration);\n }\n ts.getNameOfJSDocTypedef = getNameOfJSDocTypedef;\n /** @internal */\n function isNamedDeclaration(node) {\n return !!node.name; // A 'name' property should always be a DeclarationName.\n }\n ts.isNamedDeclaration = isNamedDeclaration;\n /** @internal */\n function getNonAssignedNameOfDeclaration(declaration) {\n switch (declaration.kind) {\n case 79 /* Identifier */:\n return declaration;\n case 342 /* JSDocPropertyTag */:\n case 335 /* JSDocParameterTag */: {\n var name = declaration.name;\n if (name.kind === 159 /* QualifiedName */) {\n return name.right;\n }\n break;\n }\n case 206 /* CallExpression */:\n case 219 /* BinaryExpression */: {\n var expr_1 = declaration;\n switch (ts.getAssignmentDeclarationKind(expr_1)) {\n case 1 /* ExportsProperty */:\n case 4 /* ThisProperty */:\n case 5 /* Property */:\n case 3 /* PrototypeProperty */:\n return ts.getElementOrPropertyAccessArgumentExpressionOrName(expr_1.left);\n case 7 /* ObjectDefinePropertyValue */:\n case 8 /* ObjectDefinePropertyExports */:\n case 9 /* ObjectDefinePrototypeProperty */:\n return expr_1.arguments[1];\n default:\n return undefined;\n }\n }\n case 340 /* JSDocTypedefTag */:\n return getNameOfJSDocTypedef(declaration);\n case 334 /* JSDocEnumTag */:\n return nameForNamelessJSDocTypedef(declaration);\n case 269 /* ExportAssignment */: {\n var expression = declaration.expression;\n return ts.isIdentifier(expression) ? expression : undefined;\n }\n case 205 /* ElementAccessExpression */:\n var expr = declaration;\n if (ts.isBindableStaticElementAccessExpression(expr)) {\n return expr.argumentExpression;\n }\n }\n return declaration.name;\n }\n ts.getNonAssignedNameOfDeclaration = getNonAssignedNameOfDeclaration;\n function getNameOfDeclaration(declaration) {\n if (declaration === undefined)\n return undefined;\n return getNonAssignedNameOfDeclaration(declaration) ||\n (ts.isFunctionExpression(declaration) || ts.isArrowFunction(declaration) || ts.isClassExpression(declaration) ? getAssignedName(declaration) : undefined);\n }\n ts.getNameOfDeclaration = getNameOfDeclaration;\n /*@internal*/\n function getAssignedName(node) {\n if (!node.parent) {\n return undefined;\n }\n else if (ts.isPropertyAssignment(node.parent) || ts.isBindingElement(node.parent)) {\n return node.parent.name;\n }\n else if (ts.isBinaryExpression(node.parent) && node === node.parent.right) {\n if (ts.isIdentifier(node.parent.left)) {\n return node.parent.left;\n }\n else if (ts.isAccessExpression(node.parent.left)) {\n return ts.getElementOrPropertyAccessArgumentExpressionOrName(node.parent.left);\n }\n }\n else if (ts.isVariableDeclaration(node.parent) && ts.isIdentifier(node.parent.name)) {\n return node.parent.name;\n }\n }\n ts.getAssignedName = getAssignedName;\n function getJSDocParameterTagsWorker(param, noCache) {\n if (param.name) {\n if (ts.isIdentifier(param.name)) {\n var name_1 = param.name.escapedText;\n return getJSDocTagsWorker(param.parent, noCache).filter(function (tag) { return ts.isJSDocParameterTag(tag) && ts.isIdentifier(tag.name) && tag.name.escapedText === name_1; });\n }\n else {\n var i = param.parent.parameters.indexOf(param);\n ts.Debug.assert(i > -1, \"Parameters should always be in their parents' parameter list\");\n var paramTags = getJSDocTagsWorker(param.parent, noCache).filter(ts.isJSDocParameterTag);\n if (i < paramTags.length) {\n return [paramTags[i]];\n }\n }\n }\n // return empty array for: out-of-order binding patterns and JSDoc function syntax, which has un-named parameters\n return ts.emptyArray;\n }\n /**\n * Gets the JSDoc parameter tags for the node if present.\n *\n * @remarks Returns any JSDoc param tag whose name matches the provided\n * parameter, whether a param tag on a containing function\n * expression, or a param tag on a variable declaration whose\n * initializer is the containing function. The tags closest to the\n * node are returned first, so in the previous example, the param\n * tag on the containing function expression would be first.\n *\n * For binding patterns, parameter tags are matched by position.\n */\n function getJSDocParameterTags(param) {\n return getJSDocParameterTagsWorker(param, /*noCache*/ false);\n }\n ts.getJSDocParameterTags = getJSDocParameterTags;\n /* @internal */\n function getJSDocParameterTagsNoCache(param) {\n return getJSDocParameterTagsWorker(param, /*noCache*/ true);\n }\n ts.getJSDocParameterTagsNoCache = getJSDocParameterTagsNoCache;\n function getJSDocTypeParameterTagsWorker(param, noCache) {\n var name = param.name.escapedText;\n return getJSDocTagsWorker(param.parent, noCache).filter(function (tag) {\n return ts.isJSDocTemplateTag(tag) && tag.typeParameters.some(function (tp) { return tp.name.escapedText === name; });\n });\n }\n /**\n * Gets the JSDoc type parameter tags for the node if present.\n *\n * @remarks Returns any JSDoc template tag whose names match the provided\n * parameter, whether a template tag on a containing function\n * expression, or a template tag on a variable declaration whose\n * initializer is the containing function. The tags closest to the\n * node are returned first, so in the previous example, the template\n * tag on the containing function expression would be first.\n */\n function getJSDocTypeParameterTags(param) {\n return getJSDocTypeParameterTagsWorker(param, /*noCache*/ false);\n }\n ts.getJSDocTypeParameterTags = getJSDocTypeParameterTags;\n /* @internal */\n function getJSDocTypeParameterTagsNoCache(param) {\n return getJSDocTypeParameterTagsWorker(param, /*noCache*/ true);\n }\n ts.getJSDocTypeParameterTagsNoCache = getJSDocTypeParameterTagsNoCache;\n /**\n * Return true if the node has JSDoc parameter tags.\n *\n * @remarks Includes parameter tags that are not directly on the node,\n * for example on a variable declaration whose initializer is a function expression.\n */\n function hasJSDocParameterTags(node) {\n return !!getFirstJSDocTag(node, ts.isJSDocParameterTag);\n }\n ts.hasJSDocParameterTags = hasJSDocParameterTags;\n /** Gets the JSDoc augments tag for the node if present */\n function getJSDocAugmentsTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocAugmentsTag);\n }\n ts.getJSDocAugmentsTag = getJSDocAugmentsTag;\n /** Gets the JSDoc implements tags for the node if present */\n function getJSDocImplementsTags(node) {\n return getAllJSDocTags(node, ts.isJSDocImplementsTag);\n }\n ts.getJSDocImplementsTags = getJSDocImplementsTags;\n /** Gets the JSDoc class tag for the node if present */\n function getJSDocClassTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocClassTag);\n }\n ts.getJSDocClassTag = getJSDocClassTag;\n /** Gets the JSDoc public tag for the node if present */\n function getJSDocPublicTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocPublicTag);\n }\n ts.getJSDocPublicTag = getJSDocPublicTag;\n /*@internal*/\n function getJSDocPublicTagNoCache(node) {\n return getFirstJSDocTag(node, ts.isJSDocPublicTag, /*noCache*/ true);\n }\n ts.getJSDocPublicTagNoCache = getJSDocPublicTagNoCache;\n /** Gets the JSDoc private tag for the node if present */\n function getJSDocPrivateTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocPrivateTag);\n }\n ts.getJSDocPrivateTag = getJSDocPrivateTag;\n /*@internal*/\n function getJSDocPrivateTagNoCache(node) {\n return getFirstJSDocTag(node, ts.isJSDocPrivateTag, /*noCache*/ true);\n }\n ts.getJSDocPrivateTagNoCache = getJSDocPrivateTagNoCache;\n /** Gets the JSDoc protected tag for the node if present */\n function getJSDocProtectedTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocProtectedTag);\n }\n ts.getJSDocProtectedTag = getJSDocProtectedTag;\n /*@internal*/\n function getJSDocProtectedTagNoCache(node) {\n return getFirstJSDocTag(node, ts.isJSDocProtectedTag, /*noCache*/ true);\n }\n ts.getJSDocProtectedTagNoCache = getJSDocProtectedTagNoCache;\n /** Gets the JSDoc protected tag for the node if present */\n function getJSDocReadonlyTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocReadonlyTag);\n }\n ts.getJSDocReadonlyTag = getJSDocReadonlyTag;\n /*@internal*/\n function getJSDocReadonlyTagNoCache(node) {\n return getFirstJSDocTag(node, ts.isJSDocReadonlyTag, /*noCache*/ true);\n }\n ts.getJSDocReadonlyTagNoCache = getJSDocReadonlyTagNoCache;\n function getJSDocOverrideTagNoCache(node) {\n return getFirstJSDocTag(node, ts.isJSDocOverrideTag, /*noCache*/ true);\n }\n ts.getJSDocOverrideTagNoCache = getJSDocOverrideTagNoCache;\n /** Gets the JSDoc deprecated tag for the node if present */\n function getJSDocDeprecatedTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocDeprecatedTag);\n }\n ts.getJSDocDeprecatedTag = getJSDocDeprecatedTag;\n /*@internal */\n function getJSDocDeprecatedTagNoCache(node) {\n return getFirstJSDocTag(node, ts.isJSDocDeprecatedTag, /*noCache*/ true);\n }\n ts.getJSDocDeprecatedTagNoCache = getJSDocDeprecatedTagNoCache;\n /** Gets the JSDoc enum tag for the node if present */\n function getJSDocEnumTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocEnumTag);\n }\n ts.getJSDocEnumTag = getJSDocEnumTag;\n /** Gets the JSDoc this tag for the node if present */\n function getJSDocThisTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocThisTag);\n }\n ts.getJSDocThisTag = getJSDocThisTag;\n /** Gets the JSDoc return tag for the node if present */\n function getJSDocReturnTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocReturnTag);\n }\n ts.getJSDocReturnTag = getJSDocReturnTag;\n /** Gets the JSDoc template tag for the node if present */\n function getJSDocTemplateTag(node) {\n return getFirstJSDocTag(node, ts.isJSDocTemplateTag);\n }\n ts.getJSDocTemplateTag = getJSDocTemplateTag;\n /** Gets the JSDoc type tag for the node if present and valid */\n function getJSDocTypeTag(node) {\n // We should have already issued an error if there were multiple type jsdocs, so just use the first one.\n var tag = getFirstJSDocTag(node, ts.isJSDocTypeTag);\n if (tag && tag.typeExpression && tag.typeExpression.type) {\n return tag;\n }\n return undefined;\n }\n ts.getJSDocTypeTag = getJSDocTypeTag;\n /**\n * Gets the type node for the node if provided via JSDoc.\n *\n * @remarks The search includes any JSDoc param tag that relates\n * to the provided parameter, for example a type tag on the\n * parameter itself, or a param tag on a containing function\n * expression, or a param tag on a variable declaration whose\n * initializer is the containing function. The tags closest to the\n * node are examined first, so in the previous example, the type\n * tag directly on the node would be returned.\n */\n function getJSDocType(node) {\n var tag = getFirstJSDocTag(node, ts.isJSDocTypeTag);\n if (!tag && ts.isParameter(node)) {\n tag = ts.find(getJSDocParameterTags(node), function (tag) { return !!tag.typeExpression; });\n }\n return tag && tag.typeExpression && tag.typeExpression.type;\n }\n ts.getJSDocType = getJSDocType;\n /**\n * Gets the return type node for the node if provided via JSDoc return tag or type tag.\n *\n * @remarks `getJSDocReturnTag` just gets the whole JSDoc tag. This function\n * gets the type from inside the braces, after the fat arrow, etc.\n */\n function getJSDocReturnType(node) {\n var returnTag = getJSDocReturnTag(node);\n if (returnTag && returnTag.typeExpression) {\n return returnTag.typeExpression.type;\n }\n var typeTag = getJSDocTypeTag(node);\n if (typeTag && typeTag.typeExpression) {\n var type = typeTag.typeExpression.type;\n if (ts.isTypeLiteralNode(type)) {\n var sig = ts.find(type.members, ts.isCallSignatureDeclaration);\n return sig && sig.type;\n }\n if (ts.isFunctionTypeNode(type) || ts.isJSDocFunctionType(type)) {\n return type.type;\n }\n }\n }\n ts.getJSDocReturnType = getJSDocReturnType;\n function getJSDocTagsWorker(node, noCache) {\n var tags = node.jsDocCache;\n // If cache is 'null', that means we did the work of searching for JSDoc tags and came up with nothing.\n if (tags === undefined || noCache) {\n var comments = ts.getJSDocCommentsAndTags(node, noCache);\n ts.Debug.assert(comments.length < 2 || comments[0] !== comments[1]);\n tags = ts.flatMap(comments, function (j) { return ts.isJSDoc(j) ? j.tags : j; });\n if (!noCache) {\n node.jsDocCache = tags;\n }\n }\n return tags;\n }\n /** Get all JSDoc tags related to a node, including those on parent nodes. */\n function getJSDocTags(node) {\n return getJSDocTagsWorker(node, /*noCache*/ false);\n }\n ts.getJSDocTags = getJSDocTags;\n /* @internal */\n function getJSDocTagsNoCache(node) {\n return getJSDocTagsWorker(node, /*noCache*/ true);\n }\n ts.getJSDocTagsNoCache = getJSDocTagsNoCache;\n /** Get the first JSDoc tag of a specified kind, or undefined if not present. */\n function getFirstJSDocTag(node, predicate, noCache) {\n return ts.find(getJSDocTagsWorker(node, noCache), predicate);\n }\n /** Gets all JSDoc tags that match a specified predicate */\n function getAllJSDocTags(node, predicate) {\n return getJSDocTags(node).filter(predicate);\n }\n ts.getAllJSDocTags = getAllJSDocTags;\n /** Gets all JSDoc tags of a specified kind */\n function getAllJSDocTagsOfKind(node, kind) {\n return getJSDocTags(node).filter(function (doc) { return doc.kind === kind; });\n }\n ts.getAllJSDocTagsOfKind = getAllJSDocTagsOfKind;\n /** Gets the text of a jsdoc comment, flattening links to their text. */\n function getTextOfJSDocComment(comment) {\n return typeof comment === \"string\" ? comment\n : comment === null || comment === void 0 ? void 0 : comment.map(function (c) {\n // TODO: Other kinds here\n return c.kind === 316 /* JSDocText */ ? c.text : \"{@link \" + (c.name ? ts.entityNameToString(c.name) + \" \" : \"\") + c.text + \"}\";\n }).join(\"\");\n }\n ts.getTextOfJSDocComment = getTextOfJSDocComment;\n /**\n * Gets the effective type parameters. If the node was parsed in a\n * JavaScript file, gets the type parameters from the `@template` tag from JSDoc.\n */\n function getEffectiveTypeParameterDeclarations(node) {\n if (ts.isJSDocSignature(node)) {\n return ts.emptyArray;\n }\n if (ts.isJSDocTypeAlias(node)) {\n ts.Debug.assert(node.parent.kind === 315 /* JSDocComment */);\n return ts.flatMap(node.parent.tags, function (tag) { return ts.isJSDocTemplateTag(tag) ? tag.typeParameters : undefined; });\n }\n if (node.typeParameters) {\n return node.typeParameters;\n }\n if (ts.isInJSFile(node)) {\n var decls = ts.getJSDocTypeParameterDeclarations(node);\n if (decls.length) {\n return decls;\n }\n var typeTag = getJSDocType(node);\n if (typeTag && ts.isFunctionTypeNode(typeTag) && typeTag.typeParameters) {\n return typeTag.typeParameters;\n }\n }\n return ts.emptyArray;\n }\n ts.getEffectiveTypeParameterDeclarations = getEffectiveTypeParameterDeclarations;\n function getEffectiveConstraintOfTypeParameter(node) {\n return node.constraint ? node.constraint :\n ts.isJSDocTemplateTag(node.parent) && node === node.parent.typeParameters[0] ? node.parent.constraint :\n undefined;\n }\n ts.getEffectiveConstraintOfTypeParameter = getEffectiveConstraintOfTypeParameter;\n // #region\n function isMemberName(node) {\n return node.kind === 79 /* Identifier */ || node.kind === 80 /* PrivateIdentifier */;\n }\n ts.isMemberName = isMemberName;\n /* @internal */\n function isGetOrSetAccessorDeclaration(node) {\n return node.kind === 171 /* SetAccessor */ || node.kind === 170 /* GetAccessor */;\n }\n ts.isGetOrSetAccessorDeclaration = isGetOrSetAccessorDeclaration;\n function isPropertyAccessChain(node) {\n return ts.isPropertyAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */);\n }\n ts.isPropertyAccessChain = isPropertyAccessChain;\n function isElementAccessChain(node) {\n return ts.isElementAccessExpression(node) && !!(node.flags & 32 /* OptionalChain */);\n }\n ts.isElementAccessChain = isElementAccessChain;\n function isCallChain(node) {\n return ts.isCallExpression(node) && !!(node.flags & 32 /* OptionalChain */);\n }\n ts.isCallChain = isCallChain;\n function isOptionalChain(node) {\n var kind = node.kind;\n return !!(node.flags & 32 /* OptionalChain */) &&\n (kind === 204 /* PropertyAccessExpression */\n || kind === 205 /* ElementAccessExpression */\n || kind === 206 /* CallExpression */\n || kind === 228 /* NonNullExpression */);\n }\n ts.isOptionalChain = isOptionalChain;\n /* @internal */\n function isOptionalChainRoot(node) {\n return isOptionalChain(node) && !ts.isNonNullExpression(node) && !!node.questionDotToken;\n }\n ts.isOptionalChainRoot = isOptionalChainRoot;\n /**\n * Determines whether a node is the expression preceding an optional chain (i.e. `a` in `a?.b`).\n */\n /* @internal */\n function isExpressionOfOptionalChainRoot(node) {\n return isOptionalChainRoot(node.parent) && node.parent.expression === node;\n }\n ts.isExpressionOfOptionalChainRoot = isExpressionOfOptionalChainRoot;\n /**\n * Determines whether a node is the outermost `OptionalChain` in an ECMAScript `OptionalExpression`:\n *\n * 1. For `a?.b.c`, the outermost chain is `a?.b.c` (`c` is the end of the chain starting at `a?.`)\n * 2. For `a?.b!`, the outermost chain is `a?.b` (`b` is the end of the chain starting at `a?.`)\n * 3. For `(a?.b.c).d`, the outermost chain is `a?.b.c` (`c` is the end of the chain starting at `a?.` since parens end the chain)\n * 4. For `a?.b.c?.d`, both `a?.b.c` and `a?.b.c?.d` are outermost (`c` is the end of the chain starting at `a?.`, and `d` is\n * the end of the chain starting at `c?.`)\n * 5. For `a?.(b?.c).d`, both `b?.c` and `a?.(b?.c)d` are outermost (`c` is the end of the chain starting at `b`, and `d` is\n * the end of the chain starting at `a?.`)\n */\n /* @internal */\n function isOutermostOptionalChain(node) {\n return !isOptionalChain(node.parent) // cases 1, 2, and 3\n || isOptionalChainRoot(node.parent) // case 4\n || node !== node.parent.expression; // case 5\n }\n ts.isOutermostOptionalChain = isOutermostOptionalChain;\n function isNullishCoalesce(node) {\n return node.kind === 219 /* BinaryExpression */ && node.operatorToken.kind === 60 /* QuestionQuestionToken */;\n }\n ts.isNullishCoalesce = isNullishCoalesce;\n function isConstTypeReference(node) {\n return ts.isTypeReferenceNode(node) && ts.isIdentifier(node.typeName) &&\n node.typeName.escapedText === \"const\" && !node.typeArguments;\n }\n ts.isConstTypeReference = isConstTypeReference;\n function skipPartiallyEmittedExpressions(node) {\n return ts.skipOuterExpressions(node, 8 /* PartiallyEmittedExpressions */);\n }\n ts.skipPartiallyEmittedExpressions = skipPartiallyEmittedExpressions;\n function isNonNullChain(node) {\n return ts.isNonNullExpression(node) && !!(node.flags & 32 /* OptionalChain */);\n }\n ts.isNonNullChain = isNonNullChain;\n function isBreakOrContinueStatement(node) {\n return node.kind === 244 /* BreakStatement */ || node.kind === 243 /* ContinueStatement */;\n }\n ts.isBreakOrContinueStatement = isBreakOrContinueStatement;\n function isNamedExportBindings(node) {\n return node.kind === 272 /* NamespaceExport */ || node.kind === 271 /* NamedExports */;\n }\n ts.isNamedExportBindings = isNamedExportBindings;\n function isUnparsedTextLike(node) {\n switch (node.kind) {\n case 297 /* UnparsedText */:\n case 298 /* UnparsedInternalText */:\n return true;\n default:\n return false;\n }\n }\n ts.isUnparsedTextLike = isUnparsedTextLike;\n function isUnparsedNode(node) {\n return isUnparsedTextLike(node) ||\n node.kind === 295 /* UnparsedPrologue */ ||\n node.kind === 299 /* UnparsedSyntheticReference */;\n }\n ts.isUnparsedNode = isUnparsedNode;\n function isJSDocPropertyLikeTag(node) {\n return node.kind === 342 /* JSDocPropertyTag */ || node.kind === 335 /* JSDocParameterTag */;\n }\n ts.isJSDocPropertyLikeTag = isJSDocPropertyLikeTag;\n // #endregion\n // #region\n // Node tests\n //\n // All node tests in the following list should *not* reference parent pointers so that\n // they may be used with transformations.\n /* @internal */\n function isNode(node) {\n return isNodeKind(node.kind);\n }\n ts.isNode = isNode;\n /* @internal */\n function isNodeKind(kind) {\n return kind >= 159 /* FirstNode */;\n }\n ts.isNodeKind = isNodeKind;\n /**\n * True if kind is of some token syntax kind.\n * For example, this is true for an IfKeyword but not for an IfStatement.\n * Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.\n */\n function isTokenKind(kind) {\n return kind >= 0 /* FirstToken */ && kind <= 158 /* LastToken */;\n }\n ts.isTokenKind = isTokenKind;\n /**\n * True if node is of some token syntax kind.\n * For example, this is true for an IfKeyword but not for an IfStatement.\n * Literals are considered tokens, except TemplateLiteral, but does include TemplateHead/Middle/Tail.\n */\n function isToken(n) {\n return isTokenKind(n.kind);\n }\n ts.isToken = isToken;\n // Node Arrays\n /* @internal */\n function isNodeArray(array) {\n return array.hasOwnProperty(\"pos\") && array.hasOwnProperty(\"end\");\n }\n ts.isNodeArray = isNodeArray;\n // Literals\n /* @internal */\n function isLiteralKind(kind) {\n return 8 /* FirstLiteralToken */ <= kind && kind <= 14 /* LastLiteralToken */;\n }\n ts.isLiteralKind = isLiteralKind;\n function isLiteralExpression(node) {\n return isLiteralKind(node.kind);\n }\n ts.isLiteralExpression = isLiteralExpression;\n // Pseudo-literals\n /* @internal */\n function isTemplateLiteralKind(kind) {\n return 14 /* FirstTemplateToken */ <= kind && kind <= 17 /* LastTemplateToken */;\n }\n ts.isTemplateLiteralKind = isTemplateLiteralKind;\n function isTemplateLiteralToken(node) {\n return isTemplateLiteralKind(node.kind);\n }\n ts.isTemplateLiteralToken = isTemplateLiteralToken;\n function isTemplateMiddleOrTemplateTail(node) {\n var kind = node.kind;\n return kind === 16 /* TemplateMiddle */\n || kind === 17 /* TemplateTail */;\n }\n ts.isTemplateMiddleOrTemplateTail = isTemplateMiddleOrTemplateTail;\n function isImportOrExportSpecifier(node) {\n return ts.isImportSpecifier(node) || ts.isExportSpecifier(node);\n }\n ts.isImportOrExportSpecifier = isImportOrExportSpecifier;\n function isTypeOnlyImportOrExportDeclaration(node) {\n switch (node.kind) {\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n return node.parent.parent.isTypeOnly;\n case 266 /* NamespaceImport */:\n return node.parent.isTypeOnly;\n case 265 /* ImportClause */:\n case 263 /* ImportEqualsDeclaration */:\n return node.isTypeOnly;\n default:\n return false;\n }\n }\n ts.isTypeOnlyImportOrExportDeclaration = isTypeOnlyImportOrExportDeclaration;\n function isStringTextContainingNode(node) {\n return node.kind === 10 /* StringLiteral */ || isTemplateLiteralKind(node.kind);\n }\n ts.isStringTextContainingNode = isStringTextContainingNode;\n // Identifiers\n /* @internal */\n function isGeneratedIdentifier(node) {\n return ts.isIdentifier(node) && (node.autoGenerateFlags & 7 /* KindMask */) > 0 /* None */;\n }\n ts.isGeneratedIdentifier = isGeneratedIdentifier;\n // Private Identifiers\n /*@internal*/\n function isPrivateIdentifierClassElementDeclaration(node) {\n return (ts.isPropertyDeclaration(node) || isMethodOrAccessor(node)) && ts.isPrivateIdentifier(node.name);\n }\n ts.isPrivateIdentifierClassElementDeclaration = isPrivateIdentifierClassElementDeclaration;\n /*@internal*/\n function isPrivateIdentifierPropertyAccessExpression(node) {\n return ts.isPropertyAccessExpression(node) && ts.isPrivateIdentifier(node.name);\n }\n ts.isPrivateIdentifierPropertyAccessExpression = isPrivateIdentifierPropertyAccessExpression;\n // Keywords\n /* @internal */\n function isModifierKind(token) {\n switch (token) {\n case 126 /* AbstractKeyword */:\n case 130 /* AsyncKeyword */:\n case 85 /* ConstKeyword */:\n case 134 /* DeclareKeyword */:\n case 88 /* DefaultKeyword */:\n case 93 /* ExportKeyword */:\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 143 /* ReadonlyKeyword */:\n case 124 /* StaticKeyword */:\n case 157 /* OverrideKeyword */:\n return true;\n }\n return false;\n }\n ts.isModifierKind = isModifierKind;\n /* @internal */\n function isParameterPropertyModifier(kind) {\n return !!(ts.modifierToFlag(kind) & 16476 /* ParameterPropertyModifier */);\n }\n ts.isParameterPropertyModifier = isParameterPropertyModifier;\n /* @internal */\n function isClassMemberModifier(idToken) {\n return isParameterPropertyModifier(idToken) || idToken === 124 /* StaticKeyword */ || idToken === 157 /* OverrideKeyword */;\n }\n ts.isClassMemberModifier = isClassMemberModifier;\n function isModifier(node) {\n return isModifierKind(node.kind);\n }\n ts.isModifier = isModifier;\n function isEntityName(node) {\n var kind = node.kind;\n return kind === 159 /* QualifiedName */\n || kind === 79 /* Identifier */;\n }\n ts.isEntityName = isEntityName;\n function isPropertyName(node) {\n var kind = node.kind;\n return kind === 79 /* Identifier */\n || kind === 80 /* PrivateIdentifier */\n || kind === 10 /* StringLiteral */\n || kind === 8 /* NumericLiteral */\n || kind === 160 /* ComputedPropertyName */;\n }\n ts.isPropertyName = isPropertyName;\n function isBindingName(node) {\n var kind = node.kind;\n return kind === 79 /* Identifier */\n || kind === 199 /* ObjectBindingPattern */\n || kind === 200 /* ArrayBindingPattern */;\n }\n ts.isBindingName = isBindingName;\n // Functions\n function isFunctionLike(node) {\n return !!node && isFunctionLikeKind(node.kind);\n }\n ts.isFunctionLike = isFunctionLike;\n /* @internal */\n function isFunctionLikeOrClassStaticBlockDeclaration(node) {\n return !!node && (isFunctionLikeKind(node.kind) || ts.isClassStaticBlockDeclaration(node));\n }\n ts.isFunctionLikeOrClassStaticBlockDeclaration = isFunctionLikeOrClassStaticBlockDeclaration;\n /* @internal */\n function isFunctionLikeDeclaration(node) {\n return node && isFunctionLikeDeclarationKind(node.kind);\n }\n ts.isFunctionLikeDeclaration = isFunctionLikeDeclaration;\n /* @internal */\n function isBooleanLiteral(node) {\n return node.kind === 110 /* TrueKeyword */ || node.kind === 95 /* FalseKeyword */;\n }\n ts.isBooleanLiteral = isBooleanLiteral;\n function isFunctionLikeDeclarationKind(kind) {\n switch (kind) {\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return true;\n default:\n return false;\n }\n }\n /* @internal */\n function isFunctionLikeKind(kind) {\n switch (kind) {\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 318 /* JSDocSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n case 177 /* FunctionType */:\n case 312 /* JSDocFunctionType */:\n case 178 /* ConstructorType */:\n return true;\n default:\n return isFunctionLikeDeclarationKind(kind);\n }\n }\n ts.isFunctionLikeKind = isFunctionLikeKind;\n /* @internal */\n function isFunctionOrModuleBlock(node) {\n return ts.isSourceFile(node) || ts.isModuleBlock(node) || ts.isBlock(node) && isFunctionLike(node.parent);\n }\n ts.isFunctionOrModuleBlock = isFunctionOrModuleBlock;\n // Classes\n function isClassElement(node) {\n var kind = node.kind;\n return kind === 169 /* Constructor */\n || kind === 165 /* PropertyDeclaration */\n || kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */\n || kind === 174 /* IndexSignature */\n || kind === 168 /* ClassStaticBlockDeclaration */\n || kind === 232 /* SemicolonClassElement */;\n }\n ts.isClassElement = isClassElement;\n function isClassLike(node) {\n return node && (node.kind === 255 /* ClassDeclaration */ || node.kind === 224 /* ClassExpression */);\n }\n ts.isClassLike = isClassLike;\n function isAccessor(node) {\n return node && (node.kind === 170 /* GetAccessor */ || node.kind === 171 /* SetAccessor */);\n }\n ts.isAccessor = isAccessor;\n /* @internal */\n function isMethodOrAccessor(node) {\n switch (node.kind) {\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return true;\n default:\n return false;\n }\n }\n ts.isMethodOrAccessor = isMethodOrAccessor;\n // Type members\n function isTypeElement(node) {\n var kind = node.kind;\n return kind === 173 /* ConstructSignature */\n || kind === 172 /* CallSignature */\n || kind === 164 /* PropertySignature */\n || kind === 166 /* MethodSignature */\n || kind === 174 /* IndexSignature */;\n }\n ts.isTypeElement = isTypeElement;\n function isClassOrTypeElement(node) {\n return isTypeElement(node) || isClassElement(node);\n }\n ts.isClassOrTypeElement = isClassOrTypeElement;\n function isObjectLiteralElementLike(node) {\n var kind = node.kind;\n return kind === 291 /* PropertyAssignment */\n || kind === 292 /* ShorthandPropertyAssignment */\n || kind === 293 /* SpreadAssignment */\n || kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */;\n }\n ts.isObjectLiteralElementLike = isObjectLiteralElementLike;\n // Type\n /**\n * Node test that determines whether a node is a valid type node.\n * This differs from the `isPartOfTypeNode` function which determines whether a node is *part*\n * of a TypeNode.\n */\n function isTypeNode(node) {\n return ts.isTypeNodeKind(node.kind);\n }\n ts.isTypeNode = isTypeNode;\n function isFunctionOrConstructorTypeNode(node) {\n switch (node.kind) {\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n return true;\n }\n return false;\n }\n ts.isFunctionOrConstructorTypeNode = isFunctionOrConstructorTypeNode;\n // Binding patterns\n /* @internal */\n function isBindingPattern(node) {\n if (node) {\n var kind = node.kind;\n return kind === 200 /* ArrayBindingPattern */\n || kind === 199 /* ObjectBindingPattern */;\n }\n return false;\n }\n ts.isBindingPattern = isBindingPattern;\n /* @internal */\n function isAssignmentPattern(node) {\n var kind = node.kind;\n return kind === 202 /* ArrayLiteralExpression */\n || kind === 203 /* ObjectLiteralExpression */;\n }\n ts.isAssignmentPattern = isAssignmentPattern;\n /* @internal */\n function isArrayBindingElement(node) {\n var kind = node.kind;\n return kind === 201 /* BindingElement */\n || kind === 225 /* OmittedExpression */;\n }\n ts.isArrayBindingElement = isArrayBindingElement;\n /**\n * Determines whether the BindingOrAssignmentElement is a BindingElement-like declaration\n */\n /* @internal */\n function isDeclarationBindingElement(bindingElement) {\n switch (bindingElement.kind) {\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n case 201 /* BindingElement */:\n return true;\n }\n return false;\n }\n ts.isDeclarationBindingElement = isDeclarationBindingElement;\n /**\n * Determines whether a node is a BindingOrAssignmentPattern\n */\n /* @internal */\n function isBindingOrAssignmentPattern(node) {\n return isObjectBindingOrAssignmentPattern(node)\n || isArrayBindingOrAssignmentPattern(node);\n }\n ts.isBindingOrAssignmentPattern = isBindingOrAssignmentPattern;\n /**\n * Determines whether a node is an ObjectBindingOrAssignmentPattern\n */\n /* @internal */\n function isObjectBindingOrAssignmentPattern(node) {\n switch (node.kind) {\n case 199 /* ObjectBindingPattern */:\n case 203 /* ObjectLiteralExpression */:\n return true;\n }\n return false;\n }\n ts.isObjectBindingOrAssignmentPattern = isObjectBindingOrAssignmentPattern;\n /* @internal */\n function isObjectBindingOrAssignmentElement(node) {\n switch (node.kind) {\n case 201 /* BindingElement */:\n case 291 /* PropertyAssignment */: // AssignmentProperty\n case 292 /* ShorthandPropertyAssignment */: // AssignmentProperty\n case 293 /* SpreadAssignment */: // AssignmentRestProperty\n return true;\n }\n return false;\n }\n ts.isObjectBindingOrAssignmentElement = isObjectBindingOrAssignmentElement;\n /**\n * Determines whether a node is an ArrayBindingOrAssignmentPattern\n */\n /* @internal */\n function isArrayBindingOrAssignmentPattern(node) {\n switch (node.kind) {\n case 200 /* ArrayBindingPattern */:\n case 202 /* ArrayLiteralExpression */:\n return true;\n }\n return false;\n }\n ts.isArrayBindingOrAssignmentPattern = isArrayBindingOrAssignmentPattern;\n /* @internal */\n function isPropertyAccessOrQualifiedNameOrImportTypeNode(node) {\n var kind = node.kind;\n return kind === 204 /* PropertyAccessExpression */\n || kind === 159 /* QualifiedName */\n || kind === 198 /* ImportType */;\n }\n ts.isPropertyAccessOrQualifiedNameOrImportTypeNode = isPropertyAccessOrQualifiedNameOrImportTypeNode;\n // Expression\n function isPropertyAccessOrQualifiedName(node) {\n var kind = node.kind;\n return kind === 204 /* PropertyAccessExpression */\n || kind === 159 /* QualifiedName */;\n }\n ts.isPropertyAccessOrQualifiedName = isPropertyAccessOrQualifiedName;\n function isCallLikeExpression(node) {\n switch (node.kind) {\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 208 /* TaggedTemplateExpression */:\n case 163 /* Decorator */:\n return true;\n default:\n return false;\n }\n }\n ts.isCallLikeExpression = isCallLikeExpression;\n function isCallOrNewExpression(node) {\n return node.kind === 206 /* CallExpression */ || node.kind === 207 /* NewExpression */;\n }\n ts.isCallOrNewExpression = isCallOrNewExpression;\n function isTemplateLiteral(node) {\n var kind = node.kind;\n return kind === 221 /* TemplateExpression */\n || kind === 14 /* NoSubstitutionTemplateLiteral */;\n }\n ts.isTemplateLiteral = isTemplateLiteral;\n /* @internal */\n function isLeftHandSideExpression(node) {\n return isLeftHandSideExpressionKind(skipPartiallyEmittedExpressions(node).kind);\n }\n ts.isLeftHandSideExpression = isLeftHandSideExpression;\n function isLeftHandSideExpressionKind(kind) {\n switch (kind) {\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n case 207 /* NewExpression */:\n case 206 /* CallExpression */:\n case 276 /* JsxElement */:\n case 277 /* JsxSelfClosingElement */:\n case 280 /* JsxFragment */:\n case 208 /* TaggedTemplateExpression */:\n case 202 /* ArrayLiteralExpression */:\n case 210 /* ParenthesizedExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 79 /* Identifier */:\n case 13 /* RegularExpressionLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 221 /* TemplateExpression */:\n case 95 /* FalseKeyword */:\n case 104 /* NullKeyword */:\n case 108 /* ThisKeyword */:\n case 110 /* TrueKeyword */:\n case 106 /* SuperKeyword */:\n case 228 /* NonNullExpression */:\n case 229 /* MetaProperty */:\n case 100 /* ImportKeyword */: // technically this is only an Expression if it's in a CallExpression\n return true;\n default:\n return false;\n }\n }\n /* @internal */\n function isUnaryExpression(node) {\n return isUnaryExpressionKind(skipPartiallyEmittedExpressions(node).kind);\n }\n ts.isUnaryExpression = isUnaryExpression;\n function isUnaryExpressionKind(kind) {\n switch (kind) {\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n case 213 /* DeleteExpression */:\n case 214 /* TypeOfExpression */:\n case 215 /* VoidExpression */:\n case 216 /* AwaitExpression */:\n case 209 /* TypeAssertionExpression */:\n return true;\n default:\n return isLeftHandSideExpressionKind(kind);\n }\n }\n /* @internal */\n function isUnaryExpressionWithWrite(expr) {\n switch (expr.kind) {\n case 218 /* PostfixUnaryExpression */:\n return true;\n case 217 /* PrefixUnaryExpression */:\n return expr.operator === 45 /* PlusPlusToken */ ||\n expr.operator === 46 /* MinusMinusToken */;\n default:\n return false;\n }\n }\n ts.isUnaryExpressionWithWrite = isUnaryExpressionWithWrite;\n /* @internal */\n /**\n * Determines whether a node is an expression based only on its kind.\n * Use `isExpressionNode` if not in transforms.\n */\n function isExpression(node) {\n return isExpressionKind(skipPartiallyEmittedExpressions(node).kind);\n }\n ts.isExpression = isExpression;\n function isExpressionKind(kind) {\n switch (kind) {\n case 220 /* ConditionalExpression */:\n case 222 /* YieldExpression */:\n case 212 /* ArrowFunction */:\n case 219 /* BinaryExpression */:\n case 223 /* SpreadElement */:\n case 227 /* AsExpression */:\n case 225 /* OmittedExpression */:\n case 346 /* CommaListExpression */:\n case 345 /* PartiallyEmittedExpression */:\n return true;\n default:\n return isUnaryExpressionKind(kind);\n }\n }\n function isAssertionExpression(node) {\n var kind = node.kind;\n return kind === 209 /* TypeAssertionExpression */\n || kind === 227 /* AsExpression */;\n }\n ts.isAssertionExpression = isAssertionExpression;\n /* @internal */\n function isNotEmittedOrPartiallyEmittedNode(node) {\n return ts.isNotEmittedStatement(node)\n || ts.isPartiallyEmittedExpression(node);\n }\n ts.isNotEmittedOrPartiallyEmittedNode = isNotEmittedOrPartiallyEmittedNode;\n function isIterationStatement(node, lookInLabeledStatements) {\n switch (node.kind) {\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n return true;\n case 248 /* LabeledStatement */:\n return lookInLabeledStatements && isIterationStatement(node.statement, lookInLabeledStatements);\n }\n return false;\n }\n ts.isIterationStatement = isIterationStatement;\n /* @internal */\n function isScopeMarker(node) {\n return ts.isExportAssignment(node) || ts.isExportDeclaration(node);\n }\n ts.isScopeMarker = isScopeMarker;\n /* @internal */\n function hasScopeMarker(statements) {\n return ts.some(statements, isScopeMarker);\n }\n ts.hasScopeMarker = hasScopeMarker;\n /* @internal */\n function needsScopeMarker(result) {\n return !ts.isAnyImportOrReExport(result) && !ts.isExportAssignment(result) && !ts.hasSyntacticModifier(result, 1 /* Export */) && !ts.isAmbientModule(result);\n }\n ts.needsScopeMarker = needsScopeMarker;\n /* @internal */\n function isExternalModuleIndicator(result) {\n // Exported top-level member indicates moduleness\n return ts.isAnyImportOrReExport(result) || ts.isExportAssignment(result) || ts.hasSyntacticModifier(result, 1 /* Export */);\n }\n ts.isExternalModuleIndicator = isExternalModuleIndicator;\n /* @internal */\n function isForInOrOfStatement(node) {\n return node.kind === 241 /* ForInStatement */ || node.kind === 242 /* ForOfStatement */;\n }\n ts.isForInOrOfStatement = isForInOrOfStatement;\n // Element\n /* @internal */\n function isConciseBody(node) {\n return ts.isBlock(node)\n || isExpression(node);\n }\n ts.isConciseBody = isConciseBody;\n /* @internal */\n function isFunctionBody(node) {\n return ts.isBlock(node);\n }\n ts.isFunctionBody = isFunctionBody;\n /* @internal */\n function isForInitializer(node) {\n return ts.isVariableDeclarationList(node)\n || isExpression(node);\n }\n ts.isForInitializer = isForInitializer;\n /* @internal */\n function isModuleBody(node) {\n var kind = node.kind;\n return kind === 260 /* ModuleBlock */\n || kind === 259 /* ModuleDeclaration */\n || kind === 79 /* Identifier */;\n }\n ts.isModuleBody = isModuleBody;\n /* @internal */\n function isNamespaceBody(node) {\n var kind = node.kind;\n return kind === 260 /* ModuleBlock */\n || kind === 259 /* ModuleDeclaration */;\n }\n ts.isNamespaceBody = isNamespaceBody;\n /* @internal */\n function isJSDocNamespaceBody(node) {\n var kind = node.kind;\n return kind === 79 /* Identifier */\n || kind === 259 /* ModuleDeclaration */;\n }\n ts.isJSDocNamespaceBody = isJSDocNamespaceBody;\n /* @internal */\n function isNamedImportBindings(node) {\n var kind = node.kind;\n return kind === 267 /* NamedImports */\n || kind === 266 /* NamespaceImport */;\n }\n ts.isNamedImportBindings = isNamedImportBindings;\n /* @internal */\n function isModuleOrEnumDeclaration(node) {\n return node.kind === 259 /* ModuleDeclaration */ || node.kind === 258 /* EnumDeclaration */;\n }\n ts.isModuleOrEnumDeclaration = isModuleOrEnumDeclaration;\n function isDeclarationKind(kind) {\n return kind === 212 /* ArrowFunction */\n || kind === 201 /* BindingElement */\n || kind === 255 /* ClassDeclaration */\n || kind === 224 /* ClassExpression */\n || kind === 168 /* ClassStaticBlockDeclaration */\n || kind === 169 /* Constructor */\n || kind === 258 /* EnumDeclaration */\n || kind === 294 /* EnumMember */\n || kind === 273 /* ExportSpecifier */\n || kind === 254 /* FunctionDeclaration */\n || kind === 211 /* FunctionExpression */\n || kind === 170 /* GetAccessor */\n || kind === 265 /* ImportClause */\n || kind === 263 /* ImportEqualsDeclaration */\n || kind === 268 /* ImportSpecifier */\n || kind === 256 /* InterfaceDeclaration */\n || kind === 283 /* JsxAttribute */\n || kind === 167 /* MethodDeclaration */\n || kind === 166 /* MethodSignature */\n || kind === 259 /* ModuleDeclaration */\n || kind === 262 /* NamespaceExportDeclaration */\n || kind === 266 /* NamespaceImport */\n || kind === 272 /* NamespaceExport */\n || kind === 162 /* Parameter */\n || kind === 291 /* PropertyAssignment */\n || kind === 165 /* PropertyDeclaration */\n || kind === 164 /* PropertySignature */\n || kind === 171 /* SetAccessor */\n || kind === 292 /* ShorthandPropertyAssignment */\n || kind === 257 /* TypeAliasDeclaration */\n || kind === 161 /* TypeParameter */\n || kind === 252 /* VariableDeclaration */\n || kind === 340 /* JSDocTypedefTag */\n || kind === 333 /* JSDocCallbackTag */\n || kind === 342 /* JSDocPropertyTag */;\n }\n function isDeclarationStatementKind(kind) {\n return kind === 254 /* FunctionDeclaration */\n || kind === 274 /* MissingDeclaration */\n || kind === 255 /* ClassDeclaration */\n || kind === 256 /* InterfaceDeclaration */\n || kind === 257 /* TypeAliasDeclaration */\n || kind === 258 /* EnumDeclaration */\n || kind === 259 /* ModuleDeclaration */\n || kind === 264 /* ImportDeclaration */\n || kind === 263 /* ImportEqualsDeclaration */\n || kind === 270 /* ExportDeclaration */\n || kind === 269 /* ExportAssignment */\n || kind === 262 /* NamespaceExportDeclaration */;\n }\n function isStatementKindButNotDeclarationKind(kind) {\n return kind === 244 /* BreakStatement */\n || kind === 243 /* ContinueStatement */\n || kind === 251 /* DebuggerStatement */\n || kind === 238 /* DoStatement */\n || kind === 236 /* ExpressionStatement */\n || kind === 234 /* EmptyStatement */\n || kind === 241 /* ForInStatement */\n || kind === 242 /* ForOfStatement */\n || kind === 240 /* ForStatement */\n || kind === 237 /* IfStatement */\n || kind === 248 /* LabeledStatement */\n || kind === 245 /* ReturnStatement */\n || kind === 247 /* SwitchStatement */\n || kind === 249 /* ThrowStatement */\n || kind === 250 /* TryStatement */\n || kind === 235 /* VariableStatement */\n || kind === 239 /* WhileStatement */\n || kind === 246 /* WithStatement */\n || kind === 344 /* NotEmittedStatement */\n || kind === 348 /* EndOfDeclarationMarker */\n || kind === 347 /* MergeDeclarationMarker */;\n }\n /* @internal */\n function isDeclaration(node) {\n if (node.kind === 161 /* TypeParameter */) {\n return (node.parent && node.parent.kind !== 339 /* JSDocTemplateTag */) || ts.isInJSFile(node);\n }\n return isDeclarationKind(node.kind);\n }\n ts.isDeclaration = isDeclaration;\n /* @internal */\n function isDeclarationStatement(node) {\n return isDeclarationStatementKind(node.kind);\n }\n ts.isDeclarationStatement = isDeclarationStatement;\n /**\n * Determines whether the node is a statement that is not also a declaration\n */\n /* @internal */\n function isStatementButNotDeclaration(node) {\n return isStatementKindButNotDeclarationKind(node.kind);\n }\n ts.isStatementButNotDeclaration = isStatementButNotDeclaration;\n /* @internal */\n function isStatement(node) {\n var kind = node.kind;\n return isStatementKindButNotDeclarationKind(kind)\n || isDeclarationStatementKind(kind)\n || isBlockStatement(node);\n }\n ts.isStatement = isStatement;\n function isBlockStatement(node) {\n if (node.kind !== 233 /* Block */)\n return false;\n if (node.parent !== undefined) {\n if (node.parent.kind === 250 /* TryStatement */ || node.parent.kind === 290 /* CatchClause */) {\n return false;\n }\n }\n return !ts.isFunctionBlock(node);\n }\n /**\n * NOTE: This is similar to `isStatement` but does not access parent pointers.\n */\n /* @internal */\n function isStatementOrBlock(node) {\n var kind = node.kind;\n return isStatementKindButNotDeclarationKind(kind)\n || isDeclarationStatementKind(kind)\n || kind === 233 /* Block */;\n }\n ts.isStatementOrBlock = isStatementOrBlock;\n // Module references\n /* @internal */\n function isModuleReference(node) {\n var kind = node.kind;\n return kind === 275 /* ExternalModuleReference */\n || kind === 159 /* QualifiedName */\n || kind === 79 /* Identifier */;\n }\n ts.isModuleReference = isModuleReference;\n // JSX\n /* @internal */\n function isJsxTagNameExpression(node) {\n var kind = node.kind;\n return kind === 108 /* ThisKeyword */\n || kind === 79 /* Identifier */\n || kind === 204 /* PropertyAccessExpression */;\n }\n ts.isJsxTagNameExpression = isJsxTagNameExpression;\n /* @internal */\n function isJsxChild(node) {\n var kind = node.kind;\n return kind === 276 /* JsxElement */\n || kind === 286 /* JsxExpression */\n || kind === 277 /* JsxSelfClosingElement */\n || kind === 11 /* JsxText */\n || kind === 280 /* JsxFragment */;\n }\n ts.isJsxChild = isJsxChild;\n /* @internal */\n function isJsxAttributeLike(node) {\n var kind = node.kind;\n return kind === 283 /* JsxAttribute */\n || kind === 285 /* JsxSpreadAttribute */;\n }\n ts.isJsxAttributeLike = isJsxAttributeLike;\n /* @internal */\n function isStringLiteralOrJsxExpression(node) {\n var kind = node.kind;\n return kind === 10 /* StringLiteral */\n || kind === 286 /* JsxExpression */;\n }\n ts.isStringLiteralOrJsxExpression = isStringLiteralOrJsxExpression;\n function isJsxOpeningLikeElement(node) {\n var kind = node.kind;\n return kind === 278 /* JsxOpeningElement */\n || kind === 277 /* JsxSelfClosingElement */;\n }\n ts.isJsxOpeningLikeElement = isJsxOpeningLikeElement;\n // Clauses\n function isCaseOrDefaultClause(node) {\n var kind = node.kind;\n return kind === 287 /* CaseClause */\n || kind === 288 /* DefaultClause */;\n }\n ts.isCaseOrDefaultClause = isCaseOrDefaultClause;\n // JSDoc\n /** True if node is of some JSDoc syntax kind. */\n /* @internal */\n function isJSDocNode(node) {\n return node.kind >= 304 /* FirstJSDocNode */ && node.kind <= 342 /* LastJSDocNode */;\n }\n ts.isJSDocNode = isJSDocNode;\n /** True if node is of a kind that may contain comment text. */\n function isJSDocCommentContainingNode(node) {\n return node.kind === 315 /* JSDocComment */\n || node.kind === 314 /* JSDocNamepathType */\n || node.kind === 316 /* JSDocText */\n || isJSDocLinkLike(node)\n || isJSDocTag(node)\n || ts.isJSDocTypeLiteral(node)\n || ts.isJSDocSignature(node);\n }\n ts.isJSDocCommentContainingNode = isJSDocCommentContainingNode;\n // TODO: determine what this does before making it public.\n /* @internal */\n function isJSDocTag(node) {\n return node.kind >= 322 /* FirstJSDocTagNode */ && node.kind <= 342 /* LastJSDocTagNode */;\n }\n ts.isJSDocTag = isJSDocTag;\n function isSetAccessor(node) {\n return node.kind === 171 /* SetAccessor */;\n }\n ts.isSetAccessor = isSetAccessor;\n function isGetAccessor(node) {\n return node.kind === 170 /* GetAccessor */;\n }\n ts.isGetAccessor = isGetAccessor;\n /** True if has jsdoc nodes attached to it. */\n /* @internal */\n // TODO: GH#19856 Would like to return `node is Node & { jsDoc: JSDoc[] }` but it causes long compile times\n function hasJSDocNodes(node) {\n var jsDoc = node.jsDoc;\n return !!jsDoc && jsDoc.length > 0;\n }\n ts.hasJSDocNodes = hasJSDocNodes;\n /** True if has type node attached to it. */\n /* @internal */\n function hasType(node) {\n return !!node.type;\n }\n ts.hasType = hasType;\n /** True if has initializer node attached to it. */\n /* @internal */\n function hasInitializer(node) {\n return !!node.initializer;\n }\n ts.hasInitializer = hasInitializer;\n /** True if has initializer node attached to it. */\n function hasOnlyExpressionInitializer(node) {\n switch (node.kind) {\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n case 201 /* BindingElement */:\n case 164 /* PropertySignature */:\n case 165 /* PropertyDeclaration */:\n case 291 /* PropertyAssignment */:\n case 294 /* EnumMember */:\n return true;\n default:\n return false;\n }\n }\n ts.hasOnlyExpressionInitializer = hasOnlyExpressionInitializer;\n function isObjectLiteralElement(node) {\n return node.kind === 283 /* JsxAttribute */ || node.kind === 285 /* JsxSpreadAttribute */ || isObjectLiteralElementLike(node);\n }\n ts.isObjectLiteralElement = isObjectLiteralElement;\n /* @internal */\n function isTypeReferenceType(node) {\n return node.kind === 176 /* TypeReference */ || node.kind === 226 /* ExpressionWithTypeArguments */;\n }\n ts.isTypeReferenceType = isTypeReferenceType;\n var MAX_SMI_X86 = 1073741823;\n /* @internal */\n function guessIndentation(lines) {\n var indentation = MAX_SMI_X86;\n for (var _i = 0, lines_1 = lines; _i < lines_1.length; _i++) {\n var line = lines_1[_i];\n if (!line.length) {\n continue;\n }\n var i = 0;\n for (; i < line.length && i < indentation; i++) {\n if (!ts.isWhiteSpaceLike(line.charCodeAt(i))) {\n break;\n }\n }\n if (i < indentation) {\n indentation = i;\n }\n if (indentation === 0) {\n return 0;\n }\n }\n return indentation === MAX_SMI_X86 ? undefined : indentation;\n }\n ts.guessIndentation = guessIndentation;\n function isStringLiteralLike(node) {\n return node.kind === 10 /* StringLiteral */ || node.kind === 14 /* NoSubstitutionTemplateLiteral */;\n }\n ts.isStringLiteralLike = isStringLiteralLike;\n function isJSDocLinkLike(node) {\n return node.kind === 319 /* JSDocLink */ || node.kind === 320 /* JSDocLinkCode */ || node.kind === 321 /* JSDocLinkPlain */;\n }\n ts.isJSDocLinkLike = isJSDocLinkLike;\n // #endregion\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n ts.resolvingEmptyArray = [];\n ts.externalHelpersModuleNameText = \"tslib\";\n ts.defaultMaximumTruncationLength = 160;\n ts.noTruncationMaximumTruncationLength = 1000000;\n function getDeclarationOfKind(symbol, kind) {\n var declarations = symbol.declarations;\n if (declarations) {\n for (var _i = 0, declarations_1 = declarations; _i < declarations_1.length; _i++) {\n var declaration = declarations_1[_i];\n if (declaration.kind === kind) {\n return declaration;\n }\n }\n }\n return undefined;\n }\n ts.getDeclarationOfKind = getDeclarationOfKind;\n /**\n * Create a new escaped identifier map.\n * @deprecated Use `new Map<__String, T>()` instead.\n */\n function createUnderscoreEscapedMap() {\n return new ts.Map();\n }\n ts.createUnderscoreEscapedMap = createUnderscoreEscapedMap;\n /**\n * @deprecated Use `!!map?.size` instead\n */\n function hasEntries(map) {\n return !!map && !!map.size;\n }\n ts.hasEntries = hasEntries;\n function createSymbolTable(symbols) {\n var result = new ts.Map();\n if (symbols) {\n for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {\n var symbol = symbols_1[_i];\n result.set(symbol.escapedName, symbol);\n }\n }\n return result;\n }\n ts.createSymbolTable = createSymbolTable;\n function isTransientSymbol(symbol) {\n return (symbol.flags & 33554432 /* Transient */) !== 0;\n }\n ts.isTransientSymbol = isTransientSymbol;\n var stringWriter = createSingleLineStringWriter();\n function createSingleLineStringWriter() {\n var str = \"\";\n var writeText = function (text) { return str += text; };\n return {\n getText: function () { return str; },\n write: writeText,\n rawWrite: writeText,\n writeKeyword: writeText,\n writeOperator: writeText,\n writePunctuation: writeText,\n writeSpace: writeText,\n writeStringLiteral: writeText,\n writeLiteral: writeText,\n writeParameter: writeText,\n writeProperty: writeText,\n writeSymbol: function (s, _) { return writeText(s); },\n writeTrailingSemicolon: writeText,\n writeComment: writeText,\n getTextPos: function () { return str.length; },\n getLine: function () { return 0; },\n getColumn: function () { return 0; },\n getIndent: function () { return 0; },\n isAtStartOfLine: function () { return false; },\n hasTrailingComment: function () { return false; },\n hasTrailingWhitespace: function () { return !!str.length && ts.isWhiteSpaceLike(str.charCodeAt(str.length - 1)); },\n // Completely ignore indentation for string writers. And map newlines to\n // a single space.\n writeLine: function () { return str += \" \"; },\n increaseIndent: ts.noop,\n decreaseIndent: ts.noop,\n clear: function () { return str = \"\"; },\n trackSymbol: function () { return false; },\n reportInaccessibleThisError: ts.noop,\n reportInaccessibleUniqueSymbolError: ts.noop,\n reportPrivateInBaseOfClassExpression: ts.noop,\n };\n }\n function changesAffectModuleResolution(oldOptions, newOptions) {\n return oldOptions.configFilePath !== newOptions.configFilePath ||\n optionsHaveModuleResolutionChanges(oldOptions, newOptions);\n }\n ts.changesAffectModuleResolution = changesAffectModuleResolution;\n function optionsHaveModuleResolutionChanges(oldOptions, newOptions) {\n return optionsHaveChanges(oldOptions, newOptions, ts.moduleResolutionOptionDeclarations);\n }\n ts.optionsHaveModuleResolutionChanges = optionsHaveModuleResolutionChanges;\n function changesAffectingProgramStructure(oldOptions, newOptions) {\n return optionsHaveChanges(oldOptions, newOptions, ts.optionsAffectingProgramStructure);\n }\n ts.changesAffectingProgramStructure = changesAffectingProgramStructure;\n function optionsHaveChanges(oldOptions, newOptions, optionDeclarations) {\n return oldOptions !== newOptions && optionDeclarations.some(function (o) {\n return !isJsonEqual(getCompilerOptionValue(oldOptions, o), getCompilerOptionValue(newOptions, o));\n });\n }\n ts.optionsHaveChanges = optionsHaveChanges;\n function forEachAncestor(node, callback) {\n while (true) {\n var res = callback(node);\n if (res === \"quit\")\n return undefined;\n if (res !== undefined)\n return res;\n if (ts.isSourceFile(node))\n return undefined;\n node = node.parent;\n }\n }\n ts.forEachAncestor = forEachAncestor;\n /**\n * Calls `callback` for each entry in the map, returning the first truthy result.\n * Use `map.forEach` instead for normal iteration.\n */\n function forEachEntry(map, callback) {\n var iterator = map.entries();\n for (var iterResult = iterator.next(); !iterResult.done; iterResult = iterator.next()) {\n var _a = iterResult.value, key = _a[0], value = _a[1];\n var result = callback(value, key);\n if (result) {\n return result;\n }\n }\n return undefined;\n }\n ts.forEachEntry = forEachEntry;\n /** `forEachEntry` for just keys. */\n function forEachKey(map, callback) {\n var iterator = map.keys();\n for (var iterResult = iterator.next(); !iterResult.done; iterResult = iterator.next()) {\n var result = callback(iterResult.value);\n if (result) {\n return result;\n }\n }\n return undefined;\n }\n ts.forEachKey = forEachKey;\n /** Copy entries from `source` to `target`. */\n function copyEntries(source, target) {\n source.forEach(function (value, key) {\n target.set(key, value);\n });\n }\n ts.copyEntries = copyEntries;\n function usingSingleLineStringWriter(action) {\n var oldString = stringWriter.getText();\n try {\n action(stringWriter);\n return stringWriter.getText();\n }\n finally {\n stringWriter.clear();\n stringWriter.writeKeyword(oldString);\n }\n }\n ts.usingSingleLineStringWriter = usingSingleLineStringWriter;\n function getFullWidth(node) {\n return node.end - node.pos;\n }\n ts.getFullWidth = getFullWidth;\n function getResolvedModule(sourceFile, moduleNameText) {\n return sourceFile && sourceFile.resolvedModules && sourceFile.resolvedModules.get(moduleNameText);\n }\n ts.getResolvedModule = getResolvedModule;\n function setResolvedModule(sourceFile, moduleNameText, resolvedModule) {\n if (!sourceFile.resolvedModules) {\n sourceFile.resolvedModules = new ts.Map();\n }\n sourceFile.resolvedModules.set(moduleNameText, resolvedModule);\n }\n ts.setResolvedModule = setResolvedModule;\n function setResolvedTypeReferenceDirective(sourceFile, typeReferenceDirectiveName, resolvedTypeReferenceDirective) {\n if (!sourceFile.resolvedTypeReferenceDirectiveNames) {\n sourceFile.resolvedTypeReferenceDirectiveNames = new ts.Map();\n }\n sourceFile.resolvedTypeReferenceDirectiveNames.set(typeReferenceDirectiveName, resolvedTypeReferenceDirective);\n }\n ts.setResolvedTypeReferenceDirective = setResolvedTypeReferenceDirective;\n function projectReferenceIsEqualTo(oldRef, newRef) {\n return oldRef.path === newRef.path &&\n !oldRef.prepend === !newRef.prepend &&\n !oldRef.circular === !newRef.circular;\n }\n ts.projectReferenceIsEqualTo = projectReferenceIsEqualTo;\n function moduleResolutionIsEqualTo(oldResolution, newResolution) {\n return oldResolution.isExternalLibraryImport === newResolution.isExternalLibraryImport &&\n oldResolution.extension === newResolution.extension &&\n oldResolution.resolvedFileName === newResolution.resolvedFileName &&\n oldResolution.originalPath === newResolution.originalPath &&\n packageIdIsEqual(oldResolution.packageId, newResolution.packageId);\n }\n ts.moduleResolutionIsEqualTo = moduleResolutionIsEqualTo;\n function packageIdIsEqual(a, b) {\n return a === b || !!a && !!b && a.name === b.name && a.subModuleName === b.subModuleName && a.version === b.version;\n }\n function packageIdToString(_a) {\n var name = _a.name, subModuleName = _a.subModuleName, version = _a.version;\n var fullName = subModuleName ? name + \"/\" + subModuleName : name;\n return fullName + \"@\" + version;\n }\n ts.packageIdToString = packageIdToString;\n function typeDirectiveIsEqualTo(oldResolution, newResolution) {\n return oldResolution.resolvedFileName === newResolution.resolvedFileName\n && oldResolution.primary === newResolution.primary\n && oldResolution.originalPath === newResolution.originalPath;\n }\n ts.typeDirectiveIsEqualTo = typeDirectiveIsEqualTo;\n function hasChangesInResolutions(names, newResolutions, oldResolutions, comparer) {\n ts.Debug.assert(names.length === newResolutions.length);\n for (var i = 0; i < names.length; i++) {\n var newResolution = newResolutions[i];\n var oldResolution = oldResolutions && oldResolutions.get(names[i]);\n var changed = oldResolution\n ? !newResolution || !comparer(oldResolution, newResolution)\n : newResolution;\n if (changed) {\n return true;\n }\n }\n return false;\n }\n ts.hasChangesInResolutions = hasChangesInResolutions;\n // Returns true if this node contains a parse error anywhere underneath it.\n function containsParseError(node) {\n aggregateChildData(node);\n return (node.flags & 262144 /* ThisNodeOrAnySubNodesHasError */) !== 0;\n }\n ts.containsParseError = containsParseError;\n function aggregateChildData(node) {\n if (!(node.flags & 524288 /* HasAggregatedChildData */)) {\n // A node is considered to contain a parse error if:\n // a) the parser explicitly marked that it had an error\n // b) any of it's children reported that it had an error.\n var thisNodeOrAnySubNodesHasError = ((node.flags & 65536 /* ThisNodeHasError */) !== 0) ||\n ts.forEachChild(node, containsParseError);\n // If so, mark ourselves accordingly.\n if (thisNodeOrAnySubNodesHasError) {\n node.flags |= 262144 /* ThisNodeOrAnySubNodesHasError */;\n }\n // Also mark that we've propagated the child information to this node. This way we can\n // always consult the bit directly on this node without needing to check its children\n // again.\n node.flags |= 524288 /* HasAggregatedChildData */;\n }\n }\n function getSourceFileOfNode(node) {\n while (node && node.kind !== 300 /* SourceFile */) {\n node = node.parent;\n }\n return node;\n }\n ts.getSourceFileOfNode = getSourceFileOfNode;\n function getSourceFileOfModule(module) {\n return getSourceFileOfNode(module.valueDeclaration || getNonAugmentationDeclaration(module));\n }\n ts.getSourceFileOfModule = getSourceFileOfModule;\n function isStatementWithLocals(node) {\n switch (node.kind) {\n case 233 /* Block */:\n case 261 /* CaseBlock */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n return true;\n }\n return false;\n }\n ts.isStatementWithLocals = isStatementWithLocals;\n function getStartPositionOfLine(line, sourceFile) {\n ts.Debug.assert(line >= 0);\n return ts.getLineStarts(sourceFile)[line];\n }\n ts.getStartPositionOfLine = getStartPositionOfLine;\n // This is a useful function for debugging purposes.\n function nodePosToString(node) {\n var file = getSourceFileOfNode(node);\n var loc = ts.getLineAndCharacterOfPosition(file, node.pos);\n return file.fileName + \"(\" + (loc.line + 1) + \",\" + (loc.character + 1) + \")\";\n }\n ts.nodePosToString = nodePosToString;\n function getEndLinePosition(line, sourceFile) {\n ts.Debug.assert(line >= 0);\n var lineStarts = ts.getLineStarts(sourceFile);\n var lineIndex = line;\n var sourceText = sourceFile.text;\n if (lineIndex + 1 === lineStarts.length) {\n // last line - return EOF\n return sourceText.length - 1;\n }\n else {\n // current line start\n var start = lineStarts[lineIndex];\n // take the start position of the next line - 1 = it should be some line break\n var pos = lineStarts[lineIndex + 1] - 1;\n ts.Debug.assert(ts.isLineBreak(sourceText.charCodeAt(pos)));\n // walk backwards skipping line breaks, stop the the beginning of current line.\n // i.e:\n // \n // $ <- end of line for this position should match the start position\n while (start <= pos && ts.isLineBreak(sourceText.charCodeAt(pos))) {\n pos--;\n }\n return pos;\n }\n }\n ts.getEndLinePosition = getEndLinePosition;\n /**\n * Returns a value indicating whether a name is unique globally or within the current file.\n * Note: This does not consider whether a name appears as a free identifier or not, so at the expression `x.y` this includes both `x` and `y`.\n */\n function isFileLevelUniqueName(sourceFile, name, hasGlobalName) {\n return !(hasGlobalName && hasGlobalName(name)) && !sourceFile.identifiers.has(name);\n }\n ts.isFileLevelUniqueName = isFileLevelUniqueName;\n // Returns true if this node is missing from the actual source code. A 'missing' node is different\n // from 'undefined/defined'. When a node is undefined (which can happen for optional nodes\n // in the tree), it is definitely missing. However, a node may be defined, but still be\n // missing. This happens whenever the parser knows it needs to parse something, but can't\n // get anything in the source code that it expects at that location. For example:\n //\n // let a: ;\n //\n // Here, the Type in the Type-Annotation is not-optional (as there is a colon in the source\n // code). So the parser will attempt to parse out a type, and will create an actual node.\n // However, this node will be 'missing' in the sense that no actual source-code/tokens are\n // contained within it.\n function nodeIsMissing(node) {\n if (node === undefined) {\n return true;\n }\n return node.pos === node.end && node.pos >= 0 && node.kind !== 1 /* EndOfFileToken */;\n }\n ts.nodeIsMissing = nodeIsMissing;\n function nodeIsPresent(node) {\n return !nodeIsMissing(node);\n }\n ts.nodeIsPresent = nodeIsPresent;\n function insertStatementsAfterPrologue(to, from, isPrologueDirective) {\n if (from === undefined || from.length === 0)\n return to;\n var statementIndex = 0;\n // skip all prologue directives to insert at the correct position\n for (; statementIndex < to.length; ++statementIndex) {\n if (!isPrologueDirective(to[statementIndex])) {\n break;\n }\n }\n to.splice.apply(to, __spreadArray([statementIndex, 0], from, false));\n return to;\n }\n function insertStatementAfterPrologue(to, statement, isPrologueDirective) {\n if (statement === undefined)\n return to;\n var statementIndex = 0;\n // skip all prologue directives to insert at the correct position\n for (; statementIndex < to.length; ++statementIndex) {\n if (!isPrologueDirective(to[statementIndex])) {\n break;\n }\n }\n to.splice(statementIndex, 0, statement);\n return to;\n }\n function isAnyPrologueDirective(node) {\n return isPrologueDirective(node) || !!(getEmitFlags(node) & 1048576 /* CustomPrologue */);\n }\n /**\n * Prepends statements to an array while taking care of prologue directives.\n */\n function insertStatementsAfterStandardPrologue(to, from) {\n return insertStatementsAfterPrologue(to, from, isPrologueDirective);\n }\n ts.insertStatementsAfterStandardPrologue = insertStatementsAfterStandardPrologue;\n function insertStatementsAfterCustomPrologue(to, from) {\n return insertStatementsAfterPrologue(to, from, isAnyPrologueDirective);\n }\n ts.insertStatementsAfterCustomPrologue = insertStatementsAfterCustomPrologue;\n /**\n * Prepends statements to an array while taking care of prologue directives.\n */\n function insertStatementAfterStandardPrologue(to, statement) {\n return insertStatementAfterPrologue(to, statement, isPrologueDirective);\n }\n ts.insertStatementAfterStandardPrologue = insertStatementAfterStandardPrologue;\n function insertStatementAfterCustomPrologue(to, statement) {\n return insertStatementAfterPrologue(to, statement, isAnyPrologueDirective);\n }\n ts.insertStatementAfterCustomPrologue = insertStatementAfterCustomPrologue;\n /**\n * Determine if the given comment is a triple-slash\n *\n * @return true if the comment is a triple-slash comment else false\n */\n function isRecognizedTripleSlashComment(text, commentPos, commentEnd) {\n // Verify this is /// comment, but do the regexp match only when we first can find /// in the comment text\n // so that we don't end up computing comment string and doing match for all // comments\n if (text.charCodeAt(commentPos + 1) === 47 /* slash */ &&\n commentPos + 2 < commentEnd &&\n text.charCodeAt(commentPos + 2) === 47 /* slash */) {\n var textSubStr = text.substring(commentPos, commentEnd);\n return ts.fullTripleSlashReferencePathRegEx.test(textSubStr) ||\n ts.fullTripleSlashAMDReferencePathRegEx.test(textSubStr) ||\n fullTripleSlashReferenceTypeReferenceDirectiveRegEx.test(textSubStr) ||\n defaultLibReferenceRegEx.test(textSubStr) ?\n true : false;\n }\n return false;\n }\n ts.isRecognizedTripleSlashComment = isRecognizedTripleSlashComment;\n function isPinnedComment(text, start) {\n return text.charCodeAt(start + 1) === 42 /* asterisk */ &&\n text.charCodeAt(start + 2) === 33 /* exclamation */;\n }\n ts.isPinnedComment = isPinnedComment;\n function createCommentDirectivesMap(sourceFile, commentDirectives) {\n var directivesByLine = new ts.Map(commentDirectives.map(function (commentDirective) { return ([\n \"\" + ts.getLineAndCharacterOfPosition(sourceFile, commentDirective.range.end).line,\n commentDirective,\n ]); }));\n var usedLines = new ts.Map();\n return { getUnusedExpectations: getUnusedExpectations, markUsed: markUsed };\n function getUnusedExpectations() {\n return ts.arrayFrom(directivesByLine.entries())\n .filter(function (_a) {\n var line = _a[0], directive = _a[1];\n return directive.type === 0 /* ExpectError */ && !usedLines.get(line);\n })\n .map(function (_a) {\n var _ = _a[0], directive = _a[1];\n return directive;\n });\n }\n function markUsed(line) {\n if (!directivesByLine.has(\"\" + line)) {\n return false;\n }\n usedLines.set(\"\" + line, true);\n return true;\n }\n }\n ts.createCommentDirectivesMap = createCommentDirectivesMap;\n function getTokenPosOfNode(node, sourceFile, includeJsDoc) {\n // With nodes that have no width (i.e. 'Missing' nodes), we actually *don't*\n // want to skip trivia because this will launch us forward to the next token.\n if (nodeIsMissing(node)) {\n return node.pos;\n }\n if (ts.isJSDocNode(node) || node.kind === 11 /* JsxText */) {\n // JsxText cannot actually contain comments, even though the scanner will think it sees comments\n return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos, /*stopAfterLineBreak*/ false, /*stopAtComments*/ true);\n }\n if (includeJsDoc && ts.hasJSDocNodes(node)) {\n return getTokenPosOfNode(node.jsDoc[0], sourceFile);\n }\n // For a syntax list, it is possible that one of its children has JSDocComment nodes, while\n // the syntax list itself considers them as normal trivia. Therefore if we simply skip\n // trivia for the list, we may have skipped the JSDocComment as well. So we should process its\n // first child to determine the actual position of its first token.\n if (node.kind === 343 /* SyntaxList */ && node._children.length > 0) {\n return getTokenPosOfNode(node._children[0], sourceFile, includeJsDoc);\n }\n return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.pos, \n /*stopAfterLineBreak*/ false, \n /*stopAtComments*/ false, isInJSDoc(node));\n }\n ts.getTokenPosOfNode = getTokenPosOfNode;\n function getNonDecoratorTokenPosOfNode(node, sourceFile) {\n if (nodeIsMissing(node) || !node.decorators) {\n return getTokenPosOfNode(node, sourceFile);\n }\n return ts.skipTrivia((sourceFile || getSourceFileOfNode(node)).text, node.decorators.end);\n }\n ts.getNonDecoratorTokenPosOfNode = getNonDecoratorTokenPosOfNode;\n function getSourceTextOfNodeFromSourceFile(sourceFile, node, includeTrivia) {\n if (includeTrivia === void 0) { includeTrivia = false; }\n return getTextOfNodeFromSourceText(sourceFile.text, node, includeTrivia);\n }\n ts.getSourceTextOfNodeFromSourceFile = getSourceTextOfNodeFromSourceFile;\n function isJSDocTypeExpressionOrChild(node) {\n return !!ts.findAncestor(node, ts.isJSDocTypeExpression);\n }\n function isExportNamespaceAsDefaultDeclaration(node) {\n return !!(ts.isExportDeclaration(node) && node.exportClause && ts.isNamespaceExport(node.exportClause) && node.exportClause.name.escapedText === \"default\");\n }\n ts.isExportNamespaceAsDefaultDeclaration = isExportNamespaceAsDefaultDeclaration;\n function getTextOfNodeFromSourceText(sourceText, node, includeTrivia) {\n if (includeTrivia === void 0) { includeTrivia = false; }\n if (nodeIsMissing(node)) {\n return \"\";\n }\n var text = sourceText.substring(includeTrivia ? node.pos : ts.skipTrivia(sourceText, node.pos), node.end);\n if (isJSDocTypeExpressionOrChild(node)) {\n // strip space + asterisk at line start\n text = text.split(/\\r\\n|\\n|\\r/).map(function (line) { return ts.trimStringStart(line.replace(/^\\s*\\*/, \"\")); }).join(\"\\n\");\n }\n return text;\n }\n ts.getTextOfNodeFromSourceText = getTextOfNodeFromSourceText;\n function getTextOfNode(node, includeTrivia) {\n if (includeTrivia === void 0) { includeTrivia = false; }\n return getSourceTextOfNodeFromSourceFile(getSourceFileOfNode(node), node, includeTrivia);\n }\n ts.getTextOfNode = getTextOfNode;\n function getPos(range) {\n return range.pos;\n }\n /**\n * Note: it is expected that the `nodeArray` and the `node` are within the same file.\n * For example, searching for a `SourceFile` in a `SourceFile[]` wouldn't work.\n */\n function indexOfNode(nodeArray, node) {\n return ts.binarySearch(nodeArray, node, getPos, ts.compareValues);\n }\n ts.indexOfNode = indexOfNode;\n /**\n * Gets flags that control emit behavior of a node.\n */\n function getEmitFlags(node) {\n var emitNode = node.emitNode;\n return emitNode && emitNode.flags || 0;\n }\n ts.getEmitFlags = getEmitFlags;\n ;\n function getScriptTargetFeatures() {\n return {\n es2015: {\n Array: [\"find\", \"findIndex\", \"fill\", \"copyWithin\", \"entries\", \"keys\", \"values\"],\n RegExp: [\"flags\", \"sticky\", \"unicode\"],\n Reflect: [\"apply\", \"construct\", \"defineProperty\", \"deleteProperty\", \"get\", \" getOwnPropertyDescriptor\", \"getPrototypeOf\", \"has\", \"isExtensible\", \"ownKeys\", \"preventExtensions\", \"set\", \"setPrototypeOf\"],\n ArrayConstructor: [\"from\", \"of\"],\n ObjectConstructor: [\"assign\", \"getOwnPropertySymbols\", \"keys\", \"is\", \"setPrototypeOf\"],\n NumberConstructor: [\"isFinite\", \"isInteger\", \"isNaN\", \"isSafeInteger\", \"parseFloat\", \"parseInt\"],\n Math: [\"clz32\", \"imul\", \"sign\", \"log10\", \"log2\", \"log1p\", \"expm1\", \"cosh\", \"sinh\", \"tanh\", \"acosh\", \"asinh\", \"atanh\", \"hypot\", \"trunc\", \"fround\", \"cbrt\"],\n Map: [\"entries\", \"keys\", \"values\"],\n Set: [\"entries\", \"keys\", \"values\"],\n Promise: ts.emptyArray,\n PromiseConstructor: [\"all\", \"race\", \"reject\", \"resolve\"],\n Symbol: [\"for\", \"keyFor\"],\n WeakMap: [\"entries\", \"keys\", \"values\"],\n WeakSet: [\"entries\", \"keys\", \"values\"],\n Iterator: ts.emptyArray,\n AsyncIterator: ts.emptyArray,\n String: [\"codePointAt\", \"includes\", \"endsWith\", \"normalize\", \"repeat\", \"startsWith\", \"anchor\", \"big\", \"blink\", \"bold\", \"fixed\", \"fontcolor\", \"fontsize\", \"italics\", \"link\", \"small\", \"strike\", \"sub\", \"sup\"],\n StringConstructor: [\"fromCodePoint\", \"raw\"]\n },\n es2016: {\n Array: [\"includes\"]\n },\n es2017: {\n Atomics: ts.emptyArray,\n SharedArrayBuffer: ts.emptyArray,\n String: [\"padStart\", \"padEnd\"],\n ObjectConstructor: [\"values\", \"entries\", \"getOwnPropertyDescriptors\"],\n DateTimeFormat: [\"formatToParts\"]\n },\n es2018: {\n Promise: [\"finally\"],\n RegExpMatchArray: [\"groups\"],\n RegExpExecArray: [\"groups\"],\n RegExp: [\"dotAll\"],\n Intl: [\"PluralRules\"],\n AsyncIterable: ts.emptyArray,\n AsyncIterableIterator: ts.emptyArray,\n AsyncGenerator: ts.emptyArray,\n AsyncGeneratorFunction: ts.emptyArray,\n },\n es2019: {\n Array: [\"flat\", \"flatMap\"],\n ObjectConstructor: [\"fromEntries\"],\n String: [\"trimStart\", \"trimEnd\", \"trimLeft\", \"trimRight\"],\n Symbol: [\"description\"]\n },\n es2020: {\n BigInt: ts.emptyArray,\n BigInt64Array: ts.emptyArray,\n BigUint64Array: ts.emptyArray,\n PromiseConstructor: [\"allSettled\"],\n SymbolConstructor: [\"matchAll\"],\n String: [\"matchAll\"],\n DataView: [\"setBigInt64\", \"setBigUint64\", \"getBigInt64\", \"getBigUint64\"],\n RelativeTimeFormat: [\"format\", \"formatToParts\", \"resolvedOptions\"]\n },\n es2021: {\n PromiseConstructor: [\"any\"],\n String: [\"replaceAll\"]\n },\n esnext: {\n NumberFormat: [\"formatToParts\"]\n }\n };\n }\n ts.getScriptTargetFeatures = getScriptTargetFeatures;\n var GetLiteralTextFlags;\n (function (GetLiteralTextFlags) {\n GetLiteralTextFlags[GetLiteralTextFlags[\"None\"] = 0] = \"None\";\n GetLiteralTextFlags[GetLiteralTextFlags[\"NeverAsciiEscape\"] = 1] = \"NeverAsciiEscape\";\n GetLiteralTextFlags[GetLiteralTextFlags[\"JsxAttributeEscape\"] = 2] = \"JsxAttributeEscape\";\n GetLiteralTextFlags[GetLiteralTextFlags[\"TerminateUnterminatedLiterals\"] = 4] = \"TerminateUnterminatedLiterals\";\n GetLiteralTextFlags[GetLiteralTextFlags[\"AllowNumericSeparator\"] = 8] = \"AllowNumericSeparator\";\n })(GetLiteralTextFlags = ts.GetLiteralTextFlags || (ts.GetLiteralTextFlags = {}));\n function getLiteralText(node, sourceFile, flags) {\n var _a;\n // If we don't need to downlevel and we can reach the original source text using\n // the node's parent reference, then simply get the text as it was originally written.\n if (canUseOriginalText(node, flags)) {\n return getSourceTextOfNodeFromSourceFile(sourceFile, node);\n }\n // If we can't reach the original source text, use the canonical form if it's a number,\n // or a (possibly escaped) quoted form of the original text if it's string-like.\n switch (node.kind) {\n case 10 /* StringLiteral */: {\n var escapeText = flags & 2 /* JsxAttributeEscape */ ? escapeJsxAttributeString :\n flags & 1 /* NeverAsciiEscape */ || (getEmitFlags(node) & 16777216 /* NoAsciiEscaping */) ? escapeString :\n escapeNonAsciiString;\n if (node.singleQuote) {\n return \"'\" + escapeText(node.text, 39 /* singleQuote */) + \"'\";\n }\n else {\n return '\"' + escapeText(node.text, 34 /* doubleQuote */) + '\"';\n }\n }\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 15 /* TemplateHead */:\n case 16 /* TemplateMiddle */:\n case 17 /* TemplateTail */: {\n // If a NoSubstitutionTemplateLiteral appears to have a substitution in it, the original text\n // had to include a backslash: `not \\${a} substitution`.\n var escapeText = flags & 1 /* NeverAsciiEscape */ || (getEmitFlags(node) & 16777216 /* NoAsciiEscaping */) ? escapeString :\n escapeNonAsciiString;\n var rawText = (_a = node.rawText) !== null && _a !== void 0 ? _a : escapeTemplateSubstitution(escapeText(node.text, 96 /* backtick */));\n switch (node.kind) {\n case 14 /* NoSubstitutionTemplateLiteral */:\n return \"`\" + rawText + \"`\";\n case 15 /* TemplateHead */:\n return \"`\" + rawText + \"${\";\n case 16 /* TemplateMiddle */:\n return \"}\" + rawText + \"${\";\n case 17 /* TemplateTail */:\n return \"}\" + rawText + \"`\";\n }\n break;\n }\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n return node.text;\n case 13 /* RegularExpressionLiteral */:\n if (flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated) {\n return node.text + (node.text.charCodeAt(node.text.length - 1) === 92 /* backslash */ ? \" /\" : \"/\");\n }\n return node.text;\n }\n return ts.Debug.fail(\"Literal kind '\" + node.kind + \"' not accounted for.\");\n }\n ts.getLiteralText = getLiteralText;\n function canUseOriginalText(node, flags) {\n if (nodeIsSynthesized(node) || !node.parent || (flags & 4 /* TerminateUnterminatedLiterals */ && node.isUnterminated)) {\n return false;\n }\n if (ts.isNumericLiteral(node) && node.numericLiteralFlags & 512 /* ContainsSeparator */) {\n return !!(flags & 8 /* AllowNumericSeparator */);\n }\n return !ts.isBigIntLiteral(node);\n }\n function getTextOfConstantValue(value) {\n return ts.isString(value) ? '\"' + escapeNonAsciiString(value) + '\"' : \"\" + value;\n }\n ts.getTextOfConstantValue = getTextOfConstantValue;\n // Make an identifier from an external module name by extracting the string after the last \"/\" and replacing\n // all non-alphanumeric characters with underscores\n function makeIdentifierFromModuleName(moduleName) {\n return ts.getBaseFileName(moduleName).replace(/^(\\d)/, \"_$1\").replace(/\\W/g, \"_\");\n }\n ts.makeIdentifierFromModuleName = makeIdentifierFromModuleName;\n function isBlockOrCatchScoped(declaration) {\n return (ts.getCombinedNodeFlags(declaration) & 3 /* BlockScoped */) !== 0 ||\n isCatchClauseVariableDeclarationOrBindingElement(declaration);\n }\n ts.isBlockOrCatchScoped = isBlockOrCatchScoped;\n function isCatchClauseVariableDeclarationOrBindingElement(declaration) {\n var node = getRootDeclaration(declaration);\n return node.kind === 252 /* VariableDeclaration */ && node.parent.kind === 290 /* CatchClause */;\n }\n ts.isCatchClauseVariableDeclarationOrBindingElement = isCatchClauseVariableDeclarationOrBindingElement;\n function isAmbientModule(node) {\n return ts.isModuleDeclaration(node) && (node.name.kind === 10 /* StringLiteral */ || isGlobalScopeAugmentation(node));\n }\n ts.isAmbientModule = isAmbientModule;\n function isModuleWithStringLiteralName(node) {\n return ts.isModuleDeclaration(node) && node.name.kind === 10 /* StringLiteral */;\n }\n ts.isModuleWithStringLiteralName = isModuleWithStringLiteralName;\n function isNonGlobalAmbientModule(node) {\n return ts.isModuleDeclaration(node) && ts.isStringLiteral(node.name);\n }\n ts.isNonGlobalAmbientModule = isNonGlobalAmbientModule;\n /**\n * An effective module (namespace) declaration is either\n * 1. An actual declaration: namespace X { ... }\n * 2. A Javascript declaration, which is:\n * An identifier in a nested property access expression: Y in `X.Y.Z = { ... }`\n */\n function isEffectiveModuleDeclaration(node) {\n return ts.isModuleDeclaration(node) || ts.isIdentifier(node);\n }\n ts.isEffectiveModuleDeclaration = isEffectiveModuleDeclaration;\n /** Given a symbol for a module, checks that it is a shorthand ambient module. */\n function isShorthandAmbientModuleSymbol(moduleSymbol) {\n return isShorthandAmbientModule(moduleSymbol.valueDeclaration);\n }\n ts.isShorthandAmbientModuleSymbol = isShorthandAmbientModuleSymbol;\n function isShorthandAmbientModule(node) {\n // The only kind of module that can be missing a body is a shorthand ambient module.\n return !!node && node.kind === 259 /* ModuleDeclaration */ && (!node.body);\n }\n function isBlockScopedContainerTopLevel(node) {\n return node.kind === 300 /* SourceFile */ ||\n node.kind === 259 /* ModuleDeclaration */ ||\n ts.isFunctionLikeOrClassStaticBlockDeclaration(node);\n }\n ts.isBlockScopedContainerTopLevel = isBlockScopedContainerTopLevel;\n function isGlobalScopeAugmentation(module) {\n return !!(module.flags & 1024 /* GlobalAugmentation */);\n }\n ts.isGlobalScopeAugmentation = isGlobalScopeAugmentation;\n function isExternalModuleAugmentation(node) {\n return isAmbientModule(node) && isModuleAugmentationExternal(node);\n }\n ts.isExternalModuleAugmentation = isExternalModuleAugmentation;\n function isModuleAugmentationExternal(node) {\n // external module augmentation is a ambient module declaration that is either:\n // - defined in the top level scope and source file is an external module\n // - defined inside ambient module declaration located in the top level scope and source file not an external module\n switch (node.parent.kind) {\n case 300 /* SourceFile */:\n return ts.isExternalModule(node.parent);\n case 260 /* ModuleBlock */:\n return isAmbientModule(node.parent.parent) && ts.isSourceFile(node.parent.parent.parent) && !ts.isExternalModule(node.parent.parent.parent);\n }\n return false;\n }\n ts.isModuleAugmentationExternal = isModuleAugmentationExternal;\n function getNonAugmentationDeclaration(symbol) {\n var _a;\n return (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return !isExternalModuleAugmentation(d) && !(ts.isModuleDeclaration(d) && isGlobalScopeAugmentation(d)); });\n }\n ts.getNonAugmentationDeclaration = getNonAugmentationDeclaration;\n function isEffectiveExternalModule(node, compilerOptions) {\n return ts.isExternalModule(node) || compilerOptions.isolatedModules || ((getEmitModuleKind(compilerOptions) === ts.ModuleKind.CommonJS) && !!node.commonJsModuleIndicator);\n }\n ts.isEffectiveExternalModule = isEffectiveExternalModule;\n /**\n * Returns whether the source file will be treated as if it were in strict mode at runtime.\n */\n function isEffectiveStrictModeSourceFile(node, compilerOptions) {\n // We can only verify strict mode for JS/TS files\n switch (node.scriptKind) {\n case 1 /* JS */:\n case 3 /* TS */:\n case 2 /* JSX */:\n case 4 /* TSX */:\n break;\n default:\n return false;\n }\n // Strict mode does not matter for declaration files.\n if (node.isDeclarationFile) {\n return false;\n }\n // If `alwaysStrict` is set, then treat the file as strict.\n if (getStrictOptionValue(compilerOptions, \"alwaysStrict\")) {\n return true;\n }\n // Starting with a \"use strict\" directive indicates the file is strict.\n if (ts.startsWithUseStrict(node.statements)) {\n return true;\n }\n if (ts.isExternalModule(node) || compilerOptions.isolatedModules) {\n // ECMAScript Modules are always strict.\n if (getEmitModuleKind(compilerOptions) >= ts.ModuleKind.ES2015) {\n return true;\n }\n // Other modules are strict unless otherwise specified.\n return !compilerOptions.noImplicitUseStrict;\n }\n return false;\n }\n ts.isEffectiveStrictModeSourceFile = isEffectiveStrictModeSourceFile;\n function isBlockScope(node, parentNode) {\n switch (node.kind) {\n case 300 /* SourceFile */:\n case 261 /* CaseBlock */:\n case 290 /* CatchClause */:\n case 259 /* ModuleDeclaration */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 169 /* Constructor */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 165 /* PropertyDeclaration */:\n case 168 /* ClassStaticBlockDeclaration */:\n return true;\n case 233 /* Block */:\n // function block is not considered block-scope container\n // see comment in binder.ts: bind(...), case for SyntaxKind.Block\n return !ts.isFunctionLikeOrClassStaticBlockDeclaration(parentNode);\n }\n return false;\n }\n ts.isBlockScope = isBlockScope;\n function isDeclarationWithTypeParameters(node) {\n switch (node.kind) {\n case 333 /* JSDocCallbackTag */:\n case 340 /* JSDocTypedefTag */:\n case 318 /* JSDocSignature */:\n return true;\n default:\n ts.assertType(node);\n return isDeclarationWithTypeParameterChildren(node);\n }\n }\n ts.isDeclarationWithTypeParameters = isDeclarationWithTypeParameters;\n function isDeclarationWithTypeParameterChildren(node) {\n switch (node.kind) {\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 166 /* MethodSignature */:\n case 174 /* IndexSignature */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 312 /* JSDocFunctionType */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 339 /* JSDocTemplateTag */:\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return true;\n default:\n ts.assertType(node);\n return false;\n }\n }\n ts.isDeclarationWithTypeParameterChildren = isDeclarationWithTypeParameterChildren;\n function isAnyImportSyntax(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n return true;\n default:\n return false;\n }\n }\n ts.isAnyImportSyntax = isAnyImportSyntax;\n function isLateVisibilityPaintedStatement(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n case 235 /* VariableStatement */:\n case 255 /* ClassDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n return true;\n default:\n return false;\n }\n }\n ts.isLateVisibilityPaintedStatement = isLateVisibilityPaintedStatement;\n function hasPossibleExternalModuleReference(node) {\n return isAnyImportOrReExport(node) || ts.isModuleDeclaration(node) || ts.isImportTypeNode(node) || isImportCall(node);\n }\n ts.hasPossibleExternalModuleReference = hasPossibleExternalModuleReference;\n function isAnyImportOrReExport(node) {\n return isAnyImportSyntax(node) || ts.isExportDeclaration(node);\n }\n ts.isAnyImportOrReExport = isAnyImportOrReExport;\n // Gets the nearest enclosing block scope container that has the provided node\n // as a descendant, that is not the provided node.\n function getEnclosingBlockScopeContainer(node) {\n return ts.findAncestor(node.parent, function (current) { return isBlockScope(current, current.parent); });\n }\n ts.getEnclosingBlockScopeContainer = getEnclosingBlockScopeContainer;\n function forEachEnclosingBlockScopeContainer(node, cb) {\n var container = getEnclosingBlockScopeContainer(node);\n while (container) {\n cb(container);\n container = getEnclosingBlockScopeContainer(container);\n }\n }\n ts.forEachEnclosingBlockScopeContainer = forEachEnclosingBlockScopeContainer;\n // Return display name of an identifier\n // Computed property names will just be emitted as \"[]\", where is the source\n // text of the expression in the computed property.\n function declarationNameToString(name) {\n return !name || getFullWidth(name) === 0 ? \"(Missing)\" : getTextOfNode(name);\n }\n ts.declarationNameToString = declarationNameToString;\n function getNameFromIndexInfo(info) {\n return info.declaration ? declarationNameToString(info.declaration.parameters[0].name) : undefined;\n }\n ts.getNameFromIndexInfo = getNameFromIndexInfo;\n function isComputedNonLiteralName(name) {\n return name.kind === 160 /* ComputedPropertyName */ && !isStringOrNumericLiteralLike(name.expression);\n }\n ts.isComputedNonLiteralName = isComputedNonLiteralName;\n function getTextOfPropertyName(name) {\n switch (name.kind) {\n case 79 /* Identifier */:\n case 80 /* PrivateIdentifier */:\n return name.escapedText;\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return ts.escapeLeadingUnderscores(name.text);\n case 160 /* ComputedPropertyName */:\n if (isStringOrNumericLiteralLike(name.expression))\n return ts.escapeLeadingUnderscores(name.expression.text);\n return ts.Debug.fail(\"Text of property name cannot be read from non-literal-valued ComputedPropertyNames\");\n default:\n return ts.Debug.assertNever(name);\n }\n }\n ts.getTextOfPropertyName = getTextOfPropertyName;\n function entityNameToString(name) {\n switch (name.kind) {\n case 108 /* ThisKeyword */:\n return \"this\";\n case 80 /* PrivateIdentifier */:\n case 79 /* Identifier */:\n return getFullWidth(name) === 0 ? ts.idText(name) : getTextOfNode(name);\n case 159 /* QualifiedName */:\n return entityNameToString(name.left) + \".\" + entityNameToString(name.right);\n case 204 /* PropertyAccessExpression */:\n if (ts.isIdentifier(name.name) || ts.isPrivateIdentifier(name.name)) {\n return entityNameToString(name.expression) + \".\" + entityNameToString(name.name);\n }\n else {\n return ts.Debug.assertNever(name.name);\n }\n case 306 /* JSDocMemberName */:\n return entityNameToString(name.left) + entityNameToString(name.right);\n default:\n return ts.Debug.assertNever(name);\n }\n }\n ts.entityNameToString = entityNameToString;\n function createDiagnosticForNode(node, message, arg0, arg1, arg2, arg3) {\n var sourceFile = getSourceFileOfNode(node);\n return createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2, arg3);\n }\n ts.createDiagnosticForNode = createDiagnosticForNode;\n function createDiagnosticForNodeArray(sourceFile, nodes, message, arg0, arg1, arg2, arg3) {\n var start = ts.skipTrivia(sourceFile.text, nodes.pos);\n return createFileDiagnostic(sourceFile, start, nodes.end - start, message, arg0, arg1, arg2, arg3);\n }\n ts.createDiagnosticForNodeArray = createDiagnosticForNodeArray;\n function createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2, arg3) {\n var span = getErrorSpanForNode(sourceFile, node);\n return createFileDiagnostic(sourceFile, span.start, span.length, message, arg0, arg1, arg2, arg3);\n }\n ts.createDiagnosticForNodeInSourceFile = createDiagnosticForNodeInSourceFile;\n function createDiagnosticForNodeFromMessageChain(node, messageChain, relatedInformation) {\n var sourceFile = getSourceFileOfNode(node);\n var span = getErrorSpanForNode(sourceFile, node);\n return createFileDiagnosticFromMessageChain(sourceFile, span.start, span.length, messageChain, relatedInformation);\n }\n ts.createDiagnosticForNodeFromMessageChain = createDiagnosticForNodeFromMessageChain;\n function assertDiagnosticLocation(file, start, length) {\n ts.Debug.assertGreaterThanOrEqual(start, 0);\n ts.Debug.assertGreaterThanOrEqual(length, 0);\n if (file) {\n ts.Debug.assertLessThanOrEqual(start, file.text.length);\n ts.Debug.assertLessThanOrEqual(start + length, file.text.length);\n }\n }\n function createFileDiagnosticFromMessageChain(file, start, length, messageChain, relatedInformation) {\n assertDiagnosticLocation(file, start, length);\n return {\n file: file,\n start: start,\n length: length,\n code: messageChain.code,\n category: messageChain.category,\n messageText: messageChain.next ? messageChain : messageChain.messageText,\n relatedInformation: relatedInformation\n };\n }\n ts.createFileDiagnosticFromMessageChain = createFileDiagnosticFromMessageChain;\n function createDiagnosticForFileFromMessageChain(sourceFile, messageChain, relatedInformation) {\n return {\n file: sourceFile,\n start: 0,\n length: 0,\n code: messageChain.code,\n category: messageChain.category,\n messageText: messageChain.next ? messageChain : messageChain.messageText,\n relatedInformation: relatedInformation\n };\n }\n ts.createDiagnosticForFileFromMessageChain = createDiagnosticForFileFromMessageChain;\n function createDiagnosticForRange(sourceFile, range, message) {\n return {\n file: sourceFile,\n start: range.pos,\n length: range.end - range.pos,\n code: message.code,\n category: message.category,\n messageText: message.message,\n };\n }\n ts.createDiagnosticForRange = createDiagnosticForRange;\n function getSpanOfTokenAtPosition(sourceFile, pos) {\n var scanner = ts.createScanner(sourceFile.languageVersion, /*skipTrivia*/ true, sourceFile.languageVariant, sourceFile.text, /*onError:*/ undefined, pos);\n scanner.scan();\n var start = scanner.getTokenPos();\n return ts.createTextSpanFromBounds(start, scanner.getTextPos());\n }\n ts.getSpanOfTokenAtPosition = getSpanOfTokenAtPosition;\n function getErrorSpanForArrowFunction(sourceFile, node) {\n var pos = ts.skipTrivia(sourceFile.text, node.pos);\n if (node.body && node.body.kind === 233 /* Block */) {\n var startLine = ts.getLineAndCharacterOfPosition(sourceFile, node.body.pos).line;\n var endLine = ts.getLineAndCharacterOfPosition(sourceFile, node.body.end).line;\n if (startLine < endLine) {\n // The arrow function spans multiple lines,\n // make the error span be the first line, inclusive.\n return ts.createTextSpan(pos, getEndLinePosition(startLine, sourceFile) - pos + 1);\n }\n }\n return ts.createTextSpanFromBounds(pos, node.end);\n }\n function getErrorSpanForNode(sourceFile, node) {\n var errorNode = node;\n switch (node.kind) {\n case 300 /* SourceFile */:\n var pos_1 = ts.skipTrivia(sourceFile.text, 0, /*stopAfterLineBreak*/ false);\n if (pos_1 === sourceFile.text.length) {\n // file is empty - return span for the beginning of the file\n return ts.createTextSpan(0, 0);\n }\n return getSpanOfTokenAtPosition(sourceFile, pos_1);\n // This list is a work in progress. Add missing node kinds to improve their error\n // spans.\n case 252 /* VariableDeclaration */:\n case 201 /* BindingElement */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 258 /* EnumDeclaration */:\n case 294 /* EnumMember */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 257 /* TypeAliasDeclaration */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 266 /* NamespaceImport */:\n errorNode = node.name;\n break;\n case 212 /* ArrowFunction */:\n return getErrorSpanForArrowFunction(sourceFile, node);\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n var start = ts.skipTrivia(sourceFile.text, node.pos);\n var end = node.statements.length > 0 ? node.statements[0].pos : node.end;\n return ts.createTextSpanFromBounds(start, end);\n }\n if (errorNode === undefined) {\n // If we don't have a better node, then just set the error on the first token of\n // construct.\n return getSpanOfTokenAtPosition(sourceFile, node.pos);\n }\n ts.Debug.assert(!ts.isJSDoc(errorNode));\n var isMissing = nodeIsMissing(errorNode);\n var pos = isMissing || ts.isJsxText(node)\n ? errorNode.pos\n : ts.skipTrivia(sourceFile.text, errorNode.pos);\n // These asserts should all be satisfied for a properly constructed `errorNode`.\n if (isMissing) {\n ts.Debug.assert(pos === errorNode.pos, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n ts.Debug.assert(pos === errorNode.end, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n }\n else {\n ts.Debug.assert(pos >= errorNode.pos, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n ts.Debug.assert(pos <= errorNode.end, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809\");\n }\n return ts.createTextSpanFromBounds(pos, errorNode.end);\n }\n ts.getErrorSpanForNode = getErrorSpanForNode;\n function isExternalOrCommonJsModule(file) {\n return (file.externalModuleIndicator || file.commonJsModuleIndicator) !== undefined;\n }\n ts.isExternalOrCommonJsModule = isExternalOrCommonJsModule;\n function isJsonSourceFile(file) {\n return file.scriptKind === 6 /* JSON */;\n }\n ts.isJsonSourceFile = isJsonSourceFile;\n function isEnumConst(node) {\n return !!(ts.getCombinedModifierFlags(node) & 2048 /* Const */);\n }\n ts.isEnumConst = isEnumConst;\n function isDeclarationReadonly(declaration) {\n return !!(ts.getCombinedModifierFlags(declaration) & 64 /* Readonly */ && !ts.isParameterPropertyDeclaration(declaration, declaration.parent));\n }\n ts.isDeclarationReadonly = isDeclarationReadonly;\n function isVarConst(node) {\n return !!(ts.getCombinedNodeFlags(node) & 2 /* Const */);\n }\n ts.isVarConst = isVarConst;\n function isLet(node) {\n return !!(ts.getCombinedNodeFlags(node) & 1 /* Let */);\n }\n ts.isLet = isLet;\n function isSuperCall(n) {\n return n.kind === 206 /* CallExpression */ && n.expression.kind === 106 /* SuperKeyword */;\n }\n ts.isSuperCall = isSuperCall;\n function isImportCall(n) {\n return n.kind === 206 /* CallExpression */ && n.expression.kind === 100 /* ImportKeyword */;\n }\n ts.isImportCall = isImportCall;\n function isImportMeta(n) {\n return ts.isMetaProperty(n)\n && n.keywordToken === 100 /* ImportKeyword */\n && n.name.escapedText === \"meta\";\n }\n ts.isImportMeta = isImportMeta;\n function isLiteralImportTypeNode(n) {\n return ts.isImportTypeNode(n) && ts.isLiteralTypeNode(n.argument) && ts.isStringLiteral(n.argument.literal);\n }\n ts.isLiteralImportTypeNode = isLiteralImportTypeNode;\n function isPrologueDirective(node) {\n return node.kind === 236 /* ExpressionStatement */\n && node.expression.kind === 10 /* StringLiteral */;\n }\n ts.isPrologueDirective = isPrologueDirective;\n function isCustomPrologue(node) {\n return !!(getEmitFlags(node) & 1048576 /* CustomPrologue */);\n }\n ts.isCustomPrologue = isCustomPrologue;\n function isHoistedFunction(node) {\n return isCustomPrologue(node)\n && ts.isFunctionDeclaration(node);\n }\n ts.isHoistedFunction = isHoistedFunction;\n function isHoistedVariable(node) {\n return ts.isIdentifier(node.name)\n && !node.initializer;\n }\n function isHoistedVariableStatement(node) {\n return isCustomPrologue(node)\n && ts.isVariableStatement(node)\n && ts.every(node.declarationList.declarations, isHoistedVariable);\n }\n ts.isHoistedVariableStatement = isHoistedVariableStatement;\n function getLeadingCommentRangesOfNode(node, sourceFileOfNode) {\n return node.kind !== 11 /* JsxText */ ? ts.getLeadingCommentRanges(sourceFileOfNode.text, node.pos) : undefined;\n }\n ts.getLeadingCommentRangesOfNode = getLeadingCommentRangesOfNode;\n function getJSDocCommentRanges(node, text) {\n var commentRanges = (node.kind === 162 /* Parameter */ ||\n node.kind === 161 /* TypeParameter */ ||\n node.kind === 211 /* FunctionExpression */ ||\n node.kind === 212 /* ArrowFunction */ ||\n node.kind === 210 /* ParenthesizedExpression */ ||\n node.kind === 252 /* VariableDeclaration */) ?\n ts.concatenate(ts.getTrailingCommentRanges(text, node.pos), ts.getLeadingCommentRanges(text, node.pos)) :\n ts.getLeadingCommentRanges(text, node.pos);\n // True if the comment starts with '/**' but not if it is '/**/'\n return ts.filter(commentRanges, function (comment) {\n return text.charCodeAt(comment.pos + 1) === 42 /* asterisk */ &&\n text.charCodeAt(comment.pos + 2) === 42 /* asterisk */ &&\n text.charCodeAt(comment.pos + 3) !== 47 /* slash */;\n });\n }\n ts.getJSDocCommentRanges = getJSDocCommentRanges;\n ts.fullTripleSlashReferencePathRegEx = /^(\\/\\/\\/\\s*/;\n var fullTripleSlashReferenceTypeReferenceDirectiveRegEx = /^(\\/\\/\\/\\s*/;\n ts.fullTripleSlashAMDReferencePathRegEx = /^(\\/\\/\\/\\s*/;\n var defaultLibReferenceRegEx = /^(\\/\\/\\/\\s*/;\n function isPartOfTypeNode(node) {\n if (175 /* FirstTypeNode */ <= node.kind && node.kind <= 198 /* LastTypeNode */) {\n return true;\n }\n switch (node.kind) {\n case 129 /* AnyKeyword */:\n case 153 /* UnknownKeyword */:\n case 145 /* NumberKeyword */:\n case 156 /* BigIntKeyword */:\n case 148 /* StringKeyword */:\n case 132 /* BooleanKeyword */:\n case 149 /* SymbolKeyword */:\n case 146 /* ObjectKeyword */:\n case 151 /* UndefinedKeyword */:\n case 142 /* NeverKeyword */:\n return true;\n case 114 /* VoidKeyword */:\n return node.parent.kind !== 215 /* VoidExpression */;\n case 226 /* ExpressionWithTypeArguments */:\n return !isExpressionWithTypeArgumentsInClassExtendsClause(node);\n case 161 /* TypeParameter */:\n return node.parent.kind === 193 /* MappedType */ || node.parent.kind === 188 /* InferType */;\n // Identifiers and qualified names may be type nodes, depending on their context. Climb\n // above them to find the lowest container\n case 79 /* Identifier */:\n // If the identifier is the RHS of a qualified name, then it's a type iff its parent is.\n if (node.parent.kind === 159 /* QualifiedName */ && node.parent.right === node) {\n node = node.parent;\n }\n else if (node.parent.kind === 204 /* PropertyAccessExpression */ && node.parent.name === node) {\n node = node.parent;\n }\n // At this point, node is either a qualified name or an identifier\n ts.Debug.assert(node.kind === 79 /* Identifier */ || node.kind === 159 /* QualifiedName */ || node.kind === 204 /* PropertyAccessExpression */, \"'node' was expected to be a qualified name, identifier or property access in 'isPartOfTypeNode'.\");\n // falls through\n case 159 /* QualifiedName */:\n case 204 /* PropertyAccessExpression */:\n case 108 /* ThisKeyword */: {\n var parent = node.parent;\n if (parent.kind === 179 /* TypeQuery */) {\n return false;\n }\n if (parent.kind === 198 /* ImportType */) {\n return !parent.isTypeOf;\n }\n // Do not recursively call isPartOfTypeNode on the parent. In the example:\n //\n // let a: A.B.C;\n //\n // Calling isPartOfTypeNode would consider the qualified name A.B a type node.\n // Only C and A.B.C are type nodes.\n if (175 /* FirstTypeNode */ <= parent.kind && parent.kind <= 198 /* LastTypeNode */) {\n return true;\n }\n switch (parent.kind) {\n case 226 /* ExpressionWithTypeArguments */:\n return !isExpressionWithTypeArgumentsInClassExtendsClause(parent);\n case 161 /* TypeParameter */:\n return node === parent.constraint;\n case 339 /* JSDocTemplateTag */:\n return node === parent.constraint;\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 162 /* Parameter */:\n case 252 /* VariableDeclaration */:\n return node === parent.type;\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 169 /* Constructor */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return node === parent.type;\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n return node === parent.type;\n case 209 /* TypeAssertionExpression */:\n return node === parent.type;\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n return ts.contains(parent.typeArguments, node);\n case 208 /* TaggedTemplateExpression */:\n // TODO (drosen): TaggedTemplateExpressions may eventually support type arguments.\n return false;\n }\n }\n }\n return false;\n }\n ts.isPartOfTypeNode = isPartOfTypeNode;\n function isChildOfNodeWithKind(node, kind) {\n while (node) {\n if (node.kind === kind) {\n return true;\n }\n node = node.parent;\n }\n return false;\n }\n ts.isChildOfNodeWithKind = isChildOfNodeWithKind;\n // Warning: This has the same semantics as the forEach family of functions,\n // in that traversal terminates in the event that 'visitor' supplies a truthy value.\n function forEachReturnStatement(body, visitor) {\n return traverse(body);\n function traverse(node) {\n switch (node.kind) {\n case 245 /* ReturnStatement */:\n return visitor(node);\n case 261 /* CaseBlock */:\n case 233 /* Block */:\n case 237 /* IfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 246 /* WithStatement */:\n case 247 /* SwitchStatement */:\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n case 248 /* LabeledStatement */:\n case 250 /* TryStatement */:\n case 290 /* CatchClause */:\n return ts.forEachChild(node, traverse);\n }\n }\n }\n ts.forEachReturnStatement = forEachReturnStatement;\n function forEachYieldExpression(body, visitor) {\n return traverse(body);\n function traverse(node) {\n switch (node.kind) {\n case 222 /* YieldExpression */:\n visitor(node);\n var operand = node.expression;\n if (operand) {\n traverse(operand);\n }\n return;\n case 258 /* EnumDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n // These are not allowed inside a generator now, but eventually they may be allowed\n // as local types. Regardless, skip them to avoid the work.\n return;\n default:\n if (ts.isFunctionLike(node)) {\n if (node.name && node.name.kind === 160 /* ComputedPropertyName */) {\n // Note that we will not include methods/accessors of a class because they would require\n // first descending into the class. This is by design.\n traverse(node.name.expression);\n return;\n }\n }\n else if (!isPartOfTypeNode(node)) {\n // This is the general case, which should include mostly expressions and statements.\n // Also includes NodeArrays.\n ts.forEachChild(node, traverse);\n }\n }\n }\n }\n ts.forEachYieldExpression = forEachYieldExpression;\n /**\n * Gets the most likely element type for a TypeNode. This is not an exhaustive test\n * as it assumes a rest argument can only be an array type (either T[], or Array).\n *\n * @param node The type node.\n */\n function getRestParameterElementType(node) {\n if (node && node.kind === 181 /* ArrayType */) {\n return node.elementType;\n }\n else if (node && node.kind === 176 /* TypeReference */) {\n return ts.singleOrUndefined(node.typeArguments);\n }\n else {\n return undefined;\n }\n }\n ts.getRestParameterElementType = getRestParameterElementType;\n function getMembersOfDeclaration(node) {\n switch (node.kind) {\n case 256 /* InterfaceDeclaration */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 180 /* TypeLiteral */:\n return node.members;\n case 203 /* ObjectLiteralExpression */:\n return node.properties;\n }\n }\n ts.getMembersOfDeclaration = getMembersOfDeclaration;\n function isVariableLike(node) {\n if (node) {\n switch (node.kind) {\n case 201 /* BindingElement */:\n case 294 /* EnumMember */:\n case 162 /* Parameter */:\n case 291 /* PropertyAssignment */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 292 /* ShorthandPropertyAssignment */:\n case 252 /* VariableDeclaration */:\n return true;\n }\n }\n return false;\n }\n ts.isVariableLike = isVariableLike;\n function isVariableLikeOrAccessor(node) {\n return isVariableLike(node) || ts.isAccessor(node);\n }\n ts.isVariableLikeOrAccessor = isVariableLikeOrAccessor;\n function isVariableDeclarationInVariableStatement(node) {\n return node.parent.kind === 253 /* VariableDeclarationList */\n && node.parent.parent.kind === 235 /* VariableStatement */;\n }\n ts.isVariableDeclarationInVariableStatement = isVariableDeclarationInVariableStatement;\n function isValidESSymbolDeclaration(node) {\n return ts.isVariableDeclaration(node) ? isVarConst(node) && ts.isIdentifier(node.name) && isVariableDeclarationInVariableStatement(node) :\n ts.isPropertyDeclaration(node) ? hasEffectiveReadonlyModifier(node) && hasStaticModifier(node) :\n ts.isPropertySignature(node) && hasEffectiveReadonlyModifier(node);\n }\n ts.isValidESSymbolDeclaration = isValidESSymbolDeclaration;\n function introducesArgumentsExoticObject(node) {\n switch (node.kind) {\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n return true;\n }\n return false;\n }\n ts.introducesArgumentsExoticObject = introducesArgumentsExoticObject;\n function unwrapInnermostStatementOfLabel(node, beforeUnwrapLabelCallback) {\n while (true) {\n if (beforeUnwrapLabelCallback) {\n beforeUnwrapLabelCallback(node);\n }\n if (node.statement.kind !== 248 /* LabeledStatement */) {\n return node.statement;\n }\n node = node.statement;\n }\n }\n ts.unwrapInnermostStatementOfLabel = unwrapInnermostStatementOfLabel;\n function isFunctionBlock(node) {\n return node && node.kind === 233 /* Block */ && ts.isFunctionLike(node.parent);\n }\n ts.isFunctionBlock = isFunctionBlock;\n function isObjectLiteralMethod(node) {\n return node && node.kind === 167 /* MethodDeclaration */ && node.parent.kind === 203 /* ObjectLiteralExpression */;\n }\n ts.isObjectLiteralMethod = isObjectLiteralMethod;\n function isObjectLiteralOrClassExpressionMethod(node) {\n return node.kind === 167 /* MethodDeclaration */ &&\n (node.parent.kind === 203 /* ObjectLiteralExpression */ ||\n node.parent.kind === 224 /* ClassExpression */);\n }\n ts.isObjectLiteralOrClassExpressionMethod = isObjectLiteralOrClassExpressionMethod;\n function isIdentifierTypePredicate(predicate) {\n return predicate && predicate.kind === 1 /* Identifier */;\n }\n ts.isIdentifierTypePredicate = isIdentifierTypePredicate;\n function isThisTypePredicate(predicate) {\n return predicate && predicate.kind === 0 /* This */;\n }\n ts.isThisTypePredicate = isThisTypePredicate;\n function getPropertyAssignment(objectLiteral, key, key2) {\n return objectLiteral.properties.filter(function (property) {\n if (property.kind === 291 /* PropertyAssignment */) {\n var propName = getTextOfPropertyName(property.name);\n return key === propName || (!!key2 && key2 === propName);\n }\n return false;\n });\n }\n ts.getPropertyAssignment = getPropertyAssignment;\n function getPropertyArrayElementValue(objectLiteral, propKey, elementValue) {\n return ts.firstDefined(getPropertyAssignment(objectLiteral, propKey), function (property) {\n return ts.isArrayLiteralExpression(property.initializer) ?\n ts.find(property.initializer.elements, function (element) { return ts.isStringLiteral(element) && element.text === elementValue; }) :\n undefined;\n });\n }\n ts.getPropertyArrayElementValue = getPropertyArrayElementValue;\n function getTsConfigObjectLiteralExpression(tsConfigSourceFile) {\n if (tsConfigSourceFile && tsConfigSourceFile.statements.length) {\n var expression = tsConfigSourceFile.statements[0].expression;\n return ts.tryCast(expression, ts.isObjectLiteralExpression);\n }\n }\n ts.getTsConfigObjectLiteralExpression = getTsConfigObjectLiteralExpression;\n function getTsConfigPropArrayElementValue(tsConfigSourceFile, propKey, elementValue) {\n return ts.firstDefined(getTsConfigPropArray(tsConfigSourceFile, propKey), function (property) {\n return ts.isArrayLiteralExpression(property.initializer) ?\n ts.find(property.initializer.elements, function (element) { return ts.isStringLiteral(element) && element.text === elementValue; }) :\n undefined;\n });\n }\n ts.getTsConfigPropArrayElementValue = getTsConfigPropArrayElementValue;\n function getTsConfigPropArray(tsConfigSourceFile, propKey) {\n var jsonObjectLiteral = getTsConfigObjectLiteralExpression(tsConfigSourceFile);\n return jsonObjectLiteral ? getPropertyAssignment(jsonObjectLiteral, propKey) : ts.emptyArray;\n }\n ts.getTsConfigPropArray = getTsConfigPropArray;\n function getContainingFunction(node) {\n return ts.findAncestor(node.parent, ts.isFunctionLike);\n }\n ts.getContainingFunction = getContainingFunction;\n function getContainingFunctionDeclaration(node) {\n return ts.findAncestor(node.parent, ts.isFunctionLikeDeclaration);\n }\n ts.getContainingFunctionDeclaration = getContainingFunctionDeclaration;\n function getContainingClass(node) {\n return ts.findAncestor(node.parent, ts.isClassLike);\n }\n ts.getContainingClass = getContainingClass;\n function getContainingClassStaticBlock(node) {\n return ts.findAncestor(node.parent, function (n) {\n if (ts.isClassLike(n) || ts.isFunctionLike(n)) {\n return \"quit\";\n }\n return ts.isClassStaticBlockDeclaration(n);\n });\n }\n ts.getContainingClassStaticBlock = getContainingClassStaticBlock;\n function getContainingFunctionOrClassStaticBlock(node) {\n return ts.findAncestor(node.parent, ts.isFunctionLikeOrClassStaticBlockDeclaration);\n }\n ts.getContainingFunctionOrClassStaticBlock = getContainingFunctionOrClassStaticBlock;\n function getThisContainer(node, includeArrowFunctions) {\n ts.Debug.assert(node.kind !== 300 /* SourceFile */);\n while (true) {\n node = node.parent;\n if (!node) {\n return ts.Debug.fail(); // If we never pass in a SourceFile, this should be unreachable, since we'll stop when we reach that.\n }\n switch (node.kind) {\n case 160 /* ComputedPropertyName */:\n // If the grandparent node is an object literal (as opposed to a class),\n // then the computed property is not a 'this' container.\n // A computed property name in a class needs to be a this container\n // so that we can error on it.\n if (ts.isClassLike(node.parent.parent)) {\n return node;\n }\n // If this is a computed property, then the parent should not\n // make it a this container. The parent might be a property\n // in an object literal, like a method or accessor. But in order for\n // such a parent to be a this container, the reference must be in\n // the *body* of the container.\n node = node.parent;\n break;\n case 163 /* Decorator */:\n // Decorators are always applied outside of the body of a class or method.\n if (node.parent.kind === 162 /* Parameter */ && ts.isClassElement(node.parent.parent)) {\n // If the decorator's parent is a Parameter, we resolve the this container from\n // the grandparent class declaration.\n node = node.parent.parent;\n }\n else if (ts.isClassElement(node.parent)) {\n // If the decorator's parent is a class element, we resolve the 'this' container\n // from the parent class declaration.\n node = node.parent;\n }\n break;\n case 212 /* ArrowFunction */:\n if (!includeArrowFunctions) {\n continue;\n }\n // falls through\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 259 /* ModuleDeclaration */:\n case 168 /* ClassStaticBlockDeclaration */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n case 258 /* EnumDeclaration */:\n case 300 /* SourceFile */:\n return node;\n }\n }\n }\n ts.getThisContainer = getThisContainer;\n function isInTopLevelContext(node) {\n // The name of a class or function declaration is a BindingIdentifier in its surrounding scope.\n if (ts.isIdentifier(node) && (ts.isClassDeclaration(node.parent) || ts.isFunctionDeclaration(node.parent)) && node.parent.name === node) {\n node = node.parent;\n }\n var container = getThisContainer(node, /*includeArrowFunctions*/ true);\n return ts.isSourceFile(container);\n }\n ts.isInTopLevelContext = isInTopLevelContext;\n function getNewTargetContainer(node) {\n var container = getThisContainer(node, /*includeArrowFunctions*/ false);\n if (container) {\n switch (container.kind) {\n case 169 /* Constructor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n return container;\n }\n }\n return undefined;\n }\n ts.getNewTargetContainer = getNewTargetContainer;\n /**\n * Given an super call/property node, returns the closest node where\n * - a super call/property access is legal in the node and not legal in the parent node the node.\n * i.e. super call is legal in constructor but not legal in the class body.\n * - the container is an arrow function (so caller might need to call getSuperContainer again in case it needs to climb higher)\n * - a super call/property is definitely illegal in the container (but might be legal in some subnode)\n * i.e. super property access is illegal in function declaration but can be legal in the statement list\n */\n function getSuperContainer(node, stopOnFunctions) {\n while (true) {\n node = node.parent;\n if (!node) {\n return node;\n }\n switch (node.kind) {\n case 160 /* ComputedPropertyName */:\n node = node.parent;\n break;\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n if (!stopOnFunctions) {\n continue;\n }\n // falls through\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 168 /* ClassStaticBlockDeclaration */:\n return node;\n case 163 /* Decorator */:\n // Decorators are always applied outside of the body of a class or method.\n if (node.parent.kind === 162 /* Parameter */ && ts.isClassElement(node.parent.parent)) {\n // If the decorator's parent is a Parameter, we resolve the this container from\n // the grandparent class declaration.\n node = node.parent.parent;\n }\n else if (ts.isClassElement(node.parent)) {\n // If the decorator's parent is a class element, we resolve the 'this' container\n // from the parent class declaration.\n node = node.parent;\n }\n break;\n }\n }\n }\n ts.getSuperContainer = getSuperContainer;\n function getImmediatelyInvokedFunctionExpression(func) {\n if (func.kind === 211 /* FunctionExpression */ || func.kind === 212 /* ArrowFunction */) {\n var prev = func;\n var parent = func.parent;\n while (parent.kind === 210 /* ParenthesizedExpression */) {\n prev = parent;\n parent = parent.parent;\n }\n if (parent.kind === 206 /* CallExpression */ && parent.expression === prev) {\n return parent;\n }\n }\n }\n ts.getImmediatelyInvokedFunctionExpression = getImmediatelyInvokedFunctionExpression;\n function isSuperOrSuperProperty(node) {\n return node.kind === 106 /* SuperKeyword */\n || isSuperProperty(node);\n }\n ts.isSuperOrSuperProperty = isSuperOrSuperProperty;\n /**\n * Determines whether a node is a property or element access expression for `super`.\n */\n function isSuperProperty(node) {\n var kind = node.kind;\n return (kind === 204 /* PropertyAccessExpression */ || kind === 205 /* ElementAccessExpression */)\n && node.expression.kind === 106 /* SuperKeyword */;\n }\n ts.isSuperProperty = isSuperProperty;\n /**\n * Determines whether a node is a property or element access expression for `this`.\n */\n function isThisProperty(node) {\n var kind = node.kind;\n return (kind === 204 /* PropertyAccessExpression */ || kind === 205 /* ElementAccessExpression */)\n && node.expression.kind === 108 /* ThisKeyword */;\n }\n ts.isThisProperty = isThisProperty;\n function isThisInitializedDeclaration(node) {\n var _a;\n return !!node && ts.isVariableDeclaration(node) && ((_a = node.initializer) === null || _a === void 0 ? void 0 : _a.kind) === 108 /* ThisKeyword */;\n }\n ts.isThisInitializedDeclaration = isThisInitializedDeclaration;\n function isThisInitializedObjectBindingExpression(node) {\n return !!node\n && (ts.isShorthandPropertyAssignment(node) || ts.isPropertyAssignment(node))\n && ts.isBinaryExpression(node.parent.parent)\n && node.parent.parent.operatorToken.kind === 63 /* EqualsToken */\n && node.parent.parent.right.kind === 108 /* ThisKeyword */;\n }\n ts.isThisInitializedObjectBindingExpression = isThisInitializedObjectBindingExpression;\n function getEntityNameFromTypeNode(node) {\n switch (node.kind) {\n case 176 /* TypeReference */:\n return node.typeName;\n case 226 /* ExpressionWithTypeArguments */:\n return isEntityNameExpression(node.expression)\n ? node.expression\n : undefined;\n // TODO(rbuckton): These aren't valid TypeNodes, but we treat them as such because of `isPartOfTypeNode`, which returns `true` for things that aren't `TypeNode`s.\n case 79 /* Identifier */:\n case 159 /* QualifiedName */:\n return node;\n }\n return undefined;\n }\n ts.getEntityNameFromTypeNode = getEntityNameFromTypeNode;\n function getInvokedExpression(node) {\n switch (node.kind) {\n case 208 /* TaggedTemplateExpression */:\n return node.tag;\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n return node.tagName;\n default:\n return node.expression;\n }\n }\n ts.getInvokedExpression = getInvokedExpression;\n function nodeCanBeDecorated(node, parent, grandparent) {\n // private names cannot be used with decorators yet\n if (ts.isNamedDeclaration(node) && ts.isPrivateIdentifier(node.name)) {\n return false;\n }\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n // classes are valid targets\n return true;\n case 165 /* PropertyDeclaration */:\n // property declarations are valid if their parent is a class declaration.\n return parent.kind === 255 /* ClassDeclaration */;\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n // if this method has a body and its parent is a class declaration, this is a valid target.\n return node.body !== undefined\n && parent.kind === 255 /* ClassDeclaration */;\n case 162 /* Parameter */:\n // if the parameter's parent has a body and its grandparent is a class declaration, this is a valid target;\n return parent.body !== undefined\n && (parent.kind === 169 /* Constructor */\n || parent.kind === 167 /* MethodDeclaration */\n || parent.kind === 171 /* SetAccessor */)\n && grandparent.kind === 255 /* ClassDeclaration */;\n }\n return false;\n }\n ts.nodeCanBeDecorated = nodeCanBeDecorated;\n function nodeIsDecorated(node, parent, grandparent) {\n return node.decorators !== undefined\n && nodeCanBeDecorated(node, parent, grandparent); // TODO: GH#18217\n }\n ts.nodeIsDecorated = nodeIsDecorated;\n function nodeOrChildIsDecorated(node, parent, grandparent) {\n return nodeIsDecorated(node, parent, grandparent) || childIsDecorated(node, parent); // TODO: GH#18217\n }\n ts.nodeOrChildIsDecorated = nodeOrChildIsDecorated;\n function childIsDecorated(node, parent) {\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n return ts.some(node.members, function (m) { return nodeOrChildIsDecorated(m, node, parent); }); // TODO: GH#18217\n case 167 /* MethodDeclaration */:\n case 171 /* SetAccessor */:\n case 169 /* Constructor */:\n return ts.some(node.parameters, function (p) { return nodeIsDecorated(p, node, parent); }); // TODO: GH#18217\n default:\n return false;\n }\n }\n ts.childIsDecorated = childIsDecorated;\n function classOrConstructorParameterIsDecorated(node) {\n if (nodeIsDecorated(node))\n return true;\n var constructor = getFirstConstructorWithBody(node);\n return !!constructor && childIsDecorated(constructor, node);\n }\n ts.classOrConstructorParameterIsDecorated = classOrConstructorParameterIsDecorated;\n function isJSXTagName(node) {\n var parent = node.parent;\n if (parent.kind === 278 /* JsxOpeningElement */ ||\n parent.kind === 277 /* JsxSelfClosingElement */ ||\n parent.kind === 279 /* JsxClosingElement */) {\n return parent.tagName === node;\n }\n return false;\n }\n ts.isJSXTagName = isJSXTagName;\n function isExpressionNode(node) {\n switch (node.kind) {\n case 106 /* SuperKeyword */:\n case 104 /* NullKeyword */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 13 /* RegularExpressionLiteral */:\n case 202 /* ArrayLiteralExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 208 /* TaggedTemplateExpression */:\n case 227 /* AsExpression */:\n case 209 /* TypeAssertionExpression */:\n case 228 /* NonNullExpression */:\n case 210 /* ParenthesizedExpression */:\n case 211 /* FunctionExpression */:\n case 224 /* ClassExpression */:\n case 212 /* ArrowFunction */:\n case 215 /* VoidExpression */:\n case 213 /* DeleteExpression */:\n case 214 /* TypeOfExpression */:\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n case 219 /* BinaryExpression */:\n case 220 /* ConditionalExpression */:\n case 223 /* SpreadElement */:\n case 221 /* TemplateExpression */:\n case 225 /* OmittedExpression */:\n case 276 /* JsxElement */:\n case 277 /* JsxSelfClosingElement */:\n case 280 /* JsxFragment */:\n case 222 /* YieldExpression */:\n case 216 /* AwaitExpression */:\n case 229 /* MetaProperty */:\n return true;\n case 159 /* QualifiedName */:\n while (node.parent.kind === 159 /* QualifiedName */) {\n node = node.parent;\n }\n return node.parent.kind === 179 /* TypeQuery */ || ts.isJSDocLinkLike(node.parent) || ts.isJSDocNameReference(node.parent) || ts.isJSDocMemberName(node.parent) || isJSXTagName(node);\n case 306 /* JSDocMemberName */:\n while (ts.isJSDocMemberName(node.parent)) {\n node = node.parent;\n }\n return node.parent.kind === 179 /* TypeQuery */ || ts.isJSDocLinkLike(node.parent) || ts.isJSDocNameReference(node.parent) || ts.isJSDocMemberName(node.parent) || isJSXTagName(node);\n case 79 /* Identifier */:\n if (node.parent.kind === 179 /* TypeQuery */ || ts.isJSDocLinkLike(node.parent) || ts.isJSDocNameReference(node.parent) || ts.isJSDocMemberName(node.parent) || isJSXTagName(node)) {\n return true;\n }\n // falls through\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 108 /* ThisKeyword */:\n return isInExpressionContext(node);\n default:\n return false;\n }\n }\n ts.isExpressionNode = isExpressionNode;\n function isInExpressionContext(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 294 /* EnumMember */:\n case 291 /* PropertyAssignment */:\n case 201 /* BindingElement */:\n return parent.initializer === node;\n case 236 /* ExpressionStatement */:\n case 237 /* IfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 245 /* ReturnStatement */:\n case 246 /* WithStatement */:\n case 247 /* SwitchStatement */:\n case 287 /* CaseClause */:\n case 249 /* ThrowStatement */:\n return parent.expression === node;\n case 240 /* ForStatement */:\n var forStatement = parent;\n return (forStatement.initializer === node && forStatement.initializer.kind !== 253 /* VariableDeclarationList */) ||\n forStatement.condition === node ||\n forStatement.incrementor === node;\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n var forInStatement = parent;\n return (forInStatement.initializer === node && forInStatement.initializer.kind !== 253 /* VariableDeclarationList */) ||\n forInStatement.expression === node;\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n return node === parent.expression;\n case 231 /* TemplateSpan */:\n return node === parent.expression;\n case 160 /* ComputedPropertyName */:\n return node === parent.expression;\n case 163 /* Decorator */:\n case 286 /* JsxExpression */:\n case 285 /* JsxSpreadAttribute */:\n case 293 /* SpreadAssignment */:\n return true;\n case 226 /* ExpressionWithTypeArguments */:\n return parent.expression === node && isExpressionWithTypeArgumentsInClassExtendsClause(parent);\n case 292 /* ShorthandPropertyAssignment */:\n return parent.objectAssignmentInitializer === node;\n default:\n return isExpressionNode(parent);\n }\n }\n ts.isInExpressionContext = isInExpressionContext;\n function isPartOfTypeQuery(node) {\n while (node.kind === 159 /* QualifiedName */ || node.kind === 79 /* Identifier */) {\n node = node.parent;\n }\n return node.kind === 179 /* TypeQuery */;\n }\n ts.isPartOfTypeQuery = isPartOfTypeQuery;\n function isNamespaceReexportDeclaration(node) {\n return ts.isNamespaceExport(node) && !!node.parent.moduleSpecifier;\n }\n ts.isNamespaceReexportDeclaration = isNamespaceReexportDeclaration;\n function isExternalModuleImportEqualsDeclaration(node) {\n return node.kind === 263 /* ImportEqualsDeclaration */ && node.moduleReference.kind === 275 /* ExternalModuleReference */;\n }\n ts.isExternalModuleImportEqualsDeclaration = isExternalModuleImportEqualsDeclaration;\n function getExternalModuleImportEqualsDeclarationExpression(node) {\n ts.Debug.assert(isExternalModuleImportEqualsDeclaration(node));\n return node.moduleReference.expression;\n }\n ts.getExternalModuleImportEqualsDeclarationExpression = getExternalModuleImportEqualsDeclarationExpression;\n function getExternalModuleRequireArgument(node) {\n return isRequireVariableDeclaration(node) && getLeftmostAccessExpression(node.initializer).arguments[0];\n }\n ts.getExternalModuleRequireArgument = getExternalModuleRequireArgument;\n function isInternalModuleImportEqualsDeclaration(node) {\n return node.kind === 263 /* ImportEqualsDeclaration */ && node.moduleReference.kind !== 275 /* ExternalModuleReference */;\n }\n ts.isInternalModuleImportEqualsDeclaration = isInternalModuleImportEqualsDeclaration;\n function isSourceFileJS(file) {\n return isInJSFile(file);\n }\n ts.isSourceFileJS = isSourceFileJS;\n function isSourceFileNotJS(file) {\n return !isInJSFile(file);\n }\n ts.isSourceFileNotJS = isSourceFileNotJS;\n function isInJSFile(node) {\n return !!node && !!(node.flags & 131072 /* JavaScriptFile */);\n }\n ts.isInJSFile = isInJSFile;\n function isInJsonFile(node) {\n return !!node && !!(node.flags & 33554432 /* JsonFile */);\n }\n ts.isInJsonFile = isInJsonFile;\n function isSourceFileNotJson(file) {\n return !isJsonSourceFile(file);\n }\n ts.isSourceFileNotJson = isSourceFileNotJson;\n function isInJSDoc(node) {\n return !!node && !!(node.flags & 4194304 /* JSDoc */);\n }\n ts.isInJSDoc = isInJSDoc;\n function isJSDocIndexSignature(node) {\n return ts.isTypeReferenceNode(node) &&\n ts.isIdentifier(node.typeName) &&\n node.typeName.escapedText === \"Object\" &&\n node.typeArguments && node.typeArguments.length === 2 &&\n (node.typeArguments[0].kind === 148 /* StringKeyword */ || node.typeArguments[0].kind === 145 /* NumberKeyword */);\n }\n ts.isJSDocIndexSignature = isJSDocIndexSignature;\n function isRequireCall(callExpression, requireStringLiteralLikeArgument) {\n if (callExpression.kind !== 206 /* CallExpression */) {\n return false;\n }\n var _a = callExpression, expression = _a.expression, args = _a.arguments;\n if (expression.kind !== 79 /* Identifier */ || expression.escapedText !== \"require\") {\n return false;\n }\n if (args.length !== 1) {\n return false;\n }\n var arg = args[0];\n return !requireStringLiteralLikeArgument || ts.isStringLiteralLike(arg);\n }\n ts.isRequireCall = isRequireCall;\n /**\n * Returns true if the node is a VariableDeclaration initialized to a require call (see `isRequireCall`).\n * This function does not test if the node is in a JavaScript file or not.\n */\n function isRequireVariableDeclaration(node) {\n if (node.kind === 201 /* BindingElement */) {\n node = node.parent.parent;\n }\n return ts.isVariableDeclaration(node) && !!node.initializer && isRequireCall(getLeftmostAccessExpression(node.initializer), /*requireStringLiteralLikeArgument*/ true);\n }\n ts.isRequireVariableDeclaration = isRequireVariableDeclaration;\n function isRequireVariableStatement(node) {\n return ts.isVariableStatement(node)\n && node.declarationList.declarations.length > 0\n && ts.every(node.declarationList.declarations, function (decl) { return isRequireVariableDeclaration(decl); });\n }\n ts.isRequireVariableStatement = isRequireVariableStatement;\n function isSingleOrDoubleQuote(charCode) {\n return charCode === 39 /* singleQuote */ || charCode === 34 /* doubleQuote */;\n }\n ts.isSingleOrDoubleQuote = isSingleOrDoubleQuote;\n function isStringDoubleQuoted(str, sourceFile) {\n return getSourceTextOfNodeFromSourceFile(sourceFile, str).charCodeAt(0) === 34 /* doubleQuote */;\n }\n ts.isStringDoubleQuoted = isStringDoubleQuoted;\n function isAssignmentDeclaration(decl) {\n return ts.isBinaryExpression(decl) || isAccessExpression(decl) || ts.isIdentifier(decl) || ts.isCallExpression(decl);\n }\n ts.isAssignmentDeclaration = isAssignmentDeclaration;\n /** Get the initializer, taking into account defaulted Javascript initializers */\n function getEffectiveInitializer(node) {\n if (isInJSFile(node) && node.initializer &&\n ts.isBinaryExpression(node.initializer) &&\n (node.initializer.operatorToken.kind === 56 /* BarBarToken */ || node.initializer.operatorToken.kind === 60 /* QuestionQuestionToken */) &&\n node.name && isEntityNameExpression(node.name) && isSameEntityName(node.name, node.initializer.left)) {\n return node.initializer.right;\n }\n return node.initializer;\n }\n ts.getEffectiveInitializer = getEffectiveInitializer;\n /** Get the declaration initializer when it is container-like (See getExpandoInitializer). */\n function getDeclaredExpandoInitializer(node) {\n var init = getEffectiveInitializer(node);\n return init && getExpandoInitializer(init, isPrototypeAccess(node.name));\n }\n ts.getDeclaredExpandoInitializer = getDeclaredExpandoInitializer;\n function hasExpandoValueProperty(node, isPrototypeAssignment) {\n return ts.forEach(node.properties, function (p) {\n return ts.isPropertyAssignment(p) &&\n ts.isIdentifier(p.name) &&\n p.name.escapedText === \"value\" &&\n p.initializer &&\n getExpandoInitializer(p.initializer, isPrototypeAssignment);\n });\n }\n /**\n * Get the assignment 'initializer' -- the righthand side-- when the initializer is container-like (See getExpandoInitializer).\n * We treat the right hand side of assignments with container-like initializers as declarations.\n */\n function getAssignedExpandoInitializer(node) {\n if (node && node.parent && ts.isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 63 /* EqualsToken */) {\n var isPrototypeAssignment = isPrototypeAccess(node.parent.left);\n return getExpandoInitializer(node.parent.right, isPrototypeAssignment) ||\n getDefaultedExpandoInitializer(node.parent.left, node.parent.right, isPrototypeAssignment);\n }\n if (node && ts.isCallExpression(node) && isBindableObjectDefinePropertyCall(node)) {\n var result = hasExpandoValueProperty(node.arguments[2], node.arguments[1].text === \"prototype\");\n if (result) {\n return result;\n }\n }\n }\n ts.getAssignedExpandoInitializer = getAssignedExpandoInitializer;\n /**\n * Recognized expando initializers are:\n * 1. (function() {})() -- IIFEs\n * 2. function() { } -- Function expressions\n * 3. class { } -- Class expressions\n * 4. {} -- Empty object literals\n * 5. { ... } -- Non-empty object literals, when used to initialize a prototype, like `C.prototype = { m() { } }`\n *\n * This function returns the provided initializer, or undefined if it is not valid.\n */\n function getExpandoInitializer(initializer, isPrototypeAssignment) {\n if (ts.isCallExpression(initializer)) {\n var e = skipParentheses(initializer.expression);\n return e.kind === 211 /* FunctionExpression */ || e.kind === 212 /* ArrowFunction */ ? initializer : undefined;\n }\n if (initializer.kind === 211 /* FunctionExpression */ ||\n initializer.kind === 224 /* ClassExpression */ ||\n initializer.kind === 212 /* ArrowFunction */) {\n return initializer;\n }\n if (ts.isObjectLiteralExpression(initializer) && (initializer.properties.length === 0 || isPrototypeAssignment)) {\n return initializer;\n }\n }\n ts.getExpandoInitializer = getExpandoInitializer;\n /**\n * A defaulted expando initializer matches the pattern\n * `Lhs = Lhs || ExpandoInitializer`\n * or `var Lhs = Lhs || ExpandoInitializer`\n *\n * The second Lhs is required to be the same as the first except that it may be prefixed with\n * 'window.', 'global.' or 'self.' The second Lhs is otherwise ignored by the binder and checker.\n */\n function getDefaultedExpandoInitializer(name, initializer, isPrototypeAssignment) {\n var e = ts.isBinaryExpression(initializer)\n && (initializer.operatorToken.kind === 56 /* BarBarToken */ || initializer.operatorToken.kind === 60 /* QuestionQuestionToken */)\n && getExpandoInitializer(initializer.right, isPrototypeAssignment);\n if (e && isSameEntityName(name, initializer.left)) {\n return e;\n }\n }\n function isDefaultedExpandoInitializer(node) {\n var name = ts.isVariableDeclaration(node.parent) ? node.parent.name :\n ts.isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 63 /* EqualsToken */ ? node.parent.left :\n undefined;\n return name && getExpandoInitializer(node.right, isPrototypeAccess(name)) && isEntityNameExpression(name) && isSameEntityName(name, node.left);\n }\n ts.isDefaultedExpandoInitializer = isDefaultedExpandoInitializer;\n /** Given an expando initializer, return its declaration name, or the left-hand side of the assignment if it's part of an assignment declaration. */\n function getNameOfExpando(node) {\n if (ts.isBinaryExpression(node.parent)) {\n var parent = ((node.parent.operatorToken.kind === 56 /* BarBarToken */ || node.parent.operatorToken.kind === 60 /* QuestionQuestionToken */) && ts.isBinaryExpression(node.parent.parent)) ? node.parent.parent : node.parent;\n if (parent.operatorToken.kind === 63 /* EqualsToken */ && ts.isIdentifier(parent.left)) {\n return parent.left;\n }\n }\n else if (ts.isVariableDeclaration(node.parent)) {\n return node.parent.name;\n }\n }\n ts.getNameOfExpando = getNameOfExpando;\n /**\n * Is the 'declared' name the same as the one in the initializer?\n * @return true for identical entity names, as well as ones where the initializer is prefixed with\n * 'window', 'self' or 'global'. For example:\n *\n * var my = my || {}\n * var min = window.min || {}\n * my.app = self.my.app || class { }\n */\n function isSameEntityName(name, initializer) {\n if (isPropertyNameLiteral(name) && isPropertyNameLiteral(initializer)) {\n return getTextOfIdentifierOrLiteral(name) === getTextOfIdentifierOrLiteral(initializer);\n }\n if (ts.isIdentifier(name) && isLiteralLikeAccess(initializer) &&\n (initializer.expression.kind === 108 /* ThisKeyword */ ||\n ts.isIdentifier(initializer.expression) &&\n (initializer.expression.escapedText === \"window\" ||\n initializer.expression.escapedText === \"self\" ||\n initializer.expression.escapedText === \"global\"))) {\n var nameOrArgument = getNameOrArgument(initializer);\n if (ts.isPrivateIdentifier(nameOrArgument)) {\n ts.Debug.fail(\"Unexpected PrivateIdentifier in name expression with literal-like access.\");\n }\n return isSameEntityName(name, nameOrArgument);\n }\n if (isLiteralLikeAccess(name) && isLiteralLikeAccess(initializer)) {\n return getElementOrPropertyAccessName(name) === getElementOrPropertyAccessName(initializer)\n && isSameEntityName(name.expression, initializer.expression);\n }\n return false;\n }\n ts.isSameEntityName = isSameEntityName;\n function getRightMostAssignedExpression(node) {\n while (isAssignmentExpression(node, /*excludeCompoundAssignments*/ true)) {\n node = node.right;\n }\n return node;\n }\n ts.getRightMostAssignedExpression = getRightMostAssignedExpression;\n function isExportsIdentifier(node) {\n return ts.isIdentifier(node) && node.escapedText === \"exports\";\n }\n ts.isExportsIdentifier = isExportsIdentifier;\n function isModuleIdentifier(node) {\n return ts.isIdentifier(node) && node.escapedText === \"module\";\n }\n ts.isModuleIdentifier = isModuleIdentifier;\n function isModuleExportsAccessExpression(node) {\n return (ts.isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node))\n && isModuleIdentifier(node.expression)\n && getElementOrPropertyAccessName(node) === \"exports\";\n }\n ts.isModuleExportsAccessExpression = isModuleExportsAccessExpression;\n /// Given a BinaryExpression, returns SpecialPropertyAssignmentKind for the various kinds of property\n /// assignments we treat as special in the binder\n function getAssignmentDeclarationKind(expr) {\n var special = getAssignmentDeclarationKindWorker(expr);\n return special === 5 /* Property */ || isInJSFile(expr) ? special : 0 /* None */;\n }\n ts.getAssignmentDeclarationKind = getAssignmentDeclarationKind;\n function isBindableObjectDefinePropertyCall(expr) {\n return ts.length(expr.arguments) === 3 &&\n ts.isPropertyAccessExpression(expr.expression) &&\n ts.isIdentifier(expr.expression.expression) &&\n ts.idText(expr.expression.expression) === \"Object\" &&\n ts.idText(expr.expression.name) === \"defineProperty\" &&\n isStringOrNumericLiteralLike(expr.arguments[1]) &&\n isBindableStaticNameExpression(expr.arguments[0], /*excludeThisKeyword*/ true);\n }\n ts.isBindableObjectDefinePropertyCall = isBindableObjectDefinePropertyCall;\n /** x.y OR x[0] */\n function isLiteralLikeAccess(node) {\n return ts.isPropertyAccessExpression(node) || isLiteralLikeElementAccess(node);\n }\n ts.isLiteralLikeAccess = isLiteralLikeAccess;\n /** x[0] OR x['a'] OR x[Symbol.y] */\n function isLiteralLikeElementAccess(node) {\n return ts.isElementAccessExpression(node) && isStringOrNumericLiteralLike(node.argumentExpression);\n }\n ts.isLiteralLikeElementAccess = isLiteralLikeElementAccess;\n /** Any series of property and element accesses. */\n function isBindableStaticAccessExpression(node, excludeThisKeyword) {\n return ts.isPropertyAccessExpression(node) && (!excludeThisKeyword && node.expression.kind === 108 /* ThisKeyword */ || ts.isIdentifier(node.name) && isBindableStaticNameExpression(node.expression, /*excludeThisKeyword*/ true))\n || isBindableStaticElementAccessExpression(node, excludeThisKeyword);\n }\n ts.isBindableStaticAccessExpression = isBindableStaticAccessExpression;\n /** Any series of property and element accesses, ending in a literal element access */\n function isBindableStaticElementAccessExpression(node, excludeThisKeyword) {\n return isLiteralLikeElementAccess(node)\n && ((!excludeThisKeyword && node.expression.kind === 108 /* ThisKeyword */) ||\n isEntityNameExpression(node.expression) ||\n isBindableStaticAccessExpression(node.expression, /*excludeThisKeyword*/ true));\n }\n ts.isBindableStaticElementAccessExpression = isBindableStaticElementAccessExpression;\n function isBindableStaticNameExpression(node, excludeThisKeyword) {\n return isEntityNameExpression(node) || isBindableStaticAccessExpression(node, excludeThisKeyword);\n }\n ts.isBindableStaticNameExpression = isBindableStaticNameExpression;\n function getNameOrArgument(expr) {\n if (ts.isPropertyAccessExpression(expr)) {\n return expr.name;\n }\n return expr.argumentExpression;\n }\n ts.getNameOrArgument = getNameOrArgument;\n function getAssignmentDeclarationKindWorker(expr) {\n if (ts.isCallExpression(expr)) {\n if (!isBindableObjectDefinePropertyCall(expr)) {\n return 0 /* None */;\n }\n var entityName = expr.arguments[0];\n if (isExportsIdentifier(entityName) || isModuleExportsAccessExpression(entityName)) {\n return 8 /* ObjectDefinePropertyExports */;\n }\n if (isBindableStaticAccessExpression(entityName) && getElementOrPropertyAccessName(entityName) === \"prototype\") {\n return 9 /* ObjectDefinePrototypeProperty */;\n }\n return 7 /* ObjectDefinePropertyValue */;\n }\n if (expr.operatorToken.kind !== 63 /* EqualsToken */ || !isAccessExpression(expr.left) || isVoidZero(getRightMostAssignedExpression(expr))) {\n return 0 /* None */;\n }\n if (isBindableStaticNameExpression(expr.left.expression, /*excludeThisKeyword*/ true) && getElementOrPropertyAccessName(expr.left) === \"prototype\" && ts.isObjectLiteralExpression(getInitializerOfBinaryExpression(expr))) {\n // F.prototype = { ... }\n return 6 /* Prototype */;\n }\n return getAssignmentDeclarationPropertyAccessKind(expr.left);\n }\n function isVoidZero(node) {\n return ts.isVoidExpression(node) && ts.isNumericLiteral(node.expression) && node.expression.text === \"0\";\n }\n /**\n * Does not handle signed numeric names like `a[+0]` - handling those would require handling prefix unary expressions\n * throughout late binding handling as well, which is awkward (but ultimately probably doable if there is demand)\n */\n /* @internal */\n function getElementOrPropertyAccessArgumentExpressionOrName(node) {\n if (ts.isPropertyAccessExpression(node)) {\n return node.name;\n }\n var arg = skipParentheses(node.argumentExpression);\n if (ts.isNumericLiteral(arg) || ts.isStringLiteralLike(arg)) {\n return arg;\n }\n return node;\n }\n ts.getElementOrPropertyAccessArgumentExpressionOrName = getElementOrPropertyAccessArgumentExpressionOrName;\n function getElementOrPropertyAccessName(node) {\n var name = getElementOrPropertyAccessArgumentExpressionOrName(node);\n if (name) {\n if (ts.isIdentifier(name)) {\n return name.escapedText;\n }\n if (ts.isStringLiteralLike(name) || ts.isNumericLiteral(name)) {\n return ts.escapeLeadingUnderscores(name.text);\n }\n }\n return undefined;\n }\n ts.getElementOrPropertyAccessName = getElementOrPropertyAccessName;\n function getAssignmentDeclarationPropertyAccessKind(lhs) {\n if (lhs.expression.kind === 108 /* ThisKeyword */) {\n return 4 /* ThisProperty */;\n }\n else if (isModuleExportsAccessExpression(lhs)) {\n // module.exports = expr\n return 2 /* ModuleExports */;\n }\n else if (isBindableStaticNameExpression(lhs.expression, /*excludeThisKeyword*/ true)) {\n if (isPrototypeAccess(lhs.expression)) {\n // F.G....prototype.x = expr\n return 3 /* PrototypeProperty */;\n }\n var nextToLast = lhs;\n while (!ts.isIdentifier(nextToLast.expression)) {\n nextToLast = nextToLast.expression;\n }\n var id = nextToLast.expression;\n if ((id.escapedText === \"exports\" ||\n id.escapedText === \"module\" && getElementOrPropertyAccessName(nextToLast) === \"exports\") &&\n // ExportsProperty does not support binding with computed names\n isBindableStaticAccessExpression(lhs)) {\n // exports.name = expr OR module.exports.name = expr OR exports[\"name\"] = expr ...\n return 1 /* ExportsProperty */;\n }\n if (isBindableStaticNameExpression(lhs, /*excludeThisKeyword*/ true) || (ts.isElementAccessExpression(lhs) && isDynamicName(lhs))) {\n // F.G...x = expr\n return 5 /* Property */;\n }\n }\n return 0 /* None */;\n }\n ts.getAssignmentDeclarationPropertyAccessKind = getAssignmentDeclarationPropertyAccessKind;\n function getInitializerOfBinaryExpression(expr) {\n while (ts.isBinaryExpression(expr.right)) {\n expr = expr.right;\n }\n return expr.right;\n }\n ts.getInitializerOfBinaryExpression = getInitializerOfBinaryExpression;\n function isPrototypePropertyAssignment(node) {\n return ts.isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 3 /* PrototypeProperty */;\n }\n ts.isPrototypePropertyAssignment = isPrototypePropertyAssignment;\n function isSpecialPropertyDeclaration(expr) {\n return isInJSFile(expr) &&\n expr.parent && expr.parent.kind === 236 /* ExpressionStatement */ &&\n (!ts.isElementAccessExpression(expr) || isLiteralLikeElementAccess(expr)) &&\n !!ts.getJSDocTypeTag(expr.parent);\n }\n ts.isSpecialPropertyDeclaration = isSpecialPropertyDeclaration;\n function setValueDeclaration(symbol, node) {\n var valueDeclaration = symbol.valueDeclaration;\n if (!valueDeclaration ||\n !(node.flags & 8388608 /* Ambient */ && !(valueDeclaration.flags & 8388608 /* Ambient */)) &&\n (isAssignmentDeclaration(valueDeclaration) && !isAssignmentDeclaration(node)) ||\n (valueDeclaration.kind !== node.kind && isEffectiveModuleDeclaration(valueDeclaration))) {\n // other kinds of value declarations take precedence over modules and assignment declarations\n symbol.valueDeclaration = node;\n }\n }\n ts.setValueDeclaration = setValueDeclaration;\n function isFunctionSymbol(symbol) {\n if (!symbol || !symbol.valueDeclaration) {\n return false;\n }\n var decl = symbol.valueDeclaration;\n return decl.kind === 254 /* FunctionDeclaration */ || ts.isVariableDeclaration(decl) && decl.initializer && ts.isFunctionLike(decl.initializer);\n }\n ts.isFunctionSymbol = isFunctionSymbol;\n function tryGetModuleSpecifierFromDeclaration(node) {\n var _a, _b, _c;\n switch (node.kind) {\n case 252 /* VariableDeclaration */:\n return node.initializer.arguments[0].text;\n case 264 /* ImportDeclaration */:\n return (_a = ts.tryCast(node.moduleSpecifier, ts.isStringLiteralLike)) === null || _a === void 0 ? void 0 : _a.text;\n case 263 /* ImportEqualsDeclaration */:\n return (_c = ts.tryCast((_b = ts.tryCast(node.moduleReference, ts.isExternalModuleReference)) === null || _b === void 0 ? void 0 : _b.expression, ts.isStringLiteralLike)) === null || _c === void 0 ? void 0 : _c.text;\n default:\n ts.Debug.assertNever(node);\n }\n }\n ts.tryGetModuleSpecifierFromDeclaration = tryGetModuleSpecifierFromDeclaration;\n function importFromModuleSpecifier(node) {\n return tryGetImportFromModuleSpecifier(node) || ts.Debug.failBadSyntaxKind(node.parent);\n }\n ts.importFromModuleSpecifier = importFromModuleSpecifier;\n function tryGetImportFromModuleSpecifier(node) {\n switch (node.parent.kind) {\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n return node.parent;\n case 275 /* ExternalModuleReference */:\n return node.parent.parent;\n case 206 /* CallExpression */:\n return isImportCall(node.parent) || isRequireCall(node.parent, /*checkArg*/ false) ? node.parent : undefined;\n case 194 /* LiteralType */:\n ts.Debug.assert(ts.isStringLiteral(node));\n return ts.tryCast(node.parent.parent, ts.isImportTypeNode);\n default:\n return undefined;\n }\n }\n ts.tryGetImportFromModuleSpecifier = tryGetImportFromModuleSpecifier;\n function getExternalModuleName(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n return node.moduleSpecifier;\n case 263 /* ImportEqualsDeclaration */:\n return node.moduleReference.kind === 275 /* ExternalModuleReference */ ? node.moduleReference.expression : undefined;\n case 198 /* ImportType */:\n return isLiteralImportTypeNode(node) ? node.argument.literal : undefined;\n case 206 /* CallExpression */:\n return node.arguments[0];\n case 259 /* ModuleDeclaration */:\n return node.name.kind === 10 /* StringLiteral */ ? node.name : undefined;\n default:\n return ts.Debug.assertNever(node);\n }\n }\n ts.getExternalModuleName = getExternalModuleName;\n function getNamespaceDeclarationNode(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return node.importClause && ts.tryCast(node.importClause.namedBindings, ts.isNamespaceImport);\n case 263 /* ImportEqualsDeclaration */:\n return node;\n case 270 /* ExportDeclaration */:\n return node.exportClause && ts.tryCast(node.exportClause, ts.isNamespaceExport);\n default:\n return ts.Debug.assertNever(node);\n }\n }\n ts.getNamespaceDeclarationNode = getNamespaceDeclarationNode;\n function isDefaultImport(node) {\n return node.kind === 264 /* ImportDeclaration */ && !!node.importClause && !!node.importClause.name;\n }\n ts.isDefaultImport = isDefaultImport;\n function forEachImportClauseDeclaration(node, action) {\n if (node.name) {\n var result = action(node);\n if (result)\n return result;\n }\n if (node.namedBindings) {\n var result = ts.isNamespaceImport(node.namedBindings)\n ? action(node.namedBindings)\n : ts.forEach(node.namedBindings.elements, action);\n if (result)\n return result;\n }\n }\n ts.forEachImportClauseDeclaration = forEachImportClauseDeclaration;\n function hasQuestionToken(node) {\n if (node) {\n switch (node.kind) {\n case 162 /* Parameter */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 292 /* ShorthandPropertyAssignment */:\n case 291 /* PropertyAssignment */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n return node.questionToken !== undefined;\n }\n }\n return false;\n }\n ts.hasQuestionToken = hasQuestionToken;\n function isJSDocConstructSignature(node) {\n var param = ts.isJSDocFunctionType(node) ? ts.firstOrUndefined(node.parameters) : undefined;\n var name = ts.tryCast(param && param.name, ts.isIdentifier);\n return !!name && name.escapedText === \"new\";\n }\n ts.isJSDocConstructSignature = isJSDocConstructSignature;\n function isJSDocTypeAlias(node) {\n return node.kind === 340 /* JSDocTypedefTag */ || node.kind === 333 /* JSDocCallbackTag */ || node.kind === 334 /* JSDocEnumTag */;\n }\n ts.isJSDocTypeAlias = isJSDocTypeAlias;\n function isTypeAlias(node) {\n return isJSDocTypeAlias(node) || ts.isTypeAliasDeclaration(node);\n }\n ts.isTypeAlias = isTypeAlias;\n function getSourceOfAssignment(node) {\n return ts.isExpressionStatement(node) &&\n ts.isBinaryExpression(node.expression) &&\n node.expression.operatorToken.kind === 63 /* EqualsToken */\n ? getRightMostAssignedExpression(node.expression)\n : undefined;\n }\n function getSourceOfDefaultedAssignment(node) {\n return ts.isExpressionStatement(node) &&\n ts.isBinaryExpression(node.expression) &&\n getAssignmentDeclarationKind(node.expression) !== 0 /* None */ &&\n ts.isBinaryExpression(node.expression.right) &&\n (node.expression.right.operatorToken.kind === 56 /* BarBarToken */ || node.expression.right.operatorToken.kind === 60 /* QuestionQuestionToken */)\n ? node.expression.right.right\n : undefined;\n }\n function getSingleInitializerOfVariableStatementOrPropertyDeclaration(node) {\n switch (node.kind) {\n case 235 /* VariableStatement */:\n var v = getSingleVariableOfVariableStatement(node);\n return v && v.initializer;\n case 165 /* PropertyDeclaration */:\n return node.initializer;\n case 291 /* PropertyAssignment */:\n return node.initializer;\n }\n }\n ts.getSingleInitializerOfVariableStatementOrPropertyDeclaration = getSingleInitializerOfVariableStatementOrPropertyDeclaration;\n function getSingleVariableOfVariableStatement(node) {\n return ts.isVariableStatement(node) ? ts.firstOrUndefined(node.declarationList.declarations) : undefined;\n }\n ts.getSingleVariableOfVariableStatement = getSingleVariableOfVariableStatement;\n function getNestedModuleDeclaration(node) {\n return ts.isModuleDeclaration(node) &&\n node.body &&\n node.body.kind === 259 /* ModuleDeclaration */\n ? node.body\n : undefined;\n }\n function getJSDocCommentsAndTags(hostNode, noCache) {\n var result;\n // Pull parameter comments from declaring function as well\n if (isVariableLike(hostNode) && ts.hasInitializer(hostNode) && ts.hasJSDocNodes(hostNode.initializer)) {\n result = ts.append(result, ts.last(hostNode.initializer.jsDoc));\n }\n var node = hostNode;\n while (node && node.parent) {\n if (ts.hasJSDocNodes(node)) {\n result = ts.append(result, ts.last(node.jsDoc));\n }\n if (node.kind === 162 /* Parameter */) {\n result = ts.addRange(result, (noCache ? ts.getJSDocParameterTagsNoCache : ts.getJSDocParameterTags)(node));\n break;\n }\n if (node.kind === 161 /* TypeParameter */) {\n result = ts.addRange(result, (noCache ? ts.getJSDocTypeParameterTagsNoCache : ts.getJSDocTypeParameterTags)(node));\n break;\n }\n node = getNextJSDocCommentLocation(node);\n }\n return result || ts.emptyArray;\n }\n ts.getJSDocCommentsAndTags = getJSDocCommentsAndTags;\n function getNextJSDocCommentLocation(node) {\n var parent = node.parent;\n if (parent.kind === 291 /* PropertyAssignment */ ||\n parent.kind === 269 /* ExportAssignment */ ||\n parent.kind === 165 /* PropertyDeclaration */ ||\n parent.kind === 236 /* ExpressionStatement */ && node.kind === 204 /* PropertyAccessExpression */ ||\n parent.kind === 245 /* ReturnStatement */ ||\n getNestedModuleDeclaration(parent) ||\n ts.isBinaryExpression(node) && node.operatorToken.kind === 63 /* EqualsToken */) {\n return parent;\n }\n // Try to recognize this pattern when node is initializer of variable declaration and JSDoc comments are on containing variable statement.\n // /**\n // * @param {number} name\n // * @returns {number}\n // */\n // var x = function(name) { return name.length; }\n else if (parent.parent &&\n (getSingleVariableOfVariableStatement(parent.parent) === node ||\n ts.isBinaryExpression(parent) && parent.operatorToken.kind === 63 /* EqualsToken */)) {\n return parent.parent;\n }\n else if (parent.parent && parent.parent.parent &&\n (getSingleVariableOfVariableStatement(parent.parent.parent) ||\n getSingleInitializerOfVariableStatementOrPropertyDeclaration(parent.parent.parent) === node ||\n getSourceOfDefaultedAssignment(parent.parent.parent))) {\n return parent.parent.parent;\n }\n }\n ts.getNextJSDocCommentLocation = getNextJSDocCommentLocation;\n /** Does the opposite of `getJSDocParameterTags`: given a JSDoc parameter, finds the parameter corresponding to it. */\n function getParameterSymbolFromJSDoc(node) {\n if (node.symbol) {\n return node.symbol;\n }\n if (!ts.isIdentifier(node.name)) {\n return undefined;\n }\n var name = node.name.escapedText;\n var decl = getHostSignatureFromJSDoc(node);\n if (!decl) {\n return undefined;\n }\n var parameter = ts.find(decl.parameters, function (p) { return p.name.kind === 79 /* Identifier */ && p.name.escapedText === name; });\n return parameter && parameter.symbol;\n }\n ts.getParameterSymbolFromJSDoc = getParameterSymbolFromJSDoc;\n function getHostSignatureFromJSDoc(node) {\n var host = getEffectiveJSDocHost(node);\n return host && ts.isFunctionLike(host) ? host : undefined;\n }\n ts.getHostSignatureFromJSDoc = getHostSignatureFromJSDoc;\n function getEffectiveJSDocHost(node) {\n var host = getJSDocHost(node);\n if (host) {\n return getSourceOfDefaultedAssignment(host)\n || getSourceOfAssignment(host)\n || getSingleInitializerOfVariableStatementOrPropertyDeclaration(host)\n || getSingleVariableOfVariableStatement(host)\n || getNestedModuleDeclaration(host)\n || host;\n }\n }\n ts.getEffectiveJSDocHost = getEffectiveJSDocHost;\n /** Use getEffectiveJSDocHost if you additionally need to look for jsdoc on parent nodes, like assignments. */\n function getJSDocHost(node) {\n var jsDoc = getJSDocRoot(node);\n if (!jsDoc) {\n return undefined;\n }\n var host = jsDoc.parent;\n if (host && host.jsDoc && jsDoc === ts.lastOrUndefined(host.jsDoc)) {\n return host;\n }\n }\n ts.getJSDocHost = getJSDocHost;\n function getJSDocRoot(node) {\n return ts.findAncestor(node.parent, ts.isJSDoc);\n }\n ts.getJSDocRoot = getJSDocRoot;\n function getTypeParameterFromJsDoc(node) {\n var name = node.name.escapedText;\n var typeParameters = node.parent.parent.parent.typeParameters;\n return typeParameters && ts.find(typeParameters, function (p) { return p.name.escapedText === name; });\n }\n ts.getTypeParameterFromJsDoc = getTypeParameterFromJsDoc;\n function hasRestParameter(s) {\n var last = ts.lastOrUndefined(s.parameters);\n return !!last && isRestParameter(last);\n }\n ts.hasRestParameter = hasRestParameter;\n function isRestParameter(node) {\n var type = ts.isJSDocParameterTag(node) ? (node.typeExpression && node.typeExpression.type) : node.type;\n return node.dotDotDotToken !== undefined || !!type && type.kind === 313 /* JSDocVariadicType */;\n }\n ts.isRestParameter = isRestParameter;\n function hasTypeArguments(node) {\n return !!node.typeArguments;\n }\n ts.hasTypeArguments = hasTypeArguments;\n var AssignmentKind;\n (function (AssignmentKind) {\n AssignmentKind[AssignmentKind[\"None\"] = 0] = \"None\";\n AssignmentKind[AssignmentKind[\"Definite\"] = 1] = \"Definite\";\n AssignmentKind[AssignmentKind[\"Compound\"] = 2] = \"Compound\";\n })(AssignmentKind = ts.AssignmentKind || (ts.AssignmentKind = {}));\n function getAssignmentTargetKind(node) {\n var parent = node.parent;\n while (true) {\n switch (parent.kind) {\n case 219 /* BinaryExpression */:\n var binaryOperator = parent.operatorToken.kind;\n return isAssignmentOperator(binaryOperator) && parent.left === node ?\n binaryOperator === 63 /* EqualsToken */ || isLogicalOrCoalescingAssignmentOperator(binaryOperator) ? 1 /* Definite */ : 2 /* Compound */ :\n 0 /* None */;\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n var unaryOperator = parent.operator;\n return unaryOperator === 45 /* PlusPlusToken */ || unaryOperator === 46 /* MinusMinusToken */ ? 2 /* Compound */ : 0 /* None */;\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n return parent.initializer === node ? 1 /* Definite */ : 0 /* None */;\n case 210 /* ParenthesizedExpression */:\n case 202 /* ArrayLiteralExpression */:\n case 223 /* SpreadElement */:\n case 228 /* NonNullExpression */:\n node = parent;\n break;\n case 293 /* SpreadAssignment */:\n node = parent.parent;\n break;\n case 292 /* ShorthandPropertyAssignment */:\n if (parent.name !== node) {\n return 0 /* None */;\n }\n node = parent.parent;\n break;\n case 291 /* PropertyAssignment */:\n if (parent.name === node) {\n return 0 /* None */;\n }\n node = parent.parent;\n break;\n default:\n return 0 /* None */;\n }\n parent = node.parent;\n }\n }\n ts.getAssignmentTargetKind = getAssignmentTargetKind;\n // A node is an assignment target if it is on the left hand side of an '=' token, if it is parented by a property\n // assignment in an object literal that is an assignment target, or if it is parented by an array literal that is\n // an assignment target. Examples include 'a = xxx', '{ p: a } = xxx', '[{ a }] = xxx'.\n // (Note that `p` is not a target in the above examples, only `a`.)\n function isAssignmentTarget(node) {\n return getAssignmentTargetKind(node) !== 0 /* None */;\n }\n ts.isAssignmentTarget = isAssignmentTarget;\n /**\n * Indicates whether a node could contain a `var` VariableDeclarationList that contributes to\n * the same `var` declaration scope as the node's parent.\n */\n function isNodeWithPossibleHoistedDeclaration(node) {\n switch (node.kind) {\n case 233 /* Block */:\n case 235 /* VariableStatement */:\n case 246 /* WithStatement */:\n case 237 /* IfStatement */:\n case 247 /* SwitchStatement */:\n case 261 /* CaseBlock */:\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n case 248 /* LabeledStatement */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 250 /* TryStatement */:\n case 290 /* CatchClause */:\n return true;\n }\n return false;\n }\n ts.isNodeWithPossibleHoistedDeclaration = isNodeWithPossibleHoistedDeclaration;\n function isValueSignatureDeclaration(node) {\n return ts.isFunctionExpression(node) || ts.isArrowFunction(node) || ts.isMethodOrAccessor(node) || ts.isFunctionDeclaration(node) || ts.isConstructorDeclaration(node);\n }\n ts.isValueSignatureDeclaration = isValueSignatureDeclaration;\n function walkUp(node, kind) {\n while (node && node.kind === kind) {\n node = node.parent;\n }\n return node;\n }\n function walkUpParenthesizedTypes(node) {\n return walkUp(node, 189 /* ParenthesizedType */);\n }\n ts.walkUpParenthesizedTypes = walkUpParenthesizedTypes;\n function walkUpParenthesizedExpressions(node) {\n return walkUp(node, 210 /* ParenthesizedExpression */);\n }\n ts.walkUpParenthesizedExpressions = walkUpParenthesizedExpressions;\n /**\n * Walks up parenthesized types.\n * It returns both the outermost parenthesized type and its parent.\n * If given node is not a parenthesiezd type, undefined is return as the former.\n */\n function walkUpParenthesizedTypesAndGetParentAndChild(node) {\n var child;\n while (node && node.kind === 189 /* ParenthesizedType */) {\n child = node;\n node = node.parent;\n }\n return [child, node];\n }\n ts.walkUpParenthesizedTypesAndGetParentAndChild = walkUpParenthesizedTypesAndGetParentAndChild;\n function skipParentheses(node) {\n return ts.skipOuterExpressions(node, 1 /* Parentheses */);\n }\n ts.skipParentheses = skipParentheses;\n // a node is delete target iff. it is PropertyAccessExpression/ElementAccessExpression with parentheses skipped\n function isDeleteTarget(node) {\n if (node.kind !== 204 /* PropertyAccessExpression */ && node.kind !== 205 /* ElementAccessExpression */) {\n return false;\n }\n node = walkUpParenthesizedExpressions(node.parent);\n return node && node.kind === 213 /* DeleteExpression */;\n }\n ts.isDeleteTarget = isDeleteTarget;\n function isNodeDescendantOf(node, ancestor) {\n while (node) {\n if (node === ancestor)\n return true;\n node = node.parent;\n }\n return false;\n }\n ts.isNodeDescendantOf = isNodeDescendantOf;\n // True if `name` is the name of a declaration node\n function isDeclarationName(name) {\n return !ts.isSourceFile(name) && !ts.isBindingPattern(name) && ts.isDeclaration(name.parent) && name.parent.name === name;\n }\n ts.isDeclarationName = isDeclarationName;\n // See GH#16030\n function getDeclarationFromName(name) {\n var parent = name.parent;\n switch (name.kind) {\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 8 /* NumericLiteral */:\n if (ts.isComputedPropertyName(parent))\n return parent.parent;\n // falls through\n case 79 /* Identifier */:\n if (ts.isDeclaration(parent)) {\n return parent.name === name ? parent : undefined;\n }\n else if (ts.isQualifiedName(parent)) {\n var tag = parent.parent;\n return ts.isJSDocParameterTag(tag) && tag.name === parent ? tag : undefined;\n }\n else {\n var binExp = parent.parent;\n return ts.isBinaryExpression(binExp) &&\n getAssignmentDeclarationKind(binExp) !== 0 /* None */ &&\n (binExp.left.symbol || binExp.symbol) &&\n ts.getNameOfDeclaration(binExp) === name\n ? binExp\n : undefined;\n }\n case 80 /* PrivateIdentifier */:\n return ts.isDeclaration(parent) && parent.name === name ? parent : undefined;\n default:\n return undefined;\n }\n }\n ts.getDeclarationFromName = getDeclarationFromName;\n function isLiteralComputedPropertyDeclarationName(node) {\n return isStringOrNumericLiteralLike(node) &&\n node.parent.kind === 160 /* ComputedPropertyName */ &&\n ts.isDeclaration(node.parent.parent);\n }\n ts.isLiteralComputedPropertyDeclarationName = isLiteralComputedPropertyDeclarationName;\n // Return true if the given identifier is classified as an IdentifierName\n function isIdentifierName(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 294 /* EnumMember */:\n case 291 /* PropertyAssignment */:\n case 204 /* PropertyAccessExpression */:\n // Name in member declaration or property name in property access\n return parent.name === node;\n case 159 /* QualifiedName */:\n // Name on right hand side of dot in a type query or type reference\n return parent.right === node;\n case 201 /* BindingElement */:\n case 268 /* ImportSpecifier */:\n // Property name in binding element or import specifier\n return parent.propertyName === node;\n case 273 /* ExportSpecifier */:\n case 283 /* JsxAttribute */:\n // Any name in an export specifier or JSX Attribute\n return true;\n }\n return false;\n }\n ts.isIdentifierName = isIdentifierName;\n // An alias symbol is created by one of the following declarations:\n // import = ...\n // import from ...\n // import * as from ...\n // import { x as } from ...\n // export { x as } from ...\n // export * as ns from ...\n // export = \n // export default \n // module.exports = \n // {}\n // {name: }\n function isAliasSymbolDeclaration(node) {\n return node.kind === 263 /* ImportEqualsDeclaration */ ||\n node.kind === 262 /* NamespaceExportDeclaration */ ||\n node.kind === 265 /* ImportClause */ && !!node.name ||\n node.kind === 266 /* NamespaceImport */ ||\n node.kind === 272 /* NamespaceExport */ ||\n node.kind === 268 /* ImportSpecifier */ ||\n node.kind === 273 /* ExportSpecifier */ ||\n node.kind === 269 /* ExportAssignment */ && exportAssignmentIsAlias(node) ||\n ts.isBinaryExpression(node) && getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && exportAssignmentIsAlias(node) ||\n ts.isPropertyAccessExpression(node) && ts.isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 63 /* EqualsToken */ && isAliasableExpression(node.parent.right) ||\n node.kind === 292 /* ShorthandPropertyAssignment */ ||\n node.kind === 291 /* PropertyAssignment */ && isAliasableExpression(node.initializer);\n }\n ts.isAliasSymbolDeclaration = isAliasSymbolDeclaration;\n function getAliasDeclarationFromName(node) {\n switch (node.parent.kind) {\n case 265 /* ImportClause */:\n case 268 /* ImportSpecifier */:\n case 266 /* NamespaceImport */:\n case 273 /* ExportSpecifier */:\n case 269 /* ExportAssignment */:\n case 263 /* ImportEqualsDeclaration */:\n return node.parent;\n case 159 /* QualifiedName */:\n do {\n node = node.parent;\n } while (node.parent.kind === 159 /* QualifiedName */);\n return getAliasDeclarationFromName(node);\n }\n }\n ts.getAliasDeclarationFromName = getAliasDeclarationFromName;\n function isAliasableExpression(e) {\n return isEntityNameExpression(e) || ts.isClassExpression(e);\n }\n ts.isAliasableExpression = isAliasableExpression;\n function exportAssignmentIsAlias(node) {\n var e = getExportAssignmentExpression(node);\n return isAliasableExpression(e);\n }\n ts.exportAssignmentIsAlias = exportAssignmentIsAlias;\n function getExportAssignmentExpression(node) {\n return ts.isExportAssignment(node) ? node.expression : node.right;\n }\n ts.getExportAssignmentExpression = getExportAssignmentExpression;\n function getPropertyAssignmentAliasLikeExpression(node) {\n return node.kind === 292 /* ShorthandPropertyAssignment */ ? node.name : node.kind === 291 /* PropertyAssignment */ ? node.initializer :\n node.parent.right;\n }\n ts.getPropertyAssignmentAliasLikeExpression = getPropertyAssignmentAliasLikeExpression;\n function getEffectiveBaseTypeNode(node) {\n var baseType = getClassExtendsHeritageElement(node);\n if (baseType && isInJSFile(node)) {\n // Prefer an @augments tag because it may have type parameters.\n var tag = ts.getJSDocAugmentsTag(node);\n if (tag) {\n return tag.class;\n }\n }\n return baseType;\n }\n ts.getEffectiveBaseTypeNode = getEffectiveBaseTypeNode;\n function getClassExtendsHeritageElement(node) {\n var heritageClause = getHeritageClause(node.heritageClauses, 94 /* ExtendsKeyword */);\n return heritageClause && heritageClause.types.length > 0 ? heritageClause.types[0] : undefined;\n }\n ts.getClassExtendsHeritageElement = getClassExtendsHeritageElement;\n function getEffectiveImplementsTypeNodes(node) {\n if (isInJSFile(node)) {\n return ts.getJSDocImplementsTags(node).map(function (n) { return n.class; });\n }\n else {\n var heritageClause = getHeritageClause(node.heritageClauses, 117 /* ImplementsKeyword */);\n return heritageClause === null || heritageClause === void 0 ? void 0 : heritageClause.types;\n }\n }\n ts.getEffectiveImplementsTypeNodes = getEffectiveImplementsTypeNodes;\n /** Returns the node in an `extends` or `implements` clause of a class or interface. */\n function getAllSuperTypeNodes(node) {\n return ts.isInterfaceDeclaration(node) ? getInterfaceBaseTypeNodes(node) || ts.emptyArray :\n ts.isClassLike(node) ? ts.concatenate(ts.singleElementArray(getEffectiveBaseTypeNode(node)), getEffectiveImplementsTypeNodes(node)) || ts.emptyArray :\n ts.emptyArray;\n }\n ts.getAllSuperTypeNodes = getAllSuperTypeNodes;\n function getInterfaceBaseTypeNodes(node) {\n var heritageClause = getHeritageClause(node.heritageClauses, 94 /* ExtendsKeyword */);\n return heritageClause ? heritageClause.types : undefined;\n }\n ts.getInterfaceBaseTypeNodes = getInterfaceBaseTypeNodes;\n function getHeritageClause(clauses, kind) {\n if (clauses) {\n for (var _i = 0, clauses_1 = clauses; _i < clauses_1.length; _i++) {\n var clause = clauses_1[_i];\n if (clause.token === kind) {\n return clause;\n }\n }\n }\n return undefined;\n }\n ts.getHeritageClause = getHeritageClause;\n function getAncestor(node, kind) {\n while (node) {\n if (node.kind === kind) {\n return node;\n }\n node = node.parent;\n }\n return undefined;\n }\n ts.getAncestor = getAncestor;\n function isKeyword(token) {\n return 81 /* FirstKeyword */ <= token && token <= 158 /* LastKeyword */;\n }\n ts.isKeyword = isKeyword;\n function isContextualKeyword(token) {\n return 126 /* FirstContextualKeyword */ <= token && token <= 158 /* LastContextualKeyword */;\n }\n ts.isContextualKeyword = isContextualKeyword;\n function isNonContextualKeyword(token) {\n return isKeyword(token) && !isContextualKeyword(token);\n }\n ts.isNonContextualKeyword = isNonContextualKeyword;\n function isFutureReservedKeyword(token) {\n return 117 /* FirstFutureReservedWord */ <= token && token <= 125 /* LastFutureReservedWord */;\n }\n ts.isFutureReservedKeyword = isFutureReservedKeyword;\n function isStringANonContextualKeyword(name) {\n var token = ts.stringToToken(name);\n return token !== undefined && isNonContextualKeyword(token);\n }\n ts.isStringANonContextualKeyword = isStringANonContextualKeyword;\n function isStringAKeyword(name) {\n var token = ts.stringToToken(name);\n return token !== undefined && isKeyword(token);\n }\n ts.isStringAKeyword = isStringAKeyword;\n function isIdentifierANonContextualKeyword(_a) {\n var originalKeywordKind = _a.originalKeywordKind;\n return !!originalKeywordKind && !isContextualKeyword(originalKeywordKind);\n }\n ts.isIdentifierANonContextualKeyword = isIdentifierANonContextualKeyword;\n function isTrivia(token) {\n return 2 /* FirstTriviaToken */ <= token && token <= 7 /* LastTriviaToken */;\n }\n ts.isTrivia = isTrivia;\n var FunctionFlags;\n (function (FunctionFlags) {\n FunctionFlags[FunctionFlags[\"Normal\"] = 0] = \"Normal\";\n FunctionFlags[FunctionFlags[\"Generator\"] = 1] = \"Generator\";\n FunctionFlags[FunctionFlags[\"Async\"] = 2] = \"Async\";\n FunctionFlags[FunctionFlags[\"Invalid\"] = 4] = \"Invalid\";\n FunctionFlags[FunctionFlags[\"AsyncGenerator\"] = 3] = \"AsyncGenerator\";\n })(FunctionFlags = ts.FunctionFlags || (ts.FunctionFlags = {}));\n function getFunctionFlags(node) {\n if (!node) {\n return 4 /* Invalid */;\n }\n var flags = 0 /* Normal */;\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n if (node.asteriskToken) {\n flags |= 1 /* Generator */;\n }\n // falls through\n case 212 /* ArrowFunction */:\n if (hasSyntacticModifier(node, 256 /* Async */)) {\n flags |= 2 /* Async */;\n }\n break;\n }\n if (!node.body) {\n flags |= 4 /* Invalid */;\n }\n return flags;\n }\n ts.getFunctionFlags = getFunctionFlags;\n function isAsyncFunction(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n return node.body !== undefined\n && node.asteriskToken === undefined\n && hasSyntacticModifier(node, 256 /* Async */);\n }\n return false;\n }\n ts.isAsyncFunction = isAsyncFunction;\n function isStringOrNumericLiteralLike(node) {\n return ts.isStringLiteralLike(node) || ts.isNumericLiteral(node);\n }\n ts.isStringOrNumericLiteralLike = isStringOrNumericLiteralLike;\n function isSignedNumericLiteral(node) {\n return ts.isPrefixUnaryExpression(node) && (node.operator === 39 /* PlusToken */ || node.operator === 40 /* MinusToken */) && ts.isNumericLiteral(node.operand);\n }\n ts.isSignedNumericLiteral = isSignedNumericLiteral;\n /**\n * A declaration has a dynamic name if all of the following are true:\n * 1. The declaration has a computed property name.\n * 2. The computed name is *not* expressed as a StringLiteral.\n * 3. The computed name is *not* expressed as a NumericLiteral.\n * 4. The computed name is *not* expressed as a PlusToken or MinusToken\n * immediately followed by a NumericLiteral.\n */\n function hasDynamicName(declaration) {\n var name = ts.getNameOfDeclaration(declaration);\n return !!name && isDynamicName(name);\n }\n ts.hasDynamicName = hasDynamicName;\n function isDynamicName(name) {\n if (!(name.kind === 160 /* ComputedPropertyName */ || name.kind === 205 /* ElementAccessExpression */)) {\n return false;\n }\n var expr = ts.isElementAccessExpression(name) ? skipParentheses(name.argumentExpression) : name.expression;\n return !isStringOrNumericLiteralLike(expr) &&\n !isSignedNumericLiteral(expr);\n }\n ts.isDynamicName = isDynamicName;\n function getPropertyNameForPropertyNameNode(name) {\n switch (name.kind) {\n case 79 /* Identifier */:\n case 80 /* PrivateIdentifier */:\n return name.escapedText;\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n return ts.escapeLeadingUnderscores(name.text);\n case 160 /* ComputedPropertyName */:\n var nameExpression = name.expression;\n if (isStringOrNumericLiteralLike(nameExpression)) {\n return ts.escapeLeadingUnderscores(nameExpression.text);\n }\n else if (isSignedNumericLiteral(nameExpression)) {\n if (nameExpression.operator === 40 /* MinusToken */) {\n return ts.tokenToString(nameExpression.operator) + nameExpression.operand.text;\n }\n return nameExpression.operand.text;\n }\n return undefined;\n default:\n return ts.Debug.assertNever(name);\n }\n }\n ts.getPropertyNameForPropertyNameNode = getPropertyNameForPropertyNameNode;\n function isPropertyNameLiteral(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 8 /* NumericLiteral */:\n return true;\n default:\n return false;\n }\n }\n ts.isPropertyNameLiteral = isPropertyNameLiteral;\n function getTextOfIdentifierOrLiteral(node) {\n return ts.isMemberName(node) ? ts.idText(node) : node.text;\n }\n ts.getTextOfIdentifierOrLiteral = getTextOfIdentifierOrLiteral;\n function getEscapedTextOfIdentifierOrLiteral(node) {\n return ts.isMemberName(node) ? node.escapedText : ts.escapeLeadingUnderscores(node.text);\n }\n ts.getEscapedTextOfIdentifierOrLiteral = getEscapedTextOfIdentifierOrLiteral;\n function getPropertyNameForUniqueESSymbol(symbol) {\n return \"__@\" + ts.getSymbolId(symbol) + \"@\" + symbol.escapedName;\n }\n ts.getPropertyNameForUniqueESSymbol = getPropertyNameForUniqueESSymbol;\n function getSymbolNameForPrivateIdentifier(containingClassSymbol, description) {\n return \"__#\" + ts.getSymbolId(containingClassSymbol) + \"@\" + description;\n }\n ts.getSymbolNameForPrivateIdentifier = getSymbolNameForPrivateIdentifier;\n function isKnownSymbol(symbol) {\n return ts.startsWith(symbol.escapedName, \"__@\");\n }\n ts.isKnownSymbol = isKnownSymbol;\n function isPrivateIdentifierSymbol(symbol) {\n return ts.startsWith(symbol.escapedName, \"__#\");\n }\n ts.isPrivateIdentifierSymbol = isPrivateIdentifierSymbol;\n /**\n * Includes the word \"Symbol\" with unicode escapes\n */\n function isESSymbolIdentifier(node) {\n return node.kind === 79 /* Identifier */ && node.escapedText === \"Symbol\";\n }\n ts.isESSymbolIdentifier = isESSymbolIdentifier;\n function isPushOrUnshiftIdentifier(node) {\n return node.escapedText === \"push\" || node.escapedText === \"unshift\";\n }\n ts.isPushOrUnshiftIdentifier = isPushOrUnshiftIdentifier;\n function isParameterDeclaration(node) {\n var root = getRootDeclaration(node);\n return root.kind === 162 /* Parameter */;\n }\n ts.isParameterDeclaration = isParameterDeclaration;\n function getRootDeclaration(node) {\n while (node.kind === 201 /* BindingElement */) {\n node = node.parent.parent;\n }\n return node;\n }\n ts.getRootDeclaration = getRootDeclaration;\n function nodeStartsNewLexicalEnvironment(node) {\n var kind = node.kind;\n return kind === 169 /* Constructor */\n || kind === 211 /* FunctionExpression */\n || kind === 254 /* FunctionDeclaration */\n || kind === 212 /* ArrowFunction */\n || kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */\n || kind === 259 /* ModuleDeclaration */\n || kind === 300 /* SourceFile */;\n }\n ts.nodeStartsNewLexicalEnvironment = nodeStartsNewLexicalEnvironment;\n function nodeIsSynthesized(range) {\n return positionIsSynthesized(range.pos)\n || positionIsSynthesized(range.end);\n }\n ts.nodeIsSynthesized = nodeIsSynthesized;\n function getOriginalSourceFile(sourceFile) {\n return ts.getParseTreeNode(sourceFile, ts.isSourceFile) || sourceFile;\n }\n ts.getOriginalSourceFile = getOriginalSourceFile;\n var Associativity;\n (function (Associativity) {\n Associativity[Associativity[\"Left\"] = 0] = \"Left\";\n Associativity[Associativity[\"Right\"] = 1] = \"Right\";\n })(Associativity = ts.Associativity || (ts.Associativity = {}));\n function getExpressionAssociativity(expression) {\n var operator = getOperator(expression);\n var hasArguments = expression.kind === 207 /* NewExpression */ && expression.arguments !== undefined;\n return getOperatorAssociativity(expression.kind, operator, hasArguments);\n }\n ts.getExpressionAssociativity = getExpressionAssociativity;\n function getOperatorAssociativity(kind, operator, hasArguments) {\n switch (kind) {\n case 207 /* NewExpression */:\n return hasArguments ? 0 /* Left */ : 1 /* Right */;\n case 217 /* PrefixUnaryExpression */:\n case 214 /* TypeOfExpression */:\n case 215 /* VoidExpression */:\n case 213 /* DeleteExpression */:\n case 216 /* AwaitExpression */:\n case 220 /* ConditionalExpression */:\n case 222 /* YieldExpression */:\n return 1 /* Right */;\n case 219 /* BinaryExpression */:\n switch (operator) {\n case 42 /* AsteriskAsteriskToken */:\n case 63 /* EqualsToken */:\n case 64 /* PlusEqualsToken */:\n case 65 /* MinusEqualsToken */:\n case 67 /* AsteriskAsteriskEqualsToken */:\n case 66 /* AsteriskEqualsToken */:\n case 68 /* SlashEqualsToken */:\n case 69 /* PercentEqualsToken */:\n case 70 /* LessThanLessThanEqualsToken */:\n case 71 /* GreaterThanGreaterThanEqualsToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n case 73 /* AmpersandEqualsToken */:\n case 78 /* CaretEqualsToken */:\n case 74 /* BarEqualsToken */:\n case 75 /* BarBarEqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return 1 /* Right */;\n }\n }\n return 0 /* Left */;\n }\n ts.getOperatorAssociativity = getOperatorAssociativity;\n function getExpressionPrecedence(expression) {\n var operator = getOperator(expression);\n var hasArguments = expression.kind === 207 /* NewExpression */ && expression.arguments !== undefined;\n return getOperatorPrecedence(expression.kind, operator, hasArguments);\n }\n ts.getExpressionPrecedence = getExpressionPrecedence;\n function getOperator(expression) {\n if (expression.kind === 219 /* BinaryExpression */) {\n return expression.operatorToken.kind;\n }\n else if (expression.kind === 217 /* PrefixUnaryExpression */ || expression.kind === 218 /* PostfixUnaryExpression */) {\n return expression.operator;\n }\n else {\n return expression.kind;\n }\n }\n ts.getOperator = getOperator;\n var OperatorPrecedence;\n (function (OperatorPrecedence) {\n // Expression:\n // AssignmentExpression\n // Expression `,` AssignmentExpression\n OperatorPrecedence[OperatorPrecedence[\"Comma\"] = 0] = \"Comma\";\n // NOTE: `Spread` is higher than `Comma` due to how it is parsed in |ElementList|\n // SpreadElement:\n // `...` AssignmentExpression\n OperatorPrecedence[OperatorPrecedence[\"Spread\"] = 1] = \"Spread\";\n // AssignmentExpression:\n // ConditionalExpression\n // YieldExpression\n // ArrowFunction\n // AsyncArrowFunction\n // LeftHandSideExpression `=` AssignmentExpression\n // LeftHandSideExpression AssignmentOperator AssignmentExpression\n //\n // NOTE: AssignmentExpression is broken down into several precedences due to the requirements\n // of the parenthesizer rules.\n // AssignmentExpression: YieldExpression\n // YieldExpression:\n // `yield`\n // `yield` AssignmentExpression\n // `yield` `*` AssignmentExpression\n OperatorPrecedence[OperatorPrecedence[\"Yield\"] = 2] = \"Yield\";\n // AssignmentExpression: LeftHandSideExpression `=` AssignmentExpression\n // AssignmentExpression: LeftHandSideExpression AssignmentOperator AssignmentExpression\n // AssignmentOperator: one of\n // `*=` `/=` `%=` `+=` `-=` `<<=` `>>=` `>>>=` `&=` `^=` `|=` `**=`\n OperatorPrecedence[OperatorPrecedence[\"Assignment\"] = 3] = \"Assignment\";\n // NOTE: `Conditional` is considered higher than `Assignment` here, but in reality they have\n // the same precedence.\n // AssignmentExpression: ConditionalExpression\n // ConditionalExpression:\n // ShortCircuitExpression\n // ShortCircuitExpression `?` AssignmentExpression `:` AssignmentExpression\n // ShortCircuitExpression:\n // LogicalORExpression\n // CoalesceExpression\n OperatorPrecedence[OperatorPrecedence[\"Conditional\"] = 4] = \"Conditional\";\n // CoalesceExpression:\n // CoalesceExpressionHead `??` BitwiseORExpression\n // CoalesceExpressionHead:\n // CoalesceExpression\n // BitwiseORExpression\n OperatorPrecedence[OperatorPrecedence[\"Coalesce\"] = 4] = \"Coalesce\";\n // LogicalORExpression:\n // LogicalANDExpression\n // LogicalORExpression `||` LogicalANDExpression\n OperatorPrecedence[OperatorPrecedence[\"LogicalOR\"] = 5] = \"LogicalOR\";\n // LogicalANDExpression:\n // BitwiseORExpression\n // LogicalANDExprerssion `&&` BitwiseORExpression\n OperatorPrecedence[OperatorPrecedence[\"LogicalAND\"] = 6] = \"LogicalAND\";\n // BitwiseORExpression:\n // BitwiseXORExpression\n // BitwiseORExpression `^` BitwiseXORExpression\n OperatorPrecedence[OperatorPrecedence[\"BitwiseOR\"] = 7] = \"BitwiseOR\";\n // BitwiseXORExpression:\n // BitwiseANDExpression\n // BitwiseXORExpression `^` BitwiseANDExpression\n OperatorPrecedence[OperatorPrecedence[\"BitwiseXOR\"] = 8] = \"BitwiseXOR\";\n // BitwiseANDExpression:\n // EqualityExpression\n // BitwiseANDExpression `^` EqualityExpression\n OperatorPrecedence[OperatorPrecedence[\"BitwiseAND\"] = 9] = \"BitwiseAND\";\n // EqualityExpression:\n // RelationalExpression\n // EqualityExpression `==` RelationalExpression\n // EqualityExpression `!=` RelationalExpression\n // EqualityExpression `===` RelationalExpression\n // EqualityExpression `!==` RelationalExpression\n OperatorPrecedence[OperatorPrecedence[\"Equality\"] = 10] = \"Equality\";\n // RelationalExpression:\n // ShiftExpression\n // RelationalExpression `<` ShiftExpression\n // RelationalExpression `>` ShiftExpression\n // RelationalExpression `<=` ShiftExpression\n // RelationalExpression `>=` ShiftExpression\n // RelationalExpression `instanceof` ShiftExpression\n // RelationalExpression `in` ShiftExpression\n // [+TypeScript] RelationalExpression `as` Type\n OperatorPrecedence[OperatorPrecedence[\"Relational\"] = 11] = \"Relational\";\n // ShiftExpression:\n // AdditiveExpression\n // ShiftExpression `<<` AdditiveExpression\n // ShiftExpression `>>` AdditiveExpression\n // ShiftExpression `>>>` AdditiveExpression\n OperatorPrecedence[OperatorPrecedence[\"Shift\"] = 12] = \"Shift\";\n // AdditiveExpression:\n // MultiplicativeExpression\n // AdditiveExpression `+` MultiplicativeExpression\n // AdditiveExpression `-` MultiplicativeExpression\n OperatorPrecedence[OperatorPrecedence[\"Additive\"] = 13] = \"Additive\";\n // MultiplicativeExpression:\n // ExponentiationExpression\n // MultiplicativeExpression MultiplicativeOperator ExponentiationExpression\n // MultiplicativeOperator: one of `*`, `/`, `%`\n OperatorPrecedence[OperatorPrecedence[\"Multiplicative\"] = 14] = \"Multiplicative\";\n // ExponentiationExpression:\n // UnaryExpression\n // UpdateExpression `**` ExponentiationExpression\n OperatorPrecedence[OperatorPrecedence[\"Exponentiation\"] = 15] = \"Exponentiation\";\n // UnaryExpression:\n // UpdateExpression\n // `delete` UnaryExpression\n // `void` UnaryExpression\n // `typeof` UnaryExpression\n // `+` UnaryExpression\n // `-` UnaryExpression\n // `~` UnaryExpression\n // `!` UnaryExpression\n // AwaitExpression\n // UpdateExpression: // TODO: Do we need to investigate the precedence here?\n // `++` UnaryExpression\n // `--` UnaryExpression\n OperatorPrecedence[OperatorPrecedence[\"Unary\"] = 16] = \"Unary\";\n // UpdateExpression:\n // LeftHandSideExpression\n // LeftHandSideExpression `++`\n // LeftHandSideExpression `--`\n OperatorPrecedence[OperatorPrecedence[\"Update\"] = 17] = \"Update\";\n // LeftHandSideExpression:\n // NewExpression\n // CallExpression\n // NewExpression:\n // MemberExpression\n // `new` NewExpression\n OperatorPrecedence[OperatorPrecedence[\"LeftHandSide\"] = 18] = \"LeftHandSide\";\n // CallExpression:\n // CoverCallExpressionAndAsyncArrowHead\n // SuperCall\n // ImportCall\n // CallExpression Arguments\n // CallExpression `[` Expression `]`\n // CallExpression `.` IdentifierName\n // CallExpression TemplateLiteral\n // MemberExpression:\n // PrimaryExpression\n // MemberExpression `[` Expression `]`\n // MemberExpression `.` IdentifierName\n // MemberExpression TemplateLiteral\n // SuperProperty\n // MetaProperty\n // `new` MemberExpression Arguments\n OperatorPrecedence[OperatorPrecedence[\"Member\"] = 19] = \"Member\";\n // TODO: JSXElement?\n // PrimaryExpression:\n // `this`\n // IdentifierReference\n // Literal\n // ArrayLiteral\n // ObjectLiteral\n // FunctionExpression\n // ClassExpression\n // GeneratorExpression\n // AsyncFunctionExpression\n // AsyncGeneratorExpression\n // RegularExpressionLiteral\n // TemplateLiteral\n // CoverParenthesizedExpressionAndArrowParameterList\n OperatorPrecedence[OperatorPrecedence[\"Primary\"] = 20] = \"Primary\";\n OperatorPrecedence[OperatorPrecedence[\"Highest\"] = 20] = \"Highest\";\n OperatorPrecedence[OperatorPrecedence[\"Lowest\"] = 0] = \"Lowest\";\n // -1 is lower than all other precedences. Returning it will cause binary expression\n // parsing to stop.\n OperatorPrecedence[OperatorPrecedence[\"Invalid\"] = -1] = \"Invalid\";\n })(OperatorPrecedence = ts.OperatorPrecedence || (ts.OperatorPrecedence = {}));\n function getOperatorPrecedence(nodeKind, operatorKind, hasArguments) {\n switch (nodeKind) {\n case 346 /* CommaListExpression */:\n return 0 /* Comma */;\n case 223 /* SpreadElement */:\n return 1 /* Spread */;\n case 222 /* YieldExpression */:\n return 2 /* Yield */;\n case 220 /* ConditionalExpression */:\n return 4 /* Conditional */;\n case 219 /* BinaryExpression */:\n switch (operatorKind) {\n case 27 /* CommaToken */:\n return 0 /* Comma */;\n case 63 /* EqualsToken */:\n case 64 /* PlusEqualsToken */:\n case 65 /* MinusEqualsToken */:\n case 67 /* AsteriskAsteriskEqualsToken */:\n case 66 /* AsteriskEqualsToken */:\n case 68 /* SlashEqualsToken */:\n case 69 /* PercentEqualsToken */:\n case 70 /* LessThanLessThanEqualsToken */:\n case 71 /* GreaterThanGreaterThanEqualsToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n case 73 /* AmpersandEqualsToken */:\n case 78 /* CaretEqualsToken */:\n case 74 /* BarEqualsToken */:\n case 75 /* BarBarEqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return 3 /* Assignment */;\n default:\n return getBinaryOperatorPrecedence(operatorKind);\n }\n // TODO: Should prefix `++` and `--` be moved to the `Update` precedence?\n case 209 /* TypeAssertionExpression */:\n case 228 /* NonNullExpression */:\n case 217 /* PrefixUnaryExpression */:\n case 214 /* TypeOfExpression */:\n case 215 /* VoidExpression */:\n case 213 /* DeleteExpression */:\n case 216 /* AwaitExpression */:\n return 16 /* Unary */;\n case 218 /* PostfixUnaryExpression */:\n return 17 /* Update */;\n case 206 /* CallExpression */:\n return 18 /* LeftHandSide */;\n case 207 /* NewExpression */:\n return hasArguments ? 19 /* Member */ : 18 /* LeftHandSide */;\n case 208 /* TaggedTemplateExpression */:\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n case 229 /* MetaProperty */:\n return 19 /* Member */;\n case 227 /* AsExpression */:\n return 11 /* Relational */;\n case 108 /* ThisKeyword */:\n case 106 /* SuperKeyword */:\n case 79 /* Identifier */:\n case 104 /* NullKeyword */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 10 /* StringLiteral */:\n case 202 /* ArrayLiteralExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 224 /* ClassExpression */:\n case 13 /* RegularExpressionLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 221 /* TemplateExpression */:\n case 210 /* ParenthesizedExpression */:\n case 225 /* OmittedExpression */:\n case 276 /* JsxElement */:\n case 277 /* JsxSelfClosingElement */:\n case 280 /* JsxFragment */:\n return 20 /* Primary */;\n default:\n return -1 /* Invalid */;\n }\n }\n ts.getOperatorPrecedence = getOperatorPrecedence;\n function getBinaryOperatorPrecedence(kind) {\n switch (kind) {\n case 60 /* QuestionQuestionToken */:\n return 4 /* Coalesce */;\n case 56 /* BarBarToken */:\n return 5 /* LogicalOR */;\n case 55 /* AmpersandAmpersandToken */:\n return 6 /* LogicalAND */;\n case 51 /* BarToken */:\n return 7 /* BitwiseOR */;\n case 52 /* CaretToken */:\n return 8 /* BitwiseXOR */;\n case 50 /* AmpersandToken */:\n return 9 /* BitwiseAND */;\n case 34 /* EqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n case 36 /* EqualsEqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n return 10 /* Equality */;\n case 29 /* LessThanToken */:\n case 31 /* GreaterThanToken */:\n case 32 /* LessThanEqualsToken */:\n case 33 /* GreaterThanEqualsToken */:\n case 102 /* InstanceOfKeyword */:\n case 101 /* InKeyword */:\n case 127 /* AsKeyword */:\n return 11 /* Relational */;\n case 47 /* LessThanLessThanToken */:\n case 48 /* GreaterThanGreaterThanToken */:\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n return 12 /* Shift */;\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n return 13 /* Additive */;\n case 41 /* AsteriskToken */:\n case 43 /* SlashToken */:\n case 44 /* PercentToken */:\n return 14 /* Multiplicative */;\n case 42 /* AsteriskAsteriskToken */:\n return 15 /* Exponentiation */;\n }\n // -1 is lower than all other precedences. Returning it will cause binary expression\n // parsing to stop.\n return -1;\n }\n ts.getBinaryOperatorPrecedence = getBinaryOperatorPrecedence;\n function getSemanticJsxChildren(children) {\n return ts.filter(children, function (i) {\n switch (i.kind) {\n case 286 /* JsxExpression */:\n return !!i.expression;\n case 11 /* JsxText */:\n return !i.containsOnlyTriviaWhiteSpaces;\n default:\n return true;\n }\n });\n }\n ts.getSemanticJsxChildren = getSemanticJsxChildren;\n function createDiagnosticCollection() {\n var nonFileDiagnostics = []; // See GH#19873\n var filesWithDiagnostics = [];\n var fileDiagnostics = new ts.Map();\n var hasReadNonFileDiagnostics = false;\n return {\n add: add,\n lookup: lookup,\n getGlobalDiagnostics: getGlobalDiagnostics,\n getDiagnostics: getDiagnostics,\n };\n function lookup(diagnostic) {\n var diagnostics;\n if (diagnostic.file) {\n diagnostics = fileDiagnostics.get(diagnostic.file.fileName);\n }\n else {\n diagnostics = nonFileDiagnostics;\n }\n if (!diagnostics) {\n return undefined;\n }\n var result = ts.binarySearch(diagnostics, diagnostic, ts.identity, compareDiagnosticsSkipRelatedInformation);\n if (result >= 0) {\n return diagnostics[result];\n }\n return undefined;\n }\n function add(diagnostic) {\n var diagnostics;\n if (diagnostic.file) {\n diagnostics = fileDiagnostics.get(diagnostic.file.fileName);\n if (!diagnostics) {\n diagnostics = []; // See GH#19873\n fileDiagnostics.set(diagnostic.file.fileName, diagnostics);\n ts.insertSorted(filesWithDiagnostics, diagnostic.file.fileName, ts.compareStringsCaseSensitive);\n }\n }\n else {\n // If we've already read the non-file diagnostics, do not modify the existing array.\n if (hasReadNonFileDiagnostics) {\n hasReadNonFileDiagnostics = false;\n nonFileDiagnostics = nonFileDiagnostics.slice();\n }\n diagnostics = nonFileDiagnostics;\n }\n ts.insertSorted(diagnostics, diagnostic, compareDiagnostics);\n }\n function getGlobalDiagnostics() {\n hasReadNonFileDiagnostics = true;\n return nonFileDiagnostics;\n }\n function getDiagnostics(fileName) {\n if (fileName) {\n return fileDiagnostics.get(fileName) || [];\n }\n var fileDiags = ts.flatMapToMutable(filesWithDiagnostics, function (f) { return fileDiagnostics.get(f); });\n if (!nonFileDiagnostics.length) {\n return fileDiags;\n }\n fileDiags.unshift.apply(fileDiags, nonFileDiagnostics);\n return fileDiags;\n }\n }\n ts.createDiagnosticCollection = createDiagnosticCollection;\n var templateSubstitutionRegExp = /\\$\\{/g;\n function escapeTemplateSubstitution(str) {\n return str.replace(templateSubstitutionRegExp, \"\\\\${\");\n }\n /** @internal */\n function hasInvalidEscape(template) {\n return template && !!(ts.isNoSubstitutionTemplateLiteral(template)\n ? template.templateFlags\n : (template.head.templateFlags || ts.some(template.templateSpans, function (span) { return !!span.literal.templateFlags; })));\n }\n ts.hasInvalidEscape = hasInvalidEscape;\n // This consists of the first 19 unprintable ASCII characters, canonical escapes, lineSeparator,\n // paragraphSeparator, and nextLine. The latter three are just desirable to suppress new lines in\n // the language service. These characters should be escaped when printing, and if any characters are added,\n // the map below must be updated. Note that this regexp *does not* include the 'delete' character.\n // There is no reason for this other than that JSON.stringify does not handle it either.\n var doubleQuoteEscapedCharsRegExp = /[\\\\\\\"\\u0000-\\u001f\\t\\v\\f\\b\\r\\n\\u2028\\u2029\\u0085]/g;\n var singleQuoteEscapedCharsRegExp = /[\\\\\\'\\u0000-\\u001f\\t\\v\\f\\b\\r\\n\\u2028\\u2029\\u0085]/g;\n // Template strings preserve simple LF newlines, still encode CRLF (or CR)\n var backtickQuoteEscapedCharsRegExp = /\\r\\n|[\\\\\\`\\u0000-\\u001f\\t\\v\\f\\b\\r\\u2028\\u2029\\u0085]/g;\n var escapedCharsMap = new ts.Map(ts.getEntries({\n \"\\t\": \"\\\\t\",\n \"\\v\": \"\\\\v\",\n \"\\f\": \"\\\\f\",\n \"\\b\": \"\\\\b\",\n \"\\r\": \"\\\\r\",\n \"\\n\": \"\\\\n\",\n \"\\\\\": \"\\\\\\\\\",\n \"\\\"\": \"\\\\\\\"\",\n \"\\'\": \"\\\\\\'\",\n \"\\`\": \"\\\\\\`\",\n \"\\u2028\": \"\\\\u2028\",\n \"\\u2029\": \"\\\\u2029\",\n \"\\u0085\": \"\\\\u0085\",\n \"\\r\\n\": \"\\\\r\\\\n\", // special case for CRLFs in backticks\n }));\n function encodeUtf16EscapeSequence(charCode) {\n var hexCharCode = charCode.toString(16).toUpperCase();\n var paddedHexCode = (\"0000\" + hexCharCode).slice(-4);\n return \"\\\\u\" + paddedHexCode;\n }\n function getReplacement(c, offset, input) {\n if (c.charCodeAt(0) === 0 /* nullCharacter */) {\n var lookAhead = input.charCodeAt(offset + c.length);\n if (lookAhead >= 48 /* _0 */ && lookAhead <= 57 /* _9 */) {\n // If the null character is followed by digits, print as a hex escape to prevent the result from parsing as an octal (which is forbidden in strict mode)\n return \"\\\\x00\";\n }\n // Otherwise, keep printing a literal \\0 for the null character\n return \"\\\\0\";\n }\n return escapedCharsMap.get(c) || encodeUtf16EscapeSequence(c.charCodeAt(0));\n }\n /**\n * Based heavily on the abstract 'Quote'/'QuoteJSONString' operation from ECMA-262 (24.3.2.2),\n * but augmented for a few select characters (e.g. lineSeparator, paragraphSeparator, nextLine)\n * Note that this doesn't actually wrap the input in double quotes.\n */\n function escapeString(s, quoteChar) {\n var escapedCharsRegExp = quoteChar === 96 /* backtick */ ? backtickQuoteEscapedCharsRegExp :\n quoteChar === 39 /* singleQuote */ ? singleQuoteEscapedCharsRegExp :\n doubleQuoteEscapedCharsRegExp;\n return s.replace(escapedCharsRegExp, getReplacement);\n }\n ts.escapeString = escapeString;\n var nonAsciiCharacters = /[^\\u0000-\\u007F]/g;\n function escapeNonAsciiString(s, quoteChar) {\n s = escapeString(s, quoteChar);\n // Replace non-ASCII characters with '\\uNNNN' escapes if any exist.\n // Otherwise just return the original string.\n return nonAsciiCharacters.test(s) ?\n s.replace(nonAsciiCharacters, function (c) { return encodeUtf16EscapeSequence(c.charCodeAt(0)); }) :\n s;\n }\n ts.escapeNonAsciiString = escapeNonAsciiString;\n // This consists of the first 19 unprintable ASCII characters, JSX canonical escapes, lineSeparator,\n // paragraphSeparator, and nextLine. The latter three are just desirable to suppress new lines in\n // the language service. These characters should be escaped when printing, and if any characters are added,\n // the map below must be updated.\n var jsxDoubleQuoteEscapedCharsRegExp = /[\\\"\\u0000-\\u001f\\u2028\\u2029\\u0085]/g;\n var jsxSingleQuoteEscapedCharsRegExp = /[\\'\\u0000-\\u001f\\u2028\\u2029\\u0085]/g;\n var jsxEscapedCharsMap = new ts.Map(ts.getEntries({\n \"\\\"\": \""\",\n \"\\'\": \"'\"\n }));\n function encodeJsxCharacterEntity(charCode) {\n var hexCharCode = charCode.toString(16).toUpperCase();\n return \"&#x\" + hexCharCode + \";\";\n }\n function getJsxAttributeStringReplacement(c) {\n if (c.charCodeAt(0) === 0 /* nullCharacter */) {\n return \"�\";\n }\n return jsxEscapedCharsMap.get(c) || encodeJsxCharacterEntity(c.charCodeAt(0));\n }\n function escapeJsxAttributeString(s, quoteChar) {\n var escapedCharsRegExp = quoteChar === 39 /* singleQuote */ ? jsxSingleQuoteEscapedCharsRegExp :\n jsxDoubleQuoteEscapedCharsRegExp;\n return s.replace(escapedCharsRegExp, getJsxAttributeStringReplacement);\n }\n ts.escapeJsxAttributeString = escapeJsxAttributeString;\n /**\n * Strip off existed surrounding single quotes, double quotes, or backticks from a given string\n *\n * @return non-quoted string\n */\n function stripQuotes(name) {\n var length = name.length;\n if (length >= 2 && name.charCodeAt(0) === name.charCodeAt(length - 1) && isQuoteOrBacktick(name.charCodeAt(0))) {\n return name.substring(1, length - 1);\n }\n return name;\n }\n ts.stripQuotes = stripQuotes;\n function isQuoteOrBacktick(charCode) {\n return charCode === 39 /* singleQuote */ ||\n charCode === 34 /* doubleQuote */ ||\n charCode === 96 /* backtick */;\n }\n function isIntrinsicJsxName(name) {\n var ch = name.charCodeAt(0);\n return (ch >= 97 /* a */ && ch <= 122 /* z */) || ts.stringContains(name, \"-\") || ts.stringContains(name, \":\");\n }\n ts.isIntrinsicJsxName = isIntrinsicJsxName;\n var indentStrings = [\"\", \" \"];\n function getIndentString(level) {\n // prepopulate cache\n var singleLevel = indentStrings[1];\n for (var current = indentStrings.length; current <= level; current++) {\n indentStrings.push(indentStrings[current - 1] + singleLevel);\n }\n return indentStrings[level];\n }\n ts.getIndentString = getIndentString;\n function getIndentSize() {\n return indentStrings[1].length;\n }\n ts.getIndentSize = getIndentSize;\n function createTextWriter(newLine) {\n var output;\n var indent;\n var lineStart;\n var lineCount;\n var linePos;\n var hasTrailingComment = false;\n function updateLineCountAndPosFor(s) {\n var lineStartsOfS = ts.computeLineStarts(s);\n if (lineStartsOfS.length > 1) {\n lineCount = lineCount + lineStartsOfS.length - 1;\n linePos = output.length - s.length + ts.last(lineStartsOfS);\n lineStart = (linePos - output.length) === 0;\n }\n else {\n lineStart = false;\n }\n }\n function writeText(s) {\n if (s && s.length) {\n if (lineStart) {\n s = getIndentString(indent) + s;\n lineStart = false;\n }\n output += s;\n updateLineCountAndPosFor(s);\n }\n }\n function write(s) {\n if (s)\n hasTrailingComment = false;\n writeText(s);\n }\n function writeComment(s) {\n if (s)\n hasTrailingComment = true;\n writeText(s);\n }\n function reset() {\n output = \"\";\n indent = 0;\n lineStart = true;\n lineCount = 0;\n linePos = 0;\n hasTrailingComment = false;\n }\n function rawWrite(s) {\n if (s !== undefined) {\n output += s;\n updateLineCountAndPosFor(s);\n hasTrailingComment = false;\n }\n }\n function writeLiteral(s) {\n if (s && s.length) {\n write(s);\n }\n }\n function writeLine(force) {\n if (!lineStart || force) {\n output += newLine;\n lineCount++;\n linePos = output.length;\n lineStart = true;\n hasTrailingComment = false;\n }\n }\n function getTextPosWithWriteLine() {\n return lineStart ? output.length : (output.length + newLine.length);\n }\n reset();\n return {\n write: write,\n rawWrite: rawWrite,\n writeLiteral: writeLiteral,\n writeLine: writeLine,\n increaseIndent: function () { indent++; },\n decreaseIndent: function () { indent--; },\n getIndent: function () { return indent; },\n getTextPos: function () { return output.length; },\n getLine: function () { return lineCount; },\n getColumn: function () { return lineStart ? indent * getIndentSize() : output.length - linePos; },\n getText: function () { return output; },\n isAtStartOfLine: function () { return lineStart; },\n hasTrailingComment: function () { return hasTrailingComment; },\n hasTrailingWhitespace: function () { return !!output.length && ts.isWhiteSpaceLike(output.charCodeAt(output.length - 1)); },\n clear: reset,\n reportInaccessibleThisError: ts.noop,\n reportPrivateInBaseOfClassExpression: ts.noop,\n reportInaccessibleUniqueSymbolError: ts.noop,\n trackSymbol: function () { return false; },\n writeKeyword: write,\n writeOperator: write,\n writeParameter: write,\n writeProperty: write,\n writePunctuation: write,\n writeSpace: write,\n writeStringLiteral: write,\n writeSymbol: function (s, _) { return write(s); },\n writeTrailingSemicolon: write,\n writeComment: writeComment,\n getTextPosWithWriteLine: getTextPosWithWriteLine\n };\n }\n ts.createTextWriter = createTextWriter;\n function getTrailingSemicolonDeferringWriter(writer) {\n var pendingTrailingSemicolon = false;\n function commitPendingTrailingSemicolon() {\n if (pendingTrailingSemicolon) {\n writer.writeTrailingSemicolon(\";\");\n pendingTrailingSemicolon = false;\n }\n }\n return __assign(__assign({}, writer), { writeTrailingSemicolon: function () {\n pendingTrailingSemicolon = true;\n }, writeLiteral: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeLiteral(s);\n }, writeStringLiteral: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeStringLiteral(s);\n }, writeSymbol: function (s, sym) {\n commitPendingTrailingSemicolon();\n writer.writeSymbol(s, sym);\n }, writePunctuation: function (s) {\n commitPendingTrailingSemicolon();\n writer.writePunctuation(s);\n }, writeKeyword: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeKeyword(s);\n }, writeOperator: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeOperator(s);\n }, writeParameter: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeParameter(s);\n }, writeSpace: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeSpace(s);\n }, writeProperty: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeProperty(s);\n }, writeComment: function (s) {\n commitPendingTrailingSemicolon();\n writer.writeComment(s);\n }, writeLine: function () {\n commitPendingTrailingSemicolon();\n writer.writeLine();\n }, increaseIndent: function () {\n commitPendingTrailingSemicolon();\n writer.increaseIndent();\n }, decreaseIndent: function () {\n commitPendingTrailingSemicolon();\n writer.decreaseIndent();\n } });\n }\n ts.getTrailingSemicolonDeferringWriter = getTrailingSemicolonDeferringWriter;\n function hostUsesCaseSensitiveFileNames(host) {\n return host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : false;\n }\n ts.hostUsesCaseSensitiveFileNames = hostUsesCaseSensitiveFileNames;\n function hostGetCanonicalFileName(host) {\n return ts.createGetCanonicalFileName(hostUsesCaseSensitiveFileNames(host));\n }\n ts.hostGetCanonicalFileName = hostGetCanonicalFileName;\n function getResolvedExternalModuleName(host, file, referenceFile) {\n return file.moduleName || getExternalModuleNameFromPath(host, file.fileName, referenceFile && referenceFile.fileName);\n }\n ts.getResolvedExternalModuleName = getResolvedExternalModuleName;\n function getCanonicalAbsolutePath(host, path) {\n return host.getCanonicalFileName(ts.getNormalizedAbsolutePath(path, host.getCurrentDirectory()));\n }\n function getExternalModuleNameFromDeclaration(host, resolver, declaration) {\n var file = resolver.getExternalModuleFileFromDeclaration(declaration);\n if (!file || file.isDeclarationFile) {\n return undefined;\n }\n // If the declaration already uses a non-relative name, and is outside the common source directory, continue to use it\n var specifier = getExternalModuleName(declaration);\n if (specifier && ts.isStringLiteralLike(specifier) && !ts.pathIsRelative(specifier.text) &&\n getCanonicalAbsolutePath(host, file.path).indexOf(getCanonicalAbsolutePath(host, ts.ensureTrailingDirectorySeparator(host.getCommonSourceDirectory()))) === -1) {\n return undefined;\n }\n return getResolvedExternalModuleName(host, file);\n }\n ts.getExternalModuleNameFromDeclaration = getExternalModuleNameFromDeclaration;\n /**\n * Resolves a local path to a path which is absolute to the base of the emit\n */\n function getExternalModuleNameFromPath(host, fileName, referencePath) {\n var getCanonicalFileName = function (f) { return host.getCanonicalFileName(f); };\n var dir = ts.toPath(referencePath ? ts.getDirectoryPath(referencePath) : host.getCommonSourceDirectory(), host.getCurrentDirectory(), getCanonicalFileName);\n var filePath = ts.getNormalizedAbsolutePath(fileName, host.getCurrentDirectory());\n var relativePath = ts.getRelativePathToDirectoryOrUrl(dir, filePath, dir, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false);\n var extensionless = removeFileExtension(relativePath);\n return referencePath ? ts.ensurePathIsNonModuleName(extensionless) : extensionless;\n }\n ts.getExternalModuleNameFromPath = getExternalModuleNameFromPath;\n function getOwnEmitOutputFilePath(fileName, host, extension) {\n var compilerOptions = host.getCompilerOptions();\n var emitOutputFilePathWithoutExtension;\n if (compilerOptions.outDir) {\n emitOutputFilePathWithoutExtension = removeFileExtension(getSourceFilePathInNewDir(fileName, host, compilerOptions.outDir));\n }\n else {\n emitOutputFilePathWithoutExtension = removeFileExtension(fileName);\n }\n return emitOutputFilePathWithoutExtension + extension;\n }\n ts.getOwnEmitOutputFilePath = getOwnEmitOutputFilePath;\n function getDeclarationEmitOutputFilePath(fileName, host) {\n return getDeclarationEmitOutputFilePathWorker(fileName, host.getCompilerOptions(), host.getCurrentDirectory(), host.getCommonSourceDirectory(), function (f) { return host.getCanonicalFileName(f); });\n }\n ts.getDeclarationEmitOutputFilePath = getDeclarationEmitOutputFilePath;\n function getDeclarationEmitOutputFilePathWorker(fileName, options, currentDirectory, commonSourceDirectory, getCanonicalFileName) {\n var outputDir = options.declarationDir || options.outDir; // Prefer declaration folder if specified\n var path = outputDir\n ? getSourceFilePathInNewDirWorker(fileName, outputDir, currentDirectory, commonSourceDirectory, getCanonicalFileName)\n : fileName;\n return removeFileExtension(path) + \".d.ts\" /* Dts */;\n }\n ts.getDeclarationEmitOutputFilePathWorker = getDeclarationEmitOutputFilePathWorker;\n function outFile(options) {\n return options.outFile || options.out;\n }\n ts.outFile = outFile;\n /** Returns 'undefined' if and only if 'options.paths' is undefined. */\n function getPathsBasePath(options, host) {\n var _a, _b;\n if (!options.paths)\n return undefined;\n return (_a = options.baseUrl) !== null && _a !== void 0 ? _a : ts.Debug.checkDefined(options.pathsBasePath || ((_b = host.getCurrentDirectory) === null || _b === void 0 ? void 0 : _b.call(host)), \"Encountered 'paths' without a 'baseUrl', config file, or host 'getCurrentDirectory'.\");\n }\n ts.getPathsBasePath = getPathsBasePath;\n /**\n * Gets the source files that are expected to have an emit output.\n *\n * Originally part of `forEachExpectedEmitFile`, this functionality was extracted to support\n * transformations.\n *\n * @param host An EmitHost.\n * @param targetSourceFile An optional target source file to emit.\n */\n function getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit) {\n var options = host.getCompilerOptions();\n if (outFile(options)) {\n var moduleKind = getEmitModuleKind(options);\n var moduleEmitEnabled_1 = options.emitDeclarationOnly || moduleKind === ts.ModuleKind.AMD || moduleKind === ts.ModuleKind.System;\n // Can emit only sources that are not declaration file and are either non module code or module with --module or --target es6 specified\n return ts.filter(host.getSourceFiles(), function (sourceFile) {\n return (moduleEmitEnabled_1 || !ts.isExternalModule(sourceFile)) &&\n sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit);\n });\n }\n else {\n var sourceFiles = targetSourceFile === undefined ? host.getSourceFiles() : [targetSourceFile];\n return ts.filter(sourceFiles, function (sourceFile) { return sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit); });\n }\n }\n ts.getSourceFilesToEmit = getSourceFilesToEmit;\n /** Don't call this for `--outFile`, just for `--outDir` or plain emit. `--outFile` needs additional checks. */\n function sourceFileMayBeEmitted(sourceFile, host, forceDtsEmit) {\n var options = host.getCompilerOptions();\n return !(options.noEmitForJsFiles && isSourceFileJS(sourceFile)) &&\n !sourceFile.isDeclarationFile &&\n !host.isSourceFileFromExternalLibrary(sourceFile) &&\n (forceDtsEmit || (!(isJsonSourceFile(sourceFile) && host.getResolvedProjectReferenceToRedirect(sourceFile.fileName)) &&\n !host.isSourceOfProjectReferenceRedirect(sourceFile.fileName)));\n }\n ts.sourceFileMayBeEmitted = sourceFileMayBeEmitted;\n function getSourceFilePathInNewDir(fileName, host, newDirPath) {\n return getSourceFilePathInNewDirWorker(fileName, newDirPath, host.getCurrentDirectory(), host.getCommonSourceDirectory(), function (f) { return host.getCanonicalFileName(f); });\n }\n ts.getSourceFilePathInNewDir = getSourceFilePathInNewDir;\n function getSourceFilePathInNewDirWorker(fileName, newDirPath, currentDirectory, commonSourceDirectory, getCanonicalFileName) {\n var sourceFilePath = ts.getNormalizedAbsolutePath(fileName, currentDirectory);\n var isSourceFileInCommonSourceDirectory = getCanonicalFileName(sourceFilePath).indexOf(getCanonicalFileName(commonSourceDirectory)) === 0;\n sourceFilePath = isSourceFileInCommonSourceDirectory ? sourceFilePath.substring(commonSourceDirectory.length) : sourceFilePath;\n return ts.combinePaths(newDirPath, sourceFilePath);\n }\n ts.getSourceFilePathInNewDirWorker = getSourceFilePathInNewDirWorker;\n function writeFile(host, diagnostics, fileName, data, writeByteOrderMark, sourceFiles) {\n host.writeFile(fileName, data, writeByteOrderMark, function (hostErrorMessage) {\n diagnostics.add(createCompilerDiagnostic(ts.Diagnostics.Could_not_write_file_0_Colon_1, fileName, hostErrorMessage));\n }, sourceFiles);\n }\n ts.writeFile = writeFile;\n function ensureDirectoriesExist(directoryPath, createDirectory, directoryExists) {\n if (directoryPath.length > ts.getRootLength(directoryPath) && !directoryExists(directoryPath)) {\n var parentDirectory = ts.getDirectoryPath(directoryPath);\n ensureDirectoriesExist(parentDirectory, createDirectory, directoryExists);\n createDirectory(directoryPath);\n }\n }\n function writeFileEnsuringDirectories(path, data, writeByteOrderMark, writeFile, createDirectory, directoryExists) {\n // PERF: Checking for directory existence is expensive. Instead, assume the directory exists\n // and fall back to creating it if the file write fails.\n try {\n writeFile(path, data, writeByteOrderMark);\n }\n catch (_a) {\n ensureDirectoriesExist(ts.getDirectoryPath(ts.normalizePath(path)), createDirectory, directoryExists);\n writeFile(path, data, writeByteOrderMark);\n }\n }\n ts.writeFileEnsuringDirectories = writeFileEnsuringDirectories;\n function getLineOfLocalPosition(sourceFile, pos) {\n var lineStarts = ts.getLineStarts(sourceFile);\n return ts.computeLineOfPosition(lineStarts, pos);\n }\n ts.getLineOfLocalPosition = getLineOfLocalPosition;\n function getLineOfLocalPositionFromLineMap(lineMap, pos) {\n return ts.computeLineOfPosition(lineMap, pos);\n }\n ts.getLineOfLocalPositionFromLineMap = getLineOfLocalPositionFromLineMap;\n function getFirstConstructorWithBody(node) {\n return ts.find(node.members, function (member) { return ts.isConstructorDeclaration(member) && nodeIsPresent(member.body); });\n }\n ts.getFirstConstructorWithBody = getFirstConstructorWithBody;\n function getSetAccessorValueParameter(accessor) {\n if (accessor && accessor.parameters.length > 0) {\n var hasThis = accessor.parameters.length === 2 && parameterIsThisKeyword(accessor.parameters[0]);\n return accessor.parameters[hasThis ? 1 : 0];\n }\n }\n ts.getSetAccessorValueParameter = getSetAccessorValueParameter;\n /** Get the type annotation for the value parameter. */\n function getSetAccessorTypeAnnotationNode(accessor) {\n var parameter = getSetAccessorValueParameter(accessor);\n return parameter && parameter.type;\n }\n ts.getSetAccessorTypeAnnotationNode = getSetAccessorTypeAnnotationNode;\n function getThisParameter(signature) {\n // callback tags do not currently support this parameters\n if (signature.parameters.length && !ts.isJSDocSignature(signature)) {\n var thisParameter = signature.parameters[0];\n if (parameterIsThisKeyword(thisParameter)) {\n return thisParameter;\n }\n }\n }\n ts.getThisParameter = getThisParameter;\n function parameterIsThisKeyword(parameter) {\n return isThisIdentifier(parameter.name);\n }\n ts.parameterIsThisKeyword = parameterIsThisKeyword;\n function isThisIdentifier(node) {\n return !!node && node.kind === 79 /* Identifier */ && identifierIsThisKeyword(node);\n }\n ts.isThisIdentifier = isThisIdentifier;\n function isThisInTypeQuery(node) {\n if (!isThisIdentifier(node)) {\n return false;\n }\n while (ts.isQualifiedName(node.parent) && node.parent.left === node) {\n node = node.parent;\n }\n return node.parent.kind === 179 /* TypeQuery */;\n }\n ts.isThisInTypeQuery = isThisInTypeQuery;\n function identifierIsThisKeyword(id) {\n return id.originalKeywordKind === 108 /* ThisKeyword */;\n }\n ts.identifierIsThisKeyword = identifierIsThisKeyword;\n function getAllAccessorDeclarations(declarations, accessor) {\n // TODO: GH#18217\n var firstAccessor;\n var secondAccessor;\n var getAccessor;\n var setAccessor;\n if (hasDynamicName(accessor)) {\n firstAccessor = accessor;\n if (accessor.kind === 170 /* GetAccessor */) {\n getAccessor = accessor;\n }\n else if (accessor.kind === 171 /* SetAccessor */) {\n setAccessor = accessor;\n }\n else {\n ts.Debug.fail(\"Accessor has wrong kind\");\n }\n }\n else {\n ts.forEach(declarations, function (member) {\n if (ts.isAccessor(member)\n && isStatic(member) === isStatic(accessor)) {\n var memberName = getPropertyNameForPropertyNameNode(member.name);\n var accessorName = getPropertyNameForPropertyNameNode(accessor.name);\n if (memberName === accessorName) {\n if (!firstAccessor) {\n firstAccessor = member;\n }\n else if (!secondAccessor) {\n secondAccessor = member;\n }\n if (member.kind === 170 /* GetAccessor */ && !getAccessor) {\n getAccessor = member;\n }\n if (member.kind === 171 /* SetAccessor */ && !setAccessor) {\n setAccessor = member;\n }\n }\n }\n });\n }\n return {\n firstAccessor: firstAccessor,\n secondAccessor: secondAccessor,\n getAccessor: getAccessor,\n setAccessor: setAccessor\n };\n }\n ts.getAllAccessorDeclarations = getAllAccessorDeclarations;\n /**\n * Gets the effective type annotation of a variable, parameter, or property. If the node was\n * parsed in a JavaScript file, gets the type annotation from JSDoc. Also gets the type of\n * functions only the JSDoc case.\n */\n function getEffectiveTypeAnnotationNode(node) {\n if (!isInJSFile(node) && ts.isFunctionDeclaration(node))\n return undefined;\n var type = node.type;\n if (type || !isInJSFile(node))\n return type;\n return ts.isJSDocPropertyLikeTag(node) ? node.typeExpression && node.typeExpression.type : ts.getJSDocType(node);\n }\n ts.getEffectiveTypeAnnotationNode = getEffectiveTypeAnnotationNode;\n function getTypeAnnotationNode(node) {\n return node.type;\n }\n ts.getTypeAnnotationNode = getTypeAnnotationNode;\n /**\n * Gets the effective return type annotation of a signature. If the node was parsed in a\n * JavaScript file, gets the return type annotation from JSDoc.\n */\n function getEffectiveReturnTypeNode(node) {\n return ts.isJSDocSignature(node) ?\n node.type && node.type.typeExpression && node.type.typeExpression.type :\n node.type || (isInJSFile(node) ? ts.getJSDocReturnType(node) : undefined);\n }\n ts.getEffectiveReturnTypeNode = getEffectiveReturnTypeNode;\n function getJSDocTypeParameterDeclarations(node) {\n return ts.flatMap(ts.getJSDocTags(node), function (tag) { return isNonTypeAliasTemplate(tag) ? tag.typeParameters : undefined; });\n }\n ts.getJSDocTypeParameterDeclarations = getJSDocTypeParameterDeclarations;\n /** template tags are only available when a typedef isn't already using them */\n function isNonTypeAliasTemplate(tag) {\n return ts.isJSDocTemplateTag(tag) && !(tag.parent.kind === 315 /* JSDocComment */ && tag.parent.tags.some(isJSDocTypeAlias));\n }\n /**\n * Gets the effective type annotation of the value parameter of a set accessor. If the node\n * was parsed in a JavaScript file, gets the type annotation from JSDoc.\n */\n function getEffectiveSetAccessorTypeAnnotationNode(node) {\n var parameter = getSetAccessorValueParameter(node);\n return parameter && getEffectiveTypeAnnotationNode(parameter);\n }\n ts.getEffectiveSetAccessorTypeAnnotationNode = getEffectiveSetAccessorTypeAnnotationNode;\n function emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments) {\n emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, node.pos, leadingComments);\n }\n ts.emitNewLineBeforeLeadingComments = emitNewLineBeforeLeadingComments;\n function emitNewLineBeforeLeadingCommentsOfPosition(lineMap, writer, pos, leadingComments) {\n // If the leading comments start on different line than the start of node, write new line\n if (leadingComments && leadingComments.length && pos !== leadingComments[0].pos &&\n getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, leadingComments[0].pos)) {\n writer.writeLine();\n }\n }\n ts.emitNewLineBeforeLeadingCommentsOfPosition = emitNewLineBeforeLeadingCommentsOfPosition;\n function emitNewLineBeforeLeadingCommentOfPosition(lineMap, writer, pos, commentPos) {\n // If the leading comments start on different line than the start of node, write new line\n if (pos !== commentPos &&\n getLineOfLocalPositionFromLineMap(lineMap, pos) !== getLineOfLocalPositionFromLineMap(lineMap, commentPos)) {\n writer.writeLine();\n }\n }\n ts.emitNewLineBeforeLeadingCommentOfPosition = emitNewLineBeforeLeadingCommentOfPosition;\n function emitComments(text, lineMap, writer, comments, leadingSeparator, trailingSeparator, newLine, writeComment) {\n if (comments && comments.length > 0) {\n if (leadingSeparator) {\n writer.writeSpace(\" \");\n }\n var emitInterveningSeparator = false;\n for (var _i = 0, comments_1 = comments; _i < comments_1.length; _i++) {\n var comment = comments_1[_i];\n if (emitInterveningSeparator) {\n writer.writeSpace(\" \");\n emitInterveningSeparator = false;\n }\n writeComment(text, lineMap, writer, comment.pos, comment.end, newLine);\n if (comment.hasTrailingNewLine) {\n writer.writeLine();\n }\n else {\n emitInterveningSeparator = true;\n }\n }\n if (emitInterveningSeparator && trailingSeparator) {\n writer.writeSpace(\" \");\n }\n }\n }\n ts.emitComments = emitComments;\n /**\n * Detached comment is a comment at the top of file or function body that is separated from\n * the next statement by space.\n */\n function emitDetachedComments(text, lineMap, writer, writeComment, node, newLine, removeComments) {\n var leadingComments;\n var currentDetachedCommentInfo;\n if (removeComments) {\n // removeComments is true, only reserve pinned comment at the top of file\n // For example:\n // /*! Pinned Comment */\n //\n // var x = 10;\n if (node.pos === 0) {\n leadingComments = ts.filter(ts.getLeadingCommentRanges(text, node.pos), isPinnedCommentLocal);\n }\n }\n else {\n // removeComments is false, just get detached as normal and bypass the process to filter comment\n leadingComments = ts.getLeadingCommentRanges(text, node.pos);\n }\n if (leadingComments) {\n var detachedComments = [];\n var lastComment = void 0;\n for (var _i = 0, leadingComments_1 = leadingComments; _i < leadingComments_1.length; _i++) {\n var comment = leadingComments_1[_i];\n if (lastComment) {\n var lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, lastComment.end);\n var commentLine = getLineOfLocalPositionFromLineMap(lineMap, comment.pos);\n if (commentLine >= lastCommentLine + 2) {\n // There was a blank line between the last comment and this comment. This\n // comment is not part of the copyright comments. Return what we have so\n // far.\n break;\n }\n }\n detachedComments.push(comment);\n lastComment = comment;\n }\n if (detachedComments.length) {\n // All comments look like they could have been part of the copyright header. Make\n // sure there is at least one blank line between it and the node. If not, it's not\n // a copyright header.\n var lastCommentLine = getLineOfLocalPositionFromLineMap(lineMap, ts.last(detachedComments).end);\n var nodeLine = getLineOfLocalPositionFromLineMap(lineMap, ts.skipTrivia(text, node.pos));\n if (nodeLine >= lastCommentLine + 2) {\n // Valid detachedComments\n emitNewLineBeforeLeadingComments(lineMap, writer, node, leadingComments);\n emitComments(text, lineMap, writer, detachedComments, /*leadingSeparator*/ false, /*trailingSeparator*/ true, newLine, writeComment);\n currentDetachedCommentInfo = { nodePos: node.pos, detachedCommentEndPos: ts.last(detachedComments).end };\n }\n }\n }\n return currentDetachedCommentInfo;\n function isPinnedCommentLocal(comment) {\n return isPinnedComment(text, comment.pos);\n }\n }\n ts.emitDetachedComments = emitDetachedComments;\n function writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine) {\n if (text.charCodeAt(commentPos + 1) === 42 /* asterisk */) {\n var firstCommentLineAndCharacter = ts.computeLineAndCharacterOfPosition(lineMap, commentPos);\n var lineCount = lineMap.length;\n var firstCommentLineIndent = void 0;\n for (var pos = commentPos, currentLine = firstCommentLineAndCharacter.line; pos < commentEnd; currentLine++) {\n var nextLineStart = (currentLine + 1) === lineCount\n ? text.length + 1\n : lineMap[currentLine + 1];\n if (pos !== commentPos) {\n // If we are not emitting first line, we need to write the spaces to adjust the alignment\n if (firstCommentLineIndent === undefined) {\n firstCommentLineIndent = calculateIndent(text, lineMap[firstCommentLineAndCharacter.line], commentPos);\n }\n // These are number of spaces writer is going to write at current indent\n var currentWriterIndentSpacing = writer.getIndent() * getIndentSize();\n // Number of spaces we want to be writing\n // eg: Assume writer indent\n // module m {\n // /* starts at character 9 this is line 1\n // * starts at character pos 4 line --1 = 8 - 8 + 3\n // More left indented comment */ --2 = 8 - 8 + 2\n // class c { }\n // }\n // module m {\n // /* this is line 1 -- Assume current writer indent 8\n // * line --3 = 8 - 4 + 5\n // More right indented comment */ --4 = 8 - 4 + 11\n // class c { }\n // }\n var spacesToEmit = currentWriterIndentSpacing - firstCommentLineIndent + calculateIndent(text, pos, nextLineStart);\n if (spacesToEmit > 0) {\n var numberOfSingleSpacesToEmit = spacesToEmit % getIndentSize();\n var indentSizeSpaceString = getIndentString((spacesToEmit - numberOfSingleSpacesToEmit) / getIndentSize());\n // Write indent size string ( in eg 1: = \"\", 2: \"\" , 3: string with 8 spaces 4: string with 12 spaces\n writer.rawWrite(indentSizeSpaceString);\n // Emit the single spaces (in eg: 1: 3 spaces, 2: 2 spaces, 3: 1 space, 4: 3 spaces)\n while (numberOfSingleSpacesToEmit) {\n writer.rawWrite(\" \");\n numberOfSingleSpacesToEmit--;\n }\n }\n else {\n // No spaces to emit write empty string\n writer.rawWrite(\"\");\n }\n }\n // Write the comment line text\n writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart);\n pos = nextLineStart;\n }\n }\n else {\n // Single line comment of style //....\n writer.writeComment(text.substring(commentPos, commentEnd));\n }\n }\n ts.writeCommentRange = writeCommentRange;\n function writeTrimmedCurrentLine(text, commentEnd, writer, newLine, pos, nextLineStart) {\n var end = Math.min(commentEnd, nextLineStart - 1);\n var currentLineText = ts.trimString(text.substring(pos, end));\n if (currentLineText) {\n // trimmed forward and ending spaces text\n writer.writeComment(currentLineText);\n if (end !== commentEnd) {\n writer.writeLine();\n }\n }\n else {\n // Empty string - make sure we write empty line\n writer.rawWrite(newLine);\n }\n }\n function calculateIndent(text, pos, end) {\n var currentLineIndent = 0;\n for (; pos < end && ts.isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++) {\n if (text.charCodeAt(pos) === 9 /* tab */) {\n // Tabs = TabSize = indent size and go to next tabStop\n currentLineIndent += getIndentSize() - (currentLineIndent % getIndentSize());\n }\n else {\n // Single space\n currentLineIndent++;\n }\n }\n return currentLineIndent;\n }\n function hasEffectiveModifiers(node) {\n return getEffectiveModifierFlags(node) !== 0 /* None */;\n }\n ts.hasEffectiveModifiers = hasEffectiveModifiers;\n function hasSyntacticModifiers(node) {\n return getSyntacticModifierFlags(node) !== 0 /* None */;\n }\n ts.hasSyntacticModifiers = hasSyntacticModifiers;\n function hasEffectiveModifier(node, flags) {\n return !!getSelectedEffectiveModifierFlags(node, flags);\n }\n ts.hasEffectiveModifier = hasEffectiveModifier;\n function hasSyntacticModifier(node, flags) {\n return !!getSelectedSyntacticModifierFlags(node, flags);\n }\n ts.hasSyntacticModifier = hasSyntacticModifier;\n function isStatic(node) {\n // https://tc39.es/ecma262/#sec-static-semantics-isstatic\n return ts.isClassElement(node) && hasStaticModifier(node) || ts.isClassStaticBlockDeclaration(node);\n }\n ts.isStatic = isStatic;\n function hasStaticModifier(node) {\n return hasSyntacticModifier(node, 32 /* Static */);\n }\n ts.hasStaticModifier = hasStaticModifier;\n function hasOverrideModifier(node) {\n return hasEffectiveModifier(node, 16384 /* Override */);\n }\n ts.hasOverrideModifier = hasOverrideModifier;\n function hasAbstractModifier(node) {\n return hasSyntacticModifier(node, 128 /* Abstract */);\n }\n ts.hasAbstractModifier = hasAbstractModifier;\n function hasAmbientModifier(node) {\n return hasSyntacticModifier(node, 2 /* Ambient */);\n }\n ts.hasAmbientModifier = hasAmbientModifier;\n function hasEffectiveReadonlyModifier(node) {\n return hasEffectiveModifier(node, 64 /* Readonly */);\n }\n ts.hasEffectiveReadonlyModifier = hasEffectiveReadonlyModifier;\n function getSelectedEffectiveModifierFlags(node, flags) {\n return getEffectiveModifierFlags(node) & flags;\n }\n ts.getSelectedEffectiveModifierFlags = getSelectedEffectiveModifierFlags;\n function getSelectedSyntacticModifierFlags(node, flags) {\n return getSyntacticModifierFlags(node) & flags;\n }\n ts.getSelectedSyntacticModifierFlags = getSelectedSyntacticModifierFlags;\n function getModifierFlagsWorker(node, includeJSDoc, alwaysIncludeJSDoc) {\n if (node.kind >= 0 /* FirstToken */ && node.kind <= 158 /* LastToken */) {\n return 0 /* None */;\n }\n if (!(node.modifierFlagsCache & 536870912 /* HasComputedFlags */)) {\n node.modifierFlagsCache = getSyntacticModifierFlagsNoCache(node) | 536870912 /* HasComputedFlags */;\n }\n if (includeJSDoc && !(node.modifierFlagsCache & 4096 /* HasComputedJSDocModifiers */) && (alwaysIncludeJSDoc || isInJSFile(node)) && node.parent) {\n node.modifierFlagsCache |= getJSDocModifierFlagsNoCache(node) | 4096 /* HasComputedJSDocModifiers */;\n }\n return node.modifierFlagsCache & ~(536870912 /* HasComputedFlags */ | 4096 /* HasComputedJSDocModifiers */);\n }\n /**\n * Gets the effective ModifierFlags for the provided node, including JSDoc modifiers. The modifiers will be cached on the node to improve performance.\n *\n * NOTE: This function may use `parent` pointers.\n */\n function getEffectiveModifierFlags(node) {\n return getModifierFlagsWorker(node, /*includeJSDoc*/ true);\n }\n ts.getEffectiveModifierFlags = getEffectiveModifierFlags;\n function getEffectiveModifierFlagsAlwaysIncludeJSDoc(node) {\n return getModifierFlagsWorker(node, /*includeJSDOc*/ true, /*alwaysIncludeJSDOc*/ true);\n }\n ts.getEffectiveModifierFlagsAlwaysIncludeJSDoc = getEffectiveModifierFlagsAlwaysIncludeJSDoc;\n /**\n * Gets the ModifierFlags for syntactic modifiers on the provided node. The modifiers will be cached on the node to improve performance.\n *\n * NOTE: This function does not use `parent` pointers and will not include modifiers from JSDoc.\n */\n function getSyntacticModifierFlags(node) {\n return getModifierFlagsWorker(node, /*includeJSDoc*/ false);\n }\n ts.getSyntacticModifierFlags = getSyntacticModifierFlags;\n function getJSDocModifierFlagsNoCache(node) {\n var flags = 0 /* None */;\n if (!!node.parent && !ts.isParameter(node)) {\n if (isInJSFile(node)) {\n if (ts.getJSDocPublicTagNoCache(node))\n flags |= 4 /* Public */;\n if (ts.getJSDocPrivateTagNoCache(node))\n flags |= 8 /* Private */;\n if (ts.getJSDocProtectedTagNoCache(node))\n flags |= 16 /* Protected */;\n if (ts.getJSDocReadonlyTagNoCache(node))\n flags |= 64 /* Readonly */;\n if (ts.getJSDocOverrideTagNoCache(node))\n flags |= 16384 /* Override */;\n }\n if (ts.getJSDocDeprecatedTagNoCache(node))\n flags |= 8192 /* Deprecated */;\n }\n return flags;\n }\n /**\n * Gets the effective ModifierFlags for the provided node, including JSDoc modifiers. The modifier flags cache on the node is ignored.\n *\n * NOTE: This function may use `parent` pointers.\n */\n function getEffectiveModifierFlagsNoCache(node) {\n return getSyntacticModifierFlagsNoCache(node) | getJSDocModifierFlagsNoCache(node);\n }\n ts.getEffectiveModifierFlagsNoCache = getEffectiveModifierFlagsNoCache;\n /**\n * Gets the ModifierFlags for syntactic modifiers on the provided node. The modifier flags cache on the node is ignored.\n *\n * NOTE: This function does not use `parent` pointers and will not include modifiers from JSDoc.\n */\n function getSyntacticModifierFlagsNoCache(node) {\n var flags = modifiersToFlags(node.modifiers);\n if (node.flags & 4 /* NestedNamespace */ || (node.kind === 79 /* Identifier */ && node.isInJSDocNamespace)) {\n flags |= 1 /* Export */;\n }\n return flags;\n }\n ts.getSyntacticModifierFlagsNoCache = getSyntacticModifierFlagsNoCache;\n function modifiersToFlags(modifiers) {\n var flags = 0 /* None */;\n if (modifiers) {\n for (var _i = 0, modifiers_1 = modifiers; _i < modifiers_1.length; _i++) {\n var modifier = modifiers_1[_i];\n flags |= modifierToFlag(modifier.kind);\n }\n }\n return flags;\n }\n ts.modifiersToFlags = modifiersToFlags;\n function modifierToFlag(token) {\n switch (token) {\n case 124 /* StaticKeyword */: return 32 /* Static */;\n case 123 /* PublicKeyword */: return 4 /* Public */;\n case 122 /* ProtectedKeyword */: return 16 /* Protected */;\n case 121 /* PrivateKeyword */: return 8 /* Private */;\n case 126 /* AbstractKeyword */: return 128 /* Abstract */;\n case 93 /* ExportKeyword */: return 1 /* Export */;\n case 134 /* DeclareKeyword */: return 2 /* Ambient */;\n case 85 /* ConstKeyword */: return 2048 /* Const */;\n case 88 /* DefaultKeyword */: return 512 /* Default */;\n case 130 /* AsyncKeyword */: return 256 /* Async */;\n case 143 /* ReadonlyKeyword */: return 64 /* Readonly */;\n case 157 /* OverrideKeyword */: return 16384 /* Override */;\n }\n return 0 /* None */;\n }\n ts.modifierToFlag = modifierToFlag;\n function createModifiers(modifierFlags) {\n return modifierFlags ? ts.factory.createNodeArray(ts.factory.createModifiersFromModifierFlags(modifierFlags)) : undefined;\n }\n ts.createModifiers = createModifiers;\n function isLogicalOperator(token) {\n return token === 56 /* BarBarToken */\n || token === 55 /* AmpersandAmpersandToken */\n || token === 53 /* ExclamationToken */;\n }\n ts.isLogicalOperator = isLogicalOperator;\n function isLogicalOrCoalescingAssignmentOperator(token) {\n return token === 75 /* BarBarEqualsToken */\n || token === 76 /* AmpersandAmpersandEqualsToken */\n || token === 77 /* QuestionQuestionEqualsToken */;\n }\n ts.isLogicalOrCoalescingAssignmentOperator = isLogicalOrCoalescingAssignmentOperator;\n function isLogicalOrCoalescingAssignmentExpression(expr) {\n return isLogicalOrCoalescingAssignmentOperator(expr.operatorToken.kind);\n }\n ts.isLogicalOrCoalescingAssignmentExpression = isLogicalOrCoalescingAssignmentExpression;\n function isAssignmentOperator(token) {\n return token >= 63 /* FirstAssignment */ && token <= 78 /* LastAssignment */;\n }\n ts.isAssignmentOperator = isAssignmentOperator;\n /** Get `C` given `N` if `N` is in the position `class C extends N` where `N` is an ExpressionWithTypeArguments. */\n function tryGetClassExtendingExpressionWithTypeArguments(node) {\n var cls = tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);\n return cls && !cls.isImplements ? cls.class : undefined;\n }\n ts.tryGetClassExtendingExpressionWithTypeArguments = tryGetClassExtendingExpressionWithTypeArguments;\n function tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node) {\n return ts.isExpressionWithTypeArguments(node)\n && ts.isHeritageClause(node.parent)\n && ts.isClassLike(node.parent.parent)\n ? { class: node.parent.parent, isImplements: node.parent.token === 117 /* ImplementsKeyword */ }\n : undefined;\n }\n ts.tryGetClassImplementingOrExtendingExpressionWithTypeArguments = tryGetClassImplementingOrExtendingExpressionWithTypeArguments;\n function isAssignmentExpression(node, excludeCompoundAssignment) {\n return ts.isBinaryExpression(node)\n && (excludeCompoundAssignment\n ? node.operatorToken.kind === 63 /* EqualsToken */\n : isAssignmentOperator(node.operatorToken.kind))\n && ts.isLeftHandSideExpression(node.left);\n }\n ts.isAssignmentExpression = isAssignmentExpression;\n function isLeftHandSideOfAssignment(node) {\n return isAssignmentExpression(node.parent) && node.parent.left === node;\n }\n ts.isLeftHandSideOfAssignment = isLeftHandSideOfAssignment;\n function isDestructuringAssignment(node) {\n if (isAssignmentExpression(node, /*excludeCompoundAssignment*/ true)) {\n var kind = node.left.kind;\n return kind === 203 /* ObjectLiteralExpression */\n || kind === 202 /* ArrayLiteralExpression */;\n }\n return false;\n }\n ts.isDestructuringAssignment = isDestructuringAssignment;\n function isExpressionWithTypeArgumentsInClassExtendsClause(node) {\n return tryGetClassExtendingExpressionWithTypeArguments(node) !== undefined;\n }\n ts.isExpressionWithTypeArgumentsInClassExtendsClause = isExpressionWithTypeArgumentsInClassExtendsClause;\n function isEntityNameExpression(node) {\n return node.kind === 79 /* Identifier */ || isPropertyAccessEntityNameExpression(node);\n }\n ts.isEntityNameExpression = isEntityNameExpression;\n function getFirstIdentifier(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return node;\n case 159 /* QualifiedName */:\n do {\n node = node.left;\n } while (node.kind !== 79 /* Identifier */);\n return node;\n case 204 /* PropertyAccessExpression */:\n do {\n node = node.expression;\n } while (node.kind !== 79 /* Identifier */);\n return node;\n }\n }\n ts.getFirstIdentifier = getFirstIdentifier;\n function isDottedName(node) {\n return node.kind === 79 /* Identifier */\n || node.kind === 108 /* ThisKeyword */\n || node.kind === 106 /* SuperKeyword */\n || node.kind === 229 /* MetaProperty */\n || node.kind === 204 /* PropertyAccessExpression */ && isDottedName(node.expression)\n || node.kind === 210 /* ParenthesizedExpression */ && isDottedName(node.expression);\n }\n ts.isDottedName = isDottedName;\n function isPropertyAccessEntityNameExpression(node) {\n return ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && isEntityNameExpression(node.expression);\n }\n ts.isPropertyAccessEntityNameExpression = isPropertyAccessEntityNameExpression;\n function tryGetPropertyAccessOrIdentifierToString(expr) {\n if (ts.isPropertyAccessExpression(expr)) {\n var baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression);\n if (baseStr !== undefined) {\n return baseStr + \".\" + entityNameToString(expr.name);\n }\n }\n else if (ts.isElementAccessExpression(expr)) {\n var baseStr = tryGetPropertyAccessOrIdentifierToString(expr.expression);\n if (baseStr !== undefined && ts.isPropertyName(expr.argumentExpression)) {\n return baseStr + \".\" + getPropertyNameForPropertyNameNode(expr.argumentExpression);\n }\n }\n else if (ts.isIdentifier(expr)) {\n return ts.unescapeLeadingUnderscores(expr.escapedText);\n }\n return undefined;\n }\n ts.tryGetPropertyAccessOrIdentifierToString = tryGetPropertyAccessOrIdentifierToString;\n function isPrototypeAccess(node) {\n return isBindableStaticAccessExpression(node) && getElementOrPropertyAccessName(node) === \"prototype\";\n }\n ts.isPrototypeAccess = isPrototypeAccess;\n function isRightSideOfQualifiedNameOrPropertyAccess(node) {\n return (node.parent.kind === 159 /* QualifiedName */ && node.parent.right === node) ||\n (node.parent.kind === 204 /* PropertyAccessExpression */ && node.parent.name === node);\n }\n ts.isRightSideOfQualifiedNameOrPropertyAccess = isRightSideOfQualifiedNameOrPropertyAccess;\n function isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(node) {\n return ts.isQualifiedName(node.parent) && node.parent.right === node\n || ts.isPropertyAccessExpression(node.parent) && node.parent.name === node\n || ts.isJSDocMemberName(node.parent) && node.parent.right === node;\n }\n ts.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName = isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName;\n function isEmptyObjectLiteral(expression) {\n return expression.kind === 203 /* ObjectLiteralExpression */ &&\n expression.properties.length === 0;\n }\n ts.isEmptyObjectLiteral = isEmptyObjectLiteral;\n function isEmptyArrayLiteral(expression) {\n return expression.kind === 202 /* ArrayLiteralExpression */ &&\n expression.elements.length === 0;\n }\n ts.isEmptyArrayLiteral = isEmptyArrayLiteral;\n function getLocalSymbolForExportDefault(symbol) {\n if (!isExportDefaultSymbol(symbol) || !symbol.declarations)\n return undefined;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (decl.localSymbol)\n return decl.localSymbol;\n }\n return undefined;\n }\n ts.getLocalSymbolForExportDefault = getLocalSymbolForExportDefault;\n function isExportDefaultSymbol(symbol) {\n return symbol && ts.length(symbol.declarations) > 0 && hasSyntacticModifier(symbol.declarations[0], 512 /* Default */);\n }\n /** Return \".ts\", \".d.ts\", or \".tsx\", if that is the extension. */\n function tryExtractTSExtension(fileName) {\n return ts.find(ts.supportedTSExtensionsForExtractExtension, function (extension) { return ts.fileExtensionIs(fileName, extension); });\n }\n ts.tryExtractTSExtension = tryExtractTSExtension;\n /**\n * Replace each instance of non-ascii characters by one, two, three, or four escape sequences\n * representing the UTF-8 encoding of the character, and return the expanded char code list.\n */\n function getExpandedCharCodes(input) {\n var output = [];\n var length = input.length;\n for (var i = 0; i < length; i++) {\n var charCode = input.charCodeAt(i);\n // handle utf8\n if (charCode < 0x80) {\n output.push(charCode);\n }\n else if (charCode < 0x800) {\n output.push((charCode >> 6) | 192);\n output.push((charCode & 63) | 128);\n }\n else if (charCode < 0x10000) {\n output.push((charCode >> 12) | 224);\n output.push(((charCode >> 6) & 63) | 128);\n output.push((charCode & 63) | 128);\n }\n else if (charCode < 0x20000) {\n output.push((charCode >> 18) | 240);\n output.push(((charCode >> 12) & 63) | 128);\n output.push(((charCode >> 6) & 63) | 128);\n output.push((charCode & 63) | 128);\n }\n else {\n ts.Debug.assert(false, \"Unexpected code point\");\n }\n }\n return output;\n }\n var base64Digits = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n /**\n * Converts a string to a base-64 encoded ASCII string.\n */\n function convertToBase64(input) {\n var result = \"\";\n var charCodes = getExpandedCharCodes(input);\n var i = 0;\n var length = charCodes.length;\n var byte1, byte2, byte3, byte4;\n while (i < length) {\n // Convert every 6-bits in the input 3 character points\n // into a base64 digit\n byte1 = charCodes[i] >> 2;\n byte2 = (charCodes[i] & 3) << 4 | charCodes[i + 1] >> 4;\n byte3 = (charCodes[i + 1] & 15) << 2 | charCodes[i + 2] >> 6;\n byte4 = charCodes[i + 2] & 63;\n // We are out of characters in the input, set the extra\n // digits to 64 (padding character).\n if (i + 1 >= length) {\n byte3 = byte4 = 64;\n }\n else if (i + 2 >= length) {\n byte4 = 64;\n }\n // Write to the output\n result += base64Digits.charAt(byte1) + base64Digits.charAt(byte2) + base64Digits.charAt(byte3) + base64Digits.charAt(byte4);\n i += 3;\n }\n return result;\n }\n ts.convertToBase64 = convertToBase64;\n function getStringFromExpandedCharCodes(codes) {\n var output = \"\";\n var i = 0;\n var length = codes.length;\n while (i < length) {\n var charCode = codes[i];\n if (charCode < 0x80) {\n output += String.fromCharCode(charCode);\n i++;\n }\n else if ((charCode & 192) === 192) {\n var value = charCode & 63;\n i++;\n var nextCode = codes[i];\n while ((nextCode & 192) === 128) {\n value = (value << 6) | (nextCode & 63);\n i++;\n nextCode = codes[i];\n }\n // `value` may be greater than 10FFFF (the maximum unicode codepoint) - JS will just make this into an invalid character for us\n output += String.fromCharCode(value);\n }\n else {\n // We don't want to kill the process when decoding fails (due to a following char byte not\n // following a leading char), so we just print the (bad) value\n output += String.fromCharCode(charCode);\n i++;\n }\n }\n return output;\n }\n function base64encode(host, input) {\n if (host && host.base64encode) {\n return host.base64encode(input);\n }\n return convertToBase64(input);\n }\n ts.base64encode = base64encode;\n function base64decode(host, input) {\n if (host && host.base64decode) {\n return host.base64decode(input);\n }\n var length = input.length;\n var expandedCharCodes = [];\n var i = 0;\n while (i < length) {\n // Stop decoding once padding characters are present\n if (input.charCodeAt(i) === base64Digits.charCodeAt(64)) {\n break;\n }\n // convert 4 input digits into three characters, ignoring padding characters at the end\n var ch1 = base64Digits.indexOf(input[i]);\n var ch2 = base64Digits.indexOf(input[i + 1]);\n var ch3 = base64Digits.indexOf(input[i + 2]);\n var ch4 = base64Digits.indexOf(input[i + 3]);\n var code1 = ((ch1 & 63) << 2) | ((ch2 >> 4) & 3);\n var code2 = ((ch2 & 15) << 4) | ((ch3 >> 2) & 15);\n var code3 = ((ch3 & 3) << 6) | (ch4 & 63);\n if (code2 === 0 && ch3 !== 0) { // code2 decoded to zero, but ch3 was padding - elide code2 and code3\n expandedCharCodes.push(code1);\n }\n else if (code3 === 0 && ch4 !== 0) { // code3 decoded to zero, but ch4 was padding, elide code3\n expandedCharCodes.push(code1, code2);\n }\n else {\n expandedCharCodes.push(code1, code2, code3);\n }\n i += 4;\n }\n return getStringFromExpandedCharCodes(expandedCharCodes);\n }\n ts.base64decode = base64decode;\n function readJson(path, host) {\n try {\n var jsonText = host.readFile(path);\n if (!jsonText)\n return {};\n var result = ts.parseConfigFileTextToJson(path, jsonText);\n if (result.error) {\n return {};\n }\n return result.config;\n }\n catch (e) {\n // gracefully handle if readFile fails or returns not JSON\n return {};\n }\n }\n ts.readJson = readJson;\n function directoryProbablyExists(directoryName, host) {\n // if host does not support 'directoryExists' assume that directory will exist\n return !host.directoryExists || host.directoryExists(directoryName);\n }\n ts.directoryProbablyExists = directoryProbablyExists;\n var carriageReturnLineFeed = \"\\r\\n\";\n var lineFeed = \"\\n\";\n function getNewLineCharacter(options, getNewLine) {\n switch (options.newLine) {\n case 0 /* CarriageReturnLineFeed */:\n return carriageReturnLineFeed;\n case 1 /* LineFeed */:\n return lineFeed;\n }\n return getNewLine ? getNewLine() : ts.sys ? ts.sys.newLine : carriageReturnLineFeed;\n }\n ts.getNewLineCharacter = getNewLineCharacter;\n /**\n * Creates a new TextRange from the provided pos and end.\n *\n * @param pos The start position.\n * @param end The end position.\n */\n function createRange(pos, end) {\n if (end === void 0) { end = pos; }\n ts.Debug.assert(end >= pos || end === -1);\n return { pos: pos, end: end };\n }\n ts.createRange = createRange;\n /**\n * Creates a new TextRange from a provided range with a new end position.\n *\n * @param range A TextRange.\n * @param end The new end position.\n */\n function moveRangeEnd(range, end) {\n return createRange(range.pos, end);\n }\n ts.moveRangeEnd = moveRangeEnd;\n /**\n * Creates a new TextRange from a provided range with a new start position.\n *\n * @param range A TextRange.\n * @param pos The new Start position.\n */\n function moveRangePos(range, pos) {\n return createRange(pos, range.end);\n }\n ts.moveRangePos = moveRangePos;\n /**\n * Moves the start position of a range past any decorators.\n */\n function moveRangePastDecorators(node) {\n return node.decorators && node.decorators.length > 0\n ? moveRangePos(node, node.decorators.end)\n : node;\n }\n ts.moveRangePastDecorators = moveRangePastDecorators;\n /**\n * Moves the start position of a range past any decorators or modifiers.\n */\n function moveRangePastModifiers(node) {\n return node.modifiers && node.modifiers.length > 0\n ? moveRangePos(node, node.modifiers.end)\n : moveRangePastDecorators(node);\n }\n ts.moveRangePastModifiers = moveRangePastModifiers;\n /**\n * Determines whether a TextRange has the same start and end positions.\n *\n * @param range A TextRange.\n */\n function isCollapsedRange(range) {\n return range.pos === range.end;\n }\n ts.isCollapsedRange = isCollapsedRange;\n /**\n * Creates a new TextRange for a token at the provides start position.\n *\n * @param pos The start position.\n * @param token The token.\n */\n function createTokenRange(pos, token) {\n return createRange(pos, pos + ts.tokenToString(token).length);\n }\n ts.createTokenRange = createTokenRange;\n function rangeIsOnSingleLine(range, sourceFile) {\n return rangeStartIsOnSameLineAsRangeEnd(range, range, sourceFile);\n }\n ts.rangeIsOnSingleLine = rangeIsOnSingleLine;\n function rangeStartPositionsAreOnSameLine(range1, range2, sourceFile) {\n return positionsAreOnSameLine(getStartPositionOfRange(range1, sourceFile, /*includeComments*/ false), getStartPositionOfRange(range2, sourceFile, /*includeComments*/ false), sourceFile);\n }\n ts.rangeStartPositionsAreOnSameLine = rangeStartPositionsAreOnSameLine;\n function rangeEndPositionsAreOnSameLine(range1, range2, sourceFile) {\n return positionsAreOnSameLine(range1.end, range2.end, sourceFile);\n }\n ts.rangeEndPositionsAreOnSameLine = rangeEndPositionsAreOnSameLine;\n function rangeStartIsOnSameLineAsRangeEnd(range1, range2, sourceFile) {\n return positionsAreOnSameLine(getStartPositionOfRange(range1, sourceFile, /*includeComments*/ false), range2.end, sourceFile);\n }\n ts.rangeStartIsOnSameLineAsRangeEnd = rangeStartIsOnSameLineAsRangeEnd;\n function rangeEndIsOnSameLineAsRangeStart(range1, range2, sourceFile) {\n return positionsAreOnSameLine(range1.end, getStartPositionOfRange(range2, sourceFile, /*includeComments*/ false), sourceFile);\n }\n ts.rangeEndIsOnSameLineAsRangeStart = rangeEndIsOnSameLineAsRangeStart;\n function getLinesBetweenRangeEndAndRangeStart(range1, range2, sourceFile, includeSecondRangeComments) {\n var range2Start = getStartPositionOfRange(range2, sourceFile, includeSecondRangeComments);\n return ts.getLinesBetweenPositions(sourceFile, range1.end, range2Start);\n }\n ts.getLinesBetweenRangeEndAndRangeStart = getLinesBetweenRangeEndAndRangeStart;\n function getLinesBetweenRangeEndPositions(range1, range2, sourceFile) {\n return ts.getLinesBetweenPositions(sourceFile, range1.end, range2.end);\n }\n ts.getLinesBetweenRangeEndPositions = getLinesBetweenRangeEndPositions;\n function isNodeArrayMultiLine(list, sourceFile) {\n return !positionsAreOnSameLine(list.pos, list.end, sourceFile);\n }\n ts.isNodeArrayMultiLine = isNodeArrayMultiLine;\n function positionsAreOnSameLine(pos1, pos2, sourceFile) {\n return ts.getLinesBetweenPositions(sourceFile, pos1, pos2) === 0;\n }\n ts.positionsAreOnSameLine = positionsAreOnSameLine;\n function getStartPositionOfRange(range, sourceFile, includeComments) {\n return positionIsSynthesized(range.pos) ? -1 : ts.skipTrivia(sourceFile.text, range.pos, /*stopAfterLineBreak*/ false, includeComments);\n }\n ts.getStartPositionOfRange = getStartPositionOfRange;\n function getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) {\n var startPos = ts.skipTrivia(sourceFile.text, pos, /*stopAfterLineBreak*/ false, includeComments);\n var prevPos = getPreviousNonWhitespacePosition(startPos, stopPos, sourceFile);\n return ts.getLinesBetweenPositions(sourceFile, prevPos !== null && prevPos !== void 0 ? prevPos : stopPos, startPos);\n }\n ts.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter = getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter;\n function getLinesBetweenPositionAndNextNonWhitespaceCharacter(pos, stopPos, sourceFile, includeComments) {\n var nextPos = ts.skipTrivia(sourceFile.text, pos, /*stopAfterLineBreak*/ false, includeComments);\n return ts.getLinesBetweenPositions(sourceFile, pos, Math.min(stopPos, nextPos));\n }\n ts.getLinesBetweenPositionAndNextNonWhitespaceCharacter = getLinesBetweenPositionAndNextNonWhitespaceCharacter;\n function getPreviousNonWhitespacePosition(pos, stopPos, sourceFile) {\n if (stopPos === void 0) { stopPos = 0; }\n while (pos-- > stopPos) {\n if (!ts.isWhiteSpaceLike(sourceFile.text.charCodeAt(pos))) {\n return pos;\n }\n }\n }\n /**\n * Determines whether a name was originally the declaration name of an enum or namespace\n * declaration.\n */\n function isDeclarationNameOfEnumOrNamespace(node) {\n var parseNode = ts.getParseTreeNode(node);\n if (parseNode) {\n switch (parseNode.parent.kind) {\n case 258 /* EnumDeclaration */:\n case 259 /* ModuleDeclaration */:\n return parseNode === parseNode.parent.name;\n }\n }\n return false;\n }\n ts.isDeclarationNameOfEnumOrNamespace = isDeclarationNameOfEnumOrNamespace;\n function getInitializedVariables(node) {\n return ts.filter(node.declarations, isInitializedVariable);\n }\n ts.getInitializedVariables = getInitializedVariables;\n function isInitializedVariable(node) {\n return node.initializer !== undefined;\n }\n function isWatchSet(options) {\n // Firefox has Object.prototype.watch\n return options.watch && options.hasOwnProperty(\"watch\");\n }\n ts.isWatchSet = isWatchSet;\n function closeFileWatcher(watcher) {\n watcher.close();\n }\n ts.closeFileWatcher = closeFileWatcher;\n function getCheckFlags(symbol) {\n return symbol.flags & 33554432 /* Transient */ ? symbol.checkFlags : 0;\n }\n ts.getCheckFlags = getCheckFlags;\n function getDeclarationModifierFlagsFromSymbol(s, isWrite) {\n if (isWrite === void 0) { isWrite = false; }\n if (s.valueDeclaration) {\n var declaration = (isWrite && s.declarations && ts.find(s.declarations, function (d) { return d.kind === 171 /* SetAccessor */; })) || s.valueDeclaration;\n var flags = ts.getCombinedModifierFlags(declaration);\n return s.parent && s.parent.flags & 32 /* Class */ ? flags : flags & ~28 /* AccessibilityModifier */;\n }\n if (getCheckFlags(s) & 6 /* Synthetic */) {\n var checkFlags = s.checkFlags;\n var accessModifier = checkFlags & 1024 /* ContainsPrivate */ ? 8 /* Private */ :\n checkFlags & 256 /* ContainsPublic */ ? 4 /* Public */ :\n 16 /* Protected */;\n var staticModifier = checkFlags & 2048 /* ContainsStatic */ ? 32 /* Static */ : 0;\n return accessModifier | staticModifier;\n }\n if (s.flags & 4194304 /* Prototype */) {\n return 4 /* Public */ | 32 /* Static */;\n }\n return 0;\n }\n ts.getDeclarationModifierFlagsFromSymbol = getDeclarationModifierFlagsFromSymbol;\n function skipAlias(symbol, checker) {\n return symbol.flags & 2097152 /* Alias */ ? checker.getAliasedSymbol(symbol) : symbol;\n }\n ts.skipAlias = skipAlias;\n /** See comment on `declareModuleMember` in `binder.ts`. */\n function getCombinedLocalAndExportSymbolFlags(symbol) {\n return symbol.exportSymbol ? symbol.exportSymbol.flags | symbol.flags : symbol.flags;\n }\n ts.getCombinedLocalAndExportSymbolFlags = getCombinedLocalAndExportSymbolFlags;\n function isWriteOnlyAccess(node) {\n return accessKind(node) === 1 /* Write */;\n }\n ts.isWriteOnlyAccess = isWriteOnlyAccess;\n function isWriteAccess(node) {\n return accessKind(node) !== 0 /* Read */;\n }\n ts.isWriteAccess = isWriteAccess;\n var AccessKind;\n (function (AccessKind) {\n /** Only reads from a variable. */\n AccessKind[AccessKind[\"Read\"] = 0] = \"Read\";\n /** Only writes to a variable without using the result. E.g.: `x++;`. */\n AccessKind[AccessKind[\"Write\"] = 1] = \"Write\";\n /** Writes to a variable and uses the result as an expression. E.g.: `f(x++);`. */\n AccessKind[AccessKind[\"ReadWrite\"] = 2] = \"ReadWrite\";\n })(AccessKind || (AccessKind = {}));\n function accessKind(node) {\n var parent = node.parent;\n if (!parent)\n return 0 /* Read */;\n switch (parent.kind) {\n case 210 /* ParenthesizedExpression */:\n return accessKind(parent);\n case 218 /* PostfixUnaryExpression */:\n case 217 /* PrefixUnaryExpression */:\n var operator = parent.operator;\n return operator === 45 /* PlusPlusToken */ || operator === 46 /* MinusMinusToken */ ? writeOrReadWrite() : 0 /* Read */;\n case 219 /* BinaryExpression */:\n var _a = parent, left = _a.left, operatorToken = _a.operatorToken;\n return left === node && isAssignmentOperator(operatorToken.kind) ?\n operatorToken.kind === 63 /* EqualsToken */ ? 1 /* Write */ : writeOrReadWrite()\n : 0 /* Read */;\n case 204 /* PropertyAccessExpression */:\n return parent.name !== node ? 0 /* Read */ : accessKind(parent);\n case 291 /* PropertyAssignment */: {\n var parentAccess = accessKind(parent.parent);\n // In `({ x: varname }) = { x: 1 }`, the left `x` is a read, the right `x` is a write.\n return node === parent.name ? reverseAccessKind(parentAccess) : parentAccess;\n }\n case 292 /* ShorthandPropertyAssignment */:\n // Assume it's the local variable being accessed, since we don't check public properties for --noUnusedLocals.\n return node === parent.objectAssignmentInitializer ? 0 /* Read */ : accessKind(parent.parent);\n case 202 /* ArrayLiteralExpression */:\n return accessKind(parent);\n default:\n return 0 /* Read */;\n }\n function writeOrReadWrite() {\n // If grandparent is not an ExpressionStatement, this is used as an expression in addition to having a side effect.\n return parent.parent && walkUpParenthesizedExpressions(parent.parent).kind === 236 /* ExpressionStatement */ ? 1 /* Write */ : 2 /* ReadWrite */;\n }\n }\n function reverseAccessKind(a) {\n switch (a) {\n case 0 /* Read */:\n return 1 /* Write */;\n case 1 /* Write */:\n return 0 /* Read */;\n case 2 /* ReadWrite */:\n return 2 /* ReadWrite */;\n default:\n return ts.Debug.assertNever(a);\n }\n }\n function compareDataObjects(dst, src) {\n if (!dst || !src || Object.keys(dst).length !== Object.keys(src).length) {\n return false;\n }\n for (var e in dst) {\n if (typeof dst[e] === \"object\") {\n if (!compareDataObjects(dst[e], src[e])) {\n return false;\n }\n }\n else if (typeof dst[e] !== \"function\") {\n if (dst[e] !== src[e]) {\n return false;\n }\n }\n }\n return true;\n }\n ts.compareDataObjects = compareDataObjects;\n /**\n * clears already present map by calling onDeleteExistingValue callback before deleting that key/value\n */\n function clearMap(map, onDeleteValue) {\n // Remove all\n map.forEach(onDeleteValue);\n map.clear();\n }\n ts.clearMap = clearMap;\n /**\n * Mutates the map with newMap such that keys in map will be same as newMap.\n */\n function mutateMapSkippingNewValues(map, newMap, options) {\n var onDeleteValue = options.onDeleteValue, onExistingValue = options.onExistingValue;\n // Needs update\n map.forEach(function (existingValue, key) {\n var valueInNewMap = newMap.get(key);\n // Not present any more in new map, remove it\n if (valueInNewMap === undefined) {\n map.delete(key);\n onDeleteValue(existingValue, key);\n }\n // If present notify about existing values\n else if (onExistingValue) {\n onExistingValue(existingValue, valueInNewMap, key);\n }\n });\n }\n ts.mutateMapSkippingNewValues = mutateMapSkippingNewValues;\n /**\n * Mutates the map with newMap such that keys in map will be same as newMap.\n */\n function mutateMap(map, newMap, options) {\n // Needs update\n mutateMapSkippingNewValues(map, newMap, options);\n var createNewValue = options.createNewValue;\n // Add new values that are not already present\n newMap.forEach(function (valueInNewMap, key) {\n if (!map.has(key)) {\n // New values\n map.set(key, createNewValue(key, valueInNewMap));\n }\n });\n }\n ts.mutateMap = mutateMap;\n function isAbstractConstructorSymbol(symbol) {\n if (symbol.flags & 32 /* Class */) {\n var declaration = getClassLikeDeclarationOfSymbol(symbol);\n return !!declaration && hasSyntacticModifier(declaration, 128 /* Abstract */);\n }\n return false;\n }\n ts.isAbstractConstructorSymbol = isAbstractConstructorSymbol;\n function getClassLikeDeclarationOfSymbol(symbol) {\n var _a;\n return (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isClassLike);\n }\n ts.getClassLikeDeclarationOfSymbol = getClassLikeDeclarationOfSymbol;\n function getObjectFlags(type) {\n return type.flags & 3899393 /* ObjectFlagsType */ ? type.objectFlags : 0;\n }\n ts.getObjectFlags = getObjectFlags;\n function typeHasCallOrConstructSignatures(type, checker) {\n return checker.getSignaturesOfType(type, 0 /* Call */).length !== 0 || checker.getSignaturesOfType(type, 1 /* Construct */).length !== 0;\n }\n ts.typeHasCallOrConstructSignatures = typeHasCallOrConstructSignatures;\n function forSomeAncestorDirectory(directory, callback) {\n return !!ts.forEachAncestorDirectory(directory, function (d) { return callback(d) ? true : undefined; });\n }\n ts.forSomeAncestorDirectory = forSomeAncestorDirectory;\n function isUMDExportSymbol(symbol) {\n return !!symbol && !!symbol.declarations && !!symbol.declarations[0] && ts.isNamespaceExportDeclaration(symbol.declarations[0]);\n }\n ts.isUMDExportSymbol = isUMDExportSymbol;\n function showModuleSpecifier(_a) {\n var moduleSpecifier = _a.moduleSpecifier;\n return ts.isStringLiteral(moduleSpecifier) ? moduleSpecifier.text : getTextOfNode(moduleSpecifier);\n }\n ts.showModuleSpecifier = showModuleSpecifier;\n function getLastChild(node) {\n var lastChild;\n ts.forEachChild(node, function (child) {\n if (nodeIsPresent(child))\n lastChild = child;\n }, function (children) {\n // As an optimization, jump straight to the end of the list.\n for (var i = children.length - 1; i >= 0; i--) {\n if (nodeIsPresent(children[i])) {\n lastChild = children[i];\n break;\n }\n }\n });\n return lastChild;\n }\n ts.getLastChild = getLastChild;\n function addToSeen(seen, key, value) {\n if (value === void 0) { value = true; }\n if (seen.has(key)) {\n return false;\n }\n seen.set(key, value);\n return true;\n }\n ts.addToSeen = addToSeen;\n function isObjectTypeDeclaration(node) {\n return ts.isClassLike(node) || ts.isInterfaceDeclaration(node) || ts.isTypeLiteralNode(node);\n }\n ts.isObjectTypeDeclaration = isObjectTypeDeclaration;\n function isTypeNodeKind(kind) {\n return (kind >= 175 /* FirstTypeNode */ && kind <= 198 /* LastTypeNode */)\n || kind === 129 /* AnyKeyword */\n || kind === 153 /* UnknownKeyword */\n || kind === 145 /* NumberKeyword */\n || kind === 156 /* BigIntKeyword */\n || kind === 146 /* ObjectKeyword */\n || kind === 132 /* BooleanKeyword */\n || kind === 148 /* StringKeyword */\n || kind === 149 /* SymbolKeyword */\n || kind === 114 /* VoidKeyword */\n || kind === 151 /* UndefinedKeyword */\n || kind === 142 /* NeverKeyword */\n || kind === 226 /* ExpressionWithTypeArguments */\n || kind === 307 /* JSDocAllType */\n || kind === 308 /* JSDocUnknownType */\n || kind === 309 /* JSDocNullableType */\n || kind === 310 /* JSDocNonNullableType */\n || kind === 311 /* JSDocOptionalType */\n || kind === 312 /* JSDocFunctionType */\n || kind === 313 /* JSDocVariadicType */;\n }\n ts.isTypeNodeKind = isTypeNodeKind;\n function isAccessExpression(node) {\n return node.kind === 204 /* PropertyAccessExpression */ || node.kind === 205 /* ElementAccessExpression */;\n }\n ts.isAccessExpression = isAccessExpression;\n function getNameOfAccessExpression(node) {\n if (node.kind === 204 /* PropertyAccessExpression */) {\n return node.name;\n }\n ts.Debug.assert(node.kind === 205 /* ElementAccessExpression */);\n return node.argumentExpression;\n }\n ts.getNameOfAccessExpression = getNameOfAccessExpression;\n function isBundleFileTextLike(section) {\n switch (section.kind) {\n case \"text\" /* Text */:\n case \"internal\" /* Internal */:\n return true;\n default:\n return false;\n }\n }\n ts.isBundleFileTextLike = isBundleFileTextLike;\n function isNamedImportsOrExports(node) {\n return node.kind === 267 /* NamedImports */ || node.kind === 271 /* NamedExports */;\n }\n ts.isNamedImportsOrExports = isNamedImportsOrExports;\n function getLeftmostAccessExpression(expr) {\n while (isAccessExpression(expr)) {\n expr = expr.expression;\n }\n return expr;\n }\n ts.getLeftmostAccessExpression = getLeftmostAccessExpression;\n function getLeftmostExpression(node, stopAtCallExpressions) {\n while (true) {\n switch (node.kind) {\n case 218 /* PostfixUnaryExpression */:\n node = node.operand;\n continue;\n case 219 /* BinaryExpression */:\n node = node.left;\n continue;\n case 220 /* ConditionalExpression */:\n node = node.condition;\n continue;\n case 208 /* TaggedTemplateExpression */:\n node = node.tag;\n continue;\n case 206 /* CallExpression */:\n if (stopAtCallExpressions) {\n return node;\n }\n // falls through\n case 227 /* AsExpression */:\n case 205 /* ElementAccessExpression */:\n case 204 /* PropertyAccessExpression */:\n case 228 /* NonNullExpression */:\n case 345 /* PartiallyEmittedExpression */:\n node = node.expression;\n continue;\n }\n return node;\n }\n }\n ts.getLeftmostExpression = getLeftmostExpression;\n function Symbol(flags, name) {\n this.flags = flags;\n this.escapedName = name;\n this.declarations = undefined;\n this.valueDeclaration = undefined;\n this.id = undefined;\n this.mergeId = undefined;\n this.parent = undefined;\n }\n function Type(checker, flags) {\n this.flags = flags;\n if (ts.Debug.isDebugging || ts.tracing) {\n this.checker = checker;\n }\n }\n function Signature(checker, flags) {\n this.flags = flags;\n if (ts.Debug.isDebugging) {\n this.checker = checker;\n }\n }\n function Node(kind, pos, end) {\n this.pos = pos;\n this.end = end;\n this.kind = kind;\n this.id = 0;\n this.flags = 0 /* None */;\n this.modifierFlagsCache = 0 /* None */;\n this.transformFlags = 0 /* None */;\n this.parent = undefined;\n this.original = undefined;\n }\n function Token(kind, pos, end) {\n this.pos = pos;\n this.end = end;\n this.kind = kind;\n this.id = 0;\n this.flags = 0 /* None */;\n this.transformFlags = 0 /* None */;\n this.parent = undefined;\n }\n function Identifier(kind, pos, end) {\n this.pos = pos;\n this.end = end;\n this.kind = kind;\n this.id = 0;\n this.flags = 0 /* None */;\n this.transformFlags = 0 /* None */;\n this.parent = undefined;\n this.original = undefined;\n this.flowNode = undefined;\n }\n function SourceMapSource(fileName, text, skipTrivia) {\n this.fileName = fileName;\n this.text = text;\n this.skipTrivia = skipTrivia || (function (pos) { return pos; });\n }\n // eslint-disable-next-line prefer-const\n ts.objectAllocator = {\n getNodeConstructor: function () { return Node; },\n getTokenConstructor: function () { return Token; },\n getIdentifierConstructor: function () { return Identifier; },\n getPrivateIdentifierConstructor: function () { return Node; },\n getSourceFileConstructor: function () { return Node; },\n getSymbolConstructor: function () { return Symbol; },\n getTypeConstructor: function () { return Type; },\n getSignatureConstructor: function () { return Signature; },\n getSourceMapSourceConstructor: function () { return SourceMapSource; },\n };\n function setObjectAllocator(alloc) {\n ts.objectAllocator = alloc;\n }\n ts.setObjectAllocator = setObjectAllocator;\n function formatStringFromArgs(text, args, baseIndex) {\n if (baseIndex === void 0) { baseIndex = 0; }\n return text.replace(/{(\\d+)}/g, function (_match, index) { return \"\" + ts.Debug.checkDefined(args[+index + baseIndex]); });\n }\n ts.formatStringFromArgs = formatStringFromArgs;\n /* @internal */\n function setLocalizedDiagnosticMessages(messages) {\n ts.localizedDiagnosticMessages = messages;\n }\n ts.setLocalizedDiagnosticMessages = setLocalizedDiagnosticMessages;\n function getLocaleSpecificMessage(message) {\n return ts.localizedDiagnosticMessages && ts.localizedDiagnosticMessages[message.key] || message.message;\n }\n ts.getLocaleSpecificMessage = getLocaleSpecificMessage;\n function createDetachedDiagnostic(fileName, start, length, message) {\n assertDiagnosticLocation(/*file*/ undefined, start, length);\n var text = getLocaleSpecificMessage(message);\n if (arguments.length > 4) {\n text = formatStringFromArgs(text, arguments, 4);\n }\n return {\n file: undefined,\n start: start,\n length: length,\n messageText: text,\n category: message.category,\n code: message.code,\n reportsUnnecessary: message.reportsUnnecessary,\n fileName: fileName,\n };\n }\n ts.createDetachedDiagnostic = createDetachedDiagnostic;\n function isDiagnosticWithDetachedLocation(diagnostic) {\n return diagnostic.file === undefined\n && diagnostic.start !== undefined\n && diagnostic.length !== undefined\n && typeof diagnostic.fileName === \"string\";\n }\n function attachFileToDiagnostic(diagnostic, file) {\n var fileName = file.fileName || \"\";\n var length = file.text.length;\n ts.Debug.assertEqual(diagnostic.fileName, fileName);\n ts.Debug.assertLessThanOrEqual(diagnostic.start, length);\n ts.Debug.assertLessThanOrEqual(diagnostic.start + diagnostic.length, length);\n var diagnosticWithLocation = {\n file: file,\n start: diagnostic.start,\n length: diagnostic.length,\n messageText: diagnostic.messageText,\n category: diagnostic.category,\n code: diagnostic.code,\n reportsUnnecessary: diagnostic.reportsUnnecessary\n };\n if (diagnostic.relatedInformation) {\n diagnosticWithLocation.relatedInformation = [];\n for (var _i = 0, _a = diagnostic.relatedInformation; _i < _a.length; _i++) {\n var related = _a[_i];\n if (isDiagnosticWithDetachedLocation(related) && related.fileName === fileName) {\n ts.Debug.assertLessThanOrEqual(related.start, length);\n ts.Debug.assertLessThanOrEqual(related.start + related.length, length);\n diagnosticWithLocation.relatedInformation.push(attachFileToDiagnostic(related, file));\n }\n else {\n diagnosticWithLocation.relatedInformation.push(related);\n }\n }\n }\n return diagnosticWithLocation;\n }\n function attachFileToDiagnostics(diagnostics, file) {\n var diagnosticsWithLocation = [];\n for (var _i = 0, diagnostics_1 = diagnostics; _i < diagnostics_1.length; _i++) {\n var diagnostic = diagnostics_1[_i];\n diagnosticsWithLocation.push(attachFileToDiagnostic(diagnostic, file));\n }\n return diagnosticsWithLocation;\n }\n ts.attachFileToDiagnostics = attachFileToDiagnostics;\n function createFileDiagnostic(file, start, length, message) {\n assertDiagnosticLocation(file, start, length);\n var text = getLocaleSpecificMessage(message);\n if (arguments.length > 4) {\n text = formatStringFromArgs(text, arguments, 4);\n }\n return {\n file: file,\n start: start,\n length: length,\n messageText: text,\n category: message.category,\n code: message.code,\n reportsUnnecessary: message.reportsUnnecessary,\n reportsDeprecated: message.reportsDeprecated\n };\n }\n ts.createFileDiagnostic = createFileDiagnostic;\n function formatMessage(_dummy, message) {\n var text = getLocaleSpecificMessage(message);\n if (arguments.length > 2) {\n text = formatStringFromArgs(text, arguments, 2);\n }\n return text;\n }\n ts.formatMessage = formatMessage;\n function createCompilerDiagnostic(message) {\n var text = getLocaleSpecificMessage(message);\n if (arguments.length > 1) {\n text = formatStringFromArgs(text, arguments, 1);\n }\n return {\n file: undefined,\n start: undefined,\n length: undefined,\n messageText: text,\n category: message.category,\n code: message.code,\n reportsUnnecessary: message.reportsUnnecessary,\n reportsDeprecated: message.reportsDeprecated\n };\n }\n ts.createCompilerDiagnostic = createCompilerDiagnostic;\n function createCompilerDiagnosticFromMessageChain(chain, relatedInformation) {\n return {\n file: undefined,\n start: undefined,\n length: undefined,\n code: chain.code,\n category: chain.category,\n messageText: chain.next ? chain : chain.messageText,\n relatedInformation: relatedInformation\n };\n }\n ts.createCompilerDiagnosticFromMessageChain = createCompilerDiagnosticFromMessageChain;\n function chainDiagnosticMessages(details, message) {\n var text = getLocaleSpecificMessage(message);\n if (arguments.length > 2) {\n text = formatStringFromArgs(text, arguments, 2);\n }\n return {\n messageText: text,\n category: message.category,\n code: message.code,\n next: details === undefined || Array.isArray(details) ? details : [details]\n };\n }\n ts.chainDiagnosticMessages = chainDiagnosticMessages;\n function concatenateDiagnosticMessageChains(headChain, tailChain) {\n var lastChain = headChain;\n while (lastChain.next) {\n lastChain = lastChain.next[0];\n }\n lastChain.next = [tailChain];\n }\n ts.concatenateDiagnosticMessageChains = concatenateDiagnosticMessageChains;\n function getDiagnosticFilePath(diagnostic) {\n return diagnostic.file ? diagnostic.file.path : undefined;\n }\n function compareDiagnostics(d1, d2) {\n return compareDiagnosticsSkipRelatedInformation(d1, d2) ||\n compareRelatedInformation(d1, d2) ||\n 0 /* EqualTo */;\n }\n ts.compareDiagnostics = compareDiagnostics;\n function compareDiagnosticsSkipRelatedInformation(d1, d2) {\n return ts.compareStringsCaseSensitive(getDiagnosticFilePath(d1), getDiagnosticFilePath(d2)) ||\n ts.compareValues(d1.start, d2.start) ||\n ts.compareValues(d1.length, d2.length) ||\n ts.compareValues(d1.code, d2.code) ||\n compareMessageText(d1.messageText, d2.messageText) ||\n 0 /* EqualTo */;\n }\n ts.compareDiagnosticsSkipRelatedInformation = compareDiagnosticsSkipRelatedInformation;\n function compareRelatedInformation(d1, d2) {\n if (!d1.relatedInformation && !d2.relatedInformation) {\n return 0 /* EqualTo */;\n }\n if (d1.relatedInformation && d2.relatedInformation) {\n return ts.compareValues(d1.relatedInformation.length, d2.relatedInformation.length) || ts.forEach(d1.relatedInformation, function (d1i, index) {\n var d2i = d2.relatedInformation[index];\n return compareDiagnostics(d1i, d2i); // EqualTo is 0, so falsy, and will cause the next item to be compared\n }) || 0 /* EqualTo */;\n }\n return d1.relatedInformation ? -1 /* LessThan */ : 1 /* GreaterThan */;\n }\n function compareMessageText(t1, t2) {\n if (typeof t1 === \"string\" && typeof t2 === \"string\") {\n return ts.compareStringsCaseSensitive(t1, t2);\n }\n else if (typeof t1 === \"string\") {\n return -1 /* LessThan */;\n }\n else if (typeof t2 === \"string\") {\n return 1 /* GreaterThan */;\n }\n var res = ts.compareStringsCaseSensitive(t1.messageText, t2.messageText);\n if (res) {\n return res;\n }\n if (!t1.next && !t2.next) {\n return 0 /* EqualTo */;\n }\n if (!t1.next) {\n return -1 /* LessThan */;\n }\n if (!t2.next) {\n return 1 /* GreaterThan */;\n }\n var len = Math.min(t1.next.length, t2.next.length);\n for (var i = 0; i < len; i++) {\n res = compareMessageText(t1.next[i], t2.next[i]);\n if (res) {\n return res;\n }\n }\n if (t1.next.length < t2.next.length) {\n return -1 /* LessThan */;\n }\n else if (t1.next.length > t2.next.length) {\n return 1 /* GreaterThan */;\n }\n return 0 /* EqualTo */;\n }\n function getLanguageVariant(scriptKind) {\n // .tsx and .jsx files are treated as jsx language variant.\n return scriptKind === 4 /* TSX */ || scriptKind === 2 /* JSX */ || scriptKind === 1 /* JS */ || scriptKind === 6 /* JSON */ ? 1 /* JSX */ : 0 /* Standard */;\n }\n ts.getLanguageVariant = getLanguageVariant;\n function getEmitScriptTarget(compilerOptions) {\n return compilerOptions.target || 0 /* ES3 */;\n }\n ts.getEmitScriptTarget = getEmitScriptTarget;\n function getEmitModuleKind(compilerOptions) {\n return typeof compilerOptions.module === \"number\" ?\n compilerOptions.module :\n getEmitScriptTarget(compilerOptions) >= 2 /* ES2015 */ ? ts.ModuleKind.ES2015 : ts.ModuleKind.CommonJS;\n }\n ts.getEmitModuleKind = getEmitModuleKind;\n function getEmitModuleResolutionKind(compilerOptions) {\n var moduleResolution = compilerOptions.moduleResolution;\n if (moduleResolution === undefined) {\n moduleResolution = getEmitModuleKind(compilerOptions) === ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : ts.ModuleResolutionKind.Classic;\n }\n return moduleResolution;\n }\n ts.getEmitModuleResolutionKind = getEmitModuleResolutionKind;\n function hasJsonModuleEmitEnabled(options) {\n switch (getEmitModuleKind(options)) {\n case ts.ModuleKind.CommonJS:\n case ts.ModuleKind.AMD:\n case ts.ModuleKind.ES2015:\n case ts.ModuleKind.ES2020:\n case ts.ModuleKind.ESNext:\n return true;\n default:\n return false;\n }\n }\n ts.hasJsonModuleEmitEnabled = hasJsonModuleEmitEnabled;\n function unreachableCodeIsError(options) {\n return options.allowUnreachableCode === false;\n }\n ts.unreachableCodeIsError = unreachableCodeIsError;\n function unusedLabelIsError(options) {\n return options.allowUnusedLabels === false;\n }\n ts.unusedLabelIsError = unusedLabelIsError;\n function getAreDeclarationMapsEnabled(options) {\n return !!(getEmitDeclarations(options) && options.declarationMap);\n }\n ts.getAreDeclarationMapsEnabled = getAreDeclarationMapsEnabled;\n function getAllowSyntheticDefaultImports(compilerOptions) {\n var moduleKind = getEmitModuleKind(compilerOptions);\n return compilerOptions.allowSyntheticDefaultImports !== undefined\n ? compilerOptions.allowSyntheticDefaultImports\n : compilerOptions.esModuleInterop ||\n moduleKind === ts.ModuleKind.System;\n }\n ts.getAllowSyntheticDefaultImports = getAllowSyntheticDefaultImports;\n function getEmitDeclarations(compilerOptions) {\n return !!(compilerOptions.declaration || compilerOptions.composite);\n }\n ts.getEmitDeclarations = getEmitDeclarations;\n function shouldPreserveConstEnums(compilerOptions) {\n return !!(compilerOptions.preserveConstEnums || compilerOptions.isolatedModules);\n }\n ts.shouldPreserveConstEnums = shouldPreserveConstEnums;\n function isIncrementalCompilation(options) {\n return !!(options.incremental || options.composite);\n }\n ts.isIncrementalCompilation = isIncrementalCompilation;\n function getStrictOptionValue(compilerOptions, flag) {\n return compilerOptions[flag] === undefined ? !!compilerOptions.strict : !!compilerOptions[flag];\n }\n ts.getStrictOptionValue = getStrictOptionValue;\n function getAllowJSCompilerOption(compilerOptions) {\n return compilerOptions.allowJs === undefined ? !!compilerOptions.checkJs : compilerOptions.allowJs;\n }\n ts.getAllowJSCompilerOption = getAllowJSCompilerOption;\n function getUseDefineForClassFields(compilerOptions) {\n return compilerOptions.useDefineForClassFields === undefined ? compilerOptions.target === 99 /* ESNext */ : compilerOptions.useDefineForClassFields;\n }\n ts.getUseDefineForClassFields = getUseDefineForClassFields;\n function compilerOptionsAffectSemanticDiagnostics(newOptions, oldOptions) {\n return optionsHaveChanges(oldOptions, newOptions, ts.semanticDiagnosticsOptionDeclarations);\n }\n ts.compilerOptionsAffectSemanticDiagnostics = compilerOptionsAffectSemanticDiagnostics;\n function compilerOptionsAffectEmit(newOptions, oldOptions) {\n return optionsHaveChanges(oldOptions, newOptions, ts.affectsEmitOptionDeclarations);\n }\n ts.compilerOptionsAffectEmit = compilerOptionsAffectEmit;\n function getCompilerOptionValue(options, option) {\n return option.strictFlag ? getStrictOptionValue(options, option.name) : options[option.name];\n }\n ts.getCompilerOptionValue = getCompilerOptionValue;\n function getJSXTransformEnabled(options) {\n var jsx = options.jsx;\n return jsx === 2 /* React */ || jsx === 4 /* ReactJSX */ || jsx === 5 /* ReactJSXDev */;\n }\n ts.getJSXTransformEnabled = getJSXTransformEnabled;\n function getJSXImplicitImportBase(compilerOptions, file) {\n var jsxImportSourcePragmas = file === null || file === void 0 ? void 0 : file.pragmas.get(\"jsximportsource\");\n var jsxImportSourcePragma = ts.isArray(jsxImportSourcePragmas) ? jsxImportSourcePragmas[jsxImportSourcePragmas.length - 1] : jsxImportSourcePragmas;\n return compilerOptions.jsx === 4 /* ReactJSX */ ||\n compilerOptions.jsx === 5 /* ReactJSXDev */ ||\n compilerOptions.jsxImportSource ||\n jsxImportSourcePragma ?\n (jsxImportSourcePragma === null || jsxImportSourcePragma === void 0 ? void 0 : jsxImportSourcePragma.arguments.factory) || compilerOptions.jsxImportSource || \"react\" :\n undefined;\n }\n ts.getJSXImplicitImportBase = getJSXImplicitImportBase;\n function getJSXRuntimeImport(base, options) {\n return base ? base + \"/\" + (options.jsx === 5 /* ReactJSXDev */ ? \"jsx-dev-runtime\" : \"jsx-runtime\") : undefined;\n }\n ts.getJSXRuntimeImport = getJSXRuntimeImport;\n function hasZeroOrOneAsteriskCharacter(str) {\n var seenAsterisk = false;\n for (var i = 0; i < str.length; i++) {\n if (str.charCodeAt(i) === 42 /* asterisk */) {\n if (!seenAsterisk) {\n seenAsterisk = true;\n }\n else {\n // have already seen asterisk\n return false;\n }\n }\n }\n return true;\n }\n ts.hasZeroOrOneAsteriskCharacter = hasZeroOrOneAsteriskCharacter;\n function createSymlinkCache(cwd, getCanonicalFileName) {\n var symlinkedDirectories;\n var symlinkedDirectoriesByRealpath;\n var symlinkedFiles;\n var hasProcessedResolutions = false;\n return {\n getSymlinkedFiles: function () { return symlinkedFiles; },\n getSymlinkedDirectories: function () { return symlinkedDirectories; },\n getSymlinkedDirectoriesByRealpath: function () { return symlinkedDirectoriesByRealpath; },\n setSymlinkedFile: function (path, real) { return (symlinkedFiles || (symlinkedFiles = new ts.Map())).set(path, real); },\n setSymlinkedDirectory: function (symlink, real) {\n // Large, interconnected dependency graphs in pnpm will have a huge number of symlinks\n // where both the realpath and the symlink path are inside node_modules/.pnpm. Since\n // this path is never a candidate for a module specifier, we can ignore it entirely.\n var symlinkPath = ts.toPath(symlink, cwd, getCanonicalFileName);\n if (!containsIgnoredPath(symlinkPath)) {\n symlinkPath = ts.ensureTrailingDirectorySeparator(symlinkPath);\n if (real !== false && !(symlinkedDirectories === null || symlinkedDirectories === void 0 ? void 0 : symlinkedDirectories.has(symlinkPath))) {\n (symlinkedDirectoriesByRealpath || (symlinkedDirectoriesByRealpath = ts.createMultiMap())).add(ts.ensureTrailingDirectorySeparator(real.realPath), symlink);\n }\n (symlinkedDirectories || (symlinkedDirectories = new ts.Map())).set(symlinkPath, real);\n }\n },\n setSymlinkedDirectoryFromSymlinkedFile: function (symlink, real) {\n this.setSymlinkedFile(ts.toPath(symlink, cwd, getCanonicalFileName), real);\n var _a = guessDirectorySymlink(real, symlink, cwd, getCanonicalFileName) || ts.emptyArray, commonResolved = _a[0], commonOriginal = _a[1];\n if (commonResolved && commonOriginal) {\n this.setSymlinkedDirectory(commonOriginal, {\n real: commonResolved,\n realPath: ts.toPath(commonResolved, cwd, getCanonicalFileName),\n });\n }\n },\n setSymlinksFromResolutions: function (files, typeReferenceDirectives) {\n var _this = this;\n var _a;\n ts.Debug.assert(!hasProcessedResolutions);\n hasProcessedResolutions = true;\n for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {\n var file = files_1[_i];\n (_a = file.resolvedModules) === null || _a === void 0 ? void 0 : _a.forEach(function (resolution) { return processResolution(_this, resolution); });\n }\n typeReferenceDirectives === null || typeReferenceDirectives === void 0 ? void 0 : typeReferenceDirectives.forEach(function (resolution) { return processResolution(_this, resolution); });\n },\n hasProcessedResolutions: function () { return hasProcessedResolutions; },\n };\n function processResolution(cache, resolution) {\n if (!resolution || !resolution.originalPath || !resolution.resolvedFileName)\n return;\n var resolvedFileName = resolution.resolvedFileName, originalPath = resolution.originalPath;\n cache.setSymlinkedFile(ts.toPath(originalPath, cwd, getCanonicalFileName), resolvedFileName);\n var _a = guessDirectorySymlink(resolvedFileName, originalPath, cwd, getCanonicalFileName) || ts.emptyArray, commonResolved = _a[0], commonOriginal = _a[1];\n if (commonResolved && commonOriginal) {\n cache.setSymlinkedDirectory(commonOriginal, { real: commonResolved, realPath: ts.toPath(commonResolved, cwd, getCanonicalFileName) });\n }\n }\n }\n ts.createSymlinkCache = createSymlinkCache;\n function guessDirectorySymlink(a, b, cwd, getCanonicalFileName) {\n var aParts = ts.getPathComponents(ts.getNormalizedAbsolutePath(a, cwd));\n var bParts = ts.getPathComponents(ts.getNormalizedAbsolutePath(b, cwd));\n var isDirectory = false;\n while (!isNodeModulesOrScopedPackageDirectory(aParts[aParts.length - 2], getCanonicalFileName) &&\n !isNodeModulesOrScopedPackageDirectory(bParts[bParts.length - 2], getCanonicalFileName) &&\n getCanonicalFileName(aParts[aParts.length - 1]) === getCanonicalFileName(bParts[bParts.length - 1])) {\n aParts.pop();\n bParts.pop();\n isDirectory = true;\n }\n return isDirectory ? [ts.getPathFromPathComponents(aParts), ts.getPathFromPathComponents(bParts)] : undefined;\n }\n // KLUDGE: Don't assume one 'node_modules' links to another. More likely a single directory inside the node_modules is the symlink.\n // ALso, don't assume that an `@foo` directory is linked. More likely the contents of that are linked.\n function isNodeModulesOrScopedPackageDirectory(s, getCanonicalFileName) {\n return getCanonicalFileName(s) === \"node_modules\" || ts.startsWith(s, \"@\");\n }\n function stripLeadingDirectorySeparator(s) {\n return ts.isAnyDirectorySeparator(s.charCodeAt(0)) ? s.slice(1) : undefined;\n }\n function tryRemoveDirectoryPrefix(path, dirPath, getCanonicalFileName) {\n var withoutPrefix = ts.tryRemovePrefix(path, dirPath, getCanonicalFileName);\n return withoutPrefix === undefined ? undefined : stripLeadingDirectorySeparator(withoutPrefix);\n }\n ts.tryRemoveDirectoryPrefix = tryRemoveDirectoryPrefix;\n // Reserved characters, forces escaping of any non-word (or digit), non-whitespace character.\n // It may be inefficient (we could just match (/[-[\\]{}()*+?.,\\\\^$|#\\s]/g), but this is future\n // proof.\n var reservedCharacterPattern = /[^\\w\\s\\/]/g;\n function regExpEscape(text) {\n return text.replace(reservedCharacterPattern, escapeRegExpCharacter);\n }\n ts.regExpEscape = regExpEscape;\n function escapeRegExpCharacter(match) {\n return \"\\\\\" + match;\n }\n var wildcardCharCodes = [42 /* asterisk */, 63 /* question */];\n ts.commonPackageFolders = [\"node_modules\", \"bower_components\", \"jspm_packages\"];\n var implicitExcludePathRegexPattern = \"(?!(\" + ts.commonPackageFolders.join(\"|\") + \")(/|$))\";\n var filesMatcher = {\n /**\n * Matches any single directory segment unless it is the last segment and a .min.js file\n * Breakdown:\n * [^./] # matches everything up to the first . character (excluding directory separators)\n * (\\\\.(?!min\\\\.js$))? # matches . characters but not if they are part of the .min.js file extension\n */\n singleAsteriskRegexFragment: \"([^./]|(\\\\.(?!min\\\\.js$))?)*\",\n /**\n * Regex for the ** wildcard. Matches any number of subdirectories. When used for including\n * files or directories, does not match subdirectories that start with a . character\n */\n doubleAsteriskRegexFragment: \"(/\" + implicitExcludePathRegexPattern + \"[^/.][^/]*)*?\",\n replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, filesMatcher.singleAsteriskRegexFragment); }\n };\n var directoriesMatcher = {\n singleAsteriskRegexFragment: \"[^/]*\",\n /**\n * Regex for the ** wildcard. Matches any number of subdirectories. When used for including\n * files or directories, does not match subdirectories that start with a . character\n */\n doubleAsteriskRegexFragment: \"(/\" + implicitExcludePathRegexPattern + \"[^/.][^/]*)*?\",\n replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, directoriesMatcher.singleAsteriskRegexFragment); }\n };\n var excludeMatcher = {\n singleAsteriskRegexFragment: \"[^/]*\",\n doubleAsteriskRegexFragment: \"(/.+?)?\",\n replaceWildcardCharacter: function (match) { return replaceWildcardCharacter(match, excludeMatcher.singleAsteriskRegexFragment); }\n };\n var wildcardMatchers = {\n files: filesMatcher,\n directories: directoriesMatcher,\n exclude: excludeMatcher\n };\n function getRegularExpressionForWildcard(specs, basePath, usage) {\n var patterns = getRegularExpressionsForWildcards(specs, basePath, usage);\n if (!patterns || !patterns.length) {\n return undefined;\n }\n var pattern = patterns.map(function (pattern) { return \"(\" + pattern + \")\"; }).join(\"|\");\n // If excluding, match \"foo/bar/baz...\", but if including, only allow \"foo\".\n var terminator = usage === \"exclude\" ? \"($|/)\" : \"$\";\n return \"^(\" + pattern + \")\" + terminator;\n }\n ts.getRegularExpressionForWildcard = getRegularExpressionForWildcard;\n function getRegularExpressionsForWildcards(specs, basePath, usage) {\n if (specs === undefined || specs.length === 0) {\n return undefined;\n }\n return ts.flatMap(specs, function (spec) {\n return spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);\n });\n }\n ts.getRegularExpressionsForWildcards = getRegularExpressionsForWildcards;\n /**\n * An \"includes\" path \"foo\" is implicitly a glob \"foo/** /*\" (without the space) if its last component has no extension,\n * and does not contain any glob characters itself.\n */\n function isImplicitGlob(lastPathComponent) {\n return !/[.*?]/.test(lastPathComponent);\n }\n ts.isImplicitGlob = isImplicitGlob;\n function getPatternFromSpec(spec, basePath, usage) {\n var pattern = spec && getSubPatternFromSpec(spec, basePath, usage, wildcardMatchers[usage]);\n return pattern && \"^(\" + pattern + \")\" + (usage === \"exclude\" ? \"($|/)\" : \"$\");\n }\n ts.getPatternFromSpec = getPatternFromSpec;\n function getSubPatternFromSpec(spec, basePath, usage, _a) {\n var singleAsteriskRegexFragment = _a.singleAsteriskRegexFragment, doubleAsteriskRegexFragment = _a.doubleAsteriskRegexFragment, replaceWildcardCharacter = _a.replaceWildcardCharacter;\n var subpattern = \"\";\n var hasWrittenComponent = false;\n var components = ts.getNormalizedPathComponents(spec, basePath);\n var lastComponent = ts.last(components);\n if (usage !== \"exclude\" && lastComponent === \"**\") {\n return undefined;\n }\n // getNormalizedPathComponents includes the separator for the root component.\n // We need to remove to create our regex correctly.\n components[0] = ts.removeTrailingDirectorySeparator(components[0]);\n if (isImplicitGlob(lastComponent)) {\n components.push(\"**\", \"*\");\n }\n var optionalCount = 0;\n for (var _i = 0, components_1 = components; _i < components_1.length; _i++) {\n var component = components_1[_i];\n if (component === \"**\") {\n subpattern += doubleAsteriskRegexFragment;\n }\n else {\n if (usage === \"directories\") {\n subpattern += \"(\";\n optionalCount++;\n }\n if (hasWrittenComponent) {\n subpattern += ts.directorySeparator;\n }\n if (usage !== \"exclude\") {\n var componentPattern = \"\";\n // The * and ? wildcards should not match directories or files that start with . if they\n // appear first in a component. Dotted directories and files can be included explicitly\n // like so: **/.*/.*\n if (component.charCodeAt(0) === 42 /* asterisk */) {\n componentPattern += \"([^./]\" + singleAsteriskRegexFragment + \")?\";\n component = component.substr(1);\n }\n else if (component.charCodeAt(0) === 63 /* question */) {\n componentPattern += \"[^./]\";\n component = component.substr(1);\n }\n componentPattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter);\n // Patterns should not include subfolders like node_modules unless they are\n // explicitly included as part of the path.\n //\n // As an optimization, if the component pattern is the same as the component,\n // then there definitely were no wildcard characters and we do not need to\n // add the exclusion pattern.\n if (componentPattern !== component) {\n subpattern += implicitExcludePathRegexPattern;\n }\n subpattern += componentPattern;\n }\n else {\n subpattern += component.replace(reservedCharacterPattern, replaceWildcardCharacter);\n }\n }\n hasWrittenComponent = true;\n }\n while (optionalCount > 0) {\n subpattern += \")?\";\n optionalCount--;\n }\n return subpattern;\n }\n function replaceWildcardCharacter(match, singleAsteriskRegexFragment) {\n return match === \"*\" ? singleAsteriskRegexFragment : match === \"?\" ? \"[^/]\" : \"\\\\\" + match;\n }\n /** @param path directory of the tsconfig.json */\n function getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory) {\n path = ts.normalizePath(path);\n currentDirectory = ts.normalizePath(currentDirectory);\n var absolutePath = ts.combinePaths(currentDirectory, path);\n return {\n includeFilePatterns: ts.map(getRegularExpressionsForWildcards(includes, absolutePath, \"files\"), function (pattern) { return \"^\" + pattern + \"$\"; }),\n includeFilePattern: getRegularExpressionForWildcard(includes, absolutePath, \"files\"),\n includeDirectoryPattern: getRegularExpressionForWildcard(includes, absolutePath, \"directories\"),\n excludePattern: getRegularExpressionForWildcard(excludes, absolutePath, \"exclude\"),\n basePaths: getBasePaths(path, includes, useCaseSensitiveFileNames)\n };\n }\n ts.getFileMatcherPatterns = getFileMatcherPatterns;\n function getRegexFromPattern(pattern, useCaseSensitiveFileNames) {\n return new RegExp(pattern, useCaseSensitiveFileNames ? \"\" : \"i\");\n }\n ts.getRegexFromPattern = getRegexFromPattern;\n /** @param path directory of the tsconfig.json */\n function matchFiles(path, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath, directoryExists) {\n path = ts.normalizePath(path);\n currentDirectory = ts.normalizePath(currentDirectory);\n var patterns = getFileMatcherPatterns(path, excludes, includes, useCaseSensitiveFileNames, currentDirectory);\n var includeFileRegexes = patterns.includeFilePatterns && patterns.includeFilePatterns.map(function (pattern) { return getRegexFromPattern(pattern, useCaseSensitiveFileNames); });\n var includeDirectoryRegex = patterns.includeDirectoryPattern && getRegexFromPattern(patterns.includeDirectoryPattern, useCaseSensitiveFileNames);\n var excludeRegex = patterns.excludePattern && getRegexFromPattern(patterns.excludePattern, useCaseSensitiveFileNames);\n // Associate an array of results with each include regex. This keeps results in order of the \"include\" order.\n // If there are no \"includes\", then just put everything in results[0].\n var results = includeFileRegexes ? includeFileRegexes.map(function () { return []; }) : [[]];\n var visited = new ts.Map();\n var toCanonical = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n for (var _i = 0, _a = patterns.basePaths; _i < _a.length; _i++) {\n var basePath = _a[_i];\n if (directoryExists(basePath)) {\n visitDirectory(basePath, ts.combinePaths(currentDirectory, basePath), depth);\n }\n }\n return ts.flatten(results);\n function visitDirectory(path, absolutePath, depth) {\n var canonicalPath = toCanonical(realpath(absolutePath));\n if (visited.has(canonicalPath))\n return;\n visited.set(canonicalPath, true);\n var _a = getFileSystemEntries(path), files = _a.files, directories = _a.directories;\n var _loop_1 = function (current) {\n var name = ts.combinePaths(path, current);\n var absoluteName = ts.combinePaths(absolutePath, current);\n if (extensions && !ts.fileExtensionIsOneOf(name, extensions))\n return \"continue\";\n if (excludeRegex && excludeRegex.test(absoluteName))\n return \"continue\";\n if (!includeFileRegexes) {\n results[0].push(name);\n }\n else {\n var includeIndex = ts.findIndex(includeFileRegexes, function (re) { return re.test(absoluteName); });\n if (includeIndex !== -1) {\n results[includeIndex].push(name);\n }\n }\n };\n for (var _i = 0, _b = ts.sort(files, ts.compareStringsCaseSensitive); _i < _b.length; _i++) {\n var current = _b[_i];\n _loop_1(current);\n }\n if (depth !== undefined) {\n depth--;\n if (depth === 0) {\n return;\n }\n }\n for (var _c = 0, _d = ts.sort(directories, ts.compareStringsCaseSensitive); _c < _d.length; _c++) {\n var current = _d[_c];\n var name = ts.combinePaths(path, current);\n var absoluteName = ts.combinePaths(absolutePath, current);\n if ((!includeDirectoryRegex || includeDirectoryRegex.test(absoluteName)) &&\n (!excludeRegex || !excludeRegex.test(absoluteName))) {\n visitDirectory(name, absoluteName, depth);\n }\n }\n }\n }\n ts.matchFiles = matchFiles;\n /**\n * Computes the unique non-wildcard base paths amongst the provided include patterns.\n */\n function getBasePaths(path, includes, useCaseSensitiveFileNames) {\n // Storage for our results in the form of literal paths (e.g. the paths as written by the user).\n var basePaths = [path];\n if (includes) {\n // Storage for literal base paths amongst the include patterns.\n var includeBasePaths = [];\n for (var _i = 0, includes_1 = includes; _i < includes_1.length; _i++) {\n var include = includes_1[_i];\n // We also need to check the relative paths by converting them to absolute and normalizing\n // in case they escape the base path (e.g \"..\\somedirectory\")\n var absolute = ts.isRootedDiskPath(include) ? include : ts.normalizePath(ts.combinePaths(path, include));\n // Append the literal and canonical candidate base paths.\n includeBasePaths.push(getIncludeBasePath(absolute));\n }\n // Sort the offsets array using either the literal or canonical path representations.\n includeBasePaths.sort(ts.getStringComparer(!useCaseSensitiveFileNames));\n var _loop_2 = function (includeBasePath) {\n if (ts.every(basePaths, function (basePath) { return !ts.containsPath(basePath, includeBasePath, path, !useCaseSensitiveFileNames); })) {\n basePaths.push(includeBasePath);\n }\n };\n // Iterate over each include base path and include unique base paths that are not a\n // subpath of an existing base path\n for (var _a = 0, includeBasePaths_1 = includeBasePaths; _a < includeBasePaths_1.length; _a++) {\n var includeBasePath = includeBasePaths_1[_a];\n _loop_2(includeBasePath);\n }\n }\n return basePaths;\n }\n function getIncludeBasePath(absolute) {\n var wildcardOffset = ts.indexOfAnyCharCode(absolute, wildcardCharCodes);\n if (wildcardOffset < 0) {\n // No \"*\" or \"?\" in the path\n return !ts.hasExtension(absolute)\n ? absolute\n : ts.removeTrailingDirectorySeparator(ts.getDirectoryPath(absolute));\n }\n return absolute.substring(0, absolute.lastIndexOf(ts.directorySeparator, wildcardOffset));\n }\n function ensureScriptKind(fileName, scriptKind) {\n // Using scriptKind as a condition handles both:\n // - 'scriptKind' is unspecified and thus it is `undefined`\n // - 'scriptKind' is set and it is `Unknown` (0)\n // If the 'scriptKind' is 'undefined' or 'Unknown' then we attempt\n // to get the ScriptKind from the file name. If it cannot be resolved\n // from the file name then the default 'TS' script kind is returned.\n return scriptKind || getScriptKindFromFileName(fileName) || 3 /* TS */;\n }\n ts.ensureScriptKind = ensureScriptKind;\n function getScriptKindFromFileName(fileName) {\n var ext = fileName.substr(fileName.lastIndexOf(\".\"));\n switch (ext.toLowerCase()) {\n case \".js\" /* Js */:\n return 1 /* JS */;\n case \".jsx\" /* Jsx */:\n return 2 /* JSX */;\n case \".ts\" /* Ts */:\n return 3 /* TS */;\n case \".tsx\" /* Tsx */:\n return 4 /* TSX */;\n case \".json\" /* Json */:\n return 6 /* JSON */;\n default:\n return 0 /* Unknown */;\n }\n }\n ts.getScriptKindFromFileName = getScriptKindFromFileName;\n /**\n * List of supported extensions in order of file resolution precedence.\n */\n ts.supportedTSExtensions = [\".ts\" /* Ts */, \".tsx\" /* Tsx */, \".d.ts\" /* Dts */];\n ts.supportedTSExtensionsWithJson = [\".ts\" /* Ts */, \".tsx\" /* Tsx */, \".d.ts\" /* Dts */, \".json\" /* Json */];\n /** Must have \".d.ts\" first because if \".ts\" goes first, that will be detected as the extension instead of \".d.ts\". */\n ts.supportedTSExtensionsForExtractExtension = [\".d.ts\" /* Dts */, \".ts\" /* Ts */, \".tsx\" /* Tsx */];\n ts.supportedJSExtensions = [\".js\" /* Js */, \".jsx\" /* Jsx */];\n ts.supportedJSAndJsonExtensions = [\".js\" /* Js */, \".jsx\" /* Jsx */, \".json\" /* Json */];\n var allSupportedExtensions = __spreadArray(__spreadArray([], ts.supportedTSExtensions, true), ts.supportedJSExtensions, true);\n var allSupportedExtensionsWithJson = __spreadArray(__spreadArray(__spreadArray([], ts.supportedTSExtensions, true), ts.supportedJSExtensions, true), [\".json\" /* Json */], false);\n function getSupportedExtensions(options, extraFileExtensions) {\n var needJsExtensions = options && getAllowJSCompilerOption(options);\n if (!extraFileExtensions || extraFileExtensions.length === 0) {\n return needJsExtensions ? allSupportedExtensions : ts.supportedTSExtensions;\n }\n var extensions = __spreadArray(__spreadArray([], needJsExtensions ? allSupportedExtensions : ts.supportedTSExtensions, true), ts.mapDefined(extraFileExtensions, function (x) { return x.scriptKind === 7 /* Deferred */ || needJsExtensions && isJSLike(x.scriptKind) ? x.extension : undefined; }), true);\n return ts.deduplicate(extensions, ts.equateStringsCaseSensitive, ts.compareStringsCaseSensitive);\n }\n ts.getSupportedExtensions = getSupportedExtensions;\n function getSuppoertedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions) {\n if (!options || !options.resolveJsonModule) {\n return supportedExtensions;\n }\n if (supportedExtensions === allSupportedExtensions) {\n return allSupportedExtensionsWithJson;\n }\n if (supportedExtensions === ts.supportedTSExtensions) {\n return ts.supportedTSExtensionsWithJson;\n }\n return __spreadArray(__spreadArray([], supportedExtensions, true), [\".json\" /* Json */], false);\n }\n ts.getSuppoertedExtensionsWithJsonIfResolveJsonModule = getSuppoertedExtensionsWithJsonIfResolveJsonModule;\n function isJSLike(scriptKind) {\n return scriptKind === 1 /* JS */ || scriptKind === 2 /* JSX */;\n }\n function hasJSFileExtension(fileName) {\n return ts.some(ts.supportedJSExtensions, function (extension) { return ts.fileExtensionIs(fileName, extension); });\n }\n ts.hasJSFileExtension = hasJSFileExtension;\n function hasTSFileExtension(fileName) {\n return ts.some(ts.supportedTSExtensions, function (extension) { return ts.fileExtensionIs(fileName, extension); });\n }\n ts.hasTSFileExtension = hasTSFileExtension;\n function isSupportedSourceFileName(fileName, compilerOptions, extraFileExtensions) {\n if (!fileName) {\n return false;\n }\n var supportedExtensions = getSupportedExtensions(compilerOptions, extraFileExtensions);\n for (var _i = 0, _a = getSuppoertedExtensionsWithJsonIfResolveJsonModule(compilerOptions, supportedExtensions); _i < _a.length; _i++) {\n var extension = _a[_i];\n if (ts.fileExtensionIs(fileName, extension)) {\n return true;\n }\n }\n return false;\n }\n ts.isSupportedSourceFileName = isSupportedSourceFileName;\n function numberOfDirectorySeparators(str) {\n var match = str.match(/\\//g);\n return match ? match.length : 0;\n }\n function compareNumberOfDirectorySeparators(path1, path2) {\n return ts.compareValues(numberOfDirectorySeparators(path1), numberOfDirectorySeparators(path2));\n }\n ts.compareNumberOfDirectorySeparators = compareNumberOfDirectorySeparators;\n /**\n * Extension boundaries by priority. Lower numbers indicate higher priorities, and are\n * aligned to the offset of the highest priority extension in the\n * allSupportedExtensions array.\n */\n var ExtensionPriority;\n (function (ExtensionPriority) {\n ExtensionPriority[ExtensionPriority[\"TypeScriptFiles\"] = 0] = \"TypeScriptFiles\";\n ExtensionPriority[ExtensionPriority[\"DeclarationAndJavaScriptFiles\"] = 2] = \"DeclarationAndJavaScriptFiles\";\n ExtensionPriority[ExtensionPriority[\"Highest\"] = 0] = \"Highest\";\n ExtensionPriority[ExtensionPriority[\"Lowest\"] = 2] = \"Lowest\";\n })(ExtensionPriority = ts.ExtensionPriority || (ts.ExtensionPriority = {}));\n function getExtensionPriority(path, supportedExtensions) {\n for (var i = supportedExtensions.length - 1; i >= 0; i--) {\n if (ts.fileExtensionIs(path, supportedExtensions[i])) {\n return adjustExtensionPriority(i, supportedExtensions);\n }\n }\n // If its not in the list of supported extensions, this is likely a\n // TypeScript file with a non-ts extension\n return 0 /* Highest */;\n }\n ts.getExtensionPriority = getExtensionPriority;\n /**\n * Adjusts an extension priority to be the highest priority within the same range.\n */\n function adjustExtensionPriority(extensionPriority, supportedExtensions) {\n if (extensionPriority < 2 /* DeclarationAndJavaScriptFiles */) {\n return 0 /* TypeScriptFiles */;\n }\n else if (extensionPriority < supportedExtensions.length) {\n return 2 /* DeclarationAndJavaScriptFiles */;\n }\n else {\n return supportedExtensions.length;\n }\n }\n ts.adjustExtensionPriority = adjustExtensionPriority;\n /**\n * Gets the next lowest extension priority for a given priority.\n */\n function getNextLowestExtensionPriority(extensionPriority, supportedExtensions) {\n if (extensionPriority < 2 /* DeclarationAndJavaScriptFiles */) {\n return 2 /* DeclarationAndJavaScriptFiles */;\n }\n else {\n return supportedExtensions.length;\n }\n }\n ts.getNextLowestExtensionPriority = getNextLowestExtensionPriority;\n var extensionsToRemove = [\".d.ts\" /* Dts */, \".ts\" /* Ts */, \".js\" /* Js */, \".tsx\" /* Tsx */, \".jsx\" /* Jsx */, \".json\" /* Json */];\n function removeFileExtension(path) {\n for (var _i = 0, extensionsToRemove_1 = extensionsToRemove; _i < extensionsToRemove_1.length; _i++) {\n var ext = extensionsToRemove_1[_i];\n var extensionless = tryRemoveExtension(path, ext);\n if (extensionless !== undefined) {\n return extensionless;\n }\n }\n return path;\n }\n ts.removeFileExtension = removeFileExtension;\n function tryRemoveExtension(path, extension) {\n return ts.fileExtensionIs(path, extension) ? removeExtension(path, extension) : undefined;\n }\n ts.tryRemoveExtension = tryRemoveExtension;\n function removeExtension(path, extension) {\n return path.substring(0, path.length - extension.length);\n }\n ts.removeExtension = removeExtension;\n function changeExtension(path, newExtension) {\n return ts.changeAnyExtension(path, newExtension, extensionsToRemove, /*ignoreCase*/ false);\n }\n ts.changeExtension = changeExtension;\n /**\n * Returns the input if there are no stars, a pattern if there is exactly one,\n * and undefined if there are more.\n */\n function tryParsePattern(pattern) {\n var indexOfStar = pattern.indexOf(\"*\");\n if (indexOfStar === -1) {\n return pattern;\n }\n return pattern.indexOf(\"*\", indexOfStar + 1) !== -1\n ? undefined\n : {\n prefix: pattern.substr(0, indexOfStar),\n suffix: pattern.substr(indexOfStar + 1)\n };\n }\n ts.tryParsePattern = tryParsePattern;\n function tryParsePatterns(paths) {\n return ts.mapDefined(ts.getOwnKeys(paths), function (path) { return tryParsePattern(path); });\n }\n ts.tryParsePatterns = tryParsePatterns;\n function positionIsSynthesized(pos) {\n // This is a fast way of testing the following conditions:\n // pos === undefined || pos === null || isNaN(pos) || pos < 0;\n return !(pos >= 0);\n }\n ts.positionIsSynthesized = positionIsSynthesized;\n /** True if an extension is one of the supported TypeScript extensions. */\n function extensionIsTS(ext) {\n return ext === \".ts\" /* Ts */ || ext === \".tsx\" /* Tsx */ || ext === \".d.ts\" /* Dts */;\n }\n ts.extensionIsTS = extensionIsTS;\n function resolutionExtensionIsTSOrJson(ext) {\n return extensionIsTS(ext) || ext === \".json\" /* Json */;\n }\n ts.resolutionExtensionIsTSOrJson = resolutionExtensionIsTSOrJson;\n /**\n * Gets the extension from a path.\n * Path must have a valid extension.\n */\n function extensionFromPath(path) {\n var ext = tryGetExtensionFromPath(path);\n return ext !== undefined ? ext : ts.Debug.fail(\"File \" + path + \" has unknown extension.\");\n }\n ts.extensionFromPath = extensionFromPath;\n function isAnySupportedFileExtension(path) {\n return tryGetExtensionFromPath(path) !== undefined;\n }\n ts.isAnySupportedFileExtension = isAnySupportedFileExtension;\n function tryGetExtensionFromPath(path) {\n return ts.find(extensionsToRemove, function (e) { return ts.fileExtensionIs(path, e); });\n }\n ts.tryGetExtensionFromPath = tryGetExtensionFromPath;\n function isCheckJsEnabledForFile(sourceFile, compilerOptions) {\n return sourceFile.checkJsDirective ? sourceFile.checkJsDirective.enabled : compilerOptions.checkJs;\n }\n ts.isCheckJsEnabledForFile = isCheckJsEnabledForFile;\n ts.emptyFileSystemEntries = {\n files: ts.emptyArray,\n directories: ts.emptyArray\n };\n /**\n * patternOrStrings contains both patterns (containing \"*\") and regular strings.\n * Return an exact match if possible, or a pattern match, or undefined.\n * (These are verified by verifyCompilerOptions to have 0 or 1 \"*\" characters.)\n */\n function matchPatternOrExact(patternOrStrings, candidate) {\n var patterns = [];\n for (var _i = 0, patternOrStrings_1 = patternOrStrings; _i < patternOrStrings_1.length; _i++) {\n var patternOrString = patternOrStrings_1[_i];\n if (patternOrString === candidate) {\n return candidate;\n }\n if (!ts.isString(patternOrString)) {\n patterns.push(patternOrString);\n }\n }\n return ts.findBestPatternMatch(patterns, function (_) { return _; }, candidate);\n }\n ts.matchPatternOrExact = matchPatternOrExact;\n function sliceAfter(arr, value) {\n var index = arr.indexOf(value);\n ts.Debug.assert(index !== -1);\n return arr.slice(index);\n }\n ts.sliceAfter = sliceAfter;\n function addRelatedInfo(diagnostic) {\n var _a;\n var relatedInformation = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n relatedInformation[_i - 1] = arguments[_i];\n }\n if (!relatedInformation.length) {\n return diagnostic;\n }\n if (!diagnostic.relatedInformation) {\n diagnostic.relatedInformation = [];\n }\n ts.Debug.assert(diagnostic.relatedInformation !== ts.emptyArray, \"Diagnostic had empty array singleton for related info, but is still being constructed!\");\n (_a = diagnostic.relatedInformation).push.apply(_a, relatedInformation);\n return diagnostic;\n }\n ts.addRelatedInfo = addRelatedInfo;\n function minAndMax(arr, getValue) {\n ts.Debug.assert(arr.length !== 0);\n var min = getValue(arr[0]);\n var max = min;\n for (var i = 1; i < arr.length; i++) {\n var value = getValue(arr[i]);\n if (value < min) {\n min = value;\n }\n else if (value > max) {\n max = value;\n }\n }\n return { min: min, max: max };\n }\n ts.minAndMax = minAndMax;\n function rangeOfNode(node) {\n return { pos: getTokenPosOfNode(node), end: node.end };\n }\n ts.rangeOfNode = rangeOfNode;\n function rangeOfTypeParameters(sourceFile, typeParameters) {\n // Include the `<>`\n var pos = typeParameters.pos - 1;\n var end = ts.skipTrivia(sourceFile.text, typeParameters.end) + 1;\n return { pos: pos, end: end };\n }\n ts.rangeOfTypeParameters = rangeOfTypeParameters;\n function skipTypeChecking(sourceFile, options, host) {\n // If skipLibCheck is enabled, skip reporting errors if file is a declaration file.\n // If skipDefaultLibCheck is enabled, skip reporting errors if file contains a\n // '/// ' directive.\n return (options.skipLibCheck && sourceFile.isDeclarationFile ||\n options.skipDefaultLibCheck && sourceFile.hasNoDefaultLib) ||\n host.isSourceOfProjectReferenceRedirect(sourceFile.fileName);\n }\n ts.skipTypeChecking = skipTypeChecking;\n function isJsonEqual(a, b) {\n // eslint-disable-next-line no-null/no-null\n return a === b || typeof a === \"object\" && a !== null && typeof b === \"object\" && b !== null && ts.equalOwnProperties(a, b, isJsonEqual);\n }\n ts.isJsonEqual = isJsonEqual;\n /**\n * Converts a bigint literal string, e.g. `0x1234n`,\n * to its decimal string representation, e.g. `4660`.\n */\n function parsePseudoBigInt(stringValue) {\n var log2Base;\n switch (stringValue.charCodeAt(1)) { // \"x\" in \"0x123\"\n case 98 /* b */:\n case 66 /* B */: // 0b or 0B\n log2Base = 1;\n break;\n case 111 /* o */:\n case 79 /* O */: // 0o or 0O\n log2Base = 3;\n break;\n case 120 /* x */:\n case 88 /* X */: // 0x or 0X\n log2Base = 4;\n break;\n default: // already in decimal; omit trailing \"n\"\n var nIndex = stringValue.length - 1;\n // Skip leading 0s\n var nonZeroStart = 0;\n while (stringValue.charCodeAt(nonZeroStart) === 48 /* _0 */) {\n nonZeroStart++;\n }\n return stringValue.slice(nonZeroStart, nIndex) || \"0\";\n }\n // Omit leading \"0b\", \"0o\", or \"0x\", and trailing \"n\"\n var startIndex = 2, endIndex = stringValue.length - 1;\n var bitsNeeded = (endIndex - startIndex) * log2Base;\n // Stores the value specified by the string as a LE array of 16-bit integers\n // using Uint16 instead of Uint32 so combining steps can use bitwise operators\n var segments = new Uint16Array((bitsNeeded >>> 4) + (bitsNeeded & 15 ? 1 : 0));\n // Add the digits, one at a time\n for (var i = endIndex - 1, bitOffset = 0; i >= startIndex; i--, bitOffset += log2Base) {\n var segment = bitOffset >>> 4;\n var digitChar = stringValue.charCodeAt(i);\n // Find character range: 0-9 < A-F < a-f\n var digit = digitChar <= 57 /* _9 */\n ? digitChar - 48 /* _0 */\n : 10 + digitChar -\n (digitChar <= 70 /* F */ ? 65 /* A */ : 97 /* a */);\n var shiftedDigit = digit << (bitOffset & 15);\n segments[segment] |= shiftedDigit;\n var residual = shiftedDigit >>> 16;\n if (residual)\n segments[segment + 1] |= residual; // overflows segment\n }\n // Repeatedly divide segments by 10 and add remainder to base10Value\n var base10Value = \"\";\n var firstNonzeroSegment = segments.length - 1;\n var segmentsRemaining = true;\n while (segmentsRemaining) {\n var mod10 = 0;\n segmentsRemaining = false;\n for (var segment = firstNonzeroSegment; segment >= 0; segment--) {\n var newSegment = mod10 << 16 | segments[segment];\n var segmentValue = (newSegment / 10) | 0;\n segments[segment] = segmentValue;\n mod10 = newSegment - segmentValue * 10;\n if (segmentValue && !segmentsRemaining) {\n firstNonzeroSegment = segment;\n segmentsRemaining = true;\n }\n }\n base10Value = mod10 + base10Value;\n }\n return base10Value;\n }\n ts.parsePseudoBigInt = parsePseudoBigInt;\n function pseudoBigIntToString(_a) {\n var negative = _a.negative, base10Value = _a.base10Value;\n return (negative && base10Value !== \"0\" ? \"-\" : \"\") + base10Value;\n }\n ts.pseudoBigIntToString = pseudoBigIntToString;\n function isValidTypeOnlyAliasUseSite(useSite) {\n return !!(useSite.flags & 8388608 /* Ambient */)\n || isPartOfTypeQuery(useSite)\n || isIdentifierInNonEmittingHeritageClause(useSite)\n || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite)\n || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));\n }\n ts.isValidTypeOnlyAliasUseSite = isValidTypeOnlyAliasUseSite;\n function typeOnlyDeclarationIsExport(typeOnlyDeclaration) {\n return typeOnlyDeclaration.kind === 273 /* ExportSpecifier */;\n }\n ts.typeOnlyDeclarationIsExport = typeOnlyDeclarationIsExport;\n function isShorthandPropertyNameUseSite(useSite) {\n return ts.isIdentifier(useSite) && ts.isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;\n }\n function isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(node) {\n while (node.kind === 79 /* Identifier */ || node.kind === 204 /* PropertyAccessExpression */) {\n node = node.parent;\n }\n if (node.kind !== 160 /* ComputedPropertyName */) {\n return false;\n }\n if (hasSyntacticModifier(node.parent, 128 /* Abstract */)) {\n return true;\n }\n var containerKind = node.parent.parent.kind;\n return containerKind === 256 /* InterfaceDeclaration */ || containerKind === 180 /* TypeLiteral */;\n }\n /** Returns true for an identifier in 1) an `implements` clause, and 2) an `extends` clause of an interface. */\n function isIdentifierInNonEmittingHeritageClause(node) {\n if (node.kind !== 79 /* Identifier */)\n return false;\n var heritageClause = ts.findAncestor(node.parent, function (parent) {\n switch (parent.kind) {\n case 289 /* HeritageClause */:\n return true;\n case 204 /* PropertyAccessExpression */:\n case 226 /* ExpressionWithTypeArguments */:\n return false;\n default:\n return \"quit\";\n }\n });\n return (heritageClause === null || heritageClause === void 0 ? void 0 : heritageClause.token) === 117 /* ImplementsKeyword */ || (heritageClause === null || heritageClause === void 0 ? void 0 : heritageClause.parent.kind) === 256 /* InterfaceDeclaration */;\n }\n function isIdentifierTypeReference(node) {\n return ts.isTypeReferenceNode(node) && ts.isIdentifier(node.typeName);\n }\n ts.isIdentifierTypeReference = isIdentifierTypeReference;\n function arrayIsHomogeneous(array, comparer) {\n if (comparer === void 0) { comparer = ts.equateValues; }\n if (array.length < 2)\n return true;\n var first = array[0];\n for (var i = 1, length_1 = array.length; i < length_1; i++) {\n var target = array[i];\n if (!comparer(first, target))\n return false;\n }\n return true;\n }\n ts.arrayIsHomogeneous = arrayIsHomogeneous;\n /**\n * Bypasses immutability and directly sets the `pos` property of a `TextRange` or `Node`.\n */\n /* @internal */\n function setTextRangePos(range, pos) {\n range.pos = pos;\n return range;\n }\n ts.setTextRangePos = setTextRangePos;\n /**\n * Bypasses immutability and directly sets the `end` property of a `TextRange` or `Node`.\n */\n /* @internal */\n function setTextRangeEnd(range, end) {\n range.end = end;\n return range;\n }\n ts.setTextRangeEnd = setTextRangeEnd;\n /**\n * Bypasses immutability and directly sets the `pos` and `end` properties of a `TextRange` or `Node`.\n */\n /* @internal */\n function setTextRangePosEnd(range, pos, end) {\n return setTextRangeEnd(setTextRangePos(range, pos), end);\n }\n ts.setTextRangePosEnd = setTextRangePosEnd;\n /**\n * Bypasses immutability and directly sets the `pos` and `end` properties of a `TextRange` or `Node` from the\n * provided position and width.\n */\n /* @internal */\n function setTextRangePosWidth(range, pos, width) {\n return setTextRangePosEnd(range, pos, pos + width);\n }\n ts.setTextRangePosWidth = setTextRangePosWidth;\n function setNodeFlags(node, newFlags) {\n if (node) {\n node.flags = newFlags;\n }\n return node;\n }\n ts.setNodeFlags = setNodeFlags;\n function setParent(child, parent) {\n if (child && parent) {\n child.parent = parent;\n }\n return child;\n }\n ts.setParent = setParent;\n function setEachParent(children, parent) {\n if (children) {\n for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {\n var child = children_1[_i];\n setParent(child, parent);\n }\n }\n return children;\n }\n ts.setEachParent = setEachParent;\n function setParentRecursive(rootNode, incremental) {\n if (!rootNode)\n return rootNode;\n ts.forEachChildRecursively(rootNode, ts.isJSDocNode(rootNode) ? bindParentToChildIgnoringJSDoc : bindParentToChild);\n return rootNode;\n function bindParentToChildIgnoringJSDoc(child, parent) {\n if (incremental && child.parent === parent) {\n return \"skip\";\n }\n setParent(child, parent);\n }\n function bindJSDoc(child) {\n if (ts.hasJSDocNodes(child)) {\n for (var _i = 0, _a = child.jsDoc; _i < _a.length; _i++) {\n var doc = _a[_i];\n bindParentToChildIgnoringJSDoc(doc, child);\n ts.forEachChildRecursively(doc, bindParentToChildIgnoringJSDoc);\n }\n }\n }\n function bindParentToChild(child, parent) {\n return bindParentToChildIgnoringJSDoc(child, parent) || bindJSDoc(child);\n }\n }\n ts.setParentRecursive = setParentRecursive;\n function isPackedElement(node) {\n return !ts.isOmittedExpression(node);\n }\n /**\n * Determines whether the provided node is an ArrayLiteralExpression that contains no missing elements.\n */\n function isPackedArrayLiteral(node) {\n return ts.isArrayLiteralExpression(node) && ts.every(node.elements, isPackedElement);\n }\n ts.isPackedArrayLiteral = isPackedArrayLiteral;\n /**\n * Indicates whether the result of an `Expression` will be unused.\n *\n * NOTE: This requires a node with a valid `parent` pointer.\n */\n function expressionResultIsUnused(node) {\n ts.Debug.assertIsDefined(node.parent);\n while (true) {\n var parent = node.parent;\n // walk up parenthesized expressions, but keep a pointer to the top-most parenthesized expression\n if (ts.isParenthesizedExpression(parent)) {\n node = parent;\n continue;\n }\n // result is unused in an expression statement, `void` expression, or the initializer or incrementer of a `for` loop\n if (ts.isExpressionStatement(parent) ||\n ts.isVoidExpression(parent) ||\n ts.isForStatement(parent) && (parent.initializer === node || parent.incrementor === node)) {\n return true;\n }\n if (ts.isCommaListExpression(parent)) {\n // left side of comma is always unused\n if (node !== ts.last(parent.elements))\n return true;\n // right side of comma is unused if parent is unused\n node = parent;\n continue;\n }\n if (ts.isBinaryExpression(parent) && parent.operatorToken.kind === 27 /* CommaToken */) {\n // left side of comma is always unused\n if (node === parent.left)\n return true;\n // right side of comma is unused if parent is unused\n node = parent;\n continue;\n }\n return false;\n }\n }\n ts.expressionResultIsUnused = expressionResultIsUnused;\n function containsIgnoredPath(path) {\n return ts.some(ts.ignoredPaths, function (p) { return ts.stringContains(path, p); });\n }\n ts.containsIgnoredPath = containsIgnoredPath;\n function getContainingNodeArray(node) {\n if (!node.parent)\n return undefined;\n switch (node.kind) {\n case 161 /* TypeParameter */:\n var parent_1 = node.parent;\n return parent_1.kind === 188 /* InferType */ ? undefined : parent_1.typeParameters;\n case 162 /* Parameter */:\n return node.parent.parameters;\n case 197 /* TemplateLiteralTypeSpan */:\n return node.parent.templateSpans;\n case 231 /* TemplateSpan */:\n return node.parent.templateSpans;\n case 163 /* Decorator */:\n return node.parent.decorators;\n case 289 /* HeritageClause */:\n return node.parent.heritageClauses;\n }\n var parent = node.parent;\n if (ts.isJSDocTag(node)) {\n return ts.isJSDocTypeLiteral(node.parent) ? undefined : node.parent.tags;\n }\n switch (parent.kind) {\n case 180 /* TypeLiteral */:\n case 256 /* InterfaceDeclaration */:\n return ts.isTypeElement(node) ? parent.members : undefined;\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n return parent.types;\n case 182 /* TupleType */:\n case 202 /* ArrayLiteralExpression */:\n case 346 /* CommaListExpression */:\n case 267 /* NamedImports */:\n case 271 /* NamedExports */:\n return parent.elements;\n case 203 /* ObjectLiteralExpression */:\n case 284 /* JsxAttributes */:\n return parent.properties;\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n return ts.isTypeNode(node) ? parent.typeArguments :\n parent.expression === node ? undefined :\n parent.arguments;\n case 276 /* JsxElement */:\n case 280 /* JsxFragment */:\n return ts.isJsxChild(node) ? parent.children : undefined;\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n return ts.isTypeNode(node) ? parent.typeArguments : undefined;\n case 233 /* Block */:\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n case 260 /* ModuleBlock */:\n return parent.statements;\n case 261 /* CaseBlock */:\n return parent.clauses;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return ts.isClassElement(node) ? parent.members : undefined;\n case 258 /* EnumDeclaration */:\n return ts.isEnumMember(node) ? parent.members : undefined;\n case 300 /* SourceFile */:\n return parent.statements;\n }\n }\n ts.getContainingNodeArray = getContainingNodeArray;\n function hasContextSensitiveParameters(node) {\n // Functions with type parameters are not context sensitive.\n if (!node.typeParameters) {\n // Functions with any parameters that lack type annotations are context sensitive.\n if (ts.some(node.parameters, function (p) { return !getEffectiveTypeAnnotationNode(p); })) {\n return true;\n }\n if (node.kind !== 212 /* ArrowFunction */) {\n // If the first parameter is not an explicit 'this' parameter, then the function has\n // an implicit 'this' parameter which is subject to contextual typing.\n var parameter = ts.firstOrUndefined(node.parameters);\n if (!(parameter && parameterIsThisKeyword(parameter))) {\n return true;\n }\n }\n }\n return false;\n }\n ts.hasContextSensitiveParameters = hasContextSensitiveParameters;\n /* @internal */\n function isInfinityOrNaNString(name) {\n return name === \"Infinity\" || name === \"-Infinity\" || name === \"NaN\";\n }\n ts.isInfinityOrNaNString = isInfinityOrNaNString;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n /**\n * Creates a `BaseNodeFactory` which can be used to create `Node` instances from the constructors provided by the object allocator.\n */\n function createBaseNodeFactory() {\n // tslint:disable variable-name\n var NodeConstructor;\n var TokenConstructor;\n var IdentifierConstructor;\n var PrivateIdentifierConstructor;\n var SourceFileConstructor;\n // tslint:enable variable-name\n return {\n createBaseSourceFileNode: createBaseSourceFileNode,\n createBaseIdentifierNode: createBaseIdentifierNode,\n createBasePrivateIdentifierNode: createBasePrivateIdentifierNode,\n createBaseTokenNode: createBaseTokenNode,\n createBaseNode: createBaseNode\n };\n function createBaseSourceFileNode(kind) {\n return new (SourceFileConstructor || (SourceFileConstructor = ts.objectAllocator.getSourceFileConstructor()))(kind, /*pos*/ -1, /*end*/ -1);\n }\n function createBaseIdentifierNode(kind) {\n return new (IdentifierConstructor || (IdentifierConstructor = ts.objectAllocator.getIdentifierConstructor()))(kind, /*pos*/ -1, /*end*/ -1);\n }\n function createBasePrivateIdentifierNode(kind) {\n return new (PrivateIdentifierConstructor || (PrivateIdentifierConstructor = ts.objectAllocator.getPrivateIdentifierConstructor()))(kind, /*pos*/ -1, /*end*/ -1);\n }\n function createBaseTokenNode(kind) {\n return new (TokenConstructor || (TokenConstructor = ts.objectAllocator.getTokenConstructor()))(kind, /*pos*/ -1, /*end*/ -1);\n }\n function createBaseNode(kind) {\n return new (NodeConstructor || (NodeConstructor = ts.objectAllocator.getNodeConstructor()))(kind, /*pos*/ -1, /*end*/ -1);\n }\n }\n ts.createBaseNodeFactory = createBaseNodeFactory;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function createParenthesizerRules(factory) {\n var binaryLeftOperandParenthesizerCache;\n var binaryRightOperandParenthesizerCache;\n return {\n getParenthesizeLeftSideOfBinaryForOperator: getParenthesizeLeftSideOfBinaryForOperator,\n getParenthesizeRightSideOfBinaryForOperator: getParenthesizeRightSideOfBinaryForOperator,\n parenthesizeLeftSideOfBinary: parenthesizeLeftSideOfBinary,\n parenthesizeRightSideOfBinary: parenthesizeRightSideOfBinary,\n parenthesizeExpressionOfComputedPropertyName: parenthesizeExpressionOfComputedPropertyName,\n parenthesizeConditionOfConditionalExpression: parenthesizeConditionOfConditionalExpression,\n parenthesizeBranchOfConditionalExpression: parenthesizeBranchOfConditionalExpression,\n parenthesizeExpressionOfExportDefault: parenthesizeExpressionOfExportDefault,\n parenthesizeExpressionOfNew: parenthesizeExpressionOfNew,\n parenthesizeLeftSideOfAccess: parenthesizeLeftSideOfAccess,\n parenthesizeOperandOfPostfixUnary: parenthesizeOperandOfPostfixUnary,\n parenthesizeOperandOfPrefixUnary: parenthesizeOperandOfPrefixUnary,\n parenthesizeExpressionsOfCommaDelimitedList: parenthesizeExpressionsOfCommaDelimitedList,\n parenthesizeExpressionForDisallowedComma: parenthesizeExpressionForDisallowedComma,\n parenthesizeExpressionOfExpressionStatement: parenthesizeExpressionOfExpressionStatement,\n parenthesizeConciseBodyOfArrowFunction: parenthesizeConciseBodyOfArrowFunction,\n parenthesizeMemberOfConditionalType: parenthesizeMemberOfConditionalType,\n parenthesizeMemberOfElementType: parenthesizeMemberOfElementType,\n parenthesizeElementTypeOfArrayType: parenthesizeElementTypeOfArrayType,\n parenthesizeConstituentTypesOfUnionOrIntersectionType: parenthesizeConstituentTypesOfUnionOrIntersectionType,\n parenthesizeTypeArguments: parenthesizeTypeArguments,\n };\n function getParenthesizeLeftSideOfBinaryForOperator(operatorKind) {\n binaryLeftOperandParenthesizerCache || (binaryLeftOperandParenthesizerCache = new ts.Map());\n var parenthesizerRule = binaryLeftOperandParenthesizerCache.get(operatorKind);\n if (!parenthesizerRule) {\n parenthesizerRule = function (node) { return parenthesizeLeftSideOfBinary(operatorKind, node); };\n binaryLeftOperandParenthesizerCache.set(operatorKind, parenthesizerRule);\n }\n return parenthesizerRule;\n }\n function getParenthesizeRightSideOfBinaryForOperator(operatorKind) {\n binaryRightOperandParenthesizerCache || (binaryRightOperandParenthesizerCache = new ts.Map());\n var parenthesizerRule = binaryRightOperandParenthesizerCache.get(operatorKind);\n if (!parenthesizerRule) {\n parenthesizerRule = function (node) { return parenthesizeRightSideOfBinary(operatorKind, /*leftSide*/ undefined, node); };\n binaryRightOperandParenthesizerCache.set(operatorKind, parenthesizerRule);\n }\n return parenthesizerRule;\n }\n /**\n * Determines whether the operand to a BinaryExpression needs to be parenthesized.\n *\n * @param binaryOperator The operator for the BinaryExpression.\n * @param operand The operand for the BinaryExpression.\n * @param isLeftSideOfBinary A value indicating whether the operand is the left side of the\n * BinaryExpression.\n */\n function binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {\n // If the operand has lower precedence, then it needs to be parenthesized to preserve the\n // intent of the expression. For example, if the operand is `a + b` and the operator is\n // `*`, then we need to parenthesize the operand to preserve the intended order of\n // operations: `(a + b) * x`.\n //\n // If the operand has higher precedence, then it does not need to be parenthesized. For\n // example, if the operand is `a * b` and the operator is `+`, then we do not need to\n // parenthesize to preserve the intended order of operations: `a * b + x`.\n //\n // If the operand has the same precedence, then we need to check the associativity of\n // the operator based on whether this is the left or right operand of the expression.\n //\n // For example, if `a / d` is on the right of operator `*`, we need to parenthesize\n // to preserve the intended order of operations: `x * (a / d)`\n //\n // If `a ** d` is on the left of operator `**`, we need to parenthesize to preserve\n // the intended order of operations: `(a ** b) ** c`\n var binaryOperatorPrecedence = ts.getOperatorPrecedence(219 /* BinaryExpression */, binaryOperator);\n var binaryOperatorAssociativity = ts.getOperatorAssociativity(219 /* BinaryExpression */, binaryOperator);\n var emittedOperand = ts.skipPartiallyEmittedExpressions(operand);\n if (!isLeftSideOfBinary && operand.kind === 212 /* ArrowFunction */ && binaryOperatorPrecedence > 3 /* Assignment */) {\n // We need to parenthesize arrow functions on the right side to avoid it being\n // parsed as parenthesized expression: `a && (() => {})`\n return true;\n }\n var operandPrecedence = ts.getExpressionPrecedence(emittedOperand);\n switch (ts.compareValues(operandPrecedence, binaryOperatorPrecedence)) {\n case -1 /* LessThan */:\n // If the operand is the right side of a right-associative binary operation\n // and is a yield expression, then we do not need parentheses.\n if (!isLeftSideOfBinary\n && binaryOperatorAssociativity === 1 /* Right */\n && operand.kind === 222 /* YieldExpression */) {\n return false;\n }\n return true;\n case 1 /* GreaterThan */:\n return false;\n case 0 /* EqualTo */:\n if (isLeftSideOfBinary) {\n // No need to parenthesize the left operand when the binary operator is\n // left associative:\n // (a*b)/x -> a*b/x\n // (a**b)/x -> a**b/x\n //\n // Parentheses are needed for the left operand when the binary operator is\n // right associative:\n // (a/b)**x -> (a/b)**x\n // (a**b)**x -> (a**b)**x\n return binaryOperatorAssociativity === 1 /* Right */;\n }\n else {\n if (ts.isBinaryExpression(emittedOperand)\n && emittedOperand.operatorToken.kind === binaryOperator) {\n // No need to parenthesize the right operand when the binary operator and\n // operand are the same and one of the following:\n // x*(a*b) => x*a*b\n // x|(a|b) => x|a|b\n // x&(a&b) => x&a&b\n // x^(a^b) => x^a^b\n if (operatorHasAssociativeProperty(binaryOperator)) {\n return false;\n }\n // No need to parenthesize the right operand when the binary operator\n // is plus (+) if both the left and right operands consist solely of either\n // literals of the same kind or binary plus (+) expressions for literals of\n // the same kind (recursively).\n // \"a\"+(1+2) => \"a\"+(1+2)\n // \"a\"+(\"b\"+\"c\") => \"a\"+\"b\"+\"c\"\n if (binaryOperator === 39 /* PlusToken */) {\n var leftKind = leftOperand ? getLiteralKindOfBinaryPlusOperand(leftOperand) : 0 /* Unknown */;\n if (ts.isLiteralKind(leftKind) && leftKind === getLiteralKindOfBinaryPlusOperand(emittedOperand)) {\n return false;\n }\n }\n }\n // No need to parenthesize the right operand when the operand is right\n // associative:\n // x/(a**b) -> x/a**b\n // x**(a**b) -> x**a**b\n //\n // Parentheses are needed for the right operand when the operand is left\n // associative:\n // x/(a*b) -> x/(a*b)\n // x**(a/b) -> x**(a/b)\n var operandAssociativity = ts.getExpressionAssociativity(emittedOperand);\n return operandAssociativity === 0 /* Left */;\n }\n }\n }\n /**\n * Determines whether a binary operator is mathematically associative.\n *\n * @param binaryOperator The binary operator.\n */\n function operatorHasAssociativeProperty(binaryOperator) {\n // The following operators are associative in JavaScript:\n // (a*b)*c -> a*(b*c) -> a*b*c\n // (a|b)|c -> a|(b|c) -> a|b|c\n // (a&b)&c -> a&(b&c) -> a&b&c\n // (a^b)^c -> a^(b^c) -> a^b^c\n //\n // While addition is associative in mathematics, JavaScript's `+` is not\n // guaranteed to be associative as it is overloaded with string concatenation.\n return binaryOperator === 41 /* AsteriskToken */\n || binaryOperator === 51 /* BarToken */\n || binaryOperator === 50 /* AmpersandToken */\n || binaryOperator === 52 /* CaretToken */;\n }\n /**\n * This function determines whether an expression consists of a homogeneous set of\n * literal expressions or binary plus expressions that all share the same literal kind.\n * It is used to determine whether the right-hand operand of a binary plus expression can be\n * emitted without parentheses.\n */\n function getLiteralKindOfBinaryPlusOperand(node) {\n node = ts.skipPartiallyEmittedExpressions(node);\n if (ts.isLiteralKind(node.kind)) {\n return node.kind;\n }\n if (node.kind === 219 /* BinaryExpression */ && node.operatorToken.kind === 39 /* PlusToken */) {\n if (node.cachedLiteralKind !== undefined) {\n return node.cachedLiteralKind;\n }\n var leftKind = getLiteralKindOfBinaryPlusOperand(node.left);\n var literalKind = ts.isLiteralKind(leftKind)\n && leftKind === getLiteralKindOfBinaryPlusOperand(node.right)\n ? leftKind\n : 0 /* Unknown */;\n node.cachedLiteralKind = literalKind;\n return literalKind;\n }\n return 0 /* Unknown */;\n }\n /**\n * Wraps the operand to a BinaryExpression in parentheses if they are needed to preserve the intended\n * order of operations.\n *\n * @param binaryOperator The operator for the BinaryExpression.\n * @param operand The operand for the BinaryExpression.\n * @param isLeftSideOfBinary A value indicating whether the operand is the left side of the\n * BinaryExpression.\n */\n function parenthesizeBinaryOperand(binaryOperator, operand, isLeftSideOfBinary, leftOperand) {\n var skipped = ts.skipPartiallyEmittedExpressions(operand);\n // If the resulting expression is already parenthesized, we do not need to do any further processing.\n if (skipped.kind === 210 /* ParenthesizedExpression */) {\n return operand;\n }\n return binaryOperandNeedsParentheses(binaryOperator, operand, isLeftSideOfBinary, leftOperand)\n ? factory.createParenthesizedExpression(operand)\n : operand;\n }\n function parenthesizeLeftSideOfBinary(binaryOperator, leftSide) {\n return parenthesizeBinaryOperand(binaryOperator, leftSide, /*isLeftSideOfBinary*/ true);\n }\n function parenthesizeRightSideOfBinary(binaryOperator, leftSide, rightSide) {\n return parenthesizeBinaryOperand(binaryOperator, rightSide, /*isLeftSideOfBinary*/ false, leftSide);\n }\n function parenthesizeExpressionOfComputedPropertyName(expression) {\n return ts.isCommaSequence(expression) ? factory.createParenthesizedExpression(expression) : expression;\n }\n function parenthesizeConditionOfConditionalExpression(condition) {\n var conditionalPrecedence = ts.getOperatorPrecedence(220 /* ConditionalExpression */, 57 /* QuestionToken */);\n var emittedCondition = ts.skipPartiallyEmittedExpressions(condition);\n var conditionPrecedence = ts.getExpressionPrecedence(emittedCondition);\n if (ts.compareValues(conditionPrecedence, conditionalPrecedence) !== 1 /* GreaterThan */) {\n return factory.createParenthesizedExpression(condition);\n }\n return condition;\n }\n function parenthesizeBranchOfConditionalExpression(branch) {\n // per ES grammar both 'whenTrue' and 'whenFalse' parts of conditional expression are assignment expressions\n // so in case when comma expression is introduced as a part of previous transformations\n // if should be wrapped in parens since comma operator has the lowest precedence\n var emittedExpression = ts.skipPartiallyEmittedExpressions(branch);\n return ts.isCommaSequence(emittedExpression)\n ? factory.createParenthesizedExpression(branch)\n : branch;\n }\n /**\n * [Per the spec](https://tc39.github.io/ecma262/#prod-ExportDeclaration), `export default` accepts _AssigmentExpression_ but\n * has a lookahead restriction for `function`, `async function`, and `class`.\n *\n * Basically, that means we need to parenthesize in the following cases:\n *\n * - BinaryExpression of CommaToken\n * - CommaList (synthetic list of multiple comma expressions)\n * - FunctionExpression\n * - ClassExpression\n */\n function parenthesizeExpressionOfExportDefault(expression) {\n var check = ts.skipPartiallyEmittedExpressions(expression);\n var needsParens = ts.isCommaSequence(check);\n if (!needsParens) {\n switch (ts.getLeftmostExpression(check, /*stopAtCallExpression*/ false).kind) {\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n needsParens = true;\n }\n }\n return needsParens ? factory.createParenthesizedExpression(expression) : expression;\n }\n /**\n * Wraps an expression in parentheses if it is needed in order to use the expression\n * as the expression of a `NewExpression` node.\n */\n function parenthesizeExpressionOfNew(expression) {\n var leftmostExpr = ts.getLeftmostExpression(expression, /*stopAtCallExpressions*/ true);\n switch (leftmostExpr.kind) {\n case 206 /* CallExpression */:\n return factory.createParenthesizedExpression(expression);\n case 207 /* NewExpression */:\n return !leftmostExpr.arguments\n ? factory.createParenthesizedExpression(expression)\n : expression; // TODO(rbuckton): Verify this assertion holds\n }\n return parenthesizeLeftSideOfAccess(expression);\n }\n /**\n * Wraps an expression in parentheses if it is needed in order to use the expression for\n * property or element access.\n */\n function parenthesizeLeftSideOfAccess(expression) {\n // isLeftHandSideExpression is almost the correct criterion for when it is not necessary\n // to parenthesize the expression before a dot. The known exception is:\n //\n // NewExpression:\n // new C.x -> not the same as (new C).x\n //\n var emittedExpression = ts.skipPartiallyEmittedExpressions(expression);\n if (ts.isLeftHandSideExpression(emittedExpression)\n && (emittedExpression.kind !== 207 /* NewExpression */ || emittedExpression.arguments)) {\n // TODO(rbuckton): Verify whether this assertion holds.\n return expression;\n }\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n return ts.setTextRange(factory.createParenthesizedExpression(expression), expression);\n }\n function parenthesizeOperandOfPostfixUnary(operand) {\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n return ts.isLeftHandSideExpression(operand) ? operand : ts.setTextRange(factory.createParenthesizedExpression(operand), operand);\n }\n function parenthesizeOperandOfPrefixUnary(operand) {\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n return ts.isUnaryExpression(operand) ? operand : ts.setTextRange(factory.createParenthesizedExpression(operand), operand);\n }\n function parenthesizeExpressionsOfCommaDelimitedList(elements) {\n var result = ts.sameMap(elements, parenthesizeExpressionForDisallowedComma);\n return ts.setTextRange(factory.createNodeArray(result, elements.hasTrailingComma), elements);\n }\n function parenthesizeExpressionForDisallowedComma(expression) {\n var emittedExpression = ts.skipPartiallyEmittedExpressions(expression);\n var expressionPrecedence = ts.getExpressionPrecedence(emittedExpression);\n var commaPrecedence = ts.getOperatorPrecedence(219 /* BinaryExpression */, 27 /* CommaToken */);\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n return expressionPrecedence > commaPrecedence ? expression : ts.setTextRange(factory.createParenthesizedExpression(expression), expression);\n }\n function parenthesizeExpressionOfExpressionStatement(expression) {\n var emittedExpression = ts.skipPartiallyEmittedExpressions(expression);\n if (ts.isCallExpression(emittedExpression)) {\n var callee = emittedExpression.expression;\n var kind = ts.skipPartiallyEmittedExpressions(callee).kind;\n if (kind === 211 /* FunctionExpression */ || kind === 212 /* ArrowFunction */) {\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n var updated = factory.updateCallExpression(emittedExpression, ts.setTextRange(factory.createParenthesizedExpression(callee), callee), emittedExpression.typeArguments, emittedExpression.arguments);\n return factory.restoreOuterExpressions(expression, updated, 8 /* PartiallyEmittedExpressions */);\n }\n }\n var leftmostExpressionKind = ts.getLeftmostExpression(emittedExpression, /*stopAtCallExpressions*/ false).kind;\n if (leftmostExpressionKind === 203 /* ObjectLiteralExpression */ || leftmostExpressionKind === 211 /* FunctionExpression */) {\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n return ts.setTextRange(factory.createParenthesizedExpression(expression), expression);\n }\n return expression;\n }\n function parenthesizeConciseBodyOfArrowFunction(body) {\n if (!ts.isBlock(body) && (ts.isCommaSequence(body) || ts.getLeftmostExpression(body, /*stopAtCallExpressions*/ false).kind === 203 /* ObjectLiteralExpression */)) {\n // TODO(rbuckton): Verifiy whether `setTextRange` is needed.\n return ts.setTextRange(factory.createParenthesizedExpression(body), body);\n }\n return body;\n }\n function parenthesizeMemberOfConditionalType(member) {\n return member.kind === 187 /* ConditionalType */ ? factory.createParenthesizedType(member) : member;\n }\n function parenthesizeMemberOfElementType(member) {\n switch (member.kind) {\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n return factory.createParenthesizedType(member);\n }\n return parenthesizeMemberOfConditionalType(member);\n }\n function parenthesizeElementTypeOfArrayType(member) {\n switch (member.kind) {\n case 179 /* TypeQuery */:\n case 191 /* TypeOperator */:\n case 188 /* InferType */:\n return factory.createParenthesizedType(member);\n }\n return parenthesizeMemberOfElementType(member);\n }\n function parenthesizeConstituentTypesOfUnionOrIntersectionType(members) {\n return factory.createNodeArray(ts.sameMap(members, parenthesizeMemberOfElementType));\n }\n function parenthesizeOrdinalTypeArgument(node, i) {\n return i === 0 && ts.isFunctionOrConstructorTypeNode(node) && node.typeParameters ? factory.createParenthesizedType(node) : node;\n }\n function parenthesizeTypeArguments(typeArguments) {\n if (ts.some(typeArguments)) {\n return factory.createNodeArray(ts.sameMap(typeArguments, parenthesizeOrdinalTypeArgument));\n }\n }\n }\n ts.createParenthesizerRules = createParenthesizerRules;\n ts.nullParenthesizerRules = {\n getParenthesizeLeftSideOfBinaryForOperator: function (_) { return ts.identity; },\n getParenthesizeRightSideOfBinaryForOperator: function (_) { return ts.identity; },\n parenthesizeLeftSideOfBinary: function (_binaryOperator, leftSide) { return leftSide; },\n parenthesizeRightSideOfBinary: function (_binaryOperator, _leftSide, rightSide) { return rightSide; },\n parenthesizeExpressionOfComputedPropertyName: ts.identity,\n parenthesizeConditionOfConditionalExpression: ts.identity,\n parenthesizeBranchOfConditionalExpression: ts.identity,\n parenthesizeExpressionOfExportDefault: ts.identity,\n parenthesizeExpressionOfNew: function (expression) { return ts.cast(expression, ts.isLeftHandSideExpression); },\n parenthesizeLeftSideOfAccess: function (expression) { return ts.cast(expression, ts.isLeftHandSideExpression); },\n parenthesizeOperandOfPostfixUnary: function (operand) { return ts.cast(operand, ts.isLeftHandSideExpression); },\n parenthesizeOperandOfPrefixUnary: function (operand) { return ts.cast(operand, ts.isUnaryExpression); },\n parenthesizeExpressionsOfCommaDelimitedList: function (nodes) { return ts.cast(nodes, ts.isNodeArray); },\n parenthesizeExpressionForDisallowedComma: ts.identity,\n parenthesizeExpressionOfExpressionStatement: ts.identity,\n parenthesizeConciseBodyOfArrowFunction: ts.identity,\n parenthesizeMemberOfConditionalType: ts.identity,\n parenthesizeMemberOfElementType: ts.identity,\n parenthesizeElementTypeOfArrayType: ts.identity,\n parenthesizeConstituentTypesOfUnionOrIntersectionType: function (nodes) { return ts.cast(nodes, ts.isNodeArray); },\n parenthesizeTypeArguments: function (nodes) { return nodes && ts.cast(nodes, ts.isNodeArray); },\n };\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function createNodeConverters(factory) {\n return {\n convertToFunctionBlock: convertToFunctionBlock,\n convertToFunctionExpression: convertToFunctionExpression,\n convertToArrayAssignmentElement: convertToArrayAssignmentElement,\n convertToObjectAssignmentElement: convertToObjectAssignmentElement,\n convertToAssignmentPattern: convertToAssignmentPattern,\n convertToObjectAssignmentPattern: convertToObjectAssignmentPattern,\n convertToArrayAssignmentPattern: convertToArrayAssignmentPattern,\n convertToAssignmentElementTarget: convertToAssignmentElementTarget,\n };\n function convertToFunctionBlock(node, multiLine) {\n if (ts.isBlock(node))\n return node;\n var returnStatement = factory.createReturnStatement(node);\n ts.setTextRange(returnStatement, node);\n var body = factory.createBlock([returnStatement], multiLine);\n ts.setTextRange(body, node);\n return body;\n }\n function convertToFunctionExpression(node) {\n if (!node.body)\n return ts.Debug.fail(\"Cannot convert a FunctionDeclaration without a body\");\n var updated = factory.createFunctionExpression(node.modifiers, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body);\n ts.setOriginalNode(updated, node);\n ts.setTextRange(updated, node);\n if (ts.getStartsOnNewLine(node)) {\n ts.setStartsOnNewLine(updated, /*newLine*/ true);\n }\n return updated;\n }\n function convertToArrayAssignmentElement(element) {\n if (ts.isBindingElement(element)) {\n if (element.dotDotDotToken) {\n ts.Debug.assertNode(element.name, ts.isIdentifier);\n return ts.setOriginalNode(ts.setTextRange(factory.createSpreadElement(element.name), element), element);\n }\n var expression = convertToAssignmentElementTarget(element.name);\n return element.initializer\n ? ts.setOriginalNode(ts.setTextRange(factory.createAssignment(expression, element.initializer), element), element)\n : expression;\n }\n return ts.cast(element, ts.isExpression);\n }\n function convertToObjectAssignmentElement(element) {\n if (ts.isBindingElement(element)) {\n if (element.dotDotDotToken) {\n ts.Debug.assertNode(element.name, ts.isIdentifier);\n return ts.setOriginalNode(ts.setTextRange(factory.createSpreadAssignment(element.name), element), element);\n }\n if (element.propertyName) {\n var expression = convertToAssignmentElementTarget(element.name);\n return ts.setOriginalNode(ts.setTextRange(factory.createPropertyAssignment(element.propertyName, element.initializer ? factory.createAssignment(expression, element.initializer) : expression), element), element);\n }\n ts.Debug.assertNode(element.name, ts.isIdentifier);\n return ts.setOriginalNode(ts.setTextRange(factory.createShorthandPropertyAssignment(element.name, element.initializer), element), element);\n }\n return ts.cast(element, ts.isObjectLiteralElementLike);\n }\n function convertToAssignmentPattern(node) {\n switch (node.kind) {\n case 200 /* ArrayBindingPattern */:\n case 202 /* ArrayLiteralExpression */:\n return convertToArrayAssignmentPattern(node);\n case 199 /* ObjectBindingPattern */:\n case 203 /* ObjectLiteralExpression */:\n return convertToObjectAssignmentPattern(node);\n }\n }\n function convertToObjectAssignmentPattern(node) {\n if (ts.isObjectBindingPattern(node)) {\n return ts.setOriginalNode(ts.setTextRange(factory.createObjectLiteralExpression(ts.map(node.elements, convertToObjectAssignmentElement)), node), node);\n }\n return ts.cast(node, ts.isObjectLiteralExpression);\n }\n function convertToArrayAssignmentPattern(node) {\n if (ts.isArrayBindingPattern(node)) {\n return ts.setOriginalNode(ts.setTextRange(factory.createArrayLiteralExpression(ts.map(node.elements, convertToArrayAssignmentElement)), node), node);\n }\n return ts.cast(node, ts.isArrayLiteralExpression);\n }\n function convertToAssignmentElementTarget(node) {\n if (ts.isBindingPattern(node)) {\n return convertToAssignmentPattern(node);\n }\n return ts.cast(node, ts.isExpression);\n }\n }\n ts.createNodeConverters = createNodeConverters;\n ts.nullNodeConverters = {\n convertToFunctionBlock: ts.notImplemented,\n convertToFunctionExpression: ts.notImplemented,\n convertToArrayAssignmentElement: ts.notImplemented,\n convertToObjectAssignmentElement: ts.notImplemented,\n convertToAssignmentPattern: ts.notImplemented,\n convertToObjectAssignmentPattern: ts.notImplemented,\n convertToArrayAssignmentPattern: ts.notImplemented,\n convertToAssignmentElementTarget: ts.notImplemented,\n };\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var nextAutoGenerateId = 0;\n /* @internal */\n var NodeFactoryFlags;\n (function (NodeFactoryFlags) {\n NodeFactoryFlags[NodeFactoryFlags[\"None\"] = 0] = \"None\";\n // Disables the parenthesizer rules for the factory.\n NodeFactoryFlags[NodeFactoryFlags[\"NoParenthesizerRules\"] = 1] = \"NoParenthesizerRules\";\n // Disables the node converters for the factory.\n NodeFactoryFlags[NodeFactoryFlags[\"NoNodeConverters\"] = 2] = \"NoNodeConverters\";\n // Ensures new `PropertyAccessExpression` nodes are created with the `NoIndentation` emit flag set.\n NodeFactoryFlags[NodeFactoryFlags[\"NoIndentationOnFreshPropertyAccess\"] = 4] = \"NoIndentationOnFreshPropertyAccess\";\n // Do not set an `original` pointer when updating a node.\n NodeFactoryFlags[NodeFactoryFlags[\"NoOriginalNode\"] = 8] = \"NoOriginalNode\";\n })(NodeFactoryFlags = ts.NodeFactoryFlags || (ts.NodeFactoryFlags = {}));\n /**\n * Creates a `NodeFactory` that can be used to create and update a syntax tree.\n * @param flags Flags that control factory behavior.\n * @param baseFactory A `BaseNodeFactory` used to create the base `Node` objects.\n */\n /* @internal */\n function createNodeFactory(flags, baseFactory) {\n var update = flags & 8 /* NoOriginalNode */ ? updateWithoutOriginal : updateWithOriginal;\n // Lazily load the parenthesizer, node converters, and some factory methods until they are used.\n var parenthesizerRules = ts.memoize(function () { return flags & 1 /* NoParenthesizerRules */ ? ts.nullParenthesizerRules : ts.createParenthesizerRules(factory); });\n var converters = ts.memoize(function () { return flags & 2 /* NoNodeConverters */ ? ts.nullNodeConverters : ts.createNodeConverters(factory); });\n // lazy initializaton of common operator factories\n var getBinaryCreateFunction = ts.memoizeOne(function (operator) { return function (left, right) { return createBinaryExpression(left, operator, right); }; });\n var getPrefixUnaryCreateFunction = ts.memoizeOne(function (operator) { return function (operand) { return createPrefixUnaryExpression(operator, operand); }; });\n var getPostfixUnaryCreateFunction = ts.memoizeOne(function (operator) { return function (operand) { return createPostfixUnaryExpression(operand, operator); }; });\n var getJSDocPrimaryTypeCreateFunction = ts.memoizeOne(function (kind) { return function () { return createJSDocPrimaryTypeWorker(kind); }; });\n var getJSDocUnaryTypeCreateFunction = ts.memoizeOne(function (kind) { return function (type) { return createJSDocUnaryTypeWorker(kind, type); }; });\n var getJSDocUnaryTypeUpdateFunction = ts.memoizeOne(function (kind) { return function (node, type) { return updateJSDocUnaryTypeWorker(kind, node, type); }; });\n var getJSDocSimpleTagCreateFunction = ts.memoizeOne(function (kind) { return function (tagName, comment) { return createJSDocSimpleTagWorker(kind, tagName, comment); }; });\n var getJSDocSimpleTagUpdateFunction = ts.memoizeOne(function (kind) { return function (node, tagName, comment) { return updateJSDocSimpleTagWorker(kind, node, tagName, comment); }; });\n var getJSDocTypeLikeTagCreateFunction = ts.memoizeOne(function (kind) { return function (tagName, typeExpression, comment) { return createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment); }; });\n var getJSDocTypeLikeTagUpdateFunction = ts.memoizeOne(function (kind) { return function (node, tagName, typeExpression, comment) { return updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment); }; });\n var factory = {\n get parenthesizer() { return parenthesizerRules(); },\n get converters() { return converters(); },\n createNodeArray: createNodeArray,\n createNumericLiteral: createNumericLiteral,\n createBigIntLiteral: createBigIntLiteral,\n createStringLiteral: createStringLiteral,\n createStringLiteralFromNode: createStringLiteralFromNode,\n createRegularExpressionLiteral: createRegularExpressionLiteral,\n createLiteralLikeNode: createLiteralLikeNode,\n createIdentifier: createIdentifier,\n updateIdentifier: updateIdentifier,\n createTempVariable: createTempVariable,\n createLoopVariable: createLoopVariable,\n createUniqueName: createUniqueName,\n getGeneratedNameForNode: getGeneratedNameForNode,\n createPrivateIdentifier: createPrivateIdentifier,\n createToken: createToken,\n createSuper: createSuper,\n createThis: createThis,\n createNull: createNull,\n createTrue: createTrue,\n createFalse: createFalse,\n createModifier: createModifier,\n createModifiersFromModifierFlags: createModifiersFromModifierFlags,\n createQualifiedName: createQualifiedName,\n updateQualifiedName: updateQualifiedName,\n createComputedPropertyName: createComputedPropertyName,\n updateComputedPropertyName: updateComputedPropertyName,\n createTypeParameterDeclaration: createTypeParameterDeclaration,\n updateTypeParameterDeclaration: updateTypeParameterDeclaration,\n createParameterDeclaration: createParameterDeclaration,\n updateParameterDeclaration: updateParameterDeclaration,\n createDecorator: createDecorator,\n updateDecorator: updateDecorator,\n createPropertySignature: createPropertySignature,\n updatePropertySignature: updatePropertySignature,\n createPropertyDeclaration: createPropertyDeclaration,\n updatePropertyDeclaration: updatePropertyDeclaration,\n createMethodSignature: createMethodSignature,\n updateMethodSignature: updateMethodSignature,\n createMethodDeclaration: createMethodDeclaration,\n updateMethodDeclaration: updateMethodDeclaration,\n createConstructorDeclaration: createConstructorDeclaration,\n updateConstructorDeclaration: updateConstructorDeclaration,\n createGetAccessorDeclaration: createGetAccessorDeclaration,\n updateGetAccessorDeclaration: updateGetAccessorDeclaration,\n createSetAccessorDeclaration: createSetAccessorDeclaration,\n updateSetAccessorDeclaration: updateSetAccessorDeclaration,\n createCallSignature: createCallSignature,\n updateCallSignature: updateCallSignature,\n createConstructSignature: createConstructSignature,\n updateConstructSignature: updateConstructSignature,\n createIndexSignature: createIndexSignature,\n updateIndexSignature: updateIndexSignature,\n createClassStaticBlockDeclaration: createClassStaticBlockDeclaration,\n updateClassStaticBlockDeclaration: updateClassStaticBlockDeclaration,\n createTemplateLiteralTypeSpan: createTemplateLiteralTypeSpan,\n updateTemplateLiteralTypeSpan: updateTemplateLiteralTypeSpan,\n createKeywordTypeNode: createKeywordTypeNode,\n createTypePredicateNode: createTypePredicateNode,\n updateTypePredicateNode: updateTypePredicateNode,\n createTypeReferenceNode: createTypeReferenceNode,\n updateTypeReferenceNode: updateTypeReferenceNode,\n createFunctionTypeNode: createFunctionTypeNode,\n updateFunctionTypeNode: updateFunctionTypeNode,\n createConstructorTypeNode: createConstructorTypeNode,\n updateConstructorTypeNode: updateConstructorTypeNode,\n createTypeQueryNode: createTypeQueryNode,\n updateTypeQueryNode: updateTypeQueryNode,\n createTypeLiteralNode: createTypeLiteralNode,\n updateTypeLiteralNode: updateTypeLiteralNode,\n createArrayTypeNode: createArrayTypeNode,\n updateArrayTypeNode: updateArrayTypeNode,\n createTupleTypeNode: createTupleTypeNode,\n updateTupleTypeNode: updateTupleTypeNode,\n createNamedTupleMember: createNamedTupleMember,\n updateNamedTupleMember: updateNamedTupleMember,\n createOptionalTypeNode: createOptionalTypeNode,\n updateOptionalTypeNode: updateOptionalTypeNode,\n createRestTypeNode: createRestTypeNode,\n updateRestTypeNode: updateRestTypeNode,\n createUnionTypeNode: createUnionTypeNode,\n updateUnionTypeNode: updateUnionTypeNode,\n createIntersectionTypeNode: createIntersectionTypeNode,\n updateIntersectionTypeNode: updateIntersectionTypeNode,\n createConditionalTypeNode: createConditionalTypeNode,\n updateConditionalTypeNode: updateConditionalTypeNode,\n createInferTypeNode: createInferTypeNode,\n updateInferTypeNode: updateInferTypeNode,\n createImportTypeNode: createImportTypeNode,\n updateImportTypeNode: updateImportTypeNode,\n createParenthesizedType: createParenthesizedType,\n updateParenthesizedType: updateParenthesizedType,\n createThisTypeNode: createThisTypeNode,\n createTypeOperatorNode: createTypeOperatorNode,\n updateTypeOperatorNode: updateTypeOperatorNode,\n createIndexedAccessTypeNode: createIndexedAccessTypeNode,\n updateIndexedAccessTypeNode: updateIndexedAccessTypeNode,\n createMappedTypeNode: createMappedTypeNode,\n updateMappedTypeNode: updateMappedTypeNode,\n createLiteralTypeNode: createLiteralTypeNode,\n updateLiteralTypeNode: updateLiteralTypeNode,\n createTemplateLiteralType: createTemplateLiteralType,\n updateTemplateLiteralType: updateTemplateLiteralType,\n createObjectBindingPattern: createObjectBindingPattern,\n updateObjectBindingPattern: updateObjectBindingPattern,\n createArrayBindingPattern: createArrayBindingPattern,\n updateArrayBindingPattern: updateArrayBindingPattern,\n createBindingElement: createBindingElement,\n updateBindingElement: updateBindingElement,\n createArrayLiteralExpression: createArrayLiteralExpression,\n updateArrayLiteralExpression: updateArrayLiteralExpression,\n createObjectLiteralExpression: createObjectLiteralExpression,\n updateObjectLiteralExpression: updateObjectLiteralExpression,\n createPropertyAccessExpression: flags & 4 /* NoIndentationOnFreshPropertyAccess */ ?\n function (expression, name) { return ts.setEmitFlags(createPropertyAccessExpression(expression, name), 131072 /* NoIndentation */); } :\n createPropertyAccessExpression,\n updatePropertyAccessExpression: updatePropertyAccessExpression,\n createPropertyAccessChain: flags & 4 /* NoIndentationOnFreshPropertyAccess */ ?\n function (expression, questionDotToken, name) { return ts.setEmitFlags(createPropertyAccessChain(expression, questionDotToken, name), 131072 /* NoIndentation */); } :\n createPropertyAccessChain,\n updatePropertyAccessChain: updatePropertyAccessChain,\n createElementAccessExpression: createElementAccessExpression,\n updateElementAccessExpression: updateElementAccessExpression,\n createElementAccessChain: createElementAccessChain,\n updateElementAccessChain: updateElementAccessChain,\n createCallExpression: createCallExpression,\n updateCallExpression: updateCallExpression,\n createCallChain: createCallChain,\n updateCallChain: updateCallChain,\n createNewExpression: createNewExpression,\n updateNewExpression: updateNewExpression,\n createTaggedTemplateExpression: createTaggedTemplateExpression,\n updateTaggedTemplateExpression: updateTaggedTemplateExpression,\n createTypeAssertion: createTypeAssertion,\n updateTypeAssertion: updateTypeAssertion,\n createParenthesizedExpression: createParenthesizedExpression,\n updateParenthesizedExpression: updateParenthesizedExpression,\n createFunctionExpression: createFunctionExpression,\n updateFunctionExpression: updateFunctionExpression,\n createArrowFunction: createArrowFunction,\n updateArrowFunction: updateArrowFunction,\n createDeleteExpression: createDeleteExpression,\n updateDeleteExpression: updateDeleteExpression,\n createTypeOfExpression: createTypeOfExpression,\n updateTypeOfExpression: updateTypeOfExpression,\n createVoidExpression: createVoidExpression,\n updateVoidExpression: updateVoidExpression,\n createAwaitExpression: createAwaitExpression,\n updateAwaitExpression: updateAwaitExpression,\n createPrefixUnaryExpression: createPrefixUnaryExpression,\n updatePrefixUnaryExpression: updatePrefixUnaryExpression,\n createPostfixUnaryExpression: createPostfixUnaryExpression,\n updatePostfixUnaryExpression: updatePostfixUnaryExpression,\n createBinaryExpression: createBinaryExpression,\n updateBinaryExpression: updateBinaryExpression,\n createConditionalExpression: createConditionalExpression,\n updateConditionalExpression: updateConditionalExpression,\n createTemplateExpression: createTemplateExpression,\n updateTemplateExpression: updateTemplateExpression,\n createTemplateHead: createTemplateHead,\n createTemplateMiddle: createTemplateMiddle,\n createTemplateTail: createTemplateTail,\n createNoSubstitutionTemplateLiteral: createNoSubstitutionTemplateLiteral,\n createTemplateLiteralLikeNode: createTemplateLiteralLikeNode,\n createYieldExpression: createYieldExpression,\n updateYieldExpression: updateYieldExpression,\n createSpreadElement: createSpreadElement,\n updateSpreadElement: updateSpreadElement,\n createClassExpression: createClassExpression,\n updateClassExpression: updateClassExpression,\n createOmittedExpression: createOmittedExpression,\n createExpressionWithTypeArguments: createExpressionWithTypeArguments,\n updateExpressionWithTypeArguments: updateExpressionWithTypeArguments,\n createAsExpression: createAsExpression,\n updateAsExpression: updateAsExpression,\n createNonNullExpression: createNonNullExpression,\n updateNonNullExpression: updateNonNullExpression,\n createNonNullChain: createNonNullChain,\n updateNonNullChain: updateNonNullChain,\n createMetaProperty: createMetaProperty,\n updateMetaProperty: updateMetaProperty,\n createTemplateSpan: createTemplateSpan,\n updateTemplateSpan: updateTemplateSpan,\n createSemicolonClassElement: createSemicolonClassElement,\n createBlock: createBlock,\n updateBlock: updateBlock,\n createVariableStatement: createVariableStatement,\n updateVariableStatement: updateVariableStatement,\n createEmptyStatement: createEmptyStatement,\n createExpressionStatement: createExpressionStatement,\n updateExpressionStatement: updateExpressionStatement,\n createIfStatement: createIfStatement,\n updateIfStatement: updateIfStatement,\n createDoStatement: createDoStatement,\n updateDoStatement: updateDoStatement,\n createWhileStatement: createWhileStatement,\n updateWhileStatement: updateWhileStatement,\n createForStatement: createForStatement,\n updateForStatement: updateForStatement,\n createForInStatement: createForInStatement,\n updateForInStatement: updateForInStatement,\n createForOfStatement: createForOfStatement,\n updateForOfStatement: updateForOfStatement,\n createContinueStatement: createContinueStatement,\n updateContinueStatement: updateContinueStatement,\n createBreakStatement: createBreakStatement,\n updateBreakStatement: updateBreakStatement,\n createReturnStatement: createReturnStatement,\n updateReturnStatement: updateReturnStatement,\n createWithStatement: createWithStatement,\n updateWithStatement: updateWithStatement,\n createSwitchStatement: createSwitchStatement,\n updateSwitchStatement: updateSwitchStatement,\n createLabeledStatement: createLabeledStatement,\n updateLabeledStatement: updateLabeledStatement,\n createThrowStatement: createThrowStatement,\n updateThrowStatement: updateThrowStatement,\n createTryStatement: createTryStatement,\n updateTryStatement: updateTryStatement,\n createDebuggerStatement: createDebuggerStatement,\n createVariableDeclaration: createVariableDeclaration,\n updateVariableDeclaration: updateVariableDeclaration,\n createVariableDeclarationList: createVariableDeclarationList,\n updateVariableDeclarationList: updateVariableDeclarationList,\n createFunctionDeclaration: createFunctionDeclaration,\n updateFunctionDeclaration: updateFunctionDeclaration,\n createClassDeclaration: createClassDeclaration,\n updateClassDeclaration: updateClassDeclaration,\n createInterfaceDeclaration: createInterfaceDeclaration,\n updateInterfaceDeclaration: updateInterfaceDeclaration,\n createTypeAliasDeclaration: createTypeAliasDeclaration,\n updateTypeAliasDeclaration: updateTypeAliasDeclaration,\n createEnumDeclaration: createEnumDeclaration,\n updateEnumDeclaration: updateEnumDeclaration,\n createModuleDeclaration: createModuleDeclaration,\n updateModuleDeclaration: updateModuleDeclaration,\n createModuleBlock: createModuleBlock,\n updateModuleBlock: updateModuleBlock,\n createCaseBlock: createCaseBlock,\n updateCaseBlock: updateCaseBlock,\n createNamespaceExportDeclaration: createNamespaceExportDeclaration,\n updateNamespaceExportDeclaration: updateNamespaceExportDeclaration,\n createImportEqualsDeclaration: createImportEqualsDeclaration,\n updateImportEqualsDeclaration: updateImportEqualsDeclaration,\n createImportDeclaration: createImportDeclaration,\n updateImportDeclaration: updateImportDeclaration,\n createImportClause: createImportClause,\n updateImportClause: updateImportClause,\n createNamespaceImport: createNamespaceImport,\n updateNamespaceImport: updateNamespaceImport,\n createNamespaceExport: createNamespaceExport,\n updateNamespaceExport: updateNamespaceExport,\n createNamedImports: createNamedImports,\n updateNamedImports: updateNamedImports,\n createImportSpecifier: createImportSpecifier,\n updateImportSpecifier: updateImportSpecifier,\n createExportAssignment: createExportAssignment,\n updateExportAssignment: updateExportAssignment,\n createExportDeclaration: createExportDeclaration,\n updateExportDeclaration: updateExportDeclaration,\n createNamedExports: createNamedExports,\n updateNamedExports: updateNamedExports,\n createExportSpecifier: createExportSpecifier,\n updateExportSpecifier: updateExportSpecifier,\n createMissingDeclaration: createMissingDeclaration,\n createExternalModuleReference: createExternalModuleReference,\n updateExternalModuleReference: updateExternalModuleReference,\n // lazily load factory members for JSDoc types with similar structure\n get createJSDocAllType() { return getJSDocPrimaryTypeCreateFunction(307 /* JSDocAllType */); },\n get createJSDocUnknownType() { return getJSDocPrimaryTypeCreateFunction(308 /* JSDocUnknownType */); },\n get createJSDocNonNullableType() { return getJSDocUnaryTypeCreateFunction(310 /* JSDocNonNullableType */); },\n get updateJSDocNonNullableType() { return getJSDocUnaryTypeUpdateFunction(310 /* JSDocNonNullableType */); },\n get createJSDocNullableType() { return getJSDocUnaryTypeCreateFunction(309 /* JSDocNullableType */); },\n get updateJSDocNullableType() { return getJSDocUnaryTypeUpdateFunction(309 /* JSDocNullableType */); },\n get createJSDocOptionalType() { return getJSDocUnaryTypeCreateFunction(311 /* JSDocOptionalType */); },\n get updateJSDocOptionalType() { return getJSDocUnaryTypeUpdateFunction(311 /* JSDocOptionalType */); },\n get createJSDocVariadicType() { return getJSDocUnaryTypeCreateFunction(313 /* JSDocVariadicType */); },\n get updateJSDocVariadicType() { return getJSDocUnaryTypeUpdateFunction(313 /* JSDocVariadicType */); },\n get createJSDocNamepathType() { return getJSDocUnaryTypeCreateFunction(314 /* JSDocNamepathType */); },\n get updateJSDocNamepathType() { return getJSDocUnaryTypeUpdateFunction(314 /* JSDocNamepathType */); },\n createJSDocFunctionType: createJSDocFunctionType,\n updateJSDocFunctionType: updateJSDocFunctionType,\n createJSDocTypeLiteral: createJSDocTypeLiteral,\n updateJSDocTypeLiteral: updateJSDocTypeLiteral,\n createJSDocTypeExpression: createJSDocTypeExpression,\n updateJSDocTypeExpression: updateJSDocTypeExpression,\n createJSDocSignature: createJSDocSignature,\n updateJSDocSignature: updateJSDocSignature,\n createJSDocTemplateTag: createJSDocTemplateTag,\n updateJSDocTemplateTag: updateJSDocTemplateTag,\n createJSDocTypedefTag: createJSDocTypedefTag,\n updateJSDocTypedefTag: updateJSDocTypedefTag,\n createJSDocParameterTag: createJSDocParameterTag,\n updateJSDocParameterTag: updateJSDocParameterTag,\n createJSDocPropertyTag: createJSDocPropertyTag,\n updateJSDocPropertyTag: updateJSDocPropertyTag,\n createJSDocCallbackTag: createJSDocCallbackTag,\n updateJSDocCallbackTag: updateJSDocCallbackTag,\n createJSDocAugmentsTag: createJSDocAugmentsTag,\n updateJSDocAugmentsTag: updateJSDocAugmentsTag,\n createJSDocImplementsTag: createJSDocImplementsTag,\n updateJSDocImplementsTag: updateJSDocImplementsTag,\n createJSDocSeeTag: createJSDocSeeTag,\n updateJSDocSeeTag: updateJSDocSeeTag,\n createJSDocNameReference: createJSDocNameReference,\n updateJSDocNameReference: updateJSDocNameReference,\n createJSDocMemberName: createJSDocMemberName,\n updateJSDocMemberName: updateJSDocMemberName,\n createJSDocLink: createJSDocLink,\n updateJSDocLink: updateJSDocLink,\n createJSDocLinkCode: createJSDocLinkCode,\n updateJSDocLinkCode: updateJSDocLinkCode,\n createJSDocLinkPlain: createJSDocLinkPlain,\n updateJSDocLinkPlain: updateJSDocLinkPlain,\n // lazily load factory members for JSDoc tags with similar structure\n get createJSDocTypeTag() { return getJSDocTypeLikeTagCreateFunction(338 /* JSDocTypeTag */); },\n get updateJSDocTypeTag() { return getJSDocTypeLikeTagUpdateFunction(338 /* JSDocTypeTag */); },\n get createJSDocReturnTag() { return getJSDocTypeLikeTagCreateFunction(336 /* JSDocReturnTag */); },\n get updateJSDocReturnTag() { return getJSDocTypeLikeTagUpdateFunction(336 /* JSDocReturnTag */); },\n get createJSDocThisTag() { return getJSDocTypeLikeTagCreateFunction(337 /* JSDocThisTag */); },\n get updateJSDocThisTag() { return getJSDocTypeLikeTagUpdateFunction(337 /* JSDocThisTag */); },\n get createJSDocEnumTag() { return getJSDocTypeLikeTagCreateFunction(334 /* JSDocEnumTag */); },\n get updateJSDocEnumTag() { return getJSDocTypeLikeTagUpdateFunction(334 /* JSDocEnumTag */); },\n get createJSDocAuthorTag() { return getJSDocSimpleTagCreateFunction(325 /* JSDocAuthorTag */); },\n get updateJSDocAuthorTag() { return getJSDocSimpleTagUpdateFunction(325 /* JSDocAuthorTag */); },\n get createJSDocClassTag() { return getJSDocSimpleTagCreateFunction(327 /* JSDocClassTag */); },\n get updateJSDocClassTag() { return getJSDocSimpleTagUpdateFunction(327 /* JSDocClassTag */); },\n get createJSDocPublicTag() { return getJSDocSimpleTagCreateFunction(328 /* JSDocPublicTag */); },\n get updateJSDocPublicTag() { return getJSDocSimpleTagUpdateFunction(328 /* JSDocPublicTag */); },\n get createJSDocPrivateTag() { return getJSDocSimpleTagCreateFunction(329 /* JSDocPrivateTag */); },\n get updateJSDocPrivateTag() { return getJSDocSimpleTagUpdateFunction(329 /* JSDocPrivateTag */); },\n get createJSDocProtectedTag() { return getJSDocSimpleTagCreateFunction(330 /* JSDocProtectedTag */); },\n get updateJSDocProtectedTag() { return getJSDocSimpleTagUpdateFunction(330 /* JSDocProtectedTag */); },\n get createJSDocReadonlyTag() { return getJSDocSimpleTagCreateFunction(331 /* JSDocReadonlyTag */); },\n get updateJSDocReadonlyTag() { return getJSDocSimpleTagUpdateFunction(331 /* JSDocReadonlyTag */); },\n get createJSDocOverrideTag() { return getJSDocSimpleTagCreateFunction(332 /* JSDocOverrideTag */); },\n get updateJSDocOverrideTag() { return getJSDocSimpleTagUpdateFunction(332 /* JSDocOverrideTag */); },\n get createJSDocDeprecatedTag() { return getJSDocSimpleTagCreateFunction(326 /* JSDocDeprecatedTag */); },\n get updateJSDocDeprecatedTag() { return getJSDocSimpleTagUpdateFunction(326 /* JSDocDeprecatedTag */); },\n createJSDocUnknownTag: createJSDocUnknownTag,\n updateJSDocUnknownTag: updateJSDocUnknownTag,\n createJSDocText: createJSDocText,\n updateJSDocText: updateJSDocText,\n createJSDocComment: createJSDocComment,\n updateJSDocComment: updateJSDocComment,\n createJsxElement: createJsxElement,\n updateJsxElement: updateJsxElement,\n createJsxSelfClosingElement: createJsxSelfClosingElement,\n updateJsxSelfClosingElement: updateJsxSelfClosingElement,\n createJsxOpeningElement: createJsxOpeningElement,\n updateJsxOpeningElement: updateJsxOpeningElement,\n createJsxClosingElement: createJsxClosingElement,\n updateJsxClosingElement: updateJsxClosingElement,\n createJsxFragment: createJsxFragment,\n createJsxText: createJsxText,\n updateJsxText: updateJsxText,\n createJsxOpeningFragment: createJsxOpeningFragment,\n createJsxJsxClosingFragment: createJsxJsxClosingFragment,\n updateJsxFragment: updateJsxFragment,\n createJsxAttribute: createJsxAttribute,\n updateJsxAttribute: updateJsxAttribute,\n createJsxAttributes: createJsxAttributes,\n updateJsxAttributes: updateJsxAttributes,\n createJsxSpreadAttribute: createJsxSpreadAttribute,\n updateJsxSpreadAttribute: updateJsxSpreadAttribute,\n createJsxExpression: createJsxExpression,\n updateJsxExpression: updateJsxExpression,\n createCaseClause: createCaseClause,\n updateCaseClause: updateCaseClause,\n createDefaultClause: createDefaultClause,\n updateDefaultClause: updateDefaultClause,\n createHeritageClause: createHeritageClause,\n updateHeritageClause: updateHeritageClause,\n createCatchClause: createCatchClause,\n updateCatchClause: updateCatchClause,\n createPropertyAssignment: createPropertyAssignment,\n updatePropertyAssignment: updatePropertyAssignment,\n createShorthandPropertyAssignment: createShorthandPropertyAssignment,\n updateShorthandPropertyAssignment: updateShorthandPropertyAssignment,\n createSpreadAssignment: createSpreadAssignment,\n updateSpreadAssignment: updateSpreadAssignment,\n createEnumMember: createEnumMember,\n updateEnumMember: updateEnumMember,\n createSourceFile: createSourceFile,\n updateSourceFile: updateSourceFile,\n createBundle: createBundle,\n updateBundle: updateBundle,\n createUnparsedSource: createUnparsedSource,\n createUnparsedPrologue: createUnparsedPrologue,\n createUnparsedPrepend: createUnparsedPrepend,\n createUnparsedTextLike: createUnparsedTextLike,\n createUnparsedSyntheticReference: createUnparsedSyntheticReference,\n createInputFiles: createInputFiles,\n createSyntheticExpression: createSyntheticExpression,\n createSyntaxList: createSyntaxList,\n createNotEmittedStatement: createNotEmittedStatement,\n createPartiallyEmittedExpression: createPartiallyEmittedExpression,\n updatePartiallyEmittedExpression: updatePartiallyEmittedExpression,\n createCommaListExpression: createCommaListExpression,\n updateCommaListExpression: updateCommaListExpression,\n createEndOfDeclarationMarker: createEndOfDeclarationMarker,\n createMergeDeclarationMarker: createMergeDeclarationMarker,\n createSyntheticReferenceExpression: createSyntheticReferenceExpression,\n updateSyntheticReferenceExpression: updateSyntheticReferenceExpression,\n cloneNode: cloneNode,\n // Lazily load factory methods for common operator factories and utilities\n get createComma() { return getBinaryCreateFunction(27 /* CommaToken */); },\n get createAssignment() { return getBinaryCreateFunction(63 /* EqualsToken */); },\n get createLogicalOr() { return getBinaryCreateFunction(56 /* BarBarToken */); },\n get createLogicalAnd() { return getBinaryCreateFunction(55 /* AmpersandAmpersandToken */); },\n get createBitwiseOr() { return getBinaryCreateFunction(51 /* BarToken */); },\n get createBitwiseXor() { return getBinaryCreateFunction(52 /* CaretToken */); },\n get createBitwiseAnd() { return getBinaryCreateFunction(50 /* AmpersandToken */); },\n get createStrictEquality() { return getBinaryCreateFunction(36 /* EqualsEqualsEqualsToken */); },\n get createStrictInequality() { return getBinaryCreateFunction(37 /* ExclamationEqualsEqualsToken */); },\n get createEquality() { return getBinaryCreateFunction(34 /* EqualsEqualsToken */); },\n get createInequality() { return getBinaryCreateFunction(35 /* ExclamationEqualsToken */); },\n get createLessThan() { return getBinaryCreateFunction(29 /* LessThanToken */); },\n get createLessThanEquals() { return getBinaryCreateFunction(32 /* LessThanEqualsToken */); },\n get createGreaterThan() { return getBinaryCreateFunction(31 /* GreaterThanToken */); },\n get createGreaterThanEquals() { return getBinaryCreateFunction(33 /* GreaterThanEqualsToken */); },\n get createLeftShift() { return getBinaryCreateFunction(47 /* LessThanLessThanToken */); },\n get createRightShift() { return getBinaryCreateFunction(48 /* GreaterThanGreaterThanToken */); },\n get createUnsignedRightShift() { return getBinaryCreateFunction(49 /* GreaterThanGreaterThanGreaterThanToken */); },\n get createAdd() { return getBinaryCreateFunction(39 /* PlusToken */); },\n get createSubtract() { return getBinaryCreateFunction(40 /* MinusToken */); },\n get createMultiply() { return getBinaryCreateFunction(41 /* AsteriskToken */); },\n get createDivide() { return getBinaryCreateFunction(43 /* SlashToken */); },\n get createModulo() { return getBinaryCreateFunction(44 /* PercentToken */); },\n get createExponent() { return getBinaryCreateFunction(42 /* AsteriskAsteriskToken */); },\n get createPrefixPlus() { return getPrefixUnaryCreateFunction(39 /* PlusToken */); },\n get createPrefixMinus() { return getPrefixUnaryCreateFunction(40 /* MinusToken */); },\n get createPrefixIncrement() { return getPrefixUnaryCreateFunction(45 /* PlusPlusToken */); },\n get createPrefixDecrement() { return getPrefixUnaryCreateFunction(46 /* MinusMinusToken */); },\n get createBitwiseNot() { return getPrefixUnaryCreateFunction(54 /* TildeToken */); },\n get createLogicalNot() { return getPrefixUnaryCreateFunction(53 /* ExclamationToken */); },\n get createPostfixIncrement() { return getPostfixUnaryCreateFunction(45 /* PlusPlusToken */); },\n get createPostfixDecrement() { return getPostfixUnaryCreateFunction(46 /* MinusMinusToken */); },\n // Compound nodes\n createImmediatelyInvokedFunctionExpression: createImmediatelyInvokedFunctionExpression,\n createImmediatelyInvokedArrowFunction: createImmediatelyInvokedArrowFunction,\n createVoidZero: createVoidZero,\n createExportDefault: createExportDefault,\n createExternalModuleExport: createExternalModuleExport,\n createTypeCheck: createTypeCheck,\n createMethodCall: createMethodCall,\n createGlobalMethodCall: createGlobalMethodCall,\n createFunctionBindCall: createFunctionBindCall,\n createFunctionCallCall: createFunctionCallCall,\n createFunctionApplyCall: createFunctionApplyCall,\n createArraySliceCall: createArraySliceCall,\n createArrayConcatCall: createArrayConcatCall,\n createObjectDefinePropertyCall: createObjectDefinePropertyCall,\n createReflectGetCall: createReflectGetCall,\n createReflectSetCall: createReflectSetCall,\n createPropertyDescriptor: createPropertyDescriptor,\n createCallBinding: createCallBinding,\n createAssignmentTargetWrapper: createAssignmentTargetWrapper,\n // Utilities\n inlineExpressions: inlineExpressions,\n getInternalName: getInternalName,\n getLocalName: getLocalName,\n getExportName: getExportName,\n getDeclarationName: getDeclarationName,\n getNamespaceMemberName: getNamespaceMemberName,\n getExternalModuleOrNamespaceExportName: getExternalModuleOrNamespaceExportName,\n restoreOuterExpressions: restoreOuterExpressions,\n restoreEnclosingLabel: restoreEnclosingLabel,\n createUseStrictPrologue: createUseStrictPrologue,\n copyPrologue: copyPrologue,\n copyStandardPrologue: copyStandardPrologue,\n copyCustomPrologue: copyCustomPrologue,\n ensureUseStrict: ensureUseStrict,\n liftToBlock: liftToBlock,\n mergeLexicalEnvironment: mergeLexicalEnvironment,\n updateModifiers: updateModifiers,\n };\n return factory;\n // @api\n function createNodeArray(elements, hasTrailingComma) {\n if (elements === undefined || elements === ts.emptyArray) {\n elements = [];\n }\n else if (ts.isNodeArray(elements)) {\n if (hasTrailingComma === undefined || elements.hasTrailingComma === hasTrailingComma) {\n // Ensure the transform flags have been aggregated for this NodeArray\n if (elements.transformFlags === undefined) {\n aggregateChildrenFlags(elements);\n }\n ts.Debug.attachNodeArrayDebugInfo(elements);\n return elements;\n }\n // This *was* a `NodeArray`, but the `hasTrailingComma` option differs. Recreate the\n // array with the same elements, text range, and transform flags but with the updated\n // value for `hasTrailingComma`\n var array_8 = elements.slice();\n array_8.pos = elements.pos;\n array_8.end = elements.end;\n array_8.hasTrailingComma = hasTrailingComma;\n array_8.transformFlags = elements.transformFlags;\n ts.Debug.attachNodeArrayDebugInfo(array_8);\n return array_8;\n }\n // Since the element list of a node array is typically created by starting with an empty array and\n // repeatedly calling push(), the list may not have the optimal memory layout. We invoke slice() for\n // small arrays (1 to 4 elements) to give the VM a chance to allocate an optimal representation.\n var length = elements.length;\n var array = (length >= 1 && length <= 4 ? elements.slice() : elements);\n ts.setTextRangePosEnd(array, -1, -1);\n array.hasTrailingComma = !!hasTrailingComma;\n aggregateChildrenFlags(array);\n ts.Debug.attachNodeArrayDebugInfo(array);\n return array;\n }\n function createBaseNode(kind) {\n return baseFactory.createBaseNode(kind);\n }\n function createBaseDeclaration(kind, decorators, modifiers) {\n var node = createBaseNode(kind);\n node.decorators = asNodeArray(decorators);\n node.modifiers = asNodeArray(modifiers);\n node.transformFlags |=\n propagateChildrenFlags(node.decorators) |\n propagateChildrenFlags(node.modifiers);\n // NOTE: The following properties are commonly set by the binder and are added here to\n // ensure declarations have a stable shape.\n node.symbol = undefined; // initialized by binder\n node.localSymbol = undefined; // initialized by binder\n node.locals = undefined; // initialized by binder\n node.nextContainer = undefined; // initialized by binder\n return node;\n }\n function createBaseNamedDeclaration(kind, decorators, modifiers, name) {\n var node = createBaseDeclaration(kind, decorators, modifiers);\n name = asName(name);\n node.name = name;\n // The PropertyName of a member is allowed to be `await`.\n // We don't need to exclude `await` for type signatures since types\n // don't propagate child flags.\n if (name) {\n switch (node.kind) {\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 165 /* PropertyDeclaration */:\n case 291 /* PropertyAssignment */:\n if (ts.isIdentifier(name)) {\n node.transformFlags |= propagateIdentifierNameFlags(name);\n break;\n }\n // fall through\n default:\n node.transformFlags |= propagateChildFlags(name);\n break;\n }\n }\n return node;\n }\n function createBaseGenericNamedDeclaration(kind, decorators, modifiers, name, typeParameters) {\n var node = createBaseNamedDeclaration(kind, decorators, modifiers, name);\n node.typeParameters = asNodeArray(typeParameters);\n node.transformFlags |= propagateChildrenFlags(node.typeParameters);\n if (typeParameters)\n node.transformFlags |= 1 /* ContainsTypeScript */;\n return node;\n }\n function createBaseSignatureDeclaration(kind, decorators, modifiers, name, typeParameters, parameters, type) {\n var node = createBaseGenericNamedDeclaration(kind, decorators, modifiers, name, typeParameters);\n node.parameters = createNodeArray(parameters);\n node.type = type;\n node.transformFlags |=\n propagateChildrenFlags(node.parameters) |\n propagateChildFlags(node.type);\n if (type)\n node.transformFlags |= 1 /* ContainsTypeScript */;\n return node;\n }\n function updateBaseSignatureDeclaration(updated, original) {\n // copy children used only for error reporting\n if (original.typeArguments)\n updated.typeArguments = original.typeArguments;\n return update(updated, original);\n }\n function createBaseFunctionLikeDeclaration(kind, decorators, modifiers, name, typeParameters, parameters, type, body) {\n var node = createBaseSignatureDeclaration(kind, decorators, modifiers, name, typeParameters, parameters, type);\n node.body = body;\n node.transformFlags |= propagateChildFlags(node.body) & ~16777216 /* ContainsPossibleTopLevelAwait */;\n if (!body)\n node.transformFlags |= 1 /* ContainsTypeScript */;\n return node;\n }\n function updateBaseFunctionLikeDeclaration(updated, original) {\n // copy children used only for error reporting\n if (original.exclamationToken)\n updated.exclamationToken = original.exclamationToken;\n if (original.typeArguments)\n updated.typeArguments = original.typeArguments;\n return updateBaseSignatureDeclaration(updated, original);\n }\n function createBaseInterfaceOrClassLikeDeclaration(kind, decorators, modifiers, name, typeParameters, heritageClauses) {\n var node = createBaseGenericNamedDeclaration(kind, decorators, modifiers, name, typeParameters);\n node.heritageClauses = asNodeArray(heritageClauses);\n node.transformFlags |= propagateChildrenFlags(node.heritageClauses);\n return node;\n }\n function createBaseClassLikeDeclaration(kind, decorators, modifiers, name, typeParameters, heritageClauses, members) {\n var node = createBaseInterfaceOrClassLikeDeclaration(kind, decorators, modifiers, name, typeParameters, heritageClauses);\n node.members = createNodeArray(members);\n node.transformFlags |= propagateChildrenFlags(node.members);\n return node;\n }\n function createBaseBindingLikeDeclaration(kind, decorators, modifiers, name, initializer) {\n var node = createBaseNamedDeclaration(kind, decorators, modifiers, name);\n node.initializer = initializer;\n node.transformFlags |= propagateChildFlags(node.initializer);\n return node;\n }\n function createBaseVariableLikeDeclaration(kind, decorators, modifiers, name, type, initializer) {\n var node = createBaseBindingLikeDeclaration(kind, decorators, modifiers, name, initializer);\n node.type = type;\n node.transformFlags |= propagateChildFlags(type);\n if (type)\n node.transformFlags |= 1 /* ContainsTypeScript */;\n return node;\n }\n //\n // Literals\n //\n function createBaseLiteral(kind, text) {\n var node = createBaseToken(kind);\n node.text = text;\n return node;\n }\n // @api\n function createNumericLiteral(value, numericLiteralFlags) {\n if (numericLiteralFlags === void 0) { numericLiteralFlags = 0 /* None */; }\n var node = createBaseLiteral(8 /* NumericLiteral */, typeof value === \"number\" ? value + \"\" : value);\n node.numericLiteralFlags = numericLiteralFlags;\n if (numericLiteralFlags & 384 /* BinaryOrOctalSpecifier */)\n node.transformFlags |= 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function createBigIntLiteral(value) {\n var node = createBaseLiteral(9 /* BigIntLiteral */, typeof value === \"string\" ? value : ts.pseudoBigIntToString(value) + \"n\");\n node.transformFlags |= 4 /* ContainsESNext */;\n return node;\n }\n function createBaseStringLiteral(text, isSingleQuote) {\n var node = createBaseLiteral(10 /* StringLiteral */, text);\n node.singleQuote = isSingleQuote;\n return node;\n }\n // @api\n function createStringLiteral(text, isSingleQuote, hasExtendedUnicodeEscape) {\n var node = createBaseStringLiteral(text, isSingleQuote);\n node.hasExtendedUnicodeEscape = hasExtendedUnicodeEscape;\n if (hasExtendedUnicodeEscape)\n node.transformFlags |= 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function createStringLiteralFromNode(sourceNode) {\n var node = createBaseStringLiteral(ts.getTextOfIdentifierOrLiteral(sourceNode), /*isSingleQuote*/ undefined);\n node.textSourceNode = sourceNode;\n return node;\n }\n // @api\n function createRegularExpressionLiteral(text) {\n var node = createBaseLiteral(13 /* RegularExpressionLiteral */, text);\n return node;\n }\n // @api\n function createLiteralLikeNode(kind, text) {\n switch (kind) {\n case 8 /* NumericLiteral */: return createNumericLiteral(text, /*numericLiteralFlags*/ 0);\n case 9 /* BigIntLiteral */: return createBigIntLiteral(text);\n case 10 /* StringLiteral */: return createStringLiteral(text, /*isSingleQuote*/ undefined);\n case 11 /* JsxText */: return createJsxText(text, /*containsOnlyTriviaWhiteSpaces*/ false);\n case 12 /* JsxTextAllWhiteSpaces */: return createJsxText(text, /*containsOnlyTriviaWhiteSpaces*/ true);\n case 13 /* RegularExpressionLiteral */: return createRegularExpressionLiteral(text);\n case 14 /* NoSubstitutionTemplateLiteral */: return createTemplateLiteralLikeNode(kind, text, /*rawText*/ undefined, /*templateFlags*/ 0);\n }\n }\n //\n // Identifiers\n //\n function createBaseIdentifier(text, originalKeywordKind) {\n if (originalKeywordKind === undefined && text) {\n originalKeywordKind = ts.stringToToken(text);\n }\n if (originalKeywordKind === 79 /* Identifier */) {\n originalKeywordKind = undefined;\n }\n var node = baseFactory.createBaseIdentifierNode(79 /* Identifier */);\n node.originalKeywordKind = originalKeywordKind;\n node.escapedText = ts.escapeLeadingUnderscores(text);\n return node;\n }\n function createBaseGeneratedIdentifier(text, autoGenerateFlags) {\n var node = createBaseIdentifier(text, /*originalKeywordKind*/ undefined);\n node.autoGenerateFlags = autoGenerateFlags;\n node.autoGenerateId = nextAutoGenerateId;\n nextAutoGenerateId++;\n return node;\n }\n // @api\n function createIdentifier(text, typeArguments, originalKeywordKind) {\n var node = createBaseIdentifier(text, originalKeywordKind);\n if (typeArguments) {\n // NOTE: we do not use `setChildren` here because typeArguments in an identifier do not contribute to transformations\n node.typeArguments = createNodeArray(typeArguments);\n }\n if (node.originalKeywordKind === 131 /* AwaitKeyword */) {\n node.transformFlags |= 16777216 /* ContainsPossibleTopLevelAwait */;\n }\n return node;\n }\n // @api\n function updateIdentifier(node, typeArguments) {\n return node.typeArguments !== typeArguments\n ? update(createIdentifier(ts.idText(node), typeArguments), node)\n : node;\n }\n // @api\n function createTempVariable(recordTempVariable, reservedInNestedScopes) {\n var flags = 1 /* Auto */;\n if (reservedInNestedScopes)\n flags |= 8 /* ReservedInNestedScopes */;\n var name = createBaseGeneratedIdentifier(\"\", flags);\n if (recordTempVariable) {\n recordTempVariable(name);\n }\n return name;\n }\n /** Create a unique temporary variable for use in a loop. */\n // @api\n function createLoopVariable(reservedInNestedScopes) {\n var flags = 2 /* Loop */;\n if (reservedInNestedScopes)\n flags |= 8 /* ReservedInNestedScopes */;\n return createBaseGeneratedIdentifier(\"\", flags);\n }\n /** Create a unique name based on the supplied text. */\n // @api\n function createUniqueName(text, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n ts.Debug.assert(!(flags & 7 /* KindMask */), \"Argument out of range: flags\");\n ts.Debug.assert((flags & (16 /* Optimistic */ | 32 /* FileLevel */)) !== 32 /* FileLevel */, \"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic\");\n return createBaseGeneratedIdentifier(text, 3 /* Unique */ | flags);\n }\n /** Create a unique name generated for a node. */\n // @api\n function getGeneratedNameForNode(node, flags) {\n if (flags === void 0) { flags = 0; }\n ts.Debug.assert(!(flags & 7 /* KindMask */), \"Argument out of range: flags\");\n var name = createBaseGeneratedIdentifier(node && ts.isIdentifier(node) ? ts.idText(node) : \"\", 4 /* Node */ | flags);\n name.original = node;\n return name;\n }\n // @api\n function createPrivateIdentifier(text) {\n if (!ts.startsWith(text, \"#\"))\n ts.Debug.fail(\"First character of private identifier must be #: \" + text);\n var node = baseFactory.createBasePrivateIdentifierNode(80 /* PrivateIdentifier */);\n node.escapedText = ts.escapeLeadingUnderscores(text);\n node.transformFlags |= 8388608 /* ContainsClassFields */;\n return node;\n }\n //\n // Punctuation\n //\n function createBaseToken(kind) {\n return baseFactory.createBaseTokenNode(kind);\n }\n function createToken(token) {\n ts.Debug.assert(token >= 0 /* FirstToken */ && token <= 158 /* LastToken */, \"Invalid token\");\n ts.Debug.assert(token <= 14 /* FirstTemplateToken */ || token >= 17 /* LastTemplateToken */, \"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals.\");\n ts.Debug.assert(token <= 8 /* FirstLiteralToken */ || token >= 14 /* LastLiteralToken */, \"Invalid token. Use 'createLiteralLikeNode' to create literals.\");\n ts.Debug.assert(token !== 79 /* Identifier */, \"Invalid token. Use 'createIdentifier' to create identifiers\");\n var node = createBaseToken(token);\n var transformFlags = 0 /* None */;\n switch (token) {\n case 130 /* AsyncKeyword */:\n // 'async' modifier is ES2017 (async functions) or ES2018 (async generators)\n transformFlags =\n 128 /* ContainsES2017 */ |\n 64 /* ContainsES2018 */;\n break;\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 143 /* ReadonlyKeyword */:\n case 126 /* AbstractKeyword */:\n case 134 /* DeclareKeyword */:\n case 85 /* ConstKeyword */:\n case 129 /* AnyKeyword */:\n case 145 /* NumberKeyword */:\n case 156 /* BigIntKeyword */:\n case 142 /* NeverKeyword */:\n case 146 /* ObjectKeyword */:\n case 157 /* OverrideKeyword */:\n case 148 /* StringKeyword */:\n case 132 /* BooleanKeyword */:\n case 149 /* SymbolKeyword */:\n case 114 /* VoidKeyword */:\n case 153 /* UnknownKeyword */:\n case 151 /* UndefinedKeyword */: // `undefined` is an Identifier in the expression case.\n transformFlags = 1 /* ContainsTypeScript */;\n break;\n case 106 /* SuperKeyword */:\n transformFlags = 512 /* ContainsES2015 */ | 33554432 /* ContainsLexicalSuper */;\n break;\n case 124 /* StaticKeyword */:\n transformFlags = 512 /* ContainsES2015 */;\n break;\n case 108 /* ThisKeyword */:\n // 'this' indicates a lexical 'this'\n transformFlags = 8192 /* ContainsLexicalThis */;\n break;\n }\n if (transformFlags) {\n node.transformFlags |= transformFlags;\n }\n return node;\n }\n //\n // Reserved words\n //\n // @api\n function createSuper() {\n return createToken(106 /* SuperKeyword */);\n }\n // @api\n function createThis() {\n return createToken(108 /* ThisKeyword */);\n }\n // @api\n function createNull() {\n return createToken(104 /* NullKeyword */);\n }\n // @api\n function createTrue() {\n return createToken(110 /* TrueKeyword */);\n }\n // @api\n function createFalse() {\n return createToken(95 /* FalseKeyword */);\n }\n //\n // Modifiers\n //\n // @api\n function createModifier(kind) {\n return createToken(kind);\n }\n // @api\n function createModifiersFromModifierFlags(flags) {\n var result = [];\n if (flags & 1 /* Export */) {\n result.push(createModifier(93 /* ExportKeyword */));\n }\n if (flags & 2 /* Ambient */) {\n result.push(createModifier(134 /* DeclareKeyword */));\n }\n if (flags & 512 /* Default */) {\n result.push(createModifier(88 /* DefaultKeyword */));\n }\n if (flags & 2048 /* Const */) {\n result.push(createModifier(85 /* ConstKeyword */));\n }\n if (flags & 4 /* Public */) {\n result.push(createModifier(123 /* PublicKeyword */));\n }\n if (flags & 8 /* Private */) {\n result.push(createModifier(121 /* PrivateKeyword */));\n }\n if (flags & 16 /* Protected */) {\n result.push(createModifier(122 /* ProtectedKeyword */));\n }\n if (flags & 128 /* Abstract */) {\n result.push(createModifier(126 /* AbstractKeyword */));\n }\n if (flags & 32 /* Static */) {\n result.push(createModifier(124 /* StaticKeyword */));\n }\n if (flags & 16384 /* Override */) {\n result.push(createModifier(157 /* OverrideKeyword */));\n }\n if (flags & 64 /* Readonly */) {\n result.push(createModifier(143 /* ReadonlyKeyword */));\n }\n if (flags & 256 /* Async */) {\n result.push(createModifier(130 /* AsyncKeyword */));\n }\n return result;\n }\n //\n // Names\n //\n // @api\n function createQualifiedName(left, right) {\n var node = createBaseNode(159 /* QualifiedName */);\n node.left = left;\n node.right = asName(right);\n node.transformFlags |=\n propagateChildFlags(node.left) |\n propagateIdentifierNameFlags(node.right);\n return node;\n }\n // @api\n function updateQualifiedName(node, left, right) {\n return node.left !== left\n || node.right !== right\n ? update(createQualifiedName(left, right), node)\n : node;\n }\n // @api\n function createComputedPropertyName(expression) {\n var node = createBaseNode(160 /* ComputedPropertyName */);\n node.expression = parenthesizerRules().parenthesizeExpressionOfComputedPropertyName(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 512 /* ContainsES2015 */ |\n 65536 /* ContainsComputedPropertyName */;\n return node;\n }\n // @api\n function updateComputedPropertyName(node, expression) {\n return node.expression !== expression\n ? update(createComputedPropertyName(expression), node)\n : node;\n }\n //\n // Signature elements\n //\n // @api\n function createTypeParameterDeclaration(name, constraint, defaultType) {\n var node = createBaseNamedDeclaration(161 /* TypeParameter */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, name);\n node.constraint = constraint;\n node.default = defaultType;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeParameterDeclaration(node, name, constraint, defaultType) {\n return node.name !== name\n || node.constraint !== constraint\n || node.default !== defaultType\n ? update(createTypeParameterDeclaration(name, constraint, defaultType), node)\n : node;\n }\n // @api\n function createParameterDeclaration(decorators, modifiers, dotDotDotToken, name, questionToken, type, initializer) {\n var node = createBaseVariableLikeDeclaration(162 /* Parameter */, decorators, modifiers, name, type, initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer));\n node.dotDotDotToken = dotDotDotToken;\n node.questionToken = questionToken;\n if (ts.isThisIdentifier(node.name)) {\n node.transformFlags = 1 /* ContainsTypeScript */;\n }\n else {\n node.transformFlags |=\n propagateChildFlags(node.dotDotDotToken) |\n propagateChildFlags(node.questionToken);\n if (questionToken)\n node.transformFlags |= 1 /* ContainsTypeScript */;\n if (ts.modifiersToFlags(node.modifiers) & 16476 /* ParameterPropertyModifier */)\n node.transformFlags |= 4096 /* ContainsTypeScriptClassSyntax */;\n if (initializer || dotDotDotToken)\n node.transformFlags |= 512 /* ContainsES2015 */;\n }\n return node;\n }\n // @api\n function updateParameterDeclaration(node, decorators, modifiers, dotDotDotToken, name, questionToken, type, initializer) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.dotDotDotToken !== dotDotDotToken\n || node.name !== name\n || node.questionToken !== questionToken\n || node.type !== type\n || node.initializer !== initializer\n ? update(createParameterDeclaration(decorators, modifiers, dotDotDotToken, name, questionToken, type, initializer), node)\n : node;\n }\n // @api\n function createDecorator(expression) {\n var node = createBaseNode(163 /* Decorator */);\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 1 /* ContainsTypeScript */ |\n 4096 /* ContainsTypeScriptClassSyntax */;\n return node;\n }\n // @api\n function updateDecorator(node, expression) {\n return node.expression !== expression\n ? update(createDecorator(expression), node)\n : node;\n }\n //\n // Type Elements\n //\n // @api\n function createPropertySignature(modifiers, name, questionToken, type) {\n var node = createBaseNamedDeclaration(164 /* PropertySignature */, \n /*decorators*/ undefined, modifiers, name);\n node.type = type;\n node.questionToken = questionToken;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updatePropertySignature(node, modifiers, name, questionToken, type) {\n return node.modifiers !== modifiers\n || node.name !== name\n || node.questionToken !== questionToken\n || node.type !== type\n ? update(createPropertySignature(modifiers, name, questionToken, type), node)\n : node;\n }\n // @api\n function createPropertyDeclaration(decorators, modifiers, name, questionOrExclamationToken, type, initializer) {\n var node = createBaseVariableLikeDeclaration(165 /* PropertyDeclaration */, decorators, modifiers, name, type, initializer);\n node.questionToken = questionOrExclamationToken && ts.isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : undefined;\n node.exclamationToken = questionOrExclamationToken && ts.isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : undefined;\n node.transformFlags |=\n propagateChildFlags(node.questionToken) |\n propagateChildFlags(node.exclamationToken) |\n 8388608 /* ContainsClassFields */;\n if (ts.isComputedPropertyName(node.name) || (ts.hasStaticModifier(node) && node.initializer)) {\n node.transformFlags |= 4096 /* ContainsTypeScriptClassSyntax */;\n }\n if (questionOrExclamationToken || ts.modifiersToFlags(node.modifiers) & 2 /* Ambient */) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n return node;\n }\n // @api\n function updatePropertyDeclaration(node, decorators, modifiers, name, questionOrExclamationToken, type, initializer) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.questionToken !== (questionOrExclamationToken !== undefined && ts.isQuestionToken(questionOrExclamationToken) ? questionOrExclamationToken : undefined)\n || node.exclamationToken !== (questionOrExclamationToken !== undefined && ts.isExclamationToken(questionOrExclamationToken) ? questionOrExclamationToken : undefined)\n || node.type !== type\n || node.initializer !== initializer\n ? update(createPropertyDeclaration(decorators, modifiers, name, questionOrExclamationToken, type, initializer), node)\n : node;\n }\n // @api\n function createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type) {\n var node = createBaseSignatureDeclaration(166 /* MethodSignature */, \n /*decorators*/ undefined, modifiers, name, typeParameters, parameters, type);\n node.questionToken = questionToken;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateMethodSignature(node, modifiers, name, questionToken, typeParameters, parameters, type) {\n return node.modifiers !== modifiers\n || node.name !== name\n || node.questionToken !== questionToken\n || node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n ? updateBaseSignatureDeclaration(createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type), node)\n : node;\n }\n // @api\n function createMethodDeclaration(decorators, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) {\n var node = createBaseFunctionLikeDeclaration(167 /* MethodDeclaration */, decorators, modifiers, name, typeParameters, parameters, type, body);\n node.asteriskToken = asteriskToken;\n node.questionToken = questionToken;\n node.transformFlags |=\n propagateChildFlags(node.asteriskToken) |\n propagateChildFlags(node.questionToken) |\n 512 /* ContainsES2015 */;\n if (questionToken) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n if (ts.modifiersToFlags(node.modifiers) & 256 /* Async */) {\n if (asteriskToken) {\n node.transformFlags |= 64 /* ContainsES2018 */;\n }\n else {\n node.transformFlags |= 128 /* ContainsES2017 */;\n }\n }\n else if (asteriskToken) {\n node.transformFlags |= 1024 /* ContainsGenerator */;\n }\n return node;\n }\n // @api\n function updateMethodDeclaration(node, decorators, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.asteriskToken !== asteriskToken\n || node.name !== name\n || node.questionToken !== questionToken\n || node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createMethodDeclaration(decorators, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body), node)\n : node;\n }\n // @api\n function createClassStaticBlockDeclaration(decorators, modifiers, body) {\n var node = createBaseGenericNamedDeclaration(168 /* ClassStaticBlockDeclaration */, decorators, modifiers, \n /*name*/ undefined, \n /*typeParameters*/ undefined);\n node.body = body;\n node.transformFlags = propagateChildFlags(body) | 8388608 /* ContainsClassFields */;\n return node;\n }\n // @api\n function updateClassStaticBlockDeclaration(node, decorators, modifiers, body) {\n return node.decorators !== decorators\n || node.modifier !== modifiers\n || node.body !== body\n ? update(createClassStaticBlockDeclaration(decorators, modifiers, body), node)\n : node;\n }\n // @api\n function createConstructorDeclaration(decorators, modifiers, parameters, body) {\n var node = createBaseFunctionLikeDeclaration(169 /* Constructor */, decorators, modifiers, \n /*name*/ undefined, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, body);\n node.transformFlags |= 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function updateConstructorDeclaration(node, decorators, modifiers, parameters, body) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.parameters !== parameters\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createConstructorDeclaration(decorators, modifiers, parameters, body), node)\n : node;\n }\n // @api\n function createGetAccessorDeclaration(decorators, modifiers, name, parameters, type, body) {\n return createBaseFunctionLikeDeclaration(170 /* GetAccessor */, decorators, modifiers, name, \n /*typeParameters*/ undefined, parameters, type, body);\n }\n // @api\n function updateGetAccessorDeclaration(node, decorators, modifiers, name, parameters, type, body) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.parameters !== parameters\n || node.type !== type\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createGetAccessorDeclaration(decorators, modifiers, name, parameters, type, body), node)\n : node;\n }\n // @api\n function createSetAccessorDeclaration(decorators, modifiers, name, parameters, body) {\n return createBaseFunctionLikeDeclaration(171 /* SetAccessor */, decorators, modifiers, name, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, body);\n }\n // @api\n function updateSetAccessorDeclaration(node, decorators, modifiers, name, parameters, body) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.parameters !== parameters\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createSetAccessorDeclaration(decorators, modifiers, name, parameters, body), node)\n : node;\n }\n // @api\n function createCallSignature(typeParameters, parameters, type) {\n var node = createBaseSignatureDeclaration(172 /* CallSignature */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*name*/ undefined, typeParameters, parameters, type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateCallSignature(node, typeParameters, parameters, type) {\n return node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n ? updateBaseSignatureDeclaration(createCallSignature(typeParameters, parameters, type), node)\n : node;\n }\n // @api\n function createConstructSignature(typeParameters, parameters, type) {\n var node = createBaseSignatureDeclaration(173 /* ConstructSignature */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*name*/ undefined, typeParameters, parameters, type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateConstructSignature(node, typeParameters, parameters, type) {\n return node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n ? updateBaseSignatureDeclaration(createConstructSignature(typeParameters, parameters, type), node)\n : node;\n }\n // @api\n function createIndexSignature(decorators, modifiers, parameters, type) {\n var node = createBaseSignatureDeclaration(174 /* IndexSignature */, decorators, modifiers, \n /*name*/ undefined, \n /*typeParameters*/ undefined, parameters, type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateIndexSignature(node, decorators, modifiers, parameters, type) {\n return node.parameters !== parameters\n || node.type !== type\n || node.decorators !== decorators\n || node.modifiers !== modifiers\n ? updateBaseSignatureDeclaration(createIndexSignature(decorators, modifiers, parameters, type), node)\n : node;\n }\n // @api\n function createTemplateLiteralTypeSpan(type, literal) {\n var node = createBaseNode(197 /* TemplateLiteralTypeSpan */);\n node.type = type;\n node.literal = literal;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTemplateLiteralTypeSpan(node, type, literal) {\n return node.type !== type\n || node.literal !== literal\n ? update(createTemplateLiteralTypeSpan(type, literal), node)\n : node;\n }\n //\n // Types\n //\n // @api\n function createKeywordTypeNode(kind) {\n return createToken(kind);\n }\n // @api\n function createTypePredicateNode(assertsModifier, parameterName, type) {\n var node = createBaseNode(175 /* TypePredicate */);\n node.assertsModifier = assertsModifier;\n node.parameterName = asName(parameterName);\n node.type = type;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypePredicateNode(node, assertsModifier, parameterName, type) {\n return node.assertsModifier !== assertsModifier\n || node.parameterName !== parameterName\n || node.type !== type\n ? update(createTypePredicateNode(assertsModifier, parameterName, type), node)\n : node;\n }\n // @api\n function createTypeReferenceNode(typeName, typeArguments) {\n var node = createBaseNode(176 /* TypeReference */);\n node.typeName = asName(typeName);\n node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(createNodeArray(typeArguments));\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeReferenceNode(node, typeName, typeArguments) {\n return node.typeName !== typeName\n || node.typeArguments !== typeArguments\n ? update(createTypeReferenceNode(typeName, typeArguments), node)\n : node;\n }\n // @api\n function createFunctionTypeNode(typeParameters, parameters, type) {\n var node = createBaseSignatureDeclaration(177 /* FunctionType */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*name*/ undefined, typeParameters, parameters, type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateFunctionTypeNode(node, typeParameters, parameters, type) {\n return node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n ? updateBaseSignatureDeclaration(createFunctionTypeNode(typeParameters, parameters, type), node)\n : node;\n }\n // @api\n function createConstructorTypeNode() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return args.length === 4 ? createConstructorTypeNode1.apply(void 0, args) :\n args.length === 3 ? createConstructorTypeNode2.apply(void 0, args) :\n ts.Debug.fail(\"Incorrect number of arguments specified.\");\n }\n function createConstructorTypeNode1(modifiers, typeParameters, parameters, type) {\n var node = createBaseSignatureDeclaration(178 /* ConstructorType */, \n /*decorators*/ undefined, modifiers, \n /*name*/ undefined, typeParameters, parameters, type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n /** @deprecated */\n function createConstructorTypeNode2(typeParameters, parameters, type) {\n return createConstructorTypeNode1(/*modifiers*/ undefined, typeParameters, parameters, type);\n }\n // @api\n function updateConstructorTypeNode() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return args.length === 5 ? updateConstructorTypeNode1.apply(void 0, args) :\n args.length === 4 ? updateConstructorTypeNode2.apply(void 0, args) :\n ts.Debug.fail(\"Incorrect number of arguments specified.\");\n }\n function updateConstructorTypeNode1(node, modifiers, typeParameters, parameters, type) {\n return node.modifiers !== modifiers\n || node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n ? updateBaseSignatureDeclaration(createConstructorTypeNode(modifiers, typeParameters, parameters, type), node)\n : node;\n }\n /** @deprecated */\n function updateConstructorTypeNode2(node, typeParameters, parameters, type) {\n return updateConstructorTypeNode1(node, node.modifiers, typeParameters, parameters, type);\n }\n // @api\n function createTypeQueryNode(exprName) {\n var node = createBaseNode(179 /* TypeQuery */);\n node.exprName = exprName;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeQueryNode(node, exprName) {\n return node.exprName !== exprName\n ? update(createTypeQueryNode(exprName), node)\n : node;\n }\n // @api\n function createTypeLiteralNode(members) {\n var node = createBaseNode(180 /* TypeLiteral */);\n node.members = createNodeArray(members);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeLiteralNode(node, members) {\n return node.members !== members\n ? update(createTypeLiteralNode(members), node)\n : node;\n }\n // @api\n function createArrayTypeNode(elementType) {\n var node = createBaseNode(181 /* ArrayType */);\n node.elementType = parenthesizerRules().parenthesizeElementTypeOfArrayType(elementType);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateArrayTypeNode(node, elementType) {\n return node.elementType !== elementType\n ? update(createArrayTypeNode(elementType), node)\n : node;\n }\n // @api\n function createTupleTypeNode(elements) {\n var node = createBaseNode(182 /* TupleType */);\n node.elements = createNodeArray(elements);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTupleTypeNode(node, elements) {\n return node.elements !== elements\n ? update(createTupleTypeNode(elements), node)\n : node;\n }\n // @api\n function createNamedTupleMember(dotDotDotToken, name, questionToken, type) {\n var node = createBaseNode(195 /* NamedTupleMember */);\n node.dotDotDotToken = dotDotDotToken;\n node.name = name;\n node.questionToken = questionToken;\n node.type = type;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateNamedTupleMember(node, dotDotDotToken, name, questionToken, type) {\n return node.dotDotDotToken !== dotDotDotToken\n || node.name !== name\n || node.questionToken !== questionToken\n || node.type !== type\n ? update(createNamedTupleMember(dotDotDotToken, name, questionToken, type), node)\n : node;\n }\n // @api\n function createOptionalTypeNode(type) {\n var node = createBaseNode(183 /* OptionalType */);\n node.type = parenthesizerRules().parenthesizeElementTypeOfArrayType(type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateOptionalTypeNode(node, type) {\n return node.type !== type\n ? update(createOptionalTypeNode(type), node)\n : node;\n }\n // @api\n function createRestTypeNode(type) {\n var node = createBaseNode(184 /* RestType */);\n node.type = type;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateRestTypeNode(node, type) {\n return node.type !== type\n ? update(createRestTypeNode(type), node)\n : node;\n }\n function createUnionOrIntersectionTypeNode(kind, types) {\n var node = createBaseNode(kind);\n node.types = parenthesizerRules().parenthesizeConstituentTypesOfUnionOrIntersectionType(types);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n function updateUnionOrIntersectionTypeNode(node, types) {\n return node.types !== types\n ? update(createUnionOrIntersectionTypeNode(node.kind, types), node)\n : node;\n }\n // @api\n function createUnionTypeNode(types) {\n return createUnionOrIntersectionTypeNode(185 /* UnionType */, types);\n }\n // @api\n function updateUnionTypeNode(node, types) {\n return updateUnionOrIntersectionTypeNode(node, types);\n }\n // @api\n function createIntersectionTypeNode(types) {\n return createUnionOrIntersectionTypeNode(186 /* IntersectionType */, types);\n }\n // @api\n function updateIntersectionTypeNode(node, types) {\n return updateUnionOrIntersectionTypeNode(node, types);\n }\n // @api\n function createConditionalTypeNode(checkType, extendsType, trueType, falseType) {\n var node = createBaseNode(187 /* ConditionalType */);\n node.checkType = parenthesizerRules().parenthesizeMemberOfConditionalType(checkType);\n node.extendsType = parenthesizerRules().parenthesizeMemberOfConditionalType(extendsType);\n node.trueType = trueType;\n node.falseType = falseType;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateConditionalTypeNode(node, checkType, extendsType, trueType, falseType) {\n return node.checkType !== checkType\n || node.extendsType !== extendsType\n || node.trueType !== trueType\n || node.falseType !== falseType\n ? update(createConditionalTypeNode(checkType, extendsType, trueType, falseType), node)\n : node;\n }\n // @api\n function createInferTypeNode(typeParameter) {\n var node = createBaseNode(188 /* InferType */);\n node.typeParameter = typeParameter;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateInferTypeNode(node, typeParameter) {\n return node.typeParameter !== typeParameter\n ? update(createInferTypeNode(typeParameter), node)\n : node;\n }\n // @api\n function createTemplateLiteralType(head, templateSpans) {\n var node = createBaseNode(196 /* TemplateLiteralType */);\n node.head = head;\n node.templateSpans = createNodeArray(templateSpans);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTemplateLiteralType(node, head, templateSpans) {\n return node.head !== head\n || node.templateSpans !== templateSpans\n ? update(createTemplateLiteralType(head, templateSpans), node)\n : node;\n }\n // @api\n function createImportTypeNode(argument, qualifier, typeArguments, isTypeOf) {\n if (isTypeOf === void 0) { isTypeOf = false; }\n var node = createBaseNode(198 /* ImportType */);\n node.argument = argument;\n node.qualifier = qualifier;\n node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments);\n node.isTypeOf = isTypeOf;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateImportTypeNode(node, argument, qualifier, typeArguments, isTypeOf) {\n if (isTypeOf === void 0) { isTypeOf = node.isTypeOf; }\n return node.argument !== argument\n || node.qualifier !== qualifier\n || node.typeArguments !== typeArguments\n || node.isTypeOf !== isTypeOf\n ? update(createImportTypeNode(argument, qualifier, typeArguments, isTypeOf), node)\n : node;\n }\n // @api\n function createParenthesizedType(type) {\n var node = createBaseNode(189 /* ParenthesizedType */);\n node.type = type;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateParenthesizedType(node, type) {\n return node.type !== type\n ? update(createParenthesizedType(type), node)\n : node;\n }\n // @api\n function createThisTypeNode() {\n var node = createBaseNode(190 /* ThisType */);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function createTypeOperatorNode(operator, type) {\n var node = createBaseNode(191 /* TypeOperator */);\n node.operator = operator;\n node.type = parenthesizerRules().parenthesizeMemberOfElementType(type);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeOperatorNode(node, type) {\n return node.type !== type\n ? update(createTypeOperatorNode(node.operator, type), node)\n : node;\n }\n // @api\n function createIndexedAccessTypeNode(objectType, indexType) {\n var node = createBaseNode(192 /* IndexedAccessType */);\n node.objectType = parenthesizerRules().parenthesizeMemberOfElementType(objectType);\n node.indexType = indexType;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateIndexedAccessTypeNode(node, objectType, indexType) {\n return node.objectType !== objectType\n || node.indexType !== indexType\n ? update(createIndexedAccessTypeNode(objectType, indexType), node)\n : node;\n }\n // @api\n function createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type) {\n var node = createBaseNode(193 /* MappedType */);\n node.readonlyToken = readonlyToken;\n node.typeParameter = typeParameter;\n node.nameType = nameType;\n node.questionToken = questionToken;\n node.type = type;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateMappedTypeNode(node, readonlyToken, typeParameter, nameType, questionToken, type) {\n return node.readonlyToken !== readonlyToken\n || node.typeParameter !== typeParameter\n || node.nameType !== nameType\n || node.questionToken !== questionToken\n || node.type !== type\n ? update(createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), node)\n : node;\n }\n // @api\n function createLiteralTypeNode(literal) {\n var node = createBaseNode(194 /* LiteralType */);\n node.literal = literal;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateLiteralTypeNode(node, literal) {\n return node.literal !== literal\n ? update(createLiteralTypeNode(literal), node)\n : node;\n }\n //\n // Binding Patterns\n //\n // @api\n function createObjectBindingPattern(elements) {\n var node = createBaseNode(199 /* ObjectBindingPattern */);\n node.elements = createNodeArray(elements);\n node.transformFlags |=\n propagateChildrenFlags(node.elements) |\n 512 /* ContainsES2015 */ |\n 262144 /* ContainsBindingPattern */;\n if (node.transformFlags & 16384 /* ContainsRestOrSpread */) {\n node.transformFlags |=\n 64 /* ContainsES2018 */ |\n 32768 /* ContainsObjectRestOrSpread */;\n }\n return node;\n }\n // @api\n function updateObjectBindingPattern(node, elements) {\n return node.elements !== elements\n ? update(createObjectBindingPattern(elements), node)\n : node;\n }\n // @api\n function createArrayBindingPattern(elements) {\n var node = createBaseNode(200 /* ArrayBindingPattern */);\n node.elements = createNodeArray(elements);\n node.transformFlags |=\n propagateChildrenFlags(node.elements) |\n 512 /* ContainsES2015 */ |\n 262144 /* ContainsBindingPattern */;\n return node;\n }\n // @api\n function updateArrayBindingPattern(node, elements) {\n return node.elements !== elements\n ? update(createArrayBindingPattern(elements), node)\n : node;\n }\n // @api\n function createBindingElement(dotDotDotToken, propertyName, name, initializer) {\n var node = createBaseBindingLikeDeclaration(201 /* BindingElement */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, name, initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer));\n node.propertyName = asName(propertyName);\n node.dotDotDotToken = dotDotDotToken;\n node.transformFlags |=\n propagateChildFlags(node.dotDotDotToken) |\n 512 /* ContainsES2015 */;\n if (node.propertyName) {\n node.transformFlags |= ts.isIdentifier(node.propertyName) ?\n propagateIdentifierNameFlags(node.propertyName) :\n propagateChildFlags(node.propertyName);\n }\n if (dotDotDotToken)\n node.transformFlags |= 16384 /* ContainsRestOrSpread */;\n return node;\n }\n // @api\n function updateBindingElement(node, dotDotDotToken, propertyName, name, initializer) {\n return node.propertyName !== propertyName\n || node.dotDotDotToken !== dotDotDotToken\n || node.name !== name\n || node.initializer !== initializer\n ? update(createBindingElement(dotDotDotToken, propertyName, name, initializer), node)\n : node;\n }\n //\n // Expression\n //\n function createBaseExpression(kind) {\n var node = createBaseNode(kind);\n // the following properties are commonly set by the checker/binder\n return node;\n }\n // @api\n function createArrayLiteralExpression(elements, multiLine) {\n var node = createBaseExpression(202 /* ArrayLiteralExpression */);\n // Ensure we add a trailing comma for something like `[NumericLiteral(1), NumericLiteral(2), OmittedExpresion]` so that\n // we end up with `[1, 2, ,]` instead of `[1, 2, ]` otherwise the `OmittedExpression` will just end up being treated like\n // a trailing comma.\n var lastElement = elements && ts.lastOrUndefined(elements);\n var elementsArray = createNodeArray(elements, lastElement && ts.isOmittedExpression(lastElement) ? true : undefined);\n node.elements = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(elementsArray);\n node.multiLine = multiLine;\n node.transformFlags |= propagateChildrenFlags(node.elements);\n return node;\n }\n // @api\n function updateArrayLiteralExpression(node, elements) {\n return node.elements !== elements\n ? update(createArrayLiteralExpression(elements, node.multiLine), node)\n : node;\n }\n // @api\n function createObjectLiteralExpression(properties, multiLine) {\n var node = createBaseExpression(203 /* ObjectLiteralExpression */);\n node.properties = createNodeArray(properties);\n node.multiLine = multiLine;\n node.transformFlags |= propagateChildrenFlags(node.properties);\n return node;\n }\n // @api\n function updateObjectLiteralExpression(node, properties) {\n return node.properties !== properties\n ? update(createObjectLiteralExpression(properties, node.multiLine), node)\n : node;\n }\n // @api\n function createPropertyAccessExpression(expression, name) {\n var node = createBaseExpression(204 /* PropertyAccessExpression */);\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.name = asName(name);\n node.transformFlags =\n propagateChildFlags(node.expression) |\n (ts.isIdentifier(node.name) ?\n propagateIdentifierNameFlags(node.name) :\n propagateChildFlags(node.name));\n if (ts.isSuperKeyword(expression)) {\n // super method calls require a lexical 'this'\n // super method calls require 'super' hoisting in ES2017 and ES2018 async functions and async generators\n node.transformFlags |=\n 128 /* ContainsES2017 */ |\n 64 /* ContainsES2018 */;\n }\n return node;\n }\n // @api\n function updatePropertyAccessExpression(node, expression, name) {\n if (ts.isPropertyAccessChain(node)) {\n return updatePropertyAccessChain(node, expression, node.questionDotToken, ts.cast(name, ts.isIdentifier));\n }\n return node.expression !== expression\n || node.name !== name\n ? update(createPropertyAccessExpression(expression, name), node)\n : node;\n }\n // @api\n function createPropertyAccessChain(expression, questionDotToken, name) {\n var node = createBaseExpression(204 /* PropertyAccessExpression */);\n node.flags |= 32 /* OptionalChain */;\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.questionDotToken = questionDotToken;\n node.name = asName(name);\n node.transformFlags |=\n 16 /* ContainsES2020 */ |\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.questionDotToken) |\n (ts.isIdentifier(node.name) ?\n propagateIdentifierNameFlags(node.name) :\n propagateChildFlags(node.name));\n return node;\n }\n // @api\n function updatePropertyAccessChain(node, expression, questionDotToken, name) {\n ts.Debug.assert(!!(node.flags & 32 /* OptionalChain */), \"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead.\");\n // Because we are updating an existing PropertyAccessChain we want to inherit its emitFlags\n // instead of using the default from createPropertyAccess\n return node.expression !== expression\n || node.questionDotToken !== questionDotToken\n || node.name !== name\n ? update(createPropertyAccessChain(expression, questionDotToken, name), node)\n : node;\n }\n // @api\n function createElementAccessExpression(expression, index) {\n var node = createBaseExpression(205 /* ElementAccessExpression */);\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.argumentExpression = asExpression(index);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.argumentExpression);\n if (ts.isSuperKeyword(expression)) {\n // super method calls require a lexical 'this'\n // super method calls require 'super' hoisting in ES2017 and ES2018 async functions and async generators\n node.transformFlags |=\n 128 /* ContainsES2017 */ |\n 64 /* ContainsES2018 */;\n }\n return node;\n }\n // @api\n function updateElementAccessExpression(node, expression, argumentExpression) {\n if (ts.isElementAccessChain(node)) {\n return updateElementAccessChain(node, expression, node.questionDotToken, argumentExpression);\n }\n return node.expression !== expression\n || node.argumentExpression !== argumentExpression\n ? update(createElementAccessExpression(expression, argumentExpression), node)\n : node;\n }\n // @api\n function createElementAccessChain(expression, questionDotToken, index) {\n var node = createBaseExpression(205 /* ElementAccessExpression */);\n node.flags |= 32 /* OptionalChain */;\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.questionDotToken = questionDotToken;\n node.argumentExpression = asExpression(index);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.questionDotToken) |\n propagateChildFlags(node.argumentExpression) |\n 16 /* ContainsES2020 */;\n return node;\n }\n // @api\n function updateElementAccessChain(node, expression, questionDotToken, argumentExpression) {\n ts.Debug.assert(!!(node.flags & 32 /* OptionalChain */), \"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead.\");\n // Because we are updating an existing ElementAccessChain we want to inherit its emitFlags\n // instead of using the default from createElementAccess\n return node.expression !== expression\n || node.questionDotToken !== questionDotToken\n || node.argumentExpression !== argumentExpression\n ? update(createElementAccessChain(expression, questionDotToken, argumentExpression), node)\n : node;\n }\n // @api\n function createCallExpression(expression, typeArguments, argumentsArray) {\n var node = createBaseExpression(206 /* CallExpression */);\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.typeArguments = asNodeArray(typeArguments);\n node.arguments = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray));\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildrenFlags(node.typeArguments) |\n propagateChildrenFlags(node.arguments);\n if (node.typeArguments) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n if (ts.isImportKeyword(node.expression)) {\n node.transformFlags |= 4194304 /* ContainsDynamicImport */;\n }\n else if (ts.isSuperProperty(node.expression)) {\n node.transformFlags |= 8192 /* ContainsLexicalThis */;\n }\n return node;\n }\n // @api\n function updateCallExpression(node, expression, typeArguments, argumentsArray) {\n if (ts.isCallChain(node)) {\n return updateCallChain(node, expression, node.questionDotToken, typeArguments, argumentsArray);\n }\n return node.expression !== expression\n || node.typeArguments !== typeArguments\n || node.arguments !== argumentsArray\n ? update(createCallExpression(expression, typeArguments, argumentsArray), node)\n : node;\n }\n // @api\n function createCallChain(expression, questionDotToken, typeArguments, argumentsArray) {\n var node = createBaseExpression(206 /* CallExpression */);\n node.flags |= 32 /* OptionalChain */;\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.questionDotToken = questionDotToken;\n node.typeArguments = asNodeArray(typeArguments);\n node.arguments = parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(createNodeArray(argumentsArray));\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.questionDotToken) |\n propagateChildrenFlags(node.typeArguments) |\n propagateChildrenFlags(node.arguments) |\n 16 /* ContainsES2020 */;\n if (node.typeArguments) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n if (ts.isSuperProperty(node.expression)) {\n node.transformFlags |= 8192 /* ContainsLexicalThis */;\n }\n return node;\n }\n // @api\n function updateCallChain(node, expression, questionDotToken, typeArguments, argumentsArray) {\n ts.Debug.assert(!!(node.flags & 32 /* OptionalChain */), \"Cannot update a CallExpression using updateCallChain. Use updateCall instead.\");\n return node.expression !== expression\n || node.questionDotToken !== questionDotToken\n || node.typeArguments !== typeArguments\n || node.arguments !== argumentsArray\n ? update(createCallChain(expression, questionDotToken, typeArguments, argumentsArray), node)\n : node;\n }\n // @api\n function createNewExpression(expression, typeArguments, argumentsArray) {\n var node = createBaseExpression(207 /* NewExpression */);\n node.expression = parenthesizerRules().parenthesizeExpressionOfNew(expression);\n node.typeArguments = asNodeArray(typeArguments);\n node.arguments = argumentsArray ? parenthesizerRules().parenthesizeExpressionsOfCommaDelimitedList(argumentsArray) : undefined;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildrenFlags(node.typeArguments) |\n propagateChildrenFlags(node.arguments) |\n 16 /* ContainsES2020 */;\n if (node.typeArguments) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n return node;\n }\n // @api\n function updateNewExpression(node, expression, typeArguments, argumentsArray) {\n return node.expression !== expression\n || node.typeArguments !== typeArguments\n || node.arguments !== argumentsArray\n ? update(createNewExpression(expression, typeArguments, argumentsArray), node)\n : node;\n }\n // @api\n function createTaggedTemplateExpression(tag, typeArguments, template) {\n var node = createBaseExpression(208 /* TaggedTemplateExpression */);\n node.tag = parenthesizerRules().parenthesizeLeftSideOfAccess(tag);\n node.typeArguments = asNodeArray(typeArguments);\n node.template = template;\n node.transformFlags |=\n propagateChildFlags(node.tag) |\n propagateChildrenFlags(node.typeArguments) |\n propagateChildFlags(node.template) |\n 512 /* ContainsES2015 */;\n if (node.typeArguments) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n if (ts.hasInvalidEscape(node.template)) {\n node.transformFlags |= 64 /* ContainsES2018 */;\n }\n return node;\n }\n // @api\n function updateTaggedTemplateExpression(node, tag, typeArguments, template) {\n return node.tag !== tag\n || node.typeArguments !== typeArguments\n || node.template !== template\n ? update(createTaggedTemplateExpression(tag, typeArguments, template), node)\n : node;\n }\n // @api\n function createTypeAssertion(type, expression) {\n var node = createBaseExpression(209 /* TypeAssertionExpression */);\n node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n node.type = type;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.type) |\n 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeAssertion(node, type, expression) {\n return node.type !== type\n || node.expression !== expression\n ? update(createTypeAssertion(type, expression), node)\n : node;\n }\n // @api\n function createParenthesizedExpression(expression) {\n var node = createBaseExpression(210 /* ParenthesizedExpression */);\n node.expression = expression;\n node.transformFlags = propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateParenthesizedExpression(node, expression) {\n return node.expression !== expression\n ? update(createParenthesizedExpression(expression), node)\n : node;\n }\n // @api\n function createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n var node = createBaseFunctionLikeDeclaration(211 /* FunctionExpression */, \n /*decorators*/ undefined, modifiers, name, typeParameters, parameters, type, body);\n node.asteriskToken = asteriskToken;\n node.transformFlags |= propagateChildFlags(node.asteriskToken);\n if (node.typeParameters) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n if (ts.modifiersToFlags(node.modifiers) & 256 /* Async */) {\n if (node.asteriskToken) {\n node.transformFlags |= 64 /* ContainsES2018 */;\n }\n else {\n node.transformFlags |= 128 /* ContainsES2017 */;\n }\n }\n else if (node.asteriskToken) {\n node.transformFlags |= 1024 /* ContainsGenerator */;\n }\n return node;\n }\n // @api\n function updateFunctionExpression(node, modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n return node.name !== name\n || node.modifiers !== modifiers\n || node.asteriskToken !== asteriskToken\n || node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body), node)\n : node;\n }\n // @api\n function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {\n var node = createBaseFunctionLikeDeclaration(212 /* ArrowFunction */, \n /*decorators*/ undefined, modifiers, \n /*name*/ undefined, typeParameters, parameters, type, parenthesizerRules().parenthesizeConciseBodyOfArrowFunction(body));\n node.equalsGreaterThanToken = equalsGreaterThanToken !== null && equalsGreaterThanToken !== void 0 ? equalsGreaterThanToken : createToken(38 /* EqualsGreaterThanToken */);\n node.transformFlags |=\n propagateChildFlags(node.equalsGreaterThanToken) |\n 512 /* ContainsES2015 */;\n if (ts.modifiersToFlags(node.modifiers) & 256 /* Async */) {\n node.transformFlags |= 128 /* ContainsES2017 */ | 8192 /* ContainsLexicalThis */;\n }\n return node;\n }\n // @api\n function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body) {\n return node.modifiers !== modifiers\n || node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n || node.equalsGreaterThanToken !== equalsGreaterThanToken\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body), node)\n : node;\n }\n // @api\n function createDeleteExpression(expression) {\n var node = createBaseExpression(213 /* DeleteExpression */);\n node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n node.transformFlags |= propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateDeleteExpression(node, expression) {\n return node.expression !== expression\n ? update(createDeleteExpression(expression), node)\n : node;\n }\n // @api\n function createTypeOfExpression(expression) {\n var node = createBaseExpression(214 /* TypeOfExpression */);\n node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n node.transformFlags |= propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateTypeOfExpression(node, expression) {\n return node.expression !== expression\n ? update(createTypeOfExpression(expression), node)\n : node;\n }\n // @api\n function createVoidExpression(expression) {\n var node = createBaseExpression(215 /* VoidExpression */);\n node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n node.transformFlags |= propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateVoidExpression(node, expression) {\n return node.expression !== expression\n ? update(createVoidExpression(expression), node)\n : node;\n }\n // @api\n function createAwaitExpression(expression) {\n var node = createBaseExpression(216 /* AwaitExpression */);\n node.expression = parenthesizerRules().parenthesizeOperandOfPrefixUnary(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 128 /* ContainsES2017 */ |\n 64 /* ContainsES2018 */ |\n 1048576 /* ContainsAwait */;\n return node;\n }\n // @api\n function updateAwaitExpression(node, expression) {\n return node.expression !== expression\n ? update(createAwaitExpression(expression), node)\n : node;\n }\n // @api\n function createPrefixUnaryExpression(operator, operand) {\n var node = createBaseExpression(217 /* PrefixUnaryExpression */);\n node.operator = operator;\n node.operand = parenthesizerRules().parenthesizeOperandOfPrefixUnary(operand);\n node.transformFlags |= propagateChildFlags(node.operand);\n // Only set this flag for non-generated identifiers and non-\"local\" names. See the\n // comment in `visitPreOrPostfixUnaryExpression` in module.ts\n if ((operator === 45 /* PlusPlusToken */ || operator === 46 /* MinusMinusToken */) &&\n ts.isIdentifier(node.operand) &&\n !ts.isGeneratedIdentifier(node.operand) &&\n !ts.isLocalName(node.operand)) {\n node.transformFlags |= 67108864 /* ContainsUpdateExpressionForIdentifier */;\n }\n return node;\n }\n // @api\n function updatePrefixUnaryExpression(node, operand) {\n return node.operand !== operand\n ? update(createPrefixUnaryExpression(node.operator, operand), node)\n : node;\n }\n // @api\n function createPostfixUnaryExpression(operand, operator) {\n var node = createBaseExpression(218 /* PostfixUnaryExpression */);\n node.operator = operator;\n node.operand = parenthesizerRules().parenthesizeOperandOfPostfixUnary(operand);\n node.transformFlags |= propagateChildFlags(node.operand);\n // Only set this flag for non-generated identifiers and non-\"local\" names. See the\n // comment in `visitPreOrPostfixUnaryExpression` in module.ts\n if (ts.isIdentifier(node.operand) &&\n !ts.isGeneratedIdentifier(node.operand) &&\n !ts.isLocalName(node.operand)) {\n node.transformFlags |= 67108864 /* ContainsUpdateExpressionForIdentifier */;\n }\n return node;\n }\n // @api\n function updatePostfixUnaryExpression(node, operand) {\n return node.operand !== operand\n ? update(createPostfixUnaryExpression(operand, node.operator), node)\n : node;\n }\n // @api\n function createBinaryExpression(left, operator, right) {\n var node = createBaseExpression(219 /* BinaryExpression */);\n var operatorToken = asToken(operator);\n var operatorKind = operatorToken.kind;\n node.left = parenthesizerRules().parenthesizeLeftSideOfBinary(operatorKind, left);\n node.operatorToken = operatorToken;\n node.right = parenthesizerRules().parenthesizeRightSideOfBinary(operatorKind, node.left, right);\n node.transformFlags |=\n propagateChildFlags(node.left) |\n propagateChildFlags(node.operatorToken) |\n propagateChildFlags(node.right);\n if (operatorKind === 60 /* QuestionQuestionToken */) {\n node.transformFlags |= 16 /* ContainsES2020 */;\n }\n else if (operatorKind === 63 /* EqualsToken */) {\n if (ts.isObjectLiteralExpression(node.left)) {\n node.transformFlags |=\n 512 /* ContainsES2015 */ |\n 64 /* ContainsES2018 */ |\n 2048 /* ContainsDestructuringAssignment */ |\n propagateAssignmentPatternFlags(node.left);\n }\n else if (ts.isArrayLiteralExpression(node.left)) {\n node.transformFlags |=\n 512 /* ContainsES2015 */ |\n 2048 /* ContainsDestructuringAssignment */ |\n propagateAssignmentPatternFlags(node.left);\n }\n }\n else if (operatorKind === 42 /* AsteriskAsteriskToken */ || operatorKind === 67 /* AsteriskAsteriskEqualsToken */) {\n node.transformFlags |= 256 /* ContainsES2016 */;\n }\n else if (ts.isLogicalOrCoalescingAssignmentOperator(operatorKind)) {\n node.transformFlags |= 8 /* ContainsES2021 */;\n }\n return node;\n }\n function propagateAssignmentPatternFlags(node) {\n if (node.transformFlags & 32768 /* ContainsObjectRestOrSpread */)\n return 32768 /* ContainsObjectRestOrSpread */;\n if (node.transformFlags & 64 /* ContainsES2018 */) {\n // check for nested spread assignments, otherwise '{ x: { a, ...b } = foo } = c'\n // will not be correctly interpreted by the ES2018 transformer\n for (var _i = 0, _a = ts.getElementsOfBindingOrAssignmentPattern(node); _i < _a.length; _i++) {\n var element = _a[_i];\n var target = ts.getTargetOfBindingOrAssignmentElement(element);\n if (target && ts.isAssignmentPattern(target)) {\n if (target.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n return 32768 /* ContainsObjectRestOrSpread */;\n }\n if (target.transformFlags & 64 /* ContainsES2018 */) {\n var flags_1 = propagateAssignmentPatternFlags(target);\n if (flags_1)\n return flags_1;\n }\n }\n }\n }\n return 0 /* None */;\n }\n // @api\n function updateBinaryExpression(node, left, operator, right) {\n return node.left !== left\n || node.operatorToken !== operator\n || node.right !== right\n ? update(createBinaryExpression(left, operator, right), node)\n : node;\n }\n // @api\n function createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse) {\n var node = createBaseExpression(220 /* ConditionalExpression */);\n node.condition = parenthesizerRules().parenthesizeConditionOfConditionalExpression(condition);\n node.questionToken = questionToken !== null && questionToken !== void 0 ? questionToken : createToken(57 /* QuestionToken */);\n node.whenTrue = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenTrue);\n node.colonToken = colonToken !== null && colonToken !== void 0 ? colonToken : createToken(58 /* ColonToken */);\n node.whenFalse = parenthesizerRules().parenthesizeBranchOfConditionalExpression(whenFalse);\n node.transformFlags |=\n propagateChildFlags(node.condition) |\n propagateChildFlags(node.questionToken) |\n propagateChildFlags(node.whenTrue) |\n propagateChildFlags(node.colonToken) |\n propagateChildFlags(node.whenFalse);\n return node;\n }\n // @api\n function updateConditionalExpression(node, condition, questionToken, whenTrue, colonToken, whenFalse) {\n return node.condition !== condition\n || node.questionToken !== questionToken\n || node.whenTrue !== whenTrue\n || node.colonToken !== colonToken\n || node.whenFalse !== whenFalse\n ? update(createConditionalExpression(condition, questionToken, whenTrue, colonToken, whenFalse), node)\n : node;\n }\n // @api\n function createTemplateExpression(head, templateSpans) {\n var node = createBaseExpression(221 /* TemplateExpression */);\n node.head = head;\n node.templateSpans = createNodeArray(templateSpans);\n node.transformFlags |=\n propagateChildFlags(node.head) |\n propagateChildrenFlags(node.templateSpans) |\n 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function updateTemplateExpression(node, head, templateSpans) {\n return node.head !== head\n || node.templateSpans !== templateSpans\n ? update(createTemplateExpression(head, templateSpans), node)\n : node;\n }\n function createTemplateLiteralLikeNodeChecked(kind, text, rawText, templateFlags) {\n if (templateFlags === void 0) { templateFlags = 0 /* None */; }\n ts.Debug.assert(!(templateFlags & ~2048 /* TemplateLiteralLikeFlags */), \"Unsupported template flags.\");\n // NOTE: without the assignment to `undefined`, we don't narrow the initial type of `cooked`.\n // eslint-disable-next-line no-undef-init\n var cooked = undefined;\n if (rawText !== undefined && rawText !== text) {\n cooked = getCookedText(kind, rawText);\n if (typeof cooked === \"object\") {\n return ts.Debug.fail(\"Invalid raw text\");\n }\n }\n if (text === undefined) {\n if (cooked === undefined) {\n return ts.Debug.fail(\"Arguments 'text' and 'rawText' may not both be undefined.\");\n }\n text = cooked;\n }\n else if (cooked !== undefined) {\n ts.Debug.assert(text === cooked, \"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.\");\n }\n return createTemplateLiteralLikeNode(kind, text, rawText, templateFlags);\n }\n // @api\n function createTemplateLiteralLikeNode(kind, text, rawText, templateFlags) {\n var node = createBaseToken(kind);\n node.text = text;\n node.rawText = rawText;\n node.templateFlags = templateFlags & 2048 /* TemplateLiteralLikeFlags */;\n node.transformFlags |= 512 /* ContainsES2015 */;\n if (node.templateFlags) {\n node.transformFlags |= 64 /* ContainsES2018 */;\n }\n return node;\n }\n // @api\n function createTemplateHead(text, rawText, templateFlags) {\n return createTemplateLiteralLikeNodeChecked(15 /* TemplateHead */, text, rawText, templateFlags);\n }\n // @api\n function createTemplateMiddle(text, rawText, templateFlags) {\n return createTemplateLiteralLikeNodeChecked(16 /* TemplateMiddle */, text, rawText, templateFlags);\n }\n // @api\n function createTemplateTail(text, rawText, templateFlags) {\n return createTemplateLiteralLikeNodeChecked(17 /* TemplateTail */, text, rawText, templateFlags);\n }\n // @api\n function createNoSubstitutionTemplateLiteral(text, rawText, templateFlags) {\n return createTemplateLiteralLikeNodeChecked(14 /* NoSubstitutionTemplateLiteral */, text, rawText, templateFlags);\n }\n // @api\n function createYieldExpression(asteriskToken, expression) {\n ts.Debug.assert(!asteriskToken || !!expression, \"A `YieldExpression` with an asteriskToken must have an expression.\");\n var node = createBaseExpression(222 /* YieldExpression */);\n node.expression = expression && parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n node.asteriskToken = asteriskToken;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.asteriskToken) |\n 512 /* ContainsES2015 */ |\n 64 /* ContainsES2018 */ |\n 524288 /* ContainsYield */;\n return node;\n }\n // @api\n function updateYieldExpression(node, asteriskToken, expression) {\n return node.expression !== expression\n || node.asteriskToken !== asteriskToken\n ? update(createYieldExpression(asteriskToken, expression), node)\n : node;\n }\n // @api\n function createSpreadElement(expression) {\n var node = createBaseExpression(223 /* SpreadElement */);\n node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 512 /* ContainsES2015 */ |\n 16384 /* ContainsRestOrSpread */;\n return node;\n }\n // @api\n function updateSpreadElement(node, expression) {\n return node.expression !== expression\n ? update(createSpreadElement(expression), node)\n : node;\n }\n // @api\n function createClassExpression(decorators, modifiers, name, typeParameters, heritageClauses, members) {\n var node = createBaseClassLikeDeclaration(224 /* ClassExpression */, decorators, modifiers, name, typeParameters, heritageClauses, members);\n node.transformFlags |= 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function updateClassExpression(node, decorators, modifiers, name, typeParameters, heritageClauses, members) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.typeParameters !== typeParameters\n || node.heritageClauses !== heritageClauses\n || node.members !== members\n ? update(createClassExpression(decorators, modifiers, name, typeParameters, heritageClauses, members), node)\n : node;\n }\n // @api\n function createOmittedExpression() {\n return createBaseExpression(225 /* OmittedExpression */);\n }\n // @api\n function createExpressionWithTypeArguments(expression, typeArguments) {\n var node = createBaseNode(226 /* ExpressionWithTypeArguments */);\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.typeArguments = typeArguments && parenthesizerRules().parenthesizeTypeArguments(typeArguments);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildrenFlags(node.typeArguments) |\n 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function updateExpressionWithTypeArguments(node, expression, typeArguments) {\n return node.expression !== expression\n || node.typeArguments !== typeArguments\n ? update(createExpressionWithTypeArguments(expression, typeArguments), node)\n : node;\n }\n // @api\n function createAsExpression(expression, type) {\n var node = createBaseExpression(227 /* AsExpression */);\n node.expression = expression;\n node.type = type;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.type) |\n 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateAsExpression(node, expression, type) {\n return node.expression !== expression\n || node.type !== type\n ? update(createAsExpression(expression, type), node)\n : node;\n }\n // @api\n function createNonNullExpression(expression) {\n var node = createBaseExpression(228 /* NonNullExpression */);\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateNonNullExpression(node, expression) {\n if (ts.isNonNullChain(node)) {\n return updateNonNullChain(node, expression);\n }\n return node.expression !== expression\n ? update(createNonNullExpression(expression), node)\n : node;\n }\n // @api\n function createNonNullChain(expression) {\n var node = createBaseExpression(228 /* NonNullExpression */);\n node.flags |= 32 /* OptionalChain */;\n node.expression = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateNonNullChain(node, expression) {\n ts.Debug.assert(!!(node.flags & 32 /* OptionalChain */), \"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead.\");\n return node.expression !== expression\n ? update(createNonNullChain(expression), node)\n : node;\n }\n // @api\n function createMetaProperty(keywordToken, name) {\n var node = createBaseExpression(229 /* MetaProperty */);\n node.keywordToken = keywordToken;\n node.name = name;\n node.transformFlags |= propagateChildFlags(node.name);\n switch (keywordToken) {\n case 103 /* NewKeyword */:\n node.transformFlags |= 512 /* ContainsES2015 */;\n break;\n case 100 /* ImportKeyword */:\n node.transformFlags |= 4 /* ContainsESNext */;\n break;\n default:\n return ts.Debug.assertNever(keywordToken);\n }\n return node;\n }\n // @api\n function updateMetaProperty(node, name) {\n return node.name !== name\n ? update(createMetaProperty(node.keywordToken, name), node)\n : node;\n }\n //\n // Misc\n //\n // @api\n function createTemplateSpan(expression, literal) {\n var node = createBaseNode(231 /* TemplateSpan */);\n node.expression = expression;\n node.literal = literal;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.literal) |\n 512 /* ContainsES2015 */;\n return node;\n }\n // @api\n function updateTemplateSpan(node, expression, literal) {\n return node.expression !== expression\n || node.literal !== literal\n ? update(createTemplateSpan(expression, literal), node)\n : node;\n }\n // @api\n function createSemicolonClassElement() {\n var node = createBaseNode(232 /* SemicolonClassElement */);\n node.transformFlags |= 512 /* ContainsES2015 */;\n return node;\n }\n //\n // Element\n //\n // @api\n function createBlock(statements, multiLine) {\n var node = createBaseNode(233 /* Block */);\n node.statements = createNodeArray(statements);\n node.multiLine = multiLine;\n node.transformFlags |= propagateChildrenFlags(node.statements);\n return node;\n }\n // @api\n function updateBlock(node, statements) {\n return node.statements !== statements\n ? update(createBlock(statements, node.multiLine), node)\n : node;\n }\n // @api\n function createVariableStatement(modifiers, declarationList) {\n var node = createBaseDeclaration(235 /* VariableStatement */, /*decorators*/ undefined, modifiers);\n node.declarationList = ts.isArray(declarationList) ? createVariableDeclarationList(declarationList) : declarationList;\n node.transformFlags |=\n propagateChildFlags(node.declarationList);\n if (ts.modifiersToFlags(node.modifiers) & 2 /* Ambient */) {\n node.transformFlags = 1 /* ContainsTypeScript */;\n }\n return node;\n }\n // @api\n function updateVariableStatement(node, modifiers, declarationList) {\n return node.modifiers !== modifiers\n || node.declarationList !== declarationList\n ? update(createVariableStatement(modifiers, declarationList), node)\n : node;\n }\n // @api\n function createEmptyStatement() {\n return createBaseNode(234 /* EmptyStatement */);\n }\n // @api\n function createExpressionStatement(expression) {\n var node = createBaseNode(236 /* ExpressionStatement */);\n node.expression = parenthesizerRules().parenthesizeExpressionOfExpressionStatement(expression);\n node.transformFlags |= propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateExpressionStatement(node, expression) {\n return node.expression !== expression\n ? update(createExpressionStatement(expression), node)\n : node;\n }\n // @api\n function createIfStatement(expression, thenStatement, elseStatement) {\n var node = createBaseNode(237 /* IfStatement */);\n node.expression = expression;\n node.thenStatement = asEmbeddedStatement(thenStatement);\n node.elseStatement = asEmbeddedStatement(elseStatement);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.thenStatement) |\n propagateChildFlags(node.elseStatement);\n return node;\n }\n // @api\n function updateIfStatement(node, expression, thenStatement, elseStatement) {\n return node.expression !== expression\n || node.thenStatement !== thenStatement\n || node.elseStatement !== elseStatement\n ? update(createIfStatement(expression, thenStatement, elseStatement), node)\n : node;\n }\n // @api\n function createDoStatement(statement, expression) {\n var node = createBaseNode(238 /* DoStatement */);\n node.statement = asEmbeddedStatement(statement);\n node.expression = expression;\n node.transformFlags |=\n propagateChildFlags(node.statement) |\n propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateDoStatement(node, statement, expression) {\n return node.statement !== statement\n || node.expression !== expression\n ? update(createDoStatement(statement, expression), node)\n : node;\n }\n // @api\n function createWhileStatement(expression, statement) {\n var node = createBaseNode(239 /* WhileStatement */);\n node.expression = expression;\n node.statement = asEmbeddedStatement(statement);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.statement);\n return node;\n }\n // @api\n function updateWhileStatement(node, expression, statement) {\n return node.expression !== expression\n || node.statement !== statement\n ? update(createWhileStatement(expression, statement), node)\n : node;\n }\n // @api\n function createForStatement(initializer, condition, incrementor, statement) {\n var node = createBaseNode(240 /* ForStatement */);\n node.initializer = initializer;\n node.condition = condition;\n node.incrementor = incrementor;\n node.statement = asEmbeddedStatement(statement);\n node.transformFlags |=\n propagateChildFlags(node.initializer) |\n propagateChildFlags(node.condition) |\n propagateChildFlags(node.incrementor) |\n propagateChildFlags(node.statement);\n return node;\n }\n // @api\n function updateForStatement(node, initializer, condition, incrementor, statement) {\n return node.initializer !== initializer\n || node.condition !== condition\n || node.incrementor !== incrementor\n || node.statement !== statement\n ? update(createForStatement(initializer, condition, incrementor, statement), node)\n : node;\n }\n // @api\n function createForInStatement(initializer, expression, statement) {\n var node = createBaseNode(241 /* ForInStatement */);\n node.initializer = initializer;\n node.expression = expression;\n node.statement = asEmbeddedStatement(statement);\n node.transformFlags |=\n propagateChildFlags(node.initializer) |\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.statement);\n return node;\n }\n // @api\n function updateForInStatement(node, initializer, expression, statement) {\n return node.initializer !== initializer\n || node.expression !== expression\n || node.statement !== statement\n ? update(createForInStatement(initializer, expression, statement), node)\n : node;\n }\n // @api\n function createForOfStatement(awaitModifier, initializer, expression, statement) {\n var node = createBaseNode(242 /* ForOfStatement */);\n node.awaitModifier = awaitModifier;\n node.initializer = initializer;\n node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n node.statement = asEmbeddedStatement(statement);\n node.transformFlags |=\n propagateChildFlags(node.awaitModifier) |\n propagateChildFlags(node.initializer) |\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.statement) |\n 512 /* ContainsES2015 */;\n if (awaitModifier)\n node.transformFlags |= 64 /* ContainsES2018 */;\n return node;\n }\n // @api\n function updateForOfStatement(node, awaitModifier, initializer, expression, statement) {\n return node.awaitModifier !== awaitModifier\n || node.initializer !== initializer\n || node.expression !== expression\n || node.statement !== statement\n ? update(createForOfStatement(awaitModifier, initializer, expression, statement), node)\n : node;\n }\n // @api\n function createContinueStatement(label) {\n var node = createBaseNode(243 /* ContinueStatement */);\n node.label = asName(label);\n node.transformFlags |=\n propagateChildFlags(node.label) |\n 2097152 /* ContainsHoistedDeclarationOrCompletion */;\n return node;\n }\n // @api\n function updateContinueStatement(node, label) {\n return node.label !== label\n ? update(createContinueStatement(label), node)\n : node;\n }\n // @api\n function createBreakStatement(label) {\n var node = createBaseNode(244 /* BreakStatement */);\n node.label = asName(label);\n node.transformFlags |=\n propagateChildFlags(node.label) |\n 2097152 /* ContainsHoistedDeclarationOrCompletion */;\n return node;\n }\n // @api\n function updateBreakStatement(node, label) {\n return node.label !== label\n ? update(createBreakStatement(label), node)\n : node;\n }\n // @api\n function createReturnStatement(expression) {\n var node = createBaseNode(245 /* ReturnStatement */);\n node.expression = expression;\n // return in an ES2018 async generator must be awaited\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 64 /* ContainsES2018 */ |\n 2097152 /* ContainsHoistedDeclarationOrCompletion */;\n return node;\n }\n // @api\n function updateReturnStatement(node, expression) {\n return node.expression !== expression\n ? update(createReturnStatement(expression), node)\n : node;\n }\n // @api\n function createWithStatement(expression, statement) {\n var node = createBaseNode(246 /* WithStatement */);\n node.expression = expression;\n node.statement = asEmbeddedStatement(statement);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.statement);\n return node;\n }\n // @api\n function updateWithStatement(node, expression, statement) {\n return node.expression !== expression\n || node.statement !== statement\n ? update(createWithStatement(expression, statement), node)\n : node;\n }\n // @api\n function createSwitchStatement(expression, caseBlock) {\n var node = createBaseNode(247 /* SwitchStatement */);\n node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n node.caseBlock = caseBlock;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.caseBlock);\n return node;\n }\n // @api\n function updateSwitchStatement(node, expression, caseBlock) {\n return node.expression !== expression\n || node.caseBlock !== caseBlock\n ? update(createSwitchStatement(expression, caseBlock), node)\n : node;\n }\n // @api\n function createLabeledStatement(label, statement) {\n var node = createBaseNode(248 /* LabeledStatement */);\n node.label = asName(label);\n node.statement = asEmbeddedStatement(statement);\n node.transformFlags |=\n propagateChildFlags(node.label) |\n propagateChildFlags(node.statement);\n return node;\n }\n // @api\n function updateLabeledStatement(node, label, statement) {\n return node.label !== label\n || node.statement !== statement\n ? update(createLabeledStatement(label, statement), node)\n : node;\n }\n // @api\n function createThrowStatement(expression) {\n var node = createBaseNode(249 /* ThrowStatement */);\n node.expression = expression;\n node.transformFlags |= propagateChildFlags(node.expression);\n return node;\n }\n // @api\n function updateThrowStatement(node, expression) {\n return node.expression !== expression\n ? update(createThrowStatement(expression), node)\n : node;\n }\n // @api\n function createTryStatement(tryBlock, catchClause, finallyBlock) {\n var node = createBaseNode(250 /* TryStatement */);\n node.tryBlock = tryBlock;\n node.catchClause = catchClause;\n node.finallyBlock = finallyBlock;\n node.transformFlags |=\n propagateChildFlags(node.tryBlock) |\n propagateChildFlags(node.catchClause) |\n propagateChildFlags(node.finallyBlock);\n return node;\n }\n // @api\n function updateTryStatement(node, tryBlock, catchClause, finallyBlock) {\n return node.tryBlock !== tryBlock\n || node.catchClause !== catchClause\n || node.finallyBlock !== finallyBlock\n ? update(createTryStatement(tryBlock, catchClause, finallyBlock), node)\n : node;\n }\n // @api\n function createDebuggerStatement() {\n return createBaseNode(251 /* DebuggerStatement */);\n }\n // @api\n function createVariableDeclaration(name, exclamationToken, type, initializer) {\n var node = createBaseVariableLikeDeclaration(252 /* VariableDeclaration */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, name, type, initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer));\n node.exclamationToken = exclamationToken;\n node.transformFlags |= propagateChildFlags(node.exclamationToken);\n if (exclamationToken) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n return node;\n }\n // @api\n function updateVariableDeclaration(node, name, exclamationToken, type, initializer) {\n return node.name !== name\n || node.type !== type\n || node.exclamationToken !== exclamationToken\n || node.initializer !== initializer\n ? update(createVariableDeclaration(name, exclamationToken, type, initializer), node)\n : node;\n }\n // @api\n function createVariableDeclarationList(declarations, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n var node = createBaseNode(253 /* VariableDeclarationList */);\n node.flags |= flags & 3 /* BlockScoped */;\n node.declarations = createNodeArray(declarations);\n node.transformFlags |=\n propagateChildrenFlags(node.declarations) |\n 2097152 /* ContainsHoistedDeclarationOrCompletion */;\n if (flags & 3 /* BlockScoped */) {\n node.transformFlags |=\n 512 /* ContainsES2015 */ |\n 131072 /* ContainsBlockScopedBinding */;\n }\n return node;\n }\n // @api\n function updateVariableDeclarationList(node, declarations) {\n return node.declarations !== declarations\n ? update(createVariableDeclarationList(declarations, node.flags), node)\n : node;\n }\n // @api\n function createFunctionDeclaration(decorators, modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n var node = createBaseFunctionLikeDeclaration(254 /* FunctionDeclaration */, decorators, modifiers, name, typeParameters, parameters, type, body);\n node.asteriskToken = asteriskToken;\n if (!node.body || ts.modifiersToFlags(node.modifiers) & 2 /* Ambient */) {\n node.transformFlags = 1 /* ContainsTypeScript */;\n }\n else {\n node.transformFlags |=\n propagateChildFlags(node.asteriskToken) |\n 2097152 /* ContainsHoistedDeclarationOrCompletion */;\n if (ts.modifiersToFlags(node.modifiers) & 256 /* Async */) {\n if (node.asteriskToken) {\n node.transformFlags |= 64 /* ContainsES2018 */;\n }\n else {\n node.transformFlags |= 128 /* ContainsES2017 */;\n }\n }\n else if (node.asteriskToken) {\n node.transformFlags |= 1024 /* ContainsGenerator */;\n }\n }\n return node;\n }\n // @api\n function updateFunctionDeclaration(node, decorators, modifiers, asteriskToken, name, typeParameters, parameters, type, body) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.asteriskToken !== asteriskToken\n || node.name !== name\n || node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n || node.body !== body\n ? updateBaseFunctionLikeDeclaration(createFunctionDeclaration(decorators, modifiers, asteriskToken, name, typeParameters, parameters, type, body), node)\n : node;\n }\n // @api\n function createClassDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members) {\n var node = createBaseClassLikeDeclaration(255 /* ClassDeclaration */, decorators, modifiers, name, typeParameters, heritageClauses, members);\n if (ts.modifiersToFlags(node.modifiers) & 2 /* Ambient */) {\n node.transformFlags = 1 /* ContainsTypeScript */;\n }\n else {\n node.transformFlags |= 512 /* ContainsES2015 */;\n if (node.transformFlags & 4096 /* ContainsTypeScriptClassSyntax */) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n }\n return node;\n }\n // @api\n function updateClassDeclaration(node, decorators, modifiers, name, typeParameters, heritageClauses, members) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.typeParameters !== typeParameters\n || node.heritageClauses !== heritageClauses\n || node.members !== members\n ? update(createClassDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members), node)\n : node;\n }\n // @api\n function createInterfaceDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members) {\n var node = createBaseInterfaceOrClassLikeDeclaration(256 /* InterfaceDeclaration */, decorators, modifiers, name, typeParameters, heritageClauses);\n node.members = createNodeArray(members);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateInterfaceDeclaration(node, decorators, modifiers, name, typeParameters, heritageClauses, members) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.typeParameters !== typeParameters\n || node.heritageClauses !== heritageClauses\n || node.members !== members\n ? update(createInterfaceDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members), node)\n : node;\n }\n // @api\n function createTypeAliasDeclaration(decorators, modifiers, name, typeParameters, type) {\n var node = createBaseGenericNamedDeclaration(257 /* TypeAliasDeclaration */, decorators, modifiers, name, typeParameters);\n node.type = type;\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateTypeAliasDeclaration(node, decorators, modifiers, name, typeParameters, type) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.typeParameters !== typeParameters\n || node.type !== type\n ? update(createTypeAliasDeclaration(decorators, modifiers, name, typeParameters, type), node)\n : node;\n }\n // @api\n function createEnumDeclaration(decorators, modifiers, name, members) {\n var node = createBaseNamedDeclaration(258 /* EnumDeclaration */, decorators, modifiers, name);\n node.members = createNodeArray(members);\n node.transformFlags |=\n propagateChildrenFlags(node.members) |\n 1 /* ContainsTypeScript */;\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // Enum declarations cannot contain `await`\n return node;\n }\n // @api\n function updateEnumDeclaration(node, decorators, modifiers, name, members) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.members !== members\n ? update(createEnumDeclaration(decorators, modifiers, name, members), node)\n : node;\n }\n // @api\n function createModuleDeclaration(decorators, modifiers, name, body, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n var node = createBaseDeclaration(259 /* ModuleDeclaration */, decorators, modifiers);\n node.flags |= flags & (16 /* Namespace */ | 4 /* NestedNamespace */ | 1024 /* GlobalAugmentation */);\n node.name = name;\n node.body = body;\n if (ts.modifiersToFlags(node.modifiers) & 2 /* Ambient */) {\n node.transformFlags = 1 /* ContainsTypeScript */;\n }\n else {\n node.transformFlags |=\n propagateChildFlags(node.name) |\n propagateChildFlags(node.body) |\n 1 /* ContainsTypeScript */;\n }\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // Module declarations cannot contain `await`.\n return node;\n }\n // @api\n function updateModuleDeclaration(node, decorators, modifiers, name, body) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.name !== name\n || node.body !== body\n ? update(createModuleDeclaration(decorators, modifiers, name, body, node.flags), node)\n : node;\n }\n // @api\n function createModuleBlock(statements) {\n var node = createBaseNode(260 /* ModuleBlock */);\n node.statements = createNodeArray(statements);\n node.transformFlags |= propagateChildrenFlags(node.statements);\n return node;\n }\n // @api\n function updateModuleBlock(node, statements) {\n return node.statements !== statements\n ? update(createModuleBlock(statements), node)\n : node;\n }\n // @api\n function createCaseBlock(clauses) {\n var node = createBaseNode(261 /* CaseBlock */);\n node.clauses = createNodeArray(clauses);\n node.transformFlags |= propagateChildrenFlags(node.clauses);\n return node;\n }\n // @api\n function updateCaseBlock(node, clauses) {\n return node.clauses !== clauses\n ? update(createCaseBlock(clauses), node)\n : node;\n }\n // @api\n function createNamespaceExportDeclaration(name) {\n var node = createBaseNamedDeclaration(262 /* NamespaceExportDeclaration */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, name);\n node.transformFlags = 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateNamespaceExportDeclaration(node, name) {\n return node.name !== name\n ? update(createNamespaceExportDeclaration(name), node)\n : node;\n }\n // @api\n function createImportEqualsDeclaration(decorators, modifiers, isTypeOnly, name, moduleReference) {\n var node = createBaseNamedDeclaration(263 /* ImportEqualsDeclaration */, decorators, modifiers, name);\n node.isTypeOnly = isTypeOnly;\n node.moduleReference = moduleReference;\n node.transformFlags |= propagateChildFlags(node.moduleReference);\n if (!ts.isExternalModuleReference(node.moduleReference))\n node.transformFlags |= 1 /* ContainsTypeScript */;\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // Import= declaration is always parsed in an Await context\n return node;\n }\n // @api\n function updateImportEqualsDeclaration(node, decorators, modifiers, isTypeOnly, name, moduleReference) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.isTypeOnly !== isTypeOnly\n || node.name !== name\n || node.moduleReference !== moduleReference\n ? update(createImportEqualsDeclaration(decorators, modifiers, isTypeOnly, name, moduleReference), node)\n : node;\n }\n // @api\n function createImportDeclaration(decorators, modifiers, importClause, moduleSpecifier) {\n var node = createBaseDeclaration(264 /* ImportDeclaration */, decorators, modifiers);\n node.importClause = importClause;\n node.moduleSpecifier = moduleSpecifier;\n node.transformFlags |=\n propagateChildFlags(node.importClause) |\n propagateChildFlags(node.moduleSpecifier);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateImportDeclaration(node, decorators, modifiers, importClause, moduleSpecifier) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.importClause !== importClause\n || node.moduleSpecifier !== moduleSpecifier\n ? update(createImportDeclaration(decorators, modifiers, importClause, moduleSpecifier), node)\n : node;\n }\n // @api\n function createImportClause(isTypeOnly, name, namedBindings) {\n var node = createBaseNode(265 /* ImportClause */);\n node.isTypeOnly = isTypeOnly;\n node.name = name;\n node.namedBindings = namedBindings;\n node.transformFlags |=\n propagateChildFlags(node.name) |\n propagateChildFlags(node.namedBindings);\n if (isTypeOnly) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateImportClause(node, isTypeOnly, name, namedBindings) {\n return node.isTypeOnly !== isTypeOnly\n || node.name !== name\n || node.namedBindings !== namedBindings\n ? update(createImportClause(isTypeOnly, name, namedBindings), node)\n : node;\n }\n // @api\n function createNamespaceImport(name) {\n var node = createBaseNode(266 /* NamespaceImport */);\n node.name = name;\n node.transformFlags |= propagateChildFlags(node.name);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateNamespaceImport(node, name) {\n return node.name !== name\n ? update(createNamespaceImport(name), node)\n : node;\n }\n // @api\n function createNamespaceExport(name) {\n var node = createBaseNode(272 /* NamespaceExport */);\n node.name = name;\n node.transformFlags |=\n propagateChildFlags(node.name) |\n 4 /* ContainsESNext */;\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateNamespaceExport(node, name) {\n return node.name !== name\n ? update(createNamespaceExport(name), node)\n : node;\n }\n // @api\n function createNamedImports(elements) {\n var node = createBaseNode(267 /* NamedImports */);\n node.elements = createNodeArray(elements);\n node.transformFlags |= propagateChildrenFlags(node.elements);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateNamedImports(node, elements) {\n return node.elements !== elements\n ? update(createNamedImports(elements), node)\n : node;\n }\n // @api\n function createImportSpecifier(propertyName, name) {\n var node = createBaseNode(268 /* ImportSpecifier */);\n node.propertyName = propertyName;\n node.name = name;\n node.transformFlags |=\n propagateChildFlags(node.propertyName) |\n propagateChildFlags(node.name);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateImportSpecifier(node, propertyName, name) {\n return node.propertyName !== propertyName\n || node.name !== name\n ? update(createImportSpecifier(propertyName, name), node)\n : node;\n }\n // @api\n function createExportAssignment(decorators, modifiers, isExportEquals, expression) {\n var node = createBaseDeclaration(269 /* ExportAssignment */, decorators, modifiers);\n node.isExportEquals = isExportEquals;\n node.expression = isExportEquals\n ? parenthesizerRules().parenthesizeRightSideOfBinary(63 /* EqualsToken */, /*leftSide*/ undefined, expression)\n : parenthesizerRules().parenthesizeExpressionOfExportDefault(expression);\n node.transformFlags |= propagateChildFlags(node.expression);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateExportAssignment(node, decorators, modifiers, expression) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.expression !== expression\n ? update(createExportAssignment(decorators, modifiers, node.isExportEquals, expression), node)\n : node;\n }\n // @api\n function createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier) {\n var node = createBaseDeclaration(270 /* ExportDeclaration */, decorators, modifiers);\n node.isTypeOnly = isTypeOnly;\n node.exportClause = exportClause;\n node.moduleSpecifier = moduleSpecifier;\n node.transformFlags |=\n propagateChildFlags(node.exportClause) |\n propagateChildFlags(node.moduleSpecifier);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier) {\n return node.decorators !== decorators\n || node.modifiers !== modifiers\n || node.isTypeOnly !== isTypeOnly\n || node.exportClause !== exportClause\n || node.moduleSpecifier !== moduleSpecifier\n ? update(createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier), node)\n : node;\n }\n // @api\n function createNamedExports(elements) {\n var node = createBaseNode(271 /* NamedExports */);\n node.elements = createNodeArray(elements);\n node.transformFlags |= propagateChildrenFlags(node.elements);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateNamedExports(node, elements) {\n return node.elements !== elements\n ? update(createNamedExports(elements), node)\n : node;\n }\n // @api\n function createExportSpecifier(propertyName, name) {\n var node = createBaseNode(273 /* ExportSpecifier */);\n node.propertyName = asName(propertyName);\n node.name = asName(name);\n node.transformFlags |=\n propagateChildFlags(node.propertyName) |\n propagateChildFlags(node.name);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateExportSpecifier(node, propertyName, name) {\n return node.propertyName !== propertyName\n || node.name !== name\n ? update(createExportSpecifier(propertyName, name), node)\n : node;\n }\n // @api\n function createMissingDeclaration() {\n var node = createBaseDeclaration(274 /* MissingDeclaration */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined);\n return node;\n }\n //\n // Module references\n //\n // @api\n function createExternalModuleReference(expression) {\n var node = createBaseNode(275 /* ExternalModuleReference */);\n node.expression = expression;\n node.transformFlags |= propagateChildFlags(node.expression);\n node.transformFlags &= ~16777216 /* ContainsPossibleTopLevelAwait */; // always parsed in an Await context\n return node;\n }\n // @api\n function updateExternalModuleReference(node, expression) {\n return node.expression !== expression\n ? update(createExternalModuleReference(expression), node)\n : node;\n }\n //\n // JSDoc\n //\n // @api\n // createJSDocAllType\n // createJSDocUnknownType\n function createJSDocPrimaryTypeWorker(kind) {\n return createBaseNode(kind);\n }\n // @api\n // createJSDocNonNullableType\n // createJSDocNullableType\n // createJSDocOptionalType\n // createJSDocVariadicType\n // createJSDocNamepathType\n function createJSDocUnaryTypeWorker(kind, type) {\n var node = createBaseNode(kind);\n node.type = type;\n return node;\n }\n // @api\n // updateJSDocNonNullableType\n // updateJSDocNullableType\n // updateJSDocOptionalType\n // updateJSDocVariadicType\n // updateJSDocNamepathType\n function updateJSDocUnaryTypeWorker(kind, node, type) {\n return node.type !== type\n ? update(createJSDocUnaryTypeWorker(kind, type), node)\n : node;\n }\n // @api\n function createJSDocFunctionType(parameters, type) {\n var node = createBaseSignatureDeclaration(312 /* JSDocFunctionType */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, parameters, type);\n return node;\n }\n // @api\n function updateJSDocFunctionType(node, parameters, type) {\n return node.parameters !== parameters\n || node.type !== type\n ? update(createJSDocFunctionType(parameters, type), node)\n : node;\n }\n // @api\n function createJSDocTypeLiteral(propertyTags, isArrayType) {\n if (isArrayType === void 0) { isArrayType = false; }\n var node = createBaseNode(317 /* JSDocTypeLiteral */);\n node.jsDocPropertyTags = asNodeArray(propertyTags);\n node.isArrayType = isArrayType;\n return node;\n }\n // @api\n function updateJSDocTypeLiteral(node, propertyTags, isArrayType) {\n return node.jsDocPropertyTags !== propertyTags\n || node.isArrayType !== isArrayType\n ? update(createJSDocTypeLiteral(propertyTags, isArrayType), node)\n : node;\n }\n // @api\n function createJSDocTypeExpression(type) {\n var node = createBaseNode(304 /* JSDocTypeExpression */);\n node.type = type;\n return node;\n }\n // @api\n function updateJSDocTypeExpression(node, type) {\n return node.type !== type\n ? update(createJSDocTypeExpression(type), node)\n : node;\n }\n // @api\n function createJSDocSignature(typeParameters, parameters, type) {\n var node = createBaseNode(318 /* JSDocSignature */);\n node.typeParameters = asNodeArray(typeParameters);\n node.parameters = createNodeArray(parameters);\n node.type = type;\n return node;\n }\n // @api\n function updateJSDocSignature(node, typeParameters, parameters, type) {\n return node.typeParameters !== typeParameters\n || node.parameters !== parameters\n || node.type !== type\n ? update(createJSDocSignature(typeParameters, parameters, type), node)\n : node;\n }\n function getDefaultTagName(node) {\n var defaultTagName = getDefaultTagNameForKind(node.kind);\n return node.tagName.escapedText === ts.escapeLeadingUnderscores(defaultTagName)\n ? node.tagName\n : createIdentifier(defaultTagName);\n }\n // @api\n function createBaseJSDocTag(kind, tagName, comment) {\n var node = createBaseNode(kind);\n node.tagName = tagName;\n node.comment = comment;\n return node;\n }\n // @api\n function createJSDocTemplateTag(tagName, constraint, typeParameters, comment) {\n var node = createBaseJSDocTag(339 /* JSDocTemplateTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"template\"), comment);\n node.constraint = constraint;\n node.typeParameters = createNodeArray(typeParameters);\n return node;\n }\n // @api\n function updateJSDocTemplateTag(node, tagName, constraint, typeParameters, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.constraint !== constraint\n || node.typeParameters !== typeParameters\n || node.comment !== comment\n ? update(createJSDocTemplateTag(tagName, constraint, typeParameters, comment), node)\n : node;\n }\n // @api\n function createJSDocTypedefTag(tagName, typeExpression, fullName, comment) {\n var node = createBaseJSDocTag(340 /* JSDocTypedefTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"typedef\"), comment);\n node.typeExpression = typeExpression;\n node.fullName = fullName;\n node.name = ts.getJSDocTypeAliasName(fullName);\n return node;\n }\n // @api\n function updateJSDocTypedefTag(node, tagName, typeExpression, fullName, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.typeExpression !== typeExpression\n || node.fullName !== fullName\n || node.comment !== comment\n ? update(createJSDocTypedefTag(tagName, typeExpression, fullName, comment), node)\n : node;\n }\n // @api\n function createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {\n var node = createBaseJSDocTag(335 /* JSDocParameterTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"param\"), comment);\n node.typeExpression = typeExpression;\n node.name = name;\n node.isNameFirst = !!isNameFirst;\n node.isBracketed = isBracketed;\n return node;\n }\n // @api\n function updateJSDocParameterTag(node, tagName, name, isBracketed, typeExpression, isNameFirst, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.name !== name\n || node.isBracketed !== isBracketed\n || node.typeExpression !== typeExpression\n || node.isNameFirst !== isNameFirst\n || node.comment !== comment\n ? update(createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node)\n : node;\n }\n // @api\n function createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment) {\n var node = createBaseJSDocTag(342 /* JSDocPropertyTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"prop\"), comment);\n node.typeExpression = typeExpression;\n node.name = name;\n node.isNameFirst = !!isNameFirst;\n node.isBracketed = isBracketed;\n return node;\n }\n // @api\n function updateJSDocPropertyTag(node, tagName, name, isBracketed, typeExpression, isNameFirst, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.name !== name\n || node.isBracketed !== isBracketed\n || node.typeExpression !== typeExpression\n || node.isNameFirst !== isNameFirst\n || node.comment !== comment\n ? update(createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment), node)\n : node;\n }\n // @api\n function createJSDocCallbackTag(tagName, typeExpression, fullName, comment) {\n var node = createBaseJSDocTag(333 /* JSDocCallbackTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"callback\"), comment);\n node.typeExpression = typeExpression;\n node.fullName = fullName;\n node.name = ts.getJSDocTypeAliasName(fullName);\n return node;\n }\n // @api\n function updateJSDocCallbackTag(node, tagName, typeExpression, fullName, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.typeExpression !== typeExpression\n || node.fullName !== fullName\n || node.comment !== comment\n ? update(createJSDocCallbackTag(tagName, typeExpression, fullName, comment), node)\n : node;\n }\n // @api\n function createJSDocAugmentsTag(tagName, className, comment) {\n var node = createBaseJSDocTag(323 /* JSDocAugmentsTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"augments\"), comment);\n node.class = className;\n return node;\n }\n // @api\n function updateJSDocAugmentsTag(node, tagName, className, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.class !== className\n || node.comment !== comment\n ? update(createJSDocAugmentsTag(tagName, className, comment), node)\n : node;\n }\n // @api\n function createJSDocImplementsTag(tagName, className, comment) {\n var node = createBaseJSDocTag(324 /* JSDocImplementsTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"implements\"), comment);\n node.class = className;\n return node;\n }\n // @api\n function createJSDocSeeTag(tagName, name, comment) {\n var node = createBaseJSDocTag(341 /* JSDocSeeTag */, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(\"see\"), comment);\n node.name = name;\n return node;\n }\n // @api\n function updateJSDocSeeTag(node, tagName, name, comment) {\n return node.tagName !== tagName\n || node.name !== name\n || node.comment !== comment\n ? update(createJSDocSeeTag(tagName, name, comment), node)\n : node;\n }\n // @api\n function createJSDocNameReference(name) {\n var node = createBaseNode(305 /* JSDocNameReference */);\n node.name = name;\n return node;\n }\n // @api\n function updateJSDocNameReference(node, name) {\n return node.name !== name\n ? update(createJSDocNameReference(name), node)\n : node;\n }\n // @api\n function createJSDocMemberName(left, right) {\n var node = createBaseNode(306 /* JSDocMemberName */);\n node.left = left;\n node.right = right;\n node.transformFlags |=\n propagateChildFlags(node.left) |\n propagateChildFlags(node.right);\n return node;\n }\n // @api\n function updateJSDocMemberName(node, left, right) {\n return node.left !== left\n || node.right !== right\n ? update(createJSDocMemberName(left, right), node)\n : node;\n }\n // @api\n function createJSDocLink(name, text) {\n var node = createBaseNode(319 /* JSDocLink */);\n node.name = name;\n node.text = text;\n return node;\n }\n // @api\n function updateJSDocLink(node, name, text) {\n return node.name !== name\n ? update(createJSDocLink(name, text), node)\n : node;\n }\n // @api\n function createJSDocLinkCode(name, text) {\n var node = createBaseNode(320 /* JSDocLinkCode */);\n node.name = name;\n node.text = text;\n return node;\n }\n // @api\n function updateJSDocLinkCode(node, name, text) {\n return node.name !== name\n ? update(createJSDocLinkCode(name, text), node)\n : node;\n }\n // @api\n function createJSDocLinkPlain(name, text) {\n var node = createBaseNode(321 /* JSDocLinkPlain */);\n node.name = name;\n node.text = text;\n return node;\n }\n // @api\n function updateJSDocLinkPlain(node, name, text) {\n return node.name !== name\n ? update(createJSDocLinkPlain(name, text), node)\n : node;\n }\n // @api\n function updateJSDocImplementsTag(node, tagName, className, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.class !== className\n || node.comment !== comment\n ? update(createJSDocImplementsTag(tagName, className, comment), node)\n : node;\n }\n // @api\n // createJSDocAuthorTag\n // createJSDocClassTag\n // createJSDocPublicTag\n // createJSDocPrivateTag\n // createJSDocProtectedTag\n // createJSDocReadonlyTag\n // createJSDocDeprecatedTag\n function createJSDocSimpleTagWorker(kind, tagName, comment) {\n var node = createBaseJSDocTag(kind, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(getDefaultTagNameForKind(kind)), comment);\n return node;\n }\n // @api\n // updateJSDocAuthorTag\n // updateJSDocClassTag\n // updateJSDocPublicTag\n // updateJSDocPrivateTag\n // updateJSDocProtectedTag\n // updateJSDocReadonlyTag\n // updateJSDocDeprecatedTag\n function updateJSDocSimpleTagWorker(kind, node, tagName, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.comment !== comment\n ? update(createJSDocSimpleTagWorker(kind, tagName, comment), node) :\n node;\n }\n // @api\n // createJSDocTypeTag\n // createJSDocReturnTag\n // createJSDocThisTag\n // createJSDocEnumTag\n function createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment) {\n var node = createBaseJSDocTag(kind, tagName !== null && tagName !== void 0 ? tagName : createIdentifier(getDefaultTagNameForKind(kind)), comment);\n node.typeExpression = typeExpression;\n return node;\n }\n // @api\n // updateJSDocTypeTag\n // updateJSDocReturnTag\n // updateJSDocThisTag\n // updateJSDocEnumTag\n function updateJSDocTypeLikeTagWorker(kind, node, tagName, typeExpression, comment) {\n if (tagName === void 0) { tagName = getDefaultTagName(node); }\n return node.tagName !== tagName\n || node.typeExpression !== typeExpression\n || node.comment !== comment\n ? update(createJSDocTypeLikeTagWorker(kind, tagName, typeExpression, comment), node)\n : node;\n }\n // @api\n function createJSDocUnknownTag(tagName, comment) {\n var node = createBaseJSDocTag(322 /* JSDocTag */, tagName, comment);\n return node;\n }\n // @api\n function updateJSDocUnknownTag(node, tagName, comment) {\n return node.tagName !== tagName\n || node.comment !== comment\n ? update(createJSDocUnknownTag(tagName, comment), node)\n : node;\n }\n // @api\n function createJSDocText(text) {\n var node = createBaseNode(316 /* JSDocText */);\n node.text = text;\n return node;\n }\n // @api\n function updateJSDocText(node, text) {\n return node.text !== text\n ? update(createJSDocText(text), node)\n : node;\n }\n // @api\n function createJSDocComment(comment, tags) {\n var node = createBaseNode(315 /* JSDocComment */);\n node.comment = comment;\n node.tags = asNodeArray(tags);\n return node;\n }\n // @api\n function updateJSDocComment(node, comment, tags) {\n return node.comment !== comment\n || node.tags !== tags\n ? update(createJSDocComment(comment, tags), node)\n : node;\n }\n //\n // JSX\n //\n // @api\n function createJsxElement(openingElement, children, closingElement) {\n var node = createBaseNode(276 /* JsxElement */);\n node.openingElement = openingElement;\n node.children = createNodeArray(children);\n node.closingElement = closingElement;\n node.transformFlags |=\n propagateChildFlags(node.openingElement) |\n propagateChildrenFlags(node.children) |\n propagateChildFlags(node.closingElement) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxElement(node, openingElement, children, closingElement) {\n return node.openingElement !== openingElement\n || node.children !== children\n || node.closingElement !== closingElement\n ? update(createJsxElement(openingElement, children, closingElement), node)\n : node;\n }\n // @api\n function createJsxSelfClosingElement(tagName, typeArguments, attributes) {\n var node = createBaseNode(277 /* JsxSelfClosingElement */);\n node.tagName = tagName;\n node.typeArguments = asNodeArray(typeArguments);\n node.attributes = attributes;\n node.transformFlags |=\n propagateChildFlags(node.tagName) |\n propagateChildrenFlags(node.typeArguments) |\n propagateChildFlags(node.attributes) |\n 2 /* ContainsJsx */;\n if (node.typeArguments) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n return node;\n }\n // @api\n function updateJsxSelfClosingElement(node, tagName, typeArguments, attributes) {\n return node.tagName !== tagName\n || node.typeArguments !== typeArguments\n || node.attributes !== attributes\n ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node)\n : node;\n }\n // @api\n function createJsxOpeningElement(tagName, typeArguments, attributes) {\n var node = createBaseNode(278 /* JsxOpeningElement */);\n node.tagName = tagName;\n node.typeArguments = asNodeArray(typeArguments);\n node.attributes = attributes;\n node.transformFlags |=\n propagateChildFlags(node.tagName) |\n propagateChildrenFlags(node.typeArguments) |\n propagateChildFlags(node.attributes) |\n 2 /* ContainsJsx */;\n if (typeArguments) {\n node.transformFlags |= 1 /* ContainsTypeScript */;\n }\n return node;\n }\n // @api\n function updateJsxOpeningElement(node, tagName, typeArguments, attributes) {\n return node.tagName !== tagName\n || node.typeArguments !== typeArguments\n || node.attributes !== attributes\n ? update(createJsxOpeningElement(tagName, typeArguments, attributes), node)\n : node;\n }\n // @api\n function createJsxClosingElement(tagName) {\n var node = createBaseNode(279 /* JsxClosingElement */);\n node.tagName = tagName;\n node.transformFlags |=\n propagateChildFlags(node.tagName) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxClosingElement(node, tagName) {\n return node.tagName !== tagName\n ? update(createJsxClosingElement(tagName), node)\n : node;\n }\n // @api\n function createJsxFragment(openingFragment, children, closingFragment) {\n var node = createBaseNode(280 /* JsxFragment */);\n node.openingFragment = openingFragment;\n node.children = createNodeArray(children);\n node.closingFragment = closingFragment;\n node.transformFlags |=\n propagateChildFlags(node.openingFragment) |\n propagateChildrenFlags(node.children) |\n propagateChildFlags(node.closingFragment) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxFragment(node, openingFragment, children, closingFragment) {\n return node.openingFragment !== openingFragment\n || node.children !== children\n || node.closingFragment !== closingFragment\n ? update(createJsxFragment(openingFragment, children, closingFragment), node)\n : node;\n }\n // @api\n function createJsxText(text, containsOnlyTriviaWhiteSpaces) {\n var node = createBaseNode(11 /* JsxText */);\n node.text = text;\n node.containsOnlyTriviaWhiteSpaces = !!containsOnlyTriviaWhiteSpaces;\n node.transformFlags |= 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxText(node, text, containsOnlyTriviaWhiteSpaces) {\n return node.text !== text\n || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces\n ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node)\n : node;\n }\n // @api\n function createJsxOpeningFragment() {\n var node = createBaseNode(281 /* JsxOpeningFragment */);\n node.transformFlags |= 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function createJsxJsxClosingFragment() {\n var node = createBaseNode(282 /* JsxClosingFragment */);\n node.transformFlags |= 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function createJsxAttribute(name, initializer) {\n var node = createBaseNode(283 /* JsxAttribute */);\n node.name = name;\n node.initializer = initializer;\n node.transformFlags |=\n propagateChildFlags(node.name) |\n propagateChildFlags(node.initializer) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxAttribute(node, name, initializer) {\n return node.name !== name\n || node.initializer !== initializer\n ? update(createJsxAttribute(name, initializer), node)\n : node;\n }\n // @api\n function createJsxAttributes(properties) {\n var node = createBaseNode(284 /* JsxAttributes */);\n node.properties = createNodeArray(properties);\n node.transformFlags |=\n propagateChildrenFlags(node.properties) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxAttributes(node, properties) {\n return node.properties !== properties\n ? update(createJsxAttributes(properties), node)\n : node;\n }\n // @api\n function createJsxSpreadAttribute(expression) {\n var node = createBaseNode(285 /* JsxSpreadAttribute */);\n node.expression = expression;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxSpreadAttribute(node, expression) {\n return node.expression !== expression\n ? update(createJsxSpreadAttribute(expression), node)\n : node;\n }\n // @api\n function createJsxExpression(dotDotDotToken, expression) {\n var node = createBaseNode(286 /* JsxExpression */);\n node.dotDotDotToken = dotDotDotToken;\n node.expression = expression;\n node.transformFlags |=\n propagateChildFlags(node.dotDotDotToken) |\n propagateChildFlags(node.expression) |\n 2 /* ContainsJsx */;\n return node;\n }\n // @api\n function updateJsxExpression(node, expression) {\n return node.expression !== expression\n ? update(createJsxExpression(node.dotDotDotToken, expression), node)\n : node;\n }\n //\n // Clauses\n //\n // @api\n function createCaseClause(expression, statements) {\n var node = createBaseNode(287 /* CaseClause */);\n node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n node.statements = createNodeArray(statements);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildrenFlags(node.statements);\n return node;\n }\n // @api\n function updateCaseClause(node, expression, statements) {\n return node.expression !== expression\n || node.statements !== statements\n ? update(createCaseClause(expression, statements), node)\n : node;\n }\n // @api\n function createDefaultClause(statements) {\n var node = createBaseNode(288 /* DefaultClause */);\n node.statements = createNodeArray(statements);\n node.transformFlags = propagateChildrenFlags(node.statements);\n return node;\n }\n // @api\n function updateDefaultClause(node, statements) {\n return node.statements !== statements\n ? update(createDefaultClause(statements), node)\n : node;\n }\n // @api\n function createHeritageClause(token, types) {\n var node = createBaseNode(289 /* HeritageClause */);\n node.token = token;\n node.types = createNodeArray(types);\n node.transformFlags |= propagateChildrenFlags(node.types);\n switch (token) {\n case 94 /* ExtendsKeyword */:\n node.transformFlags |= 512 /* ContainsES2015 */;\n break;\n case 117 /* ImplementsKeyword */:\n node.transformFlags |= 1 /* ContainsTypeScript */;\n break;\n default:\n return ts.Debug.assertNever(token);\n }\n return node;\n }\n // @api\n function updateHeritageClause(node, types) {\n return node.types !== types\n ? update(createHeritageClause(node.token, types), node)\n : node;\n }\n // @api\n function createCatchClause(variableDeclaration, block) {\n var node = createBaseNode(290 /* CatchClause */);\n variableDeclaration = !ts.isString(variableDeclaration) ? variableDeclaration : createVariableDeclaration(variableDeclaration, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined);\n node.variableDeclaration = variableDeclaration;\n node.block = block;\n node.transformFlags |=\n propagateChildFlags(node.variableDeclaration) |\n propagateChildFlags(node.block);\n if (!variableDeclaration)\n node.transformFlags |= 32 /* ContainsES2019 */;\n return node;\n }\n // @api\n function updateCatchClause(node, variableDeclaration, block) {\n return node.variableDeclaration !== variableDeclaration\n || node.block !== block\n ? update(createCatchClause(variableDeclaration, block), node)\n : node;\n }\n //\n // Property assignments\n //\n // @api\n function createPropertyAssignment(name, initializer) {\n var node = createBaseNamedDeclaration(291 /* PropertyAssignment */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, name);\n node.initializer = parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);\n node.transformFlags |=\n propagateChildFlags(node.name) |\n propagateChildFlags(node.initializer);\n return node;\n }\n function finishUpdatePropertyAssignment(updated, original) {\n // copy children used only for error reporting\n if (original.decorators)\n updated.decorators = original.decorators;\n if (original.modifiers)\n updated.modifiers = original.modifiers;\n if (original.questionToken)\n updated.questionToken = original.questionToken;\n if (original.exclamationToken)\n updated.exclamationToken = original.exclamationToken;\n return update(updated, original);\n }\n // @api\n function updatePropertyAssignment(node, name, initializer) {\n return node.name !== name\n || node.initializer !== initializer\n ? finishUpdatePropertyAssignment(createPropertyAssignment(name, initializer), node)\n : node;\n }\n // @api\n function createShorthandPropertyAssignment(name, objectAssignmentInitializer) {\n var node = createBaseNamedDeclaration(292 /* ShorthandPropertyAssignment */, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, name);\n node.objectAssignmentInitializer = objectAssignmentInitializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(objectAssignmentInitializer);\n node.transformFlags |=\n propagateChildFlags(node.objectAssignmentInitializer) |\n 512 /* ContainsES2015 */;\n return node;\n }\n function finishUpdateShorthandPropertyAssignment(updated, original) {\n // copy children used only for error reporting\n if (original.decorators)\n updated.decorators = original.decorators;\n if (original.modifiers)\n updated.modifiers = original.modifiers;\n if (original.equalsToken)\n updated.equalsToken = original.equalsToken;\n if (original.questionToken)\n updated.questionToken = original.questionToken;\n if (original.exclamationToken)\n updated.exclamationToken = original.exclamationToken;\n return update(updated, original);\n }\n // @api\n function updateShorthandPropertyAssignment(node, name, objectAssignmentInitializer) {\n return node.name !== name\n || node.objectAssignmentInitializer !== objectAssignmentInitializer\n ? finishUpdateShorthandPropertyAssignment(createShorthandPropertyAssignment(name, objectAssignmentInitializer), node)\n : node;\n }\n // @api\n function createSpreadAssignment(expression) {\n var node = createBaseNode(293 /* SpreadAssignment */);\n node.expression = parenthesizerRules().parenthesizeExpressionForDisallowedComma(expression);\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 64 /* ContainsES2018 */ |\n 32768 /* ContainsObjectRestOrSpread */;\n return node;\n }\n // @api\n function updateSpreadAssignment(node, expression) {\n return node.expression !== expression\n ? update(createSpreadAssignment(expression), node)\n : node;\n }\n //\n // Enum\n //\n // @api\n function createEnumMember(name, initializer) {\n var node = createBaseNode(294 /* EnumMember */);\n node.name = asName(name);\n node.initializer = initializer && parenthesizerRules().parenthesizeExpressionForDisallowedComma(initializer);\n node.transformFlags |=\n propagateChildFlags(node.name) |\n propagateChildFlags(node.initializer) |\n 1 /* ContainsTypeScript */;\n return node;\n }\n // @api\n function updateEnumMember(node, name, initializer) {\n return node.name !== name\n || node.initializer !== initializer\n ? update(createEnumMember(name, initializer), node)\n : node;\n }\n //\n // Top-level nodes\n //\n // @api\n function createSourceFile(statements, endOfFileToken, flags) {\n var node = baseFactory.createBaseSourceFileNode(300 /* SourceFile */);\n node.statements = createNodeArray(statements);\n node.endOfFileToken = endOfFileToken;\n node.flags |= flags;\n node.fileName = \"\";\n node.text = \"\";\n node.languageVersion = 0;\n node.languageVariant = 0;\n node.scriptKind = 0;\n node.isDeclarationFile = false;\n node.hasNoDefaultLib = false;\n node.transformFlags |=\n propagateChildrenFlags(node.statements) |\n propagateChildFlags(node.endOfFileToken);\n return node;\n }\n function cloneSourceFileWithChanges(source, statements, isDeclarationFile, referencedFiles, typeReferences, hasNoDefaultLib, libReferences) {\n var node = baseFactory.createBaseSourceFileNode(300 /* SourceFile */);\n for (var p in source) {\n if (p === \"emitNode\" || ts.hasProperty(node, p) || !ts.hasProperty(source, p))\n continue;\n node[p] = source[p];\n }\n node.flags |= source.flags;\n node.statements = createNodeArray(statements);\n node.endOfFileToken = source.endOfFileToken;\n node.isDeclarationFile = isDeclarationFile;\n node.referencedFiles = referencedFiles;\n node.typeReferenceDirectives = typeReferences;\n node.hasNoDefaultLib = hasNoDefaultLib;\n node.libReferenceDirectives = libReferences;\n node.transformFlags =\n propagateChildrenFlags(node.statements) |\n propagateChildFlags(node.endOfFileToken);\n return node;\n }\n // @api\n function updateSourceFile(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives) {\n if (isDeclarationFile === void 0) { isDeclarationFile = node.isDeclarationFile; }\n if (referencedFiles === void 0) { referencedFiles = node.referencedFiles; }\n if (typeReferenceDirectives === void 0) { typeReferenceDirectives = node.typeReferenceDirectives; }\n if (hasNoDefaultLib === void 0) { hasNoDefaultLib = node.hasNoDefaultLib; }\n if (libReferenceDirectives === void 0) { libReferenceDirectives = node.libReferenceDirectives; }\n return node.statements !== statements\n || node.isDeclarationFile !== isDeclarationFile\n || node.referencedFiles !== referencedFiles\n || node.typeReferenceDirectives !== typeReferenceDirectives\n || node.hasNoDefaultLib !== hasNoDefaultLib\n || node.libReferenceDirectives !== libReferenceDirectives\n ? update(cloneSourceFileWithChanges(node, statements, isDeclarationFile, referencedFiles, typeReferenceDirectives, hasNoDefaultLib, libReferenceDirectives), node)\n : node;\n }\n // @api\n function createBundle(sourceFiles, prepends) {\n if (prepends === void 0) { prepends = ts.emptyArray; }\n var node = createBaseNode(301 /* Bundle */);\n node.prepends = prepends;\n node.sourceFiles = sourceFiles;\n return node;\n }\n // @api\n function updateBundle(node, sourceFiles, prepends) {\n if (prepends === void 0) { prepends = ts.emptyArray; }\n return node.sourceFiles !== sourceFiles\n || node.prepends !== prepends\n ? update(createBundle(sourceFiles, prepends), node)\n : node;\n }\n // @api\n function createUnparsedSource(prologues, syntheticReferences, texts) {\n var node = createBaseNode(302 /* UnparsedSource */);\n node.prologues = prologues;\n node.syntheticReferences = syntheticReferences;\n node.texts = texts;\n node.fileName = \"\";\n node.text = \"\";\n node.referencedFiles = ts.emptyArray;\n node.libReferenceDirectives = ts.emptyArray;\n node.getLineAndCharacterOfPosition = function (pos) { return ts.getLineAndCharacterOfPosition(node, pos); };\n return node;\n }\n function createBaseUnparsedNode(kind, data) {\n var node = createBaseNode(kind);\n node.data = data;\n return node;\n }\n // @api\n function createUnparsedPrologue(data) {\n return createBaseUnparsedNode(295 /* UnparsedPrologue */, data);\n }\n // @api\n function createUnparsedPrepend(data, texts) {\n var node = createBaseUnparsedNode(296 /* UnparsedPrepend */, data);\n node.texts = texts;\n return node;\n }\n // @api\n function createUnparsedTextLike(data, internal) {\n return createBaseUnparsedNode(internal ? 298 /* UnparsedInternalText */ : 297 /* UnparsedText */, data);\n }\n // @api\n function createUnparsedSyntheticReference(section) {\n var node = createBaseNode(299 /* UnparsedSyntheticReference */);\n node.data = section.data;\n node.section = section;\n return node;\n }\n // @api\n function createInputFiles() {\n var node = createBaseNode(303 /* InputFiles */);\n node.javascriptText = \"\";\n node.declarationText = \"\";\n return node;\n }\n //\n // Synthetic Nodes (used by checker)\n //\n // @api\n function createSyntheticExpression(type, isSpread, tupleNameSource) {\n if (isSpread === void 0) { isSpread = false; }\n var node = createBaseNode(230 /* SyntheticExpression */);\n node.type = type;\n node.isSpread = isSpread;\n node.tupleNameSource = tupleNameSource;\n return node;\n }\n // @api\n function createSyntaxList(children) {\n var node = createBaseNode(343 /* SyntaxList */);\n node._children = children;\n return node;\n }\n //\n // Transformation nodes\n //\n /**\n * Creates a synthetic statement to act as a placeholder for a not-emitted statement in\n * order to preserve comments.\n *\n * @param original The original statement.\n */\n // @api\n function createNotEmittedStatement(original) {\n var node = createBaseNode(344 /* NotEmittedStatement */);\n node.original = original;\n ts.setTextRange(node, original);\n return node;\n }\n /**\n * Creates a synthetic expression to act as a placeholder for a not-emitted expression in\n * order to preserve comments or sourcemap positions.\n *\n * @param expression The inner expression to emit.\n * @param original The original outer expression.\n */\n // @api\n function createPartiallyEmittedExpression(expression, original) {\n var node = createBaseNode(345 /* PartiallyEmittedExpression */);\n node.expression = expression;\n node.original = original;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n 1 /* ContainsTypeScript */;\n ts.setTextRange(node, original);\n return node;\n }\n // @api\n function updatePartiallyEmittedExpression(node, expression) {\n return node.expression !== expression\n ? update(createPartiallyEmittedExpression(expression, node.original), node)\n : node;\n }\n function flattenCommaElements(node) {\n if (ts.nodeIsSynthesized(node) && !ts.isParseTreeNode(node) && !node.original && !node.emitNode && !node.id) {\n if (ts.isCommaListExpression(node)) {\n return node.elements;\n }\n if (ts.isBinaryExpression(node) && ts.isCommaToken(node.operatorToken)) {\n return [node.left, node.right];\n }\n }\n return node;\n }\n // @api\n function createCommaListExpression(elements) {\n var node = createBaseNode(346 /* CommaListExpression */);\n node.elements = createNodeArray(ts.sameFlatMap(elements, flattenCommaElements));\n node.transformFlags |= propagateChildrenFlags(node.elements);\n return node;\n }\n // @api\n function updateCommaListExpression(node, elements) {\n return node.elements !== elements\n ? update(createCommaListExpression(elements), node)\n : node;\n }\n /**\n * Creates a synthetic element to act as a placeholder for the end of an emitted declaration in\n * order to properly emit exports.\n */\n // @api\n function createEndOfDeclarationMarker(original) {\n var node = createBaseNode(348 /* EndOfDeclarationMarker */);\n node.emitNode = {};\n node.original = original;\n return node;\n }\n /**\n * Creates a synthetic element to act as a placeholder for the beginning of a merged declaration in\n * order to properly emit exports.\n */\n // @api\n function createMergeDeclarationMarker(original) {\n var node = createBaseNode(347 /* MergeDeclarationMarker */);\n node.emitNode = {};\n node.original = original;\n return node;\n }\n // @api\n function createSyntheticReferenceExpression(expression, thisArg) {\n var node = createBaseNode(349 /* SyntheticReferenceExpression */);\n node.expression = expression;\n node.thisArg = thisArg;\n node.transformFlags |=\n propagateChildFlags(node.expression) |\n propagateChildFlags(node.thisArg);\n return node;\n }\n // @api\n function updateSyntheticReferenceExpression(node, expression, thisArg) {\n return node.expression !== expression\n || node.thisArg !== thisArg\n ? update(createSyntheticReferenceExpression(expression, thisArg), node)\n : node;\n }\n function cloneNode(node) {\n // We don't use \"clone\" from core.ts here, as we need to preserve the prototype chain of\n // the original node. We also need to exclude specific properties and only include own-\n // properties (to skip members already defined on the shared prototype).\n if (node === undefined) {\n return node;\n }\n var clone = ts.isSourceFile(node) ? baseFactory.createBaseSourceFileNode(300 /* SourceFile */) :\n ts.isIdentifier(node) ? baseFactory.createBaseIdentifierNode(79 /* Identifier */) :\n ts.isPrivateIdentifier(node) ? baseFactory.createBasePrivateIdentifierNode(80 /* PrivateIdentifier */) :\n !ts.isNodeKind(node.kind) ? baseFactory.createBaseTokenNode(node.kind) :\n baseFactory.createBaseNode(node.kind);\n clone.flags |= (node.flags & ~8 /* Synthesized */);\n clone.transformFlags = node.transformFlags;\n setOriginalNode(clone, node);\n for (var key in node) {\n if (clone.hasOwnProperty(key) || !node.hasOwnProperty(key)) {\n continue;\n }\n clone[key] = node[key];\n }\n return clone;\n }\n function createImmediatelyInvokedFunctionExpression(statements, param, paramValue) {\n return createCallExpression(createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ param ? [param] : [], \n /*type*/ undefined, createBlock(statements, /*multiLine*/ true)), \n /*typeArguments*/ undefined, \n /*argumentsArray*/ paramValue ? [paramValue] : []);\n }\n function createImmediatelyInvokedArrowFunction(statements, param, paramValue) {\n return createCallExpression(createArrowFunction(\n /*modifiers*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ param ? [param] : [], \n /*type*/ undefined, \n /*equalsGreaterThanToken*/ undefined, createBlock(statements, /*multiLine*/ true)), \n /*typeArguments*/ undefined, \n /*argumentsArray*/ paramValue ? [paramValue] : []);\n }\n function createVoidZero() {\n return createVoidExpression(createNumericLiteral(\"0\"));\n }\n function createExportDefault(expression) {\n return createExportAssignment(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isExportEquals*/ false, expression);\n }\n function createExternalModuleExport(exportName) {\n return createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, createNamedExports([\n createExportSpecifier(/*propertyName*/ undefined, exportName)\n ]));\n }\n //\n // Utilities\n //\n function createTypeCheck(value, tag) {\n return tag === \"undefined\"\n ? factory.createStrictEquality(value, createVoidZero())\n : factory.createStrictEquality(createTypeOfExpression(value), createStringLiteral(tag));\n }\n function createMethodCall(object, methodName, argumentsList) {\n // Preserve the optionality of `object`.\n if (ts.isCallChain(object)) {\n return createCallChain(createPropertyAccessChain(object, /*questionDotToken*/ undefined, methodName), \n /*questionDotToken*/ undefined, \n /*typeArguments*/ undefined, argumentsList);\n }\n return createCallExpression(createPropertyAccessExpression(object, methodName), \n /*typeArguments*/ undefined, argumentsList);\n }\n function createFunctionBindCall(target, thisArg, argumentsList) {\n return createMethodCall(target, \"bind\", __spreadArray([thisArg], argumentsList, true));\n }\n function createFunctionCallCall(target, thisArg, argumentsList) {\n return createMethodCall(target, \"call\", __spreadArray([thisArg], argumentsList, true));\n }\n function createFunctionApplyCall(target, thisArg, argumentsExpression) {\n return createMethodCall(target, \"apply\", [thisArg, argumentsExpression]);\n }\n function createGlobalMethodCall(globalObjectName, methodName, argumentsList) {\n return createMethodCall(createIdentifier(globalObjectName), methodName, argumentsList);\n }\n function createArraySliceCall(array, start) {\n return createMethodCall(array, \"slice\", start === undefined ? [] : [asExpression(start)]);\n }\n function createArrayConcatCall(array, argumentsList) {\n return createMethodCall(array, \"concat\", argumentsList);\n }\n function createObjectDefinePropertyCall(target, propertyName, attributes) {\n return createGlobalMethodCall(\"Object\", \"defineProperty\", [target, asExpression(propertyName), attributes]);\n }\n function createReflectGetCall(target, propertyKey, receiver) {\n return createGlobalMethodCall(\"Reflect\", \"get\", receiver ? [target, propertyKey, receiver] : [target, propertyKey]);\n }\n function createReflectSetCall(target, propertyKey, value, receiver) {\n return createGlobalMethodCall(\"Reflect\", \"set\", receiver ? [target, propertyKey, value, receiver] : [target, propertyKey, value]);\n }\n function tryAddPropertyAssignment(properties, propertyName, expression) {\n if (expression) {\n properties.push(createPropertyAssignment(propertyName, expression));\n return true;\n }\n return false;\n }\n function createPropertyDescriptor(attributes, singleLine) {\n var properties = [];\n tryAddPropertyAssignment(properties, \"enumerable\", asExpression(attributes.enumerable));\n tryAddPropertyAssignment(properties, \"configurable\", asExpression(attributes.configurable));\n var isData = tryAddPropertyAssignment(properties, \"writable\", asExpression(attributes.writable));\n isData = tryAddPropertyAssignment(properties, \"value\", attributes.value) || isData;\n var isAccessor = tryAddPropertyAssignment(properties, \"get\", attributes.get);\n isAccessor = tryAddPropertyAssignment(properties, \"set\", attributes.set) || isAccessor;\n ts.Debug.assert(!(isData && isAccessor), \"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor.\");\n return createObjectLiteralExpression(properties, !singleLine);\n }\n function updateOuterExpression(outerExpression, expression) {\n switch (outerExpression.kind) {\n case 210 /* ParenthesizedExpression */: return updateParenthesizedExpression(outerExpression, expression);\n case 209 /* TypeAssertionExpression */: return updateTypeAssertion(outerExpression, outerExpression.type, expression);\n case 227 /* AsExpression */: return updateAsExpression(outerExpression, expression, outerExpression.type);\n case 228 /* NonNullExpression */: return updateNonNullExpression(outerExpression, expression);\n case 345 /* PartiallyEmittedExpression */: return updatePartiallyEmittedExpression(outerExpression, expression);\n }\n }\n /**\n * Determines whether a node is a parenthesized expression that can be ignored when recreating outer expressions.\n *\n * A parenthesized expression can be ignored when all of the following are true:\n *\n * - It's `pos` and `end` are not -1\n * - It does not have a custom source map range\n * - It does not have a custom comment range\n * - It does not have synthetic leading or trailing comments\n *\n * If an outermost parenthesized expression is ignored, but the containing expression requires a parentheses around\n * the expression to maintain precedence, a new parenthesized expression should be created automatically when\n * the containing expression is created/updated.\n */\n function isIgnorableParen(node) {\n return ts.isParenthesizedExpression(node)\n && ts.nodeIsSynthesized(node)\n && ts.nodeIsSynthesized(ts.getSourceMapRange(node))\n && ts.nodeIsSynthesized(ts.getCommentRange(node))\n && !ts.some(ts.getSyntheticLeadingComments(node))\n && !ts.some(ts.getSyntheticTrailingComments(node));\n }\n function restoreOuterExpressions(outerExpression, innerExpression, kinds) {\n if (kinds === void 0) { kinds = 15 /* All */; }\n if (outerExpression && ts.isOuterExpression(outerExpression, kinds) && !isIgnorableParen(outerExpression)) {\n return updateOuterExpression(outerExpression, restoreOuterExpressions(outerExpression.expression, innerExpression));\n }\n return innerExpression;\n }\n function restoreEnclosingLabel(node, outermostLabeledStatement, afterRestoreLabelCallback) {\n if (!outermostLabeledStatement) {\n return node;\n }\n var updated = updateLabeledStatement(outermostLabeledStatement, outermostLabeledStatement.label, ts.isLabeledStatement(outermostLabeledStatement.statement)\n ? restoreEnclosingLabel(node, outermostLabeledStatement.statement)\n : node);\n if (afterRestoreLabelCallback) {\n afterRestoreLabelCallback(outermostLabeledStatement);\n }\n return updated;\n }\n function shouldBeCapturedInTempVariable(node, cacheIdentifiers) {\n var target = ts.skipParentheses(node);\n switch (target.kind) {\n case 79 /* Identifier */:\n return cacheIdentifiers;\n case 108 /* ThisKeyword */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 10 /* StringLiteral */:\n return false;\n case 202 /* ArrayLiteralExpression */:\n var elements = target.elements;\n if (elements.length === 0) {\n return false;\n }\n return true;\n case 203 /* ObjectLiteralExpression */:\n return target.properties.length > 0;\n default:\n return true;\n }\n }\n function createCallBinding(expression, recordTempVariable, languageVersion, cacheIdentifiers) {\n if (cacheIdentifiers === void 0) { cacheIdentifiers = false; }\n var callee = ts.skipOuterExpressions(expression, 15 /* All */);\n var thisArg;\n var target;\n if (ts.isSuperProperty(callee)) {\n thisArg = createThis();\n target = callee;\n }\n else if (ts.isSuperKeyword(callee)) {\n thisArg = createThis();\n target = languageVersion !== undefined && languageVersion < 2 /* ES2015 */\n ? ts.setTextRange(createIdentifier(\"_super\"), callee)\n : callee;\n }\n else if (ts.getEmitFlags(callee) & 4096 /* HelperName */) {\n thisArg = createVoidZero();\n target = parenthesizerRules().parenthesizeLeftSideOfAccess(callee);\n }\n else if (ts.isPropertyAccessExpression(callee)) {\n if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) {\n // for `a.b()` target is `(_a = a).b` and thisArg is `_a`\n thisArg = createTempVariable(recordTempVariable);\n target = createPropertyAccessExpression(ts.setTextRange(factory.createAssignment(thisArg, callee.expression), callee.expression), callee.name);\n ts.setTextRange(target, callee);\n }\n else {\n thisArg = callee.expression;\n target = callee;\n }\n }\n else if (ts.isElementAccessExpression(callee)) {\n if (shouldBeCapturedInTempVariable(callee.expression, cacheIdentifiers)) {\n // for `a[b]()` target is `(_a = a)[b]` and thisArg is `_a`\n thisArg = createTempVariable(recordTempVariable);\n target = createElementAccessExpression(ts.setTextRange(factory.createAssignment(thisArg, callee.expression), callee.expression), callee.argumentExpression);\n ts.setTextRange(target, callee);\n }\n else {\n thisArg = callee.expression;\n target = callee;\n }\n }\n else {\n // for `a()` target is `a` and thisArg is `void 0`\n thisArg = createVoidZero();\n target = parenthesizerRules().parenthesizeLeftSideOfAccess(expression);\n }\n return { target: target, thisArg: thisArg };\n }\n function createAssignmentTargetWrapper(paramName, expression) {\n return createPropertyAccessExpression(\n // Explicit parens required because of v8 regression (https://bugs.chromium.org/p/v8/issues/detail?id=9560)\n createParenthesizedExpression(createObjectLiteralExpression([\n createSetAccessorDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \"value\", [createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, paramName, \n /*questionToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined)], createBlock([\n createExpressionStatement(expression)\n ]))\n ])), \"value\");\n }\n function inlineExpressions(expressions) {\n // Avoid deeply nested comma expressions as traversing them during emit can result in \"Maximum call\n // stack size exceeded\" errors.\n return expressions.length > 10\n ? createCommaListExpression(expressions)\n : ts.reduceLeft(expressions, factory.createComma);\n }\n function getName(node, allowComments, allowSourceMaps, emitFlags) {\n if (emitFlags === void 0) { emitFlags = 0; }\n var nodeName = ts.getNameOfDeclaration(node);\n if (nodeName && ts.isIdentifier(nodeName) && !ts.isGeneratedIdentifier(nodeName)) {\n // TODO(rbuckton): Does this need to be parented?\n var name = ts.setParent(ts.setTextRange(cloneNode(nodeName), nodeName), nodeName.parent);\n emitFlags |= ts.getEmitFlags(nodeName);\n if (!allowSourceMaps)\n emitFlags |= 48 /* NoSourceMap */;\n if (!allowComments)\n emitFlags |= 1536 /* NoComments */;\n if (emitFlags)\n ts.setEmitFlags(name, emitFlags);\n return name;\n }\n return getGeneratedNameForNode(node);\n }\n /**\n * Gets the internal name of a declaration. This is primarily used for declarations that can be\n * referred to by name in the body of an ES5 class function body. An internal name will *never*\n * be prefixed with an module or namespace export modifier like \"exports.\" when emitted as an\n * expression. An internal name will also *never* be renamed due to a collision with a block\n * scoped variable.\n *\n * @param node The declaration.\n * @param allowComments A value indicating whether comments may be emitted for the name.\n * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.\n */\n function getInternalName(node, allowComments, allowSourceMaps) {\n return getName(node, allowComments, allowSourceMaps, 16384 /* LocalName */ | 32768 /* InternalName */);\n }\n /**\n * Gets the local name of a declaration. This is primarily used for declarations that can be\n * referred to by name in the declaration's immediate scope (classes, enums, namespaces). A\n * local name will *never* be prefixed with an module or namespace export modifier like\n * \"exports.\" when emitted as an expression.\n *\n * @param node The declaration.\n * @param allowComments A value indicating whether comments may be emitted for the name.\n * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.\n */\n function getLocalName(node, allowComments, allowSourceMaps) {\n return getName(node, allowComments, allowSourceMaps, 16384 /* LocalName */);\n }\n /**\n * Gets the export name of a declaration. This is primarily used for declarations that can be\n * referred to by name in the declaration's immediate scope (classes, enums, namespaces). An\n * export name will *always* be prefixed with an module or namespace export modifier like\n * `\"exports.\"` when emitted as an expression if the name points to an exported symbol.\n *\n * @param node The declaration.\n * @param allowComments A value indicating whether comments may be emitted for the name.\n * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.\n */\n function getExportName(node, allowComments, allowSourceMaps) {\n return getName(node, allowComments, allowSourceMaps, 8192 /* ExportName */);\n }\n /**\n * Gets the name of a declaration for use in declarations.\n *\n * @param node The declaration.\n * @param allowComments A value indicating whether comments may be emitted for the name.\n * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.\n */\n function getDeclarationName(node, allowComments, allowSourceMaps) {\n return getName(node, allowComments, allowSourceMaps);\n }\n /**\n * Gets a namespace-qualified name for use in expressions.\n *\n * @param ns The namespace identifier.\n * @param name The name.\n * @param allowComments A value indicating whether comments may be emitted for the name.\n * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.\n */\n function getNamespaceMemberName(ns, name, allowComments, allowSourceMaps) {\n var qualifiedName = createPropertyAccessExpression(ns, ts.nodeIsSynthesized(name) ? name : cloneNode(name));\n ts.setTextRange(qualifiedName, name);\n var emitFlags = 0;\n if (!allowSourceMaps)\n emitFlags |= 48 /* NoSourceMap */;\n if (!allowComments)\n emitFlags |= 1536 /* NoComments */;\n if (emitFlags)\n ts.setEmitFlags(qualifiedName, emitFlags);\n return qualifiedName;\n }\n /**\n * Gets the exported name of a declaration for use in expressions.\n *\n * An exported name will *always* be prefixed with an module or namespace export modifier like\n * \"exports.\" if the name points to an exported symbol.\n *\n * @param ns The namespace identifier.\n * @param node The declaration.\n * @param allowComments A value indicating whether comments may be emitted for the name.\n * @param allowSourceMaps A value indicating whether source maps may be emitted for the name.\n */\n function getExternalModuleOrNamespaceExportName(ns, node, allowComments, allowSourceMaps) {\n if (ns && ts.hasSyntacticModifier(node, 1 /* Export */)) {\n return getNamespaceMemberName(ns, getName(node), allowComments, allowSourceMaps);\n }\n return getExportName(node, allowComments, allowSourceMaps);\n }\n /**\n * Copies any necessary standard and custom prologue-directives into target array.\n * @param source origin statements array\n * @param target result statements array\n * @param ensureUseStrict boolean determining whether the function need to add prologue-directives\n * @param visitor Optional callback used to visit any custom prologue directives.\n */\n function copyPrologue(source, target, ensureUseStrict, visitor) {\n var offset = copyStandardPrologue(source, target, ensureUseStrict);\n return copyCustomPrologue(source, target, offset, visitor);\n }\n function isUseStrictPrologue(node) {\n return ts.isStringLiteral(node.expression) && node.expression.text === \"use strict\";\n }\n function createUseStrictPrologue() {\n return ts.startOnNewLine(createExpressionStatement(createStringLiteral(\"use strict\")));\n }\n /**\n * Copies only the standard (string-expression) prologue-directives into the target statement-array.\n * @param source origin statements array\n * @param target result statements array\n * @param ensureUseStrict boolean determining whether the function need to add prologue-directives\n */\n function copyStandardPrologue(source, target, ensureUseStrict) {\n ts.Debug.assert(target.length === 0, \"Prologue directives should be at the first statement in the target statements array\");\n var foundUseStrict = false;\n var statementOffset = 0;\n var numStatements = source.length;\n while (statementOffset < numStatements) {\n var statement = source[statementOffset];\n if (ts.isPrologueDirective(statement)) {\n if (isUseStrictPrologue(statement)) {\n foundUseStrict = true;\n }\n target.push(statement);\n }\n else {\n break;\n }\n statementOffset++;\n }\n if (ensureUseStrict && !foundUseStrict) {\n target.push(createUseStrictPrologue());\n }\n return statementOffset;\n }\n function copyCustomPrologue(source, target, statementOffset, visitor, filter) {\n if (filter === void 0) { filter = ts.returnTrue; }\n var numStatements = source.length;\n while (statementOffset !== undefined && statementOffset < numStatements) {\n var statement = source[statementOffset];\n if (ts.getEmitFlags(statement) & 1048576 /* CustomPrologue */ && filter(statement)) {\n ts.append(target, visitor ? ts.visitNode(statement, visitor, ts.isStatement) : statement);\n }\n else {\n break;\n }\n statementOffset++;\n }\n return statementOffset;\n }\n /**\n * Ensures \"use strict\" directive is added\n *\n * @param statements An array of statements\n */\n function ensureUseStrict(statements) {\n var foundUseStrict = ts.findUseStrictPrologue(statements);\n if (!foundUseStrict) {\n return ts.setTextRange(createNodeArray(__spreadArray([createUseStrictPrologue()], statements, true)), statements);\n }\n return statements;\n }\n /**\n * Lifts a NodeArray containing only Statement nodes to a block.\n *\n * @param nodes The NodeArray.\n */\n function liftToBlock(nodes) {\n ts.Debug.assert(ts.every(nodes, ts.isStatementOrBlock), \"Cannot lift nodes to a Block.\");\n return ts.singleOrUndefined(nodes) || createBlock(nodes);\n }\n function findSpanEnd(array, test, start) {\n var i = start;\n while (i < array.length && test(array[i])) {\n i++;\n }\n return i;\n }\n function mergeLexicalEnvironment(statements, declarations) {\n if (!ts.some(declarations)) {\n return statements;\n }\n // When we merge new lexical statements into an existing statement list, we merge them in the following manner:\n //\n // Given:\n //\n // | Left | Right |\n // |------------------------------------|-------------------------------------|\n // | [standard prologues (left)] | [standard prologues (right)] |\n // | [hoisted functions (left)] | [hoisted functions (right)] |\n // | [hoisted variables (left)] | [hoisted variables (right)] |\n // | [lexical init statements (left)] | [lexical init statements (right)] |\n // | [other statements (left)] | |\n //\n // The resulting statement list will be:\n //\n // | Result |\n // |-------------------------------------|\n // | [standard prologues (right)] |\n // | [standard prologues (left)] |\n // | [hoisted functions (right)] |\n // | [hoisted functions (left)] |\n // | [hoisted variables (right)] |\n // | [hoisted variables (left)] |\n // | [lexical init statements (right)] |\n // | [lexical init statements (left)] |\n // | [other statements (left)] |\n //\n // NOTE: It is expected that new lexical init statements must be evaluated before existing lexical init statements,\n // as the prior transformation may depend on the evaluation of the lexical init statements to be in the correct state.\n // find standard prologues on left in the following order: standard directives, hoisted functions, hoisted variables, other custom\n var leftStandardPrologueEnd = findSpanEnd(statements, ts.isPrologueDirective, 0);\n var leftHoistedFunctionsEnd = findSpanEnd(statements, ts.isHoistedFunction, leftStandardPrologueEnd);\n var leftHoistedVariablesEnd = findSpanEnd(statements, ts.isHoistedVariableStatement, leftHoistedFunctionsEnd);\n // find standard prologues on right in the following order: standard directives, hoisted functions, hoisted variables, other custom\n var rightStandardPrologueEnd = findSpanEnd(declarations, ts.isPrologueDirective, 0);\n var rightHoistedFunctionsEnd = findSpanEnd(declarations, ts.isHoistedFunction, rightStandardPrologueEnd);\n var rightHoistedVariablesEnd = findSpanEnd(declarations, ts.isHoistedVariableStatement, rightHoistedFunctionsEnd);\n var rightCustomPrologueEnd = findSpanEnd(declarations, ts.isCustomPrologue, rightHoistedVariablesEnd);\n ts.Debug.assert(rightCustomPrologueEnd === declarations.length, \"Expected declarations to be valid standard or custom prologues\");\n // splice prologues from the right into the left. We do this in reverse order\n // so that we don't need to recompute the index on the left when we insert items.\n var left = ts.isNodeArray(statements) ? statements.slice() : statements;\n // splice other custom prologues from right into left\n if (rightCustomPrologueEnd > rightHoistedVariablesEnd) {\n left.splice.apply(left, __spreadArray([leftHoistedVariablesEnd, 0], declarations.slice(rightHoistedVariablesEnd, rightCustomPrologueEnd), false));\n }\n // splice hoisted variables from right into left\n if (rightHoistedVariablesEnd > rightHoistedFunctionsEnd) {\n left.splice.apply(left, __spreadArray([leftHoistedFunctionsEnd, 0], declarations.slice(rightHoistedFunctionsEnd, rightHoistedVariablesEnd), false));\n }\n // splice hoisted functions from right into left\n if (rightHoistedFunctionsEnd > rightStandardPrologueEnd) {\n left.splice.apply(left, __spreadArray([leftStandardPrologueEnd, 0], declarations.slice(rightStandardPrologueEnd, rightHoistedFunctionsEnd), false));\n }\n // splice standard prologues from right into left (that are not already in left)\n if (rightStandardPrologueEnd > 0) {\n if (leftStandardPrologueEnd === 0) {\n left.splice.apply(left, __spreadArray([0, 0], declarations.slice(0, rightStandardPrologueEnd), false));\n }\n else {\n var leftPrologues = new ts.Map();\n for (var i = 0; i < leftStandardPrologueEnd; i++) {\n var leftPrologue = statements[i];\n leftPrologues.set(leftPrologue.expression.text, true);\n }\n for (var i = rightStandardPrologueEnd - 1; i >= 0; i--) {\n var rightPrologue = declarations[i];\n if (!leftPrologues.has(rightPrologue.expression.text)) {\n left.unshift(rightPrologue);\n }\n }\n }\n }\n if (ts.isNodeArray(statements)) {\n return ts.setTextRange(createNodeArray(left, statements.hasTrailingComma), statements);\n }\n return statements;\n }\n function updateModifiers(node, modifiers) {\n var _a;\n if (typeof modifiers === \"number\") {\n modifiers = createModifiersFromModifierFlags(modifiers);\n }\n return ts.isParameter(node) ? updateParameterDeclaration(node, node.decorators, modifiers, node.dotDotDotToken, node.name, node.questionToken, node.type, node.initializer) :\n ts.isPropertySignature(node) ? updatePropertySignature(node, modifiers, node.name, node.questionToken, node.type) :\n ts.isPropertyDeclaration(node) ? updatePropertyDeclaration(node, node.decorators, modifiers, node.name, (_a = node.questionToken) !== null && _a !== void 0 ? _a : node.exclamationToken, node.type, node.initializer) :\n ts.isMethodSignature(node) ? updateMethodSignature(node, modifiers, node.name, node.questionToken, node.typeParameters, node.parameters, node.type) :\n ts.isMethodDeclaration(node) ? updateMethodDeclaration(node, node.decorators, modifiers, node.asteriskToken, node.name, node.questionToken, node.typeParameters, node.parameters, node.type, node.body) :\n ts.isConstructorDeclaration(node) ? updateConstructorDeclaration(node, node.decorators, modifiers, node.parameters, node.body) :\n ts.isGetAccessorDeclaration(node) ? updateGetAccessorDeclaration(node, node.decorators, modifiers, node.name, node.parameters, node.type, node.body) :\n ts.isSetAccessorDeclaration(node) ? updateSetAccessorDeclaration(node, node.decorators, modifiers, node.name, node.parameters, node.body) :\n ts.isIndexSignatureDeclaration(node) ? updateIndexSignature(node, node.decorators, modifiers, node.parameters, node.type) :\n ts.isFunctionExpression(node) ? updateFunctionExpression(node, modifiers, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) :\n ts.isArrowFunction(node) ? updateArrowFunction(node, modifiers, node.typeParameters, node.parameters, node.type, node.equalsGreaterThanToken, node.body) :\n ts.isClassExpression(node) ? updateClassExpression(node, node.decorators, modifiers, node.name, node.typeParameters, node.heritageClauses, node.members) :\n ts.isVariableStatement(node) ? updateVariableStatement(node, modifiers, node.declarationList) :\n ts.isFunctionDeclaration(node) ? updateFunctionDeclaration(node, node.decorators, modifiers, node.asteriskToken, node.name, node.typeParameters, node.parameters, node.type, node.body) :\n ts.isClassDeclaration(node) ? updateClassDeclaration(node, node.decorators, modifiers, node.name, node.typeParameters, node.heritageClauses, node.members) :\n ts.isInterfaceDeclaration(node) ? updateInterfaceDeclaration(node, node.decorators, modifiers, node.name, node.typeParameters, node.heritageClauses, node.members) :\n ts.isTypeAliasDeclaration(node) ? updateTypeAliasDeclaration(node, node.decorators, modifiers, node.name, node.typeParameters, node.type) :\n ts.isEnumDeclaration(node) ? updateEnumDeclaration(node, node.decorators, modifiers, node.name, node.members) :\n ts.isModuleDeclaration(node) ? updateModuleDeclaration(node, node.decorators, modifiers, node.name, node.body) :\n ts.isImportEqualsDeclaration(node) ? updateImportEqualsDeclaration(node, node.decorators, modifiers, node.isTypeOnly, node.name, node.moduleReference) :\n ts.isImportDeclaration(node) ? updateImportDeclaration(node, node.decorators, modifiers, node.importClause, node.moduleSpecifier) :\n ts.isExportAssignment(node) ? updateExportAssignment(node, node.decorators, modifiers, node.expression) :\n ts.isExportDeclaration(node) ? updateExportDeclaration(node, node.decorators, modifiers, node.isTypeOnly, node.exportClause, node.moduleSpecifier) :\n ts.Debug.assertNever(node);\n }\n function asNodeArray(array) {\n return array ? createNodeArray(array) : undefined;\n }\n function asName(name) {\n return typeof name === \"string\" ? createIdentifier(name) :\n name;\n }\n function asExpression(value) {\n return typeof value === \"string\" ? createStringLiteral(value) :\n typeof value === \"number\" ? createNumericLiteral(value) :\n typeof value === \"boolean\" ? value ? createTrue() : createFalse() :\n value;\n }\n function asToken(value) {\n return typeof value === \"number\" ? createToken(value) : value;\n }\n function asEmbeddedStatement(statement) {\n return statement && ts.isNotEmittedStatement(statement) ? ts.setTextRange(setOriginalNode(createEmptyStatement(), statement), statement) : statement;\n }\n }\n ts.createNodeFactory = createNodeFactory;\n function updateWithoutOriginal(updated, original) {\n if (updated !== original) {\n ts.setTextRange(updated, original);\n }\n return updated;\n }\n function updateWithOriginal(updated, original) {\n if (updated !== original) {\n setOriginalNode(updated, original);\n ts.setTextRange(updated, original);\n }\n return updated;\n }\n function getDefaultTagNameForKind(kind) {\n switch (kind) {\n case 338 /* JSDocTypeTag */: return \"type\";\n case 336 /* JSDocReturnTag */: return \"returns\";\n case 337 /* JSDocThisTag */: return \"this\";\n case 334 /* JSDocEnumTag */: return \"enum\";\n case 325 /* JSDocAuthorTag */: return \"author\";\n case 327 /* JSDocClassTag */: return \"class\";\n case 328 /* JSDocPublicTag */: return \"public\";\n case 329 /* JSDocPrivateTag */: return \"private\";\n case 330 /* JSDocProtectedTag */: return \"protected\";\n case 331 /* JSDocReadonlyTag */: return \"readonly\";\n case 332 /* JSDocOverrideTag */: return \"override\";\n case 339 /* JSDocTemplateTag */: return \"template\";\n case 340 /* JSDocTypedefTag */: return \"typedef\";\n case 335 /* JSDocParameterTag */: return \"param\";\n case 342 /* JSDocPropertyTag */: return \"prop\";\n case 333 /* JSDocCallbackTag */: return \"callback\";\n case 323 /* JSDocAugmentsTag */: return \"augments\";\n case 324 /* JSDocImplementsTag */: return \"implements\";\n default:\n return ts.Debug.fail(\"Unsupported kind: \" + ts.Debug.formatSyntaxKind(kind));\n }\n }\n var rawTextScanner;\n var invalidValueSentinel = {};\n function getCookedText(kind, rawText) {\n if (!rawTextScanner) {\n rawTextScanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ false, 0 /* Standard */);\n }\n switch (kind) {\n case 14 /* NoSubstitutionTemplateLiteral */:\n rawTextScanner.setText(\"`\" + rawText + \"`\");\n break;\n case 15 /* TemplateHead */:\n // tslint:disable-next-line no-invalid-template-strings\n rawTextScanner.setText(\"`\" + rawText + \"${\");\n break;\n case 16 /* TemplateMiddle */:\n // tslint:disable-next-line no-invalid-template-strings\n rawTextScanner.setText(\"}\" + rawText + \"${\");\n break;\n case 17 /* TemplateTail */:\n rawTextScanner.setText(\"}\" + rawText + \"`\");\n break;\n }\n var token = rawTextScanner.scan();\n if (token === 19 /* CloseBraceToken */) {\n token = rawTextScanner.reScanTemplateToken(/*isTaggedTemplate*/ false);\n }\n if (rawTextScanner.isUnterminated()) {\n rawTextScanner.setText(undefined);\n return invalidValueSentinel;\n }\n var tokenValue;\n switch (token) {\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 15 /* TemplateHead */:\n case 16 /* TemplateMiddle */:\n case 17 /* TemplateTail */:\n tokenValue = rawTextScanner.getTokenValue();\n break;\n }\n if (tokenValue === undefined || rawTextScanner.scan() !== 1 /* EndOfFileToken */) {\n rawTextScanner.setText(undefined);\n return invalidValueSentinel;\n }\n rawTextScanner.setText(undefined);\n return tokenValue;\n }\n function propagateIdentifierNameFlags(node) {\n // An IdentifierName is allowed to be `await`\n return propagateChildFlags(node) & ~16777216 /* ContainsPossibleTopLevelAwait */;\n }\n function propagatePropertyNameFlagsOfChild(node, transformFlags) {\n return transformFlags | (node.transformFlags & 33562624 /* PropertyNamePropagatingFlags */);\n }\n function propagateChildFlags(child) {\n if (!child)\n return 0 /* None */;\n var childFlags = child.transformFlags & ~getTransformFlagsSubtreeExclusions(child.kind);\n return ts.isNamedDeclaration(child) && ts.isPropertyName(child.name) ? propagatePropertyNameFlagsOfChild(child.name, childFlags) : childFlags;\n }\n function propagateChildrenFlags(children) {\n return children ? children.transformFlags : 0 /* None */;\n }\n function aggregateChildrenFlags(children) {\n var subtreeFlags = 0 /* None */;\n for (var _i = 0, children_2 = children; _i < children_2.length; _i++) {\n var child = children_2[_i];\n subtreeFlags |= propagateChildFlags(child);\n }\n children.transformFlags = subtreeFlags;\n }\n /**\n * Gets the transform flags to exclude when unioning the transform flags of a subtree.\n */\n /* @internal */\n function getTransformFlagsSubtreeExclusions(kind) {\n if (kind >= 175 /* FirstTypeNode */ && kind <= 198 /* LastTypeNode */) {\n return -2 /* TypeExcludes */;\n }\n switch (kind) {\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 202 /* ArrayLiteralExpression */:\n return 536887296 /* ArrayLiteralOrCallOrNewExcludes */;\n case 259 /* ModuleDeclaration */:\n return 589443072 /* ModuleExcludes */;\n case 162 /* Parameter */:\n return 536870912 /* ParameterExcludes */;\n case 212 /* ArrowFunction */:\n return 557748224 /* ArrowFunctionExcludes */;\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n return 591310848 /* FunctionExcludes */;\n case 253 /* VariableDeclarationList */:\n return 537165824 /* VariableDeclarationListExcludes */;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return 536940544 /* ClassExcludes */;\n case 169 /* Constructor */:\n return 591306752 /* ConstructorExcludes */;\n case 165 /* PropertyDeclaration */:\n return 570433536 /* PropertyExcludes */;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return 574529536 /* MethodOrAccessorExcludes */;\n case 129 /* AnyKeyword */:\n case 145 /* NumberKeyword */:\n case 156 /* BigIntKeyword */:\n case 142 /* NeverKeyword */:\n case 148 /* StringKeyword */:\n case 146 /* ObjectKeyword */:\n case 132 /* BooleanKeyword */:\n case 149 /* SymbolKeyword */:\n case 114 /* VoidKeyword */:\n case 161 /* TypeParameter */:\n case 164 /* PropertySignature */:\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n return -2 /* TypeExcludes */;\n case 203 /* ObjectLiteralExpression */:\n return 536973312 /* ObjectLiteralExcludes */;\n case 290 /* CatchClause */:\n return 536903680 /* CatchClauseExcludes */;\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */:\n return 536887296 /* BindingPatternExcludes */;\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n case 345 /* PartiallyEmittedExpression */:\n case 210 /* ParenthesizedExpression */:\n case 106 /* SuperKeyword */:\n return 536870912 /* OuterExpressionExcludes */;\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return 536870912 /* PropertyAccessExcludes */;\n default:\n return 536870912 /* NodeExcludes */;\n }\n }\n ts.getTransformFlagsSubtreeExclusions = getTransformFlagsSubtreeExclusions;\n var baseFactory = ts.createBaseNodeFactory();\n function makeSynthetic(node) {\n node.flags |= 8 /* Synthesized */;\n return node;\n }\n var syntheticFactory = {\n createBaseSourceFileNode: function (kind) { return makeSynthetic(baseFactory.createBaseSourceFileNode(kind)); },\n createBaseIdentifierNode: function (kind) { return makeSynthetic(baseFactory.createBaseIdentifierNode(kind)); },\n createBasePrivateIdentifierNode: function (kind) { return makeSynthetic(baseFactory.createBasePrivateIdentifierNode(kind)); },\n createBaseTokenNode: function (kind) { return makeSynthetic(baseFactory.createBaseTokenNode(kind)); },\n createBaseNode: function (kind) { return makeSynthetic(baseFactory.createBaseNode(kind)); },\n };\n ts.factory = createNodeFactory(4 /* NoIndentationOnFreshPropertyAccess */, syntheticFactory);\n function createUnparsedSourceFile(textOrInputFiles, mapPathOrType, mapTextOrStripInternal) {\n var stripInternal;\n var bundleFileInfo;\n var fileName;\n var text;\n var length;\n var sourceMapPath;\n var sourceMapText;\n var getText;\n var getSourceMapText;\n var oldFileOfCurrentEmit;\n if (!ts.isString(textOrInputFiles)) {\n ts.Debug.assert(mapPathOrType === \"js\" || mapPathOrType === \"dts\");\n fileName = (mapPathOrType === \"js\" ? textOrInputFiles.javascriptPath : textOrInputFiles.declarationPath) || \"\";\n sourceMapPath = mapPathOrType === \"js\" ? textOrInputFiles.javascriptMapPath : textOrInputFiles.declarationMapPath;\n getText = function () { return mapPathOrType === \"js\" ? textOrInputFiles.javascriptText : textOrInputFiles.declarationText; };\n getSourceMapText = function () { return mapPathOrType === \"js\" ? textOrInputFiles.javascriptMapText : textOrInputFiles.declarationMapText; };\n length = function () { return getText().length; };\n if (textOrInputFiles.buildInfo && textOrInputFiles.buildInfo.bundle) {\n ts.Debug.assert(mapTextOrStripInternal === undefined || typeof mapTextOrStripInternal === \"boolean\");\n stripInternal = mapTextOrStripInternal;\n bundleFileInfo = mapPathOrType === \"js\" ? textOrInputFiles.buildInfo.bundle.js : textOrInputFiles.buildInfo.bundle.dts;\n oldFileOfCurrentEmit = textOrInputFiles.oldFileOfCurrentEmit;\n }\n }\n else {\n fileName = \"\";\n text = textOrInputFiles;\n length = textOrInputFiles.length;\n sourceMapPath = mapPathOrType;\n sourceMapText = mapTextOrStripInternal;\n }\n var node = oldFileOfCurrentEmit ?\n parseOldFileOfCurrentEmit(ts.Debug.assertDefined(bundleFileInfo)) :\n parseUnparsedSourceFile(bundleFileInfo, stripInternal, length);\n node.fileName = fileName;\n node.sourceMapPath = sourceMapPath;\n node.oldFileOfCurrentEmit = oldFileOfCurrentEmit;\n if (getText && getSourceMapText) {\n Object.defineProperty(node, \"text\", { get: getText });\n Object.defineProperty(node, \"sourceMapText\", { get: getSourceMapText });\n }\n else {\n ts.Debug.assert(!oldFileOfCurrentEmit);\n node.text = text !== null && text !== void 0 ? text : \"\";\n node.sourceMapText = sourceMapText;\n }\n return node;\n }\n ts.createUnparsedSourceFile = createUnparsedSourceFile;\n function parseUnparsedSourceFile(bundleFileInfo, stripInternal, length) {\n var prologues;\n var helpers;\n var referencedFiles;\n var typeReferenceDirectives;\n var libReferenceDirectives;\n var prependChildren;\n var texts;\n var hasNoDefaultLib;\n for (var _i = 0, _a = bundleFileInfo ? bundleFileInfo.sections : ts.emptyArray; _i < _a.length; _i++) {\n var section = _a[_i];\n switch (section.kind) {\n case \"prologue\" /* Prologue */:\n prologues = ts.append(prologues, ts.setTextRange(ts.factory.createUnparsedPrologue(section.data), section));\n break;\n case \"emitHelpers\" /* EmitHelpers */:\n helpers = ts.append(helpers, ts.getAllUnscopedEmitHelpers().get(section.data));\n break;\n case \"no-default-lib\" /* NoDefaultLib */:\n hasNoDefaultLib = true;\n break;\n case \"reference\" /* Reference */:\n referencedFiles = ts.append(referencedFiles, { pos: -1, end: -1, fileName: section.data });\n break;\n case \"type\" /* Type */:\n typeReferenceDirectives = ts.append(typeReferenceDirectives, section.data);\n break;\n case \"lib\" /* Lib */:\n libReferenceDirectives = ts.append(libReferenceDirectives, { pos: -1, end: -1, fileName: section.data });\n break;\n case \"prepend\" /* Prepend */:\n var prependTexts = void 0;\n for (var _b = 0, _c = section.texts; _b < _c.length; _b++) {\n var text = _c[_b];\n if (!stripInternal || text.kind !== \"internal\" /* Internal */) {\n prependTexts = ts.append(prependTexts, ts.setTextRange(ts.factory.createUnparsedTextLike(text.data, text.kind === \"internal\" /* Internal */), text));\n }\n }\n prependChildren = ts.addRange(prependChildren, prependTexts);\n texts = ts.append(texts, ts.factory.createUnparsedPrepend(section.data, prependTexts !== null && prependTexts !== void 0 ? prependTexts : ts.emptyArray));\n break;\n case \"internal\" /* Internal */:\n if (stripInternal) {\n if (!texts)\n texts = [];\n break;\n }\n // falls through\n case \"text\" /* Text */:\n texts = ts.append(texts, ts.setTextRange(ts.factory.createUnparsedTextLike(section.data, section.kind === \"internal\" /* Internal */), section));\n break;\n default:\n ts.Debug.assertNever(section);\n }\n }\n if (!texts) {\n var textNode = ts.factory.createUnparsedTextLike(/*data*/ undefined, /*internal*/ false);\n ts.setTextRangePosWidth(textNode, 0, typeof length === \"function\" ? length() : length);\n texts = [textNode];\n }\n var node = ts.parseNodeFactory.createUnparsedSource(prologues !== null && prologues !== void 0 ? prologues : ts.emptyArray, /*syntheticReferences*/ undefined, texts);\n ts.setEachParent(prologues, node);\n ts.setEachParent(texts, node);\n ts.setEachParent(prependChildren, node);\n node.hasNoDefaultLib = hasNoDefaultLib;\n node.helpers = helpers;\n node.referencedFiles = referencedFiles || ts.emptyArray;\n node.typeReferenceDirectives = typeReferenceDirectives;\n node.libReferenceDirectives = libReferenceDirectives || ts.emptyArray;\n return node;\n }\n function parseOldFileOfCurrentEmit(bundleFileInfo) {\n var texts;\n var syntheticReferences;\n for (var _i = 0, _a = bundleFileInfo.sections; _i < _a.length; _i++) {\n var section = _a[_i];\n switch (section.kind) {\n case \"internal\" /* Internal */:\n case \"text\" /* Text */:\n texts = ts.append(texts, ts.setTextRange(ts.factory.createUnparsedTextLike(section.data, section.kind === \"internal\" /* Internal */), section));\n break;\n case \"no-default-lib\" /* NoDefaultLib */:\n case \"reference\" /* Reference */:\n case \"type\" /* Type */:\n case \"lib\" /* Lib */:\n syntheticReferences = ts.append(syntheticReferences, ts.setTextRange(ts.factory.createUnparsedSyntheticReference(section), section));\n break;\n // Ignore\n case \"prologue\" /* Prologue */:\n case \"emitHelpers\" /* EmitHelpers */:\n case \"prepend\" /* Prepend */:\n break;\n default:\n ts.Debug.assertNever(section);\n }\n }\n var node = ts.factory.createUnparsedSource(ts.emptyArray, syntheticReferences, texts !== null && texts !== void 0 ? texts : ts.emptyArray);\n ts.setEachParent(syntheticReferences, node);\n ts.setEachParent(texts, node);\n node.helpers = ts.map(bundleFileInfo.sources && bundleFileInfo.sources.helpers, function (name) { return ts.getAllUnscopedEmitHelpers().get(name); });\n return node;\n }\n function createInputFiles(javascriptTextOrReadFileText, declarationTextOrJavascriptPath, javascriptMapPath, javascriptMapTextOrDeclarationPath, declarationMapPath, declarationMapTextOrBuildInfoPath, javascriptPath, declarationPath, buildInfoPath, buildInfo, oldFileOfCurrentEmit) {\n var node = ts.parseNodeFactory.createInputFiles();\n if (!ts.isString(javascriptTextOrReadFileText)) {\n var cache_1 = new ts.Map();\n var textGetter_1 = function (path) {\n if (path === undefined)\n return undefined;\n var value = cache_1.get(path);\n if (value === undefined) {\n value = javascriptTextOrReadFileText(path);\n cache_1.set(path, value !== undefined ? value : false);\n }\n return value !== false ? value : undefined;\n };\n var definedTextGetter_1 = function (path) {\n var result = textGetter_1(path);\n return result !== undefined ? result : \"/* Input file \" + path + \" was missing */\\r\\n\";\n };\n var buildInfo_1;\n var getAndCacheBuildInfo_1 = function (getText) {\n if (buildInfo_1 === undefined) {\n var result = getText();\n buildInfo_1 = result !== undefined ? ts.getBuildInfo(result) : false;\n }\n return buildInfo_1 || undefined;\n };\n node.javascriptPath = declarationTextOrJavascriptPath;\n node.javascriptMapPath = javascriptMapPath;\n node.declarationPath = ts.Debug.assertDefined(javascriptMapTextOrDeclarationPath);\n node.declarationMapPath = declarationMapPath;\n node.buildInfoPath = declarationMapTextOrBuildInfoPath;\n Object.defineProperties(node, {\n javascriptText: { get: function () { return definedTextGetter_1(declarationTextOrJavascriptPath); } },\n javascriptMapText: { get: function () { return textGetter_1(javascriptMapPath); } },\n declarationText: { get: function () { return definedTextGetter_1(ts.Debug.assertDefined(javascriptMapTextOrDeclarationPath)); } },\n declarationMapText: { get: function () { return textGetter_1(declarationMapPath); } },\n buildInfo: { get: function () { return getAndCacheBuildInfo_1(function () { return textGetter_1(declarationMapTextOrBuildInfoPath); }); } }\n });\n }\n else {\n node.javascriptText = javascriptTextOrReadFileText;\n node.javascriptMapPath = javascriptMapPath;\n node.javascriptMapText = javascriptMapTextOrDeclarationPath;\n node.declarationText = declarationTextOrJavascriptPath;\n node.declarationMapPath = declarationMapPath;\n node.declarationMapText = declarationMapTextOrBuildInfoPath;\n node.javascriptPath = javascriptPath;\n node.declarationPath = declarationPath;\n node.buildInfoPath = buildInfoPath;\n node.buildInfo = buildInfo;\n node.oldFileOfCurrentEmit = oldFileOfCurrentEmit;\n }\n return node;\n }\n ts.createInputFiles = createInputFiles;\n // tslint:disable-next-line variable-name\n var SourceMapSource;\n /**\n * Create an external source map source file reference\n */\n function createSourceMapSource(fileName, text, skipTrivia) {\n return new (SourceMapSource || (SourceMapSource = ts.objectAllocator.getSourceMapSourceConstructor()))(fileName, text, skipTrivia);\n }\n ts.createSourceMapSource = createSourceMapSource;\n // Utilities\n function setOriginalNode(node, original) {\n node.original = original;\n if (original) {\n var emitNode = original.emitNode;\n if (emitNode)\n node.emitNode = mergeEmitNode(emitNode, node.emitNode);\n }\n return node;\n }\n ts.setOriginalNode = setOriginalNode;\n function mergeEmitNode(sourceEmitNode, destEmitNode) {\n var flags = sourceEmitNode.flags, leadingComments = sourceEmitNode.leadingComments, trailingComments = sourceEmitNode.trailingComments, commentRange = sourceEmitNode.commentRange, sourceMapRange = sourceEmitNode.sourceMapRange, tokenSourceMapRanges = sourceEmitNode.tokenSourceMapRanges, constantValue = sourceEmitNode.constantValue, helpers = sourceEmitNode.helpers, startsOnNewLine = sourceEmitNode.startsOnNewLine;\n if (!destEmitNode)\n destEmitNode = {};\n // We are using `.slice()` here in case `destEmitNode.leadingComments` is pushed to later.\n if (leadingComments)\n destEmitNode.leadingComments = ts.addRange(leadingComments.slice(), destEmitNode.leadingComments);\n if (trailingComments)\n destEmitNode.trailingComments = ts.addRange(trailingComments.slice(), destEmitNode.trailingComments);\n if (flags)\n destEmitNode.flags = flags & ~268435456 /* Immutable */;\n if (commentRange)\n destEmitNode.commentRange = commentRange;\n if (sourceMapRange)\n destEmitNode.sourceMapRange = sourceMapRange;\n if (tokenSourceMapRanges)\n destEmitNode.tokenSourceMapRanges = mergeTokenSourceMapRanges(tokenSourceMapRanges, destEmitNode.tokenSourceMapRanges);\n if (constantValue !== undefined)\n destEmitNode.constantValue = constantValue;\n if (helpers) {\n for (var _i = 0, helpers_1 = helpers; _i < helpers_1.length; _i++) {\n var helper = helpers_1[_i];\n destEmitNode.helpers = ts.appendIfUnique(destEmitNode.helpers, helper);\n }\n }\n if (startsOnNewLine !== undefined)\n destEmitNode.startsOnNewLine = startsOnNewLine;\n return destEmitNode;\n }\n function mergeTokenSourceMapRanges(sourceRanges, destRanges) {\n if (!destRanges)\n destRanges = [];\n for (var key in sourceRanges) {\n destRanges[key] = sourceRanges[key];\n }\n return destRanges;\n }\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /**\n * Associates a node with the current transformation, initializing\n * various transient transformation properties.\n * @internal\n */\n function getOrCreateEmitNode(node) {\n var _a;\n if (!node.emitNode) {\n if (ts.isParseTreeNode(node)) {\n // To avoid holding onto transformation artifacts, we keep track of any\n // parse tree node we are annotating. This allows us to clean them up after\n // all transformations have completed.\n if (node.kind === 300 /* SourceFile */) {\n return node.emitNode = { annotatedNodes: [node] };\n }\n var sourceFile = (_a = ts.getSourceFileOfNode(ts.getParseTreeNode(ts.getSourceFileOfNode(node)))) !== null && _a !== void 0 ? _a : ts.Debug.fail(\"Could not determine parsed source file.\");\n getOrCreateEmitNode(sourceFile).annotatedNodes.push(node);\n }\n node.emitNode = {};\n }\n else {\n ts.Debug.assert(!(node.emitNode.flags & 268435456 /* Immutable */), \"Invalid attempt to mutate an immutable node.\");\n }\n return node.emitNode;\n }\n ts.getOrCreateEmitNode = getOrCreateEmitNode;\n /**\n * Clears any `EmitNode` entries from parse-tree nodes.\n * @param sourceFile A source file.\n */\n function disposeEmitNodes(sourceFile) {\n var _a, _b;\n // During transformation we may need to annotate a parse tree node with transient\n // transformation properties. As parse tree nodes live longer than transformation\n // nodes, we need to make sure we reclaim any memory allocated for custom ranges\n // from these nodes to ensure we do not hold onto entire subtrees just for position\n // information. We also need to reset these nodes to a pre-transformation state\n // for incremental parsing scenarios so that we do not impact later emit.\n var annotatedNodes = (_b = (_a = ts.getSourceFileOfNode(ts.getParseTreeNode(sourceFile))) === null || _a === void 0 ? void 0 : _a.emitNode) === null || _b === void 0 ? void 0 : _b.annotatedNodes;\n if (annotatedNodes) {\n for (var _i = 0, annotatedNodes_1 = annotatedNodes; _i < annotatedNodes_1.length; _i++) {\n var node = annotatedNodes_1[_i];\n node.emitNode = undefined;\n }\n }\n }\n ts.disposeEmitNodes = disposeEmitNodes;\n /**\n * Sets `EmitFlags.NoComments` on a node and removes any leading and trailing synthetic comments.\n * @internal\n */\n function removeAllComments(node) {\n var emitNode = getOrCreateEmitNode(node);\n emitNode.flags |= 1536 /* NoComments */;\n emitNode.leadingComments = undefined;\n emitNode.trailingComments = undefined;\n return node;\n }\n ts.removeAllComments = removeAllComments;\n /**\n * Sets flags that control emit behavior of a node.\n */\n function setEmitFlags(node, emitFlags) {\n getOrCreateEmitNode(node).flags = emitFlags;\n return node;\n }\n ts.setEmitFlags = setEmitFlags;\n /**\n * Sets flags that control emit behavior of a node.\n */\n /* @internal */\n function addEmitFlags(node, emitFlags) {\n var emitNode = getOrCreateEmitNode(node);\n emitNode.flags = emitNode.flags | emitFlags;\n return node;\n }\n ts.addEmitFlags = addEmitFlags;\n /**\n * Gets a custom text range to use when emitting source maps.\n */\n function getSourceMapRange(node) {\n var _a, _b;\n return (_b = (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.sourceMapRange) !== null && _b !== void 0 ? _b : node;\n }\n ts.getSourceMapRange = getSourceMapRange;\n /**\n * Sets a custom text range to use when emitting source maps.\n */\n function setSourceMapRange(node, range) {\n getOrCreateEmitNode(node).sourceMapRange = range;\n return node;\n }\n ts.setSourceMapRange = setSourceMapRange;\n /**\n * Gets the TextRange to use for source maps for a token of a node.\n */\n function getTokenSourceMapRange(node, token) {\n var _a, _b;\n return (_b = (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.tokenSourceMapRanges) === null || _b === void 0 ? void 0 : _b[token];\n }\n ts.getTokenSourceMapRange = getTokenSourceMapRange;\n /**\n * Sets the TextRange to use for source maps for a token of a node.\n */\n function setTokenSourceMapRange(node, token, range) {\n var _a;\n var emitNode = getOrCreateEmitNode(node);\n var tokenSourceMapRanges = (_a = emitNode.tokenSourceMapRanges) !== null && _a !== void 0 ? _a : (emitNode.tokenSourceMapRanges = []);\n tokenSourceMapRanges[token] = range;\n return node;\n }\n ts.setTokenSourceMapRange = setTokenSourceMapRange;\n /**\n * Gets a custom text range to use when emitting comments.\n */\n /*@internal*/\n function getStartsOnNewLine(node) {\n var _a;\n return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.startsOnNewLine;\n }\n ts.getStartsOnNewLine = getStartsOnNewLine;\n /**\n * Sets a custom text range to use when emitting comments.\n */\n /*@internal*/\n function setStartsOnNewLine(node, newLine) {\n getOrCreateEmitNode(node).startsOnNewLine = newLine;\n return node;\n }\n ts.setStartsOnNewLine = setStartsOnNewLine;\n /**\n * Gets a custom text range to use when emitting comments.\n */\n function getCommentRange(node) {\n var _a, _b;\n return (_b = (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.commentRange) !== null && _b !== void 0 ? _b : node;\n }\n ts.getCommentRange = getCommentRange;\n /**\n * Sets a custom text range to use when emitting comments.\n */\n function setCommentRange(node, range) {\n getOrCreateEmitNode(node).commentRange = range;\n return node;\n }\n ts.setCommentRange = setCommentRange;\n function getSyntheticLeadingComments(node) {\n var _a;\n return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.leadingComments;\n }\n ts.getSyntheticLeadingComments = getSyntheticLeadingComments;\n function setSyntheticLeadingComments(node, comments) {\n getOrCreateEmitNode(node).leadingComments = comments;\n return node;\n }\n ts.setSyntheticLeadingComments = setSyntheticLeadingComments;\n function addSyntheticLeadingComment(node, kind, text, hasTrailingNewLine) {\n return setSyntheticLeadingComments(node, ts.append(getSyntheticLeadingComments(node), { kind: kind, pos: -1, end: -1, hasTrailingNewLine: hasTrailingNewLine, text: text }));\n }\n ts.addSyntheticLeadingComment = addSyntheticLeadingComment;\n function getSyntheticTrailingComments(node) {\n var _a;\n return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.trailingComments;\n }\n ts.getSyntheticTrailingComments = getSyntheticTrailingComments;\n function setSyntheticTrailingComments(node, comments) {\n getOrCreateEmitNode(node).trailingComments = comments;\n return node;\n }\n ts.setSyntheticTrailingComments = setSyntheticTrailingComments;\n function addSyntheticTrailingComment(node, kind, text, hasTrailingNewLine) {\n return setSyntheticTrailingComments(node, ts.append(getSyntheticTrailingComments(node), { kind: kind, pos: -1, end: -1, hasTrailingNewLine: hasTrailingNewLine, text: text }));\n }\n ts.addSyntheticTrailingComment = addSyntheticTrailingComment;\n function moveSyntheticComments(node, original) {\n setSyntheticLeadingComments(node, getSyntheticLeadingComments(original));\n setSyntheticTrailingComments(node, getSyntheticTrailingComments(original));\n var emit = getOrCreateEmitNode(original);\n emit.leadingComments = undefined;\n emit.trailingComments = undefined;\n return node;\n }\n ts.moveSyntheticComments = moveSyntheticComments;\n /**\n * Gets the constant value to emit for an expression representing an enum.\n */\n function getConstantValue(node) {\n var _a;\n return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.constantValue;\n }\n ts.getConstantValue = getConstantValue;\n /**\n * Sets the constant value to emit for an expression.\n */\n function setConstantValue(node, value) {\n var emitNode = getOrCreateEmitNode(node);\n emitNode.constantValue = value;\n return node;\n }\n ts.setConstantValue = setConstantValue;\n /**\n * Adds an EmitHelper to a node.\n */\n function addEmitHelper(node, helper) {\n var emitNode = getOrCreateEmitNode(node);\n emitNode.helpers = ts.append(emitNode.helpers, helper);\n return node;\n }\n ts.addEmitHelper = addEmitHelper;\n /**\n * Add EmitHelpers to a node.\n */\n function addEmitHelpers(node, helpers) {\n if (ts.some(helpers)) {\n var emitNode = getOrCreateEmitNode(node);\n for (var _i = 0, helpers_2 = helpers; _i < helpers_2.length; _i++) {\n var helper = helpers_2[_i];\n emitNode.helpers = ts.appendIfUnique(emitNode.helpers, helper);\n }\n }\n return node;\n }\n ts.addEmitHelpers = addEmitHelpers;\n /**\n * Removes an EmitHelper from a node.\n */\n function removeEmitHelper(node, helper) {\n var _a;\n var helpers = (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.helpers;\n if (helpers) {\n return ts.orderedRemoveItem(helpers, helper);\n }\n return false;\n }\n ts.removeEmitHelper = removeEmitHelper;\n /**\n * Gets the EmitHelpers of a node.\n */\n function getEmitHelpers(node) {\n var _a;\n return (_a = node.emitNode) === null || _a === void 0 ? void 0 : _a.helpers;\n }\n ts.getEmitHelpers = getEmitHelpers;\n /**\n * Moves matching emit helpers from a source node to a target node.\n */\n function moveEmitHelpers(source, target, predicate) {\n var sourceEmitNode = source.emitNode;\n var sourceEmitHelpers = sourceEmitNode && sourceEmitNode.helpers;\n if (!ts.some(sourceEmitHelpers))\n return;\n var targetEmitNode = getOrCreateEmitNode(target);\n var helpersRemoved = 0;\n for (var i = 0; i < sourceEmitHelpers.length; i++) {\n var helper = sourceEmitHelpers[i];\n if (predicate(helper)) {\n helpersRemoved++;\n targetEmitNode.helpers = ts.appendIfUnique(targetEmitNode.helpers, helper);\n }\n else if (helpersRemoved > 0) {\n sourceEmitHelpers[i - helpersRemoved] = helper;\n }\n }\n if (helpersRemoved > 0) {\n sourceEmitHelpers.length -= helpersRemoved;\n }\n }\n ts.moveEmitHelpers = moveEmitHelpers;\n /* @internal */\n function ignoreSourceNewlines(node) {\n getOrCreateEmitNode(node).flags |= 134217728 /* IgnoreSourceNewlines */;\n return node;\n }\n ts.ignoreSourceNewlines = ignoreSourceNewlines;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function createEmitHelperFactory(context) {\n var factory = context.factory;\n var immutableTrue = ts.memoize(function () { return ts.setEmitFlags(factory.createTrue(), 268435456 /* Immutable */); });\n var immutableFalse = ts.memoize(function () { return ts.setEmitFlags(factory.createFalse(), 268435456 /* Immutable */); });\n return {\n getUnscopedHelperName: getUnscopedHelperName,\n // TypeScript Helpers\n createDecorateHelper: createDecorateHelper,\n createMetadataHelper: createMetadataHelper,\n createParamHelper: createParamHelper,\n // ES2018 Helpers\n createAssignHelper: createAssignHelper,\n createAwaitHelper: createAwaitHelper,\n createAsyncGeneratorHelper: createAsyncGeneratorHelper,\n createAsyncDelegatorHelper: createAsyncDelegatorHelper,\n createAsyncValuesHelper: createAsyncValuesHelper,\n // ES2018 Destructuring Helpers\n createRestHelper: createRestHelper,\n // ES2017 Helpers\n createAwaiterHelper: createAwaiterHelper,\n // ES2015 Helpers\n createExtendsHelper: createExtendsHelper,\n createTemplateObjectHelper: createTemplateObjectHelper,\n createSpreadArrayHelper: createSpreadArrayHelper,\n // ES2015 Destructuring Helpers\n createValuesHelper: createValuesHelper,\n createReadHelper: createReadHelper,\n // ES2015 Generator Helpers\n createGeneratorHelper: createGeneratorHelper,\n // ES Module Helpers\n createCreateBindingHelper: createCreateBindingHelper,\n createImportStarHelper: createImportStarHelper,\n createImportStarCallbackHelper: createImportStarCallbackHelper,\n createImportDefaultHelper: createImportDefaultHelper,\n createExportStarHelper: createExportStarHelper,\n // Class Fields Helpers\n createClassPrivateFieldGetHelper: createClassPrivateFieldGetHelper,\n createClassPrivateFieldSetHelper: createClassPrivateFieldSetHelper,\n };\n /**\n * Gets an identifier for the name of an *unscoped* emit helper.\n */\n function getUnscopedHelperName(name) {\n return ts.setEmitFlags(factory.createIdentifier(name), 4096 /* HelperName */ | 2 /* AdviseOnEmitNode */);\n }\n // TypeScript Helpers\n function createDecorateHelper(decoratorExpressions, target, memberName, descriptor) {\n context.requestEmitHelper(ts.decorateHelper);\n var argumentsArray = [];\n argumentsArray.push(factory.createArrayLiteralExpression(decoratorExpressions, /*multiLine*/ true));\n argumentsArray.push(target);\n if (memberName) {\n argumentsArray.push(memberName);\n if (descriptor) {\n argumentsArray.push(descriptor);\n }\n }\n return factory.createCallExpression(getUnscopedHelperName(\"__decorate\"), \n /*typeArguments*/ undefined, argumentsArray);\n }\n function createMetadataHelper(metadataKey, metadataValue) {\n context.requestEmitHelper(ts.metadataHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__metadata\"), \n /*typeArguments*/ undefined, [\n factory.createStringLiteral(metadataKey),\n metadataValue\n ]);\n }\n function createParamHelper(expression, parameterOffset, location) {\n context.requestEmitHelper(ts.paramHelper);\n return ts.setTextRange(factory.createCallExpression(getUnscopedHelperName(\"__param\"), \n /*typeArguments*/ undefined, [\n factory.createNumericLiteral(parameterOffset + \"\"),\n expression\n ]), location);\n }\n // ES2018 Helpers\n function createAssignHelper(attributesSegments) {\n if (context.getCompilerOptions().target >= 2 /* ES2015 */) {\n return factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Object\"), \"assign\"), \n /*typeArguments*/ undefined, attributesSegments);\n }\n context.requestEmitHelper(ts.assignHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__assign\"), \n /*typeArguments*/ undefined, attributesSegments);\n }\n function createAwaitHelper(expression) {\n context.requestEmitHelper(ts.awaitHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__await\"), /*typeArguments*/ undefined, [expression]);\n }\n function createAsyncGeneratorHelper(generatorFunc, hasLexicalThis) {\n context.requestEmitHelper(ts.awaitHelper);\n context.requestEmitHelper(ts.asyncGeneratorHelper);\n // Mark this node as originally an async function\n (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 262144 /* AsyncFunctionBody */ | 524288 /* ReuseTempVariableScope */;\n return factory.createCallExpression(getUnscopedHelperName(\"__asyncGenerator\"), \n /*typeArguments*/ undefined, [\n hasLexicalThis ? factory.createThis() : factory.createVoidZero(),\n factory.createIdentifier(\"arguments\"),\n generatorFunc\n ]);\n }\n function createAsyncDelegatorHelper(expression) {\n context.requestEmitHelper(ts.awaitHelper);\n context.requestEmitHelper(ts.asyncDelegator);\n return factory.createCallExpression(getUnscopedHelperName(\"__asyncDelegator\"), \n /*typeArguments*/ undefined, [expression]);\n }\n function createAsyncValuesHelper(expression) {\n context.requestEmitHelper(ts.asyncValues);\n return factory.createCallExpression(getUnscopedHelperName(\"__asyncValues\"), \n /*typeArguments*/ undefined, [expression]);\n }\n // ES2018 Destructuring Helpers\n /** Given value: o, propName: p, pattern: { a, b, ...p } from the original statement\n * `{ a, b, ...p } = o`, create `p = __rest(o, [\"a\", \"b\"]);`\n */\n function createRestHelper(value, elements, computedTempVariables, location) {\n context.requestEmitHelper(ts.restHelper);\n var propertyNames = [];\n var computedTempVariableOffset = 0;\n for (var i = 0; i < elements.length - 1; i++) {\n var propertyName = ts.getPropertyNameOfBindingOrAssignmentElement(elements[i]);\n if (propertyName) {\n if (ts.isComputedPropertyName(propertyName)) {\n ts.Debug.assertIsDefined(computedTempVariables, \"Encountered computed property name but 'computedTempVariables' argument was not provided.\");\n var temp = computedTempVariables[computedTempVariableOffset];\n computedTempVariableOffset++;\n // typeof _tmp === \"symbol\" ? _tmp : _tmp + \"\"\n propertyNames.push(factory.createConditionalExpression(factory.createTypeCheck(temp, \"symbol\"), \n /*questionToken*/ undefined, temp, \n /*colonToken*/ undefined, factory.createAdd(temp, factory.createStringLiteral(\"\"))));\n }\n else {\n propertyNames.push(factory.createStringLiteralFromNode(propertyName));\n }\n }\n }\n return factory.createCallExpression(getUnscopedHelperName(\"__rest\"), \n /*typeArguments*/ undefined, [\n value,\n ts.setTextRange(factory.createArrayLiteralExpression(propertyNames), location)\n ]);\n }\n // ES2017 Helpers\n function createAwaiterHelper(hasLexicalThis, hasLexicalArguments, promiseConstructor, body) {\n context.requestEmitHelper(ts.awaiterHelper);\n var generatorFunc = factory.createFunctionExpression(\n /*modifiers*/ undefined, factory.createToken(41 /* AsteriskToken */), \n /*name*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ [], \n /*type*/ undefined, body);\n // Mark this node as originally an async function\n (generatorFunc.emitNode || (generatorFunc.emitNode = {})).flags |= 262144 /* AsyncFunctionBody */ | 524288 /* ReuseTempVariableScope */;\n return factory.createCallExpression(getUnscopedHelperName(\"__awaiter\"), \n /*typeArguments*/ undefined, [\n hasLexicalThis ? factory.createThis() : factory.createVoidZero(),\n hasLexicalArguments ? factory.createIdentifier(\"arguments\") : factory.createVoidZero(),\n promiseConstructor ? ts.createExpressionFromEntityName(factory, promiseConstructor) : factory.createVoidZero(),\n generatorFunc\n ]);\n }\n // ES2015 Helpers\n function createExtendsHelper(name) {\n context.requestEmitHelper(ts.extendsHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__extends\"), \n /*typeArguments*/ undefined, [name, factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */)]);\n }\n function createTemplateObjectHelper(cooked, raw) {\n context.requestEmitHelper(ts.templateObjectHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__makeTemplateObject\"), \n /*typeArguments*/ undefined, [cooked, raw]);\n }\n function createSpreadArrayHelper(to, from, packFrom) {\n context.requestEmitHelper(ts.spreadArrayHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__spreadArray\"), \n /*typeArguments*/ undefined, [to, from, packFrom ? immutableTrue() : immutableFalse()]);\n }\n // ES2015 Destructuring Helpers\n function createValuesHelper(expression) {\n context.requestEmitHelper(ts.valuesHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__values\"), \n /*typeArguments*/ undefined, [expression]);\n }\n function createReadHelper(iteratorRecord, count) {\n context.requestEmitHelper(ts.readHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__read\"), \n /*typeArguments*/ undefined, count !== undefined\n ? [iteratorRecord, factory.createNumericLiteral(count + \"\")]\n : [iteratorRecord]);\n }\n // ES2015 Generator Helpers\n function createGeneratorHelper(body) {\n context.requestEmitHelper(ts.generatorHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__generator\"), \n /*typeArguments*/ undefined, [factory.createThis(), body]);\n }\n // ES Module Helpers\n function createCreateBindingHelper(module, inputName, outputName) {\n context.requestEmitHelper(ts.createBindingHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__createBinding\"), \n /*typeArguments*/ undefined, __spreadArray([factory.createIdentifier(\"exports\"), module, inputName], (outputName ? [outputName] : []), true));\n }\n function createImportStarHelper(expression) {\n context.requestEmitHelper(ts.importStarHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__importStar\"), \n /*typeArguments*/ undefined, [expression]);\n }\n function createImportStarCallbackHelper() {\n context.requestEmitHelper(ts.importStarHelper);\n return getUnscopedHelperName(\"__importStar\");\n }\n function createImportDefaultHelper(expression) {\n context.requestEmitHelper(ts.importDefaultHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__importDefault\"), \n /*typeArguments*/ undefined, [expression]);\n }\n function createExportStarHelper(moduleExpression, exportsExpression) {\n if (exportsExpression === void 0) { exportsExpression = factory.createIdentifier(\"exports\"); }\n context.requestEmitHelper(ts.exportStarHelper);\n context.requestEmitHelper(ts.createBindingHelper);\n return factory.createCallExpression(getUnscopedHelperName(\"__exportStar\"), \n /*typeArguments*/ undefined, [moduleExpression, exportsExpression]);\n }\n // Class Fields Helpers\n function createClassPrivateFieldGetHelper(receiver, state, kind, f) {\n context.requestEmitHelper(ts.classPrivateFieldGetHelper);\n var args;\n if (!f) {\n args = [receiver, state, factory.createStringLiteral(kind)];\n }\n else {\n args = [receiver, state, factory.createStringLiteral(kind), f];\n }\n return factory.createCallExpression(getUnscopedHelperName(\"__classPrivateFieldGet\"), /*typeArguments*/ undefined, args);\n }\n function createClassPrivateFieldSetHelper(receiver, state, value, kind, f) {\n context.requestEmitHelper(ts.classPrivateFieldSetHelper);\n var args;\n if (!f) {\n args = [receiver, state, value, factory.createStringLiteral(kind)];\n }\n else {\n args = [receiver, state, value, factory.createStringLiteral(kind), f];\n }\n return factory.createCallExpression(getUnscopedHelperName(\"__classPrivateFieldSet\"), /*typeArguments*/ undefined, args);\n }\n }\n ts.createEmitHelperFactory = createEmitHelperFactory;\n /* @internal */\n function compareEmitHelpers(x, y) {\n if (x === y)\n return 0 /* EqualTo */;\n if (x.priority === y.priority)\n return 0 /* EqualTo */;\n if (x.priority === undefined)\n return 1 /* GreaterThan */;\n if (y.priority === undefined)\n return -1 /* LessThan */;\n return ts.compareValues(x.priority, y.priority);\n }\n ts.compareEmitHelpers = compareEmitHelpers;\n /**\n * @param input Template string input strings\n * @param args Names which need to be made file-level unique\n */\n function helperString(input) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return function (uniqueName) {\n var result = \"\";\n for (var i = 0; i < args.length; i++) {\n result += input[i];\n result += uniqueName(args[i]);\n }\n result += input[input.length - 1];\n return result;\n };\n }\n ts.helperString = helperString;\n // TypeScript Helpers\n ts.decorateHelper = {\n name: \"typescript:decorate\",\n importName: \"__decorate\",\n scoped: false,\n priority: 2,\n text: \"\\n var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\\n if (typeof Reflect === \\\"object\\\" && typeof Reflect.decorate === \\\"function\\\") r = Reflect.decorate(decorators, target, key, desc);\\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\\n return c > 3 && r && Object.defineProperty(target, key, r), r;\\n };\"\n };\n ts.metadataHelper = {\n name: \"typescript:metadata\",\n importName: \"__metadata\",\n scoped: false,\n priority: 3,\n text: \"\\n var __metadata = (this && this.__metadata) || function (k, v) {\\n if (typeof Reflect === \\\"object\\\" && typeof Reflect.metadata === \\\"function\\\") return Reflect.metadata(k, v);\\n };\"\n };\n ts.paramHelper = {\n name: \"typescript:param\",\n importName: \"__param\",\n scoped: false,\n priority: 4,\n text: \"\\n var __param = (this && this.__param) || function (paramIndex, decorator) {\\n return function (target, key) { decorator(target, key, paramIndex); }\\n };\"\n };\n // ES2018 Helpers\n ts.assignHelper = {\n name: \"typescript:assign\",\n importName: \"__assign\",\n scoped: false,\n priority: 1,\n text: \"\\n var __assign = (this && this.__assign) || function () {\\n __assign = Object.assign || function(t) {\\n for (var s, i = 1, n = arguments.length; i < n; i++) {\\n s = arguments[i];\\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\\n t[p] = s[p];\\n }\\n return t;\\n };\\n return __assign.apply(this, arguments);\\n };\"\n };\n ts.awaitHelper = {\n name: \"typescript:await\",\n importName: \"__await\",\n scoped: false,\n text: \"\\n var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }\"\n };\n ts.asyncGeneratorHelper = {\n name: \"typescript:asyncGenerator\",\n importName: \"__asyncGenerator\",\n scoped: false,\n dependencies: [ts.awaitHelper],\n text: \"\\n var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {\\n if (!Symbol.asyncIterator) throw new TypeError(\\\"Symbol.asyncIterator is not defined.\\\");\\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\\n return i = {}, verb(\\\"next\\\"), verb(\\\"throw\\\"), verb(\\\"return\\\"), i[Symbol.asyncIterator] = function () { return this; }, i;\\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\\n function fulfill(value) { resume(\\\"next\\\", value); }\\n function reject(value) { resume(\\\"throw\\\", value); }\\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\\n };\"\n };\n ts.asyncDelegator = {\n name: \"typescript:asyncDelegator\",\n importName: \"__asyncDelegator\",\n scoped: false,\n dependencies: [ts.awaitHelper],\n text: \"\\n var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {\\n var i, p;\\n return i = {}, verb(\\\"next\\\"), verb(\\\"throw\\\", function (e) { throw e; }), verb(\\\"return\\\"), i[Symbol.iterator] = function () { return this; }, i;\\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \\\"return\\\" } : f ? f(v) : v; } : f; }\\n };\"\n };\n ts.asyncValues = {\n name: \"typescript:asyncValues\",\n importName: \"__asyncValues\",\n scoped: false,\n text: \"\\n var __asyncValues = (this && this.__asyncValues) || function (o) {\\n if (!Symbol.asyncIterator) throw new TypeError(\\\"Symbol.asyncIterator is not defined.\\\");\\n var m = o[Symbol.asyncIterator], i;\\n return m ? m.call(o) : (o = typeof __values === \\\"function\\\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\\\"next\\\"), verb(\\\"throw\\\"), verb(\\\"return\\\"), i[Symbol.asyncIterator] = function () { return this; }, i);\\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\\n };\"\n };\n // ES2018 Destructuring Helpers\n ts.restHelper = {\n name: \"typescript:rest\",\n importName: \"__rest\",\n scoped: false,\n text: \"\\n var __rest = (this && this.__rest) || function (s, e) {\\n var t = {};\\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\\n t[p] = s[p];\\n if (s != null && typeof Object.getOwnPropertySymbols === \\\"function\\\")\\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\\n t[p[i]] = s[p[i]];\\n }\\n return t;\\n };\"\n };\n // ES2017 Helpers\n ts.awaiterHelper = {\n name: \"typescript:awaiter\",\n importName: \"__awaiter\",\n scoped: false,\n priority: 5,\n text: \"\\n var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\\n return new (P || (P = Promise))(function (resolve, reject) {\\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\\n function rejected(value) { try { step(generator[\\\"throw\\\"](value)); } catch (e) { reject(e); } }\\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\\n step((generator = generator.apply(thisArg, _arguments || [])).next());\\n });\\n };\"\n };\n // ES2015 Helpers\n ts.extendsHelper = {\n name: \"typescript:extends\",\n importName: \"__extends\",\n scoped: false,\n priority: 0,\n text: \"\\n var __extends = (this && this.__extends) || (function () {\\n var extendStatics = function (d, b) {\\n extendStatics = Object.setPrototypeOf ||\\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\\n return extendStatics(d, b);\\n };\\n\\n return function (d, b) {\\n if (typeof b !== \\\"function\\\" && b !== null)\\n throw new TypeError(\\\"Class extends value \\\" + String(b) + \\\" is not a constructor or null\\\");\\n extendStatics(d, b);\\n function __() { this.constructor = d; }\\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\\n };\\n })();\"\n };\n ts.templateObjectHelper = {\n name: \"typescript:makeTemplateObject\",\n importName: \"__makeTemplateObject\",\n scoped: false,\n priority: 0,\n text: \"\\n var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {\\n if (Object.defineProperty) { Object.defineProperty(cooked, \\\"raw\\\", { value: raw }); } else { cooked.raw = raw; }\\n return cooked;\\n };\"\n };\n ts.readHelper = {\n name: \"typescript:read\",\n importName: \"__read\",\n scoped: false,\n text: \"\\n var __read = (this && this.__read) || function (o, n) {\\n var m = typeof Symbol === \\\"function\\\" && o[Symbol.iterator];\\n if (!m) return o;\\n var i = m.call(o), r, ar = [], e;\\n try {\\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\\n }\\n catch (error) { e = { error: error }; }\\n finally {\\n try {\\n if (r && !r.done && (m = i[\\\"return\\\"])) m.call(i);\\n }\\n finally { if (e) throw e.error; }\\n }\\n return ar;\\n };\"\n };\n ts.spreadArrayHelper = {\n name: \"typescript:spreadArray\",\n importName: \"__spreadArray\",\n scoped: false,\n text: \"\\n var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\\n if (ar || !(i in from)) {\\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\\n ar[i] = from[i];\\n }\\n }\\n return to.concat(ar || Array.prototype.slice.call(from));\\n };\"\n };\n // ES2015 Destructuring Helpers\n ts.valuesHelper = {\n name: \"typescript:values\",\n importName: \"__values\",\n scoped: false,\n text: \"\\n var __values = (this && this.__values) || function(o) {\\n var s = typeof Symbol === \\\"function\\\" && Symbol.iterator, m = s && o[s], i = 0;\\n if (m) return m.call(o);\\n if (o && typeof o.length === \\\"number\\\") return {\\n next: function () {\\n if (o && i >= o.length) o = void 0;\\n return { value: o && o[i++], done: !o };\\n }\\n };\\n throw new TypeError(s ? \\\"Object is not iterable.\\\" : \\\"Symbol.iterator is not defined.\\\");\\n };\"\n };\n // ES2015 Generator Helpers\n // The __generator helper is used by down-level transformations to emulate the runtime\n // semantics of an ES2015 generator function. When called, this helper returns an\n // object that implements the Iterator protocol, in that it has `next`, `return`, and\n // `throw` methods that step through the generator when invoked.\n //\n // parameters:\n // @param thisArg The value to use as the `this` binding for the transformed generator body.\n // @param body A function that acts as the transformed generator body.\n //\n // variables:\n // _ Persistent state for the generator that is shared between the helper and the\n // generator body. The state object has the following members:\n // sent() - A method that returns or throws the current completion value.\n // label - The next point at which to resume evaluation of the generator body.\n // trys - A stack of protected regions (try/catch/finally blocks).\n // ops - A stack of pending instructions when inside of a finally block.\n // f A value indicating whether the generator is executing.\n // y An iterator to delegate for a yield*.\n // t A temporary variable that holds one of the following values (note that these\n // cases do not overlap):\n // - The completion value when resuming from a `yield` or `yield*`.\n // - The error value for a catch block.\n // - The current protected region (array of try/catch/finally/end labels).\n // - The verb (`next`, `throw`, or `return` method) to delegate to the expression\n // of a `yield*`.\n // - The result of evaluating the verb delegated to the expression of a `yield*`.\n //\n // functions:\n // verb(n) Creates a bound callback to the `step` function for opcode `n`.\n // step(op) Evaluates opcodes in a generator body until execution is suspended or\n // completed.\n //\n // The __generator helper understands a limited set of instructions:\n // 0: next(value?) - Start or resume the generator with the specified value.\n // 1: throw(error) - Resume the generator with an exception. If the generator is\n // suspended inside of one or more protected regions, evaluates\n // any intervening finally blocks between the current label and\n // the nearest catch block or function boundary. If uncaught, the\n // exception is thrown to the caller.\n // 2: return(value?) - Resume the generator as if with a return. If the generator is\n // suspended inside of one or more protected regions, evaluates any\n // intervening finally blocks.\n // 3: break(label) - Jump to the specified label. If the label is outside of the\n // current protected region, evaluates any intervening finally\n // blocks.\n // 4: yield(value?) - Yield execution to the caller with an optional value. When\n // resumed, the generator will continue at the next label.\n // 5: yield*(value) - Delegates evaluation to the supplied iterator. When\n // delegation completes, the generator will continue at the next\n // label.\n // 6: catch(error) - Handles an exception thrown from within the generator body. If\n // the current label is inside of one or more protected regions,\n // evaluates any intervening finally blocks between the current\n // label and the nearest catch block or function boundary. If\n // uncaught, the exception is thrown to the caller.\n // 7: endfinally - Ends a finally block, resuming the last instruction prior to\n // entering a finally block.\n //\n // For examples of how these are used, see the comments in ./transformers/generators.ts\n ts.generatorHelper = {\n name: \"typescript:generator\",\n importName: \"__generator\",\n scoped: false,\n priority: 6,\n text: \"\\n var __generator = (this && this.__generator) || function (thisArg, body) {\\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\\n return g = { next: verb(0), \\\"throw\\\": verb(1), \\\"return\\\": verb(2) }, typeof Symbol === \\\"function\\\" && (g[Symbol.iterator] = function() { return this; }), g;\\n function verb(n) { return function (v) { return step([n, v]); }; }\\n function step(op) {\\n if (f) throw new TypeError(\\\"Generator is already executing.\\\");\\n while (_) try {\\n if (f = 1, y && (t = op[0] & 2 ? y[\\\"return\\\"] : op[0] ? y[\\\"throw\\\"] || ((t = y[\\\"return\\\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\\n if (y = 0, t) op = [op[0] & 2, t.value];\\n switch (op[0]) {\\n case 0: case 1: t = op; break;\\n case 4: _.label++; return { value: op[1], done: false };\\n case 5: _.label++; y = op[1]; op = [0]; continue;\\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\\n default:\\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\\n if (t[2]) _.ops.pop();\\n _.trys.pop(); continue;\\n }\\n op = body.call(thisArg, _);\\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\\n }\\n };\"\n };\n // ES Module Helpers\n ts.createBindingHelper = {\n name: \"typescript:commonjscreatebinding\",\n importName: \"__createBinding\",\n scoped: false,\n priority: 1,\n text: \"\\n var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\\n }) : (function(o, m, k, k2) {\\n if (k2 === undefined) k2 = k;\\n o[k2] = m[k];\\n }));\"\n };\n ts.setModuleDefaultHelper = {\n name: \"typescript:commonjscreatevalue\",\n importName: \"__setModuleDefault\",\n scoped: false,\n priority: 1,\n text: \"\\n var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\\n Object.defineProperty(o, \\\"default\\\", { enumerable: true, value: v });\\n }) : function(o, v) {\\n o[\\\"default\\\"] = v;\\n });\"\n };\n // emit helper for `import * as Name from \"foo\"`\n ts.importStarHelper = {\n name: \"typescript:commonjsimportstar\",\n importName: \"__importStar\",\n scoped: false,\n dependencies: [ts.createBindingHelper, ts.setModuleDefaultHelper],\n priority: 2,\n text: \"\\n var __importStar = (this && this.__importStar) || function (mod) {\\n if (mod && mod.__esModule) return mod;\\n var result = {};\\n if (mod != null) for (var k in mod) if (k !== \\\"default\\\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\\n __setModuleDefault(result, mod);\\n return result;\\n };\"\n };\n // emit helper for `import Name from \"foo\"`\n ts.importDefaultHelper = {\n name: \"typescript:commonjsimportdefault\",\n importName: \"__importDefault\",\n scoped: false,\n text: \"\\n var __importDefault = (this && this.__importDefault) || function (mod) {\\n return (mod && mod.__esModule) ? mod : { \\\"default\\\": mod };\\n };\"\n };\n ts.exportStarHelper = {\n name: \"typescript:export-star\",\n importName: \"__exportStar\",\n scoped: false,\n dependencies: [ts.createBindingHelper],\n priority: 2,\n text: \"\\n var __exportStar = (this && this.__exportStar) || function(m, exports) {\\n for (var p in m) if (p !== \\\"default\\\" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);\\n };\"\n };\n /**\n * Parameters:\n * @param receiver — The object from which the private member will be read.\n * @param state — One of the following:\n * - A WeakMap used to read a private instance field.\n * - A WeakSet used as an instance brand for private instance methods and accessors.\n * - A function value that should be the undecorated class constructor used to brand check private static fields, methods, and accessors.\n * @param kind — (optional pre TS 4.3, required for TS 4.3+) One of the following values:\n * - undefined — Indicates a private instance field (pre TS 4.3).\n * - \"f\" — Indicates a private field (instance or static).\n * - \"m\" — Indicates a private method (instance or static).\n * - \"a\" — Indicates a private accessor (instance or static).\n * @param f — (optional pre TS 4.3) Depends on the arguments for state and kind:\n * - If kind is \"m\", this should be the function corresponding to the static or instance method.\n * - If kind is \"a\", this should be the function corresponding to the getter method, or undefined if the getter was not defined.\n * - If kind is \"f\" and state is a function, this should be an object holding the value of a static field, or undefined if the static field declaration has not yet been evaluated.\n * Usage:\n * This helper will only ever be used by the compiler in the following ways:\n *\n * Reading from a private instance field (pre TS 4.3):\n * __classPrivateFieldGet(, )\n *\n * Reading from a private instance field (TS 4.3+):\n * __classPrivateFieldGet(, , \"f\")\n *\n * Reading from a private instance get accessor (when defined, TS 4.3+):\n * __classPrivateFieldGet(, , \"a\", )\n *\n * Reading from a private instance get accessor (when not defined, TS 4.3+):\n * __classPrivateFieldGet(, , \"a\", void 0)\n * NOTE: This always results in a runtime error.\n *\n * Reading from a private instance method (TS 4.3+):\n * __classPrivateFieldGet(, , \"m\", )\n *\n * Reading from a private static field (TS 4.3+):\n * __classPrivateFieldGet(, , \"f\", <{ value: any }>)\n *\n * Reading from a private static get accessor (when defined, TS 4.3+):\n * __classPrivateFieldGet(, , \"a\", )\n *\n * Reading from a private static get accessor (when not defined, TS 4.3+):\n * __classPrivateFieldGet(, , \"a\", void 0)\n * NOTE: This always results in a runtime error.\n *\n * Reading from a private static method (TS 4.3+):\n * __classPrivateFieldGet(, , \"m\", )\n */\n ts.classPrivateFieldGetHelper = {\n name: \"typescript:classPrivateFieldGet\",\n importName: \"__classPrivateFieldGet\",\n scoped: false,\n text: \"\\n var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {\\n if (kind === \\\"a\\\" && !f) throw new TypeError(\\\"Private accessor was defined without a getter\\\");\\n if (typeof state === \\\"function\\\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\\\"Cannot read private member from an object whose class did not declare it\\\");\\n return kind === \\\"m\\\" ? f : kind === \\\"a\\\" ? f.call(receiver) : f ? f.value : state.get(receiver);\\n };\"\n };\n /**\n * Parameters:\n * @param receiver — The object on which the private member will be set.\n * @param state — One of the following:\n * - A WeakMap used to store a private instance field.\n * - A WeakSet used as an instance brand for private instance methods and accessors.\n * - A function value that should be the undecorated class constructor used to brand check private static fields, methods, and accessors.\n * @param value — The value to set.\n * @param kind — (optional pre TS 4.3, required for TS 4.3+) One of the following values:\n * - undefined — Indicates a private instance field (pre TS 4.3).\n * - \"f\" — Indicates a private field (instance or static).\n * - \"m\" — Indicates a private method (instance or static).\n * - \"a\" — Indicates a private accessor (instance or static).\n * @param f — (optional pre TS 4.3) Depends on the arguments for state and kind:\n * - If kind is \"m\", this should be the function corresponding to the static or instance method.\n * - If kind is \"a\", this should be the function corresponding to the setter method, or undefined if the setter was not defined.\n * - If kind is \"f\" and state is a function, this should be an object holding the value of a static field, or undefined if the static field declaration has not yet been evaluated.\n * Usage:\n * This helper will only ever be used by the compiler in the following ways:\n *\n * Writing to a private instance field (pre TS 4.3):\n * __classPrivateFieldSet(, , )\n *\n * Writing to a private instance field (TS 4.3+):\n * __classPrivateFieldSet(, , , \"f\")\n *\n * Writing to a private instance set accessor (when defined, TS 4.3+):\n * __classPrivateFieldSet(, , , \"a\", )\n *\n * Writing to a private instance set accessor (when not defined, TS 4.3+):\n * __classPrivateFieldSet(, , , \"a\", void 0)\n * NOTE: This always results in a runtime error.\n *\n * Writing to a private instance method (TS 4.3+):\n * __classPrivateFieldSet(, , , \"m\", )\n * NOTE: This always results in a runtime error.\n *\n * Writing to a private static field (TS 4.3+):\n * __classPrivateFieldSet(, , , \"f\", <{ value: any }>)\n *\n * Writing to a private static set accessor (when defined, TS 4.3+):\n * __classPrivateFieldSet(, , , \"a\", )\n *\n * Writing to a private static set accessor (when not defined, TS 4.3+):\n * __classPrivateFieldSet(, , , \"a\", void 0)\n * NOTE: This always results in a runtime error.\n *\n * Writing to a private static method (TS 4.3+):\n * __classPrivateFieldSet(, , , \"m\", )\n * NOTE: This always results in a runtime error.\n */\n ts.classPrivateFieldSetHelper = {\n name: \"typescript:classPrivateFieldSet\",\n importName: \"__classPrivateFieldSet\",\n scoped: false,\n text: \"\\n var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {\\n if (kind === \\\"m\\\") throw new TypeError(\\\"Private method is not writable\\\");\\n if (kind === \\\"a\\\" && !f) throw new TypeError(\\\"Private accessor was defined without a setter\\\");\\n if (typeof state === \\\"function\\\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\\\"Cannot write private member to an object whose class did not declare it\\\");\\n return (kind === \\\"a\\\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\\n };\"\n };\n var allUnscopedEmitHelpers;\n function getAllUnscopedEmitHelpers() {\n return allUnscopedEmitHelpers || (allUnscopedEmitHelpers = ts.arrayToMap([\n ts.decorateHelper,\n ts.metadataHelper,\n ts.paramHelper,\n ts.assignHelper,\n ts.awaitHelper,\n ts.asyncGeneratorHelper,\n ts.asyncDelegator,\n ts.asyncValues,\n ts.restHelper,\n ts.awaiterHelper,\n ts.extendsHelper,\n ts.templateObjectHelper,\n ts.spreadArrayHelper,\n ts.valuesHelper,\n ts.readHelper,\n ts.generatorHelper,\n ts.importStarHelper,\n ts.importDefaultHelper,\n ts.exportStarHelper,\n ts.classPrivateFieldGetHelper,\n ts.classPrivateFieldSetHelper,\n ts.createBindingHelper,\n ts.setModuleDefaultHelper\n ], function (helper) { return helper.name; }));\n }\n ts.getAllUnscopedEmitHelpers = getAllUnscopedEmitHelpers;\n ts.asyncSuperHelper = {\n name: \"typescript:async-super\",\n scoped: true,\n text: helperString(__makeTemplateObject([\"\\n const \", \" = name => super[name];\"], [\"\\n const \", \" = name => super[name];\"]), \"_superIndex\")\n };\n ts.advancedAsyncSuperHelper = {\n name: \"typescript:advanced-async-super\",\n scoped: true,\n text: helperString(__makeTemplateObject([\"\\n const \", \" = (function (geti, seti) {\\n const cache = Object.create(null);\\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\\n })(name => super[name], (name, value) => super[name] = value);\"], [\"\\n const \", \" = (function (geti, seti) {\\n const cache = Object.create(null);\\n return name => cache[name] || (cache[name] = { get value() { return geti(name); }, set value(v) { seti(name, v); } });\\n })(name => super[name], (name, value) => super[name] = value);\"]), \"_superIndex\")\n };\n function isCallToHelper(firstSegment, helperName) {\n return ts.isCallExpression(firstSegment)\n && ts.isIdentifier(firstSegment.expression)\n && (ts.getEmitFlags(firstSegment.expression) & 4096 /* HelperName */) !== 0\n && firstSegment.expression.escapedText === helperName;\n }\n ts.isCallToHelper = isCallToHelper;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n // Literals\n function isNumericLiteral(node) {\n return node.kind === 8 /* NumericLiteral */;\n }\n ts.isNumericLiteral = isNumericLiteral;\n function isBigIntLiteral(node) {\n return node.kind === 9 /* BigIntLiteral */;\n }\n ts.isBigIntLiteral = isBigIntLiteral;\n function isStringLiteral(node) {\n return node.kind === 10 /* StringLiteral */;\n }\n ts.isStringLiteral = isStringLiteral;\n function isJsxText(node) {\n return node.kind === 11 /* JsxText */;\n }\n ts.isJsxText = isJsxText;\n function isRegularExpressionLiteral(node) {\n return node.kind === 13 /* RegularExpressionLiteral */;\n }\n ts.isRegularExpressionLiteral = isRegularExpressionLiteral;\n function isNoSubstitutionTemplateLiteral(node) {\n return node.kind === 14 /* NoSubstitutionTemplateLiteral */;\n }\n ts.isNoSubstitutionTemplateLiteral = isNoSubstitutionTemplateLiteral;\n // Pseudo-literals\n function isTemplateHead(node) {\n return node.kind === 15 /* TemplateHead */;\n }\n ts.isTemplateHead = isTemplateHead;\n function isTemplateMiddle(node) {\n return node.kind === 16 /* TemplateMiddle */;\n }\n ts.isTemplateMiddle = isTemplateMiddle;\n function isTemplateTail(node) {\n return node.kind === 17 /* TemplateTail */;\n }\n ts.isTemplateTail = isTemplateTail;\n // Punctuation\n function isDotDotDotToken(node) {\n return node.kind === 25 /* DotDotDotToken */;\n }\n ts.isDotDotDotToken = isDotDotDotToken;\n /*@internal*/\n function isCommaToken(node) {\n return node.kind === 27 /* CommaToken */;\n }\n ts.isCommaToken = isCommaToken;\n function isPlusToken(node) {\n return node.kind === 39 /* PlusToken */;\n }\n ts.isPlusToken = isPlusToken;\n function isMinusToken(node) {\n return node.kind === 40 /* MinusToken */;\n }\n ts.isMinusToken = isMinusToken;\n function isAsteriskToken(node) {\n return node.kind === 41 /* AsteriskToken */;\n }\n ts.isAsteriskToken = isAsteriskToken;\n /*@internal*/\n function isExclamationToken(node) {\n return node.kind === 53 /* ExclamationToken */;\n }\n ts.isExclamationToken = isExclamationToken;\n /*@internal*/\n function isQuestionToken(node) {\n return node.kind === 57 /* QuestionToken */;\n }\n ts.isQuestionToken = isQuestionToken;\n /*@internal*/\n function isColonToken(node) {\n return node.kind === 58 /* ColonToken */;\n }\n ts.isColonToken = isColonToken;\n /*@internal*/\n function isQuestionDotToken(node) {\n return node.kind === 28 /* QuestionDotToken */;\n }\n ts.isQuestionDotToken = isQuestionDotToken;\n /*@internal*/\n function isEqualsGreaterThanToken(node) {\n return node.kind === 38 /* EqualsGreaterThanToken */;\n }\n ts.isEqualsGreaterThanToken = isEqualsGreaterThanToken;\n // Identifiers\n function isIdentifier(node) {\n return node.kind === 79 /* Identifier */;\n }\n ts.isIdentifier = isIdentifier;\n function isPrivateIdentifier(node) {\n return node.kind === 80 /* PrivateIdentifier */;\n }\n ts.isPrivateIdentifier = isPrivateIdentifier;\n // Reserved Words\n /* @internal */\n function isExportModifier(node) {\n return node.kind === 93 /* ExportKeyword */;\n }\n ts.isExportModifier = isExportModifier;\n /* @internal */\n function isAsyncModifier(node) {\n return node.kind === 130 /* AsyncKeyword */;\n }\n ts.isAsyncModifier = isAsyncModifier;\n /* @internal */\n function isAssertsKeyword(node) {\n return node.kind === 128 /* AssertsKeyword */;\n }\n ts.isAssertsKeyword = isAssertsKeyword;\n /* @internal */\n function isAwaitKeyword(node) {\n return node.kind === 131 /* AwaitKeyword */;\n }\n ts.isAwaitKeyword = isAwaitKeyword;\n /* @internal */\n function isReadonlyKeyword(node) {\n return node.kind === 143 /* ReadonlyKeyword */;\n }\n ts.isReadonlyKeyword = isReadonlyKeyword;\n /* @internal */\n function isStaticModifier(node) {\n return node.kind === 124 /* StaticKeyword */;\n }\n ts.isStaticModifier = isStaticModifier;\n /* @internal */\n function isAbstractModifier(node) {\n return node.kind === 126 /* AbstractKeyword */;\n }\n ts.isAbstractModifier = isAbstractModifier;\n /*@internal*/\n function isSuperKeyword(node) {\n return node.kind === 106 /* SuperKeyword */;\n }\n ts.isSuperKeyword = isSuperKeyword;\n /*@internal*/\n function isImportKeyword(node) {\n return node.kind === 100 /* ImportKeyword */;\n }\n ts.isImportKeyword = isImportKeyword;\n // Names\n function isQualifiedName(node) {\n return node.kind === 159 /* QualifiedName */;\n }\n ts.isQualifiedName = isQualifiedName;\n function isComputedPropertyName(node) {\n return node.kind === 160 /* ComputedPropertyName */;\n }\n ts.isComputedPropertyName = isComputedPropertyName;\n // Signature elements\n function isTypeParameterDeclaration(node) {\n return node.kind === 161 /* TypeParameter */;\n }\n ts.isTypeParameterDeclaration = isTypeParameterDeclaration;\n // TODO(rbuckton): Rename to 'isParameterDeclaration'\n function isParameter(node) {\n return node.kind === 162 /* Parameter */;\n }\n ts.isParameter = isParameter;\n function isDecorator(node) {\n return node.kind === 163 /* Decorator */;\n }\n ts.isDecorator = isDecorator;\n // TypeMember\n function isPropertySignature(node) {\n return node.kind === 164 /* PropertySignature */;\n }\n ts.isPropertySignature = isPropertySignature;\n function isPropertyDeclaration(node) {\n return node.kind === 165 /* PropertyDeclaration */;\n }\n ts.isPropertyDeclaration = isPropertyDeclaration;\n function isMethodSignature(node) {\n return node.kind === 166 /* MethodSignature */;\n }\n ts.isMethodSignature = isMethodSignature;\n function isMethodDeclaration(node) {\n return node.kind === 167 /* MethodDeclaration */;\n }\n ts.isMethodDeclaration = isMethodDeclaration;\n function isClassStaticBlockDeclaration(node) {\n return node.kind === 168 /* ClassStaticBlockDeclaration */;\n }\n ts.isClassStaticBlockDeclaration = isClassStaticBlockDeclaration;\n function isConstructorDeclaration(node) {\n return node.kind === 169 /* Constructor */;\n }\n ts.isConstructorDeclaration = isConstructorDeclaration;\n function isGetAccessorDeclaration(node) {\n return node.kind === 170 /* GetAccessor */;\n }\n ts.isGetAccessorDeclaration = isGetAccessorDeclaration;\n function isSetAccessorDeclaration(node) {\n return node.kind === 171 /* SetAccessor */;\n }\n ts.isSetAccessorDeclaration = isSetAccessorDeclaration;\n function isCallSignatureDeclaration(node) {\n return node.kind === 172 /* CallSignature */;\n }\n ts.isCallSignatureDeclaration = isCallSignatureDeclaration;\n function isConstructSignatureDeclaration(node) {\n return node.kind === 173 /* ConstructSignature */;\n }\n ts.isConstructSignatureDeclaration = isConstructSignatureDeclaration;\n function isIndexSignatureDeclaration(node) {\n return node.kind === 174 /* IndexSignature */;\n }\n ts.isIndexSignatureDeclaration = isIndexSignatureDeclaration;\n // Type\n function isTypePredicateNode(node) {\n return node.kind === 175 /* TypePredicate */;\n }\n ts.isTypePredicateNode = isTypePredicateNode;\n function isTypeReferenceNode(node) {\n return node.kind === 176 /* TypeReference */;\n }\n ts.isTypeReferenceNode = isTypeReferenceNode;\n function isFunctionTypeNode(node) {\n return node.kind === 177 /* FunctionType */;\n }\n ts.isFunctionTypeNode = isFunctionTypeNode;\n function isConstructorTypeNode(node) {\n return node.kind === 178 /* ConstructorType */;\n }\n ts.isConstructorTypeNode = isConstructorTypeNode;\n function isTypeQueryNode(node) {\n return node.kind === 179 /* TypeQuery */;\n }\n ts.isTypeQueryNode = isTypeQueryNode;\n function isTypeLiteralNode(node) {\n return node.kind === 180 /* TypeLiteral */;\n }\n ts.isTypeLiteralNode = isTypeLiteralNode;\n function isArrayTypeNode(node) {\n return node.kind === 181 /* ArrayType */;\n }\n ts.isArrayTypeNode = isArrayTypeNode;\n function isTupleTypeNode(node) {\n return node.kind === 182 /* TupleType */;\n }\n ts.isTupleTypeNode = isTupleTypeNode;\n function isNamedTupleMember(node) {\n return node.kind === 195 /* NamedTupleMember */;\n }\n ts.isNamedTupleMember = isNamedTupleMember;\n function isOptionalTypeNode(node) {\n return node.kind === 183 /* OptionalType */;\n }\n ts.isOptionalTypeNode = isOptionalTypeNode;\n function isRestTypeNode(node) {\n return node.kind === 184 /* RestType */;\n }\n ts.isRestTypeNode = isRestTypeNode;\n function isUnionTypeNode(node) {\n return node.kind === 185 /* UnionType */;\n }\n ts.isUnionTypeNode = isUnionTypeNode;\n function isIntersectionTypeNode(node) {\n return node.kind === 186 /* IntersectionType */;\n }\n ts.isIntersectionTypeNode = isIntersectionTypeNode;\n function isConditionalTypeNode(node) {\n return node.kind === 187 /* ConditionalType */;\n }\n ts.isConditionalTypeNode = isConditionalTypeNode;\n function isInferTypeNode(node) {\n return node.kind === 188 /* InferType */;\n }\n ts.isInferTypeNode = isInferTypeNode;\n function isParenthesizedTypeNode(node) {\n return node.kind === 189 /* ParenthesizedType */;\n }\n ts.isParenthesizedTypeNode = isParenthesizedTypeNode;\n function isThisTypeNode(node) {\n return node.kind === 190 /* ThisType */;\n }\n ts.isThisTypeNode = isThisTypeNode;\n function isTypeOperatorNode(node) {\n return node.kind === 191 /* TypeOperator */;\n }\n ts.isTypeOperatorNode = isTypeOperatorNode;\n function isIndexedAccessTypeNode(node) {\n return node.kind === 192 /* IndexedAccessType */;\n }\n ts.isIndexedAccessTypeNode = isIndexedAccessTypeNode;\n function isMappedTypeNode(node) {\n return node.kind === 193 /* MappedType */;\n }\n ts.isMappedTypeNode = isMappedTypeNode;\n function isLiteralTypeNode(node) {\n return node.kind === 194 /* LiteralType */;\n }\n ts.isLiteralTypeNode = isLiteralTypeNode;\n function isImportTypeNode(node) {\n return node.kind === 198 /* ImportType */;\n }\n ts.isImportTypeNode = isImportTypeNode;\n function isTemplateLiteralTypeSpan(node) {\n return node.kind === 197 /* TemplateLiteralTypeSpan */;\n }\n ts.isTemplateLiteralTypeSpan = isTemplateLiteralTypeSpan;\n function isTemplateLiteralTypeNode(node) {\n return node.kind === 196 /* TemplateLiteralType */;\n }\n ts.isTemplateLiteralTypeNode = isTemplateLiteralTypeNode;\n // Binding patterns\n function isObjectBindingPattern(node) {\n return node.kind === 199 /* ObjectBindingPattern */;\n }\n ts.isObjectBindingPattern = isObjectBindingPattern;\n function isArrayBindingPattern(node) {\n return node.kind === 200 /* ArrayBindingPattern */;\n }\n ts.isArrayBindingPattern = isArrayBindingPattern;\n function isBindingElement(node) {\n return node.kind === 201 /* BindingElement */;\n }\n ts.isBindingElement = isBindingElement;\n // Expression\n function isArrayLiteralExpression(node) {\n return node.kind === 202 /* ArrayLiteralExpression */;\n }\n ts.isArrayLiteralExpression = isArrayLiteralExpression;\n function isObjectLiteralExpression(node) {\n return node.kind === 203 /* ObjectLiteralExpression */;\n }\n ts.isObjectLiteralExpression = isObjectLiteralExpression;\n function isPropertyAccessExpression(node) {\n return node.kind === 204 /* PropertyAccessExpression */;\n }\n ts.isPropertyAccessExpression = isPropertyAccessExpression;\n function isElementAccessExpression(node) {\n return node.kind === 205 /* ElementAccessExpression */;\n }\n ts.isElementAccessExpression = isElementAccessExpression;\n function isCallExpression(node) {\n return node.kind === 206 /* CallExpression */;\n }\n ts.isCallExpression = isCallExpression;\n function isNewExpression(node) {\n return node.kind === 207 /* NewExpression */;\n }\n ts.isNewExpression = isNewExpression;\n function isTaggedTemplateExpression(node) {\n return node.kind === 208 /* TaggedTemplateExpression */;\n }\n ts.isTaggedTemplateExpression = isTaggedTemplateExpression;\n function isTypeAssertionExpression(node) {\n return node.kind === 209 /* TypeAssertionExpression */;\n }\n ts.isTypeAssertionExpression = isTypeAssertionExpression;\n function isParenthesizedExpression(node) {\n return node.kind === 210 /* ParenthesizedExpression */;\n }\n ts.isParenthesizedExpression = isParenthesizedExpression;\n function isFunctionExpression(node) {\n return node.kind === 211 /* FunctionExpression */;\n }\n ts.isFunctionExpression = isFunctionExpression;\n function isArrowFunction(node) {\n return node.kind === 212 /* ArrowFunction */;\n }\n ts.isArrowFunction = isArrowFunction;\n function isDeleteExpression(node) {\n return node.kind === 213 /* DeleteExpression */;\n }\n ts.isDeleteExpression = isDeleteExpression;\n function isTypeOfExpression(node) {\n return node.kind === 214 /* TypeOfExpression */;\n }\n ts.isTypeOfExpression = isTypeOfExpression;\n function isVoidExpression(node) {\n return node.kind === 215 /* VoidExpression */;\n }\n ts.isVoidExpression = isVoidExpression;\n function isAwaitExpression(node) {\n return node.kind === 216 /* AwaitExpression */;\n }\n ts.isAwaitExpression = isAwaitExpression;\n function isPrefixUnaryExpression(node) {\n return node.kind === 217 /* PrefixUnaryExpression */;\n }\n ts.isPrefixUnaryExpression = isPrefixUnaryExpression;\n function isPostfixUnaryExpression(node) {\n return node.kind === 218 /* PostfixUnaryExpression */;\n }\n ts.isPostfixUnaryExpression = isPostfixUnaryExpression;\n function isBinaryExpression(node) {\n return node.kind === 219 /* BinaryExpression */;\n }\n ts.isBinaryExpression = isBinaryExpression;\n function isConditionalExpression(node) {\n return node.kind === 220 /* ConditionalExpression */;\n }\n ts.isConditionalExpression = isConditionalExpression;\n function isTemplateExpression(node) {\n return node.kind === 221 /* TemplateExpression */;\n }\n ts.isTemplateExpression = isTemplateExpression;\n function isYieldExpression(node) {\n return node.kind === 222 /* YieldExpression */;\n }\n ts.isYieldExpression = isYieldExpression;\n function isSpreadElement(node) {\n return node.kind === 223 /* SpreadElement */;\n }\n ts.isSpreadElement = isSpreadElement;\n function isClassExpression(node) {\n return node.kind === 224 /* ClassExpression */;\n }\n ts.isClassExpression = isClassExpression;\n function isOmittedExpression(node) {\n return node.kind === 225 /* OmittedExpression */;\n }\n ts.isOmittedExpression = isOmittedExpression;\n function isExpressionWithTypeArguments(node) {\n return node.kind === 226 /* ExpressionWithTypeArguments */;\n }\n ts.isExpressionWithTypeArguments = isExpressionWithTypeArguments;\n function isAsExpression(node) {\n return node.kind === 227 /* AsExpression */;\n }\n ts.isAsExpression = isAsExpression;\n function isNonNullExpression(node) {\n return node.kind === 228 /* NonNullExpression */;\n }\n ts.isNonNullExpression = isNonNullExpression;\n function isMetaProperty(node) {\n return node.kind === 229 /* MetaProperty */;\n }\n ts.isMetaProperty = isMetaProperty;\n function isSyntheticExpression(node) {\n return node.kind === 230 /* SyntheticExpression */;\n }\n ts.isSyntheticExpression = isSyntheticExpression;\n function isPartiallyEmittedExpression(node) {\n return node.kind === 345 /* PartiallyEmittedExpression */;\n }\n ts.isPartiallyEmittedExpression = isPartiallyEmittedExpression;\n function isCommaListExpression(node) {\n return node.kind === 346 /* CommaListExpression */;\n }\n ts.isCommaListExpression = isCommaListExpression;\n // Misc\n function isTemplateSpan(node) {\n return node.kind === 231 /* TemplateSpan */;\n }\n ts.isTemplateSpan = isTemplateSpan;\n function isSemicolonClassElement(node) {\n return node.kind === 232 /* SemicolonClassElement */;\n }\n ts.isSemicolonClassElement = isSemicolonClassElement;\n // Elements\n function isBlock(node) {\n return node.kind === 233 /* Block */;\n }\n ts.isBlock = isBlock;\n function isVariableStatement(node) {\n return node.kind === 235 /* VariableStatement */;\n }\n ts.isVariableStatement = isVariableStatement;\n function isEmptyStatement(node) {\n return node.kind === 234 /* EmptyStatement */;\n }\n ts.isEmptyStatement = isEmptyStatement;\n function isExpressionStatement(node) {\n return node.kind === 236 /* ExpressionStatement */;\n }\n ts.isExpressionStatement = isExpressionStatement;\n function isIfStatement(node) {\n return node.kind === 237 /* IfStatement */;\n }\n ts.isIfStatement = isIfStatement;\n function isDoStatement(node) {\n return node.kind === 238 /* DoStatement */;\n }\n ts.isDoStatement = isDoStatement;\n function isWhileStatement(node) {\n return node.kind === 239 /* WhileStatement */;\n }\n ts.isWhileStatement = isWhileStatement;\n function isForStatement(node) {\n return node.kind === 240 /* ForStatement */;\n }\n ts.isForStatement = isForStatement;\n function isForInStatement(node) {\n return node.kind === 241 /* ForInStatement */;\n }\n ts.isForInStatement = isForInStatement;\n function isForOfStatement(node) {\n return node.kind === 242 /* ForOfStatement */;\n }\n ts.isForOfStatement = isForOfStatement;\n function isContinueStatement(node) {\n return node.kind === 243 /* ContinueStatement */;\n }\n ts.isContinueStatement = isContinueStatement;\n function isBreakStatement(node) {\n return node.kind === 244 /* BreakStatement */;\n }\n ts.isBreakStatement = isBreakStatement;\n function isReturnStatement(node) {\n return node.kind === 245 /* ReturnStatement */;\n }\n ts.isReturnStatement = isReturnStatement;\n function isWithStatement(node) {\n return node.kind === 246 /* WithStatement */;\n }\n ts.isWithStatement = isWithStatement;\n function isSwitchStatement(node) {\n return node.kind === 247 /* SwitchStatement */;\n }\n ts.isSwitchStatement = isSwitchStatement;\n function isLabeledStatement(node) {\n return node.kind === 248 /* LabeledStatement */;\n }\n ts.isLabeledStatement = isLabeledStatement;\n function isThrowStatement(node) {\n return node.kind === 249 /* ThrowStatement */;\n }\n ts.isThrowStatement = isThrowStatement;\n function isTryStatement(node) {\n return node.kind === 250 /* TryStatement */;\n }\n ts.isTryStatement = isTryStatement;\n function isDebuggerStatement(node) {\n return node.kind === 251 /* DebuggerStatement */;\n }\n ts.isDebuggerStatement = isDebuggerStatement;\n function isVariableDeclaration(node) {\n return node.kind === 252 /* VariableDeclaration */;\n }\n ts.isVariableDeclaration = isVariableDeclaration;\n function isVariableDeclarationList(node) {\n return node.kind === 253 /* VariableDeclarationList */;\n }\n ts.isVariableDeclarationList = isVariableDeclarationList;\n function isFunctionDeclaration(node) {\n return node.kind === 254 /* FunctionDeclaration */;\n }\n ts.isFunctionDeclaration = isFunctionDeclaration;\n function isClassDeclaration(node) {\n return node.kind === 255 /* ClassDeclaration */;\n }\n ts.isClassDeclaration = isClassDeclaration;\n function isInterfaceDeclaration(node) {\n return node.kind === 256 /* InterfaceDeclaration */;\n }\n ts.isInterfaceDeclaration = isInterfaceDeclaration;\n function isTypeAliasDeclaration(node) {\n return node.kind === 257 /* TypeAliasDeclaration */;\n }\n ts.isTypeAliasDeclaration = isTypeAliasDeclaration;\n function isEnumDeclaration(node) {\n return node.kind === 258 /* EnumDeclaration */;\n }\n ts.isEnumDeclaration = isEnumDeclaration;\n function isModuleDeclaration(node) {\n return node.kind === 259 /* ModuleDeclaration */;\n }\n ts.isModuleDeclaration = isModuleDeclaration;\n function isModuleBlock(node) {\n return node.kind === 260 /* ModuleBlock */;\n }\n ts.isModuleBlock = isModuleBlock;\n function isCaseBlock(node) {\n return node.kind === 261 /* CaseBlock */;\n }\n ts.isCaseBlock = isCaseBlock;\n function isNamespaceExportDeclaration(node) {\n return node.kind === 262 /* NamespaceExportDeclaration */;\n }\n ts.isNamespaceExportDeclaration = isNamespaceExportDeclaration;\n function isImportEqualsDeclaration(node) {\n return node.kind === 263 /* ImportEqualsDeclaration */;\n }\n ts.isImportEqualsDeclaration = isImportEqualsDeclaration;\n function isImportDeclaration(node) {\n return node.kind === 264 /* ImportDeclaration */;\n }\n ts.isImportDeclaration = isImportDeclaration;\n function isImportClause(node) {\n return node.kind === 265 /* ImportClause */;\n }\n ts.isImportClause = isImportClause;\n function isNamespaceImport(node) {\n return node.kind === 266 /* NamespaceImport */;\n }\n ts.isNamespaceImport = isNamespaceImport;\n function isNamespaceExport(node) {\n return node.kind === 272 /* NamespaceExport */;\n }\n ts.isNamespaceExport = isNamespaceExport;\n function isNamedImports(node) {\n return node.kind === 267 /* NamedImports */;\n }\n ts.isNamedImports = isNamedImports;\n function isImportSpecifier(node) {\n return node.kind === 268 /* ImportSpecifier */;\n }\n ts.isImportSpecifier = isImportSpecifier;\n function isExportAssignment(node) {\n return node.kind === 269 /* ExportAssignment */;\n }\n ts.isExportAssignment = isExportAssignment;\n function isExportDeclaration(node) {\n return node.kind === 270 /* ExportDeclaration */;\n }\n ts.isExportDeclaration = isExportDeclaration;\n function isNamedExports(node) {\n return node.kind === 271 /* NamedExports */;\n }\n ts.isNamedExports = isNamedExports;\n function isExportSpecifier(node) {\n return node.kind === 273 /* ExportSpecifier */;\n }\n ts.isExportSpecifier = isExportSpecifier;\n function isMissingDeclaration(node) {\n return node.kind === 274 /* MissingDeclaration */;\n }\n ts.isMissingDeclaration = isMissingDeclaration;\n function isNotEmittedStatement(node) {\n return node.kind === 344 /* NotEmittedStatement */;\n }\n ts.isNotEmittedStatement = isNotEmittedStatement;\n /* @internal */\n function isSyntheticReference(node) {\n return node.kind === 349 /* SyntheticReferenceExpression */;\n }\n ts.isSyntheticReference = isSyntheticReference;\n /* @internal */\n function isMergeDeclarationMarker(node) {\n return node.kind === 347 /* MergeDeclarationMarker */;\n }\n ts.isMergeDeclarationMarker = isMergeDeclarationMarker;\n /* @internal */\n function isEndOfDeclarationMarker(node) {\n return node.kind === 348 /* EndOfDeclarationMarker */;\n }\n ts.isEndOfDeclarationMarker = isEndOfDeclarationMarker;\n // Module References\n function isExternalModuleReference(node) {\n return node.kind === 275 /* ExternalModuleReference */;\n }\n ts.isExternalModuleReference = isExternalModuleReference;\n // JSX\n function isJsxElement(node) {\n return node.kind === 276 /* JsxElement */;\n }\n ts.isJsxElement = isJsxElement;\n function isJsxSelfClosingElement(node) {\n return node.kind === 277 /* JsxSelfClosingElement */;\n }\n ts.isJsxSelfClosingElement = isJsxSelfClosingElement;\n function isJsxOpeningElement(node) {\n return node.kind === 278 /* JsxOpeningElement */;\n }\n ts.isJsxOpeningElement = isJsxOpeningElement;\n function isJsxClosingElement(node) {\n return node.kind === 279 /* JsxClosingElement */;\n }\n ts.isJsxClosingElement = isJsxClosingElement;\n function isJsxFragment(node) {\n return node.kind === 280 /* JsxFragment */;\n }\n ts.isJsxFragment = isJsxFragment;\n function isJsxOpeningFragment(node) {\n return node.kind === 281 /* JsxOpeningFragment */;\n }\n ts.isJsxOpeningFragment = isJsxOpeningFragment;\n function isJsxClosingFragment(node) {\n return node.kind === 282 /* JsxClosingFragment */;\n }\n ts.isJsxClosingFragment = isJsxClosingFragment;\n function isJsxAttribute(node) {\n return node.kind === 283 /* JsxAttribute */;\n }\n ts.isJsxAttribute = isJsxAttribute;\n function isJsxAttributes(node) {\n return node.kind === 284 /* JsxAttributes */;\n }\n ts.isJsxAttributes = isJsxAttributes;\n function isJsxSpreadAttribute(node) {\n return node.kind === 285 /* JsxSpreadAttribute */;\n }\n ts.isJsxSpreadAttribute = isJsxSpreadAttribute;\n function isJsxExpression(node) {\n return node.kind === 286 /* JsxExpression */;\n }\n ts.isJsxExpression = isJsxExpression;\n // Clauses\n function isCaseClause(node) {\n return node.kind === 287 /* CaseClause */;\n }\n ts.isCaseClause = isCaseClause;\n function isDefaultClause(node) {\n return node.kind === 288 /* DefaultClause */;\n }\n ts.isDefaultClause = isDefaultClause;\n function isHeritageClause(node) {\n return node.kind === 289 /* HeritageClause */;\n }\n ts.isHeritageClause = isHeritageClause;\n function isCatchClause(node) {\n return node.kind === 290 /* CatchClause */;\n }\n ts.isCatchClause = isCatchClause;\n // Property assignments\n function isPropertyAssignment(node) {\n return node.kind === 291 /* PropertyAssignment */;\n }\n ts.isPropertyAssignment = isPropertyAssignment;\n function isShorthandPropertyAssignment(node) {\n return node.kind === 292 /* ShorthandPropertyAssignment */;\n }\n ts.isShorthandPropertyAssignment = isShorthandPropertyAssignment;\n function isSpreadAssignment(node) {\n return node.kind === 293 /* SpreadAssignment */;\n }\n ts.isSpreadAssignment = isSpreadAssignment;\n // Enum\n function isEnumMember(node) {\n return node.kind === 294 /* EnumMember */;\n }\n ts.isEnumMember = isEnumMember;\n // Unparsed\n // TODO(rbuckton): isUnparsedPrologue\n function isUnparsedPrepend(node) {\n return node.kind === 296 /* UnparsedPrepend */;\n }\n ts.isUnparsedPrepend = isUnparsedPrepend;\n // TODO(rbuckton): isUnparsedText\n // TODO(rbuckton): isUnparsedInternalText\n // TODO(rbuckton): isUnparsedSyntheticReference\n // Top-level nodes\n function isSourceFile(node) {\n return node.kind === 300 /* SourceFile */;\n }\n ts.isSourceFile = isSourceFile;\n function isBundle(node) {\n return node.kind === 301 /* Bundle */;\n }\n ts.isBundle = isBundle;\n function isUnparsedSource(node) {\n return node.kind === 302 /* UnparsedSource */;\n }\n ts.isUnparsedSource = isUnparsedSource;\n // TODO(rbuckton): isInputFiles\n // JSDoc Elements\n function isJSDocTypeExpression(node) {\n return node.kind === 304 /* JSDocTypeExpression */;\n }\n ts.isJSDocTypeExpression = isJSDocTypeExpression;\n function isJSDocNameReference(node) {\n return node.kind === 305 /* JSDocNameReference */;\n }\n ts.isJSDocNameReference = isJSDocNameReference;\n function isJSDocMemberName(node) {\n return node.kind === 306 /* JSDocMemberName */;\n }\n ts.isJSDocMemberName = isJSDocMemberName;\n function isJSDocLink(node) {\n return node.kind === 319 /* JSDocLink */;\n }\n ts.isJSDocLink = isJSDocLink;\n function isJSDocLinkCode(node) {\n return node.kind === 320 /* JSDocLinkCode */;\n }\n ts.isJSDocLinkCode = isJSDocLinkCode;\n function isJSDocLinkPlain(node) {\n return node.kind === 321 /* JSDocLinkPlain */;\n }\n ts.isJSDocLinkPlain = isJSDocLinkPlain;\n function isJSDocAllType(node) {\n return node.kind === 307 /* JSDocAllType */;\n }\n ts.isJSDocAllType = isJSDocAllType;\n function isJSDocUnknownType(node) {\n return node.kind === 308 /* JSDocUnknownType */;\n }\n ts.isJSDocUnknownType = isJSDocUnknownType;\n function isJSDocNullableType(node) {\n return node.kind === 309 /* JSDocNullableType */;\n }\n ts.isJSDocNullableType = isJSDocNullableType;\n function isJSDocNonNullableType(node) {\n return node.kind === 310 /* JSDocNonNullableType */;\n }\n ts.isJSDocNonNullableType = isJSDocNonNullableType;\n function isJSDocOptionalType(node) {\n return node.kind === 311 /* JSDocOptionalType */;\n }\n ts.isJSDocOptionalType = isJSDocOptionalType;\n function isJSDocFunctionType(node) {\n return node.kind === 312 /* JSDocFunctionType */;\n }\n ts.isJSDocFunctionType = isJSDocFunctionType;\n function isJSDocVariadicType(node) {\n return node.kind === 313 /* JSDocVariadicType */;\n }\n ts.isJSDocVariadicType = isJSDocVariadicType;\n function isJSDocNamepathType(node) {\n return node.kind === 314 /* JSDocNamepathType */;\n }\n ts.isJSDocNamepathType = isJSDocNamepathType;\n function isJSDoc(node) {\n return node.kind === 315 /* JSDocComment */;\n }\n ts.isJSDoc = isJSDoc;\n function isJSDocTypeLiteral(node) {\n return node.kind === 317 /* JSDocTypeLiteral */;\n }\n ts.isJSDocTypeLiteral = isJSDocTypeLiteral;\n function isJSDocSignature(node) {\n return node.kind === 318 /* JSDocSignature */;\n }\n ts.isJSDocSignature = isJSDocSignature;\n // JSDoc Tags\n function isJSDocAugmentsTag(node) {\n return node.kind === 323 /* JSDocAugmentsTag */;\n }\n ts.isJSDocAugmentsTag = isJSDocAugmentsTag;\n function isJSDocAuthorTag(node) {\n return node.kind === 325 /* JSDocAuthorTag */;\n }\n ts.isJSDocAuthorTag = isJSDocAuthorTag;\n function isJSDocClassTag(node) {\n return node.kind === 327 /* JSDocClassTag */;\n }\n ts.isJSDocClassTag = isJSDocClassTag;\n function isJSDocCallbackTag(node) {\n return node.kind === 333 /* JSDocCallbackTag */;\n }\n ts.isJSDocCallbackTag = isJSDocCallbackTag;\n function isJSDocPublicTag(node) {\n return node.kind === 328 /* JSDocPublicTag */;\n }\n ts.isJSDocPublicTag = isJSDocPublicTag;\n function isJSDocPrivateTag(node) {\n return node.kind === 329 /* JSDocPrivateTag */;\n }\n ts.isJSDocPrivateTag = isJSDocPrivateTag;\n function isJSDocProtectedTag(node) {\n return node.kind === 330 /* JSDocProtectedTag */;\n }\n ts.isJSDocProtectedTag = isJSDocProtectedTag;\n function isJSDocReadonlyTag(node) {\n return node.kind === 331 /* JSDocReadonlyTag */;\n }\n ts.isJSDocReadonlyTag = isJSDocReadonlyTag;\n function isJSDocOverrideTag(node) {\n return node.kind === 332 /* JSDocOverrideTag */;\n }\n ts.isJSDocOverrideTag = isJSDocOverrideTag;\n function isJSDocDeprecatedTag(node) {\n return node.kind === 326 /* JSDocDeprecatedTag */;\n }\n ts.isJSDocDeprecatedTag = isJSDocDeprecatedTag;\n function isJSDocSeeTag(node) {\n return node.kind === 341 /* JSDocSeeTag */;\n }\n ts.isJSDocSeeTag = isJSDocSeeTag;\n function isJSDocEnumTag(node) {\n return node.kind === 334 /* JSDocEnumTag */;\n }\n ts.isJSDocEnumTag = isJSDocEnumTag;\n function isJSDocParameterTag(node) {\n return node.kind === 335 /* JSDocParameterTag */;\n }\n ts.isJSDocParameterTag = isJSDocParameterTag;\n function isJSDocReturnTag(node) {\n return node.kind === 336 /* JSDocReturnTag */;\n }\n ts.isJSDocReturnTag = isJSDocReturnTag;\n function isJSDocThisTag(node) {\n return node.kind === 337 /* JSDocThisTag */;\n }\n ts.isJSDocThisTag = isJSDocThisTag;\n function isJSDocTypeTag(node) {\n return node.kind === 338 /* JSDocTypeTag */;\n }\n ts.isJSDocTypeTag = isJSDocTypeTag;\n function isJSDocTemplateTag(node) {\n return node.kind === 339 /* JSDocTemplateTag */;\n }\n ts.isJSDocTemplateTag = isJSDocTemplateTag;\n function isJSDocTypedefTag(node) {\n return node.kind === 340 /* JSDocTypedefTag */;\n }\n ts.isJSDocTypedefTag = isJSDocTypedefTag;\n function isJSDocUnknownTag(node) {\n return node.kind === 322 /* JSDocTag */;\n }\n ts.isJSDocUnknownTag = isJSDocUnknownTag;\n function isJSDocPropertyTag(node) {\n return node.kind === 342 /* JSDocPropertyTag */;\n }\n ts.isJSDocPropertyTag = isJSDocPropertyTag;\n function isJSDocImplementsTag(node) {\n return node.kind === 324 /* JSDocImplementsTag */;\n }\n ts.isJSDocImplementsTag = isJSDocImplementsTag;\n // Synthesized list\n /* @internal */\n function isSyntaxList(n) {\n return n.kind === 343 /* SyntaxList */;\n }\n ts.isSyntaxList = isSyntaxList;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n // Compound nodes\n function createEmptyExports(factory) {\n return factory.createExportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*isTypeOnly*/ false, factory.createNamedExports([]), /*moduleSpecifier*/ undefined);\n }\n ts.createEmptyExports = createEmptyExports;\n function createMemberAccessForPropertyName(factory, target, memberName, location) {\n if (ts.isComputedPropertyName(memberName)) {\n return ts.setTextRange(factory.createElementAccessExpression(target, memberName.expression), location);\n }\n else {\n var expression = ts.setTextRange(ts.isMemberName(memberName)\n ? factory.createPropertyAccessExpression(target, memberName)\n : factory.createElementAccessExpression(target, memberName), memberName);\n ts.getOrCreateEmitNode(expression).flags |= 64 /* NoNestedSourceMaps */;\n return expression;\n }\n }\n ts.createMemberAccessForPropertyName = createMemberAccessForPropertyName;\n function createReactNamespace(reactNamespace, parent) {\n // To ensure the emit resolver can properly resolve the namespace, we need to\n // treat this identifier as if it were a source tree node by clearing the `Synthesized`\n // flag and setting a parent node.\n var react = ts.parseNodeFactory.createIdentifier(reactNamespace || \"React\");\n // Set the parent that is in parse tree\n // this makes sure that parent chain is intact for checker to traverse complete scope tree\n ts.setParent(react, ts.getParseTreeNode(parent));\n return react;\n }\n function createJsxFactoryExpressionFromEntityName(factory, jsxFactory, parent) {\n if (ts.isQualifiedName(jsxFactory)) {\n var left = createJsxFactoryExpressionFromEntityName(factory, jsxFactory.left, parent);\n var right = factory.createIdentifier(ts.idText(jsxFactory.right));\n right.escapedText = jsxFactory.right.escapedText;\n return factory.createPropertyAccessExpression(left, right);\n }\n else {\n return createReactNamespace(ts.idText(jsxFactory), parent);\n }\n }\n function createJsxFactoryExpression(factory, jsxFactoryEntity, reactNamespace, parent) {\n return jsxFactoryEntity ?\n createJsxFactoryExpressionFromEntityName(factory, jsxFactoryEntity, parent) :\n factory.createPropertyAccessExpression(createReactNamespace(reactNamespace, parent), \"createElement\");\n }\n ts.createJsxFactoryExpression = createJsxFactoryExpression;\n function createJsxFragmentFactoryExpression(factory, jsxFragmentFactoryEntity, reactNamespace, parent) {\n return jsxFragmentFactoryEntity ?\n createJsxFactoryExpressionFromEntityName(factory, jsxFragmentFactoryEntity, parent) :\n factory.createPropertyAccessExpression(createReactNamespace(reactNamespace, parent), \"Fragment\");\n }\n function createExpressionForJsxElement(factory, callee, tagName, props, children, location) {\n var argumentsList = [tagName];\n if (props) {\n argumentsList.push(props);\n }\n if (children && children.length > 0) {\n if (!props) {\n argumentsList.push(factory.createNull());\n }\n if (children.length > 1) {\n for (var _i = 0, children_3 = children; _i < children_3.length; _i++) {\n var child = children_3[_i];\n startOnNewLine(child);\n argumentsList.push(child);\n }\n }\n else {\n argumentsList.push(children[0]);\n }\n }\n return ts.setTextRange(factory.createCallExpression(callee, \n /*typeArguments*/ undefined, argumentsList), location);\n }\n ts.createExpressionForJsxElement = createExpressionForJsxElement;\n function createExpressionForJsxFragment(factory, jsxFactoryEntity, jsxFragmentFactoryEntity, reactNamespace, children, parentElement, location) {\n var tagName = createJsxFragmentFactoryExpression(factory, jsxFragmentFactoryEntity, reactNamespace, parentElement);\n var argumentsList = [tagName, factory.createNull()];\n if (children && children.length > 0) {\n if (children.length > 1) {\n for (var _i = 0, children_4 = children; _i < children_4.length; _i++) {\n var child = children_4[_i];\n startOnNewLine(child);\n argumentsList.push(child);\n }\n }\n else {\n argumentsList.push(children[0]);\n }\n }\n return ts.setTextRange(factory.createCallExpression(createJsxFactoryExpression(factory, jsxFactoryEntity, reactNamespace, parentElement), \n /*typeArguments*/ undefined, argumentsList), location);\n }\n ts.createExpressionForJsxFragment = createExpressionForJsxFragment;\n // Utilities\n function createForOfBindingStatement(factory, node, boundValue) {\n if (ts.isVariableDeclarationList(node)) {\n var firstDeclaration = ts.first(node.declarations);\n var updatedDeclaration = factory.updateVariableDeclaration(firstDeclaration, firstDeclaration.name, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, boundValue);\n return ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.updateVariableDeclarationList(node, [updatedDeclaration])), \n /*location*/ node);\n }\n else {\n var updatedExpression = ts.setTextRange(factory.createAssignment(node, boundValue), /*location*/ node);\n return ts.setTextRange(factory.createExpressionStatement(updatedExpression), /*location*/ node);\n }\n }\n ts.createForOfBindingStatement = createForOfBindingStatement;\n function insertLeadingStatement(factory, dest, source) {\n if (ts.isBlock(dest)) {\n return factory.updateBlock(dest, ts.setTextRange(factory.createNodeArray(__spreadArray([source], dest.statements, true)), dest.statements));\n }\n else {\n return factory.createBlock(factory.createNodeArray([dest, source]), /*multiLine*/ true);\n }\n }\n ts.insertLeadingStatement = insertLeadingStatement;\n function createExpressionFromEntityName(factory, node) {\n if (ts.isQualifiedName(node)) {\n var left = createExpressionFromEntityName(factory, node.left);\n // TODO(rbuckton): Does this need to be parented?\n var right = ts.setParent(ts.setTextRange(factory.cloneNode(node.right), node.right), node.right.parent);\n return ts.setTextRange(factory.createPropertyAccessExpression(left, right), node);\n }\n else {\n // TODO(rbuckton): Does this need to be parented?\n return ts.setParent(ts.setTextRange(factory.cloneNode(node), node), node.parent);\n }\n }\n ts.createExpressionFromEntityName = createExpressionFromEntityName;\n function createExpressionForPropertyName(factory, memberName) {\n if (ts.isIdentifier(memberName)) {\n return factory.createStringLiteralFromNode(memberName);\n }\n else if (ts.isComputedPropertyName(memberName)) {\n // TODO(rbuckton): Does this need to be parented?\n return ts.setParent(ts.setTextRange(factory.cloneNode(memberName.expression), memberName.expression), memberName.expression.parent);\n }\n else {\n // TODO(rbuckton): Does this need to be parented?\n return ts.setParent(ts.setTextRange(factory.cloneNode(memberName), memberName), memberName.parent);\n }\n }\n ts.createExpressionForPropertyName = createExpressionForPropertyName;\n function createExpressionForAccessorDeclaration(factory, properties, property, receiver, multiLine) {\n var _a = ts.getAllAccessorDeclarations(properties, property), firstAccessor = _a.firstAccessor, getAccessor = _a.getAccessor, setAccessor = _a.setAccessor;\n if (property === firstAccessor) {\n return ts.setTextRange(factory.createObjectDefinePropertyCall(receiver, createExpressionForPropertyName(factory, property.name), factory.createPropertyDescriptor({\n enumerable: factory.createFalse(),\n configurable: true,\n get: getAccessor && ts.setTextRange(ts.setOriginalNode(factory.createFunctionExpression(getAccessor.modifiers, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, getAccessor.parameters, \n /*type*/ undefined, getAccessor.body // TODO: GH#18217\n ), getAccessor), getAccessor),\n set: setAccessor && ts.setTextRange(ts.setOriginalNode(factory.createFunctionExpression(setAccessor.modifiers, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, setAccessor.parameters, \n /*type*/ undefined, setAccessor.body // TODO: GH#18217\n ), setAccessor), setAccessor)\n }, !multiLine)), firstAccessor);\n }\n return undefined;\n }\n function createExpressionForPropertyAssignment(factory, property, receiver) {\n return ts.setOriginalNode(ts.setTextRange(factory.createAssignment(createMemberAccessForPropertyName(factory, receiver, property.name, /*location*/ property.name), property.initializer), property), property);\n }\n function createExpressionForShorthandPropertyAssignment(factory, property, receiver) {\n return ts.setOriginalNode(ts.setTextRange(factory.createAssignment(createMemberAccessForPropertyName(factory, receiver, property.name, /*location*/ property.name), factory.cloneNode(property.name)), \n /*location*/ property), \n /*original*/ property);\n }\n function createExpressionForMethodDeclaration(factory, method, receiver) {\n return ts.setOriginalNode(ts.setTextRange(factory.createAssignment(createMemberAccessForPropertyName(factory, receiver, method.name, /*location*/ method.name), ts.setOriginalNode(ts.setTextRange(factory.createFunctionExpression(method.modifiers, method.asteriskToken, \n /*name*/ undefined, \n /*typeParameters*/ undefined, method.parameters, \n /*type*/ undefined, method.body // TODO: GH#18217\n ), \n /*location*/ method), \n /*original*/ method)), \n /*location*/ method), \n /*original*/ method);\n }\n function createExpressionForObjectLiteralElementLike(factory, node, property, receiver) {\n if (property.name && ts.isPrivateIdentifier(property.name)) {\n ts.Debug.failBadSyntaxKind(property.name, \"Private identifiers are not allowed in object literals.\");\n }\n switch (property.kind) {\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return createExpressionForAccessorDeclaration(factory, node.properties, property, receiver, !!node.multiLine);\n case 291 /* PropertyAssignment */:\n return createExpressionForPropertyAssignment(factory, property, receiver);\n case 292 /* ShorthandPropertyAssignment */:\n return createExpressionForShorthandPropertyAssignment(factory, property, receiver);\n case 167 /* MethodDeclaration */:\n return createExpressionForMethodDeclaration(factory, property, receiver);\n }\n }\n ts.createExpressionForObjectLiteralElementLike = createExpressionForObjectLiteralElementLike;\n /**\n * Expand the read and increment/decrement operations a pre- or post-increment or pre- or post-decrement expression.\n *\n * ```ts\n * // input\n * ++\n * // output (if result is not discarded)\n * var ;\n * ( = , = ++, )\n * // output (if result is discarded)\n * var ;\n * ( = , ++, )\n *\n * // input\n * ++\n * // output (if result is not discarded)\n * var ;\n * ( = , = ++)\n * // output (if result is discarded)\n * var ;\n * ( = , ++)\n * ```\n *\n * It is up to the caller to supply a temporary variable for `` if one is needed.\n * The temporary variable `` is injected so that `++` and `--` work uniformly with `number` and `bigint`.\n * The result of the expression is always the final result of incrementing or decrementing the expression, so that it can be used for storage.\n *\n * @param factory {@link NodeFactory} used to create the expanded representation.\n * @param node The original prefix or postfix unary node.\n * @param expression The expression to use as the value to increment or decrement\n * @param resultVariable A temporary variable in which to store the result. Pass `undefined` if the result is discarded, or if the value of `` is the expected result.\n */\n function expandPreOrPostfixIncrementOrDecrementExpression(factory, node, expression, recordTempVariable, resultVariable) {\n var operator = node.operator;\n ts.Debug.assert(operator === 45 /* PlusPlusToken */ || operator === 46 /* MinusMinusToken */, \"Expected 'node' to be a pre- or post-increment or pre- or post-decrement expression\");\n var temp = factory.createTempVariable(recordTempVariable);\n expression = factory.createAssignment(temp, expression);\n ts.setTextRange(expression, node.operand);\n var operation = ts.isPrefixUnaryExpression(node) ?\n factory.createPrefixUnaryExpression(operator, temp) :\n factory.createPostfixUnaryExpression(temp, operator);\n ts.setTextRange(operation, node);\n if (resultVariable) {\n operation = factory.createAssignment(resultVariable, operation);\n ts.setTextRange(operation, node);\n }\n expression = factory.createComma(expression, operation);\n ts.setTextRange(expression, node);\n if (ts.isPostfixUnaryExpression(node)) {\n expression = factory.createComma(expression, temp);\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n ts.expandPreOrPostfixIncrementOrDecrementExpression = expandPreOrPostfixIncrementOrDecrementExpression;\n /**\n * Gets whether an identifier should only be referred to by its internal name.\n */\n function isInternalName(node) {\n return (ts.getEmitFlags(node) & 32768 /* InternalName */) !== 0;\n }\n ts.isInternalName = isInternalName;\n /**\n * Gets whether an identifier should only be referred to by its local name.\n */\n function isLocalName(node) {\n return (ts.getEmitFlags(node) & 16384 /* LocalName */) !== 0;\n }\n ts.isLocalName = isLocalName;\n /**\n * Gets whether an identifier should only be referred to by its export representation if the\n * name points to an exported symbol.\n */\n function isExportName(node) {\n return (ts.getEmitFlags(node) & 8192 /* ExportName */) !== 0;\n }\n ts.isExportName = isExportName;\n function isUseStrictPrologue(node) {\n return ts.isStringLiteral(node.expression) && node.expression.text === \"use strict\";\n }\n function findUseStrictPrologue(statements) {\n for (var _i = 0, statements_1 = statements; _i < statements_1.length; _i++) {\n var statement = statements_1[_i];\n if (ts.isPrologueDirective(statement)) {\n if (isUseStrictPrologue(statement)) {\n return statement;\n }\n }\n else {\n break;\n }\n }\n return undefined;\n }\n ts.findUseStrictPrologue = findUseStrictPrologue;\n function startsWithUseStrict(statements) {\n var firstStatement = ts.firstOrUndefined(statements);\n return firstStatement !== undefined\n && ts.isPrologueDirective(firstStatement)\n && isUseStrictPrologue(firstStatement);\n }\n ts.startsWithUseStrict = startsWithUseStrict;\n function isCommaSequence(node) {\n return node.kind === 219 /* BinaryExpression */ && node.operatorToken.kind === 27 /* CommaToken */ ||\n node.kind === 346 /* CommaListExpression */;\n }\n ts.isCommaSequence = isCommaSequence;\n function isOuterExpression(node, kinds) {\n if (kinds === void 0) { kinds = 15 /* All */; }\n switch (node.kind) {\n case 210 /* ParenthesizedExpression */:\n return (kinds & 1 /* Parentheses */) !== 0;\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n return (kinds & 2 /* TypeAssertions */) !== 0;\n case 228 /* NonNullExpression */:\n return (kinds & 4 /* NonNullAssertions */) !== 0;\n case 345 /* PartiallyEmittedExpression */:\n return (kinds & 8 /* PartiallyEmittedExpressions */) !== 0;\n }\n return false;\n }\n ts.isOuterExpression = isOuterExpression;\n function skipOuterExpressions(node, kinds) {\n if (kinds === void 0) { kinds = 15 /* All */; }\n while (isOuterExpression(node, kinds)) {\n node = node.expression;\n }\n return node;\n }\n ts.skipOuterExpressions = skipOuterExpressions;\n function skipAssertions(node) {\n return skipOuterExpressions(node, 6 /* Assertions */);\n }\n ts.skipAssertions = skipAssertions;\n function startOnNewLine(node) {\n return ts.setStartsOnNewLine(node, /*newLine*/ true);\n }\n ts.startOnNewLine = startOnNewLine;\n function getExternalHelpersModuleName(node) {\n var parseNode = ts.getOriginalNode(node, ts.isSourceFile);\n var emitNode = parseNode && parseNode.emitNode;\n return emitNode && emitNode.externalHelpersModuleName;\n }\n ts.getExternalHelpersModuleName = getExternalHelpersModuleName;\n function hasRecordedExternalHelpers(sourceFile) {\n var parseNode = ts.getOriginalNode(sourceFile, ts.isSourceFile);\n var emitNode = parseNode && parseNode.emitNode;\n return !!emitNode && (!!emitNode.externalHelpersModuleName || !!emitNode.externalHelpers);\n }\n ts.hasRecordedExternalHelpers = hasRecordedExternalHelpers;\n function createExternalHelpersImportDeclarationIfNeeded(nodeFactory, helperFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault) {\n if (compilerOptions.importHelpers && ts.isEffectiveExternalModule(sourceFile, compilerOptions)) {\n var namedBindings = void 0;\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n if (moduleKind >= ts.ModuleKind.ES2015 && moduleKind <= ts.ModuleKind.ESNext) {\n // use named imports\n var helpers = ts.getEmitHelpers(sourceFile);\n if (helpers) {\n var helperNames = [];\n for (var _i = 0, helpers_3 = helpers; _i < helpers_3.length; _i++) {\n var helper = helpers_3[_i];\n if (!helper.scoped) {\n var importName = helper.importName;\n if (importName) {\n ts.pushIfUnique(helperNames, importName);\n }\n }\n }\n if (ts.some(helperNames)) {\n helperNames.sort(ts.compareStringsCaseSensitive);\n // Alias the imports if the names are used somewhere in the file.\n // NOTE: We don't need to care about global import collisions as this is a module.\n namedBindings = nodeFactory.createNamedImports(ts.map(helperNames, function (name) { return ts.isFileLevelUniqueName(sourceFile, name)\n ? nodeFactory.createImportSpecifier(/*propertyName*/ undefined, nodeFactory.createIdentifier(name))\n : nodeFactory.createImportSpecifier(nodeFactory.createIdentifier(name), helperFactory.getUnscopedHelperName(name)); }));\n var parseNode = ts.getOriginalNode(sourceFile, ts.isSourceFile);\n var emitNode = ts.getOrCreateEmitNode(parseNode);\n emitNode.externalHelpers = true;\n }\n }\n }\n else {\n // use a namespace import\n var externalHelpersModuleName = getOrCreateExternalHelpersModuleNameIfNeeded(nodeFactory, sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar || hasImportDefault);\n if (externalHelpersModuleName) {\n namedBindings = nodeFactory.createNamespaceImport(externalHelpersModuleName);\n }\n }\n if (namedBindings) {\n var externalHelpersImportDeclaration = nodeFactory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, nodeFactory.createImportClause(/*isTypeOnly*/ false, /*name*/ undefined, namedBindings), nodeFactory.createStringLiteral(ts.externalHelpersModuleNameText));\n ts.addEmitFlags(externalHelpersImportDeclaration, 67108864 /* NeverApplyImportHelper */);\n return externalHelpersImportDeclaration;\n }\n }\n }\n ts.createExternalHelpersImportDeclarationIfNeeded = createExternalHelpersImportDeclarationIfNeeded;\n function getOrCreateExternalHelpersModuleNameIfNeeded(factory, node, compilerOptions, hasExportStarsToExportValues, hasImportStarOrImportDefault) {\n if (compilerOptions.importHelpers && ts.isEffectiveExternalModule(node, compilerOptions)) {\n var externalHelpersModuleName = getExternalHelpersModuleName(node);\n if (externalHelpersModuleName) {\n return externalHelpersModuleName;\n }\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n var create = (hasExportStarsToExportValues || (compilerOptions.esModuleInterop && hasImportStarOrImportDefault))\n && moduleKind !== ts.ModuleKind.System\n && moduleKind < ts.ModuleKind.ES2015;\n if (!create) {\n var helpers = ts.getEmitHelpers(node);\n if (helpers) {\n for (var _i = 0, helpers_4 = helpers; _i < helpers_4.length; _i++) {\n var helper = helpers_4[_i];\n if (!helper.scoped) {\n create = true;\n break;\n }\n }\n }\n }\n if (create) {\n var parseNode = ts.getOriginalNode(node, ts.isSourceFile);\n var emitNode = ts.getOrCreateEmitNode(parseNode);\n return emitNode.externalHelpersModuleName || (emitNode.externalHelpersModuleName = factory.createUniqueName(ts.externalHelpersModuleNameText));\n }\n }\n }\n ts.getOrCreateExternalHelpersModuleNameIfNeeded = getOrCreateExternalHelpersModuleNameIfNeeded;\n /**\n * Get the name of that target module from an import or export declaration\n */\n function getLocalNameForExternalImport(factory, node, sourceFile) {\n var namespaceDeclaration = ts.getNamespaceDeclarationNode(node);\n if (namespaceDeclaration && !ts.isDefaultImport(node) && !ts.isExportNamespaceAsDefaultDeclaration(node)) {\n var name = namespaceDeclaration.name;\n return ts.isGeneratedIdentifier(name) ? name : factory.createIdentifier(ts.getSourceTextOfNodeFromSourceFile(sourceFile, name) || ts.idText(name));\n }\n if (node.kind === 264 /* ImportDeclaration */ && node.importClause) {\n return factory.getGeneratedNameForNode(node);\n }\n if (node.kind === 270 /* ExportDeclaration */ && node.moduleSpecifier) {\n return factory.getGeneratedNameForNode(node);\n }\n return undefined;\n }\n ts.getLocalNameForExternalImport = getLocalNameForExternalImport;\n /**\n * Get the name of a target module from an import/export declaration as should be written in the emitted output.\n * The emitted output name can be different from the input if:\n * 1. The module has a /// \" />\n * 2. --out or --outFile is used, making the name relative to the rootDir\n * 3- The containing SourceFile has an entry in renamedDependencies for the import as requested by some module loaders (e.g. System).\n * Otherwise, a new StringLiteral node representing the module name will be returned.\n */\n function getExternalModuleNameLiteral(factory, importNode, sourceFile, host, resolver, compilerOptions) {\n var moduleName = ts.getExternalModuleName(importNode);\n if (moduleName && ts.isStringLiteral(moduleName)) {\n return tryGetModuleNameFromDeclaration(importNode, host, factory, resolver, compilerOptions)\n || tryRenameExternalModule(factory, moduleName, sourceFile)\n || factory.cloneNode(moduleName);\n }\n return undefined;\n }\n ts.getExternalModuleNameLiteral = getExternalModuleNameLiteral;\n /**\n * Some bundlers (SystemJS builder) sometimes want to rename dependencies.\n * Here we check if alternative name was provided for a given moduleName and return it if possible.\n */\n function tryRenameExternalModule(factory, moduleName, sourceFile) {\n var rename = sourceFile.renamedDependencies && sourceFile.renamedDependencies.get(moduleName.text);\n return rename ? factory.createStringLiteral(rename) : undefined;\n }\n /**\n * Get the name of a module as should be written in the emitted output.\n * The emitted output name can be different from the input if:\n * 1. The module has a /// \" />\n * 2. --out or --outFile is used, making the name relative to the rootDir\n * Otherwise, a new StringLiteral node representing the module name will be returned.\n */\n function tryGetModuleNameFromFile(factory, file, host, options) {\n if (!file) {\n return undefined;\n }\n if (file.moduleName) {\n return factory.createStringLiteral(file.moduleName);\n }\n if (!file.isDeclarationFile && ts.outFile(options)) {\n return factory.createStringLiteral(ts.getExternalModuleNameFromPath(host, file.fileName));\n }\n return undefined;\n }\n ts.tryGetModuleNameFromFile = tryGetModuleNameFromFile;\n function tryGetModuleNameFromDeclaration(declaration, host, factory, resolver, compilerOptions) {\n return tryGetModuleNameFromFile(factory, resolver.getExternalModuleFileFromDeclaration(declaration), host, compilerOptions);\n }\n /**\n * Gets the initializer of an BindingOrAssignmentElement.\n */\n function getInitializerOfBindingOrAssignmentElement(bindingElement) {\n if (ts.isDeclarationBindingElement(bindingElement)) {\n // `1` in `let { a = 1 } = ...`\n // `1` in `let { a: b = 1 } = ...`\n // `1` in `let { a: {b} = 1 } = ...`\n // `1` in `let { a: [b] = 1 } = ...`\n // `1` in `let [a = 1] = ...`\n // `1` in `let [{a} = 1] = ...`\n // `1` in `let [[a] = 1] = ...`\n return bindingElement.initializer;\n }\n if (ts.isPropertyAssignment(bindingElement)) {\n // `1` in `({ a: b = 1 } = ...)`\n // `1` in `({ a: {b} = 1 } = ...)`\n // `1` in `({ a: [b] = 1 } = ...)`\n var initializer = bindingElement.initializer;\n return ts.isAssignmentExpression(initializer, /*excludeCompoundAssignment*/ true)\n ? initializer.right\n : undefined;\n }\n if (ts.isShorthandPropertyAssignment(bindingElement)) {\n // `1` in `({ a = 1 } = ...)`\n return bindingElement.objectAssignmentInitializer;\n }\n if (ts.isAssignmentExpression(bindingElement, /*excludeCompoundAssignment*/ true)) {\n // `1` in `[a = 1] = ...`\n // `1` in `[{a} = 1] = ...`\n // `1` in `[[a] = 1] = ...`\n return bindingElement.right;\n }\n if (ts.isSpreadElement(bindingElement)) {\n // Recovery consistent with existing emit.\n return getInitializerOfBindingOrAssignmentElement(bindingElement.expression);\n }\n }\n ts.getInitializerOfBindingOrAssignmentElement = getInitializerOfBindingOrAssignmentElement;\n /**\n * Gets the name of an BindingOrAssignmentElement.\n */\n function getTargetOfBindingOrAssignmentElement(bindingElement) {\n if (ts.isDeclarationBindingElement(bindingElement)) {\n // `a` in `let { a } = ...`\n // `a` in `let { a = 1 } = ...`\n // `b` in `let { a: b } = ...`\n // `b` in `let { a: b = 1 } = ...`\n // `a` in `let { ...a } = ...`\n // `{b}` in `let { a: {b} } = ...`\n // `{b}` in `let { a: {b} = 1 } = ...`\n // `[b]` in `let { a: [b] } = ...`\n // `[b]` in `let { a: [b] = 1 } = ...`\n // `a` in `let [a] = ...`\n // `a` in `let [a = 1] = ...`\n // `a` in `let [...a] = ...`\n // `{a}` in `let [{a}] = ...`\n // `{a}` in `let [{a} = 1] = ...`\n // `[a]` in `let [[a]] = ...`\n // `[a]` in `let [[a] = 1] = ...`\n return bindingElement.name;\n }\n if (ts.isObjectLiteralElementLike(bindingElement)) {\n switch (bindingElement.kind) {\n case 291 /* PropertyAssignment */:\n // `b` in `({ a: b } = ...)`\n // `b` in `({ a: b = 1 } = ...)`\n // `{b}` in `({ a: {b} } = ...)`\n // `{b}` in `({ a: {b} = 1 } = ...)`\n // `[b]` in `({ a: [b] } = ...)`\n // `[b]` in `({ a: [b] = 1 } = ...)`\n // `b.c` in `({ a: b.c } = ...)`\n // `b.c` in `({ a: b.c = 1 } = ...)`\n // `b[0]` in `({ a: b[0] } = ...)`\n // `b[0]` in `({ a: b[0] = 1 } = ...)`\n return getTargetOfBindingOrAssignmentElement(bindingElement.initializer);\n case 292 /* ShorthandPropertyAssignment */:\n // `a` in `({ a } = ...)`\n // `a` in `({ a = 1 } = ...)`\n return bindingElement.name;\n case 293 /* SpreadAssignment */:\n // `a` in `({ ...a } = ...)`\n return getTargetOfBindingOrAssignmentElement(bindingElement.expression);\n }\n // no target\n return undefined;\n }\n if (ts.isAssignmentExpression(bindingElement, /*excludeCompoundAssignment*/ true)) {\n // `a` in `[a = 1] = ...`\n // `{a}` in `[{a} = 1] = ...`\n // `[a]` in `[[a] = 1] = ...`\n // `a.b` in `[a.b = 1] = ...`\n // `a[0]` in `[a[0] = 1] = ...`\n return getTargetOfBindingOrAssignmentElement(bindingElement.left);\n }\n if (ts.isSpreadElement(bindingElement)) {\n // `a` in `[...a] = ...`\n return getTargetOfBindingOrAssignmentElement(bindingElement.expression);\n }\n // `a` in `[a] = ...`\n // `{a}` in `[{a}] = ...`\n // `[a]` in `[[a]] = ...`\n // `a.b` in `[a.b] = ...`\n // `a[0]` in `[a[0]] = ...`\n return bindingElement;\n }\n ts.getTargetOfBindingOrAssignmentElement = getTargetOfBindingOrAssignmentElement;\n /**\n * Determines whether an BindingOrAssignmentElement is a rest element.\n */\n function getRestIndicatorOfBindingOrAssignmentElement(bindingElement) {\n switch (bindingElement.kind) {\n case 162 /* Parameter */:\n case 201 /* BindingElement */:\n // `...` in `let [...a] = ...`\n return bindingElement.dotDotDotToken;\n case 223 /* SpreadElement */:\n case 293 /* SpreadAssignment */:\n // `...` in `[...a] = ...`\n return bindingElement;\n }\n return undefined;\n }\n ts.getRestIndicatorOfBindingOrAssignmentElement = getRestIndicatorOfBindingOrAssignmentElement;\n /**\n * Gets the property name of a BindingOrAssignmentElement\n */\n function getPropertyNameOfBindingOrAssignmentElement(bindingElement) {\n var propertyName = tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement);\n ts.Debug.assert(!!propertyName || ts.isSpreadAssignment(bindingElement), \"Invalid property name for binding element.\");\n return propertyName;\n }\n ts.getPropertyNameOfBindingOrAssignmentElement = getPropertyNameOfBindingOrAssignmentElement;\n function tryGetPropertyNameOfBindingOrAssignmentElement(bindingElement) {\n switch (bindingElement.kind) {\n case 201 /* BindingElement */:\n // `a` in `let { a: b } = ...`\n // `[a]` in `let { [a]: b } = ...`\n // `\"a\"` in `let { \"a\": b } = ...`\n // `1` in `let { 1: b } = ...`\n if (bindingElement.propertyName) {\n var propertyName = bindingElement.propertyName;\n if (ts.isPrivateIdentifier(propertyName)) {\n return ts.Debug.failBadSyntaxKind(propertyName);\n }\n return ts.isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression)\n ? propertyName.expression\n : propertyName;\n }\n break;\n case 291 /* PropertyAssignment */:\n // `a` in `({ a: b } = ...)`\n // `[a]` in `({ [a]: b } = ...)`\n // `\"a\"` in `({ \"a\": b } = ...)`\n // `1` in `({ 1: b } = ...)`\n if (bindingElement.name) {\n var propertyName = bindingElement.name;\n if (ts.isPrivateIdentifier(propertyName)) {\n return ts.Debug.failBadSyntaxKind(propertyName);\n }\n return ts.isComputedPropertyName(propertyName) && isStringOrNumericLiteral(propertyName.expression)\n ? propertyName.expression\n : propertyName;\n }\n break;\n case 293 /* SpreadAssignment */:\n // `a` in `({ ...a } = ...)`\n if (bindingElement.name && ts.isPrivateIdentifier(bindingElement.name)) {\n return ts.Debug.failBadSyntaxKind(bindingElement.name);\n }\n return bindingElement.name;\n }\n var target = getTargetOfBindingOrAssignmentElement(bindingElement);\n if (target && ts.isPropertyName(target)) {\n return target;\n }\n }\n ts.tryGetPropertyNameOfBindingOrAssignmentElement = tryGetPropertyNameOfBindingOrAssignmentElement;\n function isStringOrNumericLiteral(node) {\n var kind = node.kind;\n return kind === 10 /* StringLiteral */\n || kind === 8 /* NumericLiteral */;\n }\n /**\n * Gets the elements of a BindingOrAssignmentPattern\n */\n function getElementsOfBindingOrAssignmentPattern(name) {\n switch (name.kind) {\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */:\n case 202 /* ArrayLiteralExpression */:\n // `a` in `{a}`\n // `a` in `[a]`\n return name.elements;\n case 203 /* ObjectLiteralExpression */:\n // `a` in `{a}`\n return name.properties;\n }\n }\n ts.getElementsOfBindingOrAssignmentPattern = getElementsOfBindingOrAssignmentPattern;\n /* @internal */\n function getJSDocTypeAliasName(fullName) {\n if (fullName) {\n var rightNode = fullName;\n while (true) {\n if (ts.isIdentifier(rightNode) || !rightNode.body) {\n return ts.isIdentifier(rightNode) ? rightNode : rightNode.name;\n }\n rightNode = rightNode.body;\n }\n }\n }\n ts.getJSDocTypeAliasName = getJSDocTypeAliasName;\n function canHaveModifiers(node) {\n var kind = node.kind;\n return kind === 162 /* Parameter */\n || kind === 164 /* PropertySignature */\n || kind === 165 /* PropertyDeclaration */\n || kind === 166 /* MethodSignature */\n || kind === 167 /* MethodDeclaration */\n || kind === 169 /* Constructor */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */\n || kind === 174 /* IndexSignature */\n || kind === 211 /* FunctionExpression */\n || kind === 212 /* ArrowFunction */\n || kind === 224 /* ClassExpression */\n || kind === 235 /* VariableStatement */\n || kind === 254 /* FunctionDeclaration */\n || kind === 255 /* ClassDeclaration */\n || kind === 256 /* InterfaceDeclaration */\n || kind === 257 /* TypeAliasDeclaration */\n || kind === 258 /* EnumDeclaration */\n || kind === 259 /* ModuleDeclaration */\n || kind === 263 /* ImportEqualsDeclaration */\n || kind === 264 /* ImportDeclaration */\n || kind === 269 /* ExportAssignment */\n || kind === 270 /* ExportDeclaration */;\n }\n ts.canHaveModifiers = canHaveModifiers;\n ts.isTypeNodeOrTypeParameterDeclaration = ts.or(ts.isTypeNode, ts.isTypeParameterDeclaration);\n ts.isQuestionOrExclamationToken = ts.or(ts.isQuestionToken, ts.isExclamationToken);\n ts.isIdentifierOrThisTypeNode = ts.or(ts.isIdentifier, ts.isThisTypeNode);\n ts.isReadonlyKeywordOrPlusOrMinusToken = ts.or(ts.isReadonlyKeyword, ts.isPlusToken, ts.isMinusToken);\n ts.isQuestionOrPlusOrMinusToken = ts.or(ts.isQuestionToken, ts.isPlusToken, ts.isMinusToken);\n ts.isModuleName = ts.or(ts.isIdentifier, ts.isStringLiteral);\n function isLiteralTypeLikeExpression(node) {\n var kind = node.kind;\n return kind === 104 /* NullKeyword */\n || kind === 110 /* TrueKeyword */\n || kind === 95 /* FalseKeyword */\n || ts.isLiteralExpression(node)\n || ts.isPrefixUnaryExpression(node);\n }\n ts.isLiteralTypeLikeExpression = isLiteralTypeLikeExpression;\n function isExponentiationOperator(kind) {\n return kind === 42 /* AsteriskAsteriskToken */;\n }\n function isMultiplicativeOperator(kind) {\n return kind === 41 /* AsteriskToken */\n || kind === 43 /* SlashToken */\n || kind === 44 /* PercentToken */;\n }\n function isMultiplicativeOperatorOrHigher(kind) {\n return isExponentiationOperator(kind)\n || isMultiplicativeOperator(kind);\n }\n function isAdditiveOperator(kind) {\n return kind === 39 /* PlusToken */\n || kind === 40 /* MinusToken */;\n }\n function isAdditiveOperatorOrHigher(kind) {\n return isAdditiveOperator(kind)\n || isMultiplicativeOperatorOrHigher(kind);\n }\n function isShiftOperator(kind) {\n return kind === 47 /* LessThanLessThanToken */\n || kind === 48 /* GreaterThanGreaterThanToken */\n || kind === 49 /* GreaterThanGreaterThanGreaterThanToken */;\n }\n function isShiftOperatorOrHigher(kind) {\n return isShiftOperator(kind)\n || isAdditiveOperatorOrHigher(kind);\n }\n function isRelationalOperator(kind) {\n return kind === 29 /* LessThanToken */\n || kind === 32 /* LessThanEqualsToken */\n || kind === 31 /* GreaterThanToken */\n || kind === 33 /* GreaterThanEqualsToken */\n || kind === 102 /* InstanceOfKeyword */\n || kind === 101 /* InKeyword */;\n }\n function isRelationalOperatorOrHigher(kind) {\n return isRelationalOperator(kind)\n || isShiftOperatorOrHigher(kind);\n }\n function isEqualityOperator(kind) {\n return kind === 34 /* EqualsEqualsToken */\n || kind === 36 /* EqualsEqualsEqualsToken */\n || kind === 35 /* ExclamationEqualsToken */\n || kind === 37 /* ExclamationEqualsEqualsToken */;\n }\n function isEqualityOperatorOrHigher(kind) {\n return isEqualityOperator(kind)\n || isRelationalOperatorOrHigher(kind);\n }\n function isBitwiseOperator(kind) {\n return kind === 50 /* AmpersandToken */\n || kind === 51 /* BarToken */\n || kind === 52 /* CaretToken */;\n }\n function isBitwiseOperatorOrHigher(kind) {\n return isBitwiseOperator(kind)\n || isEqualityOperatorOrHigher(kind);\n }\n // NOTE: The version in utilities includes ExclamationToken, which is not a binary operator.\n function isLogicalOperator(kind) {\n return kind === 55 /* AmpersandAmpersandToken */\n || kind === 56 /* BarBarToken */;\n }\n function isLogicalOperatorOrHigher(kind) {\n return isLogicalOperator(kind)\n || isBitwiseOperatorOrHigher(kind);\n }\n function isAssignmentOperatorOrHigher(kind) {\n return kind === 60 /* QuestionQuestionToken */\n || isLogicalOperatorOrHigher(kind)\n || ts.isAssignmentOperator(kind);\n }\n function isBinaryOperator(kind) {\n return isAssignmentOperatorOrHigher(kind)\n || kind === 27 /* CommaToken */;\n }\n function isBinaryOperatorToken(node) {\n return isBinaryOperator(node.kind);\n }\n ts.isBinaryOperatorToken = isBinaryOperatorToken;\n var BinaryExpressionState;\n (function (BinaryExpressionState) {\n /**\n * Handles walking into a `BinaryExpression`.\n * @param machine State machine handler functions\n * @param frame The current frame\n * @returns The new frame\n */\n function enter(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, outerState) {\n var prevUserState = stackIndex > 0 ? userStateStack[stackIndex - 1] : undefined;\n ts.Debug.assertEqual(stateStack[stackIndex], enter);\n userStateStack[stackIndex] = machine.onEnter(nodeStack[stackIndex], prevUserState, outerState);\n stateStack[stackIndex] = nextState(machine, enter);\n return stackIndex;\n }\n BinaryExpressionState.enter = enter;\n /**\n * Handles walking the `left` side of a `BinaryExpression`.\n * @param machine State machine handler functions\n * @param frame The current frame\n * @returns The new frame\n */\n function left(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {\n ts.Debug.assertEqual(stateStack[stackIndex], left);\n ts.Debug.assertIsDefined(machine.onLeft);\n stateStack[stackIndex] = nextState(machine, left);\n var nextNode = machine.onLeft(nodeStack[stackIndex].left, userStateStack[stackIndex], nodeStack[stackIndex]);\n if (nextNode) {\n checkCircularity(stackIndex, nodeStack, nextNode);\n return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode);\n }\n return stackIndex;\n }\n BinaryExpressionState.left = left;\n /**\n * Handles walking the `operatorToken` of a `BinaryExpression`.\n * @param machine State machine handler functions\n * @param frame The current frame\n * @returns The new frame\n */\n function operator(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {\n ts.Debug.assertEqual(stateStack[stackIndex], operator);\n ts.Debug.assertIsDefined(machine.onOperator);\n stateStack[stackIndex] = nextState(machine, operator);\n machine.onOperator(nodeStack[stackIndex].operatorToken, userStateStack[stackIndex], nodeStack[stackIndex]);\n return stackIndex;\n }\n BinaryExpressionState.operator = operator;\n /**\n * Handles walking the `right` side of a `BinaryExpression`.\n * @param machine State machine handler functions\n * @param frame The current frame\n * @returns The new frame\n */\n function right(machine, stackIndex, stateStack, nodeStack, userStateStack, _resultHolder, _outerState) {\n ts.Debug.assertEqual(stateStack[stackIndex], right);\n ts.Debug.assertIsDefined(machine.onRight);\n stateStack[stackIndex] = nextState(machine, right);\n var nextNode = machine.onRight(nodeStack[stackIndex].right, userStateStack[stackIndex], nodeStack[stackIndex]);\n if (nextNode) {\n checkCircularity(stackIndex, nodeStack, nextNode);\n return pushStack(stackIndex, stateStack, nodeStack, userStateStack, nextNode);\n }\n return stackIndex;\n }\n BinaryExpressionState.right = right;\n /**\n * Handles walking out of a `BinaryExpression`.\n * @param machine State machine handler functions\n * @param frame The current frame\n * @returns The new frame\n */\n function exit(machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, _outerState) {\n ts.Debug.assertEqual(stateStack[stackIndex], exit);\n stateStack[stackIndex] = nextState(machine, exit);\n var result = machine.onExit(nodeStack[stackIndex], userStateStack[stackIndex]);\n if (stackIndex > 0) {\n stackIndex--;\n if (machine.foldState) {\n var side = stateStack[stackIndex] === exit ? \"right\" : \"left\";\n userStateStack[stackIndex] = machine.foldState(userStateStack[stackIndex], result, side);\n }\n }\n else {\n resultHolder.value = result;\n }\n return stackIndex;\n }\n BinaryExpressionState.exit = exit;\n /**\n * Handles a frame that is already done.\n * @returns The `done` state.\n */\n function done(_machine, stackIndex, stateStack, _nodeStack, _userStateStack, _resultHolder, _outerState) {\n ts.Debug.assertEqual(stateStack[stackIndex], done);\n return stackIndex;\n }\n BinaryExpressionState.done = done;\n function nextState(machine, currentState) {\n switch (currentState) {\n case enter:\n if (machine.onLeft)\n return left;\n // falls through\n case left:\n if (machine.onOperator)\n return operator;\n // falls through\n case operator:\n if (machine.onRight)\n return right;\n // falls through\n case right: return exit;\n case exit: return done;\n case done: return done;\n default: ts.Debug.fail(\"Invalid state\");\n }\n }\n BinaryExpressionState.nextState = nextState;\n function pushStack(stackIndex, stateStack, nodeStack, userStateStack, node) {\n stackIndex++;\n stateStack[stackIndex] = enter;\n nodeStack[stackIndex] = node;\n userStateStack[stackIndex] = undefined;\n return stackIndex;\n }\n function checkCircularity(stackIndex, nodeStack, node) {\n if (ts.Debug.shouldAssert(2 /* Aggressive */)) {\n while (stackIndex >= 0) {\n ts.Debug.assert(nodeStack[stackIndex] !== node, \"Circular traversal detected.\");\n stackIndex--;\n }\n }\n }\n })(BinaryExpressionState || (BinaryExpressionState = {}));\n /**\n * Holds state machine handler functions\n */\n var BinaryExpressionStateMachine = /** @class */ (function () {\n function BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit, foldState) {\n this.onEnter = onEnter;\n this.onLeft = onLeft;\n this.onOperator = onOperator;\n this.onRight = onRight;\n this.onExit = onExit;\n this.foldState = foldState;\n }\n return BinaryExpressionStateMachine;\n }());\n function createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState) {\n var machine = new BinaryExpressionStateMachine(onEnter, onLeft, onOperator, onRight, onExit, foldState);\n return trampoline;\n function trampoline(node, outerState) {\n var resultHolder = { value: undefined };\n var stateStack = [BinaryExpressionState.enter];\n var nodeStack = [node];\n var userStateStack = [undefined];\n var stackIndex = 0;\n while (stateStack[stackIndex] !== BinaryExpressionState.done) {\n stackIndex = stateStack[stackIndex](machine, stackIndex, stateStack, nodeStack, userStateStack, resultHolder, outerState);\n }\n ts.Debug.assertEqual(stackIndex, 0);\n return resultHolder.value;\n }\n }\n ts.createBinaryExpressionTrampoline = createBinaryExpressionTrampoline;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function setTextRange(range, location) {\n return location ? ts.setTextRangePosEnd(range, location.pos, location.end) : range;\n }\n ts.setTextRange = setTextRange;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var SignatureFlags;\n (function (SignatureFlags) {\n SignatureFlags[SignatureFlags[\"None\"] = 0] = \"None\";\n SignatureFlags[SignatureFlags[\"Yield\"] = 1] = \"Yield\";\n SignatureFlags[SignatureFlags[\"Await\"] = 2] = \"Await\";\n SignatureFlags[SignatureFlags[\"Type\"] = 4] = \"Type\";\n SignatureFlags[SignatureFlags[\"IgnoreMissingOpenBrace\"] = 16] = \"IgnoreMissingOpenBrace\";\n SignatureFlags[SignatureFlags[\"JSDoc\"] = 32] = \"JSDoc\";\n })(SignatureFlags || (SignatureFlags = {}));\n var SpeculationKind;\n (function (SpeculationKind) {\n SpeculationKind[SpeculationKind[\"TryParse\"] = 0] = \"TryParse\";\n SpeculationKind[SpeculationKind[\"Lookahead\"] = 1] = \"Lookahead\";\n SpeculationKind[SpeculationKind[\"Reparse\"] = 2] = \"Reparse\";\n })(SpeculationKind || (SpeculationKind = {}));\n var NodeConstructor;\n var TokenConstructor;\n var IdentifierConstructor;\n var PrivateIdentifierConstructor;\n var SourceFileConstructor;\n /**\n * NOTE: You should not use this, it is only exported to support `createNode` in `~/src/deprecatedCompat/deprecations.ts`.\n */\n /* @internal */\n ts.parseBaseNodeFactory = {\n createBaseSourceFileNode: function (kind) { return new (SourceFileConstructor || (SourceFileConstructor = ts.objectAllocator.getSourceFileConstructor()))(kind, -1, -1); },\n createBaseIdentifierNode: function (kind) { return new (IdentifierConstructor || (IdentifierConstructor = ts.objectAllocator.getIdentifierConstructor()))(kind, -1, -1); },\n createBasePrivateIdentifierNode: function (kind) { return new (PrivateIdentifierConstructor || (PrivateIdentifierConstructor = ts.objectAllocator.getPrivateIdentifierConstructor()))(kind, -1, -1); },\n createBaseTokenNode: function (kind) { return new (TokenConstructor || (TokenConstructor = ts.objectAllocator.getTokenConstructor()))(kind, -1, -1); },\n createBaseNode: function (kind) { return new (NodeConstructor || (NodeConstructor = ts.objectAllocator.getNodeConstructor()))(kind, -1, -1); },\n };\n /* @internal */\n ts.parseNodeFactory = ts.createNodeFactory(1 /* NoParenthesizerRules */, ts.parseBaseNodeFactory);\n function visitNode(cbNode, node) {\n return node && cbNode(node);\n }\n function visitNodes(cbNode, cbNodes, nodes) {\n if (nodes) {\n if (cbNodes) {\n return cbNodes(nodes);\n }\n for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {\n var node = nodes_1[_i];\n var result = cbNode(node);\n if (result) {\n return result;\n }\n }\n }\n }\n /*@internal*/\n function isJSDocLikeText(text, start) {\n return text.charCodeAt(start + 1) === 42 /* asterisk */ &&\n text.charCodeAt(start + 2) === 42 /* asterisk */ &&\n text.charCodeAt(start + 3) !== 47 /* slash */;\n }\n ts.isJSDocLikeText = isJSDocLikeText;\n /**\n * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes\n * stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; otherwise,\n * embedded arrays are flattened and the 'cbNode' callback is invoked for each element. If a callback returns\n * a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.\n *\n * @param node a given node to visit its children\n * @param cbNode a callback to be invoked for all child nodes\n * @param cbNodes a callback to be invoked for embedded array\n *\n * @remarks `forEachChild` must visit the children of a node in the order\n * that they appear in the source code. The language service depends on this property to locate nodes by position.\n */\n function forEachChild(node, cbNode, cbNodes) {\n if (!node || node.kind <= 158 /* LastToken */) {\n return;\n }\n switch (node.kind) {\n case 159 /* QualifiedName */:\n return visitNode(cbNode, node.left) ||\n visitNode(cbNode, node.right);\n case 161 /* TypeParameter */:\n return visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.constraint) ||\n visitNode(cbNode, node.default) ||\n visitNode(cbNode, node.expression);\n case 292 /* ShorthandPropertyAssignment */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.exclamationToken) ||\n visitNode(cbNode, node.equalsToken) ||\n visitNode(cbNode, node.objectAssignmentInitializer);\n case 293 /* SpreadAssignment */:\n return visitNode(cbNode, node.expression);\n case 162 /* Parameter */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.dotDotDotToken) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.type) ||\n visitNode(cbNode, node.initializer);\n case 165 /* PropertyDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.exclamationToken) ||\n visitNode(cbNode, node.type) ||\n visitNode(cbNode, node.initializer);\n case 164 /* PropertySignature */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.type) ||\n visitNode(cbNode, node.initializer);\n case 291 /* PropertyAssignment */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.initializer);\n case 252 /* VariableDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.exclamationToken) ||\n visitNode(cbNode, node.type) ||\n visitNode(cbNode, node.initializer);\n case 201 /* BindingElement */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.dotDotDotToken) ||\n visitNode(cbNode, node.propertyName) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.initializer);\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNodes(cbNode, cbNodes, node.typeParameters) ||\n visitNodes(cbNode, cbNodes, node.parameters) ||\n visitNode(cbNode, node.type);\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n case 212 /* ArrowFunction */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.asteriskToken) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.exclamationToken) ||\n visitNodes(cbNode, cbNodes, node.typeParameters) ||\n visitNodes(cbNode, cbNodes, node.parameters) ||\n visitNode(cbNode, node.type) ||\n visitNode(cbNode, node.equalsGreaterThanToken) ||\n visitNode(cbNode, node.body);\n case 168 /* ClassStaticBlockDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.body);\n case 176 /* TypeReference */:\n return visitNode(cbNode, node.typeName) ||\n visitNodes(cbNode, cbNodes, node.typeArguments);\n case 175 /* TypePredicate */:\n return visitNode(cbNode, node.assertsModifier) ||\n visitNode(cbNode, node.parameterName) ||\n visitNode(cbNode, node.type);\n case 179 /* TypeQuery */:\n return visitNode(cbNode, node.exprName);\n case 180 /* TypeLiteral */:\n return visitNodes(cbNode, cbNodes, node.members);\n case 181 /* ArrayType */:\n return visitNode(cbNode, node.elementType);\n case 182 /* TupleType */:\n return visitNodes(cbNode, cbNodes, node.elements);\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n return visitNodes(cbNode, cbNodes, node.types);\n case 187 /* ConditionalType */:\n return visitNode(cbNode, node.checkType) ||\n visitNode(cbNode, node.extendsType) ||\n visitNode(cbNode, node.trueType) ||\n visitNode(cbNode, node.falseType);\n case 188 /* InferType */:\n return visitNode(cbNode, node.typeParameter);\n case 198 /* ImportType */:\n return visitNode(cbNode, node.argument) ||\n visitNode(cbNode, node.qualifier) ||\n visitNodes(cbNode, cbNodes, node.typeArguments);\n case 189 /* ParenthesizedType */:\n case 191 /* TypeOperator */:\n return visitNode(cbNode, node.type);\n case 192 /* IndexedAccessType */:\n return visitNode(cbNode, node.objectType) ||\n visitNode(cbNode, node.indexType);\n case 193 /* MappedType */:\n return visitNode(cbNode, node.readonlyToken) ||\n visitNode(cbNode, node.typeParameter) ||\n visitNode(cbNode, node.nameType) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.type);\n case 194 /* LiteralType */:\n return visitNode(cbNode, node.literal);\n case 195 /* NamedTupleMember */:\n return visitNode(cbNode, node.dotDotDotToken) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.type);\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */:\n return visitNodes(cbNode, cbNodes, node.elements);\n case 202 /* ArrayLiteralExpression */:\n return visitNodes(cbNode, cbNodes, node.elements);\n case 203 /* ObjectLiteralExpression */:\n return visitNodes(cbNode, cbNodes, node.properties);\n case 204 /* PropertyAccessExpression */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.questionDotToken) ||\n visitNode(cbNode, node.name);\n case 205 /* ElementAccessExpression */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.questionDotToken) ||\n visitNode(cbNode, node.argumentExpression);\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.questionDotToken) ||\n visitNodes(cbNode, cbNodes, node.typeArguments) ||\n visitNodes(cbNode, cbNodes, node.arguments);\n case 208 /* TaggedTemplateExpression */:\n return visitNode(cbNode, node.tag) ||\n visitNode(cbNode, node.questionDotToken) ||\n visitNodes(cbNode, cbNodes, node.typeArguments) ||\n visitNode(cbNode, node.template);\n case 209 /* TypeAssertionExpression */:\n return visitNode(cbNode, node.type) ||\n visitNode(cbNode, node.expression);\n case 210 /* ParenthesizedExpression */:\n return visitNode(cbNode, node.expression);\n case 213 /* DeleteExpression */:\n return visitNode(cbNode, node.expression);\n case 214 /* TypeOfExpression */:\n return visitNode(cbNode, node.expression);\n case 215 /* VoidExpression */:\n return visitNode(cbNode, node.expression);\n case 217 /* PrefixUnaryExpression */:\n return visitNode(cbNode, node.operand);\n case 222 /* YieldExpression */:\n return visitNode(cbNode, node.asteriskToken) ||\n visitNode(cbNode, node.expression);\n case 216 /* AwaitExpression */:\n return visitNode(cbNode, node.expression);\n case 218 /* PostfixUnaryExpression */:\n return visitNode(cbNode, node.operand);\n case 219 /* BinaryExpression */:\n return visitNode(cbNode, node.left) ||\n visitNode(cbNode, node.operatorToken) ||\n visitNode(cbNode, node.right);\n case 227 /* AsExpression */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.type);\n case 228 /* NonNullExpression */:\n return visitNode(cbNode, node.expression);\n case 229 /* MetaProperty */:\n return visitNode(cbNode, node.name);\n case 220 /* ConditionalExpression */:\n return visitNode(cbNode, node.condition) ||\n visitNode(cbNode, node.questionToken) ||\n visitNode(cbNode, node.whenTrue) ||\n visitNode(cbNode, node.colonToken) ||\n visitNode(cbNode, node.whenFalse);\n case 223 /* SpreadElement */:\n return visitNode(cbNode, node.expression);\n case 233 /* Block */:\n case 260 /* ModuleBlock */:\n return visitNodes(cbNode, cbNodes, node.statements);\n case 300 /* SourceFile */:\n return visitNodes(cbNode, cbNodes, node.statements) ||\n visitNode(cbNode, node.endOfFileToken);\n case 235 /* VariableStatement */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.declarationList);\n case 253 /* VariableDeclarationList */:\n return visitNodes(cbNode, cbNodes, node.declarations);\n case 236 /* ExpressionStatement */:\n return visitNode(cbNode, node.expression);\n case 237 /* IfStatement */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.thenStatement) ||\n visitNode(cbNode, node.elseStatement);\n case 238 /* DoStatement */:\n return visitNode(cbNode, node.statement) ||\n visitNode(cbNode, node.expression);\n case 239 /* WhileStatement */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.statement);\n case 240 /* ForStatement */:\n return visitNode(cbNode, node.initializer) ||\n visitNode(cbNode, node.condition) ||\n visitNode(cbNode, node.incrementor) ||\n visitNode(cbNode, node.statement);\n case 241 /* ForInStatement */:\n return visitNode(cbNode, node.initializer) ||\n visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.statement);\n case 242 /* ForOfStatement */:\n return visitNode(cbNode, node.awaitModifier) ||\n visitNode(cbNode, node.initializer) ||\n visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.statement);\n case 243 /* ContinueStatement */:\n case 244 /* BreakStatement */:\n return visitNode(cbNode, node.label);\n case 245 /* ReturnStatement */:\n return visitNode(cbNode, node.expression);\n case 246 /* WithStatement */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.statement);\n case 247 /* SwitchStatement */:\n return visitNode(cbNode, node.expression) ||\n visitNode(cbNode, node.caseBlock);\n case 261 /* CaseBlock */:\n return visitNodes(cbNode, cbNodes, node.clauses);\n case 287 /* CaseClause */:\n return visitNode(cbNode, node.expression) ||\n visitNodes(cbNode, cbNodes, node.statements);\n case 288 /* DefaultClause */:\n return visitNodes(cbNode, cbNodes, node.statements);\n case 248 /* LabeledStatement */:\n return visitNode(cbNode, node.label) ||\n visitNode(cbNode, node.statement);\n case 249 /* ThrowStatement */:\n return visitNode(cbNode, node.expression);\n case 250 /* TryStatement */:\n return visitNode(cbNode, node.tryBlock) ||\n visitNode(cbNode, node.catchClause) ||\n visitNode(cbNode, node.finallyBlock);\n case 290 /* CatchClause */:\n return visitNode(cbNode, node.variableDeclaration) ||\n visitNode(cbNode, node.block);\n case 163 /* Decorator */:\n return visitNode(cbNode, node.expression);\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNodes(cbNode, cbNodes, node.typeParameters) ||\n visitNodes(cbNode, cbNodes, node.heritageClauses) ||\n visitNodes(cbNode, cbNodes, node.members);\n case 256 /* InterfaceDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNodes(cbNode, cbNodes, node.typeParameters) ||\n visitNodes(cbNode, cbNodes, node.heritageClauses) ||\n visitNodes(cbNode, cbNodes, node.members);\n case 257 /* TypeAliasDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNodes(cbNode, cbNodes, node.typeParameters) ||\n visitNode(cbNode, node.type);\n case 258 /* EnumDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNodes(cbNode, cbNodes, node.members);\n case 294 /* EnumMember */:\n return visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.initializer);\n case 259 /* ModuleDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.body);\n case 263 /* ImportEqualsDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.moduleReference);\n case 264 /* ImportDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.importClause) ||\n visitNode(cbNode, node.moduleSpecifier);\n case 265 /* ImportClause */:\n return visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.namedBindings);\n case 262 /* NamespaceExportDeclaration */:\n return visitNode(cbNode, node.name);\n case 266 /* NamespaceImport */:\n return visitNode(cbNode, node.name);\n case 272 /* NamespaceExport */:\n return visitNode(cbNode, node.name);\n case 267 /* NamedImports */:\n case 271 /* NamedExports */:\n return visitNodes(cbNode, cbNodes, node.elements);\n case 270 /* ExportDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.exportClause) ||\n visitNode(cbNode, node.moduleSpecifier);\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n return visitNode(cbNode, node.propertyName) ||\n visitNode(cbNode, node.name);\n case 269 /* ExportAssignment */:\n return visitNodes(cbNode, cbNodes, node.decorators) ||\n visitNodes(cbNode, cbNodes, node.modifiers) ||\n visitNode(cbNode, node.expression);\n case 221 /* TemplateExpression */:\n return visitNode(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans);\n case 231 /* TemplateSpan */:\n return visitNode(cbNode, node.expression) || visitNode(cbNode, node.literal);\n case 196 /* TemplateLiteralType */:\n return visitNode(cbNode, node.head) || visitNodes(cbNode, cbNodes, node.templateSpans);\n case 197 /* TemplateLiteralTypeSpan */:\n return visitNode(cbNode, node.type) || visitNode(cbNode, node.literal);\n case 160 /* ComputedPropertyName */:\n return visitNode(cbNode, node.expression);\n case 289 /* HeritageClause */:\n return visitNodes(cbNode, cbNodes, node.types);\n case 226 /* ExpressionWithTypeArguments */:\n return visitNode(cbNode, node.expression) ||\n visitNodes(cbNode, cbNodes, node.typeArguments);\n case 275 /* ExternalModuleReference */:\n return visitNode(cbNode, node.expression);\n case 274 /* MissingDeclaration */:\n return visitNodes(cbNode, cbNodes, node.decorators);\n case 346 /* CommaListExpression */:\n return visitNodes(cbNode, cbNodes, node.elements);\n case 276 /* JsxElement */:\n return visitNode(cbNode, node.openingElement) ||\n visitNodes(cbNode, cbNodes, node.children) ||\n visitNode(cbNode, node.closingElement);\n case 280 /* JsxFragment */:\n return visitNode(cbNode, node.openingFragment) ||\n visitNodes(cbNode, cbNodes, node.children) ||\n visitNode(cbNode, node.closingFragment);\n case 277 /* JsxSelfClosingElement */:\n case 278 /* JsxOpeningElement */:\n return visitNode(cbNode, node.tagName) ||\n visitNodes(cbNode, cbNodes, node.typeArguments) ||\n visitNode(cbNode, node.attributes);\n case 284 /* JsxAttributes */:\n return visitNodes(cbNode, cbNodes, node.properties);\n case 283 /* JsxAttribute */:\n return visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.initializer);\n case 285 /* JsxSpreadAttribute */:\n return visitNode(cbNode, node.expression);\n case 286 /* JsxExpression */:\n return visitNode(cbNode, node.dotDotDotToken) ||\n visitNode(cbNode, node.expression);\n case 279 /* JsxClosingElement */:\n return visitNode(cbNode, node.tagName);\n case 183 /* OptionalType */:\n case 184 /* RestType */:\n case 304 /* JSDocTypeExpression */:\n case 310 /* JSDocNonNullableType */:\n case 309 /* JSDocNullableType */:\n case 311 /* JSDocOptionalType */:\n case 313 /* JSDocVariadicType */:\n return visitNode(cbNode, node.type);\n case 312 /* JSDocFunctionType */:\n return visitNodes(cbNode, cbNodes, node.parameters) ||\n visitNode(cbNode, node.type);\n case 315 /* JSDocComment */:\n return (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment))\n || visitNodes(cbNode, cbNodes, node.tags);\n case 341 /* JSDocSeeTag */:\n return visitNode(cbNode, node.tagName) ||\n visitNode(cbNode, node.name) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 305 /* JSDocNameReference */:\n return visitNode(cbNode, node.name);\n case 306 /* JSDocMemberName */:\n return visitNode(cbNode, node.left) ||\n visitNode(cbNode, node.right);\n case 335 /* JSDocParameterTag */:\n case 342 /* JSDocPropertyTag */:\n return visitNode(cbNode, node.tagName) ||\n (node.isNameFirst\n ? visitNode(cbNode, node.name) ||\n visitNode(cbNode, node.typeExpression) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment))\n : visitNode(cbNode, node.typeExpression) ||\n visitNode(cbNode, node.name) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));\n case 325 /* JSDocAuthorTag */:\n return visitNode(cbNode, node.tagName) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 324 /* JSDocImplementsTag */:\n return visitNode(cbNode, node.tagName) ||\n visitNode(cbNode, node.class) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 323 /* JSDocAugmentsTag */:\n return visitNode(cbNode, node.tagName) ||\n visitNode(cbNode, node.class) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 339 /* JSDocTemplateTag */:\n return visitNode(cbNode, node.tagName) ||\n visitNode(cbNode, node.constraint) ||\n visitNodes(cbNode, cbNodes, node.typeParameters) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 340 /* JSDocTypedefTag */:\n return visitNode(cbNode, node.tagName) ||\n (node.typeExpression &&\n node.typeExpression.kind === 304 /* JSDocTypeExpression */\n ? visitNode(cbNode, node.typeExpression) ||\n visitNode(cbNode, node.fullName) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment))\n : visitNode(cbNode, node.fullName) ||\n visitNode(cbNode, node.typeExpression) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment)));\n case 333 /* JSDocCallbackTag */:\n return visitNode(cbNode, node.tagName) ||\n visitNode(cbNode, node.fullName) ||\n visitNode(cbNode, node.typeExpression) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 336 /* JSDocReturnTag */:\n case 338 /* JSDocTypeTag */:\n case 337 /* JSDocThisTag */:\n case 334 /* JSDocEnumTag */:\n return visitNode(cbNode, node.tagName) ||\n visitNode(cbNode, node.typeExpression) ||\n (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 318 /* JSDocSignature */:\n return ts.forEach(node.typeParameters, cbNode) ||\n ts.forEach(node.parameters, cbNode) ||\n visitNode(cbNode, node.type);\n case 319 /* JSDocLink */:\n case 320 /* JSDocLinkCode */:\n case 321 /* JSDocLinkPlain */:\n return visitNode(cbNode, node.name);\n case 317 /* JSDocTypeLiteral */:\n return ts.forEach(node.jsDocPropertyTags, cbNode);\n case 322 /* JSDocTag */:\n case 327 /* JSDocClassTag */:\n case 328 /* JSDocPublicTag */:\n case 329 /* JSDocPrivateTag */:\n case 330 /* JSDocProtectedTag */:\n case 331 /* JSDocReadonlyTag */:\n case 326 /* JSDocDeprecatedTag */:\n return visitNode(cbNode, node.tagName)\n || (typeof node.comment === \"string\" ? undefined : visitNodes(cbNode, cbNodes, node.comment));\n case 345 /* PartiallyEmittedExpression */:\n return visitNode(cbNode, node.expression);\n }\n }\n ts.forEachChild = forEachChild;\n /** @internal */\n /**\n * Invokes a callback for each child of the given node. The 'cbNode' callback is invoked for all child nodes\n * stored in properties. If a 'cbNodes' callback is specified, it is invoked for embedded arrays; additionally,\n * unlike `forEachChild`, embedded arrays are flattened and the 'cbNode' callback is invoked for each element.\n * If a callback returns a truthy value, iteration stops and that value is returned. Otherwise, undefined is returned.\n *\n * @param node a given node to visit its children\n * @param cbNode a callback to be invoked for all child nodes\n * @param cbNodes a callback to be invoked for embedded array\n *\n * @remarks Unlike `forEachChild`, `forEachChildRecursively` handles recursively invoking the traversal on each child node found,\n * and while doing so, handles traversing the structure without relying on the callstack to encode the tree structure.\n */\n function forEachChildRecursively(rootNode, cbNode, cbNodes) {\n var queue = gatherPossibleChildren(rootNode);\n var parents = []; // tracks parent references for elements in queue\n while (parents.length < queue.length) {\n parents.push(rootNode);\n }\n while (queue.length !== 0) {\n var current = queue.pop();\n var parent = parents.pop();\n if (ts.isArray(current)) {\n if (cbNodes) {\n var res = cbNodes(current, parent);\n if (res) {\n if (res === \"skip\")\n continue;\n return res;\n }\n }\n for (var i = current.length - 1; i >= 0; --i) {\n queue.push(current[i]);\n parents.push(parent);\n }\n }\n else {\n var res = cbNode(current, parent);\n if (res) {\n if (res === \"skip\")\n continue;\n return res;\n }\n if (current.kind >= 159 /* FirstNode */) {\n // add children in reverse order to the queue, so popping gives the first child\n for (var _i = 0, _a = gatherPossibleChildren(current); _i < _a.length; _i++) {\n var child = _a[_i];\n queue.push(child);\n parents.push(current);\n }\n }\n }\n }\n }\n ts.forEachChildRecursively = forEachChildRecursively;\n function gatherPossibleChildren(node) {\n var children = [];\n forEachChild(node, addWorkItem, addWorkItem); // By using a stack above and `unshift` here, we emulate a depth-first preorder traversal\n return children;\n function addWorkItem(n) {\n children.unshift(n);\n }\n }\n function createSourceFile(fileName, sourceText, languageVersion, setParentNodes, scriptKind) {\n if (setParentNodes === void 0) { setParentNodes = false; }\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"parse\" /* Parse */, \"createSourceFile\", { path: fileName }, /*separateBeginAndEnd*/ true);\n ts.performance.mark(\"beforeParse\");\n var result;\n ts.perfLogger.logStartParseSourceFile(fileName);\n if (languageVersion === 100 /* JSON */) {\n result = Parser.parseSourceFile(fileName, sourceText, languageVersion, /*syntaxCursor*/ undefined, setParentNodes, 6 /* JSON */);\n }\n else {\n result = Parser.parseSourceFile(fileName, sourceText, languageVersion, /*syntaxCursor*/ undefined, setParentNodes, scriptKind);\n }\n ts.perfLogger.logStopParseSourceFile();\n ts.performance.mark(\"afterParse\");\n ts.performance.measure(\"Parse\", \"beforeParse\", \"afterParse\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return result;\n }\n ts.createSourceFile = createSourceFile;\n function parseIsolatedEntityName(text, languageVersion) {\n return Parser.parseIsolatedEntityName(text, languageVersion);\n }\n ts.parseIsolatedEntityName = parseIsolatedEntityName;\n /**\n * Parse json text into SyntaxTree and return node and parse errors if any\n * @param fileName\n * @param sourceText\n */\n function parseJsonText(fileName, sourceText) {\n return Parser.parseJsonText(fileName, sourceText);\n }\n ts.parseJsonText = parseJsonText;\n // See also `isExternalOrCommonJsModule` in utilities.ts\n function isExternalModule(file) {\n return file.externalModuleIndicator !== undefined;\n }\n ts.isExternalModule = isExternalModule;\n // Produces a new SourceFile for the 'newText' provided. The 'textChangeRange' parameter\n // indicates what changed between the 'text' that this SourceFile has and the 'newText'.\n // The SourceFile will be created with the compiler attempting to reuse as many nodes from\n // this file as possible.\n //\n // Note: this function mutates nodes from this SourceFile. That means any existing nodes\n // from this SourceFile that are being held onto may change as a result (including\n // becoming detached from any SourceFile). It is recommended that this SourceFile not\n // be used once 'update' is called on it.\n function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks) {\n if (aggressiveChecks === void 0) { aggressiveChecks = false; }\n var newSourceFile = IncrementalParser.updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks);\n // Because new source file node is created, it may not have the flag PossiblyContainDynamicImport. This is the case if there is no new edit to add dynamic import.\n // We will manually port the flag to the new source file.\n newSourceFile.flags |= (sourceFile.flags & 3145728 /* PermanentlySetIncrementalFlags */);\n return newSourceFile;\n }\n ts.updateSourceFile = updateSourceFile;\n /* @internal */\n function parseIsolatedJSDocComment(content, start, length) {\n var result = Parser.JSDocParser.parseIsolatedJSDocComment(content, start, length);\n if (result && result.jsDoc) {\n // because the jsDocComment was parsed out of the source file, it might\n // not be covered by the fixupParentReferences.\n Parser.fixupParentReferences(result.jsDoc);\n }\n return result;\n }\n ts.parseIsolatedJSDocComment = parseIsolatedJSDocComment;\n /* @internal */\n // Exposed only for testing.\n function parseJSDocTypeExpressionForTests(content, start, length) {\n return Parser.JSDocParser.parseJSDocTypeExpressionForTests(content, start, length);\n }\n ts.parseJSDocTypeExpressionForTests = parseJSDocTypeExpressionForTests;\n // Implement the parser as a singleton module. We do this for perf reasons because creating\n // parser instances can actually be expensive enough to impact us on projects with many source\n // files.\n var Parser;\n (function (Parser) {\n // Share a single scanner across all calls to parse a source file. This helps speed things\n // up by avoiding the cost of creating/compiling scanners over and over again.\n var scanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ true);\n var disallowInAndDecoratorContext = 4096 /* DisallowInContext */ | 16384 /* DecoratorContext */;\n // capture constructors in 'initializeState' to avoid null checks\n // tslint:disable variable-name\n var NodeConstructor;\n var TokenConstructor;\n var IdentifierConstructor;\n var PrivateIdentifierConstructor;\n var SourceFileConstructor;\n // tslint:enable variable-name\n function countNode(node) {\n nodeCount++;\n return node;\n }\n // Rather than using `createBaseNodeFactory` here, we establish a `BaseNodeFactory` that closes over the\n // constructors above, which are reset each time `initializeState` is called.\n var baseNodeFactory = {\n createBaseSourceFileNode: function (kind) { return countNode(new SourceFileConstructor(kind, /*pos*/ 0, /*end*/ 0)); },\n createBaseIdentifierNode: function (kind) { return countNode(new IdentifierConstructor(kind, /*pos*/ 0, /*end*/ 0)); },\n createBasePrivateIdentifierNode: function (kind) { return countNode(new PrivateIdentifierConstructor(kind, /*pos*/ 0, /*end*/ 0)); },\n createBaseTokenNode: function (kind) { return countNode(new TokenConstructor(kind, /*pos*/ 0, /*end*/ 0)); },\n createBaseNode: function (kind) { return countNode(new NodeConstructor(kind, /*pos*/ 0, /*end*/ 0)); }\n };\n var factory = ts.createNodeFactory(1 /* NoParenthesizerRules */ | 2 /* NoNodeConverters */ | 8 /* NoOriginalNode */, baseNodeFactory);\n var fileName;\n var sourceFlags;\n var sourceText;\n var languageVersion;\n var scriptKind;\n var languageVariant;\n var parseDiagnostics;\n var jsDocDiagnostics;\n var syntaxCursor;\n var currentToken;\n var nodeCount;\n var identifiers;\n var privateIdentifiers;\n var identifierCount;\n var parsingContext;\n var notParenthesizedArrow;\n // Flags that dictate what parsing context we're in. For example:\n // Whether or not we are in strict parsing mode. All that changes in strict parsing mode is\n // that some tokens that would be considered identifiers may be considered keywords.\n //\n // When adding more parser context flags, consider which is the more common case that the\n // flag will be in. This should be the 'false' state for that flag. The reason for this is\n // that we don't store data in our nodes unless the value is in the *non-default* state. So,\n // for example, more often than code 'allows-in' (or doesn't 'disallow-in'). We opt for\n // 'disallow-in' set to 'false'. Otherwise, if we had 'allowsIn' set to 'true', then almost\n // all nodes would need extra state on them to store this info.\n //\n // Note: 'allowIn' and 'allowYield' track 1:1 with the [in] and [yield] concepts in the ES6\n // grammar specification.\n //\n // An important thing about these context concepts. By default they are effectively inherited\n // while parsing through every grammar production. i.e. if you don't change them, then when\n // you parse a sub-production, it will have the same context values as the parent production.\n // This is great most of the time. After all, consider all the 'expression' grammar productions\n // and how nearly all of them pass along the 'in' and 'yield' context values:\n //\n // EqualityExpression[In, Yield] :\n // RelationalExpression[?In, ?Yield]\n // EqualityExpression[?In, ?Yield] == RelationalExpression[?In, ?Yield]\n // EqualityExpression[?In, ?Yield] != RelationalExpression[?In, ?Yield]\n // EqualityExpression[?In, ?Yield] === RelationalExpression[?In, ?Yield]\n // EqualityExpression[?In, ?Yield] !== RelationalExpression[?In, ?Yield]\n //\n // Where you have to be careful is then understanding what the points are in the grammar\n // where the values are *not* passed along. For example:\n //\n // SingleNameBinding[Yield,GeneratorParameter]\n // [+GeneratorParameter]BindingIdentifier[Yield] Initializer[In]opt\n // [~GeneratorParameter]BindingIdentifier[?Yield]Initializer[In, ?Yield]opt\n //\n // Here this is saying that if the GeneratorParameter context flag is set, that we should\n // explicitly set the 'yield' context flag to false before calling into the BindingIdentifier\n // and we should explicitly unset the 'yield' context flag before calling into the Initializer.\n // production. Conversely, if the GeneratorParameter context flag is not set, then we\n // should leave the 'yield' context flag alone.\n //\n // Getting this all correct is tricky and requires careful reading of the grammar to\n // understand when these values should be changed versus when they should be inherited.\n //\n // Note: it should not be necessary to save/restore these flags during speculative/lookahead\n // parsing. These context flags are naturally stored and restored through normal recursive\n // descent parsing and unwinding.\n var contextFlags;\n // Indicates whether we are currently parsing top-level statements.\n var topLevel = true;\n // Whether or not we've had a parse error since creating the last AST node. If we have\n // encountered an error, it will be stored on the next AST node we create. Parse errors\n // can be broken down into three categories:\n //\n // 1) An error that occurred during scanning. For example, an unterminated literal, or a\n // character that was completely not understood.\n //\n // 2) A token was expected, but was not present. This type of error is commonly produced\n // by the 'parseExpected' function.\n //\n // 3) A token was present that no parsing function was able to consume. This type of error\n // only occurs in the 'abortParsingListOrMoveToNextToken' function when the parser\n // decides to skip the token.\n //\n // In all of these cases, we want to mark the next node as having had an error before it.\n // With this mark, we can know in incremental settings if this node can be reused, or if\n // we have to reparse it. If we don't keep this information around, we may just reuse the\n // node. in that event we would then not produce the same errors as we did before, causing\n // significant confusion problems.\n //\n // Note: it is necessary that this value be saved/restored during speculative/lookahead\n // parsing. During lookahead parsing, we will often create a node. That node will have\n // this value attached, and then this value will be set back to 'false'. If we decide to\n // rewind, we must get back to the same value we had prior to the lookahead.\n //\n // Note: any errors at the end of the file that do not precede a regular node, should get\n // attached to the EOF token.\n var parseErrorBeforeNextFinishedNode = false;\n function parseSourceFile(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes, scriptKind) {\n var _a;\n if (setParentNodes === void 0) { setParentNodes = false; }\n scriptKind = ts.ensureScriptKind(fileName, scriptKind);\n if (scriptKind === 6 /* JSON */) {\n var result_3 = parseJsonText(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes);\n ts.convertToObjectWorker(result_3, (_a = result_3.statements[0]) === null || _a === void 0 ? void 0 : _a.expression, result_3.parseDiagnostics, /*returnValue*/ false, /*knownRootOptions*/ undefined, /*jsonConversionNotifier*/ undefined);\n result_3.referencedFiles = ts.emptyArray;\n result_3.typeReferenceDirectives = ts.emptyArray;\n result_3.libReferenceDirectives = ts.emptyArray;\n result_3.amdDependencies = ts.emptyArray;\n result_3.hasNoDefaultLib = false;\n result_3.pragmas = ts.emptyMap;\n return result_3;\n }\n initializeState(fileName, sourceText, languageVersion, syntaxCursor, scriptKind);\n var result = parseSourceFileWorker(languageVersion, setParentNodes, scriptKind);\n clearState();\n return result;\n }\n Parser.parseSourceFile = parseSourceFile;\n function parseIsolatedEntityName(content, languageVersion) {\n // Choice of `isDeclarationFile` should be arbitrary\n initializeState(\"\", content, languageVersion, /*syntaxCursor*/ undefined, 1 /* JS */);\n // Prime the scanner.\n nextToken();\n var entityName = parseEntityName(/*allowReservedWords*/ true);\n var isInvalid = token() === 1 /* EndOfFileToken */ && !parseDiagnostics.length;\n clearState();\n return isInvalid ? entityName : undefined;\n }\n Parser.parseIsolatedEntityName = parseIsolatedEntityName;\n function parseJsonText(fileName, sourceText, languageVersion, syntaxCursor, setParentNodes) {\n if (languageVersion === void 0) { languageVersion = 2 /* ES2015 */; }\n if (setParentNodes === void 0) { setParentNodes = false; }\n initializeState(fileName, sourceText, languageVersion, syntaxCursor, 6 /* JSON */);\n sourceFlags = contextFlags;\n // Prime the scanner.\n nextToken();\n var pos = getNodePos();\n var statements, endOfFileToken;\n if (token() === 1 /* EndOfFileToken */) {\n statements = createNodeArray([], pos, pos);\n endOfFileToken = parseTokenNode();\n }\n else {\n // Loop and synthesize an ArrayLiteralExpression if there are more than\n // one top-level expressions to ensure all input text is consumed.\n var expressions = void 0;\n while (token() !== 1 /* EndOfFileToken */) {\n var expression_1 = void 0;\n switch (token()) {\n case 22 /* OpenBracketToken */:\n expression_1 = parseArrayLiteralExpression();\n break;\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 104 /* NullKeyword */:\n expression_1 = parseTokenNode();\n break;\n case 40 /* MinusToken */:\n if (lookAhead(function () { return nextToken() === 8 /* NumericLiteral */ && nextToken() !== 58 /* ColonToken */; })) {\n expression_1 = parsePrefixUnaryExpression();\n }\n else {\n expression_1 = parseObjectLiteralExpression();\n }\n break;\n case 8 /* NumericLiteral */:\n case 10 /* StringLiteral */:\n if (lookAhead(function () { return nextToken() !== 58 /* ColonToken */; })) {\n expression_1 = parseLiteralNode();\n break;\n }\n // falls through\n default:\n expression_1 = parseObjectLiteralExpression();\n break;\n }\n // Error recovery: collect multiple top-level expressions\n if (expressions && ts.isArray(expressions)) {\n expressions.push(expression_1);\n }\n else if (expressions) {\n expressions = [expressions, expression_1];\n }\n else {\n expressions = expression_1;\n if (token() !== 1 /* EndOfFileToken */) {\n parseErrorAtCurrentToken(ts.Diagnostics.Unexpected_token);\n }\n }\n }\n var expression = ts.isArray(expressions) ? finishNode(factory.createArrayLiteralExpression(expressions), pos) : ts.Debug.checkDefined(expressions);\n var statement = factory.createExpressionStatement(expression);\n finishNode(statement, pos);\n statements = createNodeArray([statement], pos);\n endOfFileToken = parseExpectedToken(1 /* EndOfFileToken */, ts.Diagnostics.Unexpected_token);\n }\n // Set source file so that errors will be reported with this file name\n var sourceFile = createSourceFile(fileName, 2 /* ES2015 */, 6 /* JSON */, /*isDeclaration*/ false, statements, endOfFileToken, sourceFlags);\n if (setParentNodes) {\n fixupParentReferences(sourceFile);\n }\n sourceFile.nodeCount = nodeCount;\n sourceFile.identifierCount = identifierCount;\n sourceFile.identifiers = identifiers;\n sourceFile.parseDiagnostics = ts.attachFileToDiagnostics(parseDiagnostics, sourceFile);\n if (jsDocDiagnostics) {\n sourceFile.jsDocDiagnostics = ts.attachFileToDiagnostics(jsDocDiagnostics, sourceFile);\n }\n var result = sourceFile;\n clearState();\n return result;\n }\n Parser.parseJsonText = parseJsonText;\n function initializeState(_fileName, _sourceText, _languageVersion, _syntaxCursor, _scriptKind) {\n NodeConstructor = ts.objectAllocator.getNodeConstructor();\n TokenConstructor = ts.objectAllocator.getTokenConstructor();\n IdentifierConstructor = ts.objectAllocator.getIdentifierConstructor();\n PrivateIdentifierConstructor = ts.objectAllocator.getPrivateIdentifierConstructor();\n SourceFileConstructor = ts.objectAllocator.getSourceFileConstructor();\n fileName = ts.normalizePath(_fileName);\n sourceText = _sourceText;\n languageVersion = _languageVersion;\n syntaxCursor = _syntaxCursor;\n scriptKind = _scriptKind;\n languageVariant = ts.getLanguageVariant(_scriptKind);\n parseDiagnostics = [];\n parsingContext = 0;\n identifiers = new ts.Map();\n privateIdentifiers = new ts.Map();\n identifierCount = 0;\n nodeCount = 0;\n sourceFlags = 0;\n topLevel = true;\n switch (scriptKind) {\n case 1 /* JS */:\n case 2 /* JSX */:\n contextFlags = 131072 /* JavaScriptFile */;\n break;\n case 6 /* JSON */:\n contextFlags = 131072 /* JavaScriptFile */ | 33554432 /* JsonFile */;\n break;\n default:\n contextFlags = 0 /* None */;\n break;\n }\n parseErrorBeforeNextFinishedNode = false;\n // Initialize and prime the scanner before parsing the source elements.\n scanner.setText(sourceText);\n scanner.setOnError(scanError);\n scanner.setScriptTarget(languageVersion);\n scanner.setLanguageVariant(languageVariant);\n }\n function clearState() {\n // Clear out the text the scanner is pointing at, so it doesn't keep anything alive unnecessarily.\n scanner.clearCommentDirectives();\n scanner.setText(\"\");\n scanner.setOnError(undefined);\n // Clear any data. We don't want to accidentally hold onto it for too long.\n sourceText = undefined;\n languageVersion = undefined;\n syntaxCursor = undefined;\n scriptKind = undefined;\n languageVariant = undefined;\n sourceFlags = 0;\n parseDiagnostics = undefined;\n jsDocDiagnostics = undefined;\n parsingContext = 0;\n identifiers = undefined;\n notParenthesizedArrow = undefined;\n topLevel = true;\n }\n function parseSourceFileWorker(languageVersion, setParentNodes, scriptKind) {\n var isDeclarationFile = isDeclarationFileName(fileName);\n if (isDeclarationFile) {\n contextFlags |= 8388608 /* Ambient */;\n }\n sourceFlags = contextFlags;\n // Prime the scanner.\n nextToken();\n var statements = parseList(0 /* SourceElements */, parseStatement);\n ts.Debug.assert(token() === 1 /* EndOfFileToken */);\n var endOfFileToken = addJSDocComment(parseTokenNode());\n var sourceFile = createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, sourceFlags);\n // A member of ReadonlyArray isn't assignable to a member of T[] (and prevents a direct cast) - but this is where we set up those members so they can be readonly in the future\n processCommentPragmas(sourceFile, sourceText);\n processPragmasIntoFields(sourceFile, reportPragmaDiagnostic);\n sourceFile.commentDirectives = scanner.getCommentDirectives();\n sourceFile.nodeCount = nodeCount;\n sourceFile.identifierCount = identifierCount;\n sourceFile.identifiers = identifiers;\n sourceFile.parseDiagnostics = ts.attachFileToDiagnostics(parseDiagnostics, sourceFile);\n if (jsDocDiagnostics) {\n sourceFile.jsDocDiagnostics = ts.attachFileToDiagnostics(jsDocDiagnostics, sourceFile);\n }\n if (setParentNodes) {\n fixupParentReferences(sourceFile);\n }\n return sourceFile;\n function reportPragmaDiagnostic(pos, end, diagnostic) {\n parseDiagnostics.push(ts.createDetachedDiagnostic(fileName, pos, end, diagnostic));\n }\n }\n function withJSDoc(node, hasJSDoc) {\n return hasJSDoc ? addJSDocComment(node) : node;\n }\n var hasDeprecatedTag = false;\n function addJSDocComment(node) {\n ts.Debug.assert(!node.jsDoc); // Should only be called once per node\n var jsDoc = ts.mapDefined(ts.getJSDocCommentRanges(node, sourceText), function (comment) { return JSDocParser.parseJSDocComment(node, comment.pos, comment.end - comment.pos); });\n if (jsDoc.length)\n node.jsDoc = jsDoc;\n if (hasDeprecatedTag) {\n hasDeprecatedTag = false;\n node.flags |= 134217728 /* Deprecated */;\n }\n return node;\n }\n function reparseTopLevelAwait(sourceFile) {\n var savedSyntaxCursor = syntaxCursor;\n var baseSyntaxCursor = IncrementalParser.createSyntaxCursor(sourceFile);\n syntaxCursor = { currentNode: currentNode };\n var statements = [];\n var savedParseDiagnostics = parseDiagnostics;\n parseDiagnostics = [];\n var pos = 0;\n var start = findNextStatementWithAwait(sourceFile.statements, 0);\n var _loop_3 = function () {\n // append all statements between pos and start\n var prevStatement = sourceFile.statements[pos];\n var nextStatement = sourceFile.statements[start];\n ts.addRange(statements, sourceFile.statements, pos, start);\n pos = findNextStatementWithoutAwait(sourceFile.statements, start);\n // append all diagnostics associated with the copied range\n var diagnosticStart = ts.findIndex(savedParseDiagnostics, function (diagnostic) { return diagnostic.start >= prevStatement.pos; });\n var diagnosticEnd = diagnosticStart >= 0 ? ts.findIndex(savedParseDiagnostics, function (diagnostic) { return diagnostic.start >= nextStatement.pos; }, diagnosticStart) : -1;\n if (diagnosticStart >= 0) {\n ts.addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart, diagnosticEnd >= 0 ? diagnosticEnd : undefined);\n }\n // reparse all statements between start and pos. We skip existing diagnostics for the same range and allow the parser to generate new ones.\n speculationHelper(function () {\n var savedContextFlags = contextFlags;\n contextFlags |= 32768 /* AwaitContext */;\n scanner.setTextPos(nextStatement.pos);\n nextToken();\n while (token() !== 1 /* EndOfFileToken */) {\n var startPos = scanner.getStartPos();\n var statement = parseListElement(0 /* SourceElements */, parseStatement);\n statements.push(statement);\n if (startPos === scanner.getStartPos()) {\n nextToken();\n }\n if (pos >= 0) {\n var nonAwaitStatement = sourceFile.statements[pos];\n if (statement.end === nonAwaitStatement.pos) {\n // done reparsing this section\n break;\n }\n if (statement.end > nonAwaitStatement.pos) {\n // we ate into the next statement, so we must reparse it.\n pos = findNextStatementWithoutAwait(sourceFile.statements, pos + 1);\n }\n }\n }\n contextFlags = savedContextFlags;\n }, 2 /* Reparse */);\n // find the next statement containing an `await`\n start = pos >= 0 ? findNextStatementWithAwait(sourceFile.statements, pos) : -1;\n };\n while (start !== -1) {\n _loop_3();\n }\n // append all statements between pos and the end of the list\n if (pos >= 0) {\n var prevStatement_1 = sourceFile.statements[pos];\n ts.addRange(statements, sourceFile.statements, pos);\n // append all diagnostics associated with the copied range\n var diagnosticStart = ts.findIndex(savedParseDiagnostics, function (diagnostic) { return diagnostic.start >= prevStatement_1.pos; });\n if (diagnosticStart >= 0) {\n ts.addRange(parseDiagnostics, savedParseDiagnostics, diagnosticStart);\n }\n }\n syntaxCursor = savedSyntaxCursor;\n return factory.updateSourceFile(sourceFile, ts.setTextRange(factory.createNodeArray(statements), sourceFile.statements));\n function containsPossibleTopLevelAwait(node) {\n return !(node.flags & 32768 /* AwaitContext */)\n && !!(node.transformFlags & 16777216 /* ContainsPossibleTopLevelAwait */);\n }\n function findNextStatementWithAwait(statements, start) {\n for (var i = start; i < statements.length; i++) {\n if (containsPossibleTopLevelAwait(statements[i])) {\n return i;\n }\n }\n return -1;\n }\n function findNextStatementWithoutAwait(statements, start) {\n for (var i = start; i < statements.length; i++) {\n if (!containsPossibleTopLevelAwait(statements[i])) {\n return i;\n }\n }\n return -1;\n }\n function currentNode(position) {\n var node = baseSyntaxCursor.currentNode(position);\n if (topLevel && node && containsPossibleTopLevelAwait(node)) {\n node.intersectsChange = true;\n }\n return node;\n }\n }\n function fixupParentReferences(rootNode) {\n // normally parent references are set during binding. However, for clients that only need\n // a syntax tree, and no semantic features, then the binding process is an unnecessary\n // overhead. This functions allows us to set all the parents, without all the expense of\n // binding.\n ts.setParentRecursive(rootNode, /*incremental*/ true);\n }\n Parser.fixupParentReferences = fixupParentReferences;\n function createSourceFile(fileName, languageVersion, scriptKind, isDeclarationFile, statements, endOfFileToken, flags) {\n // code from createNode is inlined here so createNode won't have to deal with special case of creating source files\n // this is quite rare comparing to other nodes and createNode should be as fast as possible\n var sourceFile = factory.createSourceFile(statements, endOfFileToken, flags);\n ts.setTextRangePosWidth(sourceFile, 0, sourceText.length);\n setExternalModuleIndicator(sourceFile);\n // If we parsed this as an external module, it may contain top-level await\n if (!isDeclarationFile && isExternalModule(sourceFile) && sourceFile.transformFlags & 16777216 /* ContainsPossibleTopLevelAwait */) {\n sourceFile = reparseTopLevelAwait(sourceFile);\n }\n sourceFile.text = sourceText;\n sourceFile.bindDiagnostics = [];\n sourceFile.bindSuggestionDiagnostics = undefined;\n sourceFile.languageVersion = languageVersion;\n sourceFile.fileName = fileName;\n sourceFile.languageVariant = ts.getLanguageVariant(scriptKind);\n sourceFile.isDeclarationFile = isDeclarationFile;\n sourceFile.scriptKind = scriptKind;\n return sourceFile;\n }\n function setContextFlag(val, flag) {\n if (val) {\n contextFlags |= flag;\n }\n else {\n contextFlags &= ~flag;\n }\n }\n function setDisallowInContext(val) {\n setContextFlag(val, 4096 /* DisallowInContext */);\n }\n function setYieldContext(val) {\n setContextFlag(val, 8192 /* YieldContext */);\n }\n function setDecoratorContext(val) {\n setContextFlag(val, 16384 /* DecoratorContext */);\n }\n function setAwaitContext(val) {\n setContextFlag(val, 32768 /* AwaitContext */);\n }\n function doOutsideOfContext(context, func) {\n // contextFlagsToClear will contain only the context flags that are\n // currently set that we need to temporarily clear\n // We don't just blindly reset to the previous flags to ensure\n // that we do not mutate cached flags for the incremental\n // parser (ThisNodeHasError, ThisNodeOrAnySubNodesHasError, and\n // HasAggregatedChildData).\n var contextFlagsToClear = context & contextFlags;\n if (contextFlagsToClear) {\n // clear the requested context flags\n setContextFlag(/*val*/ false, contextFlagsToClear);\n var result = func();\n // restore the context flags we just cleared\n setContextFlag(/*val*/ true, contextFlagsToClear);\n return result;\n }\n // no need to do anything special as we are not in any of the requested contexts\n return func();\n }\n function doInsideOfContext(context, func) {\n // contextFlagsToSet will contain only the context flags that\n // are not currently set that we need to temporarily enable.\n // We don't just blindly reset to the previous flags to ensure\n // that we do not mutate cached flags for the incremental\n // parser (ThisNodeHasError, ThisNodeOrAnySubNodesHasError, and\n // HasAggregatedChildData).\n var contextFlagsToSet = context & ~contextFlags;\n if (contextFlagsToSet) {\n // set the requested context flags\n setContextFlag(/*val*/ true, contextFlagsToSet);\n var result = func();\n // reset the context flags we just set\n setContextFlag(/*val*/ false, contextFlagsToSet);\n return result;\n }\n // no need to do anything special as we are already in all of the requested contexts\n return func();\n }\n function allowInAnd(func) {\n return doOutsideOfContext(4096 /* DisallowInContext */, func);\n }\n function disallowInAnd(func) {\n return doInsideOfContext(4096 /* DisallowInContext */, func);\n }\n function doInYieldContext(func) {\n return doInsideOfContext(8192 /* YieldContext */, func);\n }\n function doInDecoratorContext(func) {\n return doInsideOfContext(16384 /* DecoratorContext */, func);\n }\n function doInAwaitContext(func) {\n return doInsideOfContext(32768 /* AwaitContext */, func);\n }\n function doOutsideOfAwaitContext(func) {\n return doOutsideOfContext(32768 /* AwaitContext */, func);\n }\n function doInYieldAndAwaitContext(func) {\n return doInsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func);\n }\n function doOutsideOfYieldAndAwaitContext(func) {\n return doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */, func);\n }\n function inContext(flags) {\n return (contextFlags & flags) !== 0;\n }\n function inYieldContext() {\n return inContext(8192 /* YieldContext */);\n }\n function inDisallowInContext() {\n return inContext(4096 /* DisallowInContext */);\n }\n function inDecoratorContext() {\n return inContext(16384 /* DecoratorContext */);\n }\n function inAwaitContext() {\n return inContext(32768 /* AwaitContext */);\n }\n function parseErrorAtCurrentToken(message, arg0) {\n parseErrorAt(scanner.getTokenPos(), scanner.getTextPos(), message, arg0);\n }\n function parseErrorAtPosition(start, length, message, arg0) {\n // Don't report another error if it would just be at the same position as the last error.\n var lastError = ts.lastOrUndefined(parseDiagnostics);\n if (!lastError || start !== lastError.start) {\n parseDiagnostics.push(ts.createDetachedDiagnostic(fileName, start, length, message, arg0));\n }\n // Mark that we've encountered an error. We'll set an appropriate bit on the next\n // node we finish so that it can't be reused incrementally.\n parseErrorBeforeNextFinishedNode = true;\n }\n function parseErrorAt(start, end, message, arg0) {\n parseErrorAtPosition(start, end - start, message, arg0);\n }\n function parseErrorAtRange(range, message, arg0) {\n parseErrorAt(range.pos, range.end, message, arg0);\n }\n function scanError(message, length) {\n parseErrorAtPosition(scanner.getTextPos(), length, message);\n }\n function getNodePos() {\n return scanner.getStartPos();\n }\n function hasPrecedingJSDocComment() {\n return scanner.hasPrecedingJSDocComment();\n }\n // Use this function to access the current token instead of reading the currentToken\n // variable. Since function results aren't narrowed in control flow analysis, this ensures\n // that the type checker doesn't make wrong assumptions about the type of the current\n // token (e.g. a call to nextToken() changes the current token but the checker doesn't\n // reason about this side effect). Mainstream VMs inline simple functions like this, so\n // there is no performance penalty.\n function token() {\n return currentToken;\n }\n function nextTokenWithoutCheck() {\n return currentToken = scanner.scan();\n }\n function nextTokenAnd(func) {\n nextToken();\n return func();\n }\n function nextToken() {\n // if the keyword had an escape\n if (ts.isKeyword(currentToken) && (scanner.hasUnicodeEscape() || scanner.hasExtendedUnicodeEscape())) {\n // issue a parse error for the escape\n parseErrorAt(scanner.getTokenPos(), scanner.getTextPos(), ts.Diagnostics.Keywords_cannot_contain_escape_characters);\n }\n return nextTokenWithoutCheck();\n }\n function nextTokenJSDoc() {\n return currentToken = scanner.scanJsDocToken();\n }\n function reScanGreaterToken() {\n return currentToken = scanner.reScanGreaterToken();\n }\n function reScanSlashToken() {\n return currentToken = scanner.reScanSlashToken();\n }\n function reScanTemplateToken(isTaggedTemplate) {\n return currentToken = scanner.reScanTemplateToken(isTaggedTemplate);\n }\n function reScanTemplateHeadOrNoSubstitutionTemplate() {\n return currentToken = scanner.reScanTemplateHeadOrNoSubstitutionTemplate();\n }\n function reScanLessThanToken() {\n return currentToken = scanner.reScanLessThanToken();\n }\n function reScanHashToken() {\n return currentToken = scanner.reScanHashToken();\n }\n function scanJsxIdentifier() {\n return currentToken = scanner.scanJsxIdentifier();\n }\n function scanJsxText() {\n return currentToken = scanner.scanJsxToken();\n }\n function scanJsxAttributeValue() {\n return currentToken = scanner.scanJsxAttributeValue();\n }\n function speculationHelper(callback, speculationKind) {\n // Keep track of the state we'll need to rollback to if lookahead fails (or if the\n // caller asked us to always reset our state).\n var saveToken = currentToken;\n var saveParseDiagnosticsLength = parseDiagnostics.length;\n var saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode;\n // Note: it is not actually necessary to save/restore the context flags here. That's\n // because the saving/restoring of these flags happens naturally through the recursive\n // descent nature of our parser. However, we still store this here just so we can\n // assert that invariant holds.\n var saveContextFlags = contextFlags;\n // If we're only looking ahead, then tell the scanner to only lookahead as well.\n // Otherwise, if we're actually speculatively parsing, then tell the scanner to do the\n // same.\n var result = speculationKind !== 0 /* TryParse */\n ? scanner.lookAhead(callback)\n : scanner.tryScan(callback);\n ts.Debug.assert(saveContextFlags === contextFlags);\n // If our callback returned something 'falsy' or we're just looking ahead,\n // then unconditionally restore us to where we were.\n if (!result || speculationKind !== 0 /* TryParse */) {\n currentToken = saveToken;\n if (speculationKind !== 2 /* Reparse */) {\n parseDiagnostics.length = saveParseDiagnosticsLength;\n }\n parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode;\n }\n return result;\n }\n /** Invokes the provided callback then unconditionally restores the parser to the state it\n * was in immediately prior to invoking the callback. The result of invoking the callback\n * is returned from this function.\n */\n function lookAhead(callback) {\n return speculationHelper(callback, 1 /* Lookahead */);\n }\n /** Invokes the provided callback. If the callback returns something falsy, then it restores\n * the parser to the state it was in immediately prior to invoking the callback. If the\n * callback returns something truthy, then the parser state is not rolled back. The result\n * of invoking the callback is returned from this function.\n */\n function tryParse(callback) {\n return speculationHelper(callback, 0 /* TryParse */);\n }\n function isBindingIdentifier() {\n if (token() === 79 /* Identifier */) {\n return true;\n }\n // `let await`/`let yield` in [Yield] or [Await] are allowed here and disallowed in the binder.\n return token() > 116 /* LastReservedWord */;\n }\n // Ignore strict mode flag because we will report an error in type checker instead.\n function isIdentifier() {\n if (token() === 79 /* Identifier */) {\n return true;\n }\n // If we have a 'yield' keyword, and we're in the [yield] context, then 'yield' is\n // considered a keyword and is not an identifier.\n if (token() === 125 /* YieldKeyword */ && inYieldContext()) {\n return false;\n }\n // If we have a 'await' keyword, and we're in the [Await] context, then 'await' is\n // considered a keyword and is not an identifier.\n if (token() === 131 /* AwaitKeyword */ && inAwaitContext()) {\n return false;\n }\n return token() > 116 /* LastReservedWord */;\n }\n function parseExpected(kind, diagnosticMessage, shouldAdvance) {\n if (shouldAdvance === void 0) { shouldAdvance = true; }\n if (token() === kind) {\n if (shouldAdvance) {\n nextToken();\n }\n return true;\n }\n // Report specific message if provided with one. Otherwise, report generic fallback message.\n if (diagnosticMessage) {\n parseErrorAtCurrentToken(diagnosticMessage);\n }\n else {\n parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(kind));\n }\n return false;\n }\n var viableKeywordSuggestions = Object.keys(ts.textToKeywordObj).filter(function (keyword) { return keyword.length > 2; });\n /**\n * Provides a better error message than the generic \"';' expected\" if possible for\n * known common variants of a missing semicolon, such as from a mispelled names.\n *\n * @param node Node preceding the expected semicolon location.\n */\n function parseErrorForMissingSemicolonAfter(node) {\n var _a;\n // Tagged template literals are sometimes used in places where only simple strings are allowed, i.e.:\n // module `M1` {\n // ^^^^^^^^^^^ This block is parsed as a template literal like module`M1`.\n if (ts.isTaggedTemplateExpression(node)) {\n parseErrorAt(ts.skipTrivia(sourceText, node.template.pos), node.template.end, ts.Diagnostics.Module_declaration_names_may_only_use_or_quoted_strings);\n return;\n }\n // Otherwise, if this isn't a well-known keyword-like identifier, give the generic fallback message.\n var expressionText = ts.isIdentifier(node) ? ts.idText(node) : undefined;\n if (!expressionText || !ts.isIdentifierText(expressionText, languageVersion)) {\n parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));\n return;\n }\n var pos = ts.skipTrivia(sourceText, node.pos);\n // Some known keywords are likely signs of syntax being used improperly.\n switch (expressionText) {\n case \"const\":\n case \"let\":\n case \"var\":\n parseErrorAt(pos, node.end, ts.Diagnostics.Variable_declaration_not_allowed_at_this_location);\n return;\n case \"declare\":\n // If a declared node failed to parse, it would have emitted a diagnostic already.\n return;\n case \"interface\":\n parseErrorForInvalidName(ts.Diagnostics.Interface_name_cannot_be_0, ts.Diagnostics.Interface_must_be_given_a_name, 18 /* OpenBraceToken */);\n return;\n case \"is\":\n parseErrorAt(pos, scanner.getTextPos(), ts.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);\n return;\n case \"module\":\n case \"namespace\":\n parseErrorForInvalidName(ts.Diagnostics.Namespace_name_cannot_be_0, ts.Diagnostics.Namespace_must_be_given_a_name, 18 /* OpenBraceToken */);\n return;\n case \"type\":\n parseErrorForInvalidName(ts.Diagnostics.Type_alias_name_cannot_be_0, ts.Diagnostics.Type_alias_must_be_given_a_name, 63 /* EqualsToken */);\n return;\n }\n // The user alternatively might have misspelled or forgotten to add a space after a common keyword.\n var suggestion = (_a = ts.getSpellingSuggestion(expressionText, viableKeywordSuggestions, function (n) { return n; })) !== null && _a !== void 0 ? _a : getSpaceSuggestion(expressionText);\n if (suggestion) {\n parseErrorAt(pos, node.end, ts.Diagnostics.Unknown_keyword_or_identifier_Did_you_mean_0, suggestion);\n return;\n }\n // Unknown tokens are handled with their own errors in the scanner\n if (token() === 0 /* Unknown */) {\n return;\n }\n // Otherwise, we know this some kind of unknown word, not just a missing expected semicolon.\n parseErrorAt(pos, node.end, ts.Diagnostics.Unexpected_keyword_or_identifier);\n }\n /**\n * Reports a diagnostic error for the current token being an invalid name.\n *\n * @param blankDiagnostic Diagnostic to report for the case of the name being blank (matched tokenIfBlankName).\n * @param nameDiagnostic Diagnostic to report for all other cases.\n * @param tokenIfBlankName Current token if the name was invalid for being blank (not provided / skipped).\n */\n function parseErrorForInvalidName(nameDiagnostic, blankDiagnostic, tokenIfBlankName) {\n if (token() === tokenIfBlankName) {\n parseErrorAtCurrentToken(blankDiagnostic);\n }\n else {\n parseErrorAtCurrentToken(nameDiagnostic, ts.tokenToString(token()));\n }\n }\n function getSpaceSuggestion(expressionText) {\n for (var _i = 0, viableKeywordSuggestions_1 = viableKeywordSuggestions; _i < viableKeywordSuggestions_1.length; _i++) {\n var keyword = viableKeywordSuggestions_1[_i];\n if (expressionText.length > keyword.length + 2 && ts.startsWith(expressionText, keyword)) {\n return keyword + \" \" + expressionText.slice(keyword.length);\n }\n }\n return undefined;\n }\n function parseSemicolonAfterPropertyName(name, type, initializer) {\n if (token() === 59 /* AtToken */ && !scanner.hasPrecedingLineBreak()) {\n parseErrorAtCurrentToken(ts.Diagnostics.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);\n return;\n }\n if (token() === 20 /* OpenParenToken */) {\n parseErrorAtCurrentToken(ts.Diagnostics.Cannot_start_a_function_call_in_a_type_annotation);\n nextToken();\n return;\n }\n if (type && !canParseSemicolon()) {\n if (initializer) {\n parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));\n }\n else {\n parseErrorAtCurrentToken(ts.Diagnostics.Expected_for_property_initializer);\n }\n return;\n }\n if (tryParseSemicolon()) {\n return;\n }\n // If an initializer was parsed but there is still an error in finding the next semicolon,\n // we generally know there was an error already reported in the initializer...\n // class Example { a = new Map([), ) }\n // ~\n if (initializer) {\n // ...unless we've found the start of a block after a property declaration, in which\n // case we can know that regardless of the initializer we should complain on the block.\n // class Example { a = 0 {} }\n // ~\n if (token() === 18 /* OpenBraceToken */) {\n parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(26 /* SemicolonToken */));\n }\n return;\n }\n parseErrorForMissingSemicolonAfter(name);\n }\n function parseExpectedJSDoc(kind) {\n if (token() === kind) {\n nextTokenJSDoc();\n return true;\n }\n parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(kind));\n return false;\n }\n function parseOptional(t) {\n if (token() === t) {\n nextToken();\n return true;\n }\n return false;\n }\n function parseOptionalToken(t) {\n if (token() === t) {\n return parseTokenNode();\n }\n return undefined;\n }\n function parseOptionalTokenJSDoc(t) {\n if (token() === t) {\n return parseTokenNodeJSDoc();\n }\n return undefined;\n }\n function parseExpectedToken(t, diagnosticMessage, arg0) {\n return parseOptionalToken(t) ||\n createMissingNode(t, /*reportAtCurrentPosition*/ false, diagnosticMessage || ts.Diagnostics._0_expected, arg0 || ts.tokenToString(t));\n }\n function parseExpectedTokenJSDoc(t) {\n return parseOptionalTokenJSDoc(t) ||\n createMissingNode(t, /*reportAtCurrentPosition*/ false, ts.Diagnostics._0_expected, ts.tokenToString(t));\n }\n function parseTokenNode() {\n var pos = getNodePos();\n var kind = token();\n nextToken();\n return finishNode(factory.createToken(kind), pos);\n }\n function parseTokenNodeJSDoc() {\n var pos = getNodePos();\n var kind = token();\n nextTokenJSDoc();\n return finishNode(factory.createToken(kind), pos);\n }\n function canParseSemicolon() {\n // If there's a real semicolon, then we can always parse it out.\n if (token() === 26 /* SemicolonToken */) {\n return true;\n }\n // We can parse out an optional semicolon in ASI cases in the following cases.\n return token() === 19 /* CloseBraceToken */ || token() === 1 /* EndOfFileToken */ || scanner.hasPrecedingLineBreak();\n }\n function tryParseSemicolon() {\n if (!canParseSemicolon()) {\n return false;\n }\n if (token() === 26 /* SemicolonToken */) {\n // consume the semicolon if it was explicitly provided.\n nextToken();\n }\n return true;\n }\n function parseSemicolon() {\n return tryParseSemicolon() || parseExpected(26 /* SemicolonToken */);\n }\n function createNodeArray(elements, pos, end, hasTrailingComma) {\n var array = factory.createNodeArray(elements, hasTrailingComma);\n ts.setTextRangePosEnd(array, pos, end !== null && end !== void 0 ? end : scanner.getStartPos());\n return array;\n }\n function finishNode(node, pos, end) {\n ts.setTextRangePosEnd(node, pos, end !== null && end !== void 0 ? end : scanner.getStartPos());\n if (contextFlags) {\n node.flags |= contextFlags;\n }\n // Keep track on the node if we encountered an error while parsing it. If we did, then\n // we cannot reuse the node incrementally. Once we've marked this node, clear out the\n // flag so that we don't mark any subsequent nodes.\n if (parseErrorBeforeNextFinishedNode) {\n parseErrorBeforeNextFinishedNode = false;\n node.flags |= 65536 /* ThisNodeHasError */;\n }\n return node;\n }\n function createMissingNode(kind, reportAtCurrentPosition, diagnosticMessage, arg0) {\n if (reportAtCurrentPosition) {\n parseErrorAtPosition(scanner.getStartPos(), 0, diagnosticMessage, arg0);\n }\n else if (diagnosticMessage) {\n parseErrorAtCurrentToken(diagnosticMessage, arg0);\n }\n var pos = getNodePos();\n var result = kind === 79 /* Identifier */ ? factory.createIdentifier(\"\", /*typeArguments*/ undefined, /*originalKeywordKind*/ undefined) :\n ts.isTemplateLiteralKind(kind) ? factory.createTemplateLiteralLikeNode(kind, \"\", \"\", /*templateFlags*/ undefined) :\n kind === 8 /* NumericLiteral */ ? factory.createNumericLiteral(\"\", /*numericLiteralFlags*/ undefined) :\n kind === 10 /* StringLiteral */ ? factory.createStringLiteral(\"\", /*isSingleQuote*/ undefined) :\n kind === 274 /* MissingDeclaration */ ? factory.createMissingDeclaration() :\n factory.createToken(kind);\n return finishNode(result, pos);\n }\n function internIdentifier(text) {\n var identifier = identifiers.get(text);\n if (identifier === undefined) {\n identifiers.set(text, identifier = text);\n }\n return identifier;\n }\n // An identifier that starts with two underscores has an extra underscore character prepended to it to avoid issues\n // with magic property names like '__proto__'. The 'identifiers' object is used to share a single string instance for\n // each identifier in order to reduce memory consumption.\n function createIdentifier(isIdentifier, diagnosticMessage, privateIdentifierDiagnosticMessage) {\n if (isIdentifier) {\n identifierCount++;\n var pos = getNodePos();\n // Store original token kind if it is not just an Identifier so we can report appropriate error later in type checker\n var originalKeywordKind = token();\n var text = internIdentifier(scanner.getTokenValue());\n nextTokenWithoutCheck();\n return finishNode(factory.createIdentifier(text, /*typeArguments*/ undefined, originalKeywordKind), pos);\n }\n if (token() === 80 /* PrivateIdentifier */) {\n parseErrorAtCurrentToken(privateIdentifierDiagnosticMessage || ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n return createIdentifier(/*isIdentifier*/ true);\n }\n if (token() === 0 /* Unknown */ && scanner.tryScan(function () { return scanner.reScanInvalidIdentifier() === 79 /* Identifier */; })) {\n // Scanner has already recorded an 'Invalid character' error, so no need to add another from the parser.\n return createIdentifier(/*isIdentifier*/ true);\n }\n identifierCount++;\n // Only for end of file because the error gets reported incorrectly on embedded script tags.\n var reportAtCurrentPosition = token() === 1 /* EndOfFileToken */;\n var isReservedWord = scanner.isReservedWord();\n var msgArg = scanner.getTokenText();\n var defaultMessage = isReservedWord ?\n ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here :\n ts.Diagnostics.Identifier_expected;\n return createMissingNode(79 /* Identifier */, reportAtCurrentPosition, diagnosticMessage || defaultMessage, msgArg);\n }\n function parseBindingIdentifier(privateIdentifierDiagnosticMessage) {\n return createIdentifier(isBindingIdentifier(), /*diagnosticMessage*/ undefined, privateIdentifierDiagnosticMessage);\n }\n function parseIdentifier(diagnosticMessage, privateIdentifierDiagnosticMessage) {\n return createIdentifier(isIdentifier(), diagnosticMessage, privateIdentifierDiagnosticMessage);\n }\n function parseIdentifierName(diagnosticMessage) {\n return createIdentifier(ts.tokenIsIdentifierOrKeyword(token()), diagnosticMessage);\n }\n function isLiteralPropertyName() {\n return ts.tokenIsIdentifierOrKeyword(token()) ||\n token() === 10 /* StringLiteral */ ||\n token() === 8 /* NumericLiteral */;\n }\n function parsePropertyNameWorker(allowComputedPropertyNames) {\n if (token() === 10 /* StringLiteral */ || token() === 8 /* NumericLiteral */) {\n var node = parseLiteralNode();\n node.text = internIdentifier(node.text);\n return node;\n }\n if (allowComputedPropertyNames && token() === 22 /* OpenBracketToken */) {\n return parseComputedPropertyName();\n }\n if (token() === 80 /* PrivateIdentifier */) {\n return parsePrivateIdentifier();\n }\n return parseIdentifierName();\n }\n function parsePropertyName() {\n return parsePropertyNameWorker(/*allowComputedPropertyNames*/ true);\n }\n function parseComputedPropertyName() {\n // PropertyName [Yield]:\n // LiteralPropertyName\n // ComputedPropertyName[?Yield]\n var pos = getNodePos();\n parseExpected(22 /* OpenBracketToken */);\n // We parse any expression (including a comma expression). But the grammar\n // says that only an assignment expression is allowed, so the grammar checker\n // will error if it sees a comma expression.\n var expression = allowInAnd(parseExpression);\n parseExpected(23 /* CloseBracketToken */);\n return finishNode(factory.createComputedPropertyName(expression), pos);\n }\n function internPrivateIdentifier(text) {\n var privateIdentifier = privateIdentifiers.get(text);\n if (privateIdentifier === undefined) {\n privateIdentifiers.set(text, privateIdentifier = text);\n }\n return privateIdentifier;\n }\n function parsePrivateIdentifier() {\n var pos = getNodePos();\n var node = factory.createPrivateIdentifier(internPrivateIdentifier(scanner.getTokenText()));\n nextToken();\n return finishNode(node, pos);\n }\n function parseContextualModifier(t) {\n return token() === t && tryParse(nextTokenCanFollowModifier);\n }\n function nextTokenIsOnSameLineAndCanFollowModifier() {\n nextToken();\n if (scanner.hasPrecedingLineBreak()) {\n return false;\n }\n return canFollowModifier();\n }\n function nextTokenCanFollowModifier() {\n switch (token()) {\n case 85 /* ConstKeyword */:\n // 'const' is only a modifier if followed by 'enum'.\n return nextToken() === 92 /* EnumKeyword */;\n case 93 /* ExportKeyword */:\n nextToken();\n if (token() === 88 /* DefaultKeyword */) {\n return lookAhead(nextTokenCanFollowDefaultKeyword);\n }\n if (token() === 150 /* TypeKeyword */) {\n return lookAhead(nextTokenCanFollowExportModifier);\n }\n return canFollowExportModifier();\n case 88 /* DefaultKeyword */:\n return nextTokenCanFollowDefaultKeyword();\n case 124 /* StaticKeyword */:\n return nextTokenIsOnSameLineAndCanFollowModifier();\n case 135 /* GetKeyword */:\n case 147 /* SetKeyword */:\n nextToken();\n return canFollowModifier();\n default:\n return nextTokenIsOnSameLineAndCanFollowModifier();\n }\n }\n function canFollowExportModifier() {\n return token() !== 41 /* AsteriskToken */\n && token() !== 127 /* AsKeyword */\n && token() !== 18 /* OpenBraceToken */\n && canFollowModifier();\n }\n function nextTokenCanFollowExportModifier() {\n nextToken();\n return canFollowExportModifier();\n }\n function parseAnyContextualModifier() {\n return ts.isModifierKind(token()) && tryParse(nextTokenCanFollowModifier);\n }\n function canFollowModifier() {\n return token() === 22 /* OpenBracketToken */\n || token() === 18 /* OpenBraceToken */\n || token() === 41 /* AsteriskToken */\n || token() === 25 /* DotDotDotToken */\n || isLiteralPropertyName();\n }\n function nextTokenCanFollowDefaultKeyword() {\n nextToken();\n return token() === 84 /* ClassKeyword */ || token() === 98 /* FunctionKeyword */ ||\n token() === 118 /* InterfaceKeyword */ ||\n (token() === 126 /* AbstractKeyword */ && lookAhead(nextTokenIsClassKeywordOnSameLine)) ||\n (token() === 130 /* AsyncKeyword */ && lookAhead(nextTokenIsFunctionKeywordOnSameLine));\n }\n // True if positioned at the start of a list element\n function isListElement(parsingContext, inErrorRecovery) {\n var node = currentNode(parsingContext);\n if (node) {\n return true;\n }\n switch (parsingContext) {\n case 0 /* SourceElements */:\n case 1 /* BlockStatements */:\n case 3 /* SwitchClauseStatements */:\n // If we're in error recovery, then we don't want to treat ';' as an empty statement.\n // The problem is that ';' can show up in far too many contexts, and if we see one\n // and assume it's a statement, then we may bail out inappropriately from whatever\n // we're parsing. For example, if we have a semicolon in the middle of a class, then\n // we really don't want to assume the class is over and we're on a statement in the\n // outer module. We just want to consume and move on.\n return !(token() === 26 /* SemicolonToken */ && inErrorRecovery) && isStartOfStatement();\n case 2 /* SwitchClauses */:\n return token() === 82 /* CaseKeyword */ || token() === 88 /* DefaultKeyword */;\n case 4 /* TypeMembers */:\n return lookAhead(isTypeMemberStart);\n case 5 /* ClassMembers */:\n // We allow semicolons as class elements (as specified by ES6) as long as we're\n // not in error recovery. If we're in error recovery, we don't want an errant\n // semicolon to be treated as a class member (since they're almost always used\n // for statements.\n return lookAhead(isClassMemberStart) || (token() === 26 /* SemicolonToken */ && !inErrorRecovery);\n case 6 /* EnumMembers */:\n // Include open bracket computed properties. This technically also lets in indexers,\n // which would be a candidate for improved error reporting.\n return token() === 22 /* OpenBracketToken */ || isLiteralPropertyName();\n case 12 /* ObjectLiteralMembers */:\n switch (token()) {\n case 22 /* OpenBracketToken */:\n case 41 /* AsteriskToken */:\n case 25 /* DotDotDotToken */:\n case 24 /* DotToken */: // Not an object literal member, but don't want to close the object (see `tests/cases/fourslash/completionsDotInObjectLiteral.ts`)\n return true;\n default:\n return isLiteralPropertyName();\n }\n case 18 /* RestProperties */:\n return isLiteralPropertyName();\n case 9 /* ObjectBindingElements */:\n return token() === 22 /* OpenBracketToken */ || token() === 25 /* DotDotDotToken */ || isLiteralPropertyName();\n case 7 /* HeritageClauseElement */:\n // If we see `{ ... }` then only consume it as an expression if it is followed by `,` or `{`\n // That way we won't consume the body of a class in its heritage clause.\n if (token() === 18 /* OpenBraceToken */) {\n return lookAhead(isValidHeritageClauseObjectLiteral);\n }\n if (!inErrorRecovery) {\n return isStartOfLeftHandSideExpression() && !isHeritageClauseExtendsOrImplementsKeyword();\n }\n else {\n // If we're in error recovery we tighten up what we're willing to match.\n // That way we don't treat something like \"this\" as a valid heritage clause\n // element during recovery.\n return isIdentifier() && !isHeritageClauseExtendsOrImplementsKeyword();\n }\n case 8 /* VariableDeclarations */:\n return isBindingIdentifierOrPrivateIdentifierOrPattern();\n case 10 /* ArrayBindingElements */:\n return token() === 27 /* CommaToken */ || token() === 25 /* DotDotDotToken */ || isBindingIdentifierOrPrivateIdentifierOrPattern();\n case 19 /* TypeParameters */:\n return isIdentifier();\n case 15 /* ArrayLiteralMembers */:\n switch (token()) {\n case 27 /* CommaToken */:\n case 24 /* DotToken */: // Not an array literal member, but don't want to close the array (see `tests/cases/fourslash/completionsDotInArrayLiteralInObjectLiteral.ts`)\n return true;\n }\n // falls through\n case 11 /* ArgumentExpressions */:\n return token() === 25 /* DotDotDotToken */ || isStartOfExpression();\n case 16 /* Parameters */:\n return isStartOfParameter(/*isJSDocParameter*/ false);\n case 17 /* JSDocParameters */:\n return isStartOfParameter(/*isJSDocParameter*/ true);\n case 20 /* TypeArguments */:\n case 21 /* TupleElementTypes */:\n return token() === 27 /* CommaToken */ || isStartOfType();\n case 22 /* HeritageClauses */:\n return isHeritageClause();\n case 23 /* ImportOrExportSpecifiers */:\n return ts.tokenIsIdentifierOrKeyword(token());\n case 13 /* JsxAttributes */:\n return ts.tokenIsIdentifierOrKeyword(token()) || token() === 18 /* OpenBraceToken */;\n case 14 /* JsxChildren */:\n return true;\n }\n return ts.Debug.fail(\"Non-exhaustive case in 'isListElement'.\");\n }\n function isValidHeritageClauseObjectLiteral() {\n ts.Debug.assert(token() === 18 /* OpenBraceToken */);\n if (nextToken() === 19 /* CloseBraceToken */) {\n // if we see \"extends {}\" then only treat the {} as what we're extending (and not\n // the class body) if we have:\n //\n // extends {} {\n // extends {},\n // extends {} extends\n // extends {} implements\n var next = nextToken();\n return next === 27 /* CommaToken */ || next === 18 /* OpenBraceToken */ || next === 94 /* ExtendsKeyword */ || next === 117 /* ImplementsKeyword */;\n }\n return true;\n }\n function nextTokenIsIdentifier() {\n nextToken();\n return isIdentifier();\n }\n function nextTokenIsIdentifierOrKeyword() {\n nextToken();\n return ts.tokenIsIdentifierOrKeyword(token());\n }\n function nextTokenIsIdentifierOrKeywordOrGreaterThan() {\n nextToken();\n return ts.tokenIsIdentifierOrKeywordOrGreaterThan(token());\n }\n function isHeritageClauseExtendsOrImplementsKeyword() {\n if (token() === 117 /* ImplementsKeyword */ ||\n token() === 94 /* ExtendsKeyword */) {\n return lookAhead(nextTokenIsStartOfExpression);\n }\n return false;\n }\n function nextTokenIsStartOfExpression() {\n nextToken();\n return isStartOfExpression();\n }\n function nextTokenIsStartOfType() {\n nextToken();\n return isStartOfType();\n }\n // True if positioned at a list terminator\n function isListTerminator(kind) {\n if (token() === 1 /* EndOfFileToken */) {\n // Being at the end of the file ends all lists.\n return true;\n }\n switch (kind) {\n case 1 /* BlockStatements */:\n case 2 /* SwitchClauses */:\n case 4 /* TypeMembers */:\n case 5 /* ClassMembers */:\n case 6 /* EnumMembers */:\n case 12 /* ObjectLiteralMembers */:\n case 9 /* ObjectBindingElements */:\n case 23 /* ImportOrExportSpecifiers */:\n return token() === 19 /* CloseBraceToken */;\n case 3 /* SwitchClauseStatements */:\n return token() === 19 /* CloseBraceToken */ || token() === 82 /* CaseKeyword */ || token() === 88 /* DefaultKeyword */;\n case 7 /* HeritageClauseElement */:\n return token() === 18 /* OpenBraceToken */ || token() === 94 /* ExtendsKeyword */ || token() === 117 /* ImplementsKeyword */;\n case 8 /* VariableDeclarations */:\n return isVariableDeclaratorListTerminator();\n case 19 /* TypeParameters */:\n // Tokens other than '>' are here for better error recovery\n return token() === 31 /* GreaterThanToken */ || token() === 20 /* OpenParenToken */ || token() === 18 /* OpenBraceToken */ || token() === 94 /* ExtendsKeyword */ || token() === 117 /* ImplementsKeyword */;\n case 11 /* ArgumentExpressions */:\n // Tokens other than ')' are here for better error recovery\n return token() === 21 /* CloseParenToken */ || token() === 26 /* SemicolonToken */;\n case 15 /* ArrayLiteralMembers */:\n case 21 /* TupleElementTypes */:\n case 10 /* ArrayBindingElements */:\n return token() === 23 /* CloseBracketToken */;\n case 17 /* JSDocParameters */:\n case 16 /* Parameters */:\n case 18 /* RestProperties */:\n // Tokens other than ')' and ']' (the latter for index signatures) are here for better error recovery\n return token() === 21 /* CloseParenToken */ || token() === 23 /* CloseBracketToken */ /*|| token === SyntaxKind.OpenBraceToken*/;\n case 20 /* TypeArguments */:\n // All other tokens should cause the type-argument to terminate except comma token\n return token() !== 27 /* CommaToken */;\n case 22 /* HeritageClauses */:\n return token() === 18 /* OpenBraceToken */ || token() === 19 /* CloseBraceToken */;\n case 13 /* JsxAttributes */:\n return token() === 31 /* GreaterThanToken */ || token() === 43 /* SlashToken */;\n case 14 /* JsxChildren */:\n return token() === 29 /* LessThanToken */ && lookAhead(nextTokenIsSlash);\n default:\n return false;\n }\n }\n function isVariableDeclaratorListTerminator() {\n // If we can consume a semicolon (either explicitly, or with ASI), then consider us done\n // with parsing the list of variable declarators.\n if (canParseSemicolon()) {\n return true;\n }\n // in the case where we're parsing the variable declarator of a 'for-in' statement, we\n // are done if we see an 'in' keyword in front of us. Same with for-of\n if (isInOrOfKeyword(token())) {\n return true;\n }\n // ERROR RECOVERY TWEAK:\n // For better error recovery, if we see an '=>' then we just stop immediately. We've got an\n // arrow function here and it's going to be very unlikely that we'll resynchronize and get\n // another variable declaration.\n if (token() === 38 /* EqualsGreaterThanToken */) {\n return true;\n }\n // Keep trying to parse out variable declarators.\n return false;\n }\n // True if positioned at element or terminator of the current list or any enclosing list\n function isInSomeParsingContext() {\n for (var kind = 0; kind < 24 /* Count */; kind++) {\n if (parsingContext & (1 << kind)) {\n if (isListElement(kind, /*inErrorRecovery*/ true) || isListTerminator(kind)) {\n return true;\n }\n }\n }\n return false;\n }\n // Parses a list of elements\n function parseList(kind, parseElement) {\n var saveParsingContext = parsingContext;\n parsingContext |= 1 << kind;\n var list = [];\n var listPos = getNodePos();\n while (!isListTerminator(kind)) {\n if (isListElement(kind, /*inErrorRecovery*/ false)) {\n list.push(parseListElement(kind, parseElement));\n continue;\n }\n if (abortParsingListOrMoveToNextToken(kind)) {\n break;\n }\n }\n parsingContext = saveParsingContext;\n return createNodeArray(list, listPos);\n }\n function parseListElement(parsingContext, parseElement) {\n var node = currentNode(parsingContext);\n if (node) {\n return consumeNode(node);\n }\n return parseElement();\n }\n function currentNode(parsingContext) {\n // If we don't have a cursor or the parsing context isn't reusable, there's nothing to reuse.\n //\n // If there is an outstanding parse error that we've encountered, but not attached to\n // some node, then we cannot get a node from the old source tree. This is because we\n // want to mark the next node we encounter as being unusable.\n //\n // Note: This may be too conservative. Perhaps we could reuse the node and set the bit\n // on it (or its leftmost child) as having the error. For now though, being conservative\n // is nice and likely won't ever affect perf.\n if (!syntaxCursor || !isReusableParsingContext(parsingContext) || parseErrorBeforeNextFinishedNode) {\n return undefined;\n }\n var node = syntaxCursor.currentNode(scanner.getStartPos());\n // Can't reuse a missing node.\n // Can't reuse a node that intersected the change range.\n // Can't reuse a node that contains a parse error. This is necessary so that we\n // produce the same set of errors again.\n if (ts.nodeIsMissing(node) || node.intersectsChange || ts.containsParseError(node)) {\n return undefined;\n }\n // We can only reuse a node if it was parsed under the same strict mode that we're\n // currently in. i.e. if we originally parsed a node in non-strict mode, but then\n // the user added 'using strict' at the top of the file, then we can't use that node\n // again as the presence of strict mode may cause us to parse the tokens in the file\n // differently.\n //\n // Note: we *can* reuse tokens when the strict mode changes. That's because tokens\n // are unaffected by strict mode. It's just the parser will decide what to do with it\n // differently depending on what mode it is in.\n //\n // This also applies to all our other context flags as well.\n var nodeContextFlags = node.flags & 25358336 /* ContextFlags */;\n if (nodeContextFlags !== contextFlags) {\n return undefined;\n }\n // Ok, we have a node that looks like it could be reused. Now verify that it is valid\n // in the current list parsing context that we're currently at.\n if (!canReuseNode(node, parsingContext)) {\n return undefined;\n }\n if (node.jsDocCache) {\n // jsDocCache may include tags from parent nodes, which might have been modified.\n node.jsDocCache = undefined;\n }\n return node;\n }\n function consumeNode(node) {\n // Move the scanner so it is after the node we just consumed.\n scanner.setTextPos(node.end);\n nextToken();\n return node;\n }\n function isReusableParsingContext(parsingContext) {\n switch (parsingContext) {\n case 5 /* ClassMembers */:\n case 2 /* SwitchClauses */:\n case 0 /* SourceElements */:\n case 1 /* BlockStatements */:\n case 3 /* SwitchClauseStatements */:\n case 6 /* EnumMembers */:\n case 4 /* TypeMembers */:\n case 8 /* VariableDeclarations */:\n case 17 /* JSDocParameters */:\n case 16 /* Parameters */:\n return true;\n }\n return false;\n }\n function canReuseNode(node, parsingContext) {\n switch (parsingContext) {\n case 5 /* ClassMembers */:\n return isReusableClassMember(node);\n case 2 /* SwitchClauses */:\n return isReusableSwitchClause(node);\n case 0 /* SourceElements */:\n case 1 /* BlockStatements */:\n case 3 /* SwitchClauseStatements */:\n return isReusableStatement(node);\n case 6 /* EnumMembers */:\n return isReusableEnumMember(node);\n case 4 /* TypeMembers */:\n return isReusableTypeMember(node);\n case 8 /* VariableDeclarations */:\n return isReusableVariableDeclaration(node);\n case 17 /* JSDocParameters */:\n case 16 /* Parameters */:\n return isReusableParameter(node);\n // Any other lists we do not care about reusing nodes in. But feel free to add if\n // you can do so safely. Danger areas involve nodes that may involve speculative\n // parsing. If speculative parsing is involved with the node, then the range the\n // parser reached while looking ahead might be in the edited range (see the example\n // in canReuseVariableDeclaratorNode for a good case of this).\n // case ParsingContext.HeritageClauses:\n // This would probably be safe to reuse. There is no speculative parsing with\n // heritage clauses.\n // case ParsingContext.TypeParameters:\n // This would probably be safe to reuse. There is no speculative parsing with\n // type parameters. Note that that's because type *parameters* only occur in\n // unambiguous *type* contexts. While type *arguments* occur in very ambiguous\n // *expression* contexts.\n // case ParsingContext.TupleElementTypes:\n // This would probably be safe to reuse. There is no speculative parsing with\n // tuple types.\n // Technically, type argument list types are probably safe to reuse. While\n // speculative parsing is involved with them (since type argument lists are only\n // produced from speculative parsing a < as a type argument list), we only have\n // the types because speculative parsing succeeded. Thus, the lookahead never\n // went past the end of the list and rewound.\n // case ParsingContext.TypeArguments:\n // Note: these are almost certainly not safe to ever reuse. Expressions commonly\n // need a large amount of lookahead, and we should not reuse them as they may\n // have actually intersected the edit.\n // case ParsingContext.ArgumentExpressions:\n // This is not safe to reuse for the same reason as the 'AssignmentExpression'\n // cases. i.e. a property assignment may end with an expression, and thus might\n // have lookahead far beyond it's old node.\n // case ParsingContext.ObjectLiteralMembers:\n // This is probably not safe to reuse. There can be speculative parsing with\n // type names in a heritage clause. There can be generic names in the type\n // name list, and there can be left hand side expressions (which can have type\n // arguments.)\n // case ParsingContext.HeritageClauseElement:\n // Perhaps safe to reuse, but it's unlikely we'd see more than a dozen attributes\n // on any given element. Same for children.\n // case ParsingContext.JsxAttributes:\n // case ParsingContext.JsxChildren:\n }\n return false;\n }\n function isReusableClassMember(node) {\n if (node) {\n switch (node.kind) {\n case 169 /* Constructor */:\n case 174 /* IndexSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 165 /* PropertyDeclaration */:\n case 232 /* SemicolonClassElement */:\n return true;\n case 167 /* MethodDeclaration */:\n // Method declarations are not necessarily reusable. An object-literal\n // may have a method calls \"constructor(...)\" and we must reparse that\n // into an actual .ConstructorDeclaration.\n var methodDeclaration = node;\n var nameIsConstructor = methodDeclaration.name.kind === 79 /* Identifier */ &&\n methodDeclaration.name.originalKeywordKind === 133 /* ConstructorKeyword */;\n return !nameIsConstructor;\n }\n }\n return false;\n }\n function isReusableSwitchClause(node) {\n if (node) {\n switch (node.kind) {\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n return true;\n }\n }\n return false;\n }\n function isReusableStatement(node) {\n if (node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 235 /* VariableStatement */:\n case 233 /* Block */:\n case 237 /* IfStatement */:\n case 236 /* ExpressionStatement */:\n case 249 /* ThrowStatement */:\n case 245 /* ReturnStatement */:\n case 247 /* SwitchStatement */:\n case 244 /* BreakStatement */:\n case 243 /* ContinueStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 240 /* ForStatement */:\n case 239 /* WhileStatement */:\n case 246 /* WithStatement */:\n case 234 /* EmptyStatement */:\n case 250 /* TryStatement */:\n case 248 /* LabeledStatement */:\n case 238 /* DoStatement */:\n case 251 /* DebuggerStatement */:\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n case 270 /* ExportDeclaration */:\n case 269 /* ExportAssignment */:\n case 259 /* ModuleDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n return true;\n }\n }\n return false;\n }\n function isReusableEnumMember(node) {\n return node.kind === 294 /* EnumMember */;\n }\n function isReusableTypeMember(node) {\n if (node) {\n switch (node.kind) {\n case 173 /* ConstructSignature */:\n case 166 /* MethodSignature */:\n case 174 /* IndexSignature */:\n case 164 /* PropertySignature */:\n case 172 /* CallSignature */:\n return true;\n }\n }\n return false;\n }\n function isReusableVariableDeclaration(node) {\n if (node.kind !== 252 /* VariableDeclaration */) {\n return false;\n }\n // Very subtle incremental parsing bug. Consider the following code:\n //\n // let v = new List < A, B\n //\n // This is actually legal code. It's a list of variable declarators \"v = new List()\n //\n // then we have a problem. \"v = new List= 0);\n }\n function getExpectedCommaDiagnostic(kind) {\n return kind === 6 /* EnumMembers */ ? ts.Diagnostics.An_enum_member_name_must_be_followed_by_a_or : undefined;\n }\n function createMissingList() {\n var list = createNodeArray([], getNodePos());\n list.isMissingList = true;\n return list;\n }\n function isMissingList(arr) {\n return !!arr.isMissingList;\n }\n function parseBracketedList(kind, parseElement, open, close) {\n if (parseExpected(open)) {\n var result = parseDelimitedList(kind, parseElement);\n parseExpected(close);\n return result;\n }\n return createMissingList();\n }\n function parseEntityName(allowReservedWords, diagnosticMessage) {\n var pos = getNodePos();\n var entity = allowReservedWords ? parseIdentifierName(diagnosticMessage) : parseIdentifier(diagnosticMessage);\n var dotPos = getNodePos();\n while (parseOptional(24 /* DotToken */)) {\n if (token() === 29 /* LessThanToken */) {\n // the entity is part of a JSDoc-style generic, so record the trailing dot for later error reporting\n entity.jsdocDotPos = dotPos;\n break;\n }\n dotPos = getNodePos();\n entity = finishNode(factory.createQualifiedName(entity, parseRightSideOfDot(allowReservedWords, /* allowPrivateIdentifiers */ false)), pos);\n }\n return entity;\n }\n function createQualifiedName(entity, name) {\n return finishNode(factory.createQualifiedName(entity, name), entity.pos);\n }\n function parseRightSideOfDot(allowIdentifierNames, allowPrivateIdentifiers) {\n // Technically a keyword is valid here as all identifiers and keywords are identifier names.\n // However, often we'll encounter this in error situations when the identifier or keyword\n // is actually starting another valid construct.\n //\n // So, we check for the following specific case:\n //\n // name.\n // identifierOrKeyword identifierNameOrKeyword\n //\n // Note: the newlines are important here. For example, if that above code\n // were rewritten into:\n //\n // name.identifierOrKeyword\n // identifierNameOrKeyword\n //\n // Then we would consider it valid. That's because ASI would take effect and\n // the code would be implicitly: \"name.identifierOrKeyword; identifierNameOrKeyword\".\n // In the first case though, ASI will not take effect because there is not a\n // line terminator after the identifier or keyword.\n if (scanner.hasPrecedingLineBreak() && ts.tokenIsIdentifierOrKeyword(token())) {\n var matchesPattern = lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);\n if (matchesPattern) {\n // Report that we need an identifier. However, report it right after the dot,\n // and not on the next token. This is because the next token might actually\n // be an identifier and the error would be quite confusing.\n return createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Identifier_expected);\n }\n }\n if (token() === 80 /* PrivateIdentifier */) {\n var node = parsePrivateIdentifier();\n return allowPrivateIdentifiers ? node : createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Identifier_expected);\n }\n return allowIdentifierNames ? parseIdentifierName() : parseIdentifier();\n }\n function parseTemplateSpans(isTaggedTemplate) {\n var pos = getNodePos();\n var list = [];\n var node;\n do {\n node = parseTemplateSpan(isTaggedTemplate);\n list.push(node);\n } while (node.literal.kind === 16 /* TemplateMiddle */);\n return createNodeArray(list, pos);\n }\n function parseTemplateExpression(isTaggedTemplate) {\n var pos = getNodePos();\n return finishNode(factory.createTemplateExpression(parseTemplateHead(isTaggedTemplate), parseTemplateSpans(isTaggedTemplate)), pos);\n }\n function parseTemplateType() {\n var pos = getNodePos();\n return finishNode(factory.createTemplateLiteralType(parseTemplateHead(/*isTaggedTemplate*/ false), parseTemplateTypeSpans()), pos);\n }\n function parseTemplateTypeSpans() {\n var pos = getNodePos();\n var list = [];\n var node;\n do {\n node = parseTemplateTypeSpan();\n list.push(node);\n } while (node.literal.kind === 16 /* TemplateMiddle */);\n return createNodeArray(list, pos);\n }\n function parseTemplateTypeSpan() {\n var pos = getNodePos();\n return finishNode(factory.createTemplateLiteralTypeSpan(parseType(), parseLiteralOfTemplateSpan(/*isTaggedTemplate*/ false)), pos);\n }\n function parseLiteralOfTemplateSpan(isTaggedTemplate) {\n if (token() === 19 /* CloseBraceToken */) {\n reScanTemplateToken(isTaggedTemplate);\n return parseTemplateMiddleOrTemplateTail();\n }\n else {\n // TODO(rbuckton): Do we need to call `parseExpectedToken` or can we just call `createMissingNode` directly?\n return parseExpectedToken(17 /* TemplateTail */, ts.Diagnostics._0_expected, ts.tokenToString(19 /* CloseBraceToken */));\n }\n }\n function parseTemplateSpan(isTaggedTemplate) {\n var pos = getNodePos();\n return finishNode(factory.createTemplateSpan(allowInAnd(parseExpression), parseLiteralOfTemplateSpan(isTaggedTemplate)), pos);\n }\n function parseLiteralNode() {\n return parseLiteralLikeNode(token());\n }\n function parseTemplateHead(isTaggedTemplate) {\n if (isTaggedTemplate) {\n reScanTemplateHeadOrNoSubstitutionTemplate();\n }\n var fragment = parseLiteralLikeNode(token());\n ts.Debug.assert(fragment.kind === 15 /* TemplateHead */, \"Template head has wrong token kind\");\n return fragment;\n }\n function parseTemplateMiddleOrTemplateTail() {\n var fragment = parseLiteralLikeNode(token());\n ts.Debug.assert(fragment.kind === 16 /* TemplateMiddle */ || fragment.kind === 17 /* TemplateTail */, \"Template fragment has wrong token kind\");\n return fragment;\n }\n function getTemplateLiteralRawText(kind) {\n var isLast = kind === 14 /* NoSubstitutionTemplateLiteral */ || kind === 17 /* TemplateTail */;\n var tokenText = scanner.getTokenText();\n return tokenText.substring(1, tokenText.length - (scanner.isUnterminated() ? 0 : isLast ? 1 : 2));\n }\n function parseLiteralLikeNode(kind) {\n var pos = getNodePos();\n var node = ts.isTemplateLiteralKind(kind) ? factory.createTemplateLiteralLikeNode(kind, scanner.getTokenValue(), getTemplateLiteralRawText(kind), scanner.getTokenFlags() & 2048 /* TemplateLiteralLikeFlags */) :\n // Octal literals are not allowed in strict mode or ES5\n // Note that theoretically the following condition would hold true literals like 009,\n // which is not octal. But because of how the scanner separates the tokens, we would\n // never get a token like this. Instead, we would get 00 and 9 as two separate tokens.\n // We also do not need to check for negatives because any prefix operator would be part of a\n // parent unary expression.\n kind === 8 /* NumericLiteral */ ? factory.createNumericLiteral(scanner.getTokenValue(), scanner.getNumericLiteralFlags()) :\n kind === 10 /* StringLiteral */ ? factory.createStringLiteral(scanner.getTokenValue(), /*isSingleQuote*/ undefined, scanner.hasExtendedUnicodeEscape()) :\n ts.isLiteralKind(kind) ? factory.createLiteralLikeNode(kind, scanner.getTokenValue()) :\n ts.Debug.fail();\n if (scanner.hasExtendedUnicodeEscape()) {\n node.hasExtendedUnicodeEscape = true;\n }\n if (scanner.isUnterminated()) {\n node.isUnterminated = true;\n }\n nextToken();\n return finishNode(node, pos);\n }\n // TYPES\n function parseEntityNameOfTypeReference() {\n return parseEntityName(/*allowReservedWords*/ true, ts.Diagnostics.Type_expected);\n }\n function parseTypeArgumentsOfTypeReference() {\n if (!scanner.hasPrecedingLineBreak() && reScanLessThanToken() === 29 /* LessThanToken */) {\n return parseBracketedList(20 /* TypeArguments */, parseType, 29 /* LessThanToken */, 31 /* GreaterThanToken */);\n }\n }\n function parseTypeReference() {\n var pos = getNodePos();\n return finishNode(factory.createTypeReferenceNode(parseEntityNameOfTypeReference(), parseTypeArgumentsOfTypeReference()), pos);\n }\n // If true, we should abort parsing an error function.\n function typeHasArrowFunctionBlockingParseError(node) {\n switch (node.kind) {\n case 176 /* TypeReference */:\n return ts.nodeIsMissing(node.typeName);\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */: {\n var _a = node, parameters = _a.parameters, type = _a.type;\n return isMissingList(parameters) || typeHasArrowFunctionBlockingParseError(type);\n }\n case 189 /* ParenthesizedType */:\n return typeHasArrowFunctionBlockingParseError(node.type);\n default:\n return false;\n }\n }\n function parseThisTypePredicate(lhs) {\n nextToken();\n return finishNode(factory.createTypePredicateNode(/*assertsModifier*/ undefined, lhs, parseType()), lhs.pos);\n }\n function parseThisTypeNode() {\n var pos = getNodePos();\n nextToken();\n return finishNode(factory.createThisTypeNode(), pos);\n }\n function parseJSDocAllType() {\n var pos = getNodePos();\n nextToken();\n return finishNode(factory.createJSDocAllType(), pos);\n }\n function parseJSDocNonNullableType() {\n var pos = getNodePos();\n nextToken();\n return finishNode(factory.createJSDocNonNullableType(parseNonArrayType()), pos);\n }\n function parseJSDocUnknownOrNullableType() {\n var pos = getNodePos();\n // skip the ?\n nextToken();\n // Need to lookahead to decide if this is a nullable or unknown type.\n // Here are cases where we'll pick the unknown type:\n //\n // Foo(?,\n // { a: ? }\n // Foo(?)\n // Foo\n // Foo(?=\n // (?|\n if (token() === 27 /* CommaToken */ ||\n token() === 19 /* CloseBraceToken */ ||\n token() === 21 /* CloseParenToken */ ||\n token() === 31 /* GreaterThanToken */ ||\n token() === 63 /* EqualsToken */ ||\n token() === 51 /* BarToken */) {\n return finishNode(factory.createJSDocUnknownType(), pos);\n }\n else {\n return finishNode(factory.createJSDocNullableType(parseType()), pos);\n }\n }\n function parseJSDocFunctionType() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n if (lookAhead(nextTokenIsOpenParen)) {\n nextToken();\n var parameters = parseParameters(4 /* Type */ | 32 /* JSDoc */);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n return withJSDoc(finishNode(factory.createJSDocFunctionType(parameters, type), pos), hasJSDoc);\n }\n return finishNode(factory.createTypeReferenceNode(parseIdentifierName(), /*typeArguments*/ undefined), pos);\n }\n function parseJSDocParameter() {\n var pos = getNodePos();\n var name;\n if (token() === 108 /* ThisKeyword */ || token() === 103 /* NewKeyword */) {\n name = parseIdentifierName();\n parseExpected(58 /* ColonToken */);\n }\n return finishNode(factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, \n // TODO(rbuckton): JSDoc parameters don't have names (except `this`/`new`), should we manufacture an empty identifier?\n name, \n /*questionToken*/ undefined, parseJSDocType(), \n /*initializer*/ undefined), pos);\n }\n function parseJSDocType() {\n scanner.setInJSDocType(true);\n var pos = getNodePos();\n if (parseOptional(140 /* ModuleKeyword */)) {\n // TODO(rbuckton): We never set the type for a JSDocNamepathType. What should we put here?\n var moduleTag = factory.createJSDocNamepathType(/*type*/ undefined);\n terminate: while (true) {\n switch (token()) {\n case 19 /* CloseBraceToken */:\n case 1 /* EndOfFileToken */:\n case 27 /* CommaToken */:\n case 5 /* WhitespaceTrivia */:\n break terminate;\n default:\n nextTokenJSDoc();\n }\n }\n scanner.setInJSDocType(false);\n return finishNode(moduleTag, pos);\n }\n var hasDotDotDot = parseOptional(25 /* DotDotDotToken */);\n var type = parseTypeOrTypePredicate();\n scanner.setInJSDocType(false);\n if (hasDotDotDot) {\n type = finishNode(factory.createJSDocVariadicType(type), pos);\n }\n if (token() === 63 /* EqualsToken */) {\n nextToken();\n return finishNode(factory.createJSDocOptionalType(type), pos);\n }\n return type;\n }\n function parseTypeQuery() {\n var pos = getNodePos();\n parseExpected(112 /* TypeOfKeyword */);\n return finishNode(factory.createTypeQueryNode(parseEntityName(/*allowReservedWords*/ true)), pos);\n }\n function parseTypeParameter() {\n var pos = getNodePos();\n var name = parseIdentifier();\n var constraint;\n var expression;\n if (parseOptional(94 /* ExtendsKeyword */)) {\n // It's not uncommon for people to write improper constraints to a generic. If the\n // user writes a constraint that is an expression and not an actual type, then parse\n // it out as an expression (so we can recover well), but report that a type is needed\n // instead.\n if (isStartOfType() || !isStartOfExpression()) {\n constraint = parseType();\n }\n else {\n // It was not a type, and it looked like an expression. Parse out an expression\n // here so we recover well. Note: it is important that we call parseUnaryExpression\n // and not parseExpression here. If the user has:\n //\n // \n //\n // We do *not* want to consume the `>` as we're consuming the expression for \"\".\n expression = parseUnaryExpressionOrHigher();\n }\n }\n var defaultType = parseOptional(63 /* EqualsToken */) ? parseType() : undefined;\n var node = factory.createTypeParameterDeclaration(name, constraint, defaultType);\n node.expression = expression;\n return finishNode(node, pos);\n }\n function parseTypeParameters() {\n if (token() === 29 /* LessThanToken */) {\n return parseBracketedList(19 /* TypeParameters */, parseTypeParameter, 29 /* LessThanToken */, 31 /* GreaterThanToken */);\n }\n }\n function isStartOfParameter(isJSDocParameter) {\n return token() === 25 /* DotDotDotToken */ ||\n isBindingIdentifierOrPrivateIdentifierOrPattern() ||\n ts.isModifierKind(token()) ||\n token() === 59 /* AtToken */ ||\n isStartOfType(/*inStartOfParameter*/ !isJSDocParameter);\n }\n function parseNameOfParameter(modifiers) {\n // FormalParameter [Yield,Await]:\n // BindingElement[?Yield,?Await]\n var name = parseIdentifierOrPattern(ts.Diagnostics.Private_identifiers_cannot_be_used_as_parameters);\n if (ts.getFullWidth(name) === 0 && !ts.some(modifiers) && ts.isModifierKind(token())) {\n // in cases like\n // 'use strict'\n // function foo(static)\n // isParameter('static') === true, because of isModifier('static')\n // however 'static' is not a legal identifier in a strict mode.\n // so result of this function will be ParameterDeclaration (flags = 0, name = missing, type = undefined, initializer = undefined)\n // and current token will not change => parsing of the enclosing parameter list will last till the end of time (or OOM)\n // to avoid this we'll advance cursor to the next token.\n nextToken();\n }\n return name;\n }\n function parseParameterInOuterAwaitContext() {\n return parseParameterWorker(/*inOuterAwaitContext*/ true);\n }\n function parseParameter() {\n return parseParameterWorker(/*inOuterAwaitContext*/ false);\n }\n function parseParameterWorker(inOuterAwaitContext) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n // FormalParameter [Yield,Await]:\n // BindingElement[?Yield,?Await]\n // Decorators are parsed in the outer [Await] context, the rest of the parameter is parsed in the function's [Await] context.\n var decorators = inOuterAwaitContext ? doInAwaitContext(parseDecorators) : parseDecorators();\n if (token() === 108 /* ThisKeyword */) {\n var node_1 = factory.createParameterDeclaration(decorators, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, createIdentifier(/*isIdentifier*/ true), \n /*questionToken*/ undefined, parseTypeAnnotation(), \n /*initializer*/ undefined);\n if (decorators) {\n parseErrorAtRange(decorators[0], ts.Diagnostics.Decorators_may_not_be_applied_to_this_parameters);\n }\n return withJSDoc(finishNode(node_1, pos), hasJSDoc);\n }\n var savedTopLevel = topLevel;\n topLevel = false;\n var modifiers = parseModifiers();\n var node = withJSDoc(finishNode(factory.createParameterDeclaration(decorators, modifiers, parseOptionalToken(25 /* DotDotDotToken */), parseNameOfParameter(modifiers), parseOptionalToken(57 /* QuestionToken */), parseTypeAnnotation(), parseInitializer()), pos), hasJSDoc);\n topLevel = savedTopLevel;\n return node;\n }\n function parseReturnType(returnToken, isType) {\n if (shouldParseReturnType(returnToken, isType)) {\n return parseTypeOrTypePredicate();\n }\n }\n function shouldParseReturnType(returnToken, isType) {\n if (returnToken === 38 /* EqualsGreaterThanToken */) {\n parseExpected(returnToken);\n return true;\n }\n else if (parseOptional(58 /* ColonToken */)) {\n return true;\n }\n else if (isType && token() === 38 /* EqualsGreaterThanToken */) {\n // This is easy to get backward, especially in type contexts, so parse the type anyway\n parseErrorAtCurrentToken(ts.Diagnostics._0_expected, ts.tokenToString(58 /* ColonToken */));\n nextToken();\n return true;\n }\n return false;\n }\n function parseParametersWorker(flags) {\n // FormalParameters [Yield,Await]: (modified)\n // [empty]\n // FormalParameterList[?Yield,Await]\n //\n // FormalParameter[Yield,Await]: (modified)\n // BindingElement[?Yield,Await]\n //\n // BindingElement [Yield,Await]: (modified)\n // SingleNameBinding[?Yield,?Await]\n // BindingPattern[?Yield,?Await]Initializer [In, ?Yield,?Await] opt\n //\n // SingleNameBinding [Yield,Await]:\n // BindingIdentifier[?Yield,?Await]Initializer [In, ?Yield,?Await] opt\n var savedYieldContext = inYieldContext();\n var savedAwaitContext = inAwaitContext();\n setYieldContext(!!(flags & 1 /* Yield */));\n setAwaitContext(!!(flags & 2 /* Await */));\n var parameters = flags & 32 /* JSDoc */ ?\n parseDelimitedList(17 /* JSDocParameters */, parseJSDocParameter) :\n parseDelimitedList(16 /* Parameters */, savedAwaitContext ? parseParameterInOuterAwaitContext : parseParameter);\n setYieldContext(savedYieldContext);\n setAwaitContext(savedAwaitContext);\n return parameters;\n }\n function parseParameters(flags) {\n // FormalParameters [Yield,Await]: (modified)\n // [empty]\n // FormalParameterList[?Yield,Await]\n //\n // FormalParameter[Yield,Await]: (modified)\n // BindingElement[?Yield,Await]\n //\n // BindingElement [Yield,Await]: (modified)\n // SingleNameBinding[?Yield,?Await]\n // BindingPattern[?Yield,?Await]Initializer [In, ?Yield,?Await] opt\n //\n // SingleNameBinding [Yield,Await]:\n // BindingIdentifier[?Yield,?Await]Initializer [In, ?Yield,?Await] opt\n if (!parseExpected(20 /* OpenParenToken */)) {\n return createMissingList();\n }\n var parameters = parseParametersWorker(flags);\n parseExpected(21 /* CloseParenToken */);\n return parameters;\n }\n function parseTypeMemberSemicolon() {\n // We allow type members to be separated by commas or (possibly ASI) semicolons.\n // First check if it was a comma. If so, we're done with the member.\n if (parseOptional(27 /* CommaToken */)) {\n return;\n }\n // Didn't have a comma. We must have a (possible ASI) semicolon.\n parseSemicolon();\n }\n function parseSignatureMember(kind) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n if (kind === 173 /* ConstructSignature */) {\n parseExpected(103 /* NewKeyword */);\n }\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(4 /* Type */);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ true);\n parseTypeMemberSemicolon();\n var node = kind === 172 /* CallSignature */\n ? factory.createCallSignature(typeParameters, parameters, type)\n : factory.createConstructSignature(typeParameters, parameters, type);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function isIndexSignature() {\n return token() === 22 /* OpenBracketToken */ && lookAhead(isUnambiguouslyIndexSignature);\n }\n function isUnambiguouslyIndexSignature() {\n // The only allowed sequence is:\n //\n // [id:\n //\n // However, for error recovery, we also check the following cases:\n //\n // [...\n // [id,\n // [id?,\n // [id?:\n // [id?]\n // [public id\n // [private id\n // [protected id\n // []\n //\n nextToken();\n if (token() === 25 /* DotDotDotToken */ || token() === 23 /* CloseBracketToken */) {\n return true;\n }\n if (ts.isModifierKind(token())) {\n nextToken();\n if (isIdentifier()) {\n return true;\n }\n }\n else if (!isIdentifier()) {\n return false;\n }\n else {\n // Skip the identifier\n nextToken();\n }\n // A colon signifies a well formed indexer\n // A comma should be a badly formed indexer because comma expressions are not allowed\n // in computed properties.\n if (token() === 58 /* ColonToken */ || token() === 27 /* CommaToken */) {\n return true;\n }\n // Question mark could be an indexer with an optional property,\n // or it could be a conditional expression in a computed property.\n if (token() !== 57 /* QuestionToken */) {\n return false;\n }\n // If any of the following tokens are after the question mark, it cannot\n // be a conditional expression, so treat it as an indexer.\n nextToken();\n return token() === 58 /* ColonToken */ || token() === 27 /* CommaToken */ || token() === 23 /* CloseBracketToken */;\n }\n function parseIndexSignatureDeclaration(pos, hasJSDoc, decorators, modifiers) {\n var parameters = parseBracketedList(16 /* Parameters */, parseParameter, 22 /* OpenBracketToken */, 23 /* CloseBracketToken */);\n var type = parseTypeAnnotation();\n parseTypeMemberSemicolon();\n var node = factory.createIndexSignature(decorators, modifiers, parameters, type);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers) {\n var name = parsePropertyName();\n var questionToken = parseOptionalToken(57 /* QuestionToken */);\n var node;\n if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */) {\n // Method signatures don't exist in expression contexts. So they have neither\n // [Yield] nor [Await]\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(4 /* Type */);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ true);\n node = factory.createMethodSignature(modifiers, name, questionToken, typeParameters, parameters, type);\n }\n else {\n var type = parseTypeAnnotation();\n node = factory.createPropertySignature(modifiers, name, questionToken, type);\n // Although type literal properties cannot not have initializers, we attempt\n // to parse an initializer so we can report in the checker that an interface\n // property or type literal property cannot have an initializer.\n if (token() === 63 /* EqualsToken */)\n node.initializer = parseInitializer();\n }\n parseTypeMemberSemicolon();\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function isTypeMemberStart() {\n // Return true if we have the start of a signature member\n if (token() === 20 /* OpenParenToken */ ||\n token() === 29 /* LessThanToken */ ||\n token() === 135 /* GetKeyword */ ||\n token() === 147 /* SetKeyword */) {\n return true;\n }\n var idToken = false;\n // Eat up all modifiers, but hold on to the last one in case it is actually an identifier\n while (ts.isModifierKind(token())) {\n idToken = true;\n nextToken();\n }\n // Index signatures and computed property names are type members\n if (token() === 22 /* OpenBracketToken */) {\n return true;\n }\n // Try to get the first property-like token following all modifiers\n if (isLiteralPropertyName()) {\n idToken = true;\n nextToken();\n }\n // If we were able to get any potential identifier, check that it is\n // the start of a member declaration\n if (idToken) {\n return token() === 20 /* OpenParenToken */ ||\n token() === 29 /* LessThanToken */ ||\n token() === 57 /* QuestionToken */ ||\n token() === 58 /* ColonToken */ ||\n token() === 27 /* CommaToken */ ||\n canParseSemicolon();\n }\n return false;\n }\n function parseTypeMember() {\n if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */) {\n return parseSignatureMember(172 /* CallSignature */);\n }\n if (token() === 103 /* NewKeyword */ && lookAhead(nextTokenIsOpenParenOrLessThan)) {\n return parseSignatureMember(173 /* ConstructSignature */);\n }\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var modifiers = parseModifiers();\n if (parseContextualModifier(135 /* GetKeyword */)) {\n return parseAccessorDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers, 170 /* GetAccessor */);\n }\n if (parseContextualModifier(147 /* SetKeyword */)) {\n return parseAccessorDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers, 171 /* SetAccessor */);\n }\n if (isIndexSignature()) {\n return parseIndexSignatureDeclaration(pos, hasJSDoc, /*decorators*/ undefined, modifiers);\n }\n return parsePropertyOrMethodSignature(pos, hasJSDoc, modifiers);\n }\n function nextTokenIsOpenParenOrLessThan() {\n nextToken();\n return token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */;\n }\n function nextTokenIsDot() {\n return nextToken() === 24 /* DotToken */;\n }\n function nextTokenIsOpenParenOrLessThanOrDot() {\n switch (nextToken()) {\n case 20 /* OpenParenToken */:\n case 29 /* LessThanToken */:\n case 24 /* DotToken */:\n return true;\n }\n return false;\n }\n function parseTypeLiteral() {\n var pos = getNodePos();\n return finishNode(factory.createTypeLiteralNode(parseObjectTypeMembers()), pos);\n }\n function parseObjectTypeMembers() {\n var members;\n if (parseExpected(18 /* OpenBraceToken */)) {\n members = parseList(4 /* TypeMembers */, parseTypeMember);\n parseExpected(19 /* CloseBraceToken */);\n }\n else {\n members = createMissingList();\n }\n return members;\n }\n function isStartOfMappedType() {\n nextToken();\n if (token() === 39 /* PlusToken */ || token() === 40 /* MinusToken */) {\n return nextToken() === 143 /* ReadonlyKeyword */;\n }\n if (token() === 143 /* ReadonlyKeyword */) {\n nextToken();\n }\n return token() === 22 /* OpenBracketToken */ && nextTokenIsIdentifier() && nextToken() === 101 /* InKeyword */;\n }\n function parseMappedTypeParameter() {\n var pos = getNodePos();\n var name = parseIdentifierName();\n parseExpected(101 /* InKeyword */);\n var type = parseType();\n return finishNode(factory.createTypeParameterDeclaration(name, type, /*defaultType*/ undefined), pos);\n }\n function parseMappedType() {\n var pos = getNodePos();\n parseExpected(18 /* OpenBraceToken */);\n var readonlyToken;\n if (token() === 143 /* ReadonlyKeyword */ || token() === 39 /* PlusToken */ || token() === 40 /* MinusToken */) {\n readonlyToken = parseTokenNode();\n if (readonlyToken.kind !== 143 /* ReadonlyKeyword */) {\n parseExpected(143 /* ReadonlyKeyword */);\n }\n }\n parseExpected(22 /* OpenBracketToken */);\n var typeParameter = parseMappedTypeParameter();\n var nameType = parseOptional(127 /* AsKeyword */) ? parseType() : undefined;\n parseExpected(23 /* CloseBracketToken */);\n var questionToken;\n if (token() === 57 /* QuestionToken */ || token() === 39 /* PlusToken */ || token() === 40 /* MinusToken */) {\n questionToken = parseTokenNode();\n if (questionToken.kind !== 57 /* QuestionToken */) {\n parseExpected(57 /* QuestionToken */);\n }\n }\n var type = parseTypeAnnotation();\n parseSemicolon();\n parseExpected(19 /* CloseBraceToken */);\n return finishNode(factory.createMappedTypeNode(readonlyToken, typeParameter, nameType, questionToken, type), pos);\n }\n function parseTupleElementType() {\n var pos = getNodePos();\n if (parseOptional(25 /* DotDotDotToken */)) {\n return finishNode(factory.createRestTypeNode(parseType()), pos);\n }\n var type = parseType();\n if (ts.isJSDocNullableType(type) && type.pos === type.type.pos) {\n var node = factory.createOptionalTypeNode(type.type);\n ts.setTextRange(node, type);\n node.flags = type.flags;\n return node;\n }\n return type;\n }\n function isNextTokenColonOrQuestionColon() {\n return nextToken() === 58 /* ColonToken */ || (token() === 57 /* QuestionToken */ && nextToken() === 58 /* ColonToken */);\n }\n function isTupleElementName() {\n if (token() === 25 /* DotDotDotToken */) {\n return ts.tokenIsIdentifierOrKeyword(nextToken()) && isNextTokenColonOrQuestionColon();\n }\n return ts.tokenIsIdentifierOrKeyword(token()) && isNextTokenColonOrQuestionColon();\n }\n function parseTupleElementNameOrTupleElementType() {\n if (lookAhead(isTupleElementName)) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var dotDotDotToken = parseOptionalToken(25 /* DotDotDotToken */);\n var name = parseIdentifierName();\n var questionToken = parseOptionalToken(57 /* QuestionToken */);\n parseExpected(58 /* ColonToken */);\n var type = parseTupleElementType();\n var node = factory.createNamedTupleMember(dotDotDotToken, name, questionToken, type);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n return parseTupleElementType();\n }\n function parseTupleType() {\n var pos = getNodePos();\n return finishNode(factory.createTupleTypeNode(parseBracketedList(21 /* TupleElementTypes */, parseTupleElementNameOrTupleElementType, 22 /* OpenBracketToken */, 23 /* CloseBracketToken */)), pos);\n }\n function parseParenthesizedType() {\n var pos = getNodePos();\n parseExpected(20 /* OpenParenToken */);\n var type = parseType();\n parseExpected(21 /* CloseParenToken */);\n return finishNode(factory.createParenthesizedType(type), pos);\n }\n function parseModifiersForConstructorType() {\n var modifiers;\n if (token() === 126 /* AbstractKeyword */) {\n var pos = getNodePos();\n nextToken();\n var modifier = finishNode(factory.createToken(126 /* AbstractKeyword */), pos);\n modifiers = createNodeArray([modifier], pos);\n }\n return modifiers;\n }\n function parseFunctionOrConstructorType() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var modifiers = parseModifiersForConstructorType();\n var isConstructorType = parseOptional(103 /* NewKeyword */);\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(4 /* Type */);\n var type = parseReturnType(38 /* EqualsGreaterThanToken */, /*isType*/ false);\n var node = isConstructorType\n ? factory.createConstructorTypeNode(modifiers, typeParameters, parameters, type)\n : factory.createFunctionTypeNode(typeParameters, parameters, type);\n if (!isConstructorType)\n node.modifiers = modifiers;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseKeywordAndNoDot() {\n var node = parseTokenNode();\n return token() === 24 /* DotToken */ ? undefined : node;\n }\n function parseLiteralTypeNode(negative) {\n var pos = getNodePos();\n if (negative) {\n nextToken();\n }\n var expression = token() === 110 /* TrueKeyword */ || token() === 95 /* FalseKeyword */ || token() === 104 /* NullKeyword */ ?\n parseTokenNode() :\n parseLiteralLikeNode(token());\n if (negative) {\n expression = finishNode(factory.createPrefixUnaryExpression(40 /* MinusToken */, expression), pos);\n }\n return finishNode(factory.createLiteralTypeNode(expression), pos);\n }\n function isStartOfTypeOfImportType() {\n nextToken();\n return token() === 100 /* ImportKeyword */;\n }\n function parseImportType() {\n sourceFlags |= 1048576 /* PossiblyContainsDynamicImport */;\n var pos = getNodePos();\n var isTypeOf = parseOptional(112 /* TypeOfKeyword */);\n parseExpected(100 /* ImportKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var type = parseType();\n parseExpected(21 /* CloseParenToken */);\n var qualifier = parseOptional(24 /* DotToken */) ? parseEntityNameOfTypeReference() : undefined;\n var typeArguments = parseTypeArgumentsOfTypeReference();\n return finishNode(factory.createImportTypeNode(type, qualifier, typeArguments, isTypeOf), pos);\n }\n function nextTokenIsNumericOrBigIntLiteral() {\n nextToken();\n return token() === 8 /* NumericLiteral */ || token() === 9 /* BigIntLiteral */;\n }\n function parseNonArrayType() {\n switch (token()) {\n case 129 /* AnyKeyword */:\n case 153 /* UnknownKeyword */:\n case 148 /* StringKeyword */:\n case 145 /* NumberKeyword */:\n case 156 /* BigIntKeyword */:\n case 149 /* SymbolKeyword */:\n case 132 /* BooleanKeyword */:\n case 151 /* UndefinedKeyword */:\n case 142 /* NeverKeyword */:\n case 146 /* ObjectKeyword */:\n // If these are followed by a dot, then parse these out as a dotted type reference instead.\n return tryParse(parseKeywordAndNoDot) || parseTypeReference();\n case 66 /* AsteriskEqualsToken */:\n // If there is '*=', treat it as * followed by postfix =\n scanner.reScanAsteriskEqualsToken();\n // falls through\n case 41 /* AsteriskToken */:\n return parseJSDocAllType();\n case 60 /* QuestionQuestionToken */:\n // If there is '??', treat it as prefix-'?' in JSDoc type.\n scanner.reScanQuestionToken();\n // falls through\n case 57 /* QuestionToken */:\n return parseJSDocUnknownOrNullableType();\n case 98 /* FunctionKeyword */:\n return parseJSDocFunctionType();\n case 53 /* ExclamationToken */:\n return parseJSDocNonNullableType();\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 104 /* NullKeyword */:\n return parseLiteralTypeNode();\n case 40 /* MinusToken */:\n return lookAhead(nextTokenIsNumericOrBigIntLiteral) ? parseLiteralTypeNode(/*negative*/ true) : parseTypeReference();\n case 114 /* VoidKeyword */:\n return parseTokenNode();\n case 108 /* ThisKeyword */: {\n var thisKeyword = parseThisTypeNode();\n if (token() === 138 /* IsKeyword */ && !scanner.hasPrecedingLineBreak()) {\n return parseThisTypePredicate(thisKeyword);\n }\n else {\n return thisKeyword;\n }\n }\n case 112 /* TypeOfKeyword */:\n return lookAhead(isStartOfTypeOfImportType) ? parseImportType() : parseTypeQuery();\n case 18 /* OpenBraceToken */:\n return lookAhead(isStartOfMappedType) ? parseMappedType() : parseTypeLiteral();\n case 22 /* OpenBracketToken */:\n return parseTupleType();\n case 20 /* OpenParenToken */:\n return parseParenthesizedType();\n case 100 /* ImportKeyword */:\n return parseImportType();\n case 128 /* AssertsKeyword */:\n return lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine) ? parseAssertsTypePredicate() : parseTypeReference();\n case 15 /* TemplateHead */:\n return parseTemplateType();\n default:\n return parseTypeReference();\n }\n }\n function isStartOfType(inStartOfParameter) {\n switch (token()) {\n case 129 /* AnyKeyword */:\n case 153 /* UnknownKeyword */:\n case 148 /* StringKeyword */:\n case 145 /* NumberKeyword */:\n case 156 /* BigIntKeyword */:\n case 132 /* BooleanKeyword */:\n case 143 /* ReadonlyKeyword */:\n case 149 /* SymbolKeyword */:\n case 152 /* UniqueKeyword */:\n case 114 /* VoidKeyword */:\n case 151 /* UndefinedKeyword */:\n case 104 /* NullKeyword */:\n case 108 /* ThisKeyword */:\n case 112 /* TypeOfKeyword */:\n case 142 /* NeverKeyword */:\n case 18 /* OpenBraceToken */:\n case 22 /* OpenBracketToken */:\n case 29 /* LessThanToken */:\n case 51 /* BarToken */:\n case 50 /* AmpersandToken */:\n case 103 /* NewKeyword */:\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 146 /* ObjectKeyword */:\n case 41 /* AsteriskToken */:\n case 57 /* QuestionToken */:\n case 53 /* ExclamationToken */:\n case 25 /* DotDotDotToken */:\n case 136 /* InferKeyword */:\n case 100 /* ImportKeyword */:\n case 128 /* AssertsKeyword */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 15 /* TemplateHead */:\n return true;\n case 98 /* FunctionKeyword */:\n return !inStartOfParameter;\n case 40 /* MinusToken */:\n return !inStartOfParameter && lookAhead(nextTokenIsNumericOrBigIntLiteral);\n case 20 /* OpenParenToken */:\n // Only consider '(' the start of a type if followed by ')', '...', an identifier, a modifier,\n // or something that starts a type. We don't want to consider things like '(1)' a type.\n return !inStartOfParameter && lookAhead(isStartOfParenthesizedOrFunctionType);\n default:\n return isIdentifier();\n }\n }\n function isStartOfParenthesizedOrFunctionType() {\n nextToken();\n return token() === 21 /* CloseParenToken */ || isStartOfParameter(/*isJSDocParameter*/ false) || isStartOfType();\n }\n function parsePostfixTypeOrHigher() {\n var pos = getNodePos();\n var type = parseNonArrayType();\n while (!scanner.hasPrecedingLineBreak()) {\n switch (token()) {\n case 53 /* ExclamationToken */:\n nextToken();\n type = finishNode(factory.createJSDocNonNullableType(type), pos);\n break;\n case 57 /* QuestionToken */:\n // If next token is start of a type we have a conditional type\n if (lookAhead(nextTokenIsStartOfType)) {\n return type;\n }\n nextToken();\n type = finishNode(factory.createJSDocNullableType(type), pos);\n break;\n case 22 /* OpenBracketToken */:\n parseExpected(22 /* OpenBracketToken */);\n if (isStartOfType()) {\n var indexType = parseType();\n parseExpected(23 /* CloseBracketToken */);\n type = finishNode(factory.createIndexedAccessTypeNode(type, indexType), pos);\n }\n else {\n parseExpected(23 /* CloseBracketToken */);\n type = finishNode(factory.createArrayTypeNode(type), pos);\n }\n break;\n default:\n return type;\n }\n }\n return type;\n }\n function parseTypeOperator(operator) {\n var pos = getNodePos();\n parseExpected(operator);\n return finishNode(factory.createTypeOperatorNode(operator, parseTypeOperatorOrHigher()), pos);\n }\n function parseTypeParameterOfInferType() {\n var pos = getNodePos();\n return finishNode(factory.createTypeParameterDeclaration(parseIdentifier(), \n /*constraint*/ undefined, \n /*defaultType*/ undefined), pos);\n }\n function parseInferType() {\n var pos = getNodePos();\n parseExpected(136 /* InferKeyword */);\n return finishNode(factory.createInferTypeNode(parseTypeParameterOfInferType()), pos);\n }\n function parseTypeOperatorOrHigher() {\n var operator = token();\n switch (operator) {\n case 139 /* KeyOfKeyword */:\n case 152 /* UniqueKeyword */:\n case 143 /* ReadonlyKeyword */:\n return parseTypeOperator(operator);\n case 136 /* InferKeyword */:\n return parseInferType();\n }\n return parsePostfixTypeOrHigher();\n }\n function parseFunctionOrConstructorTypeToError(isInUnionType) {\n // the function type and constructor type shorthand notation\n // are not allowed directly in unions and intersections, but we'll\n // try to parse them gracefully and issue a helpful message.\n if (isStartOfFunctionTypeOrConstructorType()) {\n var type = parseFunctionOrConstructorType();\n var diagnostic = void 0;\n if (ts.isFunctionTypeNode(type)) {\n diagnostic = isInUnionType\n ? ts.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type\n : ts.Diagnostics.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type;\n }\n else {\n diagnostic = isInUnionType\n ? ts.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type\n : ts.Diagnostics.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type;\n }\n parseErrorAtRange(type, diagnostic);\n return type;\n }\n return undefined;\n }\n function parseUnionOrIntersectionType(operator, parseConstituentType, createTypeNode) {\n var pos = getNodePos();\n var isUnionType = operator === 51 /* BarToken */;\n var hasLeadingOperator = parseOptional(operator);\n var type = hasLeadingOperator && parseFunctionOrConstructorTypeToError(isUnionType)\n || parseConstituentType();\n if (token() === operator || hasLeadingOperator) {\n var types = [type];\n while (parseOptional(operator)) {\n types.push(parseFunctionOrConstructorTypeToError(isUnionType) || parseConstituentType());\n }\n type = finishNode(createTypeNode(createNodeArray(types, pos)), pos);\n }\n return type;\n }\n function parseIntersectionTypeOrHigher() {\n return parseUnionOrIntersectionType(50 /* AmpersandToken */, parseTypeOperatorOrHigher, factory.createIntersectionTypeNode);\n }\n function parseUnionTypeOrHigher() {\n return parseUnionOrIntersectionType(51 /* BarToken */, parseIntersectionTypeOrHigher, factory.createUnionTypeNode);\n }\n function nextTokenIsNewKeyword() {\n nextToken();\n return token() === 103 /* NewKeyword */;\n }\n function isStartOfFunctionTypeOrConstructorType() {\n if (token() === 29 /* LessThanToken */) {\n return true;\n }\n if (token() === 20 /* OpenParenToken */ && lookAhead(isUnambiguouslyStartOfFunctionType)) {\n return true;\n }\n return token() === 103 /* NewKeyword */ ||\n token() === 126 /* AbstractKeyword */ && lookAhead(nextTokenIsNewKeyword);\n }\n function skipParameterStart() {\n if (ts.isModifierKind(token())) {\n // Skip modifiers\n parseModifiers();\n }\n if (isIdentifier() || token() === 108 /* ThisKeyword */) {\n nextToken();\n return true;\n }\n if (token() === 22 /* OpenBracketToken */ || token() === 18 /* OpenBraceToken */) {\n // Return true if we can parse an array or object binding pattern with no errors\n var previousErrorCount = parseDiagnostics.length;\n parseIdentifierOrPattern();\n return previousErrorCount === parseDiagnostics.length;\n }\n return false;\n }\n function isUnambiguouslyStartOfFunctionType() {\n nextToken();\n if (token() === 21 /* CloseParenToken */ || token() === 25 /* DotDotDotToken */) {\n // ( )\n // ( ...\n return true;\n }\n if (skipParameterStart()) {\n // We successfully skipped modifiers (if any) and an identifier or binding pattern,\n // now see if we have something that indicates a parameter declaration\n if (token() === 58 /* ColonToken */ || token() === 27 /* CommaToken */ ||\n token() === 57 /* QuestionToken */ || token() === 63 /* EqualsToken */) {\n // ( xxx :\n // ( xxx ,\n // ( xxx ?\n // ( xxx =\n return true;\n }\n if (token() === 21 /* CloseParenToken */) {\n nextToken();\n if (token() === 38 /* EqualsGreaterThanToken */) {\n // ( xxx ) =>\n return true;\n }\n }\n }\n return false;\n }\n function parseTypeOrTypePredicate() {\n var pos = getNodePos();\n var typePredicateVariable = isIdentifier() && tryParse(parseTypePredicatePrefix);\n var type = parseType();\n if (typePredicateVariable) {\n return finishNode(factory.createTypePredicateNode(/*assertsModifier*/ undefined, typePredicateVariable, type), pos);\n }\n else {\n return type;\n }\n }\n function parseTypePredicatePrefix() {\n var id = parseIdentifier();\n if (token() === 138 /* IsKeyword */ && !scanner.hasPrecedingLineBreak()) {\n nextToken();\n return id;\n }\n }\n function parseAssertsTypePredicate() {\n var pos = getNodePos();\n var assertsModifier = parseExpectedToken(128 /* AssertsKeyword */);\n var parameterName = token() === 108 /* ThisKeyword */ ? parseThisTypeNode() : parseIdentifier();\n var type = parseOptional(138 /* IsKeyword */) ? parseType() : undefined;\n return finishNode(factory.createTypePredicateNode(assertsModifier, parameterName, type), pos);\n }\n function parseType() {\n // The rules about 'yield' only apply to actual code/expression contexts. They don't\n // apply to 'type' contexts. So we disable these parameters here before moving on.\n return doOutsideOfContext(40960 /* TypeExcludesFlags */, parseTypeWorker);\n }\n function parseTypeWorker(noConditionalTypes) {\n if (isStartOfFunctionTypeOrConstructorType()) {\n return parseFunctionOrConstructorType();\n }\n var pos = getNodePos();\n var type = parseUnionTypeOrHigher();\n if (!noConditionalTypes && !scanner.hasPrecedingLineBreak() && parseOptional(94 /* ExtendsKeyword */)) {\n // The type following 'extends' is not permitted to be another conditional type\n var extendsType = parseTypeWorker(/*noConditionalTypes*/ true);\n parseExpected(57 /* QuestionToken */);\n var trueType = parseTypeWorker();\n parseExpected(58 /* ColonToken */);\n var falseType = parseTypeWorker();\n return finishNode(factory.createConditionalTypeNode(type, extendsType, trueType, falseType), pos);\n }\n return type;\n }\n function parseTypeAnnotation() {\n return parseOptional(58 /* ColonToken */) ? parseType() : undefined;\n }\n // EXPRESSIONS\n function isStartOfLeftHandSideExpression() {\n switch (token()) {\n case 108 /* ThisKeyword */:\n case 106 /* SuperKeyword */:\n case 104 /* NullKeyword */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 15 /* TemplateHead */:\n case 20 /* OpenParenToken */:\n case 22 /* OpenBracketToken */:\n case 18 /* OpenBraceToken */:\n case 98 /* FunctionKeyword */:\n case 84 /* ClassKeyword */:\n case 103 /* NewKeyword */:\n case 43 /* SlashToken */:\n case 68 /* SlashEqualsToken */:\n case 79 /* Identifier */:\n return true;\n case 100 /* ImportKeyword */:\n return lookAhead(nextTokenIsOpenParenOrLessThanOrDot);\n default:\n return isIdentifier();\n }\n }\n function isStartOfExpression() {\n if (isStartOfLeftHandSideExpression()) {\n return true;\n }\n switch (token()) {\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n case 53 /* ExclamationToken */:\n case 89 /* DeleteKeyword */:\n case 112 /* TypeOfKeyword */:\n case 114 /* VoidKeyword */:\n case 45 /* PlusPlusToken */:\n case 46 /* MinusMinusToken */:\n case 29 /* LessThanToken */:\n case 131 /* AwaitKeyword */:\n case 125 /* YieldKeyword */:\n case 80 /* PrivateIdentifier */:\n // Yield/await always starts an expression. Either it is an identifier (in which case\n // it is definitely an expression). Or it's a keyword (either because we're in\n // a generator or async function, or in strict mode (or both)) and it started a yield or await expression.\n return true;\n default:\n // Error tolerance. If we see the start of some binary operator, we consider\n // that the start of an expression. That way we'll parse out a missing identifier,\n // give a good message about an identifier being missing, and then consume the\n // rest of the binary expression.\n if (isBinaryOperator()) {\n return true;\n }\n return isIdentifier();\n }\n }\n function isStartOfExpressionStatement() {\n // As per the grammar, none of '{' or 'function' or 'class' can start an expression statement.\n return token() !== 18 /* OpenBraceToken */ &&\n token() !== 98 /* FunctionKeyword */ &&\n token() !== 84 /* ClassKeyword */ &&\n token() !== 59 /* AtToken */ &&\n isStartOfExpression();\n }\n function parseExpression() {\n // Expression[in]:\n // AssignmentExpression[in]\n // Expression[in] , AssignmentExpression[in]\n // clear the decorator context when parsing Expression, as it should be unambiguous when parsing a decorator\n var saveDecoratorContext = inDecoratorContext();\n if (saveDecoratorContext) {\n setDecoratorContext(/*val*/ false);\n }\n var pos = getNodePos();\n var expr = parseAssignmentExpressionOrHigher();\n var operatorToken;\n while ((operatorToken = parseOptionalToken(27 /* CommaToken */))) {\n expr = makeBinaryExpression(expr, operatorToken, parseAssignmentExpressionOrHigher(), pos);\n }\n if (saveDecoratorContext) {\n setDecoratorContext(/*val*/ true);\n }\n return expr;\n }\n function parseInitializer() {\n return parseOptional(63 /* EqualsToken */) ? parseAssignmentExpressionOrHigher() : undefined;\n }\n function parseAssignmentExpressionOrHigher() {\n // AssignmentExpression[in,yield]:\n // 1) ConditionalExpression[?in,?yield]\n // 2) LeftHandSideExpression = AssignmentExpression[?in,?yield]\n // 3) LeftHandSideExpression AssignmentOperator AssignmentExpression[?in,?yield]\n // 4) ArrowFunctionExpression[?in,?yield]\n // 5) AsyncArrowFunctionExpression[in,yield,await]\n // 6) [+Yield] YieldExpression[?In]\n //\n // Note: for ease of implementation we treat productions '2' and '3' as the same thing.\n // (i.e. they're both BinaryExpressions with an assignment operator in it).\n // First, do the simple check if we have a YieldExpression (production '6').\n if (isYieldExpression()) {\n return parseYieldExpression();\n }\n // Then, check if we have an arrow function (production '4' and '5') that starts with a parenthesized\n // parameter list or is an async arrow function.\n // AsyncArrowFunctionExpression:\n // 1) async[no LineTerminator here]AsyncArrowBindingIdentifier[?Yield][no LineTerminator here]=>AsyncConciseBody[?In]\n // 2) CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await][no LineTerminator here]=>AsyncConciseBody[?In]\n // Production (1) of AsyncArrowFunctionExpression is parsed in \"tryParseAsyncSimpleArrowFunctionExpression\".\n // And production (2) is parsed in \"tryParseParenthesizedArrowFunctionExpression\".\n //\n // If we do successfully parse arrow-function, we must *not* recurse for productions 1, 2 or 3. An ArrowFunction is\n // not a LeftHandSideExpression, nor does it start a ConditionalExpression. So we are done\n // with AssignmentExpression if we see one.\n var arrowExpression = tryParseParenthesizedArrowFunctionExpression() || tryParseAsyncSimpleArrowFunctionExpression();\n if (arrowExpression) {\n return arrowExpression;\n }\n // Now try to see if we're in production '1', '2' or '3'. A conditional expression can\n // start with a LogicalOrExpression, while the assignment productions can only start with\n // LeftHandSideExpressions.\n //\n // So, first, we try to just parse out a BinaryExpression. If we get something that is a\n // LeftHandSide or higher, then we can try to parse out the assignment expression part.\n // Otherwise, we try to parse out the conditional expression bit. We want to allow any\n // binary expression here, so we pass in the 'lowest' precedence here so that it matches\n // and consumes anything.\n var pos = getNodePos();\n var expr = parseBinaryExpressionOrHigher(0 /* Lowest */);\n // To avoid a look-ahead, we did not handle the case of an arrow function with a single un-parenthesized\n // parameter ('x => ...') above. We handle it here by checking if the parsed expression was a single\n // identifier and the current token is an arrow.\n if (expr.kind === 79 /* Identifier */ && token() === 38 /* EqualsGreaterThanToken */) {\n return parseSimpleArrowFunctionExpression(pos, expr, /*asyncModifier*/ undefined);\n }\n // Now see if we might be in cases '2' or '3'.\n // If the expression was a LHS expression, and we have an assignment operator, then\n // we're in '2' or '3'. Consume the assignment and return.\n //\n // Note: we call reScanGreaterToken so that we get an appropriately merged token\n // for cases like `> > =` becoming `>>=`\n if (ts.isLeftHandSideExpression(expr) && ts.isAssignmentOperator(reScanGreaterToken())) {\n return makeBinaryExpression(expr, parseTokenNode(), parseAssignmentExpressionOrHigher(), pos);\n }\n // It wasn't an assignment or a lambda. This is a conditional expression:\n return parseConditionalExpressionRest(expr, pos);\n }\n function isYieldExpression() {\n if (token() === 125 /* YieldKeyword */) {\n // If we have a 'yield' keyword, and this is a context where yield expressions are\n // allowed, then definitely parse out a yield expression.\n if (inYieldContext()) {\n return true;\n }\n // We're in a context where 'yield expr' is not allowed. However, if we can\n // definitely tell that the user was trying to parse a 'yield expr' and not\n // just a normal expr that start with a 'yield' identifier, then parse out\n // a 'yield expr'. We can then report an error later that they are only\n // allowed in generator expressions.\n //\n // for example, if we see 'yield(foo)', then we'll have to treat that as an\n // invocation expression of something called 'yield'. However, if we have\n // 'yield foo' then that is not legal as a normal expression, so we can\n // definitely recognize this as a yield expression.\n //\n // for now we just check if the next token is an identifier. More heuristics\n // can be added here later as necessary. We just need to make sure that we\n // don't accidentally consume something legal.\n return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine);\n }\n return false;\n }\n function nextTokenIsIdentifierOnSameLine() {\n nextToken();\n return !scanner.hasPrecedingLineBreak() && isIdentifier();\n }\n function parseYieldExpression() {\n var pos = getNodePos();\n // YieldExpression[In] :\n // yield\n // yield [no LineTerminator here] [Lexical goal InputElementRegExp]AssignmentExpression[?In, Yield]\n // yield [no LineTerminator here] * [Lexical goal InputElementRegExp]AssignmentExpression[?In, Yield]\n nextToken();\n if (!scanner.hasPrecedingLineBreak() &&\n (token() === 41 /* AsteriskToken */ || isStartOfExpression())) {\n return finishNode(factory.createYieldExpression(parseOptionalToken(41 /* AsteriskToken */), parseAssignmentExpressionOrHigher()), pos);\n }\n else {\n // if the next token is not on the same line as yield. or we don't have an '*' or\n // the start of an expression, then this is just a simple \"yield\" expression.\n return finishNode(factory.createYieldExpression(/*asteriskToken*/ undefined, /*expression*/ undefined), pos);\n }\n }\n function parseSimpleArrowFunctionExpression(pos, identifier, asyncModifier) {\n ts.Debug.assert(token() === 38 /* EqualsGreaterThanToken */, \"parseSimpleArrowFunctionExpression should only have been called if we had a =>\");\n var parameter = factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, identifier, \n /*questionToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined);\n finishNode(parameter, identifier.pos);\n var parameters = createNodeArray([parameter], parameter.pos, parameter.end);\n var equalsGreaterThanToken = parseExpectedToken(38 /* EqualsGreaterThanToken */);\n var body = parseArrowFunctionExpressionBody(/*isAsync*/ !!asyncModifier);\n var node = factory.createArrowFunction(asyncModifier, /*typeParameters*/ undefined, parameters, /*type*/ undefined, equalsGreaterThanToken, body);\n return addJSDocComment(finishNode(node, pos));\n }\n function tryParseParenthesizedArrowFunctionExpression() {\n var triState = isParenthesizedArrowFunctionExpression();\n if (triState === 0 /* False */) {\n // It's definitely not a parenthesized arrow function expression.\n return undefined;\n }\n // If we definitely have an arrow function, then we can just parse one, not requiring a\n // following => or { token. Otherwise, we *might* have an arrow function. Try to parse\n // it out, but don't allow any ambiguity, and return 'undefined' if this could be an\n // expression instead.\n return triState === 1 /* True */ ?\n parseParenthesizedArrowFunctionExpression(/*allowAmbiguity*/ true) :\n tryParse(parsePossibleParenthesizedArrowFunctionExpression);\n }\n // True -> We definitely expect a parenthesized arrow function here.\n // False -> There *cannot* be a parenthesized arrow function here.\n // Unknown -> There *might* be a parenthesized arrow function here.\n // Speculatively look ahead to be sure, and rollback if not.\n function isParenthesizedArrowFunctionExpression() {\n if (token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */ || token() === 130 /* AsyncKeyword */) {\n return lookAhead(isParenthesizedArrowFunctionExpressionWorker);\n }\n if (token() === 38 /* EqualsGreaterThanToken */) {\n // ERROR RECOVERY TWEAK:\n // If we see a standalone => try to parse it as an arrow function expression as that's\n // likely what the user intended to write.\n return 1 /* True */;\n }\n // Definitely not a parenthesized arrow function.\n return 0 /* False */;\n }\n function isParenthesizedArrowFunctionExpressionWorker() {\n if (token() === 130 /* AsyncKeyword */) {\n nextToken();\n if (scanner.hasPrecedingLineBreak()) {\n return 0 /* False */;\n }\n if (token() !== 20 /* OpenParenToken */ && token() !== 29 /* LessThanToken */) {\n return 0 /* False */;\n }\n }\n var first = token();\n var second = nextToken();\n if (first === 20 /* OpenParenToken */) {\n if (second === 21 /* CloseParenToken */) {\n // Simple cases: \"() =>\", \"(): \", and \"() {\".\n // This is an arrow function with no parameters.\n // The last one is not actually an arrow function,\n // but this is probably what the user intended.\n var third = nextToken();\n switch (third) {\n case 38 /* EqualsGreaterThanToken */:\n case 58 /* ColonToken */:\n case 18 /* OpenBraceToken */:\n return 1 /* True */;\n default:\n return 0 /* False */;\n }\n }\n // If encounter \"([\" or \"({\", this could be the start of a binding pattern.\n // Examples:\n // ([ x ]) => { }\n // ({ x }) => { }\n // ([ x ])\n // ({ x })\n if (second === 22 /* OpenBracketToken */ || second === 18 /* OpenBraceToken */) {\n return 2 /* Unknown */;\n }\n // Simple case: \"(...\"\n // This is an arrow function with a rest parameter.\n if (second === 25 /* DotDotDotToken */) {\n return 1 /* True */;\n }\n // Check for \"(xxx yyy\", where xxx is a modifier and yyy is an identifier. This\n // isn't actually allowed, but we want to treat it as a lambda so we can provide\n // a good error message.\n if (ts.isModifierKind(second) && second !== 130 /* AsyncKeyword */ && lookAhead(nextTokenIsIdentifier)) {\n return 1 /* True */;\n }\n // If we had \"(\" followed by something that's not an identifier,\n // then this definitely doesn't look like a lambda. \"this\" is not\n // valid, but we want to parse it and then give a semantic error.\n if (!isIdentifier() && second !== 108 /* ThisKeyword */) {\n return 0 /* False */;\n }\n switch (nextToken()) {\n case 58 /* ColonToken */:\n // If we have something like \"(a:\", then we must have a\n // type-annotated parameter in an arrow function expression.\n return 1 /* True */;\n case 57 /* QuestionToken */:\n nextToken();\n // If we have \"(a?:\" or \"(a?,\" or \"(a?=\" or \"(a?)\" then it is definitely a lambda.\n if (token() === 58 /* ColonToken */ || token() === 27 /* CommaToken */ || token() === 63 /* EqualsToken */ || token() === 21 /* CloseParenToken */) {\n return 1 /* True */;\n }\n // Otherwise it is definitely not a lambda.\n return 0 /* False */;\n case 27 /* CommaToken */:\n case 63 /* EqualsToken */:\n case 21 /* CloseParenToken */:\n // If we have \"(a,\" or \"(a=\" or \"(a)\" this *could* be an arrow function\n return 2 /* Unknown */;\n }\n // It is definitely not an arrow function\n return 0 /* False */;\n }\n else {\n ts.Debug.assert(first === 29 /* LessThanToken */);\n // If we have \"<\" not followed by an identifier,\n // then this definitely is not an arrow function.\n if (!isIdentifier()) {\n return 0 /* False */;\n }\n // JSX overrides\n if (languageVariant === 1 /* JSX */) {\n var isArrowFunctionInJsx = lookAhead(function () {\n var third = nextToken();\n if (third === 94 /* ExtendsKeyword */) {\n var fourth = nextToken();\n switch (fourth) {\n case 63 /* EqualsToken */:\n case 31 /* GreaterThanToken */:\n return false;\n default:\n return true;\n }\n }\n else if (third === 27 /* CommaToken */) {\n return true;\n }\n return false;\n });\n if (isArrowFunctionInJsx) {\n return 1 /* True */;\n }\n return 0 /* False */;\n }\n // This *could* be a parenthesized arrow function.\n return 2 /* Unknown */;\n }\n }\n function parsePossibleParenthesizedArrowFunctionExpression() {\n var tokenPos = scanner.getTokenPos();\n if (notParenthesizedArrow === null || notParenthesizedArrow === void 0 ? void 0 : notParenthesizedArrow.has(tokenPos)) {\n return undefined;\n }\n var result = parseParenthesizedArrowFunctionExpression(/*allowAmbiguity*/ false);\n if (!result) {\n (notParenthesizedArrow || (notParenthesizedArrow = new ts.Set())).add(tokenPos);\n }\n return result;\n }\n function tryParseAsyncSimpleArrowFunctionExpression() {\n // We do a check here so that we won't be doing unnecessarily call to \"lookAhead\"\n if (token() === 130 /* AsyncKeyword */) {\n if (lookAhead(isUnParenthesizedAsyncArrowFunctionWorker) === 1 /* True */) {\n var pos = getNodePos();\n var asyncModifier = parseModifiersForArrowFunction();\n var expr = parseBinaryExpressionOrHigher(0 /* Lowest */);\n return parseSimpleArrowFunctionExpression(pos, expr, asyncModifier);\n }\n }\n return undefined;\n }\n function isUnParenthesizedAsyncArrowFunctionWorker() {\n // AsyncArrowFunctionExpression:\n // 1) async[no LineTerminator here]AsyncArrowBindingIdentifier[?Yield][no LineTerminator here]=>AsyncConciseBody[?In]\n // 2) CoverCallExpressionAndAsyncArrowHead[?Yield, ?Await][no LineTerminator here]=>AsyncConciseBody[?In]\n if (token() === 130 /* AsyncKeyword */) {\n nextToken();\n // If the \"async\" is followed by \"=>\" token then it is not a beginning of an async arrow-function\n // but instead a simple arrow-function which will be parsed inside \"parseAssignmentExpressionOrHigher\"\n if (scanner.hasPrecedingLineBreak() || token() === 38 /* EqualsGreaterThanToken */) {\n return 0 /* False */;\n }\n // Check for un-parenthesized AsyncArrowFunction\n var expr = parseBinaryExpressionOrHigher(0 /* Lowest */);\n if (!scanner.hasPrecedingLineBreak() && expr.kind === 79 /* Identifier */ && token() === 38 /* EqualsGreaterThanToken */) {\n return 1 /* True */;\n }\n }\n return 0 /* False */;\n }\n function parseParenthesizedArrowFunctionExpression(allowAmbiguity) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var modifiers = parseModifiersForArrowFunction();\n var isAsync = ts.some(modifiers, ts.isAsyncModifier) ? 2 /* Await */ : 0 /* None */;\n // Arrow functions are never generators.\n //\n // If we're speculatively parsing a signature for a parenthesized arrow function, then\n // we have to have a complete parameter list. Otherwise we might see something like\n // a => (b => c)\n // And think that \"(b =>\" was actually a parenthesized arrow function with a missing\n // close paren.\n var typeParameters = parseTypeParameters();\n var parameters;\n if (!parseExpected(20 /* OpenParenToken */)) {\n if (!allowAmbiguity) {\n return undefined;\n }\n parameters = createMissingList();\n }\n else {\n parameters = parseParametersWorker(isAsync);\n if (!parseExpected(21 /* CloseParenToken */) && !allowAmbiguity) {\n return undefined;\n }\n }\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n if (type && !allowAmbiguity && typeHasArrowFunctionBlockingParseError(type)) {\n return undefined;\n }\n // Parsing a signature isn't enough.\n // Parenthesized arrow signatures often look like other valid expressions.\n // For instance:\n // - \"(x = 10)\" is an assignment expression parsed as a signature with a default parameter value.\n // - \"(x,y)\" is a comma expression parsed as a signature with two parameters.\n // - \"a ? (b): c\" will have \"(b):\" parsed as a signature with a return type annotation.\n // - \"a ? (b): function() {}\" will too, since function() is a valid JSDoc function type.\n //\n // So we need just a bit of lookahead to ensure that it can only be a signature.\n var hasJSDocFunctionType = type && ts.isJSDocFunctionType(type);\n if (!allowAmbiguity && token() !== 38 /* EqualsGreaterThanToken */ && (hasJSDocFunctionType || token() !== 18 /* OpenBraceToken */)) {\n // Returning undefined here will cause our caller to rewind to where we started from.\n return undefined;\n }\n // If we have an arrow, then try to parse the body. Even if not, try to parse if we\n // have an opening brace, just in case we're in an error state.\n var lastToken = token();\n var equalsGreaterThanToken = parseExpectedToken(38 /* EqualsGreaterThanToken */);\n var body = (lastToken === 38 /* EqualsGreaterThanToken */ || lastToken === 18 /* OpenBraceToken */)\n ? parseArrowFunctionExpressionBody(ts.some(modifiers, ts.isAsyncModifier))\n : parseIdentifier();\n var node = factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanToken, body);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseArrowFunctionExpressionBody(isAsync) {\n if (token() === 18 /* OpenBraceToken */) {\n return parseFunctionBlock(isAsync ? 2 /* Await */ : 0 /* None */);\n }\n if (token() !== 26 /* SemicolonToken */ &&\n token() !== 98 /* FunctionKeyword */ &&\n token() !== 84 /* ClassKeyword */ &&\n isStartOfStatement() &&\n !isStartOfExpressionStatement()) {\n // Check if we got a plain statement (i.e. no expression-statements, no function/class expressions/declarations)\n //\n // Here we try to recover from a potential error situation in the case where the\n // user meant to supply a block. For example, if the user wrote:\n //\n // a =>\n // let v = 0;\n // }\n //\n // they may be missing an open brace. Check to see if that's the case so we can\n // try to recover better. If we don't do this, then the next close curly we see may end\n // up preemptively closing the containing construct.\n //\n // Note: even when 'IgnoreMissingOpenBrace' is passed, parseBody will still error.\n return parseFunctionBlock(16 /* IgnoreMissingOpenBrace */ | (isAsync ? 2 /* Await */ : 0 /* None */));\n }\n var savedTopLevel = topLevel;\n topLevel = false;\n var node = isAsync\n ? doInAwaitContext(parseAssignmentExpressionOrHigher)\n : doOutsideOfAwaitContext(parseAssignmentExpressionOrHigher);\n topLevel = savedTopLevel;\n return node;\n }\n function parseConditionalExpressionRest(leftOperand, pos) {\n // Note: we are passed in an expression which was produced from parseBinaryExpressionOrHigher.\n var questionToken = parseOptionalToken(57 /* QuestionToken */);\n if (!questionToken) {\n return leftOperand;\n }\n // Note: we explicitly 'allowIn' in the whenTrue part of the condition expression, and\n // we do not that for the 'whenFalse' part.\n var colonToken;\n return finishNode(factory.createConditionalExpression(leftOperand, questionToken, doOutsideOfContext(disallowInAndDecoratorContext, parseAssignmentExpressionOrHigher), colonToken = parseExpectedToken(58 /* ColonToken */), ts.nodeIsPresent(colonToken)\n ? parseAssignmentExpressionOrHigher()\n : createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ false, ts.Diagnostics._0_expected, ts.tokenToString(58 /* ColonToken */))), pos);\n }\n function parseBinaryExpressionOrHigher(precedence) {\n var pos = getNodePos();\n var leftOperand = parseUnaryExpressionOrHigher();\n return parseBinaryExpressionRest(precedence, leftOperand, pos);\n }\n function isInOrOfKeyword(t) {\n return t === 101 /* InKeyword */ || t === 158 /* OfKeyword */;\n }\n function parseBinaryExpressionRest(precedence, leftOperand, pos) {\n while (true) {\n // We either have a binary operator here, or we're finished. We call\n // reScanGreaterToken so that we merge token sequences like > and = into >=\n reScanGreaterToken();\n var newPrecedence = ts.getBinaryOperatorPrecedence(token());\n // Check the precedence to see if we should \"take\" this operator\n // - For left associative operator (all operator but **), consume the operator,\n // recursively call the function below, and parse binaryExpression as a rightOperand\n // of the caller if the new precedence of the operator is greater then or equal to the current precedence.\n // For example:\n // a - b - c;\n // ^token; leftOperand = b. Return b to the caller as a rightOperand\n // a * b - c\n // ^token; leftOperand = b. Return b to the caller as a rightOperand\n // a - b * c;\n // ^token; leftOperand = b. Return b * c to the caller as a rightOperand\n // - For right associative operator (**), consume the operator, recursively call the function\n // and parse binaryExpression as a rightOperand of the caller if the new precedence of\n // the operator is strictly grater than the current precedence\n // For example:\n // a ** b ** c;\n // ^^token; leftOperand = b. Return b ** c to the caller as a rightOperand\n // a - b ** c;\n // ^^token; leftOperand = b. Return b ** c to the caller as a rightOperand\n // a ** b - c\n // ^token; leftOperand = b. Return b to the caller as a rightOperand\n var consumeCurrentOperator = token() === 42 /* AsteriskAsteriskToken */ ?\n newPrecedence >= precedence :\n newPrecedence > precedence;\n if (!consumeCurrentOperator) {\n break;\n }\n if (token() === 101 /* InKeyword */ && inDisallowInContext()) {\n break;\n }\n if (token() === 127 /* AsKeyword */) {\n // Make sure we *do* perform ASI for constructs like this:\n // var x = foo\n // as (Bar)\n // This should be parsed as an initialized variable, followed\n // by a function call to 'as' with the argument 'Bar'\n if (scanner.hasPrecedingLineBreak()) {\n break;\n }\n else {\n nextToken();\n leftOperand = makeAsExpression(leftOperand, parseType());\n }\n }\n else {\n leftOperand = makeBinaryExpression(leftOperand, parseTokenNode(), parseBinaryExpressionOrHigher(newPrecedence), pos);\n }\n }\n return leftOperand;\n }\n function isBinaryOperator() {\n if (inDisallowInContext() && token() === 101 /* InKeyword */) {\n return false;\n }\n return ts.getBinaryOperatorPrecedence(token()) > 0;\n }\n function makeBinaryExpression(left, operatorToken, right, pos) {\n return finishNode(factory.createBinaryExpression(left, operatorToken, right), pos);\n }\n function makeAsExpression(left, right) {\n return finishNode(factory.createAsExpression(left, right), left.pos);\n }\n function parsePrefixUnaryExpression() {\n var pos = getNodePos();\n return finishNode(factory.createPrefixUnaryExpression(token(), nextTokenAnd(parseSimpleUnaryExpression)), pos);\n }\n function parseDeleteExpression() {\n var pos = getNodePos();\n return finishNode(factory.createDeleteExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n }\n function parseTypeOfExpression() {\n var pos = getNodePos();\n return finishNode(factory.createTypeOfExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n }\n function parseVoidExpression() {\n var pos = getNodePos();\n return finishNode(factory.createVoidExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n }\n function isAwaitExpression() {\n if (token() === 131 /* AwaitKeyword */) {\n if (inAwaitContext()) {\n return true;\n }\n // here we are using similar heuristics as 'isYieldExpression'\n return lookAhead(nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine);\n }\n return false;\n }\n function parseAwaitExpression() {\n var pos = getNodePos();\n return finishNode(factory.createAwaitExpression(nextTokenAnd(parseSimpleUnaryExpression)), pos);\n }\n /**\n * Parse ES7 exponential expression and await expression\n *\n * ES7 ExponentiationExpression:\n * 1) UnaryExpression[?Yield]\n * 2) UpdateExpression[?Yield] ** ExponentiationExpression[?Yield]\n *\n */\n function parseUnaryExpressionOrHigher() {\n /**\n * ES7 UpdateExpression:\n * 1) LeftHandSideExpression[?Yield]\n * 2) LeftHandSideExpression[?Yield][no LineTerminator here]++\n * 3) LeftHandSideExpression[?Yield][no LineTerminator here]--\n * 4) ++UnaryExpression[?Yield]\n * 5) --UnaryExpression[?Yield]\n */\n if (isUpdateExpression()) {\n var pos = getNodePos();\n var updateExpression = parseUpdateExpression();\n return token() === 42 /* AsteriskAsteriskToken */ ?\n parseBinaryExpressionRest(ts.getBinaryOperatorPrecedence(token()), updateExpression, pos) :\n updateExpression;\n }\n /**\n * ES7 UnaryExpression:\n * 1) UpdateExpression[?yield]\n * 2) delete UpdateExpression[?yield]\n * 3) void UpdateExpression[?yield]\n * 4) typeof UpdateExpression[?yield]\n * 5) + UpdateExpression[?yield]\n * 6) - UpdateExpression[?yield]\n * 7) ~ UpdateExpression[?yield]\n * 8) ! UpdateExpression[?yield]\n */\n var unaryOperator = token();\n var simpleUnaryExpression = parseSimpleUnaryExpression();\n if (token() === 42 /* AsteriskAsteriskToken */) {\n var pos = ts.skipTrivia(sourceText, simpleUnaryExpression.pos);\n var end = simpleUnaryExpression.end;\n if (simpleUnaryExpression.kind === 209 /* TypeAssertionExpression */) {\n parseErrorAt(pos, end, ts.Diagnostics.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses);\n }\n else {\n parseErrorAt(pos, end, ts.Diagnostics.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses, ts.tokenToString(unaryOperator));\n }\n }\n return simpleUnaryExpression;\n }\n /**\n * Parse ES7 simple-unary expression or higher:\n *\n * ES7 UnaryExpression:\n * 1) UpdateExpression[?yield]\n * 2) delete UnaryExpression[?yield]\n * 3) void UnaryExpression[?yield]\n * 4) typeof UnaryExpression[?yield]\n * 5) + UnaryExpression[?yield]\n * 6) - UnaryExpression[?yield]\n * 7) ~ UnaryExpression[?yield]\n * 8) ! UnaryExpression[?yield]\n * 9) [+Await] await UnaryExpression[?yield]\n */\n function parseSimpleUnaryExpression() {\n switch (token()) {\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n case 53 /* ExclamationToken */:\n return parsePrefixUnaryExpression();\n case 89 /* DeleteKeyword */:\n return parseDeleteExpression();\n case 112 /* TypeOfKeyword */:\n return parseTypeOfExpression();\n case 114 /* VoidKeyword */:\n return parseVoidExpression();\n case 29 /* LessThanToken */:\n // This is modified UnaryExpression grammar in TypeScript\n // UnaryExpression (modified):\n // < type > UnaryExpression\n return parseTypeAssertion();\n case 131 /* AwaitKeyword */:\n if (isAwaitExpression()) {\n return parseAwaitExpression();\n }\n // falls through\n default:\n return parseUpdateExpression();\n }\n }\n /**\n * Check if the current token can possibly be an ES7 increment expression.\n *\n * ES7 UpdateExpression:\n * LeftHandSideExpression[?Yield]\n * LeftHandSideExpression[?Yield][no LineTerminator here]++\n * LeftHandSideExpression[?Yield][no LineTerminator here]--\n * ++LeftHandSideExpression[?Yield]\n * --LeftHandSideExpression[?Yield]\n */\n function isUpdateExpression() {\n // This function is called inside parseUnaryExpression to decide\n // whether to call parseSimpleUnaryExpression or call parseUpdateExpression directly\n switch (token()) {\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n case 53 /* ExclamationToken */:\n case 89 /* DeleteKeyword */:\n case 112 /* TypeOfKeyword */:\n case 114 /* VoidKeyword */:\n case 131 /* AwaitKeyword */:\n return false;\n case 29 /* LessThanToken */:\n // If we are not in JSX context, we are parsing TypeAssertion which is an UnaryExpression\n if (languageVariant !== 1 /* JSX */) {\n return false;\n }\n // We are in JSX context and the token is part of JSXElement.\n // falls through\n default:\n return true;\n }\n }\n /**\n * Parse ES7 UpdateExpression. UpdateExpression is used instead of ES6's PostFixExpression.\n *\n * ES7 UpdateExpression[yield]:\n * 1) LeftHandSideExpression[?yield]\n * 2) LeftHandSideExpression[?yield] [[no LineTerminator here]]++\n * 3) LeftHandSideExpression[?yield] [[no LineTerminator here]]--\n * 4) ++LeftHandSideExpression[?yield]\n * 5) --LeftHandSideExpression[?yield]\n * In TypeScript (2), (3) are parsed as PostfixUnaryExpression. (4), (5) are parsed as PrefixUnaryExpression\n */\n function parseUpdateExpression() {\n if (token() === 45 /* PlusPlusToken */ || token() === 46 /* MinusMinusToken */) {\n var pos = getNodePos();\n return finishNode(factory.createPrefixUnaryExpression(token(), nextTokenAnd(parseLeftHandSideExpressionOrHigher)), pos);\n }\n else if (languageVariant === 1 /* JSX */ && token() === 29 /* LessThanToken */ && lookAhead(nextTokenIsIdentifierOrKeywordOrGreaterThan)) {\n // JSXElement is part of primaryExpression\n return parseJsxElementOrSelfClosingElementOrFragment(/*inExpressionContext*/ true);\n }\n var expression = parseLeftHandSideExpressionOrHigher();\n ts.Debug.assert(ts.isLeftHandSideExpression(expression));\n if ((token() === 45 /* PlusPlusToken */ || token() === 46 /* MinusMinusToken */) && !scanner.hasPrecedingLineBreak()) {\n var operator = token();\n nextToken();\n return finishNode(factory.createPostfixUnaryExpression(expression, operator), expression.pos);\n }\n return expression;\n }\n function parseLeftHandSideExpressionOrHigher() {\n // Original Ecma:\n // LeftHandSideExpression: See 11.2\n // NewExpression\n // CallExpression\n //\n // Our simplification:\n //\n // LeftHandSideExpression: See 11.2\n // MemberExpression\n // CallExpression\n //\n // See comment in parseMemberExpressionOrHigher on how we replaced NewExpression with\n // MemberExpression to make our lives easier.\n //\n // to best understand the below code, it's important to see how CallExpression expands\n // out into its own productions:\n //\n // CallExpression:\n // MemberExpression Arguments\n // CallExpression Arguments\n // CallExpression[Expression]\n // CallExpression.IdentifierName\n // import (AssignmentExpression)\n // super Arguments\n // super.IdentifierName\n //\n // Because of the recursion in these calls, we need to bottom out first. There are three\n // bottom out states we can run into: 1) We see 'super' which must start either of\n // the last two CallExpression productions. 2) We see 'import' which must start import call.\n // 3)we have a MemberExpression which either completes the LeftHandSideExpression,\n // or starts the beginning of the first four CallExpression productions.\n var pos = getNodePos();\n var expression;\n if (token() === 100 /* ImportKeyword */) {\n if (lookAhead(nextTokenIsOpenParenOrLessThan)) {\n // We don't want to eagerly consume all import keyword as import call expression so we look ahead to find \"(\"\n // For example:\n // var foo3 = require(\"subfolder\n // import * as foo1 from \"module-from-node\n // We want this import to be a statement rather than import call expression\n sourceFlags |= 1048576 /* PossiblyContainsDynamicImport */;\n expression = parseTokenNode();\n }\n else if (lookAhead(nextTokenIsDot)) {\n // This is an 'import.*' metaproperty (i.e. 'import.meta')\n nextToken(); // advance past the 'import'\n nextToken(); // advance past the dot\n expression = finishNode(factory.createMetaProperty(100 /* ImportKeyword */, parseIdentifierName()), pos);\n sourceFlags |= 2097152 /* PossiblyContainsImportMeta */;\n }\n else {\n expression = parseMemberExpressionOrHigher();\n }\n }\n else {\n expression = token() === 106 /* SuperKeyword */ ? parseSuperExpression() : parseMemberExpressionOrHigher();\n }\n // Now, we *may* be complete. However, we might have consumed the start of a\n // CallExpression or OptionalExpression. As such, we need to consume the rest\n // of it here to be complete.\n return parseCallExpressionRest(pos, expression);\n }\n function parseMemberExpressionOrHigher() {\n // Note: to make our lives simpler, we decompose the NewExpression productions and\n // place ObjectCreationExpression and FunctionExpression into PrimaryExpression.\n // like so:\n //\n // PrimaryExpression : See 11.1\n // this\n // Identifier\n // Literal\n // ArrayLiteral\n // ObjectLiteral\n // (Expression)\n // FunctionExpression\n // new MemberExpression Arguments?\n //\n // MemberExpression : See 11.2\n // PrimaryExpression\n // MemberExpression[Expression]\n // MemberExpression.IdentifierName\n //\n // CallExpression : See 11.2\n // MemberExpression\n // CallExpression Arguments\n // CallExpression[Expression]\n // CallExpression.IdentifierName\n //\n // Technically this is ambiguous. i.e. CallExpression defines:\n //\n // CallExpression:\n // CallExpression Arguments\n //\n // If you see: \"new Foo()\"\n //\n // Then that could be treated as a single ObjectCreationExpression, or it could be\n // treated as the invocation of \"new Foo\". We disambiguate that in code (to match\n // the original grammar) by making sure that if we see an ObjectCreationExpression\n // we always consume arguments if they are there. So we treat \"new Foo()\" as an\n // object creation only, and not at all as an invocation. Another way to think\n // about this is that for every \"new\" that we see, we will consume an argument list if\n // it is there as part of the *associated* object creation node. Any additional\n // argument lists we see, will become invocation expressions.\n //\n // Because there are no other places in the grammar now that refer to FunctionExpression\n // or ObjectCreationExpression, it is safe to push down into the PrimaryExpression\n // production.\n //\n // Because CallExpression and MemberExpression are left recursive, we need to bottom out\n // of the recursion immediately. So we parse out a primary expression to start with.\n var pos = getNodePos();\n var expression = parsePrimaryExpression();\n return parseMemberExpressionRest(pos, expression, /*allowOptionalChain*/ true);\n }\n function parseSuperExpression() {\n var pos = getNodePos();\n var expression = parseTokenNode();\n if (token() === 29 /* LessThanToken */) {\n var startPos = getNodePos();\n var typeArguments = tryParse(parseTypeArgumentsInExpression);\n if (typeArguments !== undefined) {\n parseErrorAt(startPos, getNodePos(), ts.Diagnostics.super_may_not_use_type_arguments);\n }\n }\n if (token() === 20 /* OpenParenToken */ || token() === 24 /* DotToken */ || token() === 22 /* OpenBracketToken */) {\n return expression;\n }\n // If we have seen \"super\" it must be followed by '(' or '.'.\n // If it wasn't then just try to parse out a '.' and report an error.\n parseExpectedToken(24 /* DotToken */, ts.Diagnostics.super_must_be_followed_by_an_argument_list_or_member_access);\n // private names will never work with `super` (`super.#foo`), but that's a semantic error, not syntactic\n return finishNode(factory.createPropertyAccessExpression(expression, parseRightSideOfDot(/*allowIdentifierNames*/ true, /*allowPrivateIdentifiers*/ true)), pos);\n }\n function parseJsxElementOrSelfClosingElementOrFragment(inExpressionContext, topInvalidNodePosition, openingTag) {\n var pos = getNodePos();\n var opening = parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext);\n var result;\n if (opening.kind === 278 /* JsxOpeningElement */) {\n var children = parseJsxChildren(opening);\n var closingElement = void 0;\n var lastChild = children[children.length - 1];\n if ((lastChild === null || lastChild === void 0 ? void 0 : lastChild.kind) === 276 /* JsxElement */\n && !tagNamesAreEquivalent(lastChild.openingElement.tagName, lastChild.closingElement.tagName)\n && tagNamesAreEquivalent(opening.tagName, lastChild.closingElement.tagName)) {\n // when an unclosed JsxOpeningElement incorrectly parses its parent's JsxClosingElement,\n // restructure (
(...
)) --> (
(...)
)\n // (no need to error; the parent will error)\n var end = lastChild.openingElement.end; // newly-created children and closing are both zero-width end/end\n var newLast = finishNode(factory.createJsxElement(lastChild.openingElement, createNodeArray([], end, end), finishNode(factory.createJsxClosingElement(finishNode(factory.createIdentifier(\"\"), end, end)), end, end)), lastChild.openingElement.pos, end);\n children = createNodeArray(__spreadArray(__spreadArray([], children.slice(0, children.length - 1), true), [newLast], false), children.pos, end);\n closingElement = lastChild.closingElement;\n }\n else {\n closingElement = parseJsxClosingElement(opening, inExpressionContext);\n if (!tagNamesAreEquivalent(opening.tagName, closingElement.tagName)) {\n if (openingTag && ts.isJsxOpeningElement(openingTag) && tagNamesAreEquivalent(closingElement.tagName, openingTag.tagName)) {\n // opening incorrectly matched with its parent's closing -- put error on opening\n parseErrorAtRange(opening.tagName, ts.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, ts.getTextOfNodeFromSourceText(sourceText, opening.tagName));\n }\n else {\n // other opening/closing mismatches -- put error on closing\n parseErrorAtRange(closingElement.tagName, ts.Diagnostics.Expected_corresponding_JSX_closing_tag_for_0, ts.getTextOfNodeFromSourceText(sourceText, opening.tagName));\n }\n }\n }\n result = finishNode(factory.createJsxElement(opening, children, closingElement), pos);\n }\n else if (opening.kind === 281 /* JsxOpeningFragment */) {\n result = finishNode(factory.createJsxFragment(opening, parseJsxChildren(opening), parseJsxClosingFragment(inExpressionContext)), pos);\n }\n else {\n ts.Debug.assert(opening.kind === 277 /* JsxSelfClosingElement */);\n // Nothing else to do for self-closing elements\n result = opening;\n }\n // If the user writes the invalid code '
' in an expression context (i.e. not wrapped in\n // an enclosing tag), we'll naively try to parse ^ this as a 'less than' operator and the remainder of the tag\n // as garbage, which will cause the formatter to badly mangle the JSX. Perform a speculative parse of a JSX\n // element if we see a < token so that we can wrap it in a synthetic binary expression so the formatter\n // does less damage and we can report a better error.\n // Since JSX elements are invalid < operands anyway, this lookahead parse will only occur in error scenarios\n // of one sort or another.\n if (inExpressionContext && token() === 29 /* LessThanToken */) {\n var topBadPos_1 = typeof topInvalidNodePosition === \"undefined\" ? result.pos : topInvalidNodePosition;\n var invalidElement = tryParse(function () { return parseJsxElementOrSelfClosingElementOrFragment(/*inExpressionContext*/ true, topBadPos_1); });\n if (invalidElement) {\n var operatorToken = createMissingNode(27 /* CommaToken */, /*reportAtCurrentPosition*/ false);\n ts.setTextRangePosWidth(operatorToken, invalidElement.pos, 0);\n parseErrorAt(ts.skipTrivia(sourceText, topBadPos_1), invalidElement.end, ts.Diagnostics.JSX_expressions_must_have_one_parent_element);\n return finishNode(factory.createBinaryExpression(result, operatorToken, invalidElement), pos);\n }\n }\n return result;\n }\n function parseJsxText() {\n var pos = getNodePos();\n var node = factory.createJsxText(scanner.getTokenValue(), currentToken === 12 /* JsxTextAllWhiteSpaces */);\n currentToken = scanner.scanJsxToken();\n return finishNode(node, pos);\n }\n function parseJsxChild(openingTag, token) {\n switch (token) {\n case 1 /* EndOfFileToken */:\n // If we hit EOF, issue the error at the tag that lacks the closing element\n // rather than at the end of the file (which is useless)\n if (ts.isJsxOpeningFragment(openingTag)) {\n parseErrorAtRange(openingTag, ts.Diagnostics.JSX_fragment_has_no_corresponding_closing_tag);\n }\n else {\n // We want the error span to cover only 'Foo.Bar' in < Foo.Bar >\n // or to cover only 'Foo' in < Foo >\n var tag = openingTag.tagName;\n var start = ts.skipTrivia(sourceText, tag.pos);\n parseErrorAt(start, tag.end, ts.Diagnostics.JSX_element_0_has_no_corresponding_closing_tag, ts.getTextOfNodeFromSourceText(sourceText, openingTag.tagName));\n }\n return undefined;\n case 30 /* LessThanSlashToken */:\n case 7 /* ConflictMarkerTrivia */:\n return undefined;\n case 11 /* JsxText */:\n case 12 /* JsxTextAllWhiteSpaces */:\n return parseJsxText();\n case 18 /* OpenBraceToken */:\n return parseJsxExpression(/*inExpressionContext*/ false);\n case 29 /* LessThanToken */:\n return parseJsxElementOrSelfClosingElementOrFragment(/*inExpressionContext*/ false, /*topInvalidNodePosition*/ undefined, openingTag);\n default:\n return ts.Debug.assertNever(token);\n }\n }\n function parseJsxChildren(openingTag) {\n var list = [];\n var listPos = getNodePos();\n var saveParsingContext = parsingContext;\n parsingContext |= 1 << 14 /* JsxChildren */;\n while (true) {\n var child = parseJsxChild(openingTag, currentToken = scanner.reScanJsxToken());\n if (!child)\n break;\n list.push(child);\n if (ts.isJsxOpeningElement(openingTag)\n && (child === null || child === void 0 ? void 0 : child.kind) === 276 /* JsxElement */\n && !tagNamesAreEquivalent(child.openingElement.tagName, child.closingElement.tagName)\n && tagNamesAreEquivalent(openingTag.tagName, child.closingElement.tagName)) {\n // stop after parsing a mismatched child like
...(
) in order to reattach the higher\n break;\n }\n }\n parsingContext = saveParsingContext;\n return createNodeArray(list, listPos);\n }\n function parseJsxAttributes() {\n var pos = getNodePos();\n return finishNode(factory.createJsxAttributes(parseList(13 /* JsxAttributes */, parseJsxAttribute)), pos);\n }\n function parseJsxOpeningOrSelfClosingElementOrOpeningFragment(inExpressionContext) {\n var pos = getNodePos();\n parseExpected(29 /* LessThanToken */);\n if (token() === 31 /* GreaterThanToken */) {\n // See below for explanation of scanJsxText\n scanJsxText();\n return finishNode(factory.createJsxOpeningFragment(), pos);\n }\n var tagName = parseJsxElementName();\n var typeArguments = (contextFlags & 131072 /* JavaScriptFile */) === 0 ? tryParseTypeArguments() : undefined;\n var attributes = parseJsxAttributes();\n var node;\n if (token() === 31 /* GreaterThanToken */) {\n // Closing tag, so scan the immediately-following text with the JSX scanning instead\n // of regular scanning to avoid treating illegal characters (e.g. '#') as immediate\n // scanning errors\n scanJsxText();\n node = factory.createJsxOpeningElement(tagName, typeArguments, attributes);\n }\n else {\n parseExpected(43 /* SlashToken */);\n if (parseExpected(31 /* GreaterThanToken */, /*diagnostic*/ undefined, /*shouldAdvance*/ false)) {\n // manually advance the scanner in order to look for jsx text inside jsx\n if (inExpressionContext) {\n nextToken();\n }\n else {\n scanJsxText();\n }\n }\n node = factory.createJsxSelfClosingElement(tagName, typeArguments, attributes);\n }\n return finishNode(node, pos);\n }\n function parseJsxElementName() {\n var pos = getNodePos();\n scanJsxIdentifier();\n // JsxElement can have name in the form of\n // propertyAccessExpression\n // primaryExpression in the form of an identifier and \"this\" keyword\n // We can't just simply use parseLeftHandSideExpressionOrHigher because then we will start consider class,function etc as a keyword\n // We only want to consider \"this\" as a primaryExpression\n var expression = token() === 108 /* ThisKeyword */ ?\n parseTokenNode() : parseIdentifierName();\n while (parseOptional(24 /* DotToken */)) {\n expression = finishNode(factory.createPropertyAccessExpression(expression, parseRightSideOfDot(/*allowIdentifierNames*/ true, /*allowPrivateIdentifiers*/ false)), pos);\n }\n return expression;\n }\n function parseJsxExpression(inExpressionContext) {\n var pos = getNodePos();\n if (!parseExpected(18 /* OpenBraceToken */)) {\n return undefined;\n }\n var dotDotDotToken;\n var expression;\n if (token() !== 19 /* CloseBraceToken */) {\n dotDotDotToken = parseOptionalToken(25 /* DotDotDotToken */);\n // Only an AssignmentExpression is valid here per the JSX spec,\n // but we can unambiguously parse a comma sequence and provide\n // a better error message in grammar checking.\n expression = parseExpression();\n }\n if (inExpressionContext) {\n parseExpected(19 /* CloseBraceToken */);\n }\n else {\n if (parseExpected(19 /* CloseBraceToken */, /*message*/ undefined, /*shouldAdvance*/ false)) {\n scanJsxText();\n }\n }\n return finishNode(factory.createJsxExpression(dotDotDotToken, expression), pos);\n }\n function parseJsxAttribute() {\n if (token() === 18 /* OpenBraceToken */) {\n return parseJsxSpreadAttribute();\n }\n scanJsxIdentifier();\n var pos = getNodePos();\n return finishNode(factory.createJsxAttribute(parseIdentifierName(), token() !== 63 /* EqualsToken */ ? undefined :\n scanJsxAttributeValue() === 10 /* StringLiteral */ ? parseLiteralNode() :\n parseJsxExpression(/*inExpressionContext*/ true)), pos);\n }\n function parseJsxSpreadAttribute() {\n var pos = getNodePos();\n parseExpected(18 /* OpenBraceToken */);\n parseExpected(25 /* DotDotDotToken */);\n var expression = parseExpression();\n parseExpected(19 /* CloseBraceToken */);\n return finishNode(factory.createJsxSpreadAttribute(expression), pos);\n }\n function parseJsxClosingElement(open, inExpressionContext) {\n var pos = getNodePos();\n parseExpected(30 /* LessThanSlashToken */);\n var tagName = parseJsxElementName();\n if (parseExpected(31 /* GreaterThanToken */, /*diagnostic*/ undefined, /*shouldAdvance*/ false)) {\n // manually advance the scanner in order to look for jsx text inside jsx\n if (inExpressionContext || !tagNamesAreEquivalent(open.tagName, tagName)) {\n nextToken();\n }\n else {\n scanJsxText();\n }\n }\n return finishNode(factory.createJsxClosingElement(tagName), pos);\n }\n function parseJsxClosingFragment(inExpressionContext) {\n var pos = getNodePos();\n parseExpected(30 /* LessThanSlashToken */);\n if (ts.tokenIsIdentifierOrKeyword(token())) {\n parseErrorAtRange(parseJsxElementName(), ts.Diagnostics.Expected_corresponding_closing_tag_for_JSX_fragment);\n }\n if (parseExpected(31 /* GreaterThanToken */, /*diagnostic*/ undefined, /*shouldAdvance*/ false)) {\n // manually advance the scanner in order to look for jsx text inside jsx\n if (inExpressionContext) {\n nextToken();\n }\n else {\n scanJsxText();\n }\n }\n return finishNode(factory.createJsxJsxClosingFragment(), pos);\n }\n function parseTypeAssertion() {\n var pos = getNodePos();\n parseExpected(29 /* LessThanToken */);\n var type = parseType();\n parseExpected(31 /* GreaterThanToken */);\n var expression = parseSimpleUnaryExpression();\n return finishNode(factory.createTypeAssertion(type, expression), pos);\n }\n function nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate() {\n nextToken();\n return ts.tokenIsIdentifierOrKeyword(token())\n || token() === 22 /* OpenBracketToken */\n || isTemplateStartOfTaggedTemplate();\n }\n function isStartOfOptionalPropertyOrElementAccessChain() {\n return token() === 28 /* QuestionDotToken */\n && lookAhead(nextTokenIsIdentifierOrKeywordOrOpenBracketOrTemplate);\n }\n function tryReparseOptionalChain(node) {\n if (node.flags & 32 /* OptionalChain */) {\n return true;\n }\n // check for an optional chain in a non-null expression\n if (ts.isNonNullExpression(node)) {\n var expr = node.expression;\n while (ts.isNonNullExpression(expr) && !(expr.flags & 32 /* OptionalChain */)) {\n expr = expr.expression;\n }\n if (expr.flags & 32 /* OptionalChain */) {\n // this is part of an optional chain. Walk down from `node` to `expression` and set the flag.\n while (ts.isNonNullExpression(node)) {\n node.flags |= 32 /* OptionalChain */;\n node = node.expression;\n }\n return true;\n }\n }\n return false;\n }\n function parsePropertyAccessExpressionRest(pos, expression, questionDotToken) {\n var name = parseRightSideOfDot(/*allowIdentifierNames*/ true, /*allowPrivateIdentifiers*/ true);\n var isOptionalChain = questionDotToken || tryReparseOptionalChain(expression);\n var propertyAccess = isOptionalChain ?\n factory.createPropertyAccessChain(expression, questionDotToken, name) :\n factory.createPropertyAccessExpression(expression, name);\n if (isOptionalChain && ts.isPrivateIdentifier(propertyAccess.name)) {\n parseErrorAtRange(propertyAccess.name, ts.Diagnostics.An_optional_chain_cannot_contain_private_identifiers);\n }\n return finishNode(propertyAccess, pos);\n }\n function parseElementAccessExpressionRest(pos, expression, questionDotToken) {\n var argumentExpression;\n if (token() === 23 /* CloseBracketToken */) {\n argumentExpression = createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.An_element_access_expression_should_take_an_argument);\n }\n else {\n var argument = allowInAnd(parseExpression);\n if (ts.isStringOrNumericLiteralLike(argument)) {\n argument.text = internIdentifier(argument.text);\n }\n argumentExpression = argument;\n }\n parseExpected(23 /* CloseBracketToken */);\n var indexedAccess = questionDotToken || tryReparseOptionalChain(expression) ?\n factory.createElementAccessChain(expression, questionDotToken, argumentExpression) :\n factory.createElementAccessExpression(expression, argumentExpression);\n return finishNode(indexedAccess, pos);\n }\n function parseMemberExpressionRest(pos, expression, allowOptionalChain) {\n while (true) {\n var questionDotToken = void 0;\n var isPropertyAccess = false;\n if (allowOptionalChain && isStartOfOptionalPropertyOrElementAccessChain()) {\n questionDotToken = parseExpectedToken(28 /* QuestionDotToken */);\n isPropertyAccess = ts.tokenIsIdentifierOrKeyword(token());\n }\n else {\n isPropertyAccess = parseOptional(24 /* DotToken */);\n }\n if (isPropertyAccess) {\n expression = parsePropertyAccessExpressionRest(pos, expression, questionDotToken);\n continue;\n }\n if (!questionDotToken && token() === 53 /* ExclamationToken */ && !scanner.hasPrecedingLineBreak()) {\n nextToken();\n expression = finishNode(factory.createNonNullExpression(expression), pos);\n continue;\n }\n // when in the [Decorator] context, we do not parse ElementAccess as it could be part of a ComputedPropertyName\n if ((questionDotToken || !inDecoratorContext()) && parseOptional(22 /* OpenBracketToken */)) {\n expression = parseElementAccessExpressionRest(pos, expression, questionDotToken);\n continue;\n }\n if (isTemplateStartOfTaggedTemplate()) {\n expression = parseTaggedTemplateRest(pos, expression, questionDotToken, /*typeArguments*/ undefined);\n continue;\n }\n return expression;\n }\n }\n function isTemplateStartOfTaggedTemplate() {\n return token() === 14 /* NoSubstitutionTemplateLiteral */ || token() === 15 /* TemplateHead */;\n }\n function parseTaggedTemplateRest(pos, tag, questionDotToken, typeArguments) {\n var tagExpression = factory.createTaggedTemplateExpression(tag, typeArguments, token() === 14 /* NoSubstitutionTemplateLiteral */ ?\n (reScanTemplateHeadOrNoSubstitutionTemplate(), parseLiteralNode()) :\n parseTemplateExpression(/*isTaggedTemplate*/ true));\n if (questionDotToken || tag.flags & 32 /* OptionalChain */) {\n tagExpression.flags |= 32 /* OptionalChain */;\n }\n tagExpression.questionDotToken = questionDotToken;\n return finishNode(tagExpression, pos);\n }\n function parseCallExpressionRest(pos, expression) {\n while (true) {\n expression = parseMemberExpressionRest(pos, expression, /*allowOptionalChain*/ true);\n var questionDotToken = parseOptionalToken(28 /* QuestionDotToken */);\n // handle 'foo<()'\n // parse template arguments only in TypeScript files (not in JavaScript files).\n if ((contextFlags & 131072 /* JavaScriptFile */) === 0 && (token() === 29 /* LessThanToken */ || token() === 47 /* LessThanLessThanToken */)) {\n // See if this is the start of a generic invocation. If so, consume it and\n // keep checking for postfix expressions. Otherwise, it's just a '<' that's\n // part of an arithmetic expression. Break out so we consume it higher in the\n // stack.\n var typeArguments = tryParse(parseTypeArgumentsInExpression);\n if (typeArguments) {\n if (isTemplateStartOfTaggedTemplate()) {\n expression = parseTaggedTemplateRest(pos, expression, questionDotToken, typeArguments);\n continue;\n }\n var argumentList = parseArgumentList();\n var callExpr = questionDotToken || tryReparseOptionalChain(expression) ?\n factory.createCallChain(expression, questionDotToken, typeArguments, argumentList) :\n factory.createCallExpression(expression, typeArguments, argumentList);\n expression = finishNode(callExpr, pos);\n continue;\n }\n }\n else if (token() === 20 /* OpenParenToken */) {\n var argumentList = parseArgumentList();\n var callExpr = questionDotToken || tryReparseOptionalChain(expression) ?\n factory.createCallChain(expression, questionDotToken, /*typeArguments*/ undefined, argumentList) :\n factory.createCallExpression(expression, /*typeArguments*/ undefined, argumentList);\n expression = finishNode(callExpr, pos);\n continue;\n }\n if (questionDotToken) {\n // We failed to parse anything, so report a missing identifier here.\n var name = createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ false, ts.Diagnostics.Identifier_expected);\n expression = finishNode(factory.createPropertyAccessChain(expression, questionDotToken, name), pos);\n }\n break;\n }\n return expression;\n }\n function parseArgumentList() {\n parseExpected(20 /* OpenParenToken */);\n var result = parseDelimitedList(11 /* ArgumentExpressions */, parseArgumentExpression);\n parseExpected(21 /* CloseParenToken */);\n return result;\n }\n function parseTypeArgumentsInExpression() {\n if ((contextFlags & 131072 /* JavaScriptFile */) !== 0) {\n // TypeArguments must not be parsed in JavaScript files to avoid ambiguity with binary operators.\n return undefined;\n }\n if (reScanLessThanToken() !== 29 /* LessThanToken */) {\n return undefined;\n }\n nextToken();\n var typeArguments = parseDelimitedList(20 /* TypeArguments */, parseType);\n if (!parseExpected(31 /* GreaterThanToken */)) {\n // If it doesn't have the closing `>` then it's definitely not an type argument list.\n return undefined;\n }\n // If we have a '<', then only parse this as a argument list if the type arguments\n // are complete and we have an open paren. if we don't, rewind and return nothing.\n return typeArguments && canFollowTypeArgumentsInExpression()\n ? typeArguments\n : undefined;\n }\n function canFollowTypeArgumentsInExpression() {\n switch (token()) {\n case 20 /* OpenParenToken */: // foo(\n case 14 /* NoSubstitutionTemplateLiteral */: // foo `...`\n case 15 /* TemplateHead */: // foo `...${100}...`\n // these are the only tokens can legally follow a type argument\n // list. So we definitely want to treat them as type arg lists.\n // falls through\n case 24 /* DotToken */: // foo.\n case 21 /* CloseParenToken */: // foo)\n case 23 /* CloseBracketToken */: // foo]\n case 58 /* ColonToken */: // foo:\n case 26 /* SemicolonToken */: // foo;\n case 57 /* QuestionToken */: // foo?\n case 34 /* EqualsEqualsToken */: // foo ==\n case 36 /* EqualsEqualsEqualsToken */: // foo ===\n case 35 /* ExclamationEqualsToken */: // foo !=\n case 37 /* ExclamationEqualsEqualsToken */: // foo !==\n case 55 /* AmpersandAmpersandToken */: // foo &&\n case 56 /* BarBarToken */: // foo ||\n case 60 /* QuestionQuestionToken */: // foo ??\n case 52 /* CaretToken */: // foo ^\n case 50 /* AmpersandToken */: // foo &\n case 51 /* BarToken */: // foo |\n case 19 /* CloseBraceToken */: // foo }\n case 1 /* EndOfFileToken */: // foo\n // these cases can't legally follow a type arg list. However, they're not legal\n // expressions either. The user is probably in the middle of a generic type. So\n // treat it as such.\n return true;\n case 27 /* CommaToken */: // foo,\n case 18 /* OpenBraceToken */: // foo {\n // We don't want to treat these as type arguments. Otherwise we'll parse this\n // as an invocation expression. Instead, we want to parse out the expression\n // in isolation from the type arguments.\n // falls through\n default:\n // Anything else treat as an expression.\n return false;\n }\n }\n function parsePrimaryExpression() {\n switch (token()) {\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return parseLiteralNode();\n case 108 /* ThisKeyword */:\n case 106 /* SuperKeyword */:\n case 104 /* NullKeyword */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n return parseTokenNode();\n case 20 /* OpenParenToken */:\n return parseParenthesizedExpression();\n case 22 /* OpenBracketToken */:\n return parseArrayLiteralExpression();\n case 18 /* OpenBraceToken */:\n return parseObjectLiteralExpression();\n case 130 /* AsyncKeyword */:\n // Async arrow functions are parsed earlier in parseAssignmentExpressionOrHigher.\n // If we encounter `async [no LineTerminator here] function` then this is an async\n // function; otherwise, its an identifier.\n if (!lookAhead(nextTokenIsFunctionKeywordOnSameLine)) {\n break;\n }\n return parseFunctionExpression();\n case 84 /* ClassKeyword */:\n return parseClassExpression();\n case 98 /* FunctionKeyword */:\n return parseFunctionExpression();\n case 103 /* NewKeyword */:\n return parseNewExpressionOrNewDotTarget();\n case 43 /* SlashToken */:\n case 68 /* SlashEqualsToken */:\n if (reScanSlashToken() === 13 /* RegularExpressionLiteral */) {\n return parseLiteralNode();\n }\n break;\n case 15 /* TemplateHead */:\n return parseTemplateExpression(/* isTaggedTemplate */ false);\n }\n return parseIdentifier(ts.Diagnostics.Expression_expected);\n }\n function parseParenthesizedExpression() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(20 /* OpenParenToken */);\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n return withJSDoc(finishNode(factory.createParenthesizedExpression(expression), pos), hasJSDoc);\n }\n function parseSpreadElement() {\n var pos = getNodePos();\n parseExpected(25 /* DotDotDotToken */);\n var expression = parseAssignmentExpressionOrHigher();\n return finishNode(factory.createSpreadElement(expression), pos);\n }\n function parseArgumentOrArrayLiteralElement() {\n return token() === 25 /* DotDotDotToken */ ? parseSpreadElement() :\n token() === 27 /* CommaToken */ ? finishNode(factory.createOmittedExpression(), getNodePos()) :\n parseAssignmentExpressionOrHigher();\n }\n function parseArgumentExpression() {\n return doOutsideOfContext(disallowInAndDecoratorContext, parseArgumentOrArrayLiteralElement);\n }\n function parseArrayLiteralExpression() {\n var pos = getNodePos();\n parseExpected(22 /* OpenBracketToken */);\n var multiLine = scanner.hasPrecedingLineBreak();\n var elements = parseDelimitedList(15 /* ArrayLiteralMembers */, parseArgumentOrArrayLiteralElement);\n parseExpected(23 /* CloseBracketToken */);\n return finishNode(factory.createArrayLiteralExpression(elements, multiLine), pos);\n }\n function parseObjectLiteralElement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n if (parseOptionalToken(25 /* DotDotDotToken */)) {\n var expression = parseAssignmentExpressionOrHigher();\n return withJSDoc(finishNode(factory.createSpreadAssignment(expression), pos), hasJSDoc);\n }\n var decorators = parseDecorators();\n var modifiers = parseModifiers();\n if (parseContextualModifier(135 /* GetKeyword */)) {\n return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, 170 /* GetAccessor */);\n }\n if (parseContextualModifier(147 /* SetKeyword */)) {\n return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, 171 /* SetAccessor */);\n }\n var asteriskToken = parseOptionalToken(41 /* AsteriskToken */);\n var tokenIsIdentifier = isIdentifier();\n var name = parsePropertyName();\n // Disallowing of optional property assignments and definite assignment assertion happens in the grammar checker.\n var questionToken = parseOptionalToken(57 /* QuestionToken */);\n var exclamationToken = parseOptionalToken(53 /* ExclamationToken */);\n if (asteriskToken || token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */) {\n return parseMethodDeclaration(pos, hasJSDoc, decorators, modifiers, asteriskToken, name, questionToken, exclamationToken);\n }\n // check if it is short-hand property assignment or normal property assignment\n // NOTE: if token is EqualsToken it is interpreted as CoverInitializedName production\n // CoverInitializedName[Yield] :\n // IdentifierReference[?Yield] Initializer[In, ?Yield]\n // this is necessary because ObjectLiteral productions are also used to cover grammar for ObjectAssignmentPattern\n var node;\n var isShorthandPropertyAssignment = tokenIsIdentifier && (token() !== 58 /* ColonToken */);\n if (isShorthandPropertyAssignment) {\n var equalsToken = parseOptionalToken(63 /* EqualsToken */);\n var objectAssignmentInitializer = equalsToken ? allowInAnd(parseAssignmentExpressionOrHigher) : undefined;\n node = factory.createShorthandPropertyAssignment(name, objectAssignmentInitializer);\n // Save equals token for error reporting.\n // TODO(rbuckton): Consider manufacturing this when we need to report an error as it is otherwise not useful.\n node.equalsToken = equalsToken;\n }\n else {\n parseExpected(58 /* ColonToken */);\n var initializer = allowInAnd(parseAssignmentExpressionOrHigher);\n node = factory.createPropertyAssignment(name, initializer);\n }\n // Decorators, Modifiers, questionToken, and exclamationToken are not supported by property assignments and are reported in the grammar checker\n node.decorators = decorators;\n node.modifiers = modifiers;\n node.questionToken = questionToken;\n node.exclamationToken = exclamationToken;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseObjectLiteralExpression() {\n var pos = getNodePos();\n var openBracePosition = scanner.getTokenPos();\n parseExpected(18 /* OpenBraceToken */);\n var multiLine = scanner.hasPrecedingLineBreak();\n var properties = parseDelimitedList(12 /* ObjectLiteralMembers */, parseObjectLiteralElement, /*considerSemicolonAsDelimiter*/ true);\n if (!parseExpected(19 /* CloseBraceToken */)) {\n var lastError = ts.lastOrUndefined(parseDiagnostics);\n if (lastError && lastError.code === ts.Diagnostics._0_expected.code) {\n ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, openBracePosition, 1, ts.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here));\n }\n }\n return finishNode(factory.createObjectLiteralExpression(properties, multiLine), pos);\n }\n function parseFunctionExpression() {\n // GeneratorExpression:\n // function* BindingIdentifier [Yield][opt](FormalParameters[Yield]){ GeneratorBody }\n //\n // FunctionExpression:\n // function BindingIdentifier[opt](FormalParameters){ FunctionBody }\n var savedDecoratorContext = inDecoratorContext();\n setDecoratorContext(/*val*/ false);\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var modifiers = parseModifiers();\n parseExpected(98 /* FunctionKeyword */);\n var asteriskToken = parseOptionalToken(41 /* AsteriskToken */);\n var isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */;\n var isAsync = ts.some(modifiers, ts.isAsyncModifier) ? 2 /* Await */ : 0 /* None */;\n var name = isGenerator && isAsync ? doInYieldAndAwaitContext(parseOptionalBindingIdentifier) :\n isGenerator ? doInYieldContext(parseOptionalBindingIdentifier) :\n isAsync ? doInAwaitContext(parseOptionalBindingIdentifier) :\n parseOptionalBindingIdentifier();\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(isGenerator | isAsync);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n var body = parseFunctionBlock(isGenerator | isAsync);\n setDecoratorContext(savedDecoratorContext);\n var node = factory.createFunctionExpression(modifiers, asteriskToken, name, typeParameters, parameters, type, body);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseOptionalBindingIdentifier() {\n return isBindingIdentifier() ? parseBindingIdentifier() : undefined;\n }\n function parseNewExpressionOrNewDotTarget() {\n var pos = getNodePos();\n parseExpected(103 /* NewKeyword */);\n if (parseOptional(24 /* DotToken */)) {\n var name = parseIdentifierName();\n return finishNode(factory.createMetaProperty(103 /* NewKeyword */, name), pos);\n }\n var expressionPos = getNodePos();\n var expression = parsePrimaryExpression();\n var typeArguments;\n while (true) {\n expression = parseMemberExpressionRest(expressionPos, expression, /*allowOptionalChain*/ false);\n typeArguments = tryParse(parseTypeArgumentsInExpression);\n if (isTemplateStartOfTaggedTemplate()) {\n ts.Debug.assert(!!typeArguments, \"Expected a type argument list; all plain tagged template starts should be consumed in 'parseMemberExpressionRest'\");\n expression = parseTaggedTemplateRest(expressionPos, expression, /*optionalChain*/ undefined, typeArguments);\n typeArguments = undefined;\n }\n break;\n }\n var argumentsArray;\n if (token() === 20 /* OpenParenToken */) {\n argumentsArray = parseArgumentList();\n }\n else if (typeArguments) {\n parseErrorAt(pos, scanner.getStartPos(), ts.Diagnostics.A_new_expression_with_type_arguments_must_always_be_followed_by_a_parenthesized_argument_list);\n }\n return finishNode(factory.createNewExpression(expression, typeArguments, argumentsArray), pos);\n }\n // STATEMENTS\n function parseBlock(ignoreMissingOpenBrace, diagnosticMessage) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var openBracePosition = scanner.getTokenPos();\n if (parseExpected(18 /* OpenBraceToken */, diagnosticMessage) || ignoreMissingOpenBrace) {\n var multiLine = scanner.hasPrecedingLineBreak();\n var statements = parseList(1 /* BlockStatements */, parseStatement);\n if (!parseExpected(19 /* CloseBraceToken */)) {\n var lastError = ts.lastOrUndefined(parseDiagnostics);\n if (lastError && lastError.code === ts.Diagnostics._0_expected.code) {\n ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, openBracePosition, 1, ts.Diagnostics.The_parser_expected_to_find_a_to_match_the_token_here));\n }\n }\n var result = withJSDoc(finishNode(factory.createBlock(statements, multiLine), pos), hasJSDoc);\n if (token() === 63 /* EqualsToken */) {\n parseErrorAtCurrentToken(ts.Diagnostics.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_the_whole_assignment_in_parentheses);\n nextToken();\n }\n return result;\n }\n else {\n var statements = createMissingList();\n return withJSDoc(finishNode(factory.createBlock(statements, /*multiLine*/ undefined), pos), hasJSDoc);\n }\n }\n function parseFunctionBlock(flags, diagnosticMessage) {\n var savedYieldContext = inYieldContext();\n setYieldContext(!!(flags & 1 /* Yield */));\n var savedAwaitContext = inAwaitContext();\n setAwaitContext(!!(flags & 2 /* Await */));\n var savedTopLevel = topLevel;\n topLevel = false;\n // We may be in a [Decorator] context when parsing a function expression or\n // arrow function. The body of the function is not in [Decorator] context.\n var saveDecoratorContext = inDecoratorContext();\n if (saveDecoratorContext) {\n setDecoratorContext(/*val*/ false);\n }\n var block = parseBlock(!!(flags & 16 /* IgnoreMissingOpenBrace */), diagnosticMessage);\n if (saveDecoratorContext) {\n setDecoratorContext(/*val*/ true);\n }\n topLevel = savedTopLevel;\n setYieldContext(savedYieldContext);\n setAwaitContext(savedAwaitContext);\n return block;\n }\n function parseEmptyStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(26 /* SemicolonToken */);\n return withJSDoc(finishNode(factory.createEmptyStatement(), pos), hasJSDoc);\n }\n function parseIfStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(99 /* IfKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n var thenStatement = parseStatement();\n var elseStatement = parseOptional(91 /* ElseKeyword */) ? parseStatement() : undefined;\n return withJSDoc(finishNode(factory.createIfStatement(expression, thenStatement, elseStatement), pos), hasJSDoc);\n }\n function parseDoStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(90 /* DoKeyword */);\n var statement = parseStatement();\n parseExpected(115 /* WhileKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n // From: https://mail.mozilla.org/pipermail/es-discuss/2011-August/016188.html\n // 157 min --- All allen at wirfs-brock.com CONF --- \"do{;}while(false)false\" prohibited in\n // spec but allowed in consensus reality. Approved -- this is the de-facto standard whereby\n // do;while(0)x will have a semicolon inserted before x.\n parseOptional(26 /* SemicolonToken */);\n return withJSDoc(finishNode(factory.createDoStatement(statement, expression), pos), hasJSDoc);\n }\n function parseWhileStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(115 /* WhileKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n var statement = parseStatement();\n return withJSDoc(finishNode(factory.createWhileStatement(expression, statement), pos), hasJSDoc);\n }\n function parseForOrForInOrForOfStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(97 /* ForKeyword */);\n var awaitToken = parseOptionalToken(131 /* AwaitKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var initializer;\n if (token() !== 26 /* SemicolonToken */) {\n if (token() === 113 /* VarKeyword */ || token() === 119 /* LetKeyword */ || token() === 85 /* ConstKeyword */) {\n initializer = parseVariableDeclarationList(/*inForStatementInitializer*/ true);\n }\n else {\n initializer = disallowInAnd(parseExpression);\n }\n }\n var node;\n if (awaitToken ? parseExpected(158 /* OfKeyword */) : parseOptional(158 /* OfKeyword */)) {\n var expression = allowInAnd(parseAssignmentExpressionOrHigher);\n parseExpected(21 /* CloseParenToken */);\n node = factory.createForOfStatement(awaitToken, initializer, expression, parseStatement());\n }\n else if (parseOptional(101 /* InKeyword */)) {\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n node = factory.createForInStatement(initializer, expression, parseStatement());\n }\n else {\n parseExpected(26 /* SemicolonToken */);\n var condition = token() !== 26 /* SemicolonToken */ && token() !== 21 /* CloseParenToken */\n ? allowInAnd(parseExpression)\n : undefined;\n parseExpected(26 /* SemicolonToken */);\n var incrementor = token() !== 21 /* CloseParenToken */\n ? allowInAnd(parseExpression)\n : undefined;\n parseExpected(21 /* CloseParenToken */);\n node = factory.createForStatement(initializer, condition, incrementor, parseStatement());\n }\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseBreakOrContinueStatement(kind) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(kind === 244 /* BreakStatement */ ? 81 /* BreakKeyword */ : 86 /* ContinueKeyword */);\n var label = canParseSemicolon() ? undefined : parseIdentifier();\n parseSemicolon();\n var node = kind === 244 /* BreakStatement */\n ? factory.createBreakStatement(label)\n : factory.createContinueStatement(label);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseReturnStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(105 /* ReturnKeyword */);\n var expression = canParseSemicolon() ? undefined : allowInAnd(parseExpression);\n parseSemicolon();\n return withJSDoc(finishNode(factory.createReturnStatement(expression), pos), hasJSDoc);\n }\n function parseWithStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(116 /* WithKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n var statement = doInsideOfContext(16777216 /* InWithStatement */, parseStatement);\n return withJSDoc(finishNode(factory.createWithStatement(expression, statement), pos), hasJSDoc);\n }\n function parseCaseClause() {\n var pos = getNodePos();\n parseExpected(82 /* CaseKeyword */);\n var expression = allowInAnd(parseExpression);\n parseExpected(58 /* ColonToken */);\n var statements = parseList(3 /* SwitchClauseStatements */, parseStatement);\n return finishNode(factory.createCaseClause(expression, statements), pos);\n }\n function parseDefaultClause() {\n var pos = getNodePos();\n parseExpected(88 /* DefaultKeyword */);\n parseExpected(58 /* ColonToken */);\n var statements = parseList(3 /* SwitchClauseStatements */, parseStatement);\n return finishNode(factory.createDefaultClause(statements), pos);\n }\n function parseCaseOrDefaultClause() {\n return token() === 82 /* CaseKeyword */ ? parseCaseClause() : parseDefaultClause();\n }\n function parseCaseBlock() {\n var pos = getNodePos();\n parseExpected(18 /* OpenBraceToken */);\n var clauses = parseList(2 /* SwitchClauses */, parseCaseOrDefaultClause);\n parseExpected(19 /* CloseBraceToken */);\n return finishNode(factory.createCaseBlock(clauses), pos);\n }\n function parseSwitchStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(107 /* SwitchKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var expression = allowInAnd(parseExpression);\n parseExpected(21 /* CloseParenToken */);\n var caseBlock = parseCaseBlock();\n return withJSDoc(finishNode(factory.createSwitchStatement(expression, caseBlock), pos), hasJSDoc);\n }\n function parseThrowStatement() {\n // ThrowStatement[Yield] :\n // throw [no LineTerminator here]Expression[In, ?Yield];\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(109 /* ThrowKeyword */);\n // Because of automatic semicolon insertion, we need to report error if this\n // throw could be terminated with a semicolon. Note: we can't call 'parseExpression'\n // directly as that might consume an expression on the following line.\n // Instead, we create a \"missing\" identifier, but don't report an error. The actual error\n // will be reported in the grammar walker.\n var expression = scanner.hasPrecedingLineBreak() ? undefined : allowInAnd(parseExpression);\n if (expression === undefined) {\n identifierCount++;\n expression = finishNode(factory.createIdentifier(\"\"), getNodePos());\n }\n if (!tryParseSemicolon()) {\n parseErrorForMissingSemicolonAfter(expression);\n }\n return withJSDoc(finishNode(factory.createThrowStatement(expression), pos), hasJSDoc);\n }\n // TODO: Review for error recovery\n function parseTryStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(111 /* TryKeyword */);\n var tryBlock = parseBlock(/*ignoreMissingOpenBrace*/ false);\n var catchClause = token() === 83 /* CatchKeyword */ ? parseCatchClause() : undefined;\n // If we don't have a catch clause, then we must have a finally clause. Try to parse\n // one out no matter what.\n var finallyBlock;\n if (!catchClause || token() === 96 /* FinallyKeyword */) {\n parseExpected(96 /* FinallyKeyword */);\n finallyBlock = parseBlock(/*ignoreMissingOpenBrace*/ false);\n }\n return withJSDoc(finishNode(factory.createTryStatement(tryBlock, catchClause, finallyBlock), pos), hasJSDoc);\n }\n function parseCatchClause() {\n var pos = getNodePos();\n parseExpected(83 /* CatchKeyword */);\n var variableDeclaration;\n if (parseOptional(20 /* OpenParenToken */)) {\n variableDeclaration = parseVariableDeclaration();\n parseExpected(21 /* CloseParenToken */);\n }\n else {\n // Keep shape of node to avoid degrading performance.\n variableDeclaration = undefined;\n }\n var block = parseBlock(/*ignoreMissingOpenBrace*/ false);\n return finishNode(factory.createCatchClause(variableDeclaration, block), pos);\n }\n function parseDebuggerStatement() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n parseExpected(87 /* DebuggerKeyword */);\n parseSemicolon();\n return withJSDoc(finishNode(factory.createDebuggerStatement(), pos), hasJSDoc);\n }\n function parseExpressionOrLabeledStatement() {\n // Avoiding having to do the lookahead for a labeled statement by just trying to parse\n // out an expression, seeing if it is identifier and then seeing if it is followed by\n // a colon.\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var node;\n var hasParen = token() === 20 /* OpenParenToken */;\n var expression = allowInAnd(parseExpression);\n if (ts.isIdentifier(expression) && parseOptional(58 /* ColonToken */)) {\n node = factory.createLabeledStatement(expression, parseStatement());\n }\n else {\n if (!tryParseSemicolon()) {\n parseErrorForMissingSemicolonAfter(expression);\n }\n node = factory.createExpressionStatement(expression);\n if (hasParen) {\n // do not parse the same jsdoc twice\n hasJSDoc = false;\n }\n }\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function nextTokenIsIdentifierOrKeywordOnSameLine() {\n nextToken();\n return ts.tokenIsIdentifierOrKeyword(token()) && !scanner.hasPrecedingLineBreak();\n }\n function nextTokenIsClassKeywordOnSameLine() {\n nextToken();\n return token() === 84 /* ClassKeyword */ && !scanner.hasPrecedingLineBreak();\n }\n function nextTokenIsFunctionKeywordOnSameLine() {\n nextToken();\n return token() === 98 /* FunctionKeyword */ && !scanner.hasPrecedingLineBreak();\n }\n function nextTokenIsIdentifierOrKeywordOrLiteralOnSameLine() {\n nextToken();\n return (ts.tokenIsIdentifierOrKeyword(token()) || token() === 8 /* NumericLiteral */ || token() === 9 /* BigIntLiteral */ || token() === 10 /* StringLiteral */) && !scanner.hasPrecedingLineBreak();\n }\n function isDeclaration() {\n while (true) {\n switch (token()) {\n case 113 /* VarKeyword */:\n case 119 /* LetKeyword */:\n case 85 /* ConstKeyword */:\n case 98 /* FunctionKeyword */:\n case 84 /* ClassKeyword */:\n case 92 /* EnumKeyword */:\n return true;\n // 'declare', 'module', 'namespace', 'interface'* and 'type' are all legal JavaScript identifiers;\n // however, an identifier cannot be followed by another identifier on the same line. This is what we\n // count on to parse out the respective declarations. For instance, we exploit this to say that\n //\n // namespace n\n //\n // can be none other than the beginning of a namespace declaration, but need to respect that JavaScript sees\n //\n // namespace\n // n\n //\n // as the identifier 'namespace' on one line followed by the identifier 'n' on another.\n // We need to look one token ahead to see if it permissible to try parsing a declaration.\n //\n // *Note*: 'interface' is actually a strict mode reserved word. So while\n //\n // \"use strict\"\n // interface\n // I {}\n //\n // could be legal, it would add complexity for very little gain.\n case 118 /* InterfaceKeyword */:\n case 150 /* TypeKeyword */:\n return nextTokenIsIdentifierOnSameLine();\n case 140 /* ModuleKeyword */:\n case 141 /* NamespaceKeyword */:\n return nextTokenIsIdentifierOrStringLiteralOnSameLine();\n case 126 /* AbstractKeyword */:\n case 130 /* AsyncKeyword */:\n case 134 /* DeclareKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 123 /* PublicKeyword */:\n case 143 /* ReadonlyKeyword */:\n nextToken();\n // ASI takes effect for this modifier.\n if (scanner.hasPrecedingLineBreak()) {\n return false;\n }\n continue;\n case 155 /* GlobalKeyword */:\n nextToken();\n return token() === 18 /* OpenBraceToken */ || token() === 79 /* Identifier */ || token() === 93 /* ExportKeyword */;\n case 100 /* ImportKeyword */:\n nextToken();\n return token() === 10 /* StringLiteral */ || token() === 41 /* AsteriskToken */ ||\n token() === 18 /* OpenBraceToken */ || ts.tokenIsIdentifierOrKeyword(token());\n case 93 /* ExportKeyword */:\n var currentToken_1 = nextToken();\n if (currentToken_1 === 150 /* TypeKeyword */) {\n currentToken_1 = lookAhead(nextToken);\n }\n if (currentToken_1 === 63 /* EqualsToken */ || currentToken_1 === 41 /* AsteriskToken */ ||\n currentToken_1 === 18 /* OpenBraceToken */ || currentToken_1 === 88 /* DefaultKeyword */ ||\n currentToken_1 === 127 /* AsKeyword */) {\n return true;\n }\n continue;\n case 124 /* StaticKeyword */:\n nextToken();\n continue;\n default:\n return false;\n }\n }\n }\n function isStartOfDeclaration() {\n return lookAhead(isDeclaration);\n }\n function isStartOfStatement() {\n switch (token()) {\n case 59 /* AtToken */:\n case 26 /* SemicolonToken */:\n case 18 /* OpenBraceToken */:\n case 113 /* VarKeyword */:\n case 119 /* LetKeyword */:\n case 98 /* FunctionKeyword */:\n case 84 /* ClassKeyword */:\n case 92 /* EnumKeyword */:\n case 99 /* IfKeyword */:\n case 90 /* DoKeyword */:\n case 115 /* WhileKeyword */:\n case 97 /* ForKeyword */:\n case 86 /* ContinueKeyword */:\n case 81 /* BreakKeyword */:\n case 105 /* ReturnKeyword */:\n case 116 /* WithKeyword */:\n case 107 /* SwitchKeyword */:\n case 109 /* ThrowKeyword */:\n case 111 /* TryKeyword */:\n case 87 /* DebuggerKeyword */:\n // 'catch' and 'finally' do not actually indicate that the code is part of a statement,\n // however, we say they are here so that we may gracefully parse them and error later.\n // falls through\n case 83 /* CatchKeyword */:\n case 96 /* FinallyKeyword */:\n return true;\n case 100 /* ImportKeyword */:\n return isStartOfDeclaration() || lookAhead(nextTokenIsOpenParenOrLessThanOrDot);\n case 85 /* ConstKeyword */:\n case 93 /* ExportKeyword */:\n return isStartOfDeclaration();\n case 130 /* AsyncKeyword */:\n case 134 /* DeclareKeyword */:\n case 118 /* InterfaceKeyword */:\n case 140 /* ModuleKeyword */:\n case 141 /* NamespaceKeyword */:\n case 150 /* TypeKeyword */:\n case 155 /* GlobalKeyword */:\n // When these don't start a declaration, they're an identifier in an expression statement\n return true;\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 124 /* StaticKeyword */:\n case 143 /* ReadonlyKeyword */:\n // When these don't start a declaration, they may be the start of a class member if an identifier\n // immediately follows. Otherwise they're an identifier in an expression statement.\n return isStartOfDeclaration() || !lookAhead(nextTokenIsIdentifierOrKeywordOnSameLine);\n default:\n return isStartOfExpression();\n }\n }\n function nextTokenIsBindingIdentifierOrStartOfDestructuring() {\n nextToken();\n return isBindingIdentifier() || token() === 18 /* OpenBraceToken */ || token() === 22 /* OpenBracketToken */;\n }\n function isLetDeclaration() {\n // In ES6 'let' always starts a lexical declaration if followed by an identifier or {\n // or [.\n return lookAhead(nextTokenIsBindingIdentifierOrStartOfDestructuring);\n }\n function parseStatement() {\n switch (token()) {\n case 26 /* SemicolonToken */:\n return parseEmptyStatement();\n case 18 /* OpenBraceToken */:\n return parseBlock(/*ignoreMissingOpenBrace*/ false);\n case 113 /* VarKeyword */:\n return parseVariableStatement(getNodePos(), hasPrecedingJSDocComment(), /*decorators*/ undefined, /*modifiers*/ undefined);\n case 119 /* LetKeyword */:\n if (isLetDeclaration()) {\n return parseVariableStatement(getNodePos(), hasPrecedingJSDocComment(), /*decorators*/ undefined, /*modifiers*/ undefined);\n }\n break;\n case 98 /* FunctionKeyword */:\n return parseFunctionDeclaration(getNodePos(), hasPrecedingJSDocComment(), /*decorators*/ undefined, /*modifiers*/ undefined);\n case 84 /* ClassKeyword */:\n return parseClassDeclaration(getNodePos(), hasPrecedingJSDocComment(), /*decorators*/ undefined, /*modifiers*/ undefined);\n case 99 /* IfKeyword */:\n return parseIfStatement();\n case 90 /* DoKeyword */:\n return parseDoStatement();\n case 115 /* WhileKeyword */:\n return parseWhileStatement();\n case 97 /* ForKeyword */:\n return parseForOrForInOrForOfStatement();\n case 86 /* ContinueKeyword */:\n return parseBreakOrContinueStatement(243 /* ContinueStatement */);\n case 81 /* BreakKeyword */:\n return parseBreakOrContinueStatement(244 /* BreakStatement */);\n case 105 /* ReturnKeyword */:\n return parseReturnStatement();\n case 116 /* WithKeyword */:\n return parseWithStatement();\n case 107 /* SwitchKeyword */:\n return parseSwitchStatement();\n case 109 /* ThrowKeyword */:\n return parseThrowStatement();\n case 111 /* TryKeyword */:\n // Include 'catch' and 'finally' for error recovery.\n // falls through\n case 83 /* CatchKeyword */:\n case 96 /* FinallyKeyword */:\n return parseTryStatement();\n case 87 /* DebuggerKeyword */:\n return parseDebuggerStatement();\n case 59 /* AtToken */:\n return parseDeclaration();\n case 130 /* AsyncKeyword */:\n case 118 /* InterfaceKeyword */:\n case 150 /* TypeKeyword */:\n case 140 /* ModuleKeyword */:\n case 141 /* NamespaceKeyword */:\n case 134 /* DeclareKeyword */:\n case 85 /* ConstKeyword */:\n case 92 /* EnumKeyword */:\n case 93 /* ExportKeyword */:\n case 100 /* ImportKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 123 /* PublicKeyword */:\n case 126 /* AbstractKeyword */:\n case 124 /* StaticKeyword */:\n case 143 /* ReadonlyKeyword */:\n case 155 /* GlobalKeyword */:\n if (isStartOfDeclaration()) {\n return parseDeclaration();\n }\n break;\n }\n return parseExpressionOrLabeledStatement();\n }\n function isDeclareModifier(modifier) {\n return modifier.kind === 134 /* DeclareKeyword */;\n }\n function parseDeclaration() {\n // TODO: Can we hold onto the parsed decorators/modifiers and advance the scanner\n // if we can't reuse the declaration, so that we don't do this work twice?\n //\n // `parseListElement` attempted to get the reused node at this position,\n // but the ambient context flag was not yet set, so the node appeared\n // not reusable in that context.\n var isAmbient = ts.some(lookAhead(function () { return (parseDecorators(), parseModifiers()); }), isDeclareModifier);\n if (isAmbient) {\n var node = tryReuseAmbientDeclaration();\n if (node) {\n return node;\n }\n }\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var decorators = parseDecorators();\n var modifiers = parseModifiers();\n if (isAmbient) {\n for (var _i = 0, _a = modifiers; _i < _a.length; _i++) {\n var m = _a[_i];\n m.flags |= 8388608 /* Ambient */;\n }\n return doInsideOfContext(8388608 /* Ambient */, function () { return parseDeclarationWorker(pos, hasJSDoc, decorators, modifiers); });\n }\n else {\n return parseDeclarationWorker(pos, hasJSDoc, decorators, modifiers);\n }\n }\n function tryReuseAmbientDeclaration() {\n return doInsideOfContext(8388608 /* Ambient */, function () {\n var node = currentNode(parsingContext);\n if (node) {\n return consumeNode(node);\n }\n });\n }\n function parseDeclarationWorker(pos, hasJSDoc, decorators, modifiers) {\n switch (token()) {\n case 113 /* VarKeyword */:\n case 119 /* LetKeyword */:\n case 85 /* ConstKeyword */:\n return parseVariableStatement(pos, hasJSDoc, decorators, modifiers);\n case 98 /* FunctionKeyword */:\n return parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 84 /* ClassKeyword */:\n return parseClassDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 118 /* InterfaceKeyword */:\n return parseInterfaceDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 150 /* TypeKeyword */:\n return parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 92 /* EnumKeyword */:\n return parseEnumDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 155 /* GlobalKeyword */:\n case 140 /* ModuleKeyword */:\n case 141 /* NamespaceKeyword */:\n return parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 100 /* ImportKeyword */:\n return parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, decorators, modifiers);\n case 93 /* ExportKeyword */:\n nextToken();\n switch (token()) {\n case 88 /* DefaultKeyword */:\n case 63 /* EqualsToken */:\n return parseExportAssignment(pos, hasJSDoc, decorators, modifiers);\n case 127 /* AsKeyword */:\n return parseNamespaceExportDeclaration(pos, hasJSDoc, decorators, modifiers);\n default:\n return parseExportDeclaration(pos, hasJSDoc, decorators, modifiers);\n }\n default:\n if (decorators || modifiers) {\n // We reached this point because we encountered decorators and/or modifiers and assumed a declaration\n // would follow. For recovery and error reporting purposes, return an incomplete declaration.\n var missing = createMissingNode(274 /* MissingDeclaration */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Declaration_expected);\n ts.setTextRangePos(missing, pos);\n missing.decorators = decorators;\n missing.modifiers = modifiers;\n return missing;\n }\n return undefined; // TODO: GH#18217\n }\n }\n function nextTokenIsIdentifierOrStringLiteralOnSameLine() {\n nextToken();\n return !scanner.hasPrecedingLineBreak() && (isIdentifier() || token() === 10 /* StringLiteral */);\n }\n function parseFunctionBlockOrSemicolon(flags, diagnosticMessage) {\n if (token() !== 18 /* OpenBraceToken */ && canParseSemicolon()) {\n parseSemicolon();\n return;\n }\n return parseFunctionBlock(flags, diagnosticMessage);\n }\n // DECLARATIONS\n function parseArrayBindingElement() {\n var pos = getNodePos();\n if (token() === 27 /* CommaToken */) {\n return finishNode(factory.createOmittedExpression(), pos);\n }\n var dotDotDotToken = parseOptionalToken(25 /* DotDotDotToken */);\n var name = parseIdentifierOrPattern();\n var initializer = parseInitializer();\n return finishNode(factory.createBindingElement(dotDotDotToken, /*propertyName*/ undefined, name, initializer), pos);\n }\n function parseObjectBindingElement() {\n var pos = getNodePos();\n var dotDotDotToken = parseOptionalToken(25 /* DotDotDotToken */);\n var tokenIsIdentifier = isBindingIdentifier();\n var propertyName = parsePropertyName();\n var name;\n if (tokenIsIdentifier && token() !== 58 /* ColonToken */) {\n name = propertyName;\n propertyName = undefined;\n }\n else {\n parseExpected(58 /* ColonToken */);\n name = parseIdentifierOrPattern();\n }\n var initializer = parseInitializer();\n return finishNode(factory.createBindingElement(dotDotDotToken, propertyName, name, initializer), pos);\n }\n function parseObjectBindingPattern() {\n var pos = getNodePos();\n parseExpected(18 /* OpenBraceToken */);\n var elements = parseDelimitedList(9 /* ObjectBindingElements */, parseObjectBindingElement);\n parseExpected(19 /* CloseBraceToken */);\n return finishNode(factory.createObjectBindingPattern(elements), pos);\n }\n function parseArrayBindingPattern() {\n var pos = getNodePos();\n parseExpected(22 /* OpenBracketToken */);\n var elements = parseDelimitedList(10 /* ArrayBindingElements */, parseArrayBindingElement);\n parseExpected(23 /* CloseBracketToken */);\n return finishNode(factory.createArrayBindingPattern(elements), pos);\n }\n function isBindingIdentifierOrPrivateIdentifierOrPattern() {\n return token() === 18 /* OpenBraceToken */\n || token() === 22 /* OpenBracketToken */\n || token() === 80 /* PrivateIdentifier */\n || isBindingIdentifier();\n }\n function parseIdentifierOrPattern(privateIdentifierDiagnosticMessage) {\n if (token() === 22 /* OpenBracketToken */) {\n return parseArrayBindingPattern();\n }\n if (token() === 18 /* OpenBraceToken */) {\n return parseObjectBindingPattern();\n }\n return parseBindingIdentifier(privateIdentifierDiagnosticMessage);\n }\n function parseVariableDeclarationAllowExclamation() {\n return parseVariableDeclaration(/*allowExclamation*/ true);\n }\n function parseVariableDeclaration(allowExclamation) {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var name = parseIdentifierOrPattern(ts.Diagnostics.Private_identifiers_are_not_allowed_in_variable_declarations);\n var exclamationToken;\n if (allowExclamation && name.kind === 79 /* Identifier */ &&\n token() === 53 /* ExclamationToken */ && !scanner.hasPrecedingLineBreak()) {\n exclamationToken = parseTokenNode();\n }\n var type = parseTypeAnnotation();\n var initializer = isInOrOfKeyword(token()) ? undefined : parseInitializer();\n var node = factory.createVariableDeclaration(name, exclamationToken, type, initializer);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseVariableDeclarationList(inForStatementInitializer) {\n var pos = getNodePos();\n var flags = 0;\n switch (token()) {\n case 113 /* VarKeyword */:\n break;\n case 119 /* LetKeyword */:\n flags |= 1 /* Let */;\n break;\n case 85 /* ConstKeyword */:\n flags |= 2 /* Const */;\n break;\n default:\n ts.Debug.fail();\n }\n nextToken();\n // The user may have written the following:\n //\n // for (let of X) { }\n //\n // In this case, we want to parse an empty declaration list, and then parse 'of'\n // as a keyword. The reason this is not automatic is that 'of' is a valid identifier.\n // So we need to look ahead to determine if 'of' should be treated as a keyword in\n // this context.\n // The checker will then give an error that there is an empty declaration list.\n var declarations;\n if (token() === 158 /* OfKeyword */ && lookAhead(canFollowContextualOfKeyword)) {\n declarations = createMissingList();\n }\n else {\n var savedDisallowIn = inDisallowInContext();\n setDisallowInContext(inForStatementInitializer);\n declarations = parseDelimitedList(8 /* VariableDeclarations */, inForStatementInitializer ? parseVariableDeclaration : parseVariableDeclarationAllowExclamation);\n setDisallowInContext(savedDisallowIn);\n }\n return finishNode(factory.createVariableDeclarationList(declarations, flags), pos);\n }\n function canFollowContextualOfKeyword() {\n return nextTokenIsIdentifier() && nextToken() === 21 /* CloseParenToken */;\n }\n function parseVariableStatement(pos, hasJSDoc, decorators, modifiers) {\n var declarationList = parseVariableDeclarationList(/*inForStatementInitializer*/ false);\n parseSemicolon();\n var node = factory.createVariableStatement(modifiers, declarationList);\n // Decorators are not allowed on a variable statement, so we keep track of them to report them in the grammar checker.\n node.decorators = decorators;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseFunctionDeclaration(pos, hasJSDoc, decorators, modifiers) {\n var savedAwaitContext = inAwaitContext();\n var modifierFlags = ts.modifiersToFlags(modifiers);\n parseExpected(98 /* FunctionKeyword */);\n var asteriskToken = parseOptionalToken(41 /* AsteriskToken */);\n // We don't parse the name here in await context, instead we will report a grammar error in the checker.\n var name = modifierFlags & 512 /* Default */ ? parseOptionalBindingIdentifier() : parseBindingIdentifier();\n var isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */;\n var isAsync = modifierFlags & 256 /* Async */ ? 2 /* Await */ : 0 /* None */;\n var typeParameters = parseTypeParameters();\n if (modifierFlags & 1 /* Export */)\n setAwaitContext(/*value*/ true);\n var parameters = parseParameters(isGenerator | isAsync);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, ts.Diagnostics.or_expected);\n setAwaitContext(savedAwaitContext);\n var node = factory.createFunctionDeclaration(decorators, modifiers, asteriskToken, name, typeParameters, parameters, type, body);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseConstructorName() {\n if (token() === 133 /* ConstructorKeyword */) {\n return parseExpected(133 /* ConstructorKeyword */);\n }\n if (token() === 10 /* StringLiteral */ && lookAhead(nextToken) === 20 /* OpenParenToken */) {\n return tryParse(function () {\n var literalNode = parseLiteralNode();\n return literalNode.text === \"constructor\" ? literalNode : undefined;\n });\n }\n }\n function tryParseConstructorDeclaration(pos, hasJSDoc, decorators, modifiers) {\n return tryParse(function () {\n if (parseConstructorName()) {\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(0 /* None */);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n var body = parseFunctionBlockOrSemicolon(0 /* None */, ts.Diagnostics.or_expected);\n var node = factory.createConstructorDeclaration(decorators, modifiers, parameters, body);\n // Attach `typeParameters` and `type` if they exist so that we can report them in the grammar checker.\n node.typeParameters = typeParameters;\n node.type = type;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n });\n }\n function parseMethodDeclaration(pos, hasJSDoc, decorators, modifiers, asteriskToken, name, questionToken, exclamationToken, diagnosticMessage) {\n var isGenerator = asteriskToken ? 1 /* Yield */ : 0 /* None */;\n var isAsync = ts.some(modifiers, ts.isAsyncModifier) ? 2 /* Await */ : 0 /* None */;\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(isGenerator | isAsync);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n var body = parseFunctionBlockOrSemicolon(isGenerator | isAsync, diagnosticMessage);\n var node = factory.createMethodDeclaration(decorators, modifiers, asteriskToken, name, questionToken, typeParameters, parameters, type, body);\n // An exclamation token on a method is invalid syntax and will be handled by the grammar checker\n node.exclamationToken = exclamationToken;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parsePropertyDeclaration(pos, hasJSDoc, decorators, modifiers, name, questionToken) {\n var exclamationToken = !questionToken && !scanner.hasPrecedingLineBreak() ? parseOptionalToken(53 /* ExclamationToken */) : undefined;\n var type = parseTypeAnnotation();\n var initializer = doOutsideOfContext(8192 /* YieldContext */ | 32768 /* AwaitContext */ | 4096 /* DisallowInContext */, parseInitializer);\n parseSemicolonAfterPropertyName(name, type, initializer);\n var node = factory.createPropertyDeclaration(decorators, modifiers, name, questionToken || exclamationToken, type, initializer);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parsePropertyOrMethodDeclaration(pos, hasJSDoc, decorators, modifiers) {\n var asteriskToken = parseOptionalToken(41 /* AsteriskToken */);\n var name = parsePropertyName();\n // Note: this is not legal as per the grammar. But we allow it in the parser and\n // report an error in the grammar checker.\n var questionToken = parseOptionalToken(57 /* QuestionToken */);\n if (asteriskToken || token() === 20 /* OpenParenToken */ || token() === 29 /* LessThanToken */) {\n return parseMethodDeclaration(pos, hasJSDoc, decorators, modifiers, asteriskToken, name, questionToken, /*exclamationToken*/ undefined, ts.Diagnostics.or_expected);\n }\n return parsePropertyDeclaration(pos, hasJSDoc, decorators, modifiers, name, questionToken);\n }\n function parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, kind) {\n var name = parsePropertyName();\n var typeParameters = parseTypeParameters();\n var parameters = parseParameters(0 /* None */);\n var type = parseReturnType(58 /* ColonToken */, /*isType*/ false);\n var body = parseFunctionBlockOrSemicolon(0 /* None */);\n var node = kind === 170 /* GetAccessor */\n ? factory.createGetAccessorDeclaration(decorators, modifiers, name, parameters, type, body)\n : factory.createSetAccessorDeclaration(decorators, modifiers, name, parameters, body);\n // Keep track of `typeParameters` (for both) and `type` (for setters) if they were parsed those indicate grammar errors\n node.typeParameters = typeParameters;\n if (type && node.kind === 171 /* SetAccessor */)\n node.type = type;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function isClassMemberStart() {\n var idToken;\n if (token() === 59 /* AtToken */) {\n return true;\n }\n // Eat up all modifiers, but hold on to the last one in case it is actually an identifier.\n while (ts.isModifierKind(token())) {\n idToken = token();\n // If the idToken is a class modifier (protected, private, public, and static), it is\n // certain that we are starting to parse class member. This allows better error recovery\n // Example:\n // public foo() ... // true\n // public @dec blah ... // true; we will then report an error later\n // export public ... // true; we will then report an error later\n if (ts.isClassMemberModifier(idToken)) {\n return true;\n }\n nextToken();\n }\n if (token() === 41 /* AsteriskToken */) {\n return true;\n }\n // Try to get the first property-like token following all modifiers.\n // This can either be an identifier or the 'get' or 'set' keywords.\n if (isLiteralPropertyName()) {\n idToken = token();\n nextToken();\n }\n // Index signatures and computed properties are class members; we can parse.\n if (token() === 22 /* OpenBracketToken */) {\n return true;\n }\n // If we were able to get any potential identifier...\n if (idToken !== undefined) {\n // If we have a non-keyword identifier, or if we have an accessor, then it's safe to parse.\n if (!ts.isKeyword(idToken) || idToken === 147 /* SetKeyword */ || idToken === 135 /* GetKeyword */) {\n return true;\n }\n // If it *is* a keyword, but not an accessor, check a little farther along\n // to see if it should actually be parsed as a class member.\n switch (token()) {\n case 20 /* OpenParenToken */: // Method declaration\n case 29 /* LessThanToken */: // Generic Method declaration\n case 53 /* ExclamationToken */: // Non-null assertion on property name\n case 58 /* ColonToken */: // Type Annotation for declaration\n case 63 /* EqualsToken */: // Initializer for declaration\n case 57 /* QuestionToken */: // Not valid, but permitted so that it gets caught later on.\n return true;\n default:\n // Covers\n // - Semicolons (declaration termination)\n // - Closing braces (end-of-class, must be declaration)\n // - End-of-files (not valid, but permitted so that it gets caught later on)\n // - Line-breaks (enabling *automatic semicolon insertion*)\n return canParseSemicolon();\n }\n }\n return false;\n }\n function parseClassStaticBlockDeclaration(pos, hasJSDoc, decorators, modifiers) {\n parseExpectedToken(124 /* StaticKeyword */);\n var body = parseClassStaticBlockBody();\n return withJSDoc(finishNode(factory.createClassStaticBlockDeclaration(decorators, modifiers, body), pos), hasJSDoc);\n }\n function parseClassStaticBlockBody() {\n var savedYieldContext = inYieldContext();\n var savedAwaitContext = inAwaitContext();\n setYieldContext(false);\n setAwaitContext(true);\n var body = parseBlock(/*ignoreMissingOpenBrace*/ false);\n setYieldContext(savedYieldContext);\n setAwaitContext(savedAwaitContext);\n return body;\n }\n function parseDecoratorExpression() {\n if (inAwaitContext() && token() === 131 /* AwaitKeyword */) {\n // `@await` is is disallowed in an [Await] context, but can cause parsing to go off the rails\n // This simply parses the missing identifier and moves on.\n var pos = getNodePos();\n var awaitExpression = parseIdentifier(ts.Diagnostics.Expression_expected);\n nextToken();\n var memberExpression = parseMemberExpressionRest(pos, awaitExpression, /*allowOptionalChain*/ true);\n return parseCallExpressionRest(pos, memberExpression);\n }\n return parseLeftHandSideExpressionOrHigher();\n }\n function tryParseDecorator() {\n var pos = getNodePos();\n if (!parseOptional(59 /* AtToken */)) {\n return undefined;\n }\n var expression = doInDecoratorContext(parseDecoratorExpression);\n return finishNode(factory.createDecorator(expression), pos);\n }\n function parseDecorators() {\n var pos = getNodePos();\n var list, decorator;\n while (decorator = tryParseDecorator()) {\n list = ts.append(list, decorator);\n }\n return list && createNodeArray(list, pos);\n }\n function tryParseModifier(permitInvalidConstAsModifier, stopOnStartOfClassStaticBlock) {\n var pos = getNodePos();\n var kind = token();\n if (token() === 85 /* ConstKeyword */ && permitInvalidConstAsModifier) {\n // We need to ensure that any subsequent modifiers appear on the same line\n // so that when 'const' is a standalone declaration, we don't issue an error.\n if (!tryParse(nextTokenIsOnSameLineAndCanFollowModifier)) {\n return undefined;\n }\n }\n else if (stopOnStartOfClassStaticBlock && token() === 124 /* StaticKeyword */ && lookAhead(nextTokenIsOpenBrace)) {\n return undefined;\n }\n else {\n if (!parseAnyContextualModifier()) {\n return undefined;\n }\n }\n return finishNode(factory.createToken(kind), pos);\n }\n /*\n * There are situations in which a modifier like 'const' will appear unexpectedly, such as on a class member.\n * In those situations, if we are entirely sure that 'const' is not valid on its own (such as when ASI takes effect\n * and turns it into a standalone declaration), then it is better to parse it and report an error later.\n *\n * In such situations, 'permitInvalidConstAsModifier' should be set to true.\n */\n function parseModifiers(permitInvalidConstAsModifier, stopOnStartOfClassStaticBlock) {\n var pos = getNodePos();\n var list, modifier;\n while (modifier = tryParseModifier(permitInvalidConstAsModifier, stopOnStartOfClassStaticBlock)) {\n list = ts.append(list, modifier);\n }\n return list && createNodeArray(list, pos);\n }\n function parseModifiersForArrowFunction() {\n var modifiers;\n if (token() === 130 /* AsyncKeyword */) {\n var pos = getNodePos();\n nextToken();\n var modifier = finishNode(factory.createToken(130 /* AsyncKeyword */), pos);\n modifiers = createNodeArray([modifier], pos);\n }\n return modifiers;\n }\n function parseClassElement() {\n var pos = getNodePos();\n if (token() === 26 /* SemicolonToken */) {\n nextToken();\n return finishNode(factory.createSemicolonClassElement(), pos);\n }\n var hasJSDoc = hasPrecedingJSDocComment();\n var decorators = parseDecorators();\n var modifiers = parseModifiers(/*permitInvalidConstAsModifier*/ true, /*stopOnStartOfClassStaticBlock*/ true);\n if (token() === 124 /* StaticKeyword */ && lookAhead(nextTokenIsOpenBrace)) {\n return parseClassStaticBlockDeclaration(pos, hasJSDoc, decorators, modifiers);\n }\n if (parseContextualModifier(135 /* GetKeyword */)) {\n return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, 170 /* GetAccessor */);\n }\n if (parseContextualModifier(147 /* SetKeyword */)) {\n return parseAccessorDeclaration(pos, hasJSDoc, decorators, modifiers, 171 /* SetAccessor */);\n }\n if (token() === 133 /* ConstructorKeyword */ || token() === 10 /* StringLiteral */) {\n var constructorDeclaration = tryParseConstructorDeclaration(pos, hasJSDoc, decorators, modifiers);\n if (constructorDeclaration) {\n return constructorDeclaration;\n }\n }\n if (isIndexSignature()) {\n return parseIndexSignatureDeclaration(pos, hasJSDoc, decorators, modifiers);\n }\n // It is very important that we check this *after* checking indexers because\n // the [ token can start an index signature or a computed property name\n if (ts.tokenIsIdentifierOrKeyword(token()) ||\n token() === 10 /* StringLiteral */ ||\n token() === 8 /* NumericLiteral */ ||\n token() === 41 /* AsteriskToken */ ||\n token() === 22 /* OpenBracketToken */) {\n var isAmbient = ts.some(modifiers, isDeclareModifier);\n if (isAmbient) {\n for (var _i = 0, _a = modifiers; _i < _a.length; _i++) {\n var m = _a[_i];\n m.flags |= 8388608 /* Ambient */;\n }\n return doInsideOfContext(8388608 /* Ambient */, function () { return parsePropertyOrMethodDeclaration(pos, hasJSDoc, decorators, modifiers); });\n }\n else {\n return parsePropertyOrMethodDeclaration(pos, hasJSDoc, decorators, modifiers);\n }\n }\n if (decorators || modifiers) {\n // treat this as a property declaration with a missing name.\n var name = createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ true, ts.Diagnostics.Declaration_expected);\n return parsePropertyDeclaration(pos, hasJSDoc, decorators, modifiers, name, /*questionToken*/ undefined);\n }\n // 'isClassMemberStart' should have hinted not to attempt parsing.\n return ts.Debug.fail(\"Should not have attempted to parse class member declaration.\");\n }\n function parseClassExpression() {\n return parseClassDeclarationOrExpression(getNodePos(), hasPrecedingJSDocComment(), /*decorators*/ undefined, /*modifiers*/ undefined, 224 /* ClassExpression */);\n }\n function parseClassDeclaration(pos, hasJSDoc, decorators, modifiers) {\n return parseClassDeclarationOrExpression(pos, hasJSDoc, decorators, modifiers, 255 /* ClassDeclaration */);\n }\n function parseClassDeclarationOrExpression(pos, hasJSDoc, decorators, modifiers, kind) {\n var savedAwaitContext = inAwaitContext();\n parseExpected(84 /* ClassKeyword */);\n // We don't parse the name here in await context, instead we will report a grammar error in the checker.\n var name = parseNameOfClassDeclarationOrExpression();\n var typeParameters = parseTypeParameters();\n if (ts.some(modifiers, ts.isExportModifier))\n setAwaitContext(/*value*/ true);\n var heritageClauses = parseHeritageClauses();\n var members;\n if (parseExpected(18 /* OpenBraceToken */)) {\n // ClassTail[Yield,Await] : (Modified) See 14.5\n // ClassHeritage[?Yield,?Await]opt { ClassBody[?Yield,?Await]opt }\n members = parseClassMembers();\n parseExpected(19 /* CloseBraceToken */);\n }\n else {\n members = createMissingList();\n }\n setAwaitContext(savedAwaitContext);\n var node = kind === 255 /* ClassDeclaration */\n ? factory.createClassDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members)\n : factory.createClassExpression(decorators, modifiers, name, typeParameters, heritageClauses, members);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseNameOfClassDeclarationOrExpression() {\n // implements is a future reserved word so\n // 'class implements' might mean either\n // - class expression with omitted name, 'implements' starts heritage clause\n // - class with name 'implements'\n // 'isImplementsClause' helps to disambiguate between these two cases\n return isBindingIdentifier() && !isImplementsClause()\n ? createIdentifier(isBindingIdentifier())\n : undefined;\n }\n function isImplementsClause() {\n return token() === 117 /* ImplementsKeyword */ && lookAhead(nextTokenIsIdentifierOrKeyword);\n }\n function parseHeritageClauses() {\n // ClassTail[Yield,Await] : (Modified) See 14.5\n // ClassHeritage[?Yield,?Await]opt { ClassBody[?Yield,?Await]opt }\n if (isHeritageClause()) {\n return parseList(22 /* HeritageClauses */, parseHeritageClause);\n }\n return undefined;\n }\n function parseHeritageClause() {\n var pos = getNodePos();\n var tok = token();\n ts.Debug.assert(tok === 94 /* ExtendsKeyword */ || tok === 117 /* ImplementsKeyword */); // isListElement() should ensure this.\n nextToken();\n var types = parseDelimitedList(7 /* HeritageClauseElement */, parseExpressionWithTypeArguments);\n return finishNode(factory.createHeritageClause(tok, types), pos);\n }\n function parseExpressionWithTypeArguments() {\n var pos = getNodePos();\n var expression = parseLeftHandSideExpressionOrHigher();\n var typeArguments = tryParseTypeArguments();\n return finishNode(factory.createExpressionWithTypeArguments(expression, typeArguments), pos);\n }\n function tryParseTypeArguments() {\n return token() === 29 /* LessThanToken */ ?\n parseBracketedList(20 /* TypeArguments */, parseType, 29 /* LessThanToken */, 31 /* GreaterThanToken */) : undefined;\n }\n function isHeritageClause() {\n return token() === 94 /* ExtendsKeyword */ || token() === 117 /* ImplementsKeyword */;\n }\n function parseClassMembers() {\n return parseList(5 /* ClassMembers */, parseClassElement);\n }\n function parseInterfaceDeclaration(pos, hasJSDoc, decorators, modifiers) {\n parseExpected(118 /* InterfaceKeyword */);\n var name = parseIdentifier();\n var typeParameters = parseTypeParameters();\n var heritageClauses = parseHeritageClauses();\n var members = parseObjectTypeMembers();\n var node = factory.createInterfaceDeclaration(decorators, modifiers, name, typeParameters, heritageClauses, members);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseTypeAliasDeclaration(pos, hasJSDoc, decorators, modifiers) {\n parseExpected(150 /* TypeKeyword */);\n var name = parseIdentifier();\n var typeParameters = parseTypeParameters();\n parseExpected(63 /* EqualsToken */);\n var type = token() === 137 /* IntrinsicKeyword */ && tryParse(parseKeywordAndNoDot) || parseType();\n parseSemicolon();\n var node = factory.createTypeAliasDeclaration(decorators, modifiers, name, typeParameters, type);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n // In an ambient declaration, the grammar only allows integer literals as initializers.\n // In a non-ambient declaration, the grammar allows uninitialized members only in a\n // ConstantEnumMemberSection, which starts at the beginning of an enum declaration\n // or any time an integer literal initializer is encountered.\n function parseEnumMember() {\n var pos = getNodePos();\n var hasJSDoc = hasPrecedingJSDocComment();\n var name = parsePropertyName();\n var initializer = allowInAnd(parseInitializer);\n return withJSDoc(finishNode(factory.createEnumMember(name, initializer), pos), hasJSDoc);\n }\n function parseEnumDeclaration(pos, hasJSDoc, decorators, modifiers) {\n parseExpected(92 /* EnumKeyword */);\n var name = parseIdentifier();\n var members;\n if (parseExpected(18 /* OpenBraceToken */)) {\n members = doOutsideOfYieldAndAwaitContext(function () { return parseDelimitedList(6 /* EnumMembers */, parseEnumMember); });\n parseExpected(19 /* CloseBraceToken */);\n }\n else {\n members = createMissingList();\n }\n var node = factory.createEnumDeclaration(decorators, modifiers, name, members);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseModuleBlock() {\n var pos = getNodePos();\n var statements;\n if (parseExpected(18 /* OpenBraceToken */)) {\n statements = parseList(1 /* BlockStatements */, parseStatement);\n parseExpected(19 /* CloseBraceToken */);\n }\n else {\n statements = createMissingList();\n }\n return finishNode(factory.createModuleBlock(statements), pos);\n }\n function parseModuleOrNamespaceDeclaration(pos, hasJSDoc, decorators, modifiers, flags) {\n // If we are parsing a dotted namespace name, we want to\n // propagate the 'Namespace' flag across the names if set.\n var namespaceFlag = flags & 16 /* Namespace */;\n var name = parseIdentifier();\n var body = parseOptional(24 /* DotToken */)\n ? parseModuleOrNamespaceDeclaration(getNodePos(), /*hasJSDoc*/ false, /*decorators*/ undefined, /*modifiers*/ undefined, 4 /* NestedNamespace */ | namespaceFlag)\n : parseModuleBlock();\n var node = factory.createModuleDeclaration(decorators, modifiers, name, body, flags);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {\n var flags = 0;\n var name;\n if (token() === 155 /* GlobalKeyword */) {\n // parse 'global' as name of global scope augmentation\n name = parseIdentifier();\n flags |= 1024 /* GlobalAugmentation */;\n }\n else {\n name = parseLiteralNode();\n name.text = internIdentifier(name.text);\n }\n var body;\n if (token() === 18 /* OpenBraceToken */) {\n body = parseModuleBlock();\n }\n else {\n parseSemicolon();\n }\n var node = factory.createModuleDeclaration(decorators, modifiers, name, body, flags);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseModuleDeclaration(pos, hasJSDoc, decorators, modifiers) {\n var flags = 0;\n if (token() === 155 /* GlobalKeyword */) {\n // global augmentation\n return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers);\n }\n else if (parseOptional(141 /* NamespaceKeyword */)) {\n flags |= 16 /* Namespace */;\n }\n else {\n parseExpected(140 /* ModuleKeyword */);\n if (token() === 10 /* StringLiteral */) {\n return parseAmbientExternalModuleDeclaration(pos, hasJSDoc, decorators, modifiers);\n }\n }\n return parseModuleOrNamespaceDeclaration(pos, hasJSDoc, decorators, modifiers, flags);\n }\n function isExternalModuleReference() {\n return token() === 144 /* RequireKeyword */ &&\n lookAhead(nextTokenIsOpenParen);\n }\n function nextTokenIsOpenParen() {\n return nextToken() === 20 /* OpenParenToken */;\n }\n function nextTokenIsOpenBrace() {\n return nextToken() === 18 /* OpenBraceToken */;\n }\n function nextTokenIsSlash() {\n return nextToken() === 43 /* SlashToken */;\n }\n function parseNamespaceExportDeclaration(pos, hasJSDoc, decorators, modifiers) {\n parseExpected(127 /* AsKeyword */);\n parseExpected(141 /* NamespaceKeyword */);\n var name = parseIdentifier();\n parseSemicolon();\n var node = factory.createNamespaceExportDeclaration(name);\n // NamespaceExportDeclaration nodes cannot have decorators or modifiers, so we attach them here so we can report them in the grammar checker\n node.decorators = decorators;\n node.modifiers = modifiers;\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseImportDeclarationOrImportEqualsDeclaration(pos, hasJSDoc, decorators, modifiers) {\n parseExpected(100 /* ImportKeyword */);\n var afterImportPos = scanner.getStartPos();\n // We don't parse the identifier here in await context, instead we will report a grammar error in the checker.\n var identifier;\n if (isIdentifier()) {\n identifier = parseIdentifier();\n }\n var isTypeOnly = false;\n if (token() !== 154 /* FromKeyword */ &&\n (identifier === null || identifier === void 0 ? void 0 : identifier.escapedText) === \"type\" &&\n (isIdentifier() || tokenAfterImportDefinitelyProducesImportDeclaration())) {\n isTypeOnly = true;\n identifier = isIdentifier() ? parseIdentifier() : undefined;\n }\n if (identifier && !tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration()) {\n return parseImportEqualsDeclaration(pos, hasJSDoc, decorators, modifiers, identifier, isTypeOnly);\n }\n // ImportDeclaration:\n // import ImportClause from ModuleSpecifier ;\n // import ModuleSpecifier;\n var importClause;\n if (identifier || // import id\n token() === 41 /* AsteriskToken */ || // import *\n token() === 18 /* OpenBraceToken */ // import {\n ) {\n importClause = parseImportClause(identifier, afterImportPos, isTypeOnly);\n parseExpected(154 /* FromKeyword */);\n }\n var moduleSpecifier = parseModuleSpecifier();\n parseSemicolon();\n var node = factory.createImportDeclaration(decorators, modifiers, importClause, moduleSpecifier);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function tokenAfterImportDefinitelyProducesImportDeclaration() {\n return token() === 41 /* AsteriskToken */ || token() === 18 /* OpenBraceToken */;\n }\n function tokenAfterImportedIdentifierDefinitelyProducesImportDeclaration() {\n // In `import id ___`, the current token decides whether to produce\n // an ImportDeclaration or ImportEqualsDeclaration.\n return token() === 27 /* CommaToken */ || token() === 154 /* FromKeyword */;\n }\n function parseImportEqualsDeclaration(pos, hasJSDoc, decorators, modifiers, identifier, isTypeOnly) {\n parseExpected(63 /* EqualsToken */);\n var moduleReference = parseModuleReference();\n parseSemicolon();\n var node = factory.createImportEqualsDeclaration(decorators, modifiers, isTypeOnly, identifier, moduleReference);\n var finished = withJSDoc(finishNode(node, pos), hasJSDoc);\n return finished;\n }\n function parseImportClause(identifier, pos, isTypeOnly) {\n // ImportClause:\n // ImportedDefaultBinding\n // NameSpaceImport\n // NamedImports\n // ImportedDefaultBinding, NameSpaceImport\n // ImportedDefaultBinding, NamedImports\n // If there was no default import or if there is comma token after default import\n // parse namespace or named imports\n var namedBindings;\n if (!identifier ||\n parseOptional(27 /* CommaToken */)) {\n namedBindings = token() === 41 /* AsteriskToken */ ? parseNamespaceImport() : parseNamedImportsOrExports(267 /* NamedImports */);\n }\n return finishNode(factory.createImportClause(isTypeOnly, identifier, namedBindings), pos);\n }\n function parseModuleReference() {\n return isExternalModuleReference()\n ? parseExternalModuleReference()\n : parseEntityName(/*allowReservedWords*/ false);\n }\n function parseExternalModuleReference() {\n var pos = getNodePos();\n parseExpected(144 /* RequireKeyword */);\n parseExpected(20 /* OpenParenToken */);\n var expression = parseModuleSpecifier();\n parseExpected(21 /* CloseParenToken */);\n return finishNode(factory.createExternalModuleReference(expression), pos);\n }\n function parseModuleSpecifier() {\n if (token() === 10 /* StringLiteral */) {\n var result = parseLiteralNode();\n result.text = internIdentifier(result.text);\n return result;\n }\n else {\n // We allow arbitrary expressions here, even though the grammar only allows string\n // literals. We check to ensure that it is only a string literal later in the grammar\n // check pass.\n return parseExpression();\n }\n }\n function parseNamespaceImport() {\n // NameSpaceImport:\n // * as ImportedBinding\n var pos = getNodePos();\n parseExpected(41 /* AsteriskToken */);\n parseExpected(127 /* AsKeyword */);\n var name = parseIdentifier();\n return finishNode(factory.createNamespaceImport(name), pos);\n }\n function parseNamedImportsOrExports(kind) {\n var pos = getNodePos();\n // NamedImports:\n // { }\n // { ImportsList }\n // { ImportsList, }\n // ImportsList:\n // ImportSpecifier\n // ImportsList, ImportSpecifier\n var node = kind === 267 /* NamedImports */\n ? factory.createNamedImports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseImportSpecifier, 18 /* OpenBraceToken */, 19 /* CloseBraceToken */))\n : factory.createNamedExports(parseBracketedList(23 /* ImportOrExportSpecifiers */, parseExportSpecifier, 18 /* OpenBraceToken */, 19 /* CloseBraceToken */));\n return finishNode(node, pos);\n }\n function parseExportSpecifier() {\n return parseImportOrExportSpecifier(273 /* ExportSpecifier */);\n }\n function parseImportSpecifier() {\n return parseImportOrExportSpecifier(268 /* ImportSpecifier */);\n }\n function parseImportOrExportSpecifier(kind) {\n var pos = getNodePos();\n // ImportSpecifier:\n // BindingIdentifier\n // IdentifierName as BindingIdentifier\n // ExportSpecifier:\n // IdentifierName\n // IdentifierName as IdentifierName\n var checkIdentifierIsKeyword = ts.isKeyword(token()) && !isIdentifier();\n var checkIdentifierStart = scanner.getTokenPos();\n var checkIdentifierEnd = scanner.getTextPos();\n var identifierName = parseIdentifierName();\n var propertyName;\n var name;\n if (token() === 127 /* AsKeyword */) {\n propertyName = identifierName;\n parseExpected(127 /* AsKeyword */);\n checkIdentifierIsKeyword = ts.isKeyword(token()) && !isIdentifier();\n checkIdentifierStart = scanner.getTokenPos();\n checkIdentifierEnd = scanner.getTextPos();\n name = parseIdentifierName();\n }\n else {\n name = identifierName;\n }\n if (kind === 268 /* ImportSpecifier */ && checkIdentifierIsKeyword) {\n parseErrorAt(checkIdentifierStart, checkIdentifierEnd, ts.Diagnostics.Identifier_expected);\n }\n var node = kind === 268 /* ImportSpecifier */\n ? factory.createImportSpecifier(propertyName, name)\n : factory.createExportSpecifier(propertyName, name);\n return finishNode(node, pos);\n }\n function parseNamespaceExport(pos) {\n return finishNode(factory.createNamespaceExport(parseIdentifierName()), pos);\n }\n function parseExportDeclaration(pos, hasJSDoc, decorators, modifiers) {\n var savedAwaitContext = inAwaitContext();\n setAwaitContext(/*value*/ true);\n var exportClause;\n var moduleSpecifier;\n var isTypeOnly = parseOptional(150 /* TypeKeyword */);\n var namespaceExportPos = getNodePos();\n if (parseOptional(41 /* AsteriskToken */)) {\n if (parseOptional(127 /* AsKeyword */)) {\n exportClause = parseNamespaceExport(namespaceExportPos);\n }\n parseExpected(154 /* FromKeyword */);\n moduleSpecifier = parseModuleSpecifier();\n }\n else {\n exportClause = parseNamedImportsOrExports(271 /* NamedExports */);\n // It is not uncommon to accidentally omit the 'from' keyword. Additionally, in editing scenarios,\n // the 'from' keyword can be parsed as a named export when the export clause is unterminated (i.e. `export { from \"moduleName\";`)\n // If we don't have a 'from' keyword, see if we have a string literal such that ASI won't take effect.\n if (token() === 154 /* FromKeyword */ || (token() === 10 /* StringLiteral */ && !scanner.hasPrecedingLineBreak())) {\n parseExpected(154 /* FromKeyword */);\n moduleSpecifier = parseModuleSpecifier();\n }\n }\n parseSemicolon();\n setAwaitContext(savedAwaitContext);\n var node = factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function parseExportAssignment(pos, hasJSDoc, decorators, modifiers) {\n var savedAwaitContext = inAwaitContext();\n setAwaitContext(/*value*/ true);\n var isExportEquals;\n if (parseOptional(63 /* EqualsToken */)) {\n isExportEquals = true;\n }\n else {\n parseExpected(88 /* DefaultKeyword */);\n }\n var expression = parseAssignmentExpressionOrHigher();\n parseSemicolon();\n setAwaitContext(savedAwaitContext);\n var node = factory.createExportAssignment(decorators, modifiers, isExportEquals, expression);\n return withJSDoc(finishNode(node, pos), hasJSDoc);\n }\n function setExternalModuleIndicator(sourceFile) {\n // Try to use the first top-level import/export when available, then\n // fall back to looking for an 'import.meta' somewhere in the tree if necessary.\n sourceFile.externalModuleIndicator =\n ts.forEach(sourceFile.statements, isAnExternalModuleIndicatorNode) ||\n getImportMetaIfNecessary(sourceFile);\n }\n function isAnExternalModuleIndicatorNode(node) {\n return hasModifierOfKind(node, 93 /* ExportKeyword */)\n || ts.isImportEqualsDeclaration(node) && ts.isExternalModuleReference(node.moduleReference)\n || ts.isImportDeclaration(node)\n || ts.isExportAssignment(node)\n || ts.isExportDeclaration(node) ? node : undefined;\n }\n function getImportMetaIfNecessary(sourceFile) {\n return sourceFile.flags & 2097152 /* PossiblyContainsImportMeta */ ?\n walkTreeForExternalModuleIndicators(sourceFile) :\n undefined;\n }\n function walkTreeForExternalModuleIndicators(node) {\n return isImportMeta(node) ? node : forEachChild(node, walkTreeForExternalModuleIndicators);\n }\n /** Do not use hasModifier inside the parser; it relies on parent pointers. Use this instead. */\n function hasModifierOfKind(node, kind) {\n return ts.some(node.modifiers, function (m) { return m.kind === kind; });\n }\n function isImportMeta(node) {\n return ts.isMetaProperty(node) && node.keywordToken === 100 /* ImportKeyword */ && node.name.escapedText === \"meta\";\n }\n var ParsingContext;\n (function (ParsingContext) {\n ParsingContext[ParsingContext[\"SourceElements\"] = 0] = \"SourceElements\";\n ParsingContext[ParsingContext[\"BlockStatements\"] = 1] = \"BlockStatements\";\n ParsingContext[ParsingContext[\"SwitchClauses\"] = 2] = \"SwitchClauses\";\n ParsingContext[ParsingContext[\"SwitchClauseStatements\"] = 3] = \"SwitchClauseStatements\";\n ParsingContext[ParsingContext[\"TypeMembers\"] = 4] = \"TypeMembers\";\n ParsingContext[ParsingContext[\"ClassMembers\"] = 5] = \"ClassMembers\";\n ParsingContext[ParsingContext[\"EnumMembers\"] = 6] = \"EnumMembers\";\n ParsingContext[ParsingContext[\"HeritageClauseElement\"] = 7] = \"HeritageClauseElement\";\n ParsingContext[ParsingContext[\"VariableDeclarations\"] = 8] = \"VariableDeclarations\";\n ParsingContext[ParsingContext[\"ObjectBindingElements\"] = 9] = \"ObjectBindingElements\";\n ParsingContext[ParsingContext[\"ArrayBindingElements\"] = 10] = \"ArrayBindingElements\";\n ParsingContext[ParsingContext[\"ArgumentExpressions\"] = 11] = \"ArgumentExpressions\";\n ParsingContext[ParsingContext[\"ObjectLiteralMembers\"] = 12] = \"ObjectLiteralMembers\";\n ParsingContext[ParsingContext[\"JsxAttributes\"] = 13] = \"JsxAttributes\";\n ParsingContext[ParsingContext[\"JsxChildren\"] = 14] = \"JsxChildren\";\n ParsingContext[ParsingContext[\"ArrayLiteralMembers\"] = 15] = \"ArrayLiteralMembers\";\n ParsingContext[ParsingContext[\"Parameters\"] = 16] = \"Parameters\";\n ParsingContext[ParsingContext[\"JSDocParameters\"] = 17] = \"JSDocParameters\";\n ParsingContext[ParsingContext[\"RestProperties\"] = 18] = \"RestProperties\";\n ParsingContext[ParsingContext[\"TypeParameters\"] = 19] = \"TypeParameters\";\n ParsingContext[ParsingContext[\"TypeArguments\"] = 20] = \"TypeArguments\";\n ParsingContext[ParsingContext[\"TupleElementTypes\"] = 21] = \"TupleElementTypes\";\n ParsingContext[ParsingContext[\"HeritageClauses\"] = 22] = \"HeritageClauses\";\n ParsingContext[ParsingContext[\"ImportOrExportSpecifiers\"] = 23] = \"ImportOrExportSpecifiers\";\n ParsingContext[ParsingContext[\"Count\"] = 24] = \"Count\"; // Number of parsing contexts\n })(ParsingContext || (ParsingContext = {}));\n var Tristate;\n (function (Tristate) {\n Tristate[Tristate[\"False\"] = 0] = \"False\";\n Tristate[Tristate[\"True\"] = 1] = \"True\";\n Tristate[Tristate[\"Unknown\"] = 2] = \"Unknown\";\n })(Tristate || (Tristate = {}));\n var JSDocParser;\n (function (JSDocParser) {\n function parseJSDocTypeExpressionForTests(content, start, length) {\n initializeState(\"file.js\", content, 99 /* Latest */, /*_syntaxCursor:*/ undefined, 1 /* JS */);\n scanner.setText(content, start, length);\n currentToken = scanner.scan();\n var jsDocTypeExpression = parseJSDocTypeExpression();\n var sourceFile = createSourceFile(\"file.js\", 99 /* Latest */, 1 /* JS */, /*isDeclarationFile*/ false, [], factory.createToken(1 /* EndOfFileToken */), 0 /* None */);\n var diagnostics = ts.attachFileToDiagnostics(parseDiagnostics, sourceFile);\n if (jsDocDiagnostics) {\n sourceFile.jsDocDiagnostics = ts.attachFileToDiagnostics(jsDocDiagnostics, sourceFile);\n }\n clearState();\n return jsDocTypeExpression ? { jsDocTypeExpression: jsDocTypeExpression, diagnostics: diagnostics } : undefined;\n }\n JSDocParser.parseJSDocTypeExpressionForTests = parseJSDocTypeExpressionForTests;\n // Parses out a JSDoc type expression.\n function parseJSDocTypeExpression(mayOmitBraces) {\n var pos = getNodePos();\n var hasBrace = (mayOmitBraces ? parseOptional : parseExpected)(18 /* OpenBraceToken */);\n var type = doInsideOfContext(4194304 /* JSDoc */, parseJSDocType);\n if (!mayOmitBraces || hasBrace) {\n parseExpectedJSDoc(19 /* CloseBraceToken */);\n }\n var result = factory.createJSDocTypeExpression(type);\n fixupParentReferences(result);\n return finishNode(result, pos);\n }\n JSDocParser.parseJSDocTypeExpression = parseJSDocTypeExpression;\n function parseJSDocNameReference() {\n var pos = getNodePos();\n var hasBrace = parseOptional(18 /* OpenBraceToken */);\n var p2 = getNodePos();\n var entityName = parseEntityName(/* allowReservedWords*/ false);\n while (token() === 80 /* PrivateIdentifier */) {\n reScanHashToken(); // rescan #id as # id\n nextTokenJSDoc(); // then skip the #\n entityName = finishNode(factory.createJSDocMemberName(entityName, parseIdentifier()), p2);\n }\n if (hasBrace) {\n parseExpectedJSDoc(19 /* CloseBraceToken */);\n }\n var result = factory.createJSDocNameReference(entityName);\n fixupParentReferences(result);\n return finishNode(result, pos);\n }\n JSDocParser.parseJSDocNameReference = parseJSDocNameReference;\n function parseIsolatedJSDocComment(content, start, length) {\n initializeState(\"\", content, 99 /* Latest */, /*_syntaxCursor:*/ undefined, 1 /* JS */);\n var jsDoc = doInsideOfContext(4194304 /* JSDoc */, function () { return parseJSDocCommentWorker(start, length); });\n var sourceFile = { languageVariant: 0 /* Standard */, text: content };\n var diagnostics = ts.attachFileToDiagnostics(parseDiagnostics, sourceFile);\n clearState();\n return jsDoc ? { jsDoc: jsDoc, diagnostics: diagnostics } : undefined;\n }\n JSDocParser.parseIsolatedJSDocComment = parseIsolatedJSDocComment;\n function parseJSDocComment(parent, start, length) {\n var saveToken = currentToken;\n var saveParseDiagnosticsLength = parseDiagnostics.length;\n var saveParseErrorBeforeNextFinishedNode = parseErrorBeforeNextFinishedNode;\n var comment = doInsideOfContext(4194304 /* JSDoc */, function () { return parseJSDocCommentWorker(start, length); });\n ts.setParent(comment, parent);\n if (contextFlags & 131072 /* JavaScriptFile */) {\n if (!jsDocDiagnostics) {\n jsDocDiagnostics = [];\n }\n jsDocDiagnostics.push.apply(jsDocDiagnostics, parseDiagnostics);\n }\n currentToken = saveToken;\n parseDiagnostics.length = saveParseDiagnosticsLength;\n parseErrorBeforeNextFinishedNode = saveParseErrorBeforeNextFinishedNode;\n return comment;\n }\n JSDocParser.parseJSDocComment = parseJSDocComment;\n var JSDocState;\n (function (JSDocState) {\n JSDocState[JSDocState[\"BeginningOfLine\"] = 0] = \"BeginningOfLine\";\n JSDocState[JSDocState[\"SawAsterisk\"] = 1] = \"SawAsterisk\";\n JSDocState[JSDocState[\"SavingComments\"] = 2] = \"SavingComments\";\n JSDocState[JSDocState[\"SavingBackticks\"] = 3] = \"SavingBackticks\";\n })(JSDocState || (JSDocState = {}));\n var PropertyLikeParse;\n (function (PropertyLikeParse) {\n PropertyLikeParse[PropertyLikeParse[\"Property\"] = 1] = \"Property\";\n PropertyLikeParse[PropertyLikeParse[\"Parameter\"] = 2] = \"Parameter\";\n PropertyLikeParse[PropertyLikeParse[\"CallbackParameter\"] = 4] = \"CallbackParameter\";\n })(PropertyLikeParse || (PropertyLikeParse = {}));\n function parseJSDocCommentWorker(start, length) {\n if (start === void 0) { start = 0; }\n var content = sourceText;\n var end = length === undefined ? content.length : start + length;\n length = end - start;\n ts.Debug.assert(start >= 0);\n ts.Debug.assert(start <= end);\n ts.Debug.assert(end <= content.length);\n // Check for /** (JSDoc opening part)\n if (!isJSDocLikeText(content, start)) {\n return undefined;\n }\n var tags;\n var tagsPos;\n var tagsEnd;\n var linkEnd;\n var commentsPos;\n var comments = [];\n var parts = [];\n // + 3 for leading /**, - 5 in total for /** */\n return scanner.scanRange(start + 3, length - 5, function () {\n // Initially we can parse out a tag. We also have seen a starting asterisk.\n // This is so that /** * @type */ doesn't parse.\n var state = 1 /* SawAsterisk */;\n var margin;\n // + 4 for leading '/** '\n // + 1 because the last index of \\n is always one index before the first character in the line and coincidentally, if there is no \\n before start, it is -1, which is also one index before the first character\n var indent = start - (content.lastIndexOf(\"\\n\", start) + 1) + 4;\n function pushComment(text) {\n if (!margin) {\n margin = indent;\n }\n comments.push(text);\n indent += text.length;\n }\n nextTokenJSDoc();\n while (parseOptionalJsdoc(5 /* WhitespaceTrivia */))\n ;\n if (parseOptionalJsdoc(4 /* NewLineTrivia */)) {\n state = 0 /* BeginningOfLine */;\n indent = 0;\n }\n loop: while (true) {\n switch (token()) {\n case 59 /* AtToken */:\n if (state === 0 /* BeginningOfLine */ || state === 1 /* SawAsterisk */) {\n removeTrailingWhitespace(comments);\n if (!commentsPos)\n commentsPos = getNodePos();\n addTag(parseTag(indent));\n // NOTE: According to usejsdoc.org, a tag goes to end of line, except the last tag.\n // Real-world comments may break this rule, so \"BeginningOfLine\" will not be a real line beginning\n // for malformed examples like `/** @param {string} x @returns {number} the length */`\n state = 0 /* BeginningOfLine */;\n margin = undefined;\n }\n else {\n pushComment(scanner.getTokenText());\n }\n break;\n case 4 /* NewLineTrivia */:\n comments.push(scanner.getTokenText());\n state = 0 /* BeginningOfLine */;\n indent = 0;\n break;\n case 41 /* AsteriskToken */:\n var asterisk = scanner.getTokenText();\n if (state === 1 /* SawAsterisk */ || state === 2 /* SavingComments */) {\n // If we've already seen an asterisk, then we can no longer parse a tag on this line\n state = 2 /* SavingComments */;\n pushComment(asterisk);\n }\n else {\n // Ignore the first asterisk on a line\n state = 1 /* SawAsterisk */;\n indent += asterisk.length;\n }\n break;\n case 5 /* WhitespaceTrivia */:\n // only collect whitespace if we're already saving comments or have just crossed the comment indent margin\n var whitespace = scanner.getTokenText();\n if (state === 2 /* SavingComments */) {\n comments.push(whitespace);\n }\n else if (margin !== undefined && indent + whitespace.length > margin) {\n comments.push(whitespace.slice(margin - indent));\n }\n indent += whitespace.length;\n break;\n case 1 /* EndOfFileToken */:\n break loop;\n case 18 /* OpenBraceToken */:\n state = 2 /* SavingComments */;\n var commentEnd = scanner.getStartPos();\n var linkStart = scanner.getTextPos() - 1;\n var link = parseJSDocLink(linkStart);\n if (link) {\n if (!linkEnd) {\n removeLeadingNewlines(comments);\n }\n parts.push(finishNode(factory.createJSDocText(comments.join(\"\")), linkEnd !== null && linkEnd !== void 0 ? linkEnd : start, commentEnd));\n parts.push(link);\n comments = [];\n linkEnd = scanner.getTextPos();\n break;\n }\n // fallthrough if it's not a {@link sequence\n default:\n // Anything else is doc comment text. We just save it. Because it\n // wasn't a tag, we can no longer parse a tag on this line until we hit the next\n // line break.\n state = 2 /* SavingComments */;\n pushComment(scanner.getTokenText());\n break;\n }\n nextTokenJSDoc();\n }\n removeTrailingWhitespace(comments);\n if (parts.length && comments.length) {\n parts.push(finishNode(factory.createJSDocText(comments.join(\"\")), linkEnd !== null && linkEnd !== void 0 ? linkEnd : start, commentsPos));\n }\n if (parts.length && tags)\n ts.Debug.assertIsDefined(commentsPos, \"having parsed tags implies that the end of the comment span should be set\");\n var tagsArray = tags && createNodeArray(tags, tagsPos, tagsEnd);\n return finishNode(factory.createJSDocComment(parts.length ? createNodeArray(parts, start, commentsPos) : comments.length ? comments.join(\"\") : undefined, tagsArray), start, end);\n });\n function removeLeadingNewlines(comments) {\n while (comments.length && (comments[0] === \"\\n\" || comments[0] === \"\\r\")) {\n comments.shift();\n }\n }\n function removeTrailingWhitespace(comments) {\n while (comments.length && comments[comments.length - 1].trim() === \"\") {\n comments.pop();\n }\n }\n function isNextNonwhitespaceTokenEndOfFile() {\n // We must use infinite lookahead, as there could be any number of newlines :(\n while (true) {\n nextTokenJSDoc();\n if (token() === 1 /* EndOfFileToken */) {\n return true;\n }\n if (!(token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */)) {\n return false;\n }\n }\n }\n function skipWhitespace() {\n if (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) {\n if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {\n return; // Don't skip whitespace prior to EoF (or end of comment) - that shouldn't be included in any node's range\n }\n }\n while (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) {\n nextTokenJSDoc();\n }\n }\n function skipWhitespaceOrAsterisk() {\n if (token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) {\n if (lookAhead(isNextNonwhitespaceTokenEndOfFile)) {\n return \"\"; // Don't skip whitespace prior to EoF (or end of comment) - that shouldn't be included in any node's range\n }\n }\n var precedingLineBreak = scanner.hasPrecedingLineBreak();\n var seenLineBreak = false;\n var indentText = \"\";\n while ((precedingLineBreak && token() === 41 /* AsteriskToken */) || token() === 5 /* WhitespaceTrivia */ || token() === 4 /* NewLineTrivia */) {\n indentText += scanner.getTokenText();\n if (token() === 4 /* NewLineTrivia */) {\n precedingLineBreak = true;\n seenLineBreak = true;\n indentText = \"\";\n }\n else if (token() === 41 /* AsteriskToken */) {\n precedingLineBreak = false;\n }\n nextTokenJSDoc();\n }\n return seenLineBreak ? indentText : \"\";\n }\n function parseTag(margin) {\n ts.Debug.assert(token() === 59 /* AtToken */);\n var start = scanner.getTokenPos();\n nextTokenJSDoc();\n var tagName = parseJSDocIdentifierName(/*message*/ undefined);\n var indentText = skipWhitespaceOrAsterisk();\n var tag;\n switch (tagName.escapedText) {\n case \"author\":\n tag = parseAuthorTag(start, tagName, margin, indentText);\n break;\n case \"implements\":\n tag = parseImplementsTag(start, tagName, margin, indentText);\n break;\n case \"augments\":\n case \"extends\":\n tag = parseAugmentsTag(start, tagName, margin, indentText);\n break;\n case \"class\":\n case \"constructor\":\n tag = parseSimpleTag(start, factory.createJSDocClassTag, tagName, margin, indentText);\n break;\n case \"public\":\n tag = parseSimpleTag(start, factory.createJSDocPublicTag, tagName, margin, indentText);\n break;\n case \"private\":\n tag = parseSimpleTag(start, factory.createJSDocPrivateTag, tagName, margin, indentText);\n break;\n case \"protected\":\n tag = parseSimpleTag(start, factory.createJSDocProtectedTag, tagName, margin, indentText);\n break;\n case \"readonly\":\n tag = parseSimpleTag(start, factory.createJSDocReadonlyTag, tagName, margin, indentText);\n break;\n case \"override\":\n tag = parseSimpleTag(start, factory.createJSDocOverrideTag, tagName, margin, indentText);\n break;\n case \"deprecated\":\n hasDeprecatedTag = true;\n tag = parseSimpleTag(start, factory.createJSDocDeprecatedTag, tagName, margin, indentText);\n break;\n case \"this\":\n tag = parseThisTag(start, tagName, margin, indentText);\n break;\n case \"enum\":\n tag = parseEnumTag(start, tagName, margin, indentText);\n break;\n case \"arg\":\n case \"argument\":\n case \"param\":\n return parseParameterOrPropertyTag(start, tagName, 2 /* Parameter */, margin);\n case \"return\":\n case \"returns\":\n tag = parseReturnTag(start, tagName, margin, indentText);\n break;\n case \"template\":\n tag = parseTemplateTag(start, tagName, margin, indentText);\n break;\n case \"type\":\n tag = parseTypeTag(start, tagName, margin, indentText);\n break;\n case \"typedef\":\n tag = parseTypedefTag(start, tagName, margin, indentText);\n break;\n case \"callback\":\n tag = parseCallbackTag(start, tagName, margin, indentText);\n break;\n case \"see\":\n tag = parseSeeTag(start, tagName, margin, indentText);\n break;\n default:\n tag = parseUnknownTag(start, tagName, margin, indentText);\n break;\n }\n return tag;\n }\n function parseTrailingTagComments(pos, end, margin, indentText) {\n // some tags, like typedef and callback, have already parsed their comments earlier\n if (!indentText) {\n margin += end - pos;\n }\n return parseTagComments(margin, indentText.slice(margin));\n }\n function parseTagComments(indent, initialMargin) {\n var commentsPos = getNodePos();\n var comments = [];\n var parts = [];\n var linkEnd;\n var state = 0 /* BeginningOfLine */;\n var previousWhitespace = true;\n var margin;\n function pushComment(text) {\n if (!margin) {\n margin = indent;\n }\n comments.push(text);\n indent += text.length;\n }\n if (initialMargin !== undefined) {\n // jump straight to saving comments if there is some initial indentation\n if (initialMargin !== \"\") {\n pushComment(initialMargin);\n }\n state = 1 /* SawAsterisk */;\n }\n var tok = token();\n loop: while (true) {\n switch (tok) {\n case 4 /* NewLineTrivia */:\n state = 0 /* BeginningOfLine */;\n // don't use pushComment here because we want to keep the margin unchanged\n comments.push(scanner.getTokenText());\n indent = 0;\n break;\n case 59 /* AtToken */:\n if (state === 3 /* SavingBackticks */\n || state === 2 /* SavingComments */ && (!previousWhitespace || lookAhead(isNextJSDocTokenWhitespace))) {\n // @ doesn't start a new tag inside ``, and inside a comment, only after whitespace or not before whitespace\n comments.push(scanner.getTokenText());\n break;\n }\n scanner.setTextPos(scanner.getTextPos() - 1);\n // falls through\n case 1 /* EndOfFileToken */:\n // Done\n break loop;\n case 5 /* WhitespaceTrivia */:\n if (state === 2 /* SavingComments */ || state === 3 /* SavingBackticks */) {\n pushComment(scanner.getTokenText());\n }\n else {\n var whitespace = scanner.getTokenText();\n // if the whitespace crosses the margin, take only the whitespace that passes the margin\n if (margin !== undefined && indent + whitespace.length > margin) {\n comments.push(whitespace.slice(margin - indent));\n }\n indent += whitespace.length;\n }\n break;\n case 18 /* OpenBraceToken */:\n state = 2 /* SavingComments */;\n var commentEnd = scanner.getStartPos();\n var linkStart = scanner.getTextPos() - 1;\n var link = parseJSDocLink(linkStart);\n if (link) {\n parts.push(finishNode(factory.createJSDocText(comments.join(\"\")), linkEnd !== null && linkEnd !== void 0 ? linkEnd : commentsPos, commentEnd));\n parts.push(link);\n comments = [];\n linkEnd = scanner.getTextPos();\n }\n else {\n pushComment(scanner.getTokenText());\n }\n break;\n case 61 /* BacktickToken */:\n if (state === 3 /* SavingBackticks */) {\n state = 2 /* SavingComments */;\n }\n else {\n state = 3 /* SavingBackticks */;\n }\n pushComment(scanner.getTokenText());\n break;\n case 41 /* AsteriskToken */:\n if (state === 0 /* BeginningOfLine */) {\n // leading asterisks start recording on the *next* (non-whitespace) token\n state = 1 /* SawAsterisk */;\n indent += 1;\n break;\n }\n // record the * as a comment\n // falls through\n default:\n if (state !== 3 /* SavingBackticks */) {\n state = 2 /* SavingComments */; // leading identifiers start recording as well\n }\n pushComment(scanner.getTokenText());\n break;\n }\n previousWhitespace = token() === 5 /* WhitespaceTrivia */;\n tok = nextTokenJSDoc();\n }\n removeLeadingNewlines(comments);\n removeTrailingWhitespace(comments);\n if (parts.length) {\n if (comments.length) {\n parts.push(finishNode(factory.createJSDocText(comments.join(\"\")), linkEnd !== null && linkEnd !== void 0 ? linkEnd : commentsPos));\n }\n return createNodeArray(parts, commentsPos, scanner.getTextPos());\n }\n else if (comments.length) {\n return comments.join(\"\");\n }\n }\n function isNextJSDocTokenWhitespace() {\n var next = nextTokenJSDoc();\n return next === 5 /* WhitespaceTrivia */ || next === 4 /* NewLineTrivia */;\n }\n function parseJSDocLink(start) {\n var linkType = tryParse(parseJSDocLinkPrefix);\n if (!linkType) {\n return undefined;\n }\n nextTokenJSDoc(); // start at token after link, then skip any whitespace\n skipWhitespace();\n // parseEntityName logs an error for non-identifier, so create a MissingNode ourselves to avoid the error\n var p2 = getNodePos();\n var name = ts.tokenIsIdentifierOrKeyword(token())\n ? parseEntityName(/*allowReservedWords*/ true)\n : undefined;\n if (name) {\n while (token() === 80 /* PrivateIdentifier */) {\n reScanHashToken(); // rescan #id as # id\n nextTokenJSDoc(); // then skip the #\n name = finishNode(factory.createJSDocMemberName(name, parseIdentifier()), p2);\n }\n }\n var text = [];\n while (token() !== 19 /* CloseBraceToken */ && token() !== 4 /* NewLineTrivia */ && token() !== 1 /* EndOfFileToken */) {\n text.push(scanner.getTokenText());\n nextTokenJSDoc();\n }\n var create = linkType === \"link\" ? factory.createJSDocLink\n : linkType === \"linkcode\" ? factory.createJSDocLinkCode\n : factory.createJSDocLinkPlain;\n return finishNode(create(name, text.join(\"\")), start, scanner.getTextPos());\n }\n function parseJSDocLinkPrefix() {\n skipWhitespaceOrAsterisk();\n if (token() === 18 /* OpenBraceToken */\n && nextTokenJSDoc() === 59 /* AtToken */\n && ts.tokenIsIdentifierOrKeyword(nextTokenJSDoc())) {\n var kind = scanner.getTokenValue();\n if (kind === \"link\" || kind === \"linkcode\" || kind === \"linkplain\") {\n return kind;\n }\n }\n }\n function parseUnknownTag(start, tagName, indent, indentText) {\n return finishNode(factory.createJSDocUnknownTag(tagName, parseTrailingTagComments(start, getNodePos(), indent, indentText)), start);\n }\n function addTag(tag) {\n if (!tag) {\n return;\n }\n if (!tags) {\n tags = [tag];\n tagsPos = tag.pos;\n }\n else {\n tags.push(tag);\n }\n tagsEnd = tag.end;\n }\n function tryParseTypeExpression() {\n skipWhitespaceOrAsterisk();\n return token() === 18 /* OpenBraceToken */ ? parseJSDocTypeExpression() : undefined;\n }\n function parseBracketNameInPropertyAndParamTag() {\n // Looking for something like '[foo]', 'foo', '[foo.bar]' or 'foo.bar'\n var isBracketed = parseOptionalJsdoc(22 /* OpenBracketToken */);\n if (isBracketed) {\n skipWhitespace();\n }\n // a markdown-quoted name: `arg` is not legal jsdoc, but occurs in the wild\n var isBackquoted = parseOptionalJsdoc(61 /* BacktickToken */);\n var name = parseJSDocEntityName();\n if (isBackquoted) {\n parseExpectedTokenJSDoc(61 /* BacktickToken */);\n }\n if (isBracketed) {\n skipWhitespace();\n // May have an optional default, e.g. '[foo = 42]'\n if (parseOptionalToken(63 /* EqualsToken */)) {\n parseExpression();\n }\n parseExpected(23 /* CloseBracketToken */);\n }\n return { name: name, isBracketed: isBracketed };\n }\n function isObjectOrObjectArrayTypeReference(node) {\n switch (node.kind) {\n case 146 /* ObjectKeyword */:\n return true;\n case 181 /* ArrayType */:\n return isObjectOrObjectArrayTypeReference(node.elementType);\n default:\n return ts.isTypeReferenceNode(node) && ts.isIdentifier(node.typeName) && node.typeName.escapedText === \"Object\" && !node.typeArguments;\n }\n }\n function parseParameterOrPropertyTag(start, tagName, target, indent) {\n var typeExpression = tryParseTypeExpression();\n var isNameFirst = !typeExpression;\n skipWhitespaceOrAsterisk();\n var _a = parseBracketNameInPropertyAndParamTag(), name = _a.name, isBracketed = _a.isBracketed;\n var indentText = skipWhitespaceOrAsterisk();\n if (isNameFirst && !lookAhead(parseJSDocLinkPrefix)) {\n typeExpression = tryParseTypeExpression();\n }\n var comment = parseTrailingTagComments(start, getNodePos(), indent, indentText);\n var nestedTypeLiteral = target !== 4 /* CallbackParameter */ && parseNestedTypeLiteral(typeExpression, name, target, indent);\n if (nestedTypeLiteral) {\n typeExpression = nestedTypeLiteral;\n isNameFirst = true;\n }\n var result = target === 1 /* Property */\n ? factory.createJSDocPropertyTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment)\n : factory.createJSDocParameterTag(tagName, name, isBracketed, typeExpression, isNameFirst, comment);\n return finishNode(result, start);\n }\n function parseNestedTypeLiteral(typeExpression, name, target, indent) {\n if (typeExpression && isObjectOrObjectArrayTypeReference(typeExpression.type)) {\n var pos = getNodePos();\n var child = void 0;\n var children = void 0;\n while (child = tryParse(function () { return parseChildParameterOrPropertyTag(target, indent, name); })) {\n if (child.kind === 335 /* JSDocParameterTag */ || child.kind === 342 /* JSDocPropertyTag */) {\n children = ts.append(children, child);\n }\n }\n if (children) {\n var literal = finishNode(factory.createJSDocTypeLiteral(children, typeExpression.type.kind === 181 /* ArrayType */), pos);\n return finishNode(factory.createJSDocTypeExpression(literal), pos);\n }\n }\n }\n function parseReturnTag(start, tagName, indent, indentText) {\n if (ts.some(tags, ts.isJSDocReturnTag)) {\n parseErrorAt(tagName.pos, scanner.getTokenPos(), ts.Diagnostics._0_tag_already_specified, tagName.escapedText);\n }\n var typeExpression = tryParseTypeExpression();\n return finishNode(factory.createJSDocReturnTag(tagName, typeExpression, parseTrailingTagComments(start, getNodePos(), indent, indentText)), start);\n }\n function parseTypeTag(start, tagName, indent, indentText) {\n if (ts.some(tags, ts.isJSDocTypeTag)) {\n parseErrorAt(tagName.pos, scanner.getTokenPos(), ts.Diagnostics._0_tag_already_specified, tagName.escapedText);\n }\n var typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true);\n var comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, getNodePos(), indent, indentText) : undefined;\n return finishNode(factory.createJSDocTypeTag(tagName, typeExpression, comments), start);\n }\n function parseSeeTag(start, tagName, indent, indentText) {\n var isLink = lookAhead(function () { return nextTokenJSDoc() === 59 /* AtToken */ && ts.tokenIsIdentifierOrKeyword(nextTokenJSDoc()) && scanner.getTokenValue() === \"link\"; });\n var nameExpression = isLink ? undefined : parseJSDocNameReference();\n var comments = indent !== undefined && indentText !== undefined ? parseTrailingTagComments(start, getNodePos(), indent, indentText) : undefined;\n return finishNode(factory.createJSDocSeeTag(tagName, nameExpression, comments), start);\n }\n function parseAuthorTag(start, tagName, indent, indentText) {\n var commentStart = getNodePos();\n var textOnly = parseAuthorNameAndEmail();\n var commentEnd = scanner.getStartPos();\n var comments = parseTrailingTagComments(start, commentEnd, indent, indentText);\n if (!comments) {\n commentEnd = scanner.getStartPos();\n }\n var allParts = typeof comments !== \"string\"\n ? createNodeArray(ts.concatenate([finishNode(textOnly, commentStart, commentEnd)], comments), commentStart) // cast away readonly\n : textOnly.text + comments;\n return finishNode(factory.createJSDocAuthorTag(tagName, allParts), start);\n }\n function parseAuthorNameAndEmail() {\n var comments = [];\n var inEmail = false;\n var token = scanner.getToken();\n while (token !== 1 /* EndOfFileToken */ && token !== 4 /* NewLineTrivia */) {\n if (token === 29 /* LessThanToken */) {\n inEmail = true;\n }\n else if (token === 59 /* AtToken */ && !inEmail) {\n break;\n }\n else if (token === 31 /* GreaterThanToken */ && inEmail) {\n comments.push(scanner.getTokenText());\n scanner.setTextPos(scanner.getTokenPos() + 1);\n break;\n }\n comments.push(scanner.getTokenText());\n token = nextTokenJSDoc();\n }\n return factory.createJSDocText(comments.join(\"\"));\n }\n function parseImplementsTag(start, tagName, margin, indentText) {\n var className = parseExpressionWithTypeArgumentsForAugments();\n return finishNode(factory.createJSDocImplementsTag(tagName, className, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start);\n }\n function parseAugmentsTag(start, tagName, margin, indentText) {\n var className = parseExpressionWithTypeArgumentsForAugments();\n return finishNode(factory.createJSDocAugmentsTag(tagName, className, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start);\n }\n function parseExpressionWithTypeArgumentsForAugments() {\n var usedBrace = parseOptional(18 /* OpenBraceToken */);\n var pos = getNodePos();\n var expression = parsePropertyAccessEntityNameExpression();\n var typeArguments = tryParseTypeArguments();\n var node = factory.createExpressionWithTypeArguments(expression, typeArguments);\n var res = finishNode(node, pos);\n if (usedBrace) {\n parseExpected(19 /* CloseBraceToken */);\n }\n return res;\n }\n function parsePropertyAccessEntityNameExpression() {\n var pos = getNodePos();\n var node = parseJSDocIdentifierName();\n while (parseOptional(24 /* DotToken */)) {\n var name = parseJSDocIdentifierName();\n node = finishNode(factory.createPropertyAccessExpression(node, name), pos);\n }\n return node;\n }\n function parseSimpleTag(start, createTag, tagName, margin, indentText) {\n return finishNode(createTag(tagName, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start);\n }\n function parseThisTag(start, tagName, margin, indentText) {\n var typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true);\n skipWhitespace();\n return finishNode(factory.createJSDocThisTag(tagName, typeExpression, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start);\n }\n function parseEnumTag(start, tagName, margin, indentText) {\n var typeExpression = parseJSDocTypeExpression(/*mayOmitBraces*/ true);\n skipWhitespace();\n return finishNode(factory.createJSDocEnumTag(tagName, typeExpression, parseTrailingTagComments(start, getNodePos(), margin, indentText)), start);\n }\n function parseTypedefTag(start, tagName, indent, indentText) {\n var _a;\n var typeExpression = tryParseTypeExpression();\n skipWhitespaceOrAsterisk();\n var fullName = parseJSDocTypeNameWithNamespace();\n skipWhitespace();\n var comment = parseTagComments(indent);\n var end;\n if (!typeExpression || isObjectOrObjectArrayTypeReference(typeExpression.type)) {\n var child = void 0;\n var childTypeTag = void 0;\n var jsDocPropertyTags = void 0;\n var hasChildren = false;\n while (child = tryParse(function () { return parseChildPropertyTag(indent); })) {\n hasChildren = true;\n if (child.kind === 338 /* JSDocTypeTag */) {\n if (childTypeTag) {\n parseErrorAtCurrentToken(ts.Diagnostics.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);\n var lastError = ts.lastOrUndefined(parseDiagnostics);\n if (lastError) {\n ts.addRelatedInfo(lastError, ts.createDetachedDiagnostic(fileName, 0, 0, ts.Diagnostics.The_tag_was_first_specified_here));\n }\n break;\n }\n else {\n childTypeTag = child;\n }\n }\n else {\n jsDocPropertyTags = ts.append(jsDocPropertyTags, child);\n }\n }\n if (hasChildren) {\n var isArrayType = typeExpression && typeExpression.type.kind === 181 /* ArrayType */;\n var jsdocTypeLiteral = factory.createJSDocTypeLiteral(jsDocPropertyTags, isArrayType);\n typeExpression = childTypeTag && childTypeTag.typeExpression && !isObjectOrObjectArrayTypeReference(childTypeTag.typeExpression.type) ?\n childTypeTag.typeExpression :\n finishNode(jsdocTypeLiteral, start);\n end = typeExpression.end;\n }\n }\n // Only include the characters between the name end and the next token if a comment was actually parsed out - otherwise it's just whitespace\n end = end || comment !== undefined ?\n getNodePos() :\n ((_a = fullName !== null && fullName !== void 0 ? fullName : typeExpression) !== null && _a !== void 0 ? _a : tagName).end;\n if (!comment) {\n comment = parseTrailingTagComments(start, end, indent, indentText);\n }\n var typedefTag = factory.createJSDocTypedefTag(tagName, typeExpression, fullName, comment);\n return finishNode(typedefTag, start, end);\n }\n function parseJSDocTypeNameWithNamespace(nested) {\n var pos = scanner.getTokenPos();\n if (!ts.tokenIsIdentifierOrKeyword(token())) {\n return undefined;\n }\n var typeNameOrNamespaceName = parseJSDocIdentifierName();\n if (parseOptional(24 /* DotToken */)) {\n var body = parseJSDocTypeNameWithNamespace(/*nested*/ true);\n var jsDocNamespaceNode = factory.createModuleDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, typeNameOrNamespaceName, body, nested ? 4 /* NestedNamespace */ : undefined);\n return finishNode(jsDocNamespaceNode, pos);\n }\n if (nested) {\n typeNameOrNamespaceName.isInJSDocNamespace = true;\n }\n return typeNameOrNamespaceName;\n }\n function parseCallbackTagParameters(indent) {\n var pos = getNodePos();\n var child;\n var parameters;\n while (child = tryParse(function () { return parseChildParameterOrPropertyTag(4 /* CallbackParameter */, indent); })) {\n parameters = ts.append(parameters, child);\n }\n return createNodeArray(parameters || [], pos);\n }\n function parseCallbackTag(start, tagName, indent, indentText) {\n var fullName = parseJSDocTypeNameWithNamespace();\n skipWhitespace();\n var comment = parseTagComments(indent);\n var parameters = parseCallbackTagParameters(indent);\n var returnTag = tryParse(function () {\n if (parseOptionalJsdoc(59 /* AtToken */)) {\n var tag = parseTag(indent);\n if (tag && tag.kind === 336 /* JSDocReturnTag */) {\n return tag;\n }\n }\n });\n var typeExpression = finishNode(factory.createJSDocSignature(/*typeParameters*/ undefined, parameters, returnTag), start);\n if (!comment) {\n comment = parseTrailingTagComments(start, getNodePos(), indent, indentText);\n }\n return finishNode(factory.createJSDocCallbackTag(tagName, typeExpression, fullName, comment), start);\n }\n function escapedTextsEqual(a, b) {\n while (!ts.isIdentifier(a) || !ts.isIdentifier(b)) {\n if (!ts.isIdentifier(a) && !ts.isIdentifier(b) && a.right.escapedText === b.right.escapedText) {\n a = a.left;\n b = b.left;\n }\n else {\n return false;\n }\n }\n return a.escapedText === b.escapedText;\n }\n function parseChildPropertyTag(indent) {\n return parseChildParameterOrPropertyTag(1 /* Property */, indent);\n }\n function parseChildParameterOrPropertyTag(target, indent, name) {\n var canParseTag = true;\n var seenAsterisk = false;\n while (true) {\n switch (nextTokenJSDoc()) {\n case 59 /* AtToken */:\n if (canParseTag) {\n var child = tryParseChildTag(target, indent);\n if (child && (child.kind === 335 /* JSDocParameterTag */ || child.kind === 342 /* JSDocPropertyTag */) &&\n target !== 4 /* CallbackParameter */ &&\n name && (ts.isIdentifier(child.name) || !escapedTextsEqual(name, child.name.left))) {\n return false;\n }\n return child;\n }\n seenAsterisk = false;\n break;\n case 4 /* NewLineTrivia */:\n canParseTag = true;\n seenAsterisk = false;\n break;\n case 41 /* AsteriskToken */:\n if (seenAsterisk) {\n canParseTag = false;\n }\n seenAsterisk = true;\n break;\n case 79 /* Identifier */:\n canParseTag = false;\n break;\n case 1 /* EndOfFileToken */:\n return false;\n }\n }\n }\n function tryParseChildTag(target, indent) {\n ts.Debug.assert(token() === 59 /* AtToken */);\n var start = scanner.getStartPos();\n nextTokenJSDoc();\n var tagName = parseJSDocIdentifierName();\n skipWhitespace();\n var t;\n switch (tagName.escapedText) {\n case \"type\":\n return target === 1 /* Property */ && parseTypeTag(start, tagName);\n case \"prop\":\n case \"property\":\n t = 1 /* Property */;\n break;\n case \"arg\":\n case \"argument\":\n case \"param\":\n t = 2 /* Parameter */ | 4 /* CallbackParameter */;\n break;\n default:\n return false;\n }\n if (!(target & t)) {\n return false;\n }\n return parseParameterOrPropertyTag(start, tagName, target, indent);\n }\n function parseTemplateTagTypeParameter() {\n var typeParameterPos = getNodePos();\n var name = parseJSDocIdentifierName(ts.Diagnostics.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces);\n if (ts.nodeIsMissing(name)) {\n return undefined;\n }\n return finishNode(factory.createTypeParameterDeclaration(name, /*constraint*/ undefined, /*defaultType*/ undefined), typeParameterPos);\n }\n function parseTemplateTagTypeParameters() {\n var pos = getNodePos();\n var typeParameters = [];\n do {\n skipWhitespace();\n var node = parseTemplateTagTypeParameter();\n if (node !== undefined) {\n typeParameters.push(node);\n }\n skipWhitespaceOrAsterisk();\n } while (parseOptionalJsdoc(27 /* CommaToken */));\n return createNodeArray(typeParameters, pos);\n }\n function parseTemplateTag(start, tagName, indent, indentText) {\n // The template tag looks like one of the following:\n // @template T,U,V\n // @template {Constraint} T\n //\n // According to the [closure docs](https://github.com/google/closure-compiler/wiki/Generic-Types#multiple-bounded-template-types):\n // > Multiple bounded generics cannot be declared on the same line. For the sake of clarity, if multiple templates share the same\n // > type bound they must be declared on separate lines.\n //\n // TODO: Determine whether we should enforce this in the checker.\n // TODO: Consider moving the `constraint` to the first type parameter as we could then remove `getEffectiveConstraintOfTypeParameter`.\n // TODO: Consider only parsing a single type parameter if there is a constraint.\n var constraint = token() === 18 /* OpenBraceToken */ ? parseJSDocTypeExpression() : undefined;\n var typeParameters = parseTemplateTagTypeParameters();\n return finishNode(factory.createJSDocTemplateTag(tagName, constraint, typeParameters, parseTrailingTagComments(start, getNodePos(), indent, indentText)), start);\n }\n function parseOptionalJsdoc(t) {\n if (token() === t) {\n nextTokenJSDoc();\n return true;\n }\n return false;\n }\n function parseJSDocEntityName() {\n var entity = parseJSDocIdentifierName();\n if (parseOptional(22 /* OpenBracketToken */)) {\n parseExpected(23 /* CloseBracketToken */);\n // Note that y[] is accepted as an entity name, but the postfix brackets are not saved for checking.\n // Technically usejsdoc.org requires them for specifying a property of a type equivalent to Array<{ x: ...}>\n // but it's not worth it to enforce that restriction.\n }\n while (parseOptional(24 /* DotToken */)) {\n var name = parseJSDocIdentifierName();\n if (parseOptional(22 /* OpenBracketToken */)) {\n parseExpected(23 /* CloseBracketToken */);\n }\n entity = createQualifiedName(entity, name);\n }\n return entity;\n }\n function parseJSDocIdentifierName(message) {\n if (!ts.tokenIsIdentifierOrKeyword(token())) {\n return createMissingNode(79 /* Identifier */, /*reportAtCurrentPosition*/ !message, message || ts.Diagnostics.Identifier_expected);\n }\n identifierCount++;\n var pos = scanner.getTokenPos();\n var end = scanner.getTextPos();\n var originalKeywordKind = token();\n var text = internIdentifier(scanner.getTokenValue());\n var result = finishNode(factory.createIdentifier(text, /*typeArguments*/ undefined, originalKeywordKind), pos, end);\n nextTokenJSDoc();\n return result;\n }\n }\n })(JSDocParser = Parser.JSDocParser || (Parser.JSDocParser = {}));\n })(Parser || (Parser = {}));\n var IncrementalParser;\n (function (IncrementalParser) {\n function updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks) {\n aggressiveChecks = aggressiveChecks || ts.Debug.shouldAssert(2 /* Aggressive */);\n checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks);\n if (ts.textChangeRangeIsUnchanged(textChangeRange)) {\n // if the text didn't change, then we can just return our current source file as-is.\n return sourceFile;\n }\n if (sourceFile.statements.length === 0) {\n // If we don't have any statements in the current source file, then there's no real\n // way to incrementally parse. So just do a full parse instead.\n return Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, /*syntaxCursor*/ undefined, /*setParentNodes*/ true, sourceFile.scriptKind);\n }\n // Make sure we're not trying to incrementally update a source file more than once. Once\n // we do an update the original source file is considered unusable from that point onwards.\n //\n // This is because we do incremental parsing in-place. i.e. we take nodes from the old\n // tree and give them new positions and parents. From that point on, trusting the old\n // tree at all is not possible as far too much of it may violate invariants.\n var incrementalSourceFile = sourceFile;\n ts.Debug.assert(!incrementalSourceFile.hasBeenIncrementallyParsed);\n incrementalSourceFile.hasBeenIncrementallyParsed = true;\n Parser.fixupParentReferences(incrementalSourceFile);\n var oldText = sourceFile.text;\n var syntaxCursor = createSyntaxCursor(sourceFile);\n // Make the actual change larger so that we know to reparse anything whose lookahead\n // might have intersected the change.\n var changeRange = extendToAffectedRange(sourceFile, textChangeRange);\n checkChangeRange(sourceFile, newText, changeRange, aggressiveChecks);\n // Ensure that extending the affected range only moved the start of the change range\n // earlier in the file.\n ts.Debug.assert(changeRange.span.start <= textChangeRange.span.start);\n ts.Debug.assert(ts.textSpanEnd(changeRange.span) === ts.textSpanEnd(textChangeRange.span));\n ts.Debug.assert(ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)) === ts.textSpanEnd(ts.textChangeRangeNewSpan(textChangeRange)));\n // The is the amount the nodes after the edit range need to be adjusted. It can be\n // positive (if the edit added characters), negative (if the edit deleted characters)\n // or zero (if this was a pure overwrite with nothing added/removed).\n var delta = ts.textChangeRangeNewSpan(changeRange).length - changeRange.span.length;\n // If we added or removed characters during the edit, then we need to go and adjust all\n // the nodes after the edit. Those nodes may move forward (if we inserted chars) or they\n // may move backward (if we deleted chars).\n //\n // Doing this helps us out in two ways. First, it means that any nodes/tokens we want\n // to reuse are already at the appropriate position in the new text. That way when we\n // reuse them, we don't have to figure out if they need to be adjusted. Second, it makes\n // it very easy to determine if we can reuse a node. If the node's position is at where\n // we are in the text, then we can reuse it. Otherwise we can't. If the node's position\n // is ahead of us, then we'll need to rescan tokens. If the node's position is behind\n // us, then we'll need to skip it or crumble it as appropriate\n //\n // We will also adjust the positions of nodes that intersect the change range as well.\n // By doing this, we ensure that all the positions in the old tree are consistent, not\n // just the positions of nodes entirely before/after the change range. By being\n // consistent, we can then easily map from positions to nodes in the old tree easily.\n //\n // Also, mark any syntax elements that intersect the changed span. We know, up front,\n // that we cannot reuse these elements.\n updateTokenPositionsAndMarkElements(incrementalSourceFile, changeRange.span.start, ts.textSpanEnd(changeRange.span), ts.textSpanEnd(ts.textChangeRangeNewSpan(changeRange)), delta, oldText, newText, aggressiveChecks);\n // Now that we've set up our internal incremental state just proceed and parse the\n // source file in the normal fashion. When possible the parser will retrieve and\n // reuse nodes from the old tree.\n //\n // Note: passing in 'true' for setNodeParents is very important. When incrementally\n // parsing, we will be reusing nodes from the old tree, and placing it into new\n // parents. If we don't set the parents now, we'll end up with an observably\n // inconsistent tree. Setting the parents on the new tree should be very fast. We\n // will immediately bail out of walking any subtrees when we can see that their parents\n // are already correct.\n var result = Parser.parseSourceFile(sourceFile.fileName, newText, sourceFile.languageVersion, syntaxCursor, /*setParentNodes*/ true, sourceFile.scriptKind);\n result.commentDirectives = getNewCommentDirectives(sourceFile.commentDirectives, result.commentDirectives, changeRange.span.start, ts.textSpanEnd(changeRange.span), delta, oldText, newText, aggressiveChecks);\n return result;\n }\n IncrementalParser.updateSourceFile = updateSourceFile;\n function getNewCommentDirectives(oldDirectives, newDirectives, changeStart, changeRangeOldEnd, delta, oldText, newText, aggressiveChecks) {\n if (!oldDirectives)\n return newDirectives;\n var commentDirectives;\n var addedNewlyScannedDirectives = false;\n for (var _i = 0, oldDirectives_1 = oldDirectives; _i < oldDirectives_1.length; _i++) {\n var directive = oldDirectives_1[_i];\n var range = directive.range, type = directive.type;\n // Range before the change\n if (range.end < changeStart) {\n commentDirectives = ts.append(commentDirectives, directive);\n }\n else if (range.pos > changeRangeOldEnd) {\n addNewlyScannedDirectives();\n // Node is entirely past the change range. We need to move both its pos and\n // end, forward or backward appropriately.\n var updatedDirective = {\n range: { pos: range.pos + delta, end: range.end + delta },\n type: type\n };\n commentDirectives = ts.append(commentDirectives, updatedDirective);\n if (aggressiveChecks) {\n ts.Debug.assert(oldText.substring(range.pos, range.end) === newText.substring(updatedDirective.range.pos, updatedDirective.range.end));\n }\n }\n // Ignore ranges that fall in change range\n }\n addNewlyScannedDirectives();\n return commentDirectives;\n function addNewlyScannedDirectives() {\n if (addedNewlyScannedDirectives)\n return;\n addedNewlyScannedDirectives = true;\n if (!commentDirectives) {\n commentDirectives = newDirectives;\n }\n else if (newDirectives) {\n commentDirectives.push.apply(commentDirectives, newDirectives);\n }\n }\n }\n function moveElementEntirelyPastChangeRange(element, isArray, delta, oldText, newText, aggressiveChecks) {\n if (isArray) {\n visitArray(element);\n }\n else {\n visitNode(element);\n }\n return;\n function visitNode(node) {\n var text = \"\";\n if (aggressiveChecks && shouldCheckNode(node)) {\n text = oldText.substring(node.pos, node.end);\n }\n // Ditch any existing LS children we may have created. This way we can avoid\n // moving them forward.\n if (node._children) {\n node._children = undefined;\n }\n ts.setTextRangePosEnd(node, node.pos + delta, node.end + delta);\n if (aggressiveChecks && shouldCheckNode(node)) {\n ts.Debug.assert(text === newText.substring(node.pos, node.end));\n }\n forEachChild(node, visitNode, visitArray);\n if (ts.hasJSDocNodes(node)) {\n for (var _i = 0, _a = node.jsDoc; _i < _a.length; _i++) {\n var jsDocComment = _a[_i];\n visitNode(jsDocComment);\n }\n }\n checkNodePositions(node, aggressiveChecks);\n }\n function visitArray(array) {\n array._children = undefined;\n ts.setTextRangePosEnd(array, array.pos + delta, array.end + delta);\n for (var _i = 0, array_9 = array; _i < array_9.length; _i++) {\n var node = array_9[_i];\n visitNode(node);\n }\n }\n }\n function shouldCheckNode(node) {\n switch (node.kind) {\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 79 /* Identifier */:\n return true;\n }\n return false;\n }\n function adjustIntersectingElement(element, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta) {\n ts.Debug.assert(element.end >= changeStart, \"Adjusting an element that was entirely before the change range\");\n ts.Debug.assert(element.pos <= changeRangeOldEnd, \"Adjusting an element that was entirely after the change range\");\n ts.Debug.assert(element.pos <= element.end);\n // We have an element that intersects the change range in some way. It may have its\n // start, or its end (or both) in the changed range. We want to adjust any part\n // that intersects such that the final tree is in a consistent state. i.e. all\n // children have spans within the span of their parent, and all siblings are ordered\n // properly.\n // We may need to update both the 'pos' and the 'end' of the element.\n // If the 'pos' is before the start of the change, then we don't need to touch it.\n // If it isn't, then the 'pos' must be inside the change. How we update it will\n // depend if delta is positive or negative. If delta is positive then we have\n // something like:\n //\n // -------------------AAA-----------------\n // -------------------BBBCCCCCCC-----------------\n //\n // In this case, we consider any node that started in the change range to still be\n // starting at the same position.\n //\n // however, if the delta is negative, then we instead have something like this:\n //\n // -------------------XXXYYYYYYY-----------------\n // -------------------ZZZ-----------------\n //\n // In this case, any element that started in the 'X' range will keep its position.\n // However any element that started after that will have their pos adjusted to be\n // at the end of the new range. i.e. any node that started in the 'Y' range will\n // be adjusted to have their start at the end of the 'Z' range.\n //\n // The element will keep its position if possible. Or Move backward to the new-end\n // if it's in the 'Y' range.\n var pos = Math.min(element.pos, changeRangeNewEnd);\n // If the 'end' is after the change range, then we always adjust it by the delta\n // amount. However, if the end is in the change range, then how we adjust it\n // will depend on if delta is positive or negative. If delta is positive then we\n // have something like:\n //\n // -------------------AAA-----------------\n // -------------------BBBCCCCCCC-----------------\n //\n // In this case, we consider any node that ended inside the change range to keep its\n // end position.\n //\n // however, if the delta is negative, then we instead have something like this:\n //\n // -------------------XXXYYYYYYY-----------------\n // -------------------ZZZ-----------------\n //\n // In this case, any element that ended in the 'X' range will keep its position.\n // However any element that ended after that will have their pos adjusted to be\n // at the end of the new range. i.e. any node that ended in the 'Y' range will\n // be adjusted to have their end at the end of the 'Z' range.\n var end = element.end >= changeRangeOldEnd ?\n // Element ends after the change range. Always adjust the end pos.\n element.end + delta :\n // Element ends in the change range. The element will keep its position if\n // possible. Or Move backward to the new-end if it's in the 'Y' range.\n Math.min(element.end, changeRangeNewEnd);\n ts.Debug.assert(pos <= end);\n if (element.parent) {\n ts.Debug.assertGreaterThanOrEqual(pos, element.parent.pos);\n ts.Debug.assertLessThanOrEqual(end, element.parent.end);\n }\n ts.setTextRangePosEnd(element, pos, end);\n }\n function checkNodePositions(node, aggressiveChecks) {\n if (aggressiveChecks) {\n var pos_2 = node.pos;\n var visitNode_1 = function (child) {\n ts.Debug.assert(child.pos >= pos_2);\n pos_2 = child.end;\n };\n if (ts.hasJSDocNodes(node)) {\n for (var _i = 0, _a = node.jsDoc; _i < _a.length; _i++) {\n var jsDocComment = _a[_i];\n visitNode_1(jsDocComment);\n }\n }\n forEachChild(node, visitNode_1);\n ts.Debug.assert(pos_2 <= node.end);\n }\n }\n function updateTokenPositionsAndMarkElements(sourceFile, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta, oldText, newText, aggressiveChecks) {\n visitNode(sourceFile);\n return;\n function visitNode(child) {\n ts.Debug.assert(child.pos <= child.end);\n if (child.pos > changeRangeOldEnd) {\n // Node is entirely past the change range. We need to move both its pos and\n // end, forward or backward appropriately.\n moveElementEntirelyPastChangeRange(child, /*isArray*/ false, delta, oldText, newText, aggressiveChecks);\n return;\n }\n // Check if the element intersects the change range. If it does, then it is not\n // reusable. Also, we'll need to recurse to see what constituent portions we may\n // be able to use.\n var fullEnd = child.end;\n if (fullEnd >= changeStart) {\n child.intersectsChange = true;\n child._children = undefined;\n // Adjust the pos or end (or both) of the intersecting element accordingly.\n adjustIntersectingElement(child, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);\n forEachChild(child, visitNode, visitArray);\n if (ts.hasJSDocNodes(child)) {\n for (var _i = 0, _a = child.jsDoc; _i < _a.length; _i++) {\n var jsDocComment = _a[_i];\n visitNode(jsDocComment);\n }\n }\n checkNodePositions(child, aggressiveChecks);\n return;\n }\n // Otherwise, the node is entirely before the change range. No need to do anything with it.\n ts.Debug.assert(fullEnd < changeStart);\n }\n function visitArray(array) {\n ts.Debug.assert(array.pos <= array.end);\n if (array.pos > changeRangeOldEnd) {\n // Array is entirely after the change range. We need to move it, and move any of\n // its children.\n moveElementEntirelyPastChangeRange(array, /*isArray*/ true, delta, oldText, newText, aggressiveChecks);\n return;\n }\n // Check if the element intersects the change range. If it does, then it is not\n // reusable. Also, we'll need to recurse to see what constituent portions we may\n // be able to use.\n var fullEnd = array.end;\n if (fullEnd >= changeStart) {\n array.intersectsChange = true;\n array._children = undefined;\n // Adjust the pos or end (or both) of the intersecting array accordingly.\n adjustIntersectingElement(array, changeStart, changeRangeOldEnd, changeRangeNewEnd, delta);\n for (var _i = 0, array_10 = array; _i < array_10.length; _i++) {\n var node = array_10[_i];\n visitNode(node);\n }\n return;\n }\n // Otherwise, the array is entirely before the change range. No need to do anything with it.\n ts.Debug.assert(fullEnd < changeStart);\n }\n }\n function extendToAffectedRange(sourceFile, changeRange) {\n // Consider the following code:\n // void foo() { /; }\n //\n // If the text changes with an insertion of / just before the semicolon then we end up with:\n // void foo() { //; }\n //\n // If we were to just use the changeRange a is, then we would not rescan the { token\n // (as it does not intersect the actual original change range). Because an edit may\n // change the token touching it, we actually need to look back *at least* one token so\n // that the prior token sees that change.\n var maxLookahead = 1;\n var start = changeRange.span.start;\n // the first iteration aligns us with the change start. subsequent iteration move us to\n // the left by maxLookahead tokens. We only need to do this as long as we're not at the\n // start of the tree.\n for (var i = 0; start > 0 && i <= maxLookahead; i++) {\n var nearestNode = findNearestNodeStartingBeforeOrAtPosition(sourceFile, start);\n ts.Debug.assert(nearestNode.pos <= start);\n var position = nearestNode.pos;\n start = Math.max(0, position - 1);\n }\n var finalSpan = ts.createTextSpanFromBounds(start, ts.textSpanEnd(changeRange.span));\n var finalLength = changeRange.newLength + (changeRange.span.start - start);\n return ts.createTextChangeRange(finalSpan, finalLength);\n }\n function findNearestNodeStartingBeforeOrAtPosition(sourceFile, position) {\n var bestResult = sourceFile;\n var lastNodeEntirelyBeforePosition;\n forEachChild(sourceFile, visit);\n if (lastNodeEntirelyBeforePosition) {\n var lastChildOfLastEntireNodeBeforePosition = getLastDescendant(lastNodeEntirelyBeforePosition);\n if (lastChildOfLastEntireNodeBeforePosition.pos > bestResult.pos) {\n bestResult = lastChildOfLastEntireNodeBeforePosition;\n }\n }\n return bestResult;\n function getLastDescendant(node) {\n while (true) {\n var lastChild = ts.getLastChild(node);\n if (lastChild) {\n node = lastChild;\n }\n else {\n return node;\n }\n }\n }\n function visit(child) {\n if (ts.nodeIsMissing(child)) {\n // Missing nodes are effectively invisible to us. We never even consider them\n // When trying to find the nearest node before us.\n return;\n }\n // If the child intersects this position, then this node is currently the nearest\n // node that starts before the position.\n if (child.pos <= position) {\n if (child.pos >= bestResult.pos) {\n // This node starts before the position, and is closer to the position than\n // the previous best node we found. It is now the new best node.\n bestResult = child;\n }\n // Now, the node may overlap the position, or it may end entirely before the\n // position. If it overlaps with the position, then either it, or one of its\n // children must be the nearest node before the position. So we can just\n // recurse into this child to see if we can find something better.\n if (position < child.end) {\n // The nearest node is either this child, or one of the children inside\n // of it. We've already marked this child as the best so far. Recurse\n // in case one of the children is better.\n forEachChild(child, visit);\n // Once we look at the children of this node, then there's no need to\n // continue any further.\n return true;\n }\n else {\n ts.Debug.assert(child.end <= position);\n // The child ends entirely before this position. Say you have the following\n // (where $ is the position)\n //\n // ? $ : <...> <...>\n //\n // We would want to find the nearest preceding node in \"complex expr 2\".\n // To support that, we keep track of this node, and once we're done searching\n // for a best node, we recurse down this node to see if we can find a good\n // result in it.\n //\n // This approach allows us to quickly skip over nodes that are entirely\n // before the position, while still allowing us to find any nodes in the\n // last one that might be what we want.\n lastNodeEntirelyBeforePosition = child;\n }\n }\n else {\n ts.Debug.assert(child.pos > position);\n // We're now at a node that is entirely past the position we're searching for.\n // This node (and all following nodes) could never contribute to the result,\n // so just skip them by returning 'true' here.\n return true;\n }\n }\n }\n function checkChangeRange(sourceFile, newText, textChangeRange, aggressiveChecks) {\n var oldText = sourceFile.text;\n if (textChangeRange) {\n ts.Debug.assert((oldText.length - textChangeRange.span.length + textChangeRange.newLength) === newText.length);\n if (aggressiveChecks || ts.Debug.shouldAssert(3 /* VeryAggressive */)) {\n var oldTextPrefix = oldText.substr(0, textChangeRange.span.start);\n var newTextPrefix = newText.substr(0, textChangeRange.span.start);\n ts.Debug.assert(oldTextPrefix === newTextPrefix);\n var oldTextSuffix = oldText.substring(ts.textSpanEnd(textChangeRange.span), oldText.length);\n var newTextSuffix = newText.substring(ts.textSpanEnd(ts.textChangeRangeNewSpan(textChangeRange)), newText.length);\n ts.Debug.assert(oldTextSuffix === newTextSuffix);\n }\n }\n }\n function createSyntaxCursor(sourceFile) {\n var currentArray = sourceFile.statements;\n var currentArrayIndex = 0;\n ts.Debug.assert(currentArrayIndex < currentArray.length);\n var current = currentArray[currentArrayIndex];\n var lastQueriedPosition = -1 /* Value */;\n return {\n currentNode: function (position) {\n // Only compute the current node if the position is different than the last time\n // we were asked. The parser commonly asks for the node at the same position\n // twice. Once to know if can read an appropriate list element at a certain point,\n // and then to actually read and consume the node.\n if (position !== lastQueriedPosition) {\n // Much of the time the parser will need the very next node in the array that\n // we just returned a node from.So just simply check for that case and move\n // forward in the array instead of searching for the node again.\n if (current && current.end === position && currentArrayIndex < (currentArray.length - 1)) {\n currentArrayIndex++;\n current = currentArray[currentArrayIndex];\n }\n // If we don't have a node, or the node we have isn't in the right position,\n // then try to find a viable node at the position requested.\n if (!current || current.pos !== position) {\n findHighestListElementThatStartsAtPosition(position);\n }\n }\n // Cache this query so that we don't do any extra work if the parser calls back\n // into us. Note: this is very common as the parser will make pairs of calls like\n // 'isListElement -> parseListElement'. If we were unable to find a node when\n // called with 'isListElement', we don't want to redo the work when parseListElement\n // is called immediately after.\n lastQueriedPosition = position;\n // Either we don'd have a node, or we have a node at the position being asked for.\n ts.Debug.assert(!current || current.pos === position);\n return current;\n }\n };\n // Finds the highest element in the tree we can find that starts at the provided position.\n // The element must be a direct child of some node list in the tree. This way after we\n // return it, we can easily return its next sibling in the list.\n function findHighestListElementThatStartsAtPosition(position) {\n // Clear out any cached state about the last node we found.\n currentArray = undefined;\n currentArrayIndex = -1 /* Value */;\n current = undefined;\n // Recurse into the source file to find the highest node at this position.\n forEachChild(sourceFile, visitNode, visitArray);\n return;\n function visitNode(node) {\n if (position >= node.pos && position < node.end) {\n // Position was within this node. Keep searching deeper to find the node.\n forEachChild(node, visitNode, visitArray);\n // don't proceed any further in the search.\n return true;\n }\n // position wasn't in this node, have to keep searching.\n return false;\n }\n function visitArray(array) {\n if (position >= array.pos && position < array.end) {\n // position was in this array. Search through this array to see if we find a\n // viable element.\n for (var i = 0; i < array.length; i++) {\n var child = array[i];\n if (child) {\n if (child.pos === position) {\n // Found the right node. We're done.\n currentArray = array;\n currentArrayIndex = i;\n current = child;\n return true;\n }\n else {\n if (child.pos < position && position < child.end) {\n // Position in somewhere within this child. Search in it and\n // stop searching in this array.\n forEachChild(child, visitNode, visitArray);\n return true;\n }\n }\n }\n }\n }\n // position wasn't in this array, have to keep searching.\n return false;\n }\n }\n }\n IncrementalParser.createSyntaxCursor = createSyntaxCursor;\n var InvalidPosition;\n (function (InvalidPosition) {\n InvalidPosition[InvalidPosition[\"Value\"] = -1] = \"Value\";\n })(InvalidPosition || (InvalidPosition = {}));\n })(IncrementalParser || (IncrementalParser = {}));\n /** @internal */\n function isDeclarationFileName(fileName) {\n return ts.fileExtensionIs(fileName, \".d.ts\" /* Dts */);\n }\n ts.isDeclarationFileName = isDeclarationFileName;\n /*@internal*/\n function processCommentPragmas(context, sourceText) {\n var pragmas = [];\n for (var _i = 0, _a = ts.getLeadingCommentRanges(sourceText, 0) || ts.emptyArray; _i < _a.length; _i++) {\n var range = _a[_i];\n var comment = sourceText.substring(range.pos, range.end);\n extractPragmas(pragmas, range, comment);\n }\n context.pragmas = new ts.Map();\n for (var _b = 0, pragmas_1 = pragmas; _b < pragmas_1.length; _b++) {\n var pragma = pragmas_1[_b];\n if (context.pragmas.has(pragma.name)) {\n var currentValue = context.pragmas.get(pragma.name);\n if (currentValue instanceof Array) {\n currentValue.push(pragma.args);\n }\n else {\n context.pragmas.set(pragma.name, [currentValue, pragma.args]);\n }\n continue;\n }\n context.pragmas.set(pragma.name, pragma.args);\n }\n }\n ts.processCommentPragmas = processCommentPragmas;\n /*@internal*/\n function processPragmasIntoFields(context, reportDiagnostic) {\n context.checkJsDirective = undefined;\n context.referencedFiles = [];\n context.typeReferenceDirectives = [];\n context.libReferenceDirectives = [];\n context.amdDependencies = [];\n context.hasNoDefaultLib = false;\n context.pragmas.forEach(function (entryOrList, key) {\n // TODO: The below should be strongly type-guarded and not need casts/explicit annotations, since entryOrList is related to\n // key and key is constrained to a union; but it's not (see GH#21483 for at least partial fix) :(\n switch (key) {\n case \"reference\": {\n var referencedFiles_1 = context.referencedFiles;\n var typeReferenceDirectives_1 = context.typeReferenceDirectives;\n var libReferenceDirectives_1 = context.libReferenceDirectives;\n ts.forEach(ts.toArray(entryOrList), function (arg) {\n var _a = arg.arguments, types = _a.types, lib = _a.lib, path = _a.path;\n if (arg.arguments[\"no-default-lib\"]) {\n context.hasNoDefaultLib = true;\n }\n else if (types) {\n typeReferenceDirectives_1.push({ pos: types.pos, end: types.end, fileName: types.value });\n }\n else if (lib) {\n libReferenceDirectives_1.push({ pos: lib.pos, end: lib.end, fileName: lib.value });\n }\n else if (path) {\n referencedFiles_1.push({ pos: path.pos, end: path.end, fileName: path.value });\n }\n else {\n reportDiagnostic(arg.range.pos, arg.range.end - arg.range.pos, ts.Diagnostics.Invalid_reference_directive_syntax);\n }\n });\n break;\n }\n case \"amd-dependency\": {\n context.amdDependencies = ts.map(ts.toArray(entryOrList), function (x) { return ({ name: x.arguments.name, path: x.arguments.path }); });\n break;\n }\n case \"amd-module\": {\n if (entryOrList instanceof Array) {\n for (var _i = 0, entryOrList_1 = entryOrList; _i < entryOrList_1.length; _i++) {\n var entry = entryOrList_1[_i];\n if (context.moduleName) {\n // TODO: It's probably fine to issue this diagnostic on all instances of the pragma\n reportDiagnostic(entry.range.pos, entry.range.end - entry.range.pos, ts.Diagnostics.An_AMD_module_cannot_have_multiple_name_assignments);\n }\n context.moduleName = entry.arguments.name;\n }\n }\n else {\n context.moduleName = entryOrList.arguments.name;\n }\n break;\n }\n case \"ts-nocheck\":\n case \"ts-check\": {\n // _last_ of either nocheck or check in a file is the \"winner\"\n ts.forEach(ts.toArray(entryOrList), function (entry) {\n if (!context.checkJsDirective || entry.range.pos > context.checkJsDirective.pos) {\n context.checkJsDirective = {\n enabled: key === \"ts-check\",\n end: entry.range.end,\n pos: entry.range.pos\n };\n }\n });\n break;\n }\n case \"jsx\":\n case \"jsxfrag\":\n case \"jsximportsource\":\n case \"jsxruntime\":\n return; // Accessed directly\n default: ts.Debug.fail(\"Unhandled pragma kind\"); // Can this be made into an assertNever in the future?\n }\n });\n }\n ts.processPragmasIntoFields = processPragmasIntoFields;\n var namedArgRegExCache = new ts.Map();\n function getNamedArgRegEx(name) {\n if (namedArgRegExCache.has(name)) {\n return namedArgRegExCache.get(name);\n }\n var result = new RegExp(\"(\\\\s\" + name + \"\\\\s*=\\\\s*)(?:(?:'([^']*)')|(?:\\\"([^\\\"]*)\\\"))\", \"im\");\n namedArgRegExCache.set(name, result);\n return result;\n }\n var tripleSlashXMLCommentStartRegEx = /^\\/\\/\\/\\s*<(\\S+)\\s.*?\\/>/im;\n var singleLinePragmaRegEx = /^\\/\\/\\/?\\s*@(\\S+)\\s*(.*)\\s*$/im;\n function extractPragmas(pragmas, range, text) {\n var tripleSlash = range.kind === 2 /* SingleLineCommentTrivia */ && tripleSlashXMLCommentStartRegEx.exec(text);\n if (tripleSlash) {\n var name = tripleSlash[1].toLowerCase(); // Technically unsafe cast, but we do it so the below check to make it safe typechecks\n var pragma = ts.commentPragmas[name];\n if (!pragma || !(pragma.kind & 1 /* TripleSlashXML */)) {\n return;\n }\n if (pragma.args) {\n var argument = {};\n for (var _i = 0, _a = pragma.args; _i < _a.length; _i++) {\n var arg = _a[_i];\n var matcher = getNamedArgRegEx(arg.name);\n var matchResult = matcher.exec(text);\n if (!matchResult && !arg.optional) {\n return; // Missing required argument, don't parse\n }\n else if (matchResult) {\n var value = matchResult[2] || matchResult[3];\n if (arg.captureSpan) {\n var startPos = range.pos + matchResult.index + matchResult[1].length + 1;\n argument[arg.name] = {\n value: value,\n pos: startPos,\n end: startPos + value.length\n };\n }\n else {\n argument[arg.name] = value;\n }\n }\n }\n pragmas.push({ name: name, args: { arguments: argument, range: range } });\n }\n else {\n pragmas.push({ name: name, args: { arguments: {}, range: range } });\n }\n return;\n }\n var singleLine = range.kind === 2 /* SingleLineCommentTrivia */ && singleLinePragmaRegEx.exec(text);\n if (singleLine) {\n return addPragmaForMatch(pragmas, range, 2 /* SingleLine */, singleLine);\n }\n if (range.kind === 3 /* MultiLineCommentTrivia */) {\n var multiLinePragmaRegEx = /@(\\S+)(\\s+.*)?$/gim; // Defined inline since it uses the \"g\" flag, which keeps a persistent index (for iterating)\n var multiLineMatch = void 0;\n while (multiLineMatch = multiLinePragmaRegEx.exec(text)) {\n addPragmaForMatch(pragmas, range, 4 /* MultiLine */, multiLineMatch);\n }\n }\n }\n function addPragmaForMatch(pragmas, range, kind, match) {\n if (!match)\n return;\n var name = match[1].toLowerCase(); // Technically unsafe cast, but we do it so they below check to make it safe typechecks\n var pragma = ts.commentPragmas[name];\n if (!pragma || !(pragma.kind & kind)) {\n return;\n }\n var args = match[2]; // Split on spaces and match up positionally with definition\n var argument = getNamedPragmaArguments(pragma, args);\n if (argument === \"fail\")\n return; // Missing required argument, fail to parse it\n pragmas.push({ name: name, args: { arguments: argument, range: range } });\n return;\n }\n function getNamedPragmaArguments(pragma, text) {\n if (!text)\n return {};\n if (!pragma.args)\n return {};\n var args = ts.trimString(text).split(/\\s+/);\n var argMap = {};\n for (var i = 0; i < pragma.args.length; i++) {\n var argument = pragma.args[i];\n if (!args[i] && !argument.optional) {\n return \"fail\";\n }\n if (argument.captureSpan) {\n return ts.Debug.fail(\"Capture spans not yet implemented for non-xml pragmas\");\n }\n argMap[argument.name] = args[i];\n }\n return argMap;\n }\n /** @internal */\n function tagNamesAreEquivalent(lhs, rhs) {\n if (lhs.kind !== rhs.kind) {\n return false;\n }\n if (lhs.kind === 79 /* Identifier */) {\n return lhs.escapedText === rhs.escapedText;\n }\n if (lhs.kind === 108 /* ThisKeyword */) {\n return true;\n }\n // If we are at this statement then we must have PropertyAccessExpression and because tag name in Jsx element can only\n // take forms of JsxTagNameExpression which includes an identifier, \"this\" expression, or another propertyAccessExpression\n // it is safe to case the expression property as such. See parseJsxElementName for how we parse tag name in Jsx element\n return lhs.name.escapedText === rhs.name.escapedText &&\n tagNamesAreEquivalent(lhs.expression, rhs.expression);\n }\n ts.tagNamesAreEquivalent = tagNamesAreEquivalent;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /* @internal */\n ts.compileOnSaveCommandLineOption = { name: \"compileOnSave\", type: \"boolean\" };\n var jsxOptionMap = new ts.Map(ts.getEntries({\n \"preserve\": 1 /* Preserve */,\n \"react-native\": 3 /* ReactNative */,\n \"react\": 2 /* React */,\n \"react-jsx\": 4 /* ReactJSX */,\n \"react-jsxdev\": 5 /* ReactJSXDev */,\n }));\n /* @internal */\n ts.inverseJsxOptionMap = new ts.Map(ts.arrayFrom(ts.mapIterator(jsxOptionMap.entries(), function (_a) {\n var key = _a[0], value = _a[1];\n return [\"\" + value, key];\n })));\n // NOTE: The order here is important to default lib ordering as entries will have the same\n // order in the generated program (see `getDefaultLibPriority` in program.ts). This\n // order also affects overload resolution when a type declared in one lib is\n // augmented in another lib.\n var libEntries = [\n // JavaScript only\n [\"es5\", \"lib.es5.d.ts\"],\n [\"es6\", \"lib.es2015.d.ts\"],\n [\"es2015\", \"lib.es2015.d.ts\"],\n [\"es7\", \"lib.es2016.d.ts\"],\n [\"es2016\", \"lib.es2016.d.ts\"],\n [\"es2017\", \"lib.es2017.d.ts\"],\n [\"es2018\", \"lib.es2018.d.ts\"],\n [\"es2019\", \"lib.es2019.d.ts\"],\n [\"es2020\", \"lib.es2020.d.ts\"],\n [\"es2021\", \"lib.es2021.d.ts\"],\n [\"esnext\", \"lib.esnext.d.ts\"],\n // Host only\n [\"dom\", \"lib.dom.d.ts\"],\n [\"dom.iterable\", \"lib.dom.iterable.d.ts\"],\n [\"webworker\", \"lib.webworker.d.ts\"],\n [\"webworker.importscripts\", \"lib.webworker.importscripts.d.ts\"],\n [\"webworker.iterable\", \"lib.webworker.iterable.d.ts\"],\n [\"scripthost\", \"lib.scripthost.d.ts\"],\n // ES2015 Or ESNext By-feature options\n [\"es2015.core\", \"lib.es2015.core.d.ts\"],\n [\"es2015.collection\", \"lib.es2015.collection.d.ts\"],\n [\"es2015.generator\", \"lib.es2015.generator.d.ts\"],\n [\"es2015.iterable\", \"lib.es2015.iterable.d.ts\"],\n [\"es2015.promise\", \"lib.es2015.promise.d.ts\"],\n [\"es2015.proxy\", \"lib.es2015.proxy.d.ts\"],\n [\"es2015.reflect\", \"lib.es2015.reflect.d.ts\"],\n [\"es2015.symbol\", \"lib.es2015.symbol.d.ts\"],\n [\"es2015.symbol.wellknown\", \"lib.es2015.symbol.wellknown.d.ts\"],\n [\"es2016.array.include\", \"lib.es2016.array.include.d.ts\"],\n [\"es2017.object\", \"lib.es2017.object.d.ts\"],\n [\"es2017.sharedmemory\", \"lib.es2017.sharedmemory.d.ts\"],\n [\"es2017.string\", \"lib.es2017.string.d.ts\"],\n [\"es2017.intl\", \"lib.es2017.intl.d.ts\"],\n [\"es2017.typedarrays\", \"lib.es2017.typedarrays.d.ts\"],\n [\"es2018.asyncgenerator\", \"lib.es2018.asyncgenerator.d.ts\"],\n [\"es2018.asynciterable\", \"lib.es2018.asynciterable.d.ts\"],\n [\"es2018.intl\", \"lib.es2018.intl.d.ts\"],\n [\"es2018.promise\", \"lib.es2018.promise.d.ts\"],\n [\"es2018.regexp\", \"lib.es2018.regexp.d.ts\"],\n [\"es2019.array\", \"lib.es2019.array.d.ts\"],\n [\"es2019.object\", \"lib.es2019.object.d.ts\"],\n [\"es2019.string\", \"lib.es2019.string.d.ts\"],\n [\"es2019.symbol\", \"lib.es2019.symbol.d.ts\"],\n [\"es2020.bigint\", \"lib.es2020.bigint.d.ts\"],\n [\"es2020.promise\", \"lib.es2020.promise.d.ts\"],\n [\"es2020.sharedmemory\", \"lib.es2020.sharedmemory.d.ts\"],\n [\"es2020.string\", \"lib.es2020.string.d.ts\"],\n [\"es2020.symbol.wellknown\", \"lib.es2020.symbol.wellknown.d.ts\"],\n [\"es2020.intl\", \"lib.es2020.intl.d.ts\"],\n [\"es2021.promise\", \"lib.es2021.promise.d.ts\"],\n [\"es2021.string\", \"lib.es2021.string.d.ts\"],\n [\"es2021.weakref\", \"lib.es2021.weakref.d.ts\"],\n [\"esnext.array\", \"lib.es2019.array.d.ts\"],\n [\"esnext.symbol\", \"lib.es2019.symbol.d.ts\"],\n [\"esnext.asynciterable\", \"lib.es2018.asynciterable.d.ts\"],\n [\"esnext.intl\", \"lib.esnext.intl.d.ts\"],\n [\"esnext.bigint\", \"lib.es2020.bigint.d.ts\"],\n [\"esnext.string\", \"lib.es2021.string.d.ts\"],\n [\"esnext.promise\", \"lib.es2021.promise.d.ts\"],\n [\"esnext.weakref\", \"lib.es2021.weakref.d.ts\"]\n ];\n /**\n * An array of supported \"lib\" reference file names used to determine the order for inclusion\n * when referenced, as well as for spelling suggestions. This ensures the correct ordering for\n * overload resolution when a type declared in one lib is extended by another.\n */\n /* @internal */\n ts.libs = libEntries.map(function (entry) { return entry[0]; });\n /**\n * A map of lib names to lib files. This map is used both for parsing the \"lib\" command line\n * option as well as for resolving lib reference directives.\n */\n /* @internal */\n ts.libMap = new ts.Map(libEntries);\n // Watch related options\n /* @internal */\n ts.optionsForWatch = [\n {\n name: \"watchFile\",\n type: new ts.Map(ts.getEntries({\n fixedpollinginterval: ts.WatchFileKind.FixedPollingInterval,\n prioritypollinginterval: ts.WatchFileKind.PriorityPollingInterval,\n dynamicprioritypolling: ts.WatchFileKind.DynamicPriorityPolling,\n fixedchunksizepolling: ts.WatchFileKind.FixedChunkSizePolling,\n usefsevents: ts.WatchFileKind.UseFsEvents,\n usefseventsonparentdirectory: ts.WatchFileKind.UseFsEventsOnParentDirectory,\n })),\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Specify_how_the_TypeScript_watch_mode_works,\n },\n {\n name: \"watchDirectory\",\n type: new ts.Map(ts.getEntries({\n usefsevents: ts.WatchDirectoryKind.UseFsEvents,\n fixedpollinginterval: ts.WatchDirectoryKind.FixedPollingInterval,\n dynamicprioritypolling: ts.WatchDirectoryKind.DynamicPriorityPolling,\n fixedchunksizepolling: ts.WatchDirectoryKind.FixedChunkSizePolling,\n })),\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Specify_how_directories_are_watched_on_systems_that_lack_recursive_file_watching_functionality,\n },\n {\n name: \"fallbackPolling\",\n type: new ts.Map(ts.getEntries({\n fixedinterval: ts.PollingWatchKind.FixedInterval,\n priorityinterval: ts.PollingWatchKind.PriorityInterval,\n dynamicpriority: ts.PollingWatchKind.DynamicPriority,\n fixedchunksize: ts.PollingWatchKind.FixedChunkSize,\n })),\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Specify_what_approach_the_watcher_should_use_if_the_system_runs_out_of_native_file_watchers,\n },\n {\n name: \"synchronousWatchDirectory\",\n type: \"boolean\",\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Synchronously_call_callbacks_and_update_the_state_of_directory_watchers_on_platforms_that_don_t_support_recursive_watching_natively,\n },\n {\n name: \"excludeDirectories\",\n type: \"list\",\n element: {\n name: \"excludeDirectory\",\n type: \"string\",\n isFilePath: true,\n extraValidation: specToDiagnostic\n },\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Remove_a_list_of_directories_from_the_watch_process,\n },\n {\n name: \"excludeFiles\",\n type: \"list\",\n element: {\n name: \"excludeFile\",\n type: \"string\",\n isFilePath: true,\n extraValidation: specToDiagnostic\n },\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Remove_a_list_of_files_from_the_watch_mode_s_processing,\n },\n ];\n /* @internal */\n ts.commonOptionsWithBuild = [\n {\n name: \"help\",\n shortName: \"h\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Print_this_message,\n },\n {\n name: \"help\",\n shortName: \"?\",\n type: \"boolean\"\n },\n {\n name: \"watch\",\n shortName: \"w\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n isCommandLineOnly: true,\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Watch_input_files,\n },\n {\n name: \"preserveWatchOutput\",\n type: \"boolean\",\n showInSimplifiedHelpView: false,\n category: ts.Diagnostics.Output_Formatting,\n description: ts.Diagnostics.Disable_wiping_the_console_in_watch_mode,\n defaultValueDescription: \"n/a\"\n },\n {\n name: \"listFiles\",\n type: \"boolean\",\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Print_all_of_the_files_read_during_the_compilation,\n defaultValueDescription: \"false\"\n },\n {\n name: \"explainFiles\",\n type: \"boolean\",\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Print_files_read_during_the_compilation_including_why_it_was_included\n },\n {\n name: \"listEmittedFiles\",\n type: \"boolean\",\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Print_the_names_of_emitted_files_after_a_compilation,\n defaultValueDescription: \"false\"\n },\n {\n name: \"pretty\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Output_Formatting,\n description: ts.Diagnostics.Enable_color_and_formatting_in_TypeScript_s_output_to_make_compiler_errors_easier_to_read,\n defaultValueDescription: \"true\"\n },\n {\n name: \"traceResolution\",\n type: \"boolean\",\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Log_paths_used_during_the_moduleResolution_process,\n defaultValueDescription: \"false\"\n },\n {\n name: \"diagnostics\",\n type: \"boolean\",\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Output_compiler_performance_information_after_building,\n defaultValueDescription: \"false\"\n },\n {\n name: \"extendedDiagnostics\",\n type: \"boolean\",\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Output_more_detailed_compiler_performance_information_after_building,\n defaultValueDescription: \"false\"\n },\n {\n name: \"generateCpuProfile\",\n type: \"string\",\n isFilePath: true,\n paramType: ts.Diagnostics.FILE_OR_DIRECTORY,\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Emit_a_v8_CPU_profile_of_the_compiler_run_for_debugging,\n defaultValueDescription: \"profile.cpuprofile\"\n },\n {\n name: \"generateTrace\",\n type: \"string\",\n isFilePath: true,\n isCommandLineOnly: true,\n paramType: ts.Diagnostics.DIRECTORY,\n category: ts.Diagnostics.Compiler_Diagnostics,\n description: ts.Diagnostics.Generates_an_event_trace_and_a_list_of_types\n },\n {\n name: \"incremental\",\n shortName: \"i\",\n type: \"boolean\",\n category: ts.Diagnostics.Projects,\n description: ts.Diagnostics.Enable_incremental_compilation,\n transpileOptionValue: undefined,\n defaultValueDescription: ts.Diagnostics.false_unless_composite_is_set\n },\n {\n name: \"assumeChangesOnlyAffectDirectDependencies\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n affectsEmit: true,\n category: ts.Diagnostics.Watch_and_Build_Modes,\n description: ts.Diagnostics.Have_recompiles_in_projects_that_use_incremental_and_watch_mode_assume_that_changes_within_a_file_will_only_affect_files_directly_depending_on_it\n },\n {\n name: \"locale\",\n type: \"string\",\n category: ts.Diagnostics.Command_line_Options,\n isCommandLineOnly: true,\n description: ts.Diagnostics.Set_the_language_of_the_messaging_from_TypeScript_This_does_not_affect_emit,\n defaultValueDescription: ts.Diagnostics.Platform_specific\n },\n ];\n /* @internal */\n ts.targetOptionDeclaration = {\n name: \"target\",\n shortName: \"t\",\n type: new ts.Map(ts.getEntries({\n es3: 0 /* ES3 */,\n es5: 1 /* ES5 */,\n es6: 2 /* ES2015 */,\n es2015: 2 /* ES2015 */,\n es2016: 3 /* ES2016 */,\n es2017: 4 /* ES2017 */,\n es2018: 5 /* ES2018 */,\n es2019: 6 /* ES2019 */,\n es2020: 7 /* ES2020 */,\n es2021: 8 /* ES2021 */,\n esnext: 99 /* ESNext */,\n })),\n affectsSourceFile: true,\n affectsModuleResolution: true,\n affectsEmit: true,\n paramType: ts.Diagnostics.VERSION,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Set_the_JavaScript_language_version_for_emitted_JavaScript_and_include_compatible_library_declarations,\n defaultValueDescription: \"ES3\"\n };\n var commandOptionsWithoutBuild = [\n // CommandLine only options\n {\n name: \"all\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Show_all_compiler_options,\n },\n {\n name: \"version\",\n shortName: \"v\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Print_the_compiler_s_version,\n },\n {\n name: \"init\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Initializes_a_TypeScript_project_and_creates_a_tsconfig_json_file,\n },\n {\n name: \"project\",\n shortName: \"p\",\n type: \"string\",\n isFilePath: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n paramType: ts.Diagnostics.FILE_OR_DIRECTORY,\n description: ts.Diagnostics.Compile_the_project_given_the_path_to_its_configuration_file_or_to_a_folder_with_a_tsconfig_json,\n },\n {\n name: \"build\",\n type: \"boolean\",\n shortName: \"b\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Build_one_or_more_projects_and_their_dependencies_if_out_of_date\n },\n {\n name: \"showConfig\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Command_line_Options,\n isCommandLineOnly: true,\n description: ts.Diagnostics.Print_the_final_configuration_instead_of_building\n },\n {\n name: \"listFilesOnly\",\n type: \"boolean\",\n category: ts.Diagnostics.Command_line_Options,\n affectsSemanticDiagnostics: true,\n affectsEmit: true,\n isCommandLineOnly: true,\n description: ts.Diagnostics.Print_names_of_files_that_are_part_of_the_compilation_and_then_stop_processing\n },\n // Basic\n ts.targetOptionDeclaration,\n {\n name: \"module\",\n shortName: \"m\",\n type: new ts.Map(ts.getEntries({\n none: ts.ModuleKind.None,\n commonjs: ts.ModuleKind.CommonJS,\n amd: ts.ModuleKind.AMD,\n system: ts.ModuleKind.System,\n umd: ts.ModuleKind.UMD,\n es6: ts.ModuleKind.ES2015,\n es2015: ts.ModuleKind.ES2015,\n es2020: ts.ModuleKind.ES2020,\n esnext: ts.ModuleKind.ESNext\n })),\n affectsModuleResolution: true,\n affectsEmit: true,\n paramType: ts.Diagnostics.KIND,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_what_module_code_is_generated,\n },\n {\n name: \"lib\",\n type: \"list\",\n element: {\n name: \"lib\",\n type: ts.libMap\n },\n affectsProgramStructure: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Specify_a_set_of_bundled_library_declaration_files_that_describe_the_target_runtime_environment,\n transpileOptionValue: undefined\n },\n {\n name: \"allowJs\",\n type: \"boolean\",\n affectsModuleResolution: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.JavaScript_Support,\n description: ts.Diagnostics.Allow_JavaScript_files_to_be_a_part_of_your_program_Use_the_checkJS_option_to_get_errors_from_these_files,\n defaultValueDescription: \"false\"\n },\n {\n name: \"checkJs\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.JavaScript_Support,\n description: ts.Diagnostics.Enable_error_reporting_in_type_checked_JavaScript_files,\n defaultValueDescription: \"false\"\n },\n {\n name: \"jsx\",\n type: jsxOptionMap,\n affectsSourceFile: true,\n affectsEmit: true,\n affectsModuleResolution: true,\n paramType: ts.Diagnostics.KIND,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Specify_what_JSX_code_is_generated,\n defaultValueDescription: \"undefined\"\n },\n {\n name: \"declaration\",\n shortName: \"d\",\n type: \"boolean\",\n affectsEmit: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n transpileOptionValue: undefined,\n description: ts.Diagnostics.Generate_d_ts_files_from_TypeScript_and_JavaScript_files_in_your_project,\n defaultValueDescription: ts.Diagnostics.false_unless_composite_is_set,\n },\n {\n name: \"declarationMap\",\n type: \"boolean\",\n affectsEmit: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n transpileOptionValue: undefined,\n defaultValueDescription: \"false\",\n description: ts.Diagnostics.Create_sourcemaps_for_d_ts_files\n },\n {\n name: \"emitDeclarationOnly\",\n type: \"boolean\",\n affectsEmit: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Only_output_d_ts_files_and_not_JavaScript_files,\n transpileOptionValue: undefined,\n defaultValueDescription: \"false\",\n },\n {\n name: \"sourceMap\",\n type: \"boolean\",\n affectsEmit: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n defaultValueDescription: \"false\",\n description: ts.Diagnostics.Create_source_map_files_for_emitted_JavaScript_files,\n },\n {\n name: \"outFile\",\n type: \"string\",\n affectsEmit: true,\n isFilePath: true,\n paramType: ts.Diagnostics.FILE,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Specify_a_file_that_bundles_all_outputs_into_one_JavaScript_file_If_declaration_is_true_also_designates_a_file_that_bundles_all_d_ts_output,\n transpileOptionValue: undefined,\n defaultValueDescription: \"n/a\"\n },\n {\n name: \"outDir\",\n type: \"string\",\n affectsEmit: true,\n isFilePath: true,\n paramType: ts.Diagnostics.DIRECTORY,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Specify_an_output_folder_for_all_emitted_files,\n defaultValueDescription: \"n/a\"\n },\n {\n name: \"rootDir\",\n type: \"string\",\n affectsEmit: true,\n isFilePath: true,\n paramType: ts.Diagnostics.LOCATION,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_the_root_folder_within_your_source_files,\n defaultValueDescription: ts.Diagnostics.Computed_from_the_list_of_input_files\n },\n {\n name: \"composite\",\n type: \"boolean\",\n affectsEmit: true,\n isTSConfigOnly: true,\n category: ts.Diagnostics.Projects,\n transpileOptionValue: undefined,\n defaultValueDescription: \"false\",\n description: ts.Diagnostics.Enable_constraints_that_allow_a_TypeScript_project_to_be_used_with_project_references,\n },\n {\n name: \"tsBuildInfoFile\",\n type: \"string\",\n affectsEmit: true,\n isFilePath: true,\n paramType: ts.Diagnostics.FILE,\n category: ts.Diagnostics.Projects,\n transpileOptionValue: undefined,\n defaultValueDescription: \".tsbuildinfo\",\n description: ts.Diagnostics.Specify_the_folder_for_tsbuildinfo_incremental_compilation_files,\n },\n {\n name: \"removeComments\",\n type: \"boolean\",\n affectsEmit: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n defaultValueDescription: \"false\",\n description: ts.Diagnostics.Disable_emitting_comments,\n },\n {\n name: \"noEmit\",\n type: \"boolean\",\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Disable_emitting_files_from_a_compilation,\n transpileOptionValue: undefined,\n defaultValueDescription: \"false\"\n },\n {\n name: \"importHelpers\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Allow_importing_helper_functions_from_tslib_once_per_project_instead_of_including_them_per_file,\n defaultValueDescription: \"false\"\n },\n {\n name: \"importsNotUsedAsValues\",\n type: new ts.Map(ts.getEntries({\n remove: 0 /* Remove */,\n preserve: 1 /* Preserve */,\n error: 2 /* Error */\n })),\n affectsEmit: true,\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Specify_emit_Slashchecking_behavior_for_imports_that_are_only_used_for_types\n },\n {\n name: \"downlevelIteration\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Emit_more_compliant_but_verbose_and_less_performant_JavaScript_for_iteration,\n defaultValueDescription: \"false\"\n },\n {\n name: \"isolatedModules\",\n type: \"boolean\",\n category: ts.Diagnostics.Interop_Constraints,\n description: ts.Diagnostics.Ensure_that_each_file_can_be_safely_transpiled_without_relying_on_other_imports,\n transpileOptionValue: true,\n defaultValueDescription: \"false\"\n },\n // Strict Type Checks\n {\n name: \"strict\",\n type: \"boolean\",\n // Though this affects semantic diagnostics, affectsSemanticDiagnostics is not set here\n // The value of each strictFlag depends on own strictFlag value or this and never accessed directly.\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enable_all_strict_type_checking_options,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noImplicitAny\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enable_error_reporting_for_expressions_and_declarations_with_an_implied_any_type,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n {\n name: \"strictNullChecks\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.When_type_checking_take_into_account_null_and_undefined,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n {\n name: \"strictFunctionTypes\",\n type: \"boolean\",\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.When_assigning_functions_check_to_ensure_parameters_and_the_return_values_are_subtype_compatible,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n {\n name: \"strictBindCallApply\",\n type: \"boolean\",\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Check_that_the_arguments_for_bind_call_and_apply_methods_match_the_original_function,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n {\n name: \"strictPropertyInitialization\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Check_for_class_properties_that_are_declared_but_not_set_in_the_constructor,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n {\n name: \"noImplicitThis\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enable_error_reporting_when_this_is_given_the_type_any,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n {\n name: \"useUnknownInCatchVariables\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Type_catch_clause_variables_as_unknown_instead_of_any,\n },\n {\n name: \"alwaysStrict\",\n type: \"boolean\",\n affectsSourceFile: true,\n strictFlag: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Ensure_use_strict_is_always_emitted,\n defaultValueDescription: ts.Diagnostics.false_unless_strict_is_set\n },\n // Additional Checks\n {\n name: \"noUnusedLocals\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enable_error_reporting_when_a_local_variables_aren_t_read,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noUnusedParameters\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Raise_an_error_when_a_function_parameter_isn_t_read,\n defaultValueDescription: \"false\"\n },\n {\n name: \"exactOptionalPropertyTypes\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Interpret_optional_property_types_as_written_rather_than_adding_undefined\n },\n {\n name: \"noImplicitReturns\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enable_error_reporting_for_codepaths_that_do_not_explicitly_return_in_a_function,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noFallthroughCasesInSwitch\",\n type: \"boolean\",\n affectsBindDiagnostics: true,\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enable_error_reporting_for_fallthrough_cases_in_switch_statements\n },\n {\n name: \"noUncheckedIndexedAccess\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Include_undefined_in_index_signature_results\n },\n {\n name: \"noImplicitOverride\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Ensure_overriding_members_in_derived_classes_are_marked_with_an_override_modifier\n },\n {\n name: \"noPropertyAccessFromIndexSignature\",\n type: \"boolean\",\n showInSimplifiedHelpView: false,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Enforces_using_indexed_accessors_for_keys_declared_using_an_indexed_type,\n defaultValueDescription: \"false\"\n },\n // Module Resolution\n {\n name: \"moduleResolution\",\n type: new ts.Map(ts.getEntries({\n node: ts.ModuleResolutionKind.NodeJs,\n classic: ts.ModuleResolutionKind.Classic,\n })),\n affectsModuleResolution: true,\n paramType: ts.Diagnostics.STRATEGY,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_how_TypeScript_looks_up_a_file_from_a_given_module_specifier,\n defaultValueDescription: ts.Diagnostics.module_AMD_or_UMD_or_System_or_ES6_then_Classic_Otherwise_Node\n },\n {\n name: \"baseUrl\",\n type: \"string\",\n affectsModuleResolution: true,\n isFilePath: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_the_base_directory_to_resolve_non_relative_module_names\n },\n {\n // this option can only be specified in tsconfig.json\n // use type = object to copy the value as-is\n name: \"paths\",\n type: \"object\",\n affectsModuleResolution: true,\n isTSConfigOnly: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_a_set_of_entries_that_re_map_imports_to_additional_lookup_locations,\n transpileOptionValue: undefined\n },\n {\n // this option can only be specified in tsconfig.json\n // use type = object to copy the value as-is\n name: \"rootDirs\",\n type: \"list\",\n isTSConfigOnly: true,\n element: {\n name: \"rootDirs\",\n type: \"string\",\n isFilePath: true\n },\n affectsModuleResolution: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Allow_multiple_folders_to_be_treated_as_one_when_resolving_modules,\n transpileOptionValue: undefined,\n defaultValueDescription: ts.Diagnostics.Computed_from_the_list_of_input_files\n },\n {\n name: \"typeRoots\",\n type: \"list\",\n element: {\n name: \"typeRoots\",\n type: \"string\",\n isFilePath: true\n },\n affectsModuleResolution: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_multiple_folders_that_act_like_Slashnode_modules_Slash_types\n },\n {\n name: \"types\",\n type: \"list\",\n element: {\n name: \"types\",\n type: \"string\"\n },\n affectsProgramStructure: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Specify_type_package_names_to_be_included_without_being_referenced_in_a_source_file,\n transpileOptionValue: undefined\n },\n {\n name: \"allowSyntheticDefaultImports\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Interop_Constraints,\n description: ts.Diagnostics.Allow_import_x_from_y_when_a_module_doesn_t_have_a_default_export,\n defaultValueDescription: ts.Diagnostics.module_system_or_esModuleInterop\n },\n {\n name: \"esModuleInterop\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n affectsEmit: true,\n showInSimplifiedHelpView: true,\n category: ts.Diagnostics.Interop_Constraints,\n description: ts.Diagnostics.Emit_additional_JavaScript_to_ease_support_for_importing_CommonJS_modules_This_enables_allowSyntheticDefaultImports_for_type_compatibility,\n defaultValueDescription: \"false\"\n },\n {\n name: \"preserveSymlinks\",\n type: \"boolean\",\n category: ts.Diagnostics.Interop_Constraints,\n description: ts.Diagnostics.Disable_resolving_symlinks_to_their_realpath_This_correlates_to_the_same_flag_in_node,\n defaultValueDescription: \"n/a\"\n },\n {\n name: \"allowUmdGlobalAccess\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Allow_accessing_UMD_globals_from_modules,\n defaultValueDescription: \"false\"\n },\n // Source Maps\n {\n name: \"sourceRoot\",\n type: \"string\",\n affectsEmit: true,\n paramType: ts.Diagnostics.LOCATION,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Specify_the_root_path_for_debuggers_to_find_the_reference_source_code,\n },\n {\n name: \"mapRoot\",\n type: \"string\",\n affectsEmit: true,\n paramType: ts.Diagnostics.LOCATION,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Specify_the_location_where_debugger_should_locate_map_files_instead_of_generated_locations,\n },\n {\n name: \"inlineSourceMap\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Include_sourcemap_files_inside_the_emitted_JavaScript,\n defaultValueDescription: \"false\"\n },\n {\n name: \"inlineSources\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Include_source_code_in_the_sourcemaps_inside_the_emitted_JavaScript,\n defaultValueDescription: \"false\"\n },\n // Experimental\n {\n name: \"experimentalDecorators\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Enable_experimental_support_for_TC39_stage_2_draft_decorators\n },\n {\n name: \"emitDecoratorMetadata\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n affectsEmit: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Emit_design_type_metadata_for_decorated_declarations_in_source_files\n },\n // Advanced\n {\n name: \"jsxFactory\",\n type: \"string\",\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Specify_the_JSX_factory_function_used_when_targeting_React_JSX_emit_e_g_React_createElement_or_h,\n defaultValueDescription: \"`React.createElement`\"\n },\n {\n name: \"jsxFragmentFactory\",\n type: \"string\",\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Specify_the_JSX_Fragment_reference_used_for_fragments_when_targeting_React_JSX_emit_e_g_React_Fragment_or_Fragment\n },\n {\n name: \"jsxImportSource\",\n type: \"string\",\n affectsSemanticDiagnostics: true,\n affectsEmit: true,\n affectsModuleResolution: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Specify_module_specifier_used_to_import_the_JSX_factory_functions_when_using_jsx_Colon_react_jsx_Asterisk,\n defaultValueDescription: \"react\"\n },\n {\n name: \"resolveJsonModule\",\n type: \"boolean\",\n affectsModuleResolution: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Enable_importing_json_files,\n defaultValueDescription: \"false\"\n },\n {\n name: \"out\",\n type: \"string\",\n affectsEmit: true,\n isFilePath: false,\n // for correct behaviour, please use outFile\n category: ts.Diagnostics.Backwards_Compatibility,\n paramType: ts.Diagnostics.FILE,\n transpileOptionValue: undefined,\n defaultValueDescription: \"n/a\",\n description: ts.Diagnostics.Deprecated_setting_Use_outFile_instead,\n },\n {\n name: \"reactNamespace\",\n type: \"string\",\n affectsEmit: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Specify_the_object_invoked_for_createElement_This_only_applies_when_targeting_react_JSX_emit,\n defaultValueDescription: \"`React`\",\n },\n {\n name: \"skipDefaultLibCheck\",\n type: \"boolean\",\n category: ts.Diagnostics.Completeness,\n description: ts.Diagnostics.Skip_type_checking_d_ts_files_that_are_included_with_TypeScript,\n defaultValueDescription: \"false\",\n },\n {\n name: \"charset\",\n type: \"string\",\n category: ts.Diagnostics.Backwards_Compatibility,\n description: ts.Diagnostics.No_longer_supported_In_early_versions_manually_set_the_text_encoding_for_reading_files,\n defaultValueDescription: \"utf8\"\n },\n {\n name: \"emitBOM\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Emit_a_UTF_8_Byte_Order_Mark_BOM_in_the_beginning_of_output_files,\n defaultValueDescription: \"false\"\n },\n {\n name: \"newLine\",\n type: new ts.Map(ts.getEntries({\n crlf: 0 /* CarriageReturnLineFeed */,\n lf: 1 /* LineFeed */\n })),\n affectsEmit: true,\n paramType: ts.Diagnostics.NEWLINE,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Set_the_newline_character_for_emitting_files,\n defaultValueDescription: ts.Diagnostics.Platform_specific\n },\n {\n name: \"noErrorTruncation\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Output_Formatting,\n description: ts.Diagnostics.Disable_truncating_types_in_error_messages,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noLib\",\n type: \"boolean\",\n category: ts.Diagnostics.Language_and_Environment,\n affectsProgramStructure: true,\n description: ts.Diagnostics.Disable_including_any_library_files_including_the_default_lib_d_ts,\n // We are not returning a sourceFile for lib file when asked by the program,\n // so pass --noLib to avoid reporting a file not found error.\n transpileOptionValue: true,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noResolve\",\n type: \"boolean\",\n affectsModuleResolution: true,\n category: ts.Diagnostics.Modules,\n description: ts.Diagnostics.Disallow_import_s_require_s_or_reference_s_from_expanding_the_number_of_files_TypeScript_should_add_to_a_project,\n // We are not doing a full typecheck, we are not resolving the whole context,\n // so pass --noResolve to avoid reporting missing file errors.\n transpileOptionValue: true,\n defaultValueDescription: \"false\"\n },\n {\n name: \"stripInternal\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Disable_emitting_declarations_that_have_internal_in_their_JSDoc_comments,\n },\n {\n name: \"disableSizeLimit\",\n type: \"boolean\",\n affectsProgramStructure: true,\n category: ts.Diagnostics.Editor_Support,\n description: ts.Diagnostics.Remove_the_20mb_cap_on_total_source_code_size_for_JavaScript_files_in_the_TypeScript_language_server,\n defaultValueDescription: \"false\"\n },\n {\n name: \"disableSourceOfProjectReferenceRedirect\",\n type: \"boolean\",\n isTSConfigOnly: true,\n category: ts.Diagnostics.Projects,\n description: ts.Diagnostics.Disable_preferring_source_files_instead_of_declaration_files_when_referencing_composite_projects\n },\n {\n name: \"disableSolutionSearching\",\n type: \"boolean\",\n isTSConfigOnly: true,\n category: ts.Diagnostics.Projects,\n description: ts.Diagnostics.Opt_a_project_out_of_multi_project_reference_checking_when_editing\n },\n {\n name: \"disableReferencedProjectLoad\",\n type: \"boolean\",\n isTSConfigOnly: true,\n category: ts.Diagnostics.Projects,\n description: ts.Diagnostics.Reduce_the_number_of_projects_loaded_automatically_by_TypeScript\n },\n {\n name: \"noImplicitUseStrict\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Backwards_Compatibility,\n description: ts.Diagnostics.Disable_adding_use_strict_directives_in_emitted_JavaScript_files,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noEmitHelpers\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Disable_generating_custom_helper_functions_like_extends_in_compiled_output,\n defaultValueDescription: \"false\"\n },\n {\n name: \"noEmitOnError\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n transpileOptionValue: undefined,\n description: ts.Diagnostics.Disable_emitting_files_if_any_type_checking_errors_are_reported,\n defaultValueDescription: \"false\"\n },\n {\n name: \"preserveConstEnums\",\n type: \"boolean\",\n affectsEmit: true,\n category: ts.Diagnostics.Emit,\n description: ts.Diagnostics.Disable_erasing_const_enum_declarations_in_generated_code,\n defaultValueDescription: \"n/a\"\n },\n {\n name: \"declarationDir\",\n type: \"string\",\n affectsEmit: true,\n isFilePath: true,\n paramType: ts.Diagnostics.DIRECTORY,\n category: ts.Diagnostics.Emit,\n transpileOptionValue: undefined,\n description: ts.Diagnostics.Specify_the_output_directory_for_generated_declaration_files,\n defaultValueDescription: \"n/a\"\n },\n {\n name: \"skipLibCheck\",\n type: \"boolean\",\n category: ts.Diagnostics.Completeness,\n description: ts.Diagnostics.Skip_type_checking_all_d_ts_files,\n defaultValueDescription: \"false\"\n },\n {\n name: \"allowUnusedLabels\",\n type: \"boolean\",\n affectsBindDiagnostics: true,\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Disable_error_reporting_for_unused_labels,\n defaultValueDescription: \"undefined\"\n },\n {\n name: \"allowUnreachableCode\",\n type: \"boolean\",\n affectsBindDiagnostics: true,\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Type_Checking,\n description: ts.Diagnostics.Disable_error_reporting_for_unreachable_code,\n defaultValueDescription: \"undefined\"\n },\n {\n name: \"suppressExcessPropertyErrors\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Backwards_Compatibility,\n description: ts.Diagnostics.Disable_reporting_of_excess_property_errors_during_the_creation_of_object_literals,\n defaultValueDescription: \"false\"\n },\n {\n name: \"suppressImplicitAnyIndexErrors\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Backwards_Compatibility,\n description: ts.Diagnostics.Suppress_noImplicitAny_errors_when_indexing_objects_that_lack_index_signatures,\n defaultValueDescription: \"false\"\n },\n {\n name: \"forceConsistentCasingInFileNames\",\n type: \"boolean\",\n affectsModuleResolution: true,\n category: ts.Diagnostics.Interop_Constraints,\n description: ts.Diagnostics.Ensure_that_casing_is_correct_in_imports,\n defaultValueDescription: \"false\"\n },\n {\n name: \"maxNodeModuleJsDepth\",\n type: \"number\",\n affectsModuleResolution: true,\n category: ts.Diagnostics.JavaScript_Support,\n description: ts.Diagnostics.Specify_the_maximum_folder_depth_used_for_checking_JavaScript_files_from_node_modules_Only_applicable_with_allowJs,\n defaultValueDescription: \"0\"\n },\n {\n name: \"noStrictGenericChecks\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n category: ts.Diagnostics.Backwards_Compatibility,\n description: ts.Diagnostics.Disable_strict_checking_of_generic_signatures_in_function_types,\n defaultValueDescription: \"false\"\n },\n {\n name: \"useDefineForClassFields\",\n type: \"boolean\",\n affectsSemanticDiagnostics: true,\n affectsEmit: true,\n category: ts.Diagnostics.Language_and_Environment,\n description: ts.Diagnostics.Emit_ECMAScript_standard_compliant_class_fields,\n defaultValueDescription: \"false\"\n },\n {\n name: \"keyofStringsOnly\",\n type: \"boolean\",\n category: ts.Diagnostics.Backwards_Compatibility,\n description: ts.Diagnostics.Make_keyof_only_return_strings_instead_of_string_numbers_or_symbols_Legacy_option,\n defaultValueDescription: \"false\"\n },\n {\n // A list of plugins to load in the language service\n name: \"plugins\",\n type: \"list\",\n isTSConfigOnly: true,\n element: {\n name: \"plugin\",\n type: \"object\"\n },\n description: ts.Diagnostics.List_of_language_service_plugins,\n category: ts.Diagnostics.Editor_Support,\n },\n ];\n /* @internal */\n ts.optionDeclarations = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), commandOptionsWithoutBuild, true);\n /* @internal */\n ts.semanticDiagnosticsOptionDeclarations = ts.optionDeclarations.filter(function (option) { return !!option.affectsSemanticDiagnostics; });\n /* @internal */\n ts.affectsEmitOptionDeclarations = ts.optionDeclarations.filter(function (option) { return !!option.affectsEmit; });\n /* @internal */\n ts.moduleResolutionOptionDeclarations = ts.optionDeclarations.filter(function (option) { return !!option.affectsModuleResolution; });\n /* @internal */\n ts.sourceFileAffectingCompilerOptions = ts.optionDeclarations.filter(function (option) {\n return !!option.affectsSourceFile || !!option.affectsModuleResolution || !!option.affectsBindDiagnostics;\n });\n /* @internal */\n ts.optionsAffectingProgramStructure = ts.optionDeclarations.filter(function (option) { return !!option.affectsProgramStructure; });\n /* @internal */\n ts.transpileOptionValueCompilerOptions = ts.optionDeclarations.filter(function (option) {\n return ts.hasProperty(option, \"transpileOptionValue\");\n });\n // Build related options\n /* @internal */\n ts.optionsForBuild = [\n {\n name: \"verbose\",\n shortName: \"v\",\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Enable_verbose_logging,\n type: \"boolean\"\n },\n {\n name: \"dry\",\n shortName: \"d\",\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Show_what_would_be_built_or_deleted_if_specified_with_clean,\n type: \"boolean\"\n },\n {\n name: \"force\",\n shortName: \"f\",\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Build_all_projects_including_those_that_appear_to_be_up_to_date,\n type: \"boolean\"\n },\n {\n name: \"clean\",\n category: ts.Diagnostics.Command_line_Options,\n description: ts.Diagnostics.Delete_the_outputs_of_all_projects,\n type: \"boolean\"\n }\n ];\n /* @internal */\n ts.buildOpts = __spreadArray(__spreadArray([], ts.commonOptionsWithBuild, true), ts.optionsForBuild, true);\n /* @internal */\n ts.typeAcquisitionDeclarations = [\n {\n /* @deprecated typingOptions.enableAutoDiscovery\n * Use typeAcquisition.enable instead.\n */\n name: \"enableAutoDiscovery\",\n type: \"boolean\",\n },\n {\n name: \"enable\",\n type: \"boolean\",\n },\n {\n name: \"include\",\n type: \"list\",\n element: {\n name: \"include\",\n type: \"string\"\n }\n },\n {\n name: \"exclude\",\n type: \"list\",\n element: {\n name: \"exclude\",\n type: \"string\"\n }\n },\n {\n name: \"disableFilenameBasedTypeAcquisition\",\n type: \"boolean\",\n },\n ];\n /*@internal*/\n function createOptionNameMap(optionDeclarations) {\n var optionsNameMap = new ts.Map();\n var shortOptionNames = new ts.Map();\n ts.forEach(optionDeclarations, function (option) {\n optionsNameMap.set(option.name.toLowerCase(), option);\n if (option.shortName) {\n shortOptionNames.set(option.shortName, option.name);\n }\n });\n return { optionsNameMap: optionsNameMap, shortOptionNames: shortOptionNames };\n }\n ts.createOptionNameMap = createOptionNameMap;\n var optionsNameMapCache;\n /* @internal */\n function getOptionsNameMap() {\n return optionsNameMapCache || (optionsNameMapCache = createOptionNameMap(ts.optionDeclarations));\n }\n ts.getOptionsNameMap = getOptionsNameMap;\n var compilerOptionsAlternateMode = {\n diagnostic: ts.Diagnostics.Compiler_option_0_may_only_be_used_with_build,\n getOptionsNameMap: getBuildOptionsNameMap\n };\n /* @internal */\n ts.defaultInitCompilerOptions = {\n module: ts.ModuleKind.CommonJS,\n target: 1 /* ES5 */,\n strict: true,\n esModuleInterop: true,\n forceConsistentCasingInFileNames: true,\n skipLibCheck: true\n };\n /* @internal */\n function convertEnableAutoDiscoveryToEnable(typeAcquisition) {\n // Convert deprecated typingOptions.enableAutoDiscovery to typeAcquisition.enable\n if (typeAcquisition && typeAcquisition.enableAutoDiscovery !== undefined && typeAcquisition.enable === undefined) {\n return {\n enable: typeAcquisition.enableAutoDiscovery,\n include: typeAcquisition.include || [],\n exclude: typeAcquisition.exclude || []\n };\n }\n return typeAcquisition;\n }\n ts.convertEnableAutoDiscoveryToEnable = convertEnableAutoDiscoveryToEnable;\n /* @internal */\n function createCompilerDiagnosticForInvalidCustomType(opt) {\n return createDiagnosticForInvalidCustomType(opt, ts.createCompilerDiagnostic);\n }\n ts.createCompilerDiagnosticForInvalidCustomType = createCompilerDiagnosticForInvalidCustomType;\n function createDiagnosticForInvalidCustomType(opt, createDiagnostic) {\n var namesOfType = ts.arrayFrom(opt.type.keys()).map(function (key) { return \"'\" + key + \"'\"; }).join(\", \");\n return createDiagnostic(ts.Diagnostics.Argument_for_0_option_must_be_Colon_1, \"--\" + opt.name, namesOfType);\n }\n /* @internal */\n function parseCustomTypeOption(opt, value, errors) {\n return convertJsonOptionOfCustomType(opt, ts.trimString(value || \"\"), errors);\n }\n ts.parseCustomTypeOption = parseCustomTypeOption;\n /* @internal */\n function parseListTypeOption(opt, value, errors) {\n if (value === void 0) { value = \"\"; }\n value = ts.trimString(value);\n if (ts.startsWith(value, \"-\")) {\n return undefined;\n }\n if (value === \"\") {\n return [];\n }\n var values = value.split(\",\");\n switch (opt.element.type) {\n case \"number\":\n return ts.mapDefined(values, function (v) { return validateJsonOptionValue(opt.element, parseInt(v), errors); });\n case \"string\":\n return ts.mapDefined(values, function (v) { return validateJsonOptionValue(opt.element, v || \"\", errors); });\n default:\n return ts.mapDefined(values, function (v) { return parseCustomTypeOption(opt.element, v, errors); });\n }\n }\n ts.parseListTypeOption = parseListTypeOption;\n function getOptionName(option) {\n return option.name;\n }\n function createUnknownOptionError(unknownOption, diagnostics, createDiagnostics, unknownOptionErrorText) {\n var _a;\n if ((_a = diagnostics.alternateMode) === null || _a === void 0 ? void 0 : _a.getOptionsNameMap().optionsNameMap.has(unknownOption.toLowerCase())) {\n return createDiagnostics(diagnostics.alternateMode.diagnostic, unknownOption);\n }\n var possibleOption = ts.getSpellingSuggestion(unknownOption, diagnostics.optionDeclarations, getOptionName);\n return possibleOption ?\n createDiagnostics(diagnostics.unknownDidYouMeanDiagnostic, unknownOptionErrorText || unknownOption, possibleOption.name) :\n createDiagnostics(diagnostics.unknownOptionDiagnostic, unknownOptionErrorText || unknownOption);\n }\n /*@internal*/\n function parseCommandLineWorker(diagnostics, commandLine, readFile) {\n var options = {};\n var watchOptions;\n var fileNames = [];\n var errors = [];\n parseStrings(commandLine);\n return {\n options: options,\n watchOptions: watchOptions,\n fileNames: fileNames,\n errors: errors\n };\n function parseStrings(args) {\n var i = 0;\n while (i < args.length) {\n var s = args[i];\n i++;\n if (s.charCodeAt(0) === 64 /* at */) {\n parseResponseFile(s.slice(1));\n }\n else if (s.charCodeAt(0) === 45 /* minus */) {\n var inputOptionName = s.slice(s.charCodeAt(1) === 45 /* minus */ ? 2 : 1);\n var opt = getOptionDeclarationFromName(diagnostics.getOptionsNameMap, inputOptionName, /*allowShort*/ true);\n if (opt) {\n i = parseOptionValue(args, i, diagnostics, opt, options, errors);\n }\n else {\n var watchOpt = getOptionDeclarationFromName(watchOptionsDidYouMeanDiagnostics.getOptionsNameMap, inputOptionName, /*allowShort*/ true);\n if (watchOpt) {\n i = parseOptionValue(args, i, watchOptionsDidYouMeanDiagnostics, watchOpt, watchOptions || (watchOptions = {}), errors);\n }\n else {\n errors.push(createUnknownOptionError(inputOptionName, diagnostics, ts.createCompilerDiagnostic, s));\n }\n }\n }\n else {\n fileNames.push(s);\n }\n }\n }\n function parseResponseFile(fileName) {\n var text = tryReadFile(fileName, readFile || (function (fileName) { return ts.sys.readFile(fileName); }));\n if (!ts.isString(text)) {\n errors.push(text);\n return;\n }\n var args = [];\n var pos = 0;\n while (true) {\n while (pos < text.length && text.charCodeAt(pos) <= 32 /* space */)\n pos++;\n if (pos >= text.length)\n break;\n var start = pos;\n if (text.charCodeAt(start) === 34 /* doubleQuote */) {\n pos++;\n while (pos < text.length && text.charCodeAt(pos) !== 34 /* doubleQuote */)\n pos++;\n if (pos < text.length) {\n args.push(text.substring(start + 1, pos));\n pos++;\n }\n else {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Unterminated_quoted_string_in_response_file_0, fileName));\n }\n }\n else {\n while (text.charCodeAt(pos) > 32 /* space */)\n pos++;\n args.push(text.substring(start, pos));\n }\n }\n parseStrings(args);\n }\n }\n ts.parseCommandLineWorker = parseCommandLineWorker;\n function parseOptionValue(args, i, diagnostics, opt, options, errors) {\n if (opt.isTSConfigOnly) {\n var optValue = args[i];\n if (optValue === \"null\") {\n options[opt.name] = undefined;\n i++;\n }\n else if (opt.type === \"boolean\") {\n if (optValue === \"false\") {\n options[opt.name] = validateJsonOptionValue(opt, /*value*/ false, errors);\n i++;\n }\n else {\n if (optValue === \"true\")\n i++;\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_false_or_null_on_command_line, opt.name));\n }\n }\n else {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Option_0_can_only_be_specified_in_tsconfig_json_file_or_set_to_null_on_command_line, opt.name));\n if (optValue && !ts.startsWith(optValue, \"-\"))\n i++;\n }\n }\n else {\n // Check to see if no argument was provided (e.g. \"--locale\" is the last command-line argument).\n if (!args[i] && opt.type !== \"boolean\") {\n errors.push(ts.createCompilerDiagnostic(diagnostics.optionTypeMismatchDiagnostic, opt.name, getCompilerOptionValueTypeString(opt)));\n }\n if (args[i] !== \"null\") {\n switch (opt.type) {\n case \"number\":\n options[opt.name] = validateJsonOptionValue(opt, parseInt(args[i]), errors);\n i++;\n break;\n case \"boolean\":\n // boolean flag has optional value true, false, others\n var optValue = args[i];\n options[opt.name] = validateJsonOptionValue(opt, optValue !== \"false\", errors);\n // consume next argument as boolean flag value\n if (optValue === \"false\" || optValue === \"true\") {\n i++;\n }\n break;\n case \"string\":\n options[opt.name] = validateJsonOptionValue(opt, args[i] || \"\", errors);\n i++;\n break;\n case \"list\":\n var result = parseListTypeOption(opt, args[i], errors);\n options[opt.name] = result || [];\n if (result) {\n i++;\n }\n break;\n // If not a primitive, the possible types are specified in what is effectively a map of options.\n default:\n options[opt.name] = parseCustomTypeOption(opt, args[i], errors);\n i++;\n break;\n }\n }\n else {\n options[opt.name] = undefined;\n i++;\n }\n }\n return i;\n }\n /*@internal*/\n ts.compilerOptionsDidYouMeanDiagnostics = {\n alternateMode: compilerOptionsAlternateMode,\n getOptionsNameMap: getOptionsNameMap,\n optionDeclarations: ts.optionDeclarations,\n unknownOptionDiagnostic: ts.Diagnostics.Unknown_compiler_option_0,\n unknownDidYouMeanDiagnostic: ts.Diagnostics.Unknown_compiler_option_0_Did_you_mean_1,\n optionTypeMismatchDiagnostic: ts.Diagnostics.Compiler_option_0_expects_an_argument\n };\n function parseCommandLine(commandLine, readFile) {\n return parseCommandLineWorker(ts.compilerOptionsDidYouMeanDiagnostics, commandLine, readFile);\n }\n ts.parseCommandLine = parseCommandLine;\n /** @internal */\n function getOptionFromName(optionName, allowShort) {\n return getOptionDeclarationFromName(getOptionsNameMap, optionName, allowShort);\n }\n ts.getOptionFromName = getOptionFromName;\n function getOptionDeclarationFromName(getOptionNameMap, optionName, allowShort) {\n if (allowShort === void 0) { allowShort = false; }\n optionName = optionName.toLowerCase();\n var _a = getOptionNameMap(), optionsNameMap = _a.optionsNameMap, shortOptionNames = _a.shortOptionNames;\n // Try to translate short option names to their full equivalents.\n if (allowShort) {\n var short = shortOptionNames.get(optionName);\n if (short !== undefined) {\n optionName = short;\n }\n }\n return optionsNameMap.get(optionName);\n }\n var buildOptionsNameMapCache;\n function getBuildOptionsNameMap() {\n return buildOptionsNameMapCache || (buildOptionsNameMapCache = createOptionNameMap(ts.buildOpts));\n }\n var buildOptionsAlternateMode = {\n diagnostic: ts.Diagnostics.Compiler_option_0_may_not_be_used_with_build,\n getOptionsNameMap: getOptionsNameMap\n };\n var buildOptionsDidYouMeanDiagnostics = {\n alternateMode: buildOptionsAlternateMode,\n getOptionsNameMap: getBuildOptionsNameMap,\n optionDeclarations: ts.buildOpts,\n unknownOptionDiagnostic: ts.Diagnostics.Unknown_build_option_0,\n unknownDidYouMeanDiagnostic: ts.Diagnostics.Unknown_build_option_0_Did_you_mean_1,\n optionTypeMismatchDiagnostic: ts.Diagnostics.Build_option_0_requires_a_value_of_type_1\n };\n /*@internal*/\n function parseBuildCommand(args) {\n var _a = parseCommandLineWorker(buildOptionsDidYouMeanDiagnostics, args), options = _a.options, watchOptions = _a.watchOptions, projects = _a.fileNames, errors = _a.errors;\n var buildOptions = options;\n if (projects.length === 0) {\n // tsc -b invoked with no extra arguments; act as if invoked with \"tsc -b .\"\n projects.push(\".\");\n }\n // Nonsensical combinations\n if (buildOptions.clean && buildOptions.force) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Options_0_and_1_cannot_be_combined, \"clean\", \"force\"));\n }\n if (buildOptions.clean && buildOptions.verbose) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Options_0_and_1_cannot_be_combined, \"clean\", \"verbose\"));\n }\n if (buildOptions.clean && buildOptions.watch) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Options_0_and_1_cannot_be_combined, \"clean\", \"watch\"));\n }\n if (buildOptions.watch && buildOptions.dry) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Options_0_and_1_cannot_be_combined, \"watch\", \"dry\"));\n }\n return { buildOptions: buildOptions, watchOptions: watchOptions, projects: projects, errors: errors };\n }\n ts.parseBuildCommand = parseBuildCommand;\n /* @internal */\n function getDiagnosticText(_message) {\n var _args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n _args[_i - 1] = arguments[_i];\n }\n var diagnostic = ts.createCompilerDiagnostic.apply(undefined, arguments);\n return diagnostic.messageText;\n }\n ts.getDiagnosticText = getDiagnosticText;\n /**\n * Reads the config file, reports errors if any and exits if the config file cannot be found\n */\n function getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend, extraFileExtensions) {\n var configFileText = tryReadFile(configFileName, function (fileName) { return host.readFile(fileName); });\n if (!ts.isString(configFileText)) {\n host.onUnRecoverableConfigFileDiagnostic(configFileText);\n return undefined;\n }\n var result = ts.parseJsonText(configFileName, configFileText);\n var cwd = host.getCurrentDirectory();\n result.path = ts.toPath(configFileName, cwd, ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames));\n result.resolvedPath = result.path;\n result.originalFileName = result.fileName;\n return parseJsonSourceFileConfigFileContent(result, host, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), cwd), optionsToExtend, ts.getNormalizedAbsolutePath(configFileName, cwd), \n /*resolutionStack*/ undefined, extraFileExtensions, extendedConfigCache, watchOptionsToExtend);\n }\n ts.getParsedCommandLineOfConfigFile = getParsedCommandLineOfConfigFile;\n /**\n * Read tsconfig.json file\n * @param fileName The path to the config file\n */\n function readConfigFile(fileName, readFile) {\n var textOrDiagnostic = tryReadFile(fileName, readFile);\n return ts.isString(textOrDiagnostic) ? parseConfigFileTextToJson(fileName, textOrDiagnostic) : { config: {}, error: textOrDiagnostic };\n }\n ts.readConfigFile = readConfigFile;\n /**\n * Parse the text of the tsconfig.json file\n * @param fileName The path to the config file\n * @param jsonText The text of the config file\n */\n function parseConfigFileTextToJson(fileName, jsonText) {\n var jsonSourceFile = ts.parseJsonText(fileName, jsonText);\n return {\n config: convertConfigFileToObject(jsonSourceFile, jsonSourceFile.parseDiagnostics, /*reportOptionsErrors*/ false, /*optionsIterator*/ undefined),\n error: jsonSourceFile.parseDiagnostics.length ? jsonSourceFile.parseDiagnostics[0] : undefined\n };\n }\n ts.parseConfigFileTextToJson = parseConfigFileTextToJson;\n /**\n * Read tsconfig.json file\n * @param fileName The path to the config file\n */\n function readJsonConfigFile(fileName, readFile) {\n var textOrDiagnostic = tryReadFile(fileName, readFile);\n return ts.isString(textOrDiagnostic) ? ts.parseJsonText(fileName, textOrDiagnostic) : { fileName: fileName, parseDiagnostics: [textOrDiagnostic] };\n }\n ts.readJsonConfigFile = readJsonConfigFile;\n /*@internal*/\n function tryReadFile(fileName, readFile) {\n var text;\n try {\n text = readFile(fileName);\n }\n catch (e) {\n return ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_read_file_0_Colon_1, fileName, e.message);\n }\n return text === undefined ? ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_read_file_0, fileName) : text;\n }\n ts.tryReadFile = tryReadFile;\n function commandLineOptionsToMap(options) {\n return ts.arrayToMap(options, getOptionName);\n }\n var typeAcquisitionDidYouMeanDiagnostics = {\n optionDeclarations: ts.typeAcquisitionDeclarations,\n unknownOptionDiagnostic: ts.Diagnostics.Unknown_type_acquisition_option_0,\n unknownDidYouMeanDiagnostic: ts.Diagnostics.Unknown_type_acquisition_option_0_Did_you_mean_1,\n };\n var watchOptionsNameMapCache;\n function getWatchOptionsNameMap() {\n return watchOptionsNameMapCache || (watchOptionsNameMapCache = createOptionNameMap(ts.optionsForWatch));\n }\n var watchOptionsDidYouMeanDiagnostics = {\n getOptionsNameMap: getWatchOptionsNameMap,\n optionDeclarations: ts.optionsForWatch,\n unknownOptionDiagnostic: ts.Diagnostics.Unknown_watch_option_0,\n unknownDidYouMeanDiagnostic: ts.Diagnostics.Unknown_watch_option_0_Did_you_mean_1,\n optionTypeMismatchDiagnostic: ts.Diagnostics.Watch_option_0_requires_a_value_of_type_1\n };\n var commandLineCompilerOptionsMapCache;\n function getCommandLineCompilerOptionsMap() {\n return commandLineCompilerOptionsMapCache || (commandLineCompilerOptionsMapCache = commandLineOptionsToMap(ts.optionDeclarations));\n }\n var commandLineWatchOptionsMapCache;\n function getCommandLineWatchOptionsMap() {\n return commandLineWatchOptionsMapCache || (commandLineWatchOptionsMapCache = commandLineOptionsToMap(ts.optionsForWatch));\n }\n var commandLineTypeAcquisitionMapCache;\n function getCommandLineTypeAcquisitionMap() {\n return commandLineTypeAcquisitionMapCache || (commandLineTypeAcquisitionMapCache = commandLineOptionsToMap(ts.typeAcquisitionDeclarations));\n }\n var _tsconfigRootOptions;\n function getTsconfigRootOptionsMap() {\n if (_tsconfigRootOptions === undefined) {\n _tsconfigRootOptions = {\n name: undefined,\n type: \"object\",\n elementOptions: commandLineOptionsToMap([\n {\n name: \"compilerOptions\",\n type: \"object\",\n elementOptions: getCommandLineCompilerOptionsMap(),\n extraKeyDiagnostics: ts.compilerOptionsDidYouMeanDiagnostics,\n },\n {\n name: \"watchOptions\",\n type: \"object\",\n elementOptions: getCommandLineWatchOptionsMap(),\n extraKeyDiagnostics: watchOptionsDidYouMeanDiagnostics,\n },\n {\n name: \"typingOptions\",\n type: \"object\",\n elementOptions: getCommandLineTypeAcquisitionMap(),\n extraKeyDiagnostics: typeAcquisitionDidYouMeanDiagnostics,\n },\n {\n name: \"typeAcquisition\",\n type: \"object\",\n elementOptions: getCommandLineTypeAcquisitionMap(),\n extraKeyDiagnostics: typeAcquisitionDidYouMeanDiagnostics\n },\n {\n name: \"extends\",\n type: \"string\",\n category: ts.Diagnostics.File_Management,\n },\n {\n name: \"references\",\n type: \"list\",\n element: {\n name: \"references\",\n type: \"object\"\n },\n category: ts.Diagnostics.Projects,\n },\n {\n name: \"files\",\n type: \"list\",\n element: {\n name: \"files\",\n type: \"string\"\n },\n category: ts.Diagnostics.File_Management,\n },\n {\n name: \"include\",\n type: \"list\",\n element: {\n name: \"include\",\n type: \"string\"\n },\n category: ts.Diagnostics.File_Management,\n defaultValueDescription: ts.Diagnostics.if_files_is_specified_otherwise_Asterisk_Asterisk_Slash_Asterisk\n },\n {\n name: \"exclude\",\n type: \"list\",\n element: {\n name: \"exclude\",\n type: \"string\"\n },\n category: ts.Diagnostics.File_Management,\n defaultValueDescription: ts.Diagnostics.node_modules_bower_components_jspm_packages_plus_the_value_of_outDir_if_one_is_specified\n },\n ts.compileOnSaveCommandLineOption\n ])\n };\n }\n return _tsconfigRootOptions;\n }\n function convertConfigFileToObject(sourceFile, errors, reportOptionsErrors, optionsIterator) {\n var _a;\n var rootExpression = (_a = sourceFile.statements[0]) === null || _a === void 0 ? void 0 : _a.expression;\n var knownRootOptions = reportOptionsErrors ? getTsconfigRootOptionsMap() : undefined;\n if (rootExpression && rootExpression.kind !== 203 /* ObjectLiteralExpression */) {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, rootExpression, ts.Diagnostics.The_root_value_of_a_0_file_must_be_an_object, ts.getBaseFileName(sourceFile.fileName) === \"jsconfig.json\" ? \"jsconfig.json\" : \"tsconfig.json\"));\n // Last-ditch error recovery. Somewhat useful because the JSON parser will recover from some parse errors by\n // synthesizing a top-level array literal expression. There's a reasonable chance the first element of that\n // array is a well-formed configuration object, made into an array element by stray characters.\n if (ts.isArrayLiteralExpression(rootExpression)) {\n var firstObject = ts.find(rootExpression.elements, ts.isObjectLiteralExpression);\n if (firstObject) {\n return convertToObjectWorker(sourceFile, firstObject, errors, /*returnValue*/ true, knownRootOptions, optionsIterator);\n }\n }\n return {};\n }\n return convertToObjectWorker(sourceFile, rootExpression, errors, /*returnValue*/ true, knownRootOptions, optionsIterator);\n }\n /**\n * Convert the json syntax tree into the json value\n */\n function convertToObject(sourceFile, errors) {\n var _a;\n return convertToObjectWorker(sourceFile, (_a = sourceFile.statements[0]) === null || _a === void 0 ? void 0 : _a.expression, errors, /*returnValue*/ true, /*knownRootOptions*/ undefined, /*jsonConversionNotifier*/ undefined);\n }\n ts.convertToObject = convertToObject;\n /**\n * Convert the json syntax tree into the json value and report errors\n * This returns the json value (apart from checking errors) only if returnValue provided is true.\n * Otherwise it just checks the errors and returns undefined\n */\n /*@internal*/\n function convertToObjectWorker(sourceFile, rootExpression, errors, returnValue, knownRootOptions, jsonConversionNotifier) {\n if (!rootExpression) {\n return returnValue ? {} : undefined;\n }\n return convertPropertyValueToJson(rootExpression, knownRootOptions);\n function isRootOptionMap(knownOptions) {\n return knownRootOptions && knownRootOptions.elementOptions === knownOptions;\n }\n function convertObjectLiteralExpressionToJson(node, knownOptions, extraKeyDiagnostics, parentOption) {\n var result = returnValue ? {} : undefined;\n var _loop_4 = function (element) {\n if (element.kind !== 291 /* PropertyAssignment */) {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, element, ts.Diagnostics.Property_assignment_expected));\n return \"continue\";\n }\n if (element.questionToken) {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, element.questionToken, ts.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, \"?\"));\n }\n if (!isDoubleQuotedString(element.name)) {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, element.name, ts.Diagnostics.String_literal_with_double_quotes_expected));\n }\n var textOfKey = ts.isComputedNonLiteralName(element.name) ? undefined : ts.getTextOfPropertyName(element.name);\n var keyText = textOfKey && ts.unescapeLeadingUnderscores(textOfKey);\n var option = keyText && knownOptions ? knownOptions.get(keyText) : undefined;\n if (keyText && extraKeyDiagnostics && !option) {\n if (knownOptions) {\n errors.push(createUnknownOptionError(keyText, extraKeyDiagnostics, function (message, arg0, arg1) { return ts.createDiagnosticForNodeInSourceFile(sourceFile, element.name, message, arg0, arg1); }));\n }\n else {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, element.name, extraKeyDiagnostics.unknownOptionDiagnostic, keyText));\n }\n }\n var value = convertPropertyValueToJson(element.initializer, option);\n if (typeof keyText !== \"undefined\") {\n if (returnValue) {\n result[keyText] = value;\n }\n // Notify key value set, if user asked for it\n if (jsonConversionNotifier &&\n // Current callbacks are only on known parent option or if we are setting values in the root\n (parentOption || isRootOptionMap(knownOptions))) {\n var isValidOptionValue = isCompilerOptionsValue(option, value);\n if (parentOption) {\n if (isValidOptionValue) {\n // Notify option set in the parent if its a valid option value\n jsonConversionNotifier.onSetValidOptionKeyValueInParent(parentOption, option, value);\n }\n }\n else if (isRootOptionMap(knownOptions)) {\n if (isValidOptionValue) {\n // Notify about the valid root key value being set\n jsonConversionNotifier.onSetValidOptionKeyValueInRoot(keyText, element.name, value, element.initializer);\n }\n else if (!option) {\n // Notify about the unknown root key value being set\n jsonConversionNotifier.onSetUnknownOptionKeyValueInRoot(keyText, element.name, value, element.initializer);\n }\n }\n }\n }\n };\n for (var _i = 0, _a = node.properties; _i < _a.length; _i++) {\n var element = _a[_i];\n _loop_4(element);\n }\n return result;\n }\n function convertArrayLiteralExpressionToJson(elements, elementOption) {\n if (!returnValue) {\n elements.forEach(function (element) { return convertPropertyValueToJson(element, elementOption); });\n return undefined;\n }\n // Filter out invalid values\n return ts.filter(elements.map(function (element) { return convertPropertyValueToJson(element, elementOption); }), function (v) { return v !== undefined; });\n }\n function convertPropertyValueToJson(valueExpression, option) {\n var invalidReported;\n switch (valueExpression.kind) {\n case 110 /* TrueKeyword */:\n reportInvalidOptionValue(option && option.type !== \"boolean\");\n return validateValue(/*value*/ true);\n case 95 /* FalseKeyword */:\n reportInvalidOptionValue(option && option.type !== \"boolean\");\n return validateValue(/*value*/ false);\n case 104 /* NullKeyword */:\n reportInvalidOptionValue(option && option.name === \"extends\"); // \"extends\" is the only option we don't allow null/undefined for\n return validateValue(/*value*/ null); // eslint-disable-line no-null/no-null\n case 10 /* StringLiteral */:\n if (!isDoubleQuotedString(valueExpression)) {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, ts.Diagnostics.String_literal_with_double_quotes_expected));\n }\n reportInvalidOptionValue(option && (ts.isString(option.type) && option.type !== \"string\"));\n var text = valueExpression.text;\n if (option && !ts.isString(option.type)) {\n var customOption = option;\n // Validate custom option type\n if (!customOption.type.has(text.toLowerCase())) {\n errors.push(createDiagnosticForInvalidCustomType(customOption, function (message, arg0, arg1) { return ts.createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, message, arg0, arg1); }));\n invalidReported = true;\n }\n }\n return validateValue(text);\n case 8 /* NumericLiteral */:\n reportInvalidOptionValue(option && option.type !== \"number\");\n return validateValue(Number(valueExpression.text));\n case 217 /* PrefixUnaryExpression */:\n if (valueExpression.operator !== 40 /* MinusToken */ || valueExpression.operand.kind !== 8 /* NumericLiteral */) {\n break; // not valid JSON syntax\n }\n reportInvalidOptionValue(option && option.type !== \"number\");\n return validateValue(-Number(valueExpression.operand.text));\n case 203 /* ObjectLiteralExpression */:\n reportInvalidOptionValue(option && option.type !== \"object\");\n var objectLiteralExpression = valueExpression;\n // Currently having element option declaration in the tsconfig with type \"object\"\n // determines if it needs onSetValidOptionKeyValueInParent callback or not\n // At moment there are only \"compilerOptions\", \"typeAcquisition\" and \"typingOptions\"\n // that satifies it and need it to modify options set in them (for normalizing file paths)\n // vs what we set in the json\n // If need arises, we can modify this interface and callbacks as needed\n if (option) {\n var _a = option, elementOptions = _a.elementOptions, extraKeyDiagnostics = _a.extraKeyDiagnostics, optionName = _a.name;\n return validateValue(convertObjectLiteralExpressionToJson(objectLiteralExpression, elementOptions, extraKeyDiagnostics, optionName));\n }\n else {\n return validateValue(convertObjectLiteralExpressionToJson(objectLiteralExpression, /* knownOptions*/ undefined, \n /*extraKeyDiagnosticMessage */ undefined, /*parentOption*/ undefined));\n }\n case 202 /* ArrayLiteralExpression */:\n reportInvalidOptionValue(option && option.type !== \"list\");\n return validateValue(convertArrayLiteralExpressionToJson(valueExpression.elements, option && option.element));\n }\n // Not in expected format\n if (option) {\n reportInvalidOptionValue(/*isError*/ true);\n }\n else {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, ts.Diagnostics.Property_value_can_only_be_string_literal_numeric_literal_true_false_null_object_literal_or_array_literal));\n }\n return undefined;\n function validateValue(value) {\n var _a;\n if (!invalidReported) {\n var diagnostic = (_a = option === null || option === void 0 ? void 0 : option.extraValidation) === null || _a === void 0 ? void 0 : _a.call(option, value);\n if (diagnostic) {\n errors.push(ts.createDiagnosticForNodeInSourceFile.apply(void 0, __spreadArray([sourceFile, valueExpression], diagnostic, false)));\n return undefined;\n }\n }\n return value;\n }\n function reportInvalidOptionValue(isError) {\n if (isError) {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, valueExpression, ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, option.name, getCompilerOptionValueTypeString(option)));\n invalidReported = true;\n }\n }\n }\n function isDoubleQuotedString(node) {\n return ts.isStringLiteral(node) && ts.isStringDoubleQuoted(node, sourceFile);\n }\n }\n ts.convertToObjectWorker = convertToObjectWorker;\n function getCompilerOptionValueTypeString(option) {\n return option.type === \"list\" ?\n \"Array\" :\n ts.isString(option.type) ? option.type : \"string\";\n }\n function isCompilerOptionsValue(option, value) {\n if (option) {\n if (isNullOrUndefined(value))\n return true; // All options are undefinable/nullable\n if (option.type === \"list\") {\n return ts.isArray(value);\n }\n var expectedType = ts.isString(option.type) ? option.type : \"string\";\n return typeof value === expectedType;\n }\n return false;\n }\n /**\n * Generate an uncommented, complete tsconfig for use with \"--showConfig\"\n * @param configParseResult options to be generated into tsconfig.json\n * @param configFileName name of the parsed config file - output paths will be generated relative to this\n * @param host provides current directory and case sensitivity services\n */\n /** @internal */\n function convertToTSConfig(configParseResult, configFileName, host) {\n var _a, _b, _c;\n var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);\n var files = ts.map(ts.filter(configParseResult.fileNames, !((_b = (_a = configParseResult.options.configFile) === null || _a === void 0 ? void 0 : _a.configFileSpecs) === null || _b === void 0 ? void 0 : _b.validatedIncludeSpecs) ? ts.returnTrue : matchesSpecs(configFileName, configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs, configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs, host)), function (f) { return ts.getRelativePathFromFile(ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), ts.getNormalizedAbsolutePath(f, host.getCurrentDirectory()), getCanonicalFileName); });\n var optionMap = serializeCompilerOptions(configParseResult.options, { configFilePath: ts.getNormalizedAbsolutePath(configFileName, host.getCurrentDirectory()), useCaseSensitiveFileNames: host.useCaseSensitiveFileNames });\n var watchOptionMap = configParseResult.watchOptions && serializeWatchOptions(configParseResult.watchOptions);\n var config = __assign(__assign({ compilerOptions: __assign(__assign({}, optionMapToObject(optionMap)), { showConfig: undefined, configFile: undefined, configFilePath: undefined, help: undefined, init: undefined, listFiles: undefined, listEmittedFiles: undefined, project: undefined, build: undefined, version: undefined }), watchOptions: watchOptionMap && optionMapToObject(watchOptionMap), references: ts.map(configParseResult.projectReferences, function (r) { return (__assign(__assign({}, r), { path: r.originalPath ? r.originalPath : \"\", originalPath: undefined })); }), files: ts.length(files) ? files : undefined }, (((_c = configParseResult.options.configFile) === null || _c === void 0 ? void 0 : _c.configFileSpecs) ? {\n include: filterSameAsDefaultInclude(configParseResult.options.configFile.configFileSpecs.validatedIncludeSpecs),\n exclude: configParseResult.options.configFile.configFileSpecs.validatedExcludeSpecs\n } : {})), { compileOnSave: !!configParseResult.compileOnSave ? true : undefined });\n return config;\n }\n ts.convertToTSConfig = convertToTSConfig;\n function optionMapToObject(optionMap) {\n return __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {\n var _a;\n return (__assign(__assign({}, prev), (_a = {}, _a[cur[0]] = cur[1], _a)));\n }, {}));\n }\n function filterSameAsDefaultInclude(specs) {\n if (!ts.length(specs))\n return undefined;\n if (ts.length(specs) !== 1)\n return specs;\n if (specs[0] === \"**/*\")\n return undefined;\n return specs;\n }\n function matchesSpecs(path, includeSpecs, excludeSpecs, host) {\n if (!includeSpecs)\n return ts.returnTrue;\n var patterns = ts.getFileMatcherPatterns(path, excludeSpecs, includeSpecs, host.useCaseSensitiveFileNames, host.getCurrentDirectory());\n var excludeRe = patterns.excludePattern && ts.getRegexFromPattern(patterns.excludePattern, host.useCaseSensitiveFileNames);\n var includeRe = patterns.includeFilePattern && ts.getRegexFromPattern(patterns.includeFilePattern, host.useCaseSensitiveFileNames);\n if (includeRe) {\n if (excludeRe) {\n return function (path) { return !(includeRe.test(path) && !excludeRe.test(path)); };\n }\n return function (path) { return !includeRe.test(path); };\n }\n if (excludeRe) {\n return function (path) { return excludeRe.test(path); };\n }\n return ts.returnTrue;\n }\n function getCustomTypeMapOfCommandLineOption(optionDefinition) {\n if (optionDefinition.type === \"string\" || optionDefinition.type === \"number\" || optionDefinition.type === \"boolean\" || optionDefinition.type === \"object\") {\n // this is of a type CommandLineOptionOfPrimitiveType\n return undefined;\n }\n else if (optionDefinition.type === \"list\") {\n return getCustomTypeMapOfCommandLineOption(optionDefinition.element);\n }\n else {\n return optionDefinition.type;\n }\n }\n function getNameOfCompilerOptionValue(value, customTypeMap) {\n // There is a typeMap associated with this command-line option so use it to map value back to its name\n return ts.forEachEntry(customTypeMap, function (mapValue, key) {\n if (mapValue === value) {\n return key;\n }\n });\n }\n function serializeCompilerOptions(options, pathOptions) {\n return serializeOptionBaseObject(options, getOptionsNameMap(), pathOptions);\n }\n function serializeWatchOptions(options) {\n return serializeOptionBaseObject(options, getWatchOptionsNameMap());\n }\n function serializeOptionBaseObject(options, _a, pathOptions) {\n var optionsNameMap = _a.optionsNameMap;\n var result = new ts.Map();\n var getCanonicalFileName = pathOptions && ts.createGetCanonicalFileName(pathOptions.useCaseSensitiveFileNames);\n var _loop_5 = function (name) {\n if (ts.hasProperty(options, name)) {\n // tsconfig only options cannot be specified via command line,\n // so we can assume that only types that can appear here string | number | boolean\n if (optionsNameMap.has(name) && (optionsNameMap.get(name).category === ts.Diagnostics.Command_line_Options || optionsNameMap.get(name).category === ts.Diagnostics.Output_Formatting)) {\n return \"continue\";\n }\n var value = options[name];\n var optionDefinition = optionsNameMap.get(name.toLowerCase());\n if (optionDefinition) {\n var customTypeMap_1 = getCustomTypeMapOfCommandLineOption(optionDefinition);\n if (!customTypeMap_1) {\n // There is no map associated with this compiler option then use the value as-is\n // This is the case if the value is expect to be string, number, boolean or list of string\n if (pathOptions && optionDefinition.isFilePath) {\n result.set(name, ts.getRelativePathFromFile(pathOptions.configFilePath, ts.getNormalizedAbsolutePath(value, ts.getDirectoryPath(pathOptions.configFilePath)), getCanonicalFileName));\n }\n else {\n result.set(name, value);\n }\n }\n else {\n if (optionDefinition.type === \"list\") {\n result.set(name, value.map(function (element) { return getNameOfCompilerOptionValue(element, customTypeMap_1); })); // TODO: GH#18217\n }\n else {\n // There is a typeMap associated with this command-line option so use it to map value back to its name\n result.set(name, getNameOfCompilerOptionValue(value, customTypeMap_1));\n }\n }\n }\n }\n };\n for (var name in options) {\n _loop_5(name);\n }\n return result;\n }\n /**\n * Generate tsconfig configuration when running command line \"--init\"\n * @param options commandlineOptions to be generated into tsconfig.json\n * @param fileNames array of filenames to be generated into tsconfig.json\n */\n /* @internal */\n function generateTSConfig(options, fileNames, newLine) {\n var compilerOptions = ts.extend(options, ts.defaultInitCompilerOptions);\n var compilerOptionsMap = serializeCompilerOptions(compilerOptions);\n return writeConfigurations();\n function getDefaultValueForOption(option) {\n switch (option.type) {\n case \"number\":\n return 1;\n case \"boolean\":\n return true;\n case \"string\":\n return option.isFilePath ? \"./\" : \"\";\n case \"list\":\n return [];\n case \"object\":\n return {};\n default:\n var iterResult = option.type.keys().next();\n if (!iterResult.done)\n return iterResult.value;\n return ts.Debug.fail(\"Expected 'option.type' to have entries.\");\n }\n }\n function makePadding(paddingLength) {\n return Array(paddingLength + 1).join(\" \");\n }\n function isAllowedOptionForOutput(_a) {\n var category = _a.category, name = _a.name, isCommandLineOnly = _a.isCommandLineOnly;\n // Skip options which do not have a category or have categories which are more niche\n var categoriesToSkip = [ts.Diagnostics.Command_line_Options, ts.Diagnostics.Editor_Support, ts.Diagnostics.Compiler_Diagnostics, ts.Diagnostics.Backwards_Compatibility, ts.Diagnostics.Watch_and_Build_Modes, ts.Diagnostics.Output_Formatting];\n return !isCommandLineOnly && category !== undefined && (!categoriesToSkip.includes(category) || compilerOptionsMap.has(name));\n }\n function writeConfigurations() {\n // Filter applicable options to place in the file\n var categorizedOptions = ts.createMultiMap();\n for (var _i = 0, optionDeclarations_1 = ts.optionDeclarations; _i < optionDeclarations_1.length; _i++) {\n var option = optionDeclarations_1[_i];\n var category = option.category;\n if (isAllowedOptionForOutput(option)) {\n categorizedOptions.add(ts.getLocaleSpecificMessage(category), option);\n }\n }\n // Serialize all options and their descriptions\n var marginLength = 0;\n var seenKnownKeys = 0;\n var entries = [];\n categorizedOptions.forEach(function (options, category) {\n if (entries.length !== 0) {\n entries.push({ value: \"\" });\n }\n entries.push({ value: \"/* \" + category + \" */\" });\n for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {\n var option = options_1[_i];\n var optionName = void 0;\n if (compilerOptionsMap.has(option.name)) {\n optionName = \"\\\"\" + option.name + \"\\\": \" + JSON.stringify(compilerOptionsMap.get(option.name)) + ((seenKnownKeys += 1) === compilerOptionsMap.size ? \"\" : \",\");\n }\n else {\n optionName = \"// \\\"\" + option.name + \"\\\": \" + JSON.stringify(getDefaultValueForOption(option)) + \",\";\n }\n entries.push({\n value: optionName,\n description: \"/* \" + (option.description && ts.getLocaleSpecificMessage(option.description) || option.name) + \" */\"\n });\n marginLength = Math.max(optionName.length, marginLength);\n }\n });\n // Write the output\n var tab = makePadding(2);\n var result = [];\n result.push(\"{\");\n result.push(tab + \"\\\"compilerOptions\\\": {\");\n result.push(\"\" + tab + tab + \"/* \" + ts.getLocaleSpecificMessage(ts.Diagnostics.Visit_https_Colon_Slash_Slashaka_ms_Slashtsconfig_json_to_read_more_about_this_file) + \" */\");\n result.push(\"\");\n // Print out each row, aligning all the descriptions on the same column.\n for (var _a = 0, entries_2 = entries; _a < entries_2.length; _a++) {\n var entry = entries_2[_a];\n var value = entry.value, _b = entry.description, description = _b === void 0 ? \"\" : _b;\n result.push(value && \"\" + tab + tab + value + (description && (makePadding(marginLength - value.length + 2) + description)));\n }\n if (fileNames.length) {\n result.push(tab + \"},\");\n result.push(tab + \"\\\"files\\\": [\");\n for (var i = 0; i < fileNames.length; i++) {\n result.push(\"\" + tab + tab + JSON.stringify(fileNames[i]) + (i === fileNames.length - 1 ? \"\" : \",\"));\n }\n result.push(tab + \"]\");\n }\n else {\n result.push(tab + \"}\");\n }\n result.push(\"}\");\n return result.join(newLine) + newLine;\n }\n }\n ts.generateTSConfig = generateTSConfig;\n /* @internal */\n function convertToOptionsWithAbsolutePaths(options, toAbsolutePath) {\n var result = {};\n var optionsNameMap = getOptionsNameMap().optionsNameMap;\n for (var name in options) {\n if (ts.hasProperty(options, name)) {\n result[name] = convertToOptionValueWithAbsolutePaths(optionsNameMap.get(name.toLowerCase()), options[name], toAbsolutePath);\n }\n }\n if (result.configFilePath) {\n result.configFilePath = toAbsolutePath(result.configFilePath);\n }\n return result;\n }\n ts.convertToOptionsWithAbsolutePaths = convertToOptionsWithAbsolutePaths;\n function convertToOptionValueWithAbsolutePaths(option, value, toAbsolutePath) {\n if (option && !isNullOrUndefined(value)) {\n if (option.type === \"list\") {\n var values = value;\n if (option.element.isFilePath && values.length) {\n return values.map(toAbsolutePath);\n }\n }\n else if (option.isFilePath) {\n return toAbsolutePath(value);\n }\n }\n return value;\n }\n /**\n * Parse the contents of a config file (tsconfig.json).\n * @param json The contents of the config file to parse\n * @param host Instance of ParseConfigHost used to enumerate files in folder.\n * @param basePath A root directory to resolve relative path entries in the config\n * file to. e.g. outDir\n */\n function parseJsonConfigFileContent(json, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache, existingWatchOptions) {\n return parseJsonConfigFileContentWorker(json, /*sourceFile*/ undefined, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache);\n }\n ts.parseJsonConfigFileContent = parseJsonConfigFileContent;\n /**\n * Parse the contents of a config file (tsconfig.json).\n * @param jsonNode The contents of the config file to parse\n * @param host Instance of ParseConfigHost used to enumerate files in folder.\n * @param basePath A root directory to resolve relative path entries in the config\n * file to. e.g. outDir\n */\n function parseJsonSourceFileConfigFileContent(sourceFile, host, basePath, existingOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache, existingWatchOptions) {\n return parseJsonConfigFileContentWorker(/*json*/ undefined, sourceFile, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache);\n }\n ts.parseJsonSourceFileConfigFileContent = parseJsonSourceFileConfigFileContent;\n /*@internal*/\n function setConfigFileInOptions(options, configFile) {\n if (configFile) {\n Object.defineProperty(options, \"configFile\", { enumerable: false, writable: false, value: configFile });\n }\n }\n ts.setConfigFileInOptions = setConfigFileInOptions;\n function isNullOrUndefined(x) {\n return x === undefined || x === null; // eslint-disable-line no-null/no-null\n }\n function directoryOfCombinedPath(fileName, basePath) {\n // Use the `getNormalizedAbsolutePath` function to avoid canonicalizing the path, as it must remain noncanonical\n // until consistent casing errors are reported\n return ts.getDirectoryPath(ts.getNormalizedAbsolutePath(fileName, basePath));\n }\n /**\n * Parse the contents of a config file from json or json source file (tsconfig.json).\n * @param json The contents of the config file to parse\n * @param sourceFile sourceFile corresponding to the Json\n * @param host Instance of ParseConfigHost used to enumerate files in folder.\n * @param basePath A root directory to resolve relative path entries in the config\n * file to. e.g. outDir\n * @param resolutionStack Only present for backwards-compatibility. Should be empty.\n */\n function parseJsonConfigFileContentWorker(json, sourceFile, host, basePath, existingOptions, existingWatchOptions, configFileName, resolutionStack, extraFileExtensions, extendedConfigCache) {\n if (existingOptions === void 0) { existingOptions = {}; }\n if (resolutionStack === void 0) { resolutionStack = []; }\n if (extraFileExtensions === void 0) { extraFileExtensions = []; }\n ts.Debug.assert((json === undefined && sourceFile !== undefined) || (json !== undefined && sourceFile === undefined));\n var errors = [];\n var parsedConfig = parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache);\n var raw = parsedConfig.raw;\n var options = ts.extend(existingOptions, parsedConfig.options || {});\n var watchOptions = existingWatchOptions && parsedConfig.watchOptions ?\n ts.extend(existingWatchOptions, parsedConfig.watchOptions) :\n parsedConfig.watchOptions || existingWatchOptions;\n options.configFilePath = configFileName && ts.normalizeSlashes(configFileName);\n var configFileSpecs = getConfigFileSpecs();\n if (sourceFile)\n sourceFile.configFileSpecs = configFileSpecs;\n setConfigFileInOptions(options, sourceFile);\n var basePathForFileNames = ts.normalizePath(configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath);\n return {\n options: options,\n watchOptions: watchOptions,\n fileNames: getFileNames(basePathForFileNames),\n projectReferences: getProjectReferences(basePathForFileNames),\n typeAcquisition: parsedConfig.typeAcquisition || getDefaultTypeAcquisition(),\n raw: raw,\n errors: errors,\n // Wildcard directories (provided as part of a wildcard path) are stored in a\n // file map that marks whether it was a regular wildcard match (with a `*` or `?` token),\n // or a recursive directory. This information is used by filesystem watchers to monitor for\n // new entries in these paths.\n wildcardDirectories: getWildcardDirectories(configFileSpecs, basePathForFileNames, host.useCaseSensitiveFileNames),\n compileOnSave: !!raw.compileOnSave,\n };\n function getConfigFileSpecs() {\n var referencesOfRaw = getPropFromRaw(\"references\", function (element) { return typeof element === \"object\"; }, \"object\");\n var filesSpecs = toPropValue(getSpecsFromRaw(\"files\"));\n if (filesSpecs) {\n var hasZeroOrNoReferences = referencesOfRaw === \"no-prop\" || ts.isArray(referencesOfRaw) && referencesOfRaw.length === 0;\n var hasExtends = ts.hasProperty(raw, \"extends\");\n if (filesSpecs.length === 0 && hasZeroOrNoReferences && !hasExtends) {\n if (sourceFile) {\n var fileName = configFileName || \"tsconfig.json\";\n var diagnosticMessage = ts.Diagnostics.The_files_list_in_config_file_0_is_empty;\n var nodeValue = ts.firstDefined(ts.getTsConfigPropArray(sourceFile, \"files\"), function (property) { return property.initializer; });\n var error = nodeValue\n ? ts.createDiagnosticForNodeInSourceFile(sourceFile, nodeValue, diagnosticMessage, fileName)\n : ts.createCompilerDiagnostic(diagnosticMessage, fileName);\n errors.push(error);\n }\n else {\n createCompilerDiagnosticOnlyIfJson(ts.Diagnostics.The_files_list_in_config_file_0_is_empty, configFileName || \"tsconfig.json\");\n }\n }\n }\n var includeSpecs = toPropValue(getSpecsFromRaw(\"include\"));\n var excludeOfRaw = getSpecsFromRaw(\"exclude\");\n var excludeSpecs = toPropValue(excludeOfRaw);\n if (excludeOfRaw === \"no-prop\" && raw.compilerOptions) {\n var outDir = raw.compilerOptions.outDir;\n var declarationDir = raw.compilerOptions.declarationDir;\n if (outDir || declarationDir) {\n excludeSpecs = [outDir, declarationDir].filter(function (d) { return !!d; });\n }\n }\n if (filesSpecs === undefined && includeSpecs === undefined) {\n includeSpecs = [\"**/*\"];\n }\n var validatedIncludeSpecs, validatedExcludeSpecs;\n // The exclude spec list is converted into a regular expression, which allows us to quickly\n // test whether a file or directory should be excluded before recursively traversing the\n // file system.\n if (includeSpecs) {\n validatedIncludeSpecs = validateSpecs(includeSpecs, errors, /*disallowTrailingRecursion*/ true, sourceFile, \"include\");\n }\n if (excludeSpecs) {\n validatedExcludeSpecs = validateSpecs(excludeSpecs, errors, /*disallowTrailingRecursion*/ false, sourceFile, \"exclude\");\n }\n return {\n filesSpecs: filesSpecs,\n includeSpecs: includeSpecs,\n excludeSpecs: excludeSpecs,\n validatedFilesSpec: ts.filter(filesSpecs, ts.isString),\n validatedIncludeSpecs: validatedIncludeSpecs,\n validatedExcludeSpecs: validatedExcludeSpecs,\n pathPatterns: undefined, // Initialized on first use\n };\n }\n function getFileNames(basePath) {\n var fileNames = getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions);\n if (shouldReportNoInputFiles(fileNames, canJsonReportNoInputFiles(raw), resolutionStack)) {\n errors.push(getErrorForNoInputFiles(configFileSpecs, configFileName));\n }\n return fileNames;\n }\n function getProjectReferences(basePath) {\n var projectReferences;\n var referencesOfRaw = getPropFromRaw(\"references\", function (element) { return typeof element === \"object\"; }, \"object\");\n if (ts.isArray(referencesOfRaw)) {\n for (var _i = 0, referencesOfRaw_1 = referencesOfRaw; _i < referencesOfRaw_1.length; _i++) {\n var ref = referencesOfRaw_1[_i];\n if (typeof ref.path !== \"string\") {\n createCompilerDiagnosticOnlyIfJson(ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, \"reference.path\", \"string\");\n }\n else {\n (projectReferences || (projectReferences = [])).push({\n path: ts.getNormalizedAbsolutePath(ref.path, basePath),\n originalPath: ref.path,\n prepend: ref.prepend,\n circular: ref.circular\n });\n }\n }\n }\n return projectReferences;\n }\n function toPropValue(specResult) {\n return ts.isArray(specResult) ? specResult : undefined;\n }\n function getSpecsFromRaw(prop) {\n return getPropFromRaw(prop, ts.isString, \"string\");\n }\n function getPropFromRaw(prop, validateElement, elementTypeName) {\n if (ts.hasProperty(raw, prop) && !isNullOrUndefined(raw[prop])) {\n if (ts.isArray(raw[prop])) {\n var result = raw[prop];\n if (!sourceFile && !ts.every(result, validateElement)) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, elementTypeName));\n }\n return result;\n }\n else {\n createCompilerDiagnosticOnlyIfJson(ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, prop, \"Array\");\n return \"not-array\";\n }\n }\n return \"no-prop\";\n }\n function createCompilerDiagnosticOnlyIfJson(message, arg0, arg1) {\n if (!sourceFile) {\n errors.push(ts.createCompilerDiagnostic(message, arg0, arg1));\n }\n }\n }\n function isErrorNoInputFiles(error) {\n return error.code === ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2.code;\n }\n function getErrorForNoInputFiles(_a, configFileName) {\n var includeSpecs = _a.includeSpecs, excludeSpecs = _a.excludeSpecs;\n return ts.createCompilerDiagnostic(ts.Diagnostics.No_inputs_were_found_in_config_file_0_Specified_include_paths_were_1_and_exclude_paths_were_2, configFileName || \"tsconfig.json\", JSON.stringify(includeSpecs || []), JSON.stringify(excludeSpecs || []));\n }\n function shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles, resolutionStack) {\n return fileNames.length === 0 && canJsonReportNoInutFiles && (!resolutionStack || resolutionStack.length === 0);\n }\n /*@internal*/\n function canJsonReportNoInputFiles(raw) {\n return !ts.hasProperty(raw, \"files\") && !ts.hasProperty(raw, \"references\");\n }\n ts.canJsonReportNoInputFiles = canJsonReportNoInputFiles;\n /*@internal*/\n function updateErrorForNoInputFiles(fileNames, configFileName, configFileSpecs, configParseDiagnostics, canJsonReportNoInutFiles) {\n var existingErrors = configParseDiagnostics.length;\n if (shouldReportNoInputFiles(fileNames, canJsonReportNoInutFiles)) {\n configParseDiagnostics.push(getErrorForNoInputFiles(configFileSpecs, configFileName));\n }\n else {\n ts.filterMutate(configParseDiagnostics, function (error) { return !isErrorNoInputFiles(error); });\n }\n return existingErrors !== configParseDiagnostics.length;\n }\n ts.updateErrorForNoInputFiles = updateErrorForNoInputFiles;\n function isSuccessfulParsedTsconfig(value) {\n return !!value.options;\n }\n /**\n * This *just* extracts options/include/exclude/files out of a config file.\n * It does *not* resolve the included files.\n */\n function parseConfig(json, sourceFile, host, basePath, configFileName, resolutionStack, errors, extendedConfigCache) {\n var _a;\n basePath = ts.normalizeSlashes(basePath);\n var resolvedPath = ts.getNormalizedAbsolutePath(configFileName || \"\", basePath);\n if (resolutionStack.indexOf(resolvedPath) >= 0) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Circularity_detected_while_resolving_configuration_Colon_0, __spreadArray(__spreadArray([], resolutionStack, true), [resolvedPath], false).join(\" -> \")));\n return { raw: json || convertToObject(sourceFile, errors) };\n }\n var ownConfig = json ?\n parseOwnConfigOfJson(json, host, basePath, configFileName, errors) :\n parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors);\n if ((_a = ownConfig.options) === null || _a === void 0 ? void 0 : _a.paths) {\n // If we end up needing to resolve relative paths from 'paths' relative to\n // the config file location, we'll need to know where that config file was.\n // Since 'paths' can be inherited from an extended config in another directory,\n // we wouldn't know which directory to use unless we store it here.\n ownConfig.options.pathsBasePath = basePath;\n }\n if (ownConfig.extendedConfigPath) {\n // copy the resolution stack so it is never reused between branches in potential diamond-problem scenarios.\n resolutionStack = resolutionStack.concat([resolvedPath]);\n var extendedConfig = getExtendedConfig(sourceFile, ownConfig.extendedConfigPath, host, resolutionStack, errors, extendedConfigCache);\n if (extendedConfig && isSuccessfulParsedTsconfig(extendedConfig)) {\n var baseRaw_1 = extendedConfig.raw;\n var raw_1 = ownConfig.raw;\n var relativeDifference_1;\n var setPropertyInRawIfNotUndefined = function (propertyName) {\n if (!raw_1[propertyName] && baseRaw_1[propertyName]) {\n raw_1[propertyName] = ts.map(baseRaw_1[propertyName], function (path) { return ts.isRootedDiskPath(path) ? path : ts.combinePaths(relativeDifference_1 || (relativeDifference_1 = ts.convertToRelativePath(ts.getDirectoryPath(ownConfig.extendedConfigPath), basePath, ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames))), path); });\n }\n };\n setPropertyInRawIfNotUndefined(\"include\");\n setPropertyInRawIfNotUndefined(\"exclude\");\n setPropertyInRawIfNotUndefined(\"files\");\n if (raw_1.compileOnSave === undefined) {\n raw_1.compileOnSave = baseRaw_1.compileOnSave;\n }\n ownConfig.options = ts.assign({}, extendedConfig.options, ownConfig.options);\n ownConfig.watchOptions = ownConfig.watchOptions && extendedConfig.watchOptions ?\n ts.assign({}, extendedConfig.watchOptions, ownConfig.watchOptions) :\n ownConfig.watchOptions || extendedConfig.watchOptions;\n // TODO extend type typeAcquisition\n }\n }\n return ownConfig;\n }\n function parseOwnConfigOfJson(json, host, basePath, configFileName, errors) {\n if (ts.hasProperty(json, \"excludes\")) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));\n }\n var options = convertCompilerOptionsFromJsonWorker(json.compilerOptions, basePath, errors, configFileName);\n // typingOptions has been deprecated and is only supported for backward compatibility purposes.\n // It should be removed in future releases - use typeAcquisition instead.\n var typeAcquisition = convertTypeAcquisitionFromJsonWorker(json.typeAcquisition || json.typingOptions, basePath, errors, configFileName);\n var watchOptions = convertWatchOptionsFromJsonWorker(json.watchOptions, basePath, errors);\n json.compileOnSave = convertCompileOnSaveOptionFromJson(json, basePath, errors);\n var extendedConfigPath;\n if (json.extends) {\n if (!ts.isString(json.extends)) {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, \"extends\", \"string\"));\n }\n else {\n var newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath;\n extendedConfigPath = getExtendsConfigPath(json.extends, host, newBase, errors, ts.createCompilerDiagnostic);\n }\n }\n return { raw: json, options: options, watchOptions: watchOptions, typeAcquisition: typeAcquisition, extendedConfigPath: extendedConfigPath };\n }\n function parseOwnConfigOfJsonSourceFile(sourceFile, host, basePath, configFileName, errors) {\n var options = getDefaultCompilerOptions(configFileName);\n var typeAcquisition, typingOptionstypeAcquisition;\n var watchOptions;\n var extendedConfigPath;\n var optionsIterator = {\n onSetValidOptionKeyValueInParent: function (parentOption, option, value) {\n var currentOption;\n switch (parentOption) {\n case \"compilerOptions\":\n currentOption = options;\n break;\n case \"watchOptions\":\n currentOption = (watchOptions || (watchOptions = {}));\n break;\n case \"typeAcquisition\":\n currentOption = (typeAcquisition || (typeAcquisition = getDefaultTypeAcquisition(configFileName)));\n break;\n case \"typingOptions\":\n currentOption = (typingOptionstypeAcquisition || (typingOptionstypeAcquisition = getDefaultTypeAcquisition(configFileName)));\n break;\n default:\n ts.Debug.fail(\"Unknown option\");\n }\n currentOption[option.name] = normalizeOptionValue(option, basePath, value);\n },\n onSetValidOptionKeyValueInRoot: function (key, _keyNode, value, valueNode) {\n switch (key) {\n case \"extends\":\n var newBase = configFileName ? directoryOfCombinedPath(configFileName, basePath) : basePath;\n extendedConfigPath = getExtendsConfigPath(value, host, newBase, errors, function (message, arg0) {\n return ts.createDiagnosticForNodeInSourceFile(sourceFile, valueNode, message, arg0);\n });\n return;\n }\n },\n onSetUnknownOptionKeyValueInRoot: function (key, keyNode, _value, _valueNode) {\n if (key === \"excludes\") {\n errors.push(ts.createDiagnosticForNodeInSourceFile(sourceFile, keyNode, ts.Diagnostics.Unknown_option_excludes_Did_you_mean_exclude));\n }\n }\n };\n var json = convertConfigFileToObject(sourceFile, errors, /*reportOptionsErrors*/ true, optionsIterator);\n if (!typeAcquisition) {\n if (typingOptionstypeAcquisition) {\n typeAcquisition = (typingOptionstypeAcquisition.enableAutoDiscovery !== undefined) ?\n {\n enable: typingOptionstypeAcquisition.enableAutoDiscovery,\n include: typingOptionstypeAcquisition.include,\n exclude: typingOptionstypeAcquisition.exclude\n } :\n typingOptionstypeAcquisition;\n }\n else {\n typeAcquisition = getDefaultTypeAcquisition(configFileName);\n }\n }\n return { raw: json, options: options, watchOptions: watchOptions, typeAcquisition: typeAcquisition, extendedConfigPath: extendedConfigPath };\n }\n function getExtendsConfigPath(extendedConfig, host, basePath, errors, createDiagnostic) {\n extendedConfig = ts.normalizeSlashes(extendedConfig);\n if (ts.isRootedDiskPath(extendedConfig) || ts.startsWith(extendedConfig, \"./\") || ts.startsWith(extendedConfig, \"../\")) {\n var extendedConfigPath = ts.getNormalizedAbsolutePath(extendedConfig, basePath);\n if (!host.fileExists(extendedConfigPath) && !ts.endsWith(extendedConfigPath, \".json\" /* Json */)) {\n extendedConfigPath = extendedConfigPath + \".json\";\n if (!host.fileExists(extendedConfigPath)) {\n errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));\n return undefined;\n }\n }\n return extendedConfigPath;\n }\n // If the path isn't a rooted or relative path, resolve like a module\n var resolved = ts.nodeModuleNameResolver(extendedConfig, ts.combinePaths(basePath, \"tsconfig.json\"), { moduleResolution: ts.ModuleResolutionKind.NodeJs }, host, /*cache*/ undefined, /*projectRefs*/ undefined, /*lookupConfig*/ true);\n if (resolved.resolvedModule) {\n return resolved.resolvedModule.resolvedFileName;\n }\n errors.push(createDiagnostic(ts.Diagnostics.File_0_not_found, extendedConfig));\n return undefined;\n }\n function getExtendedConfig(sourceFile, extendedConfigPath, host, resolutionStack, errors, extendedConfigCache) {\n var _a;\n var path = host.useCaseSensitiveFileNames ? extendedConfigPath : ts.toFileNameLowerCase(extendedConfigPath);\n var value;\n var extendedResult;\n var extendedConfig;\n if (extendedConfigCache && (value = extendedConfigCache.get(path))) {\n (extendedResult = value.extendedResult, extendedConfig = value.extendedConfig);\n }\n else {\n extendedResult = readJsonConfigFile(extendedConfigPath, function (path) { return host.readFile(path); });\n if (!extendedResult.parseDiagnostics.length) {\n extendedConfig = parseConfig(/*json*/ undefined, extendedResult, host, ts.getDirectoryPath(extendedConfigPath), ts.getBaseFileName(extendedConfigPath), resolutionStack, errors, extendedConfigCache);\n }\n if (extendedConfigCache) {\n extendedConfigCache.set(path, { extendedResult: extendedResult, extendedConfig: extendedConfig });\n }\n }\n if (sourceFile) {\n sourceFile.extendedSourceFiles = [extendedResult.fileName];\n if (extendedResult.extendedSourceFiles) {\n (_a = sourceFile.extendedSourceFiles).push.apply(_a, extendedResult.extendedSourceFiles);\n }\n }\n if (extendedResult.parseDiagnostics.length) {\n errors.push.apply(errors, extendedResult.parseDiagnostics);\n return undefined;\n }\n return extendedConfig;\n }\n function convertCompileOnSaveOptionFromJson(jsonOption, basePath, errors) {\n if (!ts.hasProperty(jsonOption, ts.compileOnSaveCommandLineOption.name)) {\n return false;\n }\n var result = convertJsonOption(ts.compileOnSaveCommandLineOption, jsonOption.compileOnSave, basePath, errors);\n return typeof result === \"boolean\" && result;\n }\n function convertCompilerOptionsFromJson(jsonOptions, basePath, configFileName) {\n var errors = [];\n var options = convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors, configFileName);\n return { options: options, errors: errors };\n }\n ts.convertCompilerOptionsFromJson = convertCompilerOptionsFromJson;\n function convertTypeAcquisitionFromJson(jsonOptions, basePath, configFileName) {\n var errors = [];\n var options = convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors, configFileName);\n return { options: options, errors: errors };\n }\n ts.convertTypeAcquisitionFromJson = convertTypeAcquisitionFromJson;\n function getDefaultCompilerOptions(configFileName) {\n var options = configFileName && ts.getBaseFileName(configFileName) === \"jsconfig.json\"\n ? { allowJs: true, maxNodeModuleJsDepth: 2, allowSyntheticDefaultImports: true, skipLibCheck: true, noEmit: true }\n : {};\n return options;\n }\n function convertCompilerOptionsFromJsonWorker(jsonOptions, basePath, errors, configFileName) {\n var options = getDefaultCompilerOptions(configFileName);\n convertOptionsFromJson(getCommandLineCompilerOptionsMap(), jsonOptions, basePath, options, ts.compilerOptionsDidYouMeanDiagnostics, errors);\n if (configFileName) {\n options.configFilePath = ts.normalizeSlashes(configFileName);\n }\n return options;\n }\n function getDefaultTypeAcquisition(configFileName) {\n return { enable: !!configFileName && ts.getBaseFileName(configFileName) === \"jsconfig.json\", include: [], exclude: [] };\n }\n function convertTypeAcquisitionFromJsonWorker(jsonOptions, basePath, errors, configFileName) {\n var options = getDefaultTypeAcquisition(configFileName);\n var typeAcquisition = convertEnableAutoDiscoveryToEnable(jsonOptions);\n convertOptionsFromJson(getCommandLineTypeAcquisitionMap(), typeAcquisition, basePath, options, typeAcquisitionDidYouMeanDiagnostics, errors);\n return options;\n }\n function convertWatchOptionsFromJsonWorker(jsonOptions, basePath, errors) {\n return convertOptionsFromJson(getCommandLineWatchOptionsMap(), jsonOptions, basePath, /*defaultOptions*/ undefined, watchOptionsDidYouMeanDiagnostics, errors);\n }\n function convertOptionsFromJson(optionsNameMap, jsonOptions, basePath, defaultOptions, diagnostics, errors) {\n if (!jsonOptions) {\n return;\n }\n for (var id in jsonOptions) {\n var opt = optionsNameMap.get(id);\n if (opt) {\n (defaultOptions || (defaultOptions = {}))[opt.name] = convertJsonOption(opt, jsonOptions[id], basePath, errors);\n }\n else {\n errors.push(createUnknownOptionError(id, diagnostics, ts.createCompilerDiagnostic));\n }\n }\n return defaultOptions;\n }\n /*@internal*/\n function convertJsonOption(opt, value, basePath, errors) {\n if (isCompilerOptionsValue(opt, value)) {\n var optType = opt.type;\n if (optType === \"list\" && ts.isArray(value)) {\n return convertJsonOptionOfListType(opt, value, basePath, errors);\n }\n else if (!ts.isString(optType)) {\n return convertJsonOptionOfCustomType(opt, value, errors);\n }\n var validatedValue = validateJsonOptionValue(opt, value, errors);\n return isNullOrUndefined(validatedValue) ? validatedValue : normalizeNonListOptionValue(opt, basePath, validatedValue);\n }\n else {\n errors.push(ts.createCompilerDiagnostic(ts.Diagnostics.Compiler_option_0_requires_a_value_of_type_1, opt.name, getCompilerOptionValueTypeString(opt)));\n }\n }\n ts.convertJsonOption = convertJsonOption;\n function normalizeOptionValue(option, basePath, value) {\n if (isNullOrUndefined(value))\n return undefined;\n if (option.type === \"list\") {\n var listOption_1 = option;\n if (listOption_1.element.isFilePath || !ts.isString(listOption_1.element.type)) {\n return ts.filter(ts.map(value, function (v) { return normalizeOptionValue(listOption_1.element, basePath, v); }), function (v) { return !!v; });\n }\n return value;\n }\n else if (!ts.isString(option.type)) {\n return option.type.get(ts.isString(value) ? value.toLowerCase() : value);\n }\n return normalizeNonListOptionValue(option, basePath, value);\n }\n function normalizeNonListOptionValue(option, basePath, value) {\n if (option.isFilePath) {\n value = ts.getNormalizedAbsolutePath(value, basePath);\n if (value === \"\") {\n value = \".\";\n }\n }\n return value;\n }\n function validateJsonOptionValue(opt, value, errors) {\n var _a;\n if (isNullOrUndefined(value))\n return undefined;\n var d = (_a = opt.extraValidation) === null || _a === void 0 ? void 0 : _a.call(opt, value);\n if (!d)\n return value;\n errors.push(ts.createCompilerDiagnostic.apply(void 0, d));\n return undefined;\n }\n function convertJsonOptionOfCustomType(opt, value, errors) {\n if (isNullOrUndefined(value))\n return undefined;\n var key = value.toLowerCase();\n var val = opt.type.get(key);\n if (val !== undefined) {\n return validateJsonOptionValue(opt, val, errors);\n }\n else {\n errors.push(createCompilerDiagnosticForInvalidCustomType(opt));\n }\n }\n function convertJsonOptionOfListType(option, values, basePath, errors) {\n return ts.filter(ts.map(values, function (v) { return convertJsonOption(option.element, v, basePath, errors); }), function (v) { return !!v; });\n }\n /**\n * Tests for a path that ends in a recursive directory wildcard.\n * Matches **, \\**, **\\, and \\**\\, but not a**b.\n *\n * NOTE: used \\ in place of / above to avoid issues with multiline comments.\n *\n * Breakdown:\n * (^|\\/) # matches either the beginning of the string or a directory separator.\n * \\*\\* # matches the recursive directory wildcard \"**\".\n * \\/?$ # matches an optional trailing directory separator at the end of the string.\n */\n var invalidTrailingRecursionPattern = /(^|\\/)\\*\\*\\/?$/;\n /**\n * Matches the portion of a wildcard path that does not contain wildcards.\n * Matches \\a of \\a\\*, or \\a\\b\\c of \\a\\b\\c\\?\\d.\n *\n * NOTE: used \\ in place of / above to avoid issues with multiline comments.\n *\n * Breakdown:\n * ^ # matches the beginning of the string\n * [^*?]* # matches any number of non-wildcard characters\n * (?=\\/[^/]*[*?]) # lookahead that matches a directory separator followed by\n * # a path component that contains at least one wildcard character (* or ?).\n */\n var wildcardDirectoryPattern = /^[^*?]*(?=\\/[^/]*[*?])/;\n /**\n * Gets the file names from the provided config file specs that contain, files, include, exclude and\n * other properties needed to resolve the file names\n * @param configFileSpecs The config file specs extracted with file names to include, wildcards to include/exclude and other details\n * @param basePath The base path for any relative file specifications.\n * @param options Compiler options.\n * @param host The host used to resolve files and directories.\n * @param extraFileExtensions optionaly file extra file extension information from host\n */\n /* @internal */\n function getFileNamesFromConfigSpecs(configFileSpecs, basePath, options, host, extraFileExtensions) {\n if (extraFileExtensions === void 0) { extraFileExtensions = ts.emptyArray; }\n basePath = ts.normalizePath(basePath);\n var keyMapper = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames);\n // Literal file names (provided via the \"files\" array in tsconfig.json) are stored in a\n // file map with a possibly case insensitive key. We use this map later when when including\n // wildcard paths.\n var literalFileMap = new ts.Map();\n // Wildcard paths (provided via the \"includes\" array in tsconfig.json) are stored in a\n // file map with a possibly case insensitive key. We use this map to store paths matched\n // via wildcard, and to handle extension priority.\n var wildcardFileMap = new ts.Map();\n // Wildcard paths of json files (provided via the \"includes\" array in tsconfig.json) are stored in a\n // file map with a possibly case insensitive key. We use this map to store paths matched\n // via wildcard of *.json kind\n var wildCardJsonFileMap = new ts.Map();\n var validatedFilesSpec = configFileSpecs.validatedFilesSpec, validatedIncludeSpecs = configFileSpecs.validatedIncludeSpecs, validatedExcludeSpecs = configFileSpecs.validatedExcludeSpecs;\n // Rather than re-query this for each file and filespec, we query the supported extensions\n // once and store it on the expansion context.\n var supportedExtensions = ts.getSupportedExtensions(options, extraFileExtensions);\n var supportedExtensionsWithJsonIfResolveJsonModule = ts.getSuppoertedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);\n // Literal files are always included verbatim. An \"include\" or \"exclude\" specification cannot\n // remove a literal file.\n if (validatedFilesSpec) {\n for (var _i = 0, validatedFilesSpec_1 = validatedFilesSpec; _i < validatedFilesSpec_1.length; _i++) {\n var fileName = validatedFilesSpec_1[_i];\n var file = ts.getNormalizedAbsolutePath(fileName, basePath);\n literalFileMap.set(keyMapper(file), file);\n }\n }\n var jsonOnlyIncludeRegexes;\n if (validatedIncludeSpecs && validatedIncludeSpecs.length > 0) {\n var _loop_6 = function (file) {\n if (ts.fileExtensionIs(file, \".json\" /* Json */)) {\n // Valid only if *.json specified\n if (!jsonOnlyIncludeRegexes) {\n var includes = validatedIncludeSpecs.filter(function (s) { return ts.endsWith(s, \".json\" /* Json */); });\n var includeFilePatterns = ts.map(ts.getRegularExpressionsForWildcards(includes, basePath, \"files\"), function (pattern) { return \"^\" + pattern + \"$\"; });\n jsonOnlyIncludeRegexes = includeFilePatterns ? includeFilePatterns.map(function (pattern) { return ts.getRegexFromPattern(pattern, host.useCaseSensitiveFileNames); }) : ts.emptyArray;\n }\n var includeIndex = ts.findIndex(jsonOnlyIncludeRegexes, function (re) { return re.test(file); });\n if (includeIndex !== -1) {\n var key_1 = keyMapper(file);\n if (!literalFileMap.has(key_1) && !wildCardJsonFileMap.has(key_1)) {\n wildCardJsonFileMap.set(key_1, file);\n }\n }\n return \"continue\";\n }\n // If we have already included a literal or wildcard path with a\n // higher priority extension, we should skip this file.\n //\n // This handles cases where we may encounter both .ts and\n // .d.ts (or .js if \"allowJs\" is enabled) in the same\n // directory when they are compilation outputs.\n if (hasFileWithHigherPriorityExtension(file, literalFileMap, wildcardFileMap, supportedExtensions, keyMapper)) {\n return \"continue\";\n }\n // We may have included a wildcard path with a lower priority\n // extension due to the user-defined order of entries in the\n // \"include\" array. If there is a lower priority extension in the\n // same directory, we should remove it.\n removeWildcardFilesWithLowerPriorityExtension(file, wildcardFileMap, supportedExtensions, keyMapper);\n var key = keyMapper(file);\n if (!literalFileMap.has(key) && !wildcardFileMap.has(key)) {\n wildcardFileMap.set(key, file);\n }\n };\n for (var _a = 0, _b = host.readDirectory(basePath, supportedExtensionsWithJsonIfResolveJsonModule, validatedExcludeSpecs, validatedIncludeSpecs, /*depth*/ undefined); _a < _b.length; _a++) {\n var file = _b[_a];\n _loop_6(file);\n }\n }\n var literalFiles = ts.arrayFrom(literalFileMap.values());\n var wildcardFiles = ts.arrayFrom(wildcardFileMap.values());\n return literalFiles.concat(wildcardFiles, ts.arrayFrom(wildCardJsonFileMap.values()));\n }\n ts.getFileNamesFromConfigSpecs = getFileNamesFromConfigSpecs;\n /* @internal */\n function isExcludedFile(pathToCheck, spec, basePath, useCaseSensitiveFileNames, currentDirectory) {\n var validatedFilesSpec = spec.validatedFilesSpec, validatedIncludeSpecs = spec.validatedIncludeSpecs, validatedExcludeSpecs = spec.validatedExcludeSpecs;\n if (!ts.length(validatedIncludeSpecs) || !ts.length(validatedExcludeSpecs))\n return false;\n basePath = ts.normalizePath(basePath);\n var keyMapper = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n if (validatedFilesSpec) {\n for (var _i = 0, validatedFilesSpec_2 = validatedFilesSpec; _i < validatedFilesSpec_2.length; _i++) {\n var fileName = validatedFilesSpec_2[_i];\n if (keyMapper(ts.getNormalizedAbsolutePath(fileName, basePath)) === pathToCheck)\n return false;\n }\n }\n return matchesExcludeWorker(pathToCheck, validatedExcludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath);\n }\n ts.isExcludedFile = isExcludedFile;\n function invalidDotDotAfterRecursiveWildcard(s) {\n // We used to use the regex /(^|\\/)\\*\\*\\/(.*\\/)?\\.\\.($|\\/)/ to check for this case, but\n // in v8, that has polynomial performance because the recursive wildcard match - **/ -\n // can be matched in many arbitrary positions when multiple are present, resulting\n // in bad backtracking (and we don't care which is matched - just that some /.. segment\n // comes after some **/ segment).\n var wildcardIndex = ts.startsWith(s, \"**/\") ? 0 : s.indexOf(\"/**/\");\n if (wildcardIndex === -1) {\n return false;\n }\n var lastDotIndex = ts.endsWith(s, \"/..\") ? s.length : s.lastIndexOf(\"/../\");\n return lastDotIndex > wildcardIndex;\n }\n /* @internal */\n function matchesExclude(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory) {\n return matchesExcludeWorker(pathToCheck, ts.filter(excludeSpecs, function (spec) { return !invalidDotDotAfterRecursiveWildcard(spec); }), useCaseSensitiveFileNames, currentDirectory);\n }\n ts.matchesExclude = matchesExclude;\n function matchesExcludeWorker(pathToCheck, excludeSpecs, useCaseSensitiveFileNames, currentDirectory, basePath) {\n var excludePattern = ts.getRegularExpressionForWildcard(excludeSpecs, ts.combinePaths(ts.normalizePath(currentDirectory), basePath), \"exclude\");\n var excludeRegex = excludePattern && ts.getRegexFromPattern(excludePattern, useCaseSensitiveFileNames);\n if (!excludeRegex)\n return false;\n if (excludeRegex.test(pathToCheck))\n return true;\n return !ts.hasExtension(pathToCheck) && excludeRegex.test(ts.ensureTrailingDirectorySeparator(pathToCheck));\n }\n function validateSpecs(specs, errors, disallowTrailingRecursion, jsonSourceFile, specKey) {\n return specs.filter(function (spec) {\n if (!ts.isString(spec))\n return false;\n var diag = specToDiagnostic(spec, disallowTrailingRecursion);\n if (diag !== undefined) {\n errors.push(createDiagnostic.apply(void 0, diag));\n }\n return diag === undefined;\n });\n function createDiagnostic(message, spec) {\n var element = ts.getTsConfigPropArrayElementValue(jsonSourceFile, specKey, spec);\n return element ?\n ts.createDiagnosticForNodeInSourceFile(jsonSourceFile, element, message, spec) :\n ts.createCompilerDiagnostic(message, spec);\n }\n }\n function specToDiagnostic(spec, disallowTrailingRecursion) {\n if (disallowTrailingRecursion && invalidTrailingRecursionPattern.test(spec)) {\n return [ts.Diagnostics.File_specification_cannot_end_in_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];\n }\n else if (invalidDotDotAfterRecursiveWildcard(spec)) {\n return [ts.Diagnostics.File_specification_cannot_contain_a_parent_directory_that_appears_after_a_recursive_directory_wildcard_Asterisk_Asterisk_Colon_0, spec];\n }\n }\n /**\n * Gets directories in a set of include patterns that should be watched for changes.\n */\n function getWildcardDirectories(_a, path, useCaseSensitiveFileNames) {\n var include = _a.validatedIncludeSpecs, exclude = _a.validatedExcludeSpecs;\n // We watch a directory recursively if it contains a wildcard anywhere in a directory segment\n // of the pattern:\n //\n // /a/b/**/d - Watch /a/b recursively to catch changes to any d in any subfolder recursively\n // /a/b/*/d - Watch /a/b recursively to catch any d in any immediate subfolder, even if a new subfolder is added\n // /a/b - Watch /a/b recursively to catch changes to anything in any recursive subfoler\n //\n // We watch a directory without recursion if it contains a wildcard in the file segment of\n // the pattern:\n //\n // /a/b/* - Watch /a/b directly to catch any new file\n // /a/b/a?z - Watch /a/b directly to catch any new file matching a?z\n var rawExcludeRegex = ts.getRegularExpressionForWildcard(exclude, path, \"exclude\");\n var excludeRegex = rawExcludeRegex && new RegExp(rawExcludeRegex, useCaseSensitiveFileNames ? \"\" : \"i\");\n var wildcardDirectories = {};\n if (include !== undefined) {\n var recursiveKeys = [];\n for (var _i = 0, include_1 = include; _i < include_1.length; _i++) {\n var file = include_1[_i];\n var spec = ts.normalizePath(ts.combinePaths(path, file));\n if (excludeRegex && excludeRegex.test(spec)) {\n continue;\n }\n var match = getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames);\n if (match) {\n var key = match.key, flags = match.flags;\n var existingFlags = wildcardDirectories[key];\n if (existingFlags === undefined || existingFlags < flags) {\n wildcardDirectories[key] = flags;\n if (flags === 1 /* Recursive */) {\n recursiveKeys.push(key);\n }\n }\n }\n }\n // Remove any subpaths under an existing recursively watched directory.\n for (var key in wildcardDirectories) {\n if (ts.hasProperty(wildcardDirectories, key)) {\n for (var _b = 0, recursiveKeys_1 = recursiveKeys; _b < recursiveKeys_1.length; _b++) {\n var recursiveKey = recursiveKeys_1[_b];\n if (key !== recursiveKey && ts.containsPath(recursiveKey, key, path, !useCaseSensitiveFileNames)) {\n delete wildcardDirectories[key];\n }\n }\n }\n }\n }\n return wildcardDirectories;\n }\n function getWildcardDirectoryFromSpec(spec, useCaseSensitiveFileNames) {\n var match = wildcardDirectoryPattern.exec(spec);\n if (match) {\n // We check this with a few `indexOf` calls because 3 `indexOf`/`lastIndexOf` calls is\n // less algorithmically complex (roughly O(3n) worst-case) than the regex we used to use,\n // \\/[^/]*?[*?][^/]*\\/ which was polynominal in v8, since arbitrary sequences of wildcard\n // characters could match any of the central patterns, resulting in bad backtracking.\n var questionWildcardIndex = spec.indexOf(\"?\");\n var starWildcardIndex = spec.indexOf(\"*\");\n var lastDirectorySeperatorIndex = spec.lastIndexOf(ts.directorySeparator);\n return {\n key: useCaseSensitiveFileNames ? match[0] : ts.toFileNameLowerCase(match[0]),\n flags: (questionWildcardIndex !== -1 && questionWildcardIndex < lastDirectorySeperatorIndex)\n || (starWildcardIndex !== -1 && starWildcardIndex < lastDirectorySeperatorIndex)\n ? 1 /* Recursive */ : 0 /* None */\n };\n }\n if (ts.isImplicitGlob(spec)) {\n return {\n key: useCaseSensitiveFileNames ? spec : ts.toFileNameLowerCase(spec),\n flags: 1 /* Recursive */\n };\n }\n return undefined;\n }\n /**\n * Determines whether a literal or wildcard file has already been included that has a higher\n * extension priority.\n *\n * @param file The path to the file.\n * @param extensionPriority The priority of the extension.\n * @param context The expansion context.\n */\n function hasFileWithHigherPriorityExtension(file, literalFiles, wildcardFiles, extensions, keyMapper) {\n var extensionPriority = ts.getExtensionPriority(file, extensions);\n var adjustedExtensionPriority = ts.adjustExtensionPriority(extensionPriority, extensions);\n for (var i = 0 /* Highest */; i < adjustedExtensionPriority; i++) {\n var higherPriorityExtension = extensions[i];\n var higherPriorityPath = keyMapper(ts.changeExtension(file, higherPriorityExtension));\n if (literalFiles.has(higherPriorityPath) || wildcardFiles.has(higherPriorityPath)) {\n return true;\n }\n }\n return false;\n }\n /**\n * Removes files included via wildcard expansion with a lower extension priority that have\n * already been included.\n *\n * @param file The path to the file.\n * @param extensionPriority The priority of the extension.\n * @param context The expansion context.\n */\n function removeWildcardFilesWithLowerPriorityExtension(file, wildcardFiles, extensions, keyMapper) {\n var extensionPriority = ts.getExtensionPriority(file, extensions);\n var nextExtensionPriority = ts.getNextLowestExtensionPriority(extensionPriority, extensions);\n for (var i = nextExtensionPriority; i < extensions.length; i++) {\n var lowerPriorityExtension = extensions[i];\n var lowerPriorityPath = keyMapper(ts.changeExtension(file, lowerPriorityExtension));\n wildcardFiles.delete(lowerPriorityPath);\n }\n }\n /**\n * Produces a cleaned version of compiler options with personally identifying info (aka, paths) removed.\n * Also converts enum values back to strings.\n */\n /* @internal */\n function convertCompilerOptionsForTelemetry(opts) {\n var out = {};\n for (var key in opts) {\n if (opts.hasOwnProperty(key)) {\n var type = getOptionFromName(key);\n if (type !== undefined) { // Ignore unknown options\n out[key] = getOptionValueWithEmptyStrings(opts[key], type);\n }\n }\n }\n return out;\n }\n ts.convertCompilerOptionsForTelemetry = convertCompilerOptionsForTelemetry;\n function getOptionValueWithEmptyStrings(value, option) {\n switch (option.type) {\n case \"object\": // \"paths\". Can't get any useful information from the value since we blank out strings, so just return \"\".\n return \"\";\n case \"string\": // Could be any arbitrary string -- use empty string instead.\n return \"\";\n case \"number\": // Allow numbers, but be sure to check it's actually a number.\n return typeof value === \"number\" ? value : \"\";\n case \"boolean\":\n return typeof value === \"boolean\" ? value : \"\";\n case \"list\":\n var elementType_1 = option.element;\n return ts.isArray(value) ? value.map(function (v) { return getOptionValueWithEmptyStrings(v, elementType_1); }) : \"\";\n default:\n return ts.forEachEntry(option.type, function (optionEnumValue, optionStringValue) {\n if (optionEnumValue === value) {\n return optionStringValue;\n }\n }); // TODO: GH#18217\n }\n }\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function trace(host) {\n host.trace(ts.formatMessage.apply(undefined, arguments));\n }\n ts.trace = trace;\n /* @internal */\n function isTraceEnabled(compilerOptions, host) {\n return !!compilerOptions.traceResolution && host.trace !== undefined;\n }\n ts.isTraceEnabled = isTraceEnabled;\n function withPackageId(packageInfo, r) {\n var packageId;\n if (r && packageInfo) {\n var packageJsonContent = packageInfo.packageJsonContent;\n if (typeof packageJsonContent.name === \"string\" && typeof packageJsonContent.version === \"string\") {\n packageId = {\n name: packageJsonContent.name,\n subModuleName: r.path.slice(packageInfo.packageDirectory.length + ts.directorySeparator.length),\n version: packageJsonContent.version\n };\n }\n }\n return r && { path: r.path, extension: r.ext, packageId: packageId };\n }\n function noPackageId(r) {\n return withPackageId(/*packageInfo*/ undefined, r);\n }\n function removeIgnoredPackageId(r) {\n if (r) {\n ts.Debug.assert(r.packageId === undefined);\n return { path: r.path, ext: r.extension };\n }\n }\n /**\n * Kinds of file that we are currently looking for.\n * Typically there is one pass with Extensions.TypeScript, then a second pass with Extensions.JavaScript.\n */\n var Extensions;\n (function (Extensions) {\n Extensions[Extensions[\"TypeScript\"] = 0] = \"TypeScript\";\n Extensions[Extensions[\"JavaScript\"] = 1] = \"JavaScript\";\n Extensions[Extensions[\"Json\"] = 2] = \"Json\";\n Extensions[Extensions[\"TSConfig\"] = 3] = \"TSConfig\";\n Extensions[Extensions[\"DtsOnly\"] = 4] = \"DtsOnly\"; /** Only '.d.ts' */\n })(Extensions || (Extensions = {}));\n /** Used with `Extensions.DtsOnly` to extract the path from TypeScript results. */\n function resolvedTypeScriptOnly(resolved) {\n if (!resolved) {\n return undefined;\n }\n ts.Debug.assert(ts.extensionIsTS(resolved.extension));\n return { fileName: resolved.path, packageId: resolved.packageId };\n }\n function createResolvedModuleWithFailedLookupLocations(resolved, isExternalLibraryImport, failedLookupLocations, resultFromCache) {\n var _a;\n if (resultFromCache) {\n (_a = resultFromCache.failedLookupLocations).push.apply(_a, failedLookupLocations);\n return resultFromCache;\n }\n return {\n resolvedModule: resolved && { resolvedFileName: resolved.path, originalPath: resolved.originalPath === true ? undefined : resolved.originalPath, extension: resolved.extension, isExternalLibraryImport: isExternalLibraryImport, packageId: resolved.packageId },\n failedLookupLocations: failedLookupLocations\n };\n }\n function readPackageJsonField(jsonContent, fieldName, typeOfTag, state) {\n if (!ts.hasProperty(jsonContent, fieldName)) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_does_not_have_a_0_field, fieldName);\n }\n return;\n }\n var value = jsonContent[fieldName];\n if (typeof value !== typeOfTag || value === null) { // eslint-disable-line no-null/no-null\n if (state.traceEnabled) {\n // eslint-disable-next-line no-null/no-null\n trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, fieldName, typeOfTag, value === null ? \"null\" : typeof value);\n }\n return;\n }\n return value;\n }\n function readPackageJsonPathField(jsonContent, fieldName, baseDirectory, state) {\n var fileName = readPackageJsonField(jsonContent, fieldName, \"string\", state);\n if (fileName === undefined) {\n return;\n }\n if (!fileName) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_had_a_falsy_0_field, fieldName);\n }\n return;\n }\n var path = ts.normalizePath(ts.combinePaths(baseDirectory, fileName));\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_has_0_field_1_that_references_2, fieldName, fileName, path);\n }\n return path;\n }\n function readPackageJsonTypesFields(jsonContent, baseDirectory, state) {\n return readPackageJsonPathField(jsonContent, \"typings\", baseDirectory, state)\n || readPackageJsonPathField(jsonContent, \"types\", baseDirectory, state);\n }\n function readPackageJsonTSConfigField(jsonContent, baseDirectory, state) {\n return readPackageJsonPathField(jsonContent, \"tsconfig\", baseDirectory, state);\n }\n function readPackageJsonMainField(jsonContent, baseDirectory, state) {\n return readPackageJsonPathField(jsonContent, \"main\", baseDirectory, state);\n }\n function readPackageJsonTypesVersionsField(jsonContent, state) {\n var typesVersions = readPackageJsonField(jsonContent, \"typesVersions\", \"object\", state);\n if (typesVersions === undefined)\n return;\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_field_with_version_specific_path_mappings);\n }\n return typesVersions;\n }\n function readPackageJsonTypesVersionPaths(jsonContent, state) {\n var typesVersions = readPackageJsonTypesVersionsField(jsonContent, state);\n if (typesVersions === undefined)\n return;\n if (state.traceEnabled) {\n for (var key in typesVersions) {\n if (ts.hasProperty(typesVersions, key) && !ts.VersionRange.tryParse(key)) {\n trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_is_not_a_valid_semver_range, key);\n }\n }\n }\n var result = getPackageJsonTypesVersionsPaths(typesVersions);\n if (!result) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_does_not_have_a_typesVersions_entry_that_matches_version_0, ts.versionMajorMinor);\n }\n return;\n }\n var bestVersionKey = result.version, bestVersionPaths = result.paths;\n if (typeof bestVersionPaths !== \"object\") {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Expected_type_of_0_field_in_package_json_to_be_1_got_2, \"typesVersions['\" + bestVersionKey + \"']\", \"object\", typeof bestVersionPaths);\n }\n return;\n }\n return result;\n }\n var typeScriptVersion;\n /* @internal */\n function getPackageJsonTypesVersionsPaths(typesVersions) {\n if (!typeScriptVersion)\n typeScriptVersion = new ts.Version(ts.version);\n for (var key in typesVersions) {\n if (!ts.hasProperty(typesVersions, key))\n continue;\n var keyRange = ts.VersionRange.tryParse(key);\n if (keyRange === undefined) {\n continue;\n }\n // return the first entry whose range matches the current compiler version.\n if (keyRange.test(typeScriptVersion)) {\n return { version: key, paths: typesVersions[key] };\n }\n }\n }\n ts.getPackageJsonTypesVersionsPaths = getPackageJsonTypesVersionsPaths;\n function getEffectiveTypeRoots(options, host) {\n if (options.typeRoots) {\n return options.typeRoots;\n }\n var currentDirectory;\n if (options.configFilePath) {\n currentDirectory = ts.getDirectoryPath(options.configFilePath);\n }\n else if (host.getCurrentDirectory) {\n currentDirectory = host.getCurrentDirectory();\n }\n if (currentDirectory !== undefined) {\n return getDefaultTypeRoots(currentDirectory, host);\n }\n }\n ts.getEffectiveTypeRoots = getEffectiveTypeRoots;\n /**\n * Returns the path to every node_modules/@types directory from some ancestor directory.\n * Returns undefined if there are none.\n */\n function getDefaultTypeRoots(currentDirectory, host) {\n if (!host.directoryExists) {\n return [ts.combinePaths(currentDirectory, nodeModulesAtTypes)];\n // And if it doesn't exist, tough.\n }\n var typeRoots;\n ts.forEachAncestorDirectory(ts.normalizePath(currentDirectory), function (directory) {\n var atTypes = ts.combinePaths(directory, nodeModulesAtTypes);\n if (host.directoryExists(atTypes)) {\n (typeRoots || (typeRoots = [])).push(atTypes);\n }\n return undefined;\n });\n return typeRoots;\n }\n var nodeModulesAtTypes = ts.combinePaths(\"node_modules\", \"@types\");\n /**\n * @param {string | undefined} containingFile - file that contains type reference directive, can be undefined if containing file is unknown.\n * This is possible in case if resolution is performed for directives specified via 'types' parameter. In this case initial path for secondary lookups\n * is assumed to be the same as root directory of the project.\n */\n function resolveTypeReferenceDirective(typeReferenceDirectiveName, containingFile, options, host, redirectedReference, cache) {\n var traceEnabled = isTraceEnabled(options, host);\n if (redirectedReference) {\n options = redirectedReference.commandLine.options;\n }\n var containingDirectory = containingFile ? ts.getDirectoryPath(containingFile) : undefined;\n var perFolderCache = containingDirectory ? cache && cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference) : undefined;\n var result = perFolderCache && perFolderCache.get(typeReferenceDirectiveName);\n if (result) {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Resolving_type_reference_directive_0_containing_file_1, typeReferenceDirectiveName, containingFile);\n if (redirectedReference)\n trace(host, ts.Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName);\n trace(host, ts.Diagnostics.Resolution_for_type_reference_directive_0_was_found_in_cache_from_location_1, typeReferenceDirectiveName, containingDirectory);\n traceResult(result);\n }\n return result;\n }\n var typeRoots = getEffectiveTypeRoots(options, host);\n if (traceEnabled) {\n if (containingFile === undefined) {\n if (typeRoots === undefined) {\n trace(host, ts.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_not_set, typeReferenceDirectiveName);\n }\n else {\n trace(host, ts.Diagnostics.Resolving_type_reference_directive_0_containing_file_not_set_root_directory_1, typeReferenceDirectiveName, typeRoots);\n }\n }\n else {\n if (typeRoots === undefined) {\n trace(host, ts.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_not_set, typeReferenceDirectiveName, containingFile);\n }\n else {\n trace(host, ts.Diagnostics.Resolving_type_reference_directive_0_containing_file_1_root_directory_2, typeReferenceDirectiveName, containingFile, typeRoots);\n }\n }\n if (redirectedReference) {\n trace(host, ts.Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName);\n }\n }\n var failedLookupLocations = [];\n var moduleResolutionState = { compilerOptions: options, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache };\n var resolved = primaryLookup();\n var primary = true;\n if (!resolved) {\n resolved = secondaryLookup();\n primary = false;\n }\n var resolvedTypeReferenceDirective;\n if (resolved) {\n var fileName = resolved.fileName, packageId = resolved.packageId;\n var resolvedFileName = options.preserveSymlinks ? fileName : realPath(fileName, host, traceEnabled);\n resolvedTypeReferenceDirective = {\n primary: primary,\n resolvedFileName: resolvedFileName,\n originalPath: fileName === resolvedFileName ? undefined : fileName,\n packageId: packageId,\n isExternalLibraryImport: pathContainsNodeModules(fileName),\n };\n }\n result = { resolvedTypeReferenceDirective: resolvedTypeReferenceDirective, failedLookupLocations: failedLookupLocations };\n perFolderCache === null || perFolderCache === void 0 ? void 0 : perFolderCache.set(typeReferenceDirectiveName, result);\n if (traceEnabled)\n traceResult(result);\n return result;\n function traceResult(result) {\n var _a;\n if (!((_a = result.resolvedTypeReferenceDirective) === null || _a === void 0 ? void 0 : _a.resolvedFileName)) {\n trace(host, ts.Diagnostics.Type_reference_directive_0_was_not_resolved, typeReferenceDirectiveName);\n }\n else if (result.resolvedTypeReferenceDirective.packageId) {\n trace(host, ts.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_with_Package_ID_2_primary_Colon_3, typeReferenceDirectiveName, result.resolvedTypeReferenceDirective.resolvedFileName, ts.packageIdToString(result.resolvedTypeReferenceDirective.packageId), result.resolvedTypeReferenceDirective.primary);\n }\n else {\n trace(host, ts.Diagnostics.Type_reference_directive_0_was_successfully_resolved_to_1_primary_Colon_2, typeReferenceDirectiveName, result.resolvedTypeReferenceDirective.resolvedFileName, result.resolvedTypeReferenceDirective.primary);\n }\n }\n function primaryLookup() {\n // Check primary library paths\n if (typeRoots && typeRoots.length) {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Resolving_with_primary_search_path_0, typeRoots.join(\", \"));\n }\n return ts.firstDefined(typeRoots, function (typeRoot) {\n var candidate = ts.combinePaths(typeRoot, typeReferenceDirectiveName);\n var candidateDirectory = ts.getDirectoryPath(candidate);\n var directoryExists = ts.directoryProbablyExists(candidateDirectory, host);\n if (!directoryExists && traceEnabled) {\n trace(host, ts.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidateDirectory);\n }\n return resolvedTypeScriptOnly(loadNodeModuleFromDirectory(Extensions.DtsOnly, candidate, !directoryExists, moduleResolutionState));\n });\n }\n else {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Root_directory_cannot_be_determined_skipping_primary_search_paths);\n }\n }\n }\n function secondaryLookup() {\n var initialLocationForSecondaryLookup = containingFile && ts.getDirectoryPath(containingFile);\n if (initialLocationForSecondaryLookup !== undefined) {\n // check secondary locations\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Looking_up_in_node_modules_folder_initial_location_0, initialLocationForSecondaryLookup);\n }\n var result_4;\n if (!ts.isExternalModuleNameRelative(typeReferenceDirectiveName)) {\n var searchResult = loadModuleFromNearestNodeModulesDirectory(Extensions.DtsOnly, typeReferenceDirectiveName, initialLocationForSecondaryLookup, moduleResolutionState, /*cache*/ undefined, /*redirectedReference*/ undefined);\n result_4 = searchResult && searchResult.value;\n }\n else {\n var candidate = ts.normalizePathAndParts(ts.combinePaths(initialLocationForSecondaryLookup, typeReferenceDirectiveName)).path;\n result_4 = nodeLoadModuleByRelativeName(Extensions.DtsOnly, candidate, /*onlyRecordFailures*/ false, moduleResolutionState, /*considerPackageJson*/ true);\n }\n return resolvedTypeScriptOnly(result_4);\n }\n else {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Containing_file_is_not_specified_and_root_directory_cannot_be_determined_skipping_lookup_in_node_modules_folder);\n }\n }\n }\n }\n ts.resolveTypeReferenceDirective = resolveTypeReferenceDirective;\n /**\n * Given a set of options, returns the set of type directive names\n * that should be included for this program automatically.\n * This list could either come from the config file,\n * or from enumerating the types root + initial secondary types lookup location.\n * More type directives might appear in the program later as a result of loading actual source files;\n * this list is only the set of defaults that are implicitly included.\n */\n function getAutomaticTypeDirectiveNames(options, host) {\n // Use explicit type list from tsconfig.json\n if (options.types) {\n return options.types;\n }\n // Walk the primary type lookup locations\n var result = [];\n if (host.directoryExists && host.getDirectories) {\n var typeRoots = getEffectiveTypeRoots(options, host);\n if (typeRoots) {\n for (var _i = 0, typeRoots_1 = typeRoots; _i < typeRoots_1.length; _i++) {\n var root = typeRoots_1[_i];\n if (host.directoryExists(root)) {\n for (var _a = 0, _b = host.getDirectories(root); _a < _b.length; _a++) {\n var typeDirectivePath = _b[_a];\n var normalized = ts.normalizePath(typeDirectivePath);\n var packageJsonPath = ts.combinePaths(root, normalized, \"package.json\");\n // `types-publisher` sometimes creates packages with `\"typings\": null` for packages that don't provide their own types.\n // See `createNotNeededPackageJSON` in the types-publisher` repo.\n // eslint-disable-next-line no-null/no-null\n var isNotNeededPackage = host.fileExists(packageJsonPath) && ts.readJson(packageJsonPath, host).typings === null;\n if (!isNotNeededPackage) {\n var baseFileName = ts.getBaseFileName(normalized);\n // At this stage, skip results with leading dot.\n if (baseFileName.charCodeAt(0) !== 46 /* dot */) {\n // Return just the type directive names\n result.push(baseFileName);\n }\n }\n }\n }\n }\n }\n }\n return result;\n }\n ts.getAutomaticTypeDirectiveNames = getAutomaticTypeDirectiveNames;\n /*@internal*/\n function createCacheWithRedirects(options) {\n var ownMap = new ts.Map();\n var redirectsMap = new ts.Map();\n return {\n getOwnMap: getOwnMap,\n redirectsMap: redirectsMap,\n getOrCreateMapOfCacheRedirects: getOrCreateMapOfCacheRedirects,\n clear: clear,\n setOwnOptions: setOwnOptions,\n setOwnMap: setOwnMap\n };\n function getOwnMap() {\n return ownMap;\n }\n function setOwnOptions(newOptions) {\n options = newOptions;\n }\n function setOwnMap(newOwnMap) {\n ownMap = newOwnMap;\n }\n function getOrCreateMapOfCacheRedirects(redirectedReference) {\n if (!redirectedReference) {\n return ownMap;\n }\n var path = redirectedReference.sourceFile.path;\n var redirects = redirectsMap.get(path);\n if (!redirects) {\n // Reuse map if redirected reference map uses same resolution\n redirects = !options || ts.optionsHaveModuleResolutionChanges(options, redirectedReference.commandLine.options) ? new ts.Map() : ownMap;\n redirectsMap.set(path, redirects);\n }\n return redirects;\n }\n function clear() {\n ownMap.clear();\n redirectsMap.clear();\n }\n }\n ts.createCacheWithRedirects = createCacheWithRedirects;\n function createPackageJsonInfoCache(currentDirectory, getCanonicalFileName) {\n var cache;\n return { getPackageJsonInfo: getPackageJsonInfo, setPackageJsonInfo: setPackageJsonInfo, clear: clear, entries: entries };\n function getPackageJsonInfo(packageJsonPath) {\n return cache === null || cache === void 0 ? void 0 : cache.get(ts.toPath(packageJsonPath, currentDirectory, getCanonicalFileName));\n }\n function setPackageJsonInfo(packageJsonPath, info) {\n (cache || (cache = new ts.Map())).set(ts.toPath(packageJsonPath, currentDirectory, getCanonicalFileName), info);\n }\n function clear() {\n cache = undefined;\n }\n function entries() {\n var iter = cache === null || cache === void 0 ? void 0 : cache.entries();\n return iter ? ts.arrayFrom(iter) : [];\n }\n }\n function getOrCreateCache(cacheWithRedirects, redirectedReference, key, create) {\n var cache = cacheWithRedirects.getOrCreateMapOfCacheRedirects(redirectedReference);\n var result = cache.get(key);\n if (!result) {\n result = create();\n cache.set(key, result);\n }\n return result;\n }\n function updateRedirectsMap(options, directoryToModuleNameMap, moduleNameToDirectoryMap) {\n if (!options.configFile)\n return;\n if (directoryToModuleNameMap.redirectsMap.size === 0) {\n // The own map will be for projectCompilerOptions\n ts.Debug.assert(!moduleNameToDirectoryMap || moduleNameToDirectoryMap.redirectsMap.size === 0);\n ts.Debug.assert(directoryToModuleNameMap.getOwnMap().size === 0);\n ts.Debug.assert(!moduleNameToDirectoryMap || moduleNameToDirectoryMap.getOwnMap().size === 0);\n directoryToModuleNameMap.redirectsMap.set(options.configFile.path, directoryToModuleNameMap.getOwnMap());\n moduleNameToDirectoryMap === null || moduleNameToDirectoryMap === void 0 ? void 0 : moduleNameToDirectoryMap.redirectsMap.set(options.configFile.path, moduleNameToDirectoryMap.getOwnMap());\n }\n else {\n // Set correct own map\n ts.Debug.assert(!moduleNameToDirectoryMap || moduleNameToDirectoryMap.redirectsMap.size > 0);\n var ref = {\n sourceFile: options.configFile,\n commandLine: { options: options }\n };\n directoryToModuleNameMap.setOwnMap(directoryToModuleNameMap.getOrCreateMapOfCacheRedirects(ref));\n moduleNameToDirectoryMap === null || moduleNameToDirectoryMap === void 0 ? void 0 : moduleNameToDirectoryMap.setOwnMap(moduleNameToDirectoryMap.getOrCreateMapOfCacheRedirects(ref));\n }\n directoryToModuleNameMap.setOwnOptions(options);\n moduleNameToDirectoryMap === null || moduleNameToDirectoryMap === void 0 ? void 0 : moduleNameToDirectoryMap.setOwnOptions(options);\n }\n function createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap) {\n return {\n getOrCreateCacheForDirectory: getOrCreateCacheForDirectory,\n clear: clear,\n update: update,\n };\n function clear() {\n directoryToModuleNameMap.clear();\n }\n function update(options) {\n updateRedirectsMap(options, directoryToModuleNameMap);\n }\n function getOrCreateCacheForDirectory(directoryName, redirectedReference) {\n var path = ts.toPath(directoryName, currentDirectory, getCanonicalFileName);\n return getOrCreateCache(directoryToModuleNameMap, redirectedReference, path, function () { return new ts.Map(); });\n }\n }\n function createModuleResolutionCache(currentDirectory, getCanonicalFileName, options, directoryToModuleNameMap, moduleNameToDirectoryMap) {\n var preDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap || (directoryToModuleNameMap = createCacheWithRedirects(options)));\n moduleNameToDirectoryMap || (moduleNameToDirectoryMap = createCacheWithRedirects(options));\n var packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName);\n return __assign(__assign(__assign({}, packageJsonInfoCache), preDirectoryResolutionCache), { getOrCreateCacheForModuleName: getOrCreateCacheForModuleName, clear: clear, update: update, getPackageJsonInfoCache: function () { return packageJsonInfoCache; } });\n function clear() {\n preDirectoryResolutionCache.clear();\n moduleNameToDirectoryMap.clear();\n packageJsonInfoCache.clear();\n }\n function update(options) {\n updateRedirectsMap(options, directoryToModuleNameMap, moduleNameToDirectoryMap);\n }\n function getOrCreateCacheForModuleName(nonRelativeModuleName, redirectedReference) {\n ts.Debug.assert(!ts.isExternalModuleNameRelative(nonRelativeModuleName));\n return getOrCreateCache(moduleNameToDirectoryMap, redirectedReference, nonRelativeModuleName, createPerModuleNameCache);\n }\n function createPerModuleNameCache() {\n var directoryPathMap = new ts.Map();\n return { get: get, set: set };\n function get(directory) {\n return directoryPathMap.get(ts.toPath(directory, currentDirectory, getCanonicalFileName));\n }\n /**\n * At first this function add entry directory -> module resolution result to the table.\n * Then it computes the set of parent folders for 'directory' that should have the same module resolution result\n * and for every parent folder in set it adds entry: parent -> module resolution. .\n * Lets say we first directory name: /a/b/c/d/e and resolution result is: /a/b/bar.ts.\n * Set of parent folders that should have the same result will be:\n * [\n * /a/b/c/d, /a/b/c, /a/b\n * ]\n * this means that request for module resolution from file in any of these folder will be immediately found in cache.\n */\n function set(directory, result) {\n var path = ts.toPath(directory, currentDirectory, getCanonicalFileName);\n // if entry is already in cache do nothing\n if (directoryPathMap.has(path)) {\n return;\n }\n directoryPathMap.set(path, result);\n var resolvedFileName = result.resolvedModule &&\n (result.resolvedModule.originalPath || result.resolvedModule.resolvedFileName);\n // find common prefix between directory and resolved file name\n // this common prefix should be the shortest path that has the same resolution\n // directory: /a/b/c/d/e\n // resolvedFileName: /a/b/foo.d.ts\n // commonPrefix: /a/b\n // for failed lookups cache the result for every directory up to root\n var commonPrefix = resolvedFileName && getCommonPrefix(path, resolvedFileName);\n var current = path;\n while (current !== commonPrefix) {\n var parent = ts.getDirectoryPath(current);\n if (parent === current || directoryPathMap.has(parent)) {\n break;\n }\n directoryPathMap.set(parent, result);\n current = parent;\n }\n }\n function getCommonPrefix(directory, resolution) {\n var resolutionDirectory = ts.toPath(ts.getDirectoryPath(resolution), currentDirectory, getCanonicalFileName);\n // find first position where directory and resolution differs\n var i = 0;\n var limit = Math.min(directory.length, resolutionDirectory.length);\n while (i < limit && directory.charCodeAt(i) === resolutionDirectory.charCodeAt(i)) {\n i++;\n }\n if (i === directory.length && (resolutionDirectory.length === i || resolutionDirectory[i] === ts.directorySeparator)) {\n return directory;\n }\n var rootLength = ts.getRootLength(directory);\n if (i < rootLength) {\n return undefined;\n }\n var sep = directory.lastIndexOf(ts.directorySeparator, i - 1);\n if (sep === -1) {\n return undefined;\n }\n return directory.substr(0, Math.max(sep, rootLength));\n }\n }\n }\n ts.createModuleResolutionCache = createModuleResolutionCache;\n function createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, options, packageJsonInfoCache, directoryToModuleNameMap) {\n var preDirectoryResolutionCache = createPerDirectoryResolutionCache(currentDirectory, getCanonicalFileName, directoryToModuleNameMap || (directoryToModuleNameMap = createCacheWithRedirects(options)));\n packageJsonInfoCache || (packageJsonInfoCache = createPackageJsonInfoCache(currentDirectory, getCanonicalFileName));\n return __assign(__assign(__assign({}, packageJsonInfoCache), preDirectoryResolutionCache), { clear: clear });\n function clear() {\n preDirectoryResolutionCache.clear();\n packageJsonInfoCache.clear();\n }\n }\n ts.createTypeReferenceDirectiveResolutionCache = createTypeReferenceDirectiveResolutionCache;\n function resolveModuleNameFromCache(moduleName, containingFile, cache) {\n var containingDirectory = ts.getDirectoryPath(containingFile);\n var perFolderCache = cache && cache.getOrCreateCacheForDirectory(containingDirectory);\n return perFolderCache && perFolderCache.get(moduleName);\n }\n ts.resolveModuleNameFromCache = resolveModuleNameFromCache;\n function resolveModuleName(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) {\n var traceEnabled = isTraceEnabled(compilerOptions, host);\n if (redirectedReference) {\n compilerOptions = redirectedReference.commandLine.options;\n }\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Resolving_module_0_from_1, moduleName, containingFile);\n if (redirectedReference) {\n trace(host, ts.Diagnostics.Using_compiler_options_of_project_reference_redirect_0, redirectedReference.sourceFile.fileName);\n }\n }\n var containingDirectory = ts.getDirectoryPath(containingFile);\n var perFolderCache = cache && cache.getOrCreateCacheForDirectory(containingDirectory, redirectedReference);\n var result = perFolderCache && perFolderCache.get(moduleName);\n if (result) {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory);\n }\n }\n else {\n var moduleResolution = compilerOptions.moduleResolution;\n if (moduleResolution === undefined) {\n moduleResolution = ts.getEmitModuleKind(compilerOptions) === ts.ModuleKind.CommonJS ? ts.ModuleResolutionKind.NodeJs : ts.ModuleResolutionKind.Classic;\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Module_resolution_kind_is_not_specified_using_0, ts.ModuleResolutionKind[moduleResolution]);\n }\n }\n else {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Explicitly_specified_module_resolution_kind_Colon_0, ts.ModuleResolutionKind[moduleResolution]);\n }\n }\n ts.perfLogger.logStartResolveModule(moduleName /* , containingFile, ModuleResolutionKind[moduleResolution]*/);\n switch (moduleResolution) {\n case ts.ModuleResolutionKind.NodeJs:\n result = nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);\n break;\n case ts.ModuleResolutionKind.Classic:\n result = classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference);\n break;\n default:\n return ts.Debug.fail(\"Unexpected moduleResolution: \" + moduleResolution);\n }\n if (result && result.resolvedModule)\n ts.perfLogger.logInfoEvent(\"Module \\\"\" + moduleName + \"\\\" resolved to \\\"\" + result.resolvedModule.resolvedFileName + \"\\\"\");\n ts.perfLogger.logStopResolveModule((result && result.resolvedModule) ? \"\" + result.resolvedModule.resolvedFileName : \"null\");\n if (perFolderCache) {\n perFolderCache.set(moduleName, result);\n if (!ts.isExternalModuleNameRelative(moduleName)) {\n // put result in per-module name cache\n cache.getOrCreateCacheForModuleName(moduleName, redirectedReference).set(containingDirectory, result);\n }\n }\n }\n if (traceEnabled) {\n if (result.resolvedModule) {\n if (result.resolvedModule.packageId) {\n trace(host, ts.Diagnostics.Module_name_0_was_successfully_resolved_to_1_with_Package_ID_2, moduleName, result.resolvedModule.resolvedFileName, ts.packageIdToString(result.resolvedModule.packageId));\n }\n else {\n trace(host, ts.Diagnostics.Module_name_0_was_successfully_resolved_to_1, moduleName, result.resolvedModule.resolvedFileName);\n }\n }\n else {\n trace(host, ts.Diagnostics.Module_name_0_was_not_resolved, moduleName);\n }\n }\n return result;\n }\n ts.resolveModuleName = resolveModuleName;\n /**\n * Any module resolution kind can be augmented with optional settings: 'baseUrl', 'paths' and 'rootDirs' - they are used to\n * mitigate differences between design time structure of the project and its runtime counterpart so the same import name\n * can be resolved successfully by TypeScript compiler and runtime module loader.\n * If these settings are set then loading procedure will try to use them to resolve module name and it can of failure it will\n * fallback to standard resolution routine.\n *\n * - baseUrl - this setting controls how non-relative module names are resolved. If this setting is specified then non-relative\n * names will be resolved relative to baseUrl: i.e. if baseUrl is '/a/b' then candidate location to resolve module name 'c/d' will\n * be '/a/b/c/d'\n * - paths - this setting can only be used when baseUrl is specified. allows to tune how non-relative module names\n * will be resolved based on the content of the module name.\n * Structure of 'paths' compiler options\n * 'paths': {\n * pattern-1: [...substitutions],\n * pattern-2: [...substitutions],\n * ...\n * pattern-n: [...substitutions]\n * }\n * Pattern here is a string that can contain zero or one '*' character. During module resolution module name will be matched against\n * all patterns in the list. Matching for patterns that don't contain '*' means that module name must be equal to pattern respecting the case.\n * If pattern contains '*' then to match pattern \"*\" module name must start with the and end with .\n * denotes part of the module name between and .\n * If module name can be matches with multiple patterns then pattern with the longest prefix will be picked.\n * After selecting pattern we'll use list of substitutions to get candidate locations of the module and the try to load module\n * from the candidate location.\n * Substitution is a string that can contain zero or one '*'. To get candidate location from substitution we'll pick every\n * substitution in the list and replace '*' with string. If candidate location is not rooted it\n * will be converted to absolute using baseUrl.\n * For example:\n * baseUrl: /a/b/c\n * \"paths\": {\n * // match all module names\n * \"*\": [\n * \"*\", // use matched name as is,\n * // will be looked as /a/b/c/\n *\n * \"folder1/*\" // substitution will convert matched name to 'folder1/',\n * // since it is not rooted then final candidate location will be /a/b/c/folder1/\n * ],\n * // match module names that start with 'components/'\n * \"components/*\": [ \"/root/components/*\" ] // substitution will convert /components/folder1/ to '/root/components/folder1/',\n * // it is rooted so it will be final candidate location\n * }\n *\n * 'rootDirs' allows the project to be spreaded across multiple locations and resolve modules with relative names as if\n * they were in the same location. For example lets say there are two files\n * '/local/src/content/file1.ts'\n * '/shared/components/contracts/src/content/protocols/file2.ts'\n * After bundling content of '/shared/components/contracts/src' will be merged with '/local/src' so\n * if file1 has the following import 'import {x} from \"./protocols/file2\"' it will be resolved successfully in runtime.\n * 'rootDirs' provides the way to tell compiler that in order to get the whole project it should behave as if content of all\n * root dirs were merged together.\n * I.e. for the example above 'rootDirs' will have two entries: [ '/local/src', '/shared/components/contracts/src' ].\n * Compiler will first convert './protocols/file2' into absolute path relative to the location of containing file:\n * '/local/src/content/protocols/file2' and try to load it - failure.\n * Then it will search 'rootDirs' looking for a longest matching prefix of this absolute path and if such prefix is found - absolute path will\n * be converted to a path relative to found rootDir entry './content/protocols/file2' (*). As a last step compiler will check all remaining\n * entries in 'rootDirs', use them to build absolute path out of (*) and try to resolve module from this location.\n */\n function tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loader, state) {\n var resolved = tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state);\n if (resolved)\n return resolved.value;\n if (!ts.isExternalModuleNameRelative(moduleName)) {\n return tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state);\n }\n else {\n return tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state);\n }\n }\n function tryLoadModuleUsingPathsIfEligible(extensions, moduleName, loader, state) {\n var _a;\n var _b = state.compilerOptions, baseUrl = _b.baseUrl, paths = _b.paths, configFile = _b.configFile;\n if (paths && !ts.pathIsRelative(moduleName)) {\n if (state.traceEnabled) {\n if (baseUrl) {\n trace(state.host, ts.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName);\n }\n trace(state.host, ts.Diagnostics.paths_option_is_specified_looking_for_a_pattern_to_match_module_name_0, moduleName);\n }\n var baseDirectory = ts.getPathsBasePath(state.compilerOptions, state.host); // Always defined when 'paths' is defined\n var pathPatterns = (configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) ? (_a = configFile.configFileSpecs).pathPatterns || (_a.pathPatterns = ts.tryParsePatterns(paths)) : undefined;\n return tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, /*onlyRecordFailures*/ false, state);\n }\n }\n function tryLoadModuleUsingRootDirs(extensions, moduleName, containingDirectory, loader, state) {\n if (!state.compilerOptions.rootDirs) {\n return undefined;\n }\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.rootDirs_option_is_set_using_it_to_resolve_relative_module_name_0, moduleName);\n }\n var candidate = ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));\n var matchedRootDir;\n var matchedNormalizedPrefix;\n for (var _i = 0, _a = state.compilerOptions.rootDirs; _i < _a.length; _i++) {\n var rootDir = _a[_i];\n // rootDirs are expected to be absolute\n // in case of tsconfig.json this will happen automatically - compiler will expand relative names\n // using location of tsconfig.json as base location\n var normalizedRoot = ts.normalizePath(rootDir);\n if (!ts.endsWith(normalizedRoot, ts.directorySeparator)) {\n normalizedRoot += ts.directorySeparator;\n }\n var isLongestMatchingPrefix = ts.startsWith(candidate, normalizedRoot) &&\n (matchedNormalizedPrefix === undefined || matchedNormalizedPrefix.length < normalizedRoot.length);\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Checking_if_0_is_the_longest_matching_prefix_for_1_2, normalizedRoot, candidate, isLongestMatchingPrefix);\n }\n if (isLongestMatchingPrefix) {\n matchedNormalizedPrefix = normalizedRoot;\n matchedRootDir = rootDir;\n }\n }\n if (matchedNormalizedPrefix) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Longest_matching_prefix_for_0_is_1, candidate, matchedNormalizedPrefix);\n }\n var suffix = candidate.substr(matchedNormalizedPrefix.length);\n // first - try to load from a initial location\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, matchedNormalizedPrefix, candidate);\n }\n var resolvedFileName = loader(extensions, candidate, !ts.directoryProbablyExists(containingDirectory, state.host), state);\n if (resolvedFileName) {\n return resolvedFileName;\n }\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Trying_other_entries_in_rootDirs);\n }\n // then try to resolve using remaining entries in rootDirs\n for (var _b = 0, _c = state.compilerOptions.rootDirs; _b < _c.length; _b++) {\n var rootDir = _c[_b];\n if (rootDir === matchedRootDir) {\n // skip the initially matched entry\n continue;\n }\n var candidate_1 = ts.combinePaths(ts.normalizePath(rootDir), suffix);\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Loading_0_from_the_root_dir_1_candidate_location_2, suffix, rootDir, candidate_1);\n }\n var baseDirectory = ts.getDirectoryPath(candidate_1);\n var resolvedFileName_1 = loader(extensions, candidate_1, !ts.directoryProbablyExists(baseDirectory, state.host), state);\n if (resolvedFileName_1) {\n return resolvedFileName_1;\n }\n }\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Module_resolution_using_rootDirs_has_failed);\n }\n }\n return undefined;\n }\n function tryLoadModuleUsingBaseUrl(extensions, moduleName, loader, state) {\n var baseUrl = state.compilerOptions.baseUrl;\n if (!baseUrl) {\n return undefined;\n }\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.baseUrl_option_is_set_to_0_using_this_value_to_resolve_non_relative_module_name_1, baseUrl, moduleName);\n }\n var candidate = ts.normalizePath(ts.combinePaths(baseUrl, moduleName));\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Resolving_module_name_0_relative_to_base_url_1_2, moduleName, baseUrl, candidate);\n }\n return loader(extensions, candidate, !ts.directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);\n }\n /**\n * Expose resolution logic to allow us to use Node module resolution logic from arbitrary locations.\n * No way to do this with `require()`: https://github.com/nodejs/node/issues/5963\n * Throws an error if the module can't be resolved.\n */\n /* @internal */\n function resolveJSModule(moduleName, initialDir, host) {\n var _a = tryResolveJSModuleWorker(moduleName, initialDir, host), resolvedModule = _a.resolvedModule, failedLookupLocations = _a.failedLookupLocations;\n if (!resolvedModule) {\n throw new Error(\"Could not resolve JS module '\" + moduleName + \"' starting at '\" + initialDir + \"'. Looked in: \" + failedLookupLocations.join(\", \"));\n }\n return resolvedModule.resolvedFileName;\n }\n ts.resolveJSModule = resolveJSModule;\n /* @internal */\n function tryResolveJSModule(moduleName, initialDir, host) {\n var resolvedModule = tryResolveJSModuleWorker(moduleName, initialDir, host).resolvedModule;\n return resolvedModule && resolvedModule.resolvedFileName;\n }\n ts.tryResolveJSModule = tryResolveJSModule;\n var jsOnlyExtensions = [Extensions.JavaScript];\n var tsExtensions = [Extensions.TypeScript, Extensions.JavaScript];\n var tsPlusJsonExtensions = __spreadArray(__spreadArray([], tsExtensions, true), [Extensions.Json], false);\n var tsconfigExtensions = [Extensions.TSConfig];\n function tryResolveJSModuleWorker(moduleName, initialDir, host) {\n return nodeModuleNameResolverWorker(moduleName, initialDir, { moduleResolution: ts.ModuleResolutionKind.NodeJs, allowJs: true }, host, /*cache*/ undefined, jsOnlyExtensions, /*redirectedReferences*/ undefined);\n }\n function nodeModuleNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference, lookupConfig) {\n return nodeModuleNameResolverWorker(moduleName, ts.getDirectoryPath(containingFile), compilerOptions, host, cache, lookupConfig ? tsconfigExtensions : (compilerOptions.resolveJsonModule ? tsPlusJsonExtensions : tsExtensions), redirectedReference);\n }\n ts.nodeModuleNameResolver = nodeModuleNameResolver;\n function nodeModuleNameResolverWorker(moduleName, containingDirectory, compilerOptions, host, cache, extensions, redirectedReference) {\n var _a, _b;\n var traceEnabled = isTraceEnabled(compilerOptions, host);\n var failedLookupLocations = [];\n var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache };\n var result = ts.forEach(extensions, function (ext) { return tryResolve(ext); });\n return createResolvedModuleWithFailedLookupLocations((_a = result === null || result === void 0 ? void 0 : result.value) === null || _a === void 0 ? void 0 : _a.resolved, (_b = result === null || result === void 0 ? void 0 : result.value) === null || _b === void 0 ? void 0 : _b.isExternalLibraryImport, failedLookupLocations, state.resultFromCache);\n function tryResolve(extensions) {\n var loader = function (extensions, candidate, onlyRecordFailures, state) { return nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, /*considerPackageJson*/ true); };\n var resolved = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loader, state);\n if (resolved) {\n return toSearchResult({ resolved: resolved, isExternalLibraryImport: pathContainsNodeModules(resolved.path) });\n }\n if (!ts.isExternalModuleNameRelative(moduleName)) {\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Loading_module_0_from_node_modules_folder_target_file_type_1, moduleName, Extensions[extensions]);\n }\n var resolved_1 = loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, containingDirectory, state, cache, redirectedReference);\n if (!resolved_1)\n return undefined;\n var resolvedValue = resolved_1.value;\n if (!compilerOptions.preserveSymlinks && resolvedValue && !resolvedValue.originalPath) {\n var path = realPath(resolvedValue.path, host, traceEnabled);\n var originalPath = path === resolvedValue.path ? undefined : resolvedValue.path;\n resolvedValue = __assign(__assign({}, resolvedValue), { path: path, originalPath: originalPath });\n }\n // For node_modules lookups, get the real path so that multiple accesses to an `npm link`-ed module do not create duplicate files.\n return { value: resolvedValue && { resolved: resolvedValue, isExternalLibraryImport: true } };\n }\n else {\n var _a = ts.normalizePathAndParts(ts.combinePaths(containingDirectory, moduleName)), candidate = _a.path, parts = _a.parts;\n var resolved_2 = nodeLoadModuleByRelativeName(extensions, candidate, /*onlyRecordFailures*/ false, state, /*considerPackageJson*/ true);\n // Treat explicit \"node_modules\" import as an external library import.\n return resolved_2 && toSearchResult({ resolved: resolved_2, isExternalLibraryImport: ts.contains(parts, \"node_modules\") });\n }\n }\n }\n function realPath(path, host, traceEnabled) {\n if (!host.realpath) {\n return path;\n }\n var real = ts.normalizePath(host.realpath(path));\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Resolving_real_path_for_0_result_1, path, real);\n }\n ts.Debug.assert(host.fileExists(real), path + \" linked to nonexistent file \" + real);\n return real;\n }\n function nodeLoadModuleByRelativeName(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Loading_module_as_file_Slash_folder_candidate_module_location_0_target_file_type_1, candidate, Extensions[extensions]);\n }\n if (!ts.hasTrailingDirectorySeparator(candidate)) {\n if (!onlyRecordFailures) {\n var parentOfCandidate = ts.getDirectoryPath(candidate);\n if (!ts.directoryProbablyExists(parentOfCandidate, state.host)) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, parentOfCandidate);\n }\n onlyRecordFailures = true;\n }\n }\n var resolvedFromFile = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state);\n if (resolvedFromFile) {\n var packageDirectory = considerPackageJson ? parseNodeModuleFromPath(resolvedFromFile.path) : undefined;\n var packageInfo = packageDirectory ? getPackageJsonInfo(packageDirectory, /*onlyRecordFailures*/ false, state) : undefined;\n return withPackageId(packageInfo, resolvedFromFile);\n }\n }\n if (!onlyRecordFailures) {\n var candidateExists = ts.directoryProbablyExists(candidate, state.host);\n if (!candidateExists) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, candidate);\n }\n onlyRecordFailures = true;\n }\n }\n return loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson);\n }\n /*@internal*/\n ts.nodeModulesPathPart = \"/node_modules/\";\n /*@internal*/\n function pathContainsNodeModules(path) {\n return ts.stringContains(path, ts.nodeModulesPathPart);\n }\n ts.pathContainsNodeModules = pathContainsNodeModules;\n /**\n * This will be called on the successfully resolved path from `loadModuleFromFile`.\n * (Not needed for `loadModuleFromNodeModules` as that looks up the `package.json` as part of resolution.)\n *\n * packageDirectory is the directory of the package itself.\n * For `blah/node_modules/foo/index.d.ts` this is packageDirectory: \"foo\"\n * For `/node_modules/foo/bar.d.ts` this is packageDirectory: \"foo\"\n * For `/node_modules/@types/foo/bar/index.d.ts` this is packageDirectory: \"@types/foo\"\n * For `/node_modules/foo/bar/index.d.ts` this is packageDirectory: \"foo\"\n */\n /* @internal */\n function parseNodeModuleFromPath(resolved) {\n var path = ts.normalizePath(resolved);\n var idx = path.lastIndexOf(ts.nodeModulesPathPart);\n if (idx === -1) {\n return undefined;\n }\n var indexAfterNodeModules = idx + ts.nodeModulesPathPart.length;\n var indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterNodeModules);\n if (path.charCodeAt(indexAfterNodeModules) === 64 /* at */) {\n indexAfterPackageName = moveToNextDirectorySeparatorIfAvailable(path, indexAfterPackageName);\n }\n return path.slice(0, indexAfterPackageName);\n }\n ts.parseNodeModuleFromPath = parseNodeModuleFromPath;\n function moveToNextDirectorySeparatorIfAvailable(path, prevSeparatorIndex) {\n var nextSeparatorIndex = path.indexOf(ts.directorySeparator, prevSeparatorIndex + 1);\n return nextSeparatorIndex === -1 ? prevSeparatorIndex : nextSeparatorIndex;\n }\n function loadModuleFromFileNoPackageId(extensions, candidate, onlyRecordFailures, state) {\n return noPackageId(loadModuleFromFile(extensions, candidate, onlyRecordFailures, state));\n }\n /**\n * @param {boolean} onlyRecordFailures - if true then function won't try to actually load files but instead record all attempts as failures. This flag is necessary\n * in cases when we know upfront that all load attempts will fail (because containing folder does not exists) however we still need to record all failed lookup locations.\n */\n function loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) {\n if (extensions === Extensions.Json || extensions === Extensions.TSConfig) {\n var extensionLess = ts.tryRemoveExtension(candidate, \".json\" /* Json */);\n return (extensionLess === undefined && extensions === Extensions.Json) ? undefined : tryAddingExtensions(extensionLess || candidate, extensions, onlyRecordFailures, state);\n }\n // First, try adding an extension. An import of \"foo\" could be matched by a file \"foo.ts\", or \"foo.js\" by \"foo.js.ts\"\n var resolvedByAddingExtension = tryAddingExtensions(candidate, extensions, onlyRecordFailures, state);\n if (resolvedByAddingExtension) {\n return resolvedByAddingExtension;\n }\n // If that didn't work, try stripping a \".js\" or \".jsx\" extension and replacing it with a TypeScript one;\n // e.g. \"./foo.js\" can be matched by \"./foo.ts\" or \"./foo.d.ts\"\n if (ts.hasJSFileExtension(candidate)) {\n var extensionless = ts.removeFileExtension(candidate);\n if (state.traceEnabled) {\n var extension = candidate.substring(extensionless.length);\n trace(state.host, ts.Diagnostics.File_name_0_has_a_1_extension_stripping_it, candidate, extension);\n }\n return tryAddingExtensions(extensionless, extensions, onlyRecordFailures, state);\n }\n }\n /** Try to return an existing file that adds one of the `extensions` to `candidate`. */\n function tryAddingExtensions(candidate, extensions, onlyRecordFailures, state) {\n if (!onlyRecordFailures) {\n // check if containing folder exists - if it doesn't then just record failures for all supported extensions without disk probing\n var directory = ts.getDirectoryPath(candidate);\n if (directory) {\n onlyRecordFailures = !ts.directoryProbablyExists(directory, state.host);\n }\n }\n switch (extensions) {\n case Extensions.DtsOnly:\n return tryExtension(\".d.ts\" /* Dts */);\n case Extensions.TypeScript:\n return tryExtension(\".ts\" /* Ts */) || tryExtension(\".tsx\" /* Tsx */) || tryExtension(\".d.ts\" /* Dts */);\n case Extensions.JavaScript:\n return tryExtension(\".js\" /* Js */) || tryExtension(\".jsx\" /* Jsx */);\n case Extensions.TSConfig:\n case Extensions.Json:\n return tryExtension(\".json\" /* Json */);\n }\n function tryExtension(ext) {\n var path = tryFile(candidate + ext, onlyRecordFailures, state);\n return path === undefined ? undefined : { path: path, ext: ext };\n }\n }\n /** Return the file if it exists. */\n function tryFile(fileName, onlyRecordFailures, state) {\n if (!onlyRecordFailures) {\n if (state.host.fileExists(fileName)) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.File_0_exist_use_it_as_a_name_resolution_result, fileName);\n }\n return fileName;\n }\n else {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.File_0_does_not_exist, fileName);\n }\n }\n }\n state.failedLookupLocations.push(fileName);\n return undefined;\n }\n function loadNodeModuleFromDirectory(extensions, candidate, onlyRecordFailures, state, considerPackageJson) {\n if (considerPackageJson === void 0) { considerPackageJson = true; }\n var packageInfo = considerPackageJson ? getPackageJsonInfo(candidate, onlyRecordFailures, state) : undefined;\n var packageJsonContent = packageInfo && packageInfo.packageJsonContent;\n var versionPaths = packageInfo && packageInfo.versionPaths;\n return withPackageId(packageInfo, loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageJsonContent, versionPaths));\n }\n function getPackageJsonInfo(packageDirectory, onlyRecordFailures, state) {\n var _a, _b, _c;\n var host = state.host, traceEnabled = state.traceEnabled;\n var packageJsonPath = ts.combinePaths(packageDirectory, \"package.json\");\n if (onlyRecordFailures) {\n state.failedLookupLocations.push(packageJsonPath);\n return undefined;\n }\n var existing = (_a = state.packageJsonInfoCache) === null || _a === void 0 ? void 0 : _a.getPackageJsonInfo(packageJsonPath);\n if (existing !== undefined) {\n if (typeof existing !== \"boolean\") {\n if (traceEnabled)\n trace(host, ts.Diagnostics.File_0_exists_according_to_earlier_cached_lookups, packageJsonPath);\n return existing;\n }\n else {\n if (existing && traceEnabled)\n trace(host, ts.Diagnostics.File_0_does_not_exist_according_to_earlier_cached_lookups, packageJsonPath);\n state.failedLookupLocations.push(packageJsonPath);\n return undefined;\n }\n }\n var directoryExists = ts.directoryProbablyExists(packageDirectory, host);\n if (directoryExists && host.fileExists(packageJsonPath)) {\n var packageJsonContent = ts.readJson(packageJsonPath, host);\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Found_package_json_at_0, packageJsonPath);\n }\n var versionPaths = readPackageJsonTypesVersionPaths(packageJsonContent, state);\n var result = { packageDirectory: packageDirectory, packageJsonContent: packageJsonContent, versionPaths: versionPaths };\n (_b = state.packageJsonInfoCache) === null || _b === void 0 ? void 0 : _b.setPackageJsonInfo(packageJsonPath, result);\n return result;\n }\n else {\n if (directoryExists && traceEnabled) {\n trace(host, ts.Diagnostics.File_0_does_not_exist, packageJsonPath);\n }\n (_c = state.packageJsonInfoCache) === null || _c === void 0 ? void 0 : _c.setPackageJsonInfo(packageJsonPath, directoryExists);\n // record package json as one of failed lookup locations - in the future if this file will appear it will invalidate resolution results\n state.failedLookupLocations.push(packageJsonPath);\n }\n }\n function loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, jsonContent, versionPaths) {\n var packageFile;\n if (jsonContent) {\n switch (extensions) {\n case Extensions.JavaScript:\n case Extensions.Json:\n packageFile = readPackageJsonMainField(jsonContent, candidate, state);\n break;\n case Extensions.TypeScript:\n // When resolving typescript modules, try resolving using main field as well\n packageFile = readPackageJsonTypesFields(jsonContent, candidate, state) || readPackageJsonMainField(jsonContent, candidate, state);\n break;\n case Extensions.DtsOnly:\n packageFile = readPackageJsonTypesFields(jsonContent, candidate, state);\n break;\n case Extensions.TSConfig:\n packageFile = readPackageJsonTSConfigField(jsonContent, candidate, state);\n break;\n default:\n return ts.Debug.assertNever(extensions);\n }\n }\n var loader = function (extensions, candidate, onlyRecordFailures, state) {\n var fromFile = tryFile(candidate, onlyRecordFailures, state);\n if (fromFile) {\n var resolved = resolvedIfExtensionMatches(extensions, fromFile);\n if (resolved) {\n return noPackageId(resolved);\n }\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.File_0_has_an_unsupported_extension_so_skipping_it, fromFile);\n }\n }\n // Even if extensions is DtsOnly, we can still look up a .ts file as a result of package.json \"types\"\n var nextExtensions = extensions === Extensions.DtsOnly ? Extensions.TypeScript : extensions;\n // Don't do package.json lookup recursively, because Node.js' package lookup doesn't.\n return nodeLoadModuleByRelativeName(nextExtensions, candidate, onlyRecordFailures, state, /*considerPackageJson*/ false);\n };\n var onlyRecordFailuresForPackageFile = packageFile ? !ts.directoryProbablyExists(ts.getDirectoryPath(packageFile), state.host) : undefined;\n var onlyRecordFailuresForIndex = onlyRecordFailures || !ts.directoryProbablyExists(candidate, state.host);\n var indexPath = ts.combinePaths(candidate, extensions === Extensions.TSConfig ? \"tsconfig\" : \"index\");\n if (versionPaths && (!packageFile || ts.containsPath(candidate, packageFile))) {\n var moduleName = ts.getRelativePathFromDirectory(candidate, packageFile || indexPath, /*ignoreCase*/ false);\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, versionPaths.version, ts.version, moduleName);\n }\n var result = tryLoadModuleUsingPaths(extensions, moduleName, candidate, versionPaths.paths, /*pathPatterns*/ undefined, loader, onlyRecordFailuresForPackageFile || onlyRecordFailuresForIndex, state);\n if (result) {\n return removeIgnoredPackageId(result.value);\n }\n }\n // It won't have a `packageId` set, because we disabled `considerPackageJson`.\n var packageFileResult = packageFile && removeIgnoredPackageId(loader(extensions, packageFile, onlyRecordFailuresForPackageFile, state));\n if (packageFileResult)\n return packageFileResult;\n return loadModuleFromFile(extensions, indexPath, onlyRecordFailuresForIndex, state);\n }\n /** Resolve from an arbitrarily specified file. Return `undefined` if it has an unsupported extension. */\n function resolvedIfExtensionMatches(extensions, path) {\n var ext = ts.tryGetExtensionFromPath(path);\n return ext !== undefined && extensionIsOk(extensions, ext) ? { path: path, ext: ext } : undefined;\n }\n /** True if `extension` is one of the supported `extensions`. */\n function extensionIsOk(extensions, extension) {\n switch (extensions) {\n case Extensions.JavaScript:\n return extension === \".js\" /* Js */ || extension === \".jsx\" /* Jsx */;\n case Extensions.TSConfig:\n case Extensions.Json:\n return extension === \".json\" /* Json */;\n case Extensions.TypeScript:\n return extension === \".ts\" /* Ts */ || extension === \".tsx\" /* Tsx */ || extension === \".d.ts\" /* Dts */;\n case Extensions.DtsOnly:\n return extension === \".d.ts\" /* Dts */;\n }\n }\n /* @internal */\n function parsePackageName(moduleName) {\n var idx = moduleName.indexOf(ts.directorySeparator);\n if (moduleName[0] === \"@\") {\n idx = moduleName.indexOf(ts.directorySeparator, idx + 1);\n }\n return idx === -1 ? { packageName: moduleName, rest: \"\" } : { packageName: moduleName.slice(0, idx), rest: moduleName.slice(idx + 1) };\n }\n ts.parsePackageName = parsePackageName;\n function loadModuleFromNearestNodeModulesDirectory(extensions, moduleName, directory, state, cache, redirectedReference) {\n return loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, /*typesScopeOnly*/ false, cache, redirectedReference);\n }\n function loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, directory, state) {\n // Extensions parameter here doesn't actually matter, because typesOnly ensures we're just doing @types lookup, which is always DtsOnly.\n return loadModuleFromNearestNodeModulesDirectoryWorker(Extensions.DtsOnly, moduleName, directory, state, /*typesScopeOnly*/ true, /*cache*/ undefined, /*redirectedReference*/ undefined);\n }\n function loadModuleFromNearestNodeModulesDirectoryWorker(extensions, moduleName, directory, state, typesScopeOnly, cache, redirectedReference) {\n var perModuleNameCache = cache && cache.getOrCreateCacheForModuleName(moduleName, redirectedReference);\n return ts.forEachAncestorDirectory(ts.normalizeSlashes(directory), function (ancestorDirectory) {\n if (ts.getBaseFileName(ancestorDirectory) !== \"node_modules\") {\n var resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache, moduleName, ancestorDirectory, state);\n if (resolutionFromCache) {\n return resolutionFromCache;\n }\n return toSearchResult(loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, ancestorDirectory, state, typesScopeOnly));\n }\n });\n }\n function loadModuleFromImmediateNodeModulesDirectory(extensions, moduleName, directory, state, typesScopeOnly) {\n var nodeModulesFolder = ts.combinePaths(directory, \"node_modules\");\n var nodeModulesFolderExists = ts.directoryProbablyExists(nodeModulesFolder, state.host);\n if (!nodeModulesFolderExists && state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesFolder);\n }\n var packageResult = typesScopeOnly ? undefined : loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesFolder, nodeModulesFolderExists, state);\n if (packageResult) {\n return packageResult;\n }\n if (extensions === Extensions.TypeScript || extensions === Extensions.DtsOnly) {\n var nodeModulesAtTypes_1 = ts.combinePaths(nodeModulesFolder, \"@types\");\n var nodeModulesAtTypesExists = nodeModulesFolderExists;\n if (nodeModulesFolderExists && !ts.directoryProbablyExists(nodeModulesAtTypes_1, state.host)) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Directory_0_does_not_exist_skipping_all_lookups_in_it, nodeModulesAtTypes_1);\n }\n nodeModulesAtTypesExists = false;\n }\n return loadModuleFromSpecificNodeModulesDirectory(Extensions.DtsOnly, mangleScopedPackageNameWithTrace(moduleName, state), nodeModulesAtTypes_1, nodeModulesAtTypesExists, state);\n }\n }\n function loadModuleFromSpecificNodeModulesDirectory(extensions, moduleName, nodeModulesDirectory, nodeModulesDirectoryExists, state) {\n var candidate = ts.normalizePath(ts.combinePaths(nodeModulesDirectory, moduleName));\n // First look for a nested package.json, as in `node_modules/foo/bar/package.json`.\n var packageInfo = getPackageJsonInfo(candidate, !nodeModulesDirectoryExists, state);\n if (packageInfo) {\n var fromFile = loadModuleFromFile(extensions, candidate, !nodeModulesDirectoryExists, state);\n if (fromFile) {\n return noPackageId(fromFile);\n }\n var fromDirectory = loadNodeModuleFromDirectoryWorker(extensions, candidate, !nodeModulesDirectoryExists, state, packageInfo.packageJsonContent, packageInfo.versionPaths);\n return withPackageId(packageInfo, fromDirectory);\n }\n var loader = function (extensions, candidate, onlyRecordFailures, state) {\n var pathAndExtension = loadModuleFromFile(extensions, candidate, onlyRecordFailures, state) ||\n loadNodeModuleFromDirectoryWorker(extensions, candidate, onlyRecordFailures, state, packageInfo && packageInfo.packageJsonContent, packageInfo && packageInfo.versionPaths);\n return withPackageId(packageInfo, pathAndExtension);\n };\n var _a = parsePackageName(moduleName), packageName = _a.packageName, rest = _a.rest;\n if (rest !== \"\") { // If \"rest\" is empty, we just did this search above.\n var packageDirectory = ts.combinePaths(nodeModulesDirectory, packageName);\n // Don't use a \"types\" or \"main\" from here because we're not loading the root, but a subdirectory -- just here for the packageId and path mappings.\n packageInfo = getPackageJsonInfo(packageDirectory, !nodeModulesDirectoryExists, state);\n if (packageInfo && packageInfo.versionPaths) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.package_json_has_a_typesVersions_entry_0_that_matches_compiler_version_1_looking_for_a_pattern_to_match_module_name_2, packageInfo.versionPaths.version, ts.version, rest);\n }\n var packageDirectoryExists = nodeModulesDirectoryExists && ts.directoryProbablyExists(packageDirectory, state.host);\n var fromPaths = tryLoadModuleUsingPaths(extensions, rest, packageDirectory, packageInfo.versionPaths.paths, /*pathPatterns*/ undefined, loader, !packageDirectoryExists, state);\n if (fromPaths) {\n return fromPaths.value;\n }\n }\n }\n return loader(extensions, candidate, !nodeModulesDirectoryExists, state);\n }\n function tryLoadModuleUsingPaths(extensions, moduleName, baseDirectory, paths, pathPatterns, loader, onlyRecordFailures, state) {\n pathPatterns || (pathPatterns = ts.tryParsePatterns(paths));\n var matchedPattern = ts.matchPatternOrExact(pathPatterns, moduleName);\n if (matchedPattern) {\n var matchedStar_1 = ts.isString(matchedPattern) ? undefined : ts.matchedText(matchedPattern, moduleName);\n var matchedPatternText = ts.isString(matchedPattern) ? matchedPattern : ts.patternText(matchedPattern);\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Module_name_0_matched_pattern_1, moduleName, matchedPatternText);\n }\n var resolved = ts.forEach(paths[matchedPatternText], function (subst) {\n var path = matchedStar_1 ? subst.replace(\"*\", matchedStar_1) : subst;\n // When baseUrl is not specified, the command line parser resolves relative paths to the config file location.\n var candidate = ts.normalizePath(ts.combinePaths(baseDirectory, path));\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Trying_substitution_0_candidate_module_location_Colon_1, subst, path);\n }\n // A path mapping may have an extension, in contrast to an import, which should omit it.\n var extension = ts.tryGetExtensionFromPath(subst);\n if (extension !== undefined) {\n var path_1 = tryFile(candidate, onlyRecordFailures, state);\n if (path_1 !== undefined) {\n return noPackageId({ path: path_1, ext: extension });\n }\n }\n return loader(extensions, candidate, onlyRecordFailures || !ts.directoryProbablyExists(ts.getDirectoryPath(candidate), state.host), state);\n });\n return { value: resolved };\n }\n }\n /** Double underscores are used in DefinitelyTyped to delimit scoped packages. */\n var mangledScopedPackageSeparator = \"__\";\n /** For a scoped package, we must look in `@types/foo__bar` instead of `@types/@foo/bar`. */\n function mangleScopedPackageNameWithTrace(packageName, state) {\n var mangled = mangleScopedPackageName(packageName);\n if (state.traceEnabled && mangled !== packageName) {\n trace(state.host, ts.Diagnostics.Scoped_package_detected_looking_in_0, mangled);\n }\n return mangled;\n }\n /* @internal */\n function getTypesPackageName(packageName) {\n return \"@types/\" + mangleScopedPackageName(packageName);\n }\n ts.getTypesPackageName = getTypesPackageName;\n /* @internal */\n function mangleScopedPackageName(packageName) {\n if (ts.startsWith(packageName, \"@\")) {\n var replaceSlash = packageName.replace(ts.directorySeparator, mangledScopedPackageSeparator);\n if (replaceSlash !== packageName) {\n return replaceSlash.slice(1); // Take off the \"@\"\n }\n }\n return packageName;\n }\n ts.mangleScopedPackageName = mangleScopedPackageName;\n /* @internal */\n function getPackageNameFromTypesPackageName(mangledName) {\n var withoutAtTypePrefix = ts.removePrefix(mangledName, \"@types/\");\n if (withoutAtTypePrefix !== mangledName) {\n return unmangleScopedPackageName(withoutAtTypePrefix);\n }\n return mangledName;\n }\n ts.getPackageNameFromTypesPackageName = getPackageNameFromTypesPackageName;\n /* @internal */\n function unmangleScopedPackageName(typesPackageName) {\n return ts.stringContains(typesPackageName, mangledScopedPackageSeparator) ?\n \"@\" + typesPackageName.replace(mangledScopedPackageSeparator, ts.directorySeparator) :\n typesPackageName;\n }\n ts.unmangleScopedPackageName = unmangleScopedPackageName;\n function tryFindNonRelativeModuleNameInCache(cache, moduleName, containingDirectory, state) {\n var result = cache && cache.get(containingDirectory);\n if (result) {\n if (state.traceEnabled) {\n trace(state.host, ts.Diagnostics.Resolution_for_module_0_was_found_in_cache_from_location_1, moduleName, containingDirectory);\n }\n state.resultFromCache = result;\n return { value: result.resolvedModule && { path: result.resolvedModule.resolvedFileName, originalPath: result.resolvedModule.originalPath || true, extension: result.resolvedModule.extension, packageId: result.resolvedModule.packageId } };\n }\n }\n function classicNameResolver(moduleName, containingFile, compilerOptions, host, cache, redirectedReference) {\n var traceEnabled = isTraceEnabled(compilerOptions, host);\n var failedLookupLocations = [];\n var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: cache };\n var containingDirectory = ts.getDirectoryPath(containingFile);\n var resolved = tryResolve(Extensions.TypeScript) || tryResolve(Extensions.JavaScript);\n // No originalPath because classic resolution doesn't resolve realPath\n return createResolvedModuleWithFailedLookupLocations(resolved && resolved.value, /*isExternalLibraryImport*/ false, failedLookupLocations, state.resultFromCache);\n function tryResolve(extensions) {\n var resolvedUsingSettings = tryLoadModuleUsingOptionalResolutionSettings(extensions, moduleName, containingDirectory, loadModuleFromFileNoPackageId, state);\n if (resolvedUsingSettings) {\n return { value: resolvedUsingSettings };\n }\n if (!ts.isExternalModuleNameRelative(moduleName)) {\n var perModuleNameCache_1 = cache && cache.getOrCreateCacheForModuleName(moduleName, redirectedReference);\n // Climb up parent directories looking for a module.\n var resolved_3 = ts.forEachAncestorDirectory(containingDirectory, function (directory) {\n var resolutionFromCache = tryFindNonRelativeModuleNameInCache(perModuleNameCache_1, moduleName, directory, state);\n if (resolutionFromCache) {\n return resolutionFromCache;\n }\n var searchName = ts.normalizePath(ts.combinePaths(directory, moduleName));\n return toSearchResult(loadModuleFromFileNoPackageId(extensions, searchName, /*onlyRecordFailures*/ false, state));\n });\n if (resolved_3) {\n return resolved_3;\n }\n if (extensions === Extensions.TypeScript) {\n // If we didn't find the file normally, look it up in @types.\n return loadModuleFromNearestNodeModulesDirectoryTypesScope(moduleName, containingDirectory, state);\n }\n }\n else {\n var candidate = ts.normalizePath(ts.combinePaths(containingDirectory, moduleName));\n return toSearchResult(loadModuleFromFileNoPackageId(extensions, candidate, /*onlyRecordFailures*/ false, state));\n }\n }\n }\n ts.classicNameResolver = classicNameResolver;\n /**\n * A host may load a module from a global cache of typings.\n * This is the minumum code needed to expose that functionality; the rest is in the host.\n */\n /* @internal */\n function loadModuleFromGlobalCache(moduleName, projectName, compilerOptions, host, globalCache, packageJsonInfoCache) {\n var traceEnabled = isTraceEnabled(compilerOptions, host);\n if (traceEnabled) {\n trace(host, ts.Diagnostics.Auto_discovery_for_typings_is_enabled_in_project_0_Running_extra_resolution_pass_for_module_1_using_cache_location_2, projectName, moduleName, globalCache);\n }\n var failedLookupLocations = [];\n var state = { compilerOptions: compilerOptions, host: host, traceEnabled: traceEnabled, failedLookupLocations: failedLookupLocations, packageJsonInfoCache: packageJsonInfoCache };\n var resolved = loadModuleFromImmediateNodeModulesDirectory(Extensions.DtsOnly, moduleName, globalCache, state, /*typesScopeOnly*/ false);\n return createResolvedModuleWithFailedLookupLocations(resolved, /*isExternalLibraryImport*/ true, failedLookupLocations, state.resultFromCache);\n }\n ts.loadModuleFromGlobalCache = loadModuleFromGlobalCache;\n /**\n * Wraps value to SearchResult.\n * @returns undefined if value is undefined or { value } otherwise\n */\n function toSearchResult(value) {\n return value !== undefined ? { value: value } : undefined;\n }\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var ModuleInstanceState;\n (function (ModuleInstanceState) {\n ModuleInstanceState[ModuleInstanceState[\"NonInstantiated\"] = 0] = \"NonInstantiated\";\n ModuleInstanceState[ModuleInstanceState[\"Instantiated\"] = 1] = \"Instantiated\";\n ModuleInstanceState[ModuleInstanceState[\"ConstEnumOnly\"] = 2] = \"ConstEnumOnly\";\n })(ModuleInstanceState = ts.ModuleInstanceState || (ts.ModuleInstanceState = {}));\n function getModuleInstanceState(node, visited) {\n if (node.body && !node.body.parent) {\n // getModuleInstanceStateForAliasTarget needs to walk up the parent chain, so parent pointers must be set on this tree already\n ts.setParent(node.body, node);\n ts.setParentRecursive(node.body, /*incremental*/ false);\n }\n return node.body ? getModuleInstanceStateCached(node.body, visited) : 1 /* Instantiated */;\n }\n ts.getModuleInstanceState = getModuleInstanceState;\n function getModuleInstanceStateCached(node, visited) {\n if (visited === void 0) { visited = new ts.Map(); }\n var nodeId = ts.getNodeId(node);\n if (visited.has(nodeId)) {\n return visited.get(nodeId) || 0 /* NonInstantiated */;\n }\n visited.set(nodeId, undefined);\n var result = getModuleInstanceStateWorker(node, visited);\n visited.set(nodeId, result);\n return result;\n }\n function getModuleInstanceStateWorker(node, visited) {\n // A module is uninstantiated if it contains only\n switch (node.kind) {\n // 1. interface declarations, type alias declarations\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n return 0 /* NonInstantiated */;\n // 2. const enum declarations\n case 258 /* EnumDeclaration */:\n if (ts.isEnumConst(node)) {\n return 2 /* ConstEnumOnly */;\n }\n break;\n // 3. non-exported import declarations\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n if (!(ts.hasSyntacticModifier(node, 1 /* Export */))) {\n return 0 /* NonInstantiated */;\n }\n break;\n // 4. Export alias declarations pointing at only uninstantiated modules or things uninstantiated modules contain\n case 270 /* ExportDeclaration */:\n var exportDeclaration = node;\n if (!exportDeclaration.moduleSpecifier && exportDeclaration.exportClause && exportDeclaration.exportClause.kind === 271 /* NamedExports */) {\n var state = 0 /* NonInstantiated */;\n for (var _i = 0, _a = exportDeclaration.exportClause.elements; _i < _a.length; _i++) {\n var specifier = _a[_i];\n var specifierState = getModuleInstanceStateForAliasTarget(specifier, visited);\n if (specifierState > state) {\n state = specifierState;\n }\n if (state === 1 /* Instantiated */) {\n return state;\n }\n }\n return state;\n }\n break;\n // 5. other uninstantiated module declarations.\n case 260 /* ModuleBlock */: {\n var state_1 = 0 /* NonInstantiated */;\n ts.forEachChild(node, function (n) {\n var childState = getModuleInstanceStateCached(n, visited);\n switch (childState) {\n case 0 /* NonInstantiated */:\n // child is non-instantiated - continue searching\n return;\n case 2 /* ConstEnumOnly */:\n // child is const enum only - record state and continue searching\n state_1 = 2 /* ConstEnumOnly */;\n return;\n case 1 /* Instantiated */:\n // child is instantiated - record state and stop\n state_1 = 1 /* Instantiated */;\n return true;\n default:\n ts.Debug.assertNever(childState);\n }\n });\n return state_1;\n }\n case 259 /* ModuleDeclaration */:\n return getModuleInstanceState(node, visited);\n case 79 /* Identifier */:\n // Only jsdoc typedef definition can exist in jsdoc namespace, and it should\n // be considered the same as type alias\n if (node.isInJSDocNamespace) {\n return 0 /* NonInstantiated */;\n }\n }\n return 1 /* Instantiated */;\n }\n function getModuleInstanceStateForAliasTarget(specifier, visited) {\n var name = specifier.propertyName || specifier.name;\n var p = specifier.parent;\n while (p) {\n if (ts.isBlock(p) || ts.isModuleBlock(p) || ts.isSourceFile(p)) {\n var statements = p.statements;\n var found = void 0;\n for (var _i = 0, statements_2 = statements; _i < statements_2.length; _i++) {\n var statement = statements_2[_i];\n if (ts.nodeHasName(statement, name)) {\n if (!statement.parent) {\n ts.setParent(statement, p);\n ts.setParentRecursive(statement, /*incremental*/ false);\n }\n var state = getModuleInstanceStateCached(statement, visited);\n if (found === undefined || state > found) {\n found = state;\n }\n if (found === 1 /* Instantiated */) {\n return found;\n }\n }\n }\n if (found !== undefined) {\n return found;\n }\n }\n p = p.parent;\n }\n return 1 /* Instantiated */; // Couldn't locate, assume could refer to a value\n }\n var ContainerFlags;\n (function (ContainerFlags) {\n // The current node is not a container, and no container manipulation should happen before\n // recursing into it.\n ContainerFlags[ContainerFlags[\"None\"] = 0] = \"None\";\n // The current node is a container. It should be set as the current container (and block-\n // container) before recursing into it. The current node does not have locals. Examples:\n //\n // Classes, ObjectLiterals, TypeLiterals, Interfaces...\n ContainerFlags[ContainerFlags[\"IsContainer\"] = 1] = \"IsContainer\";\n // The current node is a block-scoped-container. It should be set as the current block-\n // container before recursing into it. Examples:\n //\n // Blocks (when not parented by functions), Catch clauses, For/For-in/For-of statements...\n ContainerFlags[ContainerFlags[\"IsBlockScopedContainer\"] = 2] = \"IsBlockScopedContainer\";\n // The current node is the container of a control flow path. The current control flow should\n // be saved and restored, and a new control flow initialized within the container.\n ContainerFlags[ContainerFlags[\"IsControlFlowContainer\"] = 4] = \"IsControlFlowContainer\";\n ContainerFlags[ContainerFlags[\"IsFunctionLike\"] = 8] = \"IsFunctionLike\";\n ContainerFlags[ContainerFlags[\"IsFunctionExpression\"] = 16] = \"IsFunctionExpression\";\n ContainerFlags[ContainerFlags[\"HasLocals\"] = 32] = \"HasLocals\";\n ContainerFlags[ContainerFlags[\"IsInterface\"] = 64] = \"IsInterface\";\n ContainerFlags[ContainerFlags[\"IsObjectLiteralOrClassExpressionMethod\"] = 128] = \"IsObjectLiteralOrClassExpressionMethod\";\n })(ContainerFlags || (ContainerFlags = {}));\n function initFlowNode(node) {\n ts.Debug.attachFlowNodeDebugInfo(node);\n return node;\n }\n var binder = createBinder();\n function bindSourceFile(file, options) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"bind\" /* Bind */, \"bindSourceFile\", { path: file.path }, /*separateBeginAndEnd*/ true);\n ts.performance.mark(\"beforeBind\");\n ts.perfLogger.logStartBindFile(\"\" + file.fileName);\n binder(file, options);\n ts.perfLogger.logStopBindFile();\n ts.performance.mark(\"afterBind\");\n ts.performance.measure(\"Bind\", \"beforeBind\", \"afterBind\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n ts.bindSourceFile = bindSourceFile;\n function createBinder() {\n var file;\n var options;\n var languageVersion;\n var parent;\n var container;\n var thisParentContainer; // Container one level up\n var blockScopeContainer;\n var lastContainer;\n var delayedTypeAliases;\n var seenThisKeyword;\n // state used by control flow analysis\n var currentFlow;\n var currentBreakTarget;\n var currentContinueTarget;\n var currentReturnTarget;\n var currentTrueTarget;\n var currentFalseTarget;\n var currentExceptionTarget;\n var preSwitchCaseFlow;\n var activeLabelList;\n var hasExplicitReturn;\n // state used for emit helpers\n var emitFlags;\n // If this file is an external module, then it is automatically in strict-mode according to\n // ES6. If it is not an external module, then we'll determine if it is in strict mode or\n // not depending on if we see \"use strict\" in certain places or if we hit a class/namespace\n // or if compiler options contain alwaysStrict.\n var inStrictMode;\n // If we are binding an assignment pattern, we will bind certain expressions differently.\n var inAssignmentPattern = false;\n var symbolCount = 0;\n var Symbol;\n var classifiableNames;\n var unreachableFlow = { flags: 1 /* Unreachable */ };\n var reportedUnreachableFlow = { flags: 1 /* Unreachable */ };\n var bindBinaryExpressionFlow = createBindBinaryExpressionFlow();\n /**\n * Inside the binder, we may create a diagnostic for an as-yet unbound node (with potentially no parent pointers, implying no accessible source file)\n * If so, the node _must_ be in the current file (as that's the only way anything could have traversed to it to yield it as the error node)\n * This version of `createDiagnosticForNode` uses the binder's context to account for this, and always yields correct diagnostics even in these situations.\n */\n function createDiagnosticForNode(node, message, arg0, arg1, arg2) {\n return ts.createDiagnosticForNodeInSourceFile(ts.getSourceFileOfNode(node) || file, node, message, arg0, arg1, arg2);\n }\n function bindSourceFile(f, opts) {\n file = f;\n options = opts;\n languageVersion = ts.getEmitScriptTarget(options);\n inStrictMode = bindInStrictMode(file, opts);\n classifiableNames = new ts.Set();\n symbolCount = 0;\n Symbol = ts.objectAllocator.getSymbolConstructor();\n // Attach debugging information if necessary\n ts.Debug.attachFlowNodeDebugInfo(unreachableFlow);\n ts.Debug.attachFlowNodeDebugInfo(reportedUnreachableFlow);\n if (!file.locals) {\n bind(file);\n file.symbolCount = symbolCount;\n file.classifiableNames = classifiableNames;\n delayedBindJSDocTypedefTag();\n }\n file = undefined;\n options = undefined;\n languageVersion = undefined;\n parent = undefined;\n container = undefined;\n thisParentContainer = undefined;\n blockScopeContainer = undefined;\n lastContainer = undefined;\n delayedTypeAliases = undefined;\n seenThisKeyword = false;\n currentFlow = undefined;\n currentBreakTarget = undefined;\n currentContinueTarget = undefined;\n currentReturnTarget = undefined;\n currentTrueTarget = undefined;\n currentFalseTarget = undefined;\n currentExceptionTarget = undefined;\n activeLabelList = undefined;\n hasExplicitReturn = false;\n inAssignmentPattern = false;\n emitFlags = 0 /* None */;\n }\n return bindSourceFile;\n function bindInStrictMode(file, opts) {\n if (ts.getStrictOptionValue(opts, \"alwaysStrict\") && !file.isDeclarationFile) {\n // bind in strict mode source files with alwaysStrict option\n return true;\n }\n else {\n return !!file.externalModuleIndicator;\n }\n }\n function createSymbol(flags, name) {\n symbolCount++;\n return new Symbol(flags, name);\n }\n function addDeclarationToSymbol(symbol, node, symbolFlags) {\n symbol.flags |= symbolFlags;\n node.symbol = symbol;\n symbol.declarations = ts.appendIfUnique(symbol.declarations, node);\n if (symbolFlags & (32 /* Class */ | 384 /* Enum */ | 1536 /* Module */ | 3 /* Variable */) && !symbol.exports) {\n symbol.exports = ts.createSymbolTable();\n }\n if (symbolFlags & (32 /* Class */ | 64 /* Interface */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && !symbol.members) {\n symbol.members = ts.createSymbolTable();\n }\n // On merge of const enum module with class or function, reset const enum only flag (namespaces will already recalculate)\n if (symbol.constEnumOnlyModule && (symbol.flags & (16 /* Function */ | 32 /* Class */ | 256 /* RegularEnum */))) {\n symbol.constEnumOnlyModule = false;\n }\n if (symbolFlags & 111551 /* Value */) {\n ts.setValueDeclaration(symbol, node);\n }\n }\n // Should not be called on a declaration with a computed property name,\n // unless it is a well known Symbol.\n function getDeclarationName(node) {\n if (node.kind === 269 /* ExportAssignment */) {\n return node.isExportEquals ? \"export=\" /* ExportEquals */ : \"default\" /* Default */;\n }\n var name = ts.getNameOfDeclaration(node);\n if (name) {\n if (ts.isAmbientModule(node)) {\n var moduleName = ts.getTextOfIdentifierOrLiteral(name);\n return (ts.isGlobalScopeAugmentation(node) ? \"__global\" : \"\\\"\" + moduleName + \"\\\"\");\n }\n if (name.kind === 160 /* ComputedPropertyName */) {\n var nameExpression = name.expression;\n // treat computed property names where expression is string/numeric literal as just string/numeric literal\n if (ts.isStringOrNumericLiteralLike(nameExpression)) {\n return ts.escapeLeadingUnderscores(nameExpression.text);\n }\n if (ts.isSignedNumericLiteral(nameExpression)) {\n return ts.tokenToString(nameExpression.operator) + nameExpression.operand.text;\n }\n else {\n ts.Debug.fail(\"Only computed properties with literal names have declaration names\");\n }\n }\n if (ts.isPrivateIdentifier(name)) {\n // containingClass exists because private names only allowed inside classes\n var containingClass = ts.getContainingClass(node);\n if (!containingClass) {\n // we can get here in cases where there is already a parse error.\n return undefined;\n }\n var containingClassSymbol = containingClass.symbol;\n return ts.getSymbolNameForPrivateIdentifier(containingClassSymbol, name.escapedText);\n }\n return ts.isPropertyNameLiteral(name) ? ts.getEscapedTextOfIdentifierOrLiteral(name) : undefined;\n }\n switch (node.kind) {\n case 169 /* Constructor */:\n return \"__constructor\" /* Constructor */;\n case 177 /* FunctionType */:\n case 172 /* CallSignature */:\n case 318 /* JSDocSignature */:\n return \"__call\" /* Call */;\n case 178 /* ConstructorType */:\n case 173 /* ConstructSignature */:\n return \"__new\" /* New */;\n case 174 /* IndexSignature */:\n return \"__index\" /* Index */;\n case 270 /* ExportDeclaration */:\n return \"__export\" /* ExportStar */;\n case 300 /* SourceFile */:\n // json file should behave as\n // module.exports = ...\n return \"export=\" /* ExportEquals */;\n case 219 /* BinaryExpression */:\n if (ts.getAssignmentDeclarationKind(node) === 2 /* ModuleExports */) {\n // module.exports = ...\n return \"export=\" /* ExportEquals */;\n }\n ts.Debug.fail(\"Unknown binary declaration kind\");\n break;\n case 312 /* JSDocFunctionType */:\n return (ts.isJSDocConstructSignature(node) ? \"__new\" /* New */ : \"__call\" /* Call */);\n case 162 /* Parameter */:\n // Parameters with names are handled at the top of this function. Parameters\n // without names can only come from JSDocFunctionTypes.\n ts.Debug.assert(node.parent.kind === 312 /* JSDocFunctionType */, \"Impossible parameter parent kind\", function () { return \"parent is: \" + (ts.SyntaxKind ? ts.SyntaxKind[node.parent.kind] : node.parent.kind) + \", expected JSDocFunctionType\"; });\n var functionType = node.parent;\n var index = functionType.parameters.indexOf(node);\n return \"arg\" + index;\n }\n }\n function getDisplayName(node) {\n return ts.isNamedDeclaration(node) ? ts.declarationNameToString(node.name) : ts.unescapeLeadingUnderscores(ts.Debug.checkDefined(getDeclarationName(node)));\n }\n /**\n * Declares a Symbol for the node and adds it to symbols. Reports errors for conflicting identifier names.\n * @param symbolTable - The symbol table which node will be added to.\n * @param parent - node's parent declaration.\n * @param node - The declaration to be added to the symbol table\n * @param includes - The SymbolFlags that node has in addition to its declaration type (eg: export, ambient, etc.)\n * @param excludes - The flags which node cannot be declared alongside in a symbol table. Used to report forbidden declarations.\n */\n function declareSymbol(symbolTable, parent, node, includes, excludes, isReplaceableByMethod, isComputedName) {\n ts.Debug.assert(isComputedName || !ts.hasDynamicName(node));\n var isDefaultExport = ts.hasSyntacticModifier(node, 512 /* Default */) || ts.isExportSpecifier(node) && node.name.escapedText === \"default\";\n // The exported symbol for an export default function/class node is always named \"default\"\n var name = isComputedName ? \"__computed\" /* Computed */\n : isDefaultExport && parent ? \"default\" /* Default */\n : getDeclarationName(node);\n var symbol;\n if (name === undefined) {\n symbol = createSymbol(0 /* None */, \"__missing\" /* Missing */);\n }\n else {\n // Check and see if the symbol table already has a symbol with this name. If not,\n // create a new symbol with this name and add it to the table. Note that we don't\n // give the new symbol any flags *yet*. This ensures that it will not conflict\n // with the 'excludes' flags we pass in.\n //\n // If we do get an existing symbol, see if it conflicts with the new symbol we're\n // creating. For example, a 'var' symbol and a 'class' symbol will conflict within\n // the same symbol table. If we have a conflict, report the issue on each\n // declaration we have for this symbol, and then create a new symbol for this\n // declaration.\n //\n // Note that when properties declared in Javascript constructors\n // (marked by isReplaceableByMethod) conflict with another symbol, the property loses.\n // Always. This allows the common Javascript pattern of overwriting a prototype method\n // with an bound instance method of the same type: `this.method = this.method.bind(this)`\n //\n // If we created a new symbol, either because we didn't have a symbol with this name\n // in the symbol table, or we conflicted with an existing symbol, then just add this\n // node as the sole declaration of the new symbol.\n //\n // Otherwise, we'll be merging into a compatible existing symbol (for example when\n // you have multiple 'vars' with the same name in the same container). In this case\n // just add this node into the declarations list of the symbol.\n symbol = symbolTable.get(name);\n if (includes & 2885600 /* Classifiable */) {\n classifiableNames.add(name);\n }\n if (!symbol) {\n symbolTable.set(name, symbol = createSymbol(0 /* None */, name));\n if (isReplaceableByMethod)\n symbol.isReplaceableByMethod = true;\n }\n else if (isReplaceableByMethod && !symbol.isReplaceableByMethod) {\n // A symbol already exists, so don't add this as a declaration.\n return symbol;\n }\n else if (symbol.flags & excludes) {\n if (symbol.isReplaceableByMethod) {\n // Javascript constructor-declared symbols can be discarded in favor of\n // prototype symbols like methods.\n symbolTable.set(name, symbol = createSymbol(0 /* None */, name));\n }\n else if (!(includes & 3 /* Variable */ && symbol.flags & 67108864 /* Assignment */)) {\n // Assignment declarations are allowed to merge with variables, no matter what other flags they have.\n if (ts.isNamedDeclaration(node)) {\n ts.setParent(node.name, node);\n }\n // Report errors every position with duplicate declaration\n // Report errors on previous encountered declarations\n var message_1 = symbol.flags & 2 /* BlockScopedVariable */\n ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0\n : ts.Diagnostics.Duplicate_identifier_0;\n var messageNeedsName_1 = true;\n if (symbol.flags & 384 /* Enum */ || includes & 384 /* Enum */) {\n message_1 = ts.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations;\n messageNeedsName_1 = false;\n }\n var multipleDefaultExports_1 = false;\n if (ts.length(symbol.declarations)) {\n // If the current node is a default export of some sort, then check if\n // there are any other default exports that we need to error on.\n // We'll know whether we have other default exports depending on if `symbol` already has a declaration list set.\n if (isDefaultExport) {\n message_1 = ts.Diagnostics.A_module_cannot_have_multiple_default_exports;\n messageNeedsName_1 = false;\n multipleDefaultExports_1 = true;\n }\n else {\n // This is to properly report an error in the case \"export default { }\" is after export default of class declaration or function declaration.\n // Error on multiple export default in the following case:\n // 1. multiple export default of class declaration or function declaration by checking NodeFlags.Default\n // 2. multiple export default of export assignment. This one doesn't have NodeFlags.Default on (as export default doesn't considered as modifiers)\n if (symbol.declarations && symbol.declarations.length &&\n (node.kind === 269 /* ExportAssignment */ && !node.isExportEquals)) {\n message_1 = ts.Diagnostics.A_module_cannot_have_multiple_default_exports;\n messageNeedsName_1 = false;\n multipleDefaultExports_1 = true;\n }\n }\n }\n var relatedInformation_1 = [];\n if (ts.isTypeAliasDeclaration(node) && ts.nodeIsMissing(node.type) && ts.hasSyntacticModifier(node, 1 /* Export */) && symbol.flags & (2097152 /* Alias */ | 788968 /* Type */ | 1920 /* Namespace */)) {\n // export type T; - may have meant export type { T }?\n relatedInformation_1.push(createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_0, \"export type { \" + ts.unescapeLeadingUnderscores(node.name.escapedText) + \" }\"));\n }\n var declarationName_1 = ts.getNameOfDeclaration(node) || node;\n ts.forEach(symbol.declarations, function (declaration, index) {\n var decl = ts.getNameOfDeclaration(declaration) || declaration;\n var diag = createDiagnosticForNode(decl, message_1, messageNeedsName_1 ? getDisplayName(declaration) : undefined);\n file.bindDiagnostics.push(multipleDefaultExports_1 ? ts.addRelatedInfo(diag, createDiagnosticForNode(declarationName_1, index === 0 ? ts.Diagnostics.Another_export_default_is_here : ts.Diagnostics.and_here)) : diag);\n if (multipleDefaultExports_1) {\n relatedInformation_1.push(createDiagnosticForNode(decl, ts.Diagnostics.The_first_export_default_is_here));\n }\n });\n var diag = createDiagnosticForNode(declarationName_1, message_1, messageNeedsName_1 ? getDisplayName(node) : undefined);\n file.bindDiagnostics.push(ts.addRelatedInfo.apply(void 0, __spreadArray([diag], relatedInformation_1, false)));\n symbol = createSymbol(0 /* None */, name);\n }\n }\n }\n addDeclarationToSymbol(symbol, node, includes);\n if (symbol.parent) {\n ts.Debug.assert(symbol.parent === parent, \"Existing symbol parent should match new one\");\n }\n else {\n symbol.parent = parent;\n }\n return symbol;\n }\n function declareModuleMember(node, symbolFlags, symbolExcludes) {\n var hasExportModifier = !!(ts.getCombinedModifierFlags(node) & 1 /* Export */) || jsdocTreatAsExported(node);\n if (symbolFlags & 2097152 /* Alias */) {\n if (node.kind === 273 /* ExportSpecifier */ || (node.kind === 263 /* ImportEqualsDeclaration */ && hasExportModifier)) {\n return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n }\n else {\n return declareSymbol(container.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);\n }\n }\n else {\n // Exported module members are given 2 symbols: A local symbol that is classified with an ExportValue flag,\n // and an associated export symbol with all the correct flags set on it. There are 2 main reasons:\n //\n // 1. We treat locals and exports of the same name as mutually exclusive within a container.\n // That means the binder will issue a Duplicate Identifier error if you mix locals and exports\n // with the same name in the same container.\n // TODO: Make this a more specific error and decouple it from the exclusion logic.\n // 2. When we checkIdentifier in the checker, we set its resolved symbol to the local symbol,\n // but return the export symbol (by calling getExportSymbolOfValueSymbolIfExported). That way\n // when the emitter comes back to it, it knows not to qualify the name if it was found in a containing scope.\n // NOTE: Nested ambient modules always should go to to 'locals' table to prevent their automatic merge\n // during global merging in the checker. Why? The only case when ambient module is permitted inside another module is module augmentation\n // and this case is specially handled. Module augmentations should only be merged with original module definition\n // and should never be merged directly with other augmentation, and the latter case would be possible if automatic merge is allowed.\n if (ts.isJSDocTypeAlias(node))\n ts.Debug.assert(ts.isInJSFile(node)); // We shouldn't add symbols for JSDoc nodes if not in a JS file.\n if (!ts.isAmbientModule(node) && (hasExportModifier || container.flags & 64 /* ExportContext */)) {\n if (!container.locals || (ts.hasSyntacticModifier(node, 512 /* Default */) && !getDeclarationName(node))) {\n return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes); // No local symbol for an unnamed default!\n }\n var exportKind = symbolFlags & 111551 /* Value */ ? 1048576 /* ExportValue */ : 0;\n var local = declareSymbol(container.locals, /*parent*/ undefined, node, exportKind, symbolExcludes);\n local.exportSymbol = declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n node.localSymbol = local;\n return local;\n }\n else {\n return declareSymbol(container.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);\n }\n }\n }\n function jsdocTreatAsExported(node) {\n if (node.parent && ts.isModuleDeclaration(node)) {\n node = node.parent;\n }\n if (!ts.isJSDocTypeAlias(node))\n return false;\n // jsdoc typedef handling is a bit of a doozy, but to summarize, treat the typedef as exported if:\n // 1. It has an explicit name (since by default typedefs are always directly exported, either at the top level or in a container), or\n if (!ts.isJSDocEnumTag(node) && !!node.fullName)\n return true;\n // 2. The thing a nameless typedef pulls its name from is implicitly a direct export (either by assignment or actual export flag).\n var declName = ts.getNameOfDeclaration(node);\n if (!declName)\n return false;\n if (ts.isPropertyAccessEntityNameExpression(declName.parent) && isTopLevelNamespaceAssignment(declName.parent))\n return true;\n if (ts.isDeclaration(declName.parent) && ts.getCombinedModifierFlags(declName.parent) & 1 /* Export */)\n return true;\n // This could potentially be simplified by having `delayedBindJSDocTypedefTag` pass in an override for `hasExportModifier`, since it should\n // already have calculated and branched on most of this.\n return false;\n }\n // All container nodes are kept on a linked list in declaration order. This list is used by\n // the getLocalNameOfContainer function in the type checker to validate that the local name\n // used for a container is unique.\n function bindContainer(node, containerFlags) {\n // Before we recurse into a node's children, we first save the existing parent, container\n // and block-container. Then after we pop out of processing the children, we restore\n // these saved values.\n var saveContainer = container;\n var saveThisParentContainer = thisParentContainer;\n var savedBlockScopeContainer = blockScopeContainer;\n // Depending on what kind of node this is, we may have to adjust the current container\n // and block-container. If the current node is a container, then it is automatically\n // considered the current block-container as well. Also, for containers that we know\n // may contain locals, we eagerly initialize the .locals field. We do this because\n // it's highly likely that the .locals will be needed to place some child in (for example,\n // a parameter, or variable declaration).\n //\n // However, we do not proactively create the .locals for block-containers because it's\n // totally normal and common for block-containers to never actually have a block-scoped\n // variable in them. We don't want to end up allocating an object for every 'block' we\n // run into when most of them won't be necessary.\n //\n // Finally, if this is a block-container, then we clear out any existing .locals object\n // it may contain within it. This happens in incremental scenarios. Because we can be\n // reusing a node from a previous compilation, that node may have had 'locals' created\n // for it. We must clear this so we don't accidentally move any stale data forward from\n // a previous compilation.\n if (containerFlags & 1 /* IsContainer */) {\n if (node.kind !== 212 /* ArrowFunction */) {\n thisParentContainer = container;\n }\n container = blockScopeContainer = node;\n if (containerFlags & 32 /* HasLocals */) {\n container.locals = ts.createSymbolTable();\n }\n addToContainerChain(container);\n }\n else if (containerFlags & 2 /* IsBlockScopedContainer */) {\n blockScopeContainer = node;\n blockScopeContainer.locals = undefined;\n }\n if (containerFlags & 4 /* IsControlFlowContainer */) {\n var saveCurrentFlow = currentFlow;\n var saveBreakTarget = currentBreakTarget;\n var saveContinueTarget = currentContinueTarget;\n var saveReturnTarget = currentReturnTarget;\n var saveExceptionTarget = currentExceptionTarget;\n var saveActiveLabelList = activeLabelList;\n var saveHasExplicitReturn = hasExplicitReturn;\n var isIIFE = containerFlags & 16 /* IsFunctionExpression */ && !ts.hasSyntacticModifier(node, 256 /* Async */) &&\n !node.asteriskToken && !!ts.getImmediatelyInvokedFunctionExpression(node);\n // A non-async, non-generator IIFE is considered part of the containing control flow. Return statements behave\n // similarly to break statements that exit to a label just past the statement body.\n if (!isIIFE) {\n currentFlow = initFlowNode({ flags: 2 /* Start */ });\n if (containerFlags & (16 /* IsFunctionExpression */ | 128 /* IsObjectLiteralOrClassExpressionMethod */)) {\n currentFlow.node = node;\n }\n }\n // We create a return control flow graph for IIFEs and constructors. For constructors\n // we use the return control flow graph in strict property initialization checks.\n currentReturnTarget = isIIFE || node.kind === 169 /* Constructor */ || node.kind === 168 /* ClassStaticBlockDeclaration */ || (ts.isInJSFile(node) && (node.kind === 254 /* FunctionDeclaration */ || node.kind === 211 /* FunctionExpression */)) ? createBranchLabel() : undefined;\n currentExceptionTarget = undefined;\n currentBreakTarget = undefined;\n currentContinueTarget = undefined;\n activeLabelList = undefined;\n hasExplicitReturn = false;\n bindChildren(node);\n // Reset all reachability check related flags on node (for incremental scenarios)\n node.flags &= ~2816 /* ReachabilityAndEmitFlags */;\n if (!(currentFlow.flags & 1 /* Unreachable */) && containerFlags & 8 /* IsFunctionLike */ && ts.nodeIsPresent(node.body)) {\n node.flags |= 256 /* HasImplicitReturn */;\n if (hasExplicitReturn)\n node.flags |= 512 /* HasExplicitReturn */;\n node.endFlowNode = currentFlow;\n }\n if (node.kind === 300 /* SourceFile */) {\n node.flags |= emitFlags;\n node.endFlowNode = currentFlow;\n }\n if (currentReturnTarget) {\n addAntecedent(currentReturnTarget, currentFlow);\n currentFlow = finishFlowLabel(currentReturnTarget);\n if (node.kind === 169 /* Constructor */ || node.kind === 168 /* ClassStaticBlockDeclaration */ || (ts.isInJSFile(node) && (node.kind === 254 /* FunctionDeclaration */ || node.kind === 211 /* FunctionExpression */))) {\n node.returnFlowNode = currentFlow;\n }\n }\n if (!isIIFE) {\n currentFlow = saveCurrentFlow;\n }\n currentBreakTarget = saveBreakTarget;\n currentContinueTarget = saveContinueTarget;\n currentReturnTarget = saveReturnTarget;\n currentExceptionTarget = saveExceptionTarget;\n activeLabelList = saveActiveLabelList;\n hasExplicitReturn = saveHasExplicitReturn;\n }\n else if (containerFlags & 64 /* IsInterface */) {\n seenThisKeyword = false;\n bindChildren(node);\n node.flags = seenThisKeyword ? node.flags | 128 /* ContainsThis */ : node.flags & ~128 /* ContainsThis */;\n }\n else {\n bindChildren(node);\n }\n container = saveContainer;\n thisParentContainer = saveThisParentContainer;\n blockScopeContainer = savedBlockScopeContainer;\n }\n function bindEachFunctionsFirst(nodes) {\n bindEach(nodes, function (n) { return n.kind === 254 /* FunctionDeclaration */ ? bind(n) : undefined; });\n bindEach(nodes, function (n) { return n.kind !== 254 /* FunctionDeclaration */ ? bind(n) : undefined; });\n }\n function bindEach(nodes, bindFunction) {\n if (bindFunction === void 0) { bindFunction = bind; }\n if (nodes === undefined) {\n return;\n }\n ts.forEach(nodes, bindFunction);\n }\n function bindEachChild(node) {\n ts.forEachChild(node, bind, bindEach);\n }\n function bindChildren(node) {\n var saveInAssignmentPattern = inAssignmentPattern;\n // Most nodes aren't valid in an assignment pattern, so we clear the value here\n // and set it before we descend into nodes that could actually be part of an assignment pattern.\n inAssignmentPattern = false;\n if (checkUnreachable(node)) {\n bindEachChild(node);\n bindJSDoc(node);\n inAssignmentPattern = saveInAssignmentPattern;\n return;\n }\n if (node.kind >= 235 /* FirstStatement */ && node.kind <= 251 /* LastStatement */ && !options.allowUnreachableCode) {\n node.flowNode = currentFlow;\n }\n switch (node.kind) {\n case 239 /* WhileStatement */:\n bindWhileStatement(node);\n break;\n case 238 /* DoStatement */:\n bindDoStatement(node);\n break;\n case 240 /* ForStatement */:\n bindForStatement(node);\n break;\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n bindForInOrForOfStatement(node);\n break;\n case 237 /* IfStatement */:\n bindIfStatement(node);\n break;\n case 245 /* ReturnStatement */:\n case 249 /* ThrowStatement */:\n bindReturnOrThrow(node);\n break;\n case 244 /* BreakStatement */:\n case 243 /* ContinueStatement */:\n bindBreakOrContinueStatement(node);\n break;\n case 250 /* TryStatement */:\n bindTryStatement(node);\n break;\n case 247 /* SwitchStatement */:\n bindSwitchStatement(node);\n break;\n case 261 /* CaseBlock */:\n bindCaseBlock(node);\n break;\n case 287 /* CaseClause */:\n bindCaseClause(node);\n break;\n case 236 /* ExpressionStatement */:\n bindExpressionStatement(node);\n break;\n case 248 /* LabeledStatement */:\n bindLabeledStatement(node);\n break;\n case 217 /* PrefixUnaryExpression */:\n bindPrefixUnaryExpressionFlow(node);\n break;\n case 218 /* PostfixUnaryExpression */:\n bindPostfixUnaryExpressionFlow(node);\n break;\n case 219 /* BinaryExpression */:\n if (ts.isDestructuringAssignment(node)) {\n // Carry over whether we are in an assignment pattern to\n // binary expressions that could actually be an initializer\n inAssignmentPattern = saveInAssignmentPattern;\n bindDestructuringAssignmentFlow(node);\n return;\n }\n bindBinaryExpressionFlow(node);\n break;\n case 213 /* DeleteExpression */:\n bindDeleteExpressionFlow(node);\n break;\n case 220 /* ConditionalExpression */:\n bindConditionalExpressionFlow(node);\n break;\n case 252 /* VariableDeclaration */:\n bindVariableDeclarationFlow(node);\n break;\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n bindAccessExpressionFlow(node);\n break;\n case 206 /* CallExpression */:\n bindCallExpressionFlow(node);\n break;\n case 228 /* NonNullExpression */:\n bindNonNullExpressionFlow(node);\n break;\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 334 /* JSDocEnumTag */:\n bindJSDocTypeAlias(node);\n break;\n // In source files and blocks, bind functions first to match hoisting that occurs at runtime\n case 300 /* SourceFile */: {\n bindEachFunctionsFirst(node.statements);\n bind(node.endOfFileToken);\n break;\n }\n case 233 /* Block */:\n case 260 /* ModuleBlock */:\n bindEachFunctionsFirst(node.statements);\n break;\n case 201 /* BindingElement */:\n bindBindingElementFlow(node);\n break;\n case 203 /* ObjectLiteralExpression */:\n case 202 /* ArrayLiteralExpression */:\n case 291 /* PropertyAssignment */:\n case 223 /* SpreadElement */:\n // Carry over whether we are in an assignment pattern of Object and Array literals\n // as well as their children that are valid assignment targets.\n inAssignmentPattern = saveInAssignmentPattern;\n // falls through\n default:\n bindEachChild(node);\n break;\n }\n bindJSDoc(node);\n inAssignmentPattern = saveInAssignmentPattern;\n }\n function isNarrowingExpression(expr) {\n switch (expr.kind) {\n case 79 /* Identifier */:\n case 80 /* PrivateIdentifier */:\n case 108 /* ThisKeyword */:\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return containsNarrowableReference(expr);\n case 206 /* CallExpression */:\n return hasNarrowableArgument(expr);\n case 210 /* ParenthesizedExpression */:\n case 228 /* NonNullExpression */:\n return isNarrowingExpression(expr.expression);\n case 219 /* BinaryExpression */:\n return isNarrowingBinaryExpression(expr);\n case 217 /* PrefixUnaryExpression */:\n return expr.operator === 53 /* ExclamationToken */ && isNarrowingExpression(expr.operand);\n case 214 /* TypeOfExpression */:\n return isNarrowingExpression(expr.expression);\n }\n return false;\n }\n function isNarrowableReference(expr) {\n return ts.isDottedName(expr)\n || (ts.isPropertyAccessExpression(expr) || ts.isNonNullExpression(expr) || ts.isParenthesizedExpression(expr)) && isNarrowableReference(expr.expression)\n || ts.isBinaryExpression(expr) && expr.operatorToken.kind === 27 /* CommaToken */ && isNarrowableReference(expr.right)\n || ts.isElementAccessExpression(expr) && ts.isStringOrNumericLiteralLike(expr.argumentExpression) && isNarrowableReference(expr.expression)\n || ts.isAssignmentExpression(expr) && isNarrowableReference(expr.left);\n }\n function containsNarrowableReference(expr) {\n return isNarrowableReference(expr) || ts.isOptionalChain(expr) && containsNarrowableReference(expr.expression);\n }\n function hasNarrowableArgument(expr) {\n if (expr.arguments) {\n for (var _i = 0, _a = expr.arguments; _i < _a.length; _i++) {\n var argument = _a[_i];\n if (containsNarrowableReference(argument)) {\n return true;\n }\n }\n }\n if (expr.expression.kind === 204 /* PropertyAccessExpression */ &&\n containsNarrowableReference(expr.expression.expression)) {\n return true;\n }\n return false;\n }\n function isNarrowingTypeofOperands(expr1, expr2) {\n return ts.isTypeOfExpression(expr1) && isNarrowableOperand(expr1.expression) && ts.isStringLiteralLike(expr2);\n }\n function isNarrowingBinaryExpression(expr) {\n switch (expr.operatorToken.kind) {\n case 63 /* EqualsToken */:\n case 75 /* BarBarEqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return containsNarrowableReference(expr.left);\n case 34 /* EqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n case 36 /* EqualsEqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n return isNarrowableOperand(expr.left) || isNarrowableOperand(expr.right) ||\n isNarrowingTypeofOperands(expr.right, expr.left) || isNarrowingTypeofOperands(expr.left, expr.right);\n case 102 /* InstanceOfKeyword */:\n return isNarrowableOperand(expr.left);\n case 101 /* InKeyword */:\n return isNarrowingExpression(expr.right);\n case 27 /* CommaToken */:\n return isNarrowingExpression(expr.right);\n }\n return false;\n }\n function isNarrowableOperand(expr) {\n switch (expr.kind) {\n case 210 /* ParenthesizedExpression */:\n return isNarrowableOperand(expr.expression);\n case 219 /* BinaryExpression */:\n switch (expr.operatorToken.kind) {\n case 63 /* EqualsToken */:\n return isNarrowableOperand(expr.left);\n case 27 /* CommaToken */:\n return isNarrowableOperand(expr.right);\n }\n }\n return containsNarrowableReference(expr);\n }\n function createBranchLabel() {\n return initFlowNode({ flags: 4 /* BranchLabel */, antecedents: undefined });\n }\n function createLoopLabel() {\n return initFlowNode({ flags: 8 /* LoopLabel */, antecedents: undefined });\n }\n function createReduceLabel(target, antecedents, antecedent) {\n return initFlowNode({ flags: 1024 /* ReduceLabel */, target: target, antecedents: antecedents, antecedent: antecedent });\n }\n function setFlowNodeReferenced(flow) {\n // On first reference we set the Referenced flag, thereafter we set the Shared flag\n flow.flags |= flow.flags & 2048 /* Referenced */ ? 4096 /* Shared */ : 2048 /* Referenced */;\n }\n function addAntecedent(label, antecedent) {\n if (!(antecedent.flags & 1 /* Unreachable */) && !ts.contains(label.antecedents, antecedent)) {\n (label.antecedents || (label.antecedents = [])).push(antecedent);\n setFlowNodeReferenced(antecedent);\n }\n }\n function createFlowCondition(flags, antecedent, expression) {\n if (antecedent.flags & 1 /* Unreachable */) {\n return antecedent;\n }\n if (!expression) {\n return flags & 32 /* TrueCondition */ ? antecedent : unreachableFlow;\n }\n if ((expression.kind === 110 /* TrueKeyword */ && flags & 64 /* FalseCondition */ ||\n expression.kind === 95 /* FalseKeyword */ && flags & 32 /* TrueCondition */) &&\n !ts.isExpressionOfOptionalChainRoot(expression) && !ts.isNullishCoalesce(expression.parent)) {\n return unreachableFlow;\n }\n if (!isNarrowingExpression(expression)) {\n return antecedent;\n }\n setFlowNodeReferenced(antecedent);\n return initFlowNode({ flags: flags, antecedent: antecedent, node: expression });\n }\n function createFlowSwitchClause(antecedent, switchStatement, clauseStart, clauseEnd) {\n setFlowNodeReferenced(antecedent);\n return initFlowNode({ flags: 128 /* SwitchClause */, antecedent: antecedent, switchStatement: switchStatement, clauseStart: clauseStart, clauseEnd: clauseEnd });\n }\n function createFlowMutation(flags, antecedent, node) {\n setFlowNodeReferenced(antecedent);\n var result = initFlowNode({ flags: flags, antecedent: antecedent, node: node });\n if (currentExceptionTarget) {\n addAntecedent(currentExceptionTarget, result);\n }\n return result;\n }\n function createFlowCall(antecedent, node) {\n setFlowNodeReferenced(antecedent);\n return initFlowNode({ flags: 512 /* Call */, antecedent: antecedent, node: node });\n }\n function finishFlowLabel(flow) {\n var antecedents = flow.antecedents;\n if (!antecedents) {\n return unreachableFlow;\n }\n if (antecedents.length === 1) {\n return antecedents[0];\n }\n return flow;\n }\n function isStatementCondition(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 237 /* IfStatement */:\n case 239 /* WhileStatement */:\n case 238 /* DoStatement */:\n return parent.expression === node;\n case 240 /* ForStatement */:\n case 220 /* ConditionalExpression */:\n return parent.condition === node;\n }\n return false;\n }\n function isLogicalExpression(node) {\n while (true) {\n if (node.kind === 210 /* ParenthesizedExpression */) {\n node = node.expression;\n }\n else if (node.kind === 217 /* PrefixUnaryExpression */ && node.operator === 53 /* ExclamationToken */) {\n node = node.operand;\n }\n else {\n return node.kind === 219 /* BinaryExpression */ && (node.operatorToken.kind === 55 /* AmpersandAmpersandToken */ ||\n node.operatorToken.kind === 56 /* BarBarToken */ ||\n node.operatorToken.kind === 60 /* QuestionQuestionToken */);\n }\n }\n }\n function isLogicalAssignmentExpression(node) {\n node = ts.skipParentheses(node);\n return ts.isBinaryExpression(node) && ts.isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind);\n }\n function isTopLevelLogicalExpression(node) {\n while (ts.isParenthesizedExpression(node.parent) ||\n ts.isPrefixUnaryExpression(node.parent) && node.parent.operator === 53 /* ExclamationToken */) {\n node = node.parent;\n }\n return !isStatementCondition(node) &&\n !isLogicalAssignmentExpression(node.parent) &&\n !isLogicalExpression(node.parent) &&\n !(ts.isOptionalChain(node.parent) && node.parent.expression === node);\n }\n function doWithConditionalBranches(action, value, trueTarget, falseTarget) {\n var savedTrueTarget = currentTrueTarget;\n var savedFalseTarget = currentFalseTarget;\n currentTrueTarget = trueTarget;\n currentFalseTarget = falseTarget;\n action(value);\n currentTrueTarget = savedTrueTarget;\n currentFalseTarget = savedFalseTarget;\n }\n function bindCondition(node, trueTarget, falseTarget) {\n doWithConditionalBranches(bind, node, trueTarget, falseTarget);\n if (!node || !isLogicalAssignmentExpression(node) && !isLogicalExpression(node) && !(ts.isOptionalChain(node) && ts.isOutermostOptionalChain(node))) {\n addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node));\n addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node));\n }\n }\n function bindIterativeStatement(node, breakTarget, continueTarget) {\n var saveBreakTarget = currentBreakTarget;\n var saveContinueTarget = currentContinueTarget;\n currentBreakTarget = breakTarget;\n currentContinueTarget = continueTarget;\n bind(node);\n currentBreakTarget = saveBreakTarget;\n currentContinueTarget = saveContinueTarget;\n }\n function setContinueTarget(node, target) {\n var label = activeLabelList;\n while (label && node.parent.kind === 248 /* LabeledStatement */) {\n label.continueTarget = target;\n label = label.next;\n node = node.parent;\n }\n return target;\n }\n function bindWhileStatement(node) {\n var preWhileLabel = setContinueTarget(node, createLoopLabel());\n var preBodyLabel = createBranchLabel();\n var postWhileLabel = createBranchLabel();\n addAntecedent(preWhileLabel, currentFlow);\n currentFlow = preWhileLabel;\n bindCondition(node.expression, preBodyLabel, postWhileLabel);\n currentFlow = finishFlowLabel(preBodyLabel);\n bindIterativeStatement(node.statement, postWhileLabel, preWhileLabel);\n addAntecedent(preWhileLabel, currentFlow);\n currentFlow = finishFlowLabel(postWhileLabel);\n }\n function bindDoStatement(node) {\n var preDoLabel = createLoopLabel();\n var preConditionLabel = setContinueTarget(node, createBranchLabel());\n var postDoLabel = createBranchLabel();\n addAntecedent(preDoLabel, currentFlow);\n currentFlow = preDoLabel;\n bindIterativeStatement(node.statement, postDoLabel, preConditionLabel);\n addAntecedent(preConditionLabel, currentFlow);\n currentFlow = finishFlowLabel(preConditionLabel);\n bindCondition(node.expression, preDoLabel, postDoLabel);\n currentFlow = finishFlowLabel(postDoLabel);\n }\n function bindForStatement(node) {\n var preLoopLabel = setContinueTarget(node, createLoopLabel());\n var preBodyLabel = createBranchLabel();\n var postLoopLabel = createBranchLabel();\n bind(node.initializer);\n addAntecedent(preLoopLabel, currentFlow);\n currentFlow = preLoopLabel;\n bindCondition(node.condition, preBodyLabel, postLoopLabel);\n currentFlow = finishFlowLabel(preBodyLabel);\n bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);\n bind(node.incrementor);\n addAntecedent(preLoopLabel, currentFlow);\n currentFlow = finishFlowLabel(postLoopLabel);\n }\n function bindForInOrForOfStatement(node) {\n var preLoopLabel = setContinueTarget(node, createLoopLabel());\n var postLoopLabel = createBranchLabel();\n bind(node.expression);\n addAntecedent(preLoopLabel, currentFlow);\n currentFlow = preLoopLabel;\n if (node.kind === 242 /* ForOfStatement */) {\n bind(node.awaitModifier);\n }\n addAntecedent(postLoopLabel, currentFlow);\n bind(node.initializer);\n if (node.initializer.kind !== 253 /* VariableDeclarationList */) {\n bindAssignmentTargetFlow(node.initializer);\n }\n bindIterativeStatement(node.statement, postLoopLabel, preLoopLabel);\n addAntecedent(preLoopLabel, currentFlow);\n currentFlow = finishFlowLabel(postLoopLabel);\n }\n function bindIfStatement(node) {\n var thenLabel = createBranchLabel();\n var elseLabel = createBranchLabel();\n var postIfLabel = createBranchLabel();\n bindCondition(node.expression, thenLabel, elseLabel);\n currentFlow = finishFlowLabel(thenLabel);\n bind(node.thenStatement);\n addAntecedent(postIfLabel, currentFlow);\n currentFlow = finishFlowLabel(elseLabel);\n bind(node.elseStatement);\n addAntecedent(postIfLabel, currentFlow);\n currentFlow = finishFlowLabel(postIfLabel);\n }\n function bindReturnOrThrow(node) {\n bind(node.expression);\n if (node.kind === 245 /* ReturnStatement */) {\n hasExplicitReturn = true;\n if (currentReturnTarget) {\n addAntecedent(currentReturnTarget, currentFlow);\n }\n }\n currentFlow = unreachableFlow;\n }\n function findActiveLabel(name) {\n for (var label = activeLabelList; label; label = label.next) {\n if (label.name === name) {\n return label;\n }\n }\n return undefined;\n }\n function bindBreakOrContinueFlow(node, breakTarget, continueTarget) {\n var flowLabel = node.kind === 244 /* BreakStatement */ ? breakTarget : continueTarget;\n if (flowLabel) {\n addAntecedent(flowLabel, currentFlow);\n currentFlow = unreachableFlow;\n }\n }\n function bindBreakOrContinueStatement(node) {\n bind(node.label);\n if (node.label) {\n var activeLabel = findActiveLabel(node.label.escapedText);\n if (activeLabel) {\n activeLabel.referenced = true;\n bindBreakOrContinueFlow(node, activeLabel.breakTarget, activeLabel.continueTarget);\n }\n }\n else {\n bindBreakOrContinueFlow(node, currentBreakTarget, currentContinueTarget);\n }\n }\n function bindTryStatement(node) {\n // We conservatively assume that *any* code in the try block can cause an exception, but we only need\n // to track code that causes mutations (because only mutations widen the possible control flow type of\n // a variable). The exceptionLabel is the target label for control flows that result from exceptions.\n // We add all mutation flow nodes as antecedents of this label such that we can analyze them as possible\n // antecedents of the start of catch or finally blocks. Furthermore, we add the current control flow to\n // represent exceptions that occur before any mutations.\n var saveReturnTarget = currentReturnTarget;\n var saveExceptionTarget = currentExceptionTarget;\n var normalExitLabel = createBranchLabel();\n var returnLabel = createBranchLabel();\n var exceptionLabel = createBranchLabel();\n if (node.finallyBlock) {\n currentReturnTarget = returnLabel;\n }\n addAntecedent(exceptionLabel, currentFlow);\n currentExceptionTarget = exceptionLabel;\n bind(node.tryBlock);\n addAntecedent(normalExitLabel, currentFlow);\n if (node.catchClause) {\n // Start of catch clause is the target of exceptions from try block.\n currentFlow = finishFlowLabel(exceptionLabel);\n // The currentExceptionTarget now represents control flows from exceptions in the catch clause.\n // Effectively, in a try-catch-finally, if an exception occurs in the try block, the catch block\n // acts like a second try block.\n exceptionLabel = createBranchLabel();\n addAntecedent(exceptionLabel, currentFlow);\n currentExceptionTarget = exceptionLabel;\n bind(node.catchClause);\n addAntecedent(normalExitLabel, currentFlow);\n }\n currentReturnTarget = saveReturnTarget;\n currentExceptionTarget = saveExceptionTarget;\n if (node.finallyBlock) {\n // Possible ways control can reach the finally block:\n // 1) Normal completion of try block of a try-finally or try-catch-finally\n // 2) Normal completion of catch block (following exception in try block) of a try-catch-finally\n // 3) Return in try or catch block of a try-finally or try-catch-finally\n // 4) Exception in try block of a try-finally\n // 5) Exception in catch block of a try-catch-finally\n // When analyzing a control flow graph that starts inside a finally block we want to consider all\n // five possibilities above. However, when analyzing a control flow graph that starts outside (past)\n // the finally block, we only want to consider the first two (if we're past a finally block then it\n // must have completed normally). Likewise, when analyzing a control flow graph from return statements\n // in try or catch blocks in an IIFE, we only want to consider the third. To make this possible, we\n // inject a ReduceLabel node into the control flow graph. This node contains an alternate reduced\n // set of antecedents for the pre-finally label. As control flow analysis passes by a ReduceLabel\n // node, the pre-finally label is temporarily switched to the reduced antecedent set.\n var finallyLabel = createBranchLabel();\n finallyLabel.antecedents = ts.concatenate(ts.concatenate(normalExitLabel.antecedents, exceptionLabel.antecedents), returnLabel.antecedents);\n currentFlow = finallyLabel;\n bind(node.finallyBlock);\n if (currentFlow.flags & 1 /* Unreachable */) {\n // If the end of the finally block is unreachable, the end of the entire try statement is unreachable.\n currentFlow = unreachableFlow;\n }\n else {\n // If we have an IIFE return target and return statements in the try or catch blocks, add a control\n // flow that goes back through the finally block and back through only the return statements.\n if (currentReturnTarget && returnLabel.antecedents) {\n addAntecedent(currentReturnTarget, createReduceLabel(finallyLabel, returnLabel.antecedents, currentFlow));\n }\n // If we have an outer exception target (i.e. a containing try-finally or try-catch-finally), add a\n // control flow that goes back through the finally blok and back through each possible exception source.\n if (currentExceptionTarget && exceptionLabel.antecedents) {\n addAntecedent(currentExceptionTarget, createReduceLabel(finallyLabel, exceptionLabel.antecedents, currentFlow));\n }\n // If the end of the finally block is reachable, but the end of the try and catch blocks are not,\n // convert the current flow to unreachable. For example, 'try { return 1; } finally { ... }' should\n // result in an unreachable current control flow.\n currentFlow = normalExitLabel.antecedents ? createReduceLabel(finallyLabel, normalExitLabel.antecedents, currentFlow) : unreachableFlow;\n }\n }\n else {\n currentFlow = finishFlowLabel(normalExitLabel);\n }\n }\n function bindSwitchStatement(node) {\n var postSwitchLabel = createBranchLabel();\n bind(node.expression);\n var saveBreakTarget = currentBreakTarget;\n var savePreSwitchCaseFlow = preSwitchCaseFlow;\n currentBreakTarget = postSwitchLabel;\n preSwitchCaseFlow = currentFlow;\n bind(node.caseBlock);\n addAntecedent(postSwitchLabel, currentFlow);\n var hasDefault = ts.forEach(node.caseBlock.clauses, function (c) { return c.kind === 288 /* DefaultClause */; });\n // We mark a switch statement as possibly exhaustive if it has no default clause and if all\n // case clauses have unreachable end points (e.g. they all return). Note, we no longer need\n // this property in control flow analysis, it's there only for backwards compatibility.\n node.possiblyExhaustive = !hasDefault && !postSwitchLabel.antecedents;\n if (!hasDefault) {\n addAntecedent(postSwitchLabel, createFlowSwitchClause(preSwitchCaseFlow, node, 0, 0));\n }\n currentBreakTarget = saveBreakTarget;\n preSwitchCaseFlow = savePreSwitchCaseFlow;\n currentFlow = finishFlowLabel(postSwitchLabel);\n }\n function bindCaseBlock(node) {\n var clauses = node.clauses;\n var isNarrowingSwitch = isNarrowingExpression(node.parent.expression);\n var fallthroughFlow = unreachableFlow;\n for (var i = 0; i < clauses.length; i++) {\n var clauseStart = i;\n while (!clauses[i].statements.length && i + 1 < clauses.length) {\n bind(clauses[i]);\n i++;\n }\n var preCaseLabel = createBranchLabel();\n addAntecedent(preCaseLabel, isNarrowingSwitch ? createFlowSwitchClause(preSwitchCaseFlow, node.parent, clauseStart, i + 1) : preSwitchCaseFlow);\n addAntecedent(preCaseLabel, fallthroughFlow);\n currentFlow = finishFlowLabel(preCaseLabel);\n var clause = clauses[i];\n bind(clause);\n fallthroughFlow = currentFlow;\n if (!(currentFlow.flags & 1 /* Unreachable */) && i !== clauses.length - 1 && options.noFallthroughCasesInSwitch) {\n clause.fallthroughFlowNode = currentFlow;\n }\n }\n }\n function bindCaseClause(node) {\n var saveCurrentFlow = currentFlow;\n currentFlow = preSwitchCaseFlow;\n bind(node.expression);\n currentFlow = saveCurrentFlow;\n bindEach(node.statements);\n }\n function bindExpressionStatement(node) {\n bind(node.expression);\n maybeBindExpressionFlowIfCall(node.expression);\n }\n function maybeBindExpressionFlowIfCall(node) {\n // A top level or LHS of comma expression call expression with a dotted function name and at least one argument\n // is potentially an assertion and is therefore included in the control flow.\n if (node.kind === 206 /* CallExpression */) {\n var call = node;\n if (call.expression.kind !== 106 /* SuperKeyword */ && ts.isDottedName(call.expression)) {\n currentFlow = createFlowCall(currentFlow, call);\n }\n }\n }\n function bindLabeledStatement(node) {\n var postStatementLabel = createBranchLabel();\n activeLabelList = {\n next: activeLabelList,\n name: node.label.escapedText,\n breakTarget: postStatementLabel,\n continueTarget: undefined,\n referenced: false\n };\n bind(node.label);\n bind(node.statement);\n if (!activeLabelList.referenced && !options.allowUnusedLabels) {\n errorOrSuggestionOnNode(ts.unusedLabelIsError(options), node.label, ts.Diagnostics.Unused_label);\n }\n activeLabelList = activeLabelList.next;\n addAntecedent(postStatementLabel, currentFlow);\n currentFlow = finishFlowLabel(postStatementLabel);\n }\n function bindDestructuringTargetFlow(node) {\n if (node.kind === 219 /* BinaryExpression */ && node.operatorToken.kind === 63 /* EqualsToken */) {\n bindAssignmentTargetFlow(node.left);\n }\n else {\n bindAssignmentTargetFlow(node);\n }\n }\n function bindAssignmentTargetFlow(node) {\n if (isNarrowableReference(node)) {\n currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node);\n }\n else if (node.kind === 202 /* ArrayLiteralExpression */) {\n for (var _i = 0, _a = node.elements; _i < _a.length; _i++) {\n var e = _a[_i];\n if (e.kind === 223 /* SpreadElement */) {\n bindAssignmentTargetFlow(e.expression);\n }\n else {\n bindDestructuringTargetFlow(e);\n }\n }\n }\n else if (node.kind === 203 /* ObjectLiteralExpression */) {\n for (var _b = 0, _c = node.properties; _b < _c.length; _b++) {\n var p = _c[_b];\n if (p.kind === 291 /* PropertyAssignment */) {\n bindDestructuringTargetFlow(p.initializer);\n }\n else if (p.kind === 292 /* ShorthandPropertyAssignment */) {\n bindAssignmentTargetFlow(p.name);\n }\n else if (p.kind === 293 /* SpreadAssignment */) {\n bindAssignmentTargetFlow(p.expression);\n }\n }\n }\n }\n function bindLogicalLikeExpression(node, trueTarget, falseTarget) {\n var preRightLabel = createBranchLabel();\n if (node.operatorToken.kind === 55 /* AmpersandAmpersandToken */ || node.operatorToken.kind === 76 /* AmpersandAmpersandEqualsToken */) {\n bindCondition(node.left, preRightLabel, falseTarget);\n }\n else {\n bindCondition(node.left, trueTarget, preRightLabel);\n }\n currentFlow = finishFlowLabel(preRightLabel);\n bind(node.operatorToken);\n if (ts.isLogicalOrCoalescingAssignmentOperator(node.operatorToken.kind)) {\n doWithConditionalBranches(bind, node.right, trueTarget, falseTarget);\n bindAssignmentTargetFlow(node.left);\n addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node));\n addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node));\n }\n else {\n bindCondition(node.right, trueTarget, falseTarget);\n }\n }\n function bindPrefixUnaryExpressionFlow(node) {\n if (node.operator === 53 /* ExclamationToken */) {\n var saveTrueTarget = currentTrueTarget;\n currentTrueTarget = currentFalseTarget;\n currentFalseTarget = saveTrueTarget;\n bindEachChild(node);\n currentFalseTarget = currentTrueTarget;\n currentTrueTarget = saveTrueTarget;\n }\n else {\n bindEachChild(node);\n if (node.operator === 45 /* PlusPlusToken */ || node.operator === 46 /* MinusMinusToken */) {\n bindAssignmentTargetFlow(node.operand);\n }\n }\n }\n function bindPostfixUnaryExpressionFlow(node) {\n bindEachChild(node);\n if (node.operator === 45 /* PlusPlusToken */ || node.operator === 46 /* MinusMinusToken */) {\n bindAssignmentTargetFlow(node.operand);\n }\n }\n function bindDestructuringAssignmentFlow(node) {\n if (inAssignmentPattern) {\n inAssignmentPattern = false;\n bind(node.operatorToken);\n bind(node.right);\n inAssignmentPattern = true;\n bind(node.left);\n }\n else {\n inAssignmentPattern = true;\n bind(node.left);\n inAssignmentPattern = false;\n bind(node.operatorToken);\n bind(node.right);\n }\n bindAssignmentTargetFlow(node.left);\n }\n function createBindBinaryExpressionFlow() {\n return ts.createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, /*foldState*/ undefined);\n function onEnter(node, state) {\n if (state) {\n state.stackIndex++;\n // Emulate the work that `bind` does before reaching `bindChildren`. A normal call to\n // `bindBinaryExpressionFlow` will already have done this work.\n ts.setParent(node, parent);\n var saveInStrictMode = inStrictMode;\n bindWorker(node);\n var saveParent = parent;\n parent = node;\n state.skip = false;\n state.inStrictModeStack[state.stackIndex] = saveInStrictMode;\n state.parentStack[state.stackIndex] = saveParent;\n }\n else {\n state = {\n stackIndex: 0,\n skip: false,\n inStrictModeStack: [undefined],\n parentStack: [undefined]\n };\n }\n // TODO: bindLogicalExpression is recursive - if we want to handle deeply nested `&&` expressions\n // we'll need to handle the `bindLogicalExpression` scenarios in this state machine, too\n // For now, though, since the common cases are chained `+`, leaving it recursive is fine\n var operator = node.operatorToken.kind;\n if (operator === 55 /* AmpersandAmpersandToken */ ||\n operator === 56 /* BarBarToken */ ||\n operator === 60 /* QuestionQuestionToken */ ||\n ts.isLogicalOrCoalescingAssignmentOperator(operator)) {\n if (isTopLevelLogicalExpression(node)) {\n var postExpressionLabel = createBranchLabel();\n bindLogicalLikeExpression(node, postExpressionLabel, postExpressionLabel);\n currentFlow = finishFlowLabel(postExpressionLabel);\n }\n else {\n bindLogicalLikeExpression(node, currentTrueTarget, currentFalseTarget);\n }\n state.skip = true;\n }\n return state;\n }\n function onLeft(left, state, _node) {\n if (!state.skip) {\n return maybeBind(left);\n }\n }\n function onOperator(operatorToken, state, node) {\n if (!state.skip) {\n if (operatorToken.kind === 27 /* CommaToken */) {\n maybeBindExpressionFlowIfCall(node.left);\n }\n bind(operatorToken);\n }\n }\n function onRight(right, state, _node) {\n if (!state.skip) {\n return maybeBind(right);\n }\n }\n function onExit(node, state) {\n if (!state.skip) {\n var operator = node.operatorToken.kind;\n if (ts.isAssignmentOperator(operator) && !ts.isAssignmentTarget(node)) {\n bindAssignmentTargetFlow(node.left);\n if (operator === 63 /* EqualsToken */ && node.left.kind === 205 /* ElementAccessExpression */) {\n var elementAccess = node.left;\n if (isNarrowableOperand(elementAccess.expression)) {\n currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node);\n }\n }\n }\n }\n var savedInStrictMode = state.inStrictModeStack[state.stackIndex];\n var savedParent = state.parentStack[state.stackIndex];\n if (savedInStrictMode !== undefined) {\n inStrictMode = savedInStrictMode;\n }\n if (savedParent !== undefined) {\n parent = savedParent;\n }\n state.skip = false;\n state.stackIndex--;\n }\n function maybeBind(node) {\n if (node && ts.isBinaryExpression(node) && !ts.isDestructuringAssignment(node)) {\n return node;\n }\n bind(node);\n }\n }\n function bindDeleteExpressionFlow(node) {\n bindEachChild(node);\n if (node.expression.kind === 204 /* PropertyAccessExpression */) {\n bindAssignmentTargetFlow(node.expression);\n }\n }\n function bindConditionalExpressionFlow(node) {\n var trueLabel = createBranchLabel();\n var falseLabel = createBranchLabel();\n var postExpressionLabel = createBranchLabel();\n bindCondition(node.condition, trueLabel, falseLabel);\n currentFlow = finishFlowLabel(trueLabel);\n bind(node.questionToken);\n bind(node.whenTrue);\n addAntecedent(postExpressionLabel, currentFlow);\n currentFlow = finishFlowLabel(falseLabel);\n bind(node.colonToken);\n bind(node.whenFalse);\n addAntecedent(postExpressionLabel, currentFlow);\n currentFlow = finishFlowLabel(postExpressionLabel);\n }\n function bindInitializedVariableFlow(node) {\n var name = !ts.isOmittedExpression(node) ? node.name : undefined;\n if (ts.isBindingPattern(name)) {\n for (var _i = 0, _a = name.elements; _i < _a.length; _i++) {\n var child = _a[_i];\n bindInitializedVariableFlow(child);\n }\n }\n else {\n currentFlow = createFlowMutation(16 /* Assignment */, currentFlow, node);\n }\n }\n function bindVariableDeclarationFlow(node) {\n bindEachChild(node);\n if (node.initializer || ts.isForInOrOfStatement(node.parent.parent)) {\n bindInitializedVariableFlow(node);\n }\n }\n function bindBindingElementFlow(node) {\n if (ts.isBindingPattern(node.name)) {\n // When evaluating a binding pattern, the initializer is evaluated before the binding pattern, per:\n // - https://tc39.es/ecma262/#sec-destructuring-binding-patterns-runtime-semantics-iteratorbindinginitialization\n // - `BindingElement: BindingPattern Initializer?`\n // - https://tc39.es/ecma262/#sec-runtime-semantics-keyedbindinginitialization\n // - `BindingElement: BindingPattern Initializer?`\n bindEach(node.decorators);\n bindEach(node.modifiers);\n bind(node.dotDotDotToken);\n bind(node.propertyName);\n bind(node.initializer);\n bind(node.name);\n }\n else {\n bindEachChild(node);\n }\n }\n function bindJSDocTypeAlias(node) {\n bind(node.tagName);\n if (node.kind !== 334 /* JSDocEnumTag */ && node.fullName) {\n // don't bind the type name yet; that's delayed until delayedBindJSDocTypedefTag\n ts.setParent(node.fullName, node);\n ts.setParentRecursive(node.fullName, /*incremental*/ false);\n }\n if (typeof node.comment !== \"string\") {\n bindEach(node.comment);\n }\n }\n function bindJSDocClassTag(node) {\n bindEachChild(node);\n var host = ts.getHostSignatureFromJSDoc(node);\n if (host && host.kind !== 167 /* MethodDeclaration */) {\n addDeclarationToSymbol(host.symbol, host, 32 /* Class */);\n }\n }\n function bindOptionalExpression(node, trueTarget, falseTarget) {\n doWithConditionalBranches(bind, node, trueTarget, falseTarget);\n if (!ts.isOptionalChain(node) || ts.isOutermostOptionalChain(node)) {\n addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node));\n addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node));\n }\n }\n function bindOptionalChainRest(node) {\n switch (node.kind) {\n case 204 /* PropertyAccessExpression */:\n bind(node.questionDotToken);\n bind(node.name);\n break;\n case 205 /* ElementAccessExpression */:\n bind(node.questionDotToken);\n bind(node.argumentExpression);\n break;\n case 206 /* CallExpression */:\n bind(node.questionDotToken);\n bindEach(node.typeArguments);\n bindEach(node.arguments);\n break;\n }\n }\n function bindOptionalChain(node, trueTarget, falseTarget) {\n // For an optional chain, we emulate the behavior of a logical expression:\n //\n // a?.b -> a && a.b\n // a?.b.c -> a && a.b.c\n // a?.b?.c -> a && a.b && a.b.c\n // a?.[x = 1] -> a && a[x = 1]\n //\n // To do this we descend through the chain until we reach the root of a chain (the expression with a `?.`)\n // and build it's CFA graph as if it were the first condition (`a && ...`). Then we bind the rest\n // of the node as part of the \"true\" branch, and continue to do so as we ascend back up to the outermost\n // chain node. We then treat the entire node as the right side of the expression.\n var preChainLabel = ts.isOptionalChainRoot(node) ? createBranchLabel() : undefined;\n bindOptionalExpression(node.expression, preChainLabel || trueTarget, falseTarget);\n if (preChainLabel) {\n currentFlow = finishFlowLabel(preChainLabel);\n }\n doWithConditionalBranches(bindOptionalChainRest, node, trueTarget, falseTarget);\n if (ts.isOutermostOptionalChain(node)) {\n addAntecedent(trueTarget, createFlowCondition(32 /* TrueCondition */, currentFlow, node));\n addAntecedent(falseTarget, createFlowCondition(64 /* FalseCondition */, currentFlow, node));\n }\n }\n function bindOptionalChainFlow(node) {\n if (isTopLevelLogicalExpression(node)) {\n var postExpressionLabel = createBranchLabel();\n bindOptionalChain(node, postExpressionLabel, postExpressionLabel);\n currentFlow = finishFlowLabel(postExpressionLabel);\n }\n else {\n bindOptionalChain(node, currentTrueTarget, currentFalseTarget);\n }\n }\n function bindNonNullExpressionFlow(node) {\n if (ts.isOptionalChain(node)) {\n bindOptionalChainFlow(node);\n }\n else {\n bindEachChild(node);\n }\n }\n function bindAccessExpressionFlow(node) {\n if (ts.isOptionalChain(node)) {\n bindOptionalChainFlow(node);\n }\n else {\n bindEachChild(node);\n }\n }\n function bindCallExpressionFlow(node) {\n if (ts.isOptionalChain(node)) {\n bindOptionalChainFlow(node);\n }\n else {\n // If the target of the call expression is a function expression or arrow function we have\n // an immediately invoked function expression (IIFE). Initialize the flowNode property to\n // the current control flow (which includes evaluation of the IIFE arguments).\n var expr = ts.skipParentheses(node.expression);\n if (expr.kind === 211 /* FunctionExpression */ || expr.kind === 212 /* ArrowFunction */) {\n bindEach(node.typeArguments);\n bindEach(node.arguments);\n bind(node.expression);\n }\n else {\n bindEachChild(node);\n if (node.expression.kind === 106 /* SuperKeyword */) {\n currentFlow = createFlowCall(currentFlow, node);\n }\n }\n }\n if (node.expression.kind === 204 /* PropertyAccessExpression */) {\n var propertyAccess = node.expression;\n if (ts.isIdentifier(propertyAccess.name) && isNarrowableOperand(propertyAccess.expression) && ts.isPushOrUnshiftIdentifier(propertyAccess.name)) {\n currentFlow = createFlowMutation(256 /* ArrayMutation */, currentFlow, node);\n }\n }\n }\n function getContainerFlags(node) {\n switch (node.kind) {\n case 224 /* ClassExpression */:\n case 255 /* ClassDeclaration */:\n case 258 /* EnumDeclaration */:\n case 203 /* ObjectLiteralExpression */:\n case 180 /* TypeLiteral */:\n case 317 /* JSDocTypeLiteral */:\n case 284 /* JsxAttributes */:\n return 1 /* IsContainer */;\n case 256 /* InterfaceDeclaration */:\n return 1 /* IsContainer */ | 64 /* IsInterface */;\n case 259 /* ModuleDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 193 /* MappedType */:\n return 1 /* IsContainer */ | 32 /* HasLocals */;\n case 300 /* SourceFile */:\n return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */;\n case 167 /* MethodDeclaration */:\n if (ts.isObjectLiteralOrClassExpressionMethod(node)) {\n return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 128 /* IsObjectLiteralOrClassExpressionMethod */;\n }\n // falls through\n case 169 /* Constructor */:\n case 254 /* FunctionDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 172 /* CallSignature */:\n case 318 /* JSDocSignature */:\n case 312 /* JSDocFunctionType */:\n case 177 /* FunctionType */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n case 178 /* ConstructorType */:\n case 168 /* ClassStaticBlockDeclaration */:\n return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */;\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return 1 /* IsContainer */ | 4 /* IsControlFlowContainer */ | 32 /* HasLocals */ | 8 /* IsFunctionLike */ | 16 /* IsFunctionExpression */;\n case 260 /* ModuleBlock */:\n return 4 /* IsControlFlowContainer */;\n case 165 /* PropertyDeclaration */:\n return node.initializer ? 4 /* IsControlFlowContainer */ : 0;\n case 290 /* CatchClause */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 261 /* CaseBlock */:\n return 2 /* IsBlockScopedContainer */;\n case 233 /* Block */:\n // do not treat blocks directly inside a function as a block-scoped-container.\n // Locals that reside in this block should go to the function locals. Otherwise 'x'\n // would not appear to be a redeclaration of a block scoped local in the following\n // example:\n //\n // function foo() {\n // var x;\n // let x;\n // }\n //\n // If we placed 'var x' into the function locals and 'let x' into the locals of\n // the block, then there would be no collision.\n //\n // By not creating a new block-scoped-container here, we ensure that both 'var x'\n // and 'let x' go into the Function-container's locals, and we do get a collision\n // conflict.\n return ts.isFunctionLike(node.parent) || ts.isClassStaticBlockDeclaration(node.parent) ? 0 /* None */ : 2 /* IsBlockScopedContainer */;\n }\n return 0 /* None */;\n }\n function addToContainerChain(next) {\n if (lastContainer) {\n lastContainer.nextContainer = next;\n }\n lastContainer = next;\n }\n function declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes) {\n switch (container.kind) {\n // Modules, source files, and classes need specialized handling for how their\n // members are declared (for example, a member of a class will go into a specific\n // symbol table depending on if it is static or not). We defer to specialized\n // handlers to take care of declaring these child members.\n case 259 /* ModuleDeclaration */:\n return declareModuleMember(node, symbolFlags, symbolExcludes);\n case 300 /* SourceFile */:\n return declareSourceFileMember(node, symbolFlags, symbolExcludes);\n case 224 /* ClassExpression */:\n case 255 /* ClassDeclaration */:\n return declareClassMember(node, symbolFlags, symbolExcludes);\n case 258 /* EnumDeclaration */:\n return declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes);\n case 180 /* TypeLiteral */:\n case 317 /* JSDocTypeLiteral */:\n case 203 /* ObjectLiteralExpression */:\n case 256 /* InterfaceDeclaration */:\n case 284 /* JsxAttributes */:\n // Interface/Object-types always have their children added to the 'members' of\n // their container. They are only accessible through an instance of their\n // container, and are never in scope otherwise (even inside the body of the\n // object / type / interface declaring them). An exception is type parameters,\n // which are in scope without qualification (similar to 'locals').\n return declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes);\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 318 /* JSDocSignature */:\n case 174 /* IndexSignature */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 312 /* JSDocFunctionType */:\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 168 /* ClassStaticBlockDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 193 /* MappedType */:\n // All the children of these container types are never visible through another\n // symbol (i.e. through another symbol's 'exports' or 'members'). Instead,\n // they're only accessed 'lexically' (i.e. from code that exists underneath\n // their container in the tree). To accomplish this, we simply add their declared\n // symbol to the 'locals' of the container. These symbols can then be found as\n // the type checker walks up the containers, checking them for matching names.\n return declareSymbol(container.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);\n }\n }\n function declareClassMember(node, symbolFlags, symbolExcludes) {\n return ts.isStatic(node)\n ? declareSymbol(container.symbol.exports, container.symbol, node, symbolFlags, symbolExcludes)\n : declareSymbol(container.symbol.members, container.symbol, node, symbolFlags, symbolExcludes);\n }\n function declareSourceFileMember(node, symbolFlags, symbolExcludes) {\n return ts.isExternalModule(file)\n ? declareModuleMember(node, symbolFlags, symbolExcludes)\n : declareSymbol(file.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);\n }\n function hasExportDeclarations(node) {\n var body = ts.isSourceFile(node) ? node : ts.tryCast(node.body, ts.isModuleBlock);\n return !!body && body.statements.some(function (s) { return ts.isExportDeclaration(s) || ts.isExportAssignment(s); });\n }\n function setExportContextFlag(node) {\n // A declaration source file or ambient module declaration that contains no export declarations (but possibly regular\n // declarations with export modifiers) is an export context in which declarations are implicitly exported.\n if (node.flags & 8388608 /* Ambient */ && !hasExportDeclarations(node)) {\n node.flags |= 64 /* ExportContext */;\n }\n else {\n node.flags &= ~64 /* ExportContext */;\n }\n }\n function bindModuleDeclaration(node) {\n setExportContextFlag(node);\n if (ts.isAmbientModule(node)) {\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n errorOnFirstToken(node, ts.Diagnostics.export_modifier_cannot_be_applied_to_ambient_modules_and_module_augmentations_since_they_are_always_visible);\n }\n if (ts.isModuleAugmentationExternal(node)) {\n declareModuleSymbol(node);\n }\n else {\n var pattern = void 0;\n if (node.name.kind === 10 /* StringLiteral */) {\n var text = node.name.text;\n pattern = ts.tryParsePattern(text);\n if (pattern === undefined) {\n errorOnFirstToken(node.name, ts.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, text);\n }\n }\n var symbol = declareSymbolAndAddToSymbolTable(node, 512 /* ValueModule */, 110735 /* ValueModuleExcludes */);\n file.patternAmbientModules = ts.append(file.patternAmbientModules, pattern && !ts.isString(pattern) ? { pattern: pattern, symbol: symbol } : undefined);\n }\n }\n else {\n var state = declareModuleSymbol(node);\n if (state !== 0 /* NonInstantiated */) {\n var symbol = node.symbol;\n // if module was already merged with some function, class or non-const enum, treat it as non-const-enum-only\n symbol.constEnumOnlyModule = (!(symbol.flags & (16 /* Function */ | 32 /* Class */ | 256 /* RegularEnum */)))\n // Current must be `const enum` only\n && state === 2 /* ConstEnumOnly */\n // Can't have been set to 'false' in a previous merged symbol. ('undefined' OK)\n && symbol.constEnumOnlyModule !== false;\n }\n }\n }\n function declareModuleSymbol(node) {\n var state = getModuleInstanceState(node);\n var instantiated = state !== 0 /* NonInstantiated */;\n declareSymbolAndAddToSymbolTable(node, instantiated ? 512 /* ValueModule */ : 1024 /* NamespaceModule */, instantiated ? 110735 /* ValueModuleExcludes */ : 0 /* NamespaceModuleExcludes */);\n return state;\n }\n function bindFunctionOrConstructorType(node) {\n // For a given function symbol \"<...>(...) => T\" we want to generate a symbol identical\n // to the one we would get for: { <...>(...): T }\n //\n // We do that by making an anonymous type literal symbol, and then setting the function\n // symbol as its sole member. To the rest of the system, this symbol will be indistinguishable\n // from an actual type literal symbol you would have gotten had you used the long form.\n var symbol = createSymbol(131072 /* Signature */, getDeclarationName(node)); // TODO: GH#18217\n addDeclarationToSymbol(symbol, node, 131072 /* Signature */);\n var typeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, \"__type\" /* Type */);\n addDeclarationToSymbol(typeLiteralSymbol, node, 2048 /* TypeLiteral */);\n typeLiteralSymbol.members = ts.createSymbolTable();\n typeLiteralSymbol.members.set(symbol.escapedName, symbol);\n }\n function bindObjectLiteralExpression(node) {\n var ElementKind;\n (function (ElementKind) {\n ElementKind[ElementKind[\"Property\"] = 1] = \"Property\";\n ElementKind[ElementKind[\"Accessor\"] = 2] = \"Accessor\";\n })(ElementKind || (ElementKind = {}));\n if (inStrictMode && !ts.isAssignmentTarget(node)) {\n var seen = new ts.Map();\n for (var _i = 0, _a = node.properties; _i < _a.length; _i++) {\n var prop = _a[_i];\n if (prop.kind === 293 /* SpreadAssignment */ || prop.name.kind !== 79 /* Identifier */) {\n continue;\n }\n var identifier = prop.name;\n // ECMA-262 11.1.5 Object Initializer\n // If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true\n // a.This production is contained in strict code and IsDataDescriptor(previous) is true and\n // IsDataDescriptor(propId.descriptor) is true.\n // b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true.\n // c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true.\n // d.IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true\n // and either both previous and propId.descriptor have[[Get]] fields or both previous and propId.descriptor have[[Set]] fields\n var currentKind = prop.kind === 291 /* PropertyAssignment */ || prop.kind === 292 /* ShorthandPropertyAssignment */ || prop.kind === 167 /* MethodDeclaration */\n ? 1 /* Property */\n : 2 /* Accessor */;\n var existingKind = seen.get(identifier.escapedText);\n if (!existingKind) {\n seen.set(identifier.escapedText, currentKind);\n continue;\n }\n if (currentKind === 1 /* Property */ && existingKind === 1 /* Property */) {\n var span = ts.getErrorSpanForNode(file, identifier);\n file.bindDiagnostics.push(ts.createFileDiagnostic(file, span.start, span.length, ts.Diagnostics.An_object_literal_cannot_have_multiple_properties_with_the_same_name_in_strict_mode));\n }\n }\n }\n return bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, \"__object\" /* Object */);\n }\n function bindJsxAttributes(node) {\n return bindAnonymousDeclaration(node, 4096 /* ObjectLiteral */, \"__jsxAttributes\" /* JSXAttributes */);\n }\n function bindJsxAttribute(node, symbolFlags, symbolExcludes) {\n return declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);\n }\n function bindAnonymousDeclaration(node, symbolFlags, name) {\n var symbol = createSymbol(symbolFlags, name);\n if (symbolFlags & (8 /* EnumMember */ | 106500 /* ClassMember */)) {\n symbol.parent = container.symbol;\n }\n addDeclarationToSymbol(symbol, node, symbolFlags);\n return symbol;\n }\n function bindBlockScopedDeclaration(node, symbolFlags, symbolExcludes) {\n switch (blockScopeContainer.kind) {\n case 259 /* ModuleDeclaration */:\n declareModuleMember(node, symbolFlags, symbolExcludes);\n break;\n case 300 /* SourceFile */:\n if (ts.isExternalOrCommonJsModule(container)) {\n declareModuleMember(node, symbolFlags, symbolExcludes);\n break;\n }\n // falls through\n default:\n if (!blockScopeContainer.locals) {\n blockScopeContainer.locals = ts.createSymbolTable();\n addToContainerChain(blockScopeContainer);\n }\n declareSymbol(blockScopeContainer.locals, /*parent*/ undefined, node, symbolFlags, symbolExcludes);\n }\n }\n function delayedBindJSDocTypedefTag() {\n if (!delayedTypeAliases) {\n return;\n }\n var saveContainer = container;\n var saveLastContainer = lastContainer;\n var saveBlockScopeContainer = blockScopeContainer;\n var saveParent = parent;\n var saveCurrentFlow = currentFlow;\n for (var _i = 0, delayedTypeAliases_1 = delayedTypeAliases; _i < delayedTypeAliases_1.length; _i++) {\n var typeAlias = delayedTypeAliases_1[_i];\n var host = typeAlias.parent.parent;\n container = ts.findAncestor(host.parent, function (n) { return !!(getContainerFlags(n) & 1 /* IsContainer */); }) || file;\n blockScopeContainer = ts.getEnclosingBlockScopeContainer(host) || file;\n currentFlow = initFlowNode({ flags: 2 /* Start */ });\n parent = typeAlias;\n bind(typeAlias.typeExpression);\n var declName = ts.getNameOfDeclaration(typeAlias);\n if ((ts.isJSDocEnumTag(typeAlias) || !typeAlias.fullName) && declName && ts.isPropertyAccessEntityNameExpression(declName.parent)) {\n // typedef anchored to an A.B.C assignment - we need to bind into B's namespace under name C\n var isTopLevel = isTopLevelNamespaceAssignment(declName.parent);\n if (isTopLevel) {\n bindPotentiallyMissingNamespaces(file.symbol, declName.parent, isTopLevel, !!ts.findAncestor(declName, function (d) { return ts.isPropertyAccessExpression(d) && d.name.escapedText === \"prototype\"; }), /*containerIsClass*/ false);\n var oldContainer = container;\n switch (ts.getAssignmentDeclarationPropertyAccessKind(declName.parent)) {\n case 1 /* ExportsProperty */:\n case 2 /* ModuleExports */:\n if (!ts.isExternalOrCommonJsModule(file)) {\n container = undefined;\n }\n else {\n container = file;\n }\n break;\n case 4 /* ThisProperty */:\n container = declName.parent.expression;\n break;\n case 3 /* PrototypeProperty */:\n container = declName.parent.expression.name;\n break;\n case 5 /* Property */:\n container = isExportsOrModuleExportsOrAlias(file, declName.parent.expression) ? file\n : ts.isPropertyAccessExpression(declName.parent.expression) ? declName.parent.expression.name\n : declName.parent.expression;\n break;\n case 0 /* None */:\n return ts.Debug.fail(\"Shouldn't have detected typedef or enum on non-assignment declaration\");\n }\n if (container) {\n declareModuleMember(typeAlias, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */);\n }\n container = oldContainer;\n }\n }\n else if (ts.isJSDocEnumTag(typeAlias) || !typeAlias.fullName || typeAlias.fullName.kind === 79 /* Identifier */) {\n parent = typeAlias.parent;\n bindBlockScopedDeclaration(typeAlias, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */);\n }\n else {\n bind(typeAlias.fullName);\n }\n }\n container = saveContainer;\n lastContainer = saveLastContainer;\n blockScopeContainer = saveBlockScopeContainer;\n parent = saveParent;\n currentFlow = saveCurrentFlow;\n }\n // The binder visits every node in the syntax tree so it is a convenient place to perform a single localized\n // check for reserved words used as identifiers in strict mode code, as well as `yield` or `await` in\n // [Yield] or [Await] contexts, respectively.\n function checkContextualIdentifier(node) {\n // Report error only if there are no parse errors in file\n if (!file.parseDiagnostics.length &&\n !(node.flags & 8388608 /* Ambient */) &&\n !(node.flags & 4194304 /* JSDoc */) &&\n !ts.isIdentifierName(node)) {\n // strict mode identifiers\n if (inStrictMode &&\n node.originalKeywordKind >= 117 /* FirstFutureReservedWord */ &&\n node.originalKeywordKind <= 125 /* LastFutureReservedWord */) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, getStrictModeIdentifierMessage(node), ts.declarationNameToString(node)));\n }\n else if (node.originalKeywordKind === 131 /* AwaitKeyword */) {\n if (ts.isExternalModule(file) && ts.isInTopLevelContext(node)) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_at_the_top_level_of_a_module, ts.declarationNameToString(node)));\n }\n else if (node.flags & 32768 /* AwaitContext */) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, ts.declarationNameToString(node)));\n }\n }\n else if (node.originalKeywordKind === 125 /* YieldKeyword */ && node.flags & 8192 /* YieldContext */) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here, ts.declarationNameToString(node)));\n }\n }\n }\n function getStrictModeIdentifierMessage(node) {\n // Provide specialized messages to help the user understand why we think they're in\n // strict mode.\n if (ts.getContainingClass(node)) {\n return ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode;\n }\n if (file.externalModuleIndicator) {\n return ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode_Modules_are_automatically_in_strict_mode;\n }\n return ts.Diagnostics.Identifier_expected_0_is_a_reserved_word_in_strict_mode;\n }\n // The binder visits every node, so this is a good place to check for\n // the reserved private name (there is only one)\n function checkPrivateIdentifier(node) {\n if (node.escapedText === \"#constructor\") {\n // Report error only if there are no parse errors in file\n if (!file.parseDiagnostics.length) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.constructor_is_a_reserved_word, ts.declarationNameToString(node)));\n }\n }\n }\n function checkStrictModeBinaryExpression(node) {\n if (inStrictMode && ts.isLeftHandSideExpression(node.left) && ts.isAssignmentOperator(node.operatorToken.kind)) {\n // ECMA 262 (Annex C) The identifier eval or arguments may not appear as the LeftHandSideExpression of an\n // Assignment operator(11.13) or of a PostfixExpression(11.3)\n checkStrictModeEvalOrArguments(node, node.left);\n }\n }\n function checkStrictModeCatchClause(node) {\n // It is a SyntaxError if a TryStatement with a Catch occurs within strict code and the Identifier of the\n // Catch production is eval or arguments\n if (inStrictMode && node.variableDeclaration) {\n checkStrictModeEvalOrArguments(node, node.variableDeclaration.name);\n }\n }\n function checkStrictModeDeleteExpression(node) {\n // Grammar checking\n if (inStrictMode && node.expression.kind === 79 /* Identifier */) {\n // When a delete operator occurs within strict mode code, a SyntaxError is thrown if its\n // UnaryExpression is a direct reference to a variable, function argument, or function name\n var span = ts.getErrorSpanForNode(file, node.expression);\n file.bindDiagnostics.push(ts.createFileDiagnostic(file, span.start, span.length, ts.Diagnostics.delete_cannot_be_called_on_an_identifier_in_strict_mode));\n }\n }\n function isEvalOrArgumentsIdentifier(node) {\n return ts.isIdentifier(node) && (node.escapedText === \"eval\" || node.escapedText === \"arguments\");\n }\n function checkStrictModeEvalOrArguments(contextNode, name) {\n if (name && name.kind === 79 /* Identifier */) {\n var identifier = name;\n if (isEvalOrArgumentsIdentifier(identifier)) {\n // We check first if the name is inside class declaration or class expression; if so give explicit message\n // otherwise report generic error message.\n var span = ts.getErrorSpanForNode(file, name);\n file.bindDiagnostics.push(ts.createFileDiagnostic(file, span.start, span.length, getStrictModeEvalOrArgumentsMessage(contextNode), ts.idText(identifier)));\n }\n }\n }\n function getStrictModeEvalOrArgumentsMessage(node) {\n // Provide specialized messages to help the user understand why we think they're in\n // strict mode.\n if (ts.getContainingClass(node)) {\n return ts.Diagnostics.Code_contained_in_a_class_is_evaluated_in_JavaScript_s_strict_mode_which_does_not_allow_this_use_of_0_For_more_information_see_https_Colon_Slash_Slashdeveloper_mozilla_org_Slashen_US_Slashdocs_SlashWeb_SlashJavaScript_SlashReference_SlashStrict_mode;\n }\n if (file.externalModuleIndicator) {\n return ts.Diagnostics.Invalid_use_of_0_Modules_are_automatically_in_strict_mode;\n }\n return ts.Diagnostics.Invalid_use_of_0_in_strict_mode;\n }\n function checkStrictModeFunctionName(node) {\n if (inStrictMode) {\n // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a strict mode FunctionDeclaration or FunctionExpression (13.1))\n checkStrictModeEvalOrArguments(node, node.name);\n }\n }\n function getStrictModeBlockScopeFunctionDeclarationMessage(node) {\n // Provide specialized messages to help the user understand why we think they're in\n // strict mode.\n if (ts.getContainingClass(node)) {\n return ts.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Class_definitions_are_automatically_in_strict_mode;\n }\n if (file.externalModuleIndicator) {\n return ts.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5_Modules_are_automatically_in_strict_mode;\n }\n return ts.Diagnostics.Function_declarations_are_not_allowed_inside_blocks_in_strict_mode_when_targeting_ES3_or_ES5;\n }\n function checkStrictModeFunctionDeclaration(node) {\n if (languageVersion < 2 /* ES2015 */) {\n // Report error if function is not top level function declaration\n if (blockScopeContainer.kind !== 300 /* SourceFile */ &&\n blockScopeContainer.kind !== 259 /* ModuleDeclaration */ &&\n !ts.isFunctionLikeOrClassStaticBlockDeclaration(blockScopeContainer)) {\n // We check first if the name is inside class declaration or class expression; if so give explicit message\n // otherwise report generic error message.\n var errorSpan = ts.getErrorSpanForNode(file, node);\n file.bindDiagnostics.push(ts.createFileDiagnostic(file, errorSpan.start, errorSpan.length, getStrictModeBlockScopeFunctionDeclarationMessage(node)));\n }\n }\n }\n function checkStrictModeNumericLiteral(node) {\n if (inStrictMode && node.numericLiteralFlags & 32 /* Octal */) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Octal_literals_are_not_allowed_in_strict_mode));\n }\n }\n function checkStrictModePostfixUnaryExpression(node) {\n // Grammar checking\n // The identifier eval or arguments may not appear as the LeftHandSideExpression of an\n // Assignment operator(11.13) or of a PostfixExpression(11.3) or as the UnaryExpression\n // operated upon by a Prefix Increment(11.4.4) or a Prefix Decrement(11.4.5) operator.\n if (inStrictMode) {\n checkStrictModeEvalOrArguments(node, node.operand);\n }\n }\n function checkStrictModePrefixUnaryExpression(node) {\n // Grammar checking\n if (inStrictMode) {\n if (node.operator === 45 /* PlusPlusToken */ || node.operator === 46 /* MinusMinusToken */) {\n checkStrictModeEvalOrArguments(node, node.operand);\n }\n }\n }\n function checkStrictModeWithStatement(node) {\n // Grammar checking for withStatement\n if (inStrictMode) {\n errorOnFirstToken(node, ts.Diagnostics.with_statements_are_not_allowed_in_strict_mode);\n }\n }\n function checkStrictModeLabeledStatement(node) {\n // Grammar checking for labeledStatement\n if (inStrictMode && options.target >= 2 /* ES2015 */) {\n if (ts.isDeclarationStatement(node.statement) || ts.isVariableStatement(node.statement)) {\n errorOnFirstToken(node.label, ts.Diagnostics.A_label_is_not_allowed_here);\n }\n }\n }\n function errorOnFirstToken(node, message, arg0, arg1, arg2) {\n var span = ts.getSpanOfTokenAtPosition(file, node.pos);\n file.bindDiagnostics.push(ts.createFileDiagnostic(file, span.start, span.length, message, arg0, arg1, arg2));\n }\n function errorOrSuggestionOnNode(isError, node, message) {\n errorOrSuggestionOnRange(isError, node, node, message);\n }\n function errorOrSuggestionOnRange(isError, startNode, endNode, message) {\n addErrorOrSuggestionDiagnostic(isError, { pos: ts.getTokenPosOfNode(startNode, file), end: endNode.end }, message);\n }\n function addErrorOrSuggestionDiagnostic(isError, range, message) {\n var diag = ts.createFileDiagnostic(file, range.pos, range.end - range.pos, message);\n if (isError) {\n file.bindDiagnostics.push(diag);\n }\n else {\n file.bindSuggestionDiagnostics = ts.append(file.bindSuggestionDiagnostics, __assign(__assign({}, diag), { category: ts.DiagnosticCategory.Suggestion }));\n }\n }\n function bind(node) {\n if (!node) {\n return;\n }\n ts.setParent(node, parent);\n var saveInStrictMode = inStrictMode;\n // Even though in the AST the jsdoc @typedef node belongs to the current node,\n // its symbol might be in the same scope with the current node's symbol. Consider:\n //\n // /** @typedef {string | number} MyType */\n // function foo();\n //\n // Here the current node is \"foo\", which is a container, but the scope of \"MyType\" should\n // not be inside \"foo\". Therefore we always bind @typedef before bind the parent node,\n // and skip binding this tag later when binding all the other jsdoc tags.\n // First we bind declaration nodes to a symbol if possible. We'll both create a symbol\n // and then potentially add the symbol to an appropriate symbol table. Possible\n // destination symbol tables are:\n //\n // 1) The 'exports' table of the current container's symbol.\n // 2) The 'members' table of the current container's symbol.\n // 3) The 'locals' table of the current container.\n //\n // However, not all symbols will end up in any of these tables. 'Anonymous' symbols\n // (like TypeLiterals for example) will not be put in any table.\n bindWorker(node);\n // Then we recurse into the children of the node to bind them as well. For certain\n // symbols we do specialized work when we recurse. For example, we'll keep track of\n // the current 'container' node when it changes. This helps us know which symbol table\n // a local should go into for example. Since terminal nodes are known not to have\n // children, as an optimization we don't process those.\n if (node.kind > 158 /* LastToken */) {\n var saveParent = parent;\n parent = node;\n var containerFlags = getContainerFlags(node);\n if (containerFlags === 0 /* None */) {\n bindChildren(node);\n }\n else {\n bindContainer(node, containerFlags);\n }\n parent = saveParent;\n }\n else {\n var saveParent = parent;\n if (node.kind === 1 /* EndOfFileToken */)\n parent = node;\n bindJSDoc(node);\n parent = saveParent;\n }\n inStrictMode = saveInStrictMode;\n }\n function bindJSDoc(node) {\n if (ts.hasJSDocNodes(node)) {\n if (ts.isInJSFile(node)) {\n for (var _i = 0, _a = node.jsDoc; _i < _a.length; _i++) {\n var j = _a[_i];\n bind(j);\n }\n }\n else {\n for (var _b = 0, _c = node.jsDoc; _b < _c.length; _b++) {\n var j = _c[_b];\n ts.setParent(j, node);\n ts.setParentRecursive(j, /*incremental*/ false);\n }\n }\n }\n }\n function updateStrictModeStatementList(statements) {\n if (!inStrictMode) {\n for (var _i = 0, statements_3 = statements; _i < statements_3.length; _i++) {\n var statement = statements_3[_i];\n if (!ts.isPrologueDirective(statement)) {\n return;\n }\n if (isUseStrictPrologueDirective(statement)) {\n inStrictMode = true;\n return;\n }\n }\n }\n }\n /// Should be called only on prologue directives (isPrologueDirective(node) should be true)\n function isUseStrictPrologueDirective(node) {\n var nodeText = ts.getSourceTextOfNodeFromSourceFile(file, node.expression);\n // Note: the node text must be exactly \"use strict\" or 'use strict'. It is not ok for the\n // string to contain unicode escapes (as per ES5).\n return nodeText === '\"use strict\"' || nodeText === \"'use strict'\";\n }\n function bindWorker(node) {\n switch (node.kind) {\n /* Strict mode checks */\n case 79 /* Identifier */:\n // for typedef type names with namespaces, bind the new jsdoc type symbol here\n // because it requires all containing namespaces to be in effect, namely the\n // current \"blockScopeContainer\" needs to be set to its immediate namespace parent.\n if (node.isInJSDocNamespace) {\n var parentNode = node.parent;\n while (parentNode && !ts.isJSDocTypeAlias(parentNode)) {\n parentNode = parentNode.parent;\n }\n bindBlockScopedDeclaration(parentNode, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */);\n break;\n }\n // falls through\n case 108 /* ThisKeyword */:\n if (currentFlow && (ts.isExpression(node) || parent.kind === 292 /* ShorthandPropertyAssignment */)) {\n node.flowNode = currentFlow;\n }\n return checkContextualIdentifier(node);\n case 159 /* QualifiedName */:\n if (currentFlow && ts.isPartOfTypeQuery(node)) {\n node.flowNode = currentFlow;\n }\n break;\n case 229 /* MetaProperty */:\n case 106 /* SuperKeyword */:\n node.flowNode = currentFlow;\n break;\n case 80 /* PrivateIdentifier */:\n return checkPrivateIdentifier(node);\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n var expr = node;\n if (currentFlow && isNarrowableReference(expr)) {\n expr.flowNode = currentFlow;\n }\n if (ts.isSpecialPropertyDeclaration(expr)) {\n bindSpecialPropertyDeclaration(expr);\n }\n if (ts.isInJSFile(expr) &&\n file.commonJsModuleIndicator &&\n ts.isModuleExportsAccessExpression(expr) &&\n !lookupSymbolForName(blockScopeContainer, \"module\")) {\n declareSymbol(file.locals, /*parent*/ undefined, expr.expression, 1 /* FunctionScopedVariable */ | 134217728 /* ModuleExports */, 111550 /* FunctionScopedVariableExcludes */);\n }\n break;\n case 219 /* BinaryExpression */:\n var specialKind = ts.getAssignmentDeclarationKind(node);\n switch (specialKind) {\n case 1 /* ExportsProperty */:\n bindExportsPropertyAssignment(node);\n break;\n case 2 /* ModuleExports */:\n bindModuleExportsAssignment(node);\n break;\n case 3 /* PrototypeProperty */:\n bindPrototypePropertyAssignment(node.left, node);\n break;\n case 6 /* Prototype */:\n bindPrototypeAssignment(node);\n break;\n case 4 /* ThisProperty */:\n bindThisPropertyAssignment(node);\n break;\n case 5 /* Property */:\n var expression = node.left.expression;\n if (ts.isInJSFile(node) && ts.isIdentifier(expression)) {\n var symbol = lookupSymbolForName(blockScopeContainer, expression.escapedText);\n if (ts.isThisInitializedDeclaration(symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration)) {\n bindThisPropertyAssignment(node);\n break;\n }\n }\n bindSpecialPropertyAssignment(node);\n break;\n case 0 /* None */:\n // Nothing to do\n break;\n default:\n ts.Debug.fail(\"Unknown binary expression special property assignment kind\");\n }\n return checkStrictModeBinaryExpression(node);\n case 290 /* CatchClause */:\n return checkStrictModeCatchClause(node);\n case 213 /* DeleteExpression */:\n return checkStrictModeDeleteExpression(node);\n case 8 /* NumericLiteral */:\n return checkStrictModeNumericLiteral(node);\n case 218 /* PostfixUnaryExpression */:\n return checkStrictModePostfixUnaryExpression(node);\n case 217 /* PrefixUnaryExpression */:\n return checkStrictModePrefixUnaryExpression(node);\n case 246 /* WithStatement */:\n return checkStrictModeWithStatement(node);\n case 248 /* LabeledStatement */:\n return checkStrictModeLabeledStatement(node);\n case 190 /* ThisType */:\n seenThisKeyword = true;\n return;\n case 175 /* TypePredicate */:\n break; // Binding the children will handle everything\n case 161 /* TypeParameter */:\n return bindTypeParameter(node);\n case 162 /* Parameter */:\n return bindParameter(node);\n case 252 /* VariableDeclaration */:\n return bindVariableDeclarationOrBindingElement(node);\n case 201 /* BindingElement */:\n node.flowNode = currentFlow;\n return bindVariableDeclarationOrBindingElement(node);\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n return bindPropertyWorker(node);\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n return bindPropertyOrMethodOrAccessor(node, 4 /* Property */, 0 /* PropertyExcludes */);\n case 294 /* EnumMember */:\n return bindPropertyOrMethodOrAccessor(node, 8 /* EnumMember */, 900095 /* EnumMemberExcludes */);\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n return declareSymbolAndAddToSymbolTable(node, 131072 /* Signature */, 0 /* None */);\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n // If this is an ObjectLiteralExpression method, then it sits in the same space\n // as other properties in the object literal. So we use SymbolFlags.PropertyExcludes\n // so that it will conflict with any other object literal members with the same\n // name.\n return bindPropertyOrMethodOrAccessor(node, 8192 /* Method */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), ts.isObjectLiteralMethod(node) ? 0 /* PropertyExcludes */ : 103359 /* MethodExcludes */);\n case 254 /* FunctionDeclaration */:\n return bindFunctionDeclaration(node);\n case 169 /* Constructor */:\n return declareSymbolAndAddToSymbolTable(node, 16384 /* Constructor */, /*symbolExcludes:*/ 0 /* None */);\n case 170 /* GetAccessor */:\n return bindPropertyOrMethodOrAccessor(node, 32768 /* GetAccessor */, 46015 /* GetAccessorExcludes */);\n case 171 /* SetAccessor */:\n return bindPropertyOrMethodOrAccessor(node, 65536 /* SetAccessor */, 78783 /* SetAccessorExcludes */);\n case 177 /* FunctionType */:\n case 312 /* JSDocFunctionType */:\n case 318 /* JSDocSignature */:\n case 178 /* ConstructorType */:\n return bindFunctionOrConstructorType(node);\n case 180 /* TypeLiteral */:\n case 317 /* JSDocTypeLiteral */:\n case 193 /* MappedType */:\n return bindAnonymousTypeWorker(node);\n case 327 /* JSDocClassTag */:\n return bindJSDocClassTag(node);\n case 203 /* ObjectLiteralExpression */:\n return bindObjectLiteralExpression(node);\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return bindFunctionExpression(node);\n case 206 /* CallExpression */:\n var assignmentKind = ts.getAssignmentDeclarationKind(node);\n switch (assignmentKind) {\n case 7 /* ObjectDefinePropertyValue */:\n return bindObjectDefinePropertyAssignment(node);\n case 8 /* ObjectDefinePropertyExports */:\n return bindObjectDefinePropertyExport(node);\n case 9 /* ObjectDefinePrototypeProperty */:\n return bindObjectDefinePrototypeProperty(node);\n case 0 /* None */:\n break; // Nothing to do\n default:\n return ts.Debug.fail(\"Unknown call expression assignment declaration kind\");\n }\n if (ts.isInJSFile(node)) {\n bindCallExpression(node);\n }\n break;\n // Members of classes, interfaces, and modules\n case 224 /* ClassExpression */:\n case 255 /* ClassDeclaration */:\n // All classes are automatically in strict mode in ES6.\n inStrictMode = true;\n return bindClassLikeDeclaration(node);\n case 256 /* InterfaceDeclaration */:\n return bindBlockScopedDeclaration(node, 64 /* Interface */, 788872 /* InterfaceExcludes */);\n case 257 /* TypeAliasDeclaration */:\n return bindBlockScopedDeclaration(node, 524288 /* TypeAlias */, 788968 /* TypeAliasExcludes */);\n case 258 /* EnumDeclaration */:\n return bindEnumDeclaration(node);\n case 259 /* ModuleDeclaration */:\n return bindModuleDeclaration(node);\n // Jsx-attributes\n case 284 /* JsxAttributes */:\n return bindJsxAttributes(node);\n case 283 /* JsxAttribute */:\n return bindJsxAttribute(node, 4 /* Property */, 0 /* PropertyExcludes */);\n // Imports and exports\n case 263 /* ImportEqualsDeclaration */:\n case 266 /* NamespaceImport */:\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n return declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);\n case 262 /* NamespaceExportDeclaration */:\n return bindNamespaceExportDeclaration(node);\n case 265 /* ImportClause */:\n return bindImportClause(node);\n case 270 /* ExportDeclaration */:\n return bindExportDeclaration(node);\n case 269 /* ExportAssignment */:\n return bindExportAssignment(node);\n case 300 /* SourceFile */:\n updateStrictModeStatementList(node.statements);\n return bindSourceFileIfExternalModule();\n case 233 /* Block */:\n if (!ts.isFunctionLikeOrClassStaticBlockDeclaration(node.parent)) {\n return;\n }\n // falls through\n case 260 /* ModuleBlock */:\n return updateStrictModeStatementList(node.statements);\n case 335 /* JSDocParameterTag */:\n if (node.parent.kind === 318 /* JSDocSignature */) {\n return bindParameter(node);\n }\n if (node.parent.kind !== 317 /* JSDocTypeLiteral */) {\n break;\n }\n // falls through\n case 342 /* JSDocPropertyTag */:\n var propTag = node;\n var flags = propTag.isBracketed || propTag.typeExpression && propTag.typeExpression.type.kind === 311 /* JSDocOptionalType */ ?\n 4 /* Property */ | 16777216 /* Optional */ :\n 4 /* Property */;\n return declareSymbolAndAddToSymbolTable(propTag, flags, 0 /* PropertyExcludes */);\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 334 /* JSDocEnumTag */:\n return (delayedTypeAliases || (delayedTypeAliases = [])).push(node);\n }\n }\n function bindPropertyWorker(node) {\n return bindPropertyOrMethodOrAccessor(node, 4 /* Property */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), 0 /* PropertyExcludes */);\n }\n function bindAnonymousTypeWorker(node) {\n return bindAnonymousDeclaration(node, 2048 /* TypeLiteral */, \"__type\" /* Type */);\n }\n function bindSourceFileIfExternalModule() {\n setExportContextFlag(file);\n if (ts.isExternalModule(file)) {\n bindSourceFileAsExternalModule();\n }\n else if (ts.isJsonSourceFile(file)) {\n bindSourceFileAsExternalModule();\n // Create symbol equivalent for the module.exports = {}\n var originalSymbol = file.symbol;\n declareSymbol(file.symbol.exports, file.symbol, file, 4 /* Property */, 67108863 /* All */);\n file.symbol = originalSymbol;\n }\n }\n function bindSourceFileAsExternalModule() {\n bindAnonymousDeclaration(file, 512 /* ValueModule */, \"\\\"\" + ts.removeFileExtension(file.fileName) + \"\\\"\");\n }\n function bindExportAssignment(node) {\n if (!container.symbol || !container.symbol.exports) {\n // Incorrect export assignment in some sort of block construct\n bindAnonymousDeclaration(node, 111551 /* Value */, getDeclarationName(node));\n }\n else {\n var flags = ts.exportAssignmentIsAlias(node)\n // An export default clause with an EntityNameExpression or a class expression exports all meanings of that identifier or expression;\n ? 2097152 /* Alias */\n // An export default clause with any other expression exports a value\n : 4 /* Property */;\n // If there is an `export default x;` alias declaration, can't `export default` anything else.\n // (In contrast, you can still have `export default function f() {}` and `export default interface I {}`.)\n var symbol = declareSymbol(container.symbol.exports, container.symbol, node, flags, 67108863 /* All */);\n if (node.isExportEquals) {\n // Will be an error later, since the module already has other exports. Just make sure this has a valueDeclaration set.\n ts.setValueDeclaration(symbol, node);\n }\n }\n }\n function bindNamespaceExportDeclaration(node) {\n if (node.modifiers && node.modifiers.length) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Modifiers_cannot_appear_here));\n }\n var diag = !ts.isSourceFile(node.parent) ? ts.Diagnostics.Global_module_exports_may_only_appear_at_top_level\n : !ts.isExternalModule(node.parent) ? ts.Diagnostics.Global_module_exports_may_only_appear_in_module_files\n : !node.parent.isDeclarationFile ? ts.Diagnostics.Global_module_exports_may_only_appear_in_declaration_files\n : undefined;\n if (diag) {\n file.bindDiagnostics.push(createDiagnosticForNode(node, diag));\n }\n else {\n file.symbol.globalExports = file.symbol.globalExports || ts.createSymbolTable();\n declareSymbol(file.symbol.globalExports, file.symbol, node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);\n }\n }\n function bindExportDeclaration(node) {\n if (!container.symbol || !container.symbol.exports) {\n // Export * in some sort of block construct\n bindAnonymousDeclaration(node, 8388608 /* ExportStar */, getDeclarationName(node));\n }\n else if (!node.exportClause) {\n // All export * declarations are collected in an __export symbol\n declareSymbol(container.symbol.exports, container.symbol, node, 8388608 /* ExportStar */, 0 /* None */);\n }\n else if (ts.isNamespaceExport(node.exportClause)) {\n // declareSymbol walks up parents to find name text, parent _must_ be set\n // but won't be set by the normal binder walk until `bindChildren` later on.\n ts.setParent(node.exportClause, node);\n declareSymbol(container.symbol.exports, container.symbol, node.exportClause, 2097152 /* Alias */, 2097152 /* AliasExcludes */);\n }\n }\n function bindImportClause(node) {\n if (node.name) {\n declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);\n }\n }\n function setCommonJsModuleIndicator(node) {\n if (file.externalModuleIndicator) {\n return false;\n }\n if (!file.commonJsModuleIndicator) {\n file.commonJsModuleIndicator = node;\n bindSourceFileAsExternalModule();\n }\n return true;\n }\n function bindObjectDefinePropertyExport(node) {\n if (!setCommonJsModuleIndicator(node)) {\n return;\n }\n var symbol = forEachIdentifierInEntityName(node.arguments[0], /*parent*/ undefined, function (id, symbol) {\n if (symbol) {\n addDeclarationToSymbol(symbol, id, 1536 /* Module */ | 67108864 /* Assignment */);\n }\n return symbol;\n });\n if (symbol) {\n var flags = 4 /* Property */ | 1048576 /* ExportValue */;\n declareSymbol(symbol.exports, symbol, node, flags, 0 /* None */);\n }\n }\n function bindExportsPropertyAssignment(node) {\n // When we create a property via 'exports.foo = bar', the 'exports.foo' property access\n // expression is the declaration\n if (!setCommonJsModuleIndicator(node)) {\n return;\n }\n var symbol = forEachIdentifierInEntityName(node.left.expression, /*parent*/ undefined, function (id, symbol) {\n if (symbol) {\n addDeclarationToSymbol(symbol, id, 1536 /* Module */ | 67108864 /* Assignment */);\n }\n return symbol;\n });\n if (symbol) {\n var isAlias = ts.isAliasableExpression(node.right) && (ts.isExportsIdentifier(node.left.expression) || ts.isModuleExportsAccessExpression(node.left.expression));\n var flags = isAlias ? 2097152 /* Alias */ : 4 /* Property */ | 1048576 /* ExportValue */;\n ts.setParent(node.left, node);\n declareSymbol(symbol.exports, symbol, node.left, flags, 0 /* None */);\n }\n }\n function bindModuleExportsAssignment(node) {\n // A common practice in node modules is to set 'export = module.exports = {}', this ensures that 'exports'\n // is still pointing to 'module.exports'.\n // We do not want to consider this as 'export=' since a module can have only one of these.\n // Similarly we do not want to treat 'module.exports = exports' as an 'export='.\n if (!setCommonJsModuleIndicator(node)) {\n return;\n }\n var assignedExpression = ts.getRightMostAssignedExpression(node.right);\n if (ts.isEmptyObjectLiteral(assignedExpression) || container === file && isExportsOrModuleExportsOrAlias(file, assignedExpression)) {\n return;\n }\n if (ts.isObjectLiteralExpression(assignedExpression) && ts.every(assignedExpression.properties, ts.isShorthandPropertyAssignment)) {\n ts.forEach(assignedExpression.properties, bindExportAssignedObjectMemberAlias);\n return;\n }\n // 'module.exports = expr' assignment\n var flags = ts.exportAssignmentIsAlias(node)\n ? 2097152 /* Alias */\n : 4 /* Property */ | 1048576 /* ExportValue */ | 512 /* ValueModule */;\n var symbol = declareSymbol(file.symbol.exports, file.symbol, node, flags | 67108864 /* Assignment */, 0 /* None */);\n ts.setValueDeclaration(symbol, node);\n }\n function bindExportAssignedObjectMemberAlias(node) {\n declareSymbol(file.symbol.exports, file.symbol, node, 2097152 /* Alias */ | 67108864 /* Assignment */, 0 /* None */);\n }\n function bindThisPropertyAssignment(node) {\n ts.Debug.assert(ts.isInJSFile(node));\n // private identifiers *must* be declared (even in JS files)\n var hasPrivateIdentifier = (ts.isBinaryExpression(node) && ts.isPropertyAccessExpression(node.left) && ts.isPrivateIdentifier(node.left.name))\n || (ts.isPropertyAccessExpression(node) && ts.isPrivateIdentifier(node.name));\n if (hasPrivateIdentifier) {\n return;\n }\n var thisContainer = ts.getThisContainer(node, /*includeArrowFunctions*/ false);\n switch (thisContainer.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n var constructorSymbol = thisContainer.symbol;\n // For `f.prototype.m = function() { this.x = 0; }`, `this.x = 0` should modify `f`'s members, not the function expression.\n if (ts.isBinaryExpression(thisContainer.parent) && thisContainer.parent.operatorToken.kind === 63 /* EqualsToken */) {\n var l = thisContainer.parent.left;\n if (ts.isBindableStaticAccessExpression(l) && ts.isPrototypeAccess(l.expression)) {\n constructorSymbol = lookupSymbolForPropertyAccess(l.expression.expression, thisParentContainer);\n }\n }\n if (constructorSymbol && constructorSymbol.valueDeclaration) {\n // Declare a 'member' if the container is an ES5 class or ES6 constructor\n constructorSymbol.members = constructorSymbol.members || ts.createSymbolTable();\n // It's acceptable for multiple 'this' assignments of the same identifier to occur\n if (ts.hasDynamicName(node)) {\n bindDynamicallyNamedThisPropertyAssignment(node, constructorSymbol, constructorSymbol.members);\n }\n else {\n declareSymbol(constructorSymbol.members, constructorSymbol, node, 4 /* Property */ | 67108864 /* Assignment */, 0 /* PropertyExcludes */ & ~4 /* Property */);\n }\n addDeclarationToSymbol(constructorSymbol, constructorSymbol.valueDeclaration, 32 /* Class */);\n }\n break;\n case 169 /* Constructor */:\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // this.foo assignment in a JavaScript class\n // Bind this property to the containing class\n var containingClass = thisContainer.parent;\n var symbolTable = ts.isStatic(thisContainer) ? containingClass.symbol.exports : containingClass.symbol.members;\n if (ts.hasDynamicName(node)) {\n bindDynamicallyNamedThisPropertyAssignment(node, containingClass.symbol, symbolTable);\n }\n else {\n declareSymbol(symbolTable, containingClass.symbol, node, 4 /* Property */ | 67108864 /* Assignment */, 0 /* None */, /*isReplaceableByMethod*/ true);\n }\n break;\n case 300 /* SourceFile */:\n // this.property = assignment in a source file -- declare symbol in exports for a module, in locals for a script\n if (ts.hasDynamicName(node)) {\n break;\n }\n else if (thisContainer.commonJsModuleIndicator) {\n declareSymbol(thisContainer.symbol.exports, thisContainer.symbol, node, 4 /* Property */ | 1048576 /* ExportValue */, 0 /* None */);\n }\n else {\n declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */);\n }\n break;\n default:\n ts.Debug.failBadSyntaxKind(thisContainer);\n }\n }\n function bindDynamicallyNamedThisPropertyAssignment(node, symbol, symbolTable) {\n declareSymbol(symbolTable, symbol, node, 4 /* Property */, 0 /* None */, /*isReplaceableByMethod*/ true, /*isComputedName*/ true);\n addLateBoundAssignmentDeclarationToSymbol(node, symbol);\n }\n function addLateBoundAssignmentDeclarationToSymbol(node, symbol) {\n if (symbol) {\n (symbol.assignmentDeclarationMembers || (symbol.assignmentDeclarationMembers = new ts.Map())).set(ts.getNodeId(node), node);\n }\n }\n function bindSpecialPropertyDeclaration(node) {\n if (node.expression.kind === 108 /* ThisKeyword */) {\n bindThisPropertyAssignment(node);\n }\n else if (ts.isBindableStaticAccessExpression(node) && node.parent.parent.kind === 300 /* SourceFile */) {\n if (ts.isPrototypeAccess(node.expression)) {\n bindPrototypePropertyAssignment(node, node.parent);\n }\n else {\n bindStaticPropertyAssignment(node);\n }\n }\n }\n /** For `x.prototype = { p, ... }`, declare members p,... if `x` is function/class/{}, or not declared. */\n function bindPrototypeAssignment(node) {\n ts.setParent(node.left, node);\n ts.setParent(node.right, node);\n bindPropertyAssignment(node.left.expression, node.left, /*isPrototypeProperty*/ false, /*containerIsClass*/ true);\n }\n function bindObjectDefinePrototypeProperty(node) {\n var namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0].expression);\n if (namespaceSymbol && namespaceSymbol.valueDeclaration) {\n // Ensure the namespace symbol becomes class-like\n addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* Class */);\n }\n bindPotentiallyNewExpandoMemberToNamespace(node, namespaceSymbol, /*isPrototypeProperty*/ true);\n }\n /**\n * For `x.prototype.y = z`, declare a member `y` on `x` if `x` is a function or class, or not declared.\n * Note that jsdoc preceding an ExpressionStatement like `x.prototype.y;` is also treated as a declaration.\n */\n function bindPrototypePropertyAssignment(lhs, parent) {\n // Look up the function in the local scope, since prototype assignments should\n // follow the function declaration\n var classPrototype = lhs.expression;\n var constructorFunction = classPrototype.expression;\n // Fix up parent pointers since we're going to use these nodes before we bind into them\n ts.setParent(constructorFunction, classPrototype);\n ts.setParent(classPrototype, lhs);\n ts.setParent(lhs, parent);\n bindPropertyAssignment(constructorFunction, lhs, /*isPrototypeProperty*/ true, /*containerIsClass*/ true);\n }\n function bindObjectDefinePropertyAssignment(node) {\n var namespaceSymbol = lookupSymbolForPropertyAccess(node.arguments[0]);\n var isToplevel = node.parent.parent.kind === 300 /* SourceFile */;\n namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, node.arguments[0], isToplevel, /*isPrototypeProperty*/ false, /*containerIsClass*/ false);\n bindPotentiallyNewExpandoMemberToNamespace(node, namespaceSymbol, /*isPrototypeProperty*/ false);\n }\n function bindSpecialPropertyAssignment(node) {\n var _a;\n // Class declarations in Typescript do not allow property declarations\n var parentSymbol = lookupSymbolForPropertyAccess(node.left.expression, container) || lookupSymbolForPropertyAccess(node.left.expression, blockScopeContainer);\n if (!ts.isInJSFile(node) && !ts.isFunctionSymbol(parentSymbol)) {\n return;\n }\n var rootExpr = ts.getLeftmostAccessExpression(node.left);\n if (ts.isIdentifier(rootExpr) && ((_a = lookupSymbolForName(container, rootExpr.escapedText)) === null || _a === void 0 ? void 0 : _a.flags) & 2097152 /* Alias */) {\n return;\n }\n // Fix up parent pointers since we're going to use these nodes before we bind into them\n ts.setParent(node.left, node);\n ts.setParent(node.right, node);\n if (ts.isIdentifier(node.left.expression) && container === file && isExportsOrModuleExportsOrAlias(file, node.left.expression)) {\n // This can be an alias for the 'exports' or 'module.exports' names, e.g.\n // var util = module.exports;\n // util.property = function ...\n bindExportsPropertyAssignment(node);\n }\n else if (ts.hasDynamicName(node)) {\n bindAnonymousDeclaration(node, 4 /* Property */ | 67108864 /* Assignment */, \"__computed\" /* Computed */);\n var sym = bindPotentiallyMissingNamespaces(parentSymbol, node.left.expression, isTopLevelNamespaceAssignment(node.left), /*isPrototype*/ false, /*containerIsClass*/ false);\n addLateBoundAssignmentDeclarationToSymbol(node, sym);\n }\n else {\n bindStaticPropertyAssignment(ts.cast(node.left, ts.isBindableStaticNameExpression));\n }\n }\n /**\n * For nodes like `x.y = z`, declare a member 'y' on 'x' if x is a function (or IIFE) or class or {}, or not declared.\n * Also works for expression statements preceded by JSDoc, like / ** @type number * / x.y;\n */\n function bindStaticPropertyAssignment(node) {\n ts.Debug.assert(!ts.isIdentifier(node));\n ts.setParent(node.expression, node);\n bindPropertyAssignment(node.expression, node, /*isPrototypeProperty*/ false, /*containerIsClass*/ false);\n }\n function bindPotentiallyMissingNamespaces(namespaceSymbol, entityName, isToplevel, isPrototypeProperty, containerIsClass) {\n if ((namespaceSymbol === null || namespaceSymbol === void 0 ? void 0 : namespaceSymbol.flags) & 2097152 /* Alias */) {\n return namespaceSymbol;\n }\n if (isToplevel && !isPrototypeProperty) {\n // make symbols or add declarations for intermediate containers\n var flags_2 = 1536 /* Module */ | 67108864 /* Assignment */;\n var excludeFlags_1 = 110735 /* ValueModuleExcludes */ & ~67108864 /* Assignment */;\n namespaceSymbol = forEachIdentifierInEntityName(entityName, namespaceSymbol, function (id, symbol, parent) {\n if (symbol) {\n addDeclarationToSymbol(symbol, id, flags_2);\n return symbol;\n }\n else {\n var table = parent ? parent.exports :\n file.jsGlobalAugmentations || (file.jsGlobalAugmentations = ts.createSymbolTable());\n return declareSymbol(table, parent, id, flags_2, excludeFlags_1);\n }\n });\n }\n if (containerIsClass && namespaceSymbol && namespaceSymbol.valueDeclaration) {\n addDeclarationToSymbol(namespaceSymbol, namespaceSymbol.valueDeclaration, 32 /* Class */);\n }\n return namespaceSymbol;\n }\n function bindPotentiallyNewExpandoMemberToNamespace(declaration, namespaceSymbol, isPrototypeProperty) {\n if (!namespaceSymbol || !isExpandoSymbol(namespaceSymbol)) {\n return;\n }\n // Set up the members collection if it doesn't exist already\n var symbolTable = isPrototypeProperty ?\n (namespaceSymbol.members || (namespaceSymbol.members = ts.createSymbolTable())) :\n (namespaceSymbol.exports || (namespaceSymbol.exports = ts.createSymbolTable()));\n var includes = 0 /* None */;\n var excludes = 0 /* None */;\n // Method-like\n if (ts.isFunctionLikeDeclaration(ts.getAssignedExpandoInitializer(declaration))) {\n includes = 8192 /* Method */;\n excludes = 103359 /* MethodExcludes */;\n }\n // Maybe accessor-like\n else if (ts.isCallExpression(declaration) && ts.isBindableObjectDefinePropertyCall(declaration)) {\n if (ts.some(declaration.arguments[2].properties, function (p) {\n var id = ts.getNameOfDeclaration(p);\n return !!id && ts.isIdentifier(id) && ts.idText(id) === \"set\";\n })) {\n // We mix in `SymbolFLags.Property` so in the checker `getTypeOfVariableParameterOrProperty` is used for this\n // symbol, instead of `getTypeOfAccessor` (which will assert as there is no real accessor declaration)\n includes |= 65536 /* SetAccessor */ | 4 /* Property */;\n excludes |= 78783 /* SetAccessorExcludes */;\n }\n if (ts.some(declaration.arguments[2].properties, function (p) {\n var id = ts.getNameOfDeclaration(p);\n return !!id && ts.isIdentifier(id) && ts.idText(id) === \"get\";\n })) {\n includes |= 32768 /* GetAccessor */ | 4 /* Property */;\n excludes |= 46015 /* GetAccessorExcludes */;\n }\n }\n if (includes === 0 /* None */) {\n includes = 4 /* Property */;\n excludes = 0 /* PropertyExcludes */;\n }\n declareSymbol(symbolTable, namespaceSymbol, declaration, includes | 67108864 /* Assignment */, excludes & ~67108864 /* Assignment */);\n }\n function isTopLevelNamespaceAssignment(propertyAccess) {\n return ts.isBinaryExpression(propertyAccess.parent)\n ? getParentOfBinaryExpression(propertyAccess.parent).parent.kind === 300 /* SourceFile */\n : propertyAccess.parent.parent.kind === 300 /* SourceFile */;\n }\n function bindPropertyAssignment(name, propertyAccess, isPrototypeProperty, containerIsClass) {\n var namespaceSymbol = lookupSymbolForPropertyAccess(name, container) || lookupSymbolForPropertyAccess(name, blockScopeContainer);\n var isToplevel = isTopLevelNamespaceAssignment(propertyAccess);\n namespaceSymbol = bindPotentiallyMissingNamespaces(namespaceSymbol, propertyAccess.expression, isToplevel, isPrototypeProperty, containerIsClass);\n bindPotentiallyNewExpandoMemberToNamespace(propertyAccess, namespaceSymbol, isPrototypeProperty);\n }\n /**\n * Javascript expando values are:\n * - Functions\n * - classes\n * - namespaces\n * - variables initialized with function expressions\n * - with class expressions\n * - with empty object literals\n * - with non-empty object literals if assigned to the prototype property\n */\n function isExpandoSymbol(symbol) {\n if (symbol.flags & (16 /* Function */ | 32 /* Class */ | 1024 /* NamespaceModule */)) {\n return true;\n }\n var node = symbol.valueDeclaration;\n if (node && ts.isCallExpression(node)) {\n return !!ts.getAssignedExpandoInitializer(node);\n }\n var init = !node ? undefined :\n ts.isVariableDeclaration(node) ? node.initializer :\n ts.isBinaryExpression(node) ? node.right :\n ts.isPropertyAccessExpression(node) && ts.isBinaryExpression(node.parent) ? node.parent.right :\n undefined;\n init = init && ts.getRightMostAssignedExpression(init);\n if (init) {\n var isPrototypeAssignment = ts.isPrototypeAccess(ts.isVariableDeclaration(node) ? node.name : ts.isBinaryExpression(node) ? node.left : node);\n return !!ts.getExpandoInitializer(ts.isBinaryExpression(init) && (init.operatorToken.kind === 56 /* BarBarToken */ || init.operatorToken.kind === 60 /* QuestionQuestionToken */) ? init.right : init, isPrototypeAssignment);\n }\n return false;\n }\n function getParentOfBinaryExpression(expr) {\n while (ts.isBinaryExpression(expr.parent)) {\n expr = expr.parent;\n }\n return expr.parent;\n }\n function lookupSymbolForPropertyAccess(node, lookupContainer) {\n if (lookupContainer === void 0) { lookupContainer = container; }\n if (ts.isIdentifier(node)) {\n return lookupSymbolForName(lookupContainer, node.escapedText);\n }\n else {\n var symbol = lookupSymbolForPropertyAccess(node.expression);\n return symbol && symbol.exports && symbol.exports.get(ts.getElementOrPropertyAccessName(node));\n }\n }\n function forEachIdentifierInEntityName(e, parent, action) {\n if (isExportsOrModuleExportsOrAlias(file, e)) {\n return file.symbol;\n }\n else if (ts.isIdentifier(e)) {\n return action(e, lookupSymbolForPropertyAccess(e), parent);\n }\n else {\n var s = forEachIdentifierInEntityName(e.expression, parent, action);\n var name = ts.getNameOrArgument(e);\n // unreachable\n if (ts.isPrivateIdentifier(name)) {\n ts.Debug.fail(\"unexpected PrivateIdentifier\");\n }\n return action(name, s && s.exports && s.exports.get(ts.getElementOrPropertyAccessName(e)), s);\n }\n }\n function bindCallExpression(node) {\n // We're only inspecting call expressions to detect CommonJS modules, so we can skip\n // this check if we've already seen the module indicator\n if (!file.commonJsModuleIndicator && ts.isRequireCall(node, /*checkArgumentIsStringLiteralLike*/ false)) {\n setCommonJsModuleIndicator(node);\n }\n }\n function bindClassLikeDeclaration(node) {\n if (node.kind === 255 /* ClassDeclaration */) {\n bindBlockScopedDeclaration(node, 32 /* Class */, 899503 /* ClassExcludes */);\n }\n else {\n var bindingName = node.name ? node.name.escapedText : \"__class\" /* Class */;\n bindAnonymousDeclaration(node, 32 /* Class */, bindingName);\n // Add name of class expression into the map for semantic classifier\n if (node.name) {\n classifiableNames.add(node.name.escapedText);\n }\n }\n var symbol = node.symbol;\n // TypeScript 1.0 spec (April 2014): 8.4\n // Every class automatically contains a static property member named 'prototype', the\n // type of which is an instantiation of the class type with type Any supplied as a type\n // argument for each type parameter. It is an error to explicitly declare a static\n // property member with the name 'prototype'.\n //\n // Note: we check for this here because this class may be merging into a module. The\n // module might have an exported variable called 'prototype'. We can't allow that as\n // that would clash with the built-in 'prototype' for the class.\n var prototypeSymbol = createSymbol(4 /* Property */ | 4194304 /* Prototype */, \"prototype\");\n var symbolExport = symbol.exports.get(prototypeSymbol.escapedName);\n if (symbolExport) {\n if (node.name) {\n ts.setParent(node.name, node);\n }\n file.bindDiagnostics.push(createDiagnosticForNode(symbolExport.declarations[0], ts.Diagnostics.Duplicate_identifier_0, ts.symbolName(prototypeSymbol)));\n }\n symbol.exports.set(prototypeSymbol.escapedName, prototypeSymbol);\n prototypeSymbol.parent = symbol;\n }\n function bindEnumDeclaration(node) {\n return ts.isEnumConst(node)\n ? bindBlockScopedDeclaration(node, 128 /* ConstEnum */, 899967 /* ConstEnumExcludes */)\n : bindBlockScopedDeclaration(node, 256 /* RegularEnum */, 899327 /* RegularEnumExcludes */);\n }\n function bindVariableDeclarationOrBindingElement(node) {\n if (inStrictMode) {\n checkStrictModeEvalOrArguments(node, node.name);\n }\n if (!ts.isBindingPattern(node.name)) {\n if (ts.isInJSFile(node) && ts.isRequireVariableDeclaration(node) && !ts.getJSDocTypeTag(node)) {\n declareSymbolAndAddToSymbolTable(node, 2097152 /* Alias */, 2097152 /* AliasExcludes */);\n }\n else if (ts.isBlockOrCatchScoped(node)) {\n bindBlockScopedDeclaration(node, 2 /* BlockScopedVariable */, 111551 /* BlockScopedVariableExcludes */);\n }\n else if (ts.isParameterDeclaration(node)) {\n // It is safe to walk up parent chain to find whether the node is a destructuring parameter declaration\n // because its parent chain has already been set up, since parents are set before descending into children.\n //\n // If node is a binding element in parameter declaration, we need to use ParameterExcludes.\n // Using ParameterExcludes flag allows the compiler to report an error on duplicate identifiers in Parameter Declaration\n // For example:\n // function foo([a,a]) {} // Duplicate Identifier error\n // function bar(a,a) {} // Duplicate Identifier error, parameter declaration in this case is handled in bindParameter\n // // which correctly set excluded symbols\n declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111551 /* ParameterExcludes */);\n }\n else {\n declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111550 /* FunctionScopedVariableExcludes */);\n }\n }\n }\n function bindParameter(node) {\n if (node.kind === 335 /* JSDocParameterTag */ && container.kind !== 318 /* JSDocSignature */) {\n return;\n }\n if (inStrictMode && !(node.flags & 8388608 /* Ambient */)) {\n // It is a SyntaxError if the identifier eval or arguments appears within a FormalParameterList of a\n // strict mode FunctionLikeDeclaration or FunctionExpression(13.1)\n checkStrictModeEvalOrArguments(node, node.name);\n }\n if (ts.isBindingPattern(node.name)) {\n bindAnonymousDeclaration(node, 1 /* FunctionScopedVariable */, \"__\" + node.parent.parameters.indexOf(node));\n }\n else {\n declareSymbolAndAddToSymbolTable(node, 1 /* FunctionScopedVariable */, 111551 /* ParameterExcludes */);\n }\n // If this is a property-parameter, then also declare the property symbol into the\n // containing class.\n if (ts.isParameterPropertyDeclaration(node, node.parent)) {\n var classDeclaration = node.parent.parent;\n declareSymbol(classDeclaration.symbol.members, classDeclaration.symbol, node, 4 /* Property */ | (node.questionToken ? 16777216 /* Optional */ : 0 /* None */), 0 /* PropertyExcludes */);\n }\n }\n function bindFunctionDeclaration(node) {\n if (!file.isDeclarationFile && !(node.flags & 8388608 /* Ambient */)) {\n if (ts.isAsyncFunction(node)) {\n emitFlags |= 2048 /* HasAsyncFunctions */;\n }\n }\n checkStrictModeFunctionName(node);\n if (inStrictMode) {\n checkStrictModeFunctionDeclaration(node);\n bindBlockScopedDeclaration(node, 16 /* Function */, 110991 /* FunctionExcludes */);\n }\n else {\n declareSymbolAndAddToSymbolTable(node, 16 /* Function */, 110991 /* FunctionExcludes */);\n }\n }\n function bindFunctionExpression(node) {\n if (!file.isDeclarationFile && !(node.flags & 8388608 /* Ambient */)) {\n if (ts.isAsyncFunction(node)) {\n emitFlags |= 2048 /* HasAsyncFunctions */;\n }\n }\n if (currentFlow) {\n node.flowNode = currentFlow;\n }\n checkStrictModeFunctionName(node);\n var bindingName = node.name ? node.name.escapedText : \"__function\" /* Function */;\n return bindAnonymousDeclaration(node, 16 /* Function */, bindingName);\n }\n function bindPropertyOrMethodOrAccessor(node, symbolFlags, symbolExcludes) {\n if (!file.isDeclarationFile && !(node.flags & 8388608 /* Ambient */) && ts.isAsyncFunction(node)) {\n emitFlags |= 2048 /* HasAsyncFunctions */;\n }\n if (currentFlow && ts.isObjectLiteralOrClassExpressionMethod(node)) {\n node.flowNode = currentFlow;\n }\n return ts.hasDynamicName(node)\n ? bindAnonymousDeclaration(node, symbolFlags, \"__computed\" /* Computed */)\n : declareSymbolAndAddToSymbolTable(node, symbolFlags, symbolExcludes);\n }\n function getInferTypeContainer(node) {\n var extendsType = ts.findAncestor(node, function (n) { return n.parent && ts.isConditionalTypeNode(n.parent) && n.parent.extendsType === n; });\n return extendsType && extendsType.parent;\n }\n function bindTypeParameter(node) {\n if (ts.isJSDocTemplateTag(node.parent)) {\n var container_1 = ts.find(node.parent.parent.tags, ts.isJSDocTypeAlias) || ts.getHostSignatureFromJSDoc(node.parent); // TODO: GH#18217\n if (container_1) {\n if (!container_1.locals) {\n container_1.locals = ts.createSymbolTable();\n }\n declareSymbol(container_1.locals, /*parent*/ undefined, node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */);\n }\n else {\n declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */);\n }\n }\n else if (node.parent.kind === 188 /* InferType */) {\n var container_2 = getInferTypeContainer(node.parent);\n if (container_2) {\n if (!container_2.locals) {\n container_2.locals = ts.createSymbolTable();\n }\n declareSymbol(container_2.locals, /*parent*/ undefined, node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */);\n }\n else {\n bindAnonymousDeclaration(node, 262144 /* TypeParameter */, getDeclarationName(node)); // TODO: GH#18217\n }\n }\n else {\n declareSymbolAndAddToSymbolTable(node, 262144 /* TypeParameter */, 526824 /* TypeParameterExcludes */);\n }\n }\n // reachability checks\n function shouldReportErrorOnModuleDeclaration(node) {\n var instanceState = getModuleInstanceState(node);\n return instanceState === 1 /* Instantiated */ || (instanceState === 2 /* ConstEnumOnly */ && ts.shouldPreserveConstEnums(options));\n }\n function checkUnreachable(node) {\n if (!(currentFlow.flags & 1 /* Unreachable */)) {\n return false;\n }\n if (currentFlow === unreachableFlow) {\n var reportError = \n // report error on all statements except empty ones\n (ts.isStatementButNotDeclaration(node) && node.kind !== 234 /* EmptyStatement */) ||\n // report error on class declarations\n node.kind === 255 /* ClassDeclaration */ ||\n // report error on instantiated modules or const-enums only modules if preserveConstEnums is set\n (node.kind === 259 /* ModuleDeclaration */ && shouldReportErrorOnModuleDeclaration(node));\n if (reportError) {\n currentFlow = reportedUnreachableFlow;\n if (!options.allowUnreachableCode) {\n // unreachable code is reported if\n // - user has explicitly asked about it AND\n // - statement is in not ambient context (statements in ambient context is already an error\n // so we should not report extras) AND\n // - node is not variable statement OR\n // - node is block scoped variable statement OR\n // - node is not block scoped variable statement and at least one variable declaration has initializer\n // Rationale: we don't want to report errors on non-initialized var's since they are hoisted\n // On the other side we do want to report errors on non-initialized 'lets' because of TDZ\n var isError_1 = ts.unreachableCodeIsError(options) &&\n !(node.flags & 8388608 /* Ambient */) &&\n (!ts.isVariableStatement(node) ||\n !!(ts.getCombinedNodeFlags(node.declarationList) & 3 /* BlockScoped */) ||\n node.declarationList.declarations.some(function (d) { return !!d.initializer; }));\n eachUnreachableRange(node, function (start, end) { return errorOrSuggestionOnRange(isError_1, start, end, ts.Diagnostics.Unreachable_code_detected); });\n }\n }\n }\n return true;\n }\n }\n function eachUnreachableRange(node, cb) {\n if (ts.isStatement(node) && isExecutableStatement(node) && ts.isBlock(node.parent)) {\n var statements = node.parent.statements;\n var slice_1 = ts.sliceAfter(statements, node);\n ts.getRangesWhere(slice_1, isExecutableStatement, function (start, afterEnd) { return cb(slice_1[start], slice_1[afterEnd - 1]); });\n }\n else {\n cb(node, node);\n }\n }\n // As opposed to a pure declaration like an `interface`\n function isExecutableStatement(s) {\n // Don't remove statements that can validly be used before they appear.\n return !ts.isFunctionDeclaration(s) && !isPurelyTypeDeclaration(s) && !ts.isEnumDeclaration(s) &&\n // `var x;` may declare a variable used above\n !(ts.isVariableStatement(s) && !(ts.getCombinedNodeFlags(s) & (1 /* Let */ | 2 /* Const */)) && s.declarationList.declarations.some(function (d) { return !d.initializer; }));\n }\n function isPurelyTypeDeclaration(s) {\n switch (s.kind) {\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n return true;\n case 259 /* ModuleDeclaration */:\n return getModuleInstanceState(s) !== 1 /* Instantiated */;\n case 258 /* EnumDeclaration */:\n return ts.hasSyntacticModifier(s, 2048 /* Const */);\n default:\n return false;\n }\n }\n function isExportsOrModuleExportsOrAlias(sourceFile, node) {\n var i = 0;\n var q = [node];\n while (q.length && i < 100) {\n i++;\n node = q.shift();\n if (ts.isExportsIdentifier(node) || ts.isModuleExportsAccessExpression(node)) {\n return true;\n }\n else if (ts.isIdentifier(node)) {\n var symbol = lookupSymbolForName(sourceFile, node.escapedText);\n if (!!symbol && !!symbol.valueDeclaration && ts.isVariableDeclaration(symbol.valueDeclaration) && !!symbol.valueDeclaration.initializer) {\n var init = symbol.valueDeclaration.initializer;\n q.push(init);\n if (ts.isAssignmentExpression(init, /*excludeCompoundAssignment*/ true)) {\n q.push(init.left);\n q.push(init.right);\n }\n }\n }\n }\n return false;\n }\n ts.isExportsOrModuleExportsOrAlias = isExportsOrModuleExportsOrAlias;\n function lookupSymbolForName(container, name) {\n var local = container.locals && container.locals.get(name);\n if (local) {\n return local.exportSymbol || local;\n }\n if (ts.isSourceFile(container) && container.jsGlobalAugmentations && container.jsGlobalAugmentations.has(name)) {\n return container.jsGlobalAugmentations.get(name);\n }\n return container.symbol && container.symbol.exports && container.symbol.exports.get(name);\n }\n})(ts || (ts = {}));\n/** @internal */\nvar ts;\n(function (ts) {\n function createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignature, getReturnTypeOfSignature, getBaseTypes, resolveStructuredTypeMembers, getTypeOfSymbol, getResolvedSymbol, getConstraintOfTypeParameter, getFirstIdentifier, getTypeArguments) {\n return getSymbolWalker;\n function getSymbolWalker(accept) {\n if (accept === void 0) { accept = function () { return true; }; }\n var visitedTypes = []; // Sparse array from id to type\n var visitedSymbols = []; // Sparse array from id to symbol\n return {\n walkType: function (type) {\n try {\n visitType(type);\n return { visitedTypes: ts.getOwnValues(visitedTypes), visitedSymbols: ts.getOwnValues(visitedSymbols) };\n }\n finally {\n ts.clear(visitedTypes);\n ts.clear(visitedSymbols);\n }\n },\n walkSymbol: function (symbol) {\n try {\n visitSymbol(symbol);\n return { visitedTypes: ts.getOwnValues(visitedTypes), visitedSymbols: ts.getOwnValues(visitedSymbols) };\n }\n finally {\n ts.clear(visitedTypes);\n ts.clear(visitedSymbols);\n }\n },\n };\n function visitType(type) {\n if (!type) {\n return;\n }\n if (visitedTypes[type.id]) {\n return;\n }\n visitedTypes[type.id] = type;\n // Reuse visitSymbol to visit the type's symbol,\n // but be sure to bail on recuring into the type if accept declines the symbol.\n var shouldBail = visitSymbol(type.symbol);\n if (shouldBail)\n return;\n // Visit the type's related types, if any\n if (type.flags & 524288 /* Object */) {\n var objectType = type;\n var objectFlags = objectType.objectFlags;\n if (objectFlags & 4 /* Reference */) {\n visitTypeReference(type);\n }\n if (objectFlags & 32 /* Mapped */) {\n visitMappedType(type);\n }\n if (objectFlags & (1 /* Class */ | 2 /* Interface */)) {\n visitInterfaceType(type);\n }\n if (objectFlags & (8 /* Tuple */ | 16 /* Anonymous */)) {\n visitObjectType(objectType);\n }\n }\n if (type.flags & 262144 /* TypeParameter */) {\n visitTypeParameter(type);\n }\n if (type.flags & 3145728 /* UnionOrIntersection */) {\n visitUnionOrIntersectionType(type);\n }\n if (type.flags & 4194304 /* Index */) {\n visitIndexType(type);\n }\n if (type.flags & 8388608 /* IndexedAccess */) {\n visitIndexedAccessType(type);\n }\n }\n function visitTypeReference(type) {\n visitType(type.target);\n ts.forEach(getTypeArguments(type), visitType);\n }\n function visitTypeParameter(type) {\n visitType(getConstraintOfTypeParameter(type));\n }\n function visitUnionOrIntersectionType(type) {\n ts.forEach(type.types, visitType);\n }\n function visitIndexType(type) {\n visitType(type.type);\n }\n function visitIndexedAccessType(type) {\n visitType(type.objectType);\n visitType(type.indexType);\n visitType(type.constraint);\n }\n function visitMappedType(type) {\n visitType(type.typeParameter);\n visitType(type.constraintType);\n visitType(type.templateType);\n visitType(type.modifiersType);\n }\n function visitSignature(signature) {\n var typePredicate = getTypePredicateOfSignature(signature);\n if (typePredicate) {\n visitType(typePredicate.type);\n }\n ts.forEach(signature.typeParameters, visitType);\n for (var _i = 0, _a = signature.parameters; _i < _a.length; _i++) {\n var parameter = _a[_i];\n visitSymbol(parameter);\n }\n visitType(getRestTypeOfSignature(signature));\n visitType(getReturnTypeOfSignature(signature));\n }\n function visitInterfaceType(interfaceT) {\n visitObjectType(interfaceT);\n ts.forEach(interfaceT.typeParameters, visitType);\n ts.forEach(getBaseTypes(interfaceT), visitType);\n visitType(interfaceT.thisType);\n }\n function visitObjectType(type) {\n var resolved = resolveStructuredTypeMembers(type);\n for (var _i = 0, _a = resolved.indexInfos; _i < _a.length; _i++) {\n var info = _a[_i];\n visitType(info.keyType);\n visitType(info.type);\n }\n for (var _b = 0, _c = resolved.callSignatures; _b < _c.length; _b++) {\n var signature = _c[_b];\n visitSignature(signature);\n }\n for (var _d = 0, _e = resolved.constructSignatures; _d < _e.length; _d++) {\n var signature = _e[_d];\n visitSignature(signature);\n }\n for (var _f = 0, _g = resolved.properties; _f < _g.length; _f++) {\n var p = _g[_f];\n visitSymbol(p);\n }\n }\n function visitSymbol(symbol) {\n if (!symbol) {\n return false;\n }\n var symbolId = ts.getSymbolId(symbol);\n if (visitedSymbols[symbolId]) {\n return false;\n }\n visitedSymbols[symbolId] = symbol;\n if (!accept(symbol)) {\n return true;\n }\n var t = getTypeOfSymbol(symbol);\n visitType(t); // Should handle members on classes and such\n if (symbol.exports) {\n symbol.exports.forEach(visitSymbol);\n }\n ts.forEach(symbol.declarations, function (d) {\n // Type queries are too far resolved when we just visit the symbol's type\n // (their type resolved directly to the member deeply referenced)\n // So to get the intervening symbols, we need to check if there's a type\n // query node on any of the symbol's declarations and get symbols there\n if (d.type && d.type.kind === 179 /* TypeQuery */) {\n var query = d.type;\n var entity = getResolvedSymbol(getFirstIdentifier(query.exprName));\n visitSymbol(entity);\n }\n });\n return false;\n }\n }\n }\n ts.createGetSymbolWalker = createGetSymbolWalker;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var ambientModuleSymbolRegex = /^\".+\"$/;\n var anon = \"(anonymous)\";\n var nextSymbolId = 1;\n var nextNodeId = 1;\n var nextMergeId = 1;\n var nextFlowId = 1;\n var IterationUse;\n (function (IterationUse) {\n IterationUse[IterationUse[\"AllowsSyncIterablesFlag\"] = 1] = \"AllowsSyncIterablesFlag\";\n IterationUse[IterationUse[\"AllowsAsyncIterablesFlag\"] = 2] = \"AllowsAsyncIterablesFlag\";\n IterationUse[IterationUse[\"AllowsStringInputFlag\"] = 4] = \"AllowsStringInputFlag\";\n IterationUse[IterationUse[\"ForOfFlag\"] = 8] = \"ForOfFlag\";\n IterationUse[IterationUse[\"YieldStarFlag\"] = 16] = \"YieldStarFlag\";\n IterationUse[IterationUse[\"SpreadFlag\"] = 32] = \"SpreadFlag\";\n IterationUse[IterationUse[\"DestructuringFlag\"] = 64] = \"DestructuringFlag\";\n IterationUse[IterationUse[\"PossiblyOutOfBounds\"] = 128] = \"PossiblyOutOfBounds\";\n // Spread, Destructuring, Array element assignment\n IterationUse[IterationUse[\"Element\"] = 1] = \"Element\";\n IterationUse[IterationUse[\"Spread\"] = 33] = \"Spread\";\n IterationUse[IterationUse[\"Destructuring\"] = 65] = \"Destructuring\";\n IterationUse[IterationUse[\"ForOf\"] = 13] = \"ForOf\";\n IterationUse[IterationUse[\"ForAwaitOf\"] = 15] = \"ForAwaitOf\";\n IterationUse[IterationUse[\"YieldStar\"] = 17] = \"YieldStar\";\n IterationUse[IterationUse[\"AsyncYieldStar\"] = 19] = \"AsyncYieldStar\";\n IterationUse[IterationUse[\"GeneratorReturnType\"] = 1] = \"GeneratorReturnType\";\n IterationUse[IterationUse[\"AsyncGeneratorReturnType\"] = 2] = \"AsyncGeneratorReturnType\";\n })(IterationUse || (IterationUse = {}));\n var IterationTypeKind;\n (function (IterationTypeKind) {\n IterationTypeKind[IterationTypeKind[\"Yield\"] = 0] = \"Yield\";\n IterationTypeKind[IterationTypeKind[\"Return\"] = 1] = \"Return\";\n IterationTypeKind[IterationTypeKind[\"Next\"] = 2] = \"Next\";\n })(IterationTypeKind || (IterationTypeKind = {}));\n var WideningKind;\n (function (WideningKind) {\n WideningKind[WideningKind[\"Normal\"] = 0] = \"Normal\";\n WideningKind[WideningKind[\"FunctionReturn\"] = 1] = \"FunctionReturn\";\n WideningKind[WideningKind[\"GeneratorNext\"] = 2] = \"GeneratorNext\";\n WideningKind[WideningKind[\"GeneratorYield\"] = 3] = \"GeneratorYield\";\n })(WideningKind || (WideningKind = {}));\n var TypeFacts;\n (function (TypeFacts) {\n TypeFacts[TypeFacts[\"None\"] = 0] = \"None\";\n TypeFacts[TypeFacts[\"TypeofEQString\"] = 1] = \"TypeofEQString\";\n TypeFacts[TypeFacts[\"TypeofEQNumber\"] = 2] = \"TypeofEQNumber\";\n TypeFacts[TypeFacts[\"TypeofEQBigInt\"] = 4] = \"TypeofEQBigInt\";\n TypeFacts[TypeFacts[\"TypeofEQBoolean\"] = 8] = \"TypeofEQBoolean\";\n TypeFacts[TypeFacts[\"TypeofEQSymbol\"] = 16] = \"TypeofEQSymbol\";\n TypeFacts[TypeFacts[\"TypeofEQObject\"] = 32] = \"TypeofEQObject\";\n TypeFacts[TypeFacts[\"TypeofEQFunction\"] = 64] = \"TypeofEQFunction\";\n TypeFacts[TypeFacts[\"TypeofEQHostObject\"] = 128] = \"TypeofEQHostObject\";\n TypeFacts[TypeFacts[\"TypeofNEString\"] = 256] = \"TypeofNEString\";\n TypeFacts[TypeFacts[\"TypeofNENumber\"] = 512] = \"TypeofNENumber\";\n TypeFacts[TypeFacts[\"TypeofNEBigInt\"] = 1024] = \"TypeofNEBigInt\";\n TypeFacts[TypeFacts[\"TypeofNEBoolean\"] = 2048] = \"TypeofNEBoolean\";\n TypeFacts[TypeFacts[\"TypeofNESymbol\"] = 4096] = \"TypeofNESymbol\";\n TypeFacts[TypeFacts[\"TypeofNEObject\"] = 8192] = \"TypeofNEObject\";\n TypeFacts[TypeFacts[\"TypeofNEFunction\"] = 16384] = \"TypeofNEFunction\";\n TypeFacts[TypeFacts[\"TypeofNEHostObject\"] = 32768] = \"TypeofNEHostObject\";\n TypeFacts[TypeFacts[\"EQUndefined\"] = 65536] = \"EQUndefined\";\n TypeFacts[TypeFacts[\"EQNull\"] = 131072] = \"EQNull\";\n TypeFacts[TypeFacts[\"EQUndefinedOrNull\"] = 262144] = \"EQUndefinedOrNull\";\n TypeFacts[TypeFacts[\"NEUndefined\"] = 524288] = \"NEUndefined\";\n TypeFacts[TypeFacts[\"NENull\"] = 1048576] = \"NENull\";\n TypeFacts[TypeFacts[\"NEUndefinedOrNull\"] = 2097152] = \"NEUndefinedOrNull\";\n TypeFacts[TypeFacts[\"Truthy\"] = 4194304] = \"Truthy\";\n TypeFacts[TypeFacts[\"Falsy\"] = 8388608] = \"Falsy\";\n TypeFacts[TypeFacts[\"All\"] = 16777215] = \"All\";\n // The following members encode facts about particular kinds of types for use in the getTypeFacts function.\n // The presence of a particular fact means that the given test is true for some (and possibly all) values\n // of that kind of type.\n TypeFacts[TypeFacts[\"BaseStringStrictFacts\"] = 3735041] = \"BaseStringStrictFacts\";\n TypeFacts[TypeFacts[\"BaseStringFacts\"] = 12582401] = \"BaseStringFacts\";\n TypeFacts[TypeFacts[\"StringStrictFacts\"] = 16317953] = \"StringStrictFacts\";\n TypeFacts[TypeFacts[\"StringFacts\"] = 16776705] = \"StringFacts\";\n TypeFacts[TypeFacts[\"EmptyStringStrictFacts\"] = 12123649] = \"EmptyStringStrictFacts\";\n TypeFacts[TypeFacts[\"EmptyStringFacts\"] = 12582401] = \"EmptyStringFacts\";\n TypeFacts[TypeFacts[\"NonEmptyStringStrictFacts\"] = 7929345] = \"NonEmptyStringStrictFacts\";\n TypeFacts[TypeFacts[\"NonEmptyStringFacts\"] = 16776705] = \"NonEmptyStringFacts\";\n TypeFacts[TypeFacts[\"BaseNumberStrictFacts\"] = 3734786] = \"BaseNumberStrictFacts\";\n TypeFacts[TypeFacts[\"BaseNumberFacts\"] = 12582146] = \"BaseNumberFacts\";\n TypeFacts[TypeFacts[\"NumberStrictFacts\"] = 16317698] = \"NumberStrictFacts\";\n TypeFacts[TypeFacts[\"NumberFacts\"] = 16776450] = \"NumberFacts\";\n TypeFacts[TypeFacts[\"ZeroNumberStrictFacts\"] = 12123394] = \"ZeroNumberStrictFacts\";\n TypeFacts[TypeFacts[\"ZeroNumberFacts\"] = 12582146] = \"ZeroNumberFacts\";\n TypeFacts[TypeFacts[\"NonZeroNumberStrictFacts\"] = 7929090] = \"NonZeroNumberStrictFacts\";\n TypeFacts[TypeFacts[\"NonZeroNumberFacts\"] = 16776450] = \"NonZeroNumberFacts\";\n TypeFacts[TypeFacts[\"BaseBigIntStrictFacts\"] = 3734276] = \"BaseBigIntStrictFacts\";\n TypeFacts[TypeFacts[\"BaseBigIntFacts\"] = 12581636] = \"BaseBigIntFacts\";\n TypeFacts[TypeFacts[\"BigIntStrictFacts\"] = 16317188] = \"BigIntStrictFacts\";\n TypeFacts[TypeFacts[\"BigIntFacts\"] = 16775940] = \"BigIntFacts\";\n TypeFacts[TypeFacts[\"ZeroBigIntStrictFacts\"] = 12122884] = \"ZeroBigIntStrictFacts\";\n TypeFacts[TypeFacts[\"ZeroBigIntFacts\"] = 12581636] = \"ZeroBigIntFacts\";\n TypeFacts[TypeFacts[\"NonZeroBigIntStrictFacts\"] = 7928580] = \"NonZeroBigIntStrictFacts\";\n TypeFacts[TypeFacts[\"NonZeroBigIntFacts\"] = 16775940] = \"NonZeroBigIntFacts\";\n TypeFacts[TypeFacts[\"BaseBooleanStrictFacts\"] = 3733256] = \"BaseBooleanStrictFacts\";\n TypeFacts[TypeFacts[\"BaseBooleanFacts\"] = 12580616] = \"BaseBooleanFacts\";\n TypeFacts[TypeFacts[\"BooleanStrictFacts\"] = 16316168] = \"BooleanStrictFacts\";\n TypeFacts[TypeFacts[\"BooleanFacts\"] = 16774920] = \"BooleanFacts\";\n TypeFacts[TypeFacts[\"FalseStrictFacts\"] = 12121864] = \"FalseStrictFacts\";\n TypeFacts[TypeFacts[\"FalseFacts\"] = 12580616] = \"FalseFacts\";\n TypeFacts[TypeFacts[\"TrueStrictFacts\"] = 7927560] = \"TrueStrictFacts\";\n TypeFacts[TypeFacts[\"TrueFacts\"] = 16774920] = \"TrueFacts\";\n TypeFacts[TypeFacts[\"SymbolStrictFacts\"] = 7925520] = \"SymbolStrictFacts\";\n TypeFacts[TypeFacts[\"SymbolFacts\"] = 16772880] = \"SymbolFacts\";\n TypeFacts[TypeFacts[\"ObjectStrictFacts\"] = 7888800] = \"ObjectStrictFacts\";\n TypeFacts[TypeFacts[\"ObjectFacts\"] = 16736160] = \"ObjectFacts\";\n TypeFacts[TypeFacts[\"FunctionStrictFacts\"] = 7880640] = \"FunctionStrictFacts\";\n TypeFacts[TypeFacts[\"FunctionFacts\"] = 16728000] = \"FunctionFacts\";\n TypeFacts[TypeFacts[\"UndefinedFacts\"] = 9830144] = \"UndefinedFacts\";\n TypeFacts[TypeFacts[\"NullFacts\"] = 9363232] = \"NullFacts\";\n TypeFacts[TypeFacts[\"EmptyObjectStrictFacts\"] = 16318463] = \"EmptyObjectStrictFacts\";\n TypeFacts[TypeFacts[\"AllTypeofNE\"] = 556800] = \"AllTypeofNE\";\n TypeFacts[TypeFacts[\"EmptyObjectFacts\"] = 16777215] = \"EmptyObjectFacts\";\n })(TypeFacts || (TypeFacts = {}));\n var typeofEQFacts = new ts.Map(ts.getEntries({\n string: 1 /* TypeofEQString */,\n number: 2 /* TypeofEQNumber */,\n bigint: 4 /* TypeofEQBigInt */,\n boolean: 8 /* TypeofEQBoolean */,\n symbol: 16 /* TypeofEQSymbol */,\n undefined: 65536 /* EQUndefined */,\n object: 32 /* TypeofEQObject */,\n function: 64 /* TypeofEQFunction */\n }));\n var typeofNEFacts = new ts.Map(ts.getEntries({\n string: 256 /* TypeofNEString */,\n number: 512 /* TypeofNENumber */,\n bigint: 1024 /* TypeofNEBigInt */,\n boolean: 2048 /* TypeofNEBoolean */,\n symbol: 4096 /* TypeofNESymbol */,\n undefined: 524288 /* NEUndefined */,\n object: 8192 /* TypeofNEObject */,\n function: 16384 /* TypeofNEFunction */\n }));\n var TypeSystemPropertyName;\n (function (TypeSystemPropertyName) {\n TypeSystemPropertyName[TypeSystemPropertyName[\"Type\"] = 0] = \"Type\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"ResolvedBaseConstructorType\"] = 1] = \"ResolvedBaseConstructorType\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"DeclaredType\"] = 2] = \"DeclaredType\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"ResolvedReturnType\"] = 3] = \"ResolvedReturnType\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"ImmediateBaseConstraint\"] = 4] = \"ImmediateBaseConstraint\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"EnumTagType\"] = 5] = \"EnumTagType\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"ResolvedTypeArguments\"] = 6] = \"ResolvedTypeArguments\";\n TypeSystemPropertyName[TypeSystemPropertyName[\"ResolvedBaseTypes\"] = 7] = \"ResolvedBaseTypes\";\n })(TypeSystemPropertyName || (TypeSystemPropertyName = {}));\n var CheckMode;\n (function (CheckMode) {\n CheckMode[CheckMode[\"Normal\"] = 0] = \"Normal\";\n CheckMode[CheckMode[\"Contextual\"] = 1] = \"Contextual\";\n CheckMode[CheckMode[\"Inferential\"] = 2] = \"Inferential\";\n CheckMode[CheckMode[\"SkipContextSensitive\"] = 4] = \"SkipContextSensitive\";\n CheckMode[CheckMode[\"SkipGenericFunctions\"] = 8] = \"SkipGenericFunctions\";\n CheckMode[CheckMode[\"IsForSignatureHelp\"] = 16] = \"IsForSignatureHelp\";\n })(CheckMode || (CheckMode = {}));\n var SignatureCheckMode;\n (function (SignatureCheckMode) {\n SignatureCheckMode[SignatureCheckMode[\"BivariantCallback\"] = 1] = \"BivariantCallback\";\n SignatureCheckMode[SignatureCheckMode[\"StrictCallback\"] = 2] = \"StrictCallback\";\n SignatureCheckMode[SignatureCheckMode[\"IgnoreReturnTypes\"] = 4] = \"IgnoreReturnTypes\";\n SignatureCheckMode[SignatureCheckMode[\"StrictArity\"] = 8] = \"StrictArity\";\n SignatureCheckMode[SignatureCheckMode[\"Callback\"] = 3] = \"Callback\";\n })(SignatureCheckMode || (SignatureCheckMode = {}));\n var IntersectionState;\n (function (IntersectionState) {\n IntersectionState[IntersectionState[\"None\"] = 0] = \"None\";\n IntersectionState[IntersectionState[\"Source\"] = 1] = \"Source\";\n IntersectionState[IntersectionState[\"Target\"] = 2] = \"Target\";\n IntersectionState[IntersectionState[\"PropertyCheck\"] = 4] = \"PropertyCheck\";\n IntersectionState[IntersectionState[\"UnionIntersectionCheck\"] = 8] = \"UnionIntersectionCheck\";\n IntersectionState[IntersectionState[\"InPropertyCheck\"] = 16] = \"InPropertyCheck\";\n })(IntersectionState || (IntersectionState = {}));\n var MappedTypeModifiers;\n (function (MappedTypeModifiers) {\n MappedTypeModifiers[MappedTypeModifiers[\"IncludeReadonly\"] = 1] = \"IncludeReadonly\";\n MappedTypeModifiers[MappedTypeModifiers[\"ExcludeReadonly\"] = 2] = \"ExcludeReadonly\";\n MappedTypeModifiers[MappedTypeModifiers[\"IncludeOptional\"] = 4] = \"IncludeOptional\";\n MappedTypeModifiers[MappedTypeModifiers[\"ExcludeOptional\"] = 8] = \"ExcludeOptional\";\n })(MappedTypeModifiers || (MappedTypeModifiers = {}));\n var ExpandingFlags;\n (function (ExpandingFlags) {\n ExpandingFlags[ExpandingFlags[\"None\"] = 0] = \"None\";\n ExpandingFlags[ExpandingFlags[\"Source\"] = 1] = \"Source\";\n ExpandingFlags[ExpandingFlags[\"Target\"] = 2] = \"Target\";\n ExpandingFlags[ExpandingFlags[\"Both\"] = 3] = \"Both\";\n })(ExpandingFlags || (ExpandingFlags = {}));\n var MembersOrExportsResolutionKind;\n (function (MembersOrExportsResolutionKind) {\n MembersOrExportsResolutionKind[\"resolvedExports\"] = \"resolvedExports\";\n MembersOrExportsResolutionKind[\"resolvedMembers\"] = \"resolvedMembers\";\n })(MembersOrExportsResolutionKind || (MembersOrExportsResolutionKind = {}));\n var UnusedKind;\n (function (UnusedKind) {\n UnusedKind[UnusedKind[\"Local\"] = 0] = \"Local\";\n UnusedKind[UnusedKind[\"Parameter\"] = 1] = \"Parameter\";\n })(UnusedKind || (UnusedKind = {}));\n var isNotOverloadAndNotAccessor = ts.and(isNotOverload, isNotAccessor);\n var DeclarationMeaning;\n (function (DeclarationMeaning) {\n DeclarationMeaning[DeclarationMeaning[\"GetAccessor\"] = 1] = \"GetAccessor\";\n DeclarationMeaning[DeclarationMeaning[\"SetAccessor\"] = 2] = \"SetAccessor\";\n DeclarationMeaning[DeclarationMeaning[\"PropertyAssignment\"] = 4] = \"PropertyAssignment\";\n DeclarationMeaning[DeclarationMeaning[\"Method\"] = 8] = \"Method\";\n DeclarationMeaning[DeclarationMeaning[\"PrivateStatic\"] = 16] = \"PrivateStatic\";\n DeclarationMeaning[DeclarationMeaning[\"GetOrSetAccessor\"] = 3] = \"GetOrSetAccessor\";\n DeclarationMeaning[DeclarationMeaning[\"PropertyAssignmentOrMethod\"] = 12] = \"PropertyAssignmentOrMethod\";\n })(DeclarationMeaning || (DeclarationMeaning = {}));\n var DeclarationSpaces;\n (function (DeclarationSpaces) {\n DeclarationSpaces[DeclarationSpaces[\"None\"] = 0] = \"None\";\n DeclarationSpaces[DeclarationSpaces[\"ExportValue\"] = 1] = \"ExportValue\";\n DeclarationSpaces[DeclarationSpaces[\"ExportType\"] = 2] = \"ExportType\";\n DeclarationSpaces[DeclarationSpaces[\"ExportNamespace\"] = 4] = \"ExportNamespace\";\n })(DeclarationSpaces || (DeclarationSpaces = {}));\n var MinArgumentCountFlags;\n (function (MinArgumentCountFlags) {\n MinArgumentCountFlags[MinArgumentCountFlags[\"None\"] = 0] = \"None\";\n MinArgumentCountFlags[MinArgumentCountFlags[\"StrongArityForUntypedJS\"] = 1] = \"StrongArityForUntypedJS\";\n MinArgumentCountFlags[MinArgumentCountFlags[\"VoidIsNonOptional\"] = 2] = \"VoidIsNonOptional\";\n })(MinArgumentCountFlags || (MinArgumentCountFlags = {}));\n var IntrinsicTypeKind;\n (function (IntrinsicTypeKind) {\n IntrinsicTypeKind[IntrinsicTypeKind[\"Uppercase\"] = 0] = \"Uppercase\";\n IntrinsicTypeKind[IntrinsicTypeKind[\"Lowercase\"] = 1] = \"Lowercase\";\n IntrinsicTypeKind[IntrinsicTypeKind[\"Capitalize\"] = 2] = \"Capitalize\";\n IntrinsicTypeKind[IntrinsicTypeKind[\"Uncapitalize\"] = 3] = \"Uncapitalize\";\n })(IntrinsicTypeKind || (IntrinsicTypeKind = {}));\n var intrinsicTypeKinds = new ts.Map(ts.getEntries({\n Uppercase: 0 /* Uppercase */,\n Lowercase: 1 /* Lowercase */,\n Capitalize: 2 /* Capitalize */,\n Uncapitalize: 3 /* Uncapitalize */\n }));\n function SymbolLinks() {\n }\n function NodeLinks() {\n this.flags = 0;\n }\n function getNodeId(node) {\n if (!node.id) {\n node.id = nextNodeId;\n nextNodeId++;\n }\n return node.id;\n }\n ts.getNodeId = getNodeId;\n function getSymbolId(symbol) {\n if (!symbol.id) {\n symbol.id = nextSymbolId;\n nextSymbolId++;\n }\n return symbol.id;\n }\n ts.getSymbolId = getSymbolId;\n function isInstantiatedModule(node, preserveConstEnums) {\n var moduleState = ts.getModuleInstanceState(node);\n return moduleState === 1 /* Instantiated */ ||\n (preserveConstEnums && moduleState === 2 /* ConstEnumOnly */);\n }\n ts.isInstantiatedModule = isInstantiatedModule;\n function createTypeChecker(host, produceDiagnostics) {\n var getPackagesSet = ts.memoize(function () {\n var set = new ts.Set();\n host.getSourceFiles().forEach(function (sf) {\n if (!sf.resolvedModules)\n return;\n ts.forEachEntry(sf.resolvedModules, function (r) {\n if (r && r.packageId)\n set.add(r.packageId.name);\n });\n });\n return set;\n });\n // Cancellation that controls whether or not we can cancel in the middle of type checking.\n // In general cancelling is *not* safe for the type checker. We might be in the middle of\n // computing something, and we will leave our internals in an inconsistent state. Callers\n // who set the cancellation token should catch if a cancellation exception occurs, and\n // should throw away and create a new TypeChecker.\n //\n // Currently we only support setting the cancellation token when getting diagnostics. This\n // is because diagnostics can be quite expensive, and we want to allow hosts to bail out if\n // they no longer need the information (for example, if the user started editing again).\n var cancellationToken;\n var requestedExternalEmitHelpers;\n var externalHelpersModule;\n var Symbol = ts.objectAllocator.getSymbolConstructor();\n var Type = ts.objectAllocator.getTypeConstructor();\n var Signature = ts.objectAllocator.getSignatureConstructor();\n var typeCount = 0;\n var symbolCount = 0;\n var enumCount = 0;\n var totalInstantiationCount = 0;\n var instantiationCount = 0;\n var instantiationDepth = 0;\n var currentNode;\n var emptySymbols = ts.createSymbolTable();\n var arrayVariances = [1 /* Covariant */];\n var compilerOptions = host.getCompilerOptions();\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);\n var allowSyntheticDefaultImports = ts.getAllowSyntheticDefaultImports(compilerOptions);\n var strictNullChecks = ts.getStrictOptionValue(compilerOptions, \"strictNullChecks\");\n var strictFunctionTypes = ts.getStrictOptionValue(compilerOptions, \"strictFunctionTypes\");\n var strictBindCallApply = ts.getStrictOptionValue(compilerOptions, \"strictBindCallApply\");\n var strictPropertyInitialization = ts.getStrictOptionValue(compilerOptions, \"strictPropertyInitialization\");\n var noImplicitAny = ts.getStrictOptionValue(compilerOptions, \"noImplicitAny\");\n var noImplicitThis = ts.getStrictOptionValue(compilerOptions, \"noImplicitThis\");\n var useUnknownInCatchVariables = ts.getStrictOptionValue(compilerOptions, \"useUnknownInCatchVariables\");\n var keyofStringsOnly = !!compilerOptions.keyofStringsOnly;\n var freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : 16384 /* FreshLiteral */;\n var exactOptionalPropertyTypes = compilerOptions.exactOptionalPropertyTypes;\n var checkBinaryExpression = createCheckBinaryExpression();\n var emitResolver = createResolver();\n var nodeBuilder = createNodeBuilder();\n var globals = ts.createSymbolTable();\n var undefinedSymbol = createSymbol(4 /* Property */, \"undefined\");\n undefinedSymbol.declarations = [];\n var globalThisSymbol = createSymbol(1536 /* Module */, \"globalThis\", 8 /* Readonly */);\n globalThisSymbol.exports = globals;\n globalThisSymbol.declarations = [];\n globals.set(globalThisSymbol.escapedName, globalThisSymbol);\n var argumentsSymbol = createSymbol(4 /* Property */, \"arguments\");\n var requireSymbol = createSymbol(4 /* Property */, \"require\");\n /** This will be set during calls to `getResolvedSignature` where services determines an apparent number of arguments greater than what is actually provided. */\n var apparentArgumentCount;\n // for public members that accept a Node or one of its subtypes, we must guard against\n // synthetic nodes created during transformations by calling `getParseTreeNode`.\n // for most of these, we perform the guard only on `checker` to avoid any possible\n // extra cost of calling `getParseTreeNode` when calling these functions from inside the\n // checker.\n var checker = {\n getNodeCount: function () { return ts.sum(host.getSourceFiles(), \"nodeCount\"); },\n getIdentifierCount: function () { return ts.sum(host.getSourceFiles(), \"identifierCount\"); },\n getSymbolCount: function () { return ts.sum(host.getSourceFiles(), \"symbolCount\") + symbolCount; },\n getTypeCount: function () { return typeCount; },\n getInstantiationCount: function () { return totalInstantiationCount; },\n getRelationCacheSizes: function () { return ({\n assignable: assignableRelation.size,\n identity: identityRelation.size,\n subtype: subtypeRelation.size,\n strictSubtype: strictSubtypeRelation.size,\n }); },\n isUndefinedSymbol: function (symbol) { return symbol === undefinedSymbol; },\n isArgumentsSymbol: function (symbol) { return symbol === argumentsSymbol; },\n isUnknownSymbol: function (symbol) { return symbol === unknownSymbol; },\n getMergedSymbol: getMergedSymbol,\n getDiagnostics: getDiagnostics,\n getGlobalDiagnostics: getGlobalDiagnostics,\n getRecursionIdentity: getRecursionIdentity,\n getUnmatchedProperties: getUnmatchedProperties,\n getTypeOfSymbolAtLocation: function (symbol, locationIn) {\n var location = ts.getParseTreeNode(locationIn);\n return location ? getTypeOfSymbolAtLocation(symbol, location) : errorType;\n },\n getSymbolsOfParameterPropertyDeclaration: function (parameterIn, parameterName) {\n var parameter = ts.getParseTreeNode(parameterIn, ts.isParameter);\n if (parameter === undefined)\n return ts.Debug.fail(\"Cannot get symbols of a synthetic parameter that cannot be resolved to a parse-tree node.\");\n return getSymbolsOfParameterPropertyDeclaration(parameter, ts.escapeLeadingUnderscores(parameterName));\n },\n getDeclaredTypeOfSymbol: getDeclaredTypeOfSymbol,\n getPropertiesOfType: getPropertiesOfType,\n getPropertyOfType: function (type, name) { return getPropertyOfType(type, ts.escapeLeadingUnderscores(name)); },\n getPrivateIdentifierPropertyOfType: function (leftType, name, location) {\n var node = ts.getParseTreeNode(location);\n if (!node) {\n return undefined;\n }\n var propName = ts.escapeLeadingUnderscores(name);\n var lexicallyScopedIdentifier = lookupSymbolForPrivateIdentifierDeclaration(propName, node);\n return lexicallyScopedIdentifier ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) : undefined;\n },\n getTypeOfPropertyOfType: function (type, name) { return getTypeOfPropertyOfType(type, ts.escapeLeadingUnderscores(name)); },\n getIndexInfoOfType: function (type, kind) { return getIndexInfoOfType(type, kind === 0 /* String */ ? stringType : numberType); },\n getIndexInfosOfType: getIndexInfosOfType,\n getSignaturesOfType: getSignaturesOfType,\n getIndexTypeOfType: function (type, kind) { return getIndexTypeOfType(type, kind === 0 /* String */ ? stringType : numberType); },\n getBaseTypes: getBaseTypes,\n getBaseTypeOfLiteralType: getBaseTypeOfLiteralType,\n getWidenedType: getWidenedType,\n getTypeFromTypeNode: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isTypeNode);\n return node ? getTypeFromTypeNode(node) : errorType;\n },\n getParameterType: getTypeAtPosition,\n getParameterIdentifierNameAtPosition: getParameterIdentifierNameAtPosition,\n getPromisedTypeOfPromise: getPromisedTypeOfPromise,\n getAwaitedType: function (type) { return getAwaitedType(type); },\n getReturnTypeOfSignature: getReturnTypeOfSignature,\n isNullableType: isNullableType,\n getNullableType: getNullableType,\n getNonNullableType: getNonNullableType,\n getNonOptionalType: removeOptionalTypeMarker,\n getTypeArguments: getTypeArguments,\n typeToTypeNode: nodeBuilder.typeToTypeNode,\n indexInfoToIndexSignatureDeclaration: nodeBuilder.indexInfoToIndexSignatureDeclaration,\n signatureToSignatureDeclaration: nodeBuilder.signatureToSignatureDeclaration,\n symbolToEntityName: nodeBuilder.symbolToEntityName,\n symbolToExpression: nodeBuilder.symbolToExpression,\n symbolToTypeParameterDeclarations: nodeBuilder.symbolToTypeParameterDeclarations,\n symbolToParameterDeclaration: nodeBuilder.symbolToParameterDeclaration,\n typeParameterToDeclaration: nodeBuilder.typeParameterToDeclaration,\n getSymbolsInScope: function (locationIn, meaning) {\n var location = ts.getParseTreeNode(locationIn);\n return location ? getSymbolsInScope(location, meaning) : [];\n },\n getSymbolAtLocation: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn);\n // set ignoreErrors: true because any lookups invoked by the API shouldn't cause any new errors\n return node ? getSymbolAtLocation(node, /*ignoreErrors*/ true) : undefined;\n },\n getIndexInfosAtLocation: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn);\n return node ? getIndexInfosAtLocation(node) : undefined;\n },\n getShorthandAssignmentValueSymbol: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn);\n return node ? getShorthandAssignmentValueSymbol(node) : undefined;\n },\n getExportSpecifierLocalTargetSymbol: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isExportSpecifier);\n return node ? getExportSpecifierLocalTargetSymbol(node) : undefined;\n },\n getExportSymbolOfSymbol: function (symbol) {\n return getMergedSymbol(symbol.exportSymbol || symbol);\n },\n getTypeAtLocation: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn);\n return node ? getTypeOfNode(node) : errorType;\n },\n getTypeOfAssignmentPattern: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isAssignmentPattern);\n return node && getTypeOfAssignmentPattern(node) || errorType;\n },\n getPropertySymbolOfDestructuringAssignment: function (locationIn) {\n var location = ts.getParseTreeNode(locationIn, ts.isIdentifier);\n return location ? getPropertySymbolOfDestructuringAssignment(location) : undefined;\n },\n signatureToString: function (signature, enclosingDeclaration, flags, kind) {\n return signatureToString(signature, ts.getParseTreeNode(enclosingDeclaration), flags, kind);\n },\n typeToString: function (type, enclosingDeclaration, flags) {\n return typeToString(type, ts.getParseTreeNode(enclosingDeclaration), flags);\n },\n symbolToString: function (symbol, enclosingDeclaration, meaning, flags) {\n return symbolToString(symbol, ts.getParseTreeNode(enclosingDeclaration), meaning, flags);\n },\n typePredicateToString: function (predicate, enclosingDeclaration, flags) {\n return typePredicateToString(predicate, ts.getParseTreeNode(enclosingDeclaration), flags);\n },\n writeSignature: function (signature, enclosingDeclaration, flags, kind, writer) {\n return signatureToString(signature, ts.getParseTreeNode(enclosingDeclaration), flags, kind, writer);\n },\n writeType: function (type, enclosingDeclaration, flags, writer) {\n return typeToString(type, ts.getParseTreeNode(enclosingDeclaration), flags, writer);\n },\n writeSymbol: function (symbol, enclosingDeclaration, meaning, flags, writer) {\n return symbolToString(symbol, ts.getParseTreeNode(enclosingDeclaration), meaning, flags, writer);\n },\n writeTypePredicate: function (predicate, enclosingDeclaration, flags, writer) {\n return typePredicateToString(predicate, ts.getParseTreeNode(enclosingDeclaration), flags, writer);\n },\n getAugmentedPropertiesOfType: getAugmentedPropertiesOfType,\n getRootSymbols: getRootSymbols,\n getSymbolOfExpando: getSymbolOfExpando,\n getContextualType: function (nodeIn, contextFlags) {\n var node = ts.getParseTreeNode(nodeIn, ts.isExpression);\n if (!node) {\n return undefined;\n }\n var containingCall = ts.findAncestor(node, ts.isCallLikeExpression);\n var containingCallResolvedSignature = containingCall && getNodeLinks(containingCall).resolvedSignature;\n if (contextFlags & 4 /* Completions */ && containingCall) {\n var toMarkSkip = node;\n do {\n getNodeLinks(toMarkSkip).skipDirectInference = true;\n toMarkSkip = toMarkSkip.parent;\n } while (toMarkSkip && toMarkSkip !== containingCall);\n getNodeLinks(containingCall).resolvedSignature = undefined;\n }\n var result = getContextualType(node, contextFlags);\n if (contextFlags & 4 /* Completions */ && containingCall) {\n var toMarkSkip = node;\n do {\n getNodeLinks(toMarkSkip).skipDirectInference = undefined;\n toMarkSkip = toMarkSkip.parent;\n } while (toMarkSkip && toMarkSkip !== containingCall);\n getNodeLinks(containingCall).resolvedSignature = containingCallResolvedSignature;\n }\n return result;\n },\n getContextualTypeForObjectLiteralElement: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isObjectLiteralElementLike);\n return node ? getContextualTypeForObjectLiteralElement(node) : undefined;\n },\n getContextualTypeForArgumentAtIndex: function (nodeIn, argIndex) {\n var node = ts.getParseTreeNode(nodeIn, ts.isCallLikeExpression);\n return node && getContextualTypeForArgumentAtIndex(node, argIndex);\n },\n getContextualTypeForJsxAttribute: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isJsxAttributeLike);\n return node && getContextualTypeForJsxAttribute(node);\n },\n isContextSensitive: isContextSensitive,\n getTypeOfPropertyOfContextualType: getTypeOfPropertyOfContextualType,\n getFullyQualifiedName: getFullyQualifiedName,\n getResolvedSignature: function (node, candidatesOutArray, argumentCount) {\n return getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 0 /* Normal */);\n },\n getResolvedSignatureForSignatureHelp: function (node, candidatesOutArray, argumentCount) {\n return getResolvedSignatureWorker(node, candidatesOutArray, argumentCount, 16 /* IsForSignatureHelp */);\n },\n getExpandedParameters: getExpandedParameters,\n hasEffectiveRestParameter: hasEffectiveRestParameter,\n containsArgumentsReference: containsArgumentsReference,\n getConstantValue: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, canHaveConstantValue);\n return node ? getConstantValue(node) : undefined;\n },\n isValidPropertyAccess: function (nodeIn, propertyName) {\n var node = ts.getParseTreeNode(nodeIn, ts.isPropertyAccessOrQualifiedNameOrImportTypeNode);\n return !!node && isValidPropertyAccess(node, ts.escapeLeadingUnderscores(propertyName));\n },\n isValidPropertyAccessForCompletions: function (nodeIn, type, property) {\n var node = ts.getParseTreeNode(nodeIn, ts.isPropertyAccessExpression);\n return !!node && isValidPropertyAccessForCompletions(node, type, property);\n },\n getSignatureFromDeclaration: function (declarationIn) {\n var declaration = ts.getParseTreeNode(declarationIn, ts.isFunctionLike);\n return declaration ? getSignatureFromDeclaration(declaration) : undefined;\n },\n isImplementationOfOverload: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isFunctionLike);\n return node ? isImplementationOfOverload(node) : undefined;\n },\n getImmediateAliasedSymbol: getImmediateAliasedSymbol,\n getAliasedSymbol: resolveAlias,\n getEmitResolver: getEmitResolver,\n getExportsOfModule: getExportsOfModuleAsArray,\n getExportsAndPropertiesOfModule: getExportsAndPropertiesOfModule,\n forEachExportAndPropertyOfModule: forEachExportAndPropertyOfModule,\n getSymbolWalker: ts.createGetSymbolWalker(getRestTypeOfSignature, getTypePredicateOfSignature, getReturnTypeOfSignature, getBaseTypes, resolveStructuredTypeMembers, getTypeOfSymbol, getResolvedSymbol, getConstraintOfTypeParameter, ts.getFirstIdentifier, getTypeArguments),\n getAmbientModules: getAmbientModules,\n getJsxIntrinsicTagNamesAt: getJsxIntrinsicTagNamesAt,\n isOptionalParameter: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isParameter);\n return node ? isOptionalParameter(node) : false;\n },\n tryGetMemberInModuleExports: function (name, symbol) { return tryGetMemberInModuleExports(ts.escapeLeadingUnderscores(name), symbol); },\n tryGetMemberInModuleExportsAndProperties: function (name, symbol) { return tryGetMemberInModuleExportsAndProperties(ts.escapeLeadingUnderscores(name), symbol); },\n tryFindAmbientModule: function (moduleName) { return tryFindAmbientModule(moduleName, /*withAugmentations*/ true); },\n tryFindAmbientModuleWithoutAugmentations: function (moduleName) {\n // we deliberately exclude augmentations\n // since we are only interested in declarations of the module itself\n return tryFindAmbientModule(moduleName, /*withAugmentations*/ false);\n },\n getApparentType: getApparentType,\n getUnionType: getUnionType,\n isTypeAssignableTo: isTypeAssignableTo,\n createAnonymousType: createAnonymousType,\n createSignature: createSignature,\n createSymbol: createSymbol,\n createIndexInfo: createIndexInfo,\n getAnyType: function () { return anyType; },\n getStringType: function () { return stringType; },\n getNumberType: function () { return numberType; },\n createPromiseType: createPromiseType,\n createArrayType: createArrayType,\n getElementTypeOfArrayType: getElementTypeOfArrayType,\n getBooleanType: function () { return booleanType; },\n getFalseType: function (fresh) { return fresh ? falseType : regularFalseType; },\n getTrueType: function (fresh) { return fresh ? trueType : regularTrueType; },\n getVoidType: function () { return voidType; },\n getUndefinedType: function () { return undefinedType; },\n getNullType: function () { return nullType; },\n getESSymbolType: function () { return esSymbolType; },\n getNeverType: function () { return neverType; },\n getOptionalType: function () { return optionalType; },\n isSymbolAccessible: isSymbolAccessible,\n isArrayType: isArrayType,\n isTupleType: isTupleType,\n isArrayLikeType: isArrayLikeType,\n isTypeInvalidDueToUnionDiscriminant: isTypeInvalidDueToUnionDiscriminant,\n getAllPossiblePropertiesOfTypes: getAllPossiblePropertiesOfTypes,\n getSuggestedSymbolForNonexistentProperty: getSuggestedSymbolForNonexistentProperty,\n getSuggestionForNonexistentProperty: getSuggestionForNonexistentProperty,\n getSuggestedSymbolForNonexistentJSXAttribute: getSuggestedSymbolForNonexistentJSXAttribute,\n getSuggestedSymbolForNonexistentSymbol: function (location, name, meaning) { return getSuggestedSymbolForNonexistentSymbol(location, ts.escapeLeadingUnderscores(name), meaning); },\n getSuggestionForNonexistentSymbol: function (location, name, meaning) { return getSuggestionForNonexistentSymbol(location, ts.escapeLeadingUnderscores(name), meaning); },\n getSuggestedSymbolForNonexistentModule: getSuggestedSymbolForNonexistentModule,\n getSuggestionForNonexistentExport: getSuggestionForNonexistentExport,\n getSuggestedSymbolForNonexistentClassMember: getSuggestedSymbolForNonexistentClassMember,\n getBaseConstraintOfType: getBaseConstraintOfType,\n getDefaultFromTypeParameter: function (type) { return type && type.flags & 262144 /* TypeParameter */ ? getDefaultFromTypeParameter(type) : undefined; },\n resolveName: function (name, location, meaning, excludeGlobals) {\n return resolveName(location, ts.escapeLeadingUnderscores(name), meaning, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false, excludeGlobals);\n },\n getJsxNamespace: function (n) { return ts.unescapeLeadingUnderscores(getJsxNamespace(n)); },\n getJsxFragmentFactory: function (n) {\n var jsxFragmentFactory = getJsxFragmentFactoryEntity(n);\n return jsxFragmentFactory && ts.unescapeLeadingUnderscores(ts.getFirstIdentifier(jsxFragmentFactory).escapedText);\n },\n getAccessibleSymbolChain: getAccessibleSymbolChain,\n getTypePredicateOfSignature: getTypePredicateOfSignature,\n resolveExternalModuleName: function (moduleSpecifierIn) {\n var moduleSpecifier = ts.getParseTreeNode(moduleSpecifierIn, ts.isExpression);\n return moduleSpecifier && resolveExternalModuleName(moduleSpecifier, moduleSpecifier, /*ignoreErrors*/ true);\n },\n resolveExternalModuleSymbol: resolveExternalModuleSymbol,\n tryGetThisTypeAt: function (nodeIn, includeGlobalThis) {\n var node = ts.getParseTreeNode(nodeIn);\n return node && tryGetThisTypeAt(node, includeGlobalThis);\n },\n getTypeArgumentConstraint: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isTypeNode);\n return node && getTypeArgumentConstraint(node);\n },\n getSuggestionDiagnostics: function (fileIn, ct) {\n var file = ts.getParseTreeNode(fileIn, ts.isSourceFile) || ts.Debug.fail(\"Could not determine parsed source file.\");\n if (ts.skipTypeChecking(file, compilerOptions, host)) {\n return ts.emptyArray;\n }\n var diagnostics;\n try {\n // Record the cancellation token so it can be checked later on during checkSourceElement.\n // Do this in a finally block so we can ensure that it gets reset back to nothing after\n // this call is done.\n cancellationToken = ct;\n // Ensure file is type checked\n checkSourceFile(file);\n ts.Debug.assert(!!(getNodeLinks(file).flags & 1 /* TypeChecked */));\n diagnostics = ts.addRange(diagnostics, suggestionDiagnostics.getDiagnostics(file.fileName));\n checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(file), function (containingNode, kind, diag) {\n if (!ts.containsParseError(containingNode) && !unusedIsError(kind, !!(containingNode.flags & 8388608 /* Ambient */))) {\n (diagnostics || (diagnostics = [])).push(__assign(__assign({}, diag), { category: ts.DiagnosticCategory.Suggestion }));\n }\n });\n return diagnostics || ts.emptyArray;\n }\n finally {\n cancellationToken = undefined;\n }\n },\n runWithCancellationToken: function (token, callback) {\n try {\n cancellationToken = token;\n return callback(checker);\n }\n finally {\n cancellationToken = undefined;\n }\n },\n getLocalTypeParametersOfClassOrInterfaceOrTypeAlias: getLocalTypeParametersOfClassOrInterfaceOrTypeAlias,\n isDeclarationVisible: isDeclarationVisible,\n };\n function getResolvedSignatureWorker(nodeIn, candidatesOutArray, argumentCount, checkMode) {\n var node = ts.getParseTreeNode(nodeIn, ts.isCallLikeExpression);\n apparentArgumentCount = argumentCount;\n var res = node ? getResolvedSignature(node, candidatesOutArray, checkMode) : undefined;\n apparentArgumentCount = undefined;\n return res;\n }\n var tupleTypes = new ts.Map();\n var unionTypes = new ts.Map();\n var intersectionTypes = new ts.Map();\n var stringLiteralTypes = new ts.Map();\n var numberLiteralTypes = new ts.Map();\n var bigIntLiteralTypes = new ts.Map();\n var enumLiteralTypes = new ts.Map();\n var indexedAccessTypes = new ts.Map();\n var templateLiteralTypes = new ts.Map();\n var stringMappingTypes = new ts.Map();\n var substitutionTypes = new ts.Map();\n var subtypeReductionCache = new ts.Map();\n var evolvingArrayTypes = [];\n var undefinedProperties = new ts.Map();\n var unknownSymbol = createSymbol(4 /* Property */, \"unknown\");\n var resolvingSymbol = createSymbol(0, \"__resolving__\" /* Resolving */);\n var anyType = createIntrinsicType(1 /* Any */, \"any\");\n var autoType = createIntrinsicType(1 /* Any */, \"any\");\n var wildcardType = createIntrinsicType(1 /* Any */, \"any\");\n var errorType = createIntrinsicType(1 /* Any */, \"error\");\n var nonInferrableAnyType = createIntrinsicType(1 /* Any */, \"any\", 131072 /* ContainsWideningType */);\n var intrinsicMarkerType = createIntrinsicType(1 /* Any */, \"intrinsic\");\n var unknownType = createIntrinsicType(2 /* Unknown */, \"unknown\");\n var undefinedType = createIntrinsicType(32768 /* Undefined */, \"undefined\");\n var undefinedWideningType = strictNullChecks ? undefinedType : createIntrinsicType(32768 /* Undefined */, \"undefined\", 131072 /* ContainsWideningType */);\n var optionalType = createIntrinsicType(32768 /* Undefined */, \"undefined\");\n var missingType = exactOptionalPropertyTypes ? createIntrinsicType(32768 /* Undefined */, \"undefined\") : undefinedType;\n var nullType = createIntrinsicType(65536 /* Null */, \"null\");\n var nullWideningType = strictNullChecks ? nullType : createIntrinsicType(65536 /* Null */, \"null\", 131072 /* ContainsWideningType */);\n var stringType = createIntrinsicType(4 /* String */, \"string\");\n var numberType = createIntrinsicType(8 /* Number */, \"number\");\n var bigintType = createIntrinsicType(64 /* BigInt */, \"bigint\");\n var falseType = createIntrinsicType(512 /* BooleanLiteral */, \"false\");\n var regularFalseType = createIntrinsicType(512 /* BooleanLiteral */, \"false\");\n var trueType = createIntrinsicType(512 /* BooleanLiteral */, \"true\");\n var regularTrueType = createIntrinsicType(512 /* BooleanLiteral */, \"true\");\n trueType.regularType = regularTrueType;\n trueType.freshType = trueType;\n regularTrueType.regularType = regularTrueType;\n regularTrueType.freshType = trueType;\n falseType.regularType = regularFalseType;\n falseType.freshType = falseType;\n regularFalseType.regularType = regularFalseType;\n regularFalseType.freshType = falseType;\n var booleanType = getUnionType([regularFalseType, regularTrueType]);\n var esSymbolType = createIntrinsicType(4096 /* ESSymbol */, \"symbol\");\n var voidType = createIntrinsicType(16384 /* Void */, \"void\");\n var neverType = createIntrinsicType(131072 /* Never */, \"never\");\n var silentNeverType = createIntrinsicType(131072 /* Never */, \"never\");\n var nonInferrableType = createIntrinsicType(131072 /* Never */, \"never\", 524288 /* NonInferrableType */);\n var implicitNeverType = createIntrinsicType(131072 /* Never */, \"never\");\n var unreachableNeverType = createIntrinsicType(131072 /* Never */, \"never\");\n var nonPrimitiveType = createIntrinsicType(67108864 /* NonPrimitive */, \"object\");\n var stringOrNumberType = getUnionType([stringType, numberType]);\n var stringNumberSymbolType = getUnionType([stringType, numberType, esSymbolType]);\n var keyofConstraintType = keyofStringsOnly ? stringType : stringNumberSymbolType;\n var numberOrBigIntType = getUnionType([numberType, bigintType]);\n var templateConstraintType = getUnionType([stringType, numberType, booleanType, bigintType, nullType, undefinedType]);\n var restrictiveMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 /* TypeParameter */ ? getRestrictiveTypeParameter(t) : t; });\n var permissiveMapper = makeFunctionTypeMapper(function (t) { return t.flags & 262144 /* TypeParameter */ ? wildcardType : t; });\n var emptyObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var emptyJsxObjectType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n emptyJsxObjectType.objectFlags |= 2048 /* JsxAttributes */;\n var emptyTypeLiteralSymbol = createSymbol(2048 /* TypeLiteral */, \"__type\" /* Type */);\n emptyTypeLiteralSymbol.members = ts.createSymbolTable();\n var emptyTypeLiteralType = createAnonymousType(emptyTypeLiteralSymbol, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var emptyGenericType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n emptyGenericType.instantiations = new ts.Map();\n var anyFunctionType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n // The anyFunctionType contains the anyFunctionType by definition. The flag is further propagated\n // in getPropagatingFlagsOfTypes, and it is checked in inferFromTypes.\n anyFunctionType.objectFlags |= 524288 /* NonInferrableType */;\n var noConstraintType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var circularConstraintType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var resolvingDefaultType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var markerSuperType = createTypeParameter();\n var markerSubType = createTypeParameter();\n markerSubType.constraint = markerSuperType;\n var markerOtherType = createTypeParameter();\n var noTypePredicate = createTypePredicate(1 /* Identifier */, \"<>\", 0, anyType);\n var anySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);\n var unknownSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, errorType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);\n var resolvingSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, anyType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);\n var silentNeverSignature = createSignature(undefined, undefined, undefined, ts.emptyArray, silentNeverType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);\n var enumNumberIndexInfo = createIndexInfo(numberType, stringType, /*isReadonly*/ true);\n var iterationTypesCache = new ts.Map(); // cache for common IterationTypes instances\n var noIterationTypes = {\n get yieldType() { return ts.Debug.fail(\"Not supported\"); },\n get returnType() { return ts.Debug.fail(\"Not supported\"); },\n get nextType() { return ts.Debug.fail(\"Not supported\"); },\n };\n var anyIterationTypes = createIterationTypes(anyType, anyType, anyType);\n var anyIterationTypesExceptNext = createIterationTypes(anyType, anyType, unknownType);\n var defaultIterationTypes = createIterationTypes(neverType, anyType, undefinedType); // default iteration types for `Iterator`.\n var asyncIterationTypesResolver = {\n iterableCacheKey: \"iterationTypesOfAsyncIterable\",\n iteratorCacheKey: \"iterationTypesOfAsyncIterator\",\n iteratorSymbolName: \"asyncIterator\",\n getGlobalIteratorType: getGlobalAsyncIteratorType,\n getGlobalIterableType: getGlobalAsyncIterableType,\n getGlobalIterableIteratorType: getGlobalAsyncIterableIteratorType,\n getGlobalGeneratorType: getGlobalAsyncGeneratorType,\n resolveIterationType: getAwaitedType,\n mustHaveANextMethodDiagnostic: ts.Diagnostics.An_async_iterator_must_have_a_next_method,\n mustBeAMethodDiagnostic: ts.Diagnostics.The_0_property_of_an_async_iterator_must_be_a_method,\n mustHaveAValueDiagnostic: ts.Diagnostics.The_type_returned_by_the_0_method_of_an_async_iterator_must_be_a_promise_for_a_type_with_a_value_property,\n };\n var syncIterationTypesResolver = {\n iterableCacheKey: \"iterationTypesOfIterable\",\n iteratorCacheKey: \"iterationTypesOfIterator\",\n iteratorSymbolName: \"iterator\",\n getGlobalIteratorType: getGlobalIteratorType,\n getGlobalIterableType: getGlobalIterableType,\n getGlobalIterableIteratorType: getGlobalIterableIteratorType,\n getGlobalGeneratorType: getGlobalGeneratorType,\n resolveIterationType: function (type, _errorNode) { return type; },\n mustHaveANextMethodDiagnostic: ts.Diagnostics.An_iterator_must_have_a_next_method,\n mustBeAMethodDiagnostic: ts.Diagnostics.The_0_property_of_an_iterator_must_be_a_method,\n mustHaveAValueDiagnostic: ts.Diagnostics.The_type_returned_by_the_0_method_of_an_iterator_must_have_a_value_property,\n };\n /** Key is \"/path/to/a.ts|/path/to/b.ts\". */\n var amalgamatedDuplicates;\n var reverseMappedCache = new ts.Map();\n var inInferTypeForHomomorphicMappedType = false;\n var ambientModulesCache;\n /**\n * List of every ambient module with a \"*\" wildcard.\n * Unlike other ambient modules, these can't be stored in `globals` because symbol tables only deal with exact matches.\n * This is only used if there is no exact match.\n */\n var patternAmbientModules;\n var patternAmbientModuleAugmentations;\n var globalObjectType;\n var globalFunctionType;\n var globalCallableFunctionType;\n var globalNewableFunctionType;\n var globalArrayType;\n var globalReadonlyArrayType;\n var globalStringType;\n var globalNumberType;\n var globalBooleanType;\n var globalRegExpType;\n var globalThisType;\n var anyArrayType;\n var autoArrayType;\n var anyReadonlyArrayType;\n var deferredGlobalNonNullableTypeAlias;\n // The library files are only loaded when the feature is used.\n // This allows users to just specify library files they want to used through --lib\n // and they will not get an error from not having unrelated library files\n var deferredGlobalESSymbolConstructorSymbol;\n var deferredGlobalESSymbolConstructorTypeSymbol;\n var deferredGlobalESSymbolType;\n var deferredGlobalTypedPropertyDescriptorType;\n var deferredGlobalPromiseType;\n var deferredGlobalPromiseLikeType;\n var deferredGlobalPromiseConstructorSymbol;\n var deferredGlobalPromiseConstructorLikeType;\n var deferredGlobalIterableType;\n var deferredGlobalIteratorType;\n var deferredGlobalIterableIteratorType;\n var deferredGlobalGeneratorType;\n var deferredGlobalIteratorYieldResultType;\n var deferredGlobalIteratorReturnResultType;\n var deferredGlobalAsyncIterableType;\n var deferredGlobalAsyncIteratorType;\n var deferredGlobalAsyncIterableIteratorType;\n var deferredGlobalAsyncGeneratorType;\n var deferredGlobalTemplateStringsArrayType;\n var deferredGlobalImportMetaType;\n var deferredGlobalImportMetaExpressionType;\n var deferredGlobalExtractSymbol;\n var deferredGlobalOmitSymbol;\n var deferredGlobalBigIntType;\n var allPotentiallyUnusedIdentifiers = new ts.Map(); // key is file name\n var flowLoopStart = 0;\n var flowLoopCount = 0;\n var sharedFlowCount = 0;\n var flowAnalysisDisabled = false;\n var flowInvocationCount = 0;\n var lastFlowNode;\n var lastFlowNodeReachable;\n var flowTypeCache;\n var emptyStringType = getStringLiteralType(\"\");\n var zeroType = getNumberLiteralType(0);\n var zeroBigIntType = getBigIntLiteralType({ negative: false, base10Value: \"0\" });\n var resolutionTargets = [];\n var resolutionResults = [];\n var resolutionPropertyNames = [];\n var suggestionCount = 0;\n var maximumSuggestionCount = 10;\n var mergedSymbols = [];\n var symbolLinks = [];\n var nodeLinks = [];\n var flowLoopCaches = [];\n var flowLoopNodes = [];\n var flowLoopKeys = [];\n var flowLoopTypes = [];\n var sharedFlowNodes = [];\n var sharedFlowTypes = [];\n var flowNodeReachable = [];\n var flowNodePostSuper = [];\n var potentialThisCollisions = [];\n var potentialNewTargetCollisions = [];\n var potentialWeakMapSetCollisions = [];\n var potentialReflectCollisions = [];\n var awaitedTypeStack = [];\n var diagnostics = ts.createDiagnosticCollection();\n var suggestionDiagnostics = ts.createDiagnosticCollection();\n var typeofTypesByName = new ts.Map(ts.getEntries({\n string: stringType,\n number: numberType,\n bigint: bigintType,\n boolean: booleanType,\n symbol: esSymbolType,\n undefined: undefinedType\n }));\n var typeofType = createTypeofType();\n var _jsxNamespace;\n var _jsxFactoryEntity;\n var outofbandVarianceMarkerHandler;\n var subtypeRelation = new ts.Map();\n var strictSubtypeRelation = new ts.Map();\n var assignableRelation = new ts.Map();\n var comparableRelation = new ts.Map();\n var identityRelation = new ts.Map();\n var enumRelation = new ts.Map();\n var builtinGlobals = ts.createSymbolTable();\n builtinGlobals.set(undefinedSymbol.escapedName, undefinedSymbol);\n initializeTypeChecker();\n return checker;\n function getJsxNamespace(location) {\n if (location) {\n var file = ts.getSourceFileOfNode(location);\n if (file) {\n if (ts.isJsxOpeningFragment(location)) {\n if (file.localJsxFragmentNamespace) {\n return file.localJsxFragmentNamespace;\n }\n var jsxFragmentPragma = file.pragmas.get(\"jsxfrag\");\n if (jsxFragmentPragma) {\n var chosenPragma = ts.isArray(jsxFragmentPragma) ? jsxFragmentPragma[0] : jsxFragmentPragma;\n file.localJsxFragmentFactory = ts.parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion);\n ts.visitNode(file.localJsxFragmentFactory, markAsSynthetic);\n if (file.localJsxFragmentFactory) {\n return file.localJsxFragmentNamespace = ts.getFirstIdentifier(file.localJsxFragmentFactory).escapedText;\n }\n }\n var entity = getJsxFragmentFactoryEntity(location);\n if (entity) {\n file.localJsxFragmentFactory = entity;\n return file.localJsxFragmentNamespace = ts.getFirstIdentifier(entity).escapedText;\n }\n }\n else {\n if (file.localJsxNamespace) {\n return file.localJsxNamespace;\n }\n var jsxPragma = file.pragmas.get(\"jsx\");\n if (jsxPragma) {\n var chosenPragma = ts.isArray(jsxPragma) ? jsxPragma[0] : jsxPragma;\n file.localJsxFactory = ts.parseIsolatedEntityName(chosenPragma.arguments.factory, languageVersion);\n ts.visitNode(file.localJsxFactory, markAsSynthetic);\n if (file.localJsxFactory) {\n return file.localJsxNamespace = ts.getFirstIdentifier(file.localJsxFactory).escapedText;\n }\n }\n }\n }\n }\n if (!_jsxNamespace) {\n _jsxNamespace = \"React\";\n if (compilerOptions.jsxFactory) {\n _jsxFactoryEntity = ts.parseIsolatedEntityName(compilerOptions.jsxFactory, languageVersion);\n ts.visitNode(_jsxFactoryEntity, markAsSynthetic);\n if (_jsxFactoryEntity) {\n _jsxNamespace = ts.getFirstIdentifier(_jsxFactoryEntity).escapedText;\n }\n }\n else if (compilerOptions.reactNamespace) {\n _jsxNamespace = ts.escapeLeadingUnderscores(compilerOptions.reactNamespace);\n }\n }\n if (!_jsxFactoryEntity) {\n _jsxFactoryEntity = ts.factory.createQualifiedName(ts.factory.createIdentifier(ts.unescapeLeadingUnderscores(_jsxNamespace)), \"createElement\");\n }\n return _jsxNamespace;\n function markAsSynthetic(node) {\n ts.setTextRangePosEnd(node, -1, -1);\n return ts.visitEachChild(node, markAsSynthetic, ts.nullTransformationContext);\n }\n }\n function getEmitResolver(sourceFile, cancellationToken) {\n // Ensure we have all the type information in place for this file so that all the\n // emitter questions of this resolver will return the right information.\n getDiagnostics(sourceFile, cancellationToken);\n return emitResolver;\n }\n function lookupOrIssueError(location, message, arg0, arg1, arg2, arg3) {\n var diagnostic = location\n ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3)\n : ts.createCompilerDiagnostic(message, arg0, arg1, arg2, arg3);\n var existing = diagnostics.lookup(diagnostic);\n if (existing) {\n return existing;\n }\n else {\n diagnostics.add(diagnostic);\n return diagnostic;\n }\n }\n function errorSkippedOn(key, location, message, arg0, arg1, arg2, arg3) {\n var diagnostic = error(location, message, arg0, arg1, arg2, arg3);\n diagnostic.skippedOn = key;\n return diagnostic;\n }\n function createError(location, message, arg0, arg1, arg2, arg3) {\n return location\n ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3)\n : ts.createCompilerDiagnostic(message, arg0, arg1, arg2, arg3);\n }\n function error(location, message, arg0, arg1, arg2, arg3) {\n var diagnostic = createError(location, message, arg0, arg1, arg2, arg3);\n diagnostics.add(diagnostic);\n return diagnostic;\n }\n function addErrorOrSuggestion(isError, diagnostic) {\n if (isError) {\n diagnostics.add(diagnostic);\n }\n else {\n suggestionDiagnostics.add(__assign(__assign({}, diagnostic), { category: ts.DiagnosticCategory.Suggestion }));\n }\n }\n function errorOrSuggestion(isError, location, message, arg0, arg1, arg2, arg3) {\n // Pseudo-synthesized input node\n if (location.pos < 0 || location.end < 0) {\n if (!isError) {\n return; // Drop suggestions (we have no span to suggest on)\n }\n // Issue errors globally\n var file = ts.getSourceFileOfNode(location);\n addErrorOrSuggestion(isError, \"message\" in message ? ts.createFileDiagnostic(file, 0, 0, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForFileFromMessageChain(file, message)); // eslint-disable-line no-in-operator\n return;\n }\n addErrorOrSuggestion(isError, \"message\" in message ? ts.createDiagnosticForNode(location, message, arg0, arg1, arg2, arg3) : ts.createDiagnosticForNodeFromMessageChain(location, message)); // eslint-disable-line no-in-operator\n }\n function errorAndMaybeSuggestAwait(location, maybeMissingAwait, message, arg0, arg1, arg2, arg3) {\n var diagnostic = error(location, message, arg0, arg1, arg2, arg3);\n if (maybeMissingAwait) {\n var related = ts.createDiagnosticForNode(location, ts.Diagnostics.Did_you_forget_to_use_await);\n ts.addRelatedInfo(diagnostic, related);\n }\n return diagnostic;\n }\n function addDeprecatedSuggestionWorker(declarations, diagnostic) {\n var deprecatedTag = Array.isArray(declarations) ? ts.forEach(declarations, ts.getJSDocDeprecatedTag) : ts.getJSDocDeprecatedTag(declarations);\n if (deprecatedTag) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(deprecatedTag, ts.Diagnostics.The_declaration_was_marked_as_deprecated_here));\n }\n // We call `addRelatedInfo()` before adding the diagnostic to prevent duplicates.\n suggestionDiagnostics.add(diagnostic);\n return diagnostic;\n }\n function addDeprecatedSuggestion(location, declarations, deprecatedEntity) {\n var diagnostic = ts.createDiagnosticForNode(location, ts.Diagnostics._0_is_deprecated, deprecatedEntity);\n return addDeprecatedSuggestionWorker(declarations, diagnostic);\n }\n function addDeprecatedSuggestionWithSignature(location, declaration, deprecatedEntity, signatureString) {\n var diagnostic = deprecatedEntity\n ? ts.createDiagnosticForNode(location, ts.Diagnostics.The_signature_0_of_1_is_deprecated, signatureString, deprecatedEntity)\n : ts.createDiagnosticForNode(location, ts.Diagnostics._0_is_deprecated, signatureString);\n return addDeprecatedSuggestionWorker(declaration, diagnostic);\n }\n function createSymbol(flags, name, checkFlags) {\n symbolCount++;\n var symbol = new Symbol(flags | 33554432 /* Transient */, name);\n symbol.checkFlags = checkFlags || 0;\n return symbol;\n }\n function getExcludedSymbolFlags(flags) {\n var result = 0;\n if (flags & 2 /* BlockScopedVariable */)\n result |= 111551 /* BlockScopedVariableExcludes */;\n if (flags & 1 /* FunctionScopedVariable */)\n result |= 111550 /* FunctionScopedVariableExcludes */;\n if (flags & 4 /* Property */)\n result |= 0 /* PropertyExcludes */;\n if (flags & 8 /* EnumMember */)\n result |= 900095 /* EnumMemberExcludes */;\n if (flags & 16 /* Function */)\n result |= 110991 /* FunctionExcludes */;\n if (flags & 32 /* Class */)\n result |= 899503 /* ClassExcludes */;\n if (flags & 64 /* Interface */)\n result |= 788872 /* InterfaceExcludes */;\n if (flags & 256 /* RegularEnum */)\n result |= 899327 /* RegularEnumExcludes */;\n if (flags & 128 /* ConstEnum */)\n result |= 899967 /* ConstEnumExcludes */;\n if (flags & 512 /* ValueModule */)\n result |= 110735 /* ValueModuleExcludes */;\n if (flags & 8192 /* Method */)\n result |= 103359 /* MethodExcludes */;\n if (flags & 32768 /* GetAccessor */)\n result |= 46015 /* GetAccessorExcludes */;\n if (flags & 65536 /* SetAccessor */)\n result |= 78783 /* SetAccessorExcludes */;\n if (flags & 262144 /* TypeParameter */)\n result |= 526824 /* TypeParameterExcludes */;\n if (flags & 524288 /* TypeAlias */)\n result |= 788968 /* TypeAliasExcludes */;\n if (flags & 2097152 /* Alias */)\n result |= 2097152 /* AliasExcludes */;\n return result;\n }\n function recordMergedSymbol(target, source) {\n if (!source.mergeId) {\n source.mergeId = nextMergeId;\n nextMergeId++;\n }\n mergedSymbols[source.mergeId] = target;\n }\n function cloneSymbol(symbol) {\n var result = createSymbol(symbol.flags, symbol.escapedName);\n result.declarations = symbol.declarations ? symbol.declarations.slice() : [];\n result.parent = symbol.parent;\n if (symbol.valueDeclaration)\n result.valueDeclaration = symbol.valueDeclaration;\n if (symbol.constEnumOnlyModule)\n result.constEnumOnlyModule = true;\n if (symbol.members)\n result.members = new ts.Map(symbol.members);\n if (symbol.exports)\n result.exports = new ts.Map(symbol.exports);\n recordMergedSymbol(result, symbol);\n return result;\n }\n /**\n * Note: if target is transient, then it is mutable, and mergeSymbol with both mutate and return it.\n * If target is not transient, mergeSymbol will produce a transient clone, mutate that and return it.\n */\n function mergeSymbol(target, source, unidirectional) {\n if (unidirectional === void 0) { unidirectional = false; }\n if (!(target.flags & getExcludedSymbolFlags(source.flags)) ||\n (source.flags | target.flags) & 67108864 /* Assignment */) {\n if (source === target) {\n // This can happen when an export assigned namespace exports something also erroneously exported at the top level\n // See `declarationFileNoCrashOnExtraExportModifier` for an example\n return target;\n }\n if (!(target.flags & 33554432 /* Transient */)) {\n var resolvedTarget = resolveSymbol(target);\n if (resolvedTarget === unknownSymbol) {\n return source;\n }\n target = cloneSymbol(resolvedTarget);\n }\n // Javascript static-property-assignment declarations always merge, even though they are also values\n if (source.flags & 512 /* ValueModule */ && target.flags & 512 /* ValueModule */ && target.constEnumOnlyModule && !source.constEnumOnlyModule) {\n // reset flag when merging instantiated module into value module that has only const enums\n target.constEnumOnlyModule = false;\n }\n target.flags |= source.flags;\n if (source.valueDeclaration) {\n ts.setValueDeclaration(target, source.valueDeclaration);\n }\n ts.addRange(target.declarations, source.declarations);\n if (source.members) {\n if (!target.members)\n target.members = ts.createSymbolTable();\n mergeSymbolTable(target.members, source.members, unidirectional);\n }\n if (source.exports) {\n if (!target.exports)\n target.exports = ts.createSymbolTable();\n mergeSymbolTable(target.exports, source.exports, unidirectional);\n }\n if (!unidirectional) {\n recordMergedSymbol(target, source);\n }\n }\n else if (target.flags & 1024 /* NamespaceModule */) {\n // Do not report an error when merging `var globalThis` with the built-in `globalThis`,\n // as we will already report a \"Declaration name conflicts...\" error, and this error\n // won't make much sense.\n if (target !== globalThisSymbol) {\n error(source.declarations && ts.getNameOfDeclaration(source.declarations[0]), ts.Diagnostics.Cannot_augment_module_0_with_value_exports_because_it_resolves_to_a_non_module_entity, symbolToString(target));\n }\n }\n else { // error\n var isEitherEnum = !!(target.flags & 384 /* Enum */ || source.flags & 384 /* Enum */);\n var isEitherBlockScoped_1 = !!(target.flags & 2 /* BlockScopedVariable */ || source.flags & 2 /* BlockScopedVariable */);\n var message = isEitherEnum\n ? ts.Diagnostics.Enum_declarations_can_only_merge_with_namespace_or_other_enum_declarations\n : isEitherBlockScoped_1\n ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0\n : ts.Diagnostics.Duplicate_identifier_0;\n var sourceSymbolFile = source.declarations && ts.getSourceFileOfNode(source.declarations[0]);\n var targetSymbolFile = target.declarations && ts.getSourceFileOfNode(target.declarations[0]);\n var symbolName_1 = symbolToString(source);\n // Collect top-level duplicate identifier errors into one mapping, so we can then merge their diagnostics if there are a bunch\n if (sourceSymbolFile && targetSymbolFile && amalgamatedDuplicates && !isEitherEnum && sourceSymbolFile !== targetSymbolFile) {\n var firstFile_1 = ts.comparePaths(sourceSymbolFile.path, targetSymbolFile.path) === -1 /* LessThan */ ? sourceSymbolFile : targetSymbolFile;\n var secondFile_1 = firstFile_1 === sourceSymbolFile ? targetSymbolFile : sourceSymbolFile;\n var filesDuplicates = ts.getOrUpdate(amalgamatedDuplicates, firstFile_1.path + \"|\" + secondFile_1.path, function () {\n return ({ firstFile: firstFile_1, secondFile: secondFile_1, conflictingSymbols: new ts.Map() });\n });\n var conflictingSymbolInfo = ts.getOrUpdate(filesDuplicates.conflictingSymbols, symbolName_1, function () {\n return ({ isBlockScoped: isEitherBlockScoped_1, firstFileLocations: [], secondFileLocations: [] });\n });\n addDuplicateLocations(conflictingSymbolInfo.firstFileLocations, source);\n addDuplicateLocations(conflictingSymbolInfo.secondFileLocations, target);\n }\n else {\n addDuplicateDeclarationErrorsForSymbols(source, message, symbolName_1, target);\n addDuplicateDeclarationErrorsForSymbols(target, message, symbolName_1, source);\n }\n }\n return target;\n function addDuplicateLocations(locs, symbol) {\n if (symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n ts.pushIfUnique(locs, decl);\n }\n }\n }\n }\n function addDuplicateDeclarationErrorsForSymbols(target, message, symbolName, source) {\n ts.forEach(target.declarations, function (node) {\n addDuplicateDeclarationError(node, message, symbolName, source.declarations);\n });\n }\n function addDuplicateDeclarationError(node, message, symbolName, relatedNodes) {\n var errorNode = (ts.getExpandoInitializer(node, /*isPrototypeAssignment*/ false) ? ts.getNameOfExpando(node) : ts.getNameOfDeclaration(node)) || node;\n var err = lookupOrIssueError(errorNode, message, symbolName);\n var _loop_7 = function (relatedNode) {\n var adjustedNode = (ts.getExpandoInitializer(relatedNode, /*isPrototypeAssignment*/ false) ? ts.getNameOfExpando(relatedNode) : ts.getNameOfDeclaration(relatedNode)) || relatedNode;\n if (adjustedNode === errorNode)\n return \"continue\";\n err.relatedInformation = err.relatedInformation || [];\n var leadingMessage = ts.createDiagnosticForNode(adjustedNode, ts.Diagnostics._0_was_also_declared_here, symbolName);\n var followOnMessage = ts.createDiagnosticForNode(adjustedNode, ts.Diagnostics.and_here);\n if (ts.length(err.relatedInformation) >= 5 || ts.some(err.relatedInformation, function (r) { return ts.compareDiagnostics(r, followOnMessage) === 0 /* EqualTo */ || ts.compareDiagnostics(r, leadingMessage) === 0 /* EqualTo */; }))\n return \"continue\";\n ts.addRelatedInfo(err, !ts.length(err.relatedInformation) ? leadingMessage : followOnMessage);\n };\n for (var _i = 0, _a = relatedNodes || ts.emptyArray; _i < _a.length; _i++) {\n var relatedNode = _a[_i];\n _loop_7(relatedNode);\n }\n }\n function combineSymbolTables(first, second) {\n if (!(first === null || first === void 0 ? void 0 : first.size))\n return second;\n if (!(second === null || second === void 0 ? void 0 : second.size))\n return first;\n var combined = ts.createSymbolTable();\n mergeSymbolTable(combined, first);\n mergeSymbolTable(combined, second);\n return combined;\n }\n function mergeSymbolTable(target, source, unidirectional) {\n if (unidirectional === void 0) { unidirectional = false; }\n source.forEach(function (sourceSymbol, id) {\n var targetSymbol = target.get(id);\n target.set(id, targetSymbol ? mergeSymbol(targetSymbol, sourceSymbol, unidirectional) : sourceSymbol);\n });\n }\n function mergeModuleAugmentation(moduleName) {\n var _a, _b, _c;\n var moduleAugmentation = moduleName.parent;\n if (((_a = moduleAugmentation.symbol.declarations) === null || _a === void 0 ? void 0 : _a[0]) !== moduleAugmentation) {\n // this is a combined symbol for multiple augmentations within the same file.\n // its symbol already has accumulated information for all declarations\n // so we need to add it just once - do the work only for first declaration\n ts.Debug.assert(moduleAugmentation.symbol.declarations.length > 1);\n return;\n }\n if (ts.isGlobalScopeAugmentation(moduleAugmentation)) {\n mergeSymbolTable(globals, moduleAugmentation.symbol.exports);\n }\n else {\n // find a module that about to be augmented\n // do not validate names of augmentations that are defined in ambient context\n var moduleNotFoundError = !(moduleName.parent.parent.flags & 8388608 /* Ambient */)\n ? ts.Diagnostics.Invalid_module_name_in_augmentation_module_0_cannot_be_found\n : undefined;\n var mainModule_1 = resolveExternalModuleNameWorker(moduleName, moduleName, moduleNotFoundError, /*isForAugmentation*/ true);\n if (!mainModule_1) {\n return;\n }\n // obtain item referenced by 'export='\n mainModule_1 = resolveExternalModuleSymbol(mainModule_1);\n if (mainModule_1.flags & 1920 /* Namespace */) {\n // If we're merging an augmentation to a pattern ambient module, we want to\n // perform the merge unidirectionally from the augmentation ('a.foo') to\n // the pattern ('*.foo'), so that 'getMergedSymbol()' on a.foo gives you\n // all the exports both from the pattern and from the augmentation, but\n // 'getMergedSymbol()' on *.foo only gives you exports from *.foo.\n if (ts.some(patternAmbientModules, function (module) { return mainModule_1 === module.symbol; })) {\n var merged = mergeSymbol(moduleAugmentation.symbol, mainModule_1, /*unidirectional*/ true);\n if (!patternAmbientModuleAugmentations) {\n patternAmbientModuleAugmentations = new ts.Map();\n }\n // moduleName will be a StringLiteral since this is not `declare global`.\n patternAmbientModuleAugmentations.set(moduleName.text, merged);\n }\n else {\n if (((_b = mainModule_1.exports) === null || _b === void 0 ? void 0 : _b.get(\"__export\" /* ExportStar */)) && ((_c = moduleAugmentation.symbol.exports) === null || _c === void 0 ? void 0 : _c.size)) {\n // We may need to merge the module augmentation's exports into the target symbols of the resolved exports\n var resolvedExports = getResolvedMembersOrExportsOfSymbol(mainModule_1, \"resolvedExports\" /* resolvedExports */);\n for (var _i = 0, _d = ts.arrayFrom(moduleAugmentation.symbol.exports.entries()); _i < _d.length; _i++) {\n var _e = _d[_i], key = _e[0], value = _e[1];\n if (resolvedExports.has(key) && !mainModule_1.exports.has(key)) {\n mergeSymbol(resolvedExports.get(key), value);\n }\n }\n }\n mergeSymbol(mainModule_1, moduleAugmentation.symbol);\n }\n }\n else {\n // moduleName will be a StringLiteral since this is not `declare global`.\n error(moduleName, ts.Diagnostics.Cannot_augment_module_0_because_it_resolves_to_a_non_module_entity, moduleName.text);\n }\n }\n }\n function addToSymbolTable(target, source, message) {\n source.forEach(function (sourceSymbol, id) {\n var targetSymbol = target.get(id);\n if (targetSymbol) {\n // Error on redeclarations\n ts.forEach(targetSymbol.declarations, addDeclarationDiagnostic(ts.unescapeLeadingUnderscores(id), message));\n }\n else {\n target.set(id, sourceSymbol);\n }\n });\n function addDeclarationDiagnostic(id, message) {\n return function (declaration) { return diagnostics.add(ts.createDiagnosticForNode(declaration, message, id)); };\n }\n }\n function getSymbolLinks(symbol) {\n if (symbol.flags & 33554432 /* Transient */)\n return symbol;\n var id = getSymbolId(symbol);\n return symbolLinks[id] || (symbolLinks[id] = new SymbolLinks());\n }\n function getNodeLinks(node) {\n var nodeId = getNodeId(node);\n return nodeLinks[nodeId] || (nodeLinks[nodeId] = new NodeLinks());\n }\n function isGlobalSourceFile(node) {\n return node.kind === 300 /* SourceFile */ && !ts.isExternalOrCommonJsModule(node);\n }\n function getSymbol(symbols, name, meaning) {\n if (meaning) {\n var symbol = getMergedSymbol(symbols.get(name));\n if (symbol) {\n ts.Debug.assert((ts.getCheckFlags(symbol) & 1 /* Instantiated */) === 0, \"Should never get an instantiated symbol here.\");\n if (symbol.flags & meaning) {\n return symbol;\n }\n if (symbol.flags & 2097152 /* Alias */) {\n var target = resolveAlias(symbol);\n // Unknown symbol means an error occurred in alias resolution, treat it as positive answer to avoid cascading errors\n if (target === unknownSymbol || target.flags & meaning) {\n return symbol;\n }\n }\n }\n }\n // return undefined if we can't find a symbol.\n }\n /**\n * Get symbols that represent parameter-property-declaration as parameter and as property declaration\n * @param parameter a parameterDeclaration node\n * @param parameterName a name of the parameter to get the symbols for.\n * @return a tuple of two symbols\n */\n function getSymbolsOfParameterPropertyDeclaration(parameter, parameterName) {\n var constructorDeclaration = parameter.parent;\n var classDeclaration = parameter.parent.parent;\n var parameterSymbol = getSymbol(constructorDeclaration.locals, parameterName, 111551 /* Value */);\n var propertySymbol = getSymbol(getMembersOfSymbol(classDeclaration.symbol), parameterName, 111551 /* Value */);\n if (parameterSymbol && propertySymbol) {\n return [parameterSymbol, propertySymbol];\n }\n return ts.Debug.fail(\"There should exist two symbols, one as property declaration and one as parameter declaration\");\n }\n function isBlockScopedNameDeclaredBeforeUse(declaration, usage) {\n var declarationFile = ts.getSourceFileOfNode(declaration);\n var useFile = ts.getSourceFileOfNode(usage);\n var declContainer = ts.getEnclosingBlockScopeContainer(declaration);\n if (declarationFile !== useFile) {\n if ((moduleKind && (declarationFile.externalModuleIndicator || useFile.externalModuleIndicator)) ||\n (!ts.outFile(compilerOptions)) ||\n isInTypeQuery(usage) ||\n declaration.flags & 8388608 /* Ambient */) {\n // nodes are in different files and order cannot be determined\n return true;\n }\n // declaration is after usage\n // can be legal if usage is deferred (i.e. inside function or in initializer of instance property)\n if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {\n return true;\n }\n var sourceFiles = host.getSourceFiles();\n return sourceFiles.indexOf(declarationFile) <= sourceFiles.indexOf(useFile);\n }\n if (declaration.pos <= usage.pos && !(ts.isPropertyDeclaration(declaration) && ts.isThisProperty(usage.parent) && !declaration.initializer && !declaration.exclamationToken)) {\n // declaration is before usage\n if (declaration.kind === 201 /* BindingElement */) {\n // still might be illegal if declaration and usage are both binding elements (eg var [a = b, b = b] = [1, 2])\n var errorBindingElement = ts.getAncestor(usage, 201 /* BindingElement */);\n if (errorBindingElement) {\n return ts.findAncestor(errorBindingElement, ts.isBindingElement) !== ts.findAncestor(declaration, ts.isBindingElement) ||\n declaration.pos < errorBindingElement.pos;\n }\n // or it might be illegal if usage happens before parent variable is declared (eg var [a] = a)\n return isBlockScopedNameDeclaredBeforeUse(ts.getAncestor(declaration, 252 /* VariableDeclaration */), usage);\n }\n else if (declaration.kind === 252 /* VariableDeclaration */) {\n // still might be illegal if usage is in the initializer of the variable declaration (eg var a = a)\n return !isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage);\n }\n else if (ts.isClassDeclaration(declaration)) {\n // still might be illegal if the usage is within a computed property name in the class (eg class A { static p = \"a\"; [A.p]() {} })\n return !ts.findAncestor(usage, function (n) { return ts.isComputedPropertyName(n) && n.parent.parent === declaration; });\n }\n else if (ts.isPropertyDeclaration(declaration)) {\n // still might be illegal if a self-referencing property initializer (eg private x = this.x)\n return !isPropertyImmediatelyReferencedWithinDeclaration(declaration, usage, /*stopAtAnyPropertyDeclaration*/ false);\n }\n else if (ts.isParameterPropertyDeclaration(declaration, declaration.parent)) {\n // foo = this.bar is illegal in esnext+useDefineForClassFields when bar is a parameter property\n return !(compilerOptions.target === 99 /* ESNext */ && useDefineForClassFields\n && ts.getContainingClass(declaration) === ts.getContainingClass(usage)\n && isUsedInFunctionOrInstanceProperty(usage, declaration));\n }\n return true;\n }\n // declaration is after usage, but it can still be legal if usage is deferred:\n // 1. inside an export specifier\n // 2. inside a function\n // 3. inside an instance property initializer, a reference to a non-instance property\n // (except when target: \"esnext\" and useDefineForClassFields: true and the reference is to a parameter property)\n // 4. inside a static property initializer, a reference to a static method in the same class\n // 5. inside a TS export= declaration (since we will move the export statement during emit to avoid TDZ)\n // or if usage is in a type context:\n // 1. inside a type query (typeof in type position)\n // 2. inside a jsdoc comment\n if (usage.parent.kind === 273 /* ExportSpecifier */ || (usage.parent.kind === 269 /* ExportAssignment */ && usage.parent.isExportEquals)) {\n // export specifiers do not use the variable, they only make it available for use\n return true;\n }\n // When resolving symbols for exports, the `usage` location passed in can be the export site directly\n if (usage.kind === 269 /* ExportAssignment */ && usage.isExportEquals) {\n return true;\n }\n if (!!(usage.flags & 4194304 /* JSDoc */) || isInTypeQuery(usage) || usageInTypeDeclaration()) {\n return true;\n }\n if (isUsedInFunctionOrInstanceProperty(usage, declaration)) {\n if (compilerOptions.target === 99 /* ESNext */ && useDefineForClassFields\n && ts.getContainingClass(declaration)\n && (ts.isPropertyDeclaration(declaration) || ts.isParameterPropertyDeclaration(declaration, declaration.parent))) {\n return !isPropertyImmediatelyReferencedWithinDeclaration(declaration, usage, /*stopAtAnyPropertyDeclaration*/ true);\n }\n else {\n return true;\n }\n }\n return false;\n function usageInTypeDeclaration() {\n return !!ts.findAncestor(usage, function (node) { return ts.isInterfaceDeclaration(node) || ts.isTypeAliasDeclaration(node); });\n }\n function isImmediatelyUsedInInitializerOfBlockScopedVariable(declaration, usage) {\n switch (declaration.parent.parent.kind) {\n case 235 /* VariableStatement */:\n case 240 /* ForStatement */:\n case 242 /* ForOfStatement */:\n // variable statement/for/for-of statement case,\n // use site should not be inside variable declaration (initializer of declaration or binding element)\n if (isSameScopeDescendentOf(usage, declaration, declContainer)) {\n return true;\n }\n break;\n }\n // ForIn/ForOf case - use site should not be used in expression part\n var grandparent = declaration.parent.parent;\n return ts.isForInOrOfStatement(grandparent) && isSameScopeDescendentOf(usage, grandparent.expression, declContainer);\n }\n function isUsedInFunctionOrInstanceProperty(usage, declaration) {\n return !!ts.findAncestor(usage, function (current) {\n if (current === declContainer) {\n return \"quit\";\n }\n if (ts.isFunctionLike(current)) {\n return true;\n }\n if (ts.isClassStaticBlockDeclaration(current)) {\n return declaration.pos < usage.pos;\n }\n var propertyDeclaration = ts.tryCast(current.parent, ts.isPropertyDeclaration);\n if (propertyDeclaration) {\n var initializerOfProperty = propertyDeclaration.initializer === current;\n if (initializerOfProperty) {\n if (ts.isStatic(current.parent)) {\n if (declaration.kind === 167 /* MethodDeclaration */) {\n return true;\n }\n if (ts.isPropertyDeclaration(declaration) && ts.getContainingClass(usage) === ts.getContainingClass(declaration)) {\n var propName = declaration.name;\n if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName)) {\n var type = getTypeOfSymbol(getSymbolOfNode(declaration));\n var staticBlocks = ts.filter(declaration.parent.members, ts.isClassStaticBlockDeclaration);\n if (isPropertyInitializedInStaticBlocks(propName, type, staticBlocks, declaration.parent.pos, current.pos)) {\n return true;\n }\n }\n }\n }\n else {\n var isDeclarationInstanceProperty = declaration.kind === 165 /* PropertyDeclaration */ && !ts.isStatic(declaration);\n if (!isDeclarationInstanceProperty || ts.getContainingClass(usage) !== ts.getContainingClass(declaration)) {\n return true;\n }\n }\n }\n }\n return false;\n });\n }\n /** stopAtAnyPropertyDeclaration is used for detecting ES-standard class field use-before-def errors */\n function isPropertyImmediatelyReferencedWithinDeclaration(declaration, usage, stopAtAnyPropertyDeclaration) {\n // always legal if usage is after declaration\n if (usage.end > declaration.end) {\n return false;\n }\n // still might be legal if usage is deferred (e.g. x: any = () => this.x)\n // otherwise illegal if immediately referenced within the declaration (e.g. x: any = this.x)\n var ancestorChangingReferenceScope = ts.findAncestor(usage, function (node) {\n if (node === declaration) {\n return \"quit\";\n }\n switch (node.kind) {\n case 212 /* ArrowFunction */:\n return true;\n case 165 /* PropertyDeclaration */:\n // even when stopping at any property declaration, they need to come from the same class\n return stopAtAnyPropertyDeclaration &&\n (ts.isPropertyDeclaration(declaration) && node.parent === declaration.parent\n || ts.isParameterPropertyDeclaration(declaration, declaration.parent) && node.parent === declaration.parent.parent)\n ? \"quit\" : true;\n case 233 /* Block */:\n switch (node.parent.kind) {\n case 170 /* GetAccessor */:\n case 167 /* MethodDeclaration */:\n case 171 /* SetAccessor */:\n return true;\n default:\n return false;\n }\n default:\n return false;\n }\n });\n return ancestorChangingReferenceScope === undefined;\n }\n }\n function useOuterVariableScopeInParameter(result, location, lastLocation) {\n var target = ts.getEmitScriptTarget(compilerOptions);\n var functionLocation = location;\n if (ts.isParameter(lastLocation)\n && functionLocation.body\n && result.valueDeclaration\n && result.valueDeclaration.pos >= functionLocation.body.pos\n && result.valueDeclaration.end <= functionLocation.body.end) {\n // check for several cases where we introduce temporaries that require moving the name/initializer of the parameter to the body\n // - static field in a class expression\n // - optional chaining pre-es2020\n // - nullish coalesce pre-es2020\n // - spread assignment in binding pattern pre-es2017\n if (target >= 2 /* ES2015 */) {\n var links = getNodeLinks(functionLocation);\n if (links.declarationRequiresScopeChange === undefined) {\n links.declarationRequiresScopeChange = ts.forEach(functionLocation.parameters, requiresScopeChange) || false;\n }\n return !links.declarationRequiresScopeChange;\n }\n }\n return false;\n function requiresScopeChange(node) {\n return requiresScopeChangeWorker(node.name)\n || !!node.initializer && requiresScopeChangeWorker(node.initializer);\n }\n function requiresScopeChangeWorker(node) {\n switch (node.kind) {\n case 212 /* ArrowFunction */:\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n case 169 /* Constructor */:\n // do not descend into these\n return false;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 291 /* PropertyAssignment */:\n return requiresScopeChangeWorker(node.name);\n case 165 /* PropertyDeclaration */:\n // static properties in classes introduce temporary variables\n if (ts.hasStaticModifier(node)) {\n return target < 99 /* ESNext */ || !useDefineForClassFields;\n }\n return requiresScopeChangeWorker(node.name);\n default:\n // null coalesce and optional chain pre-es2020 produce temporary variables\n if (ts.isNullishCoalesce(node) || ts.isOptionalChain(node)) {\n return target < 7 /* ES2020 */;\n }\n if (ts.isBindingElement(node) && node.dotDotDotToken && ts.isObjectBindingPattern(node.parent)) {\n return target < 4 /* ES2017 */;\n }\n if (ts.isTypeNode(node))\n return false;\n return ts.forEachChild(node, requiresScopeChangeWorker) || false;\n }\n }\n }\n /**\n * Resolve a given name for a given meaning at a given location. An error is reported if the name was not found and\n * the nameNotFoundMessage argument is not undefined. Returns the resolved symbol, or undefined if no symbol with\n * the given name can be found.\n *\n * @param isUse If true, this will count towards --noUnusedLocals / --noUnusedParameters.\n */\n function resolveName(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, issueSuggestions) {\n if (excludeGlobals === void 0) { excludeGlobals = false; }\n return resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, getSymbol, issueSuggestions);\n }\n function resolveNameHelper(location, name, meaning, nameNotFoundMessage, nameArg, isUse, excludeGlobals, lookup, issueSuggestions) {\n var _a;\n var originalLocation = location; // needed for did-you-mean error reporting, which gathers candidates starting from the original location\n var result;\n var lastLocation;\n var lastSelfReferenceLocation;\n var propertyWithInvalidInitializer;\n var associatedDeclarationForContainingInitializerOrBindingName;\n var withinDeferredContext = false;\n var errorLocation = location;\n var grandparent;\n var isInExternalModule = false;\n loop: while (location) {\n // Locals of a source file are not in scope (because they get merged into the global symbol table)\n if (location.locals && !isGlobalSourceFile(location)) {\n if (result = lookup(location.locals, name, meaning)) {\n var useResult = true;\n if (ts.isFunctionLike(location) && lastLocation && lastLocation !== location.body) {\n // symbol lookup restrictions for function-like declarations\n // - Type parameters of a function are in scope in the entire function declaration, including the parameter\n // list and return type. However, local types are only in scope in the function body.\n // - parameters are only in the scope of function body\n // This restriction does not apply to JSDoc comment types because they are parented\n // at a higher level than type parameters would normally be\n if (meaning & result.flags & 788968 /* Type */ && lastLocation.kind !== 315 /* JSDocComment */) {\n useResult = result.flags & 262144 /* TypeParameter */\n // type parameters are visible in parameter list, return type and type parameter list\n ? lastLocation === location.type ||\n lastLocation.kind === 162 /* Parameter */ ||\n lastLocation.kind === 161 /* TypeParameter */\n // local types not visible outside the function body\n : false;\n }\n if (meaning & result.flags & 3 /* Variable */) {\n // expression inside parameter will lookup as normal variable scope when targeting es2015+\n if (useOuterVariableScopeInParameter(result, location, lastLocation)) {\n useResult = false;\n }\n else if (result.flags & 1 /* FunctionScopedVariable */) {\n // parameters are visible only inside function body, parameter list and return type\n // technically for parameter list case here we might mix parameters and variables declared in function,\n // however it is detected separately when checking initializers of parameters\n // to make sure that they reference no variables declared after them.\n useResult =\n lastLocation.kind === 162 /* Parameter */ ||\n (lastLocation === location.type &&\n !!ts.findAncestor(result.valueDeclaration, ts.isParameter));\n }\n }\n }\n else if (location.kind === 187 /* ConditionalType */) {\n // A type parameter declared using 'infer T' in a conditional type is visible only in\n // the true branch of the conditional type.\n useResult = lastLocation === location.trueType;\n }\n if (useResult) {\n break loop;\n }\n else {\n result = undefined;\n }\n }\n }\n withinDeferredContext = withinDeferredContext || getIsDeferredContext(location, lastLocation);\n switch (location.kind) {\n case 300 /* SourceFile */:\n if (!ts.isExternalOrCommonJsModule(location))\n break;\n isInExternalModule = true;\n // falls through\n case 259 /* ModuleDeclaration */:\n var moduleExports = getSymbolOfNode(location).exports || emptySymbols;\n if (location.kind === 300 /* SourceFile */ || (ts.isModuleDeclaration(location) && location.flags & 8388608 /* Ambient */ && !ts.isGlobalScopeAugmentation(location))) {\n // It's an external module. First see if the module has an export default and if the local\n // name of that export default matches.\n if (result = moduleExports.get(\"default\" /* Default */)) {\n var localSymbol = ts.getLocalSymbolForExportDefault(result);\n if (localSymbol && (result.flags & meaning) && localSymbol.escapedName === name) {\n break loop;\n }\n result = undefined;\n }\n // Because of module/namespace merging, a module's exports are in scope,\n // yet we never want to treat an export specifier as putting a member in scope.\n // Therefore, if the name we find is purely an export specifier, it is not actually considered in scope.\n // Two things to note about this:\n // 1. We have to check this without calling getSymbol. The problem with calling getSymbol\n // on an export specifier is that it might find the export specifier itself, and try to\n // resolve it as an alias. This will cause the checker to consider the export specifier\n // a circular alias reference when it might not be.\n // 2. We check === SymbolFlags.Alias in order to check that the symbol is *purely*\n // an alias. If we used &, we'd be throwing out symbols that have non alias aspects,\n // which is not the desired behavior.\n var moduleExport = moduleExports.get(name);\n if (moduleExport &&\n moduleExport.flags === 2097152 /* Alias */ &&\n (ts.getDeclarationOfKind(moduleExport, 273 /* ExportSpecifier */) || ts.getDeclarationOfKind(moduleExport, 272 /* NamespaceExport */))) {\n break;\n }\n }\n // ES6 exports are also visible locally (except for 'default'), but commonjs exports are not (except typedefs)\n if (name !== \"default\" /* Default */ && (result = lookup(moduleExports, name, meaning & 2623475 /* ModuleMember */))) {\n if (ts.isSourceFile(location) && location.commonJsModuleIndicator && !((_a = result.declarations) === null || _a === void 0 ? void 0 : _a.some(ts.isJSDocTypeAlias))) {\n result = undefined;\n }\n else {\n break loop;\n }\n }\n break;\n case 258 /* EnumDeclaration */:\n if (result = lookup(getSymbolOfNode(location).exports, name, meaning & 8 /* EnumMember */)) {\n break loop;\n }\n break;\n case 165 /* PropertyDeclaration */:\n // TypeScript 1.0 spec (April 2014): 8.4.1\n // Initializer expressions for instance member variables are evaluated in the scope\n // of the class constructor body but are not permitted to reference parameters or\n // local variables of the constructor. This effectively means that entities from outer scopes\n // by the same name as a constructor parameter or local variable are inaccessible\n // in initializer expressions for instance member variables.\n if (!ts.isStatic(location)) {\n var ctor = findConstructorDeclaration(location.parent);\n if (ctor && ctor.locals) {\n if (lookup(ctor.locals, name, meaning & 111551 /* Value */)) {\n // Remember the property node, it will be used later to report appropriate error\n propertyWithInvalidInitializer = location;\n }\n }\n }\n break;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n // The below is used to lookup type parameters within a class or interface, as they are added to the class/interface locals\n // These can never be latebound, so the symbol's raw members are sufficient. `getMembersOfNode` cannot be used, as it would\n // trigger resolving late-bound names, which we may already be in the process of doing while we're here!\n if (result = lookup(getSymbolOfNode(location).members || emptySymbols, name, meaning & 788968 /* Type */)) {\n if (!isTypeParameterSymbolDeclaredInContainer(result, location)) {\n // ignore type parameters not declared in this container\n result = undefined;\n break;\n }\n if (lastLocation && ts.isStatic(lastLocation)) {\n // TypeScript 1.0 spec (April 2014): 3.4.1\n // The scope of a type parameter extends over the entire declaration with which the type\n // parameter list is associated, with the exception of static member declarations in classes.\n error(errorLocation, ts.Diagnostics.Static_members_cannot_reference_class_type_parameters);\n return undefined;\n }\n break loop;\n }\n if (location.kind === 224 /* ClassExpression */ && meaning & 32 /* Class */) {\n var className = location.name;\n if (className && name === className.escapedText) {\n result = location.symbol;\n break loop;\n }\n }\n break;\n case 226 /* ExpressionWithTypeArguments */:\n // The type parameters of a class are not in scope in the base class expression.\n if (lastLocation === location.expression && location.parent.token === 94 /* ExtendsKeyword */) {\n var container = location.parent.parent;\n if (ts.isClassLike(container) && (result = lookup(getSymbolOfNode(container).members, name, meaning & 788968 /* Type */))) {\n if (nameNotFoundMessage) {\n error(errorLocation, ts.Diagnostics.Base_class_expressions_cannot_reference_class_type_parameters);\n }\n return undefined;\n }\n }\n break;\n // It is not legal to reference a class's own type parameters from a computed property name that\n // belongs to the class. For example:\n //\n // function foo() { return '' }\n // class C { // <-- Class's own type parameter T\n // [foo()]() { } // <-- Reference to T from class's own computed property\n // }\n //\n case 160 /* ComputedPropertyName */:\n grandparent = location.parent.parent;\n if (ts.isClassLike(grandparent) || grandparent.kind === 256 /* InterfaceDeclaration */) {\n // A reference to this grandparent's type parameters would be an error\n if (result = lookup(getSymbolOfNode(grandparent).members, name, meaning & 788968 /* Type */)) {\n error(errorLocation, ts.Diagnostics.A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type);\n return undefined;\n }\n }\n break;\n case 212 /* ArrowFunction */:\n // when targeting ES6 or higher there is no 'arguments' in an arrow function\n // for lower compile targets the resolved symbol is used to emit an error\n if (compilerOptions.target >= 2 /* ES2015 */) {\n break;\n }\n // falls through\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 254 /* FunctionDeclaration */:\n if (meaning & 3 /* Variable */ && name === \"arguments\") {\n result = argumentsSymbol;\n break loop;\n }\n break;\n case 211 /* FunctionExpression */:\n if (meaning & 3 /* Variable */ && name === \"arguments\") {\n result = argumentsSymbol;\n break loop;\n }\n if (meaning & 16 /* Function */) {\n var functionName = location.name;\n if (functionName && name === functionName.escapedText) {\n result = location.symbol;\n break loop;\n }\n }\n break;\n case 163 /* Decorator */:\n // Decorators are resolved at the class declaration. Resolving at the parameter\n // or member would result in looking up locals in the method.\n //\n // function y() {}\n // class C {\n // method(@y x, y) {} // <-- decorator y should be resolved at the class declaration, not the parameter.\n // }\n //\n if (location.parent && location.parent.kind === 162 /* Parameter */) {\n location = location.parent;\n }\n //\n // function y() {}\n // class C {\n // @y method(x, y) {} // <-- decorator y should be resolved at the class declaration, not the method.\n // }\n //\n // class Decorators are resolved outside of the class to avoid referencing type parameters of that class.\n //\n // type T = number;\n // declare function y(x: T): any;\n // @param(1 as T) // <-- T should resolve to the type alias outside of class C\n // class C {}\n if (location.parent && (ts.isClassElement(location.parent) || location.parent.kind === 255 /* ClassDeclaration */)) {\n location = location.parent;\n }\n break;\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 334 /* JSDocEnumTag */:\n // js type aliases do not resolve names from their host, so skip past it\n var root = ts.getJSDocRoot(location);\n if (root) {\n location = root.parent;\n }\n break;\n case 162 /* Parameter */:\n if (lastLocation && (lastLocation === location.initializer ||\n lastLocation === location.name && ts.isBindingPattern(lastLocation))) {\n if (!associatedDeclarationForContainingInitializerOrBindingName) {\n associatedDeclarationForContainingInitializerOrBindingName = location;\n }\n }\n break;\n case 201 /* BindingElement */:\n if (lastLocation && (lastLocation === location.initializer ||\n lastLocation === location.name && ts.isBindingPattern(lastLocation))) {\n if (ts.isParameterDeclaration(location) && !associatedDeclarationForContainingInitializerOrBindingName) {\n associatedDeclarationForContainingInitializerOrBindingName = location;\n }\n }\n break;\n case 188 /* InferType */:\n if (meaning & 262144 /* TypeParameter */) {\n var parameterName = location.typeParameter.name;\n if (parameterName && name === parameterName.escapedText) {\n result = location.typeParameter.symbol;\n break loop;\n }\n }\n break;\n }\n if (isSelfReferenceLocation(location)) {\n lastSelfReferenceLocation = location;\n }\n lastLocation = location;\n location = location.parent;\n }\n // We just climbed up parents looking for the name, meaning that we started in a descendant node of `lastLocation`.\n // If `result === lastSelfReferenceLocation.symbol`, that means that we are somewhere inside `lastSelfReferenceLocation` looking up a name, and resolving to `lastLocation` itself.\n // That means that this is a self-reference of `lastLocation`, and shouldn't count this when considering whether `lastLocation` is used.\n if (isUse && result && (!lastSelfReferenceLocation || result !== lastSelfReferenceLocation.symbol)) {\n result.isReferenced |= meaning;\n }\n if (!result) {\n if (lastLocation) {\n ts.Debug.assert(lastLocation.kind === 300 /* SourceFile */);\n if (lastLocation.commonJsModuleIndicator && name === \"exports\" && meaning & lastLocation.symbol.flags) {\n return lastLocation.symbol;\n }\n }\n if (!excludeGlobals) {\n result = lookup(globals, name, meaning);\n }\n }\n if (!result) {\n if (originalLocation && ts.isInJSFile(originalLocation) && originalLocation.parent) {\n if (ts.isRequireCall(originalLocation.parent, /*checkArgumentIsStringLiteralLike*/ false)) {\n return requireSymbol;\n }\n }\n }\n if (!result) {\n if (nameNotFoundMessage) {\n if (!errorLocation ||\n !checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) && // TODO: GH#18217\n !checkAndReportErrorForExtendingInterface(errorLocation) &&\n !checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) &&\n !checkAndReportErrorForExportingPrimitiveType(errorLocation, name) &&\n !checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) &&\n !checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) &&\n !checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning)) {\n var suggestion = void 0;\n if (issueSuggestions && suggestionCount < maximumSuggestionCount) {\n suggestion = getSuggestedSymbolForNonexistentSymbol(originalLocation, name, meaning);\n var isGlobalScopeAugmentationDeclaration = (suggestion === null || suggestion === void 0 ? void 0 : suggestion.valueDeclaration) && ts.isAmbientModule(suggestion.valueDeclaration) && ts.isGlobalScopeAugmentation(suggestion.valueDeclaration);\n if (isGlobalScopeAugmentationDeclaration) {\n suggestion = undefined;\n }\n if (suggestion) {\n var suggestionName = symbolToString(suggestion);\n var isUncheckedJS = isUncheckedJSSuggestion(originalLocation, suggestion, /*excludeClasses*/ false);\n var message = isUncheckedJS ? ts.Diagnostics.Could_not_find_name_0_Did_you_mean_1 : ts.Diagnostics.Cannot_find_name_0_Did_you_mean_1;\n var diagnostic = createError(errorLocation, message, diagnosticName(nameArg), suggestionName);\n addErrorOrSuggestion(!isUncheckedJS, diagnostic);\n if (suggestion.valueDeclaration) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));\n }\n }\n }\n if (!suggestion) {\n if (nameArg) {\n var lib = getSuggestedLibForNonExistentName(nameArg);\n if (lib) {\n error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg), lib);\n }\n else {\n error(errorLocation, nameNotFoundMessage, diagnosticName(nameArg));\n }\n }\n }\n suggestionCount++;\n }\n }\n return undefined;\n }\n // Perform extra checks only if error reporting was requested\n if (nameNotFoundMessage) {\n if (propertyWithInvalidInitializer && !(compilerOptions.target === 99 /* ESNext */ && useDefineForClassFields)) {\n // We have a match, but the reference occurred within a property initializer and the identifier also binds\n // to a local variable in the constructor where the code will be emitted. Note that this is actually allowed\n // with ESNext+useDefineForClassFields because the scope semantics are different.\n var propertyName = propertyWithInvalidInitializer.name;\n error(errorLocation, ts.Diagnostics.Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor, ts.declarationNameToString(propertyName), diagnosticName(nameArg));\n return undefined;\n }\n // Only check for block-scoped variable if we have an error location and are looking for the\n // name with variable meaning\n // For example,\n // declare module foo {\n // interface bar {}\n // }\n // const foo/*1*/: foo/*2*/.bar;\n // The foo at /*1*/ and /*2*/ will share same symbol with two meanings:\n // block-scoped variable and namespace module. However, only when we\n // try to resolve name in /*1*/ which is used in variable position,\n // we want to check for block-scoped\n if (errorLocation &&\n (meaning & 2 /* BlockScopedVariable */ ||\n ((meaning & 32 /* Class */ || meaning & 384 /* Enum */) && (meaning & 111551 /* Value */) === 111551 /* Value */))) {\n var exportOrLocalSymbol = getExportSymbolOfValueSymbolIfExported(result);\n if (exportOrLocalSymbol.flags & 2 /* BlockScopedVariable */ || exportOrLocalSymbol.flags & 32 /* Class */ || exportOrLocalSymbol.flags & 384 /* Enum */) {\n checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);\n }\n }\n // If we're in an external module, we can't reference value symbols created from UMD export declarations\n if (result && isInExternalModule && (meaning & 111551 /* Value */) === 111551 /* Value */ && !(originalLocation.flags & 4194304 /* JSDoc */)) {\n var merged = getMergedSymbol(result);\n if (ts.length(merged.declarations) && ts.every(merged.declarations, function (d) { return ts.isNamespaceExportDeclaration(d) || ts.isSourceFile(d) && !!d.symbol.globalExports; })) {\n errorOrSuggestion(!compilerOptions.allowUmdGlobalAccess, errorLocation, ts.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead, ts.unescapeLeadingUnderscores(name));\n }\n }\n // If we're in a parameter initializer or binding name, we can't reference the values of the parameter whose initializer we're within or parameters to the right\n if (result && associatedDeclarationForContainingInitializerOrBindingName && !withinDeferredContext && (meaning & 111551 /* Value */) === 111551 /* Value */) {\n var candidate = getMergedSymbol(getLateBoundSymbol(result));\n var root = ts.getRootDeclaration(associatedDeclarationForContainingInitializerOrBindingName);\n // A parameter initializer or binding pattern initializer within a parameter cannot refer to itself\n if (candidate === getSymbolOfNode(associatedDeclarationForContainingInitializerOrBindingName)) {\n error(errorLocation, ts.Diagnostics.Parameter_0_cannot_reference_itself, ts.declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name));\n }\n // And it cannot refer to any declarations which come after it\n else if (candidate.valueDeclaration && candidate.valueDeclaration.pos > associatedDeclarationForContainingInitializerOrBindingName.pos && root.parent.locals && lookup(root.parent.locals, candidate.escapedName, meaning) === candidate) {\n error(errorLocation, ts.Diagnostics.Parameter_0_cannot_reference_identifier_1_declared_after_it, ts.declarationNameToString(associatedDeclarationForContainingInitializerOrBindingName.name), ts.declarationNameToString(errorLocation));\n }\n }\n if (result && errorLocation && meaning & 111551 /* Value */ && result.flags & 2097152 /* Alias */) {\n checkSymbolUsageInExpressionContext(result, name, errorLocation);\n }\n }\n return result;\n }\n function checkSymbolUsageInExpressionContext(symbol, name, useSite) {\n if (!ts.isValidTypeOnlyAliasUseSite(useSite)) {\n var typeOnlyDeclaration = getTypeOnlyAliasDeclaration(symbol);\n if (typeOnlyDeclaration) {\n var isExport = ts.typeOnlyDeclarationIsExport(typeOnlyDeclaration);\n var message = isExport\n ? ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_exported_using_export_type\n : ts.Diagnostics._0_cannot_be_used_as_a_value_because_it_was_imported_using_import_type;\n var relatedMessage = isExport\n ? ts.Diagnostics._0_was_exported_here\n : ts.Diagnostics._0_was_imported_here;\n var unescapedName = ts.unescapeLeadingUnderscores(name);\n ts.addRelatedInfo(error(useSite, message, unescapedName), ts.createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, unescapedName));\n }\n }\n }\n function getIsDeferredContext(location, lastLocation) {\n if (location.kind !== 212 /* ArrowFunction */ && location.kind !== 211 /* FunctionExpression */) {\n // initializers in instance property declaration of class like entities are executed in constructor and thus deferred\n return ts.isTypeQueryNode(location) || ((ts.isFunctionLikeDeclaration(location) ||\n (location.kind === 165 /* PropertyDeclaration */ && !ts.isStatic(location))) && (!lastLocation || lastLocation !== location.name)); // A name is evaluated within the enclosing scope - so it shouldn't count as deferred\n }\n if (lastLocation && lastLocation === location.name) {\n return false;\n }\n // generator functions and async functions are not inlined in control flow when immediately invoked\n if (location.asteriskToken || ts.hasSyntacticModifier(location, 256 /* Async */)) {\n return true;\n }\n return !ts.getImmediatelyInvokedFunctionExpression(location);\n }\n function isSelfReferenceLocation(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 259 /* ModuleDeclaration */: // For `namespace N { N; }`\n return true;\n default:\n return false;\n }\n }\n function diagnosticName(nameArg) {\n return ts.isString(nameArg) ? ts.unescapeLeadingUnderscores(nameArg) : ts.declarationNameToString(nameArg);\n }\n function isTypeParameterSymbolDeclaredInContainer(symbol, container) {\n if (symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (decl.kind === 161 /* TypeParameter */) {\n var parent = ts.isJSDocTemplateTag(decl.parent) ? ts.getJSDocHost(decl.parent) : decl.parent;\n if (parent === container) {\n return !(ts.isJSDocTemplateTag(decl.parent) && ts.find(decl.parent.parent.tags, ts.isJSDocTypeAlias)); // TODO: GH#18217\n }\n }\n }\n }\n return false;\n }\n function checkAndReportErrorForMissingPrefix(errorLocation, name, nameArg) {\n if (!ts.isIdentifier(errorLocation) || errorLocation.escapedText !== name || isTypeReferenceIdentifier(errorLocation) || isInTypeQuery(errorLocation)) {\n return false;\n }\n var container = ts.getThisContainer(errorLocation, /*includeArrowFunctions*/ false);\n var location = container;\n while (location) {\n if (ts.isClassLike(location.parent)) {\n var classSymbol = getSymbolOfNode(location.parent);\n if (!classSymbol) {\n break;\n }\n // Check to see if a static member exists.\n var constructorType = getTypeOfSymbol(classSymbol);\n if (getPropertyOfType(constructorType, name)) {\n error(errorLocation, ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0, diagnosticName(nameArg), symbolToString(classSymbol));\n return true;\n }\n // No static member is present.\n // Check if we're in an instance method and look for a relevant instance member.\n if (location === container && !ts.isStatic(location)) {\n var instanceType = getDeclaredTypeOfSymbol(classSymbol).thisType; // TODO: GH#18217\n if (getPropertyOfType(instanceType, name)) {\n error(errorLocation, ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0, diagnosticName(nameArg));\n return true;\n }\n }\n }\n location = location.parent;\n }\n return false;\n }\n function checkAndReportErrorForExtendingInterface(errorLocation) {\n var expression = getEntityNameForExtendingInterface(errorLocation);\n if (expression && resolveEntityName(expression, 64 /* Interface */, /*ignoreErrors*/ true)) {\n error(errorLocation, ts.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements, ts.getTextOfNode(expression));\n return true;\n }\n return false;\n }\n /**\n * Climbs up parents to an ExpressionWithTypeArguments, and returns its expression,\n * but returns undefined if that expression is not an EntityNameExpression.\n */\n function getEntityNameForExtendingInterface(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n case 204 /* PropertyAccessExpression */:\n return node.parent ? getEntityNameForExtendingInterface(node.parent) : undefined;\n case 226 /* ExpressionWithTypeArguments */:\n if (ts.isEntityNameExpression(node.expression)) {\n return node.expression;\n }\n // falls through\n default:\n return undefined;\n }\n }\n function checkAndReportErrorForUsingTypeAsNamespace(errorLocation, name, meaning) {\n var namespaceMeaning = 1920 /* Namespace */ | (ts.isInJSFile(errorLocation) ? 111551 /* Value */ : 0);\n if (meaning === namespaceMeaning) {\n var symbol = resolveSymbol(resolveName(errorLocation, name, 788968 /* Type */ & ~namespaceMeaning, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));\n var parent = errorLocation.parent;\n if (symbol) {\n if (ts.isQualifiedName(parent)) {\n ts.Debug.assert(parent.left === errorLocation, \"Should only be resolving left side of qualified name as a namespace\");\n var propName = parent.right.escapedText;\n var propType = getPropertyOfType(getDeclaredTypeOfSymbol(symbol), propName);\n if (propType) {\n error(parent, ts.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1, ts.unescapeLeadingUnderscores(name), ts.unescapeLeadingUnderscores(propName));\n return true;\n }\n }\n error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_namespace_here, ts.unescapeLeadingUnderscores(name));\n return true;\n }\n }\n return false;\n }\n function checkAndReportErrorForUsingValueAsType(errorLocation, name, meaning) {\n if (meaning & (788968 /* Type */ & ~1920 /* Namespace */)) {\n var symbol = resolveSymbol(resolveName(errorLocation, name, ~788968 /* Type */ & 111551 /* Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));\n if (symbol && !(symbol.flags & 1920 /* Namespace */)) {\n error(errorLocation, ts.Diagnostics._0_refers_to_a_value_but_is_being_used_as_a_type_here_Did_you_mean_typeof_0, ts.unescapeLeadingUnderscores(name));\n return true;\n }\n }\n return false;\n }\n function isPrimitiveTypeName(name) {\n return name === \"any\" || name === \"string\" || name === \"number\" || name === \"boolean\" || name === \"never\" || name === \"unknown\";\n }\n function checkAndReportErrorForExportingPrimitiveType(errorLocation, name) {\n if (isPrimitiveTypeName(name) && errorLocation.parent.kind === 273 /* ExportSpecifier */) {\n error(errorLocation, ts.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, name);\n return true;\n }\n return false;\n }\n function checkAndReportErrorForUsingTypeAsValue(errorLocation, name, meaning) {\n if (meaning & (111551 /* Value */ & ~1024 /* NamespaceModule */)) {\n if (isPrimitiveTypeName(name)) {\n error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, ts.unescapeLeadingUnderscores(name));\n return true;\n }\n var symbol = resolveSymbol(resolveName(errorLocation, name, 788968 /* Type */ & ~111551 /* Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));\n if (symbol && !(symbol.flags & 1024 /* NamespaceModule */)) {\n var rawName = ts.unescapeLeadingUnderscores(name);\n if (isES2015OrLaterConstructorName(name)) {\n error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_es2015_or_later, rawName);\n }\n else if (maybeMappedType(errorLocation, symbol)) {\n error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0, rawName, rawName === \"K\" ? \"P\" : \"K\");\n }\n else {\n error(errorLocation, ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here, rawName);\n }\n return true;\n }\n }\n return false;\n }\n function maybeMappedType(node, symbol) {\n var container = ts.findAncestor(node.parent, function (n) {\n return ts.isComputedPropertyName(n) || ts.isPropertySignature(n) ? false : ts.isTypeLiteralNode(n) || \"quit\";\n });\n if (container && container.members.length === 1) {\n var type = getDeclaredTypeOfSymbol(symbol);\n return !!(type.flags & 1048576 /* Union */) && allTypesAssignableToKind(type, 384 /* StringOrNumberLiteral */, /*strict*/ true);\n }\n return false;\n }\n function isES2015OrLaterConstructorName(n) {\n switch (n) {\n case \"Promise\":\n case \"Symbol\":\n case \"Map\":\n case \"WeakMap\":\n case \"Set\":\n case \"WeakSet\":\n return true;\n }\n return false;\n }\n function checkAndReportErrorForUsingNamespaceModuleAsValue(errorLocation, name, meaning) {\n if (meaning & (111551 /* Value */ & ~1024 /* NamespaceModule */ & ~788968 /* Type */)) {\n var symbol = resolveSymbol(resolveName(errorLocation, name, 1024 /* NamespaceModule */ & ~111551 /* Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));\n if (symbol) {\n error(errorLocation, ts.Diagnostics.Cannot_use_namespace_0_as_a_value, ts.unescapeLeadingUnderscores(name));\n return true;\n }\n }\n else if (meaning & (788968 /* Type */ & ~1024 /* NamespaceModule */ & ~111551 /* Value */)) {\n var symbol = resolveSymbol(resolveName(errorLocation, name, (512 /* ValueModule */ | 1024 /* NamespaceModule */) & ~788968 /* Type */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false));\n if (symbol) {\n error(errorLocation, ts.Diagnostics.Cannot_use_namespace_0_as_a_type, ts.unescapeLeadingUnderscores(name));\n return true;\n }\n }\n return false;\n }\n function checkResolvedBlockScopedVariable(result, errorLocation) {\n var _a;\n ts.Debug.assert(!!(result.flags & 2 /* BlockScopedVariable */ || result.flags & 32 /* Class */ || result.flags & 384 /* Enum */));\n if (result.flags & (16 /* Function */ | 1 /* FunctionScopedVariable */ | 67108864 /* Assignment */) && result.flags & 32 /* Class */) {\n // constructor functions aren't block scoped\n return;\n }\n // Block-scoped variables cannot be used before their definition\n var declaration = (_a = result.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return ts.isBlockOrCatchScoped(d) || ts.isClassLike(d) || (d.kind === 258 /* EnumDeclaration */); });\n if (declaration === undefined)\n return ts.Debug.fail(\"checkResolvedBlockScopedVariable could not find block-scoped declaration\");\n if (!(declaration.flags & 8388608 /* Ambient */) && !isBlockScopedNameDeclaredBeforeUse(declaration, errorLocation)) {\n var diagnosticMessage = void 0;\n var declarationName = ts.declarationNameToString(ts.getNameOfDeclaration(declaration));\n if (result.flags & 2 /* BlockScopedVariable */) {\n diagnosticMessage = error(errorLocation, ts.Diagnostics.Block_scoped_variable_0_used_before_its_declaration, declarationName);\n }\n else if (result.flags & 32 /* Class */) {\n diagnosticMessage = error(errorLocation, ts.Diagnostics.Class_0_used_before_its_declaration, declarationName);\n }\n else if (result.flags & 256 /* RegularEnum */) {\n diagnosticMessage = error(errorLocation, ts.Diagnostics.Enum_0_used_before_its_declaration, declarationName);\n }\n else {\n ts.Debug.assert(!!(result.flags & 128 /* ConstEnum */));\n if (ts.shouldPreserveConstEnums(compilerOptions)) {\n diagnosticMessage = error(errorLocation, ts.Diagnostics.Enum_0_used_before_its_declaration, declarationName);\n }\n }\n if (diagnosticMessage) {\n ts.addRelatedInfo(diagnosticMessage, ts.createDiagnosticForNode(declaration, ts.Diagnostics._0_is_declared_here, declarationName));\n }\n }\n }\n /* Starting from 'initial' node walk up the parent chain until 'stopAt' node is reached.\n * If at any point current node is equal to 'parent' node - return true.\n * Return false if 'stopAt' node is reached or isFunctionLike(current) === true.\n */\n function isSameScopeDescendentOf(initial, parent, stopAt) {\n return !!parent && !!ts.findAncestor(initial, function (n) { return n === stopAt || ts.isFunctionLike(n) ? \"quit\" : n === parent; });\n }\n function getAnyImportSyntax(node) {\n switch (node.kind) {\n case 263 /* ImportEqualsDeclaration */:\n return node;\n case 265 /* ImportClause */:\n return node.parent;\n case 266 /* NamespaceImport */:\n return node.parent.parent;\n case 268 /* ImportSpecifier */:\n return node.parent.parent.parent;\n default:\n return undefined;\n }\n }\n function getDeclarationOfAliasSymbol(symbol) {\n return symbol.declarations && ts.findLast(symbol.declarations, isAliasSymbolDeclaration);\n }\n /**\n * An alias symbol is created by one of the following declarations:\n * import = ...\n * import from ...\n * import * as from ...\n * import { x as } from ...\n * export { x as } from ...\n * export * as ns from ...\n * export = \n * export default \n * module.exports = \n * {}\n * {name: }\n * const { x } = require ...\n */\n function isAliasSymbolDeclaration(node) {\n return node.kind === 263 /* ImportEqualsDeclaration */\n || node.kind === 262 /* NamespaceExportDeclaration */\n || node.kind === 265 /* ImportClause */ && !!node.name\n || node.kind === 266 /* NamespaceImport */\n || node.kind === 272 /* NamespaceExport */\n || node.kind === 268 /* ImportSpecifier */\n || node.kind === 273 /* ExportSpecifier */\n || node.kind === 269 /* ExportAssignment */ && ts.exportAssignmentIsAlias(node)\n || ts.isBinaryExpression(node) && ts.getAssignmentDeclarationKind(node) === 2 /* ModuleExports */ && ts.exportAssignmentIsAlias(node)\n || ts.isAccessExpression(node)\n && ts.isBinaryExpression(node.parent)\n && node.parent.left === node\n && node.parent.operatorToken.kind === 63 /* EqualsToken */\n && isAliasableOrJsExpression(node.parent.right)\n || node.kind === 292 /* ShorthandPropertyAssignment */\n || node.kind === 291 /* PropertyAssignment */ && isAliasableOrJsExpression(node.initializer)\n || ts.isRequireVariableDeclaration(node);\n }\n function isAliasableOrJsExpression(e) {\n return ts.isAliasableExpression(e) || ts.isFunctionExpression(e) && isJSConstructor(e);\n }\n function getTargetOfImportEqualsDeclaration(node, dontResolveAlias) {\n var commonJSPropertyAccess = getCommonJSPropertyAccess(node);\n if (commonJSPropertyAccess) {\n var name = ts.getLeftmostAccessExpression(commonJSPropertyAccess.expression).arguments[0];\n return ts.isIdentifier(commonJSPropertyAccess.name)\n ? resolveSymbol(getPropertyOfType(resolveExternalModuleTypeByLiteral(name), commonJSPropertyAccess.name.escapedText))\n : undefined;\n }\n if (ts.isVariableDeclaration(node) || node.moduleReference.kind === 275 /* ExternalModuleReference */) {\n var immediate = resolveExternalModuleName(node, ts.getExternalModuleRequireArgument(node) || ts.getExternalModuleImportEqualsDeclarationExpression(node));\n var resolved_4 = resolveExternalModuleSymbol(immediate);\n markSymbolOfAliasDeclarationIfTypeOnly(node, immediate, resolved_4, /*overwriteEmpty*/ false);\n return resolved_4;\n }\n var resolved = getSymbolOfPartOfRightHandSideOfImportEquals(node.moduleReference, dontResolveAlias);\n checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved);\n return resolved;\n }\n function checkAndReportErrorForResolvingImportAliasToTypeOnlySymbol(node, resolved) {\n if (markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false) && !node.isTypeOnly) {\n var typeOnlyDeclaration = getTypeOnlyAliasDeclaration(getSymbolOfNode(node));\n var isExport = ts.typeOnlyDeclarationIsExport(typeOnlyDeclaration);\n var message = isExport\n ? ts.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_exported_using_export_type\n : ts.Diagnostics.An_import_alias_cannot_reference_a_declaration_that_was_imported_using_import_type;\n var relatedMessage = isExport\n ? ts.Diagnostics._0_was_exported_here\n : ts.Diagnostics._0_was_imported_here;\n // Non-null assertion is safe because the optionality comes from ImportClause,\n // but if an ImportClause was the typeOnlyDeclaration, it had to have a `name`.\n var name = ts.unescapeLeadingUnderscores(typeOnlyDeclaration.name.escapedText);\n ts.addRelatedInfo(error(node.moduleReference, message), ts.createDiagnosticForNode(typeOnlyDeclaration, relatedMessage, name));\n }\n }\n function resolveExportByName(moduleSymbol, name, sourceNode, dontResolveAlias) {\n var exportValue = moduleSymbol.exports.get(\"export=\" /* ExportEquals */);\n var exportSymbol = exportValue ? getPropertyOfType(getTypeOfSymbol(exportValue), name) : moduleSymbol.exports.get(name);\n var resolved = resolveSymbol(exportSymbol, dontResolveAlias);\n markSymbolOfAliasDeclarationIfTypeOnly(sourceNode, exportSymbol, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n function isSyntacticDefault(node) {\n return ((ts.isExportAssignment(node) && !node.isExportEquals) || ts.hasSyntacticModifier(node, 512 /* Default */) || ts.isExportSpecifier(node));\n }\n function canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias) {\n if (!allowSyntheticDefaultImports) {\n return false;\n }\n // Declaration files (and ambient modules)\n if (!file || file.isDeclarationFile) {\n // Definitely cannot have a synthetic default if they have a syntactic default member specified\n var defaultExportSymbol = resolveExportByName(moduleSymbol, \"default\" /* Default */, /*sourceNode*/ undefined, /*dontResolveAlias*/ true); // Dont resolve alias because we want the immediately exported symbol's declaration\n if (defaultExportSymbol && ts.some(defaultExportSymbol.declarations, isSyntacticDefault)) {\n return false;\n }\n // It _might_ still be incorrect to assume there is no __esModule marker on the import at runtime, even if there is no `default` member\n // So we check a bit more,\n if (resolveExportByName(moduleSymbol, ts.escapeLeadingUnderscores(\"__esModule\"), /*sourceNode*/ undefined, dontResolveAlias)) {\n // If there is an `__esModule` specified in the declaration (meaning someone explicitly added it or wrote it in their code),\n // it definitely is a module and does not have a synthetic default\n return false;\n }\n // There are _many_ declaration files not written with esmodules in mind that still get compiled into a format with __esModule set\n // Meaning there may be no default at runtime - however to be on the permissive side, we allow access to a synthetic default member\n // as there is no marker to indicate if the accompanying JS has `__esModule` or not, or is even native esm\n return true;\n }\n // TypeScript files never have a synthetic default (as they are always emitted with an __esModule marker) _unless_ they contain an export= statement\n if (!ts.isSourceFileJS(file)) {\n return hasExportAssignmentSymbol(moduleSymbol);\n }\n // JS files have a synthetic default if they do not contain ES2015+ module syntax (export = is not valid in js) _and_ do not have an __esModule marker\n return !file.externalModuleIndicator && !resolveExportByName(moduleSymbol, ts.escapeLeadingUnderscores(\"__esModule\"), /*sourceNode*/ undefined, dontResolveAlias);\n }\n function getTargetOfImportClause(node, dontResolveAlias) {\n var _a;\n var moduleSymbol = resolveExternalModuleName(node, node.parent.moduleSpecifier);\n if (moduleSymbol) {\n var exportDefaultSymbol = void 0;\n if (ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {\n exportDefaultSymbol = moduleSymbol;\n }\n else {\n exportDefaultSymbol = resolveExportByName(moduleSymbol, \"default\" /* Default */, node, dontResolveAlias);\n }\n var file = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);\n var hasSyntheticDefault = canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias);\n if (!exportDefaultSymbol && !hasSyntheticDefault) {\n if (hasExportAssignmentSymbol(moduleSymbol)) {\n var compilerOptionName = moduleKind >= ts.ModuleKind.ES2015 ? \"allowSyntheticDefaultImports\" : \"esModuleInterop\";\n var exportEqualsSymbol = moduleSymbol.exports.get(\"export=\" /* ExportEquals */);\n var exportAssignment = exportEqualsSymbol.valueDeclaration;\n var err = error(node.name, ts.Diagnostics.Module_0_can_only_be_default_imported_using_the_1_flag, symbolToString(moduleSymbol), compilerOptionName);\n if (exportAssignment) {\n ts.addRelatedInfo(err, ts.createDiagnosticForNode(exportAssignment, ts.Diagnostics.This_module_is_declared_with_using_export_and_can_only_be_used_with_a_default_import_when_using_the_0_flag, compilerOptionName));\n }\n }\n else {\n reportNonDefaultExport(moduleSymbol, node);\n }\n }\n else if (hasSyntheticDefault) {\n // per emit behavior, a synthetic default overrides a \"real\" .default member if `__esModule` is not present\n var resolved = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);\n markSymbolOfAliasDeclarationIfTypeOnly(node, moduleSymbol, resolved, /*overwriteTypeOnly*/ false);\n return resolved;\n }\n markSymbolOfAliasDeclarationIfTypeOnly(node, exportDefaultSymbol, /*finalTarget*/ undefined, /*overwriteTypeOnly*/ false);\n return exportDefaultSymbol;\n }\n }\n function reportNonDefaultExport(moduleSymbol, node) {\n var _a, _b, _c;\n if ((_a = moduleSymbol.exports) === null || _a === void 0 ? void 0 : _a.has(node.symbol.escapedName)) {\n error(node.name, ts.Diagnostics.Module_0_has_no_default_export_Did_you_mean_to_use_import_1_from_0_instead, symbolToString(moduleSymbol), symbolToString(node.symbol));\n }\n else {\n var diagnostic = error(node.name, ts.Diagnostics.Module_0_has_no_default_export, symbolToString(moduleSymbol));\n var exportStar = (_b = moduleSymbol.exports) === null || _b === void 0 ? void 0 : _b.get(\"__export\" /* ExportStar */);\n if (exportStar) {\n var defaultExport = (_c = exportStar.declarations) === null || _c === void 0 ? void 0 : _c.find(function (decl) {\n var _a, _b;\n return !!(ts.isExportDeclaration(decl) && decl.moduleSpecifier &&\n ((_b = (_a = resolveExternalModuleName(decl, decl.moduleSpecifier)) === null || _a === void 0 ? void 0 : _a.exports) === null || _b === void 0 ? void 0 : _b.has(\"default\" /* Default */)));\n });\n if (defaultExport) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(defaultExport, ts.Diagnostics.export_Asterisk_does_not_re_export_a_default));\n }\n }\n }\n }\n function getTargetOfNamespaceImport(node, dontResolveAlias) {\n var moduleSpecifier = node.parent.parent.moduleSpecifier;\n var immediate = resolveExternalModuleName(node, moduleSpecifier);\n var resolved = resolveESModuleSymbol(immediate, moduleSpecifier, dontResolveAlias, /*suppressUsageError*/ false);\n markSymbolOfAliasDeclarationIfTypeOnly(node, immediate, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n function getTargetOfNamespaceExport(node, dontResolveAlias) {\n var moduleSpecifier = node.parent.moduleSpecifier;\n var immediate = moduleSpecifier && resolveExternalModuleName(node, moduleSpecifier);\n var resolved = moduleSpecifier && resolveESModuleSymbol(immediate, moduleSpecifier, dontResolveAlias, /*suppressUsageError*/ false);\n markSymbolOfAliasDeclarationIfTypeOnly(node, immediate, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n // This function creates a synthetic symbol that combines the value side of one symbol with the\n // type/namespace side of another symbol. Consider this example:\n //\n // declare module graphics {\n // interface Point {\n // x: number;\n // y: number;\n // }\n // }\n // declare var graphics: {\n // Point: new (x: number, y: number) => graphics.Point;\n // }\n // declare module \"graphics\" {\n // export = graphics;\n // }\n //\n // An 'import { Point } from \"graphics\"' needs to create a symbol that combines the value side 'Point'\n // property with the type/namespace side interface 'Point'.\n function combineValueAndTypeSymbols(valueSymbol, typeSymbol) {\n if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) {\n return unknownSymbol;\n }\n if (valueSymbol.flags & (788968 /* Type */ | 1920 /* Namespace */)) {\n return valueSymbol;\n }\n var result = createSymbol(valueSymbol.flags | typeSymbol.flags, valueSymbol.escapedName);\n result.declarations = ts.deduplicate(ts.concatenate(valueSymbol.declarations, typeSymbol.declarations), ts.equateValues);\n result.parent = valueSymbol.parent || typeSymbol.parent;\n if (valueSymbol.valueDeclaration)\n result.valueDeclaration = valueSymbol.valueDeclaration;\n if (typeSymbol.members)\n result.members = new ts.Map(typeSymbol.members);\n if (valueSymbol.exports)\n result.exports = new ts.Map(valueSymbol.exports);\n return result;\n }\n function getExportOfModule(symbol, name, specifier, dontResolveAlias) {\n if (symbol.flags & 1536 /* Module */) {\n var exportSymbol = getExportsOfSymbol(symbol).get(name.escapedText);\n var resolved = resolveSymbol(exportSymbol, dontResolveAlias);\n markSymbolOfAliasDeclarationIfTypeOnly(specifier, exportSymbol, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n }\n function getPropertyOfVariable(symbol, name) {\n if (symbol.flags & 3 /* Variable */) {\n var typeAnnotation = symbol.valueDeclaration.type;\n if (typeAnnotation) {\n return resolveSymbol(getPropertyOfType(getTypeFromTypeNode(typeAnnotation), name));\n }\n }\n }\n function getExternalModuleMember(node, specifier, dontResolveAlias) {\n var _a, _b;\n if (dontResolveAlias === void 0) { dontResolveAlias = false; }\n var moduleSpecifier = ts.getExternalModuleRequireArgument(node) || node.moduleSpecifier;\n var moduleSymbol = resolveExternalModuleName(node, moduleSpecifier); // TODO: GH#18217\n var name = !ts.isPropertyAccessExpression(specifier) && specifier.propertyName || specifier.name;\n if (!ts.isIdentifier(name)) {\n return undefined;\n }\n var suppressInteropError = name.escapedText === \"default\" /* Default */ && !!(compilerOptions.allowSyntheticDefaultImports || compilerOptions.esModuleInterop);\n var targetSymbol = resolveESModuleSymbol(moduleSymbol, moduleSpecifier, /*dontResolveAlias*/ false, suppressInteropError);\n if (targetSymbol) {\n if (name.escapedText) {\n if (ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {\n return moduleSymbol;\n }\n var symbolFromVariable = void 0;\n // First check if module was specified with \"export=\". If so, get the member from the resolved type\n if (moduleSymbol && moduleSymbol.exports && moduleSymbol.exports.get(\"export=\" /* ExportEquals */)) {\n symbolFromVariable = getPropertyOfType(getTypeOfSymbol(targetSymbol), name.escapedText, /*skipObjectFunctionPropertyAugment*/ true);\n }\n else {\n symbolFromVariable = getPropertyOfVariable(targetSymbol, name.escapedText);\n }\n // if symbolFromVariable is export - get its final target\n symbolFromVariable = resolveSymbol(symbolFromVariable, dontResolveAlias);\n var symbolFromModule = getExportOfModule(targetSymbol, name, specifier, dontResolveAlias);\n if (symbolFromModule === undefined && name.escapedText === \"default\" /* Default */) {\n var file = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);\n if (canHaveSyntheticDefault(file, moduleSymbol, dontResolveAlias)) {\n symbolFromModule = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) || resolveSymbol(moduleSymbol, dontResolveAlias);\n }\n }\n var symbol = symbolFromModule && symbolFromVariable && symbolFromModule !== symbolFromVariable ?\n combineValueAndTypeSymbols(symbolFromVariable, symbolFromModule) :\n symbolFromModule || symbolFromVariable;\n if (!symbol) {\n var moduleName = getFullyQualifiedName(moduleSymbol, node);\n var declarationName = ts.declarationNameToString(name);\n var suggestion = getSuggestedSymbolForNonexistentModule(name, targetSymbol);\n if (suggestion !== undefined) {\n var suggestionName = symbolToString(suggestion);\n var diagnostic = error(name, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, moduleName, declarationName, suggestionName);\n if (suggestion.valueDeclaration) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestionName));\n }\n }\n else {\n if ((_b = moduleSymbol.exports) === null || _b === void 0 ? void 0 : _b.has(\"default\" /* Default */)) {\n error(name, ts.Diagnostics.Module_0_has_no_exported_member_1_Did_you_mean_to_use_import_1_from_0_instead, moduleName, declarationName);\n }\n else {\n reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName);\n }\n }\n }\n return symbol;\n }\n }\n }\n function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {\n var _a, _b;\n var localSymbol = (_b = (_a = moduleSymbol.valueDeclaration) === null || _a === void 0 ? void 0 : _a.locals) === null || _b === void 0 ? void 0 : _b.get(name.escapedText);\n var exports = moduleSymbol.exports;\n if (localSymbol) {\n var exportedEqualsSymbol = exports === null || exports === void 0 ? void 0 : exports.get(\"export=\" /* ExportEquals */);\n if (exportedEqualsSymbol) {\n getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) :\n error(name, ts.Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName);\n }\n else {\n var exportedSymbol = exports ? ts.find(symbolsToArray(exports), function (symbol) { return !!getSymbolIfSameReference(symbol, localSymbol); }) : undefined;\n var diagnostic = exportedSymbol ? error(name, ts.Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) :\n error(name, ts.Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName);\n if (localSymbol.declarations) {\n ts.addRelatedInfo.apply(void 0, __spreadArray([diagnostic], ts.map(localSymbol.declarations, function (decl, index) {\n return ts.createDiagnosticForNode(decl, index === 0 ? ts.Diagnostics._0_is_declared_here : ts.Diagnostics.and_here, declarationName);\n }), false));\n }\n }\n }\n else {\n error(name, ts.Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName);\n }\n }\n function reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) {\n if (moduleKind >= ts.ModuleKind.ES2015) {\n var message = compilerOptions.esModuleInterop ? ts.Diagnostics._0_can_only_be_imported_by_using_a_default_import :\n ts.Diagnostics._0_can_only_be_imported_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;\n error(name, message, declarationName);\n }\n else {\n if (ts.isInJSFile(node)) {\n var message = compilerOptions.esModuleInterop ? ts.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_using_a_default_import :\n ts.Diagnostics._0_can_only_be_imported_by_using_a_require_call_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;\n error(name, message, declarationName);\n }\n else {\n var message = compilerOptions.esModuleInterop ? ts.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_a_default_import :\n ts.Diagnostics._0_can_only_be_imported_by_using_import_1_require_2_or_by_turning_on_the_esModuleInterop_flag_and_using_a_default_import;\n error(name, message, declarationName, declarationName, moduleName);\n }\n }\n }\n function getTargetOfImportSpecifier(node, dontResolveAlias) {\n var root = ts.isBindingElement(node) ? ts.getRootDeclaration(node) : node.parent.parent.parent;\n var commonJSPropertyAccess = getCommonJSPropertyAccess(root);\n var resolved = getExternalModuleMember(root, commonJSPropertyAccess || node, dontResolveAlias);\n var name = node.propertyName || node.name;\n if (commonJSPropertyAccess && resolved && ts.isIdentifier(name)) {\n return resolveSymbol(getPropertyOfType(getTypeOfSymbol(resolved), name.escapedText), dontResolveAlias);\n }\n markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n function getCommonJSPropertyAccess(node) {\n if (ts.isVariableDeclaration(node) && node.initializer && ts.isPropertyAccessExpression(node.initializer)) {\n return node.initializer;\n }\n }\n function getTargetOfNamespaceExportDeclaration(node, dontResolveAlias) {\n var resolved = resolveExternalModuleSymbol(node.parent.symbol, dontResolveAlias);\n markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n function getTargetOfExportSpecifier(node, meaning, dontResolveAlias) {\n var resolved = node.parent.parent.moduleSpecifier ?\n getExternalModuleMember(node.parent.parent, node, dontResolveAlias) :\n resolveEntityName(node.propertyName || node.name, meaning, /*ignoreErrors*/ false, dontResolveAlias);\n markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n function getTargetOfExportAssignment(node, dontResolveAlias) {\n var expression = ts.isExportAssignment(node) ? node.expression : node.right;\n var resolved = getTargetOfAliasLikeExpression(expression, dontResolveAlias);\n markSymbolOfAliasDeclarationIfTypeOnly(node, /*immediateTarget*/ undefined, resolved, /*overwriteEmpty*/ false);\n return resolved;\n }\n function getTargetOfAliasLikeExpression(expression, dontResolveAlias) {\n if (ts.isClassExpression(expression)) {\n return checkExpressionCached(expression).symbol;\n }\n if (!ts.isEntityName(expression) && !ts.isEntityNameExpression(expression)) {\n return undefined;\n }\n var aliasLike = resolveEntityName(expression, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, /*ignoreErrors*/ true, dontResolveAlias);\n if (aliasLike) {\n return aliasLike;\n }\n checkExpressionCached(expression);\n return getNodeLinks(expression).resolvedSymbol;\n }\n function getTargetOfPropertyAssignment(node, dontRecursivelyResolve) {\n var expression = node.initializer;\n return getTargetOfAliasLikeExpression(expression, dontRecursivelyResolve);\n }\n function getTargetOfAccessExpression(node, dontRecursivelyResolve) {\n if (!(ts.isBinaryExpression(node.parent) && node.parent.left === node && node.parent.operatorToken.kind === 63 /* EqualsToken */)) {\n return undefined;\n }\n return getTargetOfAliasLikeExpression(node.parent.right, dontRecursivelyResolve);\n }\n function getTargetOfAliasDeclaration(node, dontRecursivelyResolve) {\n if (dontRecursivelyResolve === void 0) { dontRecursivelyResolve = false; }\n switch (node.kind) {\n case 263 /* ImportEqualsDeclaration */:\n case 252 /* VariableDeclaration */:\n return getTargetOfImportEqualsDeclaration(node, dontRecursivelyResolve);\n case 265 /* ImportClause */:\n return getTargetOfImportClause(node, dontRecursivelyResolve);\n case 266 /* NamespaceImport */:\n return getTargetOfNamespaceImport(node, dontRecursivelyResolve);\n case 272 /* NamespaceExport */:\n return getTargetOfNamespaceExport(node, dontRecursivelyResolve);\n case 268 /* ImportSpecifier */:\n case 201 /* BindingElement */:\n return getTargetOfImportSpecifier(node, dontRecursivelyResolve);\n case 273 /* ExportSpecifier */:\n return getTargetOfExportSpecifier(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, dontRecursivelyResolve);\n case 269 /* ExportAssignment */:\n case 219 /* BinaryExpression */:\n return getTargetOfExportAssignment(node, dontRecursivelyResolve);\n case 262 /* NamespaceExportDeclaration */:\n return getTargetOfNamespaceExportDeclaration(node, dontRecursivelyResolve);\n case 292 /* ShorthandPropertyAssignment */:\n return resolveEntityName(node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, /*ignoreErrors*/ true, dontRecursivelyResolve);\n case 291 /* PropertyAssignment */:\n return getTargetOfPropertyAssignment(node, dontRecursivelyResolve);\n case 205 /* ElementAccessExpression */:\n case 204 /* PropertyAccessExpression */:\n return getTargetOfAccessExpression(node, dontRecursivelyResolve);\n default:\n return ts.Debug.fail();\n }\n }\n /**\n * Indicates that a symbol is an alias that does not merge with a local declaration.\n * OR Is a JSContainer which may merge an alias with a local declaration\n */\n function isNonLocalAlias(symbol, excludes) {\n if (excludes === void 0) { excludes = 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */; }\n if (!symbol)\n return false;\n return (symbol.flags & (2097152 /* Alias */ | excludes)) === 2097152 /* Alias */ || !!(symbol.flags & 2097152 /* Alias */ && symbol.flags & 67108864 /* Assignment */);\n }\n function resolveSymbol(symbol, dontResolveAlias) {\n return !dontResolveAlias && isNonLocalAlias(symbol) ? resolveAlias(symbol) : symbol;\n }\n function resolveAlias(symbol) {\n ts.Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, \"Should only get Alias here.\");\n var links = getSymbolLinks(symbol);\n if (!links.target) {\n links.target = resolvingSymbol;\n var node = getDeclarationOfAliasSymbol(symbol);\n if (!node)\n return ts.Debug.fail();\n var target = getTargetOfAliasDeclaration(node);\n if (links.target === resolvingSymbol) {\n links.target = target || unknownSymbol;\n }\n else {\n error(node, ts.Diagnostics.Circular_definition_of_import_alias_0, symbolToString(symbol));\n }\n }\n else if (links.target === resolvingSymbol) {\n links.target = unknownSymbol;\n }\n return links.target;\n }\n function tryResolveAlias(symbol) {\n var links = getSymbolLinks(symbol);\n if (links.target !== resolvingSymbol) {\n return resolveAlias(symbol);\n }\n return undefined;\n }\n /**\n * Marks a symbol as type-only if its declaration is syntactically type-only.\n * If it is not itself marked type-only, but resolves to a type-only alias\n * somewhere in its resolution chain, save a reference to the type-only alias declaration\n * so the alias _not_ marked type-only can be identified as _transitively_ type-only.\n *\n * This function is called on each alias declaration that could be type-only or resolve to\n * another type-only alias during `resolveAlias`, so that later, when an alias is used in a\n * JS-emitting expression, we can quickly determine if that symbol is effectively type-only\n * and issue an error if so.\n *\n * @param aliasDeclaration The alias declaration not marked as type-only\n * has already been marked as not resolving to a type-only alias. Used when recursively resolving qualified\n * names of import aliases, e.g. `import C = a.b.C`. If namespace `a` is not found to be type-only, the\n * import declaration will initially be marked as not resolving to a type-only symbol. But, namespace `b`\n * must still be checked for a type-only marker, overwriting the previous negative result if found.\n * @param immediateTarget The symbol to which the alias declaration immediately resolves\n * @param finalTarget The symbol to which the alias declaration ultimately resolves\n * @param overwriteEmpty Checks `resolvesToSymbol` for type-only declarations even if `aliasDeclaration`\n */\n function markSymbolOfAliasDeclarationIfTypeOnly(aliasDeclaration, immediateTarget, finalTarget, overwriteEmpty) {\n if (!aliasDeclaration || ts.isPropertyAccessExpression(aliasDeclaration))\n return false;\n // If the declaration itself is type-only, mark it and return.\n // No need to check what it resolves to.\n var sourceSymbol = getSymbolOfNode(aliasDeclaration);\n if (ts.isTypeOnlyImportOrExportDeclaration(aliasDeclaration)) {\n var links_1 = getSymbolLinks(sourceSymbol);\n links_1.typeOnlyDeclaration = aliasDeclaration;\n return true;\n }\n var links = getSymbolLinks(sourceSymbol);\n return markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, immediateTarget, overwriteEmpty)\n || markSymbolOfAliasDeclarationIfTypeOnlyWorker(links, finalTarget, overwriteEmpty);\n }\n function markSymbolOfAliasDeclarationIfTypeOnlyWorker(aliasDeclarationLinks, target, overwriteEmpty) {\n var _a, _b, _c;\n if (target && (aliasDeclarationLinks.typeOnlyDeclaration === undefined || overwriteEmpty && aliasDeclarationLinks.typeOnlyDeclaration === false)) {\n var exportSymbol = (_b = (_a = target.exports) === null || _a === void 0 ? void 0 : _a.get(\"export=\" /* ExportEquals */)) !== null && _b !== void 0 ? _b : target;\n var typeOnly = exportSymbol.declarations && ts.find(exportSymbol.declarations, ts.isTypeOnlyImportOrExportDeclaration);\n aliasDeclarationLinks.typeOnlyDeclaration = (_c = typeOnly !== null && typeOnly !== void 0 ? typeOnly : getSymbolLinks(exportSymbol).typeOnlyDeclaration) !== null && _c !== void 0 ? _c : false;\n }\n return !!aliasDeclarationLinks.typeOnlyDeclaration;\n }\n /** Indicates that a symbol directly or indirectly resolves to a type-only import or export. */\n function getTypeOnlyAliasDeclaration(symbol) {\n if (!(symbol.flags & 2097152 /* Alias */)) {\n return undefined;\n }\n var links = getSymbolLinks(symbol);\n return links.typeOnlyDeclaration || undefined;\n }\n function markExportAsReferenced(node) {\n var symbol = getSymbolOfNode(node);\n var target = resolveAlias(symbol);\n if (target) {\n var markAlias = target === unknownSymbol ||\n ((target.flags & 111551 /* Value */) && !isConstEnumOrConstEnumOnlyModule(target) && !getTypeOnlyAliasDeclaration(symbol));\n if (markAlias) {\n markAliasSymbolAsReferenced(symbol);\n }\n }\n }\n // When an alias symbol is referenced, we need to mark the entity it references as referenced and in turn repeat that until\n // we reach a non-alias or an exported entity (which is always considered referenced). We do this by checking the target of\n // the alias as an expression (which recursively takes us back here if the target references another alias).\n function markAliasSymbolAsReferenced(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.referenced) {\n links.referenced = true;\n var node = getDeclarationOfAliasSymbol(symbol);\n if (!node)\n return ts.Debug.fail();\n // We defer checking of the reference of an `import =` until the import itself is referenced,\n // This way a chain of imports can be elided if ultimately the final input is only used in a type\n // position.\n if (ts.isInternalModuleImportEqualsDeclaration(node)) {\n var target = resolveSymbol(symbol);\n if (target === unknownSymbol || target.flags & 111551 /* Value */) {\n // import foo = \n checkExpressionCached(node.moduleReference);\n }\n }\n }\n }\n // Aliases that resolve to const enums are not marked as referenced because they are not emitted,\n // but their usage in value positions must be tracked to determine if the import can be type-only.\n function markConstEnumAliasAsReferenced(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.constEnumReferenced) {\n links.constEnumReferenced = true;\n }\n }\n // This function is only for imports with entity names\n function getSymbolOfPartOfRightHandSideOfImportEquals(entityName, dontResolveAlias) {\n // There are three things we might try to look for. In the following examples,\n // the search term is enclosed in |...|:\n //\n // import a = |b|; // Namespace\n // import a = |b.c|; // Value, type, namespace\n // import a = |b.c|.d; // Namespace\n if (entityName.kind === 79 /* Identifier */ && ts.isRightSideOfQualifiedNameOrPropertyAccess(entityName)) {\n entityName = entityName.parent;\n }\n // Check for case 1 and 3 in the above example\n if (entityName.kind === 79 /* Identifier */ || entityName.parent.kind === 159 /* QualifiedName */) {\n return resolveEntityName(entityName, 1920 /* Namespace */, /*ignoreErrors*/ false, dontResolveAlias);\n }\n else {\n // Case 2 in above example\n // entityName.kind could be a QualifiedName or a Missing identifier\n ts.Debug.assert(entityName.parent.kind === 263 /* ImportEqualsDeclaration */);\n return resolveEntityName(entityName, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, /*ignoreErrors*/ false, dontResolveAlias);\n }\n }\n function getFullyQualifiedName(symbol, containingLocation) {\n return symbol.parent ? getFullyQualifiedName(symbol.parent, containingLocation) + \".\" + symbolToString(symbol) : symbolToString(symbol, containingLocation, /*meaning*/ undefined, 16 /* DoNotIncludeSymbolChain */ | 4 /* AllowAnyNodeKind */);\n }\n /**\n * Resolves a qualified name and any involved aliases.\n */\n function resolveEntityName(name, meaning, ignoreErrors, dontResolveAlias, location) {\n if (ts.nodeIsMissing(name)) {\n return undefined;\n }\n var namespaceMeaning = 1920 /* Namespace */ | (ts.isInJSFile(name) ? meaning & 111551 /* Value */ : 0);\n var symbol;\n if (name.kind === 79 /* Identifier */) {\n var message = meaning === namespaceMeaning || ts.nodeIsSynthesized(name) ? ts.Diagnostics.Cannot_find_namespace_0 : getCannotFindNameDiagnosticForName(ts.getFirstIdentifier(name));\n var symbolFromJSPrototype = ts.isInJSFile(name) && !ts.nodeIsSynthesized(name) ? resolveEntityNameFromAssignmentDeclaration(name, meaning) : undefined;\n symbol = getMergedSymbol(resolveName(location || name, name.escapedText, meaning, ignoreErrors || symbolFromJSPrototype ? undefined : message, name, /*isUse*/ true));\n if (!symbol) {\n return getMergedSymbol(symbolFromJSPrototype);\n }\n }\n else if (name.kind === 159 /* QualifiedName */ || name.kind === 204 /* PropertyAccessExpression */) {\n var left = name.kind === 159 /* QualifiedName */ ? name.left : name.expression;\n var right = name.kind === 159 /* QualifiedName */ ? name.right : name.name;\n var namespace = resolveEntityName(left, namespaceMeaning, ignoreErrors, /*dontResolveAlias*/ false, location);\n if (!namespace || ts.nodeIsMissing(right)) {\n return undefined;\n }\n else if (namespace === unknownSymbol) {\n return namespace;\n }\n if (namespace.valueDeclaration &&\n ts.isInJSFile(namespace.valueDeclaration) &&\n ts.isVariableDeclaration(namespace.valueDeclaration) &&\n namespace.valueDeclaration.initializer &&\n isCommonJsRequire(namespace.valueDeclaration.initializer)) {\n var moduleName = namespace.valueDeclaration.initializer.arguments[0];\n var moduleSym = resolveExternalModuleName(moduleName, moduleName);\n if (moduleSym) {\n var resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym);\n if (resolvedModuleSymbol) {\n namespace = resolvedModuleSymbol;\n }\n }\n }\n symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(namespace), right.escapedText, meaning));\n if (!symbol) {\n if (!ignoreErrors) {\n var namespaceName = getFullyQualifiedName(namespace);\n var declarationName = ts.declarationNameToString(right);\n var suggestion = getSuggestedSymbolForNonexistentModule(right, namespace);\n suggestion ?\n error(right, ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2, namespaceName, declarationName, symbolToString(suggestion)) :\n error(right, ts.Diagnostics.Namespace_0_has_no_exported_member_1, namespaceName, declarationName);\n }\n return undefined;\n }\n }\n else {\n throw ts.Debug.assertNever(name, \"Unknown entity name kind.\");\n }\n ts.Debug.assert((ts.getCheckFlags(symbol) & 1 /* Instantiated */) === 0, \"Should never get an instantiated symbol here.\");\n if (!ts.nodeIsSynthesized(name) && ts.isEntityName(name) && (symbol.flags & 2097152 /* Alias */ || name.parent.kind === 269 /* ExportAssignment */)) {\n markSymbolOfAliasDeclarationIfTypeOnly(ts.getAliasDeclarationFromName(name), symbol, /*finalTarget*/ undefined, /*overwriteEmpty*/ true);\n }\n return (symbol.flags & meaning) || dontResolveAlias ? symbol : resolveAlias(symbol);\n }\n /**\n * 1. For prototype-property methods like `A.prototype.m = function () ...`, try to resolve names in the scope of `A` too.\n * Note that prototype-property assignment to locations outside the current file (eg globals) doesn't work, so\n * name resolution won't work either.\n * 2. For property assignments like `{ x: function f () { } }`, try to resolve names in the scope of `f` too.\n */\n function resolveEntityNameFromAssignmentDeclaration(name, meaning) {\n if (isJSDocTypeReference(name.parent)) {\n var secondaryLocation = getAssignmentDeclarationLocation(name.parent);\n if (secondaryLocation) {\n return resolveName(secondaryLocation, name.escapedText, meaning, /*nameNotFoundMessage*/ undefined, name, /*isUse*/ true);\n }\n }\n }\n function getAssignmentDeclarationLocation(node) {\n var typeAlias = ts.findAncestor(node, function (node) { return !(ts.isJSDocNode(node) || node.flags & 4194304 /* JSDoc */) ? \"quit\" : ts.isJSDocTypeAlias(node); });\n if (typeAlias) {\n return;\n }\n var host = ts.getJSDocHost(node);\n if (host &&\n ts.isExpressionStatement(host) &&\n ts.isBinaryExpression(host.expression) &&\n ts.getAssignmentDeclarationKind(host.expression) === 3 /* PrototypeProperty */) {\n // X.prototype.m = /** @param {K} p */ function () { } <-- look for K on X's declaration\n var symbol = getSymbolOfNode(host.expression.left);\n if (symbol) {\n return getDeclarationOfJSPrototypeContainer(symbol);\n }\n }\n if (host && (ts.isObjectLiteralMethod(host) || ts.isPropertyAssignment(host)) &&\n ts.isBinaryExpression(host.parent.parent) &&\n ts.getAssignmentDeclarationKind(host.parent.parent) === 6 /* Prototype */) {\n // X.prototype = { /** @param {K} p */m() { } } <-- look for K on X's declaration\n var symbol = getSymbolOfNode(host.parent.parent.left);\n if (symbol) {\n return getDeclarationOfJSPrototypeContainer(symbol);\n }\n }\n var sig = ts.getEffectiveJSDocHost(node);\n if (sig && ts.isFunctionLike(sig)) {\n var symbol = getSymbolOfNode(sig);\n return symbol && symbol.valueDeclaration;\n }\n }\n function getDeclarationOfJSPrototypeContainer(symbol) {\n var decl = symbol.parent.valueDeclaration;\n if (!decl) {\n return undefined;\n }\n var initializer = ts.isAssignmentDeclaration(decl) ? ts.getAssignedExpandoInitializer(decl) :\n ts.hasOnlyExpressionInitializer(decl) ? ts.getDeclaredExpandoInitializer(decl) :\n undefined;\n return initializer || decl;\n }\n /**\n * Get the real symbol of a declaration with an expando initializer.\n *\n * Normally, declarations have an associated symbol, but when a declaration has an expando\n * initializer, the expando's symbol is the one that has all the members merged into it.\n */\n function getExpandoSymbol(symbol) {\n var decl = symbol.valueDeclaration;\n if (!decl || !ts.isInJSFile(decl) || symbol.flags & 524288 /* TypeAlias */ || ts.getExpandoInitializer(decl, /*isPrototypeAssignment*/ false)) {\n return undefined;\n }\n var init = ts.isVariableDeclaration(decl) ? ts.getDeclaredExpandoInitializer(decl) : ts.getAssignedExpandoInitializer(decl);\n if (init) {\n var initSymbol = getSymbolOfNode(init);\n if (initSymbol) {\n return mergeJSSymbols(initSymbol, symbol);\n }\n }\n }\n function resolveExternalModuleName(location, moduleReferenceExpression, ignoreErrors) {\n var isClassic = ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.Classic;\n var errorMessage = isClassic ?\n ts.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option\n : ts.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;\n return resolveExternalModuleNameWorker(location, moduleReferenceExpression, ignoreErrors ? undefined : errorMessage);\n }\n function resolveExternalModuleNameWorker(location, moduleReferenceExpression, moduleNotFoundError, isForAugmentation) {\n if (isForAugmentation === void 0) { isForAugmentation = false; }\n return ts.isStringLiteralLike(moduleReferenceExpression)\n ? resolveExternalModule(location, moduleReferenceExpression.text, moduleNotFoundError, moduleReferenceExpression, isForAugmentation)\n : undefined;\n }\n function resolveExternalModule(location, moduleReference, moduleNotFoundError, errorNode, isForAugmentation) {\n if (isForAugmentation === void 0) { isForAugmentation = false; }\n if (ts.startsWith(moduleReference, \"@types/\")) {\n var diag = ts.Diagnostics.Cannot_import_type_declaration_files_Consider_importing_0_instead_of_1;\n var withoutAtTypePrefix = ts.removePrefix(moduleReference, \"@types/\");\n error(errorNode, diag, withoutAtTypePrefix, moduleReference);\n }\n var ambientModule = tryFindAmbientModule(moduleReference, /*withAugmentations*/ true);\n if (ambientModule) {\n return ambientModule;\n }\n var currentSourceFile = ts.getSourceFileOfNode(location);\n var resolvedModule = ts.getResolvedModule(currentSourceFile, moduleReference); // TODO: GH#18217\n var resolutionDiagnostic = resolvedModule && ts.getResolutionDiagnostic(compilerOptions, resolvedModule);\n var sourceFile = resolvedModule && !resolutionDiagnostic && host.getSourceFile(resolvedModule.resolvedFileName);\n if (sourceFile) {\n if (sourceFile.symbol) {\n if (resolvedModule.isExternalLibraryImport && !ts.resolutionExtensionIsTSOrJson(resolvedModule.extension)) {\n errorOnImplicitAnyModule(/*isError*/ false, errorNode, resolvedModule, moduleReference);\n }\n // merged symbol is module declaration symbol combined with all augmentations\n return getMergedSymbol(sourceFile.symbol);\n }\n if (moduleNotFoundError) {\n // report errors only if it was requested\n error(errorNode, ts.Diagnostics.File_0_is_not_a_module, sourceFile.fileName);\n }\n return undefined;\n }\n if (patternAmbientModules) {\n var pattern = ts.findBestPatternMatch(patternAmbientModules, function (_) { return _.pattern; }, moduleReference);\n if (pattern) {\n // If the module reference matched a pattern ambient module ('*.foo') but there's also a\n // module augmentation by the specific name requested ('a.foo'), we store the merged symbol\n // by the augmentation name ('a.foo'), because asking for *.foo should not give you exports\n // from a.foo.\n var augmentation = patternAmbientModuleAugmentations && patternAmbientModuleAugmentations.get(moduleReference);\n if (augmentation) {\n return getMergedSymbol(augmentation);\n }\n return getMergedSymbol(pattern.symbol);\n }\n }\n // May be an untyped module. If so, ignore resolutionDiagnostic.\n if (resolvedModule && !ts.resolutionExtensionIsTSOrJson(resolvedModule.extension) && resolutionDiagnostic === undefined || resolutionDiagnostic === ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type) {\n if (isForAugmentation) {\n var diag = ts.Diagnostics.Invalid_module_name_in_augmentation_Module_0_resolves_to_an_untyped_module_at_1_which_cannot_be_augmented;\n error(errorNode, diag, moduleReference, resolvedModule.resolvedFileName);\n }\n else {\n errorOnImplicitAnyModule(/*isError*/ noImplicitAny && !!moduleNotFoundError, errorNode, resolvedModule, moduleReference);\n }\n // Failed imports and untyped modules are both treated in an untyped manner; only difference is whether we give a diagnostic first.\n return undefined;\n }\n if (moduleNotFoundError) {\n // See if this was possibly a projectReference redirect\n if (resolvedModule) {\n var redirect = host.getProjectReferenceRedirect(resolvedModule.resolvedFileName);\n if (redirect) {\n error(errorNode, ts.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, resolvedModule.resolvedFileName);\n return undefined;\n }\n }\n if (resolutionDiagnostic) {\n error(errorNode, resolutionDiagnostic, moduleReference, resolvedModule.resolvedFileName);\n }\n else {\n var tsExtension = ts.tryExtractTSExtension(moduleReference);\n if (tsExtension) {\n var diag = ts.Diagnostics.An_import_path_cannot_end_with_a_0_extension_Consider_importing_1_instead;\n var importSourceWithoutExtension = ts.removeExtension(moduleReference, tsExtension);\n var replacedImportSource = importSourceWithoutExtension;\n /**\n * Direct users to import source with .js extension if outputting an ES module.\n * @see https://github.com/microsoft/TypeScript/issues/42151\n */\n var moduleKind_1 = ts.getEmitModuleKind(compilerOptions);\n if (moduleKind_1 >= ts.ModuleKind.ES2015) {\n replacedImportSource += \".js\";\n }\n error(errorNode, diag, tsExtension, replacedImportSource);\n }\n else if (!compilerOptions.resolveJsonModule &&\n ts.fileExtensionIs(moduleReference, \".json\" /* Json */) &&\n ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.NodeJs &&\n ts.hasJsonModuleEmitEnabled(compilerOptions)) {\n error(errorNode, ts.Diagnostics.Cannot_find_module_0_Consider_using_resolveJsonModule_to_import_module_with_json_extension, moduleReference);\n }\n else {\n error(errorNode, moduleNotFoundError, moduleReference);\n }\n }\n }\n return undefined;\n }\n function errorOnImplicitAnyModule(isError, errorNode, _a, moduleReference) {\n var packageId = _a.packageId, resolvedFileName = _a.resolvedFileName;\n var errorInfo = !ts.isExternalModuleNameRelative(moduleReference) && packageId\n ? typesPackageExists(packageId.name)\n ? ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.If_the_0_package_actually_exposes_this_module_consider_sending_a_pull_request_to_amend_https_Colon_Slash_Slashgithub_com_SlashDefinitelyTyped_SlashDefinitelyTyped_Slashtree_Slashmaster_Slashtypes_Slash_1, packageId.name, ts.mangleScopedPackageName(packageId.name))\n : ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.Try_npm_i_save_dev_types_Slash_1_if_it_exists_or_add_a_new_declaration_d_ts_file_containing_declare_module_0, moduleReference, ts.mangleScopedPackageName(packageId.name))\n : undefined;\n errorOrSuggestion(isError, errorNode, ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type, moduleReference, resolvedFileName));\n }\n function typesPackageExists(packageName) {\n return getPackagesSet().has(ts.getTypesPackageName(packageName));\n }\n function resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias) {\n if (moduleSymbol === null || moduleSymbol === void 0 ? void 0 : moduleSymbol.exports) {\n var exportEquals = resolveSymbol(moduleSymbol.exports.get(\"export=\" /* ExportEquals */), dontResolveAlias);\n var exported = getCommonJsExportEquals(getMergedSymbol(exportEquals), getMergedSymbol(moduleSymbol));\n return getMergedSymbol(exported) || moduleSymbol;\n }\n return undefined;\n }\n function getCommonJsExportEquals(exported, moduleSymbol) {\n if (!exported || exported === unknownSymbol || exported === moduleSymbol || moduleSymbol.exports.size === 1 || exported.flags & 2097152 /* Alias */) {\n return exported;\n }\n var links = getSymbolLinks(exported);\n if (links.cjsExportMerged) {\n return links.cjsExportMerged;\n }\n var merged = exported.flags & 33554432 /* Transient */ ? exported : cloneSymbol(exported);\n merged.flags = merged.flags | 512 /* ValueModule */;\n if (merged.exports === undefined) {\n merged.exports = ts.createSymbolTable();\n }\n moduleSymbol.exports.forEach(function (s, name) {\n if (name === \"export=\" /* ExportEquals */)\n return;\n merged.exports.set(name, merged.exports.has(name) ? mergeSymbol(merged.exports.get(name), s) : s);\n });\n getSymbolLinks(merged).cjsExportMerged = merged;\n return links.cjsExportMerged = merged;\n }\n // An external module with an 'export =' declaration may be referenced as an ES6 module provided the 'export ='\n // references a symbol that is at least declared as a module or a variable. The target of the 'export =' may\n // combine other declarations with the module or variable (e.g. a class/module, function/module, interface/variable).\n function resolveESModuleSymbol(moduleSymbol, referencingLocation, dontResolveAlias, suppressInteropError) {\n var symbol = resolveExternalModuleSymbol(moduleSymbol, dontResolveAlias);\n if (!dontResolveAlias && symbol) {\n if (!suppressInteropError && !(symbol.flags & (1536 /* Module */ | 3 /* Variable */)) && !ts.getDeclarationOfKind(symbol, 300 /* SourceFile */)) {\n var compilerOptionName = moduleKind >= ts.ModuleKind.ES2015\n ? \"allowSyntheticDefaultImports\"\n : \"esModuleInterop\";\n error(referencingLocation, ts.Diagnostics.This_module_can_only_be_referenced_with_ECMAScript_imports_Slashexports_by_turning_on_the_0_flag_and_referencing_its_default_export, compilerOptionName);\n return symbol;\n }\n if (compilerOptions.esModuleInterop) {\n var referenceParent = referencingLocation.parent;\n if ((ts.isImportDeclaration(referenceParent) && ts.getNamespaceDeclarationNode(referenceParent)) ||\n ts.isImportCall(referenceParent)) {\n var type = getTypeOfSymbol(symbol);\n var sigs = getSignaturesOfStructuredType(type, 0 /* Call */);\n if (!sigs || !sigs.length) {\n sigs = getSignaturesOfStructuredType(type, 1 /* Construct */);\n }\n if (sigs && sigs.length) {\n var moduleType = getTypeWithSyntheticDefaultImportType(type, symbol, moduleSymbol);\n // Create a new symbol which has the module's type less the call and construct signatures\n var result = createSymbol(symbol.flags, symbol.escapedName);\n result.declarations = symbol.declarations ? symbol.declarations.slice() : [];\n result.parent = symbol.parent;\n result.target = symbol;\n result.originatingImport = referenceParent;\n if (symbol.valueDeclaration)\n result.valueDeclaration = symbol.valueDeclaration;\n if (symbol.constEnumOnlyModule)\n result.constEnumOnlyModule = true;\n if (symbol.members)\n result.members = new ts.Map(symbol.members);\n if (symbol.exports)\n result.exports = new ts.Map(symbol.exports);\n var resolvedModuleType = resolveStructuredTypeMembers(moduleType); // Should already be resolved from the signature checks above\n result.type = createAnonymousType(result, resolvedModuleType.members, ts.emptyArray, ts.emptyArray, resolvedModuleType.indexInfos);\n return result;\n }\n }\n }\n }\n return symbol;\n }\n function hasExportAssignmentSymbol(moduleSymbol) {\n return moduleSymbol.exports.get(\"export=\" /* ExportEquals */) !== undefined;\n }\n function getExportsOfModuleAsArray(moduleSymbol) {\n return symbolsToArray(getExportsOfModule(moduleSymbol));\n }\n function getExportsAndPropertiesOfModule(moduleSymbol) {\n var exports = getExportsOfModuleAsArray(moduleSymbol);\n var exportEquals = resolveExternalModuleSymbol(moduleSymbol);\n if (exportEquals !== moduleSymbol) {\n var type = getTypeOfSymbol(exportEquals);\n if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {\n ts.addRange(exports, getPropertiesOfType(type));\n }\n }\n return exports;\n }\n function forEachExportAndPropertyOfModule(moduleSymbol, cb) {\n var exports = getExportsOfModule(moduleSymbol);\n exports.forEach(function (symbol, key) {\n if (!isReservedMemberName(key)) {\n cb(symbol, key);\n }\n });\n var exportEquals = resolveExternalModuleSymbol(moduleSymbol);\n if (exportEquals !== moduleSymbol) {\n var type = getTypeOfSymbol(exportEquals);\n if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {\n getPropertiesOfType(type).forEach(function (symbol) {\n cb(symbol, symbol.escapedName);\n });\n }\n }\n }\n function tryGetMemberInModuleExports(memberName, moduleSymbol) {\n var symbolTable = getExportsOfModule(moduleSymbol);\n if (symbolTable) {\n return symbolTable.get(memberName);\n }\n }\n function tryGetMemberInModuleExportsAndProperties(memberName, moduleSymbol) {\n var symbol = tryGetMemberInModuleExports(memberName, moduleSymbol);\n if (symbol) {\n return symbol;\n }\n var exportEquals = resolveExternalModuleSymbol(moduleSymbol);\n if (exportEquals === moduleSymbol) {\n return undefined;\n }\n var type = getTypeOfSymbol(exportEquals);\n return shouldTreatPropertiesOfExternalModuleAsExports(type) ? getPropertyOfType(type, memberName) : undefined;\n }\n function shouldTreatPropertiesOfExternalModuleAsExports(resolvedExternalModuleType) {\n return !(resolvedExternalModuleType.flags & 131068 /* Primitive */ ||\n ts.getObjectFlags(resolvedExternalModuleType) & 1 /* Class */ ||\n // `isArrayOrTupleLikeType` is too expensive to use in this auto-imports hot path\n isArrayType(resolvedExternalModuleType) ||\n isTupleType(resolvedExternalModuleType));\n }\n function getExportsOfSymbol(symbol) {\n return symbol.flags & 6256 /* LateBindingContainer */ ? getResolvedMembersOrExportsOfSymbol(symbol, \"resolvedExports\" /* resolvedExports */) :\n symbol.flags & 1536 /* Module */ ? getExportsOfModule(symbol) :\n symbol.exports || emptySymbols;\n }\n function getExportsOfModule(moduleSymbol) {\n var links = getSymbolLinks(moduleSymbol);\n return links.resolvedExports || (links.resolvedExports = getExportsOfModuleWorker(moduleSymbol));\n }\n /**\n * Extends one symbol table with another while collecting information on name collisions for error message generation into the `lookupTable` argument\n * Not passing `lookupTable` and `exportNode` disables this collection, and just extends the tables\n */\n function extendExportSymbols(target, source, lookupTable, exportNode) {\n if (!source)\n return;\n source.forEach(function (sourceSymbol, id) {\n if (id === \"default\" /* Default */)\n return;\n var targetSymbol = target.get(id);\n if (!targetSymbol) {\n target.set(id, sourceSymbol);\n if (lookupTable && exportNode) {\n lookupTable.set(id, {\n specifierText: ts.getTextOfNode(exportNode.moduleSpecifier)\n });\n }\n }\n else if (lookupTable && exportNode && targetSymbol && resolveSymbol(targetSymbol) !== resolveSymbol(sourceSymbol)) {\n var collisionTracker = lookupTable.get(id);\n if (!collisionTracker.exportsWithDuplicate) {\n collisionTracker.exportsWithDuplicate = [exportNode];\n }\n else {\n collisionTracker.exportsWithDuplicate.push(exportNode);\n }\n }\n });\n }\n function getExportsOfModuleWorker(moduleSymbol) {\n var visitedSymbols = [];\n // A module defined by an 'export=' consists of one export that needs to be resolved\n moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);\n return visit(moduleSymbol) || emptySymbols;\n // The ES6 spec permits export * declarations in a module to circularly reference the module itself. For example,\n // module 'a' can 'export * from \"b\"' and 'b' can 'export * from \"a\"' without error.\n function visit(symbol) {\n if (!(symbol && symbol.exports && ts.pushIfUnique(visitedSymbols, symbol))) {\n return;\n }\n var symbols = new ts.Map(symbol.exports);\n // All export * declarations are collected in an __export symbol by the binder\n var exportStars = symbol.exports.get(\"__export\" /* ExportStar */);\n if (exportStars) {\n var nestedSymbols = ts.createSymbolTable();\n var lookupTable_1 = new ts.Map();\n if (exportStars.declarations) {\n for (var _i = 0, _a = exportStars.declarations; _i < _a.length; _i++) {\n var node = _a[_i];\n var resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);\n var exportedSymbols = visit(resolvedModule);\n extendExportSymbols(nestedSymbols, exportedSymbols, lookupTable_1, node);\n }\n }\n lookupTable_1.forEach(function (_a, id) {\n var exportsWithDuplicate = _a.exportsWithDuplicate;\n // It's not an error if the file with multiple `export *`s with duplicate names exports a member with that name itself\n if (id === \"export=\" || !(exportsWithDuplicate && exportsWithDuplicate.length) || symbols.has(id)) {\n return;\n }\n for (var _i = 0, exportsWithDuplicate_1 = exportsWithDuplicate; _i < exportsWithDuplicate_1.length; _i++) {\n var node = exportsWithDuplicate_1[_i];\n diagnostics.add(ts.createDiagnosticForNode(node, ts.Diagnostics.Module_0_has_already_exported_a_member_named_1_Consider_explicitly_re_exporting_to_resolve_the_ambiguity, lookupTable_1.get(id).specifierText, ts.unescapeLeadingUnderscores(id)));\n }\n });\n extendExportSymbols(symbols, nestedSymbols);\n }\n return symbols;\n }\n }\n function getMergedSymbol(symbol) {\n var merged;\n return symbol && symbol.mergeId && (merged = mergedSymbols[symbol.mergeId]) ? merged : symbol;\n }\n function getSymbolOfNode(node) {\n return getMergedSymbol(node.symbol && getLateBoundSymbol(node.symbol));\n }\n function getParentOfSymbol(symbol) {\n return getMergedSymbol(symbol.parent && getLateBoundSymbol(symbol.parent));\n }\n function getAlternativeContainingModules(symbol, enclosingDeclaration) {\n var containingFile = ts.getSourceFileOfNode(enclosingDeclaration);\n var id = getNodeId(containingFile);\n var links = getSymbolLinks(symbol);\n var results;\n if (links.extendedContainersByFile && (results = links.extendedContainersByFile.get(id))) {\n return results;\n }\n if (containingFile && containingFile.imports) {\n // Try to make an import using an import already in the enclosing file, if possible\n for (var _i = 0, _a = containingFile.imports; _i < _a.length; _i++) {\n var importRef = _a[_i];\n if (ts.nodeIsSynthesized(importRef))\n continue; // Synthetic names can't be resolved by `resolveExternalModuleName` - they'll cause a debug assert if they error\n var resolvedModule = resolveExternalModuleName(enclosingDeclaration, importRef, /*ignoreErrors*/ true);\n if (!resolvedModule)\n continue;\n var ref = getAliasForSymbolInContainer(resolvedModule, symbol);\n if (!ref)\n continue;\n results = ts.append(results, resolvedModule);\n }\n if (ts.length(results)) {\n (links.extendedContainersByFile || (links.extendedContainersByFile = new ts.Map())).set(id, results);\n return results;\n }\n }\n if (links.extendedContainers) {\n return links.extendedContainers;\n }\n // No results from files already being imported by this file - expand search (expensive, but not location-specific, so cached)\n var otherFiles = host.getSourceFiles();\n for (var _b = 0, otherFiles_1 = otherFiles; _b < otherFiles_1.length; _b++) {\n var file = otherFiles_1[_b];\n if (!ts.isExternalModule(file))\n continue;\n var sym = getSymbolOfNode(file);\n var ref = getAliasForSymbolInContainer(sym, symbol);\n if (!ref)\n continue;\n results = ts.append(results, sym);\n }\n return links.extendedContainers = results || ts.emptyArray;\n }\n /**\n * Attempts to find the symbol corresponding to the container a symbol is in - usually this\n * is just its' `.parent`, but for locals, this value is `undefined`\n */\n function getContainersOfSymbol(symbol, enclosingDeclaration, meaning) {\n var container = getParentOfSymbol(symbol);\n // Type parameters end up in the `members` lists but are not externally visible\n if (container && !(symbol.flags & 262144 /* TypeParameter */)) {\n var additionalContainers = ts.mapDefined(container.declarations, fileSymbolIfFileSymbolExportEqualsContainer);\n var reexportContainers = enclosingDeclaration && getAlternativeContainingModules(symbol, enclosingDeclaration);\n var objectLiteralContainer = getVariableDeclarationOfObjectLiteral(container, meaning);\n if (enclosingDeclaration &&\n container.flags & getQualifiedLeftMeaning(meaning) &&\n getAccessibleSymbolChain(container, enclosingDeclaration, 1920 /* Namespace */, /*externalOnly*/ false)) {\n return ts.append(ts.concatenate(ts.concatenate([container], additionalContainers), reexportContainers), objectLiteralContainer); // This order expresses a preference for the real container if it is in scope\n }\n // we potentially have a symbol which is a member of the instance side of something - look for a variable in scope with the container's type\n // which may be acting like a namespace (eg, `Symbol` acts like a namespace when looking up `Symbol.toStringTag`)\n var firstVariableMatch = !(container.flags & getQualifiedLeftMeaning(meaning))\n && container.flags & 788968 /* Type */\n && getDeclaredTypeOfSymbol(container).flags & 524288 /* Object */\n && meaning === 111551 /* Value */\n ? forEachSymbolTableInScope(enclosingDeclaration, function (t) {\n return ts.forEachEntry(t, function (s) {\n if (s.flags & getQualifiedLeftMeaning(meaning) && getTypeOfSymbol(s) === getDeclaredTypeOfSymbol(container)) {\n return s;\n }\n });\n }) : undefined;\n var res = firstVariableMatch ? __spreadArray(__spreadArray([firstVariableMatch], additionalContainers, true), [container], false) : __spreadArray(__spreadArray([], additionalContainers, true), [container], false);\n res = ts.append(res, objectLiteralContainer);\n res = ts.addRange(res, reexportContainers);\n return res;\n }\n var candidates = ts.mapDefined(symbol.declarations, function (d) {\n if (!ts.isAmbientModule(d) && d.parent && hasNonGlobalAugmentationExternalModuleSymbol(d.parent)) {\n return getSymbolOfNode(d.parent);\n }\n if (ts.isClassExpression(d) && ts.isBinaryExpression(d.parent) && d.parent.operatorToken.kind === 63 /* EqualsToken */ && ts.isAccessExpression(d.parent.left) && ts.isEntityNameExpression(d.parent.left.expression)) {\n if (ts.isModuleExportsAccessExpression(d.parent.left) || ts.isExportsIdentifier(d.parent.left.expression)) {\n return getSymbolOfNode(ts.getSourceFileOfNode(d));\n }\n checkExpressionCached(d.parent.left.expression);\n return getNodeLinks(d.parent.left.expression).resolvedSymbol;\n }\n });\n if (!ts.length(candidates)) {\n return undefined;\n }\n return ts.mapDefined(candidates, function (candidate) { return getAliasForSymbolInContainer(candidate, symbol) ? candidate : undefined; });\n function fileSymbolIfFileSymbolExportEqualsContainer(d) {\n return container && getFileSymbolIfFileSymbolExportEqualsContainer(d, container);\n }\n }\n function getVariableDeclarationOfObjectLiteral(symbol, meaning) {\n // If we're trying to reference some object literal in, eg `var a = { x: 1 }`, the symbol for the literal, `__object`, is distinct\n // from the symbol of the declaration it is being assigned to. Since we can use the declaration to refer to the literal, however,\n // we'd like to make that connection here - potentially causing us to paint the declaration's visibility, and therefore the literal.\n var firstDecl = !!ts.length(symbol.declarations) && ts.first(symbol.declarations);\n if (meaning & 111551 /* Value */ && firstDecl && firstDecl.parent && ts.isVariableDeclaration(firstDecl.parent)) {\n if (ts.isObjectLiteralExpression(firstDecl) && firstDecl === firstDecl.parent.initializer || ts.isTypeLiteralNode(firstDecl) && firstDecl === firstDecl.parent.type) {\n return getSymbolOfNode(firstDecl.parent);\n }\n }\n }\n function getFileSymbolIfFileSymbolExportEqualsContainer(d, container) {\n var fileSymbol = getExternalModuleContainer(d);\n var exported = fileSymbol && fileSymbol.exports && fileSymbol.exports.get(\"export=\" /* ExportEquals */);\n return exported && getSymbolIfSameReference(exported, container) ? fileSymbol : undefined;\n }\n function getAliasForSymbolInContainer(container, symbol) {\n if (container === getParentOfSymbol(symbol)) {\n // fast path, `symbol` is either already the alias or isn't aliased\n return symbol;\n }\n // Check if container is a thing with an `export=` which points directly at `symbol`, and if so, return\n // the container itself as the alias for the symbol\n var exportEquals = container.exports && container.exports.get(\"export=\" /* ExportEquals */);\n if (exportEquals && getSymbolIfSameReference(exportEquals, symbol)) {\n return container;\n }\n var exports = getExportsOfSymbol(container);\n var quick = exports.get(symbol.escapedName);\n if (quick && getSymbolIfSameReference(quick, symbol)) {\n return quick;\n }\n return ts.forEachEntry(exports, function (exported) {\n if (getSymbolIfSameReference(exported, symbol)) {\n return exported;\n }\n });\n }\n /**\n * Checks if two symbols, through aliasing and/or merging, refer to the same thing\n */\n function getSymbolIfSameReference(s1, s2) {\n if (getMergedSymbol(resolveSymbol(getMergedSymbol(s1))) === getMergedSymbol(resolveSymbol(getMergedSymbol(s2)))) {\n return s1;\n }\n }\n function getExportSymbolOfValueSymbolIfExported(symbol) {\n return getMergedSymbol(symbol && (symbol.flags & 1048576 /* ExportValue */) !== 0 ? symbol.exportSymbol : symbol);\n }\n function symbolIsValue(symbol) {\n return !!(symbol.flags & 111551 /* Value */ || symbol.flags & 2097152 /* Alias */ && resolveAlias(symbol).flags & 111551 /* Value */ && !getTypeOnlyAliasDeclaration(symbol));\n }\n function findConstructorDeclaration(node) {\n var members = node.members;\n for (var _i = 0, members_3 = members; _i < members_3.length; _i++) {\n var member = members_3[_i];\n if (member.kind === 169 /* Constructor */ && ts.nodeIsPresent(member.body)) {\n return member;\n }\n }\n }\n function createType(flags) {\n var result = new Type(checker, flags);\n typeCount++;\n result.id = typeCount;\n if (produceDiagnostics) { // Only record types from one checker\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.recordType(result);\n }\n return result;\n }\n function createOriginType(flags) {\n return new Type(checker, flags);\n }\n function createIntrinsicType(kind, intrinsicName, objectFlags) {\n if (objectFlags === void 0) { objectFlags = 0; }\n var type = createType(kind);\n type.intrinsicName = intrinsicName;\n type.objectFlags = objectFlags;\n return type;\n }\n function createObjectType(objectFlags, symbol) {\n var type = createType(524288 /* Object */);\n type.objectFlags = objectFlags;\n type.symbol = symbol;\n type.members = undefined;\n type.properties = undefined;\n type.callSignatures = undefined;\n type.constructSignatures = undefined;\n type.indexInfos = undefined;\n return type;\n }\n function createTypeofType() {\n return getUnionType(ts.arrayFrom(typeofEQFacts.keys(), getStringLiteralType));\n }\n function createTypeParameter(symbol) {\n var type = createType(262144 /* TypeParameter */);\n if (symbol)\n type.symbol = symbol;\n return type;\n }\n // A reserved member name starts with two underscores, but the third character cannot be an underscore,\n // @, or #. A third underscore indicates an escaped form of an identifier that started\n // with at least two underscores. The @ character indicates that the name is denoted by a well known ES\n // Symbol instance and the # character indicates that the name is a PrivateIdentifier.\n function isReservedMemberName(name) {\n return name.charCodeAt(0) === 95 /* _ */ &&\n name.charCodeAt(1) === 95 /* _ */ &&\n name.charCodeAt(2) !== 95 /* _ */ &&\n name.charCodeAt(2) !== 64 /* at */ &&\n name.charCodeAt(2) !== 35 /* hash */;\n }\n function getNamedMembers(members) {\n var result;\n members.forEach(function (symbol, id) {\n if (!isReservedMemberName(id) && symbolIsValue(symbol)) {\n (result || (result = [])).push(symbol);\n }\n });\n return result || ts.emptyArray;\n }\n function getNamedOrIndexSignatureMembers(members) {\n var result = getNamedMembers(members);\n var index = getIndexSymbolFromSymbolTable(members);\n return index ? ts.concatenate(result, [index]) : result;\n }\n function setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos) {\n var resolved = type;\n resolved.members = members;\n resolved.properties = ts.emptyArray;\n resolved.callSignatures = callSignatures;\n resolved.constructSignatures = constructSignatures;\n resolved.indexInfos = indexInfos;\n // This can loop back to getPropertyOfType() which would crash if `callSignatures` & `constructSignatures` are not initialized.\n if (members !== emptySymbols)\n resolved.properties = getNamedMembers(members);\n return resolved;\n }\n function createAnonymousType(symbol, members, callSignatures, constructSignatures, indexInfos) {\n return setStructuredTypeMembers(createObjectType(16 /* Anonymous */, symbol), members, callSignatures, constructSignatures, indexInfos);\n }\n function getResolvedTypeWithoutAbstractConstructSignatures(type) {\n if (type.constructSignatures.length === 0)\n return type;\n if (type.objectTypeWithoutAbstractConstructSignatures)\n return type.objectTypeWithoutAbstractConstructSignatures;\n var constructSignatures = ts.filter(type.constructSignatures, function (signature) { return !(signature.flags & 4 /* Abstract */); });\n if (type.constructSignatures === constructSignatures)\n return type;\n var typeCopy = createAnonymousType(type.symbol, type.members, type.callSignatures, ts.some(constructSignatures) ? constructSignatures : ts.emptyArray, type.indexInfos);\n type.objectTypeWithoutAbstractConstructSignatures = typeCopy;\n typeCopy.objectTypeWithoutAbstractConstructSignatures = typeCopy;\n return typeCopy;\n }\n function forEachSymbolTableInScope(enclosingDeclaration, callback) {\n var result;\n var _loop_8 = function (location) {\n // Locals of a source file are not in scope (because they get merged into the global symbol table)\n if (location.locals && !isGlobalSourceFile(location)) {\n if (result = callback(location.locals, /*ignoreQualification*/ undefined, /*isLocalNameLookup*/ true, location)) {\n return { value: result };\n }\n }\n switch (location.kind) {\n case 300 /* SourceFile */:\n if (!ts.isExternalOrCommonJsModule(location)) {\n break;\n }\n // falls through\n case 259 /* ModuleDeclaration */:\n var sym = getSymbolOfNode(location);\n // `sym` may not have exports if this module declaration is backed by the symbol for a `const` that's being rewritten\n // into a namespace - in such cases, it's best to just let the namespace appear empty (the const members couldn't have referred\n // to one another anyway)\n if (result = callback((sym === null || sym === void 0 ? void 0 : sym.exports) || emptySymbols, /*ignoreQualification*/ undefined, /*isLocalNameLookup*/ true, location)) {\n return { value: result };\n }\n break;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n // Type parameters are bound into `members` lists so they can merge across declarations\n // This is troublesome, since in all other respects, they behave like locals :cries:\n // TODO: the below is shared with similar code in `resolveName` - in fact, rephrasing all this symbol\n // lookup logic in terms of `resolveName` would be nice\n // The below is used to lookup type parameters within a class or interface, as they are added to the class/interface locals\n // These can never be latebound, so the symbol's raw members are sufficient. `getMembersOfNode` cannot be used, as it would\n // trigger resolving late-bound names, which we may already be in the process of doing while we're here!\n var table_1;\n // TODO: Should this filtered table be cached in some way?\n (getSymbolOfNode(location).members || emptySymbols).forEach(function (memberSymbol, key) {\n if (memberSymbol.flags & (788968 /* Type */ & ~67108864 /* Assignment */)) {\n (table_1 || (table_1 = ts.createSymbolTable())).set(key, memberSymbol);\n }\n });\n if (table_1 && (result = callback(table_1, /*ignoreQualification*/ undefined, /*isLocalNameLookup*/ false, location))) {\n return { value: result };\n }\n break;\n }\n };\n for (var location = enclosingDeclaration; location; location = location.parent) {\n var state_2 = _loop_8(location);\n if (typeof state_2 === \"object\")\n return state_2.value;\n }\n return callback(globals, /*ignoreQualification*/ undefined, /*isLocalNameLookup*/ true);\n }\n function getQualifiedLeftMeaning(rightMeaning) {\n // If we are looking in value space, the parent meaning is value, other wise it is namespace\n return rightMeaning === 111551 /* Value */ ? 111551 /* Value */ : 1920 /* Namespace */;\n }\n function getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, useOnlyExternalAliasing, visitedSymbolTablesMap) {\n if (visitedSymbolTablesMap === void 0) { visitedSymbolTablesMap = new ts.Map(); }\n if (!(symbol && !isPropertyOrMethodDeclarationSymbol(symbol))) {\n return undefined;\n }\n var links = getSymbolLinks(symbol);\n var cache = (links.accessibleChainCache || (links.accessibleChainCache = new ts.Map()));\n // Go from enclosingDeclaration to the first scope we check, so the cache is keyed off the scope and thus shared more\n var firstRelevantLocation = forEachSymbolTableInScope(enclosingDeclaration, function (_, __, ___, node) { return node; });\n var key = (useOnlyExternalAliasing ? 0 : 1) + \"|\" + (firstRelevantLocation && getNodeId(firstRelevantLocation)) + \"|\" + meaning;\n if (cache.has(key)) {\n return cache.get(key);\n }\n var id = getSymbolId(symbol);\n var visitedSymbolTables = visitedSymbolTablesMap.get(id);\n if (!visitedSymbolTables) {\n visitedSymbolTablesMap.set(id, visitedSymbolTables = []);\n }\n var result = forEachSymbolTableInScope(enclosingDeclaration, getAccessibleSymbolChainFromSymbolTable);\n cache.set(key, result);\n return result;\n /**\n * @param {ignoreQualification} boolean Set when a symbol is being looked for through the exports of another symbol (meaning we have a route to qualify it already)\n */\n function getAccessibleSymbolChainFromSymbolTable(symbols, ignoreQualification, isLocalNameLookup) {\n if (!ts.pushIfUnique(visitedSymbolTables, symbols)) {\n return undefined;\n }\n var result = trySymbolTable(symbols, ignoreQualification, isLocalNameLookup);\n visitedSymbolTables.pop();\n return result;\n }\n function canQualifySymbol(symbolFromSymbolTable, meaning) {\n // If the symbol is equivalent and doesn't need further qualification, this symbol is accessible\n return !needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning) ||\n // If symbol needs qualification, make sure that parent is accessible, if it is then this symbol is accessible too\n !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning), useOnlyExternalAliasing, visitedSymbolTablesMap);\n }\n function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol, ignoreQualification) {\n return (symbol === (resolvedAliasSymbol || symbolFromSymbolTable) || getMergedSymbol(symbol) === getMergedSymbol(resolvedAliasSymbol || symbolFromSymbolTable)) &&\n // if the symbolFromSymbolTable is not external module (it could be if it was determined as ambient external module and would be in globals table)\n // and if symbolFromSymbolTable or alias resolution matches the symbol,\n // check the symbol can be qualified, it is only then this symbol is accessible\n !ts.some(symbolFromSymbolTable.declarations, hasNonGlobalAugmentationExternalModuleSymbol) &&\n (ignoreQualification || canQualifySymbol(getMergedSymbol(symbolFromSymbolTable), meaning));\n }\n function trySymbolTable(symbols, ignoreQualification, isLocalNameLookup) {\n // If symbol is directly available by its name in the symbol table\n if (isAccessible(symbols.get(symbol.escapedName), /*resolvedAliasSymbol*/ undefined, ignoreQualification)) {\n return [symbol];\n }\n // Check if symbol is any of the aliases in scope\n var result = ts.forEachEntry(symbols, function (symbolFromSymbolTable) {\n if (symbolFromSymbolTable.flags & 2097152 /* Alias */\n && symbolFromSymbolTable.escapedName !== \"export=\" /* ExportEquals */\n && symbolFromSymbolTable.escapedName !== \"default\" /* Default */\n && !(ts.isUMDExportSymbol(symbolFromSymbolTable) && enclosingDeclaration && ts.isExternalModule(ts.getSourceFileOfNode(enclosingDeclaration)))\n // If `!useOnlyExternalAliasing`, we can use any type of alias to get the name\n && (!useOnlyExternalAliasing || ts.some(symbolFromSymbolTable.declarations, ts.isExternalModuleImportEqualsDeclaration))\n // If we're looking up a local name to reference directly, omit namespace reexports, otherwise when we're trawling through an export list to make a dotted name, we can keep it\n && (isLocalNameLookup ? !ts.some(symbolFromSymbolTable.declarations, ts.isNamespaceReexportDeclaration) : true)\n // While exports are generally considered to be in scope, export-specifier declared symbols are _not_\n // See similar comment in `resolveName` for details\n && (ignoreQualification || !ts.getDeclarationOfKind(symbolFromSymbolTable, 273 /* ExportSpecifier */))) {\n var resolvedImportedSymbol = resolveAlias(symbolFromSymbolTable);\n var candidate = getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification);\n if (candidate) {\n return candidate;\n }\n }\n if (symbolFromSymbolTable.escapedName === symbol.escapedName && symbolFromSymbolTable.exportSymbol) {\n if (isAccessible(getMergedSymbol(symbolFromSymbolTable.exportSymbol), /*aliasSymbol*/ undefined, ignoreQualification)) {\n return [symbol];\n }\n }\n });\n // If there's no result and we're looking at the global symbol table, treat `globalThis` like an alias and try to lookup thru that\n return result || (symbols === globals ? getCandidateListForSymbol(globalThisSymbol, globalThisSymbol, ignoreQualification) : undefined);\n }\n function getCandidateListForSymbol(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification) {\n if (isAccessible(symbolFromSymbolTable, resolvedImportedSymbol, ignoreQualification)) {\n return [symbolFromSymbolTable];\n }\n // Look in the exported members, if we can find accessibleSymbolChain, symbol is accessible using this chain\n // but only if the symbolFromSymbolTable can be qualified\n var candidateTable = getExportsOfSymbol(resolvedImportedSymbol);\n var accessibleSymbolsFromExports = candidateTable && getAccessibleSymbolChainFromSymbolTable(candidateTable, /*ignoreQualification*/ true);\n if (accessibleSymbolsFromExports && canQualifySymbol(symbolFromSymbolTable, getQualifiedLeftMeaning(meaning))) {\n return [symbolFromSymbolTable].concat(accessibleSymbolsFromExports);\n }\n }\n }\n function needsQualification(symbol, enclosingDeclaration, meaning) {\n var qualify = false;\n forEachSymbolTableInScope(enclosingDeclaration, function (symbolTable) {\n // If symbol of this name is not available in the symbol table we are ok\n var symbolFromSymbolTable = getMergedSymbol(symbolTable.get(symbol.escapedName));\n if (!symbolFromSymbolTable) {\n // Continue to the next symbol table\n return false;\n }\n // If the symbol with this name is present it should refer to the symbol\n if (symbolFromSymbolTable === symbol) {\n // No need to qualify\n return true;\n }\n // Qualify if the symbol from symbol table has same meaning as expected\n symbolFromSymbolTable = (symbolFromSymbolTable.flags & 2097152 /* Alias */ && !ts.getDeclarationOfKind(symbolFromSymbolTable, 273 /* ExportSpecifier */)) ? resolveAlias(symbolFromSymbolTable) : symbolFromSymbolTable;\n if (symbolFromSymbolTable.flags & meaning) {\n qualify = true;\n return true;\n }\n // Continue to the next symbol table\n return false;\n });\n return qualify;\n }\n function isPropertyOrMethodDeclarationSymbol(symbol) {\n if (symbol.declarations && symbol.declarations.length) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n switch (declaration.kind) {\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n continue;\n default:\n return false;\n }\n }\n return true;\n }\n return false;\n }\n function isTypeSymbolAccessible(typeSymbol, enclosingDeclaration) {\n var access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 788968 /* Type */, /*shouldComputeAliasesToMakeVisible*/ false, /*allowModules*/ true);\n return access.accessibility === 0 /* Accessible */;\n }\n function isValueSymbolAccessible(typeSymbol, enclosingDeclaration) {\n var access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 111551 /* Value */, /*shouldComputeAliasesToMakeVisible*/ false, /*allowModules*/ true);\n return access.accessibility === 0 /* Accessible */;\n }\n function isSymbolAccessibleByFlags(typeSymbol, enclosingDeclaration, flags) {\n var access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, flags, /*shouldComputeAliasesToMakeVisible*/ false, /*allowModules*/ false);\n return access.accessibility === 0 /* Accessible */;\n }\n function isAnySymbolAccessible(symbols, enclosingDeclaration, initialSymbol, meaning, shouldComputeAliasesToMakeVisible, allowModules) {\n if (!ts.length(symbols))\n return;\n var hadAccessibleChain;\n var earlyModuleBail = false;\n for (var _i = 0, _a = symbols; _i < _a.length; _i++) {\n var symbol = _a[_i];\n // Symbol is accessible if it by itself is accessible\n var accessibleSymbolChain = getAccessibleSymbolChain(symbol, enclosingDeclaration, meaning, /*useOnlyExternalAliasing*/ false);\n if (accessibleSymbolChain) {\n hadAccessibleChain = symbol;\n var hasAccessibleDeclarations = hasVisibleDeclarations(accessibleSymbolChain[0], shouldComputeAliasesToMakeVisible);\n if (hasAccessibleDeclarations) {\n return hasAccessibleDeclarations;\n }\n }\n if (allowModules) {\n if (ts.some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n if (shouldComputeAliasesToMakeVisible) {\n earlyModuleBail = true;\n // Generally speaking, we want to use the aliases that already exist to refer to a module, if present\n // In order to do so, we need to find those aliases in order to retain them in declaration emit; so\n // if we are in declaration emit, we cannot use the fast path for module visibility until we've exhausted\n // all other visibility options (in order to capture the possible aliases used to reference the module)\n continue;\n }\n // Any meaning of a module symbol is always accessible via an `import` type\n return {\n accessibility: 0 /* Accessible */\n };\n }\n }\n // If we haven't got the accessible symbol, it doesn't mean the symbol is actually inaccessible.\n // It could be a qualified symbol and hence verify the path\n // e.g.:\n // module m {\n // export class c {\n // }\n // }\n // const x: typeof m.c\n // In the above example when we start with checking if typeof m.c symbol is accessible,\n // we are going to see if c can be accessed in scope directly.\n // But it can't, hence the accessible is going to be undefined, but that doesn't mean m.c is inaccessible\n // It is accessible if the parent m is accessible because then m.c can be accessed through qualification\n var containers = getContainersOfSymbol(symbol, enclosingDeclaration, meaning);\n var parentResult = isAnySymbolAccessible(containers, enclosingDeclaration, initialSymbol, initialSymbol === symbol ? getQualifiedLeftMeaning(meaning) : meaning, shouldComputeAliasesToMakeVisible, allowModules);\n if (parentResult) {\n return parentResult;\n }\n }\n if (earlyModuleBail) {\n return {\n accessibility: 0 /* Accessible */\n };\n }\n if (hadAccessibleChain) {\n return {\n accessibility: 1 /* NotAccessible */,\n errorSymbolName: symbolToString(initialSymbol, enclosingDeclaration, meaning),\n errorModuleName: hadAccessibleChain !== initialSymbol ? symbolToString(hadAccessibleChain, enclosingDeclaration, 1920 /* Namespace */) : undefined,\n };\n }\n }\n /**\n * Check if the given symbol in given enclosing declaration is accessible and mark all associated alias to be visible if requested\n *\n * @param symbol a Symbol to check if accessible\n * @param enclosingDeclaration a Node containing reference to the symbol\n * @param meaning a SymbolFlags to check if such meaning of the symbol is accessible\n * @param shouldComputeAliasToMakeVisible a boolean value to indicate whether to return aliases to be mark visible in case the symbol is accessible\n */\n function isSymbolAccessible(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible) {\n return isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, /*allowModules*/ true);\n }\n function isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, allowModules) {\n if (symbol && enclosingDeclaration) {\n var result = isAnySymbolAccessible([symbol], enclosingDeclaration, symbol, meaning, shouldComputeAliasesToMakeVisible, allowModules);\n if (result) {\n return result;\n }\n // This could be a symbol that is not exported in the external module\n // or it could be a symbol from different external module that is not aliased and hence cannot be named\n var symbolExternalModule = ts.forEach(symbol.declarations, getExternalModuleContainer);\n if (symbolExternalModule) {\n var enclosingExternalModule = getExternalModuleContainer(enclosingDeclaration);\n if (symbolExternalModule !== enclosingExternalModule) {\n // name from different external module that is not visible\n return {\n accessibility: 2 /* CannotBeNamed */,\n errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning),\n errorModuleName: symbolToString(symbolExternalModule),\n errorNode: ts.isInJSFile(enclosingDeclaration) ? enclosingDeclaration : undefined,\n };\n }\n }\n // Just a local name that is not accessible\n return {\n accessibility: 1 /* NotAccessible */,\n errorSymbolName: symbolToString(symbol, enclosingDeclaration, meaning),\n };\n }\n return { accessibility: 0 /* Accessible */ };\n }\n function getExternalModuleContainer(declaration) {\n var node = ts.findAncestor(declaration, hasExternalModuleSymbol);\n return node && getSymbolOfNode(node);\n }\n function hasExternalModuleSymbol(declaration) {\n return ts.isAmbientModule(declaration) || (declaration.kind === 300 /* SourceFile */ && ts.isExternalOrCommonJsModule(declaration));\n }\n function hasNonGlobalAugmentationExternalModuleSymbol(declaration) {\n return ts.isModuleWithStringLiteralName(declaration) || (declaration.kind === 300 /* SourceFile */ && ts.isExternalOrCommonJsModule(declaration));\n }\n function hasVisibleDeclarations(symbol, shouldComputeAliasToMakeVisible) {\n var aliasesToMakeVisible;\n if (!ts.every(ts.filter(symbol.declarations, function (d) { return d.kind !== 79 /* Identifier */; }), getIsDeclarationVisible)) {\n return undefined;\n }\n return { accessibility: 0 /* Accessible */, aliasesToMakeVisible: aliasesToMakeVisible };\n function getIsDeclarationVisible(declaration) {\n var _a, _b;\n if (!isDeclarationVisible(declaration)) {\n // Mark the unexported alias as visible if its parent is visible\n // because these kind of aliases can be used to name types in declaration file\n var anyImportSyntax = getAnyImportSyntax(declaration);\n if (anyImportSyntax &&\n !ts.hasSyntacticModifier(anyImportSyntax, 1 /* Export */) && // import clause without export\n isDeclarationVisible(anyImportSyntax.parent)) {\n return addVisibleAlias(declaration, anyImportSyntax);\n }\n else if (ts.isVariableDeclaration(declaration) && ts.isVariableStatement(declaration.parent.parent) &&\n !ts.hasSyntacticModifier(declaration.parent.parent, 1 /* Export */) && // unexported variable statement\n isDeclarationVisible(declaration.parent.parent.parent)) {\n return addVisibleAlias(declaration, declaration.parent.parent);\n }\n else if (ts.isLateVisibilityPaintedStatement(declaration) // unexported top-level statement\n && !ts.hasSyntacticModifier(declaration, 1 /* Export */)\n && isDeclarationVisible(declaration.parent)) {\n return addVisibleAlias(declaration, declaration);\n }\n else if (symbol.flags & 2097152 /* Alias */ && ts.isBindingElement(declaration) && ts.isInJSFile(declaration) && ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.parent) // exported import-like top-level JS require statement\n && ts.isVariableDeclaration(declaration.parent.parent)\n && ((_b = declaration.parent.parent.parent) === null || _b === void 0 ? void 0 : _b.parent) && ts.isVariableStatement(declaration.parent.parent.parent.parent)\n && !ts.hasSyntacticModifier(declaration.parent.parent.parent.parent, 1 /* Export */)\n && declaration.parent.parent.parent.parent.parent // check if the thing containing the variable statement is visible (ie, the file)\n && isDeclarationVisible(declaration.parent.parent.parent.parent.parent)) {\n return addVisibleAlias(declaration, declaration.parent.parent.parent.parent);\n }\n // Declaration is not visible\n return false;\n }\n return true;\n }\n function addVisibleAlias(declaration, aliasingStatement) {\n // In function \"buildTypeDisplay\" where we decide whether to write type-alias or serialize types,\n // we want to just check if type- alias is accessible or not but we don't care about emitting those alias at that time\n // since we will do the emitting later in trackSymbol.\n if (shouldComputeAliasToMakeVisible) {\n getNodeLinks(declaration).isVisible = true;\n aliasesToMakeVisible = ts.appendIfUnique(aliasesToMakeVisible, aliasingStatement);\n }\n return true;\n }\n }\n function isEntityNameVisible(entityName, enclosingDeclaration) {\n // get symbol of the first identifier of the entityName\n var meaning;\n if (entityName.parent.kind === 179 /* TypeQuery */ ||\n ts.isExpressionWithTypeArgumentsInClassExtendsClause(entityName.parent) ||\n entityName.parent.kind === 160 /* ComputedPropertyName */) {\n // Typeof value\n meaning = 111551 /* Value */ | 1048576 /* ExportValue */;\n }\n else if (entityName.kind === 159 /* QualifiedName */ || entityName.kind === 204 /* PropertyAccessExpression */ ||\n entityName.parent.kind === 263 /* ImportEqualsDeclaration */) {\n // Left identifier from type reference or TypeAlias\n // Entity name of the import declaration\n meaning = 1920 /* Namespace */;\n }\n else {\n // Type Reference or TypeAlias entity = Identifier\n meaning = 788968 /* Type */;\n }\n var firstIdentifier = ts.getFirstIdentifier(entityName);\n var symbol = resolveName(enclosingDeclaration, firstIdentifier.escapedText, meaning, /*nodeNotFoundErrorMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false);\n if (symbol && symbol.flags & 262144 /* TypeParameter */ && meaning & 788968 /* Type */) {\n return { accessibility: 0 /* Accessible */ };\n }\n // Verify if the symbol is accessible\n return (symbol && hasVisibleDeclarations(symbol, /*shouldComputeAliasToMakeVisible*/ true)) || {\n accessibility: 1 /* NotAccessible */,\n errorSymbolName: ts.getTextOfNode(firstIdentifier),\n errorNode: firstIdentifier\n };\n }\n function symbolToString(symbol, enclosingDeclaration, meaning, flags, writer) {\n if (flags === void 0) { flags = 4 /* AllowAnyNodeKind */; }\n var nodeFlags = 70221824 /* IgnoreErrors */;\n if (flags & 2 /* UseOnlyExternalAliasing */) {\n nodeFlags |= 128 /* UseOnlyExternalAliasing */;\n }\n if (flags & 1 /* WriteTypeParametersOrArguments */) {\n nodeFlags |= 512 /* WriteTypeParametersInQualifiedName */;\n }\n if (flags & 8 /* UseAliasDefinedOutsideCurrentScope */) {\n nodeFlags |= 16384 /* UseAliasDefinedOutsideCurrentScope */;\n }\n if (flags & 16 /* DoNotIncludeSymbolChain */) {\n nodeFlags |= 134217728 /* DoNotIncludeSymbolChain */;\n }\n var builder = flags & 4 /* AllowAnyNodeKind */ ? nodeBuilder.symbolToExpression : nodeBuilder.symbolToEntityName;\n return writer ? symbolToStringWorker(writer).getText() : ts.usingSingleLineStringWriter(symbolToStringWorker);\n function symbolToStringWorker(writer) {\n var entity = builder(symbol, meaning, enclosingDeclaration, nodeFlags); // TODO: GH#18217\n // add neverAsciiEscape for GH#39027\n var printer = (enclosingDeclaration === null || enclosingDeclaration === void 0 ? void 0 : enclosingDeclaration.kind) === 300 /* SourceFile */ ? ts.createPrinter({ removeComments: true, neverAsciiEscape: true }) : ts.createPrinter({ removeComments: true });\n var sourceFile = enclosingDeclaration && ts.getSourceFileOfNode(enclosingDeclaration);\n printer.writeNode(4 /* Unspecified */, entity, /*sourceFile*/ sourceFile, writer);\n return writer;\n }\n }\n function signatureToString(signature, enclosingDeclaration, flags, kind, writer) {\n if (flags === void 0) { flags = 0 /* None */; }\n return writer ? signatureToStringWorker(writer).getText() : ts.usingSingleLineStringWriter(signatureToStringWorker);\n function signatureToStringWorker(writer) {\n var sigOutput;\n if (flags & 262144 /* WriteArrowStyleSignature */) {\n sigOutput = kind === 1 /* Construct */ ? 178 /* ConstructorType */ : 177 /* FunctionType */;\n }\n else {\n sigOutput = kind === 1 /* Construct */ ? 173 /* ConstructSignature */ : 172 /* CallSignature */;\n }\n var sig = nodeBuilder.signatureToSignatureDeclaration(signature, sigOutput, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */);\n var printer = ts.createPrinter({ removeComments: true, omitTrailingSemicolon: true });\n var sourceFile = enclosingDeclaration && ts.getSourceFileOfNode(enclosingDeclaration);\n printer.writeNode(4 /* Unspecified */, sig, /*sourceFile*/ sourceFile, ts.getTrailingSemicolonDeferringWriter(writer)); // TODO: GH#18217\n return writer;\n }\n }\n function typeToString(type, enclosingDeclaration, flags, writer) {\n if (flags === void 0) { flags = 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */; }\n if (writer === void 0) { writer = ts.createTextWriter(\"\"); }\n var noTruncation = compilerOptions.noErrorTruncation || flags & 1 /* NoTruncation */;\n var typeNode = nodeBuilder.typeToTypeNode(type, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | (noTruncation ? 1 /* NoTruncation */ : 0), writer);\n if (typeNode === undefined)\n return ts.Debug.fail(\"should always get typenode\");\n var options = { removeComments: true };\n var printer = ts.createPrinter(options);\n var sourceFile = enclosingDeclaration && ts.getSourceFileOfNode(enclosingDeclaration);\n printer.writeNode(4 /* Unspecified */, typeNode, /*sourceFile*/ sourceFile, writer);\n var result = writer.getText();\n var maxLength = noTruncation ? ts.noTruncationMaximumTruncationLength * 2 : ts.defaultMaximumTruncationLength * 2;\n if (maxLength && result && result.length >= maxLength) {\n return result.substr(0, maxLength - \"...\".length) + \"...\";\n }\n return result;\n }\n function getTypeNamesForErrorDisplay(left, right) {\n var leftStr = symbolValueDeclarationIsContextSensitive(left.symbol) ? typeToString(left, left.symbol.valueDeclaration) : typeToString(left);\n var rightStr = symbolValueDeclarationIsContextSensitive(right.symbol) ? typeToString(right, right.symbol.valueDeclaration) : typeToString(right);\n if (leftStr === rightStr) {\n leftStr = getTypeNameForErrorDisplay(left);\n rightStr = getTypeNameForErrorDisplay(right);\n }\n return [leftStr, rightStr];\n }\n function getTypeNameForErrorDisplay(type) {\n return typeToString(type, /*enclosingDeclaration*/ undefined, 64 /* UseFullyQualifiedType */);\n }\n function symbolValueDeclarationIsContextSensitive(symbol) {\n return symbol && !!symbol.valueDeclaration && ts.isExpression(symbol.valueDeclaration) && !isContextSensitive(symbol.valueDeclaration);\n }\n function toNodeBuilderFlags(flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n return flags & 814775659 /* NodeBuilderFlagsMask */;\n }\n function isClassInstanceSide(type) {\n return !!type.symbol && !!(type.symbol.flags & 32 /* Class */) && (type === getDeclaredTypeOfClassOrInterface(type.symbol) || (!!(type.flags & 524288 /* Object */) && !!(ts.getObjectFlags(type) & 16777216 /* IsClassInstanceClone */)));\n }\n function createNodeBuilder() {\n return {\n typeToTypeNode: function (type, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeToTypeNodeHelper(type, context); });\n },\n indexInfoToIndexSignatureDeclaration: function (indexInfo, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return indexInfoToIndexSignatureDeclarationHelper(indexInfo, context, /*typeNode*/ undefined); });\n },\n signatureToSignatureDeclaration: function (signature, kind, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return signatureToSignatureDeclarationHelper(signature, kind, context); });\n },\n symbolToEntityName: function (symbol, meaning, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return symbolToName(symbol, context, meaning, /*expectsIdentifier*/ false); });\n },\n symbolToExpression: function (symbol, meaning, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return symbolToExpression(symbol, context, meaning); });\n },\n symbolToTypeParameterDeclarations: function (symbol, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeParametersToTypeParameterDeclarations(symbol, context); });\n },\n symbolToParameterDeclaration: function (symbol, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return symbolToParameterDeclaration(symbol, context); });\n },\n typeParameterToDeclaration: function (parameter, enclosingDeclaration, flags, tracker) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return typeParameterToDeclaration(parameter, context); });\n },\n symbolTableToDeclarationStatements: function (symbolTable, enclosingDeclaration, flags, tracker, bundled) {\n return withContext(enclosingDeclaration, flags, tracker, function (context) { return symbolTableToDeclarationStatements(symbolTable, context, bundled); });\n },\n };\n function withContext(enclosingDeclaration, flags, tracker, cb) {\n var _a, _b;\n ts.Debug.assert(enclosingDeclaration === undefined || (enclosingDeclaration.flags & 8 /* Synthesized */) === 0);\n var context = {\n enclosingDeclaration: enclosingDeclaration,\n flags: flags || 0 /* None */,\n // If no full tracker is provided, fake up a dummy one with a basic limited-functionality moduleResolverHost\n tracker: tracker && tracker.trackSymbol ? tracker : { trackSymbol: function () { return false; }, moduleResolverHost: flags & 134217728 /* DoNotIncludeSymbolChain */ ? {\n getCommonSourceDirectory: !!host.getCommonSourceDirectory ? function () { return host.getCommonSourceDirectory(); } : function () { return \"\"; },\n getCurrentDirectory: function () { return host.getCurrentDirectory(); },\n getSymlinkCache: ts.maybeBind(host, host.getSymlinkCache),\n useCaseSensitiveFileNames: ts.maybeBind(host, host.useCaseSensitiveFileNames),\n redirectTargetsMap: host.redirectTargetsMap,\n getProjectReferenceRedirect: function (fileName) { return host.getProjectReferenceRedirect(fileName); },\n isSourceOfProjectReferenceRedirect: function (fileName) { return host.isSourceOfProjectReferenceRedirect(fileName); },\n fileExists: function (fileName) { return host.fileExists(fileName); },\n getFileIncludeReasons: function () { return host.getFileIncludeReasons(); },\n } : undefined },\n encounteredError: false,\n reportedDiagnostic: false,\n visitedTypes: undefined,\n symbolDepth: undefined,\n inferTypeParameters: undefined,\n approximateLength: 0\n };\n context.tracker = wrapSymbolTrackerToReportForContext(context, context.tracker);\n var resultingNode = cb(context);\n if (context.truncating && context.flags & 1 /* NoTruncation */) {\n (_b = (_a = context.tracker) === null || _a === void 0 ? void 0 : _a.reportTruncationError) === null || _b === void 0 ? void 0 : _b.call(_a);\n }\n return context.encounteredError ? undefined : resultingNode;\n }\n function wrapSymbolTrackerToReportForContext(context, tracker) {\n var oldTrackSymbol = tracker.trackSymbol;\n return __assign(__assign({}, tracker), { reportCyclicStructureError: wrapReportedDiagnostic(tracker.reportCyclicStructureError), reportInaccessibleThisError: wrapReportedDiagnostic(tracker.reportInaccessibleThisError), reportInaccessibleUniqueSymbolError: wrapReportedDiagnostic(tracker.reportInaccessibleUniqueSymbolError), reportLikelyUnsafeImportRequiredError: wrapReportedDiagnostic(tracker.reportLikelyUnsafeImportRequiredError), reportNonlocalAugmentation: wrapReportedDiagnostic(tracker.reportNonlocalAugmentation), reportPrivateInBaseOfClassExpression: wrapReportedDiagnostic(tracker.reportPrivateInBaseOfClassExpression), reportNonSerializableProperty: wrapReportedDiagnostic(tracker.reportNonSerializableProperty), trackSymbol: oldTrackSymbol && (function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = oldTrackSymbol.apply(void 0, args);\n if (result) {\n context.reportedDiagnostic = true;\n }\n return result;\n }) });\n function wrapReportedDiagnostic(method) {\n if (!method) {\n return method;\n }\n return (function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n context.reportedDiagnostic = true;\n return method.apply(void 0, args);\n });\n }\n }\n function checkTruncationLength(context) {\n if (context.truncating)\n return context.truncating;\n return context.truncating = context.approximateLength > ((context.flags & 1 /* NoTruncation */) ? ts.noTruncationMaximumTruncationLength : ts.defaultMaximumTruncationLength);\n }\n function typeToTypeNodeHelper(type, context) {\n if (cancellationToken && cancellationToken.throwIfCancellationRequested) {\n cancellationToken.throwIfCancellationRequested();\n }\n var inTypeAlias = context.flags & 8388608 /* InTypeAlias */;\n context.flags &= ~8388608 /* InTypeAlias */;\n if (!type) {\n if (!(context.flags & 262144 /* AllowEmptyUnionOrIntersection */)) {\n context.encounteredError = true;\n return undefined; // TODO: GH#18217\n }\n context.approximateLength += 3;\n return ts.factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n if (!(context.flags & 536870912 /* NoTypeReduction */)) {\n type = getReducedType(type);\n }\n if (type.flags & 1 /* Any */) {\n context.approximateLength += 3;\n return ts.factory.createKeywordTypeNode(type === intrinsicMarkerType ? 137 /* IntrinsicKeyword */ : 129 /* AnyKeyword */);\n }\n if (type.flags & 2 /* Unknown */) {\n return ts.factory.createKeywordTypeNode(153 /* UnknownKeyword */);\n }\n if (type.flags & 4 /* String */) {\n context.approximateLength += 6;\n return ts.factory.createKeywordTypeNode(148 /* StringKeyword */);\n }\n if (type.flags & 8 /* Number */) {\n context.approximateLength += 6;\n return ts.factory.createKeywordTypeNode(145 /* NumberKeyword */);\n }\n if (type.flags & 64 /* BigInt */) {\n context.approximateLength += 6;\n return ts.factory.createKeywordTypeNode(156 /* BigIntKeyword */);\n }\n if (type.flags & 16 /* Boolean */ && !type.aliasSymbol) {\n context.approximateLength += 7;\n return ts.factory.createKeywordTypeNode(132 /* BooleanKeyword */);\n }\n if (type.flags & 1024 /* EnumLiteral */ && !(type.flags & 1048576 /* Union */)) {\n var parentSymbol = getParentOfSymbol(type.symbol);\n var parentName = symbolToTypeNode(parentSymbol, context, 788968 /* Type */);\n if (getDeclaredTypeOfSymbol(parentSymbol) === type) {\n return parentName;\n }\n var memberName = ts.symbolName(type.symbol);\n if (ts.isIdentifierText(memberName, 0 /* ES3 */)) {\n return appendReferenceToType(parentName, ts.factory.createTypeReferenceNode(memberName, /*typeArguments*/ undefined));\n }\n if (ts.isImportTypeNode(parentName)) {\n parentName.isTypeOf = true; // mutably update, node is freshly manufactured anyhow\n return ts.factory.createIndexedAccessTypeNode(parentName, ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(memberName)));\n }\n else if (ts.isTypeReferenceNode(parentName)) {\n return ts.factory.createIndexedAccessTypeNode(ts.factory.createTypeQueryNode(parentName.typeName), ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(memberName)));\n }\n else {\n return ts.Debug.fail(\"Unhandled type node kind returned from `symbolToTypeNode`.\");\n }\n }\n if (type.flags & 1056 /* EnumLike */) {\n return symbolToTypeNode(type.symbol, context, 788968 /* Type */);\n }\n if (type.flags & 128 /* StringLiteral */) {\n context.approximateLength += (type.value.length + 2);\n return ts.factory.createLiteralTypeNode(ts.setEmitFlags(ts.factory.createStringLiteral(type.value, !!(context.flags & 268435456 /* UseSingleQuotesForStringLiteralType */)), 16777216 /* NoAsciiEscaping */));\n }\n if (type.flags & 256 /* NumberLiteral */) {\n var value = type.value;\n context.approximateLength += (\"\" + value).length;\n return ts.factory.createLiteralTypeNode(value < 0 ? ts.factory.createPrefixUnaryExpression(40 /* MinusToken */, ts.factory.createNumericLiteral(-value)) : ts.factory.createNumericLiteral(value));\n }\n if (type.flags & 2048 /* BigIntLiteral */) {\n context.approximateLength += (ts.pseudoBigIntToString(type.value).length) + 1;\n return ts.factory.createLiteralTypeNode((ts.factory.createBigIntLiteral(type.value)));\n }\n if (type.flags & 512 /* BooleanLiteral */) {\n context.approximateLength += type.intrinsicName.length;\n return ts.factory.createLiteralTypeNode(type.intrinsicName === \"true\" ? ts.factory.createTrue() : ts.factory.createFalse());\n }\n if (type.flags & 8192 /* UniqueESSymbol */) {\n if (!(context.flags & 1048576 /* AllowUniqueESSymbolType */)) {\n if (isValueSymbolAccessible(type.symbol, context.enclosingDeclaration)) {\n context.approximateLength += 6;\n return symbolToTypeNode(type.symbol, context, 111551 /* Value */);\n }\n if (context.tracker.reportInaccessibleUniqueSymbolError) {\n context.tracker.reportInaccessibleUniqueSymbolError();\n }\n }\n context.approximateLength += 13;\n return ts.factory.createTypeOperatorNode(152 /* UniqueKeyword */, ts.factory.createKeywordTypeNode(149 /* SymbolKeyword */));\n }\n if (type.flags & 16384 /* Void */) {\n context.approximateLength += 4;\n return ts.factory.createKeywordTypeNode(114 /* VoidKeyword */);\n }\n if (type.flags & 32768 /* Undefined */) {\n context.approximateLength += 9;\n return ts.factory.createKeywordTypeNode(151 /* UndefinedKeyword */);\n }\n if (type.flags & 65536 /* Null */) {\n context.approximateLength += 4;\n return ts.factory.createLiteralTypeNode(ts.factory.createNull());\n }\n if (type.flags & 131072 /* Never */) {\n context.approximateLength += 5;\n return ts.factory.createKeywordTypeNode(142 /* NeverKeyword */);\n }\n if (type.flags & 4096 /* ESSymbol */) {\n context.approximateLength += 6;\n return ts.factory.createKeywordTypeNode(149 /* SymbolKeyword */);\n }\n if (type.flags & 67108864 /* NonPrimitive */) {\n context.approximateLength += 6;\n return ts.factory.createKeywordTypeNode(146 /* ObjectKeyword */);\n }\n if (isThisTypeParameter(type)) {\n if (context.flags & 4194304 /* InObjectTypeLiteral */) {\n if (!context.encounteredError && !(context.flags & 32768 /* AllowThisInObjectLiteral */)) {\n context.encounteredError = true;\n }\n if (context.tracker.reportInaccessibleThisError) {\n context.tracker.reportInaccessibleThisError();\n }\n }\n context.approximateLength += 4;\n return ts.factory.createThisTypeNode();\n }\n if (!inTypeAlias && type.aliasSymbol && (context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */ || isTypeSymbolAccessible(type.aliasSymbol, context.enclosingDeclaration))) {\n var typeArgumentNodes = mapToTypeNodes(type.aliasTypeArguments, context);\n if (isReservedMemberName(type.aliasSymbol.escapedName) && !(type.aliasSymbol.flags & 32 /* Class */))\n return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(\"\"), typeArgumentNodes);\n return symbolToTypeNode(type.aliasSymbol, context, 788968 /* Type */, typeArgumentNodes);\n }\n var objectFlags = ts.getObjectFlags(type);\n if (objectFlags & 4 /* Reference */) {\n ts.Debug.assert(!!(type.flags & 524288 /* Object */));\n return type.node ? visitAndTransformType(type, typeReferenceToTypeNode) : typeReferenceToTypeNode(type);\n }\n if (type.flags & 262144 /* TypeParameter */ || objectFlags & 3 /* ClassOrInterface */) {\n if (type.flags & 262144 /* TypeParameter */ && ts.contains(context.inferTypeParameters, type)) {\n context.approximateLength += (ts.symbolName(type.symbol).length + 6);\n return ts.factory.createInferTypeNode(typeParameterToDeclarationWithConstraint(type, context, /*constraintNode*/ undefined));\n }\n if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ &&\n type.flags & 262144 /* TypeParameter */ &&\n !isTypeSymbolAccessible(type.symbol, context.enclosingDeclaration)) {\n var name = typeParameterToName(type, context);\n context.approximateLength += ts.idText(name).length;\n return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(ts.idText(name)), /*typeArguments*/ undefined);\n }\n // Ignore constraint/default when creating a usage (as opposed to declaration) of a type parameter.\n return type.symbol\n ? symbolToTypeNode(type.symbol, context, 788968 /* Type */)\n : ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(\"?\"), /*typeArguments*/ undefined);\n }\n if (type.flags & 1048576 /* Union */ && type.origin) {\n type = type.origin;\n }\n if (type.flags & (1048576 /* Union */ | 2097152 /* Intersection */)) {\n var types = type.flags & 1048576 /* Union */ ? formatUnionTypes(type.types) : type.types;\n if (ts.length(types) === 1) {\n return typeToTypeNodeHelper(types[0], context);\n }\n var typeNodes = mapToTypeNodes(types, context, /*isBareList*/ true);\n if (typeNodes && typeNodes.length > 0) {\n return type.flags & 1048576 /* Union */ ? ts.factory.createUnionTypeNode(typeNodes) : ts.factory.createIntersectionTypeNode(typeNodes);\n }\n else {\n if (!context.encounteredError && !(context.flags & 262144 /* AllowEmptyUnionOrIntersection */)) {\n context.encounteredError = true;\n }\n return undefined; // TODO: GH#18217\n }\n }\n if (objectFlags & (16 /* Anonymous */ | 32 /* Mapped */)) {\n ts.Debug.assert(!!(type.flags & 524288 /* Object */));\n // The type is an object literal type.\n return createAnonymousTypeNode(type);\n }\n if (type.flags & 4194304 /* Index */) {\n var indexedType = type.type;\n context.approximateLength += 6;\n var indexTypeNode = typeToTypeNodeHelper(indexedType, context);\n return ts.factory.createTypeOperatorNode(139 /* KeyOfKeyword */, indexTypeNode);\n }\n if (type.flags & 134217728 /* TemplateLiteral */) {\n var texts_1 = type.texts;\n var types_1 = type.types;\n var templateHead = ts.factory.createTemplateHead(texts_1[0]);\n var templateSpans = ts.factory.createNodeArray(ts.map(types_1, function (t, i) { return ts.factory.createTemplateLiteralTypeSpan(typeToTypeNodeHelper(t, context), (i < types_1.length - 1 ? ts.factory.createTemplateMiddle : ts.factory.createTemplateTail)(texts_1[i + 1])); }));\n context.approximateLength += 2;\n return ts.factory.createTemplateLiteralType(templateHead, templateSpans);\n }\n if (type.flags & 268435456 /* StringMapping */) {\n var typeNode = typeToTypeNodeHelper(type.type, context);\n return symbolToTypeNode(type.symbol, context, 788968 /* Type */, [typeNode]);\n }\n if (type.flags & 8388608 /* IndexedAccess */) {\n var objectTypeNode = typeToTypeNodeHelper(type.objectType, context);\n var indexTypeNode = typeToTypeNodeHelper(type.indexType, context);\n context.approximateLength += 2;\n return ts.factory.createIndexedAccessTypeNode(objectTypeNode, indexTypeNode);\n }\n if (type.flags & 16777216 /* Conditional */) {\n return visitAndTransformType(type, function (type) { return conditionalTypeToTypeNode(type); });\n }\n if (type.flags & 33554432 /* Substitution */) {\n return typeToTypeNodeHelper(type.baseType, context);\n }\n return ts.Debug.fail(\"Should be unreachable.\");\n function conditionalTypeToTypeNode(type) {\n var checkTypeNode = typeToTypeNodeHelper(type.checkType, context);\n var saveInferTypeParameters = context.inferTypeParameters;\n context.inferTypeParameters = type.root.inferTypeParameters;\n var extendsTypeNode = typeToTypeNodeHelper(type.extendsType, context);\n context.inferTypeParameters = saveInferTypeParameters;\n var trueTypeNode = typeToTypeNodeOrCircularityElision(getTrueTypeFromConditionalType(type));\n var falseTypeNode = typeToTypeNodeOrCircularityElision(getFalseTypeFromConditionalType(type));\n context.approximateLength += 15;\n return ts.factory.createConditionalTypeNode(checkTypeNode, extendsTypeNode, trueTypeNode, falseTypeNode);\n }\n function typeToTypeNodeOrCircularityElision(type) {\n var _a, _b, _c;\n if (type.flags & 1048576 /* Union */) {\n if ((_a = context.visitedTypes) === null || _a === void 0 ? void 0 : _a.has(getTypeId(type))) {\n if (!(context.flags & 131072 /* AllowAnonymousIdentifier */)) {\n context.encounteredError = true;\n (_c = (_b = context.tracker) === null || _b === void 0 ? void 0 : _b.reportCyclicStructureError) === null || _c === void 0 ? void 0 : _c.call(_b);\n }\n return createElidedInformationPlaceholder(context);\n }\n return visitAndTransformType(type, function (type) { return typeToTypeNodeHelper(type, context); });\n }\n return typeToTypeNodeHelper(type, context);\n }\n function createMappedTypeNodeFromType(type) {\n ts.Debug.assert(!!(type.flags & 524288 /* Object */));\n var readonlyToken = type.declaration.readonlyToken ? ts.factory.createToken(type.declaration.readonlyToken.kind) : undefined;\n var questionToken = type.declaration.questionToken ? ts.factory.createToken(type.declaration.questionToken.kind) : undefined;\n var appropriateConstraintTypeNode;\n if (isMappedTypeWithKeyofConstraintDeclaration(type)) {\n // We have a { [P in keyof T]: X }\n // We do this to ensure we retain the toplevel keyof-ness of the type which may be lost due to keyof distribution during `getConstraintTypeFromMappedType`\n appropriateConstraintTypeNode = ts.factory.createTypeOperatorNode(139 /* KeyOfKeyword */, typeToTypeNodeHelper(getModifiersTypeFromMappedType(type), context));\n }\n else {\n appropriateConstraintTypeNode = typeToTypeNodeHelper(getConstraintTypeFromMappedType(type), context);\n }\n var typeParameterNode = typeParameterToDeclarationWithConstraint(getTypeParameterFromMappedType(type), context, appropriateConstraintTypeNode);\n var nameTypeNode = type.declaration.nameType ? typeToTypeNodeHelper(getNameTypeFromMappedType(type), context) : undefined;\n var templateTypeNode = typeToTypeNodeHelper(removeMissingType(getTemplateTypeFromMappedType(type), !!(getMappedTypeModifiers(type) & 4 /* IncludeOptional */)), context);\n var mappedTypeNode = ts.factory.createMappedTypeNode(readonlyToken, typeParameterNode, nameTypeNode, questionToken, templateTypeNode);\n context.approximateLength += 10;\n return ts.setEmitFlags(mappedTypeNode, 1 /* SingleLine */);\n }\n function createAnonymousTypeNode(type) {\n var _a;\n var typeId = type.id;\n var symbol = type.symbol;\n if (symbol) {\n var isInstanceType = isClassInstanceSide(type) ? 788968 /* Type */ : 111551 /* Value */;\n if (isJSConstructor(symbol.valueDeclaration)) {\n // Instance and static types share the same symbol; only add 'typeof' for the static side.\n return symbolToTypeNode(symbol, context, isInstanceType);\n }\n // Always use 'typeof T' for type of class, enum, and module objects\n else if (symbol.flags & 32 /* Class */\n && !getBaseTypeVariableOfClass(symbol)\n && !(symbol.valueDeclaration && symbol.valueDeclaration.kind === 224 /* ClassExpression */ && context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */) ||\n symbol.flags & (384 /* Enum */ | 512 /* ValueModule */) ||\n shouldWriteTypeOfFunctionSymbol()) {\n return symbolToTypeNode(symbol, context, isInstanceType);\n }\n else if ((_a = context.visitedTypes) === null || _a === void 0 ? void 0 : _a.has(typeId)) {\n // If type is an anonymous type literal in a type alias declaration, use type alias name\n var typeAlias = getTypeAliasForTypeLiteral(type);\n if (typeAlias) {\n // The specified symbol flags need to be reinterpreted as type flags\n return symbolToTypeNode(typeAlias, context, 788968 /* Type */);\n }\n else {\n return createElidedInformationPlaceholder(context);\n }\n }\n else {\n return visitAndTransformType(type, createTypeNodeFromObjectType);\n }\n }\n else {\n // Anonymous types without a symbol are never circular.\n return createTypeNodeFromObjectType(type);\n }\n function shouldWriteTypeOfFunctionSymbol() {\n var _a;\n var isStaticMethodSymbol = !!(symbol.flags & 8192 /* Method */) && // typeof static method\n ts.some(symbol.declarations, function (declaration) { return ts.isStatic(declaration); });\n var isNonLocalFunctionSymbol = !!(symbol.flags & 16 /* Function */) &&\n (symbol.parent || // is exported function symbol\n ts.forEach(symbol.declarations, function (declaration) {\n return declaration.parent.kind === 300 /* SourceFile */ || declaration.parent.kind === 260 /* ModuleBlock */;\n }));\n if (isStaticMethodSymbol || isNonLocalFunctionSymbol) {\n // typeof is allowed only for static/non local functions\n return (!!(context.flags & 4096 /* UseTypeOfFunction */) || ((_a = context.visitedTypes) === null || _a === void 0 ? void 0 : _a.has(typeId))) && // it is type of the symbol uses itself recursively\n (!(context.flags & 8 /* UseStructuralFallback */) || isValueSymbolAccessible(symbol, context.enclosingDeclaration)); // And the build is going to succeed without visibility error or there is no structural fallback allowed\n }\n }\n }\n function visitAndTransformType(type, transform) {\n var _a, _b;\n var typeId = type.id;\n var isConstructorObject = ts.getObjectFlags(type) & 16 /* Anonymous */ && type.symbol && type.symbol.flags & 32 /* Class */;\n var id = ts.getObjectFlags(type) & 4 /* Reference */ && type.node ? \"N\" + getNodeId(type.node) :\n type.flags & 16777216 /* Conditional */ ? \"N\" + getNodeId(type.root.node) :\n type.symbol ? (isConstructorObject ? \"+\" : \"\") + getSymbolId(type.symbol) :\n undefined;\n // Since instantiations of the same anonymous type have the same symbol, tracking symbols instead\n // of types allows us to catch circular references to instantiations of the same anonymous type\n if (!context.visitedTypes) {\n context.visitedTypes = new ts.Set();\n }\n if (id && !context.symbolDepth) {\n context.symbolDepth = new ts.Map();\n }\n var links = context.enclosingDeclaration && getNodeLinks(context.enclosingDeclaration);\n var key = getTypeId(type) + \"|\" + context.flags;\n if (links) {\n links.serializedTypes || (links.serializedTypes = new ts.Map());\n }\n var cachedResult = (_a = links === null || links === void 0 ? void 0 : links.serializedTypes) === null || _a === void 0 ? void 0 : _a.get(key);\n if (cachedResult) {\n if (cachedResult.truncating) {\n context.truncating = true;\n }\n context.approximateLength += cachedResult.addedLength;\n return deepCloneOrReuseNode(cachedResult);\n }\n var depth;\n if (id) {\n depth = context.symbolDepth.get(id) || 0;\n if (depth > 10) {\n return createElidedInformationPlaceholder(context);\n }\n context.symbolDepth.set(id, depth + 1);\n }\n context.visitedTypes.add(typeId);\n var startLength = context.approximateLength;\n var result = transform(type);\n var addedLength = context.approximateLength - startLength;\n if (!context.reportedDiagnostic && !context.encounteredError) {\n if (context.truncating) {\n result.truncating = true;\n }\n result.addedLength = addedLength;\n (_b = links === null || links === void 0 ? void 0 : links.serializedTypes) === null || _b === void 0 ? void 0 : _b.set(key, result);\n }\n context.visitedTypes.delete(typeId);\n if (id) {\n context.symbolDepth.set(id, depth);\n }\n return result;\n function deepCloneOrReuseNode(node) {\n if (!ts.nodeIsSynthesized(node) && ts.getParseTreeNode(node) === node) {\n return node;\n }\n return ts.setTextRange(ts.factory.cloneNode(ts.visitEachChild(node, deepCloneOrReuseNode, ts.nullTransformationContext)), node);\n }\n }\n function createTypeNodeFromObjectType(type) {\n if (isGenericMappedType(type) || type.containsError) {\n return createMappedTypeNodeFromType(type);\n }\n var resolved = resolveStructuredTypeMembers(type);\n if (!resolved.properties.length && !resolved.indexInfos.length) {\n if (!resolved.callSignatures.length && !resolved.constructSignatures.length) {\n context.approximateLength += 2;\n return ts.setEmitFlags(ts.factory.createTypeLiteralNode(/*members*/ undefined), 1 /* SingleLine */);\n }\n if (resolved.callSignatures.length === 1 && !resolved.constructSignatures.length) {\n var signature = resolved.callSignatures[0];\n var signatureNode = signatureToSignatureDeclarationHelper(signature, 177 /* FunctionType */, context);\n return signatureNode;\n }\n if (resolved.constructSignatures.length === 1 && !resolved.callSignatures.length) {\n var signature = resolved.constructSignatures[0];\n var signatureNode = signatureToSignatureDeclarationHelper(signature, 178 /* ConstructorType */, context);\n return signatureNode;\n }\n }\n var abstractSignatures = ts.filter(resolved.constructSignatures, function (signature) { return !!(signature.flags & 4 /* Abstract */); });\n if (ts.some(abstractSignatures)) {\n var types = ts.map(abstractSignatures, getOrCreateTypeFromSignature);\n // count the number of type elements excluding abstract constructors\n var typeElementCount = resolved.callSignatures.length +\n (resolved.constructSignatures.length - abstractSignatures.length) +\n resolved.indexInfos.length +\n // exclude `prototype` when writing a class expression as a type literal, as per\n // the logic in `createTypeNodesFromResolvedType`.\n (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ ?\n ts.countWhere(resolved.properties, function (p) { return !(p.flags & 4194304 /* Prototype */); }) :\n ts.length(resolved.properties));\n // don't include an empty object literal if there were no other static-side\n // properties to write, i.e. `abstract class C { }` becomes `abstract new () => {}`\n // and not `(abstract new () => {}) & {}`\n if (typeElementCount) {\n // create a copy of the object type without any abstract construct signatures.\n types.push(getResolvedTypeWithoutAbstractConstructSignatures(resolved));\n }\n return typeToTypeNodeHelper(getIntersectionType(types), context);\n }\n var savedFlags = context.flags;\n context.flags |= 4194304 /* InObjectTypeLiteral */;\n var members = createTypeNodesFromResolvedType(resolved);\n context.flags = savedFlags;\n var typeLiteralNode = ts.factory.createTypeLiteralNode(members);\n context.approximateLength += 2;\n ts.setEmitFlags(typeLiteralNode, (context.flags & 1024 /* MultilineObjectLiterals */) ? 0 : 1 /* SingleLine */);\n return typeLiteralNode;\n }\n function typeReferenceToTypeNode(type) {\n var typeArguments = getTypeArguments(type);\n if (type.target === globalArrayType || type.target === globalReadonlyArrayType) {\n if (context.flags & 2 /* WriteArrayAsGenericType */) {\n var typeArgumentNode = typeToTypeNodeHelper(typeArguments[0], context);\n return ts.factory.createTypeReferenceNode(type.target === globalArrayType ? \"Array\" : \"ReadonlyArray\", [typeArgumentNode]);\n }\n var elementType = typeToTypeNodeHelper(typeArguments[0], context);\n var arrayType = ts.factory.createArrayTypeNode(elementType);\n return type.target === globalArrayType ? arrayType : ts.factory.createTypeOperatorNode(143 /* ReadonlyKeyword */, arrayType);\n }\n else if (type.target.objectFlags & 8 /* Tuple */) {\n typeArguments = ts.sameMap(typeArguments, function (t, i) { return removeMissingType(t, !!(type.target.elementFlags[i] & 2 /* Optional */)); });\n if (typeArguments.length > 0) {\n var arity = getTypeReferenceArity(type);\n var tupleConstituentNodes = mapToTypeNodes(typeArguments.slice(0, arity), context);\n if (tupleConstituentNodes) {\n if (type.target.labeledElementDeclarations) {\n for (var i = 0; i < tupleConstituentNodes.length; i++) {\n var flags = type.target.elementFlags[i];\n tupleConstituentNodes[i] = ts.factory.createNamedTupleMember(flags & 12 /* Variable */ ? ts.factory.createToken(25 /* DotDotDotToken */) : undefined, ts.factory.createIdentifier(ts.unescapeLeadingUnderscores(getTupleElementLabel(type.target.labeledElementDeclarations[i]))), flags & 2 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined, flags & 4 /* Rest */ ? ts.factory.createArrayTypeNode(tupleConstituentNodes[i]) :\n tupleConstituentNodes[i]);\n }\n }\n else {\n for (var i = 0; i < Math.min(arity, tupleConstituentNodes.length); i++) {\n var flags = type.target.elementFlags[i];\n tupleConstituentNodes[i] =\n flags & 12 /* Variable */ ? ts.factory.createRestTypeNode(flags & 4 /* Rest */ ? ts.factory.createArrayTypeNode(tupleConstituentNodes[i]) : tupleConstituentNodes[i]) :\n flags & 2 /* Optional */ ? ts.factory.createOptionalTypeNode(tupleConstituentNodes[i]) :\n tupleConstituentNodes[i];\n }\n }\n var tupleTypeNode = ts.setEmitFlags(ts.factory.createTupleTypeNode(tupleConstituentNodes), 1 /* SingleLine */);\n return type.target.readonly ? ts.factory.createTypeOperatorNode(143 /* ReadonlyKeyword */, tupleTypeNode) : tupleTypeNode;\n }\n }\n if (context.encounteredError || (context.flags & 524288 /* AllowEmptyTuple */)) {\n var tupleTypeNode = ts.setEmitFlags(ts.factory.createTupleTypeNode([]), 1 /* SingleLine */);\n return type.target.readonly ? ts.factory.createTypeOperatorNode(143 /* ReadonlyKeyword */, tupleTypeNode) : tupleTypeNode;\n }\n context.encounteredError = true;\n return undefined; // TODO: GH#18217\n }\n else if (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */ &&\n type.symbol.valueDeclaration &&\n ts.isClassLike(type.symbol.valueDeclaration) &&\n !isValueSymbolAccessible(type.symbol, context.enclosingDeclaration)) {\n return createAnonymousTypeNode(type);\n }\n else {\n var outerTypeParameters = type.target.outerTypeParameters;\n var i = 0;\n var resultType = void 0;\n if (outerTypeParameters) {\n var length_2 = outerTypeParameters.length;\n while (i < length_2) {\n // Find group of type arguments for type parameters with the same declaring container.\n var start = i;\n var parent = getParentSymbolOfTypeParameter(outerTypeParameters[i]);\n do {\n i++;\n } while (i < length_2 && getParentSymbolOfTypeParameter(outerTypeParameters[i]) === parent);\n // When type parameters are their own type arguments for the whole group (i.e. we have\n // the default outer type arguments), we don't show the group.\n if (!ts.rangeEquals(outerTypeParameters, typeArguments, start, i)) {\n var typeArgumentSlice = mapToTypeNodes(typeArguments.slice(start, i), context);\n var flags_3 = context.flags;\n context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */;\n var ref = symbolToTypeNode(parent, context, 788968 /* Type */, typeArgumentSlice);\n context.flags = flags_3;\n resultType = !resultType ? ref : appendReferenceToType(resultType, ref);\n }\n }\n }\n var typeArgumentNodes = void 0;\n if (typeArguments.length > 0) {\n var typeParameterCount = (type.target.typeParameters || ts.emptyArray).length;\n typeArgumentNodes = mapToTypeNodes(typeArguments.slice(i, typeParameterCount), context);\n }\n var flags = context.flags;\n context.flags |= 16 /* ForbidIndexedAccessSymbolReferences */;\n var finalRef = symbolToTypeNode(type.symbol, context, 788968 /* Type */, typeArgumentNodes);\n context.flags = flags;\n return !resultType ? finalRef : appendReferenceToType(resultType, finalRef);\n }\n }\n function appendReferenceToType(root, ref) {\n if (ts.isImportTypeNode(root)) {\n // first shift type arguments\n var typeArguments = root.typeArguments;\n var qualifier = root.qualifier;\n if (qualifier) {\n if (ts.isIdentifier(qualifier)) {\n qualifier = ts.factory.updateIdentifier(qualifier, typeArguments);\n }\n else {\n qualifier = ts.factory.updateQualifiedName(qualifier, qualifier.left, ts.factory.updateIdentifier(qualifier.right, typeArguments));\n }\n }\n typeArguments = ref.typeArguments;\n // then move qualifiers\n var ids = getAccessStack(ref);\n for (var _i = 0, ids_1 = ids; _i < ids_1.length; _i++) {\n var id = ids_1[_i];\n qualifier = qualifier ? ts.factory.createQualifiedName(qualifier, id) : id;\n }\n return ts.factory.updateImportTypeNode(root, root.argument, qualifier, typeArguments, root.isTypeOf);\n }\n else {\n // first shift type arguments\n var typeArguments = root.typeArguments;\n var typeName = root.typeName;\n if (ts.isIdentifier(typeName)) {\n typeName = ts.factory.updateIdentifier(typeName, typeArguments);\n }\n else {\n typeName = ts.factory.updateQualifiedName(typeName, typeName.left, ts.factory.updateIdentifier(typeName.right, typeArguments));\n }\n typeArguments = ref.typeArguments;\n // then move qualifiers\n var ids = getAccessStack(ref);\n for (var _a = 0, ids_2 = ids; _a < ids_2.length; _a++) {\n var id = ids_2[_a];\n typeName = ts.factory.createQualifiedName(typeName, id);\n }\n return ts.factory.updateTypeReferenceNode(root, typeName, typeArguments);\n }\n }\n function getAccessStack(ref) {\n var state = ref.typeName;\n var ids = [];\n while (!ts.isIdentifier(state)) {\n ids.unshift(state.right);\n state = state.left;\n }\n ids.unshift(state);\n return ids;\n }\n function createTypeNodesFromResolvedType(resolvedType) {\n if (checkTruncationLength(context)) {\n return [ts.factory.createPropertySignature(/*modifiers*/ undefined, \"...\", /*questionToken*/ undefined, /*type*/ undefined)];\n }\n var typeElements = [];\n for (var _i = 0, _a = resolvedType.callSignatures; _i < _a.length; _i++) {\n var signature = _a[_i];\n typeElements.push(signatureToSignatureDeclarationHelper(signature, 172 /* CallSignature */, context));\n }\n for (var _b = 0, _c = resolvedType.constructSignatures; _b < _c.length; _b++) {\n var signature = _c[_b];\n if (signature.flags & 4 /* Abstract */)\n continue;\n typeElements.push(signatureToSignatureDeclarationHelper(signature, 173 /* ConstructSignature */, context));\n }\n for (var _d = 0, _e = resolvedType.indexInfos; _d < _e.length; _d++) {\n var info = _e[_d];\n typeElements.push(indexInfoToIndexSignatureDeclarationHelper(info, context, resolvedType.objectFlags & 1024 /* ReverseMapped */ ? createElidedInformationPlaceholder(context) : undefined));\n }\n var properties = resolvedType.properties;\n if (!properties) {\n return typeElements;\n }\n var i = 0;\n for (var _f = 0, properties_1 = properties; _f < properties_1.length; _f++) {\n var propertySymbol = properties_1[_f];\n i++;\n if (context.flags & 2048 /* WriteClassExpressionAsTypeLiteral */) {\n if (propertySymbol.flags & 4194304 /* Prototype */) {\n continue;\n }\n if (ts.getDeclarationModifierFlagsFromSymbol(propertySymbol) & (8 /* Private */ | 16 /* Protected */) && context.tracker.reportPrivateInBaseOfClassExpression) {\n context.tracker.reportPrivateInBaseOfClassExpression(ts.unescapeLeadingUnderscores(propertySymbol.escapedName));\n }\n }\n if (checkTruncationLength(context) && (i + 2 < properties.length - 1)) {\n typeElements.push(ts.factory.createPropertySignature(/*modifiers*/ undefined, \"... \" + (properties.length - i) + \" more ...\", /*questionToken*/ undefined, /*type*/ undefined));\n addPropertyToElementList(properties[properties.length - 1], context, typeElements);\n break;\n }\n addPropertyToElementList(propertySymbol, context, typeElements);\n }\n return typeElements.length ? typeElements : undefined;\n }\n }\n function createElidedInformationPlaceholder(context) {\n context.approximateLength += 3;\n if (!(context.flags & 1 /* NoTruncation */)) {\n return ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(\"...\"), /*typeArguments*/ undefined);\n }\n return ts.factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n function shouldUsePlaceholderForProperty(propertySymbol, context) {\n var _a;\n // Use placeholders for reverse mapped types we've either already descended into, or which\n // are nested reverse mappings within a mapping over a non-anonymous type. The later is a restriction mostly just to\n // reduce the blowup in printback size from doing, eg, a deep reverse mapping over `Window`.\n // Since anonymous types usually come from expressions, this allows us to preserve the output\n // for deep mappings which likely come from expressions, while truncating those parts which\n // come from mappings over library functions.\n return !!(ts.getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */)\n && (ts.contains(context.reverseMappedStack, propertySymbol)\n || (((_a = context.reverseMappedStack) === null || _a === void 0 ? void 0 : _a[0])\n && !(ts.getObjectFlags(ts.last(context.reverseMappedStack).propertyType) & 16 /* Anonymous */)));\n }\n function addPropertyToElementList(propertySymbol, context, typeElements) {\n var _a, _b;\n var propertyIsReverseMapped = !!(ts.getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);\n var propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ?\n anyType : getNonMissingTypeOfSymbol(propertySymbol);\n var saveEnclosingDeclaration = context.enclosingDeclaration;\n context.enclosingDeclaration = undefined;\n if (context.tracker.trackSymbol && ts.getCheckFlags(propertySymbol) & 4096 /* Late */ && isLateBoundName(propertySymbol.escapedName)) {\n if (propertySymbol.declarations) {\n var decl = ts.first(propertySymbol.declarations);\n if (hasLateBindableName(decl)) {\n if (ts.isBinaryExpression(decl)) {\n var name = ts.getNameOfDeclaration(decl);\n if (name && ts.isElementAccessExpression(name) && ts.isPropertyAccessEntityNameExpression(name.argumentExpression)) {\n trackComputedName(name.argumentExpression, saveEnclosingDeclaration, context);\n }\n }\n else {\n trackComputedName(decl.name.expression, saveEnclosingDeclaration, context);\n }\n }\n }\n else if ((_a = context.tracker) === null || _a === void 0 ? void 0 : _a.reportNonSerializableProperty) {\n context.tracker.reportNonSerializableProperty(symbolToString(propertySymbol));\n }\n }\n context.enclosingDeclaration = propertySymbol.valueDeclaration || ((_b = propertySymbol.declarations) === null || _b === void 0 ? void 0 : _b[0]) || saveEnclosingDeclaration;\n var propertyName = getPropertyNameNodeForSymbol(propertySymbol, context);\n context.enclosingDeclaration = saveEnclosingDeclaration;\n context.approximateLength += (ts.symbolName(propertySymbol).length + 1);\n var optionalToken = propertySymbol.flags & 16777216 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined;\n if (propertySymbol.flags & (16 /* Function */ | 8192 /* Method */) && !getPropertiesOfObjectType(propertyType).length && !isReadonlySymbol(propertySymbol)) {\n var signatures = getSignaturesOfType(filterType(propertyType, function (t) { return !(t.flags & 32768 /* Undefined */); }), 0 /* Call */);\n for (var _i = 0, signatures_1 = signatures; _i < signatures_1.length; _i++) {\n var signature = signatures_1[_i];\n var methodDeclaration = signatureToSignatureDeclarationHelper(signature, 166 /* MethodSignature */, context, { name: propertyName, questionToken: optionalToken });\n typeElements.push(preserveCommentsOn(methodDeclaration));\n }\n }\n else {\n var propertyTypeNode = void 0;\n if (shouldUsePlaceholderForProperty(propertySymbol, context)) {\n propertyTypeNode = createElidedInformationPlaceholder(context);\n }\n else {\n if (propertyIsReverseMapped) {\n context.reverseMappedStack || (context.reverseMappedStack = []);\n context.reverseMappedStack.push(propertySymbol);\n }\n propertyTypeNode = propertyType ? serializeTypeForDeclaration(context, propertyType, propertySymbol, saveEnclosingDeclaration) : ts.factory.createKeywordTypeNode(129 /* AnyKeyword */);\n if (propertyIsReverseMapped) {\n context.reverseMappedStack.pop();\n }\n }\n var modifiers = isReadonlySymbol(propertySymbol) ? [ts.factory.createToken(143 /* ReadonlyKeyword */)] : undefined;\n if (modifiers) {\n context.approximateLength += 9;\n }\n var propertySignature = ts.factory.createPropertySignature(modifiers, propertyName, optionalToken, propertyTypeNode);\n typeElements.push(preserveCommentsOn(propertySignature));\n }\n function preserveCommentsOn(node) {\n var _a;\n if (ts.some(propertySymbol.declarations, function (d) { return d.kind === 342 /* JSDocPropertyTag */; })) {\n var d = (_a = propertySymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return d.kind === 342 /* JSDocPropertyTag */; });\n var commentText = ts.getTextOfJSDocComment(d.comment);\n if (commentText) {\n ts.setSyntheticLeadingComments(node, [{ kind: 3 /* MultiLineCommentTrivia */, text: \"*\\n * \" + commentText.replace(/\\n/g, \"\\n * \") + \"\\n \", pos: -1, end: -1, hasTrailingNewLine: true }]);\n }\n }\n else if (propertySymbol.valueDeclaration) {\n // Copy comments to node for declaration emit\n ts.setCommentRange(node, propertySymbol.valueDeclaration);\n }\n return node;\n }\n }\n function mapToTypeNodes(types, context, isBareList) {\n if (ts.some(types)) {\n if (checkTruncationLength(context)) {\n if (!isBareList) {\n return [ts.factory.createTypeReferenceNode(\"...\", /*typeArguments*/ undefined)];\n }\n else if (types.length > 2) {\n return [\n typeToTypeNodeHelper(types[0], context),\n ts.factory.createTypeReferenceNode(\"... \" + (types.length - 2) + \" more ...\", /*typeArguments*/ undefined),\n typeToTypeNodeHelper(types[types.length - 1], context)\n ];\n }\n }\n var mayHaveNameCollisions = !(context.flags & 64 /* UseFullyQualifiedType */);\n /** Map from type reference identifier text to [type, index in `result` where the type node is] */\n var seenNames = mayHaveNameCollisions ? ts.createUnderscoreEscapedMultiMap() : undefined;\n var result_5 = [];\n var i = 0;\n for (var _i = 0, types_2 = types; _i < types_2.length; _i++) {\n var type = types_2[_i];\n i++;\n if (checkTruncationLength(context) && (i + 2 < types.length - 1)) {\n result_5.push(ts.factory.createTypeReferenceNode(\"... \" + (types.length - i) + \" more ...\", /*typeArguments*/ undefined));\n var typeNode_1 = typeToTypeNodeHelper(types[types.length - 1], context);\n if (typeNode_1) {\n result_5.push(typeNode_1);\n }\n break;\n }\n context.approximateLength += 2; // Account for whitespace + separator\n var typeNode = typeToTypeNodeHelper(type, context);\n if (typeNode) {\n result_5.push(typeNode);\n if (seenNames && ts.isIdentifierTypeReference(typeNode)) {\n seenNames.add(typeNode.typeName.escapedText, [type, result_5.length - 1]);\n }\n }\n }\n if (seenNames) {\n // To avoid printing types like `[Foo, Foo]` or `Bar & Bar` where\n // occurrences of the same name actually come from different\n // namespaces, go through the single-identifier type reference nodes\n // we just generated, and see if any names were generated more than\n // once while referring to different types. If so, regenerate the\n // type node for each entry by that name with the\n // `UseFullyQualifiedType` flag enabled.\n var saveContextFlags = context.flags;\n context.flags |= 64 /* UseFullyQualifiedType */;\n seenNames.forEach(function (types) {\n if (!ts.arrayIsHomogeneous(types, function (_a, _b) {\n var a = _a[0];\n var b = _b[0];\n return typesAreSameReference(a, b);\n })) {\n for (var _i = 0, types_3 = types; _i < types_3.length; _i++) {\n var _a = types_3[_i], type = _a[0], resultIndex = _a[1];\n result_5[resultIndex] = typeToTypeNodeHelper(type, context);\n }\n }\n });\n context.flags = saveContextFlags;\n }\n return result_5;\n }\n }\n function typesAreSameReference(a, b) {\n return a === b\n || !!a.symbol && a.symbol === b.symbol\n || !!a.aliasSymbol && a.aliasSymbol === b.aliasSymbol;\n }\n function indexInfoToIndexSignatureDeclarationHelper(indexInfo, context, typeNode) {\n var name = ts.getNameFromIndexInfo(indexInfo) || \"x\";\n var indexerTypeNode = typeToTypeNodeHelper(indexInfo.keyType, context);\n var indexingParameter = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, name, \n /*questionToken*/ undefined, indexerTypeNode, \n /*initializer*/ undefined);\n if (!typeNode) {\n typeNode = typeToTypeNodeHelper(indexInfo.type || anyType, context);\n }\n if (!indexInfo.type && !(context.flags & 2097152 /* AllowEmptyIndexInfoType */)) {\n context.encounteredError = true;\n }\n context.approximateLength += (name.length + 4);\n return ts.factory.createIndexSignature(\n /*decorators*/ undefined, indexInfo.isReadonly ? [ts.factory.createToken(143 /* ReadonlyKeyword */)] : undefined, [indexingParameter], typeNode);\n }\n function signatureToSignatureDeclarationHelper(signature, kind, context, options) {\n var _a, _b, _c, _d;\n var suppressAny = context.flags & 256 /* SuppressAnyReturnType */;\n if (suppressAny)\n context.flags &= ~256 /* SuppressAnyReturnType */; // suppress only toplevel `any`s\n context.approximateLength += 3; // Usually a signature contributes a few more characters than this, but 3 is the minimum\n var typeParameters;\n var typeArguments;\n if (context.flags & 32 /* WriteTypeArgumentsOfSignature */ && signature.target && signature.mapper && signature.target.typeParameters) {\n typeArguments = signature.target.typeParameters.map(function (parameter) { return typeToTypeNodeHelper(instantiateType(parameter, signature.mapper), context); });\n }\n else {\n typeParameters = signature.typeParameters && signature.typeParameters.map(function (parameter) { return typeParameterToDeclaration(parameter, context); });\n }\n var expandedParams = getExpandedParameters(signature, /*skipUnionExpanding*/ true)[0];\n // If the expanded parameter list had a variadic in a non-trailing position, don't expand it\n var parameters = (ts.some(expandedParams, function (p) { return p !== expandedParams[expandedParams.length - 1] && !!(ts.getCheckFlags(p) & 32768 /* RestParameter */); }) ? signature.parameters : expandedParams).map(function (parameter) { return symbolToParameterDeclaration(parameter, context, kind === 169 /* Constructor */, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports); });\n if (signature.thisParameter) {\n var thisParameter = symbolToParameterDeclaration(signature.thisParameter, context);\n parameters.unshift(thisParameter);\n }\n var returnTypeNode;\n var typePredicate = getTypePredicateOfSignature(signature);\n if (typePredicate) {\n var assertsModifier = typePredicate.kind === 2 /* AssertsThis */ || typePredicate.kind === 3 /* AssertsIdentifier */ ?\n ts.factory.createToken(128 /* AssertsKeyword */) :\n undefined;\n var parameterName = typePredicate.kind === 1 /* Identifier */ || typePredicate.kind === 3 /* AssertsIdentifier */ ?\n ts.setEmitFlags(ts.factory.createIdentifier(typePredicate.parameterName), 16777216 /* NoAsciiEscaping */) :\n ts.factory.createThisTypeNode();\n var typeNode = typePredicate.type && typeToTypeNodeHelper(typePredicate.type, context);\n returnTypeNode = ts.factory.createTypePredicateNode(assertsModifier, parameterName, typeNode);\n }\n else {\n var returnType = getReturnTypeOfSignature(signature);\n if (returnType && !(suppressAny && isTypeAny(returnType))) {\n returnTypeNode = serializeReturnTypeForSignature(context, returnType, signature, options === null || options === void 0 ? void 0 : options.privateSymbolVisitor, options === null || options === void 0 ? void 0 : options.bundledImports);\n }\n else if (!suppressAny) {\n returnTypeNode = ts.factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n }\n var modifiers = options === null || options === void 0 ? void 0 : options.modifiers;\n if ((kind === 178 /* ConstructorType */) && signature.flags & 4 /* Abstract */) {\n var flags = ts.modifiersToFlags(modifiers);\n modifiers = ts.factory.createModifiersFromModifierFlags(flags | 128 /* Abstract */);\n }\n var node = kind === 172 /* CallSignature */ ? ts.factory.createCallSignature(typeParameters, parameters, returnTypeNode) :\n kind === 173 /* ConstructSignature */ ? ts.factory.createConstructSignature(typeParameters, parameters, returnTypeNode) :\n kind === 166 /* MethodSignature */ ? ts.factory.createMethodSignature(modifiers, (_a = options === null || options === void 0 ? void 0 : options.name) !== null && _a !== void 0 ? _a : ts.factory.createIdentifier(\"\"), options === null || options === void 0 ? void 0 : options.questionToken, typeParameters, parameters, returnTypeNode) :\n kind === 167 /* MethodDeclaration */ ? ts.factory.createMethodDeclaration(/*decorators*/ undefined, modifiers, /*asteriskToken*/ undefined, (_b = options === null || options === void 0 ? void 0 : options.name) !== null && _b !== void 0 ? _b : ts.factory.createIdentifier(\"\"), /*questionToken*/ undefined, typeParameters, parameters, returnTypeNode, /*body*/ undefined) :\n kind === 169 /* Constructor */ ? ts.factory.createConstructorDeclaration(/*decorators*/ undefined, modifiers, parameters, /*body*/ undefined) :\n kind === 170 /* GetAccessor */ ? ts.factory.createGetAccessorDeclaration(/*decorators*/ undefined, modifiers, (_c = options === null || options === void 0 ? void 0 : options.name) !== null && _c !== void 0 ? _c : ts.factory.createIdentifier(\"\"), parameters, returnTypeNode, /*body*/ undefined) :\n kind === 171 /* SetAccessor */ ? ts.factory.createSetAccessorDeclaration(/*decorators*/ undefined, modifiers, (_d = options === null || options === void 0 ? void 0 : options.name) !== null && _d !== void 0 ? _d : ts.factory.createIdentifier(\"\"), parameters, /*body*/ undefined) :\n kind === 174 /* IndexSignature */ ? ts.factory.createIndexSignature(/*decorators*/ undefined, modifiers, parameters, returnTypeNode) :\n kind === 312 /* JSDocFunctionType */ ? ts.factory.createJSDocFunctionType(parameters, returnTypeNode) :\n kind === 177 /* FunctionType */ ? ts.factory.createFunctionTypeNode(typeParameters, parameters, returnTypeNode !== null && returnTypeNode !== void 0 ? returnTypeNode : ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(\"\"))) :\n kind === 178 /* ConstructorType */ ? ts.factory.createConstructorTypeNode(modifiers, typeParameters, parameters, returnTypeNode !== null && returnTypeNode !== void 0 ? returnTypeNode : ts.factory.createTypeReferenceNode(ts.factory.createIdentifier(\"\"))) :\n kind === 254 /* FunctionDeclaration */ ? ts.factory.createFunctionDeclaration(/*decorators*/ undefined, modifiers, /*asteriskToken*/ undefined, (options === null || options === void 0 ? void 0 : options.name) ? ts.cast(options.name, ts.isIdentifier) : ts.factory.createIdentifier(\"\"), typeParameters, parameters, returnTypeNode, /*body*/ undefined) :\n kind === 211 /* FunctionExpression */ ? ts.factory.createFunctionExpression(modifiers, /*asteriskToken*/ undefined, (options === null || options === void 0 ? void 0 : options.name) ? ts.cast(options.name, ts.isIdentifier) : ts.factory.createIdentifier(\"\"), typeParameters, parameters, returnTypeNode, ts.factory.createBlock([])) :\n kind === 212 /* ArrowFunction */ ? ts.factory.createArrowFunction(modifiers, typeParameters, parameters, returnTypeNode, /*equalsGreaterThanToken*/ undefined, ts.factory.createBlock([])) :\n ts.Debug.assertNever(kind);\n if (typeArguments) {\n node.typeArguments = ts.factory.createNodeArray(typeArguments);\n }\n return node;\n }\n function typeParameterToDeclarationWithConstraint(type, context, constraintNode) {\n var savedContextFlags = context.flags;\n context.flags &= ~512 /* WriteTypeParametersInQualifiedName */; // Avoids potential infinite loop when building for a claimspace with a generic\n var name = typeParameterToName(type, context);\n var defaultParameter = getDefaultFromTypeParameter(type);\n var defaultParameterNode = defaultParameter && typeToTypeNodeHelper(defaultParameter, context);\n context.flags = savedContextFlags;\n return ts.factory.createTypeParameterDeclaration(name, constraintNode, defaultParameterNode);\n }\n function typeParameterToDeclaration(type, context, constraint) {\n if (constraint === void 0) { constraint = getConstraintOfTypeParameter(type); }\n var constraintNode = constraint && typeToTypeNodeHelper(constraint, context);\n return typeParameterToDeclarationWithConstraint(type, context, constraintNode);\n }\n function symbolToParameterDeclaration(parameterSymbol, context, preserveModifierFlags, privateSymbolVisitor, bundledImports) {\n var parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 162 /* Parameter */);\n if (!parameterDeclaration && !ts.isTransientSymbol(parameterSymbol)) {\n parameterDeclaration = ts.getDeclarationOfKind(parameterSymbol, 335 /* JSDocParameterTag */);\n }\n var parameterType = getTypeOfSymbol(parameterSymbol);\n if (parameterDeclaration && isRequiredInitializedParameter(parameterDeclaration)) {\n parameterType = getOptionalType(parameterType);\n }\n if ((context.flags & 1073741824 /* NoUndefinedOptionalParameterType */) && parameterDeclaration && !ts.isJSDocParameterTag(parameterDeclaration) && isOptionalUninitializedParameter(parameterDeclaration)) {\n parameterType = getTypeWithFacts(parameterType, 524288 /* NEUndefined */);\n }\n var parameterTypeNode = serializeTypeForDeclaration(context, parameterType, parameterSymbol, context.enclosingDeclaration, privateSymbolVisitor, bundledImports);\n var modifiers = !(context.flags & 8192 /* OmitParameterModifiers */) && preserveModifierFlags && parameterDeclaration && parameterDeclaration.modifiers ? parameterDeclaration.modifiers.map(ts.factory.cloneNode) : undefined;\n var isRest = parameterDeclaration && ts.isRestParameter(parameterDeclaration) || ts.getCheckFlags(parameterSymbol) & 32768 /* RestParameter */;\n var dotDotDotToken = isRest ? ts.factory.createToken(25 /* DotDotDotToken */) : undefined;\n var name = parameterDeclaration ? parameterDeclaration.name ?\n parameterDeclaration.name.kind === 79 /* Identifier */ ? ts.setEmitFlags(ts.factory.cloneNode(parameterDeclaration.name), 16777216 /* NoAsciiEscaping */) :\n parameterDeclaration.name.kind === 159 /* QualifiedName */ ? ts.setEmitFlags(ts.factory.cloneNode(parameterDeclaration.name.right), 16777216 /* NoAsciiEscaping */) :\n cloneBindingName(parameterDeclaration.name) :\n ts.symbolName(parameterSymbol) :\n ts.symbolName(parameterSymbol);\n var isOptional = parameterDeclaration && isOptionalParameter(parameterDeclaration) || ts.getCheckFlags(parameterSymbol) & 16384 /* OptionalParameter */;\n var questionToken = isOptional ? ts.factory.createToken(57 /* QuestionToken */) : undefined;\n var parameterNode = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, modifiers, dotDotDotToken, name, questionToken, parameterTypeNode, \n /*initializer*/ undefined);\n context.approximateLength += ts.symbolName(parameterSymbol).length + 3;\n return parameterNode;\n function cloneBindingName(node) {\n return elideInitializerAndSetEmitFlags(node);\n function elideInitializerAndSetEmitFlags(node) {\n if (context.tracker.trackSymbol && ts.isComputedPropertyName(node) && isLateBindableName(node)) {\n trackComputedName(node.expression, context.enclosingDeclaration, context);\n }\n var visited = ts.visitEachChild(node, elideInitializerAndSetEmitFlags, ts.nullTransformationContext, /*nodesVisitor*/ undefined, elideInitializerAndSetEmitFlags);\n if (ts.isBindingElement(visited)) {\n visited = ts.factory.updateBindingElement(visited, visited.dotDotDotToken, visited.propertyName, visited.name, \n /*initializer*/ undefined);\n }\n if (!ts.nodeIsSynthesized(visited)) {\n visited = ts.factory.cloneNode(visited);\n }\n return ts.setEmitFlags(visited, 1 /* SingleLine */ | 16777216 /* NoAsciiEscaping */);\n }\n }\n }\n function trackComputedName(accessExpression, enclosingDeclaration, context) {\n if (!context.tracker.trackSymbol)\n return;\n // get symbol of the first identifier of the entityName\n var firstIdentifier = ts.getFirstIdentifier(accessExpression);\n var name = resolveName(firstIdentifier, firstIdentifier.escapedText, 111551 /* Value */ | 1048576 /* ExportValue */, /*nodeNotFoundErrorMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true);\n if (name) {\n context.tracker.trackSymbol(name, enclosingDeclaration, 111551 /* Value */);\n }\n }\n function lookupSymbolChain(symbol, context, meaning, yieldModuleSymbol) {\n context.tracker.trackSymbol(symbol, context.enclosingDeclaration, meaning); // TODO: GH#18217\n return lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol);\n }\n function lookupSymbolChainWorker(symbol, context, meaning, yieldModuleSymbol) {\n // Try to get qualified name if the symbol is not a type parameter and there is an enclosing declaration.\n var chain;\n var isTypeParameter = symbol.flags & 262144 /* TypeParameter */;\n if (!isTypeParameter && (context.enclosingDeclaration || context.flags & 64 /* UseFullyQualifiedType */) && !(context.flags & 134217728 /* DoNotIncludeSymbolChain */)) {\n chain = ts.Debug.checkDefined(getSymbolChain(symbol, meaning, /*endOfChain*/ true));\n ts.Debug.assert(chain && chain.length > 0);\n }\n else {\n chain = [symbol];\n }\n return chain;\n /** @param endOfChain Set to false for recursive calls; non-recursive calls should always output something. */\n function getSymbolChain(symbol, meaning, endOfChain) {\n var accessibleSymbolChain = getAccessibleSymbolChain(symbol, context.enclosingDeclaration, meaning, !!(context.flags & 128 /* UseOnlyExternalAliasing */));\n var parentSpecifiers;\n if (!accessibleSymbolChain ||\n needsQualification(accessibleSymbolChain[0], context.enclosingDeclaration, accessibleSymbolChain.length === 1 ? meaning : getQualifiedLeftMeaning(meaning))) {\n // Go up and add our parent.\n var parents_1 = getContainersOfSymbol(accessibleSymbolChain ? accessibleSymbolChain[0] : symbol, context.enclosingDeclaration, meaning);\n if (ts.length(parents_1)) {\n parentSpecifiers = parents_1.map(function (symbol) {\n return ts.some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)\n ? getSpecifierForModuleSymbol(symbol, context)\n : undefined;\n });\n var indices = parents_1.map(function (_, i) { return i; });\n indices.sort(sortByBestName);\n var sortedParents = indices.map(function (i) { return parents_1[i]; });\n for (var _i = 0, sortedParents_1 = sortedParents; _i < sortedParents_1.length; _i++) {\n var parent = sortedParents_1[_i];\n var parentChain = getSymbolChain(parent, getQualifiedLeftMeaning(meaning), /*endOfChain*/ false);\n if (parentChain) {\n if (parent.exports && parent.exports.get(\"export=\" /* ExportEquals */) &&\n getSymbolIfSameReference(parent.exports.get(\"export=\" /* ExportEquals */), symbol)) {\n // parentChain root _is_ symbol - symbol is a module export=, so it kinda looks like it's own parent\n // No need to lookup an alias for the symbol in itself\n accessibleSymbolChain = parentChain;\n break;\n }\n accessibleSymbolChain = parentChain.concat(accessibleSymbolChain || [getAliasForSymbolInContainer(parent, symbol) || symbol]);\n break;\n }\n }\n }\n }\n if (accessibleSymbolChain) {\n return accessibleSymbolChain;\n }\n if (\n // If this is the last part of outputting the symbol, always output. The cases apply only to parent symbols.\n endOfChain ||\n // If a parent symbol is an anonymous type, don't write it.\n !(symbol.flags & (2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */))) {\n // If a parent symbol is an external module, don't write it. (We prefer just `x` vs `\"foo/bar\".x`.)\n if (!endOfChain && !yieldModuleSymbol && !!ts.forEach(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n return;\n }\n return [symbol];\n }\n function sortByBestName(a, b) {\n var specifierA = parentSpecifiers[a];\n var specifierB = parentSpecifiers[b];\n if (specifierA && specifierB) {\n var isBRelative = ts.pathIsRelative(specifierB);\n if (ts.pathIsRelative(specifierA) === isBRelative) {\n // Both relative or both non-relative, sort by number of parts\n return ts.moduleSpecifiers.countPathComponents(specifierA) - ts.moduleSpecifiers.countPathComponents(specifierB);\n }\n if (isBRelative) {\n // A is non-relative, B is relative: prefer A\n return -1;\n }\n // A is relative, B is non-relative: prefer B\n return 1;\n }\n return 0;\n }\n }\n }\n function typeParametersToTypeParameterDeclarations(symbol, context) {\n var typeParameterNodes;\n var targetSymbol = getTargetSymbol(symbol);\n if (targetSymbol.flags & (32 /* Class */ | 64 /* Interface */ | 524288 /* TypeAlias */)) {\n typeParameterNodes = ts.factory.createNodeArray(ts.map(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol), function (tp) { return typeParameterToDeclaration(tp, context); }));\n }\n return typeParameterNodes;\n }\n function lookupTypeParameterNodes(chain, index, context) {\n var _a;\n ts.Debug.assert(chain && 0 <= index && index < chain.length);\n var symbol = chain[index];\n var symbolId = getSymbolId(symbol);\n if ((_a = context.typeParameterSymbolList) === null || _a === void 0 ? void 0 : _a.has(symbolId)) {\n return undefined;\n }\n (context.typeParameterSymbolList || (context.typeParameterSymbolList = new ts.Set())).add(symbolId);\n var typeParameterNodes;\n if (context.flags & 512 /* WriteTypeParametersInQualifiedName */ && index < (chain.length - 1)) {\n var parentSymbol = symbol;\n var nextSymbol_1 = chain[index + 1];\n if (ts.getCheckFlags(nextSymbol_1) & 1 /* Instantiated */) {\n var params = getTypeParametersOfClassOrInterface(parentSymbol.flags & 2097152 /* Alias */ ? resolveAlias(parentSymbol) : parentSymbol);\n typeParameterNodes = mapToTypeNodes(ts.map(params, function (t) { return getMappedType(t, nextSymbol_1.mapper); }), context);\n }\n else {\n typeParameterNodes = typeParametersToTypeParameterDeclarations(symbol, context);\n }\n }\n return typeParameterNodes;\n }\n /**\n * Given A[B][C][D], finds A[B]\n */\n function getTopmostIndexedAccessType(top) {\n if (ts.isIndexedAccessTypeNode(top.objectType)) {\n return getTopmostIndexedAccessType(top.objectType);\n }\n return top;\n }\n function getSpecifierForModuleSymbol(symbol, context) {\n var _a;\n var file = ts.getDeclarationOfKind(symbol, 300 /* SourceFile */);\n if (!file) {\n var equivalentFileSymbol = ts.firstDefined(symbol.declarations, function (d) { return getFileSymbolIfFileSymbolExportEqualsContainer(d, symbol); });\n if (equivalentFileSymbol) {\n file = ts.getDeclarationOfKind(equivalentFileSymbol, 300 /* SourceFile */);\n }\n }\n if (file && file.moduleName !== undefined) {\n // Use the amd name if it is available\n return file.moduleName;\n }\n if (!file) {\n if (context.tracker.trackReferencedAmbientModule) {\n var ambientDecls = ts.filter(symbol.declarations, ts.isAmbientModule);\n if (ts.length(ambientDecls)) {\n for (var _i = 0, _b = ambientDecls; _i < _b.length; _i++) {\n var decl = _b[_i];\n context.tracker.trackReferencedAmbientModule(decl, symbol);\n }\n }\n }\n if (ambientModuleSymbolRegex.test(symbol.escapedName)) {\n return symbol.escapedName.substring(1, symbol.escapedName.length - 1);\n }\n }\n if (!context.enclosingDeclaration || !context.tracker.moduleResolverHost) {\n // If there's no context declaration, we can't lookup a non-ambient specifier, so we just use the symbol name\n if (ambientModuleSymbolRegex.test(symbol.escapedName)) {\n return symbol.escapedName.substring(1, symbol.escapedName.length - 1);\n }\n return ts.getSourceFileOfNode(ts.getNonAugmentationDeclaration(symbol)).fileName; // A resolver may not be provided for baselines and errors - in those cases we use the fileName in full\n }\n var contextFile = ts.getSourceFileOfNode(ts.getOriginalNode(context.enclosingDeclaration));\n var links = getSymbolLinks(symbol);\n var specifier = links.specifierCache && links.specifierCache.get(contextFile.path);\n if (!specifier) {\n var isBundle_1 = !!ts.outFile(compilerOptions);\n // For declaration bundles, we need to generate absolute paths relative to the common source dir for imports,\n // just like how the declaration emitter does for the ambient module declarations - we can easily accomplish this\n // using the `baseUrl` compiler option (which we would otherwise never use in declaration emit) and a non-relative\n // specifier preference\n var moduleResolverHost = context.tracker.moduleResolverHost;\n var specifierCompilerOptions = isBundle_1 ? __assign(__assign({}, compilerOptions), { baseUrl: moduleResolverHost.getCommonSourceDirectory() }) : compilerOptions;\n specifier = ts.first(ts.moduleSpecifiers.getModuleSpecifiers(symbol, checker, specifierCompilerOptions, contextFile, moduleResolverHost, { importModuleSpecifierPreference: isBundle_1 ? \"non-relative\" : \"project-relative\", importModuleSpecifierEnding: isBundle_1 ? \"minimal\" : undefined }));\n (_a = links.specifierCache) !== null && _a !== void 0 ? _a : (links.specifierCache = new ts.Map());\n links.specifierCache.set(contextFile.path, specifier);\n }\n return specifier;\n }\n function symbolToTypeNode(symbol, context, meaning, overrideTypeArguments) {\n var chain = lookupSymbolChain(symbol, context, meaning, !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */)); // If we're using aliases outside the current scope, dont bother with the module\n var isTypeOf = meaning === 111551 /* Value */;\n if (ts.some(chain[0].declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n // module is root, must use `ImportTypeNode`\n var nonRootParts = chain.length > 1 ? createAccessFromSymbolChain(chain, chain.length - 1, 1) : undefined;\n var typeParameterNodes = overrideTypeArguments || lookupTypeParameterNodes(chain, 0, context);\n var specifier = getSpecifierForModuleSymbol(chain[0], context);\n if (!(context.flags & 67108864 /* AllowNodeModulesRelativePaths */) && ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.NodeJs && specifier.indexOf(\"/node_modules/\") >= 0) {\n // If ultimately we can only name the symbol with a reference that dives into a `node_modules` folder, we should error\n // since declaration files with these kinds of references are liable to fail when published :(\n context.encounteredError = true;\n if (context.tracker.reportLikelyUnsafeImportRequiredError) {\n context.tracker.reportLikelyUnsafeImportRequiredError(specifier);\n }\n }\n var lit = ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(specifier));\n if (context.tracker.trackExternalModuleSymbolOfImportTypeNode)\n context.tracker.trackExternalModuleSymbolOfImportTypeNode(chain[0]);\n context.approximateLength += specifier.length + 10; // specifier + import(\"\")\n if (!nonRootParts || ts.isEntityName(nonRootParts)) {\n if (nonRootParts) {\n var lastId = ts.isIdentifier(nonRootParts) ? nonRootParts : nonRootParts.right;\n lastId.typeArguments = undefined;\n }\n return ts.factory.createImportTypeNode(lit, nonRootParts, typeParameterNodes, isTypeOf);\n }\n else {\n var splitNode = getTopmostIndexedAccessType(nonRootParts);\n var qualifier = splitNode.objectType.typeName;\n return ts.factory.createIndexedAccessTypeNode(ts.factory.createImportTypeNode(lit, qualifier, typeParameterNodes, isTypeOf), splitNode.indexType);\n }\n }\n var entityName = createAccessFromSymbolChain(chain, chain.length - 1, 0);\n if (ts.isIndexedAccessTypeNode(entityName)) {\n return entityName; // Indexed accesses can never be `typeof`\n }\n if (isTypeOf) {\n return ts.factory.createTypeQueryNode(entityName);\n }\n else {\n var lastId = ts.isIdentifier(entityName) ? entityName : entityName.right;\n var lastTypeArgs = lastId.typeArguments;\n lastId.typeArguments = undefined;\n return ts.factory.createTypeReferenceNode(entityName, lastTypeArgs);\n }\n function createAccessFromSymbolChain(chain, index, stopper) {\n var typeParameterNodes = index === (chain.length - 1) ? overrideTypeArguments : lookupTypeParameterNodes(chain, index, context);\n var symbol = chain[index];\n var parent = chain[index - 1];\n var symbolName;\n if (index === 0) {\n context.flags |= 16777216 /* InInitialEntityName */;\n symbolName = getNameOfSymbolAsWritten(symbol, context);\n context.approximateLength += (symbolName ? symbolName.length : 0) + 1;\n context.flags ^= 16777216 /* InInitialEntityName */;\n }\n else {\n if (parent && getExportsOfSymbol(parent)) {\n var exports_1 = getExportsOfSymbol(parent);\n ts.forEachEntry(exports_1, function (ex, name) {\n if (getSymbolIfSameReference(ex, symbol) && !isLateBoundName(name) && name !== \"export=\" /* ExportEquals */) {\n symbolName = ts.unescapeLeadingUnderscores(name);\n return true;\n }\n });\n }\n }\n if (!symbolName) {\n symbolName = getNameOfSymbolAsWritten(symbol, context);\n }\n context.approximateLength += symbolName.length + 1;\n if (!(context.flags & 16 /* ForbidIndexedAccessSymbolReferences */) && parent &&\n getMembersOfSymbol(parent) && getMembersOfSymbol(parent).get(symbol.escapedName) &&\n getSymbolIfSameReference(getMembersOfSymbol(parent).get(symbol.escapedName), symbol)) {\n // Should use an indexed access\n var LHS = createAccessFromSymbolChain(chain, index - 1, stopper);\n if (ts.isIndexedAccessTypeNode(LHS)) {\n return ts.factory.createIndexedAccessTypeNode(LHS, ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(symbolName)));\n }\n else {\n return ts.factory.createIndexedAccessTypeNode(ts.factory.createTypeReferenceNode(LHS, typeParameterNodes), ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(symbolName)));\n }\n }\n var identifier = ts.setEmitFlags(ts.factory.createIdentifier(symbolName, typeParameterNodes), 16777216 /* NoAsciiEscaping */);\n identifier.symbol = symbol;\n if (index > stopper) {\n var LHS = createAccessFromSymbolChain(chain, index - 1, stopper);\n if (!ts.isEntityName(LHS)) {\n return ts.Debug.fail(\"Impossible construct - an export of an indexed access cannot be reachable\");\n }\n return ts.factory.createQualifiedName(LHS, identifier);\n }\n return identifier;\n }\n }\n function typeParameterShadowsNameInScope(escapedName, context, type) {\n var result = resolveName(context.enclosingDeclaration, escapedName, 788968 /* Type */, /*nameNotFoundArg*/ undefined, escapedName, /*isUse*/ false);\n if (result) {\n if (result.flags & 262144 /* TypeParameter */ && result === type.symbol) {\n return false;\n }\n return true;\n }\n return false;\n }\n function typeParameterToName(type, context) {\n var _a, _b;\n if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */ && context.typeParameterNames) {\n var cached = context.typeParameterNames.get(getTypeId(type));\n if (cached) {\n return cached;\n }\n }\n var result = symbolToName(type.symbol, context, 788968 /* Type */, /*expectsIdentifier*/ true);\n if (!(result.kind & 79 /* Identifier */)) {\n return ts.factory.createIdentifier(\"(Missing type parameter)\");\n }\n if (context.flags & 4 /* GenerateNamesForShadowedTypeParams */) {\n var rawtext = result.escapedText;\n var i = ((_a = context.typeParameterNamesByTextNextNameCount) === null || _a === void 0 ? void 0 : _a.get(rawtext)) || 0;\n var text = rawtext;\n while (((_b = context.typeParameterNamesByText) === null || _b === void 0 ? void 0 : _b.has(text)) || typeParameterShadowsNameInScope(text, context, type)) {\n i++;\n text = rawtext + \"_\" + i;\n }\n if (text !== rawtext) {\n result = ts.factory.createIdentifier(text, result.typeArguments);\n }\n // avoiding iterations of the above loop turns out to be worth it when `i` starts to get large, so we cache the max\n // `i` we've used thus far, to save work later\n (context.typeParameterNamesByTextNextNameCount || (context.typeParameterNamesByTextNextNameCount = new ts.Map())).set(rawtext, i);\n (context.typeParameterNames || (context.typeParameterNames = new ts.Map())).set(getTypeId(type), result);\n (context.typeParameterNamesByText || (context.typeParameterNamesByText = new ts.Set())).add(rawtext);\n }\n return result;\n }\n function symbolToName(symbol, context, meaning, expectsIdentifier) {\n var chain = lookupSymbolChain(symbol, context, meaning);\n if (expectsIdentifier && chain.length !== 1\n && !context.encounteredError\n && !(context.flags & 65536 /* AllowQualifiedNameInPlaceOfIdentifier */)) {\n context.encounteredError = true;\n }\n return createEntityNameFromSymbolChain(chain, chain.length - 1);\n function createEntityNameFromSymbolChain(chain, index) {\n var typeParameterNodes = lookupTypeParameterNodes(chain, index, context);\n var symbol = chain[index];\n if (index === 0) {\n context.flags |= 16777216 /* InInitialEntityName */;\n }\n var symbolName = getNameOfSymbolAsWritten(symbol, context);\n if (index === 0) {\n context.flags ^= 16777216 /* InInitialEntityName */;\n }\n var identifier = ts.setEmitFlags(ts.factory.createIdentifier(symbolName, typeParameterNodes), 16777216 /* NoAsciiEscaping */);\n identifier.symbol = symbol;\n return index > 0 ? ts.factory.createQualifiedName(createEntityNameFromSymbolChain(chain, index - 1), identifier) : identifier;\n }\n }\n function symbolToExpression(symbol, context, meaning) {\n var chain = lookupSymbolChain(symbol, context, meaning);\n return createExpressionFromSymbolChain(chain, chain.length - 1);\n function createExpressionFromSymbolChain(chain, index) {\n var typeParameterNodes = lookupTypeParameterNodes(chain, index, context);\n var symbol = chain[index];\n if (index === 0) {\n context.flags |= 16777216 /* InInitialEntityName */;\n }\n var symbolName = getNameOfSymbolAsWritten(symbol, context);\n if (index === 0) {\n context.flags ^= 16777216 /* InInitialEntityName */;\n }\n var firstChar = symbolName.charCodeAt(0);\n if (ts.isSingleOrDoubleQuote(firstChar) && ts.some(symbol.declarations, hasNonGlobalAugmentationExternalModuleSymbol)) {\n return ts.factory.createStringLiteral(getSpecifierForModuleSymbol(symbol, context));\n }\n var canUsePropertyAccess = firstChar === 35 /* hash */ ?\n symbolName.length > 1 && ts.isIdentifierStart(symbolName.charCodeAt(1), languageVersion) :\n ts.isIdentifierStart(firstChar, languageVersion);\n if (index === 0 || canUsePropertyAccess) {\n var identifier = ts.setEmitFlags(ts.factory.createIdentifier(symbolName, typeParameterNodes), 16777216 /* NoAsciiEscaping */);\n identifier.symbol = symbol;\n return index > 0 ? ts.factory.createPropertyAccessExpression(createExpressionFromSymbolChain(chain, index - 1), identifier) : identifier;\n }\n else {\n if (firstChar === 91 /* openBracket */) {\n symbolName = symbolName.substring(1, symbolName.length - 1);\n firstChar = symbolName.charCodeAt(0);\n }\n var expression = void 0;\n if (ts.isSingleOrDoubleQuote(firstChar)) {\n expression = ts.factory.createStringLiteral(symbolName\n .substring(1, symbolName.length - 1)\n .replace(/\\\\./g, function (s) { return s.substring(1); }), firstChar === 39 /* singleQuote */);\n }\n else if ((\"\" + +symbolName) === symbolName) {\n expression = ts.factory.createNumericLiteral(+symbolName);\n }\n if (!expression) {\n expression = ts.setEmitFlags(ts.factory.createIdentifier(symbolName, typeParameterNodes), 16777216 /* NoAsciiEscaping */);\n expression.symbol = symbol;\n }\n return ts.factory.createElementAccessExpression(createExpressionFromSymbolChain(chain, index - 1), expression);\n }\n }\n }\n function isStringNamed(d) {\n var name = ts.getNameOfDeclaration(d);\n return !!name && ts.isStringLiteral(name);\n }\n function isSingleQuotedStringNamed(d) {\n var name = ts.getNameOfDeclaration(d);\n return !!(name && ts.isStringLiteral(name) && (name.singleQuote || !ts.nodeIsSynthesized(name) && ts.startsWith(ts.getTextOfNode(name, /*includeTrivia*/ false), \"'\")));\n }\n function getPropertyNameNodeForSymbol(symbol, context) {\n var singleQuote = !!ts.length(symbol.declarations) && ts.every(symbol.declarations, isSingleQuotedStringNamed);\n var fromNameType = getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote);\n if (fromNameType) {\n return fromNameType;\n }\n var rawName = ts.unescapeLeadingUnderscores(symbol.escapedName);\n var stringNamed = !!ts.length(symbol.declarations) && ts.every(symbol.declarations, isStringNamed);\n return createPropertyNameNodeForIdentifierOrLiteral(rawName, stringNamed, singleQuote);\n }\n // See getNameForSymbolFromNameType for a stringy equivalent\n function getPropertyNameNodeForSymbolFromNameType(symbol, context, singleQuote) {\n var nameType = getSymbolLinks(symbol).nameType;\n if (nameType) {\n if (nameType.flags & 384 /* StringOrNumberLiteral */) {\n var name = \"\" + nameType.value;\n if (!ts.isIdentifierText(name, compilerOptions.target) && !isNumericLiteralName(name)) {\n return ts.factory.createStringLiteral(name, !!singleQuote);\n }\n if (isNumericLiteralName(name) && ts.startsWith(name, \"-\")) {\n return ts.factory.createComputedPropertyName(ts.factory.createNumericLiteral(+name));\n }\n return createPropertyNameNodeForIdentifierOrLiteral(name);\n }\n if (nameType.flags & 8192 /* UniqueESSymbol */) {\n return ts.factory.createComputedPropertyName(symbolToExpression(nameType.symbol, context, 111551 /* Value */));\n }\n }\n }\n function createPropertyNameNodeForIdentifierOrLiteral(name, stringNamed, singleQuote) {\n return ts.isIdentifierText(name, compilerOptions.target) ? ts.factory.createIdentifier(name) :\n !stringNamed && isNumericLiteralName(name) && +name >= 0 ? ts.factory.createNumericLiteral(+name) :\n ts.factory.createStringLiteral(name, !!singleQuote);\n }\n function cloneNodeBuilderContext(context) {\n var initial = __assign({}, context);\n // Make type parameters created within this context not consume the name outside this context\n // The symbol serializer ends up creating many sibling scopes that all need \"separate\" contexts when\n // it comes to naming things - within a normal `typeToTypeNode` call, the node builder only ever descends\n // through the type tree, so the only cases where we could have used distinct sibling scopes was when there\n // were multiple generic overloads with similar generated type parameter names\n // The effect:\n // When we write out\n // export const x: (x: T) => T\n // export const y: (x: T) => T\n // we write it out like that, rather than as\n // export const x: (x: T) => T\n // export const y: (x: T_1) => T_1\n if (initial.typeParameterNames) {\n initial.typeParameterNames = new ts.Map(initial.typeParameterNames);\n }\n if (initial.typeParameterNamesByText) {\n initial.typeParameterNamesByText = new ts.Set(initial.typeParameterNamesByText);\n }\n if (initial.typeParameterSymbolList) {\n initial.typeParameterSymbolList = new ts.Set(initial.typeParameterSymbolList);\n }\n initial.tracker = wrapSymbolTrackerToReportForContext(initial, initial.tracker);\n return initial;\n }\n function getDeclarationWithTypeAnnotation(symbol, enclosingDeclaration) {\n return symbol.declarations && ts.find(symbol.declarations, function (s) { return !!ts.getEffectiveTypeAnnotationNode(s) && (!enclosingDeclaration || !!ts.findAncestor(s, function (n) { return n === enclosingDeclaration; })); });\n }\n function existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type) {\n return !(ts.getObjectFlags(type) & 4 /* Reference */) || !ts.isTypeReferenceNode(existing) || ts.length(existing.typeArguments) >= getMinTypeArgumentCount(type.target.typeParameters);\n }\n /**\n * Unlike `typeToTypeNodeHelper`, this handles setting up the `AllowUniqueESSymbolType` flag\n * so a `unique symbol` is returned when appropriate for the input symbol, rather than `typeof sym`\n */\n function serializeTypeForDeclaration(context, type, symbol, enclosingDeclaration, includePrivateSymbol, bundled) {\n if (type !== errorType && enclosingDeclaration) {\n var declWithExistingAnnotation = getDeclarationWithTypeAnnotation(symbol, enclosingDeclaration);\n if (declWithExistingAnnotation && !ts.isFunctionLikeDeclaration(declWithExistingAnnotation) && !ts.isGetAccessorDeclaration(declWithExistingAnnotation)) {\n // try to reuse the existing annotation\n var existing = ts.getEffectiveTypeAnnotationNode(declWithExistingAnnotation);\n if (getTypeFromTypeNode(existing) === type && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(existing, type)) {\n var result_6 = serializeExistingTypeNode(context, existing, includePrivateSymbol, bundled);\n if (result_6) {\n return result_6;\n }\n }\n }\n }\n var oldFlags = context.flags;\n if (type.flags & 8192 /* UniqueESSymbol */ &&\n type.symbol === symbol && (!context.enclosingDeclaration || ts.some(symbol.declarations, function (d) { return ts.getSourceFileOfNode(d) === ts.getSourceFileOfNode(context.enclosingDeclaration); }))) {\n context.flags |= 1048576 /* AllowUniqueESSymbolType */;\n }\n var result = typeToTypeNodeHelper(type, context);\n context.flags = oldFlags;\n return result;\n }\n function serializeReturnTypeForSignature(context, type, signature, includePrivateSymbol, bundled) {\n if (type !== errorType && context.enclosingDeclaration) {\n var annotation = signature.declaration && ts.getEffectiveReturnTypeNode(signature.declaration);\n if (!!ts.findAncestor(annotation, function (n) { return n === context.enclosingDeclaration; }) && annotation) {\n var annotated = getTypeFromTypeNode(annotation);\n var thisInstantiated = annotated.flags & 262144 /* TypeParameter */ && annotated.isThisType ? instantiateType(annotated, signature.mapper) : annotated;\n if (thisInstantiated === type && existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(annotation, type)) {\n var result = serializeExistingTypeNode(context, annotation, includePrivateSymbol, bundled);\n if (result) {\n return result;\n }\n }\n }\n }\n return typeToTypeNodeHelper(type, context);\n }\n function trackExistingEntityName(node, context, includePrivateSymbol) {\n var _a, _b;\n var introducesError = false;\n var leftmost = ts.getFirstIdentifier(node);\n if (ts.isInJSFile(node) && (ts.isExportsIdentifier(leftmost) || ts.isModuleExportsAccessExpression(leftmost.parent) || (ts.isQualifiedName(leftmost.parent) && ts.isModuleIdentifier(leftmost.parent.left) && ts.isExportsIdentifier(leftmost.parent.right)))) {\n introducesError = true;\n return { introducesError: introducesError, node: node };\n }\n var sym = resolveEntityName(leftmost, 67108863 /* All */, /*ignoreErrors*/ true, /*dontResolveALias*/ true);\n if (sym) {\n if (isSymbolAccessible(sym, context.enclosingDeclaration, 67108863 /* All */, /*shouldComputeAliasesToMakeVisible*/ false).accessibility !== 0 /* Accessible */) {\n introducesError = true;\n }\n else {\n (_b = (_a = context.tracker) === null || _a === void 0 ? void 0 : _a.trackSymbol) === null || _b === void 0 ? void 0 : _b.call(_a, sym, context.enclosingDeclaration, 67108863 /* All */);\n includePrivateSymbol === null || includePrivateSymbol === void 0 ? void 0 : includePrivateSymbol(sym);\n }\n if (ts.isIdentifier(node)) {\n var name = sym.flags & 262144 /* TypeParameter */ ? typeParameterToName(getDeclaredTypeOfSymbol(sym), context) : ts.factory.cloneNode(node);\n name.symbol = sym; // for quickinfo, which uses identifier symbol information\n return { introducesError: introducesError, node: ts.setEmitFlags(ts.setOriginalNode(name, node), 16777216 /* NoAsciiEscaping */) };\n }\n }\n return { introducesError: introducesError, node: node };\n }\n function serializeExistingTypeNode(context, existing, includePrivateSymbol, bundled) {\n if (cancellationToken && cancellationToken.throwIfCancellationRequested) {\n cancellationToken.throwIfCancellationRequested();\n }\n var hadError = false;\n var file = ts.getSourceFileOfNode(existing);\n var transformed = ts.visitNode(existing, visitExistingNodeTreeSymbols);\n if (hadError) {\n return undefined;\n }\n return transformed === existing ? ts.setTextRange(ts.factory.cloneNode(existing), existing) : transformed;\n function visitExistingNodeTreeSymbols(node) {\n // We don't _actually_ support jsdoc namepath types, emit `any` instead\n if (ts.isJSDocAllType(node) || node.kind === 314 /* JSDocNamepathType */) {\n return ts.factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n if (ts.isJSDocUnknownType(node)) {\n return ts.factory.createKeywordTypeNode(153 /* UnknownKeyword */);\n }\n if (ts.isJSDocNullableType(node)) {\n return ts.factory.createUnionTypeNode([ts.visitNode(node.type, visitExistingNodeTreeSymbols), ts.factory.createLiteralTypeNode(ts.factory.createNull())]);\n }\n if (ts.isJSDocOptionalType(node)) {\n return ts.factory.createUnionTypeNode([ts.visitNode(node.type, visitExistingNodeTreeSymbols), ts.factory.createKeywordTypeNode(151 /* UndefinedKeyword */)]);\n }\n if (ts.isJSDocNonNullableType(node)) {\n return ts.visitNode(node.type, visitExistingNodeTreeSymbols);\n }\n if (ts.isJSDocVariadicType(node)) {\n return ts.factory.createArrayTypeNode(ts.visitNode(node.type, visitExistingNodeTreeSymbols));\n }\n if (ts.isJSDocTypeLiteral(node)) {\n return ts.factory.createTypeLiteralNode(ts.map(node.jsDocPropertyTags, function (t) {\n var name = ts.isIdentifier(t.name) ? t.name : t.name.right;\n var typeViaParent = getTypeOfPropertyOfType(getTypeFromTypeNode(node), name.escapedText);\n var overrideTypeNode = typeViaParent && t.typeExpression && getTypeFromTypeNode(t.typeExpression.type) !== typeViaParent ? typeToTypeNodeHelper(typeViaParent, context) : undefined;\n return ts.factory.createPropertySignature(\n /*modifiers*/ undefined, name, t.isBracketed || t.typeExpression && ts.isJSDocOptionalType(t.typeExpression.type) ? ts.factory.createToken(57 /* QuestionToken */) : undefined, overrideTypeNode || (t.typeExpression && ts.visitNode(t.typeExpression.type, visitExistingNodeTreeSymbols)) || ts.factory.createKeywordTypeNode(129 /* AnyKeyword */));\n }));\n }\n if (ts.isTypeReferenceNode(node) && ts.isIdentifier(node.typeName) && node.typeName.escapedText === \"\") {\n return ts.setOriginalNode(ts.factory.createKeywordTypeNode(129 /* AnyKeyword */), node);\n }\n if ((ts.isExpressionWithTypeArguments(node) || ts.isTypeReferenceNode(node)) && ts.isJSDocIndexSignature(node)) {\n return ts.factory.createTypeLiteralNode([ts.factory.createIndexSignature(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, [ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotdotdotToken*/ undefined, \"x\", \n /*questionToken*/ undefined, ts.visitNode(node.typeArguments[0], visitExistingNodeTreeSymbols))], ts.visitNode(node.typeArguments[1], visitExistingNodeTreeSymbols))]);\n }\n if (ts.isJSDocFunctionType(node)) {\n if (ts.isJSDocConstructSignature(node)) {\n var newTypeNode_1;\n return ts.factory.createConstructorTypeNode(node.modifiers, ts.visitNodes(node.typeParameters, visitExistingNodeTreeSymbols), ts.mapDefined(node.parameters, function (p, i) { return p.name && ts.isIdentifier(p.name) && p.name.escapedText === \"new\" ? (newTypeNode_1 = p.type, undefined) : ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, getEffectiveDotDotDotForParameter(p), getNameForJSDocFunctionParameter(p, i), p.questionToken, ts.visitNode(p.type, visitExistingNodeTreeSymbols), \n /*initializer*/ undefined); }), ts.visitNode(newTypeNode_1 || node.type, visitExistingNodeTreeSymbols) || ts.factory.createKeywordTypeNode(129 /* AnyKeyword */));\n }\n else {\n return ts.factory.createFunctionTypeNode(ts.visitNodes(node.typeParameters, visitExistingNodeTreeSymbols), ts.map(node.parameters, function (p, i) { return ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, getEffectiveDotDotDotForParameter(p), getNameForJSDocFunctionParameter(p, i), p.questionToken, ts.visitNode(p.type, visitExistingNodeTreeSymbols), \n /*initializer*/ undefined); }), ts.visitNode(node.type, visitExistingNodeTreeSymbols) || ts.factory.createKeywordTypeNode(129 /* AnyKeyword */));\n }\n }\n if (ts.isTypeReferenceNode(node) && ts.isInJSDoc(node) && (!existingTypeNodeIsNotReferenceOrIsReferenceWithCompatibleTypeArgumentCount(node, getTypeFromTypeNode(node)) || getIntendedTypeFromJSDocTypeReference(node) || unknownSymbol === resolveTypeReferenceName(getTypeReferenceName(node), 788968 /* Type */, /*ignoreErrors*/ true))) {\n return ts.setOriginalNode(typeToTypeNodeHelper(getTypeFromTypeNode(node), context), node);\n }\n if (ts.isLiteralImportTypeNode(node)) {\n var nodeSymbol = getNodeLinks(node).resolvedSymbol;\n if (ts.isInJSDoc(node) &&\n nodeSymbol &&\n (\n // The import type resolved using jsdoc fallback logic\n (!node.isTypeOf && !(nodeSymbol.flags & 788968 /* Type */)) ||\n // The import type had type arguments autofilled by js fallback logic\n !(ts.length(node.typeArguments) >= getMinTypeArgumentCount(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(nodeSymbol))))) {\n return ts.setOriginalNode(typeToTypeNodeHelper(getTypeFromTypeNode(node), context), node);\n }\n return ts.factory.updateImportTypeNode(node, ts.factory.updateLiteralTypeNode(node.argument, rewriteModuleSpecifier(node, node.argument.literal)), node.qualifier, ts.visitNodes(node.typeArguments, visitExistingNodeTreeSymbols, ts.isTypeNode), node.isTypeOf);\n }\n if (ts.isEntityName(node) || ts.isEntityNameExpression(node)) {\n var _a = trackExistingEntityName(node, context, includePrivateSymbol), introducesError = _a.introducesError, result = _a.node;\n hadError = hadError || introducesError;\n if (result !== node) {\n return result;\n }\n }\n if (file && ts.isTupleTypeNode(node) && (ts.getLineAndCharacterOfPosition(file, node.pos).line === ts.getLineAndCharacterOfPosition(file, node.end).line)) {\n ts.setEmitFlags(node, 1 /* SingleLine */);\n }\n return ts.visitEachChild(node, visitExistingNodeTreeSymbols, ts.nullTransformationContext);\n function getEffectiveDotDotDotForParameter(p) {\n return p.dotDotDotToken || (p.type && ts.isJSDocVariadicType(p.type) ? ts.factory.createToken(25 /* DotDotDotToken */) : undefined);\n }\n /** Note that `new:T` parameters are not handled, but should be before calling this function. */\n function getNameForJSDocFunctionParameter(p, index) {\n return p.name && ts.isIdentifier(p.name) && p.name.escapedText === \"this\" ? \"this\"\n : getEffectiveDotDotDotForParameter(p) ? \"args\"\n : \"arg\" + index;\n }\n function rewriteModuleSpecifier(parent, lit) {\n if (bundled) {\n if (context.tracker && context.tracker.moduleResolverHost) {\n var targetFile = getExternalModuleFileFromDeclaration(parent);\n if (targetFile) {\n var getCanonicalFileName = ts.createGetCanonicalFileName(!!host.useCaseSensitiveFileNames);\n var resolverHost = {\n getCanonicalFileName: getCanonicalFileName,\n getCurrentDirectory: function () { return context.tracker.moduleResolverHost.getCurrentDirectory(); },\n getCommonSourceDirectory: function () { return context.tracker.moduleResolverHost.getCommonSourceDirectory(); }\n };\n var newName = ts.getResolvedExternalModuleName(resolverHost, targetFile);\n return ts.factory.createStringLiteral(newName);\n }\n }\n }\n else {\n if (context.tracker && context.tracker.trackExternalModuleSymbolOfImportTypeNode) {\n var moduleSym = resolveExternalModuleNameWorker(lit, lit, /*moduleNotFoundError*/ undefined);\n if (moduleSym) {\n context.tracker.trackExternalModuleSymbolOfImportTypeNode(moduleSym);\n }\n }\n }\n return lit;\n }\n }\n }\n function symbolTableToDeclarationStatements(symbolTable, context, bundled) {\n var serializePropertySymbolForClass = makeSerializePropertySymbol(ts.factory.createPropertyDeclaration, 167 /* MethodDeclaration */, /*useAcessors*/ true);\n var serializePropertySymbolForInterfaceWorker = makeSerializePropertySymbol(function (_decorators, mods, name, question, type) { return ts.factory.createPropertySignature(mods, name, question, type); }, 166 /* MethodSignature */, /*useAcessors*/ false);\n // TODO: Use `setOriginalNode` on original declaration names where possible so these declarations see some kind of\n // declaration mapping\n // We save the enclosing declaration off here so it's not adjusted by well-meaning declaration\n // emit codepaths which want to apply more specific contexts (so we can still refer to the root real declaration\n // we're trying to emit from later on)\n var enclosingDeclaration = context.enclosingDeclaration;\n var results = [];\n var visitedSymbols = new ts.Set();\n var deferredPrivatesStack = [];\n var oldcontext = context;\n context = __assign(__assign({}, oldcontext), { usedSymbolNames: new ts.Set(oldcontext.usedSymbolNames), remappedSymbolNames: new ts.Map(), tracker: __assign(__assign({}, oldcontext.tracker), { trackSymbol: function (sym, decl, meaning) {\n var accessibleResult = isSymbolAccessible(sym, decl, meaning, /*computeAliases*/ false);\n if (accessibleResult.accessibility === 0 /* Accessible */) {\n // Lookup the root symbol of the chain of refs we'll use to access it and serialize it\n var chain = lookupSymbolChainWorker(sym, context, meaning);\n if (!(sym.flags & 4 /* Property */)) {\n includePrivateSymbol(chain[0]);\n }\n }\n else if (oldcontext.tracker && oldcontext.tracker.trackSymbol) {\n return oldcontext.tracker.trackSymbol(sym, decl, meaning);\n }\n return false;\n } }) });\n context.tracker = wrapSymbolTrackerToReportForContext(context, context.tracker);\n ts.forEachEntry(symbolTable, function (symbol, name) {\n var baseName = ts.unescapeLeadingUnderscores(name);\n void getInternalSymbolName(symbol, baseName); // Called to cache values into `usedSymbolNames` and `remappedSymbolNames`\n });\n var addingDeclare = !bundled;\n var exportEquals = symbolTable.get(\"export=\" /* ExportEquals */);\n if (exportEquals && symbolTable.size > 1 && exportEquals.flags & 2097152 /* Alias */) {\n symbolTable = ts.createSymbolTable();\n // Remove extraneous elements from root symbol table (they'll be mixed back in when the target of the `export=` is looked up)\n symbolTable.set(\"export=\" /* ExportEquals */, exportEquals);\n }\n visitSymbolTable(symbolTable);\n return mergeRedundantStatements(results);\n function isIdentifierAndNotUndefined(node) {\n return !!node && node.kind === 79 /* Identifier */;\n }\n function getNamesOfDeclaration(statement) {\n if (ts.isVariableStatement(statement)) {\n return ts.filter(ts.map(statement.declarationList.declarations, ts.getNameOfDeclaration), isIdentifierAndNotUndefined);\n }\n return ts.filter([ts.getNameOfDeclaration(statement)], isIdentifierAndNotUndefined);\n }\n function flattenExportAssignedNamespace(statements) {\n var exportAssignment = ts.find(statements, ts.isExportAssignment);\n var nsIndex = ts.findIndex(statements, ts.isModuleDeclaration);\n var ns = nsIndex !== -1 ? statements[nsIndex] : undefined;\n if (ns && exportAssignment && exportAssignment.isExportEquals &&\n ts.isIdentifier(exportAssignment.expression) && ts.isIdentifier(ns.name) && ts.idText(ns.name) === ts.idText(exportAssignment.expression) &&\n ns.body && ts.isModuleBlock(ns.body)) {\n // Pass 0: Correct situations where a module has both an `export = ns` and multiple top-level exports by stripping the export modifiers from\n // the top-level exports and exporting them in the targeted ns, as can occur when a js file has both typedefs and `module.export` assignments\n var excessExports = ts.filter(statements, function (s) { return !!(ts.getEffectiveModifierFlags(s) & 1 /* Export */); });\n var name_2 = ns.name;\n var body = ns.body;\n if (ts.length(excessExports)) {\n ns = ts.factory.updateModuleDeclaration(ns, ns.decorators, ns.modifiers, ns.name, body = ts.factory.updateModuleBlock(body, ts.factory.createNodeArray(__spreadArray(__spreadArray([], ns.body.statements, true), [ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports(ts.map(ts.flatMap(excessExports, function (e) { return getNamesOfDeclaration(e); }), function (id) { return ts.factory.createExportSpecifier(/*alias*/ undefined, id); })), \n /*moduleSpecifier*/ undefined)], false))));\n statements = __spreadArray(__spreadArray(__spreadArray([], statements.slice(0, nsIndex), true), [ns], false), statements.slice(nsIndex + 1), true);\n }\n // Pass 1: Flatten `export namespace _exports {} export = _exports;` so long as the `export=` only points at a single namespace declaration\n if (!ts.find(statements, function (s) { return s !== ns && ts.nodeHasName(s, name_2); })) {\n results = [];\n // If the namespace contains no export assignments or declarations, and no declarations flagged with `export`, then _everything_ is exported -\n // to respect this as the top level, we need to add an `export` modifier to everything\n var mixinExportFlag_1 = !ts.some(body.statements, function (s) { return ts.hasSyntacticModifier(s, 1 /* Export */) || ts.isExportAssignment(s) || ts.isExportDeclaration(s); });\n ts.forEach(body.statements, function (s) {\n addResult(s, mixinExportFlag_1 ? 1 /* Export */ : 0 /* None */); // Recalculates the ambient (and export, if applicable from above) flag\n });\n statements = __spreadArray(__spreadArray([], ts.filter(statements, function (s) { return s !== ns && s !== exportAssignment; }), true), results, true);\n }\n }\n return statements;\n }\n function mergeExportDeclarations(statements) {\n // Pass 2: Combine all `export {}` declarations\n var exports = ts.filter(statements, function (d) { return ts.isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && ts.isNamedExports(d.exportClause); });\n if (ts.length(exports) > 1) {\n var nonExports = ts.filter(statements, function (d) { return !ts.isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause; });\n statements = __spreadArray(__spreadArray([], nonExports, true), [ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports(ts.flatMap(exports, function (e) { return ts.cast(e.exportClause, ts.isNamedExports).elements; })), \n /*moduleSpecifier*/ undefined)], false);\n }\n // Pass 2b: Also combine all `export {} from \"...\"` declarations as needed\n var reexports = ts.filter(statements, function (d) { return ts.isExportDeclaration(d) && !!d.moduleSpecifier && !!d.exportClause && ts.isNamedExports(d.exportClause); });\n if (ts.length(reexports) > 1) {\n var groups = ts.group(reexports, function (decl) { return ts.isStringLiteral(decl.moduleSpecifier) ? \">\" + decl.moduleSpecifier.text : \">\"; });\n if (groups.length !== reexports.length) {\n var _loop_9 = function (group_1) {\n if (group_1.length > 1) {\n // remove group members from statements and then merge group members and add back to statements\n statements = __spreadArray(__spreadArray([], ts.filter(statements, function (s) { return group_1.indexOf(s) === -1; }), true), [\n ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports(ts.flatMap(group_1, function (e) { return ts.cast(e.exportClause, ts.isNamedExports).elements; })), group_1[0].moduleSpecifier)\n ], false);\n }\n };\n for (var _i = 0, groups_1 = groups; _i < groups_1.length; _i++) {\n var group_1 = groups_1[_i];\n _loop_9(group_1);\n }\n }\n }\n return statements;\n }\n function inlineExportModifiers(statements) {\n // Pass 3: Move all `export {}`'s to `export` modifiers where possible\n var index = ts.findIndex(statements, function (d) { return ts.isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && ts.isNamedExports(d.exportClause); });\n if (index >= 0) {\n var exportDecl = statements[index];\n var replacements = ts.mapDefined(exportDecl.exportClause.elements, function (e) {\n if (!e.propertyName) {\n // export {name} - look thru `statements` for `name`, and if all results can take an `export` modifier, do so and filter it\n var indices = ts.indicesOf(statements);\n var associatedIndices = ts.filter(indices, function (i) { return ts.nodeHasName(statements[i], e.name); });\n if (ts.length(associatedIndices) && ts.every(associatedIndices, function (i) { return canHaveExportModifier(statements[i]); })) {\n for (var _i = 0, associatedIndices_1 = associatedIndices; _i < associatedIndices_1.length; _i++) {\n var index_1 = associatedIndices_1[_i];\n statements[index_1] = addExportModifier(statements[index_1]);\n }\n return undefined;\n }\n }\n return e;\n });\n if (!ts.length(replacements)) {\n // all clauses removed, remove the export declaration\n ts.orderedRemoveItemAt(statements, index);\n }\n else {\n // some items filtered, others not - update the export declaration\n statements[index] = ts.factory.updateExportDeclaration(exportDecl, exportDecl.decorators, exportDecl.modifiers, exportDecl.isTypeOnly, ts.factory.updateNamedExports(exportDecl.exportClause, replacements), exportDecl.moduleSpecifier);\n }\n }\n return statements;\n }\n function mergeRedundantStatements(statements) {\n statements = flattenExportAssignedNamespace(statements);\n statements = mergeExportDeclarations(statements);\n statements = inlineExportModifiers(statements);\n // Not a cleanup, but as a final step: If there is a mix of `export` and non-`export` declarations, but no `export =` or `export {}` add a `export {};` so\n // declaration privacy is respected.\n if (enclosingDeclaration &&\n ((ts.isSourceFile(enclosingDeclaration) && ts.isExternalOrCommonJsModule(enclosingDeclaration)) || ts.isModuleDeclaration(enclosingDeclaration)) &&\n (!ts.some(statements, ts.isExternalModuleIndicator) || (!ts.hasScopeMarker(statements) && ts.some(statements, ts.needsScopeMarker)))) {\n statements.push(ts.createEmptyExports(ts.factory));\n }\n return statements;\n }\n function canHaveExportModifier(node) {\n return ts.isEnumDeclaration(node) ||\n ts.isVariableStatement(node) ||\n ts.isFunctionDeclaration(node) ||\n ts.isClassDeclaration(node) ||\n (ts.isModuleDeclaration(node) && !ts.isExternalModuleAugmentation(node) && !ts.isGlobalScopeAugmentation(node)) ||\n ts.isInterfaceDeclaration(node) ||\n isTypeDeclaration(node);\n }\n function addExportModifier(node) {\n var flags = (ts.getEffectiveModifierFlags(node) | 1 /* Export */) & ~2 /* Ambient */;\n return ts.factory.updateModifiers(node, flags);\n }\n function removeExportModifier(node) {\n var flags = ts.getEffectiveModifierFlags(node) & ~1 /* Export */;\n return ts.factory.updateModifiers(node, flags);\n }\n function visitSymbolTable(symbolTable, suppressNewPrivateContext, propertyAsAlias) {\n if (!suppressNewPrivateContext) {\n deferredPrivatesStack.push(new ts.Map());\n }\n symbolTable.forEach(function (symbol) {\n serializeSymbol(symbol, /*isPrivate*/ false, !!propertyAsAlias);\n });\n if (!suppressNewPrivateContext) {\n // deferredPrivates will be filled up by visiting the symbol table\n // And will continue to iterate as elements are added while visited `deferredPrivates`\n // (As that's how a map iterator is defined to work)\n deferredPrivatesStack[deferredPrivatesStack.length - 1].forEach(function (symbol) {\n serializeSymbol(symbol, /*isPrivate*/ true, !!propertyAsAlias);\n });\n deferredPrivatesStack.pop();\n }\n }\n function serializeSymbol(symbol, isPrivate, propertyAsAlias) {\n // cache visited list based on merged symbol, since we want to use the unmerged top-level symbol, but\n // still skip reserializing it if we encounter the merged product later on\n var visitedSym = getMergedSymbol(symbol);\n if (visitedSymbols.has(getSymbolId(visitedSym))) {\n return; // Already printed\n }\n visitedSymbols.add(getSymbolId(visitedSym));\n // Only actually serialize symbols within the correct enclosing declaration, otherwise do nothing with the out-of-context symbol\n var skipMembershipCheck = !isPrivate; // We only call this on exported symbols when we know they're in the correct scope\n if (skipMembershipCheck || (!!ts.length(symbol.declarations) && ts.some(symbol.declarations, function (d) { return !!ts.findAncestor(d, function (n) { return n === enclosingDeclaration; }); }))) {\n var oldContext = context;\n context = cloneNodeBuilderContext(context);\n var result = serializeSymbolWorker(symbol, isPrivate, propertyAsAlias);\n if (context.reportedDiagnostic) {\n oldcontext.reportedDiagnostic = context.reportedDiagnostic; // hoist diagnostic result into outer context\n }\n context = oldContext;\n return result;\n }\n }\n // Synthesize declarations for a symbol - might be an Interface, a Class, a Namespace, a Type, a Variable (const, let, or var), an Alias\n // or a merge of some number of those.\n // An interesting challenge is ensuring that when classes merge with namespaces and interfaces, is keeping\n // each symbol in only one of the representations\n // Also, synthesizing a default export of some kind\n // If it's an alias: emit `export default ref`\n // If it's a property: emit `export default _default` with a `_default` prop\n // If it's a class/interface/function: emit a class/interface/function with a `default` modifier\n // These forms can merge, eg (`export default 12; export default interface A {}`)\n function serializeSymbolWorker(symbol, isPrivate, propertyAsAlias) {\n var _a, _b;\n var symbolName = ts.unescapeLeadingUnderscores(symbol.escapedName);\n var isDefault = symbol.escapedName === \"default\" /* Default */;\n if (isPrivate && !(context.flags & 131072 /* AllowAnonymousIdentifier */) && ts.isStringANonContextualKeyword(symbolName) && !isDefault) {\n // Oh no. We cannot use this symbol's name as it's name... It's likely some jsdoc had an invalid name like `export` or `default` :(\n context.encounteredError = true;\n // TODO: Issue error via symbol tracker?\n return; // If we need to emit a private with a keyword name, we're done for, since something else will try to refer to it by that name\n }\n var needsPostExportDefault = isDefault && !!(symbol.flags & -113 /* ExportDoesNotSupportDefaultModifier */\n || (symbol.flags & 16 /* Function */ && ts.length(getPropertiesOfType(getTypeOfSymbol(symbol))))) && !(symbol.flags & 2097152 /* Alias */); // An alias symbol should preclude needing to make an alias ourselves\n var needsExportDeclaration = !needsPostExportDefault && !isPrivate && ts.isStringANonContextualKeyword(symbolName) && !isDefault;\n // `serializeVariableOrProperty` will handle adding the export declaration if it is run (since `getInternalSymbolName` will create the name mapping), so we need to ensuer we unset `needsExportDeclaration` if it is\n if (needsPostExportDefault || needsExportDeclaration) {\n isPrivate = true;\n }\n var modifierFlags = (!isPrivate ? 1 /* Export */ : 0) | (isDefault && !needsPostExportDefault ? 512 /* Default */ : 0);\n var isConstMergedWithNS = symbol.flags & 1536 /* Module */ &&\n symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */) &&\n symbol.escapedName !== \"export=\" /* ExportEquals */;\n var isConstMergedWithNSPrintableAsSignatureMerge = isConstMergedWithNS && isTypeRepresentableAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol);\n if (symbol.flags & (16 /* Function */ | 8192 /* Method */) || isConstMergedWithNSPrintableAsSignatureMerge) {\n serializeAsFunctionNamespaceMerge(getTypeOfSymbol(symbol), symbol, getInternalSymbolName(symbol, symbolName), modifierFlags);\n }\n if (symbol.flags & 524288 /* TypeAlias */) {\n serializeTypeAlias(symbol, symbolName, modifierFlags);\n }\n // Need to skip over export= symbols below - json source files get a single `Property` flagged\n // symbol of name `export=` which needs to be handled like an alias. It's not great, but it is what it is.\n if (symbol.flags & (2 /* BlockScopedVariable */ | 1 /* FunctionScopedVariable */ | 4 /* Property */)\n && symbol.escapedName !== \"export=\" /* ExportEquals */\n && !(symbol.flags & 4194304 /* Prototype */)\n && !(symbol.flags & 32 /* Class */)\n && !isConstMergedWithNSPrintableAsSignatureMerge) {\n if (propertyAsAlias) {\n var createdExport = serializeMaybeAliasAssignment(symbol);\n if (createdExport) {\n needsExportDeclaration = false;\n needsPostExportDefault = false;\n }\n }\n else {\n var type = getTypeOfSymbol(symbol);\n var localName = getInternalSymbolName(symbol, symbolName);\n if (!(symbol.flags & 16 /* Function */) && isTypeRepresentableAsFunctionNamespaceMerge(type, symbol)) {\n // If the type looks like a function declaration + ns could represent it, and it's type is sourced locally, rewrite it into a function declaration + ns\n serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags);\n }\n else {\n // A Class + Property merge is made for a `module.exports.Member = class {}`, and it doesn't serialize well as either a class _or_ a property symbol - in fact, _it behaves like an alias!_\n // `var` is `FunctionScopedVariable`, `const` and `let` are `BlockScopedVariable`, and `module.exports.thing =` is `Property`\n var flags = !(symbol.flags & 2 /* BlockScopedVariable */) ? undefined\n : isConstVariable(symbol) ? 2 /* Const */\n : 1 /* Let */;\n var name = (needsPostExportDefault || !(symbol.flags & 4 /* Property */)) ? localName : getUnusedName(localName, symbol);\n var textRange = symbol.declarations && ts.find(symbol.declarations, function (d) { return ts.isVariableDeclaration(d); });\n if (textRange && ts.isVariableDeclarationList(textRange.parent) && textRange.parent.declarations.length === 1) {\n textRange = textRange.parent.parent;\n }\n var propertyAccessRequire = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isPropertyAccessExpression);\n if (propertyAccessRequire && ts.isBinaryExpression(propertyAccessRequire.parent) && ts.isIdentifier(propertyAccessRequire.parent.right)\n && ((_b = type.symbol) === null || _b === void 0 ? void 0 : _b.valueDeclaration) && ts.isSourceFile(type.symbol.valueDeclaration)) {\n var alias = localName === propertyAccessRequire.parent.right.escapedText ? undefined : propertyAccessRequire.parent.right;\n addResult(ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(alias, localName)])), 0 /* None */);\n context.tracker.trackSymbol(type.symbol, context.enclosingDeclaration, 111551 /* Value */);\n }\n else {\n var statement = ts.setTextRange(ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([\n ts.factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, serializeTypeForDeclaration(context, type, symbol, enclosingDeclaration, includePrivateSymbol, bundled))\n ], flags)), textRange);\n addResult(statement, name !== localName ? modifierFlags & ~1 /* Export */ : modifierFlags);\n if (name !== localName && !isPrivate) {\n // We rename the variable declaration we generate for Property symbols since they may have a name which\n // conflicts with a local declaration. For example, given input:\n // ```\n // function g() {}\n // module.exports.g = g\n // ```\n // In such a situation, we have a local variable named `g`, and a separate exported variable named `g`.\n // Naively, we would emit\n // ```\n // function g() {}\n // export const g: typeof g;\n // ```\n // That's obviously incorrect - the `g` in the type annotation needs to refer to the local `g`, but\n // the export declaration shadows it.\n // To work around that, we instead write\n // ```\n // function g() {}\n // const g_1: typeof g;\n // export { g_1 as g };\n // ```\n // To create an export named `g` that does _not_ shadow the local `g`\n addResult(ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(name, localName)])), 0 /* None */);\n needsExportDeclaration = false;\n needsPostExportDefault = false;\n }\n }\n }\n }\n }\n if (symbol.flags & 384 /* Enum */) {\n serializeEnum(symbol, symbolName, modifierFlags);\n }\n if (symbol.flags & 32 /* Class */) {\n if (symbol.flags & 4 /* Property */\n && symbol.valueDeclaration\n && ts.isBinaryExpression(symbol.valueDeclaration.parent)\n && ts.isClassExpression(symbol.valueDeclaration.parent.right)) {\n // Looks like a `module.exports.Sub = class {}` - if we serialize `symbol` as a class, the result will have no members,\n // since the classiness is actually from the target of the effective alias the symbol is. yes. A BlockScopedVariable|Class|Property\n // _really_ acts like an Alias, and none of a BlockScopedVariable, Class, or Property. This is the travesty of JS binding today.\n serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName), modifierFlags);\n }\n else {\n serializeAsClass(symbol, getInternalSymbolName(symbol, symbolName), modifierFlags);\n }\n }\n if ((symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && (!isConstMergedWithNS || isTypeOnlyNamespace(symbol))) || isConstMergedWithNSPrintableAsSignatureMerge) {\n serializeModule(symbol, symbolName, modifierFlags);\n }\n // The class meaning serialization should handle serializing all interface members\n if (symbol.flags & 64 /* Interface */ && !(symbol.flags & 32 /* Class */)) {\n serializeInterface(symbol, symbolName, modifierFlags);\n }\n if (symbol.flags & 2097152 /* Alias */) {\n serializeAsAlias(symbol, getInternalSymbolName(symbol, symbolName), modifierFlags);\n }\n if (symbol.flags & 4 /* Property */ && symbol.escapedName === \"export=\" /* ExportEquals */) {\n serializeMaybeAliasAssignment(symbol);\n }\n if (symbol.flags & 8388608 /* ExportStar */) {\n // synthesize export * from \"moduleReference\"\n // Straightforward - only one thing to do - make an export declaration\n if (symbol.declarations) {\n for (var _i = 0, _c = symbol.declarations; _i < _c.length; _i++) {\n var node = _c[_i];\n var resolvedModule = resolveExternalModuleName(node, node.moduleSpecifier);\n if (!resolvedModule)\n continue;\n addResult(ts.factory.createExportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*isTypeOnly*/ false, /*exportClause*/ undefined, ts.factory.createStringLiteral(getSpecifierForModuleSymbol(resolvedModule, context))), 0 /* None */);\n }\n }\n }\n if (needsPostExportDefault) {\n addResult(ts.factory.createExportAssignment(/*decorators*/ undefined, /*modifiers*/ undefined, /*isExportAssignment*/ false, ts.factory.createIdentifier(getInternalSymbolName(symbol, symbolName))), 0 /* None */);\n }\n else if (needsExportDeclaration) {\n addResult(ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(getInternalSymbolName(symbol, symbolName), symbolName)])), 0 /* None */);\n }\n }\n function includePrivateSymbol(symbol) {\n if (ts.some(symbol.declarations, ts.isParameterDeclaration))\n return;\n ts.Debug.assertIsDefined(deferredPrivatesStack[deferredPrivatesStack.length - 1]);\n getUnusedName(ts.unescapeLeadingUnderscores(symbol.escapedName), symbol); // Call to cache unique name for symbol\n // Blanket moving (import) aliases into the root private context should work, since imports are not valid within namespaces\n // (so they must have been in the root to begin with if they were real imports) cjs `require` aliases (an upcoming feature)\n // will throw a wrench in this, since those may have been nested, but we'll need to synthesize them in the outer scope\n // anyway, as that's the only place the import they translate to is valid. In such a case, we might need to use a unique name\n // for the moved import; which hopefully the above `getUnusedName` call should produce.\n var isExternalImportAlias = !!(symbol.flags & 2097152 /* Alias */) && !ts.some(symbol.declarations, function (d) {\n return !!ts.findAncestor(d, ts.isExportDeclaration) ||\n ts.isNamespaceExport(d) ||\n (ts.isImportEqualsDeclaration(d) && !ts.isExternalModuleReference(d.moduleReference));\n });\n deferredPrivatesStack[isExternalImportAlias ? 0 : (deferredPrivatesStack.length - 1)].set(getSymbolId(symbol), symbol);\n }\n function isExportingScope(enclosingDeclaration) {\n return ((ts.isSourceFile(enclosingDeclaration) && (ts.isExternalOrCommonJsModule(enclosingDeclaration) || ts.isJsonSourceFile(enclosingDeclaration))) ||\n (ts.isAmbientModule(enclosingDeclaration) && !ts.isGlobalScopeAugmentation(enclosingDeclaration)));\n }\n // Prepends a `declare` and/or `export` modifier if the context requires it, and then adds `node` to `result` and returns `node`\n function addResult(node, additionalModifierFlags) {\n if (ts.canHaveModifiers(node)) {\n var newModifierFlags = 0 /* None */;\n var enclosingDeclaration_1 = context.enclosingDeclaration &&\n (ts.isJSDocTypeAlias(context.enclosingDeclaration) ? ts.getSourceFileOfNode(context.enclosingDeclaration) : context.enclosingDeclaration);\n if (additionalModifierFlags & 1 /* Export */ &&\n enclosingDeclaration_1 && (isExportingScope(enclosingDeclaration_1) || ts.isModuleDeclaration(enclosingDeclaration_1)) &&\n canHaveExportModifier(node)) {\n // Classes, namespaces, variables, functions, interfaces, and types should all be `export`ed in a module context if not private\n newModifierFlags |= 1 /* Export */;\n }\n if (addingDeclare && !(newModifierFlags & 1 /* Export */) &&\n (!enclosingDeclaration_1 || !(enclosingDeclaration_1.flags & 8388608 /* Ambient */)) &&\n (ts.isEnumDeclaration(node) || ts.isVariableStatement(node) || ts.isFunctionDeclaration(node) || ts.isClassDeclaration(node) || ts.isModuleDeclaration(node))) {\n // Classes, namespaces, variables, enums, and functions all need `declare` modifiers to be valid in a declaration file top-level scope\n newModifierFlags |= 2 /* Ambient */;\n }\n if ((additionalModifierFlags & 512 /* Default */) && (ts.isClassDeclaration(node) || ts.isInterfaceDeclaration(node) || ts.isFunctionDeclaration(node))) {\n newModifierFlags |= 512 /* Default */;\n }\n if (newModifierFlags) {\n node = ts.factory.updateModifiers(node, newModifierFlags | ts.getEffectiveModifierFlags(node));\n }\n }\n results.push(node);\n }\n function serializeTypeAlias(symbol, symbolName, modifierFlags) {\n var _a;\n var aliasType = getDeclaredTypeOfTypeAlias(symbol);\n var typeParams = getSymbolLinks(symbol).typeParameters;\n var typeParamDecls = ts.map(typeParams, function (p) { return typeParameterToDeclaration(p, context); });\n var jsdocAliasDecl = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isJSDocTypeAlias);\n var commentText = ts.getTextOfJSDocComment(jsdocAliasDecl ? jsdocAliasDecl.comment || jsdocAliasDecl.parent.comment : undefined);\n var oldFlags = context.flags;\n context.flags |= 8388608 /* InTypeAlias */;\n var oldEnclosingDecl = context.enclosingDeclaration;\n context.enclosingDeclaration = jsdocAliasDecl;\n var typeNode = jsdocAliasDecl && jsdocAliasDecl.typeExpression\n && ts.isJSDocTypeExpression(jsdocAliasDecl.typeExpression)\n && serializeExistingTypeNode(context, jsdocAliasDecl.typeExpression.type, includePrivateSymbol, bundled)\n || typeToTypeNodeHelper(aliasType, context);\n addResult(ts.setSyntheticLeadingComments(ts.factory.createTypeAliasDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, getInternalSymbolName(symbol, symbolName), typeParamDecls, typeNode), !commentText ? [] : [{ kind: 3 /* MultiLineCommentTrivia */, text: \"*\\n * \" + commentText.replace(/\\n/g, \"\\n * \") + \"\\n \", pos: -1, end: -1, hasTrailingNewLine: true }]), modifierFlags);\n context.flags = oldFlags;\n context.enclosingDeclaration = oldEnclosingDecl;\n }\n function serializeInterface(symbol, symbolName, modifierFlags) {\n var interfaceType = getDeclaredTypeOfClassOrInterface(symbol);\n var localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n var typeParamDecls = ts.map(localParams, function (p) { return typeParameterToDeclaration(p, context); });\n var baseTypes = getBaseTypes(interfaceType);\n var baseType = ts.length(baseTypes) ? getIntersectionType(baseTypes) : undefined;\n var members = ts.flatMap(getPropertiesOfType(interfaceType), function (p) { return serializePropertySymbolForInterface(p, baseType); });\n var callSignatures = serializeSignatures(0 /* Call */, interfaceType, baseType, 172 /* CallSignature */);\n var constructSignatures = serializeSignatures(1 /* Construct */, interfaceType, baseType, 173 /* ConstructSignature */);\n var indexSignatures = serializeIndexSignatures(interfaceType, baseType);\n var heritageClauses = !ts.length(baseTypes) ? undefined : [ts.factory.createHeritageClause(94 /* ExtendsKeyword */, ts.mapDefined(baseTypes, function (b) { return trySerializeAsTypeReference(b, 111551 /* Value */); }))];\n addResult(ts.factory.createInterfaceDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, getInternalSymbolName(symbol, symbolName), typeParamDecls, heritageClauses, __spreadArray(__spreadArray(__spreadArray(__spreadArray([], indexSignatures, true), constructSignatures, true), callSignatures, true), members, true)), modifierFlags);\n }\n function getNamespaceMembersForSerialization(symbol) {\n return !symbol.exports ? [] : ts.filter(ts.arrayFrom(symbol.exports.values()), isNamespaceMember);\n }\n function isTypeOnlyNamespace(symbol) {\n return ts.every(getNamespaceMembersForSerialization(symbol), function (m) { return !(resolveSymbol(m).flags & 111551 /* Value */); });\n }\n function serializeModule(symbol, symbolName, modifierFlags) {\n var members = getNamespaceMembersForSerialization(symbol);\n // Split NS members up by declaration - members whose parent symbol is the ns symbol vs those whose is not (but were added in later via merging)\n var locationMap = ts.arrayToMultiMap(members, function (m) { return m.parent && m.parent === symbol ? \"real\" : \"merged\"; });\n var realMembers = locationMap.get(\"real\") || ts.emptyArray;\n var mergedMembers = locationMap.get(\"merged\") || ts.emptyArray;\n // TODO: `suppressNewPrivateContext` is questionable -we need to simply be emitting privates in whatever scope they were declared in, rather\n // than whatever scope we traverse to them in. That's a bit of a complex rewrite, since we're not _actually_ tracking privates at all in advance,\n // so we don't even have placeholders to fill in.\n if (ts.length(realMembers)) {\n var localName = getInternalSymbolName(symbol, symbolName);\n serializeAsNamespaceDeclaration(realMembers, localName, modifierFlags, !!(symbol.flags & (16 /* Function */ | 67108864 /* Assignment */)));\n }\n if (ts.length(mergedMembers)) {\n var containingFile_1 = ts.getSourceFileOfNode(context.enclosingDeclaration);\n var localName = getInternalSymbolName(symbol, symbolName);\n var nsBody = ts.factory.createModuleBlock([ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports(ts.mapDefined(ts.filter(mergedMembers, function (n) { return n.escapedName !== \"export=\" /* ExportEquals */; }), function (s) {\n var _a, _b;\n var name = ts.unescapeLeadingUnderscores(s.escapedName);\n var localName = getInternalSymbolName(s, name);\n var aliasDecl = s.declarations && getDeclarationOfAliasSymbol(s);\n if (containingFile_1 && (aliasDecl ? containingFile_1 !== ts.getSourceFileOfNode(aliasDecl) : !ts.some(s.declarations, function (d) { return ts.getSourceFileOfNode(d) === containingFile_1; }))) {\n (_b = (_a = context.tracker) === null || _a === void 0 ? void 0 : _a.reportNonlocalAugmentation) === null || _b === void 0 ? void 0 : _b.call(_a, containingFile_1, symbol, s);\n return undefined;\n }\n var target = aliasDecl && getTargetOfAliasDeclaration(aliasDecl, /*dontRecursivelyResolve*/ true);\n includePrivateSymbol(target || s);\n var targetName = target ? getInternalSymbolName(target, ts.unescapeLeadingUnderscores(target.escapedName)) : localName;\n return ts.factory.createExportSpecifier(name === targetName ? undefined : targetName, name);\n })))]);\n addResult(ts.factory.createModuleDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createIdentifier(localName), nsBody, 16 /* Namespace */), 0 /* None */);\n }\n }\n function serializeEnum(symbol, symbolName, modifierFlags) {\n addResult(ts.factory.createEnumDeclaration(\n /*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags(isConstEnumSymbol(symbol) ? 2048 /* Const */ : 0), getInternalSymbolName(symbol, symbolName), ts.map(ts.filter(getPropertiesOfType(getTypeOfSymbol(symbol)), function (p) { return !!(p.flags & 8 /* EnumMember */); }), function (p) {\n // TODO: Handle computed names\n // I hate that to get the initialized value we need to walk back to the declarations here; but there's no\n // other way to get the possible const value of an enum member that I'm aware of, as the value is cached\n // _on the declaration_, not on the declaration's symbol...\n var initializedValue = p.declarations && p.declarations[0] && ts.isEnumMember(p.declarations[0]) ? getConstantValue(p.declarations[0]) : undefined;\n return ts.factory.createEnumMember(ts.unescapeLeadingUnderscores(p.escapedName), initializedValue === undefined ? undefined :\n typeof initializedValue === \"string\" ? ts.factory.createStringLiteral(initializedValue) :\n ts.factory.createNumericLiteral(initializedValue));\n })), modifierFlags);\n }\n function serializeAsFunctionNamespaceMerge(type, symbol, localName, modifierFlags) {\n var signatures = getSignaturesOfType(type, 0 /* Call */);\n for (var _i = 0, signatures_2 = signatures; _i < signatures_2.length; _i++) {\n var sig = signatures_2[_i];\n // Each overload becomes a separate function declaration, in order\n var decl = signatureToSignatureDeclarationHelper(sig, 254 /* FunctionDeclaration */, context, { name: ts.factory.createIdentifier(localName), privateSymbolVisitor: includePrivateSymbol, bundledImports: bundled });\n addResult(ts.setTextRange(decl, getSignatureTextRangeLocation(sig)), modifierFlags);\n }\n // Module symbol emit will take care of module-y members, provided it has exports\n if (!(symbol.flags & (512 /* ValueModule */ | 1024 /* NamespaceModule */) && !!symbol.exports && !!symbol.exports.size)) {\n var props = ts.filter(getPropertiesOfType(type), isNamespaceMember);\n serializeAsNamespaceDeclaration(props, localName, modifierFlags, /*suppressNewPrivateContext*/ true);\n }\n }\n function getSignatureTextRangeLocation(signature) {\n if (signature.declaration && signature.declaration.parent) {\n if (ts.isBinaryExpression(signature.declaration.parent) && ts.getAssignmentDeclarationKind(signature.declaration.parent) === 5 /* Property */) {\n return signature.declaration.parent;\n }\n // for expressions assigned to `var`s, use the `var` as the text range\n if (ts.isVariableDeclaration(signature.declaration.parent) && signature.declaration.parent.parent) {\n return signature.declaration.parent.parent;\n }\n }\n return signature.declaration;\n }\n function serializeAsNamespaceDeclaration(props, localName, modifierFlags, suppressNewPrivateContext) {\n if (ts.length(props)) {\n var localVsRemoteMap = ts.arrayToMultiMap(props, function (p) {\n return !ts.length(p.declarations) || ts.some(p.declarations, function (d) {\n return ts.getSourceFileOfNode(d) === ts.getSourceFileOfNode(context.enclosingDeclaration);\n }) ? \"local\" : \"remote\";\n });\n var localProps = localVsRemoteMap.get(\"local\") || ts.emptyArray;\n // handle remote props first - we need to make an `import` declaration that points at the module containing each remote\n // prop in the outermost scope (TODO: a namespace within a namespace would need to be appropriately handled by this)\n // Example:\n // import Foo_1 = require(\"./exporter\");\n // export namespace ns {\n // import Foo = Foo_1.Foo;\n // export { Foo };\n // export const c: number;\n // }\n // This is needed because in JS, statements like `const x = require(\"./f\")` support both type and value lookup, even if they're\n // normally just value lookup (so it functions kinda like an alias even when it's not an alias)\n // _Usually_, we'll simply print the top-level as an alias instead of a `var` in such situations, however is is theoretically\n // possible to encounter a situation where a type has members from both the current file and other files - in those situations,\n // emit akin to the above would be needed.\n // Add a namespace\n // Create namespace as non-synthetic so it is usable as an enclosing declaration\n var fakespace = ts.parseNodeFactory.createModuleDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, ts.factory.createIdentifier(localName), ts.factory.createModuleBlock([]), 16 /* Namespace */);\n ts.setParent(fakespace, enclosingDeclaration);\n fakespace.locals = ts.createSymbolTable(props);\n fakespace.symbol = props[0].parent;\n var oldResults = results;\n results = [];\n var oldAddingDeclare = addingDeclare;\n addingDeclare = false;\n var subcontext = __assign(__assign({}, context), { enclosingDeclaration: fakespace });\n var oldContext = context;\n context = subcontext;\n // TODO: implement handling for the localVsRemoteMap.get(\"remote\") - should be difficult to trigger (see comment above), as only interesting cross-file js merges should make this possible\n visitSymbolTable(ts.createSymbolTable(localProps), suppressNewPrivateContext, /*propertyAsAlias*/ true);\n context = oldContext;\n addingDeclare = oldAddingDeclare;\n var declarations = results;\n results = oldResults;\n // replace namespace with synthetic version\n var defaultReplaced = ts.map(declarations, function (d) { return ts.isExportAssignment(d) && !d.isExportEquals && ts.isIdentifier(d.expression) ? ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(d.expression, ts.factory.createIdentifier(\"default\" /* Default */))])) : d; });\n var exportModifierStripped = ts.every(defaultReplaced, function (d) { return ts.hasSyntacticModifier(d, 1 /* Export */); }) ? ts.map(defaultReplaced, removeExportModifier) : defaultReplaced;\n fakespace = ts.factory.updateModuleDeclaration(fakespace, fakespace.decorators, fakespace.modifiers, fakespace.name, ts.factory.createModuleBlock(exportModifierStripped));\n addResult(fakespace, modifierFlags); // namespaces can never be default exported\n }\n }\n function isNamespaceMember(p) {\n return !!(p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */)) ||\n !(p.flags & 4194304 /* Prototype */ || p.escapedName === \"prototype\" || p.valueDeclaration && ts.isStatic(p.valueDeclaration) && ts.isClassLike(p.valueDeclaration.parent));\n }\n function sanitizeJSDocImplements(clauses) {\n var result = ts.mapDefined(clauses, function (e) {\n var _a;\n var oldEnclosing = context.enclosingDeclaration;\n context.enclosingDeclaration = e;\n var expr = e.expression;\n if (ts.isEntityNameExpression(expr)) {\n if (ts.isIdentifier(expr) && ts.idText(expr) === \"\") {\n return cleanup(/*result*/ undefined); // Empty heritage clause, should be an error, but prefer emitting no heritage clauses to reemitting the empty one\n }\n var introducesError = void 0;\n (_a = trackExistingEntityName(expr, context, includePrivateSymbol), introducesError = _a.introducesError, expr = _a.node);\n if (introducesError) {\n return cleanup(/*result*/ undefined);\n }\n }\n return cleanup(ts.factory.createExpressionWithTypeArguments(expr, ts.map(e.typeArguments, function (a) {\n return serializeExistingTypeNode(context, a, includePrivateSymbol, bundled)\n || typeToTypeNodeHelper(getTypeFromTypeNode(a), context);\n })));\n function cleanup(result) {\n context.enclosingDeclaration = oldEnclosing;\n return result;\n }\n });\n if (result.length === clauses.length) {\n return result;\n }\n return undefined;\n }\n function serializeAsClass(symbol, localName, modifierFlags) {\n var _a, _b;\n var originalDecl = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isClassLike);\n var oldEnclosing = context.enclosingDeclaration;\n context.enclosingDeclaration = originalDecl || oldEnclosing;\n var localParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n var typeParamDecls = ts.map(localParams, function (p) { return typeParameterToDeclaration(p, context); });\n var classType = getDeclaredTypeOfClassOrInterface(symbol);\n var baseTypes = getBaseTypes(classType);\n var originalImplements = originalDecl && ts.getEffectiveImplementsTypeNodes(originalDecl);\n var implementsExpressions = originalImplements && sanitizeJSDocImplements(originalImplements)\n || ts.mapDefined(getImplementsTypes(classType), serializeImplementedType);\n var staticType = getTypeOfSymbol(symbol);\n var isClass = !!((_b = staticType.symbol) === null || _b === void 0 ? void 0 : _b.valueDeclaration) && ts.isClassLike(staticType.symbol.valueDeclaration);\n var staticBaseType = isClass\n ? getBaseConstructorTypeOfClass(staticType)\n : anyType;\n var heritageClauses = __spreadArray(__spreadArray([], !ts.length(baseTypes) ? [] : [ts.factory.createHeritageClause(94 /* ExtendsKeyword */, ts.map(baseTypes, function (b) { return serializeBaseType(b, staticBaseType, localName); }))], true), !ts.length(implementsExpressions) ? [] : [ts.factory.createHeritageClause(117 /* ImplementsKeyword */, implementsExpressions)], true);\n var symbolProps = getNonInterhitedProperties(classType, baseTypes, getPropertiesOfType(classType));\n var publicSymbolProps = ts.filter(symbolProps, function (s) {\n // `valueDeclaration` could be undefined if inherited from\n // a union/intersection base type, but inherited properties\n // don't matter here.\n var valueDecl = s.valueDeclaration;\n return !!valueDecl && !(ts.isNamedDeclaration(valueDecl) && ts.isPrivateIdentifier(valueDecl.name));\n });\n var hasPrivateIdentifier = ts.some(symbolProps, function (s) {\n // `valueDeclaration` could be undefined if inherited from\n // a union/intersection base type, but inherited properties\n // don't matter here.\n var valueDecl = s.valueDeclaration;\n return !!valueDecl && ts.isNamedDeclaration(valueDecl) && ts.isPrivateIdentifier(valueDecl.name);\n });\n // Boil down all private properties into a single one.\n var privateProperties = hasPrivateIdentifier ?\n [ts.factory.createPropertyDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createPrivateIdentifier(\"#private\"), \n /*questionOrExclamationToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined)] :\n ts.emptyArray;\n var publicProperties = ts.flatMap(publicSymbolProps, function (p) { return serializePropertySymbolForClass(p, /*isStatic*/ false, baseTypes[0]); });\n // Consider static members empty if symbol also has function or module meaning - function namespacey emit will handle statics\n var staticMembers = ts.flatMap(ts.filter(getPropertiesOfType(staticType), function (p) { return !(p.flags & 4194304 /* Prototype */) && p.escapedName !== \"prototype\" && !isNamespaceMember(p); }), function (p) { return serializePropertySymbolForClass(p, /*isStatic*/ true, staticBaseType); });\n // When we encounter an `X.prototype.y` assignment in a JS file, we bind `X` as a class regardless as to whether\n // the value is ever initialized with a class or function-like value. For cases where `X` could never be\n // created via `new`, we will inject a `private constructor()` declaration to indicate it is not createable.\n var isNonConstructableClassLikeInJsFile = !isClass &&\n !!symbol.valueDeclaration &&\n ts.isInJSFile(symbol.valueDeclaration) &&\n !ts.some(getSignaturesOfType(staticType, 1 /* Construct */));\n var constructors = isNonConstructableClassLikeInJsFile ?\n [ts.factory.createConstructorDeclaration(/*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags(8 /* Private */), [], /*body*/ undefined)] :\n serializeSignatures(1 /* Construct */, staticType, staticBaseType, 169 /* Constructor */);\n var indexSignatures = serializeIndexSignatures(classType, baseTypes[0]);\n context.enclosingDeclaration = oldEnclosing;\n addResult(ts.setTextRange(ts.factory.createClassDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, localName, typeParamDecls, heritageClauses, __spreadArray(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], indexSignatures, true), staticMembers, true), constructors, true), publicProperties, true), privateProperties, true)), symbol.declarations && ts.filter(symbol.declarations, function (d) { return ts.isClassDeclaration(d) || ts.isClassExpression(d); })[0]), modifierFlags);\n }\n function serializeAsAlias(symbol, localName, modifierFlags) {\n var _a, _b, _c, _d, _e;\n // synthesize an alias, eg `export { symbolName as Name }`\n // need to mark the alias `symbol` points at\n // as something we need to serialize as a private declaration as well\n var node = getDeclarationOfAliasSymbol(symbol);\n if (!node)\n return ts.Debug.fail();\n var target = getMergedSymbol(getTargetOfAliasDeclaration(node, /*dontRecursivelyResolve*/ true));\n if (!target) {\n return;\n }\n var verbatimTargetName = ts.unescapeLeadingUnderscores(target.escapedName);\n if (verbatimTargetName === \"export=\" /* ExportEquals */ && (compilerOptions.esModuleInterop || compilerOptions.allowSyntheticDefaultImports)) {\n // target refers to an `export=` symbol that was hoisted into a synthetic default - rename here to match\n verbatimTargetName = \"default\" /* Default */;\n }\n var targetName = getInternalSymbolName(target, verbatimTargetName);\n includePrivateSymbol(target); // the target may be within the same scope - attempt to serialize it first\n switch (node.kind) {\n case 201 /* BindingElement */:\n if (((_b = (_a = node.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.kind) === 252 /* VariableDeclaration */) {\n // const { SomeClass } = require('./lib');\n var specifier_1 = getSpecifierForModuleSymbol(target.parent || target, context); // './lib'\n var propertyName = node.propertyName;\n addResult(ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, /*name*/ undefined, ts.factory.createNamedImports([ts.factory.createImportSpecifier(propertyName && ts.isIdentifier(propertyName) ? ts.factory.createIdentifier(ts.idText(propertyName)) : undefined, ts.factory.createIdentifier(localName))])), ts.factory.createStringLiteral(specifier_1)), 0 /* None */);\n break;\n }\n // We don't know how to serialize this (nested?) binding element\n ts.Debug.failBadSyntaxKind(((_c = node.parent) === null || _c === void 0 ? void 0 : _c.parent) || node, \"Unhandled binding element grandparent kind in declaration serialization\");\n break;\n case 292 /* ShorthandPropertyAssignment */:\n if (((_e = (_d = node.parent) === null || _d === void 0 ? void 0 : _d.parent) === null || _e === void 0 ? void 0 : _e.kind) === 219 /* BinaryExpression */) {\n // module.exports = { SomeClass }\n serializeExportSpecifier(ts.unescapeLeadingUnderscores(symbol.escapedName), targetName);\n }\n break;\n case 252 /* VariableDeclaration */:\n // commonjs require: const x = require('y')\n if (ts.isPropertyAccessExpression(node.initializer)) {\n // const x = require('y').z\n var initializer = node.initializer; // require('y').z\n var uniqueName = ts.factory.createUniqueName(localName); // _x\n var specifier_2 = getSpecifierForModuleSymbol(target.parent || target, context); // 'y'\n // import _x = require('y');\n addResult(ts.factory.createImportEqualsDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, uniqueName, ts.factory.createExternalModuleReference(ts.factory.createStringLiteral(specifier_2))), 0 /* None */);\n // import x = _x.z\n addResult(ts.factory.createImportEqualsDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createIdentifier(localName), ts.factory.createQualifiedName(uniqueName, initializer.name)), modifierFlags);\n break;\n }\n // else fall through and treat commonjs require just like import=\n case 263 /* ImportEqualsDeclaration */:\n // This _specifically_ only exists to handle json declarations - where we make aliases, but since\n // we emit no declarations for the json document, must not refer to it in the declarations\n if (target.escapedName === \"export=\" /* ExportEquals */ && ts.some(target.declarations, ts.isJsonSourceFile)) {\n serializeMaybeAliasAssignment(symbol);\n break;\n }\n // Could be a local `import localName = ns.member` or\n // an external `import localName = require(\"whatever\")`\n var isLocalImport = !(target.flags & 512 /* ValueModule */) && !ts.isVariableDeclaration(node);\n addResult(ts.factory.createImportEqualsDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createIdentifier(localName), isLocalImport\n ? symbolToName(target, context, 67108863 /* All */, /*expectsIdentifier*/ false)\n : ts.factory.createExternalModuleReference(ts.factory.createStringLiteral(getSpecifierForModuleSymbol(target, context)))), isLocalImport ? modifierFlags : 0 /* None */);\n break;\n case 262 /* NamespaceExportDeclaration */:\n // export as namespace foo\n // TODO: Not part of a file's local or export symbol tables\n // Is bound into file.symbol.globalExports instead, which we don't currently traverse\n addResult(ts.factory.createNamespaceExportDeclaration(ts.idText(node.name)), 0 /* None */);\n break;\n case 265 /* ImportClause */:\n addResult(ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, ts.factory.createIdentifier(localName), /*namedBindings*/ undefined), \n // We use `target.parent || target` below as `target.parent` is unset when the target is a module which has been export assigned\n // And then made into a default by the `esModuleInterop` or `allowSyntheticDefaultImports` flag\n // In such cases, the `target` refers to the module itself already\n ts.factory.createStringLiteral(getSpecifierForModuleSymbol(target.parent || target, context))), 0 /* None */);\n break;\n case 266 /* NamespaceImport */:\n addResult(ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, /*importClause*/ undefined, ts.factory.createNamespaceImport(ts.factory.createIdentifier(localName))), ts.factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))), 0 /* None */);\n break;\n case 272 /* NamespaceExport */:\n addResult(ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamespaceExport(ts.factory.createIdentifier(localName)), ts.factory.createStringLiteral(getSpecifierForModuleSymbol(target, context))), 0 /* None */);\n break;\n case 268 /* ImportSpecifier */:\n addResult(ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createImportClause(\n /*isTypeOnly*/ false, \n /*importClause*/ undefined, ts.factory.createNamedImports([\n ts.factory.createImportSpecifier(localName !== verbatimTargetName ? ts.factory.createIdentifier(verbatimTargetName) : undefined, ts.factory.createIdentifier(localName))\n ])), ts.factory.createStringLiteral(getSpecifierForModuleSymbol(target.parent || target, context))), 0 /* None */);\n break;\n case 273 /* ExportSpecifier */:\n // does not use localName because the symbol name in this case refers to the name in the exports table,\n // which we must exactly preserve\n var specifier = node.parent.parent.moduleSpecifier;\n // targetName is only used when the target is local, as otherwise the target is an alias that points at\n // another file\n serializeExportSpecifier(ts.unescapeLeadingUnderscores(symbol.escapedName), specifier ? verbatimTargetName : targetName, specifier && ts.isStringLiteralLike(specifier) ? ts.factory.createStringLiteral(specifier.text) : undefined);\n break;\n case 269 /* ExportAssignment */:\n serializeMaybeAliasAssignment(symbol);\n break;\n case 219 /* BinaryExpression */:\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n // Could be best encoded as though an export specifier or as though an export assignment\n // If name is default or export=, do an export assignment\n // Otherwise do an export specifier\n if (symbol.escapedName === \"default\" /* Default */ || symbol.escapedName === \"export=\" /* ExportEquals */) {\n serializeMaybeAliasAssignment(symbol);\n }\n else {\n serializeExportSpecifier(localName, targetName);\n }\n break;\n default:\n return ts.Debug.failBadSyntaxKind(node, \"Unhandled alias declaration kind in symbol serializer!\");\n }\n }\n function serializeExportSpecifier(localName, targetName, specifier) {\n addResult(ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports([ts.factory.createExportSpecifier(localName !== targetName ? targetName : undefined, localName)]), specifier), 0 /* None */);\n }\n /**\n * Returns `true` if an export assignment or declaration was produced for the symbol\n */\n function serializeMaybeAliasAssignment(symbol) {\n if (symbol.flags & 4194304 /* Prototype */) {\n return false;\n }\n var name = ts.unescapeLeadingUnderscores(symbol.escapedName);\n var isExportEquals = name === \"export=\" /* ExportEquals */;\n var isDefault = name === \"default\" /* Default */;\n var isExportAssignmentCompatibleSymbolName = isExportEquals || isDefault;\n // synthesize export = ref\n // ref should refer to either be a locally scoped symbol which we need to emit, or\n // a reference to another namespace/module which we may need to emit an `import` statement for\n var aliasDecl = symbol.declarations && getDeclarationOfAliasSymbol(symbol);\n // serialize what the alias points to, preserve the declaration's initializer\n var target = aliasDecl && getTargetOfAliasDeclaration(aliasDecl, /*dontRecursivelyResolve*/ true);\n // If the target resolves and resolves to a thing defined in this file, emit as an alias, otherwise emit as a const\n if (target && ts.length(target.declarations) && ts.some(target.declarations, function (d) { return ts.getSourceFileOfNode(d) === ts.getSourceFileOfNode(enclosingDeclaration); })) {\n // In case `target` refers to a namespace member, look at the declaration and serialize the leftmost symbol in it\n // eg, `namespace A { export class B {} }; exports = A.B;`\n // Technically, this is all that's required in the case where the assignment is an entity name expression\n var expr = aliasDecl && ((ts.isExportAssignment(aliasDecl) || ts.isBinaryExpression(aliasDecl)) ? ts.getExportAssignmentExpression(aliasDecl) : ts.getPropertyAssignmentAliasLikeExpression(aliasDecl));\n var first_1 = expr && ts.isEntityNameExpression(expr) ? getFirstNonModuleExportsIdentifier(expr) : undefined;\n var referenced = first_1 && resolveEntityName(first_1, 67108863 /* All */, /*ignoreErrors*/ true, /*dontResolveAlias*/ true, enclosingDeclaration);\n if (referenced || target) {\n includePrivateSymbol(referenced || target);\n }\n // We disable the context's symbol tracker for the duration of this name serialization\n // as, by virtue of being here, the name is required to print something, and we don't want to\n // issue a visibility error on it. Only anonymous classes that an alias points at _would_ issue\n // a visibility error here (as they're not visible within any scope), but we want to hoist them\n // into the containing scope anyway, so we want to skip the visibility checks.\n var oldTrack = context.tracker.trackSymbol;\n context.tracker.trackSymbol = function () { return false; };\n if (isExportAssignmentCompatibleSymbolName) {\n results.push(ts.factory.createExportAssignment(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, isExportEquals, symbolToExpression(target, context, 67108863 /* All */)));\n }\n else {\n if (first_1 === expr && first_1) {\n // serialize as `export {target as name}`\n serializeExportSpecifier(name, ts.idText(first_1));\n }\n else if (expr && ts.isClassExpression(expr)) {\n serializeExportSpecifier(name, getInternalSymbolName(target, ts.symbolName(target)));\n }\n else {\n // serialize as `import _Ref = t.arg.et; export { _Ref as name }`\n var varName = getUnusedName(name, symbol);\n addResult(ts.factory.createImportEqualsDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createIdentifier(varName), symbolToName(target, context, 67108863 /* All */, /*expectsIdentifier*/ false)), 0 /* None */);\n serializeExportSpecifier(name, varName);\n }\n }\n context.tracker.trackSymbol = oldTrack;\n return true;\n }\n else {\n // serialize as an anonymous property declaration\n var varName = getUnusedName(name, symbol);\n // We have to use `getWidenedType` here since the object within a json file is unwidened within the file\n // (Unwidened types can only exist in expression contexts and should never be serialized)\n var typeToSerialize = getWidenedType(getTypeOfSymbol(getMergedSymbol(symbol)));\n if (isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, symbol)) {\n // If there are no index signatures and `typeToSerialize` is an object type, emit as a namespace instead of a const\n serializeAsFunctionNamespaceMerge(typeToSerialize, symbol, varName, isExportAssignmentCompatibleSymbolName ? 0 /* None */ : 1 /* Export */);\n }\n else {\n var statement = ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([\n ts.factory.createVariableDeclaration(varName, /*exclamationToken*/ undefined, serializeTypeForDeclaration(context, typeToSerialize, symbol, enclosingDeclaration, includePrivateSymbol, bundled))\n ], 2 /* Const */));\n // Inlined JSON types exported with [module.]exports= will already emit an export=, so should use `declare`.\n // Otherwise, the type itself should be exported.\n addResult(statement, target && target.flags & 4 /* Property */ && target.escapedName === \"export=\" /* ExportEquals */ ? 2 /* Ambient */\n : name === varName ? 1 /* Export */\n : 0 /* None */);\n }\n if (isExportAssignmentCompatibleSymbolName) {\n results.push(ts.factory.createExportAssignment(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, isExportEquals, ts.factory.createIdentifier(varName)));\n return true;\n }\n else if (name !== varName) {\n serializeExportSpecifier(name, varName);\n return true;\n }\n return false;\n }\n }\n function isTypeRepresentableAsFunctionNamespaceMerge(typeToSerialize, hostSymbol) {\n // Only object types which are not constructable, or indexable, whose members all come from the\n // context source file, and whose property names are all valid identifiers and not late-bound, _and_\n // whose input is not type annotated (if the input symbol has an annotation we can reuse, we should prefer it)\n var ctxSrc = ts.getSourceFileOfNode(context.enclosingDeclaration);\n return ts.getObjectFlags(typeToSerialize) & (16 /* Anonymous */ | 32 /* Mapped */) &&\n !ts.length(getIndexInfosOfType(typeToSerialize)) &&\n !isClassInstanceSide(typeToSerialize) && // While a class instance is potentially representable as a NS, prefer printing a reference to the instance type and serializing the class\n !!(ts.length(ts.filter(getPropertiesOfType(typeToSerialize), isNamespaceMember)) || ts.length(getSignaturesOfType(typeToSerialize, 0 /* Call */))) &&\n !ts.length(getSignaturesOfType(typeToSerialize, 1 /* Construct */)) && // TODO: could probably serialize as function + ns + class, now that that's OK\n !getDeclarationWithTypeAnnotation(hostSymbol, enclosingDeclaration) &&\n !(typeToSerialize.symbol && ts.some(typeToSerialize.symbol.declarations, function (d) { return ts.getSourceFileOfNode(d) !== ctxSrc; })) &&\n !ts.some(getPropertiesOfType(typeToSerialize), function (p) { return isLateBoundName(p.escapedName); }) &&\n !ts.some(getPropertiesOfType(typeToSerialize), function (p) { return ts.some(p.declarations, function (d) { return ts.getSourceFileOfNode(d) !== ctxSrc; }); }) &&\n ts.every(getPropertiesOfType(typeToSerialize), function (p) { return ts.isIdentifierText(ts.symbolName(p), languageVersion); });\n }\n function makeSerializePropertySymbol(createProperty, methodKind, useAccessors) {\n return function serializePropertySymbol(p, isStatic, baseType) {\n var _a, _b, _c, _d, _e;\n var modifierFlags = ts.getDeclarationModifierFlagsFromSymbol(p);\n var isPrivate = !!(modifierFlags & 8 /* Private */);\n if (isStatic && (p.flags & (788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */))) {\n // Only value-only-meaning symbols can be correctly encoded as class statics, type/namespace/alias meaning symbols\n // need to be merged namespace members\n return [];\n }\n if (p.flags & 4194304 /* Prototype */ ||\n (baseType && getPropertyOfType(baseType, p.escapedName)\n && isReadonlySymbol(getPropertyOfType(baseType, p.escapedName)) === isReadonlySymbol(p)\n && (p.flags & 16777216 /* Optional */) === (getPropertyOfType(baseType, p.escapedName).flags & 16777216 /* Optional */)\n && isTypeIdenticalTo(getTypeOfSymbol(p), getTypeOfPropertyOfType(baseType, p.escapedName)))) {\n return [];\n }\n var flag = (modifierFlags & ~256 /* Async */) | (isStatic ? 32 /* Static */ : 0);\n var name = getPropertyNameNodeForSymbol(p, context);\n var firstPropertyLikeDecl = (_a = p.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.or(ts.isPropertyDeclaration, ts.isAccessor, ts.isVariableDeclaration, ts.isPropertySignature, ts.isBinaryExpression, ts.isPropertyAccessExpression));\n if (p.flags & 98304 /* Accessor */ && useAccessors) {\n var result = [];\n if (p.flags & 65536 /* SetAccessor */) {\n result.push(ts.setTextRange(ts.factory.createSetAccessorDeclaration(\n /*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags(flag), name, [ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, \"arg\", \n /*questionToken*/ undefined, isPrivate ? undefined : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled))], \n /*body*/ undefined), ((_b = p.declarations) === null || _b === void 0 ? void 0 : _b.find(ts.isSetAccessor)) || firstPropertyLikeDecl));\n }\n if (p.flags & 32768 /* GetAccessor */) {\n var isPrivate_1 = modifierFlags & 8 /* Private */;\n result.push(ts.setTextRange(ts.factory.createGetAccessorDeclaration(\n /*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags(flag), name, [], isPrivate_1 ? undefined : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled), \n /*body*/ undefined), ((_c = p.declarations) === null || _c === void 0 ? void 0 : _c.find(ts.isGetAccessor)) || firstPropertyLikeDecl));\n }\n return result;\n }\n // This is an else/if as accessors and properties can't merge in TS, but might in JS\n // If this happens, we assume the accessor takes priority, as it imposes more constraints\n else if (p.flags & (4 /* Property */ | 3 /* Variable */ | 98304 /* Accessor */)) {\n return ts.setTextRange(createProperty(\n /*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 /* Readonly */ : 0) | flag), name, p.flags & 16777216 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined, isPrivate ? undefined : serializeTypeForDeclaration(context, getTypeOfSymbol(p), p, enclosingDeclaration, includePrivateSymbol, bundled), \n // TODO: https://github.com/microsoft/TypeScript/pull/32372#discussion_r328386357\n // interface members can't have initializers, however class members _can_\n /*initializer*/ undefined), ((_d = p.declarations) === null || _d === void 0 ? void 0 : _d.find(ts.or(ts.isPropertyDeclaration, ts.isVariableDeclaration))) || firstPropertyLikeDecl);\n }\n if (p.flags & (8192 /* Method */ | 16 /* Function */)) {\n var type = getTypeOfSymbol(p);\n var signatures = getSignaturesOfType(type, 0 /* Call */);\n if (flag & 8 /* Private */) {\n return ts.setTextRange(createProperty(\n /*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags((isReadonlySymbol(p) ? 64 /* Readonly */ : 0) | flag), name, p.flags & 16777216 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined, \n /*type*/ undefined, \n /*initializer*/ undefined), ((_e = p.declarations) === null || _e === void 0 ? void 0 : _e.find(ts.isFunctionLikeDeclaration)) || signatures[0] && signatures[0].declaration || p.declarations && p.declarations[0]);\n }\n var results_1 = [];\n for (var _i = 0, signatures_3 = signatures; _i < signatures_3.length; _i++) {\n var sig = signatures_3[_i];\n // Each overload becomes a separate method declaration, in order\n var decl = signatureToSignatureDeclarationHelper(sig, methodKind, context, {\n name: name,\n questionToken: p.flags & 16777216 /* Optional */ ? ts.factory.createToken(57 /* QuestionToken */) : undefined,\n modifiers: flag ? ts.factory.createModifiersFromModifierFlags(flag) : undefined\n });\n var location = sig.declaration && ts.isPrototypePropertyAssignment(sig.declaration.parent) ? sig.declaration.parent : sig.declaration;\n results_1.push(ts.setTextRange(decl, location));\n }\n return results_1;\n }\n // The `Constructor`'s symbol isn't in the class's properties lists, obviously, since it's a signature on the static\n return ts.Debug.fail(\"Unhandled class member kind! \" + (p.__debugFlags || p.flags));\n };\n }\n function serializePropertySymbolForInterface(p, baseType) {\n return serializePropertySymbolForInterfaceWorker(p, /*isStatic*/ false, baseType);\n }\n function serializeSignatures(kind, input, baseType, outputKind) {\n var signatures = getSignaturesOfType(input, kind);\n if (kind === 1 /* Construct */) {\n if (!baseType && ts.every(signatures, function (s) { return ts.length(s.parameters) === 0; })) {\n return []; // No base type, every constructor is empty - elide the extraneous `constructor()`\n }\n if (baseType) {\n // If there is a base type, if every signature in the class is identical to a signature in the baseType, elide all the declarations\n var baseSigs = getSignaturesOfType(baseType, 1 /* Construct */);\n if (!ts.length(baseSigs) && ts.every(signatures, function (s) { return ts.length(s.parameters) === 0; })) {\n return []; // Base had no explicit signatures, if all our signatures are also implicit, return an empty list\n }\n if (baseSigs.length === signatures.length) {\n var failed = false;\n for (var i = 0; i < baseSigs.length; i++) {\n if (!compareSignaturesIdentical(signatures[i], baseSigs[i], /*partialMatch*/ false, /*ignoreThisTypes*/ false, /*ignoreReturnTypes*/ true, compareTypesIdentical)) {\n failed = true;\n break;\n }\n }\n if (!failed) {\n return []; // Every signature was identical - elide constructor list as it is inherited\n }\n }\n }\n var privateProtected = 0;\n for (var _i = 0, signatures_4 = signatures; _i < signatures_4.length; _i++) {\n var s = signatures_4[_i];\n if (s.declaration) {\n privateProtected |= ts.getSelectedEffectiveModifierFlags(s.declaration, 8 /* Private */ | 16 /* Protected */);\n }\n }\n if (privateProtected) {\n return [ts.setTextRange(ts.factory.createConstructorDeclaration(\n /*decorators*/ undefined, ts.factory.createModifiersFromModifierFlags(privateProtected), \n /*parameters*/ [], \n /*body*/ undefined), signatures[0].declaration)];\n }\n }\n var results = [];\n for (var _a = 0, signatures_5 = signatures; _a < signatures_5.length; _a++) {\n var sig = signatures_5[_a];\n // Each overload becomes a separate constructor declaration, in order\n var decl = signatureToSignatureDeclarationHelper(sig, outputKind, context);\n results.push(ts.setTextRange(decl, sig.declaration));\n }\n return results;\n }\n function serializeIndexSignatures(input, baseType) {\n var results = [];\n for (var _i = 0, _a = getIndexInfosOfType(input); _i < _a.length; _i++) {\n var info = _a[_i];\n if (baseType) {\n var baseInfo = getIndexInfoOfType(baseType, info.keyType);\n if (baseInfo) {\n if (isTypeIdenticalTo(info.type, baseInfo.type)) {\n continue; // elide identical index signatures\n }\n }\n }\n results.push(indexInfoToIndexSignatureDeclarationHelper(info, context, /*typeNode*/ undefined));\n }\n return results;\n }\n function serializeBaseType(t, staticType, rootName) {\n var ref = trySerializeAsTypeReference(t, 111551 /* Value */);\n if (ref) {\n return ref;\n }\n var tempName = getUnusedName(rootName + \"_base\");\n var statement = ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([\n ts.factory.createVariableDeclaration(tempName, /*exclamationToken*/ undefined, typeToTypeNodeHelper(staticType, context))\n ], 2 /* Const */));\n addResult(statement, 0 /* None */);\n return ts.factory.createExpressionWithTypeArguments(ts.factory.createIdentifier(tempName), /*typeArgs*/ undefined);\n }\n function trySerializeAsTypeReference(t, flags) {\n var typeArgs;\n var reference;\n // We don't use `isValueSymbolAccessible` below. since that considers alternative containers (like modules)\n // which we can't write out in a syntactically valid way as an expression\n if (t.target && isSymbolAccessibleByFlags(t.target.symbol, enclosingDeclaration, flags)) {\n typeArgs = ts.map(getTypeArguments(t), function (t) { return typeToTypeNodeHelper(t, context); });\n reference = symbolToExpression(t.target.symbol, context, 788968 /* Type */);\n }\n else if (t.symbol && isSymbolAccessibleByFlags(t.symbol, enclosingDeclaration, flags)) {\n reference = symbolToExpression(t.symbol, context, 788968 /* Type */);\n }\n if (reference) {\n return ts.factory.createExpressionWithTypeArguments(reference, typeArgs);\n }\n }\n function serializeImplementedType(t) {\n var ref = trySerializeAsTypeReference(t, 788968 /* Type */);\n if (ref) {\n return ref;\n }\n if (t.symbol) {\n return ts.factory.createExpressionWithTypeArguments(symbolToExpression(t.symbol, context, 788968 /* Type */), /*typeArgs*/ undefined);\n }\n }\n function getUnusedName(input, symbol) {\n var _a, _b;\n var id = symbol ? getSymbolId(symbol) : undefined;\n if (id) {\n if (context.remappedSymbolNames.has(id)) {\n return context.remappedSymbolNames.get(id);\n }\n }\n if (symbol) {\n input = getNameCandidateWorker(symbol, input);\n }\n var i = 0;\n var original = input;\n while ((_a = context.usedSymbolNames) === null || _a === void 0 ? void 0 : _a.has(input)) {\n i++;\n input = original + \"_\" + i;\n }\n (_b = context.usedSymbolNames) === null || _b === void 0 ? void 0 : _b.add(input);\n if (id) {\n context.remappedSymbolNames.set(id, input);\n }\n return input;\n }\n function getNameCandidateWorker(symbol, localName) {\n if (localName === \"default\" /* Default */ || localName === \"__class\" /* Class */ || localName === \"__function\" /* Function */) {\n var flags = context.flags;\n context.flags |= 16777216 /* InInitialEntityName */;\n var nameCandidate = getNameOfSymbolAsWritten(symbol, context);\n context.flags = flags;\n localName = nameCandidate.length > 0 && ts.isSingleOrDoubleQuote(nameCandidate.charCodeAt(0)) ? ts.stripQuotes(nameCandidate) : nameCandidate;\n }\n if (localName === \"default\" /* Default */) {\n localName = \"_default\";\n }\n else if (localName === \"export=\" /* ExportEquals */) {\n localName = \"_exports\";\n }\n localName = ts.isIdentifierText(localName, languageVersion) && !ts.isStringANonContextualKeyword(localName) ? localName : \"_\" + localName.replace(/[^a-zA-Z0-9]/g, \"_\");\n return localName;\n }\n function getInternalSymbolName(symbol, localName) {\n var id = getSymbolId(symbol);\n if (context.remappedSymbolNames.has(id)) {\n return context.remappedSymbolNames.get(id);\n }\n localName = getNameCandidateWorker(symbol, localName);\n // The result of this is going to be used as the symbol's name - lock it in, so `getUnusedName` will also pick it up\n context.remappedSymbolNames.set(id, localName);\n return localName;\n }\n }\n }\n function typePredicateToString(typePredicate, enclosingDeclaration, flags, writer) {\n if (flags === void 0) { flags = 16384 /* UseAliasDefinedOutsideCurrentScope */; }\n return writer ? typePredicateToStringWorker(writer).getText() : ts.usingSingleLineStringWriter(typePredicateToStringWorker);\n function typePredicateToStringWorker(writer) {\n var predicate = ts.factory.createTypePredicateNode(typePredicate.kind === 2 /* AssertsThis */ || typePredicate.kind === 3 /* AssertsIdentifier */ ? ts.factory.createToken(128 /* AssertsKeyword */) : undefined, typePredicate.kind === 1 /* Identifier */ || typePredicate.kind === 3 /* AssertsIdentifier */ ? ts.factory.createIdentifier(typePredicate.parameterName) : ts.factory.createThisTypeNode(), typePredicate.type && nodeBuilder.typeToTypeNode(typePredicate.type, enclosingDeclaration, toNodeBuilderFlags(flags) | 70221824 /* IgnoreErrors */ | 512 /* WriteTypeParametersInQualifiedName */) // TODO: GH#18217\n );\n var printer = ts.createPrinter({ removeComments: true });\n var sourceFile = enclosingDeclaration && ts.getSourceFileOfNode(enclosingDeclaration);\n printer.writeNode(4 /* Unspecified */, predicate, /*sourceFile*/ sourceFile, writer);\n return writer;\n }\n }\n function formatUnionTypes(types) {\n var result = [];\n var flags = 0;\n for (var i = 0; i < types.length; i++) {\n var t = types[i];\n flags |= t.flags;\n if (!(t.flags & 98304 /* Nullable */)) {\n if (t.flags & (512 /* BooleanLiteral */ | 1024 /* EnumLiteral */)) {\n var baseType = t.flags & 512 /* BooleanLiteral */ ? booleanType : getBaseTypeOfEnumLiteralType(t);\n if (baseType.flags & 1048576 /* Union */) {\n var count = baseType.types.length;\n if (i + count <= types.length && getRegularTypeOfLiteralType(types[i + count - 1]) === getRegularTypeOfLiteralType(baseType.types[count - 1])) {\n result.push(baseType);\n i += count - 1;\n continue;\n }\n }\n }\n result.push(t);\n }\n }\n if (flags & 65536 /* Null */)\n result.push(nullType);\n if (flags & 32768 /* Undefined */)\n result.push(undefinedType);\n return result || types;\n }\n function visibilityToString(flags) {\n if (flags === 8 /* Private */) {\n return \"private\";\n }\n if (flags === 16 /* Protected */) {\n return \"protected\";\n }\n return \"public\";\n }\n function getTypeAliasForTypeLiteral(type) {\n if (type.symbol && type.symbol.flags & 2048 /* TypeLiteral */ && type.symbol.declarations) {\n var node = ts.walkUpParenthesizedTypes(type.symbol.declarations[0].parent);\n if (node.kind === 257 /* TypeAliasDeclaration */) {\n return getSymbolOfNode(node);\n }\n }\n return undefined;\n }\n function isTopLevelInExternalModuleAugmentation(node) {\n return node && node.parent &&\n node.parent.kind === 260 /* ModuleBlock */ &&\n ts.isExternalModuleAugmentation(node.parent.parent);\n }\n function isDefaultBindingContext(location) {\n return location.kind === 300 /* SourceFile */ || ts.isAmbientModule(location);\n }\n function getNameOfSymbolFromNameType(symbol, context) {\n var nameType = getSymbolLinks(symbol).nameType;\n if (nameType) {\n if (nameType.flags & 384 /* StringOrNumberLiteral */) {\n var name = \"\" + nameType.value;\n if (!ts.isIdentifierText(name, compilerOptions.target) && !isNumericLiteralName(name)) {\n return \"\\\"\" + ts.escapeString(name, 34 /* doubleQuote */) + \"\\\"\";\n }\n if (isNumericLiteralName(name) && ts.startsWith(name, \"-\")) {\n return \"[\" + name + \"]\";\n }\n return name;\n }\n if (nameType.flags & 8192 /* UniqueESSymbol */) {\n return \"[\" + getNameOfSymbolAsWritten(nameType.symbol, context) + \"]\";\n }\n }\n }\n /**\n * Gets a human-readable name for a symbol.\n * Should *not* be used for the right-hand side of a `.` -- use `symbolName(symbol)` for that instead.\n *\n * Unlike `symbolName(symbol)`, this will include quotes if the name is from a string literal.\n * It will also use a representation of a number as written instead of a decimal form, e.g. `0o11` instead of `9`.\n */\n function getNameOfSymbolAsWritten(symbol, context) {\n if (context && symbol.escapedName === \"default\" /* Default */ && !(context.flags & 16384 /* UseAliasDefinedOutsideCurrentScope */) &&\n // If it's not the first part of an entity name, it must print as `default`\n (!(context.flags & 16777216 /* InInitialEntityName */) ||\n // if the symbol is synthesized, it will only be referenced externally it must print as `default`\n !symbol.declarations ||\n // if not in the same binding context (source file, module declaration), it must print as `default`\n (context.enclosingDeclaration && ts.findAncestor(symbol.declarations[0], isDefaultBindingContext) !== ts.findAncestor(context.enclosingDeclaration, isDefaultBindingContext)))) {\n return \"default\";\n }\n if (symbol.declarations && symbol.declarations.length) {\n var declaration = ts.firstDefined(symbol.declarations, function (d) { return ts.getNameOfDeclaration(d) ? d : undefined; }); // Try using a declaration with a name, first\n var name_3 = declaration && ts.getNameOfDeclaration(declaration);\n if (declaration && name_3) {\n if (ts.isCallExpression(declaration) && ts.isBindableObjectDefinePropertyCall(declaration)) {\n return ts.symbolName(symbol);\n }\n if (ts.isComputedPropertyName(name_3) && !(ts.getCheckFlags(symbol) & 4096 /* Late */)) {\n var nameType = getSymbolLinks(symbol).nameType;\n if (nameType && nameType.flags & 384 /* StringOrNumberLiteral */) {\n // Computed property name isn't late bound, but has a well-known name type - use name type to generate a symbol name\n var result = getNameOfSymbolFromNameType(symbol, context);\n if (result !== undefined) {\n return result;\n }\n }\n }\n return ts.declarationNameToString(name_3);\n }\n if (!declaration) {\n declaration = symbol.declarations[0]; // Declaration may be nameless, but we'll try anyway\n }\n if (declaration.parent && declaration.parent.kind === 252 /* VariableDeclaration */) {\n return ts.declarationNameToString(declaration.parent.name);\n }\n switch (declaration.kind) {\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n if (context && !context.encounteredError && !(context.flags & 131072 /* AllowAnonymousIdentifier */)) {\n context.encounteredError = true;\n }\n return declaration.kind === 224 /* ClassExpression */ ? \"(Anonymous class)\" : \"(Anonymous function)\";\n }\n }\n var name = getNameOfSymbolFromNameType(symbol, context);\n return name !== undefined ? name : ts.symbolName(symbol);\n }\n function isDeclarationVisible(node) {\n if (node) {\n var links = getNodeLinks(node);\n if (links.isVisible === undefined) {\n links.isVisible = !!determineIfDeclarationIsVisible();\n }\n return links.isVisible;\n }\n return false;\n function determineIfDeclarationIsVisible() {\n switch (node.kind) {\n case 333 /* JSDocCallbackTag */:\n case 340 /* JSDocTypedefTag */:\n case 334 /* JSDocEnumTag */:\n // Top-level jsdoc type aliases are considered exported\n // First parent is comment node, second is hosting declaration or token; we only care about those tokens or declarations whose parent is a source file\n return !!(node.parent && node.parent.parent && node.parent.parent.parent && ts.isSourceFile(node.parent.parent.parent));\n case 201 /* BindingElement */:\n return isDeclarationVisible(node.parent.parent);\n case 252 /* VariableDeclaration */:\n if (ts.isBindingPattern(node.name) &&\n !node.name.elements.length) {\n // If the binding pattern is empty, this variable declaration is not visible\n return false;\n }\n // falls through\n case 259 /* ModuleDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 258 /* EnumDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n // external module augmentation is always visible\n if (ts.isExternalModuleAugmentation(node)) {\n return true;\n }\n var parent = getDeclarationContainer(node);\n // If the node is not exported or it is not ambient module element (except import declaration)\n if (!(ts.getCombinedModifierFlags(node) & 1 /* Export */) &&\n !(node.kind !== 263 /* ImportEqualsDeclaration */ && parent.kind !== 300 /* SourceFile */ && parent.flags & 8388608 /* Ambient */)) {\n return isGlobalSourceFile(parent);\n }\n // Exported members/ambient module elements (exception import declaration) are visible if parent is visible\n return isDeclarationVisible(parent);\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n if (ts.hasEffectiveModifier(node, 8 /* Private */ | 16 /* Protected */)) {\n // Private/protected properties/methods are not visible\n return false;\n }\n // Public properties/methods are visible if its parents are visible, so:\n // falls through\n case 169 /* Constructor */:\n case 173 /* ConstructSignature */:\n case 172 /* CallSignature */:\n case 174 /* IndexSignature */:\n case 162 /* Parameter */:\n case 260 /* ModuleBlock */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 180 /* TypeLiteral */:\n case 176 /* TypeReference */:\n case 181 /* ArrayType */:\n case 182 /* TupleType */:\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n case 189 /* ParenthesizedType */:\n case 195 /* NamedTupleMember */:\n return isDeclarationVisible(node.parent);\n // Default binding, import specifier and namespace import is visible\n // only on demand so by default it is not visible\n case 265 /* ImportClause */:\n case 266 /* NamespaceImport */:\n case 268 /* ImportSpecifier */:\n return false;\n // Type parameters are always visible\n case 161 /* TypeParameter */:\n // Source file and namespace export are always visible\n // falls through\n case 300 /* SourceFile */:\n case 262 /* NamespaceExportDeclaration */:\n return true;\n // Export assignments do not create name bindings outside the module\n case 269 /* ExportAssignment */:\n return false;\n default:\n return false;\n }\n }\n }\n function collectLinkedAliases(node, setVisibility) {\n var exportSymbol;\n if (node.parent && node.parent.kind === 269 /* ExportAssignment */) {\n exportSymbol = resolveName(node, node.escapedText, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, /*nameNotFoundMessage*/ undefined, node, /*isUse*/ false);\n }\n else if (node.parent.kind === 273 /* ExportSpecifier */) {\n exportSymbol = getTargetOfExportSpecifier(node.parent, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */);\n }\n var result;\n var visited;\n if (exportSymbol) {\n visited = new ts.Set();\n visited.add(getSymbolId(exportSymbol));\n buildVisibleNodeList(exportSymbol.declarations);\n }\n return result;\n function buildVisibleNodeList(declarations) {\n ts.forEach(declarations, function (declaration) {\n var resultNode = getAnyImportSyntax(declaration) || declaration;\n if (setVisibility) {\n getNodeLinks(declaration).isVisible = true;\n }\n else {\n result = result || [];\n ts.pushIfUnique(result, resultNode);\n }\n if (ts.isInternalModuleImportEqualsDeclaration(declaration)) {\n // Add the referenced top container visible\n var internalModuleReference = declaration.moduleReference;\n var firstIdentifier = ts.getFirstIdentifier(internalModuleReference);\n var importSymbol = resolveName(declaration, firstIdentifier.escapedText, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */, undefined, undefined, /*isUse*/ false);\n if (importSymbol && visited) {\n if (ts.tryAddToSet(visited, getSymbolId(importSymbol))) {\n buildVisibleNodeList(importSymbol.declarations);\n }\n }\n }\n });\n }\n }\n /**\n * Push an entry on the type resolution stack. If an entry with the given target and the given property name\n * is already on the stack, and no entries in between already have a type, then a circularity has occurred.\n * In this case, the result values of the existing entry and all entries pushed after it are changed to false,\n * and the value false is returned. Otherwise, the new entry is just pushed onto the stack, and true is returned.\n * In order to see if the same query has already been done before, the target object and the propertyName both\n * must match the one passed in.\n *\n * @param target The symbol, type, or signature whose type is being queried\n * @param propertyName The property name that should be used to query the target for its type\n */\n function pushTypeResolution(target, propertyName) {\n var resolutionCycleStartIndex = findResolutionCycleStartIndex(target, propertyName);\n if (resolutionCycleStartIndex >= 0) {\n // A cycle was found\n var length_3 = resolutionTargets.length;\n for (var i = resolutionCycleStartIndex; i < length_3; i++) {\n resolutionResults[i] = false;\n }\n return false;\n }\n resolutionTargets.push(target);\n resolutionResults.push(/*items*/ true);\n resolutionPropertyNames.push(propertyName);\n return true;\n }\n function findResolutionCycleStartIndex(target, propertyName) {\n for (var i = resolutionTargets.length - 1; i >= 0; i--) {\n if (hasType(resolutionTargets[i], resolutionPropertyNames[i])) {\n return -1;\n }\n if (resolutionTargets[i] === target && resolutionPropertyNames[i] === propertyName) {\n return i;\n }\n }\n return -1;\n }\n function hasType(target, propertyName) {\n switch (propertyName) {\n case 0 /* Type */:\n return !!getSymbolLinks(target).type;\n case 5 /* EnumTagType */:\n return !!(getNodeLinks(target).resolvedEnumType);\n case 2 /* DeclaredType */:\n return !!getSymbolLinks(target).declaredType;\n case 1 /* ResolvedBaseConstructorType */:\n return !!target.resolvedBaseConstructorType;\n case 3 /* ResolvedReturnType */:\n return !!target.resolvedReturnType;\n case 4 /* ImmediateBaseConstraint */:\n return !!target.immediateBaseConstraint;\n case 6 /* ResolvedTypeArguments */:\n return !!target.resolvedTypeArguments;\n case 7 /* ResolvedBaseTypes */:\n return !!target.baseTypesResolved;\n }\n return ts.Debug.assertNever(propertyName);\n }\n /**\n * Pop an entry from the type resolution stack and return its associated result value. The result value will\n * be true if no circularities were detected, or false if a circularity was found.\n */\n function popTypeResolution() {\n resolutionTargets.pop();\n resolutionPropertyNames.pop();\n return resolutionResults.pop();\n }\n function getDeclarationContainer(node) {\n return ts.findAncestor(ts.getRootDeclaration(node), function (node) {\n switch (node.kind) {\n case 252 /* VariableDeclaration */:\n case 253 /* VariableDeclarationList */:\n case 268 /* ImportSpecifier */:\n case 267 /* NamedImports */:\n case 266 /* NamespaceImport */:\n case 265 /* ImportClause */:\n return false;\n default:\n return true;\n }\n }).parent;\n }\n function getTypeOfPrototypeProperty(prototype) {\n // TypeScript 1.0 spec (April 2014): 8.4\n // Every class automatically contains a static property member named 'prototype',\n // the type of which is an instantiation of the class type with type Any supplied as a type argument for each type parameter.\n // It is an error to explicitly declare a static property member with the name 'prototype'.\n var classType = getDeclaredTypeOfSymbol(getParentOfSymbol(prototype));\n return classType.typeParameters ? createTypeReference(classType, ts.map(classType.typeParameters, function (_) { return anyType; })) : classType;\n }\n // Return the type of the given property in the given type, or undefined if no such property exists\n function getTypeOfPropertyOfType(type, name) {\n var prop = getPropertyOfType(type, name);\n return prop ? getTypeOfSymbol(prop) : undefined;\n }\n function getTypeOfPropertyOrIndexSignature(type, name) {\n var _a;\n return getTypeOfPropertyOfType(type, name) || ((_a = getApplicableIndexInfoForName(type, name)) === null || _a === void 0 ? void 0 : _a.type) || unknownType;\n }\n function isTypeAny(type) {\n return type && (type.flags & 1 /* Any */) !== 0;\n }\n // Return the type of a binding element parent. We check SymbolLinks first to see if a type has been\n // assigned by contextual typing.\n function getTypeForBindingElementParent(node) {\n var symbol = getSymbolOfNode(node);\n return symbol && getSymbolLinks(symbol).type || getTypeForVariableLikeDeclaration(node, /*includeOptionality*/ false);\n }\n function getRestType(source, properties, symbol) {\n source = filterType(source, function (t) { return !(t.flags & 98304 /* Nullable */); });\n if (source.flags & 131072 /* Never */) {\n return emptyObjectType;\n }\n if (source.flags & 1048576 /* Union */) {\n return mapType(source, function (t) { return getRestType(t, properties, symbol); });\n }\n var omitKeyType = getUnionType(ts.map(properties, getLiteralTypeFromPropertyName));\n if (isGenericObjectType(source) || isGenericIndexType(omitKeyType)) {\n if (omitKeyType.flags & 131072 /* Never */) {\n return source;\n }\n var omitTypeAlias = getGlobalOmitSymbol();\n if (!omitTypeAlias) {\n return errorType;\n }\n return getTypeAliasInstantiation(omitTypeAlias, [source, omitKeyType]);\n }\n var members = ts.createSymbolTable();\n for (var _i = 0, _a = getPropertiesOfType(source); _i < _a.length; _i++) {\n var prop = _a[_i];\n if (!isTypeAssignableTo(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), omitKeyType)\n && !(ts.getDeclarationModifierFlagsFromSymbol(prop) & (8 /* Private */ | 16 /* Protected */))\n && isSpreadableProperty(prop)) {\n members.set(prop.escapedName, getSpreadSymbol(prop, /*readonly*/ false));\n }\n }\n var result = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, getIndexInfosOfType(source));\n result.objectFlags |= 8388608 /* ObjectRestType */;\n return result;\n }\n function isGenericTypeWithUndefinedConstraint(type) {\n return !!(type.flags & 465829888 /* Instantiable */) && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 32768 /* Undefined */);\n }\n function getNonUndefinedType(type) {\n var typeOrConstraint = someType(type, isGenericTypeWithUndefinedConstraint) ? mapType(type, function (t) { return t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOrType(t) : t; }) : type;\n return getTypeWithFacts(typeOrConstraint, 524288 /* NEUndefined */);\n }\n // Determine the control flow type associated with a destructuring declaration or assignment. The following\n // forms of destructuring are possible:\n // let { x } = obj; // BindingElement\n // let [ x ] = obj; // BindingElement\n // { x } = obj; // ShorthandPropertyAssignment\n // { x: v } = obj; // PropertyAssignment\n // [ x ] = obj; // Expression\n // We construct a synthetic element access expression corresponding to 'obj.x' such that the control\n // flow analyzer doesn't have to handle all the different syntactic forms.\n function getFlowTypeOfDestructuring(node, declaredType) {\n var reference = getSyntheticElementAccess(node);\n return reference ? getFlowTypeOfReference(reference, declaredType) : declaredType;\n }\n function getSyntheticElementAccess(node) {\n var parentAccess = getParentElementAccess(node);\n if (parentAccess && parentAccess.flowNode) {\n var propName = getDestructuringPropertyName(node);\n if (propName) {\n var literal = ts.setTextRange(ts.parseNodeFactory.createStringLiteral(propName), node);\n var lhsExpr = ts.isLeftHandSideExpression(parentAccess) ? parentAccess : ts.parseNodeFactory.createParenthesizedExpression(parentAccess);\n var result = ts.setTextRange(ts.parseNodeFactory.createElementAccessExpression(lhsExpr, literal), node);\n ts.setParent(literal, result);\n ts.setParent(result, node);\n if (lhsExpr !== parentAccess) {\n ts.setParent(lhsExpr, result);\n }\n result.flowNode = parentAccess.flowNode;\n return result;\n }\n }\n }\n function getParentElementAccess(node) {\n var ancestor = node.parent.parent;\n switch (ancestor.kind) {\n case 201 /* BindingElement */:\n case 291 /* PropertyAssignment */:\n return getSyntheticElementAccess(ancestor);\n case 202 /* ArrayLiteralExpression */:\n return getSyntheticElementAccess(node.parent);\n case 252 /* VariableDeclaration */:\n return ancestor.initializer;\n case 219 /* BinaryExpression */:\n return ancestor.right;\n }\n }\n function getDestructuringPropertyName(node) {\n var parent = node.parent;\n if (node.kind === 201 /* BindingElement */ && parent.kind === 199 /* ObjectBindingPattern */) {\n return getLiteralPropertyNameText(node.propertyName || node.name);\n }\n if (node.kind === 291 /* PropertyAssignment */ || node.kind === 292 /* ShorthandPropertyAssignment */) {\n return getLiteralPropertyNameText(node.name);\n }\n return \"\" + parent.elements.indexOf(node);\n }\n function getLiteralPropertyNameText(name) {\n var type = getLiteralTypeFromPropertyName(name);\n return type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */) ? \"\" + type.value : undefined;\n }\n /** Return the inferred type for a binding element */\n function getTypeForBindingElement(declaration) {\n var pattern = declaration.parent;\n var parentType = getTypeForBindingElementParent(pattern.parent);\n // If no type or an any type was inferred for parent, infer that for the binding element\n if (!parentType || isTypeAny(parentType)) {\n return parentType;\n }\n // Relax null check on ambient destructuring parameters, since the parameters have no implementation and are just documentation\n if (strictNullChecks && declaration.flags & 8388608 /* Ambient */ && ts.isParameterDeclaration(declaration)) {\n parentType = getNonNullableType(parentType);\n }\n // Filter `undefined` from the type we check against if the parent has an initializer and that initializer is not possibly `undefined`\n else if (strictNullChecks && pattern.parent.initializer && !(getTypeFacts(getTypeOfInitializer(pattern.parent.initializer)) & 65536 /* EQUndefined */)) {\n parentType = getTypeWithFacts(parentType, 524288 /* NEUndefined */);\n }\n var type;\n if (pattern.kind === 199 /* ObjectBindingPattern */) {\n if (declaration.dotDotDotToken) {\n parentType = getReducedType(parentType);\n if (parentType.flags & 2 /* Unknown */ || !isValidSpreadType(parentType)) {\n error(declaration, ts.Diagnostics.Rest_types_may_only_be_created_from_object_types);\n return errorType;\n }\n var literalMembers = [];\n for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!element.dotDotDotToken) {\n literalMembers.push(element.propertyName || element.name);\n }\n }\n type = getRestType(parentType, literalMembers, declaration.symbol);\n }\n else {\n // Use explicitly specified property name ({ p: xxx } form), or otherwise the implied name ({ p } form)\n var name = declaration.propertyName || declaration.name;\n var indexType = getLiteralTypeFromPropertyName(name);\n var declaredType = getIndexedAccessType(parentType, indexType, 32 /* ExpressionPosition */, name);\n type = getFlowTypeOfDestructuring(declaration, declaredType);\n }\n }\n else {\n // This elementType will be used if the specific property corresponding to this index is not\n // present (aka the tuple element property). This call also checks that the parentType is in\n // fact an iterable or array (depending on target language).\n var elementType = checkIteratedTypeOrElementType(65 /* Destructuring */ | (declaration.dotDotDotToken ? 0 : 128 /* PossiblyOutOfBounds */), parentType, undefinedType, pattern);\n var index_2 = pattern.elements.indexOf(declaration);\n if (declaration.dotDotDotToken) {\n // If the parent is a tuple type, the rest element has a tuple type of the\n // remaining tuple element types. Otherwise, the rest element has an array type with same\n // element type as the parent type.\n type = everyType(parentType, isTupleType) ?\n mapType(parentType, function (t) { return sliceTupleType(t, index_2); }) :\n createArrayType(elementType);\n }\n else if (isArrayLikeType(parentType)) {\n var indexType = getNumberLiteralType(index_2);\n var accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(declaration) ? 16 /* NoTupleBoundsCheck */ : 0);\n var declaredType = getIndexedAccessTypeOrUndefined(parentType, indexType, accessFlags, declaration.name) || errorType;\n type = getFlowTypeOfDestructuring(declaration, declaredType);\n }\n else {\n type = elementType;\n }\n }\n if (!declaration.initializer) {\n return type;\n }\n if (ts.getEffectiveTypeAnnotationNode(ts.walkUpBindingElementsAndPatterns(declaration))) {\n // In strict null checking mode, if a default value of a non-undefined type is specified, remove\n // undefined from the final type.\n return strictNullChecks && !(getFalsyFlags(checkDeclarationInitializer(declaration)) & 32768 /* Undefined */) ? getNonUndefinedType(type) : type;\n }\n return widenTypeInferredFromInitializer(declaration, getUnionType([getNonUndefinedType(type), checkDeclarationInitializer(declaration)], 2 /* Subtype */));\n }\n function getTypeForDeclarationFromJSDocComment(declaration) {\n var jsdocType = ts.getJSDocType(declaration);\n if (jsdocType) {\n return getTypeFromTypeNode(jsdocType);\n }\n return undefined;\n }\n function isNullOrUndefined(node) {\n var expr = ts.skipParentheses(node);\n return expr.kind === 104 /* NullKeyword */ || expr.kind === 79 /* Identifier */ && getResolvedSymbol(expr) === undefinedSymbol;\n }\n function isEmptyArrayLiteral(node) {\n var expr = ts.skipParentheses(node);\n return expr.kind === 202 /* ArrayLiteralExpression */ && expr.elements.length === 0;\n }\n function addOptionality(type, isProperty, isOptional) {\n if (isProperty === void 0) { isProperty = false; }\n if (isOptional === void 0) { isOptional = true; }\n return strictNullChecks && isOptional ? getOptionalType(type, isProperty) : type;\n }\n // Return the inferred type for a variable, parameter, or property declaration\n function getTypeForVariableLikeDeclaration(declaration, includeOptionality) {\n // A variable declared in a for..in statement is of type string, or of type keyof T when the\n // right hand expression is of a type parameter type.\n if (ts.isVariableDeclaration(declaration) && declaration.parent.parent.kind === 241 /* ForInStatement */) {\n var indexType = getIndexType(getNonNullableTypeIfNeeded(checkExpression(declaration.parent.parent.expression)));\n return indexType.flags & (262144 /* TypeParameter */ | 4194304 /* Index */) ? getExtractStringType(indexType) : stringType;\n }\n if (ts.isVariableDeclaration(declaration) && declaration.parent.parent.kind === 242 /* ForOfStatement */) {\n // checkRightHandSideOfForOf will return undefined if the for-of expression type was\n // missing properties/signatures required to get its iteratedType (like\n // [Symbol.iterator] or next). This may be because we accessed properties from anyType,\n // or it may have led to an error inside getElementTypeOfIterable.\n var forOfStatement = declaration.parent.parent;\n return checkRightHandSideOfForOf(forOfStatement) || anyType;\n }\n if (ts.isBindingPattern(declaration.parent)) {\n return getTypeForBindingElement(declaration);\n }\n var isProperty = ts.isPropertyDeclaration(declaration) || ts.isPropertySignature(declaration);\n var isOptional = includeOptionality && (isProperty && !!declaration.questionToken ||\n ts.isParameter(declaration) && (!!declaration.questionToken || isJSDocOptionalParameter(declaration)) ||\n isOptionalJSDocPropertyLikeTag(declaration));\n // Use type from type annotation if one is present\n var declaredType = tryGetTypeFromEffectiveTypeNode(declaration);\n if (declaredType) {\n return addOptionality(declaredType, isProperty, isOptional);\n }\n if ((noImplicitAny || ts.isInJSFile(declaration)) &&\n ts.isVariableDeclaration(declaration) && !ts.isBindingPattern(declaration.name) &&\n !(ts.getCombinedModifierFlags(declaration) & 1 /* Export */) && !(declaration.flags & 8388608 /* Ambient */)) {\n // If --noImplicitAny is on or the declaration is in a Javascript file,\n // use control flow tracked 'any' type for non-ambient, non-exported var or let variables with no\n // initializer or a 'null' or 'undefined' initializer.\n if (!(ts.getCombinedNodeFlags(declaration) & 2 /* Const */) && (!declaration.initializer || isNullOrUndefined(declaration.initializer))) {\n return autoType;\n }\n // Use control flow tracked 'any[]' type for non-ambient, non-exported variables with an empty array\n // literal initializer.\n if (declaration.initializer && isEmptyArrayLiteral(declaration.initializer)) {\n return autoArrayType;\n }\n }\n if (ts.isParameter(declaration)) {\n var func = declaration.parent;\n // For a parameter of a set accessor, use the type of the get accessor if one is present\n if (func.kind === 171 /* SetAccessor */ && hasBindableName(func)) {\n var getter = ts.getDeclarationOfKind(getSymbolOfNode(declaration.parent), 170 /* GetAccessor */);\n if (getter) {\n var getterSignature = getSignatureFromDeclaration(getter);\n var thisParameter = getAccessorThisParameter(func);\n if (thisParameter && declaration === thisParameter) {\n // Use the type from the *getter*\n ts.Debug.assert(!thisParameter.type);\n return getTypeOfSymbol(getterSignature.thisParameter);\n }\n return getReturnTypeOfSignature(getterSignature);\n }\n }\n if (ts.isInJSFile(declaration)) {\n var typeTag = ts.getJSDocType(func);\n if (typeTag && ts.isFunctionTypeNode(typeTag)) {\n var signature = getSignatureFromDeclaration(typeTag);\n var pos = func.parameters.indexOf(declaration);\n return declaration.dotDotDotToken ? getRestTypeAtPosition(signature, pos) : getTypeAtPosition(signature, pos);\n }\n }\n // Use contextual parameter type if one is available\n var type = declaration.symbol.escapedName === \"this\" /* This */ ? getContextualThisParameterType(func) : getContextuallyTypedParameterType(declaration);\n if (type) {\n return addOptionality(type, /*isProperty*/ false, isOptional);\n }\n }\n // Use the type of the initializer expression if one is present and the declaration is\n // not a parameter of a contextually typed function\n if (ts.hasOnlyExpressionInitializer(declaration) && !!declaration.initializer) {\n if (ts.isInJSFile(declaration) && !ts.isParameter(declaration)) {\n var containerObjectType = getJSContainerObjectType(declaration, getSymbolOfNode(declaration), ts.getDeclaredExpandoInitializer(declaration));\n if (containerObjectType) {\n return containerObjectType;\n }\n }\n var type = widenTypeInferredFromInitializer(declaration, checkDeclarationInitializer(declaration));\n return addOptionality(type, isProperty, isOptional);\n }\n if (ts.isPropertyDeclaration(declaration) && (noImplicitAny || ts.isInJSFile(declaration))) {\n // We have a property declaration with no type annotation or initializer, in noImplicitAny mode or a .js file.\n // Use control flow analysis of this.xxx assignments in the constructor or static block to determine the type of the property.\n if (!ts.hasStaticModifier(declaration)) {\n var constructor = findConstructorDeclaration(declaration.parent);\n var type = constructor ? getFlowTypeInConstructor(declaration.symbol, constructor) :\n ts.getEffectiveModifierFlags(declaration) & 2 /* Ambient */ ? getTypeOfPropertyInBaseClass(declaration.symbol) :\n undefined;\n return type && addOptionality(type, /*isProperty*/ true, isOptional);\n }\n else {\n var staticBlocks = ts.filter(declaration.parent.members, ts.isClassStaticBlockDeclaration);\n var type = staticBlocks.length ? getFlowTypeInStaticBlocks(declaration.symbol, staticBlocks) :\n ts.getEffectiveModifierFlags(declaration) & 2 /* Ambient */ ? getTypeOfPropertyInBaseClass(declaration.symbol) :\n undefined;\n return type && addOptionality(type, /*isProperty*/ true, isOptional);\n }\n }\n if (ts.isJsxAttribute(declaration)) {\n // if JSX attribute doesn't have initializer, by default the attribute will have boolean value of true.\n // I.e is sugar for \n return trueType;\n }\n // If the declaration specifies a binding pattern and is not a parameter of a contextually\n // typed function, use the type implied by the binding pattern\n if (ts.isBindingPattern(declaration.name)) {\n return getTypeFromBindingPattern(declaration.name, /*includePatternInType*/ false, /*reportErrors*/ true);\n }\n // No type specified and nothing can be inferred\n return undefined;\n }\n function isConstructorDeclaredProperty(symbol) {\n // A property is considered a constructor declared property when all declaration sites are this.xxx assignments,\n // when no declaration sites have JSDoc type annotations, and when at least one declaration site is in the body of\n // a class constructor.\n if (symbol.valueDeclaration && ts.isBinaryExpression(symbol.valueDeclaration)) {\n var links = getSymbolLinks(symbol);\n if (links.isConstructorDeclaredProperty === undefined) {\n links.isConstructorDeclaredProperty = false;\n links.isConstructorDeclaredProperty = !!getDeclaringConstructor(symbol) && ts.every(symbol.declarations, function (declaration) {\n return ts.isBinaryExpression(declaration) &&\n isPossiblyAliasedThisProperty(declaration) &&\n (declaration.left.kind !== 205 /* ElementAccessExpression */ || ts.isStringOrNumericLiteralLike(declaration.left.argumentExpression)) &&\n !getAnnotatedTypeForAssignmentDeclaration(/*declaredType*/ undefined, declaration, symbol, declaration);\n });\n }\n return links.isConstructorDeclaredProperty;\n }\n return false;\n }\n function isAutoTypedProperty(symbol) {\n // A property is auto-typed when its declaration has no type annotation or initializer and we're in\n // noImplicitAny mode or a .js file.\n var declaration = symbol.valueDeclaration;\n return declaration && ts.isPropertyDeclaration(declaration) && !ts.getEffectiveTypeAnnotationNode(declaration) &&\n !declaration.initializer && (noImplicitAny || ts.isInJSFile(declaration));\n }\n function getDeclaringConstructor(symbol) {\n if (!symbol.declarations) {\n return;\n }\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n var container = ts.getThisContainer(declaration, /*includeArrowFunctions*/ false);\n if (container && (container.kind === 169 /* Constructor */ || isJSConstructor(container))) {\n return container;\n }\n }\n ;\n }\n /** Create a synthetic property access flow node after the last statement of the file */\n function getFlowTypeFromCommonJSExport(symbol) {\n var file = ts.getSourceFileOfNode(symbol.declarations[0]);\n var accessName = ts.unescapeLeadingUnderscores(symbol.escapedName);\n var areAllModuleExports = symbol.declarations.every(function (d) { return ts.isInJSFile(d) && ts.isAccessExpression(d) && ts.isModuleExportsAccessExpression(d.expression); });\n var reference = areAllModuleExports\n ? ts.factory.createPropertyAccessExpression(ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(\"module\"), ts.factory.createIdentifier(\"exports\")), accessName)\n : ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(\"exports\"), accessName);\n if (areAllModuleExports) {\n ts.setParent(reference.expression.expression, reference.expression);\n }\n ts.setParent(reference.expression, reference);\n ts.setParent(reference, file);\n reference.flowNode = file.endFlowNode;\n return getFlowTypeOfReference(reference, autoType, undefinedType);\n }\n function getFlowTypeInStaticBlocks(symbol, staticBlocks) {\n var accessName = ts.startsWith(symbol.escapedName, \"__#\")\n ? ts.factory.createPrivateIdentifier(symbol.escapedName.split(\"@\")[1])\n : ts.unescapeLeadingUnderscores(symbol.escapedName);\n for (var _i = 0, staticBlocks_1 = staticBlocks; _i < staticBlocks_1.length; _i++) {\n var staticBlock = staticBlocks_1[_i];\n var reference = ts.factory.createPropertyAccessExpression(ts.factory.createThis(), accessName);\n ts.setParent(reference.expression, reference);\n ts.setParent(reference, staticBlock);\n reference.flowNode = staticBlock.returnFlowNode;\n var flowType = getFlowTypeOfProperty(reference, symbol);\n if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {\n error(symbol.valueDeclaration, ts.Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));\n }\n // We don't infer a type if assignments are only null or undefined.\n if (everyType(flowType, isNullableType)) {\n continue;\n }\n return convertAutoToAny(flowType);\n }\n }\n function getFlowTypeInConstructor(symbol, constructor) {\n var accessName = ts.startsWith(symbol.escapedName, \"__#\")\n ? ts.factory.createPrivateIdentifier(symbol.escapedName.split(\"@\")[1])\n : ts.unescapeLeadingUnderscores(symbol.escapedName);\n var reference = ts.factory.createPropertyAccessExpression(ts.factory.createThis(), accessName);\n ts.setParent(reference.expression, reference);\n ts.setParent(reference, constructor);\n reference.flowNode = constructor.returnFlowNode;\n var flowType = getFlowTypeOfProperty(reference, symbol);\n if (noImplicitAny && (flowType === autoType || flowType === autoArrayType)) {\n error(symbol.valueDeclaration, ts.Diagnostics.Member_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));\n }\n // We don't infer a type if assignments are only null or undefined.\n return everyType(flowType, isNullableType) ? undefined : convertAutoToAny(flowType);\n }\n function getFlowTypeOfProperty(reference, prop) {\n var initialType = (prop === null || prop === void 0 ? void 0 : prop.valueDeclaration)\n && (!isAutoTypedProperty(prop) || ts.getEffectiveModifierFlags(prop.valueDeclaration) & 2 /* Ambient */)\n && getTypeOfPropertyInBaseClass(prop)\n || undefinedType;\n return getFlowTypeOfReference(reference, autoType, initialType);\n }\n function getWidenedTypeForAssignmentDeclaration(symbol, resolvedSymbol) {\n // function/class/{} initializers are themselves containers, so they won't merge in the same way as other initializers\n var container = ts.getAssignedExpandoInitializer(symbol.valueDeclaration);\n if (container) {\n var tag = ts.getJSDocTypeTag(container);\n if (tag && tag.typeExpression) {\n return getTypeFromTypeNode(tag.typeExpression);\n }\n var containerObjectType = symbol.valueDeclaration && getJSContainerObjectType(symbol.valueDeclaration, symbol, container);\n return containerObjectType || getWidenedLiteralType(checkExpressionCached(container));\n }\n var type;\n var definedInConstructor = false;\n var definedInMethod = false;\n // We use control flow analysis to determine the type of the property if the property qualifies as a constructor\n // declared property and the resulting control flow type isn't just undefined or null.\n if (isConstructorDeclaredProperty(symbol)) {\n type = getFlowTypeInConstructor(symbol, getDeclaringConstructor(symbol));\n }\n if (!type) {\n var types = void 0;\n if (symbol.declarations) {\n var jsdocType = void 0;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n var expression = (ts.isBinaryExpression(declaration) || ts.isCallExpression(declaration)) ? declaration :\n ts.isAccessExpression(declaration) ? ts.isBinaryExpression(declaration.parent) ? declaration.parent : declaration :\n undefined;\n if (!expression) {\n continue; // Non-assignment declaration merged in (eg, an Identifier to mark the thing as a namespace) - skip over it and pull type info from elsewhere\n }\n var kind = ts.isAccessExpression(expression)\n ? ts.getAssignmentDeclarationPropertyAccessKind(expression)\n : ts.getAssignmentDeclarationKind(expression);\n if (kind === 4 /* ThisProperty */ || ts.isBinaryExpression(expression) && isPossiblyAliasedThisProperty(expression, kind)) {\n if (isDeclarationInConstructor(expression)) {\n definedInConstructor = true;\n }\n else {\n definedInMethod = true;\n }\n }\n if (!ts.isCallExpression(expression)) {\n jsdocType = getAnnotatedTypeForAssignmentDeclaration(jsdocType, expression, symbol, declaration);\n }\n if (!jsdocType) {\n (types || (types = [])).push((ts.isBinaryExpression(expression) || ts.isCallExpression(expression)) ? getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) : neverType);\n }\n }\n type = jsdocType;\n }\n if (!type) {\n if (!ts.length(types)) {\n return errorType; // No types from any declarations :(\n }\n var constructorTypes = definedInConstructor && symbol.declarations ? getConstructorDefinedThisAssignmentTypes(types, symbol.declarations) : undefined;\n // use only the constructor types unless they were only assigned null | undefined (including widening variants)\n if (definedInMethod) {\n var propType = getTypeOfPropertyInBaseClass(symbol);\n if (propType) {\n (constructorTypes || (constructorTypes = [])).push(propType);\n definedInConstructor = true;\n }\n }\n var sourceTypes = ts.some(constructorTypes, function (t) { return !!(t.flags & ~98304 /* Nullable */); }) ? constructorTypes : types; // TODO: GH#18217\n type = getUnionType(sourceTypes, 2 /* Subtype */);\n }\n }\n var widened = getWidenedType(addOptionality(type, /*isProperty*/ false, definedInMethod && !definedInConstructor));\n if (symbol.valueDeclaration && filterType(widened, function (t) { return !!(t.flags & ~98304 /* Nullable */); }) === neverType) {\n reportImplicitAny(symbol.valueDeclaration, anyType);\n return anyType;\n }\n return widened;\n }\n function getJSContainerObjectType(decl, symbol, init) {\n var _a, _b;\n if (!ts.isInJSFile(decl) || !init || !ts.isObjectLiteralExpression(init) || init.properties.length) {\n return undefined;\n }\n var exports = ts.createSymbolTable();\n while (ts.isBinaryExpression(decl) || ts.isPropertyAccessExpression(decl)) {\n var s_2 = getSymbolOfNode(decl);\n if ((_a = s_2 === null || s_2 === void 0 ? void 0 : s_2.exports) === null || _a === void 0 ? void 0 : _a.size) {\n mergeSymbolTable(exports, s_2.exports);\n }\n decl = ts.isBinaryExpression(decl) ? decl.parent : decl.parent.parent;\n }\n var s = getSymbolOfNode(decl);\n if ((_b = s === null || s === void 0 ? void 0 : s.exports) === null || _b === void 0 ? void 0 : _b.size) {\n mergeSymbolTable(exports, s.exports);\n }\n var type = createAnonymousType(symbol, exports, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n type.objectFlags |= 8192 /* JSLiteral */;\n return type;\n }\n function getAnnotatedTypeForAssignmentDeclaration(declaredType, expression, symbol, declaration) {\n var _a;\n var typeNode = ts.getEffectiveTypeAnnotationNode(expression.parent);\n if (typeNode) {\n var type = getWidenedType(getTypeFromTypeNode(typeNode));\n if (!declaredType) {\n return type;\n }\n else if (declaredType !== errorType && type !== errorType && !isTypeIdenticalTo(declaredType, type)) {\n errorNextVariableOrPropertyDeclarationMustHaveSameType(/*firstDeclaration*/ undefined, declaredType, declaration, type);\n }\n }\n if ((_a = symbol.parent) === null || _a === void 0 ? void 0 : _a.valueDeclaration) {\n var typeNode_2 = ts.getEffectiveTypeAnnotationNode(symbol.parent.valueDeclaration);\n if (typeNode_2) {\n var annotationSymbol = getPropertyOfType(getTypeFromTypeNode(typeNode_2), symbol.escapedName);\n if (annotationSymbol) {\n return getNonMissingTypeOfSymbol(annotationSymbol);\n }\n }\n }\n return declaredType;\n }\n /** If we don't have an explicit JSDoc type, get the type from the initializer. */\n function getInitializerTypeFromAssignmentDeclaration(symbol, resolvedSymbol, expression, kind) {\n if (ts.isCallExpression(expression)) {\n if (resolvedSymbol) {\n return getTypeOfSymbol(resolvedSymbol); // This shouldn't happen except under some hopefully forbidden merges of export assignments and object define assignments\n }\n var objectLitType = checkExpressionCached(expression.arguments[2]);\n var valueType = getTypeOfPropertyOfType(objectLitType, \"value\");\n if (valueType) {\n return valueType;\n }\n var getFunc = getTypeOfPropertyOfType(objectLitType, \"get\");\n if (getFunc) {\n var getSig = getSingleCallSignature(getFunc);\n if (getSig) {\n return getReturnTypeOfSignature(getSig);\n }\n }\n var setFunc = getTypeOfPropertyOfType(objectLitType, \"set\");\n if (setFunc) {\n var setSig = getSingleCallSignature(setFunc);\n if (setSig) {\n return getTypeOfFirstParameterOfSignature(setSig);\n }\n }\n return anyType;\n }\n if (containsSameNamedThisProperty(expression.left, expression.right)) {\n return anyType;\n }\n var type = resolvedSymbol ? getTypeOfSymbol(resolvedSymbol) : getWidenedLiteralType(checkExpressionCached(expression.right));\n if (type.flags & 524288 /* Object */ &&\n kind === 2 /* ModuleExports */ &&\n symbol.escapedName === \"export=\" /* ExportEquals */) {\n var exportedType = resolveStructuredTypeMembers(type);\n var members_4 = ts.createSymbolTable();\n ts.copyEntries(exportedType.members, members_4);\n var initialSize = members_4.size;\n if (resolvedSymbol && !resolvedSymbol.exports) {\n resolvedSymbol.exports = ts.createSymbolTable();\n }\n (resolvedSymbol || symbol).exports.forEach(function (s, name) {\n var _a;\n var exportedMember = members_4.get(name);\n if (exportedMember && exportedMember !== s) {\n if (s.flags & 111551 /* Value */ && exportedMember.flags & 111551 /* Value */) {\n // If the member has an additional value-like declaration, union the types from the two declarations,\n // but issue an error if they occurred in two different files. The purpose is to support a JS file with\n // a pattern like:\n //\n // module.exports = { a: true };\n // module.exports.a = 3;\n //\n // but we may have a JS file with `module.exports = { a: true }` along with a TypeScript module augmentation\n // declaring an `export const a: number`. In that case, we issue a duplicate identifier error, because\n // it's unclear what that's supposed to mean, so it's probably a mistake.\n if (s.valueDeclaration && exportedMember.valueDeclaration && ts.getSourceFileOfNode(s.valueDeclaration) !== ts.getSourceFileOfNode(exportedMember.valueDeclaration)) {\n var unescapedName = ts.unescapeLeadingUnderscores(s.escapedName);\n var exportedMemberName = ((_a = ts.tryCast(exportedMember.valueDeclaration, ts.isNamedDeclaration)) === null || _a === void 0 ? void 0 : _a.name) || exportedMember.valueDeclaration;\n ts.addRelatedInfo(error(s.valueDeclaration, ts.Diagnostics.Duplicate_identifier_0, unescapedName), ts.createDiagnosticForNode(exportedMemberName, ts.Diagnostics._0_was_also_declared_here, unescapedName));\n ts.addRelatedInfo(error(exportedMemberName, ts.Diagnostics.Duplicate_identifier_0, unescapedName), ts.createDiagnosticForNode(s.valueDeclaration, ts.Diagnostics._0_was_also_declared_here, unescapedName));\n }\n var union = createSymbol(s.flags | exportedMember.flags, name);\n union.type = getUnionType([getTypeOfSymbol(s), getTypeOfSymbol(exportedMember)]);\n union.valueDeclaration = exportedMember.valueDeclaration;\n union.declarations = ts.concatenate(exportedMember.declarations, s.declarations);\n members_4.set(name, union);\n }\n else {\n members_4.set(name, mergeSymbol(s, exportedMember));\n }\n }\n else {\n members_4.set(name, s);\n }\n });\n var result = createAnonymousType(initialSize !== members_4.size ? undefined : exportedType.symbol, // Only set the type's symbol if it looks to be the same as the original type\n members_4, exportedType.callSignatures, exportedType.constructSignatures, exportedType.indexInfos);\n result.objectFlags |= (ts.getObjectFlags(type) & 8192 /* JSLiteral */); // Propagate JSLiteral flag\n if (result.symbol && result.symbol.flags & 32 /* Class */ && type === getDeclaredTypeOfClassOrInterface(result.symbol)) {\n result.objectFlags |= 16777216 /* IsClassInstanceClone */; // Propagate the knowledge that this type is equivalent to the symbol's class instance type\n }\n return result;\n }\n if (isEmptyArrayLiteralType(type)) {\n reportImplicitAny(expression, anyArrayType);\n return anyArrayType;\n }\n return type;\n }\n function containsSameNamedThisProperty(thisProperty, expression) {\n return ts.isPropertyAccessExpression(thisProperty)\n && thisProperty.expression.kind === 108 /* ThisKeyword */\n && ts.forEachChildRecursively(expression, function (n) { return isMatchingReference(thisProperty, n); });\n }\n function isDeclarationInConstructor(expression) {\n var thisContainer = ts.getThisContainer(expression, /*includeArrowFunctions*/ false);\n // Properties defined in a constructor (or base constructor, or javascript constructor function) don't get undefined added.\n // Function expressions that are assigned to the prototype count as methods.\n return thisContainer.kind === 169 /* Constructor */ ||\n thisContainer.kind === 254 /* FunctionDeclaration */ ||\n (thisContainer.kind === 211 /* FunctionExpression */ && !ts.isPrototypePropertyAssignment(thisContainer.parent));\n }\n function getConstructorDefinedThisAssignmentTypes(types, declarations) {\n ts.Debug.assert(types.length === declarations.length);\n return types.filter(function (_, i) {\n var declaration = declarations[i];\n var expression = ts.isBinaryExpression(declaration) ? declaration :\n ts.isBinaryExpression(declaration.parent) ? declaration.parent : undefined;\n return expression && isDeclarationInConstructor(expression);\n });\n }\n // Return the type implied by a binding pattern element. This is the type of the initializer of the element if\n // one is present. Otherwise, if the element is itself a binding pattern, it is the type implied by the binding\n // pattern. Otherwise, it is the type any.\n function getTypeFromBindingElement(element, includePatternInType, reportErrors) {\n if (element.initializer) {\n // The type implied by a binding pattern is independent of context, so we check the initializer with no\n // contextual type or, if the element itself is a binding pattern, with the type implied by that binding\n // pattern.\n var contextualType = ts.isBindingPattern(element.name) ? getTypeFromBindingPattern(element.name, /*includePatternInType*/ true, /*reportErrors*/ false) : unknownType;\n return addOptionality(widenTypeInferredFromInitializer(element, checkDeclarationInitializer(element, contextualType)));\n }\n if (ts.isBindingPattern(element.name)) {\n return getTypeFromBindingPattern(element.name, includePatternInType, reportErrors);\n }\n if (reportErrors && !declarationBelongsToPrivateAmbientMember(element)) {\n reportImplicitAny(element, anyType);\n }\n // When we're including the pattern in the type (an indication we're obtaining a contextual type), we\n // use the non-inferrable any type. Inference will never directly infer this type, but it is possible\n // to infer a type that contains it, e.g. for a binding pattern like [foo] or { foo }. In such cases,\n // widening of the binding pattern type substitutes a regular any for the non-inferrable any.\n return includePatternInType ? nonInferrableAnyType : anyType;\n }\n // Return the type implied by an object binding pattern\n function getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors) {\n var members = ts.createSymbolTable();\n var stringIndexInfo;\n var objectFlags = 128 /* ObjectLiteral */ | 262144 /* ContainsObjectOrArrayLiteral */;\n ts.forEach(pattern.elements, function (e) {\n var name = e.propertyName || e.name;\n if (e.dotDotDotToken) {\n stringIndexInfo = createIndexInfo(stringType, anyType, /*isReadonly*/ false);\n return;\n }\n var exprType = getLiteralTypeFromPropertyName(name);\n if (!isTypeUsableAsPropertyName(exprType)) {\n // do not include computed properties in the implied type\n objectFlags |= 512 /* ObjectLiteralPatternWithComputedProperties */;\n return;\n }\n var text = getPropertyNameFromType(exprType);\n var flags = 4 /* Property */ | (e.initializer ? 16777216 /* Optional */ : 0);\n var symbol = createSymbol(flags, text);\n symbol.type = getTypeFromBindingElement(e, includePatternInType, reportErrors);\n symbol.bindingElement = e;\n members.set(symbol.escapedName, symbol);\n });\n var result = createAnonymousType(undefined, members, ts.emptyArray, ts.emptyArray, stringIndexInfo ? [stringIndexInfo] : ts.emptyArray);\n result.objectFlags |= objectFlags;\n if (includePatternInType) {\n result.pattern = pattern;\n result.objectFlags |= 262144 /* ContainsObjectOrArrayLiteral */;\n }\n return result;\n }\n // Return the type implied by an array binding pattern\n function getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors) {\n var elements = pattern.elements;\n var lastElement = ts.lastOrUndefined(elements);\n var restElement = lastElement && lastElement.kind === 201 /* BindingElement */ && lastElement.dotDotDotToken ? lastElement : undefined;\n if (elements.length === 0 || elements.length === 1 && restElement) {\n return languageVersion >= 2 /* ES2015 */ ? createIterableType(anyType) : anyArrayType;\n }\n var elementTypes = ts.map(elements, function (e) { return ts.isOmittedExpression(e) ? anyType : getTypeFromBindingElement(e, includePatternInType, reportErrors); });\n var minLength = ts.findLastIndex(elements, function (e) { return !(e === restElement || ts.isOmittedExpression(e) || hasDefaultValue(e)); }, elements.length - 1) + 1;\n var elementFlags = ts.map(elements, function (e, i) { return e === restElement ? 4 /* Rest */ : i >= minLength ? 2 /* Optional */ : 1 /* Required */; });\n var result = createTupleType(elementTypes, elementFlags);\n if (includePatternInType) {\n result = cloneTypeReference(result);\n result.pattern = pattern;\n result.objectFlags |= 262144 /* ContainsObjectOrArrayLiteral */;\n }\n return result;\n }\n // Return the type implied by a binding pattern. This is the type implied purely by the binding pattern itself\n // and without regard to its context (i.e. without regard any type annotation or initializer associated with the\n // declaration in which the binding pattern is contained). For example, the implied type of [x, y] is [any, any]\n // and the implied type of { x, y: z = 1 } is { x: any; y: number; }. The type implied by a binding pattern is\n // used as the contextual type of an initializer associated with the binding pattern. Also, for a destructuring\n // parameter with no type annotation or initializer, the type implied by the binding pattern becomes the type of\n // the parameter.\n function getTypeFromBindingPattern(pattern, includePatternInType, reportErrors) {\n if (includePatternInType === void 0) { includePatternInType = false; }\n if (reportErrors === void 0) { reportErrors = false; }\n return pattern.kind === 199 /* ObjectBindingPattern */\n ? getTypeFromObjectBindingPattern(pattern, includePatternInType, reportErrors)\n : getTypeFromArrayBindingPattern(pattern, includePatternInType, reportErrors);\n }\n // Return the type associated with a variable, parameter, or property declaration. In the simple case this is the type\n // specified in a type annotation or inferred from an initializer. However, in the case of a destructuring declaration it\n // is a bit more involved. For example:\n //\n // var [x, s = \"\"] = [1, \"one\"];\n //\n // Here, the array literal [1, \"one\"] is contextually typed by the type [any, string], which is the implied type of the\n // binding pattern [x, s = \"\"]. Because the contextual type is a tuple type, the resulting type of [1, \"one\"] is the\n // tuple type [number, string]. Thus, the type inferred for 'x' is number and the type inferred for 's' is string.\n function getWidenedTypeForVariableLikeDeclaration(declaration, reportErrors) {\n return widenTypeForVariableLikeDeclaration(getTypeForVariableLikeDeclaration(declaration, /*includeOptionality*/ true), declaration, reportErrors);\n }\n function isGlobalSymbolConstructor(node) {\n var symbol = getSymbolOfNode(node);\n var globalSymbol = getGlobalESSymbolConstructorTypeSymbol(/*reportErrors*/ false);\n return globalSymbol && symbol && symbol === globalSymbol;\n }\n function widenTypeForVariableLikeDeclaration(type, declaration, reportErrors) {\n if (type) {\n // TODO: If back compat with pre-3.0/4.0 libs isn't required, remove the following SymbolConstructor special case transforming `symbol` into `unique symbol`\n if (type.flags & 4096 /* ESSymbol */ && isGlobalSymbolConstructor(declaration.parent)) {\n type = getESSymbolLikeTypeForNode(declaration);\n }\n if (reportErrors) {\n reportErrorsFromWidening(declaration, type);\n }\n // always widen a 'unique symbol' type if the type was created for a different declaration.\n if (type.flags & 8192 /* UniqueESSymbol */ && (ts.isBindingElement(declaration) || !declaration.type) && type.symbol !== getSymbolOfNode(declaration)) {\n type = esSymbolType;\n }\n return getWidenedType(type);\n }\n // Rest parameters default to type any[], other parameters default to type any\n type = ts.isParameter(declaration) && declaration.dotDotDotToken ? anyArrayType : anyType;\n // Report implicit any errors unless this is a private property within an ambient declaration\n if (reportErrors) {\n if (!declarationBelongsToPrivateAmbientMember(declaration)) {\n reportImplicitAny(declaration, type);\n }\n }\n return type;\n }\n function declarationBelongsToPrivateAmbientMember(declaration) {\n var root = ts.getRootDeclaration(declaration);\n var memberDeclaration = root.kind === 162 /* Parameter */ ? root.parent : root;\n return isPrivateWithinAmbient(memberDeclaration);\n }\n function tryGetTypeFromEffectiveTypeNode(declaration) {\n var typeNode = ts.getEffectiveTypeAnnotationNode(declaration);\n if (typeNode) {\n return getTypeFromTypeNode(typeNode);\n }\n }\n function getTypeOfVariableOrParameterOrProperty(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.type) {\n var type = getTypeOfVariableOrParameterOrPropertyWorker(symbol);\n // For a contextually typed parameter it is possible that a type has already\n // been assigned (in assignTypeToParameterAndFixTypeParameters), and we want\n // to preserve this type.\n if (!links.type) {\n links.type = type;\n }\n }\n return links.type;\n }\n function getTypeOfVariableOrParameterOrPropertyWorker(symbol) {\n // Handle prototype property\n if (symbol.flags & 4194304 /* Prototype */) {\n return getTypeOfPrototypeProperty(symbol);\n }\n // CommonsJS require and module both have type any.\n if (symbol === requireSymbol) {\n return anyType;\n }\n if (symbol.flags & 134217728 /* ModuleExports */ && symbol.valueDeclaration) {\n var fileSymbol = getSymbolOfNode(ts.getSourceFileOfNode(symbol.valueDeclaration));\n var result = createSymbol(fileSymbol.flags, \"exports\");\n result.declarations = fileSymbol.declarations ? fileSymbol.declarations.slice() : [];\n result.parent = symbol;\n result.target = fileSymbol;\n if (fileSymbol.valueDeclaration)\n result.valueDeclaration = fileSymbol.valueDeclaration;\n if (fileSymbol.members)\n result.members = new ts.Map(fileSymbol.members);\n if (fileSymbol.exports)\n result.exports = new ts.Map(fileSymbol.exports);\n var members = ts.createSymbolTable();\n members.set(\"exports\", result);\n return createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n }\n // Handle catch clause variables\n ts.Debug.assertIsDefined(symbol.valueDeclaration);\n var declaration = symbol.valueDeclaration;\n if (ts.isCatchClauseVariableDeclarationOrBindingElement(declaration)) {\n var typeNode = ts.getEffectiveTypeAnnotationNode(declaration);\n if (typeNode === undefined) {\n return useUnknownInCatchVariables ? unknownType : anyType;\n }\n var type_1 = getTypeOfNode(typeNode);\n // an errorType will make `checkTryStatement` issue an error\n return isTypeAny(type_1) || type_1 === unknownType ? type_1 : errorType;\n }\n // Handle export default expressions\n if (ts.isSourceFile(declaration) && ts.isJsonSourceFile(declaration)) {\n if (!declaration.statements.length) {\n return emptyObjectType;\n }\n return getWidenedType(getWidenedLiteralType(checkExpression(declaration.statements[0].expression)));\n }\n // Handle variable, parameter or property\n if (!pushTypeResolution(symbol, 0 /* Type */)) {\n // Symbol is property of some kind that is merged with something - should use `getTypeOfFuncClassEnumModule` and not `getTypeOfVariableOrParameterOrProperty`\n if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {\n return getTypeOfFuncClassEnumModule(symbol);\n }\n return reportCircularityError(symbol);\n }\n var type;\n if (declaration.kind === 269 /* ExportAssignment */) {\n type = widenTypeForVariableLikeDeclaration(checkExpressionCached(declaration.expression), declaration);\n }\n else if (ts.isBinaryExpression(declaration) ||\n (ts.isInJSFile(declaration) &&\n (ts.isCallExpression(declaration) || (ts.isPropertyAccessExpression(declaration) || ts.isBindableStaticElementAccessExpression(declaration)) && ts.isBinaryExpression(declaration.parent)))) {\n type = getWidenedTypeForAssignmentDeclaration(symbol);\n }\n else if (ts.isPropertyAccessExpression(declaration)\n || ts.isElementAccessExpression(declaration)\n || ts.isIdentifier(declaration)\n || ts.isStringLiteralLike(declaration)\n || ts.isNumericLiteral(declaration)\n || ts.isClassDeclaration(declaration)\n || ts.isFunctionDeclaration(declaration)\n || (ts.isMethodDeclaration(declaration) && !ts.isObjectLiteralMethod(declaration))\n || ts.isMethodSignature(declaration)\n || ts.isSourceFile(declaration)) {\n // Symbol is property of some kind that is merged with something - should use `getTypeOfFuncClassEnumModule` and not `getTypeOfVariableOrParameterOrProperty`\n if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {\n return getTypeOfFuncClassEnumModule(symbol);\n }\n type = ts.isBinaryExpression(declaration.parent) ?\n getWidenedTypeForAssignmentDeclaration(symbol) :\n tryGetTypeFromEffectiveTypeNode(declaration) || anyType;\n }\n else if (ts.isPropertyAssignment(declaration)) {\n type = tryGetTypeFromEffectiveTypeNode(declaration) || checkPropertyAssignment(declaration);\n }\n else if (ts.isJsxAttribute(declaration)) {\n type = tryGetTypeFromEffectiveTypeNode(declaration) || checkJsxAttribute(declaration);\n }\n else if (ts.isShorthandPropertyAssignment(declaration)) {\n type = tryGetTypeFromEffectiveTypeNode(declaration) || checkExpressionForMutableLocation(declaration.name, 0 /* Normal */);\n }\n else if (ts.isObjectLiteralMethod(declaration)) {\n type = tryGetTypeFromEffectiveTypeNode(declaration) || checkObjectLiteralMethod(declaration, 0 /* Normal */);\n }\n else if (ts.isParameter(declaration)\n || ts.isPropertyDeclaration(declaration)\n || ts.isPropertySignature(declaration)\n || ts.isVariableDeclaration(declaration)\n || ts.isBindingElement(declaration)\n || ts.isJSDocPropertyLikeTag(declaration)) {\n type = getWidenedTypeForVariableLikeDeclaration(declaration, /*includeOptionality*/ true);\n }\n // getTypeOfSymbol dispatches some JS merges incorrectly because their symbol flags are not mutually exclusive.\n // Re-dispatch based on valueDeclaration.kind instead.\n else if (ts.isEnumDeclaration(declaration)) {\n type = getTypeOfFuncClassEnumModule(symbol);\n }\n else if (ts.isEnumMember(declaration)) {\n type = getTypeOfEnumMember(symbol);\n }\n else if (ts.isAccessor(declaration)) {\n type = resolveTypeOfAccessors(symbol) || ts.Debug.fail(\"Non-write accessor resolution must always produce a type\");\n }\n else {\n return ts.Debug.fail(\"Unhandled declaration kind! \" + ts.Debug.formatSyntaxKind(declaration.kind) + \" for \" + ts.Debug.formatSymbol(symbol));\n }\n if (!popTypeResolution()) {\n // Symbol is property of some kind that is merged with something - should use `getTypeOfFuncClassEnumModule` and not `getTypeOfVariableOrParameterOrProperty`\n if (symbol.flags & 512 /* ValueModule */ && !(symbol.flags & 67108864 /* Assignment */)) {\n return getTypeOfFuncClassEnumModule(symbol);\n }\n return reportCircularityError(symbol);\n }\n return type;\n }\n function getAnnotatedAccessorTypeNode(accessor) {\n if (accessor) {\n if (accessor.kind === 170 /* GetAccessor */) {\n var getterTypeAnnotation = ts.getEffectiveReturnTypeNode(accessor);\n return getterTypeAnnotation;\n }\n else {\n var setterTypeAnnotation = ts.getEffectiveSetAccessorTypeAnnotationNode(accessor);\n return setterTypeAnnotation;\n }\n }\n return undefined;\n }\n function getAnnotatedAccessorType(accessor) {\n var node = getAnnotatedAccessorTypeNode(accessor);\n return node && getTypeFromTypeNode(node);\n }\n function getAnnotatedAccessorThisParameter(accessor) {\n var parameter = getAccessorThisParameter(accessor);\n return parameter && parameter.symbol;\n }\n function getThisTypeOfDeclaration(declaration) {\n return getThisTypeOfSignature(getSignatureFromDeclaration(declaration));\n }\n function getTypeOfAccessors(symbol) {\n var links = getSymbolLinks(symbol);\n return links.type || (links.type = getTypeOfAccessorsWorker(symbol) || ts.Debug.fail(\"Read type of accessor must always produce a type\"));\n }\n function getTypeOfSetAccessor(symbol) {\n var links = getSymbolLinks(symbol);\n return links.writeType || (links.writeType = getTypeOfAccessorsWorker(symbol, /*writing*/ true));\n }\n function getTypeOfAccessorsWorker(symbol, writing) {\n if (writing === void 0) { writing = false; }\n if (!pushTypeResolution(symbol, 0 /* Type */)) {\n return errorType;\n }\n var type = resolveTypeOfAccessors(symbol, writing);\n if (!popTypeResolution()) {\n type = anyType;\n if (noImplicitAny) {\n var getter = ts.getDeclarationOfKind(symbol, 170 /* GetAccessor */);\n error(getter, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, symbolToString(symbol));\n }\n }\n return type;\n }\n function resolveTypeOfAccessors(symbol, writing) {\n if (writing === void 0) { writing = false; }\n var getter = ts.getDeclarationOfKind(symbol, 170 /* GetAccessor */);\n var setter = ts.getDeclarationOfKind(symbol, 171 /* SetAccessor */);\n var setterType = getAnnotatedAccessorType(setter);\n // For write operations, prioritize type annotations on the setter\n if (writing && setterType) {\n return instantiateTypeIfNeeded(setterType, symbol);\n }\n // Else defer to the getter type\n if (getter && ts.isInJSFile(getter)) {\n var jsDocType = getTypeForDeclarationFromJSDocComment(getter);\n if (jsDocType) {\n return instantiateTypeIfNeeded(jsDocType, symbol);\n }\n }\n // Try to see if the user specified a return type on the get-accessor.\n var getterType = getAnnotatedAccessorType(getter);\n if (getterType) {\n return instantiateTypeIfNeeded(getterType, symbol);\n }\n // If the user didn't specify a return type, try to use the set-accessor's parameter type.\n if (setterType) {\n return setterType;\n }\n // If there are no specified types, try to infer it from the body of the get accessor if it exists.\n if (getter && getter.body) {\n var returnTypeFromBody = getReturnTypeFromBody(getter);\n return instantiateTypeIfNeeded(returnTypeFromBody, symbol);\n }\n // Otherwise, fall back to 'any'.\n if (setter) {\n if (!isPrivateWithinAmbient(setter)) {\n errorOrSuggestion(noImplicitAny, setter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation, symbolToString(symbol));\n }\n return anyType;\n }\n else if (getter) {\n ts.Debug.assert(!!getter, \"there must exist a getter as we are current checking either setter or getter in this function\");\n if (!isPrivateWithinAmbient(getter)) {\n errorOrSuggestion(noImplicitAny, getter, ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation, symbolToString(symbol));\n }\n return anyType;\n }\n return undefined;\n function instantiateTypeIfNeeded(type, symbol) {\n if (ts.getCheckFlags(symbol) & 1 /* Instantiated */) {\n var links = getSymbolLinks(symbol);\n return instantiateType(type, links.mapper);\n }\n return type;\n }\n }\n function getBaseTypeVariableOfClass(symbol) {\n var baseConstructorType = getBaseConstructorTypeOfClass(getDeclaredTypeOfClassOrInterface(symbol));\n return baseConstructorType.flags & 8650752 /* TypeVariable */ ? baseConstructorType :\n baseConstructorType.flags & 2097152 /* Intersection */ ? ts.find(baseConstructorType.types, function (t) { return !!(t.flags & 8650752 /* TypeVariable */); }) :\n undefined;\n }\n function getTypeOfFuncClassEnumModule(symbol) {\n var links = getSymbolLinks(symbol);\n var originalLinks = links;\n if (!links.type) {\n var expando = symbol.valueDeclaration && getSymbolOfExpando(symbol.valueDeclaration, /*allowDeclaration*/ false);\n if (expando) {\n var merged = mergeJSSymbols(symbol, expando);\n if (merged) {\n // note:we overwrite links because we just cloned the symbol\n symbol = links = merged;\n }\n }\n originalLinks.type = links.type = getTypeOfFuncClassEnumModuleWorker(symbol);\n }\n return links.type;\n }\n function getTypeOfFuncClassEnumModuleWorker(symbol) {\n var declaration = symbol.valueDeclaration;\n if (symbol.flags & 1536 /* Module */ && ts.isShorthandAmbientModuleSymbol(symbol)) {\n return anyType;\n }\n else if (declaration && (declaration.kind === 219 /* BinaryExpression */ ||\n ts.isAccessExpression(declaration) &&\n declaration.parent.kind === 219 /* BinaryExpression */)) {\n return getWidenedTypeForAssignmentDeclaration(symbol);\n }\n else if (symbol.flags & 512 /* ValueModule */ && declaration && ts.isSourceFile(declaration) && declaration.commonJsModuleIndicator) {\n var resolvedModule = resolveExternalModuleSymbol(symbol);\n if (resolvedModule !== symbol) {\n if (!pushTypeResolution(symbol, 0 /* Type */)) {\n return errorType;\n }\n var exportEquals = getMergedSymbol(symbol.exports.get(\"export=\" /* ExportEquals */));\n var type_2 = getWidenedTypeForAssignmentDeclaration(exportEquals, exportEquals === resolvedModule ? undefined : resolvedModule);\n if (!popTypeResolution()) {\n return reportCircularityError(symbol);\n }\n return type_2;\n }\n }\n var type = createObjectType(16 /* Anonymous */, symbol);\n if (symbol.flags & 32 /* Class */) {\n var baseTypeVariable = getBaseTypeVariableOfClass(symbol);\n return baseTypeVariable ? getIntersectionType([type, baseTypeVariable]) : type;\n }\n else {\n return strictNullChecks && symbol.flags & 16777216 /* Optional */ ? getOptionalType(type) : type;\n }\n }\n function getTypeOfEnumMember(symbol) {\n var links = getSymbolLinks(symbol);\n return links.type || (links.type = getDeclaredTypeOfEnumMember(symbol));\n }\n function getTypeOfAlias(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.type) {\n var targetSymbol = resolveAlias(symbol);\n var exportSymbol = symbol.declarations && getTargetOfAliasDeclaration(getDeclarationOfAliasSymbol(symbol), /*dontResolveAlias*/ true);\n // It only makes sense to get the type of a value symbol. If the result of resolving\n // the alias is not a value, then it has no type. To get the type associated with a\n // type symbol, call getDeclaredTypeOfSymbol.\n // This check is important because without it, a call to getTypeOfSymbol could end\n // up recursively calling getTypeOfAlias, causing a stack overflow.\n links.type = (exportSymbol === null || exportSymbol === void 0 ? void 0 : exportSymbol.declarations) && isDuplicatedCommonJSExport(exportSymbol.declarations) && symbol.declarations.length ? getFlowTypeFromCommonJSExport(exportSymbol)\n : isDuplicatedCommonJSExport(symbol.declarations) ? autoType\n : targetSymbol.flags & 111551 /* Value */ ? getTypeOfSymbol(targetSymbol)\n : errorType;\n }\n return links.type;\n }\n function getTypeOfInstantiatedSymbol(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.type) {\n if (!pushTypeResolution(symbol, 0 /* Type */)) {\n return links.type = errorType;\n }\n var type = instantiateType(getTypeOfSymbol(links.target), links.mapper);\n if (!popTypeResolution()) {\n type = reportCircularityError(symbol);\n }\n links.type = type;\n }\n return links.type;\n }\n function reportCircularityError(symbol) {\n var declaration = symbol.valueDeclaration;\n // Check if variable has type annotation that circularly references the variable itself\n if (ts.getEffectiveTypeAnnotationNode(declaration)) {\n error(symbol.valueDeclaration, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_type_annotation, symbolToString(symbol));\n return errorType;\n }\n // Check if variable has initializer that circularly references the variable itself\n if (noImplicitAny && (declaration.kind !== 162 /* Parameter */ || declaration.initializer)) {\n error(symbol.valueDeclaration, ts.Diagnostics._0_implicitly_has_type_any_because_it_does_not_have_a_type_annotation_and_is_referenced_directly_or_indirectly_in_its_own_initializer, symbolToString(symbol));\n }\n // Circularities could also result from parameters in function expressions that end up\n // having themselves as contextual types following type argument inference. In those cases\n // we have already reported an implicit any error so we don't report anything here.\n return anyType;\n }\n function getTypeOfSymbolWithDeferredType(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.type) {\n ts.Debug.assertIsDefined(links.deferralParent);\n ts.Debug.assertIsDefined(links.deferralConstituents);\n links.type = links.deferralParent.flags & 1048576 /* Union */ ? getUnionType(links.deferralConstituents) : getIntersectionType(links.deferralConstituents);\n }\n return links.type;\n }\n function getSetAccessorTypeOfSymbol(symbol) {\n if (symbol.flags & 98304 /* Accessor */) {\n var type = getTypeOfSetAccessor(symbol);\n if (type) {\n return type;\n }\n }\n return getTypeOfSymbol(symbol);\n }\n function getTypeOfSymbol(symbol) {\n var checkFlags = ts.getCheckFlags(symbol);\n if (checkFlags & 65536 /* DeferredType */) {\n return getTypeOfSymbolWithDeferredType(symbol);\n }\n if (checkFlags & 1 /* Instantiated */) {\n return getTypeOfInstantiatedSymbol(symbol);\n }\n if (checkFlags & 262144 /* Mapped */) {\n return getTypeOfMappedSymbol(symbol);\n }\n if (checkFlags & 8192 /* ReverseMapped */) {\n return getTypeOfReverseMappedSymbol(symbol);\n }\n if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {\n return getTypeOfVariableOrParameterOrProperty(symbol);\n }\n if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 384 /* Enum */ | 512 /* ValueModule */)) {\n return getTypeOfFuncClassEnumModule(symbol);\n }\n if (symbol.flags & 8 /* EnumMember */) {\n return getTypeOfEnumMember(symbol);\n }\n if (symbol.flags & 98304 /* Accessor */) {\n return getTypeOfAccessors(symbol);\n }\n if (symbol.flags & 2097152 /* Alias */) {\n return getTypeOfAlias(symbol);\n }\n return errorType;\n }\n function getNonMissingTypeOfSymbol(symbol) {\n return removeMissingType(getTypeOfSymbol(symbol), !!(symbol.flags & 16777216 /* Optional */));\n }\n function isReferenceToType(type, target) {\n return type !== undefined\n && target !== undefined\n && (ts.getObjectFlags(type) & 4 /* Reference */) !== 0\n && type.target === target;\n }\n function getTargetType(type) {\n return ts.getObjectFlags(type) & 4 /* Reference */ ? type.target : type;\n }\n // TODO: GH#18217 If `checkBase` is undefined, we should not call this because this will always return false.\n function hasBaseType(type, checkBase) {\n return check(type);\n function check(type) {\n if (ts.getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */)) {\n var target = getTargetType(type);\n return target === checkBase || ts.some(getBaseTypes(target), check);\n }\n else if (type.flags & 2097152 /* Intersection */) {\n return ts.some(type.types, check);\n }\n return false;\n }\n }\n // Appends the type parameters given by a list of declarations to a set of type parameters and returns the resulting set.\n // The function allocates a new array if the input type parameter set is undefined, but otherwise it modifies the set\n // in-place and returns the same array.\n function appendTypeParameters(typeParameters, declarations) {\n for (var _i = 0, declarations_2 = declarations; _i < declarations_2.length; _i++) {\n var declaration = declarations_2[_i];\n typeParameters = ts.appendIfUnique(typeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfNode(declaration)));\n }\n return typeParameters;\n }\n // Return the outer type parameters of a node or undefined if the node has no outer type parameters.\n function getOuterTypeParameters(node, includeThisTypes) {\n while (true) {\n node = node.parent; // TODO: GH#18217 Use SourceFile kind check instead\n if (node && ts.isBinaryExpression(node)) {\n // prototype assignments get the outer type parameters of their constructor function\n var assignmentKind = ts.getAssignmentDeclarationKind(node);\n if (assignmentKind === 6 /* Prototype */ || assignmentKind === 3 /* PrototypeProperty */) {\n var symbol = getSymbolOfNode(node.left);\n if (symbol && symbol.parent && !ts.findAncestor(symbol.parent.valueDeclaration, function (d) { return node === d; })) {\n node = symbol.parent.valueDeclaration;\n }\n }\n }\n if (!node) {\n return undefined;\n }\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 166 /* MethodSignature */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 312 /* JSDocFunctionType */:\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 257 /* TypeAliasDeclaration */:\n case 339 /* JSDocTemplateTag */:\n case 340 /* JSDocTypedefTag */:\n case 334 /* JSDocEnumTag */:\n case 333 /* JSDocCallbackTag */:\n case 193 /* MappedType */:\n case 187 /* ConditionalType */: {\n var outerTypeParameters = getOuterTypeParameters(node, includeThisTypes);\n if (node.kind === 193 /* MappedType */) {\n return ts.append(outerTypeParameters, getDeclaredTypeOfTypeParameter(getSymbolOfNode(node.typeParameter)));\n }\n else if (node.kind === 187 /* ConditionalType */) {\n return ts.concatenate(outerTypeParameters, getInferTypeParameters(node));\n }\n var outerAndOwnTypeParameters = appendTypeParameters(outerTypeParameters, ts.getEffectiveTypeParameterDeclarations(node));\n var thisType = includeThisTypes &&\n (node.kind === 255 /* ClassDeclaration */ || node.kind === 224 /* ClassExpression */ || node.kind === 256 /* InterfaceDeclaration */ || isJSConstructor(node)) &&\n getDeclaredTypeOfClassOrInterface(getSymbolOfNode(node)).thisType;\n return thisType ? ts.append(outerAndOwnTypeParameters, thisType) : outerAndOwnTypeParameters;\n }\n case 335 /* JSDocParameterTag */:\n var paramSymbol = ts.getParameterSymbolFromJSDoc(node);\n if (paramSymbol) {\n node = paramSymbol.valueDeclaration;\n }\n break;\n case 315 /* JSDocComment */: {\n var outerTypeParameters = getOuterTypeParameters(node, includeThisTypes);\n return node.tags\n ? appendTypeParameters(outerTypeParameters, ts.flatMap(node.tags, function (t) { return ts.isJSDocTemplateTag(t) ? t.typeParameters : undefined; }))\n : outerTypeParameters;\n }\n }\n }\n }\n // The outer type parameters are those defined by enclosing generic classes, methods, or functions.\n function getOuterTypeParametersOfClassOrInterface(symbol) {\n var declaration = symbol.flags & 32 /* Class */ ? symbol.valueDeclaration : ts.getDeclarationOfKind(symbol, 256 /* InterfaceDeclaration */);\n ts.Debug.assert(!!declaration, \"Class was missing valueDeclaration -OR- non-class had no interface declarations\");\n return getOuterTypeParameters(declaration);\n }\n // The local type parameters are the combined set of type parameters from all declarations of the class,\n // interface, or type alias.\n function getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) {\n if (!symbol.declarations) {\n return;\n }\n var result;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var node = _a[_i];\n if (node.kind === 256 /* InterfaceDeclaration */ ||\n node.kind === 255 /* ClassDeclaration */ ||\n node.kind === 224 /* ClassExpression */ ||\n isJSConstructor(node) ||\n ts.isTypeAlias(node)) {\n var declaration = node;\n result = appendTypeParameters(result, ts.getEffectiveTypeParameterDeclarations(declaration));\n }\n }\n return result;\n }\n // The full set of type parameters for a generic class or interface type consists of its outer type parameters plus\n // its locally declared type parameters.\n function getTypeParametersOfClassOrInterface(symbol) {\n return ts.concatenate(getOuterTypeParametersOfClassOrInterface(symbol), getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol));\n }\n // A type is a mixin constructor if it has a single construct signature taking no type parameters and a single\n // rest parameter of type any[].\n function isMixinConstructorType(type) {\n var signatures = getSignaturesOfType(type, 1 /* Construct */);\n if (signatures.length === 1) {\n var s = signatures[0];\n if (!s.typeParameters && s.parameters.length === 1 && signatureHasRestParameter(s)) {\n var paramType = getTypeOfParameter(s.parameters[0]);\n return isTypeAny(paramType) || getElementTypeOfArrayType(paramType) === anyType;\n }\n }\n return false;\n }\n function isConstructorType(type) {\n if (getSignaturesOfType(type, 1 /* Construct */).length > 0) {\n return true;\n }\n if (type.flags & 8650752 /* TypeVariable */) {\n var constraint = getBaseConstraintOfType(type);\n return !!constraint && isMixinConstructorType(constraint);\n }\n return false;\n }\n function getBaseTypeNodeOfClass(type) {\n return ts.getEffectiveBaseTypeNode(type.symbol.valueDeclaration);\n }\n function getConstructorsForTypeArguments(type, typeArgumentNodes, location) {\n var typeArgCount = ts.length(typeArgumentNodes);\n var isJavascript = ts.isInJSFile(location);\n return ts.filter(getSignaturesOfType(type, 1 /* Construct */), function (sig) { return (isJavascript || typeArgCount >= getMinTypeArgumentCount(sig.typeParameters)) && typeArgCount <= ts.length(sig.typeParameters); });\n }\n function getInstantiatedConstructorsForTypeArguments(type, typeArgumentNodes, location) {\n var signatures = getConstructorsForTypeArguments(type, typeArgumentNodes, location);\n var typeArguments = ts.map(typeArgumentNodes, getTypeFromTypeNode);\n return ts.sameMap(signatures, function (sig) { return ts.some(sig.typeParameters) ? getSignatureInstantiation(sig, typeArguments, ts.isInJSFile(location)) : sig; });\n }\n /**\n * The base constructor of a class can resolve to\n * * undefinedType if the class has no extends clause,\n * * unknownType if an error occurred during resolution of the extends expression,\n * * nullType if the extends expression is the null value,\n * * anyType if the extends expression has type any, or\n * * an object type with at least one construct signature.\n */\n function getBaseConstructorTypeOfClass(type) {\n if (!type.resolvedBaseConstructorType) {\n var decl = type.symbol.valueDeclaration;\n var extended = ts.getEffectiveBaseTypeNode(decl);\n var baseTypeNode = getBaseTypeNodeOfClass(type);\n if (!baseTypeNode) {\n return type.resolvedBaseConstructorType = undefinedType;\n }\n if (!pushTypeResolution(type, 1 /* ResolvedBaseConstructorType */)) {\n return errorType;\n }\n var baseConstructorType = checkExpression(baseTypeNode.expression);\n if (extended && baseTypeNode !== extended) {\n ts.Debug.assert(!extended.typeArguments); // Because this is in a JS file, and baseTypeNode is in an @extends tag\n checkExpression(extended.expression);\n }\n if (baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */)) {\n // Resolving the members of a class requires us to resolve the base class of that class.\n // We force resolution here such that we catch circularities now.\n resolveStructuredTypeMembers(baseConstructorType);\n }\n if (!popTypeResolution()) {\n error(type.symbol.valueDeclaration, ts.Diagnostics._0_is_referenced_directly_or_indirectly_in_its_own_base_expression, symbolToString(type.symbol));\n return type.resolvedBaseConstructorType = errorType;\n }\n if (!(baseConstructorType.flags & 1 /* Any */) && baseConstructorType !== nullWideningType && !isConstructorType(baseConstructorType)) {\n var err = error(baseTypeNode.expression, ts.Diagnostics.Type_0_is_not_a_constructor_function_type, typeToString(baseConstructorType));\n if (baseConstructorType.flags & 262144 /* TypeParameter */) {\n var constraint = getConstraintFromTypeParameter(baseConstructorType);\n var ctorReturn = unknownType;\n if (constraint) {\n var ctorSig = getSignaturesOfType(constraint, 1 /* Construct */);\n if (ctorSig[0]) {\n ctorReturn = getReturnTypeOfSignature(ctorSig[0]);\n }\n }\n if (baseConstructorType.symbol.declarations) {\n ts.addRelatedInfo(err, ts.createDiagnosticForNode(baseConstructorType.symbol.declarations[0], ts.Diagnostics.Did_you_mean_for_0_to_be_constrained_to_type_new_args_Colon_any_1, symbolToString(baseConstructorType.symbol), typeToString(ctorReturn)));\n }\n }\n return type.resolvedBaseConstructorType = errorType;\n }\n type.resolvedBaseConstructorType = baseConstructorType;\n }\n return type.resolvedBaseConstructorType;\n }\n function getImplementsTypes(type) {\n var resolvedImplementsTypes = ts.emptyArray;\n if (type.symbol.declarations) {\n for (var _i = 0, _a = type.symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n var implementsTypeNodes = ts.getEffectiveImplementsTypeNodes(declaration);\n if (!implementsTypeNodes)\n continue;\n for (var _b = 0, implementsTypeNodes_1 = implementsTypeNodes; _b < implementsTypeNodes_1.length; _b++) {\n var node = implementsTypeNodes_1[_b];\n var implementsType = getTypeFromTypeNode(node);\n if (implementsType !== errorType) {\n if (resolvedImplementsTypes === ts.emptyArray) {\n resolvedImplementsTypes = [implementsType];\n }\n else {\n resolvedImplementsTypes.push(implementsType);\n }\n }\n }\n }\n }\n return resolvedImplementsTypes;\n }\n function reportCircularBaseType(node, type) {\n error(node, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, /*enclosingDeclaration*/ undefined, 2 /* WriteArrayAsGenericType */));\n }\n function getBaseTypes(type) {\n if (!type.baseTypesResolved) {\n if (pushTypeResolution(type, 7 /* ResolvedBaseTypes */)) {\n if (type.objectFlags & 8 /* Tuple */) {\n type.resolvedBaseTypes = [getTupleBaseType(type)];\n }\n else if (type.symbol.flags & (32 /* Class */ | 64 /* Interface */)) {\n if (type.symbol.flags & 32 /* Class */) {\n resolveBaseTypesOfClass(type);\n }\n if (type.symbol.flags & 64 /* Interface */) {\n resolveBaseTypesOfInterface(type);\n }\n }\n else {\n ts.Debug.fail(\"type must be class or interface\");\n }\n if (!popTypeResolution() && type.symbol.declarations) {\n for (var _i = 0, _a = type.symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (declaration.kind === 255 /* ClassDeclaration */ || declaration.kind === 256 /* InterfaceDeclaration */) {\n reportCircularBaseType(declaration, type);\n }\n }\n }\n }\n type.baseTypesResolved = true;\n }\n return type.resolvedBaseTypes;\n }\n function getTupleBaseType(type) {\n var elementTypes = ts.sameMap(type.typeParameters, function (t, i) { return type.elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t; });\n return createArrayType(getUnionType(elementTypes || ts.emptyArray), type.readonly);\n }\n function resolveBaseTypesOfClass(type) {\n type.resolvedBaseTypes = ts.resolvingEmptyArray;\n var baseConstructorType = getApparentType(getBaseConstructorTypeOfClass(type));\n if (!(baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 1 /* Any */))) {\n return type.resolvedBaseTypes = ts.emptyArray;\n }\n var baseTypeNode = getBaseTypeNodeOfClass(type);\n var baseType;\n var originalBaseType = baseConstructorType.symbol ? getDeclaredTypeOfSymbol(baseConstructorType.symbol) : undefined;\n if (baseConstructorType.symbol && baseConstructorType.symbol.flags & 32 /* Class */ &&\n areAllOuterTypeParametersApplied(originalBaseType)) {\n // When base constructor type is a class with no captured type arguments we know that the constructors all have the same type parameters as the\n // class and all return the instance type of the class. There is no need for further checks and we can apply the\n // type arguments in the same manner as a type reference to get the same error reporting experience.\n baseType = getTypeFromClassOrInterfaceReference(baseTypeNode, baseConstructorType.symbol);\n }\n else if (baseConstructorType.flags & 1 /* Any */) {\n baseType = baseConstructorType;\n }\n else {\n // The class derives from a \"class-like\" constructor function, check that we have at least one construct signature\n // with a matching number of type parameters and use the return type of the first instantiated signature. Elsewhere\n // we check that all instantiated signatures return the same type.\n var constructors = getInstantiatedConstructorsForTypeArguments(baseConstructorType, baseTypeNode.typeArguments, baseTypeNode);\n if (!constructors.length) {\n error(baseTypeNode.expression, ts.Diagnostics.No_base_constructor_has_the_specified_number_of_type_arguments);\n return type.resolvedBaseTypes = ts.emptyArray;\n }\n baseType = getReturnTypeOfSignature(constructors[0]);\n }\n if (baseType === errorType) {\n return type.resolvedBaseTypes = ts.emptyArray;\n }\n var reducedBaseType = getReducedType(baseType);\n if (!isValidBaseType(reducedBaseType)) {\n var elaboration = elaborateNeverIntersection(/*errorInfo*/ undefined, baseType);\n var diagnostic = ts.chainDiagnosticMessages(elaboration, ts.Diagnostics.Base_constructor_return_type_0_is_not_an_object_type_or_intersection_of_object_types_with_statically_known_members, typeToString(reducedBaseType));\n diagnostics.add(ts.createDiagnosticForNodeFromMessageChain(baseTypeNode.expression, diagnostic));\n return type.resolvedBaseTypes = ts.emptyArray;\n }\n if (type === reducedBaseType || hasBaseType(reducedBaseType, type)) {\n error(type.symbol.valueDeclaration, ts.Diagnostics.Type_0_recursively_references_itself_as_a_base_type, typeToString(type, /*enclosingDeclaration*/ undefined, 2 /* WriteArrayAsGenericType */));\n return type.resolvedBaseTypes = ts.emptyArray;\n }\n if (type.resolvedBaseTypes === ts.resolvingEmptyArray) {\n // Circular reference, likely through instantiation of default parameters\n // (otherwise there'd be an error from hasBaseType) - this is fine, but `.members` should be reset\n // as `getIndexedAccessType` via `instantiateType` via `getTypeFromClassOrInterfaceReference` forces a\n // partial instantiation of the members without the base types fully resolved\n type.members = undefined;\n }\n return type.resolvedBaseTypes = [reducedBaseType];\n }\n function areAllOuterTypeParametersApplied(type) {\n // An unapplied type parameter has its symbol still the same as the matching argument symbol.\n // Since parameters are applied outer-to-inner, only the last outer parameter needs to be checked.\n var outerTypeParameters = type.outerTypeParameters;\n if (outerTypeParameters) {\n var last_1 = outerTypeParameters.length - 1;\n var typeArguments = getTypeArguments(type);\n return outerTypeParameters[last_1].symbol !== typeArguments[last_1].symbol;\n }\n return true;\n }\n // A valid base type is `any`, an object type or intersection of object types.\n function isValidBaseType(type) {\n if (type.flags & 262144 /* TypeParameter */) {\n var constraint = getBaseConstraintOfType(type);\n if (constraint) {\n return isValidBaseType(constraint);\n }\n }\n // TODO: Given that we allow type parmeters here now, is this `!isGenericMappedType(type)` check really needed?\n // There's no reason a `T` should be allowed while a `Readonly` should not.\n return !!(type.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 1 /* Any */) && !isGenericMappedType(type) ||\n type.flags & 2097152 /* Intersection */ && ts.every(type.types, isValidBaseType));\n }\n function resolveBaseTypesOfInterface(type) {\n type.resolvedBaseTypes = type.resolvedBaseTypes || ts.emptyArray;\n if (type.symbol.declarations) {\n for (var _i = 0, _a = type.symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (declaration.kind === 256 /* InterfaceDeclaration */ && ts.getInterfaceBaseTypeNodes(declaration)) {\n for (var _b = 0, _c = ts.getInterfaceBaseTypeNodes(declaration); _b < _c.length; _b++) {\n var node = _c[_b];\n var baseType = getReducedType(getTypeFromTypeNode(node));\n if (baseType !== errorType) {\n if (isValidBaseType(baseType)) {\n if (type !== baseType && !hasBaseType(baseType, type)) {\n if (type.resolvedBaseTypes === ts.emptyArray) {\n type.resolvedBaseTypes = [baseType];\n }\n else {\n type.resolvedBaseTypes.push(baseType);\n }\n }\n else {\n reportCircularBaseType(declaration, type);\n }\n }\n else {\n error(node, ts.Diagnostics.An_interface_can_only_extend_an_object_type_or_intersection_of_object_types_with_statically_known_members);\n }\n }\n }\n }\n }\n }\n }\n /**\n * Returns true if the interface given by the symbol is free of \"this\" references.\n *\n * Specifically, the result is true if the interface itself contains no references\n * to \"this\" in its body, if all base types are interfaces,\n * and if none of the base interfaces have a \"this\" type.\n */\n function isThislessInterface(symbol) {\n if (!symbol.declarations) {\n return true;\n }\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (declaration.kind === 256 /* InterfaceDeclaration */) {\n if (declaration.flags & 128 /* ContainsThis */) {\n return false;\n }\n var baseTypeNodes = ts.getInterfaceBaseTypeNodes(declaration);\n if (baseTypeNodes) {\n for (var _b = 0, baseTypeNodes_1 = baseTypeNodes; _b < baseTypeNodes_1.length; _b++) {\n var node = baseTypeNodes_1[_b];\n if (ts.isEntityNameExpression(node.expression)) {\n var baseSymbol = resolveEntityName(node.expression, 788968 /* Type */, /*ignoreErrors*/ true);\n if (!baseSymbol || !(baseSymbol.flags & 64 /* Interface */) || getDeclaredTypeOfClassOrInterface(baseSymbol).thisType) {\n return false;\n }\n }\n }\n }\n }\n }\n return true;\n }\n function getDeclaredTypeOfClassOrInterface(symbol) {\n var links = getSymbolLinks(symbol);\n var originalLinks = links;\n if (!links.declaredType) {\n var kind = symbol.flags & 32 /* Class */ ? 1 /* Class */ : 2 /* Interface */;\n var merged = mergeJSSymbols(symbol, symbol.valueDeclaration && getAssignedClassSymbol(symbol.valueDeclaration));\n if (merged) {\n // note:we overwrite links because we just cloned the symbol\n symbol = links = merged;\n }\n var type = originalLinks.declaredType = links.declaredType = createObjectType(kind, symbol);\n var outerTypeParameters = getOuterTypeParametersOfClassOrInterface(symbol);\n var localTypeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n // A class or interface is generic if it has type parameters or a \"this\" type. We always give classes a \"this\" type\n // because it is not feasible to analyze all members to determine if the \"this\" type escapes the class (in particular,\n // property types inferred from initializers and method return types inferred from return statements are very hard\n // to exhaustively analyze). We give interfaces a \"this\" type if we can't definitely determine that they are free of\n // \"this\" references.\n if (outerTypeParameters || localTypeParameters || kind === 1 /* Class */ || !isThislessInterface(symbol)) {\n type.objectFlags |= 4 /* Reference */;\n type.typeParameters = ts.concatenate(outerTypeParameters, localTypeParameters);\n type.outerTypeParameters = outerTypeParameters;\n type.localTypeParameters = localTypeParameters;\n type.instantiations = new ts.Map();\n type.instantiations.set(getTypeListId(type.typeParameters), type);\n type.target = type;\n type.resolvedTypeArguments = type.typeParameters;\n type.thisType = createTypeParameter(symbol);\n type.thisType.isThisType = true;\n type.thisType.constraint = type;\n }\n }\n return links.declaredType;\n }\n function getDeclaredTypeOfTypeAlias(symbol) {\n var _a;\n var links = getSymbolLinks(symbol);\n if (!links.declaredType) {\n // Note that we use the links object as the target here because the symbol object is used as the unique\n // identity for resolution of the 'type' property in SymbolLinks.\n if (!pushTypeResolution(symbol, 2 /* DeclaredType */)) {\n return errorType;\n }\n var declaration = ts.Debug.checkDefined((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isTypeAlias), \"Type alias symbol with no valid declaration found\");\n var typeNode = ts.isJSDocTypeAlias(declaration) ? declaration.typeExpression : declaration.type;\n // If typeNode is missing, we will error in checkJSDocTypedefTag.\n var type = typeNode ? getTypeFromTypeNode(typeNode) : errorType;\n if (popTypeResolution()) {\n var typeParameters = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n if (typeParameters) {\n // Initialize the instantiation cache for generic type aliases. The declared type corresponds to\n // an instantiation of the type alias with the type parameters supplied as type arguments.\n links.typeParameters = typeParameters;\n links.instantiations = new ts.Map();\n links.instantiations.set(getTypeListId(typeParameters), type);\n }\n }\n else {\n type = errorType;\n if (declaration.kind === 334 /* JSDocEnumTag */) {\n error(declaration.typeExpression.type, ts.Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));\n }\n else {\n error(ts.isNamedDeclaration(declaration) ? declaration.name : declaration || declaration, ts.Diagnostics.Type_alias_0_circularly_references_itself, symbolToString(symbol));\n }\n }\n links.declaredType = type;\n }\n return links.declaredType;\n }\n function isStringConcatExpression(expr) {\n if (ts.isStringLiteralLike(expr)) {\n return true;\n }\n else if (expr.kind === 219 /* BinaryExpression */) {\n return isStringConcatExpression(expr.left) && isStringConcatExpression(expr.right);\n }\n return false;\n }\n function isLiteralEnumMember(member) {\n var expr = member.initializer;\n if (!expr) {\n return !(member.flags & 8388608 /* Ambient */);\n }\n switch (expr.kind) {\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return true;\n case 217 /* PrefixUnaryExpression */:\n return expr.operator === 40 /* MinusToken */ &&\n expr.operand.kind === 8 /* NumericLiteral */;\n case 79 /* Identifier */:\n return ts.nodeIsMissing(expr) || !!getSymbolOfNode(member.parent).exports.get(expr.escapedText);\n case 219 /* BinaryExpression */:\n return isStringConcatExpression(expr);\n default:\n return false;\n }\n }\n function getEnumKind(symbol) {\n var links = getSymbolLinks(symbol);\n if (links.enumKind !== undefined) {\n return links.enumKind;\n }\n var hasNonLiteralMember = false;\n if (symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (declaration.kind === 258 /* EnumDeclaration */) {\n for (var _b = 0, _c = declaration.members; _b < _c.length; _b++) {\n var member = _c[_b];\n if (member.initializer && ts.isStringLiteralLike(member.initializer)) {\n return links.enumKind = 1 /* Literal */;\n }\n if (!isLiteralEnumMember(member)) {\n hasNonLiteralMember = true;\n }\n }\n }\n }\n }\n return links.enumKind = hasNonLiteralMember ? 0 /* Numeric */ : 1 /* Literal */;\n }\n function getBaseTypeOfEnumLiteralType(type) {\n return type.flags & 1024 /* EnumLiteral */ && !(type.flags & 1048576 /* Union */) ? getDeclaredTypeOfSymbol(getParentOfSymbol(type.symbol)) : type;\n }\n function getDeclaredTypeOfEnum(symbol) {\n var links = getSymbolLinks(symbol);\n if (links.declaredType) {\n return links.declaredType;\n }\n if (getEnumKind(symbol) === 1 /* Literal */) {\n enumCount++;\n var memberTypeList = [];\n if (symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (declaration.kind === 258 /* EnumDeclaration */) {\n for (var _b = 0, _c = declaration.members; _b < _c.length; _b++) {\n var member = _c[_b];\n var value = getEnumMemberValue(member);\n var memberType = getFreshTypeOfLiteralType(getEnumLiteralType(value !== undefined ? value : 0, enumCount, getSymbolOfNode(member)));\n getSymbolLinks(getSymbolOfNode(member)).declaredType = memberType;\n memberTypeList.push(getRegularTypeOfLiteralType(memberType));\n }\n }\n }\n }\n if (memberTypeList.length) {\n var enumType_1 = getUnionType(memberTypeList, 1 /* Literal */, symbol, /*aliasTypeArguments*/ undefined);\n if (enumType_1.flags & 1048576 /* Union */) {\n enumType_1.flags |= 1024 /* EnumLiteral */;\n enumType_1.symbol = symbol;\n }\n return links.declaredType = enumType_1;\n }\n }\n var enumType = createType(32 /* Enum */);\n enumType.symbol = symbol;\n return links.declaredType = enumType;\n }\n function getDeclaredTypeOfEnumMember(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.declaredType) {\n var enumType = getDeclaredTypeOfEnum(getParentOfSymbol(symbol));\n if (!links.declaredType) {\n links.declaredType = enumType;\n }\n }\n return links.declaredType;\n }\n function getDeclaredTypeOfTypeParameter(symbol) {\n var links = getSymbolLinks(symbol);\n return links.declaredType || (links.declaredType = createTypeParameter(symbol));\n }\n function getDeclaredTypeOfAlias(symbol) {\n var links = getSymbolLinks(symbol);\n return links.declaredType || (links.declaredType = getDeclaredTypeOfSymbol(resolveAlias(symbol)));\n }\n function getDeclaredTypeOfSymbol(symbol) {\n return tryGetDeclaredTypeOfSymbol(symbol) || errorType;\n }\n function tryGetDeclaredTypeOfSymbol(symbol) {\n if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) {\n return getDeclaredTypeOfClassOrInterface(symbol);\n }\n if (symbol.flags & 524288 /* TypeAlias */) {\n return getDeclaredTypeOfTypeAlias(symbol);\n }\n if (symbol.flags & 262144 /* TypeParameter */) {\n return getDeclaredTypeOfTypeParameter(symbol);\n }\n if (symbol.flags & 384 /* Enum */) {\n return getDeclaredTypeOfEnum(symbol);\n }\n if (symbol.flags & 8 /* EnumMember */) {\n return getDeclaredTypeOfEnumMember(symbol);\n }\n if (symbol.flags & 2097152 /* Alias */) {\n return getDeclaredTypeOfAlias(symbol);\n }\n return undefined;\n }\n /**\n * A type is free of this references if it's the any, string, number, boolean, symbol, or void keyword, a string\n * literal type, an array with an element type that is free of this references, or a type reference that is\n * free of this references.\n */\n function isThislessType(node) {\n switch (node.kind) {\n case 129 /* AnyKeyword */:\n case 153 /* UnknownKeyword */:\n case 148 /* StringKeyword */:\n case 145 /* NumberKeyword */:\n case 156 /* BigIntKeyword */:\n case 132 /* BooleanKeyword */:\n case 149 /* SymbolKeyword */:\n case 146 /* ObjectKeyword */:\n case 114 /* VoidKeyword */:\n case 151 /* UndefinedKeyword */:\n case 142 /* NeverKeyword */:\n case 194 /* LiteralType */:\n return true;\n case 181 /* ArrayType */:\n return isThislessType(node.elementType);\n case 176 /* TypeReference */:\n return !node.typeArguments || node.typeArguments.every(isThislessType);\n }\n return false;\n }\n /** A type parameter is thisless if its constraint is thisless, or if it has no constraint. */\n function isThislessTypeParameter(node) {\n var constraint = ts.getEffectiveConstraintOfTypeParameter(node);\n return !constraint || isThislessType(constraint);\n }\n /**\n * A variable-like declaration is free of this references if it has a type annotation\n * that is thisless, or if it has no type annotation and no initializer (and is thus of type any).\n */\n function isThislessVariableLikeDeclaration(node) {\n var typeNode = ts.getEffectiveTypeAnnotationNode(node);\n return typeNode ? isThislessType(typeNode) : !ts.hasInitializer(node);\n }\n /**\n * A function-like declaration is considered free of `this` references if it has a return type\n * annotation that is free of this references and if each parameter is thisless and if\n * each type parameter (if present) is thisless.\n */\n function isThislessFunctionLikeDeclaration(node) {\n var returnType = ts.getEffectiveReturnTypeNode(node);\n var typeParameters = ts.getEffectiveTypeParameterDeclarations(node);\n return (node.kind === 169 /* Constructor */ || (!!returnType && isThislessType(returnType))) &&\n node.parameters.every(isThislessVariableLikeDeclaration) &&\n typeParameters.every(isThislessTypeParameter);\n }\n /**\n * Returns true if the class or interface member given by the symbol is free of \"this\" references. The\n * function may return false for symbols that are actually free of \"this\" references because it is not\n * feasible to perform a complete analysis in all cases. In particular, property members with types\n * inferred from their initializers and function members with inferred return types are conservatively\n * assumed not to be free of \"this\" references.\n */\n function isThisless(symbol) {\n if (symbol.declarations && symbol.declarations.length === 1) {\n var declaration = symbol.declarations[0];\n if (declaration) {\n switch (declaration.kind) {\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n return isThislessVariableLikeDeclaration(declaration);\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return isThislessFunctionLikeDeclaration(declaration);\n }\n }\n }\n return false;\n }\n // The mappingThisOnly flag indicates that the only type parameter being mapped is \"this\". When the flag is true,\n // we check symbols to see if we can quickly conclude they are free of \"this\" references, thus needing no instantiation.\n function createInstantiatedSymbolTable(symbols, mapper, mappingThisOnly) {\n var result = ts.createSymbolTable();\n for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {\n var symbol = symbols_2[_i];\n result.set(symbol.escapedName, mappingThisOnly && isThisless(symbol) ? symbol : instantiateSymbol(symbol, mapper));\n }\n return result;\n }\n function addInheritedMembers(symbols, baseSymbols) {\n for (var _i = 0, baseSymbols_1 = baseSymbols; _i < baseSymbols_1.length; _i++) {\n var s = baseSymbols_1[_i];\n if (!symbols.has(s.escapedName) && !isStaticPrivateIdentifierProperty(s)) {\n symbols.set(s.escapedName, s);\n }\n }\n }\n function isStaticPrivateIdentifierProperty(s) {\n return !!s.valueDeclaration && ts.isPrivateIdentifierClassElementDeclaration(s.valueDeclaration) && ts.isStatic(s.valueDeclaration);\n }\n function resolveDeclaredMembers(type) {\n if (!type.declaredProperties) {\n var symbol = type.symbol;\n var members = getMembersOfSymbol(symbol);\n type.declaredProperties = getNamedMembers(members);\n // Start with signatures at empty array in case of recursive types\n type.declaredCallSignatures = ts.emptyArray;\n type.declaredConstructSignatures = ts.emptyArray;\n type.declaredIndexInfos = ts.emptyArray;\n type.declaredCallSignatures = getSignaturesOfSymbol(members.get(\"__call\" /* Call */));\n type.declaredConstructSignatures = getSignaturesOfSymbol(members.get(\"__new\" /* New */));\n type.declaredIndexInfos = getIndexInfosOfSymbol(symbol);\n }\n return type;\n }\n /**\n * Indicates whether a type can be used as a property name.\n */\n function isTypeUsableAsPropertyName(type) {\n return !!(type.flags & 8576 /* StringOrNumberLiteralOrUnique */);\n }\n /**\n * Indicates whether a declaration name is definitely late-bindable.\n * A declaration name is only late-bindable if:\n * - It is a `ComputedPropertyName`.\n * - Its expression is an `Identifier` or either a `PropertyAccessExpression` an\n * `ElementAccessExpression` consisting only of these same three types of nodes.\n * - The type of its expression is a string or numeric literal type, or is a `unique symbol` type.\n */\n function isLateBindableName(node) {\n if (!ts.isComputedPropertyName(node) && !ts.isElementAccessExpression(node)) {\n return false;\n }\n var expr = ts.isComputedPropertyName(node) ? node.expression : node.argumentExpression;\n return ts.isEntityNameExpression(expr)\n && isTypeUsableAsPropertyName(ts.isComputedPropertyName(node) ? checkComputedPropertyName(node) : checkExpressionCached(expr));\n }\n function isLateBoundName(name) {\n return name.charCodeAt(0) === 95 /* _ */ &&\n name.charCodeAt(1) === 95 /* _ */ &&\n name.charCodeAt(2) === 64 /* at */;\n }\n /**\n * Indicates whether a declaration has a late-bindable dynamic name.\n */\n function hasLateBindableName(node) {\n var name = ts.getNameOfDeclaration(node);\n return !!name && isLateBindableName(name);\n }\n /**\n * Indicates whether a declaration has an early-bound name or a dynamic name that can be late-bound.\n */\n function hasBindableName(node) {\n return !ts.hasDynamicName(node) || hasLateBindableName(node);\n }\n /**\n * Indicates whether a declaration name is a dynamic name that cannot be late-bound.\n */\n function isNonBindableDynamicName(node) {\n return ts.isDynamicName(node) && !isLateBindableName(node);\n }\n /**\n * Gets the symbolic name for a member from its type.\n */\n function getPropertyNameFromType(type) {\n if (type.flags & 8192 /* UniqueESSymbol */) {\n return type.escapedName;\n }\n if (type.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) {\n return ts.escapeLeadingUnderscores(\"\" + type.value);\n }\n return ts.Debug.fail();\n }\n /**\n * Adds a declaration to a late-bound dynamic member. This performs the same function for\n * late-bound members that `addDeclarationToSymbol` in binder.ts performs for early-bound\n * members.\n */\n function addDeclarationToLateBoundSymbol(symbol, member, symbolFlags) {\n ts.Debug.assert(!!(ts.getCheckFlags(symbol) & 4096 /* Late */), \"Expected a late-bound symbol.\");\n symbol.flags |= symbolFlags;\n getSymbolLinks(member.symbol).lateSymbol = symbol;\n if (!symbol.declarations) {\n symbol.declarations = [member];\n }\n else if (!member.symbol.isReplaceableByMethod) {\n symbol.declarations.push(member);\n }\n if (symbolFlags & 111551 /* Value */) {\n if (!symbol.valueDeclaration || symbol.valueDeclaration.kind !== member.kind) {\n symbol.valueDeclaration = member;\n }\n }\n }\n /**\n * Performs late-binding of a dynamic member. This performs the same function for\n * late-bound members that `declareSymbol` in binder.ts performs for early-bound\n * members.\n *\n * If a symbol is a dynamic name from a computed property, we perform an additional \"late\"\n * binding phase to attempt to resolve the name for the symbol from the type of the computed\n * property's expression. If the type of the expression is a string-literal, numeric-literal,\n * or unique symbol type, we can use that type as the name of the symbol.\n *\n * For example, given:\n *\n * const x = Symbol();\n *\n * interface I {\n * [x]: number;\n * }\n *\n * The binder gives the property `[x]: number` a special symbol with the name \"__computed\".\n * In the late-binding phase we can type-check the expression `x` and see that it has a\n * unique symbol type which we can then use as the name of the member. This allows users\n * to define custom symbols that can be used in the members of an object type.\n *\n * @param parent The containing symbol for the member.\n * @param earlySymbols The early-bound symbols of the parent.\n * @param lateSymbols The late-bound symbols of the parent.\n * @param decl The member to bind.\n */\n function lateBindMember(parent, earlySymbols, lateSymbols, decl) {\n ts.Debug.assert(!!decl.symbol, \"The member is expected to have a symbol.\");\n var links = getNodeLinks(decl);\n if (!links.resolvedSymbol) {\n // In the event we attempt to resolve the late-bound name of this member recursively,\n // fall back to the early-bound name of this member.\n links.resolvedSymbol = decl.symbol;\n var declName = ts.isBinaryExpression(decl) ? decl.left : decl.name;\n var type = ts.isElementAccessExpression(declName) ? checkExpressionCached(declName.argumentExpression) : checkComputedPropertyName(declName);\n if (isTypeUsableAsPropertyName(type)) {\n var memberName = getPropertyNameFromType(type);\n var symbolFlags = decl.symbol.flags;\n // Get or add a late-bound symbol for the member. This allows us to merge late-bound accessor declarations.\n var lateSymbol = lateSymbols.get(memberName);\n if (!lateSymbol)\n lateSymbols.set(memberName, lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */));\n // Report an error if a late-bound member has the same name as an early-bound member,\n // or if we have another early-bound symbol declaration with the same name and\n // conflicting flags.\n var earlySymbol = earlySymbols && earlySymbols.get(memberName);\n if (lateSymbol.flags & getExcludedSymbolFlags(symbolFlags) || earlySymbol) {\n // If we have an existing early-bound member, combine its declarations so that we can\n // report an error at each declaration.\n var declarations = earlySymbol ? ts.concatenate(earlySymbol.declarations, lateSymbol.declarations) : lateSymbol.declarations;\n var name_4 = !(type.flags & 8192 /* UniqueESSymbol */) && ts.unescapeLeadingUnderscores(memberName) || ts.declarationNameToString(declName);\n ts.forEach(declarations, function (declaration) { return error(ts.getNameOfDeclaration(declaration) || declaration, ts.Diagnostics.Property_0_was_also_declared_here, name_4); });\n error(declName || decl, ts.Diagnostics.Duplicate_property_0, name_4);\n lateSymbol = createSymbol(0 /* None */, memberName, 4096 /* Late */);\n }\n lateSymbol.nameType = type;\n addDeclarationToLateBoundSymbol(lateSymbol, decl, symbolFlags);\n if (lateSymbol.parent) {\n ts.Debug.assert(lateSymbol.parent === parent, \"Existing symbol parent should match new one\");\n }\n else {\n lateSymbol.parent = parent;\n }\n return links.resolvedSymbol = lateSymbol;\n }\n }\n return links.resolvedSymbol;\n }\n function getResolvedMembersOrExportsOfSymbol(symbol, resolutionKind) {\n var links = getSymbolLinks(symbol);\n if (!links[resolutionKind]) {\n var isStatic_1 = resolutionKind === \"resolvedExports\" /* resolvedExports */;\n var earlySymbols = !isStatic_1 ? symbol.members :\n symbol.flags & 1536 /* Module */ ? getExportsOfModuleWorker(symbol) :\n symbol.exports;\n // In the event we recursively resolve the members/exports of the symbol, we\n // set the initial value of resolvedMembers/resolvedExports to the early-bound\n // members/exports of the symbol.\n links[resolutionKind] = earlySymbols || emptySymbols;\n // fill in any as-yet-unresolved late-bound members.\n var lateSymbols = ts.createSymbolTable();\n for (var _i = 0, _a = symbol.declarations || ts.emptyArray; _i < _a.length; _i++) {\n var decl = _a[_i];\n var members = ts.getMembersOfDeclaration(decl);\n if (members) {\n for (var _b = 0, members_5 = members; _b < members_5.length; _b++) {\n var member = members_5[_b];\n if (isStatic_1 === ts.hasStaticModifier(member) && hasLateBindableName(member)) {\n lateBindMember(symbol, earlySymbols, lateSymbols, member);\n }\n }\n }\n }\n var assignments = symbol.assignmentDeclarationMembers;\n if (assignments) {\n var decls = ts.arrayFrom(assignments.values());\n for (var _c = 0, decls_1 = decls; _c < decls_1.length; _c++) {\n var member = decls_1[_c];\n var assignmentKind = ts.getAssignmentDeclarationKind(member);\n var isInstanceMember = assignmentKind === 3 /* PrototypeProperty */\n || ts.isBinaryExpression(member) && isPossiblyAliasedThisProperty(member, assignmentKind)\n || assignmentKind === 9 /* ObjectDefinePrototypeProperty */\n || assignmentKind === 6 /* Prototype */; // A straight `Prototype` assignment probably can never have a computed name\n if (isStatic_1 === !isInstanceMember && hasLateBindableName(member)) {\n lateBindMember(symbol, earlySymbols, lateSymbols, member);\n }\n }\n }\n links[resolutionKind] = combineSymbolTables(earlySymbols, lateSymbols) || emptySymbols;\n }\n return links[resolutionKind];\n }\n /**\n * Gets a SymbolTable containing both the early- and late-bound members of a symbol.\n *\n * For a description of late-binding, see `lateBindMember`.\n */\n function getMembersOfSymbol(symbol) {\n return symbol.flags & 6256 /* LateBindingContainer */\n ? getResolvedMembersOrExportsOfSymbol(symbol, \"resolvedMembers\" /* resolvedMembers */)\n : symbol.members || emptySymbols;\n }\n /**\n * If a symbol is the dynamic name of the member of an object type, get the late-bound\n * symbol of the member.\n *\n * For a description of late-binding, see `lateBindMember`.\n */\n function getLateBoundSymbol(symbol) {\n if (symbol.flags & 106500 /* ClassMember */ && symbol.escapedName === \"__computed\" /* Computed */) {\n var links = getSymbolLinks(symbol);\n if (!links.lateSymbol && ts.some(symbol.declarations, hasLateBindableName)) {\n // force late binding of members/exports. This will set the late-bound symbol\n var parent = getMergedSymbol(symbol.parent);\n if (ts.some(symbol.declarations, ts.hasStaticModifier)) {\n getExportsOfSymbol(parent);\n }\n else {\n getMembersOfSymbol(parent);\n }\n }\n return links.lateSymbol || (links.lateSymbol = symbol);\n }\n return symbol;\n }\n function getTypeWithThisArgument(type, thisArgument, needApparentType) {\n if (ts.getObjectFlags(type) & 4 /* Reference */) {\n var target = type.target;\n var typeArguments = getTypeArguments(type);\n if (ts.length(target.typeParameters) === ts.length(typeArguments)) {\n var ref = createTypeReference(target, ts.concatenate(typeArguments, [thisArgument || target.thisType]));\n return needApparentType ? getApparentType(ref) : ref;\n }\n }\n else if (type.flags & 2097152 /* Intersection */) {\n var types = ts.sameMap(type.types, function (t) { return getTypeWithThisArgument(t, thisArgument, needApparentType); });\n return types !== type.types ? getIntersectionType(types) : type;\n }\n return needApparentType ? getApparentType(type) : type;\n }\n function resolveObjectTypeMembers(type, source, typeParameters, typeArguments) {\n var mapper;\n var members;\n var callSignatures;\n var constructSignatures;\n var indexInfos;\n if (ts.rangeEquals(typeParameters, typeArguments, 0, typeParameters.length)) {\n members = source.symbol ? getMembersOfSymbol(source.symbol) : ts.createSymbolTable(source.declaredProperties);\n callSignatures = source.declaredCallSignatures;\n constructSignatures = source.declaredConstructSignatures;\n indexInfos = source.declaredIndexInfos;\n }\n else {\n mapper = createTypeMapper(typeParameters, typeArguments);\n members = createInstantiatedSymbolTable(source.declaredProperties, mapper, /*mappingThisOnly*/ typeParameters.length === 1);\n callSignatures = instantiateSignatures(source.declaredCallSignatures, mapper);\n constructSignatures = instantiateSignatures(source.declaredConstructSignatures, mapper);\n indexInfos = instantiateIndexInfos(source.declaredIndexInfos, mapper);\n }\n var baseTypes = getBaseTypes(source);\n if (baseTypes.length) {\n if (source.symbol && members === getMembersOfSymbol(source.symbol)) {\n members = ts.createSymbolTable(source.declaredProperties);\n }\n setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);\n var thisArgument = ts.lastOrUndefined(typeArguments);\n for (var _i = 0, baseTypes_1 = baseTypes; _i < baseTypes_1.length; _i++) {\n var baseType = baseTypes_1[_i];\n var instantiatedBaseType = thisArgument ? getTypeWithThisArgument(instantiateType(baseType, mapper), thisArgument) : baseType;\n addInheritedMembers(members, getPropertiesOfType(instantiatedBaseType));\n callSignatures = ts.concatenate(callSignatures, getSignaturesOfType(instantiatedBaseType, 0 /* Call */));\n constructSignatures = ts.concatenate(constructSignatures, getSignaturesOfType(instantiatedBaseType, 1 /* Construct */));\n var inheritedIndexInfos = instantiatedBaseType !== anyType ? getIndexInfosOfType(instantiatedBaseType) : [createIndexInfo(stringType, anyType, /*isReadonly*/ false)];\n indexInfos = ts.concatenate(indexInfos, ts.filter(inheritedIndexInfos, function (info) { return !findIndexInfo(indexInfos, info.keyType); }));\n }\n }\n setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);\n }\n function resolveClassOrInterfaceMembers(type) {\n resolveObjectTypeMembers(type, resolveDeclaredMembers(type), ts.emptyArray, ts.emptyArray);\n }\n function resolveTypeReferenceMembers(type) {\n var source = resolveDeclaredMembers(type.target);\n var typeParameters = ts.concatenate(source.typeParameters, [source.thisType]);\n var typeArguments = getTypeArguments(type);\n var paddedTypeArguments = typeArguments.length === typeParameters.length ? typeArguments : ts.concatenate(typeArguments, [type]);\n resolveObjectTypeMembers(type, source, typeParameters, paddedTypeArguments);\n }\n function createSignature(declaration, typeParameters, thisParameter, parameters, resolvedReturnType, resolvedTypePredicate, minArgumentCount, flags) {\n var sig = new Signature(checker, flags);\n sig.declaration = declaration;\n sig.typeParameters = typeParameters;\n sig.parameters = parameters;\n sig.thisParameter = thisParameter;\n sig.resolvedReturnType = resolvedReturnType;\n sig.resolvedTypePredicate = resolvedTypePredicate;\n sig.minArgumentCount = minArgumentCount;\n sig.resolvedMinArgumentCount = undefined;\n sig.target = undefined;\n sig.mapper = undefined;\n sig.compositeSignatures = undefined;\n sig.compositeKind = undefined;\n return sig;\n }\n function cloneSignature(sig) {\n var result = createSignature(sig.declaration, sig.typeParameters, sig.thisParameter, sig.parameters, /*resolvedReturnType*/ undefined, \n /*resolvedTypePredicate*/ undefined, sig.minArgumentCount, sig.flags & 39 /* PropagatingFlags */);\n result.target = sig.target;\n result.mapper = sig.mapper;\n result.compositeSignatures = sig.compositeSignatures;\n result.compositeKind = sig.compositeKind;\n return result;\n }\n function createUnionSignature(signature, unionSignatures) {\n var result = cloneSignature(signature);\n result.compositeSignatures = unionSignatures;\n result.compositeKind = 1048576 /* Union */;\n result.target = undefined;\n result.mapper = undefined;\n return result;\n }\n function getOptionalCallSignature(signature, callChainFlags) {\n if ((signature.flags & 24 /* CallChainFlags */) === callChainFlags) {\n return signature;\n }\n if (!signature.optionalCallSignatureCache) {\n signature.optionalCallSignatureCache = {};\n }\n var key = callChainFlags === 8 /* IsInnerCallChain */ ? \"inner\" : \"outer\";\n return signature.optionalCallSignatureCache[key]\n || (signature.optionalCallSignatureCache[key] = createOptionalCallSignature(signature, callChainFlags));\n }\n function createOptionalCallSignature(signature, callChainFlags) {\n ts.Debug.assert(callChainFlags === 8 /* IsInnerCallChain */ || callChainFlags === 16 /* IsOuterCallChain */, \"An optional call signature can either be for an inner call chain or an outer call chain, but not both.\");\n var result = cloneSignature(signature);\n result.flags |= callChainFlags;\n return result;\n }\n function getExpandedParameters(sig, skipUnionExpanding) {\n if (signatureHasRestParameter(sig)) {\n var restIndex_1 = sig.parameters.length - 1;\n var restType = getTypeOfSymbol(sig.parameters[restIndex_1]);\n if (isTupleType(restType)) {\n return [expandSignatureParametersWithTupleMembers(restType, restIndex_1)];\n }\n else if (!skipUnionExpanding && restType.flags & 1048576 /* Union */ && ts.every(restType.types, isTupleType)) {\n return ts.map(restType.types, function (t) { return expandSignatureParametersWithTupleMembers(t, restIndex_1); });\n }\n }\n return [sig.parameters];\n function expandSignatureParametersWithTupleMembers(restType, restIndex) {\n var elementTypes = getTypeArguments(restType);\n var associatedNames = restType.target.labeledElementDeclarations;\n var restParams = ts.map(elementTypes, function (t, i) {\n // Lookup the label from the individual tuple passed in before falling back to the signature `rest` parameter name\n var tupleLabelName = !!associatedNames && getTupleElementLabel(associatedNames[i]);\n var name = tupleLabelName || getParameterNameAtPosition(sig, restIndex + i, restType);\n var flags = restType.target.elementFlags[i];\n var checkFlags = flags & 12 /* Variable */ ? 32768 /* RestParameter */ :\n flags & 2 /* Optional */ ? 16384 /* OptionalParameter */ : 0;\n var symbol = createSymbol(1 /* FunctionScopedVariable */, name, checkFlags);\n symbol.type = flags & 4 /* Rest */ ? createArrayType(t) : t;\n return symbol;\n });\n return ts.concatenate(sig.parameters.slice(0, restIndex), restParams);\n }\n }\n function getDefaultConstructSignatures(classType) {\n var baseConstructorType = getBaseConstructorTypeOfClass(classType);\n var baseSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */);\n var declaration = ts.getClassLikeDeclarationOfSymbol(classType.symbol);\n var isAbstract = !!declaration && ts.hasSyntacticModifier(declaration, 128 /* Abstract */);\n if (baseSignatures.length === 0) {\n return [createSignature(undefined, classType.localTypeParameters, undefined, ts.emptyArray, classType, /*resolvedTypePredicate*/ undefined, 0, isAbstract ? 4 /* Abstract */ : 0 /* None */)];\n }\n var baseTypeNode = getBaseTypeNodeOfClass(classType);\n var isJavaScript = ts.isInJSFile(baseTypeNode);\n var typeArguments = typeArgumentsFromTypeReferenceNode(baseTypeNode);\n var typeArgCount = ts.length(typeArguments);\n var result = [];\n for (var _i = 0, baseSignatures_1 = baseSignatures; _i < baseSignatures_1.length; _i++) {\n var baseSig = baseSignatures_1[_i];\n var minTypeArgumentCount = getMinTypeArgumentCount(baseSig.typeParameters);\n var typeParamCount = ts.length(baseSig.typeParameters);\n if (isJavaScript || typeArgCount >= minTypeArgumentCount && typeArgCount <= typeParamCount) {\n var sig = typeParamCount ? createSignatureInstantiation(baseSig, fillMissingTypeArguments(typeArguments, baseSig.typeParameters, minTypeArgumentCount, isJavaScript)) : cloneSignature(baseSig);\n sig.typeParameters = classType.localTypeParameters;\n sig.resolvedReturnType = classType;\n sig.flags = isAbstract ? sig.flags | 4 /* Abstract */ : sig.flags & ~4 /* Abstract */;\n result.push(sig);\n }\n }\n return result;\n }\n function findMatchingSignature(signatureList, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes) {\n for (var _i = 0, signatureList_1 = signatureList; _i < signatureList_1.length; _i++) {\n var s = signatureList_1[_i];\n if (compareSignaturesIdentical(s, signature, partialMatch, ignoreThisTypes, ignoreReturnTypes, partialMatch ? compareTypesSubtypeOf : compareTypesIdentical)) {\n return s;\n }\n }\n }\n function findMatchingSignatures(signatureLists, signature, listIndex) {\n if (signature.typeParameters) {\n // We require an exact match for generic signatures, so we only return signatures from the first\n // signature list and only if they have exact matches in the other signature lists.\n if (listIndex > 0) {\n return undefined;\n }\n for (var i = 1; i < signatureLists.length; i++) {\n if (!findMatchingSignature(signatureLists[i], signature, /*partialMatch*/ false, /*ignoreThisTypes*/ false, /*ignoreReturnTypes*/ false)) {\n return undefined;\n }\n }\n return [signature];\n }\n var result;\n for (var i = 0; i < signatureLists.length; i++) {\n // Allow matching non-generic signatures to have excess parameters and different return types.\n // Prefer matching this types if possible.\n var match = i === listIndex ? signature : findMatchingSignature(signatureLists[i], signature, /*partialMatch*/ true, /*ignoreThisTypes*/ false, /*ignoreReturnTypes*/ true);\n if (!match) {\n return undefined;\n }\n result = ts.appendIfUnique(result, match);\n }\n return result;\n }\n // The signatures of a union type are those signatures that are present in each of the constituent types.\n // Generic signatures must match exactly, but non-generic signatures are allowed to have extra optional\n // parameters and may differ in return types. When signatures differ in return types, the resulting return\n // type is the union of the constituent return types.\n function getUnionSignatures(signatureLists) {\n var result;\n var indexWithLengthOverOne;\n for (var i = 0; i < signatureLists.length; i++) {\n if (signatureLists[i].length === 0)\n return ts.emptyArray;\n if (signatureLists[i].length > 1) {\n indexWithLengthOverOne = indexWithLengthOverOne === undefined ? i : -1; // -1 is a signal there are multiple overload sets\n }\n for (var _i = 0, _a = signatureLists[i]; _i < _a.length; _i++) {\n var signature = _a[_i];\n // Only process signatures with parameter lists that aren't already in the result list\n if (!result || !findMatchingSignature(result, signature, /*partialMatch*/ false, /*ignoreThisTypes*/ false, /*ignoreReturnTypes*/ true)) {\n var unionSignatures = findMatchingSignatures(signatureLists, signature, i);\n if (unionSignatures) {\n var s = signature;\n // Union the result types when more than one signature matches\n if (unionSignatures.length > 1) {\n var thisParameter = signature.thisParameter;\n var firstThisParameterOfUnionSignatures = ts.forEach(unionSignatures, function (sig) { return sig.thisParameter; });\n if (firstThisParameterOfUnionSignatures) {\n var thisType = getIntersectionType(ts.mapDefined(unionSignatures, function (sig) { return sig.thisParameter && getTypeOfSymbol(sig.thisParameter); }));\n thisParameter = createSymbolWithType(firstThisParameterOfUnionSignatures, thisType);\n }\n s = createUnionSignature(signature, unionSignatures);\n s.thisParameter = thisParameter;\n }\n (result || (result = [])).push(s);\n }\n }\n }\n }\n if (!ts.length(result) && indexWithLengthOverOne !== -1) {\n // No sufficiently similar signature existed to subsume all the other signatures in the union - time to see if we can make a single\n // signature that handles all over them. We only do this when there are overloads in only one constituent.\n // (Overloads are conditional in nature and having overloads in multiple constituents would necessitate making a power set of\n // signatures from the type, whose ordering would be non-obvious)\n var masterList = signatureLists[indexWithLengthOverOne !== undefined ? indexWithLengthOverOne : 0];\n var results = masterList.slice();\n var _loop_10 = function (signatures) {\n if (signatures !== masterList) {\n var signature_1 = signatures[0];\n ts.Debug.assert(!!signature_1, \"getUnionSignatures bails early on empty signature lists and should not have empty lists on second pass\");\n results = !!signature_1.typeParameters && ts.some(results, function (s) { return !!s.typeParameters && !compareTypeParametersIdentical(signature_1.typeParameters, s.typeParameters); }) ? undefined : ts.map(results, function (sig) { return combineSignaturesOfUnionMembers(sig, signature_1); });\n if (!results) {\n return \"break\";\n }\n }\n };\n for (var _b = 0, signatureLists_1 = signatureLists; _b < signatureLists_1.length; _b++) {\n var signatures = signatureLists_1[_b];\n var state_3 = _loop_10(signatures);\n if (state_3 === \"break\")\n break;\n }\n result = results;\n }\n return result || ts.emptyArray;\n }\n function compareTypeParametersIdentical(sourceParams, targetParams) {\n if (ts.length(sourceParams) !== ts.length(targetParams)) {\n return false;\n }\n if (!sourceParams || !targetParams) {\n return true;\n }\n var mapper = createTypeMapper(targetParams, sourceParams);\n for (var i = 0; i < sourceParams.length; i++) {\n var source = sourceParams[i];\n var target = targetParams[i];\n if (source === target)\n continue;\n // We instantiate the target type parameter constraints into the source types so we can recognize `` as the same as ``\n if (!isTypeIdenticalTo(getConstraintFromTypeParameter(source) || unknownType, instantiateType(getConstraintFromTypeParameter(target) || unknownType, mapper)))\n return false;\n // We don't compare defaults - we just use the type parameter defaults from the first signature that seems to match.\n // It might make sense to combine these defaults in the future, but doing so intelligently requires knowing\n // if the parameter is used covariantly or contravariantly (so we intersect if it's used like a parameter or union if used like a return type)\n // and, since it's just an inference _default_, just picking one arbitrarily works OK.\n }\n return true;\n }\n function combineUnionThisParam(left, right, mapper) {\n if (!left || !right) {\n return left || right;\n }\n // A signature `this` type might be a read or a write position... It's very possible that it should be invariant\n // and we should refuse to merge signatures if there are `this` types and they do not match. However, so as to be\n // permissive when calling, for now, we'll intersect the `this` types just like we do for param types in union signatures.\n var thisType = getIntersectionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]);\n return createSymbolWithType(left, thisType);\n }\n function combineUnionParameters(left, right, mapper) {\n var leftCount = getParameterCount(left);\n var rightCount = getParameterCount(right);\n var longest = leftCount >= rightCount ? left : right;\n var shorter = longest === left ? right : left;\n var longestCount = longest === left ? leftCount : rightCount;\n var eitherHasEffectiveRest = (hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right));\n var needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest);\n var params = new Array(longestCount + (needsExtraRestElement ? 1 : 0));\n for (var i = 0; i < longestCount; i++) {\n var longestParamType = tryGetTypeAtPosition(longest, i);\n if (longest === right) {\n longestParamType = instantiateType(longestParamType, mapper);\n }\n var shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType;\n if (shorter === right) {\n shorterParamType = instantiateType(shorterParamType, mapper);\n }\n var unionParamType = getIntersectionType([longestParamType, shorterParamType]);\n var isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === (longestCount - 1);\n var isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter);\n var leftName = i >= leftCount ? undefined : getParameterNameAtPosition(left, i);\n var rightName = i >= rightCount ? undefined : getParameterNameAtPosition(right, i);\n var paramName = leftName === rightName ? leftName :\n !leftName ? rightName :\n !rightName ? leftName :\n undefined;\n var paramSymbol = createSymbol(1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), paramName || \"arg\" + i);\n paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;\n params[i] = paramSymbol;\n }\n if (needsExtraRestElement) {\n var restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, \"args\");\n restParamSymbol.type = createArrayType(getTypeAtPosition(shorter, longestCount));\n if (shorter === right) {\n restParamSymbol.type = instantiateType(restParamSymbol.type, mapper);\n }\n params[longestCount] = restParamSymbol;\n }\n return params;\n }\n function combineSignaturesOfUnionMembers(left, right) {\n var typeParams = left.typeParameters || right.typeParameters;\n var paramMapper;\n if (left.typeParameters && right.typeParameters) {\n paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);\n // We just use the type parameter defaults from the first signature\n }\n var declaration = left.declaration;\n var params = combineUnionParameters(left, right, paramMapper);\n var thisParam = combineUnionThisParam(left.thisParameter, right.thisParameter, paramMapper);\n var minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);\n var result = createSignature(declaration, typeParams, thisParam, params, \n /*resolvedReturnType*/ undefined, \n /*resolvedTypePredicate*/ undefined, minArgCount, (left.flags | right.flags) & 39 /* PropagatingFlags */);\n result.compositeKind = 1048576 /* Union */;\n result.compositeSignatures = ts.concatenate(left.compositeKind !== 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]);\n if (paramMapper) {\n result.mapper = left.compositeKind !== 2097152 /* Intersection */ && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper;\n }\n return result;\n }\n function getUnionIndexInfos(types) {\n var sourceInfos = getIndexInfosOfType(types[0]);\n if (sourceInfos) {\n var result = [];\n var _loop_11 = function (info) {\n var indexType = info.keyType;\n if (ts.every(types, function (t) { return !!getIndexInfoOfType(t, indexType); })) {\n result.push(createIndexInfo(indexType, getUnionType(ts.map(types, function (t) { return getIndexTypeOfType(t, indexType); })), ts.some(types, function (t) { return getIndexInfoOfType(t, indexType).isReadonly; })));\n }\n };\n for (var _i = 0, sourceInfos_1 = sourceInfos; _i < sourceInfos_1.length; _i++) {\n var info = sourceInfos_1[_i];\n _loop_11(info);\n }\n return result;\n }\n return ts.emptyArray;\n }\n function resolveUnionTypeMembers(type) {\n // The members and properties collections are empty for union types. To get all properties of a union\n // type use getPropertiesOfType (only the language service uses this).\n var callSignatures = getUnionSignatures(ts.map(type.types, function (t) { return t === globalFunctionType ? [unknownSignature] : getSignaturesOfType(t, 0 /* Call */); }));\n var constructSignatures = getUnionSignatures(ts.map(type.types, function (t) { return getSignaturesOfType(t, 1 /* Construct */); }));\n var indexInfos = getUnionIndexInfos(type.types);\n setStructuredTypeMembers(type, emptySymbols, callSignatures, constructSignatures, indexInfos);\n }\n function intersectTypes(type1, type2) {\n return !type1 ? type2 : !type2 ? type1 : getIntersectionType([type1, type2]);\n }\n function findMixins(types) {\n var constructorTypeCount = ts.countWhere(types, function (t) { return getSignaturesOfType(t, 1 /* Construct */).length > 0; });\n var mixinFlags = ts.map(types, isMixinConstructorType);\n if (constructorTypeCount > 0 && constructorTypeCount === ts.countWhere(mixinFlags, function (b) { return b; })) {\n var firstMixinIndex = mixinFlags.indexOf(/*searchElement*/ true);\n mixinFlags[firstMixinIndex] = false;\n }\n return mixinFlags;\n }\n function includeMixinType(type, types, mixinFlags, index) {\n var mixedTypes = [];\n for (var i = 0; i < types.length; i++) {\n if (i === index) {\n mixedTypes.push(type);\n }\n else if (mixinFlags[i]) {\n mixedTypes.push(getReturnTypeOfSignature(getSignaturesOfType(types[i], 1 /* Construct */)[0]));\n }\n }\n return getIntersectionType(mixedTypes);\n }\n function resolveIntersectionTypeMembers(type) {\n // The members and properties collections are empty for intersection types. To get all properties of an\n // intersection type use getPropertiesOfType (only the language service uses this).\n var callSignatures;\n var constructSignatures;\n var indexInfos;\n var types = type.types;\n var mixinFlags = findMixins(types);\n var mixinCount = ts.countWhere(mixinFlags, function (b) { return b; });\n var _loop_12 = function (i) {\n var t = type.types[i];\n // When an intersection type contains mixin constructor types, the construct signatures from\n // those types are discarded and their return types are mixed into the return types of all\n // other construct signatures in the intersection type. For example, the intersection type\n // '{ new(...args: any[]) => A } & { new(s: string) => B }' has a single construct signature\n // 'new(s: string) => A & B'.\n if (!mixinFlags[i]) {\n var signatures = getSignaturesOfType(t, 1 /* Construct */);\n if (signatures.length && mixinCount > 0) {\n signatures = ts.map(signatures, function (s) {\n var clone = cloneSignature(s);\n clone.resolvedReturnType = includeMixinType(getReturnTypeOfSignature(s), types, mixinFlags, i);\n return clone;\n });\n }\n constructSignatures = appendSignatures(constructSignatures, signatures);\n }\n callSignatures = appendSignatures(callSignatures, getSignaturesOfType(t, 0 /* Call */));\n indexInfos = ts.reduceLeft(getIndexInfosOfType(t), function (infos, newInfo) { return appendIndexInfo(infos, newInfo, /*union*/ false); }, indexInfos);\n };\n for (var i = 0; i < types.length; i++) {\n _loop_12(i);\n }\n setStructuredTypeMembers(type, emptySymbols, callSignatures || ts.emptyArray, constructSignatures || ts.emptyArray, indexInfos || ts.emptyArray);\n }\n function appendSignatures(signatures, newSignatures) {\n var _loop_13 = function (sig) {\n if (!signatures || ts.every(signatures, function (s) { return !compareSignaturesIdentical(s, sig, /*partialMatch*/ false, /*ignoreThisTypes*/ false, /*ignoreReturnTypes*/ false, compareTypesIdentical); })) {\n signatures = ts.append(signatures, sig);\n }\n };\n for (var _i = 0, newSignatures_1 = newSignatures; _i < newSignatures_1.length; _i++) {\n var sig = newSignatures_1[_i];\n _loop_13(sig);\n }\n return signatures;\n }\n function appendIndexInfo(indexInfos, newInfo, union) {\n if (indexInfos) {\n for (var i = 0; i < indexInfos.length; i++) {\n var info = indexInfos[i];\n if (info.keyType === newInfo.keyType) {\n indexInfos[i] = createIndexInfo(info.keyType, union ? getUnionType([info.type, newInfo.type]) : getIntersectionType([info.type, newInfo.type]), union ? info.isReadonly || newInfo.isReadonly : info.isReadonly && newInfo.isReadonly);\n return indexInfos;\n }\n }\n }\n return ts.append(indexInfos, newInfo);\n }\n /**\n * Converts an AnonymousType to a ResolvedType.\n */\n function resolveAnonymousTypeMembers(type) {\n var symbol = getMergedSymbol(type.symbol);\n if (type.target) {\n setStructuredTypeMembers(type, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var members = createInstantiatedSymbolTable(getPropertiesOfObjectType(type.target), type.mapper, /*mappingThisOnly*/ false);\n var callSignatures = instantiateSignatures(getSignaturesOfType(type.target, 0 /* Call */), type.mapper);\n var constructSignatures = instantiateSignatures(getSignaturesOfType(type.target, 1 /* Construct */), type.mapper);\n var indexInfos = instantiateIndexInfos(getIndexInfosOfType(type.target), type.mapper);\n setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);\n }\n else if (symbol.flags & 2048 /* TypeLiteral */) {\n setStructuredTypeMembers(type, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n var members = getMembersOfSymbol(symbol);\n var callSignatures = getSignaturesOfSymbol(members.get(\"__call\" /* Call */));\n var constructSignatures = getSignaturesOfSymbol(members.get(\"__new\" /* New */));\n var indexInfos = getIndexInfosOfSymbol(symbol);\n setStructuredTypeMembers(type, members, callSignatures, constructSignatures, indexInfos);\n }\n else {\n // Combinations of function, class, enum and module\n var members = emptySymbols;\n var indexInfos = void 0;\n if (symbol.exports) {\n members = getExportsOfSymbol(symbol);\n if (symbol === globalThisSymbol) {\n var varsOnly_1 = new ts.Map();\n members.forEach(function (p) {\n if (!(p.flags & 418 /* BlockScoped */)) {\n varsOnly_1.set(p.escapedName, p);\n }\n });\n members = varsOnly_1;\n }\n }\n var baseConstructorIndexInfo = void 0;\n setStructuredTypeMembers(type, members, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n if (symbol.flags & 32 /* Class */) {\n var classType = getDeclaredTypeOfClassOrInterface(symbol);\n var baseConstructorType = getBaseConstructorTypeOfClass(classType);\n if (baseConstructorType.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 8650752 /* TypeVariable */)) {\n members = ts.createSymbolTable(getNamedOrIndexSignatureMembers(members));\n addInheritedMembers(members, getPropertiesOfType(baseConstructorType));\n }\n else if (baseConstructorType === anyType) {\n baseConstructorIndexInfo = createIndexInfo(stringType, anyType, /*isReadonly*/ false);\n }\n }\n var indexSymbol = getIndexSymbolFromSymbolTable(members);\n if (indexSymbol) {\n indexInfos = getIndexInfosOfIndexSymbol(indexSymbol);\n }\n else {\n if (baseConstructorIndexInfo) {\n indexInfos = ts.append(indexInfos, baseConstructorIndexInfo);\n }\n if (symbol.flags & 384 /* Enum */ && (getDeclaredTypeOfSymbol(symbol).flags & 32 /* Enum */ ||\n ts.some(type.properties, function (prop) { return !!(getTypeOfSymbol(prop).flags & 296 /* NumberLike */); }))) {\n indexInfos = ts.append(indexInfos, enumNumberIndexInfo);\n }\n }\n setStructuredTypeMembers(type, members, ts.emptyArray, ts.emptyArray, indexInfos || ts.emptyArray);\n // We resolve the members before computing the signatures because a signature may use\n // typeof with a qualified name expression that circularly references the type we are\n // in the process of resolving (see issue #6072). The temporarily empty signature list\n // will never be observed because a qualified name can't reference signatures.\n if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) {\n type.callSignatures = getSignaturesOfSymbol(symbol);\n }\n // And likewise for construct signatures for classes\n if (symbol.flags & 32 /* Class */) {\n var classType_1 = getDeclaredTypeOfClassOrInterface(symbol);\n var constructSignatures = symbol.members ? getSignaturesOfSymbol(symbol.members.get(\"__constructor\" /* Constructor */)) : ts.emptyArray;\n if (symbol.flags & 16 /* Function */) {\n constructSignatures = ts.addRange(constructSignatures.slice(), ts.mapDefined(type.callSignatures, function (sig) { return isJSConstructor(sig.declaration) ?\n createSignature(sig.declaration, sig.typeParameters, sig.thisParameter, sig.parameters, classType_1, /*resolvedTypePredicate*/ undefined, sig.minArgumentCount, sig.flags & 39 /* PropagatingFlags */) :\n undefined; }));\n }\n if (!constructSignatures.length) {\n constructSignatures = getDefaultConstructSignatures(classType_1);\n }\n type.constructSignatures = constructSignatures;\n }\n }\n }\n function replaceIndexedAccess(instantiable, type, replacement) {\n // map type.indexType to 0\n // map type.objectType to `[TReplacement]`\n // thus making the indexed access `[TReplacement][0]` or `TReplacement`\n return instantiateType(instantiable, createTypeMapper([type.indexType, type.objectType], [getNumberLiteralType(0), createTupleType([replacement])]));\n }\n function resolveReverseMappedTypeMembers(type) {\n var indexInfo = getIndexInfoOfType(type.source, stringType);\n var modifiers = getMappedTypeModifiers(type.mappedType);\n var readonlyMask = modifiers & 1 /* IncludeReadonly */ ? false : true;\n var optionalMask = modifiers & 4 /* IncludeOptional */ ? 0 : 16777216 /* Optional */;\n var indexInfos = indexInfo ? [createIndexInfo(stringType, inferReverseMappedType(indexInfo.type, type.mappedType, type.constraintType), readonlyMask && indexInfo.isReadonly)] : ts.emptyArray;\n var members = ts.createSymbolTable();\n for (var _i = 0, _a = getPropertiesOfType(type.source); _i < _a.length; _i++) {\n var prop = _a[_i];\n var checkFlags = 8192 /* ReverseMapped */ | (readonlyMask && isReadonlySymbol(prop) ? 8 /* Readonly */ : 0);\n var inferredProp = createSymbol(4 /* Property */ | prop.flags & optionalMask, prop.escapedName, checkFlags);\n inferredProp.declarations = prop.declarations;\n inferredProp.nameType = getSymbolLinks(prop).nameType;\n inferredProp.propertyType = getTypeOfSymbol(prop);\n if (type.constraintType.type.flags & 8388608 /* IndexedAccess */\n && type.constraintType.type.objectType.flags & 262144 /* TypeParameter */\n && type.constraintType.type.indexType.flags & 262144 /* TypeParameter */) {\n // A reverse mapping of `{[K in keyof T[K_1]]: T[K_1]}` is the same as that of `{[K in keyof T]: T}`, since all we care about is\n // inferring to the \"type parameter\" (or indexed access) shared by the constraint and template. So, to reduce the number of\n // type identities produced, we simplify such indexed access occurences\n var newTypeParam = type.constraintType.type.objectType;\n var newMappedType = replaceIndexedAccess(type.mappedType, type.constraintType.type, newTypeParam);\n inferredProp.mappedType = newMappedType;\n inferredProp.constraintType = getIndexType(newTypeParam);\n }\n else {\n inferredProp.mappedType = type.mappedType;\n inferredProp.constraintType = type.constraintType;\n }\n members.set(prop.escapedName, inferredProp);\n }\n setStructuredTypeMembers(type, members, ts.emptyArray, ts.emptyArray, indexInfos);\n }\n // Return the lower bound of the key type in a mapped type. Intuitively, the lower\n // bound includes those keys that are known to always be present, for example because\n // because of constraints on type parameters (e.g. 'keyof T' for a constrained T).\n function getLowerBoundOfKeyType(type) {\n if (type.flags & 4194304 /* Index */) {\n var t = getApparentType(type.type);\n return isGenericTupleType(t) ? getKnownKeysOfTupleType(t) : getIndexType(t);\n }\n if (type.flags & 16777216 /* Conditional */) {\n if (type.root.isDistributive) {\n var checkType = type.checkType;\n var constraint = getLowerBoundOfKeyType(checkType);\n if (constraint !== checkType) {\n return getConditionalTypeInstantiation(type, prependTypeMapping(type.root.checkType, constraint, type.mapper));\n }\n }\n return type;\n }\n if (type.flags & 1048576 /* Union */) {\n return mapType(type, getLowerBoundOfKeyType);\n }\n if (type.flags & 2097152 /* Intersection */) {\n return getIntersectionType(ts.sameMap(type.types, getLowerBoundOfKeyType));\n }\n return type;\n }\n function getIsLateCheckFlag(s) {\n return ts.getCheckFlags(s) & 4096 /* Late */;\n }\n /** Resolve the members of a mapped type { [P in K]: T } */\n function resolveMappedTypeMembers(type) {\n var members = ts.createSymbolTable();\n var indexInfos;\n // Resolve upfront such that recursive references see an empty object type.\n setStructuredTypeMembers(type, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n // In { [P in K]: T }, we refer to P as the type parameter type, K as the constraint type,\n // and T as the template type.\n var typeParameter = getTypeParameterFromMappedType(type);\n var constraintType = getConstraintTypeFromMappedType(type);\n var nameType = getNameTypeFromMappedType(type.target || type);\n var templateType = getTemplateTypeFromMappedType(type.target || type);\n var modifiersType = getApparentType(getModifiersTypeFromMappedType(type)); // The 'T' in 'keyof T'\n var templateModifiers = getMappedTypeModifiers(type);\n var include = keyofStringsOnly ? 128 /* StringLiteral */ : 8576 /* StringOrNumberLiteralOrUnique */;\n if (isMappedTypeWithKeyofConstraintDeclaration(type)) {\n // We have a { [P in keyof T]: X }\n for (var _i = 0, _a = getPropertiesOfType(modifiersType); _i < _a.length; _i++) {\n var prop = _a[_i];\n addMemberForKeyType(getLiteralTypeFromProperty(prop, include));\n }\n if (modifiersType.flags & 1 /* Any */) {\n addMemberForKeyType(stringType);\n }\n else {\n for (var _b = 0, _c = getIndexInfosOfType(modifiersType); _b < _c.length; _b++) {\n var info = _c[_b];\n if (!keyofStringsOnly || info.keyType.flags & (4 /* String */ | 134217728 /* TemplateLiteral */)) {\n addMemberForKeyType(info.keyType);\n }\n }\n }\n }\n else {\n forEachType(getLowerBoundOfKeyType(constraintType), addMemberForKeyType);\n }\n setStructuredTypeMembers(type, members, ts.emptyArray, ts.emptyArray, indexInfos || ts.emptyArray);\n function addMemberForKeyType(keyType) {\n var propNameType = nameType ? instantiateType(nameType, appendTypeMapping(type.mapper, typeParameter, keyType)) : keyType;\n forEachType(propNameType, function (t) { return addMemberForKeyTypeWorker(keyType, t); });\n }\n function addMemberForKeyTypeWorker(keyType, propNameType) {\n // If the current iteration type constituent is a string literal type, create a property.\n // Otherwise, for type string create a string index signature.\n if (isTypeUsableAsPropertyName(propNameType)) {\n var propName = getPropertyNameFromType(propNameType);\n // String enum members from separate enums with identical values\n // are distinct types with the same property name. Make the resulting\n // property symbol's name type be the union of those enum member types.\n var existingProp = members.get(propName);\n if (existingProp) {\n existingProp.nameType = getUnionType([existingProp.nameType, propNameType]);\n existingProp.keyType = getUnionType([existingProp.keyType, keyType]);\n }\n else {\n var modifiersProp = isTypeUsableAsPropertyName(keyType) ? getPropertyOfType(modifiersType, getPropertyNameFromType(keyType)) : undefined;\n var isOptional = !!(templateModifiers & 4 /* IncludeOptional */ ||\n !(templateModifiers & 8 /* ExcludeOptional */) && modifiersProp && modifiersProp.flags & 16777216 /* Optional */);\n var isReadonly = !!(templateModifiers & 1 /* IncludeReadonly */ ||\n !(templateModifiers & 2 /* ExcludeReadonly */) && modifiersProp && isReadonlySymbol(modifiersProp));\n var stripOptional = strictNullChecks && !isOptional && modifiersProp && modifiersProp.flags & 16777216 /* Optional */;\n var lateFlag = modifiersProp ? getIsLateCheckFlag(modifiersProp) : 0;\n var prop = createSymbol(4 /* Property */ | (isOptional ? 16777216 /* Optional */ : 0), propName, lateFlag | 262144 /* Mapped */ | (isReadonly ? 8 /* Readonly */ : 0) | (stripOptional ? 524288 /* StripOptional */ : 0));\n prop.mappedType = type;\n prop.nameType = propNameType;\n prop.keyType = keyType;\n if (modifiersProp) {\n prop.syntheticOrigin = modifiersProp;\n // If the mapped type has an `as XXX` clause, the property name likely won't match the declaration name and\n // multiple properties may map to the same name. Thus, we attach no declarations to the symbol.\n prop.declarations = nameType ? undefined : modifiersProp.declarations;\n }\n members.set(propName, prop);\n }\n }\n else if (isValidIndexKeyType(propNameType) || propNameType.flags & (1 /* Any */ | 32 /* Enum */)) {\n var indexKeyType = propNameType.flags & (1 /* Any */ | 4 /* String */) ? stringType :\n propNameType.flags & (8 /* Number */ | 32 /* Enum */) ? numberType :\n propNameType;\n var propType = instantiateType(templateType, appendTypeMapping(type.mapper, typeParameter, keyType));\n var indexInfo = createIndexInfo(indexKeyType, propType, !!(templateModifiers & 1 /* IncludeReadonly */));\n indexInfos = appendIndexInfo(indexInfos, indexInfo, /*union*/ true);\n }\n }\n }\n function getTypeOfMappedSymbol(symbol) {\n if (!symbol.type) {\n var mappedType = symbol.mappedType;\n if (!pushTypeResolution(symbol, 0 /* Type */)) {\n mappedType.containsError = true;\n return errorType;\n }\n var templateType = getTemplateTypeFromMappedType(mappedType.target || mappedType);\n var mapper = appendTypeMapping(mappedType.mapper, getTypeParameterFromMappedType(mappedType), symbol.keyType);\n var propType = instantiateType(templateType, mapper);\n // When creating an optional property in strictNullChecks mode, if 'undefined' isn't assignable to the\n // type, we include 'undefined' in the type. Similarly, when creating a non-optional property in strictNullChecks\n // mode, if the underlying property is optional we remove 'undefined' from the type.\n var type = strictNullChecks && symbol.flags & 16777216 /* Optional */ && !maybeTypeOfKind(propType, 32768 /* Undefined */ | 16384 /* Void */) ? getOptionalType(propType, /*isProperty*/ true) :\n symbol.checkFlags & 524288 /* StripOptional */ ? removeMissingOrUndefinedType(propType) :\n propType;\n if (!popTypeResolution()) {\n error(currentNode, ts.Diagnostics.Type_of_property_0_circularly_references_itself_in_mapped_type_1, symbolToString(symbol), typeToString(mappedType));\n type = errorType;\n }\n symbol.type = type;\n }\n return symbol.type;\n }\n function getTypeParameterFromMappedType(type) {\n return type.typeParameter ||\n (type.typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfNode(type.declaration.typeParameter)));\n }\n function getConstraintTypeFromMappedType(type) {\n return type.constraintType ||\n (type.constraintType = getConstraintOfTypeParameter(getTypeParameterFromMappedType(type)) || errorType);\n }\n function getNameTypeFromMappedType(type) {\n return type.declaration.nameType ?\n type.nameType || (type.nameType = instantiateType(getTypeFromTypeNode(type.declaration.nameType), type.mapper)) :\n undefined;\n }\n function getTemplateTypeFromMappedType(type) {\n return type.templateType ||\n (type.templateType = type.declaration.type ?\n instantiateType(addOptionality(getTypeFromTypeNode(type.declaration.type), /*isProperty*/ true, !!(getMappedTypeModifiers(type) & 4 /* IncludeOptional */)), type.mapper) :\n errorType);\n }\n function getConstraintDeclarationForMappedType(type) {\n return ts.getEffectiveConstraintOfTypeParameter(type.declaration.typeParameter);\n }\n function isMappedTypeWithKeyofConstraintDeclaration(type) {\n var constraintDeclaration = getConstraintDeclarationForMappedType(type); // TODO: GH#18217\n return constraintDeclaration.kind === 191 /* TypeOperator */ &&\n constraintDeclaration.operator === 139 /* KeyOfKeyword */;\n }\n function getModifiersTypeFromMappedType(type) {\n if (!type.modifiersType) {\n if (isMappedTypeWithKeyofConstraintDeclaration(type)) {\n // If the constraint declaration is a 'keyof T' node, the modifiers type is T. We check\n // AST nodes here because, when T is a non-generic type, the logic below eagerly resolves\n // 'keyof T' to a literal union type and we can't recover T from that type.\n type.modifiersType = instantiateType(getTypeFromTypeNode(getConstraintDeclarationForMappedType(type).type), type.mapper);\n }\n else {\n // Otherwise, get the declared constraint type, and if the constraint type is a type parameter,\n // get the constraint of that type parameter. If the resulting type is an indexed type 'keyof T',\n // the modifiers type is T. Otherwise, the modifiers type is unknown.\n var declaredType = getTypeFromMappedTypeNode(type.declaration);\n var constraint = getConstraintTypeFromMappedType(declaredType);\n var extendedConstraint = constraint && constraint.flags & 262144 /* TypeParameter */ ? getConstraintOfTypeParameter(constraint) : constraint;\n type.modifiersType = extendedConstraint && extendedConstraint.flags & 4194304 /* Index */ ? instantiateType(extendedConstraint.type, type.mapper) : unknownType;\n }\n }\n return type.modifiersType;\n }\n function getMappedTypeModifiers(type) {\n var declaration = type.declaration;\n return (declaration.readonlyToken ? declaration.readonlyToken.kind === 40 /* MinusToken */ ? 2 /* ExcludeReadonly */ : 1 /* IncludeReadonly */ : 0) |\n (declaration.questionToken ? declaration.questionToken.kind === 40 /* MinusToken */ ? 8 /* ExcludeOptional */ : 4 /* IncludeOptional */ : 0);\n }\n function getMappedTypeOptionality(type) {\n var modifiers = getMappedTypeModifiers(type);\n return modifiers & 8 /* ExcludeOptional */ ? -1 : modifiers & 4 /* IncludeOptional */ ? 1 : 0;\n }\n function getCombinedMappedTypeOptionality(type) {\n var optionality = getMappedTypeOptionality(type);\n var modifiersType = getModifiersTypeFromMappedType(type);\n return optionality || (isGenericMappedType(modifiersType) ? getMappedTypeOptionality(modifiersType) : 0);\n }\n function isPartialMappedType(type) {\n return !!(ts.getObjectFlags(type) & 32 /* Mapped */ && getMappedTypeModifiers(type) & 4 /* IncludeOptional */);\n }\n function isGenericMappedType(type) {\n return !!(ts.getObjectFlags(type) & 32 /* Mapped */) && isGenericIndexType(getConstraintTypeFromMappedType(type));\n }\n function resolveStructuredTypeMembers(type) {\n if (!type.members) {\n if (type.flags & 524288 /* Object */) {\n if (type.objectFlags & 4 /* Reference */) {\n resolveTypeReferenceMembers(type);\n }\n else if (type.objectFlags & 3 /* ClassOrInterface */) {\n resolveClassOrInterfaceMembers(type);\n }\n else if (type.objectFlags & 1024 /* ReverseMapped */) {\n resolveReverseMappedTypeMembers(type);\n }\n else if (type.objectFlags & 16 /* Anonymous */) {\n resolveAnonymousTypeMembers(type);\n }\n else if (type.objectFlags & 32 /* Mapped */) {\n resolveMappedTypeMembers(type);\n }\n }\n else if (type.flags & 1048576 /* Union */) {\n resolveUnionTypeMembers(type);\n }\n else if (type.flags & 2097152 /* Intersection */) {\n resolveIntersectionTypeMembers(type);\n }\n }\n return type;\n }\n /** Return properties of an object type or an empty array for other types */\n function getPropertiesOfObjectType(type) {\n if (type.flags & 524288 /* Object */) {\n return resolveStructuredTypeMembers(type).properties;\n }\n return ts.emptyArray;\n }\n /** If the given type is an object type and that type has a property by the given name,\n * return the symbol for that property. Otherwise return undefined.\n */\n function getPropertyOfObjectType(type, name) {\n if (type.flags & 524288 /* Object */) {\n var resolved = resolveStructuredTypeMembers(type);\n var symbol = resolved.members.get(name);\n if (symbol && symbolIsValue(symbol)) {\n return symbol;\n }\n }\n }\n function getPropertiesOfUnionOrIntersectionType(type) {\n if (!type.resolvedProperties) {\n var members = ts.createSymbolTable();\n for (var _i = 0, _a = type.types; _i < _a.length; _i++) {\n var current = _a[_i];\n for (var _b = 0, _c = getPropertiesOfType(current); _b < _c.length; _b++) {\n var prop = _c[_b];\n if (!members.has(prop.escapedName)) {\n var combinedProp = getPropertyOfUnionOrIntersectionType(type, prop.escapedName);\n if (combinedProp) {\n members.set(prop.escapedName, combinedProp);\n }\n }\n }\n // The properties of a union type are those that are present in all constituent types, so\n // we only need to check the properties of the first type without index signature\n if (type.flags & 1048576 /* Union */ && getIndexInfosOfType(current).length === 0) {\n break;\n }\n }\n type.resolvedProperties = getNamedMembers(members);\n }\n return type.resolvedProperties;\n }\n function getPropertiesOfType(type) {\n type = getReducedApparentType(type);\n return type.flags & 3145728 /* UnionOrIntersection */ ?\n getPropertiesOfUnionOrIntersectionType(type) :\n getPropertiesOfObjectType(type);\n }\n function isTypeInvalidDueToUnionDiscriminant(contextualType, obj) {\n var list = obj.properties;\n return list.some(function (property) {\n var nameType = property.name && getLiteralTypeFromPropertyName(property.name);\n var name = nameType && isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : undefined;\n var expected = name === undefined ? undefined : getTypeOfPropertyOfType(contextualType, name);\n return !!expected && isLiteralType(expected) && !isTypeAssignableTo(getTypeOfNode(property), expected);\n });\n }\n function getAllPossiblePropertiesOfTypes(types) {\n var unionType = getUnionType(types);\n if (!(unionType.flags & 1048576 /* Union */)) {\n return getAugmentedPropertiesOfType(unionType);\n }\n var props = ts.createSymbolTable();\n for (var _i = 0, types_4 = types; _i < types_4.length; _i++) {\n var memberType = types_4[_i];\n for (var _a = 0, _b = getAugmentedPropertiesOfType(memberType); _a < _b.length; _a++) {\n var escapedName = _b[_a].escapedName;\n if (!props.has(escapedName)) {\n var prop = createUnionOrIntersectionProperty(unionType, escapedName);\n // May be undefined if the property is private\n if (prop)\n props.set(escapedName, prop);\n }\n }\n }\n return ts.arrayFrom(props.values());\n }\n function getConstraintOfType(type) {\n return type.flags & 262144 /* TypeParameter */ ? getConstraintOfTypeParameter(type) :\n type.flags & 8388608 /* IndexedAccess */ ? getConstraintOfIndexedAccess(type) :\n type.flags & 16777216 /* Conditional */ ? getConstraintOfConditionalType(type) :\n getBaseConstraintOfType(type);\n }\n function getConstraintOfTypeParameter(typeParameter) {\n return hasNonCircularBaseConstraint(typeParameter) ? getConstraintFromTypeParameter(typeParameter) : undefined;\n }\n function getConstraintOfIndexedAccess(type) {\n return hasNonCircularBaseConstraint(type) ? getConstraintFromIndexedAccess(type) : undefined;\n }\n function getSimplifiedTypeOrConstraint(type) {\n var simplified = getSimplifiedType(type, /*writing*/ false);\n return simplified !== type ? simplified : getConstraintOfType(type);\n }\n function getConstraintFromIndexedAccess(type) {\n var indexConstraint = getSimplifiedTypeOrConstraint(type.indexType);\n if (indexConstraint && indexConstraint !== type.indexType) {\n var indexedAccess = getIndexedAccessTypeOrUndefined(type.objectType, indexConstraint, type.accessFlags);\n if (indexedAccess) {\n return indexedAccess;\n }\n }\n var objectConstraint = getSimplifiedTypeOrConstraint(type.objectType);\n if (objectConstraint && objectConstraint !== type.objectType) {\n return getIndexedAccessTypeOrUndefined(objectConstraint, type.indexType, type.accessFlags);\n }\n return undefined;\n }\n function getDefaultConstraintOfConditionalType(type) {\n if (!type.resolvedDefaultConstraint) {\n // An `any` branch of a conditional type would normally be viral - specifically, without special handling here,\n // a conditional type with a single branch of type `any` would be assignable to anything, since it's constraint would simplify to\n // just `any`. This result is _usually_ unwanted - so instead here we elide an `any` branch from the constraint type,\n // in effect treating `any` like `never` rather than `unknown` in this location.\n var trueConstraint = getInferredTrueTypeFromConditionalType(type);\n var falseConstraint = getFalseTypeFromConditionalType(type);\n type.resolvedDefaultConstraint = isTypeAny(trueConstraint) ? falseConstraint : isTypeAny(falseConstraint) ? trueConstraint : getUnionType([trueConstraint, falseConstraint]);\n }\n return type.resolvedDefaultConstraint;\n }\n function getConstraintOfDistributiveConditionalType(type) {\n // Check if we have a conditional type of the form 'T extends U ? X : Y', where T is a constrained\n // type parameter. If so, create an instantiation of the conditional type where T is replaced\n // with its constraint. We do this because if the constraint is a union type it will be distributed\n // over the conditional type and possibly reduced. For example, 'T extends undefined ? never : T'\n // removes 'undefined' from T.\n // We skip returning a distributive constraint for a restrictive instantiation of a conditional type\n // as the constraint for all type params (check type included) have been replace with `unknown`, which\n // is going to produce even more false positive/negative results than the distribute constraint already does.\n // Please note: the distributive constraint is a kludge for emulating what a negated type could to do filter\n // a union - once negated types exist and are applied to the conditional false branch, this \"constraint\"\n // likely doesn't need to exist.\n if (type.root.isDistributive && type.restrictiveInstantiation !== type) {\n var simplified = getSimplifiedType(type.checkType, /*writing*/ false);\n var constraint = simplified === type.checkType ? getConstraintOfType(simplified) : simplified;\n if (constraint && constraint !== type.checkType) {\n var instantiated = getConditionalTypeInstantiation(type, prependTypeMapping(type.root.checkType, constraint, type.mapper));\n if (!(instantiated.flags & 131072 /* Never */)) {\n return instantiated;\n }\n }\n }\n return undefined;\n }\n function getConstraintFromConditionalType(type) {\n return getConstraintOfDistributiveConditionalType(type) || getDefaultConstraintOfConditionalType(type);\n }\n function getConstraintOfConditionalType(type) {\n return hasNonCircularBaseConstraint(type) ? getConstraintFromConditionalType(type) : undefined;\n }\n function getEffectiveConstraintOfIntersection(types, targetIsUnion) {\n var constraints;\n var hasDisjointDomainType = false;\n for (var _i = 0, types_5 = types; _i < types_5.length; _i++) {\n var t = types_5[_i];\n if (t.flags & 465829888 /* Instantiable */) {\n // We keep following constraints as long as we have an instantiable type that is known\n // not to be circular or infinite (hence we stop on index access types).\n var constraint = getConstraintOfType(t);\n while (constraint && constraint.flags & (262144 /* TypeParameter */ | 4194304 /* Index */ | 16777216 /* Conditional */)) {\n constraint = getConstraintOfType(constraint);\n }\n if (constraint) {\n constraints = ts.append(constraints, constraint);\n if (targetIsUnion) {\n constraints = ts.append(constraints, t);\n }\n }\n }\n else if (t.flags & 469892092 /* DisjointDomains */) {\n hasDisjointDomainType = true;\n }\n }\n // If the target is a union type or if we are intersecting with types belonging to one of the\n // disjoint domains, we may end up producing a constraint that hasn't been examined before.\n if (constraints && (targetIsUnion || hasDisjointDomainType)) {\n if (hasDisjointDomainType) {\n // We add any types belong to one of the disjoint domains because they might cause the final\n // intersection operation to reduce the union constraints.\n for (var _a = 0, types_6 = types; _a < types_6.length; _a++) {\n var t = types_6[_a];\n if (t.flags & 469892092 /* DisjointDomains */) {\n constraints = ts.append(constraints, t);\n }\n }\n }\n return getIntersectionType(constraints);\n }\n return undefined;\n }\n function getBaseConstraintOfType(type) {\n if (type.flags & (58982400 /* InstantiableNonPrimitive */ | 3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */)) {\n var constraint = getResolvedBaseConstraint(type);\n return constraint !== noConstraintType && constraint !== circularConstraintType ? constraint : undefined;\n }\n return type.flags & 4194304 /* Index */ ? keyofConstraintType : undefined;\n }\n /**\n * This is similar to `getBaseConstraintOfType` except it returns the input type if there's no base constraint, instead of `undefined`\n * It also doesn't map indexes to `string`, as where this is used this would be unneeded (and likely undesirable)\n */\n function getBaseConstraintOrType(type) {\n return getBaseConstraintOfType(type) || type;\n }\n function hasNonCircularBaseConstraint(type) {\n return getResolvedBaseConstraint(type) !== circularConstraintType;\n }\n /**\n * Return the resolved base constraint of a type variable. The noConstraintType singleton is returned if the\n * type variable has no constraint, and the circularConstraintType singleton is returned if the constraint\n * circularly references the type variable.\n */\n function getResolvedBaseConstraint(type) {\n if (type.resolvedBaseConstraint) {\n return type.resolvedBaseConstraint;\n }\n var stack = [];\n return type.resolvedBaseConstraint = getTypeWithThisArgument(getImmediateBaseConstraint(type), type);\n function getImmediateBaseConstraint(t) {\n if (!t.immediateBaseConstraint) {\n if (!pushTypeResolution(t, 4 /* ImmediateBaseConstraint */)) {\n return circularConstraintType;\n }\n var result = void 0;\n // We always explore at least 10 levels of nested constraints. Thereafter, we continue to explore\n // up to 50 levels of nested constraints provided there are no \"deeply nested\" types on the stack\n // (i.e. no types for which five instantiations have been recorded on the stack). If we reach 50\n // levels of nesting, we are presumably exploring a repeating pattern with a long cycle that hasn't\n // yet triggered the deeply nested limiter. We have no test cases that actually get to 50 levels of\n // nesting, so it is effectively just a safety stop.\n if (stack.length < 10 || stack.length < 50 && !isDeeplyNestedType(t, stack, stack.length)) {\n stack.push(t);\n result = computeBaseConstraint(getSimplifiedType(t, /*writing*/ false));\n stack.pop();\n }\n if (!popTypeResolution()) {\n if (t.flags & 262144 /* TypeParameter */) {\n var errorNode = getConstraintDeclaration(t);\n if (errorNode) {\n var diagnostic = error(errorNode, ts.Diagnostics.Type_parameter_0_has_a_circular_constraint, typeToString(t));\n if (currentNode && !ts.isNodeDescendantOf(errorNode, currentNode) && !ts.isNodeDescendantOf(currentNode, errorNode)) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(currentNode, ts.Diagnostics.Circularity_originates_in_type_at_this_location));\n }\n }\n }\n result = circularConstraintType;\n }\n t.immediateBaseConstraint = result || noConstraintType;\n }\n return t.immediateBaseConstraint;\n }\n function getBaseConstraint(t) {\n var c = getImmediateBaseConstraint(t);\n return c !== noConstraintType && c !== circularConstraintType ? c : undefined;\n }\n function computeBaseConstraint(t) {\n if (t.flags & 262144 /* TypeParameter */) {\n var constraint = getConstraintFromTypeParameter(t);\n return t.isThisType || !constraint ?\n constraint :\n getBaseConstraint(constraint);\n }\n if (t.flags & 3145728 /* UnionOrIntersection */) {\n var types = t.types;\n var baseTypes = [];\n var different = false;\n for (var _i = 0, types_7 = types; _i < types_7.length; _i++) {\n var type_3 = types_7[_i];\n var baseType = getBaseConstraint(type_3);\n if (baseType) {\n if (baseType !== type_3) {\n different = true;\n }\n baseTypes.push(baseType);\n }\n else {\n different = true;\n }\n }\n if (!different) {\n return t;\n }\n return t.flags & 1048576 /* Union */ && baseTypes.length === types.length ? getUnionType(baseTypes) :\n t.flags & 2097152 /* Intersection */ && baseTypes.length ? getIntersectionType(baseTypes) :\n undefined;\n }\n if (t.flags & 4194304 /* Index */) {\n return keyofConstraintType;\n }\n if (t.flags & 134217728 /* TemplateLiteral */) {\n var types = t.types;\n var constraints = ts.mapDefined(types, getBaseConstraint);\n return constraints.length === types.length ? getTemplateLiteralType(t.texts, constraints) : stringType;\n }\n if (t.flags & 268435456 /* StringMapping */) {\n var constraint = getBaseConstraint(t.type);\n return constraint ? getStringMappingType(t.symbol, constraint) : stringType;\n }\n if (t.flags & 8388608 /* IndexedAccess */) {\n var baseObjectType = getBaseConstraint(t.objectType);\n var baseIndexType = getBaseConstraint(t.indexType);\n var baseIndexedAccess = baseObjectType && baseIndexType && getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, t.accessFlags);\n return baseIndexedAccess && getBaseConstraint(baseIndexedAccess);\n }\n if (t.flags & 16777216 /* Conditional */) {\n var constraint = getConstraintFromConditionalType(t);\n return constraint && getBaseConstraint(constraint);\n }\n if (t.flags & 33554432 /* Substitution */) {\n return getBaseConstraint(t.substitute);\n }\n return t;\n }\n }\n function getApparentTypeOfIntersectionType(type) {\n return type.resolvedApparentType || (type.resolvedApparentType = getTypeWithThisArgument(type, type, /*apparentType*/ true));\n }\n function getResolvedTypeParameterDefault(typeParameter) {\n if (!typeParameter.default) {\n if (typeParameter.target) {\n var targetDefault = getResolvedTypeParameterDefault(typeParameter.target);\n typeParameter.default = targetDefault ? instantiateType(targetDefault, typeParameter.mapper) : noConstraintType;\n }\n else {\n // To block recursion, set the initial value to the resolvingDefaultType.\n typeParameter.default = resolvingDefaultType;\n var defaultDeclaration = typeParameter.symbol && ts.forEach(typeParameter.symbol.declarations, function (decl) { return ts.isTypeParameterDeclaration(decl) && decl.default; });\n var defaultType = defaultDeclaration ? getTypeFromTypeNode(defaultDeclaration) : noConstraintType;\n if (typeParameter.default === resolvingDefaultType) {\n // If we have not been called recursively, set the correct default type.\n typeParameter.default = defaultType;\n }\n }\n }\n else if (typeParameter.default === resolvingDefaultType) {\n // If we are called recursively for this type parameter, mark the default as circular.\n typeParameter.default = circularConstraintType;\n }\n return typeParameter.default;\n }\n /**\n * Gets the default type for a type parameter.\n *\n * If the type parameter is the result of an instantiation, this gets the instantiated\n * default type of its target. If the type parameter has no default type or the default is\n * circular, `undefined` is returned.\n */\n function getDefaultFromTypeParameter(typeParameter) {\n var defaultType = getResolvedTypeParameterDefault(typeParameter);\n return defaultType !== noConstraintType && defaultType !== circularConstraintType ? defaultType : undefined;\n }\n function hasNonCircularTypeParameterDefault(typeParameter) {\n return getResolvedTypeParameterDefault(typeParameter) !== circularConstraintType;\n }\n /**\n * Indicates whether the declaration of a typeParameter has a default type.\n */\n function hasTypeParameterDefault(typeParameter) {\n return !!(typeParameter.symbol && ts.forEach(typeParameter.symbol.declarations, function (decl) { return ts.isTypeParameterDeclaration(decl) && decl.default; }));\n }\n function getApparentTypeOfMappedType(type) {\n return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));\n }\n function getResolvedApparentTypeOfMappedType(type) {\n var typeVariable = getHomomorphicTypeVariable(type);\n if (typeVariable && !type.declaration.nameType) {\n var constraint = getConstraintOfTypeParameter(typeVariable);\n if (constraint && (isArrayType(constraint) || isTupleType(constraint))) {\n return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));\n }\n }\n return type;\n }\n /**\n * For a type parameter, return the base constraint of the type parameter. For the string, number,\n * boolean, and symbol primitive types, return the corresponding object types. Otherwise return the\n * type itself.\n */\n function getApparentType(type) {\n var t = type.flags & 465829888 /* Instantiable */ ? getBaseConstraintOfType(type) || unknownType : type;\n return ts.getObjectFlags(t) & 32 /* Mapped */ ? getApparentTypeOfMappedType(t) :\n t.flags & 2097152 /* Intersection */ ? getApparentTypeOfIntersectionType(t) :\n t.flags & 402653316 /* StringLike */ ? globalStringType :\n t.flags & 296 /* NumberLike */ ? globalNumberType :\n t.flags & 2112 /* BigIntLike */ ? getGlobalBigIntType(/*reportErrors*/ languageVersion >= 7 /* ES2020 */) :\n t.flags & 528 /* BooleanLike */ ? globalBooleanType :\n t.flags & 12288 /* ESSymbolLike */ ? getGlobalESSymbolType(/*reportErrors*/ languageVersion >= 2 /* ES2015 */) :\n t.flags & 67108864 /* NonPrimitive */ ? emptyObjectType :\n t.flags & 4194304 /* Index */ ? keyofConstraintType :\n t.flags & 2 /* Unknown */ && !strictNullChecks ? emptyObjectType :\n t;\n }\n function getReducedApparentType(type) {\n // Since getApparentType may return a non-reduced union or intersection type, we need to perform\n // type reduction both before and after obtaining the apparent type. For example, given a type parameter\n // 'T extends A | B', the type 'T & X' becomes 'A & X | B & X' after obtaining the apparent type, and\n // that type may need further reduction to remove empty intersections.\n return getReducedType(getApparentType(getReducedType(type)));\n }\n function createUnionOrIntersectionProperty(containingType, name, skipObjectFunctionPropertyAugment) {\n var _a, _b;\n var singleProp;\n var propSet;\n var indexTypes;\n var isUnion = containingType.flags & 1048576 /* Union */;\n // Flags we want to propagate to the result if they exist in all source symbols\n var optionalFlag = isUnion ? 0 /* None */ : 16777216 /* Optional */;\n var syntheticFlag = 4 /* SyntheticMethod */;\n var checkFlags = 0;\n var mergedInstantiations = false;\n for (var _i = 0, _c = containingType.types; _i < _c.length; _i++) {\n var current = _c[_i];\n var type = getApparentType(current);\n if (!(type === errorType || type.flags & 131072 /* Never */)) {\n var prop = getPropertyOfType(type, name, skipObjectFunctionPropertyAugment);\n var modifiers = prop ? ts.getDeclarationModifierFlagsFromSymbol(prop) : 0;\n if (prop) {\n if (isUnion) {\n optionalFlag |= (prop.flags & 16777216 /* Optional */);\n }\n else {\n optionalFlag &= prop.flags;\n }\n if (!singleProp) {\n singleProp = prop;\n }\n else if (prop !== singleProp) {\n var isInstantiation = (getTargetSymbol(prop) || prop) === (getTargetSymbol(singleProp) || singleProp);\n // If the symbols are instances of one another with identical types - consider the symbols\n // equivalent and just use the first one, which thus allows us to avoid eliding private\n // members when intersecting a (this-)instantiations of a class with it's raw base or another instance\n if (isInstantiation && compareProperties(singleProp, prop, function (a, b) { return a === b ? -1 /* True */ : 0 /* False */; }) === -1 /* True */) {\n // If we merged instantiations of a generic type, we replicate the symbol parent resetting behavior we used\n // to do when we recorded multiple distinct symbols so that we still get, eg, `Array.length` printed\n // back and not `Array.length` when we're looking at a `.length` access on a `string[] | number[]`\n mergedInstantiations = !!singleProp.parent && !!ts.length(getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(singleProp.parent));\n }\n else {\n if (!propSet) {\n propSet = new ts.Map();\n propSet.set(getSymbolId(singleProp), singleProp);\n }\n var id = getSymbolId(prop);\n if (!propSet.has(id)) {\n propSet.set(id, prop);\n }\n }\n }\n checkFlags |= (isReadonlySymbol(prop) ? 8 /* Readonly */ : 0) |\n (!(modifiers & 24 /* NonPublicAccessibilityModifier */) ? 256 /* ContainsPublic */ : 0) |\n (modifiers & 16 /* Protected */ ? 512 /* ContainsProtected */ : 0) |\n (modifiers & 8 /* Private */ ? 1024 /* ContainsPrivate */ : 0) |\n (modifiers & 32 /* Static */ ? 2048 /* ContainsStatic */ : 0);\n if (!isPrototypeProperty(prop)) {\n syntheticFlag = 2 /* SyntheticProperty */;\n }\n }\n else if (isUnion) {\n var indexInfo = !isLateBoundName(name) && getApplicableIndexInfoForName(type, name);\n if (indexInfo) {\n checkFlags |= 32 /* WritePartial */ | (indexInfo.isReadonly ? 8 /* Readonly */ : 0);\n indexTypes = ts.append(indexTypes, isTupleType(type) ? getRestTypeOfTupleType(type) || undefinedType : indexInfo.type);\n }\n else if (isObjectLiteralType(type) && !(ts.getObjectFlags(type) & 4194304 /* ContainsSpread */)) {\n checkFlags |= 32 /* WritePartial */;\n indexTypes = ts.append(indexTypes, undefinedType);\n }\n else {\n checkFlags |= 16 /* ReadPartial */;\n }\n }\n }\n }\n if (!singleProp || isUnion && (propSet || checkFlags & 48 /* Partial */) && checkFlags & (1024 /* ContainsPrivate */ | 512 /* ContainsProtected */)) {\n // No property was found, or, in a union, a property has a private or protected declaration in one\n // constituent, but is missing or has a different declaration in another constituent.\n return undefined;\n }\n if (!propSet && !(checkFlags & 16 /* ReadPartial */) && !indexTypes) {\n if (mergedInstantiations) {\n // No symbol from a union/intersection should have a `.parent` set (since unions/intersections don't act as symbol parents)\n // Unless that parent is \"reconstituted\" from the \"first value declaration\" on the symbol (which is likely different than its instantiated parent!)\n // They also have a `.containingType` set, which affects some services endpoints behavior, like `getRootSymbol`\n var clone_1 = createSymbolWithType(singleProp, singleProp.type);\n clone_1.parent = (_b = (_a = singleProp.valueDeclaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.parent;\n clone_1.containingType = containingType;\n clone_1.mapper = singleProp.mapper;\n return clone_1;\n }\n else {\n return singleProp;\n }\n }\n var props = propSet ? ts.arrayFrom(propSet.values()) : [singleProp];\n var declarations;\n var firstType;\n var nameType;\n var propTypes = [];\n var firstValueDeclaration;\n var hasNonUniformValueDeclaration = false;\n for (var _d = 0, props_1 = props; _d < props_1.length; _d++) {\n var prop = props_1[_d];\n if (!firstValueDeclaration) {\n firstValueDeclaration = prop.valueDeclaration;\n }\n else if (prop.valueDeclaration && prop.valueDeclaration !== firstValueDeclaration) {\n hasNonUniformValueDeclaration = true;\n }\n declarations = ts.addRange(declarations, prop.declarations);\n var type = getTypeOfSymbol(prop);\n if (!firstType) {\n firstType = type;\n nameType = getSymbolLinks(prop).nameType;\n }\n else if (type !== firstType) {\n checkFlags |= 64 /* HasNonUniformType */;\n }\n if (isLiteralType(type)) {\n checkFlags |= 128 /* HasLiteralType */;\n }\n if (type.flags & 131072 /* Never */) {\n checkFlags |= 131072 /* HasNeverType */;\n }\n propTypes.push(type);\n }\n ts.addRange(propTypes, indexTypes);\n var result = createSymbol(4 /* Property */ | optionalFlag, name, syntheticFlag | checkFlags);\n result.containingType = containingType;\n if (!hasNonUniformValueDeclaration && firstValueDeclaration) {\n result.valueDeclaration = firstValueDeclaration;\n // Inherit information about parent type.\n if (firstValueDeclaration.symbol.parent) {\n result.parent = firstValueDeclaration.symbol.parent;\n }\n }\n result.declarations = declarations;\n result.nameType = nameType;\n if (propTypes.length > 2) {\n // When `propTypes` has the potential to explode in size when normalized, defer normalization until absolutely needed\n result.checkFlags |= 65536 /* DeferredType */;\n result.deferralParent = containingType;\n result.deferralConstituents = propTypes;\n }\n else {\n result.type = isUnion ? getUnionType(propTypes) : getIntersectionType(propTypes);\n }\n return result;\n }\n // Return the symbol for a given property in a union or intersection type, or undefined if the property\n // does not exist in any constituent type. Note that the returned property may only be present in some\n // constituents, in which case the isPartial flag is set when the containing type is union type. We need\n // these partial properties when identifying discriminant properties, but otherwise they are filtered out\n // and do not appear to be present in the union type.\n function getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment) {\n var _a, _b;\n var property = ((_a = type.propertyCacheWithoutObjectFunctionPropertyAugment) === null || _a === void 0 ? void 0 : _a.get(name)) ||\n !skipObjectFunctionPropertyAugment ? (_b = type.propertyCache) === null || _b === void 0 ? void 0 : _b.get(name) : undefined;\n if (!property) {\n property = createUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);\n if (property) {\n var properties = skipObjectFunctionPropertyAugment ? type.propertyCacheWithoutObjectFunctionPropertyAugment || (type.propertyCacheWithoutObjectFunctionPropertyAugment = ts.createSymbolTable()) : type.propertyCache || (type.propertyCache = ts.createSymbolTable());\n properties.set(name, property);\n }\n }\n return property;\n }\n function getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment) {\n var property = getUnionOrIntersectionProperty(type, name, skipObjectFunctionPropertyAugment);\n // We need to filter out partial properties in union types\n return property && !(ts.getCheckFlags(property) & 16 /* ReadPartial */) ? property : undefined;\n }\n /**\n * Return the reduced form of the given type. For a union type, it is a union of the normalized constituent types.\n * For an intersection of types containing one or more mututally exclusive discriminant properties, it is 'never'.\n * For all other types, it is simply the type itself. Discriminant properties are considered mutually exclusive when\n * no constituent property has type 'never', but the intersection of the constituent property types is 'never'.\n */\n function getReducedType(type) {\n if (type.flags & 1048576 /* Union */ && type.objectFlags & 33554432 /* ContainsIntersections */) {\n return type.resolvedReducedType || (type.resolvedReducedType = getReducedUnionType(type));\n }\n else if (type.flags & 2097152 /* Intersection */) {\n if (!(type.objectFlags & 33554432 /* IsNeverIntersectionComputed */)) {\n type.objectFlags |= 33554432 /* IsNeverIntersectionComputed */ |\n (ts.some(getPropertiesOfUnionOrIntersectionType(type), isNeverReducedProperty) ? 67108864 /* IsNeverIntersection */ : 0);\n }\n return type.objectFlags & 67108864 /* IsNeverIntersection */ ? neverType : type;\n }\n return type;\n }\n function getReducedUnionType(unionType) {\n var reducedTypes = ts.sameMap(unionType.types, getReducedType);\n if (reducedTypes === unionType.types) {\n return unionType;\n }\n var reduced = getUnionType(reducedTypes);\n if (reduced.flags & 1048576 /* Union */) {\n reduced.resolvedReducedType = reduced;\n }\n return reduced;\n }\n function isNeverReducedProperty(prop) {\n return isDiscriminantWithNeverType(prop) || isConflictingPrivateProperty(prop);\n }\n function isDiscriminantWithNeverType(prop) {\n // Return true for a synthetic non-optional property with non-uniform types, where at least one is\n // a literal type and none is never, that reduces to never.\n return !(prop.flags & 16777216 /* Optional */) &&\n (ts.getCheckFlags(prop) & (192 /* Discriminant */ | 131072 /* HasNeverType */)) === 192 /* Discriminant */ &&\n !!(getTypeOfSymbol(prop).flags & 131072 /* Never */);\n }\n function isConflictingPrivateProperty(prop) {\n // Return true for a synthetic property with multiple declarations, at least one of which is private.\n return !prop.valueDeclaration && !!(ts.getCheckFlags(prop) & 1024 /* ContainsPrivate */);\n }\n function elaborateNeverIntersection(errorInfo, type) {\n if (type.flags & 2097152 /* Intersection */ && ts.getObjectFlags(type) & 67108864 /* IsNeverIntersection */) {\n var neverProp = ts.find(getPropertiesOfUnionOrIntersectionType(type), isDiscriminantWithNeverType);\n if (neverProp) {\n return ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_has_conflicting_types_in_some_constituents, typeToString(type, /*enclosingDeclaration*/ undefined, 536870912 /* NoTypeReduction */), symbolToString(neverProp));\n }\n var privateProp = ts.find(getPropertiesOfUnionOrIntersectionType(type), isConflictingPrivateProperty);\n if (privateProp) {\n return ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.The_intersection_0_was_reduced_to_never_because_property_1_exists_in_multiple_constituents_and_is_private_in_some, typeToString(type, /*enclosingDeclaration*/ undefined, 536870912 /* NoTypeReduction */), symbolToString(privateProp));\n }\n }\n return errorInfo;\n }\n /**\n * Return the symbol for the property with the given name in the given type. Creates synthetic union properties when\n * necessary, maps primitive types and type parameters are to their apparent types, and augments with properties from\n * Object and Function as appropriate.\n *\n * @param type a type to look up property from\n * @param name a name of property to look up in a given type\n */\n function getPropertyOfType(type, name, skipObjectFunctionPropertyAugment) {\n type = getReducedApparentType(type);\n if (type.flags & 524288 /* Object */) {\n var resolved = resolveStructuredTypeMembers(type);\n var symbol = resolved.members.get(name);\n if (symbol && symbolIsValue(symbol)) {\n return symbol;\n }\n if (skipObjectFunctionPropertyAugment)\n return undefined;\n var functionType = resolved === anyFunctionType ? globalFunctionType :\n resolved.callSignatures.length ? globalCallableFunctionType :\n resolved.constructSignatures.length ? globalNewableFunctionType :\n undefined;\n if (functionType) {\n var symbol_1 = getPropertyOfObjectType(functionType, name);\n if (symbol_1) {\n return symbol_1;\n }\n }\n return getPropertyOfObjectType(globalObjectType, name);\n }\n if (type.flags & 3145728 /* UnionOrIntersection */) {\n return getPropertyOfUnionOrIntersectionType(type, name, skipObjectFunctionPropertyAugment);\n }\n return undefined;\n }\n function getSignaturesOfStructuredType(type, kind) {\n if (type.flags & 3670016 /* StructuredType */) {\n var resolved = resolveStructuredTypeMembers(type);\n return kind === 0 /* Call */ ? resolved.callSignatures : resolved.constructSignatures;\n }\n return ts.emptyArray;\n }\n /**\n * Return the signatures of the given kind in the given type. Creates synthetic union signatures when necessary and\n * maps primitive types and type parameters are to their apparent types.\n */\n function getSignaturesOfType(type, kind) {\n return getSignaturesOfStructuredType(getReducedApparentType(type), kind);\n }\n function findIndexInfo(indexInfos, keyType) {\n return ts.find(indexInfos, function (info) { return info.keyType === keyType; });\n }\n function findApplicableIndexInfo(indexInfos, keyType) {\n // Index signatures for type 'string' are considered only when no other index signatures apply.\n var stringIndexInfo;\n var applicableInfo;\n var applicableInfos;\n for (var _i = 0, indexInfos_1 = indexInfos; _i < indexInfos_1.length; _i++) {\n var info = indexInfos_1[_i];\n if (info.keyType === stringType) {\n stringIndexInfo = info;\n }\n else if (isApplicableIndexType(keyType, info.keyType)) {\n if (!applicableInfo) {\n applicableInfo = info;\n }\n else {\n (applicableInfos || (applicableInfos = [applicableInfo])).push(info);\n }\n }\n }\n // When more than one index signature is applicable we create a synthetic IndexInfo. Instead of computing\n // the intersected key type, we just use unknownType for the key type as nothing actually depends on the\n // keyType property of the returned IndexInfo.\n return applicableInfos ? createIndexInfo(unknownType, getIntersectionType(ts.map(applicableInfos, function (info) { return info.type; })), ts.reduceLeft(applicableInfos, function (isReadonly, info) { return isReadonly && info.isReadonly; }, /*initial*/ true)) :\n applicableInfo ? applicableInfo :\n stringIndexInfo && isApplicableIndexType(keyType, stringType) ? stringIndexInfo :\n undefined;\n }\n function isApplicableIndexType(source, target) {\n // A 'string' index signature applies to types assignable to 'string' or 'number', and a 'number' index\n // signature applies to types assignable to 'number' and numeric string literal types.\n return isTypeAssignableTo(source, target) ||\n target === stringType && isTypeAssignableTo(source, numberType) ||\n target === numberType && !!(source.flags & 128 /* StringLiteral */) && isNumericLiteralName(source.value);\n }\n function getIndexInfosOfStructuredType(type) {\n if (type.flags & 3670016 /* StructuredType */) {\n var resolved = resolveStructuredTypeMembers(type);\n return resolved.indexInfos;\n }\n return ts.emptyArray;\n }\n function getIndexInfosOfType(type) {\n return getIndexInfosOfStructuredType(getReducedApparentType(type));\n }\n // Return the indexing info of the given kind in the given type. Creates synthetic union index types when necessary and\n // maps primitive types and type parameters are to their apparent types.\n function getIndexInfoOfType(type, keyType) {\n return findIndexInfo(getIndexInfosOfType(type), keyType);\n }\n // Return the index type of the given kind in the given type. Creates synthetic union index types when necessary and\n // maps primitive types and type parameters are to their apparent types.\n function getIndexTypeOfType(type, keyType) {\n var _a;\n return (_a = getIndexInfoOfType(type, keyType)) === null || _a === void 0 ? void 0 : _a.type;\n }\n function getApplicableIndexInfos(type, keyType) {\n return getIndexInfosOfType(type).filter(function (info) { return isApplicableIndexType(keyType, info.keyType); });\n }\n function getApplicableIndexInfo(type, keyType) {\n return findApplicableIndexInfo(getIndexInfosOfType(type), keyType);\n }\n function getApplicableIndexInfoForName(type, name) {\n return getApplicableIndexInfo(type, isLateBoundName(name) ? esSymbolType : getStringLiteralType(ts.unescapeLeadingUnderscores(name)));\n }\n // Return list of type parameters with duplicates removed (duplicate identifier errors are generated in the actual\n // type checking functions).\n function getTypeParametersFromDeclaration(declaration) {\n var result;\n for (var _i = 0, _a = ts.getEffectiveTypeParameterDeclarations(declaration); _i < _a.length; _i++) {\n var node = _a[_i];\n result = ts.appendIfUnique(result, getDeclaredTypeOfTypeParameter(node.symbol));\n }\n return result;\n }\n function symbolsToArray(symbols) {\n var result = [];\n symbols.forEach(function (symbol, id) {\n if (!isReservedMemberName(id)) {\n result.push(symbol);\n }\n });\n return result;\n }\n function isJSDocOptionalParameter(node) {\n return ts.isInJSFile(node) && (\n // node.type should only be a JSDocOptionalType when node is a parameter of a JSDocFunctionType\n node.type && node.type.kind === 311 /* JSDocOptionalType */\n || ts.getJSDocParameterTags(node).some(function (_a) {\n var isBracketed = _a.isBracketed, typeExpression = _a.typeExpression;\n return isBracketed || !!typeExpression && typeExpression.type.kind === 311 /* JSDocOptionalType */;\n }));\n }\n function tryFindAmbientModule(moduleName, withAugmentations) {\n if (ts.isExternalModuleNameRelative(moduleName)) {\n return undefined;\n }\n var symbol = getSymbol(globals, '\"' + moduleName + '\"', 512 /* ValueModule */);\n // merged symbol is module declaration symbol combined with all augmentations\n return symbol && withAugmentations ? getMergedSymbol(symbol) : symbol;\n }\n function isOptionalParameter(node) {\n if (ts.hasQuestionToken(node) || isOptionalJSDocPropertyLikeTag(node) || isJSDocOptionalParameter(node)) {\n return true;\n }\n if (node.initializer) {\n var signature = getSignatureFromDeclaration(node.parent);\n var parameterIndex = node.parent.parameters.indexOf(node);\n ts.Debug.assert(parameterIndex >= 0);\n // Only consider syntactic or instantiated parameters as optional, not `void` parameters as this function is used\n // in grammar checks and checking for `void` too early results in parameter types widening too early\n // and causes some noImplicitAny errors to be lost.\n return parameterIndex >= getMinArgumentCount(signature, 1 /* StrongArityForUntypedJS */ | 2 /* VoidIsNonOptional */);\n }\n var iife = ts.getImmediatelyInvokedFunctionExpression(node.parent);\n if (iife) {\n return !node.type &&\n !node.dotDotDotToken &&\n node.parent.parameters.indexOf(node) >= iife.arguments.length;\n }\n return false;\n }\n function isOptionalPropertyDeclaration(node) {\n return ts.isPropertyDeclaration(node) && node.questionToken;\n }\n function isOptionalJSDocPropertyLikeTag(node) {\n if (!ts.isJSDocPropertyLikeTag(node)) {\n return false;\n }\n var isBracketed = node.isBracketed, typeExpression = node.typeExpression;\n return isBracketed || !!typeExpression && typeExpression.type.kind === 311 /* JSDocOptionalType */;\n }\n function createTypePredicate(kind, parameterName, parameterIndex, type) {\n return { kind: kind, parameterName: parameterName, parameterIndex: parameterIndex, type: type };\n }\n /**\n * Gets the minimum number of type arguments needed to satisfy all non-optional type\n * parameters.\n */\n function getMinTypeArgumentCount(typeParameters) {\n var minTypeArgumentCount = 0;\n if (typeParameters) {\n for (var i = 0; i < typeParameters.length; i++) {\n if (!hasTypeParameterDefault(typeParameters[i])) {\n minTypeArgumentCount = i + 1;\n }\n }\n }\n return minTypeArgumentCount;\n }\n function fillMissingTypeArguments(typeArguments, typeParameters, minTypeArgumentCount, isJavaScriptImplicitAny) {\n var numTypeParameters = ts.length(typeParameters);\n if (!numTypeParameters) {\n return [];\n }\n var numTypeArguments = ts.length(typeArguments);\n if (isJavaScriptImplicitAny || (numTypeArguments >= minTypeArgumentCount && numTypeArguments <= numTypeParameters)) {\n var result = typeArguments ? typeArguments.slice() : [];\n // Map invalid forward references in default types to the error type\n for (var i = numTypeArguments; i < numTypeParameters; i++) {\n result[i] = errorType;\n }\n var baseDefaultType = getDefaultTypeArgumentType(isJavaScriptImplicitAny);\n for (var i = numTypeArguments; i < numTypeParameters; i++) {\n var defaultType = getDefaultFromTypeParameter(typeParameters[i]);\n if (isJavaScriptImplicitAny && defaultType && (isTypeIdenticalTo(defaultType, unknownType) || isTypeIdenticalTo(defaultType, emptyObjectType))) {\n defaultType = anyType;\n }\n result[i] = defaultType ? instantiateType(defaultType, createTypeMapper(typeParameters, result)) : baseDefaultType;\n }\n result.length = typeParameters.length;\n return result;\n }\n return typeArguments && typeArguments.slice();\n }\n function getSignatureFromDeclaration(declaration) {\n var links = getNodeLinks(declaration);\n if (!links.resolvedSignature) {\n var parameters = [];\n var flags = 0 /* None */;\n var minArgumentCount = 0;\n var thisParameter = void 0;\n var hasThisParameter = false;\n var iife = ts.getImmediatelyInvokedFunctionExpression(declaration);\n var isJSConstructSignature = ts.isJSDocConstructSignature(declaration);\n var isUntypedSignatureInJSFile = !iife &&\n ts.isInJSFile(declaration) &&\n ts.isValueSignatureDeclaration(declaration) &&\n !ts.hasJSDocParameterTags(declaration) &&\n !ts.getJSDocType(declaration);\n if (isUntypedSignatureInJSFile) {\n flags |= 32 /* IsUntypedSignatureInJSFile */;\n }\n // If this is a JSDoc construct signature, then skip the first parameter in the\n // parameter list. The first parameter represents the return type of the construct\n // signature.\n for (var i = isJSConstructSignature ? 1 : 0; i < declaration.parameters.length; i++) {\n var param = declaration.parameters[i];\n var paramSymbol = param.symbol;\n var type = ts.isJSDocParameterTag(param) ? (param.typeExpression && param.typeExpression.type) : param.type;\n // Include parameter symbol instead of property symbol in the signature\n if (paramSymbol && !!(paramSymbol.flags & 4 /* Property */) && !ts.isBindingPattern(param.name)) {\n var resolvedSymbol = resolveName(param, paramSymbol.escapedName, 111551 /* Value */, undefined, undefined, /*isUse*/ false);\n paramSymbol = resolvedSymbol;\n }\n if (i === 0 && paramSymbol.escapedName === \"this\" /* This */) {\n hasThisParameter = true;\n thisParameter = param.symbol;\n }\n else {\n parameters.push(paramSymbol);\n }\n if (type && type.kind === 194 /* LiteralType */) {\n flags |= 2 /* HasLiteralTypes */;\n }\n // Record a new minimum argument count if this is not an optional parameter\n var isOptionalParameter_1 = isOptionalJSDocPropertyLikeTag(param) ||\n param.initializer || param.questionToken || ts.isRestParameter(param) ||\n iife && parameters.length > iife.arguments.length && !type ||\n isJSDocOptionalParameter(param);\n if (!isOptionalParameter_1) {\n minArgumentCount = parameters.length;\n }\n }\n // If only one accessor includes a this-type annotation, the other behaves as if it had the same type annotation\n if ((declaration.kind === 170 /* GetAccessor */ || declaration.kind === 171 /* SetAccessor */) &&\n hasBindableName(declaration) &&\n (!hasThisParameter || !thisParameter)) {\n var otherKind = declaration.kind === 170 /* GetAccessor */ ? 171 /* SetAccessor */ : 170 /* GetAccessor */;\n var other = ts.getDeclarationOfKind(getSymbolOfNode(declaration), otherKind);\n if (other) {\n thisParameter = getAnnotatedAccessorThisParameter(other);\n }\n }\n var classType = declaration.kind === 169 /* Constructor */ ?\n getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol))\n : undefined;\n var typeParameters = classType ? classType.localTypeParameters : getTypeParametersFromDeclaration(declaration);\n if (ts.hasRestParameter(declaration) || ts.isInJSFile(declaration) && maybeAddJsSyntheticRestParameter(declaration, parameters)) {\n flags |= 1 /* HasRestParameter */;\n }\n if (ts.isConstructorTypeNode(declaration) && ts.hasSyntacticModifier(declaration, 128 /* Abstract */) ||\n ts.isConstructorDeclaration(declaration) && ts.hasSyntacticModifier(declaration.parent, 128 /* Abstract */)) {\n flags |= 4 /* Abstract */;\n }\n links.resolvedSignature = createSignature(declaration, typeParameters, thisParameter, parameters, \n /*resolvedReturnType*/ undefined, /*resolvedTypePredicate*/ undefined, minArgumentCount, flags);\n }\n return links.resolvedSignature;\n }\n /**\n * A JS function gets a synthetic rest parameter if it references `arguments` AND:\n * 1. It has no parameters but at least one `@param` with a type that starts with `...`\n * OR\n * 2. It has at least one parameter, and the last parameter has a matching `@param` with a type that starts with `...`\n */\n function maybeAddJsSyntheticRestParameter(declaration, parameters) {\n if (ts.isJSDocSignature(declaration) || !containsArgumentsReference(declaration)) {\n return false;\n }\n var lastParam = ts.lastOrUndefined(declaration.parameters);\n var lastParamTags = lastParam ? ts.getJSDocParameterTags(lastParam) : ts.getJSDocTags(declaration).filter(ts.isJSDocParameterTag);\n var lastParamVariadicType = ts.firstDefined(lastParamTags, function (p) {\n return p.typeExpression && ts.isJSDocVariadicType(p.typeExpression.type) ? p.typeExpression.type : undefined;\n });\n var syntheticArgsSymbol = createSymbol(3 /* Variable */, \"args\", 32768 /* RestParameter */);\n syntheticArgsSymbol.type = lastParamVariadicType ? createArrayType(getTypeFromTypeNode(lastParamVariadicType.type)) : anyArrayType;\n if (lastParamVariadicType) {\n // Replace the last parameter with a rest parameter.\n parameters.pop();\n }\n parameters.push(syntheticArgsSymbol);\n return true;\n }\n function getSignatureOfTypeTag(node) {\n // should be attached to a function declaration or expression\n if (!(ts.isInJSFile(node) && ts.isFunctionLikeDeclaration(node)))\n return undefined;\n var typeTag = ts.getJSDocTypeTag(node);\n return (typeTag === null || typeTag === void 0 ? void 0 : typeTag.typeExpression) && getSingleCallSignature(getTypeFromTypeNode(typeTag.typeExpression));\n }\n function getReturnTypeOfTypeTag(node) {\n var signature = getSignatureOfTypeTag(node);\n return signature && getReturnTypeOfSignature(signature);\n }\n function containsArgumentsReference(declaration) {\n var links = getNodeLinks(declaration);\n if (links.containsArgumentsReference === undefined) {\n if (links.flags & 8192 /* CaptureArguments */) {\n links.containsArgumentsReference = true;\n }\n else {\n links.containsArgumentsReference = traverse(declaration.body);\n }\n }\n return links.containsArgumentsReference;\n function traverse(node) {\n if (!node)\n return false;\n switch (node.kind) {\n case 79 /* Identifier */:\n return node.escapedText === argumentsSymbol.escapedName && getResolvedSymbol(node) === argumentsSymbol;\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return node.name.kind === 160 /* ComputedPropertyName */\n && traverse(node.name);\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return traverse(node.expression);\n default:\n return !ts.nodeStartsNewLexicalEnvironment(node) && !ts.isPartOfTypeNode(node) && !!ts.forEachChild(node, traverse);\n }\n }\n }\n function getSignaturesOfSymbol(symbol) {\n if (!symbol || !symbol.declarations)\n return ts.emptyArray;\n var result = [];\n for (var i = 0; i < symbol.declarations.length; i++) {\n var decl = symbol.declarations[i];\n if (!ts.isFunctionLike(decl))\n continue;\n // Don't include signature if node is the implementation of an overloaded function. A node is considered\n // an implementation node if it has a body and the previous node is of the same kind and immediately\n // precedes the implementation node (i.e. has the same parent and ends where the implementation starts).\n if (i > 0 && decl.body) {\n var previous = symbol.declarations[i - 1];\n if (decl.parent === previous.parent && decl.kind === previous.kind && decl.pos === previous.end) {\n continue;\n }\n }\n result.push(getSignatureFromDeclaration(decl));\n }\n return result;\n }\n function resolveExternalModuleTypeByLiteral(name) {\n var moduleSym = resolveExternalModuleName(name, name);\n if (moduleSym) {\n var resolvedModuleSymbol = resolveExternalModuleSymbol(moduleSym);\n if (resolvedModuleSymbol) {\n return getTypeOfSymbol(resolvedModuleSymbol);\n }\n }\n return anyType;\n }\n function getThisTypeOfSignature(signature) {\n if (signature.thisParameter) {\n return getTypeOfSymbol(signature.thisParameter);\n }\n }\n function getTypePredicateOfSignature(signature) {\n if (!signature.resolvedTypePredicate) {\n if (signature.target) {\n var targetTypePredicate = getTypePredicateOfSignature(signature.target);\n signature.resolvedTypePredicate = targetTypePredicate ? instantiateTypePredicate(targetTypePredicate, signature.mapper) : noTypePredicate;\n }\n else if (signature.compositeSignatures) {\n signature.resolvedTypePredicate = getUnionOrIntersectionTypePredicate(signature.compositeSignatures, signature.compositeKind) || noTypePredicate;\n }\n else {\n var type = signature.declaration && ts.getEffectiveReturnTypeNode(signature.declaration);\n var jsdocPredicate = void 0;\n if (!type && ts.isInJSFile(signature.declaration)) {\n var jsdocSignature = getSignatureOfTypeTag(signature.declaration);\n if (jsdocSignature && signature !== jsdocSignature) {\n jsdocPredicate = getTypePredicateOfSignature(jsdocSignature);\n }\n }\n signature.resolvedTypePredicate = type && ts.isTypePredicateNode(type) ?\n createTypePredicateFromTypePredicateNode(type, signature) :\n jsdocPredicate || noTypePredicate;\n }\n ts.Debug.assert(!!signature.resolvedTypePredicate);\n }\n return signature.resolvedTypePredicate === noTypePredicate ? undefined : signature.resolvedTypePredicate;\n }\n function createTypePredicateFromTypePredicateNode(node, signature) {\n var parameterName = node.parameterName;\n var type = node.type && getTypeFromTypeNode(node.type);\n return parameterName.kind === 190 /* ThisType */ ?\n createTypePredicate(node.assertsModifier ? 2 /* AssertsThis */ : 0 /* This */, /*parameterName*/ undefined, /*parameterIndex*/ undefined, type) :\n createTypePredicate(node.assertsModifier ? 3 /* AssertsIdentifier */ : 1 /* Identifier */, parameterName.escapedText, ts.findIndex(signature.parameters, function (p) { return p.escapedName === parameterName.escapedText; }), type);\n }\n function getUnionOrIntersectionType(types, kind, unionReduction) {\n return kind !== 2097152 /* Intersection */ ? getUnionType(types, unionReduction) : getIntersectionType(types);\n }\n function getReturnTypeOfSignature(signature) {\n if (!signature.resolvedReturnType) {\n if (!pushTypeResolution(signature, 3 /* ResolvedReturnType */)) {\n return errorType;\n }\n var type = signature.target ? instantiateType(getReturnTypeOfSignature(signature.target), signature.mapper) :\n signature.compositeSignatures ? instantiateType(getUnionOrIntersectionType(ts.map(signature.compositeSignatures, getReturnTypeOfSignature), signature.compositeKind, 2 /* Subtype */), signature.mapper) :\n getReturnTypeFromAnnotation(signature.declaration) ||\n (ts.nodeIsMissing(signature.declaration.body) ? anyType : getReturnTypeFromBody(signature.declaration));\n if (signature.flags & 8 /* IsInnerCallChain */) {\n type = addOptionalTypeMarker(type);\n }\n else if (signature.flags & 16 /* IsOuterCallChain */) {\n type = getOptionalType(type);\n }\n if (!popTypeResolution()) {\n if (signature.declaration) {\n var typeNode = ts.getEffectiveReturnTypeNode(signature.declaration);\n if (typeNode) {\n error(typeNode, ts.Diagnostics.Return_type_annotation_circularly_references_itself);\n }\n else if (noImplicitAny) {\n var declaration = signature.declaration;\n var name = ts.getNameOfDeclaration(declaration);\n if (name) {\n error(name, ts.Diagnostics._0_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions, ts.declarationNameToString(name));\n }\n else {\n error(declaration, ts.Diagnostics.Function_implicitly_has_return_type_any_because_it_does_not_have_a_return_type_annotation_and_is_referenced_directly_or_indirectly_in_one_of_its_return_expressions);\n }\n }\n }\n type = anyType;\n }\n signature.resolvedReturnType = type;\n }\n return signature.resolvedReturnType;\n }\n function getReturnTypeFromAnnotation(declaration) {\n if (declaration.kind === 169 /* Constructor */) {\n return getDeclaredTypeOfClassOrInterface(getMergedSymbol(declaration.parent.symbol));\n }\n if (ts.isJSDocConstructSignature(declaration)) {\n return getTypeFromTypeNode(declaration.parameters[0].type); // TODO: GH#18217\n }\n var typeNode = ts.getEffectiveReturnTypeNode(declaration);\n if (typeNode) {\n return getTypeFromTypeNode(typeNode);\n }\n if (declaration.kind === 170 /* GetAccessor */ && hasBindableName(declaration)) {\n var jsDocType = ts.isInJSFile(declaration) && getTypeForDeclarationFromJSDocComment(declaration);\n if (jsDocType) {\n return jsDocType;\n }\n var setter = ts.getDeclarationOfKind(getSymbolOfNode(declaration), 171 /* SetAccessor */);\n var setterType = getAnnotatedAccessorType(setter);\n if (setterType) {\n return setterType;\n }\n }\n return getReturnTypeOfTypeTag(declaration);\n }\n function isResolvingReturnTypeOfSignature(signature) {\n return !signature.resolvedReturnType && findResolutionCycleStartIndex(signature, 3 /* ResolvedReturnType */) >= 0;\n }\n function getRestTypeOfSignature(signature) {\n return tryGetRestTypeOfSignature(signature) || anyType;\n }\n function tryGetRestTypeOfSignature(signature) {\n if (signatureHasRestParameter(signature)) {\n var sigRestType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n var restType = isTupleType(sigRestType) ? getRestTypeOfTupleType(sigRestType) : sigRestType;\n return restType && getIndexTypeOfType(restType, numberType);\n }\n return undefined;\n }\n function getSignatureInstantiation(signature, typeArguments, isJavascript, inferredTypeParameters) {\n var instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, fillMissingTypeArguments(typeArguments, signature.typeParameters, getMinTypeArgumentCount(signature.typeParameters), isJavascript));\n if (inferredTypeParameters) {\n var returnSignature = getSingleCallOrConstructSignature(getReturnTypeOfSignature(instantiatedSignature));\n if (returnSignature) {\n var newReturnSignature = cloneSignature(returnSignature);\n newReturnSignature.typeParameters = inferredTypeParameters;\n var newInstantiatedSignature = cloneSignature(instantiatedSignature);\n newInstantiatedSignature.resolvedReturnType = getOrCreateTypeFromSignature(newReturnSignature);\n return newInstantiatedSignature;\n }\n }\n return instantiatedSignature;\n }\n function getSignatureInstantiationWithoutFillingInTypeArguments(signature, typeArguments) {\n var instantiations = signature.instantiations || (signature.instantiations = new ts.Map());\n var id = getTypeListId(typeArguments);\n var instantiation = instantiations.get(id);\n if (!instantiation) {\n instantiations.set(id, instantiation = createSignatureInstantiation(signature, typeArguments));\n }\n return instantiation;\n }\n function createSignatureInstantiation(signature, typeArguments) {\n return instantiateSignature(signature, createSignatureTypeMapper(signature, typeArguments), /*eraseTypeParameters*/ true);\n }\n function createSignatureTypeMapper(signature, typeArguments) {\n return createTypeMapper(signature.typeParameters, typeArguments);\n }\n function getErasedSignature(signature) {\n return signature.typeParameters ?\n signature.erasedSignatureCache || (signature.erasedSignatureCache = createErasedSignature(signature)) :\n signature;\n }\n function createErasedSignature(signature) {\n // Create an instantiation of the signature where all type arguments are the any type.\n return instantiateSignature(signature, createTypeEraser(signature.typeParameters), /*eraseTypeParameters*/ true);\n }\n function getCanonicalSignature(signature) {\n return signature.typeParameters ?\n signature.canonicalSignatureCache || (signature.canonicalSignatureCache = createCanonicalSignature(signature)) :\n signature;\n }\n function createCanonicalSignature(signature) {\n // Create an instantiation of the signature where each unconstrained type parameter is replaced with\n // its original. When a generic class or interface is instantiated, each generic method in the class or\n // interface is instantiated with a fresh set of cloned type parameters (which we need to handle scenarios\n // where different generations of the same type parameter are in scope). This leads to a lot of new type\n // identities, and potentially a lot of work comparing those identities, so here we create an instantiation\n // that uses the original type identities for all unconstrained type parameters.\n return getSignatureInstantiation(signature, ts.map(signature.typeParameters, function (tp) { return tp.target && !getConstraintOfTypeParameter(tp.target) ? tp.target : tp; }), ts.isInJSFile(signature.declaration));\n }\n function getBaseSignature(signature) {\n var typeParameters = signature.typeParameters;\n if (typeParameters) {\n if (signature.baseSignatureCache) {\n return signature.baseSignatureCache;\n }\n var typeEraser = createTypeEraser(typeParameters);\n var baseConstraintMapper_1 = createTypeMapper(typeParameters, ts.map(typeParameters, function (tp) { return getConstraintOfTypeParameter(tp) || unknownType; }));\n var baseConstraints = ts.map(typeParameters, function (tp) { return instantiateType(tp, baseConstraintMapper_1) || unknownType; });\n // Run N type params thru the immediate constraint mapper up to N times\n // This way any noncircular interdependent type parameters are definitely resolved to their external dependencies\n for (var i = 0; i < typeParameters.length - 1; i++) {\n baseConstraints = instantiateTypes(baseConstraints, baseConstraintMapper_1);\n }\n // and then apply a type eraser to remove any remaining circularly dependent type parameters\n baseConstraints = instantiateTypes(baseConstraints, typeEraser);\n return signature.baseSignatureCache = instantiateSignature(signature, createTypeMapper(typeParameters, baseConstraints), /*eraseTypeParameters*/ true);\n }\n return signature;\n }\n function getOrCreateTypeFromSignature(signature) {\n // There are two ways to declare a construct signature, one is by declaring a class constructor\n // using the constructor keyword, and the other is declaring a bare construct signature in an\n // object type literal or interface (using the new keyword). Each way of declaring a constructor\n // will result in a different declaration kind.\n if (!signature.isolatedSignatureType) {\n var kind = signature.declaration ? signature.declaration.kind : 0 /* Unknown */;\n var isConstructor = kind === 169 /* Constructor */ || kind === 173 /* ConstructSignature */ || kind === 178 /* ConstructorType */;\n var type = createObjectType(16 /* Anonymous */);\n type.members = emptySymbols;\n type.properties = ts.emptyArray;\n type.callSignatures = !isConstructor ? [signature] : ts.emptyArray;\n type.constructSignatures = isConstructor ? [signature] : ts.emptyArray;\n type.indexInfos = ts.emptyArray;\n signature.isolatedSignatureType = type;\n }\n return signature.isolatedSignatureType;\n }\n function getIndexSymbol(symbol) {\n return symbol.members ? getIndexSymbolFromSymbolTable(symbol.members) : undefined;\n }\n function getIndexSymbolFromSymbolTable(symbolTable) {\n return symbolTable.get(\"__index\" /* Index */);\n }\n function createIndexInfo(keyType, type, isReadonly, declaration) {\n return { keyType: keyType, type: type, isReadonly: isReadonly, declaration: declaration };\n }\n function getIndexInfosOfSymbol(symbol) {\n var indexSymbol = getIndexSymbol(symbol);\n return indexSymbol ? getIndexInfosOfIndexSymbol(indexSymbol) : ts.emptyArray;\n }\n function getIndexInfosOfIndexSymbol(indexSymbol) {\n if (indexSymbol.declarations) {\n var indexInfos_2 = [];\n var _loop_14 = function (declaration) {\n if (declaration.parameters.length === 1) {\n var parameter = declaration.parameters[0];\n if (parameter.type) {\n forEachType(getTypeFromTypeNode(parameter.type), function (keyType) {\n if (isValidIndexKeyType(keyType) && !findIndexInfo(indexInfos_2, keyType)) {\n indexInfos_2.push(createIndexInfo(keyType, declaration.type ? getTypeFromTypeNode(declaration.type) : anyType, ts.hasEffectiveModifier(declaration, 64 /* Readonly */), declaration));\n }\n });\n }\n }\n };\n for (var _i = 0, _a = indexSymbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n _loop_14(declaration);\n }\n return indexInfos_2;\n }\n return ts.emptyArray;\n }\n function isValidIndexKeyType(type) {\n return !!(type.flags & (4 /* String */ | 8 /* Number */ | 4096 /* ESSymbol */)) || isPatternLiteralType(type) ||\n !!(type.flags & 2097152 /* Intersection */) && !isGenericIndexType(type) && !isGenericObjectType(type) && ts.some(type.types, isValidIndexKeyType);\n }\n function getConstraintDeclaration(type) {\n return ts.mapDefined(ts.filter(type.symbol && type.symbol.declarations, ts.isTypeParameterDeclaration), ts.getEffectiveConstraintOfTypeParameter)[0];\n }\n function getInferredTypeParameterConstraint(typeParameter) {\n var _a;\n var inferences;\n if ((_a = typeParameter.symbol) === null || _a === void 0 ? void 0 : _a.declarations) {\n for (var _i = 0, _b = typeParameter.symbol.declarations; _i < _b.length; _i++) {\n var declaration = _b[_i];\n if (declaration.parent.kind === 188 /* InferType */) {\n // When an 'infer T' declaration is immediately contained in a type reference node\n // (such as 'Foo'), T's constraint is inferred from the constraint of the\n // corresponding type parameter in 'Foo'. When multiple 'infer T' declarations are\n // present, we form an intersection of the inferred constraint types.\n var _c = ts.walkUpParenthesizedTypesAndGetParentAndChild(declaration.parent.parent), _d = _c[0], childTypeParameter = _d === void 0 ? declaration.parent : _d, grandParent = _c[1];\n if (grandParent.kind === 176 /* TypeReference */) {\n var typeReference = grandParent;\n var typeParameters = getTypeParametersForTypeReference(typeReference);\n if (typeParameters) {\n var index = typeReference.typeArguments.indexOf(childTypeParameter);\n if (index < typeParameters.length) {\n var declaredConstraint = getConstraintOfTypeParameter(typeParameters[index]);\n if (declaredConstraint) {\n // Type parameter constraints can reference other type parameters so\n // constraints need to be instantiated. If instantiation produces the\n // type parameter itself, we discard that inference. For example, in\n // type Foo = [T, U];\n // type Bar = T extends Foo ? Foo : T;\n // the instantiated constraint for U is X, so we discard that inference.\n var mapper = createTypeMapper(typeParameters, getEffectiveTypeArguments(typeReference, typeParameters));\n var constraint = instantiateType(declaredConstraint, mapper);\n if (constraint !== typeParameter) {\n inferences = ts.append(inferences, constraint);\n }\n }\n }\n }\n }\n // When an 'infer T' declaration is immediately contained in a rest parameter declaration, a rest type\n // or a named rest tuple element, we infer an 'unknown[]' constraint.\n else if (grandParent.kind === 162 /* Parameter */ && grandParent.dotDotDotToken ||\n grandParent.kind === 184 /* RestType */ ||\n grandParent.kind === 195 /* NamedTupleMember */ && grandParent.dotDotDotToken) {\n inferences = ts.append(inferences, createArrayType(unknownType));\n }\n // When an 'infer T' declaration is immediately contained in a string template type, we infer a 'string'\n // constraint.\n else if (grandParent.kind === 197 /* TemplateLiteralTypeSpan */) {\n inferences = ts.append(inferences, stringType);\n }\n // When an 'infer T' declaration is in the constraint position of a mapped type, we infer a 'keyof any'\n // constraint.\n else if (grandParent.kind === 161 /* TypeParameter */ && grandParent.parent.kind === 193 /* MappedType */) {\n inferences = ts.append(inferences, keyofConstraintType);\n }\n // When an 'infer T' declaration is the template of a mapped type, and that mapped type is the extends\n // clause of a conditional whose check type is also a mapped type, give it a constraint equal to the template\n // of the check type's mapped type\n else if (grandParent.kind === 193 /* MappedType */ && grandParent.type &&\n ts.skipParentheses(grandParent.type) === declaration.parent && grandParent.parent.kind === 187 /* ConditionalType */ &&\n grandParent.parent.extendsType === grandParent && grandParent.parent.checkType.kind === 193 /* MappedType */ &&\n grandParent.parent.checkType.type) {\n var checkMappedType_1 = grandParent.parent.checkType;\n var nodeType = getTypeFromTypeNode(checkMappedType_1.type);\n inferences = ts.append(inferences, instantiateType(nodeType, makeUnaryTypeMapper(getDeclaredTypeOfTypeParameter(getSymbolOfNode(checkMappedType_1.typeParameter)), checkMappedType_1.typeParameter.constraint ? getTypeFromTypeNode(checkMappedType_1.typeParameter.constraint) : keyofConstraintType)));\n }\n }\n }\n }\n return inferences && getIntersectionType(inferences);\n }\n /** This is a worker function. Use getConstraintOfTypeParameter which guards against circular constraints. */\n function getConstraintFromTypeParameter(typeParameter) {\n if (!typeParameter.constraint) {\n if (typeParameter.target) {\n var targetConstraint = getConstraintOfTypeParameter(typeParameter.target);\n typeParameter.constraint = targetConstraint ? instantiateType(targetConstraint, typeParameter.mapper) : noConstraintType;\n }\n else {\n var constraintDeclaration = getConstraintDeclaration(typeParameter);\n if (!constraintDeclaration) {\n typeParameter.constraint = getInferredTypeParameterConstraint(typeParameter) || noConstraintType;\n }\n else {\n var type = getTypeFromTypeNode(constraintDeclaration);\n if (type.flags & 1 /* Any */ && type !== errorType) { // Allow errorType to propegate to keep downstream errors suppressed\n // use keyofConstraintType as the base constraint for mapped type key constraints (unknown isn;t assignable to that, but `any` was),\n // use unknown otherwise\n type = constraintDeclaration.parent.parent.kind === 193 /* MappedType */ ? keyofConstraintType : unknownType;\n }\n typeParameter.constraint = type;\n }\n }\n }\n return typeParameter.constraint === noConstraintType ? undefined : typeParameter.constraint;\n }\n function getParentSymbolOfTypeParameter(typeParameter) {\n var tp = ts.getDeclarationOfKind(typeParameter.symbol, 161 /* TypeParameter */);\n var host = ts.isJSDocTemplateTag(tp.parent) ? ts.getHostSignatureFromJSDoc(tp.parent) : tp.parent;\n return host && getSymbolOfNode(host);\n }\n function getTypeListId(types) {\n var result = \"\";\n if (types) {\n var length_4 = types.length;\n var i = 0;\n while (i < length_4) {\n var startId = types[i].id;\n var count = 1;\n while (i + count < length_4 && types[i + count].id === startId + count) {\n count++;\n }\n if (result.length) {\n result += \",\";\n }\n result += startId;\n if (count > 1) {\n result += \":\" + count;\n }\n i += count;\n }\n }\n return result;\n }\n function getAliasId(aliasSymbol, aliasTypeArguments) {\n return aliasSymbol ? \"@\" + getSymbolId(aliasSymbol) + (aliasTypeArguments ? \":\" + getTypeListId(aliasTypeArguments) : \"\") : \"\";\n }\n // This function is used to propagate certain flags when creating new object type references and union types.\n // It is only necessary to do so if a constituent type might be the undefined type, the null type, the type\n // of an object literal or the anyFunctionType. This is because there are operations in the type checker\n // that care about the presence of such types at arbitrary depth in a containing type.\n function getPropagatingFlagsOfTypes(types, excludeKinds) {\n var result = 0;\n for (var _i = 0, types_8 = types; _i < types_8.length; _i++) {\n var type = types_8[_i];\n if (!(type.flags & excludeKinds)) {\n result |= ts.getObjectFlags(type);\n }\n }\n return result & 917504 /* PropagatingFlags */;\n }\n function createTypeReference(target, typeArguments) {\n var id = getTypeListId(typeArguments);\n var type = target.instantiations.get(id);\n if (!type) {\n type = createObjectType(4 /* Reference */, target.symbol);\n target.instantiations.set(id, type);\n type.objectFlags |= typeArguments ? getPropagatingFlagsOfTypes(typeArguments, /*excludeKinds*/ 0) : 0;\n type.target = target;\n type.resolvedTypeArguments = typeArguments;\n }\n return type;\n }\n function cloneTypeReference(source) {\n var type = createType(source.flags);\n type.symbol = source.symbol;\n type.objectFlags = source.objectFlags;\n type.target = source.target;\n type.resolvedTypeArguments = source.resolvedTypeArguments;\n return type;\n }\n function createDeferredTypeReference(target, node, mapper, aliasSymbol, aliasTypeArguments) {\n if (!aliasSymbol) {\n aliasSymbol = getAliasSymbolForTypeNode(node);\n var localAliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);\n aliasTypeArguments = mapper ? instantiateTypes(localAliasTypeArguments, mapper) : localAliasTypeArguments;\n }\n var type = createObjectType(4 /* Reference */, target.symbol);\n type.target = target;\n type.node = node;\n type.mapper = mapper;\n type.aliasSymbol = aliasSymbol;\n type.aliasTypeArguments = aliasTypeArguments;\n return type;\n }\n function getTypeArguments(type) {\n var _a, _b;\n if (!type.resolvedTypeArguments) {\n if (!pushTypeResolution(type, 6 /* ResolvedTypeArguments */)) {\n return ((_a = type.target.localTypeParameters) === null || _a === void 0 ? void 0 : _a.map(function () { return errorType; })) || ts.emptyArray;\n }\n var node = type.node;\n var typeArguments = !node ? ts.emptyArray :\n node.kind === 176 /* TypeReference */ ? ts.concatenate(type.target.outerTypeParameters, getEffectiveTypeArguments(node, type.target.localTypeParameters)) :\n node.kind === 181 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] :\n ts.map(node.elements, getTypeFromTypeNode);\n if (popTypeResolution()) {\n type.resolvedTypeArguments = type.mapper ? instantiateTypes(typeArguments, type.mapper) : typeArguments;\n }\n else {\n type.resolvedTypeArguments = ((_b = type.target.localTypeParameters) === null || _b === void 0 ? void 0 : _b.map(function () { return errorType; })) || ts.emptyArray;\n error(type.node || currentNode, type.target.symbol ? ts.Diagnostics.Type_arguments_for_0_circularly_reference_themselves : ts.Diagnostics.Tuple_type_arguments_circularly_reference_themselves, type.target.symbol && symbolToString(type.target.symbol));\n }\n }\n return type.resolvedTypeArguments;\n }\n function getTypeReferenceArity(type) {\n return ts.length(type.target.typeParameters);\n }\n /**\n * Get type from type-reference that reference to class or interface\n */\n function getTypeFromClassOrInterfaceReference(node, symbol) {\n var type = getDeclaredTypeOfSymbol(getMergedSymbol(symbol));\n var typeParameters = type.localTypeParameters;\n if (typeParameters) {\n var numTypeArguments = ts.length(node.typeArguments);\n var minTypeArgumentCount = getMinTypeArgumentCount(typeParameters);\n var isJs = ts.isInJSFile(node);\n var isJsImplicitAny = !noImplicitAny && isJs;\n if (!isJsImplicitAny && (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length)) {\n var missingAugmentsTag = isJs && ts.isExpressionWithTypeArguments(node) && !ts.isJSDocAugmentsTag(node.parent);\n var diag = minTypeArgumentCount === typeParameters.length ?\n missingAugmentsTag ?\n ts.Diagnostics.Expected_0_type_arguments_provide_these_with_an_extends_tag :\n ts.Diagnostics.Generic_type_0_requires_1_type_argument_s :\n missingAugmentsTag ?\n ts.Diagnostics.Expected_0_1_type_arguments_provide_these_with_an_extends_tag :\n ts.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments;\n var typeStr = typeToString(type, /*enclosingDeclaration*/ undefined, 2 /* WriteArrayAsGenericType */);\n error(node, diag, typeStr, minTypeArgumentCount, typeParameters.length);\n if (!isJs) {\n // TODO: Adopt same permissive behavior in TS as in JS to reduce follow-on editing experience failures (requires editing fillMissingTypeArguments)\n return errorType;\n }\n }\n if (node.kind === 176 /* TypeReference */ && isDeferredTypeReferenceNode(node, ts.length(node.typeArguments) !== typeParameters.length)) {\n return createDeferredTypeReference(type, node, /*mapper*/ undefined);\n }\n // In a type reference, the outer type parameters of the referenced class or interface are automatically\n // supplied as type arguments and the type reference only specifies arguments for the local type parameters\n // of the class or interface.\n var typeArguments = ts.concatenate(type.outerTypeParameters, fillMissingTypeArguments(typeArgumentsFromTypeReferenceNode(node), typeParameters, minTypeArgumentCount, isJs));\n return createTypeReference(type, typeArguments);\n }\n return checkNoTypeArguments(node, symbol) ? type : errorType;\n }\n function getTypeAliasInstantiation(symbol, typeArguments, aliasSymbol, aliasTypeArguments) {\n var type = getDeclaredTypeOfSymbol(symbol);\n if (type === intrinsicMarkerType && intrinsicTypeKinds.has(symbol.escapedName) && typeArguments && typeArguments.length === 1) {\n return getStringMappingType(symbol, typeArguments[0]);\n }\n var links = getSymbolLinks(symbol);\n var typeParameters = links.typeParameters;\n var id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);\n var instantiation = links.instantiations.get(id);\n if (!instantiation) {\n links.instantiations.set(id, instantiation = instantiateTypeWithAlias(type, createTypeMapper(typeParameters, fillMissingTypeArguments(typeArguments, typeParameters, getMinTypeArgumentCount(typeParameters), ts.isInJSFile(symbol.valueDeclaration))), aliasSymbol, aliasTypeArguments));\n }\n return instantiation;\n }\n /**\n * Get type from reference to type alias. When a type alias is generic, the declared type of the type alias may include\n * references to the type parameters of the alias. We replace those with the actual type arguments by instantiating the\n * declared type. Instantiations are cached using the type identities of the type arguments as the key.\n */\n function getTypeFromTypeAliasReference(node, symbol) {\n var type = getDeclaredTypeOfSymbol(symbol);\n var typeParameters = getSymbolLinks(symbol).typeParameters;\n if (typeParameters) {\n var numTypeArguments = ts.length(node.typeArguments);\n var minTypeArgumentCount = getMinTypeArgumentCount(typeParameters);\n if (numTypeArguments < minTypeArgumentCount || numTypeArguments > typeParameters.length) {\n error(node, minTypeArgumentCount === typeParameters.length ?\n ts.Diagnostics.Generic_type_0_requires_1_type_argument_s :\n ts.Diagnostics.Generic_type_0_requires_between_1_and_2_type_arguments, symbolToString(symbol), minTypeArgumentCount, typeParameters.length);\n return errorType;\n }\n // We refrain from associating a local type alias with an instantiation of a top-level type alias\n // because the local alias may end up being referenced in an inferred return type where it is not\n // accessible--which in turn may lead to a large structural expansion of the type when generating\n // a .d.ts file. See #43622 for an example.\n var aliasSymbol = getAliasSymbolForTypeNode(node);\n var newAliasSymbol = aliasSymbol && (isLocalTypeAlias(symbol) || !isLocalTypeAlias(aliasSymbol)) ? aliasSymbol : undefined;\n return getTypeAliasInstantiation(symbol, typeArgumentsFromTypeReferenceNode(node), newAliasSymbol, getTypeArgumentsForAliasSymbol(newAliasSymbol));\n }\n return checkNoTypeArguments(node, symbol) ? type : errorType;\n }\n function isLocalTypeAlias(symbol) {\n var _a;\n var declaration = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isTypeAlias);\n return !!(declaration && ts.getContainingFunction(declaration));\n }\n function getTypeReferenceName(node) {\n switch (node.kind) {\n case 176 /* TypeReference */:\n return node.typeName;\n case 226 /* ExpressionWithTypeArguments */:\n // We only support expressions that are simple qualified names. For other\n // expressions this produces undefined.\n var expr = node.expression;\n if (ts.isEntityNameExpression(expr)) {\n return expr;\n }\n // fall through;\n }\n return undefined;\n }\n function resolveTypeReferenceName(typeReferenceName, meaning, ignoreErrors) {\n if (!typeReferenceName) {\n return unknownSymbol;\n }\n return resolveEntityName(typeReferenceName, meaning, ignoreErrors) || unknownSymbol;\n }\n function getTypeReferenceType(node, symbol) {\n if (symbol === unknownSymbol) {\n return errorType;\n }\n symbol = getExpandoSymbol(symbol) || symbol;\n if (symbol.flags & (32 /* Class */ | 64 /* Interface */)) {\n return getTypeFromClassOrInterfaceReference(node, symbol);\n }\n if (symbol.flags & 524288 /* TypeAlias */) {\n return getTypeFromTypeAliasReference(node, symbol);\n }\n // Get type from reference to named type that cannot be generic (enum or type parameter)\n var res = tryGetDeclaredTypeOfSymbol(symbol);\n if (res) {\n return checkNoTypeArguments(node, symbol) ? getRegularTypeOfLiteralType(res) : errorType;\n }\n if (symbol.flags & 111551 /* Value */ && isJSDocTypeReference(node)) {\n var jsdocType = getTypeFromJSDocValueReference(node, symbol);\n if (jsdocType) {\n return jsdocType;\n }\n else {\n // Resolve the type reference as a Type for the purpose of reporting errors.\n resolveTypeReferenceName(getTypeReferenceName(node), 788968 /* Type */);\n return getTypeOfSymbol(symbol);\n }\n }\n return errorType;\n }\n /**\n * A JSdoc TypeReference may be to a value, but resolve it as a type anyway.\n * Example: import('./b').ConstructorFunction\n */\n function getTypeFromJSDocValueReference(node, symbol) {\n var links = getNodeLinks(node);\n if (!links.resolvedJSDocType) {\n var valueType = getTypeOfSymbol(symbol);\n var typeType = valueType;\n if (symbol.valueDeclaration) {\n var isImportTypeWithQualifier = node.kind === 198 /* ImportType */ && node.qualifier;\n // valueType might not have a symbol, eg, {import('./b').STRING_LITERAL}\n if (valueType.symbol && valueType.symbol !== symbol && isImportTypeWithQualifier) {\n typeType = getTypeReferenceType(node, valueType.symbol);\n }\n }\n links.resolvedJSDocType = typeType;\n }\n return links.resolvedJSDocType;\n }\n function getSubstitutionType(baseType, substitute) {\n if (substitute.flags & 3 /* AnyOrUnknown */ || substitute === baseType) {\n return baseType;\n }\n var id = getTypeId(baseType) + \">\" + getTypeId(substitute);\n var cached = substitutionTypes.get(id);\n if (cached) {\n return cached;\n }\n var result = createType(33554432 /* Substitution */);\n result.baseType = baseType;\n result.substitute = substitute;\n substitutionTypes.set(id, result);\n return result;\n }\n function isUnaryTupleTypeNode(node) {\n return node.kind === 182 /* TupleType */ && node.elements.length === 1;\n }\n function getImpliedConstraint(type, checkNode, extendsNode) {\n return isUnaryTupleTypeNode(checkNode) && isUnaryTupleTypeNode(extendsNode) ? getImpliedConstraint(type, checkNode.elements[0], extendsNode.elements[0]) :\n getActualTypeVariable(getTypeFromTypeNode(checkNode)) === type ? getTypeFromTypeNode(extendsNode) :\n undefined;\n }\n function getConditionalFlowTypeOfType(type, node) {\n var constraints;\n var covariant = true;\n while (node && !ts.isStatement(node) && node.kind !== 315 /* JSDocComment */) {\n var parent = node.parent;\n // only consider variance flipped by parameter locations - `keyof` types would usually be considered variance inverting, but\n // often get used in indexed accesses where they behave sortof invariantly, but our checking is lax\n if (parent.kind === 162 /* Parameter */) {\n covariant = !covariant;\n }\n // Always substitute on type parameters, regardless of variance, since even\n // in contravariant positions, they may rely on substituted constraints to be valid\n if ((covariant || type.flags & 8650752 /* TypeVariable */) && parent.kind === 187 /* ConditionalType */ && node === parent.trueType) {\n var constraint = getImpliedConstraint(type, parent.checkType, parent.extendsType);\n if (constraint) {\n constraints = ts.append(constraints, constraint);\n }\n }\n node = parent;\n }\n return constraints ? getSubstitutionType(type, getIntersectionType(ts.append(constraints, type))) : type;\n }\n function isJSDocTypeReference(node) {\n return !!(node.flags & 4194304 /* JSDoc */) && (node.kind === 176 /* TypeReference */ || node.kind === 198 /* ImportType */);\n }\n function checkNoTypeArguments(node, symbol) {\n if (node.typeArguments) {\n error(node, ts.Diagnostics.Type_0_is_not_generic, symbol ? symbolToString(symbol) : node.typeName ? ts.declarationNameToString(node.typeName) : anon);\n return false;\n }\n return true;\n }\n function getIntendedTypeFromJSDocTypeReference(node) {\n if (ts.isIdentifier(node.typeName)) {\n var typeArgs = node.typeArguments;\n switch (node.typeName.escapedText) {\n case \"String\":\n checkNoTypeArguments(node);\n return stringType;\n case \"Number\":\n checkNoTypeArguments(node);\n return numberType;\n case \"Boolean\":\n checkNoTypeArguments(node);\n return booleanType;\n case \"Void\":\n checkNoTypeArguments(node);\n return voidType;\n case \"Undefined\":\n checkNoTypeArguments(node);\n return undefinedType;\n case \"Null\":\n checkNoTypeArguments(node);\n return nullType;\n case \"Function\":\n case \"function\":\n checkNoTypeArguments(node);\n return globalFunctionType;\n case \"array\":\n return (!typeArgs || !typeArgs.length) && !noImplicitAny ? anyArrayType : undefined;\n case \"promise\":\n return (!typeArgs || !typeArgs.length) && !noImplicitAny ? createPromiseType(anyType) : undefined;\n case \"Object\":\n if (typeArgs && typeArgs.length === 2) {\n if (ts.isJSDocIndexSignature(node)) {\n var indexed = getTypeFromTypeNode(typeArgs[0]);\n var target = getTypeFromTypeNode(typeArgs[1]);\n var indexInfo = indexed === stringType || indexed === numberType ? [createIndexInfo(indexed, target, /*isReadonly*/ false)] : ts.emptyArray;\n return createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, indexInfo);\n }\n return anyType;\n }\n checkNoTypeArguments(node);\n return !noImplicitAny ? anyType : undefined;\n }\n }\n }\n function getTypeFromJSDocNullableTypeNode(node) {\n var type = getTypeFromTypeNode(node.type);\n return strictNullChecks ? getNullableType(type, 65536 /* Null */) : type;\n }\n function getTypeFromTypeReference(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n // handle LS queries on the `const` in `x as const` by resolving to the type of `x`\n if (ts.isConstTypeReference(node) && ts.isAssertionExpression(node.parent)) {\n links.resolvedSymbol = unknownSymbol;\n return links.resolvedType = checkExpressionCached(node.parent.expression);\n }\n var symbol = void 0;\n var type = void 0;\n var meaning = 788968 /* Type */;\n if (isJSDocTypeReference(node)) {\n type = getIntendedTypeFromJSDocTypeReference(node);\n if (!type) {\n symbol = resolveTypeReferenceName(getTypeReferenceName(node), meaning, /*ignoreErrors*/ true);\n if (symbol === unknownSymbol) {\n symbol = resolveTypeReferenceName(getTypeReferenceName(node), meaning | 111551 /* Value */);\n }\n else {\n resolveTypeReferenceName(getTypeReferenceName(node), meaning); // Resolve again to mark errors, if any\n }\n type = getTypeReferenceType(node, symbol);\n }\n }\n if (!type) {\n symbol = resolveTypeReferenceName(getTypeReferenceName(node), meaning);\n type = getTypeReferenceType(node, symbol);\n }\n // Cache both the resolved symbol and the resolved type. The resolved symbol is needed when we check the\n // type reference in checkTypeReferenceNode.\n links.resolvedSymbol = symbol;\n links.resolvedType = type;\n }\n return links.resolvedType;\n }\n function typeArgumentsFromTypeReferenceNode(node) {\n return ts.map(node.typeArguments, getTypeFromTypeNode);\n }\n function getTypeFromTypeQueryNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n // TypeScript 1.0 spec (April 2014): 3.6.3\n // The expression is processed as an identifier expression (section 4.3)\n // or property access expression(section 4.10),\n // the widened type(section 3.9) of which becomes the result.\n var type = ts.isThisIdentifier(node.exprName) ? checkThisExpression(node.exprName) : checkExpression(node.exprName);\n links.resolvedType = getRegularTypeOfLiteralType(getWidenedType(type));\n }\n return links.resolvedType;\n }\n function getTypeOfGlobalSymbol(symbol, arity) {\n function getTypeDeclaration(symbol) {\n var declarations = symbol.declarations;\n if (declarations) {\n for (var _i = 0, declarations_3 = declarations; _i < declarations_3.length; _i++) {\n var declaration = declarations_3[_i];\n switch (declaration.kind) {\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n return declaration;\n }\n }\n }\n }\n if (!symbol) {\n return arity ? emptyGenericType : emptyObjectType;\n }\n var type = getDeclaredTypeOfSymbol(symbol);\n if (!(type.flags & 524288 /* Object */)) {\n error(getTypeDeclaration(symbol), ts.Diagnostics.Global_type_0_must_be_a_class_or_interface_type, ts.symbolName(symbol));\n return arity ? emptyGenericType : emptyObjectType;\n }\n if (ts.length(type.typeParameters) !== arity) {\n error(getTypeDeclaration(symbol), ts.Diagnostics.Global_type_0_must_have_1_type_parameter_s, ts.symbolName(symbol), arity);\n return arity ? emptyGenericType : emptyObjectType;\n }\n return type;\n }\n function getGlobalValueSymbol(name, reportErrors) {\n return getGlobalSymbol(name, 111551 /* Value */, reportErrors ? ts.Diagnostics.Cannot_find_global_value_0 : undefined);\n }\n function getGlobalTypeSymbol(name, reportErrors) {\n return getGlobalSymbol(name, 788968 /* Type */, reportErrors ? ts.Diagnostics.Cannot_find_global_type_0 : undefined);\n }\n function getGlobalSymbol(name, meaning, diagnostic) {\n // Don't track references for global symbols anyway, so value if `isReference` is arbitrary\n return resolveName(undefined, name, meaning, diagnostic, name, /*isUse*/ false);\n }\n function getGlobalType(name, arity, reportErrors) {\n var symbol = getGlobalTypeSymbol(name, reportErrors);\n return symbol || reportErrors ? getTypeOfGlobalSymbol(symbol, arity) : undefined;\n }\n function getGlobalTypedPropertyDescriptorType() {\n return deferredGlobalTypedPropertyDescriptorType || (deferredGlobalTypedPropertyDescriptorType = getGlobalType(\"TypedPropertyDescriptor\", /*arity*/ 1, /*reportErrors*/ true)) || emptyGenericType;\n }\n function getGlobalTemplateStringsArrayType() {\n return deferredGlobalTemplateStringsArrayType || (deferredGlobalTemplateStringsArrayType = getGlobalType(\"TemplateStringsArray\", /*arity*/ 0, /*reportErrors*/ true)) || emptyObjectType;\n }\n function getGlobalImportMetaType() {\n return deferredGlobalImportMetaType || (deferredGlobalImportMetaType = getGlobalType(\"ImportMeta\", /*arity*/ 0, /*reportErrors*/ true)) || emptyObjectType;\n }\n function getGlobalImportMetaExpressionType() {\n if (!deferredGlobalImportMetaExpressionType) {\n // Create a synthetic type `ImportMetaExpression { meta: MetaProperty }`\n var symbol = createSymbol(0 /* None */, \"ImportMetaExpression\");\n var importMetaType = getGlobalImportMetaType();\n var metaPropertySymbol = createSymbol(4 /* Property */, \"meta\", 8 /* Readonly */);\n metaPropertySymbol.parent = symbol;\n metaPropertySymbol.type = importMetaType;\n var members = ts.createSymbolTable([metaPropertySymbol]);\n symbol.members = members;\n deferredGlobalImportMetaExpressionType = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n }\n return deferredGlobalImportMetaExpressionType;\n }\n function getGlobalESSymbolConstructorSymbol(reportErrors) {\n return deferredGlobalESSymbolConstructorSymbol || (deferredGlobalESSymbolConstructorSymbol = getGlobalValueSymbol(\"Symbol\", reportErrors));\n }\n function getGlobalESSymbolConstructorTypeSymbol(reportErrors) {\n return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol(\"SymbolConstructor\", reportErrors));\n }\n function getGlobalESSymbolType(reportErrors) {\n return deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType(\"Symbol\", /*arity*/ 0, reportErrors)) || emptyObjectType;\n }\n function getGlobalPromiseType(reportErrors) {\n return deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType(\"Promise\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalPromiseLikeType(reportErrors) {\n return deferredGlobalPromiseLikeType || (deferredGlobalPromiseLikeType = getGlobalType(\"PromiseLike\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalPromiseConstructorSymbol(reportErrors) {\n return deferredGlobalPromiseConstructorSymbol || (deferredGlobalPromiseConstructorSymbol = getGlobalValueSymbol(\"Promise\", reportErrors));\n }\n function getGlobalPromiseConstructorLikeType(reportErrors) {\n return deferredGlobalPromiseConstructorLikeType || (deferredGlobalPromiseConstructorLikeType = getGlobalType(\"PromiseConstructorLike\", /*arity*/ 0, reportErrors)) || emptyObjectType;\n }\n function getGlobalAsyncIterableType(reportErrors) {\n return deferredGlobalAsyncIterableType || (deferredGlobalAsyncIterableType = getGlobalType(\"AsyncIterable\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalAsyncIteratorType(reportErrors) {\n return deferredGlobalAsyncIteratorType || (deferredGlobalAsyncIteratorType = getGlobalType(\"AsyncIterator\", /*arity*/ 3, reportErrors)) || emptyGenericType;\n }\n function getGlobalAsyncIterableIteratorType(reportErrors) {\n return deferredGlobalAsyncIterableIteratorType || (deferredGlobalAsyncIterableIteratorType = getGlobalType(\"AsyncIterableIterator\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalAsyncGeneratorType(reportErrors) {\n return deferredGlobalAsyncGeneratorType || (deferredGlobalAsyncGeneratorType = getGlobalType(\"AsyncGenerator\", /*arity*/ 3, reportErrors)) || emptyGenericType;\n }\n function getGlobalIterableType(reportErrors) {\n return deferredGlobalIterableType || (deferredGlobalIterableType = getGlobalType(\"Iterable\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalIteratorType(reportErrors) {\n return deferredGlobalIteratorType || (deferredGlobalIteratorType = getGlobalType(\"Iterator\", /*arity*/ 3, reportErrors)) || emptyGenericType;\n }\n function getGlobalIterableIteratorType(reportErrors) {\n return deferredGlobalIterableIteratorType || (deferredGlobalIterableIteratorType = getGlobalType(\"IterableIterator\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalGeneratorType(reportErrors) {\n return deferredGlobalGeneratorType || (deferredGlobalGeneratorType = getGlobalType(\"Generator\", /*arity*/ 3, reportErrors)) || emptyGenericType;\n }\n function getGlobalIteratorYieldResultType(reportErrors) {\n return deferredGlobalIteratorYieldResultType || (deferredGlobalIteratorYieldResultType = getGlobalType(\"IteratorYieldResult\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalIteratorReturnResultType(reportErrors) {\n return deferredGlobalIteratorReturnResultType || (deferredGlobalIteratorReturnResultType = getGlobalType(\"IteratorReturnResult\", /*arity*/ 1, reportErrors)) || emptyGenericType;\n }\n function getGlobalTypeOrUndefined(name, arity) {\n if (arity === void 0) { arity = 0; }\n var symbol = getGlobalSymbol(name, 788968 /* Type */, /*diagnostic*/ undefined);\n return symbol && getTypeOfGlobalSymbol(symbol, arity);\n }\n function getGlobalExtractSymbol() {\n return deferredGlobalExtractSymbol || (deferredGlobalExtractSymbol = getGlobalSymbol(\"Extract\", 524288 /* TypeAlias */, ts.Diagnostics.Cannot_find_global_type_0)); // TODO: GH#18217\n }\n function getGlobalOmitSymbol() {\n return deferredGlobalOmitSymbol || (deferredGlobalOmitSymbol = getGlobalSymbol(\"Omit\", 524288 /* TypeAlias */, ts.Diagnostics.Cannot_find_global_type_0)); // TODO: GH#18217\n }\n function getGlobalBigIntType(reportErrors) {\n return deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType(\"BigInt\", /*arity*/ 0, reportErrors)) || emptyObjectType;\n }\n /**\n * Instantiates a global type that is generic with some element type, and returns that instantiation.\n */\n function createTypeFromGenericGlobalType(genericGlobalType, typeArguments) {\n return genericGlobalType !== emptyGenericType ? createTypeReference(genericGlobalType, typeArguments) : emptyObjectType;\n }\n function createTypedPropertyDescriptorType(propertyType) {\n return createTypeFromGenericGlobalType(getGlobalTypedPropertyDescriptorType(), [propertyType]);\n }\n function createIterableType(iteratedType) {\n return createTypeFromGenericGlobalType(getGlobalIterableType(/*reportErrors*/ true), [iteratedType]);\n }\n function createArrayType(elementType, readonly) {\n return createTypeFromGenericGlobalType(readonly ? globalReadonlyArrayType : globalArrayType, [elementType]);\n }\n function getTupleElementFlags(node) {\n switch (node.kind) {\n case 183 /* OptionalType */:\n return 2 /* Optional */;\n case 184 /* RestType */:\n return getRestTypeElementFlags(node);\n case 195 /* NamedTupleMember */:\n return node.questionToken ? 2 /* Optional */ :\n node.dotDotDotToken ? getRestTypeElementFlags(node) :\n 1 /* Required */;\n default:\n return 1 /* Required */;\n }\n }\n function getRestTypeElementFlags(node) {\n return getArrayElementTypeNode(node.type) ? 4 /* Rest */ : 8 /* Variadic */;\n }\n function getArrayOrTupleTargetType(node) {\n var readonly = isReadonlyTypeOperator(node.parent);\n var elementType = getArrayElementTypeNode(node);\n if (elementType) {\n return readonly ? globalReadonlyArrayType : globalArrayType;\n }\n var elementFlags = ts.map(node.elements, getTupleElementFlags);\n var missingName = ts.some(node.elements, function (e) { return e.kind !== 195 /* NamedTupleMember */; });\n return getTupleTargetType(elementFlags, readonly, /*associatedNames*/ missingName ? undefined : node.elements);\n }\n // Return true if the given type reference node is directly aliased or if it needs to be deferred\n // because it is possibly contained in a circular chain of eagerly resolved types.\n function isDeferredTypeReferenceNode(node, hasDefaultTypeArguments) {\n return !!getAliasSymbolForTypeNode(node) || isResolvedByTypeAlias(node) && (node.kind === 181 /* ArrayType */ ? mayResolveTypeAlias(node.elementType) :\n node.kind === 182 /* TupleType */ ? ts.some(node.elements, mayResolveTypeAlias) :\n hasDefaultTypeArguments || ts.some(node.typeArguments, mayResolveTypeAlias));\n }\n // Return true when the given node is transitively contained in type constructs that eagerly\n // resolve their constituent types. We include SyntaxKind.TypeReference because type arguments\n // of type aliases are eagerly resolved.\n function isResolvedByTypeAlias(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 189 /* ParenthesizedType */:\n case 195 /* NamedTupleMember */:\n case 176 /* TypeReference */:\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n case 192 /* IndexedAccessType */:\n case 187 /* ConditionalType */:\n case 191 /* TypeOperator */:\n case 181 /* ArrayType */:\n case 182 /* TupleType */:\n return isResolvedByTypeAlias(parent);\n case 257 /* TypeAliasDeclaration */:\n return true;\n }\n return false;\n }\n // Return true if resolving the given node (i.e. getTypeFromTypeNode) possibly causes resolution\n // of a type alias.\n function mayResolveTypeAlias(node) {\n switch (node.kind) {\n case 176 /* TypeReference */:\n return isJSDocTypeReference(node) || !!(resolveTypeReferenceName(node.typeName, 788968 /* Type */).flags & 524288 /* TypeAlias */);\n case 179 /* TypeQuery */:\n return true;\n case 191 /* TypeOperator */:\n return node.operator !== 152 /* UniqueKeyword */ && mayResolveTypeAlias(node.type);\n case 189 /* ParenthesizedType */:\n case 183 /* OptionalType */:\n case 195 /* NamedTupleMember */:\n case 311 /* JSDocOptionalType */:\n case 309 /* JSDocNullableType */:\n case 310 /* JSDocNonNullableType */:\n case 304 /* JSDocTypeExpression */:\n return mayResolveTypeAlias(node.type);\n case 184 /* RestType */:\n return node.type.kind !== 181 /* ArrayType */ || mayResolveTypeAlias(node.type.elementType);\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n return ts.some(node.types, mayResolveTypeAlias);\n case 192 /* IndexedAccessType */:\n return mayResolveTypeAlias(node.objectType) || mayResolveTypeAlias(node.indexType);\n case 187 /* ConditionalType */:\n return mayResolveTypeAlias(node.checkType) || mayResolveTypeAlias(node.extendsType) ||\n mayResolveTypeAlias(node.trueType) || mayResolveTypeAlias(node.falseType);\n }\n return false;\n }\n function getTypeFromArrayOrTupleTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n var target = getArrayOrTupleTargetType(node);\n if (target === emptyGenericType) {\n links.resolvedType = emptyObjectType;\n }\n else if (!(node.kind === 182 /* TupleType */ && ts.some(node.elements, function (e) { return !!(getTupleElementFlags(e) & 8 /* Variadic */); })) && isDeferredTypeReferenceNode(node)) {\n links.resolvedType = node.kind === 182 /* TupleType */ && node.elements.length === 0 ? target :\n createDeferredTypeReference(target, node, /*mapper*/ undefined);\n }\n else {\n var elementTypes = node.kind === 181 /* ArrayType */ ? [getTypeFromTypeNode(node.elementType)] : ts.map(node.elements, getTypeFromTypeNode);\n links.resolvedType = createNormalizedTypeReference(target, elementTypes);\n }\n }\n return links.resolvedType;\n }\n function isReadonlyTypeOperator(node) {\n return ts.isTypeOperatorNode(node) && node.operator === 143 /* ReadonlyKeyword */;\n }\n function createTupleType(elementTypes, elementFlags, readonly, namedMemberDeclarations) {\n if (readonly === void 0) { readonly = false; }\n var tupleTarget = getTupleTargetType(elementFlags || ts.map(elementTypes, function (_) { return 1 /* Required */; }), readonly, namedMemberDeclarations);\n return tupleTarget === emptyGenericType ? emptyObjectType :\n elementTypes.length ? createNormalizedTypeReference(tupleTarget, elementTypes) :\n tupleTarget;\n }\n function getTupleTargetType(elementFlags, readonly, namedMemberDeclarations) {\n if (elementFlags.length === 1 && elementFlags[0] & 4 /* Rest */) {\n // [...X[]] is equivalent to just X[]\n return readonly ? globalReadonlyArrayType : globalArrayType;\n }\n var key = ts.map(elementFlags, function (f) { return f & 1 /* Required */ ? \"#\" : f & 2 /* Optional */ ? \"?\" : f & 4 /* Rest */ ? \".\" : \"*\"; }).join() +\n (readonly ? \"R\" : \"\") +\n (namedMemberDeclarations && namedMemberDeclarations.length ? \",\" + ts.map(namedMemberDeclarations, getNodeId).join(\",\") : \"\");\n var type = tupleTypes.get(key);\n if (!type) {\n tupleTypes.set(key, type = createTupleTargetType(elementFlags, readonly, namedMemberDeclarations));\n }\n return type;\n }\n // We represent tuple types as type references to synthesized generic interface types created by\n // this function. The types are of the form:\n //\n // interface Tuple extends Array { 0: T0, 1: T1, 2: T2, ... }\n //\n // Note that the generic type created by this function has no symbol associated with it. The same\n // is true for each of the synthesized type parameters.\n function createTupleTargetType(elementFlags, readonly, namedMemberDeclarations) {\n var arity = elementFlags.length;\n var minLength = ts.countWhere(elementFlags, function (f) { return !!(f & (1 /* Required */ | 8 /* Variadic */)); });\n var typeParameters;\n var properties = [];\n var combinedFlags = 0;\n if (arity) {\n typeParameters = new Array(arity);\n for (var i = 0; i < arity; i++) {\n var typeParameter = typeParameters[i] = createTypeParameter();\n var flags = elementFlags[i];\n combinedFlags |= flags;\n if (!(combinedFlags & 12 /* Variable */)) {\n var property = createSymbol(4 /* Property */ | (flags & 2 /* Optional */ ? 16777216 /* Optional */ : 0), \"\" + i, readonly ? 8 /* Readonly */ : 0);\n property.tupleLabelDeclaration = namedMemberDeclarations === null || namedMemberDeclarations === void 0 ? void 0 : namedMemberDeclarations[i];\n property.type = typeParameter;\n properties.push(property);\n }\n }\n }\n var fixedLength = properties.length;\n var lengthSymbol = createSymbol(4 /* Property */, \"length\");\n if (combinedFlags & 12 /* Variable */) {\n lengthSymbol.type = numberType;\n }\n else {\n var literalTypes = [];\n for (var i = minLength; i <= arity; i++)\n literalTypes.push(getNumberLiteralType(i));\n lengthSymbol.type = getUnionType(literalTypes);\n }\n properties.push(lengthSymbol);\n var type = createObjectType(8 /* Tuple */ | 4 /* Reference */);\n type.typeParameters = typeParameters;\n type.outerTypeParameters = undefined;\n type.localTypeParameters = typeParameters;\n type.instantiations = new ts.Map();\n type.instantiations.set(getTypeListId(type.typeParameters), type);\n type.target = type;\n type.resolvedTypeArguments = type.typeParameters;\n type.thisType = createTypeParameter();\n type.thisType.isThisType = true;\n type.thisType.constraint = type;\n type.declaredProperties = properties;\n type.declaredCallSignatures = ts.emptyArray;\n type.declaredConstructSignatures = ts.emptyArray;\n type.declaredIndexInfos = ts.emptyArray;\n type.elementFlags = elementFlags;\n type.minLength = minLength;\n type.fixedLength = fixedLength;\n type.hasRestElement = !!(combinedFlags & 12 /* Variable */);\n type.combinedFlags = combinedFlags;\n type.readonly = readonly;\n type.labeledElementDeclarations = namedMemberDeclarations;\n return type;\n }\n function createNormalizedTypeReference(target, typeArguments) {\n return target.objectFlags & 8 /* Tuple */ ? createNormalizedTupleType(target, typeArguments) : createTypeReference(target, typeArguments);\n }\n function createNormalizedTupleType(target, elementTypes) {\n var _a, _b, _c;\n if (!(target.combinedFlags & 14 /* NonRequired */)) {\n // No need to normalize when we only have regular required elements\n return createTypeReference(target, elementTypes);\n }\n if (target.combinedFlags & 8 /* Variadic */) {\n // Transform [A, ...(X | Y | Z)] into [A, ...X] | [A, ...Y] | [A, ...Z]\n var unionIndex_1 = ts.findIndex(elementTypes, function (t, i) { return !!(target.elementFlags[i] & 8 /* Variadic */ && t.flags & (131072 /* Never */ | 1048576 /* Union */)); });\n if (unionIndex_1 >= 0) {\n return checkCrossProductUnion(ts.map(elementTypes, function (t, i) { return target.elementFlags[i] & 8 /* Variadic */ ? t : unknownType; })) ?\n mapType(elementTypes[unionIndex_1], function (t) { return createNormalizedTupleType(target, ts.replaceElement(elementTypes, unionIndex_1, t)); }) :\n errorType;\n }\n }\n // We have optional, rest, or variadic elements that may need normalizing. Normalization ensures that all variadic\n // elements are generic and that the tuple type has one of the following layouts, disregarding variadic elements:\n // (1) Zero or more required elements, followed by zero or more optional elements, followed by zero or one rest element.\n // (2) Zero or more required elements, followed by a rest element, followed by zero or more required elements.\n // In either layout, zero or more generic variadic elements may be present at any location.\n var expandedTypes = [];\n var expandedFlags = [];\n var expandedDeclarations = [];\n var lastRequiredIndex = -1;\n var firstRestIndex = -1;\n var lastOptionalOrRestIndex = -1;\n var _loop_15 = function (i) {\n var type = elementTypes[i];\n var flags = target.elementFlags[i];\n if (flags & 8 /* Variadic */) {\n if (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type)) {\n // Generic variadic elements stay as they are.\n addElement(type, 8 /* Variadic */, (_a = target.labeledElementDeclarations) === null || _a === void 0 ? void 0 : _a[i]);\n }\n else if (isTupleType(type)) {\n var elements = getTypeArguments(type);\n if (elements.length + expandedTypes.length >= 10000) {\n error(currentNode, ts.isPartOfTypeNode(currentNode)\n ? ts.Diagnostics.Type_produces_a_tuple_type_that_is_too_large_to_represent\n : ts.Diagnostics.Expression_produces_a_tuple_type_that_is_too_large_to_represent);\n return { value: errorType };\n }\n // Spread variadic elements with tuple types into the resulting tuple.\n ts.forEach(elements, function (t, n) { var _a; return addElement(t, type.target.elementFlags[n], (_a = type.target.labeledElementDeclarations) === null || _a === void 0 ? void 0 : _a[n]); });\n }\n else {\n // Treat everything else as an array type and create a rest element.\n addElement(isArrayLikeType(type) && getIndexTypeOfType(type, numberType) || errorType, 4 /* Rest */, (_b = target.labeledElementDeclarations) === null || _b === void 0 ? void 0 : _b[i]);\n }\n }\n else {\n // Copy other element kinds with no change.\n addElement(type, flags, (_c = target.labeledElementDeclarations) === null || _c === void 0 ? void 0 : _c[i]);\n }\n };\n for (var i = 0; i < elementTypes.length; i++) {\n var state_4 = _loop_15(i);\n if (typeof state_4 === \"object\")\n return state_4.value;\n }\n // Turn optional elements preceding the last required element into required elements\n for (var i = 0; i < lastRequiredIndex; i++) {\n if (expandedFlags[i] & 2 /* Optional */)\n expandedFlags[i] = 1 /* Required */;\n }\n if (firstRestIndex >= 0 && firstRestIndex < lastOptionalOrRestIndex) {\n // Turn elements between first rest and last optional/rest into a single rest element\n expandedTypes[firstRestIndex] = getUnionType(ts.sameMap(expandedTypes.slice(firstRestIndex, lastOptionalOrRestIndex + 1), function (t, i) { return expandedFlags[firstRestIndex + i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t; }));\n expandedTypes.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);\n expandedFlags.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);\n expandedDeclarations === null || expandedDeclarations === void 0 ? void 0 : expandedDeclarations.splice(firstRestIndex + 1, lastOptionalOrRestIndex - firstRestIndex);\n }\n var tupleTarget = getTupleTargetType(expandedFlags, target.readonly, expandedDeclarations);\n return tupleTarget === emptyGenericType ? emptyObjectType :\n expandedFlags.length ? createTypeReference(tupleTarget, expandedTypes) :\n tupleTarget;\n function addElement(type, flags, declaration) {\n if (flags & 1 /* Required */) {\n lastRequiredIndex = expandedFlags.length;\n }\n if (flags & 4 /* Rest */ && firstRestIndex < 0) {\n firstRestIndex = expandedFlags.length;\n }\n if (flags & (2 /* Optional */ | 4 /* Rest */)) {\n lastOptionalOrRestIndex = expandedFlags.length;\n }\n expandedTypes.push(type);\n expandedFlags.push(flags);\n if (expandedDeclarations && declaration) {\n expandedDeclarations.push(declaration);\n }\n else {\n expandedDeclarations = undefined;\n }\n }\n }\n function sliceTupleType(type, index, endSkipCount) {\n if (endSkipCount === void 0) { endSkipCount = 0; }\n var target = type.target;\n var endIndex = getTypeReferenceArity(type) - endSkipCount;\n return index > target.fixedLength ? getRestArrayTypeOfTupleType(type) || createTupleType(ts.emptyArray) :\n createTupleType(getTypeArguments(type).slice(index, endIndex), target.elementFlags.slice(index, endIndex), \n /*readonly*/ false, target.labeledElementDeclarations && target.labeledElementDeclarations.slice(index, endIndex));\n }\n function getKnownKeysOfTupleType(type) {\n return getUnionType(ts.append(ts.arrayOf(type.target.fixedLength, function (i) { return getStringLiteralType(\"\" + i); }), getIndexType(type.target.readonly ? globalReadonlyArrayType : globalArrayType)));\n }\n // Return count of starting consecutive tuple elements of the given kind(s)\n function getStartElementCount(type, flags) {\n var index = ts.findIndex(type.elementFlags, function (f) { return !(f & flags); });\n return index >= 0 ? index : type.elementFlags.length;\n }\n // Return count of ending consecutive tuple elements of the given kind(s)\n function getEndElementCount(type, flags) {\n return type.elementFlags.length - ts.findLastIndex(type.elementFlags, function (f) { return !(f & flags); }) - 1;\n }\n function getTypeFromOptionalTypeNode(node) {\n return addOptionality(getTypeFromTypeNode(node.type), /*isProperty*/ true);\n }\n function getTypeId(type) {\n return type.id;\n }\n function containsType(types, type) {\n return ts.binarySearch(types, type, getTypeId, ts.compareValues) >= 0;\n }\n function insertType(types, type) {\n var index = ts.binarySearch(types, type, getTypeId, ts.compareValues);\n if (index < 0) {\n types.splice(~index, 0, type);\n return true;\n }\n return false;\n }\n function addTypeToUnion(typeSet, includes, type) {\n var flags = type.flags;\n if (flags & 1048576 /* Union */) {\n return addTypesToUnion(typeSet, includes | (isNamedUnionType(type) ? 1048576 /* Union */ : 0), type.types);\n }\n // We ignore 'never' types in unions\n if (!(flags & 131072 /* Never */)) {\n includes |= flags & 205258751 /* IncludesMask */;\n if (flags & 469499904 /* StructuredOrInstantiable */)\n includes |= 262144 /* IncludesStructuredOrInstantiable */;\n if (type === wildcardType)\n includes |= 8388608 /* IncludesWildcard */;\n if (!strictNullChecks && flags & 98304 /* Nullable */) {\n if (!(ts.getObjectFlags(type) & 131072 /* ContainsWideningType */))\n includes |= 4194304 /* IncludesNonWideningType */;\n }\n else {\n var len = typeSet.length;\n var index = len && type.id > typeSet[len - 1].id ? ~len : ts.binarySearch(typeSet, type, getTypeId, ts.compareValues);\n if (index < 0) {\n typeSet.splice(~index, 0, type);\n }\n }\n }\n return includes;\n }\n // Add the given types to the given type set. Order is preserved, duplicates are removed,\n // and nested types of the given kind are flattened into the set.\n function addTypesToUnion(typeSet, includes, types) {\n for (var _i = 0, types_9 = types; _i < types_9.length; _i++) {\n var type = types_9[_i];\n includes = addTypeToUnion(typeSet, includes, type);\n }\n return includes;\n }\n function removeSubtypes(types, hasObjectTypes) {\n var id = getTypeListId(types);\n var match = subtypeReductionCache.get(id);\n if (match) {\n return match;\n }\n // We assume that redundant primitive types have already been removed from the types array and that there\n // are no any and unknown types in the array. Thus, the only possible supertypes for primitive types are empty\n // object types, and if none of those are present we can exclude primitive types from the subtype check.\n var hasEmptyObject = hasObjectTypes && ts.some(types, function (t) { return !!(t.flags & 524288 /* Object */) && !isGenericMappedType(t) && isEmptyResolvedType(resolveStructuredTypeMembers(t)); });\n var len = types.length;\n var i = len;\n var count = 0;\n while (i > 0) {\n i--;\n var source = types[i];\n if (hasEmptyObject || source.flags & 469499904 /* StructuredOrInstantiable */) {\n // Find the first property with a unit type, if any. When constituents have a property by the same name\n // but of a different unit type, we can quickly disqualify them from subtype checks. This helps subtype\n // reduction of large discriminated union types.\n var keyProperty = source.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */) ?\n ts.find(getPropertiesOfType(source), function (p) { return isUnitType(getTypeOfSymbol(p)); }) :\n undefined;\n var keyPropertyType = keyProperty && getRegularTypeOfLiteralType(getTypeOfSymbol(keyProperty));\n for (var _i = 0, types_10 = types; _i < types_10.length; _i++) {\n var target = types_10[_i];\n if (source !== target) {\n if (count === 100000) {\n // After 100000 subtype checks we estimate the remaining amount of work by assuming the\n // same ratio of checks per element. If the estimated number of remaining type checks is\n // greater than 1M we deem the union type too complex to represent. This for example\n // caps union types at 1000 unique object types.\n var estimatedCount = (count / (len - i)) * len;\n if (estimatedCount > 1000000) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"removeSubtypes_DepthLimit\", { typeIds: types.map(function (t) { return t.id; }) });\n error(currentNode, ts.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);\n return undefined;\n }\n }\n count++;\n if (keyProperty && target.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {\n var t = getTypeOfPropertyOfType(target, keyProperty.escapedName);\n if (t && isUnitType(t) && getRegularTypeOfLiteralType(t) !== keyPropertyType) {\n continue;\n }\n }\n if (isTypeRelatedTo(source, target, strictSubtypeRelation) && (!(ts.getObjectFlags(getTargetType(source)) & 1 /* Class */) ||\n !(ts.getObjectFlags(getTargetType(target)) & 1 /* Class */) ||\n isTypeDerivedFrom(source, target))) {\n ts.orderedRemoveItemAt(types, i);\n break;\n }\n }\n }\n }\n }\n subtypeReductionCache.set(id, types);\n return types;\n }\n function removeRedundantLiteralTypes(types, includes, reduceVoidUndefined) {\n var i = types.length;\n while (i > 0) {\n i--;\n var t = types[i];\n var flags = t.flags;\n var remove = flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && includes & 4 /* String */ ||\n flags & 256 /* NumberLiteral */ && includes & 8 /* Number */ ||\n flags & 2048 /* BigIntLiteral */ && includes & 64 /* BigInt */ ||\n flags & 8192 /* UniqueESSymbol */ && includes & 4096 /* ESSymbol */ ||\n reduceVoidUndefined && flags & 32768 /* Undefined */ && includes & 16384 /* Void */ ||\n isFreshLiteralType(t) && containsType(types, t.regularType);\n if (remove) {\n ts.orderedRemoveItemAt(types, i);\n }\n }\n }\n function removeStringLiteralsMatchedByTemplateLiterals(types) {\n var templates = ts.filter(types, isPatternLiteralType);\n if (templates.length) {\n var i = types.length;\n var _loop_16 = function () {\n i--;\n var t = types[i];\n if (t.flags & 128 /* StringLiteral */ && ts.some(templates, function (template) { return isTypeSubtypeOf(t, template); })) {\n ts.orderedRemoveItemAt(types, i);\n }\n };\n while (i > 0) {\n _loop_16();\n }\n }\n }\n function isNamedUnionType(type) {\n return !!(type.flags & 1048576 /* Union */ && (type.aliasSymbol || type.origin));\n }\n function addNamedUnions(namedUnions, types) {\n for (var _i = 0, types_11 = types; _i < types_11.length; _i++) {\n var t = types_11[_i];\n if (t.flags & 1048576 /* Union */) {\n var origin = t.origin;\n if (t.aliasSymbol || origin && !(origin.flags & 1048576 /* Union */)) {\n ts.pushIfUnique(namedUnions, t);\n }\n else if (origin && origin.flags & 1048576 /* Union */) {\n addNamedUnions(namedUnions, origin.types);\n }\n }\n }\n }\n function createOriginUnionOrIntersectionType(flags, types) {\n var result = createOriginType(flags);\n result.types = types;\n return result;\n }\n // We sort and deduplicate the constituent types based on object identity. If the subtypeReduction\n // flag is specified we also reduce the constituent type set to only include types that aren't subtypes\n // of other types. Subtype reduction is expensive for large union types and is possible only when union\n // types are known not to circularly reference themselves (as is the case with union types created by\n // expression constructs such as array literals and the || and ?: operators). Named types can\n // circularly reference themselves and therefore cannot be subtype reduced during their declaration.\n // For example, \"type Item = string | (() => Item\" is a named type that circularly references itself.\n function getUnionType(types, unionReduction, aliasSymbol, aliasTypeArguments, origin) {\n if (unionReduction === void 0) { unionReduction = 1 /* Literal */; }\n if (types.length === 0) {\n return neverType;\n }\n if (types.length === 1) {\n return types[0];\n }\n var typeSet = [];\n var includes = addTypesToUnion(typeSet, 0, types);\n if (unionReduction !== 0 /* None */) {\n if (includes & 3 /* AnyOrUnknown */) {\n return includes & 1 /* Any */ ? includes & 8388608 /* IncludesWildcard */ ? wildcardType : anyType : unknownType;\n }\n if (exactOptionalPropertyTypes && includes & 32768 /* Undefined */) {\n var missingIndex = ts.binarySearch(typeSet, missingType, getTypeId, ts.compareValues);\n if (missingIndex >= 0 && containsType(typeSet, undefinedType)) {\n ts.orderedRemoveItemAt(typeSet, missingIndex);\n }\n }\n if (includes & (2944 /* Literal */ | 8192 /* UniqueESSymbol */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) || includes & 16384 /* Void */ && includes & 32768 /* Undefined */) {\n removeRedundantLiteralTypes(typeSet, includes, !!(unionReduction & 2 /* Subtype */));\n }\n if (includes & 128 /* StringLiteral */ && includes & 134217728 /* TemplateLiteral */) {\n removeStringLiteralsMatchedByTemplateLiterals(typeSet);\n }\n if (unionReduction === 2 /* Subtype */) {\n typeSet = removeSubtypes(typeSet, !!(includes & 524288 /* Object */));\n if (!typeSet) {\n return errorType;\n }\n }\n if (typeSet.length === 0) {\n return includes & 65536 /* Null */ ? includes & 4194304 /* IncludesNonWideningType */ ? nullType : nullWideningType :\n includes & 32768 /* Undefined */ ? includes & 4194304 /* IncludesNonWideningType */ ? undefinedType : undefinedWideningType :\n neverType;\n }\n }\n if (!origin && includes & 1048576 /* Union */) {\n var namedUnions = [];\n addNamedUnions(namedUnions, types);\n var reducedTypes = [];\n var _loop_17 = function (t) {\n if (!ts.some(namedUnions, function (union) { return containsType(union.types, t); })) {\n reducedTypes.push(t);\n }\n };\n for (var _i = 0, typeSet_1 = typeSet; _i < typeSet_1.length; _i++) {\n var t = typeSet_1[_i];\n _loop_17(t);\n }\n if (!aliasSymbol && namedUnions.length === 1 && reducedTypes.length === 0) {\n return namedUnions[0];\n }\n // We create a denormalized origin type only when the union was created from one or more named unions\n // (unions with alias symbols or origins) and when there is no overlap between those named unions.\n var namedTypesCount = ts.reduceLeft(namedUnions, function (sum, union) { return sum + union.types.length; }, 0);\n if (namedTypesCount + reducedTypes.length === typeSet.length) {\n for (var _a = 0, namedUnions_1 = namedUnions; _a < namedUnions_1.length; _a++) {\n var t = namedUnions_1[_a];\n insertType(reducedTypes, t);\n }\n origin = createOriginUnionOrIntersectionType(1048576 /* Union */, reducedTypes);\n }\n }\n var objectFlags = (includes & 468598819 /* NotPrimitiveUnion */ ? 0 : 65536 /* PrimitiveUnion */) |\n (includes & 2097152 /* Intersection */ ? 33554432 /* ContainsIntersections */ : 0);\n return getUnionTypeFromSortedList(typeSet, objectFlags, aliasSymbol, aliasTypeArguments, origin);\n }\n function getUnionOrIntersectionTypePredicate(signatures, kind) {\n var first;\n var types = [];\n for (var _i = 0, signatures_6 = signatures; _i < signatures_6.length; _i++) {\n var sig = signatures_6[_i];\n var pred = getTypePredicateOfSignature(sig);\n if (!pred || pred.kind === 2 /* AssertsThis */ || pred.kind === 3 /* AssertsIdentifier */) {\n if (kind !== 2097152 /* Intersection */) {\n continue;\n }\n else {\n return; // intersections demand all members be type predicates for the result to have a predicate\n }\n }\n if (first) {\n if (!typePredicateKindsMatch(first, pred)) {\n // No common type predicate.\n return undefined;\n }\n }\n else {\n first = pred;\n }\n types.push(pred.type);\n }\n if (!first) {\n // No signatures had a type predicate.\n return undefined;\n }\n var compositeType = getUnionOrIntersectionType(types, kind);\n return createTypePredicate(first.kind, first.parameterName, first.parameterIndex, compositeType);\n }\n function typePredicateKindsMatch(a, b) {\n return a.kind === b.kind && a.parameterIndex === b.parameterIndex;\n }\n // This function assumes the constituent type list is sorted and deduplicated.\n function getUnionTypeFromSortedList(types, objectFlags, aliasSymbol, aliasTypeArguments, origin) {\n if (types.length === 0) {\n return neverType;\n }\n if (types.length === 1) {\n return types[0];\n }\n var typeKey = !origin ? getTypeListId(types) :\n origin.flags & 1048576 /* Union */ ? \"|\" + getTypeListId(origin.types) :\n origin.flags & 2097152 /* Intersection */ ? \"&\" + getTypeListId(origin.types) :\n \"#\" + origin.type.id + \"|\" + getTypeListId(types); // origin type id alone is insufficient, as `keyof x` may resolve to multiple WIP values while `x` is still resolving\n var id = typeKey + getAliasId(aliasSymbol, aliasTypeArguments);\n var type = unionTypes.get(id);\n if (!type) {\n type = createType(1048576 /* Union */);\n type.objectFlags = objectFlags | getPropagatingFlagsOfTypes(types, /*excludeKinds*/ 98304 /* Nullable */);\n type.types = types;\n type.origin = origin;\n type.aliasSymbol = aliasSymbol;\n type.aliasTypeArguments = aliasTypeArguments;\n if (types.length === 2 && types[0].flags & 512 /* BooleanLiteral */ && types[1].flags & 512 /* BooleanLiteral */) {\n type.flags |= 16 /* Boolean */;\n type.intrinsicName = \"boolean\";\n }\n unionTypes.set(id, type);\n }\n return type;\n }\n function getTypeFromUnionTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n var aliasSymbol = getAliasSymbolForTypeNode(node);\n links.resolvedType = getUnionType(ts.map(node.types, getTypeFromTypeNode), 1 /* Literal */, aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol));\n }\n return links.resolvedType;\n }\n function addTypeToIntersection(typeSet, includes, type) {\n var flags = type.flags;\n if (flags & 2097152 /* Intersection */) {\n return addTypesToIntersection(typeSet, includes, type.types);\n }\n if (isEmptyAnonymousObjectType(type)) {\n if (!(includes & 16777216 /* IncludesEmptyObject */)) {\n includes |= 16777216 /* IncludesEmptyObject */;\n typeSet.set(type.id.toString(), type);\n }\n }\n else {\n if (flags & 3 /* AnyOrUnknown */) {\n if (type === wildcardType)\n includes |= 8388608 /* IncludesWildcard */;\n }\n else if ((strictNullChecks || !(flags & 98304 /* Nullable */)) && !typeSet.has(type.id.toString())) {\n if (type.flags & 109440 /* Unit */ && includes & 109440 /* Unit */) {\n // We have seen two distinct unit types which means we should reduce to an\n // empty intersection. Adding TypeFlags.NonPrimitive causes that to happen.\n includes |= 67108864 /* NonPrimitive */;\n }\n typeSet.set(type.id.toString(), type);\n }\n includes |= flags & 205258751 /* IncludesMask */;\n }\n return includes;\n }\n // Add the given types to the given type set. Order is preserved, freshness is removed from literal\n // types, duplicates are removed, and nested types of the given kind are flattened into the set.\n function addTypesToIntersection(typeSet, includes, types) {\n for (var _i = 0, types_12 = types; _i < types_12.length; _i++) {\n var type = types_12[_i];\n includes = addTypeToIntersection(typeSet, includes, getRegularTypeOfLiteralType(type));\n }\n return includes;\n }\n function removeRedundantPrimitiveTypes(types, includes) {\n var i = types.length;\n while (i > 0) {\n i--;\n var t = types[i];\n var remove = t.flags & 4 /* String */ && includes & 128 /* StringLiteral */ ||\n t.flags & 8 /* Number */ && includes & 256 /* NumberLiteral */ ||\n t.flags & 64 /* BigInt */ && includes & 2048 /* BigIntLiteral */ ||\n t.flags & 4096 /* ESSymbol */ && includes & 8192 /* UniqueESSymbol */;\n if (remove) {\n ts.orderedRemoveItemAt(types, i);\n }\n }\n }\n // Check that the given type has a match in every union. A given type is matched by\n // an identical type, and a literal type is additionally matched by its corresponding\n // primitive type.\n function eachUnionContains(unionTypes, type) {\n for (var _i = 0, unionTypes_1 = unionTypes; _i < unionTypes_1.length; _i++) {\n var u = unionTypes_1[_i];\n if (!containsType(u.types, type)) {\n var primitive = type.flags & 128 /* StringLiteral */ ? stringType :\n type.flags & 256 /* NumberLiteral */ ? numberType :\n type.flags & 2048 /* BigIntLiteral */ ? bigintType :\n type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType :\n undefined;\n if (!primitive || !containsType(u.types, primitive)) {\n return false;\n }\n }\n }\n return true;\n }\n /**\n * Returns `true` if the intersection of the template literals and string literals is the empty set, eg `get${string}` & \"setX\", and should reduce to `never`\n */\n function extractRedundantTemplateLiterals(types) {\n var i = types.length;\n var literals = ts.filter(types, function (t) { return !!(t.flags & 128 /* StringLiteral */); });\n while (i > 0) {\n i--;\n var t = types[i];\n if (!(t.flags & 134217728 /* TemplateLiteral */))\n continue;\n for (var _i = 0, literals_1 = literals; _i < literals_1.length; _i++) {\n var t2 = literals_1[_i];\n if (isTypeSubtypeOf(t2, t)) {\n // eg, ``get${T}` & \"getX\"` is just `\"getX\"`\n ts.orderedRemoveItemAt(types, i);\n break;\n }\n else if (isPatternLiteralType(t)) {\n return true;\n }\n }\n }\n return false;\n }\n function extractIrreducible(types, flag) {\n if (ts.every(types, function (t) { return !!(t.flags & 1048576 /* Union */) && ts.some(t.types, function (tt) { return !!(tt.flags & flag); }); })) {\n for (var i = 0; i < types.length; i++) {\n types[i] = filterType(types[i], function (t) { return !(t.flags & flag); });\n }\n return true;\n }\n return false;\n }\n // If the given list of types contains more than one union of primitive types, replace the\n // first with a union containing an intersection of those primitive types, then remove the\n // other unions and return true. Otherwise, do nothing and return false.\n function intersectUnionsOfPrimitiveTypes(types) {\n var unionTypes;\n var index = ts.findIndex(types, function (t) { return !!(ts.getObjectFlags(t) & 65536 /* PrimitiveUnion */); });\n if (index < 0) {\n return false;\n }\n var i = index + 1;\n // Remove all but the first union of primitive types and collect them in\n // the unionTypes array.\n while (i < types.length) {\n var t = types[i];\n if (ts.getObjectFlags(t) & 65536 /* PrimitiveUnion */) {\n (unionTypes || (unionTypes = [types[index]])).push(t);\n ts.orderedRemoveItemAt(types, i);\n }\n else {\n i++;\n }\n }\n // Return false if there was only one union of primitive types\n if (!unionTypes) {\n return false;\n }\n // We have more than one union of primitive types, now intersect them. For each\n // type in each union we check if the type is matched in every union and if so\n // we include it in the result.\n var checked = [];\n var result = [];\n for (var _i = 0, unionTypes_2 = unionTypes; _i < unionTypes_2.length; _i++) {\n var u = unionTypes_2[_i];\n for (var _a = 0, _b = u.types; _a < _b.length; _a++) {\n var t = _b[_a];\n if (insertType(checked, t)) {\n if (eachUnionContains(unionTypes, t)) {\n insertType(result, t);\n }\n }\n }\n }\n // Finally replace the first union with the result\n types[index] = getUnionTypeFromSortedList(result, 65536 /* PrimitiveUnion */);\n return true;\n }\n function createIntersectionType(types, aliasSymbol, aliasTypeArguments) {\n var result = createType(2097152 /* Intersection */);\n result.objectFlags = getPropagatingFlagsOfTypes(types, /*excludeKinds*/ 98304 /* Nullable */);\n result.types = types;\n result.aliasSymbol = aliasSymbol;\n result.aliasTypeArguments = aliasTypeArguments;\n return result;\n }\n // We normalize combinations of intersection and union types based on the distributive property of the '&'\n // operator. Specifically, because X & (A | B) is equivalent to X & A | X & B, we can transform intersection\n // types with union type constituents into equivalent union types with intersection type constituents and\n // effectively ensure that union types are always at the top level in type representations.\n //\n // We do not perform structural deduplication on intersection types. Intersection types are created only by the &\n // type operator and we can't reduce those because we want to support recursive intersection types. For example,\n // a type alias of the form \"type List = T & { next: List }\" cannot be reduced during its declaration.\n // Also, unlike union types, the order of the constituent types is preserved in order that overload resolution\n // for intersections of types with signatures can be deterministic.\n function getIntersectionType(types, aliasSymbol, aliasTypeArguments) {\n var typeMembershipMap = new ts.Map();\n var includes = addTypesToIntersection(typeMembershipMap, 0, types);\n var typeSet = ts.arrayFrom(typeMembershipMap.values());\n // An intersection type is considered empty if it contains\n // the type never, or\n // more than one unit type or,\n // an object type and a nullable type (null or undefined), or\n // a string-like type and a type known to be non-string-like, or\n // a number-like type and a type known to be non-number-like, or\n // a symbol-like type and a type known to be non-symbol-like, or\n // a void-like type and a type known to be non-void-like, or\n // a non-primitive type and a type known to be primitive.\n if (includes & 131072 /* Never */) {\n return ts.contains(typeSet, silentNeverType) ? silentNeverType : neverType;\n }\n if (strictNullChecks && includes & 98304 /* Nullable */ && includes & (524288 /* Object */ | 67108864 /* NonPrimitive */ | 16777216 /* IncludesEmptyObject */) ||\n includes & 67108864 /* NonPrimitive */ && includes & (469892092 /* DisjointDomains */ & ~67108864 /* NonPrimitive */) ||\n includes & 402653316 /* StringLike */ && includes & (469892092 /* DisjointDomains */ & ~402653316 /* StringLike */) ||\n includes & 296 /* NumberLike */ && includes & (469892092 /* DisjointDomains */ & ~296 /* NumberLike */) ||\n includes & 2112 /* BigIntLike */ && includes & (469892092 /* DisjointDomains */ & ~2112 /* BigIntLike */) ||\n includes & 12288 /* ESSymbolLike */ && includes & (469892092 /* DisjointDomains */ & ~12288 /* ESSymbolLike */) ||\n includes & 49152 /* VoidLike */ && includes & (469892092 /* DisjointDomains */ & ~49152 /* VoidLike */)) {\n return neverType;\n }\n if (includes & 134217728 /* TemplateLiteral */ && includes & 128 /* StringLiteral */ && extractRedundantTemplateLiterals(typeSet)) {\n return neverType;\n }\n if (includes & 1 /* Any */) {\n return includes & 8388608 /* IncludesWildcard */ ? wildcardType : anyType;\n }\n if (!strictNullChecks && includes & 98304 /* Nullable */) {\n return includes & 32768 /* Undefined */ ? undefinedType : nullType;\n }\n if (includes & 4 /* String */ && includes & 128 /* StringLiteral */ ||\n includes & 8 /* Number */ && includes & 256 /* NumberLiteral */ ||\n includes & 64 /* BigInt */ && includes & 2048 /* BigIntLiteral */ ||\n includes & 4096 /* ESSymbol */ && includes & 8192 /* UniqueESSymbol */) {\n removeRedundantPrimitiveTypes(typeSet, includes);\n }\n if (includes & 16777216 /* IncludesEmptyObject */ && includes & 524288 /* Object */) {\n ts.orderedRemoveItemAt(typeSet, ts.findIndex(typeSet, isEmptyAnonymousObjectType));\n }\n if (typeSet.length === 0) {\n return unknownType;\n }\n if (typeSet.length === 1) {\n return typeSet[0];\n }\n var id = getTypeListId(typeSet) + getAliasId(aliasSymbol, aliasTypeArguments);\n var result = intersectionTypes.get(id);\n if (!result) {\n if (includes & 1048576 /* Union */) {\n if (intersectUnionsOfPrimitiveTypes(typeSet)) {\n // When the intersection creates a reduced set (which might mean that *all* union types have\n // disappeared), we restart the operation to get a new set of combined flags. Once we have\n // reduced we'll never reduce again, so this occurs at most once.\n result = getIntersectionType(typeSet, aliasSymbol, aliasTypeArguments);\n }\n else if (extractIrreducible(typeSet, 32768 /* Undefined */)) {\n result = getUnionType([getIntersectionType(typeSet), undefinedType], 1 /* Literal */, aliasSymbol, aliasTypeArguments);\n }\n else if (extractIrreducible(typeSet, 65536 /* Null */)) {\n result = getUnionType([getIntersectionType(typeSet), nullType], 1 /* Literal */, aliasSymbol, aliasTypeArguments);\n }\n else {\n // We are attempting to construct a type of the form X & (A | B) & (C | D). Transform this into a type of\n // the form X & A & C | X & A & D | X & B & C | X & B & D. If the estimated size of the resulting union type\n // exceeds 100000 constituents, report an error.\n if (!checkCrossProductUnion(typeSet)) {\n return errorType;\n }\n var constituents = getCrossProductIntersections(typeSet);\n // We attach a denormalized origin type when at least one constituent of the cross-product union is an\n // intersection (i.e. when the intersection didn't just reduce one or more unions to smaller unions).\n var origin = ts.some(constituents, function (t) { return !!(t.flags & 2097152 /* Intersection */); }) ? createOriginUnionOrIntersectionType(2097152 /* Intersection */, typeSet) : undefined;\n result = getUnionType(constituents, 1 /* Literal */, aliasSymbol, aliasTypeArguments, origin);\n }\n }\n else {\n result = createIntersectionType(typeSet, aliasSymbol, aliasTypeArguments);\n }\n intersectionTypes.set(id, result);\n }\n return result;\n }\n function getCrossProductUnionSize(types) {\n return ts.reduceLeft(types, function (n, t) { return t.flags & 1048576 /* Union */ ? n * t.types.length : t.flags & 131072 /* Never */ ? 0 : n; }, 1);\n }\n function checkCrossProductUnion(types) {\n var size = getCrossProductUnionSize(types);\n if (size >= 100000) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"checkCrossProductUnion_DepthLimit\", { typeIds: types.map(function (t) { return t.id; }), size: size });\n error(currentNode, ts.Diagnostics.Expression_produces_a_union_type_that_is_too_complex_to_represent);\n return false;\n }\n return true;\n }\n function getCrossProductIntersections(types) {\n var count = getCrossProductUnionSize(types);\n var intersections = [];\n for (var i = 0; i < count; i++) {\n var constituents = types.slice();\n var n = i;\n for (var j = types.length - 1; j >= 0; j--) {\n if (types[j].flags & 1048576 /* Union */) {\n var sourceTypes = types[j].types;\n var length_5 = sourceTypes.length;\n constituents[j] = sourceTypes[n % length_5];\n n = Math.floor(n / length_5);\n }\n }\n var t = getIntersectionType(constituents);\n if (!(t.flags & 131072 /* Never */))\n intersections.push(t);\n }\n return intersections;\n }\n function getTypeFromIntersectionTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n var aliasSymbol = getAliasSymbolForTypeNode(node);\n links.resolvedType = getIntersectionType(ts.map(node.types, getTypeFromTypeNode), aliasSymbol, getTypeArgumentsForAliasSymbol(aliasSymbol));\n }\n return links.resolvedType;\n }\n function createIndexType(type, stringsOnly) {\n var result = createType(4194304 /* Index */);\n result.type = type;\n result.stringsOnly = stringsOnly;\n return result;\n }\n function createOriginIndexType(type) {\n var result = createOriginType(4194304 /* Index */);\n result.type = type;\n return result;\n }\n function getIndexTypeForGenericType(type, stringsOnly) {\n return stringsOnly ?\n type.resolvedStringIndexType || (type.resolvedStringIndexType = createIndexType(type, /*stringsOnly*/ true)) :\n type.resolvedIndexType || (type.resolvedIndexType = createIndexType(type, /*stringsOnly*/ false));\n }\n function instantiateTypeAsMappedNameType(nameType, type, t) {\n return instantiateType(nameType, appendTypeMapping(type.mapper, getTypeParameterFromMappedType(type), t));\n }\n function getIndexTypeForMappedType(type, noIndexSignatures) {\n var constraint = filterType(getConstraintTypeFromMappedType(type), function (t) { return !(noIndexSignatures && t.flags & (1 /* Any */ | 4 /* String */)); });\n var nameType = type.declaration.nameType && getTypeFromTypeNode(type.declaration.nameType);\n // If the constraint is exclusively string/number/never type(s), we need to pull the property names from the modified type and run them through the `nameType` mapper as well\n // since they won't appear in the constraint, due to subtype reducing with the string/number index types\n var properties = nameType && everyType(constraint, function (t) { return !!(t.flags & (4 /* String */ | 8 /* Number */ | 131072 /* Never */)); }) && getPropertiesOfType(getApparentType(getModifiersTypeFromMappedType(type)));\n return nameType ?\n getUnionType([mapType(constraint, function (t) { return instantiateTypeAsMappedNameType(nameType, type, t); }), mapType(getUnionType(ts.map(properties || ts.emptyArray, function (p) { return getLiteralTypeFromProperty(p, 8576 /* StringOrNumberLiteralOrUnique */); })), function (t) { return instantiateTypeAsMappedNameType(nameType, type, t); })]) :\n constraint;\n }\n // Ordinarily we reduce a keyof M, where M is a mapped type { [P in K as N

]: X }, to simply N. This however presumes\n // that N distributes over union types, i.e. that N is equivalent to N | N | N. Specifically, we only\n // want to perform the reduction when the name type of a mapped type is distributive with respect to the type variable\n // introduced by the 'in' clause of the mapped type. Note that non-generic types are considered to be distributive because\n // they're the same type regardless of what's being distributed over.\n function hasDistributiveNameType(mappedType) {\n var typeVariable = getTypeParameterFromMappedType(mappedType);\n return isDistributive(getNameTypeFromMappedType(mappedType) || typeVariable);\n function isDistributive(type) {\n return type.flags & (3 /* AnyOrUnknown */ | 131068 /* Primitive */ | 131072 /* Never */ | 262144 /* TypeParameter */ | 524288 /* Object */ | 67108864 /* NonPrimitive */) ? true :\n type.flags & 16777216 /* Conditional */ ? type.root.isDistributive && type.checkType === typeVariable :\n type.flags & (3145728 /* UnionOrIntersection */ | 134217728 /* TemplateLiteral */) ? ts.every(type.types, isDistributive) :\n type.flags & 8388608 /* IndexedAccess */ ? isDistributive(type.objectType) && isDistributive(type.indexType) :\n type.flags & 33554432 /* Substitution */ ? isDistributive(type.substitute) :\n type.flags & 268435456 /* StringMapping */ ? isDistributive(type.type) :\n false;\n }\n }\n function getLiteralTypeFromPropertyName(name) {\n if (ts.isPrivateIdentifier(name)) {\n return neverType;\n }\n return ts.isIdentifier(name) ? getStringLiteralType(ts.unescapeLeadingUnderscores(name.escapedText)) :\n getRegularTypeOfLiteralType(ts.isComputedPropertyName(name) ? checkComputedPropertyName(name) : checkExpression(name));\n }\n function getLiteralTypeFromProperty(prop, include, includeNonPublic) {\n if (includeNonPublic || !(ts.getDeclarationModifierFlagsFromSymbol(prop) & 24 /* NonPublicAccessibilityModifier */)) {\n var type = getSymbolLinks(getLateBoundSymbol(prop)).nameType;\n if (!type) {\n var name = ts.getNameOfDeclaration(prop.valueDeclaration);\n type = prop.escapedName === \"default\" /* Default */ ? getStringLiteralType(\"default\") :\n name && getLiteralTypeFromPropertyName(name) || (!ts.isKnownSymbol(prop) ? getStringLiteralType(ts.symbolName(prop)) : undefined);\n }\n if (type && type.flags & include) {\n return type;\n }\n }\n return neverType;\n }\n function getLiteralTypeFromProperties(type, include, includeOrigin) {\n var origin = includeOrigin && (ts.getObjectFlags(type) & (3 /* ClassOrInterface */ | 4 /* Reference */) || type.aliasSymbol) ? createOriginIndexType(type) : undefined;\n var propertyTypes = ts.map(getPropertiesOfType(type), function (prop) { return getLiteralTypeFromProperty(prop, include); });\n var indexKeyTypes = ts.map(getIndexInfosOfType(type), function (info) { return info !== enumNumberIndexInfo && info.keyType.flags & include ?\n info.keyType === stringType && include & 8 /* Number */ ? stringOrNumberType : info.keyType : neverType; });\n return getUnionType(ts.concatenate(propertyTypes, indexKeyTypes), 1 /* Literal */, \n /*aliasSymbol*/ undefined, /*aliasTypeArguments*/ undefined, origin);\n }\n function getIndexType(type, stringsOnly, noIndexSignatures) {\n if (stringsOnly === void 0) { stringsOnly = keyofStringsOnly; }\n type = getReducedType(type);\n return type.flags & 1048576 /* Union */ ? getIntersectionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :\n type.flags & 2097152 /* Intersection */ ? getUnionType(ts.map(type.types, function (t) { return getIndexType(t, stringsOnly, noIndexSignatures); })) :\n type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericTupleType(type) || isGenericMappedType(type) && !hasDistributiveNameType(type) ? getIndexTypeForGenericType(type, stringsOnly) :\n ts.getObjectFlags(type) & 32 /* Mapped */ ? getIndexTypeForMappedType(type, noIndexSignatures) :\n type === wildcardType ? wildcardType :\n type.flags & 2 /* Unknown */ ? neverType :\n type.flags & (1 /* Any */ | 131072 /* Never */) ? keyofConstraintType :\n getLiteralTypeFromProperties(type, (noIndexSignatures ? 128 /* StringLiteral */ : 402653316 /* StringLike */) | (stringsOnly ? 0 : 296 /* NumberLike */ | 12288 /* ESSymbolLike */), stringsOnly === keyofStringsOnly && !noIndexSignatures);\n }\n function getExtractStringType(type) {\n if (keyofStringsOnly) {\n return type;\n }\n var extractTypeAlias = getGlobalExtractSymbol();\n return extractTypeAlias ? getTypeAliasInstantiation(extractTypeAlias, [type, stringType]) : stringType;\n }\n function getIndexTypeOrString(type) {\n var indexType = getExtractStringType(getIndexType(type));\n return indexType.flags & 131072 /* Never */ ? stringType : indexType;\n }\n function getTypeFromTypeOperatorNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n switch (node.operator) {\n case 139 /* KeyOfKeyword */:\n links.resolvedType = getIndexType(getTypeFromTypeNode(node.type));\n break;\n case 152 /* UniqueKeyword */:\n links.resolvedType = node.type.kind === 149 /* SymbolKeyword */\n ? getESSymbolLikeTypeForNode(ts.walkUpParenthesizedTypes(node.parent))\n : errorType;\n break;\n case 143 /* ReadonlyKeyword */:\n links.resolvedType = getTypeFromTypeNode(node.type);\n break;\n default:\n throw ts.Debug.assertNever(node.operator);\n }\n }\n return links.resolvedType;\n }\n function getTypeFromTemplateTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n links.resolvedType = getTemplateLiteralType(__spreadArray([node.head.text], ts.map(node.templateSpans, function (span) { return span.literal.text; }), true), ts.map(node.templateSpans, function (span) { return getTypeFromTypeNode(span.type); }));\n }\n return links.resolvedType;\n }\n function getTemplateLiteralType(texts, types) {\n var unionIndex = ts.findIndex(types, function (t) { return !!(t.flags & (131072 /* Never */ | 1048576 /* Union */)); });\n if (unionIndex >= 0) {\n return checkCrossProductUnion(types) ?\n mapType(types[unionIndex], function (t) { return getTemplateLiteralType(texts, ts.replaceElement(types, unionIndex, t)); }) :\n errorType;\n }\n if (ts.contains(types, wildcardType)) {\n return wildcardType;\n }\n var newTypes = [];\n var newTexts = [];\n var text = texts[0];\n if (!addSpans(texts, types)) {\n return stringType;\n }\n if (newTypes.length === 0) {\n return getStringLiteralType(text);\n }\n newTexts.push(text);\n if (ts.every(newTexts, function (t) { return t === \"\"; }) && ts.every(newTypes, function (t) { return !!(t.flags & 4 /* String */); })) {\n return stringType;\n }\n var id = getTypeListId(newTypes) + \"|\" + ts.map(newTexts, function (t) { return t.length; }).join(\",\") + \"|\" + newTexts.join(\"\");\n var type = templateLiteralTypes.get(id);\n if (!type) {\n templateLiteralTypes.set(id, type = createTemplateLiteralType(newTexts, newTypes));\n }\n return type;\n function addSpans(texts, types) {\n for (var i = 0; i < types.length; i++) {\n var t = types[i];\n if (t.flags & (2944 /* Literal */ | 65536 /* Null */ | 32768 /* Undefined */)) {\n text += getTemplateStringForType(t) || \"\";\n text += texts[i + 1];\n }\n else if (t.flags & 134217728 /* TemplateLiteral */) {\n text += t.texts[0];\n if (!addSpans(t.texts, t.types))\n return false;\n text += texts[i + 1];\n }\n else if (isGenericIndexType(t) || isPatternLiteralPlaceholderType(t)) {\n newTypes.push(t);\n newTexts.push(text);\n text = texts[i + 1];\n }\n else {\n return false;\n }\n }\n return true;\n }\n }\n function getTemplateStringForType(type) {\n return type.flags & 128 /* StringLiteral */ ? type.value :\n type.flags & 256 /* NumberLiteral */ ? \"\" + type.value :\n type.flags & 2048 /* BigIntLiteral */ ? ts.pseudoBigIntToString(type.value) :\n type.flags & (512 /* BooleanLiteral */ | 98304 /* Nullable */) ? type.intrinsicName :\n undefined;\n }\n function createTemplateLiteralType(texts, types) {\n var type = createType(134217728 /* TemplateLiteral */);\n type.texts = texts;\n type.types = types;\n return type;\n }\n function getStringMappingType(symbol, type) {\n return type.flags & (1048576 /* Union */ | 131072 /* Never */) ? mapType(type, function (t) { return getStringMappingType(symbol, t); }) :\n isGenericIndexType(type) ? getStringMappingTypeForGenericType(symbol, type) :\n type.flags & 128 /* StringLiteral */ ? getStringLiteralType(applyStringMapping(symbol, type.value)) :\n type;\n }\n function applyStringMapping(symbol, str) {\n switch (intrinsicTypeKinds.get(symbol.escapedName)) {\n case 0 /* Uppercase */: return str.toUpperCase();\n case 1 /* Lowercase */: return str.toLowerCase();\n case 2 /* Capitalize */: return str.charAt(0).toUpperCase() + str.slice(1);\n case 3 /* Uncapitalize */: return str.charAt(0).toLowerCase() + str.slice(1);\n }\n return str;\n }\n function getStringMappingTypeForGenericType(symbol, type) {\n var id = getSymbolId(symbol) + \",\" + getTypeId(type);\n var result = stringMappingTypes.get(id);\n if (!result) {\n stringMappingTypes.set(id, result = createStringMappingType(symbol, type));\n }\n return result;\n }\n function createStringMappingType(symbol, type) {\n var result = createType(268435456 /* StringMapping */);\n result.symbol = symbol;\n result.type = type;\n return result;\n }\n function createIndexedAccessType(objectType, indexType, accessFlags, aliasSymbol, aliasTypeArguments) {\n var type = createType(8388608 /* IndexedAccess */);\n type.objectType = objectType;\n type.indexType = indexType;\n type.accessFlags = accessFlags;\n type.aliasSymbol = aliasSymbol;\n type.aliasTypeArguments = aliasTypeArguments;\n return type;\n }\n /**\n * Returns if a type is or consists of a JSLiteral object type\n * In addition to objects which are directly literals,\n * * unions where every element is a jsliteral\n * * intersections where at least one element is a jsliteral\n * * and instantiable types constrained to a jsliteral\n * Should all count as literals and not print errors on access or assignment of possibly existing properties.\n * This mirrors the behavior of the index signature propagation, to which this behaves similarly (but doesn't affect assignability or inference).\n */\n function isJSLiteralType(type) {\n if (noImplicitAny) {\n return false; // Flag is meaningless under `noImplicitAny` mode\n }\n if (ts.getObjectFlags(type) & 8192 /* JSLiteral */) {\n return true;\n }\n if (type.flags & 1048576 /* Union */) {\n return ts.every(type.types, isJSLiteralType);\n }\n if (type.flags & 2097152 /* Intersection */) {\n return ts.some(type.types, isJSLiteralType);\n }\n if (type.flags & 465829888 /* Instantiable */) {\n var constraint = getResolvedBaseConstraint(type);\n return constraint !== type && isJSLiteralType(constraint);\n }\n return false;\n }\n function getPropertyNameFromIndex(indexType, accessNode) {\n return isTypeUsableAsPropertyName(indexType) ?\n getPropertyNameFromType(indexType) :\n accessNode && ts.isPropertyName(accessNode) ?\n // late bound names are handled in the first branch, so here we only need to handle normal names\n ts.getPropertyNameForPropertyNameNode(accessNode) :\n undefined;\n }\n function isUncalledFunctionReference(node, symbol) {\n if (symbol.flags & (16 /* Function */ | 8192 /* Method */)) {\n var parent = ts.findAncestor(node.parent, function (n) { return !ts.isAccessExpression(n); }) || node.parent;\n if (ts.isCallLikeExpression(parent)) {\n return ts.isCallOrNewExpression(parent) && ts.isIdentifier(node) && hasMatchingArgument(parent, node);\n }\n return ts.every(symbol.declarations, function (d) { return !ts.isFunctionLike(d) || !!(ts.getCombinedNodeFlags(d) & 134217728 /* Deprecated */); });\n }\n return true;\n }\n function getPropertyTypeForIndexType(originalObjectType, objectType, indexType, fullIndexType, accessNode, accessFlags) {\n var _a;\n var accessExpression = accessNode && accessNode.kind === 205 /* ElementAccessExpression */ ? accessNode : undefined;\n var propName = accessNode && ts.isPrivateIdentifier(accessNode) ? undefined : getPropertyNameFromIndex(indexType, accessNode);\n if (propName !== undefined) {\n if (accessFlags & 256 /* Contextual */) {\n return getTypeOfPropertyOfContextualType(objectType, propName) || anyType;\n }\n var prop = getPropertyOfType(objectType, propName);\n if (prop) {\n if (accessFlags & 64 /* ReportDeprecated */ && accessNode && prop.declarations && getDeclarationNodeFlagsFromSymbol(prop) & 134217728 /* Deprecated */ && isUncalledFunctionReference(accessNode, prop)) {\n var deprecatedNode = (_a = accessExpression === null || accessExpression === void 0 ? void 0 : accessExpression.argumentExpression) !== null && _a !== void 0 ? _a : (ts.isIndexedAccessTypeNode(accessNode) ? accessNode.indexType : accessNode);\n addDeprecatedSuggestion(deprecatedNode, prop.declarations, propName);\n }\n if (accessExpression) {\n markPropertyAsReferenced(prop, accessExpression, isSelfTypeAccess(accessExpression.expression, objectType.symbol));\n if (isAssignmentToReadonlyEntity(accessExpression, prop, ts.getAssignmentTargetKind(accessExpression))) {\n error(accessExpression.argumentExpression, ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(prop));\n return undefined;\n }\n if (accessFlags & 8 /* CacheSymbol */) {\n getNodeLinks(accessNode).resolvedSymbol = prop;\n }\n if (isThisPropertyAccessInConstructor(accessExpression, prop)) {\n return autoType;\n }\n }\n var propType = getTypeOfSymbol(prop);\n return accessExpression && ts.getAssignmentTargetKind(accessExpression) !== 1 /* Definite */ ?\n getFlowTypeOfReference(accessExpression, propType) :\n propType;\n }\n if (everyType(objectType, isTupleType) && isNumericLiteralName(propName) && +propName >= 0) {\n if (accessNode && everyType(objectType, function (t) { return !t.target.hasRestElement; }) && !(accessFlags & 16 /* NoTupleBoundsCheck */)) {\n var indexNode = getIndexNodeForAccessExpression(accessNode);\n if (isTupleType(objectType)) {\n error(indexNode, ts.Diagnostics.Tuple_type_0_of_length_1_has_no_element_at_index_2, typeToString(objectType), getTypeReferenceArity(objectType), ts.unescapeLeadingUnderscores(propName));\n }\n else {\n error(indexNode, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.unescapeLeadingUnderscores(propName), typeToString(objectType));\n }\n }\n errorIfWritingToReadonlyIndex(getIndexInfoOfType(objectType, numberType));\n return mapType(objectType, function (t) {\n var restType = getRestTypeOfTupleType(t) || undefinedType;\n return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([restType, undefinedType]) : restType;\n });\n }\n }\n if (!(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */)) {\n if (objectType.flags & (1 /* Any */ | 131072 /* Never */)) {\n return objectType;\n }\n // If no index signature is applicable, we default to the string index signature. In effect, this means the string\n // index signature applies even when accessing with a symbol-like type.\n var indexInfo = getApplicableIndexInfo(objectType, indexType) || getIndexInfoOfType(objectType, stringType);\n if (indexInfo) {\n if (accessFlags & 2 /* NoIndexSignatures */ && indexInfo.keyType !== numberType) {\n if (accessExpression) {\n error(accessExpression, ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(originalObjectType));\n }\n return undefined;\n }\n if (accessNode && indexInfo.keyType === stringType && !isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) {\n var indexNode = getIndexNodeForAccessExpression(accessNode);\n error(indexNode, ts.Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType));\n return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;\n }\n errorIfWritingToReadonlyIndex(indexInfo);\n return accessFlags & 1 /* IncludeUndefined */ ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;\n }\n if (indexType.flags & 131072 /* Never */) {\n return neverType;\n }\n if (isJSLiteralType(objectType)) {\n return anyType;\n }\n if (accessExpression && !isConstEnumObjectType(objectType)) {\n if (isObjectLiteralType(objectType)) {\n if (noImplicitAny && indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) {\n diagnostics.add(ts.createDiagnosticForNode(accessExpression, ts.Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType)));\n return undefinedType;\n }\n else if (indexType.flags & (8 /* Number */ | 4 /* String */)) {\n var types = ts.map(objectType.properties, function (property) {\n return getTypeOfSymbol(property);\n });\n return getUnionType(ts.append(types, undefinedType));\n }\n }\n if (objectType.symbol === globalThisSymbol && propName !== undefined && globalThisSymbol.exports.has(propName) && (globalThisSymbol.exports.get(propName).flags & 418 /* BlockScoped */)) {\n error(accessExpression, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.unescapeLeadingUnderscores(propName), typeToString(objectType));\n }\n else if (noImplicitAny && !compilerOptions.suppressImplicitAnyIndexErrors && !(accessFlags & 128 /* SuppressNoImplicitAnyError */)) {\n if (propName !== undefined && typeHasStaticProperty(propName, objectType)) {\n var typeName = typeToString(objectType);\n error(accessExpression, ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + \"[\" + ts.getTextOfNode(accessExpression.argumentExpression) + \"]\");\n }\n else if (getIndexTypeOfType(objectType, numberType)) {\n error(accessExpression.argumentExpression, ts.Diagnostics.Element_implicitly_has_an_any_type_because_index_expression_is_not_of_type_number);\n }\n else {\n var suggestion = void 0;\n if (propName !== undefined && (suggestion = getSuggestionForNonexistentProperty(propName, objectType))) {\n if (suggestion !== undefined) {\n error(accessExpression.argumentExpression, ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(objectType), suggestion);\n }\n }\n else {\n var suggestion_1 = getSuggestionForNonexistentIndexSignature(objectType, accessExpression, indexType);\n if (suggestion_1 !== undefined) {\n error(accessExpression, ts.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature_Did_you_mean_to_call_1, typeToString(objectType), suggestion_1);\n }\n else {\n var errorInfo = void 0;\n if (indexType.flags & 1024 /* EnumLiteral */) {\n errorInfo = ts.chainDiagnosticMessages(/* details */ undefined, ts.Diagnostics.Property_0_does_not_exist_on_type_1, \"[\" + typeToString(indexType) + \"]\", typeToString(objectType));\n }\n else if (indexType.flags & 8192 /* UniqueESSymbol */) {\n var symbolName_2 = getFullyQualifiedName(indexType.symbol, accessExpression);\n errorInfo = ts.chainDiagnosticMessages(/* details */ undefined, ts.Diagnostics.Property_0_does_not_exist_on_type_1, \"[\" + symbolName_2 + \"]\", typeToString(objectType));\n }\n else if (indexType.flags & 128 /* StringLiteral */) {\n errorInfo = ts.chainDiagnosticMessages(/* details */ undefined, ts.Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType));\n }\n else if (indexType.flags & 256 /* NumberLiteral */) {\n errorInfo = ts.chainDiagnosticMessages(/* details */ undefined, ts.Diagnostics.Property_0_does_not_exist_on_type_1, indexType.value, typeToString(objectType));\n }\n else if (indexType.flags & (8 /* Number */ | 4 /* String */)) {\n errorInfo = ts.chainDiagnosticMessages(/* details */ undefined, ts.Diagnostics.No_index_signature_with_a_parameter_of_type_0_was_found_on_type_1, typeToString(indexType), typeToString(objectType));\n }\n errorInfo = ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Element_implicitly_has_an_any_type_because_expression_of_type_0_can_t_be_used_to_index_type_1, typeToString(fullIndexType), typeToString(objectType));\n diagnostics.add(ts.createDiagnosticForNodeFromMessageChain(accessExpression, errorInfo));\n }\n }\n }\n }\n return undefined;\n }\n }\n if (isJSLiteralType(objectType)) {\n return anyType;\n }\n if (accessNode) {\n var indexNode = getIndexNodeForAccessExpression(accessNode);\n if (indexType.flags & (128 /* StringLiteral */ | 256 /* NumberLiteral */)) {\n error(indexNode, ts.Diagnostics.Property_0_does_not_exist_on_type_1, \"\" + indexType.value, typeToString(objectType));\n }\n else if (indexType.flags & (4 /* String */ | 8 /* Number */)) {\n error(indexNode, ts.Diagnostics.Type_0_has_no_matching_index_signature_for_type_1, typeToString(objectType), typeToString(indexType));\n }\n else {\n error(indexNode, ts.Diagnostics.Type_0_cannot_be_used_as_an_index_type, typeToString(indexType));\n }\n }\n if (isTypeAny(indexType)) {\n return indexType;\n }\n return undefined;\n function errorIfWritingToReadonlyIndex(indexInfo) {\n if (indexInfo && indexInfo.isReadonly && accessExpression && (ts.isAssignmentTarget(accessExpression) || ts.isDeleteTarget(accessExpression))) {\n error(accessExpression, ts.Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));\n }\n }\n }\n function getIndexNodeForAccessExpression(accessNode) {\n return accessNode.kind === 205 /* ElementAccessExpression */ ? accessNode.argumentExpression :\n accessNode.kind === 192 /* IndexedAccessType */ ? accessNode.indexType :\n accessNode.kind === 160 /* ComputedPropertyName */ ? accessNode.expression :\n accessNode;\n }\n function isPatternLiteralPlaceholderType(type) {\n return !!(type.flags & (1 /* Any */ | 4 /* String */ | 8 /* Number */ | 64 /* BigInt */));\n }\n function isPatternLiteralType(type) {\n return !!(type.flags & 134217728 /* TemplateLiteral */) && ts.every(type.types, isPatternLiteralPlaceholderType);\n }\n function isGenericType(type) {\n return !!getGenericObjectFlags(type);\n }\n function isGenericObjectType(type) {\n return !!(getGenericObjectFlags(type) & 8388608 /* IsGenericObjectType */);\n }\n function isGenericIndexType(type) {\n return !!(getGenericObjectFlags(type) & 16777216 /* IsGenericIndexType */);\n }\n function getGenericObjectFlags(type) {\n if (type.flags & 3145728 /* UnionOrIntersection */) {\n if (!(type.objectFlags & 4194304 /* IsGenericTypeComputed */)) {\n type.objectFlags |= 4194304 /* IsGenericTypeComputed */ |\n ts.reduceLeft(type.types, function (flags, t) { return flags | getGenericObjectFlags(t); }, 0);\n }\n return type.objectFlags & 25165824 /* IsGenericType */;\n }\n if (type.flags & 33554432 /* Substitution */) {\n if (!(type.objectFlags & 4194304 /* IsGenericTypeComputed */)) {\n type.objectFlags |= 4194304 /* IsGenericTypeComputed */ |\n getGenericObjectFlags(type.substitute) | getGenericObjectFlags(type.baseType);\n }\n return type.objectFlags & 25165824 /* IsGenericType */;\n }\n return (type.flags & 58982400 /* InstantiableNonPrimitive */ || isGenericMappedType(type) || isGenericTupleType(type) ? 8388608 /* IsGenericObjectType */ : 0) |\n (type.flags & (58982400 /* InstantiableNonPrimitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && !isPatternLiteralType(type) ? 16777216 /* IsGenericIndexType */ : 0);\n }\n function isThisTypeParameter(type) {\n return !!(type.flags & 262144 /* TypeParameter */ && type.isThisType);\n }\n function getSimplifiedType(type, writing) {\n return type.flags & 8388608 /* IndexedAccess */ ? getSimplifiedIndexedAccessType(type, writing) :\n type.flags & 16777216 /* Conditional */ ? getSimplifiedConditionalType(type, writing) :\n type;\n }\n function distributeIndexOverObjectType(objectType, indexType, writing) {\n // (T | U)[K] -> T[K] | U[K] (reading)\n // (T | U)[K] -> T[K] & U[K] (writing)\n // (T & U)[K] -> T[K] & U[K]\n if (objectType.flags & 3145728 /* UnionOrIntersection */) {\n var types = ts.map(objectType.types, function (t) { return getSimplifiedType(getIndexedAccessType(t, indexType), writing); });\n return objectType.flags & 2097152 /* Intersection */ || writing ? getIntersectionType(types) : getUnionType(types);\n }\n }\n function distributeObjectOverIndexType(objectType, indexType, writing) {\n // T[A | B] -> T[A] | T[B] (reading)\n // T[A | B] -> T[A] & T[B] (writing)\n if (indexType.flags & 1048576 /* Union */) {\n var types = ts.map(indexType.types, function (t) { return getSimplifiedType(getIndexedAccessType(objectType, t), writing); });\n return writing ? getIntersectionType(types) : getUnionType(types);\n }\n }\n // Transform an indexed access to a simpler form, if possible. Return the simpler form, or return\n // the type itself if no transformation is possible. The writing flag indicates that the type is\n // the target of an assignment.\n function getSimplifiedIndexedAccessType(type, writing) {\n var cache = writing ? \"simplifiedForWriting\" : \"simplifiedForReading\";\n if (type[cache]) {\n return type[cache] === circularConstraintType ? type : type[cache];\n }\n type[cache] = circularConstraintType;\n // We recursively simplify the object type as it may in turn be an indexed access type. For example, with\n // '{ [P in T]: { [Q in U]: number } }[T][U]' we want to first simplify the inner indexed access type.\n var objectType = getSimplifiedType(type.objectType, writing);\n var indexType = getSimplifiedType(type.indexType, writing);\n // T[A | B] -> T[A] | T[B] (reading)\n // T[A | B] -> T[A] & T[B] (writing)\n var distributedOverIndex = distributeObjectOverIndexType(objectType, indexType, writing);\n if (distributedOverIndex) {\n return type[cache] = distributedOverIndex;\n }\n // Only do the inner distributions if the index can no longer be instantiated to cause index distribution again\n if (!(indexType.flags & 465829888 /* Instantiable */)) {\n // (T | U)[K] -> T[K] | U[K] (reading)\n // (T | U)[K] -> T[K] & U[K] (writing)\n // (T & U)[K] -> T[K] & U[K]\n var distributedOverObject = distributeIndexOverObjectType(objectType, indexType, writing);\n if (distributedOverObject) {\n return type[cache] = distributedOverObject;\n }\n }\n // So ultimately (reading):\n // ((A & B) | C)[K1 | K2] -> ((A & B) | C)[K1] | ((A & B) | C)[K2] -> (A & B)[K1] | C[K1] | (A & B)[K2] | C[K2] -> (A[K1] & B[K1]) | C[K1] | (A[K2] & B[K2]) | C[K2]\n // A generic tuple type indexed by a number exists only when the index type doesn't select a\n // fixed element. We simplify to either the combined type of all elements (when the index type\n // the actual number type) or to the combined type of all non-fixed elements.\n if (isGenericTupleType(objectType) && indexType.flags & 296 /* NumberLike */) {\n var elementType = getElementTypeOfSliceOfTupleType(objectType, indexType.flags & 8 /* Number */ ? 0 : objectType.target.fixedLength, /*endSkipCount*/ 0, writing);\n if (elementType) {\n return type[cache] = elementType;\n }\n }\n // If the object type is a mapped type { [P in K]: E }, where K is generic, instantiate E using a mapper\n // that substitutes the index type for P. For example, for an index access { [P in K]: Box }[X], we\n // construct the type Box.\n if (isGenericMappedType(objectType)) {\n return type[cache] = mapType(substituteIndexedMappedType(objectType, type.indexType), function (t) { return getSimplifiedType(t, writing); });\n }\n return type[cache] = type;\n }\n function isConditionalTypeAlwaysTrueDisregardingInferTypes(type) {\n var extendsInferParamMapper = type.root.inferTypeParameters && createTypeMapper(type.root.inferTypeParameters, ts.map(type.root.inferTypeParameters, function () { return wildcardType; }));\n var checkType = type.checkType;\n var extendsType = type.extendsType;\n return isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(instantiateType(extendsType, extendsInferParamMapper)));\n }\n function getSimplifiedConditionalType(type, writing) {\n var checkType = type.checkType;\n var extendsType = type.extendsType;\n var trueType = getTrueTypeFromConditionalType(type);\n var falseType = getFalseTypeFromConditionalType(type);\n // Simplifications for types of the form `T extends U ? T : never` and `T extends U ? never : T`.\n if (falseType.flags & 131072 /* Never */ && getActualTypeVariable(trueType) === getActualTypeVariable(checkType)) {\n if (checkType.flags & 1 /* Any */ || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) { // Always true\n return getSimplifiedType(trueType, writing);\n }\n else if (isIntersectionEmpty(checkType, extendsType)) { // Always false\n return neverType;\n }\n }\n else if (trueType.flags & 131072 /* Never */ && getActualTypeVariable(falseType) === getActualTypeVariable(checkType)) {\n if (!(checkType.flags & 1 /* Any */) && isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(extendsType))) { // Always true\n return neverType;\n }\n else if (checkType.flags & 1 /* Any */ || isIntersectionEmpty(checkType, extendsType)) { // Always false\n return getSimplifiedType(falseType, writing);\n }\n }\n return type;\n }\n /**\n * Invokes union simplification logic to determine if an intersection is considered empty as a union constituent\n */\n function isIntersectionEmpty(type1, type2) {\n return !!(getUnionType([intersectTypes(type1, type2), neverType]).flags & 131072 /* Never */);\n }\n function substituteIndexedMappedType(objectType, index) {\n var mapper = createTypeMapper([getTypeParameterFromMappedType(objectType)], [index]);\n var templateMapper = combineTypeMappers(objectType.mapper, mapper);\n return instantiateType(getTemplateTypeFromMappedType(objectType), templateMapper);\n }\n function getIndexedAccessType(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) {\n if (accessFlags === void 0) { accessFlags = 0 /* None */; }\n return getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) || (accessNode ? errorType : unknownType);\n }\n function indexTypeLessThan(indexType, limit) {\n return everyType(indexType, function (t) {\n if (t.flags & 384 /* StringOrNumberLiteral */) {\n var propName = getPropertyNameFromType(t);\n if (isNumericLiteralName(propName)) {\n var index = +propName;\n return index >= 0 && index < limit;\n }\n }\n return false;\n });\n }\n function getIndexedAccessTypeOrUndefined(objectType, indexType, accessFlags, accessNode, aliasSymbol, aliasTypeArguments) {\n if (accessFlags === void 0) { accessFlags = 0 /* None */; }\n if (objectType === wildcardType || indexType === wildcardType) {\n return wildcardType;\n }\n // If the object type has a string index signature and no other members we know that the result will\n // always be the type of that index signature and we can simplify accordingly.\n if (isStringIndexSignatureOnlyType(objectType) && !(indexType.flags & 98304 /* Nullable */) && isTypeAssignableToKind(indexType, 4 /* String */ | 8 /* Number */)) {\n indexType = stringType;\n }\n // In noUncheckedIndexedAccess mode, indexed access operations that occur in an expression in a read position and resolve to\n // an index signature have 'undefined' included in their type.\n if (compilerOptions.noUncheckedIndexedAccess && accessFlags & 32 /* ExpressionPosition */)\n accessFlags |= 1 /* IncludeUndefined */;\n // If the index type is generic, or if the object type is generic and doesn't originate in an expression and\n // the operation isn't exclusively indexing the fixed (non-variadic) portion of a tuple type, we are performing\n // a higher-order index access where we cannot meaningfully access the properties of the object type. Note that\n // for a generic T and a non-generic K, we eagerly resolve T[K] if it originates in an expression. This is to\n // preserve backwards compatibility. For example, an element access 'this[\"foo\"]' has always been resolved\n // eagerly using the constraint type of 'this' at the given location.\n if (isGenericIndexType(indexType) || (accessNode && accessNode.kind !== 192 /* IndexedAccessType */ ?\n isGenericTupleType(objectType) && !indexTypeLessThan(indexType, objectType.target.fixedLength) :\n isGenericObjectType(objectType) && !(isTupleType(objectType) && indexTypeLessThan(indexType, objectType.target.fixedLength)))) {\n if (objectType.flags & 3 /* AnyOrUnknown */) {\n return objectType;\n }\n // Defer the operation by creating an indexed access type.\n var persistentAccessFlags = accessFlags & 1 /* Persistent */;\n var id = objectType.id + \",\" + indexType.id + \",\" + persistentAccessFlags + getAliasId(aliasSymbol, aliasTypeArguments);\n var type = indexedAccessTypes.get(id);\n if (!type) {\n indexedAccessTypes.set(id, type = createIndexedAccessType(objectType, indexType, persistentAccessFlags, aliasSymbol, aliasTypeArguments));\n }\n return type;\n }\n // In the following we resolve T[K] to the type of the property in T selected by K.\n // We treat boolean as different from other unions to improve errors;\n // skipping straight to getPropertyTypeForIndexType gives errors with 'boolean' instead of 'true'.\n var apparentObjectType = getReducedApparentType(objectType);\n if (indexType.flags & 1048576 /* Union */ && !(indexType.flags & 16 /* Boolean */)) {\n var propTypes = [];\n var wasMissingProp = false;\n for (var _i = 0, _a = indexType.types; _i < _a.length; _i++) {\n var t = _a[_i];\n var propType = getPropertyTypeForIndexType(objectType, apparentObjectType, t, indexType, accessNode, accessFlags | (wasMissingProp ? 128 /* SuppressNoImplicitAnyError */ : 0));\n if (propType) {\n propTypes.push(propType);\n }\n else if (!accessNode) {\n // If there's no error node, we can immeditely stop, since error reporting is off\n return undefined;\n }\n else {\n // Otherwise we set a flag and return at the end of the loop so we still mark all errors\n wasMissingProp = true;\n }\n }\n if (wasMissingProp) {\n return undefined;\n }\n return accessFlags & 4 /* Writing */\n ? getIntersectionType(propTypes, aliasSymbol, aliasTypeArguments)\n : getUnionType(propTypes, 1 /* Literal */, aliasSymbol, aliasTypeArguments);\n }\n return getPropertyTypeForIndexType(objectType, apparentObjectType, indexType, indexType, accessNode, accessFlags | 8 /* CacheSymbol */ | 64 /* ReportDeprecated */);\n }\n function getTypeFromIndexedAccessTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n var objectType = getTypeFromTypeNode(node.objectType);\n var indexType = getTypeFromTypeNode(node.indexType);\n var potentialAlias = getAliasSymbolForTypeNode(node);\n var resolved = getIndexedAccessType(objectType, indexType, 0 /* None */, node, potentialAlias, getTypeArgumentsForAliasSymbol(potentialAlias));\n links.resolvedType = resolved.flags & 8388608 /* IndexedAccess */ &&\n resolved.objectType === objectType &&\n resolved.indexType === indexType ?\n getConditionalFlowTypeOfType(resolved, node) : resolved;\n }\n return links.resolvedType;\n }\n function getTypeFromMappedTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n var type = createObjectType(32 /* Mapped */, node.symbol);\n type.declaration = node;\n type.aliasSymbol = getAliasSymbolForTypeNode(node);\n type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(type.aliasSymbol);\n links.resolvedType = type;\n // Eagerly resolve the constraint type which forces an error if the constraint type circularly\n // references itself through one or more type aliases.\n getConstraintTypeFromMappedType(type);\n }\n return links.resolvedType;\n }\n function getActualTypeVariable(type) {\n if (type.flags & 33554432 /* Substitution */) {\n return type.baseType;\n }\n if (type.flags & 8388608 /* IndexedAccess */ && (type.objectType.flags & 33554432 /* Substitution */ ||\n type.indexType.flags & 33554432 /* Substitution */)) {\n return getIndexedAccessType(getActualTypeVariable(type.objectType), getActualTypeVariable(type.indexType));\n }\n return type;\n }\n function isTypicalNondistributiveConditional(root) {\n return !root.isDistributive && isSingletonTupleType(root.node.checkType) && isSingletonTupleType(root.node.extendsType);\n }\n function isSingletonTupleType(node) {\n return ts.isTupleTypeNode(node) && ts.length(node.elements) === 1 && !ts.isOptionalTypeNode(node.elements[0]) && !ts.isRestTypeNode(node.elements[0]);\n }\n /**\n * We syntactually check for common nondistributive conditional shapes and unwrap them into\n * the intended comparison - we do this so we can check if the unwrapped types are generic or\n * not and appropriately defer condition calculation\n */\n function unwrapNondistributiveConditionalTuple(root, type) {\n return isTypicalNondistributiveConditional(root) && isTupleType(type) ? getTypeArguments(type)[0] : type;\n }\n function getConditionalType(root, mapper, aliasSymbol, aliasTypeArguments) {\n var result;\n var extraTypes;\n // We loop here for an immediately nested conditional type in the false position, effectively treating\n // types of the form 'A extends B ? X : C extends D ? Y : E extends F ? Z : ...' as a single construct for\n // purposes of resolution. This means such types aren't subject to the instantiation depth limiter.\n while (true) {\n var isUnwrapped = isTypicalNondistributiveConditional(root);\n var checkType = instantiateType(unwrapNondistributiveConditionalTuple(root, getActualTypeVariable(root.checkType)), mapper);\n var checkTypeInstantiable = isGenericType(checkType);\n var extendsType = instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), mapper);\n if (checkType === wildcardType || extendsType === wildcardType) {\n return wildcardType;\n }\n var combinedMapper = void 0;\n if (root.inferTypeParameters) {\n var context = createInferenceContext(root.inferTypeParameters, /*signature*/ undefined, 0 /* None */);\n if (!checkTypeInstantiable) {\n // We don't want inferences from constraints as they may cause us to eagerly resolve the\n // conditional type instead of deferring resolution. Also, we always want strict function\n // types rules (i.e. proper contravariance) for inferences.\n inferTypes(context.inferences, checkType, extendsType, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */);\n }\n // It's possible for 'infer T' type paramteters to be given uninstantiated constraints when the\n // those type parameters are used in type references (see getInferredTypeParameterConstraint). For\n // that reason we need context.mapper to be first in the combined mapper. See #42636 for examples.\n combinedMapper = mapper ? combineTypeMappers(context.mapper, mapper) : context.mapper;\n }\n // Instantiate the extends type including inferences for 'infer T' type parameters\n var inferredExtendsType = combinedMapper ? instantiateType(unwrapNondistributiveConditionalTuple(root, root.extendsType), combinedMapper) : extendsType;\n // We attempt to resolve the conditional type only when the check and extends types are non-generic\n if (!checkTypeInstantiable && !isGenericType(inferredExtendsType)) {\n // Return falseType for a definitely false extends check. We check an instantiations of the two\n // types with type parameters mapped to the wildcard type, the most permissive instantiations\n // possible (the wildcard type is assignable to and from all types). If those are not related,\n // then no instantiations will be and we can just return the false branch type.\n if (!(inferredExtendsType.flags & 3 /* AnyOrUnknown */) && ((checkType.flags & 1 /* Any */ && !isUnwrapped) || !isTypeAssignableTo(getPermissiveInstantiation(checkType), getPermissiveInstantiation(inferredExtendsType)))) {\n // Return union of trueType and falseType for 'any' since it matches anything\n if (checkType.flags & 1 /* Any */ && !isUnwrapped) {\n (extraTypes || (extraTypes = [])).push(instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper));\n }\n // If falseType is an immediately nested conditional type that isn't distributive or has an\n // identical checkType, switch to that type and loop.\n var falseType_1 = getTypeFromTypeNode(root.node.falseType);\n if (falseType_1.flags & 16777216 /* Conditional */) {\n var newRoot = falseType_1.root;\n if (newRoot.node.parent === root.node && (!newRoot.isDistributive || newRoot.checkType === root.checkType)) {\n root = newRoot;\n continue;\n }\n }\n result = instantiateType(falseType_1, mapper);\n break;\n }\n // Return trueType for a definitely true extends check. We check instantiations of the two\n // types with type parameters mapped to their restrictive form, i.e. a form of the type parameter\n // that has no constraint. This ensures that, for example, the type\n // type Foo = T extends { x: string } ? string : number\n // doesn't immediately resolve to 'string' instead of being deferred.\n if (inferredExtendsType.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(checkType), getRestrictiveInstantiation(inferredExtendsType))) {\n result = instantiateType(getTypeFromTypeNode(root.node.trueType), combinedMapper || mapper);\n break;\n }\n }\n // Return a deferred type for a check that is neither definitely true nor definitely false\n result = createType(16777216 /* Conditional */);\n result.root = root;\n result.checkType = instantiateType(root.checkType, mapper);\n result.extendsType = instantiateType(root.extendsType, mapper);\n result.mapper = mapper;\n result.combinedMapper = combinedMapper;\n result.aliasSymbol = aliasSymbol || root.aliasSymbol;\n result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(root.aliasTypeArguments, mapper); // TODO: GH#18217\n break;\n }\n return extraTypes ? getUnionType(ts.append(extraTypes, result)) : result;\n }\n function getTrueTypeFromConditionalType(type) {\n return type.resolvedTrueType || (type.resolvedTrueType = instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.mapper));\n }\n function getFalseTypeFromConditionalType(type) {\n return type.resolvedFalseType || (type.resolvedFalseType = instantiateType(getTypeFromTypeNode(type.root.node.falseType), type.mapper));\n }\n function getInferredTrueTypeFromConditionalType(type) {\n return type.resolvedInferredTrueType || (type.resolvedInferredTrueType = type.combinedMapper ? instantiateType(getTypeFromTypeNode(type.root.node.trueType), type.combinedMapper) : getTrueTypeFromConditionalType(type));\n }\n function getInferTypeParameters(node) {\n var result;\n if (node.locals) {\n node.locals.forEach(function (symbol) {\n if (symbol.flags & 262144 /* TypeParameter */) {\n result = ts.append(result, getDeclaredTypeOfSymbol(symbol));\n }\n });\n }\n return result;\n }\n function getTypeFromConditionalTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n var checkType = getTypeFromTypeNode(node.checkType);\n var aliasSymbol = getAliasSymbolForTypeNode(node);\n var aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);\n var allOuterTypeParameters = getOuterTypeParameters(node, /*includeThisTypes*/ true);\n var outerTypeParameters = aliasTypeArguments ? allOuterTypeParameters : ts.filter(allOuterTypeParameters, function (tp) { return isTypeParameterPossiblyReferenced(tp, node); });\n var root = {\n node: node,\n checkType: checkType,\n extendsType: getTypeFromTypeNode(node.extendsType),\n isDistributive: !!(checkType.flags & 262144 /* TypeParameter */),\n inferTypeParameters: getInferTypeParameters(node),\n outerTypeParameters: outerTypeParameters,\n instantiations: undefined,\n aliasSymbol: aliasSymbol,\n aliasTypeArguments: aliasTypeArguments\n };\n links.resolvedType = getConditionalType(root, /*mapper*/ undefined);\n if (outerTypeParameters) {\n root.instantiations = new ts.Map();\n root.instantiations.set(getTypeListId(outerTypeParameters), links.resolvedType);\n }\n }\n return links.resolvedType;\n }\n function getTypeFromInferTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n links.resolvedType = getDeclaredTypeOfTypeParameter(getSymbolOfNode(node.typeParameter));\n }\n return links.resolvedType;\n }\n function getIdentifierChain(node) {\n if (ts.isIdentifier(node)) {\n return [node];\n }\n else {\n return ts.append(getIdentifierChain(node.left), node.right);\n }\n }\n function getTypeFromImportTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n if (node.isTypeOf && node.typeArguments) { // Only the non-typeof form can make use of type arguments\n error(node, ts.Diagnostics.Type_arguments_cannot_be_used_here);\n links.resolvedSymbol = unknownSymbol;\n return links.resolvedType = errorType;\n }\n if (!ts.isLiteralImportTypeNode(node)) {\n error(node.argument, ts.Diagnostics.String_literal_expected);\n links.resolvedSymbol = unknownSymbol;\n return links.resolvedType = errorType;\n }\n var targetMeaning = node.isTypeOf ? 111551 /* Value */ : node.flags & 4194304 /* JSDoc */ ? 111551 /* Value */ | 788968 /* Type */ : 788968 /* Type */;\n // TODO: Future work: support unions/generics/whatever via a deferred import-type\n var innerModuleSymbol = resolveExternalModuleName(node, node.argument.literal);\n if (!innerModuleSymbol) {\n links.resolvedSymbol = unknownSymbol;\n return links.resolvedType = errorType;\n }\n var moduleSymbol = resolveExternalModuleSymbol(innerModuleSymbol, /*dontResolveAlias*/ false);\n if (!ts.nodeIsMissing(node.qualifier)) {\n var nameStack = getIdentifierChain(node.qualifier);\n var currentNamespace = moduleSymbol;\n var current = void 0;\n while (current = nameStack.shift()) {\n var meaning = nameStack.length ? 1920 /* Namespace */ : targetMeaning;\n // typeof a.b.c is normally resolved using `checkExpression` which in turn defers to `checkQualifiedName`\n // That, in turn, ultimately uses `getPropertyOfType` on the type of the symbol, which differs slightly from\n // the `exports` lookup process that only looks up namespace members which is used for most type references\n var mergedResolvedSymbol = getMergedSymbol(resolveSymbol(currentNamespace));\n var next = node.isTypeOf\n ? getPropertyOfType(getTypeOfSymbol(mergedResolvedSymbol), current.escapedText)\n : getSymbol(getExportsOfSymbol(mergedResolvedSymbol), current.escapedText, meaning);\n if (!next) {\n error(current, ts.Diagnostics.Namespace_0_has_no_exported_member_1, getFullyQualifiedName(currentNamespace), ts.declarationNameToString(current));\n return links.resolvedType = errorType;\n }\n getNodeLinks(current).resolvedSymbol = next;\n getNodeLinks(current.parent).resolvedSymbol = next;\n currentNamespace = next;\n }\n links.resolvedType = resolveImportSymbolType(node, links, currentNamespace, targetMeaning);\n }\n else {\n if (moduleSymbol.flags & targetMeaning) {\n links.resolvedType = resolveImportSymbolType(node, links, moduleSymbol, targetMeaning);\n }\n else {\n var errorMessage = targetMeaning === 111551 /* Value */\n ? ts.Diagnostics.Module_0_does_not_refer_to_a_value_but_is_used_as_a_value_here\n : ts.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0;\n error(node, errorMessage, node.argument.literal.text);\n links.resolvedSymbol = unknownSymbol;\n links.resolvedType = errorType;\n }\n }\n }\n return links.resolvedType;\n }\n function resolveImportSymbolType(node, links, symbol, meaning) {\n var resolvedSymbol = resolveSymbol(symbol);\n links.resolvedSymbol = resolvedSymbol;\n if (meaning === 111551 /* Value */) {\n return getTypeOfSymbol(symbol); // intentionally doesn't use resolved symbol so type is cached as expected on the alias\n }\n else {\n return getTypeReferenceType(node, resolvedSymbol); // getTypeReferenceType doesn't handle aliases - it must get the resolved symbol\n }\n }\n function getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n // Deferred resolution of members is handled by resolveObjectTypeMembers\n var aliasSymbol = getAliasSymbolForTypeNode(node);\n if (getMembersOfSymbol(node.symbol).size === 0 && !aliasSymbol) {\n links.resolvedType = emptyTypeLiteralType;\n }\n else {\n var type = createObjectType(16 /* Anonymous */, node.symbol);\n type.aliasSymbol = aliasSymbol;\n type.aliasTypeArguments = getTypeArgumentsForAliasSymbol(aliasSymbol);\n if (ts.isJSDocTypeLiteral(node) && node.isArrayType) {\n type = createArrayType(type);\n }\n links.resolvedType = type;\n }\n }\n return links.resolvedType;\n }\n function getAliasSymbolForTypeNode(node) {\n var host = node.parent;\n while (ts.isParenthesizedTypeNode(host) || ts.isJSDocTypeExpression(host) || ts.isTypeOperatorNode(host) && host.operator === 143 /* ReadonlyKeyword */) {\n host = host.parent;\n }\n return ts.isTypeAlias(host) ? getSymbolOfNode(host) : undefined;\n }\n function getTypeArgumentsForAliasSymbol(symbol) {\n return symbol ? getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol) : undefined;\n }\n function isNonGenericObjectType(type) {\n return !!(type.flags & 524288 /* Object */) && !isGenericMappedType(type);\n }\n function isEmptyObjectTypeOrSpreadsIntoEmptyObject(type) {\n return isEmptyObjectType(type) || !!(type.flags & (65536 /* Null */ | 32768 /* Undefined */ | 528 /* BooleanLike */ | 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 1056 /* EnumLike */ | 67108864 /* NonPrimitive */ | 4194304 /* Index */));\n }\n function tryMergeUnionOfObjectTypeAndEmptyObject(type, readonly) {\n if (!(type.flags & 1048576 /* Union */)) {\n return type;\n }\n if (ts.every(type.types, isEmptyObjectTypeOrSpreadsIntoEmptyObject)) {\n return ts.find(type.types, isEmptyObjectType) || emptyObjectType;\n }\n var firstType = ts.find(type.types, function (t) { return !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t); });\n if (!firstType) {\n return type;\n }\n var secondType = ts.find(type.types, function (t) { return t !== firstType && !isEmptyObjectTypeOrSpreadsIntoEmptyObject(t); });\n if (secondType) {\n return type;\n }\n return getAnonymousPartialType(firstType);\n function getAnonymousPartialType(type) {\n // gets the type as if it had been spread, but where everything in the spread is made optional\n var members = ts.createSymbolTable();\n for (var _i = 0, _a = getPropertiesOfType(type); _i < _a.length; _i++) {\n var prop = _a[_i];\n if (ts.getDeclarationModifierFlagsFromSymbol(prop) & (8 /* Private */ | 16 /* Protected */)) {\n // do nothing, skip privates\n }\n else if (isSpreadableProperty(prop)) {\n var isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */);\n var flags = 4 /* Property */ | 16777216 /* Optional */;\n var result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 /* Readonly */ : 0));\n result.type = isSetonlyAccessor ? undefinedType : addOptionality(getTypeOfSymbol(prop), /*isProperty*/ true);\n result.declarations = prop.declarations;\n result.nameType = getSymbolLinks(prop).nameType;\n result.syntheticOrigin = prop;\n members.set(prop.escapedName, result);\n }\n }\n var spread = createAnonymousType(type.symbol, members, ts.emptyArray, ts.emptyArray, getIndexInfosOfType(type));\n spread.objectFlags |= 128 /* ObjectLiteral */ | 262144 /* ContainsObjectOrArrayLiteral */;\n return spread;\n }\n }\n /**\n * Since the source of spread types are object literals, which are not binary,\n * this function should be called in a left folding style, with left = previous result of getSpreadType\n * and right = the new element to be spread.\n */\n function getSpreadType(left, right, symbol, objectFlags, readonly) {\n if (left.flags & 1 /* Any */ || right.flags & 1 /* Any */) {\n return anyType;\n }\n if (left.flags & 2 /* Unknown */ || right.flags & 2 /* Unknown */) {\n return unknownType;\n }\n if (left.flags & 131072 /* Never */) {\n return right;\n }\n if (right.flags & 131072 /* Never */) {\n return left;\n }\n left = tryMergeUnionOfObjectTypeAndEmptyObject(left, readonly);\n if (left.flags & 1048576 /* Union */) {\n return checkCrossProductUnion([left, right])\n ? mapType(left, function (t) { return getSpreadType(t, right, symbol, objectFlags, readonly); })\n : errorType;\n }\n right = tryMergeUnionOfObjectTypeAndEmptyObject(right, readonly);\n if (right.flags & 1048576 /* Union */) {\n return checkCrossProductUnion([left, right])\n ? mapType(right, function (t) { return getSpreadType(left, t, symbol, objectFlags, readonly); })\n : errorType;\n }\n if (right.flags & (528 /* BooleanLike */ | 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 1056 /* EnumLike */ | 67108864 /* NonPrimitive */ | 4194304 /* Index */)) {\n return left;\n }\n if (isGenericObjectType(left) || isGenericObjectType(right)) {\n if (isEmptyObjectType(left)) {\n return right;\n }\n // When the left type is an intersection, we may need to merge the last constituent of the\n // intersection with the right type. For example when the left type is 'T & { a: string }'\n // and the right type is '{ b: string }' we produce 'T & { a: string, b: string }'.\n if (left.flags & 2097152 /* Intersection */) {\n var types = left.types;\n var lastLeft = types[types.length - 1];\n if (isNonGenericObjectType(lastLeft) && isNonGenericObjectType(right)) {\n return getIntersectionType(ts.concatenate(types.slice(0, types.length - 1), [getSpreadType(lastLeft, right, symbol, objectFlags, readonly)]));\n }\n }\n return getIntersectionType([left, right]);\n }\n var members = ts.createSymbolTable();\n var skippedPrivateMembers = new ts.Set();\n var indexInfos = left === emptyObjectType ? getIndexInfosOfType(right) : getUnionIndexInfos([left, right]);\n for (var _i = 0, _a = getPropertiesOfType(right); _i < _a.length; _i++) {\n var rightProp = _a[_i];\n if (ts.getDeclarationModifierFlagsFromSymbol(rightProp) & (8 /* Private */ | 16 /* Protected */)) {\n skippedPrivateMembers.add(rightProp.escapedName);\n }\n else if (isSpreadableProperty(rightProp)) {\n members.set(rightProp.escapedName, getSpreadSymbol(rightProp, readonly));\n }\n }\n for (var _b = 0, _c = getPropertiesOfType(left); _b < _c.length; _b++) {\n var leftProp = _c[_b];\n if (skippedPrivateMembers.has(leftProp.escapedName) || !isSpreadableProperty(leftProp)) {\n continue;\n }\n if (members.has(leftProp.escapedName)) {\n var rightProp = members.get(leftProp.escapedName);\n var rightType = getTypeOfSymbol(rightProp);\n if (rightProp.flags & 16777216 /* Optional */) {\n var declarations = ts.concatenate(leftProp.declarations, rightProp.declarations);\n var flags = 4 /* Property */ | (leftProp.flags & 16777216 /* Optional */);\n var result = createSymbol(flags, leftProp.escapedName);\n result.type = getUnionType([getTypeOfSymbol(leftProp), removeMissingOrUndefinedType(rightType)]);\n result.leftSpread = leftProp;\n result.rightSpread = rightProp;\n result.declarations = declarations;\n result.nameType = getSymbolLinks(leftProp).nameType;\n members.set(leftProp.escapedName, result);\n }\n }\n else {\n members.set(leftProp.escapedName, getSpreadSymbol(leftProp, readonly));\n }\n }\n var spread = createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, ts.sameMap(indexInfos, function (info) { return getIndexInfoWithReadonly(info, readonly); }));\n spread.objectFlags |= 128 /* ObjectLiteral */ | 262144 /* ContainsObjectOrArrayLiteral */ | 4194304 /* ContainsSpread */ | objectFlags;\n return spread;\n }\n /** We approximate own properties as non-methods plus methods that are inside the object literal */\n function isSpreadableProperty(prop) {\n var _a;\n return !ts.some(prop.declarations, ts.isPrivateIdentifierClassElementDeclaration) &&\n (!(prop.flags & (8192 /* Method */ | 32768 /* GetAccessor */ | 65536 /* SetAccessor */)) ||\n !((_a = prop.declarations) === null || _a === void 0 ? void 0 : _a.some(function (decl) { return ts.isClassLike(decl.parent); })));\n }\n function getSpreadSymbol(prop, readonly) {\n var isSetonlyAccessor = prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */);\n if (!isSetonlyAccessor && readonly === isReadonlySymbol(prop)) {\n return prop;\n }\n var flags = 4 /* Property */ | (prop.flags & 16777216 /* Optional */);\n var result = createSymbol(flags, prop.escapedName, getIsLateCheckFlag(prop) | (readonly ? 8 /* Readonly */ : 0));\n result.type = isSetonlyAccessor ? undefinedType : getTypeOfSymbol(prop);\n result.declarations = prop.declarations;\n result.nameType = getSymbolLinks(prop).nameType;\n result.syntheticOrigin = prop;\n return result;\n }\n function getIndexInfoWithReadonly(info, readonly) {\n return info.isReadonly !== readonly ? createIndexInfo(info.keyType, info.type, readonly, info.declaration) : info;\n }\n function createLiteralType(flags, value, symbol, regularType) {\n var type = createType(flags);\n type.symbol = symbol;\n type.value = value;\n type.regularType = regularType || type;\n return type;\n }\n function getFreshTypeOfLiteralType(type) {\n if (type.flags & 2944 /* Literal */) {\n if (!type.freshType) {\n var freshType = createLiteralType(type.flags, type.value, type.symbol, type);\n freshType.freshType = freshType;\n type.freshType = freshType;\n }\n return type.freshType;\n }\n return type;\n }\n function getRegularTypeOfLiteralType(type) {\n return type.flags & 2944 /* Literal */ ? type.regularType :\n type.flags & 1048576 /* Union */ ? (type.regularType || (type.regularType = mapType(type, getRegularTypeOfLiteralType))) :\n type;\n }\n function isFreshLiteralType(type) {\n return !!(type.flags & 2944 /* Literal */) && type.freshType === type;\n }\n function getStringLiteralType(value) {\n var type;\n return stringLiteralTypes.get(value) ||\n (stringLiteralTypes.set(value, type = createLiteralType(128 /* StringLiteral */, value)), type);\n }\n function getNumberLiteralType(value) {\n var type;\n return numberLiteralTypes.get(value) ||\n (numberLiteralTypes.set(value, type = createLiteralType(256 /* NumberLiteral */, value)), type);\n }\n function getBigIntLiteralType(value) {\n var type;\n var key = ts.pseudoBigIntToString(value);\n return bigIntLiteralTypes.get(key) ||\n (bigIntLiteralTypes.set(key, type = createLiteralType(2048 /* BigIntLiteral */, value)), type);\n }\n function getEnumLiteralType(value, enumId, symbol) {\n var type;\n var qualifier = typeof value === \"string\" ? \"@\" : \"#\";\n var key = enumId + qualifier + value;\n var flags = 1024 /* EnumLiteral */ | (typeof value === \"string\" ? 128 /* StringLiteral */ : 256 /* NumberLiteral */);\n return enumLiteralTypes.get(key) ||\n (enumLiteralTypes.set(key, type = createLiteralType(flags, value, symbol)), type);\n }\n function getTypeFromLiteralTypeNode(node) {\n if (node.literal.kind === 104 /* NullKeyword */) {\n return nullType;\n }\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n links.resolvedType = getRegularTypeOfLiteralType(checkExpression(node.literal));\n }\n return links.resolvedType;\n }\n function createUniqueESSymbolType(symbol) {\n var type = createType(8192 /* UniqueESSymbol */);\n type.symbol = symbol;\n type.escapedName = \"__@\" + type.symbol.escapedName + \"@\" + getSymbolId(type.symbol);\n return type;\n }\n function getESSymbolLikeTypeForNode(node) {\n if (ts.isValidESSymbolDeclaration(node)) {\n var symbol = getSymbolOfNode(node);\n var links = getSymbolLinks(symbol);\n return links.uniqueESSymbolType || (links.uniqueESSymbolType = createUniqueESSymbolType(symbol));\n }\n return esSymbolType;\n }\n function getThisType(node) {\n var container = ts.getThisContainer(node, /*includeArrowFunctions*/ false);\n var parent = container && container.parent;\n if (parent && (ts.isClassLike(parent) || parent.kind === 256 /* InterfaceDeclaration */)) {\n if (!ts.isStatic(container) &&\n (!ts.isConstructorDeclaration(container) || ts.isNodeDescendantOf(node, container.body))) {\n return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent)).thisType;\n }\n }\n // inside x.prototype = { ... }\n if (parent && ts.isObjectLiteralExpression(parent) && ts.isBinaryExpression(parent.parent) && ts.getAssignmentDeclarationKind(parent.parent) === 6 /* Prototype */) {\n return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(parent.parent.left).parent).thisType;\n }\n // /** @return {this} */\n // x.prototype.m = function() { ... }\n var host = node.flags & 4194304 /* JSDoc */ ? ts.getHostSignatureFromJSDoc(node) : undefined;\n if (host && ts.isFunctionExpression(host) && ts.isBinaryExpression(host.parent) && ts.getAssignmentDeclarationKind(host.parent) === 3 /* PrototypeProperty */) {\n return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(host.parent.left).parent).thisType;\n }\n // inside constructor function C() { ... }\n if (isJSConstructor(container) && ts.isNodeDescendantOf(node, container.body)) {\n return getDeclaredTypeOfClassOrInterface(getSymbolOfNode(container)).thisType;\n }\n error(node, ts.Diagnostics.A_this_type_is_available_only_in_a_non_static_member_of_a_class_or_interface);\n return errorType;\n }\n function getTypeFromThisTypeNode(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n links.resolvedType = getThisType(node);\n }\n return links.resolvedType;\n }\n function getTypeFromRestTypeNode(node) {\n return getTypeFromTypeNode(getArrayElementTypeNode(node.type) || node.type);\n }\n function getArrayElementTypeNode(node) {\n switch (node.kind) {\n case 189 /* ParenthesizedType */:\n return getArrayElementTypeNode(node.type);\n case 182 /* TupleType */:\n if (node.elements.length === 1) {\n node = node.elements[0];\n if (node.kind === 184 /* RestType */ || node.kind === 195 /* NamedTupleMember */ && node.dotDotDotToken) {\n return getArrayElementTypeNode(node.type);\n }\n }\n break;\n case 181 /* ArrayType */:\n return node.elementType;\n }\n return undefined;\n }\n function getTypeFromNamedTupleTypeNode(node) {\n var links = getNodeLinks(node);\n return links.resolvedType || (links.resolvedType =\n node.dotDotDotToken ? getTypeFromRestTypeNode(node) :\n addOptionality(getTypeFromTypeNode(node.type), /*isProperty*/ true, !!node.questionToken));\n }\n function getTypeFromTypeNode(node) {\n return getConditionalFlowTypeOfType(getTypeFromTypeNodeWorker(node), node);\n }\n function getTypeFromTypeNodeWorker(node) {\n switch (node.kind) {\n case 129 /* AnyKeyword */:\n case 307 /* JSDocAllType */:\n case 308 /* JSDocUnknownType */:\n return anyType;\n case 153 /* UnknownKeyword */:\n return unknownType;\n case 148 /* StringKeyword */:\n return stringType;\n case 145 /* NumberKeyword */:\n return numberType;\n case 156 /* BigIntKeyword */:\n return bigintType;\n case 132 /* BooleanKeyword */:\n return booleanType;\n case 149 /* SymbolKeyword */:\n return esSymbolType;\n case 114 /* VoidKeyword */:\n return voidType;\n case 151 /* UndefinedKeyword */:\n return undefinedType;\n case 104 /* NullKeyword */:\n // TODO(rbuckton): `NullKeyword` is no longer a `TypeNode`, but we defensively allow it here because of incorrect casts in the Language Service.\n return nullType;\n case 142 /* NeverKeyword */:\n return neverType;\n case 146 /* ObjectKeyword */:\n return node.flags & 131072 /* JavaScriptFile */ && !noImplicitAny ? anyType : nonPrimitiveType;\n case 137 /* IntrinsicKeyword */:\n return intrinsicMarkerType;\n case 190 /* ThisType */:\n case 108 /* ThisKeyword */:\n // TODO(rbuckton): `ThisKeyword` is no longer a `TypeNode`, but we defensively allow it here because of incorrect casts in the Language Service and because of `isPartOfTypeNode`.\n return getTypeFromThisTypeNode(node);\n case 194 /* LiteralType */:\n return getTypeFromLiteralTypeNode(node);\n case 176 /* TypeReference */:\n return getTypeFromTypeReference(node);\n case 175 /* TypePredicate */:\n return node.assertsModifier ? voidType : booleanType;\n case 226 /* ExpressionWithTypeArguments */:\n return getTypeFromTypeReference(node);\n case 179 /* TypeQuery */:\n return getTypeFromTypeQueryNode(node);\n case 181 /* ArrayType */:\n case 182 /* TupleType */:\n return getTypeFromArrayOrTupleTypeNode(node);\n case 183 /* OptionalType */:\n return getTypeFromOptionalTypeNode(node);\n case 185 /* UnionType */:\n return getTypeFromUnionTypeNode(node);\n case 186 /* IntersectionType */:\n return getTypeFromIntersectionTypeNode(node);\n case 309 /* JSDocNullableType */:\n return getTypeFromJSDocNullableTypeNode(node);\n case 311 /* JSDocOptionalType */:\n return addOptionality(getTypeFromTypeNode(node.type));\n case 195 /* NamedTupleMember */:\n return getTypeFromNamedTupleTypeNode(node);\n case 189 /* ParenthesizedType */:\n case 310 /* JSDocNonNullableType */:\n case 304 /* JSDocTypeExpression */:\n return getTypeFromTypeNode(node.type);\n case 184 /* RestType */:\n return getTypeFromRestTypeNode(node);\n case 313 /* JSDocVariadicType */:\n return getTypeFromJSDocVariadicType(node);\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 180 /* TypeLiteral */:\n case 317 /* JSDocTypeLiteral */:\n case 312 /* JSDocFunctionType */:\n case 318 /* JSDocSignature */:\n return getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node);\n case 191 /* TypeOperator */:\n return getTypeFromTypeOperatorNode(node);\n case 192 /* IndexedAccessType */:\n return getTypeFromIndexedAccessTypeNode(node);\n case 193 /* MappedType */:\n return getTypeFromMappedTypeNode(node);\n case 187 /* ConditionalType */:\n return getTypeFromConditionalTypeNode(node);\n case 188 /* InferType */:\n return getTypeFromInferTypeNode(node);\n case 196 /* TemplateLiteralType */:\n return getTypeFromTemplateTypeNode(node);\n case 198 /* ImportType */:\n return getTypeFromImportTypeNode(node);\n // This function assumes that an identifier, qualified name, or property access expression is a type expression\n // Callers should first ensure this by calling `isPartOfTypeNode`\n // TODO(rbuckton): These aren't valid TypeNodes, but we treat them as such because of `isPartOfTypeNode`, which returns `true` for things that aren't `TypeNode`s.\n case 79 /* Identifier */:\n case 159 /* QualifiedName */:\n case 204 /* PropertyAccessExpression */:\n var symbol = getSymbolAtLocation(node);\n return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;\n default:\n return errorType;\n }\n }\n function instantiateList(items, mapper, instantiator) {\n if (items && items.length) {\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n var mapped = instantiator(item, mapper);\n if (item !== mapped) {\n var result = i === 0 ? [] : items.slice(0, i);\n result.push(mapped);\n for (i++; i < items.length; i++) {\n result.push(instantiator(items[i], mapper));\n }\n return result;\n }\n }\n }\n return items;\n }\n function instantiateTypes(types, mapper) {\n return instantiateList(types, mapper, instantiateType);\n }\n function instantiateSignatures(signatures, mapper) {\n return instantiateList(signatures, mapper, instantiateSignature);\n }\n function instantiateIndexInfos(indexInfos, mapper) {\n return instantiateList(indexInfos, mapper, instantiateIndexInfo);\n }\n function createTypeMapper(sources, targets) {\n return sources.length === 1 ? makeUnaryTypeMapper(sources[0], targets ? targets[0] : anyType) : makeArrayTypeMapper(sources, targets);\n }\n function getMappedType(type, mapper) {\n switch (mapper.kind) {\n case 0 /* Simple */:\n return type === mapper.source ? mapper.target : type;\n case 1 /* Array */:\n var sources = mapper.sources;\n var targets = mapper.targets;\n for (var i = 0; i < sources.length; i++) {\n if (type === sources[i]) {\n return targets ? targets[i] : anyType;\n }\n }\n return type;\n case 2 /* Function */:\n return mapper.func(type);\n case 3 /* Composite */:\n case 4 /* Merged */:\n var t1 = getMappedType(type, mapper.mapper1);\n return t1 !== type && mapper.kind === 3 /* Composite */ ? instantiateType(t1, mapper.mapper2) : getMappedType(t1, mapper.mapper2);\n }\n }\n function makeUnaryTypeMapper(source, target) {\n return { kind: 0 /* Simple */, source: source, target: target };\n }\n function makeArrayTypeMapper(sources, targets) {\n return { kind: 1 /* Array */, sources: sources, targets: targets };\n }\n function makeFunctionTypeMapper(func) {\n return { kind: 2 /* Function */, func: func };\n }\n function makeCompositeTypeMapper(kind, mapper1, mapper2) {\n return { kind: kind, mapper1: mapper1, mapper2: mapper2 };\n }\n function createTypeEraser(sources) {\n return createTypeMapper(sources, /*targets*/ undefined);\n }\n /**\n * Maps forward-references to later types parameters to the empty object type.\n * This is used during inference when instantiating type parameter defaults.\n */\n function createBackreferenceMapper(context, index) {\n return makeFunctionTypeMapper(function (t) { return ts.findIndex(context.inferences, function (info) { return info.typeParameter === t; }) >= index ? unknownType : t; });\n }\n function combineTypeMappers(mapper1, mapper2) {\n return mapper1 ? makeCompositeTypeMapper(3 /* Composite */, mapper1, mapper2) : mapper2;\n }\n function mergeTypeMappers(mapper1, mapper2) {\n return mapper1 ? makeCompositeTypeMapper(4 /* Merged */, mapper1, mapper2) : mapper2;\n }\n function prependTypeMapping(source, target, mapper) {\n return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(4 /* Merged */, makeUnaryTypeMapper(source, target), mapper);\n }\n function appendTypeMapping(mapper, source, target) {\n return !mapper ? makeUnaryTypeMapper(source, target) : makeCompositeTypeMapper(4 /* Merged */, mapper, makeUnaryTypeMapper(source, target));\n }\n function getRestrictiveTypeParameter(tp) {\n return tp.constraint === unknownType ? tp : tp.restrictiveInstantiation || (tp.restrictiveInstantiation = createTypeParameter(tp.symbol),\n tp.restrictiveInstantiation.constraint = unknownType,\n tp.restrictiveInstantiation);\n }\n function cloneTypeParameter(typeParameter) {\n var result = createTypeParameter(typeParameter.symbol);\n result.target = typeParameter;\n return result;\n }\n function instantiateTypePredicate(predicate, mapper) {\n return createTypePredicate(predicate.kind, predicate.parameterName, predicate.parameterIndex, instantiateType(predicate.type, mapper));\n }\n function instantiateSignature(signature, mapper, eraseTypeParameters) {\n var freshTypeParameters;\n if (signature.typeParameters && !eraseTypeParameters) {\n // First create a fresh set of type parameters, then include a mapping from the old to the\n // new type parameters in the mapper function. Finally store this mapper in the new type\n // parameters such that we can use it when instantiating constraints.\n freshTypeParameters = ts.map(signature.typeParameters, cloneTypeParameter);\n mapper = combineTypeMappers(createTypeMapper(signature.typeParameters, freshTypeParameters), mapper);\n for (var _i = 0, freshTypeParameters_1 = freshTypeParameters; _i < freshTypeParameters_1.length; _i++) {\n var tp = freshTypeParameters_1[_i];\n tp.mapper = mapper;\n }\n }\n // Don't compute resolvedReturnType and resolvedTypePredicate now,\n // because using `mapper` now could trigger inferences to become fixed. (See `createInferenceContext`.)\n // See GH#17600.\n var result = createSignature(signature.declaration, freshTypeParameters, signature.thisParameter && instantiateSymbol(signature.thisParameter, mapper), instantiateList(signature.parameters, mapper, instantiateSymbol), \n /*resolvedReturnType*/ undefined, \n /*resolvedTypePredicate*/ undefined, signature.minArgumentCount, signature.flags & 39 /* PropagatingFlags */);\n result.target = signature;\n result.mapper = mapper;\n return result;\n }\n function instantiateSymbol(symbol, mapper) {\n var links = getSymbolLinks(symbol);\n if (links.type && !couldContainTypeVariables(links.type)) {\n // If the type of the symbol is already resolved, and if that type could not possibly\n // be affected by instantiation, simply return the symbol itself.\n return symbol;\n }\n if (ts.getCheckFlags(symbol) & 1 /* Instantiated */) {\n // If symbol being instantiated is itself a instantiation, fetch the original target and combine the\n // type mappers. This ensures that original type identities are properly preserved and that aliases\n // always reference a non-aliases.\n symbol = links.target;\n mapper = combineTypeMappers(links.mapper, mapper);\n }\n // Keep the flags from the symbol we're instantiating. Mark that is instantiated, and\n // also transient so that we can just store data on it directly.\n var result = createSymbol(symbol.flags, symbol.escapedName, 1 /* Instantiated */ | ts.getCheckFlags(symbol) & (8 /* Readonly */ | 4096 /* Late */ | 16384 /* OptionalParameter */ | 32768 /* RestParameter */));\n result.declarations = symbol.declarations;\n result.parent = symbol.parent;\n result.target = symbol;\n result.mapper = mapper;\n if (symbol.valueDeclaration) {\n result.valueDeclaration = symbol.valueDeclaration;\n }\n if (links.nameType) {\n result.nameType = links.nameType;\n }\n return result;\n }\n function getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {\n var declaration = type.objectFlags & 4 /* Reference */ ? type.node : type.symbol.declarations[0];\n var links = getNodeLinks(declaration);\n var target = type.objectFlags & 4 /* Reference */ ? links.resolvedType :\n type.objectFlags & 64 /* Instantiated */ ? type.target : type;\n var typeParameters = links.outerTypeParameters;\n if (!typeParameters) {\n // The first time an anonymous type is instantiated we compute and store a list of the type\n // parameters that are in scope (and therefore potentially referenced). For type literals that\n // aren't the right hand side of a generic type alias declaration we optimize by reducing the\n // set of type parameters to those that are possibly referenced in the literal.\n var outerTypeParameters = getOuterTypeParameters(declaration, /*includeThisTypes*/ true);\n if (isJSConstructor(declaration)) {\n var templateTagParameters = getTypeParametersFromDeclaration(declaration);\n outerTypeParameters = ts.addRange(outerTypeParameters, templateTagParameters);\n }\n typeParameters = outerTypeParameters || ts.emptyArray;\n var allDeclarations_1 = type.objectFlags & 4 /* Reference */ ? [declaration] : type.symbol.declarations;\n typeParameters = (target.objectFlags & 4 /* Reference */ || target.symbol.flags & 8192 /* Method */ || target.symbol.flags & 2048 /* TypeLiteral */) && !target.aliasTypeArguments ?\n ts.filter(typeParameters, function (tp) { return ts.some(allDeclarations_1, function (d) { return isTypeParameterPossiblyReferenced(tp, d); }); }) :\n typeParameters;\n links.outerTypeParameters = typeParameters;\n }\n if (typeParameters.length) {\n // We are instantiating an anonymous type that has one or more type parameters in scope. Apply the\n // mapper to the type parameters to produce the effective list of type arguments, and compute the\n // instantiation cache key from the type IDs of the type arguments.\n var combinedMapper_1 = combineTypeMappers(type.mapper, mapper);\n var typeArguments = ts.map(typeParameters, function (t) { return getMappedType(t, combinedMapper_1); });\n var newAliasSymbol = aliasSymbol || type.aliasSymbol;\n var newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n var id = getTypeListId(typeArguments) + getAliasId(newAliasSymbol, newAliasTypeArguments);\n if (!target.instantiations) {\n target.instantiations = new ts.Map();\n target.instantiations.set(getTypeListId(typeParameters) + getAliasId(target.aliasSymbol, target.aliasTypeArguments), target);\n }\n var result = target.instantiations.get(id);\n if (!result) {\n var newMapper = createTypeMapper(typeParameters, typeArguments);\n result = target.objectFlags & 4 /* Reference */ ? createDeferredTypeReference(type.target, type.node, newMapper, newAliasSymbol, newAliasTypeArguments) :\n target.objectFlags & 32 /* Mapped */ ? instantiateMappedType(target, newMapper, newAliasSymbol, newAliasTypeArguments) :\n instantiateAnonymousType(target, newMapper, newAliasSymbol, newAliasTypeArguments);\n target.instantiations.set(id, result);\n }\n return result;\n }\n return type;\n }\n function maybeTypeParameterReference(node) {\n return !(node.parent.kind === 176 /* TypeReference */ && node.parent.typeArguments && node === node.parent.typeName ||\n node.parent.kind === 198 /* ImportType */ && node.parent.typeArguments && node === node.parent.qualifier);\n }\n function isTypeParameterPossiblyReferenced(tp, node) {\n // If the type parameter doesn't have exactly one declaration, if there are invening statement blocks\n // between the node and the type parameter declaration, if the node contains actual references to the\n // type parameter, or if the node contains type queries, we consider the type parameter possibly referenced.\n if (tp.symbol && tp.symbol.declarations && tp.symbol.declarations.length === 1) {\n var container = tp.symbol.declarations[0].parent;\n for (var n = node; n !== container; n = n.parent) {\n if (!n || n.kind === 233 /* Block */ || n.kind === 187 /* ConditionalType */ && ts.forEachChild(n.extendsType, containsReference)) {\n return true;\n }\n }\n return containsReference(node);\n }\n return true;\n function containsReference(node) {\n switch (node.kind) {\n case 190 /* ThisType */:\n return !!tp.isThisType;\n case 79 /* Identifier */:\n return !tp.isThisType && ts.isPartOfTypeNode(node) && maybeTypeParameterReference(node) &&\n getTypeFromTypeNodeWorker(node) === tp; // use worker because we're looking for === equality\n case 179 /* TypeQuery */:\n return true;\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n return !node.type && !!node.body ||\n ts.some(node.typeParameters, containsReference) ||\n ts.some(node.parameters, containsReference) ||\n !!node.type && containsReference(node.type);\n }\n return !!ts.forEachChild(node, containsReference);\n }\n }\n function getHomomorphicTypeVariable(type) {\n var constraintType = getConstraintTypeFromMappedType(type);\n if (constraintType.flags & 4194304 /* Index */) {\n var typeVariable = getActualTypeVariable(constraintType.type);\n if (typeVariable.flags & 262144 /* TypeParameter */) {\n return typeVariable;\n }\n }\n return undefined;\n }\n function instantiateMappedType(type, mapper, aliasSymbol, aliasTypeArguments) {\n // For a homomorphic mapped type { [P in keyof T]: X }, where T is some type variable, the mapping\n // operation depends on T as follows:\n // * If T is a primitive type no mapping is performed and the result is simply T.\n // * If T is a union type we distribute the mapped type over the union.\n // * If T is an array we map to an array where the element type has been transformed.\n // * If T is a tuple we map to a tuple where the element types have been transformed.\n // * Otherwise we map to an object type where the type of each property has been transformed.\n // For example, when T is instantiated to a union type A | B, we produce { [P in keyof A]: X } |\n // { [P in keyof B]: X }, and when when T is instantiated to a union type A | undefined, we produce\n // { [P in keyof A]: X } | undefined.\n var typeVariable = getHomomorphicTypeVariable(type);\n if (typeVariable) {\n var mappedTypeVariable = instantiateType(typeVariable, mapper);\n if (typeVariable !== mappedTypeVariable) {\n return mapTypeWithAlias(getReducedType(mappedTypeVariable), function (t) {\n if (t.flags & (3 /* AnyOrUnknown */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && t !== wildcardType && t !== errorType) {\n if (!type.declaration.nameType) {\n if (isArrayType(t)) {\n return instantiateMappedArrayType(t, type, prependTypeMapping(typeVariable, t, mapper));\n }\n if (isGenericTupleType(t)) {\n return instantiateMappedGenericTupleType(t, type, typeVariable, mapper);\n }\n if (isTupleType(t)) {\n return instantiateMappedTupleType(t, type, prependTypeMapping(typeVariable, t, mapper));\n }\n }\n return instantiateAnonymousType(type, prependTypeMapping(typeVariable, t, mapper));\n }\n return t;\n }, aliasSymbol, aliasTypeArguments);\n }\n }\n // If the constraint type of the instantiation is the wildcard type, return the wildcard type.\n return instantiateType(getConstraintTypeFromMappedType(type), mapper) === wildcardType ? wildcardType : instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments);\n }\n function getModifiedReadonlyState(state, modifiers) {\n return modifiers & 1 /* IncludeReadonly */ ? true : modifiers & 2 /* ExcludeReadonly */ ? false : state;\n }\n function instantiateMappedGenericTupleType(tupleType, mappedType, typeVariable, mapper) {\n // When a tuple type is generic (i.e. when it contains variadic elements), we want to eagerly map the\n // non-generic elements and defer mapping the generic elements. In order to facilitate this, we transform\n // M<[A, B?, ...T, ...C[]] into [...M<[A]>, ...M<[B?]>, ...M, ...M] and then rely on tuple type\n // normalization to resolve the non-generic parts of the resulting tuple.\n var elementFlags = tupleType.target.elementFlags;\n var elementTypes = ts.map(getTypeArguments(tupleType), function (t, i) {\n var singleton = elementFlags[i] & 8 /* Variadic */ ? t :\n elementFlags[i] & 4 /* Rest */ ? createArrayType(t) :\n createTupleType([t], [elementFlags[i]]);\n // The singleton is never a generic tuple type, so it is safe to recurse here.\n return instantiateMappedType(mappedType, prependTypeMapping(typeVariable, singleton, mapper));\n });\n var newReadonly = getModifiedReadonlyState(tupleType.target.readonly, getMappedTypeModifiers(mappedType));\n return createTupleType(elementTypes, ts.map(elementTypes, function (_) { return 8 /* Variadic */; }), newReadonly);\n }\n function instantiateMappedArrayType(arrayType, mappedType, mapper) {\n var elementType = instantiateMappedTypeTemplate(mappedType, numberType, /*isOptional*/ true, mapper);\n return elementType === errorType ? errorType :\n createArrayType(elementType, getModifiedReadonlyState(isReadonlyArrayType(arrayType), getMappedTypeModifiers(mappedType)));\n }\n function instantiateMappedTupleType(tupleType, mappedType, mapper) {\n var elementFlags = tupleType.target.elementFlags;\n var elementTypes = ts.map(getTypeArguments(tupleType), function (_, i) {\n return instantiateMappedTypeTemplate(mappedType, getStringLiteralType(\"\" + i), !!(elementFlags[i] & 2 /* Optional */), mapper);\n });\n var modifiers = getMappedTypeModifiers(mappedType);\n var newTupleModifiers = modifiers & 4 /* IncludeOptional */ ? ts.map(elementFlags, function (f) { return f & 1 /* Required */ ? 2 /* Optional */ : f; }) :\n modifiers & 8 /* ExcludeOptional */ ? ts.map(elementFlags, function (f) { return f & 2 /* Optional */ ? 1 /* Required */ : f; }) :\n elementFlags;\n var newReadonly = getModifiedReadonlyState(tupleType.target.readonly, modifiers);\n return ts.contains(elementTypes, errorType) ? errorType :\n createTupleType(elementTypes, newTupleModifiers, newReadonly, tupleType.target.labeledElementDeclarations);\n }\n function instantiateMappedTypeTemplate(type, key, isOptional, mapper) {\n var templateMapper = appendTypeMapping(mapper, getTypeParameterFromMappedType(type), key);\n var propType = instantiateType(getTemplateTypeFromMappedType(type.target || type), templateMapper);\n var modifiers = getMappedTypeModifiers(type);\n return strictNullChecks && modifiers & 4 /* IncludeOptional */ && !maybeTypeOfKind(propType, 32768 /* Undefined */ | 16384 /* Void */) ? getOptionalType(propType, /*isProperty*/ true) :\n strictNullChecks && modifiers & 8 /* ExcludeOptional */ && isOptional ? getTypeWithFacts(propType, 524288 /* NEUndefined */) :\n propType;\n }\n function instantiateAnonymousType(type, mapper, aliasSymbol, aliasTypeArguments) {\n var result = createObjectType(type.objectFlags | 64 /* Instantiated */, type.symbol);\n if (type.objectFlags & 32 /* Mapped */) {\n result.declaration = type.declaration;\n // C.f. instantiateSignature\n var origTypeParameter = getTypeParameterFromMappedType(type);\n var freshTypeParameter = cloneTypeParameter(origTypeParameter);\n result.typeParameter = freshTypeParameter;\n mapper = combineTypeMappers(makeUnaryTypeMapper(origTypeParameter, freshTypeParameter), mapper);\n freshTypeParameter.mapper = mapper;\n }\n result.target = type;\n result.mapper = mapper;\n result.aliasSymbol = aliasSymbol || type.aliasSymbol;\n result.aliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n return result;\n }\n function getConditionalTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments) {\n var root = type.root;\n if (root.outerTypeParameters) {\n // We are instantiating a conditional type that has one or more type parameters in scope. Apply the\n // mapper to the type parameters to produce the effective list of type arguments, and compute the\n // instantiation cache key from the type IDs of the type arguments.\n var typeArguments = ts.map(root.outerTypeParameters, function (t) { return getMappedType(t, mapper); });\n var id = getTypeListId(typeArguments) + getAliasId(aliasSymbol, aliasTypeArguments);\n var result = root.instantiations.get(id);\n if (!result) {\n var newMapper = createTypeMapper(root.outerTypeParameters, typeArguments);\n result = instantiateConditionalType(root, newMapper, aliasSymbol, aliasTypeArguments);\n root.instantiations.set(id, result);\n }\n return result;\n }\n return type;\n }\n function instantiateConditionalType(root, mapper, aliasSymbol, aliasTypeArguments) {\n // Check if we have a conditional type where the check type is a naked type parameter. If so,\n // the conditional type is distributive over union types and when T is instantiated to a union\n // type A | B, we produce (A extends U ? X : Y) | (B extends U ? X : Y).\n if (root.isDistributive) {\n var checkType_1 = root.checkType;\n var instantiatedType = getMappedType(checkType_1, mapper);\n if (checkType_1 !== instantiatedType && instantiatedType.flags & (1048576 /* Union */ | 131072 /* Never */)) {\n return mapTypeWithAlias(instantiatedType, function (t) { return getConditionalType(root, prependTypeMapping(checkType_1, t, mapper)); }, aliasSymbol, aliasTypeArguments);\n }\n }\n return getConditionalType(root, mapper, aliasSymbol, aliasTypeArguments);\n }\n function instantiateType(type, mapper) {\n return type && mapper ? instantiateTypeWithAlias(type, mapper, /*aliasSymbol*/ undefined, /*aliasTypeArguments*/ undefined) : type;\n }\n function instantiateTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) {\n if (!couldContainTypeVariables(type)) {\n return type;\n }\n if (instantiationDepth === 50 || instantiationCount >= 5000000) {\n // We have reached 50 recursive type instantiations and there is a very high likelyhood we're dealing\n // with a combination of infinite generic types that perpetually generate new type identities. We stop\n // the recursion here by yielding the error type.\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"instantiateType_DepthLimit\", { typeId: type.id, instantiationDepth: instantiationDepth, instantiationCount: instantiationCount });\n error(currentNode, ts.Diagnostics.Type_instantiation_is_excessively_deep_and_possibly_infinite);\n return errorType;\n }\n totalInstantiationCount++;\n instantiationCount++;\n instantiationDepth++;\n var result = instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments);\n instantiationDepth--;\n return result;\n }\n function instantiateTypeWorker(type, mapper, aliasSymbol, aliasTypeArguments) {\n var flags = type.flags;\n if (flags & 262144 /* TypeParameter */) {\n return getMappedType(type, mapper);\n }\n if (flags & 524288 /* Object */) {\n var objectFlags = type.objectFlags;\n if (objectFlags & (4 /* Reference */ | 16 /* Anonymous */ | 32 /* Mapped */)) {\n if (objectFlags & 4 /* Reference */ && !type.node) {\n var resolvedTypeArguments = type.resolvedTypeArguments;\n var newTypeArguments = instantiateTypes(resolvedTypeArguments, mapper);\n return newTypeArguments !== resolvedTypeArguments ? createNormalizedTypeReference(type.target, newTypeArguments) : type;\n }\n if (objectFlags & 1024 /* ReverseMapped */) {\n return instantiateReverseMappedType(type, mapper);\n }\n return getObjectTypeInstantiation(type, mapper, aliasSymbol, aliasTypeArguments);\n }\n return type;\n }\n if (flags & 3145728 /* UnionOrIntersection */) {\n var origin = type.flags & 1048576 /* Union */ ? type.origin : undefined;\n var types = origin && origin.flags & 3145728 /* UnionOrIntersection */ ? origin.types : type.types;\n var newTypes = instantiateTypes(types, mapper);\n if (newTypes === types && aliasSymbol === type.aliasSymbol) {\n return type;\n }\n var newAliasSymbol = aliasSymbol || type.aliasSymbol;\n var newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n return flags & 2097152 /* Intersection */ || origin && origin.flags & 2097152 /* Intersection */ ?\n getIntersectionType(newTypes, newAliasSymbol, newAliasTypeArguments) :\n getUnionType(newTypes, 1 /* Literal */, newAliasSymbol, newAliasTypeArguments);\n }\n if (flags & 4194304 /* Index */) {\n return getIndexType(instantiateType(type.type, mapper));\n }\n if (flags & 134217728 /* TemplateLiteral */) {\n return getTemplateLiteralType(type.texts, instantiateTypes(type.types, mapper));\n }\n if (flags & 268435456 /* StringMapping */) {\n return getStringMappingType(type.symbol, instantiateType(type.type, mapper));\n }\n if (flags & 8388608 /* IndexedAccess */) {\n var newAliasSymbol = aliasSymbol || type.aliasSymbol;\n var newAliasTypeArguments = aliasSymbol ? aliasTypeArguments : instantiateTypes(type.aliasTypeArguments, mapper);\n return getIndexedAccessType(instantiateType(type.objectType, mapper), instantiateType(type.indexType, mapper), type.accessFlags, /*accessNode*/ undefined, newAliasSymbol, newAliasTypeArguments);\n }\n if (flags & 16777216 /* Conditional */) {\n return getConditionalTypeInstantiation(type, combineTypeMappers(type.mapper, mapper), aliasSymbol, aliasTypeArguments);\n }\n if (flags & 33554432 /* Substitution */) {\n var maybeVariable = instantiateType(type.baseType, mapper);\n if (maybeVariable.flags & 8650752 /* TypeVariable */) {\n return getSubstitutionType(maybeVariable, instantiateType(type.substitute, mapper));\n }\n else {\n var sub = instantiateType(type.substitute, mapper);\n if (sub.flags & 3 /* AnyOrUnknown */ || isTypeAssignableTo(getRestrictiveInstantiation(maybeVariable), getRestrictiveInstantiation(sub))) {\n return maybeVariable;\n }\n return sub;\n }\n }\n return type;\n }\n function instantiateReverseMappedType(type, mapper) {\n var innerMappedType = instantiateType(type.mappedType, mapper);\n if (!(ts.getObjectFlags(innerMappedType) & 32 /* Mapped */)) {\n return type;\n }\n var innerIndexType = instantiateType(type.constraintType, mapper);\n if (!(innerIndexType.flags & 4194304 /* Index */)) {\n return type;\n }\n var instantiated = inferTypeForHomomorphicMappedType(instantiateType(type.source, mapper), innerMappedType, innerIndexType);\n if (instantiated) {\n return instantiated;\n }\n return type; // Nested invocation of `inferTypeForHomomorphicMappedType` or the `source` instantiated into something unmappable\n }\n function getPermissiveInstantiation(type) {\n return type.flags & (131068 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */) ? type :\n type.permissiveInstantiation || (type.permissiveInstantiation = instantiateType(type, permissiveMapper));\n }\n function getRestrictiveInstantiation(type) {\n if (type.flags & (131068 /* Primitive */ | 3 /* AnyOrUnknown */ | 131072 /* Never */)) {\n return type;\n }\n if (type.restrictiveInstantiation) {\n return type.restrictiveInstantiation;\n }\n type.restrictiveInstantiation = instantiateType(type, restrictiveMapper);\n // We set the following so we don't attempt to set the restrictive instance of a restrictive instance\n // which is redundant - we'll produce new type identities, but all type params have already been mapped.\n // This also gives us a way to detect restrictive instances upon comparisons and _disable_ the \"distributeive constraint\"\n // assignability check for them, which is distinctly unsafe, as once you have a restrctive instance, all the type parameters\n // are constrained to `unknown` and produce tons of false positives/negatives!\n type.restrictiveInstantiation.restrictiveInstantiation = type.restrictiveInstantiation;\n return type.restrictiveInstantiation;\n }\n function instantiateIndexInfo(info, mapper) {\n return createIndexInfo(info.keyType, instantiateType(info.type, mapper), info.isReadonly, info.declaration);\n }\n // Returns true if the given expression contains (at any level of nesting) a function or arrow expression\n // that is subject to contextual typing.\n function isContextSensitive(node) {\n ts.Debug.assert(node.kind !== 167 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node));\n switch (node.kind) {\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 254 /* FunctionDeclaration */: // Function declarations can have context when annotated with a jsdoc @type\n return isContextSensitiveFunctionLikeDeclaration(node);\n case 203 /* ObjectLiteralExpression */:\n return ts.some(node.properties, isContextSensitive);\n case 202 /* ArrayLiteralExpression */:\n return ts.some(node.elements, isContextSensitive);\n case 220 /* ConditionalExpression */:\n return isContextSensitive(node.whenTrue) ||\n isContextSensitive(node.whenFalse);\n case 219 /* BinaryExpression */:\n return (node.operatorToken.kind === 56 /* BarBarToken */ || node.operatorToken.kind === 60 /* QuestionQuestionToken */) &&\n (isContextSensitive(node.left) || isContextSensitive(node.right));\n case 291 /* PropertyAssignment */:\n return isContextSensitive(node.initializer);\n case 210 /* ParenthesizedExpression */:\n return isContextSensitive(node.expression);\n case 284 /* JsxAttributes */:\n return ts.some(node.properties, isContextSensitive) || ts.isJsxOpeningElement(node.parent) && ts.some(node.parent.parent.children, isContextSensitive);\n case 283 /* JsxAttribute */: {\n // If there is no initializer, JSX attribute has a boolean value of true which is not context sensitive.\n var initializer = node.initializer;\n return !!initializer && isContextSensitive(initializer);\n }\n case 286 /* JsxExpression */: {\n // It is possible to that node.expression is undefined (e.g

)\n var expression = node.expression;\n return !!expression && isContextSensitive(expression);\n }\n }\n return false;\n }\n function isContextSensitiveFunctionLikeDeclaration(node) {\n return (!ts.isFunctionDeclaration(node) || ts.isInJSFile(node) && !!getTypeForDeclarationFromJSDocComment(node)) &&\n (ts.hasContextSensitiveParameters(node) || hasContextSensitiveReturnExpression(node));\n }\n function hasContextSensitiveReturnExpression(node) {\n // TODO(anhans): A block should be context-sensitive if it has a context-sensitive return value.\n return !node.typeParameters && !ts.getEffectiveReturnTypeNode(node) && !!node.body && node.body.kind !== 233 /* Block */ && isContextSensitive(node.body);\n }\n function isContextSensitiveFunctionOrObjectLiteralMethod(func) {\n return (ts.isInJSFile(func) && ts.isFunctionDeclaration(func) || isFunctionExpressionOrArrowFunction(func) || ts.isObjectLiteralMethod(func)) &&\n isContextSensitiveFunctionLikeDeclaration(func);\n }\n function getTypeWithoutSignatures(type) {\n if (type.flags & 524288 /* Object */) {\n var resolved = resolveStructuredTypeMembers(type);\n if (resolved.constructSignatures.length || resolved.callSignatures.length) {\n var result = createObjectType(16 /* Anonymous */, type.symbol);\n result.members = resolved.members;\n result.properties = resolved.properties;\n result.callSignatures = ts.emptyArray;\n result.constructSignatures = ts.emptyArray;\n result.indexInfos = ts.emptyArray;\n return result;\n }\n }\n else if (type.flags & 2097152 /* Intersection */) {\n return getIntersectionType(ts.map(type.types, getTypeWithoutSignatures));\n }\n return type;\n }\n // TYPE CHECKING\n function isTypeIdenticalTo(source, target) {\n return isTypeRelatedTo(source, target, identityRelation);\n }\n function compareTypesIdentical(source, target) {\n return isTypeRelatedTo(source, target, identityRelation) ? -1 /* True */ : 0 /* False */;\n }\n function compareTypesAssignable(source, target) {\n return isTypeRelatedTo(source, target, assignableRelation) ? -1 /* True */ : 0 /* False */;\n }\n function compareTypesSubtypeOf(source, target) {\n return isTypeRelatedTo(source, target, subtypeRelation) ? -1 /* True */ : 0 /* False */;\n }\n function isTypeSubtypeOf(source, target) {\n return isTypeRelatedTo(source, target, subtypeRelation);\n }\n function isTypeAssignableTo(source, target) {\n return isTypeRelatedTo(source, target, assignableRelation);\n }\n // An object type S is considered to be derived from an object type T if\n // S is a union type and every constituent of S is derived from T,\n // T is a union type and S is derived from at least one constituent of T, or\n // S is a type variable with a base constraint that is derived from T,\n // T is one of the global types Object and Function and S is a subtype of T, or\n // T occurs directly or indirectly in an 'extends' clause of S.\n // Note that this check ignores type parameters and only considers the\n // inheritance hierarchy.\n function isTypeDerivedFrom(source, target) {\n return source.flags & 1048576 /* Union */ ? ts.every(source.types, function (t) { return isTypeDerivedFrom(t, target); }) :\n target.flags & 1048576 /* Union */ ? ts.some(target.types, function (t) { return isTypeDerivedFrom(source, t); }) :\n source.flags & 58982400 /* InstantiableNonPrimitive */ ? isTypeDerivedFrom(getBaseConstraintOfType(source) || unknownType, target) :\n target === globalObjectType ? !!(source.flags & (524288 /* Object */ | 67108864 /* NonPrimitive */)) :\n target === globalFunctionType ? !!(source.flags & 524288 /* Object */) && isFunctionObjectType(source) :\n hasBaseType(source, getTargetType(target)) || (isArrayType(target) && !isReadonlyArrayType(target) && isTypeDerivedFrom(source, globalReadonlyArrayType));\n }\n /**\n * This is *not* a bi-directional relationship.\n * If one needs to check both directions for comparability, use a second call to this function or 'checkTypeComparableTo'.\n *\n * A type S is comparable to a type T if some (but not necessarily all) of the possible values of S are also possible values of T.\n * It is used to check following cases:\n * - the types of the left and right sides of equality/inequality operators (`===`, `!==`, `==`, `!=`).\n * - the types of `case` clause expressions and their respective `switch` expressions.\n * - the type of an expression in a type assertion with the type being asserted.\n */\n function isTypeComparableTo(source, target) {\n return isTypeRelatedTo(source, target, comparableRelation);\n }\n function areTypesComparable(type1, type2) {\n return isTypeComparableTo(type1, type2) || isTypeComparableTo(type2, type1);\n }\n function checkTypeAssignableTo(source, target, errorNode, headMessage, containingMessageChain, errorOutputObject) {\n return checkTypeRelatedTo(source, target, assignableRelation, errorNode, headMessage, containingMessageChain, errorOutputObject);\n }\n /**\n * Like `checkTypeAssignableTo`, but if it would issue an error, instead performs structural comparisons of the types using the given expression node to\n * attempt to issue more specific errors on, for example, specific object literal properties or tuple members.\n */\n function checkTypeAssignableToAndOptionallyElaborate(source, target, errorNode, expr, headMessage, containingMessageChain) {\n return checkTypeRelatedToAndOptionallyElaborate(source, target, assignableRelation, errorNode, expr, headMessage, containingMessageChain, /*errorOutputContainer*/ undefined);\n }\n function checkTypeRelatedToAndOptionallyElaborate(source, target, relation, errorNode, expr, headMessage, containingMessageChain, errorOutputContainer) {\n if (isTypeRelatedTo(source, target, relation))\n return true;\n if (!errorNode || !elaborateError(expr, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) {\n return checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer);\n }\n return false;\n }\n function isOrHasGenericConditional(type) {\n return !!(type.flags & 16777216 /* Conditional */ || (type.flags & 2097152 /* Intersection */ && ts.some(type.types, isOrHasGenericConditional)));\n }\n function elaborateError(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) {\n if (!node || isOrHasGenericConditional(target))\n return false;\n if (!checkTypeRelatedTo(source, target, relation, /*errorNode*/ undefined)\n && elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer)) {\n return true;\n }\n switch (node.kind) {\n case 286 /* JsxExpression */:\n case 210 /* ParenthesizedExpression */:\n return elaborateError(node.expression, source, target, relation, headMessage, containingMessageChain, errorOutputContainer);\n case 219 /* BinaryExpression */:\n switch (node.operatorToken.kind) {\n case 63 /* EqualsToken */:\n case 27 /* CommaToken */:\n return elaborateError(node.right, source, target, relation, headMessage, containingMessageChain, errorOutputContainer);\n }\n break;\n case 203 /* ObjectLiteralExpression */:\n return elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer);\n case 202 /* ArrayLiteralExpression */:\n return elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer);\n case 284 /* JsxAttributes */:\n return elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer);\n case 212 /* ArrowFunction */:\n return elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer);\n }\n return false;\n }\n function elaborateDidYouMeanToCallOrConstruct(node, source, target, relation, headMessage, containingMessageChain, errorOutputContainer) {\n var callSignatures = getSignaturesOfType(source, 0 /* Call */);\n var constructSignatures = getSignaturesOfType(source, 1 /* Construct */);\n for (var _i = 0, _a = [constructSignatures, callSignatures]; _i < _a.length; _i++) {\n var signatures = _a[_i];\n if (ts.some(signatures, function (s) {\n var returnType = getReturnTypeOfSignature(s);\n return !(returnType.flags & (1 /* Any */ | 131072 /* Never */)) && checkTypeRelatedTo(returnType, target, relation, /*errorNode*/ undefined);\n })) {\n var resultObj = errorOutputContainer || {};\n checkTypeAssignableTo(source, target, node, headMessage, containingMessageChain, resultObj);\n var diagnostic = resultObj.errors[resultObj.errors.length - 1];\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(node, signatures === constructSignatures ? ts.Diagnostics.Did_you_mean_to_use_new_with_this_expression : ts.Diagnostics.Did_you_mean_to_call_this_expression));\n return true;\n }\n }\n return false;\n }\n function elaborateArrowFunction(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n // Don't elaborate blocks\n if (ts.isBlock(node.body)) {\n return false;\n }\n // Or functions with annotated parameter types\n if (ts.some(node.parameters, ts.hasType)) {\n return false;\n }\n var sourceSig = getSingleCallSignature(source);\n if (!sourceSig) {\n return false;\n }\n var targetSignatures = getSignaturesOfType(target, 0 /* Call */);\n if (!ts.length(targetSignatures)) {\n return false;\n }\n var returnExpression = node.body;\n var sourceReturn = getReturnTypeOfSignature(sourceSig);\n var targetReturn = getUnionType(ts.map(targetSignatures, getReturnTypeOfSignature));\n if (!checkTypeRelatedTo(sourceReturn, targetReturn, relation, /*errorNode*/ undefined)) {\n var elaborated = returnExpression && elaborateError(returnExpression, sourceReturn, targetReturn, relation, /*headMessage*/ undefined, containingMessageChain, errorOutputContainer);\n if (elaborated) {\n return elaborated;\n }\n var resultObj = errorOutputContainer || {};\n checkTypeRelatedTo(sourceReturn, targetReturn, relation, returnExpression, /*message*/ undefined, containingMessageChain, resultObj);\n if (resultObj.errors) {\n if (target.symbol && ts.length(target.symbol.declarations)) {\n ts.addRelatedInfo(resultObj.errors[resultObj.errors.length - 1], ts.createDiagnosticForNode(target.symbol.declarations[0], ts.Diagnostics.The_expected_type_comes_from_the_return_type_of_this_signature));\n }\n if ((ts.getFunctionFlags(node) & 2 /* Async */) === 0\n // exclude cases where source itself is promisy - this way we don't make a suggestion when relating\n // an IPromise and a Promise that are slightly different\n && !getTypeOfPropertyOfType(sourceReturn, \"then\")\n && checkTypeRelatedTo(createPromiseType(sourceReturn), targetReturn, relation, /*errorNode*/ undefined)) {\n ts.addRelatedInfo(resultObj.errors[resultObj.errors.length - 1], ts.createDiagnosticForNode(node, ts.Diagnostics.Did_you_mean_to_mark_this_function_as_async));\n }\n return true;\n }\n }\n return false;\n }\n function getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType) {\n var idx = getIndexedAccessTypeOrUndefined(target, nameType);\n if (idx) {\n return idx;\n }\n if (target.flags & 1048576 /* Union */) {\n var best = getBestMatchingType(source, target);\n if (best) {\n return getIndexedAccessTypeOrUndefined(best, nameType);\n }\n }\n }\n function checkExpressionForMutableLocationWithContextualType(next, sourcePropType) {\n next.contextualType = sourcePropType;\n try {\n return checkExpressionForMutableLocation(next, 1 /* Contextual */, sourcePropType);\n }\n finally {\n next.contextualType = undefined;\n }\n }\n /**\n * For every element returned from the iterator, checks that element to issue an error on a property of that element's type\n * If that element would issue an error, we first attempt to dive into that element's inner expression and issue a more specific error by recuring into `elaborateError`\n * Otherwise, we issue an error on _every_ element which fail the assignability check\n */\n function elaborateElementwise(iterator, source, target, relation, containingMessageChain, errorOutputContainer) {\n // Assignability failure - check each prop individually, and if that fails, fall back on the bad error span\n var reportedError = false;\n for (var status = iterator.next(); !status.done; status = iterator.next()) {\n var _a = status.value, prop = _a.errorNode, next = _a.innerExpression, nameType = _a.nameType, errorMessage = _a.errorMessage;\n var targetPropType = getBestMatchIndexedAccessTypeOrUndefined(source, target, nameType);\n if (!targetPropType || targetPropType.flags & 8388608 /* IndexedAccess */)\n continue; // Don't elaborate on indexes on generic variables\n var sourcePropType = getIndexedAccessTypeOrUndefined(source, nameType);\n if (!sourcePropType)\n continue;\n var propName = getPropertyNameFromIndex(nameType, /*accessNode*/ undefined);\n var targetIsOptional = !!(propName && (getPropertyOfType(target, propName) || unknownSymbol).flags & 16777216 /* Optional */);\n var sourceIsOptional = !!(propName && (getPropertyOfType(source, propName) || unknownSymbol).flags & 16777216 /* Optional */);\n targetPropType = removeMissingType(targetPropType, targetIsOptional);\n sourcePropType = removeMissingType(sourcePropType, targetIsOptional && sourceIsOptional);\n if (!checkTypeRelatedTo(sourcePropType, targetPropType, relation, /*errorNode*/ undefined)) {\n var elaborated = next && elaborateError(next, sourcePropType, targetPropType, relation, /*headMessage*/ undefined, containingMessageChain, errorOutputContainer);\n if (elaborated) {\n reportedError = true;\n }\n else {\n // Issue error on the prop itself, since the prop couldn't elaborate the error\n var resultObj = errorOutputContainer || {};\n // Use the expression type, if available\n var specificSource = next ? checkExpressionForMutableLocationWithContextualType(next, sourcePropType) : sourcePropType;\n var result = checkTypeRelatedTo(specificSource, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj);\n if (result && specificSource !== sourcePropType) {\n // If for whatever reason the expression type doesn't yield an error, make sure we still issue an error on the sourcePropType\n checkTypeRelatedTo(sourcePropType, targetPropType, relation, prop, errorMessage, containingMessageChain, resultObj);\n }\n if (resultObj.errors) {\n var reportedDiag = resultObj.errors[resultObj.errors.length - 1];\n var propertyName = isTypeUsableAsPropertyName(nameType) ? getPropertyNameFromType(nameType) : undefined;\n var targetProp = propertyName !== undefined ? getPropertyOfType(target, propertyName) : undefined;\n var issuedElaboration = false;\n if (!targetProp) {\n var indexInfo = getApplicableIndexInfo(target, nameType);\n if (indexInfo && indexInfo.declaration && !ts.getSourceFileOfNode(indexInfo.declaration).hasNoDefaultLib) {\n issuedElaboration = true;\n ts.addRelatedInfo(reportedDiag, ts.createDiagnosticForNode(indexInfo.declaration, ts.Diagnostics.The_expected_type_comes_from_this_index_signature));\n }\n }\n if (!issuedElaboration && (targetProp && ts.length(targetProp.declarations) || target.symbol && ts.length(target.symbol.declarations))) {\n var targetNode = targetProp && ts.length(targetProp.declarations) ? targetProp.declarations[0] : target.symbol.declarations[0];\n if (!ts.getSourceFileOfNode(targetNode).hasNoDefaultLib) {\n ts.addRelatedInfo(reportedDiag, ts.createDiagnosticForNode(targetNode, ts.Diagnostics.The_expected_type_comes_from_property_0_which_is_declared_here_on_type_1, propertyName && !(nameType.flags & 8192 /* UniqueESSymbol */) ? ts.unescapeLeadingUnderscores(propertyName) : typeToString(nameType), typeToString(target)));\n }\n }\n }\n reportedError = true;\n }\n }\n }\n return reportedError;\n }\n function generateJsxAttributes(node) {\n var _i, _a, prop;\n return __generator(this, function (_b) {\n switch (_b.label) {\n case 0:\n if (!ts.length(node.properties))\n return [2 /*return*/];\n _i = 0, _a = node.properties;\n _b.label = 1;\n case 1:\n if (!(_i < _a.length)) return [3 /*break*/, 4];\n prop = _a[_i];\n if (ts.isJsxSpreadAttribute(prop) || isHyphenatedJsxName(ts.idText(prop.name)))\n return [3 /*break*/, 3];\n return [4 /*yield*/, { errorNode: prop.name, innerExpression: prop.initializer, nameType: getStringLiteralType(ts.idText(prop.name)) }];\n case 2:\n _b.sent();\n _b.label = 3;\n case 3:\n _i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n }\n function generateJsxChildren(node, getInvalidTextDiagnostic) {\n var memberOffset, i, child, nameType, elem;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n if (!ts.length(node.children))\n return [2 /*return*/];\n memberOffset = 0;\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < node.children.length)) return [3 /*break*/, 5];\n child = node.children[i];\n nameType = getNumberLiteralType(i - memberOffset);\n elem = getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic);\n if (!elem) return [3 /*break*/, 3];\n return [4 /*yield*/, elem];\n case 2:\n _a.sent();\n return [3 /*break*/, 4];\n case 3:\n memberOffset++;\n _a.label = 4;\n case 4:\n i++;\n return [3 /*break*/, 1];\n case 5: return [2 /*return*/];\n }\n });\n }\n function getElaborationElementForJsxChild(child, nameType, getInvalidTextDiagnostic) {\n switch (child.kind) {\n case 286 /* JsxExpression */:\n // child is of the type of the expression\n return { errorNode: child, innerExpression: child.expression, nameType: nameType };\n case 11 /* JsxText */:\n if (child.containsOnlyTriviaWhiteSpaces) {\n break; // Whitespace only jsx text isn't real jsx text\n }\n // child is a string\n return { errorNode: child, innerExpression: undefined, nameType: nameType, errorMessage: getInvalidTextDiagnostic() };\n case 276 /* JsxElement */:\n case 277 /* JsxSelfClosingElement */:\n case 280 /* JsxFragment */:\n // child is of type JSX.Element\n return { errorNode: child, innerExpression: child, nameType: nameType };\n default:\n return ts.Debug.assertNever(child, \"Found invalid jsx child\");\n }\n }\n function elaborateJsxComponents(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n var result = elaborateElementwise(generateJsxAttributes(node), source, target, relation, containingMessageChain, errorOutputContainer);\n var invalidTextDiagnostic;\n if (ts.isJsxOpeningElement(node.parent) && ts.isJsxElement(node.parent.parent)) {\n var containingElement = node.parent.parent;\n var childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));\n var childrenPropName = childPropName === undefined ? \"children\" : ts.unescapeLeadingUnderscores(childPropName);\n var childrenNameType = getStringLiteralType(childrenPropName);\n var childrenTargetType = getIndexedAccessType(target, childrenNameType);\n var validChildren = ts.getSemanticJsxChildren(containingElement.children);\n if (!ts.length(validChildren)) {\n return result;\n }\n var moreThanOneRealChildren = ts.length(validChildren) > 1;\n var arrayLikeTargetParts = filterType(childrenTargetType, isArrayOrTupleLikeType);\n var nonArrayLikeTargetParts = filterType(childrenTargetType, function (t) { return !isArrayOrTupleLikeType(t); });\n if (moreThanOneRealChildren) {\n if (arrayLikeTargetParts !== neverType) {\n var realSource = createTupleType(checkJsxChildren(containingElement, 0 /* Normal */));\n var children = generateJsxChildren(containingElement, getInvalidTextualChildDiagnostic);\n result = elaborateElementwise(children, realSource, arrayLikeTargetParts, relation, containingMessageChain, errorOutputContainer) || result;\n }\n else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) {\n // arity mismatch\n result = true;\n var diag = error(containingElement.openingElement.tagName, ts.Diagnostics.This_JSX_tag_s_0_prop_expects_a_single_child_of_type_1_but_multiple_children_were_provided, childrenPropName, typeToString(childrenTargetType));\n if (errorOutputContainer && errorOutputContainer.skipLogging) {\n (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag);\n }\n }\n }\n else {\n if (nonArrayLikeTargetParts !== neverType) {\n var child = validChildren[0];\n var elem_1 = getElaborationElementForJsxChild(child, childrenNameType, getInvalidTextualChildDiagnostic);\n if (elem_1) {\n result = elaborateElementwise((function () { return __generator(this, function (_a) {\n switch (_a.label) {\n case 0: return [4 /*yield*/, elem_1];\n case 1:\n _a.sent();\n return [2 /*return*/];\n }\n }); })(), source, target, relation, containingMessageChain, errorOutputContainer) || result;\n }\n }\n else if (!isTypeRelatedTo(getIndexedAccessType(source, childrenNameType), childrenTargetType, relation)) {\n // arity mismatch\n result = true;\n var diag = error(containingElement.openingElement.tagName, ts.Diagnostics.This_JSX_tag_s_0_prop_expects_type_1_which_requires_multiple_children_but_only_a_single_child_was_provided, childrenPropName, typeToString(childrenTargetType));\n if (errorOutputContainer && errorOutputContainer.skipLogging) {\n (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag);\n }\n }\n }\n }\n return result;\n function getInvalidTextualChildDiagnostic() {\n if (!invalidTextDiagnostic) {\n var tagNameText = ts.getTextOfNode(node.parent.tagName);\n var childPropName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));\n var childrenPropName = childPropName === undefined ? \"children\" : ts.unescapeLeadingUnderscores(childPropName);\n var childrenTargetType = getIndexedAccessType(target, getStringLiteralType(childrenPropName));\n var diagnostic = ts.Diagnostics._0_components_don_t_accept_text_as_child_elements_Text_in_JSX_has_the_type_string_but_the_expected_type_of_1_is_2;\n invalidTextDiagnostic = __assign(__assign({}, diagnostic), { key: \"!!ALREADY FORMATTED!!\", message: ts.formatMessage(/*_dummy*/ undefined, diagnostic, tagNameText, childrenPropName, typeToString(childrenTargetType)) });\n }\n return invalidTextDiagnostic;\n }\n }\n function generateLimitedTupleElements(node, target) {\n var len, i, elem, nameType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n len = ts.length(node.elements);\n if (!len)\n return [2 /*return*/];\n i = 0;\n _a.label = 1;\n case 1:\n if (!(i < len)) return [3 /*break*/, 4];\n // Skip elements which do not exist in the target - a length error on the tuple overall is likely better than an error on a mismatched index signature\n if (isTupleLikeType(target) && !getPropertyOfType(target, (\"\" + i)))\n return [3 /*break*/, 3];\n elem = node.elements[i];\n if (ts.isOmittedExpression(elem))\n return [3 /*break*/, 3];\n nameType = getNumberLiteralType(i);\n return [4 /*yield*/, { errorNode: elem, innerExpression: elem, nameType: nameType }];\n case 2:\n _a.sent();\n _a.label = 3;\n case 3:\n i++;\n return [3 /*break*/, 1];\n case 4: return [2 /*return*/];\n }\n });\n }\n function elaborateArrayLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n if (target.flags & 131068 /* Primitive */)\n return false;\n if (isTupleLikeType(source)) {\n return elaborateElementwise(generateLimitedTupleElements(node, target), source, target, relation, containingMessageChain, errorOutputContainer);\n }\n // recreate a tuple from the elements, if possible\n // Since we're re-doing the expression type, we need to reapply the contextual type\n var oldContext = node.contextualType;\n node.contextualType = target;\n try {\n var tupleizedType = checkArrayLiteral(node, 1 /* Contextual */, /*forceTuple*/ true);\n node.contextualType = oldContext;\n if (isTupleLikeType(tupleizedType)) {\n return elaborateElementwise(generateLimitedTupleElements(node, target), tupleizedType, target, relation, containingMessageChain, errorOutputContainer);\n }\n return false;\n }\n finally {\n node.contextualType = oldContext;\n }\n }\n function generateObjectLiteralElements(node) {\n var _i, _a, prop, type, _b;\n return __generator(this, function (_c) {\n switch (_c.label) {\n case 0:\n if (!ts.length(node.properties))\n return [2 /*return*/];\n _i = 0, _a = node.properties;\n _c.label = 1;\n case 1:\n if (!(_i < _a.length)) return [3 /*break*/, 8];\n prop = _a[_i];\n if (ts.isSpreadAssignment(prop))\n return [3 /*break*/, 7];\n type = getLiteralTypeFromProperty(getSymbolOfNode(prop), 8576 /* StringOrNumberLiteralOrUnique */);\n if (!type || (type.flags & 131072 /* Never */)) {\n return [3 /*break*/, 7];\n }\n _b = prop.kind;\n switch (_b) {\n case 171 /* SetAccessor */: return [3 /*break*/, 2];\n case 170 /* GetAccessor */: return [3 /*break*/, 2];\n case 167 /* MethodDeclaration */: return [3 /*break*/, 2];\n case 292 /* ShorthandPropertyAssignment */: return [3 /*break*/, 2];\n case 291 /* PropertyAssignment */: return [3 /*break*/, 4];\n }\n return [3 /*break*/, 6];\n case 2: return [4 /*yield*/, { errorNode: prop.name, innerExpression: undefined, nameType: type }];\n case 3:\n _c.sent();\n return [3 /*break*/, 7];\n case 4: return [4 /*yield*/, { errorNode: prop.name, innerExpression: prop.initializer, nameType: type, errorMessage: ts.isComputedNonLiteralName(prop.name) ? ts.Diagnostics.Type_of_computed_property_s_value_is_0_which_is_not_assignable_to_type_1 : undefined }];\n case 5:\n _c.sent();\n return [3 /*break*/, 7];\n case 6:\n ts.Debug.assertNever(prop);\n _c.label = 7;\n case 7:\n _i++;\n return [3 /*break*/, 1];\n case 8: return [2 /*return*/];\n }\n });\n }\n function elaborateObjectLiteral(node, source, target, relation, containingMessageChain, errorOutputContainer) {\n if (target.flags & 131068 /* Primitive */)\n return false;\n return elaborateElementwise(generateObjectLiteralElements(node), source, target, relation, containingMessageChain, errorOutputContainer);\n }\n /**\n * This is *not* a bi-directional relationship.\n * If one needs to check both directions for comparability, use a second call to this function or 'isTypeComparableTo'.\n */\n function checkTypeComparableTo(source, target, errorNode, headMessage, containingMessageChain) {\n return checkTypeRelatedTo(source, target, comparableRelation, errorNode, headMessage, containingMessageChain);\n }\n function isSignatureAssignableTo(source, target, ignoreReturnTypes) {\n return compareSignaturesRelated(source, target, ignoreReturnTypes ? 4 /* IgnoreReturnTypes */ : 0, /*reportErrors*/ false, \n /*errorReporter*/ undefined, /*errorReporter*/ undefined, compareTypesAssignable, /*reportUnreliableMarkers*/ undefined) !== 0 /* False */;\n }\n /**\n * Returns true if `s` is `(...args: any[]) => any` or `(this: any, ...args: any[]) => any`\n */\n function isAnySignature(s) {\n return !s.typeParameters && (!s.thisParameter || isTypeAny(getTypeOfParameter(s.thisParameter))) && s.parameters.length === 1 &&\n signatureHasRestParameter(s) && (getTypeOfParameter(s.parameters[0]) === anyArrayType || isTypeAny(getTypeOfParameter(s.parameters[0]))) &&\n isTypeAny(getReturnTypeOfSignature(s));\n }\n /**\n * See signatureRelatedTo, compareSignaturesIdentical\n */\n function compareSignaturesRelated(source, target, checkMode, reportErrors, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) {\n // TODO (drosen): De-duplicate code between related functions.\n if (source === target) {\n return -1 /* True */;\n }\n if (isAnySignature(target)) {\n return -1 /* True */;\n }\n var targetCount = getParameterCount(target);\n var sourceHasMoreParameters = !hasEffectiveRestParameter(target) &&\n (checkMode & 8 /* StrictArity */ ? hasEffectiveRestParameter(source) || getParameterCount(source) > targetCount : getMinArgumentCount(source) > targetCount);\n if (sourceHasMoreParameters) {\n return 0 /* False */;\n }\n if (source.typeParameters && source.typeParameters !== target.typeParameters) {\n target = getCanonicalSignature(target);\n source = instantiateSignatureInContextOf(source, target, /*inferenceContext*/ undefined, compareTypes);\n }\n var sourceCount = getParameterCount(source);\n var sourceRestType = getNonArrayRestType(source);\n var targetRestType = getNonArrayRestType(target);\n if (sourceRestType || targetRestType) {\n void instantiateType(sourceRestType || targetRestType, reportUnreliableMarkers);\n }\n if (sourceRestType && targetRestType && sourceCount !== targetCount) {\n // We're not able to relate misaligned complex rest parameters\n return 0 /* False */;\n }\n var kind = target.declaration ? target.declaration.kind : 0 /* Unknown */;\n var strictVariance = !(checkMode & 3 /* Callback */) && strictFunctionTypes && kind !== 167 /* MethodDeclaration */ &&\n kind !== 166 /* MethodSignature */ && kind !== 169 /* Constructor */;\n var result = -1 /* True */;\n var sourceThisType = getThisTypeOfSignature(source);\n if (sourceThisType && sourceThisType !== voidType) {\n var targetThisType = getThisTypeOfSignature(target);\n if (targetThisType) {\n // void sources are assignable to anything.\n var related = !strictVariance && compareTypes(sourceThisType, targetThisType, /*reportErrors*/ false)\n || compareTypes(targetThisType, sourceThisType, reportErrors);\n if (!related) {\n if (reportErrors) {\n errorReporter(ts.Diagnostics.The_this_types_of_each_signature_are_incompatible);\n }\n return 0 /* False */;\n }\n result &= related;\n }\n }\n var paramCount = sourceRestType || targetRestType ? Math.min(sourceCount, targetCount) : Math.max(sourceCount, targetCount);\n var restIndex = sourceRestType || targetRestType ? paramCount - 1 : -1;\n for (var i = 0; i < paramCount; i++) {\n var sourceType = i === restIndex ? getRestTypeAtPosition(source, i) : tryGetTypeAtPosition(source, i);\n var targetType = i === restIndex ? getRestTypeAtPosition(target, i) : tryGetTypeAtPosition(target, i);\n if (sourceType && targetType) {\n // In order to ensure that any generic type Foo is at least co-variant with respect to T no matter\n // how Foo uses T, we need to relate parameters bi-variantly (given that parameters are input positions,\n // they naturally relate only contra-variantly). However, if the source and target parameters both have\n // function types with a single call signature, we know we are relating two callback parameters. In\n // that case it is sufficient to only relate the parameters of the signatures co-variantly because,\n // similar to return values, callback parameters are output positions. This means that a Promise,\n // where T is used only in callback parameter positions, will be co-variant (as opposed to bi-variant)\n // with respect to T.\n var sourceSig = checkMode & 3 /* Callback */ ? undefined : getSingleCallSignature(getNonNullableType(sourceType));\n var targetSig = checkMode & 3 /* Callback */ ? undefined : getSingleCallSignature(getNonNullableType(targetType));\n var callbacks = sourceSig && targetSig && !getTypePredicateOfSignature(sourceSig) && !getTypePredicateOfSignature(targetSig) &&\n (getFalsyFlags(sourceType) & 98304 /* Nullable */) === (getFalsyFlags(targetType) & 98304 /* Nullable */);\n var related = callbacks ?\n compareSignaturesRelated(targetSig, sourceSig, (checkMode & 8 /* StrictArity */) | (strictVariance ? 2 /* StrictCallback */ : 1 /* BivariantCallback */), reportErrors, errorReporter, incompatibleErrorReporter, compareTypes, reportUnreliableMarkers) :\n !(checkMode & 3 /* Callback */) && !strictVariance && compareTypes(sourceType, targetType, /*reportErrors*/ false) || compareTypes(targetType, sourceType, reportErrors);\n // With strict arity, (x: number | undefined) => void is a subtype of (x?: number | undefined) => void\n if (related && checkMode & 8 /* StrictArity */ && i >= getMinArgumentCount(source) && i < getMinArgumentCount(target) && compareTypes(sourceType, targetType, /*reportErrors*/ false)) {\n related = 0 /* False */;\n }\n if (!related) {\n if (reportErrors) {\n errorReporter(ts.Diagnostics.Types_of_parameters_0_and_1_are_incompatible, ts.unescapeLeadingUnderscores(getParameterNameAtPosition(source, i)), ts.unescapeLeadingUnderscores(getParameterNameAtPosition(target, i)));\n }\n return 0 /* False */;\n }\n result &= related;\n }\n }\n if (!(checkMode & 4 /* IgnoreReturnTypes */)) {\n // If a signature resolution is already in-flight, skip issuing a circularity error\n // here and just use the `any` type directly\n var targetReturnType = isResolvingReturnTypeOfSignature(target) ? anyType\n : target.declaration && isJSConstructor(target.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(target.declaration.symbol))\n : getReturnTypeOfSignature(target);\n if (targetReturnType === voidType) {\n return result;\n }\n var sourceReturnType = isResolvingReturnTypeOfSignature(source) ? anyType\n : source.declaration && isJSConstructor(source.declaration) ? getDeclaredTypeOfClassOrInterface(getMergedSymbol(source.declaration.symbol))\n : getReturnTypeOfSignature(source);\n // The following block preserves behavior forbidding boolean returning functions from being assignable to type guard returning functions\n var targetTypePredicate = getTypePredicateOfSignature(target);\n if (targetTypePredicate) {\n var sourceTypePredicate = getTypePredicateOfSignature(source);\n if (sourceTypePredicate) {\n result &= compareTypePredicateRelatedTo(sourceTypePredicate, targetTypePredicate, reportErrors, errorReporter, compareTypes);\n }\n else if (ts.isIdentifierTypePredicate(targetTypePredicate)) {\n if (reportErrors) {\n errorReporter(ts.Diagnostics.Signature_0_must_be_a_type_predicate, signatureToString(source));\n }\n return 0 /* False */;\n }\n }\n else {\n // When relating callback signatures, we still need to relate return types bi-variantly as otherwise\n // the containing type wouldn't be co-variant. For example, interface Foo { add(cb: () => T): void }\n // wouldn't be co-variant for T without this rule.\n result &= checkMode & 1 /* BivariantCallback */ && compareTypes(targetReturnType, sourceReturnType, /*reportErrors*/ false) ||\n compareTypes(sourceReturnType, targetReturnType, reportErrors);\n if (!result && reportErrors && incompatibleErrorReporter) {\n incompatibleErrorReporter(sourceReturnType, targetReturnType);\n }\n }\n }\n return result;\n }\n function compareTypePredicateRelatedTo(source, target, reportErrors, errorReporter, compareTypes) {\n if (source.kind !== target.kind) {\n if (reportErrors) {\n errorReporter(ts.Diagnostics.A_this_based_type_guard_is_not_compatible_with_a_parameter_based_type_guard);\n errorReporter(ts.Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target));\n }\n return 0 /* False */;\n }\n if (source.kind === 1 /* Identifier */ || source.kind === 3 /* AssertsIdentifier */) {\n if (source.parameterIndex !== target.parameterIndex) {\n if (reportErrors) {\n errorReporter(ts.Diagnostics.Parameter_0_is_not_in_the_same_position_as_parameter_1, source.parameterName, target.parameterName);\n errorReporter(ts.Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target));\n }\n return 0 /* False */;\n }\n }\n var related = source.type === target.type ? -1 /* True */ :\n source.type && target.type ? compareTypes(source.type, target.type, reportErrors) :\n 0 /* False */;\n if (related === 0 /* False */ && reportErrors) {\n errorReporter(ts.Diagnostics.Type_predicate_0_is_not_assignable_to_1, typePredicateToString(source), typePredicateToString(target));\n }\n return related;\n }\n function isImplementationCompatibleWithOverload(implementation, overload) {\n var erasedSource = getErasedSignature(implementation);\n var erasedTarget = getErasedSignature(overload);\n // First see if the return types are compatible in either direction.\n var sourceReturnType = getReturnTypeOfSignature(erasedSource);\n var targetReturnType = getReturnTypeOfSignature(erasedTarget);\n if (targetReturnType === voidType\n || isTypeRelatedTo(targetReturnType, sourceReturnType, assignableRelation)\n || isTypeRelatedTo(sourceReturnType, targetReturnType, assignableRelation)) {\n return isSignatureAssignableTo(erasedSource, erasedTarget, /*ignoreReturnTypes*/ true);\n }\n return false;\n }\n function isEmptyResolvedType(t) {\n return t !== anyFunctionType &&\n t.properties.length === 0 &&\n t.callSignatures.length === 0 &&\n t.constructSignatures.length === 0 &&\n t.indexInfos.length === 0;\n }\n function isEmptyObjectType(type) {\n return type.flags & 524288 /* Object */ ? !isGenericMappedType(type) && isEmptyResolvedType(resolveStructuredTypeMembers(type)) :\n type.flags & 67108864 /* NonPrimitive */ ? true :\n type.flags & 1048576 /* Union */ ? ts.some(type.types, isEmptyObjectType) :\n type.flags & 2097152 /* Intersection */ ? ts.every(type.types, isEmptyObjectType) :\n false;\n }\n function isEmptyAnonymousObjectType(type) {\n return !!(ts.getObjectFlags(type) & 16 /* Anonymous */ && (type.members && isEmptyResolvedType(type) ||\n type.symbol && type.symbol.flags & 2048 /* TypeLiteral */ && getMembersOfSymbol(type.symbol).size === 0));\n }\n function isStringIndexSignatureOnlyType(type) {\n return type.flags & 524288 /* Object */ && !isGenericMappedType(type) && getPropertiesOfType(type).length === 0 && getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, stringType) ||\n type.flags & 3145728 /* UnionOrIntersection */ && ts.every(type.types, isStringIndexSignatureOnlyType) ||\n false;\n }\n function isEnumTypeRelatedTo(sourceSymbol, targetSymbol, errorReporter) {\n if (sourceSymbol === targetSymbol) {\n return true;\n }\n var id = getSymbolId(sourceSymbol) + \",\" + getSymbolId(targetSymbol);\n var entry = enumRelation.get(id);\n if (entry !== undefined && !(!(entry & 4 /* Reported */) && entry & 2 /* Failed */ && errorReporter)) {\n return !!(entry & 1 /* Succeeded */);\n }\n if (sourceSymbol.escapedName !== targetSymbol.escapedName || !(sourceSymbol.flags & 256 /* RegularEnum */) || !(targetSymbol.flags & 256 /* RegularEnum */)) {\n enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);\n return false;\n }\n var targetEnumType = getTypeOfSymbol(targetSymbol);\n for (var _i = 0, _a = getPropertiesOfType(getTypeOfSymbol(sourceSymbol)); _i < _a.length; _i++) {\n var property = _a[_i];\n if (property.flags & 8 /* EnumMember */) {\n var targetProperty = getPropertyOfType(targetEnumType, property.escapedName);\n if (!targetProperty || !(targetProperty.flags & 8 /* EnumMember */)) {\n if (errorReporter) {\n errorReporter(ts.Diagnostics.Property_0_is_missing_in_type_1, ts.symbolName(property), typeToString(getDeclaredTypeOfSymbol(targetSymbol), /*enclosingDeclaration*/ undefined, 64 /* UseFullyQualifiedType */));\n enumRelation.set(id, 2 /* Failed */ | 4 /* Reported */);\n }\n else {\n enumRelation.set(id, 2 /* Failed */);\n }\n return false;\n }\n }\n }\n enumRelation.set(id, 1 /* Succeeded */);\n return true;\n }\n function isSimpleTypeRelatedTo(source, target, relation, errorReporter) {\n var s = source.flags;\n var t = target.flags;\n if (t & 3 /* AnyOrUnknown */ || s & 131072 /* Never */ || source === wildcardType)\n return true;\n if (t & 131072 /* Never */)\n return false;\n if (s & 402653316 /* StringLike */ && t & 4 /* String */)\n return true;\n if (s & 128 /* StringLiteral */ && s & 1024 /* EnumLiteral */ &&\n t & 128 /* StringLiteral */ && !(t & 1024 /* EnumLiteral */) &&\n source.value === target.value)\n return true;\n if (s & 296 /* NumberLike */ && t & 8 /* Number */)\n return true;\n if (s & 256 /* NumberLiteral */ && s & 1024 /* EnumLiteral */ &&\n t & 256 /* NumberLiteral */ && !(t & 1024 /* EnumLiteral */) &&\n source.value === target.value)\n return true;\n if (s & 2112 /* BigIntLike */ && t & 64 /* BigInt */)\n return true;\n if (s & 528 /* BooleanLike */ && t & 16 /* Boolean */)\n return true;\n if (s & 12288 /* ESSymbolLike */ && t & 4096 /* ESSymbol */)\n return true;\n if (s & 32 /* Enum */ && t & 32 /* Enum */ && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter))\n return true;\n if (s & 1024 /* EnumLiteral */ && t & 1024 /* EnumLiteral */) {\n if (s & 1048576 /* Union */ && t & 1048576 /* Union */ && isEnumTypeRelatedTo(source.symbol, target.symbol, errorReporter))\n return true;\n if (s & 2944 /* Literal */ && t & 2944 /* Literal */ &&\n source.value === target.value &&\n isEnumTypeRelatedTo(getParentOfSymbol(source.symbol), getParentOfSymbol(target.symbol), errorReporter))\n return true;\n }\n if (s & 32768 /* Undefined */ && (!strictNullChecks || t & (32768 /* Undefined */ | 16384 /* Void */)))\n return true;\n if (s & 65536 /* Null */ && (!strictNullChecks || t & 65536 /* Null */))\n return true;\n if (s & 524288 /* Object */ && t & 67108864 /* NonPrimitive */)\n return true;\n if (relation === assignableRelation || relation === comparableRelation) {\n if (s & 1 /* Any */)\n return true;\n // Type number or any numeric literal type is assignable to any numeric enum type or any\n // numeric enum literal type. This rule exists for backwards compatibility reasons because\n // bit-flag enum types sometimes look like literal enum types with numeric literal values.\n if (s & (8 /* Number */ | 256 /* NumberLiteral */) && !(s & 1024 /* EnumLiteral */) && (t & 32 /* Enum */ || relation === assignableRelation && t & 256 /* NumberLiteral */ && t & 1024 /* EnumLiteral */))\n return true;\n }\n return false;\n }\n function isTypeRelatedTo(source, target, relation) {\n if (isFreshLiteralType(source)) {\n source = source.regularType;\n }\n if (isFreshLiteralType(target)) {\n target = target.regularType;\n }\n if (source === target) {\n return true;\n }\n if (relation !== identityRelation) {\n if (relation === comparableRelation && !(target.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(target, source, relation) || isSimpleTypeRelatedTo(source, target, relation)) {\n return true;\n }\n }\n else {\n if (source.flags !== target.flags)\n return false;\n if (source.flags & 67358815 /* Singleton */)\n return true;\n }\n if (source.flags & 524288 /* Object */ && target.flags & 524288 /* Object */) {\n var related = relation.get(getRelationKey(source, target, 0 /* None */, relation));\n if (related !== undefined) {\n return !!(related & 1 /* Succeeded */);\n }\n }\n if (source.flags & 469499904 /* StructuredOrInstantiable */ || target.flags & 469499904 /* StructuredOrInstantiable */) {\n return checkTypeRelatedTo(source, target, relation, /*errorNode*/ undefined);\n }\n return false;\n }\n function isIgnoredJsxProperty(source, sourceProp) {\n return ts.getObjectFlags(source) & 2048 /* JsxAttributes */ && isHyphenatedJsxName(sourceProp.escapedName);\n }\n function getNormalizedType(type, writing) {\n while (true) {\n var t = isFreshLiteralType(type) ? type.regularType :\n ts.getObjectFlags(type) & 4 /* Reference */ && type.node ? createTypeReference(type.target, getTypeArguments(type)) :\n type.flags & 3145728 /* UnionOrIntersection */ ? getReducedType(type) :\n type.flags & 33554432 /* Substitution */ ? writing ? type.baseType : type.substitute :\n type.flags & 25165824 /* Simplifiable */ ? getSimplifiedType(type, writing) :\n type;\n t = getSingleBaseForNonAugmentingSubtype(t) || t;\n if (t === type)\n break;\n type = t;\n }\n return type;\n }\n /**\n * Checks if 'source' is related to 'target' (e.g.: is a assignable to).\n * @param source The left-hand-side of the relation.\n * @param target The right-hand-side of the relation.\n * @param relation The relation considered. One of 'identityRelation', 'subtypeRelation', 'assignableRelation', or 'comparableRelation'.\n * Used as both to determine which checks are performed and as a cache of previously computed results.\n * @param errorNode The suggested node upon which all errors will be reported, if defined. This may or may not be the actual node used.\n * @param headMessage If the error chain should be prepended by a head message, then headMessage will be used.\n * @param containingMessageChain A chain of errors to prepend any new errors found.\n * @param errorOutputContainer Return the diagnostic. Do not log if 'skipLogging' is truthy.\n */\n function checkTypeRelatedTo(source, target, relation, errorNode, headMessage, containingMessageChain, errorOutputContainer) {\n var errorInfo;\n var relatedInfo;\n var maybeKeys;\n var sourceStack;\n var targetStack;\n var maybeCount = 0;\n var depth = 0;\n var expandingFlags = 0 /* None */;\n var overflow = false;\n var overrideNextErrorInfo = 0; // How many `reportRelationError` calls should be skipped in the elaboration pyramid\n var lastSkippedInfo;\n var incompatibleStack = [];\n var inPropertyCheck = false;\n ts.Debug.assert(relation !== identityRelation || !errorNode, \"no error reporting in identity checking\");\n var result = isRelatedTo(source, target, /*reportErrors*/ !!errorNode, headMessage);\n if (incompatibleStack.length) {\n reportIncompatibleStack();\n }\n if (overflow) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"checkTypeRelatedTo_DepthLimit\", { sourceId: source.id, targetId: target.id, depth: depth });\n var diag = error(errorNode || currentNode, ts.Diagnostics.Excessive_stack_depth_comparing_types_0_and_1, typeToString(source), typeToString(target));\n if (errorOutputContainer) {\n (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag);\n }\n }\n else if (errorInfo) {\n if (containingMessageChain) {\n var chain = containingMessageChain();\n if (chain) {\n ts.concatenateDiagnosticMessageChains(chain, errorInfo);\n errorInfo = chain;\n }\n }\n var relatedInformation = void 0;\n // Check if we should issue an extra diagnostic to produce a quickfix for a slightly incorrect import statement\n if (headMessage && errorNode && !result && source.symbol) {\n var links = getSymbolLinks(source.symbol);\n if (links.originatingImport && !ts.isImportCall(links.originatingImport)) {\n var helpfulRetry = checkTypeRelatedTo(getTypeOfSymbol(links.target), target, relation, /*errorNode*/ undefined);\n if (helpfulRetry) {\n // Likely an incorrect import. Issue a helpful diagnostic to produce a quickfix to change the import\n var diag_1 = ts.createDiagnosticForNode(links.originatingImport, ts.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead);\n relatedInformation = ts.append(relatedInformation, diag_1); // Cause the error to appear with the error that triggered it\n }\n }\n }\n var diag = ts.createDiagnosticForNodeFromMessageChain(errorNode, errorInfo, relatedInformation);\n if (relatedInfo) {\n ts.addRelatedInfo.apply(void 0, __spreadArray([diag], relatedInfo, false));\n }\n if (errorOutputContainer) {\n (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag);\n }\n if (!errorOutputContainer || !errorOutputContainer.skipLogging) {\n diagnostics.add(diag);\n }\n }\n if (errorNode && errorOutputContainer && errorOutputContainer.skipLogging && result === 0 /* False */) {\n ts.Debug.assert(!!errorOutputContainer.errors, \"missed opportunity to interact with error.\");\n }\n return result !== 0 /* False */;\n function resetErrorInfo(saved) {\n errorInfo = saved.errorInfo;\n lastSkippedInfo = saved.lastSkippedInfo;\n incompatibleStack = saved.incompatibleStack;\n overrideNextErrorInfo = saved.overrideNextErrorInfo;\n relatedInfo = saved.relatedInfo;\n }\n function captureErrorCalculationState() {\n return {\n errorInfo: errorInfo,\n lastSkippedInfo: lastSkippedInfo,\n incompatibleStack: incompatibleStack.slice(),\n overrideNextErrorInfo: overrideNextErrorInfo,\n relatedInfo: !relatedInfo ? undefined : relatedInfo.slice()\n };\n }\n function reportIncompatibleError(message, arg0, arg1, arg2, arg3) {\n overrideNextErrorInfo++; // Suppress the next relation error\n lastSkippedInfo = undefined; // Reset skipped info cache\n incompatibleStack.push([message, arg0, arg1, arg2, arg3]);\n }\n function reportIncompatibleStack() {\n var stack = incompatibleStack;\n incompatibleStack = [];\n var info = lastSkippedInfo;\n lastSkippedInfo = undefined;\n if (stack.length === 1) {\n reportError.apply(void 0, stack[0]);\n if (info) {\n // Actually do the last relation error\n reportRelationError.apply(void 0, __spreadArray([/*headMessage*/ undefined], info, false));\n }\n return;\n }\n // The first error will be the innermost, while the last will be the outermost - so by popping off the end,\n // we can build from left to right\n var path = \"\";\n var secondaryRootErrors = [];\n while (stack.length) {\n var _a = stack.pop(), msg = _a[0], args = _a.slice(1);\n switch (msg.code) {\n case ts.Diagnostics.Types_of_property_0_are_incompatible.code: {\n // Parenthesize a `new` if there is one\n if (path.indexOf(\"new \") === 0) {\n path = \"(\" + path + \")\";\n }\n var str = \"\" + args[0];\n // If leading, just print back the arg (irrespective of if it's a valid identifier)\n if (path.length === 0) {\n path = \"\" + str;\n }\n // Otherwise write a dotted name if possible\n else if (ts.isIdentifierText(str, compilerOptions.target)) {\n path = path + \".\" + str;\n }\n // Failing that, check if the name is already a computed name\n else if (str[0] === \"[\" && str[str.length - 1] === \"]\") {\n path = \"\" + path + str;\n }\n // And finally write out a computed name as a last resort\n else {\n path = path + \"[\" + str + \"]\";\n }\n break;\n }\n case ts.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible.code:\n case ts.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code:\n case ts.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code:\n case ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code: {\n if (path.length === 0) {\n // Don't flatten signature compatability errors at the start of a chain - instead prefer\n // to unify (the with no arguments bit is excessive for printback) and print them back\n var mappedMsg = msg;\n if (msg.code === ts.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) {\n mappedMsg = ts.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible;\n }\n else if (msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code) {\n mappedMsg = ts.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible;\n }\n secondaryRootErrors.unshift([mappedMsg, args[0], args[1]]);\n }\n else {\n var prefix = (msg.code === ts.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible.code ||\n msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)\n ? \"new \"\n : \"\";\n var params = (msg.code === ts.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code ||\n msg.code === ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1.code)\n ? \"\"\n : \"...\";\n path = \"\" + prefix + path + \"(\" + params + \")\";\n }\n break;\n }\n case ts.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target.code: {\n secondaryRootErrors.unshift([ts.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, args[0], args[1]]);\n break;\n }\n case ts.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target.code: {\n secondaryRootErrors.unshift([ts.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, args[0], args[1], args[2]]);\n break;\n }\n default:\n return ts.Debug.fail(\"Unhandled Diagnostic: \" + msg.code);\n }\n }\n if (path) {\n reportError(path[path.length - 1] === \")\"\n ? ts.Diagnostics.The_types_returned_by_0_are_incompatible_between_these_types\n : ts.Diagnostics.The_types_of_0_are_incompatible_between_these_types, path);\n }\n else {\n // Remove the innermost secondary error as it will duplicate the error already reported by `reportRelationError` on entry\n secondaryRootErrors.shift();\n }\n for (var _i = 0, secondaryRootErrors_1 = secondaryRootErrors; _i < secondaryRootErrors_1.length; _i++) {\n var _b = secondaryRootErrors_1[_i], msg = _b[0], args = _b.slice(1);\n var originalValue = msg.elidedInCompatabilityPyramid;\n msg.elidedInCompatabilityPyramid = false; // Temporarily override elision to ensure error is reported\n reportError.apply(void 0, __spreadArray([msg], args, false));\n msg.elidedInCompatabilityPyramid = originalValue;\n }\n if (info) {\n // Actually do the last relation error\n reportRelationError.apply(void 0, __spreadArray([/*headMessage*/ undefined], info, false));\n }\n }\n function reportError(message, arg0, arg1, arg2, arg3) {\n ts.Debug.assert(!!errorNode);\n if (incompatibleStack.length)\n reportIncompatibleStack();\n if (message.elidedInCompatabilityPyramid)\n return;\n errorInfo = ts.chainDiagnosticMessages(errorInfo, message, arg0, arg1, arg2, arg3);\n }\n function associateRelatedInfo(info) {\n ts.Debug.assert(!!errorInfo);\n if (!relatedInfo) {\n relatedInfo = [info];\n }\n else {\n relatedInfo.push(info);\n }\n }\n function reportRelationError(message, source, target) {\n if (incompatibleStack.length)\n reportIncompatibleStack();\n var _a = getTypeNamesForErrorDisplay(source, target), sourceType = _a[0], targetType = _a[1];\n var generalizedSource = source;\n var generalizedSourceType = sourceType;\n if (isLiteralType(source) && !typeCouldHaveTopLevelSingletonTypes(target)) {\n generalizedSource = getBaseTypeOfLiteralType(source);\n ts.Debug.assert(!isTypeAssignableTo(generalizedSource, target), \"generalized source shouldn't be assignable\");\n generalizedSourceType = getTypeNameForErrorDisplay(generalizedSource);\n }\n if (target.flags & 262144 /* TypeParameter */) {\n var constraint = getBaseConstraintOfType(target);\n var needsOriginalSource = void 0;\n if (constraint && (isTypeAssignableTo(generalizedSource, constraint) || (needsOriginalSource = isTypeAssignableTo(source, constraint)))) {\n reportError(ts.Diagnostics._0_is_assignable_to_the_constraint_of_type_1_but_1_could_be_instantiated_with_a_different_subtype_of_constraint_2, needsOriginalSource ? sourceType : generalizedSourceType, targetType, typeToString(constraint));\n }\n else {\n errorInfo = undefined;\n reportError(ts.Diagnostics._0_could_be_instantiated_with_an_arbitrary_type_which_could_be_unrelated_to_1, targetType, generalizedSourceType);\n }\n }\n if (!message) {\n if (relation === comparableRelation) {\n message = ts.Diagnostics.Type_0_is_not_comparable_to_type_1;\n }\n else if (sourceType === targetType) {\n message = ts.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated;\n }\n else {\n message = ts.Diagnostics.Type_0_is_not_assignable_to_type_1;\n }\n }\n reportError(message, generalizedSourceType, targetType);\n }\n function tryElaborateErrorsForPrimitivesAndObjects(source, target) {\n var sourceType = symbolValueDeclarationIsContextSensitive(source.symbol) ? typeToString(source, source.symbol.valueDeclaration) : typeToString(source);\n var targetType = symbolValueDeclarationIsContextSensitive(target.symbol) ? typeToString(target, target.symbol.valueDeclaration) : typeToString(target);\n if ((globalStringType === source && stringType === target) ||\n (globalNumberType === source && numberType === target) ||\n (globalBooleanType === source && booleanType === target) ||\n (getGlobalESSymbolType(/*reportErrors*/ false) === source && esSymbolType === target)) {\n reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);\n }\n }\n /**\n * Try and elaborate array and tuple errors. Returns false\n * if we have found an elaboration, or we should ignore\n * any other elaborations when relating the `source` and\n * `target` types.\n */\n function tryElaborateArrayLikeErrors(source, target, reportErrors) {\n /**\n * The spec for elaboration is:\n * - If the source is a readonly tuple and the target is a mutable array or tuple, elaborate on mutability and skip property elaborations.\n * - If the source is a tuple then skip property elaborations if the target is an array or tuple.\n * - If the source is a readonly array and the target is a mutable array or tuple, elaborate on mutability and skip property elaborations.\n * - If the source an array then skip property elaborations if the target is a tuple.\n */\n if (isTupleType(source)) {\n if (source.target.readonly && isMutableArrayOrTuple(target)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source), typeToString(target));\n }\n return false;\n }\n return isTupleType(target) || isArrayType(target);\n }\n if (isReadonlyArrayType(source) && isMutableArrayOrTuple(target)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.The_type_0_is_readonly_and_cannot_be_assigned_to_the_mutable_type_1, typeToString(source), typeToString(target));\n }\n return false;\n }\n if (isTupleType(target)) {\n return isArrayType(source);\n }\n return true;\n }\n /**\n * Compare two types and return\n * * Ternary.True if they are related with no assumptions,\n * * Ternary.Maybe if they are related with assumptions of other relationships, or\n * * Ternary.False if they are not related.\n */\n function isRelatedTo(originalSource, originalTarget, reportErrors, headMessage, intersectionState) {\n if (reportErrors === void 0) { reportErrors = false; }\n if (intersectionState === void 0) { intersectionState = 0 /* None */; }\n // Before normalization: if `source` is type an object type, and `target` is primitive,\n // skip all the checks we don't need and just return `isSimpleTypeRelatedTo` result\n if (originalSource.flags & 524288 /* Object */ && originalTarget.flags & 131068 /* Primitive */) {\n if (isSimpleTypeRelatedTo(originalSource, originalTarget, relation, reportErrors ? reportError : undefined)) {\n return -1 /* True */;\n }\n reportErrorResults(originalSource, originalTarget, 0 /* False */, !!(ts.getObjectFlags(originalSource) & 2048 /* JsxAttributes */));\n return 0 /* False */;\n }\n // Normalize the source and target types: Turn fresh literal types into regular literal types,\n // turn deferred type references into regular type references, simplify indexed access and\n // conditional types, and resolve substitution types to either the substitution (on the source\n // side) or the type variable (on the target side).\n var source = getNormalizedType(originalSource, /*writing*/ false);\n var target = getNormalizedType(originalTarget, /*writing*/ true);\n if (source === target)\n return -1 /* True */;\n if (relation === identityRelation) {\n return isIdenticalTo(source, target);\n }\n // We fastpath comparing a type parameter to exactly its constraint, as this is _super_ common,\n // and otherwise, for type parameters in large unions, causes us to need to compare the union to itself,\n // as we break down the _target_ union first, _then_ get the source constraint - so for every\n // member of the target, we attempt to find a match in the source. This avoids that in cases where\n // the target is exactly the constraint.\n if (source.flags & 262144 /* TypeParameter */ && getConstraintOfType(source) === target) {\n return -1 /* True */;\n }\n // Try to see if we're relating something like `Foo` -> `Bar | null | undefined`.\n // If so, reporting the `null` and `undefined` in the type is hardly useful.\n // First, see if we're even relating an object type to a union.\n // Then see if the target is stripped down to a single non-union type.\n // Note\n // * We actually want to remove null and undefined naively here (rather than using getNonNullableType),\n // since we don't want to end up with a worse error like \"`Foo` is not assignable to `NonNullable`\"\n // when dealing with generics.\n // * We also don't deal with primitive source types, since we already halt elaboration below.\n if (target.flags & 1048576 /* Union */ && source.flags & 524288 /* Object */ &&\n target.types.length <= 3 && maybeTypeOfKind(target, 98304 /* Nullable */)) {\n var nullStrippedTarget = extractTypesOfKind(target, ~98304 /* Nullable */);\n if (!(nullStrippedTarget.flags & (1048576 /* Union */ | 131072 /* Never */))) {\n target = getNormalizedType(nullStrippedTarget, /*writing*/ true);\n }\n if (source === nullStrippedTarget)\n return -1 /* True */;\n }\n if (relation === comparableRelation && !(target.flags & 131072 /* Never */) && isSimpleTypeRelatedTo(target, source, relation) ||\n isSimpleTypeRelatedTo(source, target, relation, reportErrors ? reportError : undefined))\n return -1 /* True */;\n var isComparingJsxAttributes = !!(ts.getObjectFlags(source) & 2048 /* JsxAttributes */);\n var isPerformingExcessPropertyChecks = !(intersectionState & 2 /* Target */) && (isObjectLiteralType(source) && ts.getObjectFlags(source) & 16384 /* FreshLiteral */);\n if (isPerformingExcessPropertyChecks) {\n if (hasExcessProperties(source, target, reportErrors)) {\n if (reportErrors) {\n reportRelationError(headMessage, source, originalTarget.aliasSymbol ? originalTarget : target);\n }\n return 0 /* False */;\n }\n }\n var isPerformingCommonPropertyChecks = relation !== comparableRelation && !(intersectionState & 2 /* Target */) &&\n source.flags & (131068 /* Primitive */ | 524288 /* Object */ | 2097152 /* Intersection */) && source !== globalObjectType &&\n target.flags & (524288 /* Object */ | 2097152 /* Intersection */) && isWeakType(target) &&\n (getPropertiesOfType(source).length > 0 || typeHasCallOrConstructSignatures(source));\n if (isPerformingCommonPropertyChecks && !hasCommonProperties(source, target, isComparingJsxAttributes)) {\n if (reportErrors) {\n var sourceString = typeToString(originalSource.aliasSymbol ? originalSource : source);\n var targetString = typeToString(originalTarget.aliasSymbol ? originalTarget : target);\n var calls = getSignaturesOfType(source, 0 /* Call */);\n var constructs = getSignaturesOfType(source, 1 /* Construct */);\n if (calls.length > 0 && isRelatedTo(getReturnTypeOfSignature(calls[0]), target, /*reportErrors*/ false) ||\n constructs.length > 0 && isRelatedTo(getReturnTypeOfSignature(constructs[0]), target, /*reportErrors*/ false)) {\n reportError(ts.Diagnostics.Value_of_type_0_has_no_properties_in_common_with_type_1_Did_you_mean_to_call_it, sourceString, targetString);\n }\n else {\n reportError(ts.Diagnostics.Type_0_has_no_properties_in_common_with_type_1, sourceString, targetString);\n }\n }\n return 0 /* False */;\n }\n traceUnionsOrIntersectionsTooLarge(source, target);\n var result = 0 /* False */;\n var saveErrorInfo = captureErrorCalculationState();\n // Note that these checks are specifically ordered to produce correct results. In particular,\n // we need to deconstruct unions before intersections (because unions are always at the top),\n // and we need to handle \"each\" relations before \"some\" relations for the same kind of type.\n if (source.flags & 3145728 /* UnionOrIntersection */ || target.flags & 3145728 /* UnionOrIntersection */) {\n result = getConstituentCount(source) * getConstituentCount(target) >= 4 ?\n recursiveTypeRelatedTo(source, target, reportErrors, intersectionState | 8 /* UnionIntersectionCheck */) :\n structuredTypeRelatedTo(source, target, reportErrors, intersectionState | 8 /* UnionIntersectionCheck */);\n }\n if (!result && !(source.flags & 1048576 /* Union */) && (source.flags & (469499904 /* StructuredOrInstantiable */) || target.flags & 469499904 /* StructuredOrInstantiable */)) {\n if (result = recursiveTypeRelatedTo(source, target, reportErrors, intersectionState)) {\n resetErrorInfo(saveErrorInfo);\n }\n }\n if (!result && source.flags & (2097152 /* Intersection */ | 262144 /* TypeParameter */)) {\n // The combined constraint of an intersection type is the intersection of the constraints of\n // the constituents. When an intersection type contains instantiable types with union type\n // constraints, there are situations where we need to examine the combined constraint. One is\n // when the target is a union type. Another is when the intersection contains types belonging\n // to one of the disjoint domains. For example, given type variables T and U, each with the\n // constraint 'string | number', the combined constraint of 'T & U' is 'string | number' and\n // we need to check this constraint against a union on the target side. Also, given a type\n // variable V constrained to 'string | number', 'V & number' has a combined constraint of\n // 'string & number | number & number' which reduces to just 'number'.\n // This also handles type parameters, as a type parameter with a union constraint compared against a union\n // needs to have its constraint hoisted into an intersection with said type parameter, this way\n // the type param can be compared with itself in the target (with the influence of its constraint to match other parts)\n // For example, if `T extends 1 | 2` and `U extends 2 | 3` and we compare `T & U` to `T & U & (1 | 2 | 3)`\n var constraint = getEffectiveConstraintOfIntersection(source.flags & 2097152 /* Intersection */ ? source.types : [source], !!(target.flags & 1048576 /* Union */));\n if (constraint && (source.flags & 2097152 /* Intersection */ || target.flags & 1048576 /* Union */)) {\n if (everyType(constraint, function (c) { return c !== source; })) { // Skip comparison if expansion contains the source itself\n // TODO: Stack errors so we get a pyramid for the \"normal\" comparison above, _and_ a second for this\n if (result = isRelatedTo(constraint, target, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {\n resetErrorInfo(saveErrorInfo);\n }\n }\n }\n }\n // For certain combinations involving intersections and optional, excess, or mismatched properties we need\n // an extra property check where the intersection is viewed as a single object. The following are motivating\n // examples that all should be errors, but aren't without this extra property check:\n //\n // let obj: { a: { x: string } } & { c: number } = { a: { x: 'hello', y: 2 }, c: 5 }; // Nested excess property\n //\n // declare let wrong: { a: { y: string } };\n // let weak: { a?: { x?: number } } & { c?: string } = wrong; // Nested weak object type\n //\n // function foo(x: { a?: string }, y: T & { a: boolean }) {\n // x = y; // Mismatched property in source intersection\n // }\n //\n // We suppress recursive intersection property checks because they can generate lots of work when relating\n // recursive intersections that are structurally similar but not exactly identical. See #37854.\n if (result && !inPropertyCheck && (target.flags & 2097152 /* Intersection */ && (isPerformingExcessPropertyChecks || isPerformingCommonPropertyChecks) ||\n isNonGenericObjectType(target) && !isArrayType(target) && !isTupleType(target) && source.flags & 2097152 /* Intersection */ && getApparentType(source).flags & 3670016 /* StructuredType */ && !ts.some(source.types, function (t) { return !!(ts.getObjectFlags(t) & 524288 /* NonInferrableType */); }))) {\n inPropertyCheck = true;\n result &= recursiveTypeRelatedTo(source, target, reportErrors, 4 /* PropertyCheck */);\n inPropertyCheck = false;\n }\n reportErrorResults(source, target, result, isComparingJsxAttributes);\n return result;\n function reportErrorResults(source, target, result, isComparingJsxAttributes) {\n if (!result && reportErrors) {\n var sourceHasBase = !!getSingleBaseForNonAugmentingSubtype(originalSource);\n var targetHasBase = !!getSingleBaseForNonAugmentingSubtype(originalTarget);\n source = (originalSource.aliasSymbol || sourceHasBase) ? originalSource : source;\n target = (originalTarget.aliasSymbol || targetHasBase) ? originalTarget : target;\n var maybeSuppress = overrideNextErrorInfo > 0;\n if (maybeSuppress) {\n overrideNextErrorInfo--;\n }\n if (source.flags & 524288 /* Object */ && target.flags & 524288 /* Object */) {\n var currentError = errorInfo;\n tryElaborateArrayLikeErrors(source, target, reportErrors);\n if (errorInfo !== currentError) {\n maybeSuppress = !!errorInfo;\n }\n }\n if (source.flags & 524288 /* Object */ && target.flags & 131068 /* Primitive */) {\n tryElaborateErrorsForPrimitivesAndObjects(source, target);\n }\n else if (source.symbol && source.flags & 524288 /* Object */ && globalObjectType === source) {\n reportError(ts.Diagnostics.The_Object_type_is_assignable_to_very_few_other_types_Did_you_mean_to_use_the_any_type_instead);\n }\n else if (isComparingJsxAttributes && target.flags & 2097152 /* Intersection */) {\n var targetTypes = target.types;\n var intrinsicAttributes = getJsxType(JsxNames.IntrinsicAttributes, errorNode);\n var intrinsicClassAttributes = getJsxType(JsxNames.IntrinsicClassAttributes, errorNode);\n if (intrinsicAttributes !== errorType && intrinsicClassAttributes !== errorType &&\n (ts.contains(targetTypes, intrinsicAttributes) || ts.contains(targetTypes, intrinsicClassAttributes))) {\n // do not report top error\n return result;\n }\n }\n else {\n errorInfo = elaborateNeverIntersection(errorInfo, originalTarget);\n }\n if (!headMessage && maybeSuppress) {\n lastSkippedInfo = [source, target];\n // Used by, eg, missing property checking to replace the top-level message with a more informative one\n return result;\n }\n reportRelationError(headMessage, source, target);\n }\n }\n }\n function traceUnionsOrIntersectionsTooLarge(source, target) {\n if (!ts.tracing) {\n return;\n }\n if ((source.flags & 3145728 /* UnionOrIntersection */) && (target.flags & 3145728 /* UnionOrIntersection */)) {\n var sourceUnionOrIntersection = source;\n var targetUnionOrIntersection = target;\n if (sourceUnionOrIntersection.objectFlags & targetUnionOrIntersection.objectFlags & 65536 /* PrimitiveUnion */) {\n // There's a fast path for comparing primitive unions\n return;\n }\n var sourceSize = sourceUnionOrIntersection.types.length;\n var targetSize = targetUnionOrIntersection.types.length;\n if (sourceSize * targetSize > 1E6) {\n ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"traceUnionsOrIntersectionsTooLarge_DepthLimit\", {\n sourceId: source.id,\n sourceSize: sourceSize,\n targetId: target.id,\n targetSize: targetSize,\n pos: errorNode === null || errorNode === void 0 ? void 0 : errorNode.pos,\n end: errorNode === null || errorNode === void 0 ? void 0 : errorNode.end\n });\n }\n }\n }\n function isIdenticalTo(source, target) {\n if (source.flags !== target.flags)\n return 0 /* False */;\n if (source.flags & 67358815 /* Singleton */)\n return -1 /* True */;\n traceUnionsOrIntersectionsTooLarge(source, target);\n if (source.flags & 3145728 /* UnionOrIntersection */) {\n var result_7 = eachTypeRelatedToSomeType(source, target);\n if (result_7) {\n result_7 &= eachTypeRelatedToSomeType(target, source);\n }\n return result_7;\n }\n return recursiveTypeRelatedTo(source, target, /*reportErrors*/ false, 0 /* None */);\n }\n function getTypeOfPropertyInTypes(types, name) {\n var appendPropType = function (propTypes, type) {\n var _a;\n type = getApparentType(type);\n var prop = type.flags & 3145728 /* UnionOrIntersection */ ? getPropertyOfUnionOrIntersectionType(type, name) : getPropertyOfObjectType(type, name);\n var propType = prop && getTypeOfSymbol(prop) || ((_a = getApplicableIndexInfoForName(type, name)) === null || _a === void 0 ? void 0 : _a.type) || undefinedType;\n return ts.append(propTypes, propType);\n };\n return getUnionType(ts.reduceLeft(types, appendPropType, /*initial*/ undefined) || ts.emptyArray);\n }\n function hasExcessProperties(source, target, reportErrors) {\n var _a;\n if (!isExcessPropertyCheckTarget(target) || !noImplicitAny && ts.getObjectFlags(target) & 8192 /* JSLiteral */) {\n return false; // Disable excess property checks on JS literals to simulate having an implicit \"index signature\" - but only outside of noImplicitAny\n }\n var isComparingJsxAttributes = !!(ts.getObjectFlags(source) & 2048 /* JsxAttributes */);\n if ((relation === assignableRelation || relation === comparableRelation) &&\n (isTypeSubsetOf(globalObjectType, target) || (!isComparingJsxAttributes && isEmptyObjectType(target)))) {\n return false;\n }\n var reducedTarget = target;\n var checkTypes;\n if (target.flags & 1048576 /* Union */) {\n reducedTarget = findMatchingDiscriminantType(source, target, isRelatedTo) || filterPrimitivesIfContainsNonPrimitive(target);\n checkTypes = reducedTarget.flags & 1048576 /* Union */ ? reducedTarget.types : [reducedTarget];\n }\n var _loop_18 = function (prop) {\n if (shouldCheckAsExcessProperty(prop, source.symbol) && !isIgnoredJsxProperty(source, prop)) {\n if (!isKnownProperty(reducedTarget, prop.escapedName, isComparingJsxAttributes)) {\n if (reportErrors) {\n // Report error in terms of object types in the target as those are the only ones\n // we check in isKnownProperty.\n var errorTarget = filterType(reducedTarget, isExcessPropertyCheckTarget);\n // We know *exactly* where things went wrong when comparing the types.\n // Use this property as the error node as this will be more helpful in\n // reasoning about what went wrong.\n if (!errorNode)\n return { value: ts.Debug.fail() };\n if (ts.isJsxAttributes(errorNode) || ts.isJsxOpeningLikeElement(errorNode) || ts.isJsxOpeningLikeElement(errorNode.parent)) {\n // JsxAttributes has an object-literal flag and undergo same type-assignablity check as normal object-literal.\n // However, using an object-literal error message will be very confusing to the users so we give different a message.\n if (prop.valueDeclaration && ts.isJsxAttribute(prop.valueDeclaration) && ts.getSourceFileOfNode(errorNode) === ts.getSourceFileOfNode(prop.valueDeclaration.name)) {\n // Note that extraneous children (as in `extra`) don't pass this check,\n // since `children` is a SyntaxKind.PropertySignature instead of a SyntaxKind.JsxAttribute.\n errorNode = prop.valueDeclaration.name;\n }\n var propName = symbolToString(prop);\n var suggestionSymbol = getSuggestedSymbolForNonexistentJSXAttribute(propName, errorTarget);\n var suggestion = suggestionSymbol ? symbolToString(suggestionSymbol) : undefined;\n if (suggestion) {\n reportError(ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2, propName, typeToString(errorTarget), suggestion);\n }\n else {\n reportError(ts.Diagnostics.Property_0_does_not_exist_on_type_1, propName, typeToString(errorTarget));\n }\n }\n else {\n // use the property's value declaration if the property is assigned inside the literal itself\n var objectLiteralDeclaration_1 = ((_a = source.symbol) === null || _a === void 0 ? void 0 : _a.declarations) && ts.firstOrUndefined(source.symbol.declarations);\n var suggestion = void 0;\n if (prop.valueDeclaration && ts.findAncestor(prop.valueDeclaration, function (d) { return d === objectLiteralDeclaration_1; }) && ts.getSourceFileOfNode(objectLiteralDeclaration_1) === ts.getSourceFileOfNode(errorNode)) {\n var propDeclaration = prop.valueDeclaration;\n ts.Debug.assertNode(propDeclaration, ts.isObjectLiteralElementLike);\n errorNode = propDeclaration;\n var name = propDeclaration.name;\n if (ts.isIdentifier(name)) {\n suggestion = getSuggestionForNonexistentProperty(name, errorTarget);\n }\n }\n if (suggestion !== undefined) {\n reportError(ts.Diagnostics.Object_literal_may_only_specify_known_properties_but_0_does_not_exist_in_type_1_Did_you_mean_to_write_2, symbolToString(prop), typeToString(errorTarget), suggestion);\n }\n else {\n reportError(ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(prop), typeToString(errorTarget));\n }\n }\n }\n return { value: true };\n }\n if (checkTypes && !isRelatedTo(getTypeOfSymbol(prop), getTypeOfPropertyInTypes(checkTypes, prop.escapedName), reportErrors)) {\n if (reportErrors) {\n reportIncompatibleError(ts.Diagnostics.Types_of_property_0_are_incompatible, symbolToString(prop));\n }\n return { value: true };\n }\n }\n };\n for (var _i = 0, _b = getPropertiesOfType(source); _i < _b.length; _i++) {\n var prop = _b[_i];\n var state_5 = _loop_18(prop);\n if (typeof state_5 === \"object\")\n return state_5.value;\n }\n return false;\n }\n function shouldCheckAsExcessProperty(prop, container) {\n return prop.valueDeclaration && container.valueDeclaration && prop.valueDeclaration.parent === container.valueDeclaration;\n }\n function eachTypeRelatedToSomeType(source, target) {\n var result = -1 /* True */;\n var sourceTypes = source.types;\n for (var _i = 0, sourceTypes_1 = sourceTypes; _i < sourceTypes_1.length; _i++) {\n var sourceType = sourceTypes_1[_i];\n var related = typeRelatedToSomeType(sourceType, target, /*reportErrors*/ false);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n function typeRelatedToSomeType(source, target, reportErrors) {\n var targetTypes = target.types;\n if (target.flags & 1048576 /* Union */) {\n if (containsType(targetTypes, source)) {\n return -1 /* True */;\n }\n var match = getMatchingUnionConstituentForType(target, source);\n if (match) {\n var related = isRelatedTo(source, match, /*reportErrors*/ false);\n if (related) {\n return related;\n }\n }\n }\n for (var _i = 0, targetTypes_1 = targetTypes; _i < targetTypes_1.length; _i++) {\n var type = targetTypes_1[_i];\n var related = isRelatedTo(source, type, /*reportErrors*/ false);\n if (related) {\n return related;\n }\n }\n if (reportErrors) {\n var bestMatchingType = getBestMatchingType(source, target, isRelatedTo);\n isRelatedTo(source, bestMatchingType || targetTypes[targetTypes.length - 1], /*reportErrors*/ true);\n }\n return 0 /* False */;\n }\n function typeRelatedToEachType(source, target, reportErrors, intersectionState) {\n var result = -1 /* True */;\n var targetTypes = target.types;\n for (var _i = 0, targetTypes_2 = targetTypes; _i < targetTypes_2.length; _i++) {\n var targetType = targetTypes_2[_i];\n var related = isRelatedTo(source, targetType, reportErrors, /*headMessage*/ undefined, intersectionState);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n function someTypeRelatedToType(source, target, reportErrors, intersectionState) {\n var sourceTypes = source.types;\n if (source.flags & 1048576 /* Union */ && containsType(sourceTypes, target)) {\n return -1 /* True */;\n }\n var len = sourceTypes.length;\n for (var i = 0; i < len; i++) {\n var related = isRelatedTo(sourceTypes[i], target, reportErrors && i === len - 1, /*headMessage*/ undefined, intersectionState);\n if (related) {\n return related;\n }\n }\n return 0 /* False */;\n }\n function getUndefinedStrippedTargetIfNeeded(source, target) {\n // As a builtin type, `undefined` is a very low type ID - making it almsot always first, making this a very fast check to see\n // if we need to strip `undefined` from the target\n if (source.flags & 1048576 /* Union */ && target.flags & 1048576 /* Union */ &&\n !(source.types[0].flags & 32768 /* Undefined */) && target.types[0].flags & 32768 /* Undefined */) {\n return extractTypesOfKind(target, ~32768 /* Undefined */);\n }\n return target;\n }\n function eachTypeRelatedToType(source, target, reportErrors, intersectionState) {\n var result = -1 /* True */;\n var sourceTypes = source.types;\n // We strip `undefined` from the target if the `source` trivially doesn't contain it for our correspondence-checking fastpath\n // since `undefined` is frequently added by optionality and would otherwise spoil a potentially useful correspondence\n var undefinedStrippedTarget = getUndefinedStrippedTargetIfNeeded(source, target);\n for (var i = 0; i < sourceTypes.length; i++) {\n var sourceType = sourceTypes[i];\n if (undefinedStrippedTarget.flags & 1048576 /* Union */ && sourceTypes.length >= undefinedStrippedTarget.types.length && sourceTypes.length % undefinedStrippedTarget.types.length === 0) {\n // many unions are mappings of one another; in such cases, simply comparing members at the same index can shortcut the comparison\n // such unions will have identical lengths, and their corresponding elements will match up. Another common scenario is where a large\n // union has a union of objects intersected with it. In such cases, if the input was, eg `(\"a\" | \"b\" | \"c\") & (string | boolean | {} | {whatever})`,\n // the result will have the structure `\"a\" | \"b\" | \"c\" | \"a\" & {} | \"b\" & {} | \"c\" & {} | \"a\" & {whatever} | \"b\" & {whatever} | \"c\" & {whatever}`\n // - the resulting union has a length which is a multiple of the original union, and the elements correspond modulo the length of the original union\n var related_1 = isRelatedTo(sourceType, undefinedStrippedTarget.types[i % undefinedStrippedTarget.types.length], /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState);\n if (related_1) {\n result &= related_1;\n continue;\n }\n }\n var related = isRelatedTo(sourceType, target, reportErrors, /*headMessage*/ undefined, intersectionState);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n function typeArgumentsRelatedTo(sources, targets, variances, reportErrors, intersectionState) {\n if (sources === void 0) { sources = ts.emptyArray; }\n if (targets === void 0) { targets = ts.emptyArray; }\n if (variances === void 0) { variances = ts.emptyArray; }\n if (sources.length !== targets.length && relation === identityRelation) {\n return 0 /* False */;\n }\n var length = sources.length <= targets.length ? sources.length : targets.length;\n var result = -1 /* True */;\n for (var i = 0; i < length; i++) {\n // When variance information isn't available we default to covariance. This happens\n // in the process of computing variance information for recursive types and when\n // comparing 'this' type arguments.\n var varianceFlags = i < variances.length ? variances[i] : 1 /* Covariant */;\n var variance = varianceFlags & 7 /* VarianceMask */;\n // We ignore arguments for independent type parameters (because they're never witnessed).\n if (variance !== 4 /* Independent */) {\n var s = sources[i];\n var t = targets[i];\n var related = -1 /* True */;\n if (varianceFlags & 8 /* Unmeasurable */) {\n // Even an `Unmeasurable` variance works out without a structural check if the source and target are _identical_.\n // We can't simply assume invariance, because `Unmeasurable` marks nonlinear relations, for example, a relation tained by\n // the `-?` modifier in a mapped type (where, no matter how the inputs are related, the outputs still might not be)\n related = relation === identityRelation ? isRelatedTo(s, t, /*reportErrors*/ false) : compareTypesIdentical(s, t);\n }\n else if (variance === 1 /* Covariant */) {\n related = isRelatedTo(s, t, reportErrors, /*headMessage*/ undefined, intersectionState);\n }\n else if (variance === 2 /* Contravariant */) {\n related = isRelatedTo(t, s, reportErrors, /*headMessage*/ undefined, intersectionState);\n }\n else if (variance === 3 /* Bivariant */) {\n // In the bivariant case we first compare contravariantly without reporting\n // errors. Then, if that doesn't succeed, we compare covariantly with error\n // reporting. Thus, error elaboration will be based on the the covariant check,\n // which is generally easier to reason about.\n related = isRelatedTo(t, s, /*reportErrors*/ false);\n if (!related) {\n related = isRelatedTo(s, t, reportErrors, /*headMessage*/ undefined, intersectionState);\n }\n }\n else {\n // In the invariant case we first compare covariantly, and only when that\n // succeeds do we proceed to compare contravariantly. Thus, error elaboration\n // will typically be based on the covariant check.\n related = isRelatedTo(s, t, reportErrors, /*headMessage*/ undefined, intersectionState);\n if (related) {\n related &= isRelatedTo(t, s, reportErrors, /*headMessage*/ undefined, intersectionState);\n }\n }\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n }\n return result;\n }\n // Determine if possibly recursive types are related. First, check if the result is already available in the global cache.\n // Second, check if we have already started a comparison of the given two types in which case we assume the result to be true.\n // Third, check if both types are part of deeply nested chains of generic type instantiations and if so assume the types are\n // equal and infinitely expanding. Fourth, if we have reached a depth of 100 nested comparisons, assume we have runaway recursion\n // and issue an error. Otherwise, actually compare the structure of the two types.\n function recursiveTypeRelatedTo(source, target, reportErrors, intersectionState) {\n if (overflow) {\n return 0 /* False */;\n }\n var id = getRelationKey(source, target, intersectionState | (inPropertyCheck ? 16 /* InPropertyCheck */ : 0), relation);\n var entry = relation.get(id);\n if (entry !== undefined) {\n if (reportErrors && entry & 2 /* Failed */ && !(entry & 4 /* Reported */)) {\n // We are elaborating errors and the cached result is an unreported failure. The result will be reported\n // as a failure, and should be updated as a reported failure by the bottom of this function.\n }\n else {\n if (outofbandVarianceMarkerHandler) {\n // We're in the middle of variance checking - integrate any unmeasurable/unreliable flags from this cached component\n var saved = entry & 24 /* ReportsMask */;\n if (saved & 8 /* ReportsUnmeasurable */) {\n instantiateType(source, makeFunctionTypeMapper(reportUnmeasurableMarkers));\n }\n if (saved & 16 /* ReportsUnreliable */) {\n instantiateType(source, makeFunctionTypeMapper(reportUnreliableMarkers));\n }\n }\n return entry & 1 /* Succeeded */ ? -1 /* True */ : 0 /* False */;\n }\n }\n if (!maybeKeys) {\n maybeKeys = [];\n sourceStack = [];\n targetStack = [];\n }\n else {\n // generate a key where all type parameter id positions are replaced with unconstrained type parameter ids\n // this isn't perfect - nested type references passed as type arguments will muck up the indexes and thus\n // prevent finding matches- but it should hit up the common cases\n var broadestEquivalentId = id.split(\",\").map(function (i) { return i.replace(/-\\d+/g, function (_match, offset) {\n var index = ts.length(id.slice(0, offset).match(/[-=]/g) || undefined);\n return \"=\" + index;\n }); }).join(\",\");\n for (var i = 0; i < maybeCount; i++) {\n // If source and target are already being compared, consider them related with assumptions\n if (id === maybeKeys[i] || broadestEquivalentId === maybeKeys[i]) {\n return 3 /* Maybe */;\n }\n }\n if (depth === 100) {\n overflow = true;\n return 0 /* False */;\n }\n }\n var maybeStart = maybeCount;\n maybeKeys[maybeCount] = id;\n maybeCount++;\n sourceStack[depth] = source;\n targetStack[depth] = target;\n depth++;\n var saveExpandingFlags = expandingFlags;\n if (!(expandingFlags & 1 /* Source */) && isDeeplyNestedType(source, sourceStack, depth))\n expandingFlags |= 1 /* Source */;\n if (!(expandingFlags & 2 /* Target */) && isDeeplyNestedType(target, targetStack, depth))\n expandingFlags |= 2 /* Target */;\n var originalHandler;\n var propagatingVarianceFlags = 0;\n if (outofbandVarianceMarkerHandler) {\n originalHandler = outofbandVarianceMarkerHandler;\n outofbandVarianceMarkerHandler = function (onlyUnreliable) {\n propagatingVarianceFlags |= onlyUnreliable ? 16 /* ReportsUnreliable */ : 8 /* ReportsUnmeasurable */;\n return originalHandler(onlyUnreliable);\n };\n }\n if (expandingFlags === 3 /* Both */) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"recursiveTypeRelatedTo_DepthLimit\", {\n sourceId: source.id,\n sourceIdStack: sourceStack.map(function (t) { return t.id; }),\n targetId: target.id,\n targetIdStack: targetStack.map(function (t) { return t.id; }),\n depth: depth,\n });\n }\n var result = expandingFlags !== 3 /* Both */ ? structuredTypeRelatedTo(source, target, reportErrors, intersectionState) : 3 /* Maybe */;\n if (outofbandVarianceMarkerHandler) {\n outofbandVarianceMarkerHandler = originalHandler;\n }\n expandingFlags = saveExpandingFlags;\n depth--;\n if (result) {\n if (result === -1 /* True */ || depth === 0) {\n if (result === -1 /* True */ || result === 3 /* Maybe */) {\n // If result is definitely true, record all maybe keys as having succeeded. Also, record Ternary.Maybe\n // results as having succeeded once we reach depth 0, but never record Ternary.Unknown results.\n for (var i = maybeStart; i < maybeCount; i++) {\n relation.set(maybeKeys[i], 1 /* Succeeded */ | propagatingVarianceFlags);\n }\n }\n maybeCount = maybeStart;\n }\n }\n else {\n // A false result goes straight into global cache (when something is false under\n // assumptions it will also be false without assumptions)\n relation.set(id, (reportErrors ? 4 /* Reported */ : 0) | 2 /* Failed */ | propagatingVarianceFlags);\n maybeCount = maybeStart;\n }\n return result;\n }\n function structuredTypeRelatedTo(source, target, reportErrors, intersectionState) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"checkTypes\" /* CheckTypes */, \"structuredTypeRelatedTo\", { sourceId: source.id, targetId: target.id });\n var result = structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return result;\n }\n function structuredTypeRelatedToWorker(source, target, reportErrors, intersectionState) {\n if (intersectionState & 4 /* PropertyCheck */) {\n return propertiesRelatedTo(source, target, reportErrors, /*excludedProperties*/ undefined, 0 /* None */);\n }\n if (intersectionState & 8 /* UnionIntersectionCheck */) {\n // Note that these checks are specifically ordered to produce correct results. In particular,\n // we need to deconstruct unions before intersections (because unions are always at the top),\n // and we need to handle \"each\" relations before \"some\" relations for the same kind of type.\n if (source.flags & 1048576 /* Union */) {\n return relation === comparableRelation ?\n someTypeRelatedToType(source, target, reportErrors && !(source.flags & 131068 /* Primitive */), intersectionState & ~8 /* UnionIntersectionCheck */) :\n eachTypeRelatedToType(source, target, reportErrors && !(source.flags & 131068 /* Primitive */), intersectionState & ~8 /* UnionIntersectionCheck */);\n }\n if (target.flags & 1048576 /* Union */) {\n return typeRelatedToSomeType(getRegularTypeOfObjectLiteral(source), target, reportErrors && !(source.flags & 131068 /* Primitive */) && !(target.flags & 131068 /* Primitive */));\n }\n if (target.flags & 2097152 /* Intersection */) {\n return typeRelatedToEachType(getRegularTypeOfObjectLiteral(source), target, reportErrors, 2 /* Target */);\n }\n // Source is an intersection. For the comparable relation, if the target is a primitive type we hoist the\n // constraints of all non-primitive types in the source into a new intersection. We do this because the\n // intersection may further constrain the constraints of the non-primitive types. For example, given a type\n // parameter 'T extends 1 | 2', the intersection 'T & 1' should be reduced to '1' such that it doesn't\n // appear to be comparable to '2'.\n if (relation === comparableRelation && target.flags & 131068 /* Primitive */) {\n var constraints = ts.sameMap(source.types, getBaseConstraintOrType);\n if (constraints !== source.types) {\n source = getIntersectionType(constraints);\n if (!(source.flags & 2097152 /* Intersection */)) {\n return isRelatedTo(source, target, /*reportErrors*/ false);\n }\n }\n }\n // Check to see if any constituents of the intersection are immediately related to the target.\n //\n // Don't report errors though. Checking whether a constituent is related to the source is not actually\n // useful and leads to some confusing error messages. Instead it is better to let the below checks\n // take care of this, or to not elaborate at all. For instance,\n //\n // - For an object type (such as 'C = A & B'), users are usually more interested in structural errors.\n //\n // - For a union type (such as '(A | B) = (C & D)'), it's better to hold onto the whole intersection\n // than to report that 'D' is not assignable to 'A' or 'B'.\n //\n // - For a primitive type or type parameter (such as 'number = A & B') there is no point in\n // breaking the intersection apart.\n return someTypeRelatedToType(source, target, /*reportErrors*/ false, 1 /* Source */);\n }\n var flags = source.flags & target.flags;\n if (relation === identityRelation && !(flags & 524288 /* Object */)) {\n if (flags & 4194304 /* Index */) {\n return isRelatedTo(source.type, target.type, /*reportErrors*/ false);\n }\n var result_8 = 0 /* False */;\n if (flags & 8388608 /* IndexedAccess */) {\n if (result_8 = isRelatedTo(source.objectType, target.objectType, /*reportErrors*/ false)) {\n if (result_8 &= isRelatedTo(source.indexType, target.indexType, /*reportErrors*/ false)) {\n return result_8;\n }\n }\n }\n if (flags & 16777216 /* Conditional */) {\n if (source.root.isDistributive === target.root.isDistributive) {\n if (result_8 = isRelatedTo(source.checkType, target.checkType, /*reportErrors*/ false)) {\n if (result_8 &= isRelatedTo(source.extendsType, target.extendsType, /*reportErrors*/ false)) {\n if (result_8 &= isRelatedTo(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target), /*reportErrors*/ false)) {\n if (result_8 &= isRelatedTo(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target), /*reportErrors*/ false)) {\n return result_8;\n }\n }\n }\n }\n }\n }\n if (flags & 33554432 /* Substitution */) {\n return isRelatedTo(source.substitute, target.substitute, /*reportErrors*/ false);\n }\n return 0 /* False */;\n }\n var result;\n var originalErrorInfo;\n var varianceCheckFailed = false;\n var saveErrorInfo = captureErrorCalculationState();\n // We limit alias variance probing to only object and conditional types since their alias behavior\n // is more predictable than other, interned types, which may or may not have an alias depending on\n // the order in which things were checked.\n if (source.flags & (524288 /* Object */ | 16777216 /* Conditional */) && source.aliasSymbol &&\n source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol &&\n !(source.aliasTypeArgumentsContainsMarker || target.aliasTypeArgumentsContainsMarker)) {\n var variances = getAliasVariances(source.aliasSymbol);\n if (variances === ts.emptyArray) {\n return 1 /* Unknown */;\n }\n var varianceResult = relateVariances(source.aliasTypeArguments, target.aliasTypeArguments, variances, intersectionState);\n if (varianceResult !== undefined) {\n return varianceResult;\n }\n }\n // For a generic type T and a type U that is assignable to T, [...U] is assignable to T, U is assignable to readonly [...T],\n // and U is assignable to [...T] when U is constrained to a mutable array or tuple type.\n if (isSingleElementGenericTupleType(source) && !source.target.readonly && (result = isRelatedTo(getTypeArguments(source)[0], target)) ||\n isSingleElementGenericTupleType(target) && (target.target.readonly || isMutableArrayOrTuple(getBaseConstraintOfType(source) || source)) && (result = isRelatedTo(source, getTypeArguments(target)[0]))) {\n return result;\n }\n if (target.flags & 262144 /* TypeParameter */) {\n // A source type { [P in Q]: X } is related to a target type T if keyof T is related to Q and X is related to T[Q].\n if (ts.getObjectFlags(source) & 32 /* Mapped */ && !source.declaration.nameType && isRelatedTo(getIndexType(target), getConstraintTypeFromMappedType(source))) {\n if (!(getMappedTypeModifiers(source) & 4 /* IncludeOptional */)) {\n var templateType = getTemplateTypeFromMappedType(source);\n var indexedAccessType = getIndexedAccessType(target, getTypeParameterFromMappedType(source));\n if (result = isRelatedTo(templateType, indexedAccessType, reportErrors)) {\n return result;\n }\n }\n }\n }\n else if (target.flags & 4194304 /* Index */) {\n var targetType = target.type;\n // A keyof S is related to a keyof T if T is related to S.\n if (source.flags & 4194304 /* Index */) {\n if (result = isRelatedTo(targetType, source.type, /*reportErrors*/ false)) {\n return result;\n }\n }\n if (isTupleType(targetType)) {\n // An index type can have a tuple type target when the tuple type contains variadic elements.\n // Check if the source is related to the known keys of the tuple type.\n if (result = isRelatedTo(source, getKnownKeysOfTupleType(targetType), reportErrors)) {\n return result;\n }\n }\n else {\n // A type S is assignable to keyof T if S is assignable to keyof C, where C is the\n // simplified form of T or, if T doesn't simplify, the constraint of T.\n var constraint = getSimplifiedTypeOrConstraint(targetType);\n if (constraint) {\n // We require Ternary.True here such that circular constraints don't cause\n // false positives. For example, given 'T extends { [K in keyof T]: string }',\n // 'keyof T' has itself as its constraint and produces a Ternary.Maybe when\n // related to other types.\n if (isRelatedTo(source, getIndexType(constraint, target.stringsOnly), reportErrors) === -1 /* True */) {\n return -1 /* True */;\n }\n }\n }\n }\n else if (target.flags & 8388608 /* IndexedAccess */) {\n if (source.flags & 8388608 /* IndexedAccess */) {\n // Relate components directly before falling back to constraint relationships\n // A type S[K] is related to a type T[J] if S is related to T and K is related to J.\n if (result = isRelatedTo(source.objectType, target.objectType, reportErrors)) {\n result &= isRelatedTo(source.indexType, target.indexType, reportErrors);\n }\n if (result) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n if (reportErrors) {\n originalErrorInfo = errorInfo;\n }\n }\n // A type S is related to a type T[K] if S is related to C, where C is the base\n // constraint of T[K] for writing.\n if (relation === assignableRelation || relation === comparableRelation) {\n var objectType = target.objectType;\n var indexType = target.indexType;\n var baseObjectType = getBaseConstraintOfType(objectType) || objectType;\n var baseIndexType = getBaseConstraintOfType(indexType) || indexType;\n if (!isGenericObjectType(baseObjectType) && !isGenericIndexType(baseIndexType)) {\n var accessFlags = 4 /* Writing */ | (baseObjectType !== objectType ? 2 /* NoIndexSignatures */ : 0);\n var constraint = getIndexedAccessTypeOrUndefined(baseObjectType, baseIndexType, accessFlags);\n if (constraint) {\n if (reportErrors && originalErrorInfo) {\n // create a new chain for the constraint error\n resetErrorInfo(saveErrorInfo);\n }\n if (result = isRelatedTo(source, constraint, reportErrors)) {\n return result;\n }\n // prefer the shorter chain of the constraint comparison chain, and the direct comparison chain\n if (reportErrors && originalErrorInfo && errorInfo) {\n errorInfo = countMessageChainBreadth([originalErrorInfo]) <= countMessageChainBreadth([errorInfo]) ? originalErrorInfo : errorInfo;\n }\n }\n }\n }\n if (reportErrors) {\n originalErrorInfo = undefined;\n }\n }\n else if (isGenericMappedType(target) && !target.declaration.nameType) {\n // A source type T is related to a target type { [P in X]: T[P] }\n var template = getTemplateTypeFromMappedType(target);\n var modifiers = getMappedTypeModifiers(target);\n if (!(modifiers & 8 /* ExcludeOptional */)) {\n if (template.flags & 8388608 /* IndexedAccess */ && template.objectType === source &&\n template.indexType === getTypeParameterFromMappedType(target)) {\n return -1 /* True */;\n }\n if (!isGenericMappedType(source)) {\n var targetConstraint = getConstraintTypeFromMappedType(target);\n var sourceKeys = getIndexType(source, /*stringsOnly*/ undefined, /*noIndexSignatures*/ true);\n var includeOptional = modifiers & 4 /* IncludeOptional */;\n var filteredByApplicability = includeOptional ? intersectTypes(targetConstraint, sourceKeys) : undefined;\n // A source type T is related to a target type { [P in Q]: X } if Q is related to keyof T and T[Q] is related to X.\n // A source type T is related to a target type { [P in Q]?: X } if some constituent Q' of Q is related to keyof T and T[Q'] is related to X.\n if (includeOptional\n ? !(filteredByApplicability.flags & 131072 /* Never */)\n : isRelatedTo(targetConstraint, sourceKeys)) {\n var templateType = getTemplateTypeFromMappedType(target);\n var typeParameter = getTypeParameterFromMappedType(target);\n // Fastpath: When the template has the form Obj[P] where P is the mapped type parameter, directly compare `source` with `Obj`\n // to avoid creating the (potentially very large) number of new intermediate types made by manufacturing `source[P]`\n var nonNullComponent = extractTypesOfKind(templateType, ~98304 /* Nullable */);\n if (nonNullComponent.flags & 8388608 /* IndexedAccess */ && nonNullComponent.indexType === typeParameter) {\n if (result = isRelatedTo(source, nonNullComponent.objectType, reportErrors)) {\n return result;\n }\n }\n else {\n var indexingType = filteredByApplicability ? getIntersectionType([filteredByApplicability, typeParameter]) : typeParameter;\n var indexedAccessType = getIndexedAccessType(source, indexingType);\n if (result = isRelatedTo(indexedAccessType, templateType, reportErrors)) {\n return result;\n }\n }\n }\n originalErrorInfo = errorInfo;\n resetErrorInfo(saveErrorInfo);\n }\n }\n }\n else if (target.flags & 16777216 /* Conditional */) {\n var c = target;\n // Check if the conditional is always true or always false but still deferred for distribution purposes\n var skipTrue = !isTypeAssignableTo(getPermissiveInstantiation(c.checkType), getPermissiveInstantiation(c.extendsType));\n var skipFalse = !skipTrue && isConditionalTypeAlwaysTrueDisregardingInferTypes(c);\n // Instantiate with a replacement mapper if the conditional is distributive, replacing the check type with a clone of itself,\n // this way {x: string | number, y: string | number} -> (T extends T ? { x: T, y: T } : never) appropriately _fails_ when\n // T = string | number (since that will end up distributing and producing `{x: string, y: string} | {x: number, y: number}`,\n // to which `{x: string | number, y: string | number}` isn't assignable)\n var distributionMapper = void 0;\n var checkVar = getActualTypeVariable(c.root.checkType);\n if (c.root.isDistributive && checkVar.flags & 262144 /* TypeParameter */) {\n var newParam = cloneTypeParameter(checkVar);\n distributionMapper = prependTypeMapping(checkVar, newParam, c.mapper);\n newParam.mapper = distributionMapper;\n }\n // TODO: Find a nice way to include potential conditional type breakdowns in error output, if they seem good (they usually don't)\n var localResult = void 0;\n if (skipTrue || (localResult = isRelatedTo(source, distributionMapper ? instantiateType(getTypeFromTypeNode(c.root.node.trueType), distributionMapper) : getTrueTypeFromConditionalType(c), /*reportErrors*/ false))) {\n if (!skipFalse) {\n localResult = (localResult || 3 /* Maybe */) & isRelatedTo(source, distributionMapper ? instantiateType(getTypeFromTypeNode(c.root.node.falseType), distributionMapper) : getFalseTypeFromConditionalType(c), /*reportErrors*/ false);\n }\n }\n if (localResult) {\n resetErrorInfo(saveErrorInfo);\n return localResult;\n }\n }\n else if (target.flags & 134217728 /* TemplateLiteral */) {\n if (source.flags & 134217728 /* TemplateLiteral */) {\n // Report unreliable variance for type variables referenced in template literal type placeholders.\n // For example, `foo-${number}` is related to `foo-${string}` even though number isn't related to string.\n instantiateType(source, makeFunctionTypeMapper(reportUnreliableMarkers));\n }\n var result_9 = inferTypesFromTemplateLiteralType(source, target);\n if (result_9 && ts.every(result_9, function (r, i) { return isValidTypeForTemplateLiteralPlaceholder(r, target.types[i]); })) {\n return -1 /* True */;\n }\n }\n if (source.flags & 8650752 /* TypeVariable */) {\n // IndexedAccess comparisons are handled above in the `target.flags & TypeFlage.IndexedAccess` branch\n if (!(source.flags & 8388608 /* IndexedAccess */ && target.flags & 8388608 /* IndexedAccess */)) {\n var constraint = getConstraintOfType(source);\n if (!constraint || (source.flags & 262144 /* TypeParameter */ && constraint.flags & 1 /* Any */)) {\n // A type variable with no constraint is not related to the non-primitive object type.\n if (result = isRelatedTo(emptyObjectType, extractTypesOfKind(target, ~67108864 /* NonPrimitive */))) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n // hi-speed no-this-instantiation check (less accurate, but avoids costly `this`-instantiation when the constraint will suffice), see #28231 for report on why this is needed\n else if (result = isRelatedTo(constraint, target, /*reportErrors*/ false, /*headMessage*/ undefined, intersectionState)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n // slower, fuller, this-instantiated check (necessary when comparing raw `this` types from base classes), see `subclassWithPolymorphicThisIsAssignable.ts` test for example\n else if (result = isRelatedTo(getTypeWithThisArgument(constraint, source), target, reportErrors && !(target.flags & source.flags & 262144 /* TypeParameter */), /*headMessage*/ undefined, intersectionState)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n }\n else if (source.flags & 4194304 /* Index */) {\n if (result = isRelatedTo(keyofConstraintType, target, reportErrors)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n else if (source.flags & 134217728 /* TemplateLiteral */) {\n if (!(target.flags & 134217728 /* TemplateLiteral */)) {\n var baseConstraint = getBaseConstraintOfType(source);\n var constraint = baseConstraint && baseConstraint !== source ? baseConstraint : stringType;\n if (result = isRelatedTo(constraint, target, reportErrors)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n }\n else if (source.flags & 268435456 /* StringMapping */) {\n if (target.flags & 268435456 /* StringMapping */ && source.symbol === target.symbol) {\n if (result = isRelatedTo(source.type, target.type, reportErrors)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n else {\n var constraint = getBaseConstraintOfType(source);\n if (constraint && (result = isRelatedTo(constraint, target, reportErrors))) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n }\n else if (source.flags & 16777216 /* Conditional */) {\n if (target.flags & 16777216 /* Conditional */) {\n // Two conditional types 'T1 extends U1 ? X1 : Y1' and 'T2 extends U2 ? X2 : Y2' are related if\n // one of T1 and T2 is related to the other, U1 and U2 are identical types, X1 is related to X2,\n // and Y1 is related to Y2.\n var sourceParams = source.root.inferTypeParameters;\n var sourceExtends = source.extendsType;\n var mapper = void 0;\n if (sourceParams) {\n // If the source has infer type parameters, we instantiate them in the context of the target\n var ctx = createInferenceContext(sourceParams, /*signature*/ undefined, 0 /* None */, isRelatedTo);\n inferTypes(ctx.inferences, target.extendsType, sourceExtends, 512 /* NoConstraints */ | 1024 /* AlwaysStrict */);\n sourceExtends = instantiateType(sourceExtends, ctx.mapper);\n mapper = ctx.mapper;\n }\n if (isTypeIdenticalTo(sourceExtends, target.extendsType) &&\n (isRelatedTo(source.checkType, target.checkType) || isRelatedTo(target.checkType, source.checkType))) {\n if (result = isRelatedTo(instantiateType(getTrueTypeFromConditionalType(source), mapper), getTrueTypeFromConditionalType(target), reportErrors)) {\n result &= isRelatedTo(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target), reportErrors);\n }\n if (result) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n }\n else {\n // conditionals aren't related to one another via distributive constraint as it is much too inaccurate and allows way\n // more assignments than are desirable (since it maps the source check type to its constraint, it loses information)\n var distributiveConstraint = getConstraintOfDistributiveConditionalType(source);\n if (distributiveConstraint) {\n if (result = isRelatedTo(distributiveConstraint, target, reportErrors)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n }\n // conditionals _can_ be related to one another via normal constraint, as, eg, `A extends B ? O : never` should be assignable to `O`\n // when `O` is a conditional (`never` is trivially aissgnable to `O`, as is `O`!).\n var defaultConstraint = getDefaultConstraintOfConditionalType(source);\n if (defaultConstraint) {\n if (result = isRelatedTo(defaultConstraint, target, reportErrors)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n }\n else {\n // An empty object type is related to any mapped type that includes a '?' modifier.\n if (relation !== subtypeRelation && relation !== strictSubtypeRelation && isPartialMappedType(target) && isEmptyObjectType(source)) {\n return -1 /* True */;\n }\n if (isGenericMappedType(target)) {\n if (isGenericMappedType(source)) {\n if (result = mappedTypeRelatedTo(source, target, reportErrors)) {\n resetErrorInfo(saveErrorInfo);\n return result;\n }\n }\n return 0 /* False */;\n }\n var sourceIsPrimitive = !!(source.flags & 131068 /* Primitive */);\n if (relation !== identityRelation) {\n source = getApparentType(source);\n }\n else if (isGenericMappedType(source)) {\n return 0 /* False */;\n }\n if (ts.getObjectFlags(source) & 4 /* Reference */ && ts.getObjectFlags(target) & 4 /* Reference */ && source.target === target.target &&\n !isTupleType(source) && !(ts.getObjectFlags(source) & 4096 /* MarkerType */ || ts.getObjectFlags(target) & 4096 /* MarkerType */)) {\n // We have type references to the same generic type, and the type references are not marker\n // type references (which are intended by be compared structurally). Obtain the variance\n // information for the type parameters and relate the type arguments accordingly.\n var variances = getVariances(source.target);\n // We return Ternary.Maybe for a recursive invocation of getVariances (signalled by emptyArray). This\n // effectively means we measure variance only from type parameter occurrences that aren't nested in\n // recursive instantiations of the generic type.\n if (variances === ts.emptyArray) {\n return 1 /* Unknown */;\n }\n var varianceResult = relateVariances(getTypeArguments(source), getTypeArguments(target), variances, intersectionState);\n if (varianceResult !== undefined) {\n return varianceResult;\n }\n }\n else if (isReadonlyArrayType(target) ? isArrayType(source) || isTupleType(source) : isArrayType(target) && isTupleType(source) && !source.target.readonly) {\n if (relation !== identityRelation) {\n return isRelatedTo(getIndexTypeOfType(source, numberType) || anyType, getIndexTypeOfType(target, numberType) || anyType, reportErrors);\n }\n else {\n // By flags alone, we know that the `target` is a readonly array while the source is a normal array or tuple\n // or `target` is an array and source is a tuple - in both cases the types cannot be identical, by construction\n return 0 /* False */;\n }\n }\n // Consider a fresh empty object literal type \"closed\" under the subtype relationship - this way `{} <- {[idx: string]: any} <- fresh({})`\n // and not `{} <- fresh({}) <- {[idx: string]: any}`\n else if ((relation === subtypeRelation || relation === strictSubtypeRelation) && isEmptyObjectType(target) && ts.getObjectFlags(target) & 16384 /* FreshLiteral */ && !isEmptyObjectType(source)) {\n return 0 /* False */;\n }\n // Even if relationship doesn't hold for unions, intersections, or generic type references,\n // it may hold in a structural comparison.\n // In a check of the form X = A & B, we will have previously checked if A relates to X or B relates\n // to X. Failing both of those we want to check if the aggregation of A and B's members structurally\n // relates to X. Thus, we include intersection types on the source side here.\n if (source.flags & (524288 /* Object */ | 2097152 /* Intersection */) && target.flags & 524288 /* Object */) {\n // Report structural errors only if we haven't reported any errors yet\n var reportStructuralErrors = reportErrors && errorInfo === saveErrorInfo.errorInfo && !sourceIsPrimitive;\n result = propertiesRelatedTo(source, target, reportStructuralErrors, /*excludedProperties*/ undefined, intersectionState);\n if (result) {\n result &= signaturesRelatedTo(source, target, 0 /* Call */, reportStructuralErrors);\n if (result) {\n result &= signaturesRelatedTo(source, target, 1 /* Construct */, reportStructuralErrors);\n if (result) {\n result &= indexSignaturesRelatedTo(source, target, sourceIsPrimitive, reportStructuralErrors, intersectionState);\n }\n }\n }\n if (varianceCheckFailed && result) {\n errorInfo = originalErrorInfo || errorInfo || saveErrorInfo.errorInfo; // Use variance error (there is no structural one) and return false\n }\n else if (result) {\n return result;\n }\n }\n // If S is an object type and T is a discriminated union, S may be related to T if\n // there exists a constituent of T for every combination of the discriminants of S\n // with respect to T. We do not report errors here, as we will use the existing\n // error result from checking each constituent of the union.\n if (source.flags & (524288 /* Object */ | 2097152 /* Intersection */) && target.flags & 1048576 /* Union */) {\n var objectOnlyTarget = extractTypesOfKind(target, 524288 /* Object */ | 2097152 /* Intersection */ | 33554432 /* Substitution */);\n if (objectOnlyTarget.flags & 1048576 /* Union */) {\n var result_10 = typeRelatedToDiscriminatedType(source, objectOnlyTarget);\n if (result_10) {\n return result_10;\n }\n }\n }\n }\n return 0 /* False */;\n function countMessageChainBreadth(info) {\n if (!info)\n return 0;\n return ts.reduceLeft(info, function (value, chain) { return value + 1 + countMessageChainBreadth(chain.next); }, 0);\n }\n function relateVariances(sourceTypeArguments, targetTypeArguments, variances, intersectionState) {\n if (result = typeArgumentsRelatedTo(sourceTypeArguments, targetTypeArguments, variances, reportErrors, intersectionState)) {\n return result;\n }\n if (ts.some(variances, function (v) { return !!(v & 24 /* AllowsStructuralFallback */); })) {\n // If some type parameter was `Unmeasurable` or `Unreliable`, and we couldn't pass by assuming it was identical, then we\n // have to allow a structural fallback check\n // We elide the variance-based error elaborations, since those might not be too helpful, since we'll potentially\n // be assuming identity of the type parameter.\n originalErrorInfo = undefined;\n resetErrorInfo(saveErrorInfo);\n return undefined;\n }\n var allowStructuralFallback = targetTypeArguments && hasCovariantVoidArgument(targetTypeArguments, variances);\n varianceCheckFailed = !allowStructuralFallback;\n // The type arguments did not relate appropriately, but it may be because we have no variance\n // information (in which case typeArgumentsRelatedTo defaulted to covariance for all type\n // arguments). It might also be the case that the target type has a 'void' type argument for\n // a covariant type parameter that is only used in return positions within the generic type\n // (in which case any type argument is permitted on the source side). In those cases we proceed\n // with a structural comparison. Otherwise, we know for certain the instantiations aren't\n // related and we can return here.\n if (variances !== ts.emptyArray && !allowStructuralFallback) {\n // In some cases generic types that are covariant in regular type checking mode become\n // invariant in --strictFunctionTypes mode because one or more type parameters are used in\n // both co- and contravariant positions. In order to make it easier to diagnose *why* such\n // types are invariant, if any of the type parameters are invariant we reset the reported\n // errors and instead force a structural comparison (which will include elaborations that\n // reveal the reason).\n // We can switch on `reportErrors` here, since varianceCheckFailed guarantees we return `False`,\n // we can return `False` early here to skip calculating the structural error message we don't need.\n if (varianceCheckFailed && !(reportErrors && ts.some(variances, function (v) { return (v & 7 /* VarianceMask */) === 0 /* Invariant */; }))) {\n return 0 /* False */;\n }\n // We remember the original error information so we can restore it in case the structural\n // comparison unexpectedly succeeds. This can happen when the structural comparison result\n // is a Ternary.Maybe for example caused by the recursion depth limiter.\n originalErrorInfo = errorInfo;\n resetErrorInfo(saveErrorInfo);\n }\n }\n }\n function reportUnmeasurableMarkers(p) {\n if (outofbandVarianceMarkerHandler && (p === markerSuperType || p === markerSubType || p === markerOtherType)) {\n outofbandVarianceMarkerHandler(/*onlyUnreliable*/ false);\n }\n return p;\n }\n function reportUnreliableMarkers(p) {\n if (outofbandVarianceMarkerHandler && (p === markerSuperType || p === markerSubType || p === markerOtherType)) {\n outofbandVarianceMarkerHandler(/*onlyUnreliable*/ true);\n }\n return p;\n }\n // A type [P in S]: X is related to a type [Q in T]: Y if T is related to S and X' is\n // related to Y, where X' is an instantiation of X in which P is replaced with Q. Notice\n // that S and T are contra-variant whereas X and Y are co-variant.\n function mappedTypeRelatedTo(source, target, reportErrors) {\n var modifiersRelated = relation === comparableRelation || (relation === identityRelation ? getMappedTypeModifiers(source) === getMappedTypeModifiers(target) :\n getCombinedMappedTypeOptionality(source) <= getCombinedMappedTypeOptionality(target));\n if (modifiersRelated) {\n var result_11;\n var targetConstraint = getConstraintTypeFromMappedType(target);\n var sourceConstraint = instantiateType(getConstraintTypeFromMappedType(source), makeFunctionTypeMapper(getCombinedMappedTypeOptionality(source) < 0 ? reportUnmeasurableMarkers : reportUnreliableMarkers));\n if (result_11 = isRelatedTo(targetConstraint, sourceConstraint, reportErrors)) {\n var mapper = createTypeMapper([getTypeParameterFromMappedType(source)], [getTypeParameterFromMappedType(target)]);\n if (instantiateType(getNameTypeFromMappedType(source), mapper) === instantiateType(getNameTypeFromMappedType(target), mapper)) {\n return result_11 & isRelatedTo(instantiateType(getTemplateTypeFromMappedType(source), mapper), getTemplateTypeFromMappedType(target), reportErrors);\n }\n }\n }\n return 0 /* False */;\n }\n function typeRelatedToDiscriminatedType(source, target) {\n // 1. Generate the combinations of discriminant properties & types 'source' can satisfy.\n // a. If the number of combinations is above a set limit, the comparison is too complex.\n // 2. Filter 'target' to the subset of types whose discriminants exist in the matrix.\n // a. If 'target' does not satisfy all discriminants in the matrix, 'source' is not related.\n // 3. For each type in the filtered 'target', determine if all non-discriminant properties of\n // 'target' are related to a property in 'source'.\n //\n // NOTE: See ~/tests/cases/conformance/types/typeRelationships/assignmentCompatibility/assignmentCompatWithDiscriminatedUnion.ts\n // for examples.\n var sourceProperties = getPropertiesOfType(source);\n var sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target);\n if (!sourcePropertiesFiltered)\n return 0 /* False */;\n // Though we could compute the number of combinations as we generate\n // the matrix, this would incur additional memory overhead due to\n // array allocations. To reduce this overhead, we first compute\n // the number of combinations to ensure we will not surpass our\n // fixed limit before incurring the cost of any allocations:\n var numCombinations = 1;\n for (var _i = 0, sourcePropertiesFiltered_1 = sourcePropertiesFiltered; _i < sourcePropertiesFiltered_1.length; _i++) {\n var sourceProperty = sourcePropertiesFiltered_1[_i];\n numCombinations *= countTypes(getNonMissingTypeOfSymbol(sourceProperty));\n if (numCombinations > 25) {\n // We've reached the complexity limit.\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"typeRelatedToDiscriminatedType_DepthLimit\", { sourceId: source.id, targetId: target.id, numCombinations: numCombinations });\n return 0 /* False */;\n }\n }\n // Compute the set of types for each discriminant property.\n var sourceDiscriminantTypes = new Array(sourcePropertiesFiltered.length);\n var excludedProperties = new ts.Set();\n for (var i = 0; i < sourcePropertiesFiltered.length; i++) {\n var sourceProperty = sourcePropertiesFiltered[i];\n var sourcePropertyType = getNonMissingTypeOfSymbol(sourceProperty);\n sourceDiscriminantTypes[i] = sourcePropertyType.flags & 1048576 /* Union */\n ? sourcePropertyType.types\n : [sourcePropertyType];\n excludedProperties.add(sourceProperty.escapedName);\n }\n // Match each combination of the cartesian product of discriminant properties to one or more\n // constituents of 'target'. If any combination does not have a match then 'source' is not relatable.\n var discriminantCombinations = ts.cartesianProduct(sourceDiscriminantTypes);\n var matchingTypes = [];\n var _loop_19 = function (combination) {\n var hasMatch = false;\n outer: for (var _c = 0, _d = target.types; _c < _d.length; _c++) {\n var type = _d[_c];\n var _loop_20 = function (i) {\n var sourceProperty = sourcePropertiesFiltered[i];\n var targetProperty = getPropertyOfType(type, sourceProperty.escapedName);\n if (!targetProperty)\n return \"continue-outer\";\n if (sourceProperty === targetProperty)\n return \"continue\";\n // We compare the source property to the target in the context of a single discriminant type.\n var related = propertyRelatedTo(source, target, sourceProperty, targetProperty, function (_) { return combination[i]; }, /*reportErrors*/ false, 0 /* None */, /*skipOptional*/ strictNullChecks || relation === comparableRelation);\n // If the target property could not be found, or if the properties were not related,\n // then this constituent is not a match.\n if (!related) {\n return \"continue-outer\";\n }\n };\n for (var i = 0; i < sourcePropertiesFiltered.length; i++) {\n var state_7 = _loop_20(i);\n switch (state_7) {\n case \"continue-outer\": continue outer;\n }\n }\n ts.pushIfUnique(matchingTypes, type, ts.equateValues);\n hasMatch = true;\n }\n if (!hasMatch) {\n return { value: 0 /* False */ };\n }\n };\n for (var _a = 0, discriminantCombinations_1 = discriminantCombinations; _a < discriminantCombinations_1.length; _a++) {\n var combination = discriminantCombinations_1[_a];\n var state_6 = _loop_19(combination);\n if (typeof state_6 === \"object\")\n return state_6.value;\n }\n // Compare the remaining non-discriminant properties of each match.\n var result = -1 /* True */;\n for (var _b = 0, matchingTypes_1 = matchingTypes; _b < matchingTypes_1.length; _b++) {\n var type = matchingTypes_1[_b];\n result &= propertiesRelatedTo(source, type, /*reportErrors*/ false, excludedProperties, 0 /* None */);\n if (result) {\n result &= signaturesRelatedTo(source, type, 0 /* Call */, /*reportStructuralErrors*/ false);\n if (result) {\n result &= signaturesRelatedTo(source, type, 1 /* Construct */, /*reportStructuralErrors*/ false);\n if (result && !(isTupleType(source) && isTupleType(type))) {\n // Comparing numeric index types when both `source` and `type` are tuples is unnecessary as the\n // element types should be sufficiently covered by `propertiesRelatedTo`. It also causes problems\n // with index type assignability as the types for the excluded discriminants are still included\n // in the index type.\n result &= indexSignaturesRelatedTo(source, type, /*sourceIsPrimitive*/ false, /*reportStructuralErrors*/ false, 0 /* None */);\n }\n }\n }\n if (!result) {\n return result;\n }\n }\n return result;\n }\n function excludeProperties(properties, excludedProperties) {\n if (!excludedProperties || properties.length === 0)\n return properties;\n var result;\n for (var i = 0; i < properties.length; i++) {\n if (!excludedProperties.has(properties[i].escapedName)) {\n if (result) {\n result.push(properties[i]);\n }\n }\n else if (!result) {\n result = properties.slice(0, i);\n }\n }\n return result || properties;\n }\n function isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState) {\n var targetIsOptional = strictNullChecks && !!(ts.getCheckFlags(targetProp) & 48 /* Partial */);\n var effectiveTarget = addOptionality(getNonMissingTypeOfSymbol(targetProp), /*isProperty*/ false, targetIsOptional);\n var effectiveSource = getTypeOfSourceProperty(sourceProp);\n return isRelatedTo(effectiveSource, effectiveTarget, reportErrors, /*headMessage*/ undefined, intersectionState);\n }\n function propertyRelatedTo(source, target, sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState, skipOptional) {\n var sourcePropFlags = ts.getDeclarationModifierFlagsFromSymbol(sourceProp);\n var targetPropFlags = ts.getDeclarationModifierFlagsFromSymbol(targetProp);\n if (sourcePropFlags & 8 /* Private */ || targetPropFlags & 8 /* Private */) {\n if (sourceProp.valueDeclaration !== targetProp.valueDeclaration) {\n if (reportErrors) {\n if (sourcePropFlags & 8 /* Private */ && targetPropFlags & 8 /* Private */) {\n reportError(ts.Diagnostics.Types_have_separate_declarations_of_a_private_property_0, symbolToString(targetProp));\n }\n else {\n reportError(ts.Diagnostics.Property_0_is_private_in_type_1_but_not_in_type_2, symbolToString(targetProp), typeToString(sourcePropFlags & 8 /* Private */ ? source : target), typeToString(sourcePropFlags & 8 /* Private */ ? target : source));\n }\n }\n return 0 /* False */;\n }\n }\n else if (targetPropFlags & 16 /* Protected */) {\n if (!isValidOverrideOf(sourceProp, targetProp)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Property_0_is_protected_but_type_1_is_not_a_class_derived_from_2, symbolToString(targetProp), typeToString(getDeclaringClass(sourceProp) || source), typeToString(getDeclaringClass(targetProp) || target));\n }\n return 0 /* False */;\n }\n }\n else if (sourcePropFlags & 16 /* Protected */) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Property_0_is_protected_in_type_1_but_public_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target));\n }\n return 0 /* False */;\n }\n // If the target comes from a partial union prop, allow `undefined` in the target type\n var related = isPropertySymbolTypeRelated(sourceProp, targetProp, getTypeOfSourceProperty, reportErrors, intersectionState);\n if (!related) {\n if (reportErrors) {\n reportIncompatibleError(ts.Diagnostics.Types_of_property_0_are_incompatible, symbolToString(targetProp));\n }\n return 0 /* False */;\n }\n // When checking for comparability, be more lenient with optional properties.\n if (!skipOptional && sourceProp.flags & 16777216 /* Optional */ && !(targetProp.flags & 16777216 /* Optional */)) {\n // TypeScript 1.0 spec (April 2014): 3.8.3\n // S is a subtype of a type T, and T is a supertype of S if ...\n // S' and T are object types and, for each member M in T..\n // M is a property and S' contains a property N where\n // if M is a required property, N is also a required property\n // (M - property in T)\n // (N - property in S)\n if (reportErrors) {\n reportError(ts.Diagnostics.Property_0_is_optional_in_type_1_but_required_in_type_2, symbolToString(targetProp), typeToString(source), typeToString(target));\n }\n return 0 /* False */;\n }\n return related;\n }\n function reportUnmatchedProperty(source, target, unmatchedProperty, requireOptionalProperties) {\n var shouldSkipElaboration = false;\n // give specific error in case where private names have the same description\n if (unmatchedProperty.valueDeclaration\n && ts.isNamedDeclaration(unmatchedProperty.valueDeclaration)\n && ts.isPrivateIdentifier(unmatchedProperty.valueDeclaration.name)\n && source.symbol\n && source.symbol.flags & 32 /* Class */) {\n var privateIdentifierDescription = unmatchedProperty.valueDeclaration.name.escapedText;\n var symbolTableKey = ts.getSymbolNameForPrivateIdentifier(source.symbol, privateIdentifierDescription);\n if (symbolTableKey && getPropertyOfType(source, symbolTableKey)) {\n var sourceName = ts.factory.getDeclarationName(source.symbol.valueDeclaration);\n var targetName = ts.factory.getDeclarationName(target.symbol.valueDeclaration);\n reportError(ts.Diagnostics.Property_0_in_type_1_refers_to_a_different_member_that_cannot_be_accessed_from_within_type_2, diagnosticName(privateIdentifierDescription), diagnosticName(sourceName.escapedText === \"\" ? anon : sourceName), diagnosticName(targetName.escapedText === \"\" ? anon : targetName));\n return;\n }\n }\n var props = ts.arrayFrom(getUnmatchedProperties(source, target, requireOptionalProperties, /*matchDiscriminantProperties*/ false));\n if (!headMessage || (headMessage.code !== ts.Diagnostics.Class_0_incorrectly_implements_interface_1.code &&\n headMessage.code !== ts.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code)) {\n shouldSkipElaboration = true; // Retain top-level error for interface implementing issues, otherwise omit it\n }\n if (props.length === 1) {\n var propName = symbolToString(unmatchedProperty);\n reportError.apply(void 0, __spreadArray([ts.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2, propName], getTypeNamesForErrorDisplay(source, target), false));\n if (ts.length(unmatchedProperty.declarations)) {\n associateRelatedInfo(ts.createDiagnosticForNode(unmatchedProperty.declarations[0], ts.Diagnostics._0_is_declared_here, propName));\n }\n if (shouldSkipElaboration && errorInfo) {\n overrideNextErrorInfo++;\n }\n }\n else if (tryElaborateArrayLikeErrors(source, target, /*reportErrors*/ false)) {\n if (props.length > 5) { // arbitrary cutoff for too-long list form\n reportError(ts.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more, typeToString(source), typeToString(target), ts.map(props.slice(0, 4), function (p) { return symbolToString(p); }).join(\", \"), props.length - 4);\n }\n else {\n reportError(ts.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2, typeToString(source), typeToString(target), ts.map(props, function (p) { return symbolToString(p); }).join(\", \"));\n }\n if (shouldSkipElaboration && errorInfo) {\n overrideNextErrorInfo++;\n }\n }\n // No array like or unmatched property error - just issue top level error (errorInfo = undefined)\n }\n function propertiesRelatedTo(source, target, reportErrors, excludedProperties, intersectionState) {\n if (relation === identityRelation) {\n return propertiesIdenticalTo(source, target, excludedProperties);\n }\n var result = -1 /* True */;\n if (isTupleType(target)) {\n if (isArrayType(source) || isTupleType(source)) {\n if (!target.target.readonly && (isReadonlyArrayType(source) || isTupleType(source) && source.target.readonly)) {\n return 0 /* False */;\n }\n var sourceArity = getTypeReferenceArity(source);\n var targetArity = getTypeReferenceArity(target);\n var sourceRestFlag = isTupleType(source) ? source.target.combinedFlags & 4 /* Rest */ : 4 /* Rest */;\n var targetRestFlag = target.target.combinedFlags & 4 /* Rest */;\n var sourceMinLength = isTupleType(source) ? source.target.minLength : 0;\n var targetMinLength = target.target.minLength;\n if (!sourceRestFlag && sourceArity < targetMinLength) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Source_has_0_element_s_but_target_requires_1, sourceArity, targetMinLength);\n }\n return 0 /* False */;\n }\n if (!targetRestFlag && targetArity < sourceMinLength) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Source_has_0_element_s_but_target_allows_only_1, sourceMinLength, targetArity);\n }\n return 0 /* False */;\n }\n if (!targetRestFlag && (sourceRestFlag || targetArity < sourceArity)) {\n if (reportErrors) {\n if (sourceMinLength < targetMinLength) {\n reportError(ts.Diagnostics.Target_requires_0_element_s_but_source_may_have_fewer, targetMinLength);\n }\n else {\n reportError(ts.Diagnostics.Target_allows_only_0_element_s_but_source_may_have_more, targetArity);\n }\n }\n return 0 /* False */;\n }\n var sourceTypeArguments = getTypeArguments(source);\n var targetTypeArguments = getTypeArguments(target);\n var startCount = Math.min(isTupleType(source) ? getStartElementCount(source.target, 11 /* NonRest */) : 0, getStartElementCount(target.target, 11 /* NonRest */));\n var endCount = Math.min(isTupleType(source) ? getEndElementCount(source.target, 11 /* NonRest */) : 0, targetRestFlag ? getEndElementCount(target.target, 11 /* NonRest */) : 0);\n var canExcludeDiscriminants = !!excludedProperties;\n for (var i = 0; i < targetArity; i++) {\n var sourceIndex = i < targetArity - endCount ? i : i + sourceArity - targetArity;\n var sourceFlags = isTupleType(source) && (i < startCount || i >= targetArity - endCount) ? source.target.elementFlags[sourceIndex] : 4 /* Rest */;\n var targetFlags = target.target.elementFlags[i];\n if (targetFlags & 8 /* Variadic */ && !(sourceFlags & 8 /* Variadic */)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Source_provides_no_match_for_variadic_element_at_position_0_in_target, i);\n }\n return 0 /* False */;\n }\n if (sourceFlags & 8 /* Variadic */ && !(targetFlags & 12 /* Variable */)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Variadic_element_at_position_0_in_source_does_not_match_element_at_position_1_in_target, sourceIndex, i);\n }\n return 0 /* False */;\n }\n if (targetFlags & 1 /* Required */ && !(sourceFlags & 1 /* Required */)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Source_provides_no_match_for_required_element_at_position_0_in_target, i);\n }\n return 0 /* False */;\n }\n // We can only exclude discriminant properties if we have not yet encountered a variable-length element.\n if (canExcludeDiscriminants) {\n if (sourceFlags & 12 /* Variable */ || targetFlags & 12 /* Variable */) {\n canExcludeDiscriminants = false;\n }\n if (canExcludeDiscriminants && (excludedProperties === null || excludedProperties === void 0 ? void 0 : excludedProperties.has((\"\" + i)))) {\n continue;\n }\n }\n var sourceType = !isTupleType(source) ? sourceTypeArguments[0] :\n i < startCount || i >= targetArity - endCount ? removeMissingType(sourceTypeArguments[sourceIndex], !!(sourceFlags & targetFlags & 2 /* Optional */)) :\n getElementTypeOfSliceOfTupleType(source, startCount, endCount) || neverType;\n var targetType = targetTypeArguments[i];\n var targetCheckType = sourceFlags & 8 /* Variadic */ && targetFlags & 4 /* Rest */ ? createArrayType(targetType) :\n removeMissingType(targetType, !!(targetFlags & 2 /* Optional */));\n var related = isRelatedTo(sourceType, targetCheckType, reportErrors, /*headMessage*/ undefined, intersectionState);\n if (!related) {\n if (reportErrors && (targetArity > 1 || sourceArity > 1)) {\n if (i < startCount || i >= targetArity - endCount || sourceArity - startCount - endCount === 1) {\n reportIncompatibleError(ts.Diagnostics.Type_at_position_0_in_source_is_not_compatible_with_type_at_position_1_in_target, sourceIndex, i);\n }\n else {\n reportIncompatibleError(ts.Diagnostics.Type_at_positions_0_through_1_in_source_is_not_compatible_with_type_at_position_2_in_target, startCount, sourceArity - endCount - 1, i);\n }\n }\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n if (target.target.combinedFlags & 12 /* Variable */) {\n return 0 /* False */;\n }\n }\n var requireOptionalProperties = (relation === subtypeRelation || relation === strictSubtypeRelation) && !isObjectLiteralType(source) && !isEmptyArrayLiteralType(source) && !isTupleType(source);\n var unmatchedProperty = getUnmatchedProperty(source, target, requireOptionalProperties, /*matchDiscriminantProperties*/ false);\n if (unmatchedProperty) {\n if (reportErrors) {\n reportUnmatchedProperty(source, target, unmatchedProperty, requireOptionalProperties);\n }\n return 0 /* False */;\n }\n if (isObjectLiteralType(target)) {\n for (var _i = 0, _a = excludeProperties(getPropertiesOfType(source), excludedProperties); _i < _a.length; _i++) {\n var sourceProp = _a[_i];\n if (!getPropertyOfObjectType(target, sourceProp.escapedName)) {\n var sourceType = getTypeOfSymbol(sourceProp);\n if (!(sourceType.flags & 32768 /* Undefined */)) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Property_0_does_not_exist_on_type_1, symbolToString(sourceProp), typeToString(target));\n }\n return 0 /* False */;\n }\n }\n }\n }\n // We only call this for union target types when we're attempting to do excess property checking - in those cases, we want to get _all possible props_\n // from the target union, across all members\n var properties = getPropertiesOfType(target);\n var numericNamesOnly = isTupleType(source) && isTupleType(target);\n for (var _b = 0, _c = excludeProperties(properties, excludedProperties); _b < _c.length; _b++) {\n var targetProp = _c[_b];\n var name = targetProp.escapedName;\n if (!(targetProp.flags & 4194304 /* Prototype */) && (!numericNamesOnly || isNumericLiteralName(name) || name === \"length\")) {\n var sourceProp = getPropertyOfType(source, name);\n if (sourceProp && sourceProp !== targetProp) {\n var related = propertyRelatedTo(source, target, sourceProp, targetProp, getNonMissingTypeOfSymbol, reportErrors, intersectionState, relation === comparableRelation);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n }\n }\n return result;\n }\n function propertiesIdenticalTo(source, target, excludedProperties) {\n if (!(source.flags & 524288 /* Object */ && target.flags & 524288 /* Object */)) {\n return 0 /* False */;\n }\n var sourceProperties = excludeProperties(getPropertiesOfObjectType(source), excludedProperties);\n var targetProperties = excludeProperties(getPropertiesOfObjectType(target), excludedProperties);\n if (sourceProperties.length !== targetProperties.length) {\n return 0 /* False */;\n }\n var result = -1 /* True */;\n for (var _i = 0, sourceProperties_1 = sourceProperties; _i < sourceProperties_1.length; _i++) {\n var sourceProp = sourceProperties_1[_i];\n var targetProp = getPropertyOfObjectType(target, sourceProp.escapedName);\n if (!targetProp) {\n return 0 /* False */;\n }\n var related = compareProperties(sourceProp, targetProp, isRelatedTo);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n function signaturesRelatedTo(source, target, kind, reportErrors) {\n var _a, _b;\n if (relation === identityRelation) {\n return signaturesIdenticalTo(source, target, kind);\n }\n if (target === anyFunctionType || source === anyFunctionType) {\n return -1 /* True */;\n }\n var sourceIsJSConstructor = source.symbol && isJSConstructor(source.symbol.valueDeclaration);\n var targetIsJSConstructor = target.symbol && isJSConstructor(target.symbol.valueDeclaration);\n var sourceSignatures = getSignaturesOfType(source, (sourceIsJSConstructor && kind === 1 /* Construct */) ?\n 0 /* Call */ : kind);\n var targetSignatures = getSignaturesOfType(target, (targetIsJSConstructor && kind === 1 /* Construct */) ?\n 0 /* Call */ : kind);\n if (kind === 1 /* Construct */ && sourceSignatures.length && targetSignatures.length) {\n var sourceIsAbstract = !!(sourceSignatures[0].flags & 4 /* Abstract */);\n var targetIsAbstract = !!(targetSignatures[0].flags & 4 /* Abstract */);\n if (sourceIsAbstract && !targetIsAbstract) {\n // An abstract constructor type is not assignable to a non-abstract constructor type\n // as it would otherwise be possible to new an abstract class. Note that the assignability\n // check we perform for an extends clause excludes construct signatures from the target,\n // so this check never proceeds.\n if (reportErrors) {\n reportError(ts.Diagnostics.Cannot_assign_an_abstract_constructor_type_to_a_non_abstract_constructor_type);\n }\n return 0 /* False */;\n }\n if (!constructorVisibilitiesAreCompatible(sourceSignatures[0], targetSignatures[0], reportErrors)) {\n return 0 /* False */;\n }\n }\n var result = -1 /* True */;\n var saveErrorInfo = captureErrorCalculationState();\n var incompatibleReporter = kind === 1 /* Construct */ ? reportIncompatibleConstructSignatureReturn : reportIncompatibleCallSignatureReturn;\n var sourceObjectFlags = ts.getObjectFlags(source);\n var targetObjectFlags = ts.getObjectFlags(target);\n if (sourceObjectFlags & 64 /* Instantiated */ && targetObjectFlags & 64 /* Instantiated */ && source.symbol === target.symbol) {\n // We have instantiations of the same anonymous type (which typically will be the type of a\n // method). Simply do a pairwise comparison of the signatures in the two signature lists instead\n // of the much more expensive N * M comparison matrix we explore below. We erase type parameters\n // as they are known to always be the same.\n for (var i = 0; i < targetSignatures.length; i++) {\n var related = signatureRelatedTo(sourceSignatures[i], targetSignatures[i], /*erase*/ true, reportErrors, incompatibleReporter(sourceSignatures[i], targetSignatures[i]));\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n }\n else if (sourceSignatures.length === 1 && targetSignatures.length === 1) {\n // For simple functions (functions with a single signature) we only erase type parameters for\n // the comparable relation. Otherwise, if the source signature is generic, we instantiate it\n // in the context of the target signature before checking the relationship. Ideally we'd do\n // this regardless of the number of signatures, but the potential costs are prohibitive due\n // to the quadratic nature of the logic below.\n var eraseGenerics = relation === comparableRelation || !!compilerOptions.noStrictGenericChecks;\n var sourceSignature = ts.first(sourceSignatures);\n var targetSignature = ts.first(targetSignatures);\n result = signatureRelatedTo(sourceSignature, targetSignature, eraseGenerics, reportErrors, incompatibleReporter(sourceSignature, targetSignature));\n if (!result && reportErrors && kind === 1 /* Construct */ && (sourceObjectFlags & targetObjectFlags) &&\n (((_a = targetSignature.declaration) === null || _a === void 0 ? void 0 : _a.kind) === 169 /* Constructor */ || ((_b = sourceSignature.declaration) === null || _b === void 0 ? void 0 : _b.kind) === 169 /* Constructor */)) {\n var constructSignatureToString = function (signature) {\n return signatureToString(signature, /*enclosingDeclaration*/ undefined, 262144 /* WriteArrowStyleSignature */, kind);\n };\n reportError(ts.Diagnostics.Type_0_is_not_assignable_to_type_1, constructSignatureToString(sourceSignature), constructSignatureToString(targetSignature));\n reportError(ts.Diagnostics.Types_of_construct_signatures_are_incompatible);\n return result;\n }\n }\n else {\n outer: for (var _i = 0, targetSignatures_1 = targetSignatures; _i < targetSignatures_1.length; _i++) {\n var t = targetSignatures_1[_i];\n // Only elaborate errors from the first failure\n var shouldElaborateErrors = reportErrors;\n for (var _c = 0, sourceSignatures_1 = sourceSignatures; _c < sourceSignatures_1.length; _c++) {\n var s = sourceSignatures_1[_c];\n var related = signatureRelatedTo(s, t, /*erase*/ true, shouldElaborateErrors, incompatibleReporter(s, t));\n if (related) {\n result &= related;\n resetErrorInfo(saveErrorInfo);\n continue outer;\n }\n shouldElaborateErrors = false;\n }\n if (shouldElaborateErrors) {\n reportError(ts.Diagnostics.Type_0_provides_no_match_for_the_signature_1, typeToString(source), signatureToString(t, /*enclosingDeclaration*/ undefined, /*flags*/ undefined, kind));\n }\n return 0 /* False */;\n }\n }\n return result;\n }\n function reportIncompatibleCallSignatureReturn(siga, sigb) {\n if (siga.parameters.length === 0 && sigb.parameters.length === 0) {\n return function (source, target) { return reportIncompatibleError(ts.Diagnostics.Call_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source), typeToString(target)); };\n }\n return function (source, target) { return reportIncompatibleError(ts.Diagnostics.Call_signature_return_types_0_and_1_are_incompatible, typeToString(source), typeToString(target)); };\n }\n function reportIncompatibleConstructSignatureReturn(siga, sigb) {\n if (siga.parameters.length === 0 && sigb.parameters.length === 0) {\n return function (source, target) { return reportIncompatibleError(ts.Diagnostics.Construct_signatures_with_no_arguments_have_incompatible_return_types_0_and_1, typeToString(source), typeToString(target)); };\n }\n return function (source, target) { return reportIncompatibleError(ts.Diagnostics.Construct_signature_return_types_0_and_1_are_incompatible, typeToString(source), typeToString(target)); };\n }\n /**\n * See signatureAssignableTo, compareSignaturesIdentical\n */\n function signatureRelatedTo(source, target, erase, reportErrors, incompatibleReporter) {\n return compareSignaturesRelated(erase ? getErasedSignature(source) : source, erase ? getErasedSignature(target) : target, relation === strictSubtypeRelation ? 8 /* StrictArity */ : 0, reportErrors, reportError, incompatibleReporter, isRelatedTo, makeFunctionTypeMapper(reportUnreliableMarkers));\n }\n function signaturesIdenticalTo(source, target, kind) {\n var sourceSignatures = getSignaturesOfType(source, kind);\n var targetSignatures = getSignaturesOfType(target, kind);\n if (sourceSignatures.length !== targetSignatures.length) {\n return 0 /* False */;\n }\n var result = -1 /* True */;\n for (var i = 0; i < sourceSignatures.length; i++) {\n var related = compareSignaturesIdentical(sourceSignatures[i], targetSignatures[i], /*partialMatch*/ false, /*ignoreThisTypes*/ false, /*ignoreReturnTypes*/ false, isRelatedTo);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n function membersRelatedToIndexInfo(source, targetInfo, reportErrors) {\n var result = -1 /* True */;\n var keyType = targetInfo.keyType;\n var props = source.flags & 2097152 /* Intersection */ ? getPropertiesOfUnionOrIntersectionType(source) : getPropertiesOfObjectType(source);\n for (var _i = 0, props_2 = props; _i < props_2.length; _i++) {\n var prop = props_2[_i];\n // Skip over ignored JSX and symbol-named members\n if (isIgnoredJsxProperty(source, prop)) {\n continue;\n }\n if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), keyType)) {\n var propType = getNonMissingTypeOfSymbol(prop);\n var type = exactOptionalPropertyTypes || propType.flags & 32768 /* Undefined */ || keyType === numberType || !(prop.flags & 16777216 /* Optional */)\n ? propType\n : getTypeWithFacts(propType, 524288 /* NEUndefined */);\n var related = isRelatedTo(type, targetInfo.type, reportErrors);\n if (!related) {\n if (reportErrors) {\n reportError(ts.Diagnostics.Property_0_is_incompatible_with_index_signature, symbolToString(prop));\n }\n return 0 /* False */;\n }\n result &= related;\n }\n }\n for (var _a = 0, _b = getIndexInfosOfType(source); _a < _b.length; _a++) {\n var info = _b[_a];\n if (isApplicableIndexType(info.keyType, keyType)) {\n var related = indexInfoRelatedTo(info, targetInfo, reportErrors);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n }\n return result;\n }\n function indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors) {\n var related = isRelatedTo(sourceInfo.type, targetInfo.type, reportErrors);\n if (!related && reportErrors) {\n if (sourceInfo.keyType === targetInfo.keyType) {\n reportError(ts.Diagnostics._0_index_signatures_are_incompatible, typeToString(sourceInfo.keyType));\n }\n else {\n reportError(ts.Diagnostics._0_and_1_index_signatures_are_incompatible, typeToString(sourceInfo.keyType), typeToString(targetInfo.keyType));\n }\n }\n return related;\n }\n function indexSignaturesRelatedTo(source, target, sourceIsPrimitive, reportErrors, intersectionState) {\n if (relation === identityRelation) {\n return indexSignaturesIdenticalTo(source, target);\n }\n var indexInfos = getIndexInfosOfType(target);\n var targetHasStringIndex = ts.some(indexInfos, function (info) { return info.keyType === stringType; });\n var result = -1 /* True */;\n for (var _i = 0, indexInfos_3 = indexInfos; _i < indexInfos_3.length; _i++) {\n var targetInfo = indexInfos_3[_i];\n var related = !sourceIsPrimitive && targetHasStringIndex && targetInfo.type.flags & 1 /* Any */ ? -1 /* True */ :\n isGenericMappedType(source) && targetHasStringIndex ? isRelatedTo(getTemplateTypeFromMappedType(source), targetInfo.type, reportErrors) :\n typeRelatedToIndexInfo(source, targetInfo, reportErrors, intersectionState);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n return result;\n }\n function typeRelatedToIndexInfo(source, targetInfo, reportErrors, intersectionState) {\n var sourceInfo = getApplicableIndexInfo(source, targetInfo.keyType);\n if (sourceInfo) {\n return indexInfoRelatedTo(sourceInfo, targetInfo, reportErrors);\n }\n if (!(intersectionState & 1 /* Source */) && isObjectTypeWithInferableIndex(source)) {\n // Intersection constituents are never considered to have an inferred index signature\n return membersRelatedToIndexInfo(source, targetInfo, reportErrors);\n }\n if (reportErrors) {\n reportError(ts.Diagnostics.Index_signature_for_type_0_is_missing_in_type_1, typeToString(targetInfo.keyType), typeToString(source));\n }\n return 0 /* False */;\n }\n function indexSignaturesIdenticalTo(source, target) {\n var sourceInfos = getIndexInfosOfType(source);\n var targetInfos = getIndexInfosOfType(target);\n if (sourceInfos.length !== targetInfos.length) {\n return 0 /* False */;\n }\n for (var _i = 0, targetInfos_1 = targetInfos; _i < targetInfos_1.length; _i++) {\n var targetInfo = targetInfos_1[_i];\n var sourceInfo = getIndexInfoOfType(source, targetInfo.keyType);\n if (!(sourceInfo && isRelatedTo(sourceInfo.type, targetInfo.type) && sourceInfo.isReadonly === targetInfo.isReadonly)) {\n return 0 /* False */;\n }\n }\n return -1 /* True */;\n }\n function constructorVisibilitiesAreCompatible(sourceSignature, targetSignature, reportErrors) {\n if (!sourceSignature.declaration || !targetSignature.declaration) {\n return true;\n }\n var sourceAccessibility = ts.getSelectedEffectiveModifierFlags(sourceSignature.declaration, 24 /* NonPublicAccessibilityModifier */);\n var targetAccessibility = ts.getSelectedEffectiveModifierFlags(targetSignature.declaration, 24 /* NonPublicAccessibilityModifier */);\n // A public, protected and private signature is assignable to a private signature.\n if (targetAccessibility === 8 /* Private */) {\n return true;\n }\n // A public and protected signature is assignable to a protected signature.\n if (targetAccessibility === 16 /* Protected */ && sourceAccessibility !== 8 /* Private */) {\n return true;\n }\n // Only a public signature is assignable to public signature.\n if (targetAccessibility !== 16 /* Protected */ && !sourceAccessibility) {\n return true;\n }\n if (reportErrors) {\n reportError(ts.Diagnostics.Cannot_assign_a_0_constructor_type_to_a_1_constructor_type, visibilityToString(sourceAccessibility), visibilityToString(targetAccessibility));\n }\n return false;\n }\n }\n function typeCouldHaveTopLevelSingletonTypes(type) {\n // Okay, yes, 'boolean' is a union of 'true | false', but that's not useful\n // in error reporting scenarios. If you need to use this function but that detail matters,\n // feel free to add a flag.\n if (type.flags & 16 /* Boolean */) {\n return false;\n }\n if (type.flags & 3145728 /* UnionOrIntersection */) {\n return !!ts.forEach(type.types, typeCouldHaveTopLevelSingletonTypes);\n }\n if (type.flags & 465829888 /* Instantiable */) {\n var constraint = getConstraintOfType(type);\n if (constraint && constraint !== type) {\n return typeCouldHaveTopLevelSingletonTypes(constraint);\n }\n }\n return isUnitType(type) || !!(type.flags & 134217728 /* TemplateLiteral */);\n }\n function getBestMatchingType(source, target, isRelatedTo) {\n if (isRelatedTo === void 0) { isRelatedTo = compareTypesAssignable; }\n return findMatchingDiscriminantType(source, target, isRelatedTo, /*skipPartial*/ true) ||\n findMatchingTypeReferenceOrTypeAliasReference(source, target) ||\n findBestTypeForObjectLiteral(source, target) ||\n findBestTypeForInvokable(source, target) ||\n findMostOverlappyType(source, target);\n }\n function discriminateTypeByDiscriminableItems(target, discriminators, related, defaultValue, skipPartial) {\n // undefined=unknown, true=discriminated, false=not discriminated\n // The state of each type progresses from left to right. Discriminated types stop at 'true'.\n var discriminable = target.types.map(function (_) { return undefined; });\n for (var _i = 0, discriminators_1 = discriminators; _i < discriminators_1.length; _i++) {\n var _a = discriminators_1[_i], getDiscriminatingType = _a[0], propertyName = _a[1];\n var targetProp = getUnionOrIntersectionProperty(target, propertyName);\n if (skipPartial && targetProp && ts.getCheckFlags(targetProp) & 16 /* ReadPartial */) {\n continue;\n }\n var i = 0;\n for (var _b = 0, _c = target.types; _b < _c.length; _b++) {\n var type = _c[_b];\n var targetType = getTypeOfPropertyOfType(type, propertyName);\n if (targetType && related(getDiscriminatingType(), targetType)) {\n discriminable[i] = discriminable[i] === undefined ? true : discriminable[i];\n }\n else {\n discriminable[i] = false;\n }\n i++;\n }\n }\n var match = discriminable.indexOf(/*searchElement*/ true);\n if (match === -1) {\n return defaultValue;\n }\n // make sure exactly 1 matches before returning it\n var nextMatch = discriminable.indexOf(/*searchElement*/ true, match + 1);\n while (nextMatch !== -1) {\n if (!isTypeIdenticalTo(target.types[match], target.types[nextMatch])) {\n return defaultValue;\n }\n nextMatch = discriminable.indexOf(/*searchElement*/ true, nextMatch + 1);\n }\n return target.types[match];\n }\n /**\n * A type is 'weak' if it is an object type with at least one optional property\n * and no required properties, call/construct signatures or index signatures\n */\n function isWeakType(type) {\n if (type.flags & 524288 /* Object */) {\n var resolved = resolveStructuredTypeMembers(type);\n return resolved.callSignatures.length === 0 && resolved.constructSignatures.length === 0 && resolved.indexInfos.length === 0 &&\n resolved.properties.length > 0 && ts.every(resolved.properties, function (p) { return !!(p.flags & 16777216 /* Optional */); });\n }\n if (type.flags & 2097152 /* Intersection */) {\n return ts.every(type.types, isWeakType);\n }\n return false;\n }\n function hasCommonProperties(source, target, isComparingJsxAttributes) {\n for (var _i = 0, _a = getPropertiesOfType(source); _i < _a.length; _i++) {\n var prop = _a[_i];\n if (isKnownProperty(target, prop.escapedName, isComparingJsxAttributes)) {\n return true;\n }\n }\n return false;\n }\n // Return a type reference where the source type parameter is replaced with the target marker\n // type, and flag the result as a marker type reference.\n function getMarkerTypeReference(type, source, target) {\n var result = createTypeReference(type, ts.map(type.typeParameters, function (t) { return t === source ? target : t; }));\n result.objectFlags |= 4096 /* MarkerType */;\n return result;\n }\n function getAliasVariances(symbol) {\n var links = getSymbolLinks(symbol);\n return getVariancesWorker(links.typeParameters, links, function (_links, param, marker) {\n var type = getTypeAliasInstantiation(symbol, instantiateTypes(links.typeParameters, makeUnaryTypeMapper(param, marker)));\n type.aliasTypeArgumentsContainsMarker = true;\n return type;\n });\n }\n // Return an array containing the variance of each type parameter. The variance is effectively\n // a digest of the type comparisons that occur for each type argument when instantiations of the\n // generic type are structurally compared. We infer the variance information by comparing\n // instantiations of the generic type for type arguments with known relations. The function\n // returns the emptyArray singleton when invoked recursively for the given generic type.\n function getVariancesWorker(typeParameters, cache, createMarkerType) {\n var _a, _b, _c;\n if (typeParameters === void 0) { typeParameters = ts.emptyArray; }\n var variances = cache.variances;\n if (!variances) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"checkTypes\" /* CheckTypes */, \"getVariancesWorker\", { arity: typeParameters.length, id: (_c = (_a = cache.id) !== null && _a !== void 0 ? _a : (_b = cache.declaredType) === null || _b === void 0 ? void 0 : _b.id) !== null && _c !== void 0 ? _c : -1 });\n // The emptyArray singleton is used to signal a recursive invocation.\n cache.variances = ts.emptyArray;\n variances = [];\n var _loop_21 = function (tp) {\n var unmeasurable = false;\n var unreliable = false;\n var oldHandler = outofbandVarianceMarkerHandler;\n outofbandVarianceMarkerHandler = function (onlyUnreliable) { return onlyUnreliable ? unreliable = true : unmeasurable = true; };\n // We first compare instantiations where the type parameter is replaced with\n // marker types that have a known subtype relationship. From this we can infer\n // invariance, covariance, contravariance or bivariance.\n var typeWithSuper = createMarkerType(cache, tp, markerSuperType);\n var typeWithSub = createMarkerType(cache, tp, markerSubType);\n var variance = (isTypeAssignableTo(typeWithSub, typeWithSuper) ? 1 /* Covariant */ : 0) |\n (isTypeAssignableTo(typeWithSuper, typeWithSub) ? 2 /* Contravariant */ : 0);\n // If the instantiations appear to be related bivariantly it may be because the\n // type parameter is independent (i.e. it isn't witnessed anywhere in the generic\n // type). To determine this we compare instantiations where the type parameter is\n // replaced with marker types that are known to be unrelated.\n if (variance === 3 /* Bivariant */ && isTypeAssignableTo(createMarkerType(cache, tp, markerOtherType), typeWithSuper)) {\n variance = 4 /* Independent */;\n }\n outofbandVarianceMarkerHandler = oldHandler;\n if (unmeasurable || unreliable) {\n if (unmeasurable) {\n variance |= 8 /* Unmeasurable */;\n }\n if (unreliable) {\n variance |= 16 /* Unreliable */;\n }\n }\n variances.push(variance);\n };\n for (var _i = 0, typeParameters_1 = typeParameters; _i < typeParameters_1.length; _i++) {\n var tp = typeParameters_1[_i];\n _loop_21(tp);\n }\n cache.variances = variances;\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n return variances;\n }\n function getVariances(type) {\n // Arrays and tuples are known to be covariant, no need to spend time computing this.\n if (type === globalArrayType || type === globalReadonlyArrayType || type.objectFlags & 8 /* Tuple */) {\n return arrayVariances;\n }\n return getVariancesWorker(type.typeParameters, type, getMarkerTypeReference);\n }\n // Return true if the given type reference has a 'void' type argument for a covariant type parameter.\n // See comment at call in recursiveTypeRelatedTo for when this case matters.\n function hasCovariantVoidArgument(typeArguments, variances) {\n for (var i = 0; i < variances.length; i++) {\n if ((variances[i] & 7 /* VarianceMask */) === 1 /* Covariant */ && typeArguments[i].flags & 16384 /* Void */) {\n return true;\n }\n }\n return false;\n }\n function isUnconstrainedTypeParameter(type) {\n return type.flags & 262144 /* TypeParameter */ && !getConstraintOfTypeParameter(type);\n }\n function isNonDeferredTypeReference(type) {\n return !!(ts.getObjectFlags(type) & 4 /* Reference */) && !type.node;\n }\n function isTypeReferenceWithGenericArguments(type) {\n return isNonDeferredTypeReference(type) && ts.some(getTypeArguments(type), function (t) { return !!(t.flags & 262144 /* TypeParameter */) || isTypeReferenceWithGenericArguments(t); });\n }\n /**\n * getTypeReferenceId(A) returns \"111=0-12=1\"\n * where A.id=111 and number.id=12\n */\n function getTypeReferenceId(type, typeParameters, depth) {\n if (depth === void 0) { depth = 0; }\n var result = \"\" + type.target.id;\n for (var _i = 0, _a = getTypeArguments(type); _i < _a.length; _i++) {\n var t = _a[_i];\n if (isUnconstrainedTypeParameter(t)) {\n var index = typeParameters.indexOf(t);\n if (index < 0) {\n index = typeParameters.length;\n typeParameters.push(t);\n }\n result += \"=\" + index;\n }\n else if (depth < 4 && isTypeReferenceWithGenericArguments(t)) {\n result += \"<\" + getTypeReferenceId(t, typeParameters, depth + 1) + \">\";\n }\n else {\n result += \"-\" + t.id;\n }\n }\n return result;\n }\n /**\n * To improve caching, the relation key for two generic types uses the target's id plus ids of the type parameters.\n * For other cases, the types ids are used.\n */\n function getRelationKey(source, target, intersectionState, relation) {\n if (relation === identityRelation && source.id > target.id) {\n var temp = source;\n source = target;\n target = temp;\n }\n var postFix = intersectionState ? \":\" + intersectionState : \"\";\n if (isTypeReferenceWithGenericArguments(source) && isTypeReferenceWithGenericArguments(target)) {\n var typeParameters = [];\n return getTypeReferenceId(source, typeParameters) + \",\" + getTypeReferenceId(target, typeParameters) + postFix;\n }\n return source.id + \",\" + target.id + postFix;\n }\n // Invoke the callback for each underlying property symbol of the given symbol and return the first\n // value that isn't undefined.\n function forEachProperty(prop, callback) {\n if (ts.getCheckFlags(prop) & 6 /* Synthetic */) {\n for (var _i = 0, _a = prop.containingType.types; _i < _a.length; _i++) {\n var t = _a[_i];\n var p = getPropertyOfType(t, prop.escapedName);\n var result = p && forEachProperty(p, callback);\n if (result) {\n return result;\n }\n }\n return undefined;\n }\n return callback(prop);\n }\n // Return the declaring class type of a property or undefined if property not declared in class\n function getDeclaringClass(prop) {\n return prop.parent && prop.parent.flags & 32 /* Class */ ? getDeclaredTypeOfSymbol(getParentOfSymbol(prop)) : undefined;\n }\n // Return the inherited type of the given property or undefined if property doesn't exist in a base class.\n function getTypeOfPropertyInBaseClass(property) {\n var classType = getDeclaringClass(property);\n var baseClassType = classType && getBaseTypes(classType)[0];\n return baseClassType && getTypeOfPropertyOfType(baseClassType, property.escapedName);\n }\n // Return true if some underlying source property is declared in a class that derives\n // from the given base class.\n function isPropertyInClassDerivedFrom(prop, baseClass) {\n return forEachProperty(prop, function (sp) {\n var sourceClass = getDeclaringClass(sp);\n return sourceClass ? hasBaseType(sourceClass, baseClass) : false;\n });\n }\n // Return true if source property is a valid override of protected parts of target property.\n function isValidOverrideOf(sourceProp, targetProp) {\n return !forEachProperty(targetProp, function (tp) { return ts.getDeclarationModifierFlagsFromSymbol(tp) & 16 /* Protected */ ?\n !isPropertyInClassDerivedFrom(sourceProp, getDeclaringClass(tp)) : false; });\n }\n // Return true if the given class derives from each of the declaring classes of the protected\n // constituents of the given property.\n function isClassDerivedFromDeclaringClasses(checkClass, prop, writing) {\n return forEachProperty(prop, function (p) { return ts.getDeclarationModifierFlagsFromSymbol(p, writing) & 16 /* Protected */ ?\n !hasBaseType(checkClass, getDeclaringClass(p)) : false; }) ? undefined : checkClass;\n }\n // Return true if the given type is deeply nested. We consider this to be the case when structural type comparisons\n // for 5 or more occurrences or instantiations of the type have been recorded on the given stack. It is possible,\n // though highly unlikely, for this test to be true in a situation where a chain of instantiations is not infinitely\n // expanding. Effectively, we will generate a false positive when two types are structurally equal to at least 5\n // levels, but unequal at some level beyond that.\n // In addition, this will also detect when an indexed access has been chained off of 5 or more times (which is essentially\n // the dual of the structural comparison), and likewise mark the type as deeply nested, potentially adding false positives\n // for finite but deeply expanding indexed accesses (eg, for `Q[P1][P2][P3][P4][P5]`).\n // It also detects when a recursive type reference has expanded 5 or more times, eg, if the true branch of\n // `type A = null extends T ? [A>] : [T]`\n // has expanded into `[A>>>>>]`\n // in such cases we need to terminate the expansion, and we do so here.\n function isDeeplyNestedType(type, stack, depth) {\n if (depth >= 5) {\n var identity_1 = getRecursionIdentity(type);\n var count = 0;\n for (var i = 0; i < depth; i++) {\n if (getRecursionIdentity(stack[i]) === identity_1) {\n count++;\n if (count >= 5) {\n return true;\n }\n }\n }\n }\n return false;\n }\n // The recursion identity of a type is an object identity that is shared among multiple instantiations of the type.\n // We track recursion identities in order to identify deeply nested and possibly infinite type instantiations with\n // the same origin. For example, when type parameters are in scope in an object type such as { x: T }, all\n // instantiations of that type have the same recursion identity. The default recursion identity is the object\n // identity of the type, meaning that every type is unique. Generally, types with constituents that could circularly\n // reference the type have a recursion identity that differs from the object identity.\n function getRecursionIdentity(type) {\n // Object and array literals are known not to contain recursive references and don't need a recursion identity.\n if (type.flags & 524288 /* Object */ && !isObjectOrArrayLiteralType(type)) {\n if (ts.getObjectFlags(type) && 4 /* Reference */ && type.node) {\n // Deferred type references are tracked through their associated AST node. This gives us finer\n // granularity than using their associated target because each manifest type reference has a\n // unique AST node.\n return type.node;\n }\n if (type.symbol && !(ts.getObjectFlags(type) & 16 /* Anonymous */ && type.symbol.flags & 32 /* Class */)) {\n // We track all object types that have an associated symbol (representing the origin of the type), but\n // exclude the static side of classes from this check since it shares its symbol with the instance side.\n return type.symbol;\n }\n if (isTupleType(type)) {\n // Tuple types are tracked through their target type\n return type.target;\n }\n }\n if (type.flags & 262144 /* TypeParameter */) {\n return type.symbol;\n }\n if (type.flags & 8388608 /* IndexedAccess */) {\n // Identity is the leftmost object type in a chain of indexed accesses, eg, in A[P][Q] it is A\n do {\n type = type.objectType;\n } while (type.flags & 8388608 /* IndexedAccess */);\n return type;\n }\n if (type.flags & 16777216 /* Conditional */) {\n // The root object represents the origin of the conditional type\n return type.root;\n }\n return type;\n }\n function isPropertyIdenticalTo(sourceProp, targetProp) {\n return compareProperties(sourceProp, targetProp, compareTypesIdentical) !== 0 /* False */;\n }\n function compareProperties(sourceProp, targetProp, compareTypes) {\n // Two members are considered identical when\n // - they are public properties with identical names, optionality, and types,\n // - they are private or protected properties originating in the same declaration and having identical types\n if (sourceProp === targetProp) {\n return -1 /* True */;\n }\n var sourcePropAccessibility = ts.getDeclarationModifierFlagsFromSymbol(sourceProp) & 24 /* NonPublicAccessibilityModifier */;\n var targetPropAccessibility = ts.getDeclarationModifierFlagsFromSymbol(targetProp) & 24 /* NonPublicAccessibilityModifier */;\n if (sourcePropAccessibility !== targetPropAccessibility) {\n return 0 /* False */;\n }\n if (sourcePropAccessibility) {\n if (getTargetSymbol(sourceProp) !== getTargetSymbol(targetProp)) {\n return 0 /* False */;\n }\n }\n else {\n if ((sourceProp.flags & 16777216 /* Optional */) !== (targetProp.flags & 16777216 /* Optional */)) {\n return 0 /* False */;\n }\n }\n if (isReadonlySymbol(sourceProp) !== isReadonlySymbol(targetProp)) {\n return 0 /* False */;\n }\n return compareTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp));\n }\n function isMatchingSignature(source, target, partialMatch) {\n var sourceParameterCount = getParameterCount(source);\n var targetParameterCount = getParameterCount(target);\n var sourceMinArgumentCount = getMinArgumentCount(source);\n var targetMinArgumentCount = getMinArgumentCount(target);\n var sourceHasRestParameter = hasEffectiveRestParameter(source);\n var targetHasRestParameter = hasEffectiveRestParameter(target);\n // A source signature matches a target signature if the two signatures have the same number of required,\n // optional, and rest parameters.\n if (sourceParameterCount === targetParameterCount &&\n sourceMinArgumentCount === targetMinArgumentCount &&\n sourceHasRestParameter === targetHasRestParameter) {\n return true;\n }\n // A source signature partially matches a target signature if the target signature has no fewer required\n // parameters\n if (partialMatch && sourceMinArgumentCount <= targetMinArgumentCount) {\n return true;\n }\n return false;\n }\n /**\n * See signatureRelatedTo, compareSignaturesIdentical\n */\n function compareSignaturesIdentical(source, target, partialMatch, ignoreThisTypes, ignoreReturnTypes, compareTypes) {\n // TODO (drosen): De-duplicate code between related functions.\n if (source === target) {\n return -1 /* True */;\n }\n if (!(isMatchingSignature(source, target, partialMatch))) {\n return 0 /* False */;\n }\n // Check that the two signatures have the same number of type parameters.\n if (ts.length(source.typeParameters) !== ts.length(target.typeParameters)) {\n return 0 /* False */;\n }\n // Check that type parameter constraints and defaults match. If they do, instantiate the source\n // signature with the type parameters of the target signature and continue the comparison.\n if (target.typeParameters) {\n var mapper = createTypeMapper(source.typeParameters, target.typeParameters);\n for (var i = 0; i < target.typeParameters.length; i++) {\n var s = source.typeParameters[i];\n var t = target.typeParameters[i];\n if (!(s === t || compareTypes(instantiateType(getConstraintFromTypeParameter(s), mapper) || unknownType, getConstraintFromTypeParameter(t) || unknownType) &&\n compareTypes(instantiateType(getDefaultFromTypeParameter(s), mapper) || unknownType, getDefaultFromTypeParameter(t) || unknownType))) {\n return 0 /* False */;\n }\n }\n source = instantiateSignature(source, mapper, /*eraseTypeParameters*/ true);\n }\n var result = -1 /* True */;\n if (!ignoreThisTypes) {\n var sourceThisType = getThisTypeOfSignature(source);\n if (sourceThisType) {\n var targetThisType = getThisTypeOfSignature(target);\n if (targetThisType) {\n var related = compareTypes(sourceThisType, targetThisType);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n }\n }\n var targetLen = getParameterCount(target);\n for (var i = 0; i < targetLen; i++) {\n var s = getTypeAtPosition(source, i);\n var t = getTypeAtPosition(target, i);\n var related = compareTypes(t, s);\n if (!related) {\n return 0 /* False */;\n }\n result &= related;\n }\n if (!ignoreReturnTypes) {\n var sourceTypePredicate = getTypePredicateOfSignature(source);\n var targetTypePredicate = getTypePredicateOfSignature(target);\n result &= sourceTypePredicate || targetTypePredicate ?\n compareTypePredicatesIdentical(sourceTypePredicate, targetTypePredicate, compareTypes) :\n compareTypes(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target));\n }\n return result;\n }\n function compareTypePredicatesIdentical(source, target, compareTypes) {\n return !(source && target && typePredicateKindsMatch(source, target)) ? 0 /* False */ :\n source.type === target.type ? -1 /* True */ :\n source.type && target.type ? compareTypes(source.type, target.type) :\n 0 /* False */;\n }\n function literalTypesWithSameBaseType(types) {\n var commonBaseType;\n for (var _i = 0, types_13 = types; _i < types_13.length; _i++) {\n var t = types_13[_i];\n var baseType = getBaseTypeOfLiteralType(t);\n if (!commonBaseType) {\n commonBaseType = baseType;\n }\n if (baseType === t || baseType !== commonBaseType) {\n return false;\n }\n }\n return true;\n }\n // When the candidate types are all literal types with the same base type, return a union\n // of those literal types. Otherwise, return the leftmost type for which no type to the\n // right is a supertype.\n function getSupertypeOrUnion(types) {\n if (types.length === 1) {\n return types[0];\n }\n return literalTypesWithSameBaseType(types) ?\n getUnionType(types) :\n ts.reduceLeft(types, function (s, t) { return isTypeSubtypeOf(s, t) ? t : s; });\n }\n function getCommonSupertype(types) {\n if (!strictNullChecks) {\n return getSupertypeOrUnion(types);\n }\n var primaryTypes = ts.filter(types, function (t) { return !(t.flags & 98304 /* Nullable */); });\n return primaryTypes.length ?\n getNullableType(getSupertypeOrUnion(primaryTypes), getFalsyFlagsOfTypes(types) & 98304 /* Nullable */) :\n getUnionType(types, 2 /* Subtype */);\n }\n // Return the leftmost type for which no type to the right is a subtype.\n function getCommonSubtype(types) {\n return ts.reduceLeft(types, function (s, t) { return isTypeSubtypeOf(t, s) ? t : s; });\n }\n function isArrayType(type) {\n return !!(ts.getObjectFlags(type) & 4 /* Reference */) && (type.target === globalArrayType || type.target === globalReadonlyArrayType);\n }\n function isReadonlyArrayType(type) {\n return !!(ts.getObjectFlags(type) & 4 /* Reference */) && type.target === globalReadonlyArrayType;\n }\n function isMutableArrayOrTuple(type) {\n return isArrayType(type) && !isReadonlyArrayType(type) || isTupleType(type) && !type.target.readonly;\n }\n function getElementTypeOfArrayType(type) {\n return isArrayType(type) ? getTypeArguments(type)[0] : undefined;\n }\n function isArrayLikeType(type) {\n // A type is array-like if it is a reference to the global Array or global ReadonlyArray type,\n // or if it is not the undefined or null type and if it is assignable to ReadonlyArray\n return isArrayType(type) || !(type.flags & 98304 /* Nullable */) && isTypeAssignableTo(type, anyReadonlyArrayType);\n }\n function getSingleBaseForNonAugmentingSubtype(type) {\n if (!(ts.getObjectFlags(type) & 4 /* Reference */) || !(ts.getObjectFlags(type.target) & 3 /* ClassOrInterface */)) {\n return undefined;\n }\n if (ts.getObjectFlags(type) & 33554432 /* IdenticalBaseTypeCalculated */) {\n return ts.getObjectFlags(type) & 67108864 /* IdenticalBaseTypeExists */ ? type.cachedEquivalentBaseType : undefined;\n }\n type.objectFlags |= 33554432 /* IdenticalBaseTypeCalculated */;\n var target = type.target;\n if (ts.getObjectFlags(target) & 1 /* Class */) {\n var baseTypeNode = getBaseTypeNodeOfClass(target);\n // A base type expression may circularly reference the class itself (e.g. as an argument to function call), so we only\n // check for base types specified as simple qualified names.\n if (baseTypeNode && baseTypeNode.expression.kind !== 79 /* Identifier */ && baseTypeNode.expression.kind !== 204 /* PropertyAccessExpression */) {\n return undefined;\n }\n }\n var bases = getBaseTypes(target);\n if (bases.length !== 1) {\n return undefined;\n }\n if (getMembersOfSymbol(type.symbol).size) {\n return undefined; // If the interface has any members, they may subtype members in the base, so we should do a full structural comparison\n }\n var instantiatedBase = !ts.length(target.typeParameters) ? bases[0] : instantiateType(bases[0], createTypeMapper(target.typeParameters, getTypeArguments(type).slice(0, target.typeParameters.length)));\n if (ts.length(getTypeArguments(type)) > ts.length(target.typeParameters)) {\n instantiatedBase = getTypeWithThisArgument(instantiatedBase, ts.last(getTypeArguments(type)));\n }\n type.objectFlags |= 67108864 /* IdenticalBaseTypeExists */;\n return type.cachedEquivalentBaseType = instantiatedBase;\n }\n function isEmptyLiteralType(type) {\n return strictNullChecks ? type === implicitNeverType : type === undefinedWideningType;\n }\n function isEmptyArrayLiteralType(type) {\n var elementType = getElementTypeOfArrayType(type);\n return !!elementType && isEmptyLiteralType(elementType);\n }\n function isTupleLikeType(type) {\n return isTupleType(type) || !!getPropertyOfType(type, \"0\");\n }\n function isArrayOrTupleLikeType(type) {\n return isArrayLikeType(type) || isTupleLikeType(type);\n }\n function getTupleElementType(type, index) {\n var propType = getTypeOfPropertyOfType(type, \"\" + index);\n if (propType) {\n return propType;\n }\n if (everyType(type, isTupleType)) {\n return mapType(type, function (t) { return getRestTypeOfTupleType(t) || undefinedType; });\n }\n return undefined;\n }\n function isNeitherUnitTypeNorNever(type) {\n return !(type.flags & (109440 /* Unit */ | 131072 /* Never */));\n }\n function isUnitType(type) {\n return !!(type.flags & 109440 /* Unit */);\n }\n function isUnitLikeType(type) {\n return type.flags & 2097152 /* Intersection */ ? ts.some(type.types, isUnitType) :\n !!(type.flags & 109440 /* Unit */);\n }\n function extractUnitType(type) {\n return type.flags & 2097152 /* Intersection */ ? ts.find(type.types, isUnitType) || type : type;\n }\n function isLiteralType(type) {\n return type.flags & 16 /* Boolean */ ? true :\n type.flags & 1048576 /* Union */ ? type.flags & 1024 /* EnumLiteral */ ? true : ts.every(type.types, isUnitType) :\n isUnitType(type);\n }\n function getBaseTypeOfLiteralType(type) {\n return type.flags & 1024 /* EnumLiteral */ ? getBaseTypeOfEnumLiteralType(type) :\n type.flags & 128 /* StringLiteral */ ? stringType :\n type.flags & 256 /* NumberLiteral */ ? numberType :\n type.flags & 2048 /* BigIntLiteral */ ? bigintType :\n type.flags & 512 /* BooleanLiteral */ ? booleanType :\n type.flags & 1048576 /* Union */ ? mapType(type, getBaseTypeOfLiteralType) :\n type;\n }\n function getWidenedLiteralType(type) {\n return type.flags & 1024 /* EnumLiteral */ && isFreshLiteralType(type) ? getBaseTypeOfEnumLiteralType(type) :\n type.flags & 128 /* StringLiteral */ && isFreshLiteralType(type) ? stringType :\n type.flags & 256 /* NumberLiteral */ && isFreshLiteralType(type) ? numberType :\n type.flags & 2048 /* BigIntLiteral */ && isFreshLiteralType(type) ? bigintType :\n type.flags & 512 /* BooleanLiteral */ && isFreshLiteralType(type) ? booleanType :\n type.flags & 1048576 /* Union */ ? mapType(type, getWidenedLiteralType) :\n type;\n }\n function getWidenedUniqueESSymbolType(type) {\n return type.flags & 8192 /* UniqueESSymbol */ ? esSymbolType :\n type.flags & 1048576 /* Union */ ? mapType(type, getWidenedUniqueESSymbolType) :\n type;\n }\n function getWidenedLiteralLikeTypeForContextualType(type, contextualType) {\n if (!isLiteralOfContextualType(type, contextualType)) {\n type = getWidenedUniqueESSymbolType(getWidenedLiteralType(type));\n }\n return type;\n }\n function getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(type, contextualSignatureReturnType, isAsync) {\n if (type && isUnitType(type)) {\n var contextualType = !contextualSignatureReturnType ? undefined :\n isAsync ? getPromisedTypeOfPromise(contextualSignatureReturnType) :\n contextualSignatureReturnType;\n type = getWidenedLiteralLikeTypeForContextualType(type, contextualType);\n }\n return type;\n }\n function getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(type, contextualSignatureReturnType, kind, isAsyncGenerator) {\n if (type && isUnitType(type)) {\n var contextualType = !contextualSignatureReturnType ? undefined :\n getIterationTypeOfGeneratorFunctionReturnType(kind, contextualSignatureReturnType, isAsyncGenerator);\n type = getWidenedLiteralLikeTypeForContextualType(type, contextualType);\n }\n return type;\n }\n /**\n * Check if a Type was written as a tuple type literal.\n * Prefer using isTupleLikeType() unless the use of `elementTypes`/`getTypeArguments` is required.\n */\n function isTupleType(type) {\n return !!(ts.getObjectFlags(type) & 4 /* Reference */ && type.target.objectFlags & 8 /* Tuple */);\n }\n function isGenericTupleType(type) {\n return isTupleType(type) && !!(type.target.combinedFlags & 8 /* Variadic */);\n }\n function isSingleElementGenericTupleType(type) {\n return isGenericTupleType(type) && type.target.elementFlags.length === 1;\n }\n function getRestTypeOfTupleType(type) {\n return getElementTypeOfSliceOfTupleType(type, type.target.fixedLength);\n }\n function getRestArrayTypeOfTupleType(type) {\n var restType = getRestTypeOfTupleType(type);\n return restType && createArrayType(restType);\n }\n function getElementTypeOfSliceOfTupleType(type, index, endSkipCount, writing) {\n if (endSkipCount === void 0) { endSkipCount = 0; }\n if (writing === void 0) { writing = false; }\n var length = getTypeReferenceArity(type) - endSkipCount;\n if (index < length) {\n var typeArguments = getTypeArguments(type);\n var elementTypes = [];\n for (var i = index; i < length; i++) {\n var t = typeArguments[i];\n elementTypes.push(type.target.elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessType(t, numberType) : t);\n }\n return writing ? getIntersectionType(elementTypes) : getUnionType(elementTypes);\n }\n return undefined;\n }\n function isTupleTypeStructureMatching(t1, t2) {\n return getTypeReferenceArity(t1) === getTypeReferenceArity(t2) &&\n ts.every(t1.target.elementFlags, function (f, i) { return (f & 12 /* Variable */) === (t2.target.elementFlags[i] & 12 /* Variable */); });\n }\n function isZeroBigInt(_a) {\n var value = _a.value;\n return value.base10Value === \"0\";\n }\n function getFalsyFlagsOfTypes(types) {\n var result = 0;\n for (var _i = 0, types_14 = types; _i < types_14.length; _i++) {\n var t = types_14[_i];\n result |= getFalsyFlags(t);\n }\n return result;\n }\n // Returns the String, Number, Boolean, StringLiteral, NumberLiteral, BooleanLiteral, Void, Undefined, or Null\n // flags for the string, number, boolean, \"\", 0, false, void, undefined, or null types respectively. Returns\n // no flags for all other types (including non-falsy literal types).\n function getFalsyFlags(type) {\n return type.flags & 1048576 /* Union */ ? getFalsyFlagsOfTypes(type.types) :\n type.flags & 128 /* StringLiteral */ ? type.value === \"\" ? 128 /* StringLiteral */ : 0 :\n type.flags & 256 /* NumberLiteral */ ? type.value === 0 ? 256 /* NumberLiteral */ : 0 :\n type.flags & 2048 /* BigIntLiteral */ ? isZeroBigInt(type) ? 2048 /* BigIntLiteral */ : 0 :\n type.flags & 512 /* BooleanLiteral */ ? (type === falseType || type === regularFalseType) ? 512 /* BooleanLiteral */ : 0 :\n type.flags & 117724 /* PossiblyFalsy */;\n }\n function removeDefinitelyFalsyTypes(type) {\n return getFalsyFlags(type) & 117632 /* DefinitelyFalsy */ ?\n filterType(type, function (t) { return !(getFalsyFlags(t) & 117632 /* DefinitelyFalsy */); }) :\n type;\n }\n function extractDefinitelyFalsyTypes(type) {\n return mapType(type, getDefinitelyFalsyPartOfType);\n }\n function getDefinitelyFalsyPartOfType(type) {\n return type.flags & 4 /* String */ ? emptyStringType :\n type.flags & 8 /* Number */ ? zeroType :\n type.flags & 64 /* BigInt */ ? zeroBigIntType :\n type === regularFalseType ||\n type === falseType ||\n type.flags & (16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */ | 3 /* AnyOrUnknown */) ||\n type.flags & 128 /* StringLiteral */ && type.value === \"\" ||\n type.flags & 256 /* NumberLiteral */ && type.value === 0 ||\n type.flags & 2048 /* BigIntLiteral */ && isZeroBigInt(type) ? type :\n neverType;\n }\n /**\n * Add undefined or null or both to a type if they are missing.\n * @param type - type to add undefined and/or null to if not present\n * @param flags - Either TypeFlags.Undefined or TypeFlags.Null, or both\n */\n function getNullableType(type, flags) {\n var missing = (flags & ~type.flags) & (32768 /* Undefined */ | 65536 /* Null */);\n return missing === 0 ? type :\n missing === 32768 /* Undefined */ ? getUnionType([type, undefinedType]) :\n missing === 65536 /* Null */ ? getUnionType([type, nullType]) :\n getUnionType([type, undefinedType, nullType]);\n }\n function getOptionalType(type, isProperty) {\n if (isProperty === void 0) { isProperty = false; }\n ts.Debug.assert(strictNullChecks);\n return type.flags & 32768 /* Undefined */ ? type : getUnionType([type, isProperty ? missingType : undefinedType]);\n }\n function getGlobalNonNullableTypeInstantiation(type) {\n // First reduce away any constituents that are assignable to 'undefined' or 'null'. This not only eliminates\n // 'undefined' and 'null', but also higher-order types such as a type parameter 'U extends undefined | null'\n // that isn't eliminated by a NonNullable instantiation.\n var reducedType = getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */);\n if (!deferredGlobalNonNullableTypeAlias) {\n deferredGlobalNonNullableTypeAlias = getGlobalSymbol(\"NonNullable\", 524288 /* TypeAlias */, /*diagnostic*/ undefined) || unknownSymbol;\n }\n // If the NonNullable type is available, return an instantiation. Otherwise just return the reduced type.\n return deferredGlobalNonNullableTypeAlias !== unknownSymbol ?\n getTypeAliasInstantiation(deferredGlobalNonNullableTypeAlias, [reducedType]) :\n reducedType;\n }\n function getNonNullableType(type) {\n return strictNullChecks ? getGlobalNonNullableTypeInstantiation(type) : type;\n }\n function addOptionalTypeMarker(type) {\n return strictNullChecks ? getUnionType([type, optionalType]) : type;\n }\n function removeOptionalTypeMarker(type) {\n return strictNullChecks ? removeType(type, optionalType) : type;\n }\n function propagateOptionalTypeMarker(type, node, wasOptional) {\n return wasOptional ? ts.isOutermostOptionalChain(node) ? getOptionalType(type) : addOptionalTypeMarker(type) : type;\n }\n function getOptionalExpressionType(exprType, expression) {\n return ts.isExpressionOfOptionalChainRoot(expression) ? getNonNullableType(exprType) :\n ts.isOptionalChain(expression) ? removeOptionalTypeMarker(exprType) :\n exprType;\n }\n function removeMissingType(type, isOptional) {\n return exactOptionalPropertyTypes && isOptional ? removeType(type, missingType) : type;\n }\n function containsMissingType(type) {\n return exactOptionalPropertyTypes && (type === missingType || type.flags & 1048576 /* Union */ && containsType(type.types, missingType));\n }\n function removeMissingOrUndefinedType(type) {\n return exactOptionalPropertyTypes ? removeType(type, missingType) : getTypeWithFacts(type, 524288 /* NEUndefined */);\n }\n /**\n * Is source potentially coercible to target type under `==`.\n * Assumes that `source` is a constituent of a union, hence\n * the boolean literal flag on the LHS, but not on the RHS.\n *\n * This does not fully replicate the semantics of `==`. The\n * intention is to catch cases that are clearly not right.\n *\n * Comparing (string | number) to number should not remove the\n * string element.\n *\n * Comparing (string | number) to 1 will remove the string\n * element, though this is not sound. This is a pragmatic\n * choice.\n *\n * @see narrowTypeByEquality\n *\n * @param source\n * @param target\n */\n function isCoercibleUnderDoubleEquals(source, target) {\n return ((source.flags & (8 /* Number */ | 4 /* String */ | 512 /* BooleanLiteral */)) !== 0)\n && ((target.flags & (8 /* Number */ | 4 /* String */ | 16 /* Boolean */)) !== 0);\n }\n /**\n * Return true if type was inferred from an object literal, written as an object type literal, or is the shape of a module\n * with no call or construct signatures.\n */\n function isObjectTypeWithInferableIndex(type) {\n return type.flags & 2097152 /* Intersection */ ? ts.every(type.types, isObjectTypeWithInferableIndex) :\n !!(type.symbol && (type.symbol.flags & (4096 /* ObjectLiteral */ | 2048 /* TypeLiteral */ | 384 /* Enum */ | 512 /* ValueModule */)) !== 0 &&\n !typeHasCallOrConstructSignatures(type)) || !!(ts.getObjectFlags(type) & 1024 /* ReverseMapped */ && isObjectTypeWithInferableIndex(type.source));\n }\n function createSymbolWithType(source, type) {\n var symbol = createSymbol(source.flags, source.escapedName, ts.getCheckFlags(source) & 8 /* Readonly */);\n symbol.declarations = source.declarations;\n symbol.parent = source.parent;\n symbol.type = type;\n symbol.target = source;\n if (source.valueDeclaration) {\n symbol.valueDeclaration = source.valueDeclaration;\n }\n var nameType = getSymbolLinks(source).nameType;\n if (nameType) {\n symbol.nameType = nameType;\n }\n return symbol;\n }\n function transformTypeOfMembers(type, f) {\n var members = ts.createSymbolTable();\n for (var _i = 0, _a = getPropertiesOfObjectType(type); _i < _a.length; _i++) {\n var property = _a[_i];\n var original = getTypeOfSymbol(property);\n var updated = f(original);\n members.set(property.escapedName, updated === original ? property : createSymbolWithType(property, updated));\n }\n return members;\n }\n /**\n * If the the provided object literal is subject to the excess properties check,\n * create a new that is exempt. Recursively mark object literal members as exempt.\n * Leave signatures alone since they are not subject to the check.\n */\n function getRegularTypeOfObjectLiteral(type) {\n if (!(isObjectLiteralType(type) && ts.getObjectFlags(type) & 16384 /* FreshLiteral */)) {\n return type;\n }\n var regularType = type.regularType;\n if (regularType) {\n return regularType;\n }\n var resolved = type;\n var members = transformTypeOfMembers(type, getRegularTypeOfObjectLiteral);\n var regularNew = createAnonymousType(resolved.symbol, members, resolved.callSignatures, resolved.constructSignatures, resolved.indexInfos);\n regularNew.flags = resolved.flags;\n regularNew.objectFlags |= resolved.objectFlags & ~16384 /* FreshLiteral */;\n type.regularType = regularNew;\n return regularNew;\n }\n function createWideningContext(parent, propertyName, siblings) {\n return { parent: parent, propertyName: propertyName, siblings: siblings, resolvedProperties: undefined };\n }\n function getSiblingsOfContext(context) {\n if (!context.siblings) {\n var siblings_1 = [];\n for (var _i = 0, _a = getSiblingsOfContext(context.parent); _i < _a.length; _i++) {\n var type = _a[_i];\n if (isObjectLiteralType(type)) {\n var prop = getPropertyOfObjectType(type, context.propertyName);\n if (prop) {\n forEachType(getTypeOfSymbol(prop), function (t) {\n siblings_1.push(t);\n });\n }\n }\n }\n context.siblings = siblings_1;\n }\n return context.siblings;\n }\n function getPropertiesOfContext(context) {\n if (!context.resolvedProperties) {\n var names = new ts.Map();\n for (var _i = 0, _a = getSiblingsOfContext(context); _i < _a.length; _i++) {\n var t = _a[_i];\n if (isObjectLiteralType(t) && !(ts.getObjectFlags(t) & 4194304 /* ContainsSpread */)) {\n for (var _b = 0, _c = getPropertiesOfType(t); _b < _c.length; _b++) {\n var prop = _c[_b];\n names.set(prop.escapedName, prop);\n }\n }\n }\n context.resolvedProperties = ts.arrayFrom(names.values());\n }\n return context.resolvedProperties;\n }\n function getWidenedProperty(prop, context) {\n if (!(prop.flags & 4 /* Property */)) {\n // Since get accessors already widen their return value there is no need to\n // widen accessor based properties here.\n return prop;\n }\n var original = getTypeOfSymbol(prop);\n var propContext = context && createWideningContext(context, prop.escapedName, /*siblings*/ undefined);\n var widened = getWidenedTypeWithContext(original, propContext);\n return widened === original ? prop : createSymbolWithType(prop, widened);\n }\n function getUndefinedProperty(prop) {\n var cached = undefinedProperties.get(prop.escapedName);\n if (cached) {\n return cached;\n }\n var result = createSymbolWithType(prop, missingType);\n result.flags |= 16777216 /* Optional */;\n undefinedProperties.set(prop.escapedName, result);\n return result;\n }\n function getWidenedTypeOfObjectLiteral(type, context) {\n var members = ts.createSymbolTable();\n for (var _i = 0, _a = getPropertiesOfObjectType(type); _i < _a.length; _i++) {\n var prop = _a[_i];\n members.set(prop.escapedName, getWidenedProperty(prop, context));\n }\n if (context) {\n for (var _b = 0, _c = getPropertiesOfContext(context); _b < _c.length; _b++) {\n var prop = _c[_b];\n if (!members.has(prop.escapedName)) {\n members.set(prop.escapedName, getUndefinedProperty(prop));\n }\n }\n }\n var result = createAnonymousType(type.symbol, members, ts.emptyArray, ts.emptyArray, ts.sameMap(getIndexInfosOfType(type), function (info) { return createIndexInfo(info.keyType, getWidenedType(info.type), info.isReadonly); }));\n result.objectFlags |= (ts.getObjectFlags(type) & (8192 /* JSLiteral */ | 524288 /* NonInferrableType */)); // Retain js literal flag through widening\n return result;\n }\n function getWidenedType(type) {\n return getWidenedTypeWithContext(type, /*context*/ undefined);\n }\n function getWidenedTypeWithContext(type, context) {\n if (ts.getObjectFlags(type) & 393216 /* RequiresWidening */) {\n if (context === undefined && type.widened) {\n return type.widened;\n }\n var result = void 0;\n if (type.flags & (1 /* Any */ | 98304 /* Nullable */)) {\n result = anyType;\n }\n else if (isObjectLiteralType(type)) {\n result = getWidenedTypeOfObjectLiteral(type, context);\n }\n else if (type.flags & 1048576 /* Union */) {\n var unionContext_1 = context || createWideningContext(/*parent*/ undefined, /*propertyName*/ undefined, type.types);\n var widenedTypes = ts.sameMap(type.types, function (t) { return t.flags & 98304 /* Nullable */ ? t : getWidenedTypeWithContext(t, unionContext_1); });\n // Widening an empty object literal transitions from a highly restrictive type to\n // a highly inclusive one. For that reason we perform subtype reduction here if the\n // union includes empty object types (e.g. reducing {} | string to just {}).\n result = getUnionType(widenedTypes, ts.some(widenedTypes, isEmptyObjectType) ? 2 /* Subtype */ : 1 /* Literal */);\n }\n else if (type.flags & 2097152 /* Intersection */) {\n result = getIntersectionType(ts.sameMap(type.types, getWidenedType));\n }\n else if (isArrayType(type) || isTupleType(type)) {\n result = createTypeReference(type.target, ts.sameMap(getTypeArguments(type), getWidenedType));\n }\n if (result && context === undefined) {\n type.widened = result;\n }\n return result || type;\n }\n return type;\n }\n /**\n * Reports implicit any errors that occur as a result of widening 'null' and 'undefined'\n * to 'any'. A call to reportWideningErrorsInType is normally accompanied by a call to\n * getWidenedType. But in some cases getWidenedType is called without reporting errors\n * (type argument inference is an example).\n *\n * The return value indicates whether an error was in fact reported. The particular circumstances\n * are on a best effort basis. Currently, if the null or undefined that causes widening is inside\n * an object literal property (arbitrarily deeply), this function reports an error. If no error is\n * reported, reportImplicitAnyError is a suitable fallback to report a general error.\n */\n function reportWideningErrorsInType(type) {\n var errorReported = false;\n if (ts.getObjectFlags(type) & 131072 /* ContainsWideningType */) {\n if (type.flags & 1048576 /* Union */) {\n if (ts.some(type.types, isEmptyObjectType)) {\n errorReported = true;\n }\n else {\n for (var _i = 0, _a = type.types; _i < _a.length; _i++) {\n var t = _a[_i];\n if (reportWideningErrorsInType(t)) {\n errorReported = true;\n }\n }\n }\n }\n if (isArrayType(type) || isTupleType(type)) {\n for (var _b = 0, _c = getTypeArguments(type); _b < _c.length; _b++) {\n var t = _c[_b];\n if (reportWideningErrorsInType(t)) {\n errorReported = true;\n }\n }\n }\n if (isObjectLiteralType(type)) {\n for (var _d = 0, _e = getPropertiesOfObjectType(type); _d < _e.length; _d++) {\n var p = _e[_d];\n var t = getTypeOfSymbol(p);\n if (ts.getObjectFlags(t) & 131072 /* ContainsWideningType */) {\n if (!reportWideningErrorsInType(t)) {\n error(p.valueDeclaration, ts.Diagnostics.Object_literal_s_property_0_implicitly_has_an_1_type, symbolToString(p), typeToString(getWidenedType(t)));\n }\n errorReported = true;\n }\n }\n }\n }\n return errorReported;\n }\n function reportImplicitAny(declaration, type, wideningKind) {\n var typeAsString = typeToString(getWidenedType(type));\n if (ts.isInJSFile(declaration) && !ts.isCheckJsEnabledForFile(ts.getSourceFileOfNode(declaration), compilerOptions)) {\n // Only report implicit any errors/suggestions in TS and ts-check JS files\n return;\n }\n var diagnostic;\n switch (declaration.kind) {\n case 219 /* BinaryExpression */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n diagnostic = noImplicitAny ? ts.Diagnostics.Member_0_implicitly_has_an_1_type : ts.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;\n break;\n case 162 /* Parameter */:\n var param = declaration;\n if (ts.isIdentifier(param.name) &&\n (ts.isCallSignatureDeclaration(param.parent) || ts.isMethodSignature(param.parent) || ts.isFunctionTypeNode(param.parent)) &&\n param.parent.parameters.indexOf(param) > -1 &&\n (resolveName(param, param.name.escapedText, 788968 /* Type */, undefined, param.name.escapedText, /*isUse*/ true) ||\n param.name.originalKeywordKind && ts.isTypeNodeKind(param.name.originalKeywordKind))) {\n var newName = \"arg\" + param.parent.parameters.indexOf(param);\n errorOrSuggestion(noImplicitAny, declaration, ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1, newName, ts.declarationNameToString(param.name));\n return;\n }\n diagnostic = declaration.dotDotDotToken ?\n noImplicitAny ? ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type : ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage :\n noImplicitAny ? ts.Diagnostics.Parameter_0_implicitly_has_an_1_type : ts.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;\n break;\n case 201 /* BindingElement */:\n diagnostic = ts.Diagnostics.Binding_element_0_implicitly_has_an_1_type;\n if (!noImplicitAny) {\n // Don't issue a suggestion for binding elements since the codefix doesn't yet support them.\n return;\n }\n break;\n case 312 /* JSDocFunctionType */:\n error(declaration, ts.Diagnostics.Function_type_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString);\n return;\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n if (noImplicitAny && !declaration.name) {\n if (wideningKind === 3 /* GeneratorYield */) {\n error(declaration, ts.Diagnostics.Generator_implicitly_has_yield_type_0_because_it_does_not_yield_any_values_Consider_supplying_a_return_type_annotation, typeAsString);\n }\n else {\n error(declaration, ts.Diagnostics.Function_expression_which_lacks_return_type_annotation_implicitly_has_an_0_return_type, typeAsString);\n }\n return;\n }\n diagnostic = !noImplicitAny ? ts.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage :\n wideningKind === 3 /* GeneratorYield */ ? ts.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_yield_type :\n ts.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type;\n break;\n case 193 /* MappedType */:\n if (noImplicitAny) {\n error(declaration, ts.Diagnostics.Mapped_object_type_implicitly_has_an_any_template_type);\n }\n return;\n default:\n diagnostic = noImplicitAny ? ts.Diagnostics.Variable_0_implicitly_has_an_1_type : ts.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage;\n }\n errorOrSuggestion(noImplicitAny, declaration, diagnostic, ts.declarationNameToString(ts.getNameOfDeclaration(declaration)), typeAsString);\n }\n function reportErrorsFromWidening(declaration, type, wideningKind) {\n if (produceDiagnostics && noImplicitAny && ts.getObjectFlags(type) & 131072 /* ContainsWideningType */ && (!wideningKind || !getContextualSignatureForFunctionLikeDeclaration(declaration))) {\n // Report implicit any error within type if possible, otherwise report error on declaration\n if (!reportWideningErrorsInType(type)) {\n reportImplicitAny(declaration, type, wideningKind);\n }\n }\n }\n function applyToParameterTypes(source, target, callback) {\n var sourceCount = getParameterCount(source);\n var targetCount = getParameterCount(target);\n var sourceRestType = getEffectiveRestType(source);\n var targetRestType = getEffectiveRestType(target);\n var targetNonRestCount = targetRestType ? targetCount - 1 : targetCount;\n var paramCount = sourceRestType ? targetNonRestCount : Math.min(sourceCount, targetNonRestCount);\n var sourceThisType = getThisTypeOfSignature(source);\n if (sourceThisType) {\n var targetThisType = getThisTypeOfSignature(target);\n if (targetThisType) {\n callback(sourceThisType, targetThisType);\n }\n }\n for (var i = 0; i < paramCount; i++) {\n callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i));\n }\n if (targetRestType) {\n callback(getRestTypeAtPosition(source, paramCount), targetRestType);\n }\n }\n function applyToReturnTypes(source, target, callback) {\n var sourceTypePredicate = getTypePredicateOfSignature(source);\n var targetTypePredicate = getTypePredicateOfSignature(target);\n if (sourceTypePredicate && targetTypePredicate && typePredicateKindsMatch(sourceTypePredicate, targetTypePredicate) && sourceTypePredicate.type && targetTypePredicate.type) {\n callback(sourceTypePredicate.type, targetTypePredicate.type);\n }\n else {\n callback(getReturnTypeOfSignature(source), getReturnTypeOfSignature(target));\n }\n }\n function createInferenceContext(typeParameters, signature, flags, compareTypes) {\n return createInferenceContextWorker(typeParameters.map(createInferenceInfo), signature, flags, compareTypes || compareTypesAssignable);\n }\n function cloneInferenceContext(context, extraFlags) {\n if (extraFlags === void 0) { extraFlags = 0; }\n return context && createInferenceContextWorker(ts.map(context.inferences, cloneInferenceInfo), context.signature, context.flags | extraFlags, context.compareTypes);\n }\n function createInferenceContextWorker(inferences, signature, flags, compareTypes) {\n var context = {\n inferences: inferences,\n signature: signature,\n flags: flags,\n compareTypes: compareTypes,\n mapper: makeFunctionTypeMapper(function (t) { return mapToInferredType(context, t, /*fix*/ true); }),\n nonFixingMapper: makeFunctionTypeMapper(function (t) { return mapToInferredType(context, t, /*fix*/ false); }),\n };\n return context;\n }\n function mapToInferredType(context, t, fix) {\n var inferences = context.inferences;\n for (var i = 0; i < inferences.length; i++) {\n var inference = inferences[i];\n if (t === inference.typeParameter) {\n if (fix && !inference.isFixed) {\n clearCachedInferences(inferences);\n inference.isFixed = true;\n }\n return getInferredType(context, i);\n }\n }\n return t;\n }\n function clearCachedInferences(inferences) {\n for (var _i = 0, inferences_1 = inferences; _i < inferences_1.length; _i++) {\n var inference = inferences_1[_i];\n if (!inference.isFixed) {\n inference.inferredType = undefined;\n }\n }\n }\n function createInferenceInfo(typeParameter) {\n return {\n typeParameter: typeParameter,\n candidates: undefined,\n contraCandidates: undefined,\n inferredType: undefined,\n priority: undefined,\n topLevel: true,\n isFixed: false,\n impliedArity: undefined\n };\n }\n function cloneInferenceInfo(inference) {\n return {\n typeParameter: inference.typeParameter,\n candidates: inference.candidates && inference.candidates.slice(),\n contraCandidates: inference.contraCandidates && inference.contraCandidates.slice(),\n inferredType: inference.inferredType,\n priority: inference.priority,\n topLevel: inference.topLevel,\n isFixed: inference.isFixed,\n impliedArity: inference.impliedArity\n };\n }\n function cloneInferredPartOfContext(context) {\n var inferences = ts.filter(context.inferences, hasInferenceCandidates);\n return inferences.length ?\n createInferenceContextWorker(ts.map(inferences, cloneInferenceInfo), context.signature, context.flags, context.compareTypes) :\n undefined;\n }\n function getMapperFromContext(context) {\n return context && context.mapper;\n }\n // Return true if the given type could possibly reference a type parameter for which\n // we perform type inference (i.e. a type parameter of a generic function). We cache\n // results for union and intersection types for performance reasons.\n function couldContainTypeVariables(type) {\n var objectFlags = ts.getObjectFlags(type);\n if (objectFlags & 1048576 /* CouldContainTypeVariablesComputed */) {\n return !!(objectFlags & 2097152 /* CouldContainTypeVariables */);\n }\n var result = !!(type.flags & 465829888 /* Instantiable */ ||\n type.flags & 524288 /* Object */ && !isNonGenericTopLevelType(type) && (objectFlags & 4 /* Reference */ && (type.node || ts.forEach(getTypeArguments(type), couldContainTypeVariables)) ||\n objectFlags & 16 /* Anonymous */ && type.symbol && type.symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 2048 /* TypeLiteral */ | 4096 /* ObjectLiteral */) && type.symbol.declarations ||\n objectFlags & (32 /* Mapped */ | 1024 /* ReverseMapped */ | 8388608 /* ObjectRestType */)) ||\n type.flags & 3145728 /* UnionOrIntersection */ && !(type.flags & 1024 /* EnumLiteral */) && !isNonGenericTopLevelType(type) && ts.some(type.types, couldContainTypeVariables));\n if (type.flags & 3899393 /* ObjectFlagsType */) {\n type.objectFlags |= 1048576 /* CouldContainTypeVariablesComputed */ | (result ? 2097152 /* CouldContainTypeVariables */ : 0);\n }\n return result;\n }\n function isNonGenericTopLevelType(type) {\n if (type.aliasSymbol && !type.aliasTypeArguments) {\n var declaration = ts.getDeclarationOfKind(type.aliasSymbol, 257 /* TypeAliasDeclaration */);\n return !!(declaration && ts.findAncestor(declaration.parent, function (n) { return n.kind === 300 /* SourceFile */ ? true : n.kind === 259 /* ModuleDeclaration */ ? false : \"quit\"; }));\n }\n return false;\n }\n function isTypeParameterAtTopLevel(type, typeParameter) {\n return !!(type === typeParameter ||\n type.flags & 3145728 /* UnionOrIntersection */ && ts.some(type.types, function (t) { return isTypeParameterAtTopLevel(t, typeParameter); }) ||\n type.flags & 16777216 /* Conditional */ && (getTrueTypeFromConditionalType(type) === typeParameter || getFalseTypeFromConditionalType(type) === typeParameter));\n }\n /** Create an object with properties named in the string literal type. Every property has type `any` */\n function createEmptyObjectTypeFromStringLiteral(type) {\n var members = ts.createSymbolTable();\n forEachType(type, function (t) {\n if (!(t.flags & 128 /* StringLiteral */)) {\n return;\n }\n var name = ts.escapeLeadingUnderscores(t.value);\n var literalProp = createSymbol(4 /* Property */, name);\n literalProp.type = anyType;\n if (t.symbol) {\n literalProp.declarations = t.symbol.declarations;\n literalProp.valueDeclaration = t.symbol.valueDeclaration;\n }\n members.set(name, literalProp);\n });\n var indexInfos = type.flags & 4 /* String */ ? [createIndexInfo(stringType, emptyObjectType, /*isReadonly*/ false)] : ts.emptyArray;\n return createAnonymousType(undefined, members, ts.emptyArray, ts.emptyArray, indexInfos);\n }\n /**\n * Infer a suitable input type for a homomorphic mapped type { [P in keyof T]: X }. We construct\n * an object type with the same set of properties as the source type, where the type of each\n * property is computed by inferring from the source property type to X for the type\n * variable T[P] (i.e. we treat the type T[P] as the type variable we're inferring for).\n */\n function inferTypeForHomomorphicMappedType(source, target, constraint) {\n if (inInferTypeForHomomorphicMappedType) {\n return undefined;\n }\n var key = source.id + \",\" + target.id + \",\" + constraint.id;\n if (reverseMappedCache.has(key)) {\n return reverseMappedCache.get(key);\n }\n inInferTypeForHomomorphicMappedType = true;\n var type = createReverseMappedType(source, target, constraint);\n inInferTypeForHomomorphicMappedType = false;\n reverseMappedCache.set(key, type);\n return type;\n }\n // We consider a type to be partially inferable if it isn't marked non-inferable or if it is\n // an object literal type with at least one property of an inferable type. For example, an object\n // literal { a: 123, b: x => true } is marked non-inferable because it contains a context sensitive\n // arrow function, but is considered partially inferable because property 'a' has an inferable type.\n function isPartiallyInferableType(type) {\n return !(ts.getObjectFlags(type) & 524288 /* NonInferrableType */) ||\n isObjectLiteralType(type) && ts.some(getPropertiesOfType(type), function (prop) { return isPartiallyInferableType(getTypeOfSymbol(prop)); }) ||\n isTupleType(type) && ts.some(getTypeArguments(type), isPartiallyInferableType);\n }\n function createReverseMappedType(source, target, constraint) {\n // We consider a source type reverse mappable if it has a string index signature or if\n // it has one or more properties and is of a partially inferable type.\n if (!(getIndexInfoOfType(source, stringType) || getPropertiesOfType(source).length !== 0 && isPartiallyInferableType(source))) {\n return undefined;\n }\n // For arrays and tuples we infer new arrays and tuples where the reverse mapping has been\n // applied to the element type(s).\n if (isArrayType(source)) {\n return createArrayType(inferReverseMappedType(getTypeArguments(source)[0], target, constraint), isReadonlyArrayType(source));\n }\n if (isTupleType(source)) {\n var elementTypes = ts.map(getTypeArguments(source), function (t) { return inferReverseMappedType(t, target, constraint); });\n var elementFlags = getMappedTypeModifiers(target) & 4 /* IncludeOptional */ ?\n ts.sameMap(source.target.elementFlags, function (f) { return f & 2 /* Optional */ ? 1 /* Required */ : f; }) :\n source.target.elementFlags;\n return createTupleType(elementTypes, elementFlags, source.target.readonly, source.target.labeledElementDeclarations);\n }\n // For all other object types we infer a new object type where the reverse mapping has been\n // applied to the type of each property.\n var reversed = createObjectType(1024 /* ReverseMapped */ | 16 /* Anonymous */, /*symbol*/ undefined);\n reversed.source = source;\n reversed.mappedType = target;\n reversed.constraintType = constraint;\n return reversed;\n }\n function getTypeOfReverseMappedSymbol(symbol) {\n var links = getSymbolLinks(symbol);\n if (!links.type) {\n links.type = inferReverseMappedType(symbol.propertyType, symbol.mappedType, symbol.constraintType);\n }\n return links.type;\n }\n function inferReverseMappedType(sourceType, target, constraint) {\n var typeParameter = getIndexedAccessType(constraint.type, getTypeParameterFromMappedType(target));\n var templateType = getTemplateTypeFromMappedType(target);\n var inference = createInferenceInfo(typeParameter);\n inferTypes([inference], sourceType, templateType);\n return getTypeFromInference(inference) || unknownType;\n }\n function getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties) {\n var properties, _i, properties_2, targetProp, sourceProp, targetType, sourceType;\n return __generator(this, function (_a) {\n switch (_a.label) {\n case 0:\n properties = getPropertiesOfType(target);\n _i = 0, properties_2 = properties;\n _a.label = 1;\n case 1:\n if (!(_i < properties_2.length)) return [3 /*break*/, 6];\n targetProp = properties_2[_i];\n // TODO: remove this when we support static private identifier fields and find other solutions to get privateNamesAndStaticFields test to pass\n if (isStaticPrivateIdentifierProperty(targetProp)) {\n return [3 /*break*/, 5];\n }\n if (!(requireOptionalProperties || !(targetProp.flags & 16777216 /* Optional */ || ts.getCheckFlags(targetProp) & 48 /* Partial */))) return [3 /*break*/, 5];\n sourceProp = getPropertyOfType(source, targetProp.escapedName);\n if (!!sourceProp) return [3 /*break*/, 3];\n return [4 /*yield*/, targetProp];\n case 2:\n _a.sent();\n return [3 /*break*/, 5];\n case 3:\n if (!matchDiscriminantProperties) return [3 /*break*/, 5];\n targetType = getTypeOfSymbol(targetProp);\n if (!(targetType.flags & 109440 /* Unit */)) return [3 /*break*/, 5];\n sourceType = getTypeOfSymbol(sourceProp);\n if (!!(sourceType.flags & 1 /* Any */ || getRegularTypeOfLiteralType(sourceType) === getRegularTypeOfLiteralType(targetType))) return [3 /*break*/, 5];\n return [4 /*yield*/, targetProp];\n case 4:\n _a.sent();\n _a.label = 5;\n case 5:\n _i++;\n return [3 /*break*/, 1];\n case 6: return [2 /*return*/];\n }\n });\n }\n function getUnmatchedProperty(source, target, requireOptionalProperties, matchDiscriminantProperties) {\n var result = getUnmatchedProperties(source, target, requireOptionalProperties, matchDiscriminantProperties).next();\n if (!result.done)\n return result.value;\n }\n function tupleTypesDefinitelyUnrelated(source, target) {\n return !(target.target.combinedFlags & 8 /* Variadic */) && target.target.minLength > source.target.minLength ||\n !target.target.hasRestElement && (source.target.hasRestElement || target.target.fixedLength < source.target.fixedLength);\n }\n function typesDefinitelyUnrelated(source, target) {\n // Two tuple types with incompatible arities are definitely unrelated.\n // Two object types that each have a property that is unmatched in the other are definitely unrelated.\n return isTupleType(source) && isTupleType(target) ? tupleTypesDefinitelyUnrelated(source, target) :\n !!getUnmatchedProperty(source, target, /*requireOptionalProperties*/ false, /*matchDiscriminantProperties*/ true) &&\n !!getUnmatchedProperty(target, source, /*requireOptionalProperties*/ false, /*matchDiscriminantProperties*/ false);\n }\n function getTypeFromInference(inference) {\n return inference.candidates ? getUnionType(inference.candidates, 2 /* Subtype */) :\n inference.contraCandidates ? getIntersectionType(inference.contraCandidates) :\n undefined;\n }\n function hasSkipDirectInferenceFlag(node) {\n return !!getNodeLinks(node).skipDirectInference;\n }\n function isFromInferenceBlockedSource(type) {\n return !!(type.symbol && ts.some(type.symbol.declarations, hasSkipDirectInferenceFlag));\n }\n function isValidBigIntString(s) {\n var scanner = ts.createScanner(99 /* ESNext */, /*skipTrivia*/ false);\n var success = true;\n scanner.setOnError(function () { return success = false; });\n scanner.setText(s + \"n\");\n var result = scanner.scan();\n if (result === 40 /* MinusToken */) {\n result = scanner.scan();\n }\n var flags = scanner.getTokenFlags();\n // validate that\n // * scanning proceeded without error\n // * a bigint can be scanned, and that when it is scanned, it is\n // * the full length of the input string (so the scanner is one character beyond the augmented input length)\n // * it does not contain a numeric seperator (the `BigInt` constructor does not accept a numeric seperator in its input)\n return success && result === 9 /* BigIntLiteral */ && scanner.getTextPos() === (s.length + 1) && !(flags & 512 /* ContainsSeparator */);\n }\n function isValidTypeForTemplateLiteralPlaceholder(source, target) {\n if (source === target || target.flags & (1 /* Any */ | 4 /* String */)) {\n return true;\n }\n if (source.flags & 128 /* StringLiteral */) {\n var value = source.value;\n return !!(target.flags & 8 /* Number */ && value !== \"\" && isFinite(+value) ||\n target.flags & 64 /* BigInt */ && value !== \"\" && isValidBigIntString(value) ||\n target.flags & (512 /* BooleanLiteral */ | 98304 /* Nullable */) && value === target.intrinsicName);\n }\n if (source.flags & 134217728 /* TemplateLiteral */) {\n var texts = source.texts;\n return texts.length === 2 && texts[0] === \"\" && texts[1] === \"\" && isTypeAssignableTo(source.types[0], target);\n }\n return isTypeAssignableTo(source, target);\n }\n function inferTypesFromTemplateLiteralType(source, target) {\n return source.flags & 128 /* StringLiteral */ ? inferFromLiteralPartsToTemplateLiteral([source.value], ts.emptyArray, target) :\n source.flags & 134217728 /* TemplateLiteral */ ?\n ts.arraysEqual(source.texts, target.texts) ? ts.map(source.types, getStringLikeTypeForType) :\n inferFromLiteralPartsToTemplateLiteral(source.texts, source.types, target) :\n undefined;\n }\n function getStringLikeTypeForType(type) {\n return type.flags & (1 /* Any */ | 402653316 /* StringLike */) ? type : getTemplateLiteralType([\"\", \"\"], [type]);\n }\n // This function infers from the text parts and type parts of a source literal to a target template literal. The number\n // of text parts is always one more than the number of type parts, and a source string literal is treated as a source\n // with one text part and zero type parts. The function returns an array of inferred string or template literal types\n // corresponding to the placeholders in the target template literal, or undefined if the source doesn't match the target.\n //\n // We first check that the starting source text part matches the starting target text part, and that the ending source\n // text part ends matches the ending target text part. We then iterate through the remaining target text parts, finding\n // a match for each in the source and inferring string or template literal types created from the segments of the source\n // that occur between the matches. During this iteration, seg holds the index of the current text part in the sourceTexts\n // array and pos holds the current character position in the current text part.\n //\n // Consider inference from type `<<${string}>.<${number}-${number}>>` to type `<${string}.${string}>`, i.e.\n // sourceTexts = ['<<', '>.<', '-', '>>']\n // sourceTypes = [string, number, number]\n // target.texts = ['<', '.', '>']\n // We first match '<' in the target to the start of '<<' in the source and '>' in the target to the end of '>>' in\n // the source. The first match for the '.' in target occurs at character 1 in the source text part at index 1, and thus\n // the first inference is the template literal type `<${string}>`. The remainder of the source makes up the second\n // inference, the template literal type `<${number}-${number}>`.\n function inferFromLiteralPartsToTemplateLiteral(sourceTexts, sourceTypes, target) {\n var lastSourceIndex = sourceTexts.length - 1;\n var sourceStartText = sourceTexts[0];\n var sourceEndText = sourceTexts[lastSourceIndex];\n var targetTexts = target.texts;\n var lastTargetIndex = targetTexts.length - 1;\n var targetStartText = targetTexts[0];\n var targetEndText = targetTexts[lastTargetIndex];\n if (lastSourceIndex === 0 && sourceStartText.length < targetStartText.length + targetEndText.length ||\n !sourceStartText.startsWith(targetStartText) || !sourceEndText.endsWith(targetEndText))\n return undefined;\n var remainingEndText = sourceEndText.slice(0, sourceEndText.length - targetEndText.length);\n var matches = [];\n var seg = 0;\n var pos = targetStartText.length;\n for (var i = 1; i < lastTargetIndex; i++) {\n var delim = targetTexts[i];\n if (delim.length > 0) {\n var s = seg;\n var p = pos;\n while (true) {\n p = getSourceText(s).indexOf(delim, p);\n if (p >= 0)\n break;\n s++;\n if (s === sourceTexts.length)\n return undefined;\n p = 0;\n }\n addMatch(s, p);\n pos += delim.length;\n }\n else if (pos < getSourceText(seg).length) {\n addMatch(seg, pos + 1);\n }\n else if (seg < lastSourceIndex) {\n addMatch(seg + 1, 0);\n }\n else {\n return undefined;\n }\n }\n addMatch(lastSourceIndex, getSourceText(lastSourceIndex).length);\n return matches;\n function getSourceText(index) {\n return index < lastSourceIndex ? sourceTexts[index] : remainingEndText;\n }\n function addMatch(s, p) {\n var matchType = s === seg ?\n getStringLiteralType(getSourceText(s).slice(pos, p)) :\n getTemplateLiteralType(__spreadArray(__spreadArray([sourceTexts[seg].slice(pos)], sourceTexts.slice(seg + 1, s), true), [getSourceText(s).slice(0, p)], false), sourceTypes.slice(seg, s));\n matches.push(matchType);\n seg = s;\n pos = p;\n }\n }\n function inferTypes(inferences, originalSource, originalTarget, priority, contravariant) {\n if (priority === void 0) { priority = 0; }\n if (contravariant === void 0) { contravariant = false; }\n var bivariant = false;\n var propagationType;\n var inferencePriority = 2048 /* MaxValue */;\n var allowComplexConstraintInference = true;\n var visited;\n var sourceStack;\n var targetStack;\n var expandingFlags = 0 /* None */;\n inferFromTypes(originalSource, originalTarget);\n function inferFromTypes(source, target) {\n if (!couldContainTypeVariables(target)) {\n return;\n }\n if (source === wildcardType) {\n // We are inferring from an 'any' type. We want to infer this type for every type parameter\n // referenced in the target type, so we record it as the propagation type and infer from the\n // target to itself. Then, as we find candidates we substitute the propagation type.\n var savePropagationType = propagationType;\n propagationType = source;\n inferFromTypes(target, target);\n propagationType = savePropagationType;\n return;\n }\n if (source.aliasSymbol && source.aliasTypeArguments && source.aliasSymbol === target.aliasSymbol) {\n // Source and target are types originating in the same generic type alias declaration.\n // Simply infer from source type arguments to target type arguments.\n inferFromTypeArguments(source.aliasTypeArguments, target.aliasTypeArguments, getAliasVariances(source.aliasSymbol));\n return;\n }\n if (source === target && source.flags & 3145728 /* UnionOrIntersection */) {\n // When source and target are the same union or intersection type, just relate each constituent\n // type to itself.\n for (var _i = 0, _a = source.types; _i < _a.length; _i++) {\n var t = _a[_i];\n inferFromTypes(t, t);\n }\n return;\n }\n if (target.flags & 1048576 /* Union */) {\n // First, infer between identically matching source and target constituents and remove the\n // matching types.\n var _b = inferFromMatchingTypes(source.flags & 1048576 /* Union */ ? source.types : [source], target.types, isTypeOrBaseIdenticalTo), tempSources = _b[0], tempTargets = _b[1];\n // Next, infer between closely matching source and target constituents and remove\n // the matching types. Types closely match when they are instantiations of the same\n // object type or instantiations of the same type alias.\n var _c = inferFromMatchingTypes(tempSources, tempTargets, isTypeCloselyMatchedBy), sources = _c[0], targets = _c[1];\n if (targets.length === 0) {\n return;\n }\n target = getUnionType(targets);\n if (sources.length === 0) {\n // All source constituents have been matched and there is nothing further to infer from.\n // However, simply making no inferences is undesirable because it could ultimately mean\n // inferring a type parameter constraint. Instead, make a lower priority inference from\n // the full source to whatever remains in the target. For example, when inferring from\n // string to 'string | T', make a lower priority inference of string for T.\n inferWithPriority(source, target, 1 /* NakedTypeVariable */);\n return;\n }\n source = getUnionType(sources);\n }\n else if (target.flags & 2097152 /* Intersection */ && ts.some(target.types, function (t) { return !!getInferenceInfoForType(t) || (isGenericMappedType(t) && !!getInferenceInfoForType(getHomomorphicTypeVariable(t) || neverType)); })) {\n // We reduce intersection types only when they contain naked type parameters. For example, when\n // inferring from 'string[] & { extra: any }' to 'string[] & T' we want to remove string[] and\n // infer { extra: any } for T. But when inferring to 'string[] & Iterable' we want to keep the\n // string[] on the source side and infer string for T.\n // Likewise, we consider a homomorphic mapped type constrainted to the target type parameter as similar to a \"naked type variable\"\n // in such scenarios.\n if (!(source.flags & 1048576 /* Union */)) {\n // Infer between identically matching source and target constituents and remove the matching types.\n var _d = inferFromMatchingTypes(source.flags & 2097152 /* Intersection */ ? source.types : [source], target.types, isTypeIdenticalTo), sources = _d[0], targets = _d[1];\n if (sources.length === 0 || targets.length === 0) {\n return;\n }\n source = getIntersectionType(sources);\n target = getIntersectionType(targets);\n }\n }\n else if (target.flags & (8388608 /* IndexedAccess */ | 33554432 /* Substitution */)) {\n target = getActualTypeVariable(target);\n }\n if (target.flags & 8650752 /* TypeVariable */) {\n // If target is a type parameter, make an inference, unless the source type contains\n // the anyFunctionType (the wildcard type that's used to avoid contextually typing functions).\n // Because the anyFunctionType is internal, it should not be exposed to the user by adding\n // it as an inference candidate. Hopefully, a better candidate will come along that does\n // not contain anyFunctionType when we come back to this argument for its second round\n // of inference. Also, we exclude inferences for silentNeverType (which is used as a wildcard\n // when constructing types from type parameters that had no inference candidates).\n if (ts.getObjectFlags(source) & 524288 /* NonInferrableType */ || source === nonInferrableAnyType || source === silentNeverType ||\n (priority & 128 /* ReturnType */ && (source === autoType || source === autoArrayType)) || isFromInferenceBlockedSource(source)) {\n return;\n }\n var inference = getInferenceInfoForType(target);\n if (inference) {\n if (!inference.isFixed) {\n if (inference.priority === undefined || priority < inference.priority) {\n inference.candidates = undefined;\n inference.contraCandidates = undefined;\n inference.topLevel = true;\n inference.priority = priority;\n }\n if (priority === inference.priority) {\n var candidate = propagationType || source;\n // We make contravariant inferences only if we are in a pure contravariant position,\n // i.e. only if we have not descended into a bivariant position.\n if (contravariant && !bivariant) {\n if (!ts.contains(inference.contraCandidates, candidate)) {\n inference.contraCandidates = ts.append(inference.contraCandidates, candidate);\n clearCachedInferences(inferences);\n }\n }\n else if (!ts.contains(inference.candidates, candidate)) {\n inference.candidates = ts.append(inference.candidates, candidate);\n clearCachedInferences(inferences);\n }\n }\n if (!(priority & 128 /* ReturnType */) && target.flags & 262144 /* TypeParameter */ && inference.topLevel && !isTypeParameterAtTopLevel(originalTarget, target)) {\n inference.topLevel = false;\n clearCachedInferences(inferences);\n }\n }\n inferencePriority = Math.min(inferencePriority, priority);\n return;\n }\n else {\n // Infer to the simplified version of an indexed access, if possible, to (hopefully) expose more bare type parameters to the inference engine\n var simplified = getSimplifiedType(target, /*writing*/ false);\n if (simplified !== target) {\n invokeOnce(source, simplified, inferFromTypes);\n }\n else if (target.flags & 8388608 /* IndexedAccess */) {\n var indexType = getSimplifiedType(target.indexType, /*writing*/ false);\n // Generally simplifications of instantiable indexes are avoided to keep relationship checking correct, however if our target is an access, we can consider\n // that key of that access to be \"instantiated\", since we're looking to find the infernce goal in any way we can.\n if (indexType.flags & 465829888 /* Instantiable */) {\n var simplified_1 = distributeIndexOverObjectType(getSimplifiedType(target.objectType, /*writing*/ false), indexType, /*writing*/ false);\n if (simplified_1 && simplified_1 !== target) {\n invokeOnce(source, simplified_1, inferFromTypes);\n }\n }\n }\n }\n }\n if (ts.getObjectFlags(source) & 4 /* Reference */ && ts.getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target)) &&\n !(source.node && target.node)) {\n // If source and target are references to the same generic type, infer from type arguments\n inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));\n }\n else if (source.flags & 4194304 /* Index */ && target.flags & 4194304 /* Index */) {\n contravariant = !contravariant;\n inferFromTypes(source.type, target.type);\n contravariant = !contravariant;\n }\n else if ((isLiteralType(source) || source.flags & 4 /* String */) && target.flags & 4194304 /* Index */) {\n var empty = createEmptyObjectTypeFromStringLiteral(source);\n contravariant = !contravariant;\n inferWithPriority(empty, target.type, 256 /* LiteralKeyof */);\n contravariant = !contravariant;\n }\n else if (source.flags & 8388608 /* IndexedAccess */ && target.flags & 8388608 /* IndexedAccess */) {\n inferFromTypes(source.objectType, target.objectType);\n inferFromTypes(source.indexType, target.indexType);\n }\n else if (source.flags & 268435456 /* StringMapping */ && target.flags & 268435456 /* StringMapping */) {\n if (source.symbol === target.symbol) {\n inferFromTypes(source.type, target.type);\n }\n }\n else if (source.flags & 33554432 /* Substitution */) {\n inferFromTypes(source.baseType, target);\n var oldPriority = priority;\n priority |= 4 /* SubstituteSource */;\n inferFromTypes(source.substitute, target); // Make substitute inference at a lower priority\n priority = oldPriority;\n }\n else if (target.flags & 16777216 /* Conditional */) {\n invokeOnce(source, target, inferToConditionalType);\n }\n else if (target.flags & 3145728 /* UnionOrIntersection */) {\n inferToMultipleTypes(source, target.types, target.flags);\n }\n else if (source.flags & 1048576 /* Union */) {\n // Source is a union or intersection type, infer from each constituent type\n var sourceTypes = source.types;\n for (var _e = 0, sourceTypes_2 = sourceTypes; _e < sourceTypes_2.length; _e++) {\n var sourceType = sourceTypes_2[_e];\n inferFromTypes(sourceType, target);\n }\n }\n else if (target.flags & 134217728 /* TemplateLiteral */) {\n inferToTemplateLiteralType(source, target);\n }\n else {\n source = getReducedType(source);\n if (!(priority & 512 /* NoConstraints */ && source.flags & (2097152 /* Intersection */ | 465829888 /* Instantiable */))) {\n var apparentSource = getApparentType(source);\n // getApparentType can return _any_ type, since an indexed access or conditional may simplify to any other type.\n // If that occurs and it doesn't simplify to an object or intersection, we'll need to restart `inferFromTypes`\n // with the simplified source.\n if (apparentSource !== source && allowComplexConstraintInference && !(apparentSource.flags & (524288 /* Object */ | 2097152 /* Intersection */))) {\n // TODO: The `allowComplexConstraintInference` flag is a hack! This forbids inference from complex constraints within constraints!\n // This isn't required algorithmically, but rather is used to lower the memory burden caused by performing inference\n // that is _too good_ in projects with complicated constraints (eg, fp-ts). In such cases, if we did not limit ourselves\n // here, we might produce more valid inferences for types, causing us to do more checks and perform more instantiations\n // (in addition to the extra stack depth here) which, in turn, can push the already close process over its limit.\n // TL;DR: If we ever become generally more memory efficient (or our resource budget ever increases), we should just\n // remove this `allowComplexConstraintInference` flag.\n allowComplexConstraintInference = false;\n return inferFromTypes(apparentSource, target);\n }\n source = apparentSource;\n }\n if (source.flags & (524288 /* Object */ | 2097152 /* Intersection */)) {\n invokeOnce(source, target, inferFromObjectTypes);\n }\n }\n }\n function inferWithPriority(source, target, newPriority) {\n var savePriority = priority;\n priority |= newPriority;\n inferFromTypes(source, target);\n priority = savePriority;\n }\n function invokeOnce(source, target, action) {\n var key = source.id + \",\" + target.id;\n var status = visited && visited.get(key);\n if (status !== undefined) {\n inferencePriority = Math.min(inferencePriority, status);\n return;\n }\n (visited || (visited = new ts.Map())).set(key, -1 /* Circularity */);\n var saveInferencePriority = inferencePriority;\n inferencePriority = 2048 /* MaxValue */;\n // We stop inferring and report a circularity if we encounter duplicate recursion identities on both\n // the source side and the target side.\n var saveExpandingFlags = expandingFlags;\n var sourceIdentity = getRecursionIdentity(source);\n var targetIdentity = getRecursionIdentity(target);\n if (ts.contains(sourceStack, sourceIdentity))\n expandingFlags |= 1 /* Source */;\n if (ts.contains(targetStack, targetIdentity))\n expandingFlags |= 2 /* Target */;\n if (expandingFlags !== 3 /* Both */) {\n (sourceStack || (sourceStack = [])).push(sourceIdentity);\n (targetStack || (targetStack = [])).push(targetIdentity);\n action(source, target);\n targetStack.pop();\n sourceStack.pop();\n }\n else {\n inferencePriority = -1 /* Circularity */;\n }\n expandingFlags = saveExpandingFlags;\n visited.set(key, inferencePriority);\n inferencePriority = Math.min(inferencePriority, saveInferencePriority);\n }\n function inferFromMatchingTypes(sources, targets, matches) {\n var matchedSources;\n var matchedTargets;\n for (var _i = 0, targets_1 = targets; _i < targets_1.length; _i++) {\n var t = targets_1[_i];\n for (var _a = 0, sources_1 = sources; _a < sources_1.length; _a++) {\n var s = sources_1[_a];\n if (matches(s, t)) {\n inferFromTypes(s, t);\n matchedSources = ts.appendIfUnique(matchedSources, s);\n matchedTargets = ts.appendIfUnique(matchedTargets, t);\n }\n }\n }\n return [\n matchedSources ? ts.filter(sources, function (t) { return !ts.contains(matchedSources, t); }) : sources,\n matchedTargets ? ts.filter(targets, function (t) { return !ts.contains(matchedTargets, t); }) : targets,\n ];\n }\n function inferFromTypeArguments(sourceTypes, targetTypes, variances) {\n var count = sourceTypes.length < targetTypes.length ? sourceTypes.length : targetTypes.length;\n for (var i = 0; i < count; i++) {\n if (i < variances.length && (variances[i] & 7 /* VarianceMask */) === 2 /* Contravariant */) {\n inferFromContravariantTypes(sourceTypes[i], targetTypes[i]);\n }\n else {\n inferFromTypes(sourceTypes[i], targetTypes[i]);\n }\n }\n }\n function inferFromContravariantTypes(source, target) {\n if (strictFunctionTypes || priority & 1024 /* AlwaysStrict */) {\n contravariant = !contravariant;\n inferFromTypes(source, target);\n contravariant = !contravariant;\n }\n else {\n inferFromTypes(source, target);\n }\n }\n function getInferenceInfoForType(type) {\n if (type.flags & 8650752 /* TypeVariable */) {\n for (var _i = 0, inferences_2 = inferences; _i < inferences_2.length; _i++) {\n var inference = inferences_2[_i];\n if (type === inference.typeParameter) {\n return inference;\n }\n }\n }\n return undefined;\n }\n function getSingleTypeVariableFromIntersectionTypes(types) {\n var typeVariable;\n for (var _i = 0, types_15 = types; _i < types_15.length; _i++) {\n var type = types_15[_i];\n var t = type.flags & 2097152 /* Intersection */ && ts.find(type.types, function (t) { return !!getInferenceInfoForType(t); });\n if (!t || typeVariable && t !== typeVariable) {\n return undefined;\n }\n typeVariable = t;\n }\n return typeVariable;\n }\n function inferToMultipleTypes(source, targets, targetFlags) {\n var typeVariableCount = 0;\n if (targetFlags & 1048576 /* Union */) {\n var nakedTypeVariable = void 0;\n var sources = source.flags & 1048576 /* Union */ ? source.types : [source];\n var matched_1 = new Array(sources.length);\n var inferenceCircularity = false;\n // First infer to types that are not naked type variables. For each source type we\n // track whether inferences were made from that particular type to some target with\n // equal priority (i.e. of equal quality) to what we would infer for a naked type\n // parameter.\n for (var _i = 0, targets_2 = targets; _i < targets_2.length; _i++) {\n var t = targets_2[_i];\n if (getInferenceInfoForType(t)) {\n nakedTypeVariable = t;\n typeVariableCount++;\n }\n else {\n for (var i = 0; i < sources.length; i++) {\n var saveInferencePriority = inferencePriority;\n inferencePriority = 2048 /* MaxValue */;\n inferFromTypes(sources[i], t);\n if (inferencePriority === priority)\n matched_1[i] = true;\n inferenceCircularity = inferenceCircularity || inferencePriority === -1 /* Circularity */;\n inferencePriority = Math.min(inferencePriority, saveInferencePriority);\n }\n }\n }\n if (typeVariableCount === 0) {\n // If every target is an intersection of types containing a single naked type variable,\n // make a lower priority inference to that type variable. This handles inferring from\n // 'A | B' to 'T & (X | Y)' where we want to infer 'A | B' for T.\n var intersectionTypeVariable = getSingleTypeVariableFromIntersectionTypes(targets);\n if (intersectionTypeVariable) {\n inferWithPriority(source, intersectionTypeVariable, 1 /* NakedTypeVariable */);\n }\n return;\n }\n // If the target has a single naked type variable and no inference circularities were\n // encountered above (meaning we explored the types fully), create a union of the source\n // types from which no inferences have been made so far and infer from that union to the\n // naked type variable.\n if (typeVariableCount === 1 && !inferenceCircularity) {\n var unmatched = ts.flatMap(sources, function (s, i) { return matched_1[i] ? undefined : s; });\n if (unmatched.length) {\n inferFromTypes(getUnionType(unmatched), nakedTypeVariable);\n return;\n }\n }\n }\n else {\n // We infer from types that are not naked type variables first so that inferences we\n // make from nested naked type variables and given slightly higher priority by virtue\n // of being first in the candidates array.\n for (var _a = 0, targets_3 = targets; _a < targets_3.length; _a++) {\n var t = targets_3[_a];\n if (getInferenceInfoForType(t)) {\n typeVariableCount++;\n }\n else {\n inferFromTypes(source, t);\n }\n }\n }\n // Inferences directly to naked type variables are given lower priority as they are\n // less specific. For example, when inferring from Promise to T | Promise,\n // we want to infer string for T, not Promise | string. For intersection types\n // we only infer to single naked type variables.\n if (targetFlags & 2097152 /* Intersection */ ? typeVariableCount === 1 : typeVariableCount > 0) {\n for (var _b = 0, targets_4 = targets; _b < targets_4.length; _b++) {\n var t = targets_4[_b];\n if (getInferenceInfoForType(t)) {\n inferWithPriority(source, t, 1 /* NakedTypeVariable */);\n }\n }\n }\n }\n function inferToMappedType(source, target, constraintType) {\n if (constraintType.flags & 1048576 /* Union */) {\n var result = false;\n for (var _i = 0, _a = constraintType.types; _i < _a.length; _i++) {\n var type = _a[_i];\n result = inferToMappedType(source, target, type) || result;\n }\n return result;\n }\n if (constraintType.flags & 4194304 /* Index */) {\n // We're inferring from some source type S to a homomorphic mapped type { [P in keyof T]: X },\n // where T is a type variable. Use inferTypeForHomomorphicMappedType to infer a suitable source\n // type and then make a secondary inference from that type to T. We make a secondary inference\n // such that direct inferences to T get priority over inferences to Partial, for example.\n var inference = getInferenceInfoForType(constraintType.type);\n if (inference && !inference.isFixed && !isFromInferenceBlockedSource(source)) {\n var inferredType = inferTypeForHomomorphicMappedType(source, target, constraintType);\n if (inferredType) {\n // We assign a lower priority to inferences made from types containing non-inferrable\n // types because we may only have a partial result (i.e. we may have failed to make\n // reverse inferences for some properties).\n inferWithPriority(inferredType, inference.typeParameter, ts.getObjectFlags(source) & 524288 /* NonInferrableType */ ?\n 16 /* PartialHomomorphicMappedType */ :\n 8 /* HomomorphicMappedType */);\n }\n }\n return true;\n }\n if (constraintType.flags & 262144 /* TypeParameter */) {\n // We're inferring from some source type S to a mapped type { [P in K]: X }, where K is a type\n // parameter. First infer from 'keyof S' to K.\n inferWithPriority(getIndexType(source), constraintType, 32 /* MappedTypeConstraint */);\n // If K is constrained to a type C, also infer to C. Thus, for a mapped type { [P in K]: X },\n // where K extends keyof T, we make the same inferences as for a homomorphic mapped type\n // { [P in keyof T]: X }. This enables us to make meaningful inferences when the target is a\n // Pick.\n var extendedConstraint = getConstraintOfType(constraintType);\n if (extendedConstraint && inferToMappedType(source, target, extendedConstraint)) {\n return true;\n }\n // If no inferences can be made to K's constraint, infer from a union of the property types\n // in the source to the template type X.\n var propTypes = ts.map(getPropertiesOfType(source), getTypeOfSymbol);\n var indexTypes = ts.map(getIndexInfosOfType(source), function (info) { return info !== enumNumberIndexInfo ? info.type : neverType; });\n inferFromTypes(getUnionType(ts.concatenate(propTypes, indexTypes)), getTemplateTypeFromMappedType(target));\n return true;\n }\n return false;\n }\n function inferToConditionalType(source, target) {\n if (source.flags & 16777216 /* Conditional */) {\n inferFromTypes(source.checkType, target.checkType);\n inferFromTypes(source.extendsType, target.extendsType);\n inferFromTypes(getTrueTypeFromConditionalType(source), getTrueTypeFromConditionalType(target));\n inferFromTypes(getFalseTypeFromConditionalType(source), getFalseTypeFromConditionalType(target));\n }\n else {\n var savePriority = priority;\n priority |= contravariant ? 64 /* ContravariantConditional */ : 0;\n var targetTypes = [getTrueTypeFromConditionalType(target), getFalseTypeFromConditionalType(target)];\n inferToMultipleTypes(source, targetTypes, target.flags);\n priority = savePriority;\n }\n }\n function inferToTemplateLiteralType(source, target) {\n var matches = inferTypesFromTemplateLiteralType(source, target);\n var types = target.types;\n for (var i = 0; i < types.length; i++) {\n inferFromTypes(matches ? matches[i] : neverType, types[i]);\n }\n }\n function inferFromObjectTypes(source, target) {\n if (ts.getObjectFlags(source) & 4 /* Reference */ && ts.getObjectFlags(target) & 4 /* Reference */ && (source.target === target.target || isArrayType(source) && isArrayType(target))) {\n // If source and target are references to the same generic type, infer from type arguments\n inferFromTypeArguments(getTypeArguments(source), getTypeArguments(target), getVariances(source.target));\n return;\n }\n if (isGenericMappedType(source) && isGenericMappedType(target)) {\n // The source and target types are generic types { [P in S]: X } and { [P in T]: Y }, so we infer\n // from S to T and from X to Y.\n inferFromTypes(getConstraintTypeFromMappedType(source), getConstraintTypeFromMappedType(target));\n inferFromTypes(getTemplateTypeFromMappedType(source), getTemplateTypeFromMappedType(target));\n var sourceNameType = getNameTypeFromMappedType(source);\n var targetNameType = getNameTypeFromMappedType(target);\n if (sourceNameType && targetNameType)\n inferFromTypes(sourceNameType, targetNameType);\n }\n if (ts.getObjectFlags(target) & 32 /* Mapped */ && !target.declaration.nameType) {\n var constraintType = getConstraintTypeFromMappedType(target);\n if (inferToMappedType(source, target, constraintType)) {\n return;\n }\n }\n // Infer from the members of source and target only if the two types are possibly related\n if (!typesDefinitelyUnrelated(source, target)) {\n if (isArrayType(source) || isTupleType(source)) {\n if (isTupleType(target)) {\n var sourceArity = getTypeReferenceArity(source);\n var targetArity = getTypeReferenceArity(target);\n var elementTypes = getTypeArguments(target);\n var elementFlags = target.target.elementFlags;\n // When source and target are tuple types with the same structure (fixed, variadic, and rest are matched\n // to the same kind in each position), simply infer between the element types.\n if (isTupleType(source) && isTupleTypeStructureMatching(source, target)) {\n for (var i = 0; i < targetArity; i++) {\n inferFromTypes(getTypeArguments(source)[i], elementTypes[i]);\n }\n return;\n }\n var startLength = isTupleType(source) ? Math.min(source.target.fixedLength, target.target.fixedLength) : 0;\n var endLength = Math.min(isTupleType(source) ? getEndElementCount(source.target, 3 /* Fixed */) : 0, target.target.hasRestElement ? getEndElementCount(target.target, 3 /* Fixed */) : 0);\n // Infer between starting fixed elements.\n for (var i = 0; i < startLength; i++) {\n inferFromTypes(getTypeArguments(source)[i], elementTypes[i]);\n }\n if (!isTupleType(source) || sourceArity - startLength - endLength === 1 && source.target.elementFlags[startLength] & 4 /* Rest */) {\n // Single rest element remains in source, infer from that to every element in target\n var restType = getTypeArguments(source)[startLength];\n for (var i = startLength; i < targetArity - endLength; i++) {\n inferFromTypes(elementFlags[i] & 8 /* Variadic */ ? createArrayType(restType) : restType, elementTypes[i]);\n }\n }\n else {\n var middleLength = targetArity - startLength - endLength;\n if (middleLength === 2 && elementFlags[startLength] & elementFlags[startLength + 1] & 8 /* Variadic */ && isTupleType(source)) {\n // Middle of target is [...T, ...U] and source is tuple type\n var targetInfo = getInferenceInfoForType(elementTypes[startLength]);\n if (targetInfo && targetInfo.impliedArity !== undefined) {\n // Infer slices from source based on implied arity of T.\n inferFromTypes(sliceTupleType(source, startLength, endLength + sourceArity - targetInfo.impliedArity), elementTypes[startLength]);\n inferFromTypes(sliceTupleType(source, startLength + targetInfo.impliedArity, endLength), elementTypes[startLength + 1]);\n }\n }\n else if (middleLength === 1 && elementFlags[startLength] & 8 /* Variadic */) {\n // Middle of target is exactly one variadic element. Infer the slice between the fixed parts in the source.\n // If target ends in optional element(s), make a lower priority a speculative inference.\n var endsInOptional = target.target.elementFlags[targetArity - 1] & 2 /* Optional */;\n var sourceSlice = isTupleType(source) ? sliceTupleType(source, startLength, endLength) : createArrayType(getTypeArguments(source)[0]);\n inferWithPriority(sourceSlice, elementTypes[startLength], endsInOptional ? 2 /* SpeculativeTuple */ : 0);\n }\n else if (middleLength === 1 && elementFlags[startLength] & 4 /* Rest */) {\n // Middle of target is exactly one rest element. If middle of source is not empty, infer union of middle element types.\n var restType = isTupleType(source) ? getElementTypeOfSliceOfTupleType(source, startLength, endLength) : getTypeArguments(source)[0];\n if (restType) {\n inferFromTypes(restType, elementTypes[startLength]);\n }\n }\n }\n // Infer between ending fixed elements\n for (var i = 0; i < endLength; i++) {\n inferFromTypes(getTypeArguments(source)[sourceArity - i - 1], elementTypes[targetArity - i - 1]);\n }\n return;\n }\n if (isArrayType(target)) {\n inferFromIndexTypes(source, target);\n return;\n }\n }\n inferFromProperties(source, target);\n inferFromSignatures(source, target, 0 /* Call */);\n inferFromSignatures(source, target, 1 /* Construct */);\n inferFromIndexTypes(source, target);\n }\n }\n function inferFromProperties(source, target) {\n var properties = getPropertiesOfObjectType(target);\n for (var _i = 0, properties_3 = properties; _i < properties_3.length; _i++) {\n var targetProp = properties_3[_i];\n var sourceProp = getPropertyOfType(source, targetProp.escapedName);\n if (sourceProp) {\n inferFromTypes(getTypeOfSymbol(sourceProp), getTypeOfSymbol(targetProp));\n }\n }\n }\n function inferFromSignatures(source, target, kind) {\n var sourceSignatures = getSignaturesOfType(source, kind);\n var targetSignatures = getSignaturesOfType(target, kind);\n var sourceLen = sourceSignatures.length;\n var targetLen = targetSignatures.length;\n var len = sourceLen < targetLen ? sourceLen : targetLen;\n var skipParameters = !!(ts.getObjectFlags(source) & 524288 /* NonInferrableType */);\n for (var i = 0; i < len; i++) {\n inferFromSignature(getBaseSignature(sourceSignatures[sourceLen - len + i]), getErasedSignature(targetSignatures[targetLen - len + i]), skipParameters);\n }\n }\n function inferFromSignature(source, target, skipParameters) {\n if (!skipParameters) {\n var saveBivariant = bivariant;\n var kind = target.declaration ? target.declaration.kind : 0 /* Unknown */;\n // Once we descend into a bivariant signature we remain bivariant for all nested inferences\n bivariant = bivariant || kind === 167 /* MethodDeclaration */ || kind === 166 /* MethodSignature */ || kind === 169 /* Constructor */;\n applyToParameterTypes(source, target, inferFromContravariantTypes);\n bivariant = saveBivariant;\n }\n applyToReturnTypes(source, target, inferFromTypes);\n }\n function inferFromIndexTypes(source, target) {\n // Inferences across mapped type index signatures are pretty much the same a inferences to homomorphic variables\n var priority = (ts.getObjectFlags(source) & ts.getObjectFlags(target) & 32 /* Mapped */) ? 8 /* HomomorphicMappedType */ : 0;\n var indexInfos = getIndexInfosOfType(target);\n if (isObjectTypeWithInferableIndex(source)) {\n for (var _i = 0, indexInfos_4 = indexInfos; _i < indexInfos_4.length; _i++) {\n var targetInfo = indexInfos_4[_i];\n var propTypes = [];\n for (var _a = 0, _b = getPropertiesOfType(source); _a < _b.length; _a++) {\n var prop = _b[_a];\n if (isApplicableIndexType(getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */), targetInfo.keyType)) {\n var propType = getTypeOfSymbol(prop);\n propTypes.push(prop.flags & 16777216 /* Optional */ ? removeMissingOrUndefinedType(propType) : propType);\n }\n }\n for (var _c = 0, _d = getIndexInfosOfType(source); _c < _d.length; _c++) {\n var info = _d[_c];\n if (isApplicableIndexType(info.keyType, targetInfo.keyType)) {\n propTypes.push(info.type);\n }\n }\n if (propTypes.length) {\n inferWithPriority(getUnionType(propTypes), targetInfo.type, priority);\n }\n }\n }\n for (var _e = 0, indexInfos_5 = indexInfos; _e < indexInfos_5.length; _e++) {\n var targetInfo = indexInfos_5[_e];\n var sourceInfo = getApplicableIndexInfo(source, targetInfo.keyType);\n if (sourceInfo) {\n inferWithPriority(sourceInfo.type, targetInfo.type, priority);\n }\n }\n }\n }\n function isTypeOrBaseIdenticalTo(s, t) {\n return exactOptionalPropertyTypes && t === missingType ? s === t :\n (isTypeIdenticalTo(s, t) || !!(t.flags & 4 /* String */ && s.flags & 128 /* StringLiteral */ || t.flags & 8 /* Number */ && s.flags & 256 /* NumberLiteral */));\n }\n function isTypeCloselyMatchedBy(s, t) {\n return !!(s.flags & 524288 /* Object */ && t.flags & 524288 /* Object */ && s.symbol && s.symbol === t.symbol ||\n s.aliasSymbol && s.aliasTypeArguments && s.aliasSymbol === t.aliasSymbol);\n }\n function hasPrimitiveConstraint(type) {\n var constraint = getConstraintOfTypeParameter(type);\n return !!constraint && maybeTypeOfKind(constraint.flags & 16777216 /* Conditional */ ? getDefaultConstraintOfConditionalType(constraint) : constraint, 131068 /* Primitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */);\n }\n function isObjectLiteralType(type) {\n return !!(ts.getObjectFlags(type) & 128 /* ObjectLiteral */);\n }\n function isObjectOrArrayLiteralType(type) {\n return !!(ts.getObjectFlags(type) & (128 /* ObjectLiteral */ | 32768 /* ArrayLiteral */));\n }\n function unionObjectAndArrayLiteralCandidates(candidates) {\n if (candidates.length > 1) {\n var objectLiterals = ts.filter(candidates, isObjectOrArrayLiteralType);\n if (objectLiterals.length) {\n var literalsType = getUnionType(objectLiterals, 2 /* Subtype */);\n return ts.concatenate(ts.filter(candidates, function (t) { return !isObjectOrArrayLiteralType(t); }), [literalsType]);\n }\n }\n return candidates;\n }\n function getContravariantInference(inference) {\n return inference.priority & 416 /* PriorityImpliesCombination */ ? getIntersectionType(inference.contraCandidates) : getCommonSubtype(inference.contraCandidates);\n }\n function getCovariantInference(inference, signature) {\n // Extract all object and array literal types and replace them with a single widened and normalized type.\n var candidates = unionObjectAndArrayLiteralCandidates(inference.candidates);\n // We widen inferred literal types if\n // all inferences were made to top-level occurrences of the type parameter, and\n // the type parameter has no constraint or its constraint includes no primitive or literal types, and\n // the type parameter was fixed during inference or does not occur at top-level in the return type.\n var primitiveConstraint = hasPrimitiveConstraint(inference.typeParameter);\n var widenLiteralTypes = !primitiveConstraint && inference.topLevel &&\n (inference.isFixed || !isTypeParameterAtTopLevel(getReturnTypeOfSignature(signature), inference.typeParameter));\n var baseCandidates = primitiveConstraint ? ts.sameMap(candidates, getRegularTypeOfLiteralType) :\n widenLiteralTypes ? ts.sameMap(candidates, getWidenedLiteralType) :\n candidates;\n // If all inferences were made from a position that implies a combined result, infer a union type.\n // Otherwise, infer a common supertype.\n var unwidenedType = inference.priority & 416 /* PriorityImpliesCombination */ ?\n getUnionType(baseCandidates, 2 /* Subtype */) :\n getCommonSupertype(baseCandidates);\n return getWidenedType(unwidenedType);\n }\n function getInferredType(context, index) {\n var inference = context.inferences[index];\n if (!inference.inferredType) {\n var inferredType = void 0;\n var signature = context.signature;\n if (signature) {\n var inferredCovariantType = inference.candidates ? getCovariantInference(inference, signature) : undefined;\n if (inference.contraCandidates) {\n var inferredContravariantType = getContravariantInference(inference);\n // If we have both co- and contra-variant inferences, we prefer the contra-variant inference\n // unless the co-variant inference is a subtype and not 'never'.\n inferredType = inferredCovariantType && !(inferredCovariantType.flags & 131072 /* Never */) &&\n isTypeSubtypeOf(inferredCovariantType, inferredContravariantType) ?\n inferredCovariantType : inferredContravariantType;\n }\n else if (inferredCovariantType) {\n inferredType = inferredCovariantType;\n }\n else if (context.flags & 1 /* NoDefault */) {\n // We use silentNeverType as the wildcard that signals no inferences.\n inferredType = silentNeverType;\n }\n else {\n // Infer either the default or the empty object type when no inferences were\n // made. It is important to remember that in this case, inference still\n // succeeds, meaning there is no error for not having inference candidates. An\n // inference error only occurs when there are *conflicting* candidates, i.e.\n // candidates with no common supertype.\n var defaultType = getDefaultFromTypeParameter(inference.typeParameter);\n if (defaultType) {\n // Instantiate the default type. Any forward reference to a type\n // parameter should be instantiated to the empty object type.\n inferredType = instantiateType(defaultType, mergeTypeMappers(createBackreferenceMapper(context, index), context.nonFixingMapper));\n }\n }\n }\n else {\n inferredType = getTypeFromInference(inference);\n }\n inference.inferredType = inferredType || getDefaultTypeArgumentType(!!(context.flags & 2 /* AnyDefault */));\n var constraint = getConstraintOfTypeParameter(inference.typeParameter);\n if (constraint) {\n var instantiatedConstraint = instantiateType(constraint, context.nonFixingMapper);\n if (!inferredType || !context.compareTypes(inferredType, getTypeWithThisArgument(instantiatedConstraint, inferredType))) {\n inference.inferredType = inferredType = instantiatedConstraint;\n }\n }\n }\n return inference.inferredType;\n }\n function getDefaultTypeArgumentType(isInJavaScriptFile) {\n return isInJavaScriptFile ? anyType : unknownType;\n }\n function getInferredTypes(context) {\n var result = [];\n for (var i = 0; i < context.inferences.length; i++) {\n result.push(getInferredType(context, i));\n }\n return result;\n }\n // EXPRESSION TYPE CHECKING\n function getCannotFindNameDiagnosticForName(node) {\n switch (node.escapedText) {\n case \"document\":\n case \"console\":\n return ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_include_dom;\n case \"$\":\n return compilerOptions.types\n ? ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery_and_then_add_jquery_to_the_types_field_in_your_tsconfig\n : ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_jQuery_Try_npm_i_save_dev_types_Slashjquery;\n case \"describe\":\n case \"suite\":\n case \"it\":\n case \"test\":\n return compilerOptions.types\n ? ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha_and_then_add_jest_or_mocha_to_the_types_field_in_your_tsconfig\n : ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_a_test_runner_Try_npm_i_save_dev_types_Slashjest_or_npm_i_save_dev_types_Slashmocha;\n case \"process\":\n case \"require\":\n case \"Buffer\":\n case \"module\":\n return compilerOptions.types\n ? ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode_and_then_add_node_to_the_types_field_in_your_tsconfig\n : ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_install_type_definitions_for_node_Try_npm_i_save_dev_types_Slashnode;\n case \"Map\":\n case \"Set\":\n case \"Promise\":\n case \"Symbol\":\n case \"WeakMap\":\n case \"WeakSet\":\n case \"Iterator\":\n case \"AsyncIterator\":\n case \"SharedArrayBuffer\":\n case \"Atomics\":\n case \"AsyncIterable\":\n case \"AsyncIterableIterator\":\n case \"AsyncGenerator\":\n case \"AsyncGeneratorFunction\":\n case \"BigInt\":\n case \"Reflect\":\n case \"BigInt64Array\":\n case \"BigUint64Array\":\n return ts.Diagnostics.Cannot_find_name_0_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_1_or_later;\n default:\n if (node.parent.kind === 292 /* ShorthandPropertyAssignment */) {\n return ts.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer;\n }\n else {\n return ts.Diagnostics.Cannot_find_name_0;\n }\n }\n }\n function getResolvedSymbol(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedSymbol) {\n links.resolvedSymbol = !ts.nodeIsMissing(node) &&\n resolveName(node, node.escapedText, 111551 /* Value */ | 1048576 /* ExportValue */, getCannotFindNameDiagnosticForName(node), node, !ts.isWriteOnlyAccess(node), \n /*excludeGlobals*/ false, \n /*issueSuggestions*/ true) || unknownSymbol;\n }\n return links.resolvedSymbol;\n }\n function isInTypeQuery(node) {\n // TypeScript 1.0 spec (April 2014): 3.6.3\n // A type query consists of the keyword typeof followed by an expression.\n // The expression is restricted to a single identifier or a sequence of identifiers separated by periods\n return !!ts.findAncestor(node, function (n) { return n.kind === 179 /* TypeQuery */ ? true : n.kind === 79 /* Identifier */ || n.kind === 159 /* QualifiedName */ ? false : \"quit\"; });\n }\n // Return the flow cache key for a \"dotted name\" (i.e. a sequence of identifiers\n // separated by dots). The key consists of the id of the symbol referenced by the\n // leftmost identifier followed by zero or more property names separated by dots.\n // The result is undefined if the reference isn't a dotted name.\n function getFlowCacheKey(node, declaredType, initialType, flowContainer) {\n switch (node.kind) {\n case 79 /* Identifier */:\n var symbol = getResolvedSymbol(node);\n return symbol !== unknownSymbol ? (flowContainer ? getNodeId(flowContainer) : \"-1\") + \"|\" + getTypeId(declaredType) + \"|\" + getTypeId(initialType) + \"|\" + getSymbolId(symbol) : undefined;\n case 108 /* ThisKeyword */:\n return \"0|\" + (flowContainer ? getNodeId(flowContainer) : \"-1\") + \"|\" + getTypeId(declaredType) + \"|\" + getTypeId(initialType);\n case 228 /* NonNullExpression */:\n case 210 /* ParenthesizedExpression */:\n return getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);\n case 159 /* QualifiedName */:\n var left = getFlowCacheKey(node.left, declaredType, initialType, flowContainer);\n return left && left + \".\" + node.right.escapedText;\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n var propName = getAccessedPropertyName(node);\n if (propName !== undefined) {\n var key = getFlowCacheKey(node.expression, declaredType, initialType, flowContainer);\n return key && key + \".\" + propName;\n }\n }\n return undefined;\n }\n function isMatchingReference(source, target) {\n switch (target.kind) {\n case 210 /* ParenthesizedExpression */:\n case 228 /* NonNullExpression */:\n return isMatchingReference(source, target.expression);\n case 219 /* BinaryExpression */:\n return (ts.isAssignmentExpression(target) && isMatchingReference(source, target.left)) ||\n (ts.isBinaryExpression(target) && target.operatorToken.kind === 27 /* CommaToken */ && isMatchingReference(source, target.right));\n }\n switch (source.kind) {\n case 229 /* MetaProperty */:\n return target.kind === 229 /* MetaProperty */\n && source.keywordToken === target.keywordToken\n && source.name.escapedText === target.name.escapedText;\n case 79 /* Identifier */:\n case 80 /* PrivateIdentifier */:\n return ts.isThisInTypeQuery(source) ?\n target.kind === 108 /* ThisKeyword */ :\n target.kind === 79 /* Identifier */ && getResolvedSymbol(source) === getResolvedSymbol(target) ||\n (target.kind === 252 /* VariableDeclaration */ || target.kind === 201 /* BindingElement */) &&\n getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(source)) === getSymbolOfNode(target);\n case 108 /* ThisKeyword */:\n return target.kind === 108 /* ThisKeyword */;\n case 106 /* SuperKeyword */:\n return target.kind === 106 /* SuperKeyword */;\n case 228 /* NonNullExpression */:\n case 210 /* ParenthesizedExpression */:\n return isMatchingReference(source.expression, target);\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return ts.isAccessExpression(target) &&\n getAccessedPropertyName(source) === getAccessedPropertyName(target) &&\n isMatchingReference(source.expression, target.expression);\n case 159 /* QualifiedName */:\n return ts.isAccessExpression(target) &&\n source.right.escapedText === getAccessedPropertyName(target) &&\n isMatchingReference(source.left, target.expression);\n case 219 /* BinaryExpression */:\n return (ts.isBinaryExpression(source) && source.operatorToken.kind === 27 /* CommaToken */ && isMatchingReference(source.right, target));\n }\n return false;\n }\n // Given a source x, check if target matches x or is an && operation with an operand that matches x.\n function containsTruthyCheck(source, target) {\n return isMatchingReference(source, target) ||\n (target.kind === 219 /* BinaryExpression */ && target.operatorToken.kind === 55 /* AmpersandAmpersandToken */ &&\n (containsTruthyCheck(source, target.left) || containsTruthyCheck(source, target.right)));\n }\n function getPropertyAccess(expr) {\n if (ts.isAccessExpression(expr)) {\n return expr;\n }\n if (ts.isIdentifier(expr)) {\n var symbol = getResolvedSymbol(expr);\n if (isConstVariable(symbol)) {\n var declaration = symbol.valueDeclaration;\n // Given 'const x = obj.kind', allow 'x' as an alias for 'obj.kind'\n if (ts.isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && ts.isAccessExpression(declaration.initializer)) {\n return declaration.initializer;\n }\n // Given 'const { kind: x } = obj', allow 'x' as an alias for 'obj.kind'\n if (ts.isBindingElement(declaration) && !declaration.initializer) {\n var parent = declaration.parent.parent;\n if (ts.isVariableDeclaration(parent) && !parent.type && parent.initializer && (ts.isIdentifier(parent.initializer) || ts.isAccessExpression(parent.initializer))) {\n return declaration;\n }\n }\n }\n }\n return undefined;\n }\n function getAccessedPropertyName(access) {\n var propertyName;\n return access.kind === 204 /* PropertyAccessExpression */ ? access.name.escapedText :\n access.kind === 205 /* ElementAccessExpression */ && ts.isStringOrNumericLiteralLike(access.argumentExpression) ? ts.escapeLeadingUnderscores(access.argumentExpression.text) :\n access.kind === 201 /* BindingElement */ && (propertyName = getDestructuringPropertyName(access)) ? ts.escapeLeadingUnderscores(propertyName) :\n undefined;\n }\n function containsMatchingReference(source, target) {\n while (ts.isAccessExpression(source)) {\n source = source.expression;\n if (isMatchingReference(source, target)) {\n return true;\n }\n }\n return false;\n }\n function optionalChainContainsReference(source, target) {\n while (ts.isOptionalChain(source)) {\n source = source.expression;\n if (isMatchingReference(source, target)) {\n return true;\n }\n }\n return false;\n }\n function isDiscriminantProperty(type, name) {\n if (type && type.flags & 1048576 /* Union */) {\n var prop = getUnionOrIntersectionProperty(type, name);\n if (prop && ts.getCheckFlags(prop) & 2 /* SyntheticProperty */) {\n if (prop.isDiscriminantProperty === undefined) {\n prop.isDiscriminantProperty =\n (prop.checkFlags & 192 /* Discriminant */) === 192 /* Discriminant */ &&\n !maybeTypeOfKind(getTypeOfSymbol(prop), 465829888 /* Instantiable */ & ~134217728 /* TemplateLiteral */);\n }\n return !!prop.isDiscriminantProperty;\n }\n }\n return false;\n }\n function findDiscriminantProperties(sourceProperties, target) {\n var result;\n for (var _i = 0, sourceProperties_2 = sourceProperties; _i < sourceProperties_2.length; _i++) {\n var sourceProperty = sourceProperties_2[_i];\n if (isDiscriminantProperty(target, sourceProperty.escapedName)) {\n if (result) {\n result.push(sourceProperty);\n continue;\n }\n result = [sourceProperty];\n }\n }\n return result;\n }\n // Given a set of constituent types and a property name, create and return a map keyed by the literal\n // types of the property by that name in each constituent type. No map is returned if some key property\n // has a non-literal type or if less than 10 or less than 50% of the constituents have a unique key.\n // Entries with duplicate keys have unknownType as the value.\n function mapTypesByKeyProperty(types, name) {\n var map = new ts.Map();\n var count = 0;\n var _loop_22 = function (type) {\n if (type.flags & (524288 /* Object */ | 2097152 /* Intersection */ | 58982400 /* InstantiableNonPrimitive */)) {\n var discriminant = getTypeOfPropertyOfType(type, name);\n if (discriminant) {\n if (!isLiteralType(discriminant)) {\n return { value: undefined };\n }\n var duplicate_1 = false;\n forEachType(discriminant, function (t) {\n var id = getTypeId(getRegularTypeOfLiteralType(t));\n var existing = map.get(id);\n if (!existing) {\n map.set(id, type);\n }\n else if (existing !== unknownType) {\n map.set(id, unknownType);\n duplicate_1 = true;\n }\n });\n if (!duplicate_1)\n count++;\n }\n }\n };\n for (var _i = 0, types_16 = types; _i < types_16.length; _i++) {\n var type = types_16[_i];\n var state_8 = _loop_22(type);\n if (typeof state_8 === \"object\")\n return state_8.value;\n }\n return count >= 10 && count * 2 >= types.length ? map : undefined;\n }\n // Return the name of a discriminant property for which it was possible and feasible to construct a map of\n // constituent types keyed by the literal types of the property by that name in each constituent type.\n function getKeyPropertyName(unionType) {\n var types = unionType.types;\n // We only construct maps for large unions with non-primitive constituents.\n if (types.length < 10 || ts.getObjectFlags(unionType) & 65536 /* PrimitiveUnion */) {\n return undefined;\n }\n if (unionType.keyPropertyName === undefined) {\n // The candidate key property name is the name of the first property with a unit type in one of the\n // constituent types.\n var keyPropertyName = ts.forEach(types, function (t) {\n return t.flags & (524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */) ?\n ts.forEach(getPropertiesOfType(t), function (p) { return isUnitType(getTypeOfSymbol(p)) ? p.escapedName : undefined; }) :\n undefined;\n });\n var mapByKeyProperty = keyPropertyName && mapTypesByKeyProperty(types, keyPropertyName);\n unionType.keyPropertyName = mapByKeyProperty ? keyPropertyName : \"\";\n unionType.constituentMap = mapByKeyProperty;\n }\n return unionType.keyPropertyName.length ? unionType.keyPropertyName : undefined;\n }\n // Given a union type for which getKeyPropertyName returned a non-undefined result, return the constituent\n // that corresponds to the given key type for that property name.\n function getConstituentTypeForKeyType(unionType, keyType) {\n var _a;\n var result = (_a = unionType.constituentMap) === null || _a === void 0 ? void 0 : _a.get(getTypeId(getRegularTypeOfLiteralType(keyType)));\n return result !== unknownType ? result : undefined;\n }\n function getMatchingUnionConstituentForType(unionType, type) {\n var keyPropertyName = getKeyPropertyName(unionType);\n var propType = keyPropertyName && getTypeOfPropertyOfType(type, keyPropertyName);\n return propType && getConstituentTypeForKeyType(unionType, propType);\n }\n function getMatchingUnionConstituentForObjectLiteral(unionType, node) {\n var keyPropertyName = getKeyPropertyName(unionType);\n var propNode = keyPropertyName && ts.find(node.properties, function (p) { return p.symbol && p.kind === 291 /* PropertyAssignment */ &&\n p.symbol.escapedName === keyPropertyName && isPossiblyDiscriminantValue(p.initializer); });\n var propType = propNode && getTypeOfExpression(propNode.initializer);\n return propType && getConstituentTypeForKeyType(unionType, propType);\n }\n function isOrContainsMatchingReference(source, target) {\n return isMatchingReference(source, target) || containsMatchingReference(source, target);\n }\n function hasMatchingArgument(expression, reference) {\n if (expression.arguments) {\n for (var _i = 0, _a = expression.arguments; _i < _a.length; _i++) {\n var argument = _a[_i];\n if (isOrContainsMatchingReference(reference, argument)) {\n return true;\n }\n }\n }\n if (expression.expression.kind === 204 /* PropertyAccessExpression */ &&\n isOrContainsMatchingReference(reference, expression.expression.expression)) {\n return true;\n }\n return false;\n }\n function getFlowNodeId(flow) {\n if (!flow.id || flow.id < 0) {\n flow.id = nextFlowId;\n nextFlowId++;\n }\n return flow.id;\n }\n function typeMaybeAssignableTo(source, target) {\n if (!(source.flags & 1048576 /* Union */)) {\n return isTypeAssignableTo(source, target);\n }\n for (var _i = 0, _a = source.types; _i < _a.length; _i++) {\n var t = _a[_i];\n if (isTypeAssignableTo(t, target)) {\n return true;\n }\n }\n return false;\n }\n // Remove those constituent types of declaredType to which no constituent type of assignedType is assignable.\n // For example, when a variable of type number | string | boolean is assigned a value of type number | boolean,\n // we remove type string.\n function getAssignmentReducedType(declaredType, assignedType) {\n if (declaredType !== assignedType) {\n if (assignedType.flags & 131072 /* Never */) {\n return assignedType;\n }\n var reducedType = filterType(declaredType, function (t) { return typeMaybeAssignableTo(assignedType, t); });\n if (assignedType.flags & 512 /* BooleanLiteral */ && isFreshLiteralType(assignedType)) {\n reducedType = mapType(reducedType, getFreshTypeOfLiteralType); // Ensure that if the assignment is a fresh type, that we narrow to fresh types\n }\n // Our crude heuristic produces an invalid result in some cases: see GH#26130.\n // For now, when that happens, we give up and don't narrow at all. (This also\n // means we'll never narrow for erroneous assignments where the assigned type\n // is not assignable to the declared type.)\n if (isTypeAssignableTo(assignedType, reducedType)) {\n return reducedType;\n }\n }\n return declaredType;\n }\n function isFunctionObjectType(type) {\n // We do a quick check for a \"bind\" property before performing the more expensive subtype\n // check. This gives us a quicker out in the common case where an object type is not a function.\n var resolved = resolveStructuredTypeMembers(type);\n return !!(resolved.callSignatures.length || resolved.constructSignatures.length ||\n resolved.members.get(\"bind\") && isTypeSubtypeOf(type, globalFunctionType));\n }\n function getTypeFacts(type, ignoreObjects) {\n if (ignoreObjects === void 0) { ignoreObjects = false; }\n var flags = type.flags;\n if (flags & 4 /* String */) {\n return strictNullChecks ? 16317953 /* StringStrictFacts */ : 16776705 /* StringFacts */;\n }\n if (flags & 128 /* StringLiteral */) {\n var isEmpty = type.value === \"\";\n return strictNullChecks ?\n isEmpty ? 12123649 /* EmptyStringStrictFacts */ : 7929345 /* NonEmptyStringStrictFacts */ :\n isEmpty ? 12582401 /* EmptyStringFacts */ : 16776705 /* NonEmptyStringFacts */;\n }\n if (flags & (8 /* Number */ | 32 /* Enum */)) {\n return strictNullChecks ? 16317698 /* NumberStrictFacts */ : 16776450 /* NumberFacts */;\n }\n if (flags & 256 /* NumberLiteral */) {\n var isZero = type.value === 0;\n return strictNullChecks ?\n isZero ? 12123394 /* ZeroNumberStrictFacts */ : 7929090 /* NonZeroNumberStrictFacts */ :\n isZero ? 12582146 /* ZeroNumberFacts */ : 16776450 /* NonZeroNumberFacts */;\n }\n if (flags & 64 /* BigInt */) {\n return strictNullChecks ? 16317188 /* BigIntStrictFacts */ : 16775940 /* BigIntFacts */;\n }\n if (flags & 2048 /* BigIntLiteral */) {\n var isZero = isZeroBigInt(type);\n return strictNullChecks ?\n isZero ? 12122884 /* ZeroBigIntStrictFacts */ : 7928580 /* NonZeroBigIntStrictFacts */ :\n isZero ? 12581636 /* ZeroBigIntFacts */ : 16775940 /* NonZeroBigIntFacts */;\n }\n if (flags & 16 /* Boolean */) {\n return strictNullChecks ? 16316168 /* BooleanStrictFacts */ : 16774920 /* BooleanFacts */;\n }\n if (flags & 528 /* BooleanLike */) {\n return strictNullChecks ?\n (type === falseType || type === regularFalseType) ? 12121864 /* FalseStrictFacts */ : 7927560 /* TrueStrictFacts */ :\n (type === falseType || type === regularFalseType) ? 12580616 /* FalseFacts */ : 16774920 /* TrueFacts */;\n }\n if (flags & 524288 /* Object */ && !ignoreObjects) {\n return ts.getObjectFlags(type) & 16 /* Anonymous */ && isEmptyObjectType(type) ?\n strictNullChecks ? 16318463 /* EmptyObjectStrictFacts */ : 16777215 /* EmptyObjectFacts */ :\n isFunctionObjectType(type) ?\n strictNullChecks ? 7880640 /* FunctionStrictFacts */ : 16728000 /* FunctionFacts */ :\n strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */;\n }\n if (flags & (16384 /* Void */ | 32768 /* Undefined */)) {\n return 9830144 /* UndefinedFacts */;\n }\n if (flags & 65536 /* Null */) {\n return 9363232 /* NullFacts */;\n }\n if (flags & 12288 /* ESSymbolLike */) {\n return strictNullChecks ? 7925520 /* SymbolStrictFacts */ : 16772880 /* SymbolFacts */;\n }\n if (flags & 67108864 /* NonPrimitive */) {\n return strictNullChecks ? 7888800 /* ObjectStrictFacts */ : 16736160 /* ObjectFacts */;\n }\n if (flags & 131072 /* Never */) {\n return 0 /* None */;\n }\n if (flags & 465829888 /* Instantiable */) {\n return !isPatternLiteralType(type) ? getTypeFacts(getBaseConstraintOfType(type) || unknownType, ignoreObjects) :\n strictNullChecks ? 7929345 /* NonEmptyStringStrictFacts */ : 16776705 /* NonEmptyStringFacts */;\n }\n if (flags & 1048576 /* Union */) {\n return ts.reduceLeft(type.types, function (facts, t) { return facts | getTypeFacts(t, ignoreObjects); }, 0 /* None */);\n }\n if (flags & 2097152 /* Intersection */) {\n // When an intersection contains a primitive type we ignore object type constituents as they are\n // presumably type tags. For example, in string & { __kind__: \"name\" } we ignore the object type.\n ignoreObjects || (ignoreObjects = maybeTypeOfKind(type, 131068 /* Primitive */));\n return ts.reduceLeft(type.types, function (facts, t) { return facts & getTypeFacts(t, ignoreObjects); }, 16777215 /* All */);\n }\n return 16777215 /* All */;\n }\n function getTypeWithFacts(type, include) {\n return filterType(type, function (t) { return (getTypeFacts(t) & include) !== 0; });\n }\n function getTypeWithDefault(type, defaultExpression) {\n return defaultExpression ?\n getUnionType([getNonUndefinedType(type), getTypeOfExpression(defaultExpression)]) :\n type;\n }\n function getTypeOfDestructuredProperty(type, name) {\n var _a;\n var nameType = getLiteralTypeFromPropertyName(name);\n if (!isTypeUsableAsPropertyName(nameType))\n return errorType;\n var text = getPropertyNameFromType(nameType);\n return getTypeOfPropertyOfType(type, text) || includeUndefinedInIndexSignature((_a = getApplicableIndexInfoForName(type, text)) === null || _a === void 0 ? void 0 : _a.type) || errorType;\n }\n function getTypeOfDestructuredArrayElement(type, index) {\n return everyType(type, isTupleLikeType) && getTupleElementType(type, index) ||\n includeUndefinedInIndexSignature(checkIteratedTypeOrElementType(65 /* Destructuring */, type, undefinedType, /*errorNode*/ undefined)) ||\n errorType;\n }\n function includeUndefinedInIndexSignature(type) {\n if (!type)\n return type;\n return compilerOptions.noUncheckedIndexedAccess ?\n getUnionType([type, undefinedType]) :\n type;\n }\n function getTypeOfDestructuredSpreadExpression(type) {\n return createArrayType(checkIteratedTypeOrElementType(65 /* Destructuring */, type, undefinedType, /*errorNode*/ undefined) || errorType);\n }\n function getAssignedTypeOfBinaryExpression(node) {\n var isDestructuringDefaultAssignment = node.parent.kind === 202 /* ArrayLiteralExpression */ && isDestructuringAssignmentTarget(node.parent) ||\n node.parent.kind === 291 /* PropertyAssignment */ && isDestructuringAssignmentTarget(node.parent.parent);\n return isDestructuringDefaultAssignment ?\n getTypeWithDefault(getAssignedType(node), node.right) :\n getTypeOfExpression(node.right);\n }\n function isDestructuringAssignmentTarget(parent) {\n return parent.parent.kind === 219 /* BinaryExpression */ && parent.parent.left === parent ||\n parent.parent.kind === 242 /* ForOfStatement */ && parent.parent.initializer === parent;\n }\n function getAssignedTypeOfArrayLiteralElement(node, element) {\n return getTypeOfDestructuredArrayElement(getAssignedType(node), node.elements.indexOf(element));\n }\n function getAssignedTypeOfSpreadExpression(node) {\n return getTypeOfDestructuredSpreadExpression(getAssignedType(node.parent));\n }\n function getAssignedTypeOfPropertyAssignment(node) {\n return getTypeOfDestructuredProperty(getAssignedType(node.parent), node.name);\n }\n function getAssignedTypeOfShorthandPropertyAssignment(node) {\n return getTypeWithDefault(getAssignedTypeOfPropertyAssignment(node), node.objectAssignmentInitializer);\n }\n function getAssignedType(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 241 /* ForInStatement */:\n return stringType;\n case 242 /* ForOfStatement */:\n return checkRightHandSideOfForOf(parent) || errorType;\n case 219 /* BinaryExpression */:\n return getAssignedTypeOfBinaryExpression(parent);\n case 213 /* DeleteExpression */:\n return undefinedType;\n case 202 /* ArrayLiteralExpression */:\n return getAssignedTypeOfArrayLiteralElement(parent, node);\n case 223 /* SpreadElement */:\n return getAssignedTypeOfSpreadExpression(parent);\n case 291 /* PropertyAssignment */:\n return getAssignedTypeOfPropertyAssignment(parent);\n case 292 /* ShorthandPropertyAssignment */:\n return getAssignedTypeOfShorthandPropertyAssignment(parent);\n }\n return errorType;\n }\n function getInitialTypeOfBindingElement(node) {\n var pattern = node.parent;\n var parentType = getInitialType(pattern.parent);\n var type = pattern.kind === 199 /* ObjectBindingPattern */ ?\n getTypeOfDestructuredProperty(parentType, node.propertyName || node.name) :\n !node.dotDotDotToken ?\n getTypeOfDestructuredArrayElement(parentType, pattern.elements.indexOf(node)) :\n getTypeOfDestructuredSpreadExpression(parentType);\n return getTypeWithDefault(type, node.initializer);\n }\n function getTypeOfInitializer(node) {\n // Return the cached type if one is available. If the type of the variable was inferred\n // from its initializer, we'll already have cached the type. Otherwise we compute it now\n // without caching such that transient types are reflected.\n var links = getNodeLinks(node);\n return links.resolvedType || getTypeOfExpression(node);\n }\n function getInitialTypeOfVariableDeclaration(node) {\n if (node.initializer) {\n return getTypeOfInitializer(node.initializer);\n }\n if (node.parent.parent.kind === 241 /* ForInStatement */) {\n return stringType;\n }\n if (node.parent.parent.kind === 242 /* ForOfStatement */) {\n return checkRightHandSideOfForOf(node.parent.parent) || errorType;\n }\n return errorType;\n }\n function getInitialType(node) {\n return node.kind === 252 /* VariableDeclaration */ ?\n getInitialTypeOfVariableDeclaration(node) :\n getInitialTypeOfBindingElement(node);\n }\n function isEmptyArrayAssignment(node) {\n return node.kind === 252 /* VariableDeclaration */ && node.initializer &&\n isEmptyArrayLiteral(node.initializer) ||\n node.kind !== 201 /* BindingElement */ && node.parent.kind === 219 /* BinaryExpression */ &&\n isEmptyArrayLiteral(node.parent.right);\n }\n function getReferenceCandidate(node) {\n switch (node.kind) {\n case 210 /* ParenthesizedExpression */:\n return getReferenceCandidate(node.expression);\n case 219 /* BinaryExpression */:\n switch (node.operatorToken.kind) {\n case 63 /* EqualsToken */:\n case 75 /* BarBarEqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return getReferenceCandidate(node.left);\n case 27 /* CommaToken */:\n return getReferenceCandidate(node.right);\n }\n }\n return node;\n }\n function getReferenceRoot(node) {\n var parent = node.parent;\n return parent.kind === 210 /* ParenthesizedExpression */ ||\n parent.kind === 219 /* BinaryExpression */ && parent.operatorToken.kind === 63 /* EqualsToken */ && parent.left === node ||\n parent.kind === 219 /* BinaryExpression */ && parent.operatorToken.kind === 27 /* CommaToken */ && parent.right === node ?\n getReferenceRoot(parent) : node;\n }\n function getTypeOfSwitchClause(clause) {\n if (clause.kind === 287 /* CaseClause */) {\n return getRegularTypeOfLiteralType(getTypeOfExpression(clause.expression));\n }\n return neverType;\n }\n function getSwitchClauseTypes(switchStatement) {\n var links = getNodeLinks(switchStatement);\n if (!links.switchTypes) {\n links.switchTypes = [];\n for (var _i = 0, _a = switchStatement.caseBlock.clauses; _i < _a.length; _i++) {\n var clause = _a[_i];\n links.switchTypes.push(getTypeOfSwitchClause(clause));\n }\n }\n return links.switchTypes;\n }\n function getSwitchClauseTypeOfWitnesses(switchStatement, retainDefault) {\n var witnesses = [];\n for (var _i = 0, _a = switchStatement.caseBlock.clauses; _i < _a.length; _i++) {\n var clause = _a[_i];\n if (clause.kind === 287 /* CaseClause */) {\n if (ts.isStringLiteralLike(clause.expression)) {\n witnesses.push(clause.expression.text);\n continue;\n }\n return ts.emptyArray;\n }\n if (retainDefault)\n witnesses.push(/*explicitDefaultStatement*/ undefined);\n }\n return witnesses;\n }\n function eachTypeContainedIn(source, types) {\n return source.flags & 1048576 /* Union */ ? !ts.forEach(source.types, function (t) { return !ts.contains(types, t); }) : ts.contains(types, source);\n }\n function isTypeSubsetOf(source, target) {\n return source === target || target.flags & 1048576 /* Union */ && isTypeSubsetOfUnion(source, target);\n }\n function isTypeSubsetOfUnion(source, target) {\n if (source.flags & 1048576 /* Union */) {\n for (var _i = 0, _a = source.types; _i < _a.length; _i++) {\n var t = _a[_i];\n if (!containsType(target.types, t)) {\n return false;\n }\n }\n return true;\n }\n if (source.flags & 1024 /* EnumLiteral */ && getBaseTypeOfEnumLiteralType(source) === target) {\n return true;\n }\n return containsType(target.types, source);\n }\n function forEachType(type, f) {\n return type.flags & 1048576 /* Union */ ? ts.forEach(type.types, f) : f(type);\n }\n function someType(type, f) {\n return type.flags & 1048576 /* Union */ ? ts.some(type.types, f) : f(type);\n }\n function everyType(type, f) {\n return type.flags & 1048576 /* Union */ ? ts.every(type.types, f) : f(type);\n }\n function everyContainedType(type, f) {\n return type.flags & 3145728 /* UnionOrIntersection */ ? ts.every(type.types, f) : f(type);\n }\n function filterType(type, f) {\n if (type.flags & 1048576 /* Union */) {\n var types = type.types;\n var filtered = ts.filter(types, f);\n if (filtered === types) {\n return type;\n }\n var origin = type.origin;\n var newOrigin = void 0;\n if (origin && origin.flags & 1048576 /* Union */) {\n // If the origin type is a (denormalized) union type, filter its non-union constituents. If that ends\n // up removing a smaller number of types than in the normalized constituent set (meaning some of the\n // filtered types are within nested unions in the origin), then we can't construct a new origin type.\n // Otherwise, if we have exactly one type left in the origin set, return that as the filtered type.\n // Otherwise, construct a new filtered origin type.\n var originTypes = origin.types;\n var originFiltered = ts.filter(originTypes, function (t) { return !!(t.flags & 1048576 /* Union */) || f(t); });\n if (originTypes.length - originFiltered.length === types.length - filtered.length) {\n if (originFiltered.length === 1) {\n return originFiltered[0];\n }\n newOrigin = createOriginUnionOrIntersectionType(1048576 /* Union */, originFiltered);\n }\n }\n return getUnionTypeFromSortedList(filtered, type.objectFlags, /*aliasSymbol*/ undefined, /*aliasTypeArguments*/ undefined, newOrigin);\n }\n return type.flags & 131072 /* Never */ || f(type) ? type : neverType;\n }\n function removeType(type, targetType) {\n return filterType(type, function (t) { return t !== targetType; });\n }\n function countTypes(type) {\n return type.flags & 1048576 /* Union */ ? type.types.length : 1;\n }\n function mapType(type, mapper, noReductions) {\n if (type.flags & 131072 /* Never */) {\n return type;\n }\n if (!(type.flags & 1048576 /* Union */)) {\n return mapper(type);\n }\n var origin = type.origin;\n var types = origin && origin.flags & 1048576 /* Union */ ? origin.types : type.types;\n var mappedTypes;\n var changed = false;\n for (var _i = 0, types_17 = types; _i < types_17.length; _i++) {\n var t = types_17[_i];\n var mapped = t.flags & 1048576 /* Union */ ? mapType(t, mapper, noReductions) : mapper(t);\n changed || (changed = t !== mapped);\n if (mapped) {\n if (!mappedTypes) {\n mappedTypes = [mapped];\n }\n else {\n mappedTypes.push(mapped);\n }\n }\n }\n return changed ? mappedTypes && getUnionType(mappedTypes, noReductions ? 0 /* None */ : 1 /* Literal */) : type;\n }\n function mapTypeWithAlias(type, mapper, aliasSymbol, aliasTypeArguments) {\n return type.flags & 1048576 /* Union */ && aliasSymbol ?\n getUnionType(ts.map(type.types, mapper), 1 /* Literal */, aliasSymbol, aliasTypeArguments) :\n mapType(type, mapper);\n }\n function getConstituentCount(type) {\n return type.flags & 3145728 /* UnionOrIntersection */ ? type.types.length : 1;\n }\n function extractTypesOfKind(type, kind) {\n return filterType(type, function (t) { return (t.flags & kind) !== 0; });\n }\n // Return a new type in which occurrences of the string and number primitive types in\n // typeWithPrimitives have been replaced with occurrences of string literals and numeric\n // literals in typeWithLiterals, respectively.\n function replacePrimitivesWithLiterals(typeWithPrimitives, typeWithLiterals) {\n if (isTypeSubsetOf(stringType, typeWithPrimitives) && maybeTypeOfKind(typeWithLiterals, 128 /* StringLiteral */) ||\n isTypeSubsetOf(numberType, typeWithPrimitives) && maybeTypeOfKind(typeWithLiterals, 256 /* NumberLiteral */) ||\n isTypeSubsetOf(bigintType, typeWithPrimitives) && maybeTypeOfKind(typeWithLiterals, 2048 /* BigIntLiteral */)) {\n return mapType(typeWithPrimitives, function (t) {\n return t.flags & 4 /* String */ ? extractTypesOfKind(typeWithLiterals, 4 /* String */ | 128 /* StringLiteral */) :\n t.flags & 8 /* Number */ ? extractTypesOfKind(typeWithLiterals, 8 /* Number */ | 256 /* NumberLiteral */) :\n t.flags & 64 /* BigInt */ ? extractTypesOfKind(typeWithLiterals, 64 /* BigInt */ | 2048 /* BigIntLiteral */) : t;\n });\n }\n return typeWithPrimitives;\n }\n function isIncomplete(flowType) {\n return flowType.flags === 0;\n }\n function getTypeFromFlowType(flowType) {\n return flowType.flags === 0 ? flowType.type : flowType;\n }\n function createFlowType(type, incomplete) {\n return incomplete ? { flags: 0, type: type.flags & 131072 /* Never */ ? silentNeverType : type } : type;\n }\n // An evolving array type tracks the element types that have so far been seen in an\n // 'x.push(value)' or 'x[n] = value' operation along the control flow graph. Evolving\n // array types are ultimately converted into manifest array types (using getFinalArrayType)\n // and never escape the getFlowTypeOfReference function.\n function createEvolvingArrayType(elementType) {\n var result = createObjectType(256 /* EvolvingArray */);\n result.elementType = elementType;\n return result;\n }\n function getEvolvingArrayType(elementType) {\n return evolvingArrayTypes[elementType.id] || (evolvingArrayTypes[elementType.id] = createEvolvingArrayType(elementType));\n }\n // When adding evolving array element types we do not perform subtype reduction. Instead,\n // we defer subtype reduction until the evolving array type is finalized into a manifest\n // array type.\n function addEvolvingArrayElementType(evolvingArrayType, node) {\n var elementType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(getContextFreeTypeOfExpression(node)));\n return isTypeSubsetOf(elementType, evolvingArrayType.elementType) ? evolvingArrayType : getEvolvingArrayType(getUnionType([evolvingArrayType.elementType, elementType]));\n }\n function createFinalArrayType(elementType) {\n return elementType.flags & 131072 /* Never */ ?\n autoArrayType :\n createArrayType(elementType.flags & 1048576 /* Union */ ?\n getUnionType(elementType.types, 2 /* Subtype */) :\n elementType);\n }\n // We perform subtype reduction upon obtaining the final array type from an evolving array type.\n function getFinalArrayType(evolvingArrayType) {\n return evolvingArrayType.finalArrayType || (evolvingArrayType.finalArrayType = createFinalArrayType(evolvingArrayType.elementType));\n }\n function finalizeEvolvingArrayType(type) {\n return ts.getObjectFlags(type) & 256 /* EvolvingArray */ ? getFinalArrayType(type) : type;\n }\n function getElementTypeOfEvolvingArrayType(type) {\n return ts.getObjectFlags(type) & 256 /* EvolvingArray */ ? type.elementType : neverType;\n }\n function isEvolvingArrayTypeList(types) {\n var hasEvolvingArrayType = false;\n for (var _i = 0, types_18 = types; _i < types_18.length; _i++) {\n var t = types_18[_i];\n if (!(t.flags & 131072 /* Never */)) {\n if (!(ts.getObjectFlags(t) & 256 /* EvolvingArray */)) {\n return false;\n }\n hasEvolvingArrayType = true;\n }\n }\n return hasEvolvingArrayType;\n }\n // Return true if the given node is 'x' in an 'x.length', x.push(value)', 'x.unshift(value)' or\n // 'x[n] = value' operation, where 'n' is an expression of type any, undefined, or a number-like type.\n function isEvolvingArrayOperationTarget(node) {\n var root = getReferenceRoot(node);\n var parent = root.parent;\n var isLengthPushOrUnshift = ts.isPropertyAccessExpression(parent) && (parent.name.escapedText === \"length\" ||\n parent.parent.kind === 206 /* CallExpression */\n && ts.isIdentifier(parent.name)\n && ts.isPushOrUnshiftIdentifier(parent.name));\n var isElementAssignment = parent.kind === 205 /* ElementAccessExpression */ &&\n parent.expression === root &&\n parent.parent.kind === 219 /* BinaryExpression */ &&\n parent.parent.operatorToken.kind === 63 /* EqualsToken */ &&\n parent.parent.left === parent &&\n !ts.isAssignmentTarget(parent.parent) &&\n isTypeAssignableToKind(getTypeOfExpression(parent.argumentExpression), 296 /* NumberLike */);\n return isLengthPushOrUnshift || isElementAssignment;\n }\n function isDeclarationWithExplicitTypeAnnotation(declaration) {\n return (declaration.kind === 252 /* VariableDeclaration */ || declaration.kind === 162 /* Parameter */ ||\n declaration.kind === 165 /* PropertyDeclaration */ || declaration.kind === 164 /* PropertySignature */) &&\n !!ts.getEffectiveTypeAnnotationNode(declaration);\n }\n function getExplicitTypeOfSymbol(symbol, diagnostic) {\n if (symbol.flags & (16 /* Function */ | 8192 /* Method */ | 32 /* Class */ | 512 /* ValueModule */)) {\n return getTypeOfSymbol(symbol);\n }\n if (symbol.flags & (3 /* Variable */ | 4 /* Property */)) {\n if (ts.getCheckFlags(symbol) & 262144 /* Mapped */) {\n var origin = symbol.syntheticOrigin;\n if (origin && getExplicitTypeOfSymbol(origin)) {\n return getTypeOfSymbol(symbol);\n }\n }\n var declaration = symbol.valueDeclaration;\n if (declaration) {\n if (isDeclarationWithExplicitTypeAnnotation(declaration)) {\n return getTypeOfSymbol(symbol);\n }\n if (ts.isVariableDeclaration(declaration) && declaration.parent.parent.kind === 242 /* ForOfStatement */) {\n var statement = declaration.parent.parent;\n var expressionType = getTypeOfDottedName(statement.expression, /*diagnostic*/ undefined);\n if (expressionType) {\n var use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */;\n return checkIteratedTypeOrElementType(use, expressionType, undefinedType, /*errorNode*/ undefined);\n }\n }\n if (diagnostic) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(declaration, ts.Diagnostics._0_needs_an_explicit_type_annotation, symbolToString(symbol)));\n }\n }\n }\n }\n // We require the dotted function name in an assertion expression to be comprised of identifiers\n // that reference function, method, class or value module symbols; or variable, property or\n // parameter symbols with declarations that have explicit type annotations. Such references are\n // resolvable with no possibility of triggering circularities in control flow analysis.\n function getTypeOfDottedName(node, diagnostic) {\n if (!(node.flags & 16777216 /* InWithStatement */)) {\n switch (node.kind) {\n case 79 /* Identifier */:\n var symbol = getExportSymbolOfValueSymbolIfExported(getResolvedSymbol(node));\n return getExplicitTypeOfSymbol(symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol, diagnostic);\n case 108 /* ThisKeyword */:\n return getExplicitThisType(node);\n case 106 /* SuperKeyword */:\n return checkSuperExpression(node);\n case 204 /* PropertyAccessExpression */: {\n var type = getTypeOfDottedName(node.expression, diagnostic);\n if (type) {\n var name = node.name;\n var prop = void 0;\n if (ts.isPrivateIdentifier(name)) {\n if (!type.symbol) {\n return undefined;\n }\n prop = getPropertyOfType(type, ts.getSymbolNameForPrivateIdentifier(type.symbol, name.escapedText));\n }\n else {\n prop = getPropertyOfType(type, name.escapedText);\n }\n return prop && getExplicitTypeOfSymbol(prop, diagnostic);\n }\n return undefined;\n }\n case 210 /* ParenthesizedExpression */:\n return getTypeOfDottedName(node.expression, diagnostic);\n }\n }\n }\n function getEffectsSignature(node) {\n var links = getNodeLinks(node);\n var signature = links.effectsSignature;\n if (signature === undefined) {\n // A call expression parented by an expression statement is a potential assertion. Other call\n // expressions are potential type predicate function calls. In order to avoid triggering\n // circularities in control flow analysis, we use getTypeOfDottedName when resolving the call\n // target expression of an assertion.\n var funcType = void 0;\n if (node.parent.kind === 236 /* ExpressionStatement */) {\n funcType = getTypeOfDottedName(node.expression, /*diagnostic*/ undefined);\n }\n else if (node.expression.kind !== 106 /* SuperKeyword */) {\n if (ts.isOptionalChain(node)) {\n funcType = checkNonNullType(getOptionalExpressionType(checkExpression(node.expression), node.expression), node.expression);\n }\n else {\n funcType = checkNonNullExpression(node.expression);\n }\n }\n var signatures = getSignaturesOfType(funcType && getApparentType(funcType) || unknownType, 0 /* Call */);\n var candidate = signatures.length === 1 && !signatures[0].typeParameters ? signatures[0] :\n ts.some(signatures, hasTypePredicateOrNeverReturnType) ? getResolvedSignature(node) :\n undefined;\n signature = links.effectsSignature = candidate && hasTypePredicateOrNeverReturnType(candidate) ? candidate : unknownSignature;\n }\n return signature === unknownSignature ? undefined : signature;\n }\n function hasTypePredicateOrNeverReturnType(signature) {\n return !!(getTypePredicateOfSignature(signature) ||\n signature.declaration && (getReturnTypeFromAnnotation(signature.declaration) || unknownType).flags & 131072 /* Never */);\n }\n function getTypePredicateArgument(predicate, callExpression) {\n if (predicate.kind === 1 /* Identifier */ || predicate.kind === 3 /* AssertsIdentifier */) {\n return callExpression.arguments[predicate.parameterIndex];\n }\n var invokedExpression = ts.skipParentheses(callExpression.expression);\n return ts.isAccessExpression(invokedExpression) ? ts.skipParentheses(invokedExpression.expression) : undefined;\n }\n function reportFlowControlError(node) {\n var block = ts.findAncestor(node, ts.isFunctionOrModuleBlock);\n var sourceFile = ts.getSourceFileOfNode(node);\n var span = ts.getSpanOfTokenAtPosition(sourceFile, block.statements.pos);\n diagnostics.add(ts.createFileDiagnostic(sourceFile, span.start, span.length, ts.Diagnostics.The_containing_function_or_module_body_is_too_large_for_control_flow_analysis));\n }\n function isReachableFlowNode(flow) {\n var result = isReachableFlowNodeWorker(flow, /*noCacheCheck*/ false);\n lastFlowNode = flow;\n lastFlowNodeReachable = result;\n return result;\n }\n function isFalseExpression(expr) {\n var node = ts.skipParentheses(expr);\n return node.kind === 95 /* FalseKeyword */ || node.kind === 219 /* BinaryExpression */ && (node.operatorToken.kind === 55 /* AmpersandAmpersandToken */ && (isFalseExpression(node.left) || isFalseExpression(node.right)) ||\n node.operatorToken.kind === 56 /* BarBarToken */ && isFalseExpression(node.left) && isFalseExpression(node.right));\n }\n function isReachableFlowNodeWorker(flow, noCacheCheck) {\n while (true) {\n if (flow === lastFlowNode) {\n return lastFlowNodeReachable;\n }\n var flags = flow.flags;\n if (flags & 4096 /* Shared */) {\n if (!noCacheCheck) {\n var id = getFlowNodeId(flow);\n var reachable = flowNodeReachable[id];\n return reachable !== undefined ? reachable : (flowNodeReachable[id] = isReachableFlowNodeWorker(flow, /*noCacheCheck*/ true));\n }\n noCacheCheck = false;\n }\n if (flags & (16 /* Assignment */ | 96 /* Condition */ | 256 /* ArrayMutation */)) {\n flow = flow.antecedent;\n }\n else if (flags & 512 /* Call */) {\n var signature = getEffectsSignature(flow.node);\n if (signature) {\n var predicate = getTypePredicateOfSignature(signature);\n if (predicate && predicate.kind === 3 /* AssertsIdentifier */ && !predicate.type) {\n var predicateArgument = flow.node.arguments[predicate.parameterIndex];\n if (predicateArgument && isFalseExpression(predicateArgument)) {\n return false;\n }\n }\n if (getReturnTypeOfSignature(signature).flags & 131072 /* Never */) {\n return false;\n }\n }\n flow = flow.antecedent;\n }\n else if (flags & 4 /* BranchLabel */) {\n // A branching point is reachable if any branch is reachable.\n return ts.some(flow.antecedents, function (f) { return isReachableFlowNodeWorker(f, /*noCacheCheck*/ false); });\n }\n else if (flags & 8 /* LoopLabel */) {\n var antecedents = flow.antecedents;\n if (antecedents === undefined || antecedents.length === 0) {\n return false;\n }\n // A loop is reachable if the control flow path that leads to the top is reachable.\n flow = antecedents[0];\n }\n else if (flags & 128 /* SwitchClause */) {\n // The control flow path representing an unmatched value in a switch statement with\n // no default clause is unreachable if the switch statement is exhaustive.\n if (flow.clauseStart === flow.clauseEnd && isExhaustiveSwitchStatement(flow.switchStatement)) {\n return false;\n }\n flow = flow.antecedent;\n }\n else if (flags & 1024 /* ReduceLabel */) {\n // Cache is unreliable once we start adjusting labels\n lastFlowNode = undefined;\n var target = flow.target;\n var saveAntecedents = target.antecedents;\n target.antecedents = flow.antecedents;\n var result = isReachableFlowNodeWorker(flow.antecedent, /*noCacheCheck*/ false);\n target.antecedents = saveAntecedents;\n return result;\n }\n else {\n return !(flags & 1 /* Unreachable */);\n }\n }\n }\n // Return true if the given flow node is preceded by a 'super(...)' call in every possible code path\n // leading to the node.\n function isPostSuperFlowNode(flow, noCacheCheck) {\n while (true) {\n var flags = flow.flags;\n if (flags & 4096 /* Shared */) {\n if (!noCacheCheck) {\n var id = getFlowNodeId(flow);\n var postSuper = flowNodePostSuper[id];\n return postSuper !== undefined ? postSuper : (flowNodePostSuper[id] = isPostSuperFlowNode(flow, /*noCacheCheck*/ true));\n }\n noCacheCheck = false;\n }\n if (flags & (16 /* Assignment */ | 96 /* Condition */ | 256 /* ArrayMutation */ | 128 /* SwitchClause */)) {\n flow = flow.antecedent;\n }\n else if (flags & 512 /* Call */) {\n if (flow.node.expression.kind === 106 /* SuperKeyword */) {\n return true;\n }\n flow = flow.antecedent;\n }\n else if (flags & 4 /* BranchLabel */) {\n // A branching point is post-super if every branch is post-super.\n return ts.every(flow.antecedents, function (f) { return isPostSuperFlowNode(f, /*noCacheCheck*/ false); });\n }\n else if (flags & 8 /* LoopLabel */) {\n // A loop is post-super if the control flow path that leads to the top is post-super.\n flow = flow.antecedents[0];\n }\n else if (flags & 1024 /* ReduceLabel */) {\n var target = flow.target;\n var saveAntecedents = target.antecedents;\n target.antecedents = flow.antecedents;\n var result = isPostSuperFlowNode(flow.antecedent, /*noCacheCheck*/ false);\n target.antecedents = saveAntecedents;\n return result;\n }\n else {\n // Unreachable nodes are considered post-super to silence errors\n return !!(flags & 1 /* Unreachable */);\n }\n }\n }\n function isConstantReference(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n var symbol = getResolvedSymbol(node);\n return isConstVariable(symbol) || !!symbol.valueDeclaration && ts.getRootDeclaration(symbol.valueDeclaration).kind === 162 /* Parameter */ && !isParameterAssigned(symbol);\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n // The resolvedSymbol property is initialized by checkPropertyAccess or checkElementAccess before we get here.\n return isConstantReference(node.expression) && isReadonlySymbol(getNodeLinks(node).resolvedSymbol || unknownSymbol);\n }\n return false;\n }\n function getFlowTypeOfReference(reference, declaredType, initialType, flowContainer) {\n if (initialType === void 0) { initialType = declaredType; }\n var key;\n var isKeySet = false;\n var flowDepth = 0;\n var inlineLevel = 0;\n if (flowAnalysisDisabled) {\n return errorType;\n }\n if (!reference.flowNode) {\n return declaredType;\n }\n flowInvocationCount++;\n var sharedFlowStart = sharedFlowCount;\n var evolvedType = getTypeFromFlowType(getTypeAtFlowNode(reference.flowNode));\n sharedFlowCount = sharedFlowStart;\n // When the reference is 'x' in an 'x.length', 'x.push(value)', 'x.unshift(value)' or x[n] = value' operation,\n // we give type 'any[]' to 'x' instead of using the type determined by control flow analysis such that operations\n // on empty arrays are possible without implicit any errors and new element types can be inferred without\n // type mismatch errors.\n var resultType = ts.getObjectFlags(evolvedType) & 256 /* EvolvingArray */ && isEvolvingArrayOperationTarget(reference) ? autoArrayType : finalizeEvolvingArrayType(evolvedType);\n if (resultType === unreachableNeverType || reference.parent && reference.parent.kind === 228 /* NonNullExpression */ && !(resultType.flags & 131072 /* Never */) && getTypeWithFacts(resultType, 2097152 /* NEUndefinedOrNull */).flags & 131072 /* Never */) {\n return declaredType;\n }\n return resultType;\n function getOrSetCacheKey() {\n if (isKeySet) {\n return key;\n }\n isKeySet = true;\n return key = getFlowCacheKey(reference, declaredType, initialType, flowContainer);\n }\n function getTypeAtFlowNode(flow) {\n if (flowDepth === 2000) {\n // We have made 2000 recursive invocations. To avoid overflowing the call stack we report an error\n // and disable further control flow analysis in the containing function or module body.\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"checkTypes\" /* CheckTypes */, \"getTypeAtFlowNode_DepthLimit\", { flowId: flow.id });\n flowAnalysisDisabled = true;\n reportFlowControlError(reference);\n return errorType;\n }\n flowDepth++;\n var sharedFlow;\n while (true) {\n var flags = flow.flags;\n if (flags & 4096 /* Shared */) {\n // We cache results of flow type resolution for shared nodes that were previously visited in\n // the same getFlowTypeOfReference invocation. A node is considered shared when it is the\n // antecedent of more than one node.\n for (var i = sharedFlowStart; i < sharedFlowCount; i++) {\n if (sharedFlowNodes[i] === flow) {\n flowDepth--;\n return sharedFlowTypes[i];\n }\n }\n sharedFlow = flow;\n }\n var type = void 0;\n if (flags & 16 /* Assignment */) {\n type = getTypeAtFlowAssignment(flow);\n if (!type) {\n flow = flow.antecedent;\n continue;\n }\n }\n else if (flags & 512 /* Call */) {\n type = getTypeAtFlowCall(flow);\n if (!type) {\n flow = flow.antecedent;\n continue;\n }\n }\n else if (flags & 96 /* Condition */) {\n type = getTypeAtFlowCondition(flow);\n }\n else if (flags & 128 /* SwitchClause */) {\n type = getTypeAtSwitchClause(flow);\n }\n else if (flags & 12 /* Label */) {\n if (flow.antecedents.length === 1) {\n flow = flow.antecedents[0];\n continue;\n }\n type = flags & 4 /* BranchLabel */ ?\n getTypeAtFlowBranchLabel(flow) :\n getTypeAtFlowLoopLabel(flow);\n }\n else if (flags & 256 /* ArrayMutation */) {\n type = getTypeAtFlowArrayMutation(flow);\n if (!type) {\n flow = flow.antecedent;\n continue;\n }\n }\n else if (flags & 1024 /* ReduceLabel */) {\n var target = flow.target;\n var saveAntecedents = target.antecedents;\n target.antecedents = flow.antecedents;\n type = getTypeAtFlowNode(flow.antecedent);\n target.antecedents = saveAntecedents;\n }\n else if (flags & 2 /* Start */) {\n // Check if we should continue with the control flow of the containing function.\n var container = flow.node;\n if (container && container !== flowContainer &&\n reference.kind !== 204 /* PropertyAccessExpression */ &&\n reference.kind !== 205 /* ElementAccessExpression */ &&\n reference.kind !== 108 /* ThisKeyword */) {\n flow = container.flowNode;\n continue;\n }\n // At the top of the flow we have the initial type.\n type = initialType;\n }\n else {\n // Unreachable code errors are reported in the binding phase. Here we\n // simply return the non-auto declared type to reduce follow-on errors.\n type = convertAutoToAny(declaredType);\n }\n if (sharedFlow) {\n // Record visited node and the associated type in the cache.\n sharedFlowNodes[sharedFlowCount] = sharedFlow;\n sharedFlowTypes[sharedFlowCount] = type;\n sharedFlowCount++;\n }\n flowDepth--;\n return type;\n }\n }\n function getInitialOrAssignedType(flow) {\n var node = flow.node;\n return getNarrowableTypeForReference(node.kind === 252 /* VariableDeclaration */ || node.kind === 201 /* BindingElement */ ?\n getInitialType(node) :\n getAssignedType(node), reference);\n }\n function getTypeAtFlowAssignment(flow) {\n var node = flow.node;\n // Assignments only narrow the computed type if the declared type is a union type. Thus, we\n // only need to evaluate the assigned type if the declared type is a union type.\n if (isMatchingReference(reference, node)) {\n if (!isReachableFlowNode(flow)) {\n return unreachableNeverType;\n }\n if (ts.getAssignmentTargetKind(node) === 2 /* Compound */) {\n var flowType = getTypeAtFlowNode(flow.antecedent);\n return createFlowType(getBaseTypeOfLiteralType(getTypeFromFlowType(flowType)), isIncomplete(flowType));\n }\n if (declaredType === autoType || declaredType === autoArrayType) {\n if (isEmptyArrayAssignment(node)) {\n return getEvolvingArrayType(neverType);\n }\n var assignedType = getWidenedLiteralType(getInitialOrAssignedType(flow));\n return isTypeAssignableTo(assignedType, declaredType) ? assignedType : anyArrayType;\n }\n if (declaredType.flags & 1048576 /* Union */) {\n return getAssignmentReducedType(declaredType, getInitialOrAssignedType(flow));\n }\n return declaredType;\n }\n // We didn't have a direct match. However, if the reference is a dotted name, this\n // may be an assignment to a left hand part of the reference. For example, for a\n // reference 'x.y.z', we may be at an assignment to 'x.y' or 'x'. In that case,\n // return the declared type.\n if (containsMatchingReference(reference, node)) {\n if (!isReachableFlowNode(flow)) {\n return unreachableNeverType;\n }\n // A matching dotted name might also be an expando property on a function *expression*,\n // in which case we continue control flow analysis back to the function's declaration\n if (ts.isVariableDeclaration(node) && (ts.isInJSFile(node) || ts.isVarConst(node))) {\n var init = ts.getDeclaredExpandoInitializer(node);\n if (init && (init.kind === 211 /* FunctionExpression */ || init.kind === 212 /* ArrowFunction */)) {\n return getTypeAtFlowNode(flow.antecedent);\n }\n }\n return declaredType;\n }\n // for (const _ in ref) acts as a nonnull on ref\n if (ts.isVariableDeclaration(node) && node.parent.parent.kind === 241 /* ForInStatement */ && isMatchingReference(reference, node.parent.parent.expression)) {\n return getNonNullableTypeIfNeeded(getTypeFromFlowType(getTypeAtFlowNode(flow.antecedent)));\n }\n // Assignment doesn't affect reference\n return undefined;\n }\n function narrowTypeByAssertion(type, expr) {\n var node = ts.skipParentheses(expr);\n if (node.kind === 95 /* FalseKeyword */) {\n return unreachableNeverType;\n }\n if (node.kind === 219 /* BinaryExpression */) {\n if (node.operatorToken.kind === 55 /* AmpersandAmpersandToken */) {\n return narrowTypeByAssertion(narrowTypeByAssertion(type, node.left), node.right);\n }\n if (node.operatorToken.kind === 56 /* BarBarToken */) {\n return getUnionType([narrowTypeByAssertion(type, node.left), narrowTypeByAssertion(type, node.right)]);\n }\n }\n return narrowType(type, node, /*assumeTrue*/ true);\n }\n function getTypeAtFlowCall(flow) {\n var signature = getEffectsSignature(flow.node);\n if (signature) {\n var predicate = getTypePredicateOfSignature(signature);\n if (predicate && (predicate.kind === 2 /* AssertsThis */ || predicate.kind === 3 /* AssertsIdentifier */)) {\n var flowType = getTypeAtFlowNode(flow.antecedent);\n var type = finalizeEvolvingArrayType(getTypeFromFlowType(flowType));\n var narrowedType = predicate.type ? narrowTypeByTypePredicate(type, predicate, flow.node, /*assumeTrue*/ true) :\n predicate.kind === 3 /* AssertsIdentifier */ && predicate.parameterIndex >= 0 && predicate.parameterIndex < flow.node.arguments.length ? narrowTypeByAssertion(type, flow.node.arguments[predicate.parameterIndex]) :\n type;\n return narrowedType === type ? flowType : createFlowType(narrowedType, isIncomplete(flowType));\n }\n if (getReturnTypeOfSignature(signature).flags & 131072 /* Never */) {\n return unreachableNeverType;\n }\n }\n return undefined;\n }\n function getTypeAtFlowArrayMutation(flow) {\n if (declaredType === autoType || declaredType === autoArrayType) {\n var node = flow.node;\n var expr = node.kind === 206 /* CallExpression */ ?\n node.expression.expression :\n node.left.expression;\n if (isMatchingReference(reference, getReferenceCandidate(expr))) {\n var flowType = getTypeAtFlowNode(flow.antecedent);\n var type = getTypeFromFlowType(flowType);\n if (ts.getObjectFlags(type) & 256 /* EvolvingArray */) {\n var evolvedType_1 = type;\n if (node.kind === 206 /* CallExpression */) {\n for (var _i = 0, _a = node.arguments; _i < _a.length; _i++) {\n var arg = _a[_i];\n evolvedType_1 = addEvolvingArrayElementType(evolvedType_1, arg);\n }\n }\n else {\n // We must get the context free expression type so as to not recur in an uncached fashion on the LHS (which causes exponential blowup in compile time)\n var indexType = getContextFreeTypeOfExpression(node.left.argumentExpression);\n if (isTypeAssignableToKind(indexType, 296 /* NumberLike */)) {\n evolvedType_1 = addEvolvingArrayElementType(evolvedType_1, node.right);\n }\n }\n return evolvedType_1 === type ? flowType : createFlowType(evolvedType_1, isIncomplete(flowType));\n }\n return flowType;\n }\n }\n return undefined;\n }\n function getTypeAtFlowCondition(flow) {\n var flowType = getTypeAtFlowNode(flow.antecedent);\n var type = getTypeFromFlowType(flowType);\n if (type.flags & 131072 /* Never */) {\n return flowType;\n }\n // If we have an antecedent type (meaning we're reachable in some way), we first\n // attempt to narrow the antecedent type. If that produces the never type, and if\n // the antecedent type is incomplete (i.e. a transient type in a loop), then we\n // take the type guard as an indication that control *could* reach here once we\n // have the complete type. We proceed by switching to the silent never type which\n // doesn't report errors when operators are applied to it. Note that this is the\n // *only* place a silent never type is ever generated.\n var assumeTrue = (flow.flags & 32 /* TrueCondition */) !== 0;\n var nonEvolvingType = finalizeEvolvingArrayType(type);\n var narrowedType = narrowType(nonEvolvingType, flow.node, assumeTrue);\n if (narrowedType === nonEvolvingType) {\n return flowType;\n }\n return createFlowType(narrowedType, isIncomplete(flowType));\n }\n function getTypeAtSwitchClause(flow) {\n var expr = flow.switchStatement.expression;\n var flowType = getTypeAtFlowNode(flow.antecedent);\n var type = getTypeFromFlowType(flowType);\n if (isMatchingReference(reference, expr)) {\n type = narrowTypeBySwitchOnDiscriminant(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);\n }\n else if (expr.kind === 214 /* TypeOfExpression */ && isMatchingReference(reference, expr.expression)) {\n type = narrowBySwitchOnTypeOf(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd);\n }\n else {\n if (strictNullChecks) {\n if (optionalChainContainsReference(expr, reference)) {\n type = narrowTypeBySwitchOptionalChainContainment(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd, function (t) { return !(t.flags & (32768 /* Undefined */ | 131072 /* Never */)); });\n }\n else if (expr.kind === 214 /* TypeOfExpression */ && optionalChainContainsReference(expr.expression, reference)) {\n type = narrowTypeBySwitchOptionalChainContainment(type, flow.switchStatement, flow.clauseStart, flow.clauseEnd, function (t) { return !(t.flags & 131072 /* Never */ || t.flags & 128 /* StringLiteral */ && t.value === \"undefined\"); });\n }\n }\n var access = getDiscriminantPropertyAccess(expr, type);\n if (access) {\n type = narrowTypeBySwitchOnDiscriminantProperty(type, access, flow.switchStatement, flow.clauseStart, flow.clauseEnd);\n }\n }\n return createFlowType(type, isIncomplete(flowType));\n }\n function getTypeAtFlowBranchLabel(flow) {\n var antecedentTypes = [];\n var subtypeReduction = false;\n var seenIncomplete = false;\n var bypassFlow;\n for (var _i = 0, _a = flow.antecedents; _i < _a.length; _i++) {\n var antecedent = _a[_i];\n if (!bypassFlow && antecedent.flags & 128 /* SwitchClause */ && antecedent.clauseStart === antecedent.clauseEnd) {\n // The antecedent is the bypass branch of a potentially exhaustive switch statement.\n bypassFlow = antecedent;\n continue;\n }\n var flowType = getTypeAtFlowNode(antecedent);\n var type = getTypeFromFlowType(flowType);\n // If the type at a particular antecedent path is the declared type and the\n // reference is known to always be assigned (i.e. when declared and initial types\n // are the same), there is no reason to process more antecedents since the only\n // possible outcome is subtypes that will be removed in the final union type anyway.\n if (type === declaredType && declaredType === initialType) {\n return type;\n }\n ts.pushIfUnique(antecedentTypes, type);\n // If an antecedent type is not a subset of the declared type, we need to perform\n // subtype reduction. This happens when a \"foreign\" type is injected into the control\n // flow using the instanceof operator or a user defined type predicate.\n if (!isTypeSubsetOf(type, declaredType)) {\n subtypeReduction = true;\n }\n if (isIncomplete(flowType)) {\n seenIncomplete = true;\n }\n }\n if (bypassFlow) {\n var flowType = getTypeAtFlowNode(bypassFlow);\n var type = getTypeFromFlowType(flowType);\n // If the bypass flow contributes a type we haven't seen yet and the switch statement\n // isn't exhaustive, process the bypass flow type. Since exhaustiveness checks increase\n // the risk of circularities, we only want to perform them when they make a difference.\n if (!ts.contains(antecedentTypes, type) && !isExhaustiveSwitchStatement(bypassFlow.switchStatement)) {\n if (type === declaredType && declaredType === initialType) {\n return type;\n }\n antecedentTypes.push(type);\n if (!isTypeSubsetOf(type, declaredType)) {\n subtypeReduction = true;\n }\n if (isIncomplete(flowType)) {\n seenIncomplete = true;\n }\n }\n }\n return createFlowType(getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 /* Subtype */ : 1 /* Literal */), seenIncomplete);\n }\n function getTypeAtFlowLoopLabel(flow) {\n // If we have previously computed the control flow type for the reference at\n // this flow loop junction, return the cached type.\n var id = getFlowNodeId(flow);\n var cache = flowLoopCaches[id] || (flowLoopCaches[id] = new ts.Map());\n var key = getOrSetCacheKey();\n if (!key) {\n // No cache key is generated when binding patterns are in unnarrowable situations\n return declaredType;\n }\n var cached = cache.get(key);\n if (cached) {\n return cached;\n }\n // If this flow loop junction and reference are already being processed, return\n // the union of the types computed for each branch so far, marked as incomplete.\n // It is possible to see an empty array in cases where loops are nested and the\n // back edge of the outer loop reaches an inner loop that is already being analyzed.\n // In such cases we restart the analysis of the inner loop, which will then see\n // a non-empty in-process array for the outer loop and eventually terminate because\n // the first antecedent of a loop junction is always the non-looping control flow\n // path that leads to the top.\n for (var i = flowLoopStart; i < flowLoopCount; i++) {\n if (flowLoopNodes[i] === flow && flowLoopKeys[i] === key && flowLoopTypes[i].length) {\n return createFlowType(getUnionOrEvolvingArrayType(flowLoopTypes[i], 1 /* Literal */), /*incomplete*/ true);\n }\n }\n // Add the flow loop junction and reference to the in-process stack and analyze\n // each antecedent code path.\n var antecedentTypes = [];\n var subtypeReduction = false;\n var firstAntecedentType;\n for (var _i = 0, _a = flow.antecedents; _i < _a.length; _i++) {\n var antecedent = _a[_i];\n var flowType = void 0;\n if (!firstAntecedentType) {\n // The first antecedent of a loop junction is always the non-looping control\n // flow path that leads to the top.\n flowType = firstAntecedentType = getTypeAtFlowNode(antecedent);\n }\n else {\n // All but the first antecedent are the looping control flow paths that lead\n // back to the loop junction. We track these on the flow loop stack.\n flowLoopNodes[flowLoopCount] = flow;\n flowLoopKeys[flowLoopCount] = key;\n flowLoopTypes[flowLoopCount] = antecedentTypes;\n flowLoopCount++;\n var saveFlowTypeCache = flowTypeCache;\n flowTypeCache = undefined;\n flowType = getTypeAtFlowNode(antecedent);\n flowTypeCache = saveFlowTypeCache;\n flowLoopCount--;\n // If we see a value appear in the cache it is a sign that control flow analysis\n // was restarted and completed by checkExpressionCached. We can simply pick up\n // the resulting type and bail out.\n var cached_1 = cache.get(key);\n if (cached_1) {\n return cached_1;\n }\n }\n var type = getTypeFromFlowType(flowType);\n ts.pushIfUnique(antecedentTypes, type);\n // If an antecedent type is not a subset of the declared type, we need to perform\n // subtype reduction. This happens when a \"foreign\" type is injected into the control\n // flow using the instanceof operator or a user defined type predicate.\n if (!isTypeSubsetOf(type, declaredType)) {\n subtypeReduction = true;\n }\n // If the type at a particular antecedent path is the declared type there is no\n // reason to process more antecedents since the only possible outcome is subtypes\n // that will be removed in the final union type anyway.\n if (type === declaredType) {\n break;\n }\n }\n // The result is incomplete if the first antecedent (the non-looping control flow path)\n // is incomplete.\n var result = getUnionOrEvolvingArrayType(antecedentTypes, subtypeReduction ? 2 /* Subtype */ : 1 /* Literal */);\n if (isIncomplete(firstAntecedentType)) {\n return createFlowType(result, /*incomplete*/ true);\n }\n cache.set(key, result);\n return result;\n }\n // At flow control branch or loop junctions, if the type along every antecedent code path\n // is an evolving array type, we construct a combined evolving array type. Otherwise we\n // finalize all evolving array types.\n function getUnionOrEvolvingArrayType(types, subtypeReduction) {\n if (isEvolvingArrayTypeList(types)) {\n return getEvolvingArrayType(getUnionType(ts.map(types, getElementTypeOfEvolvingArrayType)));\n }\n var result = getUnionType(ts.sameMap(types, finalizeEvolvingArrayType), subtypeReduction);\n if (result !== declaredType && result.flags & declaredType.flags & 1048576 /* Union */ && ts.arraysEqual(result.types, declaredType.types)) {\n return declaredType;\n }\n return result;\n }\n function getDiscriminantPropertyAccess(expr, computedType) {\n var access, name;\n var type = declaredType.flags & 1048576 /* Union */ ? declaredType : computedType;\n return type.flags & 1048576 /* Union */ && (access = getPropertyAccess(expr)) && (name = getAccessedPropertyName(access)) &&\n isMatchingReference(reference, ts.isAccessExpression(access) ? access.expression : access.parent.parent.initializer) &&\n isDiscriminantProperty(type, name) ?\n access : undefined;\n }\n function narrowTypeByDiscriminant(type, access, narrowType) {\n var propName = getAccessedPropertyName(access);\n if (propName === undefined) {\n return type;\n }\n var removeNullable = strictNullChecks && ts.isOptionalChain(access) && maybeTypeOfKind(type, 98304 /* Nullable */);\n var propType = getTypeOfPropertyOfType(removeNullable ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type, propName);\n if (!propType) {\n return type;\n }\n propType = removeNullable ? getOptionalType(propType) : propType;\n var narrowedPropType = narrowType(propType);\n return filterType(type, function (t) {\n var discriminantType = getTypeOfPropertyOrIndexSignature(t, propName);\n return !(discriminantType.flags & 131072 /* Never */) && isTypeComparableTo(discriminantType, narrowedPropType);\n });\n }\n function narrowTypeByDiscriminantProperty(type, access, operator, value, assumeTrue) {\n if ((operator === 36 /* EqualsEqualsEqualsToken */ || operator === 37 /* ExclamationEqualsEqualsToken */) && type.flags & 1048576 /* Union */) {\n var keyPropertyName = getKeyPropertyName(type);\n if (keyPropertyName && keyPropertyName === getAccessedPropertyName(access)) {\n var candidate = getConstituentTypeForKeyType(type, getTypeOfExpression(value));\n if (candidate) {\n return operator === (assumeTrue ? 36 /* EqualsEqualsEqualsToken */ : 37 /* ExclamationEqualsEqualsToken */) ? candidate :\n isUnitType(getTypeOfPropertyOfType(candidate, keyPropertyName) || unknownType) ? removeType(type, candidate) :\n type;\n }\n }\n }\n return narrowTypeByDiscriminant(type, access, function (t) { return narrowTypeByEquality(t, operator, value, assumeTrue); });\n }\n function narrowTypeBySwitchOnDiscriminantProperty(type, access, switchStatement, clauseStart, clauseEnd) {\n if (clauseStart < clauseEnd && type.flags & 1048576 /* Union */ && getKeyPropertyName(type) === getAccessedPropertyName(access)) {\n var clauseTypes = getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd);\n var candidate = getUnionType(ts.map(clauseTypes, function (t) { return getConstituentTypeForKeyType(type, t) || unknownType; }));\n if (candidate !== unknownType) {\n return candidate;\n }\n }\n return narrowTypeByDiscriminant(type, access, function (t) { return narrowTypeBySwitchOnDiscriminant(t, switchStatement, clauseStart, clauseEnd); });\n }\n function narrowTypeByTruthiness(type, expr, assumeTrue) {\n if (isMatchingReference(reference, expr)) {\n return getTypeWithFacts(type, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */);\n }\n if (strictNullChecks && assumeTrue && optionalChainContainsReference(expr, reference)) {\n type = getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */);\n }\n var access = getDiscriminantPropertyAccess(expr, type);\n if (access) {\n return narrowTypeByDiscriminant(type, access, function (t) { return getTypeWithFacts(t, assumeTrue ? 4194304 /* Truthy */ : 8388608 /* Falsy */); });\n }\n return type;\n }\n function isTypePresencePossible(type, propName, assumeTrue) {\n var prop = getPropertyOfType(type, propName);\n if (prop) {\n return prop.flags & 16777216 /* Optional */ ? true : assumeTrue;\n }\n return getApplicableIndexInfoForName(type, propName) ? true : !assumeTrue;\n }\n function narrowByInKeyword(type, name, assumeTrue) {\n if (type.flags & 1048576 /* Union */\n || type.flags & 524288 /* Object */ && declaredType !== type\n || isThisTypeParameter(type)\n || type.flags & 2097152 /* Intersection */ && ts.every(type.types, function (t) { return t.symbol !== globalThisSymbol; })) {\n return filterType(type, function (t) { return isTypePresencePossible(t, name, assumeTrue); });\n }\n return type;\n }\n function narrowTypeByBinaryExpression(type, expr, assumeTrue) {\n switch (expr.operatorToken.kind) {\n case 63 /* EqualsToken */:\n case 75 /* BarBarEqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return narrowTypeByTruthiness(narrowType(type, expr.right, assumeTrue), expr.left, assumeTrue);\n case 34 /* EqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n case 36 /* EqualsEqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n var operator = expr.operatorToken.kind;\n var left = getReferenceCandidate(expr.left);\n var right = getReferenceCandidate(expr.right);\n if (left.kind === 214 /* TypeOfExpression */ && ts.isStringLiteralLike(right)) {\n return narrowTypeByTypeof(type, left, operator, right, assumeTrue);\n }\n if (right.kind === 214 /* TypeOfExpression */ && ts.isStringLiteralLike(left)) {\n return narrowTypeByTypeof(type, right, operator, left, assumeTrue);\n }\n if (isMatchingReference(reference, left)) {\n return narrowTypeByEquality(type, operator, right, assumeTrue);\n }\n if (isMatchingReference(reference, right)) {\n return narrowTypeByEquality(type, operator, left, assumeTrue);\n }\n if (strictNullChecks) {\n if (optionalChainContainsReference(left, reference)) {\n type = narrowTypeByOptionalChainContainment(type, operator, right, assumeTrue);\n }\n else if (optionalChainContainsReference(right, reference)) {\n type = narrowTypeByOptionalChainContainment(type, operator, left, assumeTrue);\n }\n }\n var leftAccess = getDiscriminantPropertyAccess(left, type);\n if (leftAccess) {\n return narrowTypeByDiscriminantProperty(type, leftAccess, operator, right, assumeTrue);\n }\n var rightAccess = getDiscriminantPropertyAccess(right, type);\n if (rightAccess) {\n return narrowTypeByDiscriminantProperty(type, rightAccess, operator, left, assumeTrue);\n }\n if (isMatchingConstructorReference(left)) {\n return narrowTypeByConstructor(type, operator, right, assumeTrue);\n }\n if (isMatchingConstructorReference(right)) {\n return narrowTypeByConstructor(type, operator, left, assumeTrue);\n }\n break;\n case 102 /* InstanceOfKeyword */:\n return narrowTypeByInstanceof(type, expr, assumeTrue);\n case 101 /* InKeyword */:\n var target = getReferenceCandidate(expr.right);\n var leftType = getTypeOfNode(expr.left);\n if (leftType.flags & 128 /* StringLiteral */) {\n var name = ts.escapeLeadingUnderscores(leftType.value);\n if (containsMissingType(type) && ts.isAccessExpression(reference) && isMatchingReference(reference.expression, target) &&\n getAccessedPropertyName(reference) === name) {\n return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */);\n }\n if (isMatchingReference(reference, target)) {\n return narrowByInKeyword(type, name, assumeTrue);\n }\n }\n break;\n case 27 /* CommaToken */:\n return narrowType(type, expr.right, assumeTrue);\n // Ordinarily we won't see && and || expressions in control flow analysis because the Binder breaks those\n // expressions down to individual conditional control flows. However, we may encounter them when analyzing\n // aliased conditional expressions.\n case 55 /* AmpersandAmpersandToken */:\n return assumeTrue ?\n narrowType(narrowType(type, expr.left, /*assumeTrue*/ true), expr.right, /*assumeTrue*/ true) :\n getUnionType([narrowType(type, expr.left, /*assumeTrue*/ false), narrowType(type, expr.right, /*assumeTrue*/ false)]);\n case 56 /* BarBarToken */:\n return assumeTrue ?\n getUnionType([narrowType(type, expr.left, /*assumeTrue*/ true), narrowType(type, expr.right, /*assumeTrue*/ true)]) :\n narrowType(narrowType(type, expr.left, /*assumeTrue*/ false), expr.right, /*assumeTrue*/ false);\n }\n return type;\n }\n function narrowTypeByOptionalChainContainment(type, operator, value, assumeTrue) {\n // We are in a branch of obj?.foo === value (or any one of the other equality operators). We narrow obj as follows:\n // When operator is === and type of value excludes undefined, null and undefined is removed from type of obj in true branch.\n // When operator is !== and type of value excludes undefined, null and undefined is removed from type of obj in false branch.\n // When operator is == and type of value excludes null and undefined, null and undefined is removed from type of obj in true branch.\n // When operator is != and type of value excludes null and undefined, null and undefined is removed from type of obj in false branch.\n // When operator is === and type of value is undefined, null and undefined is removed from type of obj in false branch.\n // When operator is !== and type of value is undefined, null and undefined is removed from type of obj in true branch.\n // When operator is == and type of value is null or undefined, null and undefined is removed from type of obj in false branch.\n // When operator is != and type of value is null or undefined, null and undefined is removed from type of obj in true branch.\n var equalsOperator = operator === 34 /* EqualsEqualsToken */ || operator === 36 /* EqualsEqualsEqualsToken */;\n var nullableFlags = operator === 34 /* EqualsEqualsToken */ || operator === 35 /* ExclamationEqualsToken */ ? 98304 /* Nullable */ : 32768 /* Undefined */;\n var valueType = getTypeOfExpression(value);\n // Note that we include any and unknown in the exclusion test because their domain includes null and undefined.\n var removeNullable = equalsOperator !== assumeTrue && everyType(valueType, function (t) { return !!(t.flags & nullableFlags); }) ||\n equalsOperator === assumeTrue && everyType(valueType, function (t) { return !(t.flags & (3 /* AnyOrUnknown */ | nullableFlags)); });\n return removeNullable ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type;\n }\n function narrowTypeByEquality(type, operator, value, assumeTrue) {\n if (type.flags & 1 /* Any */) {\n return type;\n }\n if (operator === 35 /* ExclamationEqualsToken */ || operator === 37 /* ExclamationEqualsEqualsToken */) {\n assumeTrue = !assumeTrue;\n }\n var valueType = getTypeOfExpression(value);\n if ((type.flags & 2 /* Unknown */) && assumeTrue && (operator === 36 /* EqualsEqualsEqualsToken */ || operator === 37 /* ExclamationEqualsEqualsToken */)) {\n if (valueType.flags & (131068 /* Primitive */ | 67108864 /* NonPrimitive */)) {\n return valueType;\n }\n if (valueType.flags & 524288 /* Object */) {\n return nonPrimitiveType;\n }\n return type;\n }\n if (valueType.flags & 98304 /* Nullable */) {\n if (!strictNullChecks) {\n return type;\n }\n var doubleEquals = operator === 34 /* EqualsEqualsToken */ || operator === 35 /* ExclamationEqualsToken */;\n var facts = doubleEquals ?\n assumeTrue ? 262144 /* EQUndefinedOrNull */ : 2097152 /* NEUndefinedOrNull */ :\n valueType.flags & 65536 /* Null */ ?\n assumeTrue ? 131072 /* EQNull */ : 1048576 /* NENull */ :\n assumeTrue ? 65536 /* EQUndefined */ : 524288 /* NEUndefined */;\n return getTypeWithFacts(type, facts);\n }\n if (assumeTrue) {\n var filterFn = operator === 34 /* EqualsEqualsToken */ ?\n function (t) { return areTypesComparable(t, valueType) || isCoercibleUnderDoubleEquals(t, valueType); } :\n function (t) { return areTypesComparable(t, valueType); };\n return replacePrimitivesWithLiterals(filterType(type, filterFn), valueType);\n }\n if (isUnitType(valueType)) {\n return filterType(type, function (t) { return !(isUnitLikeType(t) && areTypesComparable(t, valueType)); });\n }\n return type;\n }\n function narrowTypeByTypeof(type, typeOfExpr, operator, literal, assumeTrue) {\n // We have '==', '!=', '===', or !==' operator with 'typeof xxx' and string literal operands\n if (operator === 35 /* ExclamationEqualsToken */ || operator === 37 /* ExclamationEqualsEqualsToken */) {\n assumeTrue = !assumeTrue;\n }\n var target = getReferenceCandidate(typeOfExpr.expression);\n if (!isMatchingReference(reference, target)) {\n if (strictNullChecks && optionalChainContainsReference(target, reference) && assumeTrue === (literal.text !== \"undefined\")) {\n return getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */);\n }\n return type;\n }\n if (type.flags & 1 /* Any */ && literal.text === \"function\") {\n return type;\n }\n if (assumeTrue && type.flags & 2 /* Unknown */ && literal.text === \"object\") {\n // The pattern x && typeof x === 'object', where x is of type unknown, narrows x to type object. We don't\n // need to check for the reverse typeof x === 'object' && x since that already narrows correctly.\n if (typeOfExpr.parent.parent.kind === 219 /* BinaryExpression */) {\n var expr = typeOfExpr.parent.parent;\n if (expr.operatorToken.kind === 55 /* AmpersandAmpersandToken */ && expr.right === typeOfExpr.parent && containsTruthyCheck(reference, expr.left)) {\n return nonPrimitiveType;\n }\n }\n return getUnionType([nonPrimitiveType, nullType]);\n }\n var facts = assumeTrue ?\n typeofEQFacts.get(literal.text) || 128 /* TypeofEQHostObject */ :\n typeofNEFacts.get(literal.text) || 32768 /* TypeofNEHostObject */;\n var impliedType = getImpliedTypeFromTypeofGuard(type, literal.text);\n return getTypeWithFacts(assumeTrue && impliedType ? mapType(type, narrowUnionMemberByTypeof(impliedType)) : type, facts);\n }\n function narrowTypeBySwitchOptionalChainContainment(type, switchStatement, clauseStart, clauseEnd, clauseCheck) {\n var everyClauseChecks = clauseStart !== clauseEnd && ts.every(getSwitchClauseTypes(switchStatement).slice(clauseStart, clauseEnd), clauseCheck);\n return everyClauseChecks ? getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */) : type;\n }\n function narrowTypeBySwitchOnDiscriminant(type, switchStatement, clauseStart, clauseEnd) {\n // We only narrow if all case expressions specify\n // values with unit types, except for the case where\n // `type` is unknown. In this instance we map object\n // types to the nonPrimitive type and narrow with that.\n var switchTypes = getSwitchClauseTypes(switchStatement);\n if (!switchTypes.length) {\n return type;\n }\n var clauseTypes = switchTypes.slice(clauseStart, clauseEnd);\n var hasDefaultClause = clauseStart === clauseEnd || ts.contains(clauseTypes, neverType);\n if ((type.flags & 2 /* Unknown */) && !hasDefaultClause) {\n var groundClauseTypes = void 0;\n for (var i = 0; i < clauseTypes.length; i += 1) {\n var t = clauseTypes[i];\n if (t.flags & (131068 /* Primitive */ | 67108864 /* NonPrimitive */)) {\n if (groundClauseTypes !== undefined) {\n groundClauseTypes.push(t);\n }\n }\n else if (t.flags & 524288 /* Object */) {\n if (groundClauseTypes === undefined) {\n groundClauseTypes = clauseTypes.slice(0, i);\n }\n groundClauseTypes.push(nonPrimitiveType);\n }\n else {\n return type;\n }\n }\n return getUnionType(groundClauseTypes === undefined ? clauseTypes : groundClauseTypes);\n }\n var discriminantType = getUnionType(clauseTypes);\n var caseType = discriminantType.flags & 131072 /* Never */ ? neverType :\n replacePrimitivesWithLiterals(filterType(type, function (t) { return areTypesComparable(discriminantType, t); }), discriminantType);\n if (!hasDefaultClause) {\n return caseType;\n }\n var defaultType = filterType(type, function (t) { return !(isUnitLikeType(t) && ts.contains(switchTypes, getRegularTypeOfLiteralType(extractUnitType(t)))); });\n return caseType.flags & 131072 /* Never */ ? defaultType : getUnionType([caseType, defaultType]);\n }\n function getImpliedTypeFromTypeofGuard(type, text) {\n switch (text) {\n case \"function\":\n return type.flags & 1 /* Any */ ? type : globalFunctionType;\n case \"object\":\n return type.flags & 2 /* Unknown */ ? getUnionType([nonPrimitiveType, nullType]) : type;\n default:\n return typeofTypesByName.get(text);\n }\n }\n // When narrowing a union type by a `typeof` guard using type-facts alone, constituent types that are\n // super-types of the implied guard will be retained in the final type: this is because type-facts only\n // filter. Instead, we would like to replace those union constituents with the more precise type implied by\n // the guard. For example: narrowing `{} | undefined` by `\"boolean\"` should produce the type `boolean`, not\n // the filtered type `{}`. For this reason we narrow constituents of the union individually, in addition to\n // filtering by type-facts.\n function narrowUnionMemberByTypeof(candidate) {\n return function (type) {\n if (isTypeSubtypeOf(type, candidate)) {\n return type;\n }\n if (isTypeSubtypeOf(candidate, type)) {\n return candidate;\n }\n if (type.flags & 465829888 /* Instantiable */) {\n var constraint = getBaseConstraintOfType(type) || anyType;\n if (isTypeSubtypeOf(candidate, constraint)) {\n return getIntersectionType([type, candidate]);\n }\n }\n return type;\n };\n }\n function narrowBySwitchOnTypeOf(type, switchStatement, clauseStart, clauseEnd) {\n var switchWitnesses = getSwitchClauseTypeOfWitnesses(switchStatement, /*retainDefault*/ true);\n if (!switchWitnesses.length) {\n return type;\n }\n // Equal start and end denotes implicit fallthrough; undefined marks explicit default clause\n var defaultCaseLocation = ts.findIndex(switchWitnesses, function (elem) { return elem === undefined; });\n var hasDefaultClause = clauseStart === clauseEnd || (defaultCaseLocation >= clauseStart && defaultCaseLocation < clauseEnd);\n var clauseWitnesses;\n var switchFacts;\n if (defaultCaseLocation > -1) {\n // We no longer need the undefined denoting an explicit default case. Remove the undefined and\n // fix-up clauseStart and clauseEnd. This means that we don't have to worry about undefined in the\n // witness array.\n var witnesses = switchWitnesses.filter(function (witness) { return witness !== undefined; });\n // The adjusted clause start and end after removing the `default` statement.\n var fixedClauseStart = defaultCaseLocation < clauseStart ? clauseStart - 1 : clauseStart;\n var fixedClauseEnd = defaultCaseLocation < clauseEnd ? clauseEnd - 1 : clauseEnd;\n clauseWitnesses = witnesses.slice(fixedClauseStart, fixedClauseEnd);\n switchFacts = getFactsFromTypeofSwitch(fixedClauseStart, fixedClauseEnd, witnesses, hasDefaultClause);\n }\n else {\n clauseWitnesses = switchWitnesses.slice(clauseStart, clauseEnd);\n switchFacts = getFactsFromTypeofSwitch(clauseStart, clauseEnd, switchWitnesses, hasDefaultClause);\n }\n if (hasDefaultClause) {\n return filterType(type, function (t) { return (getTypeFacts(t) & switchFacts) === switchFacts; });\n }\n /*\n The implied type is the raw type suggested by a\n value being caught in this clause.\n\n When the clause contains a default case we ignore\n the implied type and try to narrow using any facts\n we can learn: see `switchFacts`.\n\n Example:\n switch (typeof x) {\n case 'number':\n case 'string': break;\n default: break;\n case 'number':\n case 'boolean': break\n }\n\n In the first clause (case `number` and `string`) the\n implied type is number | string.\n\n In the default clause we de not compute an implied type.\n\n In the third clause (case `number` and `boolean`)\n the naive implied type is number | boolean, however\n we use the type facts to narrow the implied type to\n boolean. We know that number cannot be selected\n because it is caught in the first clause.\n */\n var impliedType = getTypeWithFacts(getUnionType(clauseWitnesses.map(function (text) { return getImpliedTypeFromTypeofGuard(type, text) || type; })), switchFacts);\n return getTypeWithFacts(mapType(type, narrowUnionMemberByTypeof(impliedType)), switchFacts);\n }\n function isMatchingConstructorReference(expr) {\n return (ts.isPropertyAccessExpression(expr) && ts.idText(expr.name) === \"constructor\" ||\n ts.isElementAccessExpression(expr) && ts.isStringLiteralLike(expr.argumentExpression) && expr.argumentExpression.text === \"constructor\") &&\n isMatchingReference(reference, expr.expression);\n }\n function narrowTypeByConstructor(type, operator, identifier, assumeTrue) {\n // Do not narrow when checking inequality.\n if (assumeTrue ? (operator !== 34 /* EqualsEqualsToken */ && operator !== 36 /* EqualsEqualsEqualsToken */) : (operator !== 35 /* ExclamationEqualsToken */ && operator !== 37 /* ExclamationEqualsEqualsToken */)) {\n return type;\n }\n // Get the type of the constructor identifier expression, if it is not a function then do not narrow.\n var identifierType = getTypeOfExpression(identifier);\n if (!isFunctionType(identifierType) && !isConstructorType(identifierType)) {\n return type;\n }\n // Get the prototype property of the type identifier so we can find out its type.\n var prototypeProperty = getPropertyOfType(identifierType, \"prototype\");\n if (!prototypeProperty) {\n return type;\n }\n // Get the type of the prototype, if it is undefined, or the global `Object` or `Function` types then do not narrow.\n var prototypeType = getTypeOfSymbol(prototypeProperty);\n var candidate = !isTypeAny(prototypeType) ? prototypeType : undefined;\n if (!candidate || candidate === globalObjectType || candidate === globalFunctionType) {\n return type;\n }\n // If the type that is being narrowed is `any` then just return the `candidate` type since every type is a subtype of `any`.\n if (isTypeAny(type)) {\n return candidate;\n }\n // Filter out types that are not considered to be \"constructed by\" the `candidate` type.\n return filterType(type, function (t) { return isConstructedBy(t, candidate); });\n function isConstructedBy(source, target) {\n // If either the source or target type are a class type then we need to check that they are the same exact type.\n // This is because you may have a class `A` that defines some set of properties, and another class `B`\n // that defines the same set of properties as class `A`, in that case they are structurally the same\n // type, but when you do something like `instanceOfA.constructor === B` it will return false.\n if (source.flags & 524288 /* Object */ && ts.getObjectFlags(source) & 1 /* Class */ ||\n target.flags & 524288 /* Object */ && ts.getObjectFlags(target) & 1 /* Class */) {\n return source.symbol === target.symbol;\n }\n // For all other types just check that the `source` type is a subtype of the `target` type.\n return isTypeSubtypeOf(source, target);\n }\n }\n function narrowTypeByInstanceof(type, expr, assumeTrue) {\n var left = getReferenceCandidate(expr.left);\n if (!isMatchingReference(reference, left)) {\n if (assumeTrue && strictNullChecks && optionalChainContainsReference(left, reference)) {\n return getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */);\n }\n return type;\n }\n // Check that right operand is a function type with a prototype property\n var rightType = getTypeOfExpression(expr.right);\n if (!isTypeDerivedFrom(rightType, globalFunctionType)) {\n return type;\n }\n var targetType;\n var prototypeProperty = getPropertyOfType(rightType, \"prototype\");\n if (prototypeProperty) {\n // Target type is type of the prototype property\n var prototypePropertyType = getTypeOfSymbol(prototypeProperty);\n if (!isTypeAny(prototypePropertyType)) {\n targetType = prototypePropertyType;\n }\n }\n // Don't narrow from 'any' if the target type is exactly 'Object' or 'Function'\n if (isTypeAny(type) && (targetType === globalObjectType || targetType === globalFunctionType)) {\n return type;\n }\n if (!targetType) {\n var constructSignatures = getSignaturesOfType(rightType, 1 /* Construct */);\n targetType = constructSignatures.length ?\n getUnionType(ts.map(constructSignatures, function (signature) { return getReturnTypeOfSignature(getErasedSignature(signature)); })) :\n emptyObjectType;\n }\n // We can't narrow a union based off instanceof without negated types see #31576 for more info\n if (!assumeTrue && rightType.flags & 1048576 /* Union */) {\n var nonConstructorTypeInUnion = ts.find(rightType.types, function (t) { return !isConstructorType(t); });\n if (!nonConstructorTypeInUnion)\n return type;\n }\n return getNarrowedType(type, targetType, assumeTrue, isTypeDerivedFrom);\n }\n function getNarrowedType(type, candidate, assumeTrue, isRelated) {\n if (!assumeTrue) {\n return filterType(type, function (t) {\n if (!isRelated(t, candidate)) {\n return true;\n }\n var constraint = getBaseConstraintOfType(t);\n if (constraint && constraint !== t) {\n return !isRelated(constraint, candidate);\n }\n return false;\n });\n }\n // If the current type is a union type, remove all constituents that couldn't be instances of\n // the candidate type. If one or more constituents remain, return a union of those.\n if (type.flags & 1048576 /* Union */) {\n var assignableType = filterType(type, function (t) { return isRelated(t, candidate); });\n if (!(assignableType.flags & 131072 /* Never */)) {\n return assignableType;\n }\n }\n // If the candidate type is a subtype of the target type, narrow to the candidate type.\n // Otherwise, if the target type is assignable to the candidate type, keep the target type.\n // Otherwise, if the candidate type is assignable to the target type, narrow to the candidate\n // type. Otherwise, the types are completely unrelated, so narrow to an intersection of the\n // two types.\n return isTypeSubtypeOf(candidate, type) ? candidate :\n isTypeAssignableTo(type, candidate) ? type :\n isTypeAssignableTo(candidate, type) ? candidate :\n getIntersectionType([type, candidate]);\n }\n function narrowTypeByCallExpression(type, callExpression, assumeTrue) {\n if (hasMatchingArgument(callExpression, reference)) {\n var signature = assumeTrue || !ts.isCallChain(callExpression) ? getEffectsSignature(callExpression) : undefined;\n var predicate = signature && getTypePredicateOfSignature(signature);\n if (predicate && (predicate.kind === 0 /* This */ || predicate.kind === 1 /* Identifier */)) {\n return narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue);\n }\n }\n if (containsMissingType(type) && ts.isAccessExpression(reference) && ts.isPropertyAccessExpression(callExpression.expression)) {\n var callAccess = callExpression.expression;\n if (isMatchingReference(reference.expression, getReferenceCandidate(callAccess.expression)) &&\n ts.isIdentifier(callAccess.name) && callAccess.name.escapedText === \"hasOwnProperty\" && callExpression.arguments.length === 1) {\n var argument = callExpression.arguments[0];\n if (ts.isStringLiteralLike(argument) && getAccessedPropertyName(reference) === ts.escapeLeadingUnderscores(argument.text)) {\n return getTypeWithFacts(type, assumeTrue ? 524288 /* NEUndefined */ : 65536 /* EQUndefined */);\n }\n }\n }\n return type;\n }\n function narrowTypeByTypePredicate(type, predicate, callExpression, assumeTrue) {\n // Don't narrow from 'any' if the predicate type is exactly 'Object' or 'Function'\n if (predicate.type && !(isTypeAny(type) && (predicate.type === globalObjectType || predicate.type === globalFunctionType))) {\n var predicateArgument = getTypePredicateArgument(predicate, callExpression);\n if (predicateArgument) {\n if (isMatchingReference(reference, predicateArgument)) {\n return getNarrowedType(type, predicate.type, assumeTrue, isTypeSubtypeOf);\n }\n if (strictNullChecks && assumeTrue && optionalChainContainsReference(predicateArgument, reference) &&\n !(getTypeFacts(predicate.type) & 65536 /* EQUndefined */)) {\n type = getTypeWithFacts(type, 2097152 /* NEUndefinedOrNull */);\n }\n var access = getDiscriminantPropertyAccess(predicateArgument, type);\n if (access) {\n return narrowTypeByDiscriminant(type, access, function (t) { return getNarrowedType(t, predicate.type, assumeTrue, isTypeSubtypeOf); });\n }\n }\n }\n return type;\n }\n // Narrow the given type based on the given expression having the assumed boolean value. The returned type\n // will be a subtype or the same type as the argument.\n function narrowType(type, expr, assumeTrue) {\n // for `a?.b`, we emulate a synthetic `a !== null && a !== undefined` condition for `a`\n if (ts.isExpressionOfOptionalChainRoot(expr) ||\n ts.isBinaryExpression(expr.parent) && expr.parent.operatorToken.kind === 60 /* QuestionQuestionToken */ && expr.parent.left === expr) {\n return narrowTypeByOptionality(type, expr, assumeTrue);\n }\n switch (expr.kind) {\n case 79 /* Identifier */:\n // When narrowing a reference to a const variable, non-assigned parameter, or readonly property, we inline\n // up to five levels of aliased conditional expressions that are themselves declared as const variables.\n if (!isMatchingReference(reference, expr) && inlineLevel < 5) {\n var symbol = getResolvedSymbol(expr);\n if (isConstVariable(symbol)) {\n var declaration = symbol.valueDeclaration;\n if (declaration && ts.isVariableDeclaration(declaration) && !declaration.type && declaration.initializer && isConstantReference(reference)) {\n inlineLevel++;\n var result = narrowType(type, declaration.initializer, assumeTrue);\n inlineLevel--;\n return result;\n }\n }\n }\n // falls through\n case 108 /* ThisKeyword */:\n case 106 /* SuperKeyword */:\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return narrowTypeByTruthiness(type, expr, assumeTrue);\n case 206 /* CallExpression */:\n return narrowTypeByCallExpression(type, expr, assumeTrue);\n case 210 /* ParenthesizedExpression */:\n case 228 /* NonNullExpression */:\n return narrowType(type, expr.expression, assumeTrue);\n case 219 /* BinaryExpression */:\n return narrowTypeByBinaryExpression(type, expr, assumeTrue);\n case 217 /* PrefixUnaryExpression */:\n if (expr.operator === 53 /* ExclamationToken */) {\n return narrowType(type, expr.operand, !assumeTrue);\n }\n break;\n }\n return type;\n }\n function narrowTypeByOptionality(type, expr, assumePresent) {\n if (isMatchingReference(reference, expr)) {\n return getTypeWithFacts(type, assumePresent ? 2097152 /* NEUndefinedOrNull */ : 262144 /* EQUndefinedOrNull */);\n }\n var access = getDiscriminantPropertyAccess(expr, type);\n if (access) {\n return narrowTypeByDiscriminant(type, access, function (t) { return getTypeWithFacts(t, assumePresent ? 2097152 /* NEUndefinedOrNull */ : 262144 /* EQUndefinedOrNull */); });\n }\n return type;\n }\n }\n function getTypeOfSymbolAtLocation(symbol, location) {\n symbol = symbol.exportSymbol || symbol;\n // If we have an identifier or a property access at the given location, if the location is\n // an dotted name expression, and if the location is not an assignment target, obtain the type\n // of the expression (which will reflect control flow analysis). If the expression indeed\n // resolved to the given symbol, return the narrowed type.\n if (location.kind === 79 /* Identifier */ || location.kind === 80 /* PrivateIdentifier */) {\n if (ts.isRightSideOfQualifiedNameOrPropertyAccess(location)) {\n location = location.parent;\n }\n if (ts.isExpressionNode(location) && (!ts.isAssignmentTarget(location) || ts.isWriteAccess(location))) {\n var type = getTypeOfExpression(location);\n if (getExportSymbolOfValueSymbolIfExported(getNodeLinks(location).resolvedSymbol) === symbol) {\n return type;\n }\n }\n }\n if (ts.isDeclarationName(location) && ts.isSetAccessor(location.parent) && getAnnotatedAccessorTypeNode(location.parent)) {\n return resolveTypeOfAccessors(location.parent.symbol, /*writing*/ true);\n }\n // The location isn't a reference to the given symbol, meaning we're being asked\n // a hypothetical question of what type the symbol would have if there was a reference\n // to it at the given location. Since we have no control flow information for the\n // hypothetical reference (control flow information is created and attached by the\n // binder), we simply return the declared type of the symbol.\n return getNonMissingTypeOfSymbol(symbol);\n }\n function getControlFlowContainer(node) {\n return ts.findAncestor(node.parent, function (node) {\n return ts.isFunctionLike(node) && !ts.getImmediatelyInvokedFunctionExpression(node) ||\n node.kind === 260 /* ModuleBlock */ ||\n node.kind === 300 /* SourceFile */ ||\n node.kind === 165 /* PropertyDeclaration */;\n });\n }\n // Check if a parameter is assigned anywhere within its declaring function.\n function isParameterAssigned(symbol) {\n if (!symbol.valueDeclaration) {\n return false;\n }\n var func = ts.getRootDeclaration(symbol.valueDeclaration).parent;\n var links = getNodeLinks(func);\n if (!(links.flags & 8388608 /* AssignmentsMarked */)) {\n links.flags |= 8388608 /* AssignmentsMarked */;\n if (!hasParentWithAssignmentsMarked(func)) {\n markParameterAssignments(func);\n }\n }\n return symbol.isAssigned || false;\n }\n function hasParentWithAssignmentsMarked(node) {\n return !!ts.findAncestor(node.parent, function (node) { return ts.isFunctionLike(node) && !!(getNodeLinks(node).flags & 8388608 /* AssignmentsMarked */); });\n }\n function markParameterAssignments(node) {\n if (node.kind === 79 /* Identifier */) {\n if (ts.isAssignmentTarget(node)) {\n var symbol = getResolvedSymbol(node);\n if (symbol.valueDeclaration && ts.getRootDeclaration(symbol.valueDeclaration).kind === 162 /* Parameter */) {\n symbol.isAssigned = true;\n }\n }\n }\n else {\n ts.forEachChild(node, markParameterAssignments);\n }\n }\n function isConstVariable(symbol) {\n return symbol.flags & 3 /* Variable */ && (getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */) !== 0;\n }\n /** remove undefined from the annotated type of a parameter when there is an initializer (that doesn't include undefined) */\n function removeOptionalityFromDeclaredType(declaredType, declaration) {\n if (pushTypeResolution(declaration.symbol, 2 /* DeclaredType */)) {\n var annotationIncludesUndefined = strictNullChecks &&\n declaration.kind === 162 /* Parameter */ &&\n declaration.initializer &&\n getFalsyFlags(declaredType) & 32768 /* Undefined */ &&\n !(getFalsyFlags(checkExpression(declaration.initializer)) & 32768 /* Undefined */);\n popTypeResolution();\n return annotationIncludesUndefined ? getTypeWithFacts(declaredType, 524288 /* NEUndefined */) : declaredType;\n }\n else {\n reportCircularityError(declaration.symbol);\n return declaredType;\n }\n }\n function isConstraintPosition(type, node) {\n var parent = node.parent;\n // In an element access obj[x], we consider obj to be in a constraint position, except when obj is of\n // a generic type without a nullable constraint and x is a generic type. This is because when both obj\n // and x are of generic types T and K, we want the resulting type to be T[K].\n return parent.kind === 204 /* PropertyAccessExpression */ ||\n parent.kind === 206 /* CallExpression */ && parent.expression === node ||\n parent.kind === 205 /* ElementAccessExpression */ && parent.expression === node &&\n !(isGenericTypeWithoutNullableConstraint(type) && isGenericIndexType(getTypeOfExpression(parent.argumentExpression)));\n }\n function isGenericTypeWithUnionConstraint(type) {\n return !!(type.flags & 465829888 /* Instantiable */ && getBaseConstraintOrType(type).flags & (98304 /* Nullable */ | 1048576 /* Union */));\n }\n function isGenericTypeWithoutNullableConstraint(type) {\n return !!(type.flags & 465829888 /* Instantiable */ && !maybeTypeOfKind(getBaseConstraintOrType(type), 98304 /* Nullable */));\n }\n function hasNonBindingPatternContextualTypeWithNoGenericTypes(node) {\n // Computing the contextual type for a child of a JSX element involves resolving the type of the\n // element's tag name, so we exclude that here to avoid circularities.\n var contextualType = (ts.isIdentifier(node) || ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)) &&\n !((ts.isJsxOpeningElement(node.parent) || ts.isJsxSelfClosingElement(node.parent)) && node.parent.tagName === node) &&\n getContextualType(node, 8 /* SkipBindingPatterns */);\n return contextualType && !isGenericType(contextualType);\n }\n function getNarrowableTypeForReference(type, reference, checkMode) {\n // When the type of a reference is or contains an instantiable type with a union type constraint, and\n // when the reference is in a constraint position (where it is known we'll obtain the apparent type) or\n // has a contextual type containing no top-level instantiables (meaning constraints will determine\n // assignability), we substitute constraints for all instantiables in the type of the reference to give\n // control flow analysis an opportunity to narrow it further. For example, for a reference of a type\n // parameter type 'T extends string | undefined' with a contextual type 'string', we substitute\n // 'string | undefined' to give control flow analysis the opportunity to narrow to type 'string'.\n var substituteConstraints = !(checkMode && checkMode & 2 /* Inferential */) &&\n someType(type, isGenericTypeWithUnionConstraint) &&\n (isConstraintPosition(type, reference) || hasNonBindingPatternContextualTypeWithNoGenericTypes(reference));\n return substituteConstraints ? mapType(type, function (t) { return t.flags & 465829888 /* Instantiable */ ? getBaseConstraintOrType(t) : t; }) : type;\n }\n function isExportOrExportExpression(location) {\n return !!ts.findAncestor(location, function (e) { return e.parent && ts.isExportAssignment(e.parent) && e.parent.expression === e && ts.isEntityNameExpression(e); });\n }\n function markAliasReferenced(symbol, location) {\n if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* Value */) && !isInTypeQuery(location) && !getTypeOnlyAliasDeclaration(symbol)) {\n var target = resolveAlias(symbol);\n if (target.flags & 111551 /* Value */) {\n // An alias resolving to a const enum cannot be elided if (1) 'isolatedModules' is enabled\n // (because the const enum value will not be inlined), or if (2) the alias is an export\n // of a const enum declaration that will be preserved.\n if (compilerOptions.isolatedModules ||\n ts.shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(location) ||\n !isConstEnumOrConstEnumOnlyModule(target)) {\n markAliasSymbolAsReferenced(symbol);\n }\n else {\n markConstEnumAliasAsReferenced(symbol);\n }\n }\n }\n }\n function checkIdentifier(node, checkMode) {\n var symbol = getResolvedSymbol(node);\n if (symbol === unknownSymbol) {\n return errorType;\n }\n // As noted in ECMAScript 6 language spec, arrow functions never have an arguments objects.\n // Although in down-level emit of arrow function, we emit it using function expression which means that\n // arguments objects will be bound to the inner object; emitting arrow function natively in ES6, arguments objects\n // will be bound to non-arrow function that contain this arrow function. This results in inconsistent behavior.\n // To avoid that we will give an error to users if they use arguments objects in arrow function so that they\n // can explicitly bound arguments objects\n if (symbol === argumentsSymbol) {\n if (isInPropertyInitializerOrClassStaticBlock(node)) {\n error(node, ts.Diagnostics.arguments_cannot_be_referenced_in_property_initializers);\n return errorType;\n }\n var container = ts.getContainingFunction(node);\n if (languageVersion < 2 /* ES2015 */) {\n if (container.kind === 212 /* ArrowFunction */) {\n error(node, ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_arrow_function_in_ES3_and_ES5_Consider_using_a_standard_function_expression);\n }\n else if (ts.hasSyntacticModifier(container, 256 /* Async */)) {\n error(node, ts.Diagnostics.The_arguments_object_cannot_be_referenced_in_an_async_function_or_method_in_ES3_and_ES5_Consider_using_a_standard_function_or_method);\n }\n }\n getNodeLinks(container).flags |= 8192 /* CaptureArguments */;\n return getTypeOfSymbol(symbol);\n }\n // We should only mark aliases as referenced if there isn't a local value declaration\n // for the symbol. Also, don't mark any property access expression LHS - checkPropertyAccessExpression will handle that\n if (!(node.parent && ts.isPropertyAccessExpression(node.parent) && node.parent.expression === node)) {\n markAliasReferenced(symbol, node);\n }\n var localOrExportSymbol = getExportSymbolOfValueSymbolIfExported(symbol);\n var sourceSymbol = localOrExportSymbol.flags & 2097152 /* Alias */ ? resolveAlias(localOrExportSymbol) : localOrExportSymbol;\n if (sourceSymbol.declarations && getDeclarationNodeFlagsFromSymbol(sourceSymbol) & 134217728 /* Deprecated */ && isUncalledFunctionReference(node, sourceSymbol)) {\n addDeprecatedSuggestion(node, sourceSymbol.declarations, node.escapedText);\n }\n var declaration = localOrExportSymbol.valueDeclaration;\n if (declaration && localOrExportSymbol.flags & 32 /* Class */) {\n // Due to the emit for class decorators, any reference to the class from inside of the class body\n // must instead be rewritten to point to a temporary variable to avoid issues with the double-bind\n // behavior of class names in ES6.\n if (declaration.kind === 255 /* ClassDeclaration */\n && ts.nodeIsDecorated(declaration)) {\n var container = ts.getContainingClass(node);\n while (container !== undefined) {\n if (container === declaration && container.name !== node) {\n getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;\n getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;\n break;\n }\n container = ts.getContainingClass(container);\n }\n }\n else if (declaration.kind === 224 /* ClassExpression */) {\n // When we emit a class expression with static members that contain a reference\n // to the constructor in the initializer, we will need to substitute that\n // binding with an alias as the class name is not in scope.\n var container = ts.getThisContainer(node, /*includeArrowFunctions*/ false);\n while (container.kind !== 300 /* SourceFile */) {\n if (container.parent === declaration) {\n if (ts.isPropertyDeclaration(container) && ts.isStatic(container) || ts.isClassStaticBlockDeclaration(container)) {\n getNodeLinks(declaration).flags |= 16777216 /* ClassWithConstructorReference */;\n getNodeLinks(node).flags |= 33554432 /* ConstructorReferenceInClass */;\n }\n break;\n }\n container = ts.getThisContainer(container, /*includeArrowFunctions*/ false);\n }\n }\n }\n checkNestedBlockScopedBinding(node, symbol);\n var type = getTypeOfSymbol(localOrExportSymbol);\n var assignmentKind = ts.getAssignmentTargetKind(node);\n if (assignmentKind) {\n if (!(localOrExportSymbol.flags & 3 /* Variable */) &&\n !(ts.isInJSFile(node) && localOrExportSymbol.flags & 512 /* ValueModule */)) {\n var assignmentError = localOrExportSymbol.flags & 384 /* Enum */ ? ts.Diagnostics.Cannot_assign_to_0_because_it_is_an_enum\n : localOrExportSymbol.flags & 32 /* Class */ ? ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_class\n : localOrExportSymbol.flags & 1536 /* Module */ ? ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_namespace\n : localOrExportSymbol.flags & 16 /* Function */ ? ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_function\n : localOrExportSymbol.flags & 2097152 /* Alias */ ? ts.Diagnostics.Cannot_assign_to_0_because_it_is_an_import\n : ts.Diagnostics.Cannot_assign_to_0_because_it_is_not_a_variable;\n error(node, assignmentError, symbolToString(symbol));\n return errorType;\n }\n if (isReadonlySymbol(localOrExportSymbol)) {\n if (localOrExportSymbol.flags & 3 /* Variable */) {\n error(node, ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant, symbolToString(symbol));\n }\n else {\n error(node, ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, symbolToString(symbol));\n }\n return errorType;\n }\n }\n var isAlias = localOrExportSymbol.flags & 2097152 /* Alias */;\n // We only narrow variables and parameters occurring in a non-assignment position. For all other\n // entities we simply return the declared type.\n if (localOrExportSymbol.flags & 3 /* Variable */) {\n if (assignmentKind === 1 /* Definite */) {\n return type;\n }\n }\n else if (isAlias) {\n declaration = getDeclarationOfAliasSymbol(symbol);\n }\n else {\n return type;\n }\n if (!declaration) {\n return type;\n }\n type = getNarrowableTypeForReference(type, node, checkMode);\n // The declaration container is the innermost function that encloses the declaration of the variable\n // or parameter. The flow container is the innermost function starting with which we analyze the control\n // flow graph to determine the control flow based type.\n var isParameter = ts.getRootDeclaration(declaration).kind === 162 /* Parameter */;\n var declarationContainer = getControlFlowContainer(declaration);\n var flowContainer = getControlFlowContainer(node);\n var isOuterVariable = flowContainer !== declarationContainer;\n var isSpreadDestructuringAssignmentTarget = node.parent && node.parent.parent && ts.isSpreadAssignment(node.parent) && isDestructuringAssignmentTarget(node.parent.parent);\n var isModuleExports = symbol.flags & 134217728 /* ModuleExports */;\n // When the control flow originates in a function expression or arrow function and we are referencing\n // a const variable or parameter from an outer function, we extend the origin of the control flow\n // analysis to include the immediately enclosing function.\n while (flowContainer !== declarationContainer && (flowContainer.kind === 211 /* FunctionExpression */ ||\n flowContainer.kind === 212 /* ArrowFunction */ || ts.isObjectLiteralOrClassExpressionMethod(flowContainer)) &&\n (isConstVariable(localOrExportSymbol) && type !== autoArrayType || isParameter && !isParameterAssigned(localOrExportSymbol))) {\n flowContainer = getControlFlowContainer(flowContainer);\n }\n // We only look for uninitialized variables in strict null checking mode, and only when we can analyze\n // the entire control flow graph from the variable's declaration (i.e. when the flow container and\n // declaration container are the same).\n var assumeInitialized = isParameter || isAlias || isOuterVariable || isSpreadDestructuringAssignmentTarget || isModuleExports || ts.isBindingElement(declaration) ||\n type !== autoType && type !== autoArrayType && (!strictNullChecks || (type.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */)) !== 0 ||\n isInTypeQuery(node) || node.parent.kind === 273 /* ExportSpecifier */) ||\n node.parent.kind === 228 /* NonNullExpression */ ||\n declaration.kind === 252 /* VariableDeclaration */ && declaration.exclamationToken ||\n declaration.flags & 8388608 /* Ambient */;\n var initialType = assumeInitialized ? (isParameter ? removeOptionalityFromDeclaredType(type, declaration) : type) :\n type === autoType || type === autoArrayType ? undefinedType :\n getOptionalType(type);\n var flowType = getFlowTypeOfReference(node, type, initialType, flowContainer);\n // A variable is considered uninitialized when it is possible to analyze the entire control flow graph\n // from declaration to use, and when the variable's declared type doesn't include undefined but the\n // control flow based type does include undefined.\n if (!isEvolvingArrayOperationTarget(node) && (type === autoType || type === autoArrayType)) {\n if (flowType === autoType || flowType === autoArrayType) {\n if (noImplicitAny) {\n error(ts.getNameOfDeclaration(declaration), ts.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined, symbolToString(symbol), typeToString(flowType));\n error(node, ts.Diagnostics.Variable_0_implicitly_has_an_1_type, symbolToString(symbol), typeToString(flowType));\n }\n return convertAutoToAny(flowType);\n }\n }\n else if (!assumeInitialized && !(getFalsyFlags(type) & 32768 /* Undefined */) && getFalsyFlags(flowType) & 32768 /* Undefined */) {\n error(node, ts.Diagnostics.Variable_0_is_used_before_being_assigned, symbolToString(symbol));\n // Return the declared type to reduce follow-on errors\n return type;\n }\n return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;\n }\n function isInsideFunctionOrInstancePropertyInitializer(node, threshold) {\n return !!ts.findAncestor(node, function (n) { return n === threshold ? \"quit\" : ts.isFunctionLike(n) || (n.parent && ts.isPropertyDeclaration(n.parent) && !ts.hasStaticModifier(n.parent) && n.parent.initializer === n); });\n }\n function getPartOfForStatementContainingNode(node, container) {\n return ts.findAncestor(node, function (n) { return n === container ? \"quit\" : n === container.initializer || n === container.condition || n === container.incrementor || n === container.statement; });\n }\n function getEnclosingIterationStatement(node) {\n return ts.findAncestor(node, function (n) { return (!n || ts.nodeStartsNewLexicalEnvironment(n)) ? \"quit\" : ts.isIterationStatement(n, /*lookInLabeledStatements*/ false); });\n }\n function checkNestedBlockScopedBinding(node, symbol) {\n if (languageVersion >= 2 /* ES2015 */ ||\n (symbol.flags & (2 /* BlockScopedVariable */ | 32 /* Class */)) === 0 ||\n !symbol.valueDeclaration ||\n ts.isSourceFile(symbol.valueDeclaration) ||\n symbol.valueDeclaration.parent.kind === 290 /* CatchClause */) {\n return;\n }\n // 1. walk from the use site up to the declaration and check\n // if there is anything function like between declaration and use-site (is binding/class is captured in function).\n // 2. walk from the declaration up to the boundary of lexical environment and check\n // if there is an iteration statement in between declaration and boundary (is binding/class declared inside iteration statement)\n var container = ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);\n var isCaptured = isInsideFunctionOrInstancePropertyInitializer(node, container);\n var enclosingIterationStatement = getEnclosingIterationStatement(container);\n if (enclosingIterationStatement) {\n if (isCaptured) {\n // mark iteration statement as containing block-scoped binding captured in some function\n var capturesBlockScopeBindingInLoopBody = true;\n if (ts.isForStatement(container)) {\n var varDeclList = ts.getAncestor(symbol.valueDeclaration, 253 /* VariableDeclarationList */);\n if (varDeclList && varDeclList.parent === container) {\n var part = getPartOfForStatementContainingNode(node.parent, container);\n if (part) {\n var links = getNodeLinks(part);\n links.flags |= 131072 /* ContainsCapturedBlockScopeBinding */;\n var capturedBindings = links.capturedBlockScopeBindings || (links.capturedBlockScopeBindings = []);\n ts.pushIfUnique(capturedBindings, symbol);\n if (part === container.initializer) {\n capturesBlockScopeBindingInLoopBody = false; // Initializer is outside of loop body\n }\n }\n }\n }\n if (capturesBlockScopeBindingInLoopBody) {\n getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;\n }\n }\n // mark variables that are declared in loop initializer and reassigned inside the body of ForStatement.\n // if body of ForStatement will be converted to function then we'll need a extra machinery to propagate reassigned values back.\n if (ts.isForStatement(container)) {\n var varDeclList = ts.getAncestor(symbol.valueDeclaration, 253 /* VariableDeclarationList */);\n if (varDeclList && varDeclList.parent === container && isAssignedInBodyOfForStatement(node, container)) {\n getNodeLinks(symbol.valueDeclaration).flags |= 4194304 /* NeedsLoopOutParameter */;\n }\n }\n // set 'declared inside loop' bit on the block-scoped binding\n getNodeLinks(symbol.valueDeclaration).flags |= 524288 /* BlockScopedBindingInLoop */;\n }\n if (isCaptured) {\n getNodeLinks(symbol.valueDeclaration).flags |= 262144 /* CapturedBlockScopedBinding */;\n }\n }\n function isBindingCapturedByNode(node, decl) {\n var links = getNodeLinks(node);\n return !!links && ts.contains(links.capturedBlockScopeBindings, getSymbolOfNode(decl));\n }\n function isAssignedInBodyOfForStatement(node, container) {\n // skip parenthesized nodes\n var current = node;\n while (current.parent.kind === 210 /* ParenthesizedExpression */) {\n current = current.parent;\n }\n // check if node is used as LHS in some assignment expression\n var isAssigned = false;\n if (ts.isAssignmentTarget(current)) {\n isAssigned = true;\n }\n else if ((current.parent.kind === 217 /* PrefixUnaryExpression */ || current.parent.kind === 218 /* PostfixUnaryExpression */)) {\n var expr = current.parent;\n isAssigned = expr.operator === 45 /* PlusPlusToken */ || expr.operator === 46 /* MinusMinusToken */;\n }\n if (!isAssigned) {\n return false;\n }\n // at this point we know that node is the target of assignment\n // now check that modification happens inside the statement part of the ForStatement\n return !!ts.findAncestor(current, function (n) { return n === container ? \"quit\" : n === container.statement; });\n }\n function captureLexicalThis(node, container) {\n getNodeLinks(node).flags |= 2 /* LexicalThis */;\n if (container.kind === 165 /* PropertyDeclaration */ || container.kind === 169 /* Constructor */) {\n var classNode = container.parent;\n getNodeLinks(classNode).flags |= 4 /* CaptureThis */;\n }\n else {\n getNodeLinks(container).flags |= 4 /* CaptureThis */;\n }\n }\n function findFirstSuperCall(node) {\n return ts.isSuperCall(node) ? node :\n ts.isFunctionLike(node) ? undefined :\n ts.forEachChild(node, findFirstSuperCall);\n }\n /**\n * Check if the given class-declaration extends null then return true.\n * Otherwise, return false\n * @param classDecl a class declaration to check if it extends null\n */\n function classDeclarationExtendsNull(classDecl) {\n var classSymbol = getSymbolOfNode(classDecl);\n var classInstanceType = getDeclaredTypeOfSymbol(classSymbol);\n var baseConstructorType = getBaseConstructorTypeOfClass(classInstanceType);\n return baseConstructorType === nullWideningType;\n }\n function checkThisBeforeSuper(node, container, diagnosticMessage) {\n var containingClassDecl = container.parent;\n var baseTypeNode = ts.getClassExtendsHeritageElement(containingClassDecl);\n // If a containing class does not have extends clause or the class extends null\n // skip checking whether super statement is called before \"this\" accessing.\n if (baseTypeNode && !classDeclarationExtendsNull(containingClassDecl)) {\n if (node.flowNode && !isPostSuperFlowNode(node.flowNode, /*noCacheCheck*/ false)) {\n error(node, diagnosticMessage);\n }\n }\n }\n function checkThisInStaticClassFieldInitializerInDecoratedClass(thisExpression, container) {\n if (ts.isPropertyDeclaration(container) && ts.hasStaticModifier(container) &&\n container.initializer && ts.textRangeContainsPositionInclusive(container.initializer, thisExpression.pos) && ts.length(container.parent.decorators)) {\n error(thisExpression, ts.Diagnostics.Cannot_use_this_in_a_static_property_initializer_of_a_decorated_class);\n }\n }\n function checkThisExpression(node) {\n var isNodeInTypeQuery = isInTypeQuery(node);\n // Stop at the first arrow function so that we can\n // tell whether 'this' needs to be captured.\n var container = ts.getThisContainer(node, /* includeArrowFunctions */ true);\n var capturedByArrowFunction = false;\n if (container.kind === 169 /* Constructor */) {\n checkThisBeforeSuper(node, container, ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class);\n }\n // Now skip arrow functions to get the \"real\" owner of 'this'.\n if (container.kind === 212 /* ArrowFunction */) {\n container = ts.getThisContainer(container, /* includeArrowFunctions */ false);\n capturedByArrowFunction = true;\n }\n checkThisInStaticClassFieldInitializerInDecoratedClass(node, container);\n switch (container.kind) {\n case 259 /* ModuleDeclaration */:\n error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_module_or_namespace_body);\n // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks\n break;\n case 258 /* EnumDeclaration */:\n error(node, ts.Diagnostics.this_cannot_be_referenced_in_current_location);\n // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks\n break;\n case 169 /* Constructor */:\n if (isInConstructorArgumentInitializer(node, container)) {\n error(node, ts.Diagnostics.this_cannot_be_referenced_in_constructor_arguments);\n // do not return here so in case if lexical this is captured - it will be reflected in flags on NodeLinks\n }\n break;\n case 160 /* ComputedPropertyName */:\n error(node, ts.Diagnostics.this_cannot_be_referenced_in_a_computed_property_name);\n break;\n }\n // When targeting es6, mark that we'll need to capture `this` in its lexically bound scope.\n if (!isNodeInTypeQuery && capturedByArrowFunction && languageVersion < 2 /* ES2015 */) {\n captureLexicalThis(node, container);\n }\n var type = tryGetThisTypeAt(node, /*includeGlobalThis*/ true, container);\n if (noImplicitThis) {\n var globalThisType_1 = getTypeOfSymbol(globalThisSymbol);\n if (type === globalThisType_1 && capturedByArrowFunction) {\n error(node, ts.Diagnostics.The_containing_arrow_function_captures_the_global_value_of_this);\n }\n else if (!type) {\n // With noImplicitThis, functions may not reference 'this' if it has type 'any'\n var diag = error(node, ts.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation);\n if (!ts.isSourceFile(container)) {\n var outsideThis = tryGetThisTypeAt(container);\n if (outsideThis && outsideThis !== globalThisType_1) {\n ts.addRelatedInfo(diag, ts.createDiagnosticForNode(container, ts.Diagnostics.An_outer_value_of_this_is_shadowed_by_this_container));\n }\n }\n }\n }\n return type || anyType;\n }\n function tryGetThisTypeAt(node, includeGlobalThis, container) {\n if (includeGlobalThis === void 0) { includeGlobalThis = true; }\n if (container === void 0) { container = ts.getThisContainer(node, /*includeArrowFunctions*/ false); }\n var isInJS = ts.isInJSFile(node);\n if (ts.isFunctionLike(container) &&\n (!isInParameterInitializerBeforeContainingFunction(node) || ts.getThisParameter(container))) {\n var thisType = getThisTypeOfDeclaration(container) || isInJS && getTypeForThisExpressionFromJSDoc(container);\n // Note: a parameter initializer should refer to class-this unless function-this is explicitly annotated.\n // If this is a function in a JS file, it might be a class method.\n if (!thisType) {\n var className = getClassNameFromPrototypeMethod(container);\n if (isInJS && className) {\n var classSymbol = checkExpression(className).symbol;\n if (classSymbol && classSymbol.members && (classSymbol.flags & 16 /* Function */)) {\n thisType = getDeclaredTypeOfSymbol(classSymbol).thisType;\n }\n }\n else if (isJSConstructor(container)) {\n thisType = getDeclaredTypeOfSymbol(getMergedSymbol(container.symbol)).thisType;\n }\n thisType || (thisType = getContextualThisParameterType(container));\n }\n if (thisType) {\n return getFlowTypeOfReference(node, thisType);\n }\n }\n if (ts.isClassLike(container.parent)) {\n var symbol = getSymbolOfNode(container.parent);\n var type = ts.isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType;\n return getFlowTypeOfReference(node, type);\n }\n if (ts.isSourceFile(container)) {\n // look up in the source file's locals or exports\n if (container.commonJsModuleIndicator) {\n var fileSymbol = getSymbolOfNode(container);\n return fileSymbol && getTypeOfSymbol(fileSymbol);\n }\n else if (container.externalModuleIndicator) {\n // TODO: Maybe issue a better error than 'object is possibly undefined'\n return undefinedType;\n }\n else if (includeGlobalThis) {\n return getTypeOfSymbol(globalThisSymbol);\n }\n }\n }\n function getExplicitThisType(node) {\n var container = ts.getThisContainer(node, /*includeArrowFunctions*/ false);\n if (ts.isFunctionLike(container)) {\n var signature = getSignatureFromDeclaration(container);\n if (signature.thisParameter) {\n return getExplicitTypeOfSymbol(signature.thisParameter);\n }\n }\n if (ts.isClassLike(container.parent)) {\n var symbol = getSymbolOfNode(container.parent);\n return ts.isStatic(container) ? getTypeOfSymbol(symbol) : getDeclaredTypeOfSymbol(symbol).thisType;\n }\n }\n function getClassNameFromPrototypeMethod(container) {\n // Check if it's the RHS of a x.prototype.y = function [name]() { .... }\n if (container.kind === 211 /* FunctionExpression */ &&\n ts.isBinaryExpression(container.parent) &&\n ts.getAssignmentDeclarationKind(container.parent) === 3 /* PrototypeProperty */) {\n // Get the 'x' of 'x.prototype.y = container'\n return container.parent // x.prototype.y = container\n .left // x.prototype.y\n .expression // x.prototype\n .expression; // x\n }\n // x.prototype = { method() { } }\n else if (container.kind === 167 /* MethodDeclaration */ &&\n container.parent.kind === 203 /* ObjectLiteralExpression */ &&\n ts.isBinaryExpression(container.parent.parent) &&\n ts.getAssignmentDeclarationKind(container.parent.parent) === 6 /* Prototype */) {\n return container.parent.parent.left.expression;\n }\n // x.prototype = { method: function() { } }\n else if (container.kind === 211 /* FunctionExpression */ &&\n container.parent.kind === 291 /* PropertyAssignment */ &&\n container.parent.parent.kind === 203 /* ObjectLiteralExpression */ &&\n ts.isBinaryExpression(container.parent.parent.parent) &&\n ts.getAssignmentDeclarationKind(container.parent.parent.parent) === 6 /* Prototype */) {\n return container.parent.parent.parent.left.expression;\n }\n // Object.defineProperty(x, \"method\", { value: function() { } });\n // Object.defineProperty(x, \"method\", { set: (x: () => void) => void });\n // Object.defineProperty(x, \"method\", { get: () => function() { }) });\n else if (container.kind === 211 /* FunctionExpression */ &&\n ts.isPropertyAssignment(container.parent) &&\n ts.isIdentifier(container.parent.name) &&\n (container.parent.name.escapedText === \"value\" || container.parent.name.escapedText === \"get\" || container.parent.name.escapedText === \"set\") &&\n ts.isObjectLiteralExpression(container.parent.parent) &&\n ts.isCallExpression(container.parent.parent.parent) &&\n container.parent.parent.parent.arguments[2] === container.parent.parent &&\n ts.getAssignmentDeclarationKind(container.parent.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) {\n return container.parent.parent.parent.arguments[0].expression;\n }\n // Object.defineProperty(x, \"method\", { value() { } });\n // Object.defineProperty(x, \"method\", { set(x: () => void) {} });\n // Object.defineProperty(x, \"method\", { get() { return () => {} } });\n else if (ts.isMethodDeclaration(container) &&\n ts.isIdentifier(container.name) &&\n (container.name.escapedText === \"value\" || container.name.escapedText === \"get\" || container.name.escapedText === \"set\") &&\n ts.isObjectLiteralExpression(container.parent) &&\n ts.isCallExpression(container.parent.parent) &&\n container.parent.parent.arguments[2] === container.parent &&\n ts.getAssignmentDeclarationKind(container.parent.parent) === 9 /* ObjectDefinePrototypeProperty */) {\n return container.parent.parent.arguments[0].expression;\n }\n }\n function getTypeForThisExpressionFromJSDoc(node) {\n var jsdocType = ts.getJSDocType(node);\n if (jsdocType && jsdocType.kind === 312 /* JSDocFunctionType */) {\n var jsDocFunctionType = jsdocType;\n if (jsDocFunctionType.parameters.length > 0 &&\n jsDocFunctionType.parameters[0].name &&\n jsDocFunctionType.parameters[0].name.escapedText === \"this\" /* This */) {\n return getTypeFromTypeNode(jsDocFunctionType.parameters[0].type);\n }\n }\n var thisTag = ts.getJSDocThisTag(node);\n if (thisTag && thisTag.typeExpression) {\n return getTypeFromTypeNode(thisTag.typeExpression);\n }\n }\n function isInConstructorArgumentInitializer(node, constructorDecl) {\n return !!ts.findAncestor(node, function (n) { return ts.isFunctionLikeDeclaration(n) ? \"quit\" : n.kind === 162 /* Parameter */ && n.parent === constructorDecl; });\n }\n function checkSuperExpression(node) {\n var isCallExpression = node.parent.kind === 206 /* CallExpression */ && node.parent.expression === node;\n var immediateContainer = ts.getSuperContainer(node, /*stopOnFunctions*/ true);\n var container = immediateContainer;\n var needToCaptureLexicalThis = false;\n // adjust the container reference in case if super is used inside arrow functions with arbitrarily deep nesting\n if (!isCallExpression) {\n while (container && container.kind === 212 /* ArrowFunction */) {\n container = ts.getSuperContainer(container, /*stopOnFunctions*/ true);\n needToCaptureLexicalThis = languageVersion < 2 /* ES2015 */;\n }\n }\n var canUseSuperExpression = isLegalUsageOfSuperExpression(container);\n var nodeCheckFlag = 0;\n if (!canUseSuperExpression) {\n // issue more specific error if super is used in computed property name\n // class A { foo() { return \"1\" }}\n // class B {\n // [super.foo()]() {}\n // }\n var current = ts.findAncestor(node, function (n) { return n === container ? \"quit\" : n.kind === 160 /* ComputedPropertyName */; });\n if (current && current.kind === 160 /* ComputedPropertyName */) {\n error(node, ts.Diagnostics.super_cannot_be_referenced_in_a_computed_property_name);\n }\n else if (isCallExpression) {\n error(node, ts.Diagnostics.Super_calls_are_not_permitted_outside_constructors_or_in_nested_functions_inside_constructors);\n }\n else if (!container || !container.parent || !(ts.isClassLike(container.parent) || container.parent.kind === 203 /* ObjectLiteralExpression */)) {\n error(node, ts.Diagnostics.super_can_only_be_referenced_in_members_of_derived_classes_or_object_literal_expressions);\n }\n else {\n error(node, ts.Diagnostics.super_property_access_is_permitted_only_in_a_constructor_member_function_or_member_accessor_of_a_derived_class);\n }\n return errorType;\n }\n if (!isCallExpression && immediateContainer.kind === 169 /* Constructor */) {\n checkThisBeforeSuper(node, container, ts.Diagnostics.super_must_be_called_before_accessing_a_property_of_super_in_the_constructor_of_a_derived_class);\n }\n if (ts.isStatic(container) || isCallExpression) {\n nodeCheckFlag = 512 /* SuperStatic */;\n if (!isCallExpression &&\n languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */ &&\n (ts.isPropertyDeclaration(container) || ts.isClassStaticBlockDeclaration(container))) {\n // for `super.x` or `super[x]` in a static initializer, mark all enclosing\n // block scope containers so that we can report potential collisions with\n // `Reflect`.\n ts.forEachEnclosingBlockScopeContainer(node.parent, function (current) {\n if (!ts.isSourceFile(current) || ts.isExternalOrCommonJsModule(current)) {\n getNodeLinks(current).flags |= 134217728 /* ContainsSuperPropertyInStaticInitializer */;\n }\n });\n }\n }\n else {\n nodeCheckFlag = 256 /* SuperInstance */;\n }\n getNodeLinks(node).flags |= nodeCheckFlag;\n // Due to how we emit async functions, we need to specialize the emit for an async method that contains a `super` reference.\n // This is due to the fact that we emit the body of an async function inside of a generator function. As generator\n // functions cannot reference `super`, we emit a helper inside of the method body, but outside of the generator. This helper\n // uses an arrow function, which is permitted to reference `super`.\n //\n // There are two primary ways we can access `super` from within an async method. The first is getting the value of a property\n // or indexed access on super, either as part of a right-hand-side expression or call expression. The second is when setting the value\n // of a property or indexed access, either as part of an assignment expression or destructuring assignment.\n //\n // The simplest case is reading a value, in which case we will emit something like the following:\n //\n // // ts\n // ...\n // async asyncMethod() {\n // let x = await super.asyncMethod();\n // return x;\n // }\n // ...\n //\n // // js\n // ...\n // asyncMethod() {\n // const _super = Object.create(null, {\n // asyncMethod: { get: () => super.asyncMethod },\n // });\n // return __awaiter(this, arguments, Promise, function *() {\n // let x = yield _super.asyncMethod.call(this);\n // return x;\n // });\n // }\n // ...\n //\n // The more complex case is when we wish to assign a value, especially as part of a destructuring assignment. As both cases\n // are legal in ES6, but also likely less frequent, we only emit setters if there is an assignment:\n //\n // // ts\n // ...\n // async asyncMethod(ar: Promise) {\n // [super.a, super.b] = await ar;\n // }\n // ...\n //\n // // js\n // ...\n // asyncMethod(ar) {\n // const _super = Object.create(null, {\n // a: { get: () => super.a, set: (v) => super.a = v },\n // b: { get: () => super.b, set: (v) => super.b = v }\n // };\n // return __awaiter(this, arguments, Promise, function *() {\n // [_super.a, _super.b] = yield ar;\n // });\n // }\n // ...\n //\n // Creating an object that has getter and setters instead of just an accessor function is required for destructuring assignments\n // as a call expression cannot be used as the target of a destructuring assignment while a property access can.\n //\n // For element access expressions (`super[x]`), we emit a generic helper that forwards the element access in both situations.\n if (container.kind === 167 /* MethodDeclaration */ && ts.hasSyntacticModifier(container, 256 /* Async */)) {\n if (ts.isSuperProperty(node.parent) && ts.isAssignmentTarget(node.parent)) {\n getNodeLinks(container).flags |= 4096 /* AsyncMethodWithSuperBinding */;\n }\n else {\n getNodeLinks(container).flags |= 2048 /* AsyncMethodWithSuper */;\n }\n }\n if (needToCaptureLexicalThis) {\n // call expressions are allowed only in constructors so they should always capture correct 'this'\n // super property access expressions can also appear in arrow functions -\n // in this case they should also use correct lexical this\n captureLexicalThis(node.parent, container);\n }\n if (container.parent.kind === 203 /* ObjectLiteralExpression */) {\n if (languageVersion < 2 /* ES2015 */) {\n error(node, ts.Diagnostics.super_is_only_allowed_in_members_of_object_literal_expressions_when_option_target_is_ES2015_or_higher);\n return errorType;\n }\n else {\n // for object literal assume that type of 'super' is 'any'\n return anyType;\n }\n }\n // at this point the only legal case for parent is ClassLikeDeclaration\n var classLikeDeclaration = container.parent;\n if (!ts.getClassExtendsHeritageElement(classLikeDeclaration)) {\n error(node, ts.Diagnostics.super_can_only_be_referenced_in_a_derived_class);\n return errorType;\n }\n var classType = getDeclaredTypeOfSymbol(getSymbolOfNode(classLikeDeclaration));\n var baseClassType = classType && getBaseTypes(classType)[0];\n if (!baseClassType) {\n return errorType;\n }\n if (container.kind === 169 /* Constructor */ && isInConstructorArgumentInitializer(node, container)) {\n // issue custom error message for super property access in constructor arguments (to be aligned with old compiler)\n error(node, ts.Diagnostics.super_cannot_be_referenced_in_constructor_arguments);\n return errorType;\n }\n return nodeCheckFlag === 512 /* SuperStatic */\n ? getBaseConstructorTypeOfClass(classType)\n : getTypeWithThisArgument(baseClassType, classType.thisType);\n function isLegalUsageOfSuperExpression(container) {\n if (!container) {\n return false;\n }\n if (isCallExpression) {\n // TS 1.0 SPEC (April 2014): 4.8.1\n // Super calls are only permitted in constructors of derived classes\n return container.kind === 169 /* Constructor */;\n }\n else {\n // TS 1.0 SPEC (April 2014)\n // 'super' property access is allowed\n // - In a constructor, instance member function, instance member accessor, or instance member variable initializer where this references a derived class instance\n // - In a static member function or static member accessor\n // topmost container must be something that is directly nested in the class declaration\\object literal expression\n if (ts.isClassLike(container.parent) || container.parent.kind === 203 /* ObjectLiteralExpression */) {\n if (ts.isStatic(container)) {\n return container.kind === 167 /* MethodDeclaration */ ||\n container.kind === 166 /* MethodSignature */ ||\n container.kind === 170 /* GetAccessor */ ||\n container.kind === 171 /* SetAccessor */ ||\n container.kind === 165 /* PropertyDeclaration */ ||\n container.kind === 168 /* ClassStaticBlockDeclaration */;\n }\n else {\n return container.kind === 167 /* MethodDeclaration */ ||\n container.kind === 166 /* MethodSignature */ ||\n container.kind === 170 /* GetAccessor */ ||\n container.kind === 171 /* SetAccessor */ ||\n container.kind === 165 /* PropertyDeclaration */ ||\n container.kind === 164 /* PropertySignature */ ||\n container.kind === 169 /* Constructor */;\n }\n }\n }\n return false;\n }\n }\n function getContainingObjectLiteral(func) {\n return (func.kind === 167 /* MethodDeclaration */ ||\n func.kind === 170 /* GetAccessor */ ||\n func.kind === 171 /* SetAccessor */) && func.parent.kind === 203 /* ObjectLiteralExpression */ ? func.parent :\n func.kind === 211 /* FunctionExpression */ && func.parent.kind === 291 /* PropertyAssignment */ ? func.parent.parent :\n undefined;\n }\n function getThisTypeArgument(type) {\n return ts.getObjectFlags(type) & 4 /* Reference */ && type.target === globalThisType ? getTypeArguments(type)[0] : undefined;\n }\n function getThisTypeFromContextualType(type) {\n return mapType(type, function (t) {\n return t.flags & 2097152 /* Intersection */ ? ts.forEach(t.types, getThisTypeArgument) : getThisTypeArgument(t);\n });\n }\n function getContextualThisParameterType(func) {\n if (func.kind === 212 /* ArrowFunction */) {\n return undefined;\n }\n if (isContextSensitiveFunctionOrObjectLiteralMethod(func)) {\n var contextualSignature = getContextualSignature(func);\n if (contextualSignature) {\n var thisParameter = contextualSignature.thisParameter;\n if (thisParameter) {\n return getTypeOfSymbol(thisParameter);\n }\n }\n }\n var inJs = ts.isInJSFile(func);\n if (noImplicitThis || inJs) {\n var containingLiteral = getContainingObjectLiteral(func);\n if (containingLiteral) {\n // We have an object literal method. Check if the containing object literal has a contextual type\n // that includes a ThisType. If so, T is the contextual type for 'this'. We continue looking in\n // any directly enclosing object literals.\n var contextualType = getApparentTypeOfContextualType(containingLiteral);\n var literal = containingLiteral;\n var type = contextualType;\n while (type) {\n var thisType = getThisTypeFromContextualType(type);\n if (thisType) {\n return instantiateType(thisType, getMapperFromContext(getInferenceContext(containingLiteral)));\n }\n if (literal.parent.kind !== 291 /* PropertyAssignment */) {\n break;\n }\n literal = literal.parent.parent;\n type = getApparentTypeOfContextualType(literal);\n }\n // There was no contextual ThisType for the containing object literal, so the contextual type\n // for 'this' is the non-null form of the contextual type for the containing object literal or\n // the type of the object literal itself.\n return getWidenedType(contextualType ? getNonNullableType(contextualType) : checkExpressionCached(containingLiteral));\n }\n // In an assignment of the form 'obj.xxx = function(...)' or 'obj[xxx] = function(...)', the\n // contextual type for 'this' is 'obj'.\n var parent = ts.walkUpParenthesizedExpressions(func.parent);\n if (parent.kind === 219 /* BinaryExpression */ && parent.operatorToken.kind === 63 /* EqualsToken */) {\n var target = parent.left;\n if (ts.isAccessExpression(target)) {\n var expression = target.expression;\n // Don't contextually type `this` as `exports` in `exports.Point = function(x, y) { this.x = x; this.y = y; }`\n if (inJs && ts.isIdentifier(expression)) {\n var sourceFile = ts.getSourceFileOfNode(parent);\n if (sourceFile.commonJsModuleIndicator && getResolvedSymbol(expression) === sourceFile.symbol) {\n return undefined;\n }\n }\n return getWidenedType(checkExpressionCached(expression));\n }\n }\n }\n return undefined;\n }\n // Return contextual type of parameter or undefined if no contextual type is available\n function getContextuallyTypedParameterType(parameter) {\n var func = parameter.parent;\n if (!isContextSensitiveFunctionOrObjectLiteralMethod(func)) {\n return undefined;\n }\n var iife = ts.getImmediatelyInvokedFunctionExpression(func);\n if (iife && iife.arguments) {\n var args = getEffectiveCallArguments(iife);\n var indexOfParameter = func.parameters.indexOf(parameter);\n if (parameter.dotDotDotToken) {\n return getSpreadArgumentType(args, indexOfParameter, args.length, anyType, /*context*/ undefined, 0 /* Normal */);\n }\n var links = getNodeLinks(iife);\n var cached = links.resolvedSignature;\n links.resolvedSignature = anySignature;\n var type = indexOfParameter < args.length ?\n getWidenedLiteralType(checkExpression(args[indexOfParameter])) :\n parameter.initializer ? undefined : undefinedWideningType;\n links.resolvedSignature = cached;\n return type;\n }\n var contextualSignature = getContextualSignature(func);\n if (contextualSignature) {\n var index = func.parameters.indexOf(parameter) - (ts.getThisParameter(func) ? 1 : 0);\n return parameter.dotDotDotToken && ts.lastOrUndefined(func.parameters) === parameter ?\n getRestTypeAtPosition(contextualSignature, index) :\n tryGetTypeAtPosition(contextualSignature, index);\n }\n }\n function getContextualTypeForVariableLikeDeclaration(declaration) {\n var typeNode = ts.getEffectiveTypeAnnotationNode(declaration);\n if (typeNode) {\n return getTypeFromTypeNode(typeNode);\n }\n switch (declaration.kind) {\n case 162 /* Parameter */:\n return getContextuallyTypedParameterType(declaration);\n case 201 /* BindingElement */:\n return getContextualTypeForBindingElement(declaration);\n case 165 /* PropertyDeclaration */:\n if (ts.isStatic(declaration)) {\n return getContextualTypeForStaticPropertyDeclaration(declaration);\n }\n // By default, do nothing and return undefined - only the above cases have context implied by a parent\n }\n }\n function getContextualTypeForBindingElement(declaration) {\n var parent = declaration.parent.parent;\n var name = declaration.propertyName || declaration.name;\n var parentType = getContextualTypeForVariableLikeDeclaration(parent) ||\n parent.kind !== 201 /* BindingElement */ && parent.initializer && checkDeclarationInitializer(parent);\n if (!parentType || ts.isBindingPattern(name) || ts.isComputedNonLiteralName(name))\n return undefined;\n if (parent.name.kind === 200 /* ArrayBindingPattern */) {\n var index = ts.indexOfNode(declaration.parent.elements, declaration);\n if (index < 0)\n return undefined;\n return getContextualTypeForElementExpression(parentType, index);\n }\n var nameType = getLiteralTypeFromPropertyName(name);\n if (isTypeUsableAsPropertyName(nameType)) {\n var text = getPropertyNameFromType(nameType);\n return getTypeOfPropertyOfType(parentType, text);\n }\n }\n function getContextualTypeForStaticPropertyDeclaration(declaration) {\n var parentType = ts.isExpression(declaration.parent) && getContextualType(declaration.parent);\n if (!parentType)\n return undefined;\n return getTypeOfPropertyOfContextualType(parentType, getSymbolOfNode(declaration).escapedName);\n }\n // In a variable, parameter or property declaration with a type annotation,\n // the contextual type of an initializer expression is the type of the variable, parameter or property.\n // Otherwise, in a parameter declaration of a contextually typed function expression,\n // the contextual type of an initializer expression is the contextual type of the parameter.\n // Otherwise, in a variable or parameter declaration with a binding pattern name,\n // the contextual type of an initializer expression is the type implied by the binding pattern.\n // Otherwise, in a binding pattern inside a variable or parameter declaration,\n // the contextual type of an initializer expression is the type annotation of the containing declaration, if present.\n function getContextualTypeForInitializerExpression(node, contextFlags) {\n var declaration = node.parent;\n if (ts.hasInitializer(declaration) && node === declaration.initializer) {\n var result = getContextualTypeForVariableLikeDeclaration(declaration);\n if (result) {\n return result;\n }\n if (!(contextFlags & 8 /* SkipBindingPatterns */) && ts.isBindingPattern(declaration.name)) { // This is less a contextual type and more an implied shape - in some cases, this may be undesirable\n return getTypeFromBindingPattern(declaration.name, /*includePatternInType*/ true, /*reportErrors*/ false);\n }\n }\n return undefined;\n }\n function getContextualTypeForReturnExpression(node) {\n var func = ts.getContainingFunction(node);\n if (func) {\n var contextualReturnType = getContextualReturnType(func);\n if (contextualReturnType) {\n var functionFlags = ts.getFunctionFlags(func);\n if (functionFlags & 1 /* Generator */) { // Generator or AsyncGenerator function\n var use = functionFlags & 2 /* Async */ ? 2 /* AsyncGeneratorReturnType */ : 1 /* GeneratorReturnType */;\n var iterationTypes = getIterationTypesOfIterable(contextualReturnType, use, /*errorNode*/ undefined);\n if (!iterationTypes) {\n return undefined;\n }\n contextualReturnType = iterationTypes.returnType;\n // falls through to unwrap Promise for AsyncGenerators\n }\n if (functionFlags & 2 /* Async */) { // Async function or AsyncGenerator function\n var contextualAwaitedType = mapType(contextualReturnType, getAwaitedType);\n return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]);\n }\n return contextualReturnType; // Regular function or Generator function\n }\n }\n return undefined;\n }\n function getContextualTypeForAwaitOperand(node, contextFlags) {\n var contextualType = getContextualType(node, contextFlags);\n if (contextualType) {\n var contextualAwaitedType = getAwaitedType(contextualType);\n return contextualAwaitedType && getUnionType([contextualAwaitedType, createPromiseLikeType(contextualAwaitedType)]);\n }\n return undefined;\n }\n function getContextualTypeForYieldOperand(node) {\n var func = ts.getContainingFunction(node);\n if (func) {\n var functionFlags = ts.getFunctionFlags(func);\n var contextualReturnType = getContextualReturnType(func);\n if (contextualReturnType) {\n return node.asteriskToken\n ? contextualReturnType\n : getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, contextualReturnType, (functionFlags & 2 /* Async */) !== 0);\n }\n }\n return undefined;\n }\n function isInParameterInitializerBeforeContainingFunction(node) {\n var inBindingInitializer = false;\n while (node.parent && !ts.isFunctionLike(node.parent)) {\n if (ts.isParameter(node.parent) && (inBindingInitializer || node.parent.initializer === node)) {\n return true;\n }\n if (ts.isBindingElement(node.parent) && node.parent.initializer === node) {\n inBindingInitializer = true;\n }\n node = node.parent;\n }\n return false;\n }\n function getContextualIterationType(kind, functionDecl) {\n var isAsync = !!(ts.getFunctionFlags(functionDecl) & 2 /* Async */);\n var contextualReturnType = getContextualReturnType(functionDecl);\n if (contextualReturnType) {\n return getIterationTypeOfGeneratorFunctionReturnType(kind, contextualReturnType, isAsync)\n || undefined;\n }\n return undefined;\n }\n function getContextualReturnType(functionDecl) {\n // If the containing function has a return type annotation, is a constructor, or is a get accessor whose\n // corresponding set accessor has a type annotation, return statements in the function are contextually typed\n var returnType = getReturnTypeFromAnnotation(functionDecl);\n if (returnType) {\n return returnType;\n }\n // Otherwise, if the containing function is contextually typed by a function type with exactly one call signature\n // and that call signature is non-generic, return statements are contextually typed by the return type of the signature\n var signature = getContextualSignatureForFunctionLikeDeclaration(functionDecl);\n if (signature && !isResolvingReturnTypeOfSignature(signature)) {\n return getReturnTypeOfSignature(signature);\n }\n return undefined;\n }\n // In a typed function call, an argument or substitution expression is contextually typed by the type of the corresponding parameter.\n function getContextualTypeForArgument(callTarget, arg) {\n var args = getEffectiveCallArguments(callTarget);\n var argIndex = args.indexOf(arg); // -1 for e.g. the expression of a CallExpression, or the tag of a TaggedTemplateExpression\n return argIndex === -1 ? undefined : getContextualTypeForArgumentAtIndex(callTarget, argIndex);\n }\n function getContextualTypeForArgumentAtIndex(callTarget, argIndex) {\n // If we're already in the process of resolving the given signature, don't resolve again as\n // that could cause infinite recursion. Instead, return anySignature.\n var signature = getNodeLinks(callTarget).resolvedSignature === resolvingSignature ? resolvingSignature : getResolvedSignature(callTarget);\n if (ts.isJsxOpeningLikeElement(callTarget) && argIndex === 0) {\n return getEffectiveFirstArgumentForJsxSignature(signature, callTarget);\n }\n var restIndex = signature.parameters.length - 1;\n return signatureHasRestParameter(signature) && argIndex >= restIndex ?\n getIndexedAccessType(getTypeOfSymbol(signature.parameters[restIndex]), getNumberLiteralType(argIndex - restIndex), 256 /* Contextual */) :\n getTypeAtPosition(signature, argIndex);\n }\n function getContextualTypeForSubstitutionExpression(template, substitutionExpression) {\n if (template.parent.kind === 208 /* TaggedTemplateExpression */) {\n return getContextualTypeForArgument(template.parent, substitutionExpression);\n }\n return undefined;\n }\n function getContextualTypeForBinaryOperand(node, contextFlags) {\n var binaryExpression = node.parent;\n var left = binaryExpression.left, operatorToken = binaryExpression.operatorToken, right = binaryExpression.right;\n switch (operatorToken.kind) {\n case 63 /* EqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 75 /* BarBarEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return node === right ? getContextualTypeForAssignmentDeclaration(binaryExpression) : undefined;\n case 56 /* BarBarToken */:\n case 60 /* QuestionQuestionToken */:\n // When an || expression has a contextual type, the operands are contextually typed by that type, except\n // when that type originates in a binding pattern, the right operand is contextually typed by the type of\n // the left operand. When an || expression has no contextual type, the right operand is contextually typed\n // by the type of the left operand, except for the special case of Javascript declarations of the form\n // `namespace.prop = namespace.prop || {}`.\n var type = getContextualType(binaryExpression, contextFlags);\n return node === right && (type && type.pattern || !type && !ts.isDefaultedExpandoInitializer(binaryExpression)) ?\n getTypeOfExpression(left) : type;\n case 55 /* AmpersandAmpersandToken */:\n case 27 /* CommaToken */:\n return node === right ? getContextualType(binaryExpression, contextFlags) : undefined;\n default:\n return undefined;\n }\n }\n /**\n * Try to find a resolved symbol for an expression without also resolving its type, as\n * getSymbolAtLocation would (as that could be reentrant into contextual typing)\n */\n function getSymbolForExpression(e) {\n if (e.symbol) {\n return e.symbol;\n }\n if (ts.isIdentifier(e)) {\n return getResolvedSymbol(e);\n }\n if (ts.isPropertyAccessExpression(e)) {\n var lhsType = getTypeOfExpression(e.expression);\n return ts.isPrivateIdentifier(e.name) ? tryGetPrivateIdentifierPropertyOfType(lhsType, e.name) : getPropertyOfType(lhsType, e.name.escapedText);\n }\n return undefined;\n function tryGetPrivateIdentifierPropertyOfType(type, id) {\n var lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(id.escapedText, id);\n return lexicallyScopedSymbol && getPrivateIdentifierPropertyOfType(type, lexicallyScopedSymbol);\n }\n }\n // In an assignment expression, the right operand is contextually typed by the type of the left operand.\n // Don't do this for assignment declarations unless there is a type tag on the assignment, to avoid circularity from checking the right operand.\n function getContextualTypeForAssignmentDeclaration(binaryExpression) {\n var _a, _b;\n var kind = ts.getAssignmentDeclarationKind(binaryExpression);\n switch (kind) {\n case 0 /* None */:\n case 4 /* ThisProperty */:\n var lhsSymbol = getSymbolForExpression(binaryExpression.left);\n var decl = lhsSymbol && lhsSymbol.valueDeclaration;\n // Unannotated, uninitialized property declarations have a type implied by their usage in the constructor.\n // We avoid calling back into `getTypeOfExpression` and reentering contextual typing to avoid a bogus circularity error in that case.\n if (decl && (ts.isPropertyDeclaration(decl) || ts.isPropertySignature(decl))) {\n var overallAnnotation = ts.getEffectiveTypeAnnotationNode(decl);\n return (overallAnnotation && instantiateType(getTypeFromTypeNode(overallAnnotation), getSymbolLinks(lhsSymbol).mapper)) ||\n (decl.initializer && getTypeOfExpression(binaryExpression.left));\n }\n if (kind === 0 /* None */) {\n return getTypeOfExpression(binaryExpression.left);\n }\n return getContextualTypeForThisPropertyAssignment(binaryExpression);\n case 5 /* Property */:\n if (isPossiblyAliasedThisProperty(binaryExpression, kind)) {\n return getContextualTypeForThisPropertyAssignment(binaryExpression);\n }\n // If `binaryExpression.left` was assigned a symbol, then this is a new declaration; otherwise it is an assignment to an existing declaration.\n // See `bindStaticPropertyAssignment` in `binder.ts`.\n else if (!binaryExpression.left.symbol) {\n return getTypeOfExpression(binaryExpression.left);\n }\n else {\n var decl_1 = binaryExpression.left.symbol.valueDeclaration;\n if (!decl_1) {\n return undefined;\n }\n var lhs = ts.cast(binaryExpression.left, ts.isAccessExpression);\n var overallAnnotation = ts.getEffectiveTypeAnnotationNode(decl_1);\n if (overallAnnotation) {\n return getTypeFromTypeNode(overallAnnotation);\n }\n else if (ts.isIdentifier(lhs.expression)) {\n var id = lhs.expression;\n var parentSymbol = resolveName(id, id.escapedText, 111551 /* Value */, undefined, id.escapedText, /*isUse*/ true);\n if (parentSymbol) {\n var annotated_1 = parentSymbol.valueDeclaration && ts.getEffectiveTypeAnnotationNode(parentSymbol.valueDeclaration);\n if (annotated_1) {\n var nameStr = ts.getElementOrPropertyAccessName(lhs);\n if (nameStr !== undefined) {\n return getTypeOfPropertyOfContextualType(getTypeFromTypeNode(annotated_1), nameStr);\n }\n }\n return undefined;\n }\n }\n return ts.isInJSFile(decl_1) ? undefined : getTypeOfExpression(binaryExpression.left);\n }\n case 1 /* ExportsProperty */:\n case 6 /* Prototype */:\n case 3 /* PrototypeProperty */:\n var valueDeclaration = (_a = binaryExpression.left.symbol) === null || _a === void 0 ? void 0 : _a.valueDeclaration;\n // falls through\n case 2 /* ModuleExports */:\n valueDeclaration || (valueDeclaration = (_b = binaryExpression.symbol) === null || _b === void 0 ? void 0 : _b.valueDeclaration);\n var annotated = valueDeclaration && ts.getEffectiveTypeAnnotationNode(valueDeclaration);\n return annotated ? getTypeFromTypeNode(annotated) : undefined;\n case 7 /* ObjectDefinePropertyValue */:\n case 8 /* ObjectDefinePropertyExports */:\n case 9 /* ObjectDefinePrototypeProperty */:\n return ts.Debug.fail(\"Does not apply\");\n default:\n return ts.Debug.assertNever(kind);\n }\n }\n function isPossiblyAliasedThisProperty(declaration, kind) {\n if (kind === void 0) { kind = ts.getAssignmentDeclarationKind(declaration); }\n if (kind === 4 /* ThisProperty */) {\n return true;\n }\n if (!ts.isInJSFile(declaration) || kind !== 5 /* Property */ || !ts.isIdentifier(declaration.left.expression)) {\n return false;\n }\n var name = declaration.left.expression.escapedText;\n var symbol = resolveName(declaration.left, name, 111551 /* Value */, undefined, undefined, /*isUse*/ true, /*excludeGlobals*/ true);\n return ts.isThisInitializedDeclaration(symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration);\n }\n function getContextualTypeForThisPropertyAssignment(binaryExpression) {\n if (!binaryExpression.symbol)\n return getTypeOfExpression(binaryExpression.left);\n if (binaryExpression.symbol.valueDeclaration) {\n var annotated = ts.getEffectiveTypeAnnotationNode(binaryExpression.symbol.valueDeclaration);\n if (annotated) {\n var type = getTypeFromTypeNode(annotated);\n if (type) {\n return type;\n }\n }\n }\n var thisAccess = ts.cast(binaryExpression.left, ts.isAccessExpression);\n if (!ts.isObjectLiteralMethod(ts.getThisContainer(thisAccess.expression, /*includeArrowFunctions*/ false))) {\n return undefined;\n }\n var thisType = checkThisExpression(thisAccess.expression);\n var nameStr = ts.getElementOrPropertyAccessName(thisAccess);\n return nameStr !== undefined && getTypeOfPropertyOfContextualType(thisType, nameStr) || undefined;\n }\n function isCircularMappedProperty(symbol) {\n return !!(ts.getCheckFlags(symbol) & 262144 /* Mapped */ && !symbol.type && findResolutionCycleStartIndex(symbol, 0 /* Type */) >= 0);\n }\n function getTypeOfPropertyOfContextualType(type, name) {\n return mapType(type, function (t) {\n var _a;\n if (isGenericMappedType(t)) {\n var constraint = getConstraintTypeFromMappedType(t);\n var constraintOfConstraint = getBaseConstraintOfType(constraint) || constraint;\n var propertyNameType = getStringLiteralType(ts.unescapeLeadingUnderscores(name));\n if (isTypeAssignableTo(propertyNameType, constraintOfConstraint)) {\n return substituteIndexedMappedType(t, propertyNameType);\n }\n }\n else if (t.flags & 3670016 /* StructuredType */) {\n var prop = getPropertyOfType(t, name);\n if (prop) {\n return isCircularMappedProperty(prop) ? undefined : getTypeOfSymbol(prop);\n }\n if (isTupleType(t)) {\n var restType = getRestTypeOfTupleType(t);\n if (restType && isNumericLiteralName(name) && +name >= 0) {\n return restType;\n }\n }\n return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), getStringLiteralType(ts.unescapeLeadingUnderscores(name)))) === null || _a === void 0 ? void 0 : _a.type;\n }\n return undefined;\n }, /*noReductions*/ true);\n }\n // In an object literal contextually typed by a type T, the contextual type of a property assignment is the type of\n // the matching property in T, if one exists. Otherwise, it is the type of the numeric index signature in T, if one\n // exists. Otherwise, it is the type of the string index signature in T, if one exists.\n function getContextualTypeForObjectLiteralMethod(node, contextFlags) {\n ts.Debug.assert(ts.isObjectLiteralMethod(node));\n if (node.flags & 16777216 /* InWithStatement */) {\n // We cannot answer semantic questions within a with block, do not proceed any further\n return undefined;\n }\n return getContextualTypeForObjectLiteralElement(node, contextFlags);\n }\n function getContextualTypeForObjectLiteralElement(element, contextFlags) {\n var objectLiteral = element.parent;\n var propertyAssignmentType = ts.isPropertyAssignment(element) && getContextualTypeForVariableLikeDeclaration(element);\n if (propertyAssignmentType) {\n return propertyAssignmentType;\n }\n var type = getApparentTypeOfContextualType(objectLiteral, contextFlags);\n if (type) {\n if (hasBindableName(element)) {\n // For a (non-symbol) computed property, there is no reason to look up the name\n // in the type. It will just be \"__computed\", which does not appear in any\n // SymbolTable.\n return getTypeOfPropertyOfContextualType(type, getSymbolOfNode(element).escapedName);\n }\n if (element.name) {\n var nameType_1 = getLiteralTypeFromPropertyName(element.name);\n // We avoid calling getApplicableIndexInfo here because it performs potentially expensive intersection reduction.\n return mapType(type, function (t) { var _a; return (_a = findApplicableIndexInfo(getIndexInfosOfStructuredType(t), nameType_1)) === null || _a === void 0 ? void 0 : _a.type; }, /*noReductions*/ true);\n }\n }\n return undefined;\n }\n // In an array literal contextually typed by a type T, the contextual type of an element expression at index N is\n // the type of the property with the numeric name N in T, if one exists. Otherwise, if T has a numeric index signature,\n // it is the type of the numeric index signature in T. Otherwise, in ES6 and higher, the contextual type is the iterated\n // type of T.\n function getContextualTypeForElementExpression(arrayContextualType, index) {\n return arrayContextualType && (getTypeOfPropertyOfContextualType(arrayContextualType, \"\" + index)\n || mapType(arrayContextualType, function (t) { return getIteratedTypeOrElementType(1 /* Element */, t, undefinedType, /*errorNode*/ undefined, /*checkAssignability*/ false); }, \n /*noReductions*/ true));\n }\n // In a contextually typed conditional expression, the true/false expressions are contextually typed by the same type.\n function getContextualTypeForConditionalOperand(node, contextFlags) {\n var conditional = node.parent;\n return node === conditional.whenTrue || node === conditional.whenFalse ? getContextualType(conditional, contextFlags) : undefined;\n }\n function getContextualTypeForChildJsxExpression(node, child) {\n var attributesType = getApparentTypeOfContextualType(node.openingElement.tagName);\n // JSX expression is in children of JSX Element, we will look for an \"children\" attribute (we get the name from JSX.ElementAttributesProperty)\n var jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(node));\n if (!(attributesType && !isTypeAny(attributesType) && jsxChildrenPropertyName && jsxChildrenPropertyName !== \"\")) {\n return undefined;\n }\n var realChildren = ts.getSemanticJsxChildren(node.children);\n var childIndex = realChildren.indexOf(child);\n var childFieldType = getTypeOfPropertyOfContextualType(attributesType, jsxChildrenPropertyName);\n return childFieldType && (realChildren.length === 1 ? childFieldType : mapType(childFieldType, function (t) {\n if (isArrayLikeType(t)) {\n return getIndexedAccessType(t, getNumberLiteralType(childIndex));\n }\n else {\n return t;\n }\n }, /*noReductions*/ true));\n }\n function getContextualTypeForJsxExpression(node) {\n var exprParent = node.parent;\n return ts.isJsxAttributeLike(exprParent)\n ? getContextualType(node)\n : ts.isJsxElement(exprParent)\n ? getContextualTypeForChildJsxExpression(exprParent, node)\n : undefined;\n }\n function getContextualTypeForJsxAttribute(attribute) {\n // When we trying to resolve JsxOpeningLikeElement as a stateless function element, we will already give its attributes a contextual type\n // which is a type of the parameter of the signature we are trying out.\n // If there is no contextual type (e.g. we are trying to resolve stateful component), get attributes type from resolving element's tagName\n if (ts.isJsxAttribute(attribute)) {\n var attributesType = getApparentTypeOfContextualType(attribute.parent);\n if (!attributesType || isTypeAny(attributesType)) {\n return undefined;\n }\n return getTypeOfPropertyOfContextualType(attributesType, attribute.name.escapedText);\n }\n else {\n return getContextualType(attribute.parent);\n }\n }\n // Return true if the given expression is possibly a discriminant value. We limit the kinds of\n // expressions we check to those that don't depend on their contextual type in order not to cause\n // recursive (and possibly infinite) invocations of getContextualType.\n function isPossiblyDiscriminantValue(node) {\n switch (node.kind) {\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 104 /* NullKeyword */:\n case 79 /* Identifier */:\n case 151 /* UndefinedKeyword */:\n return true;\n case 204 /* PropertyAccessExpression */:\n case 210 /* ParenthesizedExpression */:\n return isPossiblyDiscriminantValue(node.expression);\n case 286 /* JsxExpression */:\n return !node.expression || isPossiblyDiscriminantValue(node.expression);\n }\n return false;\n }\n function discriminateContextualTypeByObjectMembers(node, contextualType) {\n return getMatchingUnionConstituentForObjectLiteral(contextualType, node) || discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 291 /* PropertyAssignment */ && isPossiblyDiscriminantValue(p.initializer) && isDiscriminantProperty(contextualType, p.symbol.escapedName); }), function (prop) { return [function () { return getContextFreeTypeOfExpression(prop.initializer); }, prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_a = node === null || node === void 0 ? void 0 : node.symbol) === null || _a === void 0 ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); }), function (s) { return [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);\n }\n function discriminateContextualTypeByJSXAttributes(node, contextualType) {\n return discriminateTypeByDiscriminableItems(contextualType, ts.concatenate(ts.map(ts.filter(node.properties, function (p) { return !!p.symbol && p.kind === 283 /* JsxAttribute */ && isDiscriminantProperty(contextualType, p.symbol.escapedName) && (!p.initializer || isPossiblyDiscriminantValue(p.initializer)); }), function (prop) { return [!prop.initializer ? (function () { return trueType; }) : (function () { return checkExpression(prop.initializer); }), prop.symbol.escapedName]; }), ts.map(ts.filter(getPropertiesOfType(contextualType), function (s) { var _a; return !!(s.flags & 16777216 /* Optional */) && !!((_a = node === null || node === void 0 ? void 0 : node.symbol) === null || _a === void 0 ? void 0 : _a.members) && !node.symbol.members.has(s.escapedName) && isDiscriminantProperty(contextualType, s.escapedName); }), function (s) { return [function () { return undefinedType; }, s.escapedName]; })), isTypeAssignableTo, contextualType);\n }\n // Return the contextual type for a given expression node. During overload resolution, a contextual type may temporarily\n // be \"pushed\" onto a node using the contextualType property.\n function getApparentTypeOfContextualType(node, contextFlags) {\n var contextualType = ts.isObjectLiteralMethod(node) ?\n getContextualTypeForObjectLiteralMethod(node, contextFlags) :\n getContextualType(node, contextFlags);\n var instantiatedType = instantiateContextualType(contextualType, node, contextFlags);\n if (instantiatedType && !(contextFlags && contextFlags & 2 /* NoConstraints */ && instantiatedType.flags & 8650752 /* TypeVariable */)) {\n var apparentType = mapType(instantiatedType, getApparentType, /*noReductions*/ true);\n return apparentType.flags & 1048576 /* Union */ && ts.isObjectLiteralExpression(node) ? discriminateContextualTypeByObjectMembers(node, apparentType) :\n apparentType.flags & 1048576 /* Union */ && ts.isJsxAttributes(node) ? discriminateContextualTypeByJSXAttributes(node, apparentType) :\n apparentType;\n }\n }\n // If the given contextual type contains instantiable types and if a mapper representing\n // return type inferences is available, instantiate those types using that mapper.\n function instantiateContextualType(contextualType, node, contextFlags) {\n if (contextualType && maybeTypeOfKind(contextualType, 465829888 /* Instantiable */)) {\n var inferenceContext = getInferenceContext(node);\n // If no inferences have been made, nothing is gained from instantiating as type parameters\n // would just be replaced with their defaults similar to the apparent type.\n if (inferenceContext && ts.some(inferenceContext.inferences, hasInferenceCandidates)) {\n // For contextual signatures we incorporate all inferences made so far, e.g. from return\n // types as well as arguments to the left in a function call.\n if (contextFlags && contextFlags & 1 /* Signature */) {\n return instantiateInstantiableTypes(contextualType, inferenceContext.nonFixingMapper);\n }\n // For other purposes (e.g. determining whether to produce literal types) we only\n // incorporate inferences made from the return type in a function call.\n if (inferenceContext.returnMapper) {\n return instantiateInstantiableTypes(contextualType, inferenceContext.returnMapper);\n }\n }\n }\n return contextualType;\n }\n // This function is similar to instantiateType, except that (a) it only instantiates types that\n // are classified as instantiable (i.e. it doesn't instantiate object types), and (b) it performs\n // no reductions on instantiated union types.\n function instantiateInstantiableTypes(type, mapper) {\n if (type.flags & 465829888 /* Instantiable */) {\n return instantiateType(type, mapper);\n }\n if (type.flags & 1048576 /* Union */) {\n return getUnionType(ts.map(type.types, function (t) { return instantiateInstantiableTypes(t, mapper); }), 0 /* None */);\n }\n if (type.flags & 2097152 /* Intersection */) {\n return getIntersectionType(ts.map(type.types, function (t) { return instantiateInstantiableTypes(t, mapper); }));\n }\n return type;\n }\n /**\n * Whoa! Do you really want to use this function?\n *\n * Unless you're trying to get the *non-apparent* type for a\n * value-literal type or you're authoring relevant portions of this algorithm,\n * you probably meant to use 'getApparentTypeOfContextualType'.\n * Otherwise this may not be very useful.\n *\n * In cases where you *are* working on this function, you should understand\n * when it is appropriate to use 'getContextualType' and 'getApparentTypeOfContextualType'.\n *\n * - Use 'getContextualType' when you are simply going to propagate the result to the expression.\n * - Use 'getApparentTypeOfContextualType' when you're going to need the members of the type.\n *\n * @param node the expression whose contextual type will be returned.\n * @returns the contextual type of an expression.\n */\n function getContextualType(node, contextFlags) {\n if (node.flags & 16777216 /* InWithStatement */) {\n // We cannot answer semantic questions within a with block, do not proceed any further\n return undefined;\n }\n if (node.contextualType) {\n return node.contextualType;\n }\n var parent = node.parent;\n switch (parent.kind) {\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 201 /* BindingElement */:\n return getContextualTypeForInitializerExpression(node, contextFlags);\n case 212 /* ArrowFunction */:\n case 245 /* ReturnStatement */:\n return getContextualTypeForReturnExpression(node);\n case 222 /* YieldExpression */:\n return getContextualTypeForYieldOperand(parent);\n case 216 /* AwaitExpression */:\n return getContextualTypeForAwaitOperand(parent, contextFlags);\n case 206 /* CallExpression */:\n if (parent.expression.kind === 100 /* ImportKeyword */) {\n return stringType;\n }\n /* falls through */\n case 207 /* NewExpression */:\n return getContextualTypeForArgument(parent, node);\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n return ts.isConstTypeReference(parent.type) ? tryFindWhenConstTypeReference(parent) : getTypeFromTypeNode(parent.type);\n case 219 /* BinaryExpression */:\n return getContextualTypeForBinaryOperand(node, contextFlags);\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n return getContextualTypeForObjectLiteralElement(parent, contextFlags);\n case 293 /* SpreadAssignment */:\n return getContextualType(parent.parent, contextFlags);\n case 202 /* ArrayLiteralExpression */: {\n var arrayLiteral = parent;\n var type = getApparentTypeOfContextualType(arrayLiteral, contextFlags);\n return getContextualTypeForElementExpression(type, ts.indexOfNode(arrayLiteral.elements, node));\n }\n case 220 /* ConditionalExpression */:\n return getContextualTypeForConditionalOperand(node, contextFlags);\n case 231 /* TemplateSpan */:\n ts.Debug.assert(parent.parent.kind === 221 /* TemplateExpression */);\n return getContextualTypeForSubstitutionExpression(parent.parent, node);\n case 210 /* ParenthesizedExpression */: {\n // Like in `checkParenthesizedExpression`, an `/** @type {xyz} */` comment before a parenthesized expression acts as a type cast.\n var tag = ts.isInJSFile(parent) ? ts.getJSDocTypeTag(parent) : undefined;\n return tag ? getTypeFromTypeNode(tag.typeExpression.type) : getContextualType(parent, contextFlags);\n }\n case 228 /* NonNullExpression */:\n return getContextualType(parent, contextFlags);\n case 286 /* JsxExpression */:\n return getContextualTypeForJsxExpression(parent);\n case 283 /* JsxAttribute */:\n case 285 /* JsxSpreadAttribute */:\n return getContextualTypeForJsxAttribute(parent);\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n return getContextualJsxElementAttributesType(parent, contextFlags);\n }\n return undefined;\n function tryFindWhenConstTypeReference(node) {\n return getContextualType(node);\n }\n }\n function getInferenceContext(node) {\n var ancestor = ts.findAncestor(node, function (n) { return !!n.inferenceContext; });\n return ancestor && ancestor.inferenceContext;\n }\n function getContextualJsxElementAttributesType(node, contextFlags) {\n if (ts.isJsxOpeningElement(node) && node.parent.contextualType && contextFlags !== 4 /* Completions */) {\n // Contextually applied type is moved from attributes up to the outer jsx attributes so when walking up from the children they get hit\n // _However_ to hit them from the _attributes_ we must look for them here; otherwise we'll used the declared type\n // (as below) instead!\n return node.parent.contextualType;\n }\n return getContextualTypeForArgumentAtIndex(node, 0);\n }\n function getEffectiveFirstArgumentForJsxSignature(signature, node) {\n return getJsxReferenceKind(node) !== 0 /* Component */\n ? getJsxPropsTypeFromCallSignature(signature, node)\n : getJsxPropsTypeFromClassType(signature, node);\n }\n function getJsxPropsTypeFromCallSignature(sig, context) {\n var propsType = getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType);\n propsType = getJsxManagedAttributesFromLocatedAttributes(context, getJsxNamespaceAt(context), propsType);\n var intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context);\n if (intrinsicAttribs !== errorType) {\n propsType = intersectTypes(intrinsicAttribs, propsType);\n }\n return propsType;\n }\n function getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation) {\n if (sig.compositeSignatures) {\n // JSX Elements using the legacy `props`-field based lookup (eg, react class components) need to treat the `props` member as an input\n // instead of an output position when resolving the signature. We need to go back to the input signatures of the composite signature,\n // get the type of `props` on each return type individually, and then _intersect them_, rather than union them (as would normally occur\n // for a union signature). It's an unfortunate quirk of looking in the output of the signature for the type we want to use for the input.\n // The default behavior of `getTypeOfFirstParameterOfSignatureWithFallback` when no `props` member name is defined is much more sane.\n var results = [];\n for (var _i = 0, _a = sig.compositeSignatures; _i < _a.length; _i++) {\n var signature = _a[_i];\n var instance = getReturnTypeOfSignature(signature);\n if (isTypeAny(instance)) {\n return instance;\n }\n var propType = getTypeOfPropertyOfType(instance, forcedLookupLocation);\n if (!propType) {\n return;\n }\n results.push(propType);\n }\n return getIntersectionType(results); // Same result for both union and intersection signatures\n }\n var instanceType = getReturnTypeOfSignature(sig);\n return isTypeAny(instanceType) ? instanceType : getTypeOfPropertyOfType(instanceType, forcedLookupLocation);\n }\n function getStaticTypeOfReferencedJsxConstructor(context) {\n if (isJsxIntrinsicIdentifier(context.tagName)) {\n var result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(context);\n var fakeSignature = createSignatureForJSXIntrinsic(context, result);\n return getOrCreateTypeFromSignature(fakeSignature);\n }\n var tagType = checkExpressionCached(context.tagName);\n if (tagType.flags & 128 /* StringLiteral */) {\n var result = getIntrinsicAttributesTypeFromStringLiteralType(tagType, context);\n if (!result) {\n return errorType;\n }\n var fakeSignature = createSignatureForJSXIntrinsic(context, result);\n return getOrCreateTypeFromSignature(fakeSignature);\n }\n return tagType;\n }\n function getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType) {\n var managedSym = getJsxLibraryManagedAttributes(ns);\n if (managedSym) {\n var declaredManagedType = getDeclaredTypeOfSymbol(managedSym); // fetches interface type, or initializes symbol links type parmaeters\n var ctorType = getStaticTypeOfReferencedJsxConstructor(context);\n if (managedSym.flags & 524288 /* TypeAlias */) {\n var params = getSymbolLinks(managedSym).typeParameters;\n if (ts.length(params) >= 2) {\n var args = fillMissingTypeArguments([ctorType, attributesType], params, 2, ts.isInJSFile(context));\n return getTypeAliasInstantiation(managedSym, args);\n }\n }\n if (ts.length(declaredManagedType.typeParameters) >= 2) {\n var args = fillMissingTypeArguments([ctorType, attributesType], declaredManagedType.typeParameters, 2, ts.isInJSFile(context));\n return createTypeReference(declaredManagedType, args);\n }\n }\n return attributesType;\n }\n function getJsxPropsTypeFromClassType(sig, context) {\n var ns = getJsxNamespaceAt(context);\n var forcedLookupLocation = getJsxElementPropertiesName(ns);\n var attributesType = forcedLookupLocation === undefined\n // If there is no type ElementAttributesProperty, return the type of the first parameter of the signature, which should be the props type\n ? getTypeOfFirstParameterOfSignatureWithFallback(sig, unknownType)\n : forcedLookupLocation === \"\"\n // If there is no e.g. 'props' member in ElementAttributesProperty, use the element class type instead\n ? getReturnTypeOfSignature(sig)\n // Otherwise get the type of the property on the signature return type\n : getJsxPropsTypeForSignatureFromMember(sig, forcedLookupLocation);\n if (!attributesType) {\n // There is no property named 'props' on this instance type\n if (!!forcedLookupLocation && !!ts.length(context.attributes.properties)) {\n error(context, ts.Diagnostics.JSX_element_class_does_not_support_attributes_because_it_does_not_have_a_0_property, ts.unescapeLeadingUnderscores(forcedLookupLocation));\n }\n return unknownType;\n }\n attributesType = getJsxManagedAttributesFromLocatedAttributes(context, ns, attributesType);\n if (isTypeAny(attributesType)) {\n // Props is of type 'any' or unknown\n return attributesType;\n }\n else {\n // Normal case -- add in IntrinsicClassElements and IntrinsicElements\n var apparentAttributesType = attributesType;\n var intrinsicClassAttribs = getJsxType(JsxNames.IntrinsicClassAttributes, context);\n if (intrinsicClassAttribs !== errorType) {\n var typeParams = getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(intrinsicClassAttribs.symbol);\n var hostClassType = getReturnTypeOfSignature(sig);\n apparentAttributesType = intersectTypes(typeParams\n ? createTypeReference(intrinsicClassAttribs, fillMissingTypeArguments([hostClassType], typeParams, getMinTypeArgumentCount(typeParams), ts.isInJSFile(context)))\n : intrinsicClassAttribs, apparentAttributesType);\n }\n var intrinsicAttribs = getJsxType(JsxNames.IntrinsicAttributes, context);\n if (intrinsicAttribs !== errorType) {\n apparentAttributesType = intersectTypes(intrinsicAttribs, apparentAttributesType);\n }\n return apparentAttributesType;\n }\n }\n function getIntersectedSignatures(signatures) {\n return ts.getStrictOptionValue(compilerOptions, \"noImplicitAny\")\n ? ts.reduceLeft(signatures, function (left, right) {\n return left === right || !left ? left\n : compareTypeParametersIdentical(left.typeParameters, right.typeParameters) ? combineSignaturesOfIntersectionMembers(left, right)\n : undefined;\n })\n : undefined;\n }\n function combineIntersectionThisParam(left, right, mapper) {\n if (!left || !right) {\n return left || right;\n }\n // A signature `this` type might be a read or a write position... It's very possible that it should be invariant\n // and we should refuse to merge signatures if there are `this` types and they do not match. However, so as to be\n // pessimistic when contextual typing, for now, we'll union the `this` types.\n var thisType = getUnionType([getTypeOfSymbol(left), instantiateType(getTypeOfSymbol(right), mapper)]);\n return createSymbolWithType(left, thisType);\n }\n function combineIntersectionParameters(left, right, mapper) {\n var leftCount = getParameterCount(left);\n var rightCount = getParameterCount(right);\n var longest = leftCount >= rightCount ? left : right;\n var shorter = longest === left ? right : left;\n var longestCount = longest === left ? leftCount : rightCount;\n var eitherHasEffectiveRest = (hasEffectiveRestParameter(left) || hasEffectiveRestParameter(right));\n var needsExtraRestElement = eitherHasEffectiveRest && !hasEffectiveRestParameter(longest);\n var params = new Array(longestCount + (needsExtraRestElement ? 1 : 0));\n for (var i = 0; i < longestCount; i++) {\n var longestParamType = tryGetTypeAtPosition(longest, i);\n if (longest === right) {\n longestParamType = instantiateType(longestParamType, mapper);\n }\n var shorterParamType = tryGetTypeAtPosition(shorter, i) || unknownType;\n if (shorter === right) {\n shorterParamType = instantiateType(shorterParamType, mapper);\n }\n var unionParamType = getUnionType([longestParamType, shorterParamType]);\n var isRestParam = eitherHasEffectiveRest && !needsExtraRestElement && i === (longestCount - 1);\n var isOptional = i >= getMinArgumentCount(longest) && i >= getMinArgumentCount(shorter);\n var leftName = i >= leftCount ? undefined : getParameterNameAtPosition(left, i);\n var rightName = i >= rightCount ? undefined : getParameterNameAtPosition(right, i);\n var paramName = leftName === rightName ? leftName :\n !leftName ? rightName :\n !rightName ? leftName :\n undefined;\n var paramSymbol = createSymbol(1 /* FunctionScopedVariable */ | (isOptional && !isRestParam ? 16777216 /* Optional */ : 0), paramName || \"arg\" + i);\n paramSymbol.type = isRestParam ? createArrayType(unionParamType) : unionParamType;\n params[i] = paramSymbol;\n }\n if (needsExtraRestElement) {\n var restParamSymbol = createSymbol(1 /* FunctionScopedVariable */, \"args\");\n restParamSymbol.type = createArrayType(getTypeAtPosition(shorter, longestCount));\n if (shorter === right) {\n restParamSymbol.type = instantiateType(restParamSymbol.type, mapper);\n }\n params[longestCount] = restParamSymbol;\n }\n return params;\n }\n function combineSignaturesOfIntersectionMembers(left, right) {\n var typeParams = left.typeParameters || right.typeParameters;\n var paramMapper;\n if (left.typeParameters && right.typeParameters) {\n paramMapper = createTypeMapper(right.typeParameters, left.typeParameters);\n // We just use the type parameter defaults from the first signature\n }\n var declaration = left.declaration;\n var params = combineIntersectionParameters(left, right, paramMapper);\n var thisParam = combineIntersectionThisParam(left.thisParameter, right.thisParameter, paramMapper);\n var minArgCount = Math.max(left.minArgumentCount, right.minArgumentCount);\n var result = createSignature(declaration, typeParams, thisParam, params, \n /*resolvedReturnType*/ undefined, \n /*resolvedTypePredicate*/ undefined, minArgCount, (left.flags | right.flags) & 39 /* PropagatingFlags */);\n result.compositeKind = 2097152 /* Intersection */;\n result.compositeSignatures = ts.concatenate(left.compositeKind === 2097152 /* Intersection */ && left.compositeSignatures || [left], [right]);\n if (paramMapper) {\n result.mapper = left.compositeKind === 2097152 /* Intersection */ && left.mapper && left.compositeSignatures ? combineTypeMappers(left.mapper, paramMapper) : paramMapper;\n }\n return result;\n }\n // If the given type is an object or union type with a single signature, and if that signature has at\n // least as many parameters as the given function, return the signature. Otherwise return undefined.\n function getContextualCallSignature(type, node) {\n var signatures = getSignaturesOfType(type, 0 /* Call */);\n var applicableByArity = ts.filter(signatures, function (s) { return !isAritySmaller(s, node); });\n return applicableByArity.length === 1 ? applicableByArity[0] : getIntersectedSignatures(applicableByArity);\n }\n /** If the contextual signature has fewer parameters than the function expression, do not use it */\n function isAritySmaller(signature, target) {\n var targetParameterCount = 0;\n for (; targetParameterCount < target.parameters.length; targetParameterCount++) {\n var param = target.parameters[targetParameterCount];\n if (param.initializer || param.questionToken || param.dotDotDotToken || isJSDocOptionalParameter(param)) {\n break;\n }\n }\n if (target.parameters.length && ts.parameterIsThisKeyword(target.parameters[0])) {\n targetParameterCount--;\n }\n return !hasEffectiveRestParameter(signature) && getParameterCount(signature) < targetParameterCount;\n }\n function isFunctionExpressionOrArrowFunction(node) {\n return node.kind === 211 /* FunctionExpression */ || node.kind === 212 /* ArrowFunction */;\n }\n function getContextualSignatureForFunctionLikeDeclaration(node) {\n // Only function expressions, arrow functions, and object literal methods are contextually typed.\n return isFunctionExpressionOrArrowFunction(node) || ts.isObjectLiteralMethod(node)\n ? getContextualSignature(node)\n : undefined;\n }\n // Return the contextual signature for a given expression node. A contextual type provides a\n // contextual signature if it has a single call signature and if that call signature is non-generic.\n // If the contextual type is a union type, get the signature from each type possible and if they are\n // all identical ignoring their return type, the result is same signature but with return type as\n // union type of return types from these signatures\n function getContextualSignature(node) {\n ts.Debug.assert(node.kind !== 167 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node));\n var typeTagSignature = getSignatureOfTypeTag(node);\n if (typeTagSignature) {\n return typeTagSignature;\n }\n var type = getApparentTypeOfContextualType(node, 1 /* Signature */);\n if (!type) {\n return undefined;\n }\n if (!(type.flags & 1048576 /* Union */)) {\n return getContextualCallSignature(type, node);\n }\n var signatureList;\n var types = type.types;\n for (var _i = 0, types_19 = types; _i < types_19.length; _i++) {\n var current = types_19[_i];\n var signature = getContextualCallSignature(current, node);\n if (signature) {\n if (!signatureList) {\n // This signature will contribute to contextual union signature\n signatureList = [signature];\n }\n else if (!compareSignaturesIdentical(signatureList[0], signature, /*partialMatch*/ false, /*ignoreThisTypes*/ true, /*ignoreReturnTypes*/ true, compareTypesIdentical)) {\n // Signatures aren't identical, do not use\n return undefined;\n }\n else {\n // Use this signature for contextual union signature\n signatureList.push(signature);\n }\n }\n }\n // Result is union of signatures collected (return type is union of return types of this signature set)\n if (signatureList) {\n return signatureList.length === 1 ? signatureList[0] : createUnionSignature(signatureList[0], signatureList);\n }\n }\n function checkSpreadExpression(node, checkMode) {\n if (languageVersion < 2 /* ES2015 */) {\n checkExternalEmitHelpers(node, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);\n }\n var arrayOrIterableType = checkExpression(node.expression, checkMode);\n return checkIteratedTypeOrElementType(33 /* Spread */, arrayOrIterableType, undefinedType, node.expression);\n }\n function checkSyntheticExpression(node) {\n return node.isSpread ? getIndexedAccessType(node.type, numberType) : node.type;\n }\n function hasDefaultValue(node) {\n return (node.kind === 201 /* BindingElement */ && !!node.initializer) ||\n (node.kind === 219 /* BinaryExpression */ && node.operatorToken.kind === 63 /* EqualsToken */);\n }\n function checkArrayLiteral(node, checkMode, forceTuple) {\n var elements = node.elements;\n var elementCount = elements.length;\n var elementTypes = [];\n var elementFlags = [];\n var contextualType = getApparentTypeOfContextualType(node);\n var inDestructuringPattern = ts.isAssignmentTarget(node);\n var inConstContext = isConstContext(node);\n var hasOmittedExpression = false;\n for (var i = 0; i < elementCount; i++) {\n var e = elements[i];\n if (e.kind === 223 /* SpreadElement */) {\n if (languageVersion < 2 /* ES2015 */) {\n checkExternalEmitHelpers(e, compilerOptions.downlevelIteration ? 1536 /* SpreadIncludes */ : 1024 /* SpreadArray */);\n }\n var spreadType = checkExpression(e.expression, checkMode, forceTuple);\n if (isArrayLikeType(spreadType)) {\n elementTypes.push(spreadType);\n elementFlags.push(8 /* Variadic */);\n }\n else if (inDestructuringPattern) {\n // Given the following situation:\n // var c: {};\n // [...c] = [\"\", 0];\n //\n // c is represented in the tree as a spread element in an array literal.\n // But c really functions as a rest element, and its purpose is to provide\n // a contextual type for the right hand side of the assignment. Therefore,\n // instead of calling checkExpression on \"...c\", which will give an error\n // if c is not iterable/array-like, we need to act as if we are trying to\n // get the contextual element type from it. So we do something similar to\n // getContextualTypeForElementExpression, which will crucially not error\n // if there is no index type / iterated type.\n var restElementType = getIndexTypeOfType(spreadType, numberType) ||\n getIteratedTypeOrElementType(65 /* Destructuring */, spreadType, undefinedType, /*errorNode*/ undefined, /*checkAssignability*/ false) ||\n unknownType;\n elementTypes.push(restElementType);\n elementFlags.push(4 /* Rest */);\n }\n else {\n elementTypes.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, e.expression));\n elementFlags.push(4 /* Rest */);\n }\n }\n else if (exactOptionalPropertyTypes && e.kind === 225 /* OmittedExpression */) {\n hasOmittedExpression = true;\n elementTypes.push(missingType);\n elementFlags.push(2 /* Optional */);\n }\n else {\n var elementContextualType = getContextualTypeForElementExpression(contextualType, elementTypes.length);\n var type = checkExpressionForMutableLocation(e, checkMode, elementContextualType, forceTuple);\n elementTypes.push(addOptionality(type, /*isProperty*/ true, hasOmittedExpression));\n elementFlags.push(hasOmittedExpression ? 2 /* Optional */ : 1 /* Required */);\n }\n }\n if (inDestructuringPattern) {\n return createTupleType(elementTypes, elementFlags);\n }\n if (forceTuple || inConstContext || contextualType && someType(contextualType, isTupleLikeType)) {\n return createArrayLiteralType(createTupleType(elementTypes, elementFlags, /*readonly*/ inConstContext));\n }\n return createArrayLiteralType(createArrayType(elementTypes.length ?\n getUnionType(ts.sameMap(elementTypes, function (t, i) { return elementFlags[i] & 8 /* Variadic */ ? getIndexedAccessTypeOrUndefined(t, numberType) || anyType : t; }), 2 /* Subtype */) :\n strictNullChecks ? implicitNeverType : undefinedWideningType, inConstContext));\n }\n function createArrayLiteralType(type) {\n if (!(ts.getObjectFlags(type) & 4 /* Reference */)) {\n return type;\n }\n var literalType = type.literalType;\n if (!literalType) {\n literalType = type.literalType = cloneTypeReference(type);\n literalType.objectFlags |= 32768 /* ArrayLiteral */ | 262144 /* ContainsObjectOrArrayLiteral */;\n }\n return literalType;\n }\n function isNumericName(name) {\n switch (name.kind) {\n case 160 /* ComputedPropertyName */:\n return isNumericComputedName(name);\n case 79 /* Identifier */:\n return isNumericLiteralName(name.escapedText);\n case 8 /* NumericLiteral */:\n case 10 /* StringLiteral */:\n return isNumericLiteralName(name.text);\n default:\n return false;\n }\n }\n function isNumericComputedName(name) {\n // It seems odd to consider an expression of type Any to result in a numeric name,\n // but this behavior is consistent with checkIndexedAccess\n return isTypeAssignableToKind(checkComputedPropertyName(name), 296 /* NumberLike */);\n }\n function isNumericLiteralName(name) {\n // The intent of numeric names is that\n // - they are names with text in a numeric form, and that\n // - setting properties/indexing with them is always equivalent to doing so with the numeric literal 'numLit',\n // acquired by applying the abstract 'ToNumber' operation on the name's text.\n //\n // The subtlety is in the latter portion, as we cannot reliably say that anything that looks like a numeric literal is a numeric name.\n // In fact, it is the case that the text of the name must be equal to 'ToString(numLit)' for this to hold.\n //\n // Consider the property name '\"0xF00D\"'. When one indexes with '0xF00D', they are actually indexing with the value of 'ToString(0xF00D)'\n // according to the ECMAScript specification, so it is actually as if the user indexed with the string '\"61453\"'.\n // Thus, the text of all numeric literals equivalent to '61543' such as '0xF00D', '0xf00D', '0170015', etc. are not valid numeric names\n // because their 'ToString' representation is not equal to their original text.\n // This is motivated by ECMA-262 sections 9.3.1, 9.8.1, 11.1.5, and 11.2.1.\n //\n // Here, we test whether 'ToString(ToNumber(name))' is exactly equal to 'name'.\n // The '+' prefix operator is equivalent here to applying the abstract ToNumber operation.\n // Applying the 'toString()' method on a number gives us the abstract ToString operation on a number.\n //\n // Note that this accepts the values 'Infinity', '-Infinity', and 'NaN', and that this is intentional.\n // This is desired behavior, because when indexing with them as numeric entities, you are indexing\n // with the strings '\"Infinity\"', '\"-Infinity\"', and '\"NaN\"' respectively.\n return (+name).toString() === name;\n }\n function checkComputedPropertyName(node) {\n var links = getNodeLinks(node.expression);\n if (!links.resolvedType) {\n links.resolvedType = checkExpression(node.expression);\n // The computed property name of a non-static class field within a loop must be stored in a block-scoped binding.\n // (It needs to be bound at class evaluation time.)\n if (ts.isPropertyDeclaration(node.parent) && !ts.hasStaticModifier(node.parent) && ts.isClassExpression(node.parent.parent)) {\n var container = ts.getEnclosingBlockScopeContainer(node.parent.parent);\n var enclosingIterationStatement = getEnclosingIterationStatement(container);\n if (enclosingIterationStatement) {\n // The computed field name will use a block scoped binding which can be unique for each iteration of the loop.\n getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;\n // The generated variable which stores the computed field name must be block-scoped.\n getNodeLinks(node).flags |= 524288 /* BlockScopedBindingInLoop */;\n // The generated variable which stores the class must be block-scoped.\n getNodeLinks(node.parent.parent).flags |= 524288 /* BlockScopedBindingInLoop */;\n }\n }\n // This will allow types number, string, symbol or any. It will also allow enums, the unknown\n // type, and any union of these types (like string | number).\n if (links.resolvedType.flags & 98304 /* Nullable */ ||\n !isTypeAssignableToKind(links.resolvedType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) &&\n !isTypeAssignableTo(links.resolvedType, stringNumberSymbolType)) {\n error(node, ts.Diagnostics.A_computed_property_name_must_be_of_type_string_number_symbol_or_any);\n }\n }\n return links.resolvedType;\n }\n function isSymbolWithNumericName(symbol) {\n var _a;\n var firstDecl = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a[0];\n return isNumericLiteralName(symbol.escapedName) || (firstDecl && ts.isNamedDeclaration(firstDecl) && isNumericName(firstDecl.name));\n }\n function isSymbolWithSymbolName(symbol) {\n var _a;\n var firstDecl = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a[0];\n return ts.isKnownSymbol(symbol) || (firstDecl && ts.isNamedDeclaration(firstDecl) && ts.isComputedPropertyName(firstDecl.name) &&\n isTypeAssignableToKind(checkComputedPropertyName(firstDecl.name), 4096 /* ESSymbol */));\n }\n function getObjectLiteralIndexInfo(node, offset, properties, keyType) {\n var propTypes = [];\n for (var i = offset; i < properties.length; i++) {\n var prop = properties[i];\n if (keyType === stringType && !isSymbolWithSymbolName(prop) ||\n keyType === numberType && isSymbolWithNumericName(prop) ||\n keyType === esSymbolType && isSymbolWithSymbolName(prop)) {\n propTypes.push(getTypeOfSymbol(properties[i]));\n }\n }\n var unionType = propTypes.length ? getUnionType(propTypes, 2 /* Subtype */) : undefinedType;\n return createIndexInfo(keyType, unionType, isConstContext(node));\n }\n function getImmediateAliasedSymbol(symbol) {\n ts.Debug.assert((symbol.flags & 2097152 /* Alias */) !== 0, \"Should only get Alias here.\");\n var links = getSymbolLinks(symbol);\n if (!links.immediateTarget) {\n var node = getDeclarationOfAliasSymbol(symbol);\n if (!node)\n return ts.Debug.fail();\n links.immediateTarget = getTargetOfAliasDeclaration(node, /*dontRecursivelyResolve*/ true);\n }\n return links.immediateTarget;\n }\n function checkObjectLiteral(node, checkMode) {\n var inDestructuringPattern = ts.isAssignmentTarget(node);\n // Grammar checking\n checkGrammarObjectLiteralExpression(node, inDestructuringPattern);\n var allPropertiesTable = strictNullChecks ? ts.createSymbolTable() : undefined;\n var propertiesTable = ts.createSymbolTable();\n var propertiesArray = [];\n var spread = emptyObjectType;\n var contextualType = getApparentTypeOfContextualType(node);\n var contextualTypeHasPattern = contextualType && contextualType.pattern &&\n (contextualType.pattern.kind === 199 /* ObjectBindingPattern */ || contextualType.pattern.kind === 203 /* ObjectLiteralExpression */);\n var inConstContext = isConstContext(node);\n var checkFlags = inConstContext ? 8 /* Readonly */ : 0;\n var isInJavascript = ts.isInJSFile(node) && !ts.isInJsonFile(node);\n var enumTag = ts.getJSDocEnumTag(node);\n var isJSObjectLiteral = !contextualType && isInJavascript && !enumTag;\n var objectFlags = freshObjectLiteralFlag;\n var patternWithComputedProperties = false;\n var hasComputedStringProperty = false;\n var hasComputedNumberProperty = false;\n var hasComputedSymbolProperty = false;\n // Spreads may cause an early bail; ensure computed names are always checked (this is cached)\n // As otherwise they may not be checked until exports for the type at this position are retrieved,\n // which may never occur.\n for (var _i = 0, _a = node.properties; _i < _a.length; _i++) {\n var elem = _a[_i];\n if (elem.name && ts.isComputedPropertyName(elem.name)) {\n checkComputedPropertyName(elem.name);\n }\n }\n var offset = 0;\n for (var _b = 0, _c = node.properties; _b < _c.length; _b++) {\n var memberDecl = _c[_b];\n var member = getSymbolOfNode(memberDecl);\n var computedNameType = memberDecl.name && memberDecl.name.kind === 160 /* ComputedPropertyName */ ?\n checkComputedPropertyName(memberDecl.name) : undefined;\n if (memberDecl.kind === 291 /* PropertyAssignment */ ||\n memberDecl.kind === 292 /* ShorthandPropertyAssignment */ ||\n ts.isObjectLiteralMethod(memberDecl)) {\n var type = memberDecl.kind === 291 /* PropertyAssignment */ ? checkPropertyAssignment(memberDecl, checkMode) :\n // avoid resolving the left side of the ShorthandPropertyAssignment outside of the destructuring\n // for error recovery purposes. For example, if a user wrote `{ a = 100 }` instead of `{ a: 100 }`.\n // we don't want to say \"could not find 'a'\".\n memberDecl.kind === 292 /* ShorthandPropertyAssignment */ ? checkExpressionForMutableLocation(!inDestructuringPattern && memberDecl.objectAssignmentInitializer ? memberDecl.objectAssignmentInitializer : memberDecl.name, checkMode) :\n checkObjectLiteralMethod(memberDecl, checkMode);\n if (isInJavascript) {\n var jsDocType = getTypeForDeclarationFromJSDocComment(memberDecl);\n if (jsDocType) {\n checkTypeAssignableTo(type, jsDocType, memberDecl);\n type = jsDocType;\n }\n else if (enumTag && enumTag.typeExpression) {\n checkTypeAssignableTo(type, getTypeFromTypeNode(enumTag.typeExpression), memberDecl);\n }\n }\n objectFlags |= ts.getObjectFlags(type) & 917504 /* PropagatingFlags */;\n var nameType = computedNameType && isTypeUsableAsPropertyName(computedNameType) ? computedNameType : undefined;\n var prop = nameType ?\n createSymbol(4 /* Property */ | member.flags, getPropertyNameFromType(nameType), checkFlags | 4096 /* Late */) :\n createSymbol(4 /* Property */ | member.flags, member.escapedName, checkFlags);\n if (nameType) {\n prop.nameType = nameType;\n }\n if (inDestructuringPattern) {\n // If object literal is an assignment pattern and if the assignment pattern specifies a default value\n // for the property, make the property optional.\n var isOptional = (memberDecl.kind === 291 /* PropertyAssignment */ && hasDefaultValue(memberDecl.initializer)) ||\n (memberDecl.kind === 292 /* ShorthandPropertyAssignment */ && memberDecl.objectAssignmentInitializer);\n if (isOptional) {\n prop.flags |= 16777216 /* Optional */;\n }\n }\n else if (contextualTypeHasPattern && !(ts.getObjectFlags(contextualType) & 512 /* ObjectLiteralPatternWithComputedProperties */)) {\n // If object literal is contextually typed by the implied type of a binding pattern, and if the\n // binding pattern specifies a default value for the property, make the property optional.\n var impliedProp = getPropertyOfType(contextualType, member.escapedName);\n if (impliedProp) {\n prop.flags |= impliedProp.flags & 16777216 /* Optional */;\n }\n else if (!compilerOptions.suppressExcessPropertyErrors && !getIndexInfoOfType(contextualType, stringType)) {\n error(memberDecl.name, ts.Diagnostics.Object_literal_may_only_specify_known_properties_and_0_does_not_exist_in_type_1, symbolToString(member), typeToString(contextualType));\n }\n }\n prop.declarations = member.declarations;\n prop.parent = member.parent;\n if (member.valueDeclaration) {\n prop.valueDeclaration = member.valueDeclaration;\n }\n prop.type = type;\n prop.target = member;\n member = prop;\n allPropertiesTable === null || allPropertiesTable === void 0 ? void 0 : allPropertiesTable.set(prop.escapedName, prop);\n }\n else if (memberDecl.kind === 293 /* SpreadAssignment */) {\n if (languageVersion < 2 /* ES2015 */) {\n checkExternalEmitHelpers(memberDecl, 2 /* Assign */);\n }\n if (propertiesArray.length > 0) {\n spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext);\n propertiesArray = [];\n propertiesTable = ts.createSymbolTable();\n hasComputedStringProperty = false;\n hasComputedNumberProperty = false;\n hasComputedSymbolProperty = false;\n }\n var type = getReducedType(checkExpression(memberDecl.expression));\n if (isValidSpreadType(type)) {\n var mergedType = tryMergeUnionOfObjectTypeAndEmptyObject(type, inConstContext);\n if (allPropertiesTable) {\n checkSpreadPropOverrides(mergedType, allPropertiesTable, memberDecl);\n }\n offset = propertiesArray.length;\n if (spread === errorType) {\n continue;\n }\n spread = getSpreadType(spread, mergedType, node.symbol, objectFlags, inConstContext);\n }\n else {\n error(memberDecl, ts.Diagnostics.Spread_types_may_only_be_created_from_object_types);\n spread = errorType;\n }\n continue;\n }\n else {\n // TypeScript 1.0 spec (April 2014)\n // A get accessor declaration is processed in the same manner as\n // an ordinary function declaration(section 6.1) with no parameters.\n // A set accessor declaration is processed in the same manner\n // as an ordinary function declaration with a single parameter and a Void return type.\n ts.Debug.assert(memberDecl.kind === 170 /* GetAccessor */ || memberDecl.kind === 171 /* SetAccessor */);\n checkNodeDeferred(memberDecl);\n }\n if (computedNameType && !(computedNameType.flags & 8576 /* StringOrNumberLiteralOrUnique */)) {\n if (isTypeAssignableTo(computedNameType, stringNumberSymbolType)) {\n if (isTypeAssignableTo(computedNameType, numberType)) {\n hasComputedNumberProperty = true;\n }\n else if (isTypeAssignableTo(computedNameType, esSymbolType)) {\n hasComputedSymbolProperty = true;\n }\n else {\n hasComputedStringProperty = true;\n }\n if (inDestructuringPattern) {\n patternWithComputedProperties = true;\n }\n }\n }\n else {\n propertiesTable.set(member.escapedName, member);\n }\n propertiesArray.push(member);\n }\n // If object literal is contextually typed by the implied type of a binding pattern, augment the result\n // type with those properties for which the binding pattern specifies a default value.\n // If the object literal is spread into another object literal, skip this step and let the top-level object\n // literal handle it instead.\n if (contextualTypeHasPattern && node.parent.kind !== 293 /* SpreadAssignment */) {\n for (var _d = 0, _e = getPropertiesOfType(contextualType); _d < _e.length; _d++) {\n var prop = _e[_d];\n if (!propertiesTable.get(prop.escapedName) && !getPropertyOfType(spread, prop.escapedName)) {\n if (!(prop.flags & 16777216 /* Optional */)) {\n error(prop.valueDeclaration || prop.bindingElement, ts.Diagnostics.Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value);\n }\n propertiesTable.set(prop.escapedName, prop);\n propertiesArray.push(prop);\n }\n }\n }\n if (spread === errorType) {\n return errorType;\n }\n if (spread !== emptyObjectType) {\n if (propertiesArray.length > 0) {\n spread = getSpreadType(spread, createObjectLiteralType(), node.symbol, objectFlags, inConstContext);\n propertiesArray = [];\n propertiesTable = ts.createSymbolTable();\n hasComputedStringProperty = false;\n hasComputedNumberProperty = false;\n }\n // remap the raw emptyObjectType fed in at the top into a fresh empty object literal type, unique to this use site\n return mapType(spread, function (t) { return t === emptyObjectType ? createObjectLiteralType() : t; });\n }\n return createObjectLiteralType();\n function createObjectLiteralType() {\n var indexInfos = [];\n if (hasComputedStringProperty)\n indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, stringType));\n if (hasComputedNumberProperty)\n indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, numberType));\n if (hasComputedSymbolProperty)\n indexInfos.push(getObjectLiteralIndexInfo(node, offset, propertiesArray, esSymbolType));\n var result = createAnonymousType(node.symbol, propertiesTable, ts.emptyArray, ts.emptyArray, indexInfos);\n result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 262144 /* ContainsObjectOrArrayLiteral */;\n if (isJSObjectLiteral) {\n result.objectFlags |= 8192 /* JSLiteral */;\n }\n if (patternWithComputedProperties) {\n result.objectFlags |= 512 /* ObjectLiteralPatternWithComputedProperties */;\n }\n if (inDestructuringPattern) {\n result.pattern = node;\n }\n return result;\n }\n }\n function isValidSpreadType(type) {\n if (type.flags & 465829888 /* Instantiable */) {\n var constraint = getBaseConstraintOfType(type);\n if (constraint !== undefined) {\n return isValidSpreadType(constraint);\n }\n }\n return !!(type.flags & (1 /* Any */ | 67108864 /* NonPrimitive */ | 524288 /* Object */ | 58982400 /* InstantiableNonPrimitive */) ||\n getFalsyFlags(type) & 117632 /* DefinitelyFalsy */ && isValidSpreadType(removeDefinitelyFalsyTypes(type)) ||\n type.flags & 3145728 /* UnionOrIntersection */ && ts.every(type.types, isValidSpreadType));\n }\n function checkJsxSelfClosingElementDeferred(node) {\n checkJsxOpeningLikeElementOrOpeningFragment(node);\n }\n function checkJsxSelfClosingElement(node, _checkMode) {\n checkNodeDeferred(node);\n return getJsxElementTypeAt(node) || anyType;\n }\n function checkJsxElementDeferred(node) {\n // Check attributes\n checkJsxOpeningLikeElementOrOpeningFragment(node.openingElement);\n // Perform resolution on the closing tag so that rename/go to definition/etc work\n if (isJsxIntrinsicIdentifier(node.closingElement.tagName)) {\n getIntrinsicTagSymbol(node.closingElement);\n }\n else {\n checkExpression(node.closingElement.tagName);\n }\n checkJsxChildren(node);\n }\n function checkJsxElement(node, _checkMode) {\n checkNodeDeferred(node);\n return getJsxElementTypeAt(node) || anyType;\n }\n function checkJsxFragment(node) {\n checkJsxOpeningLikeElementOrOpeningFragment(node.openingFragment);\n // by default, jsx:'react' will use jsxFactory = React.createElement and jsxFragmentFactory = React.Fragment\n // if jsxFactory compiler option is provided, ensure jsxFragmentFactory compiler option or @jsxFrag pragma is provided too\n var nodeSourceFile = ts.getSourceFileOfNode(node);\n if (ts.getJSXTransformEnabled(compilerOptions) && (compilerOptions.jsxFactory || nodeSourceFile.pragmas.has(\"jsx\"))\n && !compilerOptions.jsxFragmentFactory && !nodeSourceFile.pragmas.has(\"jsxfrag\")) {\n error(node, compilerOptions.jsxFactory\n ? ts.Diagnostics.The_jsxFragmentFactory_compiler_option_must_be_provided_to_use_JSX_fragments_with_the_jsxFactory_compiler_option\n : ts.Diagnostics.An_jsxFrag_pragma_is_required_when_using_an_jsx_pragma_with_JSX_fragments);\n }\n checkJsxChildren(node);\n return getJsxElementTypeAt(node) || anyType;\n }\n function isHyphenatedJsxName(name) {\n return ts.stringContains(name, \"-\");\n }\n /**\n * Returns true iff React would emit this tag name as a string rather than an identifier or qualified name\n */\n function isJsxIntrinsicIdentifier(tagName) {\n return tagName.kind === 79 /* Identifier */ && ts.isIntrinsicJsxName(tagName.escapedText);\n }\n function checkJsxAttribute(node, checkMode) {\n return node.initializer\n ? checkExpressionForMutableLocation(node.initializer, checkMode)\n : trueType; // is sugar for \n }\n /**\n * Get attributes type of the JSX opening-like element. The result is from resolving \"attributes\" property of the opening-like element.\n *\n * @param openingLikeElement a JSX opening-like element\n * @param filter a function to remove attributes that will not participate in checking whether attributes are assignable\n * @return an anonymous type (similar to the one returned by checkObjectLiteral) in which its properties are attributes property.\n * @remarks Because this function calls getSpreadType, it needs to use the same checks as checkObjectLiteral,\n * which also calls getSpreadType.\n */\n function createJsxAttributesTypeFromAttributesProperty(openingLikeElement, checkMode) {\n var attributes = openingLikeElement.attributes;\n var allAttributesTable = strictNullChecks ? ts.createSymbolTable() : undefined;\n var attributesTable = ts.createSymbolTable();\n var spread = emptyJsxObjectType;\n var hasSpreadAnyType = false;\n var typeToIntersect;\n var explicitlySpecifyChildrenAttribute = false;\n var objectFlags = 2048 /* JsxAttributes */;\n var jsxChildrenPropertyName = getJsxElementChildrenPropertyName(getJsxNamespaceAt(openingLikeElement));\n for (var _i = 0, _a = attributes.properties; _i < _a.length; _i++) {\n var attributeDecl = _a[_i];\n var member = attributeDecl.symbol;\n if (ts.isJsxAttribute(attributeDecl)) {\n var exprType = checkJsxAttribute(attributeDecl, checkMode);\n objectFlags |= ts.getObjectFlags(exprType) & 917504 /* PropagatingFlags */;\n var attributeSymbol = createSymbol(4 /* Property */ | member.flags, member.escapedName);\n attributeSymbol.declarations = member.declarations;\n attributeSymbol.parent = member.parent;\n if (member.valueDeclaration) {\n attributeSymbol.valueDeclaration = member.valueDeclaration;\n }\n attributeSymbol.type = exprType;\n attributeSymbol.target = member;\n attributesTable.set(attributeSymbol.escapedName, attributeSymbol);\n allAttributesTable === null || allAttributesTable === void 0 ? void 0 : allAttributesTable.set(attributeSymbol.escapedName, attributeSymbol);\n if (attributeDecl.name.escapedText === jsxChildrenPropertyName) {\n explicitlySpecifyChildrenAttribute = true;\n }\n }\n else {\n ts.Debug.assert(attributeDecl.kind === 285 /* JsxSpreadAttribute */);\n if (attributesTable.size > 0) {\n spread = getSpreadType(spread, createJsxAttributesType(), attributes.symbol, objectFlags, /*readonly*/ false);\n attributesTable = ts.createSymbolTable();\n }\n var exprType = getReducedType(checkExpressionCached(attributeDecl.expression, checkMode));\n if (isTypeAny(exprType)) {\n hasSpreadAnyType = true;\n }\n if (isValidSpreadType(exprType)) {\n spread = getSpreadType(spread, exprType, attributes.symbol, objectFlags, /*readonly*/ false);\n if (allAttributesTable) {\n checkSpreadPropOverrides(exprType, allAttributesTable, attributeDecl);\n }\n }\n else {\n typeToIntersect = typeToIntersect ? getIntersectionType([typeToIntersect, exprType]) : exprType;\n }\n }\n }\n if (!hasSpreadAnyType) {\n if (attributesTable.size > 0) {\n spread = getSpreadType(spread, createJsxAttributesType(), attributes.symbol, objectFlags, /*readonly*/ false);\n }\n }\n // Handle children attribute\n var parent = openingLikeElement.parent.kind === 276 /* JsxElement */ ? openingLikeElement.parent : undefined;\n // We have to check that openingElement of the parent is the one we are visiting as this may not be true for selfClosingElement\n if (parent && parent.openingElement === openingLikeElement && parent.children.length > 0) {\n var childrenTypes = checkJsxChildren(parent, checkMode);\n if (!hasSpreadAnyType && jsxChildrenPropertyName && jsxChildrenPropertyName !== \"\") {\n // Error if there is a attribute named \"children\" explicitly specified and children element.\n // This is because children element will overwrite the value from attributes.\n // Note: we will not warn \"children\" attribute overwritten if \"children\" attribute is specified in object spread.\n if (explicitlySpecifyChildrenAttribute) {\n error(attributes, ts.Diagnostics._0_are_specified_twice_The_attribute_named_0_will_be_overwritten, ts.unescapeLeadingUnderscores(jsxChildrenPropertyName));\n }\n var contextualType = getApparentTypeOfContextualType(openingLikeElement.attributes);\n var childrenContextualType = contextualType && getTypeOfPropertyOfContextualType(contextualType, jsxChildrenPropertyName);\n // If there are children in the body of JSX element, create dummy attribute \"children\" with the union of children types so that it will pass the attribute checking process\n var childrenPropSymbol = createSymbol(4 /* Property */, jsxChildrenPropertyName);\n childrenPropSymbol.type = childrenTypes.length === 1 ? childrenTypes[0] :\n childrenContextualType && someType(childrenContextualType, isTupleLikeType) ? createTupleType(childrenTypes) :\n createArrayType(getUnionType(childrenTypes));\n // Fake up a property declaration for the children\n childrenPropSymbol.valueDeclaration = ts.factory.createPropertySignature(/*modifiers*/ undefined, ts.unescapeLeadingUnderscores(jsxChildrenPropertyName), /*questionToken*/ undefined, /*type*/ undefined);\n ts.setParent(childrenPropSymbol.valueDeclaration, attributes);\n childrenPropSymbol.valueDeclaration.symbol = childrenPropSymbol;\n var childPropMap = ts.createSymbolTable();\n childPropMap.set(jsxChildrenPropertyName, childrenPropSymbol);\n spread = getSpreadType(spread, createAnonymousType(attributes.symbol, childPropMap, ts.emptyArray, ts.emptyArray, ts.emptyArray), attributes.symbol, objectFlags, /*readonly*/ false);\n }\n }\n if (hasSpreadAnyType) {\n return anyType;\n }\n if (typeToIntersect && spread !== emptyJsxObjectType) {\n return getIntersectionType([typeToIntersect, spread]);\n }\n return typeToIntersect || (spread === emptyJsxObjectType ? createJsxAttributesType() : spread);\n /**\n * Create anonymous type from given attributes symbol table.\n * @param symbol a symbol of JsxAttributes containing attributes corresponding to attributesTable\n * @param attributesTable a symbol table of attributes property\n */\n function createJsxAttributesType() {\n objectFlags |= freshObjectLiteralFlag;\n var result = createAnonymousType(attributes.symbol, attributesTable, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n result.objectFlags |= objectFlags | 128 /* ObjectLiteral */ | 262144 /* ContainsObjectOrArrayLiteral */;\n return result;\n }\n }\n function checkJsxChildren(node, checkMode) {\n var childrenTypes = [];\n for (var _i = 0, _a = node.children; _i < _a.length; _i++) {\n var child = _a[_i];\n // In React, JSX text that contains only whitespaces will be ignored so we don't want to type-check that\n // because then type of children property will have constituent of string type.\n if (child.kind === 11 /* JsxText */) {\n if (!child.containsOnlyTriviaWhiteSpaces) {\n childrenTypes.push(stringType);\n }\n }\n else if (child.kind === 286 /* JsxExpression */ && !child.expression) {\n continue; // empty jsx expressions don't *really* count as present children\n }\n else {\n childrenTypes.push(checkExpressionForMutableLocation(child, checkMode));\n }\n }\n return childrenTypes;\n }\n function checkSpreadPropOverrides(type, props, spread) {\n for (var _i = 0, _a = getPropertiesOfType(type); _i < _a.length; _i++) {\n var right = _a[_i];\n if (!(right.flags & 16777216 /* Optional */)) {\n var left = props.get(right.escapedName);\n if (left) {\n var diagnostic = error(left.valueDeclaration, ts.Diagnostics._0_is_specified_more_than_once_so_this_usage_will_be_overwritten, ts.unescapeLeadingUnderscores(left.escapedName));\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(spread, ts.Diagnostics.This_spread_always_overwrites_this_property));\n }\n }\n }\n }\n /**\n * Check attributes property of opening-like element. This function is called during chooseOverload to get call signature of a JSX opening-like element.\n * (See \"checkApplicableSignatureForJsxOpeningLikeElement\" for how the function is used)\n * @param node a JSXAttributes to be resolved of its type\n */\n function checkJsxAttributes(node, checkMode) {\n return createJsxAttributesTypeFromAttributesProperty(node.parent, checkMode);\n }\n function getJsxType(name, location) {\n var namespace = getJsxNamespaceAt(location);\n var exports = namespace && getExportsOfSymbol(namespace);\n var typeSymbol = exports && getSymbol(exports, name, 788968 /* Type */);\n return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType;\n }\n /**\n * Looks up an intrinsic tag name and returns a symbol that either points to an intrinsic\n * property (in which case nodeLinks.jsxFlags will be IntrinsicNamedElement) or an intrinsic\n * string index signature (in which case nodeLinks.jsxFlags will be IntrinsicIndexedElement).\n * May also return unknownSymbol if both of these lookups fail.\n */\n function getIntrinsicTagSymbol(node) {\n var links = getNodeLinks(node);\n if (!links.resolvedSymbol) {\n var intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, node);\n if (intrinsicElementsType !== errorType) {\n // Property case\n if (!ts.isIdentifier(node.tagName))\n return ts.Debug.fail();\n var intrinsicProp = getPropertyOfType(intrinsicElementsType, node.tagName.escapedText);\n if (intrinsicProp) {\n links.jsxFlags |= 1 /* IntrinsicNamedElement */;\n return links.resolvedSymbol = intrinsicProp;\n }\n // Intrinsic string indexer case\n var indexSignatureType = getIndexTypeOfType(intrinsicElementsType, stringType);\n if (indexSignatureType) {\n links.jsxFlags |= 2 /* IntrinsicIndexedElement */;\n return links.resolvedSymbol = intrinsicElementsType.symbol;\n }\n // Wasn't found\n error(node, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.idText(node.tagName), \"JSX.\" + JsxNames.IntrinsicElements);\n return links.resolvedSymbol = unknownSymbol;\n }\n else {\n if (noImplicitAny) {\n error(node, ts.Diagnostics.JSX_element_implicitly_has_type_any_because_no_interface_JSX_0_exists, ts.unescapeLeadingUnderscores(JsxNames.IntrinsicElements));\n }\n return links.resolvedSymbol = unknownSymbol;\n }\n }\n return links.resolvedSymbol;\n }\n function getJsxNamespaceContainerForImplicitImport(location) {\n var file = location && ts.getSourceFileOfNode(location);\n var links = file && getNodeLinks(file);\n if (links && links.jsxImplicitImportContainer === false) {\n return undefined;\n }\n if (links && links.jsxImplicitImportContainer) {\n return links.jsxImplicitImportContainer;\n }\n var runtimeImportSpecifier = ts.getJSXRuntimeImport(ts.getJSXImplicitImportBase(compilerOptions, file), compilerOptions);\n if (!runtimeImportSpecifier) {\n return undefined;\n }\n var isClassic = ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.Classic;\n var errorMessage = isClassic\n ? ts.Diagnostics.Cannot_find_module_0_Did_you_mean_to_set_the_moduleResolution_option_to_node_or_to_add_aliases_to_the_paths_option\n : ts.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations;\n var mod = resolveExternalModule(location, runtimeImportSpecifier, errorMessage, location);\n var result = mod && mod !== unknownSymbol ? getMergedSymbol(resolveSymbol(mod)) : undefined;\n if (links) {\n links.jsxImplicitImportContainer = result || false;\n }\n return result;\n }\n function getJsxNamespaceAt(location) {\n var links = location && getNodeLinks(location);\n if (links && links.jsxNamespace) {\n return links.jsxNamespace;\n }\n if (!links || links.jsxNamespace !== false) {\n var resolvedNamespace = getJsxNamespaceContainerForImplicitImport(location);\n if (!resolvedNamespace || resolvedNamespace === unknownSymbol) {\n var namespaceName = getJsxNamespace(location);\n resolvedNamespace = resolveName(location, namespaceName, 1920 /* Namespace */, /*diagnosticMessage*/ undefined, namespaceName, /*isUse*/ false);\n }\n if (resolvedNamespace) {\n var candidate = resolveSymbol(getSymbol(getExportsOfSymbol(resolveSymbol(resolvedNamespace)), JsxNames.JSX, 1920 /* Namespace */));\n if (candidate && candidate !== unknownSymbol) {\n if (links) {\n links.jsxNamespace = candidate;\n }\n return candidate;\n }\n }\n if (links) {\n links.jsxNamespace = false;\n }\n }\n // JSX global fallback\n var s = resolveSymbol(getGlobalSymbol(JsxNames.JSX, 1920 /* Namespace */, /*diagnosticMessage*/ undefined));\n if (s === unknownSymbol) {\n return undefined; // TODO: GH#18217\n }\n return s; // TODO: GH#18217\n }\n /**\n * Look into JSX namespace and then look for container with matching name as nameOfAttribPropContainer.\n * Get a single property from that container if existed. Report an error if there are more than one property.\n *\n * @param nameOfAttribPropContainer a string of value JsxNames.ElementAttributesPropertyNameContainer or JsxNames.ElementChildrenAttributeNameContainer\n * if other string is given or the container doesn't exist, return undefined.\n */\n function getNameFromJsxElementAttributesContainer(nameOfAttribPropContainer, jsxNamespace) {\n // JSX.ElementAttributesProperty | JSX.ElementChildrenAttribute [symbol]\n var jsxElementAttribPropInterfaceSym = jsxNamespace && getSymbol(jsxNamespace.exports, nameOfAttribPropContainer, 788968 /* Type */);\n // JSX.ElementAttributesProperty | JSX.ElementChildrenAttribute [type]\n var jsxElementAttribPropInterfaceType = jsxElementAttribPropInterfaceSym && getDeclaredTypeOfSymbol(jsxElementAttribPropInterfaceSym);\n // The properties of JSX.ElementAttributesProperty | JSX.ElementChildrenAttribute\n var propertiesOfJsxElementAttribPropInterface = jsxElementAttribPropInterfaceType && getPropertiesOfType(jsxElementAttribPropInterfaceType);\n if (propertiesOfJsxElementAttribPropInterface) {\n // Element Attributes has zero properties, so the element attributes type will be the class instance type\n if (propertiesOfJsxElementAttribPropInterface.length === 0) {\n return \"\";\n }\n // Element Attributes has one property, so the element attributes type will be the type of the corresponding\n // property of the class instance type\n else if (propertiesOfJsxElementAttribPropInterface.length === 1) {\n return propertiesOfJsxElementAttribPropInterface[0].escapedName;\n }\n else if (propertiesOfJsxElementAttribPropInterface.length > 1 && jsxElementAttribPropInterfaceSym.declarations) {\n // More than one property on ElementAttributesProperty is an error\n error(jsxElementAttribPropInterfaceSym.declarations[0], ts.Diagnostics.The_global_type_JSX_0_may_not_have_more_than_one_property, ts.unescapeLeadingUnderscores(nameOfAttribPropContainer));\n }\n }\n return undefined;\n }\n function getJsxLibraryManagedAttributes(jsxNamespace) {\n // JSX.LibraryManagedAttributes [symbol]\n return jsxNamespace && getSymbol(jsxNamespace.exports, JsxNames.LibraryManagedAttributes, 788968 /* Type */);\n }\n /// e.g. \"props\" for React.d.ts,\n /// or 'undefined' if ElementAttributesProperty doesn't exist (which means all\n /// non-intrinsic elements' attributes type is 'any'),\n /// or '' if it has 0 properties (which means every\n /// non-intrinsic elements' attributes type is the element instance type)\n function getJsxElementPropertiesName(jsxNamespace) {\n return getNameFromJsxElementAttributesContainer(JsxNames.ElementAttributesPropertyNameContainer, jsxNamespace);\n }\n function getJsxElementChildrenPropertyName(jsxNamespace) {\n return getNameFromJsxElementAttributesContainer(JsxNames.ElementChildrenAttributeNameContainer, jsxNamespace);\n }\n function getUninstantiatedJsxSignaturesOfType(elementType, caller) {\n if (elementType.flags & 4 /* String */) {\n return [anySignature];\n }\n else if (elementType.flags & 128 /* StringLiteral */) {\n var intrinsicType = getIntrinsicAttributesTypeFromStringLiteralType(elementType, caller);\n if (!intrinsicType) {\n error(caller, ts.Diagnostics.Property_0_does_not_exist_on_type_1, elementType.value, \"JSX.\" + JsxNames.IntrinsicElements);\n return ts.emptyArray;\n }\n else {\n var fakeSignature = createSignatureForJSXIntrinsic(caller, intrinsicType);\n return [fakeSignature];\n }\n }\n var apparentElemType = getApparentType(elementType);\n // Resolve the signatures, preferring constructor\n var signatures = getSignaturesOfType(apparentElemType, 1 /* Construct */);\n if (signatures.length === 0) {\n // No construct signatures, try call signatures\n signatures = getSignaturesOfType(apparentElemType, 0 /* Call */);\n }\n if (signatures.length === 0 && apparentElemType.flags & 1048576 /* Union */) {\n // If each member has some combination of new/call signatures; make a union signature list for those\n signatures = getUnionSignatures(ts.map(apparentElemType.types, function (t) { return getUninstantiatedJsxSignaturesOfType(t, caller); }));\n }\n return signatures;\n }\n function getIntrinsicAttributesTypeFromStringLiteralType(type, location) {\n // If the elemType is a stringLiteral type, we can then provide a check to make sure that the string literal type is one of the Jsx intrinsic element type\n // For example:\n // var CustomTag: \"h1\" = \"h1\";\n // Hello World \n var intrinsicElementsType = getJsxType(JsxNames.IntrinsicElements, location);\n if (intrinsicElementsType !== errorType) {\n var stringLiteralTypeName = type.value;\n var intrinsicProp = getPropertyOfType(intrinsicElementsType, ts.escapeLeadingUnderscores(stringLiteralTypeName));\n if (intrinsicProp) {\n return getTypeOfSymbol(intrinsicProp);\n }\n var indexSignatureType = getIndexTypeOfType(intrinsicElementsType, stringType);\n if (indexSignatureType) {\n return indexSignatureType;\n }\n return undefined;\n }\n // If we need to report an error, we already done so here. So just return any to prevent any more error downstream\n return anyType;\n }\n function checkJsxReturnAssignableToAppropriateBound(refKind, elemInstanceType, openingLikeElement) {\n if (refKind === 1 /* Function */) {\n var sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement);\n if (sfcReturnConstraint) {\n checkTypeRelatedTo(elemInstanceType, sfcReturnConstraint, assignableRelation, openingLikeElement.tagName, ts.Diagnostics.Its_return_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain);\n }\n }\n else if (refKind === 0 /* Component */) {\n var classConstraint = getJsxElementClassTypeAt(openingLikeElement);\n if (classConstraint) {\n // Issue an error if this return type isn't assignable to JSX.ElementClass, failing that\n checkTypeRelatedTo(elemInstanceType, classConstraint, assignableRelation, openingLikeElement.tagName, ts.Diagnostics.Its_instance_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain);\n }\n }\n else { // Mixed\n var sfcReturnConstraint = getJsxStatelessElementTypeAt(openingLikeElement);\n var classConstraint = getJsxElementClassTypeAt(openingLikeElement);\n if (!sfcReturnConstraint || !classConstraint) {\n return;\n }\n var combined = getUnionType([sfcReturnConstraint, classConstraint]);\n checkTypeRelatedTo(elemInstanceType, combined, assignableRelation, openingLikeElement.tagName, ts.Diagnostics.Its_element_type_0_is_not_a_valid_JSX_element, generateInitialErrorChain);\n }\n function generateInitialErrorChain() {\n var componentName = ts.getTextOfNode(openingLikeElement.tagName);\n return ts.chainDiagnosticMessages(/* details */ undefined, ts.Diagnostics._0_cannot_be_used_as_a_JSX_component, componentName);\n }\n }\n /**\n * Get attributes type of the given intrinsic opening-like Jsx element by resolving the tag name.\n * The function is intended to be called from a function which has checked that the opening element is an intrinsic element.\n * @param node an intrinsic JSX opening-like element\n */\n function getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node) {\n ts.Debug.assert(isJsxIntrinsicIdentifier(node.tagName));\n var links = getNodeLinks(node);\n if (!links.resolvedJsxElementAttributesType) {\n var symbol = getIntrinsicTagSymbol(node);\n if (links.jsxFlags & 1 /* IntrinsicNamedElement */) {\n return links.resolvedJsxElementAttributesType = getTypeOfSymbol(symbol) || errorType;\n }\n else if (links.jsxFlags & 2 /* IntrinsicIndexedElement */) {\n return links.resolvedJsxElementAttributesType =\n getIndexTypeOfType(getJsxType(JsxNames.IntrinsicElements, node), stringType) || errorType;\n }\n else {\n return links.resolvedJsxElementAttributesType = errorType;\n }\n }\n return links.resolvedJsxElementAttributesType;\n }\n function getJsxElementClassTypeAt(location) {\n var type = getJsxType(JsxNames.ElementClass, location);\n if (type === errorType)\n return undefined;\n return type;\n }\n function getJsxElementTypeAt(location) {\n return getJsxType(JsxNames.Element, location);\n }\n function getJsxStatelessElementTypeAt(location) {\n var jsxElementType = getJsxElementTypeAt(location);\n if (jsxElementType) {\n return getUnionType([jsxElementType, nullType]);\n }\n }\n /**\n * Returns all the properties of the Jsx.IntrinsicElements interface\n */\n function getJsxIntrinsicTagNamesAt(location) {\n var intrinsics = getJsxType(JsxNames.IntrinsicElements, location);\n return intrinsics ? getPropertiesOfType(intrinsics) : ts.emptyArray;\n }\n function checkJsxPreconditions(errorNode) {\n // Preconditions for using JSX\n if ((compilerOptions.jsx || 0 /* None */) === 0 /* None */) {\n error(errorNode, ts.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided);\n }\n if (getJsxElementTypeAt(errorNode) === undefined) {\n if (noImplicitAny) {\n error(errorNode, ts.Diagnostics.JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist);\n }\n }\n }\n function checkJsxOpeningLikeElementOrOpeningFragment(node) {\n var isNodeOpeningLikeElement = ts.isJsxOpeningLikeElement(node);\n if (isNodeOpeningLikeElement) {\n checkGrammarJsxElement(node);\n }\n checkJsxPreconditions(node);\n if (!getJsxNamespaceContainerForImplicitImport(node)) {\n // The reactNamespace/jsxFactory's root symbol should be marked as 'used' so we don't incorrectly elide its import.\n // And if there is no reactNamespace/jsxFactory's symbol in scope when targeting React emit, we should issue an error.\n var jsxFactoryRefErr = diagnostics && compilerOptions.jsx === 2 /* React */ ? ts.Diagnostics.Cannot_find_name_0 : undefined;\n var jsxFactoryNamespace = getJsxNamespace(node);\n var jsxFactoryLocation = isNodeOpeningLikeElement ? node.tagName : node;\n // allow null as jsxFragmentFactory\n var jsxFactorySym = void 0;\n if (!(ts.isJsxOpeningFragment(node) && jsxFactoryNamespace === \"null\")) {\n jsxFactorySym = resolveName(jsxFactoryLocation, jsxFactoryNamespace, 111551 /* Value */, jsxFactoryRefErr, jsxFactoryNamespace, /*isUse*/ true);\n }\n if (jsxFactorySym) {\n // Mark local symbol as referenced here because it might not have been marked\n // if jsx emit was not jsxFactory as there wont be error being emitted\n jsxFactorySym.isReferenced = 67108863 /* All */;\n // If react/jsxFactory symbol is alias, mark it as refereced\n if (jsxFactorySym.flags & 2097152 /* Alias */ && !getTypeOnlyAliasDeclaration(jsxFactorySym)) {\n markAliasSymbolAsReferenced(jsxFactorySym);\n }\n }\n }\n if (isNodeOpeningLikeElement) {\n var jsxOpeningLikeNode = node;\n var sig = getResolvedSignature(jsxOpeningLikeNode);\n checkDeprecatedSignature(sig, node);\n checkJsxReturnAssignableToAppropriateBound(getJsxReferenceKind(jsxOpeningLikeNode), getReturnTypeOfSignature(sig), jsxOpeningLikeNode);\n }\n }\n /**\n * Check if a property with the given name is known anywhere in the given type. In an object type, a property\n * is considered known if\n * 1. the object type is empty and the check is for assignability, or\n * 2. if the object type has index signatures, or\n * 3. if the property is actually declared in the object type\n * (this means that 'toString', for example, is not usually a known property).\n * 4. In a union or intersection type,\n * a property is considered known if it is known in any constituent type.\n * @param targetType a type to search a given name in\n * @param name a property name to search\n * @param isComparingJsxAttributes a boolean flag indicating whether we are searching in JsxAttributesType\n */\n function isKnownProperty(targetType, name, isComparingJsxAttributes) {\n if (targetType.flags & 524288 /* Object */) {\n // For backwards compatibility a symbol-named property is satisfied by a string index signature. This\n // is incorrect and inconsistent with element access expressions, where it is an error, so eventually\n // we should remove this exception.\n if (getPropertyOfObjectType(targetType, name) ||\n getApplicableIndexInfoForName(targetType, name) ||\n isLateBoundName(name) && getIndexInfoOfType(targetType, stringType) ||\n isComparingJsxAttributes && isHyphenatedJsxName(name)) {\n // For JSXAttributes, if the attribute has a hyphenated name, consider that the attribute to be known.\n return true;\n }\n }\n else if (targetType.flags & 3145728 /* UnionOrIntersection */ && isExcessPropertyCheckTarget(targetType)) {\n for (var _i = 0, _a = targetType.types; _i < _a.length; _i++) {\n var t = _a[_i];\n if (isKnownProperty(t, name, isComparingJsxAttributes)) {\n return true;\n }\n }\n }\n return false;\n }\n function isExcessPropertyCheckTarget(type) {\n return !!(type.flags & 524288 /* Object */ && !(ts.getObjectFlags(type) & 512 /* ObjectLiteralPatternWithComputedProperties */) ||\n type.flags & 67108864 /* NonPrimitive */ ||\n type.flags & 1048576 /* Union */ && ts.some(type.types, isExcessPropertyCheckTarget) ||\n type.flags & 2097152 /* Intersection */ && ts.every(type.types, isExcessPropertyCheckTarget));\n }\n function checkJsxExpression(node, checkMode) {\n checkGrammarJsxExpression(node);\n if (node.expression) {\n var type = checkExpression(node.expression, checkMode);\n if (node.dotDotDotToken && type !== anyType && !isArrayType(type)) {\n error(node, ts.Diagnostics.JSX_spread_child_must_be_an_array_type);\n }\n return type;\n }\n else {\n return errorType;\n }\n }\n function getDeclarationNodeFlagsFromSymbol(s) {\n return s.valueDeclaration ? ts.getCombinedNodeFlags(s.valueDeclaration) : 0;\n }\n /**\n * Return whether this symbol is a member of a prototype somewhere\n * Note that this is not tracked well within the compiler, so the answer may be incorrect.\n */\n function isPrototypeProperty(symbol) {\n if (symbol.flags & 8192 /* Method */ || ts.getCheckFlags(symbol) & 4 /* SyntheticMethod */) {\n return true;\n }\n if (ts.isInJSFile(symbol.valueDeclaration)) {\n var parent = symbol.valueDeclaration.parent;\n return parent && ts.isBinaryExpression(parent) &&\n ts.getAssignmentDeclarationKind(parent) === 3 /* PrototypeProperty */;\n }\n }\n /**\n * Check whether the requested property access is valid.\n * Returns true if node is a valid property access, and false otherwise.\n * @param node The node to be checked.\n * @param isSuper True if the access is from `super.`.\n * @param type The type of the object whose property is being accessed. (Not the type of the property.)\n * @param prop The symbol for the property being accessed.\n */\n function checkPropertyAccessibility(node, isSuper, writing, type, prop, reportError) {\n if (reportError === void 0) { reportError = true; }\n var flags = ts.getDeclarationModifierFlagsFromSymbol(prop, writing);\n var errorNode = node.kind === 159 /* QualifiedName */ ? node.right :\n node.kind === 198 /* ImportType */ ? node :\n node.kind === 201 /* BindingElement */ && node.propertyName ? node.propertyName : node.name;\n if (isSuper) {\n // TS 1.0 spec (April 2014): 4.8.2\n // - In a constructor, instance member function, instance member accessor, or\n // instance member variable initializer where this references a derived class instance,\n // a super property access is permitted and must specify a public instance member function of the base class.\n // - In a static member function or static member accessor\n // where this references the constructor function object of a derived class,\n // a super property access is permitted and must specify a public static member function of the base class.\n if (languageVersion < 2 /* ES2015 */) {\n if (symbolHasNonMethodDeclaration(prop)) {\n if (reportError) {\n error(errorNode, ts.Diagnostics.Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword);\n }\n return false;\n }\n }\n if (flags & 128 /* Abstract */) {\n // A method cannot be accessed in a super property access if the method is abstract.\n // This error could mask a private property access error. But, a member\n // cannot simultaneously be private and abstract, so this will trigger an\n // additional error elsewhere.\n if (reportError) {\n error(errorNode, ts.Diagnostics.Abstract_method_0_in_class_1_cannot_be_accessed_via_super_expression, symbolToString(prop), typeToString(getDeclaringClass(prop)));\n }\n return false;\n }\n }\n // Referencing abstract properties within their own constructors is not allowed\n if ((flags & 128 /* Abstract */) && symbolHasNonMethodDeclaration(prop) &&\n (ts.isThisProperty(node) || ts.isThisInitializedObjectBindingExpression(node) || ts.isObjectBindingPattern(node.parent) && ts.isThisInitializedDeclaration(node.parent.parent))) {\n var declaringClassDeclaration = ts.getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop));\n if (declaringClassDeclaration && isNodeUsedDuringClassInitialization(node)) {\n if (reportError) {\n error(errorNode, ts.Diagnostics.Abstract_property_0_in_class_1_cannot_be_accessed_in_the_constructor, symbolToString(prop), ts.getTextOfIdentifierOrLiteral(declaringClassDeclaration.name)); // TODO: GH#18217\n }\n return false;\n }\n }\n // Public properties are otherwise accessible.\n if (!(flags & 24 /* NonPublicAccessibilityModifier */)) {\n return true;\n }\n // Property is known to be private or protected at this point\n // Private property is accessible if the property is within the declaring class\n if (flags & 8 /* Private */) {\n var declaringClassDeclaration = ts.getClassLikeDeclarationOfSymbol(getParentOfSymbol(prop));\n if (!isNodeWithinClass(node, declaringClassDeclaration)) {\n if (reportError) {\n error(errorNode, ts.Diagnostics.Property_0_is_private_and_only_accessible_within_class_1, symbolToString(prop), typeToString(getDeclaringClass(prop)));\n }\n return false;\n }\n return true;\n }\n // Property is known to be protected at this point\n // All protected properties of a supertype are accessible in a super access\n if (isSuper) {\n return true;\n }\n // Find the first enclosing class that has the declaring classes of the protected constituents\n // of the property as base classes\n var enclosingClass = forEachEnclosingClass(node, function (enclosingDeclaration) {\n var enclosingClass = getDeclaredTypeOfSymbol(getSymbolOfNode(enclosingDeclaration));\n return isClassDerivedFromDeclaringClasses(enclosingClass, prop, writing) ? enclosingClass : undefined;\n });\n // A protected property is accessible if the property is within the declaring class or classes derived from it\n if (!enclosingClass) {\n // allow PropertyAccessibility if context is in function with this parameter\n // static member access is disallow\n var thisParameter = void 0;\n if (flags & 32 /* Static */ || !(thisParameter = getThisParameterFromNodeContext(node)) || !thisParameter.type) {\n if (reportError) {\n error(errorNode, ts.Diagnostics.Property_0_is_protected_and_only_accessible_within_class_1_and_its_subclasses, symbolToString(prop), typeToString(getDeclaringClass(prop) || type));\n }\n return false;\n }\n var thisType = getTypeFromTypeNode(thisParameter.type);\n enclosingClass = ((thisType.flags & 262144 /* TypeParameter */) ? getConstraintOfTypeParameter(thisType) : thisType).target;\n }\n // No further restrictions for static properties\n if (flags & 32 /* Static */) {\n return true;\n }\n if (type.flags & 262144 /* TypeParameter */) {\n // get the original type -- represented as the type constraint of the 'this' type\n type = type.isThisType ? getConstraintOfTypeParameter(type) : getBaseConstraintOfType(type); // TODO: GH#18217 Use a different variable that's allowed to be undefined\n }\n if (!type || !hasBaseType(type, enclosingClass)) {\n if (reportError) {\n error(errorNode, ts.Diagnostics.Property_0_is_protected_and_only_accessible_through_an_instance_of_class_1_This_is_an_instance_of_class_2, symbolToString(prop), typeToString(enclosingClass), typeToString(type));\n }\n return false;\n }\n return true;\n }\n function getThisParameterFromNodeContext(node) {\n var thisContainer = ts.getThisContainer(node, /* includeArrowFunctions */ false);\n return thisContainer && ts.isFunctionLike(thisContainer) ? ts.getThisParameter(thisContainer) : undefined;\n }\n function symbolHasNonMethodDeclaration(symbol) {\n return !!forEachProperty(symbol, function (prop) { return !(prop.flags & 8192 /* Method */); });\n }\n function checkNonNullExpression(node) {\n return checkNonNullType(checkExpression(node), node);\n }\n function isNullableType(type) {\n return !!((strictNullChecks ? getFalsyFlags(type) : type.flags) & 98304 /* Nullable */);\n }\n function getNonNullableTypeIfNeeded(type) {\n return isNullableType(type) ? getNonNullableType(type) : type;\n }\n function reportObjectPossiblyNullOrUndefinedError(node, flags) {\n error(node, flags & 32768 /* Undefined */ ? flags & 65536 /* Null */ ?\n ts.Diagnostics.Object_is_possibly_null_or_undefined :\n ts.Diagnostics.Object_is_possibly_undefined :\n ts.Diagnostics.Object_is_possibly_null);\n }\n function reportCannotInvokePossiblyNullOrUndefinedError(node, flags) {\n error(node, flags & 32768 /* Undefined */ ? flags & 65536 /* Null */ ?\n ts.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null_or_undefined :\n ts.Diagnostics.Cannot_invoke_an_object_which_is_possibly_undefined :\n ts.Diagnostics.Cannot_invoke_an_object_which_is_possibly_null);\n }\n function checkNonNullTypeWithReporter(type, node, reportError) {\n if (strictNullChecks && type.flags & 2 /* Unknown */) {\n error(node, ts.Diagnostics.Object_is_of_type_unknown);\n return errorType;\n }\n var kind = (strictNullChecks ? getFalsyFlags(type) : type.flags) & 98304 /* Nullable */;\n if (kind) {\n reportError(node, kind);\n var t = getNonNullableType(type);\n return t.flags & (98304 /* Nullable */ | 131072 /* Never */) ? errorType : t;\n }\n return type;\n }\n function checkNonNullType(type, node) {\n return checkNonNullTypeWithReporter(type, node, reportObjectPossiblyNullOrUndefinedError);\n }\n function checkNonNullNonVoidType(type, node) {\n var nonNullType = checkNonNullType(type, node);\n if (nonNullType !== errorType && nonNullType.flags & 16384 /* Void */) {\n error(node, ts.Diagnostics.Object_is_possibly_undefined);\n }\n return nonNullType;\n }\n function checkPropertyAccessExpression(node, checkMode) {\n return node.flags & 32 /* OptionalChain */ ? checkPropertyAccessChain(node, checkMode) :\n checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullExpression(node.expression), node.name, checkMode);\n }\n function checkPropertyAccessChain(node, checkMode) {\n var leftType = checkExpression(node.expression);\n var nonOptionalType = getOptionalExpressionType(leftType, node.expression);\n return propagateOptionalTypeMarker(checkPropertyAccessExpressionOrQualifiedName(node, node.expression, checkNonNullType(nonOptionalType, node.expression), node.name, checkMode), node, nonOptionalType !== leftType);\n }\n function checkQualifiedName(node, checkMode) {\n var leftType = ts.isPartOfTypeQuery(node) && ts.isThisIdentifier(node.left) ? checkNonNullType(checkThisExpression(node.left), node.left) : checkNonNullExpression(node.left);\n return checkPropertyAccessExpressionOrQualifiedName(node, node.left, leftType, node.right, checkMode);\n }\n function isMethodAccessForCall(node) {\n while (node.parent.kind === 210 /* ParenthesizedExpression */) {\n node = node.parent;\n }\n return ts.isCallOrNewExpression(node.parent) && node.parent.expression === node;\n }\n // Lookup the private identifier lexically.\n function lookupSymbolForPrivateIdentifierDeclaration(propName, location) {\n for (var containingClass = ts.getContainingClass(location); !!containingClass; containingClass = ts.getContainingClass(containingClass)) {\n var symbol = containingClass.symbol;\n var name = ts.getSymbolNameForPrivateIdentifier(symbol, propName);\n var prop = (symbol.members && symbol.members.get(name)) || (symbol.exports && symbol.exports.get(name));\n if (prop) {\n return prop;\n }\n }\n }\n function getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedIdentifier) {\n return getPropertyOfType(leftType, lexicallyScopedIdentifier.escapedName);\n }\n function checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedIdentifier) {\n // Either the identifier could not be looked up in the lexical scope OR the lexically scoped identifier did not exist on the type.\n // Find a private identifier with the same description on the type.\n var propertyOnType;\n var properties = getPropertiesOfType(leftType);\n if (properties) {\n ts.forEach(properties, function (symbol) {\n var decl = symbol.valueDeclaration;\n if (decl && ts.isNamedDeclaration(decl) && ts.isPrivateIdentifier(decl.name) && decl.name.escapedText === right.escapedText) {\n propertyOnType = symbol;\n return true;\n }\n });\n }\n var diagName = diagnosticName(right);\n if (propertyOnType) {\n var typeValueDecl = ts.Debug.checkDefined(propertyOnType.valueDeclaration);\n var typeClass_1 = ts.Debug.checkDefined(ts.getContainingClass(typeValueDecl));\n // We found a private identifier property with the same description.\n // Either:\n // - There is a lexically scoped private identifier AND it shadows the one we found on the type.\n // - It is an attempt to access the private identifier outside of the class.\n if (lexicallyScopedIdentifier === null || lexicallyScopedIdentifier === void 0 ? void 0 : lexicallyScopedIdentifier.valueDeclaration) {\n var lexicalValueDecl = lexicallyScopedIdentifier.valueDeclaration;\n var lexicalClass = ts.getContainingClass(lexicalValueDecl);\n ts.Debug.assert(!!lexicalClass);\n if (ts.findAncestor(lexicalClass, function (n) { return typeClass_1 === n; })) {\n var diagnostic = error(right, ts.Diagnostics.The_property_0_cannot_be_accessed_on_type_1_within_this_class_because_it_is_shadowed_by_another_private_identifier_with_the_same_spelling, diagName, typeToString(leftType));\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(lexicalValueDecl, ts.Diagnostics.The_shadowing_declaration_of_0_is_defined_here, diagName), ts.createDiagnosticForNode(typeValueDecl, ts.Diagnostics.The_declaration_of_0_that_you_probably_intended_to_use_is_defined_here, diagName));\n return true;\n }\n }\n error(right, ts.Diagnostics.Property_0_is_not_accessible_outside_class_1_because_it_has_a_private_identifier, diagName, diagnosticName(typeClass_1.name || anon));\n return true;\n }\n return false;\n }\n function isThisPropertyAccessInConstructor(node, prop) {\n return (isConstructorDeclaredProperty(prop) || ts.isThisProperty(node) && isAutoTypedProperty(prop))\n && ts.getThisContainer(node, /*includeArrowFunctions*/ true) === getDeclaringConstructor(prop);\n }\n function checkPropertyAccessExpressionOrQualifiedName(node, left, leftType, right, checkMode) {\n var parentSymbol = getNodeLinks(left).resolvedSymbol;\n var assignmentKind = ts.getAssignmentTargetKind(node);\n var apparentType = getApparentType(assignmentKind !== 0 /* None */ || isMethodAccessForCall(node) ? getWidenedType(leftType) : leftType);\n var isAnyLike = isTypeAny(apparentType) || apparentType === silentNeverType;\n var prop;\n if (ts.isPrivateIdentifier(right)) {\n if (languageVersion < 99 /* ESNext */) {\n if (assignmentKind !== 0 /* None */) {\n checkExternalEmitHelpers(node, 1048576 /* ClassPrivateFieldSet */);\n }\n if (assignmentKind !== 1 /* Definite */) {\n checkExternalEmitHelpers(node, 524288 /* ClassPrivateFieldGet */);\n }\n }\n var lexicallyScopedSymbol = lookupSymbolForPrivateIdentifierDeclaration(right.escapedText, right);\n if (assignmentKind && lexicallyScopedSymbol && lexicallyScopedSymbol.valueDeclaration && ts.isMethodDeclaration(lexicallyScopedSymbol.valueDeclaration)) {\n grammarErrorOnNode(right, ts.Diagnostics.Cannot_assign_to_private_method_0_Private_methods_are_not_writable, ts.idText(right));\n }\n if ((lexicallyScopedSymbol === null || lexicallyScopedSymbol === void 0 ? void 0 : lexicallyScopedSymbol.valueDeclaration) && (compilerOptions.target === 99 /* ESNext */ && !useDefineForClassFields)) {\n var lexicalClass_1 = ts.getContainingClass(lexicallyScopedSymbol.valueDeclaration);\n var parentStaticFieldInitializer = ts.findAncestor(node, function (n) {\n if (n === lexicalClass_1)\n return \"quit\";\n if (ts.isPropertyDeclaration(n.parent) && ts.hasStaticModifier(n.parent) && n.parent.initializer === n && n.parent.parent === lexicalClass_1) {\n return true;\n }\n return false;\n });\n if (parentStaticFieldInitializer) {\n var parentStaticFieldInitializerSymbol = getSymbolOfNode(parentStaticFieldInitializer.parent);\n ts.Debug.assert(parentStaticFieldInitializerSymbol, \"Initializer without declaration symbol\");\n var diagnostic = error(node, ts.Diagnostics.Property_0_may_not_be_used_in_a_static_property_s_initializer_in_the_same_class_when_target_is_esnext_and_useDefineForClassFields_is_false, ts.symbolName(lexicallyScopedSymbol));\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(parentStaticFieldInitializer.parent, ts.Diagnostics.Initializer_for_property_0, ts.symbolName(parentStaticFieldInitializerSymbol)));\n }\n }\n if (isAnyLike) {\n if (lexicallyScopedSymbol) {\n return apparentType;\n }\n if (!ts.getContainingClass(right)) {\n grammarErrorOnNode(right, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n return anyType;\n }\n }\n prop = lexicallyScopedSymbol ? getPrivateIdentifierPropertyOfType(leftType, lexicallyScopedSymbol) : undefined;\n // Check for private-identifier-specific shadowing and lexical-scoping errors.\n if (!prop && checkPrivateIdentifierPropertyAccess(leftType, right, lexicallyScopedSymbol)) {\n return errorType;\n }\n else {\n var isSetonlyAccessor = prop && prop.flags & 65536 /* SetAccessor */ && !(prop.flags & 32768 /* GetAccessor */);\n if (isSetonlyAccessor && assignmentKind !== 1 /* Definite */) {\n error(node, ts.Diagnostics.Private_accessor_was_defined_without_a_getter);\n }\n }\n }\n else {\n if (isAnyLike) {\n if (ts.isIdentifier(left) && parentSymbol) {\n markAliasReferenced(parentSymbol, node);\n }\n return apparentType;\n }\n prop = getPropertyOfType(apparentType, right.escapedText);\n }\n // In `Foo.Bar.Baz`, 'Foo' is not referenced if 'Bar' is a const enum or a module containing only const enums.\n // The exceptions are:\n // 1. if 'isolatedModules' is enabled, because the const enum value will not be inlined, and\n // 2. if 'preserveConstEnums' is enabled and the expression is itself an export, e.g. `export = Foo.Bar.Baz`.\n if (ts.isIdentifier(left) && parentSymbol && (compilerOptions.isolatedModules || !(prop && isConstEnumOrConstEnumOnlyModule(prop)) || ts.shouldPreserveConstEnums(compilerOptions) && isExportOrExportExpression(node))) {\n markAliasReferenced(parentSymbol, node);\n }\n var propType;\n if (!prop) {\n var indexInfo = !ts.isPrivateIdentifier(right) && (assignmentKind === 0 /* None */ || !isGenericObjectType(leftType) || isThisTypeParameter(leftType)) ?\n getApplicableIndexInfoForName(apparentType, right.escapedText) : undefined;\n if (!(indexInfo && indexInfo.type)) {\n var isUncheckedJS = isUncheckedJSSuggestion(node, leftType.symbol, /*excludeClasses*/ true);\n if (!isUncheckedJS && isJSLiteralType(leftType)) {\n return anyType;\n }\n if (leftType.symbol === globalThisSymbol) {\n if (globalThisSymbol.exports.has(right.escapedText) && (globalThisSymbol.exports.get(right.escapedText).flags & 418 /* BlockScoped */)) {\n error(right, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.unescapeLeadingUnderscores(right.escapedText), typeToString(leftType));\n }\n else if (noImplicitAny) {\n error(right, ts.Diagnostics.Element_implicitly_has_an_any_type_because_type_0_has_no_index_signature, typeToString(leftType));\n }\n return anyType;\n }\n if (right.escapedText && !checkAndReportErrorForExtendingInterface(node)) {\n reportNonexistentProperty(right, isThisTypeParameter(leftType) ? apparentType : leftType, isUncheckedJS);\n }\n return errorType;\n }\n if (indexInfo.isReadonly && (ts.isAssignmentTarget(node) || ts.isDeleteTarget(node))) {\n error(node, ts.Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(apparentType));\n }\n propType = (compilerOptions.noUncheckedIndexedAccess && !ts.isAssignmentTarget(node)) ? getUnionType([indexInfo.type, undefinedType]) : indexInfo.type;\n if (compilerOptions.noPropertyAccessFromIndexSignature && ts.isPropertyAccessExpression(node)) {\n error(right, ts.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0, ts.unescapeLeadingUnderscores(right.escapedText));\n }\n }\n else {\n if (prop.declarations && getDeclarationNodeFlagsFromSymbol(prop) & 134217728 /* Deprecated */ && isUncalledFunctionReference(node, prop)) {\n addDeprecatedSuggestion(right, prop.declarations, right.escapedText);\n }\n checkPropertyNotUsedBeforeDeclaration(prop, node, right);\n markPropertyAsReferenced(prop, node, isSelfTypeAccess(left, parentSymbol));\n getNodeLinks(node).resolvedSymbol = prop;\n var writing = ts.isWriteAccess(node);\n checkPropertyAccessibility(node, left.kind === 106 /* SuperKeyword */, writing, apparentType, prop);\n if (isAssignmentToReadonlyEntity(node, prop, assignmentKind)) {\n error(right, ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_read_only_property, ts.idText(right));\n return errorType;\n }\n propType = isThisPropertyAccessInConstructor(node, prop) ? autoType : writing ? getSetAccessorTypeOfSymbol(prop) : getTypeOfSymbol(prop);\n }\n return getFlowTypeOfAccessExpression(node, prop, propType, right, checkMode);\n }\n /**\n * Determines whether a did-you-mean error should be a suggestion in an unchecked JS file.\n * Only applies to unchecked JS files without checkJS, // @ts-check or // @ts-nocheck\n * It does not suggest when the suggestion:\n * - Is from a global file that is different from the reference file, or\n * - (optionally) Is a class, or is a this.x property access expression\n */\n function isUncheckedJSSuggestion(node, suggestion, excludeClasses) {\n var file = ts.getSourceFileOfNode(node);\n if (file) {\n if (compilerOptions.checkJs === undefined && file.checkJsDirective === undefined && (file.scriptKind === 1 /* JS */ || file.scriptKind === 2 /* JSX */)) {\n var declarationFile = ts.forEach(suggestion === null || suggestion === void 0 ? void 0 : suggestion.declarations, ts.getSourceFileOfNode);\n return !(file !== declarationFile && !!declarationFile && isGlobalSourceFile(declarationFile))\n && !(excludeClasses && suggestion && suggestion.flags & 32 /* Class */)\n && !(!!node && excludeClasses && ts.isPropertyAccessExpression(node) && node.expression.kind === 108 /* ThisKeyword */);\n }\n }\n return false;\n }\n function getFlowTypeOfAccessExpression(node, prop, propType, errorNode, checkMode) {\n // Only compute control flow type if this is a property access expression that isn't an\n // assignment target, and the referenced property was declared as a variable, property,\n // accessor, or optional method.\n var assignmentKind = ts.getAssignmentTargetKind(node);\n if (assignmentKind === 1 /* Definite */) {\n return removeMissingType(propType, !!(prop && prop.flags & 16777216 /* Optional */));\n }\n if (prop &&\n !(prop.flags & (3 /* Variable */ | 4 /* Property */ | 98304 /* Accessor */))\n && !(prop.flags & 8192 /* Method */ && propType.flags & 1048576 /* Union */)\n && !isDuplicatedCommonJSExport(prop.declarations)) {\n return propType;\n }\n if (propType === autoType) {\n return getFlowTypeOfProperty(node, prop);\n }\n propType = getNarrowableTypeForReference(propType, node, checkMode);\n // If strict null checks and strict property initialization checks are enabled, if we have\n // a this.xxx property access, if the property is an instance property without an initializer,\n // and if we are in a constructor of the same class as the property declaration, assume that\n // the property is uninitialized at the top of the control flow.\n var assumeUninitialized = false;\n if (strictNullChecks && strictPropertyInitialization && ts.isAccessExpression(node) && node.expression.kind === 108 /* ThisKeyword */) {\n var declaration = prop && prop.valueDeclaration;\n if (declaration && isPropertyWithoutInitializer(declaration)) {\n if (!ts.isStatic(declaration)) {\n var flowContainer = getControlFlowContainer(node);\n if (flowContainer.kind === 169 /* Constructor */ && flowContainer.parent === declaration.parent && !(declaration.flags & 8388608 /* Ambient */)) {\n assumeUninitialized = true;\n }\n }\n }\n }\n else if (strictNullChecks && prop && prop.valueDeclaration &&\n ts.isPropertyAccessExpression(prop.valueDeclaration) &&\n ts.getAssignmentDeclarationPropertyAccessKind(prop.valueDeclaration) &&\n getControlFlowContainer(node) === getControlFlowContainer(prop.valueDeclaration)) {\n assumeUninitialized = true;\n }\n var flowType = getFlowTypeOfReference(node, propType, assumeUninitialized ? getOptionalType(propType) : propType);\n if (assumeUninitialized && !(getFalsyFlags(propType) & 32768 /* Undefined */) && getFalsyFlags(flowType) & 32768 /* Undefined */) {\n error(errorNode, ts.Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(prop)); // TODO: GH#18217\n // Return the declared type to reduce follow-on errors\n return propType;\n }\n return assignmentKind ? getBaseTypeOfLiteralType(flowType) : flowType;\n }\n function checkPropertyNotUsedBeforeDeclaration(prop, node, right) {\n var valueDeclaration = prop.valueDeclaration;\n if (!valueDeclaration || ts.getSourceFileOfNode(node).isDeclarationFile) {\n return;\n }\n var diagnosticMessage;\n var declarationName = ts.idText(right);\n if (isInPropertyInitializerOrClassStaticBlock(node)\n && !isOptionalPropertyDeclaration(valueDeclaration)\n && !(ts.isAccessExpression(node) && ts.isAccessExpression(node.expression))\n && !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)\n && (compilerOptions.useDefineForClassFields || !isPropertyDeclaredInAncestorClass(prop))) {\n diagnosticMessage = error(right, ts.Diagnostics.Property_0_is_used_before_its_initialization, declarationName);\n }\n else if (valueDeclaration.kind === 255 /* ClassDeclaration */ &&\n node.parent.kind !== 176 /* TypeReference */ &&\n !(valueDeclaration.flags & 8388608 /* Ambient */) &&\n !isBlockScopedNameDeclaredBeforeUse(valueDeclaration, right)) {\n diagnosticMessage = error(right, ts.Diagnostics.Class_0_used_before_its_declaration, declarationName);\n }\n if (diagnosticMessage) {\n ts.addRelatedInfo(diagnosticMessage, ts.createDiagnosticForNode(valueDeclaration, ts.Diagnostics._0_is_declared_here, declarationName));\n }\n }\n function isInPropertyInitializerOrClassStaticBlock(node) {\n return !!ts.findAncestor(node, function (node) {\n switch (node.kind) {\n case 165 /* PropertyDeclaration */:\n return true;\n case 291 /* PropertyAssignment */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 293 /* SpreadAssignment */:\n case 160 /* ComputedPropertyName */:\n case 231 /* TemplateSpan */:\n case 286 /* JsxExpression */:\n case 283 /* JsxAttribute */:\n case 284 /* JsxAttributes */:\n case 285 /* JsxSpreadAttribute */:\n case 278 /* JsxOpeningElement */:\n case 226 /* ExpressionWithTypeArguments */:\n case 289 /* HeritageClause */:\n return false;\n case 212 /* ArrowFunction */:\n case 236 /* ExpressionStatement */:\n return ts.isBlock(node.parent) && ts.isClassStaticBlockDeclaration(node.parent.parent) ? true : \"quit\";\n default:\n return ts.isExpressionNode(node) ? false : \"quit\";\n }\n });\n }\n /**\n * It's possible that \"prop.valueDeclaration\" is a local declaration, but the property was also declared in a superclass.\n * In that case we won't consider it used before its declaration, because it gets its value from the superclass' declaration.\n */\n function isPropertyDeclaredInAncestorClass(prop) {\n if (!(prop.parent.flags & 32 /* Class */)) {\n return false;\n }\n var classType = getTypeOfSymbol(prop.parent);\n while (true) {\n classType = classType.symbol && getSuperClass(classType);\n if (!classType) {\n return false;\n }\n var superProperty = getPropertyOfType(classType, prop.escapedName);\n if (superProperty && superProperty.valueDeclaration) {\n return true;\n }\n }\n }\n function getSuperClass(classType) {\n var x = getBaseTypes(classType);\n if (x.length === 0) {\n return undefined;\n }\n return getIntersectionType(x);\n }\n function reportNonexistentProperty(propNode, containingType, isUncheckedJS) {\n var errorInfo;\n var relatedInfo;\n if (!ts.isPrivateIdentifier(propNode) && containingType.flags & 1048576 /* Union */ && !(containingType.flags & 131068 /* Primitive */)) {\n for (var _i = 0, _a = containingType.types; _i < _a.length; _i++) {\n var subtype = _a[_i];\n if (!getPropertyOfType(subtype, propNode.escapedText) && !getApplicableIndexInfoForName(subtype, propNode.escapedText)) {\n errorInfo = ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.declarationNameToString(propNode), typeToString(subtype));\n break;\n }\n }\n }\n if (typeHasStaticProperty(propNode.escapedText, containingType)) {\n var propName = ts.declarationNameToString(propNode);\n var typeName = typeToString(containingType);\n errorInfo = ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_to_access_the_static_member_2_instead, propName, typeName, typeName + \".\" + propName);\n }\n else {\n var promisedType = getPromisedTypeOfPromise(containingType);\n if (promisedType && getPropertyOfType(promisedType, propNode.escapedText)) {\n errorInfo = ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Property_0_does_not_exist_on_type_1, ts.declarationNameToString(propNode), typeToString(containingType));\n relatedInfo = ts.createDiagnosticForNode(propNode, ts.Diagnostics.Did_you_forget_to_use_await);\n }\n else {\n var missingProperty = ts.declarationNameToString(propNode);\n var container = typeToString(containingType);\n var libSuggestion = getSuggestedLibForNonExistentProperty(missingProperty, containingType);\n if (libSuggestion !== undefined) {\n errorInfo = ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Property_0_does_not_exist_on_type_1_Do_you_need_to_change_your_target_library_Try_changing_the_lib_compiler_option_to_2_or_later, missingProperty, container, libSuggestion);\n }\n else {\n var suggestion = getSuggestedSymbolForNonexistentProperty(propNode, containingType);\n if (suggestion !== undefined) {\n var suggestedName = ts.symbolName(suggestion);\n var message = isUncheckedJS ? ts.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2 : ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2;\n errorInfo = ts.chainDiagnosticMessages(errorInfo, message, missingProperty, container, suggestedName);\n relatedInfo = suggestion.valueDeclaration && ts.createDiagnosticForNode(suggestion.valueDeclaration, ts.Diagnostics._0_is_declared_here, suggestedName);\n }\n else {\n var diagnostic = containerSeemsToBeEmptyDomElement(containingType)\n ? ts.Diagnostics.Property_0_does_not_exist_on_type_1_Try_changing_the_lib_compiler_option_to_include_dom\n : ts.Diagnostics.Property_0_does_not_exist_on_type_1;\n errorInfo = ts.chainDiagnosticMessages(elaborateNeverIntersection(errorInfo, containingType), diagnostic, missingProperty, container);\n }\n }\n }\n }\n var resultDiagnostic = ts.createDiagnosticForNodeFromMessageChain(propNode, errorInfo);\n if (relatedInfo) {\n ts.addRelatedInfo(resultDiagnostic, relatedInfo);\n }\n addErrorOrSuggestion(!isUncheckedJS, resultDiagnostic);\n }\n function containerSeemsToBeEmptyDomElement(containingType) {\n return (compilerOptions.lib && !compilerOptions.lib.includes(\"dom\")) &&\n everyContainedType(containingType, function (type) { return type.symbol && /^(EventTarget|Node|((HTML[a-zA-Z]*)?Element))$/.test(ts.unescapeLeadingUnderscores(type.symbol.escapedName)); }) &&\n isEmptyObjectType(containingType);\n }\n function typeHasStaticProperty(propName, containingType) {\n var prop = containingType.symbol && getPropertyOfType(getTypeOfSymbol(containingType.symbol), propName);\n return prop !== undefined && !!prop.valueDeclaration && ts.isStatic(prop.valueDeclaration);\n }\n function getSuggestedLibForNonExistentName(name) {\n var missingName = diagnosticName(name);\n var allFeatures = ts.getScriptTargetFeatures();\n var libTargets = ts.getOwnKeys(allFeatures);\n for (var _i = 0, libTargets_1 = libTargets; _i < libTargets_1.length; _i++) {\n var libTarget = libTargets_1[_i];\n var containingTypes = ts.getOwnKeys(allFeatures[libTarget]);\n if (containingTypes !== undefined && ts.contains(containingTypes, missingName)) {\n return libTarget;\n }\n }\n }\n function getSuggestedLibForNonExistentProperty(missingProperty, containingType) {\n var container = getApparentType(containingType).symbol;\n if (!container) {\n return undefined;\n }\n var allFeatures = ts.getScriptTargetFeatures();\n var libTargets = ts.getOwnKeys(allFeatures);\n for (var _i = 0, libTargets_2 = libTargets; _i < libTargets_2.length; _i++) {\n var libTarget = libTargets_2[_i];\n var featuresOfLib = allFeatures[libTarget];\n var featuresOfContainingType = featuresOfLib[ts.symbolName(container)];\n if (featuresOfContainingType !== undefined && ts.contains(featuresOfContainingType, missingProperty)) {\n return libTarget;\n }\n }\n }\n function getSuggestedSymbolForNonexistentClassMember(name, baseType) {\n return getSpellingSuggestionForName(name, getPropertiesOfType(baseType), 106500 /* ClassMember */);\n }\n function getSuggestedSymbolForNonexistentProperty(name, containingType) {\n var props = getPropertiesOfType(containingType);\n if (typeof name !== \"string\") {\n var parent_2 = name.parent;\n if (ts.isPropertyAccessExpression(parent_2)) {\n props = ts.filter(props, function (prop) { return isValidPropertyAccessForCompletions(parent_2, containingType, prop); });\n }\n name = ts.idText(name);\n }\n return getSpellingSuggestionForName(name, props, 111551 /* Value */);\n }\n function getSuggestedSymbolForNonexistentJSXAttribute(name, containingType) {\n var strName = ts.isString(name) ? name : ts.idText(name);\n var properties = getPropertiesOfType(containingType);\n var jsxSpecific = strName === \"for\" ? ts.find(properties, function (x) { return ts.symbolName(x) === \"htmlFor\"; })\n : strName === \"class\" ? ts.find(properties, function (x) { return ts.symbolName(x) === \"className\"; })\n : undefined;\n return jsxSpecific !== null && jsxSpecific !== void 0 ? jsxSpecific : getSpellingSuggestionForName(strName, properties, 111551 /* Value */);\n }\n function getSuggestionForNonexistentProperty(name, containingType) {\n var suggestion = getSuggestedSymbolForNonexistentProperty(name, containingType);\n return suggestion && ts.symbolName(suggestion);\n }\n function getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning) {\n ts.Debug.assert(outerName !== undefined, \"outername should always be defined\");\n var result = resolveNameHelper(location, outerName, meaning, /*nameNotFoundMessage*/ undefined, outerName, /*isUse*/ false, /*excludeGlobals*/ false, function (symbols, name, meaning) {\n ts.Debug.assertEqual(outerName, name, \"name should equal outerName\");\n var symbol = getSymbol(symbols, name, meaning);\n // Sometimes the symbol is found when location is a return type of a function: `typeof x` and `x` is declared in the body of the function\n // So the table *contains* `x` but `x` isn't actually in scope.\n // However, resolveNameHelper will continue and call this callback again, so we'll eventually get a correct suggestion.\n return symbol || getSpellingSuggestionForName(ts.unescapeLeadingUnderscores(name), ts.arrayFrom(symbols.values()), meaning);\n });\n return result;\n }\n function getSuggestionForNonexistentSymbol(location, outerName, meaning) {\n var symbolResult = getSuggestedSymbolForNonexistentSymbol(location, outerName, meaning);\n return symbolResult && ts.symbolName(symbolResult);\n }\n function getSuggestedSymbolForNonexistentModule(name, targetModule) {\n return targetModule.exports && getSpellingSuggestionForName(ts.idText(name), getExportsOfModuleAsArray(targetModule), 2623475 /* ModuleMember */);\n }\n function getSuggestionForNonexistentExport(name, targetModule) {\n var suggestion = getSuggestedSymbolForNonexistentModule(name, targetModule);\n return suggestion && ts.symbolName(suggestion);\n }\n function getSuggestionForNonexistentIndexSignature(objectType, expr, keyedType) {\n // check if object type has setter or getter\n function hasProp(name) {\n var prop = getPropertyOfObjectType(objectType, name);\n if (prop) {\n var s = getSingleCallSignature(getTypeOfSymbol(prop));\n return !!s && getMinArgumentCount(s) >= 1 && isTypeAssignableTo(keyedType, getTypeAtPosition(s, 0));\n }\n return false;\n }\n ;\n var suggestedMethod = ts.isAssignmentTarget(expr) ? \"set\" : \"get\";\n if (!hasProp(suggestedMethod)) {\n return undefined;\n }\n var suggestion = ts.tryGetPropertyAccessOrIdentifierToString(expr.expression);\n if (suggestion === undefined) {\n suggestion = suggestedMethod;\n }\n else {\n suggestion += \".\" + suggestedMethod;\n }\n return suggestion;\n }\n /**\n * Given a name and a list of symbols whose names are *not* equal to the name, return a spelling suggestion if there is one that is close enough.\n * Names less than length 3 only check for case-insensitive equality, not levenshtein distance.\n *\n * If there is a candidate that's the same except for case, return that.\n * If there is a candidate that's within one edit of the name, return that.\n * Otherwise, return the candidate with the smallest Levenshtein distance,\n * except for candidates:\n * * With no name\n * * Whose meaning doesn't match the `meaning` parameter.\n * * Whose length differs from the target name by more than 0.34 of the length of the name.\n * * Whose levenshtein distance is more than 0.4 of the length of the name\n * (0.4 allows 1 substitution/transposition for every 5 characters,\n * and 1 insertion/deletion at 3 characters)\n */\n function getSpellingSuggestionForName(name, symbols, meaning) {\n return ts.getSpellingSuggestion(name, symbols, getCandidateName);\n function getCandidateName(candidate) {\n var candidateName = ts.symbolName(candidate);\n if (ts.startsWith(candidateName, \"\\\"\")) {\n return undefined;\n }\n if (candidate.flags & meaning) {\n return candidateName;\n }\n if (candidate.flags & 2097152 /* Alias */) {\n var alias = tryResolveAlias(candidate);\n if (alias && alias.flags & meaning) {\n return candidateName;\n }\n }\n return undefined;\n }\n }\n function markPropertyAsReferenced(prop, nodeForCheckWriteOnly, isSelfTypeAccess) {\n var valueDeclaration = prop && (prop.flags & 106500 /* ClassMember */) && prop.valueDeclaration;\n if (!valueDeclaration) {\n return;\n }\n var hasPrivateModifier = ts.hasEffectiveModifier(valueDeclaration, 8 /* Private */);\n var hasPrivateIdentifier = prop.valueDeclaration && ts.isNamedDeclaration(prop.valueDeclaration) && ts.isPrivateIdentifier(prop.valueDeclaration.name);\n if (!hasPrivateModifier && !hasPrivateIdentifier) {\n return;\n }\n if (nodeForCheckWriteOnly && ts.isWriteOnlyAccess(nodeForCheckWriteOnly) && !(prop.flags & 65536 /* SetAccessor */)) {\n return;\n }\n if (isSelfTypeAccess) {\n // Find any FunctionLikeDeclaration because those create a new 'this' binding. But this should only matter for methods (or getters/setters).\n var containingMethod = ts.findAncestor(nodeForCheckWriteOnly, ts.isFunctionLikeDeclaration);\n if (containingMethod && containingMethod.symbol === prop) {\n return;\n }\n }\n (ts.getCheckFlags(prop) & 1 /* Instantiated */ ? getSymbolLinks(prop).target : prop).isReferenced = 67108863 /* All */;\n }\n function isSelfTypeAccess(name, parent) {\n return name.kind === 108 /* ThisKeyword */\n || !!parent && ts.isEntityNameExpression(name) && parent === getResolvedSymbol(ts.getFirstIdentifier(name));\n }\n function isValidPropertyAccess(node, propertyName) {\n switch (node.kind) {\n case 204 /* PropertyAccessExpression */:\n return isValidPropertyAccessWithType(node, node.expression.kind === 106 /* SuperKeyword */, propertyName, getWidenedType(checkExpression(node.expression)));\n case 159 /* QualifiedName */:\n return isValidPropertyAccessWithType(node, /*isSuper*/ false, propertyName, getWidenedType(checkExpression(node.left)));\n case 198 /* ImportType */:\n return isValidPropertyAccessWithType(node, /*isSuper*/ false, propertyName, getTypeFromTypeNode(node));\n }\n }\n function isValidPropertyAccessForCompletions(node, type, property) {\n return isValidPropertyAccessWithType(node, node.kind === 204 /* PropertyAccessExpression */ && node.expression.kind === 106 /* SuperKeyword */, property.escapedName, type);\n // Previously we validated the 'this' type of methods but this adversely affected performance. See #31377 for more context.\n }\n function isValidPropertyAccessWithType(node, isSuper, propertyName, type) {\n if (type === errorType || isTypeAny(type)) {\n return true;\n }\n var prop = getPropertyOfType(type, propertyName);\n if (prop) {\n if (prop.valueDeclaration && ts.isPrivateIdentifierClassElementDeclaration(prop.valueDeclaration)) {\n var declClass_1 = ts.getContainingClass(prop.valueDeclaration);\n return !ts.isOptionalChain(node) && !!ts.findAncestor(node, function (parent) { return parent === declClass_1; });\n }\n return checkPropertyAccessibility(node, isSuper, /*writing*/ false, type, prop, /* reportError */ false);\n }\n // In js files properties of unions are allowed in completion\n return ts.isInJSFile(node) && (type.flags & 1048576 /* Union */) !== 0 && type.types.some(function (elementType) { return isValidPropertyAccessWithType(node, isSuper, propertyName, elementType); });\n }\n /**\n * Return the symbol of the for-in variable declared or referenced by the given for-in statement.\n */\n function getForInVariableSymbol(node) {\n var initializer = node.initializer;\n if (initializer.kind === 253 /* VariableDeclarationList */) {\n var variable = initializer.declarations[0];\n if (variable && !ts.isBindingPattern(variable.name)) {\n return getSymbolOfNode(variable);\n }\n }\n else if (initializer.kind === 79 /* Identifier */) {\n return getResolvedSymbol(initializer);\n }\n return undefined;\n }\n /**\n * Return true if the given type is considered to have numeric property names.\n */\n function hasNumericPropertyNames(type) {\n return getIndexInfosOfType(type).length === 1 && !!getIndexInfoOfType(type, numberType);\n }\n /**\n * Return true if given node is an expression consisting of an identifier (possibly parenthesized)\n * that references a for-in variable for an object with numeric property names.\n */\n function isForInVariableForNumericPropertyNames(expr) {\n var e = ts.skipParentheses(expr);\n if (e.kind === 79 /* Identifier */) {\n var symbol = getResolvedSymbol(e);\n if (symbol.flags & 3 /* Variable */) {\n var child = expr;\n var node = expr.parent;\n while (node) {\n if (node.kind === 241 /* ForInStatement */ &&\n child === node.statement &&\n getForInVariableSymbol(node) === symbol &&\n hasNumericPropertyNames(getTypeOfExpression(node.expression))) {\n return true;\n }\n child = node;\n node = node.parent;\n }\n }\n }\n return false;\n }\n function checkIndexedAccess(node, checkMode) {\n return node.flags & 32 /* OptionalChain */ ? checkElementAccessChain(node, checkMode) :\n checkElementAccessExpression(node, checkNonNullExpression(node.expression), checkMode);\n }\n function checkElementAccessChain(node, checkMode) {\n var exprType = checkExpression(node.expression);\n var nonOptionalType = getOptionalExpressionType(exprType, node.expression);\n return propagateOptionalTypeMarker(checkElementAccessExpression(node, checkNonNullType(nonOptionalType, node.expression), checkMode), node, nonOptionalType !== exprType);\n }\n function checkElementAccessExpression(node, exprType, checkMode) {\n var objectType = ts.getAssignmentTargetKind(node) !== 0 /* None */ || isMethodAccessForCall(node) ? getWidenedType(exprType) : exprType;\n var indexExpression = node.argumentExpression;\n var indexType = checkExpression(indexExpression);\n if (objectType === errorType || objectType === silentNeverType) {\n return objectType;\n }\n if (isConstEnumObjectType(objectType) && !ts.isStringLiteralLike(indexExpression)) {\n error(indexExpression, ts.Diagnostics.A_const_enum_member_can_only_be_accessed_using_a_string_literal);\n return errorType;\n }\n var effectiveIndexType = isForInVariableForNumericPropertyNames(indexExpression) ? numberType : indexType;\n var accessFlags = ts.isAssignmentTarget(node) ?\n 4 /* Writing */ | (isGenericObjectType(objectType) && !isThisTypeParameter(objectType) ? 2 /* NoIndexSignatures */ : 0) :\n 32 /* ExpressionPosition */;\n var indexedAccessType = getIndexedAccessTypeOrUndefined(objectType, effectiveIndexType, accessFlags, node) || errorType;\n return checkIndexedAccessIndexType(getFlowTypeOfAccessExpression(node, getNodeLinks(node).resolvedSymbol, indexedAccessType, indexExpression, checkMode), node);\n }\n function callLikeExpressionMayHaveTypeArguments(node) {\n return ts.isCallOrNewExpression(node) || ts.isTaggedTemplateExpression(node) || ts.isJsxOpeningLikeElement(node);\n }\n function resolveUntypedCall(node) {\n if (callLikeExpressionMayHaveTypeArguments(node)) {\n // Check type arguments even though we will give an error that untyped calls may not accept type arguments.\n // This gets us diagnostics for the type arguments and marks them as referenced.\n ts.forEach(node.typeArguments, checkSourceElement);\n }\n if (node.kind === 208 /* TaggedTemplateExpression */) {\n checkExpression(node.template);\n }\n else if (ts.isJsxOpeningLikeElement(node)) {\n checkExpression(node.attributes);\n }\n else if (node.kind !== 163 /* Decorator */) {\n ts.forEach(node.arguments, function (argument) {\n checkExpression(argument);\n });\n }\n return anySignature;\n }\n function resolveErrorCall(node) {\n resolveUntypedCall(node);\n return unknownSignature;\n }\n // Re-order candidate signatures into the result array. Assumes the result array to be empty.\n // The candidate list orders groups in reverse, but within a group signatures are kept in declaration order\n // A nit here is that we reorder only signatures that belong to the same symbol,\n // so order how inherited signatures are processed is still preserved.\n // interface A { (x: string): void }\n // interface B extends A { (x: 'foo'): string }\n // const b: B;\n // b('foo') // <- here overloads should be processed as [(x:'foo'): string, (x: string): void]\n function reorderCandidates(signatures, result, callChainFlags) {\n var lastParent;\n var lastSymbol;\n var cutoffIndex = 0;\n var index;\n var specializedIndex = -1;\n var spliceIndex;\n ts.Debug.assert(!result.length);\n for (var _i = 0, signatures_7 = signatures; _i < signatures_7.length; _i++) {\n var signature = signatures_7[_i];\n var symbol = signature.declaration && getSymbolOfNode(signature.declaration);\n var parent = signature.declaration && signature.declaration.parent;\n if (!lastSymbol || symbol === lastSymbol) {\n if (lastParent && parent === lastParent) {\n index = index + 1;\n }\n else {\n lastParent = parent;\n index = cutoffIndex;\n }\n }\n else {\n // current declaration belongs to a different symbol\n // set cutoffIndex so re-orderings in the future won't change result set from 0 to cutoffIndex\n index = cutoffIndex = result.length;\n lastParent = parent;\n }\n lastSymbol = symbol;\n // specialized signatures always need to be placed before non-specialized signatures regardless\n // of the cutoff position; see GH#1133\n if (signatureHasLiteralTypes(signature)) {\n specializedIndex++;\n spliceIndex = specializedIndex;\n // The cutoff index always needs to be greater than or equal to the specialized signature index\n // in order to prevent non-specialized signatures from being added before a specialized\n // signature.\n cutoffIndex++;\n }\n else {\n spliceIndex = index;\n }\n result.splice(spliceIndex, 0, callChainFlags ? getOptionalCallSignature(signature, callChainFlags) : signature);\n }\n }\n function isSpreadArgument(arg) {\n return !!arg && (arg.kind === 223 /* SpreadElement */ || arg.kind === 230 /* SyntheticExpression */ && arg.isSpread);\n }\n function getSpreadArgumentIndex(args) {\n return ts.findIndex(args, isSpreadArgument);\n }\n function acceptsVoid(t) {\n return !!(t.flags & 16384 /* Void */);\n }\n function acceptsVoidUndefinedUnknownOrAny(t) {\n return !!(t.flags & (16384 /* Void */ | 32768 /* Undefined */ | 2 /* Unknown */ | 1 /* Any */));\n }\n function hasCorrectArity(node, args, signature, signatureHelpTrailingComma) {\n if (signatureHelpTrailingComma === void 0) { signatureHelpTrailingComma = false; }\n var argCount;\n var callIsIncomplete = false; // In incomplete call we want to be lenient when we have too few arguments\n var effectiveParameterCount = getParameterCount(signature);\n var effectiveMinimumArguments = getMinArgumentCount(signature);\n if (node.kind === 208 /* TaggedTemplateExpression */) {\n argCount = args.length;\n if (node.template.kind === 221 /* TemplateExpression */) {\n // If a tagged template expression lacks a tail literal, the call is incomplete.\n // Specifically, a template only can end in a TemplateTail or a Missing literal.\n var lastSpan = ts.last(node.template.templateSpans); // we should always have at least one span.\n callIsIncomplete = ts.nodeIsMissing(lastSpan.literal) || !!lastSpan.literal.isUnterminated;\n }\n else {\n // If the template didn't end in a backtick, or its beginning occurred right prior to EOF,\n // then this might actually turn out to be a TemplateHead in the future;\n // so we consider the call to be incomplete.\n var templateLiteral = node.template;\n ts.Debug.assert(templateLiteral.kind === 14 /* NoSubstitutionTemplateLiteral */);\n callIsIncomplete = !!templateLiteral.isUnterminated;\n }\n }\n else if (node.kind === 163 /* Decorator */) {\n argCount = getDecoratorArgumentCount(node, signature);\n }\n else if (ts.isJsxOpeningLikeElement(node)) {\n callIsIncomplete = node.attributes.end === node.end;\n if (callIsIncomplete) {\n return true;\n }\n argCount = effectiveMinimumArguments === 0 ? args.length : 1;\n effectiveParameterCount = args.length === 0 ? effectiveParameterCount : 1; // class may have argumentless ctor functions - still resolve ctor and compare vs props member type\n effectiveMinimumArguments = Math.min(effectiveMinimumArguments, 1); // sfc may specify context argument - handled by framework and not typechecked\n }\n else if (!node.arguments) {\n // This only happens when we have something of the form: 'new C'\n ts.Debug.assert(node.kind === 207 /* NewExpression */);\n return getMinArgumentCount(signature) === 0;\n }\n else {\n argCount = signatureHelpTrailingComma ? args.length + 1 : args.length;\n // If we are missing the close parenthesis, the call is incomplete.\n callIsIncomplete = node.arguments.end === node.end;\n // If a spread argument is present, check that it corresponds to a rest parameter or at least that it's in the valid range.\n var spreadArgIndex = getSpreadArgumentIndex(args);\n if (spreadArgIndex >= 0) {\n return spreadArgIndex >= getMinArgumentCount(signature) && (hasEffectiveRestParameter(signature) || spreadArgIndex < getParameterCount(signature));\n }\n }\n // Too many arguments implies incorrect arity.\n if (!hasEffectiveRestParameter(signature) && argCount > effectiveParameterCount) {\n return false;\n }\n // If the call is incomplete, we should skip the lower bound check.\n // JSX signatures can have extra parameters provided by the library which we don't check\n if (callIsIncomplete || argCount >= effectiveMinimumArguments) {\n return true;\n }\n for (var i = argCount; i < effectiveMinimumArguments; i++) {\n var type = getTypeAtPosition(signature, i);\n if (filterType(type, ts.isInJSFile(node) && !strictNullChecks ? acceptsVoidUndefinedUnknownOrAny : acceptsVoid).flags & 131072 /* Never */) {\n return false;\n }\n }\n return true;\n }\n function hasCorrectTypeArgumentArity(signature, typeArguments) {\n // If the user supplied type arguments, but the number of type arguments does not match\n // the declared number of type parameters, the call has an incorrect arity.\n var numTypeParameters = ts.length(signature.typeParameters);\n var minTypeArgumentCount = getMinTypeArgumentCount(signature.typeParameters);\n return !ts.some(typeArguments) ||\n (typeArguments.length >= minTypeArgumentCount && typeArguments.length <= numTypeParameters);\n }\n // If type has a single call signature and no other members, return that signature. Otherwise, return undefined.\n function getSingleCallSignature(type) {\n return getSingleSignature(type, 0 /* Call */, /*allowMembers*/ false);\n }\n function getSingleCallOrConstructSignature(type) {\n return getSingleSignature(type, 0 /* Call */, /*allowMembers*/ false) ||\n getSingleSignature(type, 1 /* Construct */, /*allowMembers*/ false);\n }\n function getSingleSignature(type, kind, allowMembers) {\n if (type.flags & 524288 /* Object */) {\n var resolved = resolveStructuredTypeMembers(type);\n if (allowMembers || resolved.properties.length === 0 && resolved.indexInfos.length === 0) {\n if (kind === 0 /* Call */ && resolved.callSignatures.length === 1 && resolved.constructSignatures.length === 0) {\n return resolved.callSignatures[0];\n }\n if (kind === 1 /* Construct */ && resolved.constructSignatures.length === 1 && resolved.callSignatures.length === 0) {\n return resolved.constructSignatures[0];\n }\n }\n }\n return undefined;\n }\n // Instantiate a generic signature in the context of a non-generic signature (section 3.8.5 in TypeScript spec)\n function instantiateSignatureInContextOf(signature, contextualSignature, inferenceContext, compareTypes) {\n var context = createInferenceContext(signature.typeParameters, signature, 0 /* None */, compareTypes);\n // We clone the inferenceContext to avoid fixing. For example, when the source signature is (x: T) => T[] and\n // the contextual signature is (...args: A) => B, we want to infer the element type of A's constraint (say 'any')\n // for T but leave it possible to later infer '[any]' back to A.\n var restType = getEffectiveRestType(contextualSignature);\n var mapper = inferenceContext && (restType && restType.flags & 262144 /* TypeParameter */ ? inferenceContext.nonFixingMapper : inferenceContext.mapper);\n var sourceSignature = mapper ? instantiateSignature(contextualSignature, mapper) : contextualSignature;\n applyToParameterTypes(sourceSignature, signature, function (source, target) {\n // Type parameters from outer context referenced by source type are fixed by instantiation of the source type\n inferTypes(context.inferences, source, target);\n });\n if (!inferenceContext) {\n applyToReturnTypes(contextualSignature, signature, function (source, target) {\n inferTypes(context.inferences, source, target, 128 /* ReturnType */);\n });\n }\n return getSignatureInstantiation(signature, getInferredTypes(context), ts.isInJSFile(contextualSignature.declaration));\n }\n function inferJsxTypeArguments(node, signature, checkMode, context) {\n var paramType = getEffectiveFirstArgumentForJsxSignature(signature, node);\n var checkAttrType = checkExpressionWithContextualType(node.attributes, paramType, context, checkMode);\n inferTypes(context.inferences, checkAttrType, paramType);\n return getInferredTypes(context);\n }\n function getThisArgumentType(thisArgumentNode) {\n if (!thisArgumentNode) {\n return voidType;\n }\n var thisArgumentType = checkExpression(thisArgumentNode);\n return ts.isOptionalChainRoot(thisArgumentNode.parent) ? getNonNullableType(thisArgumentType) :\n ts.isOptionalChain(thisArgumentNode.parent) ? removeOptionalTypeMarker(thisArgumentType) :\n thisArgumentType;\n }\n function inferTypeArguments(node, signature, args, checkMode, context) {\n if (ts.isJsxOpeningLikeElement(node)) {\n return inferJsxTypeArguments(node, signature, checkMode, context);\n }\n // If a contextual type is available, infer from that type to the return type of the call expression. For\n // example, given a 'function wrap(cb: (x: T) => U): (x: T) => U' and a call expression\n // 'let f: (x: string) => number = wrap(s => s.length)', we infer from the declared type of 'f' to the\n // return type of 'wrap'.\n if (node.kind !== 163 /* Decorator */) {\n var contextualType = getContextualType(node, ts.every(signature.typeParameters, function (p) { return !!getDefaultFromTypeParameter(p); }) ? 8 /* SkipBindingPatterns */ : 0 /* None */);\n if (contextualType) {\n // We clone the inference context to avoid disturbing a resolution in progress for an\n // outer call expression. Effectively we just want a snapshot of whatever has been\n // inferred for any outer call expression so far.\n var outerContext = getInferenceContext(node);\n var outerMapper = getMapperFromContext(cloneInferenceContext(outerContext, 1 /* NoDefault */));\n var instantiatedType = instantiateType(contextualType, outerMapper);\n // If the contextual type is a generic function type with a single call signature, we\n // instantiate the type with its own type parameters and type arguments. This ensures that\n // the type parameters are not erased to type any during type inference such that they can\n // be inferred as actual types from the contextual type. For example:\n // declare function arrayMap(f: (x: T) => U): (a: T[]) => U[];\n // const boxElements: (a: A[]) => { value: A }[] = arrayMap(value => ({ value }));\n // Above, the type of the 'value' parameter is inferred to be 'A'.\n var contextualSignature = getSingleCallSignature(instantiatedType);\n var inferenceSourceType = contextualSignature && contextualSignature.typeParameters ?\n getOrCreateTypeFromSignature(getSignatureInstantiationWithoutFillingInTypeArguments(contextualSignature, contextualSignature.typeParameters)) :\n instantiatedType;\n var inferenceTargetType = getReturnTypeOfSignature(signature);\n // Inferences made from return types have lower priority than all other inferences.\n inferTypes(context.inferences, inferenceSourceType, inferenceTargetType, 128 /* ReturnType */);\n // Create a type mapper for instantiating generic contextual types using the inferences made\n // from the return type. We need a separate inference pass here because (a) instantiation of\n // the source type uses the outer context's return mapper (which excludes inferences made from\n // outer arguments), and (b) we don't want any further inferences going into this context.\n var returnContext = createInferenceContext(signature.typeParameters, signature, context.flags);\n var returnSourceType = instantiateType(contextualType, outerContext && outerContext.returnMapper);\n inferTypes(returnContext.inferences, returnSourceType, inferenceTargetType);\n context.returnMapper = ts.some(returnContext.inferences, hasInferenceCandidates) ? getMapperFromContext(cloneInferredPartOfContext(returnContext)) : undefined;\n }\n }\n var restType = getNonArrayRestType(signature);\n var argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length;\n if (restType && restType.flags & 262144 /* TypeParameter */) {\n var info = ts.find(context.inferences, function (info) { return info.typeParameter === restType; });\n if (info) {\n info.impliedArity = ts.findIndex(args, isSpreadArgument, argCount) < 0 ? args.length - argCount : undefined;\n }\n }\n var thisType = getThisTypeOfSignature(signature);\n if (thisType) {\n var thisArgumentNode = getThisArgumentOfCall(node);\n inferTypes(context.inferences, getThisArgumentType(thisArgumentNode), thisType);\n }\n for (var i = 0; i < argCount; i++) {\n var arg = args[i];\n if (arg.kind !== 225 /* OmittedExpression */) {\n var paramType = getTypeAtPosition(signature, i);\n var argType = checkExpressionWithContextualType(arg, paramType, context, checkMode);\n inferTypes(context.inferences, argType, paramType);\n }\n }\n if (restType) {\n var spreadType = getSpreadArgumentType(args, argCount, args.length, restType, context, checkMode);\n inferTypes(context.inferences, spreadType, restType);\n }\n return getInferredTypes(context);\n }\n function getMutableArrayOrTupleType(type) {\n return type.flags & 1048576 /* Union */ ? mapType(type, getMutableArrayOrTupleType) :\n type.flags & 1 /* Any */ || isMutableArrayOrTuple(getBaseConstraintOfType(type) || type) ? type :\n isTupleType(type) ? createTupleType(getTypeArguments(type), type.target.elementFlags, /*readonly*/ false, type.target.labeledElementDeclarations) :\n createTupleType([type], [8 /* Variadic */]);\n }\n function getSpreadArgumentType(args, index, argCount, restType, context, checkMode) {\n if (index >= argCount - 1) {\n var arg = args[argCount - 1];\n if (isSpreadArgument(arg)) {\n // We are inferring from a spread expression in the last argument position, i.e. both the parameter\n // and the argument are ...x forms.\n return getMutableArrayOrTupleType(arg.kind === 230 /* SyntheticExpression */ ? arg.type :\n checkExpressionWithContextualType(arg.expression, restType, context, checkMode));\n }\n }\n var types = [];\n var flags = [];\n var names = [];\n for (var i = index; i < argCount; i++) {\n var arg = args[i];\n if (isSpreadArgument(arg)) {\n var spreadType = arg.kind === 230 /* SyntheticExpression */ ? arg.type : checkExpression(arg.expression);\n if (isArrayLikeType(spreadType)) {\n types.push(spreadType);\n flags.push(8 /* Variadic */);\n }\n else {\n types.push(checkIteratedTypeOrElementType(33 /* Spread */, spreadType, undefinedType, arg.kind === 223 /* SpreadElement */ ? arg.expression : arg));\n flags.push(4 /* Rest */);\n }\n }\n else {\n var contextualType = getIndexedAccessType(restType, getNumberLiteralType(i - index), 256 /* Contextual */);\n var argType = checkExpressionWithContextualType(arg, contextualType, context, checkMode);\n var hasPrimitiveContextualType = maybeTypeOfKind(contextualType, 131068 /* Primitive */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */);\n types.push(hasPrimitiveContextualType ? getRegularTypeOfLiteralType(argType) : getWidenedLiteralType(argType));\n flags.push(1 /* Required */);\n }\n if (arg.kind === 230 /* SyntheticExpression */ && arg.tupleNameSource) {\n names.push(arg.tupleNameSource);\n }\n }\n return createTupleType(types, flags, /*readonly*/ false, ts.length(names) === ts.length(types) ? names : undefined);\n }\n function checkTypeArguments(signature, typeArgumentNodes, reportErrors, headMessage) {\n var isJavascript = ts.isInJSFile(signature.declaration);\n var typeParameters = signature.typeParameters;\n var typeArgumentTypes = fillMissingTypeArguments(ts.map(typeArgumentNodes, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), isJavascript);\n var mapper;\n for (var i = 0; i < typeArgumentNodes.length; i++) {\n ts.Debug.assert(typeParameters[i] !== undefined, \"Should not call checkTypeArguments with too many type arguments\");\n var constraint = getConstraintOfTypeParameter(typeParameters[i]);\n if (constraint) {\n var errorInfo = reportErrors && headMessage ? (function () { return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1); }) : undefined;\n var typeArgumentHeadMessage = headMessage || ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1;\n if (!mapper) {\n mapper = createTypeMapper(typeParameters, typeArgumentTypes);\n }\n var typeArgument = typeArgumentTypes[i];\n if (!checkTypeAssignableTo(typeArgument, getTypeWithThisArgument(instantiateType(constraint, mapper), typeArgument), reportErrors ? typeArgumentNodes[i] : undefined, typeArgumentHeadMessage, errorInfo)) {\n return undefined;\n }\n }\n }\n return typeArgumentTypes;\n }\n function getJsxReferenceKind(node) {\n if (isJsxIntrinsicIdentifier(node.tagName)) {\n return 2 /* Mixed */;\n }\n var tagType = getApparentType(checkExpression(node.tagName));\n if (ts.length(getSignaturesOfType(tagType, 1 /* Construct */))) {\n return 0 /* Component */;\n }\n if (ts.length(getSignaturesOfType(tagType, 0 /* Call */))) {\n return 1 /* Function */;\n }\n return 2 /* Mixed */;\n }\n /**\n * Check if the given signature can possibly be a signature called by the JSX opening-like element.\n * @param node a JSX opening-like element we are trying to figure its call signature\n * @param signature a candidate signature we are trying whether it is a call signature\n * @param relation a relationship to check parameter and argument type\n */\n function checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors, containingMessageChain, errorOutputContainer) {\n // Stateless function components can have maximum of three arguments: \"props\", \"context\", and \"updater\".\n // However \"context\" and \"updater\" are implicit and can't be specify by users. Only the first parameter, props,\n // can be specified by users through attributes property.\n var paramType = getEffectiveFirstArgumentForJsxSignature(signature, node);\n var attributesType = checkExpressionWithContextualType(node.attributes, paramType, /*inferenceContext*/ undefined, checkMode);\n return checkTagNameDoesNotExpectTooManyArguments() && checkTypeRelatedToAndOptionallyElaborate(attributesType, paramType, relation, reportErrors ? node.tagName : undefined, node.attributes, \n /*headMessage*/ undefined, containingMessageChain, errorOutputContainer);\n function checkTagNameDoesNotExpectTooManyArguments() {\n var _a;\n if (getJsxNamespaceContainerForImplicitImport(node)) {\n return true; // factory is implicitly jsx/jsxdev - assume it fits the bill, since we don't strongly look for the jsx/jsxs/jsxDEV factory APIs anywhere else (at least not yet)\n }\n var tagType = ts.isJsxOpeningElement(node) || ts.isJsxSelfClosingElement(node) && !isJsxIntrinsicIdentifier(node.tagName) ? checkExpression(node.tagName) : undefined;\n if (!tagType) {\n return true;\n }\n var tagCallSignatures = getSignaturesOfType(tagType, 0 /* Call */);\n if (!ts.length(tagCallSignatures)) {\n return true;\n }\n var factory = getJsxFactoryEntity(node);\n if (!factory) {\n return true;\n }\n var factorySymbol = resolveEntityName(factory, 111551 /* Value */, /*ignoreErrors*/ true, /*dontResolveAlias*/ false, node);\n if (!factorySymbol) {\n return true;\n }\n var factoryType = getTypeOfSymbol(factorySymbol);\n var callSignatures = getSignaturesOfType(factoryType, 0 /* Call */);\n if (!ts.length(callSignatures)) {\n return true;\n }\n var hasFirstParamSignatures = false;\n var maxParamCount = 0;\n // Check that _some_ first parameter expects a FC-like thing, and that some overload of the SFC expects an acceptable number of arguments\n for (var _i = 0, callSignatures_1 = callSignatures; _i < callSignatures_1.length; _i++) {\n var sig = callSignatures_1[_i];\n var firstparam = getTypeAtPosition(sig, 0);\n var signaturesOfParam = getSignaturesOfType(firstparam, 0 /* Call */);\n if (!ts.length(signaturesOfParam))\n continue;\n for (var _b = 0, signaturesOfParam_1 = signaturesOfParam; _b < signaturesOfParam_1.length; _b++) {\n var paramSig = signaturesOfParam_1[_b];\n hasFirstParamSignatures = true;\n if (hasEffectiveRestParameter(paramSig)) {\n return true; // some signature has a rest param, so function components can have an arbitrary number of arguments\n }\n var paramCount = getParameterCount(paramSig);\n if (paramCount > maxParamCount) {\n maxParamCount = paramCount;\n }\n }\n }\n if (!hasFirstParamSignatures) {\n // Not a single signature had a first parameter which expected a signature - for back compat, and\n // to guard against generic factories which won't have signatures directly, do not error\n return true;\n }\n var absoluteMinArgCount = Infinity;\n for (var _c = 0, tagCallSignatures_1 = tagCallSignatures; _c < tagCallSignatures_1.length; _c++) {\n var tagSig = tagCallSignatures_1[_c];\n var tagRequiredArgCount = getMinArgumentCount(tagSig);\n if (tagRequiredArgCount < absoluteMinArgCount) {\n absoluteMinArgCount = tagRequiredArgCount;\n }\n }\n if (absoluteMinArgCount <= maxParamCount) {\n return true; // some signature accepts the number of arguments the function component provides\n }\n if (reportErrors) {\n var diag = ts.createDiagnosticForNode(node.tagName, ts.Diagnostics.Tag_0_expects_at_least_1_arguments_but_the_JSX_factory_2_provides_at_most_3, ts.entityNameToString(node.tagName), absoluteMinArgCount, ts.entityNameToString(factory), maxParamCount);\n var tagNameDeclaration = (_a = getSymbolAtLocation(node.tagName)) === null || _a === void 0 ? void 0 : _a.valueDeclaration;\n if (tagNameDeclaration) {\n ts.addRelatedInfo(diag, ts.createDiagnosticForNode(tagNameDeclaration, ts.Diagnostics._0_is_declared_here, ts.entityNameToString(node.tagName)));\n }\n if (errorOutputContainer && errorOutputContainer.skipLogging) {\n (errorOutputContainer.errors || (errorOutputContainer.errors = [])).push(diag);\n }\n if (!errorOutputContainer.skipLogging) {\n diagnostics.add(diag);\n }\n }\n return false;\n }\n }\n function getSignatureApplicabilityError(node, args, signature, relation, checkMode, reportErrors, containingMessageChain) {\n var errorOutputContainer = { errors: undefined, skipLogging: true };\n if (ts.isJsxOpeningLikeElement(node)) {\n if (!checkApplicableSignatureForJsxOpeningLikeElement(node, signature, relation, checkMode, reportErrors, containingMessageChain, errorOutputContainer)) {\n ts.Debug.assert(!reportErrors || !!errorOutputContainer.errors, \"jsx should have errors when reporting errors\");\n return errorOutputContainer.errors || ts.emptyArray;\n }\n return undefined;\n }\n var thisType = getThisTypeOfSignature(signature);\n if (thisType && thisType !== voidType && node.kind !== 207 /* NewExpression */) {\n // If the called expression is not of the form `x.f` or `x[\"f\"]`, then sourceType = voidType\n // If the signature's 'this' type is voidType, then the check is skipped -- anything is compatible.\n // If the expression is a new expression, then the check is skipped.\n var thisArgumentNode = getThisArgumentOfCall(node);\n var thisArgumentType = getThisArgumentType(thisArgumentNode);\n var errorNode = reportErrors ? (thisArgumentNode || node) : undefined;\n var headMessage_1 = ts.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1;\n if (!checkTypeRelatedTo(thisArgumentType, thisType, relation, errorNode, headMessage_1, containingMessageChain, errorOutputContainer)) {\n ts.Debug.assert(!reportErrors || !!errorOutputContainer.errors, \"this parameter should have errors when reporting errors\");\n return errorOutputContainer.errors || ts.emptyArray;\n }\n }\n var headMessage = ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1;\n var restType = getNonArrayRestType(signature);\n var argCount = restType ? Math.min(getParameterCount(signature) - 1, args.length) : args.length;\n for (var i = 0; i < argCount; i++) {\n var arg = args[i];\n if (arg.kind !== 225 /* OmittedExpression */) {\n var paramType = getTypeAtPosition(signature, i);\n var argType = checkExpressionWithContextualType(arg, paramType, /*inferenceContext*/ undefined, checkMode);\n // If one or more arguments are still excluded (as indicated by CheckMode.SkipContextSensitive),\n // we obtain the regular type of any object literal arguments because we may not have inferred complete\n // parameter types yet and therefore excess property checks may yield false positives (see #17041).\n var checkArgType = checkMode & 4 /* SkipContextSensitive */ ? getRegularTypeOfObjectLiteral(argType) : argType;\n if (!checkTypeRelatedToAndOptionallyElaborate(checkArgType, paramType, relation, reportErrors ? arg : undefined, arg, headMessage, containingMessageChain, errorOutputContainer)) {\n ts.Debug.assert(!reportErrors || !!errorOutputContainer.errors, \"parameter should have errors when reporting errors\");\n maybeAddMissingAwaitInfo(arg, checkArgType, paramType);\n return errorOutputContainer.errors || ts.emptyArray;\n }\n }\n }\n if (restType) {\n var spreadType = getSpreadArgumentType(args, argCount, args.length, restType, /*context*/ undefined, checkMode);\n var restArgCount = args.length - argCount;\n var errorNode = !reportErrors ? undefined :\n restArgCount === 0 ? node :\n restArgCount === 1 ? args[argCount] :\n ts.setTextRangePosEnd(createSyntheticExpression(node, spreadType), args[argCount].pos, args[args.length - 1].end);\n if (!checkTypeRelatedTo(spreadType, restType, relation, errorNode, headMessage, /*containingMessageChain*/ undefined, errorOutputContainer)) {\n ts.Debug.assert(!reportErrors || !!errorOutputContainer.errors, \"rest parameter should have errors when reporting errors\");\n maybeAddMissingAwaitInfo(errorNode, spreadType, restType);\n return errorOutputContainer.errors || ts.emptyArray;\n }\n }\n return undefined;\n function maybeAddMissingAwaitInfo(errorNode, source, target) {\n if (errorNode && reportErrors && errorOutputContainer.errors && errorOutputContainer.errors.length) {\n // Bail if target is Promise-like---something else is wrong\n if (getAwaitedTypeOfPromise(target)) {\n return;\n }\n var awaitedTypeOfSource = getAwaitedTypeOfPromise(source);\n if (awaitedTypeOfSource && isTypeRelatedTo(awaitedTypeOfSource, target, relation)) {\n ts.addRelatedInfo(errorOutputContainer.errors[0], ts.createDiagnosticForNode(errorNode, ts.Diagnostics.Did_you_forget_to_use_await));\n }\n }\n }\n }\n /**\n * Returns the this argument in calls like x.f(...) and x[f](...). Undefined otherwise.\n */\n function getThisArgumentOfCall(node) {\n var expression = node.kind === 206 /* CallExpression */ ? node.expression :\n node.kind === 208 /* TaggedTemplateExpression */ ? node.tag : undefined;\n if (expression) {\n var callee = ts.skipOuterExpressions(expression);\n if (ts.isAccessExpression(callee)) {\n return callee.expression;\n }\n }\n }\n function createSyntheticExpression(parent, type, isSpread, tupleNameSource) {\n var result = ts.parseNodeFactory.createSyntheticExpression(type, isSpread, tupleNameSource);\n ts.setTextRange(result, parent);\n ts.setParent(result, parent);\n return result;\n }\n /**\n * Returns the effective arguments for an expression that works like a function invocation.\n */\n function getEffectiveCallArguments(node) {\n if (node.kind === 208 /* TaggedTemplateExpression */) {\n var template = node.template;\n var args_3 = [createSyntheticExpression(template, getGlobalTemplateStringsArrayType())];\n if (template.kind === 221 /* TemplateExpression */) {\n ts.forEach(template.templateSpans, function (span) {\n args_3.push(span.expression);\n });\n }\n return args_3;\n }\n if (node.kind === 163 /* Decorator */) {\n return getEffectiveDecoratorArguments(node);\n }\n if (ts.isJsxOpeningLikeElement(node)) {\n return node.attributes.properties.length > 0 || (ts.isJsxOpeningElement(node) && node.parent.children.length > 0) ? [node.attributes] : ts.emptyArray;\n }\n var args = node.arguments || ts.emptyArray;\n var spreadIndex = getSpreadArgumentIndex(args);\n if (spreadIndex >= 0) {\n // Create synthetic arguments from spreads of tuple types.\n var effectiveArgs_1 = args.slice(0, spreadIndex);\n var _loop_23 = function (i) {\n var arg = args[i];\n // We can call checkExpressionCached because spread expressions never have a contextual type.\n var spreadType = arg.kind === 223 /* SpreadElement */ && (flowLoopCount ? checkExpression(arg.expression) : checkExpressionCached(arg.expression));\n if (spreadType && isTupleType(spreadType)) {\n ts.forEach(getTypeArguments(spreadType), function (t, i) {\n var _a;\n var flags = spreadType.target.elementFlags[i];\n var syntheticArg = createSyntheticExpression(arg, flags & 4 /* Rest */ ? createArrayType(t) : t, !!(flags & 12 /* Variable */), (_a = spreadType.target.labeledElementDeclarations) === null || _a === void 0 ? void 0 : _a[i]);\n effectiveArgs_1.push(syntheticArg);\n });\n }\n else {\n effectiveArgs_1.push(arg);\n }\n };\n for (var i = spreadIndex; i < args.length; i++) {\n _loop_23(i);\n }\n return effectiveArgs_1;\n }\n return args;\n }\n /**\n * Returns the synthetic argument list for a decorator invocation.\n */\n function getEffectiveDecoratorArguments(node) {\n var parent = node.parent;\n var expr = node.expression;\n switch (parent.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n // For a class decorator, the `target` is the type of the class (e.g. the\n // \"static\" or \"constructor\" side of the class).\n return [\n createSyntheticExpression(expr, getTypeOfSymbol(getSymbolOfNode(parent)))\n ];\n case 162 /* Parameter */:\n // A parameter declaration decorator will have three arguments (see\n // `ParameterDecorator` in core.d.ts).\n var func = parent.parent;\n return [\n createSyntheticExpression(expr, parent.parent.kind === 169 /* Constructor */ ? getTypeOfSymbol(getSymbolOfNode(func)) : errorType),\n createSyntheticExpression(expr, anyType),\n createSyntheticExpression(expr, numberType)\n ];\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // A method or accessor declaration decorator will have two or three arguments (see\n // `PropertyDecorator` and `MethodDecorator` in core.d.ts). If we are emitting decorators\n // for ES3, we will only pass two arguments.\n var hasPropDesc = parent.kind !== 165 /* PropertyDeclaration */ && languageVersion !== 0 /* ES3 */;\n return [\n createSyntheticExpression(expr, getParentTypeOfClassElement(parent)),\n createSyntheticExpression(expr, getClassElementPropertyKeyType(parent)),\n createSyntheticExpression(expr, hasPropDesc ? createTypedPropertyDescriptorType(getTypeOfNode(parent)) : anyType)\n ];\n }\n return ts.Debug.fail();\n }\n /**\n * Returns the argument count for a decorator node that works like a function invocation.\n */\n function getDecoratorArgumentCount(node, signature) {\n switch (node.parent.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return 1;\n case 165 /* PropertyDeclaration */:\n return 2;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // For ES3 or decorators with only two parameters we supply only two arguments\n return languageVersion === 0 /* ES3 */ || signature.parameters.length <= 2 ? 2 : 3;\n case 162 /* Parameter */:\n return 3;\n default:\n return ts.Debug.fail();\n }\n }\n function getDiagnosticSpanForCallNode(node, doNotIncludeArguments) {\n var start;\n var length;\n var sourceFile = ts.getSourceFileOfNode(node);\n if (ts.isPropertyAccessExpression(node.expression)) {\n var nameSpan = ts.getErrorSpanForNode(sourceFile, node.expression.name);\n start = nameSpan.start;\n length = doNotIncludeArguments ? nameSpan.length : node.end - start;\n }\n else {\n var expressionSpan = ts.getErrorSpanForNode(sourceFile, node.expression);\n start = expressionSpan.start;\n length = doNotIncludeArguments ? expressionSpan.length : node.end - start;\n }\n return { start: start, length: length, sourceFile: sourceFile };\n }\n function getDiagnosticForCallNode(node, message, arg0, arg1, arg2, arg3) {\n if (ts.isCallExpression(node)) {\n var _a = getDiagnosticSpanForCallNode(node), sourceFile = _a.sourceFile, start = _a.start, length_6 = _a.length;\n return ts.createFileDiagnostic(sourceFile, start, length_6, message, arg0, arg1, arg2, arg3);\n }\n else {\n return ts.createDiagnosticForNode(node, message, arg0, arg1, arg2, arg3);\n }\n }\n function isPromiseResolveArityError(node) {\n if (!ts.isCallExpression(node) || !ts.isIdentifier(node.expression))\n return false;\n var symbol = resolveName(node.expression, node.expression.escapedText, 111551 /* Value */, undefined, undefined, false);\n var decl = symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration;\n if (!decl || !ts.isParameter(decl) || !isFunctionExpressionOrArrowFunction(decl.parent) || !ts.isNewExpression(decl.parent.parent) || !ts.isIdentifier(decl.parent.parent.expression)) {\n return false;\n }\n var globalPromiseSymbol = getGlobalPromiseConstructorSymbol(/*reportErrors*/ false);\n if (!globalPromiseSymbol)\n return false;\n var constructorSymbol = getSymbolAtLocation(decl.parent.parent.expression, /*ignoreErrors*/ true);\n return constructorSymbol === globalPromiseSymbol;\n }\n function getArgumentArityError(node, signatures, args) {\n var _a;\n var spreadIndex = getSpreadArgumentIndex(args);\n if (spreadIndex > -1) {\n return ts.createDiagnosticForNode(args[spreadIndex], ts.Diagnostics.A_spread_argument_must_either_have_a_tuple_type_or_be_passed_to_a_rest_parameter);\n }\n var min = Number.POSITIVE_INFINITY; // smallest parameter count\n var max = Number.NEGATIVE_INFINITY; // largest parameter count\n var maxBelow = Number.NEGATIVE_INFINITY; // largest parameter count that is smaller than the number of arguments\n var minAbove = Number.POSITIVE_INFINITY; // smallest parameter count that is larger than the number of arguments\n var closestSignature;\n for (var _i = 0, signatures_8 = signatures; _i < signatures_8.length; _i++) {\n var sig = signatures_8[_i];\n var minParameter = getMinArgumentCount(sig);\n var maxParameter = getParameterCount(sig);\n // smallest/largest parameter counts\n if (minParameter < min) {\n min = minParameter;\n closestSignature = sig;\n }\n max = Math.max(max, maxParameter);\n // shortest parameter count *longer than the call*/longest parameter count *shorter than the call*\n if (minParameter < args.length && minParameter > maxBelow)\n maxBelow = minParameter;\n if (args.length < maxParameter && maxParameter < minAbove)\n minAbove = maxParameter;\n }\n var hasRestParameter = ts.some(signatures, hasEffectiveRestParameter);\n var parameterRange = hasRestParameter ? min\n : min < max ? min + \"-\" + max\n : min;\n var error = hasRestParameter ? ts.Diagnostics.Expected_at_least_0_arguments_but_got_1\n : parameterRange === 1 && args.length === 0 && isPromiseResolveArityError(node) ? ts.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise\n : ts.Diagnostics.Expected_0_arguments_but_got_1;\n if (min < args.length && args.length < max) {\n // between min and max, but with no matching overload\n return getDiagnosticForCallNode(node, ts.Diagnostics.No_overload_expects_0_arguments_but_overloads_do_exist_that_expect_either_1_or_2_arguments, args.length, maxBelow, minAbove);\n }\n else if (args.length < min) {\n // too short: put the error span on the call expression, not any of the args\n var diagnostic = getDiagnosticForCallNode(node, error, parameterRange, args.length);\n var parameter = (_a = closestSignature === null || closestSignature === void 0 ? void 0 : closestSignature.declaration) === null || _a === void 0 ? void 0 : _a.parameters[closestSignature.thisParameter ? args.length + 1 : args.length];\n if (parameter) {\n var parameterError = ts.createDiagnosticForNode(parameter, ts.isBindingPattern(parameter.name) ? ts.Diagnostics.An_argument_matching_this_binding_pattern_was_not_provided\n : ts.isRestParameter(parameter) ? ts.Diagnostics.Arguments_for_the_rest_parameter_0_were_not_provided\n : ts.Diagnostics.An_argument_for_0_was_not_provided, !parameter.name ? args.length : !ts.isBindingPattern(parameter.name) ? ts.idText(ts.getFirstIdentifier(parameter.name)) : undefined);\n return ts.addRelatedInfo(diagnostic, parameterError);\n }\n return diagnostic;\n }\n else {\n // too long; error goes on the excess parameters\n var errorSpan = ts.factory.createNodeArray(args.slice(max));\n var pos = ts.first(errorSpan).pos;\n var end = ts.last(errorSpan).end;\n if (end === pos) {\n end++;\n }\n ts.setTextRangePosEnd(errorSpan, pos, end);\n return ts.createDiagnosticForNodeArray(ts.getSourceFileOfNode(node), errorSpan, error, parameterRange, args.length);\n }\n }\n function getTypeArgumentArityError(node, signatures, typeArguments) {\n var argCount = typeArguments.length;\n // No overloads exist\n if (signatures.length === 1) {\n var sig = signatures[0];\n var min_1 = getMinTypeArgumentCount(sig.typeParameters);\n var max = ts.length(sig.typeParameters);\n return ts.createDiagnosticForNodeArray(ts.getSourceFileOfNode(node), typeArguments, ts.Diagnostics.Expected_0_type_arguments_but_got_1, min_1 < max ? min_1 + \"-\" + max : min_1, argCount);\n }\n // Overloads exist\n var belowArgCount = -Infinity;\n var aboveArgCount = Infinity;\n for (var _i = 0, signatures_9 = signatures; _i < signatures_9.length; _i++) {\n var sig = signatures_9[_i];\n var min_2 = getMinTypeArgumentCount(sig.typeParameters);\n var max = ts.length(sig.typeParameters);\n if (min_2 > argCount) {\n aboveArgCount = Math.min(aboveArgCount, min_2);\n }\n else if (max < argCount) {\n belowArgCount = Math.max(belowArgCount, max);\n }\n }\n if (belowArgCount !== -Infinity && aboveArgCount !== Infinity) {\n return ts.createDiagnosticForNodeArray(ts.getSourceFileOfNode(node), typeArguments, ts.Diagnostics.No_overload_expects_0_type_arguments_but_overloads_do_exist_that_expect_either_1_or_2_type_arguments, argCount, belowArgCount, aboveArgCount);\n }\n return ts.createDiagnosticForNodeArray(ts.getSourceFileOfNode(node), typeArguments, ts.Diagnostics.Expected_0_type_arguments_but_got_1, belowArgCount === -Infinity ? aboveArgCount : belowArgCount, argCount);\n }\n function resolveCall(node, signatures, candidatesOutArray, checkMode, callChainFlags, fallbackError) {\n var isTaggedTemplate = node.kind === 208 /* TaggedTemplateExpression */;\n var isDecorator = node.kind === 163 /* Decorator */;\n var isJsxOpeningOrSelfClosingElement = ts.isJsxOpeningLikeElement(node);\n var reportErrors = !candidatesOutArray && produceDiagnostics;\n var typeArguments;\n if (!isDecorator) {\n typeArguments = node.typeArguments;\n // We already perform checking on the type arguments on the class declaration itself.\n if (isTaggedTemplate || isJsxOpeningOrSelfClosingElement || node.expression.kind !== 106 /* SuperKeyword */) {\n ts.forEach(typeArguments, checkSourceElement);\n }\n }\n var candidates = candidatesOutArray || [];\n // reorderCandidates fills up the candidates array directly\n reorderCandidates(signatures, candidates, callChainFlags);\n if (!candidates.length) {\n if (reportErrors) {\n diagnostics.add(getDiagnosticForCallNode(node, ts.Diagnostics.Call_target_does_not_contain_any_signatures));\n }\n return resolveErrorCall(node);\n }\n var args = getEffectiveCallArguments(node);\n // The excludeArgument array contains true for each context sensitive argument (an argument\n // is context sensitive it is susceptible to a one-time permanent contextual typing).\n //\n // The idea is that we will perform type argument inference & assignability checking once\n // without using the susceptible parameters that are functions, and once more for those\n // parameters, contextually typing each as we go along.\n //\n // For a tagged template, then the first argument be 'undefined' if necessary because it\n // represents a TemplateStringsArray.\n //\n // For a decorator, no arguments are susceptible to contextual typing due to the fact\n // decorators are applied to a declaration by the emitter, and not to an expression.\n var isSingleNonGenericCandidate = candidates.length === 1 && !candidates[0].typeParameters;\n var argCheckMode = !isDecorator && !isSingleNonGenericCandidate && ts.some(args, isContextSensitive) ? 4 /* SkipContextSensitive */ : 0 /* Normal */;\n // The following variables are captured and modified by calls to chooseOverload.\n // If overload resolution or type argument inference fails, we want to report the\n // best error possible. The best error is one which says that an argument was not\n // assignable to a parameter. This implies that everything else about the overload\n // was fine. So if there is any overload that is only incorrect because of an\n // argument, we will report an error on that one.\n //\n // function foo(s: string): void;\n // function foo(n: number): void; // Report argument error on this overload\n // function foo(): void;\n // foo(true);\n //\n // If none of the overloads even made it that far, there are two possibilities.\n // There was a problem with type arguments for some overload, in which case\n // report an error on that. Or none of the overloads even had correct arity,\n // in which case give an arity error.\n //\n // function foo(x: T): void; // Report type argument error\n // function foo(): void;\n // foo(0);\n //\n var candidatesForArgumentError;\n var candidateForArgumentArityError;\n var candidateForTypeArgumentError;\n var result;\n // If we are in signature help, a trailing comma indicates that we intend to provide another argument,\n // so we will only accept overloads with arity at least 1 higher than the current number of provided arguments.\n var signatureHelpTrailingComma = !!(checkMode & 16 /* IsForSignatureHelp */) && node.kind === 206 /* CallExpression */ && node.arguments.hasTrailingComma;\n // Section 4.12.1:\n // if the candidate list contains one or more signatures for which the type of each argument\n // expression is a subtype of each corresponding parameter type, the return type of the first\n // of those signatures becomes the return type of the function call.\n // Otherwise, the return type of the first signature in the candidate list becomes the return\n // type of the function call.\n //\n // Whether the call is an error is determined by assignability of the arguments. The subtype pass\n // is just important for choosing the best signature. So in the case where there is only one\n // signature, the subtype pass is useless. So skipping it is an optimization.\n if (candidates.length > 1) {\n result = chooseOverload(candidates, subtypeRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);\n }\n if (!result) {\n result = chooseOverload(candidates, assignableRelation, isSingleNonGenericCandidate, signatureHelpTrailingComma);\n }\n if (result) {\n return result;\n }\n // No signatures were applicable. Now report errors based on the last applicable signature with\n // no arguments excluded from assignability checks.\n // If candidate is undefined, it means that no candidates had a suitable arity. In that case,\n // skip the checkApplicableSignature check.\n if (reportErrors) {\n if (candidatesForArgumentError) {\n if (candidatesForArgumentError.length === 1 || candidatesForArgumentError.length > 3) {\n var last_2 = candidatesForArgumentError[candidatesForArgumentError.length - 1];\n var chain_1;\n if (candidatesForArgumentError.length > 3) {\n chain_1 = ts.chainDiagnosticMessages(chain_1, ts.Diagnostics.The_last_overload_gave_the_following_error);\n chain_1 = ts.chainDiagnosticMessages(chain_1, ts.Diagnostics.No_overload_matches_this_call);\n }\n var diags = getSignatureApplicabilityError(node, args, last_2, assignableRelation, 0 /* Normal */, /*reportErrors*/ true, function () { return chain_1; });\n if (diags) {\n for (var _i = 0, diags_1 = diags; _i < diags_1.length; _i++) {\n var d = diags_1[_i];\n if (last_2.declaration && candidatesForArgumentError.length > 3) {\n ts.addRelatedInfo(d, ts.createDiagnosticForNode(last_2.declaration, ts.Diagnostics.The_last_overload_is_declared_here));\n }\n addImplementationSuccessElaboration(last_2, d);\n diagnostics.add(d);\n }\n }\n else {\n ts.Debug.fail(\"No error for last overload signature\");\n }\n }\n else {\n var allDiagnostics = [];\n var max = 0;\n var min_3 = Number.MAX_VALUE;\n var minIndex = 0;\n var i_1 = 0;\n var _loop_24 = function (c) {\n var chain_2 = function () { return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Overload_0_of_1_2_gave_the_following_error, i_1 + 1, candidates.length, signatureToString(c)); };\n var diags_2 = getSignatureApplicabilityError(node, args, c, assignableRelation, 0 /* Normal */, /*reportErrors*/ true, chain_2);\n if (diags_2) {\n if (diags_2.length <= min_3) {\n min_3 = diags_2.length;\n minIndex = i_1;\n }\n max = Math.max(max, diags_2.length);\n allDiagnostics.push(diags_2);\n }\n else {\n ts.Debug.fail(\"No error for 3 or fewer overload signatures\");\n }\n i_1++;\n };\n for (var _a = 0, candidatesForArgumentError_1 = candidatesForArgumentError; _a < candidatesForArgumentError_1.length; _a++) {\n var c = candidatesForArgumentError_1[_a];\n _loop_24(c);\n }\n var diags_3 = max > 1 ? allDiagnostics[minIndex] : ts.flatten(allDiagnostics);\n ts.Debug.assert(diags_3.length > 0, \"No errors reported for 3 or fewer overload signatures\");\n var chain = ts.chainDiagnosticMessages(ts.map(diags_3, function (d) { return typeof d.messageText === \"string\" ? d : d.messageText; }), ts.Diagnostics.No_overload_matches_this_call);\n // The below is a spread to guarantee we get a new (mutable) array - our `flatMap` helper tries to do \"smart\" optimizations where it reuses input\n // arrays and the emptyArray singleton where possible, which is decidedly not what we want while we're still constructing this diagnostic\n var related = __spreadArray([], ts.flatMap(diags_3, function (d) { return d.relatedInformation; }), true);\n var diag = void 0;\n if (ts.every(diags_3, function (d) { return d.start === diags_3[0].start && d.length === diags_3[0].length && d.file === diags_3[0].file; })) {\n var _b = diags_3[0], file = _b.file, start = _b.start, length_7 = _b.length;\n diag = { file: file, start: start, length: length_7, code: chain.code, category: chain.category, messageText: chain, relatedInformation: related };\n }\n else {\n diag = ts.createDiagnosticForNodeFromMessageChain(node, chain, related);\n }\n addImplementationSuccessElaboration(candidatesForArgumentError[0], diag);\n diagnostics.add(diag);\n }\n }\n else if (candidateForArgumentArityError) {\n diagnostics.add(getArgumentArityError(node, [candidateForArgumentArityError], args));\n }\n else if (candidateForTypeArgumentError) {\n checkTypeArguments(candidateForTypeArgumentError, node.typeArguments, /*reportErrors*/ true, fallbackError);\n }\n else {\n var signaturesWithCorrectTypeArgumentArity = ts.filter(signatures, function (s) { return hasCorrectTypeArgumentArity(s, typeArguments); });\n if (signaturesWithCorrectTypeArgumentArity.length === 0) {\n diagnostics.add(getTypeArgumentArityError(node, signatures, typeArguments));\n }\n else if (!isDecorator) {\n diagnostics.add(getArgumentArityError(node, signaturesWithCorrectTypeArgumentArity, args));\n }\n else if (fallbackError) {\n diagnostics.add(getDiagnosticForCallNode(node, fallbackError));\n }\n }\n }\n return getCandidateForOverloadFailure(node, candidates, args, !!candidatesOutArray);\n function addImplementationSuccessElaboration(failed, diagnostic) {\n var _a, _b;\n var oldCandidatesForArgumentError = candidatesForArgumentError;\n var oldCandidateForArgumentArityError = candidateForArgumentArityError;\n var oldCandidateForTypeArgumentError = candidateForTypeArgumentError;\n var failedSignatureDeclarations = ((_b = (_a = failed.declaration) === null || _a === void 0 ? void 0 : _a.symbol) === null || _b === void 0 ? void 0 : _b.declarations) || ts.emptyArray;\n var isOverload = failedSignatureDeclarations.length > 1;\n var implDecl = isOverload ? ts.find(failedSignatureDeclarations, function (d) { return ts.isFunctionLikeDeclaration(d) && ts.nodeIsPresent(d.body); }) : undefined;\n if (implDecl) {\n var candidate = getSignatureFromDeclaration(implDecl);\n var isSingleNonGenericCandidate_1 = !candidate.typeParameters;\n if (chooseOverload([candidate], assignableRelation, isSingleNonGenericCandidate_1)) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(implDecl, ts.Diagnostics.The_call_would_have_succeeded_against_this_implementation_but_implementation_signatures_of_overloads_are_not_externally_visible));\n }\n }\n candidatesForArgumentError = oldCandidatesForArgumentError;\n candidateForArgumentArityError = oldCandidateForArgumentArityError;\n candidateForTypeArgumentError = oldCandidateForTypeArgumentError;\n }\n function chooseOverload(candidates, relation, isSingleNonGenericCandidate, signatureHelpTrailingComma) {\n if (signatureHelpTrailingComma === void 0) { signatureHelpTrailingComma = false; }\n candidatesForArgumentError = undefined;\n candidateForArgumentArityError = undefined;\n candidateForTypeArgumentError = undefined;\n if (isSingleNonGenericCandidate) {\n var candidate = candidates[0];\n if (ts.some(typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma)) {\n return undefined;\n }\n if (getSignatureApplicabilityError(node, args, candidate, relation, 0 /* Normal */, /*reportErrors*/ false, /*containingMessageChain*/ undefined)) {\n candidatesForArgumentError = [candidate];\n return undefined;\n }\n return candidate;\n }\n for (var candidateIndex = 0; candidateIndex < candidates.length; candidateIndex++) {\n var candidate = candidates[candidateIndex];\n if (!hasCorrectTypeArgumentArity(candidate, typeArguments) || !hasCorrectArity(node, args, candidate, signatureHelpTrailingComma)) {\n continue;\n }\n var checkCandidate = void 0;\n var inferenceContext = void 0;\n if (candidate.typeParameters) {\n var typeArgumentTypes = void 0;\n if (ts.some(typeArguments)) {\n typeArgumentTypes = checkTypeArguments(candidate, typeArguments, /*reportErrors*/ false);\n if (!typeArgumentTypes) {\n candidateForTypeArgumentError = candidate;\n continue;\n }\n }\n else {\n inferenceContext = createInferenceContext(candidate.typeParameters, candidate, /*flags*/ ts.isInJSFile(node) ? 2 /* AnyDefault */ : 0 /* None */);\n typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode | 8 /* SkipGenericFunctions */, inferenceContext);\n argCheckMode |= inferenceContext.flags & 4 /* SkippedGenericFunction */ ? 8 /* SkipGenericFunctions */ : 0 /* Normal */;\n }\n checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, ts.isInJSFile(candidate.declaration), inferenceContext && inferenceContext.inferredTypeParameters);\n // If the original signature has a generic rest type, instantiation may produce a\n // signature with different arity and we need to perform another arity check.\n if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma)) {\n candidateForArgumentArityError = checkCandidate;\n continue;\n }\n }\n else {\n checkCandidate = candidate;\n }\n if (getSignatureApplicabilityError(node, args, checkCandidate, relation, argCheckMode, /*reportErrors*/ false, /*containingMessageChain*/ undefined)) {\n // Give preference to error candidates that have no rest parameters (as they are more specific)\n (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate);\n continue;\n }\n if (argCheckMode) {\n // If one or more context sensitive arguments were excluded, we start including\n // them now (and keeping do so for any subsequent candidates) and perform a second\n // round of type inference and applicability checking for this particular candidate.\n argCheckMode = 0 /* Normal */;\n if (inferenceContext) {\n var typeArgumentTypes = inferTypeArguments(node, candidate, args, argCheckMode, inferenceContext);\n checkCandidate = getSignatureInstantiation(candidate, typeArgumentTypes, ts.isInJSFile(candidate.declaration), inferenceContext && inferenceContext.inferredTypeParameters);\n // If the original signature has a generic rest type, instantiation may produce a\n // signature with different arity and we need to perform another arity check.\n if (getNonArrayRestType(candidate) && !hasCorrectArity(node, args, checkCandidate, signatureHelpTrailingComma)) {\n candidateForArgumentArityError = checkCandidate;\n continue;\n }\n }\n if (getSignatureApplicabilityError(node, args, checkCandidate, relation, argCheckMode, /*reportErrors*/ false, /*containingMessageChain*/ undefined)) {\n // Give preference to error candidates that have no rest parameters (as they are more specific)\n (candidatesForArgumentError || (candidatesForArgumentError = [])).push(checkCandidate);\n continue;\n }\n }\n candidates[candidateIndex] = checkCandidate;\n return checkCandidate;\n }\n return undefined;\n }\n }\n // No signature was applicable. We have already reported the errors for the invalid signature.\n function getCandidateForOverloadFailure(node, candidates, args, hasCandidatesOutArray) {\n ts.Debug.assert(candidates.length > 0); // Else should not have called this.\n checkNodeDeferred(node);\n // Normally we will combine overloads. Skip this if they have type parameters since that's hard to combine.\n // Don't do this if there is a `candidatesOutArray`,\n // because then we want the chosen best candidate to be one of the overloads, not a combination.\n return hasCandidatesOutArray || candidates.length === 1 || candidates.some(function (c) { return !!c.typeParameters; })\n ? pickLongestCandidateSignature(node, candidates, args)\n : createUnionOfSignaturesForOverloadFailure(candidates);\n }\n function createUnionOfSignaturesForOverloadFailure(candidates) {\n var thisParameters = ts.mapDefined(candidates, function (c) { return c.thisParameter; });\n var thisParameter;\n if (thisParameters.length) {\n thisParameter = createCombinedSymbolFromTypes(thisParameters, thisParameters.map(getTypeOfParameter));\n }\n var _a = ts.minAndMax(candidates, getNumNonRestParameters), minArgumentCount = _a.min, maxNonRestParam = _a.max;\n var parameters = [];\n var _loop_25 = function (i) {\n var symbols = ts.mapDefined(candidates, function (s) { return signatureHasRestParameter(s) ?\n i < s.parameters.length - 1 ? s.parameters[i] : ts.last(s.parameters) :\n i < s.parameters.length ? s.parameters[i] : undefined; });\n ts.Debug.assert(symbols.length !== 0);\n parameters.push(createCombinedSymbolFromTypes(symbols, ts.mapDefined(candidates, function (candidate) { return tryGetTypeAtPosition(candidate, i); })));\n };\n for (var i = 0; i < maxNonRestParam; i++) {\n _loop_25(i);\n }\n var restParameterSymbols = ts.mapDefined(candidates, function (c) { return signatureHasRestParameter(c) ? ts.last(c.parameters) : undefined; });\n var flags = 0 /* None */;\n if (restParameterSymbols.length !== 0) {\n var type = createArrayType(getUnionType(ts.mapDefined(candidates, tryGetRestTypeOfSignature), 2 /* Subtype */));\n parameters.push(createCombinedSymbolForOverloadFailure(restParameterSymbols, type));\n flags |= 1 /* HasRestParameter */;\n }\n if (candidates.some(signatureHasLiteralTypes)) {\n flags |= 2 /* HasLiteralTypes */;\n }\n return createSignature(candidates[0].declaration, \n /*typeParameters*/ undefined, // Before calling this we tested for `!candidates.some(c => !!c.typeParameters)`.\n thisParameter, parameters, \n /*resolvedReturnType*/ getIntersectionType(candidates.map(getReturnTypeOfSignature)), \n /*typePredicate*/ undefined, minArgumentCount, flags);\n }\n function getNumNonRestParameters(signature) {\n var numParams = signature.parameters.length;\n return signatureHasRestParameter(signature) ? numParams - 1 : numParams;\n }\n function createCombinedSymbolFromTypes(sources, types) {\n return createCombinedSymbolForOverloadFailure(sources, getUnionType(types, 2 /* Subtype */));\n }\n function createCombinedSymbolForOverloadFailure(sources, type) {\n // This function is currently only used for erroneous overloads, so it's good enough to just use the first source.\n return createSymbolWithType(ts.first(sources), type);\n }\n function pickLongestCandidateSignature(node, candidates, args) {\n // Pick the longest signature. This way we can get a contextual type for cases like:\n // declare function f(a: { xa: number; xb: number; }, b: number);\n // f({ |\n // Also, use explicitly-supplied type arguments if they are provided, so we can get a contextual signature in cases like:\n // declare function f(k: keyof T);\n // f(\"\n var bestIndex = getLongestCandidateIndex(candidates, apparentArgumentCount === undefined ? args.length : apparentArgumentCount);\n var candidate = candidates[bestIndex];\n var typeParameters = candidate.typeParameters;\n if (!typeParameters) {\n return candidate;\n }\n var typeArgumentNodes = callLikeExpressionMayHaveTypeArguments(node) ? node.typeArguments : undefined;\n var instantiated = typeArgumentNodes\n ? createSignatureInstantiation(candidate, getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, ts.isInJSFile(node)))\n : inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args);\n candidates[bestIndex] = instantiated;\n return instantiated;\n }\n function getTypeArgumentsFromNodes(typeArgumentNodes, typeParameters, isJs) {\n var typeArguments = typeArgumentNodes.map(getTypeOfNode);\n while (typeArguments.length > typeParameters.length) {\n typeArguments.pop();\n }\n while (typeArguments.length < typeParameters.length) {\n typeArguments.push(getConstraintOfTypeParameter(typeParameters[typeArguments.length]) || getDefaultTypeArgumentType(isJs));\n }\n return typeArguments;\n }\n function inferSignatureInstantiationForOverloadFailure(node, typeParameters, candidate, args) {\n var inferenceContext = createInferenceContext(typeParameters, candidate, /*flags*/ ts.isInJSFile(node) ? 2 /* AnyDefault */ : 0 /* None */);\n var typeArgumentTypes = inferTypeArguments(node, candidate, args, 4 /* SkipContextSensitive */ | 8 /* SkipGenericFunctions */, inferenceContext);\n return createSignatureInstantiation(candidate, typeArgumentTypes);\n }\n function getLongestCandidateIndex(candidates, argsCount) {\n var maxParamsIndex = -1;\n var maxParams = -1;\n for (var i = 0; i < candidates.length; i++) {\n var candidate = candidates[i];\n var paramCount = getParameterCount(candidate);\n if (hasEffectiveRestParameter(candidate) || paramCount >= argsCount) {\n return i;\n }\n if (paramCount > maxParams) {\n maxParams = paramCount;\n maxParamsIndex = i;\n }\n }\n return maxParamsIndex;\n }\n function resolveCallExpression(node, candidatesOutArray, checkMode) {\n if (node.expression.kind === 106 /* SuperKeyword */) {\n var superType = checkSuperExpression(node.expression);\n if (isTypeAny(superType)) {\n for (var _i = 0, _a = node.arguments; _i < _a.length; _i++) {\n var arg = _a[_i];\n checkExpression(arg); // Still visit arguments so they get marked for visibility, etc\n }\n return anySignature;\n }\n if (superType !== errorType) {\n // In super call, the candidate signatures are the matching arity signatures of the base constructor function instantiated\n // with the type arguments specified in the extends clause.\n var baseTypeNode = ts.getEffectiveBaseTypeNode(ts.getContainingClass(node));\n if (baseTypeNode) {\n var baseConstructors = getInstantiatedConstructorsForTypeArguments(superType, baseTypeNode.typeArguments, baseTypeNode);\n return resolveCall(node, baseConstructors, candidatesOutArray, checkMode, 0 /* None */);\n }\n }\n return resolveUntypedCall(node);\n }\n var callChainFlags;\n var funcType = checkExpression(node.expression);\n if (ts.isCallChain(node)) {\n var nonOptionalType = getOptionalExpressionType(funcType, node.expression);\n callChainFlags = nonOptionalType === funcType ? 0 /* None */ :\n ts.isOutermostOptionalChain(node) ? 16 /* IsOuterCallChain */ :\n 8 /* IsInnerCallChain */;\n funcType = nonOptionalType;\n }\n else {\n callChainFlags = 0 /* None */;\n }\n funcType = checkNonNullTypeWithReporter(funcType, node.expression, reportCannotInvokePossiblyNullOrUndefinedError);\n if (funcType === silentNeverType) {\n return silentNeverSignature;\n }\n var apparentType = getApparentType(funcType);\n if (apparentType === errorType) {\n // Another error has already been reported\n return resolveErrorCall(node);\n }\n // Technically, this signatures list may be incomplete. We are taking the apparent type,\n // but we are not including call signatures that may have been added to the Object or\n // Function interface, since they have none by default. This is a bit of a leap of faith\n // that the user will not add any.\n var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);\n var numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length;\n // TS 1.0 Spec: 4.12\n // In an untyped function call no TypeArgs are permitted, Args can be any argument list, no contextual\n // types are provided for the argument expressions, and the result is always of type Any.\n if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) {\n // The unknownType indicates that an error already occurred (and was reported). No\n // need to report another error in this case.\n if (funcType !== errorType && node.typeArguments) {\n error(node, ts.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments);\n }\n return resolveUntypedCall(node);\n }\n // If FuncExpr's apparent type(section 3.8.1) is a function type, the call is a typed function call.\n // TypeScript employs overload resolution in typed function calls in order to support functions\n // with multiple call signatures.\n if (!callSignatures.length) {\n if (numConstructSignatures) {\n error(node, ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType));\n }\n else {\n var relatedInformation = void 0;\n if (node.arguments.length === 1) {\n var text = ts.getSourceFileOfNode(node).text;\n if (ts.isLineBreak(text.charCodeAt(ts.skipTrivia(text, node.expression.end, /* stopAfterLineBreak */ true) - 1))) {\n relatedInformation = ts.createDiagnosticForNode(node.expression, ts.Diagnostics.Are_you_missing_a_semicolon);\n }\n }\n invocationError(node.expression, apparentType, 0 /* Call */, relatedInformation);\n }\n return resolveErrorCall(node);\n }\n // When a call to a generic function is an argument to an outer call to a generic function for which\n // inference is in process, we have a choice to make. If the inner call relies on inferences made from\n // its contextual type to its return type, deferring the inner call processing allows the best possible\n // contextual type to accumulate. But if the outer call relies on inferences made from the return type of\n // the inner call, the inner call should be processed early. There's no sure way to know which choice is\n // right (only a full unification algorithm can determine that), so we resort to the following heuristic:\n // If no type arguments are specified in the inner call and at least one call signature is generic and\n // returns a function type, we choose to defer processing. This narrowly permits function composition\n // operators to flow inferences through return types, but otherwise processes calls right away. We\n // use the resolvingSignature singleton to indicate that we deferred processing. This result will be\n // propagated out and eventually turned into nonInferrableType (a type that is assignable to anything and\n // from which we never make inferences).\n if (checkMode & 8 /* SkipGenericFunctions */ && !node.typeArguments && callSignatures.some(isGenericFunctionReturningFunction)) {\n skippedGenericFunction(node, checkMode);\n return resolvingSignature;\n }\n // If the function is explicitly marked with `@class`, then it must be constructed.\n if (callSignatures.some(function (sig) { return ts.isInJSFile(sig.declaration) && !!ts.getJSDocClassTag(sig.declaration); })) {\n error(node, ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new, typeToString(funcType));\n return resolveErrorCall(node);\n }\n return resolveCall(node, callSignatures, candidatesOutArray, checkMode, callChainFlags);\n }\n function isGenericFunctionReturningFunction(signature) {\n return !!(signature.typeParameters && isFunctionType(getReturnTypeOfSignature(signature)));\n }\n /**\n * TS 1.0 spec: 4.12\n * If FuncExpr is of type Any, or of an object type that has no call or construct signatures\n * but is a subtype of the Function interface, the call is an untyped function call.\n */\n function isUntypedFunctionCall(funcType, apparentFuncType, numCallSignatures, numConstructSignatures) {\n // We exclude union types because we may have a union of function types that happen to have no common signatures.\n return isTypeAny(funcType) || isTypeAny(apparentFuncType) && !!(funcType.flags & 262144 /* TypeParameter */) ||\n !numCallSignatures && !numConstructSignatures && !(apparentFuncType.flags & 1048576 /* Union */) && !(getReducedType(apparentFuncType).flags & 131072 /* Never */) && isTypeAssignableTo(funcType, globalFunctionType);\n }\n function resolveNewExpression(node, candidatesOutArray, checkMode) {\n if (node.arguments && languageVersion < 1 /* ES5 */) {\n var spreadIndex = getSpreadArgumentIndex(node.arguments);\n if (spreadIndex >= 0) {\n error(node.arguments[spreadIndex], ts.Diagnostics.Spread_operator_in_new_expressions_is_only_available_when_targeting_ECMAScript_5_and_higher);\n }\n }\n var expressionType = checkNonNullExpression(node.expression);\n if (expressionType === silentNeverType) {\n return silentNeverSignature;\n }\n // If expressionType's apparent type(section 3.8.1) is an object type with one or\n // more construct signatures, the expression is processed in the same manner as a\n // function call, but using the construct signatures as the initial set of candidate\n // signatures for overload resolution. The result type of the function call becomes\n // the result type of the operation.\n expressionType = getApparentType(expressionType);\n if (expressionType === errorType) {\n // Another error has already been reported\n return resolveErrorCall(node);\n }\n // TS 1.0 spec: 4.11\n // If expressionType is of type Any, Args can be any argument\n // list and the result of the operation is of type Any.\n if (isTypeAny(expressionType)) {\n if (node.typeArguments) {\n error(node, ts.Diagnostics.Untyped_function_calls_may_not_accept_type_arguments);\n }\n return resolveUntypedCall(node);\n }\n // Technically, this signatures list may be incomplete. We are taking the apparent type,\n // but we are not including construct signatures that may have been added to the Object or\n // Function interface, since they have none by default. This is a bit of a leap of faith\n // that the user will not add any.\n var constructSignatures = getSignaturesOfType(expressionType, 1 /* Construct */);\n if (constructSignatures.length) {\n if (!isConstructorAccessible(node, constructSignatures[0])) {\n return resolveErrorCall(node);\n }\n // If the expression is a class of abstract type, or an abstract construct signature,\n // then it cannot be instantiated.\n // In the case of a merged class-module or class-interface declaration,\n // only the class declaration node will have the Abstract flag set.\n if (constructSignatures.some(function (signature) { return signature.flags & 4 /* Abstract */; })) {\n error(node, ts.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);\n return resolveErrorCall(node);\n }\n var valueDecl = expressionType.symbol && ts.getClassLikeDeclarationOfSymbol(expressionType.symbol);\n if (valueDecl && ts.hasSyntacticModifier(valueDecl, 128 /* Abstract */)) {\n error(node, ts.Diagnostics.Cannot_create_an_instance_of_an_abstract_class);\n return resolveErrorCall(node);\n }\n return resolveCall(node, constructSignatures, candidatesOutArray, checkMode, 0 /* None */);\n }\n // If expressionType's apparent type is an object type with no construct signatures but\n // one or more call signatures, the expression is processed as a function call. A compile-time\n // error occurs if the result of the function call is not Void. The type of the result of the\n // operation is Any. It is an error to have a Void this type.\n var callSignatures = getSignaturesOfType(expressionType, 0 /* Call */);\n if (callSignatures.length) {\n var signature = resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */);\n if (!noImplicitAny) {\n if (signature.declaration && !isJSConstructor(signature.declaration) && getReturnTypeOfSignature(signature) !== voidType) {\n error(node, ts.Diagnostics.Only_a_void_function_can_be_called_with_the_new_keyword);\n }\n if (getThisTypeOfSignature(signature) === voidType) {\n error(node, ts.Diagnostics.A_function_that_is_called_with_the_new_keyword_cannot_have_a_this_type_that_is_void);\n }\n }\n return signature;\n }\n invocationError(node.expression, expressionType, 1 /* Construct */);\n return resolveErrorCall(node);\n }\n function typeHasProtectedAccessibleBase(target, type) {\n var baseTypes = getBaseTypes(type);\n if (!ts.length(baseTypes)) {\n return false;\n }\n var firstBase = baseTypes[0];\n if (firstBase.flags & 2097152 /* Intersection */) {\n var types = firstBase.types;\n var mixinFlags = findMixins(types);\n var i = 0;\n for (var _i = 0, _a = firstBase.types; _i < _a.length; _i++) {\n var intersectionMember = _a[_i];\n // We want to ignore mixin ctors\n if (!mixinFlags[i]) {\n if (ts.getObjectFlags(intersectionMember) & (1 /* Class */ | 2 /* Interface */)) {\n if (intersectionMember.symbol === target) {\n return true;\n }\n if (typeHasProtectedAccessibleBase(target, intersectionMember)) {\n return true;\n }\n }\n }\n i++;\n }\n return false;\n }\n if (firstBase.symbol === target) {\n return true;\n }\n return typeHasProtectedAccessibleBase(target, firstBase);\n }\n function isConstructorAccessible(node, signature) {\n if (!signature || !signature.declaration) {\n return true;\n }\n var declaration = signature.declaration;\n var modifiers = ts.getSelectedEffectiveModifierFlags(declaration, 24 /* NonPublicAccessibilityModifier */);\n // (1) Public constructors and (2) constructor functions are always accessible.\n if (!modifiers || declaration.kind !== 169 /* Constructor */) {\n return true;\n }\n var declaringClassDeclaration = ts.getClassLikeDeclarationOfSymbol(declaration.parent.symbol);\n var declaringClass = getDeclaredTypeOfSymbol(declaration.parent.symbol);\n // A private or protected constructor can only be instantiated within its own class (or a subclass, for protected)\n if (!isNodeWithinClass(node, declaringClassDeclaration)) {\n var containingClass = ts.getContainingClass(node);\n if (containingClass && modifiers & 16 /* Protected */) {\n var containingType = getTypeOfNode(containingClass);\n if (typeHasProtectedAccessibleBase(declaration.parent.symbol, containingType)) {\n return true;\n }\n }\n if (modifiers & 8 /* Private */) {\n error(node, ts.Diagnostics.Constructor_of_class_0_is_private_and_only_accessible_within_the_class_declaration, typeToString(declaringClass));\n }\n if (modifiers & 16 /* Protected */) {\n error(node, ts.Diagnostics.Constructor_of_class_0_is_protected_and_only_accessible_within_the_class_declaration, typeToString(declaringClass));\n }\n return false;\n }\n return true;\n }\n function invocationErrorDetails(errorTarget, apparentType, kind) {\n var errorInfo;\n var isCall = kind === 0 /* Call */;\n var awaitedType = getAwaitedType(apparentType);\n var maybeMissingAwait = awaitedType && getSignaturesOfType(awaitedType, kind).length > 0;\n if (apparentType.flags & 1048576 /* Union */) {\n var types = apparentType.types;\n var hasSignatures = false;\n for (var _i = 0, types_20 = types; _i < types_20.length; _i++) {\n var constituent = types_20[_i];\n var signatures = getSignaturesOfType(constituent, kind);\n if (signatures.length !== 0) {\n hasSignatures = true;\n if (errorInfo) {\n // Bail early if we already have an error, no chance of \"No constituent of type is callable\"\n break;\n }\n }\n else {\n // Error on the first non callable constituent only\n if (!errorInfo) {\n errorInfo = ts.chainDiagnosticMessages(errorInfo, isCall ?\n ts.Diagnostics.Type_0_has_no_call_signatures :\n ts.Diagnostics.Type_0_has_no_construct_signatures, typeToString(constituent));\n errorInfo = ts.chainDiagnosticMessages(errorInfo, isCall ?\n ts.Diagnostics.Not_all_constituents_of_type_0_are_callable :\n ts.Diagnostics.Not_all_constituents_of_type_0_are_constructable, typeToString(apparentType));\n }\n if (hasSignatures) {\n // Bail early if we already found a siganture, no chance of \"No constituent of type is callable\"\n break;\n }\n }\n }\n if (!hasSignatures) {\n errorInfo = ts.chainDiagnosticMessages(\n /* detials */ undefined, isCall ?\n ts.Diagnostics.No_constituent_of_type_0_is_callable :\n ts.Diagnostics.No_constituent_of_type_0_is_constructable, typeToString(apparentType));\n }\n if (!errorInfo) {\n errorInfo = ts.chainDiagnosticMessages(errorInfo, isCall ?\n ts.Diagnostics.Each_member_of_the_union_type_0_has_signatures_but_none_of_those_signatures_are_compatible_with_each_other :\n ts.Diagnostics.Each_member_of_the_union_type_0_has_construct_signatures_but_none_of_those_signatures_are_compatible_with_each_other, typeToString(apparentType));\n }\n }\n else {\n errorInfo = ts.chainDiagnosticMessages(errorInfo, isCall ?\n ts.Diagnostics.Type_0_has_no_call_signatures :\n ts.Diagnostics.Type_0_has_no_construct_signatures, typeToString(apparentType));\n }\n var headMessage = isCall ? ts.Diagnostics.This_expression_is_not_callable : ts.Diagnostics.This_expression_is_not_constructable;\n // Diagnose get accessors incorrectly called as functions\n if (ts.isCallExpression(errorTarget.parent) && errorTarget.parent.arguments.length === 0) {\n var resolvedSymbol = getNodeLinks(errorTarget).resolvedSymbol;\n if (resolvedSymbol && resolvedSymbol.flags & 32768 /* GetAccessor */) {\n headMessage = ts.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without;\n }\n }\n return {\n messageChain: ts.chainDiagnosticMessages(errorInfo, headMessage),\n relatedMessage: maybeMissingAwait ? ts.Diagnostics.Did_you_forget_to_use_await : undefined,\n };\n }\n function invocationError(errorTarget, apparentType, kind, relatedInformation) {\n var _a = invocationErrorDetails(errorTarget, apparentType, kind), messageChain = _a.messageChain, relatedInfo = _a.relatedMessage;\n var diagnostic = ts.createDiagnosticForNodeFromMessageChain(errorTarget, messageChain);\n if (relatedInfo) {\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(errorTarget, relatedInfo));\n }\n if (ts.isCallExpression(errorTarget.parent)) {\n var _b = getDiagnosticSpanForCallNode(errorTarget.parent, /* doNotIncludeArguments */ true), start = _b.start, length_8 = _b.length;\n diagnostic.start = start;\n diagnostic.length = length_8;\n }\n diagnostics.add(diagnostic);\n invocationErrorRecovery(apparentType, kind, relatedInformation ? ts.addRelatedInfo(diagnostic, relatedInformation) : diagnostic);\n }\n function invocationErrorRecovery(apparentType, kind, diagnostic) {\n if (!apparentType.symbol) {\n return;\n }\n var importNode = getSymbolLinks(apparentType.symbol).originatingImport;\n // Create a diagnostic on the originating import if possible onto which we can attach a quickfix\n // An import call expression cannot be rewritten into another form to correct the error - the only solution is to use `.default` at the use-site\n if (importNode && !ts.isImportCall(importNode)) {\n var sigs = getSignaturesOfType(getTypeOfSymbol(getSymbolLinks(apparentType.symbol).target), kind);\n if (!sigs || !sigs.length)\n return;\n ts.addRelatedInfo(diagnostic, ts.createDiagnosticForNode(importNode, ts.Diagnostics.Type_originates_at_this_import_A_namespace_style_import_cannot_be_called_or_constructed_and_will_cause_a_failure_at_runtime_Consider_using_a_default_import_or_import_require_here_instead));\n }\n }\n function resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode) {\n var tagType = checkExpression(node.tag);\n var apparentType = getApparentType(tagType);\n if (apparentType === errorType) {\n // Another error has already been reported\n return resolveErrorCall(node);\n }\n var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);\n var numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length;\n if (isUntypedFunctionCall(tagType, apparentType, callSignatures.length, numConstructSignatures)) {\n return resolveUntypedCall(node);\n }\n if (!callSignatures.length) {\n if (ts.isArrayLiteralExpression(node.parent)) {\n var diagnostic = ts.createDiagnosticForNode(node.tag, ts.Diagnostics.It_is_likely_that_you_are_missing_a_comma_to_separate_these_two_template_expressions_They_form_a_tagged_template_expression_which_cannot_be_invoked);\n diagnostics.add(diagnostic);\n return resolveErrorCall(node);\n }\n invocationError(node.tag, apparentType, 0 /* Call */);\n return resolveErrorCall(node);\n }\n return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */);\n }\n /**\n * Gets the localized diagnostic head message to use for errors when resolving a decorator as a call expression.\n */\n function getDiagnosticHeadMessageForDecoratorResolution(node) {\n switch (node.parent.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return ts.Diagnostics.Unable_to_resolve_signature_of_class_decorator_when_called_as_an_expression;\n case 162 /* Parameter */:\n return ts.Diagnostics.Unable_to_resolve_signature_of_parameter_decorator_when_called_as_an_expression;\n case 165 /* PropertyDeclaration */:\n return ts.Diagnostics.Unable_to_resolve_signature_of_property_decorator_when_called_as_an_expression;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return ts.Diagnostics.Unable_to_resolve_signature_of_method_decorator_when_called_as_an_expression;\n default:\n return ts.Debug.fail();\n }\n }\n /**\n * Resolves a decorator as if it were a call expression.\n */\n function resolveDecorator(node, candidatesOutArray, checkMode) {\n var funcType = checkExpression(node.expression);\n var apparentType = getApparentType(funcType);\n if (apparentType === errorType) {\n return resolveErrorCall(node);\n }\n var callSignatures = getSignaturesOfType(apparentType, 0 /* Call */);\n var numConstructSignatures = getSignaturesOfType(apparentType, 1 /* Construct */).length;\n if (isUntypedFunctionCall(funcType, apparentType, callSignatures.length, numConstructSignatures)) {\n return resolveUntypedCall(node);\n }\n if (isPotentiallyUncalledDecorator(node, callSignatures)) {\n var nodeStr = ts.getTextOfNode(node.expression, /*includeTrivia*/ false);\n error(node, ts.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0, nodeStr);\n return resolveErrorCall(node);\n }\n var headMessage = getDiagnosticHeadMessageForDecoratorResolution(node);\n if (!callSignatures.length) {\n var errorDetails = invocationErrorDetails(node.expression, apparentType, 0 /* Call */);\n var messageChain = ts.chainDiagnosticMessages(errorDetails.messageChain, headMessage);\n var diag = ts.createDiagnosticForNodeFromMessageChain(node.expression, messageChain);\n if (errorDetails.relatedMessage) {\n ts.addRelatedInfo(diag, ts.createDiagnosticForNode(node.expression, errorDetails.relatedMessage));\n }\n diagnostics.add(diag);\n invocationErrorRecovery(apparentType, 0 /* Call */, diag);\n return resolveErrorCall(node);\n }\n return resolveCall(node, callSignatures, candidatesOutArray, checkMode, 0 /* None */, headMessage);\n }\n function createSignatureForJSXIntrinsic(node, result) {\n var namespace = getJsxNamespaceAt(node);\n var exports = namespace && getExportsOfSymbol(namespace);\n // We fake up a SFC signature for each intrinsic, however a more specific per-element signature drawn from the JSX declaration\n // file would probably be preferable.\n var typeSymbol = exports && getSymbol(exports, JsxNames.Element, 788968 /* Type */);\n var returnNode = typeSymbol && nodeBuilder.symbolToEntityName(typeSymbol, 788968 /* Type */, node);\n var declaration = ts.factory.createFunctionTypeNode(/*typeParameters*/ undefined, [ts.factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotdotdot*/ undefined, \"props\", /*questionMark*/ undefined, nodeBuilder.typeToTypeNode(result, node))], returnNode ? ts.factory.createTypeReferenceNode(returnNode, /*typeArguments*/ undefined) : ts.factory.createKeywordTypeNode(129 /* AnyKeyword */));\n var parameterSymbol = createSymbol(1 /* FunctionScopedVariable */, \"props\");\n parameterSymbol.type = result;\n return createSignature(declaration, \n /*typeParameters*/ undefined, \n /*thisParameter*/ undefined, [parameterSymbol], typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType, \n /*returnTypePredicate*/ undefined, 1, 0 /* None */);\n }\n function resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode) {\n if (isJsxIntrinsicIdentifier(node.tagName)) {\n var result = getIntrinsicAttributesTypeFromJsxOpeningLikeElement(node);\n var fakeSignature = createSignatureForJSXIntrinsic(node, result);\n checkTypeAssignableToAndOptionallyElaborate(checkExpressionWithContextualType(node.attributes, getEffectiveFirstArgumentForJsxSignature(fakeSignature, node), /*mapper*/ undefined, 0 /* Normal */), result, node.tagName, node.attributes);\n if (ts.length(node.typeArguments)) {\n ts.forEach(node.typeArguments, checkSourceElement);\n diagnostics.add(ts.createDiagnosticForNodeArray(ts.getSourceFileOfNode(node), node.typeArguments, ts.Diagnostics.Expected_0_type_arguments_but_got_1, 0, ts.length(node.typeArguments)));\n }\n return fakeSignature;\n }\n var exprTypes = checkExpression(node.tagName);\n var apparentType = getApparentType(exprTypes);\n if (apparentType === errorType) {\n return resolveErrorCall(node);\n }\n var signatures = getUninstantiatedJsxSignaturesOfType(exprTypes, node);\n if (isUntypedFunctionCall(exprTypes, apparentType, signatures.length, /*constructSignatures*/ 0)) {\n return resolveUntypedCall(node);\n }\n if (signatures.length === 0) {\n // We found no signatures at all, which is an error\n error(node.tagName, ts.Diagnostics.JSX_element_type_0_does_not_have_any_construct_or_call_signatures, ts.getTextOfNode(node.tagName));\n return resolveErrorCall(node);\n }\n return resolveCall(node, signatures, candidatesOutArray, checkMode, 0 /* None */);\n }\n /**\n * Sometimes, we have a decorator that could accept zero arguments,\n * but is receiving too many arguments as part of the decorator invocation.\n * In those cases, a user may have meant to *call* the expression before using it as a decorator.\n */\n function isPotentiallyUncalledDecorator(decorator, signatures) {\n return signatures.length && ts.every(signatures, function (signature) {\n return signature.minArgumentCount === 0 &&\n !signatureHasRestParameter(signature) &&\n signature.parameters.length < getDecoratorArgumentCount(decorator, signature);\n });\n }\n function resolveSignature(node, candidatesOutArray, checkMode) {\n switch (node.kind) {\n case 206 /* CallExpression */:\n return resolveCallExpression(node, candidatesOutArray, checkMode);\n case 207 /* NewExpression */:\n return resolveNewExpression(node, candidatesOutArray, checkMode);\n case 208 /* TaggedTemplateExpression */:\n return resolveTaggedTemplateExpression(node, candidatesOutArray, checkMode);\n case 163 /* Decorator */:\n return resolveDecorator(node, candidatesOutArray, checkMode);\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n return resolveJsxOpeningLikeElement(node, candidatesOutArray, checkMode);\n }\n throw ts.Debug.assertNever(node, \"Branch in 'resolveSignature' should be unreachable.\");\n }\n /**\n * Resolve a signature of a given call-like expression.\n * @param node a call-like expression to try resolve a signature for\n * @param candidatesOutArray an array of signature to be filled in by the function. It is passed by signature help in the language service;\n * the function will fill it up with appropriate candidate signatures\n * @return a signature of the call-like expression or undefined if one can't be found\n */\n function getResolvedSignature(node, candidatesOutArray, checkMode) {\n var links = getNodeLinks(node);\n // If getResolvedSignature has already been called, we will have cached the resolvedSignature.\n // However, it is possible that either candidatesOutArray was not passed in the first time,\n // or that a different candidatesOutArray was passed in. Therefore, we need to redo the work\n // to correctly fill the candidatesOutArray.\n var cached = links.resolvedSignature;\n if (cached && cached !== resolvingSignature && !candidatesOutArray) {\n return cached;\n }\n links.resolvedSignature = resolvingSignature;\n var result = resolveSignature(node, candidatesOutArray, checkMode || 0 /* Normal */);\n // When CheckMode.SkipGenericFunctions is set we use resolvingSignature to indicate that call\n // resolution should be deferred.\n if (result !== resolvingSignature) {\n // If signature resolution originated in control flow type analysis (for example to compute the\n // assigned type in a flow assignment) we don't cache the result as it may be based on temporary\n // types from the control flow analysis.\n links.resolvedSignature = flowLoopStart === flowLoopCount ? result : cached;\n }\n return result;\n }\n /**\n * Indicates whether a declaration can be treated as a constructor in a JavaScript\n * file.\n */\n function isJSConstructor(node) {\n var _a;\n if (!node || !ts.isInJSFile(node)) {\n return false;\n }\n var func = ts.isFunctionDeclaration(node) || ts.isFunctionExpression(node) ? node :\n ts.isVariableDeclaration(node) && node.initializer && ts.isFunctionExpression(node.initializer) ? node.initializer :\n undefined;\n if (func) {\n // If the node has a @class tag, treat it like a constructor.\n if (ts.getJSDocClassTag(node))\n return true;\n // If the symbol of the node has members, treat it like a constructor.\n var symbol = getSymbolOfNode(func);\n return !!((_a = symbol === null || symbol === void 0 ? void 0 : symbol.members) === null || _a === void 0 ? void 0 : _a.size);\n }\n return false;\n }\n function mergeJSSymbols(target, source) {\n var _a, _b;\n if (source) {\n var links = getSymbolLinks(source);\n if (!links.inferredClassSymbol || !links.inferredClassSymbol.has(getSymbolId(target))) {\n var inferred = ts.isTransientSymbol(target) ? target : cloneSymbol(target);\n inferred.exports = inferred.exports || ts.createSymbolTable();\n inferred.members = inferred.members || ts.createSymbolTable();\n inferred.flags |= source.flags & 32 /* Class */;\n if ((_a = source.exports) === null || _a === void 0 ? void 0 : _a.size) {\n mergeSymbolTable(inferred.exports, source.exports);\n }\n if ((_b = source.members) === null || _b === void 0 ? void 0 : _b.size) {\n mergeSymbolTable(inferred.members, source.members);\n }\n (links.inferredClassSymbol || (links.inferredClassSymbol = new ts.Map())).set(getSymbolId(inferred), inferred);\n return inferred;\n }\n return links.inferredClassSymbol.get(getSymbolId(target));\n }\n }\n function getAssignedClassSymbol(decl) {\n var _a;\n var assignmentSymbol = decl && getSymbolOfExpando(decl, /*allowDeclaration*/ true);\n var prototype = (_a = assignmentSymbol === null || assignmentSymbol === void 0 ? void 0 : assignmentSymbol.exports) === null || _a === void 0 ? void 0 : _a.get(\"prototype\");\n var init = (prototype === null || prototype === void 0 ? void 0 : prototype.valueDeclaration) && getAssignedJSPrototype(prototype.valueDeclaration);\n return init ? getSymbolOfNode(init) : undefined;\n }\n function getSymbolOfExpando(node, allowDeclaration) {\n if (!node.parent) {\n return undefined;\n }\n var name;\n var decl;\n if (ts.isVariableDeclaration(node.parent) && node.parent.initializer === node) {\n if (!ts.isInJSFile(node) && !(ts.isVarConst(node.parent) && ts.isFunctionLikeDeclaration(node))) {\n return undefined;\n }\n name = node.parent.name;\n decl = node.parent;\n }\n else if (ts.isBinaryExpression(node.parent)) {\n var parentNode = node.parent;\n var parentNodeOperator = node.parent.operatorToken.kind;\n if (parentNodeOperator === 63 /* EqualsToken */ && (allowDeclaration || parentNode.right === node)) {\n name = parentNode.left;\n decl = name;\n }\n else if (parentNodeOperator === 56 /* BarBarToken */ || parentNodeOperator === 60 /* QuestionQuestionToken */) {\n if (ts.isVariableDeclaration(parentNode.parent) && parentNode.parent.initializer === parentNode) {\n name = parentNode.parent.name;\n decl = parentNode.parent;\n }\n else if (ts.isBinaryExpression(parentNode.parent) && parentNode.parent.operatorToken.kind === 63 /* EqualsToken */ && (allowDeclaration || parentNode.parent.right === parentNode)) {\n name = parentNode.parent.left;\n decl = name;\n }\n if (!name || !ts.isBindableStaticNameExpression(name) || !ts.isSameEntityName(name, parentNode.left)) {\n return undefined;\n }\n }\n }\n else if (allowDeclaration && ts.isFunctionDeclaration(node)) {\n name = node.name;\n decl = node;\n }\n if (!decl || !name || (!allowDeclaration && !ts.getExpandoInitializer(node, ts.isPrototypeAccess(name)))) {\n return undefined;\n }\n return getSymbolOfNode(decl);\n }\n function getAssignedJSPrototype(node) {\n if (!node.parent) {\n return false;\n }\n var parent = node.parent;\n while (parent && parent.kind === 204 /* PropertyAccessExpression */) {\n parent = parent.parent;\n }\n if (parent && ts.isBinaryExpression(parent) && ts.isPrototypeAccess(parent.left) && parent.operatorToken.kind === 63 /* EqualsToken */) {\n var right = ts.getInitializerOfBinaryExpression(parent);\n return ts.isObjectLiteralExpression(right) && right;\n }\n }\n /**\n * Syntactically and semantically checks a call or new expression.\n * @param node The call/new expression to be checked.\n * @returns On success, the expression's signature's return type. On failure, anyType.\n */\n function checkCallExpression(node, checkMode) {\n var _a;\n if (!checkGrammarTypeArguments(node, node.typeArguments))\n checkGrammarArguments(node.arguments);\n var signature = getResolvedSignature(node, /*candidatesOutArray*/ undefined, checkMode);\n if (signature === resolvingSignature) {\n // CheckMode.SkipGenericFunctions is enabled and this is a call to a generic function that\n // returns a function type. We defer checking and return nonInferrableType.\n return nonInferrableType;\n }\n checkDeprecatedSignature(signature, node);\n if (node.expression.kind === 106 /* SuperKeyword */) {\n return voidType;\n }\n if (node.kind === 207 /* NewExpression */) {\n var declaration = signature.declaration;\n if (declaration &&\n declaration.kind !== 169 /* Constructor */ &&\n declaration.kind !== 173 /* ConstructSignature */ &&\n declaration.kind !== 178 /* ConstructorType */ &&\n !ts.isJSDocConstructSignature(declaration) &&\n !isJSConstructor(declaration)) {\n // When resolved signature is a call signature (and not a construct signature) the result type is any\n if (noImplicitAny) {\n error(node, ts.Diagnostics.new_expression_whose_target_lacks_a_construct_signature_implicitly_has_an_any_type);\n }\n return anyType;\n }\n }\n // In JavaScript files, calls to any identifier 'require' are treated as external module imports\n if (ts.isInJSFile(node) && isCommonJsRequire(node)) {\n return resolveExternalModuleTypeByLiteral(node.arguments[0]);\n }\n var returnType = getReturnTypeOfSignature(signature);\n // Treat any call to the global 'Symbol' function that is part of a const variable or readonly property\n // as a fresh unique symbol literal type.\n if (returnType.flags & 12288 /* ESSymbolLike */ && isSymbolOrSymbolForCall(node)) {\n return getESSymbolLikeTypeForNode(ts.walkUpParenthesizedExpressions(node.parent));\n }\n if (node.kind === 206 /* CallExpression */ && !node.questionDotToken && node.parent.kind === 236 /* ExpressionStatement */ &&\n returnType.flags & 16384 /* Void */ && getTypePredicateOfSignature(signature)) {\n if (!ts.isDottedName(node.expression)) {\n error(node.expression, ts.Diagnostics.Assertions_require_the_call_target_to_be_an_identifier_or_qualified_name);\n }\n else if (!getEffectsSignature(node)) {\n var diagnostic = error(node.expression, ts.Diagnostics.Assertions_require_every_name_in_the_call_target_to_be_declared_with_an_explicit_type_annotation);\n getTypeOfDottedName(node.expression, diagnostic);\n }\n }\n if (ts.isInJSFile(node)) {\n var jsSymbol = getSymbolOfExpando(node, /*allowDeclaration*/ false);\n if ((_a = jsSymbol === null || jsSymbol === void 0 ? void 0 : jsSymbol.exports) === null || _a === void 0 ? void 0 : _a.size) {\n var jsAssignmentType = createAnonymousType(jsSymbol, jsSymbol.exports, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n jsAssignmentType.objectFlags |= 8192 /* JSLiteral */;\n return getIntersectionType([returnType, jsAssignmentType]);\n }\n }\n return returnType;\n }\n function checkDeprecatedSignature(signature, node) {\n if (signature.declaration && signature.declaration.flags & 134217728 /* Deprecated */) {\n var suggestionNode = getDeprecatedSuggestionNode(node);\n var name = ts.tryGetPropertyAccessOrIdentifierToString(ts.getInvokedExpression(node));\n addDeprecatedSuggestionWithSignature(suggestionNode, signature.declaration, name, signatureToString(signature));\n }\n }\n function getDeprecatedSuggestionNode(node) {\n node = ts.skipParentheses(node);\n switch (node.kind) {\n case 206 /* CallExpression */:\n case 163 /* Decorator */:\n case 207 /* NewExpression */:\n return getDeprecatedSuggestionNode(node.expression);\n case 208 /* TaggedTemplateExpression */:\n return getDeprecatedSuggestionNode(node.tag);\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n return getDeprecatedSuggestionNode(node.tagName);\n case 205 /* ElementAccessExpression */:\n return node.argumentExpression;\n case 204 /* PropertyAccessExpression */:\n return node.name;\n case 176 /* TypeReference */:\n var typeReference = node;\n return ts.isQualifiedName(typeReference.typeName) ? typeReference.typeName.right : typeReference;\n default:\n return node;\n }\n }\n function isSymbolOrSymbolForCall(node) {\n if (!ts.isCallExpression(node))\n return false;\n var left = node.expression;\n if (ts.isPropertyAccessExpression(left) && left.name.escapedText === \"for\") {\n left = left.expression;\n }\n if (!ts.isIdentifier(left) || left.escapedText !== \"Symbol\") {\n return false;\n }\n // make sure `Symbol` is the global symbol\n var globalESSymbol = getGlobalESSymbolConstructorSymbol(/*reportErrors*/ false);\n if (!globalESSymbol) {\n return false;\n }\n return globalESSymbol === resolveName(left, \"Symbol\", 111551 /* Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false);\n }\n function checkImportCallExpression(node) {\n // Check grammar of dynamic import\n if (!checkGrammarArguments(node.arguments))\n checkGrammarImportCallExpression(node);\n if (node.arguments.length === 0) {\n return createPromiseReturnType(node, anyType);\n }\n var specifier = node.arguments[0];\n var specifierType = checkExpressionCached(specifier);\n // Even though multiple arguments is grammatically incorrect, type-check extra arguments for completion\n for (var i = 1; i < node.arguments.length; ++i) {\n checkExpressionCached(node.arguments[i]);\n }\n if (specifierType.flags & 32768 /* Undefined */ || specifierType.flags & 65536 /* Null */ || !isTypeAssignableTo(specifierType, stringType)) {\n error(specifier, ts.Diagnostics.Dynamic_import_s_specifier_must_be_of_type_string_but_here_has_type_0, typeToString(specifierType));\n }\n // resolveExternalModuleName will return undefined if the moduleReferenceExpression is not a string literal\n var moduleSymbol = resolveExternalModuleName(node, specifier);\n if (moduleSymbol) {\n var esModuleSymbol = resolveESModuleSymbol(moduleSymbol, specifier, /*dontRecursivelyResolve*/ true, /*suppressUsageError*/ false);\n if (esModuleSymbol) {\n return createPromiseReturnType(node, getTypeWithSyntheticDefaultImportType(getTypeOfSymbol(esModuleSymbol), esModuleSymbol, moduleSymbol));\n }\n }\n return createPromiseReturnType(node, anyType);\n }\n function getTypeWithSyntheticDefaultImportType(type, symbol, originalSymbol) {\n var _a;\n if (allowSyntheticDefaultImports && type && type !== errorType) {\n var synthType = type;\n if (!synthType.syntheticType) {\n var file = (_a = originalSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(ts.isSourceFile);\n var hasSyntheticDefault = canHaveSyntheticDefault(file, originalSymbol, /*dontResolveAlias*/ false);\n if (hasSyntheticDefault) {\n var memberTable = ts.createSymbolTable();\n var newSymbol = createSymbol(2097152 /* Alias */, \"default\" /* Default */);\n newSymbol.parent = originalSymbol;\n newSymbol.nameType = getStringLiteralType(\"default\");\n newSymbol.target = resolveSymbol(symbol);\n memberTable.set(\"default\" /* Default */, newSymbol);\n var anonymousSymbol = createSymbol(2048 /* TypeLiteral */, \"__type\" /* Type */);\n var defaultContainingObject = createAnonymousType(anonymousSymbol, memberTable, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n anonymousSymbol.type = defaultContainingObject;\n synthType.syntheticType = isValidSpreadType(type) ? getSpreadType(type, defaultContainingObject, anonymousSymbol, /*objectFlags*/ 0, /*readonly*/ false) : defaultContainingObject;\n }\n else {\n synthType.syntheticType = type;\n }\n }\n return synthType.syntheticType;\n }\n return type;\n }\n function isCommonJsRequire(node) {\n if (!ts.isRequireCall(node, /*checkArgumentIsStringLiteralLike*/ true)) {\n return false;\n }\n // Make sure require is not a local function\n if (!ts.isIdentifier(node.expression))\n return ts.Debug.fail();\n var resolvedRequire = resolveName(node.expression, node.expression.escapedText, 111551 /* Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true); // TODO: GH#18217\n if (resolvedRequire === requireSymbol) {\n return true;\n }\n // project includes symbol named 'require' - make sure that it is ambient and local non-alias\n if (resolvedRequire.flags & 2097152 /* Alias */) {\n return false;\n }\n var targetDeclarationKind = resolvedRequire.flags & 16 /* Function */\n ? 254 /* FunctionDeclaration */\n : resolvedRequire.flags & 3 /* Variable */\n ? 252 /* VariableDeclaration */\n : 0 /* Unknown */;\n if (targetDeclarationKind !== 0 /* Unknown */) {\n var decl = ts.getDeclarationOfKind(resolvedRequire, targetDeclarationKind);\n // function/variable declaration should be ambient\n return !!decl && !!(decl.flags & 8388608 /* Ambient */);\n }\n return false;\n }\n function checkTaggedTemplateExpression(node) {\n if (!checkGrammarTaggedTemplateChain(node))\n checkGrammarTypeArguments(node, node.typeArguments);\n if (languageVersion < 2 /* ES2015 */) {\n checkExternalEmitHelpers(node, 262144 /* MakeTemplateObject */);\n }\n var signature = getResolvedSignature(node);\n checkDeprecatedSignature(signature, node);\n return getReturnTypeOfSignature(signature);\n }\n function checkAssertion(node) {\n return checkAssertionWorker(node, node.type, node.expression);\n }\n function isValidConstAssertionArgument(node) {\n switch (node.kind) {\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 202 /* ArrayLiteralExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 221 /* TemplateExpression */:\n return true;\n case 210 /* ParenthesizedExpression */:\n return isValidConstAssertionArgument(node.expression);\n case 217 /* PrefixUnaryExpression */:\n var op = node.operator;\n var arg = node.operand;\n return op === 40 /* MinusToken */ && (arg.kind === 8 /* NumericLiteral */ || arg.kind === 9 /* BigIntLiteral */) ||\n op === 39 /* PlusToken */ && arg.kind === 8 /* NumericLiteral */;\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n var expr = node.expression;\n if (ts.isIdentifier(expr)) {\n var symbol = getSymbolAtLocation(expr);\n if (symbol && symbol.flags & 2097152 /* Alias */) {\n symbol = resolveAlias(symbol);\n }\n return !!(symbol && (symbol.flags & 384 /* Enum */) && getEnumKind(symbol) === 1 /* Literal */);\n }\n }\n return false;\n }\n function checkAssertionWorker(errNode, type, expression, checkMode) {\n var exprType = checkExpression(expression, checkMode);\n if (ts.isConstTypeReference(type)) {\n if (!isValidConstAssertionArgument(expression)) {\n error(expression, ts.Diagnostics.A_const_assertions_can_only_be_applied_to_references_to_enum_members_or_string_number_boolean_array_or_object_literals);\n }\n return getRegularTypeOfLiteralType(exprType);\n }\n checkSourceElement(type);\n exprType = getRegularTypeOfObjectLiteral(getBaseTypeOfLiteralType(exprType));\n var targetType = getTypeFromTypeNode(type);\n if (produceDiagnostics && targetType !== errorType) {\n var widenedType = getWidenedType(exprType);\n if (!isTypeComparableTo(targetType, widenedType)) {\n checkTypeComparableTo(exprType, targetType, errNode, ts.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first);\n }\n }\n return targetType;\n }\n function checkNonNullChain(node) {\n var leftType = checkExpression(node.expression);\n var nonOptionalType = getOptionalExpressionType(leftType, node.expression);\n return propagateOptionalTypeMarker(getNonNullableType(nonOptionalType), node, nonOptionalType !== leftType);\n }\n function checkNonNullAssertion(node) {\n return node.flags & 32 /* OptionalChain */ ? checkNonNullChain(node) :\n getNonNullableType(checkExpression(node.expression));\n }\n function checkMetaProperty(node) {\n checkGrammarMetaProperty(node);\n if (node.keywordToken === 103 /* NewKeyword */) {\n return checkNewTargetMetaProperty(node);\n }\n if (node.keywordToken === 100 /* ImportKeyword */) {\n return checkImportMetaProperty(node);\n }\n return ts.Debug.assertNever(node.keywordToken);\n }\n function checkMetaPropertyKeyword(node) {\n switch (node.keywordToken) {\n case 100 /* ImportKeyword */:\n return getGlobalImportMetaExpressionType();\n case 103 /* NewKeyword */:\n var type = checkNewTargetMetaProperty(node);\n return type === errorType ? errorType : createNewTargetExpressionType(type);\n default:\n ts.Debug.assertNever(node.keywordToken);\n }\n }\n function checkNewTargetMetaProperty(node) {\n var container = ts.getNewTargetContainer(node);\n if (!container) {\n error(node, ts.Diagnostics.Meta_property_0_is_only_allowed_in_the_body_of_a_function_declaration_function_expression_or_constructor, \"new.target\");\n return errorType;\n }\n else if (container.kind === 169 /* Constructor */) {\n var symbol = getSymbolOfNode(container.parent);\n return getTypeOfSymbol(symbol);\n }\n else {\n var symbol = getSymbolOfNode(container);\n return getTypeOfSymbol(symbol);\n }\n }\n function checkImportMetaProperty(node) {\n if (moduleKind !== ts.ModuleKind.ES2020 && moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.System) {\n error(node, ts.Diagnostics.The_import_meta_meta_property_is_only_allowed_when_the_module_option_is_es2020_esnext_or_system);\n }\n var file = ts.getSourceFileOfNode(node);\n ts.Debug.assert(!!(file.flags & 2097152 /* PossiblyContainsImportMeta */), \"Containing file is missing import meta node flag.\");\n return node.name.escapedText === \"meta\" ? getGlobalImportMetaType() : errorType;\n }\n function getTypeOfParameter(symbol) {\n var type = getTypeOfSymbol(symbol);\n if (strictNullChecks) {\n var declaration = symbol.valueDeclaration;\n if (declaration && ts.hasInitializer(declaration)) {\n return getOptionalType(type);\n }\n }\n return type;\n }\n function getTupleElementLabel(d) {\n ts.Debug.assert(ts.isIdentifier(d.name)); // Parameter declarations could be binding patterns, but we only allow identifier names\n return d.name.escapedText;\n }\n function getParameterNameAtPosition(signature, pos, overrideRestType) {\n var paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n if (pos < paramCount) {\n return signature.parameters[pos].escapedName;\n }\n var restParameter = signature.parameters[paramCount] || unknownSymbol;\n var restType = overrideRestType || getTypeOfSymbol(restParameter);\n if (isTupleType(restType)) {\n var associatedNames = restType.target.labeledElementDeclarations;\n var index = pos - paramCount;\n return associatedNames && getTupleElementLabel(associatedNames[index]) || restParameter.escapedName + \"_\" + index;\n }\n return restParameter.escapedName;\n }\n function getParameterIdentifierNameAtPosition(signature, pos) {\n var paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n if (pos < paramCount) {\n var param = signature.parameters[pos];\n return isParameterDeclarationWithIdentifierName(param) ? [param.escapedName, false] : undefined;\n }\n var restParameter = signature.parameters[paramCount] || unknownSymbol;\n if (!isParameterDeclarationWithIdentifierName(restParameter)) {\n return undefined;\n }\n var restType = getTypeOfSymbol(restParameter);\n if (isTupleType(restType)) {\n var associatedNames = restType.target.labeledElementDeclarations;\n var index = pos - paramCount;\n var associatedName = associatedNames === null || associatedNames === void 0 ? void 0 : associatedNames[index];\n var isRestTupleElement = !!(associatedName === null || associatedName === void 0 ? void 0 : associatedName.dotDotDotToken);\n return associatedName ? [\n getTupleElementLabel(associatedName),\n isRestTupleElement\n ] : undefined;\n }\n if (pos === paramCount) {\n return [restParameter.escapedName, true];\n }\n return undefined;\n }\n function isParameterDeclarationWithIdentifierName(symbol) {\n return symbol.valueDeclaration && ts.isParameter(symbol.valueDeclaration) && ts.isIdentifier(symbol.valueDeclaration.name);\n }\n function isValidDeclarationForTupleLabel(d) {\n return d.kind === 195 /* NamedTupleMember */ || (ts.isParameter(d) && d.name && ts.isIdentifier(d.name));\n }\n function getNameableDeclarationAtPosition(signature, pos) {\n var paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n if (pos < paramCount) {\n var decl = signature.parameters[pos].valueDeclaration;\n return decl && isValidDeclarationForTupleLabel(decl) ? decl : undefined;\n }\n var restParameter = signature.parameters[paramCount] || unknownSymbol;\n var restType = getTypeOfSymbol(restParameter);\n if (isTupleType(restType)) {\n var associatedNames = restType.target.labeledElementDeclarations;\n var index = pos - paramCount;\n return associatedNames && associatedNames[index];\n }\n return restParameter.valueDeclaration && isValidDeclarationForTupleLabel(restParameter.valueDeclaration) ? restParameter.valueDeclaration : undefined;\n }\n function getTypeAtPosition(signature, pos) {\n return tryGetTypeAtPosition(signature, pos) || anyType;\n }\n function tryGetTypeAtPosition(signature, pos) {\n var paramCount = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n if (pos < paramCount) {\n return getTypeOfParameter(signature.parameters[pos]);\n }\n if (signatureHasRestParameter(signature)) {\n // We want to return the value undefined for an out of bounds parameter position,\n // so we need to check bounds here before calling getIndexedAccessType (which\n // otherwise would return the type 'undefined').\n var restType = getTypeOfSymbol(signature.parameters[paramCount]);\n var index = pos - paramCount;\n if (!isTupleType(restType) || restType.target.hasRestElement || index < restType.target.fixedLength) {\n return getIndexedAccessType(restType, getNumberLiteralType(index));\n }\n }\n return undefined;\n }\n function getRestTypeAtPosition(source, pos) {\n var parameterCount = getParameterCount(source);\n var minArgumentCount = getMinArgumentCount(source);\n var restType = getEffectiveRestType(source);\n if (restType && pos >= parameterCount - 1) {\n return pos === parameterCount - 1 ? restType : createArrayType(getIndexedAccessType(restType, numberType));\n }\n var types = [];\n var flags = [];\n var names = [];\n for (var i = pos; i < parameterCount; i++) {\n if (!restType || i < parameterCount - 1) {\n types.push(getTypeAtPosition(source, i));\n flags.push(i < minArgumentCount ? 1 /* Required */ : 2 /* Optional */);\n }\n else {\n types.push(restType);\n flags.push(8 /* Variadic */);\n }\n var name = getNameableDeclarationAtPosition(source, i);\n if (name) {\n names.push(name);\n }\n }\n return createTupleType(types, flags, /*readonly*/ false, ts.length(names) === ts.length(types) ? names : undefined);\n }\n // Return the number of parameters in a signature. The rest parameter, if present, counts as one\n // parameter. For example, the parameter count of (x: number, y: number, ...z: string[]) is 3 and\n // the parameter count of (x: number, ...args: [number, ...string[], boolean])) is also 3. In the\n // latter example, the effective rest type is [...string[], boolean].\n function getParameterCount(signature) {\n var length = signature.parameters.length;\n if (signatureHasRestParameter(signature)) {\n var restType = getTypeOfSymbol(signature.parameters[length - 1]);\n if (isTupleType(restType)) {\n return length + restType.target.fixedLength - (restType.target.hasRestElement ? 0 : 1);\n }\n }\n return length;\n }\n function getMinArgumentCount(signature, flags) {\n var strongArityForUntypedJS = flags & 1 /* StrongArityForUntypedJS */;\n var voidIsNonOptional = flags & 2 /* VoidIsNonOptional */;\n if (voidIsNonOptional || signature.resolvedMinArgumentCount === undefined) {\n var minArgumentCount = void 0;\n if (signatureHasRestParameter(signature)) {\n var restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n if (isTupleType(restType)) {\n var firstOptionalIndex = ts.findIndex(restType.target.elementFlags, function (f) { return !(f & 1 /* Required */); });\n var requiredCount = firstOptionalIndex < 0 ? restType.target.fixedLength : firstOptionalIndex;\n if (requiredCount > 0) {\n minArgumentCount = signature.parameters.length - 1 + requiredCount;\n }\n }\n }\n if (minArgumentCount === undefined) {\n if (!strongArityForUntypedJS && signature.flags & 32 /* IsUntypedSignatureInJSFile */) {\n return 0;\n }\n minArgumentCount = signature.minArgumentCount;\n }\n if (voidIsNonOptional) {\n return minArgumentCount;\n }\n for (var i = minArgumentCount - 1; i >= 0; i--) {\n var type = getTypeAtPosition(signature, i);\n if (filterType(type, acceptsVoid).flags & 131072 /* Never */) {\n break;\n }\n minArgumentCount = i;\n }\n signature.resolvedMinArgumentCount = minArgumentCount;\n }\n return signature.resolvedMinArgumentCount;\n }\n function hasEffectiveRestParameter(signature) {\n if (signatureHasRestParameter(signature)) {\n var restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n return !isTupleType(restType) || restType.target.hasRestElement;\n }\n return false;\n }\n function getEffectiveRestType(signature) {\n if (signatureHasRestParameter(signature)) {\n var restType = getTypeOfSymbol(signature.parameters[signature.parameters.length - 1]);\n if (!isTupleType(restType)) {\n return restType;\n }\n if (restType.target.hasRestElement) {\n return sliceTupleType(restType, restType.target.fixedLength);\n }\n }\n return undefined;\n }\n function getNonArrayRestType(signature) {\n var restType = getEffectiveRestType(signature);\n return restType && !isArrayType(restType) && !isTypeAny(restType) && (getReducedType(restType).flags & 131072 /* Never */) === 0 ? restType : undefined;\n }\n function getTypeOfFirstParameterOfSignature(signature) {\n return getTypeOfFirstParameterOfSignatureWithFallback(signature, neverType);\n }\n function getTypeOfFirstParameterOfSignatureWithFallback(signature, fallbackType) {\n return signature.parameters.length > 0 ? getTypeAtPosition(signature, 0) : fallbackType;\n }\n function inferFromAnnotatedParameters(signature, context, inferenceContext) {\n var len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n for (var i = 0; i < len; i++) {\n var declaration = signature.parameters[i].valueDeclaration;\n if (declaration.type) {\n var typeNode = ts.getEffectiveTypeAnnotationNode(declaration);\n if (typeNode) {\n inferTypes(inferenceContext.inferences, getTypeFromTypeNode(typeNode), getTypeAtPosition(context, i));\n }\n }\n }\n var restType = getEffectiveRestType(context);\n if (restType && restType.flags & 262144 /* TypeParameter */) {\n // The contextual signature has a generic rest parameter. We first instantiate the contextual\n // signature (without fixing type parameters) and assign types to contextually typed parameters.\n var instantiatedContext = instantiateSignature(context, inferenceContext.nonFixingMapper);\n assignContextualParameterTypes(signature, instantiatedContext);\n // We then infer from a tuple type representing the parameters that correspond to the contextual\n // rest parameter.\n var restPos = getParameterCount(context) - 1;\n inferTypes(inferenceContext.inferences, getRestTypeAtPosition(signature, restPos), restType);\n }\n }\n function assignContextualParameterTypes(signature, context) {\n if (context.typeParameters) {\n if (!signature.typeParameters) {\n signature.typeParameters = context.typeParameters;\n }\n else {\n return; // This signature has already has a contextual inference performed and cached on it!\n }\n }\n if (context.thisParameter) {\n var parameter = signature.thisParameter;\n if (!parameter || parameter.valueDeclaration && !parameter.valueDeclaration.type) {\n if (!parameter) {\n signature.thisParameter = createSymbolWithType(context.thisParameter, /*type*/ undefined);\n }\n assignParameterType(signature.thisParameter, getTypeOfSymbol(context.thisParameter));\n }\n }\n var len = signature.parameters.length - (signatureHasRestParameter(signature) ? 1 : 0);\n for (var i = 0; i < len; i++) {\n var parameter = signature.parameters[i];\n if (!ts.getEffectiveTypeAnnotationNode(parameter.valueDeclaration)) {\n var contextualParameterType = tryGetTypeAtPosition(context, i);\n assignParameterType(parameter, contextualParameterType);\n }\n }\n if (signatureHasRestParameter(signature)) {\n // parameter might be a transient symbol generated by use of `arguments` in the function body.\n var parameter = ts.last(signature.parameters);\n if (ts.isTransientSymbol(parameter) || !ts.getEffectiveTypeAnnotationNode(parameter.valueDeclaration)) {\n var contextualParameterType = getRestTypeAtPosition(context, len);\n assignParameterType(parameter, contextualParameterType);\n }\n }\n }\n function assignNonContextualParameterTypes(signature) {\n if (signature.thisParameter) {\n assignParameterType(signature.thisParameter);\n }\n for (var _i = 0, _a = signature.parameters; _i < _a.length; _i++) {\n var parameter = _a[_i];\n assignParameterType(parameter);\n }\n }\n function assignParameterType(parameter, type) {\n var links = getSymbolLinks(parameter);\n if (!links.type) {\n var declaration = parameter.valueDeclaration;\n links.type = type || getWidenedTypeForVariableLikeDeclaration(declaration, /*includeOptionality*/ true);\n if (declaration.name.kind !== 79 /* Identifier */) {\n // if inference didn't come up with anything but unknown, fall back to the binding pattern if present.\n if (links.type === unknownType) {\n links.type = getTypeFromBindingPattern(declaration.name);\n }\n assignBindingElementTypes(declaration.name);\n }\n }\n }\n // When contextual typing assigns a type to a parameter that contains a binding pattern, we also need to push\n // the destructured type into the contained binding elements.\n function assignBindingElementTypes(pattern) {\n for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n if (element.name.kind === 79 /* Identifier */) {\n getSymbolLinks(getSymbolOfNode(element)).type = getTypeForBindingElement(element);\n }\n else {\n assignBindingElementTypes(element.name);\n }\n }\n }\n }\n function createPromiseType(promisedType) {\n // creates a `Promise` type where `T` is the promisedType argument\n var globalPromiseType = getGlobalPromiseType(/*reportErrors*/ true);\n if (globalPromiseType !== emptyGenericType) {\n // if the promised type is itself a promise, get the underlying type; otherwise, fallback to the promised type\n promisedType = getAwaitedType(promisedType) || unknownType;\n return createTypeReference(globalPromiseType, [promisedType]);\n }\n return unknownType;\n }\n function createPromiseLikeType(promisedType) {\n // creates a `PromiseLike` type where `T` is the promisedType argument\n var globalPromiseLikeType = getGlobalPromiseLikeType(/*reportErrors*/ true);\n if (globalPromiseLikeType !== emptyGenericType) {\n // if the promised type is itself a promise, get the underlying type; otherwise, fallback to the promised type\n promisedType = getAwaitedType(promisedType) || unknownType;\n return createTypeReference(globalPromiseLikeType, [promisedType]);\n }\n return unknownType;\n }\n function createPromiseReturnType(func, promisedType) {\n var promiseType = createPromiseType(promisedType);\n if (promiseType === unknownType) {\n error(func, ts.isImportCall(func) ?\n ts.Diagnostics.A_dynamic_import_call_returns_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option :\n ts.Diagnostics.An_async_function_or_method_must_return_a_Promise_Make_sure_you_have_a_declaration_for_Promise_or_include_ES2015_in_your_lib_option);\n return errorType;\n }\n else if (!getGlobalPromiseConstructorSymbol(/*reportErrors*/ true)) {\n error(func, ts.isImportCall(func) ?\n ts.Diagnostics.A_dynamic_import_call_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option :\n ts.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option);\n }\n return promiseType;\n }\n function createNewTargetExpressionType(targetType) {\n // Create a synthetic type `NewTargetExpression { target: TargetType; }`\n var symbol = createSymbol(0 /* None */, \"NewTargetExpression\");\n var targetPropertySymbol = createSymbol(4 /* Property */, \"target\", 8 /* Readonly */);\n targetPropertySymbol.parent = symbol;\n targetPropertySymbol.type = targetType;\n var members = ts.createSymbolTable([targetPropertySymbol]);\n symbol.members = members;\n return createAnonymousType(symbol, members, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n }\n function getReturnTypeFromBody(func, checkMode) {\n if (!func.body) {\n return errorType;\n }\n var functionFlags = ts.getFunctionFlags(func);\n var isAsync = (functionFlags & 2 /* Async */) !== 0;\n var isGenerator = (functionFlags & 1 /* Generator */) !== 0;\n var returnType;\n var yieldType;\n var nextType;\n var fallbackReturnType = voidType;\n if (func.body.kind !== 233 /* Block */) { // Async or normal arrow function\n returnType = checkExpressionCached(func.body, checkMode && checkMode & ~8 /* SkipGenericFunctions */);\n if (isAsync) {\n // From within an async function you can return either a non-promise value or a promise. Any\n // Promise/A+ compatible implementation will always assimilate any foreign promise, so the\n // return type of the body should be unwrapped to its awaited type, which we will wrap in\n // the native Promise type later in this function.\n returnType = checkAwaitedType(returnType, /*errorNode*/ func, ts.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n }\n }\n else if (isGenerator) { // Generator or AsyncGenerator function\n var returnTypes = checkAndAggregateReturnExpressionTypes(func, checkMode);\n if (!returnTypes) {\n fallbackReturnType = neverType;\n }\n else if (returnTypes.length > 0) {\n returnType = getUnionType(returnTypes, 2 /* Subtype */);\n }\n var _a = checkAndAggregateYieldOperandTypes(func, checkMode), yieldTypes = _a.yieldTypes, nextTypes = _a.nextTypes;\n yieldType = ts.some(yieldTypes) ? getUnionType(yieldTypes, 2 /* Subtype */) : undefined;\n nextType = ts.some(nextTypes) ? getIntersectionType(nextTypes) : undefined;\n }\n else { // Async or normal function\n var types = checkAndAggregateReturnExpressionTypes(func, checkMode);\n if (!types) {\n // For an async function, the return type will not be never, but rather a Promise for never.\n return functionFlags & 2 /* Async */\n ? createPromiseReturnType(func, neverType) // Async function\n : neverType; // Normal function\n }\n if (types.length === 0) {\n // For an async function, the return type will not be void, but rather a Promise for void.\n return functionFlags & 2 /* Async */\n ? createPromiseReturnType(func, voidType) // Async function\n : voidType; // Normal function\n }\n // Return a union of the return expression types.\n returnType = getUnionType(types, 2 /* Subtype */);\n }\n if (returnType || yieldType || nextType) {\n if (yieldType)\n reportErrorsFromWidening(func, yieldType, 3 /* GeneratorYield */);\n if (returnType)\n reportErrorsFromWidening(func, returnType, 1 /* FunctionReturn */);\n if (nextType)\n reportErrorsFromWidening(func, nextType, 2 /* GeneratorNext */);\n if (returnType && isUnitType(returnType) ||\n yieldType && isUnitType(yieldType) ||\n nextType && isUnitType(nextType)) {\n var contextualSignature = getContextualSignatureForFunctionLikeDeclaration(func);\n var contextualType = !contextualSignature ? undefined :\n contextualSignature === getSignatureFromDeclaration(func) ? isGenerator ? undefined : returnType :\n instantiateContextualType(getReturnTypeOfSignature(contextualSignature), func);\n if (isGenerator) {\n yieldType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(yieldType, contextualType, 0 /* Yield */, isAsync);\n returnType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(returnType, contextualType, 1 /* Return */, isAsync);\n nextType = getWidenedLiteralLikeTypeForContextualIterationTypeIfNeeded(nextType, contextualType, 2 /* Next */, isAsync);\n }\n else {\n returnType = getWidenedLiteralLikeTypeForContextualReturnTypeIfNeeded(returnType, contextualType, isAsync);\n }\n }\n if (yieldType)\n yieldType = getWidenedType(yieldType);\n if (returnType)\n returnType = getWidenedType(returnType);\n if (nextType)\n nextType = getWidenedType(nextType);\n }\n if (isGenerator) {\n return createGeneratorReturnType(yieldType || neverType, returnType || fallbackReturnType, nextType || getContextualIterationType(2 /* Next */, func) || unknownType, isAsync);\n }\n else {\n // From within an async function you can return either a non-promise value or a promise. Any\n // Promise/A+ compatible implementation will always assimilate any foreign promise, so the\n // return type of the body is awaited type of the body, wrapped in a native Promise type.\n return isAsync\n ? createPromiseType(returnType || fallbackReturnType)\n : returnType || fallbackReturnType;\n }\n }\n function createGeneratorReturnType(yieldType, returnType, nextType, isAsyncGenerator) {\n var resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver;\n var globalGeneratorType = resolver.getGlobalGeneratorType(/*reportErrors*/ false);\n yieldType = resolver.resolveIterationType(yieldType, /*errorNode*/ undefined) || unknownType;\n returnType = resolver.resolveIterationType(returnType, /*errorNode*/ undefined) || unknownType;\n nextType = resolver.resolveIterationType(nextType, /*errorNode*/ undefined) || unknownType;\n if (globalGeneratorType === emptyGenericType) {\n // Fall back to the global IterableIterator if returnType is assignable to the expected return iteration\n // type of IterableIterator, and the expected next iteration type of IterableIterator is assignable to\n // nextType.\n var globalType = resolver.getGlobalIterableIteratorType(/*reportErrors*/ false);\n var iterationTypes = globalType !== emptyGenericType ? getIterationTypesOfGlobalIterableType(globalType, resolver) : undefined;\n var iterableIteratorReturnType = iterationTypes ? iterationTypes.returnType : anyType;\n var iterableIteratorNextType = iterationTypes ? iterationTypes.nextType : undefinedType;\n if (isTypeAssignableTo(returnType, iterableIteratorReturnType) &&\n isTypeAssignableTo(iterableIteratorNextType, nextType)) {\n if (globalType !== emptyGenericType) {\n return createTypeFromGenericGlobalType(globalType, [yieldType]);\n }\n // The global IterableIterator type doesn't exist, so report an error\n resolver.getGlobalIterableIteratorType(/*reportErrors*/ true);\n return emptyObjectType;\n }\n // The global Generator type doesn't exist, so report an error\n resolver.getGlobalGeneratorType(/*reportErrors*/ true);\n return emptyObjectType;\n }\n return createTypeFromGenericGlobalType(globalGeneratorType, [yieldType, returnType, nextType]);\n }\n function checkAndAggregateYieldOperandTypes(func, checkMode) {\n var yieldTypes = [];\n var nextTypes = [];\n var isAsync = (ts.getFunctionFlags(func) & 2 /* Async */) !== 0;\n ts.forEachYieldExpression(func.body, function (yieldExpression) {\n var yieldExpressionType = yieldExpression.expression ? checkExpression(yieldExpression.expression, checkMode) : undefinedWideningType;\n ts.pushIfUnique(yieldTypes, getYieldedTypeOfYieldExpression(yieldExpression, yieldExpressionType, anyType, isAsync));\n var nextType;\n if (yieldExpression.asteriskToken) {\n var iterationTypes = getIterationTypesOfIterable(yieldExpressionType, isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, yieldExpression.expression);\n nextType = iterationTypes && iterationTypes.nextType;\n }\n else {\n nextType = getContextualType(yieldExpression);\n }\n if (nextType)\n ts.pushIfUnique(nextTypes, nextType);\n });\n return { yieldTypes: yieldTypes, nextTypes: nextTypes };\n }\n function getYieldedTypeOfYieldExpression(node, expressionType, sentType, isAsync) {\n var errorNode = node.expression || node;\n // A `yield*` expression effectively yields everything that its operand yields\n var yieldedType = node.asteriskToken ? checkIteratedTypeOrElementType(isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */, expressionType, sentType, errorNode) : expressionType;\n return !isAsync ? yieldedType : getAwaitedType(yieldedType, errorNode, node.asteriskToken\n ? ts.Diagnostics.Type_of_iterated_elements_of_a_yield_Asterisk_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member\n : ts.Diagnostics.Type_of_yield_operand_in_an_async_generator_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n }\n /**\n * Collect the TypeFacts learned from a typeof switch with\n * total clauses `witnesses`, and the active clause ranging\n * from `start` to `end`. Parameter `hasDefault` denotes\n * whether the active clause contains a default clause.\n */\n function getFactsFromTypeofSwitch(start, end, witnesses, hasDefault) {\n var facts = 0 /* None */;\n // When in the default we only collect inequality facts\n // because default is 'in theory' a set of infinite\n // equalities.\n if (hasDefault) {\n // Value is not equal to any types after the active clause.\n for (var i = end; i < witnesses.length; i++) {\n facts |= typeofNEFacts.get(witnesses[i]) || 32768 /* TypeofNEHostObject */;\n }\n // Remove inequalities for types that appear in the\n // active clause because they appear before other\n // types collected so far.\n for (var i = start; i < end; i++) {\n facts &= ~(typeofNEFacts.get(witnesses[i]) || 0);\n }\n // Add inequalities for types before the active clause unconditionally.\n for (var i = 0; i < start; i++) {\n facts |= typeofNEFacts.get(witnesses[i]) || 32768 /* TypeofNEHostObject */;\n }\n }\n // When in an active clause without default the set of\n // equalities is finite.\n else {\n // Add equalities for all types in the active clause.\n for (var i = start; i < end; i++) {\n facts |= typeofEQFacts.get(witnesses[i]) || 128 /* TypeofEQHostObject */;\n }\n // Remove equalities for types that appear before the\n // active clause.\n for (var i = 0; i < start; i++) {\n facts &= ~(typeofEQFacts.get(witnesses[i]) || 0);\n }\n }\n return facts;\n }\n function isExhaustiveSwitchStatement(node) {\n var links = getNodeLinks(node);\n return links.isExhaustive !== undefined ? links.isExhaustive : (links.isExhaustive = computeExhaustiveSwitchStatement(node));\n }\n function computeExhaustiveSwitchStatement(node) {\n if (node.expression.kind === 214 /* TypeOfExpression */) {\n var operandType = getTypeOfExpression(node.expression.expression);\n var witnesses = getSwitchClauseTypeOfWitnesses(node, /*retainDefault*/ false);\n // notEqualFacts states that the type of the switched value is not equal to every type in the switch.\n var notEqualFacts_1 = getFactsFromTypeofSwitch(0, 0, witnesses, /*hasDefault*/ true);\n var type_4 = getBaseConstraintOfType(operandType) || operandType;\n // Take any/unknown as a special condition. Or maybe we could change `type` to a union containing all primitive types.\n if (type_4.flags & 3 /* AnyOrUnknown */) {\n return (556800 /* AllTypeofNE */ & notEqualFacts_1) === 556800 /* AllTypeofNE */;\n }\n return !!(filterType(type_4, function (t) { return (getTypeFacts(t) & notEqualFacts_1) === notEqualFacts_1; }).flags & 131072 /* Never */);\n }\n var type = getTypeOfExpression(node.expression);\n if (!isLiteralType(type)) {\n return false;\n }\n var switchTypes = getSwitchClauseTypes(node);\n if (!switchTypes.length || ts.some(switchTypes, isNeitherUnitTypeNorNever)) {\n return false;\n }\n return eachTypeContainedIn(mapType(type, getRegularTypeOfLiteralType), switchTypes);\n }\n function functionHasImplicitReturn(func) {\n return func.endFlowNode && isReachableFlowNode(func.endFlowNode);\n }\n /** NOTE: Return value of `[]` means a different thing than `undefined`. `[]` means func returns `void`, `undefined` means it returns `never`. */\n function checkAndAggregateReturnExpressionTypes(func, checkMode) {\n var functionFlags = ts.getFunctionFlags(func);\n var aggregatedTypes = [];\n var hasReturnWithNoExpression = functionHasImplicitReturn(func);\n var hasReturnOfTypeNever = false;\n ts.forEachReturnStatement(func.body, function (returnStatement) {\n var expr = returnStatement.expression;\n if (expr) {\n var type = checkExpressionCached(expr, checkMode && checkMode & ~8 /* SkipGenericFunctions */);\n if (functionFlags & 2 /* Async */) {\n // From within an async function you can return either a non-promise value or a promise. Any\n // Promise/A+ compatible implementation will always assimilate any foreign promise, so the\n // return type of the body should be unwrapped to its awaited type, which should be wrapped in\n // the native Promise type by the caller.\n type = checkAwaitedType(type, func, ts.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n }\n if (type.flags & 131072 /* Never */) {\n hasReturnOfTypeNever = true;\n }\n ts.pushIfUnique(aggregatedTypes, type);\n }\n else {\n hasReturnWithNoExpression = true;\n }\n });\n if (aggregatedTypes.length === 0 && !hasReturnWithNoExpression && (hasReturnOfTypeNever || mayReturnNever(func))) {\n return undefined;\n }\n if (strictNullChecks && aggregatedTypes.length && hasReturnWithNoExpression &&\n !(isJSConstructor(func) && aggregatedTypes.some(function (t) { return t.symbol === func.symbol; }))) {\n // Javascript \"callable constructors\", containing eg `if (!(this instanceof A)) return new A()` should not add undefined\n ts.pushIfUnique(aggregatedTypes, undefinedType);\n }\n return aggregatedTypes;\n }\n function mayReturnNever(func) {\n switch (func.kind) {\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return true;\n case 167 /* MethodDeclaration */:\n return func.parent.kind === 203 /* ObjectLiteralExpression */;\n default:\n return false;\n }\n }\n /**\n * TypeScript Specification 1.0 (6.3) - July 2014\n * An explicitly typed function whose return type isn't the Void type,\n * the Any type, or a union type containing the Void or Any type as a constituent\n * must have at least one return statement somewhere in its body.\n * An exception to this rule is if the function implementation consists of a single 'throw' statement.\n *\n * @param returnType - return type of the function, can be undefined if return type is not explicitly specified\n */\n function checkAllCodePathsInNonVoidFunctionReturnOrThrow(func, returnType) {\n if (!produceDiagnostics) {\n return;\n }\n var functionFlags = ts.getFunctionFlags(func);\n var type = returnType && unwrapReturnType(returnType, functionFlags);\n // Functions with with an explicitly specified 'void' or 'any' return type don't need any return expressions.\n if (type && maybeTypeOfKind(type, 1 /* Any */ | 16384 /* Void */)) {\n return;\n }\n // If all we have is a function signature, or an arrow function with an expression body, then there is nothing to check.\n // also if HasImplicitReturn flag is not set this means that all codepaths in function body end with return or throw\n if (func.kind === 166 /* MethodSignature */ || ts.nodeIsMissing(func.body) || func.body.kind !== 233 /* Block */ || !functionHasImplicitReturn(func)) {\n return;\n }\n var hasExplicitReturn = func.flags & 512 /* HasExplicitReturn */;\n var errorNode = ts.getEffectiveReturnTypeNode(func) || func;\n if (type && type.flags & 131072 /* Never */) {\n error(errorNode, ts.Diagnostics.A_function_returning_never_cannot_have_a_reachable_end_point);\n }\n else if (type && !hasExplicitReturn) {\n // minimal check: function has syntactic return type annotation and no explicit return statements in the body\n // this function does not conform to the specification.\n error(errorNode, ts.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value);\n }\n else if (type && strictNullChecks && !isTypeAssignableTo(undefinedType, type)) {\n error(errorNode, ts.Diagnostics.Function_lacks_ending_return_statement_and_return_type_does_not_include_undefined);\n }\n else if (compilerOptions.noImplicitReturns) {\n if (!type) {\n // If return type annotation is omitted check if function has any explicit return statements.\n // If it does not have any - its inferred return type is void - don't do any checks.\n // Otherwise get inferred return type from function body and report error only if it is not void / anytype\n if (!hasExplicitReturn) {\n return;\n }\n var inferredReturnType = getReturnTypeOfSignature(getSignatureFromDeclaration(func));\n if (isUnwrappedReturnTypeVoidOrAny(func, inferredReturnType)) {\n return;\n }\n }\n error(errorNode, ts.Diagnostics.Not_all_code_paths_return_a_value);\n }\n }\n function checkFunctionExpressionOrObjectLiteralMethod(node, checkMode) {\n ts.Debug.assert(node.kind !== 167 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node));\n checkNodeDeferred(node);\n if (ts.isFunctionExpression(node)) {\n checkCollisionsForDeclarationName(node, node.name);\n }\n // The identityMapper object is used to indicate that function expressions are wildcards\n if (checkMode && checkMode & 4 /* SkipContextSensitive */ && isContextSensitive(node)) {\n // Skip parameters, return signature with return type that retains noncontextual parts so inferences can still be drawn in an early stage\n if (!ts.getEffectiveReturnTypeNode(node) && !ts.hasContextSensitiveParameters(node)) {\n // Return plain anyFunctionType if there is no possibility we'll make inferences from the return type\n var contextualSignature = getContextualSignature(node);\n if (contextualSignature && couldContainTypeVariables(getReturnTypeOfSignature(contextualSignature))) {\n var links = getNodeLinks(node);\n if (links.contextFreeType) {\n return links.contextFreeType;\n }\n var returnType = getReturnTypeFromBody(node, checkMode);\n var returnOnlySignature = createSignature(undefined, undefined, undefined, ts.emptyArray, returnType, /*resolvedTypePredicate*/ undefined, 0, 0 /* None */);\n var returnOnlyType = createAnonymousType(node.symbol, emptySymbols, [returnOnlySignature], ts.emptyArray, ts.emptyArray);\n returnOnlyType.objectFlags |= 524288 /* NonInferrableType */;\n return links.contextFreeType = returnOnlyType;\n }\n }\n return anyFunctionType;\n }\n // Grammar checking\n var hasGrammarError = checkGrammarFunctionLikeDeclaration(node);\n if (!hasGrammarError && node.kind === 211 /* FunctionExpression */) {\n checkGrammarForGenerator(node);\n }\n contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode);\n return getTypeOfSymbol(getSymbolOfNode(node));\n }\n function contextuallyCheckFunctionExpressionOrObjectLiteralMethod(node, checkMode) {\n var links = getNodeLinks(node);\n // Check if function expression is contextually typed and assign parameter types if so.\n if (!(links.flags & 1024 /* ContextChecked */)) {\n var contextualSignature = getContextualSignature(node);\n // If a type check is started at a function expression that is an argument of a function call, obtaining the\n // contextual type may recursively get back to here during overload resolution of the call. If so, we will have\n // already assigned contextual types.\n if (!(links.flags & 1024 /* ContextChecked */)) {\n links.flags |= 1024 /* ContextChecked */;\n var signature = ts.firstOrUndefined(getSignaturesOfType(getTypeOfSymbol(getSymbolOfNode(node)), 0 /* Call */));\n if (!signature) {\n return;\n }\n if (isContextSensitive(node)) {\n if (contextualSignature) {\n var inferenceContext = getInferenceContext(node);\n if (checkMode && checkMode & 2 /* Inferential */) {\n inferFromAnnotatedParameters(signature, contextualSignature, inferenceContext);\n }\n var instantiatedContextualSignature = inferenceContext ?\n instantiateSignature(contextualSignature, inferenceContext.mapper) : contextualSignature;\n assignContextualParameterTypes(signature, instantiatedContextualSignature);\n }\n else {\n // Force resolution of all parameter types such that the absence of a contextual type is consistently reflected.\n assignNonContextualParameterTypes(signature);\n }\n }\n if (contextualSignature && !getReturnTypeFromAnnotation(node) && !signature.resolvedReturnType) {\n var returnType = getReturnTypeFromBody(node, checkMode);\n if (!signature.resolvedReturnType) {\n signature.resolvedReturnType = returnType;\n }\n }\n checkSignatureDeclaration(node);\n }\n }\n }\n function checkFunctionExpressionOrObjectLiteralMethodDeferred(node) {\n ts.Debug.assert(node.kind !== 167 /* MethodDeclaration */ || ts.isObjectLiteralMethod(node));\n var functionFlags = ts.getFunctionFlags(node);\n var returnType = getReturnTypeFromAnnotation(node);\n checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType);\n if (node.body) {\n if (!ts.getEffectiveReturnTypeNode(node)) {\n // There are some checks that are only performed in getReturnTypeFromBody, that may produce errors\n // we need. An example is the noImplicitAny errors resulting from widening the return expression\n // of a function. Because checking of function expression bodies is deferred, there was never an\n // appropriate time to do this during the main walk of the file (see the comment at the top of\n // checkFunctionExpressionBodies). So it must be done now.\n getReturnTypeOfSignature(getSignatureFromDeclaration(node));\n }\n if (node.body.kind === 233 /* Block */) {\n checkSourceElement(node.body);\n }\n else {\n // From within an async function you can return either a non-promise value or a promise. Any\n // Promise/A+ compatible implementation will always assimilate any foreign promise, so we\n // should not be checking assignability of a promise to the return type. Instead, we need to\n // check assignability of the awaited type of the expression body against the promised type of\n // its return type annotation.\n var exprType = checkExpression(node.body);\n var returnOrPromisedType = returnType && unwrapReturnType(returnType, functionFlags);\n if (returnOrPromisedType) {\n if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */) { // Async function\n var awaitedType = checkAwaitedType(exprType, node.body, ts.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n checkTypeAssignableToAndOptionallyElaborate(awaitedType, returnOrPromisedType, node.body, node.body);\n }\n else { // Normal function\n checkTypeAssignableToAndOptionallyElaborate(exprType, returnOrPromisedType, node.body, node.body);\n }\n }\n }\n }\n }\n function checkArithmeticOperandType(operand, type, diagnostic, isAwaitValid) {\n if (isAwaitValid === void 0) { isAwaitValid = false; }\n if (!isTypeAssignableTo(type, numberOrBigIntType)) {\n var awaitedType = isAwaitValid && getAwaitedTypeOfPromise(type);\n errorAndMaybeSuggestAwait(operand, !!awaitedType && isTypeAssignableTo(awaitedType, numberOrBigIntType), diagnostic);\n return false;\n }\n return true;\n }\n function isReadonlyAssignmentDeclaration(d) {\n if (!ts.isCallExpression(d)) {\n return false;\n }\n if (!ts.isBindableObjectDefinePropertyCall(d)) {\n return false;\n }\n var objectLitType = checkExpressionCached(d.arguments[2]);\n var valueType = getTypeOfPropertyOfType(objectLitType, \"value\");\n if (valueType) {\n var writableProp = getPropertyOfType(objectLitType, \"writable\");\n var writableType = writableProp && getTypeOfSymbol(writableProp);\n if (!writableType || writableType === falseType || writableType === regularFalseType) {\n return true;\n }\n // We include this definition whereupon we walk back and check the type at the declaration because\n // The usual definition of `Object.defineProperty` will _not_ cause literal types to be preserved in the\n // argument types, should the type be contextualized by the call itself.\n if (writableProp && writableProp.valueDeclaration && ts.isPropertyAssignment(writableProp.valueDeclaration)) {\n var initializer = writableProp.valueDeclaration.initializer;\n var rawOriginalType = checkExpression(initializer);\n if (rawOriginalType === falseType || rawOriginalType === regularFalseType) {\n return true;\n }\n }\n return false;\n }\n var setProp = getPropertyOfType(objectLitType, \"set\");\n return !setProp;\n }\n function isReadonlySymbol(symbol) {\n // The following symbols are considered read-only:\n // Properties with a 'readonly' modifier\n // Variables declared with 'const'\n // Get accessors without matching set accessors\n // Enum members\n // Object.defineProperty assignments with writable false or no setter\n // Unions and intersections of the above (unions and intersections eagerly set isReadonly on creation)\n return !!(ts.getCheckFlags(symbol) & 8 /* Readonly */ ||\n symbol.flags & 4 /* Property */ && ts.getDeclarationModifierFlagsFromSymbol(symbol) & 64 /* Readonly */ ||\n symbol.flags & 3 /* Variable */ && getDeclarationNodeFlagsFromSymbol(symbol) & 2 /* Const */ ||\n symbol.flags & 98304 /* Accessor */ && !(symbol.flags & 65536 /* SetAccessor */) ||\n symbol.flags & 8 /* EnumMember */ ||\n ts.some(symbol.declarations, isReadonlyAssignmentDeclaration));\n }\n function isAssignmentToReadonlyEntity(expr, symbol, assignmentKind) {\n var _a, _b;\n if (assignmentKind === 0 /* None */) {\n // no assigment means it doesn't matter whether the entity is readonly\n return false;\n }\n if (isReadonlySymbol(symbol)) {\n // Allow assignments to readonly properties within constructors of the same class declaration.\n if (symbol.flags & 4 /* Property */ &&\n ts.isAccessExpression(expr) &&\n expr.expression.kind === 108 /* ThisKeyword */) {\n // Look for if this is the constructor for the class that `symbol` is a property of.\n var ctor = ts.getContainingFunction(expr);\n if (!(ctor && (ctor.kind === 169 /* Constructor */ || isJSConstructor(ctor)))) {\n return true;\n }\n if (symbol.valueDeclaration) {\n var isAssignmentDeclaration_1 = ts.isBinaryExpression(symbol.valueDeclaration);\n var isLocalPropertyDeclaration = ctor.parent === symbol.valueDeclaration.parent;\n var isLocalParameterProperty = ctor === symbol.valueDeclaration.parent;\n var isLocalThisPropertyAssignment = isAssignmentDeclaration_1 && ((_a = symbol.parent) === null || _a === void 0 ? void 0 : _a.valueDeclaration) === ctor.parent;\n var isLocalThisPropertyAssignmentConstructorFunction = isAssignmentDeclaration_1 && ((_b = symbol.parent) === null || _b === void 0 ? void 0 : _b.valueDeclaration) === ctor;\n var isWriteableSymbol = isLocalPropertyDeclaration\n || isLocalParameterProperty\n || isLocalThisPropertyAssignment\n || isLocalThisPropertyAssignmentConstructorFunction;\n return !isWriteableSymbol;\n }\n }\n return true;\n }\n if (ts.isAccessExpression(expr)) {\n // references through namespace import should be readonly\n var node = ts.skipParentheses(expr.expression);\n if (node.kind === 79 /* Identifier */) {\n var symbol_2 = getNodeLinks(node).resolvedSymbol;\n if (symbol_2.flags & 2097152 /* Alias */) {\n var declaration = getDeclarationOfAliasSymbol(symbol_2);\n return !!declaration && declaration.kind === 266 /* NamespaceImport */;\n }\n }\n }\n return false;\n }\n function checkReferenceExpression(expr, invalidReferenceMessage, invalidOptionalChainMessage) {\n // References are combinations of identifiers, parentheses, and property accesses.\n var node = ts.skipOuterExpressions(expr, 6 /* Assertions */ | 1 /* Parentheses */);\n if (node.kind !== 79 /* Identifier */ && !ts.isAccessExpression(node)) {\n error(expr, invalidReferenceMessage);\n return false;\n }\n if (node.flags & 32 /* OptionalChain */) {\n error(expr, invalidOptionalChainMessage);\n return false;\n }\n return true;\n }\n function checkDeleteExpression(node) {\n checkExpression(node.expression);\n var expr = ts.skipParentheses(node.expression);\n if (!ts.isAccessExpression(expr)) {\n error(expr, ts.Diagnostics.The_operand_of_a_delete_operator_must_be_a_property_reference);\n return booleanType;\n }\n if (ts.isPropertyAccessExpression(expr) && ts.isPrivateIdentifier(expr.name)) {\n error(expr, ts.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_private_identifier);\n }\n var links = getNodeLinks(expr);\n var symbol = getExportSymbolOfValueSymbolIfExported(links.resolvedSymbol);\n if (symbol) {\n if (isReadonlySymbol(symbol)) {\n error(expr, ts.Diagnostics.The_operand_of_a_delete_operator_cannot_be_a_read_only_property);\n }\n checkDeleteExpressionMustBeOptional(expr, symbol);\n }\n return booleanType;\n }\n function checkDeleteExpressionMustBeOptional(expr, symbol) {\n var type = getTypeOfSymbol(symbol);\n if (strictNullChecks &&\n !(type.flags & (3 /* AnyOrUnknown */ | 131072 /* Never */)) &&\n !(exactOptionalPropertyTypes ? symbol.flags & 16777216 /* Optional */ : getFalsyFlags(type) & 32768 /* Undefined */)) {\n error(expr, ts.Diagnostics.The_operand_of_a_delete_operator_must_be_optional);\n }\n }\n function checkTypeOfExpression(node) {\n checkExpression(node.expression);\n return typeofType;\n }\n function checkVoidExpression(node) {\n checkExpression(node.expression);\n return undefinedWideningType;\n }\n function checkAwaitExpression(node) {\n // Grammar checking\n if (produceDiagnostics) {\n var container = ts.getContainingFunctionOrClassStaticBlock(node);\n if (container && ts.isClassStaticBlockDeclaration(container)) {\n error(node, ts.Diagnostics.Await_expression_cannot_be_used_inside_a_class_static_block);\n }\n else if (!(node.flags & 32768 /* AwaitContext */)) {\n if (ts.isInTopLevelContext(node)) {\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n var span = void 0;\n if (!ts.isEffectiveExternalModule(sourceFile, compilerOptions)) {\n if (!span)\n span = ts.getSpanOfTokenAtPosition(sourceFile, node.pos);\n var diagnostic = ts.createFileDiagnostic(sourceFile, span.start, span.length, ts.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module);\n diagnostics.add(diagnostic);\n }\n if ((moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.System) || languageVersion < 4 /* ES2017 */) {\n span = ts.getSpanOfTokenAtPosition(sourceFile, node.pos);\n var diagnostic = ts.createFileDiagnostic(sourceFile, span.start, span.length, ts.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher);\n diagnostics.add(diagnostic);\n }\n }\n }\n else {\n // use of 'await' in non-async function\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n var span = ts.getSpanOfTokenAtPosition(sourceFile, node.pos);\n var diagnostic = ts.createFileDiagnostic(sourceFile, span.start, span.length, ts.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);\n if (container && container.kind !== 169 /* Constructor */ && (ts.getFunctionFlags(container) & 2 /* Async */) === 0) {\n var relatedInfo = ts.createDiagnosticForNode(container, ts.Diagnostics.Did_you_mean_to_mark_this_function_as_async);\n ts.addRelatedInfo(diagnostic, relatedInfo);\n }\n diagnostics.add(diagnostic);\n }\n }\n }\n if (isInParameterInitializerBeforeContainingFunction(node)) {\n error(node, ts.Diagnostics.await_expressions_cannot_be_used_in_a_parameter_initializer);\n }\n }\n var operandType = checkExpression(node.expression);\n var awaitedType = checkAwaitedType(operandType, node, ts.Diagnostics.Type_of_await_operand_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n if (awaitedType === operandType && awaitedType !== errorType && !(operandType.flags & 3 /* AnyOrUnknown */)) {\n addErrorOrSuggestion(/*isError*/ false, ts.createDiagnosticForNode(node, ts.Diagnostics.await_has_no_effect_on_the_type_of_this_expression));\n }\n return awaitedType;\n }\n function checkPrefixUnaryExpression(node) {\n var operandType = checkExpression(node.operand);\n if (operandType === silentNeverType) {\n return silentNeverType;\n }\n switch (node.operand.kind) {\n case 8 /* NumericLiteral */:\n switch (node.operator) {\n case 40 /* MinusToken */:\n return getFreshTypeOfLiteralType(getNumberLiteralType(-node.operand.text));\n case 39 /* PlusToken */:\n return getFreshTypeOfLiteralType(getNumberLiteralType(+node.operand.text));\n }\n break;\n case 9 /* BigIntLiteral */:\n if (node.operator === 40 /* MinusToken */) {\n return getFreshTypeOfLiteralType(getBigIntLiteralType({\n negative: true,\n base10Value: ts.parsePseudoBigInt(node.operand.text)\n }));\n }\n }\n switch (node.operator) {\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n checkNonNullType(operandType, node.operand);\n if (maybeTypeOfKind(operandType, 12288 /* ESSymbolLike */)) {\n error(node.operand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(node.operator));\n }\n if (node.operator === 39 /* PlusToken */) {\n if (maybeTypeOfKind(operandType, 2112 /* BigIntLike */)) {\n error(node.operand, ts.Diagnostics.Operator_0_cannot_be_applied_to_type_1, ts.tokenToString(node.operator), typeToString(getBaseTypeOfLiteralType(operandType)));\n }\n return numberType;\n }\n return getUnaryResultType(operandType);\n case 53 /* ExclamationToken */:\n checkTruthinessExpression(node.operand);\n var facts = getTypeFacts(operandType) & (4194304 /* Truthy */ | 8388608 /* Falsy */);\n return facts === 4194304 /* Truthy */ ? falseType :\n facts === 8388608 /* Falsy */ ? trueType :\n booleanType;\n case 45 /* PlusPlusToken */:\n case 46 /* MinusMinusToken */:\n var ok = checkArithmeticOperandType(node.operand, checkNonNullType(operandType, node.operand), ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);\n if (ok) {\n // run check only if former checks succeeded to avoid reporting cascading errors\n checkReferenceExpression(node.operand, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access);\n }\n return getUnaryResultType(operandType);\n }\n return errorType;\n }\n function checkPostfixUnaryExpression(node) {\n var operandType = checkExpression(node.operand);\n if (operandType === silentNeverType) {\n return silentNeverType;\n }\n var ok = checkArithmeticOperandType(node.operand, checkNonNullType(operandType, node.operand), ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type);\n if (ok) {\n // run check only if former checks succeeded to avoid reporting cascading errors\n checkReferenceExpression(node.operand, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_or_a_property_access, ts.Diagnostics.The_operand_of_an_increment_or_decrement_operator_may_not_be_an_optional_property_access);\n }\n return getUnaryResultType(operandType);\n }\n function getUnaryResultType(operandType) {\n if (maybeTypeOfKind(operandType, 2112 /* BigIntLike */)) {\n return isTypeAssignableToKind(operandType, 3 /* AnyOrUnknown */) || maybeTypeOfKind(operandType, 296 /* NumberLike */)\n ? numberOrBigIntType\n : bigintType;\n }\n // If it's not a bigint type, implicit coercion will result in a number\n return numberType;\n }\n // Return true if type might be of the given kind. A union or intersection type might be of a given\n // kind if at least one constituent type is of the given kind.\n function maybeTypeOfKind(type, kind) {\n if (type.flags & kind) {\n return true;\n }\n if (type.flags & 3145728 /* UnionOrIntersection */) {\n var types = type.types;\n for (var _i = 0, types_21 = types; _i < types_21.length; _i++) {\n var t = types_21[_i];\n if (maybeTypeOfKind(t, kind)) {\n return true;\n }\n }\n }\n return false;\n }\n function isTypeAssignableToKind(source, kind, strict) {\n if (source.flags & kind) {\n return true;\n }\n if (strict && source.flags & (3 /* AnyOrUnknown */ | 16384 /* Void */ | 32768 /* Undefined */ | 65536 /* Null */)) {\n return false;\n }\n return !!(kind & 296 /* NumberLike */) && isTypeAssignableTo(source, numberType) ||\n !!(kind & 2112 /* BigIntLike */) && isTypeAssignableTo(source, bigintType) ||\n !!(kind & 402653316 /* StringLike */) && isTypeAssignableTo(source, stringType) ||\n !!(kind & 528 /* BooleanLike */) && isTypeAssignableTo(source, booleanType) ||\n !!(kind & 16384 /* Void */) && isTypeAssignableTo(source, voidType) ||\n !!(kind & 131072 /* Never */) && isTypeAssignableTo(source, neverType) ||\n !!(kind & 65536 /* Null */) && isTypeAssignableTo(source, nullType) ||\n !!(kind & 32768 /* Undefined */) && isTypeAssignableTo(source, undefinedType) ||\n !!(kind & 4096 /* ESSymbol */) && isTypeAssignableTo(source, esSymbolType) ||\n !!(kind & 67108864 /* NonPrimitive */) && isTypeAssignableTo(source, nonPrimitiveType);\n }\n function allTypesAssignableToKind(source, kind, strict) {\n return source.flags & 1048576 /* Union */ ?\n ts.every(source.types, function (subType) { return allTypesAssignableToKind(subType, kind, strict); }) :\n isTypeAssignableToKind(source, kind, strict);\n }\n function isConstEnumObjectType(type) {\n return !!(ts.getObjectFlags(type) & 16 /* Anonymous */) && !!type.symbol && isConstEnumSymbol(type.symbol);\n }\n function isConstEnumSymbol(symbol) {\n return (symbol.flags & 128 /* ConstEnum */) !== 0;\n }\n function checkInstanceOfExpression(left, right, leftType, rightType) {\n if (leftType === silentNeverType || rightType === silentNeverType) {\n return silentNeverType;\n }\n // TypeScript 1.0 spec (April 2014): 4.15.4\n // The instanceof operator requires the left operand to be of type Any, an object type, or a type parameter type,\n // and the right operand to be of type Any, a subtype of the 'Function' interface type, or have a call or construct signature.\n // The result is always of the Boolean primitive type.\n // NOTE: do not raise error if leftType is unknown as related error was already reported\n if (!isTypeAny(leftType) &&\n allTypesAssignableToKind(leftType, 131068 /* Primitive */)) {\n error(left, ts.Diagnostics.The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter);\n }\n // NOTE: do not raise error if right is unknown as related error was already reported\n if (!(isTypeAny(rightType) || typeHasCallOrConstructSignatures(rightType) || isTypeSubtypeOf(rightType, globalFunctionType))) {\n error(right, ts.Diagnostics.The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type);\n }\n return booleanType;\n }\n function checkInExpression(left, right, leftType, rightType) {\n if (leftType === silentNeverType || rightType === silentNeverType) {\n return silentNeverType;\n }\n leftType = checkNonNullType(leftType, left);\n rightType = checkNonNullType(rightType, right);\n // TypeScript 1.0 spec (April 2014): 4.15.5\n // The in operator requires the left operand to be of type Any, the String primitive type, or the Number primitive type,\n // and the right operand to be\n //\n // 1. assignable to the non-primitive type,\n // 2. an unconstrained type parameter,\n // 3. a union or intersection including one or more type parameters, whose constituents are all assignable to the\n // the non-primitive type, or are unconstrainted type parameters, or have constraints assignable to the\n // non-primitive type, or\n // 4. a type parameter whose constraint is\n // i. an object type,\n // ii. the non-primitive type, or\n // iii. a union or intersection with at least one constituent assignable to an object or non-primitive type.\n //\n // The divergent behavior for type parameters and unions containing type parameters is a workaround for type\n // parameters not being narrowable. If the right operand is a concrete type, we can error if there is any chance\n // it is a primitive. But if the operand is a type parameter, it cannot be narrowed, so we don't issue an error\n // unless *all* instantiations would result in an error.\n //\n // The result is always of the Boolean primitive type.\n if (!(allTypesAssignableToKind(leftType, 402653316 /* StringLike */ | 296 /* NumberLike */ | 12288 /* ESSymbolLike */) ||\n isTypeAssignableToKind(leftType, 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */ | 262144 /* TypeParameter */))) {\n error(left, ts.Diagnostics.The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol);\n }\n var rightTypeConstraint = getConstraintOfType(rightType);\n if (!allTypesAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */) ||\n rightTypeConstraint && (isTypeAssignableToKind(rightType, 3145728 /* UnionOrIntersection */) && !allTypesAssignableToKind(rightTypeConstraint, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */) ||\n !maybeTypeOfKind(rightTypeConstraint, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */ | 524288 /* Object */))) {\n error(right, ts.Diagnostics.The_right_hand_side_of_an_in_expression_must_not_be_a_primitive);\n }\n return booleanType;\n }\n function checkObjectLiteralAssignment(node, sourceType, rightIsThis) {\n var properties = node.properties;\n if (strictNullChecks && properties.length === 0) {\n return checkNonNullType(sourceType, node);\n }\n for (var i = 0; i < properties.length; i++) {\n checkObjectLiteralDestructuringPropertyAssignment(node, sourceType, i, properties, rightIsThis);\n }\n return sourceType;\n }\n /** Note: If property cannot be a SpreadAssignment, then allProperties does not need to be provided */\n function checkObjectLiteralDestructuringPropertyAssignment(node, objectLiteralType, propertyIndex, allProperties, rightIsThis) {\n if (rightIsThis === void 0) { rightIsThis = false; }\n var properties = node.properties;\n var property = properties[propertyIndex];\n if (property.kind === 291 /* PropertyAssignment */ || property.kind === 292 /* ShorthandPropertyAssignment */) {\n var name = property.name;\n var exprType = getLiteralTypeFromPropertyName(name);\n if (isTypeUsableAsPropertyName(exprType)) {\n var text = getPropertyNameFromType(exprType);\n var prop = getPropertyOfType(objectLiteralType, text);\n if (prop) {\n markPropertyAsReferenced(prop, property, rightIsThis);\n checkPropertyAccessibility(property, /*isSuper*/ false, /*writing*/ true, objectLiteralType, prop);\n }\n }\n var elementType = getIndexedAccessType(objectLiteralType, exprType, 32 /* ExpressionPosition */, name);\n var type = getFlowTypeOfDestructuring(property, elementType);\n return checkDestructuringAssignment(property.kind === 292 /* ShorthandPropertyAssignment */ ? property : property.initializer, type);\n }\n else if (property.kind === 293 /* SpreadAssignment */) {\n if (propertyIndex < properties.length - 1) {\n error(property, ts.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);\n }\n else {\n if (languageVersion < 99 /* ESNext */) {\n checkExternalEmitHelpers(property, 4 /* Rest */);\n }\n var nonRestNames = [];\n if (allProperties) {\n for (var _i = 0, allProperties_1 = allProperties; _i < allProperties_1.length; _i++) {\n var otherProperty = allProperties_1[_i];\n if (!ts.isSpreadAssignment(otherProperty)) {\n nonRestNames.push(otherProperty.name);\n }\n }\n }\n var type = getRestType(objectLiteralType, nonRestNames, objectLiteralType.symbol);\n checkGrammarForDisallowedTrailingComma(allProperties, ts.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n return checkDestructuringAssignment(property.expression, type);\n }\n }\n else {\n error(property, ts.Diagnostics.Property_assignment_expected);\n }\n }\n function checkArrayLiteralAssignment(node, sourceType, checkMode) {\n var elements = node.elements;\n if (languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) {\n checkExternalEmitHelpers(node, 512 /* Read */);\n }\n // This elementType will be used if the specific property corresponding to this index is not\n // present (aka the tuple element property). This call also checks that the parentType is in\n // fact an iterable or array (depending on target language).\n var possiblyOutOfBoundsType = checkIteratedTypeOrElementType(65 /* Destructuring */ | 128 /* PossiblyOutOfBounds */, sourceType, undefinedType, node) || errorType;\n var inBoundsType = compilerOptions.noUncheckedIndexedAccess ? undefined : possiblyOutOfBoundsType;\n for (var i = 0; i < elements.length; i++) {\n var type = possiblyOutOfBoundsType;\n if (node.elements[i].kind === 223 /* SpreadElement */) {\n type = inBoundsType = inBoundsType !== null && inBoundsType !== void 0 ? inBoundsType : (checkIteratedTypeOrElementType(65 /* Destructuring */, sourceType, undefinedType, node) || errorType);\n }\n checkArrayLiteralDestructuringElementAssignment(node, sourceType, i, type, checkMode);\n }\n return sourceType;\n }\n function checkArrayLiteralDestructuringElementAssignment(node, sourceType, elementIndex, elementType, checkMode) {\n var elements = node.elements;\n var element = elements[elementIndex];\n if (element.kind !== 225 /* OmittedExpression */) {\n if (element.kind !== 223 /* SpreadElement */) {\n var indexType = getNumberLiteralType(elementIndex);\n if (isArrayLikeType(sourceType)) {\n // We create a synthetic expression so that getIndexedAccessType doesn't get confused\n // when the element is a SyntaxKind.ElementAccessExpression.\n var accessFlags = 32 /* ExpressionPosition */ | (hasDefaultValue(element) ? 16 /* NoTupleBoundsCheck */ : 0);\n var elementType_2 = getIndexedAccessTypeOrUndefined(sourceType, indexType, accessFlags, createSyntheticExpression(element, indexType)) || errorType;\n var assignedType = hasDefaultValue(element) ? getTypeWithFacts(elementType_2, 524288 /* NEUndefined */) : elementType_2;\n var type = getFlowTypeOfDestructuring(element, assignedType);\n return checkDestructuringAssignment(element, type, checkMode);\n }\n return checkDestructuringAssignment(element, elementType, checkMode);\n }\n if (elementIndex < elements.length - 1) {\n error(element, ts.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);\n }\n else {\n var restExpression = element.expression;\n if (restExpression.kind === 219 /* BinaryExpression */ && restExpression.operatorToken.kind === 63 /* EqualsToken */) {\n error(restExpression.operatorToken, ts.Diagnostics.A_rest_element_cannot_have_an_initializer);\n }\n else {\n checkGrammarForDisallowedTrailingComma(node.elements, ts.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n var type = everyType(sourceType, isTupleType) ?\n mapType(sourceType, function (t) { return sliceTupleType(t, elementIndex); }) :\n createArrayType(elementType);\n return checkDestructuringAssignment(restExpression, type, checkMode);\n }\n }\n }\n return undefined;\n }\n function checkDestructuringAssignment(exprOrAssignment, sourceType, checkMode, rightIsThis) {\n var target;\n if (exprOrAssignment.kind === 292 /* ShorthandPropertyAssignment */) {\n var prop = exprOrAssignment;\n if (prop.objectAssignmentInitializer) {\n // In strict null checking mode, if a default value of a non-undefined type is specified, remove\n // undefined from the final type.\n if (strictNullChecks &&\n !(getFalsyFlags(checkExpression(prop.objectAssignmentInitializer)) & 32768 /* Undefined */)) {\n sourceType = getTypeWithFacts(sourceType, 524288 /* NEUndefined */);\n }\n checkBinaryLikeExpression(prop.name, prop.equalsToken, prop.objectAssignmentInitializer, checkMode);\n }\n target = exprOrAssignment.name;\n }\n else {\n target = exprOrAssignment;\n }\n if (target.kind === 219 /* BinaryExpression */ && target.operatorToken.kind === 63 /* EqualsToken */) {\n checkBinaryExpression(target, checkMode);\n target = target.left;\n }\n if (target.kind === 203 /* ObjectLiteralExpression */) {\n return checkObjectLiteralAssignment(target, sourceType, rightIsThis);\n }\n if (target.kind === 202 /* ArrayLiteralExpression */) {\n return checkArrayLiteralAssignment(target, sourceType, checkMode);\n }\n return checkReferenceAssignment(target, sourceType, checkMode);\n }\n function checkReferenceAssignment(target, sourceType, checkMode) {\n var targetType = checkExpression(target, checkMode);\n var error = target.parent.kind === 293 /* SpreadAssignment */ ?\n ts.Diagnostics.The_target_of_an_object_rest_assignment_must_be_a_variable_or_a_property_access :\n ts.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access;\n var optionalError = target.parent.kind === 293 /* SpreadAssignment */ ?\n ts.Diagnostics.The_target_of_an_object_rest_assignment_may_not_be_an_optional_property_access :\n ts.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access;\n if (checkReferenceExpression(target, error, optionalError)) {\n checkTypeAssignableToAndOptionallyElaborate(sourceType, targetType, target, target);\n }\n if (ts.isPrivateIdentifierPropertyAccessExpression(target)) {\n checkExternalEmitHelpers(target.parent, 1048576 /* ClassPrivateFieldSet */);\n }\n return sourceType;\n }\n /**\n * This is a *shallow* check: An expression is side-effect-free if the\n * evaluation of the expression *itself* cannot produce side effects.\n * For example, x++ / 3 is side-effect free because the / operator\n * does not have side effects.\n * The intent is to \"smell test\" an expression for correctness in positions where\n * its value is discarded (e.g. the left side of the comma operator).\n */\n function isSideEffectFree(node) {\n node = ts.skipParentheses(node);\n switch (node.kind) {\n case 79 /* Identifier */:\n case 10 /* StringLiteral */:\n case 13 /* RegularExpressionLiteral */:\n case 208 /* TaggedTemplateExpression */:\n case 221 /* TemplateExpression */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 104 /* NullKeyword */:\n case 151 /* UndefinedKeyword */:\n case 211 /* FunctionExpression */:\n case 224 /* ClassExpression */:\n case 212 /* ArrowFunction */:\n case 202 /* ArrayLiteralExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 214 /* TypeOfExpression */:\n case 228 /* NonNullExpression */:\n case 277 /* JsxSelfClosingElement */:\n case 276 /* JsxElement */:\n return true;\n case 220 /* ConditionalExpression */:\n return isSideEffectFree(node.whenTrue) &&\n isSideEffectFree(node.whenFalse);\n case 219 /* BinaryExpression */:\n if (ts.isAssignmentOperator(node.operatorToken.kind)) {\n return false;\n }\n return isSideEffectFree(node.left) &&\n isSideEffectFree(node.right);\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n // Unary operators ~, !, +, and - have no side effects.\n // The rest do.\n switch (node.operator) {\n case 53 /* ExclamationToken */:\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n return true;\n }\n return false;\n // Some forms listed here for clarity\n case 215 /* VoidExpression */: // Explicit opt-out\n case 209 /* TypeAssertionExpression */: // Not SEF, but can produce useful type warnings\n case 227 /* AsExpression */: // Not SEF, but can produce useful type warnings\n default:\n return false;\n }\n }\n function isTypeEqualityComparableTo(source, target) {\n return (target.flags & 98304 /* Nullable */) !== 0 || isTypeComparableTo(source, target);\n }\n function createCheckBinaryExpression() {\n var trampoline = ts.createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, foldState);\n return function (node, checkMode) {\n var result = trampoline(node, checkMode);\n ts.Debug.assertIsDefined(result);\n return result;\n };\n function onEnter(node, state, checkMode) {\n if (state) {\n state.stackIndex++;\n state.skip = false;\n setLeftType(state, /*type*/ undefined);\n setLastResult(state, /*type*/ undefined);\n }\n else {\n state = {\n checkMode: checkMode,\n skip: false,\n stackIndex: 0,\n typeStack: [undefined, undefined],\n };\n }\n if (ts.isInJSFile(node) && ts.getAssignedExpandoInitializer(node)) {\n state.skip = true;\n setLastResult(state, checkExpression(node.right, checkMode));\n return state;\n }\n checkGrammarNullishCoalesceWithLogicalExpression(node);\n var operator = node.operatorToken.kind;\n if (operator === 63 /* EqualsToken */ && (node.left.kind === 203 /* ObjectLiteralExpression */ || node.left.kind === 202 /* ArrayLiteralExpression */)) {\n state.skip = true;\n setLastResult(state, checkDestructuringAssignment(node.left, checkExpression(node.right, checkMode), checkMode, node.right.kind === 108 /* ThisKeyword */));\n return state;\n }\n return state;\n }\n function onLeft(left, state, _node) {\n if (!state.skip) {\n return maybeCheckExpression(state, left);\n }\n }\n function onOperator(operatorToken, state, node) {\n if (!state.skip) {\n var leftType = getLastResult(state);\n ts.Debug.assertIsDefined(leftType);\n setLeftType(state, leftType);\n setLastResult(state, /*type*/ undefined);\n var operator = operatorToken.kind;\n if (operator === 55 /* AmpersandAmpersandToken */ || operator === 56 /* BarBarToken */ || operator === 60 /* QuestionQuestionToken */) {\n if (operator === 55 /* AmpersandAmpersandToken */) {\n var parent = ts.walkUpParenthesizedExpressions(node.parent);\n checkTestingKnownTruthyCallableOrAwaitableType(node.left, leftType, ts.isIfStatement(parent) ? parent.thenStatement : undefined);\n }\n checkTruthinessOfType(leftType, node.left);\n }\n }\n }\n function onRight(right, state, _node) {\n if (!state.skip) {\n return maybeCheckExpression(state, right);\n }\n }\n function onExit(node, state) {\n var result;\n if (state.skip) {\n result = getLastResult(state);\n }\n else {\n var leftType = getLeftType(state);\n ts.Debug.assertIsDefined(leftType);\n var rightType = getLastResult(state);\n ts.Debug.assertIsDefined(rightType);\n result = checkBinaryLikeExpressionWorker(node.left, node.operatorToken, node.right, leftType, rightType, node);\n }\n state.skip = false;\n setLeftType(state, /*type*/ undefined);\n setLastResult(state, /*type*/ undefined);\n state.stackIndex--;\n return result;\n }\n function foldState(state, result, _side) {\n setLastResult(state, result);\n return state;\n }\n function maybeCheckExpression(state, node) {\n if (ts.isBinaryExpression(node)) {\n return node;\n }\n setLastResult(state, checkExpression(node, state.checkMode));\n }\n function getLeftType(state) {\n return state.typeStack[state.stackIndex];\n }\n function setLeftType(state, type) {\n state.typeStack[state.stackIndex] = type;\n }\n function getLastResult(state) {\n return state.typeStack[state.stackIndex + 1];\n }\n function setLastResult(state, type) {\n // To reduce overhead, reuse the next stack entry to store the\n // last result. This avoids the overhead of an additional property\n // on `WorkArea` and reuses empty stack entries as we walk back up\n // the stack.\n state.typeStack[state.stackIndex + 1] = type;\n }\n }\n function checkGrammarNullishCoalesceWithLogicalExpression(node) {\n var left = node.left, operatorToken = node.operatorToken, right = node.right;\n if (operatorToken.kind === 60 /* QuestionQuestionToken */) {\n if (ts.isBinaryExpression(left) && (left.operatorToken.kind === 56 /* BarBarToken */ || left.operatorToken.kind === 55 /* AmpersandAmpersandToken */)) {\n grammarErrorOnNode(left, ts.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, ts.tokenToString(left.operatorToken.kind), ts.tokenToString(operatorToken.kind));\n }\n if (ts.isBinaryExpression(right) && (right.operatorToken.kind === 56 /* BarBarToken */ || right.operatorToken.kind === 55 /* AmpersandAmpersandToken */)) {\n grammarErrorOnNode(right, ts.Diagnostics._0_and_1_operations_cannot_be_mixed_without_parentheses, ts.tokenToString(right.operatorToken.kind), ts.tokenToString(operatorToken.kind));\n }\n }\n }\n // Note that this and `checkBinaryExpression` above should behave mostly the same, except this elides some\n // expression-wide checks and does not use a work stack to fold nested binary expressions into the same callstack frame\n function checkBinaryLikeExpression(left, operatorToken, right, checkMode, errorNode) {\n var operator = operatorToken.kind;\n if (operator === 63 /* EqualsToken */ && (left.kind === 203 /* ObjectLiteralExpression */ || left.kind === 202 /* ArrayLiteralExpression */)) {\n return checkDestructuringAssignment(left, checkExpression(right, checkMode), checkMode, right.kind === 108 /* ThisKeyword */);\n }\n var leftType;\n if (operator === 55 /* AmpersandAmpersandToken */ || operator === 56 /* BarBarToken */ || operator === 60 /* QuestionQuestionToken */) {\n leftType = checkTruthinessExpression(left, checkMode);\n }\n else {\n leftType = checkExpression(left, checkMode);\n }\n var rightType = checkExpression(right, checkMode);\n return checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode);\n }\n function checkBinaryLikeExpressionWorker(left, operatorToken, right, leftType, rightType, errorNode) {\n var operator = operatorToken.kind;\n switch (operator) {\n case 41 /* AsteriskToken */:\n case 42 /* AsteriskAsteriskToken */:\n case 66 /* AsteriskEqualsToken */:\n case 67 /* AsteriskAsteriskEqualsToken */:\n case 43 /* SlashToken */:\n case 68 /* SlashEqualsToken */:\n case 44 /* PercentToken */:\n case 69 /* PercentEqualsToken */:\n case 40 /* MinusToken */:\n case 65 /* MinusEqualsToken */:\n case 47 /* LessThanLessThanToken */:\n case 70 /* LessThanLessThanEqualsToken */:\n case 48 /* GreaterThanGreaterThanToken */:\n case 71 /* GreaterThanGreaterThanEqualsToken */:\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n case 51 /* BarToken */:\n case 74 /* BarEqualsToken */:\n case 52 /* CaretToken */:\n case 78 /* CaretEqualsToken */:\n case 50 /* AmpersandToken */:\n case 73 /* AmpersandEqualsToken */:\n if (leftType === silentNeverType || rightType === silentNeverType) {\n return silentNeverType;\n }\n leftType = checkNonNullType(leftType, left);\n rightType = checkNonNullType(rightType, right);\n var suggestedOperator = void 0;\n // if a user tries to apply a bitwise operator to 2 boolean operands\n // try and return them a helpful suggestion\n if ((leftType.flags & 528 /* BooleanLike */) &&\n (rightType.flags & 528 /* BooleanLike */) &&\n (suggestedOperator = getSuggestedBooleanOperator(operatorToken.kind)) !== undefined) {\n error(errorNode || operatorToken, ts.Diagnostics.The_0_operator_is_not_allowed_for_boolean_types_Consider_using_1_instead, ts.tokenToString(operatorToken.kind), ts.tokenToString(suggestedOperator));\n return numberType;\n }\n else {\n // otherwise just check each operand separately and report errors as normal\n var leftOk = checkArithmeticOperandType(left, leftType, ts.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, /*isAwaitValid*/ true);\n var rightOk = checkArithmeticOperandType(right, rightType, ts.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type, /*isAwaitValid*/ true);\n var resultType_1;\n // If both are any or unknown, allow operation; assume it will resolve to number\n if ((isTypeAssignableToKind(leftType, 3 /* AnyOrUnknown */) && isTypeAssignableToKind(rightType, 3 /* AnyOrUnknown */)) ||\n // Or, if neither could be bigint, implicit coercion results in a number result\n !(maybeTypeOfKind(leftType, 2112 /* BigIntLike */) || maybeTypeOfKind(rightType, 2112 /* BigIntLike */))) {\n resultType_1 = numberType;\n }\n // At least one is assignable to bigint, so check that both are\n else if (bothAreBigIntLike(leftType, rightType)) {\n switch (operator) {\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n reportOperatorError();\n break;\n case 42 /* AsteriskAsteriskToken */:\n case 67 /* AsteriskAsteriskEqualsToken */:\n if (languageVersion < 3 /* ES2016 */) {\n error(errorNode, ts.Diagnostics.Exponentiation_cannot_be_performed_on_bigint_values_unless_the_target_option_is_set_to_es2016_or_later);\n }\n }\n resultType_1 = bigintType;\n }\n // Exactly one of leftType/rightType is assignable to bigint\n else {\n reportOperatorError(bothAreBigIntLike);\n resultType_1 = errorType;\n }\n if (leftOk && rightOk) {\n checkAssignmentOperator(resultType_1);\n }\n return resultType_1;\n }\n case 39 /* PlusToken */:\n case 64 /* PlusEqualsToken */:\n if (leftType === silentNeverType || rightType === silentNeverType) {\n return silentNeverType;\n }\n if (!isTypeAssignableToKind(leftType, 402653316 /* StringLike */) && !isTypeAssignableToKind(rightType, 402653316 /* StringLike */)) {\n leftType = checkNonNullType(leftType, left);\n rightType = checkNonNullType(rightType, right);\n }\n var resultType = void 0;\n if (isTypeAssignableToKind(leftType, 296 /* NumberLike */, /*strict*/ true) && isTypeAssignableToKind(rightType, 296 /* NumberLike */, /*strict*/ true)) {\n // Operands of an enum type are treated as having the primitive type Number.\n // If both operands are of the Number primitive type, the result is of the Number primitive type.\n resultType = numberType;\n }\n else if (isTypeAssignableToKind(leftType, 2112 /* BigIntLike */, /*strict*/ true) && isTypeAssignableToKind(rightType, 2112 /* BigIntLike */, /*strict*/ true)) {\n // If both operands are of the BigInt primitive type, the result is of the BigInt primitive type.\n resultType = bigintType;\n }\n else if (isTypeAssignableToKind(leftType, 402653316 /* StringLike */, /*strict*/ true) || isTypeAssignableToKind(rightType, 402653316 /* StringLike */, /*strict*/ true)) {\n // If one or both operands are of the String primitive type, the result is of the String primitive type.\n resultType = stringType;\n }\n else if (isTypeAny(leftType) || isTypeAny(rightType)) {\n // Otherwise, the result is of type Any.\n // NOTE: unknown type here denotes error type. Old compiler treated this case as any type so do we.\n resultType = leftType === errorType || rightType === errorType ? errorType : anyType;\n }\n // Symbols are not allowed at all in arithmetic expressions\n if (resultType && !checkForDisallowedESSymbolOperand(operator)) {\n return resultType;\n }\n if (!resultType) {\n // Types that have a reasonably good chance of being a valid operand type.\n // If both types have an awaited type of one of these, we'll assume the user\n // might be missing an await without doing an exhaustive check that inserting\n // await(s) will actually be a completely valid binary expression.\n var closeEnoughKind_1 = 296 /* NumberLike */ | 2112 /* BigIntLike */ | 402653316 /* StringLike */ | 3 /* AnyOrUnknown */;\n reportOperatorError(function (left, right) {\n return isTypeAssignableToKind(left, closeEnoughKind_1) &&\n isTypeAssignableToKind(right, closeEnoughKind_1);\n });\n return anyType;\n }\n if (operator === 64 /* PlusEqualsToken */) {\n checkAssignmentOperator(resultType);\n }\n return resultType;\n case 29 /* LessThanToken */:\n case 31 /* GreaterThanToken */:\n case 32 /* LessThanEqualsToken */:\n case 33 /* GreaterThanEqualsToken */:\n if (checkForDisallowedESSymbolOperand(operator)) {\n leftType = getBaseTypeOfLiteralType(checkNonNullType(leftType, left));\n rightType = getBaseTypeOfLiteralType(checkNonNullType(rightType, right));\n reportOperatorErrorUnless(function (left, right) {\n return isTypeComparableTo(left, right) || isTypeComparableTo(right, left) || (isTypeAssignableTo(left, numberOrBigIntType) && isTypeAssignableTo(right, numberOrBigIntType));\n });\n }\n return booleanType;\n case 34 /* EqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n case 36 /* EqualsEqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n reportOperatorErrorUnless(function (left, right) { return isTypeEqualityComparableTo(left, right) || isTypeEqualityComparableTo(right, left); });\n return booleanType;\n case 102 /* InstanceOfKeyword */:\n return checkInstanceOfExpression(left, right, leftType, rightType);\n case 101 /* InKeyword */:\n return checkInExpression(left, right, leftType, rightType);\n case 55 /* AmpersandAmpersandToken */:\n case 76 /* AmpersandAmpersandEqualsToken */: {\n var resultType_2 = getTypeFacts(leftType) & 4194304 /* Truthy */ ?\n getUnionType([extractDefinitelyFalsyTypes(strictNullChecks ? leftType : getBaseTypeOfLiteralType(rightType)), rightType]) :\n leftType;\n if (operator === 76 /* AmpersandAmpersandEqualsToken */) {\n checkAssignmentOperator(rightType);\n }\n return resultType_2;\n }\n case 56 /* BarBarToken */:\n case 75 /* BarBarEqualsToken */: {\n var resultType_3 = getTypeFacts(leftType) & 8388608 /* Falsy */ ?\n getUnionType([removeDefinitelyFalsyTypes(leftType), rightType], 2 /* Subtype */) :\n leftType;\n if (operator === 75 /* BarBarEqualsToken */) {\n checkAssignmentOperator(rightType);\n }\n return resultType_3;\n }\n case 60 /* QuestionQuestionToken */:\n case 77 /* QuestionQuestionEqualsToken */: {\n var resultType_4 = getTypeFacts(leftType) & 262144 /* EQUndefinedOrNull */ ?\n getUnionType([getNonNullableType(leftType), rightType], 2 /* Subtype */) :\n leftType;\n if (operator === 77 /* QuestionQuestionEqualsToken */) {\n checkAssignmentOperator(rightType);\n }\n return resultType_4;\n }\n case 63 /* EqualsToken */:\n var declKind = ts.isBinaryExpression(left.parent) ? ts.getAssignmentDeclarationKind(left.parent) : 0 /* None */;\n checkAssignmentDeclaration(declKind, rightType);\n if (isAssignmentDeclaration(declKind)) {\n if (!(rightType.flags & 524288 /* Object */) ||\n declKind !== 2 /* ModuleExports */ &&\n declKind !== 6 /* Prototype */ &&\n !isEmptyObjectType(rightType) &&\n !isFunctionObjectType(rightType) &&\n !(ts.getObjectFlags(rightType) & 1 /* Class */)) {\n // don't check assignability of module.exports=, C.prototype=, or expando types because they will necessarily be incomplete\n checkAssignmentOperator(rightType);\n }\n return leftType;\n }\n else {\n checkAssignmentOperator(rightType);\n return getRegularTypeOfObjectLiteral(rightType);\n }\n case 27 /* CommaToken */:\n if (!compilerOptions.allowUnreachableCode && isSideEffectFree(left) && !isEvalNode(right)) {\n var sf = ts.getSourceFileOfNode(left);\n var sourceText = sf.text;\n var start_3 = ts.skipTrivia(sourceText, left.pos);\n var isInDiag2657 = sf.parseDiagnostics.some(function (diag) {\n if (diag.code !== ts.Diagnostics.JSX_expressions_must_have_one_parent_element.code)\n return false;\n return ts.textSpanContainsPosition(diag, start_3);\n });\n if (!isInDiag2657)\n error(left, ts.Diagnostics.Left_side_of_comma_operator_is_unused_and_has_no_side_effects);\n }\n return rightType;\n default:\n return ts.Debug.fail();\n }\n function bothAreBigIntLike(left, right) {\n return isTypeAssignableToKind(left, 2112 /* BigIntLike */) && isTypeAssignableToKind(right, 2112 /* BigIntLike */);\n }\n function checkAssignmentDeclaration(kind, rightType) {\n if (kind === 2 /* ModuleExports */) {\n for (var _i = 0, _a = getPropertiesOfObjectType(rightType); _i < _a.length; _i++) {\n var prop = _a[_i];\n var propType = getTypeOfSymbol(prop);\n if (propType.symbol && propType.symbol.flags & 32 /* Class */) {\n var name = prop.escapedName;\n var symbol = resolveName(prop.valueDeclaration, name, 788968 /* Type */, undefined, name, /*isUse*/ false);\n if ((symbol === null || symbol === void 0 ? void 0 : symbol.declarations) && symbol.declarations.some(ts.isJSDocTypedefTag)) {\n addDuplicateDeclarationErrorsForSymbols(symbol, ts.Diagnostics.Duplicate_identifier_0, ts.unescapeLeadingUnderscores(name), prop);\n addDuplicateDeclarationErrorsForSymbols(prop, ts.Diagnostics.Duplicate_identifier_0, ts.unescapeLeadingUnderscores(name), symbol);\n }\n }\n }\n }\n }\n function isEvalNode(node) {\n return node.kind === 79 /* Identifier */ && node.escapedText === \"eval\";\n }\n // Return true if there was no error, false if there was an error.\n function checkForDisallowedESSymbolOperand(operator) {\n var offendingSymbolOperand = maybeTypeOfKind(leftType, 12288 /* ESSymbolLike */) ? left :\n maybeTypeOfKind(rightType, 12288 /* ESSymbolLike */) ? right :\n undefined;\n if (offendingSymbolOperand) {\n error(offendingSymbolOperand, ts.Diagnostics.The_0_operator_cannot_be_applied_to_type_symbol, ts.tokenToString(operator));\n return false;\n }\n return true;\n }\n function getSuggestedBooleanOperator(operator) {\n switch (operator) {\n case 51 /* BarToken */:\n case 74 /* BarEqualsToken */:\n return 56 /* BarBarToken */;\n case 52 /* CaretToken */:\n case 78 /* CaretEqualsToken */:\n return 37 /* ExclamationEqualsEqualsToken */;\n case 50 /* AmpersandToken */:\n case 73 /* AmpersandEqualsToken */:\n return 55 /* AmpersandAmpersandToken */;\n default:\n return undefined;\n }\n }\n function checkAssignmentOperator(valueType) {\n if (produceDiagnostics && ts.isAssignmentOperator(operator)) {\n // TypeScript 1.0 spec (April 2014): 4.17\n // An assignment of the form\n // VarExpr = ValueExpr\n // requires VarExpr to be classified as a reference\n // A compound assignment furthermore requires VarExpr to be classified as a reference (section 4.1)\n // and the type of the non-compound operation to be assignable to the type of VarExpr.\n if (checkReferenceExpression(left, ts.Diagnostics.The_left_hand_side_of_an_assignment_expression_must_be_a_variable_or_a_property_access, ts.Diagnostics.The_left_hand_side_of_an_assignment_expression_may_not_be_an_optional_property_access)\n && (!ts.isIdentifier(left) || ts.unescapeLeadingUnderscores(left.escapedText) !== \"exports\")) {\n // to avoid cascading errors check assignability only if 'isReference' check succeeded and no errors were reported\n checkTypeAssignableToAndOptionallyElaborate(valueType, leftType, left, right);\n }\n }\n }\n function isAssignmentDeclaration(kind) {\n var _a;\n switch (kind) {\n case 2 /* ModuleExports */:\n return true;\n case 1 /* ExportsProperty */:\n case 5 /* Property */:\n case 6 /* Prototype */:\n case 3 /* PrototypeProperty */:\n case 4 /* ThisProperty */:\n var symbol = getSymbolOfNode(left);\n var init = ts.getAssignedExpandoInitializer(right);\n return !!init && ts.isObjectLiteralExpression(init) &&\n !!((_a = symbol === null || symbol === void 0 ? void 0 : symbol.exports) === null || _a === void 0 ? void 0 : _a.size);\n default:\n return false;\n }\n }\n /**\n * Returns true if an error is reported\n */\n function reportOperatorErrorUnless(typesAreCompatible) {\n if (!typesAreCompatible(leftType, rightType)) {\n reportOperatorError(typesAreCompatible);\n return true;\n }\n return false;\n }\n function reportOperatorError(isRelated) {\n var _a;\n var wouldWorkWithAwait = false;\n var errNode = errorNode || operatorToken;\n if (isRelated) {\n var awaitedLeftType = getAwaitedType(leftType);\n var awaitedRightType = getAwaitedType(rightType);\n wouldWorkWithAwait = !(awaitedLeftType === leftType && awaitedRightType === rightType)\n && !!(awaitedLeftType && awaitedRightType)\n && isRelated(awaitedLeftType, awaitedRightType);\n }\n var effectiveLeft = leftType;\n var effectiveRight = rightType;\n if (!wouldWorkWithAwait && isRelated) {\n _a = getBaseTypesIfUnrelated(leftType, rightType, isRelated), effectiveLeft = _a[0], effectiveRight = _a[1];\n }\n var _b = getTypeNamesForErrorDisplay(effectiveLeft, effectiveRight), leftStr = _b[0], rightStr = _b[1];\n if (!tryGiveBetterPrimaryError(errNode, wouldWorkWithAwait, leftStr, rightStr)) {\n errorAndMaybeSuggestAwait(errNode, wouldWorkWithAwait, ts.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2, ts.tokenToString(operatorToken.kind), leftStr, rightStr);\n }\n }\n function tryGiveBetterPrimaryError(errNode, maybeMissingAwait, leftStr, rightStr) {\n var typeName;\n switch (operatorToken.kind) {\n case 36 /* EqualsEqualsEqualsToken */:\n case 34 /* EqualsEqualsToken */:\n typeName = \"false\";\n break;\n case 37 /* ExclamationEqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n typeName = \"true\";\n }\n if (typeName) {\n return errorAndMaybeSuggestAwait(errNode, maybeMissingAwait, ts.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap, typeName, leftStr, rightStr);\n }\n return undefined;\n }\n }\n function getBaseTypesIfUnrelated(leftType, rightType, isRelated) {\n var effectiveLeft = leftType;\n var effectiveRight = rightType;\n var leftBase = getBaseTypeOfLiteralType(leftType);\n var rightBase = getBaseTypeOfLiteralType(rightType);\n if (!isRelated(leftBase, rightBase)) {\n effectiveLeft = leftBase;\n effectiveRight = rightBase;\n }\n return [effectiveLeft, effectiveRight];\n }\n function checkYieldExpression(node) {\n // Grammar checking\n if (produceDiagnostics) {\n if (!(node.flags & 8192 /* YieldContext */)) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.A_yield_expression_is_only_allowed_in_a_generator_body);\n }\n if (isInParameterInitializerBeforeContainingFunction(node)) {\n error(node, ts.Diagnostics.yield_expressions_cannot_be_used_in_a_parameter_initializer);\n }\n }\n var func = ts.getContainingFunction(node);\n if (!func)\n return anyType;\n var functionFlags = ts.getFunctionFlags(func);\n if (!(functionFlags & 1 /* Generator */)) {\n // If the user's code is syntactically correct, the func should always have a star. After all, we are in a yield context.\n return anyType;\n }\n var isAsync = (functionFlags & 2 /* Async */) !== 0;\n if (node.asteriskToken) {\n // Async generator functions prior to ESNext require the __await, __asyncDelegator,\n // and __asyncValues helpers\n if (isAsync && languageVersion < 99 /* ESNext */) {\n checkExternalEmitHelpers(node, 26624 /* AsyncDelegatorIncludes */);\n }\n // Generator functions prior to ES2015 require the __values helper\n if (!isAsync && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) {\n checkExternalEmitHelpers(node, 256 /* Values */);\n }\n }\n // There is no point in doing an assignability check if the function\n // has no explicit return type because the return type is directly computed\n // from the yield expressions.\n var returnType = getReturnTypeFromAnnotation(func);\n var iterationTypes = returnType && getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsync);\n var signatureYieldType = iterationTypes && iterationTypes.yieldType || anyType;\n var signatureNextType = iterationTypes && iterationTypes.nextType || anyType;\n var resolvedSignatureNextType = isAsync ? getAwaitedType(signatureNextType) || anyType : signatureNextType;\n var yieldExpressionType = node.expression ? checkExpression(node.expression) : undefinedWideningType;\n var yieldedType = getYieldedTypeOfYieldExpression(node, yieldExpressionType, resolvedSignatureNextType, isAsync);\n if (returnType && yieldedType) {\n checkTypeAssignableToAndOptionallyElaborate(yieldedType, signatureYieldType, node.expression || node, node.expression);\n }\n if (node.asteriskToken) {\n var use = isAsync ? 19 /* AsyncYieldStar */ : 17 /* YieldStar */;\n return getIterationTypeOfIterable(use, 1 /* Return */, yieldExpressionType, node.expression)\n || anyType;\n }\n else if (returnType) {\n return getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, isAsync)\n || anyType;\n }\n var type = getContextualIterationType(2 /* Next */, func);\n if (!type) {\n type = anyType;\n if (produceDiagnostics && noImplicitAny && !ts.expressionResultIsUnused(node)) {\n var contextualType = getContextualType(node);\n if (!contextualType || isTypeAny(contextualType)) {\n error(node, ts.Diagnostics.yield_expression_implicitly_results_in_an_any_type_because_its_containing_generator_lacks_a_return_type_annotation);\n }\n }\n }\n return type;\n }\n function checkConditionalExpression(node, checkMode) {\n var type = checkTruthinessExpression(node.condition);\n checkTestingKnownTruthyCallableOrAwaitableType(node.condition, type, node.whenTrue);\n var type1 = checkExpression(node.whenTrue, checkMode);\n var type2 = checkExpression(node.whenFalse, checkMode);\n return getUnionType([type1, type2], 2 /* Subtype */);\n }\n function isTemplateLiteralContext(node) {\n var parent = node.parent;\n return ts.isParenthesizedExpression(parent) && isTemplateLiteralContext(parent) ||\n ts.isElementAccessExpression(parent) && parent.argumentExpression === node;\n }\n function checkTemplateExpression(node) {\n var texts = [node.head.text];\n var types = [];\n for (var _i = 0, _a = node.templateSpans; _i < _a.length; _i++) {\n var span = _a[_i];\n var type = checkExpression(span.expression);\n if (maybeTypeOfKind(type, 12288 /* ESSymbolLike */)) {\n error(span.expression, ts.Diagnostics.Implicit_conversion_of_a_symbol_to_a_string_will_fail_at_runtime_Consider_wrapping_this_expression_in_String);\n }\n texts.push(span.literal.text);\n types.push(isTypeAssignableTo(type, templateConstraintType) ? type : stringType);\n }\n return isConstContext(node) || isTemplateLiteralContext(node) || someType(getContextualType(node) || unknownType, isTemplateLiteralContextualType) ? getTemplateLiteralType(texts, types) : stringType;\n }\n function isTemplateLiteralContextualType(type) {\n return !!(type.flags & (128 /* StringLiteral */ | 134217728 /* TemplateLiteral */) ||\n type.flags & 58982400 /* InstantiableNonPrimitive */ && maybeTypeOfKind(getBaseConstraintOfType(type) || unknownType, 402653316 /* StringLike */));\n }\n function getContextNode(node) {\n if (node.kind === 284 /* JsxAttributes */ && !ts.isJsxSelfClosingElement(node.parent)) {\n return node.parent.parent; // Needs to be the root JsxElement, so it encompasses the attributes _and_ the children (which are essentially part of the attributes)\n }\n return node;\n }\n function checkExpressionWithContextualType(node, contextualType, inferenceContext, checkMode) {\n var context = getContextNode(node);\n var saveContextualType = context.contextualType;\n var saveInferenceContext = context.inferenceContext;\n try {\n context.contextualType = contextualType;\n context.inferenceContext = inferenceContext;\n var type = checkExpression(node, checkMode | 1 /* Contextual */ | (inferenceContext ? 2 /* Inferential */ : 0));\n // We strip literal freshness when an appropriate contextual type is present such that contextually typed\n // literals always preserve their literal types (otherwise they might widen during type inference). An alternative\n // here would be to not mark contextually typed literals as fresh in the first place.\n var result = maybeTypeOfKind(type, 2944 /* Literal */) && isLiteralOfContextualType(type, instantiateContextualType(contextualType, node)) ?\n getRegularTypeOfLiteralType(type) : type;\n return result;\n }\n finally {\n // In the event our operation is canceled or some other exception occurs, reset the contextual type\n // so that we do not accidentally hold onto an instance of the checker, as a Type created in the services layer\n // may hold onto the checker that created it.\n context.contextualType = saveContextualType;\n context.inferenceContext = saveInferenceContext;\n }\n }\n function checkExpressionCached(node, checkMode) {\n var links = getNodeLinks(node);\n if (!links.resolvedType) {\n if (checkMode && checkMode !== 0 /* Normal */) {\n return checkExpression(node, checkMode);\n }\n // When computing a type that we're going to cache, we need to ignore any ongoing control flow\n // analysis because variables may have transient types in indeterminable states. Moving flowLoopStart\n // to the top of the stack ensures all transient types are computed from a known point.\n var saveFlowLoopStart = flowLoopStart;\n var saveFlowTypeCache = flowTypeCache;\n flowLoopStart = flowLoopCount;\n flowTypeCache = undefined;\n links.resolvedType = checkExpression(node, checkMode);\n flowTypeCache = saveFlowTypeCache;\n flowLoopStart = saveFlowLoopStart;\n }\n return links.resolvedType;\n }\n function isTypeAssertion(node) {\n node = ts.skipParentheses(node);\n return node.kind === 209 /* TypeAssertionExpression */ || node.kind === 227 /* AsExpression */;\n }\n function checkDeclarationInitializer(declaration, contextualType) {\n var initializer = ts.getEffectiveInitializer(declaration);\n var type = getQuickTypeOfExpression(initializer) ||\n (contextualType ? checkExpressionWithContextualType(initializer, contextualType, /*inferenceContext*/ undefined, 0 /* Normal */) : checkExpressionCached(initializer));\n return ts.isParameter(declaration) && declaration.name.kind === 200 /* ArrayBindingPattern */ &&\n isTupleType(type) && !type.target.hasRestElement && getTypeReferenceArity(type) < declaration.name.elements.length ?\n padTupleType(type, declaration.name) : type;\n }\n function padTupleType(type, pattern) {\n var patternElements = pattern.elements;\n var elementTypes = getTypeArguments(type).slice();\n var elementFlags = type.target.elementFlags.slice();\n for (var i = getTypeReferenceArity(type); i < patternElements.length; i++) {\n var e = patternElements[i];\n if (i < patternElements.length - 1 || !(e.kind === 201 /* BindingElement */ && e.dotDotDotToken)) {\n elementTypes.push(!ts.isOmittedExpression(e) && hasDefaultValue(e) ? getTypeFromBindingElement(e, /*includePatternInType*/ false, /*reportErrors*/ false) : anyType);\n elementFlags.push(2 /* Optional */);\n if (!ts.isOmittedExpression(e) && !hasDefaultValue(e)) {\n reportImplicitAny(e, anyType);\n }\n }\n }\n return createTupleType(elementTypes, elementFlags, type.target.readonly);\n }\n function widenTypeInferredFromInitializer(declaration, type) {\n var widened = ts.getCombinedNodeFlags(declaration) & 2 /* Const */ || ts.isDeclarationReadonly(declaration) ? type : getWidenedLiteralType(type);\n if (ts.isInJSFile(declaration)) {\n if (isEmptyLiteralType(widened)) {\n reportImplicitAny(declaration, anyType);\n return anyType;\n }\n else if (isEmptyArrayLiteralType(widened)) {\n reportImplicitAny(declaration, anyArrayType);\n return anyArrayType;\n }\n }\n return widened;\n }\n function isLiteralOfContextualType(candidateType, contextualType) {\n if (contextualType) {\n if (contextualType.flags & 3145728 /* UnionOrIntersection */) {\n var types = contextualType.types;\n return ts.some(types, function (t) { return isLiteralOfContextualType(candidateType, t); });\n }\n if (contextualType.flags & 58982400 /* InstantiableNonPrimitive */) {\n // If the contextual type is a type variable constrained to a primitive type, consider\n // this a literal context for literals of that primitive type. For example, given a\n // type parameter 'T extends string', infer string literal types for T.\n var constraint = getBaseConstraintOfType(contextualType) || unknownType;\n return maybeTypeOfKind(constraint, 4 /* String */) && maybeTypeOfKind(candidateType, 128 /* StringLiteral */) ||\n maybeTypeOfKind(constraint, 8 /* Number */) && maybeTypeOfKind(candidateType, 256 /* NumberLiteral */) ||\n maybeTypeOfKind(constraint, 64 /* BigInt */) && maybeTypeOfKind(candidateType, 2048 /* BigIntLiteral */) ||\n maybeTypeOfKind(constraint, 4096 /* ESSymbol */) && maybeTypeOfKind(candidateType, 8192 /* UniqueESSymbol */) ||\n isLiteralOfContextualType(candidateType, constraint);\n }\n // If the contextual type is a literal of a particular primitive type, we consider this a\n // literal context for all literals of that primitive type.\n return !!(contextualType.flags & (128 /* StringLiteral */ | 4194304 /* Index */ | 134217728 /* TemplateLiteral */ | 268435456 /* StringMapping */) && maybeTypeOfKind(candidateType, 128 /* StringLiteral */) ||\n contextualType.flags & 256 /* NumberLiteral */ && maybeTypeOfKind(candidateType, 256 /* NumberLiteral */) ||\n contextualType.flags & 2048 /* BigIntLiteral */ && maybeTypeOfKind(candidateType, 2048 /* BigIntLiteral */) ||\n contextualType.flags & 512 /* BooleanLiteral */ && maybeTypeOfKind(candidateType, 512 /* BooleanLiteral */) ||\n contextualType.flags & 8192 /* UniqueESSymbol */ && maybeTypeOfKind(candidateType, 8192 /* UniqueESSymbol */));\n }\n return false;\n }\n function isConstContext(node) {\n var parent = node.parent;\n return ts.isAssertionExpression(parent) && ts.isConstTypeReference(parent.type) ||\n (ts.isParenthesizedExpression(parent) || ts.isArrayLiteralExpression(parent) || ts.isSpreadElement(parent)) && isConstContext(parent) ||\n (ts.isPropertyAssignment(parent) || ts.isShorthandPropertyAssignment(parent) || ts.isTemplateSpan(parent)) && isConstContext(parent.parent);\n }\n function checkExpressionForMutableLocation(node, checkMode, contextualType, forceTuple) {\n var type = checkExpression(node, checkMode, forceTuple);\n return isConstContext(node) ? getRegularTypeOfLiteralType(type) :\n isTypeAssertion(node) ? type :\n getWidenedLiteralLikeTypeForContextualType(type, instantiateContextualType(arguments.length === 2 ? getContextualType(node) : contextualType, node));\n }\n function checkPropertyAssignment(node, checkMode) {\n // Do not use hasDynamicName here, because that returns false for well known symbols.\n // We want to perform checkComputedPropertyName for all computed properties, including\n // well known symbols.\n if (node.name.kind === 160 /* ComputedPropertyName */) {\n checkComputedPropertyName(node.name);\n }\n return checkExpressionForMutableLocation(node.initializer, checkMode);\n }\n function checkObjectLiteralMethod(node, checkMode) {\n // Grammar checking\n checkGrammarMethod(node);\n // Do not use hasDynamicName here, because that returns false for well known symbols.\n // We want to perform checkComputedPropertyName for all computed properties, including\n // well known symbols.\n if (node.name.kind === 160 /* ComputedPropertyName */) {\n checkComputedPropertyName(node.name);\n }\n var uninstantiatedType = checkFunctionExpressionOrObjectLiteralMethod(node, checkMode);\n return instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode);\n }\n function instantiateTypeWithSingleGenericCallSignature(node, type, checkMode) {\n if (checkMode && checkMode & (2 /* Inferential */ | 8 /* SkipGenericFunctions */)) {\n var callSignature = getSingleSignature(type, 0 /* Call */, /*allowMembers*/ true);\n var constructSignature = getSingleSignature(type, 1 /* Construct */, /*allowMembers*/ true);\n var signature = callSignature || constructSignature;\n if (signature && signature.typeParameters) {\n var contextualType = getApparentTypeOfContextualType(node, 2 /* NoConstraints */);\n if (contextualType) {\n var contextualSignature = getSingleSignature(getNonNullableType(contextualType), callSignature ? 0 /* Call */ : 1 /* Construct */, /*allowMembers*/ false);\n if (contextualSignature && !contextualSignature.typeParameters) {\n if (checkMode & 8 /* SkipGenericFunctions */) {\n skippedGenericFunction(node, checkMode);\n return anyFunctionType;\n }\n var context = getInferenceContext(node);\n // We have an expression that is an argument of a generic function for which we are performing\n // type argument inference. The expression is of a function type with a single generic call\n // signature and a contextual function type with a single non-generic call signature. Now check\n // if the outer function returns a function type with a single non-generic call signature and\n // if some of the outer function type parameters have no inferences so far. If so, we can\n // potentially add inferred type parameters to the outer function return type.\n var returnType = context.signature && getReturnTypeOfSignature(context.signature);\n var returnSignature = returnType && getSingleCallOrConstructSignature(returnType);\n if (returnSignature && !returnSignature.typeParameters && !ts.every(context.inferences, hasInferenceCandidates)) {\n // Instantiate the signature with its own type parameters as type arguments, possibly\n // renaming the type parameters to ensure they have unique names.\n var uniqueTypeParameters = getUniqueTypeParameters(context, signature.typeParameters);\n var instantiatedSignature = getSignatureInstantiationWithoutFillingInTypeArguments(signature, uniqueTypeParameters);\n // Infer from the parameters of the instantiated signature to the parameters of the\n // contextual signature starting with an empty set of inference candidates.\n var inferences_3 = ts.map(context.inferences, function (info) { return createInferenceInfo(info.typeParameter); });\n applyToParameterTypes(instantiatedSignature, contextualSignature, function (source, target) {\n inferTypes(inferences_3, source, target, /*priority*/ 0, /*contravariant*/ true);\n });\n if (ts.some(inferences_3, hasInferenceCandidates)) {\n // We have inference candidates, indicating that one or more type parameters are referenced\n // in the parameter types of the contextual signature. Now also infer from the return type.\n applyToReturnTypes(instantiatedSignature, contextualSignature, function (source, target) {\n inferTypes(inferences_3, source, target);\n });\n // If the type parameters for which we produced candidates do not have any inferences yet,\n // we adopt the new inference candidates and add the type parameters of the expression type\n // to the set of inferred type parameters for the outer function return type.\n if (!hasOverlappingInferences(context.inferences, inferences_3)) {\n mergeInferences(context.inferences, inferences_3);\n context.inferredTypeParameters = ts.concatenate(context.inferredTypeParameters, uniqueTypeParameters);\n return getOrCreateTypeFromSignature(instantiatedSignature);\n }\n }\n }\n return getOrCreateTypeFromSignature(instantiateSignatureInContextOf(signature, contextualSignature, context));\n }\n }\n }\n }\n return type;\n }\n function skippedGenericFunction(node, checkMode) {\n if (checkMode & 2 /* Inferential */) {\n // We have skipped a generic function during inferential typing. Obtain the inference context and\n // indicate this has occurred such that we know a second pass of inference is be needed.\n var context = getInferenceContext(node);\n context.flags |= 4 /* SkippedGenericFunction */;\n }\n }\n function hasInferenceCandidates(info) {\n return !!(info.candidates || info.contraCandidates);\n }\n function hasOverlappingInferences(a, b) {\n for (var i = 0; i < a.length; i++) {\n if (hasInferenceCandidates(a[i]) && hasInferenceCandidates(b[i])) {\n return true;\n }\n }\n return false;\n }\n function mergeInferences(target, source) {\n for (var i = 0; i < target.length; i++) {\n if (!hasInferenceCandidates(target[i]) && hasInferenceCandidates(source[i])) {\n target[i] = source[i];\n }\n }\n }\n function getUniqueTypeParameters(context, typeParameters) {\n var result = [];\n var oldTypeParameters;\n var newTypeParameters;\n for (var _i = 0, typeParameters_2 = typeParameters; _i < typeParameters_2.length; _i++) {\n var tp = typeParameters_2[_i];\n var name = tp.symbol.escapedName;\n if (hasTypeParameterByName(context.inferredTypeParameters, name) || hasTypeParameterByName(result, name)) {\n var newName = getUniqueTypeParameterName(ts.concatenate(context.inferredTypeParameters, result), name);\n var symbol = createSymbol(262144 /* TypeParameter */, newName);\n var newTypeParameter = createTypeParameter(symbol);\n newTypeParameter.target = tp;\n oldTypeParameters = ts.append(oldTypeParameters, tp);\n newTypeParameters = ts.append(newTypeParameters, newTypeParameter);\n result.push(newTypeParameter);\n }\n else {\n result.push(tp);\n }\n }\n if (newTypeParameters) {\n var mapper = createTypeMapper(oldTypeParameters, newTypeParameters);\n for (var _a = 0, newTypeParameters_1 = newTypeParameters; _a < newTypeParameters_1.length; _a++) {\n var tp = newTypeParameters_1[_a];\n tp.mapper = mapper;\n }\n }\n return result;\n }\n function hasTypeParameterByName(typeParameters, name) {\n return ts.some(typeParameters, function (tp) { return tp.symbol.escapedName === name; });\n }\n function getUniqueTypeParameterName(typeParameters, baseName) {\n var len = baseName.length;\n while (len > 1 && baseName.charCodeAt(len - 1) >= 48 /* _0 */ && baseName.charCodeAt(len - 1) <= 57 /* _9 */)\n len--;\n var s = baseName.slice(0, len);\n for (var index = 1; true; index++) {\n var augmentedName = s + index;\n if (!hasTypeParameterByName(typeParameters, augmentedName)) {\n return augmentedName;\n }\n }\n }\n function getReturnTypeOfSingleNonGenericCallSignature(funcType) {\n var signature = getSingleCallSignature(funcType);\n if (signature && !signature.typeParameters) {\n return getReturnTypeOfSignature(signature);\n }\n }\n function getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) {\n var funcType = checkExpression(expr.expression);\n var nonOptionalType = getOptionalExpressionType(funcType, expr.expression);\n var returnType = getReturnTypeOfSingleNonGenericCallSignature(funcType);\n return returnType && propagateOptionalTypeMarker(returnType, expr, nonOptionalType !== funcType);\n }\n /**\n * Returns the type of an expression. Unlike checkExpression, this function is simply concerned\n * with computing the type and may not fully check all contained sub-expressions for errors.\n */\n function getTypeOfExpression(node) {\n // Don't bother caching types that require no flow analysis and are quick to compute.\n var quickType = getQuickTypeOfExpression(node);\n if (quickType) {\n return quickType;\n }\n // If a type has been cached for the node, return it.\n if (node.flags & 67108864 /* TypeCached */ && flowTypeCache) {\n var cachedType = flowTypeCache[getNodeId(node)];\n if (cachedType) {\n return cachedType;\n }\n }\n var startInvocationCount = flowInvocationCount;\n var type = checkExpression(node);\n // If control flow analysis was required to determine the type, it is worth caching.\n if (flowInvocationCount !== startInvocationCount) {\n var cache = flowTypeCache || (flowTypeCache = []);\n cache[getNodeId(node)] = type;\n ts.setNodeFlags(node, node.flags | 67108864 /* TypeCached */);\n }\n return type;\n }\n function getQuickTypeOfExpression(node) {\n var expr = ts.skipParentheses(node);\n // Optimize for the common case of a call to a function with a single non-generic call\n // signature where we can just fetch the return type without checking the arguments.\n if (ts.isCallExpression(expr) && expr.expression.kind !== 106 /* SuperKeyword */ && !ts.isRequireCall(expr, /*checkArgumentIsStringLiteralLike*/ true) && !isSymbolOrSymbolForCall(expr)) {\n var type = ts.isCallChain(expr) ? getReturnTypeOfSingleNonGenericSignatureOfCallChain(expr) :\n getReturnTypeOfSingleNonGenericCallSignature(checkNonNullExpression(expr.expression));\n if (type) {\n return type;\n }\n }\n else if (ts.isAssertionExpression(expr) && !ts.isConstTypeReference(expr.type)) {\n return getTypeFromTypeNode(expr.type);\n }\n else if (node.kind === 8 /* NumericLiteral */ || node.kind === 10 /* StringLiteral */ ||\n node.kind === 110 /* TrueKeyword */ || node.kind === 95 /* FalseKeyword */) {\n return checkExpression(node);\n }\n return undefined;\n }\n /**\n * Returns the type of an expression. Unlike checkExpression, this function is simply concerned\n * with computing the type and may not fully check all contained sub-expressions for errors.\n * It is intended for uses where you know there is no contextual type,\n * and requesting the contextual type might cause a circularity or other bad behaviour.\n * It sets the contextual type of the node to any before calling getTypeOfExpression.\n */\n function getContextFreeTypeOfExpression(node) {\n var links = getNodeLinks(node);\n if (links.contextFreeType) {\n return links.contextFreeType;\n }\n var saveContextualType = node.contextualType;\n node.contextualType = anyType;\n try {\n var type = links.contextFreeType = checkExpression(node, 4 /* SkipContextSensitive */);\n return type;\n }\n finally {\n // In the event our operation is canceled or some other exception occurs, reset the contextual type\n // so that we do not accidentally hold onto an instance of the checker, as a Type created in the services layer\n // may hold onto the checker that created it.\n node.contextualType = saveContextualType;\n }\n }\n function checkExpression(node, checkMode, forceTuple) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"check\" /* Check */, \"checkExpression\", { kind: node.kind, pos: node.pos, end: node.end });\n var saveCurrentNode = currentNode;\n currentNode = node;\n instantiationCount = 0;\n var uninstantiatedType = checkExpressionWorker(node, checkMode, forceTuple);\n var type = instantiateTypeWithSingleGenericCallSignature(node, uninstantiatedType, checkMode);\n if (isConstEnumObjectType(type)) {\n checkConstEnumAccess(node, type);\n }\n currentNode = saveCurrentNode;\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return type;\n }\n function checkConstEnumAccess(node, type) {\n // enum object type for const enums are only permitted in:\n // - 'left' in property access\n // - 'object' in indexed access\n // - target in rhs of import statement\n var ok = (node.parent.kind === 204 /* PropertyAccessExpression */ && node.parent.expression === node) ||\n (node.parent.kind === 205 /* ElementAccessExpression */ && node.parent.expression === node) ||\n ((node.kind === 79 /* Identifier */ || node.kind === 159 /* QualifiedName */) && isInRightSideOfImportOrExportAssignment(node) ||\n (node.parent.kind === 179 /* TypeQuery */ && node.parent.exprName === node)) ||\n (node.parent.kind === 273 /* ExportSpecifier */); // We allow reexporting const enums\n if (!ok) {\n error(node, ts.Diagnostics.const_enums_can_only_be_used_in_property_or_index_access_expressions_or_the_right_hand_side_of_an_import_declaration_or_export_assignment_or_type_query);\n }\n if (compilerOptions.isolatedModules) {\n ts.Debug.assert(!!(type.symbol.flags & 128 /* ConstEnum */));\n var constEnumDeclaration = type.symbol.valueDeclaration;\n if (constEnumDeclaration.flags & 8388608 /* Ambient */) {\n error(node, ts.Diagnostics.Cannot_access_ambient_const_enums_when_the_isolatedModules_flag_is_provided);\n }\n }\n }\n function checkParenthesizedExpression(node, checkMode) {\n var tag = ts.isInJSFile(node) ? ts.getJSDocTypeTag(node) : undefined;\n if (tag) {\n return checkAssertionWorker(tag.typeExpression.type, tag.typeExpression.type, node.expression, checkMode);\n }\n return checkExpression(node.expression, checkMode);\n }\n function checkExpressionWorker(node, checkMode, forceTuple) {\n var kind = node.kind;\n if (cancellationToken) {\n // Only bother checking on a few construct kinds. We don't want to be excessively\n // hitting the cancellation token on every node we check.\n switch (kind) {\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n cancellationToken.throwIfCancellationRequested();\n }\n }\n switch (kind) {\n case 79 /* Identifier */:\n return checkIdentifier(node, checkMode);\n case 108 /* ThisKeyword */:\n return checkThisExpression(node);\n case 106 /* SuperKeyword */:\n return checkSuperExpression(node);\n case 104 /* NullKeyword */:\n return nullWideningType;\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 10 /* StringLiteral */:\n return getFreshTypeOfLiteralType(getStringLiteralType(node.text));\n case 8 /* NumericLiteral */:\n checkGrammarNumericLiteral(node);\n return getFreshTypeOfLiteralType(getNumberLiteralType(+node.text));\n case 9 /* BigIntLiteral */:\n checkGrammarBigIntLiteral(node);\n return getFreshTypeOfLiteralType(getBigIntLiteralType({\n negative: false,\n base10Value: ts.parsePseudoBigInt(node.text)\n }));\n case 110 /* TrueKeyword */:\n return trueType;\n case 95 /* FalseKeyword */:\n return falseType;\n case 221 /* TemplateExpression */:\n return checkTemplateExpression(node);\n case 13 /* RegularExpressionLiteral */:\n return globalRegExpType;\n case 202 /* ArrayLiteralExpression */:\n return checkArrayLiteral(node, checkMode, forceTuple);\n case 203 /* ObjectLiteralExpression */:\n return checkObjectLiteral(node, checkMode);\n case 204 /* PropertyAccessExpression */:\n return checkPropertyAccessExpression(node, checkMode);\n case 159 /* QualifiedName */:\n return checkQualifiedName(node, checkMode);\n case 205 /* ElementAccessExpression */:\n return checkIndexedAccess(node, checkMode);\n case 206 /* CallExpression */:\n if (node.expression.kind === 100 /* ImportKeyword */) {\n return checkImportCallExpression(node);\n }\n // falls through\n case 207 /* NewExpression */:\n return checkCallExpression(node, checkMode);\n case 208 /* TaggedTemplateExpression */:\n return checkTaggedTemplateExpression(node);\n case 210 /* ParenthesizedExpression */:\n return checkParenthesizedExpression(node, checkMode);\n case 224 /* ClassExpression */:\n return checkClassExpression(node);\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return checkFunctionExpressionOrObjectLiteralMethod(node, checkMode);\n case 214 /* TypeOfExpression */:\n return checkTypeOfExpression(node);\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n return checkAssertion(node);\n case 228 /* NonNullExpression */:\n return checkNonNullAssertion(node);\n case 229 /* MetaProperty */:\n return checkMetaProperty(node);\n case 213 /* DeleteExpression */:\n return checkDeleteExpression(node);\n case 215 /* VoidExpression */:\n return checkVoidExpression(node);\n case 216 /* AwaitExpression */:\n return checkAwaitExpression(node);\n case 217 /* PrefixUnaryExpression */:\n return checkPrefixUnaryExpression(node);\n case 218 /* PostfixUnaryExpression */:\n return checkPostfixUnaryExpression(node);\n case 219 /* BinaryExpression */:\n return checkBinaryExpression(node, checkMode);\n case 220 /* ConditionalExpression */:\n return checkConditionalExpression(node, checkMode);\n case 223 /* SpreadElement */:\n return checkSpreadExpression(node, checkMode);\n case 225 /* OmittedExpression */:\n return undefinedWideningType;\n case 222 /* YieldExpression */:\n return checkYieldExpression(node);\n case 230 /* SyntheticExpression */:\n return checkSyntheticExpression(node);\n case 286 /* JsxExpression */:\n return checkJsxExpression(node, checkMode);\n case 276 /* JsxElement */:\n return checkJsxElement(node, checkMode);\n case 277 /* JsxSelfClosingElement */:\n return checkJsxSelfClosingElement(node, checkMode);\n case 280 /* JsxFragment */:\n return checkJsxFragment(node);\n case 284 /* JsxAttributes */:\n return checkJsxAttributes(node, checkMode);\n case 278 /* JsxOpeningElement */:\n ts.Debug.fail(\"Shouldn't ever directly check a JsxOpeningElement\");\n }\n return errorType;\n }\n // DECLARATION AND STATEMENT TYPE CHECKING\n function checkTypeParameter(node) {\n // Grammar Checking\n if (node.expression) {\n grammarErrorOnFirstToken(node.expression, ts.Diagnostics.Type_expected);\n }\n checkSourceElement(node.constraint);\n checkSourceElement(node.default);\n var typeParameter = getDeclaredTypeOfTypeParameter(getSymbolOfNode(node));\n // Resolve base constraint to reveal circularity errors\n getBaseConstraintOfType(typeParameter);\n if (!hasNonCircularTypeParameterDefault(typeParameter)) {\n error(node.default, ts.Diagnostics.Type_parameter_0_has_a_circular_default, typeToString(typeParameter));\n }\n var constraintType = getConstraintOfTypeParameter(typeParameter);\n var defaultType = getDefaultFromTypeParameter(typeParameter);\n if (constraintType && defaultType) {\n checkTypeAssignableTo(defaultType, getTypeWithThisArgument(instantiateType(constraintType, makeUnaryTypeMapper(typeParameter, defaultType)), defaultType), node.default, ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1);\n }\n if (produceDiagnostics) {\n checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_parameter_name_cannot_be_0);\n }\n }\n function checkParameter(node) {\n // Grammar checking\n // It is a SyntaxError if the Identifier \"eval\" or the Identifier \"arguments\" occurs as the\n // Identifier in a PropertySetParameterList of a PropertyAssignment that is contained in strict code\n // or if its FunctionBody is strict code(11.1.5).\n checkGrammarDecoratorsAndModifiers(node);\n checkVariableLikeDeclaration(node);\n var func = ts.getContainingFunction(node);\n if (ts.hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) {\n if (!(func.kind === 169 /* Constructor */ && ts.nodeIsPresent(func.body))) {\n error(node, ts.Diagnostics.A_parameter_property_is_only_allowed_in_a_constructor_implementation);\n }\n if (func.kind === 169 /* Constructor */ && ts.isIdentifier(node.name) && node.name.escapedText === \"constructor\") {\n error(node.name, ts.Diagnostics.constructor_cannot_be_used_as_a_parameter_property_name);\n }\n }\n if (node.questionToken && ts.isBindingPattern(node.name) && func.body) {\n error(node, ts.Diagnostics.A_binding_pattern_parameter_cannot_be_optional_in_an_implementation_signature);\n }\n if (node.name && ts.isIdentifier(node.name) && (node.name.escapedText === \"this\" || node.name.escapedText === \"new\")) {\n if (func.parameters.indexOf(node) !== 0) {\n error(node, ts.Diagnostics.A_0_parameter_must_be_the_first_parameter, node.name.escapedText);\n }\n if (func.kind === 169 /* Constructor */ || func.kind === 173 /* ConstructSignature */ || func.kind === 178 /* ConstructorType */) {\n error(node, ts.Diagnostics.A_constructor_cannot_have_a_this_parameter);\n }\n if (func.kind === 212 /* ArrowFunction */) {\n error(node, ts.Diagnostics.An_arrow_function_cannot_have_a_this_parameter);\n }\n if (func.kind === 170 /* GetAccessor */ || func.kind === 171 /* SetAccessor */) {\n error(node, ts.Diagnostics.get_and_set_accessors_cannot_declare_this_parameters);\n }\n }\n // Only check rest parameter type if it's not a binding pattern. Since binding patterns are\n // not allowed in a rest parameter, we already have an error from checkGrammarParameterList.\n if (node.dotDotDotToken && !ts.isBindingPattern(node.name) && !isTypeAssignableTo(getReducedType(getTypeOfSymbol(node.symbol)), anyReadonlyArrayType)) {\n error(node, ts.Diagnostics.A_rest_parameter_must_be_of_an_array_type);\n }\n }\n function checkTypePredicate(node) {\n var parent = getTypePredicateParent(node);\n if (!parent) {\n // The parent must not be valid.\n error(node, ts.Diagnostics.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);\n return;\n }\n var signature = getSignatureFromDeclaration(parent);\n var typePredicate = getTypePredicateOfSignature(signature);\n if (!typePredicate) {\n return;\n }\n checkSourceElement(node.type);\n var parameterName = node.parameterName;\n if (typePredicate.kind === 0 /* This */ || typePredicate.kind === 2 /* AssertsThis */) {\n getTypeFromThisTypeNode(parameterName);\n }\n else {\n if (typePredicate.parameterIndex >= 0) {\n if (signatureHasRestParameter(signature) && typePredicate.parameterIndex === signature.parameters.length - 1) {\n error(parameterName, ts.Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);\n }\n else {\n if (typePredicate.type) {\n var leadingError = function () { return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type); };\n checkTypeAssignableTo(typePredicate.type, getTypeOfSymbol(signature.parameters[typePredicate.parameterIndex]), node.type, \n /*headMessage*/ undefined, leadingError);\n }\n }\n }\n else if (parameterName) {\n var hasReportedError = false;\n for (var _i = 0, _a = parent.parameters; _i < _a.length; _i++) {\n var name = _a[_i].name;\n if (ts.isBindingPattern(name) &&\n checkIfTypePredicateVariableIsDeclaredInBindingPattern(name, parameterName, typePredicate.parameterName)) {\n hasReportedError = true;\n break;\n }\n }\n if (!hasReportedError) {\n error(node.parameterName, ts.Diagnostics.Cannot_find_parameter_0, typePredicate.parameterName);\n }\n }\n }\n }\n function getTypePredicateParent(node) {\n switch (node.parent.kind) {\n case 212 /* ArrowFunction */:\n case 172 /* CallSignature */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 177 /* FunctionType */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n var parent = node.parent;\n if (node === parent.type) {\n return parent;\n }\n }\n }\n function checkIfTypePredicateVariableIsDeclaredInBindingPattern(pattern, predicateVariableNode, predicateVariableName) {\n for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (ts.isOmittedExpression(element)) {\n continue;\n }\n var name = element.name;\n if (name.kind === 79 /* Identifier */ && name.escapedText === predicateVariableName) {\n error(predicateVariableNode, ts.Diagnostics.A_type_predicate_cannot_reference_element_0_in_a_binding_pattern, predicateVariableName);\n return true;\n }\n else if (name.kind === 200 /* ArrayBindingPattern */ || name.kind === 199 /* ObjectBindingPattern */) {\n if (checkIfTypePredicateVariableIsDeclaredInBindingPattern(name, predicateVariableNode, predicateVariableName)) {\n return true;\n }\n }\n }\n }\n function checkSignatureDeclaration(node) {\n // Grammar checking\n if (node.kind === 174 /* IndexSignature */) {\n checkGrammarIndexSignature(node);\n }\n // TODO (yuisu): Remove this check in else-if when SyntaxKind.Construct is moved and ambient context is handled\n else if (node.kind === 177 /* FunctionType */ || node.kind === 254 /* FunctionDeclaration */ || node.kind === 178 /* ConstructorType */ ||\n node.kind === 172 /* CallSignature */ || node.kind === 169 /* Constructor */ ||\n node.kind === 173 /* ConstructSignature */) {\n checkGrammarFunctionLikeDeclaration(node);\n }\n var functionFlags = ts.getFunctionFlags(node);\n if (!(functionFlags & 4 /* Invalid */)) {\n // Async generators prior to ESNext require the __await and __asyncGenerator helpers\n if ((functionFlags & 3 /* AsyncGenerator */) === 3 /* AsyncGenerator */ && languageVersion < 99 /* ESNext */) {\n checkExternalEmitHelpers(node, 6144 /* AsyncGeneratorIncludes */);\n }\n // Async functions prior to ES2017 require the __awaiter helper\n if ((functionFlags & 3 /* AsyncGenerator */) === 2 /* Async */ && languageVersion < 4 /* ES2017 */) {\n checkExternalEmitHelpers(node, 64 /* Awaiter */);\n }\n // Generator functions, Async functions, and Async Generator functions prior to\n // ES2015 require the __generator helper\n if ((functionFlags & 3 /* AsyncGenerator */) !== 0 /* Normal */ && languageVersion < 2 /* ES2015 */) {\n checkExternalEmitHelpers(node, 128 /* Generator */);\n }\n }\n checkTypeParameters(node.typeParameters);\n ts.forEach(node.parameters, checkParameter);\n // TODO(rbuckton): Should we start checking JSDoc types?\n if (node.type) {\n checkSourceElement(node.type);\n }\n if (produceDiagnostics) {\n checkCollisionWithArgumentsInGeneratedCode(node);\n var returnTypeNode = ts.getEffectiveReturnTypeNode(node);\n if (noImplicitAny && !returnTypeNode) {\n switch (node.kind) {\n case 173 /* ConstructSignature */:\n error(node, ts.Diagnostics.Construct_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);\n break;\n case 172 /* CallSignature */:\n error(node, ts.Diagnostics.Call_signature_which_lacks_return_type_annotation_implicitly_has_an_any_return_type);\n break;\n }\n }\n if (returnTypeNode) {\n var functionFlags_1 = ts.getFunctionFlags(node);\n if ((functionFlags_1 & (4 /* Invalid */ | 1 /* Generator */)) === 1 /* Generator */) {\n var returnType = getTypeFromTypeNode(returnTypeNode);\n if (returnType === voidType) {\n error(returnTypeNode, ts.Diagnostics.A_generator_cannot_have_a_void_type_annotation);\n }\n else {\n // Naively, one could check that Generator is assignable to the return type annotation.\n // However, that would not catch the error in the following case.\n //\n // interface BadGenerator extends Iterable, Iterator { }\n // function* g(): BadGenerator { } // Iterable and Iterator have different types!\n //\n var generatorYieldType = getIterationTypeOfGeneratorFunctionReturnType(0 /* Yield */, returnType, (functionFlags_1 & 2 /* Async */) !== 0) || anyType;\n var generatorReturnType = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, (functionFlags_1 & 2 /* Async */) !== 0) || generatorYieldType;\n var generatorNextType = getIterationTypeOfGeneratorFunctionReturnType(2 /* Next */, returnType, (functionFlags_1 & 2 /* Async */) !== 0) || unknownType;\n var generatorInstantiation = createGeneratorReturnType(generatorYieldType, generatorReturnType, generatorNextType, !!(functionFlags_1 & 2 /* Async */));\n checkTypeAssignableTo(generatorInstantiation, returnType, returnTypeNode);\n }\n }\n else if ((functionFlags_1 & 3 /* AsyncGenerator */) === 2 /* Async */) {\n checkAsyncFunctionReturnType(node, returnTypeNode);\n }\n }\n if (node.kind !== 174 /* IndexSignature */ && node.kind !== 312 /* JSDocFunctionType */) {\n registerForUnusedIdentifiersCheck(node);\n }\n }\n }\n function checkClassForDuplicateDeclarations(node) {\n var instanceNames = new ts.Map();\n var staticNames = new ts.Map();\n // instance and static private identifiers share the same scope\n var privateIdentifiers = new ts.Map();\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (member.kind === 169 /* Constructor */) {\n for (var _b = 0, _c = member.parameters; _b < _c.length; _b++) {\n var param = _c[_b];\n if (ts.isParameterPropertyDeclaration(param, member) && !ts.isBindingPattern(param.name)) {\n addName(instanceNames, param.name, param.name.escapedText, 3 /* GetOrSetAccessor */);\n }\n }\n }\n else {\n var isStaticMember = ts.isStatic(member);\n var name = member.name;\n if (!name) {\n continue;\n }\n var isPrivate = ts.isPrivateIdentifier(name);\n var privateStaticFlags = isPrivate && isStaticMember ? 16 /* PrivateStatic */ : 0;\n var names = isPrivate ? privateIdentifiers :\n isStaticMember ? staticNames :\n instanceNames;\n var memberName = name && ts.getPropertyNameForPropertyNameNode(name);\n if (memberName) {\n switch (member.kind) {\n case 170 /* GetAccessor */:\n addName(names, name, memberName, 1 /* GetAccessor */ | privateStaticFlags);\n break;\n case 171 /* SetAccessor */:\n addName(names, name, memberName, 2 /* SetAccessor */ | privateStaticFlags);\n break;\n case 165 /* PropertyDeclaration */:\n addName(names, name, memberName, 3 /* GetOrSetAccessor */ | privateStaticFlags);\n break;\n case 167 /* MethodDeclaration */:\n addName(names, name, memberName, 8 /* Method */ | privateStaticFlags);\n break;\n }\n }\n }\n }\n function addName(names, location, name, meaning) {\n var prev = names.get(name);\n if (prev) {\n // For private identifiers, do not allow mixing of static and instance members with the same name\n if ((prev & 16 /* PrivateStatic */) !== (meaning & 16 /* PrivateStatic */)) {\n error(location, ts.Diagnostics.Duplicate_identifier_0_Static_and_instance_elements_cannot_share_the_same_private_name, ts.getTextOfNode(location));\n }\n else {\n var prevIsMethod = !!(prev & 8 /* Method */);\n var isMethod = !!(meaning & 8 /* Method */);\n if (prevIsMethod || isMethod) {\n if (prevIsMethod !== isMethod) {\n error(location, ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(location));\n }\n // If this is a method/method duplication is might be an overload, so this will be handled when overloads are considered\n }\n else if (prev & meaning & ~16 /* PrivateStatic */) {\n error(location, ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(location));\n }\n else {\n names.set(name, prev | meaning);\n }\n }\n }\n else {\n names.set(name, meaning);\n }\n }\n }\n /**\n * Static members being set on a constructor function may conflict with built-in properties\n * of Function. Esp. in ECMAScript 5 there are non-configurable and non-writable\n * built-in properties. This check issues a transpile error when a class has a static\n * member with the same name as a non-writable built-in property.\n *\n * @see http://www.ecma-international.org/ecma-262/5.1/#sec-15.3.3\n * @see http://www.ecma-international.org/ecma-262/5.1/#sec-15.3.5\n * @see http://www.ecma-international.org/ecma-262/6.0/#sec-properties-of-the-function-constructor\n * @see http://www.ecma-international.org/ecma-262/6.0/#sec-function-instances\n */\n function checkClassForStaticPropertyNameConflicts(node) {\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n var memberNameNode = member.name;\n var isStaticMember = ts.isStatic(member);\n if (isStaticMember && memberNameNode) {\n var memberName = ts.getPropertyNameForPropertyNameNode(memberNameNode);\n switch (memberName) {\n case \"name\":\n case \"length\":\n case \"caller\":\n case \"arguments\":\n case \"prototype\":\n var message = ts.Diagnostics.Static_property_0_conflicts_with_built_in_property_Function_0_of_constructor_function_1;\n var className = getNameOfSymbolAsWritten(getSymbolOfNode(node));\n error(memberNameNode, message, memberName, className);\n break;\n }\n }\n }\n }\n function checkObjectTypeForDuplicateDeclarations(node) {\n var names = new ts.Map();\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (member.kind === 164 /* PropertySignature */) {\n var memberName = void 0;\n var name = member.name;\n switch (name.kind) {\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n memberName = name.text;\n break;\n case 79 /* Identifier */:\n memberName = ts.idText(name);\n break;\n default:\n continue;\n }\n if (names.get(memberName)) {\n error(ts.getNameOfDeclaration(member.symbol.valueDeclaration), ts.Diagnostics.Duplicate_identifier_0, memberName);\n error(member.name, ts.Diagnostics.Duplicate_identifier_0, memberName);\n }\n else {\n names.set(memberName, true);\n }\n }\n }\n }\n function checkTypeForDuplicateIndexSignatures(node) {\n if (node.kind === 256 /* InterfaceDeclaration */) {\n var nodeSymbol = getSymbolOfNode(node);\n // in case of merging interface declaration it is possible that we'll enter this check procedure several times for every declaration\n // to prevent this run check only for the first declaration of a given kind\n if (nodeSymbol.declarations && nodeSymbol.declarations.length > 0 && nodeSymbol.declarations[0] !== node) {\n return;\n }\n }\n // TypeScript 1.0 spec (April 2014)\n // 3.7.4: An object type can contain at most one string index signature and one numeric index signature.\n // 8.5: A class declaration can have at most one string index member declaration and one numeric index member declaration\n var indexSymbol = getIndexSymbol(getSymbolOfNode(node));\n if (indexSymbol === null || indexSymbol === void 0 ? void 0 : indexSymbol.declarations) {\n var indexSignatureMap_1 = new ts.Map();\n var _loop_26 = function (declaration) {\n if (declaration.parameters.length === 1 && declaration.parameters[0].type) {\n forEachType(getTypeFromTypeNode(declaration.parameters[0].type), function (type) {\n var entry = indexSignatureMap_1.get(getTypeId(type));\n if (entry) {\n entry.declarations.push(declaration);\n }\n else {\n indexSignatureMap_1.set(getTypeId(type), { type: type, declarations: [declaration] });\n }\n });\n }\n };\n for (var _i = 0, _a = indexSymbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n _loop_26(declaration);\n }\n indexSignatureMap_1.forEach(function (entry) {\n if (entry.declarations.length > 1) {\n for (var _i = 0, _a = entry.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n error(declaration, ts.Diagnostics.Duplicate_index_signature_for_type_0, typeToString(entry.type));\n }\n }\n });\n }\n }\n function checkPropertyDeclaration(node) {\n // Grammar checking\n if (!checkGrammarDecoratorsAndModifiers(node) && !checkGrammarProperty(node))\n checkGrammarComputedPropertyName(node.name);\n checkVariableLikeDeclaration(node);\n setNodeLinksForPrivateIdentifierScope(node);\n if (ts.isPrivateIdentifier(node.name) && ts.hasStaticModifier(node) && node.initializer && languageVersion === 99 /* ESNext */ && !compilerOptions.useDefineForClassFields) {\n error(node.initializer, ts.Diagnostics.Static_fields_with_private_names_can_t_have_initializers_when_the_useDefineForClassFields_flag_is_not_specified_with_a_target_of_esnext_Consider_adding_the_useDefineForClassFields_flag);\n }\n // property signatures already report \"initializer not allowed in ambient context\" elsewhere\n if (ts.hasSyntacticModifier(node, 128 /* Abstract */) && node.kind === 165 /* PropertyDeclaration */ && node.initializer) {\n error(node, ts.Diagnostics.Property_0_cannot_have_an_initializer_because_it_is_marked_abstract, ts.declarationNameToString(node.name));\n }\n }\n function checkPropertySignature(node) {\n if (ts.isPrivateIdentifier(node.name)) {\n error(node, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n }\n return checkPropertyDeclaration(node);\n }\n function checkMethodDeclaration(node) {\n // Grammar checking\n if (!checkGrammarMethod(node))\n checkGrammarComputedPropertyName(node.name);\n // Grammar checking for modifiers is done inside the function checkGrammarFunctionLikeDeclaration\n checkFunctionOrMethodDeclaration(node);\n // method signatures already report \"implementation not allowed in ambient context\" elsewhere\n if (ts.hasSyntacticModifier(node, 128 /* Abstract */) && node.kind === 167 /* MethodDeclaration */ && node.body) {\n error(node, ts.Diagnostics.Method_0_cannot_have_an_implementation_because_it_is_marked_abstract, ts.declarationNameToString(node.name));\n }\n // Private named methods are only allowed in class declarations\n if (ts.isPrivateIdentifier(node.name) && !ts.getContainingClass(node)) {\n error(node, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n }\n setNodeLinksForPrivateIdentifierScope(node);\n }\n function setNodeLinksForPrivateIdentifierScope(node) {\n if (ts.isPrivateIdentifier(node.name) && languageVersion < 99 /* ESNext */) {\n for (var lexicalScope = ts.getEnclosingBlockScopeContainer(node); !!lexicalScope; lexicalScope = ts.getEnclosingBlockScopeContainer(lexicalScope)) {\n getNodeLinks(lexicalScope).flags |= 67108864 /* ContainsClassWithPrivateIdentifiers */;\n }\n // If this is a private element in a class expression inside the body of a loop,\n // then we must use a block-scoped binding to store the additional variables required\n // to transform private elements.\n if (ts.isClassExpression(node.parent)) {\n var enclosingIterationStatement = getEnclosingIterationStatement(node.parent);\n if (enclosingIterationStatement) {\n getNodeLinks(node.name).flags |= 524288 /* BlockScopedBindingInLoop */;\n getNodeLinks(enclosingIterationStatement).flags |= 65536 /* LoopWithCapturedBlockScopedBinding */;\n }\n }\n }\n }\n function checkClassStaticBlockDeclaration(node) {\n checkGrammarDecoratorsAndModifiers(node);\n ts.forEachChild(node, checkSourceElement);\n }\n function checkConstructorDeclaration(node) {\n // Grammar check on signature of constructor and modifier of the constructor is done in checkSignatureDeclaration function.\n checkSignatureDeclaration(node);\n // Grammar check for checking only related to constructorDeclaration\n if (!checkGrammarConstructorTypeParameters(node))\n checkGrammarConstructorTypeAnnotation(node);\n checkSourceElement(node.body);\n var symbol = getSymbolOfNode(node);\n var firstDeclaration = ts.getDeclarationOfKind(symbol, node.kind);\n // Only type check the symbol once\n if (node === firstDeclaration) {\n checkFunctionOrConstructorSymbol(symbol);\n }\n // exit early in the case of signature - super checks are not relevant to them\n if (ts.nodeIsMissing(node.body)) {\n return;\n }\n if (!produceDiagnostics) {\n return;\n }\n function isInstancePropertyWithInitializerOrPrivateIdentifierProperty(n) {\n if (ts.isPrivateIdentifierClassElementDeclaration(n)) {\n return true;\n }\n return n.kind === 165 /* PropertyDeclaration */ &&\n !ts.isStatic(n) &&\n !!n.initializer;\n }\n // TS 1.0 spec (April 2014): 8.3.2\n // Constructors of classes with no extends clause may not contain super calls, whereas\n // constructors of derived classes must contain at least one super call somewhere in their function body.\n var containingClassDecl = node.parent;\n if (ts.getClassExtendsHeritageElement(containingClassDecl)) {\n captureLexicalThis(node.parent, containingClassDecl);\n var classExtendsNull = classDeclarationExtendsNull(containingClassDecl);\n var superCall = findFirstSuperCall(node.body);\n if (superCall) {\n if (classExtendsNull) {\n error(superCall, ts.Diagnostics.A_constructor_cannot_contain_a_super_call_when_its_class_extends_null);\n }\n // The first statement in the body of a constructor (excluding prologue directives) must be a super call\n // if both of the following are true:\n // - The containing class is a derived class.\n // - The constructor declares parameter properties\n // or the containing class declares instance member variables with initializers.\n var superCallShouldBeFirst = (compilerOptions.target !== 99 /* ESNext */ || !useDefineForClassFields) &&\n (ts.some(node.parent.members, isInstancePropertyWithInitializerOrPrivateIdentifierProperty) ||\n ts.some(node.parameters, function (p) { return ts.hasSyntacticModifier(p, 16476 /* ParameterPropertyModifier */); }));\n // Skip past any prologue directives to find the first statement\n // to ensure that it was a super call.\n if (superCallShouldBeFirst) {\n var statements = node.body.statements;\n var superCallStatement = void 0;\n for (var _i = 0, statements_4 = statements; _i < statements_4.length; _i++) {\n var statement = statements_4[_i];\n if (statement.kind === 236 /* ExpressionStatement */ && ts.isSuperCall(statement.expression)) {\n superCallStatement = statement;\n break;\n }\n if (!ts.isPrologueDirective(statement)) {\n break;\n }\n }\n if (!superCallStatement) {\n error(node, ts.Diagnostics.A_super_call_must_be_the_first_statement_in_the_constructor_when_a_class_contains_initialized_properties_parameter_properties_or_private_identifiers);\n }\n }\n }\n else if (!classExtendsNull) {\n error(node, ts.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call);\n }\n }\n }\n function checkAccessorDeclaration(node) {\n if (produceDiagnostics) {\n // Grammar checking accessors\n if (!checkGrammarFunctionLikeDeclaration(node) && !checkGrammarAccessor(node))\n checkGrammarComputedPropertyName(node.name);\n checkDecorators(node);\n checkSignatureDeclaration(node);\n if (node.kind === 170 /* GetAccessor */) {\n if (!(node.flags & 8388608 /* Ambient */) && ts.nodeIsPresent(node.body) && (node.flags & 256 /* HasImplicitReturn */)) {\n if (!(node.flags & 512 /* HasExplicitReturn */)) {\n error(node.name, ts.Diagnostics.A_get_accessor_must_return_a_value);\n }\n }\n }\n // Do not use hasDynamicName here, because that returns false for well known symbols.\n // We want to perform checkComputedPropertyName for all computed properties, including\n // well known symbols.\n if (node.name.kind === 160 /* ComputedPropertyName */) {\n checkComputedPropertyName(node.name);\n }\n if (hasBindableName(node)) {\n // TypeScript 1.0 spec (April 2014): 8.4.3\n // Accessors for the same member name must specify the same accessibility.\n var symbol = getSymbolOfNode(node);\n var getter = ts.getDeclarationOfKind(symbol, 170 /* GetAccessor */);\n var setter = ts.getDeclarationOfKind(symbol, 171 /* SetAccessor */);\n if (getter && setter && !(getNodeCheckFlags(getter) & 1 /* TypeChecked */)) {\n getNodeLinks(getter).flags |= 1 /* TypeChecked */;\n var getterFlags = ts.getEffectiveModifierFlags(getter);\n var setterFlags = ts.getEffectiveModifierFlags(setter);\n if ((getterFlags & 128 /* Abstract */) !== (setterFlags & 128 /* Abstract */)) {\n error(getter.name, ts.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract);\n error(setter.name, ts.Diagnostics.Accessors_must_both_be_abstract_or_non_abstract);\n }\n if (((getterFlags & 16 /* Protected */) && !(setterFlags & (16 /* Protected */ | 8 /* Private */))) ||\n ((getterFlags & 8 /* Private */) && !(setterFlags & 8 /* Private */))) {\n error(getter.name, ts.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter);\n error(setter.name, ts.Diagnostics.A_get_accessor_must_be_at_least_as_accessible_as_the_setter);\n }\n var getterType = getAnnotatedAccessorType(getter);\n var setterType = getAnnotatedAccessorType(setter);\n if (getterType && setterType) {\n checkTypeAssignableTo(getterType, setterType, getter, ts.Diagnostics.The_return_type_of_a_get_accessor_must_be_assignable_to_its_set_accessor_type);\n }\n }\n }\n var returnType = getTypeOfAccessors(getSymbolOfNode(node));\n if (node.kind === 170 /* GetAccessor */) {\n checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, returnType);\n }\n }\n checkSourceElement(node.body);\n setNodeLinksForPrivateIdentifierScope(node);\n }\n function checkMissingDeclaration(node) {\n checkDecorators(node);\n }\n function getEffectiveTypeArguments(node, typeParameters) {\n return fillMissingTypeArguments(ts.map(node.typeArguments, getTypeFromTypeNode), typeParameters, getMinTypeArgumentCount(typeParameters), ts.isInJSFile(node));\n }\n function checkTypeArgumentConstraints(node, typeParameters) {\n var typeArguments;\n var mapper;\n var result = true;\n for (var i = 0; i < typeParameters.length; i++) {\n var constraint = getConstraintOfTypeParameter(typeParameters[i]);\n if (constraint) {\n if (!typeArguments) {\n typeArguments = getEffectiveTypeArguments(node, typeParameters);\n mapper = createTypeMapper(typeParameters, typeArguments);\n }\n result = result && checkTypeAssignableTo(typeArguments[i], instantiateType(constraint, mapper), node.typeArguments[i], ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1);\n }\n }\n return result;\n }\n function getTypeParametersForTypeReference(node) {\n var type = getTypeFromTypeReference(node);\n if (type !== errorType) {\n var symbol = getNodeLinks(node).resolvedSymbol;\n if (symbol) {\n return symbol.flags & 524288 /* TypeAlias */ && getSymbolLinks(symbol).typeParameters ||\n (ts.getObjectFlags(type) & 4 /* Reference */ ? type.target.localTypeParameters : undefined);\n }\n }\n return undefined;\n }\n function checkTypeReferenceNode(node) {\n checkGrammarTypeArguments(node, node.typeArguments);\n if (node.kind === 176 /* TypeReference */ && node.typeName.jsdocDotPos !== undefined && !ts.isInJSFile(node) && !ts.isInJSDoc(node)) {\n grammarErrorAtPos(node, node.typeName.jsdocDotPos, 1, ts.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);\n }\n ts.forEach(node.typeArguments, checkSourceElement);\n var type = getTypeFromTypeReference(node);\n if (type !== errorType) {\n if (node.typeArguments && produceDiagnostics) {\n var typeParameters = getTypeParametersForTypeReference(node);\n if (typeParameters) {\n checkTypeArgumentConstraints(node, typeParameters);\n }\n }\n var symbol = getNodeLinks(node).resolvedSymbol;\n if (symbol) {\n if (ts.some(symbol.declarations, function (d) { return isTypeDeclaration(d) && !!(d.flags & 134217728 /* Deprecated */); })) {\n addDeprecatedSuggestion(getDeprecatedSuggestionNode(node), symbol.declarations, symbol.escapedName);\n }\n if (type.flags & 32 /* Enum */ && symbol.flags & 8 /* EnumMember */) {\n error(node, ts.Diagnostics.Enum_type_0_has_members_with_initializers_that_are_not_literals, typeToString(type));\n }\n }\n }\n }\n function getTypeArgumentConstraint(node) {\n var typeReferenceNode = ts.tryCast(node.parent, ts.isTypeReferenceType);\n if (!typeReferenceNode)\n return undefined;\n var typeParameters = getTypeParametersForTypeReference(typeReferenceNode); // TODO: GH#18217\n var constraint = getConstraintOfTypeParameter(typeParameters[typeReferenceNode.typeArguments.indexOf(node)]);\n return constraint && instantiateType(constraint, createTypeMapper(typeParameters, getEffectiveTypeArguments(typeReferenceNode, typeParameters)));\n }\n function checkTypeQuery(node) {\n getTypeFromTypeQueryNode(node);\n }\n function checkTypeLiteral(node) {\n ts.forEach(node.members, checkSourceElement);\n if (produceDiagnostics) {\n var type = getTypeFromTypeLiteralOrFunctionOrConstructorTypeNode(node);\n checkIndexConstraints(type);\n checkTypeForDuplicateIndexSignatures(node);\n checkObjectTypeForDuplicateDeclarations(node);\n }\n }\n function checkArrayType(node) {\n checkSourceElement(node.elementType);\n }\n function checkTupleType(node) {\n var elementTypes = node.elements;\n var seenOptionalElement = false;\n var seenRestElement = false;\n var hasNamedElement = ts.some(elementTypes, ts.isNamedTupleMember);\n for (var _i = 0, elementTypes_1 = elementTypes; _i < elementTypes_1.length; _i++) {\n var e = elementTypes_1[_i];\n if (e.kind !== 195 /* NamedTupleMember */ && hasNamedElement) {\n grammarErrorOnNode(e, ts.Diagnostics.Tuple_members_must_all_have_names_or_all_not_have_names);\n break;\n }\n var flags = getTupleElementFlags(e);\n if (flags & 8 /* Variadic */) {\n var type = getTypeFromTypeNode(e.type);\n if (!isArrayLikeType(type)) {\n error(e, ts.Diagnostics.A_rest_element_type_must_be_an_array_type);\n break;\n }\n if (isArrayType(type) || isTupleType(type) && type.target.combinedFlags & 4 /* Rest */) {\n seenRestElement = true;\n }\n }\n else if (flags & 4 /* Rest */) {\n if (seenRestElement) {\n grammarErrorOnNode(e, ts.Diagnostics.A_rest_element_cannot_follow_another_rest_element);\n break;\n }\n seenRestElement = true;\n }\n else if (flags & 2 /* Optional */) {\n if (seenRestElement) {\n grammarErrorOnNode(e, ts.Diagnostics.An_optional_element_cannot_follow_a_rest_element);\n break;\n }\n seenOptionalElement = true;\n }\n else if (seenOptionalElement) {\n grammarErrorOnNode(e, ts.Diagnostics.A_required_element_cannot_follow_an_optional_element);\n break;\n }\n }\n ts.forEach(node.elements, checkSourceElement);\n getTypeFromTypeNode(node);\n }\n function checkUnionOrIntersectionType(node) {\n ts.forEach(node.types, checkSourceElement);\n getTypeFromTypeNode(node);\n }\n function checkIndexedAccessIndexType(type, accessNode) {\n if (!(type.flags & 8388608 /* IndexedAccess */)) {\n return type;\n }\n // Check if the index type is assignable to 'keyof T' for the object type.\n var objectType = type.objectType;\n var indexType = type.indexType;\n if (isTypeAssignableTo(indexType, getIndexType(objectType, /*stringsOnly*/ false))) {\n if (accessNode.kind === 205 /* ElementAccessExpression */ && ts.isAssignmentTarget(accessNode) &&\n ts.getObjectFlags(objectType) & 32 /* Mapped */ && getMappedTypeModifiers(objectType) & 1 /* IncludeReadonly */) {\n error(accessNode, ts.Diagnostics.Index_signature_in_type_0_only_permits_reading, typeToString(objectType));\n }\n return type;\n }\n // Check if we're indexing with a numeric type and if either object or index types\n // is a generic type with a constraint that has a numeric index signature.\n var apparentObjectType = getApparentType(objectType);\n if (getIndexInfoOfType(apparentObjectType, numberType) && isTypeAssignableToKind(indexType, 296 /* NumberLike */)) {\n return type;\n }\n if (isGenericObjectType(objectType)) {\n var propertyName_1 = getPropertyNameFromIndex(indexType, accessNode);\n if (propertyName_1) {\n var propertySymbol = forEachType(apparentObjectType, function (t) { return getPropertyOfType(t, propertyName_1); });\n if (propertySymbol && ts.getDeclarationModifierFlagsFromSymbol(propertySymbol) & 24 /* NonPublicAccessibilityModifier */) {\n error(accessNode, ts.Diagnostics.Private_or_protected_member_0_cannot_be_accessed_on_a_type_parameter, ts.unescapeLeadingUnderscores(propertyName_1));\n return errorType;\n }\n }\n }\n error(accessNode, ts.Diagnostics.Type_0_cannot_be_used_to_index_type_1, typeToString(indexType), typeToString(objectType));\n return errorType;\n }\n function checkIndexedAccessType(node) {\n checkSourceElement(node.objectType);\n checkSourceElement(node.indexType);\n checkIndexedAccessIndexType(getTypeFromIndexedAccessTypeNode(node), node);\n }\n function checkMappedType(node) {\n checkSourceElement(node.typeParameter);\n checkSourceElement(node.nameType);\n checkSourceElement(node.type);\n if (!node.type) {\n reportImplicitAny(node, anyType);\n }\n var type = getTypeFromMappedTypeNode(node);\n var nameType = getNameTypeFromMappedType(type);\n if (nameType) {\n checkTypeAssignableTo(nameType, keyofConstraintType, node.nameType);\n }\n else {\n var constraintType = getConstraintTypeFromMappedType(type);\n checkTypeAssignableTo(constraintType, keyofConstraintType, ts.getEffectiveConstraintOfTypeParameter(node.typeParameter));\n }\n }\n function checkThisType(node) {\n getTypeFromThisTypeNode(node);\n }\n function checkTypeOperator(node) {\n checkGrammarTypeOperatorNode(node);\n checkSourceElement(node.type);\n }\n function checkConditionalType(node) {\n ts.forEachChild(node, checkSourceElement);\n }\n function checkInferType(node) {\n if (!ts.findAncestor(node, function (n) { return n.parent && n.parent.kind === 187 /* ConditionalType */ && n.parent.extendsType === n; })) {\n grammarErrorOnNode(node, ts.Diagnostics.infer_declarations_are_only_permitted_in_the_extends_clause_of_a_conditional_type);\n }\n checkSourceElement(node.typeParameter);\n registerForUnusedIdentifiersCheck(node);\n }\n function checkTemplateLiteralType(node) {\n for (var _i = 0, _a = node.templateSpans; _i < _a.length; _i++) {\n var span = _a[_i];\n checkSourceElement(span.type);\n var type = getTypeFromTypeNode(span.type);\n checkTypeAssignableTo(type, templateConstraintType, span.type);\n }\n getTypeFromTypeNode(node);\n }\n function checkImportType(node) {\n checkSourceElement(node.argument);\n getTypeFromTypeNode(node);\n }\n function checkNamedTupleMember(node) {\n if (node.dotDotDotToken && node.questionToken) {\n grammarErrorOnNode(node, ts.Diagnostics.A_tuple_member_cannot_be_both_optional_and_rest);\n }\n if (node.type.kind === 183 /* OptionalType */) {\n grammarErrorOnNode(node.type, ts.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type);\n }\n if (node.type.kind === 184 /* RestType */) {\n grammarErrorOnNode(node.type, ts.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type);\n }\n checkSourceElement(node.type);\n getTypeFromTypeNode(node);\n }\n function isPrivateWithinAmbient(node) {\n return (ts.hasEffectiveModifier(node, 8 /* Private */) || ts.isPrivateIdentifierClassElementDeclaration(node)) && !!(node.flags & 8388608 /* Ambient */);\n }\n function getEffectiveDeclarationFlags(n, flagsToCheck) {\n var flags = ts.getCombinedModifierFlags(n);\n // children of classes (even ambient classes) should not be marked as ambient or export\n // because those flags have no useful semantics there.\n if (n.parent.kind !== 256 /* InterfaceDeclaration */ &&\n n.parent.kind !== 255 /* ClassDeclaration */ &&\n n.parent.kind !== 224 /* ClassExpression */ &&\n n.flags & 8388608 /* Ambient */) {\n if (!(flags & 2 /* Ambient */) && !(ts.isModuleBlock(n.parent) && ts.isModuleDeclaration(n.parent.parent) && ts.isGlobalScopeAugmentation(n.parent.parent))) {\n // It is nested in an ambient context, which means it is automatically exported\n flags |= 1 /* Export */;\n }\n flags |= 2 /* Ambient */;\n }\n return flags & flagsToCheck;\n }\n function checkFunctionOrConstructorSymbol(symbol) {\n if (!produceDiagnostics) {\n return;\n }\n function getCanonicalOverload(overloads, implementation) {\n // Consider the canonical set of flags to be the flags of the bodyDeclaration or the first declaration\n // Error on all deviations from this canonical set of flags\n // The caveat is that if some overloads are defined in lib.d.ts, we don't want to\n // report the errors on those. To achieve this, we will say that the implementation is\n // the canonical signature only if it is in the same container as the first overload\n var implementationSharesContainerWithFirstOverload = implementation !== undefined && implementation.parent === overloads[0].parent;\n return implementationSharesContainerWithFirstOverload ? implementation : overloads[0];\n }\n function checkFlagAgreementBetweenOverloads(overloads, implementation, flagsToCheck, someOverloadFlags, allOverloadFlags) {\n // Error if some overloads have a flag that is not shared by all overloads. To find the\n // deviations, we XOR someOverloadFlags with allOverloadFlags\n var someButNotAllOverloadFlags = someOverloadFlags ^ allOverloadFlags;\n if (someButNotAllOverloadFlags !== 0) {\n var canonicalFlags_1 = getEffectiveDeclarationFlags(getCanonicalOverload(overloads, implementation), flagsToCheck);\n ts.forEach(overloads, function (o) {\n var deviation = getEffectiveDeclarationFlags(o, flagsToCheck) ^ canonicalFlags_1;\n if (deviation & 1 /* Export */) {\n error(ts.getNameOfDeclaration(o), ts.Diagnostics.Overload_signatures_must_all_be_exported_or_non_exported);\n }\n else if (deviation & 2 /* Ambient */) {\n error(ts.getNameOfDeclaration(o), ts.Diagnostics.Overload_signatures_must_all_be_ambient_or_non_ambient);\n }\n else if (deviation & (8 /* Private */ | 16 /* Protected */)) {\n error(ts.getNameOfDeclaration(o) || o, ts.Diagnostics.Overload_signatures_must_all_be_public_private_or_protected);\n }\n else if (deviation & 128 /* Abstract */) {\n error(ts.getNameOfDeclaration(o), ts.Diagnostics.Overload_signatures_must_all_be_abstract_or_non_abstract);\n }\n });\n }\n }\n function checkQuestionTokenAgreementBetweenOverloads(overloads, implementation, someHaveQuestionToken, allHaveQuestionToken) {\n if (someHaveQuestionToken !== allHaveQuestionToken) {\n var canonicalHasQuestionToken_1 = ts.hasQuestionToken(getCanonicalOverload(overloads, implementation));\n ts.forEach(overloads, function (o) {\n var deviation = ts.hasQuestionToken(o) !== canonicalHasQuestionToken_1;\n if (deviation) {\n error(ts.getNameOfDeclaration(o), ts.Diagnostics.Overload_signatures_must_all_be_optional_or_required);\n }\n });\n }\n }\n var flagsToCheck = 1 /* Export */ | 2 /* Ambient */ | 8 /* Private */ | 16 /* Protected */ | 128 /* Abstract */;\n var someNodeFlags = 0 /* None */;\n var allNodeFlags = flagsToCheck;\n var someHaveQuestionToken = false;\n var allHaveQuestionToken = true;\n var hasOverloads = false;\n var bodyDeclaration;\n var lastSeenNonAmbientDeclaration;\n var previousDeclaration;\n var declarations = symbol.declarations;\n var isConstructor = (symbol.flags & 16384 /* Constructor */) !== 0;\n function reportImplementationExpectedError(node) {\n if (node.name && ts.nodeIsMissing(node.name)) {\n return;\n }\n var seen = false;\n var subsequentNode = ts.forEachChild(node.parent, function (c) {\n if (seen) {\n return c;\n }\n else {\n seen = c === node;\n }\n });\n // We may be here because of some extra nodes between overloads that could not be parsed into a valid node.\n // In this case the subsequent node is not really consecutive (.pos !== node.end), and we must ignore it here.\n if (subsequentNode && subsequentNode.pos === node.end) {\n if (subsequentNode.kind === node.kind) {\n var errorNode_1 = subsequentNode.name || subsequentNode;\n var subsequentName = subsequentNode.name;\n if (node.name && subsequentName && (\n // both are private identifiers\n ts.isPrivateIdentifier(node.name) && ts.isPrivateIdentifier(subsequentName) && node.name.escapedText === subsequentName.escapedText ||\n // Both are computed property names\n // TODO: GH#17345: These are methods, so handle computed name case. (`Always allowing computed property names is *not* the correct behavior!)\n ts.isComputedPropertyName(node.name) && ts.isComputedPropertyName(subsequentName) ||\n // Both are literal property names that are the same.\n ts.isPropertyNameLiteral(node.name) && ts.isPropertyNameLiteral(subsequentName) &&\n ts.getEscapedTextOfIdentifierOrLiteral(node.name) === ts.getEscapedTextOfIdentifierOrLiteral(subsequentName))) {\n var reportError = (node.kind === 167 /* MethodDeclaration */ || node.kind === 166 /* MethodSignature */) &&\n ts.isStatic(node) !== ts.isStatic(subsequentNode);\n // we can get here in two cases\n // 1. mixed static and instance class members\n // 2. something with the same name was defined before the set of overloads that prevents them from merging\n // here we'll report error only for the first case since for second we should already report error in binder\n if (reportError) {\n var diagnostic = ts.isStatic(node) ? ts.Diagnostics.Function_overload_must_be_static : ts.Diagnostics.Function_overload_must_not_be_static;\n error(errorNode_1, diagnostic);\n }\n return;\n }\n if (ts.nodeIsPresent(subsequentNode.body)) {\n error(errorNode_1, ts.Diagnostics.Function_implementation_name_must_be_0, ts.declarationNameToString(node.name));\n return;\n }\n }\n }\n var errorNode = node.name || node;\n if (isConstructor) {\n error(errorNode, ts.Diagnostics.Constructor_implementation_is_missing);\n }\n else {\n // Report different errors regarding non-consecutive blocks of declarations depending on whether\n // the node in question is abstract.\n if (ts.hasSyntacticModifier(node, 128 /* Abstract */)) {\n error(errorNode, ts.Diagnostics.All_declarations_of_an_abstract_method_must_be_consecutive);\n }\n else {\n error(errorNode, ts.Diagnostics.Function_implementation_is_missing_or_not_immediately_following_the_declaration);\n }\n }\n }\n var duplicateFunctionDeclaration = false;\n var multipleConstructorImplementation = false;\n var hasNonAmbientClass = false;\n var functionDeclarations = [];\n if (declarations) {\n for (var _i = 0, declarations_4 = declarations; _i < declarations_4.length; _i++) {\n var current = declarations_4[_i];\n var node = current;\n var inAmbientContext = node.flags & 8388608 /* Ambient */;\n var inAmbientContextOrInterface = node.parent && (node.parent.kind === 256 /* InterfaceDeclaration */ || node.parent.kind === 180 /* TypeLiteral */) || inAmbientContext;\n if (inAmbientContextOrInterface) {\n // check if declarations are consecutive only if they are non-ambient\n // 1. ambient declarations can be interleaved\n // i.e. this is legal\n // declare function foo();\n // declare function bar();\n // declare function foo();\n // 2. mixing ambient and non-ambient declarations is a separate error that will be reported - do not want to report an extra one\n previousDeclaration = undefined;\n }\n if ((node.kind === 255 /* ClassDeclaration */ || node.kind === 224 /* ClassExpression */) && !inAmbientContext) {\n hasNonAmbientClass = true;\n }\n if (node.kind === 254 /* FunctionDeclaration */ || node.kind === 167 /* MethodDeclaration */ || node.kind === 166 /* MethodSignature */ || node.kind === 169 /* Constructor */) {\n functionDeclarations.push(node);\n var currentNodeFlags = getEffectiveDeclarationFlags(node, flagsToCheck);\n someNodeFlags |= currentNodeFlags;\n allNodeFlags &= currentNodeFlags;\n someHaveQuestionToken = someHaveQuestionToken || ts.hasQuestionToken(node);\n allHaveQuestionToken = allHaveQuestionToken && ts.hasQuestionToken(node);\n var bodyIsPresent = ts.nodeIsPresent(node.body);\n if (bodyIsPresent && bodyDeclaration) {\n if (isConstructor) {\n multipleConstructorImplementation = true;\n }\n else {\n duplicateFunctionDeclaration = true;\n }\n }\n else if ((previousDeclaration === null || previousDeclaration === void 0 ? void 0 : previousDeclaration.parent) === node.parent && previousDeclaration.end !== node.pos) {\n reportImplementationExpectedError(previousDeclaration);\n }\n if (bodyIsPresent) {\n if (!bodyDeclaration) {\n bodyDeclaration = node;\n }\n }\n else {\n hasOverloads = true;\n }\n previousDeclaration = node;\n if (!inAmbientContextOrInterface) {\n lastSeenNonAmbientDeclaration = node;\n }\n }\n }\n }\n if (multipleConstructorImplementation) {\n ts.forEach(functionDeclarations, function (declaration) {\n error(declaration, ts.Diagnostics.Multiple_constructor_implementations_are_not_allowed);\n });\n }\n if (duplicateFunctionDeclaration) {\n ts.forEach(functionDeclarations, function (declaration) {\n error(ts.getNameOfDeclaration(declaration) || declaration, ts.Diagnostics.Duplicate_function_implementation);\n });\n }\n if (hasNonAmbientClass && !isConstructor && symbol.flags & 16 /* Function */ && declarations) {\n var relatedDiagnostics_1 = ts.filter(declarations, function (d) { return d.kind === 255 /* ClassDeclaration */; })\n .map(function (d) { return ts.createDiagnosticForNode(d, ts.Diagnostics.Consider_adding_a_declare_modifier_to_this_class); });\n ts.forEach(declarations, function (declaration) {\n var diagnostic = declaration.kind === 255 /* ClassDeclaration */\n ? ts.Diagnostics.Class_declaration_cannot_implement_overload_list_for_0\n : declaration.kind === 254 /* FunctionDeclaration */\n ? ts.Diagnostics.Function_with_bodies_can_only_merge_with_classes_that_are_ambient\n : undefined;\n if (diagnostic) {\n ts.addRelatedInfo.apply(void 0, __spreadArray([error(ts.getNameOfDeclaration(declaration) || declaration, diagnostic, ts.symbolName(symbol))], relatedDiagnostics_1, false));\n }\n });\n }\n // Abstract methods can't have an implementation -- in particular, they don't need one.\n if (lastSeenNonAmbientDeclaration && !lastSeenNonAmbientDeclaration.body &&\n !ts.hasSyntacticModifier(lastSeenNonAmbientDeclaration, 128 /* Abstract */) && !lastSeenNonAmbientDeclaration.questionToken) {\n reportImplementationExpectedError(lastSeenNonAmbientDeclaration);\n }\n if (hasOverloads) {\n if (declarations) {\n checkFlagAgreementBetweenOverloads(declarations, bodyDeclaration, flagsToCheck, someNodeFlags, allNodeFlags);\n checkQuestionTokenAgreementBetweenOverloads(declarations, bodyDeclaration, someHaveQuestionToken, allHaveQuestionToken);\n }\n if (bodyDeclaration) {\n var signatures = getSignaturesOfSymbol(symbol);\n var bodySignature = getSignatureFromDeclaration(bodyDeclaration);\n for (var _a = 0, signatures_10 = signatures; _a < signatures_10.length; _a++) {\n var signature = signatures_10[_a];\n if (!isImplementationCompatibleWithOverload(bodySignature, signature)) {\n ts.addRelatedInfo(error(signature.declaration, ts.Diagnostics.This_overload_signature_is_not_compatible_with_its_implementation_signature), ts.createDiagnosticForNode(bodyDeclaration, ts.Diagnostics.The_implementation_signature_is_declared_here));\n break;\n }\n }\n }\n }\n }\n function checkExportsOnMergedDeclarations(node) {\n if (!produceDiagnostics) {\n return;\n }\n // if localSymbol is defined on node then node itself is exported - check is required\n var symbol = node.localSymbol;\n if (!symbol) {\n // local symbol is undefined => this declaration is non-exported.\n // however symbol might contain other declarations that are exported\n symbol = getSymbolOfNode(node);\n if (!symbol.exportSymbol) {\n // this is a pure local symbol (all declarations are non-exported) - no need to check anything\n return;\n }\n }\n // run the check only for the first declaration in the list\n if (ts.getDeclarationOfKind(symbol, node.kind) !== node) {\n return;\n }\n var exportedDeclarationSpaces = 0 /* None */;\n var nonExportedDeclarationSpaces = 0 /* None */;\n var defaultExportedDeclarationSpaces = 0 /* None */;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var d = _a[_i];\n var declarationSpaces = getDeclarationSpaces(d);\n var effectiveDeclarationFlags = getEffectiveDeclarationFlags(d, 1 /* Export */ | 512 /* Default */);\n if (effectiveDeclarationFlags & 1 /* Export */) {\n if (effectiveDeclarationFlags & 512 /* Default */) {\n defaultExportedDeclarationSpaces |= declarationSpaces;\n }\n else {\n exportedDeclarationSpaces |= declarationSpaces;\n }\n }\n else {\n nonExportedDeclarationSpaces |= declarationSpaces;\n }\n }\n // Spaces for anything not declared a 'default export'.\n var nonDefaultExportedDeclarationSpaces = exportedDeclarationSpaces | nonExportedDeclarationSpaces;\n var commonDeclarationSpacesForExportsAndLocals = exportedDeclarationSpaces & nonExportedDeclarationSpaces;\n var commonDeclarationSpacesForDefaultAndNonDefault = defaultExportedDeclarationSpaces & nonDefaultExportedDeclarationSpaces;\n if (commonDeclarationSpacesForExportsAndLocals || commonDeclarationSpacesForDefaultAndNonDefault) {\n // declaration spaces for exported and non-exported declarations intersect\n for (var _b = 0, _c = symbol.declarations; _b < _c.length; _b++) {\n var d = _c[_b];\n var declarationSpaces = getDeclarationSpaces(d);\n var name = ts.getNameOfDeclaration(d);\n // Only error on the declarations that contributed to the intersecting spaces.\n if (declarationSpaces & commonDeclarationSpacesForDefaultAndNonDefault) {\n error(name, ts.Diagnostics.Merged_declaration_0_cannot_include_a_default_export_declaration_Consider_adding_a_separate_export_default_0_declaration_instead, ts.declarationNameToString(name));\n }\n else if (declarationSpaces & commonDeclarationSpacesForExportsAndLocals) {\n error(name, ts.Diagnostics.Individual_declarations_in_merged_declaration_0_must_be_all_exported_or_all_local, ts.declarationNameToString(name));\n }\n }\n }\n function getDeclarationSpaces(decl) {\n var d = decl;\n switch (d.kind) {\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n // A jsdoc typedef and callback are, by definition, type aliases.\n // falls through\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 334 /* JSDocEnumTag */:\n return 2 /* ExportType */;\n case 259 /* ModuleDeclaration */:\n return ts.isAmbientModule(d) || ts.getModuleInstanceState(d) !== 0 /* NonInstantiated */\n ? 4 /* ExportNamespace */ | 1 /* ExportValue */\n : 4 /* ExportNamespace */;\n case 255 /* ClassDeclaration */:\n case 258 /* EnumDeclaration */:\n case 294 /* EnumMember */:\n return 2 /* ExportType */ | 1 /* ExportValue */;\n case 300 /* SourceFile */:\n return 2 /* ExportType */ | 1 /* ExportValue */ | 4 /* ExportNamespace */;\n case 269 /* ExportAssignment */:\n case 219 /* BinaryExpression */:\n var node_2 = d;\n var expression = ts.isExportAssignment(node_2) ? node_2.expression : node_2.right;\n // Export assigned entity name expressions act as aliases and should fall through, otherwise they export values\n if (!ts.isEntityNameExpression(expression)) {\n return 1 /* ExportValue */;\n }\n d = expression;\n // The below options all declare an Alias, which is allowed to merge with other values within the importing module.\n // falls through\n case 263 /* ImportEqualsDeclaration */:\n case 266 /* NamespaceImport */:\n case 265 /* ImportClause */:\n var result_12 = 0 /* None */;\n var target = resolveAlias(getSymbolOfNode(d));\n ts.forEach(target.declarations, function (d) { result_12 |= getDeclarationSpaces(d); });\n return result_12;\n case 252 /* VariableDeclaration */:\n case 201 /* BindingElement */:\n case 254 /* FunctionDeclaration */:\n case 268 /* ImportSpecifier */: // https://github.com/Microsoft/TypeScript/pull/7591\n case 79 /* Identifier */: // https://github.com/microsoft/TypeScript/issues/36098\n // Identifiers are used as declarations of assignment declarations whose parents may be\n // SyntaxKind.CallExpression - `Object.defineProperty(thing, \"aField\", {value: 42});`\n // SyntaxKind.ElementAccessExpression - `thing[\"aField\"] = 42;` or `thing[\"aField\"];` (with a doc comment on it)\n // or SyntaxKind.PropertyAccessExpression - `thing.aField = 42;`\n // all of which are pretty much always values, or at least imply a value meaning.\n // It may be apprpriate to treat these as aliases in the future.\n return 1 /* ExportValue */;\n default:\n return ts.Debug.failBadSyntaxKind(d);\n }\n }\n }\n function getAwaitedTypeOfPromise(type, errorNode, diagnosticMessage, arg0) {\n var promisedType = getPromisedTypeOfPromise(type, errorNode);\n return promisedType && getAwaitedType(promisedType, errorNode, diagnosticMessage, arg0);\n }\n /**\n * Gets the \"promised type\" of a promise.\n * @param type The type of the promise.\n * @remarks The \"promised type\" of a type is the type of the \"value\" parameter of the \"onfulfilled\" callback.\n */\n function getPromisedTypeOfPromise(type, errorNode) {\n //\n // { // type\n // then( // thenFunction\n // onfulfilled: ( // onfulfilledParameterType\n // value: T // valueParameterType\n // ) => any\n // ): any;\n // }\n //\n if (isTypeAny(type)) {\n return undefined;\n }\n var typeAsPromise = type;\n if (typeAsPromise.promisedTypeOfPromise) {\n return typeAsPromise.promisedTypeOfPromise;\n }\n if (isReferenceToType(type, getGlobalPromiseType(/*reportErrors*/ false))) {\n return typeAsPromise.promisedTypeOfPromise = getTypeArguments(type)[0];\n }\n var thenFunction = getTypeOfPropertyOfType(type, \"then\"); // TODO: GH#18217\n if (isTypeAny(thenFunction)) {\n return undefined;\n }\n var thenSignatures = thenFunction ? getSignaturesOfType(thenFunction, 0 /* Call */) : ts.emptyArray;\n if (thenSignatures.length === 0) {\n if (errorNode) {\n error(errorNode, ts.Diagnostics.A_promise_must_have_a_then_method);\n }\n return undefined;\n }\n var onfulfilledParameterType = getTypeWithFacts(getUnionType(ts.map(thenSignatures, getTypeOfFirstParameterOfSignature)), 2097152 /* NEUndefinedOrNull */);\n if (isTypeAny(onfulfilledParameterType)) {\n return undefined;\n }\n var onfulfilledParameterSignatures = getSignaturesOfType(onfulfilledParameterType, 0 /* Call */);\n if (onfulfilledParameterSignatures.length === 0) {\n if (errorNode) {\n error(errorNode, ts.Diagnostics.The_first_parameter_of_the_then_method_of_a_promise_must_be_a_callback);\n }\n return undefined;\n }\n return typeAsPromise.promisedTypeOfPromise = getUnionType(ts.map(onfulfilledParameterSignatures, getTypeOfFirstParameterOfSignature), 2 /* Subtype */);\n }\n /**\n * Gets the \"awaited type\" of a type.\n * @param type The type to await.\n * @remarks The \"awaited type\" of an expression is its \"promised type\" if the expression is a\n * Promise-like type; otherwise, it is the type of the expression. This is used to reflect\n * The runtime behavior of the `await` keyword.\n */\n function checkAwaitedType(type, errorNode, diagnosticMessage, arg0) {\n var awaitedType = getAwaitedType(type, errorNode, diagnosticMessage, arg0);\n return awaitedType || errorType;\n }\n /**\n * Determines whether a type has a callable `then` member.\n */\n function isThenableType(type) {\n var thenFunction = getTypeOfPropertyOfType(type, \"then\");\n return !!thenFunction && getSignaturesOfType(getTypeWithFacts(thenFunction, 2097152 /* NEUndefinedOrNull */), 0 /* Call */).length > 0;\n }\n /**\n * Gets the \"awaited type\" of a type.\n *\n * The \"awaited type\" of an expression is its \"promised type\" if the expression is a\n * Promise-like type; otherwise, it is the type of the expression. If the \"promised\n * type\" is itself a Promise-like, the \"promised type\" is recursively unwrapped until a\n * non-promise type is found.\n *\n * This is used to reflect the runtime behavior of the `await` keyword.\n */\n function getAwaitedType(type, errorNode, diagnosticMessage, arg0) {\n if (isTypeAny(type)) {\n return type;\n }\n var typeAsAwaitable = type;\n if (typeAsAwaitable.awaitedTypeOfType) {\n return typeAsAwaitable.awaitedTypeOfType;\n }\n // For a union, get a union of the awaited types of each constituent.\n //\n return typeAsAwaitable.awaitedTypeOfType =\n mapType(type, errorNode ? function (constituentType) { return getAwaitedTypeWorker(constituentType, errorNode, diagnosticMessage, arg0); } : getAwaitedTypeWorker);\n }\n function getAwaitedTypeWorker(type, errorNode, diagnosticMessage, arg0) {\n var typeAsAwaitable = type;\n if (typeAsAwaitable.awaitedTypeOfType) {\n return typeAsAwaitable.awaitedTypeOfType;\n }\n var promisedType = getPromisedTypeOfPromise(type);\n if (promisedType) {\n if (type.id === promisedType.id || awaitedTypeStack.lastIndexOf(promisedType.id) >= 0) {\n // Verify that we don't have a bad actor in the form of a promise whose\n // promised type is the same as the promise type, or a mutually recursive\n // promise. If so, we return undefined as we cannot guess the shape. If this\n // were the actual case in the JavaScript, this Promise would never resolve.\n //\n // An example of a bad actor with a singly-recursive promise type might\n // be:\n //\n // interface BadPromise {\n // then(\n // onfulfilled: (value: BadPromise) => any,\n // onrejected: (error: any) => any): BadPromise;\n // }\n //\n // The above interface will pass the PromiseLike check, and return a\n // promised type of `BadPromise`. Since this is a self reference, we\n // don't want to keep recursing ad infinitum.\n //\n // An example of a bad actor in the form of a mutually-recursive\n // promise type might be:\n //\n // interface BadPromiseA {\n // then(\n // onfulfilled: (value: BadPromiseB) => any,\n // onrejected: (error: any) => any): BadPromiseB;\n // }\n //\n // interface BadPromiseB {\n // then(\n // onfulfilled: (value: BadPromiseA) => any,\n // onrejected: (error: any) => any): BadPromiseA;\n // }\n //\n if (errorNode) {\n error(errorNode, ts.Diagnostics.Type_is_referenced_directly_or_indirectly_in_the_fulfillment_callback_of_its_own_then_method);\n }\n return undefined;\n }\n // Keep track of the type we're about to unwrap to avoid bad recursive promise types.\n // See the comments above for more information.\n awaitedTypeStack.push(type.id);\n var awaitedType = getAwaitedType(promisedType, errorNode, diagnosticMessage, arg0);\n awaitedTypeStack.pop();\n if (!awaitedType) {\n return undefined;\n }\n return typeAsAwaitable.awaitedTypeOfType = awaitedType;\n }\n // The type was not a promise, so it could not be unwrapped any further.\n // As long as the type does not have a callable \"then\" property, it is\n // safe to return the type; otherwise, an error is reported and we return\n // undefined.\n //\n // An example of a non-promise \"thenable\" might be:\n //\n // await { then(): void {} }\n //\n // The \"thenable\" does not match the minimal definition for a promise. When\n // a Promise/A+-compatible or ES6 promise tries to adopt this value, the promise\n // will never settle. We treat this as an error to help flag an early indicator\n // of a runtime problem. If the user wants to return this value from an async\n // function, they would need to wrap it in some other value. If they want it to\n // be treated as a promise, they can cast to .\n if (isThenableType(type)) {\n if (errorNode) {\n if (!diagnosticMessage)\n return ts.Debug.fail();\n error(errorNode, diagnosticMessage, arg0);\n }\n return undefined;\n }\n return typeAsAwaitable.awaitedTypeOfType = type;\n }\n /**\n * Checks the return type of an async function to ensure it is a compatible\n * Promise implementation.\n *\n * This checks that an async function has a valid Promise-compatible return type.\n * An async function has a valid Promise-compatible return type if the resolved value\n * of the return type has a construct signature that takes in an `initializer` function\n * that in turn supplies a `resolve` function as one of its arguments and results in an\n * object with a callable `then` signature.\n *\n * @param node The signature to check\n */\n function checkAsyncFunctionReturnType(node, returnTypeNode) {\n // As part of our emit for an async function, we will need to emit the entity name of\n // the return type annotation as an expression. To meet the necessary runtime semantics\n // for __awaiter, we must also check that the type of the declaration (e.g. the static\n // side or \"constructor\" of the promise type) is compatible `PromiseConstructorLike`.\n //\n // An example might be (from lib.es6.d.ts):\n //\n // interface Promise { ... }\n // interface PromiseConstructor {\n // new (...): Promise;\n // }\n // declare var Promise: PromiseConstructor;\n //\n // When an async function declares a return type annotation of `Promise`, we\n // need to get the type of the `Promise` variable declaration above, which would\n // be `PromiseConstructor`.\n //\n // The same case applies to a class:\n //\n // declare class Promise {\n // constructor(...);\n // then(...): Promise;\n // }\n //\n var returnType = getTypeFromTypeNode(returnTypeNode);\n if (languageVersion >= 2 /* ES2015 */) {\n if (returnType === errorType) {\n return;\n }\n var globalPromiseType = getGlobalPromiseType(/*reportErrors*/ true);\n if (globalPromiseType !== emptyGenericType && !isReferenceToType(returnType, globalPromiseType)) {\n // The promise type was not a valid type reference to the global promise type, so we\n // report an error and return the unknown type.\n error(returnTypeNode, ts.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0, typeToString(getAwaitedType(returnType) || voidType));\n return;\n }\n }\n else {\n // Always mark the type node as referenced if it points to a value\n markTypeNodeAsReferenced(returnTypeNode);\n if (returnType === errorType) {\n return;\n }\n var promiseConstructorName = ts.getEntityNameFromTypeNode(returnTypeNode);\n if (promiseConstructorName === undefined) {\n error(returnTypeNode, ts.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, typeToString(returnType));\n return;\n }\n var promiseConstructorSymbol = resolveEntityName(promiseConstructorName, 111551 /* Value */, /*ignoreErrors*/ true);\n var promiseConstructorType = promiseConstructorSymbol ? getTypeOfSymbol(promiseConstructorSymbol) : errorType;\n if (promiseConstructorType === errorType) {\n if (promiseConstructorName.kind === 79 /* Identifier */ && promiseConstructorName.escapedText === \"Promise\" && getTargetType(returnType) === getGlobalPromiseType(/*reportErrors*/ false)) {\n error(returnTypeNode, ts.Diagnostics.An_async_function_or_method_in_ES5_SlashES3_requires_the_Promise_constructor_Make_sure_you_have_a_declaration_for_the_Promise_constructor_or_include_ES2015_in_your_lib_option);\n }\n else {\n error(returnTypeNode, ts.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, ts.entityNameToString(promiseConstructorName));\n }\n return;\n }\n var globalPromiseConstructorLikeType = getGlobalPromiseConstructorLikeType(/*reportErrors*/ true);\n if (globalPromiseConstructorLikeType === emptyObjectType) {\n // If we couldn't resolve the global PromiseConstructorLike type we cannot verify\n // compatibility with __awaiter.\n error(returnTypeNode, ts.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value, ts.entityNameToString(promiseConstructorName));\n return;\n }\n if (!checkTypeAssignableTo(promiseConstructorType, globalPromiseConstructorLikeType, returnTypeNode, ts.Diagnostics.Type_0_is_not_a_valid_async_function_return_type_in_ES5_SlashES3_because_it_does_not_refer_to_a_Promise_compatible_constructor_value)) {\n return;\n }\n // Verify there is no local declaration that could collide with the promise constructor.\n var rootName = promiseConstructorName && ts.getFirstIdentifier(promiseConstructorName);\n var collidingSymbol = getSymbol(node.locals, rootName.escapedText, 111551 /* Value */);\n if (collidingSymbol) {\n error(collidingSymbol.valueDeclaration, ts.Diagnostics.Duplicate_identifier_0_Compiler_uses_declaration_1_to_support_async_functions, ts.idText(rootName), ts.entityNameToString(promiseConstructorName));\n return;\n }\n }\n checkAwaitedType(returnType, node, ts.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member);\n }\n /** Check a decorator */\n function checkDecorator(node) {\n var signature = getResolvedSignature(node);\n checkDeprecatedSignature(signature, node);\n var returnType = getReturnTypeOfSignature(signature);\n if (returnType.flags & 1 /* Any */) {\n return;\n }\n var expectedReturnType;\n var headMessage = getDiagnosticHeadMessageForDecoratorResolution(node);\n var errorInfo;\n switch (node.parent.kind) {\n case 255 /* ClassDeclaration */:\n var classSymbol = getSymbolOfNode(node.parent);\n var classConstructorType = getTypeOfSymbol(classSymbol);\n expectedReturnType = getUnionType([classConstructorType, voidType]);\n break;\n case 162 /* Parameter */:\n expectedReturnType = voidType;\n errorInfo = ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.The_return_type_of_a_parameter_decorator_function_must_be_either_void_or_any);\n break;\n case 165 /* PropertyDeclaration */:\n expectedReturnType = voidType;\n errorInfo = ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.The_return_type_of_a_property_decorator_function_must_be_either_void_or_any);\n break;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n var methodType = getTypeOfNode(node.parent);\n var descriptorType = createTypedPropertyDescriptorType(methodType);\n expectedReturnType = getUnionType([descriptorType, voidType]);\n break;\n default:\n return ts.Debug.fail();\n }\n checkTypeAssignableTo(returnType, expectedReturnType, node, headMessage, function () { return errorInfo; });\n }\n /**\n * If a TypeNode can be resolved to a value symbol imported from an external module, it is\n * marked as referenced to prevent import elision.\n */\n function markTypeNodeAsReferenced(node) {\n markEntityNameOrEntityExpressionAsReference(node && ts.getEntityNameFromTypeNode(node));\n }\n function markEntityNameOrEntityExpressionAsReference(typeName) {\n if (!typeName)\n return;\n var rootName = ts.getFirstIdentifier(typeName);\n var meaning = (typeName.kind === 79 /* Identifier */ ? 788968 /* Type */ : 1920 /* Namespace */) | 2097152 /* Alias */;\n var rootSymbol = resolveName(rootName, rootName.escapedText, meaning, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isReference*/ true);\n if (rootSymbol\n && rootSymbol.flags & 2097152 /* Alias */\n && symbolIsValue(rootSymbol)\n && !isConstEnumOrConstEnumOnlyModule(resolveAlias(rootSymbol))\n && !getTypeOnlyAliasDeclaration(rootSymbol)) {\n markAliasSymbolAsReferenced(rootSymbol);\n }\n }\n /**\n * This function marks the type used for metadata decorator as referenced if it is import\n * from external module.\n * This is different from markTypeNodeAsReferenced because it tries to simplify type nodes in\n * union and intersection type\n * @param node\n */\n function markDecoratorMedataDataTypeNodeAsReferenced(node) {\n var entityName = getEntityNameForDecoratorMetadata(node);\n if (entityName && ts.isEntityName(entityName)) {\n markEntityNameOrEntityExpressionAsReference(entityName);\n }\n }\n function getEntityNameForDecoratorMetadata(node) {\n if (node) {\n switch (node.kind) {\n case 186 /* IntersectionType */:\n case 185 /* UnionType */:\n return getEntityNameForDecoratorMetadataFromTypeList(node.types);\n case 187 /* ConditionalType */:\n return getEntityNameForDecoratorMetadataFromTypeList([node.trueType, node.falseType]);\n case 189 /* ParenthesizedType */:\n case 195 /* NamedTupleMember */:\n return getEntityNameForDecoratorMetadata(node.type);\n case 176 /* TypeReference */:\n return node.typeName;\n }\n }\n }\n function getEntityNameForDecoratorMetadataFromTypeList(types) {\n var commonEntityName;\n for (var _i = 0, types_22 = types; _i < types_22.length; _i++) {\n var typeNode = types_22[_i];\n while (typeNode.kind === 189 /* ParenthesizedType */ || typeNode.kind === 195 /* NamedTupleMember */) {\n typeNode = typeNode.type; // Skip parens if need be\n }\n if (typeNode.kind === 142 /* NeverKeyword */) {\n continue; // Always elide `never` from the union/intersection if possible\n }\n if (!strictNullChecks && (typeNode.kind === 194 /* LiteralType */ && typeNode.literal.kind === 104 /* NullKeyword */ || typeNode.kind === 151 /* UndefinedKeyword */)) {\n continue; // Elide null and undefined from unions for metadata, just like what we did prior to the implementation of strict null checks\n }\n var individualEntityName = getEntityNameForDecoratorMetadata(typeNode);\n if (!individualEntityName) {\n // Individual is something like string number\n // So it would be serialized to either that type or object\n // Safe to return here\n return undefined;\n }\n if (commonEntityName) {\n // Note this is in sync with the transformation that happens for type node.\n // Keep this in sync with serializeUnionOrIntersectionType\n // Verify if they refer to same entity and is identifier\n // return undefined if they dont match because we would emit object\n if (!ts.isIdentifier(commonEntityName) ||\n !ts.isIdentifier(individualEntityName) ||\n commonEntityName.escapedText !== individualEntityName.escapedText) {\n return undefined;\n }\n }\n else {\n commonEntityName = individualEntityName;\n }\n }\n return commonEntityName;\n }\n function getParameterTypeNodeForDecoratorCheck(node) {\n var typeNode = ts.getEffectiveTypeAnnotationNode(node);\n return ts.isRestParameter(node) ? ts.getRestParameterElementType(typeNode) : typeNode;\n }\n /** Check the decorators of a node */\n function checkDecorators(node) {\n if (!node.decorators) {\n return;\n }\n // skip this check for nodes that cannot have decorators. These should have already had an error reported by\n // checkGrammarDecorators.\n if (!ts.nodeCanBeDecorated(node, node.parent, node.parent.parent)) {\n return;\n }\n if (!compilerOptions.experimentalDecorators) {\n error(node, ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning);\n }\n var firstDecorator = node.decorators[0];\n checkExternalEmitHelpers(firstDecorator, 8 /* Decorate */);\n if (node.kind === 162 /* Parameter */) {\n checkExternalEmitHelpers(firstDecorator, 32 /* Param */);\n }\n if (compilerOptions.emitDecoratorMetadata) {\n checkExternalEmitHelpers(firstDecorator, 16 /* Metadata */);\n // we only need to perform these checks if we are emitting serialized type metadata for the target of a decorator.\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n var constructor = ts.getFirstConstructorWithBody(node);\n if (constructor) {\n for (var _i = 0, _a = constructor.parameters; _i < _a.length; _i++) {\n var parameter = _a[_i];\n markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));\n }\n }\n break;\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n var otherKind = node.kind === 170 /* GetAccessor */ ? 171 /* SetAccessor */ : 170 /* GetAccessor */;\n var otherAccessor = ts.getDeclarationOfKind(getSymbolOfNode(node), otherKind);\n markDecoratorMedataDataTypeNodeAsReferenced(getAnnotatedAccessorTypeNode(node) || otherAccessor && getAnnotatedAccessorTypeNode(otherAccessor));\n break;\n case 167 /* MethodDeclaration */:\n for (var _b = 0, _c = node.parameters; _b < _c.length; _b++) {\n var parameter = _c[_b];\n markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));\n }\n markDecoratorMedataDataTypeNodeAsReferenced(ts.getEffectiveReturnTypeNode(node));\n break;\n case 165 /* PropertyDeclaration */:\n markDecoratorMedataDataTypeNodeAsReferenced(ts.getEffectiveTypeAnnotationNode(node));\n break;\n case 162 /* Parameter */:\n markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(node));\n var containingSignature = node.parent;\n for (var _d = 0, _e = containingSignature.parameters; _d < _e.length; _d++) {\n var parameter = _e[_d];\n markDecoratorMedataDataTypeNodeAsReferenced(getParameterTypeNodeForDecoratorCheck(parameter));\n }\n break;\n }\n }\n ts.forEach(node.decorators, checkDecorator);\n }\n function checkFunctionDeclaration(node) {\n if (produceDiagnostics) {\n checkFunctionOrMethodDeclaration(node);\n checkGrammarForGenerator(node);\n checkCollisionsForDeclarationName(node, node.name);\n }\n }\n function checkJSDocTypeAliasTag(node) {\n if (!node.typeExpression) {\n // If the node had `@property` tags, `typeExpression` would have been set to the first property tag.\n error(node.name, ts.Diagnostics.JSDoc_typedef_tag_should_either_have_a_type_annotation_or_be_followed_by_property_or_member_tags);\n }\n if (node.name) {\n checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_alias_name_cannot_be_0);\n }\n checkSourceElement(node.typeExpression);\n }\n function checkJSDocTemplateTag(node) {\n checkSourceElement(node.constraint);\n for (var _i = 0, _a = node.typeParameters; _i < _a.length; _i++) {\n var tp = _a[_i];\n checkSourceElement(tp);\n }\n }\n function checkJSDocTypeTag(node) {\n checkSourceElement(node.typeExpression);\n }\n function checkJSDocParameterTag(node) {\n checkSourceElement(node.typeExpression);\n if (!ts.getParameterSymbolFromJSDoc(node)) {\n var decl = ts.getHostSignatureFromJSDoc(node);\n // don't issue an error for invalid hosts -- just functions --\n // and give a better error message when the host function mentions `arguments`\n // but the tag doesn't have an array type\n if (decl) {\n var i = ts.getJSDocTags(decl).filter(ts.isJSDocParameterTag).indexOf(node);\n if (i > -1 && i < decl.parameters.length && ts.isBindingPattern(decl.parameters[i].name)) {\n return;\n }\n if (!containsArgumentsReference(decl)) {\n if (ts.isQualifiedName(node.name)) {\n error(node.name, ts.Diagnostics.Qualified_name_0_is_not_allowed_without_a_leading_param_object_1, ts.entityNameToString(node.name), ts.entityNameToString(node.name.left));\n }\n else {\n error(node.name, ts.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name, ts.idText(node.name));\n }\n }\n else if (ts.findLast(ts.getJSDocTags(decl), ts.isJSDocParameterTag) === node &&\n node.typeExpression && node.typeExpression.type &&\n !isArrayType(getTypeFromTypeNode(node.typeExpression.type))) {\n error(node.name, ts.Diagnostics.JSDoc_param_tag_has_name_0_but_there_is_no_parameter_with_that_name_It_would_match_arguments_if_it_had_an_array_type, ts.idText(node.name.kind === 159 /* QualifiedName */ ? node.name.right : node.name));\n }\n }\n }\n }\n function checkJSDocPropertyTag(node) {\n checkSourceElement(node.typeExpression);\n }\n function checkJSDocFunctionType(node) {\n if (produceDiagnostics && !node.type && !ts.isJSDocConstructSignature(node)) {\n reportImplicitAny(node, anyType);\n }\n checkSignatureDeclaration(node);\n }\n function checkJSDocImplementsTag(node) {\n var classLike = ts.getEffectiveJSDocHost(node);\n if (!classLike || !ts.isClassDeclaration(classLike) && !ts.isClassExpression(classLike)) {\n error(classLike, ts.Diagnostics.JSDoc_0_is_not_attached_to_a_class, ts.idText(node.tagName));\n }\n }\n function checkJSDocAugmentsTag(node) {\n var classLike = ts.getEffectiveJSDocHost(node);\n if (!classLike || !ts.isClassDeclaration(classLike) && !ts.isClassExpression(classLike)) {\n error(classLike, ts.Diagnostics.JSDoc_0_is_not_attached_to_a_class, ts.idText(node.tagName));\n return;\n }\n var augmentsTags = ts.getJSDocTags(classLike).filter(ts.isJSDocAugmentsTag);\n ts.Debug.assert(augmentsTags.length > 0);\n if (augmentsTags.length > 1) {\n error(augmentsTags[1], ts.Diagnostics.Class_declarations_cannot_have_more_than_one_augments_or_extends_tag);\n }\n var name = getIdentifierFromEntityNameExpression(node.class.expression);\n var extend = ts.getClassExtendsHeritageElement(classLike);\n if (extend) {\n var className = getIdentifierFromEntityNameExpression(extend.expression);\n if (className && name.escapedText !== className.escapedText) {\n error(name, ts.Diagnostics.JSDoc_0_1_does_not_match_the_extends_2_clause, ts.idText(node.tagName), ts.idText(name), ts.idText(className));\n }\n }\n }\n function getIdentifierFromEntityNameExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return node;\n case 204 /* PropertyAccessExpression */:\n return node.name;\n default:\n return undefined;\n }\n }\n function checkFunctionOrMethodDeclaration(node) {\n var _a;\n checkDecorators(node);\n checkSignatureDeclaration(node);\n var functionFlags = ts.getFunctionFlags(node);\n // Do not use hasDynamicName here, because that returns false for well known symbols.\n // We want to perform checkComputedPropertyName for all computed properties, including\n // well known symbols.\n if (node.name && node.name.kind === 160 /* ComputedPropertyName */) {\n // This check will account for methods in class/interface declarations,\n // as well as accessors in classes/object literals\n checkComputedPropertyName(node.name);\n }\n if (hasBindableName(node)) {\n // first we want to check the local symbol that contain this declaration\n // - if node.localSymbol !== undefined - this is current declaration is exported and localSymbol points to the local symbol\n // - if node.localSymbol === undefined - this node is non-exported so we can just pick the result of getSymbolOfNode\n var symbol = getSymbolOfNode(node);\n var localSymbol = node.localSymbol || symbol;\n // Since the javascript won't do semantic analysis like typescript,\n // if the javascript file comes before the typescript file and both contain same name functions,\n // checkFunctionOrConstructorSymbol wouldn't be called if we didnt ignore javascript function.\n var firstDeclaration = (_a = localSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(\n // Get first non javascript function declaration\n function (declaration) { return declaration.kind === node.kind && !(declaration.flags & 131072 /* JavaScriptFile */); });\n // Only type check the symbol once\n if (node === firstDeclaration) {\n checkFunctionOrConstructorSymbol(localSymbol);\n }\n if (symbol.parent) {\n // run check on export symbol to check that modifiers agree across all exported declarations\n checkFunctionOrConstructorSymbol(symbol);\n }\n }\n var body = node.kind === 166 /* MethodSignature */ ? undefined : node.body;\n checkSourceElement(body);\n checkAllCodePathsInNonVoidFunctionReturnOrThrow(node, getReturnTypeFromAnnotation(node));\n if (produceDiagnostics && !ts.getEffectiveReturnTypeNode(node)) {\n // Report an implicit any error if there is no body, no explicit return type, and node is not a private method\n // in an ambient context\n if (ts.nodeIsMissing(body) && !isPrivateWithinAmbient(node)) {\n reportImplicitAny(node, anyType);\n }\n if (functionFlags & 1 /* Generator */ && ts.nodeIsPresent(body)) {\n // A generator with a body and no type annotation can still cause errors. It can error if the\n // yielded values have no common supertype, or it can give an implicit any error if it has no\n // yielded values. The only way to trigger these errors is to try checking its return type.\n getReturnTypeOfSignature(getSignatureFromDeclaration(node));\n }\n }\n // A js function declaration can have a @type tag instead of a return type node, but that type must have a call signature\n if (ts.isInJSFile(node)) {\n var typeTag = ts.getJSDocTypeTag(node);\n if (typeTag && typeTag.typeExpression && !getContextualCallSignature(getTypeFromTypeNode(typeTag.typeExpression), node)) {\n error(typeTag.typeExpression.type, ts.Diagnostics.The_type_of_a_function_declaration_must_match_the_function_s_signature);\n }\n }\n }\n function registerForUnusedIdentifiersCheck(node) {\n // May be in a call such as getTypeOfNode that happened to call this. But potentiallyUnusedIdentifiers is only defined in the scope of `checkSourceFile`.\n if (produceDiagnostics) {\n var sourceFile = ts.getSourceFileOfNode(node);\n var potentiallyUnusedIdentifiers = allPotentiallyUnusedIdentifiers.get(sourceFile.path);\n if (!potentiallyUnusedIdentifiers) {\n potentiallyUnusedIdentifiers = [];\n allPotentiallyUnusedIdentifiers.set(sourceFile.path, potentiallyUnusedIdentifiers);\n }\n // TODO: GH#22580\n // Debug.assert(addToSeen(seenPotentiallyUnusedIdentifiers, getNodeId(node)), \"Adding potentially-unused identifier twice\");\n potentiallyUnusedIdentifiers.push(node);\n }\n }\n function checkUnusedIdentifiers(potentiallyUnusedIdentifiers, addDiagnostic) {\n for (var _i = 0, potentiallyUnusedIdentifiers_1 = potentiallyUnusedIdentifiers; _i < potentiallyUnusedIdentifiers_1.length; _i++) {\n var node = potentiallyUnusedIdentifiers_1[_i];\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n checkUnusedClassMembers(node, addDiagnostic);\n checkUnusedTypeParameters(node, addDiagnostic);\n break;\n case 300 /* SourceFile */:\n case 259 /* ModuleDeclaration */:\n case 233 /* Block */:\n case 261 /* CaseBlock */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n checkUnusedLocalsAndParameters(node, addDiagnostic);\n break;\n case 169 /* Constructor */:\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n if (node.body) { // Don't report unused parameters in overloads\n checkUnusedLocalsAndParameters(node, addDiagnostic);\n }\n checkUnusedTypeParameters(node, addDiagnostic);\n break;\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 257 /* TypeAliasDeclaration */:\n case 256 /* InterfaceDeclaration */:\n checkUnusedTypeParameters(node, addDiagnostic);\n break;\n case 188 /* InferType */:\n checkUnusedInferTypeParameter(node, addDiagnostic);\n break;\n default:\n ts.Debug.assertNever(node, \"Node should not have been registered for unused identifiers check\");\n }\n }\n }\n function errorUnusedLocal(declaration, name, addDiagnostic) {\n var node = ts.getNameOfDeclaration(declaration) || declaration;\n var message = isTypeDeclaration(declaration) ? ts.Diagnostics._0_is_declared_but_never_used : ts.Diagnostics._0_is_declared_but_its_value_is_never_read;\n addDiagnostic(declaration, 0 /* Local */, ts.createDiagnosticForNode(node, message, name));\n }\n function isIdentifierThatStartsWithUnderscore(node) {\n return ts.isIdentifier(node) && ts.idText(node).charCodeAt(0) === 95 /* _ */;\n }\n function checkUnusedClassMembers(node, addDiagnostic) {\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n switch (member.kind) {\n case 167 /* MethodDeclaration */:\n case 165 /* PropertyDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n if (member.kind === 171 /* SetAccessor */ && member.symbol.flags & 32768 /* GetAccessor */) {\n // Already would have reported an error on the getter.\n break;\n }\n var symbol = getSymbolOfNode(member);\n if (!symbol.isReferenced\n && (ts.hasEffectiveModifier(member, 8 /* Private */) || ts.isNamedDeclaration(member) && ts.isPrivateIdentifier(member.name))\n && !(member.flags & 8388608 /* Ambient */)) {\n addDiagnostic(member, 0 /* Local */, ts.createDiagnosticForNode(member.name, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, symbolToString(symbol)));\n }\n break;\n case 169 /* Constructor */:\n for (var _b = 0, _c = member.parameters; _b < _c.length; _b++) {\n var parameter = _c[_b];\n if (!parameter.symbol.isReferenced && ts.hasSyntacticModifier(parameter, 8 /* Private */)) {\n addDiagnostic(parameter, 0 /* Local */, ts.createDiagnosticForNode(parameter.name, ts.Diagnostics.Property_0_is_declared_but_its_value_is_never_read, ts.symbolName(parameter.symbol)));\n }\n }\n break;\n case 174 /* IndexSignature */:\n case 232 /* SemicolonClassElement */:\n case 168 /* ClassStaticBlockDeclaration */:\n // Can't be private\n break;\n default:\n ts.Debug.fail(\"Unexpected class member\");\n }\n }\n }\n function checkUnusedInferTypeParameter(node, addDiagnostic) {\n var typeParameter = node.typeParameter;\n if (isTypeParameterUnused(typeParameter)) {\n addDiagnostic(node, 1 /* Parameter */, ts.createDiagnosticForNode(node, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, ts.idText(typeParameter.name)));\n }\n }\n function checkUnusedTypeParameters(node, addDiagnostic) {\n // Only report errors on the last declaration for the type parameter container;\n // this ensures that all uses have been accounted for.\n var declarations = getSymbolOfNode(node).declarations;\n if (!declarations || ts.last(declarations) !== node)\n return;\n var typeParameters = ts.getEffectiveTypeParameterDeclarations(node);\n var seenParentsWithEveryUnused = new ts.Set();\n for (var _i = 0, typeParameters_3 = typeParameters; _i < typeParameters_3.length; _i++) {\n var typeParameter = typeParameters_3[_i];\n if (!isTypeParameterUnused(typeParameter))\n continue;\n var name = ts.idText(typeParameter.name);\n var parent = typeParameter.parent;\n if (parent.kind !== 188 /* InferType */ && parent.typeParameters.every(isTypeParameterUnused)) {\n if (ts.tryAddToSet(seenParentsWithEveryUnused, parent)) {\n var sourceFile = ts.getSourceFileOfNode(parent);\n var range = ts.isJSDocTemplateTag(parent)\n // Whole @template tag\n ? ts.rangeOfNode(parent)\n // Include the `<>` in the error message\n : ts.rangeOfTypeParameters(sourceFile, parent.typeParameters);\n var only = parent.typeParameters.length === 1;\n //TODO: following line is possible reason for bug #41974, unusedTypeParameters_TemplateTag\n var message = only ? ts.Diagnostics._0_is_declared_but_its_value_is_never_read : ts.Diagnostics.All_type_parameters_are_unused;\n var arg0 = only ? name : undefined;\n addDiagnostic(typeParameter, 1 /* Parameter */, ts.createFileDiagnostic(sourceFile, range.pos, range.end - range.pos, message, arg0));\n }\n }\n else {\n //TODO: following line is possible reason for bug #41974, unusedTypeParameters_TemplateTag\n addDiagnostic(typeParameter, 1 /* Parameter */, ts.createDiagnosticForNode(typeParameter, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, name));\n }\n }\n }\n function isTypeParameterUnused(typeParameter) {\n return !(getMergedSymbol(typeParameter.symbol).isReferenced & 262144 /* TypeParameter */) && !isIdentifierThatStartsWithUnderscore(typeParameter.name);\n }\n function addToGroup(map, key, value, getKey) {\n var keyString = String(getKey(key));\n var group = map.get(keyString);\n if (group) {\n group[1].push(value);\n }\n else {\n map.set(keyString, [key, [value]]);\n }\n }\n function tryGetRootParameterDeclaration(node) {\n return ts.tryCast(ts.getRootDeclaration(node), ts.isParameter);\n }\n function isValidUnusedLocalDeclaration(declaration) {\n if (ts.isBindingElement(declaration)) {\n if (ts.isObjectBindingPattern(declaration.parent)) {\n /**\n * ignore starts with underscore names _\n * const { a: _a } = { a: 1 }\n */\n return !!(declaration.propertyName && isIdentifierThatStartsWithUnderscore(declaration.name));\n }\n return isIdentifierThatStartsWithUnderscore(declaration.name);\n }\n return ts.isAmbientModule(declaration) ||\n (ts.isVariableDeclaration(declaration) && ts.isForInOrOfStatement(declaration.parent.parent) || isImportedDeclaration(declaration)) && isIdentifierThatStartsWithUnderscore(declaration.name);\n }\n function checkUnusedLocalsAndParameters(nodeWithLocals, addDiagnostic) {\n // Ideally we could use the ImportClause directly as a key, but must wait until we have full ES6 maps. So must store key along with value.\n var unusedImports = new ts.Map();\n var unusedDestructures = new ts.Map();\n var unusedVariables = new ts.Map();\n nodeWithLocals.locals.forEach(function (local) {\n // If it's purely a type parameter, ignore, will be checked in `checkUnusedTypeParameters`.\n // If it's a type parameter merged with a parameter, check if the parameter-side is used.\n if (local.flags & 262144 /* TypeParameter */ ? !(local.flags & 3 /* Variable */ && !(local.isReferenced & 3 /* Variable */)) : local.isReferenced || local.exportSymbol) {\n return;\n }\n if (local.declarations) {\n for (var _i = 0, _a = local.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (isValidUnusedLocalDeclaration(declaration)) {\n continue;\n }\n if (isImportedDeclaration(declaration)) {\n addToGroup(unusedImports, importClauseFromImported(declaration), declaration, getNodeId);\n }\n else if (ts.isBindingElement(declaration) && ts.isObjectBindingPattern(declaration.parent)) {\n // In `{ a, ...b }, `a` is considered used since it removes a property from `b`. `b` may still be unused though.\n var lastElement = ts.last(declaration.parent.elements);\n if (declaration === lastElement || !ts.last(declaration.parent.elements).dotDotDotToken) {\n addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId);\n }\n }\n else if (ts.isVariableDeclaration(declaration)) {\n addToGroup(unusedVariables, declaration.parent, declaration, getNodeId);\n }\n else {\n var parameter = local.valueDeclaration && tryGetRootParameterDeclaration(local.valueDeclaration);\n var name = local.valueDeclaration && ts.getNameOfDeclaration(local.valueDeclaration);\n if (parameter && name) {\n if (!ts.isParameterPropertyDeclaration(parameter, parameter.parent) && !ts.parameterIsThisKeyword(parameter) && !isIdentifierThatStartsWithUnderscore(name)) {\n if (ts.isBindingElement(declaration) && ts.isArrayBindingPattern(declaration.parent)) {\n addToGroup(unusedDestructures, declaration.parent, declaration, getNodeId);\n }\n else {\n addDiagnostic(parameter, 1 /* Parameter */, ts.createDiagnosticForNode(name, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, ts.symbolName(local)));\n }\n }\n }\n else {\n errorUnusedLocal(declaration, ts.symbolName(local), addDiagnostic);\n }\n }\n }\n }\n });\n unusedImports.forEach(function (_a) {\n var importClause = _a[0], unuseds = _a[1];\n var importDecl = importClause.parent;\n var nDeclarations = (importClause.name ? 1 : 0) +\n (importClause.namedBindings ?\n (importClause.namedBindings.kind === 266 /* NamespaceImport */ ? 1 : importClause.namedBindings.elements.length)\n : 0);\n if (nDeclarations === unuseds.length) {\n addDiagnostic(importDecl, 0 /* Local */, unuseds.length === 1\n ? ts.createDiagnosticForNode(importDecl, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, ts.idText(ts.first(unuseds).name))\n : ts.createDiagnosticForNode(importDecl, ts.Diagnostics.All_imports_in_import_declaration_are_unused));\n }\n else {\n for (var _i = 0, unuseds_1 = unuseds; _i < unuseds_1.length; _i++) {\n var unused = unuseds_1[_i];\n errorUnusedLocal(unused, ts.idText(unused.name), addDiagnostic);\n }\n }\n });\n unusedDestructures.forEach(function (_a) {\n var bindingPattern = _a[0], bindingElements = _a[1];\n var kind = tryGetRootParameterDeclaration(bindingPattern.parent) ? 1 /* Parameter */ : 0 /* Local */;\n if (bindingPattern.elements.length === bindingElements.length) {\n if (bindingElements.length === 1 && bindingPattern.parent.kind === 252 /* VariableDeclaration */ && bindingPattern.parent.parent.kind === 253 /* VariableDeclarationList */) {\n addToGroup(unusedVariables, bindingPattern.parent.parent, bindingPattern.parent, getNodeId);\n }\n else {\n addDiagnostic(bindingPattern, kind, bindingElements.length === 1\n ? ts.createDiagnosticForNode(bindingPattern, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(ts.first(bindingElements).name))\n : ts.createDiagnosticForNode(bindingPattern, ts.Diagnostics.All_destructured_elements_are_unused));\n }\n }\n else {\n for (var _i = 0, bindingElements_1 = bindingElements; _i < bindingElements_1.length; _i++) {\n var e = bindingElements_1[_i];\n addDiagnostic(e, kind, ts.createDiagnosticForNode(e, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(e.name)));\n }\n }\n });\n unusedVariables.forEach(function (_a) {\n var declarationList = _a[0], declarations = _a[1];\n if (declarationList.declarations.length === declarations.length) {\n addDiagnostic(declarationList, 0 /* Local */, declarations.length === 1\n ? ts.createDiagnosticForNode(ts.first(declarations).name, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(ts.first(declarations).name))\n : ts.createDiagnosticForNode(declarationList.parent.kind === 235 /* VariableStatement */ ? declarationList.parent : declarationList, ts.Diagnostics.All_variables_are_unused));\n }\n else {\n for (var _i = 0, declarations_5 = declarations; _i < declarations_5.length; _i++) {\n var decl = declarations_5[_i];\n addDiagnostic(decl, 0 /* Local */, ts.createDiagnosticForNode(decl, ts.Diagnostics._0_is_declared_but_its_value_is_never_read, bindingNameText(decl.name)));\n }\n }\n });\n }\n function bindingNameText(name) {\n switch (name.kind) {\n case 79 /* Identifier */:\n return ts.idText(name);\n case 200 /* ArrayBindingPattern */:\n case 199 /* ObjectBindingPattern */:\n return bindingNameText(ts.cast(ts.first(name.elements), ts.isBindingElement).name);\n default:\n return ts.Debug.assertNever(name);\n }\n }\n function isImportedDeclaration(node) {\n return node.kind === 265 /* ImportClause */ || node.kind === 268 /* ImportSpecifier */ || node.kind === 266 /* NamespaceImport */;\n }\n function importClauseFromImported(decl) {\n return decl.kind === 265 /* ImportClause */ ? decl : decl.kind === 266 /* NamespaceImport */ ? decl.parent : decl.parent.parent;\n }\n function checkBlock(node) {\n // Grammar checking for SyntaxKind.Block\n if (node.kind === 233 /* Block */) {\n checkGrammarStatementInAmbientContext(node);\n }\n if (ts.isFunctionOrModuleBlock(node)) {\n var saveFlowAnalysisDisabled = flowAnalysisDisabled;\n ts.forEach(node.statements, checkSourceElement);\n flowAnalysisDisabled = saveFlowAnalysisDisabled;\n }\n else {\n ts.forEach(node.statements, checkSourceElement);\n }\n if (node.locals) {\n registerForUnusedIdentifiersCheck(node);\n }\n }\n function checkCollisionWithArgumentsInGeneratedCode(node) {\n // no rest parameters \\ declaration context \\ overload - no codegen impact\n if (languageVersion >= 2 /* ES2015 */ || !ts.hasRestParameter(node) || node.flags & 8388608 /* Ambient */ || ts.nodeIsMissing(node.body)) {\n return;\n }\n ts.forEach(node.parameters, function (p) {\n if (p.name && !ts.isBindingPattern(p.name) && p.name.escapedText === argumentsSymbol.escapedName) {\n errorSkippedOn(\"noEmit\", p, ts.Diagnostics.Duplicate_identifier_arguments_Compiler_uses_arguments_to_initialize_rest_parameters);\n }\n });\n }\n /**\n * Checks whether an {@link Identifier}, in the context of another {@link Node}, would collide with a runtime value\n * of {@link name} in an outer scope. This is used to check for collisions for downlevel transformations that\n * require names like `Object`, `Promise`, `Reflect`, `require`, `exports`, etc.\n */\n function needCollisionCheckForIdentifier(node, identifier, name) {\n if ((identifier === null || identifier === void 0 ? void 0 : identifier.escapedText) !== name) {\n return false;\n }\n if (node.kind === 165 /* PropertyDeclaration */ ||\n node.kind === 164 /* PropertySignature */ ||\n node.kind === 167 /* MethodDeclaration */ ||\n node.kind === 166 /* MethodSignature */ ||\n node.kind === 170 /* GetAccessor */ ||\n node.kind === 171 /* SetAccessor */ ||\n node.kind === 291 /* PropertyAssignment */) {\n // it is ok to have member named '_super', '_this', `Promise`, etc. - member access is always qualified\n return false;\n }\n if (node.flags & 8388608 /* Ambient */) {\n // ambient context - no codegen impact\n return false;\n }\n if (ts.isImportClause(node) || ts.isImportEqualsDeclaration(node) || ts.isImportSpecifier(node)) {\n // type-only imports do not require collision checks against runtime values.\n if (ts.isTypeOnlyImportOrExportDeclaration(node)) {\n return false;\n }\n }\n var root = ts.getRootDeclaration(node);\n if (ts.isParameter(root) && ts.nodeIsMissing(root.parent.body)) {\n // just an overload - no codegen impact\n return false;\n }\n return true;\n }\n // this function will run after checking the source file so 'CaptureThis' is correct for all nodes\n function checkIfThisIsCapturedInEnclosingScope(node) {\n ts.findAncestor(node, function (current) {\n if (getNodeCheckFlags(current) & 4 /* CaptureThis */) {\n var isDeclaration_1 = node.kind !== 79 /* Identifier */;\n if (isDeclaration_1) {\n error(ts.getNameOfDeclaration(node), ts.Diagnostics.Duplicate_identifier_this_Compiler_uses_variable_declaration_this_to_capture_this_reference);\n }\n else {\n error(node, ts.Diagnostics.Expression_resolves_to_variable_declaration_this_that_compiler_uses_to_capture_this_reference);\n }\n return true;\n }\n return false;\n });\n }\n function checkIfNewTargetIsCapturedInEnclosingScope(node) {\n ts.findAncestor(node, function (current) {\n if (getNodeCheckFlags(current) & 8 /* CaptureNewTarget */) {\n var isDeclaration_2 = node.kind !== 79 /* Identifier */;\n if (isDeclaration_2) {\n error(ts.getNameOfDeclaration(node), ts.Diagnostics.Duplicate_identifier_newTarget_Compiler_uses_variable_declaration_newTarget_to_capture_new_target_meta_property_reference);\n }\n else {\n error(node, ts.Diagnostics.Expression_resolves_to_variable_declaration_newTarget_that_compiler_uses_to_capture_new_target_meta_property_reference);\n }\n return true;\n }\n return false;\n });\n }\n function checkCollisionWithRequireExportsInGeneratedCode(node, name) {\n // No need to check for require or exports for ES6 modules and later\n if (moduleKind >= ts.ModuleKind.ES2015) {\n return;\n }\n if (!name || !needCollisionCheckForIdentifier(node, name, \"require\") && !needCollisionCheckForIdentifier(node, name, \"exports\")) {\n return;\n }\n // Uninstantiated modules shouldnt do this check\n if (ts.isModuleDeclaration(node) && ts.getModuleInstanceState(node) !== 1 /* Instantiated */) {\n return;\n }\n // In case of variable declaration, node.parent is variable statement so look at the variable statement's parent\n var parent = getDeclarationContainer(node);\n if (parent.kind === 300 /* SourceFile */ && ts.isExternalOrCommonJsModule(parent)) {\n // If the declaration happens to be in external module, report error that require and exports are reserved keywords\n errorSkippedOn(\"noEmit\", name, ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module, ts.declarationNameToString(name), ts.declarationNameToString(name));\n }\n }\n function checkCollisionWithGlobalPromiseInGeneratedCode(node, name) {\n if (!name || languageVersion >= 4 /* ES2017 */ || !needCollisionCheckForIdentifier(node, name, \"Promise\")) {\n return;\n }\n // Uninstantiated modules shouldnt do this check\n if (ts.isModuleDeclaration(node) && ts.getModuleInstanceState(node) !== 1 /* Instantiated */) {\n return;\n }\n // In case of variable declaration, node.parent is variable statement so look at the variable statement's parent\n var parent = getDeclarationContainer(node);\n if (parent.kind === 300 /* SourceFile */ && ts.isExternalOrCommonJsModule(parent) && parent.flags & 2048 /* HasAsyncFunctions */) {\n // If the declaration happens to be in external module, report error that Promise is a reserved identifier.\n errorSkippedOn(\"noEmit\", name, ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_in_top_level_scope_of_a_module_containing_async_functions, ts.declarationNameToString(name), ts.declarationNameToString(name));\n }\n }\n function recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name) {\n if (languageVersion <= 8 /* ES2021 */\n && (needCollisionCheckForIdentifier(node, name, \"WeakMap\") || needCollisionCheckForIdentifier(node, name, \"WeakSet\"))) {\n potentialWeakMapSetCollisions.push(node);\n }\n }\n function checkWeakMapSetCollision(node) {\n var enclosingBlockScope = ts.getEnclosingBlockScopeContainer(node);\n if (getNodeCheckFlags(enclosingBlockScope) & 67108864 /* ContainsClassWithPrivateIdentifiers */) {\n ts.Debug.assert(ts.isNamedDeclaration(node) && ts.isIdentifier(node.name) && typeof node.name.escapedText === \"string\", \"The target of a WeakMap/WeakSet collision check should be an identifier\");\n errorSkippedOn(\"noEmit\", node, ts.Diagnostics.Compiler_reserves_name_0_when_emitting_private_identifier_downlevel, node.name.escapedText);\n }\n }\n function recordPotentialCollisionWithReflectInGeneratedCode(node, name) {\n if (name && languageVersion >= 2 /* ES2015 */ && languageVersion <= 8 /* ES2021 */\n && needCollisionCheckForIdentifier(node, name, \"Reflect\")) {\n potentialReflectCollisions.push(node);\n }\n }\n function checkReflectCollision(node) {\n var hasCollision = false;\n if (ts.isClassExpression(node)) {\n // ClassExpression names don't contribute to their containers, but do matter for any of their block-scoped members.\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (getNodeCheckFlags(member) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {\n hasCollision = true;\n break;\n }\n }\n }\n else if (ts.isFunctionExpression(node)) {\n // FunctionExpression names don't contribute to their containers, but do matter for their contents\n if (getNodeCheckFlags(node) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {\n hasCollision = true;\n }\n }\n else {\n var container = ts.getEnclosingBlockScopeContainer(node);\n if (container && getNodeCheckFlags(container) & 134217728 /* ContainsSuperPropertyInStaticInitializer */) {\n hasCollision = true;\n }\n }\n if (hasCollision) {\n ts.Debug.assert(ts.isNamedDeclaration(node) && ts.isIdentifier(node.name), \"The target of a Reflect collision check should be an identifier\");\n errorSkippedOn(\"noEmit\", node, ts.Diagnostics.Duplicate_identifier_0_Compiler_reserves_name_1_when_emitting_super_references_in_static_initializers, ts.declarationNameToString(node.name), \"Reflect\");\n }\n }\n function checkCollisionsForDeclarationName(node, name) {\n if (!name)\n return;\n checkCollisionWithRequireExportsInGeneratedCode(node, name);\n checkCollisionWithGlobalPromiseInGeneratedCode(node, name);\n recordPotentialCollisionWithWeakMapSetInGeneratedCode(node, name);\n recordPotentialCollisionWithReflectInGeneratedCode(node, name);\n if (ts.isClassLike(node)) {\n checkTypeNameIsReserved(name, ts.Diagnostics.Class_name_cannot_be_0);\n if (!(node.flags & 8388608 /* Ambient */)) {\n checkClassNameCollisionWithObject(name);\n }\n }\n else if (ts.isEnumDeclaration(node)) {\n checkTypeNameIsReserved(name, ts.Diagnostics.Enum_name_cannot_be_0);\n }\n }\n function checkVarDeclaredNamesNotShadowed(node) {\n // - ScriptBody : StatementList\n // It is a Syntax Error if any element of the LexicallyDeclaredNames of StatementList\n // also occurs in the VarDeclaredNames of StatementList.\n // - Block : { StatementList }\n // It is a Syntax Error if any element of the LexicallyDeclaredNames of StatementList\n // also occurs in the VarDeclaredNames of StatementList.\n // Variable declarations are hoisted to the top of their function scope. They can shadow\n // block scoped declarations, which bind tighter. this will not be flagged as duplicate definition\n // by the binder as the declaration scope is different.\n // A non-initialized declaration is a no-op as the block declaration will resolve before the var\n // declaration. the problem is if the declaration has an initializer. this will act as a write to the\n // block declared value. this is fine for let, but not const.\n // Only consider declarations with initializers, uninitialized const declarations will not\n // step on a let/const variable.\n // Do not consider const and const declarations, as duplicate block-scoped declarations\n // are handled by the binder.\n // We are only looking for const declarations that step on let\\const declarations from a\n // different scope. e.g.:\n // {\n // const x = 0; // localDeclarationSymbol obtained after name resolution will correspond to this declaration\n // const x = 0; // symbol for this declaration will be 'symbol'\n // }\n // skip block-scoped variables and parameters\n if ((ts.getCombinedNodeFlags(node) & 3 /* BlockScoped */) !== 0 || ts.isParameterDeclaration(node)) {\n return;\n }\n // skip variable declarations that don't have initializers\n // NOTE: in ES6 spec initializer is required in variable declarations where name is binding pattern\n // so we'll always treat binding elements as initialized\n if (node.kind === 252 /* VariableDeclaration */ && !node.initializer) {\n return;\n }\n var symbol = getSymbolOfNode(node);\n if (symbol.flags & 1 /* FunctionScopedVariable */) {\n if (!ts.isIdentifier(node.name))\n return ts.Debug.fail();\n var localDeclarationSymbol = resolveName(node, node.name.escapedText, 3 /* Variable */, /*nodeNotFoundErrorMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false);\n if (localDeclarationSymbol &&\n localDeclarationSymbol !== symbol &&\n localDeclarationSymbol.flags & 2 /* BlockScopedVariable */) {\n if (getDeclarationNodeFlagsFromSymbol(localDeclarationSymbol) & 3 /* BlockScoped */) {\n var varDeclList = ts.getAncestor(localDeclarationSymbol.valueDeclaration, 253 /* VariableDeclarationList */);\n var container = varDeclList.parent.kind === 235 /* VariableStatement */ && varDeclList.parent.parent\n ? varDeclList.parent.parent\n : undefined;\n // names of block-scoped and function scoped variables can collide only\n // if block scoped variable is defined in the function\\module\\source file scope (because of variable hoisting)\n var namesShareScope = container &&\n (container.kind === 233 /* Block */ && ts.isFunctionLike(container.parent) ||\n container.kind === 260 /* ModuleBlock */ ||\n container.kind === 259 /* ModuleDeclaration */ ||\n container.kind === 300 /* SourceFile */);\n // here we know that function scoped variable is shadowed by block scoped one\n // if they are defined in the same scope - binder has already reported redeclaration error\n // otherwise if variable has an initializer - show error that initialization will fail\n // since LHS will be block scoped name instead of function scoped\n if (!namesShareScope) {\n var name = symbolToString(localDeclarationSymbol);\n error(node, ts.Diagnostics.Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1, name, name);\n }\n }\n }\n }\n }\n function convertAutoToAny(type) {\n return type === autoType ? anyType : type === autoArrayType ? anyArrayType : type;\n }\n // Check variable, parameter, or property declaration\n function checkVariableLikeDeclaration(node) {\n var _a;\n checkDecorators(node);\n if (!ts.isBindingElement(node)) {\n checkSourceElement(node.type);\n }\n // JSDoc `function(string, string): string` syntax results in parameters with no name\n if (!node.name) {\n return;\n }\n // For a computed property, just check the initializer and exit\n // Do not use hasDynamicName here, because that returns false for well known symbols.\n // We want to perform checkComputedPropertyName for all computed properties, including\n // well known symbols.\n if (node.name.kind === 160 /* ComputedPropertyName */) {\n checkComputedPropertyName(node.name);\n if (node.initializer) {\n checkExpressionCached(node.initializer);\n }\n }\n if (ts.isBindingElement(node)) {\n if (ts.isObjectBindingPattern(node.parent) && node.dotDotDotToken && languageVersion < 5 /* ES2018 */) {\n checkExternalEmitHelpers(node, 4 /* Rest */);\n }\n // check computed properties inside property names of binding elements\n if (node.propertyName && node.propertyName.kind === 160 /* ComputedPropertyName */) {\n checkComputedPropertyName(node.propertyName);\n }\n // check private/protected variable access\n var parent = node.parent.parent;\n var parentType = getTypeForBindingElementParent(parent);\n var name = node.propertyName || node.name;\n if (parentType && !ts.isBindingPattern(name)) {\n var exprType = getLiteralTypeFromPropertyName(name);\n if (isTypeUsableAsPropertyName(exprType)) {\n var nameText = getPropertyNameFromType(exprType);\n var property = getPropertyOfType(parentType, nameText);\n if (property) {\n markPropertyAsReferenced(property, /*nodeForCheckWriteOnly*/ undefined, /*isSelfTypeAccess*/ false); // A destructuring is never a write-only reference.\n checkPropertyAccessibility(node, !!parent.initializer && parent.initializer.kind === 106 /* SuperKeyword */, /*writing*/ false, parentType, property);\n }\n }\n }\n }\n // For a binding pattern, check contained binding elements\n if (ts.isBindingPattern(node.name)) {\n if (node.name.kind === 200 /* ArrayBindingPattern */ && languageVersion < 2 /* ES2015 */ && compilerOptions.downlevelIteration) {\n checkExternalEmitHelpers(node, 512 /* Read */);\n }\n ts.forEach(node.name.elements, checkSourceElement);\n }\n // For a parameter declaration with an initializer, error and exit if the containing function doesn't have a body\n if (node.initializer && ts.isParameterDeclaration(node) && ts.nodeIsMissing(ts.getContainingFunction(node).body)) {\n error(node, ts.Diagnostics.A_parameter_initializer_is_only_allowed_in_a_function_or_constructor_implementation);\n return;\n }\n // For a binding pattern, validate the initializer and exit\n if (ts.isBindingPattern(node.name)) {\n var needCheckInitializer = node.initializer && node.parent.parent.kind !== 241 /* ForInStatement */;\n var needCheckWidenedType = node.name.elements.length === 0;\n if (needCheckInitializer || needCheckWidenedType) {\n // Don't validate for-in initializer as it is already an error\n var widenedType = getWidenedTypeForVariableLikeDeclaration(node);\n if (needCheckInitializer) {\n var initializerType = checkExpressionCached(node.initializer);\n if (strictNullChecks && needCheckWidenedType) {\n checkNonNullNonVoidType(initializerType, node);\n }\n else {\n checkTypeAssignableToAndOptionallyElaborate(initializerType, getWidenedTypeForVariableLikeDeclaration(node), node, node.initializer);\n }\n }\n // check the binding pattern with empty elements\n if (needCheckWidenedType) {\n if (ts.isArrayBindingPattern(node.name)) {\n checkIteratedTypeOrElementType(65 /* Destructuring */, widenedType, undefinedType, node);\n }\n else if (strictNullChecks) {\n checkNonNullNonVoidType(widenedType, node);\n }\n }\n }\n return;\n }\n // For a commonjs `const x = require`, validate the alias and exit\n var symbol = getSymbolOfNode(node);\n if (symbol.flags & 2097152 /* Alias */ && ts.isRequireVariableDeclaration(node)) {\n checkAliasSymbol(node);\n return;\n }\n var type = convertAutoToAny(getTypeOfSymbol(symbol));\n if (node === symbol.valueDeclaration) {\n // Node is the primary declaration of the symbol, just validate the initializer\n // Don't validate for-in initializer as it is already an error\n var initializer = ts.getEffectiveInitializer(node);\n if (initializer) {\n var isJSObjectLiteralInitializer = ts.isInJSFile(node) &&\n ts.isObjectLiteralExpression(initializer) &&\n (initializer.properties.length === 0 || ts.isPrototypeAccess(node.name)) &&\n !!((_a = symbol.exports) === null || _a === void 0 ? void 0 : _a.size);\n if (!isJSObjectLiteralInitializer && node.parent.parent.kind !== 241 /* ForInStatement */) {\n checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(initializer), type, node, initializer, /*headMessage*/ undefined);\n }\n }\n if (symbol.declarations && symbol.declarations.length > 1) {\n if (ts.some(symbol.declarations, function (d) { return d !== node && ts.isVariableLike(d) && !areDeclarationFlagsIdentical(d, node); })) {\n error(node.name, ts.Diagnostics.All_declarations_of_0_must_have_identical_modifiers, ts.declarationNameToString(node.name));\n }\n }\n }\n else {\n // Node is a secondary declaration, check that type is identical to primary declaration and check that\n // initializer is consistent with type associated with the node\n var declarationType = convertAutoToAny(getWidenedTypeForVariableLikeDeclaration(node));\n if (type !== errorType && declarationType !== errorType &&\n !isTypeIdenticalTo(type, declarationType) &&\n !(symbol.flags & 67108864 /* Assignment */)) {\n errorNextVariableOrPropertyDeclarationMustHaveSameType(symbol.valueDeclaration, type, node, declarationType);\n }\n if (node.initializer) {\n checkTypeAssignableToAndOptionallyElaborate(checkExpressionCached(node.initializer), declarationType, node, node.initializer, /*headMessage*/ undefined);\n }\n if (symbol.valueDeclaration && !areDeclarationFlagsIdentical(node, symbol.valueDeclaration)) {\n error(node.name, ts.Diagnostics.All_declarations_of_0_must_have_identical_modifiers, ts.declarationNameToString(node.name));\n }\n }\n if (node.kind !== 165 /* PropertyDeclaration */ && node.kind !== 164 /* PropertySignature */) {\n // We know we don't have a binding pattern or computed name here\n checkExportsOnMergedDeclarations(node);\n if (node.kind === 252 /* VariableDeclaration */ || node.kind === 201 /* BindingElement */) {\n checkVarDeclaredNamesNotShadowed(node);\n }\n checkCollisionsForDeclarationName(node, node.name);\n }\n }\n function errorNextVariableOrPropertyDeclarationMustHaveSameType(firstDeclaration, firstType, nextDeclaration, nextType) {\n var nextDeclarationName = ts.getNameOfDeclaration(nextDeclaration);\n var message = nextDeclaration.kind === 165 /* PropertyDeclaration */ || nextDeclaration.kind === 164 /* PropertySignature */\n ? ts.Diagnostics.Subsequent_property_declarations_must_have_the_same_type_Property_0_must_be_of_type_1_but_here_has_type_2\n : ts.Diagnostics.Subsequent_variable_declarations_must_have_the_same_type_Variable_0_must_be_of_type_1_but_here_has_type_2;\n var declName = ts.declarationNameToString(nextDeclarationName);\n var err = error(nextDeclarationName, message, declName, typeToString(firstType), typeToString(nextType));\n if (firstDeclaration) {\n ts.addRelatedInfo(err, ts.createDiagnosticForNode(firstDeclaration, ts.Diagnostics._0_was_also_declared_here, declName));\n }\n }\n function areDeclarationFlagsIdentical(left, right) {\n if ((left.kind === 162 /* Parameter */ && right.kind === 252 /* VariableDeclaration */) ||\n (left.kind === 252 /* VariableDeclaration */ && right.kind === 162 /* Parameter */)) {\n // Differences in optionality between parameters and variables are allowed.\n return true;\n }\n if (ts.hasQuestionToken(left) !== ts.hasQuestionToken(right)) {\n return false;\n }\n var interestingFlags = 8 /* Private */ |\n 16 /* Protected */ |\n 256 /* Async */ |\n 128 /* Abstract */ |\n 64 /* Readonly */ |\n 32 /* Static */;\n return ts.getSelectedEffectiveModifierFlags(left, interestingFlags) === ts.getSelectedEffectiveModifierFlags(right, interestingFlags);\n }\n function checkVariableDeclaration(node) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"check\" /* Check */, \"checkVariableDeclaration\", { kind: node.kind, pos: node.pos, end: node.end });\n checkGrammarVariableDeclaration(node);\n checkVariableLikeDeclaration(node);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n function checkBindingElement(node) {\n checkGrammarBindingElement(node);\n return checkVariableLikeDeclaration(node);\n }\n function checkVariableStatement(node) {\n // Grammar checking\n if (!checkGrammarDecoratorsAndModifiers(node) && !checkGrammarVariableDeclarationList(node.declarationList))\n checkGrammarForDisallowedLetOrConstStatement(node);\n ts.forEach(node.declarationList.declarations, checkSourceElement);\n }\n function checkExpressionStatement(node) {\n // Grammar checking\n checkGrammarStatementInAmbientContext(node);\n checkExpression(node.expression);\n }\n function checkIfStatement(node) {\n // Grammar checking\n checkGrammarStatementInAmbientContext(node);\n var type = checkTruthinessExpression(node.expression);\n checkTestingKnownTruthyCallableOrAwaitableType(node.expression, type, node.thenStatement);\n checkSourceElement(node.thenStatement);\n if (node.thenStatement.kind === 234 /* EmptyStatement */) {\n error(node.thenStatement, ts.Diagnostics.The_body_of_an_if_statement_cannot_be_the_empty_statement);\n }\n checkSourceElement(node.elseStatement);\n }\n function checkTestingKnownTruthyCallableOrAwaitableType(condExpr, type, body) {\n if (!strictNullChecks)\n return;\n if (getFalsyFlags(type))\n return;\n var location = ts.isBinaryExpression(condExpr) ? condExpr.right : condExpr;\n if (ts.isPropertyAccessExpression(location) && ts.isAssertionExpression(ts.skipParentheses(location.expression))) {\n return;\n }\n var testedNode = ts.isIdentifier(location) ? location\n : ts.isPropertyAccessExpression(location) ? location.name\n : ts.isBinaryExpression(location) && ts.isIdentifier(location.right) ? location.right\n : undefined;\n // While it technically should be invalid for any known-truthy value\n // to be tested, we de-scope to functions and Promises unreferenced in\n // the block as a heuristic to identify the most common bugs. There\n // are too many false positives for values sourced from type\n // definitions without strictNullChecks otherwise.\n var callSignatures = getSignaturesOfType(type, 0 /* Call */);\n var isPromise = !!getAwaitedTypeOfPromise(type);\n if (callSignatures.length === 0 && !isPromise) {\n return;\n }\n var testedSymbol = testedNode && getSymbolAtLocation(testedNode);\n if (!testedSymbol && !isPromise) {\n return;\n }\n var isUsed = testedSymbol && ts.isBinaryExpression(condExpr.parent) && isSymbolUsedInBinaryExpressionChain(condExpr.parent, testedSymbol)\n || testedSymbol && body && isSymbolUsedInConditionBody(condExpr, body, testedNode, testedSymbol);\n if (!isUsed) {\n if (isPromise) {\n errorAndMaybeSuggestAwait(location, \n /*maybeMissingAwait*/ true, ts.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined, getTypeNameForErrorDisplay(type));\n }\n else {\n error(location, ts.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead);\n }\n }\n }\n function isSymbolUsedInConditionBody(expr, body, testedNode, testedSymbol) {\n return !!ts.forEachChild(body, function check(childNode) {\n if (ts.isIdentifier(childNode)) {\n var childSymbol = getSymbolAtLocation(childNode);\n if (childSymbol && childSymbol === testedSymbol) {\n // If the test was a simple identifier, the above check is sufficient\n if (ts.isIdentifier(expr)) {\n return true;\n }\n // Otherwise we need to ensure the symbol is called on the same target\n var testedExpression = testedNode.parent;\n var childExpression = childNode.parent;\n while (testedExpression && childExpression) {\n if (ts.isIdentifier(testedExpression) && ts.isIdentifier(childExpression) ||\n testedExpression.kind === 108 /* ThisKeyword */ && childExpression.kind === 108 /* ThisKeyword */) {\n return getSymbolAtLocation(testedExpression) === getSymbolAtLocation(childExpression);\n }\n else if (ts.isPropertyAccessExpression(testedExpression) && ts.isPropertyAccessExpression(childExpression)) {\n if (getSymbolAtLocation(testedExpression.name) !== getSymbolAtLocation(childExpression.name)) {\n return false;\n }\n childExpression = childExpression.expression;\n testedExpression = testedExpression.expression;\n }\n else if (ts.isCallExpression(testedExpression) && ts.isCallExpression(childExpression)) {\n childExpression = childExpression.expression;\n testedExpression = testedExpression.expression;\n }\n else {\n return false;\n }\n }\n }\n }\n return ts.forEachChild(childNode, check);\n });\n }\n function isSymbolUsedInBinaryExpressionChain(node, testedSymbol) {\n while (ts.isBinaryExpression(node) && node.operatorToken.kind === 55 /* AmpersandAmpersandToken */) {\n var isUsed = ts.forEachChild(node.right, function visit(child) {\n if (ts.isIdentifier(child)) {\n var symbol = getSymbolAtLocation(child);\n if (symbol && symbol === testedSymbol) {\n return true;\n }\n }\n return ts.forEachChild(child, visit);\n });\n if (isUsed) {\n return true;\n }\n node = node.parent;\n }\n return false;\n }\n function checkDoStatement(node) {\n // Grammar checking\n checkGrammarStatementInAmbientContext(node);\n checkSourceElement(node.statement);\n checkTruthinessExpression(node.expression);\n }\n function checkWhileStatement(node) {\n // Grammar checking\n checkGrammarStatementInAmbientContext(node);\n checkTruthinessExpression(node.expression);\n checkSourceElement(node.statement);\n }\n function checkTruthinessOfType(type, node) {\n if (type.flags & 16384 /* Void */) {\n error(node, ts.Diagnostics.An_expression_of_type_void_cannot_be_tested_for_truthiness);\n }\n return type;\n }\n function checkTruthinessExpression(node, checkMode) {\n return checkTruthinessOfType(checkExpression(node, checkMode), node);\n }\n function checkForStatement(node) {\n // Grammar checking\n if (!checkGrammarStatementInAmbientContext(node)) {\n if (node.initializer && node.initializer.kind === 253 /* VariableDeclarationList */) {\n checkGrammarVariableDeclarationList(node.initializer);\n }\n }\n if (node.initializer) {\n if (node.initializer.kind === 253 /* VariableDeclarationList */) {\n ts.forEach(node.initializer.declarations, checkVariableDeclaration);\n }\n else {\n checkExpression(node.initializer);\n }\n }\n if (node.condition)\n checkTruthinessExpression(node.condition);\n if (node.incrementor)\n checkExpression(node.incrementor);\n checkSourceElement(node.statement);\n if (node.locals) {\n registerForUnusedIdentifiersCheck(node);\n }\n }\n function checkForOfStatement(node) {\n checkGrammarForInOrForOfStatement(node);\n var container = ts.getContainingFunctionOrClassStaticBlock(node);\n if (node.awaitModifier) {\n if (container && ts.isClassStaticBlockDeclaration(container)) {\n grammarErrorOnNode(node.awaitModifier, ts.Diagnostics.For_await_loops_cannot_be_used_inside_a_class_static_block);\n }\n else {\n var functionFlags = ts.getFunctionFlags(container);\n if ((functionFlags & (4 /* Invalid */ | 2 /* Async */)) === 2 /* Async */ && languageVersion < 99 /* ESNext */) {\n // for..await..of in an async function or async generator function prior to ESNext requires the __asyncValues helper\n checkExternalEmitHelpers(node, 16384 /* ForAwaitOfIncludes */);\n }\n }\n }\n else if (compilerOptions.downlevelIteration && languageVersion < 2 /* ES2015 */) {\n // for..of prior to ES2015 requires the __values helper when downlevelIteration is enabled\n checkExternalEmitHelpers(node, 256 /* ForOfIncludes */);\n }\n // Check the LHS and RHS\n // If the LHS is a declaration, just check it as a variable declaration, which will in turn check the RHS\n // via checkRightHandSideOfForOf.\n // If the LHS is an expression, check the LHS, as a destructuring assignment or as a reference.\n // Then check that the RHS is assignable to it.\n if (node.initializer.kind === 253 /* VariableDeclarationList */) {\n checkForInOrForOfVariableDeclaration(node);\n }\n else {\n var varExpr = node.initializer;\n var iteratedType = checkRightHandSideOfForOf(node);\n // There may be a destructuring assignment on the left side\n if (varExpr.kind === 202 /* ArrayLiteralExpression */ || varExpr.kind === 203 /* ObjectLiteralExpression */) {\n // iteratedType may be undefined. In this case, we still want to check the structure of\n // varExpr, in particular making sure it's a valid LeftHandSideExpression. But we'd like\n // to short circuit the type relation checking as much as possible, so we pass the unknownType.\n checkDestructuringAssignment(varExpr, iteratedType || errorType);\n }\n else {\n var leftType = checkExpression(varExpr);\n checkReferenceExpression(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_must_be_a_variable_or_a_property_access, ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_an_optional_property_access);\n // iteratedType will be undefined if the rightType was missing properties/signatures\n // required to get its iteratedType (like [Symbol.iterator] or next). This may be\n // because we accessed properties from anyType, or it may have led to an error inside\n // getElementTypeOfIterable.\n if (iteratedType) {\n checkTypeAssignableToAndOptionallyElaborate(iteratedType, leftType, varExpr, node.expression);\n }\n }\n }\n checkSourceElement(node.statement);\n if (node.locals) {\n registerForUnusedIdentifiersCheck(node);\n }\n }\n function checkForInStatement(node) {\n // Grammar checking\n checkGrammarForInOrForOfStatement(node);\n var rightType = getNonNullableTypeIfNeeded(checkExpression(node.expression));\n // TypeScript 1.0 spec (April 2014): 5.4\n // In a 'for-in' statement of the form\n // for (let VarDecl in Expr) Statement\n // VarDecl must be a variable declaration without a type annotation that declares a variable of type Any,\n // and Expr must be an expression of type Any, an object type, or a type parameter type.\n if (node.initializer.kind === 253 /* VariableDeclarationList */) {\n var variable = node.initializer.declarations[0];\n if (variable && ts.isBindingPattern(variable.name)) {\n error(variable.name, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern);\n }\n checkForInOrForOfVariableDeclaration(node);\n }\n else {\n // In a 'for-in' statement of the form\n // for (Var in Expr) Statement\n // Var must be an expression classified as a reference of type Any or the String primitive type,\n // and Expr must be an expression of type Any, an object type, or a type parameter type.\n var varExpr = node.initializer;\n var leftType = checkExpression(varExpr);\n if (varExpr.kind === 202 /* ArrayLiteralExpression */ || varExpr.kind === 203 /* ObjectLiteralExpression */) {\n error(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern);\n }\n else if (!isTypeAssignableTo(getIndexTypeOrString(rightType), leftType)) {\n error(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_of_type_string_or_any);\n }\n else {\n // run check only former check succeeded to avoid cascading errors\n checkReferenceExpression(varExpr, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_must_be_a_variable_or_a_property_access, ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_may_not_be_an_optional_property_access);\n }\n }\n // unknownType is returned i.e. if node.expression is identifier whose name cannot be resolved\n // in this case error about missing name is already reported - do not report extra one\n if (rightType === neverType || !isTypeAssignableToKind(rightType, 67108864 /* NonPrimitive */ | 58982400 /* InstantiableNonPrimitive */)) {\n error(node.expression, ts.Diagnostics.The_right_hand_side_of_a_for_in_statement_must_be_of_type_any_an_object_type_or_a_type_parameter_but_here_has_type_0, typeToString(rightType));\n }\n checkSourceElement(node.statement);\n if (node.locals) {\n registerForUnusedIdentifiersCheck(node);\n }\n }\n function checkForInOrForOfVariableDeclaration(iterationStatement) {\n var variableDeclarationList = iterationStatement.initializer;\n // checkGrammarForInOrForOfStatement will check that there is exactly one declaration.\n if (variableDeclarationList.declarations.length >= 1) {\n var decl = variableDeclarationList.declarations[0];\n checkVariableDeclaration(decl);\n }\n }\n function checkRightHandSideOfForOf(statement) {\n var use = statement.awaitModifier ? 15 /* ForAwaitOf */ : 13 /* ForOf */;\n return checkIteratedTypeOrElementType(use, checkNonNullExpression(statement.expression), undefinedType, statement.expression);\n }\n function checkIteratedTypeOrElementType(use, inputType, sentType, errorNode) {\n if (isTypeAny(inputType)) {\n return inputType;\n }\n return getIteratedTypeOrElementType(use, inputType, sentType, errorNode, /*checkAssignability*/ true) || anyType;\n }\n /**\n * When consuming an iterable type in a for..of, spread, or iterator destructuring assignment\n * we want to get the iterated type of an iterable for ES2015 or later, or the iterated type\n * of a iterable (if defined globally) or element type of an array like for ES2015 or earlier.\n */\n function getIteratedTypeOrElementType(use, inputType, sentType, errorNode, checkAssignability) {\n var allowAsyncIterables = (use & 2 /* AllowsAsyncIterablesFlag */) !== 0;\n if (inputType === neverType) {\n reportTypeNotIterableError(errorNode, inputType, allowAsyncIterables); // TODO: GH#18217\n return undefined;\n }\n var uplevelIteration = languageVersion >= 2 /* ES2015 */;\n var downlevelIteration = !uplevelIteration && compilerOptions.downlevelIteration;\n var possibleOutOfBounds = compilerOptions.noUncheckedIndexedAccess && !!(use & 128 /* PossiblyOutOfBounds */);\n // Get the iterated type of an `Iterable` or `IterableIterator` only in ES2015\n // or higher, when inside of an async generator or for-await-if, or when\n // downlevelIteration is requested.\n if (uplevelIteration || downlevelIteration || allowAsyncIterables) {\n // We only report errors for an invalid iterable type in ES2015 or higher.\n var iterationTypes = getIterationTypesOfIterable(inputType, use, uplevelIteration ? errorNode : undefined);\n if (checkAssignability) {\n if (iterationTypes) {\n var diagnostic = use & 8 /* ForOfFlag */ ? ts.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_for_of_will_always_send_0 :\n use & 32 /* SpreadFlag */ ? ts.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_spread_will_always_send_0 :\n use & 64 /* DestructuringFlag */ ? ts.Diagnostics.Cannot_iterate_value_because_the_next_method_of_its_iterator_expects_type_1_but_array_destructuring_will_always_send_0 :\n use & 16 /* YieldStarFlag */ ? ts.Diagnostics.Cannot_delegate_iteration_to_value_because_the_next_method_of_its_iterator_expects_type_1_but_the_containing_generator_will_always_send_0 :\n undefined;\n if (diagnostic) {\n checkTypeAssignableTo(sentType, iterationTypes.nextType, errorNode, diagnostic);\n }\n }\n }\n if (iterationTypes || uplevelIteration) {\n return possibleOutOfBounds ? includeUndefinedInIndexSignature(iterationTypes && iterationTypes.yieldType) : (iterationTypes && iterationTypes.yieldType);\n }\n }\n var arrayType = inputType;\n var reportedError = false;\n var hasStringConstituent = false;\n // If strings are permitted, remove any string-like constituents from the array type.\n // This allows us to find other non-string element types from an array unioned with\n // a string.\n if (use & 4 /* AllowsStringInputFlag */) {\n if (arrayType.flags & 1048576 /* Union */) {\n // After we remove all types that are StringLike, we will know if there was a string constituent\n // based on whether the result of filter is a new array.\n var arrayTypes = inputType.types;\n var filteredTypes = ts.filter(arrayTypes, function (t) { return !(t.flags & 402653316 /* StringLike */); });\n if (filteredTypes !== arrayTypes) {\n arrayType = getUnionType(filteredTypes, 2 /* Subtype */);\n }\n }\n else if (arrayType.flags & 402653316 /* StringLike */) {\n arrayType = neverType;\n }\n hasStringConstituent = arrayType !== inputType;\n if (hasStringConstituent) {\n if (languageVersion < 1 /* ES5 */) {\n if (errorNode) {\n error(errorNode, ts.Diagnostics.Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher);\n reportedError = true;\n }\n }\n // Now that we've removed all the StringLike types, if no constituents remain, then the entire\n // arrayOrStringType was a string.\n if (arrayType.flags & 131072 /* Never */) {\n return possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType;\n }\n }\n }\n if (!isArrayLikeType(arrayType)) {\n if (errorNode && !reportedError) {\n // Which error we report depends on whether we allow strings or if there was a\n // string constituent. For example, if the input type is number | string, we\n // want to say that number is not an array type. But if the input was just\n // number and string input is allowed, we want to say that number is not an\n // array type or a string type.\n var allowsStrings = !!(use & 4 /* AllowsStringInputFlag */) && !hasStringConstituent;\n var _a = getIterationDiagnosticDetails(allowsStrings, downlevelIteration), defaultDiagnostic = _a[0], maybeMissingAwait = _a[1];\n errorAndMaybeSuggestAwait(errorNode, maybeMissingAwait && !!getAwaitedTypeOfPromise(arrayType), defaultDiagnostic, typeToString(arrayType));\n }\n return hasStringConstituent ? possibleOutOfBounds ? includeUndefinedInIndexSignature(stringType) : stringType : undefined;\n }\n var arrayElementType = getIndexTypeOfType(arrayType, numberType);\n if (hasStringConstituent && arrayElementType) {\n // This is just an optimization for the case where arrayOrStringType is string | string[]\n if (arrayElementType.flags & 402653316 /* StringLike */ && !compilerOptions.noUncheckedIndexedAccess) {\n return stringType;\n }\n return getUnionType(possibleOutOfBounds ? [arrayElementType, stringType, undefinedType] : [arrayElementType, stringType], 2 /* Subtype */);\n }\n return (use & 128 /* PossiblyOutOfBounds */) ? includeUndefinedInIndexSignature(arrayElementType) : arrayElementType;\n function getIterationDiagnosticDetails(allowsStrings, downlevelIteration) {\n var _a;\n if (downlevelIteration) {\n return allowsStrings\n ? [ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true]\n : [ts.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator, true];\n }\n var yieldType = getIterationTypeOfIterable(use, 0 /* Yield */, inputType, /*errorNode*/ undefined);\n if (yieldType) {\n return [ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators, false];\n }\n if (isES2015OrLaterIterable((_a = inputType.symbol) === null || _a === void 0 ? void 0 : _a.escapedName)) {\n return [ts.Diagnostics.Type_0_can_only_be_iterated_through_when_using_the_downlevelIteration_flag_or_with_a_target_of_es2015_or_higher, true];\n }\n return allowsStrings\n ? [ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type, true]\n : [ts.Diagnostics.Type_0_is_not_an_array_type, true];\n }\n }\n function isES2015OrLaterIterable(n) {\n switch (n) {\n case \"Float32Array\":\n case \"Float64Array\":\n case \"Int16Array\":\n case \"Int32Array\":\n case \"Int8Array\":\n case \"NodeList\":\n case \"Uint16Array\":\n case \"Uint32Array\":\n case \"Uint8Array\":\n case \"Uint8ClampedArray\":\n return true;\n }\n return false;\n }\n /**\n * Gets the requested \"iteration type\" from an `Iterable`-like or `AsyncIterable`-like type.\n */\n function getIterationTypeOfIterable(use, typeKind, inputType, errorNode) {\n if (isTypeAny(inputType)) {\n return undefined;\n }\n var iterationTypes = getIterationTypesOfIterable(inputType, use, errorNode);\n return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(typeKind)];\n }\n function createIterationTypes(yieldType, returnType, nextType) {\n // `yieldType` and `returnType` are defaulted to `neverType` they each will be combined\n // via `getUnionType` when merging iteration types. `nextType` is defined as `unknownType`\n // as it is combined via `getIntersectionType` when merging iteration types.\n if (yieldType === void 0) { yieldType = neverType; }\n if (returnType === void 0) { returnType = neverType; }\n if (nextType === void 0) { nextType = unknownType; }\n // Use the cache only for intrinsic types to keep it small as they are likely to be\n // more frequently created (i.e. `Iterator`). Iteration types\n // are also cached on the type they are requested for, so we shouldn't need to maintain\n // the cache for less-frequently used types.\n if (yieldType.flags & 67359327 /* Intrinsic */ &&\n returnType.flags & (1 /* Any */ | 131072 /* Never */ | 2 /* Unknown */ | 16384 /* Void */ | 32768 /* Undefined */) &&\n nextType.flags & (1 /* Any */ | 131072 /* Never */ | 2 /* Unknown */ | 16384 /* Void */ | 32768 /* Undefined */)) {\n var id = getTypeListId([yieldType, returnType, nextType]);\n var iterationTypes = iterationTypesCache.get(id);\n if (!iterationTypes) {\n iterationTypes = { yieldType: yieldType, returnType: returnType, nextType: nextType };\n iterationTypesCache.set(id, iterationTypes);\n }\n return iterationTypes;\n }\n return { yieldType: yieldType, returnType: returnType, nextType: nextType };\n }\n /**\n * Combines multiple `IterationTypes` records.\n *\n * If `array` is empty or all elements are missing or are references to `noIterationTypes`,\n * then `noIterationTypes` is returned. Otherwise, an `IterationTypes` record is returned\n * for the combined iteration types.\n */\n function combineIterationTypes(array) {\n var yieldTypes;\n var returnTypes;\n var nextTypes;\n for (var _i = 0, array_11 = array; _i < array_11.length; _i++) {\n var iterationTypes = array_11[_i];\n if (iterationTypes === undefined || iterationTypes === noIterationTypes) {\n continue;\n }\n if (iterationTypes === anyIterationTypes) {\n return anyIterationTypes;\n }\n yieldTypes = ts.append(yieldTypes, iterationTypes.yieldType);\n returnTypes = ts.append(returnTypes, iterationTypes.returnType);\n nextTypes = ts.append(nextTypes, iterationTypes.nextType);\n }\n if (yieldTypes || returnTypes || nextTypes) {\n return createIterationTypes(yieldTypes && getUnionType(yieldTypes), returnTypes && getUnionType(returnTypes), nextTypes && getIntersectionType(nextTypes));\n }\n return noIterationTypes;\n }\n function getCachedIterationTypes(type, cacheKey) {\n return type[cacheKey];\n }\n function setCachedIterationTypes(type, cacheKey, cachedTypes) {\n return type[cacheKey] = cachedTypes;\n }\n /**\n * Gets the *yield*, *return*, and *next* types from an `Iterable`-like or `AsyncIterable`-like type.\n *\n * At every level that involves analyzing return types of signatures, we union the return types of all the signatures.\n *\n * Another thing to note is that at any step of this process, we could run into a dead end,\n * meaning either the property is missing, or we run into the anyType. If either of these things\n * happens, we return `undefined` to signal that we could not find the iteration type. If a property\n * is missing, and the previous step did not result in `any`, then we also give an error if the\n * caller requested it. Then the caller can decide what to do in the case where there is no iterated\n * type.\n *\n * For a **for-of** statement, `yield*` (in a normal generator), spread, array\n * destructuring, or normal generator we will only ever look for a `[Symbol.iterator]()`\n * method.\n *\n * For an async generator we will only ever look at the `[Symbol.asyncIterator]()` method.\n *\n * For a **for-await-of** statement or a `yield*` in an async generator we will look for\n * the `[Symbol.asyncIterator]()` method first, and then the `[Symbol.iterator]()` method.\n */\n function getIterationTypesOfIterable(type, use, errorNode) {\n if (isTypeAny(type)) {\n return anyIterationTypes;\n }\n if (!(type.flags & 1048576 /* Union */)) {\n var iterationTypes_1 = getIterationTypesOfIterableWorker(type, use, errorNode);\n if (iterationTypes_1 === noIterationTypes) {\n if (errorNode) {\n reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));\n }\n return undefined;\n }\n return iterationTypes_1;\n }\n var cacheKey = use & 2 /* AllowsAsyncIterablesFlag */ ? \"iterationTypesOfAsyncIterable\" : \"iterationTypesOfIterable\";\n var cachedTypes = getCachedIterationTypes(type, cacheKey);\n if (cachedTypes)\n return cachedTypes === noIterationTypes ? undefined : cachedTypes;\n var allIterationTypes;\n for (var _i = 0, _a = type.types; _i < _a.length; _i++) {\n var constituent = _a[_i];\n var iterationTypes_2 = getIterationTypesOfIterableWorker(constituent, use, errorNode);\n if (iterationTypes_2 === noIterationTypes) {\n if (errorNode) {\n reportTypeNotIterableError(errorNode, type, !!(use & 2 /* AllowsAsyncIterablesFlag */));\n }\n setCachedIterationTypes(type, cacheKey, noIterationTypes);\n return undefined;\n }\n else {\n allIterationTypes = ts.append(allIterationTypes, iterationTypes_2);\n }\n }\n var iterationTypes = allIterationTypes ? combineIterationTypes(allIterationTypes) : noIterationTypes;\n setCachedIterationTypes(type, cacheKey, iterationTypes);\n return iterationTypes === noIterationTypes ? undefined : iterationTypes;\n }\n function getAsyncFromSyncIterationTypes(iterationTypes, errorNode) {\n if (iterationTypes === noIterationTypes)\n return noIterationTypes;\n if (iterationTypes === anyIterationTypes)\n return anyIterationTypes;\n var yieldType = iterationTypes.yieldType, returnType = iterationTypes.returnType, nextType = iterationTypes.nextType;\n return createIterationTypes(getAwaitedType(yieldType, errorNode) || anyType, getAwaitedType(returnType, errorNode) || anyType, nextType);\n }\n /**\n * Gets the *yield*, *return*, and *next* types from a non-union type.\n *\n * If we are unable to find the *yield*, *return*, and *next* types, `noIterationTypes` is\n * returned to indicate to the caller that it should report an error. Otherwise, an\n * `IterationTypes` record is returned.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterable` instead.\n */\n function getIterationTypesOfIterableWorker(type, use, errorNode) {\n if (isTypeAny(type)) {\n return anyIterationTypes;\n }\n if (use & 2 /* AllowsAsyncIterablesFlag */) {\n var iterationTypes = getIterationTypesOfIterableCached(type, asyncIterationTypesResolver) ||\n getIterationTypesOfIterableFast(type, asyncIterationTypesResolver);\n if (iterationTypes) {\n return iterationTypes;\n }\n }\n if (use & 1 /* AllowsSyncIterablesFlag */) {\n var iterationTypes = getIterationTypesOfIterableCached(type, syncIterationTypesResolver) ||\n getIterationTypesOfIterableFast(type, syncIterationTypesResolver);\n if (iterationTypes) {\n if (use & 2 /* AllowsAsyncIterablesFlag */) {\n // for a sync iterable in an async context, only use the cached types if they are valid.\n if (iterationTypes !== noIterationTypes) {\n return setCachedIterationTypes(type, \"iterationTypesOfAsyncIterable\", getAsyncFromSyncIterationTypes(iterationTypes, errorNode));\n }\n }\n else {\n return iterationTypes;\n }\n }\n }\n if (use & 2 /* AllowsAsyncIterablesFlag */) {\n var iterationTypes = getIterationTypesOfIterableSlow(type, asyncIterationTypesResolver, errorNode);\n if (iterationTypes !== noIterationTypes) {\n return iterationTypes;\n }\n }\n if (use & 1 /* AllowsSyncIterablesFlag */) {\n var iterationTypes = getIterationTypesOfIterableSlow(type, syncIterationTypesResolver, errorNode);\n if (iterationTypes !== noIterationTypes) {\n if (use & 2 /* AllowsAsyncIterablesFlag */) {\n return setCachedIterationTypes(type, \"iterationTypesOfAsyncIterable\", iterationTypes\n ? getAsyncFromSyncIterationTypes(iterationTypes, errorNode)\n : noIterationTypes);\n }\n else {\n return iterationTypes;\n }\n }\n }\n return noIterationTypes;\n }\n /**\n * Gets the *yield*, *return*, and *next* types of an `Iterable`-like or\n * `AsyncIterable`-like type from the cache.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterable` instead.\n */\n function getIterationTypesOfIterableCached(type, resolver) {\n return getCachedIterationTypes(type, resolver.iterableCacheKey);\n }\n function getIterationTypesOfGlobalIterableType(globalType, resolver) {\n var globalIterationTypes = getIterationTypesOfIterableCached(globalType, resolver) ||\n getIterationTypesOfIterableSlow(globalType, resolver, /*errorNode*/ undefined);\n return globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes;\n }\n /**\n * Gets the *yield*, *return*, and *next* types of an `Iterable`-like or `AsyncIterable`-like\n * type from from common heuristics.\n *\n * If we previously analyzed this type and found no iteration types, `noIterationTypes` is\n * returned. If we found iteration types, an `IterationTypes` record is returned.\n * Otherwise, we return `undefined` to indicate to the caller it should perform a more\n * exhaustive analysis.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterable` instead.\n */\n function getIterationTypesOfIterableFast(type, resolver) {\n // As an optimization, if the type is an instantiation of one of the following global types, then\n // just grab its related type argument:\n // - `Iterable` or `AsyncIterable`\n // - `IterableIterator` or `AsyncIterableIterator`\n var globalType;\n if (isReferenceToType(type, globalType = resolver.getGlobalIterableType(/*reportErrors*/ false)) ||\n isReferenceToType(type, globalType = resolver.getGlobalIterableIteratorType(/*reportErrors*/ false))) {\n var yieldType = getTypeArguments(type)[0];\n // The \"return\" and \"next\" types of `Iterable` and `IterableIterator` are defined by the\n // iteration types of their `[Symbol.iterator]()` method. The same is true for their async cousins.\n // While we define these as `any` and `undefined` in our libs by default, a custom lib *could* use\n // different definitions.\n var _a = getIterationTypesOfGlobalIterableType(globalType, resolver), returnType = _a.returnType, nextType = _a.nextType;\n return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(yieldType, returnType, nextType));\n }\n // As an optimization, if the type is an instantiation of the following global type, then\n // just grab its related type arguments:\n // - `Generator` or `AsyncGenerator`\n if (isReferenceToType(type, resolver.getGlobalGeneratorType(/*reportErrors*/ false))) {\n var _b = getTypeArguments(type), yieldType = _b[0], returnType = _b[1], nextType = _b[2];\n return setCachedIterationTypes(type, resolver.iterableCacheKey, createIterationTypes(yieldType, returnType, nextType));\n }\n }\n function getPropertyNameForKnownSymbolName(symbolName) {\n var ctorType = getGlobalESSymbolConstructorSymbol(/*reportErrors*/ false);\n var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));\n return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : \"__@\" + symbolName;\n }\n /**\n * Gets the *yield*, *return*, and *next* types of an `Iterable`-like or `AsyncIterable`-like\n * type from its members.\n *\n * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes`\n * record is returned. Otherwise, `noIterationTypes` is returned.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterable` instead.\n */\n function getIterationTypesOfIterableSlow(type, resolver, errorNode) {\n var _a;\n var method = getPropertyOfType(type, getPropertyNameForKnownSymbolName(resolver.iteratorSymbolName));\n var methodType = method && !(method.flags & 16777216 /* Optional */) ? getTypeOfSymbol(method) : undefined;\n if (isTypeAny(methodType)) {\n return setCachedIterationTypes(type, resolver.iterableCacheKey, anyIterationTypes);\n }\n var signatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : undefined;\n if (!ts.some(signatures)) {\n return setCachedIterationTypes(type, resolver.iterableCacheKey, noIterationTypes);\n }\n var iteratorType = getIntersectionType(ts.map(signatures, getReturnTypeOfSignature));\n var iterationTypes = (_a = getIterationTypesOfIterator(iteratorType, resolver, errorNode)) !== null && _a !== void 0 ? _a : noIterationTypes;\n return setCachedIterationTypes(type, resolver.iterableCacheKey, iterationTypes);\n }\n function reportTypeNotIterableError(errorNode, type, allowAsyncIterables) {\n var message = allowAsyncIterables\n ? ts.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator\n : ts.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator;\n errorAndMaybeSuggestAwait(errorNode, !!getAwaitedTypeOfPromise(type), message, typeToString(type));\n }\n /**\n * Gets the *yield*, *return*, and *next* types from an `Iterator`-like or `AsyncIterator`-like type.\n *\n * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes`\n * record is returned. Otherwise, `undefined` is returned.\n */\n function getIterationTypesOfIterator(type, resolver, errorNode) {\n if (isTypeAny(type)) {\n return anyIterationTypes;\n }\n var iterationTypes = getIterationTypesOfIteratorCached(type, resolver) ||\n getIterationTypesOfIteratorFast(type, resolver) ||\n getIterationTypesOfIteratorSlow(type, resolver, errorNode);\n return iterationTypes === noIterationTypes ? undefined : iterationTypes;\n }\n /**\n * Gets the iteration types of an `Iterator`-like or `AsyncIterator`-like type from the\n * cache.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterator` instead.\n */\n function getIterationTypesOfIteratorCached(type, resolver) {\n return getCachedIterationTypes(type, resolver.iteratorCacheKey);\n }\n /**\n * Gets the iteration types of an `Iterator`-like or `AsyncIterator`-like type from the\n * cache or from common heuristics.\n *\n * If we previously analyzed this type and found no iteration types, `noIterationTypes` is\n * returned. If we found iteration types, an `IterationTypes` record is returned.\n * Otherwise, we return `undefined` to indicate to the caller it should perform a more\n * exhaustive analysis.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterator` instead.\n */\n function getIterationTypesOfIteratorFast(type, resolver) {\n // As an optimization, if the type is an instantiation of one of the following global types,\n // then just grab its related type argument:\n // - `IterableIterator` or `AsyncIterableIterator`\n // - `Iterator` or `AsyncIterator`\n // - `Generator` or `AsyncGenerator`\n var globalType = resolver.getGlobalIterableIteratorType(/*reportErrors*/ false);\n if (isReferenceToType(type, globalType)) {\n var yieldType = getTypeArguments(type)[0];\n // The \"return\" and \"next\" types of `IterableIterator` and `AsyncIterableIterator` are defined by the\n // iteration types of their `next`, `return`, and `throw` methods. While we define these as `any`\n // and `undefined` in our libs by default, a custom lib *could* use different definitions.\n var globalIterationTypes = getIterationTypesOfIteratorCached(globalType, resolver) ||\n getIterationTypesOfIteratorSlow(globalType, resolver, /*errorNode*/ undefined);\n var _a = globalIterationTypes === noIterationTypes ? defaultIterationTypes : globalIterationTypes, returnType = _a.returnType, nextType = _a.nextType;\n return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType));\n }\n if (isReferenceToType(type, resolver.getGlobalIteratorType(/*reportErrors*/ false)) ||\n isReferenceToType(type, resolver.getGlobalGeneratorType(/*reportErrors*/ false))) {\n var _b = getTypeArguments(type), yieldType = _b[0], returnType = _b[1], nextType = _b[2];\n return setCachedIterationTypes(type, resolver.iteratorCacheKey, createIterationTypes(yieldType, returnType, nextType));\n }\n }\n function isIteratorResult(type, kind) {\n // From https://tc39.github.io/ecma262/#sec-iteratorresult-interface:\n // > [done] is the result status of an iterator `next` method call. If the end of the iterator was reached `done` is `true`.\n // > If the end was not reached `done` is `false` and a value is available.\n // > If a `done` property (either own or inherited) does not exist, it is consider to have the value `false`.\n var doneType = getTypeOfPropertyOfType(type, \"done\") || falseType;\n return isTypeAssignableTo(kind === 0 /* Yield */ ? falseType : trueType, doneType);\n }\n function isYieldIteratorResult(type) {\n return isIteratorResult(type, 0 /* Yield */);\n }\n function isReturnIteratorResult(type) {\n return isIteratorResult(type, 1 /* Return */);\n }\n /**\n * Gets the *yield* and *return* types of an `IteratorResult`-like type.\n *\n * If we are unable to determine a *yield* or a *return* type, `noIterationTypes` is\n * returned to indicate to the caller that it should handle the error. Otherwise, an\n * `IterationTypes` record is returned.\n */\n function getIterationTypesOfIteratorResult(type) {\n if (isTypeAny(type)) {\n return anyIterationTypes;\n }\n var cachedTypes = getCachedIterationTypes(type, \"iterationTypesOfIteratorResult\");\n if (cachedTypes) {\n return cachedTypes;\n }\n // As an optimization, if the type is an instantiation of one of the global `IteratorYieldResult`\n // or `IteratorReturnResult` types, then just grab its type argument.\n if (isReferenceToType(type, getGlobalIteratorYieldResultType(/*reportErrors*/ false))) {\n var yieldType_1 = getTypeArguments(type)[0];\n return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", createIterationTypes(yieldType_1, /*returnType*/ undefined, /*nextType*/ undefined));\n }\n if (isReferenceToType(type, getGlobalIteratorReturnResultType(/*reportErrors*/ false))) {\n var returnType_1 = getTypeArguments(type)[0];\n return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", createIterationTypes(/*yieldType*/ undefined, returnType_1, /*nextType*/ undefined));\n }\n // Choose any constituents that can produce the requested iteration type.\n var yieldIteratorResult = filterType(type, isYieldIteratorResult);\n var yieldType = yieldIteratorResult !== neverType ? getTypeOfPropertyOfType(yieldIteratorResult, \"value\") : undefined;\n var returnIteratorResult = filterType(type, isReturnIteratorResult);\n var returnType = returnIteratorResult !== neverType ? getTypeOfPropertyOfType(returnIteratorResult, \"value\") : undefined;\n if (!yieldType && !returnType) {\n return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", noIterationTypes);\n }\n // From https://tc39.github.io/ecma262/#sec-iteratorresult-interface\n // > ... If the iterator does not have a return value, `value` is `undefined`. In that case, the\n // > `value` property may be absent from the conforming object if it does not inherit an explicit\n // > `value` property.\n return setCachedIterationTypes(type, \"iterationTypesOfIteratorResult\", createIterationTypes(yieldType, returnType || voidType, /*nextType*/ undefined));\n }\n /**\n * Gets the *yield*, *return*, and *next* types of a the `next()`, `return()`, or\n * `throw()` method of an `Iterator`-like or `AsyncIterator`-like type.\n *\n * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes`\n * record is returned. Otherwise, we return `undefined`.\n */\n function getIterationTypesOfMethod(type, resolver, methodName, errorNode) {\n var _a, _b, _c, _d;\n var method = getPropertyOfType(type, methodName);\n // Ignore 'return' or 'throw' if they are missing.\n if (!method && methodName !== \"next\") {\n return undefined;\n }\n var methodType = method && !(methodName === \"next\" && (method.flags & 16777216 /* Optional */))\n ? methodName === \"next\" ? getTypeOfSymbol(method) : getTypeWithFacts(getTypeOfSymbol(method), 2097152 /* NEUndefinedOrNull */)\n : undefined;\n if (isTypeAny(methodType)) {\n // `return()` and `throw()` don't provide a *next* type.\n return methodName === \"next\" ? anyIterationTypes : anyIterationTypesExceptNext;\n }\n // Both async and non-async iterators *must* have a `next` method.\n var methodSignatures = methodType ? getSignaturesOfType(methodType, 0 /* Call */) : ts.emptyArray;\n if (methodSignatures.length === 0) {\n if (errorNode) {\n var diagnostic = methodName === \"next\"\n ? resolver.mustHaveANextMethodDiagnostic\n : resolver.mustBeAMethodDiagnostic;\n error(errorNode, diagnostic, methodName);\n }\n return methodName === \"next\" ? anyIterationTypes : undefined;\n }\n // If the method signature comes exclusively from the global iterator or generator type,\n // create iteration types from its type arguments like `getIterationTypesOfIteratorFast`\n // does (so as to remove `undefined` from the next and return types). We arrive here when\n // a contextual type for a generator was not a direct reference to one of those global types,\n // but looking up `methodType` referred to one of them (and nothing else). E.g., in\n // `interface SpecialIterator extends Iterator {}`, `SpecialIterator` is not a\n // reference to `Iterator`, but its `next` member derives exclusively from `Iterator`.\n if ((methodType === null || methodType === void 0 ? void 0 : methodType.symbol) && methodSignatures.length === 1) {\n var globalGeneratorType = resolver.getGlobalGeneratorType(/*reportErrors*/ false);\n var globalIteratorType = resolver.getGlobalIteratorType(/*reportErrors*/ false);\n var isGeneratorMethod = ((_b = (_a = globalGeneratorType.symbol) === null || _a === void 0 ? void 0 : _a.members) === null || _b === void 0 ? void 0 : _b.get(methodName)) === methodType.symbol;\n var isIteratorMethod = !isGeneratorMethod && ((_d = (_c = globalIteratorType.symbol) === null || _c === void 0 ? void 0 : _c.members) === null || _d === void 0 ? void 0 : _d.get(methodName)) === methodType.symbol;\n if (isGeneratorMethod || isIteratorMethod) {\n var globalType = isGeneratorMethod ? globalGeneratorType : globalIteratorType;\n var mapper = methodType.mapper;\n return createIterationTypes(getMappedType(globalType.typeParameters[0], mapper), getMappedType(globalType.typeParameters[1], mapper), methodName === \"next\" ? getMappedType(globalType.typeParameters[2], mapper) : undefined);\n }\n }\n // Extract the first parameter and return type of each signature.\n var methodParameterTypes;\n var methodReturnTypes;\n for (var _i = 0, methodSignatures_1 = methodSignatures; _i < methodSignatures_1.length; _i++) {\n var signature = methodSignatures_1[_i];\n if (methodName !== \"throw\" && ts.some(signature.parameters)) {\n methodParameterTypes = ts.append(methodParameterTypes, getTypeAtPosition(signature, 0));\n }\n methodReturnTypes = ts.append(methodReturnTypes, getReturnTypeOfSignature(signature));\n }\n // Resolve the *next* or *return* type from the first parameter of a `next()` or\n // `return()` method, respectively.\n var returnTypes;\n var nextType;\n if (methodName !== \"throw\") {\n var methodParameterType = methodParameterTypes ? getUnionType(methodParameterTypes) : unknownType;\n if (methodName === \"next\") {\n // The value of `next(value)` is *not* awaited by async generators\n nextType = methodParameterType;\n }\n else if (methodName === \"return\") {\n // The value of `return(value)` *is* awaited by async generators\n var resolvedMethodParameterType = resolver.resolveIterationType(methodParameterType, errorNode) || anyType;\n returnTypes = ts.append(returnTypes, resolvedMethodParameterType);\n }\n }\n // Resolve the *yield* and *return* types from the return type of the method (i.e. `IteratorResult`)\n var yieldType;\n var methodReturnType = methodReturnTypes ? getIntersectionType(methodReturnTypes) : neverType;\n var resolvedMethodReturnType = resolver.resolveIterationType(methodReturnType, errorNode) || anyType;\n var iterationTypes = getIterationTypesOfIteratorResult(resolvedMethodReturnType);\n if (iterationTypes === noIterationTypes) {\n if (errorNode) {\n error(errorNode, resolver.mustHaveAValueDiagnostic, methodName);\n }\n yieldType = anyType;\n returnTypes = ts.append(returnTypes, anyType);\n }\n else {\n yieldType = iterationTypes.yieldType;\n returnTypes = ts.append(returnTypes, iterationTypes.returnType);\n }\n return createIterationTypes(yieldType, getUnionType(returnTypes), nextType);\n }\n /**\n * Gets the *yield*, *return*, and *next* types of an `Iterator`-like or `AsyncIterator`-like\n * type from its members.\n *\n * If we successfully found the *yield*, *return*, and *next* types, an `IterationTypes`\n * record is returned. Otherwise, `noIterationTypes` is returned.\n *\n * NOTE: You probably don't want to call this directly and should be calling\n * `getIterationTypesOfIterator` instead.\n */\n function getIterationTypesOfIteratorSlow(type, resolver, errorNode) {\n var iterationTypes = combineIterationTypes([\n getIterationTypesOfMethod(type, resolver, \"next\", errorNode),\n getIterationTypesOfMethod(type, resolver, \"return\", errorNode),\n getIterationTypesOfMethod(type, resolver, \"throw\", errorNode),\n ]);\n return setCachedIterationTypes(type, resolver.iteratorCacheKey, iterationTypes);\n }\n /**\n * Gets the requested \"iteration type\" from a type that is either `Iterable`-like, `Iterator`-like,\n * `IterableIterator`-like, or `Generator`-like (for a non-async generator); or `AsyncIterable`-like,\n * `AsyncIterator`-like, `AsyncIterableIterator`-like, or `AsyncGenerator`-like (for an async generator).\n */\n function getIterationTypeOfGeneratorFunctionReturnType(kind, returnType, isAsyncGenerator) {\n if (isTypeAny(returnType)) {\n return undefined;\n }\n var iterationTypes = getIterationTypesOfGeneratorFunctionReturnType(returnType, isAsyncGenerator);\n return iterationTypes && iterationTypes[getIterationTypesKeyFromIterationTypeKind(kind)];\n }\n function getIterationTypesOfGeneratorFunctionReturnType(type, isAsyncGenerator) {\n if (isTypeAny(type)) {\n return anyIterationTypes;\n }\n var use = isAsyncGenerator ? 2 /* AsyncGeneratorReturnType */ : 1 /* GeneratorReturnType */;\n var resolver = isAsyncGenerator ? asyncIterationTypesResolver : syncIterationTypesResolver;\n return getIterationTypesOfIterable(type, use, /*errorNode*/ undefined) ||\n getIterationTypesOfIterator(type, resolver, /*errorNode*/ undefined);\n }\n function checkBreakOrContinueStatement(node) {\n // Grammar checking\n if (!checkGrammarStatementInAmbientContext(node))\n checkGrammarBreakOrContinueStatement(node);\n // TODO: Check that target label is valid\n }\n function unwrapReturnType(returnType, functionFlags) {\n var _a, _b;\n var isGenerator = !!(functionFlags & 1 /* Generator */);\n var isAsync = !!(functionFlags & 2 /* Async */);\n return isGenerator ? (_a = getIterationTypeOfGeneratorFunctionReturnType(1 /* Return */, returnType, isAsync)) !== null && _a !== void 0 ? _a : errorType :\n isAsync ? (_b = getAwaitedType(returnType)) !== null && _b !== void 0 ? _b : errorType :\n returnType;\n }\n function isUnwrappedReturnTypeVoidOrAny(func, returnType) {\n var unwrappedReturnType = unwrapReturnType(returnType, ts.getFunctionFlags(func));\n return !!unwrappedReturnType && maybeTypeOfKind(unwrappedReturnType, 16384 /* Void */ | 3 /* AnyOrUnknown */);\n }\n function checkReturnStatement(node) {\n var _a;\n // Grammar checking\n if (checkGrammarStatementInAmbientContext(node)) {\n return;\n }\n var container = ts.getContainingFunctionOrClassStaticBlock(node);\n if (container && ts.isClassStaticBlockDeclaration(container)) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.A_return_statement_cannot_be_used_inside_a_class_static_block);\n return;\n }\n if (!container) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.A_return_statement_can_only_be_used_within_a_function_body);\n return;\n }\n var signature = getSignatureFromDeclaration(container);\n var returnType = getReturnTypeOfSignature(signature);\n var functionFlags = ts.getFunctionFlags(container);\n if (strictNullChecks || node.expression || returnType.flags & 131072 /* Never */) {\n var exprType = node.expression ? checkExpressionCached(node.expression) : undefinedType;\n if (container.kind === 171 /* SetAccessor */) {\n if (node.expression) {\n error(node, ts.Diagnostics.Setters_cannot_return_a_value);\n }\n }\n else if (container.kind === 169 /* Constructor */) {\n if (node.expression && !checkTypeAssignableToAndOptionallyElaborate(exprType, returnType, node, node.expression)) {\n error(node, ts.Diagnostics.Return_type_of_constructor_signature_must_be_assignable_to_the_instance_type_of_the_class);\n }\n }\n else if (getReturnTypeFromAnnotation(container)) {\n var unwrappedReturnType = (_a = unwrapReturnType(returnType, functionFlags)) !== null && _a !== void 0 ? _a : returnType;\n var unwrappedExprType = functionFlags & 2 /* Async */\n ? checkAwaitedType(exprType, node, ts.Diagnostics.The_return_type_of_an_async_function_must_either_be_a_valid_promise_or_must_not_contain_a_callable_then_member)\n : exprType;\n if (unwrappedReturnType) {\n // If the function has a return type, but promisedType is\n // undefined, an error will be reported in checkAsyncFunctionReturnType\n // so we don't need to report one here.\n checkTypeAssignableToAndOptionallyElaborate(unwrappedExprType, unwrappedReturnType, node, node.expression);\n }\n }\n }\n else if (container.kind !== 169 /* Constructor */ && compilerOptions.noImplicitReturns && !isUnwrappedReturnTypeVoidOrAny(container, returnType)) {\n // The function has a return type, but the return statement doesn't have an expression.\n error(node, ts.Diagnostics.Not_all_code_paths_return_a_value);\n }\n }\n function checkWithStatement(node) {\n // Grammar checking for withStatement\n if (!checkGrammarStatementInAmbientContext(node)) {\n if (node.flags & 32768 /* AwaitContext */) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.with_statements_are_not_allowed_in_an_async_function_block);\n }\n }\n checkExpression(node.expression);\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n var start = ts.getSpanOfTokenAtPosition(sourceFile, node.pos).start;\n var end = node.statement.pos;\n grammarErrorAtPos(sourceFile, start, end - start, ts.Diagnostics.The_with_statement_is_not_supported_All_symbols_in_a_with_block_will_have_type_any);\n }\n }\n function checkSwitchStatement(node) {\n // Grammar checking\n checkGrammarStatementInAmbientContext(node);\n var firstDefaultClause;\n var hasDuplicateDefaultClause = false;\n var expressionType = checkExpression(node.expression);\n var expressionIsLiteral = isLiteralType(expressionType);\n ts.forEach(node.caseBlock.clauses, function (clause) {\n // Grammar check for duplicate default clauses, skip if we already report duplicate default clause\n if (clause.kind === 288 /* DefaultClause */ && !hasDuplicateDefaultClause) {\n if (firstDefaultClause === undefined) {\n firstDefaultClause = clause;\n }\n else {\n grammarErrorOnNode(clause, ts.Diagnostics.A_default_clause_cannot_appear_more_than_once_in_a_switch_statement);\n hasDuplicateDefaultClause = true;\n }\n }\n if (produceDiagnostics && clause.kind === 287 /* CaseClause */) {\n // TypeScript 1.0 spec (April 2014): 5.9\n // In a 'switch' statement, each 'case' expression must be of a type that is comparable\n // to or from the type of the 'switch' expression.\n var caseType = checkExpression(clause.expression);\n var caseIsLiteral = isLiteralType(caseType);\n var comparedExpressionType = expressionType;\n if (!caseIsLiteral || !expressionIsLiteral) {\n caseType = caseIsLiteral ? getBaseTypeOfLiteralType(caseType) : caseType;\n comparedExpressionType = getBaseTypeOfLiteralType(expressionType);\n }\n if (!isTypeEqualityComparableTo(comparedExpressionType, caseType)) {\n // expressionType is not comparable to caseType, try the reversed check and report errors if it fails\n checkTypeComparableTo(caseType, comparedExpressionType, clause.expression, /*headMessage*/ undefined);\n }\n }\n ts.forEach(clause.statements, checkSourceElement);\n if (compilerOptions.noFallthroughCasesInSwitch && clause.fallthroughFlowNode && isReachableFlowNode(clause.fallthroughFlowNode)) {\n error(clause, ts.Diagnostics.Fallthrough_case_in_switch);\n }\n });\n if (node.caseBlock.locals) {\n registerForUnusedIdentifiersCheck(node.caseBlock);\n }\n }\n function checkLabeledStatement(node) {\n // Grammar checking\n if (!checkGrammarStatementInAmbientContext(node)) {\n ts.findAncestor(node.parent, function (current) {\n if (ts.isFunctionLike(current)) {\n return \"quit\";\n }\n if (current.kind === 248 /* LabeledStatement */ && current.label.escapedText === node.label.escapedText) {\n grammarErrorOnNode(node.label, ts.Diagnostics.Duplicate_label_0, ts.getTextOfNode(node.label));\n return true;\n }\n return false;\n });\n }\n // ensure that label is unique\n checkSourceElement(node.statement);\n }\n function checkThrowStatement(node) {\n // Grammar checking\n if (!checkGrammarStatementInAmbientContext(node)) {\n if (ts.isIdentifier(node.expression) && !node.expression.escapedText) {\n grammarErrorAfterFirstToken(node, ts.Diagnostics.Line_break_not_permitted_here);\n }\n }\n if (node.expression) {\n checkExpression(node.expression);\n }\n }\n function checkTryStatement(node) {\n // Grammar checking\n checkGrammarStatementInAmbientContext(node);\n checkBlock(node.tryBlock);\n var catchClause = node.catchClause;\n if (catchClause) {\n // Grammar checking\n if (catchClause.variableDeclaration) {\n var declaration = catchClause.variableDeclaration;\n var typeNode = ts.getEffectiveTypeAnnotationNode(ts.getRootDeclaration(declaration));\n if (typeNode) {\n var type = getTypeForVariableLikeDeclaration(declaration, /*includeOptionality*/ false);\n if (type && !(type.flags & 3 /* AnyOrUnknown */)) {\n grammarErrorOnFirstToken(typeNode, ts.Diagnostics.Catch_clause_variable_type_annotation_must_be_any_or_unknown_if_specified);\n }\n }\n else if (declaration.initializer) {\n grammarErrorOnFirstToken(declaration.initializer, ts.Diagnostics.Catch_clause_variable_cannot_have_an_initializer);\n }\n else {\n var blockLocals_1 = catchClause.block.locals;\n if (blockLocals_1) {\n ts.forEachKey(catchClause.locals, function (caughtName) {\n var blockLocal = blockLocals_1.get(caughtName);\n if ((blockLocal === null || blockLocal === void 0 ? void 0 : blockLocal.valueDeclaration) && (blockLocal.flags & 2 /* BlockScopedVariable */) !== 0) {\n grammarErrorOnNode(blockLocal.valueDeclaration, ts.Diagnostics.Cannot_redeclare_identifier_0_in_catch_clause, caughtName);\n }\n });\n }\n }\n }\n checkBlock(catchClause.block);\n }\n if (node.finallyBlock) {\n checkBlock(node.finallyBlock);\n }\n }\n function checkIndexConstraints(type, isStaticIndex) {\n var indexInfos = getIndexInfosOfType(type);\n if (indexInfos.length === 0) {\n return;\n }\n for (var _i = 0, _a = getPropertiesOfObjectType(type); _i < _a.length; _i++) {\n var prop = _a[_i];\n if (!(isStaticIndex && prop.flags & 4194304 /* Prototype */)) {\n checkIndexConstraintForProperty(type, prop, getLiteralTypeFromProperty(prop, 8576 /* StringOrNumberLiteralOrUnique */, /*includeNonPublic*/ true), getNonMissingTypeOfSymbol(prop));\n }\n }\n var typeDeclaration = type.symbol.valueDeclaration;\n if (typeDeclaration && ts.isClassLike(typeDeclaration)) {\n for (var _b = 0, _c = typeDeclaration.members; _b < _c.length; _b++) {\n var member = _c[_b];\n // Only process instance properties with computed names here. Static properties cannot be in conflict with indexers,\n // and properties with literal names were already checked.\n if (!ts.isStatic(member) && !hasBindableName(member)) {\n var symbol = getSymbolOfNode(member);\n checkIndexConstraintForProperty(type, symbol, getTypeOfExpression(member.name.expression), getNonMissingTypeOfSymbol(symbol));\n }\n }\n }\n if (indexInfos.length > 1) {\n for (var _d = 0, indexInfos_6 = indexInfos; _d < indexInfos_6.length; _d++) {\n var info = indexInfos_6[_d];\n checkIndexConstraintForIndexSignature(type, info);\n }\n }\n }\n function checkIndexConstraintForProperty(type, prop, propNameType, propType) {\n var declaration = prop.valueDeclaration;\n var name = ts.getNameOfDeclaration(declaration);\n if (name && ts.isPrivateIdentifier(name)) {\n return;\n }\n var indexInfos = getApplicableIndexInfos(type, propNameType);\n var interfaceDeclaration = ts.getObjectFlags(type) & 2 /* Interface */ ? ts.getDeclarationOfKind(type.symbol, 256 /* InterfaceDeclaration */) : undefined;\n var localPropDeclaration = declaration && declaration.kind === 219 /* BinaryExpression */ ||\n name && name.kind === 160 /* ComputedPropertyName */ || getParentOfSymbol(prop) === type.symbol ? declaration : undefined;\n var _loop_27 = function (info) {\n var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;\n // We check only when (a) the property is declared in the containing type, or (b) the applicable index signature is declared\n // in the containing type, or (c) the containing type is an interface and no base interface contains both the property and\n // the index signature (i.e. property and index signature are declared in separate inherited interfaces).\n var errorNode = localPropDeclaration || localIndexDeclaration ||\n (interfaceDeclaration && !ts.some(getBaseTypes(type), function (base) { return !!getPropertyOfObjectType(base, prop.escapedName) && !!getIndexTypeOfType(base, info.keyType); }) ? interfaceDeclaration : undefined);\n if (errorNode && !isTypeAssignableTo(propType, info.type)) {\n error(errorNode, ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3, symbolToString(prop), typeToString(propType), typeToString(info.keyType), typeToString(info.type));\n }\n };\n for (var _i = 0, indexInfos_7 = indexInfos; _i < indexInfos_7.length; _i++) {\n var info = indexInfos_7[_i];\n _loop_27(info);\n }\n }\n function checkIndexConstraintForIndexSignature(type, checkInfo) {\n var declaration = checkInfo.declaration;\n var indexInfos = getApplicableIndexInfos(type, checkInfo.keyType);\n var interfaceDeclaration = ts.getObjectFlags(type) & 2 /* Interface */ ? ts.getDeclarationOfKind(type.symbol, 256 /* InterfaceDeclaration */) : undefined;\n var localCheckDeclaration = declaration && getParentOfSymbol(getSymbolOfNode(declaration)) === type.symbol ? declaration : undefined;\n var _loop_28 = function (info) {\n if (info === checkInfo)\n return \"continue\";\n var localIndexDeclaration = info.declaration && getParentOfSymbol(getSymbolOfNode(info.declaration)) === type.symbol ? info.declaration : undefined;\n // We check only when (a) the check index signature is declared in the containing type, or (b) the applicable index\n // signature is declared in the containing type, or (c) the containing type is an interface and no base interface contains\n // both index signatures (i.e. the index signatures are declared in separate inherited interfaces).\n var errorNode = localCheckDeclaration || localIndexDeclaration ||\n (interfaceDeclaration && !ts.some(getBaseTypes(type), function (base) { return !!getIndexInfoOfType(base, checkInfo.keyType) && !!getIndexTypeOfType(base, info.keyType); }) ? interfaceDeclaration : undefined);\n if (errorNode && !isTypeAssignableTo(checkInfo.type, info.type)) {\n error(errorNode, ts.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3, typeToString(checkInfo.keyType), typeToString(checkInfo.type), typeToString(info.keyType), typeToString(info.type));\n }\n };\n for (var _i = 0, indexInfos_8 = indexInfos; _i < indexInfos_8.length; _i++) {\n var info = indexInfos_8[_i];\n _loop_28(info);\n }\n }\n function checkTypeNameIsReserved(name, message) {\n // TS 1.0 spec (April 2014): 3.6.1\n // The predefined type keywords are reserved and cannot be used as names of user defined types.\n switch (name.escapedText) {\n case \"any\":\n case \"unknown\":\n case \"never\":\n case \"number\":\n case \"bigint\":\n case \"boolean\":\n case \"string\":\n case \"symbol\":\n case \"void\":\n case \"object\":\n error(name, message, name.escapedText);\n }\n }\n /**\n * The name cannot be used as 'Object' of user defined types with special target.\n */\n function checkClassNameCollisionWithObject(name) {\n if (languageVersion === 1 /* ES5 */ && name.escapedText === \"Object\"\n && moduleKind < ts.ModuleKind.ES2015) {\n error(name, ts.Diagnostics.Class_name_cannot_be_Object_when_targeting_ES5_with_module_0, ts.ModuleKind[moduleKind]); // https://github.com/Microsoft/TypeScript/issues/17494\n }\n }\n /**\n * Check each type parameter and check that type parameters have no duplicate type parameter declarations\n */\n function checkTypeParameters(typeParameterDeclarations) {\n if (typeParameterDeclarations) {\n var seenDefault = false;\n for (var i = 0; i < typeParameterDeclarations.length; i++) {\n var node = typeParameterDeclarations[i];\n checkTypeParameter(node);\n if (produceDiagnostics) {\n if (node.default) {\n seenDefault = true;\n checkTypeParametersNotReferenced(node.default, typeParameterDeclarations, i);\n }\n else if (seenDefault) {\n error(node, ts.Diagnostics.Required_type_parameters_may_not_follow_optional_type_parameters);\n }\n for (var j = 0; j < i; j++) {\n if (typeParameterDeclarations[j].symbol === node.symbol) {\n error(node.name, ts.Diagnostics.Duplicate_identifier_0, ts.declarationNameToString(node.name));\n }\n }\n }\n }\n }\n }\n /** Check that type parameter defaults only reference previously declared type parameters */\n function checkTypeParametersNotReferenced(root, typeParameters, index) {\n visit(root);\n function visit(node) {\n if (node.kind === 176 /* TypeReference */) {\n var type = getTypeFromTypeReference(node);\n if (type.flags & 262144 /* TypeParameter */) {\n for (var i = index; i < typeParameters.length; i++) {\n if (type.symbol === getSymbolOfNode(typeParameters[i])) {\n error(node, ts.Diagnostics.Type_parameter_defaults_can_only_reference_previously_declared_type_parameters);\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n }\n }\n /** Check that type parameter lists are identical across multiple declarations */\n function checkTypeParameterListsIdentical(symbol) {\n if (symbol.declarations && symbol.declarations.length === 1) {\n return;\n }\n var links = getSymbolLinks(symbol);\n if (!links.typeParametersChecked) {\n links.typeParametersChecked = true;\n var declarations = getClassOrInterfaceDeclarationsOfSymbol(symbol);\n if (!declarations || declarations.length <= 1) {\n return;\n }\n var type = getDeclaredTypeOfSymbol(symbol);\n if (!areTypeParametersIdentical(declarations, type.localTypeParameters)) {\n // Report an error on every conflicting declaration.\n var name = symbolToString(symbol);\n for (var _i = 0, declarations_6 = declarations; _i < declarations_6.length; _i++) {\n var declaration = declarations_6[_i];\n error(declaration.name, ts.Diagnostics.All_declarations_of_0_must_have_identical_type_parameters, name);\n }\n }\n }\n }\n function areTypeParametersIdentical(declarations, targetParameters) {\n var maxTypeArgumentCount = ts.length(targetParameters);\n var minTypeArgumentCount = getMinTypeArgumentCount(targetParameters);\n for (var _i = 0, declarations_7 = declarations; _i < declarations_7.length; _i++) {\n var declaration = declarations_7[_i];\n // If this declaration has too few or too many type parameters, we report an error\n var sourceParameters = ts.getEffectiveTypeParameterDeclarations(declaration);\n var numTypeParameters = sourceParameters.length;\n if (numTypeParameters < minTypeArgumentCount || numTypeParameters > maxTypeArgumentCount) {\n return false;\n }\n for (var i = 0; i < numTypeParameters; i++) {\n var source = sourceParameters[i];\n var target = targetParameters[i];\n // If the type parameter node does not have the same as the resolved type\n // parameter at this position, we report an error.\n if (source.name.escapedText !== target.symbol.escapedName) {\n return false;\n }\n // If the type parameter node does not have an identical constraint as the resolved\n // type parameter at this position, we report an error.\n var constraint = ts.getEffectiveConstraintOfTypeParameter(source);\n var sourceConstraint = constraint && getTypeFromTypeNode(constraint);\n var targetConstraint = getConstraintOfTypeParameter(target);\n // relax check if later interface augmentation has no constraint, it's more broad and is OK to merge with\n // a more constrained interface (this could be generalized to a full hierarchy check, but that's maybe overkill)\n if (sourceConstraint && targetConstraint && !isTypeIdenticalTo(sourceConstraint, targetConstraint)) {\n return false;\n }\n // If the type parameter node has a default and it is not identical to the default\n // for the type parameter at this position, we report an error.\n var sourceDefault = source.default && getTypeFromTypeNode(source.default);\n var targetDefault = getDefaultFromTypeParameter(target);\n if (sourceDefault && targetDefault && !isTypeIdenticalTo(sourceDefault, targetDefault)) {\n return false;\n }\n }\n }\n return true;\n }\n function checkClassExpression(node) {\n checkClassLikeDeclaration(node);\n checkNodeDeferred(node);\n return getTypeOfSymbol(getSymbolOfNode(node));\n }\n function checkClassExpressionDeferred(node) {\n ts.forEach(node.members, checkSourceElement);\n registerForUnusedIdentifiersCheck(node);\n }\n function checkClassDeclaration(node) {\n if (ts.some(node.decorators) && ts.some(node.members, function (p) { return ts.hasStaticModifier(p) && ts.isPrivateIdentifierClassElementDeclaration(p); })) {\n grammarErrorOnNode(node.decorators[0], ts.Diagnostics.Class_decorators_can_t_be_used_with_static_private_identifier_Consider_removing_the_experimental_decorator);\n }\n if (!node.name && !ts.hasSyntacticModifier(node, 512 /* Default */)) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.A_class_declaration_without_the_default_modifier_must_have_a_name);\n }\n checkClassLikeDeclaration(node);\n ts.forEach(node.members, checkSourceElement);\n registerForUnusedIdentifiersCheck(node);\n }\n function checkClassLikeDeclaration(node) {\n checkGrammarClassLikeDeclaration(node);\n checkDecorators(node);\n checkCollisionsForDeclarationName(node, node.name);\n checkTypeParameters(ts.getEffectiveTypeParameterDeclarations(node));\n checkExportsOnMergedDeclarations(node);\n var symbol = getSymbolOfNode(node);\n var type = getDeclaredTypeOfSymbol(symbol);\n var typeWithThis = getTypeWithThisArgument(type);\n var staticType = getTypeOfSymbol(symbol);\n checkTypeParameterListsIdentical(symbol);\n checkFunctionOrConstructorSymbol(symbol);\n checkClassForDuplicateDeclarations(node);\n // Only check for reserved static identifiers on non-ambient context.\n var nodeInAmbientContext = !!(node.flags & 8388608 /* Ambient */);\n if (!nodeInAmbientContext) {\n checkClassForStaticPropertyNameConflicts(node);\n }\n var baseTypeNode = ts.getEffectiveBaseTypeNode(node);\n if (baseTypeNode) {\n ts.forEach(baseTypeNode.typeArguments, checkSourceElement);\n if (languageVersion < 2 /* ES2015 */) {\n checkExternalEmitHelpers(baseTypeNode.parent, 1 /* Extends */);\n }\n // check both @extends and extends if both are specified.\n var extendsNode = ts.getClassExtendsHeritageElement(node);\n if (extendsNode && extendsNode !== baseTypeNode) {\n checkExpression(extendsNode.expression);\n }\n var baseTypes = getBaseTypes(type);\n if (baseTypes.length && produceDiagnostics) {\n var baseType_1 = baseTypes[0];\n var baseConstructorType = getBaseConstructorTypeOfClass(type);\n var staticBaseType = getApparentType(baseConstructorType);\n checkBaseTypeAccessibility(staticBaseType, baseTypeNode);\n checkSourceElement(baseTypeNode.expression);\n if (ts.some(baseTypeNode.typeArguments)) {\n ts.forEach(baseTypeNode.typeArguments, checkSourceElement);\n for (var _i = 0, _a = getConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode); _i < _a.length; _i++) {\n var constructor = _a[_i];\n if (!checkTypeArgumentConstraints(baseTypeNode, constructor.typeParameters)) {\n break;\n }\n }\n }\n var baseWithThis = getTypeWithThisArgument(baseType_1, type.thisType);\n if (!checkTypeAssignableTo(typeWithThis, baseWithThis, /*errorNode*/ undefined)) {\n issueMemberSpecificError(node, typeWithThis, baseWithThis, ts.Diagnostics.Class_0_incorrectly_extends_base_class_1);\n }\n else {\n // Report static side error only when instance type is assignable\n checkTypeAssignableTo(staticType, getTypeWithoutSignatures(staticBaseType), node.name || node, ts.Diagnostics.Class_static_side_0_incorrectly_extends_base_class_static_side_1);\n }\n if (baseConstructorType.flags & 8650752 /* TypeVariable */) {\n if (!isMixinConstructorType(staticType)) {\n error(node.name || node, ts.Diagnostics.A_mixin_class_must_have_a_constructor_with_a_single_rest_parameter_of_type_any);\n }\n else {\n var constructSignatures = getSignaturesOfType(baseConstructorType, 1 /* Construct */);\n if (constructSignatures.some(function (signature) { return signature.flags & 4 /* Abstract */; }) && !ts.hasSyntacticModifier(node, 128 /* Abstract */)) {\n error(node.name || node, ts.Diagnostics.A_mixin_class_that_extends_from_a_type_variable_containing_an_abstract_construct_signature_must_also_be_declared_abstract);\n }\n }\n }\n if (!(staticBaseType.symbol && staticBaseType.symbol.flags & 32 /* Class */) && !(baseConstructorType.flags & 8650752 /* TypeVariable */)) {\n // When the static base type is a \"class-like\" constructor function (but not actually a class), we verify\n // that all instantiated base constructor signatures return the same type.\n var constructors = getInstantiatedConstructorsForTypeArguments(staticBaseType, baseTypeNode.typeArguments, baseTypeNode);\n if (ts.forEach(constructors, function (sig) { return !isJSConstructor(sig.declaration) && !isTypeIdenticalTo(getReturnTypeOfSignature(sig), baseType_1); })) {\n error(baseTypeNode.expression, ts.Diagnostics.Base_constructors_must_all_have_the_same_return_type);\n }\n }\n checkKindsOfPropertyMemberOverrides(type, baseType_1);\n }\n }\n checkMembersForMissingOverrideModifier(node, type, typeWithThis, staticType);\n var implementedTypeNodes = ts.getEffectiveImplementsTypeNodes(node);\n if (implementedTypeNodes) {\n for (var _b = 0, implementedTypeNodes_1 = implementedTypeNodes; _b < implementedTypeNodes_1.length; _b++) {\n var typeRefNode = implementedTypeNodes_1[_b];\n if (!ts.isEntityNameExpression(typeRefNode.expression) || ts.isOptionalChain(typeRefNode.expression)) {\n error(typeRefNode.expression, ts.Diagnostics.A_class_can_only_implement_an_identifier_Slashqualified_name_with_optional_type_arguments);\n }\n checkTypeReferenceNode(typeRefNode);\n if (produceDiagnostics) {\n var t = getReducedType(getTypeFromTypeNode(typeRefNode));\n if (t !== errorType) {\n if (isValidBaseType(t)) {\n var genericDiag = t.symbol && t.symbol.flags & 32 /* Class */ ?\n ts.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass :\n ts.Diagnostics.Class_0_incorrectly_implements_interface_1;\n var baseWithThis = getTypeWithThisArgument(t, type.thisType);\n if (!checkTypeAssignableTo(typeWithThis, baseWithThis, /*errorNode*/ undefined)) {\n issueMemberSpecificError(node, typeWithThis, baseWithThis, genericDiag);\n }\n }\n else {\n error(typeRefNode, ts.Diagnostics.A_class_can_only_implement_an_object_type_or_intersection_of_object_types_with_statically_known_members);\n }\n }\n }\n }\n }\n if (produceDiagnostics) {\n checkIndexConstraints(type);\n checkIndexConstraints(staticType, /*isStaticIndex*/ true);\n checkTypeForDuplicateIndexSignatures(node);\n checkPropertyInitialization(node);\n }\n }\n function checkMembersForMissingOverrideModifier(node, type, typeWithThis, staticType) {\n var nodeInAmbientContext = !!(node.flags & 8388608 /* Ambient */);\n var baseTypeNode = ts.getEffectiveBaseTypeNode(node);\n var baseTypes = baseTypeNode && getBaseTypes(type);\n var baseWithThis = (baseTypes === null || baseTypes === void 0 ? void 0 : baseTypes.length) ? getTypeWithThisArgument(ts.first(baseTypes), type.thisType) : undefined;\n var baseStaticType = getBaseConstructorTypeOfClass(type);\n var _loop_29 = function (member) {\n if (ts.hasAmbientModifier(member)) {\n return \"continue\";\n }\n if (ts.isConstructorDeclaration(member)) {\n ts.forEach(member.parameters, function (param) {\n if (ts.isParameterPropertyDeclaration(param, member)) {\n checkClassMember(param, /*memberIsParameterProperty*/ true);\n }\n });\n }\n checkClassMember(member);\n };\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n _loop_29(member);\n }\n function checkClassMember(member, memberIsParameterProperty) {\n var hasOverride = ts.hasOverrideModifier(member);\n var hasStatic = ts.isStatic(member);\n if (baseWithThis && (hasOverride || compilerOptions.noImplicitOverride)) {\n var declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member);\n if (!declaredProp) {\n return;\n }\n var thisType = hasStatic ? staticType : typeWithThis;\n var baseType = hasStatic ? baseStaticType : baseWithThis;\n var prop = getPropertyOfType(thisType, declaredProp.escapedName);\n var baseProp = getPropertyOfType(baseType, declaredProp.escapedName);\n var baseClassName = typeToString(baseWithThis);\n if (prop && !baseProp && hasOverride) {\n var suggestion = getSuggestedSymbolForNonexistentClassMember(ts.symbolName(declaredProp), baseType);\n suggestion ?\n error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1, baseClassName, symbolToString(suggestion)) :\n error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0, baseClassName);\n }\n else if (prop && (baseProp === null || baseProp === void 0 ? void 0 : baseProp.declarations) && compilerOptions.noImplicitOverride && !nodeInAmbientContext) {\n var baseHasAbstract = ts.some(baseProp.declarations, function (d) { return ts.hasAbstractModifier(d); });\n if (hasOverride) {\n return;\n }\n if (!baseHasAbstract) {\n var diag = memberIsParameterProperty ?\n ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0 :\n ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0;\n error(member, diag, baseClassName);\n }\n else if (ts.hasAbstractModifier(member) && baseHasAbstract) {\n error(member, ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0, baseClassName);\n }\n }\n }\n else if (hasOverride) {\n var className = typeToString(type);\n error(member, ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class, className);\n }\n }\n }\n function issueMemberSpecificError(node, typeWithThis, baseWithThis, broadDiag) {\n // iterate over all implemented properties and issue errors on each one which isn't compatible, rather than the class as a whole, if possible\n var issuedMemberError = false;\n var _loop_30 = function (member) {\n if (ts.isStatic(member)) {\n return \"continue\";\n }\n var declaredProp = member.name && getSymbolAtLocation(member.name) || getSymbolAtLocation(member);\n if (declaredProp) {\n var prop = getPropertyOfType(typeWithThis, declaredProp.escapedName);\n var baseProp = getPropertyOfType(baseWithThis, declaredProp.escapedName);\n if (prop && baseProp) {\n var rootChain = function () { return ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2, symbolToString(declaredProp), typeToString(typeWithThis), typeToString(baseWithThis)); };\n if (!checkTypeAssignableTo(getTypeOfSymbol(prop), getTypeOfSymbol(baseProp), member.name || member, /*message*/ undefined, rootChain)) {\n issuedMemberError = true;\n }\n }\n }\n };\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n _loop_30(member);\n }\n if (!issuedMemberError) {\n // check again with diagnostics to generate a less-specific error\n checkTypeAssignableTo(typeWithThis, baseWithThis, node.name || node, broadDiag);\n }\n }\n function checkBaseTypeAccessibility(type, node) {\n var signatures = getSignaturesOfType(type, 1 /* Construct */);\n if (signatures.length) {\n var declaration = signatures[0].declaration;\n if (declaration && ts.hasEffectiveModifier(declaration, 8 /* Private */)) {\n var typeClassDeclaration = ts.getClassLikeDeclarationOfSymbol(type.symbol);\n if (!isNodeWithinClass(node, typeClassDeclaration)) {\n error(node, ts.Diagnostics.Cannot_extend_a_class_0_Class_constructor_is_marked_as_private, getFullyQualifiedName(type.symbol));\n }\n }\n }\n }\n function getTargetSymbol(s) {\n // if symbol is instantiated its flags are not copied from the 'target'\n // so we'll need to get back original 'target' symbol to work with correct set of flags\n return ts.getCheckFlags(s) & 1 /* Instantiated */ ? s.target : s;\n }\n function getClassOrInterfaceDeclarationsOfSymbol(symbol) {\n return ts.filter(symbol.declarations, function (d) {\n return d.kind === 255 /* ClassDeclaration */ || d.kind === 256 /* InterfaceDeclaration */;\n });\n }\n function checkKindsOfPropertyMemberOverrides(type, baseType) {\n // TypeScript 1.0 spec (April 2014): 8.2.3\n // A derived class inherits all members from its base class it doesn't override.\n // Inheritance means that a derived class implicitly contains all non - overridden members of the base class.\n // Both public and private property members are inherited, but only public property members can be overridden.\n // A property member in a derived class is said to override a property member in a base class\n // when the derived class property member has the same name and kind(instance or static)\n // as the base class property member.\n // The type of an overriding property member must be assignable(section 3.8.4)\n // to the type of the overridden property member, or otherwise a compile - time error occurs.\n // Base class instance member functions can be overridden by derived class instance member functions,\n // but not by other kinds of members.\n // Base class instance member variables and accessors can be overridden by\n // derived class instance member variables and accessors, but not by other kinds of members.\n var _a, _b;\n // NOTE: assignability is checked in checkClassDeclaration\n var baseProperties = getPropertiesOfType(baseType);\n basePropertyCheck: for (var _i = 0, baseProperties_1 = baseProperties; _i < baseProperties_1.length; _i++) {\n var baseProperty = baseProperties_1[_i];\n var base = getTargetSymbol(baseProperty);\n if (base.flags & 4194304 /* Prototype */) {\n continue;\n }\n var baseSymbol = getPropertyOfObjectType(type, base.escapedName);\n if (!baseSymbol) {\n continue;\n }\n var derived = getTargetSymbol(baseSymbol);\n var baseDeclarationFlags = ts.getDeclarationModifierFlagsFromSymbol(base);\n ts.Debug.assert(!!derived, \"derived should point to something, even if it is the base class' declaration.\");\n // In order to resolve whether the inherited method was overridden in the base class or not,\n // we compare the Symbols obtained. Since getTargetSymbol returns the symbol on the *uninstantiated*\n // type declaration, derived and base resolve to the same symbol even in the case of generic classes.\n if (derived === base) {\n // derived class inherits base without override/redeclaration\n var derivedClassDecl = ts.getClassLikeDeclarationOfSymbol(type.symbol);\n // It is an error to inherit an abstract member without implementing it or being declared abstract.\n // If there is no declaration for the derived class (as in the case of class expressions),\n // then the class cannot be declared abstract.\n if (baseDeclarationFlags & 128 /* Abstract */ && (!derivedClassDecl || !ts.hasSyntacticModifier(derivedClassDecl, 128 /* Abstract */))) {\n // Searches other base types for a declaration that would satisfy the inherited abstract member.\n // (The class may have more than one base type via declaration merging with an interface with the\n // same name.)\n for (var _c = 0, _d = getBaseTypes(type); _c < _d.length; _c++) {\n var otherBaseType = _d[_c];\n if (otherBaseType === baseType)\n continue;\n var baseSymbol_1 = getPropertyOfObjectType(otherBaseType, base.escapedName);\n var derivedElsewhere = baseSymbol_1 && getTargetSymbol(baseSymbol_1);\n if (derivedElsewhere && derivedElsewhere !== base) {\n continue basePropertyCheck;\n }\n }\n if (derivedClassDecl.kind === 224 /* ClassExpression */) {\n error(derivedClassDecl, ts.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1, symbolToString(baseProperty), typeToString(baseType));\n }\n else {\n error(derivedClassDecl, ts.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2, typeToString(type), symbolToString(baseProperty), typeToString(baseType));\n }\n }\n }\n else {\n // derived overrides base.\n var derivedDeclarationFlags = ts.getDeclarationModifierFlagsFromSymbol(derived);\n if (baseDeclarationFlags & 8 /* Private */ || derivedDeclarationFlags & 8 /* Private */) {\n // either base or derived property is private - not override, skip it\n continue;\n }\n var errorMessage = void 0;\n var basePropertyFlags = base.flags & 98308 /* PropertyOrAccessor */;\n var derivedPropertyFlags = derived.flags & 98308 /* PropertyOrAccessor */;\n if (basePropertyFlags && derivedPropertyFlags) {\n // property/accessor is overridden with property/accessor\n if (baseDeclarationFlags & 128 /* Abstract */ && !(base.valueDeclaration && ts.isPropertyDeclaration(base.valueDeclaration) && base.valueDeclaration.initializer)\n || base.valueDeclaration && base.valueDeclaration.parent.kind === 256 /* InterfaceDeclaration */\n || derived.valueDeclaration && ts.isBinaryExpression(derived.valueDeclaration)) {\n // when the base property is abstract or from an interface, base/derived flags don't need to match\n // same when the derived property is from an assignment\n continue;\n }\n var overriddenInstanceProperty = basePropertyFlags !== 4 /* Property */ && derivedPropertyFlags === 4 /* Property */;\n var overriddenInstanceAccessor = basePropertyFlags === 4 /* Property */ && derivedPropertyFlags !== 4 /* Property */;\n if (overriddenInstanceProperty || overriddenInstanceAccessor) {\n var errorMessage_1 = overriddenInstanceProperty ?\n ts.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property :\n ts.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor;\n error(ts.getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage_1, symbolToString(base), typeToString(baseType), typeToString(type));\n }\n else if (useDefineForClassFields) {\n var uninitialized = (_a = derived.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return d.kind === 165 /* PropertyDeclaration */ && !d.initializer; });\n if (uninitialized\n && !(derived.flags & 33554432 /* Transient */)\n && !(baseDeclarationFlags & 128 /* Abstract */)\n && !(derivedDeclarationFlags & 128 /* Abstract */)\n && !((_b = derived.declarations) === null || _b === void 0 ? void 0 : _b.some(function (d) { return !!(d.flags & 8388608 /* Ambient */); }))) {\n var constructor = findConstructorDeclaration(ts.getClassLikeDeclarationOfSymbol(type.symbol));\n var propName = uninitialized.name;\n if (uninitialized.exclamationToken\n || !constructor\n || !ts.isIdentifier(propName)\n || !strictNullChecks\n || !isPropertyInitializedInConstructor(propName, type, constructor)) {\n var errorMessage_2 = ts.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration;\n error(ts.getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage_2, symbolToString(base), typeToString(baseType));\n }\n }\n }\n // correct case\n continue;\n }\n else if (isPrototypeProperty(base)) {\n if (isPrototypeProperty(derived) || derived.flags & 4 /* Property */) {\n // method is overridden with method or property -- correct case\n continue;\n }\n else {\n ts.Debug.assert(!!(derived.flags & 98304 /* Accessor */));\n errorMessage = ts.Diagnostics.Class_0_defines_instance_member_function_1_but_extended_class_2_defines_it_as_instance_member_accessor;\n }\n }\n else if (base.flags & 98304 /* Accessor */) {\n errorMessage = ts.Diagnostics.Class_0_defines_instance_member_accessor_1_but_extended_class_2_defines_it_as_instance_member_function;\n }\n else {\n errorMessage = ts.Diagnostics.Class_0_defines_instance_member_property_1_but_extended_class_2_defines_it_as_instance_member_function;\n }\n error(ts.getNameOfDeclaration(derived.valueDeclaration) || derived.valueDeclaration, errorMessage, typeToString(baseType), symbolToString(base), typeToString(type));\n }\n }\n }\n function getNonInterhitedProperties(type, baseTypes, properties) {\n if (!ts.length(baseTypes)) {\n return properties;\n }\n var seen = new ts.Map();\n ts.forEach(properties, function (p) { seen.set(p.escapedName, p); });\n for (var _i = 0, baseTypes_2 = baseTypes; _i < baseTypes_2.length; _i++) {\n var base = baseTypes_2[_i];\n var properties_5 = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType));\n for (var _a = 0, properties_4 = properties_5; _a < properties_4.length; _a++) {\n var prop = properties_4[_a];\n var existing = seen.get(prop.escapedName);\n if (existing && !isPropertyIdenticalTo(existing, prop)) {\n seen.delete(prop.escapedName);\n }\n }\n }\n return ts.arrayFrom(seen.values());\n }\n function checkInheritedPropertiesAreIdentical(type, typeNode) {\n var baseTypes = getBaseTypes(type);\n if (baseTypes.length < 2) {\n return true;\n }\n var seen = new ts.Map();\n ts.forEach(resolveDeclaredMembers(type).declaredProperties, function (p) { seen.set(p.escapedName, { prop: p, containingType: type }); });\n var ok = true;\n for (var _i = 0, baseTypes_3 = baseTypes; _i < baseTypes_3.length; _i++) {\n var base = baseTypes_3[_i];\n var properties = getPropertiesOfType(getTypeWithThisArgument(base, type.thisType));\n for (var _a = 0, properties_6 = properties; _a < properties_6.length; _a++) {\n var prop = properties_6[_a];\n var existing = seen.get(prop.escapedName);\n if (!existing) {\n seen.set(prop.escapedName, { prop: prop, containingType: base });\n }\n else {\n var isInheritedProperty = existing.containingType !== type;\n if (isInheritedProperty && !isPropertyIdenticalTo(existing.prop, prop)) {\n ok = false;\n var typeName1 = typeToString(existing.containingType);\n var typeName2 = typeToString(base);\n var errorInfo = ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, symbolToString(prop), typeName1, typeName2);\n errorInfo = ts.chainDiagnosticMessages(errorInfo, ts.Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2, typeToString(type), typeName1, typeName2);\n diagnostics.add(ts.createDiagnosticForNodeFromMessageChain(typeNode, errorInfo));\n }\n }\n }\n }\n return ok;\n }\n function checkPropertyInitialization(node) {\n if (!strictNullChecks || !strictPropertyInitialization || node.flags & 8388608 /* Ambient */) {\n return;\n }\n var constructor = findConstructorDeclaration(node);\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (ts.getEffectiveModifierFlags(member) & 2 /* Ambient */) {\n continue;\n }\n if (!ts.isStatic(member) && isPropertyWithoutInitializer(member)) {\n var propName = member.name;\n if (ts.isIdentifier(propName) || ts.isPrivateIdentifier(propName)) {\n var type = getTypeOfSymbol(getSymbolOfNode(member));\n if (!(type.flags & 3 /* AnyOrUnknown */ || getFalsyFlags(type) & 32768 /* Undefined */)) {\n if (!constructor || !isPropertyInitializedInConstructor(propName, type, constructor)) {\n error(member.name, ts.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor, ts.declarationNameToString(propName));\n }\n }\n }\n }\n }\n }\n function isPropertyWithoutInitializer(node) {\n return node.kind === 165 /* PropertyDeclaration */ &&\n !ts.hasAbstractModifier(node) &&\n !node.exclamationToken &&\n !node.initializer;\n }\n function isPropertyInitializedInStaticBlocks(propName, propType, staticBlocks, startPos, endPos) {\n for (var _i = 0, staticBlocks_2 = staticBlocks; _i < staticBlocks_2.length; _i++) {\n var staticBlock = staticBlocks_2[_i];\n // static block must be within the provided range as they are evaluated in document order (unlike constructors)\n if (staticBlock.pos >= startPos && staticBlock.pos <= endPos) {\n var reference = ts.factory.createPropertyAccessExpression(ts.factory.createThis(), propName);\n ts.setParent(reference.expression, reference);\n ts.setParent(reference, staticBlock);\n reference.flowNode = staticBlock.returnFlowNode;\n var flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));\n if (!(getFalsyFlags(flowType) & 32768 /* Undefined */)) {\n return true;\n }\n }\n }\n return false;\n }\n function isPropertyInitializedInConstructor(propName, propType, constructor) {\n var reference = ts.factory.createPropertyAccessExpression(ts.factory.createThis(), propName);\n ts.setParent(reference.expression, reference);\n ts.setParent(reference, constructor);\n reference.flowNode = constructor.returnFlowNode;\n var flowType = getFlowTypeOfReference(reference, propType, getOptionalType(propType));\n return !(getFalsyFlags(flowType) & 32768 /* Undefined */);\n }\n function checkInterfaceDeclaration(node) {\n // Grammar checking\n if (!checkGrammarDecoratorsAndModifiers(node))\n checkGrammarInterfaceDeclaration(node);\n checkTypeParameters(node.typeParameters);\n if (produceDiagnostics) {\n checkTypeNameIsReserved(node.name, ts.Diagnostics.Interface_name_cannot_be_0);\n checkExportsOnMergedDeclarations(node);\n var symbol = getSymbolOfNode(node);\n checkTypeParameterListsIdentical(symbol);\n // Only check this symbol once\n var firstInterfaceDecl = ts.getDeclarationOfKind(symbol, 256 /* InterfaceDeclaration */);\n if (node === firstInterfaceDecl) {\n var type = getDeclaredTypeOfSymbol(symbol);\n var typeWithThis = getTypeWithThisArgument(type);\n // run subsequent checks only if first set succeeded\n if (checkInheritedPropertiesAreIdentical(type, node.name)) {\n for (var _i = 0, _a = getBaseTypes(type); _i < _a.length; _i++) {\n var baseType = _a[_i];\n checkTypeAssignableTo(typeWithThis, getTypeWithThisArgument(baseType, type.thisType), node.name, ts.Diagnostics.Interface_0_incorrectly_extends_interface_1);\n }\n checkIndexConstraints(type);\n }\n }\n checkObjectTypeForDuplicateDeclarations(node);\n }\n ts.forEach(ts.getInterfaceBaseTypeNodes(node), function (heritageElement) {\n if (!ts.isEntityNameExpression(heritageElement.expression) || ts.isOptionalChain(heritageElement.expression)) {\n error(heritageElement.expression, ts.Diagnostics.An_interface_can_only_extend_an_identifier_Slashqualified_name_with_optional_type_arguments);\n }\n checkTypeReferenceNode(heritageElement);\n });\n ts.forEach(node.members, checkSourceElement);\n if (produceDiagnostics) {\n checkTypeForDuplicateIndexSignatures(node);\n registerForUnusedIdentifiersCheck(node);\n }\n }\n function checkTypeAliasDeclaration(node) {\n // Grammar checking\n checkGrammarDecoratorsAndModifiers(node);\n checkTypeNameIsReserved(node.name, ts.Diagnostics.Type_alias_name_cannot_be_0);\n checkExportsOnMergedDeclarations(node);\n checkTypeParameters(node.typeParameters);\n if (node.type.kind === 137 /* IntrinsicKeyword */) {\n if (!intrinsicTypeKinds.has(node.name.escapedText) || ts.length(node.typeParameters) !== 1) {\n error(node.type, ts.Diagnostics.The_intrinsic_keyword_can_only_be_used_to_declare_compiler_provided_intrinsic_types);\n }\n }\n else {\n checkSourceElement(node.type);\n registerForUnusedIdentifiersCheck(node);\n }\n }\n function computeEnumMemberValues(node) {\n var nodeLinks = getNodeLinks(node);\n if (!(nodeLinks.flags & 16384 /* EnumValuesComputed */)) {\n nodeLinks.flags |= 16384 /* EnumValuesComputed */;\n var autoValue = 0;\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n var value = computeMemberValue(member, autoValue);\n getNodeLinks(member).enumMemberValue = value;\n autoValue = typeof value === \"number\" ? value + 1 : undefined;\n }\n }\n }\n function computeMemberValue(member, autoValue) {\n if (ts.isComputedNonLiteralName(member.name)) {\n error(member.name, ts.Diagnostics.Computed_property_names_are_not_allowed_in_enums);\n }\n else {\n var text = ts.getTextOfPropertyName(member.name);\n if (isNumericLiteralName(text) && !ts.isInfinityOrNaNString(text)) {\n error(member.name, ts.Diagnostics.An_enum_member_cannot_have_a_numeric_name);\n }\n }\n if (member.initializer) {\n return computeConstantValue(member);\n }\n // In ambient non-const numeric enum declarations, enum members without initializers are\n // considered computed members (as opposed to having auto-incremented values).\n if (member.parent.flags & 8388608 /* Ambient */ && !ts.isEnumConst(member.parent) && getEnumKind(getSymbolOfNode(member.parent)) === 0 /* Numeric */) {\n return undefined;\n }\n // If the member declaration specifies no value, the member is considered a constant enum member.\n // If the member is the first member in the enum declaration, it is assigned the value zero.\n // Otherwise, it is assigned the value of the immediately preceding member plus one, and an error\n // occurs if the immediately preceding member is not a constant enum member.\n if (autoValue !== undefined) {\n return autoValue;\n }\n error(member.name, ts.Diagnostics.Enum_member_must_have_initializer);\n return undefined;\n }\n function computeConstantValue(member) {\n var enumKind = getEnumKind(getSymbolOfNode(member.parent));\n var isConstEnum = ts.isEnumConst(member.parent);\n var initializer = member.initializer;\n var value = enumKind === 1 /* Literal */ && !isLiteralEnumMember(member) ? undefined : evaluate(initializer);\n if (value !== undefined) {\n if (isConstEnum && typeof value === \"number\" && !isFinite(value)) {\n error(initializer, isNaN(value) ?\n ts.Diagnostics.const_enum_member_initializer_was_evaluated_to_disallowed_value_NaN :\n ts.Diagnostics.const_enum_member_initializer_was_evaluated_to_a_non_finite_value);\n }\n }\n else if (enumKind === 1 /* Literal */) {\n error(initializer, ts.Diagnostics.Computed_values_are_not_permitted_in_an_enum_with_string_valued_members);\n return 0;\n }\n else if (isConstEnum) {\n error(initializer, ts.Diagnostics.const_enum_member_initializers_can_only_contain_literal_values_and_other_computed_enum_values);\n }\n else if (member.parent.flags & 8388608 /* Ambient */) {\n error(initializer, ts.Diagnostics.In_ambient_enum_declarations_member_initializer_must_be_constant_expression);\n }\n else {\n // Only here do we need to check that the initializer is assignable to the enum type.\n var source = checkExpression(initializer);\n if (!isTypeAssignableToKind(source, 296 /* NumberLike */)) {\n error(initializer, ts.Diagnostics.Only_numeric_enums_can_have_computed_members_but_this_expression_has_type_0_If_you_do_not_need_exhaustiveness_checks_consider_using_an_object_literal_instead, typeToString(source));\n }\n else {\n checkTypeAssignableTo(source, getDeclaredTypeOfSymbol(getSymbolOfNode(member.parent)), initializer, /*headMessage*/ undefined);\n }\n }\n return value;\n function evaluate(expr) {\n switch (expr.kind) {\n case 217 /* PrefixUnaryExpression */:\n var value_2 = evaluate(expr.operand);\n if (typeof value_2 === \"number\") {\n switch (expr.operator) {\n case 39 /* PlusToken */: return value_2;\n case 40 /* MinusToken */: return -value_2;\n case 54 /* TildeToken */: return ~value_2;\n }\n }\n break;\n case 219 /* BinaryExpression */:\n var left = evaluate(expr.left);\n var right = evaluate(expr.right);\n if (typeof left === \"number\" && typeof right === \"number\") {\n switch (expr.operatorToken.kind) {\n case 51 /* BarToken */: return left | right;\n case 50 /* AmpersandToken */: return left & right;\n case 48 /* GreaterThanGreaterThanToken */: return left >> right;\n case 49 /* GreaterThanGreaterThanGreaterThanToken */: return left >>> right;\n case 47 /* LessThanLessThanToken */: return left << right;\n case 52 /* CaretToken */: return left ^ right;\n case 41 /* AsteriskToken */: return left * right;\n case 43 /* SlashToken */: return left / right;\n case 39 /* PlusToken */: return left + right;\n case 40 /* MinusToken */: return left - right;\n case 44 /* PercentToken */: return left % right;\n case 42 /* AsteriskAsteriskToken */: return Math.pow(left, right);\n }\n }\n else if (typeof left === \"string\" && typeof right === \"string\" && expr.operatorToken.kind === 39 /* PlusToken */) {\n return left + right;\n }\n break;\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return expr.text;\n case 8 /* NumericLiteral */:\n checkGrammarNumericLiteral(expr);\n return +expr.text;\n case 210 /* ParenthesizedExpression */:\n return evaluate(expr.expression);\n case 79 /* Identifier */:\n var identifier = expr;\n if (ts.isInfinityOrNaNString(identifier.escapedText)) {\n return +(identifier.escapedText);\n }\n return ts.nodeIsMissing(expr) ? 0 : evaluateEnumMember(expr, getSymbolOfNode(member.parent), identifier.escapedText);\n case 205 /* ElementAccessExpression */:\n case 204 /* PropertyAccessExpression */:\n var ex = expr;\n if (isConstantMemberAccess(ex)) {\n var type = getTypeOfExpression(ex.expression);\n if (type.symbol && type.symbol.flags & 384 /* Enum */) {\n var name = void 0;\n if (ex.kind === 204 /* PropertyAccessExpression */) {\n name = ex.name.escapedText;\n }\n else {\n name = ts.escapeLeadingUnderscores(ts.cast(ex.argumentExpression, ts.isLiteralExpression).text);\n }\n return evaluateEnumMember(expr, type.symbol, name);\n }\n }\n break;\n }\n return undefined;\n }\n function evaluateEnumMember(expr, enumSymbol, name) {\n var memberSymbol = enumSymbol.exports.get(name);\n if (memberSymbol) {\n var declaration = memberSymbol.valueDeclaration;\n if (declaration !== member) {\n if (declaration && isBlockScopedNameDeclaredBeforeUse(declaration, member)) {\n return getEnumMemberValue(declaration);\n }\n error(expr, ts.Diagnostics.A_member_initializer_in_a_enum_declaration_cannot_reference_members_declared_after_it_including_members_defined_in_other_enums);\n return 0;\n }\n else {\n error(expr, ts.Diagnostics.Property_0_is_used_before_being_assigned, symbolToString(memberSymbol));\n }\n }\n return undefined;\n }\n }\n function isConstantMemberAccess(node) {\n return node.kind === 79 /* Identifier */ ||\n node.kind === 204 /* PropertyAccessExpression */ && isConstantMemberAccess(node.expression) ||\n node.kind === 205 /* ElementAccessExpression */ && isConstantMemberAccess(node.expression) &&\n ts.isStringLiteralLike(node.argumentExpression);\n }\n function checkEnumDeclaration(node) {\n if (!produceDiagnostics) {\n return;\n }\n // Grammar checking\n checkGrammarDecoratorsAndModifiers(node);\n checkCollisionsForDeclarationName(node, node.name);\n checkExportsOnMergedDeclarations(node);\n node.members.forEach(checkEnumMember);\n computeEnumMemberValues(node);\n // Spec 2014 - Section 9.3:\n // It isn't possible for one enum declaration to continue the automatic numbering sequence of another,\n // and when an enum type has multiple declarations, only one declaration is permitted to omit a value\n // for the first member.\n //\n // Only perform this check once per symbol\n var enumSymbol = getSymbolOfNode(node);\n var firstDeclaration = ts.getDeclarationOfKind(enumSymbol, node.kind);\n if (node === firstDeclaration) {\n if (enumSymbol.declarations && enumSymbol.declarations.length > 1) {\n var enumIsConst_1 = ts.isEnumConst(node);\n // check that const is placed\\omitted on all enum declarations\n ts.forEach(enumSymbol.declarations, function (decl) {\n if (ts.isEnumDeclaration(decl) && ts.isEnumConst(decl) !== enumIsConst_1) {\n error(ts.getNameOfDeclaration(decl), ts.Diagnostics.Enum_declarations_must_all_be_const_or_non_const);\n }\n });\n }\n var seenEnumMissingInitialInitializer_1 = false;\n ts.forEach(enumSymbol.declarations, function (declaration) {\n // return true if we hit a violation of the rule, false otherwise\n if (declaration.kind !== 258 /* EnumDeclaration */) {\n return false;\n }\n var enumDeclaration = declaration;\n if (!enumDeclaration.members.length) {\n return false;\n }\n var firstEnumMember = enumDeclaration.members[0];\n if (!firstEnumMember.initializer) {\n if (seenEnumMissingInitialInitializer_1) {\n error(firstEnumMember.name, ts.Diagnostics.In_an_enum_with_multiple_declarations_only_one_declaration_can_omit_an_initializer_for_its_first_enum_element);\n }\n else {\n seenEnumMissingInitialInitializer_1 = true;\n }\n }\n });\n }\n }\n function checkEnumMember(node) {\n if (ts.isPrivateIdentifier(node.name)) {\n error(node, ts.Diagnostics.An_enum_member_cannot_be_named_with_a_private_identifier);\n }\n }\n function getFirstNonAmbientClassOrFunctionDeclaration(symbol) {\n var declarations = symbol.declarations;\n if (declarations) {\n for (var _i = 0, declarations_8 = declarations; _i < declarations_8.length; _i++) {\n var declaration = declarations_8[_i];\n if ((declaration.kind === 255 /* ClassDeclaration */ ||\n (declaration.kind === 254 /* FunctionDeclaration */ && ts.nodeIsPresent(declaration.body))) &&\n !(declaration.flags & 8388608 /* Ambient */)) {\n return declaration;\n }\n }\n }\n return undefined;\n }\n function inSameLexicalScope(node1, node2) {\n var container1 = ts.getEnclosingBlockScopeContainer(node1);\n var container2 = ts.getEnclosingBlockScopeContainer(node2);\n if (isGlobalSourceFile(container1)) {\n return isGlobalSourceFile(container2);\n }\n else if (isGlobalSourceFile(container2)) {\n return false;\n }\n else {\n return container1 === container2;\n }\n }\n function checkModuleDeclaration(node) {\n if (produceDiagnostics) {\n // Grammar checking\n var isGlobalAugmentation = ts.isGlobalScopeAugmentation(node);\n var inAmbientContext = node.flags & 8388608 /* Ambient */;\n if (isGlobalAugmentation && !inAmbientContext) {\n error(node.name, ts.Diagnostics.Augmentations_for_the_global_scope_should_have_declare_modifier_unless_they_appear_in_already_ambient_context);\n }\n var isAmbientExternalModule = ts.isAmbientModule(node);\n var contextErrorMessage = isAmbientExternalModule\n ? ts.Diagnostics.An_ambient_module_declaration_is_only_allowed_at_the_top_level_in_a_file\n : ts.Diagnostics.A_namespace_declaration_is_only_allowed_in_a_namespace_or_module;\n if (checkGrammarModuleElementContext(node, contextErrorMessage)) {\n // If we hit a module declaration in an illegal context, just bail out to avoid cascading errors.\n return;\n }\n if (!checkGrammarDecoratorsAndModifiers(node)) {\n if (!inAmbientContext && node.name.kind === 10 /* StringLiteral */) {\n grammarErrorOnNode(node.name, ts.Diagnostics.Only_ambient_modules_can_use_quoted_names);\n }\n }\n if (ts.isIdentifier(node.name)) {\n checkCollisionsForDeclarationName(node, node.name);\n }\n checkExportsOnMergedDeclarations(node);\n var symbol = getSymbolOfNode(node);\n // The following checks only apply on a non-ambient instantiated module declaration.\n if (symbol.flags & 512 /* ValueModule */\n && !inAmbientContext\n && symbol.declarations\n && symbol.declarations.length > 1\n && isInstantiatedModule(node, ts.shouldPreserveConstEnums(compilerOptions))) {\n var firstNonAmbientClassOrFunc = getFirstNonAmbientClassOrFunctionDeclaration(symbol);\n if (firstNonAmbientClassOrFunc) {\n if (ts.getSourceFileOfNode(node) !== ts.getSourceFileOfNode(firstNonAmbientClassOrFunc)) {\n error(node.name, ts.Diagnostics.A_namespace_declaration_cannot_be_in_a_different_file_from_a_class_or_function_with_which_it_is_merged);\n }\n else if (node.pos < firstNonAmbientClassOrFunc.pos) {\n error(node.name, ts.Diagnostics.A_namespace_declaration_cannot_be_located_prior_to_a_class_or_function_with_which_it_is_merged);\n }\n }\n // if the module merges with a class declaration in the same lexical scope,\n // we need to track this to ensure the correct emit.\n var mergedClass = ts.getDeclarationOfKind(symbol, 255 /* ClassDeclaration */);\n if (mergedClass &&\n inSameLexicalScope(node, mergedClass)) {\n getNodeLinks(node).flags |= 32768 /* LexicalModuleMergesWithClass */;\n }\n }\n if (isAmbientExternalModule) {\n if (ts.isExternalModuleAugmentation(node)) {\n // body of the augmentation should be checked for consistency only if augmentation was applied to its target (either global scope or module)\n // otherwise we'll be swamped in cascading errors.\n // We can detect if augmentation was applied using following rules:\n // - augmentation for a global scope is always applied\n // - augmentation for some external module is applied if symbol for augmentation is merged (it was combined with target module).\n var checkBody = isGlobalAugmentation || (getSymbolOfNode(node).flags & 33554432 /* Transient */);\n if (checkBody && node.body) {\n for (var _i = 0, _a = node.body.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n checkModuleAugmentationElement(statement, isGlobalAugmentation);\n }\n }\n }\n else if (isGlobalSourceFile(node.parent)) {\n if (isGlobalAugmentation) {\n error(node.name, ts.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations);\n }\n else if (ts.isExternalModuleNameRelative(ts.getTextOfIdentifierOrLiteral(node.name))) {\n error(node.name, ts.Diagnostics.Ambient_module_declaration_cannot_specify_relative_module_name);\n }\n }\n else {\n if (isGlobalAugmentation) {\n error(node.name, ts.Diagnostics.Augmentations_for_the_global_scope_can_only_be_directly_nested_in_external_modules_or_ambient_module_declarations);\n }\n else {\n // Node is not an augmentation and is not located on the script level.\n // This means that this is declaration of ambient module that is located in other module or namespace which is prohibited.\n error(node.name, ts.Diagnostics.Ambient_modules_cannot_be_nested_in_other_modules_or_namespaces);\n }\n }\n }\n }\n if (node.body) {\n checkSourceElement(node.body);\n if (!ts.isGlobalScopeAugmentation(node)) {\n registerForUnusedIdentifiersCheck(node);\n }\n }\n }\n function checkModuleAugmentationElement(node, isGlobalAugmentation) {\n var _a;\n switch (node.kind) {\n case 235 /* VariableStatement */:\n // error each individual name in variable statement instead of marking the entire variable statement\n for (var _i = 0, _b = node.declarationList.declarations; _i < _b.length; _i++) {\n var decl = _b[_i];\n checkModuleAugmentationElement(decl, isGlobalAugmentation);\n }\n break;\n case 269 /* ExportAssignment */:\n case 270 /* ExportDeclaration */:\n grammarErrorOnFirstToken(node, ts.Diagnostics.Exports_and_export_assignments_are_not_permitted_in_module_augmentations);\n break;\n case 263 /* ImportEqualsDeclaration */:\n case 264 /* ImportDeclaration */:\n grammarErrorOnFirstToken(node, ts.Diagnostics.Imports_are_not_permitted_in_module_augmentations_Consider_moving_them_to_the_enclosing_external_module);\n break;\n case 201 /* BindingElement */:\n case 252 /* VariableDeclaration */:\n var name = node.name;\n if (ts.isBindingPattern(name)) {\n for (var _c = 0, _d = name.elements; _c < _d.length; _c++) {\n var el = _d[_c];\n // mark individual names in binding pattern\n checkModuleAugmentationElement(el, isGlobalAugmentation);\n }\n break;\n }\n // falls through\n case 255 /* ClassDeclaration */:\n case 258 /* EnumDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n if (isGlobalAugmentation) {\n return;\n }\n var symbol = getSymbolOfNode(node);\n if (symbol) {\n // module augmentations cannot introduce new names on the top level scope of the module\n // this is done it two steps\n // 1. quick check - if symbol for node is not merged - this is local symbol to this augmentation - report error\n // 2. main check - report error if value declaration of the parent symbol is module augmentation)\n var reportError = !(symbol.flags & 33554432 /* Transient */);\n if (!reportError) {\n // symbol should not originate in augmentation\n reportError = !!((_a = symbol.parent) === null || _a === void 0 ? void 0 : _a.declarations) && ts.isExternalModuleAugmentation(symbol.parent.declarations[0]);\n }\n }\n break;\n }\n }\n function getFirstNonModuleExportsIdentifier(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return node;\n case 159 /* QualifiedName */:\n do {\n node = node.left;\n } while (node.kind !== 79 /* Identifier */);\n return node;\n case 204 /* PropertyAccessExpression */:\n do {\n if (ts.isModuleExportsAccessExpression(node.expression) && !ts.isPrivateIdentifier(node.name)) {\n return node.name;\n }\n node = node.expression;\n } while (node.kind !== 79 /* Identifier */);\n return node;\n }\n }\n function checkExternalImportOrExportDeclaration(node) {\n var moduleName = ts.getExternalModuleName(node);\n if (!moduleName || ts.nodeIsMissing(moduleName)) {\n // Should be a parse error.\n return false;\n }\n if (!ts.isStringLiteral(moduleName)) {\n error(moduleName, ts.Diagnostics.String_literal_expected);\n return false;\n }\n var inAmbientExternalModule = node.parent.kind === 260 /* ModuleBlock */ && ts.isAmbientModule(node.parent.parent);\n if (node.parent.kind !== 300 /* SourceFile */ && !inAmbientExternalModule) {\n error(moduleName, node.kind === 270 /* ExportDeclaration */ ?\n ts.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace :\n ts.Diagnostics.Import_declarations_in_a_namespace_cannot_reference_a_module);\n return false;\n }\n if (inAmbientExternalModule && ts.isExternalModuleNameRelative(moduleName.text)) {\n // we have already reported errors on top level imports/exports in external module augmentations in checkModuleDeclaration\n // no need to do this again.\n if (!isTopLevelInExternalModuleAugmentation(node)) {\n // TypeScript 1.0 spec (April 2013): 12.1.6\n // An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference\n // other external modules only through top - level external module names.\n // Relative external module names are not permitted.\n error(node, ts.Diagnostics.Import_or_export_declaration_in_an_ambient_module_declaration_cannot_reference_module_through_relative_module_name);\n return false;\n }\n }\n return true;\n }\n function checkAliasSymbol(node) {\n var _a;\n var symbol = getSymbolOfNode(node);\n var target = resolveAlias(symbol);\n if (target !== unknownSymbol) {\n // For external modules, `symbol` represents the local symbol for an alias.\n // This local symbol will merge any other local declarations (excluding other aliases)\n // and symbol.flags will contains combined representation for all merged declaration.\n // Based on symbol.flags we can compute a set of excluded meanings (meaning that resolved alias should not have,\n // otherwise it will conflict with some local declaration). Note that in addition to normal flags we include matching SymbolFlags.Export*\n // in order to prevent collisions with declarations that were exported from the current module (they still contribute to local names).\n symbol = getMergedSymbol(symbol.exportSymbol || symbol);\n var excludedMeanings = (symbol.flags & (111551 /* Value */ | 1048576 /* ExportValue */) ? 111551 /* Value */ : 0) |\n (symbol.flags & 788968 /* Type */ ? 788968 /* Type */ : 0) |\n (symbol.flags & 1920 /* Namespace */ ? 1920 /* Namespace */ : 0);\n if (target.flags & excludedMeanings) {\n var message = node.kind === 273 /* ExportSpecifier */ ?\n ts.Diagnostics.Export_declaration_conflicts_with_exported_declaration_of_0 :\n ts.Diagnostics.Import_declaration_conflicts_with_local_declaration_of_0;\n error(node, message, symbolToString(symbol));\n }\n // Don't allow to re-export something with no value side when `--isolatedModules` is set.\n if (compilerOptions.isolatedModules\n && node.kind === 273 /* ExportSpecifier */\n && !node.parent.parent.isTypeOnly\n && !(target.flags & 111551 /* Value */)\n && !(node.flags & 8388608 /* Ambient */)) {\n error(node, ts.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type);\n }\n if (ts.isImportSpecifier(node) && ((_a = target.declarations) === null || _a === void 0 ? void 0 : _a.every(function (d) { return !!(ts.getCombinedNodeFlags(d) & 134217728 /* Deprecated */); }))) {\n addDeprecatedSuggestion(node.name, target.declarations, symbol.escapedName);\n }\n }\n }\n function checkImportBinding(node) {\n checkCollisionsForDeclarationName(node, node.name);\n checkAliasSymbol(node);\n if (node.kind === 268 /* ImportSpecifier */ &&\n ts.idText(node.propertyName || node.name) === \"default\" &&\n compilerOptions.esModuleInterop &&\n moduleKind !== ts.ModuleKind.System && moduleKind < ts.ModuleKind.ES2015) {\n checkExternalEmitHelpers(node, 131072 /* ImportDefault */);\n }\n }\n function checkImportDeclaration(node) {\n if (checkGrammarModuleElementContext(node, ts.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)) {\n // If we hit an import declaration in an illegal context, just bail out to avoid cascading errors.\n return;\n }\n if (!checkGrammarDecoratorsAndModifiers(node) && ts.hasEffectiveModifiers(node)) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.An_import_declaration_cannot_have_modifiers);\n }\n if (checkExternalImportOrExportDeclaration(node)) {\n var importClause = node.importClause;\n if (importClause && !checkGrammarImportClause(importClause)) {\n if (importClause.name) {\n checkImportBinding(importClause);\n }\n if (importClause.namedBindings) {\n if (importClause.namedBindings.kind === 266 /* NamespaceImport */) {\n checkImportBinding(importClause.namedBindings);\n if (moduleKind !== ts.ModuleKind.System && moduleKind < ts.ModuleKind.ES2015 && compilerOptions.esModuleInterop) {\n // import * as ns from \"foo\";\n checkExternalEmitHelpers(node, 65536 /* ImportStar */);\n }\n }\n else {\n var moduleExisted = resolveExternalModuleName(node, node.moduleSpecifier);\n if (moduleExisted) {\n ts.forEach(importClause.namedBindings.elements, checkImportBinding);\n }\n }\n }\n }\n }\n }\n function checkImportEqualsDeclaration(node) {\n if (checkGrammarModuleElementContext(node, ts.Diagnostics.An_import_declaration_can_only_be_used_in_a_namespace_or_module)) {\n // If we hit an import declaration in an illegal context, just bail out to avoid cascading errors.\n return;\n }\n checkGrammarDecoratorsAndModifiers(node);\n if (ts.isInternalModuleImportEqualsDeclaration(node) || checkExternalImportOrExportDeclaration(node)) {\n checkImportBinding(node);\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n markExportAsReferenced(node);\n }\n if (node.moduleReference.kind !== 275 /* ExternalModuleReference */) {\n var target = resolveAlias(getSymbolOfNode(node));\n if (target !== unknownSymbol) {\n if (target.flags & 111551 /* Value */) {\n // Target is a value symbol, check that it is not hidden by a local declaration with the same name\n var moduleName = ts.getFirstIdentifier(node.moduleReference);\n if (!(resolveEntityName(moduleName, 111551 /* Value */ | 1920 /* Namespace */).flags & 1920 /* Namespace */)) {\n error(moduleName, ts.Diagnostics.Module_0_is_hidden_by_a_local_declaration_with_the_same_name, ts.declarationNameToString(moduleName));\n }\n }\n if (target.flags & 788968 /* Type */) {\n checkTypeNameIsReserved(node.name, ts.Diagnostics.Import_name_cannot_be_0);\n }\n }\n if (node.isTypeOnly) {\n grammarErrorOnNode(node, ts.Diagnostics.An_import_alias_cannot_use_import_type);\n }\n }\n else {\n if (moduleKind >= ts.ModuleKind.ES2015 && !node.isTypeOnly && !(node.flags & 8388608 /* Ambient */)) {\n // Import equals declaration is deprecated in es6 or above\n grammarErrorOnNode(node, ts.Diagnostics.Import_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_import_Asterisk_as_ns_from_mod_import_a_from_mod_import_d_from_mod_or_another_module_format_instead);\n }\n }\n }\n }\n function checkExportDeclaration(node) {\n if (checkGrammarModuleElementContext(node, ts.Diagnostics.An_export_declaration_can_only_be_used_in_a_module)) {\n // If we hit an export in an illegal context, just bail out to avoid cascading errors.\n return;\n }\n if (!checkGrammarDecoratorsAndModifiers(node) && ts.hasEffectiveModifiers(node)) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_declaration_cannot_have_modifiers);\n }\n if (node.moduleSpecifier && node.exportClause && ts.isNamedExports(node.exportClause) && ts.length(node.exportClause.elements) && languageVersion === 0 /* ES3 */) {\n checkExternalEmitHelpers(node, 2097152 /* CreateBinding */);\n }\n checkGrammarExportDeclaration(node);\n if (!node.moduleSpecifier || checkExternalImportOrExportDeclaration(node)) {\n if (node.exportClause && !ts.isNamespaceExport(node.exportClause)) {\n // export { x, y }\n // export { x, y } from \"foo\"\n ts.forEach(node.exportClause.elements, checkExportSpecifier);\n var inAmbientExternalModule = node.parent.kind === 260 /* ModuleBlock */ && ts.isAmbientModule(node.parent.parent);\n var inAmbientNamespaceDeclaration = !inAmbientExternalModule && node.parent.kind === 260 /* ModuleBlock */ &&\n !node.moduleSpecifier && node.flags & 8388608 /* Ambient */;\n if (node.parent.kind !== 300 /* SourceFile */ && !inAmbientExternalModule && !inAmbientNamespaceDeclaration) {\n error(node, ts.Diagnostics.Export_declarations_are_not_permitted_in_a_namespace);\n }\n }\n else {\n // export * from \"foo\"\n // export * as ns from \"foo\";\n var moduleSymbol = resolveExternalModuleName(node, node.moduleSpecifier);\n if (moduleSymbol && hasExportAssignmentSymbol(moduleSymbol)) {\n error(node.moduleSpecifier, ts.Diagnostics.Module_0_uses_export_and_cannot_be_used_with_export_Asterisk, symbolToString(moduleSymbol));\n }\n else if (node.exportClause) {\n checkAliasSymbol(node.exportClause);\n }\n if (moduleKind !== ts.ModuleKind.System && moduleKind < ts.ModuleKind.ES2015) {\n if (node.exportClause) {\n // export * as ns from \"foo\";\n // For ES2015 modules, we emit it as a pair of `import * as a_1 ...; export { a_1 as ns }` and don't need the helper.\n // We only use the helper here when in esModuleInterop\n if (compilerOptions.esModuleInterop) {\n checkExternalEmitHelpers(node, 65536 /* ImportStar */);\n }\n }\n else {\n // export * from \"foo\"\n checkExternalEmitHelpers(node, 32768 /* ExportStar */);\n }\n }\n }\n }\n }\n function checkGrammarExportDeclaration(node) {\n var _a;\n var isTypeOnlyExportStar = node.isTypeOnly && ((_a = node.exportClause) === null || _a === void 0 ? void 0 : _a.kind) !== 271 /* NamedExports */;\n if (isTypeOnlyExportStar) {\n grammarErrorOnNode(node, ts.Diagnostics.Only_named_exports_may_use_export_type);\n }\n return !isTypeOnlyExportStar;\n }\n function checkGrammarModuleElementContext(node, errorMessage) {\n var isInAppropriateContext = node.parent.kind === 300 /* SourceFile */ || node.parent.kind === 260 /* ModuleBlock */ || node.parent.kind === 259 /* ModuleDeclaration */;\n if (!isInAppropriateContext) {\n grammarErrorOnFirstToken(node, errorMessage);\n }\n return !isInAppropriateContext;\n }\n function importClauseContainsReferencedImport(importClause) {\n return ts.forEachImportClauseDeclaration(importClause, function (declaration) {\n return !!getSymbolOfNode(declaration).isReferenced;\n });\n }\n function importClauseContainsConstEnumUsedAsValue(importClause) {\n return ts.forEachImportClauseDeclaration(importClause, function (declaration) {\n return !!getSymbolLinks(getSymbolOfNode(declaration)).constEnumReferenced;\n });\n }\n function canConvertImportDeclarationToTypeOnly(statement) {\n return ts.isImportDeclaration(statement) &&\n statement.importClause &&\n !statement.importClause.isTypeOnly &&\n importClauseContainsReferencedImport(statement.importClause) &&\n !isReferencedAliasDeclaration(statement.importClause, /*checkChildren*/ true) &&\n !importClauseContainsConstEnumUsedAsValue(statement.importClause);\n }\n function canConvertImportEqualsDeclarationToTypeOnly(statement) {\n return ts.isImportEqualsDeclaration(statement) &&\n ts.isExternalModuleReference(statement.moduleReference) &&\n !statement.isTypeOnly &&\n getSymbolOfNode(statement).isReferenced &&\n !isReferencedAliasDeclaration(statement, /*checkChildren*/ false) &&\n !getSymbolLinks(getSymbolOfNode(statement)).constEnumReferenced;\n }\n function checkImportsForTypeOnlyConversion(sourceFile) {\n for (var _i = 0, _a = sourceFile.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n if (canConvertImportDeclarationToTypeOnly(statement) || canConvertImportEqualsDeclarationToTypeOnly(statement)) {\n error(statement, ts.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error);\n }\n }\n }\n function checkExportSpecifier(node) {\n checkAliasSymbol(node);\n if (ts.getEmitDeclarations(compilerOptions)) {\n collectLinkedAliases(node.propertyName || node.name, /*setVisibility*/ true);\n }\n if (!node.parent.parent.moduleSpecifier) {\n var exportedName = node.propertyName || node.name;\n // find immediate value referenced by exported name (SymbolFlags.Alias is set so we don't chase down aliases)\n var symbol = resolveName(exportedName, exportedName.escapedText, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, \n /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true);\n if (symbol && (symbol === undefinedSymbol || symbol === globalThisSymbol || symbol.declarations && isGlobalSourceFile(getDeclarationContainer(symbol.declarations[0])))) {\n error(exportedName, ts.Diagnostics.Cannot_export_0_Only_local_declarations_can_be_exported_from_a_module, ts.idText(exportedName));\n }\n else {\n markExportAsReferenced(node);\n var target = symbol && (symbol.flags & 2097152 /* Alias */ ? resolveAlias(symbol) : symbol);\n if (!target || target === unknownSymbol || target.flags & 111551 /* Value */) {\n checkExpressionCached(node.propertyName || node.name);\n }\n }\n }\n else {\n if (compilerOptions.esModuleInterop &&\n moduleKind !== ts.ModuleKind.System &&\n moduleKind < ts.ModuleKind.ES2015 &&\n ts.idText(node.propertyName || node.name) === \"default\") {\n checkExternalEmitHelpers(node, 131072 /* ImportDefault */);\n }\n }\n }\n function checkExportAssignment(node) {\n var illegalContextMessage = node.isExportEquals\n ? ts.Diagnostics.An_export_assignment_must_be_at_the_top_level_of_a_file_or_module_declaration\n : ts.Diagnostics.A_default_export_must_be_at_the_top_level_of_a_file_or_module_declaration;\n if (checkGrammarModuleElementContext(node, illegalContextMessage)) {\n // If we hit an export assignment in an illegal context, just bail out to avoid cascading errors.\n return;\n }\n var container = node.parent.kind === 300 /* SourceFile */ ? node.parent : node.parent.parent;\n if (container.kind === 259 /* ModuleDeclaration */ && !ts.isAmbientModule(container)) {\n if (node.isExportEquals) {\n error(node, ts.Diagnostics.An_export_assignment_cannot_be_used_in_a_namespace);\n }\n else {\n error(node, ts.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);\n }\n return;\n }\n // Grammar checking\n if (!checkGrammarDecoratorsAndModifiers(node) && ts.hasEffectiveModifiers(node)) {\n grammarErrorOnFirstToken(node, ts.Diagnostics.An_export_assignment_cannot_have_modifiers);\n }\n if (node.expression.kind === 79 /* Identifier */) {\n var id = node.expression;\n var sym = resolveEntityName(id, 67108863 /* All */, /*ignoreErrors*/ true, /*dontResolveAlias*/ true, node);\n if (sym) {\n markAliasReferenced(sym, id);\n // If not a value, we're interpreting the identifier as a type export, along the lines of (`export { Id as default }`)\n var target = sym.flags & 2097152 /* Alias */ ? resolveAlias(sym) : sym;\n if (target === unknownSymbol || target.flags & 111551 /* Value */) {\n // However if it is a value, we need to check it's being used correctly\n checkExpressionCached(node.expression);\n }\n }\n else {\n checkExpressionCached(node.expression); // doesn't resolve, check as expression to mark as error\n }\n if (ts.getEmitDeclarations(compilerOptions)) {\n collectLinkedAliases(node.expression, /*setVisibility*/ true);\n }\n }\n else {\n checkExpressionCached(node.expression);\n }\n checkExternalModuleExports(container);\n if ((node.flags & 8388608 /* Ambient */) && !ts.isEntityNameExpression(node.expression)) {\n grammarErrorOnNode(node.expression, ts.Diagnostics.The_expression_of_an_export_assignment_must_be_an_identifier_or_qualified_name_in_an_ambient_context);\n }\n if (node.isExportEquals && !(node.flags & 8388608 /* Ambient */)) {\n if (moduleKind >= ts.ModuleKind.ES2015) {\n // export assignment is not supported in es6 modules\n grammarErrorOnNode(node, ts.Diagnostics.Export_assignment_cannot_be_used_when_targeting_ECMAScript_modules_Consider_using_export_default_or_another_module_format_instead);\n }\n else if (moduleKind === ts.ModuleKind.System) {\n // system modules does not support export assignment\n grammarErrorOnNode(node, ts.Diagnostics.Export_assignment_is_not_supported_when_module_flag_is_system);\n }\n }\n }\n function hasExportedMembers(moduleSymbol) {\n return ts.forEachEntry(moduleSymbol.exports, function (_, id) { return id !== \"export=\"; });\n }\n function checkExternalModuleExports(node) {\n var moduleSymbol = getSymbolOfNode(node);\n var links = getSymbolLinks(moduleSymbol);\n if (!links.exportsChecked) {\n var exportEqualsSymbol = moduleSymbol.exports.get(\"export=\");\n if (exportEqualsSymbol && hasExportedMembers(moduleSymbol)) {\n var declaration = getDeclarationOfAliasSymbol(exportEqualsSymbol) || exportEqualsSymbol.valueDeclaration;\n if (declaration && !isTopLevelInExternalModuleAugmentation(declaration) && !ts.isInJSFile(declaration)) {\n error(declaration, ts.Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements);\n }\n }\n // Checks for export * conflicts\n var exports_2 = getExportsOfModule(moduleSymbol);\n if (exports_2) {\n exports_2.forEach(function (_a, id) {\n var declarations = _a.declarations, flags = _a.flags;\n if (id === \"__export\") {\n return;\n }\n // ECMA262: 15.2.1.1 It is a Syntax Error if the ExportedNames of ModuleItemList contains any duplicate entries.\n // (TS Exceptions: namespaces, function overloads, enums, and interfaces)\n if (flags & (1920 /* Namespace */ | 64 /* Interface */ | 384 /* Enum */)) {\n return;\n }\n var exportedDeclarationsCount = ts.countWhere(declarations, isNotOverloadAndNotAccessor);\n if (flags & 524288 /* TypeAlias */ && exportedDeclarationsCount <= 2) {\n // it is legal to merge type alias with other values\n // so count should be either 1 (just type alias) or 2 (type alias + merged value)\n return;\n }\n if (exportedDeclarationsCount > 1) {\n if (!isDuplicatedCommonJSExport(declarations)) {\n for (var _i = 0, _b = declarations; _i < _b.length; _i++) {\n var declaration = _b[_i];\n if (isNotOverload(declaration)) {\n diagnostics.add(ts.createDiagnosticForNode(declaration, ts.Diagnostics.Cannot_redeclare_exported_variable_0, ts.unescapeLeadingUnderscores(id)));\n }\n }\n }\n }\n });\n }\n links.exportsChecked = true;\n }\n }\n function isDuplicatedCommonJSExport(declarations) {\n return declarations\n && declarations.length > 1\n && declarations.every(function (d) { return ts.isInJSFile(d) && ts.isAccessExpression(d) && (ts.isExportsIdentifier(d.expression) || ts.isModuleExportsAccessExpression(d.expression)); });\n }\n function checkSourceElement(node) {\n if (node) {\n var saveCurrentNode = currentNode;\n currentNode = node;\n instantiationCount = 0;\n checkSourceElementWorker(node);\n currentNode = saveCurrentNode;\n }\n }\n function checkSourceElementWorker(node) {\n if (ts.isInJSFile(node)) {\n ts.forEach(node.jsDoc, function (_a) {\n var tags = _a.tags;\n return ts.forEach(tags, checkSourceElement);\n });\n }\n var kind = node.kind;\n if (cancellationToken) {\n // Only bother checking on a few construct kinds. We don't want to be excessively\n // hitting the cancellation token on every node we check.\n switch (kind) {\n case 259 /* ModuleDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 254 /* FunctionDeclaration */:\n cancellationToken.throwIfCancellationRequested();\n }\n }\n if (kind >= 235 /* FirstStatement */ && kind <= 251 /* LastStatement */ && node.flowNode && !isReachableFlowNode(node.flowNode)) {\n errorOrSuggestion(compilerOptions.allowUnreachableCode === false, node, ts.Diagnostics.Unreachable_code_detected);\n }\n switch (kind) {\n case 161 /* TypeParameter */:\n return checkTypeParameter(node);\n case 162 /* Parameter */:\n return checkParameter(node);\n case 165 /* PropertyDeclaration */:\n return checkPropertyDeclaration(node);\n case 164 /* PropertySignature */:\n return checkPropertySignature(node);\n case 178 /* ConstructorType */:\n case 177 /* FunctionType */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 174 /* IndexSignature */:\n return checkSignatureDeclaration(node);\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n return checkMethodDeclaration(node);\n case 168 /* ClassStaticBlockDeclaration */:\n return checkClassStaticBlockDeclaration(node);\n case 169 /* Constructor */:\n return checkConstructorDeclaration(node);\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return checkAccessorDeclaration(node);\n case 176 /* TypeReference */:\n return checkTypeReferenceNode(node);\n case 175 /* TypePredicate */:\n return checkTypePredicate(node);\n case 179 /* TypeQuery */:\n return checkTypeQuery(node);\n case 180 /* TypeLiteral */:\n return checkTypeLiteral(node);\n case 181 /* ArrayType */:\n return checkArrayType(node);\n case 182 /* TupleType */:\n return checkTupleType(node);\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n return checkUnionOrIntersectionType(node);\n case 189 /* ParenthesizedType */:\n case 183 /* OptionalType */:\n case 184 /* RestType */:\n return checkSourceElement(node.type);\n case 190 /* ThisType */:\n return checkThisType(node);\n case 191 /* TypeOperator */:\n return checkTypeOperator(node);\n case 187 /* ConditionalType */:\n return checkConditionalType(node);\n case 188 /* InferType */:\n return checkInferType(node);\n case 196 /* TemplateLiteralType */:\n return checkTemplateLiteralType(node);\n case 198 /* ImportType */:\n return checkImportType(node);\n case 195 /* NamedTupleMember */:\n return checkNamedTupleMember(node);\n case 323 /* JSDocAugmentsTag */:\n return checkJSDocAugmentsTag(node);\n case 324 /* JSDocImplementsTag */:\n return checkJSDocImplementsTag(node);\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 334 /* JSDocEnumTag */:\n return checkJSDocTypeAliasTag(node);\n case 339 /* JSDocTemplateTag */:\n return checkJSDocTemplateTag(node);\n case 338 /* JSDocTypeTag */:\n return checkJSDocTypeTag(node);\n case 335 /* JSDocParameterTag */:\n return checkJSDocParameterTag(node);\n case 342 /* JSDocPropertyTag */:\n return checkJSDocPropertyTag(node);\n case 312 /* JSDocFunctionType */:\n checkJSDocFunctionType(node);\n // falls through\n case 310 /* JSDocNonNullableType */:\n case 309 /* JSDocNullableType */:\n case 307 /* JSDocAllType */:\n case 308 /* JSDocUnknownType */:\n case 317 /* JSDocTypeLiteral */:\n checkJSDocTypeIsInJsFile(node);\n ts.forEachChild(node, checkSourceElement);\n return;\n case 313 /* JSDocVariadicType */:\n checkJSDocVariadicType(node);\n return;\n case 304 /* JSDocTypeExpression */:\n return checkSourceElement(node.type);\n case 192 /* IndexedAccessType */:\n return checkIndexedAccessType(node);\n case 193 /* MappedType */:\n return checkMappedType(node);\n case 254 /* FunctionDeclaration */:\n return checkFunctionDeclaration(node);\n case 233 /* Block */:\n case 260 /* ModuleBlock */:\n return checkBlock(node);\n case 235 /* VariableStatement */:\n return checkVariableStatement(node);\n case 236 /* ExpressionStatement */:\n return checkExpressionStatement(node);\n case 237 /* IfStatement */:\n return checkIfStatement(node);\n case 238 /* DoStatement */:\n return checkDoStatement(node);\n case 239 /* WhileStatement */:\n return checkWhileStatement(node);\n case 240 /* ForStatement */:\n return checkForStatement(node);\n case 241 /* ForInStatement */:\n return checkForInStatement(node);\n case 242 /* ForOfStatement */:\n return checkForOfStatement(node);\n case 243 /* ContinueStatement */:\n case 244 /* BreakStatement */:\n return checkBreakOrContinueStatement(node);\n case 245 /* ReturnStatement */:\n return checkReturnStatement(node);\n case 246 /* WithStatement */:\n return checkWithStatement(node);\n case 247 /* SwitchStatement */:\n return checkSwitchStatement(node);\n case 248 /* LabeledStatement */:\n return checkLabeledStatement(node);\n case 249 /* ThrowStatement */:\n return checkThrowStatement(node);\n case 250 /* TryStatement */:\n return checkTryStatement(node);\n case 252 /* VariableDeclaration */:\n return checkVariableDeclaration(node);\n case 201 /* BindingElement */:\n return checkBindingElement(node);\n case 255 /* ClassDeclaration */:\n return checkClassDeclaration(node);\n case 256 /* InterfaceDeclaration */:\n return checkInterfaceDeclaration(node);\n case 257 /* TypeAliasDeclaration */:\n return checkTypeAliasDeclaration(node);\n case 258 /* EnumDeclaration */:\n return checkEnumDeclaration(node);\n case 259 /* ModuleDeclaration */:\n return checkModuleDeclaration(node);\n case 264 /* ImportDeclaration */:\n return checkImportDeclaration(node);\n case 263 /* ImportEqualsDeclaration */:\n return checkImportEqualsDeclaration(node);\n case 270 /* ExportDeclaration */:\n return checkExportDeclaration(node);\n case 269 /* ExportAssignment */:\n return checkExportAssignment(node);\n case 234 /* EmptyStatement */:\n case 251 /* DebuggerStatement */:\n checkGrammarStatementInAmbientContext(node);\n return;\n case 274 /* MissingDeclaration */:\n return checkMissingDeclaration(node);\n }\n }\n function checkJSDocTypeIsInJsFile(node) {\n if (!ts.isInJSFile(node)) {\n grammarErrorOnNode(node, ts.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments);\n }\n }\n function checkJSDocVariadicType(node) {\n checkJSDocTypeIsInJsFile(node);\n checkSourceElement(node.type);\n // Only legal location is in the *last* parameter tag or last parameter of a JSDoc function.\n var parent = node.parent;\n if (ts.isParameter(parent) && ts.isJSDocFunctionType(parent.parent)) {\n if (ts.last(parent.parent.parameters) !== parent) {\n error(node, ts.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);\n }\n return;\n }\n if (!ts.isJSDocTypeExpression(parent)) {\n error(node, ts.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);\n }\n var paramTag = node.parent.parent;\n if (!ts.isJSDocParameterTag(paramTag)) {\n error(node, ts.Diagnostics.JSDoc_may_only_appear_in_the_last_parameter_of_a_signature);\n return;\n }\n var param = ts.getParameterSymbolFromJSDoc(paramTag);\n if (!param) {\n // We will error in `checkJSDocParameterTag`.\n return;\n }\n var host = ts.getHostSignatureFromJSDoc(paramTag);\n if (!host || ts.last(host.parameters).symbol !== param) {\n error(node, ts.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);\n }\n }\n function getTypeFromJSDocVariadicType(node) {\n var type = getTypeFromTypeNode(node.type);\n var parent = node.parent;\n var paramTag = node.parent.parent;\n if (ts.isJSDocTypeExpression(node.parent) && ts.isJSDocParameterTag(paramTag)) {\n // Else we will add a diagnostic, see `checkJSDocVariadicType`.\n var host_1 = ts.getHostSignatureFromJSDoc(paramTag);\n var isCallbackTag = ts.isJSDocCallbackTag(paramTag.parent.parent);\n if (host_1 || isCallbackTag) {\n /*\n Only return an array type if the corresponding parameter is marked as a rest parameter, or if there are no parameters.\n So in the following situation we will not create an array type:\n /** @param {...number} a * /\n function f(a) {}\n Because `a` will just be of type `number | undefined`. A synthetic `...args` will also be added, which *will* get an array type.\n */\n var lastParamDeclaration = isCallbackTag\n ? ts.lastOrUndefined(paramTag.parent.parent.typeExpression.parameters)\n : ts.lastOrUndefined(host_1.parameters);\n var symbol = ts.getParameterSymbolFromJSDoc(paramTag);\n if (!lastParamDeclaration ||\n symbol && lastParamDeclaration.symbol === symbol && ts.isRestParameter(lastParamDeclaration)) {\n return createArrayType(type);\n }\n }\n }\n if (ts.isParameter(parent) && ts.isJSDocFunctionType(parent.parent)) {\n return createArrayType(type);\n }\n return addOptionality(type);\n }\n // Function and class expression bodies are checked after all statements in the enclosing body. This is\n // to ensure constructs like the following are permitted:\n // const foo = function () {\n // const s = foo();\n // return \"hello\";\n // }\n // Here, performing a full type check of the body of the function expression whilst in the process of\n // determining the type of foo would cause foo to be given type any because of the recursive reference.\n // Delaying the type check of the body ensures foo has been assigned a type.\n function checkNodeDeferred(node) {\n var enclosingFile = ts.getSourceFileOfNode(node);\n var links = getNodeLinks(enclosingFile);\n if (!(links.flags & 1 /* TypeChecked */)) {\n links.deferredNodes = links.deferredNodes || new ts.Map();\n var id = getNodeId(node);\n links.deferredNodes.set(id, node);\n }\n }\n function checkDeferredNodes(context) {\n var links = getNodeLinks(context);\n if (links.deferredNodes) {\n links.deferredNodes.forEach(checkDeferredNode);\n }\n }\n function checkDeferredNode(node) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"check\" /* Check */, \"checkDeferredNode\", { kind: node.kind, pos: node.pos, end: node.end });\n var saveCurrentNode = currentNode;\n currentNode = node;\n instantiationCount = 0;\n switch (node.kind) {\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 208 /* TaggedTemplateExpression */:\n case 163 /* Decorator */:\n case 278 /* JsxOpeningElement */:\n // These node kinds are deferred checked when overload resolution fails\n // To save on work, we ensure the arguments are checked just once, in\n // a deferred way\n resolveUntypedCall(node);\n break;\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n checkFunctionExpressionOrObjectLiteralMethodDeferred(node);\n break;\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n checkAccessorDeclaration(node);\n break;\n case 224 /* ClassExpression */:\n checkClassExpressionDeferred(node);\n break;\n case 277 /* JsxSelfClosingElement */:\n checkJsxSelfClosingElementDeferred(node);\n break;\n case 276 /* JsxElement */:\n checkJsxElementDeferred(node);\n break;\n }\n currentNode = saveCurrentNode;\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n function checkSourceFile(node) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"check\" /* Check */, \"checkSourceFile\", { path: node.path }, /*separateBeginAndEnd*/ true);\n ts.performance.mark(\"beforeCheck\");\n checkSourceFileWorker(node);\n ts.performance.mark(\"afterCheck\");\n ts.performance.measure(\"Check\", \"beforeCheck\", \"afterCheck\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n function unusedIsError(kind, isAmbient) {\n if (isAmbient) {\n return false;\n }\n switch (kind) {\n case 0 /* Local */:\n return !!compilerOptions.noUnusedLocals;\n case 1 /* Parameter */:\n return !!compilerOptions.noUnusedParameters;\n default:\n return ts.Debug.assertNever(kind);\n }\n }\n function getPotentiallyUnusedIdentifiers(sourceFile) {\n return allPotentiallyUnusedIdentifiers.get(sourceFile.path) || ts.emptyArray;\n }\n // Fully type check a source file and collect the relevant diagnostics.\n function checkSourceFileWorker(node) {\n var links = getNodeLinks(node);\n if (!(links.flags & 1 /* TypeChecked */)) {\n if (ts.skipTypeChecking(node, compilerOptions, host)) {\n return;\n }\n // Grammar checking\n checkGrammarSourceFile(node);\n ts.clear(potentialThisCollisions);\n ts.clear(potentialNewTargetCollisions);\n ts.clear(potentialWeakMapSetCollisions);\n ts.clear(potentialReflectCollisions);\n ts.forEach(node.statements, checkSourceElement);\n checkSourceElement(node.endOfFileToken);\n checkDeferredNodes(node);\n if (ts.isExternalOrCommonJsModule(node)) {\n registerForUnusedIdentifiersCheck(node);\n }\n if (!node.isDeclarationFile && (compilerOptions.noUnusedLocals || compilerOptions.noUnusedParameters)) {\n checkUnusedIdentifiers(getPotentiallyUnusedIdentifiers(node), function (containingNode, kind, diag) {\n if (!ts.containsParseError(containingNode) && unusedIsError(kind, !!(containingNode.flags & 8388608 /* Ambient */))) {\n diagnostics.add(diag);\n }\n });\n }\n if (compilerOptions.importsNotUsedAsValues === 2 /* Error */ &&\n !node.isDeclarationFile &&\n ts.isExternalModule(node)) {\n checkImportsForTypeOnlyConversion(node);\n }\n if (ts.isExternalOrCommonJsModule(node)) {\n checkExternalModuleExports(node);\n }\n if (potentialThisCollisions.length) {\n ts.forEach(potentialThisCollisions, checkIfThisIsCapturedInEnclosingScope);\n ts.clear(potentialThisCollisions);\n }\n if (potentialNewTargetCollisions.length) {\n ts.forEach(potentialNewTargetCollisions, checkIfNewTargetIsCapturedInEnclosingScope);\n ts.clear(potentialNewTargetCollisions);\n }\n if (potentialWeakMapSetCollisions.length) {\n ts.forEach(potentialWeakMapSetCollisions, checkWeakMapSetCollision);\n ts.clear(potentialWeakMapSetCollisions);\n }\n if (potentialReflectCollisions.length) {\n ts.forEach(potentialReflectCollisions, checkReflectCollision);\n ts.clear(potentialReflectCollisions);\n }\n links.flags |= 1 /* TypeChecked */;\n }\n }\n function getDiagnostics(sourceFile, ct) {\n try {\n // Record the cancellation token so it can be checked later on during checkSourceElement.\n // Do this in a finally block so we can ensure that it gets reset back to nothing after\n // this call is done.\n cancellationToken = ct;\n return getDiagnosticsWorker(sourceFile);\n }\n finally {\n cancellationToken = undefined;\n }\n }\n function getDiagnosticsWorker(sourceFile) {\n throwIfNonDiagnosticsProducing();\n if (sourceFile) {\n // Some global diagnostics are deferred until they are needed and\n // may not be reported in the first call to getGlobalDiagnostics.\n // We should catch these changes and report them.\n var previousGlobalDiagnostics = diagnostics.getGlobalDiagnostics();\n var previousGlobalDiagnosticsSize = previousGlobalDiagnostics.length;\n checkSourceFile(sourceFile);\n var semanticDiagnostics = diagnostics.getDiagnostics(sourceFile.fileName);\n var currentGlobalDiagnostics = diagnostics.getGlobalDiagnostics();\n if (currentGlobalDiagnostics !== previousGlobalDiagnostics) {\n // If the arrays are not the same reference, new diagnostics were added.\n var deferredGlobalDiagnostics = ts.relativeComplement(previousGlobalDiagnostics, currentGlobalDiagnostics, ts.compareDiagnostics);\n return ts.concatenate(deferredGlobalDiagnostics, semanticDiagnostics);\n }\n else if (previousGlobalDiagnosticsSize === 0 && currentGlobalDiagnostics.length > 0) {\n // If the arrays are the same reference, but the length has changed, a single\n // new diagnostic was added as DiagnosticCollection attempts to reuse the\n // same array.\n return ts.concatenate(currentGlobalDiagnostics, semanticDiagnostics);\n }\n return semanticDiagnostics;\n }\n // Global diagnostics are always added when a file is not provided to\n // getDiagnostics\n ts.forEach(host.getSourceFiles(), checkSourceFile);\n return diagnostics.getDiagnostics();\n }\n function getGlobalDiagnostics() {\n throwIfNonDiagnosticsProducing();\n return diagnostics.getGlobalDiagnostics();\n }\n function throwIfNonDiagnosticsProducing() {\n if (!produceDiagnostics) {\n throw new Error(\"Trying to get diagnostics from a type checker that does not produce them.\");\n }\n }\n // Language service support\n function getSymbolsInScope(location, meaning) {\n if (location.flags & 16777216 /* InWithStatement */) {\n // We cannot answer semantic questions within a with block, do not proceed any further\n return [];\n }\n var symbols = ts.createSymbolTable();\n var isStaticSymbol = false;\n populateSymbols();\n symbols.delete(\"this\" /* This */); // Not a symbol, a keyword\n return symbolsToArray(symbols);\n function populateSymbols() {\n while (location) {\n if (location.locals && !isGlobalSourceFile(location)) {\n copySymbols(location.locals, meaning);\n }\n switch (location.kind) {\n case 300 /* SourceFile */:\n if (!ts.isExternalModule(location))\n break;\n // falls through\n case 259 /* ModuleDeclaration */:\n copyLocallyVisibleExportSymbols(getSymbolOfNode(location).exports, meaning & 2623475 /* ModuleMember */);\n break;\n case 258 /* EnumDeclaration */:\n copySymbols(getSymbolOfNode(location).exports, meaning & 8 /* EnumMember */);\n break;\n case 224 /* ClassExpression */:\n var className = location.name;\n if (className) {\n copySymbol(location.symbol, meaning);\n }\n // this fall-through is necessary because we would like to handle\n // type parameter inside class expression similar to how we handle it in classDeclaration and interface Declaration.\n // falls through\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n // If we didn't come from static member of class or interface,\n // add the type parameters into the symbol table\n // (type parameters of classDeclaration/classExpression and interface are in member property of the symbol.\n // Note: that the memberFlags come from previous iteration.\n if (!isStaticSymbol) {\n copySymbols(getMembersOfSymbol(getSymbolOfNode(location)), meaning & 788968 /* Type */);\n }\n break;\n case 211 /* FunctionExpression */:\n var funcName = location.name;\n if (funcName) {\n copySymbol(location.symbol, meaning);\n }\n break;\n }\n if (ts.introducesArgumentsExoticObject(location)) {\n copySymbol(argumentsSymbol, meaning);\n }\n isStaticSymbol = ts.isStatic(location);\n location = location.parent;\n }\n copySymbols(globals, meaning);\n }\n /**\n * Copy the given symbol into symbol tables if the symbol has the given meaning\n * and it doesn't already existed in the symbol table\n * @param key a key for storing in symbol table; if undefined, use symbol.name\n * @param symbol the symbol to be added into symbol table\n * @param meaning meaning of symbol to filter by before adding to symbol table\n */\n function copySymbol(symbol, meaning) {\n if (ts.getCombinedLocalAndExportSymbolFlags(symbol) & meaning) {\n var id = symbol.escapedName;\n // We will copy all symbol regardless of its reserved name because\n // symbolsToArray will check whether the key is a reserved name and\n // it will not copy symbol with reserved name to the array\n if (!symbols.has(id)) {\n symbols.set(id, symbol);\n }\n }\n }\n function copySymbols(source, meaning) {\n if (meaning) {\n source.forEach(function (symbol) {\n copySymbol(symbol, meaning);\n });\n }\n }\n function copyLocallyVisibleExportSymbols(source, meaning) {\n if (meaning) {\n source.forEach(function (symbol) {\n // Similar condition as in `resolveNameHelper`\n if (!ts.getDeclarationOfKind(symbol, 273 /* ExportSpecifier */) && !ts.getDeclarationOfKind(symbol, 272 /* NamespaceExport */)) {\n copySymbol(symbol, meaning);\n }\n });\n }\n }\n }\n function isTypeDeclarationName(name) {\n return name.kind === 79 /* Identifier */ &&\n isTypeDeclaration(name.parent) &&\n ts.getNameOfDeclaration(name.parent) === name;\n }\n function isTypeDeclaration(node) {\n switch (node.kind) {\n case 161 /* TypeParameter */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 258 /* EnumDeclaration */:\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 334 /* JSDocEnumTag */:\n return true;\n case 265 /* ImportClause */:\n return node.isTypeOnly;\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n return node.parent.parent.isTypeOnly;\n default:\n return false;\n }\n }\n // True if the given identifier is part of a type reference\n function isTypeReferenceIdentifier(node) {\n while (node.parent.kind === 159 /* QualifiedName */) {\n node = node.parent;\n }\n return node.parent.kind === 176 /* TypeReference */;\n }\n function isHeritageClauseElementIdentifier(node) {\n while (node.parent.kind === 204 /* PropertyAccessExpression */) {\n node = node.parent;\n }\n return node.parent.kind === 226 /* ExpressionWithTypeArguments */;\n }\n function forEachEnclosingClass(node, callback) {\n var result;\n while (true) {\n node = ts.getContainingClass(node);\n if (!node)\n break;\n if (result = callback(node))\n break;\n }\n return result;\n }\n function isNodeUsedDuringClassInitialization(node) {\n return !!ts.findAncestor(node, function (element) {\n if (ts.isConstructorDeclaration(element) && ts.nodeIsPresent(element.body) || ts.isPropertyDeclaration(element)) {\n return true;\n }\n else if (ts.isClassLike(element) || ts.isFunctionLikeDeclaration(element)) {\n return \"quit\";\n }\n return false;\n });\n }\n function isNodeWithinClass(node, classDeclaration) {\n return !!forEachEnclosingClass(node, function (n) { return n === classDeclaration; });\n }\n function getLeftSideOfImportEqualsOrExportAssignment(nodeOnRightSide) {\n while (nodeOnRightSide.parent.kind === 159 /* QualifiedName */) {\n nodeOnRightSide = nodeOnRightSide.parent;\n }\n if (nodeOnRightSide.parent.kind === 263 /* ImportEqualsDeclaration */) {\n return nodeOnRightSide.parent.moduleReference === nodeOnRightSide ? nodeOnRightSide.parent : undefined;\n }\n if (nodeOnRightSide.parent.kind === 269 /* ExportAssignment */) {\n return nodeOnRightSide.parent.expression === nodeOnRightSide ? nodeOnRightSide.parent : undefined;\n }\n return undefined;\n }\n function isInRightSideOfImportOrExportAssignment(node) {\n return getLeftSideOfImportEqualsOrExportAssignment(node) !== undefined;\n }\n function getSpecialPropertyAssignmentSymbolFromEntityName(entityName) {\n var specialPropertyAssignmentKind = ts.getAssignmentDeclarationKind(entityName.parent.parent);\n switch (specialPropertyAssignmentKind) {\n case 1 /* ExportsProperty */:\n case 3 /* PrototypeProperty */:\n return getSymbolOfNode(entityName.parent);\n case 4 /* ThisProperty */:\n case 2 /* ModuleExports */:\n case 5 /* Property */:\n return getSymbolOfNode(entityName.parent.parent);\n }\n }\n function isImportTypeQualifierPart(node) {\n var parent = node.parent;\n while (ts.isQualifiedName(parent)) {\n node = parent;\n parent = parent.parent;\n }\n if (parent && parent.kind === 198 /* ImportType */ && parent.qualifier === node) {\n return parent;\n }\n return undefined;\n }\n function getSymbolOfNameOrPropertyAccessExpression(name) {\n if (ts.isDeclarationName(name)) {\n return getSymbolOfNode(name.parent);\n }\n if (ts.isInJSFile(name) &&\n name.parent.kind === 204 /* PropertyAccessExpression */ &&\n name.parent === name.parent.parent.left) {\n // Check if this is a special property assignment\n if (!ts.isPrivateIdentifier(name) && !ts.isJSDocMemberName(name)) {\n var specialPropertyAssignmentSymbol = getSpecialPropertyAssignmentSymbolFromEntityName(name);\n if (specialPropertyAssignmentSymbol) {\n return specialPropertyAssignmentSymbol;\n }\n }\n }\n if (name.parent.kind === 269 /* ExportAssignment */ && ts.isEntityNameExpression(name)) {\n // Even an entity name expression that doesn't resolve as an entityname may still typecheck as a property access expression\n var success = resolveEntityName(name, \n /*all meanings*/ 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */, /*ignoreErrors*/ true);\n if (success && success !== unknownSymbol) {\n return success;\n }\n }\n else if (ts.isEntityName(name) && isInRightSideOfImportOrExportAssignment(name)) {\n // Since we already checked for ExportAssignment, this really could only be an Import\n var importEqualsDeclaration = ts.getAncestor(name, 263 /* ImportEqualsDeclaration */);\n ts.Debug.assert(importEqualsDeclaration !== undefined);\n return getSymbolOfPartOfRightHandSideOfImportEquals(name, /*dontResolveAlias*/ true);\n }\n if (ts.isEntityName(name)) {\n var possibleImportNode = isImportTypeQualifierPart(name);\n if (possibleImportNode) {\n getTypeFromTypeNode(possibleImportNode);\n var sym = getNodeLinks(name).resolvedSymbol;\n return sym === unknownSymbol ? undefined : sym;\n }\n }\n while (ts.isRightSideOfQualifiedNameOrPropertyAccessOrJSDocMemberName(name)) {\n name = name.parent;\n }\n if (isHeritageClauseElementIdentifier(name)) {\n var meaning = 0 /* None */;\n // In an interface or class, we're definitely interested in a type.\n if (name.parent.kind === 226 /* ExpressionWithTypeArguments */) {\n meaning = 788968 /* Type */;\n // In a class 'extends' clause we are also looking for a value.\n if (ts.isExpressionWithTypeArgumentsInClassExtendsClause(name.parent)) {\n meaning |= 111551 /* Value */;\n }\n }\n else {\n meaning = 1920 /* Namespace */;\n }\n meaning |= 2097152 /* Alias */;\n var entityNameSymbol = ts.isEntityNameExpression(name) ? resolveEntityName(name, meaning) : undefined;\n if (entityNameSymbol) {\n return entityNameSymbol;\n }\n }\n if (name.parent.kind === 335 /* JSDocParameterTag */) {\n return ts.getParameterSymbolFromJSDoc(name.parent);\n }\n if (name.parent.kind === 161 /* TypeParameter */ && name.parent.parent.kind === 339 /* JSDocTemplateTag */) {\n ts.Debug.assert(!ts.isInJSFile(name)); // Otherwise `isDeclarationName` would have been true.\n var typeParameter = ts.getTypeParameterFromJsDoc(name.parent);\n return typeParameter && typeParameter.symbol;\n }\n if (ts.isExpressionNode(name)) {\n if (ts.nodeIsMissing(name)) {\n // Missing entity name.\n return undefined;\n }\n var isJSDoc_1 = ts.findAncestor(name, ts.or(ts.isJSDocLinkLike, ts.isJSDocNameReference, ts.isJSDocMemberName));\n var meaning = isJSDoc_1 ? 788968 /* Type */ | 1920 /* Namespace */ | 111551 /* Value */ : 111551 /* Value */;\n if (name.kind === 79 /* Identifier */) {\n if (ts.isJSXTagName(name) && isJsxIntrinsicIdentifier(name)) {\n var symbol = getIntrinsicTagSymbol(name.parent);\n return symbol === unknownSymbol ? undefined : symbol;\n }\n var result = resolveEntityName(name, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ !isJSDoc_1, ts.getHostSignatureFromJSDoc(name));\n if (!result && isJSDoc_1) {\n var container = ts.findAncestor(name, ts.or(ts.isClassLike, ts.isInterfaceDeclaration));\n if (container) {\n return resolveJSDocMemberName(name, getSymbolOfNode(container));\n }\n }\n return result;\n }\n else if (name.kind === 204 /* PropertyAccessExpression */ || name.kind === 159 /* QualifiedName */) {\n var links = getNodeLinks(name);\n if (links.resolvedSymbol) {\n return links.resolvedSymbol;\n }\n if (name.kind === 204 /* PropertyAccessExpression */) {\n checkPropertyAccessExpression(name, 0 /* Normal */);\n }\n else {\n checkQualifiedName(name, 0 /* Normal */);\n }\n if (!links.resolvedSymbol && isJSDoc_1 && ts.isQualifiedName(name)) {\n return resolveJSDocMemberName(name);\n }\n return links.resolvedSymbol;\n }\n else if (ts.isJSDocMemberName(name)) {\n return resolveJSDocMemberName(name);\n }\n }\n else if (isTypeReferenceIdentifier(name)) {\n var meaning = name.parent.kind === 176 /* TypeReference */ ? 788968 /* Type */ : 1920 /* Namespace */;\n return resolveEntityName(name, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ true);\n }\n if (name.parent.kind === 175 /* TypePredicate */) {\n return resolveEntityName(name, /*meaning*/ 1 /* FunctionScopedVariable */);\n }\n return undefined;\n }\n /**\n * Recursively resolve entity names and jsdoc instance references:\n * 1. K#m as K.prototype.m for a class (or other value) K\n * 2. K.m as K.prototype.m\n * 3. I.m as I.m for a type I, or any other I.m that fails to resolve in (1) or (2)\n *\n * For unqualified names, a container K may be provided as a second argument.\n */\n function resolveJSDocMemberName(name, container) {\n if (ts.isEntityName(name)) {\n // resolve static values first\n var meaning = 788968 /* Type */ | 1920 /* Namespace */ | 111551 /* Value */;\n var symbol = resolveEntityName(name, meaning, /*ignoreErrors*/ false, /*dontResolveAlias*/ true, ts.getHostSignatureFromJSDoc(name));\n if (!symbol && ts.isIdentifier(name) && container) {\n symbol = getMergedSymbol(getSymbol(getExportsOfSymbol(container), name.escapedText, meaning));\n }\n if (symbol) {\n return symbol;\n }\n }\n var left = ts.isIdentifier(name) ? container : resolveJSDocMemberName(name.left);\n var right = ts.isIdentifier(name) ? name.escapedText : name.right.escapedText;\n if (left) {\n var proto = left.flags & 111551 /* Value */ && getPropertyOfType(getTypeOfSymbol(left), \"prototype\");\n var t = proto ? getTypeOfSymbol(proto) : getDeclaredTypeOfSymbol(left);\n return getPropertyOfType(t, right);\n }\n }\n function getSymbolAtLocation(node, ignoreErrors) {\n if (node.kind === 300 /* SourceFile */) {\n return ts.isExternalModule(node) ? getMergedSymbol(node.symbol) : undefined;\n }\n var parent = node.parent;\n var grandParent = parent.parent;\n if (node.flags & 16777216 /* InWithStatement */) {\n // We cannot answer semantic questions within a with block, do not proceed any further\n return undefined;\n }\n if (isDeclarationNameOrImportPropertyName(node)) {\n // This is a declaration, call getSymbolOfNode\n var parentSymbol = getSymbolOfNode(parent);\n return ts.isImportOrExportSpecifier(node.parent) && node.parent.propertyName === node\n ? getImmediateAliasedSymbol(parentSymbol)\n : parentSymbol;\n }\n else if (ts.isLiteralComputedPropertyDeclarationName(node)) {\n return getSymbolOfNode(parent.parent);\n }\n if (node.kind === 79 /* Identifier */) {\n if (isInRightSideOfImportOrExportAssignment(node)) {\n return getSymbolOfNameOrPropertyAccessExpression(node);\n }\n else if (parent.kind === 201 /* BindingElement */ &&\n grandParent.kind === 199 /* ObjectBindingPattern */ &&\n node === parent.propertyName) {\n var typeOfPattern = getTypeOfNode(grandParent);\n var propertyDeclaration = getPropertyOfType(typeOfPattern, node.escapedText);\n if (propertyDeclaration) {\n return propertyDeclaration;\n }\n }\n else if (ts.isMetaProperty(parent)) {\n var parentType = getTypeOfNode(parent);\n var propertyDeclaration = getPropertyOfType(parentType, node.escapedText);\n if (propertyDeclaration) {\n return propertyDeclaration;\n }\n if (parent.keywordToken === 103 /* NewKeyword */) {\n return checkNewTargetMetaProperty(parent).symbol;\n }\n }\n }\n switch (node.kind) {\n case 79 /* Identifier */:\n case 80 /* PrivateIdentifier */:\n case 204 /* PropertyAccessExpression */:\n case 159 /* QualifiedName */:\n return getSymbolOfNameOrPropertyAccessExpression(node);\n case 108 /* ThisKeyword */:\n var container = ts.getThisContainer(node, /*includeArrowFunctions*/ false);\n if (ts.isFunctionLike(container)) {\n var sig = getSignatureFromDeclaration(container);\n if (sig.thisParameter) {\n return sig.thisParameter;\n }\n }\n if (ts.isInExpressionContext(node)) {\n return checkExpression(node).symbol;\n }\n // falls through\n case 190 /* ThisType */:\n return getTypeFromThisTypeNode(node).symbol;\n case 106 /* SuperKeyword */:\n return checkExpression(node).symbol;\n case 133 /* ConstructorKeyword */:\n // constructor keyword for an overload, should take us to the definition if it exist\n var constructorDeclaration = node.parent;\n if (constructorDeclaration && constructorDeclaration.kind === 169 /* Constructor */) {\n return constructorDeclaration.parent.symbol;\n }\n return undefined;\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n // 1). import x = require(\"./mo/*gotToDefinitionHere*/d\")\n // 2). External module name in an import declaration\n // 3). Dynamic import call or require in javascript\n // 4). type A = import(\"./f/*gotToDefinitionHere*/oo\")\n if ((ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) && ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node) ||\n ((node.parent.kind === 264 /* ImportDeclaration */ || node.parent.kind === 270 /* ExportDeclaration */) && node.parent.moduleSpecifier === node) ||\n ((ts.isInJSFile(node) && ts.isRequireCall(node.parent, /*checkArgumentIsStringLiteralLike*/ false)) || ts.isImportCall(node.parent)) ||\n (ts.isLiteralTypeNode(node.parent) && ts.isLiteralImportTypeNode(node.parent.parent) && node.parent.parent.argument === node.parent)) {\n return resolveExternalModuleName(node, node, ignoreErrors);\n }\n if (ts.isCallExpression(parent) && ts.isBindableObjectDefinePropertyCall(parent) && parent.arguments[1] === node) {\n return getSymbolOfNode(parent);\n }\n // falls through\n case 8 /* NumericLiteral */:\n // index access\n var objectType = ts.isElementAccessExpression(parent)\n ? parent.argumentExpression === node ? getTypeOfExpression(parent.expression) : undefined\n : ts.isLiteralTypeNode(parent) && ts.isIndexedAccessTypeNode(grandParent)\n ? getTypeFromTypeNode(grandParent.objectType)\n : undefined;\n return objectType && getPropertyOfType(objectType, ts.escapeLeadingUnderscores(node.text));\n case 88 /* DefaultKeyword */:\n case 98 /* FunctionKeyword */:\n case 38 /* EqualsGreaterThanToken */:\n case 84 /* ClassKeyword */:\n return getSymbolOfNode(node.parent);\n case 198 /* ImportType */:\n return ts.isLiteralImportTypeNode(node) ? getSymbolAtLocation(node.argument.literal, ignoreErrors) : undefined;\n case 93 /* ExportKeyword */:\n return ts.isExportAssignment(node.parent) ? ts.Debug.checkDefined(node.parent.symbol) : undefined;\n case 100 /* ImportKeyword */:\n case 103 /* NewKeyword */:\n return ts.isMetaProperty(node.parent) ? checkMetaPropertyKeyword(node.parent).symbol : undefined;\n case 229 /* MetaProperty */:\n return checkExpression(node).symbol;\n default:\n return undefined;\n }\n }\n function getIndexInfosAtLocation(node) {\n if (ts.isIdentifier(node) && ts.isPropertyAccessExpression(node.parent) && node.parent.name === node) {\n var keyType_1 = getLiteralTypeFromPropertyName(node);\n var objectType = getTypeOfExpression(node.parent.expression);\n var objectTypes = objectType.flags & 1048576 /* Union */ ? objectType.types : [objectType];\n return ts.flatMap(objectTypes, function (t) { return ts.filter(getIndexInfosOfType(t), function (info) { return isApplicableIndexType(keyType_1, info.keyType); }); });\n }\n return undefined;\n }\n function getShorthandAssignmentValueSymbol(location) {\n if (location && location.kind === 292 /* ShorthandPropertyAssignment */) {\n return resolveEntityName(location.name, 111551 /* Value */ | 2097152 /* Alias */);\n }\n return undefined;\n }\n /** Returns the target of an export specifier without following aliases */\n function getExportSpecifierLocalTargetSymbol(node) {\n if (ts.isExportSpecifier(node)) {\n return node.parent.parent.moduleSpecifier ?\n getExternalModuleMember(node.parent.parent, node) :\n resolveEntityName(node.propertyName || node.name, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */);\n }\n else {\n return resolveEntityName(node, 111551 /* Value */ | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */);\n }\n }\n function getTypeOfNode(node) {\n if (ts.isSourceFile(node) && !ts.isExternalModule(node)) {\n return errorType;\n }\n if (node.flags & 16777216 /* InWithStatement */) {\n // We cannot answer semantic questions within a with block, do not proceed any further\n return errorType;\n }\n var classDecl = ts.tryGetClassImplementingOrExtendingExpressionWithTypeArguments(node);\n var classType = classDecl && getDeclaredTypeOfClassOrInterface(getSymbolOfNode(classDecl.class));\n if (ts.isPartOfTypeNode(node)) {\n var typeFromTypeNode = getTypeFromTypeNode(node);\n return classType ? getTypeWithThisArgument(typeFromTypeNode, classType.thisType) : typeFromTypeNode;\n }\n if (ts.isExpressionNode(node)) {\n return getRegularTypeOfExpression(node);\n }\n if (classType && !classDecl.isImplements) {\n // A SyntaxKind.ExpressionWithTypeArguments is considered a type node, except when it occurs in the\n // extends clause of a class. We handle that case here.\n var baseType = ts.firstOrUndefined(getBaseTypes(classType));\n return baseType ? getTypeWithThisArgument(baseType, classType.thisType) : errorType;\n }\n if (isTypeDeclaration(node)) {\n // In this case, we call getSymbolOfNode instead of getSymbolAtLocation because it is a declaration\n var symbol = getSymbolOfNode(node);\n return getDeclaredTypeOfSymbol(symbol);\n }\n if (isTypeDeclarationName(node)) {\n var symbol = getSymbolAtLocation(node);\n return symbol ? getDeclaredTypeOfSymbol(symbol) : errorType;\n }\n if (ts.isDeclaration(node)) {\n // In this case, we call getSymbolOfNode instead of getSymbolAtLocation because it is a declaration\n var symbol = getSymbolOfNode(node);\n return getTypeOfSymbol(symbol);\n }\n if (isDeclarationNameOrImportPropertyName(node)) {\n var symbol = getSymbolAtLocation(node);\n if (symbol) {\n return getTypeOfSymbol(symbol);\n }\n return errorType;\n }\n if (ts.isBindingPattern(node)) {\n return getTypeForVariableLikeDeclaration(node.parent, /*includeOptionality*/ true) || errorType;\n }\n if (isInRightSideOfImportOrExportAssignment(node)) {\n var symbol = getSymbolAtLocation(node);\n if (symbol) {\n var declaredType = getDeclaredTypeOfSymbol(symbol);\n return declaredType !== errorType ? declaredType : getTypeOfSymbol(symbol);\n }\n }\n if (ts.isMetaProperty(node.parent) && node.parent.keywordToken === node.kind) {\n return checkMetaPropertyKeyword(node.parent);\n }\n return errorType;\n }\n // Gets the type of object literal or array literal of destructuring assignment.\n // { a } from\n // for ( { a } of elems) {\n // }\n // [ a ] from\n // [a] = [ some array ...]\n function getTypeOfAssignmentPattern(expr) {\n ts.Debug.assert(expr.kind === 203 /* ObjectLiteralExpression */ || expr.kind === 202 /* ArrayLiteralExpression */);\n // If this is from \"for of\"\n // for ( { a } of elems) {\n // }\n if (expr.parent.kind === 242 /* ForOfStatement */) {\n var iteratedType = checkRightHandSideOfForOf(expr.parent);\n return checkDestructuringAssignment(expr, iteratedType || errorType);\n }\n // If this is from \"for\" initializer\n // for ({a } = elems[0];.....) { }\n if (expr.parent.kind === 219 /* BinaryExpression */) {\n var iteratedType = getTypeOfExpression(expr.parent.right);\n return checkDestructuringAssignment(expr, iteratedType || errorType);\n }\n // If this is from nested object binding pattern\n // for ({ skills: { primary, secondary } } = multiRobot, i = 0; i < 1; i++) {\n if (expr.parent.kind === 291 /* PropertyAssignment */) {\n var node_3 = ts.cast(expr.parent.parent, ts.isObjectLiteralExpression);\n var typeOfParentObjectLiteral = getTypeOfAssignmentPattern(node_3) || errorType;\n var propertyIndex = ts.indexOfNode(node_3.properties, expr.parent);\n return checkObjectLiteralDestructuringPropertyAssignment(node_3, typeOfParentObjectLiteral, propertyIndex);\n }\n // Array literal assignment - array destructuring pattern\n var node = ts.cast(expr.parent, ts.isArrayLiteralExpression);\n // [{ property1: p1, property2 }] = elems;\n var typeOfArrayLiteral = getTypeOfAssignmentPattern(node) || errorType;\n var elementType = checkIteratedTypeOrElementType(65 /* Destructuring */, typeOfArrayLiteral, undefinedType, expr.parent) || errorType;\n return checkArrayLiteralDestructuringElementAssignment(node, typeOfArrayLiteral, node.elements.indexOf(expr), elementType);\n }\n // Gets the property symbol corresponding to the property in destructuring assignment\n // 'property1' from\n // for ( { property1: a } of elems) {\n // }\n // 'property1' at location 'a' from:\n // [a] = [ property1, property2 ]\n function getPropertySymbolOfDestructuringAssignment(location) {\n // Get the type of the object or array literal and then look for property of given name in the type\n var typeOfObjectLiteral = getTypeOfAssignmentPattern(ts.cast(location.parent.parent, ts.isAssignmentPattern));\n return typeOfObjectLiteral && getPropertyOfType(typeOfObjectLiteral, location.escapedText);\n }\n function getRegularTypeOfExpression(expr) {\n if (ts.isRightSideOfQualifiedNameOrPropertyAccess(expr)) {\n expr = expr.parent;\n }\n return getRegularTypeOfLiteralType(getTypeOfExpression(expr));\n }\n /**\n * Gets either the static or instance type of a class element, based on\n * whether the element is declared as \"static\".\n */\n function getParentTypeOfClassElement(node) {\n var classSymbol = getSymbolOfNode(node.parent);\n return ts.isStatic(node)\n ? getTypeOfSymbol(classSymbol)\n : getDeclaredTypeOfSymbol(classSymbol);\n }\n function getClassElementPropertyKeyType(element) {\n var name = element.name;\n switch (name.kind) {\n case 79 /* Identifier */:\n return getStringLiteralType(ts.idText(name));\n case 8 /* NumericLiteral */:\n case 10 /* StringLiteral */:\n return getStringLiteralType(name.text);\n case 160 /* ComputedPropertyName */:\n var nameType = checkComputedPropertyName(name);\n return isTypeAssignableToKind(nameType, 12288 /* ESSymbolLike */) ? nameType : stringType;\n default:\n return ts.Debug.fail(\"Unsupported property name.\");\n }\n }\n // Return the list of properties of the given type, augmented with properties from Function\n // if the type has call or construct signatures\n function getAugmentedPropertiesOfType(type) {\n type = getApparentType(type);\n var propsByName = ts.createSymbolTable(getPropertiesOfType(type));\n var functionType = getSignaturesOfType(type, 0 /* Call */).length ? globalCallableFunctionType :\n getSignaturesOfType(type, 1 /* Construct */).length ? globalNewableFunctionType :\n undefined;\n if (functionType) {\n ts.forEach(getPropertiesOfType(functionType), function (p) {\n if (!propsByName.has(p.escapedName)) {\n propsByName.set(p.escapedName, p);\n }\n });\n }\n return getNamedMembers(propsByName);\n }\n function typeHasCallOrConstructSignatures(type) {\n return ts.typeHasCallOrConstructSignatures(type, checker);\n }\n function getRootSymbols(symbol) {\n var roots = getImmediateRootSymbols(symbol);\n return roots ? ts.flatMap(roots, getRootSymbols) : [symbol];\n }\n function getImmediateRootSymbols(symbol) {\n if (ts.getCheckFlags(symbol) & 6 /* Synthetic */) {\n return ts.mapDefined(getSymbolLinks(symbol).containingType.types, function (type) { return getPropertyOfType(type, symbol.escapedName); });\n }\n else if (symbol.flags & 33554432 /* Transient */) {\n var _a = symbol, leftSpread = _a.leftSpread, rightSpread = _a.rightSpread, syntheticOrigin = _a.syntheticOrigin;\n return leftSpread ? [leftSpread, rightSpread]\n : syntheticOrigin ? [syntheticOrigin]\n : ts.singleElementArray(tryGetAliasTarget(symbol));\n }\n return undefined;\n }\n function tryGetAliasTarget(symbol) {\n var target;\n var next = symbol;\n while (next = getSymbolLinks(next).target) {\n target = next;\n }\n return target;\n }\n // Emitter support\n function isArgumentsLocalBinding(nodeIn) {\n // Note: does not handle isShorthandPropertyAssignment (and probably a few more)\n if (ts.isGeneratedIdentifier(nodeIn))\n return false;\n var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);\n if (!node)\n return false;\n var parent = node.parent;\n if (!parent)\n return false;\n var isPropertyName = ((ts.isPropertyAccessExpression(parent)\n || ts.isPropertyAssignment(parent))\n && parent.name === node);\n return !isPropertyName && getReferencedValueSymbol(node) === argumentsSymbol;\n }\n function moduleExportsSomeValue(moduleReferenceExpression) {\n var moduleSymbol = resolveExternalModuleName(moduleReferenceExpression.parent, moduleReferenceExpression);\n if (!moduleSymbol || ts.isShorthandAmbientModuleSymbol(moduleSymbol)) {\n // If the module is not found or is shorthand, assume that it may export a value.\n return true;\n }\n var hasExportAssignment = hasExportAssignmentSymbol(moduleSymbol);\n // if module has export assignment then 'resolveExternalModuleSymbol' will return resolved symbol for export assignment\n // otherwise it will return moduleSymbol itself\n moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);\n var symbolLinks = getSymbolLinks(moduleSymbol);\n if (symbolLinks.exportsSomeValue === undefined) {\n // for export assignments - check if resolved symbol for RHS is itself a value\n // otherwise - check if at least one export is value\n symbolLinks.exportsSomeValue = hasExportAssignment\n ? !!(moduleSymbol.flags & 111551 /* Value */)\n : ts.forEachEntry(getExportsOfModule(moduleSymbol), isValue);\n }\n return symbolLinks.exportsSomeValue;\n function isValue(s) {\n s = resolveSymbol(s);\n return s && !!(s.flags & 111551 /* Value */);\n }\n }\n function isNameOfModuleOrEnumDeclaration(node) {\n return ts.isModuleOrEnumDeclaration(node.parent) && node === node.parent.name;\n }\n // When resolved as an expression identifier, if the given node references an exported entity, return the declaration\n // node of the exported entity's container. Otherwise, return undefined.\n function getReferencedExportContainer(nodeIn, prefixLocals) {\n var _a;\n var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);\n if (node) {\n // When resolving the export container for the name of a module or enum\n // declaration, we need to start resolution at the declaration's container.\n // Otherwise, we could incorrectly resolve the export container as the\n // declaration if it contains an exported member with the same name.\n var symbol = getReferencedValueSymbol(node, /*startInDeclarationContainer*/ isNameOfModuleOrEnumDeclaration(node));\n if (symbol) {\n if (symbol.flags & 1048576 /* ExportValue */) {\n // If we reference an exported entity within the same module declaration, then whether\n // we prefix depends on the kind of entity. SymbolFlags.ExportHasLocal encompasses all the\n // kinds that we do NOT prefix.\n var exportSymbol = getMergedSymbol(symbol.exportSymbol);\n if (!prefixLocals && exportSymbol.flags & 944 /* ExportHasLocal */ && !(exportSymbol.flags & 3 /* Variable */)) {\n return undefined;\n }\n symbol = exportSymbol;\n }\n var parentSymbol_1 = getParentOfSymbol(symbol);\n if (parentSymbol_1) {\n if (parentSymbol_1.flags & 512 /* ValueModule */ && ((_a = parentSymbol_1.valueDeclaration) === null || _a === void 0 ? void 0 : _a.kind) === 300 /* SourceFile */) {\n var symbolFile = parentSymbol_1.valueDeclaration;\n var referenceFile = ts.getSourceFileOfNode(node);\n // If `node` accesses an export and that export isn't in the same file, then symbol is a namespace export, so return undefined.\n var symbolIsUmdExport = symbolFile !== referenceFile;\n return symbolIsUmdExport ? undefined : symbolFile;\n }\n return ts.findAncestor(node.parent, function (n) { return ts.isModuleOrEnumDeclaration(n) && getSymbolOfNode(n) === parentSymbol_1; });\n }\n }\n }\n }\n // When resolved as an expression identifier, if the given node references an import, return the declaration of\n // that import. Otherwise, return undefined.\n function getReferencedImportDeclaration(nodeIn) {\n if (nodeIn.generatedImportReference) {\n return nodeIn.generatedImportReference;\n }\n var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);\n if (node) {\n var symbol = getReferencedValueSymbol(node);\n // We should only get the declaration of an alias if there isn't a local value\n // declaration for the symbol\n if (isNonLocalAlias(symbol, /*excludes*/ 111551 /* Value */) && !getTypeOnlyAliasDeclaration(symbol)) {\n return getDeclarationOfAliasSymbol(symbol);\n }\n }\n return undefined;\n }\n function isSymbolOfDestructuredElementOfCatchBinding(symbol) {\n return symbol.valueDeclaration\n && ts.isBindingElement(symbol.valueDeclaration)\n && ts.walkUpBindingElementsAndPatterns(symbol.valueDeclaration).parent.kind === 290 /* CatchClause */;\n }\n function isSymbolOfDeclarationWithCollidingName(symbol) {\n if (symbol.flags & 418 /* BlockScoped */ && symbol.valueDeclaration && !ts.isSourceFile(symbol.valueDeclaration)) {\n var links = getSymbolLinks(symbol);\n if (links.isDeclarationWithCollidingName === undefined) {\n var container = ts.getEnclosingBlockScopeContainer(symbol.valueDeclaration);\n if (ts.isStatementWithLocals(container) || isSymbolOfDestructuredElementOfCatchBinding(symbol)) {\n var nodeLinks_1 = getNodeLinks(symbol.valueDeclaration);\n if (resolveName(container.parent, symbol.escapedName, 111551 /* Value */, /*nameNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ false)) {\n // redeclaration - always should be renamed\n links.isDeclarationWithCollidingName = true;\n }\n else if (nodeLinks_1.flags & 262144 /* CapturedBlockScopedBinding */) {\n // binding is captured in the function\n // should be renamed if:\n // - binding is not top level - top level bindings never collide with anything\n // AND\n // - binding is not declared in loop, should be renamed to avoid name reuse across siblings\n // let a, b\n // { let x = 1; a = () => x; }\n // { let x = 100; b = () => x; }\n // console.log(a()); // should print '1'\n // console.log(b()); // should print '100'\n // OR\n // - binding is declared inside loop but not in inside initializer of iteration statement or directly inside loop body\n // * variables from initializer are passed to rewritten loop body as parameters so they are not captured directly\n // * variables that are declared immediately in loop body will become top level variable after loop is rewritten and thus\n // they will not collide with anything\n var isDeclaredInLoop = nodeLinks_1.flags & 524288 /* BlockScopedBindingInLoop */;\n var inLoopInitializer = ts.isIterationStatement(container, /*lookInLabeledStatements*/ false);\n var inLoopBodyBlock = container.kind === 233 /* Block */ && ts.isIterationStatement(container.parent, /*lookInLabeledStatements*/ false);\n links.isDeclarationWithCollidingName = !ts.isBlockScopedContainerTopLevel(container) && (!isDeclaredInLoop || (!inLoopInitializer && !inLoopBodyBlock));\n }\n else {\n links.isDeclarationWithCollidingName = false;\n }\n }\n }\n return links.isDeclarationWithCollidingName;\n }\n return false;\n }\n // When resolved as an expression identifier, if the given node references a nested block scoped entity with\n // a name that either hides an existing name or might hide it when compiled downlevel,\n // return the declaration of that entity. Otherwise, return undefined.\n function getReferencedDeclarationWithCollidingName(nodeIn) {\n if (!ts.isGeneratedIdentifier(nodeIn)) {\n var node = ts.getParseTreeNode(nodeIn, ts.isIdentifier);\n if (node) {\n var symbol = getReferencedValueSymbol(node);\n if (symbol && isSymbolOfDeclarationWithCollidingName(symbol)) {\n return symbol.valueDeclaration;\n }\n }\n }\n return undefined;\n }\n // Return true if the given node is a declaration of a nested block scoped entity with a name that either hides an\n // existing name or might hide a name when compiled downlevel\n function isDeclarationWithCollidingName(nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isDeclaration);\n if (node) {\n var symbol = getSymbolOfNode(node);\n if (symbol) {\n return isSymbolOfDeclarationWithCollidingName(symbol);\n }\n }\n return false;\n }\n function isValueAliasDeclaration(node) {\n switch (node.kind) {\n case 263 /* ImportEqualsDeclaration */:\n return isAliasResolvedToValue(getSymbolOfNode(node) || unknownSymbol);\n case 265 /* ImportClause */:\n case 266 /* NamespaceImport */:\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n var symbol = getSymbolOfNode(node) || unknownSymbol;\n return isAliasResolvedToValue(symbol) && !getTypeOnlyAliasDeclaration(symbol);\n case 270 /* ExportDeclaration */:\n var exportClause = node.exportClause;\n return !!exportClause && (ts.isNamespaceExport(exportClause) ||\n ts.some(exportClause.elements, isValueAliasDeclaration));\n case 269 /* ExportAssignment */:\n return node.expression && node.expression.kind === 79 /* Identifier */ ?\n isAliasResolvedToValue(getSymbolOfNode(node) || unknownSymbol) :\n true;\n }\n return false;\n }\n function isTopLevelValueImportEqualsWithEntityName(nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isImportEqualsDeclaration);\n if (node === undefined || node.parent.kind !== 300 /* SourceFile */ || !ts.isInternalModuleImportEqualsDeclaration(node)) {\n // parent is not source file or it is not reference to internal module\n return false;\n }\n var isValue = isAliasResolvedToValue(getSymbolOfNode(node));\n return isValue && node.moduleReference && !ts.nodeIsMissing(node.moduleReference);\n }\n function isAliasResolvedToValue(symbol) {\n var target = resolveAlias(symbol);\n if (target === unknownSymbol) {\n return true;\n }\n // const enums and modules that contain only const enums are not considered values from the emit perspective\n // unless 'preserveConstEnums' option is set to true\n return !!(target.flags & 111551 /* Value */) &&\n (ts.shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target));\n }\n function isConstEnumOrConstEnumOnlyModule(s) {\n return isConstEnumSymbol(s) || !!s.constEnumOnlyModule;\n }\n function isReferencedAliasDeclaration(node, checkChildren) {\n if (isAliasSymbolDeclaration(node)) {\n var symbol = getSymbolOfNode(node);\n var links = symbol && getSymbolLinks(symbol);\n if (links === null || links === void 0 ? void 0 : links.referenced) {\n return true;\n }\n var target = getSymbolLinks(symbol).target; // TODO: GH#18217\n if (target && ts.getEffectiveModifierFlags(node) & 1 /* Export */ &&\n target.flags & 111551 /* Value */ &&\n (ts.shouldPreserveConstEnums(compilerOptions) || !isConstEnumOrConstEnumOnlyModule(target))) {\n // An `export import ... =` of a value symbol is always considered referenced\n return true;\n }\n }\n if (checkChildren) {\n return !!ts.forEachChild(node, function (node) { return isReferencedAliasDeclaration(node, checkChildren); });\n }\n return false;\n }\n function isImplementationOfOverload(node) {\n if (ts.nodeIsPresent(node.body)) {\n if (ts.isGetAccessor(node) || ts.isSetAccessor(node))\n return false; // Get or set accessors can never be overload implementations, but can have up to 2 signatures\n var symbol = getSymbolOfNode(node);\n var signaturesOfSymbol = getSignaturesOfSymbol(symbol);\n // If this function body corresponds to function with multiple signature, it is implementation of overload\n // e.g.: function foo(a: string): string;\n // function foo(a: number): number;\n // function foo(a: any) { // This is implementation of the overloads\n // return a;\n // }\n return signaturesOfSymbol.length > 1 ||\n // If there is single signature for the symbol, it is overload if that signature isn't coming from the node\n // e.g.: function foo(a: string): string;\n // function foo(a: any) { // This is implementation of the overloads\n // return a;\n // }\n (signaturesOfSymbol.length === 1 && signaturesOfSymbol[0].declaration !== node);\n }\n return false;\n }\n function isRequiredInitializedParameter(parameter) {\n return !!strictNullChecks &&\n !isOptionalParameter(parameter) &&\n !ts.isJSDocParameterTag(parameter) &&\n !!parameter.initializer &&\n !ts.hasSyntacticModifier(parameter, 16476 /* ParameterPropertyModifier */);\n }\n function isOptionalUninitializedParameterProperty(parameter) {\n return strictNullChecks &&\n isOptionalParameter(parameter) &&\n !parameter.initializer &&\n ts.hasSyntacticModifier(parameter, 16476 /* ParameterPropertyModifier */);\n }\n function isOptionalUninitializedParameter(parameter) {\n return !!strictNullChecks &&\n isOptionalParameter(parameter) &&\n !parameter.initializer;\n }\n function isExpandoFunctionDeclaration(node) {\n var declaration = ts.getParseTreeNode(node, ts.isFunctionDeclaration);\n if (!declaration) {\n return false;\n }\n var symbol = getSymbolOfNode(declaration);\n if (!symbol || !(symbol.flags & 16 /* Function */)) {\n return false;\n }\n return !!ts.forEachEntry(getExportsOfSymbol(symbol), function (p) { return p.flags & 111551 /* Value */ && p.valueDeclaration && ts.isPropertyAccessExpression(p.valueDeclaration); });\n }\n function getPropertiesOfContainerFunction(node) {\n var declaration = ts.getParseTreeNode(node, ts.isFunctionDeclaration);\n if (!declaration) {\n return ts.emptyArray;\n }\n var symbol = getSymbolOfNode(declaration);\n return symbol && getPropertiesOfType(getTypeOfSymbol(symbol)) || ts.emptyArray;\n }\n function getNodeCheckFlags(node) {\n var _a;\n var nodeId = node.id || 0;\n if (nodeId < 0 || nodeId >= nodeLinks.length)\n return 0;\n return ((_a = nodeLinks[nodeId]) === null || _a === void 0 ? void 0 : _a.flags) || 0;\n }\n function getEnumMemberValue(node) {\n computeEnumMemberValues(node.parent);\n return getNodeLinks(node).enumMemberValue;\n }\n function canHaveConstantValue(node) {\n switch (node.kind) {\n case 294 /* EnumMember */:\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return true;\n }\n return false;\n }\n function getConstantValue(node) {\n if (node.kind === 294 /* EnumMember */) {\n return getEnumMemberValue(node);\n }\n var symbol = getNodeLinks(node).resolvedSymbol;\n if (symbol && (symbol.flags & 8 /* EnumMember */)) {\n // inline property\\index accesses only for const enums\n var member = symbol.valueDeclaration;\n if (ts.isEnumConst(member.parent)) {\n return getEnumMemberValue(member);\n }\n }\n return undefined;\n }\n function isFunctionType(type) {\n return !!(type.flags & 524288 /* Object */) && getSignaturesOfType(type, 0 /* Call */).length > 0;\n }\n function getTypeReferenceSerializationKind(typeNameIn, location) {\n var _a, _b;\n // ensure both `typeName` and `location` are parse tree nodes.\n var typeName = ts.getParseTreeNode(typeNameIn, ts.isEntityName);\n if (!typeName)\n return ts.TypeReferenceSerializationKind.Unknown;\n if (location) {\n location = ts.getParseTreeNode(location);\n if (!location)\n return ts.TypeReferenceSerializationKind.Unknown;\n }\n // Resolve the symbol as a value to ensure the type can be reached at runtime during emit.\n var isTypeOnly = false;\n if (ts.isQualifiedName(typeName)) {\n var rootValueSymbol = resolveEntityName(ts.getFirstIdentifier(typeName), 111551 /* Value */, /*ignoreErrors*/ true, /*dontResolveAlias*/ true, location);\n isTypeOnly = !!((_a = rootValueSymbol === null || rootValueSymbol === void 0 ? void 0 : rootValueSymbol.declarations) === null || _a === void 0 ? void 0 : _a.every(ts.isTypeOnlyImportOrExportDeclaration));\n }\n var valueSymbol = resolveEntityName(typeName, 111551 /* Value */, /*ignoreErrors*/ true, /*dontResolveAlias*/ true, location);\n var resolvedSymbol = valueSymbol && valueSymbol.flags & 2097152 /* Alias */ ? resolveAlias(valueSymbol) : valueSymbol;\n isTypeOnly || (isTypeOnly = !!((_b = valueSymbol === null || valueSymbol === void 0 ? void 0 : valueSymbol.declarations) === null || _b === void 0 ? void 0 : _b.every(ts.isTypeOnlyImportOrExportDeclaration)));\n // Resolve the symbol as a type so that we can provide a more useful hint for the type serializer.\n var typeSymbol = resolveEntityName(typeName, 788968 /* Type */, /*ignoreErrors*/ true, /*dontResolveAlias*/ false, location);\n if (resolvedSymbol && resolvedSymbol === typeSymbol) {\n var globalPromiseSymbol = getGlobalPromiseConstructorSymbol(/*reportErrors*/ false);\n if (globalPromiseSymbol && resolvedSymbol === globalPromiseSymbol) {\n return ts.TypeReferenceSerializationKind.Promise;\n }\n var constructorType = getTypeOfSymbol(resolvedSymbol);\n if (constructorType && isConstructorType(constructorType)) {\n return isTypeOnly ? ts.TypeReferenceSerializationKind.TypeWithCallSignature : ts.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue;\n }\n }\n // We might not be able to resolve type symbol so use unknown type in that case (eg error case)\n if (!typeSymbol) {\n return isTypeOnly ? ts.TypeReferenceSerializationKind.ObjectType : ts.TypeReferenceSerializationKind.Unknown;\n }\n var type = getDeclaredTypeOfSymbol(typeSymbol);\n if (type === errorType) {\n return isTypeOnly ? ts.TypeReferenceSerializationKind.ObjectType : ts.TypeReferenceSerializationKind.Unknown;\n }\n else if (type.flags & 3 /* AnyOrUnknown */) {\n return ts.TypeReferenceSerializationKind.ObjectType;\n }\n else if (isTypeAssignableToKind(type, 16384 /* Void */ | 98304 /* Nullable */ | 131072 /* Never */)) {\n return ts.TypeReferenceSerializationKind.VoidNullableOrNeverType;\n }\n else if (isTypeAssignableToKind(type, 528 /* BooleanLike */)) {\n return ts.TypeReferenceSerializationKind.BooleanType;\n }\n else if (isTypeAssignableToKind(type, 296 /* NumberLike */)) {\n return ts.TypeReferenceSerializationKind.NumberLikeType;\n }\n else if (isTypeAssignableToKind(type, 2112 /* BigIntLike */)) {\n return ts.TypeReferenceSerializationKind.BigIntLikeType;\n }\n else if (isTypeAssignableToKind(type, 402653316 /* StringLike */)) {\n return ts.TypeReferenceSerializationKind.StringLikeType;\n }\n else if (isTupleType(type)) {\n return ts.TypeReferenceSerializationKind.ArrayLikeType;\n }\n else if (isTypeAssignableToKind(type, 12288 /* ESSymbolLike */)) {\n return ts.TypeReferenceSerializationKind.ESSymbolType;\n }\n else if (isFunctionType(type)) {\n return ts.TypeReferenceSerializationKind.TypeWithCallSignature;\n }\n else if (isArrayType(type)) {\n return ts.TypeReferenceSerializationKind.ArrayLikeType;\n }\n else {\n return ts.TypeReferenceSerializationKind.ObjectType;\n }\n }\n function createTypeOfDeclaration(declarationIn, enclosingDeclaration, flags, tracker, addUndefined) {\n var declaration = ts.getParseTreeNode(declarationIn, ts.isVariableLikeOrAccessor);\n if (!declaration) {\n return ts.factory.createToken(129 /* AnyKeyword */);\n }\n // Get type of the symbol if this is the valid symbol otherwise get type at location\n var symbol = getSymbolOfNode(declaration);\n var type = symbol && !(symbol.flags & (2048 /* TypeLiteral */ | 131072 /* Signature */))\n ? getWidenedLiteralType(getTypeOfSymbol(symbol))\n : errorType;\n if (type.flags & 8192 /* UniqueESSymbol */ &&\n type.symbol === symbol) {\n flags |= 1048576 /* AllowUniqueESSymbolType */;\n }\n if (addUndefined) {\n type = getOptionalType(type);\n }\n return nodeBuilder.typeToTypeNode(type, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker);\n }\n function createReturnTypeOfSignatureDeclaration(signatureDeclarationIn, enclosingDeclaration, flags, tracker) {\n var signatureDeclaration = ts.getParseTreeNode(signatureDeclarationIn, ts.isFunctionLike);\n if (!signatureDeclaration) {\n return ts.factory.createToken(129 /* AnyKeyword */);\n }\n var signature = getSignatureFromDeclaration(signatureDeclaration);\n return nodeBuilder.typeToTypeNode(getReturnTypeOfSignature(signature), enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker);\n }\n function createTypeOfExpression(exprIn, enclosingDeclaration, flags, tracker) {\n var expr = ts.getParseTreeNode(exprIn, ts.isExpression);\n if (!expr) {\n return ts.factory.createToken(129 /* AnyKeyword */);\n }\n var type = getWidenedType(getRegularTypeOfExpression(expr));\n return nodeBuilder.typeToTypeNode(type, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */, tracker);\n }\n function hasGlobalName(name) {\n return globals.has(ts.escapeLeadingUnderscores(name));\n }\n function getReferencedValueSymbol(reference, startInDeclarationContainer) {\n var resolvedSymbol = getNodeLinks(reference).resolvedSymbol;\n if (resolvedSymbol) {\n return resolvedSymbol;\n }\n var location = reference;\n if (startInDeclarationContainer) {\n // When resolving the name of a declaration as a value, we need to start resolution\n // at a point outside of the declaration.\n var parent = reference.parent;\n if (ts.isDeclaration(parent) && reference === parent.name) {\n location = getDeclarationContainer(parent);\n }\n }\n return resolveName(location, reference.escapedText, 111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */, /*nodeNotFoundMessage*/ undefined, /*nameArg*/ undefined, /*isUse*/ true);\n }\n function getReferencedValueDeclaration(referenceIn) {\n if (!ts.isGeneratedIdentifier(referenceIn)) {\n var reference = ts.getParseTreeNode(referenceIn, ts.isIdentifier);\n if (reference) {\n var symbol = getReferencedValueSymbol(reference);\n if (symbol) {\n return getExportSymbolOfValueSymbolIfExported(symbol).valueDeclaration;\n }\n }\n }\n return undefined;\n }\n function isLiteralConstDeclaration(node) {\n if (ts.isDeclarationReadonly(node) || ts.isVariableDeclaration(node) && ts.isVarConst(node)) {\n return isFreshLiteralType(getTypeOfSymbol(getSymbolOfNode(node)));\n }\n return false;\n }\n function literalTypeToNode(type, enclosing, tracker) {\n var enumResult = type.flags & 1024 /* EnumLiteral */ ? nodeBuilder.symbolToExpression(type.symbol, 111551 /* Value */, enclosing, /*flags*/ undefined, tracker)\n : type === trueType ? ts.factory.createTrue() : type === falseType && ts.factory.createFalse();\n if (enumResult)\n return enumResult;\n var literalValue = type.value;\n return typeof literalValue === \"object\" ? ts.factory.createBigIntLiteral(literalValue) :\n typeof literalValue === \"number\" ? ts.factory.createNumericLiteral(literalValue) :\n ts.factory.createStringLiteral(literalValue);\n }\n function createLiteralConstValue(node, tracker) {\n var type = getTypeOfSymbol(getSymbolOfNode(node));\n return literalTypeToNode(type, node, tracker);\n }\n function getJsxFactoryEntity(location) {\n return location ? (getJsxNamespace(location), (ts.getSourceFileOfNode(location).localJsxFactory || _jsxFactoryEntity)) : _jsxFactoryEntity;\n }\n function getJsxFragmentFactoryEntity(location) {\n if (location) {\n var file = ts.getSourceFileOfNode(location);\n if (file) {\n if (file.localJsxFragmentFactory) {\n return file.localJsxFragmentFactory;\n }\n var jsxFragPragmas = file.pragmas.get(\"jsxfrag\");\n var jsxFragPragma = ts.isArray(jsxFragPragmas) ? jsxFragPragmas[0] : jsxFragPragmas;\n if (jsxFragPragma) {\n file.localJsxFragmentFactory = ts.parseIsolatedEntityName(jsxFragPragma.arguments.factory, languageVersion);\n return file.localJsxFragmentFactory;\n }\n }\n }\n if (compilerOptions.jsxFragmentFactory) {\n return ts.parseIsolatedEntityName(compilerOptions.jsxFragmentFactory, languageVersion);\n }\n }\n function createResolver() {\n // this variable and functions that use it are deliberately moved here from the outer scope\n // to avoid scope pollution\n var resolvedTypeReferenceDirectives = host.getResolvedTypeReferenceDirectives();\n var fileToDirective;\n if (resolvedTypeReferenceDirectives) {\n // populate reverse mapping: file path -> type reference directive that was resolved to this file\n fileToDirective = new ts.Map();\n resolvedTypeReferenceDirectives.forEach(function (resolvedDirective, key) {\n if (!resolvedDirective || !resolvedDirective.resolvedFileName) {\n return;\n }\n var file = host.getSourceFile(resolvedDirective.resolvedFileName);\n if (file) {\n // Add the transitive closure of path references loaded by this file (as long as they are not)\n // part of an existing type reference.\n addReferencedFilesToTypeDirective(file, key);\n }\n });\n }\n return {\n getReferencedExportContainer: getReferencedExportContainer,\n getReferencedImportDeclaration: getReferencedImportDeclaration,\n getReferencedDeclarationWithCollidingName: getReferencedDeclarationWithCollidingName,\n isDeclarationWithCollidingName: isDeclarationWithCollidingName,\n isValueAliasDeclaration: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn);\n // Synthesized nodes are always treated like values.\n return node ? isValueAliasDeclaration(node) : true;\n },\n hasGlobalName: hasGlobalName,\n isReferencedAliasDeclaration: function (nodeIn, checkChildren) {\n var node = ts.getParseTreeNode(nodeIn);\n // Synthesized nodes are always treated as referenced.\n return node ? isReferencedAliasDeclaration(node, checkChildren) : true;\n },\n getNodeCheckFlags: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn);\n return node ? getNodeCheckFlags(node) : 0;\n },\n isTopLevelValueImportEqualsWithEntityName: isTopLevelValueImportEqualsWithEntityName,\n isDeclarationVisible: isDeclarationVisible,\n isImplementationOfOverload: isImplementationOfOverload,\n isRequiredInitializedParameter: isRequiredInitializedParameter,\n isOptionalUninitializedParameterProperty: isOptionalUninitializedParameterProperty,\n isExpandoFunctionDeclaration: isExpandoFunctionDeclaration,\n getPropertiesOfContainerFunction: getPropertiesOfContainerFunction,\n createTypeOfDeclaration: createTypeOfDeclaration,\n createReturnTypeOfSignatureDeclaration: createReturnTypeOfSignatureDeclaration,\n createTypeOfExpression: createTypeOfExpression,\n createLiteralConstValue: createLiteralConstValue,\n isSymbolAccessible: isSymbolAccessible,\n isEntityNameVisible: isEntityNameVisible,\n getConstantValue: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, canHaveConstantValue);\n return node ? getConstantValue(node) : undefined;\n },\n collectLinkedAliases: collectLinkedAliases,\n getReferencedValueDeclaration: getReferencedValueDeclaration,\n getTypeReferenceSerializationKind: getTypeReferenceSerializationKind,\n isOptionalParameter: isOptionalParameter,\n moduleExportsSomeValue: moduleExportsSomeValue,\n isArgumentsLocalBinding: isArgumentsLocalBinding,\n getExternalModuleFileFromDeclaration: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.hasPossibleExternalModuleReference);\n return node && getExternalModuleFileFromDeclaration(node);\n },\n getTypeReferenceDirectivesForEntityName: getTypeReferenceDirectivesForEntityName,\n getTypeReferenceDirectivesForSymbol: getTypeReferenceDirectivesForSymbol,\n isLiteralConstDeclaration: isLiteralConstDeclaration,\n isLateBound: function (nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isDeclaration);\n var symbol = node && getSymbolOfNode(node);\n return !!(symbol && ts.getCheckFlags(symbol) & 4096 /* Late */);\n },\n getJsxFactoryEntity: getJsxFactoryEntity,\n getJsxFragmentFactoryEntity: getJsxFragmentFactoryEntity,\n getAllAccessorDeclarations: function (accessor) {\n accessor = ts.getParseTreeNode(accessor, ts.isGetOrSetAccessorDeclaration); // TODO: GH#18217\n var otherKind = accessor.kind === 171 /* SetAccessor */ ? 170 /* GetAccessor */ : 171 /* SetAccessor */;\n var otherAccessor = ts.getDeclarationOfKind(getSymbolOfNode(accessor), otherKind);\n var firstAccessor = otherAccessor && (otherAccessor.pos < accessor.pos) ? otherAccessor : accessor;\n var secondAccessor = otherAccessor && (otherAccessor.pos < accessor.pos) ? accessor : otherAccessor;\n var setAccessor = accessor.kind === 171 /* SetAccessor */ ? accessor : otherAccessor;\n var getAccessor = accessor.kind === 170 /* GetAccessor */ ? accessor : otherAccessor;\n return {\n firstAccessor: firstAccessor,\n secondAccessor: secondAccessor,\n setAccessor: setAccessor,\n getAccessor: getAccessor\n };\n },\n getSymbolOfExternalModuleSpecifier: function (moduleName) { return resolveExternalModuleNameWorker(moduleName, moduleName, /*moduleNotFoundError*/ undefined); },\n isBindingCapturedByNode: function (node, decl) {\n var parseNode = ts.getParseTreeNode(node);\n var parseDecl = ts.getParseTreeNode(decl);\n return !!parseNode && !!parseDecl && (ts.isVariableDeclaration(parseDecl) || ts.isBindingElement(parseDecl)) && isBindingCapturedByNode(parseNode, parseDecl);\n },\n getDeclarationStatementsForSourceFile: function (node, flags, tracker, bundled) {\n var n = ts.getParseTreeNode(node);\n ts.Debug.assert(n && n.kind === 300 /* SourceFile */, \"Non-sourcefile node passed into getDeclarationsForSourceFile\");\n var sym = getSymbolOfNode(node);\n if (!sym) {\n return !node.locals ? [] : nodeBuilder.symbolTableToDeclarationStatements(node.locals, node, flags, tracker, bundled);\n }\n return !sym.exports ? [] : nodeBuilder.symbolTableToDeclarationStatements(sym.exports, node, flags, tracker, bundled);\n },\n isImportRequiredByAugmentation: isImportRequiredByAugmentation,\n };\n function isImportRequiredByAugmentation(node) {\n var file = ts.getSourceFileOfNode(node);\n if (!file.symbol)\n return false;\n var importTarget = getExternalModuleFileFromDeclaration(node);\n if (!importTarget)\n return false;\n if (importTarget === file)\n return false;\n var exports = getExportsOfModule(file.symbol);\n for (var _i = 0, _a = ts.arrayFrom(exports.values()); _i < _a.length; _i++) {\n var s = _a[_i];\n if (s.mergeId) {\n var merged = getMergedSymbol(s);\n if (merged.declarations) {\n for (var _b = 0, _c = merged.declarations; _b < _c.length; _b++) {\n var d = _c[_b];\n var declFile = ts.getSourceFileOfNode(d);\n if (declFile === importTarget) {\n return true;\n }\n }\n }\n }\n }\n return false;\n }\n function isInHeritageClause(node) {\n return node.parent && node.parent.kind === 226 /* ExpressionWithTypeArguments */ && node.parent.parent && node.parent.parent.kind === 289 /* HeritageClause */;\n }\n // defined here to avoid outer scope pollution\n function getTypeReferenceDirectivesForEntityName(node) {\n // program does not have any files with type reference directives - bail out\n if (!fileToDirective) {\n return undefined;\n }\n // property access can only be used as values, or types when within an expression with type arguments inside a heritage clause\n // qualified names can only be used as types\\namespaces\n // identifiers are treated as values only if they appear in type queries\n var meaning = 788968 /* Type */ | 1920 /* Namespace */;\n if ((node.kind === 79 /* Identifier */ && isInTypeQuery(node)) || (node.kind === 204 /* PropertyAccessExpression */ && !isInHeritageClause(node))) {\n meaning = 111551 /* Value */ | 1048576 /* ExportValue */;\n }\n var symbol = resolveEntityName(node, meaning, /*ignoreErrors*/ true);\n return symbol && symbol !== unknownSymbol ? getTypeReferenceDirectivesForSymbol(symbol, meaning) : undefined;\n }\n // defined here to avoid outer scope pollution\n function getTypeReferenceDirectivesForSymbol(symbol, meaning) {\n // program does not have any files with type reference directives - bail out\n if (!fileToDirective || !isSymbolFromTypeDeclarationFile(symbol)) {\n return undefined;\n }\n // check what declarations in the symbol can contribute to the target meaning\n var typeReferenceDirectives;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n // check meaning of the local symbol to see if declaration needs to be analyzed further\n if (decl.symbol && decl.symbol.flags & meaning) {\n var file = ts.getSourceFileOfNode(decl);\n var typeReferenceDirective = fileToDirective.get(file.path);\n if (typeReferenceDirective) {\n (typeReferenceDirectives || (typeReferenceDirectives = [])).push(typeReferenceDirective);\n }\n else {\n // found at least one entry that does not originate from type reference directive\n return undefined;\n }\n }\n }\n return typeReferenceDirectives;\n }\n function isSymbolFromTypeDeclarationFile(symbol) {\n // bail out if symbol does not have associated declarations (i.e. this is transient symbol created for property in binding pattern)\n if (!symbol.declarations) {\n return false;\n }\n // walk the parent chain for symbols to make sure that top level parent symbol is in the global scope\n // external modules cannot define or contribute to type declaration files\n var current = symbol;\n while (true) {\n var parent = getParentOfSymbol(current);\n if (parent) {\n current = parent;\n }\n else {\n break;\n }\n }\n if (current.valueDeclaration && current.valueDeclaration.kind === 300 /* SourceFile */ && current.flags & 512 /* ValueModule */) {\n return false;\n }\n // check that at least one declaration of top level symbol originates from type declaration file\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n var file = ts.getSourceFileOfNode(decl);\n if (fileToDirective.has(file.path)) {\n return true;\n }\n }\n return false;\n }\n function addReferencedFilesToTypeDirective(file, key) {\n if (fileToDirective.has(file.path))\n return;\n fileToDirective.set(file.path, key);\n for (var _i = 0, _a = file.referencedFiles; _i < _a.length; _i++) {\n var fileName = _a[_i].fileName;\n var resolvedFile = ts.resolveTripleslashReference(fileName, file.fileName);\n var referencedFile = host.getSourceFile(resolvedFile);\n if (referencedFile) {\n addReferencedFilesToTypeDirective(referencedFile, key);\n }\n }\n }\n }\n function getExternalModuleFileFromDeclaration(declaration) {\n var specifier = declaration.kind === 259 /* ModuleDeclaration */ ? ts.tryCast(declaration.name, ts.isStringLiteral) : ts.getExternalModuleName(declaration);\n var moduleSymbol = resolveExternalModuleNameWorker(specifier, specifier, /*moduleNotFoundError*/ undefined); // TODO: GH#18217\n if (!moduleSymbol) {\n return undefined;\n }\n return ts.getDeclarationOfKind(moduleSymbol, 300 /* SourceFile */);\n }\n function initializeTypeChecker() {\n // Bind all source files and propagate errors\n for (var _i = 0, _a = host.getSourceFiles(); _i < _a.length; _i++) {\n var file = _a[_i];\n ts.bindSourceFile(file, compilerOptions);\n }\n amalgamatedDuplicates = new ts.Map();\n // Initialize global symbol table\n var augmentations;\n for (var _b = 0, _c = host.getSourceFiles(); _b < _c.length; _b++) {\n var file = _c[_b];\n if (file.redirectInfo) {\n continue;\n }\n if (!ts.isExternalOrCommonJsModule(file)) {\n // It is an error for a non-external-module (i.e. script) to declare its own `globalThis`.\n // We can't use `builtinGlobals` for this due to synthetic expando-namespace generation in JS files.\n var fileGlobalThisSymbol = file.locals.get(\"globalThis\");\n if (fileGlobalThisSymbol === null || fileGlobalThisSymbol === void 0 ? void 0 : fileGlobalThisSymbol.declarations) {\n for (var _d = 0, _e = fileGlobalThisSymbol.declarations; _d < _e.length; _d++) {\n var declaration = _e[_d];\n diagnostics.add(ts.createDiagnosticForNode(declaration, ts.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0, \"globalThis\"));\n }\n }\n mergeSymbolTable(globals, file.locals);\n }\n if (file.jsGlobalAugmentations) {\n mergeSymbolTable(globals, file.jsGlobalAugmentations);\n }\n if (file.patternAmbientModules && file.patternAmbientModules.length) {\n patternAmbientModules = ts.concatenate(patternAmbientModules, file.patternAmbientModules);\n }\n if (file.moduleAugmentations.length) {\n (augmentations || (augmentations = [])).push(file.moduleAugmentations);\n }\n if (file.symbol && file.symbol.globalExports) {\n // Merge in UMD exports with first-in-wins semantics (see #9771)\n var source = file.symbol.globalExports;\n source.forEach(function (sourceSymbol, id) {\n if (!globals.has(id)) {\n globals.set(id, sourceSymbol);\n }\n });\n }\n }\n // We do global augmentations separately from module augmentations (and before creating global types) because they\n // 1. Affect global types. We won't have the correct global types until global augmentations are merged. Also,\n // 2. Module augmentation instantiation requires creating the type of a module, which, in turn, can require\n // checking for an export or property on the module (if export=) which, in turn, can fall back to the\n // apparent type of the module - either globalObjectType or globalFunctionType - which wouldn't exist if we\n // did module augmentations prior to finalizing the global types.\n if (augmentations) {\n // merge _global_ module augmentations.\n // this needs to be done after global symbol table is initialized to make sure that all ambient modules are indexed\n for (var _f = 0, augmentations_1 = augmentations; _f < augmentations_1.length; _f++) {\n var list = augmentations_1[_f];\n for (var _g = 0, list_1 = list; _g < list_1.length; _g++) {\n var augmentation = list_1[_g];\n if (!ts.isGlobalScopeAugmentation(augmentation.parent))\n continue;\n mergeModuleAugmentation(augmentation);\n }\n }\n }\n // Setup global builtins\n addToSymbolTable(globals, builtinGlobals, ts.Diagnostics.Declaration_name_conflicts_with_built_in_global_identifier_0);\n getSymbolLinks(undefinedSymbol).type = undefinedWideningType;\n getSymbolLinks(argumentsSymbol).type = getGlobalType(\"IArguments\", /*arity*/ 0, /*reportErrors*/ true);\n getSymbolLinks(unknownSymbol).type = errorType;\n getSymbolLinks(globalThisSymbol).type = createObjectType(16 /* Anonymous */, globalThisSymbol);\n // Initialize special types\n globalArrayType = getGlobalType(\"Array\", /*arity*/ 1, /*reportErrors*/ true);\n globalObjectType = getGlobalType(\"Object\", /*arity*/ 0, /*reportErrors*/ true);\n globalFunctionType = getGlobalType(\"Function\", /*arity*/ 0, /*reportErrors*/ true);\n globalCallableFunctionType = strictBindCallApply && getGlobalType(\"CallableFunction\", /*arity*/ 0, /*reportErrors*/ true) || globalFunctionType;\n globalNewableFunctionType = strictBindCallApply && getGlobalType(\"NewableFunction\", /*arity*/ 0, /*reportErrors*/ true) || globalFunctionType;\n globalStringType = getGlobalType(\"String\", /*arity*/ 0, /*reportErrors*/ true);\n globalNumberType = getGlobalType(\"Number\", /*arity*/ 0, /*reportErrors*/ true);\n globalBooleanType = getGlobalType(\"Boolean\", /*arity*/ 0, /*reportErrors*/ true);\n globalRegExpType = getGlobalType(\"RegExp\", /*arity*/ 0, /*reportErrors*/ true);\n anyArrayType = createArrayType(anyType);\n autoArrayType = createArrayType(autoType);\n if (autoArrayType === emptyObjectType) {\n // autoArrayType is used as a marker, so even if global Array type is not defined, it needs to be a unique type\n autoArrayType = createAnonymousType(undefined, emptySymbols, ts.emptyArray, ts.emptyArray, ts.emptyArray);\n }\n globalReadonlyArrayType = getGlobalTypeOrUndefined(\"ReadonlyArray\", /*arity*/ 1) || globalArrayType;\n anyReadonlyArrayType = globalReadonlyArrayType ? createTypeFromGenericGlobalType(globalReadonlyArrayType, [anyType]) : anyArrayType;\n globalThisType = getGlobalTypeOrUndefined(\"ThisType\", /*arity*/ 1);\n if (augmentations) {\n // merge _nonglobal_ module augmentations.\n // this needs to be done after global symbol table is initialized to make sure that all ambient modules are indexed\n for (var _h = 0, augmentations_2 = augmentations; _h < augmentations_2.length; _h++) {\n var list = augmentations_2[_h];\n for (var _j = 0, list_2 = list; _j < list_2.length; _j++) {\n var augmentation = list_2[_j];\n if (ts.isGlobalScopeAugmentation(augmentation.parent))\n continue;\n mergeModuleAugmentation(augmentation);\n }\n }\n }\n amalgamatedDuplicates.forEach(function (_a) {\n var firstFile = _a.firstFile, secondFile = _a.secondFile, conflictingSymbols = _a.conflictingSymbols;\n // If not many things conflict, issue individual errors\n if (conflictingSymbols.size < 8) {\n conflictingSymbols.forEach(function (_a, symbolName) {\n var isBlockScoped = _a.isBlockScoped, firstFileLocations = _a.firstFileLocations, secondFileLocations = _a.secondFileLocations;\n var message = isBlockScoped ? ts.Diagnostics.Cannot_redeclare_block_scoped_variable_0 : ts.Diagnostics.Duplicate_identifier_0;\n for (var _i = 0, firstFileLocations_1 = firstFileLocations; _i < firstFileLocations_1.length; _i++) {\n var node = firstFileLocations_1[_i];\n addDuplicateDeclarationError(node, message, symbolName, secondFileLocations);\n }\n for (var _b = 0, secondFileLocations_1 = secondFileLocations; _b < secondFileLocations_1.length; _b++) {\n var node = secondFileLocations_1[_b];\n addDuplicateDeclarationError(node, message, symbolName, firstFileLocations);\n }\n });\n }\n else {\n // Otherwise issue top-level error since the files appear very identical in terms of what they contain\n var list = ts.arrayFrom(conflictingSymbols.keys()).join(\", \");\n diagnostics.add(ts.addRelatedInfo(ts.createDiagnosticForNode(firstFile, ts.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), ts.createDiagnosticForNode(secondFile, ts.Diagnostics.Conflicts_are_in_this_file)));\n diagnostics.add(ts.addRelatedInfo(ts.createDiagnosticForNode(secondFile, ts.Diagnostics.Definitions_of_the_following_identifiers_conflict_with_those_in_another_file_Colon_0, list), ts.createDiagnosticForNode(firstFile, ts.Diagnostics.Conflicts_are_in_this_file)));\n }\n });\n amalgamatedDuplicates = undefined;\n }\n function checkExternalEmitHelpers(location, helpers) {\n if ((requestedExternalEmitHelpers & helpers) !== helpers && compilerOptions.importHelpers) {\n var sourceFile = ts.getSourceFileOfNode(location);\n if (ts.isEffectiveExternalModule(sourceFile, compilerOptions) && !(location.flags & 8388608 /* Ambient */)) {\n var helpersModule = resolveHelpersModule(sourceFile, location);\n if (helpersModule !== unknownSymbol) {\n var uncheckedHelpers = helpers & ~requestedExternalEmitHelpers;\n for (var helper = 1 /* FirstEmitHelper */; helper <= 2097152 /* LastEmitHelper */; helper <<= 1) {\n if (uncheckedHelpers & helper) {\n var name = getHelperName(helper);\n var symbol = getSymbol(helpersModule.exports, ts.escapeLeadingUnderscores(name), 111551 /* Value */);\n if (!symbol) {\n error(location, ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_which_does_not_exist_in_0_Consider_upgrading_your_version_of_0, ts.externalHelpersModuleNameText, name);\n }\n else if (helper & 524288 /* ClassPrivateFieldGet */) {\n if (!ts.some(getSignaturesOfSymbol(symbol), function (signature) { return getParameterCount(signature) > 3; })) {\n error(location, ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, ts.externalHelpersModuleNameText, name, 4);\n }\n }\n else if (helper & 1048576 /* ClassPrivateFieldSet */) {\n if (!ts.some(getSignaturesOfSymbol(symbol), function (signature) { return getParameterCount(signature) > 4; })) {\n error(location, ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, ts.externalHelpersModuleNameText, name, 5);\n }\n }\n else if (helper & 1024 /* SpreadArray */) {\n if (!ts.some(getSignaturesOfSymbol(symbol), function (signature) { return getParameterCount(signature) > 2; })) {\n error(location, ts.Diagnostics.This_syntax_requires_an_imported_helper_named_1_with_2_parameters_which_is_not_compatible_with_the_one_in_0_Consider_upgrading_your_version_of_0, ts.externalHelpersModuleNameText, name, 3);\n }\n }\n }\n }\n }\n requestedExternalEmitHelpers |= helpers;\n }\n }\n }\n function getHelperName(helper) {\n switch (helper) {\n case 1 /* Extends */: return \"__extends\";\n case 2 /* Assign */: return \"__assign\";\n case 4 /* Rest */: return \"__rest\";\n case 8 /* Decorate */: return \"__decorate\";\n case 16 /* Metadata */: return \"__metadata\";\n case 32 /* Param */: return \"__param\";\n case 64 /* Awaiter */: return \"__awaiter\";\n case 128 /* Generator */: return \"__generator\";\n case 256 /* Values */: return \"__values\";\n case 512 /* Read */: return \"__read\";\n case 1024 /* SpreadArray */: return \"__spreadArray\";\n case 2048 /* Await */: return \"__await\";\n case 4096 /* AsyncGenerator */: return \"__asyncGenerator\";\n case 8192 /* AsyncDelegator */: return \"__asyncDelegator\";\n case 16384 /* AsyncValues */: return \"__asyncValues\";\n case 32768 /* ExportStar */: return \"__exportStar\";\n case 65536 /* ImportStar */: return \"__importStar\";\n case 131072 /* ImportDefault */: return \"__importDefault\";\n case 262144 /* MakeTemplateObject */: return \"__makeTemplateObject\";\n case 524288 /* ClassPrivateFieldGet */: return \"__classPrivateFieldGet\";\n case 1048576 /* ClassPrivateFieldSet */: return \"__classPrivateFieldSet\";\n case 2097152 /* CreateBinding */: return \"__createBinding\";\n default: return ts.Debug.fail(\"Unrecognized helper\");\n }\n }\n function resolveHelpersModule(node, errorNode) {\n if (!externalHelpersModule) {\n externalHelpersModule = resolveExternalModule(node, ts.externalHelpersModuleNameText, ts.Diagnostics.This_syntax_requires_an_imported_helper_but_module_0_cannot_be_found, errorNode) || unknownSymbol;\n }\n return externalHelpersModule;\n }\n // GRAMMAR CHECKING\n function checkGrammarDecoratorsAndModifiers(node) {\n return checkGrammarDecorators(node) || checkGrammarModifiers(node);\n }\n function checkGrammarDecorators(node) {\n if (!node.decorators) {\n return false;\n }\n if (!ts.nodeCanBeDecorated(node, node.parent, node.parent.parent)) {\n if (node.kind === 167 /* MethodDeclaration */ && !ts.nodeIsPresent(node.body)) {\n return grammarErrorOnFirstToken(node, ts.Diagnostics.A_decorator_can_only_decorate_a_method_implementation_not_an_overload);\n }\n else {\n return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_are_not_valid_here);\n }\n }\n else if (node.kind === 170 /* GetAccessor */ || node.kind === 171 /* SetAccessor */) {\n var accessors = ts.getAllAccessorDeclarations(node.parent.members, node);\n if (accessors.firstAccessor.decorators && node === accessors.secondAccessor) {\n return grammarErrorOnFirstToken(node, ts.Diagnostics.Decorators_cannot_be_applied_to_multiple_get_Slashset_accessors_of_the_same_name);\n }\n }\n return false;\n }\n function checkGrammarModifiers(node) {\n var quickResult = reportObviousModifierErrors(node);\n if (quickResult !== undefined) {\n return quickResult;\n }\n var lastStatic, lastDeclare, lastAsync, lastReadonly, lastOverride;\n var flags = 0 /* None */;\n for (var _i = 0, _a = node.modifiers; _i < _a.length; _i++) {\n var modifier = _a[_i];\n if (modifier.kind !== 143 /* ReadonlyKeyword */) {\n if (node.kind === 164 /* PropertySignature */ || node.kind === 166 /* MethodSignature */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_type_member, ts.tokenToString(modifier.kind));\n }\n if (node.kind === 174 /* IndexSignature */ && (modifier.kind !== 124 /* StaticKeyword */ || !ts.isClassLike(node.parent))) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_an_index_signature, ts.tokenToString(modifier.kind));\n }\n }\n switch (modifier.kind) {\n case 85 /* ConstKeyword */:\n if (node.kind !== 258 /* EnumDeclaration */) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_class_member_cannot_have_the_0_keyword, ts.tokenToString(85 /* ConstKeyword */));\n }\n break;\n case 157 /* OverrideKeyword */:\n // If node.kind === SyntaxKind.Parameter, checkParameter reports an error if it's not a parameter property.\n if (flags & 16384 /* Override */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"override\");\n }\n else if (flags & 2 /* Ambient */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"override\", \"declare\");\n }\n else if (flags & 64 /* Readonly */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"override\", \"readonly\");\n }\n else if (flags & 256 /* Async */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"override\", \"async\");\n }\n flags |= 16384 /* Override */;\n lastOverride = modifier;\n break;\n case 123 /* PublicKeyword */:\n case 122 /* ProtectedKeyword */:\n case 121 /* PrivateKeyword */:\n var text = visibilityToString(ts.modifierToFlag(modifier.kind));\n if (flags & 28 /* AccessibilityModifier */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics.Accessibility_modifier_already_seen);\n }\n else if (flags & 16384 /* Override */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, \"override\");\n }\n else if (flags & 32 /* Static */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, \"static\");\n }\n else if (flags & 64 /* Readonly */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, \"readonly\");\n }\n else if (flags & 256 /* Async */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, \"async\");\n }\n else if (node.parent.kind === 260 /* ModuleBlock */ || node.parent.kind === 300 /* SourceFile */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, text);\n }\n else if (flags & 128 /* Abstract */) {\n if (modifier.kind === 121 /* PrivateKeyword */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, text, \"abstract\");\n }\n else {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, text, \"abstract\");\n }\n }\n else if (ts.isPrivateIdentifierClassElementDeclaration(node)) {\n return grammarErrorOnNode(modifier, ts.Diagnostics.An_accessibility_modifier_cannot_be_used_with_a_private_identifier);\n }\n flags |= ts.modifierToFlag(modifier.kind);\n break;\n case 124 /* StaticKeyword */:\n if (flags & 32 /* Static */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"static\");\n }\n else if (flags & 64 /* Readonly */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"readonly\");\n }\n else if (flags & 256 /* Async */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"async\");\n }\n else if (node.parent.kind === 260 /* ModuleBlock */ || node.parent.kind === 300 /* SourceFile */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_module_or_namespace_element, \"static\");\n }\n else if (node.kind === 162 /* Parameter */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"static\");\n }\n else if (flags & 128 /* Abstract */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"static\", \"abstract\");\n }\n else if (flags & 16384 /* Override */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"static\", \"override\");\n }\n flags |= 32 /* Static */;\n lastStatic = modifier;\n break;\n case 143 /* ReadonlyKeyword */:\n if (flags & 64 /* Readonly */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"readonly\");\n }\n else if (node.kind !== 165 /* PropertyDeclaration */ && node.kind !== 164 /* PropertySignature */ && node.kind !== 174 /* IndexSignature */ && node.kind !== 162 /* Parameter */) {\n // If node.kind === SyntaxKind.Parameter, checkParameter reports an error if it's not a parameter property.\n return grammarErrorOnNode(modifier, ts.Diagnostics.readonly_modifier_can_only_appear_on_a_property_declaration_or_index_signature);\n }\n flags |= 64 /* Readonly */;\n lastReadonly = modifier;\n break;\n case 93 /* ExportKeyword */:\n if (flags & 1 /* Export */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"export\");\n }\n else if (flags & 2 /* Ambient */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"declare\");\n }\n else if (flags & 128 /* Abstract */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"abstract\");\n }\n else if (flags & 256 /* Async */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"async\");\n }\n else if (ts.isClassLike(node.parent)) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, \"export\");\n }\n else if (node.kind === 162 /* Parameter */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"export\");\n }\n flags |= 1 /* Export */;\n break;\n case 88 /* DefaultKeyword */:\n var container = node.parent.kind === 300 /* SourceFile */ ? node.parent : node.parent.parent;\n if (container.kind === 259 /* ModuleDeclaration */ && !ts.isAmbientModule(container)) {\n return grammarErrorOnNode(modifier, ts.Diagnostics.A_default_export_can_only_be_used_in_an_ECMAScript_style_module);\n }\n else if (!(flags & 1 /* Export */)) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"export\", \"default\");\n }\n flags |= 512 /* Default */;\n break;\n case 134 /* DeclareKeyword */:\n if (flags & 2 /* Ambient */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"declare\");\n }\n else if (flags & 256 /* Async */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, \"async\");\n }\n else if (flags & 16384 /* Override */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, \"override\");\n }\n else if (ts.isClassLike(node.parent) && !ts.isPropertyDeclaration(node)) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_class_elements_of_this_kind, \"declare\");\n }\n else if (node.kind === 162 /* Parameter */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"declare\");\n }\n else if ((node.parent.flags & 8388608 /* Ambient */) && node.parent.kind === 260 /* ModuleBlock */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics.A_declare_modifier_cannot_be_used_in_an_already_ambient_context);\n }\n else if (ts.isPrivateIdentifierClassElementDeclaration(node)) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, \"declare\");\n }\n flags |= 2 /* Ambient */;\n lastDeclare = modifier;\n break;\n case 126 /* AbstractKeyword */:\n if (flags & 128 /* Abstract */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"abstract\");\n }\n if (node.kind !== 255 /* ClassDeclaration */ &&\n node.kind !== 178 /* ConstructorType */) {\n if (node.kind !== 167 /* MethodDeclaration */ &&\n node.kind !== 165 /* PropertyDeclaration */ &&\n node.kind !== 170 /* GetAccessor */ &&\n node.kind !== 171 /* SetAccessor */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics.abstract_modifier_can_only_appear_on_a_class_method_or_property_declaration);\n }\n if (!(node.parent.kind === 255 /* ClassDeclaration */ && ts.hasSyntacticModifier(node.parent, 128 /* Abstract */))) {\n return grammarErrorOnNode(modifier, ts.Diagnostics.Abstract_methods_can_only_appear_within_an_abstract_class);\n }\n if (flags & 32 /* Static */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"static\", \"abstract\");\n }\n if (flags & 8 /* Private */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"private\", \"abstract\");\n }\n if (flags & 256 /* Async */ && lastAsync) {\n return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"async\", \"abstract\");\n }\n if (flags & 16384 /* Override */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_must_precede_1_modifier, \"abstract\", \"override\");\n }\n }\n if (ts.isNamedDeclaration(node) && node.name.kind === 80 /* PrivateIdentifier */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_a_private_identifier, \"abstract\");\n }\n flags |= 128 /* Abstract */;\n break;\n case 130 /* AsyncKeyword */:\n if (flags & 256 /* Async */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_already_seen, \"async\");\n }\n else if (flags & 2 /* Ambient */ || node.parent.flags & 8388608 /* Ambient */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_in_an_ambient_context, \"async\");\n }\n else if (node.kind === 162 /* Parameter */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_appear_on_a_parameter, \"async\");\n }\n if (flags & 128 /* Abstract */) {\n return grammarErrorOnNode(modifier, ts.Diagnostics._0_modifier_cannot_be_used_with_1_modifier, \"async\", \"abstract\");\n }\n flags |= 256 /* Async */;\n lastAsync = modifier;\n break;\n }\n }\n if (node.kind === 169 /* Constructor */) {\n if (flags & 32 /* Static */) {\n return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"static\");\n }\n if (flags & 128 /* Abstract */) {\n return grammarErrorOnNode(lastStatic, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"abstract\"); // TODO: GH#18217\n }\n if (flags & 16384 /* Override */) {\n return grammarErrorOnNode(lastOverride, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"override\"); // TODO: GH#18217\n }\n else if (flags & 256 /* Async */) {\n return grammarErrorOnNode(lastAsync, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"async\");\n }\n else if (flags & 64 /* Readonly */) {\n return grammarErrorOnNode(lastReadonly, ts.Diagnostics._0_modifier_cannot_appear_on_a_constructor_declaration, \"readonly\");\n }\n return false;\n }\n else if ((node.kind === 264 /* ImportDeclaration */ || node.kind === 263 /* ImportEqualsDeclaration */) && flags & 2 /* Ambient */) {\n return grammarErrorOnNode(lastDeclare, ts.Diagnostics.A_0_modifier_cannot_be_used_with_an_import_declaration, \"declare\");\n }\n else if (node.kind === 162 /* Parameter */ && (flags & 16476 /* ParameterPropertyModifier */) && ts.isBindingPattern(node.name)) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_parameter_property_may_not_be_declared_using_a_binding_pattern);\n }\n else if (node.kind === 162 /* Parameter */ && (flags & 16476 /* ParameterPropertyModifier */) && node.dotDotDotToken) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_parameter_property_cannot_be_declared_using_a_rest_parameter);\n }\n if (flags & 256 /* Async */) {\n return checkGrammarAsyncModifier(node, lastAsync);\n }\n return false;\n }\n /**\n * true | false: Early return this value from checkGrammarModifiers.\n * undefined: Need to do full checking on the modifiers.\n */\n function reportObviousModifierErrors(node) {\n return !node.modifiers\n ? false\n : shouldReportBadModifier(node)\n ? grammarErrorOnFirstToken(node, ts.Diagnostics.Modifiers_cannot_appear_here)\n : undefined;\n }\n function shouldReportBadModifier(node) {\n switch (node.kind) {\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 169 /* Constructor */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 174 /* IndexSignature */:\n case 259 /* ModuleDeclaration */:\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n case 270 /* ExportDeclaration */:\n case 269 /* ExportAssignment */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 162 /* Parameter */:\n return false;\n default:\n if (node.parent.kind === 260 /* ModuleBlock */ || node.parent.kind === 300 /* SourceFile */) {\n return false;\n }\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n return nodeHasAnyModifiersExcept(node, 130 /* AsyncKeyword */);\n case 255 /* ClassDeclaration */:\n case 178 /* ConstructorType */:\n return nodeHasAnyModifiersExcept(node, 126 /* AbstractKeyword */);\n case 256 /* InterfaceDeclaration */:\n case 235 /* VariableStatement */:\n case 257 /* TypeAliasDeclaration */:\n case 168 /* ClassStaticBlockDeclaration */:\n return true;\n case 258 /* EnumDeclaration */:\n return nodeHasAnyModifiersExcept(node, 85 /* ConstKeyword */);\n default:\n ts.Debug.fail();\n }\n }\n }\n function nodeHasAnyModifiersExcept(node, allowedModifier) {\n return node.modifiers.length > 1 || node.modifiers[0].kind !== allowedModifier;\n }\n function checkGrammarAsyncModifier(node, asyncModifier) {\n switch (node.kind) {\n case 167 /* MethodDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return false;\n }\n return grammarErrorOnNode(asyncModifier, ts.Diagnostics._0_modifier_cannot_be_used_here, \"async\");\n }\n function checkGrammarForDisallowedTrailingComma(list, diag) {\n if (diag === void 0) { diag = ts.Diagnostics.Trailing_comma_not_allowed; }\n if (list && list.hasTrailingComma) {\n return grammarErrorAtPos(list[0], list.end - \",\".length, \",\".length, diag);\n }\n return false;\n }\n function checkGrammarTypeParameterList(typeParameters, file) {\n if (typeParameters && typeParameters.length === 0) {\n var start = typeParameters.pos - \"<\".length;\n var end = ts.skipTrivia(file.text, typeParameters.end) + \">\".length;\n return grammarErrorAtPos(file, start, end - start, ts.Diagnostics.Type_parameter_list_cannot_be_empty);\n }\n return false;\n }\n function checkGrammarParameterList(parameters) {\n var seenOptionalParameter = false;\n var parameterCount = parameters.length;\n for (var i = 0; i < parameterCount; i++) {\n var parameter = parameters[i];\n if (parameter.dotDotDotToken) {\n if (i !== (parameterCount - 1)) {\n return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.A_rest_parameter_must_be_last_in_a_parameter_list);\n }\n if (!(parameter.flags & 8388608 /* Ambient */)) { // Allow `...foo,` in ambient declarations; see GH#23070\n checkGrammarForDisallowedTrailingComma(parameters, ts.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n }\n if (parameter.questionToken) {\n return grammarErrorOnNode(parameter.questionToken, ts.Diagnostics.A_rest_parameter_cannot_be_optional);\n }\n if (parameter.initializer) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.A_rest_parameter_cannot_have_an_initializer);\n }\n }\n else if (isOptionalParameter(parameter)) {\n seenOptionalParameter = true;\n if (parameter.questionToken && parameter.initializer) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.Parameter_cannot_have_question_mark_and_initializer);\n }\n }\n else if (seenOptionalParameter && !parameter.initializer) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.A_required_parameter_cannot_follow_an_optional_parameter);\n }\n }\n }\n function getNonSimpleParameters(parameters) {\n return ts.filter(parameters, function (parameter) { return !!parameter.initializer || ts.isBindingPattern(parameter.name) || ts.isRestParameter(parameter); });\n }\n function checkGrammarForUseStrictSimpleParameterList(node) {\n if (languageVersion >= 3 /* ES2016 */) {\n var useStrictDirective_1 = node.body && ts.isBlock(node.body) && ts.findUseStrictPrologue(node.body.statements);\n if (useStrictDirective_1) {\n var nonSimpleParameters = getNonSimpleParameters(node.parameters);\n if (ts.length(nonSimpleParameters)) {\n ts.forEach(nonSimpleParameters, function (parameter) {\n ts.addRelatedInfo(error(parameter, ts.Diagnostics.This_parameter_is_not_allowed_with_use_strict_directive), ts.createDiagnosticForNode(useStrictDirective_1, ts.Diagnostics.use_strict_directive_used_here));\n });\n var diagnostics_2 = nonSimpleParameters.map(function (parameter, index) { return (index === 0 ? ts.createDiagnosticForNode(parameter, ts.Diagnostics.Non_simple_parameter_declared_here) : ts.createDiagnosticForNode(parameter, ts.Diagnostics.and_here)); });\n ts.addRelatedInfo.apply(void 0, __spreadArray([error(useStrictDirective_1, ts.Diagnostics.use_strict_directive_cannot_be_used_with_non_simple_parameter_list)], diagnostics_2, false));\n return true;\n }\n }\n }\n return false;\n }\n function checkGrammarFunctionLikeDeclaration(node) {\n // Prevent cascading error by short-circuit\n var file = ts.getSourceFileOfNode(node);\n return checkGrammarDecoratorsAndModifiers(node) ||\n checkGrammarTypeParameterList(node.typeParameters, file) ||\n checkGrammarParameterList(node.parameters) ||\n checkGrammarArrowFunction(node, file) ||\n (ts.isFunctionLikeDeclaration(node) && checkGrammarForUseStrictSimpleParameterList(node));\n }\n function checkGrammarClassLikeDeclaration(node) {\n var file = ts.getSourceFileOfNode(node);\n return checkGrammarClassDeclarationHeritageClauses(node) ||\n checkGrammarTypeParameterList(node.typeParameters, file);\n }\n function checkGrammarArrowFunction(node, file) {\n if (!ts.isArrowFunction(node)) {\n return false;\n }\n var equalsGreaterThanToken = node.equalsGreaterThanToken;\n var startLine = ts.getLineAndCharacterOfPosition(file, equalsGreaterThanToken.pos).line;\n var endLine = ts.getLineAndCharacterOfPosition(file, equalsGreaterThanToken.end).line;\n return startLine !== endLine && grammarErrorOnNode(equalsGreaterThanToken, ts.Diagnostics.Line_terminator_not_permitted_before_arrow);\n }\n function checkGrammarIndexSignatureParameters(node) {\n var parameter = node.parameters[0];\n if (node.parameters.length !== 1) {\n if (parameter) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_must_have_exactly_one_parameter);\n }\n else {\n return grammarErrorOnNode(node, ts.Diagnostics.An_index_signature_must_have_exactly_one_parameter);\n }\n }\n checkGrammarForDisallowedTrailingComma(node.parameters, ts.Diagnostics.An_index_signature_cannot_have_a_trailing_comma);\n if (parameter.dotDotDotToken) {\n return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.An_index_signature_cannot_have_a_rest_parameter);\n }\n if (ts.hasEffectiveModifiers(parameter)) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_cannot_have_an_accessibility_modifier);\n }\n if (parameter.questionToken) {\n return grammarErrorOnNode(parameter.questionToken, ts.Diagnostics.An_index_signature_parameter_cannot_have_a_question_mark);\n }\n if (parameter.initializer) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_cannot_have_an_initializer);\n }\n if (!parameter.type) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_must_have_a_type_annotation);\n }\n var type = getTypeFromTypeNode(parameter.type);\n if (someType(type, function (t) { return !!(t.flags & 8576 /* StringOrNumberLiteralOrUnique */); }) || isGenericType(type)) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead);\n }\n if (!everyType(type, isValidIndexKeyType)) {\n return grammarErrorOnNode(parameter.name, ts.Diagnostics.An_index_signature_parameter_type_must_be_string_number_symbol_or_a_template_literal_type);\n }\n if (!node.type) {\n return grammarErrorOnNode(node, ts.Diagnostics.An_index_signature_must_have_a_type_annotation);\n }\n return false;\n }\n function checkGrammarIndexSignature(node) {\n // Prevent cascading error by short-circuit\n return checkGrammarDecoratorsAndModifiers(node) || checkGrammarIndexSignatureParameters(node);\n }\n function checkGrammarForAtLeastOneTypeArgument(node, typeArguments) {\n if (typeArguments && typeArguments.length === 0) {\n var sourceFile = ts.getSourceFileOfNode(node);\n var start = typeArguments.pos - \"<\".length;\n var end = ts.skipTrivia(sourceFile.text, typeArguments.end) + \">\".length;\n return grammarErrorAtPos(sourceFile, start, end - start, ts.Diagnostics.Type_argument_list_cannot_be_empty);\n }\n return false;\n }\n function checkGrammarTypeArguments(node, typeArguments) {\n return checkGrammarForDisallowedTrailingComma(typeArguments) ||\n checkGrammarForAtLeastOneTypeArgument(node, typeArguments);\n }\n function checkGrammarTaggedTemplateChain(node) {\n if (node.questionDotToken || node.flags & 32 /* OptionalChain */) {\n return grammarErrorOnNode(node.template, ts.Diagnostics.Tagged_template_expressions_are_not_permitted_in_an_optional_chain);\n }\n return false;\n }\n function checkGrammarForOmittedArgument(args) {\n if (args) {\n for (var _i = 0, args_4 = args; _i < args_4.length; _i++) {\n var arg = args_4[_i];\n if (arg.kind === 225 /* OmittedExpression */) {\n return grammarErrorAtPos(arg, arg.pos, 0, ts.Diagnostics.Argument_expression_expected);\n }\n }\n }\n return false;\n }\n function checkGrammarArguments(args) {\n return checkGrammarForOmittedArgument(args);\n }\n function checkGrammarHeritageClause(node) {\n var types = node.types;\n if (checkGrammarForDisallowedTrailingComma(types)) {\n return true;\n }\n if (types && types.length === 0) {\n var listType = ts.tokenToString(node.token);\n return grammarErrorAtPos(node, types.pos, 0, ts.Diagnostics._0_list_cannot_be_empty, listType);\n }\n return ts.some(types, checkGrammarExpressionWithTypeArguments);\n }\n function checkGrammarExpressionWithTypeArguments(node) {\n return checkGrammarTypeArguments(node, node.typeArguments);\n }\n function checkGrammarClassDeclarationHeritageClauses(node) {\n var seenExtendsClause = false;\n var seenImplementsClause = false;\n if (!checkGrammarDecoratorsAndModifiers(node) && node.heritageClauses) {\n for (var _i = 0, _a = node.heritageClauses; _i < _a.length; _i++) {\n var heritageClause = _a[_i];\n if (heritageClause.token === 94 /* ExtendsKeyword */) {\n if (seenExtendsClause) {\n return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_already_seen);\n }\n if (seenImplementsClause) {\n return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_must_precede_implements_clause);\n }\n if (heritageClause.types.length > 1) {\n return grammarErrorOnFirstToken(heritageClause.types[1], ts.Diagnostics.Classes_can_only_extend_a_single_class);\n }\n seenExtendsClause = true;\n }\n else {\n ts.Debug.assert(heritageClause.token === 117 /* ImplementsKeyword */);\n if (seenImplementsClause) {\n return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.implements_clause_already_seen);\n }\n seenImplementsClause = true;\n }\n // Grammar checking heritageClause inside class declaration\n checkGrammarHeritageClause(heritageClause);\n }\n }\n }\n function checkGrammarInterfaceDeclaration(node) {\n var seenExtendsClause = false;\n if (node.heritageClauses) {\n for (var _i = 0, _a = node.heritageClauses; _i < _a.length; _i++) {\n var heritageClause = _a[_i];\n if (heritageClause.token === 94 /* ExtendsKeyword */) {\n if (seenExtendsClause) {\n return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.extends_clause_already_seen);\n }\n seenExtendsClause = true;\n }\n else {\n ts.Debug.assert(heritageClause.token === 117 /* ImplementsKeyword */);\n return grammarErrorOnFirstToken(heritageClause, ts.Diagnostics.Interface_declaration_cannot_have_implements_clause);\n }\n // Grammar checking heritageClause inside class declaration\n checkGrammarHeritageClause(heritageClause);\n }\n }\n return false;\n }\n function checkGrammarComputedPropertyName(node) {\n // If node is not a computedPropertyName, just skip the grammar checking\n if (node.kind !== 160 /* ComputedPropertyName */) {\n return false;\n }\n var computedPropertyName = node;\n if (computedPropertyName.expression.kind === 219 /* BinaryExpression */ && computedPropertyName.expression.operatorToken.kind === 27 /* CommaToken */) {\n return grammarErrorOnNode(computedPropertyName.expression, ts.Diagnostics.A_comma_expression_is_not_allowed_in_a_computed_property_name);\n }\n return false;\n }\n function checkGrammarForGenerator(node) {\n if (node.asteriskToken) {\n ts.Debug.assert(node.kind === 254 /* FunctionDeclaration */ ||\n node.kind === 211 /* FunctionExpression */ ||\n node.kind === 167 /* MethodDeclaration */);\n if (node.flags & 8388608 /* Ambient */) {\n return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.Generators_are_not_allowed_in_an_ambient_context);\n }\n if (!node.body) {\n return grammarErrorOnNode(node.asteriskToken, ts.Diagnostics.An_overload_signature_cannot_be_declared_as_a_generator);\n }\n }\n }\n function checkGrammarForInvalidQuestionMark(questionToken, message) {\n return !!questionToken && grammarErrorOnNode(questionToken, message);\n }\n function checkGrammarForInvalidExclamationToken(exclamationToken, message) {\n return !!exclamationToken && grammarErrorOnNode(exclamationToken, message);\n }\n function checkGrammarObjectLiteralExpression(node, inDestructuring) {\n var seen = new ts.Map();\n for (var _i = 0, _a = node.properties; _i < _a.length; _i++) {\n var prop = _a[_i];\n if (prop.kind === 293 /* SpreadAssignment */) {\n if (inDestructuring) {\n // a rest property cannot be destructured any further\n var expression = ts.skipParentheses(prop.expression);\n if (ts.isArrayLiteralExpression(expression) || ts.isObjectLiteralExpression(expression)) {\n return grammarErrorOnNode(prop.expression, ts.Diagnostics.A_rest_element_cannot_contain_a_binding_pattern);\n }\n }\n continue;\n }\n var name = prop.name;\n if (name.kind === 160 /* ComputedPropertyName */) {\n // If the name is not a ComputedPropertyName, the grammar checking will skip it\n checkGrammarComputedPropertyName(name);\n }\n if (prop.kind === 292 /* ShorthandPropertyAssignment */ && !inDestructuring && prop.objectAssignmentInitializer) {\n // having objectAssignmentInitializer is only valid in ObjectAssignmentPattern\n // outside of destructuring it is a syntax error\n return grammarErrorOnNode(prop.equalsToken, ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern);\n }\n if (name.kind === 80 /* PrivateIdentifier */) {\n grammarErrorOnNode(name, ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies);\n }\n // Modifiers are never allowed on properties except for 'async' on a method declaration\n if (prop.modifiers) {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n for (var _b = 0, _c = prop.modifiers; _b < _c.length; _b++) { // TODO: GH#19955\n var mod = _c[_b];\n if (mod.kind !== 130 /* AsyncKeyword */ || prop.kind !== 167 /* MethodDeclaration */) {\n grammarErrorOnNode(mod, ts.Diagnostics._0_modifier_cannot_be_used_here, ts.getTextOfNode(mod));\n }\n }\n }\n // ECMA-262 11.1.5 Object Initializer\n // If previous is not undefined then throw a SyntaxError exception if any of the following conditions are true\n // a.This production is contained in strict code and IsDataDescriptor(previous) is true and\n // IsDataDescriptor(propId.descriptor) is true.\n // b.IsDataDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true.\n // c.IsAccessorDescriptor(previous) is true and IsDataDescriptor(propId.descriptor) is true.\n // d.IsAccessorDescriptor(previous) is true and IsAccessorDescriptor(propId.descriptor) is true\n // and either both previous and propId.descriptor have[[Get]] fields or both previous and propId.descriptor have[[Set]] fields\n var currentKind = void 0;\n switch (prop.kind) {\n case 292 /* ShorthandPropertyAssignment */:\n checkGrammarForInvalidExclamationToken(prop.exclamationToken, ts.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context);\n // falls through\n case 291 /* PropertyAssignment */:\n // Grammar checking for computedPropertyName and shorthandPropertyAssignment\n checkGrammarForInvalidQuestionMark(prop.questionToken, ts.Diagnostics.An_object_member_cannot_be_declared_optional);\n if (name.kind === 8 /* NumericLiteral */) {\n checkGrammarNumericLiteral(name);\n }\n currentKind = 4 /* PropertyAssignment */;\n break;\n case 167 /* MethodDeclaration */:\n currentKind = 8 /* Method */;\n break;\n case 170 /* GetAccessor */:\n currentKind = 1 /* GetAccessor */;\n break;\n case 171 /* SetAccessor */:\n currentKind = 2 /* SetAccessor */;\n break;\n default:\n throw ts.Debug.assertNever(prop, \"Unexpected syntax kind:\" + prop.kind);\n }\n if (!inDestructuring) {\n var effectiveName = ts.getPropertyNameForPropertyNameNode(name);\n if (effectiveName === undefined) {\n continue;\n }\n var existingKind = seen.get(effectiveName);\n if (!existingKind) {\n seen.set(effectiveName, currentKind);\n }\n else {\n if ((currentKind & 12 /* PropertyAssignmentOrMethod */) && (existingKind & 12 /* PropertyAssignmentOrMethod */)) {\n grammarErrorOnNode(name, ts.Diagnostics.Duplicate_identifier_0, ts.getTextOfNode(name));\n }\n else if ((currentKind & 3 /* GetOrSetAccessor */) && (existingKind & 3 /* GetOrSetAccessor */)) {\n if (existingKind !== 3 /* GetOrSetAccessor */ && currentKind !== existingKind) {\n seen.set(effectiveName, currentKind | existingKind);\n }\n else {\n return grammarErrorOnNode(name, ts.Diagnostics.An_object_literal_cannot_have_multiple_get_Slashset_accessors_with_the_same_name);\n }\n }\n else {\n return grammarErrorOnNode(name, ts.Diagnostics.An_object_literal_cannot_have_property_and_accessor_with_the_same_name);\n }\n }\n }\n }\n }\n function checkGrammarJsxElement(node) {\n checkGrammarJsxName(node.tagName);\n checkGrammarTypeArguments(node, node.typeArguments);\n var seen = new ts.Map();\n for (var _i = 0, _a = node.attributes.properties; _i < _a.length; _i++) {\n var attr = _a[_i];\n if (attr.kind === 285 /* JsxSpreadAttribute */) {\n continue;\n }\n var name = attr.name, initializer = attr.initializer;\n if (!seen.get(name.escapedText)) {\n seen.set(name.escapedText, true);\n }\n else {\n return grammarErrorOnNode(name, ts.Diagnostics.JSX_elements_cannot_have_multiple_attributes_with_the_same_name);\n }\n if (initializer && initializer.kind === 286 /* JsxExpression */ && !initializer.expression) {\n return grammarErrorOnNode(initializer, ts.Diagnostics.JSX_attributes_must_only_be_assigned_a_non_empty_expression);\n }\n }\n }\n function checkGrammarJsxName(node) {\n if (ts.isPropertyAccessExpression(node)) {\n var propName = node;\n do {\n var check_1 = checkGrammarJsxNestedIdentifier(propName.name);\n if (check_1) {\n return check_1;\n }\n propName = propName.expression;\n } while (ts.isPropertyAccessExpression(propName));\n var check = checkGrammarJsxNestedIdentifier(propName);\n if (check) {\n return check;\n }\n }\n function checkGrammarJsxNestedIdentifier(name) {\n if (ts.isIdentifier(name) && ts.idText(name).indexOf(\":\") !== -1) {\n return grammarErrorOnNode(name, ts.Diagnostics.JSX_property_access_expressions_cannot_include_JSX_namespace_names);\n }\n }\n }\n function checkGrammarJsxExpression(node) {\n if (node.expression && ts.isCommaSequence(node.expression)) {\n return grammarErrorOnNode(node.expression, ts.Diagnostics.JSX_expressions_may_not_use_the_comma_operator_Did_you_mean_to_write_an_array);\n }\n }\n function checkGrammarForInOrForOfStatement(forInOrOfStatement) {\n if (checkGrammarStatementInAmbientContext(forInOrOfStatement)) {\n return true;\n }\n if (forInOrOfStatement.kind === 242 /* ForOfStatement */ && forInOrOfStatement.awaitModifier) {\n if (!(forInOrOfStatement.flags & 32768 /* AwaitContext */)) {\n var sourceFile = ts.getSourceFileOfNode(forInOrOfStatement);\n if (ts.isInTopLevelContext(forInOrOfStatement)) {\n if (!hasParseDiagnostics(sourceFile)) {\n if (!ts.isEffectiveExternalModule(sourceFile, compilerOptions)) {\n diagnostics.add(ts.createDiagnosticForNode(forInOrOfStatement.awaitModifier, ts.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module));\n }\n if ((moduleKind !== ts.ModuleKind.ESNext && moduleKind !== ts.ModuleKind.System) || languageVersion < 4 /* ES2017 */) {\n diagnostics.add(ts.createDiagnosticForNode(forInOrOfStatement.awaitModifier, ts.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher));\n }\n }\n }\n else {\n // use of 'for-await-of' in non-async function\n if (!hasParseDiagnostics(sourceFile)) {\n var diagnostic = ts.createDiagnosticForNode(forInOrOfStatement.awaitModifier, ts.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules);\n var func = ts.getContainingFunction(forInOrOfStatement);\n if (func && func.kind !== 169 /* Constructor */) {\n ts.Debug.assert((ts.getFunctionFlags(func) & 2 /* Async */) === 0, \"Enclosing function should never be an async function.\");\n var relatedInfo = ts.createDiagnosticForNode(func, ts.Diagnostics.Did_you_mean_to_mark_this_function_as_async);\n ts.addRelatedInfo(diagnostic, relatedInfo);\n }\n diagnostics.add(diagnostic);\n return true;\n }\n }\n return false;\n }\n }\n if (ts.isForOfStatement(forInOrOfStatement) && !(forInOrOfStatement.flags & 32768 /* AwaitContext */) &&\n ts.isIdentifier(forInOrOfStatement.initializer) && forInOrOfStatement.initializer.escapedText === \"async\") {\n grammarErrorOnNode(forInOrOfStatement.initializer, ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_may_not_be_async);\n return false;\n }\n if (forInOrOfStatement.initializer.kind === 253 /* VariableDeclarationList */) {\n var variableList = forInOrOfStatement.initializer;\n if (!checkGrammarVariableDeclarationList(variableList)) {\n var declarations = variableList.declarations;\n // declarations.length can be zero if there is an error in variable declaration in for-of or for-in\n // See http://www.ecma-international.org/ecma-262/6.0/#sec-for-in-and-for-of-statements for details\n // For example:\n // var let = 10;\n // for (let of [1,2,3]) {} // this is invalid ES6 syntax\n // for (let in [1,2,3]) {} // this is invalid ES6 syntax\n // We will then want to skip on grammar checking on variableList declaration\n if (!declarations.length) {\n return false;\n }\n if (declarations.length > 1) {\n var diagnostic = forInOrOfStatement.kind === 241 /* ForInStatement */\n ? ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_in_statement\n : ts.Diagnostics.Only_a_single_variable_declaration_is_allowed_in_a_for_of_statement;\n return grammarErrorOnFirstToken(variableList.declarations[1], diagnostic);\n }\n var firstDeclaration = declarations[0];\n if (firstDeclaration.initializer) {\n var diagnostic = forInOrOfStatement.kind === 241 /* ForInStatement */\n ? ts.Diagnostics.The_variable_declaration_of_a_for_in_statement_cannot_have_an_initializer\n : ts.Diagnostics.The_variable_declaration_of_a_for_of_statement_cannot_have_an_initializer;\n return grammarErrorOnNode(firstDeclaration.name, diagnostic);\n }\n if (firstDeclaration.type) {\n var diagnostic = forInOrOfStatement.kind === 241 /* ForInStatement */\n ? ts.Diagnostics.The_left_hand_side_of_a_for_in_statement_cannot_use_a_type_annotation\n : ts.Diagnostics.The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation;\n return grammarErrorOnNode(firstDeclaration, diagnostic);\n }\n }\n }\n return false;\n }\n function checkGrammarAccessor(accessor) {\n if (!(accessor.flags & 8388608 /* Ambient */) && (accessor.parent.kind !== 180 /* TypeLiteral */) && (accessor.parent.kind !== 256 /* InterfaceDeclaration */)) {\n if (languageVersion < 1 /* ES5 */) {\n return grammarErrorOnNode(accessor.name, ts.Diagnostics.Accessors_are_only_available_when_targeting_ECMAScript_5_and_higher);\n }\n if (languageVersion < 2 /* ES2015 */ && ts.isPrivateIdentifier(accessor.name)) {\n return grammarErrorOnNode(accessor.name, ts.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n }\n if (accessor.body === undefined && !ts.hasSyntacticModifier(accessor, 128 /* Abstract */)) {\n return grammarErrorAtPos(accessor, accessor.end - 1, \";\".length, ts.Diagnostics._0_expected, \"{\");\n }\n }\n if (accessor.body) {\n if (ts.hasSyntacticModifier(accessor, 128 /* Abstract */)) {\n return grammarErrorOnNode(accessor, ts.Diagnostics.An_abstract_accessor_cannot_have_an_implementation);\n }\n if (accessor.parent.kind === 180 /* TypeLiteral */ || accessor.parent.kind === 256 /* InterfaceDeclaration */) {\n return grammarErrorOnNode(accessor.body, ts.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);\n }\n }\n if (accessor.typeParameters) {\n return grammarErrorOnNode(accessor.name, ts.Diagnostics.An_accessor_cannot_have_type_parameters);\n }\n if (!doesAccessorHaveCorrectParameterCount(accessor)) {\n return grammarErrorOnNode(accessor.name, accessor.kind === 170 /* GetAccessor */ ?\n ts.Diagnostics.A_get_accessor_cannot_have_parameters :\n ts.Diagnostics.A_set_accessor_must_have_exactly_one_parameter);\n }\n if (accessor.kind === 171 /* SetAccessor */) {\n if (accessor.type) {\n return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_set_accessor_cannot_have_a_return_type_annotation);\n }\n var parameter = ts.Debug.checkDefined(ts.getSetAccessorValueParameter(accessor), \"Return value does not match parameter count assertion.\");\n if (parameter.dotDotDotToken) {\n return grammarErrorOnNode(parameter.dotDotDotToken, ts.Diagnostics.A_set_accessor_cannot_have_rest_parameter);\n }\n if (parameter.questionToken) {\n return grammarErrorOnNode(parameter.questionToken, ts.Diagnostics.A_set_accessor_cannot_have_an_optional_parameter);\n }\n if (parameter.initializer) {\n return grammarErrorOnNode(accessor.name, ts.Diagnostics.A_set_accessor_parameter_cannot_have_an_initializer);\n }\n }\n return false;\n }\n /** Does the accessor have the right number of parameters?\n * A get accessor has no parameters or a single `this` parameter.\n * A set accessor has one parameter or a `this` parameter and one more parameter.\n */\n function doesAccessorHaveCorrectParameterCount(accessor) {\n return getAccessorThisParameter(accessor) || accessor.parameters.length === (accessor.kind === 170 /* GetAccessor */ ? 0 : 1);\n }\n function getAccessorThisParameter(accessor) {\n if (accessor.parameters.length === (accessor.kind === 170 /* GetAccessor */ ? 1 : 2)) {\n return ts.getThisParameter(accessor);\n }\n }\n function checkGrammarTypeOperatorNode(node) {\n if (node.operator === 152 /* UniqueKeyword */) {\n if (node.type.kind !== 149 /* SymbolKeyword */) {\n return grammarErrorOnNode(node.type, ts.Diagnostics._0_expected, ts.tokenToString(149 /* SymbolKeyword */));\n }\n var parent = ts.walkUpParenthesizedTypes(node.parent);\n if (ts.isInJSFile(parent) && ts.isJSDocTypeExpression(parent)) {\n parent = parent.parent;\n if (ts.isJSDocTypeTag(parent)) {\n // walk up past JSDoc comment node\n parent = parent.parent.parent;\n }\n }\n switch (parent.kind) {\n case 252 /* VariableDeclaration */:\n var decl = parent;\n if (decl.name.kind !== 79 /* Identifier */) {\n return grammarErrorOnNode(node, ts.Diagnostics.unique_symbol_types_may_not_be_used_on_a_variable_declaration_with_a_binding_name);\n }\n if (!ts.isVariableDeclarationInVariableStatement(decl)) {\n return grammarErrorOnNode(node, ts.Diagnostics.unique_symbol_types_are_only_allowed_on_variables_in_a_variable_statement);\n }\n if (!(decl.parent.flags & 2 /* Const */)) {\n return grammarErrorOnNode(parent.name, ts.Diagnostics.A_variable_whose_type_is_a_unique_symbol_type_must_be_const);\n }\n break;\n case 165 /* PropertyDeclaration */:\n if (!ts.isStatic(parent) ||\n !ts.hasEffectiveReadonlyModifier(parent)) {\n return grammarErrorOnNode(parent.name, ts.Diagnostics.A_property_of_a_class_whose_type_is_a_unique_symbol_type_must_be_both_static_and_readonly);\n }\n break;\n case 164 /* PropertySignature */:\n if (!ts.hasSyntacticModifier(parent, 64 /* Readonly */)) {\n return grammarErrorOnNode(parent.name, ts.Diagnostics.A_property_of_an_interface_or_type_literal_whose_type_is_a_unique_symbol_type_must_be_readonly);\n }\n break;\n default:\n return grammarErrorOnNode(node, ts.Diagnostics.unique_symbol_types_are_not_allowed_here);\n }\n }\n else if (node.operator === 143 /* ReadonlyKeyword */) {\n if (node.type.kind !== 181 /* ArrayType */ && node.type.kind !== 182 /* TupleType */) {\n return grammarErrorOnFirstToken(node, ts.Diagnostics.readonly_type_modifier_is_only_permitted_on_array_and_tuple_literal_types, ts.tokenToString(149 /* SymbolKeyword */));\n }\n }\n }\n function checkGrammarForInvalidDynamicName(node, message) {\n if (isNonBindableDynamicName(node)) {\n return grammarErrorOnNode(node, message);\n }\n }\n function checkGrammarMethod(node) {\n if (checkGrammarFunctionLikeDeclaration(node)) {\n return true;\n }\n if (node.kind === 167 /* MethodDeclaration */) {\n if (node.parent.kind === 203 /* ObjectLiteralExpression */) {\n // We only disallow modifier on a method declaration if it is a property of object-literal-expression\n if (node.modifiers && !(node.modifiers.length === 1 && ts.first(node.modifiers).kind === 130 /* AsyncKeyword */)) {\n return grammarErrorOnFirstToken(node, ts.Diagnostics.Modifiers_cannot_appear_here);\n }\n else if (checkGrammarForInvalidQuestionMark(node.questionToken, ts.Diagnostics.An_object_member_cannot_be_declared_optional)) {\n return true;\n }\n else if (checkGrammarForInvalidExclamationToken(node.exclamationToken, ts.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context)) {\n return true;\n }\n else if (node.body === undefined) {\n return grammarErrorAtPos(node, node.end - 1, \";\".length, ts.Diagnostics._0_expected, \"{\");\n }\n }\n if (checkGrammarForGenerator(node)) {\n return true;\n }\n }\n if (ts.isClassLike(node.parent)) {\n if (languageVersion < 2 /* ES2015 */ && ts.isPrivateIdentifier(node.name)) {\n return grammarErrorOnNode(node.name, ts.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n }\n // Technically, computed properties in ambient contexts is disallowed\n // for property declarations and accessors too, not just methods.\n // However, property declarations disallow computed names in general,\n // and accessors are not allowed in ambient contexts in general,\n // so this error only really matters for methods.\n if (node.flags & 8388608 /* Ambient */) {\n return checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_an_ambient_context_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n }\n else if (node.kind === 167 /* MethodDeclaration */ && !node.body) {\n return checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_a_method_overload_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n }\n }\n else if (node.parent.kind === 256 /* InterfaceDeclaration */) {\n return checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n }\n else if (node.parent.kind === 180 /* TypeLiteral */) {\n return checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type);\n }\n }\n function checkGrammarBreakOrContinueStatement(node) {\n var current = node;\n while (current) {\n if (ts.isFunctionLikeOrClassStaticBlockDeclaration(current)) {\n return grammarErrorOnNode(node, ts.Diagnostics.Jump_target_cannot_cross_function_boundary);\n }\n switch (current.kind) {\n case 248 /* LabeledStatement */:\n if (node.label && current.label.escapedText === node.label.escapedText) {\n // found matching label - verify that label usage is correct\n // continue can only target labels that are on iteration statements\n var isMisplacedContinueLabel = node.kind === 243 /* ContinueStatement */\n && !ts.isIterationStatement(current.statement, /*lookInLabeledStatement*/ true);\n if (isMisplacedContinueLabel) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement);\n }\n return false;\n }\n break;\n case 247 /* SwitchStatement */:\n if (node.kind === 244 /* BreakStatement */ && !node.label) {\n // unlabeled break within switch statement - ok\n return false;\n }\n break;\n default:\n if (ts.isIterationStatement(current, /*lookInLabeledStatement*/ false) && !node.label) {\n // unlabeled break or continue within iteration statement - ok\n return false;\n }\n break;\n }\n current = current.parent;\n }\n if (node.label) {\n var message = node.kind === 244 /* BreakStatement */\n ? ts.Diagnostics.A_break_statement_can_only_jump_to_a_label_of_an_enclosing_statement\n : ts.Diagnostics.A_continue_statement_can_only_jump_to_a_label_of_an_enclosing_iteration_statement;\n return grammarErrorOnNode(node, message);\n }\n else {\n var message = node.kind === 244 /* BreakStatement */\n ? ts.Diagnostics.A_break_statement_can_only_be_used_within_an_enclosing_iteration_or_switch_statement\n : ts.Diagnostics.A_continue_statement_can_only_be_used_within_an_enclosing_iteration_statement;\n return grammarErrorOnNode(node, message);\n }\n }\n function checkGrammarBindingElement(node) {\n if (node.dotDotDotToken) {\n var elements = node.parent.elements;\n if (node !== ts.last(elements)) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_rest_element_must_be_last_in_a_destructuring_pattern);\n }\n checkGrammarForDisallowedTrailingComma(elements, ts.Diagnostics.A_rest_parameter_or_binding_pattern_may_not_have_a_trailing_comma);\n if (node.propertyName) {\n return grammarErrorOnNode(node.name, ts.Diagnostics.A_rest_element_cannot_have_a_property_name);\n }\n }\n if (node.dotDotDotToken && node.initializer) {\n // Error on equals token which immediately precedes the initializer\n return grammarErrorAtPos(node, node.initializer.pos - 1, 1, ts.Diagnostics.A_rest_element_cannot_have_an_initializer);\n }\n }\n function isStringOrNumberLiteralExpression(expr) {\n return ts.isStringOrNumericLiteralLike(expr) ||\n expr.kind === 217 /* PrefixUnaryExpression */ && expr.operator === 40 /* MinusToken */ &&\n expr.operand.kind === 8 /* NumericLiteral */;\n }\n function isBigIntLiteralExpression(expr) {\n return expr.kind === 9 /* BigIntLiteral */ ||\n expr.kind === 217 /* PrefixUnaryExpression */ && expr.operator === 40 /* MinusToken */ &&\n expr.operand.kind === 9 /* BigIntLiteral */;\n }\n function isSimpleLiteralEnumReference(expr) {\n if ((ts.isPropertyAccessExpression(expr) || (ts.isElementAccessExpression(expr) && isStringOrNumberLiteralExpression(expr.argumentExpression))) &&\n ts.isEntityNameExpression(expr.expression)) {\n return !!(checkExpressionCached(expr).flags & 1024 /* EnumLiteral */);\n }\n }\n function checkAmbientInitializer(node) {\n var initializer = node.initializer;\n if (initializer) {\n var isInvalidInitializer = !(isStringOrNumberLiteralExpression(initializer) ||\n isSimpleLiteralEnumReference(initializer) ||\n initializer.kind === 110 /* TrueKeyword */ || initializer.kind === 95 /* FalseKeyword */ ||\n isBigIntLiteralExpression(initializer));\n var isConstOrReadonly = ts.isDeclarationReadonly(node) || ts.isVariableDeclaration(node) && ts.isVarConst(node);\n if (isConstOrReadonly && !node.type) {\n if (isInvalidInitializer) {\n return grammarErrorOnNode(initializer, ts.Diagnostics.A_const_initializer_in_an_ambient_context_must_be_a_string_or_numeric_literal_or_literal_enum_reference);\n }\n }\n else {\n return grammarErrorOnNode(initializer, ts.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);\n }\n if (!isConstOrReadonly || isInvalidInitializer) {\n return grammarErrorOnNode(initializer, ts.Diagnostics.Initializers_are_not_allowed_in_ambient_contexts);\n }\n }\n }\n function checkGrammarVariableDeclaration(node) {\n if (node.parent.parent.kind !== 241 /* ForInStatement */ && node.parent.parent.kind !== 242 /* ForOfStatement */) {\n if (node.flags & 8388608 /* Ambient */) {\n checkAmbientInitializer(node);\n }\n else if (!node.initializer) {\n if (ts.isBindingPattern(node.name) && !ts.isBindingPattern(node.parent)) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_destructuring_declaration_must_have_an_initializer);\n }\n if (ts.isVarConst(node)) {\n return grammarErrorOnNode(node, ts.Diagnostics.const_declarations_must_be_initialized);\n }\n }\n }\n if (node.exclamationToken && (node.parent.parent.kind !== 235 /* VariableStatement */ || !node.type || node.initializer || node.flags & 8388608 /* Ambient */)) {\n var message = node.initializer\n ? ts.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions\n : !node.type\n ? ts.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations\n : ts.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context;\n return grammarErrorOnNode(node.exclamationToken, message);\n }\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n if (moduleKind < ts.ModuleKind.ES2015 && moduleKind !== ts.ModuleKind.System &&\n !(node.parent.parent.flags & 8388608 /* Ambient */) && ts.hasSyntacticModifier(node.parent.parent, 1 /* Export */)) {\n checkESModuleMarker(node.name);\n }\n var checkLetConstNames = (ts.isLet(node) || ts.isVarConst(node));\n // 1. LexicalDeclaration : LetOrConst BindingList ;\n // It is a Syntax Error if the BoundNames of BindingList contains \"let\".\n // 2. ForDeclaration: ForDeclaration : LetOrConst ForBinding\n // It is a Syntax Error if the BoundNames of ForDeclaration contains \"let\".\n // It is a SyntaxError if a VariableDeclaration or VariableDeclarationNoIn occurs within strict code\n // and its Identifier is eval or arguments\n return checkLetConstNames && checkGrammarNameInLetOrConstDeclarations(node.name);\n }\n function checkESModuleMarker(name) {\n if (name.kind === 79 /* Identifier */) {\n if (ts.idText(name) === \"__esModule\") {\n return grammarErrorOnNodeSkippedOn(\"noEmit\", name, ts.Diagnostics.Identifier_expected_esModule_is_reserved_as_an_exported_marker_when_transforming_ECMAScript_modules);\n }\n }\n else {\n var elements = name.elements;\n for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {\n var element = elements_1[_i];\n if (!ts.isOmittedExpression(element)) {\n return checkESModuleMarker(element.name);\n }\n }\n }\n return false;\n }\n function checkGrammarNameInLetOrConstDeclarations(name) {\n if (name.kind === 79 /* Identifier */) {\n if (name.originalKeywordKind === 119 /* LetKeyword */) {\n return grammarErrorOnNode(name, ts.Diagnostics.let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations);\n }\n }\n else {\n var elements = name.elements;\n for (var _i = 0, elements_2 = elements; _i < elements_2.length; _i++) {\n var element = elements_2[_i];\n if (!ts.isOmittedExpression(element)) {\n checkGrammarNameInLetOrConstDeclarations(element.name);\n }\n }\n }\n return false;\n }\n function checkGrammarVariableDeclarationList(declarationList) {\n var declarations = declarationList.declarations;\n if (checkGrammarForDisallowedTrailingComma(declarationList.declarations)) {\n return true;\n }\n if (!declarationList.declarations.length) {\n return grammarErrorAtPos(declarationList, declarations.pos, declarations.end - declarations.pos, ts.Diagnostics.Variable_declaration_list_cannot_be_empty);\n }\n return false;\n }\n function allowLetAndConstDeclarations(parent) {\n switch (parent.kind) {\n case 237 /* IfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 246 /* WithStatement */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n return false;\n case 248 /* LabeledStatement */:\n return allowLetAndConstDeclarations(parent.parent);\n }\n return true;\n }\n function checkGrammarForDisallowedLetOrConstStatement(node) {\n if (!allowLetAndConstDeclarations(node.parent)) {\n if (ts.isLet(node.declarationList)) {\n return grammarErrorOnNode(node, ts.Diagnostics.let_declarations_can_only_be_declared_inside_a_block);\n }\n else if (ts.isVarConst(node.declarationList)) {\n return grammarErrorOnNode(node, ts.Diagnostics.const_declarations_can_only_be_declared_inside_a_block);\n }\n }\n }\n function checkGrammarMetaProperty(node) {\n var escapedText = node.name.escapedText;\n switch (node.keywordToken) {\n case 103 /* NewKeyword */:\n if (escapedText !== \"target\") {\n return grammarErrorOnNode(node.name, ts.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, node.name.escapedText, ts.tokenToString(node.keywordToken), \"target\");\n }\n break;\n case 100 /* ImportKeyword */:\n if (escapedText !== \"meta\") {\n return grammarErrorOnNode(node.name, ts.Diagnostics._0_is_not_a_valid_meta_property_for_keyword_1_Did_you_mean_2, node.name.escapedText, ts.tokenToString(node.keywordToken), \"meta\");\n }\n break;\n }\n }\n function hasParseDiagnostics(sourceFile) {\n return sourceFile.parseDiagnostics.length > 0;\n }\n function grammarErrorOnFirstToken(node, message, arg0, arg1, arg2) {\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n var span = ts.getSpanOfTokenAtPosition(sourceFile, node.pos);\n diagnostics.add(ts.createFileDiagnostic(sourceFile, span.start, span.length, message, arg0, arg1, arg2));\n return true;\n }\n return false;\n }\n function grammarErrorAtPos(nodeForSourceFile, start, length, message, arg0, arg1, arg2) {\n var sourceFile = ts.getSourceFileOfNode(nodeForSourceFile);\n if (!hasParseDiagnostics(sourceFile)) {\n diagnostics.add(ts.createFileDiagnostic(sourceFile, start, length, message, arg0, arg1, arg2));\n return true;\n }\n return false;\n }\n function grammarErrorOnNodeSkippedOn(key, node, message, arg0, arg1, arg2) {\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n errorSkippedOn(key, node, message, arg0, arg1, arg2);\n return true;\n }\n return false;\n }\n function grammarErrorOnNode(node, message, arg0, arg1, arg2) {\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n diagnostics.add(ts.createDiagnosticForNode(node, message, arg0, arg1, arg2));\n return true;\n }\n return false;\n }\n function checkGrammarConstructorTypeParameters(node) {\n var jsdocTypeParameters = ts.isInJSFile(node) ? ts.getJSDocTypeParameterDeclarations(node) : undefined;\n var range = node.typeParameters || jsdocTypeParameters && ts.firstOrUndefined(jsdocTypeParameters);\n if (range) {\n var pos = range.pos === range.end ? range.pos : ts.skipTrivia(ts.getSourceFileOfNode(node).text, range.pos);\n return grammarErrorAtPos(node, pos, range.end - pos, ts.Diagnostics.Type_parameters_cannot_appear_on_a_constructor_declaration);\n }\n }\n function checkGrammarConstructorTypeAnnotation(node) {\n var type = ts.getEffectiveReturnTypeNode(node);\n if (type) {\n return grammarErrorOnNode(type, ts.Diagnostics.Type_annotation_cannot_appear_on_a_constructor_declaration);\n }\n }\n function checkGrammarProperty(node) {\n if (ts.isClassLike(node.parent)) {\n if (ts.isStringLiteral(node.name) && node.name.text === \"constructor\") {\n return grammarErrorOnNode(node.name, ts.Diagnostics.Classes_may_not_have_a_field_named_constructor);\n }\n if (checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_a_class_property_declaration_must_have_a_simple_literal_type_or_a_unique_symbol_type)) {\n return true;\n }\n if (languageVersion < 2 /* ES2015 */ && ts.isPrivateIdentifier(node.name)) {\n return grammarErrorOnNode(node.name, ts.Diagnostics.Private_identifiers_are_only_available_when_targeting_ECMAScript_2015_and_higher);\n }\n }\n else if (node.parent.kind === 256 /* InterfaceDeclaration */) {\n if (checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_an_interface_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) {\n return true;\n }\n if (node.initializer) {\n return grammarErrorOnNode(node.initializer, ts.Diagnostics.An_interface_property_cannot_have_an_initializer);\n }\n }\n else if (node.parent.kind === 180 /* TypeLiteral */) {\n if (checkGrammarForInvalidDynamicName(node.name, ts.Diagnostics.A_computed_property_name_in_a_type_literal_must_refer_to_an_expression_whose_type_is_a_literal_type_or_a_unique_symbol_type)) {\n return true;\n }\n if (node.initializer) {\n return grammarErrorOnNode(node.initializer, ts.Diagnostics.A_type_literal_property_cannot_have_an_initializer);\n }\n }\n if (node.flags & 8388608 /* Ambient */) {\n checkAmbientInitializer(node);\n }\n if (ts.isPropertyDeclaration(node) && node.exclamationToken && (!ts.isClassLike(node.parent) || !node.type || node.initializer ||\n node.flags & 8388608 /* Ambient */ || ts.isStatic(node) || ts.hasAbstractModifier(node))) {\n var message = node.initializer\n ? ts.Diagnostics.Declarations_with_initializers_cannot_also_have_definite_assignment_assertions\n : !node.type\n ? ts.Diagnostics.Declarations_with_definite_assignment_assertions_must_also_have_type_annotations\n : ts.Diagnostics.A_definite_assignment_assertion_is_not_permitted_in_this_context;\n return grammarErrorOnNode(node.exclamationToken, message);\n }\n }\n function checkGrammarTopLevelElementForRequiredDeclareModifier(node) {\n // A declare modifier is required for any top level .d.ts declaration except export=, export default, export as namespace\n // interfaces and imports categories:\n //\n // DeclarationElement:\n // ExportAssignment\n // export_opt InterfaceDeclaration\n // export_opt TypeAliasDeclaration\n // export_opt ImportDeclaration\n // export_opt ExternalImportDeclaration\n // export_opt AmbientDeclaration\n //\n // TODO: The spec needs to be amended to reflect this grammar.\n if (node.kind === 256 /* InterfaceDeclaration */ ||\n node.kind === 257 /* TypeAliasDeclaration */ ||\n node.kind === 264 /* ImportDeclaration */ ||\n node.kind === 263 /* ImportEqualsDeclaration */ ||\n node.kind === 270 /* ExportDeclaration */ ||\n node.kind === 269 /* ExportAssignment */ ||\n node.kind === 262 /* NamespaceExportDeclaration */ ||\n ts.hasSyntacticModifier(node, 2 /* Ambient */ | 1 /* Export */ | 512 /* Default */)) {\n return false;\n }\n return grammarErrorOnFirstToken(node, ts.Diagnostics.Top_level_declarations_in_d_ts_files_must_start_with_either_a_declare_or_export_modifier);\n }\n function checkGrammarTopLevelElementsForRequiredDeclareModifier(file) {\n for (var _i = 0, _a = file.statements; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (ts.isDeclaration(decl) || decl.kind === 235 /* VariableStatement */) {\n if (checkGrammarTopLevelElementForRequiredDeclareModifier(decl)) {\n return true;\n }\n }\n }\n return false;\n }\n function checkGrammarSourceFile(node) {\n return !!(node.flags & 8388608 /* Ambient */) && checkGrammarTopLevelElementsForRequiredDeclareModifier(node);\n }\n function checkGrammarStatementInAmbientContext(node) {\n if (node.flags & 8388608 /* Ambient */) {\n // Find containing block which is either Block, ModuleBlock, SourceFile\n var links = getNodeLinks(node);\n if (!links.hasReportedStatementInAmbientContext && (ts.isFunctionLike(node.parent) || ts.isAccessor(node.parent))) {\n return getNodeLinks(node).hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, ts.Diagnostics.An_implementation_cannot_be_declared_in_ambient_contexts);\n }\n // We are either parented by another statement, or some sort of block.\n // If we're in a block, we only want to really report an error once\n // to prevent noisiness. So use a bit on the block to indicate if\n // this has already been reported, and don't report if it has.\n //\n if (node.parent.kind === 233 /* Block */ || node.parent.kind === 260 /* ModuleBlock */ || node.parent.kind === 300 /* SourceFile */) {\n var links_2 = getNodeLinks(node.parent);\n // Check if the containing block ever report this error\n if (!links_2.hasReportedStatementInAmbientContext) {\n return links_2.hasReportedStatementInAmbientContext = grammarErrorOnFirstToken(node, ts.Diagnostics.Statements_are_not_allowed_in_ambient_contexts);\n }\n }\n else {\n // We must be parented by a statement. If so, there's no need\n // to report the error as our parent will have already done it.\n // Debug.assert(isStatement(node.parent));\n }\n }\n return false;\n }\n function checkGrammarNumericLiteral(node) {\n // Grammar checking\n if (node.numericLiteralFlags & 32 /* Octal */) {\n var diagnosticMessage = void 0;\n if (languageVersion >= 1 /* ES5 */) {\n diagnosticMessage = ts.Diagnostics.Octal_literals_are_not_available_when_targeting_ECMAScript_5_and_higher_Use_the_syntax_0;\n }\n else if (ts.isChildOfNodeWithKind(node, 194 /* LiteralType */)) {\n diagnosticMessage = ts.Diagnostics.Octal_literal_types_must_use_ES2015_syntax_Use_the_syntax_0;\n }\n else if (ts.isChildOfNodeWithKind(node, 294 /* EnumMember */)) {\n diagnosticMessage = ts.Diagnostics.Octal_literals_are_not_allowed_in_enums_members_initializer_Use_the_syntax_0;\n }\n if (diagnosticMessage) {\n var withMinus = ts.isPrefixUnaryExpression(node.parent) && node.parent.operator === 40 /* MinusToken */;\n var literal = (withMinus ? \"-\" : \"\") + \"0o\" + node.text;\n return grammarErrorOnNode(withMinus ? node.parent : node, diagnosticMessage, literal);\n }\n }\n // Realism (size) checking\n checkNumericLiteralValueSize(node);\n return false;\n }\n function checkNumericLiteralValueSize(node) {\n // Scientific notation (e.g. 2e54 and 1e00000000010) can't be converted to bigint\n // Literals with 15 or fewer characters aren't long enough to reach past 2^53 - 1\n // Fractional numbers (e.g. 9000000000000000.001) are inherently imprecise anyway\n if (node.numericLiteralFlags & 16 /* Scientific */ || node.text.length <= 15 || node.text.indexOf(\".\") !== -1) {\n return;\n }\n // We can't rely on the runtime to accurately store and compare extremely large numeric values\n // Even for internal use, we use getTextOfNode: https://github.com/microsoft/TypeScript/issues/33298\n // Thus, if the runtime claims a too-large number is lower than Number.MAX_SAFE_INTEGER,\n // it's likely addition operations on it will fail too\n var apparentValue = +ts.getTextOfNode(node);\n if (apparentValue <= Math.pow(2, 53) - 1 && apparentValue + 1 > apparentValue) {\n return;\n }\n addErrorOrSuggestion(/*isError*/ false, ts.createDiagnosticForNode(node, ts.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers));\n }\n function checkGrammarBigIntLiteral(node) {\n var literalType = ts.isLiteralTypeNode(node.parent) ||\n ts.isPrefixUnaryExpression(node.parent) && ts.isLiteralTypeNode(node.parent.parent);\n if (!literalType) {\n if (languageVersion < 7 /* ES2020 */) {\n if (grammarErrorOnNode(node, ts.Diagnostics.BigInt_literals_are_not_available_when_targeting_lower_than_ES2020)) {\n return true;\n }\n }\n }\n return false;\n }\n function grammarErrorAfterFirstToken(node, message, arg0, arg1, arg2) {\n var sourceFile = ts.getSourceFileOfNode(node);\n if (!hasParseDiagnostics(sourceFile)) {\n var span = ts.getSpanOfTokenAtPosition(sourceFile, node.pos);\n diagnostics.add(ts.createFileDiagnostic(sourceFile, ts.textSpanEnd(span), /*length*/ 0, message, arg0, arg1, arg2));\n return true;\n }\n return false;\n }\n function getAmbientModules() {\n if (!ambientModulesCache) {\n ambientModulesCache = [];\n globals.forEach(function (global, sym) {\n // No need to `unescapeLeadingUnderscores`, an escaped symbol is never an ambient module.\n if (ambientModuleSymbolRegex.test(sym)) {\n ambientModulesCache.push(global);\n }\n });\n }\n return ambientModulesCache;\n }\n function checkGrammarImportClause(node) {\n if (node.isTypeOnly && node.name && node.namedBindings) {\n return grammarErrorOnNode(node, ts.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both);\n }\n return false;\n }\n function checkGrammarImportCallExpression(node) {\n if (moduleKind === ts.ModuleKind.ES2015) {\n return grammarErrorOnNode(node, ts.Diagnostics.Dynamic_imports_are_only_supported_when_the_module_flag_is_set_to_es2020_esnext_commonjs_amd_system_or_umd);\n }\n if (node.typeArguments) {\n return grammarErrorOnNode(node, ts.Diagnostics.Dynamic_import_cannot_have_type_arguments);\n }\n var nodeArguments = node.arguments;\n if (nodeArguments.length !== 1) {\n return grammarErrorOnNode(node, ts.Diagnostics.Dynamic_import_must_have_one_specifier_as_an_argument);\n }\n checkGrammarForDisallowedTrailingComma(nodeArguments);\n // see: parseArgumentOrArrayLiteralElement...we use this function which parse arguments of callExpression to parse specifier for dynamic import.\n // parseArgumentOrArrayLiteralElement allows spread element to be in an argument list which is not allowed as specifier in dynamic import.\n if (ts.isSpreadElement(nodeArguments[0])) {\n return grammarErrorOnNode(nodeArguments[0], ts.Diagnostics.Specifier_of_dynamic_import_cannot_be_spread_element);\n }\n return false;\n }\n function findMatchingTypeReferenceOrTypeAliasReference(source, unionTarget) {\n var sourceObjectFlags = ts.getObjectFlags(source);\n if (sourceObjectFlags & (4 /* Reference */ | 16 /* Anonymous */) && unionTarget.flags & 1048576 /* Union */) {\n return ts.find(unionTarget.types, function (target) {\n if (target.flags & 524288 /* Object */) {\n var overlapObjFlags = sourceObjectFlags & ts.getObjectFlags(target);\n if (overlapObjFlags & 4 /* Reference */) {\n return source.target === target.target;\n }\n if (overlapObjFlags & 16 /* Anonymous */) {\n return !!source.aliasSymbol && source.aliasSymbol === target.aliasSymbol;\n }\n }\n return false;\n });\n }\n }\n function findBestTypeForObjectLiteral(source, unionTarget) {\n if (ts.getObjectFlags(source) & 128 /* ObjectLiteral */ && someType(unionTarget, isArrayLikeType)) {\n return ts.find(unionTarget.types, function (t) { return !isArrayLikeType(t); });\n }\n }\n function findBestTypeForInvokable(source, unionTarget) {\n var signatureKind = 0 /* Call */;\n var hasSignatures = getSignaturesOfType(source, signatureKind).length > 0 ||\n (signatureKind = 1 /* Construct */, getSignaturesOfType(source, signatureKind).length > 0);\n if (hasSignatures) {\n return ts.find(unionTarget.types, function (t) { return getSignaturesOfType(t, signatureKind).length > 0; });\n }\n }\n function findMostOverlappyType(source, unionTarget) {\n var bestMatch;\n var matchingCount = 0;\n for (var _i = 0, _a = unionTarget.types; _i < _a.length; _i++) {\n var target = _a[_i];\n var overlap = getIntersectionType([getIndexType(source), getIndexType(target)]);\n if (overlap.flags & 4194304 /* Index */) {\n // perfect overlap of keys\n bestMatch = target;\n matchingCount = Infinity;\n }\n else if (overlap.flags & 1048576 /* Union */) {\n // We only want to account for literal types otherwise.\n // If we have a union of index types, it seems likely that we\n // needed to elaborate between two generic mapped types anyway.\n var len = ts.length(ts.filter(overlap.types, isUnitType));\n if (len >= matchingCount) {\n bestMatch = target;\n matchingCount = len;\n }\n }\n else if (isUnitType(overlap) && 1 >= matchingCount) {\n bestMatch = target;\n matchingCount = 1;\n }\n }\n return bestMatch;\n }\n function filterPrimitivesIfContainsNonPrimitive(type) {\n if (maybeTypeOfKind(type, 67108864 /* NonPrimitive */)) {\n var result = filterType(type, function (t) { return !(t.flags & 131068 /* Primitive */); });\n if (!(result.flags & 131072 /* Never */)) {\n return result;\n }\n }\n return type;\n }\n // Keep this up-to-date with the same logic within `getApparentTypeOfContextualType`, since they should behave similarly\n function findMatchingDiscriminantType(source, target, isRelatedTo, skipPartial) {\n if (target.flags & 1048576 /* Union */ && source.flags & (2097152 /* Intersection */ | 524288 /* Object */)) {\n var match = getMatchingUnionConstituentForType(target, source);\n if (match) {\n return match;\n }\n var sourceProperties = getPropertiesOfType(source);\n if (sourceProperties) {\n var sourcePropertiesFiltered = findDiscriminantProperties(sourceProperties, target);\n if (sourcePropertiesFiltered) {\n return discriminateTypeByDiscriminableItems(target, ts.map(sourcePropertiesFiltered, function (p) { return [function () { return getTypeOfSymbol(p); }, p.escapedName]; }), isRelatedTo, /*defaultValue*/ undefined, skipPartial);\n }\n }\n }\n return undefined;\n }\n }\n ts.createTypeChecker = createTypeChecker;\n function isNotAccessor(declaration) {\n // Accessors check for their own matching duplicates, and in contexts where they are valid, there are already duplicate identifier checks\n return !ts.isAccessor(declaration);\n }\n function isNotOverload(declaration) {\n return (declaration.kind !== 254 /* FunctionDeclaration */ && declaration.kind !== 167 /* MethodDeclaration */) ||\n !!declaration.body;\n }\n /** Like 'isDeclarationName', but returns true for LHS of `import { x as y }` or `export { x as y }`. */\n function isDeclarationNameOrImportPropertyName(name) {\n switch (name.parent.kind) {\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n return ts.isIdentifier(name);\n default:\n return ts.isDeclarationName(name);\n }\n }\n var JsxNames;\n (function (JsxNames) {\n JsxNames.JSX = \"JSX\";\n JsxNames.IntrinsicElements = \"IntrinsicElements\";\n JsxNames.ElementClass = \"ElementClass\";\n JsxNames.ElementAttributesPropertyNameContainer = \"ElementAttributesProperty\"; // TODO: Deprecate and remove support\n JsxNames.ElementChildrenAttributeNameContainer = \"ElementChildrenAttribute\";\n JsxNames.Element = \"Element\";\n JsxNames.IntrinsicAttributes = \"IntrinsicAttributes\";\n JsxNames.IntrinsicClassAttributes = \"IntrinsicClassAttributes\";\n JsxNames.LibraryManagedAttributes = \"LibraryManagedAttributes\";\n })(JsxNames || (JsxNames = {}));\n function getIterationTypesKeyFromIterationTypeKind(typeKind) {\n switch (typeKind) {\n case 0 /* Yield */: return \"yieldType\";\n case 1 /* Return */: return \"returnType\";\n case 2 /* Next */: return \"nextType\";\n }\n }\n function signatureHasRestParameter(s) {\n return !!(s.flags & 1 /* HasRestParameter */);\n }\n ts.signatureHasRestParameter = signatureHasRestParameter;\n function signatureHasLiteralTypes(s) {\n return !!(s.flags & 2 /* HasLiteralTypes */);\n }\n ts.signatureHasLiteralTypes = signatureHasLiteralTypes;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function visitNode(node, visitor, test, lift) {\n if (node === undefined || visitor === undefined) {\n return node;\n }\n var visited = visitor(node);\n if (visited === node) {\n return node;\n }\n var visitedNode;\n if (visited === undefined) {\n return undefined;\n }\n else if (ts.isArray(visited)) {\n visitedNode = (lift || extractSingleNode)(visited);\n }\n else {\n visitedNode = visited;\n }\n ts.Debug.assertNode(visitedNode, test);\n return visitedNode;\n }\n ts.visitNode = visitNode;\n /**\n * Visits a NodeArray using the supplied visitor, possibly returning a new NodeArray in its place.\n *\n * @param nodes The NodeArray to visit.\n * @param visitor The callback used to visit a Node.\n * @param test A node test to execute for each node.\n * @param start An optional value indicating the starting offset at which to start visiting.\n * @param count An optional value indicating the maximum number of nodes to visit.\n */\n function visitNodes(nodes, visitor, test, start, count) {\n if (nodes === undefined || visitor === undefined) {\n return nodes;\n }\n var updated;\n // Ensure start and count have valid values\n var length = nodes.length;\n if (start === undefined || start < 0) {\n start = 0;\n }\n if (count === undefined || count > length - start) {\n count = length - start;\n }\n var hasTrailingComma;\n var pos = -1;\n var end = -1;\n if (start > 0 || count < length) {\n // If we are not visiting all of the original nodes, we must always create a new array.\n // Since this is a fragment of a node array, we do not copy over the previous location\n // and will only copy over `hasTrailingComma` if we are including the last element.\n updated = [];\n hasTrailingComma = nodes.hasTrailingComma && start + count === length;\n }\n // Visit each original node.\n for (var i = 0; i < count; i++) {\n var node = nodes[i + start];\n var visited = node !== undefined ? visitor(node) : undefined;\n if (updated !== undefined || visited === undefined || visited !== node) {\n if (updated === undefined) {\n // Ensure we have a copy of `nodes`, up to the current index.\n updated = nodes.slice(0, i);\n hasTrailingComma = nodes.hasTrailingComma;\n pos = nodes.pos;\n end = nodes.end;\n }\n if (visited) {\n if (ts.isArray(visited)) {\n for (var _i = 0, visited_1 = visited; _i < visited_1.length; _i++) {\n var visitedNode = visited_1[_i];\n void ts.Debug.assertNode(visitedNode, test);\n updated.push(visitedNode);\n }\n }\n else {\n void ts.Debug.assertNode(visited, test);\n updated.push(visited);\n }\n }\n }\n }\n if (updated) {\n // TODO(rbuckton): Remove dependency on `ts.factory` in favor of a provided factory.\n var updatedArray = ts.factory.createNodeArray(updated, hasTrailingComma);\n ts.setTextRangePosEnd(updatedArray, pos, end);\n return updatedArray;\n }\n return nodes;\n }\n ts.visitNodes = visitNodes;\n /**\n * Starts a new lexical environment and visits a statement list, ending the lexical environment\n * and merging hoisted declarations upon completion.\n */\n function visitLexicalEnvironment(statements, visitor, context, start, ensureUseStrict, nodesVisitor) {\n if (nodesVisitor === void 0) { nodesVisitor = visitNodes; }\n context.startLexicalEnvironment();\n statements = nodesVisitor(statements, visitor, ts.isStatement, start);\n if (ensureUseStrict)\n statements = context.factory.ensureUseStrict(statements);\n return ts.factory.mergeLexicalEnvironment(statements, context.endLexicalEnvironment());\n }\n ts.visitLexicalEnvironment = visitLexicalEnvironment;\n function visitParameterList(nodes, visitor, context, nodesVisitor) {\n if (nodesVisitor === void 0) { nodesVisitor = visitNodes; }\n var updated;\n context.startLexicalEnvironment();\n if (nodes) {\n context.setLexicalEnvironmentFlags(1 /* InParameters */, true);\n updated = nodesVisitor(nodes, visitor, ts.isParameterDeclaration);\n // As of ES2015, any runtime execution of that occurs in for a parameter (such as evaluating an\n // initializer or a binding pattern), occurs in its own lexical scope. As a result, any expression\n // that we might transform that introduces a temporary variable would fail as the temporary variable\n // exists in a different lexical scope. To address this, we move any binding patterns and initializers\n // in a parameter list to the body if we detect a variable being hoisted while visiting a parameter list\n // when the emit target is greater than ES2015.\n if (context.getLexicalEnvironmentFlags() & 2 /* VariablesHoistedInParameters */ &&\n ts.getEmitScriptTarget(context.getCompilerOptions()) >= 2 /* ES2015 */) {\n updated = addDefaultValueAssignmentsIfNeeded(updated, context);\n }\n context.setLexicalEnvironmentFlags(1 /* InParameters */, false);\n }\n context.suspendLexicalEnvironment();\n return updated;\n }\n ts.visitParameterList = visitParameterList;\n function addDefaultValueAssignmentsIfNeeded(parameters, context) {\n var result;\n for (var i = 0; i < parameters.length; i++) {\n var parameter = parameters[i];\n var updated = addDefaultValueAssignmentIfNeeded(parameter, context);\n if (result || updated !== parameter) {\n if (!result)\n result = parameters.slice(0, i);\n result[i] = updated;\n }\n }\n if (result) {\n return ts.setTextRange(context.factory.createNodeArray(result, parameters.hasTrailingComma), parameters);\n }\n return parameters;\n }\n function addDefaultValueAssignmentIfNeeded(parameter, context) {\n // A rest parameter cannot have a binding pattern or an initializer,\n // so let's just ignore it.\n return parameter.dotDotDotToken ? parameter :\n ts.isBindingPattern(parameter.name) ? addDefaultValueAssignmentForBindingPattern(parameter, context) :\n parameter.initializer ? addDefaultValueAssignmentForInitializer(parameter, parameter.name, parameter.initializer, context) :\n parameter;\n }\n function addDefaultValueAssignmentForBindingPattern(parameter, context) {\n var factory = context.factory;\n context.addInitializationStatement(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(parameter.name, \n /*exclamationToken*/ undefined, parameter.type, parameter.initializer ?\n factory.createConditionalExpression(factory.createStrictEquality(factory.getGeneratedNameForNode(parameter), factory.createVoidZero()), \n /*questionToken*/ undefined, parameter.initializer, \n /*colonToken*/ undefined, factory.getGeneratedNameForNode(parameter)) :\n factory.getGeneratedNameForNode(parameter)),\n ])));\n return factory.updateParameterDeclaration(parameter, parameter.decorators, parameter.modifiers, parameter.dotDotDotToken, factory.getGeneratedNameForNode(parameter), parameter.questionToken, parameter.type, \n /*initializer*/ undefined);\n }\n function addDefaultValueAssignmentForInitializer(parameter, name, initializer, context) {\n var factory = context.factory;\n context.addInitializationStatement(factory.createIfStatement(factory.createTypeCheck(factory.cloneNode(name), \"undefined\"), ts.setEmitFlags(ts.setTextRange(factory.createBlock([\n factory.createExpressionStatement(ts.setEmitFlags(ts.setTextRange(factory.createAssignment(ts.setEmitFlags(factory.cloneNode(name), 48 /* NoSourceMap */), ts.setEmitFlags(initializer, 48 /* NoSourceMap */ | ts.getEmitFlags(initializer) | 1536 /* NoComments */)), parameter), 1536 /* NoComments */))\n ]), parameter), 1 /* SingleLine */ | 32 /* NoTrailingSourceMap */ | 384 /* NoTokenSourceMaps */ | 1536 /* NoComments */)));\n return factory.updateParameterDeclaration(parameter, parameter.decorators, parameter.modifiers, parameter.dotDotDotToken, parameter.name, parameter.questionToken, parameter.type, \n /*initializer*/ undefined);\n }\n function visitFunctionBody(node, visitor, context, nodeVisitor) {\n if (nodeVisitor === void 0) { nodeVisitor = visitNode; }\n context.resumeLexicalEnvironment();\n var updated = nodeVisitor(node, visitor, ts.isConciseBody);\n var declarations = context.endLexicalEnvironment();\n if (ts.some(declarations)) {\n if (!updated) {\n return context.factory.createBlock(declarations);\n }\n var block = context.factory.converters.convertToFunctionBlock(updated);\n var statements = ts.factory.mergeLexicalEnvironment(block.statements, declarations);\n return context.factory.updateBlock(block, statements);\n }\n return updated;\n }\n ts.visitFunctionBody = visitFunctionBody;\n /**\n * Visits an iteration body, adding any block-scoped variables required by the transformation.\n */\n function visitIterationBody(body, visitor, context) {\n context.startBlockScope();\n var updated = visitNode(body, visitor, ts.isStatement, context.factory.liftToBlock);\n var declarations = context.endBlockScope();\n if (ts.some(declarations)) {\n if (ts.isBlock(updated)) {\n declarations.push.apply(declarations, updated.statements);\n return context.factory.updateBlock(updated, declarations);\n }\n declarations.push(updated);\n return context.factory.createBlock(declarations);\n }\n return updated;\n }\n ts.visitIterationBody = visitIterationBody;\n function visitEachChild(node, visitor, context, nodesVisitor, tokenVisitor, nodeVisitor) {\n if (nodesVisitor === void 0) { nodesVisitor = visitNodes; }\n if (nodeVisitor === void 0) { nodeVisitor = visitNode; }\n if (node === undefined) {\n return undefined;\n }\n var kind = node.kind;\n // No need to visit nodes with no children.\n if ((kind > 0 /* FirstToken */ && kind <= 158 /* LastToken */) || kind === 190 /* ThisType */) {\n return node;\n }\n var factory = context.factory;\n switch (kind) {\n // Names\n case 79 /* Identifier */:\n ts.Debug.type(node);\n return factory.updateIdentifier(node, nodesVisitor(node.typeArguments, visitor, ts.isTypeNodeOrTypeParameterDeclaration));\n case 159 /* QualifiedName */:\n ts.Debug.type(node);\n return factory.updateQualifiedName(node, nodeVisitor(node.left, visitor, ts.isEntityName), nodeVisitor(node.right, visitor, ts.isIdentifier));\n case 160 /* ComputedPropertyName */:\n ts.Debug.type(node);\n return factory.updateComputedPropertyName(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n // Signature elements\n case 161 /* TypeParameter */:\n ts.Debug.type(node);\n return factory.updateTypeParameterDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.constraint, visitor, ts.isTypeNode), nodeVisitor(node.default, visitor, ts.isTypeNode));\n case 162 /* Parameter */:\n ts.Debug.type(node);\n return factory.updateParameterDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));\n case 163 /* Decorator */:\n ts.Debug.type(node);\n return factory.updateDecorator(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n // Type elements\n case 164 /* PropertySignature */:\n ts.Debug.type(node);\n return factory.updatePropertySignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isToken), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 165 /* PropertyDeclaration */:\n ts.Debug.type(node);\n return factory.updatePropertyDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), \n // QuestionToken and ExclamationToken is uniqued in Property Declaration and the signature of 'updateProperty' is that too\n nodeVisitor(node.questionToken || node.exclamationToken, tokenVisitor, ts.isQuestionOrExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));\n case 166 /* MethodSignature */:\n ts.Debug.type(node);\n return factory.updateMethodSignature(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 167 /* MethodDeclaration */:\n ts.Debug.type(node);\n return factory.updateMethodDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 169 /* Constructor */:\n ts.Debug.type(node);\n return factory.updateConstructorDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 170 /* GetAccessor */:\n ts.Debug.type(node);\n return factory.updateGetAccessorDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 171 /* SetAccessor */:\n ts.Debug.type(node);\n return factory.updateSetAccessorDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isPropertyName), visitParameterList(node.parameters, visitor, context, nodesVisitor), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 168 /* ClassStaticBlockDeclaration */:\n ts.Debug.type(node);\n context.startLexicalEnvironment();\n context.suspendLexicalEnvironment();\n return factory.updateClassStaticBlockDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 172 /* CallSignature */:\n ts.Debug.type(node);\n return factory.updateCallSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 173 /* ConstructSignature */:\n ts.Debug.type(node);\n return factory.updateConstructSignature(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 174 /* IndexSignature */:\n ts.Debug.type(node);\n return factory.updateIndexSignature(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n // Types\n case 175 /* TypePredicate */:\n ts.Debug.type(node);\n return factory.updateTypePredicateNode(node, nodeVisitor(node.assertsModifier, visitor, ts.isAssertsKeyword), nodeVisitor(node.parameterName, visitor, ts.isIdentifierOrThisTypeNode), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 176 /* TypeReference */:\n ts.Debug.type(node);\n return factory.updateTypeReferenceNode(node, nodeVisitor(node.typeName, visitor, ts.isEntityName), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));\n case 177 /* FunctionType */:\n ts.Debug.type(node);\n return factory.updateFunctionTypeNode(node, nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 178 /* ConstructorType */:\n ts.Debug.type(node);\n return factory.updateConstructorTypeNode(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.parameters, visitor, ts.isParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 179 /* TypeQuery */:\n ts.Debug.type(node);\n return factory.updateTypeQueryNode(node, nodeVisitor(node.exprName, visitor, ts.isEntityName));\n case 180 /* TypeLiteral */:\n ts.Debug.type(node);\n return factory.updateTypeLiteralNode(node, nodesVisitor(node.members, visitor, ts.isTypeElement));\n case 181 /* ArrayType */:\n ts.Debug.type(node);\n return factory.updateArrayTypeNode(node, nodeVisitor(node.elementType, visitor, ts.isTypeNode));\n case 182 /* TupleType */:\n ts.Debug.type(node);\n return factory.updateTupleTypeNode(node, nodesVisitor(node.elements, visitor, ts.isTypeNode));\n case 183 /* OptionalType */:\n ts.Debug.type(node);\n return factory.updateOptionalTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 184 /* RestType */:\n ts.Debug.type(node);\n return factory.updateRestTypeNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 185 /* UnionType */:\n ts.Debug.type(node);\n return factory.updateUnionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));\n case 186 /* IntersectionType */:\n ts.Debug.type(node);\n return factory.updateIntersectionTypeNode(node, nodesVisitor(node.types, visitor, ts.isTypeNode));\n case 187 /* ConditionalType */:\n ts.Debug.type(node);\n return factory.updateConditionalTypeNode(node, nodeVisitor(node.checkType, visitor, ts.isTypeNode), nodeVisitor(node.extendsType, visitor, ts.isTypeNode), nodeVisitor(node.trueType, visitor, ts.isTypeNode), nodeVisitor(node.falseType, visitor, ts.isTypeNode));\n case 188 /* InferType */:\n ts.Debug.type(node);\n return factory.updateInferTypeNode(node, nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration));\n case 198 /* ImportType */:\n ts.Debug.type(node);\n return factory.updateImportTypeNode(node, nodeVisitor(node.argument, visitor, ts.isTypeNode), nodeVisitor(node.qualifier, visitor, ts.isEntityName), visitNodes(node.typeArguments, visitor, ts.isTypeNode), node.isTypeOf);\n case 195 /* NamedTupleMember */:\n ts.Debug.type(node);\n return factory.updateNamedTupleMember(node, visitNode(node.dotDotDotToken, visitor, ts.isDotDotDotToken), visitNode(node.name, visitor, ts.isIdentifier), visitNode(node.questionToken, visitor, ts.isQuestionToken), visitNode(node.type, visitor, ts.isTypeNode));\n case 189 /* ParenthesizedType */:\n ts.Debug.type(node);\n return factory.updateParenthesizedType(node, nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 191 /* TypeOperator */:\n ts.Debug.type(node);\n return factory.updateTypeOperatorNode(node, nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 192 /* IndexedAccessType */:\n ts.Debug.type(node);\n return factory.updateIndexedAccessTypeNode(node, nodeVisitor(node.objectType, visitor, ts.isTypeNode), nodeVisitor(node.indexType, visitor, ts.isTypeNode));\n case 193 /* MappedType */:\n ts.Debug.type(node);\n return factory.updateMappedTypeNode(node, nodeVisitor(node.readonlyToken, tokenVisitor, ts.isReadonlyKeywordOrPlusOrMinusToken), nodeVisitor(node.typeParameter, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.nameType, visitor, ts.isTypeNode), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionOrPlusOrMinusToken), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 194 /* LiteralType */:\n ts.Debug.type(node);\n return factory.updateLiteralTypeNode(node, nodeVisitor(node.literal, visitor, ts.isExpression));\n case 196 /* TemplateLiteralType */:\n ts.Debug.type(node);\n return factory.updateTemplateLiteralType(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateLiteralTypeSpan));\n case 197 /* TemplateLiteralTypeSpan */:\n ts.Debug.type(node);\n return factory.updateTemplateLiteralTypeSpan(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));\n // Binding patterns\n case 199 /* ObjectBindingPattern */:\n ts.Debug.type(node);\n return factory.updateObjectBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isBindingElement));\n case 200 /* ArrayBindingPattern */:\n ts.Debug.type(node);\n return factory.updateArrayBindingPattern(node, nodesVisitor(node.elements, visitor, ts.isArrayBindingElement));\n case 201 /* BindingElement */:\n ts.Debug.type(node);\n return factory.updateBindingElement(node, nodeVisitor(node.dotDotDotToken, tokenVisitor, ts.isDotDotDotToken), nodeVisitor(node.propertyName, visitor, ts.isPropertyName), nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.initializer, visitor, ts.isExpression));\n // Expression\n case 202 /* ArrayLiteralExpression */:\n ts.Debug.type(node);\n return factory.updateArrayLiteralExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));\n case 203 /* ObjectLiteralExpression */:\n ts.Debug.type(node);\n return factory.updateObjectLiteralExpression(node, nodesVisitor(node.properties, visitor, ts.isObjectLiteralElementLike));\n case 204 /* PropertyAccessExpression */:\n if (node.flags & 32 /* OptionalChain */) {\n ts.Debug.type(node);\n return factory.updatePropertyAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.name, visitor, ts.isMemberName));\n }\n ts.Debug.type(node);\n return factory.updatePropertyAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.name, visitor, ts.isMemberName));\n case 205 /* ElementAccessExpression */:\n if (node.flags & 32 /* OptionalChain */) {\n ts.Debug.type(node);\n return factory.updateElementAccessChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));\n }\n ts.Debug.type(node);\n return factory.updateElementAccessExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.argumentExpression, visitor, ts.isExpression));\n case 206 /* CallExpression */:\n if (node.flags & 32 /* OptionalChain */) {\n ts.Debug.type(node);\n return factory.updateCallChain(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.questionDotToken, tokenVisitor, ts.isQuestionDotToken), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));\n }\n ts.Debug.type(node);\n return factory.updateCallExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));\n case 207 /* NewExpression */:\n ts.Debug.type(node);\n return factory.updateNewExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodesVisitor(node.arguments, visitor, ts.isExpression));\n case 208 /* TaggedTemplateExpression */:\n ts.Debug.type(node);\n return factory.updateTaggedTemplateExpression(node, nodeVisitor(node.tag, visitor, ts.isExpression), visitNodes(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.template, visitor, ts.isTemplateLiteral));\n case 209 /* TypeAssertionExpression */:\n ts.Debug.type(node);\n return factory.updateTypeAssertion(node, nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.expression, visitor, ts.isExpression));\n case 210 /* ParenthesizedExpression */:\n ts.Debug.type(node);\n return factory.updateParenthesizedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 211 /* FunctionExpression */:\n ts.Debug.type(node);\n return factory.updateFunctionExpression(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 212 /* ArrowFunction */:\n ts.Debug.type(node);\n return factory.updateArrowFunction(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.equalsGreaterThanToken, tokenVisitor, ts.isEqualsGreaterThanToken), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 213 /* DeleteExpression */:\n ts.Debug.type(node);\n return factory.updateDeleteExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 214 /* TypeOfExpression */:\n ts.Debug.type(node);\n return factory.updateTypeOfExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 215 /* VoidExpression */:\n ts.Debug.type(node);\n return factory.updateVoidExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 216 /* AwaitExpression */:\n ts.Debug.type(node);\n return factory.updateAwaitExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 217 /* PrefixUnaryExpression */:\n ts.Debug.type(node);\n return factory.updatePrefixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));\n case 218 /* PostfixUnaryExpression */:\n ts.Debug.type(node);\n return factory.updatePostfixUnaryExpression(node, nodeVisitor(node.operand, visitor, ts.isExpression));\n case 219 /* BinaryExpression */:\n ts.Debug.type(node);\n return factory.updateBinaryExpression(node, nodeVisitor(node.left, visitor, ts.isExpression), nodeVisitor(node.operatorToken, tokenVisitor, ts.isBinaryOperatorToken), nodeVisitor(node.right, visitor, ts.isExpression));\n case 220 /* ConditionalExpression */:\n ts.Debug.type(node);\n return factory.updateConditionalExpression(node, nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.questionToken, tokenVisitor, ts.isQuestionToken), nodeVisitor(node.whenTrue, visitor, ts.isExpression), nodeVisitor(node.colonToken, tokenVisitor, ts.isColonToken), nodeVisitor(node.whenFalse, visitor, ts.isExpression));\n case 221 /* TemplateExpression */:\n ts.Debug.type(node);\n return factory.updateTemplateExpression(node, nodeVisitor(node.head, visitor, ts.isTemplateHead), nodesVisitor(node.templateSpans, visitor, ts.isTemplateSpan));\n case 222 /* YieldExpression */:\n ts.Debug.type(node);\n return factory.updateYieldExpression(node, nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.expression, visitor, ts.isExpression));\n case 223 /* SpreadElement */:\n ts.Debug.type(node);\n return factory.updateSpreadElement(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 224 /* ClassExpression */:\n ts.Debug.type(node);\n return factory.updateClassExpression(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));\n case 226 /* ExpressionWithTypeArguments */:\n ts.Debug.type(node);\n return factory.updateExpressionWithTypeArguments(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode));\n case 227 /* AsExpression */:\n ts.Debug.type(node);\n return factory.updateAsExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 228 /* NonNullExpression */:\n if (node.flags & 32 /* OptionalChain */) {\n ts.Debug.type(node);\n return factory.updateNonNullChain(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n }\n ts.Debug.type(node);\n return factory.updateNonNullExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 229 /* MetaProperty */:\n ts.Debug.type(node);\n return factory.updateMetaProperty(node, nodeVisitor(node.name, visitor, ts.isIdentifier));\n // Misc\n case 231 /* TemplateSpan */:\n ts.Debug.type(node);\n return factory.updateTemplateSpan(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.literal, visitor, ts.isTemplateMiddleOrTemplateTail));\n // Element\n case 233 /* Block */:\n ts.Debug.type(node);\n return factory.updateBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));\n case 235 /* VariableStatement */:\n ts.Debug.type(node);\n return factory.updateVariableStatement(node, nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.declarationList, visitor, ts.isVariableDeclarationList));\n case 236 /* ExpressionStatement */:\n ts.Debug.type(node);\n return factory.updateExpressionStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 237 /* IfStatement */:\n ts.Debug.type(node);\n return factory.updateIfStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.thenStatement, visitor, ts.isStatement, factory.liftToBlock), nodeVisitor(node.elseStatement, visitor, ts.isStatement, factory.liftToBlock));\n case 238 /* DoStatement */:\n ts.Debug.type(node);\n return factory.updateDoStatement(node, visitIterationBody(node.statement, visitor, context), nodeVisitor(node.expression, visitor, ts.isExpression));\n case 239 /* WhileStatement */:\n ts.Debug.type(node);\n return factory.updateWhileStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));\n case 240 /* ForStatement */:\n ts.Debug.type(node);\n return factory.updateForStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.condition, visitor, ts.isExpression), nodeVisitor(node.incrementor, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));\n case 241 /* ForInStatement */:\n ts.Debug.type(node);\n return factory.updateForInStatement(node, nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));\n case 242 /* ForOfStatement */:\n ts.Debug.type(node);\n return factory.updateForOfStatement(node, nodeVisitor(node.awaitModifier, tokenVisitor, ts.isAwaitKeyword), nodeVisitor(node.initializer, visitor, ts.isForInitializer), nodeVisitor(node.expression, visitor, ts.isExpression), visitIterationBody(node.statement, visitor, context));\n case 243 /* ContinueStatement */:\n ts.Debug.type(node);\n return factory.updateContinueStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));\n case 244 /* BreakStatement */:\n ts.Debug.type(node);\n return factory.updateBreakStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier));\n case 245 /* ReturnStatement */:\n ts.Debug.type(node);\n return factory.updateReturnStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 246 /* WithStatement */:\n ts.Debug.type(node);\n return factory.updateWithStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));\n case 247 /* SwitchStatement */:\n ts.Debug.type(node);\n return factory.updateSwitchStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodeVisitor(node.caseBlock, visitor, ts.isCaseBlock));\n case 248 /* LabeledStatement */:\n ts.Debug.type(node);\n return factory.updateLabeledStatement(node, nodeVisitor(node.label, visitor, ts.isIdentifier), nodeVisitor(node.statement, visitor, ts.isStatement, factory.liftToBlock));\n case 249 /* ThrowStatement */:\n ts.Debug.type(node);\n return factory.updateThrowStatement(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 250 /* TryStatement */:\n ts.Debug.type(node);\n return factory.updateTryStatement(node, nodeVisitor(node.tryBlock, visitor, ts.isBlock), nodeVisitor(node.catchClause, visitor, ts.isCatchClause), nodeVisitor(node.finallyBlock, visitor, ts.isBlock));\n case 252 /* VariableDeclaration */:\n ts.Debug.type(node);\n return factory.updateVariableDeclaration(node, nodeVisitor(node.name, visitor, ts.isBindingName), nodeVisitor(node.exclamationToken, tokenVisitor, ts.isExclamationToken), nodeVisitor(node.type, visitor, ts.isTypeNode), nodeVisitor(node.initializer, visitor, ts.isExpression));\n case 253 /* VariableDeclarationList */:\n ts.Debug.type(node);\n return factory.updateVariableDeclarationList(node, nodesVisitor(node.declarations, visitor, ts.isVariableDeclaration));\n case 254 /* FunctionDeclaration */:\n ts.Debug.type(node);\n return factory.updateFunctionDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.asteriskToken, tokenVisitor, ts.isAsteriskToken), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), visitParameterList(node.parameters, visitor, context, nodesVisitor), nodeVisitor(node.type, visitor, ts.isTypeNode), visitFunctionBody(node.body, visitor, context, nodeVisitor));\n case 255 /* ClassDeclaration */:\n ts.Debug.type(node);\n return factory.updateClassDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isClassElement));\n case 256 /* InterfaceDeclaration */:\n ts.Debug.type(node);\n return factory.updateInterfaceDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodesVisitor(node.heritageClauses, visitor, ts.isHeritageClause), nodesVisitor(node.members, visitor, ts.isTypeElement));\n case 257 /* TypeAliasDeclaration */:\n ts.Debug.type(node);\n return factory.updateTypeAliasDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.typeParameters, visitor, ts.isTypeParameterDeclaration), nodeVisitor(node.type, visitor, ts.isTypeNode));\n case 258 /* EnumDeclaration */:\n ts.Debug.type(node);\n return factory.updateEnumDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isIdentifier), nodesVisitor(node.members, visitor, ts.isEnumMember));\n case 259 /* ModuleDeclaration */:\n ts.Debug.type(node);\n return factory.updateModuleDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.name, visitor, ts.isModuleName), nodeVisitor(node.body, visitor, ts.isModuleBody));\n case 260 /* ModuleBlock */:\n ts.Debug.type(node);\n return factory.updateModuleBlock(node, nodesVisitor(node.statements, visitor, ts.isStatement));\n case 261 /* CaseBlock */:\n ts.Debug.type(node);\n return factory.updateCaseBlock(node, nodesVisitor(node.clauses, visitor, ts.isCaseOrDefaultClause));\n case 262 /* NamespaceExportDeclaration */:\n ts.Debug.type(node);\n return factory.updateNamespaceExportDeclaration(node, nodeVisitor(node.name, visitor, ts.isIdentifier));\n case 263 /* ImportEqualsDeclaration */:\n ts.Debug.type(node);\n return factory.updateImportEqualsDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.moduleReference, visitor, ts.isModuleReference));\n case 264 /* ImportDeclaration */:\n ts.Debug.type(node);\n return factory.updateImportDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.importClause, visitor, ts.isImportClause), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression));\n case 265 /* ImportClause */:\n ts.Debug.type(node);\n return factory.updateImportClause(node, node.isTypeOnly, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.namedBindings, visitor, ts.isNamedImportBindings));\n case 266 /* NamespaceImport */:\n ts.Debug.type(node);\n return factory.updateNamespaceImport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));\n case 272 /* NamespaceExport */:\n ts.Debug.type(node);\n return factory.updateNamespaceExport(node, nodeVisitor(node.name, visitor, ts.isIdentifier));\n case 267 /* NamedImports */:\n ts.Debug.type(node);\n return factory.updateNamedImports(node, nodesVisitor(node.elements, visitor, ts.isImportSpecifier));\n case 268 /* ImportSpecifier */:\n ts.Debug.type(node);\n return factory.updateImportSpecifier(node, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));\n case 269 /* ExportAssignment */:\n ts.Debug.type(node);\n return factory.updateExportAssignment(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), nodeVisitor(node.expression, visitor, ts.isExpression));\n case 270 /* ExportDeclaration */:\n ts.Debug.type(node);\n return factory.updateExportDeclaration(node, nodesVisitor(node.decorators, visitor, ts.isDecorator), nodesVisitor(node.modifiers, visitor, ts.isModifier), node.isTypeOnly, nodeVisitor(node.exportClause, visitor, ts.isNamedExportBindings), nodeVisitor(node.moduleSpecifier, visitor, ts.isExpression));\n case 271 /* NamedExports */:\n ts.Debug.type(node);\n return factory.updateNamedExports(node, nodesVisitor(node.elements, visitor, ts.isExportSpecifier));\n case 273 /* ExportSpecifier */:\n ts.Debug.type(node);\n return factory.updateExportSpecifier(node, nodeVisitor(node.propertyName, visitor, ts.isIdentifier), nodeVisitor(node.name, visitor, ts.isIdentifier));\n // Module references\n case 275 /* ExternalModuleReference */:\n ts.Debug.type(node);\n return factory.updateExternalModuleReference(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n // JSX\n case 276 /* JsxElement */:\n ts.Debug.type(node);\n return factory.updateJsxElement(node, nodeVisitor(node.openingElement, visitor, ts.isJsxOpeningElement), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingElement, visitor, ts.isJsxClosingElement));\n case 277 /* JsxSelfClosingElement */:\n ts.Debug.type(node);\n return factory.updateJsxSelfClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));\n case 278 /* JsxOpeningElement */:\n ts.Debug.type(node);\n return factory.updateJsxOpeningElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression), nodesVisitor(node.typeArguments, visitor, ts.isTypeNode), nodeVisitor(node.attributes, visitor, ts.isJsxAttributes));\n case 279 /* JsxClosingElement */:\n ts.Debug.type(node);\n return factory.updateJsxClosingElement(node, nodeVisitor(node.tagName, visitor, ts.isJsxTagNameExpression));\n case 280 /* JsxFragment */:\n ts.Debug.type(node);\n return factory.updateJsxFragment(node, nodeVisitor(node.openingFragment, visitor, ts.isJsxOpeningFragment), nodesVisitor(node.children, visitor, ts.isJsxChild), nodeVisitor(node.closingFragment, visitor, ts.isJsxClosingFragment));\n case 283 /* JsxAttribute */:\n ts.Debug.type(node);\n return factory.updateJsxAttribute(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.initializer, visitor, ts.isStringLiteralOrJsxExpression));\n case 284 /* JsxAttributes */:\n ts.Debug.type(node);\n return factory.updateJsxAttributes(node, nodesVisitor(node.properties, visitor, ts.isJsxAttributeLike));\n case 285 /* JsxSpreadAttribute */:\n ts.Debug.type(node);\n return factory.updateJsxSpreadAttribute(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 286 /* JsxExpression */:\n ts.Debug.type(node);\n return factory.updateJsxExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n // Clauses\n case 287 /* CaseClause */:\n ts.Debug.type(node);\n return factory.updateCaseClause(node, nodeVisitor(node.expression, visitor, ts.isExpression), nodesVisitor(node.statements, visitor, ts.isStatement));\n case 288 /* DefaultClause */:\n ts.Debug.type(node);\n return factory.updateDefaultClause(node, nodesVisitor(node.statements, visitor, ts.isStatement));\n case 289 /* HeritageClause */:\n ts.Debug.type(node);\n return factory.updateHeritageClause(node, nodesVisitor(node.types, visitor, ts.isExpressionWithTypeArguments));\n case 290 /* CatchClause */:\n ts.Debug.type(node);\n return factory.updateCatchClause(node, nodeVisitor(node.variableDeclaration, visitor, ts.isVariableDeclaration), nodeVisitor(node.block, visitor, ts.isBlock));\n // Property assignments\n case 291 /* PropertyAssignment */:\n ts.Debug.type(node);\n return factory.updatePropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));\n case 292 /* ShorthandPropertyAssignment */:\n ts.Debug.type(node);\n return factory.updateShorthandPropertyAssignment(node, nodeVisitor(node.name, visitor, ts.isIdentifier), nodeVisitor(node.objectAssignmentInitializer, visitor, ts.isExpression));\n case 293 /* SpreadAssignment */:\n ts.Debug.type(node);\n return factory.updateSpreadAssignment(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n // Enum\n case 294 /* EnumMember */:\n ts.Debug.type(node);\n return factory.updateEnumMember(node, nodeVisitor(node.name, visitor, ts.isPropertyName), nodeVisitor(node.initializer, visitor, ts.isExpression));\n // Top-level nodes\n case 300 /* SourceFile */:\n ts.Debug.type(node);\n return factory.updateSourceFile(node, visitLexicalEnvironment(node.statements, visitor, context));\n // Transformation nodes\n case 345 /* PartiallyEmittedExpression */:\n ts.Debug.type(node);\n return factory.updatePartiallyEmittedExpression(node, nodeVisitor(node.expression, visitor, ts.isExpression));\n case 346 /* CommaListExpression */:\n ts.Debug.type(node);\n return factory.updateCommaListExpression(node, nodesVisitor(node.elements, visitor, ts.isExpression));\n default:\n // No need to visit nodes with no children.\n return node;\n }\n }\n ts.visitEachChild = visitEachChild;\n /**\n * Extracts the single node from a NodeArray.\n *\n * @param nodes The NodeArray.\n */\n function extractSingleNode(nodes) {\n ts.Debug.assert(nodes.length <= 1, \"Too many nodes written to output.\");\n return ts.singleOrUndefined(nodes);\n }\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function createSourceMapGenerator(host, file, sourceRoot, sourcesDirectoryPath, generatorOptions) {\n var _a = generatorOptions.extendedDiagnostics\n ? ts.performance.createTimer(\"Source Map\", \"beforeSourcemap\", \"afterSourcemap\")\n : ts.performance.nullTimer, enter = _a.enter, exit = _a.exit;\n // Current source map file and its index in the sources list\n var rawSources = [];\n var sources = [];\n var sourceToSourceIndexMap = new ts.Map();\n var sourcesContent;\n var names = [];\n var nameToNameIndexMap;\n var mappingCharCodes = [];\n var mappings = \"\";\n // Last recorded and encoded mappings\n var lastGeneratedLine = 0;\n var lastGeneratedCharacter = 0;\n var lastSourceIndex = 0;\n var lastSourceLine = 0;\n var lastSourceCharacter = 0;\n var lastNameIndex = 0;\n var hasLast = false;\n var pendingGeneratedLine = 0;\n var pendingGeneratedCharacter = 0;\n var pendingSourceIndex = 0;\n var pendingSourceLine = 0;\n var pendingSourceCharacter = 0;\n var pendingNameIndex = 0;\n var hasPending = false;\n var hasPendingSource = false;\n var hasPendingName = false;\n return {\n getSources: function () { return rawSources; },\n addSource: addSource,\n setSourceContent: setSourceContent,\n addName: addName,\n addMapping: addMapping,\n appendSourceMap: appendSourceMap,\n toJSON: toJSON,\n toString: function () { return JSON.stringify(toJSON()); }\n };\n function addSource(fileName) {\n enter();\n var source = ts.getRelativePathToDirectoryOrUrl(sourcesDirectoryPath, fileName, host.getCurrentDirectory(), host.getCanonicalFileName, \n /*isAbsolutePathAnUrl*/ true);\n var sourceIndex = sourceToSourceIndexMap.get(source);\n if (sourceIndex === undefined) {\n sourceIndex = sources.length;\n sources.push(source);\n rawSources.push(fileName);\n sourceToSourceIndexMap.set(source, sourceIndex);\n }\n exit();\n return sourceIndex;\n }\n /* eslint-disable boolean-trivia, no-null/no-null */\n function setSourceContent(sourceIndex, content) {\n enter();\n if (content !== null) {\n if (!sourcesContent)\n sourcesContent = [];\n while (sourcesContent.length < sourceIndex) {\n sourcesContent.push(null);\n }\n sourcesContent[sourceIndex] = content;\n }\n exit();\n }\n /* eslint-enable boolean-trivia, no-null/no-null */\n function addName(name) {\n enter();\n if (!nameToNameIndexMap)\n nameToNameIndexMap = new ts.Map();\n var nameIndex = nameToNameIndexMap.get(name);\n if (nameIndex === undefined) {\n nameIndex = names.length;\n names.push(name);\n nameToNameIndexMap.set(name, nameIndex);\n }\n exit();\n return nameIndex;\n }\n function isNewGeneratedPosition(generatedLine, generatedCharacter) {\n return !hasPending\n || pendingGeneratedLine !== generatedLine\n || pendingGeneratedCharacter !== generatedCharacter;\n }\n function isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter) {\n return sourceIndex !== undefined\n && sourceLine !== undefined\n && sourceCharacter !== undefined\n && pendingSourceIndex === sourceIndex\n && (pendingSourceLine > sourceLine\n || pendingSourceLine === sourceLine && pendingSourceCharacter > sourceCharacter);\n }\n function addMapping(generatedLine, generatedCharacter, sourceIndex, sourceLine, sourceCharacter, nameIndex) {\n ts.Debug.assert(generatedLine >= pendingGeneratedLine, \"generatedLine cannot backtrack\");\n ts.Debug.assert(generatedCharacter >= 0, \"generatedCharacter cannot be negative\");\n ts.Debug.assert(sourceIndex === undefined || sourceIndex >= 0, \"sourceIndex cannot be negative\");\n ts.Debug.assert(sourceLine === undefined || sourceLine >= 0, \"sourceLine cannot be negative\");\n ts.Debug.assert(sourceCharacter === undefined || sourceCharacter >= 0, \"sourceCharacter cannot be negative\");\n enter();\n // If this location wasn't recorded or the location in source is going backwards, record the mapping\n if (isNewGeneratedPosition(generatedLine, generatedCharacter) ||\n isBacktrackingSourcePosition(sourceIndex, sourceLine, sourceCharacter)) {\n commitPendingMapping();\n pendingGeneratedLine = generatedLine;\n pendingGeneratedCharacter = generatedCharacter;\n hasPendingSource = false;\n hasPendingName = false;\n hasPending = true;\n }\n if (sourceIndex !== undefined && sourceLine !== undefined && sourceCharacter !== undefined) {\n pendingSourceIndex = sourceIndex;\n pendingSourceLine = sourceLine;\n pendingSourceCharacter = sourceCharacter;\n hasPendingSource = true;\n if (nameIndex !== undefined) {\n pendingNameIndex = nameIndex;\n hasPendingName = true;\n }\n }\n exit();\n }\n function appendSourceMap(generatedLine, generatedCharacter, map, sourceMapPath, start, end) {\n ts.Debug.assert(generatedLine >= pendingGeneratedLine, \"generatedLine cannot backtrack\");\n ts.Debug.assert(generatedCharacter >= 0, \"generatedCharacter cannot be negative\");\n enter();\n // First, decode the old component sourcemap\n var sourceIndexToNewSourceIndexMap = [];\n var nameIndexToNewNameIndexMap;\n var mappingIterator = decodeMappings(map.mappings);\n for (var iterResult = mappingIterator.next(); !iterResult.done; iterResult = mappingIterator.next()) {\n var raw = iterResult.value;\n if (end && (raw.generatedLine > end.line ||\n (raw.generatedLine === end.line && raw.generatedCharacter > end.character))) {\n break;\n }\n if (start && (raw.generatedLine < start.line ||\n (start.line === raw.generatedLine && raw.generatedCharacter < start.character))) {\n continue;\n }\n // Then reencode all the updated mappings into the overall map\n var newSourceIndex = void 0;\n var newSourceLine = void 0;\n var newSourceCharacter = void 0;\n var newNameIndex = void 0;\n if (raw.sourceIndex !== undefined) {\n newSourceIndex = sourceIndexToNewSourceIndexMap[raw.sourceIndex];\n if (newSourceIndex === undefined) {\n // Apply offsets to each position and fixup source entries\n var rawPath = map.sources[raw.sourceIndex];\n var relativePath = map.sourceRoot ? ts.combinePaths(map.sourceRoot, rawPath) : rawPath;\n var combinedPath = ts.combinePaths(ts.getDirectoryPath(sourceMapPath), relativePath);\n sourceIndexToNewSourceIndexMap[raw.sourceIndex] = newSourceIndex = addSource(combinedPath);\n if (map.sourcesContent && typeof map.sourcesContent[raw.sourceIndex] === \"string\") {\n setSourceContent(newSourceIndex, map.sourcesContent[raw.sourceIndex]);\n }\n }\n newSourceLine = raw.sourceLine;\n newSourceCharacter = raw.sourceCharacter;\n if (map.names && raw.nameIndex !== undefined) {\n if (!nameIndexToNewNameIndexMap)\n nameIndexToNewNameIndexMap = [];\n newNameIndex = nameIndexToNewNameIndexMap[raw.nameIndex];\n if (newNameIndex === undefined) {\n nameIndexToNewNameIndexMap[raw.nameIndex] = newNameIndex = addName(map.names[raw.nameIndex]);\n }\n }\n }\n var rawGeneratedLine = raw.generatedLine - (start ? start.line : 0);\n var newGeneratedLine = rawGeneratedLine + generatedLine;\n var rawGeneratedCharacter = start && start.line === raw.generatedLine ? raw.generatedCharacter - start.character : raw.generatedCharacter;\n var newGeneratedCharacter = rawGeneratedLine === 0 ? rawGeneratedCharacter + generatedCharacter : rawGeneratedCharacter;\n addMapping(newGeneratedLine, newGeneratedCharacter, newSourceIndex, newSourceLine, newSourceCharacter, newNameIndex);\n }\n exit();\n }\n function shouldCommitMapping() {\n return !hasLast\n || lastGeneratedLine !== pendingGeneratedLine\n || lastGeneratedCharacter !== pendingGeneratedCharacter\n || lastSourceIndex !== pendingSourceIndex\n || lastSourceLine !== pendingSourceLine\n || lastSourceCharacter !== pendingSourceCharacter\n || lastNameIndex !== pendingNameIndex;\n }\n function appendMappingCharCode(charCode) {\n mappingCharCodes.push(charCode);\n // String.fromCharCode accepts its arguments on the stack, so we have to chunk the input,\n // otherwise we can get stack overflows for large source maps\n if (mappingCharCodes.length >= 1024) {\n flushMappingBuffer();\n }\n }\n function commitPendingMapping() {\n if (!hasPending || !shouldCommitMapping()) {\n return;\n }\n enter();\n // Line/Comma delimiters\n if (lastGeneratedLine < pendingGeneratedLine) {\n // Emit line delimiters\n do {\n appendMappingCharCode(59 /* semicolon */);\n lastGeneratedLine++;\n } while (lastGeneratedLine < pendingGeneratedLine);\n // Only need to set this once\n lastGeneratedCharacter = 0;\n }\n else {\n ts.Debug.assertEqual(lastGeneratedLine, pendingGeneratedLine, \"generatedLine cannot backtrack\");\n // Emit comma to separate the entry\n if (hasLast) {\n appendMappingCharCode(44 /* comma */);\n }\n }\n // 1. Relative generated character\n appendBase64VLQ(pendingGeneratedCharacter - lastGeneratedCharacter);\n lastGeneratedCharacter = pendingGeneratedCharacter;\n if (hasPendingSource) {\n // 2. Relative sourceIndex\n appendBase64VLQ(pendingSourceIndex - lastSourceIndex);\n lastSourceIndex = pendingSourceIndex;\n // 3. Relative source line\n appendBase64VLQ(pendingSourceLine - lastSourceLine);\n lastSourceLine = pendingSourceLine;\n // 4. Relative source character\n appendBase64VLQ(pendingSourceCharacter - lastSourceCharacter);\n lastSourceCharacter = pendingSourceCharacter;\n if (hasPendingName) {\n // 5. Relative nameIndex\n appendBase64VLQ(pendingNameIndex - lastNameIndex);\n lastNameIndex = pendingNameIndex;\n }\n }\n hasLast = true;\n exit();\n }\n function flushMappingBuffer() {\n if (mappingCharCodes.length > 0) {\n mappings += String.fromCharCode.apply(undefined, mappingCharCodes);\n mappingCharCodes.length = 0;\n }\n }\n function toJSON() {\n commitPendingMapping();\n flushMappingBuffer();\n return {\n version: 3,\n file: file,\n sourceRoot: sourceRoot,\n sources: sources,\n names: names,\n mappings: mappings,\n sourcesContent: sourcesContent,\n };\n }\n function appendBase64VLQ(inValue) {\n // Add a new least significant bit that has the sign of the value.\n // if negative number the least significant bit that gets added to the number has value 1\n // else least significant bit value that gets added is 0\n // eg. -1 changes to binary : 01 [1] => 3\n // +1 changes to binary : 01 [0] => 2\n if (inValue < 0) {\n inValue = ((-inValue) << 1) + 1;\n }\n else {\n inValue = inValue << 1;\n }\n // Encode 5 bits at a time starting from least significant bits\n do {\n var currentDigit = inValue & 31; // 11111\n inValue = inValue >> 5;\n if (inValue > 0) {\n // There are still more digits to decode, set the msb (6th bit)\n currentDigit = currentDigit | 32;\n }\n appendMappingCharCode(base64FormatEncode(currentDigit));\n } while (inValue > 0);\n }\n }\n ts.createSourceMapGenerator = createSourceMapGenerator;\n // Sometimes tools can see the following line as a source mapping url comment, so we mangle it a bit (the [M])\n var sourceMapCommentRegExp = /^\\/\\/[@#] source[M]appingURL=(.+)$/;\n var whitespaceOrMapCommentRegExp = /^\\s*(\\/\\/[@#] .*)?$/;\n function getLineInfo(text, lineStarts) {\n return {\n getLineCount: function () { return lineStarts.length; },\n getLineText: function (line) { return text.substring(lineStarts[line], lineStarts[line + 1]); }\n };\n }\n ts.getLineInfo = getLineInfo;\n /**\n * Tries to find the sourceMappingURL comment at the end of a file.\n */\n function tryGetSourceMappingURL(lineInfo) {\n for (var index = lineInfo.getLineCount() - 1; index >= 0; index--) {\n var line = lineInfo.getLineText(index);\n var comment = sourceMapCommentRegExp.exec(line);\n if (comment) {\n return ts.trimStringEnd(comment[1]);\n }\n // If we see a non-whitespace/map comment-like line, break, to avoid scanning up the entire file\n else if (!line.match(whitespaceOrMapCommentRegExp)) {\n break;\n }\n }\n }\n ts.tryGetSourceMappingURL = tryGetSourceMappingURL;\n /* eslint-disable no-null/no-null */\n function isStringOrNull(x) {\n return typeof x === \"string\" || x === null;\n }\n function isRawSourceMap(x) {\n return x !== null\n && typeof x === \"object\"\n && x.version === 3\n && typeof x.file === \"string\"\n && typeof x.mappings === \"string\"\n && ts.isArray(x.sources) && ts.every(x.sources, ts.isString)\n && (x.sourceRoot === undefined || x.sourceRoot === null || typeof x.sourceRoot === \"string\")\n && (x.sourcesContent === undefined || x.sourcesContent === null || ts.isArray(x.sourcesContent) && ts.every(x.sourcesContent, isStringOrNull))\n && (x.names === undefined || x.names === null || ts.isArray(x.names) && ts.every(x.names, ts.isString));\n }\n ts.isRawSourceMap = isRawSourceMap;\n /* eslint-enable no-null/no-null */\n function tryParseRawSourceMap(text) {\n try {\n var parsed = JSON.parse(text);\n if (isRawSourceMap(parsed)) {\n return parsed;\n }\n }\n catch (_a) {\n // empty\n }\n return undefined;\n }\n ts.tryParseRawSourceMap = tryParseRawSourceMap;\n function decodeMappings(mappings) {\n var done = false;\n var pos = 0;\n var generatedLine = 0;\n var generatedCharacter = 0;\n var sourceIndex = 0;\n var sourceLine = 0;\n var sourceCharacter = 0;\n var nameIndex = 0;\n var error;\n return {\n get pos() { return pos; },\n get error() { return error; },\n get state() { return captureMapping(/*hasSource*/ true, /*hasName*/ true); },\n next: function () {\n while (!done && pos < mappings.length) {\n var ch = mappings.charCodeAt(pos);\n if (ch === 59 /* semicolon */) {\n // new line\n generatedLine++;\n generatedCharacter = 0;\n pos++;\n continue;\n }\n if (ch === 44 /* comma */) {\n // Next entry is on same line - no action needed\n pos++;\n continue;\n }\n var hasSource = false;\n var hasName = false;\n generatedCharacter += base64VLQFormatDecode();\n if (hasReportedError())\n return stopIterating();\n if (generatedCharacter < 0)\n return setErrorAndStopIterating(\"Invalid generatedCharacter found\");\n if (!isSourceMappingSegmentEnd()) {\n hasSource = true;\n sourceIndex += base64VLQFormatDecode();\n if (hasReportedError())\n return stopIterating();\n if (sourceIndex < 0)\n return setErrorAndStopIterating(\"Invalid sourceIndex found\");\n if (isSourceMappingSegmentEnd())\n return setErrorAndStopIterating(\"Unsupported Format: No entries after sourceIndex\");\n sourceLine += base64VLQFormatDecode();\n if (hasReportedError())\n return stopIterating();\n if (sourceLine < 0)\n return setErrorAndStopIterating(\"Invalid sourceLine found\");\n if (isSourceMappingSegmentEnd())\n return setErrorAndStopIterating(\"Unsupported Format: No entries after sourceLine\");\n sourceCharacter += base64VLQFormatDecode();\n if (hasReportedError())\n return stopIterating();\n if (sourceCharacter < 0)\n return setErrorAndStopIterating(\"Invalid sourceCharacter found\");\n if (!isSourceMappingSegmentEnd()) {\n hasName = true;\n nameIndex += base64VLQFormatDecode();\n if (hasReportedError())\n return stopIterating();\n if (nameIndex < 0)\n return setErrorAndStopIterating(\"Invalid nameIndex found\");\n if (!isSourceMappingSegmentEnd())\n return setErrorAndStopIterating(\"Unsupported Error Format: Entries after nameIndex\");\n }\n }\n return { value: captureMapping(hasSource, hasName), done: done };\n }\n return stopIterating();\n }\n };\n function captureMapping(hasSource, hasName) {\n return {\n generatedLine: generatedLine,\n generatedCharacter: generatedCharacter,\n sourceIndex: hasSource ? sourceIndex : undefined,\n sourceLine: hasSource ? sourceLine : undefined,\n sourceCharacter: hasSource ? sourceCharacter : undefined,\n nameIndex: hasName ? nameIndex : undefined\n };\n }\n function stopIterating() {\n done = true;\n return { value: undefined, done: true };\n }\n function setError(message) {\n if (error === undefined) {\n error = message;\n }\n }\n function setErrorAndStopIterating(message) {\n setError(message);\n return stopIterating();\n }\n function hasReportedError() {\n return error !== undefined;\n }\n function isSourceMappingSegmentEnd() {\n return (pos === mappings.length ||\n mappings.charCodeAt(pos) === 44 /* comma */ ||\n mappings.charCodeAt(pos) === 59 /* semicolon */);\n }\n function base64VLQFormatDecode() {\n var moreDigits = true;\n var shiftCount = 0;\n var value = 0;\n for (; moreDigits; pos++) {\n if (pos >= mappings.length)\n return setError(\"Error in decoding base64VLQFormatDecode, past the mapping string\"), -1;\n // 6 digit number\n var currentByte = base64FormatDecode(mappings.charCodeAt(pos));\n if (currentByte === -1)\n return setError(\"Invalid character in VLQ\"), -1;\n // If msb is set, we still have more bits to continue\n moreDigits = (currentByte & 32) !== 0;\n // least significant 5 bits are the next msbs in the final value.\n value = value | ((currentByte & 31) << shiftCount);\n shiftCount += 5;\n }\n // Least significant bit if 1 represents negative and rest of the msb is actual absolute value\n if ((value & 1) === 0) {\n // + number\n value = value >> 1;\n }\n else {\n // - number\n value = value >> 1;\n value = -value;\n }\n return value;\n }\n }\n ts.decodeMappings = decodeMappings;\n function sameMapping(left, right) {\n return left === right\n || left.generatedLine === right.generatedLine\n && left.generatedCharacter === right.generatedCharacter\n && left.sourceIndex === right.sourceIndex\n && left.sourceLine === right.sourceLine\n && left.sourceCharacter === right.sourceCharacter\n && left.nameIndex === right.nameIndex;\n }\n ts.sameMapping = sameMapping;\n function isSourceMapping(mapping) {\n return mapping.sourceIndex !== undefined\n && mapping.sourceLine !== undefined\n && mapping.sourceCharacter !== undefined;\n }\n ts.isSourceMapping = isSourceMapping;\n function base64FormatEncode(value) {\n return value >= 0 && value < 26 ? 65 /* A */ + value :\n value >= 26 && value < 52 ? 97 /* a */ + value - 26 :\n value >= 52 && value < 62 ? 48 /* _0 */ + value - 52 :\n value === 62 ? 43 /* plus */ :\n value === 63 ? 47 /* slash */ :\n ts.Debug.fail(value + \": not a base64 value\");\n }\n function base64FormatDecode(ch) {\n return ch >= 65 /* A */ && ch <= 90 /* Z */ ? ch - 65 /* A */ :\n ch >= 97 /* a */ && ch <= 122 /* z */ ? ch - 97 /* a */ + 26 :\n ch >= 48 /* _0 */ && ch <= 57 /* _9 */ ? ch - 48 /* _0 */ + 52 :\n ch === 43 /* plus */ ? 62 :\n ch === 47 /* slash */ ? 63 :\n -1;\n }\n function isSourceMappedPosition(value) {\n return value.sourceIndex !== undefined\n && value.sourcePosition !== undefined;\n }\n function sameMappedPosition(left, right) {\n return left.generatedPosition === right.generatedPosition\n && left.sourceIndex === right.sourceIndex\n && left.sourcePosition === right.sourcePosition;\n }\n function compareSourcePositions(left, right) {\n // Compares sourcePosition without comparing sourceIndex\n // since the mappings are grouped by sourceIndex\n ts.Debug.assert(left.sourceIndex === right.sourceIndex);\n return ts.compareValues(left.sourcePosition, right.sourcePosition);\n }\n function compareGeneratedPositions(left, right) {\n return ts.compareValues(left.generatedPosition, right.generatedPosition);\n }\n function getSourcePositionOfMapping(value) {\n return value.sourcePosition;\n }\n function getGeneratedPositionOfMapping(value) {\n return value.generatedPosition;\n }\n function createDocumentPositionMapper(host, map, mapPath) {\n var mapDirectory = ts.getDirectoryPath(mapPath);\n var sourceRoot = map.sourceRoot ? ts.getNormalizedAbsolutePath(map.sourceRoot, mapDirectory) : mapDirectory;\n var generatedAbsoluteFilePath = ts.getNormalizedAbsolutePath(map.file, mapDirectory);\n var generatedFile = host.getSourceFileLike(generatedAbsoluteFilePath);\n var sourceFileAbsolutePaths = map.sources.map(function (source) { return ts.getNormalizedAbsolutePath(source, sourceRoot); });\n var sourceToSourceIndexMap = new ts.Map(sourceFileAbsolutePaths.map(function (source, i) { return [host.getCanonicalFileName(source), i]; }));\n var decodedMappings;\n var generatedMappings;\n var sourceMappings;\n return {\n getSourcePosition: getSourcePosition,\n getGeneratedPosition: getGeneratedPosition\n };\n function processMapping(mapping) {\n var generatedPosition = generatedFile !== undefined\n ? ts.getPositionOfLineAndCharacter(generatedFile, mapping.generatedLine, mapping.generatedCharacter, /*allowEdits*/ true)\n : -1;\n var source;\n var sourcePosition;\n if (isSourceMapping(mapping)) {\n var sourceFile = host.getSourceFileLike(sourceFileAbsolutePaths[mapping.sourceIndex]);\n source = map.sources[mapping.sourceIndex];\n sourcePosition = sourceFile !== undefined\n ? ts.getPositionOfLineAndCharacter(sourceFile, mapping.sourceLine, mapping.sourceCharacter, /*allowEdits*/ true)\n : -1;\n }\n return {\n generatedPosition: generatedPosition,\n source: source,\n sourceIndex: mapping.sourceIndex,\n sourcePosition: sourcePosition,\n nameIndex: mapping.nameIndex\n };\n }\n function getDecodedMappings() {\n if (decodedMappings === undefined) {\n var decoder = decodeMappings(map.mappings);\n var mappings = ts.arrayFrom(decoder, processMapping);\n if (decoder.error !== undefined) {\n if (host.log) {\n host.log(\"Encountered error while decoding sourcemap: \" + decoder.error);\n }\n decodedMappings = ts.emptyArray;\n }\n else {\n decodedMappings = mappings;\n }\n }\n return decodedMappings;\n }\n function getSourceMappings(sourceIndex) {\n if (sourceMappings === undefined) {\n var lists = [];\n for (var _i = 0, _a = getDecodedMappings(); _i < _a.length; _i++) {\n var mapping = _a[_i];\n if (!isSourceMappedPosition(mapping))\n continue;\n var list = lists[mapping.sourceIndex];\n if (!list)\n lists[mapping.sourceIndex] = list = [];\n list.push(mapping);\n }\n sourceMappings = lists.map(function (list) { return ts.sortAndDeduplicate(list, compareSourcePositions, sameMappedPosition); });\n }\n return sourceMappings[sourceIndex];\n }\n function getGeneratedMappings() {\n if (generatedMappings === undefined) {\n var list = [];\n for (var _i = 0, _a = getDecodedMappings(); _i < _a.length; _i++) {\n var mapping = _a[_i];\n list.push(mapping);\n }\n generatedMappings = ts.sortAndDeduplicate(list, compareGeneratedPositions, sameMappedPosition);\n }\n return generatedMappings;\n }\n function getGeneratedPosition(loc) {\n var sourceIndex = sourceToSourceIndexMap.get(host.getCanonicalFileName(loc.fileName));\n if (sourceIndex === undefined)\n return loc;\n var sourceMappings = getSourceMappings(sourceIndex);\n if (!ts.some(sourceMappings))\n return loc;\n var targetIndex = ts.binarySearchKey(sourceMappings, loc.pos, getSourcePositionOfMapping, ts.compareValues);\n if (targetIndex < 0) {\n // if no exact match, closest is 2's complement of result\n targetIndex = ~targetIndex;\n }\n var mapping = sourceMappings[targetIndex];\n if (mapping === undefined || mapping.sourceIndex !== sourceIndex) {\n return loc;\n }\n return { fileName: generatedAbsoluteFilePath, pos: mapping.generatedPosition }; // Closest pos\n }\n function getSourcePosition(loc) {\n var generatedMappings = getGeneratedMappings();\n if (!ts.some(generatedMappings))\n return loc;\n var targetIndex = ts.binarySearchKey(generatedMappings, loc.pos, getGeneratedPositionOfMapping, ts.compareValues);\n if (targetIndex < 0) {\n // if no exact match, closest is 2's complement of result\n targetIndex = ~targetIndex;\n }\n var mapping = generatedMappings[targetIndex];\n if (mapping === undefined || !isSourceMappedPosition(mapping)) {\n return loc;\n }\n return { fileName: sourceFileAbsolutePaths[mapping.sourceIndex], pos: mapping.sourcePosition }; // Closest pos\n }\n }\n ts.createDocumentPositionMapper = createDocumentPositionMapper;\n ts.identitySourceMapConsumer = {\n getSourcePosition: ts.identity,\n getGeneratedPosition: ts.identity\n };\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function getOriginalNodeId(node) {\n node = ts.getOriginalNode(node);\n return node ? ts.getNodeId(node) : 0;\n }\n ts.getOriginalNodeId = getOriginalNodeId;\n function containsDefaultReference(node) {\n if (!node)\n return false;\n if (!ts.isNamedImports(node))\n return false;\n return ts.some(node.elements, isNamedDefaultReference);\n }\n function isNamedDefaultReference(e) {\n return e.propertyName !== undefined && e.propertyName.escapedText === \"default\" /* Default */;\n }\n function chainBundle(context, transformSourceFile) {\n return transformSourceFileOrBundle;\n function transformSourceFileOrBundle(node) {\n return node.kind === 300 /* SourceFile */ ? transformSourceFile(node) : transformBundle(node);\n }\n function transformBundle(node) {\n return context.factory.createBundle(ts.map(node.sourceFiles, transformSourceFile), node.prepends);\n }\n }\n ts.chainBundle = chainBundle;\n function getExportNeedsImportStarHelper(node) {\n return !!ts.getNamespaceDeclarationNode(node);\n }\n ts.getExportNeedsImportStarHelper = getExportNeedsImportStarHelper;\n function getImportNeedsImportStarHelper(node) {\n if (!!ts.getNamespaceDeclarationNode(node)) {\n return true;\n }\n var bindings = node.importClause && node.importClause.namedBindings;\n if (!bindings) {\n return false;\n }\n if (!ts.isNamedImports(bindings))\n return false;\n var defaultRefCount = 0;\n for (var _i = 0, _a = bindings.elements; _i < _a.length; _i++) {\n var binding = _a[_i];\n if (isNamedDefaultReference(binding)) {\n defaultRefCount++;\n }\n }\n // Import star is required if there's default named refs mixed with non-default refs, or if theres non-default refs and it has a default import\n return (defaultRefCount > 0 && defaultRefCount !== bindings.elements.length) || (!!(bindings.elements.length - defaultRefCount) && ts.isDefaultImport(node));\n }\n ts.getImportNeedsImportStarHelper = getImportNeedsImportStarHelper;\n function getImportNeedsImportDefaultHelper(node) {\n // Import default is needed if there's a default import or a default ref and no other refs (meaning an import star helper wasn't requested)\n return !getImportNeedsImportStarHelper(node) && (ts.isDefaultImport(node) || (!!node.importClause && ts.isNamedImports(node.importClause.namedBindings) && containsDefaultReference(node.importClause.namedBindings))); // TODO: GH#18217\n }\n ts.getImportNeedsImportDefaultHelper = getImportNeedsImportDefaultHelper;\n function collectExternalModuleInfo(context, sourceFile, resolver, compilerOptions) {\n var externalImports = [];\n var exportSpecifiers = ts.createMultiMap();\n var exportedBindings = [];\n var uniqueExports = new ts.Map();\n var exportedNames;\n var hasExportDefault = false;\n var exportEquals;\n var hasExportStarsToExportValues = false;\n var hasImportStar = false;\n var hasImportDefault = false;\n for (var _i = 0, _a = sourceFile.statements; _i < _a.length; _i++) {\n var node = _a[_i];\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n // import \"mod\"\n // import x from \"mod\"\n // import * as x from \"mod\"\n // import { x, y } from \"mod\"\n externalImports.push(node);\n if (!hasImportStar && getImportNeedsImportStarHelper(node)) {\n hasImportStar = true;\n }\n if (!hasImportDefault && getImportNeedsImportDefaultHelper(node)) {\n hasImportDefault = true;\n }\n break;\n case 263 /* ImportEqualsDeclaration */:\n if (node.moduleReference.kind === 275 /* ExternalModuleReference */) {\n // import x = require(\"mod\")\n externalImports.push(node);\n }\n break;\n case 270 /* ExportDeclaration */:\n if (node.moduleSpecifier) {\n if (!node.exportClause) {\n // export * from \"mod\"\n externalImports.push(node);\n hasExportStarsToExportValues = true;\n }\n else {\n // export * as ns from \"mod\"\n // export { x, y } from \"mod\"\n externalImports.push(node);\n if (ts.isNamedExports(node.exportClause)) {\n addExportedNamesForExportDeclaration(node);\n }\n else {\n var name = node.exportClause.name;\n if (!uniqueExports.get(ts.idText(name))) {\n multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);\n uniqueExports.set(ts.idText(name), true);\n exportedNames = ts.append(exportedNames, name);\n }\n // we use the same helpers for `export * as ns` as we do for `import * as ns`\n hasImportStar = true;\n }\n }\n }\n else {\n // export { x, y }\n addExportedNamesForExportDeclaration(node);\n }\n break;\n case 269 /* ExportAssignment */:\n if (node.isExportEquals && !exportEquals) {\n // export = x\n exportEquals = node;\n }\n break;\n case 235 /* VariableStatement */:\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n for (var _b = 0, _c = node.declarationList.declarations; _b < _c.length; _b++) {\n var decl = _c[_b];\n exportedNames = collectExportedVariableInfo(decl, uniqueExports, exportedNames);\n }\n }\n break;\n case 254 /* FunctionDeclaration */:\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n if (ts.hasSyntacticModifier(node, 512 /* Default */)) {\n // export default function() { }\n if (!hasExportDefault) {\n multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));\n hasExportDefault = true;\n }\n }\n else {\n // export function x() { }\n var name = node.name;\n if (!uniqueExports.get(ts.idText(name))) {\n multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);\n uniqueExports.set(ts.idText(name), true);\n exportedNames = ts.append(exportedNames, name);\n }\n }\n }\n break;\n case 255 /* ClassDeclaration */:\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n if (ts.hasSyntacticModifier(node, 512 /* Default */)) {\n // export default class { }\n if (!hasExportDefault) {\n multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), context.factory.getDeclarationName(node));\n hasExportDefault = true;\n }\n }\n else {\n // export class x { }\n var name = node.name;\n if (name && !uniqueExports.get(ts.idText(name))) {\n multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(node), name);\n uniqueExports.set(ts.idText(name), true);\n exportedNames = ts.append(exportedNames, name);\n }\n }\n }\n break;\n }\n }\n var externalHelpersImportDeclaration = ts.createExternalHelpersImportDeclarationIfNeeded(context.factory, context.getEmitHelperFactory(), sourceFile, compilerOptions, hasExportStarsToExportValues, hasImportStar, hasImportDefault);\n if (externalHelpersImportDeclaration) {\n externalImports.unshift(externalHelpersImportDeclaration);\n }\n return { externalImports: externalImports, exportSpecifiers: exportSpecifiers, exportEquals: exportEquals, hasExportStarsToExportValues: hasExportStarsToExportValues, exportedBindings: exportedBindings, exportedNames: exportedNames, externalHelpersImportDeclaration: externalHelpersImportDeclaration };\n function addExportedNamesForExportDeclaration(node) {\n for (var _i = 0, _a = ts.cast(node.exportClause, ts.isNamedExports).elements; _i < _a.length; _i++) {\n var specifier = _a[_i];\n if (!uniqueExports.get(ts.idText(specifier.name))) {\n var name = specifier.propertyName || specifier.name;\n if (!node.moduleSpecifier) {\n exportSpecifiers.add(ts.idText(name), specifier);\n }\n var decl = resolver.getReferencedImportDeclaration(name)\n || resolver.getReferencedValueDeclaration(name);\n if (decl) {\n multiMapSparseArrayAdd(exportedBindings, getOriginalNodeId(decl), specifier.name);\n }\n uniqueExports.set(ts.idText(specifier.name), true);\n exportedNames = ts.append(exportedNames, specifier.name);\n }\n }\n }\n }\n ts.collectExternalModuleInfo = collectExternalModuleInfo;\n function collectExportedVariableInfo(decl, uniqueExports, exportedNames) {\n if (ts.isBindingPattern(decl.name)) {\n for (var _i = 0, _a = decl.name.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n exportedNames = collectExportedVariableInfo(element, uniqueExports, exportedNames);\n }\n }\n }\n else if (!ts.isGeneratedIdentifier(decl.name)) {\n var text = ts.idText(decl.name);\n if (!uniqueExports.get(text)) {\n uniqueExports.set(text, true);\n exportedNames = ts.append(exportedNames, decl.name);\n }\n }\n return exportedNames;\n }\n /** Use a sparse array as a multi-map. */\n function multiMapSparseArrayAdd(map, key, value) {\n var values = map[key];\n if (values) {\n values.push(value);\n }\n else {\n map[key] = values = [value];\n }\n return values;\n }\n /**\n * Used in the module transformer to check if an expression is reasonably without sideeffect,\n * and thus better to copy into multiple places rather than to cache in a temporary variable\n * - this is mostly subjective beyond the requirement that the expression not be sideeffecting\n */\n function isSimpleCopiableExpression(expression) {\n return ts.isStringLiteralLike(expression) ||\n expression.kind === 8 /* NumericLiteral */ ||\n ts.isKeyword(expression.kind) ||\n ts.isIdentifier(expression);\n }\n ts.isSimpleCopiableExpression = isSimpleCopiableExpression;\n /**\n * A simple inlinable expression is an expression which can be copied into multiple locations\n * without risk of repeating any sideeffects and whose value could not possibly change between\n * any such locations\n */\n function isSimpleInlineableExpression(expression) {\n return !ts.isIdentifier(expression) && isSimpleCopiableExpression(expression);\n }\n ts.isSimpleInlineableExpression = isSimpleInlineableExpression;\n function isCompoundAssignment(kind) {\n return kind >= 64 /* FirstCompoundAssignment */\n && kind <= 78 /* LastCompoundAssignment */;\n }\n ts.isCompoundAssignment = isCompoundAssignment;\n function getNonAssignmentOperatorForCompoundAssignment(kind) {\n switch (kind) {\n case 64 /* PlusEqualsToken */: return 39 /* PlusToken */;\n case 65 /* MinusEqualsToken */: return 40 /* MinusToken */;\n case 66 /* AsteriskEqualsToken */: return 41 /* AsteriskToken */;\n case 67 /* AsteriskAsteriskEqualsToken */: return 42 /* AsteriskAsteriskToken */;\n case 68 /* SlashEqualsToken */: return 43 /* SlashToken */;\n case 69 /* PercentEqualsToken */: return 44 /* PercentToken */;\n case 70 /* LessThanLessThanEqualsToken */: return 47 /* LessThanLessThanToken */;\n case 71 /* GreaterThanGreaterThanEqualsToken */: return 48 /* GreaterThanGreaterThanToken */;\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */: return 49 /* GreaterThanGreaterThanGreaterThanToken */;\n case 73 /* AmpersandEqualsToken */: return 50 /* AmpersandToken */;\n case 74 /* BarEqualsToken */: return 51 /* BarToken */;\n case 78 /* CaretEqualsToken */: return 52 /* CaretToken */;\n case 75 /* BarBarEqualsToken */: return 56 /* BarBarToken */;\n case 76 /* AmpersandAmpersandEqualsToken */: return 55 /* AmpersandAmpersandToken */;\n case 77 /* QuestionQuestionEqualsToken */: return 60 /* QuestionQuestionToken */;\n }\n }\n ts.getNonAssignmentOperatorForCompoundAssignment = getNonAssignmentOperatorForCompoundAssignment;\n /**\n * Adds super call and preceding prologue directives into the list of statements.\n *\n * @param ctor The constructor node.\n * @param result The list of statements.\n * @param visitor The visitor to apply to each node added to the result array.\n * @returns index of the statement that follows super call\n */\n function addPrologueDirectivesAndInitialSuperCall(factory, ctor, result, visitor) {\n if (ctor.body) {\n var statements = ctor.body.statements;\n // add prologue directives to the list (if any)\n var index = factory.copyPrologue(statements, result, /*ensureUseStrict*/ false, visitor);\n if (index === statements.length) {\n // list contains nothing but prologue directives (or empty) - exit\n return index;\n }\n var superIndex = ts.findIndex(statements, function (s) { return ts.isExpressionStatement(s) && ts.isSuperCall(s.expression); }, index);\n if (superIndex > -1) {\n for (var i = index; i <= superIndex; i++) {\n result.push(ts.visitNode(statements[i], visitor, ts.isStatement));\n }\n return superIndex + 1;\n }\n return index;\n }\n return 0;\n }\n ts.addPrologueDirectivesAndInitialSuperCall = addPrologueDirectivesAndInitialSuperCall;\n function getProperties(node, requireInitializer, isStatic) {\n return ts.filter(node.members, function (m) { return isInitializedOrStaticProperty(m, requireInitializer, isStatic); });\n }\n ts.getProperties = getProperties;\n function isStaticPropertyDeclarationOrClassStaticBlockDeclaration(element) {\n return isStaticPropertyDeclaration(element) || ts.isClassStaticBlockDeclaration(element);\n }\n function getStaticPropertiesAndClassStaticBlock(node) {\n return ts.filter(node.members, isStaticPropertyDeclarationOrClassStaticBlockDeclaration);\n }\n ts.getStaticPropertiesAndClassStaticBlock = getStaticPropertiesAndClassStaticBlock;\n /**\n * Is a class element either a static or an instance property declaration with an initializer?\n *\n * @param member The class element node.\n * @param isStatic A value indicating whether the member should be a static or instance member.\n */\n function isInitializedOrStaticProperty(member, requireInitializer, isStatic) {\n return ts.isPropertyDeclaration(member)\n && (!!member.initializer || !requireInitializer)\n && ts.hasStaticModifier(member) === isStatic;\n }\n function isStaticPropertyDeclaration(member) {\n return ts.isPropertyDeclaration(member) && ts.hasStaticModifier(member);\n }\n /**\n * Gets a value indicating whether a class element is either a static or an instance property declaration with an initializer.\n *\n * @param member The class element node.\n * @param isStatic A value indicating whether the member should be a static or instance member.\n */\n function isInitializedProperty(member) {\n return member.kind === 165 /* PropertyDeclaration */\n && member.initializer !== undefined;\n }\n ts.isInitializedProperty = isInitializedProperty;\n /**\n * Gets a value indicating whether a class element is a private instance method or accessor.\n *\n * @param member The class element node.\n */\n function isNonStaticMethodOrAccessorWithPrivateName(member) {\n return !ts.isStatic(member) && ts.isMethodOrAccessor(member) && ts.isPrivateIdentifier(member.name);\n }\n ts.isNonStaticMethodOrAccessorWithPrivateName = isNonStaticMethodOrAccessorWithPrivateName;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var FlattenLevel;\n (function (FlattenLevel) {\n FlattenLevel[FlattenLevel[\"All\"] = 0] = \"All\";\n FlattenLevel[FlattenLevel[\"ObjectRest\"] = 1] = \"ObjectRest\";\n })(FlattenLevel = ts.FlattenLevel || (ts.FlattenLevel = {}));\n /**\n * Flattens a DestructuringAssignment or a VariableDeclaration to an expression.\n *\n * @param node The node to flatten.\n * @param visitor An optional visitor used to visit initializers.\n * @param context The transformation context.\n * @param level Indicates the extent to which flattening should occur.\n * @param needsValue An optional value indicating whether the value from the right-hand-side of\n * the destructuring assignment is needed as part of a larger expression.\n * @param createAssignmentCallback An optional callback used to create the assignment expression.\n */\n function flattenDestructuringAssignment(node, visitor, context, level, needsValue, createAssignmentCallback) {\n var location = node;\n var value;\n if (ts.isDestructuringAssignment(node)) {\n value = node.right;\n while (ts.isEmptyArrayLiteral(node.left) || ts.isEmptyObjectLiteral(node.left)) {\n if (ts.isDestructuringAssignment(value)) {\n location = node = value;\n value = node.right;\n }\n else {\n return ts.visitNode(value, visitor, ts.isExpression);\n }\n }\n }\n var expressions;\n var flattenContext = {\n context: context,\n level: level,\n downlevelIteration: !!context.getCompilerOptions().downlevelIteration,\n hoistTempVariables: true,\n emitExpression: emitExpression,\n emitBindingOrAssignment: emitBindingOrAssignment,\n createArrayBindingOrAssignmentPattern: function (elements) { return makeArrayAssignmentPattern(context.factory, elements); },\n createObjectBindingOrAssignmentPattern: function (elements) { return makeObjectAssignmentPattern(context.factory, elements); },\n createArrayBindingOrAssignmentElement: makeAssignmentElement,\n visitor: visitor\n };\n if (value) {\n value = ts.visitNode(value, visitor, ts.isExpression);\n if (ts.isIdentifier(value) && bindingOrAssignmentElementAssignsToName(node, value.escapedText) ||\n bindingOrAssignmentElementContainsNonLiteralComputedName(node)) {\n // If the right-hand value of the assignment is also an assignment target then\n // we need to cache the right-hand value.\n value = ensureIdentifier(flattenContext, value, /*reuseIdentifierExpressions*/ false, location);\n }\n else if (needsValue) {\n // If the right-hand value of the destructuring assignment needs to be preserved (as\n // is the case when the destructuring assignment is part of a larger expression),\n // then we need to cache the right-hand value.\n //\n // The source map location for the assignment should point to the entire binary\n // expression.\n value = ensureIdentifier(flattenContext, value, /*reuseIdentifierExpressions*/ true, location);\n }\n else if (ts.nodeIsSynthesized(node)) {\n // Generally, the source map location for a destructuring assignment is the root\n // expression.\n //\n // However, if the root expression is synthesized (as in the case\n // of the initializer when transforming a ForOfStatement), then the source map\n // location should point to the right-hand value of the expression.\n location = value;\n }\n }\n flattenBindingOrAssignmentElement(flattenContext, node, value, location, /*skipInitializer*/ ts.isDestructuringAssignment(node));\n if (value && needsValue) {\n if (!ts.some(expressions)) {\n return value;\n }\n expressions.push(value);\n }\n return context.factory.inlineExpressions(expressions) || context.factory.createOmittedExpression();\n function emitExpression(expression) {\n expressions = ts.append(expressions, expression);\n }\n function emitBindingOrAssignment(target, value, location, original) {\n ts.Debug.assertNode(target, createAssignmentCallback ? ts.isIdentifier : ts.isExpression);\n var expression = createAssignmentCallback\n ? createAssignmentCallback(target, value, location)\n : ts.setTextRange(context.factory.createAssignment(ts.visitNode(target, visitor, ts.isExpression), value), location);\n expression.original = original;\n emitExpression(expression);\n }\n }\n ts.flattenDestructuringAssignment = flattenDestructuringAssignment;\n function bindingOrAssignmentElementAssignsToName(element, escapedName) {\n var target = ts.getTargetOfBindingOrAssignmentElement(element); // TODO: GH#18217\n if (ts.isBindingOrAssignmentPattern(target)) {\n return bindingOrAssignmentPatternAssignsToName(target, escapedName);\n }\n else if (ts.isIdentifier(target)) {\n return target.escapedText === escapedName;\n }\n return false;\n }\n function bindingOrAssignmentPatternAssignsToName(pattern, escapedName) {\n var elements = ts.getElementsOfBindingOrAssignmentPattern(pattern);\n for (var _i = 0, elements_3 = elements; _i < elements_3.length; _i++) {\n var element = elements_3[_i];\n if (bindingOrAssignmentElementAssignsToName(element, escapedName)) {\n return true;\n }\n }\n return false;\n }\n function bindingOrAssignmentElementContainsNonLiteralComputedName(element) {\n var propertyName = ts.tryGetPropertyNameOfBindingOrAssignmentElement(element);\n if (propertyName && ts.isComputedPropertyName(propertyName) && !ts.isLiteralExpression(propertyName.expression)) {\n return true;\n }\n var target = ts.getTargetOfBindingOrAssignmentElement(element);\n return !!target && ts.isBindingOrAssignmentPattern(target) && bindingOrAssignmentPatternContainsNonLiteralComputedName(target);\n }\n function bindingOrAssignmentPatternContainsNonLiteralComputedName(pattern) {\n return !!ts.forEach(ts.getElementsOfBindingOrAssignmentPattern(pattern), bindingOrAssignmentElementContainsNonLiteralComputedName);\n }\n /**\n * Flattens a VariableDeclaration or ParameterDeclaration to one or more variable declarations.\n *\n * @param node The node to flatten.\n * @param visitor An optional visitor used to visit initializers.\n * @param context The transformation context.\n * @param boundValue The value bound to the declaration.\n * @param skipInitializer A value indicating whether to ignore the initializer of `node`.\n * @param hoistTempVariables Indicates whether temporary variables should not be recorded in-line.\n * @param level Indicates the extent to which flattening should occur.\n */\n function flattenDestructuringBinding(node, visitor, context, level, rval, hoistTempVariables, skipInitializer) {\n if (hoistTempVariables === void 0) { hoistTempVariables = false; }\n var pendingExpressions;\n var pendingDeclarations = [];\n var declarations = [];\n var flattenContext = {\n context: context,\n level: level,\n downlevelIteration: !!context.getCompilerOptions().downlevelIteration,\n hoistTempVariables: hoistTempVariables,\n emitExpression: emitExpression,\n emitBindingOrAssignment: emitBindingOrAssignment,\n createArrayBindingOrAssignmentPattern: function (elements) { return makeArrayBindingPattern(context.factory, elements); },\n createObjectBindingOrAssignmentPattern: function (elements) { return makeObjectBindingPattern(context.factory, elements); },\n createArrayBindingOrAssignmentElement: function (name) { return makeBindingElement(context.factory, name); },\n visitor: visitor\n };\n if (ts.isVariableDeclaration(node)) {\n var initializer = ts.getInitializerOfBindingOrAssignmentElement(node);\n if (initializer && (ts.isIdentifier(initializer) && bindingOrAssignmentElementAssignsToName(node, initializer.escapedText) ||\n bindingOrAssignmentElementContainsNonLiteralComputedName(node))) {\n // If the right-hand value of the assignment is also an assignment target then\n // we need to cache the right-hand value.\n initializer = ensureIdentifier(flattenContext, ts.visitNode(initializer, flattenContext.visitor), /*reuseIdentifierExpressions*/ false, initializer);\n node = context.factory.updateVariableDeclaration(node, node.name, /*exclamationToken*/ undefined, /*type*/ undefined, initializer);\n }\n }\n flattenBindingOrAssignmentElement(flattenContext, node, rval, node, skipInitializer);\n if (pendingExpressions) {\n var temp = context.factory.createTempVariable(/*recordTempVariable*/ undefined);\n if (hoistTempVariables) {\n var value = context.factory.inlineExpressions(pendingExpressions);\n pendingExpressions = undefined;\n emitBindingOrAssignment(temp, value, /*location*/ undefined, /*original*/ undefined);\n }\n else {\n context.hoistVariableDeclaration(temp);\n var pendingDeclaration = ts.last(pendingDeclarations);\n pendingDeclaration.pendingExpressions = ts.append(pendingDeclaration.pendingExpressions, context.factory.createAssignment(temp, pendingDeclaration.value));\n ts.addRange(pendingDeclaration.pendingExpressions, pendingExpressions);\n pendingDeclaration.value = temp;\n }\n }\n for (var _i = 0, pendingDeclarations_1 = pendingDeclarations; _i < pendingDeclarations_1.length; _i++) {\n var _a = pendingDeclarations_1[_i], pendingExpressions_1 = _a.pendingExpressions, name = _a.name, value = _a.value, location = _a.location, original = _a.original;\n var variable = context.factory.createVariableDeclaration(name, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, pendingExpressions_1 ? context.factory.inlineExpressions(ts.append(pendingExpressions_1, value)) : value);\n variable.original = original;\n ts.setTextRange(variable, location);\n declarations.push(variable);\n }\n return declarations;\n function emitExpression(value) {\n pendingExpressions = ts.append(pendingExpressions, value);\n }\n function emitBindingOrAssignment(target, value, location, original) {\n ts.Debug.assertNode(target, ts.isBindingName);\n if (pendingExpressions) {\n value = context.factory.inlineExpressions(ts.append(pendingExpressions, value));\n pendingExpressions = undefined;\n }\n pendingDeclarations.push({ pendingExpressions: pendingExpressions, name: target, value: value, location: location, original: original });\n }\n }\n ts.flattenDestructuringBinding = flattenDestructuringBinding;\n /**\n * Flattens a BindingOrAssignmentElement into zero or more bindings or assignments.\n *\n * @param flattenContext Options used to control flattening.\n * @param element The element to flatten.\n * @param value The current RHS value to assign to the element.\n * @param location The location to use for source maps and comments.\n * @param skipInitializer An optional value indicating whether to include the initializer\n * for the element.\n */\n function flattenBindingOrAssignmentElement(flattenContext, element, value, location, skipInitializer) {\n var bindingTarget = ts.getTargetOfBindingOrAssignmentElement(element); // TODO: GH#18217\n if (!skipInitializer) {\n var initializer = ts.visitNode(ts.getInitializerOfBindingOrAssignmentElement(element), flattenContext.visitor, ts.isExpression);\n if (initializer) {\n // Combine value and initializer\n if (value) {\n value = createDefaultValueCheck(flattenContext, value, initializer, location);\n // If 'value' is not a simple expression, it could contain side-effecting code that should evaluate before an object or array binding pattern.\n if (!ts.isSimpleInlineableExpression(initializer) && ts.isBindingOrAssignmentPattern(bindingTarget)) {\n value = ensureIdentifier(flattenContext, value, /*reuseIdentifierExpressions*/ true, location);\n }\n }\n else {\n value = initializer;\n }\n }\n else if (!value) {\n // Use 'void 0' in absence of value and initializer\n value = flattenContext.context.factory.createVoidZero();\n }\n }\n if (ts.isObjectBindingOrAssignmentPattern(bindingTarget)) {\n flattenObjectBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location);\n }\n else if (ts.isArrayBindingOrAssignmentPattern(bindingTarget)) {\n flattenArrayBindingOrAssignmentPattern(flattenContext, element, bindingTarget, value, location);\n }\n else {\n flattenContext.emitBindingOrAssignment(bindingTarget, value, location, /*original*/ element); // TODO: GH#18217\n }\n }\n /**\n * Flattens an ObjectBindingOrAssignmentPattern into zero or more bindings or assignments.\n *\n * @param flattenContext Options used to control flattening.\n * @param parent The parent element of the pattern.\n * @param pattern The ObjectBindingOrAssignmentPattern to flatten.\n * @param value The current RHS value to assign to the element.\n * @param location The location to use for source maps and comments.\n */\n function flattenObjectBindingOrAssignmentPattern(flattenContext, parent, pattern, value, location) {\n var elements = ts.getElementsOfBindingOrAssignmentPattern(pattern);\n var numElements = elements.length;\n if (numElements !== 1) {\n // For anything other than a single-element destructuring we need to generate a temporary\n // to ensure value is evaluated exactly once. Additionally, if we have zero elements\n // we need to emit *something* to ensure that in case a 'var' keyword was already emitted,\n // so in that case, we'll intentionally create that temporary.\n var reuseIdentifierExpressions = !ts.isDeclarationBindingElement(parent) || numElements !== 0;\n value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location);\n }\n var bindingElements;\n var computedTempVariables;\n for (var i = 0; i < numElements; i++) {\n var element = elements[i];\n if (!ts.getRestIndicatorOfBindingOrAssignmentElement(element)) {\n var propertyName = ts.getPropertyNameOfBindingOrAssignmentElement(element);\n if (flattenContext.level >= 1 /* ObjectRest */\n && !(element.transformFlags & (16384 /* ContainsRestOrSpread */ | 32768 /* ContainsObjectRestOrSpread */))\n && !(ts.getTargetOfBindingOrAssignmentElement(element).transformFlags & (16384 /* ContainsRestOrSpread */ | 32768 /* ContainsObjectRestOrSpread */))\n && !ts.isComputedPropertyName(propertyName)) {\n bindingElements = ts.append(bindingElements, ts.visitNode(element, flattenContext.visitor));\n }\n else {\n if (bindingElements) {\n flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n bindingElements = undefined;\n }\n var rhsValue = createDestructuringPropertyAccess(flattenContext, value, propertyName);\n if (ts.isComputedPropertyName(propertyName)) {\n computedTempVariables = ts.append(computedTempVariables, rhsValue.argumentExpression);\n }\n flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, /*location*/ element);\n }\n }\n else if (i === numElements - 1) {\n if (bindingElements) {\n flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n bindingElements = undefined;\n }\n var rhsValue = flattenContext.context.getEmitHelperFactory().createRestHelper(value, elements, computedTempVariables, pattern);\n flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, element);\n }\n }\n if (bindingElements) {\n flattenContext.emitBindingOrAssignment(flattenContext.createObjectBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n }\n }\n /**\n * Flattens an ArrayBindingOrAssignmentPattern into zero or more bindings or assignments.\n *\n * @param flattenContext Options used to control flattening.\n * @param parent The parent element of the pattern.\n * @param pattern The ArrayBindingOrAssignmentPattern to flatten.\n * @param value The current RHS value to assign to the element.\n * @param location The location to use for source maps and comments.\n */\n function flattenArrayBindingOrAssignmentPattern(flattenContext, parent, pattern, value, location) {\n var elements = ts.getElementsOfBindingOrAssignmentPattern(pattern);\n var numElements = elements.length;\n if (flattenContext.level < 1 /* ObjectRest */ && flattenContext.downlevelIteration) {\n // Read the elements of the iterable into an array\n value = ensureIdentifier(flattenContext, ts.setTextRange(flattenContext.context.getEmitHelperFactory().createReadHelper(value, numElements > 0 && ts.getRestIndicatorOfBindingOrAssignmentElement(elements[numElements - 1])\n ? undefined\n : numElements), location), \n /*reuseIdentifierExpressions*/ false, location);\n }\n else if (numElements !== 1 && (flattenContext.level < 1 /* ObjectRest */ || numElements === 0)\n || ts.every(elements, ts.isOmittedExpression)) {\n // For anything other than a single-element destructuring we need to generate a temporary\n // to ensure value is evaluated exactly once. Additionally, if we have zero elements\n // we need to emit *something* to ensure that in case a 'var' keyword was already emitted,\n // so in that case, we'll intentionally create that temporary.\n // Or all the elements of the binding pattern are omitted expression such as \"var [,] = [1,2]\",\n // then we will create temporary variable.\n var reuseIdentifierExpressions = !ts.isDeclarationBindingElement(parent) || numElements !== 0;\n value = ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location);\n }\n var bindingElements;\n var restContainingElements;\n for (var i = 0; i < numElements; i++) {\n var element = elements[i];\n if (flattenContext.level >= 1 /* ObjectRest */) {\n // If an array pattern contains an ObjectRest, we must cache the result so that we\n // can perform the ObjectRest destructuring in a different declaration\n if (element.transformFlags & 32768 /* ContainsObjectRestOrSpread */ || flattenContext.hasTransformedPriorElement && !isSimpleBindingOrAssignmentElement(element)) {\n flattenContext.hasTransformedPriorElement = true;\n var temp = flattenContext.context.factory.createTempVariable(/*recordTempVariable*/ undefined);\n if (flattenContext.hoistTempVariables) {\n flattenContext.context.hoistVariableDeclaration(temp);\n }\n restContainingElements = ts.append(restContainingElements, [temp, element]);\n bindingElements = ts.append(bindingElements, flattenContext.createArrayBindingOrAssignmentElement(temp));\n }\n else {\n bindingElements = ts.append(bindingElements, element);\n }\n }\n else if (ts.isOmittedExpression(element)) {\n continue;\n }\n else if (!ts.getRestIndicatorOfBindingOrAssignmentElement(element)) {\n var rhsValue = flattenContext.context.factory.createElementAccessExpression(value, i);\n flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, /*location*/ element);\n }\n else if (i === numElements - 1) {\n var rhsValue = flattenContext.context.factory.createArraySliceCall(value, i);\n flattenBindingOrAssignmentElement(flattenContext, element, rhsValue, /*location*/ element);\n }\n }\n if (bindingElements) {\n flattenContext.emitBindingOrAssignment(flattenContext.createArrayBindingOrAssignmentPattern(bindingElements), value, location, pattern);\n }\n if (restContainingElements) {\n for (var _i = 0, restContainingElements_1 = restContainingElements; _i < restContainingElements_1.length; _i++) {\n var _a = restContainingElements_1[_i], id = _a[0], element = _a[1];\n flattenBindingOrAssignmentElement(flattenContext, element, id, element);\n }\n }\n }\n function isSimpleBindingOrAssignmentElement(element) {\n var target = ts.getTargetOfBindingOrAssignmentElement(element);\n if (!target || ts.isOmittedExpression(target))\n return true;\n var propertyName = ts.tryGetPropertyNameOfBindingOrAssignmentElement(element);\n if (propertyName && !ts.isPropertyNameLiteral(propertyName))\n return false;\n var initializer = ts.getInitializerOfBindingOrAssignmentElement(element);\n if (initializer && !ts.isSimpleInlineableExpression(initializer))\n return false;\n if (ts.isBindingOrAssignmentPattern(target))\n return ts.every(ts.getElementsOfBindingOrAssignmentPattern(target), isSimpleBindingOrAssignmentElement);\n return ts.isIdentifier(target);\n }\n /**\n * Creates an expression used to provide a default value if a value is `undefined` at runtime.\n *\n * @param flattenContext Options used to control flattening.\n * @param value The RHS value to test.\n * @param defaultValue The default value to use if `value` is `undefined` at runtime.\n * @param location The location to use for source maps and comments.\n */\n function createDefaultValueCheck(flattenContext, value, defaultValue, location) {\n value = ensureIdentifier(flattenContext, value, /*reuseIdentifierExpressions*/ true, location);\n return flattenContext.context.factory.createConditionalExpression(flattenContext.context.factory.createTypeCheck(value, \"undefined\"), /*questionToken*/ undefined, defaultValue, /*colonToken*/ undefined, value);\n }\n /**\n * Creates either a PropertyAccessExpression or an ElementAccessExpression for the\n * right-hand side of a transformed destructuring assignment.\n *\n * @link https://tc39.github.io/ecma262/#sec-runtime-semantics-keyeddestructuringassignmentevaluation\n *\n * @param flattenContext Options used to control flattening.\n * @param value The RHS value that is the source of the property.\n * @param propertyName The destructuring property name.\n */\n function createDestructuringPropertyAccess(flattenContext, value, propertyName) {\n if (ts.isComputedPropertyName(propertyName)) {\n var argumentExpression = ensureIdentifier(flattenContext, ts.visitNode(propertyName.expression, flattenContext.visitor), /*reuseIdentifierExpressions*/ false, /*location*/ propertyName);\n return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression);\n }\n else if (ts.isStringOrNumericLiteralLike(propertyName)) {\n var argumentExpression = ts.factory.cloneNode(propertyName);\n return flattenContext.context.factory.createElementAccessExpression(value, argumentExpression);\n }\n else {\n var name = flattenContext.context.factory.createIdentifier(ts.idText(propertyName));\n return flattenContext.context.factory.createPropertyAccessExpression(value, name);\n }\n }\n /**\n * Ensures that there exists a declared identifier whose value holds the given expression.\n * This function is useful to ensure that the expression's value can be read from in subsequent expressions.\n * Unless 'reuseIdentifierExpressions' is false, 'value' will be returned if it is just an identifier.\n *\n * @param flattenContext Options used to control flattening.\n * @param value the expression whose value needs to be bound.\n * @param reuseIdentifierExpressions true if identifier expressions can simply be returned;\n * false if it is necessary to always emit an identifier.\n * @param location The location to use for source maps and comments.\n */\n function ensureIdentifier(flattenContext, value, reuseIdentifierExpressions, location) {\n if (ts.isIdentifier(value) && reuseIdentifierExpressions) {\n return value;\n }\n else {\n var temp = flattenContext.context.factory.createTempVariable(/*recordTempVariable*/ undefined);\n if (flattenContext.hoistTempVariables) {\n flattenContext.context.hoistVariableDeclaration(temp);\n flattenContext.emitExpression(ts.setTextRange(flattenContext.context.factory.createAssignment(temp, value), location));\n }\n else {\n flattenContext.emitBindingOrAssignment(temp, value, location, /*original*/ undefined);\n }\n return temp;\n }\n }\n function makeArrayBindingPattern(factory, elements) {\n ts.Debug.assertEachNode(elements, ts.isArrayBindingElement);\n return factory.createArrayBindingPattern(elements);\n }\n function makeArrayAssignmentPattern(factory, elements) {\n return factory.createArrayLiteralExpression(ts.map(elements, factory.converters.convertToArrayAssignmentElement));\n }\n function makeObjectBindingPattern(factory, elements) {\n ts.Debug.assertEachNode(elements, ts.isBindingElement);\n return factory.createObjectBindingPattern(elements);\n }\n function makeObjectAssignmentPattern(factory, elements) {\n return factory.createObjectLiteralExpression(ts.map(elements, factory.converters.convertToObjectAssignmentElement));\n }\n function makeBindingElement(factory, name) {\n return factory.createBindingElement(/*dotDotDotToken*/ undefined, /*propertyName*/ undefined, name);\n }\n function makeAssignmentElement(name) {\n return name;\n }\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var ProcessLevel;\n (function (ProcessLevel) {\n ProcessLevel[ProcessLevel[\"LiftRestriction\"] = 0] = \"LiftRestriction\";\n ProcessLevel[ProcessLevel[\"All\"] = 1] = \"All\";\n })(ProcessLevel = ts.ProcessLevel || (ts.ProcessLevel = {}));\n function processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, level) {\n // Visit the tag expression\n var tag = ts.visitNode(node.tag, visitor, ts.isExpression);\n // Build up the template arguments and the raw and cooked strings for the template.\n // We start out with 'undefined' for the first argument and revisit later\n // to avoid walking over the template string twice and shifting all our arguments over after the fact.\n var templateArguments = [undefined];\n var cookedStrings = [];\n var rawStrings = [];\n var template = node.template;\n if (level === ProcessLevel.LiftRestriction && !ts.hasInvalidEscape(template)) {\n return ts.visitEachChild(node, visitor, context);\n }\n if (ts.isNoSubstitutionTemplateLiteral(template)) {\n cookedStrings.push(createTemplateCooked(template));\n rawStrings.push(getRawLiteral(template, currentSourceFile));\n }\n else {\n cookedStrings.push(createTemplateCooked(template.head));\n rawStrings.push(getRawLiteral(template.head, currentSourceFile));\n for (var _i = 0, _a = template.templateSpans; _i < _a.length; _i++) {\n var templateSpan = _a[_i];\n cookedStrings.push(createTemplateCooked(templateSpan.literal));\n rawStrings.push(getRawLiteral(templateSpan.literal, currentSourceFile));\n templateArguments.push(ts.visitNode(templateSpan.expression, visitor, ts.isExpression));\n }\n }\n var helperCall = context.getEmitHelperFactory().createTemplateObjectHelper(ts.factory.createArrayLiteralExpression(cookedStrings), ts.factory.createArrayLiteralExpression(rawStrings));\n // Create a variable to cache the template object if we're in a module.\n // Do not do this in the global scope, as any variable we currently generate could conflict with\n // variables from outside of the current compilation. In the future, we can revisit this behavior.\n if (ts.isExternalModule(currentSourceFile)) {\n var tempVar = ts.factory.createUniqueName(\"templateObject\");\n recordTaggedTemplateString(tempVar);\n templateArguments[0] = ts.factory.createLogicalOr(tempVar, ts.factory.createAssignment(tempVar, helperCall));\n }\n else {\n templateArguments[0] = helperCall;\n }\n return ts.factory.createCallExpression(tag, /*typeArguments*/ undefined, templateArguments);\n }\n ts.processTaggedTemplateExpression = processTaggedTemplateExpression;\n function createTemplateCooked(template) {\n return template.templateFlags ? ts.factory.createVoidZero() : ts.factory.createStringLiteral(template.text);\n }\n /**\n * Creates an ES5 compatible literal from an ES6 template literal.\n *\n * @param node The ES6 template literal.\n */\n function getRawLiteral(node, currentSourceFile) {\n // Find original source text, since we need to emit the raw strings of the tagged template.\n // The raw strings contain the (escaped) strings of what the user wrote.\n // Examples: `\\n` is converted to \"\\\\n\", a template string with a newline to \"\\n\".\n var text = node.rawText;\n if (text === undefined) {\n ts.Debug.assertIsDefined(currentSourceFile, \"Template literal node is missing 'rawText' and does not have a source file. Possibly bad transform.\");\n text = ts.getSourceTextOfNodeFromSourceFile(currentSourceFile, node);\n // text contains the original source, it will also contain quotes (\"`\"), dolar signs and braces (\"${\" and \"}\"),\n // thus we need to remove those characters.\n // First template piece starts with \"`\", others with \"}\"\n // Last template piece ends with \"`\", others with \"${\"\n var isLast = node.kind === 14 /* NoSubstitutionTemplateLiteral */ || node.kind === 17 /* TemplateTail */;\n text = text.substring(1, text.length - (isLast ? 1 : 2));\n }\n // Newline normalization:\n // ES6 Spec 11.8.6.1 - Static Semantics of TV's and TRV's\n // and LineTerminatorSequences are normalized to for both TV and TRV.\n text = text.replace(/\\r\\n?/g, \"\\n\");\n return ts.setTextRange(ts.factory.createStringLiteral(text), node);\n }\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n /**\n * Indicates whether to emit type metadata in the new format.\n */\n var USE_NEW_TYPE_METADATA_FORMAT = false;\n var TypeScriptSubstitutionFlags;\n (function (TypeScriptSubstitutionFlags) {\n /** Enables substitutions for decorated classes. */\n TypeScriptSubstitutionFlags[TypeScriptSubstitutionFlags[\"ClassAliases\"] = 1] = \"ClassAliases\";\n /** Enables substitutions for namespace exports. */\n TypeScriptSubstitutionFlags[TypeScriptSubstitutionFlags[\"NamespaceExports\"] = 2] = \"NamespaceExports\";\n /* Enables substitutions for unqualified enum members */\n TypeScriptSubstitutionFlags[TypeScriptSubstitutionFlags[\"NonQualifiedEnumMembers\"] = 8] = \"NonQualifiedEnumMembers\";\n })(TypeScriptSubstitutionFlags || (TypeScriptSubstitutionFlags = {}));\n var ClassFacts;\n (function (ClassFacts) {\n ClassFacts[ClassFacts[\"None\"] = 0] = \"None\";\n ClassFacts[ClassFacts[\"HasStaticInitializedProperties\"] = 1] = \"HasStaticInitializedProperties\";\n ClassFacts[ClassFacts[\"HasConstructorDecorators\"] = 2] = \"HasConstructorDecorators\";\n ClassFacts[ClassFacts[\"HasMemberDecorators\"] = 4] = \"HasMemberDecorators\";\n ClassFacts[ClassFacts[\"IsExportOfNamespace\"] = 8] = \"IsExportOfNamespace\";\n ClassFacts[ClassFacts[\"IsNamedExternalExport\"] = 16] = \"IsNamedExternalExport\";\n ClassFacts[ClassFacts[\"IsDefaultExternalExport\"] = 32] = \"IsDefaultExternalExport\";\n ClassFacts[ClassFacts[\"IsDerivedClass\"] = 64] = \"IsDerivedClass\";\n ClassFacts[ClassFacts[\"UseImmediatelyInvokedFunctionExpression\"] = 128] = \"UseImmediatelyInvokedFunctionExpression\";\n ClassFacts[ClassFacts[\"HasAnyDecorators\"] = 6] = \"HasAnyDecorators\";\n ClassFacts[ClassFacts[\"NeedsName\"] = 5] = \"NeedsName\";\n ClassFacts[ClassFacts[\"MayNeedImmediatelyInvokedFunctionExpression\"] = 7] = \"MayNeedImmediatelyInvokedFunctionExpression\";\n ClassFacts[ClassFacts[\"IsExported\"] = 56] = \"IsExported\";\n })(ClassFacts || (ClassFacts = {}));\n function transformTypeScript(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory, startLexicalEnvironment = context.startLexicalEnvironment, resumeLexicalEnvironment = context.resumeLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var resolver = context.getEmitResolver();\n var compilerOptions = context.getCompilerOptions();\n var strictNullChecks = ts.getStrictOptionValue(compilerOptions, \"strictNullChecks\");\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n // Save the previous transformation hooks.\n var previousOnEmitNode = context.onEmitNode;\n var previousOnSubstituteNode = context.onSubstituteNode;\n // Set new transformation hooks.\n context.onEmitNode = onEmitNode;\n context.onSubstituteNode = onSubstituteNode;\n // Enable substitution for property/element access to emit const enum values.\n context.enableSubstitution(204 /* PropertyAccessExpression */);\n context.enableSubstitution(205 /* ElementAccessExpression */);\n // These variables contain state that changes as we descend into the tree.\n var currentSourceFile;\n var currentNamespace;\n var currentNamespaceContainerName;\n var currentLexicalScope;\n var currentNameScope;\n var currentScopeFirstDeclarationsOfName;\n var currentClassHasParameterProperties;\n /**\n * Keeps track of whether expression substitution has been enabled for specific edge cases.\n * They are persisted between each SourceFile transformation and should not be reset.\n */\n var enabledSubstitutions;\n /**\n * A map that keeps track of aliases created for classes with decorators to avoid issues\n * with the double-binding behavior of classes.\n */\n var classAliases;\n /**\n * Keeps track of whether we are within any containing namespaces when performing\n * just-in-time substitution while printing an expression identifier.\n */\n var applicableSubstitutions;\n return transformSourceFileOrBundle;\n function transformSourceFileOrBundle(node) {\n if (node.kind === 301 /* Bundle */) {\n return transformBundle(node);\n }\n return transformSourceFile(node);\n }\n function transformBundle(node) {\n return factory.createBundle(node.sourceFiles.map(transformSourceFile), ts.mapDefined(node.prepends, function (prepend) {\n if (prepend.kind === 303 /* InputFiles */) {\n return ts.createUnparsedSourceFile(prepend, \"js\");\n }\n return prepend;\n }));\n }\n /**\n * Transform TypeScript-specific syntax in a SourceFile.\n *\n * @param node A SourceFile node.\n */\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n currentSourceFile = node;\n var visited = saveStateAndInvoke(node, visitSourceFile);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n currentSourceFile = undefined;\n return visited;\n }\n /**\n * Visits a node, saving and restoring state variables on the stack.\n *\n * @param node The node to visit.\n */\n function saveStateAndInvoke(node, f) {\n // Save state\n var savedCurrentScope = currentLexicalScope;\n var savedCurrentNameScope = currentNameScope;\n var savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName;\n var savedCurrentClassHasParameterProperties = currentClassHasParameterProperties;\n // Handle state changes before visiting a node.\n onBeforeVisitNode(node);\n var visited = f(node);\n // Restore state\n if (currentLexicalScope !== savedCurrentScope) {\n currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName;\n }\n currentLexicalScope = savedCurrentScope;\n currentNameScope = savedCurrentNameScope;\n currentClassHasParameterProperties = savedCurrentClassHasParameterProperties;\n return visited;\n }\n /**\n * Performs actions that should always occur immediately before visiting a node.\n *\n * @param node The node to visit.\n */\n function onBeforeVisitNode(node) {\n switch (node.kind) {\n case 300 /* SourceFile */:\n case 261 /* CaseBlock */:\n case 260 /* ModuleBlock */:\n case 233 /* Block */:\n currentLexicalScope = node;\n currentNameScope = undefined;\n currentScopeFirstDeclarationsOfName = undefined;\n break;\n case 255 /* ClassDeclaration */:\n case 254 /* FunctionDeclaration */:\n if (ts.hasSyntacticModifier(node, 2 /* Ambient */)) {\n break;\n }\n // Record these declarations provided that they have a name.\n if (node.name) {\n recordEmittedDeclarationInScope(node);\n }\n else {\n // These nodes should always have names unless they are default-exports;\n // however, class declaration parsing allows for undefined names, so syntactically invalid\n // programs may also have an undefined name.\n ts.Debug.assert(node.kind === 255 /* ClassDeclaration */ || ts.hasSyntacticModifier(node, 512 /* Default */));\n }\n if (ts.isClassDeclaration(node)) {\n // XXX: should probably also cover interfaces and type aliases that can have type variables?\n currentNameScope = node;\n }\n break;\n }\n }\n /**\n * General-purpose node visitor.\n *\n * @param node The node to visit.\n */\n function visitor(node) {\n return saveStateAndInvoke(node, visitorWorker);\n }\n /**\n * Visits and possibly transforms any node.\n *\n * @param node The node to visit.\n */\n function visitorWorker(node) {\n if (node.transformFlags & 1 /* ContainsTypeScript */) {\n return visitTypeScript(node);\n }\n return node;\n }\n /**\n * Specialized visitor that visits the immediate children of a SourceFile.\n *\n * @param node The node to visit.\n */\n function sourceElementVisitor(node) {\n return saveStateAndInvoke(node, sourceElementVisitorWorker);\n }\n /**\n * Specialized visitor that visits the immediate children of a SourceFile.\n *\n * @param node The node to visit.\n */\n function sourceElementVisitorWorker(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n case 269 /* ExportAssignment */:\n case 270 /* ExportDeclaration */:\n return visitElidableStatement(node);\n default:\n return visitorWorker(node);\n }\n }\n function visitElidableStatement(node) {\n var parsed = ts.getParseTreeNode(node);\n if (parsed !== node) {\n // If the node has been transformed by a `before` transformer, perform no ellision on it\n // As the type information we would attempt to lookup to perform ellision is potentially unavailable for the synthesized nodes\n // We do not reuse `visitorWorker`, as the ellidable statement syntax kinds are technically unrecognized by the switch-case in `visitTypeScript`,\n // and will trigger debug failures when debug verbosity is turned up\n if (node.transformFlags & 1 /* ContainsTypeScript */) {\n // This node contains TypeScript, so we should visit its children.\n return ts.visitEachChild(node, visitor, context);\n }\n // Otherwise, we can just return the node\n return node;\n }\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return visitImportDeclaration(node);\n case 263 /* ImportEqualsDeclaration */:\n return visitImportEqualsDeclaration(node);\n case 269 /* ExportAssignment */:\n return visitExportAssignment(node);\n case 270 /* ExportDeclaration */:\n return visitExportDeclaration(node);\n default:\n ts.Debug.fail(\"Unhandled ellided statement\");\n }\n }\n /**\n * Specialized visitor that visits the immediate children of a namespace.\n *\n * @param node The node to visit.\n */\n function namespaceElementVisitor(node) {\n return saveStateAndInvoke(node, namespaceElementVisitorWorker);\n }\n /**\n * Specialized visitor that visits the immediate children of a namespace.\n *\n * @param node The node to visit.\n */\n function namespaceElementVisitorWorker(node) {\n if (node.kind === 270 /* ExportDeclaration */ ||\n node.kind === 264 /* ImportDeclaration */ ||\n node.kind === 265 /* ImportClause */ ||\n (node.kind === 263 /* ImportEqualsDeclaration */ &&\n node.moduleReference.kind === 275 /* ExternalModuleReference */)) {\n // do not emit ES6 imports and exports since they are illegal inside a namespace\n return undefined;\n }\n else if (node.transformFlags & 1 /* ContainsTypeScript */ || ts.hasSyntacticModifier(node, 1 /* Export */)) {\n return visitTypeScript(node);\n }\n return node;\n }\n /**\n * Specialized visitor that visits the immediate children of a class with TypeScript syntax.\n *\n * @param node The node to visit.\n */\n function classElementVisitor(node) {\n return saveStateAndInvoke(node, classElementVisitorWorker);\n }\n /**\n * Specialized visitor that visits the immediate children of a class with TypeScript syntax.\n *\n * @param node The node to visit.\n */\n function classElementVisitorWorker(node) {\n switch (node.kind) {\n case 169 /* Constructor */:\n return visitConstructor(node);\n case 165 /* PropertyDeclaration */:\n // Property declarations are not TypeScript syntax, but they must be visited\n // for the decorator transformation.\n return visitPropertyDeclaration(node);\n case 174 /* IndexSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n case 168 /* ClassStaticBlockDeclaration */:\n // Fallback to the default visit behavior.\n return visitorWorker(node);\n case 232 /* SemicolonClassElement */:\n return node;\n default:\n return ts.Debug.failBadSyntaxKind(node);\n }\n }\n function modifierVisitor(node) {\n if (ts.modifierToFlag(node.kind) & 18654 /* TypeScriptModifier */) {\n return undefined;\n }\n else if (currentNamespace && node.kind === 93 /* ExportKeyword */) {\n return undefined;\n }\n return node;\n }\n /**\n * Branching visitor, visits a TypeScript syntax node.\n *\n * @param node The node to visit.\n */\n function visitTypeScript(node) {\n if (ts.isStatement(node) && ts.hasSyntacticModifier(node, 2 /* Ambient */)) {\n // TypeScript ambient declarations are elided, but some comments may be preserved.\n // See the implementation of `getLeadingComments` in comments.ts for more details.\n return factory.createNotEmittedStatement(node);\n }\n switch (node.kind) {\n case 93 /* ExportKeyword */:\n case 88 /* DefaultKeyword */:\n // ES6 export and default modifiers are elided when inside a namespace.\n return currentNamespace ? undefined : node;\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 126 /* AbstractKeyword */:\n case 157 /* OverrideKeyword */:\n case 85 /* ConstKeyword */:\n case 134 /* DeclareKeyword */:\n case 143 /* ReadonlyKeyword */:\n // TypeScript accessibility and readonly modifiers are elided\n // falls through\n case 181 /* ArrayType */:\n case 182 /* TupleType */:\n case 183 /* OptionalType */:\n case 184 /* RestType */:\n case 180 /* TypeLiteral */:\n case 175 /* TypePredicate */:\n case 161 /* TypeParameter */:\n case 129 /* AnyKeyword */:\n case 153 /* UnknownKeyword */:\n case 132 /* BooleanKeyword */:\n case 148 /* StringKeyword */:\n case 145 /* NumberKeyword */:\n case 142 /* NeverKeyword */:\n case 114 /* VoidKeyword */:\n case 149 /* SymbolKeyword */:\n case 178 /* ConstructorType */:\n case 177 /* FunctionType */:\n case 179 /* TypeQuery */:\n case 176 /* TypeReference */:\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n case 187 /* ConditionalType */:\n case 189 /* ParenthesizedType */:\n case 190 /* ThisType */:\n case 191 /* TypeOperator */:\n case 192 /* IndexedAccessType */:\n case 193 /* MappedType */:\n case 194 /* LiteralType */:\n // TypeScript type nodes are elided.\n // falls through\n case 174 /* IndexSignature */:\n // TypeScript index signatures are elided.\n // falls through\n case 163 /* Decorator */:\n // TypeScript decorators are elided. They will be emitted as part of visitClassDeclaration.\n return undefined;\n case 257 /* TypeAliasDeclaration */:\n // TypeScript type-only declarations are elided.\n return factory.createNotEmittedStatement(node);\n case 165 /* PropertyDeclaration */:\n // TypeScript property declarations are elided. However their names are still visited, and can potentially be retained if they could have sideeffects\n return visitPropertyDeclaration(node);\n case 262 /* NamespaceExportDeclaration */:\n // TypeScript namespace export declarations are elided.\n return undefined;\n case 169 /* Constructor */:\n return visitConstructor(node);\n case 256 /* InterfaceDeclaration */:\n // TypeScript interfaces are elided, but some comments may be preserved.\n // See the implementation of `getLeadingComments` in comments.ts for more details.\n return factory.createNotEmittedStatement(node);\n case 255 /* ClassDeclaration */:\n // This may be a class declaration with TypeScript syntax extensions.\n //\n // TypeScript class syntax extensions include:\n // - decorators\n // - optional `implements` heritage clause\n // - parameter property assignments in the constructor\n // - index signatures\n // - method overload signatures\n return visitClassDeclaration(node);\n case 224 /* ClassExpression */:\n // This may be a class expression with TypeScript syntax extensions.\n //\n // TypeScript class syntax extensions include:\n // - decorators\n // - optional `implements` heritage clause\n // - parameter property assignments in the constructor\n // - index signatures\n // - method overload signatures\n return visitClassExpression(node);\n case 289 /* HeritageClause */:\n // This may be a heritage clause with TypeScript syntax extensions.\n //\n // TypeScript heritage clause extensions include:\n // - `implements` clause\n return visitHeritageClause(node);\n case 226 /* ExpressionWithTypeArguments */:\n // TypeScript supports type arguments on an expression in an `extends` heritage clause.\n return visitExpressionWithTypeArguments(node);\n case 167 /* MethodDeclaration */:\n // TypeScript method declarations may have decorators, modifiers\n // or type annotations.\n return visitMethodDeclaration(node);\n case 170 /* GetAccessor */:\n // Get Accessors can have TypeScript modifiers, decorators, and type annotations.\n return visitGetAccessor(node);\n case 171 /* SetAccessor */:\n // Set Accessors can have TypeScript modifiers and type annotations.\n return visitSetAccessor(node);\n case 254 /* FunctionDeclaration */:\n // Typescript function declarations can have modifiers, decorators, and type annotations.\n return visitFunctionDeclaration(node);\n case 211 /* FunctionExpression */:\n // TypeScript function expressions can have modifiers and type annotations.\n return visitFunctionExpression(node);\n case 212 /* ArrowFunction */:\n // TypeScript arrow functions can have modifiers and type annotations.\n return visitArrowFunction(node);\n case 162 /* Parameter */:\n // This may be a parameter declaration with TypeScript syntax extensions.\n //\n // TypeScript parameter declaration syntax extensions include:\n // - decorators\n // - accessibility modifiers\n // - the question mark (?) token for optional parameters\n // - type annotations\n // - this parameters\n return visitParameter(node);\n case 210 /* ParenthesizedExpression */:\n // ParenthesizedExpressions are TypeScript if their expression is a\n // TypeAssertion or AsExpression\n return visitParenthesizedExpression(node);\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n // TypeScript type assertions are removed, but their subtrees are preserved.\n return visitAssertionExpression(node);\n case 206 /* CallExpression */:\n return visitCallExpression(node);\n case 207 /* NewExpression */:\n return visitNewExpression(node);\n case 208 /* TaggedTemplateExpression */:\n return visitTaggedTemplateExpression(node);\n case 228 /* NonNullExpression */:\n // TypeScript non-null expressions are removed, but their subtrees are preserved.\n return visitNonNullExpression(node);\n case 258 /* EnumDeclaration */:\n // TypeScript enum declarations do not exist in ES6 and must be rewritten.\n return visitEnumDeclaration(node);\n case 235 /* VariableStatement */:\n // TypeScript namespace exports for variable statements must be transformed.\n return visitVariableStatement(node);\n case 252 /* VariableDeclaration */:\n return visitVariableDeclaration(node);\n case 259 /* ModuleDeclaration */:\n // TypeScript namespace declarations must be transformed.\n return visitModuleDeclaration(node);\n case 263 /* ImportEqualsDeclaration */:\n // TypeScript namespace or external module import.\n return visitImportEqualsDeclaration(node);\n case 277 /* JsxSelfClosingElement */:\n return visitJsxSelfClosingElement(node);\n case 278 /* JsxOpeningElement */:\n return visitJsxJsxOpeningElement(node);\n default:\n // node contains some other TypeScript syntax\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitSourceFile(node) {\n var alwaysStrict = ts.getStrictOptionValue(compilerOptions, \"alwaysStrict\") &&\n !(ts.isExternalModule(node) && moduleKind >= ts.ModuleKind.ES2015) &&\n !ts.isJsonSourceFile(node);\n return factory.updateSourceFile(node, ts.visitLexicalEnvironment(node.statements, sourceElementVisitor, context, /*start*/ 0, alwaysStrict));\n }\n function getClassFacts(node, staticProperties) {\n var facts = 0 /* None */;\n if (ts.some(staticProperties))\n facts |= 1 /* HasStaticInitializedProperties */;\n var extendsClauseElement = ts.getEffectiveBaseTypeNode(node);\n if (extendsClauseElement && ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 104 /* NullKeyword */)\n facts |= 64 /* IsDerivedClass */;\n if (ts.classOrConstructorParameterIsDecorated(node))\n facts |= 2 /* HasConstructorDecorators */;\n if (ts.childIsDecorated(node))\n facts |= 4 /* HasMemberDecorators */;\n if (isExportOfNamespace(node))\n facts |= 8 /* IsExportOfNamespace */;\n else if (isDefaultExternalModuleExport(node))\n facts |= 32 /* IsDefaultExternalExport */;\n else if (isNamedExternalModuleExport(node))\n facts |= 16 /* IsNamedExternalExport */;\n if (languageVersion <= 1 /* ES5 */ && (facts & 7 /* MayNeedImmediatelyInvokedFunctionExpression */))\n facts |= 128 /* UseImmediatelyInvokedFunctionExpression */;\n return facts;\n }\n function hasTypeScriptClassSyntax(node) {\n return !!(node.transformFlags & 4096 /* ContainsTypeScriptClassSyntax */);\n }\n function isClassLikeDeclarationWithTypeScriptSyntax(node) {\n return ts.some(node.decorators)\n || ts.some(node.typeParameters)\n || ts.some(node.heritageClauses, hasTypeScriptClassSyntax)\n || ts.some(node.members, hasTypeScriptClassSyntax);\n }\n function visitClassDeclaration(node) {\n if (!isClassLikeDeclarationWithTypeScriptSyntax(node) && !(currentNamespace && ts.hasSyntacticModifier(node, 1 /* Export */))) {\n return ts.visitEachChild(node, visitor, context);\n }\n var staticProperties = ts.getProperties(node, /*requireInitializer*/ true, /*isStatic*/ true);\n var facts = getClassFacts(node, staticProperties);\n if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {\n context.startLexicalEnvironment();\n }\n var name = node.name || (facts & 5 /* NeedsName */ ? factory.getGeneratedNameForNode(node) : undefined);\n var classStatement = facts & 2 /* HasConstructorDecorators */\n ? createClassDeclarationHeadWithDecorators(node, name)\n : createClassDeclarationHeadWithoutDecorators(node, name, facts);\n var statements = [classStatement];\n // Write any decorators of the node.\n addClassElementDecorationStatements(statements, node, /*isStatic*/ false);\n addClassElementDecorationStatements(statements, node, /*isStatic*/ true);\n addConstructorDecorationStatement(statements, node);\n if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */) {\n // When we emit a TypeScript class down to ES5, we must wrap it in an IIFE so that the\n // 'es2015' transformer can properly nest static initializers and decorators. The result\n // looks something like:\n //\n // var C = function () {\n // class C {\n // }\n // C.static_prop = 1;\n // return C;\n // }();\n //\n var closingBraceLocation = ts.createTokenRange(ts.skipTrivia(currentSourceFile.text, node.members.end), 19 /* CloseBraceToken */);\n var localName = factory.getInternalName(node);\n // The following partially-emitted expression exists purely to align our sourcemap\n // emit with the original emitter.\n var outer = factory.createPartiallyEmittedExpression(localName);\n ts.setTextRangeEnd(outer, closingBraceLocation.end);\n ts.setEmitFlags(outer, 1536 /* NoComments */);\n var statement = factory.createReturnStatement(outer);\n ts.setTextRangePos(statement, closingBraceLocation.pos);\n ts.setEmitFlags(statement, 1536 /* NoComments */ | 384 /* NoTokenSourceMaps */);\n statements.push(statement);\n ts.insertStatementsAfterStandardPrologue(statements, context.endLexicalEnvironment());\n var iife = factory.createImmediatelyInvokedArrowFunction(statements);\n ts.setEmitFlags(iife, 33554432 /* TypeScriptClassWrapper */);\n var varStatement = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ false), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, iife)\n ]));\n ts.setOriginalNode(varStatement, node);\n ts.setCommentRange(varStatement, node);\n ts.setSourceMapRange(varStatement, ts.moveRangePastDecorators(node));\n ts.startOnNewLine(varStatement);\n statements = [varStatement];\n }\n // If the class is exported as part of a TypeScript namespace, emit the namespace export.\n // Otherwise, if the class was exported at the top level and was decorated, emit an export\n // declaration or export default for the class.\n if (facts & 8 /* IsExportOfNamespace */) {\n addExportMemberAssignment(statements, node);\n }\n else if (facts & 128 /* UseImmediatelyInvokedFunctionExpression */ || facts & 2 /* HasConstructorDecorators */) {\n if (facts & 32 /* IsDefaultExternalExport */) {\n statements.push(factory.createExportDefault(factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true)));\n }\n else if (facts & 16 /* IsNamedExternalExport */) {\n statements.push(factory.createExternalModuleExport(factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true)));\n }\n }\n if (statements.length > 1) {\n // Add a DeclarationMarker as a marker for the end of the declaration\n statements.push(factory.createEndOfDeclarationMarker(node));\n ts.setEmitFlags(classStatement, ts.getEmitFlags(classStatement) | 4194304 /* HasEndOfDeclarationMarker */);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Transforms a non-decorated class declaration and appends the resulting statements.\n *\n * @param node A ClassDeclaration node.\n * @param name The name of the class.\n * @param facts Precomputed facts about the class.\n */\n function createClassDeclarationHeadWithoutDecorators(node, name, facts) {\n // ${modifiers} class ${name} ${heritageClauses} {\n // ${members}\n // }\n // we do not emit modifiers on the declaration if we are emitting an IIFE\n var modifiers = !(facts & 128 /* UseImmediatelyInvokedFunctionExpression */)\n ? ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier)\n : undefined;\n var classDeclaration = factory.createClassDeclaration(\n /*decorators*/ undefined, modifiers, name, \n /*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), transformClassMembers(node));\n // To better align with the old emitter, we should not emit a trailing source map\n // entry if the class has static properties.\n var emitFlags = ts.getEmitFlags(node);\n if (facts & 1 /* HasStaticInitializedProperties */) {\n emitFlags |= 32 /* NoTrailingSourceMap */;\n }\n ts.setTextRange(classDeclaration, node);\n ts.setOriginalNode(classDeclaration, node);\n ts.setEmitFlags(classDeclaration, emitFlags);\n return classDeclaration;\n }\n /**\n * Transforms a decorated class declaration and appends the resulting statements. If\n * the class requires an alias to avoid issues with double-binding, the alias is returned.\n */\n function createClassDeclarationHeadWithDecorators(node, name) {\n // When we emit an ES6 class that has a class decorator, we must tailor the\n // emit to certain specific cases.\n //\n // In the simplest case, we emit the class declaration as a let declaration, and\n // evaluate decorators after the close of the class body:\n //\n // [Example 1]\n // ---------------------------------------------------------------------\n // TypeScript | Javascript\n // ---------------------------------------------------------------------\n // @dec | let C = class C {\n // class C { | }\n // } | C = __decorate([dec], C);\n // ---------------------------------------------------------------------\n // @dec | let C = class C {\n // export class C { | }\n // } | C = __decorate([dec], C);\n // | export { C };\n // ---------------------------------------------------------------------\n //\n // If a class declaration contains a reference to itself *inside* of the class body,\n // this introduces two bindings to the class: One outside of the class body, and one\n // inside of the class body. If we apply decorators as in [Example 1] above, there\n // is the possibility that the decorator `dec` will return a new value for the\n // constructor, which would result in the binding inside of the class no longer\n // pointing to the same reference as the binding outside of the class.\n //\n // As a result, we must instead rewrite all references to the class *inside* of the\n // class body to instead point to a local temporary alias for the class:\n //\n // [Example 2]\n // ---------------------------------------------------------------------\n // TypeScript | Javascript\n // ---------------------------------------------------------------------\n // @dec | let C = C_1 = class C {\n // class C { | static x() { return C_1.y; }\n // static x() { return C.y; } | }\n // static y = 1; | C.y = 1;\n // } | C = C_1 = __decorate([dec], C);\n // | var C_1;\n // ---------------------------------------------------------------------\n // @dec | let C = class C {\n // export class C { | static x() { return C_1.y; }\n // static x() { return C.y; } | }\n // static y = 1; | C.y = 1;\n // } | C = C_1 = __decorate([dec], C);\n // | export { C };\n // | var C_1;\n // ---------------------------------------------------------------------\n //\n // If a class declaration is the default export of a module, we instead emit\n // the export after the decorated declaration:\n //\n // [Example 3]\n // ---------------------------------------------------------------------\n // TypeScript | Javascript\n // ---------------------------------------------------------------------\n // @dec | let default_1 = class {\n // export default class { | }\n // } | default_1 = __decorate([dec], default_1);\n // | export default default_1;\n // ---------------------------------------------------------------------\n // @dec | let C = class C {\n // export default class C { | }\n // } | C = __decorate([dec], C);\n // | export default C;\n // ---------------------------------------------------------------------\n //\n // If the class declaration is the default export and a reference to itself\n // inside of the class body, we must emit both an alias for the class *and*\n // move the export after the declaration:\n //\n // [Example 4]\n // ---------------------------------------------------------------------\n // TypeScript | Javascript\n // ---------------------------------------------------------------------\n // @dec | let C = class C {\n // export default class C { | static x() { return C_1.y; }\n // static x() { return C.y; } | }\n // static y = 1; | C.y = 1;\n // } | C = C_1 = __decorate([dec], C);\n // | export default C;\n // | var C_1;\n // ---------------------------------------------------------------------\n //\n var location = ts.moveRangePastDecorators(node);\n var classAlias = getClassAliasIfNeeded(node);\n // When we transform to ES5/3 this will be moved inside an IIFE and should reference the name\n // without any block-scoped variable collision handling\n var declName = languageVersion <= 2 /* ES2015 */ ?\n factory.getInternalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true) :\n factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true);\n // ... = class ${name} ${heritageClauses} {\n // ${members}\n // }\n var heritageClauses = ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause);\n var members = transformClassMembers(node);\n var classExpression = factory.createClassExpression(/*decorators*/ undefined, /*modifiers*/ undefined, name, /*typeParameters*/ undefined, heritageClauses, members);\n ts.setOriginalNode(classExpression, node);\n ts.setTextRange(classExpression, location);\n // let ${name} = ${classExpression} where name is either declaredName if the class doesn't contain self-reference\n // or decoratedClassAlias if the class contain self-reference.\n var statement = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(declName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, classAlias ? factory.createAssignment(classAlias, classExpression) : classExpression)\n ], 1 /* Let */));\n ts.setOriginalNode(statement, node);\n ts.setTextRange(statement, location);\n ts.setCommentRange(statement, node);\n return statement;\n }\n function visitClassExpression(node) {\n if (!isClassLikeDeclarationWithTypeScriptSyntax(node)) {\n return ts.visitEachChild(node, visitor, context);\n }\n var classExpression = factory.createClassExpression(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, node.name, \n /*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), transformClassMembers(node));\n ts.setOriginalNode(classExpression, node);\n ts.setTextRange(classExpression, node);\n return classExpression;\n }\n /**\n * Transforms the members of a class.\n *\n * @param node The current class.\n */\n function transformClassMembers(node) {\n var members = [];\n var constructor = ts.getFirstConstructorWithBody(node);\n var parametersWithPropertyAssignments = constructor &&\n ts.filter(constructor.parameters, function (p) { return ts.isParameterPropertyDeclaration(p, constructor); });\n if (parametersWithPropertyAssignments) {\n for (var _i = 0, parametersWithPropertyAssignments_1 = parametersWithPropertyAssignments; _i < parametersWithPropertyAssignments_1.length; _i++) {\n var parameter = parametersWithPropertyAssignments_1[_i];\n if (ts.isIdentifier(parameter.name)) {\n members.push(ts.setOriginalNode(factory.createPropertyDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, parameter.name, \n /*questionOrExclamationToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined), parameter));\n }\n }\n }\n ts.addRange(members, ts.visitNodes(node.members, classElementVisitor, ts.isClassElement));\n return ts.setTextRange(factory.createNodeArray(members), /*location*/ node.members);\n }\n /**\n * Gets either the static or instance members of a class that are decorated, or have\n * parameters that are decorated.\n *\n * @param node The class containing the member.\n * @param isStatic A value indicating whether to retrieve static or instance members of\n * the class.\n */\n function getDecoratedClassElements(node, isStatic) {\n return ts.filter(node.members, isStatic ? function (m) { return isStaticDecoratedClassElement(m, node); } : function (m) { return isInstanceDecoratedClassElement(m, node); });\n }\n /**\n * Determines whether a class member is a static member of a class that is decorated, or\n * has parameters that are decorated.\n *\n * @param member The class member.\n */\n function isStaticDecoratedClassElement(member, parent) {\n return isDecoratedClassElement(member, /*isStaticElement*/ true, parent);\n }\n /**\n * Determines whether a class member is an instance member of a class that is decorated,\n * or has parameters that are decorated.\n *\n * @param member The class member.\n */\n function isInstanceDecoratedClassElement(member, parent) {\n return isDecoratedClassElement(member, /*isStaticElement*/ false, parent);\n }\n /**\n * Determines whether a class member is either a static or an instance member of a class\n * that is decorated, or has parameters that are decorated.\n *\n * @param member The class member.\n */\n function isDecoratedClassElement(member, isStaticElement, parent) {\n return ts.nodeOrChildIsDecorated(member, parent)\n && isStaticElement === ts.isStatic(member);\n }\n /**\n * Gets an array of arrays of decorators for the parameters of a function-like node.\n * The offset into the result array should correspond to the offset of the parameter.\n *\n * @param node The function-like node.\n */\n function getDecoratorsOfParameters(node) {\n var decorators;\n if (node) {\n var parameters = node.parameters;\n var firstParameterIsThis = parameters.length > 0 && ts.parameterIsThisKeyword(parameters[0]);\n var firstParameterOffset = firstParameterIsThis ? 1 : 0;\n var numParameters = firstParameterIsThis ? parameters.length - 1 : parameters.length;\n for (var i = 0; i < numParameters; i++) {\n var parameter = parameters[i + firstParameterOffset];\n if (decorators || parameter.decorators) {\n if (!decorators) {\n decorators = new Array(numParameters);\n }\n decorators[i] = parameter.decorators;\n }\n }\n }\n return decorators;\n }\n /**\n * Gets an AllDecorators object containing the decorators for the class and the decorators for the\n * parameters of the constructor of the class.\n *\n * @param node The class node.\n */\n function getAllDecoratorsOfConstructor(node) {\n var decorators = node.decorators;\n var parameters = getDecoratorsOfParameters(ts.getFirstConstructorWithBody(node));\n if (!decorators && !parameters) {\n return undefined;\n }\n return {\n decorators: decorators,\n parameters: parameters\n };\n }\n /**\n * Gets an AllDecorators object containing the decorators for the member and its parameters.\n *\n * @param node The class node that contains the member.\n * @param member The class member.\n */\n function getAllDecoratorsOfClassElement(node, member) {\n switch (member.kind) {\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return getAllDecoratorsOfAccessors(node, member);\n case 167 /* MethodDeclaration */:\n return getAllDecoratorsOfMethod(member);\n case 165 /* PropertyDeclaration */:\n return getAllDecoratorsOfProperty(member);\n default:\n return undefined;\n }\n }\n /**\n * Gets an AllDecorators object containing the decorators for the accessor and its parameters.\n *\n * @param node The class node that contains the accessor.\n * @param accessor The class accessor member.\n */\n function getAllDecoratorsOfAccessors(node, accessor) {\n if (!accessor.body) {\n return undefined;\n }\n var _a = ts.getAllAccessorDeclarations(node.members, accessor), firstAccessor = _a.firstAccessor, secondAccessor = _a.secondAccessor, setAccessor = _a.setAccessor;\n var firstAccessorWithDecorators = firstAccessor.decorators ? firstAccessor : secondAccessor && secondAccessor.decorators ? secondAccessor : undefined;\n if (!firstAccessorWithDecorators || accessor !== firstAccessorWithDecorators) {\n return undefined;\n }\n var decorators = firstAccessorWithDecorators.decorators;\n var parameters = getDecoratorsOfParameters(setAccessor);\n if (!decorators && !parameters) {\n return undefined;\n }\n return { decorators: decorators, parameters: parameters };\n }\n /**\n * Gets an AllDecorators object containing the decorators for the method and its parameters.\n *\n * @param method The class method member.\n */\n function getAllDecoratorsOfMethod(method) {\n if (!method.body) {\n return undefined;\n }\n var decorators = method.decorators;\n var parameters = getDecoratorsOfParameters(method);\n if (!decorators && !parameters) {\n return undefined;\n }\n return { decorators: decorators, parameters: parameters };\n }\n /**\n * Gets an AllDecorators object containing the decorators for the property.\n *\n * @param property The class property member.\n */\n function getAllDecoratorsOfProperty(property) {\n var decorators = property.decorators;\n if (!decorators) {\n return undefined;\n }\n return { decorators: decorators };\n }\n /**\n * Transforms all of the decorators for a declaration into an array of expressions.\n *\n * @param node The declaration node.\n * @param allDecorators An object containing all of the decorators for the declaration.\n */\n function transformAllDecoratorsOfDeclaration(node, container, allDecorators) {\n if (!allDecorators) {\n return undefined;\n }\n var decoratorExpressions = [];\n ts.addRange(decoratorExpressions, ts.map(allDecorators.decorators, transformDecorator));\n ts.addRange(decoratorExpressions, ts.flatMap(allDecorators.parameters, transformDecoratorsOfParameter));\n addTypeMetadata(node, container, decoratorExpressions);\n return decoratorExpressions;\n }\n /**\n * Generates statements used to apply decorators to either the static or instance members\n * of a class.\n *\n * @param node The class node.\n * @param isStatic A value indicating whether to generate statements for static or\n * instance members.\n */\n function addClassElementDecorationStatements(statements, node, isStatic) {\n ts.addRange(statements, ts.map(generateClassElementDecorationExpressions(node, isStatic), expressionToStatement));\n }\n /**\n * Generates expressions used to apply decorators to either the static or instance members\n * of a class.\n *\n * @param node The class node.\n * @param isStatic A value indicating whether to generate expressions for static or\n * instance members.\n */\n function generateClassElementDecorationExpressions(node, isStatic) {\n var members = getDecoratedClassElements(node, isStatic);\n var expressions;\n for (var _i = 0, members_6 = members; _i < members_6.length; _i++) {\n var member = members_6[_i];\n var expression = generateClassElementDecorationExpression(node, member);\n if (expression) {\n if (!expressions) {\n expressions = [expression];\n }\n else {\n expressions.push(expression);\n }\n }\n }\n return expressions;\n }\n /**\n * Generates an expression used to evaluate class element decorators at runtime.\n *\n * @param node The class node that contains the member.\n * @param member The class member.\n */\n function generateClassElementDecorationExpression(node, member) {\n var allDecorators = getAllDecoratorsOfClassElement(node, member);\n var decoratorExpressions = transformAllDecoratorsOfDeclaration(member, node, allDecorators);\n if (!decoratorExpressions) {\n return undefined;\n }\n // Emit the call to __decorate. Given the following:\n //\n // class C {\n // @dec method(@dec2 x) {}\n // @dec get accessor() {}\n // @dec prop;\n // }\n //\n // The emit for a method is:\n //\n // __decorate([\n // dec,\n // __param(0, dec2),\n // __metadata(\"design:type\", Function),\n // __metadata(\"design:paramtypes\", [Object]),\n // __metadata(\"design:returntype\", void 0)\n // ], C.prototype, \"method\", null);\n //\n // The emit for an accessor is:\n //\n // __decorate([\n // dec\n // ], C.prototype, \"accessor\", null);\n //\n // The emit for a property is:\n //\n // __decorate([\n // dec\n // ], C.prototype, \"prop\");\n //\n var prefix = getClassMemberPrefix(node, member);\n var memberName = getExpressionForPropertyName(member, /*generateNameForComputedPropertyName*/ true);\n var descriptor = languageVersion > 0 /* ES3 */\n ? member.kind === 165 /* PropertyDeclaration */\n // We emit `void 0` here to indicate to `__decorate` that it can invoke `Object.defineProperty` directly, but that it\n // should not invoke `Object.getOwnPropertyDescriptor`.\n ? factory.createVoidZero()\n // We emit `null` here to indicate to `__decorate` that it can invoke `Object.getOwnPropertyDescriptor` directly.\n // We have this extra argument here so that we can inject an explicit property descriptor at a later date.\n : factory.createNull()\n : undefined;\n var helper = emitHelpers().createDecorateHelper(decoratorExpressions, prefix, memberName, descriptor);\n ts.setTextRange(helper, ts.moveRangePastDecorators(member));\n ts.setEmitFlags(helper, 1536 /* NoComments */);\n return helper;\n }\n /**\n * Generates a __decorate helper call for a class constructor.\n *\n * @param node The class node.\n */\n function addConstructorDecorationStatement(statements, node) {\n var expression = generateConstructorDecorationExpression(node);\n if (expression) {\n statements.push(ts.setOriginalNode(factory.createExpressionStatement(expression), node));\n }\n }\n /**\n * Generates a __decorate helper call for a class constructor.\n *\n * @param node The class node.\n */\n function generateConstructorDecorationExpression(node) {\n var allDecorators = getAllDecoratorsOfConstructor(node);\n var decoratorExpressions = transformAllDecoratorsOfDeclaration(node, node, allDecorators);\n if (!decoratorExpressions) {\n return undefined;\n }\n var classAlias = classAliases && classAliases[ts.getOriginalNodeId(node)];\n // When we transform to ES5/3 this will be moved inside an IIFE and should reference the name\n // without any block-scoped variable collision handling\n var localName = languageVersion <= 2 /* ES2015 */ ?\n factory.getInternalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true) :\n factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true);\n var decorate = emitHelpers().createDecorateHelper(decoratorExpressions, localName);\n var expression = factory.createAssignment(localName, classAlias ? factory.createAssignment(classAlias, decorate) : decorate);\n ts.setEmitFlags(expression, 1536 /* NoComments */);\n ts.setSourceMapRange(expression, ts.moveRangePastDecorators(node));\n return expression;\n }\n /**\n * Transforms a decorator into an expression.\n *\n * @param decorator The decorator node.\n */\n function transformDecorator(decorator) {\n return ts.visitNode(decorator.expression, visitor, ts.isExpression);\n }\n /**\n * Transforms the decorators of a parameter.\n *\n * @param decorators The decorators for the parameter at the provided offset.\n * @param parameterOffset The offset of the parameter.\n */\n function transformDecoratorsOfParameter(decorators, parameterOffset) {\n var expressions;\n if (decorators) {\n expressions = [];\n for (var _i = 0, decorators_1 = decorators; _i < decorators_1.length; _i++) {\n var decorator = decorators_1[_i];\n var helper = emitHelpers().createParamHelper(transformDecorator(decorator), parameterOffset);\n ts.setTextRange(helper, decorator.expression);\n ts.setEmitFlags(helper, 1536 /* NoComments */);\n expressions.push(helper);\n }\n }\n return expressions;\n }\n /**\n * Adds optional type metadata for a declaration.\n *\n * @param node The declaration node.\n * @param decoratorExpressions The destination array to which to add new decorator expressions.\n */\n function addTypeMetadata(node, container, decoratorExpressions) {\n if (USE_NEW_TYPE_METADATA_FORMAT) {\n addNewTypeMetadata(node, container, decoratorExpressions);\n }\n else {\n addOldTypeMetadata(node, container, decoratorExpressions);\n }\n }\n function addOldTypeMetadata(node, container, decoratorExpressions) {\n if (compilerOptions.emitDecoratorMetadata) {\n if (shouldAddTypeMetadata(node)) {\n decoratorExpressions.push(emitHelpers().createMetadataHelper(\"design:type\", serializeTypeOfNode(node)));\n }\n if (shouldAddParamTypesMetadata(node)) {\n decoratorExpressions.push(emitHelpers().createMetadataHelper(\"design:paramtypes\", serializeParameterTypesOfNode(node, container)));\n }\n if (shouldAddReturnTypeMetadata(node)) {\n decoratorExpressions.push(emitHelpers().createMetadataHelper(\"design:returntype\", serializeReturnTypeOfNode(node)));\n }\n }\n }\n function addNewTypeMetadata(node, container, decoratorExpressions) {\n if (compilerOptions.emitDecoratorMetadata) {\n var properties = void 0;\n if (shouldAddTypeMetadata(node)) {\n (properties || (properties = [])).push(factory.createPropertyAssignment(\"type\", factory.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, [], /*type*/ undefined, factory.createToken(38 /* EqualsGreaterThanToken */), serializeTypeOfNode(node))));\n }\n if (shouldAddParamTypesMetadata(node)) {\n (properties || (properties = [])).push(factory.createPropertyAssignment(\"paramTypes\", factory.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, [], /*type*/ undefined, factory.createToken(38 /* EqualsGreaterThanToken */), serializeParameterTypesOfNode(node, container))));\n }\n if (shouldAddReturnTypeMetadata(node)) {\n (properties || (properties = [])).push(factory.createPropertyAssignment(\"returnType\", factory.createArrowFunction(/*modifiers*/ undefined, /*typeParameters*/ undefined, [], /*type*/ undefined, factory.createToken(38 /* EqualsGreaterThanToken */), serializeReturnTypeOfNode(node))));\n }\n if (properties) {\n decoratorExpressions.push(emitHelpers().createMetadataHelper(\"design:typeinfo\", factory.createObjectLiteralExpression(properties, /*multiLine*/ true)));\n }\n }\n }\n /**\n * Determines whether to emit the \"design:type\" metadata based on the node's kind.\n * The caller should have already tested whether the node has decorators and whether the\n * emitDecoratorMetadata compiler option is set.\n *\n * @param node The node to test.\n */\n function shouldAddTypeMetadata(node) {\n var kind = node.kind;\n return kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */\n || kind === 165 /* PropertyDeclaration */;\n }\n /**\n * Determines whether to emit the \"design:returntype\" metadata based on the node's kind.\n * The caller should have already tested whether the node has decorators and whether the\n * emitDecoratorMetadata compiler option is set.\n *\n * @param node The node to test.\n */\n function shouldAddReturnTypeMetadata(node) {\n return node.kind === 167 /* MethodDeclaration */;\n }\n /**\n * Determines whether to emit the \"design:paramtypes\" metadata based on the node's kind.\n * The caller should have already tested whether the node has decorators and whether the\n * emitDecoratorMetadata compiler option is set.\n *\n * @param node The node to test.\n */\n function shouldAddParamTypesMetadata(node) {\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return ts.getFirstConstructorWithBody(node) !== undefined;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return true;\n }\n return false;\n }\n function getAccessorTypeNode(node) {\n var accessors = resolver.getAllAccessorDeclarations(node);\n return accessors.setAccessor && ts.getSetAccessorTypeAnnotationNode(accessors.setAccessor)\n || accessors.getAccessor && ts.getEffectiveReturnTypeNode(accessors.getAccessor);\n }\n /**\n * Serializes the type of a node for use with decorator type metadata.\n *\n * @param node The node that should have its type serialized.\n */\n function serializeTypeOfNode(node) {\n switch (node.kind) {\n case 165 /* PropertyDeclaration */:\n case 162 /* Parameter */:\n return serializeTypeNode(node.type);\n case 171 /* SetAccessor */:\n case 170 /* GetAccessor */:\n return serializeTypeNode(getAccessorTypeNode(node));\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 167 /* MethodDeclaration */:\n return factory.createIdentifier(\"Function\");\n default:\n return factory.createVoidZero();\n }\n }\n /**\n * Serializes the types of the parameters of a node for use with decorator type metadata.\n *\n * @param node The node that should have its parameter types serialized.\n */\n function serializeParameterTypesOfNode(node, container) {\n var valueDeclaration = ts.isClassLike(node)\n ? ts.getFirstConstructorWithBody(node)\n : ts.isFunctionLike(node) && ts.nodeIsPresent(node.body)\n ? node\n : undefined;\n var expressions = [];\n if (valueDeclaration) {\n var parameters = getParametersOfDecoratedDeclaration(valueDeclaration, container);\n var numParameters = parameters.length;\n for (var i = 0; i < numParameters; i++) {\n var parameter = parameters[i];\n if (i === 0 && ts.isIdentifier(parameter.name) && parameter.name.escapedText === \"this\") {\n continue;\n }\n if (parameter.dotDotDotToken) {\n expressions.push(serializeTypeNode(ts.getRestParameterElementType(parameter.type)));\n }\n else {\n expressions.push(serializeTypeOfNode(parameter));\n }\n }\n }\n return factory.createArrayLiteralExpression(expressions);\n }\n function getParametersOfDecoratedDeclaration(node, container) {\n if (container && node.kind === 170 /* GetAccessor */) {\n var setAccessor = ts.getAllAccessorDeclarations(container.members, node).setAccessor;\n if (setAccessor) {\n return setAccessor.parameters;\n }\n }\n return node.parameters;\n }\n /**\n * Serializes the return type of a node for use with decorator type metadata.\n *\n * @param node The node that should have its return type serialized.\n */\n function serializeReturnTypeOfNode(node) {\n if (ts.isFunctionLike(node) && node.type) {\n return serializeTypeNode(node.type);\n }\n else if (ts.isAsyncFunction(node)) {\n return factory.createIdentifier(\"Promise\");\n }\n return factory.createVoidZero();\n }\n /**\n * Serializes a type node for use with decorator type metadata.\n *\n * Types are serialized in the following fashion:\n * - Void types point to \"undefined\" (e.g. \"void 0\")\n * - Function and Constructor types point to the global \"Function\" constructor.\n * - Interface types with a call or construct signature types point to the global\n * \"Function\" constructor.\n * - Array and Tuple types point to the global \"Array\" constructor.\n * - Type predicates and booleans point to the global \"Boolean\" constructor.\n * - String literal types and strings point to the global \"String\" constructor.\n * - Enum and number types point to the global \"Number\" constructor.\n * - Symbol types point to the global \"Symbol\" constructor.\n * - Type references to classes (or class-like variables) point to the constructor for the class.\n * - Anything else points to the global \"Object\" constructor.\n *\n * @param node The type node to serialize.\n */\n function serializeTypeNode(node) {\n if (node === undefined) {\n return factory.createIdentifier(\"Object\");\n }\n switch (node.kind) {\n case 114 /* VoidKeyword */:\n case 151 /* UndefinedKeyword */:\n case 142 /* NeverKeyword */:\n return factory.createVoidZero();\n case 189 /* ParenthesizedType */:\n return serializeTypeNode(node.type);\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n return factory.createIdentifier(\"Function\");\n case 181 /* ArrayType */:\n case 182 /* TupleType */:\n return factory.createIdentifier(\"Array\");\n case 175 /* TypePredicate */:\n case 132 /* BooleanKeyword */:\n return factory.createIdentifier(\"Boolean\");\n case 148 /* StringKeyword */:\n return factory.createIdentifier(\"String\");\n case 146 /* ObjectKeyword */:\n return factory.createIdentifier(\"Object\");\n case 194 /* LiteralType */:\n switch (node.literal.kind) {\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return factory.createIdentifier(\"String\");\n case 217 /* PrefixUnaryExpression */:\n case 8 /* NumericLiteral */:\n return factory.createIdentifier(\"Number\");\n case 9 /* BigIntLiteral */:\n return getGlobalBigIntNameWithFallback();\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n return factory.createIdentifier(\"Boolean\");\n case 104 /* NullKeyword */:\n return factory.createVoidZero();\n default:\n return ts.Debug.failBadSyntaxKind(node.literal);\n }\n case 145 /* NumberKeyword */:\n return factory.createIdentifier(\"Number\");\n case 156 /* BigIntKeyword */:\n return getGlobalBigIntNameWithFallback();\n case 149 /* SymbolKeyword */:\n return languageVersion < 2 /* ES2015 */\n ? getGlobalSymbolNameWithFallback()\n : factory.createIdentifier(\"Symbol\");\n case 176 /* TypeReference */:\n return serializeTypeReferenceNode(node);\n case 186 /* IntersectionType */:\n case 185 /* UnionType */:\n return serializeTypeList(node.types);\n case 187 /* ConditionalType */:\n return serializeTypeList([node.trueType, node.falseType]);\n case 191 /* TypeOperator */:\n if (node.operator === 143 /* ReadonlyKeyword */) {\n return serializeTypeNode(node.type);\n }\n break;\n case 179 /* TypeQuery */:\n case 192 /* IndexedAccessType */:\n case 193 /* MappedType */:\n case 180 /* TypeLiteral */:\n case 129 /* AnyKeyword */:\n case 153 /* UnknownKeyword */:\n case 190 /* ThisType */:\n case 198 /* ImportType */:\n break;\n // handle JSDoc types from an invalid parse\n case 307 /* JSDocAllType */:\n case 308 /* JSDocUnknownType */:\n case 312 /* JSDocFunctionType */:\n case 313 /* JSDocVariadicType */:\n case 314 /* JSDocNamepathType */:\n break;\n case 309 /* JSDocNullableType */:\n case 310 /* JSDocNonNullableType */:\n case 311 /* JSDocOptionalType */:\n return serializeTypeNode(node.type);\n default:\n return ts.Debug.failBadSyntaxKind(node);\n }\n return factory.createIdentifier(\"Object\");\n }\n function serializeTypeList(types) {\n // Note when updating logic here also update getEntityNameForDecoratorMetadata\n // so that aliases can be marked as referenced\n var serializedUnion;\n for (var _i = 0, types_23 = types; _i < types_23.length; _i++) {\n var typeNode = types_23[_i];\n while (typeNode.kind === 189 /* ParenthesizedType */) {\n typeNode = typeNode.type; // Skip parens if need be\n }\n if (typeNode.kind === 142 /* NeverKeyword */) {\n continue; // Always elide `never` from the union/intersection if possible\n }\n if (!strictNullChecks && (typeNode.kind === 194 /* LiteralType */ && typeNode.literal.kind === 104 /* NullKeyword */ || typeNode.kind === 151 /* UndefinedKeyword */)) {\n continue; // Elide null and undefined from unions for metadata, just like what we did prior to the implementation of strict null checks\n }\n var serializedIndividual = serializeTypeNode(typeNode);\n if (ts.isIdentifier(serializedIndividual) && serializedIndividual.escapedText === \"Object\") {\n // One of the individual is global object, return immediately\n return serializedIndividual;\n }\n // If there exists union that is not void 0 expression, check if the the common type is identifier.\n // anything more complex and we will just default to Object\n else if (serializedUnion) {\n // Different types\n if (!ts.isIdentifier(serializedUnion) ||\n !ts.isIdentifier(serializedIndividual) ||\n serializedUnion.escapedText !== serializedIndividual.escapedText) {\n return factory.createIdentifier(\"Object\");\n }\n }\n else {\n // Initialize the union type\n serializedUnion = serializedIndividual;\n }\n }\n // If we were able to find common type, use it\n return serializedUnion || factory.createVoidZero(); // Fallback is only hit if all union constituients are null/undefined/never\n }\n /**\n * Serializes a TypeReferenceNode to an appropriate JS constructor value for use with\n * decorator type metadata.\n *\n * @param node The type reference node.\n */\n function serializeTypeReferenceNode(node) {\n var kind = resolver.getTypeReferenceSerializationKind(node.typeName, currentNameScope || currentLexicalScope);\n switch (kind) {\n case ts.TypeReferenceSerializationKind.Unknown:\n // From conditional type type reference that cannot be resolved is Similar to any or unknown\n if (ts.findAncestor(node, function (n) { return n.parent && ts.isConditionalTypeNode(n.parent) && (n.parent.trueType === n || n.parent.falseType === n); })) {\n return factory.createIdentifier(\"Object\");\n }\n var serialized = serializeEntityNameAsExpressionFallback(node.typeName);\n var temp = factory.createTempVariable(hoistVariableDeclaration);\n return factory.createConditionalExpression(factory.createTypeCheck(factory.createAssignment(temp, serialized), \"function\"), \n /*questionToken*/ undefined, temp, \n /*colonToken*/ undefined, factory.createIdentifier(\"Object\"));\n case ts.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue:\n return serializeEntityNameAsExpression(node.typeName);\n case ts.TypeReferenceSerializationKind.VoidNullableOrNeverType:\n return factory.createVoidZero();\n case ts.TypeReferenceSerializationKind.BigIntLikeType:\n return getGlobalBigIntNameWithFallback();\n case ts.TypeReferenceSerializationKind.BooleanType:\n return factory.createIdentifier(\"Boolean\");\n case ts.TypeReferenceSerializationKind.NumberLikeType:\n return factory.createIdentifier(\"Number\");\n case ts.TypeReferenceSerializationKind.StringLikeType:\n return factory.createIdentifier(\"String\");\n case ts.TypeReferenceSerializationKind.ArrayLikeType:\n return factory.createIdentifier(\"Array\");\n case ts.TypeReferenceSerializationKind.ESSymbolType:\n return languageVersion < 2 /* ES2015 */\n ? getGlobalSymbolNameWithFallback()\n : factory.createIdentifier(\"Symbol\");\n case ts.TypeReferenceSerializationKind.TypeWithCallSignature:\n return factory.createIdentifier(\"Function\");\n case ts.TypeReferenceSerializationKind.Promise:\n return factory.createIdentifier(\"Promise\");\n case ts.TypeReferenceSerializationKind.ObjectType:\n return factory.createIdentifier(\"Object\");\n default:\n return ts.Debug.assertNever(kind);\n }\n }\n function createCheckedValue(left, right) {\n return factory.createLogicalAnd(factory.createStrictInequality(factory.createTypeOfExpression(left), factory.createStringLiteral(\"undefined\")), right);\n }\n /**\n * Serializes an entity name which may not exist at runtime, but whose access shouldn't throw\n *\n * @param node The entity name to serialize.\n */\n function serializeEntityNameAsExpressionFallback(node) {\n if (node.kind === 79 /* Identifier */) {\n // A -> typeof A !== undefined && A\n var copied = serializeEntityNameAsExpression(node);\n return createCheckedValue(copied, copied);\n }\n if (node.left.kind === 79 /* Identifier */) {\n // A.B -> typeof A !== undefined && A.B\n return createCheckedValue(serializeEntityNameAsExpression(node.left), serializeEntityNameAsExpression(node));\n }\n // A.B.C -> typeof A !== undefined && (_a = A.B) !== void 0 && _a.C\n var left = serializeEntityNameAsExpressionFallback(node.left);\n var temp = factory.createTempVariable(hoistVariableDeclaration);\n return factory.createLogicalAnd(factory.createLogicalAnd(left.left, factory.createStrictInequality(factory.createAssignment(temp, left.right), factory.createVoidZero())), factory.createPropertyAccessExpression(temp, node.right));\n }\n /**\n * Serializes an entity name as an expression for decorator type metadata.\n *\n * @param node The entity name to serialize.\n */\n function serializeEntityNameAsExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n // Create a clone of the name with a new parent, and treat it as if it were\n // a source tree node for the purposes of the checker.\n var name = ts.setParent(ts.setTextRange(ts.parseNodeFactory.cloneNode(node), node), node.parent);\n name.original = undefined;\n ts.setParent(name, ts.getParseTreeNode(currentLexicalScope)); // ensure the parent is set to a parse tree node.\n return name;\n case 159 /* QualifiedName */:\n return serializeQualifiedNameAsExpression(node);\n }\n }\n /**\n * Serializes an qualified name as an expression for decorator type metadata.\n *\n * @param node The qualified name to serialize.\n * @param useFallback A value indicating whether to use logical operators to test for the\n * qualified name at runtime.\n */\n function serializeQualifiedNameAsExpression(node) {\n return factory.createPropertyAccessExpression(serializeEntityNameAsExpression(node.left), node.right);\n }\n /**\n * Gets an expression that points to the global \"Symbol\" constructor at runtime if it is\n * available.\n */\n function getGlobalSymbolNameWithFallback() {\n return factory.createConditionalExpression(factory.createTypeCheck(factory.createIdentifier(\"Symbol\"), \"function\"), \n /*questionToken*/ undefined, factory.createIdentifier(\"Symbol\"), \n /*colonToken*/ undefined, factory.createIdentifier(\"Object\"));\n }\n /**\n * Gets an expression that points to the global \"BigInt\" constructor at runtime if it is\n * available.\n */\n function getGlobalBigIntNameWithFallback() {\n return languageVersion < 99 /* ESNext */\n ? factory.createConditionalExpression(factory.createTypeCheck(factory.createIdentifier(\"BigInt\"), \"function\"), \n /*questionToken*/ undefined, factory.createIdentifier(\"BigInt\"), \n /*colonToken*/ undefined, factory.createIdentifier(\"Object\"))\n : factory.createIdentifier(\"BigInt\");\n }\n /**\n * Gets an expression that represents a property name (for decorated properties or enums).\n * For a computed property, a name is generated for the node.\n *\n * @param member The member whose name should be converted into an expression.\n */\n function getExpressionForPropertyName(member, generateNameForComputedPropertyName) {\n var name = member.name;\n if (ts.isPrivateIdentifier(name)) {\n return factory.createIdentifier(\"\");\n }\n else if (ts.isComputedPropertyName(name)) {\n return generateNameForComputedPropertyName && !ts.isSimpleInlineableExpression(name.expression)\n ? factory.getGeneratedNameForNode(name)\n : name.expression;\n }\n else if (ts.isIdentifier(name)) {\n return factory.createStringLiteral(ts.idText(name));\n }\n else {\n return factory.cloneNode(name);\n }\n }\n /**\n * Visits the property name of a class element, for use when emitting property\n * initializers. For a computed property on a node with decorators, a temporary\n * value is stored for later use.\n *\n * @param member The member whose name should be visited.\n */\n function visitPropertyNameOfClassElement(member) {\n var name = member.name;\n // Computed property names need to be transformed into a hoisted variable when they are used more than once.\n // The names are used more than once when:\n // - the property is non-static and its initializer is moved to the constructor (when there are parameter property assignments).\n // - the property has a decorator.\n if (ts.isComputedPropertyName(name) && ((!ts.hasStaticModifier(member) && currentClassHasParameterProperties) || ts.some(member.decorators))) {\n var expression = ts.visitNode(name.expression, visitor, ts.isExpression);\n var innerExpression = ts.skipPartiallyEmittedExpressions(expression);\n if (!ts.isSimpleInlineableExpression(innerExpression)) {\n var generatedName = factory.getGeneratedNameForNode(name);\n hoistVariableDeclaration(generatedName);\n return factory.updateComputedPropertyName(name, factory.createAssignment(generatedName, expression));\n }\n }\n return ts.visitNode(name, visitor, ts.isPropertyName);\n }\n /**\n * Transforms a HeritageClause with TypeScript syntax.\n *\n * This function will only be called when one of the following conditions are met:\n * - The node is a non-`extends` heritage clause that should be elided.\n * - The node is an `extends` heritage clause that should be visited, but only allow a single type.\n *\n * @param node The HeritageClause to transform.\n */\n function visitHeritageClause(node) {\n if (node.token === 117 /* ImplementsKeyword */) {\n // implements clauses are elided\n return undefined;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Transforms an ExpressionWithTypeArguments with TypeScript syntax.\n *\n * This function will only be called when one of the following conditions are met:\n * - The node contains type arguments that should be elided.\n *\n * @param node The ExpressionWithTypeArguments to transform.\n */\n function visitExpressionWithTypeArguments(node) {\n return factory.updateExpressionWithTypeArguments(node, ts.visitNode(node.expression, visitor, ts.isLeftHandSideExpression), \n /*typeArguments*/ undefined);\n }\n /**\n * Determines whether to emit a function-like declaration. We should not emit the\n * declaration if it does not have a body.\n *\n * @param node The declaration node.\n */\n function shouldEmitFunctionLikeDeclaration(node) {\n return !ts.nodeIsMissing(node.body);\n }\n function visitPropertyDeclaration(node) {\n if (node.flags & 8388608 /* Ambient */ || ts.hasSyntacticModifier(node, 128 /* Abstract */)) {\n return undefined;\n }\n var updated = factory.updatePropertyDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, visitor, ts.isModifier), visitPropertyNameOfClassElement(node), \n /*questionOrExclamationToken*/ undefined, \n /*type*/ undefined, ts.visitNode(node.initializer, visitor));\n if (updated !== node) {\n // While we emit the source map for the node after skipping decorators and modifiers,\n // we need to emit the comments for the original range.\n ts.setCommentRange(updated, node);\n ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));\n }\n return updated;\n }\n function visitConstructor(node) {\n if (!shouldEmitFunctionLikeDeclaration(node)) {\n return undefined;\n }\n return factory.updateConstructorDeclaration(node, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.visitParameterList(node.parameters, visitor, context), transformConstructorBody(node.body, node));\n }\n function transformConstructorBody(body, constructor) {\n var parametersWithPropertyAssignments = constructor &&\n ts.filter(constructor.parameters, function (p) { return ts.isParameterPropertyDeclaration(p, constructor); });\n if (!ts.some(parametersWithPropertyAssignments)) {\n return ts.visitFunctionBody(body, visitor, context);\n }\n var statements = [];\n var indexOfFirstStatement = 0;\n resumeLexicalEnvironment();\n indexOfFirstStatement = ts.addPrologueDirectivesAndInitialSuperCall(factory, constructor, statements, visitor);\n // Add parameters with property assignments. Transforms this:\n //\n // constructor (public x, public y) {\n // }\n //\n // Into this:\n //\n // constructor (x, y) {\n // this.x = x;\n // this.y = y;\n // }\n //\n ts.addRange(statements, ts.map(parametersWithPropertyAssignments, transformParameterWithPropertyAssignment));\n // Add the existing statements, skipping the initial super call.\n ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, indexOfFirstStatement));\n // End the lexical environment.\n statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), body.statements), /*multiLine*/ true);\n ts.setTextRange(block, /*location*/ body);\n ts.setOriginalNode(block, body);\n return block;\n }\n /**\n * Transforms a parameter into a property assignment statement.\n *\n * @param node The parameter declaration.\n */\n function transformParameterWithPropertyAssignment(node) {\n var name = node.name;\n if (!ts.isIdentifier(name)) {\n return undefined;\n }\n // TODO(rbuckton): Does this need to be parented?\n var propertyName = ts.setParent(ts.setTextRange(factory.cloneNode(name), name), name.parent);\n ts.setEmitFlags(propertyName, 1536 /* NoComments */ | 48 /* NoSourceMap */);\n // TODO(rbuckton): Does this need to be parented?\n var localName = ts.setParent(ts.setTextRange(factory.cloneNode(name), name), name.parent);\n ts.setEmitFlags(localName, 1536 /* NoComments */);\n return ts.startOnNewLine(ts.removeAllComments(ts.setTextRange(ts.setOriginalNode(factory.createExpressionStatement(factory.createAssignment(ts.setTextRange(factory.createPropertyAccessExpression(factory.createThis(), propertyName), node.name), localName)), node), ts.moveRangePos(node, -1))));\n }\n function visitMethodDeclaration(node) {\n if (!shouldEmitFunctionLikeDeclaration(node)) {\n return undefined;\n }\n var updated = factory.updateMethodDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, visitPropertyNameOfClassElement(node), \n /*questionToken*/ undefined, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.visitFunctionBody(node.body, visitor, context));\n if (updated !== node) {\n // While we emit the source map for the node after skipping decorators and modifiers,\n // we need to emit the comments for the original range.\n ts.setCommentRange(updated, node);\n ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));\n }\n return updated;\n }\n /**\n * Determines whether to emit an accessor declaration. We should not emit the\n * declaration if it does not have a body and is abstract.\n *\n * @param node The declaration node.\n */\n function shouldEmitAccessorDeclaration(node) {\n return !(ts.nodeIsMissing(node.body) && ts.hasSyntacticModifier(node, 128 /* Abstract */));\n }\n function visitGetAccessor(node) {\n if (!shouldEmitAccessorDeclaration(node)) {\n return undefined;\n }\n var updated = factory.updateGetAccessorDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), visitPropertyNameOfClassElement(node), ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));\n if (updated !== node) {\n // While we emit the source map for the node after skipping decorators and modifiers,\n // we need to emit the comments for the original range.\n ts.setCommentRange(updated, node);\n ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));\n }\n return updated;\n }\n function visitSetAccessor(node) {\n if (!shouldEmitAccessorDeclaration(node)) {\n return undefined;\n }\n var updated = factory.updateSetAccessorDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), visitPropertyNameOfClassElement(node), ts.visitParameterList(node.parameters, visitor, context), ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));\n if (updated !== node) {\n // While we emit the source map for the node after skipping decorators and modifiers,\n // we need to emit the comments for the original range.\n ts.setCommentRange(updated, node);\n ts.setSourceMapRange(updated, ts.moveRangePastDecorators(node));\n }\n return updated;\n }\n function visitFunctionDeclaration(node) {\n if (!shouldEmitFunctionLikeDeclaration(node)) {\n return factory.createNotEmittedStatement(node);\n }\n var updated = factory.updateFunctionDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));\n if (isExportOfNamespace(node)) {\n var statements = [updated];\n addExportMemberAssignment(statements, node);\n return statements;\n }\n return updated;\n }\n function visitFunctionExpression(node) {\n if (!shouldEmitFunctionLikeDeclaration(node)) {\n return factory.createOmittedExpression();\n }\n var updated = factory.updateFunctionExpression(node, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.visitFunctionBody(node.body, visitor, context) || factory.createBlock([]));\n return updated;\n }\n function visitArrowFunction(node) {\n var updated = factory.updateArrowFunction(node, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, node.equalsGreaterThanToken, ts.visitFunctionBody(node.body, visitor, context));\n return updated;\n }\n function visitParameter(node) {\n if (ts.parameterIsThisKeyword(node)) {\n return undefined;\n }\n var updated = factory.updateParameterDeclaration(node, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, node.dotDotDotToken, ts.visitNode(node.name, visitor, ts.isBindingName), \n /*questionToken*/ undefined, \n /*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));\n if (updated !== node) {\n // While we emit the source map for the node after skipping decorators and modifiers,\n // we need to emit the comments for the original range.\n ts.setCommentRange(updated, node);\n ts.setTextRange(updated, ts.moveRangePastModifiers(node));\n ts.setSourceMapRange(updated, ts.moveRangePastModifiers(node));\n ts.setEmitFlags(updated.name, 32 /* NoTrailingSourceMap */);\n }\n return updated;\n }\n function visitVariableStatement(node) {\n if (isExportOfNamespace(node)) {\n var variables = ts.getInitializedVariables(node.declarationList);\n if (variables.length === 0) {\n // elide statement if there are no initialized variables.\n return undefined;\n }\n return ts.setTextRange(factory.createExpressionStatement(factory.inlineExpressions(ts.map(variables, transformInitializedVariable))), node);\n }\n else {\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function transformInitializedVariable(node) {\n var name = node.name;\n if (ts.isBindingPattern(name)) {\n return ts.flattenDestructuringAssignment(node, visitor, context, 0 /* All */, \n /*needsValue*/ false, createNamespaceExportExpression);\n }\n else {\n return ts.setTextRange(factory.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(name), ts.visitNode(node.initializer, visitor, ts.isExpression)), \n /*location*/ node);\n }\n }\n function visitVariableDeclaration(node) {\n return factory.updateVariableDeclaration(node, ts.visitNode(node.name, visitor, ts.isBindingName), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));\n }\n function visitParenthesizedExpression(node) {\n var innerExpression = ts.skipOuterExpressions(node.expression, ~6 /* Assertions */);\n if (ts.isAssertionExpression(innerExpression)) {\n // Make sure we consider all nested cast expressions, e.g.:\n // (-A).x;\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n // We have an expression of the form: (SubExpr). Emitting this as (SubExpr)\n // is really not desirable. We would like to emit the subexpression as-is. Omitting\n // the parentheses, however, could cause change in the semantics of the generated\n // code if the casted expression has a lower precedence than the rest of the\n // expression.\n //\n // To preserve comments, we return a \"PartiallyEmittedExpression\" here which will\n // preserve the position information of the original expression.\n //\n // Due to the auto-parenthesization rules used by the visitor and factory functions\n // we can safely elide the parentheses here, as a new synthetic\n // ParenthesizedExpression will be inserted if we remove parentheses too\n // aggressively.\n // HOWEVER - if there are leading comments on the expression itself, to handle ASI\n // correctly for return and throw, we must keep the parenthesis\n if (ts.length(ts.getLeadingCommentRangesOfNode(expression, currentSourceFile))) {\n return factory.updateParenthesizedExpression(node, expression);\n }\n return factory.createPartiallyEmittedExpression(expression, node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitAssertionExpression(node) {\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n return factory.createPartiallyEmittedExpression(expression, node);\n }\n function visitNonNullExpression(node) {\n var expression = ts.visitNode(node.expression, visitor, ts.isLeftHandSideExpression);\n return factory.createPartiallyEmittedExpression(expression, node);\n }\n function visitCallExpression(node) {\n return factory.updateCallExpression(node, ts.visitNode(node.expression, visitor, ts.isExpression), \n /*typeArguments*/ undefined, ts.visitNodes(node.arguments, visitor, ts.isExpression));\n }\n function visitNewExpression(node) {\n return factory.updateNewExpression(node, ts.visitNode(node.expression, visitor, ts.isExpression), \n /*typeArguments*/ undefined, ts.visitNodes(node.arguments, visitor, ts.isExpression));\n }\n function visitTaggedTemplateExpression(node) {\n return factory.updateTaggedTemplateExpression(node, ts.visitNode(node.tag, visitor, ts.isExpression), \n /*typeArguments*/ undefined, ts.visitNode(node.template, visitor, ts.isExpression));\n }\n function visitJsxSelfClosingElement(node) {\n return factory.updateJsxSelfClosingElement(node, ts.visitNode(node.tagName, visitor, ts.isJsxTagNameExpression), \n /*typeArguments*/ undefined, ts.visitNode(node.attributes, visitor, ts.isJsxAttributes));\n }\n function visitJsxJsxOpeningElement(node) {\n return factory.updateJsxOpeningElement(node, ts.visitNode(node.tagName, visitor, ts.isJsxTagNameExpression), \n /*typeArguments*/ undefined, ts.visitNode(node.attributes, visitor, ts.isJsxAttributes));\n }\n /**\n * Determines whether to emit an enum declaration.\n *\n * @param node The enum declaration node.\n */\n function shouldEmitEnumDeclaration(node) {\n return !ts.isEnumConst(node)\n || ts.shouldPreserveConstEnums(compilerOptions);\n }\n /**\n * Visits an enum declaration.\n *\n * This function will be called any time a TypeScript enum is encountered.\n *\n * @param node The enum declaration node.\n */\n function visitEnumDeclaration(node) {\n if (!shouldEmitEnumDeclaration(node)) {\n return factory.createNotEmittedStatement(node);\n }\n var statements = [];\n // We request to be advised when the printer is about to print this node. This allows\n // us to set up the correct state for later substitutions.\n var emitFlags = 2 /* AdviseOnEmitNode */;\n // If needed, we should emit a variable declaration for the enum. If we emit\n // a leading variable declaration, we should not emit leading comments for the\n // enum body.\n var varAdded = addVarForEnumOrModuleDeclaration(statements, node);\n if (varAdded) {\n // We should still emit the comments if we are emitting a system module.\n if (moduleKind !== ts.ModuleKind.System || currentLexicalScope !== currentSourceFile) {\n emitFlags |= 512 /* NoLeadingComments */;\n }\n }\n // `parameterName` is the declaration name used inside of the enum.\n var parameterName = getNamespaceParameterName(node);\n // `containerName` is the expression used inside of the enum for assignments.\n var containerName = getNamespaceContainerName(node);\n // `exportName` is the expression used within this node's container for any exported references.\n var exportName = ts.hasSyntacticModifier(node, 1 /* Export */)\n ? factory.getExternalModuleOrNamespaceExportName(currentNamespaceContainerName, node, /*allowComments*/ false, /*allowSourceMaps*/ true)\n : factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true);\n // x || (x = {})\n // exports.x || (exports.x = {})\n var moduleArg = factory.createLogicalOr(exportName, factory.createAssignment(exportName, factory.createObjectLiteralExpression()));\n if (hasNamespaceQualifiedExportName(node)) {\n // `localName` is the expression used within this node's containing scope for any local references.\n var localName = factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true);\n // x = (exports.x || (exports.x = {}))\n moduleArg = factory.createAssignment(localName, moduleArg);\n }\n // (function (x) {\n // x[x[\"y\"] = 0] = \"y\";\n // ...\n // })(x || (x = {}));\n var enumStatement = factory.createExpressionStatement(factory.createCallExpression(factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, parameterName)], \n /*type*/ undefined, transformEnumBody(node, containerName)), \n /*typeArguments*/ undefined, [moduleArg]));\n ts.setOriginalNode(enumStatement, node);\n if (varAdded) {\n // If a variable was added, synthetic comments are emitted on it, not on the moduleStatement.\n ts.setSyntheticLeadingComments(enumStatement, undefined);\n ts.setSyntheticTrailingComments(enumStatement, undefined);\n }\n ts.setTextRange(enumStatement, node);\n ts.addEmitFlags(enumStatement, emitFlags);\n statements.push(enumStatement);\n // Add a DeclarationMarker for the enum to preserve trailing comments and mark\n // the end of the declaration.\n statements.push(factory.createEndOfDeclarationMarker(node));\n return statements;\n }\n /**\n * Transforms the body of an enum declaration.\n *\n * @param node The enum declaration node.\n */\n function transformEnumBody(node, localName) {\n var savedCurrentNamespaceLocalName = currentNamespaceContainerName;\n currentNamespaceContainerName = localName;\n var statements = [];\n startLexicalEnvironment();\n var members = ts.map(node.members, transformEnumMember);\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n ts.addRange(statements, members);\n currentNamespaceContainerName = savedCurrentNamespaceLocalName;\n return factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), /*location*/ node.members), \n /*multiLine*/ true);\n }\n /**\n * Transforms an enum member into a statement.\n *\n * @param member The enum member node.\n */\n function transformEnumMember(member) {\n // enums don't support computed properties\n // we pass false as 'generateNameForComputedPropertyName' for a backward compatibility purposes\n // old emitter always generate 'expression' part of the name as-is.\n var name = getExpressionForPropertyName(member, /*generateNameForComputedPropertyName*/ false);\n var valueExpression = transformEnumMemberDeclarationValue(member);\n var innerAssignment = factory.createAssignment(factory.createElementAccessExpression(currentNamespaceContainerName, name), valueExpression);\n var outerAssignment = valueExpression.kind === 10 /* StringLiteral */ ?\n innerAssignment :\n factory.createAssignment(factory.createElementAccessExpression(currentNamespaceContainerName, innerAssignment), name);\n return ts.setTextRange(factory.createExpressionStatement(ts.setTextRange(outerAssignment, member)), member);\n }\n /**\n * Transforms the value of an enum member.\n *\n * @param member The enum member node.\n */\n function transformEnumMemberDeclarationValue(member) {\n var value = resolver.getConstantValue(member);\n if (value !== undefined) {\n return typeof value === \"string\" ? factory.createStringLiteral(value) : factory.createNumericLiteral(value);\n }\n else {\n enableSubstitutionForNonQualifiedEnumMembers();\n if (member.initializer) {\n return ts.visitNode(member.initializer, visitor, ts.isExpression);\n }\n else {\n return factory.createVoidZero();\n }\n }\n }\n /**\n * Determines whether to elide a module declaration.\n *\n * @param node The module declaration node.\n */\n function shouldEmitModuleDeclaration(nodeIn) {\n var node = ts.getParseTreeNode(nodeIn, ts.isModuleDeclaration);\n if (!node) {\n // If we can't find a parse tree node, assume the node is instantiated.\n return true;\n }\n return ts.isInstantiatedModule(node, ts.shouldPreserveConstEnums(compilerOptions));\n }\n /**\n * Determines whether an exported declaration will have a qualified export name (e.g. `f.x`\n * or `exports.x`).\n */\n function hasNamespaceQualifiedExportName(node) {\n return isExportOfNamespace(node)\n || (isExternalModuleExport(node)\n && moduleKind !== ts.ModuleKind.ES2015\n && moduleKind !== ts.ModuleKind.ES2020\n && moduleKind !== ts.ModuleKind.ESNext\n && moduleKind !== ts.ModuleKind.System);\n }\n /**\n * Records that a declaration was emitted in the current scope, if it was the first\n * declaration for the provided symbol.\n */\n function recordEmittedDeclarationInScope(node) {\n if (!currentScopeFirstDeclarationsOfName) {\n currentScopeFirstDeclarationsOfName = new ts.Map();\n }\n var name = declaredNameInScope(node);\n if (!currentScopeFirstDeclarationsOfName.has(name)) {\n currentScopeFirstDeclarationsOfName.set(name, node);\n }\n }\n /**\n * Determines whether a declaration is the first declaration with\n * the same name emitted in the current scope.\n */\n function isFirstEmittedDeclarationInScope(node) {\n if (currentScopeFirstDeclarationsOfName) {\n var name = declaredNameInScope(node);\n return currentScopeFirstDeclarationsOfName.get(name) === node;\n }\n return true;\n }\n function declaredNameInScope(node) {\n ts.Debug.assertNode(node.name, ts.isIdentifier);\n return node.name.escapedText;\n }\n /**\n * Adds a leading VariableStatement for a enum or module declaration.\n */\n function addVarForEnumOrModuleDeclaration(statements, node) {\n // Emit a variable statement for the module. We emit top-level enums as a `var`\n // declaration to avoid static errors in global scripts scripts due to redeclaration.\n // enums in any other scope are emitted as a `let` declaration.\n var statement = factory.createVariableStatement(ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true))\n ], currentLexicalScope.kind === 300 /* SourceFile */ ? 0 /* None */ : 1 /* Let */));\n ts.setOriginalNode(statement, node);\n recordEmittedDeclarationInScope(node);\n if (isFirstEmittedDeclarationInScope(node)) {\n // Adjust the source map emit to match the old emitter.\n if (node.kind === 258 /* EnumDeclaration */) {\n ts.setSourceMapRange(statement.declarationList, node);\n }\n else {\n ts.setSourceMapRange(statement, node);\n }\n // Trailing comments for module declaration should be emitted after the function closure\n // instead of the variable statement:\n //\n // /** Module comment*/\n // module m1 {\n // function foo4Export() {\n // }\n // } // trailing comment module\n //\n // Should emit:\n //\n // /** Module comment*/\n // var m1;\n // (function (m1) {\n // function foo4Export() {\n // }\n // })(m1 || (m1 = {})); // trailing comment module\n //\n ts.setCommentRange(statement, node);\n ts.addEmitFlags(statement, 1024 /* NoTrailingComments */ | 4194304 /* HasEndOfDeclarationMarker */);\n statements.push(statement);\n return true;\n }\n else {\n // For an EnumDeclaration or ModuleDeclaration that merges with a preceeding\n // declaration we do not emit a leading variable declaration. To preserve the\n // begin/end semantics of the declararation and to properly handle exports\n // we wrap the leading variable declaration in a `MergeDeclarationMarker`.\n var mergeMarker = factory.createMergeDeclarationMarker(statement);\n ts.setEmitFlags(mergeMarker, 1536 /* NoComments */ | 4194304 /* HasEndOfDeclarationMarker */);\n statements.push(mergeMarker);\n return false;\n }\n }\n /**\n * Visits a module declaration node.\n *\n * This function will be called any time a TypeScript namespace (ModuleDeclaration) is encountered.\n *\n * @param node The module declaration node.\n */\n function visitModuleDeclaration(node) {\n if (!shouldEmitModuleDeclaration(node)) {\n return factory.createNotEmittedStatement(node);\n }\n ts.Debug.assertNode(node.name, ts.isIdentifier, \"A TypeScript namespace should have an Identifier name.\");\n enableSubstitutionForNamespaceExports();\n var statements = [];\n // We request to be advised when the printer is about to print this node. This allows\n // us to set up the correct state for later substitutions.\n var emitFlags = 2 /* AdviseOnEmitNode */;\n // If needed, we should emit a variable declaration for the module. If we emit\n // a leading variable declaration, we should not emit leading comments for the\n // module body.\n var varAdded = addVarForEnumOrModuleDeclaration(statements, node);\n if (varAdded) {\n // We should still emit the comments if we are emitting a system module.\n if (moduleKind !== ts.ModuleKind.System || currentLexicalScope !== currentSourceFile) {\n emitFlags |= 512 /* NoLeadingComments */;\n }\n }\n // `parameterName` is the declaration name used inside of the namespace.\n var parameterName = getNamespaceParameterName(node);\n // `containerName` is the expression used inside of the namespace for exports.\n var containerName = getNamespaceContainerName(node);\n // `exportName` is the expression used within this node's container for any exported references.\n var exportName = ts.hasSyntacticModifier(node, 1 /* Export */)\n ? factory.getExternalModuleOrNamespaceExportName(currentNamespaceContainerName, node, /*allowComments*/ false, /*allowSourceMaps*/ true)\n : factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true);\n // x || (x = {})\n // exports.x || (exports.x = {})\n var moduleArg = factory.createLogicalOr(exportName, factory.createAssignment(exportName, factory.createObjectLiteralExpression()));\n if (hasNamespaceQualifiedExportName(node)) {\n // `localName` is the expression used within this node's containing scope for any local references.\n var localName = factory.getLocalName(node, /*allowComments*/ false, /*allowSourceMaps*/ true);\n // x = (exports.x || (exports.x = {}))\n moduleArg = factory.createAssignment(localName, moduleArg);\n }\n // (function (x_1) {\n // x_1.y = ...;\n // })(x || (x = {}));\n var moduleStatement = factory.createExpressionStatement(factory.createCallExpression(factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, parameterName)], \n /*type*/ undefined, transformModuleBody(node, containerName)), \n /*typeArguments*/ undefined, [moduleArg]));\n ts.setOriginalNode(moduleStatement, node);\n if (varAdded) {\n // If a variable was added, synthetic comments are emitted on it, not on the moduleStatement.\n ts.setSyntheticLeadingComments(moduleStatement, undefined);\n ts.setSyntheticTrailingComments(moduleStatement, undefined);\n }\n ts.setTextRange(moduleStatement, node);\n ts.addEmitFlags(moduleStatement, emitFlags);\n statements.push(moduleStatement);\n // Add a DeclarationMarker for the namespace to preserve trailing comments and mark\n // the end of the declaration.\n statements.push(factory.createEndOfDeclarationMarker(node));\n return statements;\n }\n /**\n * Transforms the body of a module declaration.\n *\n * @param node The module declaration node.\n */\n function transformModuleBody(node, namespaceLocalName) {\n var savedCurrentNamespaceContainerName = currentNamespaceContainerName;\n var savedCurrentNamespace = currentNamespace;\n var savedCurrentScopeFirstDeclarationsOfName = currentScopeFirstDeclarationsOfName;\n currentNamespaceContainerName = namespaceLocalName;\n currentNamespace = node;\n currentScopeFirstDeclarationsOfName = undefined;\n var statements = [];\n startLexicalEnvironment();\n var statementsLocation;\n var blockLocation;\n if (node.body) {\n if (node.body.kind === 260 /* ModuleBlock */) {\n saveStateAndInvoke(node.body, function (body) { return ts.addRange(statements, ts.visitNodes(body.statements, namespaceElementVisitor, ts.isStatement)); });\n statementsLocation = node.body.statements;\n blockLocation = node.body;\n }\n else {\n var result = visitModuleDeclaration(node.body);\n if (result) {\n if (ts.isArray(result)) {\n ts.addRange(statements, result);\n }\n else {\n statements.push(result);\n }\n }\n var moduleBlock = getInnerMostModuleDeclarationFromDottedModule(node).body;\n statementsLocation = ts.moveRangePos(moduleBlock.statements, -1);\n }\n }\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n currentNamespaceContainerName = savedCurrentNamespaceContainerName;\n currentNamespace = savedCurrentNamespace;\n currentScopeFirstDeclarationsOfName = savedCurrentScopeFirstDeclarationsOfName;\n var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), \n /*location*/ statementsLocation), \n /*multiLine*/ true);\n ts.setTextRange(block, blockLocation);\n // namespace hello.hi.world {\n // function foo() {}\n //\n // // TODO, blah\n // }\n //\n // should be emitted as\n //\n // var hello;\n // (function (hello) {\n // var hi;\n // (function (hi) {\n // var world;\n // (function (world) {\n // function foo() { }\n // // TODO, blah\n // })(world = hi.world || (hi.world = {}));\n // })(hi = hello.hi || (hello.hi = {}));\n // })(hello || (hello = {}));\n // We only want to emit comment on the namespace which contains block body itself, not the containing namespaces.\n if (!node.body || node.body.kind !== 260 /* ModuleBlock */) {\n ts.setEmitFlags(block, ts.getEmitFlags(block) | 1536 /* NoComments */);\n }\n return block;\n }\n function getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration) {\n if (moduleDeclaration.body.kind === 259 /* ModuleDeclaration */) {\n var recursiveInnerModule = getInnerMostModuleDeclarationFromDottedModule(moduleDeclaration.body);\n return recursiveInnerModule || moduleDeclaration.body;\n }\n }\n /**\n * Visits an import declaration, eliding it if it is not referenced and `importsNotUsedAsValues` is not 'preserve'.\n *\n * @param node The import declaration node.\n */\n function visitImportDeclaration(node) {\n if (!node.importClause) {\n // Do not elide a side-effect only import declaration.\n // import \"foo\";\n return node;\n }\n if (node.importClause.isTypeOnly) {\n // Always elide type-only imports\n return undefined;\n }\n // Elide the declaration if the import clause was elided.\n var importClause = ts.visitNode(node.importClause, visitImportClause, ts.isImportClause);\n return importClause ||\n compilerOptions.importsNotUsedAsValues === 1 /* Preserve */ ||\n compilerOptions.importsNotUsedAsValues === 2 /* Error */\n ? factory.updateImportDeclaration(node, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, importClause, node.moduleSpecifier)\n : undefined;\n }\n /**\n * Visits an import clause, eliding it if it is not referenced.\n *\n * @param node The import clause node.\n */\n function visitImportClause(node) {\n if (node.isTypeOnly) {\n return undefined;\n }\n // Elide the import clause if we elide both its name and its named bindings.\n var name = resolver.isReferencedAliasDeclaration(node) ? node.name : undefined;\n var namedBindings = ts.visitNode(node.namedBindings, visitNamedImportBindings, ts.isNamedImportBindings);\n return (name || namedBindings) ? factory.updateImportClause(node, /*isTypeOnly*/ false, name, namedBindings) : undefined;\n }\n /**\n * Visits named import bindings, eliding it if it is not referenced.\n *\n * @param node The named import bindings node.\n */\n function visitNamedImportBindings(node) {\n if (node.kind === 266 /* NamespaceImport */) {\n // Elide a namespace import if it is not referenced.\n return resolver.isReferencedAliasDeclaration(node) ? node : undefined;\n }\n else {\n // Elide named imports if all of its import specifiers are elided.\n var elements = ts.visitNodes(node.elements, visitImportSpecifier, ts.isImportSpecifier);\n return ts.some(elements) ? factory.updateNamedImports(node, elements) : undefined;\n }\n }\n /**\n * Visits an import specifier, eliding it if it is not referenced.\n *\n * @param node The import specifier node.\n */\n function visitImportSpecifier(node) {\n // Elide an import specifier if it is not referenced.\n return resolver.isReferencedAliasDeclaration(node) ? node : undefined;\n }\n /**\n * Visits an export assignment, eliding it if it does not contain a clause that resolves\n * to a value.\n *\n * @param node The export assignment node.\n */\n function visitExportAssignment(node) {\n // Elide the export assignment if it does not reference a value.\n return resolver.isValueAliasDeclaration(node)\n ? ts.visitEachChild(node, visitor, context)\n : undefined;\n }\n /**\n * Visits an export declaration, eliding it if it does not contain a clause that resolves\n * to a value.\n *\n * @param node The export declaration node.\n */\n function visitExportDeclaration(node) {\n if (node.isTypeOnly) {\n return undefined;\n }\n if (!node.exportClause || ts.isNamespaceExport(node.exportClause)) {\n // never elide `export from ` declarations -\n // they should be kept for sideffects/untyped exports, even when the\n // type checker doesn't know about any exports\n return node;\n }\n if (!resolver.isValueAliasDeclaration(node)) {\n // Elide the export declaration if it does not export a value.\n return undefined;\n }\n // Elide the export declaration if all of its named exports are elided.\n var exportClause = ts.visitNode(node.exportClause, visitNamedExportBindings, ts.isNamedExportBindings);\n return exportClause\n ? factory.updateExportDeclaration(node, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, node.isTypeOnly, exportClause, node.moduleSpecifier)\n : undefined;\n }\n /**\n * Visits named exports, eliding it if it does not contain an export specifier that\n * resolves to a value.\n *\n * @param node The named exports node.\n */\n function visitNamedExports(node) {\n // Elide the named exports if all of its export specifiers were elided.\n var elements = ts.visitNodes(node.elements, visitExportSpecifier, ts.isExportSpecifier);\n return ts.some(elements) ? factory.updateNamedExports(node, elements) : undefined;\n }\n function visitNamespaceExports(node) {\n return factory.updateNamespaceExport(node, ts.visitNode(node.name, visitor, ts.isIdentifier));\n }\n function visitNamedExportBindings(node) {\n return ts.isNamespaceExport(node) ? visitNamespaceExports(node) : visitNamedExports(node);\n }\n /**\n * Visits an export specifier, eliding it if it does not resolve to a value.\n *\n * @param node The export specifier node.\n */\n function visitExportSpecifier(node) {\n // Elide an export specifier if it does not reference a value.\n return resolver.isValueAliasDeclaration(node) ? node : undefined;\n }\n /**\n * Determines whether to emit an import equals declaration.\n *\n * @param node The import equals declaration node.\n */\n function shouldEmitImportEqualsDeclaration(node) {\n // preserve old compiler's behavior: emit 'var' for import declaration (even if we do not consider them referenced) when\n // - current file is not external module\n // - import declaration is top level and target is value imported by entity name\n return resolver.isReferencedAliasDeclaration(node)\n || (!ts.isExternalModule(currentSourceFile)\n && resolver.isTopLevelValueImportEqualsWithEntityName(node));\n }\n /**\n * Visits an import equals declaration.\n *\n * @param node The import equals declaration node.\n */\n function visitImportEqualsDeclaration(node) {\n // Always elide type-only imports\n if (node.isTypeOnly) {\n return undefined;\n }\n if (ts.isExternalModuleImportEqualsDeclaration(node)) {\n var isReferenced = resolver.isReferencedAliasDeclaration(node);\n // If the alias is unreferenced but we want to keep the import, replace with 'import \"mod\"'.\n if (!isReferenced && compilerOptions.importsNotUsedAsValues === 1 /* Preserve */) {\n return ts.setOriginalNode(ts.setTextRange(factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*importClause*/ undefined, node.moduleReference.expression), node), node);\n }\n return isReferenced ? ts.visitEachChild(node, visitor, context) : undefined;\n }\n if (!shouldEmitImportEqualsDeclaration(node)) {\n return undefined;\n }\n var moduleReference = ts.createExpressionFromEntityName(factory, node.moduleReference);\n ts.setEmitFlags(moduleReference, 1536 /* NoComments */ | 2048 /* NoNestedComments */);\n if (isNamedExternalModuleExport(node) || !isExportOfNamespace(node)) {\n // export var ${name} = ${moduleReference};\n // var ${name} = ${moduleReference};\n return ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), factory.createVariableDeclarationList([\n ts.setOriginalNode(factory.createVariableDeclaration(node.name, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, moduleReference), node)\n ])), node), node);\n }\n else {\n // exports.${name} = ${moduleReference};\n return ts.setOriginalNode(createNamespaceExport(node.name, moduleReference, node), node);\n }\n }\n /**\n * Gets a value indicating whether the node is exported from a namespace.\n *\n * @param node The node to test.\n */\n function isExportOfNamespace(node) {\n return currentNamespace !== undefined && ts.hasSyntacticModifier(node, 1 /* Export */);\n }\n /**\n * Gets a value indicating whether the node is exported from an external module.\n *\n * @param node The node to test.\n */\n function isExternalModuleExport(node) {\n return currentNamespace === undefined && ts.hasSyntacticModifier(node, 1 /* Export */);\n }\n /**\n * Gets a value indicating whether the node is a named export from an external module.\n *\n * @param node The node to test.\n */\n function isNamedExternalModuleExport(node) {\n return isExternalModuleExport(node)\n && !ts.hasSyntacticModifier(node, 512 /* Default */);\n }\n /**\n * Gets a value indicating whether the node is the default export of an external module.\n *\n * @param node The node to test.\n */\n function isDefaultExternalModuleExport(node) {\n return isExternalModuleExport(node)\n && ts.hasSyntacticModifier(node, 512 /* Default */);\n }\n /**\n * Creates a statement for the provided expression. This is used in calls to `map`.\n */\n function expressionToStatement(expression) {\n return factory.createExpressionStatement(expression);\n }\n function addExportMemberAssignment(statements, node) {\n var expression = factory.createAssignment(factory.getExternalModuleOrNamespaceExportName(currentNamespaceContainerName, node, /*allowComments*/ false, /*allowSourceMaps*/ true), factory.getLocalName(node));\n ts.setSourceMapRange(expression, ts.createRange(node.name ? node.name.pos : node.pos, node.end));\n var statement = factory.createExpressionStatement(expression);\n ts.setSourceMapRange(statement, ts.createRange(-1, node.end));\n statements.push(statement);\n }\n function createNamespaceExport(exportName, exportValue, location) {\n return ts.setTextRange(factory.createExpressionStatement(factory.createAssignment(factory.getNamespaceMemberName(currentNamespaceContainerName, exportName, /*allowComments*/ false, /*allowSourceMaps*/ true), exportValue)), location);\n }\n function createNamespaceExportExpression(exportName, exportValue, location) {\n return ts.setTextRange(factory.createAssignment(getNamespaceMemberNameWithSourceMapsAndWithoutComments(exportName), exportValue), location);\n }\n function getNamespaceMemberNameWithSourceMapsAndWithoutComments(name) {\n return factory.getNamespaceMemberName(currentNamespaceContainerName, name, /*allowComments*/ false, /*allowSourceMaps*/ true);\n }\n /**\n * Gets the declaration name used inside of a namespace or enum.\n */\n function getNamespaceParameterName(node) {\n var name = factory.getGeneratedNameForNode(node);\n ts.setSourceMapRange(name, node.name);\n return name;\n }\n /**\n * Gets the expression used to refer to a namespace or enum within the body\n * of its declaration.\n */\n function getNamespaceContainerName(node) {\n return factory.getGeneratedNameForNode(node);\n }\n /**\n * Gets a local alias for a class declaration if it is a decorated class with an internal\n * reference to the static side of the class. This is necessary to avoid issues with\n * double-binding semantics for the class name.\n */\n function getClassAliasIfNeeded(node) {\n if (resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */) {\n enableSubstitutionForClassAliases();\n var classAlias = factory.createUniqueName(node.name && !ts.isGeneratedIdentifier(node.name) ? ts.idText(node.name) : \"default\");\n classAliases[ts.getOriginalNodeId(node)] = classAlias;\n hoistVariableDeclaration(classAlias);\n return classAlias;\n }\n }\n function getClassPrototype(node) {\n return factory.createPropertyAccessExpression(factory.getDeclarationName(node), \"prototype\");\n }\n function getClassMemberPrefix(node, member) {\n return ts.isStatic(member)\n ? factory.getDeclarationName(node)\n : getClassPrototype(node);\n }\n function enableSubstitutionForNonQualifiedEnumMembers() {\n if ((enabledSubstitutions & 8 /* NonQualifiedEnumMembers */) === 0) {\n enabledSubstitutions |= 8 /* NonQualifiedEnumMembers */;\n context.enableSubstitution(79 /* Identifier */);\n }\n }\n function enableSubstitutionForClassAliases() {\n if ((enabledSubstitutions & 1 /* ClassAliases */) === 0) {\n enabledSubstitutions |= 1 /* ClassAliases */;\n // We need to enable substitutions for identifiers. This allows us to\n // substitute class names inside of a class declaration.\n context.enableSubstitution(79 /* Identifier */);\n // Keep track of class aliases.\n classAliases = [];\n }\n }\n function enableSubstitutionForNamespaceExports() {\n if ((enabledSubstitutions & 2 /* NamespaceExports */) === 0) {\n enabledSubstitutions |= 2 /* NamespaceExports */;\n // We need to enable substitutions for identifiers and shorthand property assignments. This allows us to\n // substitute the names of exported members of a namespace.\n context.enableSubstitution(79 /* Identifier */);\n context.enableSubstitution(292 /* ShorthandPropertyAssignment */);\n // We need to be notified when entering and exiting namespaces.\n context.enableEmitNotification(259 /* ModuleDeclaration */);\n }\n }\n function isTransformedModuleDeclaration(node) {\n return ts.getOriginalNode(node).kind === 259 /* ModuleDeclaration */;\n }\n function isTransformedEnumDeclaration(node) {\n return ts.getOriginalNode(node).kind === 258 /* EnumDeclaration */;\n }\n /**\n * Hook for node emit.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emit A callback used to emit the node in the printer.\n */\n function onEmitNode(hint, node, emitCallback) {\n var savedApplicableSubstitutions = applicableSubstitutions;\n var savedCurrentSourceFile = currentSourceFile;\n if (ts.isSourceFile(node)) {\n currentSourceFile = node;\n }\n if (enabledSubstitutions & 2 /* NamespaceExports */ && isTransformedModuleDeclaration(node)) {\n applicableSubstitutions |= 2 /* NamespaceExports */;\n }\n if (enabledSubstitutions & 8 /* NonQualifiedEnumMembers */ && isTransformedEnumDeclaration(node)) {\n applicableSubstitutions |= 8 /* NonQualifiedEnumMembers */;\n }\n previousOnEmitNode(hint, node, emitCallback);\n applicableSubstitutions = savedApplicableSubstitutions;\n currentSourceFile = savedCurrentSourceFile;\n }\n /**\n * Hooks node substitutions.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (hint === 1 /* Expression */) {\n return substituteExpression(node);\n }\n else if (ts.isShorthandPropertyAssignment(node)) {\n return substituteShorthandPropertyAssignment(node);\n }\n return node;\n }\n function substituteShorthandPropertyAssignment(node) {\n if (enabledSubstitutions & 2 /* NamespaceExports */) {\n var name = node.name;\n var exportedName = trySubstituteNamespaceExportedName(name);\n if (exportedName) {\n // A shorthand property with an assignment initializer is probably part of a\n // destructuring assignment\n if (node.objectAssignmentInitializer) {\n var initializer = factory.createAssignment(exportedName, node.objectAssignmentInitializer);\n return ts.setTextRange(factory.createPropertyAssignment(name, initializer), node);\n }\n return ts.setTextRange(factory.createPropertyAssignment(name, exportedName), node);\n }\n }\n return node;\n }\n function substituteExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return substituteExpressionIdentifier(node);\n case 204 /* PropertyAccessExpression */:\n return substitutePropertyAccessExpression(node);\n case 205 /* ElementAccessExpression */:\n return substituteElementAccessExpression(node);\n }\n return node;\n }\n function substituteExpressionIdentifier(node) {\n return trySubstituteClassAlias(node)\n || trySubstituteNamespaceExportedName(node)\n || node;\n }\n function trySubstituteClassAlias(node) {\n if (enabledSubstitutions & 1 /* ClassAliases */) {\n if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {\n // Due to the emit for class decorators, any reference to the class from inside of the class body\n // must instead be rewritten to point to a temporary variable to avoid issues with the double-bind\n // behavior of class names in ES6.\n // Also, when emitting statics for class expressions, we must substitute a class alias for\n // constructor references in static property initializers.\n var declaration = resolver.getReferencedValueDeclaration(node);\n if (declaration) {\n var classAlias = classAliases[declaration.id]; // TODO: GH#18217\n if (classAlias) {\n var clone_2 = factory.cloneNode(classAlias);\n ts.setSourceMapRange(clone_2, node);\n ts.setCommentRange(clone_2, node);\n return clone_2;\n }\n }\n }\n }\n return undefined;\n }\n function trySubstituteNamespaceExportedName(node) {\n // If this is explicitly a local name, do not substitute.\n if (enabledSubstitutions & applicableSubstitutions && !ts.isGeneratedIdentifier(node) && !ts.isLocalName(node)) {\n // If we are nested within a namespace declaration, we may need to qualifiy\n // an identifier that is exported from a merged namespace.\n var container = resolver.getReferencedExportContainer(node, /*prefixLocals*/ false);\n if (container && container.kind !== 300 /* SourceFile */) {\n var substitute = (applicableSubstitutions & 2 /* NamespaceExports */ && container.kind === 259 /* ModuleDeclaration */) ||\n (applicableSubstitutions & 8 /* NonQualifiedEnumMembers */ && container.kind === 258 /* EnumDeclaration */);\n if (substitute) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(container), node), \n /*location*/ node);\n }\n }\n }\n return undefined;\n }\n function substitutePropertyAccessExpression(node) {\n return substituteConstantValue(node);\n }\n function substituteElementAccessExpression(node) {\n return substituteConstantValue(node);\n }\n function substituteConstantValue(node) {\n var constantValue = tryGetConstEnumValue(node);\n if (constantValue !== undefined) {\n // track the constant value on the node for the printer in needsDotDotForPropertyAccess\n ts.setConstantValue(node, constantValue);\n var substitute = typeof constantValue === \"string\" ? factory.createStringLiteral(constantValue) : factory.createNumericLiteral(constantValue);\n if (!compilerOptions.removeComments) {\n var originalNode = ts.getOriginalNode(node, ts.isAccessExpression);\n var propertyName = ts.isPropertyAccessExpression(originalNode)\n ? ts.declarationNameToString(originalNode.name)\n : ts.getTextOfNode(originalNode.argumentExpression);\n ts.addSyntheticTrailingComment(substitute, 3 /* MultiLineCommentTrivia */, \" \" + propertyName + \" \");\n }\n return substitute;\n }\n return node;\n }\n function tryGetConstEnumValue(node) {\n if (compilerOptions.isolatedModules) {\n return undefined;\n }\n return ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node) ? resolver.getConstantValue(node) : undefined;\n }\n }\n ts.transformTypeScript = transformTypeScript;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var ClassPropertySubstitutionFlags;\n (function (ClassPropertySubstitutionFlags) {\n /**\n * Enables substitutions for class expressions with static fields\n * which have initializers that reference the class name.\n */\n ClassPropertySubstitutionFlags[ClassPropertySubstitutionFlags[\"ClassAliases\"] = 1] = \"ClassAliases\";\n /**\n * Enables substitutions for class expressions with static fields\n * which have initializers that reference the 'this' or 'super'.\n */\n ClassPropertySubstitutionFlags[ClassPropertySubstitutionFlags[\"ClassStaticThisOrSuperReference\"] = 2] = \"ClassStaticThisOrSuperReference\";\n })(ClassPropertySubstitutionFlags || (ClassPropertySubstitutionFlags = {}));\n var PrivateIdentifierKind;\n (function (PrivateIdentifierKind) {\n PrivateIdentifierKind[\"Field\"] = \"f\";\n PrivateIdentifierKind[\"Method\"] = \"m\";\n PrivateIdentifierKind[\"Accessor\"] = \"a\";\n })(PrivateIdentifierKind = ts.PrivateIdentifierKind || (ts.PrivateIdentifierKind = {}));\n var ClassFacts;\n (function (ClassFacts) {\n ClassFacts[ClassFacts[\"None\"] = 0] = \"None\";\n ClassFacts[ClassFacts[\"ClassWasDecorated\"] = 1] = \"ClassWasDecorated\";\n ClassFacts[ClassFacts[\"NeedsClassConstructorReference\"] = 2] = \"NeedsClassConstructorReference\";\n ClassFacts[ClassFacts[\"NeedsClassSuperReference\"] = 4] = \"NeedsClassSuperReference\";\n ClassFacts[ClassFacts[\"NeedsSubstitutionForThisInClassStaticField\"] = 8] = \"NeedsSubstitutionForThisInClassStaticField\";\n })(ClassFacts || (ClassFacts = {}));\n /**\n * Transforms ECMAScript Class Syntax.\n * TypeScript parameter property syntax is transformed in the TypeScript transformer.\n * For now, this transforms public field declarations using TypeScript class semantics,\n * where declarations are elided and initializers are transformed as assignments in the constructor.\n * When --useDefineForClassFields is on, this transforms to ECMAScript semantics, with Object.defineProperty.\n */\n function transformClassFields(context) {\n var factory = context.factory, hoistVariableDeclaration = context.hoistVariableDeclaration, endLexicalEnvironment = context.endLexicalEnvironment, startLexicalEnvironment = context.startLexicalEnvironment, resumeLexicalEnvironment = context.resumeLexicalEnvironment, addBlockScopedVariable = context.addBlockScopedVariable;\n var resolver = context.getEmitResolver();\n var compilerOptions = context.getCompilerOptions();\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var useDefineForClassFields = ts.getUseDefineForClassFields(compilerOptions);\n var shouldTransformPrivateElementsOrClassStaticBlocks = languageVersion < 99 /* ESNext */;\n // We don't need to transform `super` property access when targeting ES5, ES3 because\n // the es2015 transformation handles those.\n var shouldTransformSuperInStaticInitializers = (languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields) && languageVersion >= 2 /* ES2015 */;\n var shouldTransformThisInStaticInitializers = languageVersion <= 8 /* ES2021 */ || !useDefineForClassFields;\n var previousOnSubstituteNode = context.onSubstituteNode;\n context.onSubstituteNode = onSubstituteNode;\n var previousOnEmitNode = context.onEmitNode;\n context.onEmitNode = onEmitNode;\n var enabledSubstitutions;\n var classAliases;\n /**\n * Tracks what computed name expressions originating from elided names must be inlined\n * at the next execution site, in document order\n */\n var pendingExpressions;\n /**\n * Tracks what computed name expression statements and static property initializers must be\n * emitted at the next execution site, in document order (for decorated classes).\n */\n var pendingStatements;\n var classLexicalEnvironmentStack = [];\n var classLexicalEnvironmentMap = new ts.Map();\n var currentClassLexicalEnvironment;\n var currentComputedPropertyNameClassLexicalEnvironment;\n var currentStaticPropertyDeclarationOrStaticBlock;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n var options = context.getCompilerOptions();\n if (node.isDeclarationFile\n || useDefineForClassFields && options.target === 99 /* ESNext */) {\n return node;\n }\n var visited = ts.visitEachChild(node, visitor, context);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n return visited;\n }\n function visitorWorker(node, valueIsDiscarded) {\n if (node.transformFlags & 8388608 /* ContainsClassFields */) {\n switch (node.kind) {\n case 224 /* ClassExpression */:\n case 255 /* ClassDeclaration */:\n return visitClassLike(node);\n case 165 /* PropertyDeclaration */:\n return visitPropertyDeclaration(node);\n case 235 /* VariableStatement */:\n return visitVariableStatement(node);\n case 80 /* PrivateIdentifier */:\n return visitPrivateIdentifier(node);\n case 168 /* ClassStaticBlockDeclaration */:\n return visitClassStaticBlockDeclaration(node);\n }\n }\n if (node.transformFlags & 8388608 /* ContainsClassFields */ ||\n node.transformFlags & 33554432 /* ContainsLexicalSuper */ &&\n shouldTransformSuperInStaticInitializers &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n switch (node.kind) {\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded);\n case 219 /* BinaryExpression */:\n return visitBinaryExpression(node, valueIsDiscarded);\n case 206 /* CallExpression */:\n return visitCallExpression(node);\n case 208 /* TaggedTemplateExpression */:\n return visitTaggedTemplateExpression(node);\n case 204 /* PropertyAccessExpression */:\n return visitPropertyAccessExpression(node);\n case 205 /* ElementAccessExpression */:\n return visitElementAccessExpression(node);\n case 236 /* ExpressionStatement */:\n return visitExpressionStatement(node);\n case 240 /* ForStatement */:\n return visitForStatement(node);\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 169 /* Constructor */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */: {\n var savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock;\n currentStaticPropertyDeclarationOrStaticBlock = undefined;\n var result = ts.visitEachChild(node, visitor, context);\n currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock;\n return result;\n }\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function discardedValueVisitor(node) {\n return visitorWorker(node, /*valueIsDiscarded*/ true);\n }\n function visitor(node) {\n return visitorWorker(node, /*valueIsDiscarded*/ false);\n }\n function heritageClauseVisitor(node) {\n switch (node.kind) {\n case 289 /* HeritageClause */:\n return ts.visitEachChild(node, heritageClauseVisitor, context);\n case 226 /* ExpressionWithTypeArguments */:\n return visitExpressionWithTypeArguments(node);\n }\n return visitor(node);\n }\n function visitorDestructuringTarget(node) {\n switch (node.kind) {\n case 203 /* ObjectLiteralExpression */:\n case 202 /* ArrayLiteralExpression */:\n return visitAssignmentPattern(node);\n default:\n return visitor(node);\n }\n }\n /**\n * If we visit a private name, this means it is an undeclared private name.\n * Replace it with an empty identifier to indicate a problem with the code.\n */\n function visitPrivateIdentifier(node) {\n if (!shouldTransformPrivateElementsOrClassStaticBlocks) {\n return node;\n }\n return ts.setOriginalNode(factory.createIdentifier(\"\"), node);\n }\n /**\n * Visits the members of a class that has fields.\n *\n * @param node The node to visit.\n */\n function classElementVisitor(node) {\n switch (node.kind) {\n case 169 /* Constructor */:\n // Constructors for classes using class fields are transformed in\n // `visitClassDeclaration` or `visitClassExpression`.\n return undefined;\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n return visitMethodOrAccessorDeclaration(node);\n case 165 /* PropertyDeclaration */:\n return visitPropertyDeclaration(node);\n case 160 /* ComputedPropertyName */:\n return visitComputedPropertyName(node);\n case 232 /* SemicolonClassElement */:\n return node;\n default:\n return visitor(node);\n }\n }\n function visitVariableStatement(node) {\n var savedPendingStatements = pendingStatements;\n pendingStatements = [];\n var visitedNode = ts.visitEachChild(node, visitor, context);\n var statement = ts.some(pendingStatements) ? __spreadArray([visitedNode], pendingStatements, true) :\n visitedNode;\n pendingStatements = savedPendingStatements;\n return statement;\n }\n function visitComputedPropertyName(name) {\n var node = ts.visitEachChild(name, visitor, context);\n if (ts.some(pendingExpressions)) {\n var expressions = pendingExpressions;\n expressions.push(node.expression);\n pendingExpressions = [];\n node = factory.updateComputedPropertyName(node, factory.inlineExpressions(expressions));\n }\n return node;\n }\n function visitMethodOrAccessorDeclaration(node) {\n ts.Debug.assert(!ts.some(node.decorators));\n if (!shouldTransformPrivateElementsOrClassStaticBlocks || !ts.isPrivateIdentifier(node.name)) {\n return ts.visitEachChild(node, classElementVisitor, context);\n }\n // leave invalid code untransformed\n var info = accessPrivateIdentifier(node.name);\n ts.Debug.assert(info, \"Undeclared private name for property declaration.\");\n if (!info.isValid) {\n return node;\n }\n var functionName = getHoistedFunctionName(node);\n if (functionName) {\n getPendingExpressions().push(factory.createAssignment(functionName, factory.createFunctionExpression(ts.filter(node.modifiers, function (m) { return !ts.isStaticModifier(m); }), node.asteriskToken, functionName, \n /* typeParameters */ undefined, ts.visitParameterList(node.parameters, classElementVisitor, context), \n /* type */ undefined, ts.visitFunctionBody(node.body, classElementVisitor, context))));\n }\n // remove method declaration from class\n return undefined;\n }\n function getHoistedFunctionName(node) {\n ts.Debug.assert(ts.isPrivateIdentifier(node.name));\n var info = accessPrivateIdentifier(node.name);\n ts.Debug.assert(info, \"Undeclared private name for property declaration.\");\n if (info.kind === \"m\" /* Method */) {\n return info.methodName;\n }\n if (info.kind === \"a\" /* Accessor */) {\n if (ts.isGetAccessor(node)) {\n return info.getterName;\n }\n if (ts.isSetAccessor(node)) {\n return info.setterName;\n }\n }\n }\n function visitPropertyDeclaration(node) {\n ts.Debug.assert(!ts.some(node.decorators));\n if (ts.isPrivateIdentifier(node.name)) {\n if (!shouldTransformPrivateElementsOrClassStaticBlocks) {\n // Initializer is elided as the field is initialized in transformConstructor.\n return factory.updatePropertyDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, visitor, ts.isModifier), node.name, \n /*questionOrExclamationToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined);\n }\n // leave invalid code untransformed\n var info = accessPrivateIdentifier(node.name);\n ts.Debug.assert(info, \"Undeclared private name for property declaration.\");\n if (!info.isValid) {\n return node;\n }\n }\n // Create a temporary variable to store a computed property name (if necessary).\n // If it's not inlineable, then we emit an expression after the class which assigns\n // the property name to the temporary variable.\n var expr = getPropertyNameExpressionIfNeeded(node.name, !!node.initializer || useDefineForClassFields);\n if (expr && !ts.isSimpleInlineableExpression(expr)) {\n getPendingExpressions().push(expr);\n }\n return undefined;\n }\n function createPrivateIdentifierAccess(info, receiver) {\n return createPrivateIdentifierAccessHelper(info, ts.visitNode(receiver, visitor, ts.isExpression));\n }\n function createPrivateIdentifierAccessHelper(info, receiver) {\n ts.setCommentRange(receiver, ts.moveRangePos(receiver, -1));\n switch (info.kind) {\n case \"a\" /* Accessor */:\n return context.getEmitHelperFactory().createClassPrivateFieldGetHelper(receiver, info.brandCheckIdentifier, info.kind, info.getterName);\n case \"m\" /* Method */:\n return context.getEmitHelperFactory().createClassPrivateFieldGetHelper(receiver, info.brandCheckIdentifier, info.kind, info.methodName);\n case \"f\" /* Field */:\n return context.getEmitHelperFactory().createClassPrivateFieldGetHelper(receiver, info.brandCheckIdentifier, info.kind, info.variableName);\n default:\n ts.Debug.assertNever(info, \"Unknown private element type\");\n }\n }\n function visitPropertyAccessExpression(node) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifier(node.name)) {\n var privateIdentifierInfo = accessPrivateIdentifier(node.name);\n if (privateIdentifierInfo) {\n return ts.setTextRange(ts.setOriginalNode(createPrivateIdentifierAccess(privateIdentifierInfo, node.expression), node), node);\n }\n }\n if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(node) &&\n ts.isIdentifier(node.name) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;\n if (facts & 1 /* ClassWasDecorated */) {\n return visitInvalidSuperProperty(node);\n }\n if (classConstructor && superClassReference) {\n // converts `super.x` into `Reflect.get(_baseTemp, \"x\", _classTemp)`\n var superProperty = factory.createReflectGetCall(superClassReference, factory.createStringLiteralFromNode(node.name), classConstructor);\n ts.setOriginalNode(superProperty, node.expression);\n ts.setTextRange(superProperty, node.expression);\n return superProperty;\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitElementAccessExpression(node) {\n if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(node) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;\n if (facts & 1 /* ClassWasDecorated */) {\n return visitInvalidSuperProperty(node);\n }\n if (classConstructor && superClassReference) {\n // converts `super[x]` into `Reflect.get(_baseTemp, x, _classTemp)`\n var superProperty = factory.createReflectGetCall(superClassReference, ts.visitNode(node.argumentExpression, visitor, ts.isExpression), classConstructor);\n ts.setOriginalNode(superProperty, node.expression);\n ts.setTextRange(superProperty, node.expression);\n return superProperty;\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) {\n if (node.operator === 45 /* PlusPlusToken */ || node.operator === 46 /* MinusMinusToken */) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierPropertyAccessExpression(node.operand)) {\n var info = void 0;\n if (info = accessPrivateIdentifier(node.operand.name)) {\n var receiver = ts.visitNode(node.operand.expression, visitor, ts.isExpression);\n var _a = createCopiableReceiverExpr(receiver), readExpression = _a.readExpression, initializeExpression = _a.initializeExpression;\n var expression = createPrivateIdentifierAccess(info, readExpression);\n var temp = ts.isPrefixUnaryExpression(node) || valueIsDiscarded ? undefined : factory.createTempVariable(hoistVariableDeclaration);\n expression = ts.expandPreOrPostfixIncrementOrDecrementExpression(factory, node, expression, hoistVariableDeclaration, temp);\n expression = createPrivateIdentifierAssignment(info, initializeExpression || readExpression, expression, 63 /* EqualsToken */);\n ts.setOriginalNode(expression, node);\n ts.setTextRange(expression, node);\n if (temp) {\n expression = factory.createComma(expression, temp);\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n }\n else if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(node.operand) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n // converts `++super.a` into `(Reflect.set(_baseTemp, \"a\", (_a = Reflect.get(_baseTemp, \"a\", _classTemp), _b = ++_a), _classTemp), _b)`\n // converts `++super[f()]` into `(Reflect.set(_baseTemp, _a = f(), (_b = Reflect.get(_baseTemp, _a, _classTemp), _c = ++_b), _classTemp), _c)`\n // converts `--super.a` into `(Reflect.set(_baseTemp, \"a\", (_a = Reflect.get(_baseTemp, \"a\", _classTemp), _b = --_a), _classTemp), _b)`\n // converts `--super[f()]` into `(Reflect.set(_baseTemp, _a = f(), (_b = Reflect.get(_baseTemp, _a, _classTemp), _c = --_b), _classTemp), _c)`\n // converts `super.a++` into `(Reflect.set(_baseTemp, \"a\", (_a = Reflect.get(_baseTemp, \"a\", _classTemp), _b = _a++), _classTemp), _b)`\n // converts `super[f()]++` into `(Reflect.set(_baseTemp, _a = f(), (_b = Reflect.get(_baseTemp, _a, _classTemp), _c = _b++), _classTemp), _c)`\n // converts `super.a--` into `(Reflect.set(_baseTemp, \"a\", (_a = Reflect.get(_baseTemp, \"a\", _classTemp), _b = _a--), _classTemp), _b)`\n // converts `super[f()]--` into `(Reflect.set(_baseTemp, _a = f(), (_b = Reflect.get(_baseTemp, _a, _classTemp), _c = _b--), _classTemp), _c)`\n var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;\n if (facts & 1 /* ClassWasDecorated */) {\n var operand = visitInvalidSuperProperty(node.operand);\n return ts.isPrefixUnaryExpression(node) ?\n factory.updatePrefixUnaryExpression(node, operand) :\n factory.updatePostfixUnaryExpression(node, operand);\n }\n if (classConstructor && superClassReference) {\n var setterName = void 0;\n var getterName = void 0;\n if (ts.isPropertyAccessExpression(node.operand)) {\n if (ts.isIdentifier(node.operand.name)) {\n getterName = setterName = factory.createStringLiteralFromNode(node.operand.name);\n }\n }\n else {\n if (ts.isSimpleInlineableExpression(node.operand.argumentExpression)) {\n getterName = setterName = node.operand.argumentExpression;\n }\n else {\n getterName = factory.createTempVariable(hoistVariableDeclaration);\n setterName = factory.createAssignment(getterName, ts.visitNode(node.operand.argumentExpression, visitor, ts.isExpression));\n }\n }\n if (setterName && getterName) {\n var expression = factory.createReflectGetCall(superClassReference, getterName, classConstructor);\n ts.setTextRange(expression, node.operand);\n var temp = valueIsDiscarded ? undefined : factory.createTempVariable(hoistVariableDeclaration);\n expression = ts.expandPreOrPostfixIncrementOrDecrementExpression(factory, node, expression, hoistVariableDeclaration, temp);\n expression = factory.createReflectSetCall(superClassReference, setterName, expression, classConstructor);\n ts.setOriginalNode(expression, node);\n ts.setTextRange(expression, node);\n if (temp) {\n expression = factory.createComma(expression, temp);\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n }\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitForStatement(node) {\n return factory.updateForStatement(node, ts.visitNode(node.initializer, discardedValueVisitor, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, discardedValueVisitor, ts.isExpression), ts.visitIterationBody(node.statement, visitor, context));\n }\n function visitExpressionStatement(node) {\n return factory.updateExpressionStatement(node, ts.visitNode(node.expression, discardedValueVisitor, ts.isExpression));\n }\n function createCopiableReceiverExpr(receiver) {\n var clone = ts.nodeIsSynthesized(receiver) ? receiver : factory.cloneNode(receiver);\n if (ts.isSimpleInlineableExpression(receiver)) {\n return { readExpression: clone, initializeExpression: undefined };\n }\n var readExpression = factory.createTempVariable(hoistVariableDeclaration);\n var initializeExpression = factory.createAssignment(readExpression, clone);\n return { readExpression: readExpression, initializeExpression: initializeExpression };\n }\n function visitCallExpression(node) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierPropertyAccessExpression(node.expression)) {\n // Transform call expressions of private names to properly bind the `this` parameter.\n var _a = factory.createCallBinding(node.expression, hoistVariableDeclaration, languageVersion), thisArg = _a.thisArg, target = _a.target;\n if (ts.isCallChain(node)) {\n return factory.updateCallChain(node, factory.createPropertyAccessChain(ts.visitNode(target, visitor), node.questionDotToken, \"call\"), \n /*questionDotToken*/ undefined, \n /*typeArguments*/ undefined, __spreadArray([ts.visitNode(thisArg, visitor, ts.isExpression)], ts.visitNodes(node.arguments, visitor, ts.isExpression), true));\n }\n return factory.updateCallExpression(node, factory.createPropertyAccessExpression(ts.visitNode(target, visitor), \"call\"), \n /*typeArguments*/ undefined, __spreadArray([ts.visitNode(thisArg, visitor, ts.isExpression)], ts.visitNodes(node.arguments, visitor, ts.isExpression), true));\n }\n if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(node.expression) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n (currentClassLexicalEnvironment === null || currentClassLexicalEnvironment === void 0 ? void 0 : currentClassLexicalEnvironment.classConstructor)) {\n // converts `super.f(...)` into `Reflect.get(_baseTemp, \"f\", _classTemp).call(_classTemp, ...)`\n var invocation = factory.createFunctionCallCall(ts.visitNode(node.expression, visitor, ts.isExpression), currentClassLexicalEnvironment.classConstructor, ts.visitNodes(node.arguments, visitor, ts.isExpression));\n ts.setOriginalNode(invocation, node);\n ts.setTextRange(invocation, node);\n return invocation;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitTaggedTemplateExpression(node) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierPropertyAccessExpression(node.tag)) {\n // Bind the `this` correctly for tagged template literals when the tag is a private identifier property access.\n var _a = factory.createCallBinding(node.tag, hoistVariableDeclaration, languageVersion), thisArg = _a.thisArg, target = _a.target;\n return factory.updateTaggedTemplateExpression(node, factory.createCallExpression(factory.createPropertyAccessExpression(ts.visitNode(target, visitor), \"bind\"), \n /*typeArguments*/ undefined, [ts.visitNode(thisArg, visitor, ts.isExpression)]), \n /*typeArguments*/ undefined, ts.visitNode(node.template, visitor, ts.isTemplateLiteral));\n }\n if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(node.tag) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n (currentClassLexicalEnvironment === null || currentClassLexicalEnvironment === void 0 ? void 0 : currentClassLexicalEnvironment.classConstructor)) {\n // converts `` super.f`x` `` into `` Reflect.get(_baseTemp, \"f\", _classTemp).bind(_classTemp)`x` ``\n var invocation = factory.createFunctionBindCall(ts.visitNode(node.tag, visitor, ts.isExpression), currentClassLexicalEnvironment.classConstructor, []);\n ts.setOriginalNode(invocation, node);\n ts.setTextRange(invocation, node);\n return factory.updateTaggedTemplateExpression(node, invocation, \n /*typeArguments*/ undefined, ts.visitNode(node.template, visitor, ts.isTemplateLiteral));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function transformClassStaticBlockDeclaration(node) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n if (currentClassLexicalEnvironment) {\n classLexicalEnvironmentMap.set(ts.getOriginalNodeId(node), currentClassLexicalEnvironment);\n }\n startLexicalEnvironment();\n var savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock;\n currentStaticPropertyDeclarationOrStaticBlock = node;\n var statements = ts.visitNodes(node.body.statements, visitor, ts.isStatement);\n statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock;\n var iife = factory.createImmediatelyInvokedArrowFunction(statements);\n ts.setOriginalNode(iife, node);\n ts.setTextRange(iife, node);\n ts.addEmitFlags(iife, 2 /* AdviseOnEmitNode */);\n return iife;\n }\n }\n function visitBinaryExpression(node, valueIsDiscarded) {\n if (ts.isDestructuringAssignment(node)) {\n var savedPendingExpressions = pendingExpressions;\n pendingExpressions = undefined;\n node = factory.updateBinaryExpression(node, ts.visitNode(node.left, visitorDestructuringTarget), node.operatorToken, ts.visitNode(node.right, visitor));\n var expr = ts.some(pendingExpressions) ?\n factory.inlineExpressions(ts.compact(__spreadArray(__spreadArray([], pendingExpressions, true), [node], false))) :\n node;\n pendingExpressions = savedPendingExpressions;\n return expr;\n }\n if (ts.isAssignmentExpression(node)) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierPropertyAccessExpression(node.left)) {\n var info = accessPrivateIdentifier(node.left.name);\n if (info) {\n return ts.setTextRange(ts.setOriginalNode(createPrivateIdentifierAssignment(info, node.left.expression, node.right, node.operatorToken.kind), node), node);\n }\n }\n else if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(node.left) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;\n if (facts & 1 /* ClassWasDecorated */) {\n return factory.updateBinaryExpression(node, visitInvalidSuperProperty(node.left), node.operatorToken, ts.visitNode(node.right, visitor, ts.isExpression));\n }\n if (classConstructor && superClassReference) {\n var setterName = ts.isElementAccessExpression(node.left) ? ts.visitNode(node.left.argumentExpression, visitor, ts.isExpression) :\n ts.isIdentifier(node.left.name) ? factory.createStringLiteralFromNode(node.left.name) :\n undefined;\n if (setterName) {\n // converts `super.x = 1` into `(Reflect.set(_baseTemp, \"x\", _a = 1, _classTemp), _a)`\n // converts `super[f()] = 1` into `(Reflect.set(_baseTemp, f(), _a = 1, _classTemp), _a)`\n // converts `super.x += 1` into `(Reflect.set(_baseTemp, \"x\", _a = Reflect.get(_baseTemp, \"x\", _classtemp) + 1, _classTemp), _a)`\n // converts `super[f()] += 1` into `(Reflect.set(_baseTemp, _a = f(), _b = Reflect.get(_baseTemp, _a, _classtemp) + 1, _classTemp), _b)`\n var expression = ts.visitNode(node.right, visitor, ts.isExpression);\n if (ts.isCompoundAssignment(node.operatorToken.kind)) {\n var getterName = setterName;\n if (!ts.isSimpleInlineableExpression(setterName)) {\n getterName = factory.createTempVariable(hoistVariableDeclaration);\n setterName = factory.createAssignment(getterName, setterName);\n }\n var superPropertyGet = factory.createReflectGetCall(superClassReference, getterName, classConstructor);\n ts.setOriginalNode(superPropertyGet, node.left);\n ts.setTextRange(superPropertyGet, node.left);\n expression = factory.createBinaryExpression(superPropertyGet, ts.getNonAssignmentOperatorForCompoundAssignment(node.operatorToken.kind), expression);\n ts.setTextRange(expression, node);\n }\n var temp = valueIsDiscarded ? undefined : factory.createTempVariable(hoistVariableDeclaration);\n if (temp) {\n expression = factory.createAssignment(temp, expression);\n ts.setTextRange(temp, node);\n }\n expression = factory.createReflectSetCall(superClassReference, setterName, expression, classConstructor);\n ts.setOriginalNode(expression, node);\n ts.setTextRange(expression, node);\n if (temp) {\n expression = factory.createComma(expression, temp);\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n }\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function createPrivateIdentifierAssignment(info, receiver, right, operator) {\n receiver = ts.visitNode(receiver, visitor, ts.isExpression);\n right = ts.visitNode(right, visitor, ts.isExpression);\n if (ts.isCompoundAssignment(operator)) {\n var _a = createCopiableReceiverExpr(receiver), readExpression = _a.readExpression, initializeExpression = _a.initializeExpression;\n receiver = initializeExpression || readExpression;\n right = factory.createBinaryExpression(createPrivateIdentifierAccessHelper(info, readExpression), ts.getNonAssignmentOperatorForCompoundAssignment(operator), right);\n }\n ts.setCommentRange(receiver, ts.moveRangePos(receiver, -1));\n switch (info.kind) {\n case \"a\" /* Accessor */:\n return context.getEmitHelperFactory().createClassPrivateFieldSetHelper(receiver, info.brandCheckIdentifier, right, info.kind, info.setterName);\n case \"m\" /* Method */:\n return context.getEmitHelperFactory().createClassPrivateFieldSetHelper(receiver, info.brandCheckIdentifier, right, info.kind, \n /* f */ undefined);\n case \"f\" /* Field */:\n return context.getEmitHelperFactory().createClassPrivateFieldSetHelper(receiver, info.brandCheckIdentifier, right, info.kind, info.variableName);\n default:\n ts.Debug.assertNever(info, \"Unknown private element type\");\n }\n }\n /**\n * Set up the environment for a class.\n */\n function visitClassLike(node) {\n if (!ts.forEach(node.members, doesClassElementNeedTransform)) {\n return ts.visitEachChild(node, visitor, context);\n }\n var savedPendingExpressions = pendingExpressions;\n pendingExpressions = undefined;\n startClassLexicalEnvironment();\n if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n var name = ts.getNameOfDeclaration(node);\n if (name && ts.isIdentifier(name)) {\n getPrivateIdentifierEnvironment().className = ts.idText(name);\n }\n var privateInstanceMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node);\n if (ts.some(privateInstanceMethodsAndAccessors)) {\n getPrivateIdentifierEnvironment().weakSetName = createHoistedVariableForClass(\"instances\", privateInstanceMethodsAndAccessors[0].name);\n }\n }\n var result = ts.isClassDeclaration(node) ?\n visitClassDeclaration(node) :\n visitClassExpression(node);\n endClassLexicalEnvironment();\n pendingExpressions = savedPendingExpressions;\n return result;\n }\n function doesClassElementNeedTransform(node) {\n return ts.isPropertyDeclaration(node) || ts.isClassStaticBlockDeclaration(node) || (shouldTransformPrivateElementsOrClassStaticBlocks && node.name && ts.isPrivateIdentifier(node.name));\n }\n function getPrivateInstanceMethodsAndAccessors(node) {\n return ts.filter(node.members, ts.isNonStaticMethodOrAccessorWithPrivateName);\n }\n function getClassFacts(node) {\n var facts = 0 /* None */;\n var original = ts.getOriginalNode(node);\n if (ts.isClassDeclaration(original) && ts.classOrConstructorParameterIsDecorated(original)) {\n facts |= 1 /* ClassWasDecorated */;\n }\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (!ts.isStatic(member))\n continue;\n if (member.name && ts.isPrivateIdentifier(member.name) && shouldTransformPrivateElementsOrClassStaticBlocks) {\n facts |= 2 /* NeedsClassConstructorReference */;\n }\n if (ts.isPropertyDeclaration(member) || ts.isClassStaticBlockDeclaration(member)) {\n if (shouldTransformThisInStaticInitializers && member.transformFlags & 8192 /* ContainsLexicalThis */) {\n facts |= 8 /* NeedsSubstitutionForThisInClassStaticField */;\n if (!(facts & 1 /* ClassWasDecorated */)) {\n facts |= 2 /* NeedsClassConstructorReference */;\n }\n }\n if (shouldTransformSuperInStaticInitializers && member.transformFlags & 33554432 /* ContainsLexicalSuper */) {\n if (!(facts & 1 /* ClassWasDecorated */)) {\n facts |= 2 /* NeedsClassConstructorReference */ | 4 /* NeedsClassSuperReference */;\n }\n }\n }\n }\n return facts;\n }\n function visitExpressionWithTypeArguments(node) {\n var facts = (currentClassLexicalEnvironment === null || currentClassLexicalEnvironment === void 0 ? void 0 : currentClassLexicalEnvironment.facts) || 0 /* None */;\n if (facts & 4 /* NeedsClassSuperReference */) {\n var temp = factory.createTempVariable(hoistVariableDeclaration, /*reserveInNestedScopes*/ true);\n getClassLexicalEnvironment().superClassReference = temp;\n return factory.updateExpressionWithTypeArguments(node, factory.createAssignment(temp, ts.visitNode(node.expression, visitor, ts.isExpression)), \n /*typeArguments*/ undefined);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitClassDeclaration(node) {\n var facts = getClassFacts(node);\n if (facts) {\n getClassLexicalEnvironment().facts = facts;\n }\n if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) {\n enableSubstitutionForClassStaticThisOrSuperReference();\n }\n var staticProperties = ts.getStaticPropertiesAndClassStaticBlock(node);\n // If a class has private static fields, or a static field has a `this` or `super` reference,\n // then we need to allocate a temp variable to hold on to that reference.\n var pendingClassReferenceAssignment;\n if (facts & 2 /* NeedsClassConstructorReference */) {\n var temp = factory.createTempVariable(hoistVariableDeclaration, /*reservedInNestedScopes*/ true);\n getClassLexicalEnvironment().classConstructor = factory.cloneNode(temp);\n pendingClassReferenceAssignment = factory.createAssignment(temp, factory.getInternalName(node));\n }\n var extendsClauseElement = ts.getEffectiveBaseTypeNode(node);\n var isDerivedClass = !!(extendsClauseElement && ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 104 /* NullKeyword */);\n var statements = [\n factory.updateClassDeclaration(node, \n /*decorators*/ undefined, node.modifiers, node.name, \n /*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, heritageClauseVisitor, ts.isHeritageClause), transformClassMembers(node, isDerivedClass))\n ];\n if (pendingClassReferenceAssignment) {\n getPendingExpressions().unshift(pendingClassReferenceAssignment);\n }\n // Write any pending expressions from elided or moved computed property names\n if (ts.some(pendingExpressions)) {\n statements.push(factory.createExpressionStatement(factory.inlineExpressions(pendingExpressions)));\n }\n // Emit static property assignment. Because classDeclaration is lexically evaluated,\n // it is safe to emit static property assignment after classDeclaration\n // From ES6 specification:\n // HasLexicalDeclaration (N) : Determines if the argument identifier has a binding in this environment record that was created using\n // a lexical declaration such as a LexicalDeclaration or a ClassDeclaration.\n if (ts.some(staticProperties)) {\n addPropertyOrClassStaticBlockStatements(statements, staticProperties, factory.getInternalName(node));\n }\n return statements;\n }\n function visitClassExpression(node) {\n var facts = getClassFacts(node);\n if (facts) {\n getClassLexicalEnvironment().facts = facts;\n }\n if (facts & 8 /* NeedsSubstitutionForThisInClassStaticField */) {\n enableSubstitutionForClassStaticThisOrSuperReference();\n }\n // If this class expression is a transformation of a decorated class declaration,\n // then we want to output the pendingExpressions as statements, not as inlined\n // expressions with the class statement.\n //\n // In this case, we use pendingStatements to produce the same output as the\n // class declaration transformation. The VariableStatement visitor will insert\n // these statements after the class expression variable statement.\n var isDecoratedClassDeclaration = !!(facts & 1 /* ClassWasDecorated */);\n var staticPropertiesOrClassStaticBlocks = ts.getStaticPropertiesAndClassStaticBlock(node);\n var extendsClauseElement = ts.getEffectiveBaseTypeNode(node);\n var isDerivedClass = !!(extendsClauseElement && ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 104 /* NullKeyword */);\n var isClassWithConstructorReference = resolver.getNodeCheckFlags(node) & 16777216 /* ClassWithConstructorReference */;\n var temp;\n function createClassTempVar() {\n var classCheckFlags = resolver.getNodeCheckFlags(node);\n var isClassWithConstructorReference = classCheckFlags & 16777216 /* ClassWithConstructorReference */;\n var requiresBlockScopedVar = classCheckFlags & 524288 /* BlockScopedBindingInLoop */;\n return factory.createTempVariable(requiresBlockScopedVar ? addBlockScopedVariable : hoistVariableDeclaration, !!isClassWithConstructorReference);\n }\n if (facts & 2 /* NeedsClassConstructorReference */) {\n temp = createClassTempVar();\n getClassLexicalEnvironment().classConstructor = factory.cloneNode(temp);\n }\n var classExpression = factory.updateClassExpression(node, ts.visitNodes(node.decorators, visitor, ts.isDecorator), node.modifiers, node.name, \n /*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, heritageClauseVisitor, ts.isHeritageClause), transformClassMembers(node, isDerivedClass));\n var hasTransformableStatics = ts.some(staticPropertiesOrClassStaticBlocks, function (p) { return ts.isClassStaticBlockDeclaration(p) || !!p.initializer || (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifier(p.name)); });\n if (hasTransformableStatics || ts.some(pendingExpressions)) {\n if (isDecoratedClassDeclaration) {\n ts.Debug.assertIsDefined(pendingStatements, \"Decorated classes transformed by TypeScript are expected to be within a variable declaration.\");\n // Write any pending expressions from elided or moved computed property names\n if (pendingStatements && pendingExpressions && ts.some(pendingExpressions)) {\n pendingStatements.push(factory.createExpressionStatement(factory.inlineExpressions(pendingExpressions)));\n }\n if (pendingStatements && ts.some(staticPropertiesOrClassStaticBlocks)) {\n addPropertyOrClassStaticBlockStatements(pendingStatements, staticPropertiesOrClassStaticBlocks, factory.getInternalName(node));\n }\n if (temp) {\n return factory.inlineExpressions([factory.createAssignment(temp, classExpression), temp]);\n }\n return classExpression;\n }\n else {\n var expressions = [];\n temp || (temp = createClassTempVar());\n if (isClassWithConstructorReference) {\n // record an alias as the class name is not in scope for statics.\n enableSubstitutionForClassAliases();\n var alias = factory.cloneNode(temp);\n alias.autoGenerateFlags &= ~8 /* ReservedInNestedScopes */;\n classAliases[ts.getOriginalNodeId(node)] = alias;\n }\n // To preserve the behavior of the old emitter, we explicitly indent\n // the body of a class with static initializers.\n ts.setEmitFlags(classExpression, 65536 /* Indented */ | ts.getEmitFlags(classExpression));\n expressions.push(ts.startOnNewLine(factory.createAssignment(temp, classExpression)));\n // Add any pending expressions leftover from elided or relocated computed property names\n ts.addRange(expressions, ts.map(pendingExpressions, ts.startOnNewLine));\n ts.addRange(expressions, generateInitializedPropertyExpressionsOrClassStaticBlock(staticPropertiesOrClassStaticBlocks, temp));\n expressions.push(ts.startOnNewLine(temp));\n return factory.inlineExpressions(expressions);\n }\n }\n return classExpression;\n }\n function visitClassStaticBlockDeclaration(node) {\n if (!shouldTransformPrivateElementsOrClassStaticBlocks) {\n return ts.visitEachChild(node, classElementVisitor, context);\n }\n // ClassStaticBlockDeclaration for classes are transformed in `visitClassDeclaration` or `visitClassExpression`.\n return undefined;\n }\n function transformClassMembers(node, isDerivedClass) {\n if (shouldTransformPrivateElementsOrClassStaticBlocks) {\n // Declare private names.\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (ts.isPrivateIdentifierClassElementDeclaration(member)) {\n addPrivateIdentifierToEnvironment(member);\n }\n }\n if (ts.some(getPrivateInstanceMethodsAndAccessors(node))) {\n createBrandCheckWeakSetForPrivateMethods();\n }\n }\n var members = [];\n var constructor = transformConstructor(node, isDerivedClass);\n if (constructor) {\n members.push(constructor);\n }\n ts.addRange(members, ts.visitNodes(node.members, classElementVisitor, ts.isClassElement));\n return ts.setTextRange(factory.createNodeArray(members), /*location*/ node.members);\n }\n function createBrandCheckWeakSetForPrivateMethods() {\n var weakSetName = getPrivateIdentifierEnvironment().weakSetName;\n ts.Debug.assert(weakSetName, \"weakSetName should be set in private identifier environment\");\n getPendingExpressions().push(factory.createAssignment(weakSetName, factory.createNewExpression(factory.createIdentifier(\"WeakSet\"), \n /*typeArguments*/ undefined, [])));\n }\n function isClassElementThatRequiresConstructorStatement(member) {\n if (ts.isStatic(member) || ts.hasSyntacticModifier(ts.getOriginalNode(member), 128 /* Abstract */)) {\n return false;\n }\n if (useDefineForClassFields) {\n // If we are using define semantics and targeting ESNext or higher,\n // then we don't need to transform any class properties.\n return languageVersion < 99 /* ESNext */;\n }\n return ts.isInitializedProperty(member) || shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifierClassElementDeclaration(member);\n }\n function transformConstructor(node, isDerivedClass) {\n var constructor = ts.visitNode(ts.getFirstConstructorWithBody(node), visitor, ts.isConstructorDeclaration);\n var elements = node.members.filter(isClassElementThatRequiresConstructorStatement);\n if (!ts.some(elements)) {\n return constructor;\n }\n var parameters = ts.visitParameterList(constructor ? constructor.parameters : undefined, visitor, context);\n var body = transformConstructorBody(node, constructor, isDerivedClass);\n if (!body) {\n return undefined;\n }\n return ts.startOnNewLine(ts.setOriginalNode(ts.setTextRange(factory.createConstructorDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, parameters !== null && parameters !== void 0 ? parameters : [], body), constructor || node), constructor));\n }\n function transformConstructorBody(node, constructor, isDerivedClass) {\n var properties = ts.getProperties(node, /*requireInitializer*/ false, /*isStatic*/ false);\n if (!useDefineForClassFields) {\n properties = ts.filter(properties, function (property) { return !!property.initializer || ts.isPrivateIdentifier(property.name); });\n }\n var privateMethodsAndAccessors = getPrivateInstanceMethodsAndAccessors(node);\n var needsConstructorBody = ts.some(properties) || ts.some(privateMethodsAndAccessors);\n // Only generate synthetic constructor when there are property initializers to move.\n if (!constructor && !needsConstructorBody) {\n return ts.visitFunctionBody(/*node*/ undefined, visitor, context);\n }\n resumeLexicalEnvironment();\n var indexOfFirstStatement = 0;\n var statements = [];\n if (!constructor && isDerivedClass) {\n // Add a synthetic `super` call:\n //\n // super(...arguments);\n //\n statements.push(factory.createExpressionStatement(factory.createCallExpression(factory.createSuper(), \n /*typeArguments*/ undefined, [factory.createSpreadElement(factory.createIdentifier(\"arguments\"))])));\n }\n if (constructor) {\n indexOfFirstStatement = ts.addPrologueDirectivesAndInitialSuperCall(factory, constructor, statements, visitor);\n }\n // Add the property initializers. Transforms this:\n //\n // public x = 1;\n //\n // Into this:\n //\n // constructor() {\n // this.x = 1;\n // }\n //\n if (constructor === null || constructor === void 0 ? void 0 : constructor.body) {\n var afterParameterProperties = ts.findIndex(constructor.body.statements, function (s) { return !ts.isParameterPropertyDeclaration(ts.getOriginalNode(s), constructor); }, indexOfFirstStatement);\n if (afterParameterProperties === -1) {\n afterParameterProperties = constructor.body.statements.length;\n }\n if (afterParameterProperties > indexOfFirstStatement) {\n if (!useDefineForClassFields) {\n ts.addRange(statements, ts.visitNodes(constructor.body.statements, visitor, ts.isStatement, indexOfFirstStatement, afterParameterProperties - indexOfFirstStatement));\n }\n indexOfFirstStatement = afterParameterProperties;\n }\n }\n var receiver = factory.createThis();\n // private methods can be called in property initializers, they should execute first.\n addMethodStatements(statements, privateMethodsAndAccessors, receiver);\n addPropertyOrClassStaticBlockStatements(statements, properties, receiver);\n // Add existing statements, skipping the initial super call.\n if (constructor) {\n ts.addRange(statements, ts.visitNodes(constructor.body.statements, visitor, ts.isStatement, indexOfFirstStatement));\n }\n statements = factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n return ts.setTextRange(factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), \n /*location*/ constructor ? constructor.body.statements : node.members), \n /*multiLine*/ true), \n /*location*/ constructor ? constructor.body : undefined);\n }\n /**\n * Generates assignment statements for property initializers.\n *\n * @param properties An array of property declarations to transform.\n * @param receiver The receiver on which each property should be assigned.\n */\n function addPropertyOrClassStaticBlockStatements(statements, properties, receiver) {\n for (var _i = 0, properties_7 = properties; _i < properties_7.length; _i++) {\n var property = properties_7[_i];\n var expression = ts.isClassStaticBlockDeclaration(property) ?\n transformClassStaticBlockDeclaration(property) :\n transformProperty(property, receiver);\n if (!expression) {\n continue;\n }\n var statement = factory.createExpressionStatement(expression);\n ts.setSourceMapRange(statement, ts.moveRangePastModifiers(property));\n ts.setCommentRange(statement, property);\n ts.setOriginalNode(statement, property);\n statements.push(statement);\n }\n }\n /**\n * Generates assignment expressions for property initializers.\n *\n * @param propertiesOrClassStaticBlocks An array of property declarations to transform.\n * @param receiver The receiver on which each property should be assigned.\n */\n function generateInitializedPropertyExpressionsOrClassStaticBlock(propertiesOrClassStaticBlocks, receiver) {\n var expressions = [];\n for (var _i = 0, propertiesOrClassStaticBlocks_1 = propertiesOrClassStaticBlocks; _i < propertiesOrClassStaticBlocks_1.length; _i++) {\n var property = propertiesOrClassStaticBlocks_1[_i];\n var expression = ts.isClassStaticBlockDeclaration(property) ? transformClassStaticBlockDeclaration(property) : transformProperty(property, receiver);\n if (!expression) {\n continue;\n }\n ts.startOnNewLine(expression);\n ts.setSourceMapRange(expression, ts.moveRangePastModifiers(property));\n ts.setCommentRange(expression, property);\n ts.setOriginalNode(expression, property);\n expressions.push(expression);\n }\n return expressions;\n }\n /**\n * Transforms a property initializer into an assignment statement.\n *\n * @param property The property declaration.\n * @param receiver The object receiving the property assignment.\n */\n function transformProperty(property, receiver) {\n var savedCurrentStaticPropertyDeclarationOrStaticBlock = currentStaticPropertyDeclarationOrStaticBlock;\n var transformed = transformPropertyWorker(property, receiver);\n if (transformed && ts.hasStaticModifier(property) && (currentClassLexicalEnvironment === null || currentClassLexicalEnvironment === void 0 ? void 0 : currentClassLexicalEnvironment.facts)) {\n // capture the lexical environment for the member\n ts.setOriginalNode(transformed, property);\n ts.addEmitFlags(transformed, 2 /* AdviseOnEmitNode */);\n classLexicalEnvironmentMap.set(ts.getOriginalNodeId(transformed), currentClassLexicalEnvironment);\n }\n currentStaticPropertyDeclarationOrStaticBlock = savedCurrentStaticPropertyDeclarationOrStaticBlock;\n return transformed;\n }\n function transformPropertyWorker(property, receiver) {\n var _a;\n // We generate a name here in order to reuse the value cached by the relocated computed name expression (which uses the same generated name)\n var emitAssignment = !useDefineForClassFields;\n var propertyName = ts.isComputedPropertyName(property.name) && !ts.isSimpleInlineableExpression(property.name.expression)\n ? factory.updateComputedPropertyName(property.name, factory.getGeneratedNameForNode(property.name))\n : property.name;\n if (ts.hasStaticModifier(property)) {\n currentStaticPropertyDeclarationOrStaticBlock = property;\n }\n if (shouldTransformPrivateElementsOrClassStaticBlocks && ts.isPrivateIdentifier(propertyName)) {\n var privateIdentifierInfo = accessPrivateIdentifier(propertyName);\n if (privateIdentifierInfo) {\n if (privateIdentifierInfo.kind === \"f\" /* Field */) {\n if (!privateIdentifierInfo.isStatic) {\n return createPrivateInstanceFieldInitializer(receiver, ts.visitNode(property.initializer, visitor, ts.isExpression), privateIdentifierInfo.brandCheckIdentifier);\n }\n else {\n return createPrivateStaticFieldInitializer(privateIdentifierInfo.variableName, ts.visitNode(property.initializer, visitor, ts.isExpression));\n }\n }\n else {\n return undefined;\n }\n }\n else {\n ts.Debug.fail(\"Undeclared private name for property declaration.\");\n }\n }\n if ((ts.isPrivateIdentifier(propertyName) || ts.hasStaticModifier(property)) && !property.initializer) {\n return undefined;\n }\n var propertyOriginalNode = ts.getOriginalNode(property);\n if (ts.hasSyntacticModifier(propertyOriginalNode, 128 /* Abstract */)) {\n return undefined;\n }\n var initializer = property.initializer || emitAssignment ? (_a = ts.visitNode(property.initializer, visitor, ts.isExpression)) !== null && _a !== void 0 ? _a : factory.createVoidZero()\n : ts.isParameterPropertyDeclaration(propertyOriginalNode, propertyOriginalNode.parent) && ts.isIdentifier(propertyName) ? propertyName\n : factory.createVoidZero();\n if (emitAssignment || ts.isPrivateIdentifier(propertyName)) {\n var memberAccess = ts.createMemberAccessForPropertyName(factory, receiver, propertyName, /*location*/ propertyName);\n return factory.createAssignment(memberAccess, initializer);\n }\n else {\n var name = ts.isComputedPropertyName(propertyName) ? propertyName.expression\n : ts.isIdentifier(propertyName) ? factory.createStringLiteral(ts.unescapeLeadingUnderscores(propertyName.escapedText))\n : propertyName;\n var descriptor = factory.createPropertyDescriptor({ value: initializer, configurable: true, writable: true, enumerable: true });\n return factory.createObjectDefinePropertyCall(receiver, name, descriptor);\n }\n }\n function enableSubstitutionForClassAliases() {\n if ((enabledSubstitutions & 1 /* ClassAliases */) === 0) {\n enabledSubstitutions |= 1 /* ClassAliases */;\n // We need to enable substitutions for identifiers. This allows us to\n // substitute class names inside of a class declaration.\n context.enableSubstitution(79 /* Identifier */);\n // Keep track of class aliases.\n classAliases = [];\n }\n }\n function enableSubstitutionForClassStaticThisOrSuperReference() {\n if ((enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */) === 0) {\n enabledSubstitutions |= 2 /* ClassStaticThisOrSuperReference */;\n // substitute `this` in a static field initializer\n context.enableSubstitution(108 /* ThisKeyword */);\n // these push a new lexical environment that is not the class lexical environment\n context.enableEmitNotification(254 /* FunctionDeclaration */);\n context.enableEmitNotification(211 /* FunctionExpression */);\n context.enableEmitNotification(169 /* Constructor */);\n // these push a new lexical environment that is not the class lexical environment, except\n // when they have a computed property name\n context.enableEmitNotification(170 /* GetAccessor */);\n context.enableEmitNotification(171 /* SetAccessor */);\n context.enableEmitNotification(167 /* MethodDeclaration */);\n context.enableEmitNotification(165 /* PropertyDeclaration */);\n // class lexical environments are restored when entering a computed property name\n context.enableEmitNotification(160 /* ComputedPropertyName */);\n }\n }\n /**\n * Generates brand-check initializer for private methods.\n *\n * @param statements Statement list that should be used to append new statements.\n * @param methods An array of method declarations.\n * @param receiver The receiver on which each method should be assigned.\n */\n function addMethodStatements(statements, methods, receiver) {\n if (!shouldTransformPrivateElementsOrClassStaticBlocks || !ts.some(methods)) {\n return;\n }\n var weakSetName = getPrivateIdentifierEnvironment().weakSetName;\n ts.Debug.assert(weakSetName, \"weakSetName should be set in private identifier environment\");\n statements.push(factory.createExpressionStatement(createPrivateInstanceMethodInitializer(receiver, weakSetName)));\n }\n function visitInvalidSuperProperty(node) {\n return ts.isPropertyAccessExpression(node) ?\n factory.updatePropertyAccessExpression(node, factory.createVoidZero(), node.name) :\n factory.updateElementAccessExpression(node, factory.createVoidZero(), ts.visitNode(node.argumentExpression, visitor, ts.isExpression));\n }\n function onEmitNode(hint, node, emitCallback) {\n var original = ts.getOriginalNode(node);\n if (original.id) {\n var classLexicalEnvironment = classLexicalEnvironmentMap.get(original.id);\n if (classLexicalEnvironment) {\n var savedClassLexicalEnvironment = currentClassLexicalEnvironment;\n var savedCurrentComputedPropertyNameClassLexicalEnvironment = currentComputedPropertyNameClassLexicalEnvironment;\n currentClassLexicalEnvironment = classLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = classLexicalEnvironment;\n previousOnEmitNode(hint, node, emitCallback);\n currentClassLexicalEnvironment = savedClassLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = savedCurrentComputedPropertyNameClassLexicalEnvironment;\n return;\n }\n }\n switch (node.kind) {\n case 211 /* FunctionExpression */:\n if (ts.isArrowFunction(original) || ts.getEmitFlags(node) & 262144 /* AsyncFunctionBody */) {\n break;\n }\n // falls through\n case 254 /* FunctionDeclaration */:\n case 169 /* Constructor */: {\n var savedClassLexicalEnvironment = currentClassLexicalEnvironment;\n var savedCurrentComputedPropertyNameClassLexicalEnvironment = currentComputedPropertyNameClassLexicalEnvironment;\n currentClassLexicalEnvironment = undefined;\n currentComputedPropertyNameClassLexicalEnvironment = undefined;\n previousOnEmitNode(hint, node, emitCallback);\n currentClassLexicalEnvironment = savedClassLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = savedCurrentComputedPropertyNameClassLexicalEnvironment;\n return;\n }\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n case 165 /* PropertyDeclaration */: {\n var savedClassLexicalEnvironment = currentClassLexicalEnvironment;\n var savedCurrentComputedPropertyNameClassLexicalEnvironment = currentComputedPropertyNameClassLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = currentClassLexicalEnvironment;\n currentClassLexicalEnvironment = undefined;\n previousOnEmitNode(hint, node, emitCallback);\n currentClassLexicalEnvironment = savedClassLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = savedCurrentComputedPropertyNameClassLexicalEnvironment;\n return;\n }\n case 160 /* ComputedPropertyName */: {\n var savedClassLexicalEnvironment = currentClassLexicalEnvironment;\n var savedCurrentComputedPropertyNameClassLexicalEnvironment = currentComputedPropertyNameClassLexicalEnvironment;\n currentClassLexicalEnvironment = currentComputedPropertyNameClassLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = undefined;\n previousOnEmitNode(hint, node, emitCallback);\n currentClassLexicalEnvironment = savedClassLexicalEnvironment;\n currentComputedPropertyNameClassLexicalEnvironment = savedCurrentComputedPropertyNameClassLexicalEnvironment;\n return;\n }\n }\n previousOnEmitNode(hint, node, emitCallback);\n }\n /**\n * Hooks node substitutions.\n *\n * @param hint The context for the emitter.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (hint === 1 /* Expression */) {\n return substituteExpression(node);\n }\n return node;\n }\n function substituteExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return substituteExpressionIdentifier(node);\n case 108 /* ThisKeyword */:\n return substituteThisExpression(node);\n }\n return node;\n }\n function substituteThisExpression(node) {\n if (enabledSubstitutions & 2 /* ClassStaticThisOrSuperReference */ && currentClassLexicalEnvironment) {\n var facts = currentClassLexicalEnvironment.facts, classConstructor = currentClassLexicalEnvironment.classConstructor;\n if (facts & 1 /* ClassWasDecorated */) {\n return factory.createParenthesizedExpression(factory.createVoidZero());\n }\n if (classConstructor) {\n return ts.setTextRange(ts.setOriginalNode(factory.cloneNode(classConstructor), node), node);\n }\n }\n return node;\n }\n function substituteExpressionIdentifier(node) {\n return trySubstituteClassAlias(node) || node;\n }\n function trySubstituteClassAlias(node) {\n if (enabledSubstitutions & 1 /* ClassAliases */) {\n if (resolver.getNodeCheckFlags(node) & 33554432 /* ConstructorReferenceInClass */) {\n // Due to the emit for class decorators, any reference to the class from inside of the class body\n // must instead be rewritten to point to a temporary variable to avoid issues with the double-bind\n // behavior of class names in ES6.\n // Also, when emitting statics for class expressions, we must substitute a class alias for\n // constructor references in static property initializers.\n var declaration = resolver.getReferencedValueDeclaration(node);\n if (declaration) {\n var classAlias = classAliases[declaration.id]; // TODO: GH#18217\n if (classAlias) {\n var clone_3 = factory.cloneNode(classAlias);\n ts.setSourceMapRange(clone_3, node);\n ts.setCommentRange(clone_3, node);\n return clone_3;\n }\n }\n }\n }\n return undefined;\n }\n /**\n * If the name is a computed property, this function transforms it, then either returns an expression which caches the\n * value of the result or the expression itself if the value is either unused or safe to inline into multiple locations\n * @param shouldHoist Does the expression need to be reused? (ie, for an initializer or a decorator)\n */\n function getPropertyNameExpressionIfNeeded(name, shouldHoist) {\n if (ts.isComputedPropertyName(name)) {\n var expression = ts.visitNode(name.expression, visitor, ts.isExpression);\n var innerExpression = ts.skipPartiallyEmittedExpressions(expression);\n var inlinable = ts.isSimpleInlineableExpression(innerExpression);\n var alreadyTransformed = ts.isAssignmentExpression(innerExpression) && ts.isGeneratedIdentifier(innerExpression.left);\n if (!alreadyTransformed && !inlinable && shouldHoist) {\n var generatedName = factory.getGeneratedNameForNode(name);\n if (resolver.getNodeCheckFlags(name) & 524288 /* BlockScopedBindingInLoop */) {\n addBlockScopedVariable(generatedName);\n }\n else {\n hoistVariableDeclaration(generatedName);\n }\n return factory.createAssignment(generatedName, expression);\n }\n return (inlinable || ts.isIdentifier(innerExpression)) ? undefined : expression;\n }\n }\n function startClassLexicalEnvironment() {\n classLexicalEnvironmentStack.push(currentClassLexicalEnvironment);\n currentClassLexicalEnvironment = undefined;\n }\n function endClassLexicalEnvironment() {\n currentClassLexicalEnvironment = classLexicalEnvironmentStack.pop();\n }\n function getClassLexicalEnvironment() {\n return currentClassLexicalEnvironment || (currentClassLexicalEnvironment = {\n facts: 0 /* None */,\n classConstructor: undefined,\n superClassReference: undefined,\n privateIdentifierEnvironment: undefined,\n });\n }\n function getPrivateIdentifierEnvironment() {\n var lex = getClassLexicalEnvironment();\n lex.privateIdentifierEnvironment || (lex.privateIdentifierEnvironment = {\n className: \"\",\n identifiers: new ts.Map()\n });\n return lex.privateIdentifierEnvironment;\n }\n function getPendingExpressions() {\n return pendingExpressions || (pendingExpressions = []);\n }\n function addPrivateIdentifierToEnvironment(node) {\n var _a;\n var text = ts.getTextOfPropertyName(node.name);\n var lex = getClassLexicalEnvironment();\n var classConstructor = lex.classConstructor;\n var privateEnv = getPrivateIdentifierEnvironment();\n var weakSetName = privateEnv.weakSetName;\n var assignmentExpressions = [];\n var privateName = node.name.escapedText;\n var previousInfo = privateEnv.identifiers.get(privateName);\n var isValid = !isReservedPrivateName(node.name) && previousInfo === undefined;\n if (ts.hasStaticModifier(node)) {\n ts.Debug.assert(classConstructor, \"weakSetName should be set in private identifier environment\");\n if (ts.isPropertyDeclaration(node)) {\n var variableName = createHoistedVariableForPrivateName(text, node);\n privateEnv.identifiers.set(privateName, {\n kind: \"f\" /* Field */,\n variableName: variableName,\n brandCheckIdentifier: classConstructor,\n isStatic: true,\n isValid: isValid,\n });\n }\n else if (ts.isMethodDeclaration(node)) {\n var functionName = createHoistedVariableForPrivateName(text, node);\n privateEnv.identifiers.set(privateName, {\n kind: \"m\" /* Method */,\n methodName: functionName,\n brandCheckIdentifier: classConstructor,\n isStatic: true,\n isValid: isValid,\n });\n }\n else if (ts.isGetAccessorDeclaration(node)) {\n var getterName = createHoistedVariableForPrivateName(text + \"_get\", node);\n if ((previousInfo === null || previousInfo === void 0 ? void 0 : previousInfo.kind) === \"a\" /* Accessor */ && previousInfo.isStatic && !previousInfo.getterName) {\n previousInfo.getterName = getterName;\n }\n else {\n privateEnv.identifiers.set(privateName, {\n kind: \"a\" /* Accessor */,\n getterName: getterName,\n setterName: undefined,\n brandCheckIdentifier: classConstructor,\n isStatic: true,\n isValid: isValid,\n });\n }\n }\n else if (ts.isSetAccessorDeclaration(node)) {\n var setterName = createHoistedVariableForPrivateName(text + \"_set\", node);\n if ((previousInfo === null || previousInfo === void 0 ? void 0 : previousInfo.kind) === \"a\" /* Accessor */ && previousInfo.isStatic && !previousInfo.setterName) {\n previousInfo.setterName = setterName;\n }\n else {\n privateEnv.identifiers.set(privateName, {\n kind: \"a\" /* Accessor */,\n getterName: undefined,\n setterName: setterName,\n brandCheckIdentifier: classConstructor,\n isStatic: true,\n isValid: isValid,\n });\n }\n }\n else {\n ts.Debug.assertNever(node, \"Unknown class element type.\");\n }\n }\n else if (ts.isPropertyDeclaration(node)) {\n var weakMapName = createHoistedVariableForPrivateName(text, node);\n privateEnv.identifiers.set(privateName, {\n kind: \"f\" /* Field */,\n brandCheckIdentifier: weakMapName,\n isStatic: false,\n variableName: undefined,\n isValid: isValid,\n });\n assignmentExpressions.push(factory.createAssignment(weakMapName, factory.createNewExpression(factory.createIdentifier(\"WeakMap\"), \n /*typeArguments*/ undefined, [])));\n }\n else if (ts.isMethodDeclaration(node)) {\n ts.Debug.assert(weakSetName, \"weakSetName should be set in private identifier environment\");\n privateEnv.identifiers.set(privateName, {\n kind: \"m\" /* Method */,\n methodName: createHoistedVariableForPrivateName(text, node),\n brandCheckIdentifier: weakSetName,\n isStatic: false,\n isValid: isValid,\n });\n }\n else if (ts.isAccessor(node)) {\n ts.Debug.assert(weakSetName, \"weakSetName should be set in private identifier environment\");\n if (ts.isGetAccessor(node)) {\n var getterName = createHoistedVariableForPrivateName(text + \"_get\", node);\n if ((previousInfo === null || previousInfo === void 0 ? void 0 : previousInfo.kind) === \"a\" /* Accessor */ && !previousInfo.isStatic && !previousInfo.getterName) {\n previousInfo.getterName = getterName;\n }\n else {\n privateEnv.identifiers.set(privateName, {\n kind: \"a\" /* Accessor */,\n getterName: getterName,\n setterName: undefined,\n brandCheckIdentifier: weakSetName,\n isStatic: false,\n isValid: isValid,\n });\n }\n }\n else {\n var setterName = createHoistedVariableForPrivateName(text + \"_set\", node);\n if ((previousInfo === null || previousInfo === void 0 ? void 0 : previousInfo.kind) === \"a\" /* Accessor */ && !previousInfo.isStatic && !previousInfo.setterName) {\n previousInfo.setterName = setterName;\n }\n else {\n privateEnv.identifiers.set(privateName, {\n kind: \"a\" /* Accessor */,\n getterName: undefined,\n setterName: setterName,\n brandCheckIdentifier: weakSetName,\n isStatic: false,\n isValid: isValid,\n });\n }\n }\n }\n else {\n ts.Debug.assertNever(node, \"Unknown class element type.\");\n }\n (_a = getPendingExpressions()).push.apply(_a, assignmentExpressions);\n }\n function createHoistedVariableForClass(name, node) {\n var className = getPrivateIdentifierEnvironment().className;\n var prefix = className ? \"_\" + className : \"\";\n var identifier = factory.createUniqueName(prefix + \"_\" + name, 16 /* Optimistic */);\n if (resolver.getNodeCheckFlags(node) & 524288 /* BlockScopedBindingInLoop */) {\n addBlockScopedVariable(identifier);\n }\n else {\n hoistVariableDeclaration(identifier);\n }\n return identifier;\n }\n function createHoistedVariableForPrivateName(privateName, node) {\n return createHoistedVariableForClass(privateName.substring(1), node.name);\n }\n function accessPrivateIdentifier(name) {\n var _a;\n if (currentClassLexicalEnvironment === null || currentClassLexicalEnvironment === void 0 ? void 0 : currentClassLexicalEnvironment.privateIdentifierEnvironment) {\n var info = currentClassLexicalEnvironment.privateIdentifierEnvironment.identifiers.get(name.escapedText);\n if (info) {\n return info;\n }\n }\n for (var i = classLexicalEnvironmentStack.length - 1; i >= 0; --i) {\n var env = classLexicalEnvironmentStack[i];\n if (!env) {\n continue;\n }\n var info = (_a = env.privateIdentifierEnvironment) === null || _a === void 0 ? void 0 : _a.identifiers.get(name.escapedText);\n if (info) {\n return info;\n }\n }\n return undefined;\n }\n function wrapPrivateIdentifierForDestructuringTarget(node) {\n var parameter = factory.getGeneratedNameForNode(node);\n var info = accessPrivateIdentifier(node.name);\n if (!info) {\n return ts.visitEachChild(node, visitor, context);\n }\n var receiver = node.expression;\n // We cannot copy `this` or `super` into the function because they will be bound\n // differently inside the function.\n if (ts.isThisProperty(node) || ts.isSuperProperty(node) || !ts.isSimpleCopiableExpression(node.expression)) {\n receiver = factory.createTempVariable(hoistVariableDeclaration, /*reservedInNestedScopes*/ true);\n getPendingExpressions().push(factory.createBinaryExpression(receiver, 63 /* EqualsToken */, ts.visitNode(node.expression, visitor, ts.isExpression)));\n }\n return factory.createAssignmentTargetWrapper(parameter, createPrivateIdentifierAssignment(info, receiver, parameter, 63 /* EqualsToken */));\n }\n function visitArrayAssignmentTarget(node) {\n var target = ts.getTargetOfBindingOrAssignmentElement(node);\n if (target) {\n var wrapped = void 0;\n if (ts.isPrivateIdentifierPropertyAccessExpression(target)) {\n wrapped = wrapPrivateIdentifierForDestructuringTarget(target);\n }\n else if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(target) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;\n if (facts & 1 /* ClassWasDecorated */) {\n wrapped = visitInvalidSuperProperty(target);\n }\n else if (classConstructor && superClassReference) {\n var name = ts.isElementAccessExpression(target) ? ts.visitNode(target.argumentExpression, visitor, ts.isExpression) :\n ts.isIdentifier(target.name) ? factory.createStringLiteralFromNode(target.name) :\n undefined;\n if (name) {\n var temp = factory.createTempVariable(/*recordTempVariable*/ undefined);\n wrapped = factory.createAssignmentTargetWrapper(temp, factory.createReflectSetCall(superClassReference, name, temp, classConstructor));\n }\n }\n }\n if (wrapped) {\n if (ts.isAssignmentExpression(node)) {\n return factory.updateBinaryExpression(node, wrapped, node.operatorToken, ts.visitNode(node.right, visitor, ts.isExpression));\n }\n else if (ts.isSpreadElement(node)) {\n return factory.updateSpreadElement(node, wrapped);\n }\n else {\n return wrapped;\n }\n }\n }\n return ts.visitNode(node, visitorDestructuringTarget);\n }\n function visitObjectAssignmentTarget(node) {\n if (ts.isObjectBindingOrAssignmentElement(node) && !ts.isShorthandPropertyAssignment(node)) {\n var target = ts.getTargetOfBindingOrAssignmentElement(node);\n var wrapped = void 0;\n if (target) {\n if (ts.isPrivateIdentifierPropertyAccessExpression(target)) {\n wrapped = wrapPrivateIdentifierForDestructuringTarget(target);\n }\n else if (shouldTransformSuperInStaticInitializers &&\n ts.isSuperProperty(target) &&\n currentStaticPropertyDeclarationOrStaticBlock &&\n currentClassLexicalEnvironment) {\n var classConstructor = currentClassLexicalEnvironment.classConstructor, superClassReference = currentClassLexicalEnvironment.superClassReference, facts = currentClassLexicalEnvironment.facts;\n if (facts & 1 /* ClassWasDecorated */) {\n wrapped = visitInvalidSuperProperty(target);\n }\n else if (classConstructor && superClassReference) {\n var name = ts.isElementAccessExpression(target) ? ts.visitNode(target.argumentExpression, visitor, ts.isExpression) :\n ts.isIdentifier(target.name) ? factory.createStringLiteralFromNode(target.name) :\n undefined;\n if (name) {\n var temp = factory.createTempVariable(/*recordTempVariable*/ undefined);\n wrapped = factory.createAssignmentTargetWrapper(temp, factory.createReflectSetCall(superClassReference, name, temp, classConstructor));\n }\n }\n }\n }\n if (ts.isPropertyAssignment(node)) {\n var initializer = ts.getInitializerOfBindingOrAssignmentElement(node);\n return factory.updatePropertyAssignment(node, ts.visitNode(node.name, visitor, ts.isPropertyName), wrapped ?\n initializer ? factory.createAssignment(wrapped, ts.visitNode(initializer, visitor)) : wrapped :\n ts.visitNode(node.initializer, visitorDestructuringTarget, ts.isExpression));\n }\n if (ts.isSpreadAssignment(node)) {\n return factory.updateSpreadAssignment(node, wrapped || ts.visitNode(node.expression, visitorDestructuringTarget, ts.isExpression));\n }\n ts.Debug.assert(wrapped === undefined, \"Should not have generated a wrapped target\");\n }\n return ts.visitNode(node, visitor);\n }\n function visitAssignmentPattern(node) {\n if (ts.isArrayLiteralExpression(node)) {\n // Transforms private names in destructuring assignment array bindings.\n // Transforms SuperProperty assignments in destructuring assignment array bindings in static initializers.\n //\n // Source:\n // ([ this.#myProp ] = [ \"hello\" ]);\n //\n // Transformation:\n // [ { set value(x) { this.#myProp = x; } }.value ] = [ \"hello\" ];\n return factory.updateArrayLiteralExpression(node, ts.visitNodes(node.elements, visitArrayAssignmentTarget, ts.isExpression));\n }\n else {\n // Transforms private names in destructuring assignment object bindings.\n // Transforms SuperProperty assignments in destructuring assignment object bindings in static initializers.\n //\n // Source:\n // ({ stringProperty: this.#myProp } = { stringProperty: \"hello\" });\n //\n // Transformation:\n // ({ stringProperty: { set value(x) { this.#myProp = x; } }.value }) = { stringProperty: \"hello\" };\n return factory.updateObjectLiteralExpression(node, ts.visitNodes(node.properties, visitObjectAssignmentTarget, ts.isObjectLiteralElementLike));\n }\n }\n }\n ts.transformClassFields = transformClassFields;\n function createPrivateStaticFieldInitializer(variableName, initializer) {\n return ts.factory.createAssignment(variableName, ts.factory.createObjectLiteralExpression([\n ts.factory.createPropertyAssignment(\"value\", initializer || ts.factory.createVoidZero())\n ]));\n }\n function createPrivateInstanceFieldInitializer(receiver, initializer, weakMapName) {\n return ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(weakMapName, \"set\"), \n /*typeArguments*/ undefined, [receiver, initializer || ts.factory.createVoidZero()]);\n }\n function createPrivateInstanceMethodInitializer(receiver, weakSetName) {\n return ts.factory.createCallExpression(ts.factory.createPropertyAccessExpression(weakSetName, \"add\"), \n /*typeArguments*/ undefined, [receiver]);\n }\n function isReservedPrivateName(node) {\n return node.escapedText === \"#constructor\";\n }\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var ES2017SubstitutionFlags;\n (function (ES2017SubstitutionFlags) {\n /** Enables substitutions for async methods with `super` calls. */\n ES2017SubstitutionFlags[ES2017SubstitutionFlags[\"AsyncMethodsWithSuper\"] = 1] = \"AsyncMethodsWithSuper\";\n })(ES2017SubstitutionFlags || (ES2017SubstitutionFlags = {}));\n var ContextFlags;\n (function (ContextFlags) {\n ContextFlags[ContextFlags[\"NonTopLevel\"] = 1] = \"NonTopLevel\";\n ContextFlags[ContextFlags[\"HasLexicalThis\"] = 2] = \"HasLexicalThis\";\n })(ContextFlags || (ContextFlags = {}));\n function transformES2017(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory, resumeLexicalEnvironment = context.resumeLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var resolver = context.getEmitResolver();\n var compilerOptions = context.getCompilerOptions();\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n /**\n * Keeps track of whether expression substitution has been enabled for specific edge cases.\n * They are persisted between each SourceFile transformation and should not be reset.\n */\n var enabledSubstitutions;\n /**\n * This keeps track of containers where `super` is valid, for use with\n * just-in-time substitution for `super` expressions inside of async methods.\n */\n var enclosingSuperContainerFlags = 0;\n var enclosingFunctionParameterNames;\n /**\n * Keeps track of property names accessed on super (`super.x`) within async functions.\n */\n var capturedSuperProperties;\n /** Whether the async function contains an element access on super (`super[x]`). */\n var hasSuperElementAccess;\n /** A set of node IDs for generated super accessors (variable statements). */\n var substitutedSuperAccessors = [];\n var contextFlags = 0;\n // Save the previous transformation hooks.\n var previousOnEmitNode = context.onEmitNode;\n var previousOnSubstituteNode = context.onSubstituteNode;\n // Set new transformation hooks.\n context.onEmitNode = onEmitNode;\n context.onSubstituteNode = onSubstituteNode;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n setContextFlag(1 /* NonTopLevel */, false);\n setContextFlag(2 /* HasLexicalThis */, !ts.isEffectiveStrictModeSourceFile(node, compilerOptions));\n var visited = ts.visitEachChild(node, visitor, context);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n return visited;\n }\n function setContextFlag(flag, val) {\n contextFlags = val ? contextFlags | flag : contextFlags & ~flag;\n }\n function inContext(flags) {\n return (contextFlags & flags) !== 0;\n }\n function inTopLevelContext() {\n return !inContext(1 /* NonTopLevel */);\n }\n function inHasLexicalThisContext() {\n return inContext(2 /* HasLexicalThis */);\n }\n function doWithContext(flags, cb, value) {\n var contextFlagsToSet = flags & ~contextFlags;\n if (contextFlagsToSet) {\n setContextFlag(contextFlagsToSet, /*val*/ true);\n var result = cb(value);\n setContextFlag(contextFlagsToSet, /*val*/ false);\n return result;\n }\n return cb(value);\n }\n function visitDefault(node) {\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n if ((node.transformFlags & 128 /* ContainsES2017 */) === 0) {\n return node;\n }\n switch (node.kind) {\n case 130 /* AsyncKeyword */:\n // ES2017 async modifier should be elided for targets < ES2017\n return undefined;\n case 216 /* AwaitExpression */:\n return visitAwaitExpression(node);\n case 167 /* MethodDeclaration */:\n return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitMethodDeclaration, node);\n case 254 /* FunctionDeclaration */:\n return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionDeclaration, node);\n case 211 /* FunctionExpression */:\n return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitFunctionExpression, node);\n case 212 /* ArrowFunction */:\n return doWithContext(1 /* NonTopLevel */, visitArrowFunction, node);\n case 204 /* PropertyAccessExpression */:\n if (capturedSuperProperties && ts.isPropertyAccessExpression(node) && node.expression.kind === 106 /* SuperKeyword */) {\n capturedSuperProperties.add(node.name.escapedText);\n }\n return ts.visitEachChild(node, visitor, context);\n case 205 /* ElementAccessExpression */:\n if (capturedSuperProperties && node.expression.kind === 106 /* SuperKeyword */) {\n hasSuperElementAccess = true;\n }\n return ts.visitEachChild(node, visitor, context);\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 169 /* Constructor */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return doWithContext(1 /* NonTopLevel */ | 2 /* HasLexicalThis */, visitDefault, node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function asyncBodyVisitor(node) {\n if (ts.isNodeWithPossibleHoistedDeclaration(node)) {\n switch (node.kind) {\n case 235 /* VariableStatement */:\n return visitVariableStatementInAsyncBody(node);\n case 240 /* ForStatement */:\n return visitForStatementInAsyncBody(node);\n case 241 /* ForInStatement */:\n return visitForInStatementInAsyncBody(node);\n case 242 /* ForOfStatement */:\n return visitForOfStatementInAsyncBody(node);\n case 290 /* CatchClause */:\n return visitCatchClauseInAsyncBody(node);\n case 233 /* Block */:\n case 247 /* SwitchStatement */:\n case 261 /* CaseBlock */:\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n case 250 /* TryStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 237 /* IfStatement */:\n case 246 /* WithStatement */:\n case 248 /* LabeledStatement */:\n return ts.visitEachChild(node, asyncBodyVisitor, context);\n default:\n return ts.Debug.assertNever(node, \"Unhandled node.\");\n }\n }\n return visitor(node);\n }\n function visitCatchClauseInAsyncBody(node) {\n var catchClauseNames = new ts.Set();\n recordDeclarationName(node.variableDeclaration, catchClauseNames); // TODO: GH#18217\n // names declared in a catch variable are block scoped\n var catchClauseUnshadowedNames;\n catchClauseNames.forEach(function (_, escapedName) {\n if (enclosingFunctionParameterNames.has(escapedName)) {\n if (!catchClauseUnshadowedNames) {\n catchClauseUnshadowedNames = new ts.Set(enclosingFunctionParameterNames);\n }\n catchClauseUnshadowedNames.delete(escapedName);\n }\n });\n if (catchClauseUnshadowedNames) {\n var savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;\n enclosingFunctionParameterNames = catchClauseUnshadowedNames;\n var result = ts.visitEachChild(node, asyncBodyVisitor, context);\n enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames;\n return result;\n }\n else {\n return ts.visitEachChild(node, asyncBodyVisitor, context);\n }\n }\n function visitVariableStatementInAsyncBody(node) {\n if (isVariableDeclarationListWithCollidingName(node.declarationList)) {\n var expression = visitVariableDeclarationListWithCollidingNames(node.declarationList, /*hasReceiver*/ false);\n return expression ? factory.createExpressionStatement(expression) : undefined;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitForInStatementInAsyncBody(node) {\n return factory.updateForInStatement(node, isVariableDeclarationListWithCollidingName(node.initializer)\n ? visitVariableDeclarationListWithCollidingNames(node.initializer, /*hasReceiver*/ true)\n : ts.visitNode(node.initializer, visitor, ts.isForInitializer), ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitIterationBody(node.statement, asyncBodyVisitor, context));\n }\n function visitForOfStatementInAsyncBody(node) {\n return factory.updateForOfStatement(node, ts.visitNode(node.awaitModifier, visitor, ts.isToken), isVariableDeclarationListWithCollidingName(node.initializer)\n ? visitVariableDeclarationListWithCollidingNames(node.initializer, /*hasReceiver*/ true)\n : ts.visitNode(node.initializer, visitor, ts.isForInitializer), ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitIterationBody(node.statement, asyncBodyVisitor, context));\n }\n function visitForStatementInAsyncBody(node) {\n var initializer = node.initializer; // TODO: GH#18217\n return factory.updateForStatement(node, isVariableDeclarationListWithCollidingName(initializer)\n ? visitVariableDeclarationListWithCollidingNames(initializer, /*hasReceiver*/ false)\n : ts.visitNode(node.initializer, visitor, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, visitor, ts.isExpression), ts.visitIterationBody(node.statement, asyncBodyVisitor, context));\n }\n /**\n * Visits an AwaitExpression node.\n *\n * This function will be called any time a ES2017 await expression is encountered.\n *\n * @param node The node to visit.\n */\n function visitAwaitExpression(node) {\n // do not downlevel a top-level await as it is module syntax...\n if (inTopLevelContext()) {\n return ts.visitEachChild(node, visitor, context);\n }\n return ts.setOriginalNode(ts.setTextRange(factory.createYieldExpression(\n /*asteriskToken*/ undefined, ts.visitNode(node.expression, visitor, ts.isExpression)), node), node);\n }\n /**\n * Visits a MethodDeclaration node.\n *\n * This function will be called when one of the following conditions are met:\n * - The node is marked as async\n *\n * @param node The node to visit.\n */\n function visitMethodDeclaration(node) {\n return factory.updateMethodDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, visitor, ts.isModifier), node.asteriskToken, node.name, \n /*questionToken*/ undefined, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.getFunctionFlags(node) & 2 /* Async */\n ? transformAsyncFunctionBody(node)\n : ts.visitFunctionBody(node.body, visitor, context));\n }\n /**\n * Visits a FunctionDeclaration node.\n *\n * This function will be called when one of the following conditions are met:\n * - The node is marked async\n *\n * @param node The node to visit.\n */\n function visitFunctionDeclaration(node) {\n return factory.updateFunctionDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, visitor, ts.isModifier), node.asteriskToken, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.getFunctionFlags(node) & 2 /* Async */\n ? transformAsyncFunctionBody(node)\n : ts.visitFunctionBody(node.body, visitor, context));\n }\n /**\n * Visits a FunctionExpression node.\n *\n * This function will be called when one of the following conditions are met:\n * - The node is marked async\n *\n * @param node The node to visit.\n */\n function visitFunctionExpression(node) {\n return factory.updateFunctionExpression(node, ts.visitNodes(node.modifiers, visitor, ts.isModifier), node.asteriskToken, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, ts.getFunctionFlags(node) & 2 /* Async */\n ? transformAsyncFunctionBody(node)\n : ts.visitFunctionBody(node.body, visitor, context));\n }\n /**\n * Visits an ArrowFunction.\n *\n * This function will be called when one of the following conditions are met:\n * - The node is marked async\n *\n * @param node The node to visit.\n */\n function visitArrowFunction(node) {\n return factory.updateArrowFunction(node, ts.visitNodes(node.modifiers, visitor, ts.isModifier), \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, node.equalsGreaterThanToken, ts.getFunctionFlags(node) & 2 /* Async */\n ? transformAsyncFunctionBody(node)\n : ts.visitFunctionBody(node.body, visitor, context));\n }\n function recordDeclarationName(_a, names) {\n var name = _a.name;\n if (ts.isIdentifier(name)) {\n names.add(name.escapedText);\n }\n else {\n for (var _i = 0, _b = name.elements; _i < _b.length; _i++) {\n var element = _b[_i];\n if (!ts.isOmittedExpression(element)) {\n recordDeclarationName(element, names);\n }\n }\n }\n }\n function isVariableDeclarationListWithCollidingName(node) {\n return !!node\n && ts.isVariableDeclarationList(node)\n && !(node.flags & 3 /* BlockScoped */)\n && node.declarations.some(collidesWithParameterName);\n }\n function visitVariableDeclarationListWithCollidingNames(node, hasReceiver) {\n hoistVariableDeclarationList(node);\n var variables = ts.getInitializedVariables(node);\n if (variables.length === 0) {\n if (hasReceiver) {\n return ts.visitNode(factory.converters.convertToAssignmentElementTarget(node.declarations[0].name), visitor, ts.isExpression);\n }\n return undefined;\n }\n return factory.inlineExpressions(ts.map(variables, transformInitializedVariable));\n }\n function hoistVariableDeclarationList(node) {\n ts.forEach(node.declarations, hoistVariable);\n }\n function hoistVariable(_a) {\n var name = _a.name;\n if (ts.isIdentifier(name)) {\n hoistVariableDeclaration(name);\n }\n else {\n for (var _i = 0, _b = name.elements; _i < _b.length; _i++) {\n var element = _b[_i];\n if (!ts.isOmittedExpression(element)) {\n hoistVariable(element);\n }\n }\n }\n }\n function transformInitializedVariable(node) {\n var converted = ts.setSourceMapRange(factory.createAssignment(factory.converters.convertToAssignmentElementTarget(node.name), node.initializer), node);\n return ts.visitNode(converted, visitor, ts.isExpression);\n }\n function collidesWithParameterName(_a) {\n var name = _a.name;\n if (ts.isIdentifier(name)) {\n return enclosingFunctionParameterNames.has(name.escapedText);\n }\n else {\n for (var _i = 0, _b = name.elements; _i < _b.length; _i++) {\n var element = _b[_i];\n if (!ts.isOmittedExpression(element) && collidesWithParameterName(element)) {\n return true;\n }\n }\n }\n return false;\n }\n function transformAsyncFunctionBody(node) {\n resumeLexicalEnvironment();\n var original = ts.getOriginalNode(node, ts.isFunctionLike);\n var nodeType = original.type;\n var promiseConstructor = languageVersion < 2 /* ES2015 */ ? getPromiseConstructor(nodeType) : undefined;\n var isArrowFunction = node.kind === 212 /* ArrowFunction */;\n var hasLexicalArguments = (resolver.getNodeCheckFlags(node) & 8192 /* CaptureArguments */) !== 0;\n // An async function is emit as an outer function that calls an inner\n // generator function. To preserve lexical bindings, we pass the current\n // `this` and `arguments` objects to `__awaiter`. The generator function\n // passed to `__awaiter` is executed inside of the callback to the\n // promise constructor.\n var savedEnclosingFunctionParameterNames = enclosingFunctionParameterNames;\n enclosingFunctionParameterNames = new ts.Set();\n for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {\n var parameter = _a[_i];\n recordDeclarationName(parameter, enclosingFunctionParameterNames);\n }\n var savedCapturedSuperProperties = capturedSuperProperties;\n var savedHasSuperElementAccess = hasSuperElementAccess;\n if (!isArrowFunction) {\n capturedSuperProperties = new ts.Set();\n hasSuperElementAccess = false;\n }\n var result;\n if (!isArrowFunction) {\n var statements = [];\n var statementOffset = factory.copyPrologue(node.body.statements, statements, /*ensureUseStrict*/ false, visitor);\n statements.push(factory.createReturnStatement(emitHelpers().createAwaiterHelper(inHasLexicalThisContext(), hasLexicalArguments, promiseConstructor, transformAsyncFunctionBodyWorker(node.body, statementOffset))));\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n // Minor optimization, emit `_super` helper to capture `super` access in an arrow.\n // This step isn't needed if we eventually transform this to ES5.\n var emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* AsyncMethodWithSuperBinding */ | 2048 /* AsyncMethodWithSuper */);\n if (emitSuperHelpers) {\n enableSubstitutionForAsyncMethodsWithSuper();\n if (capturedSuperProperties.size) {\n var variableStatement = createSuperAccessVariableStatement(factory, resolver, node, capturedSuperProperties);\n substitutedSuperAccessors[ts.getNodeId(variableStatement)] = true;\n ts.insertStatementsAfterStandardPrologue(statements, [variableStatement]);\n }\n }\n var block = factory.createBlock(statements, /*multiLine*/ true);\n ts.setTextRange(block, node.body);\n if (emitSuperHelpers && hasSuperElementAccess) {\n // Emit helpers for super element access expressions (`super[x]`).\n if (resolver.getNodeCheckFlags(node) & 4096 /* AsyncMethodWithSuperBinding */) {\n ts.addEmitHelper(block, ts.advancedAsyncSuperHelper);\n }\n else if (resolver.getNodeCheckFlags(node) & 2048 /* AsyncMethodWithSuper */) {\n ts.addEmitHelper(block, ts.asyncSuperHelper);\n }\n }\n result = block;\n }\n else {\n var expression = emitHelpers().createAwaiterHelper(inHasLexicalThisContext(), hasLexicalArguments, promiseConstructor, transformAsyncFunctionBodyWorker(node.body));\n var declarations = endLexicalEnvironment();\n if (ts.some(declarations)) {\n var block = factory.converters.convertToFunctionBlock(expression);\n result = factory.updateBlock(block, ts.setTextRange(factory.createNodeArray(ts.concatenate(declarations, block.statements)), block.statements));\n }\n else {\n result = expression;\n }\n }\n enclosingFunctionParameterNames = savedEnclosingFunctionParameterNames;\n if (!isArrowFunction) {\n capturedSuperProperties = savedCapturedSuperProperties;\n hasSuperElementAccess = savedHasSuperElementAccess;\n }\n return result;\n }\n function transformAsyncFunctionBodyWorker(body, start) {\n if (ts.isBlock(body)) {\n return factory.updateBlock(body, ts.visitNodes(body.statements, asyncBodyVisitor, ts.isStatement, start));\n }\n else {\n return factory.converters.convertToFunctionBlock(ts.visitNode(body, asyncBodyVisitor, ts.isConciseBody));\n }\n }\n function getPromiseConstructor(type) {\n var typeName = type && ts.getEntityNameFromTypeNode(type);\n if (typeName && ts.isEntityName(typeName)) {\n var serializationKind = resolver.getTypeReferenceSerializationKind(typeName);\n if (serializationKind === ts.TypeReferenceSerializationKind.TypeWithConstructSignatureAndValue\n || serializationKind === ts.TypeReferenceSerializationKind.Unknown) {\n return typeName;\n }\n }\n return undefined;\n }\n function enableSubstitutionForAsyncMethodsWithSuper() {\n if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) {\n enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */;\n // We need to enable substitutions for call, property access, and element access\n // if we need to rewrite super calls.\n context.enableSubstitution(206 /* CallExpression */);\n context.enableSubstitution(204 /* PropertyAccessExpression */);\n context.enableSubstitution(205 /* ElementAccessExpression */);\n // We need to be notified when entering and exiting declarations that bind super.\n context.enableEmitNotification(255 /* ClassDeclaration */);\n context.enableEmitNotification(167 /* MethodDeclaration */);\n context.enableEmitNotification(170 /* GetAccessor */);\n context.enableEmitNotification(171 /* SetAccessor */);\n context.enableEmitNotification(169 /* Constructor */);\n // We need to be notified when entering the generated accessor arrow functions.\n context.enableEmitNotification(235 /* VariableStatement */);\n }\n }\n /**\n * Hook for node emit.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emit A callback used to emit the node in the printer.\n */\n function onEmitNode(hint, node, emitCallback) {\n // If we need to support substitutions for `super` in an async method,\n // we should track it here.\n if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {\n var superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* AsyncMethodWithSuper */ | 4096 /* AsyncMethodWithSuperBinding */);\n if (superContainerFlags !== enclosingSuperContainerFlags) {\n var savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n enclosingSuperContainerFlags = superContainerFlags;\n previousOnEmitNode(hint, node, emitCallback);\n enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n return;\n }\n }\n // Disable substitution in the generated super accessor itself.\n else if (enabledSubstitutions && substitutedSuperAccessors[ts.getNodeId(node)]) {\n var savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n enclosingSuperContainerFlags = 0;\n previousOnEmitNode(hint, node, emitCallback);\n enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n return;\n }\n previousOnEmitNode(hint, node, emitCallback);\n }\n /**\n * Hooks node substitutions.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (hint === 1 /* Expression */ && enclosingSuperContainerFlags) {\n return substituteExpression(node);\n }\n return node;\n }\n function substituteExpression(node) {\n switch (node.kind) {\n case 204 /* PropertyAccessExpression */:\n return substitutePropertyAccessExpression(node);\n case 205 /* ElementAccessExpression */:\n return substituteElementAccessExpression(node);\n case 206 /* CallExpression */:\n return substituteCallExpression(node);\n }\n return node;\n }\n function substitutePropertyAccessExpression(node) {\n if (node.expression.kind === 106 /* SuperKeyword */) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */), node.name), node);\n }\n return node;\n }\n function substituteElementAccessExpression(node) {\n if (node.expression.kind === 106 /* SuperKeyword */) {\n return createSuperElementAccessInAsyncMethod(node.argumentExpression, node);\n }\n return node;\n }\n function substituteCallExpression(node) {\n var expression = node.expression;\n if (ts.isSuperProperty(expression)) {\n var argumentExpression = ts.isPropertyAccessExpression(expression)\n ? substitutePropertyAccessExpression(expression)\n : substituteElementAccessExpression(expression);\n return factory.createCallExpression(factory.createPropertyAccessExpression(argumentExpression, \"call\"), \n /*typeArguments*/ undefined, __spreadArray([\n factory.createThis()\n ], node.arguments, true));\n }\n return node;\n }\n function isSuperContainer(node) {\n var kind = node.kind;\n return kind === 255 /* ClassDeclaration */\n || kind === 169 /* Constructor */\n || kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */;\n }\n function createSuperElementAccessInAsyncMethod(argumentExpression, location) {\n if (enclosingSuperContainerFlags & 4096 /* AsyncMethodWithSuperBinding */) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.createCallExpression(factory.createUniqueName(\"_superIndex\", 16 /* Optimistic */ | 32 /* FileLevel */), \n /*typeArguments*/ undefined, [argumentExpression]), \"value\"), location);\n }\n else {\n return ts.setTextRange(factory.createCallExpression(factory.createUniqueName(\"_superIndex\", 16 /* Optimistic */ | 32 /* FileLevel */), \n /*typeArguments*/ undefined, [argumentExpression]), location);\n }\n }\n }\n ts.transformES2017 = transformES2017;\n /** Creates a variable named `_super` with accessor properties for the given property names. */\n function createSuperAccessVariableStatement(factory, resolver, node, names) {\n // Create a variable declaration with a getter/setter (if binding) definition for each name:\n // const _super = Object.create(null, { x: { get: () => super.x, set: (v) => super.x = v }, ... });\n var hasBinding = (resolver.getNodeCheckFlags(node) & 4096 /* AsyncMethodWithSuperBinding */) !== 0;\n var accessors = [];\n names.forEach(function (_, key) {\n var name = ts.unescapeLeadingUnderscores(key);\n var getterAndSetter = [];\n getterAndSetter.push(factory.createPropertyAssignment(\"get\", factory.createArrowFunction(\n /* modifiers */ undefined, \n /* typeParameters */ undefined, \n /* parameters */ [], \n /* type */ undefined, \n /* equalsGreaterThanToken */ undefined, ts.setEmitFlags(factory.createPropertyAccessExpression(ts.setEmitFlags(factory.createSuper(), 4 /* NoSubstitution */), name), 4 /* NoSubstitution */))));\n if (hasBinding) {\n getterAndSetter.push(factory.createPropertyAssignment(\"set\", factory.createArrowFunction(\n /* modifiers */ undefined, \n /* typeParameters */ undefined, \n /* parameters */ [\n factory.createParameterDeclaration(\n /* decorators */ undefined, \n /* modifiers */ undefined, \n /* dotDotDotToken */ undefined, \"v\", \n /* questionToken */ undefined, \n /* type */ undefined, \n /* initializer */ undefined)\n ], \n /* type */ undefined, \n /* equalsGreaterThanToken */ undefined, factory.createAssignment(ts.setEmitFlags(factory.createPropertyAccessExpression(ts.setEmitFlags(factory.createSuper(), 4 /* NoSubstitution */), name), 4 /* NoSubstitution */), factory.createIdentifier(\"v\")))));\n }\n accessors.push(factory.createPropertyAssignment(name, factory.createObjectLiteralExpression(getterAndSetter)));\n });\n return factory.createVariableStatement(\n /* modifiers */ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */), \n /*exclamationToken*/ undefined, \n /* type */ undefined, factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Object\"), \"create\"), \n /* typeArguments */ undefined, [\n factory.createNull(),\n factory.createObjectLiteralExpression(accessors, /* multiline */ true)\n ]))\n ], 2 /* Const */));\n }\n ts.createSuperAccessVariableStatement = createSuperAccessVariableStatement;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var ESNextSubstitutionFlags;\n (function (ESNextSubstitutionFlags) {\n /** Enables substitutions for async methods with `super` calls. */\n ESNextSubstitutionFlags[ESNextSubstitutionFlags[\"AsyncMethodsWithSuper\"] = 1] = \"AsyncMethodsWithSuper\";\n })(ESNextSubstitutionFlags || (ESNextSubstitutionFlags = {}));\n // Facts we track as we traverse the tree\n var HierarchyFacts;\n (function (HierarchyFacts) {\n HierarchyFacts[HierarchyFacts[\"None\"] = 0] = \"None\";\n //\n // Ancestor facts\n //\n HierarchyFacts[HierarchyFacts[\"HasLexicalThis\"] = 1] = \"HasLexicalThis\";\n HierarchyFacts[HierarchyFacts[\"IterationContainer\"] = 2] = \"IterationContainer\";\n // NOTE: do not add more ancestor flags without also updating AncestorFactsMask below.\n //\n // Ancestor masks\n //\n HierarchyFacts[HierarchyFacts[\"AncestorFactsMask\"] = 3] = \"AncestorFactsMask\";\n HierarchyFacts[HierarchyFacts[\"SourceFileIncludes\"] = 1] = \"SourceFileIncludes\";\n HierarchyFacts[HierarchyFacts[\"SourceFileExcludes\"] = 2] = \"SourceFileExcludes\";\n HierarchyFacts[HierarchyFacts[\"StrictModeSourceFileIncludes\"] = 0] = \"StrictModeSourceFileIncludes\";\n HierarchyFacts[HierarchyFacts[\"ClassOrFunctionIncludes\"] = 1] = \"ClassOrFunctionIncludes\";\n HierarchyFacts[HierarchyFacts[\"ClassOrFunctionExcludes\"] = 2] = \"ClassOrFunctionExcludes\";\n HierarchyFacts[HierarchyFacts[\"ArrowFunctionIncludes\"] = 0] = \"ArrowFunctionIncludes\";\n HierarchyFacts[HierarchyFacts[\"ArrowFunctionExcludes\"] = 2] = \"ArrowFunctionExcludes\";\n HierarchyFacts[HierarchyFacts[\"IterationStatementIncludes\"] = 2] = \"IterationStatementIncludes\";\n HierarchyFacts[HierarchyFacts[\"IterationStatementExcludes\"] = 0] = \"IterationStatementExcludes\";\n })(HierarchyFacts || (HierarchyFacts = {}));\n function transformES2018(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory, resumeLexicalEnvironment = context.resumeLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var resolver = context.getEmitResolver();\n var compilerOptions = context.getCompilerOptions();\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var previousOnEmitNode = context.onEmitNode;\n context.onEmitNode = onEmitNode;\n var previousOnSubstituteNode = context.onSubstituteNode;\n context.onSubstituteNode = onSubstituteNode;\n var exportedVariableStatement = false;\n var enabledSubstitutions;\n var enclosingFunctionFlags;\n var enclosingSuperContainerFlags = 0;\n var hierarchyFacts = 0;\n var currentSourceFile;\n var taggedTemplateStringDeclarations;\n /** Keeps track of property names accessed on super (`super.x`) within async functions. */\n var capturedSuperProperties;\n /** Whether the async function contains an element access on super (`super[x]`). */\n var hasSuperElementAccess;\n /** A set of node IDs for generated super accessors. */\n var substitutedSuperAccessors = [];\n return ts.chainBundle(context, transformSourceFile);\n function affectsSubtree(excludeFacts, includeFacts) {\n return hierarchyFacts !== (hierarchyFacts & ~excludeFacts | includeFacts);\n }\n /**\n * Sets the `HierarchyFacts` for this node prior to visiting this node's subtree, returning the facts set prior to modification.\n * @param excludeFacts The existing `HierarchyFacts` to reset before visiting the subtree.\n * @param includeFacts The new `HierarchyFacts` to set before visiting the subtree.\n */\n function enterSubtree(excludeFacts, includeFacts) {\n var ancestorFacts = hierarchyFacts;\n hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 3 /* AncestorFactsMask */;\n return ancestorFacts;\n }\n /**\n * Restores the `HierarchyFacts` for this node's ancestor after visiting this node's\n * subtree.\n * @param ancestorFacts The `HierarchyFacts` of the ancestor to restore after visiting the subtree.\n */\n function exitSubtree(ancestorFacts) {\n hierarchyFacts = ancestorFacts;\n }\n function recordTaggedTemplateString(temp) {\n taggedTemplateStringDeclarations = ts.append(taggedTemplateStringDeclarations, factory.createVariableDeclaration(temp));\n }\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n currentSourceFile = node;\n var visited = visitSourceFile(node);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n currentSourceFile = undefined;\n taggedTemplateStringDeclarations = undefined;\n return visited;\n }\n function visitor(node) {\n return visitorWorker(node, /*expressionResultIsUnused*/ false);\n }\n function visitorWithUnusedExpressionResult(node) {\n return visitorWorker(node, /*expressionResultIsUnused*/ true);\n }\n function visitorNoAsyncModifier(node) {\n if (node.kind === 130 /* AsyncKeyword */) {\n return undefined;\n }\n return node;\n }\n function doWithHierarchyFacts(cb, value, excludeFacts, includeFacts) {\n if (affectsSubtree(excludeFacts, includeFacts)) {\n var ancestorFacts = enterSubtree(excludeFacts, includeFacts);\n var result = cb(value);\n exitSubtree(ancestorFacts);\n return result;\n }\n return cb(value);\n }\n function visitDefault(node) {\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitorWorker(node, expressionResultIsUnused) {\n if ((node.transformFlags & 64 /* ContainsES2018 */) === 0) {\n return node;\n }\n switch (node.kind) {\n case 216 /* AwaitExpression */:\n return visitAwaitExpression(node);\n case 222 /* YieldExpression */:\n return visitYieldExpression(node);\n case 245 /* ReturnStatement */:\n return visitReturnStatement(node);\n case 248 /* LabeledStatement */:\n return visitLabeledStatement(node);\n case 203 /* ObjectLiteralExpression */:\n return visitObjectLiteralExpression(node);\n case 219 /* BinaryExpression */:\n return visitBinaryExpression(node, expressionResultIsUnused);\n case 346 /* CommaListExpression */:\n return visitCommaListExpression(node, expressionResultIsUnused);\n case 290 /* CatchClause */:\n return visitCatchClause(node);\n case 235 /* VariableStatement */:\n return visitVariableStatement(node);\n case 252 /* VariableDeclaration */:\n return visitVariableDeclaration(node);\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 241 /* ForInStatement */:\n return doWithHierarchyFacts(visitDefault, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */);\n case 242 /* ForOfStatement */:\n return visitForOfStatement(node, /*outermostLabeledStatement*/ undefined);\n case 240 /* ForStatement */:\n return doWithHierarchyFacts(visitForStatement, node, 0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */);\n case 215 /* VoidExpression */:\n return visitVoidExpression(node);\n case 169 /* Constructor */:\n return doWithHierarchyFacts(visitConstructorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n case 167 /* MethodDeclaration */:\n return doWithHierarchyFacts(visitMethodDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n case 170 /* GetAccessor */:\n return doWithHierarchyFacts(visitGetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n case 171 /* SetAccessor */:\n return doWithHierarchyFacts(visitSetAccessorDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n case 254 /* FunctionDeclaration */:\n return doWithHierarchyFacts(visitFunctionDeclaration, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n case 211 /* FunctionExpression */:\n return doWithHierarchyFacts(visitFunctionExpression, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n case 212 /* ArrowFunction */:\n return doWithHierarchyFacts(visitArrowFunction, node, 2 /* ArrowFunctionExcludes */, 0 /* ArrowFunctionIncludes */);\n case 162 /* Parameter */:\n return visitParameter(node);\n case 236 /* ExpressionStatement */:\n return visitExpressionStatement(node);\n case 210 /* ParenthesizedExpression */:\n return visitParenthesizedExpression(node, expressionResultIsUnused);\n case 208 /* TaggedTemplateExpression */:\n return visitTaggedTemplateExpression(node);\n case 204 /* PropertyAccessExpression */:\n if (capturedSuperProperties && ts.isPropertyAccessExpression(node) && node.expression.kind === 106 /* SuperKeyword */) {\n capturedSuperProperties.add(node.name.escapedText);\n }\n return ts.visitEachChild(node, visitor, context);\n case 205 /* ElementAccessExpression */:\n if (capturedSuperProperties && node.expression.kind === 106 /* SuperKeyword */) {\n hasSuperElementAccess = true;\n }\n return ts.visitEachChild(node, visitor, context);\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return doWithHierarchyFacts(visitDefault, node, 2 /* ClassOrFunctionExcludes */, 1 /* ClassOrFunctionIncludes */);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitAwaitExpression(node) {\n if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) {\n return ts.setOriginalNode(ts.setTextRange(factory.createYieldExpression(/*asteriskToken*/ undefined, emitHelpers().createAwaitHelper(ts.visitNode(node.expression, visitor, ts.isExpression))), \n /*location*/ node), node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitYieldExpression(node) {\n if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) {\n if (node.asteriskToken) {\n var expression = ts.visitNode(ts.Debug.assertDefined(node.expression), visitor, ts.isExpression);\n return ts.setOriginalNode(ts.setTextRange(factory.createYieldExpression(\n /*asteriskToken*/ undefined, emitHelpers().createAwaitHelper(factory.updateYieldExpression(node, node.asteriskToken, ts.setTextRange(emitHelpers().createAsyncDelegatorHelper(ts.setTextRange(emitHelpers().createAsyncValuesHelper(expression), expression)), expression)))), node), node);\n }\n return ts.setOriginalNode(ts.setTextRange(factory.createYieldExpression(\n /*asteriskToken*/ undefined, createDownlevelAwait(node.expression\n ? ts.visitNode(node.expression, visitor, ts.isExpression)\n : factory.createVoidZero())), node), node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitReturnStatement(node) {\n if (enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */) {\n return factory.updateReturnStatement(node, createDownlevelAwait(node.expression ? ts.visitNode(node.expression, visitor, ts.isExpression) : factory.createVoidZero()));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitLabeledStatement(node) {\n if (enclosingFunctionFlags & 2 /* Async */) {\n var statement = ts.unwrapInnermostStatementOfLabel(node);\n if (statement.kind === 242 /* ForOfStatement */ && statement.awaitModifier) {\n return visitForOfStatement(statement, node);\n }\n return factory.restoreEnclosingLabel(ts.visitNode(statement, visitor, ts.isStatement, factory.liftToBlock), node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function chunkObjectLiteralElements(elements) {\n var chunkObject;\n var objects = [];\n for (var _i = 0, elements_4 = elements; _i < elements_4.length; _i++) {\n var e = elements_4[_i];\n if (e.kind === 293 /* SpreadAssignment */) {\n if (chunkObject) {\n objects.push(factory.createObjectLiteralExpression(chunkObject));\n chunkObject = undefined;\n }\n var target = e.expression;\n objects.push(ts.visitNode(target, visitor, ts.isExpression));\n }\n else {\n chunkObject = ts.append(chunkObject, e.kind === 291 /* PropertyAssignment */\n ? factory.createPropertyAssignment(e.name, ts.visitNode(e.initializer, visitor, ts.isExpression))\n : ts.visitNode(e, visitor, ts.isObjectLiteralElementLike));\n }\n }\n if (chunkObject) {\n objects.push(factory.createObjectLiteralExpression(chunkObject));\n }\n return objects;\n }\n function visitObjectLiteralExpression(node) {\n if (node.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n // spread elements emit like so:\n // non-spread elements are chunked together into object literals, and then all are passed to __assign:\n // { a, ...o, b } => __assign(__assign({a}, o), {b});\n // If the first element is a spread element, then the first argument to __assign is {}:\n // { ...o, a, b, ...o2 } => __assign(__assign(__assign({}, o), {a, b}), o2)\n //\n // We cannot call __assign with more than two elements, since any element could cause side effects. For\n // example:\n // var k = { a: 1, b: 2 };\n // var o = { a: 3, ...k, b: k.a++ };\n // // expected: { a: 1, b: 1 }\n // If we translate the above to `__assign({ a: 3 }, k, { b: k.a++ })`, the `k.a++` will evaluate before\n // `k` is spread and we end up with `{ a: 2, b: 1 }`.\n //\n // This also occurs for spread elements, not just property assignments:\n // var k = { a: 1, get b() { l = { z: 9 }; return 2; } };\n // var l = { c: 3 };\n // var o = { ...k, ...l };\n // // expected: { a: 1, b: 2, z: 9 }\n // If we translate the above to `__assign({}, k, l)`, the `l` will evaluate before `k` is spread and we\n // end up with `{ a: 1, b: 2, c: 3 }`\n var objects = chunkObjectLiteralElements(node.properties);\n if (objects.length && objects[0].kind !== 203 /* ObjectLiteralExpression */) {\n objects.unshift(factory.createObjectLiteralExpression());\n }\n var expression = objects[0];\n if (objects.length > 1) {\n for (var i = 1; i < objects.length; i++) {\n expression = emitHelpers().createAssignHelper([expression, objects[i]]);\n }\n return expression;\n }\n else {\n return emitHelpers().createAssignHelper(objects);\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitExpressionStatement(node) {\n return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);\n }\n /**\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitParenthesizedExpression(node, expressionResultIsUnused) {\n return ts.visitEachChild(node, expressionResultIsUnused ? visitorWithUnusedExpressionResult : visitor, context);\n }\n function visitSourceFile(node) {\n var ancestorFacts = enterSubtree(2 /* SourceFileExcludes */, ts.isEffectiveStrictModeSourceFile(node, compilerOptions) ?\n 0 /* StrictModeSourceFileIncludes */ :\n 1 /* SourceFileIncludes */);\n exportedVariableStatement = false;\n var visited = ts.visitEachChild(node, visitor, context);\n var statement = ts.concatenate(visited.statements, taggedTemplateStringDeclarations && [\n factory.createVariableStatement(/*modifiers*/ undefined, factory.createVariableDeclarationList(taggedTemplateStringDeclarations))\n ]);\n var result = factory.updateSourceFile(visited, ts.setTextRange(factory.createNodeArray(statement), node.statements));\n exitSubtree(ancestorFacts);\n return result;\n }\n function visitTaggedTemplateExpression(node) {\n return ts.processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, ts.ProcessLevel.LiftRestriction);\n }\n /**\n * Visits a BinaryExpression that contains a destructuring assignment.\n *\n * @param node A BinaryExpression node.\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitBinaryExpression(node, expressionResultIsUnused) {\n if (ts.isDestructuringAssignment(node) && node.left.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n return ts.flattenDestructuringAssignment(node, visitor, context, 1 /* ObjectRest */, !expressionResultIsUnused);\n }\n if (node.operatorToken.kind === 27 /* CommaToken */) {\n return factory.updateBinaryExpression(node, ts.visitNode(node.left, visitorWithUnusedExpressionResult, ts.isExpression), node.operatorToken, ts.visitNode(node.right, expressionResultIsUnused ? visitorWithUnusedExpressionResult : visitor, ts.isExpression));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitCommaListExpression(node, expressionResultIsUnused) {\n if (expressionResultIsUnused) {\n return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);\n }\n var result;\n for (var i = 0; i < node.elements.length; i++) {\n var element = node.elements[i];\n var visited = ts.visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, ts.isExpression);\n if (result || visited !== element) {\n result || (result = node.elements.slice(0, i));\n result.push(visited);\n }\n }\n var elements = result ? ts.setTextRange(factory.createNodeArray(result), node.elements) : node.elements;\n return factory.updateCommaListExpression(node, elements);\n }\n function visitCatchClause(node) {\n if (node.variableDeclaration &&\n ts.isBindingPattern(node.variableDeclaration.name) &&\n node.variableDeclaration.name.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n var name = factory.getGeneratedNameForNode(node.variableDeclaration.name);\n var updatedDecl = factory.updateVariableDeclaration(node.variableDeclaration, node.variableDeclaration.name, /*exclamationToken*/ undefined, /*type*/ undefined, name);\n var visitedBindings = ts.flattenDestructuringBinding(updatedDecl, visitor, context, 1 /* ObjectRest */);\n var block = ts.visitNode(node.block, visitor, ts.isBlock);\n if (ts.some(visitedBindings)) {\n block = factory.updateBlock(block, __spreadArray([\n factory.createVariableStatement(/*modifiers*/ undefined, visitedBindings)\n ], block.statements, true));\n }\n return factory.updateCatchClause(node, factory.updateVariableDeclaration(node.variableDeclaration, name, /*exclamationToken*/ undefined, /*type*/ undefined, /*initializer*/ undefined), block);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitVariableStatement(node) {\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n var savedExportedVariableStatement = exportedVariableStatement;\n exportedVariableStatement = true;\n var visited = ts.visitEachChild(node, visitor, context);\n exportedVariableStatement = savedExportedVariableStatement;\n return visited;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a VariableDeclaration node with a binding pattern.\n *\n * @param node A VariableDeclaration node.\n */\n function visitVariableDeclaration(node) {\n if (exportedVariableStatement) {\n var savedExportedVariableStatement = exportedVariableStatement;\n exportedVariableStatement = false;\n var visited = visitVariableDeclarationWorker(node, /*exportedVariableStatement*/ true);\n exportedVariableStatement = savedExportedVariableStatement;\n return visited;\n }\n return visitVariableDeclarationWorker(node, /*exportedVariableStatement*/ false);\n }\n function visitVariableDeclarationWorker(node, exportedVariableStatement) {\n // If we are here it is because the name contains a binding pattern with a rest somewhere in it.\n if (ts.isBindingPattern(node.name) && node.name.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n return ts.flattenDestructuringBinding(node, visitor, context, 1 /* ObjectRest */, \n /*rval*/ undefined, exportedVariableStatement);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitForStatement(node) {\n return factory.updateForStatement(node, ts.visitNode(node.initializer, visitorWithUnusedExpressionResult, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, visitorWithUnusedExpressionResult, ts.isExpression), ts.visitIterationBody(node.statement, visitor, context));\n }\n function visitVoidExpression(node) {\n return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);\n }\n /**\n * Visits a ForOfStatement and converts it into a ES2015-compatible ForOfStatement.\n *\n * @param node A ForOfStatement.\n */\n function visitForOfStatement(node, outermostLabeledStatement) {\n var ancestorFacts = enterSubtree(0 /* IterationStatementExcludes */, 2 /* IterationStatementIncludes */);\n if (node.initializer.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n node = transformForOfStatementWithObjectRest(node);\n }\n var result = node.awaitModifier ?\n transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) :\n factory.restoreEnclosingLabel(ts.visitEachChild(node, visitor, context), outermostLabeledStatement);\n exitSubtree(ancestorFacts);\n return result;\n }\n function transformForOfStatementWithObjectRest(node) {\n var initializerWithoutParens = ts.skipParentheses(node.initializer);\n if (ts.isVariableDeclarationList(initializerWithoutParens) || ts.isAssignmentPattern(initializerWithoutParens)) {\n var bodyLocation = void 0;\n var statementsLocation = void 0;\n var temp = factory.createTempVariable(/*recordTempVariable*/ undefined);\n var statements = [ts.createForOfBindingStatement(factory, initializerWithoutParens, temp)];\n if (ts.isBlock(node.statement)) {\n ts.addRange(statements, node.statement.statements);\n bodyLocation = node.statement;\n statementsLocation = node.statement.statements;\n }\n else if (node.statement) {\n ts.append(statements, node.statement);\n bodyLocation = node.statement;\n statementsLocation = node.statement;\n }\n return factory.updateForOfStatement(node, node.awaitModifier, ts.setTextRange(factory.createVariableDeclarationList([\n ts.setTextRange(factory.createVariableDeclaration(temp), node.initializer)\n ], 1 /* Let */), node.initializer), node.expression, ts.setTextRange(factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), statementsLocation), \n /*multiLine*/ true), bodyLocation));\n }\n return node;\n }\n function convertForOfStatementHead(node, boundValue) {\n var binding = ts.createForOfBindingStatement(factory, node.initializer, boundValue);\n var bodyLocation;\n var statementsLocation;\n var statements = [ts.visitNode(binding, visitor, ts.isStatement)];\n var statement = ts.visitIterationBody(node.statement, visitor, context);\n if (ts.isBlock(statement)) {\n ts.addRange(statements, statement.statements);\n bodyLocation = statement;\n statementsLocation = statement.statements;\n }\n else {\n statements.push(statement);\n }\n return ts.setEmitFlags(ts.setTextRange(factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), statementsLocation), \n /*multiLine*/ true), bodyLocation), 48 /* NoSourceMap */ | 384 /* NoTokenSourceMaps */);\n }\n function createDownlevelAwait(expression) {\n return enclosingFunctionFlags & 1 /* Generator */\n ? factory.createYieldExpression(/*asteriskToken*/ undefined, emitHelpers().createAwaitHelper(expression))\n : factory.createAwaitExpression(expression);\n }\n function transformForAwaitOfStatement(node, outermostLabeledStatement, ancestorFacts) {\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n var iterator = ts.isIdentifier(expression) ? factory.getGeneratedNameForNode(expression) : factory.createTempVariable(/*recordTempVariable*/ undefined);\n var result = ts.isIdentifier(expression) ? factory.getGeneratedNameForNode(iterator) : factory.createTempVariable(/*recordTempVariable*/ undefined);\n var errorRecord = factory.createUniqueName(\"e\");\n var catchVariable = factory.getGeneratedNameForNode(errorRecord);\n var returnMethod = factory.createTempVariable(/*recordTempVariable*/ undefined);\n var callValues = ts.setTextRange(emitHelpers().createAsyncValuesHelper(expression), node.expression);\n var callNext = factory.createCallExpression(factory.createPropertyAccessExpression(iterator, \"next\"), /*typeArguments*/ undefined, []);\n var getDone = factory.createPropertyAccessExpression(result, \"done\");\n var getValue = factory.createPropertyAccessExpression(result, \"value\");\n var callReturn = factory.createFunctionCallCall(returnMethod, iterator, []);\n hoistVariableDeclaration(errorRecord);\n hoistVariableDeclaration(returnMethod);\n // if we are enclosed in an outer loop ensure we reset 'errorRecord' per each iteration\n var initializer = ancestorFacts & 2 /* IterationContainer */ ?\n factory.inlineExpressions([factory.createAssignment(errorRecord, factory.createVoidZero()), callValues]) :\n callValues;\n var forStatement = ts.setEmitFlags(ts.setTextRange(factory.createForStatement(\n /*initializer*/ ts.setEmitFlags(ts.setTextRange(factory.createVariableDeclarationList([\n ts.setTextRange(factory.createVariableDeclaration(iterator, /*exclamationToken*/ undefined, /*type*/ undefined, initializer), node.expression),\n factory.createVariableDeclaration(result)\n ]), node.expression), 2097152 /* NoHoisting */), \n /*condition*/ factory.createComma(factory.createAssignment(result, createDownlevelAwait(callNext)), factory.createLogicalNot(getDone)), \n /*incrementor*/ undefined, \n /*statement*/ convertForOfStatementHead(node, getValue)), \n /*location*/ node), 256 /* NoTokenTrailingSourceMaps */);\n return factory.createTryStatement(factory.createBlock([\n factory.restoreEnclosingLabel(forStatement, outermostLabeledStatement)\n ]), factory.createCatchClause(factory.createVariableDeclaration(catchVariable), ts.setEmitFlags(factory.createBlock([\n factory.createExpressionStatement(factory.createAssignment(errorRecord, factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"error\", catchVariable)\n ])))\n ]), 1 /* SingleLine */)), factory.createBlock([\n factory.createTryStatement(\n /*tryBlock*/ factory.createBlock([\n ts.setEmitFlags(factory.createIfStatement(factory.createLogicalAnd(factory.createLogicalAnd(result, factory.createLogicalNot(getDone)), factory.createAssignment(returnMethod, factory.createPropertyAccessExpression(iterator, \"return\"))), factory.createExpressionStatement(createDownlevelAwait(callReturn))), 1 /* SingleLine */)\n ]), \n /*catchClause*/ undefined, \n /*finallyBlock*/ ts.setEmitFlags(factory.createBlock([\n ts.setEmitFlags(factory.createIfStatement(errorRecord, factory.createThrowStatement(factory.createPropertyAccessExpression(errorRecord, \"error\"))), 1 /* SingleLine */)\n ]), 1 /* SingleLine */))\n ]));\n }\n function visitParameter(node) {\n if (node.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n // Binding patterns are converted into a generated name and are\n // evaluated inside the function body.\n return factory.updateParameterDeclaration(node, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, node.dotDotDotToken, factory.getGeneratedNameForNode(node), \n /*questionToken*/ undefined, \n /*type*/ undefined, ts.visitNode(node.initializer, visitor, ts.isExpression));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitConstructorDeclaration(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = 0 /* Normal */;\n var updated = factory.updateConstructorDeclaration(node, \n /*decorators*/ undefined, node.modifiers, ts.visitParameterList(node.parameters, visitor, context), transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function visitGetAccessorDeclaration(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = 0 /* Normal */;\n var updated = factory.updateGetAccessorDeclaration(node, \n /*decorators*/ undefined, node.modifiers, ts.visitNode(node.name, visitor, ts.isPropertyName), ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function visitSetAccessorDeclaration(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = 0 /* Normal */;\n var updated = factory.updateSetAccessorDeclaration(node, \n /*decorators*/ undefined, node.modifiers, ts.visitNode(node.name, visitor, ts.isPropertyName), ts.visitParameterList(node.parameters, visitor, context), transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function visitMethodDeclaration(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = ts.getFunctionFlags(node);\n var updated = factory.updateMethodDeclaration(node, \n /*decorators*/ undefined, enclosingFunctionFlags & 1 /* Generator */\n ? ts.visitNodes(node.modifiers, visitorNoAsyncModifier, ts.isModifier)\n : node.modifiers, enclosingFunctionFlags & 2 /* Async */\n ? undefined\n : node.asteriskToken, ts.visitNode(node.name, visitor, ts.isPropertyName), ts.visitNode(/*questionToken*/ undefined, visitor, ts.isToken), \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */\n ? transformAsyncGeneratorFunctionBody(node)\n : transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function visitFunctionDeclaration(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = ts.getFunctionFlags(node);\n var updated = factory.updateFunctionDeclaration(node, \n /*decorators*/ undefined, enclosingFunctionFlags & 1 /* Generator */\n ? ts.visitNodes(node.modifiers, visitorNoAsyncModifier, ts.isModifier)\n : node.modifiers, enclosingFunctionFlags & 2 /* Async */\n ? undefined\n : node.asteriskToken, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */\n ? transformAsyncGeneratorFunctionBody(node)\n : transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function visitArrowFunction(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = ts.getFunctionFlags(node);\n var updated = factory.updateArrowFunction(node, node.modifiers, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, node.equalsGreaterThanToken, transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function visitFunctionExpression(node) {\n var savedEnclosingFunctionFlags = enclosingFunctionFlags;\n enclosingFunctionFlags = ts.getFunctionFlags(node);\n var updated = factory.updateFunctionExpression(node, enclosingFunctionFlags & 1 /* Generator */\n ? ts.visitNodes(node.modifiers, visitorNoAsyncModifier, ts.isModifier)\n : node.modifiers, enclosingFunctionFlags & 2 /* Async */\n ? undefined\n : node.asteriskToken, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, enclosingFunctionFlags & 2 /* Async */ && enclosingFunctionFlags & 1 /* Generator */\n ? transformAsyncGeneratorFunctionBody(node)\n : transformFunctionBody(node));\n enclosingFunctionFlags = savedEnclosingFunctionFlags;\n return updated;\n }\n function transformAsyncGeneratorFunctionBody(node) {\n resumeLexicalEnvironment();\n var statements = [];\n var statementOffset = factory.copyPrologue(node.body.statements, statements, /*ensureUseStrict*/ false, visitor);\n appendObjectRestAssignmentsIfNeeded(statements, node);\n var savedCapturedSuperProperties = capturedSuperProperties;\n var savedHasSuperElementAccess = hasSuperElementAccess;\n capturedSuperProperties = new ts.Set();\n hasSuperElementAccess = false;\n var returnStatement = factory.createReturnStatement(emitHelpers().createAsyncGeneratorHelper(factory.createFunctionExpression(\n /*modifiers*/ undefined, factory.createToken(41 /* AsteriskToken */), node.name && factory.getGeneratedNameForNode(node.name), \n /*typeParameters*/ undefined, \n /*parameters*/ [], \n /*type*/ undefined, factory.updateBlock(node.body, ts.visitLexicalEnvironment(node.body.statements, visitor, context, statementOffset))), !!(hierarchyFacts & 1 /* HasLexicalThis */)));\n // Minor optimization, emit `_super` helper to capture `super` access in an arrow.\n // This step isn't needed if we eventually transform this to ES5.\n var emitSuperHelpers = languageVersion >= 2 /* ES2015 */ && resolver.getNodeCheckFlags(node) & (4096 /* AsyncMethodWithSuperBinding */ | 2048 /* AsyncMethodWithSuper */);\n if (emitSuperHelpers) {\n enableSubstitutionForAsyncMethodsWithSuper();\n var variableStatement = ts.createSuperAccessVariableStatement(factory, resolver, node, capturedSuperProperties);\n substitutedSuperAccessors[ts.getNodeId(variableStatement)] = true;\n ts.insertStatementsAfterStandardPrologue(statements, [variableStatement]);\n }\n statements.push(returnStatement);\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n var block = factory.updateBlock(node.body, statements);\n if (emitSuperHelpers && hasSuperElementAccess) {\n if (resolver.getNodeCheckFlags(node) & 4096 /* AsyncMethodWithSuperBinding */) {\n ts.addEmitHelper(block, ts.advancedAsyncSuperHelper);\n }\n else if (resolver.getNodeCheckFlags(node) & 2048 /* AsyncMethodWithSuper */) {\n ts.addEmitHelper(block, ts.asyncSuperHelper);\n }\n }\n capturedSuperProperties = savedCapturedSuperProperties;\n hasSuperElementAccess = savedHasSuperElementAccess;\n return block;\n }\n function transformFunctionBody(node) {\n var _a;\n resumeLexicalEnvironment();\n var statementOffset = 0;\n var statements = [];\n var body = (_a = ts.visitNode(node.body, visitor, ts.isConciseBody)) !== null && _a !== void 0 ? _a : factory.createBlock([]);\n if (ts.isBlock(body)) {\n statementOffset = factory.copyPrologue(body.statements, statements, /*ensureUseStrict*/ false, visitor);\n }\n ts.addRange(statements, appendObjectRestAssignmentsIfNeeded(/*statements*/ undefined, node));\n var leadingStatements = endLexicalEnvironment();\n if (statementOffset > 0 || ts.some(statements) || ts.some(leadingStatements)) {\n var block = factory.converters.convertToFunctionBlock(body, /*multiLine*/ true);\n ts.insertStatementsAfterStandardPrologue(statements, leadingStatements);\n ts.addRange(statements, block.statements.slice(statementOffset));\n return factory.updateBlock(block, ts.setTextRange(factory.createNodeArray(statements), block.statements));\n }\n return body;\n }\n function appendObjectRestAssignmentsIfNeeded(statements, node) {\n for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {\n var parameter = _a[_i];\n if (parameter.transformFlags & 32768 /* ContainsObjectRestOrSpread */) {\n var temp = factory.getGeneratedNameForNode(parameter);\n var declarations = ts.flattenDestructuringBinding(parameter, visitor, context, 1 /* ObjectRest */, temp, \n /*doNotRecordTempVariablesInLine*/ false, \n /*skipInitializer*/ true);\n if (ts.some(declarations)) {\n var statement = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(declarations));\n ts.setEmitFlags(statement, 1048576 /* CustomPrologue */);\n statements = ts.append(statements, statement);\n }\n }\n }\n return statements;\n }\n function enableSubstitutionForAsyncMethodsWithSuper() {\n if ((enabledSubstitutions & 1 /* AsyncMethodsWithSuper */) === 0) {\n enabledSubstitutions |= 1 /* AsyncMethodsWithSuper */;\n // We need to enable substitutions for call, property access, and element access\n // if we need to rewrite super calls.\n context.enableSubstitution(206 /* CallExpression */);\n context.enableSubstitution(204 /* PropertyAccessExpression */);\n context.enableSubstitution(205 /* ElementAccessExpression */);\n // We need to be notified when entering and exiting declarations that bind super.\n context.enableEmitNotification(255 /* ClassDeclaration */);\n context.enableEmitNotification(167 /* MethodDeclaration */);\n context.enableEmitNotification(170 /* GetAccessor */);\n context.enableEmitNotification(171 /* SetAccessor */);\n context.enableEmitNotification(169 /* Constructor */);\n // We need to be notified when entering the generated accessor arrow functions.\n context.enableEmitNotification(235 /* VariableStatement */);\n }\n }\n /**\n * Called by the printer just before a node is printed.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to be printed.\n * @param emitCallback The callback used to emit the node.\n */\n function onEmitNode(hint, node, emitCallback) {\n // If we need to support substitutions for `super` in an async method,\n // we should track it here.\n if (enabledSubstitutions & 1 /* AsyncMethodsWithSuper */ && isSuperContainer(node)) {\n var superContainerFlags = resolver.getNodeCheckFlags(node) & (2048 /* AsyncMethodWithSuper */ | 4096 /* AsyncMethodWithSuperBinding */);\n if (superContainerFlags !== enclosingSuperContainerFlags) {\n var savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n enclosingSuperContainerFlags = superContainerFlags;\n previousOnEmitNode(hint, node, emitCallback);\n enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n return;\n }\n }\n // Disable substitution in the generated super accessor itself.\n else if (enabledSubstitutions && substitutedSuperAccessors[ts.getNodeId(node)]) {\n var savedEnclosingSuperContainerFlags = enclosingSuperContainerFlags;\n enclosingSuperContainerFlags = 0;\n previousOnEmitNode(hint, node, emitCallback);\n enclosingSuperContainerFlags = savedEnclosingSuperContainerFlags;\n return;\n }\n previousOnEmitNode(hint, node, emitCallback);\n }\n /**\n * Hooks node substitutions.\n *\n * @param hint The context for the emitter.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (hint === 1 /* Expression */ && enclosingSuperContainerFlags) {\n return substituteExpression(node);\n }\n return node;\n }\n function substituteExpression(node) {\n switch (node.kind) {\n case 204 /* PropertyAccessExpression */:\n return substitutePropertyAccessExpression(node);\n case 205 /* ElementAccessExpression */:\n return substituteElementAccessExpression(node);\n case 206 /* CallExpression */:\n return substituteCallExpression(node);\n }\n return node;\n }\n function substitutePropertyAccessExpression(node) {\n if (node.expression.kind === 106 /* SuperKeyword */) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */), node.name), node);\n }\n return node;\n }\n function substituteElementAccessExpression(node) {\n if (node.expression.kind === 106 /* SuperKeyword */) {\n return createSuperElementAccessInAsyncMethod(node.argumentExpression, node);\n }\n return node;\n }\n function substituteCallExpression(node) {\n var expression = node.expression;\n if (ts.isSuperProperty(expression)) {\n var argumentExpression = ts.isPropertyAccessExpression(expression)\n ? substitutePropertyAccessExpression(expression)\n : substituteElementAccessExpression(expression);\n return factory.createCallExpression(factory.createPropertyAccessExpression(argumentExpression, \"call\"), \n /*typeArguments*/ undefined, __spreadArray([\n factory.createThis()\n ], node.arguments, true));\n }\n return node;\n }\n function isSuperContainer(node) {\n var kind = node.kind;\n return kind === 255 /* ClassDeclaration */\n || kind === 169 /* Constructor */\n || kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */;\n }\n function createSuperElementAccessInAsyncMethod(argumentExpression, location) {\n if (enclosingSuperContainerFlags & 4096 /* AsyncMethodWithSuperBinding */) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.createCallExpression(factory.createIdentifier(\"_superIndex\"), \n /*typeArguments*/ undefined, [argumentExpression]), \"value\"), location);\n }\n else {\n return ts.setTextRange(factory.createCallExpression(factory.createIdentifier(\"_superIndex\"), \n /*typeArguments*/ undefined, [argumentExpression]), location);\n }\n }\n }\n ts.transformES2018 = transformES2018;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformES2019(context) {\n var factory = context.factory;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n if ((node.transformFlags & 32 /* ContainsES2019 */) === 0) {\n return node;\n }\n switch (node.kind) {\n case 290 /* CatchClause */:\n return visitCatchClause(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitCatchClause(node) {\n if (!node.variableDeclaration) {\n return factory.updateCatchClause(node, factory.createVariableDeclaration(factory.createTempVariable(/*recordTempVariable*/ undefined)), ts.visitNode(node.block, visitor, ts.isBlock));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n }\n ts.transformES2019 = transformES2019;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformES2020(context) {\n var factory = context.factory, hoistVariableDeclaration = context.hoistVariableDeclaration;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n if ((node.transformFlags & 16 /* ContainsES2020 */) === 0) {\n return node;\n }\n switch (node.kind) {\n case 206 /* CallExpression */: {\n var updated = visitNonOptionalCallExpression(node, /*captureThisArg*/ false);\n ts.Debug.assertNotNode(updated, ts.isSyntheticReference);\n return updated;\n }\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n if (ts.isOptionalChain(node)) {\n var updated = visitOptionalExpression(node, /*captureThisArg*/ false, /*isDelete*/ false);\n ts.Debug.assertNotNode(updated, ts.isSyntheticReference);\n return updated;\n }\n return ts.visitEachChild(node, visitor, context);\n case 219 /* BinaryExpression */:\n if (node.operatorToken.kind === 60 /* QuestionQuestionToken */) {\n return transformNullishCoalescingExpression(node);\n }\n return ts.visitEachChild(node, visitor, context);\n case 213 /* DeleteExpression */:\n return visitDeleteExpression(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function flattenChain(chain) {\n ts.Debug.assertNotNode(chain, ts.isNonNullChain);\n var links = [chain];\n while (!chain.questionDotToken && !ts.isTaggedTemplateExpression(chain)) {\n chain = ts.cast(ts.skipPartiallyEmittedExpressions(chain.expression), ts.isOptionalChain);\n ts.Debug.assertNotNode(chain, ts.isNonNullChain);\n links.unshift(chain);\n }\n return { expression: chain.expression, chain: links };\n }\n function visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete) {\n var expression = visitNonOptionalExpression(node.expression, captureThisArg, isDelete);\n if (ts.isSyntheticReference(expression)) {\n // `(a.b)` -> { expression `((_a = a).b)`, thisArg: `_a` }\n // `(a[b])` -> { expression `((_a = a)[b])`, thisArg: `_a` }\n return factory.createSyntheticReferenceExpression(factory.updateParenthesizedExpression(node, expression.expression), expression.thisArg);\n }\n return factory.updateParenthesizedExpression(node, expression);\n }\n function visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete) {\n if (ts.isOptionalChain(node)) {\n // If `node` is an optional chain, then it is the outermost chain of an optional expression.\n return visitOptionalExpression(node, captureThisArg, isDelete);\n }\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n ts.Debug.assertNotNode(expression, ts.isSyntheticReference);\n var thisArg;\n if (captureThisArg) {\n if (!ts.isSimpleCopiableExpression(expression)) {\n thisArg = factory.createTempVariable(hoistVariableDeclaration);\n expression = factory.createAssignment(thisArg, expression);\n }\n else {\n thisArg = expression;\n }\n }\n expression = node.kind === 204 /* PropertyAccessExpression */\n ? factory.updatePropertyAccessExpression(node, expression, ts.visitNode(node.name, visitor, ts.isIdentifier))\n : factory.updateElementAccessExpression(node, expression, ts.visitNode(node.argumentExpression, visitor, ts.isExpression));\n return thisArg ? factory.createSyntheticReferenceExpression(expression, thisArg) : expression;\n }\n function visitNonOptionalCallExpression(node, captureThisArg) {\n if (ts.isOptionalChain(node)) {\n // If `node` is an optional chain, then it is the outermost chain of an optional expression.\n return visitOptionalExpression(node, captureThisArg, /*isDelete*/ false);\n }\n if (ts.isParenthesizedExpression(node.expression) && ts.isOptionalChain(ts.skipParentheses(node.expression))) {\n // capture thisArg for calls of parenthesized optional chains like `(foo?.bar)()`\n var expression = visitNonOptionalParenthesizedExpression(node.expression, /*captureThisArg*/ true, /*isDelete*/ false);\n var args = ts.visitNodes(node.arguments, visitor, ts.isExpression);\n if (ts.isSyntheticReference(expression)) {\n return ts.setTextRange(factory.createFunctionCallCall(expression.expression, expression.thisArg, args), node);\n }\n return factory.updateCallExpression(node, expression, /*typeArguments*/ undefined, args);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitNonOptionalExpression(node, captureThisArg, isDelete) {\n switch (node.kind) {\n case 210 /* ParenthesizedExpression */: return visitNonOptionalParenthesizedExpression(node, captureThisArg, isDelete);\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */: return visitNonOptionalPropertyOrElementAccessExpression(node, captureThisArg, isDelete);\n case 206 /* CallExpression */: return visitNonOptionalCallExpression(node, captureThisArg);\n default: return ts.visitNode(node, visitor, ts.isExpression);\n }\n }\n function visitOptionalExpression(node, captureThisArg, isDelete) {\n var _a = flattenChain(node), expression = _a.expression, chain = _a.chain;\n var left = visitNonOptionalExpression(expression, ts.isCallChain(chain[0]), /*isDelete*/ false);\n var leftThisArg = ts.isSyntheticReference(left) ? left.thisArg : undefined;\n var leftExpression = ts.isSyntheticReference(left) ? left.expression : left;\n var capturedLeft = leftExpression;\n if (!ts.isSimpleCopiableExpression(leftExpression)) {\n capturedLeft = factory.createTempVariable(hoistVariableDeclaration);\n leftExpression = factory.createAssignment(capturedLeft, leftExpression);\n }\n var rightExpression = capturedLeft;\n var thisArg;\n for (var i = 0; i < chain.length; i++) {\n var segment = chain[i];\n switch (segment.kind) {\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n if (i === chain.length - 1 && captureThisArg) {\n if (!ts.isSimpleCopiableExpression(rightExpression)) {\n thisArg = factory.createTempVariable(hoistVariableDeclaration);\n rightExpression = factory.createAssignment(thisArg, rightExpression);\n }\n else {\n thisArg = rightExpression;\n }\n }\n rightExpression = segment.kind === 204 /* PropertyAccessExpression */\n ? factory.createPropertyAccessExpression(rightExpression, ts.visitNode(segment.name, visitor, ts.isIdentifier))\n : factory.createElementAccessExpression(rightExpression, ts.visitNode(segment.argumentExpression, visitor, ts.isExpression));\n break;\n case 206 /* CallExpression */:\n if (i === 0 && leftThisArg) {\n rightExpression = factory.createFunctionCallCall(rightExpression, leftThisArg.kind === 106 /* SuperKeyword */ ? factory.createThis() : leftThisArg, ts.visitNodes(segment.arguments, visitor, ts.isExpression));\n }\n else {\n rightExpression = factory.createCallExpression(rightExpression, \n /*typeArguments*/ undefined, ts.visitNodes(segment.arguments, visitor, ts.isExpression));\n }\n break;\n }\n ts.setOriginalNode(rightExpression, segment);\n }\n var target = isDelete\n ? factory.createConditionalExpression(createNotNullCondition(leftExpression, capturedLeft, /*invert*/ true), /*questionToken*/ undefined, factory.createTrue(), /*colonToken*/ undefined, factory.createDeleteExpression(rightExpression))\n : factory.createConditionalExpression(createNotNullCondition(leftExpression, capturedLeft, /*invert*/ true), /*questionToken*/ undefined, factory.createVoidZero(), /*colonToken*/ undefined, rightExpression);\n ts.setTextRange(target, node);\n return thisArg ? factory.createSyntheticReferenceExpression(target, thisArg) : target;\n }\n function createNotNullCondition(left, right, invert) {\n return factory.createBinaryExpression(factory.createBinaryExpression(left, factory.createToken(invert ? 36 /* EqualsEqualsEqualsToken */ : 37 /* ExclamationEqualsEqualsToken */), factory.createNull()), factory.createToken(invert ? 56 /* BarBarToken */ : 55 /* AmpersandAmpersandToken */), factory.createBinaryExpression(right, factory.createToken(invert ? 36 /* EqualsEqualsEqualsToken */ : 37 /* ExclamationEqualsEqualsToken */), factory.createVoidZero()));\n }\n function transformNullishCoalescingExpression(node) {\n var left = ts.visitNode(node.left, visitor, ts.isExpression);\n var right = left;\n if (!ts.isSimpleCopiableExpression(left)) {\n right = factory.createTempVariable(hoistVariableDeclaration);\n left = factory.createAssignment(right, left);\n }\n return ts.setTextRange(factory.createConditionalExpression(createNotNullCondition(left, right), \n /*questionToken*/ undefined, right, \n /*colonToken*/ undefined, ts.visitNode(node.right, visitor, ts.isExpression)), node);\n }\n function visitDeleteExpression(node) {\n return ts.isOptionalChain(ts.skipParentheses(node.expression))\n ? ts.setOriginalNode(visitNonOptionalExpression(node.expression, /*captureThisArg*/ false, /*isDelete*/ true), node)\n : factory.updateDeleteExpression(node, ts.visitNode(node.expression, visitor, ts.isExpression));\n }\n }\n ts.transformES2020 = transformES2020;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformES2021(context) {\n var hoistVariableDeclaration = context.hoistVariableDeclaration, factory = context.factory;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n if ((node.transformFlags & 8 /* ContainsES2021 */) === 0) {\n return node;\n }\n switch (node.kind) {\n case 219 /* BinaryExpression */:\n var binaryExpression = node;\n if (ts.isLogicalOrCoalescingAssignmentExpression(binaryExpression)) {\n return transformLogicalAssignment(binaryExpression);\n }\n // falls through\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function transformLogicalAssignment(binaryExpression) {\n var operator = binaryExpression.operatorToken;\n var nonAssignmentOperator = ts.getNonAssignmentOperatorForCompoundAssignment(operator.kind);\n var left = ts.skipParentheses(ts.visitNode(binaryExpression.left, visitor, ts.isLeftHandSideExpression));\n var assignmentTarget = left;\n var right = ts.skipParentheses(ts.visitNode(binaryExpression.right, visitor, ts.isExpression));\n if (ts.isAccessExpression(left)) {\n var propertyAccessTargetSimpleCopiable = ts.isSimpleCopiableExpression(left.expression);\n var propertyAccessTarget = propertyAccessTargetSimpleCopiable ? left.expression :\n factory.createTempVariable(hoistVariableDeclaration);\n var propertyAccessTargetAssignment = propertyAccessTargetSimpleCopiable ? left.expression : factory.createAssignment(propertyAccessTarget, left.expression);\n if (ts.isPropertyAccessExpression(left)) {\n assignmentTarget = factory.createPropertyAccessExpression(propertyAccessTarget, left.name);\n left = factory.createPropertyAccessExpression(propertyAccessTargetAssignment, left.name);\n }\n else {\n var elementAccessArgumentSimpleCopiable = ts.isSimpleCopiableExpression(left.argumentExpression);\n var elementAccessArgument = elementAccessArgumentSimpleCopiable ? left.argumentExpression :\n factory.createTempVariable(hoistVariableDeclaration);\n assignmentTarget = factory.createElementAccessExpression(propertyAccessTarget, elementAccessArgument);\n left = factory.createElementAccessExpression(propertyAccessTargetAssignment, elementAccessArgumentSimpleCopiable ? left.argumentExpression : factory.createAssignment(elementAccessArgument, left.argumentExpression));\n }\n }\n return factory.createBinaryExpression(left, nonAssignmentOperator, factory.createParenthesizedExpression(factory.createAssignment(assignmentTarget, right)));\n }\n }\n ts.transformES2021 = transformES2021;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformESNext(context) {\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n if ((node.transformFlags & 4 /* ContainsESNext */) === 0) {\n return node;\n }\n switch (node.kind) {\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n }\n ts.transformESNext = transformESNext;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformJsx(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory;\n var compilerOptions = context.getCompilerOptions();\n var currentSourceFile;\n var currentFileState;\n return ts.chainBundle(context, transformSourceFile);\n function getCurrentFileNameExpression() {\n if (currentFileState.filenameDeclaration) {\n return currentFileState.filenameDeclaration.name;\n }\n var declaration = factory.createVariableDeclaration(factory.createUniqueName(\"_jsxFileName\", 16 /* Optimistic */ | 32 /* FileLevel */), /*exclaimationToken*/ undefined, /*type*/ undefined, factory.createStringLiteral(currentSourceFile.fileName));\n currentFileState.filenameDeclaration = declaration;\n return currentFileState.filenameDeclaration.name;\n }\n function getJsxFactoryCalleePrimitive(childrenLength) {\n return compilerOptions.jsx === 5 /* ReactJSXDev */ ? \"jsxDEV\" : childrenLength > 1 ? \"jsxs\" : \"jsx\";\n }\n function getJsxFactoryCallee(childrenLength) {\n var type = getJsxFactoryCalleePrimitive(childrenLength);\n return getImplicitImportForName(type);\n }\n function getImplicitJsxFragmentReference() {\n return getImplicitImportForName(\"Fragment\");\n }\n function getImplicitImportForName(name) {\n var _a, _b;\n var importSource = name === \"createElement\"\n ? currentFileState.importSpecifier\n : ts.getJSXRuntimeImport(currentFileState.importSpecifier, compilerOptions);\n var existing = (_b = (_a = currentFileState.utilizedImplicitRuntimeImports) === null || _a === void 0 ? void 0 : _a.get(importSource)) === null || _b === void 0 ? void 0 : _b.get(name);\n if (existing) {\n return existing.name;\n }\n if (!currentFileState.utilizedImplicitRuntimeImports) {\n currentFileState.utilizedImplicitRuntimeImports = ts.createMap();\n }\n var specifierSourceImports = currentFileState.utilizedImplicitRuntimeImports.get(importSource);\n if (!specifierSourceImports) {\n specifierSourceImports = ts.createMap();\n currentFileState.utilizedImplicitRuntimeImports.set(importSource, specifierSourceImports);\n }\n var generatedName = factory.createUniqueName(\"_\" + name, 16 /* Optimistic */ | 32 /* FileLevel */ | 64 /* AllowNameSubstitution */);\n var specifier = factory.createImportSpecifier(factory.createIdentifier(name), generatedName);\n generatedName.generatedImportReference = specifier;\n specifierSourceImports.set(name, specifier);\n return generatedName;\n }\n /**\n * Transform JSX-specific syntax in a SourceFile.\n *\n * @param node A SourceFile node.\n */\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n currentSourceFile = node;\n currentFileState = {};\n currentFileState.importSpecifier = ts.getJSXImplicitImportBase(compilerOptions, node);\n var visited = ts.visitEachChild(node, visitor, context);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n var statements = visited.statements;\n if (currentFileState.filenameDeclaration) {\n statements = ts.insertStatementAfterCustomPrologue(statements.slice(), factory.createVariableStatement(/*modifiers*/ undefined, factory.createVariableDeclarationList([currentFileState.filenameDeclaration], 2 /* Const */)));\n }\n if (currentFileState.utilizedImplicitRuntimeImports) {\n for (var _i = 0, _a = ts.arrayFrom(currentFileState.utilizedImplicitRuntimeImports.entries()); _i < _a.length; _i++) {\n var _b = _a[_i], importSource = _b[0], importSpecifiersMap = _b[1];\n if (ts.isExternalModule(node)) {\n // Add `import` statement\n var importStatement = factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, factory.createImportClause(/*typeOnly*/ false, /*name*/ undefined, factory.createNamedImports(ts.arrayFrom(importSpecifiersMap.values()))), factory.createStringLiteral(importSource));\n ts.setParentRecursive(importStatement, /*incremental*/ false);\n statements = ts.insertStatementAfterCustomPrologue(statements.slice(), importStatement);\n }\n else if (ts.isExternalOrCommonJsModule(node)) {\n // Add `require` statement\n var requireStatement = factory.createVariableStatement(/*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.createObjectBindingPattern(ts.map(ts.arrayFrom(importSpecifiersMap.values()), function (s) { return factory.createBindingElement(/*dotdotdot*/ undefined, s.propertyName, s.name); })), \n /*exclaimationToken*/ undefined, \n /*type*/ undefined, factory.createCallExpression(factory.createIdentifier(\"require\"), /*typeArguments*/ undefined, [factory.createStringLiteral(importSource)]))\n ], 2 /* Const */));\n ts.setParentRecursive(requireStatement, /*incremental*/ false);\n statements = ts.insertStatementAfterCustomPrologue(statements.slice(), requireStatement);\n }\n else {\n // Do nothing (script file) - consider an error in the checker?\n }\n }\n }\n if (statements !== visited.statements) {\n visited = factory.updateSourceFile(visited, statements);\n }\n currentFileState = undefined;\n return visited;\n }\n function visitor(node) {\n if (node.transformFlags & 2 /* ContainsJsx */) {\n return visitorWorker(node);\n }\n else {\n return node;\n }\n }\n function visitorWorker(node) {\n switch (node.kind) {\n case 276 /* JsxElement */:\n return visitJsxElement(node, /*isChild*/ false);\n case 277 /* JsxSelfClosingElement */:\n return visitJsxSelfClosingElement(node, /*isChild*/ false);\n case 280 /* JsxFragment */:\n return visitJsxFragment(node, /*isChild*/ false);\n case 286 /* JsxExpression */:\n return visitJsxExpression(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function transformJsxChildToExpression(node) {\n switch (node.kind) {\n case 11 /* JsxText */:\n return visitJsxText(node);\n case 286 /* JsxExpression */:\n return visitJsxExpression(node);\n case 276 /* JsxElement */:\n return visitJsxElement(node, /*isChild*/ true);\n case 277 /* JsxSelfClosingElement */:\n return visitJsxSelfClosingElement(node, /*isChild*/ true);\n case 280 /* JsxFragment */:\n return visitJsxFragment(node, /*isChild*/ true);\n default:\n return ts.Debug.failBadSyntaxKind(node);\n }\n }\n /**\n * The react jsx/jsxs transform falls back to `createElement` when an explicit `key` argument comes after a spread\n */\n function hasKeyAfterPropsSpread(node) {\n var spread = false;\n for (var _i = 0, _a = node.attributes.properties; _i < _a.length; _i++) {\n var elem = _a[_i];\n if (ts.isJsxSpreadAttribute(elem)) {\n spread = true;\n }\n else if (spread && ts.isJsxAttribute(elem) && elem.name.escapedText === \"key\") {\n return true;\n }\n }\n return false;\n }\n function shouldUseCreateElement(node) {\n return currentFileState.importSpecifier === undefined || hasKeyAfterPropsSpread(node);\n }\n function visitJsxElement(node, isChild) {\n var tagTransform = shouldUseCreateElement(node.openingElement) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX;\n return tagTransform(node.openingElement, node.children, isChild, /*location*/ node);\n }\n function visitJsxSelfClosingElement(node, isChild) {\n var tagTransform = shouldUseCreateElement(node) ? visitJsxOpeningLikeElementCreateElement : visitJsxOpeningLikeElementJSX;\n return tagTransform(node, /*children*/ undefined, isChild, /*location*/ node);\n }\n function visitJsxFragment(node, isChild) {\n var tagTransform = currentFileState.importSpecifier === undefined ? visitJsxOpeningFragmentCreateElement : visitJsxOpeningFragmentJSX;\n return tagTransform(node.openingFragment, node.children, isChild, /*location*/ node);\n }\n function convertJsxChildrenToChildrenPropObject(children) {\n var nonWhitespaceChildren = ts.getSemanticJsxChildren(children);\n if (ts.length(nonWhitespaceChildren) === 1) {\n var result_13 = transformJsxChildToExpression(nonWhitespaceChildren[0]);\n return result_13 && factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"children\", result_13)\n ]);\n }\n var result = ts.mapDefined(children, transformJsxChildToExpression);\n return !result.length ? undefined : factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"children\", factory.createArrayLiteralExpression(result))\n ]);\n }\n function visitJsxOpeningLikeElementJSX(node, children, isChild, location) {\n var tagName = getTagName(node);\n var objectProperties;\n var keyAttr = ts.find(node.attributes.properties, function (p) { return !!p.name && ts.isIdentifier(p.name) && p.name.escapedText === \"key\"; });\n var attrs = keyAttr ? ts.filter(node.attributes.properties, function (p) { return p !== keyAttr; }) : node.attributes.properties;\n var segments = [];\n if (attrs.length) {\n // Map spans of JsxAttribute nodes into object literals and spans\n // of JsxSpreadAttribute nodes into expressions.\n segments = ts.flatten(ts.spanMap(attrs, ts.isJsxSpreadAttribute, function (attrs, isSpread) { return isSpread\n ? ts.map(attrs, transformJsxSpreadAttributeToExpression)\n : factory.createObjectLiteralExpression(ts.map(attrs, transformJsxAttributeToObjectLiteralElement)); }));\n if (ts.isJsxSpreadAttribute(attrs[0])) {\n // We must always emit at least one object literal before a spread\n // argument.factory.createObjectLiteral\n segments.unshift(factory.createObjectLiteralExpression());\n }\n }\n if (children && children.length) {\n var result = convertJsxChildrenToChildrenPropObject(children);\n if (result) {\n segments.push(result);\n }\n }\n if (segments.length === 0) {\n objectProperties = factory.createObjectLiteralExpression([]);\n // When there are no attributes, React wants {}\n }\n else {\n // Either emit one big object literal (no spread attribs), or\n // a call to the __assign helper.\n objectProperties = ts.singleOrUndefined(segments) || emitHelpers().createAssignHelper(segments);\n }\n return visitJsxOpeningLikeElementOrFragmentJSX(tagName, objectProperties, keyAttr, ts.length(ts.getSemanticJsxChildren(children || ts.emptyArray)), isChild, location);\n }\n function visitJsxOpeningLikeElementOrFragmentJSX(tagName, objectProperties, keyAttr, childrenLength, isChild, location) {\n var args = [tagName, objectProperties, !keyAttr ? factory.createVoidZero() : transformJsxAttributeInitializer(keyAttr.initializer)];\n if (compilerOptions.jsx === 5 /* ReactJSXDev */) {\n var originalFile = ts.getOriginalNode(currentSourceFile);\n if (originalFile && ts.isSourceFile(originalFile)) {\n // isStaticChildren development flag\n args.push(childrenLength > 1 ? factory.createTrue() : factory.createFalse());\n // __source development flag\n var lineCol = ts.getLineAndCharacterOfPosition(originalFile, location.pos);\n args.push(factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"fileName\", getCurrentFileNameExpression()),\n factory.createPropertyAssignment(\"lineNumber\", factory.createNumericLiteral(lineCol.line + 1)),\n factory.createPropertyAssignment(\"columnNumber\", factory.createNumericLiteral(lineCol.character + 1))\n ]));\n // __self development flag\n args.push(factory.createThis());\n }\n }\n var element = ts.setTextRange(factory.createCallExpression(getJsxFactoryCallee(childrenLength), /*typeArguments*/ undefined, args), location);\n if (isChild) {\n ts.startOnNewLine(element);\n }\n return element;\n }\n function visitJsxOpeningLikeElementCreateElement(node, children, isChild, location) {\n var tagName = getTagName(node);\n var objectProperties;\n var attrs = node.attributes.properties;\n if (attrs.length === 0) {\n objectProperties = factory.createNull();\n // When there are no attributes, React wants \"null\"\n }\n else {\n var target = compilerOptions.target;\n if (target && target >= 5 /* ES2018 */) {\n objectProperties = factory.createObjectLiteralExpression(ts.flatten(ts.spanMap(attrs, ts.isJsxSpreadAttribute, function (attrs, isSpread) {\n return isSpread ? ts.map(attrs, transformJsxSpreadAttributeToSpreadAssignment) : ts.map(attrs, transformJsxAttributeToObjectLiteralElement);\n })));\n }\n else {\n // Map spans of JsxAttribute nodes into object literals and spans\n // of JsxSpreadAttribute nodes into expressions.\n var segments = ts.flatten(ts.spanMap(attrs, ts.isJsxSpreadAttribute, function (attrs, isSpread) { return isSpread\n ? ts.map(attrs, transformJsxSpreadAttributeToExpression)\n : factory.createObjectLiteralExpression(ts.map(attrs, transformJsxAttributeToObjectLiteralElement)); }));\n if (ts.isJsxSpreadAttribute(attrs[0])) {\n // We must always emit at least one object literal before a spread\n // argument.factory.createObjectLiteral\n segments.unshift(factory.createObjectLiteralExpression());\n }\n // Either emit one big object literal (no spread attribs), or\n // a call to the __assign helper.\n objectProperties = ts.singleOrUndefined(segments);\n if (!objectProperties) {\n objectProperties = emitHelpers().createAssignHelper(segments);\n }\n }\n }\n var callee = currentFileState.importSpecifier === undefined\n ? ts.createJsxFactoryExpression(factory, context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), compilerOptions.reactNamespace, // TODO: GH#18217\n node)\n : getImplicitImportForName(\"createElement\");\n var element = ts.createExpressionForJsxElement(factory, callee, tagName, objectProperties, ts.mapDefined(children, transformJsxChildToExpression), location);\n if (isChild) {\n ts.startOnNewLine(element);\n }\n return element;\n }\n function visitJsxOpeningFragmentJSX(_node, children, isChild, location) {\n var childrenProps;\n if (children && children.length) {\n var result = convertJsxChildrenToChildrenPropObject(children);\n if (result) {\n childrenProps = result;\n }\n }\n return visitJsxOpeningLikeElementOrFragmentJSX(getImplicitJsxFragmentReference(), childrenProps || factory.createObjectLiteralExpression([]), \n /*keyAttr*/ undefined, ts.length(ts.getSemanticJsxChildren(children)), isChild, location);\n }\n function visitJsxOpeningFragmentCreateElement(node, children, isChild, location) {\n var element = ts.createExpressionForJsxFragment(factory, context.getEmitResolver().getJsxFactoryEntity(currentSourceFile), context.getEmitResolver().getJsxFragmentFactoryEntity(currentSourceFile), compilerOptions.reactNamespace, // TODO: GH#18217\n ts.mapDefined(children, transformJsxChildToExpression), node, location);\n if (isChild) {\n ts.startOnNewLine(element);\n }\n return element;\n }\n function transformJsxSpreadAttributeToSpreadAssignment(node) {\n return factory.createSpreadAssignment(ts.visitNode(node.expression, visitor, ts.isExpression));\n }\n function transformJsxSpreadAttributeToExpression(node) {\n return ts.visitNode(node.expression, visitor, ts.isExpression);\n }\n function transformJsxAttributeToObjectLiteralElement(node) {\n var name = getAttributeName(node);\n var expression = transformJsxAttributeInitializer(node.initializer);\n return factory.createPropertyAssignment(name, expression);\n }\n function transformJsxAttributeInitializer(node) {\n if (node === undefined) {\n return factory.createTrue();\n }\n else if (node.kind === 10 /* StringLiteral */) {\n // Always recreate the literal to escape any escape sequences or newlines which may be in the original jsx string and which\n // Need to be escaped to be handled correctly in a normal string\n var singleQuote = node.singleQuote !== undefined ? node.singleQuote : !ts.isStringDoubleQuoted(node, currentSourceFile);\n var literal = factory.createStringLiteral(tryDecodeEntities(node.text) || node.text, singleQuote);\n return ts.setTextRange(literal, node);\n }\n else if (node.kind === 286 /* JsxExpression */) {\n if (node.expression === undefined) {\n return factory.createTrue();\n }\n return ts.visitNode(node.expression, visitor, ts.isExpression);\n }\n else {\n return ts.Debug.failBadSyntaxKind(node);\n }\n }\n function visitJsxText(node) {\n var fixed = fixupWhitespaceAndDecodeEntities(node.text);\n return fixed === undefined ? undefined : factory.createStringLiteral(fixed);\n }\n /**\n * JSX trims whitespace at the end and beginning of lines, except that the\n * start/end of a tag is considered a start/end of a line only if that line is\n * on the same line as the closing tag. See examples in\n * tests/cases/conformance/jsx/tsxReactEmitWhitespace.tsx\n * See also https://www.w3.org/TR/html4/struct/text.html#h-9.1 and https://www.w3.org/TR/CSS2/text.html#white-space-model\n *\n * An equivalent algorithm would be:\n * - If there is only one line, return it.\n * - If there is only whitespace (but multiple lines), return `undefined`.\n * - Split the text into lines.\n * - 'trimRight' the first line, 'trimLeft' the last line, 'trim' middle lines.\n * - Decode entities on each line (individually).\n * - Remove empty lines and join the rest with \" \".\n */\n function fixupWhitespaceAndDecodeEntities(text) {\n var acc;\n // First non-whitespace character on this line.\n var firstNonWhitespace = 0;\n // Last non-whitespace character on this line.\n var lastNonWhitespace = -1;\n // These initial values are special because the first line is:\n // firstNonWhitespace = 0 to indicate that we want leading whitsepace,\n // but lastNonWhitespace = -1 as a special flag to indicate that we *don't* include the line if it's all whitespace.\n for (var i = 0; i < text.length; i++) {\n var c = text.charCodeAt(i);\n if (ts.isLineBreak(c)) {\n // If we've seen any non-whitespace characters on this line, add the 'trim' of the line.\n // (lastNonWhitespace === -1 is a special flag to detect whether the first line is all whitespace.)\n if (firstNonWhitespace !== -1 && lastNonWhitespace !== -1) {\n acc = addLineOfJsxText(acc, text.substr(firstNonWhitespace, lastNonWhitespace - firstNonWhitespace + 1));\n }\n // Reset firstNonWhitespace for the next line.\n // Don't bother to reset lastNonWhitespace because we ignore it if firstNonWhitespace = -1.\n firstNonWhitespace = -1;\n }\n else if (!ts.isWhiteSpaceSingleLine(c)) {\n lastNonWhitespace = i;\n if (firstNonWhitespace === -1) {\n firstNonWhitespace = i;\n }\n }\n }\n return firstNonWhitespace !== -1\n // Last line had a non-whitespace character. Emit the 'trimLeft', meaning keep trailing whitespace.\n ? addLineOfJsxText(acc, text.substr(firstNonWhitespace))\n // Last line was all whitespace, so ignore it\n : acc;\n }\n function addLineOfJsxText(acc, trimmedLine) {\n // We do not escape the string here as that is handled by the printer\n // when it emits the literal. We do, however, need to decode JSX entities.\n var decoded = decodeEntities(trimmedLine);\n return acc === undefined ? decoded : acc + \" \" + decoded;\n }\n /**\n * Replace entities like \" \", \"{\", and \"�\" with the characters they encode.\n * See https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references\n */\n function decodeEntities(text) {\n return text.replace(/&((#((\\d+)|x([\\da-fA-F]+)))|(\\w+));/g, function (match, _all, _number, _digits, decimal, hex, word) {\n if (decimal) {\n return ts.utf16EncodeAsString(parseInt(decimal, 10));\n }\n else if (hex) {\n return ts.utf16EncodeAsString(parseInt(hex, 16));\n }\n else {\n var ch = entities.get(word);\n // If this is not a valid entity, then just use `match` (replace it with itself, i.e. don't replace)\n return ch ? ts.utf16EncodeAsString(ch) : match;\n }\n });\n }\n /** Like `decodeEntities` but returns `undefined` if there were no entities to decode. */\n function tryDecodeEntities(text) {\n var decoded = decodeEntities(text);\n return decoded === text ? undefined : decoded;\n }\n function getTagName(node) {\n if (node.kind === 276 /* JsxElement */) {\n return getTagName(node.openingElement);\n }\n else {\n var name = node.tagName;\n if (ts.isIdentifier(name) && ts.isIntrinsicJsxName(name.escapedText)) {\n return factory.createStringLiteral(ts.idText(name));\n }\n else {\n return ts.createExpressionFromEntityName(factory, name);\n }\n }\n }\n /**\n * Emit an attribute name, which is quoted if it needs to be quoted. Because\n * these emit into an object literal property name, we don't need to be worried\n * about keywords, just non-identifier characters\n */\n function getAttributeName(node) {\n var name = node.name;\n var text = ts.idText(name);\n if (/^[A-Za-z_]\\w*$/.test(text)) {\n return name;\n }\n else {\n return factory.createStringLiteral(text);\n }\n }\n function visitJsxExpression(node) {\n return ts.visitNode(node.expression, visitor, ts.isExpression);\n }\n }\n ts.transformJsx = transformJsx;\n var entities = new ts.Map(ts.getEntries({\n quot: 0x0022,\n amp: 0x0026,\n apos: 0x0027,\n lt: 0x003C,\n gt: 0x003E,\n nbsp: 0x00A0,\n iexcl: 0x00A1,\n cent: 0x00A2,\n pound: 0x00A3,\n curren: 0x00A4,\n yen: 0x00A5,\n brvbar: 0x00A6,\n sect: 0x00A7,\n uml: 0x00A8,\n copy: 0x00A9,\n ordf: 0x00AA,\n laquo: 0x00AB,\n not: 0x00AC,\n shy: 0x00AD,\n reg: 0x00AE,\n macr: 0x00AF,\n deg: 0x00B0,\n plusmn: 0x00B1,\n sup2: 0x00B2,\n sup3: 0x00B3,\n acute: 0x00B4,\n micro: 0x00B5,\n para: 0x00B6,\n middot: 0x00B7,\n cedil: 0x00B8,\n sup1: 0x00B9,\n ordm: 0x00BA,\n raquo: 0x00BB,\n frac14: 0x00BC,\n frac12: 0x00BD,\n frac34: 0x00BE,\n iquest: 0x00BF,\n Agrave: 0x00C0,\n Aacute: 0x00C1,\n Acirc: 0x00C2,\n Atilde: 0x00C3,\n Auml: 0x00C4,\n Aring: 0x00C5,\n AElig: 0x00C6,\n Ccedil: 0x00C7,\n Egrave: 0x00C8,\n Eacute: 0x00C9,\n Ecirc: 0x00CA,\n Euml: 0x00CB,\n Igrave: 0x00CC,\n Iacute: 0x00CD,\n Icirc: 0x00CE,\n Iuml: 0x00CF,\n ETH: 0x00D0,\n Ntilde: 0x00D1,\n Ograve: 0x00D2,\n Oacute: 0x00D3,\n Ocirc: 0x00D4,\n Otilde: 0x00D5,\n Ouml: 0x00D6,\n times: 0x00D7,\n Oslash: 0x00D8,\n Ugrave: 0x00D9,\n Uacute: 0x00DA,\n Ucirc: 0x00DB,\n Uuml: 0x00DC,\n Yacute: 0x00DD,\n THORN: 0x00DE,\n szlig: 0x00DF,\n agrave: 0x00E0,\n aacute: 0x00E1,\n acirc: 0x00E2,\n atilde: 0x00E3,\n auml: 0x00E4,\n aring: 0x00E5,\n aelig: 0x00E6,\n ccedil: 0x00E7,\n egrave: 0x00E8,\n eacute: 0x00E9,\n ecirc: 0x00EA,\n euml: 0x00EB,\n igrave: 0x00EC,\n iacute: 0x00ED,\n icirc: 0x00EE,\n iuml: 0x00EF,\n eth: 0x00F0,\n ntilde: 0x00F1,\n ograve: 0x00F2,\n oacute: 0x00F3,\n ocirc: 0x00F4,\n otilde: 0x00F5,\n ouml: 0x00F6,\n divide: 0x00F7,\n oslash: 0x00F8,\n ugrave: 0x00F9,\n uacute: 0x00FA,\n ucirc: 0x00FB,\n uuml: 0x00FC,\n yacute: 0x00FD,\n thorn: 0x00FE,\n yuml: 0x00FF,\n OElig: 0x0152,\n oelig: 0x0153,\n Scaron: 0x0160,\n scaron: 0x0161,\n Yuml: 0x0178,\n fnof: 0x0192,\n circ: 0x02C6,\n tilde: 0x02DC,\n Alpha: 0x0391,\n Beta: 0x0392,\n Gamma: 0x0393,\n Delta: 0x0394,\n Epsilon: 0x0395,\n Zeta: 0x0396,\n Eta: 0x0397,\n Theta: 0x0398,\n Iota: 0x0399,\n Kappa: 0x039A,\n Lambda: 0x039B,\n Mu: 0x039C,\n Nu: 0x039D,\n Xi: 0x039E,\n Omicron: 0x039F,\n Pi: 0x03A0,\n Rho: 0x03A1,\n Sigma: 0x03A3,\n Tau: 0x03A4,\n Upsilon: 0x03A5,\n Phi: 0x03A6,\n Chi: 0x03A7,\n Psi: 0x03A8,\n Omega: 0x03A9,\n alpha: 0x03B1,\n beta: 0x03B2,\n gamma: 0x03B3,\n delta: 0x03B4,\n epsilon: 0x03B5,\n zeta: 0x03B6,\n eta: 0x03B7,\n theta: 0x03B8,\n iota: 0x03B9,\n kappa: 0x03BA,\n lambda: 0x03BB,\n mu: 0x03BC,\n nu: 0x03BD,\n xi: 0x03BE,\n omicron: 0x03BF,\n pi: 0x03C0,\n rho: 0x03C1,\n sigmaf: 0x03C2,\n sigma: 0x03C3,\n tau: 0x03C4,\n upsilon: 0x03C5,\n phi: 0x03C6,\n chi: 0x03C7,\n psi: 0x03C8,\n omega: 0x03C9,\n thetasym: 0x03D1,\n upsih: 0x03D2,\n piv: 0x03D6,\n ensp: 0x2002,\n emsp: 0x2003,\n thinsp: 0x2009,\n zwnj: 0x200C,\n zwj: 0x200D,\n lrm: 0x200E,\n rlm: 0x200F,\n ndash: 0x2013,\n mdash: 0x2014,\n lsquo: 0x2018,\n rsquo: 0x2019,\n sbquo: 0x201A,\n ldquo: 0x201C,\n rdquo: 0x201D,\n bdquo: 0x201E,\n dagger: 0x2020,\n Dagger: 0x2021,\n bull: 0x2022,\n hellip: 0x2026,\n permil: 0x2030,\n prime: 0x2032,\n Prime: 0x2033,\n lsaquo: 0x2039,\n rsaquo: 0x203A,\n oline: 0x203E,\n frasl: 0x2044,\n euro: 0x20AC,\n image: 0x2111,\n weierp: 0x2118,\n real: 0x211C,\n trade: 0x2122,\n alefsym: 0x2135,\n larr: 0x2190,\n uarr: 0x2191,\n rarr: 0x2192,\n darr: 0x2193,\n harr: 0x2194,\n crarr: 0x21B5,\n lArr: 0x21D0,\n uArr: 0x21D1,\n rArr: 0x21D2,\n dArr: 0x21D3,\n hArr: 0x21D4,\n forall: 0x2200,\n part: 0x2202,\n exist: 0x2203,\n empty: 0x2205,\n nabla: 0x2207,\n isin: 0x2208,\n notin: 0x2209,\n ni: 0x220B,\n prod: 0x220F,\n sum: 0x2211,\n minus: 0x2212,\n lowast: 0x2217,\n radic: 0x221A,\n prop: 0x221D,\n infin: 0x221E,\n ang: 0x2220,\n and: 0x2227,\n or: 0x2228,\n cap: 0x2229,\n cup: 0x222A,\n int: 0x222B,\n there4: 0x2234,\n sim: 0x223C,\n cong: 0x2245,\n asymp: 0x2248,\n ne: 0x2260,\n equiv: 0x2261,\n le: 0x2264,\n ge: 0x2265,\n sub: 0x2282,\n sup: 0x2283,\n nsub: 0x2284,\n sube: 0x2286,\n supe: 0x2287,\n oplus: 0x2295,\n otimes: 0x2297,\n perp: 0x22A5,\n sdot: 0x22C5,\n lceil: 0x2308,\n rceil: 0x2309,\n lfloor: 0x230A,\n rfloor: 0x230B,\n lang: 0x2329,\n rang: 0x232A,\n loz: 0x25CA,\n spades: 0x2660,\n clubs: 0x2663,\n hearts: 0x2665,\n diams: 0x2666\n }));\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformES2016(context) {\n var factory = context.factory, hoistVariableDeclaration = context.hoistVariableDeclaration;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n if ((node.transformFlags & 256 /* ContainsES2016 */) === 0) {\n return node;\n }\n switch (node.kind) {\n case 219 /* BinaryExpression */:\n return visitBinaryExpression(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitBinaryExpression(node) {\n switch (node.operatorToken.kind) {\n case 67 /* AsteriskAsteriskEqualsToken */:\n return visitExponentiationAssignmentExpression(node);\n case 42 /* AsteriskAsteriskToken */:\n return visitExponentiationExpression(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitExponentiationAssignmentExpression(node) {\n var target;\n var value;\n var left = ts.visitNode(node.left, visitor, ts.isExpression);\n var right = ts.visitNode(node.right, visitor, ts.isExpression);\n if (ts.isElementAccessExpression(left)) {\n // Transforms `a[x] **= b` into `(_a = a)[_x = x] = Math.pow(_a[_x], b)`\n var expressionTemp = factory.createTempVariable(hoistVariableDeclaration);\n var argumentExpressionTemp = factory.createTempVariable(hoistVariableDeclaration);\n target = ts.setTextRange(factory.createElementAccessExpression(ts.setTextRange(factory.createAssignment(expressionTemp, left.expression), left.expression), ts.setTextRange(factory.createAssignment(argumentExpressionTemp, left.argumentExpression), left.argumentExpression)), left);\n value = ts.setTextRange(factory.createElementAccessExpression(expressionTemp, argumentExpressionTemp), left);\n }\n else if (ts.isPropertyAccessExpression(left)) {\n // Transforms `a.x **= b` into `(_a = a).x = Math.pow(_a.x, b)`\n var expressionTemp = factory.createTempVariable(hoistVariableDeclaration);\n target = ts.setTextRange(factory.createPropertyAccessExpression(ts.setTextRange(factory.createAssignment(expressionTemp, left.expression), left.expression), left.name), left);\n value = ts.setTextRange(factory.createPropertyAccessExpression(expressionTemp, left.name), left);\n }\n else {\n // Transforms `a **= b` into `a = Math.pow(a, b)`\n target = left;\n value = left;\n }\n return ts.setTextRange(factory.createAssignment(target, ts.setTextRange(factory.createGlobalMethodCall(\"Math\", \"pow\", [value, right]), node)), node);\n }\n function visitExponentiationExpression(node) {\n // Transforms `a ** b` into `Math.pow(a, b)`\n var left = ts.visitNode(node.left, visitor, ts.isExpression);\n var right = ts.visitNode(node.right, visitor, ts.isExpression);\n return ts.setTextRange(factory.createGlobalMethodCall(\"Math\", \"pow\", [left, right]), node);\n }\n }\n ts.transformES2016 = transformES2016;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var ES2015SubstitutionFlags;\n (function (ES2015SubstitutionFlags) {\n /** Enables substitutions for captured `this` */\n ES2015SubstitutionFlags[ES2015SubstitutionFlags[\"CapturedThis\"] = 1] = \"CapturedThis\";\n /** Enables substitutions for block-scoped bindings. */\n ES2015SubstitutionFlags[ES2015SubstitutionFlags[\"BlockScopedBindings\"] = 2] = \"BlockScopedBindings\";\n })(ES2015SubstitutionFlags || (ES2015SubstitutionFlags = {}));\n var LoopOutParameterFlags;\n (function (LoopOutParameterFlags) {\n LoopOutParameterFlags[LoopOutParameterFlags[\"Body\"] = 1] = \"Body\";\n LoopOutParameterFlags[LoopOutParameterFlags[\"Initializer\"] = 2] = \"Initializer\";\n })(LoopOutParameterFlags || (LoopOutParameterFlags = {}));\n var CopyDirection;\n (function (CopyDirection) {\n CopyDirection[CopyDirection[\"ToOriginal\"] = 0] = \"ToOriginal\";\n CopyDirection[CopyDirection[\"ToOutParameter\"] = 1] = \"ToOutParameter\";\n })(CopyDirection || (CopyDirection = {}));\n var Jump;\n (function (Jump) {\n Jump[Jump[\"Break\"] = 2] = \"Break\";\n Jump[Jump[\"Continue\"] = 4] = \"Continue\";\n Jump[Jump[\"Return\"] = 8] = \"Return\";\n })(Jump || (Jump = {}));\n // Facts we track as we traverse the tree\n var HierarchyFacts;\n (function (HierarchyFacts) {\n HierarchyFacts[HierarchyFacts[\"None\"] = 0] = \"None\";\n //\n // Ancestor facts\n //\n HierarchyFacts[HierarchyFacts[\"Function\"] = 1] = \"Function\";\n HierarchyFacts[HierarchyFacts[\"ArrowFunction\"] = 2] = \"ArrowFunction\";\n HierarchyFacts[HierarchyFacts[\"AsyncFunctionBody\"] = 4] = \"AsyncFunctionBody\";\n HierarchyFacts[HierarchyFacts[\"NonStaticClassElement\"] = 8] = \"NonStaticClassElement\";\n HierarchyFacts[HierarchyFacts[\"CapturesThis\"] = 16] = \"CapturesThis\";\n HierarchyFacts[HierarchyFacts[\"ExportedVariableStatement\"] = 32] = \"ExportedVariableStatement\";\n HierarchyFacts[HierarchyFacts[\"TopLevel\"] = 64] = \"TopLevel\";\n HierarchyFacts[HierarchyFacts[\"Block\"] = 128] = \"Block\";\n HierarchyFacts[HierarchyFacts[\"IterationStatement\"] = 256] = \"IterationStatement\";\n HierarchyFacts[HierarchyFacts[\"IterationStatementBlock\"] = 512] = \"IterationStatementBlock\";\n HierarchyFacts[HierarchyFacts[\"IterationContainer\"] = 1024] = \"IterationContainer\";\n HierarchyFacts[HierarchyFacts[\"ForStatement\"] = 2048] = \"ForStatement\";\n HierarchyFacts[HierarchyFacts[\"ForInOrForOfStatement\"] = 4096] = \"ForInOrForOfStatement\";\n HierarchyFacts[HierarchyFacts[\"ConstructorWithCapturedSuper\"] = 8192] = \"ConstructorWithCapturedSuper\";\n HierarchyFacts[HierarchyFacts[\"StaticInitializer\"] = 16384] = \"StaticInitializer\";\n // NOTE: do not add more ancestor flags without also updating AncestorFactsMask below.\n // NOTE: when adding a new ancestor flag, be sure to update the subtree flags below.\n //\n // Ancestor masks\n //\n HierarchyFacts[HierarchyFacts[\"AncestorFactsMask\"] = 32767] = \"AncestorFactsMask\";\n // We are always in *some* kind of block scope, but only specific block-scope containers are\n // top-level or Blocks.\n HierarchyFacts[HierarchyFacts[\"BlockScopeIncludes\"] = 0] = \"BlockScopeIncludes\";\n HierarchyFacts[HierarchyFacts[\"BlockScopeExcludes\"] = 7104] = \"BlockScopeExcludes\";\n // A source file is a top-level block scope.\n HierarchyFacts[HierarchyFacts[\"SourceFileIncludes\"] = 64] = \"SourceFileIncludes\";\n HierarchyFacts[HierarchyFacts[\"SourceFileExcludes\"] = 8064] = \"SourceFileExcludes\";\n // Functions, methods, and accessors are both new lexical scopes and new block scopes.\n HierarchyFacts[HierarchyFacts[\"FunctionIncludes\"] = 65] = \"FunctionIncludes\";\n HierarchyFacts[HierarchyFacts[\"FunctionExcludes\"] = 32670] = \"FunctionExcludes\";\n HierarchyFacts[HierarchyFacts[\"AsyncFunctionBodyIncludes\"] = 69] = \"AsyncFunctionBodyIncludes\";\n HierarchyFacts[HierarchyFacts[\"AsyncFunctionBodyExcludes\"] = 32662] = \"AsyncFunctionBodyExcludes\";\n // Arrow functions are lexically scoped to their container, but are new block scopes.\n HierarchyFacts[HierarchyFacts[\"ArrowFunctionIncludes\"] = 66] = \"ArrowFunctionIncludes\";\n HierarchyFacts[HierarchyFacts[\"ArrowFunctionExcludes\"] = 15232] = \"ArrowFunctionExcludes\";\n // Constructors are both new lexical scopes and new block scopes. Constructors are also\n // always considered non-static members of a class.\n HierarchyFacts[HierarchyFacts[\"ConstructorIncludes\"] = 73] = \"ConstructorIncludes\";\n HierarchyFacts[HierarchyFacts[\"ConstructorExcludes\"] = 32662] = \"ConstructorExcludes\";\n // 'do' and 'while' statements are not block scopes. We track that the subtree is contained\n // within an IterationStatement to indicate whether the embedded statement is an\n // IterationStatementBlock.\n HierarchyFacts[HierarchyFacts[\"DoOrWhileStatementIncludes\"] = 1280] = \"DoOrWhileStatementIncludes\";\n HierarchyFacts[HierarchyFacts[\"DoOrWhileStatementExcludes\"] = 0] = \"DoOrWhileStatementExcludes\";\n // 'for' statements are new block scopes and have special handling for 'let' declarations.\n HierarchyFacts[HierarchyFacts[\"ForStatementIncludes\"] = 3328] = \"ForStatementIncludes\";\n HierarchyFacts[HierarchyFacts[\"ForStatementExcludes\"] = 5056] = \"ForStatementExcludes\";\n // 'for-in' and 'for-of' statements are new block scopes and have special handling for\n // 'let' declarations.\n HierarchyFacts[HierarchyFacts[\"ForInOrForOfStatementIncludes\"] = 5376] = \"ForInOrForOfStatementIncludes\";\n HierarchyFacts[HierarchyFacts[\"ForInOrForOfStatementExcludes\"] = 3008] = \"ForInOrForOfStatementExcludes\";\n // Blocks (other than function bodies) are new block scopes.\n HierarchyFacts[HierarchyFacts[\"BlockIncludes\"] = 128] = \"BlockIncludes\";\n HierarchyFacts[HierarchyFacts[\"BlockExcludes\"] = 6976] = \"BlockExcludes\";\n HierarchyFacts[HierarchyFacts[\"IterationStatementBlockIncludes\"] = 512] = \"IterationStatementBlockIncludes\";\n HierarchyFacts[HierarchyFacts[\"IterationStatementBlockExcludes\"] = 7104] = \"IterationStatementBlockExcludes\";\n HierarchyFacts[HierarchyFacts[\"StaticInitializerIncludes\"] = 16449] = \"StaticInitializerIncludes\";\n HierarchyFacts[HierarchyFacts[\"StaticInitializerExcludes\"] = 32670] = \"StaticInitializerExcludes\";\n //\n // Subtree facts\n //\n HierarchyFacts[HierarchyFacts[\"NewTarget\"] = 32768] = \"NewTarget\";\n HierarchyFacts[HierarchyFacts[\"CapturedLexicalThis\"] = 65536] = \"CapturedLexicalThis\";\n //\n // Subtree masks\n //\n HierarchyFacts[HierarchyFacts[\"SubtreeFactsMask\"] = -32768] = \"SubtreeFactsMask\";\n HierarchyFacts[HierarchyFacts[\"ArrowFunctionSubtreeExcludes\"] = 0] = \"ArrowFunctionSubtreeExcludes\";\n HierarchyFacts[HierarchyFacts[\"FunctionSubtreeExcludes\"] = 98304] = \"FunctionSubtreeExcludes\";\n })(HierarchyFacts || (HierarchyFacts = {}));\n var SpreadSegmentKind;\n (function (SpreadSegmentKind) {\n SpreadSegmentKind[SpreadSegmentKind[\"None\"] = 0] = \"None\";\n SpreadSegmentKind[SpreadSegmentKind[\"UnpackedSpread\"] = 1] = \"UnpackedSpread\";\n SpreadSegmentKind[SpreadSegmentKind[\"PackedSpread\"] = 2] = \"PackedSpread\";\n })(SpreadSegmentKind || (SpreadSegmentKind = {}));\n function createSpreadSegment(kind, expression) {\n return { kind: kind, expression: expression };\n }\n function transformES2015(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory, startLexicalEnvironment = context.startLexicalEnvironment, resumeLexicalEnvironment = context.resumeLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var compilerOptions = context.getCompilerOptions();\n var resolver = context.getEmitResolver();\n var previousOnSubstituteNode = context.onSubstituteNode;\n var previousOnEmitNode = context.onEmitNode;\n context.onEmitNode = onEmitNode;\n context.onSubstituteNode = onSubstituteNode;\n var currentSourceFile;\n var currentText;\n var hierarchyFacts;\n var taggedTemplateStringDeclarations;\n function recordTaggedTemplateString(temp) {\n taggedTemplateStringDeclarations = ts.append(taggedTemplateStringDeclarations, factory.createVariableDeclaration(temp));\n }\n /**\n * Used to track if we are emitting body of the converted loop\n */\n var convertedLoopState;\n /**\n * Keeps track of whether substitutions have been enabled for specific cases.\n * They are persisted between each SourceFile transformation and should not\n * be reset.\n */\n var enabledSubstitutions;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n currentSourceFile = node;\n currentText = node.text;\n var visited = visitSourceFile(node);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n currentSourceFile = undefined;\n currentText = undefined;\n taggedTemplateStringDeclarations = undefined;\n hierarchyFacts = 0 /* None */;\n return visited;\n }\n /**\n * Sets the `HierarchyFacts` for this node prior to visiting this node's subtree, returning the facts set prior to modification.\n * @param excludeFacts The existing `HierarchyFacts` to reset before visiting the subtree.\n * @param includeFacts The new `HierarchyFacts` to set before visiting the subtree.\n */\n function enterSubtree(excludeFacts, includeFacts) {\n var ancestorFacts = hierarchyFacts;\n hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & 32767 /* AncestorFactsMask */;\n return ancestorFacts;\n }\n /**\n * Restores the `HierarchyFacts` for this node's ancestor after visiting this node's\n * subtree, propagating specific facts from the subtree.\n * @param ancestorFacts The `HierarchyFacts` of the ancestor to restore after visiting the subtree.\n * @param excludeFacts The existing `HierarchyFacts` of the subtree that should not be propagated.\n * @param includeFacts The new `HierarchyFacts` of the subtree that should be propagated.\n */\n function exitSubtree(ancestorFacts, excludeFacts, includeFacts) {\n hierarchyFacts = (hierarchyFacts & ~excludeFacts | includeFacts) & -32768 /* SubtreeFactsMask */ | ancestorFacts;\n }\n function isReturnVoidStatementInConstructorWithCapturedSuper(node) {\n return (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */) !== 0\n && node.kind === 245 /* ReturnStatement */\n && !node.expression;\n }\n function isOrMayContainReturnCompletion(node) {\n return node.transformFlags & 2097152 /* ContainsHoistedDeclarationOrCompletion */\n && (ts.isReturnStatement(node)\n || ts.isIfStatement(node)\n || ts.isWithStatement(node)\n || ts.isSwitchStatement(node)\n || ts.isCaseBlock(node)\n || ts.isCaseClause(node)\n || ts.isDefaultClause(node)\n || ts.isTryStatement(node)\n || ts.isCatchClause(node)\n || ts.isLabeledStatement(node)\n || ts.isIterationStatement(node, /*lookInLabeledStatements*/ false)\n || ts.isBlock(node));\n }\n function shouldVisitNode(node) {\n return (node.transformFlags & 512 /* ContainsES2015 */) !== 0\n || convertedLoopState !== undefined\n || (hierarchyFacts & 8192 /* ConstructorWithCapturedSuper */ && isOrMayContainReturnCompletion(node))\n || (ts.isIterationStatement(node, /*lookInLabeledStatements*/ false) && shouldConvertIterationStatement(node))\n || (ts.getEmitFlags(node) & 33554432 /* TypeScriptClassWrapper */) !== 0;\n }\n function visitor(node) {\n return shouldVisitNode(node) ? visitorWorker(node, /*expressionResultIsUnused*/ false) : node;\n }\n function visitorWithUnusedExpressionResult(node) {\n return shouldVisitNode(node) ? visitorWorker(node, /*expressionResultIsUnused*/ true) : node;\n }\n function classWrapperStatementVisitor(node) {\n if (shouldVisitNode(node)) {\n var original = ts.getOriginalNode(node);\n if (ts.isPropertyDeclaration(original) && ts.hasStaticModifier(original)) {\n var ancestorFacts = enterSubtree(32670 /* StaticInitializerExcludes */, 16449 /* StaticInitializerIncludes */);\n var result = visitorWorker(node, /*expressionResultIsUnused*/ false);\n exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */);\n return result;\n }\n return visitorWorker(node, /*expressionResultIsUnused*/ false);\n }\n return node;\n }\n function callExpressionVisitor(node) {\n if (node.kind === 106 /* SuperKeyword */) {\n return visitSuperKeyword(/*isExpressionOfCall*/ true);\n }\n return visitor(node);\n }\n function visitorWorker(node, expressionResultIsUnused) {\n switch (node.kind) {\n case 124 /* StaticKeyword */:\n return undefined; // elide static keyword\n case 255 /* ClassDeclaration */:\n return visitClassDeclaration(node);\n case 224 /* ClassExpression */:\n return visitClassExpression(node);\n case 162 /* Parameter */:\n return visitParameter(node);\n case 254 /* FunctionDeclaration */:\n return visitFunctionDeclaration(node);\n case 212 /* ArrowFunction */:\n return visitArrowFunction(node);\n case 211 /* FunctionExpression */:\n return visitFunctionExpression(node);\n case 252 /* VariableDeclaration */:\n return visitVariableDeclaration(node);\n case 79 /* Identifier */:\n return visitIdentifier(node);\n case 253 /* VariableDeclarationList */:\n return visitVariableDeclarationList(node);\n case 247 /* SwitchStatement */:\n return visitSwitchStatement(node);\n case 261 /* CaseBlock */:\n return visitCaseBlock(node);\n case 233 /* Block */:\n return visitBlock(node, /*isFunctionBody*/ false);\n case 244 /* BreakStatement */:\n case 243 /* ContinueStatement */:\n return visitBreakOrContinueStatement(node);\n case 248 /* LabeledStatement */:\n return visitLabeledStatement(node);\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n return visitDoOrWhileStatement(node, /*outermostLabeledStatement*/ undefined);\n case 240 /* ForStatement */:\n return visitForStatement(node, /*outermostLabeledStatement*/ undefined);\n case 241 /* ForInStatement */:\n return visitForInStatement(node, /*outermostLabeledStatement*/ undefined);\n case 242 /* ForOfStatement */:\n return visitForOfStatement(node, /*outermostLabeledStatement*/ undefined);\n case 236 /* ExpressionStatement */:\n return visitExpressionStatement(node);\n case 203 /* ObjectLiteralExpression */:\n return visitObjectLiteralExpression(node);\n case 290 /* CatchClause */:\n return visitCatchClause(node);\n case 292 /* ShorthandPropertyAssignment */:\n return visitShorthandPropertyAssignment(node);\n case 160 /* ComputedPropertyName */:\n return visitComputedPropertyName(node);\n case 202 /* ArrayLiteralExpression */:\n return visitArrayLiteralExpression(node);\n case 206 /* CallExpression */:\n return visitCallExpression(node);\n case 207 /* NewExpression */:\n return visitNewExpression(node);\n case 210 /* ParenthesizedExpression */:\n return visitParenthesizedExpression(node, expressionResultIsUnused);\n case 219 /* BinaryExpression */:\n return visitBinaryExpression(node, expressionResultIsUnused);\n case 346 /* CommaListExpression */:\n return visitCommaListExpression(node, expressionResultIsUnused);\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 15 /* TemplateHead */:\n case 16 /* TemplateMiddle */:\n case 17 /* TemplateTail */:\n return visitTemplateLiteral(node);\n case 10 /* StringLiteral */:\n return visitStringLiteral(node);\n case 8 /* NumericLiteral */:\n return visitNumericLiteral(node);\n case 208 /* TaggedTemplateExpression */:\n return visitTaggedTemplateExpression(node);\n case 221 /* TemplateExpression */:\n return visitTemplateExpression(node);\n case 222 /* YieldExpression */:\n return visitYieldExpression(node);\n case 223 /* SpreadElement */:\n return visitSpreadElement(node);\n case 106 /* SuperKeyword */:\n return visitSuperKeyword(/*isExpressionOfCall*/ false);\n case 108 /* ThisKeyword */:\n return visitThisKeyword(node);\n case 229 /* MetaProperty */:\n return visitMetaProperty(node);\n case 167 /* MethodDeclaration */:\n return visitMethodDeclaration(node);\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return visitAccessorDeclaration(node);\n case 235 /* VariableStatement */:\n return visitVariableStatement(node);\n case 245 /* ReturnStatement */:\n return visitReturnStatement(node);\n case 215 /* VoidExpression */:\n return visitVoidExpression(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitSourceFile(node) {\n var ancestorFacts = enterSubtree(8064 /* SourceFileExcludes */, 64 /* SourceFileIncludes */);\n var prologue = [];\n var statements = [];\n startLexicalEnvironment();\n var statementOffset = factory.copyPrologue(node.statements, prologue, /*ensureUseStrict*/ false, visitor);\n ts.addRange(statements, ts.visitNodes(node.statements, visitor, ts.isStatement, statementOffset));\n if (taggedTemplateStringDeclarations) {\n statements.push(factory.createVariableStatement(/*modifiers*/ undefined, factory.createVariableDeclarationList(taggedTemplateStringDeclarations)));\n }\n factory.mergeLexicalEnvironment(prologue, endLexicalEnvironment());\n insertCaptureThisForNodeIfNeeded(prologue, node);\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray(ts.concatenate(prologue, statements)), node.statements));\n }\n function visitSwitchStatement(node) {\n if (convertedLoopState !== undefined) {\n var savedAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps;\n // for switch statement allow only non-labeled break\n convertedLoopState.allowedNonLabeledJumps |= 2 /* Break */;\n var result = ts.visitEachChild(node, visitor, context);\n convertedLoopState.allowedNonLabeledJumps = savedAllowedNonLabeledJumps;\n return result;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitCaseBlock(node) {\n var ancestorFacts = enterSubtree(7104 /* BlockScopeExcludes */, 0 /* BlockScopeIncludes */);\n var updated = ts.visitEachChild(node, visitor, context);\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return updated;\n }\n function returnCapturedThis(node) {\n return ts.setOriginalNode(factory.createReturnStatement(factory.createUniqueName(\"_this\", 16 /* Optimistic */ | 32 /* FileLevel */)), node);\n }\n function visitReturnStatement(node) {\n if (convertedLoopState) {\n convertedLoopState.nonLocalJumps |= 8 /* Return */;\n if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) {\n node = returnCapturedThis(node);\n }\n return factory.createReturnStatement(factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(factory.createIdentifier(\"value\"), node.expression\n ? ts.visitNode(node.expression, visitor, ts.isExpression)\n : factory.createVoidZero())\n ]));\n }\n else if (isReturnVoidStatementInConstructorWithCapturedSuper(node)) {\n return returnCapturedThis(node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitThisKeyword(node) {\n if (hierarchyFacts & 2 /* ArrowFunction */ && !(hierarchyFacts & 16384 /* StaticInitializer */)) {\n hierarchyFacts |= 65536 /* CapturedLexicalThis */;\n }\n if (convertedLoopState) {\n if (hierarchyFacts & 2 /* ArrowFunction */) {\n // if the enclosing function is an ArrowFunction then we use the captured 'this' keyword.\n convertedLoopState.containsLexicalThis = true;\n return node;\n }\n return convertedLoopState.thisName || (convertedLoopState.thisName = factory.createUniqueName(\"this\"));\n }\n return node;\n }\n function visitVoidExpression(node) {\n return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);\n }\n function visitIdentifier(node) {\n if (!convertedLoopState) {\n return node;\n }\n if (resolver.isArgumentsLocalBinding(node)) {\n return convertedLoopState.argumentsName || (convertedLoopState.argumentsName = factory.createUniqueName(\"arguments\"));\n }\n return node;\n }\n function visitBreakOrContinueStatement(node) {\n if (convertedLoopState) {\n // check if we can emit break/continue as is\n // it is possible if either\n // - break/continue is labeled and label is located inside the converted loop\n // - break/continue is non-labeled and located in non-converted loop/switch statement\n var jump = node.kind === 244 /* BreakStatement */ ? 2 /* Break */ : 4 /* Continue */;\n var canUseBreakOrContinue = (node.label && convertedLoopState.labels && convertedLoopState.labels.get(ts.idText(node.label))) ||\n (!node.label && (convertedLoopState.allowedNonLabeledJumps & jump));\n if (!canUseBreakOrContinue) {\n var labelMarker = void 0;\n var label = node.label;\n if (!label) {\n if (node.kind === 244 /* BreakStatement */) {\n convertedLoopState.nonLocalJumps |= 2 /* Break */;\n labelMarker = \"break\";\n }\n else {\n convertedLoopState.nonLocalJumps |= 4 /* Continue */;\n // note: return value is emitted only to simplify debugging, call to converted loop body does not do any dispatching on it.\n labelMarker = \"continue\";\n }\n }\n else {\n if (node.kind === 244 /* BreakStatement */) {\n labelMarker = \"break-\" + label.escapedText;\n setLabeledJump(convertedLoopState, /*isBreak*/ true, ts.idText(label), labelMarker);\n }\n else {\n labelMarker = \"continue-\" + label.escapedText;\n setLabeledJump(convertedLoopState, /*isBreak*/ false, ts.idText(label), labelMarker);\n }\n }\n var returnExpression = factory.createStringLiteral(labelMarker);\n if (convertedLoopState.loopOutParameters.length) {\n var outParams = convertedLoopState.loopOutParameters;\n var expr = void 0;\n for (var i = 0; i < outParams.length; i++) {\n var copyExpr = copyOutParameter(outParams[i], 1 /* ToOutParameter */);\n if (i === 0) {\n expr = copyExpr;\n }\n else {\n expr = factory.createBinaryExpression(expr, 27 /* CommaToken */, copyExpr);\n }\n }\n returnExpression = factory.createBinaryExpression(expr, 27 /* CommaToken */, returnExpression);\n }\n return factory.createReturnStatement(returnExpression);\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a ClassDeclaration and transforms it into a variable statement.\n *\n * @param node A ClassDeclaration node.\n */\n function visitClassDeclaration(node) {\n // [source]\n // class C { }\n //\n // [output]\n // var C = (function () {\n // function C() {\n // }\n // return C;\n // }());\n var variable = factory.createVariableDeclaration(factory.getLocalName(node, /*allowComments*/ true), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, transformClassLikeDeclarationToExpression(node));\n ts.setOriginalNode(variable, node);\n var statements = [];\n var statement = factory.createVariableStatement(/*modifiers*/ undefined, factory.createVariableDeclarationList([variable]));\n ts.setOriginalNode(statement, node);\n ts.setTextRange(statement, node);\n ts.startOnNewLine(statement);\n statements.push(statement);\n // Add an `export default` statement for default exports (for `--target es5 --module es6`)\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n var exportStatement = ts.hasSyntacticModifier(node, 512 /* Default */)\n ? factory.createExportDefault(factory.getLocalName(node))\n : factory.createExternalModuleExport(factory.getLocalName(node));\n ts.setOriginalNode(exportStatement, statement);\n statements.push(exportStatement);\n }\n var emitFlags = ts.getEmitFlags(node);\n if ((emitFlags & 4194304 /* HasEndOfDeclarationMarker */) === 0) {\n // Add a DeclarationMarker as a marker for the end of the declaration\n statements.push(factory.createEndOfDeclarationMarker(node));\n ts.setEmitFlags(statement, emitFlags | 4194304 /* HasEndOfDeclarationMarker */);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits a ClassExpression and transforms it into an expression.\n *\n * @param node A ClassExpression node.\n */\n function visitClassExpression(node) {\n // [source]\n // C = class { }\n //\n // [output]\n // C = (function () {\n // function class_1() {\n // }\n // return class_1;\n // }())\n return transformClassLikeDeclarationToExpression(node);\n }\n /**\n * Transforms a ClassExpression or ClassDeclaration into an expression.\n *\n * @param node A ClassExpression or ClassDeclaration node.\n */\n function transformClassLikeDeclarationToExpression(node) {\n // [source]\n // class C extends D {\n // constructor() {}\n // method() {}\n // get prop() {}\n // set prop(v) {}\n // }\n //\n // [output]\n // (function (_super) {\n // __extends(C, _super);\n // function C() {\n // }\n // C.prototype.method = function () {}\n // Object.defineProperty(C.prototype, \"prop\", {\n // get: function() {},\n // set: function() {},\n // enumerable: true,\n // configurable: true\n // });\n // return C;\n // }(D))\n if (node.name) {\n enableSubstitutionsForBlockScopedBindings();\n }\n var extendsClauseElement = ts.getClassExtendsHeritageElement(node);\n var classFunction = factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, extendsClauseElement ? [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */))] : [], \n /*type*/ undefined, transformClassBody(node, extendsClauseElement));\n // To preserve the behavior of the old emitter, we explicitly indent\n // the body of the function here if it was requested in an earlier\n // transformation.\n ts.setEmitFlags(classFunction, (ts.getEmitFlags(node) & 65536 /* Indented */) | 524288 /* ReuseTempVariableScope */);\n // \"inner\" and \"outer\" below are added purely to preserve source map locations from\n // the old emitter\n var inner = factory.createPartiallyEmittedExpression(classFunction);\n ts.setTextRangeEnd(inner, node.end);\n ts.setEmitFlags(inner, 1536 /* NoComments */);\n var outer = factory.createPartiallyEmittedExpression(inner);\n ts.setTextRangeEnd(outer, ts.skipTrivia(currentText, node.pos));\n ts.setEmitFlags(outer, 1536 /* NoComments */);\n var result = factory.createParenthesizedExpression(factory.createCallExpression(outer, \n /*typeArguments*/ undefined, extendsClauseElement\n ? [ts.visitNode(extendsClauseElement.expression, visitor, ts.isExpression)]\n : []));\n ts.addSyntheticLeadingComment(result, 3 /* MultiLineCommentTrivia */, \"* @class \");\n return result;\n }\n /**\n * Transforms a ClassExpression or ClassDeclaration into a function body.\n *\n * @param node A ClassExpression or ClassDeclaration node.\n * @param extendsClauseElement The expression for the class `extends` clause.\n */\n function transformClassBody(node, extendsClauseElement) {\n var statements = [];\n var name = factory.getInternalName(node);\n var constructorLikeName = ts.isIdentifierANonContextualKeyword(name) ? factory.getGeneratedNameForNode(name) : name;\n startLexicalEnvironment();\n addExtendsHelperIfNeeded(statements, node, extendsClauseElement);\n addConstructor(statements, node, constructorLikeName, extendsClauseElement);\n addClassMembers(statements, node);\n // Create a synthetic text range for the return statement.\n var closingBraceLocation = ts.createTokenRange(ts.skipTrivia(currentText, node.members.end), 19 /* CloseBraceToken */);\n // The following partially-emitted expression exists purely to align our sourcemap\n // emit with the original emitter.\n var outer = factory.createPartiallyEmittedExpression(constructorLikeName);\n ts.setTextRangeEnd(outer, closingBraceLocation.end);\n ts.setEmitFlags(outer, 1536 /* NoComments */);\n var statement = factory.createReturnStatement(outer);\n ts.setTextRangePos(statement, closingBraceLocation.pos);\n ts.setEmitFlags(statement, 1536 /* NoComments */ | 384 /* NoTokenSourceMaps */);\n statements.push(statement);\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), /*location*/ node.members), /*multiLine*/ true);\n ts.setEmitFlags(block, 1536 /* NoComments */);\n return block;\n }\n /**\n * Adds a call to the `__extends` helper if needed for a class.\n *\n * @param statements The statements of the class body function.\n * @param node The ClassExpression or ClassDeclaration node.\n * @param extendsClauseElement The expression for the class `extends` clause.\n */\n function addExtendsHelperIfNeeded(statements, node, extendsClauseElement) {\n if (extendsClauseElement) {\n statements.push(ts.setTextRange(factory.createExpressionStatement(emitHelpers().createExtendsHelper(factory.getInternalName(node))), \n /*location*/ extendsClauseElement));\n }\n }\n /**\n * Adds the constructor of the class to a class body function.\n *\n * @param statements The statements of the class body function.\n * @param node The ClassExpression or ClassDeclaration node.\n * @param extendsClauseElement The expression for the class `extends` clause.\n */\n function addConstructor(statements, node, name, extendsClauseElement) {\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var ancestorFacts = enterSubtree(32662 /* ConstructorExcludes */, 73 /* ConstructorIncludes */);\n var constructor = ts.getFirstConstructorWithBody(node);\n var hasSynthesizedSuper = hasSynthesizedDefaultSuperCall(constructor, extendsClauseElement !== undefined);\n var constructorFunction = factory.createFunctionDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, name, \n /*typeParameters*/ undefined, transformConstructorParameters(constructor, hasSynthesizedSuper), \n /*type*/ undefined, transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper));\n ts.setTextRange(constructorFunction, constructor || node);\n if (extendsClauseElement) {\n ts.setEmitFlags(constructorFunction, 8 /* CapturesThis */);\n }\n statements.push(constructorFunction);\n exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */);\n convertedLoopState = savedConvertedLoopState;\n }\n /**\n * Transforms the parameters of the constructor declaration of a class.\n *\n * @param constructor The constructor for the class.\n * @param hasSynthesizedSuper A value indicating whether the constructor starts with a\n * synthesized `super` call.\n */\n function transformConstructorParameters(constructor, hasSynthesizedSuper) {\n // If the TypeScript transformer needed to synthesize a constructor for property\n // initializers, it would have also added a synthetic `...args` parameter and\n // `super` call.\n // If this is the case, we do not include the synthetic `...args` parameter and\n // will instead use the `arguments` object in ES5/3.\n return ts.visitParameterList(constructor && !hasSynthesizedSuper ? constructor.parameters : undefined, visitor, context)\n || [];\n }\n function createDefaultConstructorBody(node, isDerivedClass) {\n // We must be here because the user didn't write a constructor\n // but we needed to call 'super(...args)' anyway as per 14.5.14 of the ES2016 spec.\n // If that's the case we can just immediately return the result of a 'super()' call.\n var statements = [];\n resumeLexicalEnvironment();\n factory.mergeLexicalEnvironment(statements, endLexicalEnvironment());\n if (isDerivedClass) {\n // return _super !== null && _super.apply(this, arguments) || this;\n statements.push(factory.createReturnStatement(createDefaultSuperCallOrThis()));\n }\n var statementsArray = factory.createNodeArray(statements);\n ts.setTextRange(statementsArray, node.members);\n var block = factory.createBlock(statementsArray, /*multiLine*/ true);\n ts.setTextRange(block, node);\n ts.setEmitFlags(block, 1536 /* NoComments */);\n return block;\n }\n /**\n * Transforms the body of a constructor declaration of a class.\n *\n * @param constructor The constructor for the class.\n * @param node The node which contains the constructor.\n * @param extendsClauseElement The expression for the class `extends` clause.\n * @param hasSynthesizedSuper A value indicating whether the constructor starts with a\n * synthesized `super` call.\n */\n function transformConstructorBody(constructor, node, extendsClauseElement, hasSynthesizedSuper) {\n // determine whether the class is known syntactically to be a derived class (e.g. a\n // class that extends a value that is not syntactically known to be `null`).\n var isDerivedClass = !!extendsClauseElement && ts.skipOuterExpressions(extendsClauseElement.expression).kind !== 104 /* NullKeyword */;\n // When the subclass does not have a constructor, we synthesize a *default* constructor using the following\n // representation:\n //\n // ```\n // // es2015 (source)\n // class C extends Base { }\n //\n // // es5 (transformed)\n // var C = (function (_super) {\n // function C() {\n // return _super.apply(this, arguments) || this;\n // }\n // return C;\n // })(Base);\n // ```\n if (!constructor)\n return createDefaultConstructorBody(node, isDerivedClass);\n // The prologue will contain all leading standard and custom prologue statements added by this transform\n var prologue = [];\n var statements = [];\n resumeLexicalEnvironment();\n // If a super call has already been synthesized,\n // we're going to assume that we should just transform everything after that.\n // The assumption is that no prior step in the pipeline has added any prologue directives.\n var statementOffset = 0;\n if (!hasSynthesizedSuper)\n statementOffset = factory.copyStandardPrologue(constructor.body.statements, prologue, /*ensureUseStrict*/ false);\n addDefaultValueAssignmentsIfNeeded(statements, constructor);\n addRestParameterIfNeeded(statements, constructor, hasSynthesizedSuper);\n if (!hasSynthesizedSuper)\n statementOffset = factory.copyCustomPrologue(constructor.body.statements, statements, statementOffset, visitor);\n // If the first statement is a call to `super()`, visit the statement directly\n var superCallExpression;\n if (hasSynthesizedSuper) {\n superCallExpression = createDefaultSuperCallOrThis();\n }\n else if (isDerivedClass && statementOffset < constructor.body.statements.length) {\n var firstStatement = constructor.body.statements[statementOffset];\n if (ts.isExpressionStatement(firstStatement) && ts.isSuperCall(firstStatement.expression)) {\n superCallExpression = visitImmediateSuperCallInBody(firstStatement.expression);\n }\n }\n if (superCallExpression) {\n hierarchyFacts |= 8192 /* ConstructorWithCapturedSuper */;\n statementOffset++; // skip this statement, we will add it after visiting the rest of the body.\n }\n // visit the remaining statements\n ts.addRange(statements, ts.visitNodes(constructor.body.statements, visitor, ts.isStatement, /*start*/ statementOffset));\n factory.mergeLexicalEnvironment(prologue, endLexicalEnvironment());\n insertCaptureNewTargetIfNeeded(prologue, constructor, /*copyOnWrite*/ false);\n if (isDerivedClass) {\n if (superCallExpression && statementOffset === constructor.body.statements.length && !(constructor.body.transformFlags & 8192 /* ContainsLexicalThis */)) {\n // If the subclass constructor does *not* contain `this` and *ends* with a `super()` call, we will use the\n // following representation:\n //\n // ```\n // // es2015 (source)\n // class C extends Base {\n // constructor() {\n // super(\"foo\");\n // }\n // }\n //\n // // es5 (transformed)\n // var C = (function (_super) {\n // function C() {\n // return _super.call(this, \"foo\") || this;\n // }\n // return C;\n // })(Base);\n // ```\n var superCall = ts.cast(ts.cast(superCallExpression, ts.isBinaryExpression).left, ts.isCallExpression);\n var returnStatement = factory.createReturnStatement(superCallExpression);\n ts.setCommentRange(returnStatement, ts.getCommentRange(superCall));\n ts.setEmitFlags(superCall, 1536 /* NoComments */);\n statements.push(returnStatement);\n }\n else {\n // Otherwise, we will use the following transformed representation for calls to `super()` in a constructor:\n //\n // ```\n // // es2015 (source)\n // class C extends Base {\n // constructor() {\n // super(\"foo\");\n // this.x = 1;\n // }\n // }\n //\n // // es5 (transformed)\n // var C = (function (_super) {\n // function C() {\n // var _this = _super.call(this, \"foo\") || this;\n // _this.x = 1;\n // return _this;\n // }\n // return C;\n // })(Base);\n // ```\n // Since the `super()` call was the first statement, we insert the `this` capturing call to\n // `super()` at the top of the list of `statements` (after any pre-existing custom prologues).\n insertCaptureThisForNode(statements, constructor, superCallExpression || createActualThis());\n if (!isSufficientlyCoveredByReturnStatements(constructor.body)) {\n statements.push(factory.createReturnStatement(factory.createUniqueName(\"_this\", 16 /* Optimistic */ | 32 /* FileLevel */)));\n }\n }\n }\n else {\n // If a class is not derived from a base class or does not have a call to `super()`, `this` is only\n // captured when necessitated by an arrow function capturing the lexical `this`:\n //\n // ```\n // // es2015\n // class C {}\n //\n // // es5\n // var C = (function () {\n // function C() {\n // }\n // return C;\n // })();\n // ```\n insertCaptureThisForNodeIfNeeded(prologue, constructor);\n }\n var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(ts.concatenate(prologue, statements)), \n /*location*/ constructor.body.statements), \n /*multiLine*/ true);\n ts.setTextRange(block, constructor.body);\n return block;\n }\n /**\n * We want to try to avoid emitting a return statement in certain cases if a user already returned something.\n * It would generate obviously dead code, so we'll try to make things a little bit prettier\n * by doing a minimal check on whether some common patterns always explicitly return.\n */\n function isSufficientlyCoveredByReturnStatements(statement) {\n // A return statement is considered covered.\n if (statement.kind === 245 /* ReturnStatement */) {\n return true;\n }\n // An if-statement with two covered branches is covered.\n else if (statement.kind === 237 /* IfStatement */) {\n var ifStatement = statement;\n if (ifStatement.elseStatement) {\n return isSufficientlyCoveredByReturnStatements(ifStatement.thenStatement) &&\n isSufficientlyCoveredByReturnStatements(ifStatement.elseStatement);\n }\n }\n // A block is covered if it has a last statement which is covered.\n else if (statement.kind === 233 /* Block */) {\n var lastStatement = ts.lastOrUndefined(statement.statements);\n if (lastStatement && isSufficientlyCoveredByReturnStatements(lastStatement)) {\n return true;\n }\n }\n return false;\n }\n function createActualThis() {\n return ts.setEmitFlags(factory.createThis(), 4 /* NoSubstitution */);\n }\n function createDefaultSuperCallOrThis() {\n return factory.createLogicalOr(factory.createLogicalAnd(factory.createStrictInequality(factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */), factory.createNull()), factory.createFunctionApplyCall(factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */), createActualThis(), factory.createIdentifier(\"arguments\"))), createActualThis());\n }\n /**\n * Visits a parameter declaration.\n *\n * @param node A ParameterDeclaration node.\n */\n function visitParameter(node) {\n if (node.dotDotDotToken) {\n // rest parameters are elided\n return undefined;\n }\n else if (ts.isBindingPattern(node.name)) {\n // Binding patterns are converted into a generated name and are\n // evaluated inside the function body.\n return ts.setOriginalNode(ts.setTextRange(factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, factory.getGeneratedNameForNode(node), \n /*questionToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined), \n /*location*/ node), \n /*original*/ node);\n }\n else if (node.initializer) {\n // Initializers are elided\n return ts.setOriginalNode(ts.setTextRange(factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, node.name, \n /*questionToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined), \n /*location*/ node), \n /*original*/ node);\n }\n else {\n return node;\n }\n }\n function hasDefaultValueOrBindingPattern(node) {\n return node.initializer !== undefined\n || ts.isBindingPattern(node.name);\n }\n /**\n * Adds statements to the body of a function-like node if it contains parameters with\n * binding patterns or initializers.\n *\n * @param statements The statements for the new function body.\n * @param node A function-like node.\n */\n function addDefaultValueAssignmentsIfNeeded(statements, node) {\n if (!ts.some(node.parameters, hasDefaultValueOrBindingPattern)) {\n return false;\n }\n var added = false;\n for (var _i = 0, _a = node.parameters; _i < _a.length; _i++) {\n var parameter = _a[_i];\n var name = parameter.name, initializer = parameter.initializer, dotDotDotToken = parameter.dotDotDotToken;\n // A rest parameter cannot have a binding pattern or an initializer,\n // so let's just ignore it.\n if (dotDotDotToken) {\n continue;\n }\n if (ts.isBindingPattern(name)) {\n added = insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) || added;\n }\n else if (initializer) {\n insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer);\n added = true;\n }\n }\n return added;\n }\n /**\n * Adds statements to the body of a function-like node for parameters with binding patterns\n *\n * @param statements The statements for the new function body.\n * @param parameter The parameter for the function.\n * @param name The name of the parameter.\n * @param initializer The initializer for the parameter.\n */\n function insertDefaultValueAssignmentForBindingPattern(statements, parameter, name, initializer) {\n // In cases where a binding pattern is simply '[]' or '{}',\n // we usually don't want to emit a var declaration; however, in the presence\n // of an initializer, we must emit that expression to preserve side effects.\n if (name.elements.length > 0) {\n ts.insertStatementAfterCustomPrologue(statements, ts.setEmitFlags(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(ts.flattenDestructuringBinding(parameter, visitor, context, 0 /* All */, factory.getGeneratedNameForNode(parameter)))), 1048576 /* CustomPrologue */));\n return true;\n }\n else if (initializer) {\n ts.insertStatementAfterCustomPrologue(statements, ts.setEmitFlags(factory.createExpressionStatement(factory.createAssignment(factory.getGeneratedNameForNode(parameter), ts.visitNode(initializer, visitor, ts.isExpression))), 1048576 /* CustomPrologue */));\n return true;\n }\n return false;\n }\n /**\n * Adds statements to the body of a function-like node for parameters with initializers.\n *\n * @param statements The statements for the new function body.\n * @param parameter The parameter for the function.\n * @param name The name of the parameter.\n * @param initializer The initializer for the parameter.\n */\n function insertDefaultValueAssignmentForInitializer(statements, parameter, name, initializer) {\n initializer = ts.visitNode(initializer, visitor, ts.isExpression);\n var statement = factory.createIfStatement(factory.createTypeCheck(factory.cloneNode(name), \"undefined\"), ts.setEmitFlags(ts.setTextRange(factory.createBlock([\n factory.createExpressionStatement(ts.setEmitFlags(ts.setTextRange(factory.createAssignment(\n // TODO(rbuckton): Does this need to be parented?\n ts.setEmitFlags(ts.setParent(ts.setTextRange(factory.cloneNode(name), name), name.parent), 48 /* NoSourceMap */), ts.setEmitFlags(initializer, 48 /* NoSourceMap */ | ts.getEmitFlags(initializer) | 1536 /* NoComments */)), parameter), 1536 /* NoComments */))\n ]), parameter), 1 /* SingleLine */ | 32 /* NoTrailingSourceMap */ | 384 /* NoTokenSourceMaps */ | 1536 /* NoComments */));\n ts.startOnNewLine(statement);\n ts.setTextRange(statement, parameter);\n ts.setEmitFlags(statement, 384 /* NoTokenSourceMaps */ | 32 /* NoTrailingSourceMap */ | 1048576 /* CustomPrologue */ | 1536 /* NoComments */);\n ts.insertStatementAfterCustomPrologue(statements, statement);\n }\n /**\n * Gets a value indicating whether we need to add statements to handle a rest parameter.\n *\n * @param node A ParameterDeclaration node.\n * @param inConstructorWithSynthesizedSuper A value indicating whether the parameter is\n * part of a constructor declaration with a\n * synthesized call to `super`\n */\n function shouldAddRestParameter(node, inConstructorWithSynthesizedSuper) {\n return !!(node && node.dotDotDotToken && !inConstructorWithSynthesizedSuper);\n }\n /**\n * Adds statements to the body of a function-like node if it contains a rest parameter.\n *\n * @param statements The statements for the new function body.\n * @param node A function-like node.\n * @param inConstructorWithSynthesizedSuper A value indicating whether the parameter is\n * part of a constructor declaration with a\n * synthesized call to `super`\n */\n function addRestParameterIfNeeded(statements, node, inConstructorWithSynthesizedSuper) {\n var prologueStatements = [];\n var parameter = ts.lastOrUndefined(node.parameters);\n if (!shouldAddRestParameter(parameter, inConstructorWithSynthesizedSuper)) {\n return false;\n }\n // `declarationName` is the name of the local declaration for the parameter.\n // TODO(rbuckton): Does this need to be parented?\n var declarationName = parameter.name.kind === 79 /* Identifier */ ? ts.setParent(ts.setTextRange(factory.cloneNode(parameter.name), parameter.name), parameter.name.parent) : factory.createTempVariable(/*recordTempVariable*/ undefined);\n ts.setEmitFlags(declarationName, 48 /* NoSourceMap */);\n // `expressionName` is the name of the parameter used in expressions.\n var expressionName = parameter.name.kind === 79 /* Identifier */ ? factory.cloneNode(parameter.name) : declarationName;\n var restIndex = node.parameters.length - 1;\n var temp = factory.createLoopVariable();\n // var param = [];\n prologueStatements.push(ts.setEmitFlags(ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(declarationName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createArrayLiteralExpression([]))\n ])), \n /*location*/ parameter), 1048576 /* CustomPrologue */));\n // for (var _i = restIndex; _i < arguments.length; _i++) {\n // param[_i - restIndex] = arguments[_i];\n // }\n var forStatement = factory.createForStatement(ts.setTextRange(factory.createVariableDeclarationList([\n factory.createVariableDeclaration(temp, /*exclamationToken*/ undefined, /*type*/ undefined, factory.createNumericLiteral(restIndex))\n ]), parameter), ts.setTextRange(factory.createLessThan(temp, factory.createPropertyAccessExpression(factory.createIdentifier(\"arguments\"), \"length\")), parameter), ts.setTextRange(factory.createPostfixIncrement(temp), parameter), factory.createBlock([\n ts.startOnNewLine(ts.setTextRange(factory.createExpressionStatement(factory.createAssignment(factory.createElementAccessExpression(expressionName, restIndex === 0\n ? temp\n : factory.createSubtract(temp, factory.createNumericLiteral(restIndex))), factory.createElementAccessExpression(factory.createIdentifier(\"arguments\"), temp))), \n /*location*/ parameter))\n ]));\n ts.setEmitFlags(forStatement, 1048576 /* CustomPrologue */);\n ts.startOnNewLine(forStatement);\n prologueStatements.push(forStatement);\n if (parameter.name.kind !== 79 /* Identifier */) {\n // do the actual destructuring of the rest parameter if necessary\n prologueStatements.push(ts.setEmitFlags(ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(ts.flattenDestructuringBinding(parameter, visitor, context, 0 /* All */, expressionName))), parameter), 1048576 /* CustomPrologue */));\n }\n ts.insertStatementsAfterCustomPrologue(statements, prologueStatements);\n return true;\n }\n /**\n * Adds a statement to capture the `this` of a function declaration if it is needed.\n * NOTE: This must be executed *after* the subtree has been visited.\n *\n * @param statements The statements for the new function body.\n * @param node A node.\n */\n function insertCaptureThisForNodeIfNeeded(statements, node) {\n if (hierarchyFacts & 65536 /* CapturedLexicalThis */ && node.kind !== 212 /* ArrowFunction */) {\n insertCaptureThisForNode(statements, node, factory.createThis());\n return true;\n }\n return false;\n }\n function insertCaptureThisForNode(statements, node, initializer) {\n enableSubstitutionsForCapturedThis();\n var captureThisStatement = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.createUniqueName(\"_this\", 16 /* Optimistic */ | 32 /* FileLevel */), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, initializer)\n ]));\n ts.setEmitFlags(captureThisStatement, 1536 /* NoComments */ | 1048576 /* CustomPrologue */);\n ts.setSourceMapRange(captureThisStatement, node);\n ts.insertStatementAfterCustomPrologue(statements, captureThisStatement);\n }\n function insertCaptureNewTargetIfNeeded(statements, node, copyOnWrite) {\n if (hierarchyFacts & 32768 /* NewTarget */) {\n var newTarget = void 0;\n switch (node.kind) {\n case 212 /* ArrowFunction */:\n return statements;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // Methods and accessors cannot be constructors, so 'new.target' will\n // always return 'undefined'.\n newTarget = factory.createVoidZero();\n break;\n case 169 /* Constructor */:\n // Class constructors can only be called with `new`, so `this.constructor`\n // should be relatively safe to use.\n newTarget = factory.createPropertyAccessExpression(ts.setEmitFlags(factory.createThis(), 4 /* NoSubstitution */), \"constructor\");\n break;\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n // Functions can be called or constructed, and may have a `this` due to\n // being a member or when calling an imported function via `other_1.f()`.\n newTarget = factory.createConditionalExpression(factory.createLogicalAnd(ts.setEmitFlags(factory.createThis(), 4 /* NoSubstitution */), factory.createBinaryExpression(ts.setEmitFlags(factory.createThis(), 4 /* NoSubstitution */), 102 /* InstanceOfKeyword */, factory.getLocalName(node))), \n /*questionToken*/ undefined, factory.createPropertyAccessExpression(ts.setEmitFlags(factory.createThis(), 4 /* NoSubstitution */), \"constructor\"), \n /*colonToken*/ undefined, factory.createVoidZero());\n break;\n default:\n return ts.Debug.failBadSyntaxKind(node);\n }\n var captureNewTargetStatement = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.createUniqueName(\"_newTarget\", 16 /* Optimistic */ | 32 /* FileLevel */), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, newTarget)\n ]));\n ts.setEmitFlags(captureNewTargetStatement, 1536 /* NoComments */ | 1048576 /* CustomPrologue */);\n if (copyOnWrite) {\n statements = statements.slice();\n }\n ts.insertStatementAfterCustomPrologue(statements, captureNewTargetStatement);\n }\n return statements;\n }\n /**\n * Adds statements to the class body function for a class to define the members of the\n * class.\n *\n * @param statements The statements for the class body function.\n * @param node The ClassExpression or ClassDeclaration node.\n */\n function addClassMembers(statements, node) {\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n switch (member.kind) {\n case 232 /* SemicolonClassElement */:\n statements.push(transformSemicolonClassElementToStatement(member));\n break;\n case 167 /* MethodDeclaration */:\n statements.push(transformClassMethodDeclarationToStatement(getClassMemberPrefix(node, member), member, node));\n break;\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n var accessors = ts.getAllAccessorDeclarations(node.members, member);\n if (member === accessors.firstAccessor) {\n statements.push(transformAccessorsToStatement(getClassMemberPrefix(node, member), accessors, node));\n }\n break;\n case 169 /* Constructor */:\n case 168 /* ClassStaticBlockDeclaration */:\n // Constructors are handled in visitClassExpression/visitClassDeclaration\n break;\n default:\n ts.Debug.failBadSyntaxKind(member, currentSourceFile && currentSourceFile.fileName);\n break;\n }\n }\n }\n /**\n * Transforms a SemicolonClassElement into a statement for a class body function.\n *\n * @param member The SemicolonClassElement node.\n */\n function transformSemicolonClassElementToStatement(member) {\n return ts.setTextRange(factory.createEmptyStatement(), member);\n }\n /**\n * Transforms a MethodDeclaration into a statement for a class body function.\n *\n * @param receiver The receiver for the member.\n * @param member The MethodDeclaration node.\n */\n function transformClassMethodDeclarationToStatement(receiver, member, container) {\n var commentRange = ts.getCommentRange(member);\n var sourceMapRange = ts.getSourceMapRange(member);\n var memberFunction = transformFunctionLikeToExpression(member, /*location*/ member, /*name*/ undefined, container);\n var propertyName = ts.visitNode(member.name, visitor, ts.isPropertyName);\n var e;\n if (!ts.isPrivateIdentifier(propertyName) && ts.getUseDefineForClassFields(context.getCompilerOptions())) {\n var name = ts.isComputedPropertyName(propertyName) ? propertyName.expression\n : ts.isIdentifier(propertyName) ? factory.createStringLiteral(ts.unescapeLeadingUnderscores(propertyName.escapedText))\n : propertyName;\n e = factory.createObjectDefinePropertyCall(receiver, name, factory.createPropertyDescriptor({ value: memberFunction, enumerable: false, writable: true, configurable: true }));\n }\n else {\n var memberName = ts.createMemberAccessForPropertyName(factory, receiver, propertyName, /*location*/ member.name);\n e = factory.createAssignment(memberName, memberFunction);\n }\n ts.setEmitFlags(memberFunction, 1536 /* NoComments */);\n ts.setSourceMapRange(memberFunction, sourceMapRange);\n var statement = ts.setTextRange(factory.createExpressionStatement(e), /*location*/ member);\n ts.setOriginalNode(statement, member);\n ts.setCommentRange(statement, commentRange);\n // The location for the statement is used to emit comments only.\n // No source map should be emitted for this statement to align with the\n // old emitter.\n ts.setEmitFlags(statement, 48 /* NoSourceMap */);\n return statement;\n }\n /**\n * Transforms a set of related of get/set accessors into a statement for a class body function.\n *\n * @param receiver The receiver for the member.\n * @param accessors The set of related get/set accessors.\n */\n function transformAccessorsToStatement(receiver, accessors, container) {\n var statement = factory.createExpressionStatement(transformAccessorsToExpression(receiver, accessors, container, /*startsOnNewLine*/ false));\n // The location for the statement is used to emit source maps only.\n // No comments should be emitted for this statement to align with the\n // old emitter.\n ts.setEmitFlags(statement, 1536 /* NoComments */);\n ts.setSourceMapRange(statement, ts.getSourceMapRange(accessors.firstAccessor));\n return statement;\n }\n /**\n * Transforms a set of related get/set accessors into an expression for either a class\n * body function or an ObjectLiteralExpression with computed properties.\n *\n * @param receiver The receiver for the member.\n */\n function transformAccessorsToExpression(receiver, _a, container, startsOnNewLine) {\n var firstAccessor = _a.firstAccessor, getAccessor = _a.getAccessor, setAccessor = _a.setAccessor;\n // To align with source maps in the old emitter, the receiver and property name\n // arguments are both mapped contiguously to the accessor name.\n // TODO(rbuckton): Does this need to be parented?\n var target = ts.setParent(ts.setTextRange(factory.cloneNode(receiver), receiver), receiver.parent);\n ts.setEmitFlags(target, 1536 /* NoComments */ | 32 /* NoTrailingSourceMap */);\n ts.setSourceMapRange(target, firstAccessor.name);\n var visitedAccessorName = ts.visitNode(firstAccessor.name, visitor, ts.isPropertyName);\n if (ts.isPrivateIdentifier(visitedAccessorName)) {\n return ts.Debug.failBadSyntaxKind(visitedAccessorName, \"Encountered unhandled private identifier while transforming ES2015.\");\n }\n var propertyName = ts.createExpressionForPropertyName(factory, visitedAccessorName);\n ts.setEmitFlags(propertyName, 1536 /* NoComments */ | 16 /* NoLeadingSourceMap */);\n ts.setSourceMapRange(propertyName, firstAccessor.name);\n var properties = [];\n if (getAccessor) {\n var getterFunction = transformFunctionLikeToExpression(getAccessor, /*location*/ undefined, /*name*/ undefined, container);\n ts.setSourceMapRange(getterFunction, ts.getSourceMapRange(getAccessor));\n ts.setEmitFlags(getterFunction, 512 /* NoLeadingComments */);\n var getter = factory.createPropertyAssignment(\"get\", getterFunction);\n ts.setCommentRange(getter, ts.getCommentRange(getAccessor));\n properties.push(getter);\n }\n if (setAccessor) {\n var setterFunction = transformFunctionLikeToExpression(setAccessor, /*location*/ undefined, /*name*/ undefined, container);\n ts.setSourceMapRange(setterFunction, ts.getSourceMapRange(setAccessor));\n ts.setEmitFlags(setterFunction, 512 /* NoLeadingComments */);\n var setter = factory.createPropertyAssignment(\"set\", setterFunction);\n ts.setCommentRange(setter, ts.getCommentRange(setAccessor));\n properties.push(setter);\n }\n properties.push(factory.createPropertyAssignment(\"enumerable\", getAccessor || setAccessor ? factory.createFalse() : factory.createTrue()), factory.createPropertyAssignment(\"configurable\", factory.createTrue()));\n var call = factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Object\"), \"defineProperty\"), \n /*typeArguments*/ undefined, [\n target,\n propertyName,\n factory.createObjectLiteralExpression(properties, /*multiLine*/ true)\n ]);\n if (startsOnNewLine) {\n ts.startOnNewLine(call);\n }\n return call;\n }\n /**\n * Visits an ArrowFunction and transforms it into a FunctionExpression.\n *\n * @param node An ArrowFunction node.\n */\n function visitArrowFunction(node) {\n if (node.transformFlags & 8192 /* ContainsLexicalThis */ && !(hierarchyFacts & 16384 /* StaticInitializer */)) {\n hierarchyFacts |= 65536 /* CapturedLexicalThis */;\n }\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var ancestorFacts = enterSubtree(15232 /* ArrowFunctionExcludes */, 66 /* ArrowFunctionIncludes */);\n var func = factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, transformFunctionBody(node));\n ts.setTextRange(func, node);\n ts.setOriginalNode(func, node);\n ts.setEmitFlags(func, 8 /* CapturesThis */);\n // If an arrow function contains\n exitSubtree(ancestorFacts, 0 /* ArrowFunctionSubtreeExcludes */, 0 /* None */);\n convertedLoopState = savedConvertedLoopState;\n return func;\n }\n /**\n * Visits a FunctionExpression node.\n *\n * @param node a FunctionExpression node.\n */\n function visitFunctionExpression(node) {\n var ancestorFacts = ts.getEmitFlags(node) & 262144 /* AsyncFunctionBody */\n ? enterSubtree(32662 /* AsyncFunctionBodyExcludes */, 69 /* AsyncFunctionBodyIncludes */)\n : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */);\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var parameters = ts.visitParameterList(node.parameters, visitor, context);\n var body = transformFunctionBody(node);\n var name = hierarchyFacts & 32768 /* NewTarget */\n ? factory.getLocalName(node)\n : node.name;\n exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */);\n convertedLoopState = savedConvertedLoopState;\n return factory.updateFunctionExpression(node, \n /*modifiers*/ undefined, node.asteriskToken, name, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, body);\n }\n /**\n * Visits a FunctionDeclaration node.\n *\n * @param node a FunctionDeclaration node.\n */\n function visitFunctionDeclaration(node) {\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */);\n var parameters = ts.visitParameterList(node.parameters, visitor, context);\n var body = transformFunctionBody(node);\n var name = hierarchyFacts & 32768 /* NewTarget */\n ? factory.getLocalName(node)\n : node.name;\n exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */);\n convertedLoopState = savedConvertedLoopState;\n return factory.updateFunctionDeclaration(node, \n /*decorators*/ undefined, ts.visitNodes(node.modifiers, visitor, ts.isModifier), node.asteriskToken, name, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, body);\n }\n /**\n * Transforms a function-like node into a FunctionExpression.\n *\n * @param node The function-like node to transform.\n * @param location The source-map location for the new FunctionExpression.\n * @param name The name of the new FunctionExpression.\n */\n function transformFunctionLikeToExpression(node, location, name, container) {\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var ancestorFacts = container && ts.isClassLike(container) && !ts.isStatic(node)\n ? enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */ | 8 /* NonStaticClassElement */)\n : enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */);\n var parameters = ts.visitParameterList(node.parameters, visitor, context);\n var body = transformFunctionBody(node);\n if (hierarchyFacts & 32768 /* NewTarget */ && !name && (node.kind === 254 /* FunctionDeclaration */ || node.kind === 211 /* FunctionExpression */)) {\n name = factory.getGeneratedNameForNode(node);\n }\n exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */);\n convertedLoopState = savedConvertedLoopState;\n return ts.setOriginalNode(ts.setTextRange(factory.createFunctionExpression(\n /*modifiers*/ undefined, node.asteriskToken, name, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, body), location), \n /*original*/ node);\n }\n /**\n * Transforms the body of a function-like node.\n *\n * @param node A function-like node.\n */\n function transformFunctionBody(node) {\n var multiLine = false; // indicates whether the block *must* be emitted as multiple lines\n var singleLine = false; // indicates whether the block *may* be emitted as a single line\n var statementsLocation;\n var closeBraceLocation;\n var prologue = [];\n var statements = [];\n var body = node.body;\n var statementOffset;\n resumeLexicalEnvironment();\n if (ts.isBlock(body)) {\n // ensureUseStrict is false because no new prologue-directive should be added.\n // addStandardPrologue will put already-existing directives at the beginning of the target statement-array\n statementOffset = factory.copyStandardPrologue(body.statements, prologue, /*ensureUseStrict*/ false);\n statementOffset = factory.copyCustomPrologue(body.statements, statements, statementOffset, visitor, ts.isHoistedFunction);\n statementOffset = factory.copyCustomPrologue(body.statements, statements, statementOffset, visitor, ts.isHoistedVariableStatement);\n }\n multiLine = addDefaultValueAssignmentsIfNeeded(statements, node) || multiLine;\n multiLine = addRestParameterIfNeeded(statements, node, /*inConstructorWithSynthesizedSuper*/ false) || multiLine;\n if (ts.isBlock(body)) {\n // addCustomPrologue puts already-existing directives at the beginning of the target statement-array\n statementOffset = factory.copyCustomPrologue(body.statements, statements, statementOffset, visitor);\n statementsLocation = body.statements;\n ts.addRange(statements, ts.visitNodes(body.statements, visitor, ts.isStatement, statementOffset));\n // If the original body was a multi-line block, this must be a multi-line block.\n if (!multiLine && body.multiLine) {\n multiLine = true;\n }\n }\n else {\n ts.Debug.assert(node.kind === 212 /* ArrowFunction */);\n // To align with the old emitter, we use a synthetic end position on the location\n // for the statement list we synthesize when we down-level an arrow function with\n // an expression function body. This prevents both comments and source maps from\n // being emitted for the end position only.\n statementsLocation = ts.moveRangeEnd(body, -1);\n var equalsGreaterThanToken = node.equalsGreaterThanToken;\n if (!ts.nodeIsSynthesized(equalsGreaterThanToken) && !ts.nodeIsSynthesized(body)) {\n if (ts.rangeEndIsOnSameLineAsRangeStart(equalsGreaterThanToken, body, currentSourceFile)) {\n singleLine = true;\n }\n else {\n multiLine = true;\n }\n }\n var expression = ts.visitNode(body, visitor, ts.isExpression);\n var returnStatement = factory.createReturnStatement(expression);\n ts.setTextRange(returnStatement, body);\n ts.moveSyntheticComments(returnStatement, body);\n ts.setEmitFlags(returnStatement, 384 /* NoTokenSourceMaps */ | 32 /* NoTrailingSourceMap */ | 1024 /* NoTrailingComments */);\n statements.push(returnStatement);\n // To align with the source map emit for the old emitter, we set a custom\n // source map location for the close brace.\n closeBraceLocation = body;\n }\n factory.mergeLexicalEnvironment(prologue, endLexicalEnvironment());\n insertCaptureNewTargetIfNeeded(prologue, node, /*copyOnWrite*/ false);\n insertCaptureThisForNodeIfNeeded(prologue, node);\n // If we added any final generated statements, this must be a multi-line block\n if (ts.some(prologue)) {\n multiLine = true;\n }\n statements.unshift.apply(statements, prologue);\n if (ts.isBlock(body) && ts.arrayIsEqualTo(statements, body.statements)) {\n // no changes were made, preserve the tree\n return body;\n }\n var block = factory.createBlock(ts.setTextRange(factory.createNodeArray(statements), statementsLocation), multiLine);\n ts.setTextRange(block, node.body);\n if (!multiLine && singleLine) {\n ts.setEmitFlags(block, 1 /* SingleLine */);\n }\n if (closeBraceLocation) {\n ts.setTokenSourceMapRange(block, 19 /* CloseBraceToken */, closeBraceLocation);\n }\n ts.setOriginalNode(block, node.body);\n return block;\n }\n function visitBlock(node, isFunctionBody) {\n if (isFunctionBody) {\n // A function body is not a block scope.\n return ts.visitEachChild(node, visitor, context);\n }\n var ancestorFacts = hierarchyFacts & 256 /* IterationStatement */\n ? enterSubtree(7104 /* IterationStatementBlockExcludes */, 512 /* IterationStatementBlockIncludes */)\n : enterSubtree(6976 /* BlockExcludes */, 128 /* BlockIncludes */);\n var updated = ts.visitEachChild(node, visitor, context);\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return updated;\n }\n /**\n * Visits an ExpressionStatement that contains a destructuring assignment.\n *\n * @param node An ExpressionStatement node.\n */\n function visitExpressionStatement(node) {\n return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);\n }\n /**\n * Visits a ParenthesizedExpression that may contain a destructuring assignment.\n *\n * @param node A ParenthesizedExpression node.\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitParenthesizedExpression(node, expressionResultIsUnused) {\n return ts.visitEachChild(node, expressionResultIsUnused ? visitorWithUnusedExpressionResult : visitor, context);\n }\n /**\n * Visits a BinaryExpression that contains a destructuring assignment.\n *\n * @param node A BinaryExpression node.\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitBinaryExpression(node, expressionResultIsUnused) {\n // If we are here it is because this is a destructuring assignment.\n if (ts.isDestructuringAssignment(node)) {\n return ts.flattenDestructuringAssignment(node, visitor, context, 0 /* All */, !expressionResultIsUnused);\n }\n if (node.operatorToken.kind === 27 /* CommaToken */) {\n return factory.updateBinaryExpression(node, ts.visitNode(node.left, visitorWithUnusedExpressionResult, ts.isExpression), node.operatorToken, ts.visitNode(node.right, expressionResultIsUnused ? visitorWithUnusedExpressionResult : visitor, ts.isExpression));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * @param expressionResultIsUnused Indicates the result of an expression is unused by the parent node (i.e., the left side of a comma or the\n * expression of an `ExpressionStatement`).\n */\n function visitCommaListExpression(node, expressionResultIsUnused) {\n if (expressionResultIsUnused) {\n return ts.visitEachChild(node, visitorWithUnusedExpressionResult, context);\n }\n var result;\n for (var i = 0; i < node.elements.length; i++) {\n var element = node.elements[i];\n var visited = ts.visitNode(element, i < node.elements.length - 1 ? visitorWithUnusedExpressionResult : visitor, ts.isExpression);\n if (result || visited !== element) {\n result || (result = node.elements.slice(0, i));\n result.push(visited);\n }\n }\n var elements = result ? ts.setTextRange(factory.createNodeArray(result), node.elements) : node.elements;\n return factory.updateCommaListExpression(node, elements);\n }\n function isVariableStatementOfTypeScriptClassWrapper(node) {\n return node.declarationList.declarations.length === 1\n && !!node.declarationList.declarations[0].initializer\n && !!(ts.getEmitFlags(node.declarationList.declarations[0].initializer) & 33554432 /* TypeScriptClassWrapper */);\n }\n function visitVariableStatement(node) {\n var ancestorFacts = enterSubtree(0 /* None */, ts.hasSyntacticModifier(node, 1 /* Export */) ? 32 /* ExportedVariableStatement */ : 0 /* None */);\n var updated;\n if (convertedLoopState && (node.declarationList.flags & 3 /* BlockScoped */) === 0 && !isVariableStatementOfTypeScriptClassWrapper(node)) {\n // we are inside a converted loop - hoist variable declarations\n var assignments = void 0;\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n hoistVariableDeclarationDeclaredInConvertedLoop(convertedLoopState, decl);\n if (decl.initializer) {\n var assignment = void 0;\n if (ts.isBindingPattern(decl.name)) {\n assignment = ts.flattenDestructuringAssignment(decl, visitor, context, 0 /* All */);\n }\n else {\n assignment = factory.createBinaryExpression(decl.name, 63 /* EqualsToken */, ts.visitNode(decl.initializer, visitor, ts.isExpression));\n ts.setTextRange(assignment, decl);\n }\n assignments = ts.append(assignments, assignment);\n }\n }\n if (assignments) {\n updated = ts.setTextRange(factory.createExpressionStatement(factory.inlineExpressions(assignments)), node);\n }\n else {\n // none of declarations has initializer - the entire variable statement can be deleted\n updated = undefined;\n }\n }\n else {\n updated = ts.visitEachChild(node, visitor, context);\n }\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return updated;\n }\n /**\n * Visits a VariableDeclarationList that is block scoped (e.g. `let` or `const`).\n *\n * @param node A VariableDeclarationList node.\n */\n function visitVariableDeclarationList(node) {\n if (node.flags & 3 /* BlockScoped */ || node.transformFlags & 262144 /* ContainsBindingPattern */) {\n if (node.flags & 3 /* BlockScoped */) {\n enableSubstitutionsForBlockScopedBindings();\n }\n var declarations = ts.flatMap(node.declarations, node.flags & 1 /* Let */\n ? visitVariableDeclarationInLetDeclarationList\n : visitVariableDeclaration);\n var declarationList = factory.createVariableDeclarationList(declarations);\n ts.setOriginalNode(declarationList, node);\n ts.setTextRange(declarationList, node);\n ts.setCommentRange(declarationList, node);\n // If the first or last declaration is a binding pattern, we need to modify\n // the source map range for the declaration list.\n if (node.transformFlags & 262144 /* ContainsBindingPattern */\n && (ts.isBindingPattern(node.declarations[0].name) || ts.isBindingPattern(ts.last(node.declarations).name))) {\n ts.setSourceMapRange(declarationList, getRangeUnion(declarations));\n }\n return declarationList;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function getRangeUnion(declarations) {\n // declarations may not be sorted by position.\n // pos should be the minimum* position over all nodes (that's not -1), end should be the maximum end over all nodes.\n var pos = -1, end = -1;\n for (var _i = 0, declarations_9 = declarations; _i < declarations_9.length; _i++) {\n var node = declarations_9[_i];\n pos = pos === -1 ? node.pos : node.pos === -1 ? pos : Math.min(pos, node.pos);\n end = Math.max(end, node.end);\n }\n return ts.createRange(pos, end);\n }\n /**\n * Gets a value indicating whether we should emit an explicit initializer for a variable\n * declaration in a `let` declaration list.\n *\n * @param node A VariableDeclaration node.\n */\n function shouldEmitExplicitInitializerForLetDeclaration(node) {\n // Nested let bindings might need to be initialized explicitly to preserve\n // ES6 semantic:\n //\n // { let x = 1; }\n // { let x; } // x here should be undefined. not 1\n //\n // Top level bindings never collide with anything and thus don't require\n // explicit initialization. As for nested let bindings there are two cases:\n //\n // - Nested let bindings that were not renamed definitely should be\n // initialized explicitly:\n //\n // { let x = 1; }\n // { let x; if (some-condition) { x = 1}; if (x) { /*1*/ } }\n //\n // Without explicit initialization code in /*1*/ can be executed even if\n // some-condition is evaluated to false.\n //\n // - Renaming introduces fresh name that should not collide with any\n // existing names, however renamed bindings sometimes also should be\n // explicitly initialized. One particular case: non-captured binding\n // declared inside loop body (but not in loop initializer):\n //\n // let x;\n // for (;;) {\n // let x;\n // }\n //\n // In downlevel codegen inner 'x' will be renamed so it won't collide\n // with outer 'x' however it will should be reset on every iteration as\n // if it was declared anew.\n //\n // * Why non-captured binding?\n // - Because if loop contains block scoped binding captured in some\n // function then loop body will be rewritten to have a fresh scope\n // on every iteration so everything will just work.\n //\n // * Why loop initializer is excluded?\n // - Since we've introduced a fresh name it already will be undefined.\n var flags = resolver.getNodeCheckFlags(node);\n var isCapturedInFunction = flags & 262144 /* CapturedBlockScopedBinding */;\n var isDeclaredInLoop = flags & 524288 /* BlockScopedBindingInLoop */;\n var emittedAsTopLevel = (hierarchyFacts & 64 /* TopLevel */) !== 0\n || (isCapturedInFunction\n && isDeclaredInLoop\n && (hierarchyFacts & 512 /* IterationStatementBlock */) !== 0);\n var emitExplicitInitializer = !emittedAsTopLevel\n && (hierarchyFacts & 4096 /* ForInOrForOfStatement */) === 0\n && (!resolver.isDeclarationWithCollidingName(node)\n || (isDeclaredInLoop\n && !isCapturedInFunction\n && (hierarchyFacts & (2048 /* ForStatement */ | 4096 /* ForInOrForOfStatement */)) === 0));\n return emitExplicitInitializer;\n }\n /**\n * Visits a VariableDeclaration in a `let` declaration list.\n *\n * @param node A VariableDeclaration node.\n */\n function visitVariableDeclarationInLetDeclarationList(node) {\n // For binding pattern names that lack initializers there is no point to emit\n // explicit initializer since downlevel codegen for destructuring will fail\n // in the absence of initializer so all binding elements will say uninitialized\n var name = node.name;\n if (ts.isBindingPattern(name)) {\n return visitVariableDeclaration(node);\n }\n if (!node.initializer && shouldEmitExplicitInitializerForLetDeclaration(node)) {\n return factory.updateVariableDeclaration(node, node.name, /*exclamationToken*/ undefined, /*type*/ undefined, factory.createVoidZero());\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a VariableDeclaration node with a binding pattern.\n *\n * @param node A VariableDeclaration node.\n */\n function visitVariableDeclaration(node) {\n var ancestorFacts = enterSubtree(32 /* ExportedVariableStatement */, 0 /* None */);\n var updated;\n if (ts.isBindingPattern(node.name)) {\n updated = ts.flattenDestructuringBinding(node, visitor, context, 0 /* All */, \n /*value*/ undefined, (ancestorFacts & 32 /* ExportedVariableStatement */) !== 0);\n }\n else {\n updated = ts.visitEachChild(node, visitor, context);\n }\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return updated;\n }\n function recordLabel(node) {\n convertedLoopState.labels.set(ts.idText(node.label), true);\n }\n function resetLabel(node) {\n convertedLoopState.labels.set(ts.idText(node.label), false);\n }\n function visitLabeledStatement(node) {\n if (convertedLoopState && !convertedLoopState.labels) {\n convertedLoopState.labels = new ts.Map();\n }\n var statement = ts.unwrapInnermostStatementOfLabel(node, convertedLoopState && recordLabel);\n return ts.isIterationStatement(statement, /*lookInLabeledStatements*/ false)\n ? visitIterationStatement(statement, /*outermostLabeledStatement*/ node)\n : factory.restoreEnclosingLabel(ts.visitNode(statement, visitor, ts.isStatement, factory.liftToBlock), node, convertedLoopState && resetLabel);\n }\n function visitIterationStatement(node, outermostLabeledStatement) {\n switch (node.kind) {\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n return visitDoOrWhileStatement(node, outermostLabeledStatement);\n case 240 /* ForStatement */:\n return visitForStatement(node, outermostLabeledStatement);\n case 241 /* ForInStatement */:\n return visitForInStatement(node, outermostLabeledStatement);\n case 242 /* ForOfStatement */:\n return visitForOfStatement(node, outermostLabeledStatement);\n }\n }\n function visitIterationStatementWithFacts(excludeFacts, includeFacts, node, outermostLabeledStatement, convert) {\n var ancestorFacts = enterSubtree(excludeFacts, includeFacts);\n var updated = convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert);\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return updated;\n }\n function visitDoOrWhileStatement(node, outermostLabeledStatement) {\n return visitIterationStatementWithFacts(0 /* DoOrWhileStatementExcludes */, 1280 /* DoOrWhileStatementIncludes */, node, outermostLabeledStatement);\n }\n function visitForStatement(node, outermostLabeledStatement) {\n return visitIterationStatementWithFacts(5056 /* ForStatementExcludes */, 3328 /* ForStatementIncludes */, node, outermostLabeledStatement);\n }\n function visitEachChildOfForStatement(node) {\n return factory.updateForStatement(node, ts.visitNode(node.initializer, visitorWithUnusedExpressionResult, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, visitorWithUnusedExpressionResult, ts.isExpression), ts.visitNode(node.statement, visitor, ts.isStatement, factory.liftToBlock));\n }\n function visitForInStatement(node, outermostLabeledStatement) {\n return visitIterationStatementWithFacts(3008 /* ForInOrForOfStatementExcludes */, 5376 /* ForInOrForOfStatementIncludes */, node, outermostLabeledStatement);\n }\n function visitForOfStatement(node, outermostLabeledStatement) {\n return visitIterationStatementWithFacts(3008 /* ForInOrForOfStatementExcludes */, 5376 /* ForInOrForOfStatementIncludes */, node, outermostLabeledStatement, compilerOptions.downlevelIteration ? convertForOfStatementForIterable : convertForOfStatementForArray);\n }\n function convertForOfStatementHead(node, boundValue, convertedLoopBodyStatements) {\n var statements = [];\n var initializer = node.initializer;\n if (ts.isVariableDeclarationList(initializer)) {\n if (node.initializer.flags & 3 /* BlockScoped */) {\n enableSubstitutionsForBlockScopedBindings();\n }\n var firstOriginalDeclaration = ts.firstOrUndefined(initializer.declarations);\n if (firstOriginalDeclaration && ts.isBindingPattern(firstOriginalDeclaration.name)) {\n // This works whether the declaration is a var, let, or const.\n // It will use rhsIterationValue _a[_i] as the initializer.\n var declarations = ts.flattenDestructuringBinding(firstOriginalDeclaration, visitor, context, 0 /* All */, boundValue);\n var declarationList = ts.setTextRange(factory.createVariableDeclarationList(declarations), node.initializer);\n ts.setOriginalNode(declarationList, node.initializer);\n // Adjust the source map range for the first declaration to align with the old\n // emitter.\n ts.setSourceMapRange(declarationList, ts.createRange(declarations[0].pos, ts.last(declarations).end));\n statements.push(factory.createVariableStatement(\n /*modifiers*/ undefined, declarationList));\n }\n else {\n // The following call does not include the initializer, so we have\n // to emit it separately.\n statements.push(ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, ts.setOriginalNode(ts.setTextRange(factory.createVariableDeclarationList([\n factory.createVariableDeclaration(firstOriginalDeclaration ? firstOriginalDeclaration.name : factory.createTempVariable(/*recordTempVariable*/ undefined), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, boundValue)\n ]), ts.moveRangePos(initializer, -1)), initializer)), ts.moveRangeEnd(initializer, -1)));\n }\n }\n else {\n // Initializer is an expression. Emit the expression in the body, so that it's\n // evaluated on every iteration.\n var assignment = factory.createAssignment(initializer, boundValue);\n if (ts.isDestructuringAssignment(assignment)) {\n statements.push(factory.createExpressionStatement(visitBinaryExpression(assignment, /*expressionResultIsUnused*/ true)));\n }\n else {\n ts.setTextRangeEnd(assignment, initializer.end);\n statements.push(ts.setTextRange(factory.createExpressionStatement(ts.visitNode(assignment, visitor, ts.isExpression)), ts.moveRangeEnd(initializer, -1)));\n }\n }\n if (convertedLoopBodyStatements) {\n return createSyntheticBlockForConvertedStatements(ts.addRange(statements, convertedLoopBodyStatements));\n }\n else {\n var statement = ts.visitNode(node.statement, visitor, ts.isStatement, factory.liftToBlock);\n if (ts.isBlock(statement)) {\n return factory.updateBlock(statement, ts.setTextRange(factory.createNodeArray(ts.concatenate(statements, statement.statements)), statement.statements));\n }\n else {\n statements.push(statement);\n return createSyntheticBlockForConvertedStatements(statements);\n }\n }\n }\n function createSyntheticBlockForConvertedStatements(statements) {\n return ts.setEmitFlags(factory.createBlock(factory.createNodeArray(statements), \n /*multiLine*/ true), 48 /* NoSourceMap */ | 384 /* NoTokenSourceMaps */);\n }\n function convertForOfStatementForArray(node, outermostLabeledStatement, convertedLoopBodyStatements) {\n // The following ES6 code:\n //\n // for (let v of expr) { }\n //\n // should be emitted as\n //\n // for (var _i = 0, _a = expr; _i < _a.length; _i++) {\n // var v = _a[_i];\n // }\n //\n // where _a and _i are temps emitted to capture the RHS and the counter,\n // respectively.\n // When the left hand side is an expression instead of a let declaration,\n // the \"let v\" is not emitted.\n // When the left hand side is a let/const, the v is renamed if there is\n // another v in scope.\n // Note that all assignments to the LHS are emitted in the body, including\n // all destructuring.\n // Note also that because an extra statement is needed to assign to the LHS,\n // for-of bodies are always emitted as blocks.\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n // In the case where the user wrote an identifier as the RHS, like this:\n //\n // for (let v of arr) { }\n //\n // we don't want to emit a temporary variable for the RHS, just use it directly.\n var counter = factory.createLoopVariable();\n var rhsReference = ts.isIdentifier(expression) ? factory.getGeneratedNameForNode(expression) : factory.createTempVariable(/*recordTempVariable*/ undefined);\n // The old emitter does not emit source maps for the expression\n ts.setEmitFlags(expression, 48 /* NoSourceMap */ | ts.getEmitFlags(expression));\n var forStatement = ts.setTextRange(factory.createForStatement(\n /*initializer*/ ts.setEmitFlags(ts.setTextRange(factory.createVariableDeclarationList([\n ts.setTextRange(factory.createVariableDeclaration(counter, /*exclamationToken*/ undefined, /*type*/ undefined, factory.createNumericLiteral(0)), ts.moveRangePos(node.expression, -1)),\n ts.setTextRange(factory.createVariableDeclaration(rhsReference, /*exclamationToken*/ undefined, /*type*/ undefined, expression), node.expression)\n ]), node.expression), 2097152 /* NoHoisting */), \n /*condition*/ ts.setTextRange(factory.createLessThan(counter, factory.createPropertyAccessExpression(rhsReference, \"length\")), node.expression), \n /*incrementor*/ ts.setTextRange(factory.createPostfixIncrement(counter), node.expression), \n /*statement*/ convertForOfStatementHead(node, factory.createElementAccessExpression(rhsReference, counter), convertedLoopBodyStatements)), \n /*location*/ node);\n // Disable trailing source maps for the OpenParenToken to align source map emit with the old emitter.\n ts.setEmitFlags(forStatement, 256 /* NoTokenTrailingSourceMaps */);\n ts.setTextRange(forStatement, node);\n return factory.restoreEnclosingLabel(forStatement, outermostLabeledStatement, convertedLoopState && resetLabel);\n }\n function convertForOfStatementForIterable(node, outermostLabeledStatement, convertedLoopBodyStatements, ancestorFacts) {\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n var iterator = ts.isIdentifier(expression) ? factory.getGeneratedNameForNode(expression) : factory.createTempVariable(/*recordTempVariable*/ undefined);\n var result = ts.isIdentifier(expression) ? factory.getGeneratedNameForNode(iterator) : factory.createTempVariable(/*recordTempVariable*/ undefined);\n var errorRecord = factory.createUniqueName(\"e\");\n var catchVariable = factory.getGeneratedNameForNode(errorRecord);\n var returnMethod = factory.createTempVariable(/*recordTempVariable*/ undefined);\n var values = ts.setTextRange(emitHelpers().createValuesHelper(expression), node.expression);\n var next = factory.createCallExpression(factory.createPropertyAccessExpression(iterator, \"next\"), /*typeArguments*/ undefined, []);\n hoistVariableDeclaration(errorRecord);\n hoistVariableDeclaration(returnMethod);\n // if we are enclosed in an outer loop ensure we reset 'errorRecord' per each iteration\n var initializer = ancestorFacts & 1024 /* IterationContainer */\n ? factory.inlineExpressions([factory.createAssignment(errorRecord, factory.createVoidZero()), values])\n : values;\n var forStatement = ts.setEmitFlags(ts.setTextRange(factory.createForStatement(\n /*initializer*/ ts.setEmitFlags(ts.setTextRange(factory.createVariableDeclarationList([\n ts.setTextRange(factory.createVariableDeclaration(iterator, /*exclamationToken*/ undefined, /*type*/ undefined, initializer), node.expression),\n factory.createVariableDeclaration(result, /*exclamationToken*/ undefined, /*type*/ undefined, next)\n ]), node.expression), 2097152 /* NoHoisting */), \n /*condition*/ factory.createLogicalNot(factory.createPropertyAccessExpression(result, \"done\")), \n /*incrementor*/ factory.createAssignment(result, next), \n /*statement*/ convertForOfStatementHead(node, factory.createPropertyAccessExpression(result, \"value\"), convertedLoopBodyStatements)), \n /*location*/ node), 256 /* NoTokenTrailingSourceMaps */);\n return factory.createTryStatement(factory.createBlock([\n factory.restoreEnclosingLabel(forStatement, outermostLabeledStatement, convertedLoopState && resetLabel)\n ]), factory.createCatchClause(factory.createVariableDeclaration(catchVariable), ts.setEmitFlags(factory.createBlock([\n factory.createExpressionStatement(factory.createAssignment(errorRecord, factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"error\", catchVariable)\n ])))\n ]), 1 /* SingleLine */)), factory.createBlock([\n factory.createTryStatement(\n /*tryBlock*/ factory.createBlock([\n ts.setEmitFlags(factory.createIfStatement(factory.createLogicalAnd(factory.createLogicalAnd(result, factory.createLogicalNot(factory.createPropertyAccessExpression(result, \"done\"))), factory.createAssignment(returnMethod, factory.createPropertyAccessExpression(iterator, \"return\"))), factory.createExpressionStatement(factory.createFunctionCallCall(returnMethod, iterator, []))), 1 /* SingleLine */),\n ]), \n /*catchClause*/ undefined, \n /*finallyBlock*/ ts.setEmitFlags(factory.createBlock([\n ts.setEmitFlags(factory.createIfStatement(errorRecord, factory.createThrowStatement(factory.createPropertyAccessExpression(errorRecord, \"error\"))), 1 /* SingleLine */)\n ]), 1 /* SingleLine */))\n ]));\n }\n /**\n * Visits an ObjectLiteralExpression with computed property names.\n *\n * @param node An ObjectLiteralExpression node.\n */\n function visitObjectLiteralExpression(node) {\n var properties = node.properties;\n // Find the first computed property.\n // Everything until that point can be emitted as part of the initial object literal.\n var numInitialProperties = -1, hasComputed = false;\n for (var i = 0; i < properties.length; i++) {\n var property = properties[i];\n if ((property.transformFlags & 524288 /* ContainsYield */ &&\n hierarchyFacts & 4 /* AsyncFunctionBody */)\n || (hasComputed = ts.Debug.checkDefined(property.name).kind === 160 /* ComputedPropertyName */)) {\n numInitialProperties = i;\n break;\n }\n }\n if (numInitialProperties < 0) {\n return ts.visitEachChild(node, visitor, context);\n }\n // For computed properties, we need to create a unique handle to the object\n // literal so we can modify it without risking internal assignments tainting the object.\n var temp = factory.createTempVariable(hoistVariableDeclaration);\n // Write out the first non-computed properties, then emit the rest through indexing on the temp variable.\n var expressions = [];\n var assignment = factory.createAssignment(temp, ts.setEmitFlags(factory.createObjectLiteralExpression(ts.visitNodes(properties, visitor, ts.isObjectLiteralElementLike, 0, numInitialProperties), node.multiLine), hasComputed ? 65536 /* Indented */ : 0));\n if (node.multiLine) {\n ts.startOnNewLine(assignment);\n }\n expressions.push(assignment);\n addObjectLiteralMembers(expressions, node, temp, numInitialProperties);\n // We need to clone the temporary identifier so that we can write it on a\n // new line\n expressions.push(node.multiLine ? ts.startOnNewLine(ts.setParent(ts.setTextRange(factory.cloneNode(temp), temp), temp.parent)) : temp);\n return factory.inlineExpressions(expressions);\n }\n function shouldConvertPartOfIterationStatement(node) {\n return (resolver.getNodeCheckFlags(node) & 131072 /* ContainsCapturedBlockScopeBinding */) !== 0;\n }\n function shouldConvertInitializerOfForStatement(node) {\n return ts.isForStatement(node) && !!node.initializer && shouldConvertPartOfIterationStatement(node.initializer);\n }\n function shouldConvertConditionOfForStatement(node) {\n return ts.isForStatement(node) && !!node.condition && shouldConvertPartOfIterationStatement(node.condition);\n }\n function shouldConvertIncrementorOfForStatement(node) {\n return ts.isForStatement(node) && !!node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor);\n }\n function shouldConvertIterationStatement(node) {\n return shouldConvertBodyOfIterationStatement(node)\n || shouldConvertInitializerOfForStatement(node);\n }\n function shouldConvertBodyOfIterationStatement(node) {\n return (resolver.getNodeCheckFlags(node) & 65536 /* LoopWithCapturedBlockScopedBinding */) !== 0;\n }\n /**\n * Records constituents of name for the given variable to be hoisted in the outer scope.\n */\n function hoistVariableDeclarationDeclaredInConvertedLoop(state, node) {\n if (!state.hoistedLocalVariables) {\n state.hoistedLocalVariables = [];\n }\n visit(node.name);\n function visit(node) {\n if (node.kind === 79 /* Identifier */) {\n state.hoistedLocalVariables.push(node);\n }\n else {\n for (var _i = 0, _a = node.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n visit(element.name);\n }\n }\n }\n }\n }\n function convertIterationStatementBodyIfNecessary(node, outermostLabeledStatement, ancestorFacts, convert) {\n if (!shouldConvertIterationStatement(node)) {\n var saveAllowedNonLabeledJumps = void 0;\n if (convertedLoopState) {\n // we get here if we are trying to emit normal loop loop inside converted loop\n // set allowedNonLabeledJumps to Break | Continue to mark that break\\continue inside the loop should be emitted as is\n saveAllowedNonLabeledJumps = convertedLoopState.allowedNonLabeledJumps;\n convertedLoopState.allowedNonLabeledJumps = 2 /* Break */ | 4 /* Continue */;\n }\n var result = convert\n ? convert(node, outermostLabeledStatement, /*convertedLoopBodyStatements*/ undefined, ancestorFacts)\n : factory.restoreEnclosingLabel(ts.isForStatement(node) ? visitEachChildOfForStatement(node) : ts.visitEachChild(node, visitor, context), outermostLabeledStatement, convertedLoopState && resetLabel);\n if (convertedLoopState) {\n convertedLoopState.allowedNonLabeledJumps = saveAllowedNonLabeledJumps;\n }\n return result;\n }\n var currentState = createConvertedLoopState(node);\n var statements = [];\n var outerConvertedLoopState = convertedLoopState;\n convertedLoopState = currentState;\n var initializerFunction = shouldConvertInitializerOfForStatement(node) ? createFunctionForInitializerOfForStatement(node, currentState) : undefined;\n var bodyFunction = shouldConvertBodyOfIterationStatement(node) ? createFunctionForBodyOfIterationStatement(node, currentState, outerConvertedLoopState) : undefined;\n convertedLoopState = outerConvertedLoopState;\n if (initializerFunction)\n statements.push(initializerFunction.functionDeclaration);\n if (bodyFunction)\n statements.push(bodyFunction.functionDeclaration);\n addExtraDeclarationsForConvertedLoop(statements, currentState, outerConvertedLoopState);\n if (initializerFunction) {\n statements.push(generateCallToConvertedLoopInitializer(initializerFunction.functionName, initializerFunction.containsYield));\n }\n var loop;\n if (bodyFunction) {\n if (convert) {\n loop = convert(node, outermostLabeledStatement, bodyFunction.part, ancestorFacts);\n }\n else {\n var clone_4 = convertIterationStatementCore(node, initializerFunction, factory.createBlock(bodyFunction.part, /*multiLine*/ true));\n loop = factory.restoreEnclosingLabel(clone_4, outermostLabeledStatement, convertedLoopState && resetLabel);\n }\n }\n else {\n var clone_5 = convertIterationStatementCore(node, initializerFunction, ts.visitNode(node.statement, visitor, ts.isStatement, factory.liftToBlock));\n loop = factory.restoreEnclosingLabel(clone_5, outermostLabeledStatement, convertedLoopState && resetLabel);\n }\n statements.push(loop);\n return statements;\n }\n function convertIterationStatementCore(node, initializerFunction, convertedLoopBody) {\n switch (node.kind) {\n case 240 /* ForStatement */: return convertForStatement(node, initializerFunction, convertedLoopBody);\n case 241 /* ForInStatement */: return convertForInStatement(node, convertedLoopBody);\n case 242 /* ForOfStatement */: return convertForOfStatement(node, convertedLoopBody);\n case 238 /* DoStatement */: return convertDoStatement(node, convertedLoopBody);\n case 239 /* WhileStatement */: return convertWhileStatement(node, convertedLoopBody);\n default: return ts.Debug.failBadSyntaxKind(node, \"IterationStatement expected\");\n }\n }\n function convertForStatement(node, initializerFunction, convertedLoopBody) {\n var shouldConvertCondition = node.condition && shouldConvertPartOfIterationStatement(node.condition);\n var shouldConvertIncrementor = shouldConvertCondition || node.incrementor && shouldConvertPartOfIterationStatement(node.incrementor);\n return factory.updateForStatement(node, ts.visitNode(initializerFunction ? initializerFunction.part : node.initializer, visitorWithUnusedExpressionResult, ts.isForInitializer), ts.visitNode(shouldConvertCondition ? undefined : node.condition, visitor, ts.isExpression), ts.visitNode(shouldConvertIncrementor ? undefined : node.incrementor, visitorWithUnusedExpressionResult, ts.isExpression), convertedLoopBody);\n }\n function convertForOfStatement(node, convertedLoopBody) {\n return factory.updateForOfStatement(node, \n /*awaitModifier*/ undefined, ts.visitNode(node.initializer, visitor, ts.isForInitializer), ts.visitNode(node.expression, visitor, ts.isExpression), convertedLoopBody);\n }\n function convertForInStatement(node, convertedLoopBody) {\n return factory.updateForInStatement(node, ts.visitNode(node.initializer, visitor, ts.isForInitializer), ts.visitNode(node.expression, visitor, ts.isExpression), convertedLoopBody);\n }\n function convertDoStatement(node, convertedLoopBody) {\n return factory.updateDoStatement(node, convertedLoopBody, ts.visitNode(node.expression, visitor, ts.isExpression));\n }\n function convertWhileStatement(node, convertedLoopBody) {\n return factory.updateWhileStatement(node, ts.visitNode(node.expression, visitor, ts.isExpression), convertedLoopBody);\n }\n function createConvertedLoopState(node) {\n var loopInitializer;\n switch (node.kind) {\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n var initializer = node.initializer;\n if (initializer && initializer.kind === 253 /* VariableDeclarationList */) {\n loopInitializer = initializer;\n }\n break;\n }\n // variables that will be passed to the loop as parameters\n var loopParameters = [];\n // variables declared in the loop initializer that will be changed inside the loop\n var loopOutParameters = [];\n if (loopInitializer && (ts.getCombinedNodeFlags(loopInitializer) & 3 /* BlockScoped */)) {\n var hasCapturedBindingsInForInitializer = shouldConvertInitializerOfForStatement(node);\n for (var _i = 0, _a = loopInitializer.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n processLoopVariableDeclaration(node, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForInitializer);\n }\n }\n var currentState = { loopParameters: loopParameters, loopOutParameters: loopOutParameters };\n if (convertedLoopState) {\n // convertedOuterLoopState !== undefined means that this converted loop is nested in another converted loop.\n // if outer converted loop has already accumulated some state - pass it through\n if (convertedLoopState.argumentsName) {\n // outer loop has already used 'arguments' so we've already have some name to alias it\n // use the same name in all nested loops\n currentState.argumentsName = convertedLoopState.argumentsName;\n }\n if (convertedLoopState.thisName) {\n // outer loop has already used 'this' so we've already have some name to alias it\n // use the same name in all nested loops\n currentState.thisName = convertedLoopState.thisName;\n }\n if (convertedLoopState.hoistedLocalVariables) {\n // we've already collected some non-block scoped variable declarations in enclosing loop\n // use the same storage in nested loop\n currentState.hoistedLocalVariables = convertedLoopState.hoistedLocalVariables;\n }\n }\n return currentState;\n }\n function addExtraDeclarationsForConvertedLoop(statements, state, outerState) {\n var extraVariableDeclarations;\n // propagate state from the inner loop to the outer loop if necessary\n if (state.argumentsName) {\n // if alias for arguments is set\n if (outerState) {\n // pass it to outer converted loop\n outerState.argumentsName = state.argumentsName;\n }\n else {\n // this is top level converted loop and we need to create an alias for 'arguments' object\n (extraVariableDeclarations || (extraVariableDeclarations = [])).push(factory.createVariableDeclaration(state.argumentsName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createIdentifier(\"arguments\")));\n }\n }\n if (state.thisName) {\n // if alias for this is set\n if (outerState) {\n // pass it to outer converted loop\n outerState.thisName = state.thisName;\n }\n else {\n // this is top level converted loop so we need to create an alias for 'this' here\n // NOTE:\n // if converted loops were all nested in arrow function then we'll always emit '_this' so convertedLoopState.thisName will not be set.\n // If it is set this means that all nested loops are not nested in arrow function and it is safe to capture 'this'.\n (extraVariableDeclarations || (extraVariableDeclarations = [])).push(factory.createVariableDeclaration(state.thisName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createIdentifier(\"this\")));\n }\n }\n if (state.hoistedLocalVariables) {\n // if hoistedLocalVariables !== undefined this means that we've possibly collected some variable declarations to be hoisted later\n if (outerState) {\n // pass them to outer converted loop\n outerState.hoistedLocalVariables = state.hoistedLocalVariables;\n }\n else {\n if (!extraVariableDeclarations) {\n extraVariableDeclarations = [];\n }\n // hoist collected variable declarations\n for (var _i = 0, _a = state.hoistedLocalVariables; _i < _a.length; _i++) {\n var identifier = _a[_i];\n extraVariableDeclarations.push(factory.createVariableDeclaration(identifier));\n }\n }\n }\n // add extra variables to hold out parameters if necessary\n if (state.loopOutParameters.length) {\n if (!extraVariableDeclarations) {\n extraVariableDeclarations = [];\n }\n for (var _b = 0, _c = state.loopOutParameters; _b < _c.length; _b++) {\n var outParam = _c[_b];\n extraVariableDeclarations.push(factory.createVariableDeclaration(outParam.outParamName));\n }\n }\n if (state.conditionVariable) {\n if (!extraVariableDeclarations) {\n extraVariableDeclarations = [];\n }\n extraVariableDeclarations.push(factory.createVariableDeclaration(state.conditionVariable, /*exclamationToken*/ undefined, /*type*/ undefined, factory.createFalse()));\n }\n // create variable statement to hold all introduced variable declarations\n if (extraVariableDeclarations) {\n statements.push(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(extraVariableDeclarations)));\n }\n }\n function createOutVariable(p) {\n return factory.createVariableDeclaration(p.originalName, /*exclamationToken*/ undefined, /*type*/ undefined, p.outParamName);\n }\n /**\n * Creates a `_loop_init` function for a `ForStatement` with a block-scoped initializer\n * that is captured in a closure inside of the initializer. The `_loop_init` function is\n * used to preserve the per-iteration environment semantics of\n * [13.7.4.8 RS: ForBodyEvaluation](https://tc39.github.io/ecma262/#sec-forbodyevaluation).\n */\n function createFunctionForInitializerOfForStatement(node, currentState) {\n var functionName = factory.createUniqueName(\"_loop_init\");\n var containsYield = (node.initializer.transformFlags & 524288 /* ContainsYield */) !== 0;\n var emitFlags = 0 /* None */;\n if (currentState.containsLexicalThis)\n emitFlags |= 8 /* CapturesThis */;\n if (containsYield && hierarchyFacts & 4 /* AsyncFunctionBody */)\n emitFlags |= 262144 /* AsyncFunctionBody */;\n var statements = [];\n statements.push(factory.createVariableStatement(/*modifiers*/ undefined, node.initializer));\n copyOutParameters(currentState.loopOutParameters, 2 /* Initializer */, 1 /* ToOutParameter */, statements);\n // This transforms the following ES2015 syntax:\n //\n // for (let i = (setImmediate(() => console.log(i)), 0); i < 2; i++) {\n // // loop body\n // }\n //\n // Into the following ES5 syntax:\n //\n // var _loop_init_1 = function () {\n // var i = (setImmediate(() => console.log(i)), 0);\n // out_i_1 = i;\n // };\n // var out_i_1;\n // _loop_init_1();\n // for (var i = out_i_1; i < 2; i++) {\n // // loop body\n // }\n //\n // Which prevents mutations to `i` in the per-iteration environment of the body\n // from affecting the initial value for `i` outside of the per-iteration environment.\n var functionDeclaration = factory.createVariableStatement(\n /*modifiers*/ undefined, ts.setEmitFlags(factory.createVariableDeclarationList([\n factory.createVariableDeclaration(functionName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, ts.setEmitFlags(factory.createFunctionExpression(\n /*modifiers*/ undefined, containsYield ? factory.createToken(41 /* AsteriskToken */) : undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ undefined, \n /*type*/ undefined, ts.visitNode(factory.createBlock(statements, /*multiLine*/ true), visitor, ts.isBlock)), emitFlags))\n ]), 2097152 /* NoHoisting */));\n var part = factory.createVariableDeclarationList(ts.map(currentState.loopOutParameters, createOutVariable));\n return { functionName: functionName, containsYield: containsYield, functionDeclaration: functionDeclaration, part: part };\n }\n /**\n * Creates a `_loop` function for an `IterationStatement` with a block-scoped initializer\n * that is captured in a closure inside of the loop body. The `_loop` function is used to\n * preserve the per-iteration environment semantics of\n * [13.7.4.8 RS: ForBodyEvaluation](https://tc39.github.io/ecma262/#sec-forbodyevaluation).\n */\n function createFunctionForBodyOfIterationStatement(node, currentState, outerState) {\n var functionName = factory.createUniqueName(\"_loop\");\n startLexicalEnvironment();\n var statement = ts.visitNode(node.statement, visitor, ts.isStatement, factory.liftToBlock);\n var lexicalEnvironment = endLexicalEnvironment();\n var statements = [];\n if (shouldConvertConditionOfForStatement(node) || shouldConvertIncrementorOfForStatement(node)) {\n // If a block-scoped variable declared in the initializer of `node` is captured in\n // the condition or incrementor, we must move the condition and incrementor into\n // the body of the for loop.\n //\n // This transforms the following ES2015 syntax:\n //\n // for (let i = 0; setImmediate(() => console.log(i)), i < 2; setImmediate(() => console.log(i)), i++) {\n // // loop body\n // }\n //\n // Into the following ES5 syntax:\n //\n // var _loop_1 = function (i) {\n // if (inc_1)\n // setImmediate(() => console.log(i)), i++;\n // else\n // inc_1 = true;\n // if (!(setImmediate(() => console.log(i)), i < 2))\n // return out_i_1 = i, \"break\";\n // // loop body\n // out_i_1 = i;\n // }\n // var out_i_1, inc_1 = false;\n // for (var i = 0;;) {\n // var state_1 = _loop_1(i);\n // i = out_i_1;\n // if (state_1 === \"break\")\n // break;\n // }\n //\n // Which prevents mutations to `i` in the per-iteration environment of the body\n // from affecting the value of `i` in the previous per-iteration environment.\n //\n // Note that the incrementor of a `for` loop is evaluated in a *new* per-iteration\n // environment that is carried over to the next iteration of the loop. As a result,\n // we must indicate whether this is the first evaluation of the loop body so that\n // we only evaluate the incrementor on subsequent evaluations.\n currentState.conditionVariable = factory.createUniqueName(\"inc\");\n if (node.incrementor) {\n statements.push(factory.createIfStatement(currentState.conditionVariable, factory.createExpressionStatement(ts.visitNode(node.incrementor, visitor, ts.isExpression)), factory.createExpressionStatement(factory.createAssignment(currentState.conditionVariable, factory.createTrue()))));\n }\n else {\n statements.push(factory.createIfStatement(factory.createLogicalNot(currentState.conditionVariable), factory.createExpressionStatement(factory.createAssignment(currentState.conditionVariable, factory.createTrue()))));\n }\n if (shouldConvertConditionOfForStatement(node)) {\n statements.push(factory.createIfStatement(factory.createPrefixUnaryExpression(53 /* ExclamationToken */, ts.visitNode(node.condition, visitor, ts.isExpression)), ts.visitNode(factory.createBreakStatement(), visitor, ts.isStatement)));\n }\n }\n if (ts.isBlock(statement)) {\n ts.addRange(statements, statement.statements);\n }\n else {\n statements.push(statement);\n }\n copyOutParameters(currentState.loopOutParameters, 1 /* Body */, 1 /* ToOutParameter */, statements);\n ts.insertStatementsAfterStandardPrologue(statements, lexicalEnvironment);\n var loopBody = factory.createBlock(statements, /*multiLine*/ true);\n if (ts.isBlock(statement))\n ts.setOriginalNode(loopBody, statement);\n var containsYield = (node.statement.transformFlags & 524288 /* ContainsYield */) !== 0;\n var emitFlags = 524288 /* ReuseTempVariableScope */;\n if (currentState.containsLexicalThis)\n emitFlags |= 8 /* CapturesThis */;\n if (containsYield && (hierarchyFacts & 4 /* AsyncFunctionBody */) !== 0)\n emitFlags |= 262144 /* AsyncFunctionBody */;\n // This transforms the following ES2015 syntax (in addition to other variations):\n //\n // for (let i = 0; i < 2; i++) {\n // setImmediate(() => console.log(i));\n // }\n //\n // Into the following ES5 syntax:\n //\n // var _loop_1 = function (i) {\n // setImmediate(() => console.log(i));\n // };\n // for (var i = 0; i < 2; i++) {\n // _loop_1(i);\n // }\n var functionDeclaration = factory.createVariableStatement(\n /*modifiers*/ undefined, ts.setEmitFlags(factory.createVariableDeclarationList([\n factory.createVariableDeclaration(functionName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, ts.setEmitFlags(factory.createFunctionExpression(\n /*modifiers*/ undefined, containsYield ? factory.createToken(41 /* AsteriskToken */) : undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, currentState.loopParameters, \n /*type*/ undefined, loopBody), emitFlags))\n ]), 2097152 /* NoHoisting */));\n var part = generateCallToConvertedLoop(functionName, currentState, outerState, containsYield);\n return { functionName: functionName, containsYield: containsYield, functionDeclaration: functionDeclaration, part: part };\n }\n function copyOutParameter(outParam, copyDirection) {\n var source = copyDirection === 0 /* ToOriginal */ ? outParam.outParamName : outParam.originalName;\n var target = copyDirection === 0 /* ToOriginal */ ? outParam.originalName : outParam.outParamName;\n return factory.createBinaryExpression(target, 63 /* EqualsToken */, source);\n }\n function copyOutParameters(outParams, partFlags, copyDirection, statements) {\n for (var _i = 0, outParams_1 = outParams; _i < outParams_1.length; _i++) {\n var outParam = outParams_1[_i];\n if (outParam.flags & partFlags) {\n statements.push(factory.createExpressionStatement(copyOutParameter(outParam, copyDirection)));\n }\n }\n }\n function generateCallToConvertedLoopInitializer(initFunctionExpressionName, containsYield) {\n var call = factory.createCallExpression(initFunctionExpressionName, /*typeArguments*/ undefined, []);\n var callResult = containsYield\n ? factory.createYieldExpression(factory.createToken(41 /* AsteriskToken */), ts.setEmitFlags(call, 8388608 /* Iterator */))\n : call;\n return factory.createExpressionStatement(callResult);\n }\n function generateCallToConvertedLoop(loopFunctionExpressionName, state, outerState, containsYield) {\n var statements = [];\n // loop is considered simple if it does not have any return statements or break\\continue that transfer control outside of the loop\n // simple loops are emitted as just 'loop()';\n // NOTE: if loop uses only 'continue' it still will be emitted as simple loop\n var isSimpleLoop = !(state.nonLocalJumps & ~4 /* Continue */) &&\n !state.labeledNonLocalBreaks &&\n !state.labeledNonLocalContinues;\n var call = factory.createCallExpression(loopFunctionExpressionName, /*typeArguments*/ undefined, ts.map(state.loopParameters, function (p) { return p.name; }));\n var callResult = containsYield\n ? factory.createYieldExpression(factory.createToken(41 /* AsteriskToken */), ts.setEmitFlags(call, 8388608 /* Iterator */))\n : call;\n if (isSimpleLoop) {\n statements.push(factory.createExpressionStatement(callResult));\n copyOutParameters(state.loopOutParameters, 1 /* Body */, 0 /* ToOriginal */, statements);\n }\n else {\n var loopResultName = factory.createUniqueName(\"state\");\n var stateVariable = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([factory.createVariableDeclaration(loopResultName, /*exclamationToken*/ undefined, /*type*/ undefined, callResult)]));\n statements.push(stateVariable);\n copyOutParameters(state.loopOutParameters, 1 /* Body */, 0 /* ToOriginal */, statements);\n if (state.nonLocalJumps & 8 /* Return */) {\n var returnStatement = void 0;\n if (outerState) {\n outerState.nonLocalJumps |= 8 /* Return */;\n returnStatement = factory.createReturnStatement(loopResultName);\n }\n else {\n returnStatement = factory.createReturnStatement(factory.createPropertyAccessExpression(loopResultName, \"value\"));\n }\n statements.push(factory.createIfStatement(factory.createTypeCheck(loopResultName, \"object\"), returnStatement));\n }\n if (state.nonLocalJumps & 2 /* Break */) {\n statements.push(factory.createIfStatement(factory.createStrictEquality(loopResultName, factory.createStringLiteral(\"break\")), factory.createBreakStatement()));\n }\n if (state.labeledNonLocalBreaks || state.labeledNonLocalContinues) {\n var caseClauses = [];\n processLabeledJumps(state.labeledNonLocalBreaks, /*isBreak*/ true, loopResultName, outerState, caseClauses);\n processLabeledJumps(state.labeledNonLocalContinues, /*isBreak*/ false, loopResultName, outerState, caseClauses);\n statements.push(factory.createSwitchStatement(loopResultName, factory.createCaseBlock(caseClauses)));\n }\n }\n return statements;\n }\n function setLabeledJump(state, isBreak, labelText, labelMarker) {\n if (isBreak) {\n if (!state.labeledNonLocalBreaks) {\n state.labeledNonLocalBreaks = new ts.Map();\n }\n state.labeledNonLocalBreaks.set(labelText, labelMarker);\n }\n else {\n if (!state.labeledNonLocalContinues) {\n state.labeledNonLocalContinues = new ts.Map();\n }\n state.labeledNonLocalContinues.set(labelText, labelMarker);\n }\n }\n function processLabeledJumps(table, isBreak, loopResultName, outerLoop, caseClauses) {\n if (!table) {\n return;\n }\n table.forEach(function (labelMarker, labelText) {\n var statements = [];\n // if there are no outer converted loop or outer label in question is located inside outer converted loop\n // then emit labeled break\\continue\n // otherwise propagate pair 'label -> marker' to outer converted loop and emit 'return labelMarker' so outer loop can later decide what to do\n if (!outerLoop || (outerLoop.labels && outerLoop.labels.get(labelText))) {\n var label = factory.createIdentifier(labelText);\n statements.push(isBreak ? factory.createBreakStatement(label) : factory.createContinueStatement(label));\n }\n else {\n setLabeledJump(outerLoop, isBreak, labelText, labelMarker);\n statements.push(factory.createReturnStatement(loopResultName));\n }\n caseClauses.push(factory.createCaseClause(factory.createStringLiteral(labelMarker), statements));\n });\n }\n function processLoopVariableDeclaration(container, decl, loopParameters, loopOutParameters, hasCapturedBindingsInForInitializer) {\n var name = decl.name;\n if (ts.isBindingPattern(name)) {\n for (var _i = 0, _a = name.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n processLoopVariableDeclaration(container, element, loopParameters, loopOutParameters, hasCapturedBindingsInForInitializer);\n }\n }\n }\n else {\n loopParameters.push(factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, name));\n var checkFlags = resolver.getNodeCheckFlags(decl);\n if (checkFlags & 4194304 /* NeedsLoopOutParameter */ || hasCapturedBindingsInForInitializer) {\n var outParamName = factory.createUniqueName(\"out_\" + ts.idText(name));\n var flags = 0;\n if (checkFlags & 4194304 /* NeedsLoopOutParameter */) {\n flags |= 1 /* Body */;\n }\n if (ts.isForStatement(container) && container.initializer && resolver.isBindingCapturedByNode(container.initializer, decl)) {\n flags |= 2 /* Initializer */;\n }\n loopOutParameters.push({ flags: flags, originalName: name, outParamName: outParamName });\n }\n }\n }\n /**\n * Adds the members of an object literal to an array of expressions.\n *\n * @param expressions An array of expressions.\n * @param node An ObjectLiteralExpression node.\n * @param receiver The receiver for members of the ObjectLiteralExpression.\n * @param numInitialNonComputedProperties The number of initial properties without\n * computed property names.\n */\n function addObjectLiteralMembers(expressions, node, receiver, start) {\n var properties = node.properties;\n var numProperties = properties.length;\n for (var i = start; i < numProperties; i++) {\n var property = properties[i];\n switch (property.kind) {\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n var accessors = ts.getAllAccessorDeclarations(node.properties, property);\n if (property === accessors.firstAccessor) {\n expressions.push(transformAccessorsToExpression(receiver, accessors, node, !!node.multiLine));\n }\n break;\n case 167 /* MethodDeclaration */:\n expressions.push(transformObjectLiteralMethodDeclarationToExpression(property, receiver, node, node.multiLine));\n break;\n case 291 /* PropertyAssignment */:\n expressions.push(transformPropertyAssignmentToExpression(property, receiver, node.multiLine));\n break;\n case 292 /* ShorthandPropertyAssignment */:\n expressions.push(transformShorthandPropertyAssignmentToExpression(property, receiver, node.multiLine));\n break;\n default:\n ts.Debug.failBadSyntaxKind(node);\n break;\n }\n }\n }\n /**\n * Transforms a PropertyAssignment node into an expression.\n *\n * @param node The ObjectLiteralExpression that contains the PropertyAssignment.\n * @param property The PropertyAssignment node.\n * @param receiver The receiver for the assignment.\n */\n function transformPropertyAssignmentToExpression(property, receiver, startsOnNewLine) {\n var expression = factory.createAssignment(ts.createMemberAccessForPropertyName(factory, receiver, ts.visitNode(property.name, visitor, ts.isPropertyName)), ts.visitNode(property.initializer, visitor, ts.isExpression));\n ts.setTextRange(expression, property);\n if (startsOnNewLine) {\n ts.startOnNewLine(expression);\n }\n return expression;\n }\n /**\n * Transforms a ShorthandPropertyAssignment node into an expression.\n *\n * @param node The ObjectLiteralExpression that contains the ShorthandPropertyAssignment.\n * @param property The ShorthandPropertyAssignment node.\n * @param receiver The receiver for the assignment.\n */\n function transformShorthandPropertyAssignmentToExpression(property, receiver, startsOnNewLine) {\n var expression = factory.createAssignment(ts.createMemberAccessForPropertyName(factory, receiver, ts.visitNode(property.name, visitor, ts.isPropertyName)), factory.cloneNode(property.name));\n ts.setTextRange(expression, property);\n if (startsOnNewLine) {\n ts.startOnNewLine(expression);\n }\n return expression;\n }\n /**\n * Transforms a MethodDeclaration of an ObjectLiteralExpression into an expression.\n *\n * @param node The ObjectLiteralExpression that contains the MethodDeclaration.\n * @param method The MethodDeclaration node.\n * @param receiver The receiver for the assignment.\n */\n function transformObjectLiteralMethodDeclarationToExpression(method, receiver, container, startsOnNewLine) {\n var expression = factory.createAssignment(ts.createMemberAccessForPropertyName(factory, receiver, ts.visitNode(method.name, visitor, ts.isPropertyName)), transformFunctionLikeToExpression(method, /*location*/ method, /*name*/ undefined, container));\n ts.setTextRange(expression, method);\n if (startsOnNewLine) {\n ts.startOnNewLine(expression);\n }\n return expression;\n }\n function visitCatchClause(node) {\n var ancestorFacts = enterSubtree(7104 /* BlockScopeExcludes */, 0 /* BlockScopeIncludes */);\n var updated;\n ts.Debug.assert(!!node.variableDeclaration, \"Catch clause variable should always be present when downleveling ES2015.\");\n if (ts.isBindingPattern(node.variableDeclaration.name)) {\n var temp = factory.createTempVariable(/*recordTempVariable*/ undefined);\n var newVariableDeclaration = factory.createVariableDeclaration(temp);\n ts.setTextRange(newVariableDeclaration, node.variableDeclaration);\n var vars = ts.flattenDestructuringBinding(node.variableDeclaration, visitor, context, 0 /* All */, temp);\n var list = factory.createVariableDeclarationList(vars);\n ts.setTextRange(list, node.variableDeclaration);\n var destructure = factory.createVariableStatement(/*modifiers*/ undefined, list);\n updated = factory.updateCatchClause(node, newVariableDeclaration, addStatementToStartOfBlock(node.block, destructure));\n }\n else {\n updated = ts.visitEachChild(node, visitor, context);\n }\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return updated;\n }\n function addStatementToStartOfBlock(block, statement) {\n var transformedStatements = ts.visitNodes(block.statements, visitor, ts.isStatement);\n return factory.updateBlock(block, __spreadArray([statement], transformedStatements, true));\n }\n /**\n * Visits a MethodDeclaration of an ObjectLiteralExpression and transforms it into a\n * PropertyAssignment.\n *\n * @param node A MethodDeclaration node.\n */\n function visitMethodDeclaration(node) {\n // We should only get here for methods on an object literal with regular identifier names.\n // Methods on classes are handled in visitClassDeclaration/visitClassExpression.\n // Methods with computed property names are handled in visitObjectLiteralExpression.\n ts.Debug.assert(!ts.isComputedPropertyName(node.name));\n var functionExpression = transformFunctionLikeToExpression(node, /*location*/ ts.moveRangePos(node, -1), /*name*/ undefined, /*container*/ undefined);\n ts.setEmitFlags(functionExpression, 512 /* NoLeadingComments */ | ts.getEmitFlags(functionExpression));\n return ts.setTextRange(factory.createPropertyAssignment(node.name, functionExpression), \n /*location*/ node);\n }\n /**\n * Visits an AccessorDeclaration of an ObjectLiteralExpression.\n *\n * @param node An AccessorDeclaration node.\n */\n function visitAccessorDeclaration(node) {\n ts.Debug.assert(!ts.isComputedPropertyName(node.name));\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, 65 /* FunctionIncludes */);\n var updated;\n var parameters = ts.visitParameterList(node.parameters, visitor, context);\n var body = transformFunctionBody(node);\n if (node.kind === 170 /* GetAccessor */) {\n updated = factory.updateGetAccessorDeclaration(node, node.decorators, node.modifiers, node.name, parameters, node.type, body);\n }\n else {\n updated = factory.updateSetAccessorDeclaration(node, node.decorators, node.modifiers, node.name, parameters, body);\n }\n exitSubtree(ancestorFacts, 98304 /* FunctionSubtreeExcludes */, 0 /* None */);\n convertedLoopState = savedConvertedLoopState;\n return updated;\n }\n /**\n * Visits a ShorthandPropertyAssignment and transforms it into a PropertyAssignment.\n *\n * @param node A ShorthandPropertyAssignment node.\n */\n function visitShorthandPropertyAssignment(node) {\n return ts.setTextRange(factory.createPropertyAssignment(node.name, visitIdentifier(factory.cloneNode(node.name))), \n /*location*/ node);\n }\n function visitComputedPropertyName(node) {\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a YieldExpression node.\n *\n * @param node A YieldExpression node.\n */\n function visitYieldExpression(node) {\n // `yield` expressions are transformed using the generators transformer.\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits an ArrayLiteralExpression that contains a spread element.\n *\n * @param node An ArrayLiteralExpression node.\n */\n function visitArrayLiteralExpression(node) {\n if (ts.some(node.elements, ts.isSpreadElement)) {\n // We are here because we contain a SpreadElementExpression.\n return transformAndSpreadElements(node.elements, /*isArgumentList*/ false, !!node.multiLine, /*hasTrailingComma*/ !!node.elements.hasTrailingComma);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a CallExpression that contains either a spread element or `super`.\n *\n * @param node a CallExpression.\n */\n function visitCallExpression(node) {\n if (ts.getEmitFlags(node) & 33554432 /* TypeScriptClassWrapper */) {\n return visitTypeScriptClassWrapper(node);\n }\n var expression = ts.skipOuterExpressions(node.expression);\n if (expression.kind === 106 /* SuperKeyword */ ||\n ts.isSuperProperty(expression) ||\n ts.some(node.arguments, ts.isSpreadElement)) {\n return visitCallExpressionWithPotentialCapturedThisAssignment(node, /*assignToCapturedThis*/ true);\n }\n return factory.updateCallExpression(node, ts.visitNode(node.expression, callExpressionVisitor, ts.isExpression), \n /*typeArguments*/ undefined, ts.visitNodes(node.arguments, visitor, ts.isExpression));\n }\n function visitTypeScriptClassWrapper(node) {\n // This is a call to a class wrapper function (an IIFE) created by the 'ts' transformer.\n // The wrapper has a form similar to:\n //\n // (function() {\n // class C { // 1\n // }\n // C.x = 1; // 2\n // return C;\n // }())\n //\n // When we transform the class, we end up with something like this:\n //\n // (function () {\n // var C = (function () { // 3\n // function C() {\n // }\n // return C; // 4\n // }());\n // C.x = 1;\n // return C;\n // }())\n //\n // We want to simplify the two nested IIFEs to end up with something like this:\n //\n // (function () {\n // function C() {\n // }\n // C.x = 1;\n // return C;\n // }())\n // We skip any outer expressions in a number of places to get to the innermost\n // expression, but we will restore them later to preserve comments and source maps.\n var body = ts.cast(ts.cast(ts.skipOuterExpressions(node.expression), ts.isArrowFunction).body, ts.isBlock);\n // The class statements are the statements generated by visiting the first statement with initializer of the\n // body (1), while all other statements are added to remainingStatements (2)\n var isVariableStatementWithInitializer = function (stmt) { return ts.isVariableStatement(stmt) && !!ts.first(stmt.declarationList.declarations).initializer; };\n // visit the class body statements outside of any converted loop body.\n var savedConvertedLoopState = convertedLoopState;\n convertedLoopState = undefined;\n var bodyStatements = ts.visitNodes(body.statements, classWrapperStatementVisitor, ts.isStatement);\n convertedLoopState = savedConvertedLoopState;\n var classStatements = ts.filter(bodyStatements, isVariableStatementWithInitializer);\n var remainingStatements = ts.filter(bodyStatements, function (stmt) { return !isVariableStatementWithInitializer(stmt); });\n var varStatement = ts.cast(ts.first(classStatements), ts.isVariableStatement);\n // We know there is only one variable declaration here as we verified this in an\n // earlier call to isTypeScriptClassWrapper\n var variable = varStatement.declarationList.declarations[0];\n var initializer = ts.skipOuterExpressions(variable.initializer);\n // Under certain conditions, the 'ts' transformer may introduce a class alias, which\n // we see as an assignment, for example:\n //\n // (function () {\n // var C_1;\n // var C = C_1 = (function () {\n // function C() {\n // }\n // C.x = function () { return C_1; }\n // return C;\n // }());\n // C = C_1 = __decorate([dec], C);\n // return C;\n // }())\n //\n var aliasAssignment = ts.tryCast(initializer, ts.isAssignmentExpression);\n if (!aliasAssignment && ts.isBinaryExpression(initializer) && initializer.operatorToken.kind === 27 /* CommaToken */) {\n aliasAssignment = ts.tryCast(initializer.left, ts.isAssignmentExpression);\n }\n // The underlying call (3) is another IIFE that may contain a '_super' argument.\n var call = ts.cast(aliasAssignment ? ts.skipOuterExpressions(aliasAssignment.right) : initializer, ts.isCallExpression);\n var func = ts.cast(ts.skipOuterExpressions(call.expression), ts.isFunctionExpression);\n var funcStatements = func.body.statements;\n var classBodyStart = 0;\n var classBodyEnd = -1;\n var statements = [];\n if (aliasAssignment) {\n // If we have a class alias assignment, we need to move it to the down-level constructor\n // function we generated for the class.\n var extendsCall = ts.tryCast(funcStatements[classBodyStart], ts.isExpressionStatement);\n if (extendsCall) {\n statements.push(extendsCall);\n classBodyStart++;\n }\n // The next statement is the function declaration.\n statements.push(funcStatements[classBodyStart]);\n classBodyStart++;\n // Add the class alias following the declaration.\n statements.push(factory.createExpressionStatement(factory.createAssignment(aliasAssignment.left, ts.cast(variable.name, ts.isIdentifier))));\n }\n // Find the trailing 'return' statement (4)\n while (!ts.isReturnStatement(ts.elementAt(funcStatements, classBodyEnd))) {\n classBodyEnd--;\n }\n // When we extract the statements of the inner IIFE, we exclude the 'return' statement (4)\n // as we already have one that has been introduced by the 'ts' transformer.\n ts.addRange(statements, funcStatements, classBodyStart, classBodyEnd);\n if (classBodyEnd < -1) {\n // If there were any hoisted declarations following the return statement, we should\n // append them.\n ts.addRange(statements, funcStatements, classBodyEnd + 1);\n }\n // Add the remaining statements of the outer wrapper.\n ts.addRange(statements, remainingStatements);\n // The 'es2015' class transform may add an end-of-declaration marker. If so we will add it\n // after the remaining statements from the 'ts' transformer.\n ts.addRange(statements, classStatements, /*start*/ 1);\n // Recreate any outer parentheses or partially-emitted expressions to preserve source map\n // and comment locations.\n return factory.restoreOuterExpressions(node.expression, factory.restoreOuterExpressions(variable.initializer, factory.restoreOuterExpressions(aliasAssignment && aliasAssignment.right, factory.updateCallExpression(call, factory.restoreOuterExpressions(call.expression, factory.updateFunctionExpression(func, \n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, func.parameters, \n /*type*/ undefined, factory.updateBlock(func.body, statements))), \n /*typeArguments*/ undefined, call.arguments))));\n }\n function visitImmediateSuperCallInBody(node) {\n return visitCallExpressionWithPotentialCapturedThisAssignment(node, /*assignToCapturedThis*/ false);\n }\n function visitCallExpressionWithPotentialCapturedThisAssignment(node, assignToCapturedThis) {\n // We are here either because SuperKeyword was used somewhere in the expression, or\n // because we contain a SpreadElementExpression.\n if (node.transformFlags & 16384 /* ContainsRestOrSpread */ ||\n node.expression.kind === 106 /* SuperKeyword */ ||\n ts.isSuperProperty(ts.skipOuterExpressions(node.expression))) {\n var _a = factory.createCallBinding(node.expression, hoistVariableDeclaration), target = _a.target, thisArg = _a.thisArg;\n if (node.expression.kind === 106 /* SuperKeyword */) {\n ts.setEmitFlags(thisArg, 4 /* NoSubstitution */);\n }\n var resultingCall = void 0;\n if (node.transformFlags & 16384 /* ContainsRestOrSpread */) {\n // [source]\n // f(...a, b)\n // x.m(...a, b)\n // super(...a, b)\n // super.m(...a, b) // in static\n // super.m(...a, b) // in instance\n //\n // [output]\n // f.apply(void 0, a.concat([b]))\n // (_a = x).m.apply(_a, a.concat([b]))\n // _super.apply(this, a.concat([b]))\n // _super.m.apply(this, a.concat([b]))\n // _super.prototype.m.apply(this, a.concat([b]))\n resultingCall = factory.createFunctionApplyCall(ts.visitNode(target, callExpressionVisitor, ts.isExpression), node.expression.kind === 106 /* SuperKeyword */ ? thisArg : ts.visitNode(thisArg, visitor, ts.isExpression), transformAndSpreadElements(node.arguments, /*isArgumentList*/ true, /*multiLine*/ false, /*hasTrailingComma*/ false));\n }\n else {\n // [source]\n // super(a)\n // super.m(a) // in static\n // super.m(a) // in instance\n //\n // [output]\n // _super.call(this, a)\n // _super.m.call(this, a)\n // _super.prototype.m.call(this, a)\n resultingCall = ts.setTextRange(factory.createFunctionCallCall(ts.visitNode(target, callExpressionVisitor, ts.isExpression), node.expression.kind === 106 /* SuperKeyword */ ? thisArg : ts.visitNode(thisArg, visitor, ts.isExpression), ts.visitNodes(node.arguments, visitor, ts.isExpression)), node);\n }\n if (node.expression.kind === 106 /* SuperKeyword */) {\n var initializer = factory.createLogicalOr(resultingCall, createActualThis());\n resultingCall = assignToCapturedThis\n ? factory.createAssignment(factory.createUniqueName(\"_this\", 16 /* Optimistic */ | 32 /* FileLevel */), initializer)\n : initializer;\n }\n return ts.setOriginalNode(resultingCall, node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a NewExpression that contains a spread element.\n *\n * @param node A NewExpression node.\n */\n function visitNewExpression(node) {\n if (ts.some(node.arguments, ts.isSpreadElement)) {\n // We are here because we contain a SpreadElementExpression.\n // [source]\n // new C(...a)\n //\n // [output]\n // new ((_a = C).bind.apply(_a, [void 0].concat(a)))()\n var _a = factory.createCallBinding(factory.createPropertyAccessExpression(node.expression, \"bind\"), hoistVariableDeclaration), target = _a.target, thisArg = _a.thisArg;\n return factory.createNewExpression(factory.createFunctionApplyCall(ts.visitNode(target, visitor, ts.isExpression), thisArg, transformAndSpreadElements(factory.createNodeArray(__spreadArray([factory.createVoidZero()], node.arguments, true)), /*isArgumentList*/ true, /*multiLine*/ false, /*hasTrailingComma*/ false)), \n /*typeArguments*/ undefined, []);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Transforms an array of Expression nodes that contains a SpreadExpression.\n *\n * @param elements The array of Expression nodes.\n * @param isArgumentList A value indicating whether to ensure that the result is a fresh array.\n * This should be `false` when spreading into an `ArrayLiteral`, and `true` when spreading into an\n * argument list.\n * @param multiLine A value indicating whether the result should be emitted on multiple lines.\n */\n function transformAndSpreadElements(elements, isArgumentList, multiLine, hasTrailingComma) {\n // When there is no leading SpreadElement:\n //\n // [source]\n // [a, ...b, c]\n //\n // [output (downlevelIteration)]\n // __spreadArray(__spreadArray([a], __read(b)), [c])\n //\n // [output]\n // __spreadArray(__spreadArray([a], b), [c])\n //\n // When there *is* a leading SpreadElement:\n //\n // [source]\n // [...a, b]\n //\n // [output (downlevelIteration)]\n // __spreadArray(__spreadArray([], __read(a)), [b])\n //\n // [output]\n // __spreadArray(__spreadArray([], a), [b])\n //\n // NOTE: We use `isPackedArrayLiteral` below rather than just `isArrayLiteral`\n // because ES2015 spread will replace _missing_ array elements with `undefined`,\n // so we cannot just use an array as is. For example:\n //\n // `[1, ...[2, , 3]]` becomes `[1, 2, undefined, 3]`\n //\n // However, for packed array literals (i.e., an array literal with no OmittedExpression\n // elements), we can use the array as-is.\n // Map spans of spread expressions into their expressions and spans of other\n // expressions into an array literal.\n var numElements = elements.length;\n var segments = ts.flatten(\n // As we visit each element, we return one of two functions to use as the \"key\":\n // - `visitSpanOfSpreads` for one or more contiguous `...` spread expressions, i.e. `...a, ...b` in `[1, 2, ...a, ...b]`\n // - `visitSpanOfNonSpreads` for one or more contiguous non-spread elements, i.e. `1, 2`, in `[1, 2, ...a, ...b]`\n ts.spanMap(elements, partitionSpread, function (partition, visitPartition, _start, end) {\n return visitPartition(partition, multiLine, hasTrailingComma && end === numElements);\n }));\n if (segments.length === 1) {\n var firstSegment = segments[0];\n // If we don't need a unique copy, then we are spreading into an argument list for\n // a CallExpression or NewExpression. When using `--downlevelIteration`, we need\n // to coerce this into an array for use with `apply`, so we will use the code path\n // that follows instead.\n if (isArgumentList && !compilerOptions.downlevelIteration\n || ts.isPackedArrayLiteral(firstSegment.expression) // see NOTE (above)\n || ts.isCallToHelper(firstSegment.expression, \"___spreadArray\")) {\n return firstSegment.expression;\n }\n }\n var helpers = emitHelpers();\n var startsWithSpread = segments[0].kind !== 0 /* None */;\n var expression = startsWithSpread ? factory.createArrayLiteralExpression() :\n segments[0].expression;\n for (var i = startsWithSpread ? 0 : 1; i < segments.length; i++) {\n var segment = segments[i];\n // If this is for an argument list, it doesn't matter if the array is packed or sparse\n expression = helpers.createSpreadArrayHelper(expression, segment.expression, segment.kind === 1 /* UnpackedSpread */ && !isArgumentList);\n }\n return expression;\n }\n function partitionSpread(node) {\n return ts.isSpreadElement(node)\n ? visitSpanOfSpreads\n : visitSpanOfNonSpreads;\n }\n function visitSpanOfSpreads(chunk) {\n return ts.map(chunk, visitExpressionOfSpread);\n }\n function visitExpressionOfSpread(node) {\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n // We don't need to pack already packed array literals, or existing calls to the `__read` helper.\n var isCallToReadHelper = ts.isCallToHelper(expression, \"___read\");\n var kind = isCallToReadHelper || ts.isPackedArrayLiteral(expression) ? 2 /* PackedSpread */ : 1 /* UnpackedSpread */;\n // We don't need the `__read` helper for array literals. Array packing will be performed by `__spreadArray`.\n if (compilerOptions.downlevelIteration && kind === 1 /* UnpackedSpread */ && !ts.isArrayLiteralExpression(expression) && !isCallToReadHelper) {\n expression = emitHelpers().createReadHelper(expression, /*count*/ undefined);\n // the `__read` helper returns a packed array, so we don't need to ensure a packed array\n kind = 2 /* PackedSpread */;\n }\n return createSpreadSegment(kind, expression);\n }\n function visitSpanOfNonSpreads(chunk, multiLine, hasTrailingComma) {\n var expression = factory.createArrayLiteralExpression(ts.visitNodes(factory.createNodeArray(chunk, hasTrailingComma), visitor, ts.isExpression), multiLine);\n // We do not pack non-spread segments, this is so that `[1, , ...[2, , 3], , 4]` is properly downleveled to\n // `[1, , 2, undefined, 3, , 4]`. See the NOTE in `transformAndSpreadElements`\n return createSpreadSegment(0 /* None */, expression);\n }\n function visitSpreadElement(node) {\n return ts.visitNode(node.expression, visitor, ts.isExpression);\n }\n /**\n * Visits a template literal.\n *\n * @param node A template literal.\n */\n function visitTemplateLiteral(node) {\n return ts.setTextRange(factory.createStringLiteral(node.text), node);\n }\n /**\n * Visits a string literal with an extended unicode escape.\n *\n * @param node A string literal.\n */\n function visitStringLiteral(node) {\n if (node.hasExtendedUnicodeEscape) {\n return ts.setTextRange(factory.createStringLiteral(node.text), node);\n }\n return node;\n }\n /**\n * Visits a binary or octal (ES6) numeric literal.\n *\n * @param node A string literal.\n */\n function visitNumericLiteral(node) {\n if (node.numericLiteralFlags & 384 /* BinaryOrOctalSpecifier */) {\n return ts.setTextRange(factory.createNumericLiteral(node.text), node);\n }\n return node;\n }\n /**\n * Visits a TaggedTemplateExpression node.\n *\n * @param node A TaggedTemplateExpression node.\n */\n function visitTaggedTemplateExpression(node) {\n return ts.processTaggedTemplateExpression(context, node, visitor, currentSourceFile, recordTaggedTemplateString, ts.ProcessLevel.All);\n }\n /**\n * Visits a TemplateExpression node.\n *\n * @param node A TemplateExpression node.\n */\n function visitTemplateExpression(node) {\n var expressions = [];\n addTemplateHead(expressions, node);\n addTemplateSpans(expressions, node);\n // createAdd will check if each expression binds less closely than binary '+'.\n // If it does, it wraps the expression in parentheses. Otherwise, something like\n // `abc${ 1 << 2 }`\n // becomes\n // \"abc\" + 1 << 2 + \"\"\n // which is really\n // (\"abc\" + 1) << (2 + \"\")\n // rather than\n // \"abc\" + (1 << 2) + \"\"\n var expression = ts.reduceLeft(expressions, factory.createAdd);\n if (ts.nodeIsSynthesized(expression)) {\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n /**\n * Gets a value indicating whether we need to include the head of a TemplateExpression.\n *\n * @param node A TemplateExpression node.\n */\n function shouldAddTemplateHead(node) {\n // If this expression has an empty head literal and the first template span has a non-empty\n // literal, then emitting the empty head literal is not necessary.\n // `${ foo } and ${ bar }`\n // can be emitted as\n // foo + \" and \" + bar\n // This is because it is only required that one of the first two operands in the emit\n // output must be a string literal, so that the other operand and all following operands\n // are forced into strings.\n //\n // If the first template span has an empty literal, then the head must still be emitted.\n // `${ foo }${ bar }`\n // must still be emitted as\n // \"\" + foo + bar\n // There is always atleast one templateSpan in this code path, since\n // NoSubstitutionTemplateLiterals are directly emitted via emitLiteral()\n ts.Debug.assert(node.templateSpans.length !== 0);\n return node.head.text.length !== 0 || node.templateSpans[0].literal.text.length === 0;\n }\n /**\n * Adds the head of a TemplateExpression to an array of expressions.\n *\n * @param expressions An array of expressions.\n * @param node A TemplateExpression node.\n */\n function addTemplateHead(expressions, node) {\n if (!shouldAddTemplateHead(node)) {\n return;\n }\n expressions.push(factory.createStringLiteral(node.head.text));\n }\n /**\n * Visits and adds the template spans of a TemplateExpression to an array of expressions.\n *\n * @param expressions An array of expressions.\n * @param node A TemplateExpression node.\n */\n function addTemplateSpans(expressions, node) {\n for (var _i = 0, _a = node.templateSpans; _i < _a.length; _i++) {\n var span = _a[_i];\n expressions.push(ts.visitNode(span.expression, visitor, ts.isExpression));\n // Only emit if the literal is non-empty.\n // The binary '+' operator is left-associative, so the first string concatenation\n // with the head will force the result up to this point to be a string.\n // Emitting a '+ \"\"' has no semantic effect for middles and tails.\n if (span.literal.text.length !== 0) {\n expressions.push(factory.createStringLiteral(span.literal.text));\n }\n }\n }\n /**\n * Visits the `super` keyword\n */\n function visitSuperKeyword(isExpressionOfCall) {\n return hierarchyFacts & 8 /* NonStaticClassElement */\n && !isExpressionOfCall\n ? factory.createPropertyAccessExpression(factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */), \"prototype\")\n : factory.createUniqueName(\"_super\", 16 /* Optimistic */ | 32 /* FileLevel */);\n }\n function visitMetaProperty(node) {\n if (node.keywordToken === 103 /* NewKeyword */ && node.name.escapedText === \"target\") {\n hierarchyFacts |= 32768 /* NewTarget */;\n return factory.createUniqueName(\"_newTarget\", 16 /* Optimistic */ | 32 /* FileLevel */);\n }\n return node;\n }\n /**\n * Called by the printer just before a node is printed.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to be printed.\n * @param emitCallback The callback used to emit the node.\n */\n function onEmitNode(hint, node, emitCallback) {\n if (enabledSubstitutions & 1 /* CapturedThis */ && ts.isFunctionLike(node)) {\n // If we are tracking a captured `this`, keep track of the enclosing function.\n var ancestorFacts = enterSubtree(32670 /* FunctionExcludes */, ts.getEmitFlags(node) & 8 /* CapturesThis */\n ? 65 /* FunctionIncludes */ | 16 /* CapturesThis */\n : 65 /* FunctionIncludes */);\n previousOnEmitNode(hint, node, emitCallback);\n exitSubtree(ancestorFacts, 0 /* None */, 0 /* None */);\n return;\n }\n previousOnEmitNode(hint, node, emitCallback);\n }\n /**\n * Enables a more costly code path for substitutions when we determine a source file\n * contains block-scoped bindings (e.g. `let` or `const`).\n */\n function enableSubstitutionsForBlockScopedBindings() {\n if ((enabledSubstitutions & 2 /* BlockScopedBindings */) === 0) {\n enabledSubstitutions |= 2 /* BlockScopedBindings */;\n context.enableSubstitution(79 /* Identifier */);\n }\n }\n /**\n * Enables a more costly code path for substitutions when we determine a source file\n * contains a captured `this`.\n */\n function enableSubstitutionsForCapturedThis() {\n if ((enabledSubstitutions & 1 /* CapturedThis */) === 0) {\n enabledSubstitutions |= 1 /* CapturedThis */;\n context.enableSubstitution(108 /* ThisKeyword */);\n context.enableEmitNotification(169 /* Constructor */);\n context.enableEmitNotification(167 /* MethodDeclaration */);\n context.enableEmitNotification(170 /* GetAccessor */);\n context.enableEmitNotification(171 /* SetAccessor */);\n context.enableEmitNotification(212 /* ArrowFunction */);\n context.enableEmitNotification(211 /* FunctionExpression */);\n context.enableEmitNotification(254 /* FunctionDeclaration */);\n }\n }\n /**\n * Hooks node substitutions.\n *\n * @param hint The context for the emitter.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (hint === 1 /* Expression */) {\n return substituteExpression(node);\n }\n if (ts.isIdentifier(node)) {\n return substituteIdentifier(node);\n }\n return node;\n }\n /**\n * Hooks substitutions for non-expression identifiers.\n */\n function substituteIdentifier(node) {\n // Only substitute the identifier if we have enabled substitutions for block-scoped\n // bindings.\n if (enabledSubstitutions & 2 /* BlockScopedBindings */ && !ts.isInternalName(node)) {\n var original = ts.getParseTreeNode(node, ts.isIdentifier);\n if (original && isNameOfDeclarationWithCollidingName(original)) {\n return ts.setTextRange(factory.getGeneratedNameForNode(original), node);\n }\n }\n return node;\n }\n /**\n * Determines whether a name is the name of a declaration with a colliding name.\n * NOTE: This function expects to be called with an original source tree node.\n *\n * @param node An original source tree node.\n */\n function isNameOfDeclarationWithCollidingName(node) {\n switch (node.parent.kind) {\n case 201 /* BindingElement */:\n case 255 /* ClassDeclaration */:\n case 258 /* EnumDeclaration */:\n case 252 /* VariableDeclaration */:\n return node.parent.name === node\n && resolver.isDeclarationWithCollidingName(node.parent);\n }\n return false;\n }\n /**\n * Substitutes an expression.\n *\n * @param node An Expression node.\n */\n function substituteExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return substituteExpressionIdentifier(node);\n case 108 /* ThisKeyword */:\n return substituteThisKeyword(node);\n }\n return node;\n }\n /**\n * Substitutes an expression identifier.\n *\n * @param node An Identifier node.\n */\n function substituteExpressionIdentifier(node) {\n if (enabledSubstitutions & 2 /* BlockScopedBindings */ && !ts.isInternalName(node)) {\n var declaration = resolver.getReferencedDeclarationWithCollidingName(node);\n if (declaration && !(ts.isClassLike(declaration) && isPartOfClassBody(declaration, node))) {\n return ts.setTextRange(factory.getGeneratedNameForNode(ts.getNameOfDeclaration(declaration)), node);\n }\n }\n return node;\n }\n function isPartOfClassBody(declaration, node) {\n var currentNode = ts.getParseTreeNode(node);\n if (!currentNode || currentNode === declaration || currentNode.end <= declaration.pos || currentNode.pos >= declaration.end) {\n // if the node has no correlation to a parse tree node, its definitely not\n // part of the body.\n // if the node is outside of the document range of the declaration, its\n // definitely not part of the body.\n return false;\n }\n var blockScope = ts.getEnclosingBlockScopeContainer(declaration);\n while (currentNode) {\n if (currentNode === blockScope || currentNode === declaration) {\n // if we are in the enclosing block scope of the declaration, we are definitely\n // not inside the class body.\n return false;\n }\n if (ts.isClassElement(currentNode) && currentNode.parent === declaration) {\n return true;\n }\n currentNode = currentNode.parent;\n }\n return false;\n }\n /**\n * Substitutes `this` when contained within an arrow function.\n *\n * @param node The ThisKeyword node.\n */\n function substituteThisKeyword(node) {\n if (enabledSubstitutions & 1 /* CapturedThis */\n && hierarchyFacts & 16 /* CapturesThis */) {\n return ts.setTextRange(factory.createUniqueName(\"_this\", 16 /* Optimistic */ | 32 /* FileLevel */), node);\n }\n return node;\n }\n function getClassMemberPrefix(node, member) {\n return ts.isStatic(member)\n ? factory.getInternalName(node)\n : factory.createPropertyAccessExpression(factory.getInternalName(node), \"prototype\");\n }\n function hasSynthesizedDefaultSuperCall(constructor, hasExtendsClause) {\n if (!constructor || !hasExtendsClause) {\n return false;\n }\n if (ts.some(constructor.parameters)) {\n return false;\n }\n var statement = ts.firstOrUndefined(constructor.body.statements);\n if (!statement || !ts.nodeIsSynthesized(statement) || statement.kind !== 236 /* ExpressionStatement */) {\n return false;\n }\n var statementExpression = statement.expression;\n if (!ts.nodeIsSynthesized(statementExpression) || statementExpression.kind !== 206 /* CallExpression */) {\n return false;\n }\n var callTarget = statementExpression.expression;\n if (!ts.nodeIsSynthesized(callTarget) || callTarget.kind !== 106 /* SuperKeyword */) {\n return false;\n }\n var callArgument = ts.singleOrUndefined(statementExpression.arguments);\n if (!callArgument || !ts.nodeIsSynthesized(callArgument) || callArgument.kind !== 223 /* SpreadElement */) {\n return false;\n }\n var expression = callArgument.expression;\n return ts.isIdentifier(expression) && expression.escapedText === \"arguments\";\n }\n }\n ts.transformES2015 = transformES2015;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n /**\n * Transforms ES5 syntax into ES3 syntax.\n *\n * @param context Context and state information for the transformation.\n */\n function transformES5(context) {\n var factory = context.factory;\n var compilerOptions = context.getCompilerOptions();\n // enable emit notification only if using --jsx preserve or react-native\n var previousOnEmitNode;\n var noSubstitution;\n if (compilerOptions.jsx === 1 /* Preserve */ || compilerOptions.jsx === 3 /* ReactNative */) {\n previousOnEmitNode = context.onEmitNode;\n context.onEmitNode = onEmitNode;\n context.enableEmitNotification(278 /* JsxOpeningElement */);\n context.enableEmitNotification(279 /* JsxClosingElement */);\n context.enableEmitNotification(277 /* JsxSelfClosingElement */);\n noSubstitution = [];\n }\n var previousOnSubstituteNode = context.onSubstituteNode;\n context.onSubstituteNode = onSubstituteNode;\n context.enableSubstitution(204 /* PropertyAccessExpression */);\n context.enableSubstitution(291 /* PropertyAssignment */);\n return ts.chainBundle(context, transformSourceFile);\n /**\n * Transforms an ES5 source file to ES3.\n *\n * @param node A SourceFile\n */\n function transformSourceFile(node) {\n return node;\n }\n /**\n * Called by the printer just before a node is printed.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emitCallback A callback used to emit the node.\n */\n function onEmitNode(hint, node, emitCallback) {\n switch (node.kind) {\n case 278 /* JsxOpeningElement */:\n case 279 /* JsxClosingElement */:\n case 277 /* JsxSelfClosingElement */:\n var tagName = node.tagName;\n noSubstitution[ts.getOriginalNodeId(tagName)] = true;\n break;\n }\n previousOnEmitNode(hint, node, emitCallback);\n }\n /**\n * Hooks node substitutions.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n if (node.id && noSubstitution && noSubstitution[node.id]) {\n return previousOnSubstituteNode(hint, node);\n }\n node = previousOnSubstituteNode(hint, node);\n if (ts.isPropertyAccessExpression(node)) {\n return substitutePropertyAccessExpression(node);\n }\n else if (ts.isPropertyAssignment(node)) {\n return substitutePropertyAssignment(node);\n }\n return node;\n }\n /**\n * Substitutes a PropertyAccessExpression whose name is a reserved word.\n *\n * @param node A PropertyAccessExpression\n */\n function substitutePropertyAccessExpression(node) {\n if (ts.isPrivateIdentifier(node.name)) {\n return node;\n }\n var literalName = trySubstituteReservedName(node.name);\n if (literalName) {\n return ts.setTextRange(factory.createElementAccessExpression(node.expression, literalName), node);\n }\n return node;\n }\n /**\n * Substitutes a PropertyAssignment whose name is a reserved word.\n *\n * @param node A PropertyAssignment\n */\n function substitutePropertyAssignment(node) {\n var literalName = ts.isIdentifier(node.name) && trySubstituteReservedName(node.name);\n if (literalName) {\n return factory.updatePropertyAssignment(node, literalName, node.initializer);\n }\n return node;\n }\n /**\n * If an identifier name is a reserved word, returns a string literal for the name.\n *\n * @param name An Identifier\n */\n function trySubstituteReservedName(name) {\n var token = name.originalKeywordKind || (ts.nodeIsSynthesized(name) ? ts.stringToToken(ts.idText(name)) : undefined);\n if (token !== undefined && token >= 81 /* FirstReservedWord */ && token <= 116 /* LastReservedWord */) {\n return ts.setTextRange(factory.createStringLiteralFromNode(name), name);\n }\n return undefined;\n }\n }\n ts.transformES5 = transformES5;\n})(ts || (ts = {}));\n// Transforms generator functions into a compatible ES5 representation with similar runtime\n// semantics. This is accomplished by first transforming the body of each generator\n// function into an intermediate representation that is the compiled into a JavaScript\n// switch statement.\n//\n// Many functions in this transformer will contain comments indicating the expected\n// intermediate representation. For illustrative purposes, the following intermediate\n// language is used to define this intermediate representation:\n//\n// .nop - Performs no operation.\n// .local NAME, ... - Define local variable declarations.\n// .mark LABEL - Mark the location of a label.\n// .br LABEL - Jump to a label. If jumping out of a protected\n// region, all .finally blocks are executed.\n// .brtrue LABEL, (x) - Jump to a label IIF the expression `x` is truthy.\n// If jumping out of a protected region, all .finally\n// blocks are executed.\n// .brfalse LABEL, (x) - Jump to a label IIF the expression `x` is falsey.\n// If jumping out of a protected region, all .finally\n// blocks are executed.\n// .yield (x) - Yield the value of the optional expression `x`.\n// Resume at the next label.\n// .yieldstar (x) - Delegate yield to the value of the optional\n// expression `x`. Resume at the next label.\n// NOTE: `x` must be an Iterator, not an Iterable.\n// .loop CONTINUE, BREAK - Marks the beginning of a loop. Any \"continue\" or\n// \"break\" abrupt completions jump to the CONTINUE or\n// BREAK labels, respectively.\n// .endloop - Marks the end of a loop.\n// .with (x) - Marks the beginning of a WithStatement block, using\n// the supplied expression.\n// .endwith - Marks the end of a WithStatement.\n// .switch - Marks the beginning of a SwitchStatement.\n// .endswitch - Marks the end of a SwitchStatement.\n// .labeled NAME - Marks the beginning of a LabeledStatement with the\n// supplied name.\n// .endlabeled - Marks the end of a LabeledStatement.\n// .try TRY, CATCH, FINALLY, END - Marks the beginning of a protected region, and the\n// labels for each block.\n// .catch (x) - Marks the beginning of a catch block.\n// .finally - Marks the beginning of a finally block.\n// .endfinally - Marks the end of a finally block.\n// .endtry - Marks the end of a protected region.\n// .throw (x) - Throws the value of the expression `x`.\n// .return (x) - Returns the value of the expression `x`.\n//\n// In addition, the illustrative intermediate representation introduces some special\n// variables:\n//\n// %sent% - Either returns the next value sent to the generator,\n// returns the result of a delegated yield, or throws\n// the exception sent to the generator.\n// %error% - Returns the value of the current exception in a\n// catch block.\n//\n// This intermediate representation is then compiled into JavaScript syntax. The resulting\n// compilation output looks something like the following:\n//\n// function f() {\n// var /*locals*/;\n// /*functions*/\n// return __generator(function (state) {\n// switch (state.label) {\n// /*cases per label*/\n// }\n// });\n// }\n//\n// Each of the above instructions corresponds to JavaScript emit similar to the following:\n//\n// .local NAME | var NAME;\n// -------------------------------|----------------------------------------------\n// .mark LABEL | case LABEL:\n// -------------------------------|----------------------------------------------\n// .br LABEL | return [3 /*break*/, LABEL];\n// -------------------------------|----------------------------------------------\n// .brtrue LABEL, (x) | if (x) return [3 /*break*/, LABEL];\n// -------------------------------|----------------------------------------------\n// .brfalse LABEL, (x) | if (!(x)) return [3, /*break*/, LABEL];\n// -------------------------------|----------------------------------------------\n// .yield (x) | return [4 /*yield*/, x];\n// .mark RESUME | case RESUME:\n// a = %sent%; | a = state.sent();\n// -------------------------------|----------------------------------------------\n// .yieldstar (x) | return [5 /*yield**/, x];\n// .mark RESUME | case RESUME:\n// a = %sent%; | a = state.sent();\n// -------------------------------|----------------------------------------------\n// .with (_a) | with (_a) {\n// a(); | a();\n// | }\n// | state.label = LABEL;\n// .mark LABEL | case LABEL:\n// | with (_a) {\n// b(); | b();\n// | }\n// .endwith |\n// -------------------------------|----------------------------------------------\n// | case 0:\n// | state.trys = [];\n// | ...\n// .try TRY, CATCH, FINALLY, END |\n// .mark TRY | case TRY:\n// | state.trys.push([TRY, CATCH, FINALLY, END]);\n// .nop |\n// a(); | a();\n// .br END | return [3 /*break*/, END];\n// .catch (e) |\n// .mark CATCH | case CATCH:\n// | e = state.sent();\n// b(); | b();\n// .br END | return [3 /*break*/, END];\n// .finally |\n// .mark FINALLY | case FINALLY:\n// c(); | c();\n// .endfinally | return [7 /*endfinally*/];\n// .endtry |\n// .mark END | case END:\n/*@internal*/\nvar ts;\n(function (ts) {\n var OpCode;\n (function (OpCode) {\n OpCode[OpCode[\"Nop\"] = 0] = \"Nop\";\n OpCode[OpCode[\"Statement\"] = 1] = \"Statement\";\n OpCode[OpCode[\"Assign\"] = 2] = \"Assign\";\n OpCode[OpCode[\"Break\"] = 3] = \"Break\";\n OpCode[OpCode[\"BreakWhenTrue\"] = 4] = \"BreakWhenTrue\";\n OpCode[OpCode[\"BreakWhenFalse\"] = 5] = \"BreakWhenFalse\";\n OpCode[OpCode[\"Yield\"] = 6] = \"Yield\";\n OpCode[OpCode[\"YieldStar\"] = 7] = \"YieldStar\";\n OpCode[OpCode[\"Return\"] = 8] = \"Return\";\n OpCode[OpCode[\"Throw\"] = 9] = \"Throw\";\n OpCode[OpCode[\"Endfinally\"] = 10] = \"Endfinally\"; // Marks the end of a `finally` block\n })(OpCode || (OpCode = {}));\n // whether a generated code block is opening or closing at the current operation for a FunctionBuilder\n var BlockAction;\n (function (BlockAction) {\n BlockAction[BlockAction[\"Open\"] = 0] = \"Open\";\n BlockAction[BlockAction[\"Close\"] = 1] = \"Close\";\n })(BlockAction || (BlockAction = {}));\n // the kind for a generated code block in a FunctionBuilder\n var CodeBlockKind;\n (function (CodeBlockKind) {\n CodeBlockKind[CodeBlockKind[\"Exception\"] = 0] = \"Exception\";\n CodeBlockKind[CodeBlockKind[\"With\"] = 1] = \"With\";\n CodeBlockKind[CodeBlockKind[\"Switch\"] = 2] = \"Switch\";\n CodeBlockKind[CodeBlockKind[\"Loop\"] = 3] = \"Loop\";\n CodeBlockKind[CodeBlockKind[\"Labeled\"] = 4] = \"Labeled\";\n })(CodeBlockKind || (CodeBlockKind = {}));\n // the state for a generated code exception block\n var ExceptionBlockState;\n (function (ExceptionBlockState) {\n ExceptionBlockState[ExceptionBlockState[\"Try\"] = 0] = \"Try\";\n ExceptionBlockState[ExceptionBlockState[\"Catch\"] = 1] = \"Catch\";\n ExceptionBlockState[ExceptionBlockState[\"Finally\"] = 2] = \"Finally\";\n ExceptionBlockState[ExceptionBlockState[\"Done\"] = 3] = \"Done\";\n })(ExceptionBlockState || (ExceptionBlockState = {}));\n // NOTE: changes to this enum should be reflected in the __generator helper.\n var Instruction;\n (function (Instruction) {\n Instruction[Instruction[\"Next\"] = 0] = \"Next\";\n Instruction[Instruction[\"Throw\"] = 1] = \"Throw\";\n Instruction[Instruction[\"Return\"] = 2] = \"Return\";\n Instruction[Instruction[\"Break\"] = 3] = \"Break\";\n Instruction[Instruction[\"Yield\"] = 4] = \"Yield\";\n Instruction[Instruction[\"YieldStar\"] = 5] = \"YieldStar\";\n Instruction[Instruction[\"Catch\"] = 6] = \"Catch\";\n Instruction[Instruction[\"Endfinally\"] = 7] = \"Endfinally\";\n })(Instruction || (Instruction = {}));\n function getInstructionName(instruction) {\n switch (instruction) {\n case 2 /* Return */: return \"return\";\n case 3 /* Break */: return \"break\";\n case 4 /* Yield */: return \"yield\";\n case 5 /* YieldStar */: return \"yield*\";\n case 7 /* Endfinally */: return \"endfinally\";\n default: return undefined; // TODO: GH#18217\n }\n }\n function transformGenerators(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory, resumeLexicalEnvironment = context.resumeLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistFunctionDeclaration = context.hoistFunctionDeclaration, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var compilerOptions = context.getCompilerOptions();\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var resolver = context.getEmitResolver();\n var previousOnSubstituteNode = context.onSubstituteNode;\n context.onSubstituteNode = onSubstituteNode;\n var renamedCatchVariables;\n var renamedCatchVariableDeclarations;\n var inGeneratorFunctionBody;\n var inStatementContainingYield;\n // The following three arrays store information about generated code blocks.\n // All three arrays are correlated by their index. This approach is used over allocating\n // objects to store the same information to avoid GC overhead.\n //\n var blocks; // Information about the code block\n var blockOffsets; // The operation offset at which a code block begins or ends\n var blockActions; // Whether the code block is opened or closed\n var blockStack; // A stack of currently open code blocks\n // Labels are used to mark locations in the code that can be the target of a Break (jump)\n // operation. These are translated into case clauses in a switch statement.\n // The following two arrays are correlated by their index. This approach is used over\n // allocating objects to store the same information to avoid GC overhead.\n //\n var labelOffsets; // The operation offset at which the label is defined.\n var labelExpressions; // The NumericLiteral nodes bound to each label.\n var nextLabelId = 1; // The next label id to use.\n // Operations store information about generated code for the function body. This\n // Includes things like statements, assignments, breaks (jumps), and yields.\n // The following three arrays are correlated by their index. This approach is used over\n // allocating objects to store the same information to avoid GC overhead.\n //\n var operations; // The operation to perform.\n var operationArguments; // The arguments to the operation.\n var operationLocations; // The source map location for the operation.\n var state; // The name of the state object used by the generator at runtime.\n // The following variables store information used by the `build` function:\n //\n var blockIndex = 0; // The index of the current block.\n var labelNumber = 0; // The current label number.\n var labelNumbers;\n var lastOperationWasAbrupt; // Indicates whether the last operation was abrupt (break/continue).\n var lastOperationWasCompletion; // Indicates whether the last operation was a completion (return/throw).\n var clauses; // The case clauses generated for labels.\n var statements; // The statements for the current label.\n var exceptionBlockStack; // A stack of containing exception blocks.\n var currentExceptionBlock; // The current exception block.\n var withBlockStack; // A stack containing `with` blocks.\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile || (node.transformFlags & 1024 /* ContainsGenerator */) === 0) {\n return node;\n }\n var visited = ts.visitEachChild(node, visitor, context);\n ts.addEmitHelpers(visited, context.readEmitHelpers());\n return visited;\n }\n /**\n * Visits a node.\n *\n * @param node The node to visit.\n */\n function visitor(node) {\n var transformFlags = node.transformFlags;\n if (inStatementContainingYield) {\n return visitJavaScriptInStatementContainingYield(node);\n }\n else if (inGeneratorFunctionBody) {\n return visitJavaScriptInGeneratorFunctionBody(node);\n }\n else if (ts.isFunctionLikeDeclaration(node) && node.asteriskToken) {\n return visitGenerator(node);\n }\n else if (transformFlags & 1024 /* ContainsGenerator */) {\n return ts.visitEachChild(node, visitor, context);\n }\n else {\n return node;\n }\n }\n /**\n * Visits a node that is contained within a statement that contains yield.\n *\n * @param node The node to visit.\n */\n function visitJavaScriptInStatementContainingYield(node) {\n switch (node.kind) {\n case 238 /* DoStatement */:\n return visitDoStatement(node);\n case 239 /* WhileStatement */:\n return visitWhileStatement(node);\n case 247 /* SwitchStatement */:\n return visitSwitchStatement(node);\n case 248 /* LabeledStatement */:\n return visitLabeledStatement(node);\n default:\n return visitJavaScriptInGeneratorFunctionBody(node);\n }\n }\n /**\n * Visits a node that is contained within a generator function.\n *\n * @param node The node to visit.\n */\n function visitJavaScriptInGeneratorFunctionBody(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n return visitFunctionDeclaration(node);\n case 211 /* FunctionExpression */:\n return visitFunctionExpression(node);\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return visitAccessorDeclaration(node);\n case 235 /* VariableStatement */:\n return visitVariableStatement(node);\n case 240 /* ForStatement */:\n return visitForStatement(node);\n case 241 /* ForInStatement */:\n return visitForInStatement(node);\n case 244 /* BreakStatement */:\n return visitBreakStatement(node);\n case 243 /* ContinueStatement */:\n return visitContinueStatement(node);\n case 245 /* ReturnStatement */:\n return visitReturnStatement(node);\n default:\n if (node.transformFlags & 524288 /* ContainsYield */) {\n return visitJavaScriptContainingYield(node);\n }\n else if (node.transformFlags & (1024 /* ContainsGenerator */ | 2097152 /* ContainsHoistedDeclarationOrCompletion */)) {\n return ts.visitEachChild(node, visitor, context);\n }\n else {\n return node;\n }\n }\n }\n /**\n * Visits a node that contains a YieldExpression.\n *\n * @param node The node to visit.\n */\n function visitJavaScriptContainingYield(node) {\n switch (node.kind) {\n case 219 /* BinaryExpression */:\n return visitBinaryExpression(node);\n case 346 /* CommaListExpression */:\n return visitCommaListExpression(node);\n case 220 /* ConditionalExpression */:\n return visitConditionalExpression(node);\n case 222 /* YieldExpression */:\n return visitYieldExpression(node);\n case 202 /* ArrayLiteralExpression */:\n return visitArrayLiteralExpression(node);\n case 203 /* ObjectLiteralExpression */:\n return visitObjectLiteralExpression(node);\n case 205 /* ElementAccessExpression */:\n return visitElementAccessExpression(node);\n case 206 /* CallExpression */:\n return visitCallExpression(node);\n case 207 /* NewExpression */:\n return visitNewExpression(node);\n default:\n return ts.visitEachChild(node, visitor, context);\n }\n }\n /**\n * Visits a generator function.\n *\n * @param node The node to visit.\n */\n function visitGenerator(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n return visitFunctionDeclaration(node);\n case 211 /* FunctionExpression */:\n return visitFunctionExpression(node);\n default:\n return ts.Debug.failBadSyntaxKind(node);\n }\n }\n /**\n * Visits a function declaration.\n *\n * This will be called when one of the following conditions are met:\n * - The function declaration is a generator function.\n * - The function declaration is contained within the body of a generator function.\n *\n * @param node The node to visit.\n */\n function visitFunctionDeclaration(node) {\n // Currently, we only support generators that were originally async functions.\n if (node.asteriskToken) {\n node = ts.setOriginalNode(ts.setTextRange(factory.createFunctionDeclaration(\n /*decorators*/ undefined, node.modifiers, \n /*asteriskToken*/ undefined, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, transformGeneratorFunctionBody(node.body)), \n /*location*/ node), node);\n }\n else {\n var savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n var savedInStatementContainingYield = inStatementContainingYield;\n inGeneratorFunctionBody = false;\n inStatementContainingYield = false;\n node = ts.visitEachChild(node, visitor, context);\n inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n inStatementContainingYield = savedInStatementContainingYield;\n }\n if (inGeneratorFunctionBody) {\n // Function declarations in a generator function body are hoisted\n // to the top of the lexical scope and elided from the current statement.\n hoistFunctionDeclaration(node);\n return undefined;\n }\n else {\n return node;\n }\n }\n /**\n * Visits a function expression.\n *\n * This will be called when one of the following conditions are met:\n * - The function expression is a generator function.\n * - The function expression is contained within the body of a generator function.\n *\n * @param node The node to visit.\n */\n function visitFunctionExpression(node) {\n // Currently, we only support generators that were originally async functions.\n if (node.asteriskToken) {\n node = ts.setOriginalNode(ts.setTextRange(factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, node.name, \n /*typeParameters*/ undefined, ts.visitParameterList(node.parameters, visitor, context), \n /*type*/ undefined, transformGeneratorFunctionBody(node.body)), \n /*location*/ node), node);\n }\n else {\n var savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n var savedInStatementContainingYield = inStatementContainingYield;\n inGeneratorFunctionBody = false;\n inStatementContainingYield = false;\n node = ts.visitEachChild(node, visitor, context);\n inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n inStatementContainingYield = savedInStatementContainingYield;\n }\n return node;\n }\n /**\n * Visits a get or set accessor declaration.\n *\n * This will be called when one of the following conditions are met:\n * - The accessor is contained within the body of a generator function.\n *\n * @param node The node to visit.\n */\n function visitAccessorDeclaration(node) {\n var savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n var savedInStatementContainingYield = inStatementContainingYield;\n inGeneratorFunctionBody = false;\n inStatementContainingYield = false;\n node = ts.visitEachChild(node, visitor, context);\n inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n inStatementContainingYield = savedInStatementContainingYield;\n return node;\n }\n /**\n * Transforms the body of a generator function declaration.\n *\n * @param node The function body to transform.\n */\n function transformGeneratorFunctionBody(body) {\n // Save existing generator state\n var statements = [];\n var savedInGeneratorFunctionBody = inGeneratorFunctionBody;\n var savedInStatementContainingYield = inStatementContainingYield;\n var savedBlocks = blocks;\n var savedBlockOffsets = blockOffsets;\n var savedBlockActions = blockActions;\n var savedBlockStack = blockStack;\n var savedLabelOffsets = labelOffsets;\n var savedLabelExpressions = labelExpressions;\n var savedNextLabelId = nextLabelId;\n var savedOperations = operations;\n var savedOperationArguments = operationArguments;\n var savedOperationLocations = operationLocations;\n var savedState = state;\n // Initialize generator state\n inGeneratorFunctionBody = true;\n inStatementContainingYield = false;\n blocks = undefined;\n blockOffsets = undefined;\n blockActions = undefined;\n blockStack = undefined;\n labelOffsets = undefined;\n labelExpressions = undefined;\n nextLabelId = 1;\n operations = undefined;\n operationArguments = undefined;\n operationLocations = undefined;\n state = factory.createTempVariable(/*recordTempVariable*/ undefined);\n // Build the generator\n resumeLexicalEnvironment();\n var statementOffset = factory.copyPrologue(body.statements, statements, /*ensureUseStrict*/ false, visitor);\n transformAndEmitStatements(body.statements, statementOffset);\n var buildResult = build();\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n statements.push(factory.createReturnStatement(buildResult));\n // Restore previous generator state\n inGeneratorFunctionBody = savedInGeneratorFunctionBody;\n inStatementContainingYield = savedInStatementContainingYield;\n blocks = savedBlocks;\n blockOffsets = savedBlockOffsets;\n blockActions = savedBlockActions;\n blockStack = savedBlockStack;\n labelOffsets = savedLabelOffsets;\n labelExpressions = savedLabelExpressions;\n nextLabelId = savedNextLabelId;\n operations = savedOperations;\n operationArguments = savedOperationArguments;\n operationLocations = savedOperationLocations;\n state = savedState;\n return ts.setTextRange(factory.createBlock(statements, body.multiLine), body);\n }\n /**\n * Visits a variable statement.\n *\n * This will be called when one of the following conditions are met:\n * - The variable statement is contained within the body of a generator function.\n *\n * @param node The node to visit.\n */\n function visitVariableStatement(node) {\n if (node.transformFlags & 524288 /* ContainsYield */) {\n transformAndEmitVariableDeclarationList(node.declarationList);\n return undefined;\n }\n else {\n // Do not hoist custom prologues.\n if (ts.getEmitFlags(node) & 1048576 /* CustomPrologue */) {\n return node;\n }\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n hoistVariableDeclaration(variable.name);\n }\n var variables = ts.getInitializedVariables(node.declarationList);\n if (variables.length === 0) {\n return undefined;\n }\n return ts.setSourceMapRange(factory.createExpressionStatement(factory.inlineExpressions(ts.map(variables, transformInitializedVariable))), node);\n }\n }\n /**\n * Visits a binary expression.\n *\n * This will be called when one of the following conditions are met:\n * - The node contains a YieldExpression.\n *\n * @param node The node to visit.\n */\n function visitBinaryExpression(node) {\n var assoc = ts.getExpressionAssociativity(node);\n switch (assoc) {\n case 0 /* Left */:\n return visitLeftAssociativeBinaryExpression(node);\n case 1 /* Right */:\n return visitRightAssociativeBinaryExpression(node);\n default:\n return ts.Debug.assertNever(assoc);\n }\n }\n /**\n * Visits a right-associative binary expression containing `yield`.\n *\n * @param node The node to visit.\n */\n function visitRightAssociativeBinaryExpression(node) {\n var left = node.left, right = node.right;\n if (containsYield(right)) {\n var target = void 0;\n switch (left.kind) {\n case 204 /* PropertyAccessExpression */:\n // [source]\n // a.b = yield;\n //\n // [intermediate]\n // .local _a\n // _a = a;\n // .yield resumeLabel\n // .mark resumeLabel\n // _a.b = %sent%;\n target = factory.updatePropertyAccessExpression(left, cacheExpression(ts.visitNode(left.expression, visitor, ts.isLeftHandSideExpression)), left.name);\n break;\n case 205 /* ElementAccessExpression */:\n // [source]\n // a[b] = yield;\n //\n // [intermediate]\n // .local _a, _b\n // _a = a;\n // _b = b;\n // .yield resumeLabel\n // .mark resumeLabel\n // _a[_b] = %sent%;\n target = factory.updateElementAccessExpression(left, cacheExpression(ts.visitNode(left.expression, visitor, ts.isLeftHandSideExpression)), cacheExpression(ts.visitNode(left.argumentExpression, visitor, ts.isExpression)));\n break;\n default:\n target = ts.visitNode(left, visitor, ts.isExpression);\n break;\n }\n var operator = node.operatorToken.kind;\n if (ts.isCompoundAssignment(operator)) {\n return ts.setTextRange(factory.createAssignment(target, ts.setTextRange(factory.createBinaryExpression(cacheExpression(target), ts.getNonAssignmentOperatorForCompoundAssignment(operator), ts.visitNode(right, visitor, ts.isExpression)), node)), node);\n }\n else {\n return factory.updateBinaryExpression(node, target, node.operatorToken, ts.visitNode(right, visitor, ts.isExpression));\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitLeftAssociativeBinaryExpression(node) {\n if (containsYield(node.right)) {\n if (ts.isLogicalOperator(node.operatorToken.kind)) {\n return visitLogicalBinaryExpression(node);\n }\n else if (node.operatorToken.kind === 27 /* CommaToken */) {\n return visitCommaExpression(node);\n }\n // [source]\n // a() + (yield) + c()\n //\n // [intermediate]\n // .local _a\n // _a = a();\n // .yield resumeLabel\n // _a + %sent% + c()\n return factory.updateBinaryExpression(node, cacheExpression(ts.visitNode(node.left, visitor, ts.isExpression)), node.operatorToken, ts.visitNode(node.right, visitor, ts.isExpression));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a comma expression containing `yield`.\n *\n * @param node The node to visit.\n */\n function visitCommaExpression(node) {\n // [source]\n // x = a(), yield, b();\n //\n // [intermediate]\n // a();\n // .yield resumeLabel\n // .mark resumeLabel\n // x = %sent%, b();\n var pendingExpressions = [];\n visit(node.left);\n visit(node.right);\n return factory.inlineExpressions(pendingExpressions);\n function visit(node) {\n if (ts.isBinaryExpression(node) && node.operatorToken.kind === 27 /* CommaToken */) {\n visit(node.left);\n visit(node.right);\n }\n else {\n if (containsYield(node) && pendingExpressions.length > 0) {\n emitWorker(1 /* Statement */, [factory.createExpressionStatement(factory.inlineExpressions(pendingExpressions))]);\n pendingExpressions = [];\n }\n pendingExpressions.push(ts.visitNode(node, visitor, ts.isExpression));\n }\n }\n }\n /**\n * Visits a comma-list expression.\n *\n * @param node The node to visit.\n */\n function visitCommaListExpression(node) {\n // flattened version of `visitCommaExpression`\n var pendingExpressions = [];\n for (var _i = 0, _a = node.elements; _i < _a.length; _i++) {\n var elem = _a[_i];\n if (ts.isBinaryExpression(elem) && elem.operatorToken.kind === 27 /* CommaToken */) {\n pendingExpressions.push(visitCommaExpression(elem));\n }\n else {\n if (containsYield(elem) && pendingExpressions.length > 0) {\n emitWorker(1 /* Statement */, [factory.createExpressionStatement(factory.inlineExpressions(pendingExpressions))]);\n pendingExpressions = [];\n }\n pendingExpressions.push(ts.visitNode(elem, visitor, ts.isExpression));\n }\n }\n return factory.inlineExpressions(pendingExpressions);\n }\n /**\n * Visits a logical binary expression containing `yield`.\n *\n * @param node A node to visit.\n */\n function visitLogicalBinaryExpression(node) {\n // Logical binary expressions (`&&` and `||`) are shortcutting expressions and need\n // to be transformed as such:\n //\n // [source]\n // x = a() && yield;\n //\n // [intermediate]\n // .local _a\n // _a = a();\n // .brfalse resultLabel, (_a)\n // .yield resumeLabel\n // .mark resumeLabel\n // _a = %sent%;\n // .mark resultLabel\n // x = _a;\n //\n // [source]\n // x = a() || yield;\n //\n // [intermediate]\n // .local _a\n // _a = a();\n // .brtrue resultLabel, (_a)\n // .yield resumeLabel\n // .mark resumeLabel\n // _a = %sent%;\n // .mark resultLabel\n // x = _a;\n var resultLabel = defineLabel();\n var resultLocal = declareLocal();\n emitAssignment(resultLocal, ts.visitNode(node.left, visitor, ts.isExpression), /*location*/ node.left);\n if (node.operatorToken.kind === 55 /* AmpersandAmpersandToken */) {\n // Logical `&&` shortcuts when the left-hand operand is falsey.\n emitBreakWhenFalse(resultLabel, resultLocal, /*location*/ node.left);\n }\n else {\n // Logical `||` shortcuts when the left-hand operand is truthy.\n emitBreakWhenTrue(resultLabel, resultLocal, /*location*/ node.left);\n }\n emitAssignment(resultLocal, ts.visitNode(node.right, visitor, ts.isExpression), /*location*/ node.right);\n markLabel(resultLabel);\n return resultLocal;\n }\n /**\n * Visits a conditional expression containing `yield`.\n *\n * @param node The node to visit.\n */\n function visitConditionalExpression(node) {\n // [source]\n // x = a() ? yield : b();\n //\n // [intermediate]\n // .local _a\n // .brfalse whenFalseLabel, (a())\n // .yield resumeLabel\n // .mark resumeLabel\n // _a = %sent%;\n // .br resultLabel\n // .mark whenFalseLabel\n // _a = b();\n // .mark resultLabel\n // x = _a;\n // We only need to perform a specific transformation if a `yield` expression exists\n // in either the `whenTrue` or `whenFalse` branches.\n // A `yield` in the condition will be handled by the normal visitor.\n if (containsYield(node.whenTrue) || containsYield(node.whenFalse)) {\n var whenFalseLabel = defineLabel();\n var resultLabel = defineLabel();\n var resultLocal = declareLocal();\n emitBreakWhenFalse(whenFalseLabel, ts.visitNode(node.condition, visitor, ts.isExpression), /*location*/ node.condition);\n emitAssignment(resultLocal, ts.visitNode(node.whenTrue, visitor, ts.isExpression), /*location*/ node.whenTrue);\n emitBreak(resultLabel);\n markLabel(whenFalseLabel);\n emitAssignment(resultLocal, ts.visitNode(node.whenFalse, visitor, ts.isExpression), /*location*/ node.whenFalse);\n markLabel(resultLabel);\n return resultLocal;\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visits a `yield` expression.\n *\n * @param node The node to visit.\n */\n function visitYieldExpression(node) {\n // [source]\n // x = yield a();\n //\n // [intermediate]\n // .yield resumeLabel, (a())\n // .mark resumeLabel\n // x = %sent%;\n var resumeLabel = defineLabel();\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n if (node.asteriskToken) {\n // NOTE: `expression` must be defined for `yield*`.\n var iterator = (ts.getEmitFlags(node.expression) & 8388608 /* Iterator */) === 0\n ? ts.setTextRange(emitHelpers().createValuesHelper(expression), node)\n : expression;\n emitYieldStar(iterator, /*location*/ node);\n }\n else {\n emitYield(expression, /*location*/ node);\n }\n markLabel(resumeLabel);\n return createGeneratorResume(/*location*/ node);\n }\n /**\n * Visits an ArrayLiteralExpression that contains a YieldExpression.\n *\n * @param node The node to visit.\n */\n function visitArrayLiteralExpression(node) {\n return visitElements(node.elements, /*leadingElement*/ undefined, /*location*/ undefined, node.multiLine);\n }\n /**\n * Visits an array of expressions containing one or more YieldExpression nodes\n * and returns an expression for the resulting value.\n *\n * @param elements The elements to visit.\n * @param multiLine Whether array literals created should be emitted on multiple lines.\n */\n function visitElements(elements, leadingElement, location, multiLine) {\n // [source]\n // ar = [1, yield, 2];\n //\n // [intermediate]\n // .local _a\n // _a = [1];\n // .yield resumeLabel\n // .mark resumeLabel\n // ar = _a.concat([%sent%, 2]);\n var numInitialElements = countInitialNodesWithoutYield(elements);\n var temp;\n if (numInitialElements > 0) {\n temp = declareLocal();\n var initialElements = ts.visitNodes(elements, visitor, ts.isExpression, 0, numInitialElements);\n emitAssignment(temp, factory.createArrayLiteralExpression(leadingElement\n ? __spreadArray([leadingElement], initialElements, true) : initialElements));\n leadingElement = undefined;\n }\n var expressions = ts.reduceLeft(elements, reduceElement, [], numInitialElements);\n return temp\n ? factory.createArrayConcatCall(temp, [factory.createArrayLiteralExpression(expressions, multiLine)])\n : ts.setTextRange(factory.createArrayLiteralExpression(leadingElement ? __spreadArray([leadingElement], expressions, true) : expressions, multiLine), location);\n function reduceElement(expressions, element) {\n if (containsYield(element) && expressions.length > 0) {\n var hasAssignedTemp = temp !== undefined;\n if (!temp) {\n temp = declareLocal();\n }\n emitAssignment(temp, hasAssignedTemp\n ? factory.createArrayConcatCall(temp, [factory.createArrayLiteralExpression(expressions, multiLine)])\n : factory.createArrayLiteralExpression(leadingElement ? __spreadArray([leadingElement], expressions, true) : expressions, multiLine));\n leadingElement = undefined;\n expressions = [];\n }\n expressions.push(ts.visitNode(element, visitor, ts.isExpression));\n return expressions;\n }\n }\n function visitObjectLiteralExpression(node) {\n // [source]\n // o = {\n // a: 1,\n // b: yield,\n // c: 2\n // };\n //\n // [intermediate]\n // .local _a\n // _a = {\n // a: 1\n // };\n // .yield resumeLabel\n // .mark resumeLabel\n // o = (_a.b = %sent%,\n // _a.c = 2,\n // _a);\n var properties = node.properties;\n var multiLine = node.multiLine;\n var numInitialProperties = countInitialNodesWithoutYield(properties);\n var temp = declareLocal();\n emitAssignment(temp, factory.createObjectLiteralExpression(ts.visitNodes(properties, visitor, ts.isObjectLiteralElementLike, 0, numInitialProperties), multiLine));\n var expressions = ts.reduceLeft(properties, reduceProperty, [], numInitialProperties);\n // TODO(rbuckton): Does this need to be parented?\n expressions.push(multiLine ? ts.startOnNewLine(ts.setParent(ts.setTextRange(factory.cloneNode(temp), temp), temp.parent)) : temp);\n return factory.inlineExpressions(expressions);\n function reduceProperty(expressions, property) {\n if (containsYield(property) && expressions.length > 0) {\n emitStatement(factory.createExpressionStatement(factory.inlineExpressions(expressions)));\n expressions = [];\n }\n var expression = ts.createExpressionForObjectLiteralElementLike(factory, node, property, temp);\n var visited = ts.visitNode(expression, visitor, ts.isExpression);\n if (visited) {\n if (multiLine) {\n ts.startOnNewLine(visited);\n }\n expressions.push(visited);\n }\n return expressions;\n }\n }\n /**\n * Visits an ElementAccessExpression that contains a YieldExpression.\n *\n * @param node The node to visit.\n */\n function visitElementAccessExpression(node) {\n if (containsYield(node.argumentExpression)) {\n // [source]\n // a = x[yield];\n //\n // [intermediate]\n // .local _a\n // _a = x;\n // .yield resumeLabel\n // .mark resumeLabel\n // a = _a[%sent%]\n return factory.updateElementAccessExpression(node, cacheExpression(ts.visitNode(node.expression, visitor, ts.isLeftHandSideExpression)), ts.visitNode(node.argumentExpression, visitor, ts.isExpression));\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitCallExpression(node) {\n if (!ts.isImportCall(node) && ts.forEach(node.arguments, containsYield)) {\n // [source]\n // a.b(1, yield, 2);\n //\n // [intermediate]\n // .local _a, _b, _c\n // _b = (_a = a).b;\n // _c = [1];\n // .yield resumeLabel\n // .mark resumeLabel\n // _b.apply(_a, _c.concat([%sent%, 2]));\n var _a = factory.createCallBinding(node.expression, hoistVariableDeclaration, languageVersion, /*cacheIdentifiers*/ true), target = _a.target, thisArg = _a.thisArg;\n return ts.setOriginalNode(ts.setTextRange(factory.createFunctionApplyCall(cacheExpression(ts.visitNode(target, visitor, ts.isLeftHandSideExpression)), thisArg, visitElements(node.arguments)), node), node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitNewExpression(node) {\n if (ts.forEach(node.arguments, containsYield)) {\n // [source]\n // new a.b(1, yield, 2);\n //\n // [intermediate]\n // .local _a, _b, _c\n // _b = (_a = a.b).bind;\n // _c = [1];\n // .yield resumeLabel\n // .mark resumeLabel\n // new (_b.apply(_a, _c.concat([%sent%, 2])));\n var _a = factory.createCallBinding(factory.createPropertyAccessExpression(node.expression, \"bind\"), hoistVariableDeclaration), target = _a.target, thisArg = _a.thisArg;\n return ts.setOriginalNode(ts.setTextRange(factory.createNewExpression(factory.createFunctionApplyCall(cacheExpression(ts.visitNode(target, visitor, ts.isExpression)), thisArg, visitElements(node.arguments, \n /*leadingElement*/ factory.createVoidZero())), \n /*typeArguments*/ undefined, []), node), node);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function transformAndEmitStatements(statements, start) {\n if (start === void 0) { start = 0; }\n var numStatements = statements.length;\n for (var i = start; i < numStatements; i++) {\n transformAndEmitStatement(statements[i]);\n }\n }\n function transformAndEmitEmbeddedStatement(node) {\n if (ts.isBlock(node)) {\n transformAndEmitStatements(node.statements);\n }\n else {\n transformAndEmitStatement(node);\n }\n }\n function transformAndEmitStatement(node) {\n var savedInStatementContainingYield = inStatementContainingYield;\n if (!inStatementContainingYield) {\n inStatementContainingYield = containsYield(node);\n }\n transformAndEmitStatementWorker(node);\n inStatementContainingYield = savedInStatementContainingYield;\n }\n function transformAndEmitStatementWorker(node) {\n switch (node.kind) {\n case 233 /* Block */:\n return transformAndEmitBlock(node);\n case 236 /* ExpressionStatement */:\n return transformAndEmitExpressionStatement(node);\n case 237 /* IfStatement */:\n return transformAndEmitIfStatement(node);\n case 238 /* DoStatement */:\n return transformAndEmitDoStatement(node);\n case 239 /* WhileStatement */:\n return transformAndEmitWhileStatement(node);\n case 240 /* ForStatement */:\n return transformAndEmitForStatement(node);\n case 241 /* ForInStatement */:\n return transformAndEmitForInStatement(node);\n case 243 /* ContinueStatement */:\n return transformAndEmitContinueStatement(node);\n case 244 /* BreakStatement */:\n return transformAndEmitBreakStatement(node);\n case 245 /* ReturnStatement */:\n return transformAndEmitReturnStatement(node);\n case 246 /* WithStatement */:\n return transformAndEmitWithStatement(node);\n case 247 /* SwitchStatement */:\n return transformAndEmitSwitchStatement(node);\n case 248 /* LabeledStatement */:\n return transformAndEmitLabeledStatement(node);\n case 249 /* ThrowStatement */:\n return transformAndEmitThrowStatement(node);\n case 250 /* TryStatement */:\n return transformAndEmitTryStatement(node);\n default:\n return emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function transformAndEmitBlock(node) {\n if (containsYield(node)) {\n transformAndEmitStatements(node.statements);\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function transformAndEmitExpressionStatement(node) {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n function transformAndEmitVariableDeclarationList(node) {\n for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n var name = factory.cloneNode(variable.name);\n ts.setCommentRange(name, variable.name);\n hoistVariableDeclaration(name);\n }\n var variables = ts.getInitializedVariables(node);\n var numVariables = variables.length;\n var variablesWritten = 0;\n var pendingExpressions = [];\n while (variablesWritten < numVariables) {\n for (var i = variablesWritten; i < numVariables; i++) {\n var variable = variables[i];\n if (containsYield(variable.initializer) && pendingExpressions.length > 0) {\n break;\n }\n pendingExpressions.push(transformInitializedVariable(variable));\n }\n if (pendingExpressions.length) {\n emitStatement(factory.createExpressionStatement(factory.inlineExpressions(pendingExpressions)));\n variablesWritten += pendingExpressions.length;\n pendingExpressions = [];\n }\n }\n return undefined;\n }\n function transformInitializedVariable(node) {\n return ts.setSourceMapRange(factory.createAssignment(ts.setSourceMapRange(factory.cloneNode(node.name), node.name), ts.visitNode(node.initializer, visitor, ts.isExpression)), node);\n }\n function transformAndEmitIfStatement(node) {\n if (containsYield(node)) {\n // [source]\n // if (x)\n // /*thenStatement*/\n // else\n // /*elseStatement*/\n //\n // [intermediate]\n // .brfalse elseLabel, (x)\n // /*thenStatement*/\n // .br endLabel\n // .mark elseLabel\n // /*elseStatement*/\n // .mark endLabel\n if (containsYield(node.thenStatement) || containsYield(node.elseStatement)) {\n var endLabel = defineLabel();\n var elseLabel = node.elseStatement ? defineLabel() : undefined;\n emitBreakWhenFalse(node.elseStatement ? elseLabel : endLabel, ts.visitNode(node.expression, visitor, ts.isExpression), /*location*/ node.expression);\n transformAndEmitEmbeddedStatement(node.thenStatement);\n if (node.elseStatement) {\n emitBreak(endLabel);\n markLabel(elseLabel);\n transformAndEmitEmbeddedStatement(node.elseStatement);\n }\n markLabel(endLabel);\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function transformAndEmitDoStatement(node) {\n if (containsYield(node)) {\n // [source]\n // do {\n // /*body*/\n // }\n // while (i < 10);\n //\n // [intermediate]\n // .loop conditionLabel, endLabel\n // .mark loopLabel\n // /*body*/\n // .mark conditionLabel\n // .brtrue loopLabel, (i < 10)\n // .endloop\n // .mark endLabel\n var conditionLabel = defineLabel();\n var loopLabel = defineLabel();\n beginLoopBlock(/*continueLabel*/ conditionLabel);\n markLabel(loopLabel);\n transformAndEmitEmbeddedStatement(node.statement);\n markLabel(conditionLabel);\n emitBreakWhenTrue(loopLabel, ts.visitNode(node.expression, visitor, ts.isExpression));\n endLoopBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function visitDoStatement(node) {\n if (inStatementContainingYield) {\n beginScriptLoopBlock();\n node = ts.visitEachChild(node, visitor, context);\n endLoopBlock();\n return node;\n }\n else {\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function transformAndEmitWhileStatement(node) {\n if (containsYield(node)) {\n // [source]\n // while (i < 10) {\n // /*body*/\n // }\n //\n // [intermediate]\n // .loop loopLabel, endLabel\n // .mark loopLabel\n // .brfalse endLabel, (i < 10)\n // /*body*/\n // .br loopLabel\n // .endloop\n // .mark endLabel\n var loopLabel = defineLabel();\n var endLabel = beginLoopBlock(loopLabel);\n markLabel(loopLabel);\n emitBreakWhenFalse(endLabel, ts.visitNode(node.expression, visitor, ts.isExpression));\n transformAndEmitEmbeddedStatement(node.statement);\n emitBreak(loopLabel);\n endLoopBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function visitWhileStatement(node) {\n if (inStatementContainingYield) {\n beginScriptLoopBlock();\n node = ts.visitEachChild(node, visitor, context);\n endLoopBlock();\n return node;\n }\n else {\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function transformAndEmitForStatement(node) {\n if (containsYield(node)) {\n // [source]\n // for (var i = 0; i < 10; i++) {\n // /*body*/\n // }\n //\n // [intermediate]\n // .local i\n // i = 0;\n // .loop incrementLabel, endLoopLabel\n // .mark conditionLabel\n // .brfalse endLoopLabel, (i < 10)\n // /*body*/\n // .mark incrementLabel\n // i++;\n // .br conditionLabel\n // .endloop\n // .mark endLoopLabel\n var conditionLabel = defineLabel();\n var incrementLabel = defineLabel();\n var endLabel = beginLoopBlock(incrementLabel);\n if (node.initializer) {\n var initializer = node.initializer;\n if (ts.isVariableDeclarationList(initializer)) {\n transformAndEmitVariableDeclarationList(initializer);\n }\n else {\n emitStatement(ts.setTextRange(factory.createExpressionStatement(ts.visitNode(initializer, visitor, ts.isExpression)), initializer));\n }\n }\n markLabel(conditionLabel);\n if (node.condition) {\n emitBreakWhenFalse(endLabel, ts.visitNode(node.condition, visitor, ts.isExpression));\n }\n transformAndEmitEmbeddedStatement(node.statement);\n markLabel(incrementLabel);\n if (node.incrementor) {\n emitStatement(ts.setTextRange(factory.createExpressionStatement(ts.visitNode(node.incrementor, visitor, ts.isExpression)), node.incrementor));\n }\n emitBreak(conditionLabel);\n endLoopBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function visitForStatement(node) {\n if (inStatementContainingYield) {\n beginScriptLoopBlock();\n }\n var initializer = node.initializer;\n if (initializer && ts.isVariableDeclarationList(initializer)) {\n for (var _i = 0, _a = initializer.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n hoistVariableDeclaration(variable.name);\n }\n var variables = ts.getInitializedVariables(initializer);\n node = factory.updateForStatement(node, variables.length > 0\n ? factory.inlineExpressions(ts.map(variables, transformInitializedVariable))\n : undefined, ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, visitor, ts.isExpression), ts.visitIterationBody(node.statement, visitor, context));\n }\n else {\n node = ts.visitEachChild(node, visitor, context);\n }\n if (inStatementContainingYield) {\n endLoopBlock();\n }\n return node;\n }\n function transformAndEmitForInStatement(node) {\n // TODO(rbuckton): Source map locations\n if (containsYield(node)) {\n // [source]\n // for (var p in o) {\n // /*body*/\n // }\n //\n // [intermediate]\n // .local _a, _b, _i\n // _a = [];\n // for (_b in o) _a.push(_b);\n // _i = 0;\n // .loop incrementLabel, endLoopLabel\n // .mark conditionLabel\n // .brfalse endLoopLabel, (_i < _a.length)\n // p = _a[_i];\n // /*body*/\n // .mark incrementLabel\n // _b++;\n // .br conditionLabel\n // .endloop\n // .mark endLoopLabel\n var keysArray = declareLocal(); // _a\n var key = declareLocal(); // _b\n var keysIndex = factory.createLoopVariable(); // _i\n var initializer = node.initializer;\n hoistVariableDeclaration(keysIndex);\n emitAssignment(keysArray, factory.createArrayLiteralExpression());\n emitStatement(factory.createForInStatement(key, ts.visitNode(node.expression, visitor, ts.isExpression), factory.createExpressionStatement(factory.createCallExpression(factory.createPropertyAccessExpression(keysArray, \"push\"), \n /*typeArguments*/ undefined, [key]))));\n emitAssignment(keysIndex, factory.createNumericLiteral(0));\n var conditionLabel = defineLabel();\n var incrementLabel = defineLabel();\n var endLabel = beginLoopBlock(incrementLabel);\n markLabel(conditionLabel);\n emitBreakWhenFalse(endLabel, factory.createLessThan(keysIndex, factory.createPropertyAccessExpression(keysArray, \"length\")));\n var variable = void 0;\n if (ts.isVariableDeclarationList(initializer)) {\n for (var _i = 0, _a = initializer.declarations; _i < _a.length; _i++) {\n var variable_1 = _a[_i];\n hoistVariableDeclaration(variable_1.name);\n }\n variable = factory.cloneNode(initializer.declarations[0].name);\n }\n else {\n variable = ts.visitNode(initializer, visitor, ts.isExpression);\n ts.Debug.assert(ts.isLeftHandSideExpression(variable));\n }\n emitAssignment(variable, factory.createElementAccessExpression(keysArray, keysIndex));\n transformAndEmitEmbeddedStatement(node.statement);\n markLabel(incrementLabel);\n emitStatement(factory.createExpressionStatement(factory.createPostfixIncrement(keysIndex)));\n emitBreak(conditionLabel);\n endLoopBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function visitForInStatement(node) {\n // [source]\n // for (var x in a) {\n // /*body*/\n // }\n //\n // [intermediate]\n // .local x\n // .loop\n // for (x in a) {\n // /*body*/\n // }\n // .endloop\n if (inStatementContainingYield) {\n beginScriptLoopBlock();\n }\n var initializer = node.initializer;\n if (ts.isVariableDeclarationList(initializer)) {\n for (var _i = 0, _a = initializer.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n hoistVariableDeclaration(variable.name);\n }\n node = factory.updateForInStatement(node, initializer.declarations[0].name, ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitNode(node.statement, visitor, ts.isStatement, factory.liftToBlock));\n }\n else {\n node = ts.visitEachChild(node, visitor, context);\n }\n if (inStatementContainingYield) {\n endLoopBlock();\n }\n return node;\n }\n function transformAndEmitContinueStatement(node) {\n var label = findContinueTarget(node.label ? ts.idText(node.label) : undefined);\n if (label > 0) {\n emitBreak(label, /*location*/ node);\n }\n else {\n // invalid continue without a containing loop. Leave the node as is, per #17875.\n emitStatement(node);\n }\n }\n function visitContinueStatement(node) {\n if (inStatementContainingYield) {\n var label = findContinueTarget(node.label && ts.idText(node.label));\n if (label > 0) {\n return createInlineBreak(label, /*location*/ node);\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function transformAndEmitBreakStatement(node) {\n var label = findBreakTarget(node.label ? ts.idText(node.label) : undefined);\n if (label > 0) {\n emitBreak(label, /*location*/ node);\n }\n else {\n // invalid break without a containing loop, switch, or labeled statement. Leave the node as is, per #17875.\n emitStatement(node);\n }\n }\n function visitBreakStatement(node) {\n if (inStatementContainingYield) {\n var label = findBreakTarget(node.label && ts.idText(node.label));\n if (label > 0) {\n return createInlineBreak(label, /*location*/ node);\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function transformAndEmitReturnStatement(node) {\n emitReturn(ts.visitNode(node.expression, visitor, ts.isExpression), \n /*location*/ node);\n }\n function visitReturnStatement(node) {\n return createInlineReturn(ts.visitNode(node.expression, visitor, ts.isExpression), \n /*location*/ node);\n }\n function transformAndEmitWithStatement(node) {\n if (containsYield(node)) {\n // [source]\n // with (x) {\n // /*body*/\n // }\n //\n // [intermediate]\n // .with (x)\n // /*body*/\n // .endwith\n beginWithBlock(cacheExpression(ts.visitNode(node.expression, visitor, ts.isExpression)));\n transformAndEmitEmbeddedStatement(node.statement);\n endWithBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function transformAndEmitSwitchStatement(node) {\n if (containsYield(node.caseBlock)) {\n // [source]\n // switch (x) {\n // case a:\n // /*caseStatements*/\n // case b:\n // /*caseStatements*/\n // default:\n // /*defaultStatements*/\n // }\n //\n // [intermediate]\n // .local _a\n // .switch endLabel\n // _a = x;\n // switch (_a) {\n // case a:\n // .br clauseLabels[0]\n // }\n // switch (_a) {\n // case b:\n // .br clauseLabels[1]\n // }\n // .br clauseLabels[2]\n // .mark clauseLabels[0]\n // /*caseStatements*/\n // .mark clauseLabels[1]\n // /*caseStatements*/\n // .mark clauseLabels[2]\n // /*caseStatements*/\n // .endswitch\n // .mark endLabel\n var caseBlock = node.caseBlock;\n var numClauses = caseBlock.clauses.length;\n var endLabel = beginSwitchBlock();\n var expression = cacheExpression(ts.visitNode(node.expression, visitor, ts.isExpression));\n // Create labels for each clause and find the index of the first default clause.\n var clauseLabels = [];\n var defaultClauseIndex = -1;\n for (var i = 0; i < numClauses; i++) {\n var clause = caseBlock.clauses[i];\n clauseLabels.push(defineLabel());\n if (clause.kind === 288 /* DefaultClause */ && defaultClauseIndex === -1) {\n defaultClauseIndex = i;\n }\n }\n // Emit switch statements for each run of case clauses either from the first case\n // clause or the next case clause with a `yield` in its expression, up to the next\n // case clause with a `yield` in its expression.\n var clausesWritten = 0;\n var pendingClauses = [];\n while (clausesWritten < numClauses) {\n var defaultClausesSkipped = 0;\n for (var i = clausesWritten; i < numClauses; i++) {\n var clause = caseBlock.clauses[i];\n if (clause.kind === 287 /* CaseClause */) {\n if (containsYield(clause.expression) && pendingClauses.length > 0) {\n break;\n }\n pendingClauses.push(factory.createCaseClause(ts.visitNode(clause.expression, visitor, ts.isExpression), [\n createInlineBreak(clauseLabels[i], /*location*/ clause.expression)\n ]));\n }\n else {\n defaultClausesSkipped++;\n }\n }\n if (pendingClauses.length) {\n emitStatement(factory.createSwitchStatement(expression, factory.createCaseBlock(pendingClauses)));\n clausesWritten += pendingClauses.length;\n pendingClauses = [];\n }\n if (defaultClausesSkipped > 0) {\n clausesWritten += defaultClausesSkipped;\n defaultClausesSkipped = 0;\n }\n }\n if (defaultClauseIndex >= 0) {\n emitBreak(clauseLabels[defaultClauseIndex]);\n }\n else {\n emitBreak(endLabel);\n }\n for (var i = 0; i < numClauses; i++) {\n markLabel(clauseLabels[i]);\n transformAndEmitStatements(caseBlock.clauses[i].statements);\n }\n endSwitchBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function visitSwitchStatement(node) {\n if (inStatementContainingYield) {\n beginScriptSwitchBlock();\n }\n node = ts.visitEachChild(node, visitor, context);\n if (inStatementContainingYield) {\n endSwitchBlock();\n }\n return node;\n }\n function transformAndEmitLabeledStatement(node) {\n if (containsYield(node)) {\n // [source]\n // x: {\n // /*body*/\n // }\n //\n // [intermediate]\n // .labeled \"x\", endLabel\n // /*body*/\n // .endlabeled\n // .mark endLabel\n beginLabeledBlock(ts.idText(node.label));\n transformAndEmitEmbeddedStatement(node.statement);\n endLabeledBlock();\n }\n else {\n emitStatement(ts.visitNode(node, visitor, ts.isStatement));\n }\n }\n function visitLabeledStatement(node) {\n if (inStatementContainingYield) {\n beginScriptLabeledBlock(ts.idText(node.label));\n }\n node = ts.visitEachChild(node, visitor, context);\n if (inStatementContainingYield) {\n endLabeledBlock();\n }\n return node;\n }\n function transformAndEmitThrowStatement(node) {\n var _a;\n // TODO(rbuckton): `expression` should be required on `throw`.\n emitThrow(ts.visitNode((_a = node.expression) !== null && _a !== void 0 ? _a : factory.createVoidZero(), visitor, ts.isExpression), \n /*location*/ node);\n }\n function transformAndEmitTryStatement(node) {\n if (containsYield(node)) {\n // [source]\n // try {\n // /*tryBlock*/\n // }\n // catch (e) {\n // /*catchBlock*/\n // }\n // finally {\n // /*finallyBlock*/\n // }\n //\n // [intermediate]\n // .local _a\n // .try tryLabel, catchLabel, finallyLabel, endLabel\n // .mark tryLabel\n // .nop\n // /*tryBlock*/\n // .br endLabel\n // .catch\n // .mark catchLabel\n // _a = %error%;\n // /*catchBlock*/\n // .br endLabel\n // .finally\n // .mark finallyLabel\n // /*finallyBlock*/\n // .endfinally\n // .endtry\n // .mark endLabel\n beginExceptionBlock();\n transformAndEmitEmbeddedStatement(node.tryBlock);\n if (node.catchClause) {\n beginCatchBlock(node.catchClause.variableDeclaration); // TODO: GH#18217\n transformAndEmitEmbeddedStatement(node.catchClause.block);\n }\n if (node.finallyBlock) {\n beginFinallyBlock();\n transformAndEmitEmbeddedStatement(node.finallyBlock);\n }\n endExceptionBlock();\n }\n else {\n emitStatement(ts.visitEachChild(node, visitor, context));\n }\n }\n function containsYield(node) {\n return !!node && (node.transformFlags & 524288 /* ContainsYield */) !== 0;\n }\n function countInitialNodesWithoutYield(nodes) {\n var numNodes = nodes.length;\n for (var i = 0; i < numNodes; i++) {\n if (containsYield(nodes[i])) {\n return i;\n }\n }\n return -1;\n }\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (hint === 1 /* Expression */) {\n return substituteExpression(node);\n }\n return node;\n }\n function substituteExpression(node) {\n if (ts.isIdentifier(node)) {\n return substituteExpressionIdentifier(node);\n }\n return node;\n }\n function substituteExpressionIdentifier(node) {\n if (!ts.isGeneratedIdentifier(node) && renamedCatchVariables && renamedCatchVariables.has(ts.idText(node))) {\n var original = ts.getOriginalNode(node);\n if (ts.isIdentifier(original) && original.parent) {\n var declaration = resolver.getReferencedValueDeclaration(original);\n if (declaration) {\n var name = renamedCatchVariableDeclarations[ts.getOriginalNodeId(declaration)];\n if (name) {\n // TODO(rbuckton): Does this need to be parented?\n var clone_6 = ts.setParent(ts.setTextRange(factory.cloneNode(name), name), name.parent);\n ts.setSourceMapRange(clone_6, node);\n ts.setCommentRange(clone_6, node);\n return clone_6;\n }\n }\n }\n }\n return node;\n }\n function cacheExpression(node) {\n if (ts.isGeneratedIdentifier(node) || ts.getEmitFlags(node) & 4096 /* HelperName */) {\n return node;\n }\n var temp = factory.createTempVariable(hoistVariableDeclaration);\n emitAssignment(temp, node, /*location*/ node);\n return temp;\n }\n function declareLocal(name) {\n var temp = name\n ? factory.createUniqueName(name)\n : factory.createTempVariable(/*recordTempVariable*/ undefined);\n hoistVariableDeclaration(temp);\n return temp;\n }\n /**\n * Defines a label, uses as the target of a Break operation.\n */\n function defineLabel() {\n if (!labelOffsets) {\n labelOffsets = [];\n }\n var label = nextLabelId;\n nextLabelId++;\n labelOffsets[label] = -1;\n return label;\n }\n /**\n * Marks the current operation with the specified label.\n */\n function markLabel(label) {\n ts.Debug.assert(labelOffsets !== undefined, \"No labels were defined.\");\n labelOffsets[label] = operations ? operations.length : 0;\n }\n /**\n * Begins a block operation (With, Break/Continue, Try/Catch/Finally)\n *\n * @param block Information about the block.\n */\n function beginBlock(block) {\n if (!blocks) {\n blocks = [];\n blockActions = [];\n blockOffsets = [];\n blockStack = [];\n }\n var index = blockActions.length;\n blockActions[index] = 0 /* Open */;\n blockOffsets[index] = operations ? operations.length : 0;\n blocks[index] = block;\n blockStack.push(block);\n return index;\n }\n /**\n * Ends the current block operation.\n */\n function endBlock() {\n var block = peekBlock();\n if (block === undefined)\n return ts.Debug.fail(\"beginBlock was never called.\");\n var index = blockActions.length;\n blockActions[index] = 1 /* Close */;\n blockOffsets[index] = operations ? operations.length : 0;\n blocks[index] = block;\n blockStack.pop();\n return block;\n }\n /**\n * Gets the current open block.\n */\n function peekBlock() {\n return ts.lastOrUndefined(blockStack);\n }\n /**\n * Gets the kind of the current open block.\n */\n function peekBlockKind() {\n var block = peekBlock();\n return block && block.kind;\n }\n /**\n * Begins a code block for a generated `with` statement.\n *\n * @param expression An identifier representing expression for the `with` block.\n */\n function beginWithBlock(expression) {\n var startLabel = defineLabel();\n var endLabel = defineLabel();\n markLabel(startLabel);\n beginBlock({\n kind: 1 /* With */,\n expression: expression,\n startLabel: startLabel,\n endLabel: endLabel\n });\n }\n /**\n * Ends a code block for a generated `with` statement.\n */\n function endWithBlock() {\n ts.Debug.assert(peekBlockKind() === 1 /* With */);\n var block = endBlock();\n markLabel(block.endLabel);\n }\n /**\n * Begins a code block for a generated `try` statement.\n */\n function beginExceptionBlock() {\n var startLabel = defineLabel();\n var endLabel = defineLabel();\n markLabel(startLabel);\n beginBlock({\n kind: 0 /* Exception */,\n state: 0 /* Try */,\n startLabel: startLabel,\n endLabel: endLabel\n });\n emitNop();\n return endLabel;\n }\n /**\n * Enters the `catch` clause of a generated `try` statement.\n *\n * @param variable The catch variable.\n */\n function beginCatchBlock(variable) {\n ts.Debug.assert(peekBlockKind() === 0 /* Exception */);\n // generated identifiers should already be unique within a file\n var name;\n if (ts.isGeneratedIdentifier(variable.name)) {\n name = variable.name;\n hoistVariableDeclaration(variable.name);\n }\n else {\n var text = ts.idText(variable.name);\n name = declareLocal(text);\n if (!renamedCatchVariables) {\n renamedCatchVariables = new ts.Map();\n renamedCatchVariableDeclarations = [];\n context.enableSubstitution(79 /* Identifier */);\n }\n renamedCatchVariables.set(text, true);\n renamedCatchVariableDeclarations[ts.getOriginalNodeId(variable)] = name;\n }\n var exception = peekBlock();\n ts.Debug.assert(exception.state < 1 /* Catch */);\n var endLabel = exception.endLabel;\n emitBreak(endLabel);\n var catchLabel = defineLabel();\n markLabel(catchLabel);\n exception.state = 1 /* Catch */;\n exception.catchVariable = name;\n exception.catchLabel = catchLabel;\n emitAssignment(name, factory.createCallExpression(factory.createPropertyAccessExpression(state, \"sent\"), /*typeArguments*/ undefined, []));\n emitNop();\n }\n /**\n * Enters the `finally` block of a generated `try` statement.\n */\n function beginFinallyBlock() {\n ts.Debug.assert(peekBlockKind() === 0 /* Exception */);\n var exception = peekBlock();\n ts.Debug.assert(exception.state < 2 /* Finally */);\n var endLabel = exception.endLabel;\n emitBreak(endLabel);\n var finallyLabel = defineLabel();\n markLabel(finallyLabel);\n exception.state = 2 /* Finally */;\n exception.finallyLabel = finallyLabel;\n }\n /**\n * Ends the code block for a generated `try` statement.\n */\n function endExceptionBlock() {\n ts.Debug.assert(peekBlockKind() === 0 /* Exception */);\n var exception = endBlock();\n var state = exception.state;\n if (state < 2 /* Finally */) {\n emitBreak(exception.endLabel);\n }\n else {\n emitEndfinally();\n }\n markLabel(exception.endLabel);\n emitNop();\n exception.state = 3 /* Done */;\n }\n /**\n * Begins a code block that supports `break` or `continue` statements that are defined in\n * the source tree and not from generated code.\n *\n * @param labelText Names from containing labeled statements.\n */\n function beginScriptLoopBlock() {\n beginBlock({\n kind: 3 /* Loop */,\n isScript: true,\n breakLabel: -1,\n continueLabel: -1\n });\n }\n /**\n * Begins a code block that supports `break` or `continue` statements that are defined in\n * generated code. Returns a label used to mark the operation to which to jump when a\n * `break` statement targets this block.\n *\n * @param continueLabel A Label used to mark the operation to which to jump when a\n * `continue` statement targets this block.\n */\n function beginLoopBlock(continueLabel) {\n var breakLabel = defineLabel();\n beginBlock({\n kind: 3 /* Loop */,\n isScript: false,\n breakLabel: breakLabel,\n continueLabel: continueLabel,\n });\n return breakLabel;\n }\n /**\n * Ends a code block that supports `break` or `continue` statements that are defined in\n * generated code or in the source tree.\n */\n function endLoopBlock() {\n ts.Debug.assert(peekBlockKind() === 3 /* Loop */);\n var block = endBlock();\n var breakLabel = block.breakLabel;\n if (!block.isScript) {\n markLabel(breakLabel);\n }\n }\n /**\n * Begins a code block that supports `break` statements that are defined in the source\n * tree and not from generated code.\n *\n */\n function beginScriptSwitchBlock() {\n beginBlock({\n kind: 2 /* Switch */,\n isScript: true,\n breakLabel: -1\n });\n }\n /**\n * Begins a code block that supports `break` statements that are defined in generated code.\n * Returns a label used to mark the operation to which to jump when a `break` statement\n * targets this block.\n */\n function beginSwitchBlock() {\n var breakLabel = defineLabel();\n beginBlock({\n kind: 2 /* Switch */,\n isScript: false,\n breakLabel: breakLabel,\n });\n return breakLabel;\n }\n /**\n * Ends a code block that supports `break` statements that are defined in generated code.\n */\n function endSwitchBlock() {\n ts.Debug.assert(peekBlockKind() === 2 /* Switch */);\n var block = endBlock();\n var breakLabel = block.breakLabel;\n if (!block.isScript) {\n markLabel(breakLabel);\n }\n }\n function beginScriptLabeledBlock(labelText) {\n beginBlock({\n kind: 4 /* Labeled */,\n isScript: true,\n labelText: labelText,\n breakLabel: -1\n });\n }\n function beginLabeledBlock(labelText) {\n var breakLabel = defineLabel();\n beginBlock({\n kind: 4 /* Labeled */,\n isScript: false,\n labelText: labelText,\n breakLabel: breakLabel\n });\n }\n function endLabeledBlock() {\n ts.Debug.assert(peekBlockKind() === 4 /* Labeled */);\n var block = endBlock();\n if (!block.isScript) {\n markLabel(block.breakLabel);\n }\n }\n /**\n * Indicates whether the provided block supports `break` statements.\n *\n * @param block A code block.\n */\n function supportsUnlabeledBreak(block) {\n return block.kind === 2 /* Switch */\n || block.kind === 3 /* Loop */;\n }\n /**\n * Indicates whether the provided block supports `break` statements with labels.\n *\n * @param block A code block.\n */\n function supportsLabeledBreakOrContinue(block) {\n return block.kind === 4 /* Labeled */;\n }\n /**\n * Indicates whether the provided block supports `continue` statements.\n *\n * @param block A code block.\n */\n function supportsUnlabeledContinue(block) {\n return block.kind === 3 /* Loop */;\n }\n function hasImmediateContainingLabeledBlock(labelText, start) {\n for (var j = start; j >= 0; j--) {\n var containingBlock = blockStack[j];\n if (supportsLabeledBreakOrContinue(containingBlock)) {\n if (containingBlock.labelText === labelText) {\n return true;\n }\n }\n else {\n break;\n }\n }\n return false;\n }\n /**\n * Finds the label that is the target for a `break` statement.\n *\n * @param labelText An optional name of a containing labeled statement.\n */\n function findBreakTarget(labelText) {\n if (blockStack) {\n if (labelText) {\n for (var i = blockStack.length - 1; i >= 0; i--) {\n var block = blockStack[i];\n if (supportsLabeledBreakOrContinue(block) && block.labelText === labelText) {\n return block.breakLabel;\n }\n else if (supportsUnlabeledBreak(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) {\n return block.breakLabel;\n }\n }\n }\n else {\n for (var i = blockStack.length - 1; i >= 0; i--) {\n var block = blockStack[i];\n if (supportsUnlabeledBreak(block)) {\n return block.breakLabel;\n }\n }\n }\n }\n return 0;\n }\n /**\n * Finds the label that is the target for a `continue` statement.\n *\n * @param labelText An optional name of a containing labeled statement.\n */\n function findContinueTarget(labelText) {\n if (blockStack) {\n if (labelText) {\n for (var i = blockStack.length - 1; i >= 0; i--) {\n var block = blockStack[i];\n if (supportsUnlabeledContinue(block) && hasImmediateContainingLabeledBlock(labelText, i - 1)) {\n return block.continueLabel;\n }\n }\n }\n else {\n for (var i = blockStack.length - 1; i >= 0; i--) {\n var block = blockStack[i];\n if (supportsUnlabeledContinue(block)) {\n return block.continueLabel;\n }\n }\n }\n }\n return 0;\n }\n /**\n * Creates an expression that can be used to indicate the value for a label.\n *\n * @param label A label.\n */\n function createLabel(label) {\n if (label !== undefined && label > 0) {\n if (labelExpressions === undefined) {\n labelExpressions = [];\n }\n var expression = factory.createNumericLiteral(-1);\n if (labelExpressions[label] === undefined) {\n labelExpressions[label] = [expression];\n }\n else {\n labelExpressions[label].push(expression);\n }\n return expression;\n }\n return factory.createOmittedExpression();\n }\n /**\n * Creates a numeric literal for the provided instruction.\n */\n function createInstruction(instruction) {\n var literal = factory.createNumericLiteral(instruction);\n ts.addSyntheticTrailingComment(literal, 3 /* MultiLineCommentTrivia */, getInstructionName(instruction));\n return literal;\n }\n /**\n * Creates a statement that can be used indicate a Break operation to the provided label.\n *\n * @param label A label.\n * @param location An optional source map location for the statement.\n */\n function createInlineBreak(label, location) {\n ts.Debug.assertLessThan(0, label, \"Invalid label\");\n return ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([\n createInstruction(3 /* Break */),\n createLabel(label)\n ])), location);\n }\n /**\n * Creates a statement that can be used indicate a Return operation.\n *\n * @param expression The expression for the return statement.\n * @param location An optional source map location for the statement.\n */\n function createInlineReturn(expression, location) {\n return ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression(expression\n ? [createInstruction(2 /* Return */), expression]\n : [createInstruction(2 /* Return */)])), location);\n }\n /**\n * Creates an expression that can be used to resume from a Yield operation.\n */\n function createGeneratorResume(location) {\n return ts.setTextRange(factory.createCallExpression(factory.createPropertyAccessExpression(state, \"sent\"), \n /*typeArguments*/ undefined, []), location);\n }\n /**\n * Emits an empty instruction.\n */\n function emitNop() {\n emitWorker(0 /* Nop */);\n }\n /**\n * Emits a Statement.\n *\n * @param node A statement.\n */\n function emitStatement(node) {\n if (node) {\n emitWorker(1 /* Statement */, [node]);\n }\n else {\n emitNop();\n }\n }\n /**\n * Emits an Assignment operation.\n *\n * @param left The left-hand side of the assignment.\n * @param right The right-hand side of the assignment.\n * @param location An optional source map location for the assignment.\n */\n function emitAssignment(left, right, location) {\n emitWorker(2 /* Assign */, [left, right], location);\n }\n /**\n * Emits a Break operation to the specified label.\n *\n * @param label A label.\n * @param location An optional source map location for the assignment.\n */\n function emitBreak(label, location) {\n emitWorker(3 /* Break */, [label], location);\n }\n /**\n * Emits a Break operation to the specified label when a condition evaluates to a truthy\n * value at runtime.\n *\n * @param label A label.\n * @param condition The condition.\n * @param location An optional source map location for the assignment.\n */\n function emitBreakWhenTrue(label, condition, location) {\n emitWorker(4 /* BreakWhenTrue */, [label, condition], location);\n }\n /**\n * Emits a Break to the specified label when a condition evaluates to a falsey value at\n * runtime.\n *\n * @param label A label.\n * @param condition The condition.\n * @param location An optional source map location for the assignment.\n */\n function emitBreakWhenFalse(label, condition, location) {\n emitWorker(5 /* BreakWhenFalse */, [label, condition], location);\n }\n /**\n * Emits a YieldStar operation for the provided expression.\n *\n * @param expression An optional value for the yield operation.\n * @param location An optional source map location for the assignment.\n */\n function emitYieldStar(expression, location) {\n emitWorker(7 /* YieldStar */, [expression], location);\n }\n /**\n * Emits a Yield operation for the provided expression.\n *\n * @param expression An optional value for the yield operation.\n * @param location An optional source map location for the assignment.\n */\n function emitYield(expression, location) {\n emitWorker(6 /* Yield */, [expression], location);\n }\n /**\n * Emits a Return operation for the provided expression.\n *\n * @param expression An optional value for the operation.\n * @param location An optional source map location for the assignment.\n */\n function emitReturn(expression, location) {\n emitWorker(8 /* Return */, [expression], location);\n }\n /**\n * Emits a Throw operation for the provided expression.\n *\n * @param expression A value for the operation.\n * @param location An optional source map location for the assignment.\n */\n function emitThrow(expression, location) {\n emitWorker(9 /* Throw */, [expression], location);\n }\n /**\n * Emits an Endfinally operation. This is used to handle `finally` block semantics.\n */\n function emitEndfinally() {\n emitWorker(10 /* Endfinally */);\n }\n /**\n * Emits an operation.\n *\n * @param code The OpCode for the operation.\n * @param args The optional arguments for the operation.\n */\n function emitWorker(code, args, location) {\n if (operations === undefined) {\n operations = [];\n operationArguments = [];\n operationLocations = [];\n }\n if (labelOffsets === undefined) {\n // mark entry point\n markLabel(defineLabel());\n }\n var operationIndex = operations.length;\n operations[operationIndex] = code;\n operationArguments[operationIndex] = args;\n operationLocations[operationIndex] = location;\n }\n /**\n * Builds the generator function body.\n */\n function build() {\n blockIndex = 0;\n labelNumber = 0;\n labelNumbers = undefined;\n lastOperationWasAbrupt = false;\n lastOperationWasCompletion = false;\n clauses = undefined;\n statements = undefined;\n exceptionBlockStack = undefined;\n currentExceptionBlock = undefined;\n withBlockStack = undefined;\n var buildResult = buildStatements();\n return emitHelpers().createGeneratorHelper(ts.setEmitFlags(factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, state)], \n /*type*/ undefined, factory.createBlock(buildResult, \n /*multiLine*/ buildResult.length > 0)), 524288 /* ReuseTempVariableScope */));\n }\n /**\n * Builds the statements for the generator function body.\n */\n function buildStatements() {\n if (operations) {\n for (var operationIndex = 0; operationIndex < operations.length; operationIndex++) {\n writeOperation(operationIndex);\n }\n flushFinalLabel(operations.length);\n }\n else {\n flushFinalLabel(0);\n }\n if (clauses) {\n var labelExpression = factory.createPropertyAccessExpression(state, \"label\");\n var switchStatement = factory.createSwitchStatement(labelExpression, factory.createCaseBlock(clauses));\n return [ts.startOnNewLine(switchStatement)];\n }\n if (statements) {\n return statements;\n }\n return [];\n }\n /**\n * Flush the current label and advance to a new label.\n */\n function flushLabel() {\n if (!statements) {\n return;\n }\n appendLabel(/*markLabelEnd*/ !lastOperationWasAbrupt);\n lastOperationWasAbrupt = false;\n lastOperationWasCompletion = false;\n labelNumber++;\n }\n /**\n * Flush the final label of the generator function body.\n */\n function flushFinalLabel(operationIndex) {\n if (isFinalLabelReachable(operationIndex)) {\n tryEnterLabel(operationIndex);\n withBlockStack = undefined;\n writeReturn(/*expression*/ undefined, /*operationLocation*/ undefined);\n }\n if (statements && clauses) {\n appendLabel(/*markLabelEnd*/ false);\n }\n updateLabelExpressions();\n }\n /**\n * Tests whether the final label of the generator function body\n * is reachable by user code.\n */\n function isFinalLabelReachable(operationIndex) {\n // if the last operation was *not* a completion (return/throw) then\n // the final label is reachable.\n if (!lastOperationWasCompletion) {\n return true;\n }\n // if there are no labels defined or referenced, then the final label is\n // not reachable.\n if (!labelOffsets || !labelExpressions) {\n return false;\n }\n // if the label for this offset is referenced, then the final label\n // is reachable.\n for (var label = 0; label < labelOffsets.length; label++) {\n if (labelOffsets[label] === operationIndex && labelExpressions[label]) {\n return true;\n }\n }\n return false;\n }\n /**\n * Appends a case clause for the last label and sets the new label.\n *\n * @param markLabelEnd Indicates that the transition between labels was a fall-through\n * from a previous case clause and the change in labels should be\n * reflected on the `state` object.\n */\n function appendLabel(markLabelEnd) {\n if (!clauses) {\n clauses = [];\n }\n if (statements) {\n if (withBlockStack) {\n // The previous label was nested inside one or more `with` blocks, so we\n // surround the statements in generated `with` blocks to create the same environment.\n for (var i = withBlockStack.length - 1; i >= 0; i--) {\n var withBlock = withBlockStack[i];\n statements = [factory.createWithStatement(withBlock.expression, factory.createBlock(statements))];\n }\n }\n if (currentExceptionBlock) {\n // The previous label was nested inside of an exception block, so we must\n // indicate entry into a protected region by pushing the label numbers\n // for each block in the protected region.\n var startLabel = currentExceptionBlock.startLabel, catchLabel = currentExceptionBlock.catchLabel, finallyLabel = currentExceptionBlock.finallyLabel, endLabel = currentExceptionBlock.endLabel;\n statements.unshift(factory.createExpressionStatement(factory.createCallExpression(factory.createPropertyAccessExpression(factory.createPropertyAccessExpression(state, \"trys\"), \"push\"), \n /*typeArguments*/ undefined, [\n factory.createArrayLiteralExpression([\n createLabel(startLabel),\n createLabel(catchLabel),\n createLabel(finallyLabel),\n createLabel(endLabel)\n ])\n ])));\n currentExceptionBlock = undefined;\n }\n if (markLabelEnd) {\n // The case clause for the last label falls through to this label, so we\n // add an assignment statement to reflect the change in labels.\n statements.push(factory.createExpressionStatement(factory.createAssignment(factory.createPropertyAccessExpression(state, \"label\"), factory.createNumericLiteral(labelNumber + 1))));\n }\n }\n clauses.push(factory.createCaseClause(factory.createNumericLiteral(labelNumber), statements || []));\n statements = undefined;\n }\n /**\n * Tries to enter into a new label at the current operation index.\n */\n function tryEnterLabel(operationIndex) {\n if (!labelOffsets) {\n return;\n }\n for (var label = 0; label < labelOffsets.length; label++) {\n if (labelOffsets[label] === operationIndex) {\n flushLabel();\n if (labelNumbers === undefined) {\n labelNumbers = [];\n }\n if (labelNumbers[labelNumber] === undefined) {\n labelNumbers[labelNumber] = [label];\n }\n else {\n labelNumbers[labelNumber].push(label);\n }\n }\n }\n }\n /**\n * Updates literal expressions for labels with actual label numbers.\n */\n function updateLabelExpressions() {\n if (labelExpressions !== undefined && labelNumbers !== undefined) {\n for (var labelNumber_1 = 0; labelNumber_1 < labelNumbers.length; labelNumber_1++) {\n var labels = labelNumbers[labelNumber_1];\n if (labels !== undefined) {\n for (var _i = 0, labels_1 = labels; _i < labels_1.length; _i++) {\n var label = labels_1[_i];\n var expressions = labelExpressions[label];\n if (expressions !== undefined) {\n for (var _a = 0, expressions_1 = expressions; _a < expressions_1.length; _a++) {\n var expression = expressions_1[_a];\n expression.text = String(labelNumber_1);\n }\n }\n }\n }\n }\n }\n }\n /**\n * Tries to enter or leave a code block.\n */\n function tryEnterOrLeaveBlock(operationIndex) {\n if (blocks) {\n for (; blockIndex < blockActions.length && blockOffsets[blockIndex] <= operationIndex; blockIndex++) {\n var block = blocks[blockIndex];\n var blockAction = blockActions[blockIndex];\n switch (block.kind) {\n case 0 /* Exception */:\n if (blockAction === 0 /* Open */) {\n if (!exceptionBlockStack) {\n exceptionBlockStack = [];\n }\n if (!statements) {\n statements = [];\n }\n exceptionBlockStack.push(currentExceptionBlock);\n currentExceptionBlock = block;\n }\n else if (blockAction === 1 /* Close */) {\n currentExceptionBlock = exceptionBlockStack.pop();\n }\n break;\n case 1 /* With */:\n if (blockAction === 0 /* Open */) {\n if (!withBlockStack) {\n withBlockStack = [];\n }\n withBlockStack.push(block);\n }\n else if (blockAction === 1 /* Close */) {\n withBlockStack.pop();\n }\n break;\n // default: do nothing\n }\n }\n }\n }\n /**\n * Writes an operation as a statement to the current label's statement list.\n *\n * @param operation The OpCode of the operation\n */\n function writeOperation(operationIndex) {\n tryEnterLabel(operationIndex);\n tryEnterOrLeaveBlock(operationIndex);\n // early termination, nothing else to process in this label\n if (lastOperationWasAbrupt) {\n return;\n }\n lastOperationWasAbrupt = false;\n lastOperationWasCompletion = false;\n var opcode = operations[operationIndex];\n if (opcode === 0 /* Nop */) {\n return;\n }\n else if (opcode === 10 /* Endfinally */) {\n return writeEndfinally();\n }\n var args = operationArguments[operationIndex];\n if (opcode === 1 /* Statement */) {\n return writeStatement(args[0]);\n }\n var location = operationLocations[operationIndex];\n switch (opcode) {\n case 2 /* Assign */:\n return writeAssign(args[0], args[1], location);\n case 3 /* Break */:\n return writeBreak(args[0], location);\n case 4 /* BreakWhenTrue */:\n return writeBreakWhenTrue(args[0], args[1], location);\n case 5 /* BreakWhenFalse */:\n return writeBreakWhenFalse(args[0], args[1], location);\n case 6 /* Yield */:\n return writeYield(args[0], location);\n case 7 /* YieldStar */:\n return writeYieldStar(args[0], location);\n case 8 /* Return */:\n return writeReturn(args[0], location);\n case 9 /* Throw */:\n return writeThrow(args[0], location);\n }\n }\n /**\n * Writes a statement to the current label's statement list.\n *\n * @param statement A statement to write.\n */\n function writeStatement(statement) {\n if (statement) {\n if (!statements) {\n statements = [statement];\n }\n else {\n statements.push(statement);\n }\n }\n }\n /**\n * Writes an Assign operation to the current label's statement list.\n *\n * @param left The left-hand side of the assignment.\n * @param right The right-hand side of the assignment.\n * @param operationLocation The source map location for the operation.\n */\n function writeAssign(left, right, operationLocation) {\n writeStatement(ts.setTextRange(factory.createExpressionStatement(factory.createAssignment(left, right)), operationLocation));\n }\n /**\n * Writes a Throw operation to the current label's statement list.\n *\n * @param expression The value to throw.\n * @param operationLocation The source map location for the operation.\n */\n function writeThrow(expression, operationLocation) {\n lastOperationWasAbrupt = true;\n lastOperationWasCompletion = true;\n writeStatement(ts.setTextRange(factory.createThrowStatement(expression), operationLocation));\n }\n /**\n * Writes a Return operation to the current label's statement list.\n *\n * @param expression The value to return.\n * @param operationLocation The source map location for the operation.\n */\n function writeReturn(expression, operationLocation) {\n lastOperationWasAbrupt = true;\n lastOperationWasCompletion = true;\n writeStatement(ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression(expression\n ? [createInstruction(2 /* Return */), expression]\n : [createInstruction(2 /* Return */)])), operationLocation), 384 /* NoTokenSourceMaps */));\n }\n /**\n * Writes a Break operation to the current label's statement list.\n *\n * @param label The label for the Break.\n * @param operationLocation The source map location for the operation.\n */\n function writeBreak(label, operationLocation) {\n lastOperationWasAbrupt = true;\n writeStatement(ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([\n createInstruction(3 /* Break */),\n createLabel(label)\n ])), operationLocation), 384 /* NoTokenSourceMaps */));\n }\n /**\n * Writes a BreakWhenTrue operation to the current label's statement list.\n *\n * @param label The label for the Break.\n * @param condition The condition for the Break.\n * @param operationLocation The source map location for the operation.\n */\n function writeBreakWhenTrue(label, condition, operationLocation) {\n writeStatement(ts.setEmitFlags(factory.createIfStatement(condition, ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([\n createInstruction(3 /* Break */),\n createLabel(label)\n ])), operationLocation), 384 /* NoTokenSourceMaps */)), 1 /* SingleLine */));\n }\n /**\n * Writes a BreakWhenFalse operation to the current label's statement list.\n *\n * @param label The label for the Break.\n * @param condition The condition for the Break.\n * @param operationLocation The source map location for the operation.\n */\n function writeBreakWhenFalse(label, condition, operationLocation) {\n writeStatement(ts.setEmitFlags(factory.createIfStatement(factory.createLogicalNot(condition), ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([\n createInstruction(3 /* Break */),\n createLabel(label)\n ])), operationLocation), 384 /* NoTokenSourceMaps */)), 1 /* SingleLine */));\n }\n /**\n * Writes a Yield operation to the current label's statement list.\n *\n * @param expression The expression to yield.\n * @param operationLocation The source map location for the operation.\n */\n function writeYield(expression, operationLocation) {\n lastOperationWasAbrupt = true;\n writeStatement(ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression(expression\n ? [createInstruction(4 /* Yield */), expression]\n : [createInstruction(4 /* Yield */)])), operationLocation), 384 /* NoTokenSourceMaps */));\n }\n /**\n * Writes a YieldStar instruction to the current label's statement list.\n *\n * @param expression The expression to yield.\n * @param operationLocation The source map location for the operation.\n */\n function writeYieldStar(expression, operationLocation) {\n lastOperationWasAbrupt = true;\n writeStatement(ts.setEmitFlags(ts.setTextRange(factory.createReturnStatement(factory.createArrayLiteralExpression([\n createInstruction(5 /* YieldStar */),\n expression\n ])), operationLocation), 384 /* NoTokenSourceMaps */));\n }\n /**\n * Writes an Endfinally instruction to the current label's statement list.\n */\n function writeEndfinally() {\n lastOperationWasAbrupt = true;\n writeStatement(factory.createReturnStatement(factory.createArrayLiteralExpression([\n createInstruction(7 /* Endfinally */)\n ])));\n }\n }\n ts.transformGenerators = transformGenerators;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformModule(context) {\n function getTransformModuleDelegate(moduleKind) {\n switch (moduleKind) {\n case ts.ModuleKind.AMD: return transformAMDModule;\n case ts.ModuleKind.UMD: return transformUMDModule;\n default: return transformCommonJSModule;\n }\n }\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory, startLexicalEnvironment = context.startLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var compilerOptions = context.getCompilerOptions();\n var resolver = context.getEmitResolver();\n var host = context.getEmitHost();\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n var previousOnSubstituteNode = context.onSubstituteNode;\n var previousOnEmitNode = context.onEmitNode;\n context.onSubstituteNode = onSubstituteNode;\n context.onEmitNode = onEmitNode;\n context.enableSubstitution(206 /* CallExpression */); // Substitute calls to imported/exported symbols to avoid incorrect `this`.\n context.enableSubstitution(208 /* TaggedTemplateExpression */); // Substitute calls to imported/exported symbols to avoid incorrect `this`.\n context.enableSubstitution(79 /* Identifier */); // Substitutes expression identifiers with imported/exported symbols.\n context.enableSubstitution(219 /* BinaryExpression */); // Substitutes assignments to exported symbols.\n context.enableSubstitution(292 /* ShorthandPropertyAssignment */); // Substitutes shorthand property assignments for imported/exported symbols.\n context.enableEmitNotification(300 /* SourceFile */); // Restore state when substituting nodes in a file.\n var moduleInfoMap = []; // The ExternalModuleInfo for each file.\n var deferredExports = []; // Exports to defer until an EndOfDeclarationMarker is found.\n var currentSourceFile; // The current file.\n var currentModuleInfo; // The ExternalModuleInfo for the current file.\n var noSubstitution = []; // Set of nodes for which substitution rules should be ignored.\n var needUMDDynamicImportHelper;\n return ts.chainBundle(context, transformSourceFile);\n /**\n * Transforms the module aspects of a SourceFile.\n *\n * @param node The SourceFile node.\n */\n function transformSourceFile(node) {\n if (node.isDeclarationFile ||\n !(ts.isEffectiveExternalModule(node, compilerOptions) ||\n node.transformFlags & 4194304 /* ContainsDynamicImport */ ||\n (ts.isJsonSourceFile(node) && ts.hasJsonModuleEmitEnabled(compilerOptions) && ts.outFile(compilerOptions)))) {\n return node;\n }\n currentSourceFile = node;\n currentModuleInfo = ts.collectExternalModuleInfo(context, node, resolver, compilerOptions);\n moduleInfoMap[ts.getOriginalNodeId(node)] = currentModuleInfo;\n // Perform the transformation.\n var transformModule = getTransformModuleDelegate(moduleKind);\n var updated = transformModule(node);\n currentSourceFile = undefined;\n currentModuleInfo = undefined;\n needUMDDynamicImportHelper = false;\n return updated;\n }\n function shouldEmitUnderscoreUnderscoreESModule() {\n if (!currentModuleInfo.exportEquals && ts.isExternalModule(currentSourceFile)) {\n return true;\n }\n return false;\n }\n /**\n * Transforms a SourceFile into a CommonJS module.\n *\n * @param node The SourceFile node.\n */\n function transformCommonJSModule(node) {\n startLexicalEnvironment();\n var statements = [];\n var ensureUseStrict = ts.getStrictOptionValue(compilerOptions, \"alwaysStrict\") || (!compilerOptions.noImplicitUseStrict && ts.isExternalModule(currentSourceFile));\n var statementOffset = factory.copyPrologue(node.statements, statements, ensureUseStrict && !ts.isJsonSourceFile(node), topLevelVisitor);\n if (shouldEmitUnderscoreUnderscoreESModule()) {\n ts.append(statements, createUnderscoreUnderscoreESModule());\n }\n if (ts.length(currentModuleInfo.exportedNames)) {\n var chunkSize = 50;\n for (var i = 0; i < currentModuleInfo.exportedNames.length; i += chunkSize) {\n ts.append(statements, factory.createExpressionStatement(ts.reduceLeft(currentModuleInfo.exportedNames.slice(i, i + chunkSize), function (prev, nextId) { return factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), factory.createIdentifier(ts.idText(nextId))), prev); }, factory.createVoidZero())));\n }\n }\n ts.append(statements, ts.visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, ts.isStatement));\n ts.addRange(statements, ts.visitNodes(node.statements, topLevelVisitor, ts.isStatement, statementOffset));\n addExportEqualsIfNeeded(statements, /*emitAsReturn*/ false);\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n var updated = factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray(statements), node.statements));\n ts.addEmitHelpers(updated, context.readEmitHelpers());\n return updated;\n }\n /**\n * Transforms a SourceFile into an AMD module.\n *\n * @param node The SourceFile node.\n */\n function transformAMDModule(node) {\n var define = factory.createIdentifier(\"define\");\n var moduleName = ts.tryGetModuleNameFromFile(factory, node, host, compilerOptions);\n var jsonSourceFile = ts.isJsonSourceFile(node) && node;\n // An AMD define function has the following shape:\n //\n // define(id?, dependencies?, factory);\n //\n // This has the shape of the following:\n //\n // define(name, [\"module1\", \"module2\"], function (module1Alias) { ... }\n //\n // The location of the alias in the parameter list in the factory function needs to\n // match the position of the module name in the dependency list.\n //\n // To ensure this is true in cases of modules with no aliases, e.g.:\n //\n // import \"module\"\n //\n // or\n //\n // /// \n //\n // we need to add modules without alias names to the end of the dependencies list\n var _a = collectAsynchronousDependencies(node, /*includeNonAmdDependencies*/ true), aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;\n // Create an updated SourceFile:\n //\n // define(mofactory.updateSourceFile\", \"module2\"], function ...\n var updated = factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray([\n factory.createExpressionStatement(factory.createCallExpression(define, \n /*typeArguments*/ undefined, __spreadArray(__spreadArray([], (moduleName ? [moduleName] : []), true), [\n // Add the dependency array argument:\n //\n // [\"require\", \"exports\", module1\", \"module2\", ...]\n factory.createArrayLiteralExpression(jsonSourceFile ? ts.emptyArray : __spreadArray(__spreadArray([\n factory.createStringLiteral(\"require\"),\n factory.createStringLiteral(\"exports\")\n ], aliasedModuleNames, true), unaliasedModuleNames, true)),\n // Add the module body function argument:\n //\n // function (require, exports, module1, module2) ...\n jsonSourceFile ?\n jsonSourceFile.statements.length ? jsonSourceFile.statements[0].expression : factory.createObjectLiteralExpression() :\n factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, __spreadArray([\n factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, \"require\"),\n factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, \"exports\")\n ], importAliasNames, true), \n /*type*/ undefined, transformAsynchronousModuleBody(node))\n ], false)))\n ]), \n /*location*/ node.statements));\n ts.addEmitHelpers(updated, context.readEmitHelpers());\n return updated;\n }\n /**\n * Transforms a SourceFile into a UMD module.\n *\n * @param node The SourceFile node.\n */\n function transformUMDModule(node) {\n var _a = collectAsynchronousDependencies(node, /*includeNonAmdDependencies*/ false), aliasedModuleNames = _a.aliasedModuleNames, unaliasedModuleNames = _a.unaliasedModuleNames, importAliasNames = _a.importAliasNames;\n var moduleName = ts.tryGetModuleNameFromFile(factory, node, host, compilerOptions);\n var umdHeader = factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, \"factory\")], \n /*type*/ undefined, ts.setTextRange(factory.createBlock([\n factory.createIfStatement(factory.createLogicalAnd(factory.createTypeCheck(factory.createIdentifier(\"module\"), \"object\"), factory.createTypeCheck(factory.createPropertyAccessExpression(factory.createIdentifier(\"module\"), \"exports\"), \"object\")), factory.createBlock([\n factory.createVariableStatement(\n /*modifiers*/ undefined, [\n factory.createVariableDeclaration(\"v\", \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createCallExpression(factory.createIdentifier(\"factory\"), \n /*typeArguments*/ undefined, [\n factory.createIdentifier(\"require\"),\n factory.createIdentifier(\"exports\")\n ]))\n ]),\n ts.setEmitFlags(factory.createIfStatement(factory.createStrictInequality(factory.createIdentifier(\"v\"), factory.createIdentifier(\"undefined\")), factory.createExpressionStatement(factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier(\"module\"), \"exports\"), factory.createIdentifier(\"v\")))), 1 /* SingleLine */)\n ]), factory.createIfStatement(factory.createLogicalAnd(factory.createTypeCheck(factory.createIdentifier(\"define\"), \"function\"), factory.createPropertyAccessExpression(factory.createIdentifier(\"define\"), \"amd\")), factory.createBlock([\n factory.createExpressionStatement(factory.createCallExpression(factory.createIdentifier(\"define\"), \n /*typeArguments*/ undefined, __spreadArray(__spreadArray([], (moduleName ? [moduleName] : []), true), [\n factory.createArrayLiteralExpression(__spreadArray(__spreadArray([\n factory.createStringLiteral(\"require\"),\n factory.createStringLiteral(\"exports\")\n ], aliasedModuleNames, true), unaliasedModuleNames, true)),\n factory.createIdentifier(\"factory\")\n ], false)))\n ])))\n ], \n /*multiLine*/ true), \n /*location*/ undefined));\n // Create an updated SourceFile:\n //\n // (function (factory) {\n // if (typeof module === \"object\" && typeof module.exports === \"object\") {\n // var v = factory(require, exports);\n // if (v !== undefined) module.exports = v;\n // }\n // else if (typeof define === 'function' && define.amd) {\n // define([\"require\", \"exports\"], factory);\n // }\n // })(function ...)\n var updated = factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray([\n factory.createExpressionStatement(factory.createCallExpression(umdHeader, \n /*typeArguments*/ undefined, [\n // Add the module body function argument:\n //\n // function (require, exports) ...\n factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, __spreadArray([\n factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, \"require\"),\n factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, \"exports\")\n ], importAliasNames, true), \n /*type*/ undefined, transformAsynchronousModuleBody(node))\n ]))\n ]), \n /*location*/ node.statements));\n ts.addEmitHelpers(updated, context.readEmitHelpers());\n return updated;\n }\n /**\n * Collect the additional asynchronous dependencies for the module.\n *\n * @param node The source file.\n * @param includeNonAmdDependencies A value indicating whether to include non-AMD dependencies.\n */\n function collectAsynchronousDependencies(node, includeNonAmdDependencies) {\n // names of modules with corresponding parameter in the factory function\n var aliasedModuleNames = [];\n // names of modules with no corresponding parameters in factory function\n var unaliasedModuleNames = [];\n // names of the parameters in the factory function; these\n // parameters need to match the indexes of the corresponding\n // module names in aliasedModuleNames.\n var importAliasNames = [];\n // Fill in amd-dependency tags\n for (var _i = 0, _a = node.amdDependencies; _i < _a.length; _i++) {\n var amdDependency = _a[_i];\n if (amdDependency.name) {\n aliasedModuleNames.push(factory.createStringLiteral(amdDependency.path));\n importAliasNames.push(factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, amdDependency.name));\n }\n else {\n unaliasedModuleNames.push(factory.createStringLiteral(amdDependency.path));\n }\n }\n for (var _b = 0, _c = currentModuleInfo.externalImports; _b < _c.length; _b++) {\n var importNode = _c[_b];\n // Find the name of the external module\n var externalModuleName = ts.getExternalModuleNameLiteral(factory, importNode, currentSourceFile, host, resolver, compilerOptions);\n // Find the name of the module alias, if there is one\n var importAliasName = ts.getLocalNameForExternalImport(factory, importNode, currentSourceFile);\n // It is possible that externalModuleName is undefined if it is not string literal.\n // This can happen in the invalid import syntax.\n // E.g : \"import * from alias from 'someLib';\"\n if (externalModuleName) {\n if (includeNonAmdDependencies && importAliasName) {\n // Set emitFlags on the name of the classDeclaration\n // This is so that when printer will not substitute the identifier\n ts.setEmitFlags(importAliasName, 4 /* NoSubstitution */);\n aliasedModuleNames.push(externalModuleName);\n importAliasNames.push(factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, importAliasName));\n }\n else {\n unaliasedModuleNames.push(externalModuleName);\n }\n }\n }\n return { aliasedModuleNames: aliasedModuleNames, unaliasedModuleNames: unaliasedModuleNames, importAliasNames: importAliasNames };\n }\n function getAMDImportExpressionForImport(node) {\n if (ts.isImportEqualsDeclaration(node) || ts.isExportDeclaration(node) || !ts.getExternalModuleNameLiteral(factory, node, currentSourceFile, host, resolver, compilerOptions)) {\n return undefined;\n }\n var name = ts.getLocalNameForExternalImport(factory, node, currentSourceFile); // TODO: GH#18217\n var expr = getHelperExpressionForImport(node, name);\n if (expr === name) {\n return undefined;\n }\n return factory.createExpressionStatement(factory.createAssignment(name, expr));\n }\n /**\n * Transforms a SourceFile into an AMD or UMD module body.\n *\n * @param node The SourceFile node.\n */\n function transformAsynchronousModuleBody(node) {\n startLexicalEnvironment();\n var statements = [];\n var statementOffset = factory.copyPrologue(node.statements, statements, /*ensureUseStrict*/ !compilerOptions.noImplicitUseStrict, topLevelVisitor);\n if (shouldEmitUnderscoreUnderscoreESModule()) {\n ts.append(statements, createUnderscoreUnderscoreESModule());\n }\n if (ts.length(currentModuleInfo.exportedNames)) {\n ts.append(statements, factory.createExpressionStatement(ts.reduceLeft(currentModuleInfo.exportedNames, function (prev, nextId) { return factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), factory.createIdentifier(ts.idText(nextId))), prev); }, factory.createVoidZero())));\n }\n // Visit each statement of the module body.\n ts.append(statements, ts.visitNode(currentModuleInfo.externalHelpersImportDeclaration, topLevelVisitor, ts.isStatement));\n if (moduleKind === ts.ModuleKind.AMD) {\n ts.addRange(statements, ts.mapDefined(currentModuleInfo.externalImports, getAMDImportExpressionForImport));\n }\n ts.addRange(statements, ts.visitNodes(node.statements, topLevelVisitor, ts.isStatement, statementOffset));\n // Append the 'export =' statement if provided.\n addExportEqualsIfNeeded(statements, /*emitAsReturn*/ true);\n // End the lexical environment for the module body\n // and merge any new lexical declarations.\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n var body = factory.createBlock(statements, /*multiLine*/ true);\n if (needUMDDynamicImportHelper) {\n ts.addEmitHelper(body, dynamicImportUMDHelper);\n }\n return body;\n }\n /**\n * Adds the down-level representation of `export=` to the statement list if one exists\n * in the source file.\n *\n * @param statements The Statement list to modify.\n * @param emitAsReturn A value indicating whether to emit the `export=` statement as a\n * return statement.\n */\n function addExportEqualsIfNeeded(statements, emitAsReturn) {\n if (currentModuleInfo.exportEquals) {\n var expressionResult = ts.visitNode(currentModuleInfo.exportEquals.expression, visitor);\n if (expressionResult) {\n if (emitAsReturn) {\n var statement = factory.createReturnStatement(expressionResult);\n ts.setTextRange(statement, currentModuleInfo.exportEquals);\n ts.setEmitFlags(statement, 384 /* NoTokenSourceMaps */ | 1536 /* NoComments */);\n statements.push(statement);\n }\n else {\n var statement = factory.createExpressionStatement(factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier(\"module\"), \"exports\"), expressionResult));\n ts.setTextRange(statement, currentModuleInfo.exportEquals);\n ts.setEmitFlags(statement, 1536 /* NoComments */);\n statements.push(statement);\n }\n }\n }\n }\n //\n // Top-Level Source Element Visitors\n //\n /**\n * Visits a node at the top level of the source file.\n *\n * @param node The node to visit.\n */\n function topLevelVisitor(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return visitImportDeclaration(node);\n case 263 /* ImportEqualsDeclaration */:\n return visitImportEqualsDeclaration(node);\n case 270 /* ExportDeclaration */:\n return visitExportDeclaration(node);\n case 269 /* ExportAssignment */:\n return visitExportAssignment(node);\n case 235 /* VariableStatement */:\n return visitVariableStatement(node);\n case 254 /* FunctionDeclaration */:\n return visitFunctionDeclaration(node);\n case 255 /* ClassDeclaration */:\n return visitClassDeclaration(node);\n case 347 /* MergeDeclarationMarker */:\n return visitMergeDeclarationMarker(node);\n case 348 /* EndOfDeclarationMarker */:\n return visitEndOfDeclarationMarker(node);\n default:\n return visitor(node);\n }\n }\n function visitorWorker(node, valueIsDiscarded) {\n // This visitor does not need to descend into the tree if there is no dynamic import, destructuring assignment, or update expression\n // as export/import statements are only transformed at the top level of a file.\n if (!(node.transformFlags & (4194304 /* ContainsDynamicImport */ | 2048 /* ContainsDestructuringAssignment */ | 67108864 /* ContainsUpdateExpressionForIdentifier */))) {\n return node;\n }\n switch (node.kind) {\n case 240 /* ForStatement */:\n return visitForStatement(node);\n case 236 /* ExpressionStatement */:\n return visitExpressionStatement(node);\n case 210 /* ParenthesizedExpression */:\n return visitParenthesizedExpression(node, valueIsDiscarded);\n case 345 /* PartiallyEmittedExpression */:\n return visitPartiallyEmittedExpression(node, valueIsDiscarded);\n case 206 /* CallExpression */:\n if (ts.isImportCall(node)) {\n return visitImportCallExpression(node);\n }\n break;\n case 219 /* BinaryExpression */:\n if (ts.isDestructuringAssignment(node)) {\n return visitDestructuringAssignment(node, valueIsDiscarded);\n }\n break;\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n return visitPreOrPostfixUnaryExpression(node, valueIsDiscarded);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitor(node) {\n return visitorWorker(node, /*valueIsDiscarded*/ false);\n }\n function discardedValueVisitor(node) {\n return visitorWorker(node, /*valueIsDiscarded*/ true);\n }\n function destructuringNeedsFlattening(node) {\n if (ts.isObjectLiteralExpression(node)) {\n for (var _i = 0, _a = node.properties; _i < _a.length; _i++) {\n var elem = _a[_i];\n switch (elem.kind) {\n case 291 /* PropertyAssignment */:\n if (destructuringNeedsFlattening(elem.initializer)) {\n return true;\n }\n break;\n case 292 /* ShorthandPropertyAssignment */:\n if (destructuringNeedsFlattening(elem.name)) {\n return true;\n }\n break;\n case 293 /* SpreadAssignment */:\n if (destructuringNeedsFlattening(elem.expression)) {\n return true;\n }\n break;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return false;\n default: ts.Debug.assertNever(elem, \"Unhandled object member kind\");\n }\n }\n }\n else if (ts.isArrayLiteralExpression(node)) {\n for (var _b = 0, _c = node.elements; _b < _c.length; _b++) {\n var elem = _c[_b];\n if (ts.isSpreadElement(elem)) {\n if (destructuringNeedsFlattening(elem.expression)) {\n return true;\n }\n }\n else if (destructuringNeedsFlattening(elem)) {\n return true;\n }\n }\n }\n else if (ts.isIdentifier(node)) {\n return ts.length(getExports(node)) > (ts.isExportName(node) ? 1 : 0);\n }\n return false;\n }\n function visitDestructuringAssignment(node, valueIsDiscarded) {\n if (destructuringNeedsFlattening(node.left)) {\n return ts.flattenDestructuringAssignment(node, visitor, context, 0 /* All */, !valueIsDiscarded, createAllExportExpressions);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitForStatement(node) {\n return factory.updateForStatement(node, ts.visitNode(node.initializer, discardedValueVisitor, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, discardedValueVisitor, ts.isExpression), ts.visitIterationBody(node.statement, visitor, context));\n }\n function visitExpressionStatement(node) {\n return factory.updateExpressionStatement(node, ts.visitNode(node.expression, discardedValueVisitor, ts.isExpression));\n }\n function visitParenthesizedExpression(node, valueIsDiscarded) {\n return factory.updateParenthesizedExpression(node, ts.visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, ts.isExpression));\n }\n function visitPartiallyEmittedExpression(node, valueIsDiscarded) {\n return factory.updatePartiallyEmittedExpression(node, ts.visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, ts.isExpression));\n }\n function visitPreOrPostfixUnaryExpression(node, valueIsDiscarded) {\n // When we see a prefix or postfix increment expression whose operand is an exported\n // symbol, we should ensure all exports of that symbol are updated with the correct\n // value.\n //\n // - We do not transform generated identifiers for any reason.\n // - We do not transform identifiers tagged with the LocalName flag.\n // - We do not transform identifiers that were originally the name of an enum or\n // namespace due to how they are transformed in TypeScript.\n // - We only transform identifiers that are exported at the top level.\n if ((node.operator === 45 /* PlusPlusToken */ || node.operator === 46 /* MinusMinusToken */)\n && ts.isIdentifier(node.operand)\n && !ts.isGeneratedIdentifier(node.operand)\n && !ts.isLocalName(node.operand)\n && !ts.isDeclarationNameOfEnumOrNamespace(node.operand)) {\n var exportedNames = getExports(node.operand);\n if (exportedNames) {\n var temp = void 0;\n var expression = ts.visitNode(node.operand, visitor, ts.isExpression);\n if (ts.isPrefixUnaryExpression(node)) {\n expression = factory.updatePrefixUnaryExpression(node, expression);\n }\n else {\n expression = factory.updatePostfixUnaryExpression(node, expression);\n if (!valueIsDiscarded) {\n temp = factory.createTempVariable(hoistVariableDeclaration);\n expression = factory.createAssignment(temp, expression);\n ts.setTextRange(expression, node);\n }\n expression = factory.createComma(expression, factory.cloneNode(node.operand));\n ts.setTextRange(expression, node);\n }\n for (var _i = 0, exportedNames_1 = exportedNames; _i < exportedNames_1.length; _i++) {\n var exportName = exportedNames_1[_i];\n noSubstitution[ts.getNodeId(expression)] = true;\n expression = createExportExpression(exportName, expression);\n ts.setTextRange(expression, node);\n }\n if (temp) {\n noSubstitution[ts.getNodeId(expression)] = true;\n expression = factory.createComma(expression, temp);\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n function visitImportCallExpression(node) {\n var externalModuleName = ts.getExternalModuleNameLiteral(factory, node, currentSourceFile, host, resolver, compilerOptions);\n var firstArgument = ts.visitNode(ts.firstOrUndefined(node.arguments), visitor);\n // Only use the external module name if it differs from the first argument. This allows us to preserve the quote style of the argument on output.\n var argument = externalModuleName && (!firstArgument || !ts.isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument;\n var containsLexicalThis = !!(node.transformFlags & 8192 /* ContainsLexicalThis */);\n switch (compilerOptions.module) {\n case ts.ModuleKind.AMD:\n return createImportCallExpressionAMD(argument, containsLexicalThis);\n case ts.ModuleKind.UMD:\n return createImportCallExpressionUMD(argument !== null && argument !== void 0 ? argument : factory.createVoidZero(), containsLexicalThis);\n case ts.ModuleKind.CommonJS:\n default:\n return createImportCallExpressionCommonJS(argument, containsLexicalThis);\n }\n }\n function createImportCallExpressionUMD(arg, containsLexicalThis) {\n // (function (factory) {\n // ... (regular UMD)\n // }\n // })(function (require, exports, useSyncRequire) {\n // \"use strict\";\n // Object.defineProperty(exports, \"__esModule\", { value: true });\n // var __syncRequire = typeof module === \"object\" && typeof module.exports === \"object\";\n // var __resolved = new Promise(function (resolve) { resolve(); });\n // .....\n // __syncRequire\n // ? __resolved.then(function () { return require(x); }) /*CommonJs Require*/\n // : new Promise(function (_a, _b) { require([x], _a, _b); }); /*Amd Require*/\n // });\n needUMDDynamicImportHelper = true;\n if (ts.isSimpleCopiableExpression(arg)) {\n var argClone = ts.isGeneratedIdentifier(arg) ? arg : ts.isStringLiteral(arg) ? factory.createStringLiteralFromNode(arg) : ts.setEmitFlags(ts.setTextRange(factory.cloneNode(arg), arg), 1536 /* NoComments */);\n return factory.createConditionalExpression(\n /*condition*/ factory.createIdentifier(\"__syncRequire\"), \n /*questionToken*/ undefined, \n /*whenTrue*/ createImportCallExpressionCommonJS(arg, containsLexicalThis), \n /*colonToken*/ undefined, \n /*whenFalse*/ createImportCallExpressionAMD(argClone, containsLexicalThis));\n }\n else {\n var temp = factory.createTempVariable(hoistVariableDeclaration);\n return factory.createComma(factory.createAssignment(temp, arg), factory.createConditionalExpression(\n /*condition*/ factory.createIdentifier(\"__syncRequire\"), \n /*questionToken*/ undefined, \n /*whenTrue*/ createImportCallExpressionCommonJS(temp, containsLexicalThis), \n /*colonToken*/ undefined, \n /*whenFalse*/ createImportCallExpressionAMD(temp, containsLexicalThis)));\n }\n }\n function createImportCallExpressionAMD(arg, containsLexicalThis) {\n // improt(\"./blah\")\n // emit as\n // define([\"require\", \"exports\", \"blah\"], function (require, exports) {\n // ...\n // new Promise(function (_a, _b) { require([x], _a, _b); }); /*Amd Require*/\n // });\n var resolve = factory.createUniqueName(\"resolve\");\n var reject = factory.createUniqueName(\"reject\");\n var parameters = [\n factory.createParameterDeclaration(/*decorator*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, /*name*/ resolve),\n factory.createParameterDeclaration(/*decorator*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, /*name*/ reject)\n ];\n var body = factory.createBlock([\n factory.createExpressionStatement(factory.createCallExpression(factory.createIdentifier(\"require\"), \n /*typeArguments*/ undefined, [factory.createArrayLiteralExpression([arg || factory.createOmittedExpression()]), resolve, reject]))\n ]);\n var func;\n if (languageVersion >= 2 /* ES2015 */) {\n func = factory.createArrowFunction(\n /*modifiers*/ undefined, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, \n /*equalsGreaterThanToken*/ undefined, body);\n }\n else {\n func = factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, parameters, \n /*type*/ undefined, body);\n // if there is a lexical 'this' in the import call arguments, ensure we indicate\n // that this new function expression indicates it captures 'this' so that the\n // es2015 transformer will properly substitute 'this' with '_this'.\n if (containsLexicalThis) {\n ts.setEmitFlags(func, 8 /* CapturesThis */);\n }\n }\n var promise = factory.createNewExpression(factory.createIdentifier(\"Promise\"), /*typeArguments*/ undefined, [func]);\n if (compilerOptions.esModuleInterop) {\n return factory.createCallExpression(factory.createPropertyAccessExpression(promise, factory.createIdentifier(\"then\")), /*typeArguments*/ undefined, [emitHelpers().createImportStarCallbackHelper()]);\n }\n return promise;\n }\n function createImportCallExpressionCommonJS(arg, containsLexicalThis) {\n // import(\"./blah\")\n // emit as\n // Promise.resolve().then(function () { return require(x); }) /*CommonJs Require*/\n // We have to wrap require in then callback so that require is done in asynchronously\n // if we simply do require in resolve callback in Promise constructor. We will execute the loading immediately\n var promiseResolveCall = factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Promise\"), \"resolve\"), /*typeArguments*/ undefined, /*argumentsArray*/ []);\n var requireCall = factory.createCallExpression(factory.createIdentifier(\"require\"), /*typeArguments*/ undefined, arg ? [arg] : []);\n if (compilerOptions.esModuleInterop) {\n requireCall = emitHelpers().createImportStarHelper(requireCall);\n }\n var func;\n if (languageVersion >= 2 /* ES2015 */) {\n func = factory.createArrowFunction(\n /*modifiers*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ [], \n /*type*/ undefined, \n /*equalsGreaterThanToken*/ undefined, requireCall);\n }\n else {\n func = factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ [], \n /*type*/ undefined, factory.createBlock([factory.createReturnStatement(requireCall)]));\n // if there is a lexical 'this' in the import call arguments, ensure we indicate\n // that this new function expression indicates it captures 'this' so that the\n // es2015 transformer will properly substitute 'this' with '_this'.\n if (containsLexicalThis) {\n ts.setEmitFlags(func, 8 /* CapturesThis */);\n }\n }\n return factory.createCallExpression(factory.createPropertyAccessExpression(promiseResolveCall, \"then\"), /*typeArguments*/ undefined, [func]);\n }\n function getHelperExpressionForExport(node, innerExpr) {\n if (!compilerOptions.esModuleInterop || ts.getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) {\n return innerExpr;\n }\n if (ts.getExportNeedsImportStarHelper(node)) {\n return emitHelpers().createImportStarHelper(innerExpr);\n }\n return innerExpr;\n }\n function getHelperExpressionForImport(node, innerExpr) {\n if (!compilerOptions.esModuleInterop || ts.getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) {\n return innerExpr;\n }\n if (ts.getImportNeedsImportStarHelper(node)) {\n return emitHelpers().createImportStarHelper(innerExpr);\n }\n if (ts.getImportNeedsImportDefaultHelper(node)) {\n return emitHelpers().createImportDefaultHelper(innerExpr);\n }\n return innerExpr;\n }\n /**\n * Visits an ImportDeclaration node.\n *\n * @param node The node to visit.\n */\n function visitImportDeclaration(node) {\n var statements;\n var namespaceDeclaration = ts.getNamespaceDeclarationNode(node);\n if (moduleKind !== ts.ModuleKind.AMD) {\n if (!node.importClause) {\n // import \"mod\";\n return ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createRequireCall(node)), node), node);\n }\n else {\n var variables = [];\n if (namespaceDeclaration && !ts.isDefaultImport(node)) {\n // import * as n from \"mod\";\n variables.push(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, getHelperExpressionForImport(node, createRequireCall(node))));\n }\n else {\n // import d from \"mod\";\n // import { x, y } from \"mod\";\n // import d, { x, y } from \"mod\";\n // import d, * as n from \"mod\";\n variables.push(factory.createVariableDeclaration(factory.getGeneratedNameForNode(node), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, getHelperExpressionForImport(node, createRequireCall(node))));\n if (namespaceDeclaration && ts.isDefaultImport(node)) {\n variables.push(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.getGeneratedNameForNode(node)));\n }\n }\n statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(variables, languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */)), \n /*location*/ node), \n /*original*/ node));\n }\n }\n else if (namespaceDeclaration && ts.isDefaultImport(node)) {\n // import d, * as n from \"mod\";\n statements = ts.append(statements, factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n ts.setOriginalNode(ts.setTextRange(factory.createVariableDeclaration(factory.cloneNode(namespaceDeclaration.name), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.getGeneratedNameForNode(node)), \n /*location*/ node), \n /*original*/ node)\n ], languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */)));\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfImportDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfImportDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Creates a `require()` call to import an external module.\n *\n * @param importNode The declararation to import.\n */\n function createRequireCall(importNode) {\n var moduleName = ts.getExternalModuleNameLiteral(factory, importNode, currentSourceFile, host, resolver, compilerOptions);\n var args = [];\n if (moduleName) {\n args.push(moduleName);\n }\n return factory.createCallExpression(factory.createIdentifier(\"require\"), /*typeArguments*/ undefined, args);\n }\n /**\n * Visits an ImportEqualsDeclaration node.\n *\n * @param node The node to visit.\n */\n function visitImportEqualsDeclaration(node) {\n ts.Debug.assert(ts.isExternalModuleImportEqualsDeclaration(node), \"import= for internal module references should be handled in an earlier transformer.\");\n var statements;\n if (moduleKind !== ts.ModuleKind.AMD) {\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(node.name, createRequireCall(node))), node), node));\n }\n else {\n statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(factory.cloneNode(node.name), \n /*exclamationToken*/ undefined, \n /*type*/ undefined, createRequireCall(node))\n ], \n /*flags*/ languageVersion >= 2 /* ES2015 */ ? 2 /* Const */ : 0 /* None */)), node), node));\n }\n }\n else {\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.getExportName(node), factory.getLocalName(node))), node), node));\n }\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfImportEqualsDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfImportEqualsDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits an ExportDeclaration node.\n *\n * @param The node to visit.\n */\n function visitExportDeclaration(node) {\n if (!node.moduleSpecifier) {\n // Elide export declarations with no module specifier as they are handled\n // elsewhere.\n return undefined;\n }\n var generatedName = factory.getGeneratedNameForNode(node);\n if (node.exportClause && ts.isNamedExports(node.exportClause)) {\n var statements = [];\n // export { x, y } from \"mod\";\n if (moduleKind !== ts.ModuleKind.AMD) {\n statements.push(ts.setOriginalNode(ts.setTextRange(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(generatedName, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, createRequireCall(node))\n ])), \n /*location*/ node), \n /* original */ node));\n }\n for (var _i = 0, _a = node.exportClause.elements; _i < _a.length; _i++) {\n var specifier = _a[_i];\n if (languageVersion === 0 /* ES3 */) {\n statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(emitHelpers().createCreateBindingHelper(generatedName, factory.createStringLiteralFromNode(specifier.propertyName || specifier.name), specifier.propertyName ? factory.createStringLiteralFromNode(specifier.name) : undefined)), specifier), specifier));\n }\n else {\n var exportNeedsImportDefault = !!compilerOptions.esModuleInterop &&\n !(ts.getEmitFlags(node) & 67108864 /* NeverApplyImportHelper */) &&\n ts.idText(specifier.propertyName || specifier.name) === \"default\";\n var exportedValue = factory.createPropertyAccessExpression(exportNeedsImportDefault ? emitHelpers().createImportDefaultHelper(generatedName) : generatedName, specifier.propertyName || specifier.name);\n statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.getExportName(specifier), exportedValue, /* location */ undefined, /* liveBinding */ true)), specifier), specifier));\n }\n }\n return ts.singleOrMany(statements);\n }\n else if (node.exportClause) {\n var statements = [];\n // export * as ns from \"mod\";\n // export * as default from \"mod\";\n statements.push(ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(createExportExpression(factory.cloneNode(node.exportClause.name), getHelperExpressionForExport(node, moduleKind !== ts.ModuleKind.AMD ?\n createRequireCall(node) :\n ts.isExportNamespaceAsDefaultDeclaration(node) ? generatedName :\n factory.createIdentifier(ts.idText(node.exportClause.name))))), node), node));\n return ts.singleOrMany(statements);\n }\n else {\n // export * from \"mod\";\n return ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(emitHelpers().createExportStarHelper(moduleKind !== ts.ModuleKind.AMD ? createRequireCall(node) : generatedName)), node), node);\n }\n }\n /**\n * Visits an ExportAssignment node.\n *\n * @param node The node to visit.\n */\n function visitExportAssignment(node) {\n if (node.isExportEquals) {\n return undefined;\n }\n var statements;\n var original = node.original;\n if (original && hasAssociatedEndOfDeclarationMarker(original)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportStatement(deferredExports[id], factory.createIdentifier(\"default\"), ts.visitNode(node.expression, visitor), /*location*/ node, /*allowComments*/ true);\n }\n else {\n statements = appendExportStatement(statements, factory.createIdentifier(\"default\"), ts.visitNode(node.expression, visitor), /*location*/ node, /*allowComments*/ true);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits a FunctionDeclaration node.\n *\n * @param node The node to visit.\n */\n function visitFunctionDeclaration(node) {\n var statements;\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createFunctionDeclaration(\n /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, factory.getDeclarationName(node, /*allowComments*/ true, /*allowSourceMaps*/ true), \n /*typeParameters*/ undefined, ts.visitNodes(node.parameters, visitor), \n /*type*/ undefined, ts.visitEachChild(node.body, visitor, context)), \n /*location*/ node), \n /*original*/ node));\n }\n else {\n statements = ts.append(statements, ts.visitEachChild(node, visitor, context));\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfHoistedDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits a ClassDeclaration node.\n *\n * @param node The node to visit.\n */\n function visitClassDeclaration(node) {\n var statements;\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n statements = ts.append(statements, ts.setOriginalNode(ts.setTextRange(factory.createClassDeclaration(\n /*decorators*/ undefined, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), factory.getDeclarationName(node, /*allowComments*/ true, /*allowSourceMaps*/ true), \n /*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, visitor), ts.visitNodes(node.members, visitor)), node), node));\n }\n else {\n statements = ts.append(statements, ts.visitEachChild(node, visitor, context));\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfHoistedDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits a VariableStatement node.\n *\n * @param node The node to visit.\n */\n function visitVariableStatement(node) {\n var statements;\n var variables;\n var expressions;\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n var modifiers = void 0;\n var removeCommentsOnExpressions = false;\n // If we're exporting these variables, then these just become assignments to 'exports.x'.\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n if (ts.isIdentifier(variable.name) && ts.isLocalName(variable.name)) {\n if (!modifiers) {\n modifiers = ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier);\n }\n variables = ts.append(variables, variable);\n }\n else if (variable.initializer) {\n if (!ts.isBindingPattern(variable.name) && (ts.isArrowFunction(variable.initializer) || ts.isFunctionExpression(variable.initializer) || ts.isClassExpression(variable.initializer))) {\n var expression = factory.createAssignment(ts.setTextRange(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), variable.name), \n /*location*/ variable.name), factory.createIdentifier(ts.getTextOfIdentifierOrLiteral(variable.name)));\n var updatedVariable = factory.createVariableDeclaration(variable.name, variable.exclamationToken, variable.type, ts.visitNode(variable.initializer, visitor));\n variables = ts.append(variables, updatedVariable);\n expressions = ts.append(expressions, expression);\n removeCommentsOnExpressions = true;\n }\n else {\n expressions = ts.append(expressions, transformInitializedVariable(variable));\n }\n }\n }\n if (variables) {\n statements = ts.append(statements, factory.updateVariableStatement(node, modifiers, factory.updateVariableDeclarationList(node.declarationList, variables)));\n }\n if (expressions) {\n var statement = ts.setOriginalNode(ts.setTextRange(factory.createExpressionStatement(factory.inlineExpressions(expressions)), node), node);\n if (removeCommentsOnExpressions) {\n ts.removeAllComments(statement);\n }\n statements = ts.append(statements, statement);\n }\n }\n else {\n statements = ts.append(statements, ts.visitEachChild(node, visitor, context));\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfVariableStatement(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n function createAllExportExpressions(name, value, location) {\n var exportedNames = getExports(name);\n if (exportedNames) {\n // For each additional export of the declaration, apply an export assignment.\n var expression = ts.isExportName(name) ? value : factory.createAssignment(name, value);\n for (var _i = 0, exportedNames_2 = exportedNames; _i < exportedNames_2.length; _i++) {\n var exportName = exportedNames_2[_i];\n // Mark the node to prevent triggering substitution.\n ts.setEmitFlags(expression, 4 /* NoSubstitution */);\n expression = createExportExpression(exportName, expression, /*location*/ location);\n }\n return expression;\n }\n return factory.createAssignment(name, value);\n }\n /**\n * Transforms an exported variable with an initializer into an expression.\n *\n * @param node The node to transform.\n */\n function transformInitializedVariable(node) {\n if (ts.isBindingPattern(node.name)) {\n return ts.flattenDestructuringAssignment(ts.visitNode(node, visitor), \n /*visitor*/ undefined, context, 0 /* All */, \n /*needsValue*/ false, createAllExportExpressions);\n }\n else {\n return factory.createAssignment(ts.setTextRange(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), node.name), \n /*location*/ node.name), node.initializer ? ts.visitNode(node.initializer, visitor) : factory.createVoidZero());\n }\n }\n /**\n * Visits a MergeDeclarationMarker used as a placeholder for the beginning of a merged\n * and transformed declaration.\n *\n * @param node The node to visit.\n */\n function visitMergeDeclarationMarker(node) {\n // For an EnumDeclaration or ModuleDeclaration that merges with a preceeding\n // declaration we do not emit a leading variable declaration. To preserve the\n // begin/end semantics of the declararation and to properly handle exports\n // we wrapped the leading variable declaration in a `MergeDeclarationMarker`.\n //\n // To balance the declaration, add the exports of the elided variable\n // statement.\n if (hasAssociatedEndOfDeclarationMarker(node) && node.original.kind === 235 /* VariableStatement */) {\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node.original);\n }\n return node;\n }\n /**\n * Determines whether a node has an associated EndOfDeclarationMarker.\n *\n * @param node The node to test.\n */\n function hasAssociatedEndOfDeclarationMarker(node) {\n return (ts.getEmitFlags(node) & 4194304 /* HasEndOfDeclarationMarker */) !== 0;\n }\n /**\n * Visits a DeclarationMarker used as a placeholder for the end of a transformed\n * declaration.\n *\n * @param node The node to visit.\n */\n function visitEndOfDeclarationMarker(node) {\n // For some transformations we emit an `EndOfDeclarationMarker` to mark the actual\n // end of the transformed declaration. We use this marker to emit any deferred exports\n // of the declaration.\n var id = ts.getOriginalNodeId(node);\n var statements = deferredExports[id];\n if (statements) {\n delete deferredExports[id];\n return ts.append(statements, node);\n }\n return node;\n }\n /**\n * Appends the exports of an ImportDeclaration to a statement list, returning the\n * statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfImportDeclaration(statements, decl) {\n if (currentModuleInfo.exportEquals) {\n return statements;\n }\n var importClause = decl.importClause;\n if (!importClause) {\n return statements;\n }\n if (importClause.name) {\n statements = appendExportsOfDeclaration(statements, importClause);\n }\n var namedBindings = importClause.namedBindings;\n if (namedBindings) {\n switch (namedBindings.kind) {\n case 266 /* NamespaceImport */:\n statements = appendExportsOfDeclaration(statements, namedBindings);\n break;\n case 267 /* NamedImports */:\n for (var _i = 0, _a = namedBindings.elements; _i < _a.length; _i++) {\n var importBinding = _a[_i];\n statements = appendExportsOfDeclaration(statements, importBinding, /* liveBinding */ true);\n }\n break;\n }\n }\n return statements;\n }\n /**\n * Appends the exports of an ImportEqualsDeclaration to a statement list, returning the\n * statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfImportEqualsDeclaration(statements, decl) {\n if (currentModuleInfo.exportEquals) {\n return statements;\n }\n return appendExportsOfDeclaration(statements, decl);\n }\n /**\n * Appends the exports of a VariableStatement to a statement list, returning the statement\n * list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param node The VariableStatement whose exports are to be recorded.\n */\n function appendExportsOfVariableStatement(statements, node) {\n if (currentModuleInfo.exportEquals) {\n return statements;\n }\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n statements = appendExportsOfBindingElement(statements, decl);\n }\n return statements;\n }\n /**\n * Appends the exports of a VariableDeclaration or BindingElement to a statement list,\n * returning the statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfBindingElement(statements, decl) {\n if (currentModuleInfo.exportEquals) {\n return statements;\n }\n if (ts.isBindingPattern(decl.name)) {\n for (var _i = 0, _a = decl.name.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n statements = appendExportsOfBindingElement(statements, element);\n }\n }\n }\n else if (!ts.isGeneratedIdentifier(decl.name)) {\n statements = appendExportsOfDeclaration(statements, decl);\n }\n return statements;\n }\n /**\n * Appends the exports of a ClassDeclaration or FunctionDeclaration to a statement list,\n * returning the statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfHoistedDeclaration(statements, decl) {\n if (currentModuleInfo.exportEquals) {\n return statements;\n }\n if (ts.hasSyntacticModifier(decl, 1 /* Export */)) {\n var exportName = ts.hasSyntacticModifier(decl, 512 /* Default */) ? factory.createIdentifier(\"default\") : factory.getDeclarationName(decl);\n statements = appendExportStatement(statements, exportName, factory.getLocalName(decl), /*location*/ decl);\n }\n if (decl.name) {\n statements = appendExportsOfDeclaration(statements, decl);\n }\n return statements;\n }\n /**\n * Appends the exports of a declaration to a statement list, returning the statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration to export.\n */\n function appendExportsOfDeclaration(statements, decl, liveBinding) {\n var name = factory.getDeclarationName(decl);\n var exportSpecifiers = currentModuleInfo.exportSpecifiers.get(ts.idText(name));\n if (exportSpecifiers) {\n for (var _i = 0, exportSpecifiers_1 = exportSpecifiers; _i < exportSpecifiers_1.length; _i++) {\n var exportSpecifier = exportSpecifiers_1[_i];\n statements = appendExportStatement(statements, exportSpecifier.name, name, /*location*/ exportSpecifier.name, /* allowComments */ undefined, liveBinding);\n }\n }\n return statements;\n }\n /**\n * Appends the down-level representation of an export to a statement list, returning the\n * statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param exportName The name of the export.\n * @param expression The expression to export.\n * @param location The location to use for source maps and comments for the export.\n * @param allowComments Whether to allow comments on the export.\n */\n function appendExportStatement(statements, exportName, expression, location, allowComments, liveBinding) {\n statements = ts.append(statements, createExportStatement(exportName, expression, location, allowComments, liveBinding));\n return statements;\n }\n function createUnderscoreUnderscoreESModule() {\n var statement;\n if (languageVersion === 0 /* ES3 */) {\n statement = factory.createExpressionStatement(createExportExpression(factory.createIdentifier(\"__esModule\"), factory.createTrue()));\n }\n else {\n statement = factory.createExpressionStatement(factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Object\"), \"defineProperty\"), \n /*typeArguments*/ undefined, [\n factory.createIdentifier(\"exports\"),\n factory.createStringLiteral(\"__esModule\"),\n factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"value\", factory.createTrue())\n ])\n ]));\n }\n ts.setEmitFlags(statement, 1048576 /* CustomPrologue */);\n return statement;\n }\n /**\n * Creates a call to the current file's export function to export a value.\n *\n * @param name The bound name of the export.\n * @param value The exported value.\n * @param location The location to use for source maps and comments for the export.\n * @param allowComments An optional value indicating whether to emit comments for the statement.\n */\n function createExportStatement(name, value, location, allowComments, liveBinding) {\n var statement = ts.setTextRange(factory.createExpressionStatement(createExportExpression(name, value, /* location */ undefined, liveBinding)), location);\n ts.startOnNewLine(statement);\n if (!allowComments) {\n ts.setEmitFlags(statement, 1536 /* NoComments */);\n }\n return statement;\n }\n /**\n * Creates a call to the current file's export function to export a value.\n *\n * @param name The bound name of the export.\n * @param value The exported value.\n * @param location The location to use for source maps and comments for the export.\n */\n function createExportExpression(name, value, location, liveBinding) {\n return ts.setTextRange(liveBinding && languageVersion !== 0 /* ES3 */ ? factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"Object\"), \"defineProperty\"), \n /*typeArguments*/ undefined, [\n factory.createIdentifier(\"exports\"),\n factory.createStringLiteralFromNode(name),\n factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"enumerable\", factory.createTrue()),\n factory.createPropertyAssignment(\"get\", factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ [], \n /*type*/ undefined, factory.createBlock([factory.createReturnStatement(value)])))\n ])\n ]) : factory.createAssignment(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), factory.cloneNode(name)), value), location);\n }\n //\n // Modifier Visitors\n //\n /**\n * Visit nodes to elide module-specific modifiers.\n *\n * @param node The node to visit.\n */\n function modifierVisitor(node) {\n // Elide module-specific modifiers.\n switch (node.kind) {\n case 93 /* ExportKeyword */:\n case 88 /* DefaultKeyword */:\n return undefined;\n }\n return node;\n }\n //\n // Emit Notification\n //\n /**\n * Hook for node emit notifications.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emit A callback used to emit the node in the printer.\n */\n function onEmitNode(hint, node, emitCallback) {\n if (node.kind === 300 /* SourceFile */) {\n currentSourceFile = node;\n currentModuleInfo = moduleInfoMap[ts.getOriginalNodeId(currentSourceFile)];\n previousOnEmitNode(hint, node, emitCallback);\n currentSourceFile = undefined;\n currentModuleInfo = undefined;\n }\n else {\n previousOnEmitNode(hint, node, emitCallback);\n }\n }\n //\n // Substitutions\n //\n /**\n * Hooks node substitutions.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (node.id && noSubstitution[node.id]) {\n return node;\n }\n if (hint === 1 /* Expression */) {\n return substituteExpression(node);\n }\n else if (ts.isShorthandPropertyAssignment(node)) {\n return substituteShorthandPropertyAssignment(node);\n }\n return node;\n }\n /**\n * Substitution for a ShorthandPropertyAssignment whose declaration name is an imported\n * or exported symbol.\n *\n * @param node The node to substitute.\n */\n function substituteShorthandPropertyAssignment(node) {\n var name = node.name;\n var exportedOrImportedName = substituteExpressionIdentifier(name);\n if (exportedOrImportedName !== name) {\n // A shorthand property with an assignment initializer is probably part of a\n // destructuring assignment\n if (node.objectAssignmentInitializer) {\n var initializer = factory.createAssignment(exportedOrImportedName, node.objectAssignmentInitializer);\n return ts.setTextRange(factory.createPropertyAssignment(name, initializer), node);\n }\n return ts.setTextRange(factory.createPropertyAssignment(name, exportedOrImportedName), node);\n }\n return node;\n }\n /**\n * Substitution for an Expression that may contain an imported or exported symbol.\n *\n * @param node The node to substitute.\n */\n function substituteExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return substituteExpressionIdentifier(node);\n case 206 /* CallExpression */:\n return substituteCallExpression(node);\n case 208 /* TaggedTemplateExpression */:\n return substituteTaggedTemplateExpression(node);\n case 219 /* BinaryExpression */:\n return substituteBinaryExpression(node);\n }\n return node;\n }\n function substituteCallExpression(node) {\n if (ts.isIdentifier(node.expression)) {\n var expression = substituteExpressionIdentifier(node.expression);\n noSubstitution[ts.getNodeId(expression)] = true;\n if (!ts.isIdentifier(expression)) {\n return ts.addEmitFlags(factory.updateCallExpression(node, expression, \n /*typeArguments*/ undefined, node.arguments), 536870912 /* IndirectCall */);\n }\n }\n return node;\n }\n function substituteTaggedTemplateExpression(node) {\n if (ts.isIdentifier(node.tag)) {\n var tag = substituteExpressionIdentifier(node.tag);\n noSubstitution[ts.getNodeId(tag)] = true;\n if (!ts.isIdentifier(tag)) {\n return ts.addEmitFlags(factory.updateTaggedTemplateExpression(node, tag, \n /*typeArguments*/ undefined, node.template), 536870912 /* IndirectCall */);\n }\n }\n return node;\n }\n /**\n * Substitution for an Identifier expression that may contain an imported or exported\n * symbol.\n *\n * @param node The node to substitute.\n */\n function substituteExpressionIdentifier(node) {\n var _a, _b;\n if (ts.getEmitFlags(node) & 4096 /* HelperName */) {\n var externalHelpersModuleName = ts.getExternalHelpersModuleName(currentSourceFile);\n if (externalHelpersModuleName) {\n return factory.createPropertyAccessExpression(externalHelpersModuleName, node);\n }\n return node;\n }\n else if (!(ts.isGeneratedIdentifier(node) && !(node.autoGenerateFlags & 64 /* AllowNameSubstitution */)) && !ts.isLocalName(node)) {\n var exportContainer = resolver.getReferencedExportContainer(node, ts.isExportName(node));\n if (exportContainer && exportContainer.kind === 300 /* SourceFile */) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.createIdentifier(\"exports\"), factory.cloneNode(node)), \n /*location*/ node);\n }\n var importDeclaration = resolver.getReferencedImportDeclaration(node);\n if (importDeclaration) {\n if (ts.isImportClause(importDeclaration)) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(importDeclaration.parent), factory.createIdentifier(\"default\")), \n /*location*/ node);\n }\n else if (ts.isImportSpecifier(importDeclaration)) {\n var name = importDeclaration.propertyName || importDeclaration.name;\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) || importDeclaration), factory.cloneNode(name)), \n /*location*/ node);\n }\n }\n }\n return node;\n }\n /**\n * Substitution for a BinaryExpression that may contain an imported or exported symbol.\n *\n * @param node The node to substitute.\n */\n function substituteBinaryExpression(node) {\n // When we see an assignment expression whose left-hand side is an exported symbol,\n // we should ensure all exports of that symbol are updated with the correct value.\n //\n // - We do not substitute generated identifiers for any reason.\n // - We do not substitute identifiers tagged with the LocalName flag.\n // - We do not substitute identifiers that were originally the name of an enum or\n // namespace due to how they are transformed in TypeScript.\n // - We only substitute identifiers that are exported at the top level.\n if (ts.isAssignmentOperator(node.operatorToken.kind)\n && ts.isIdentifier(node.left)\n && !ts.isGeneratedIdentifier(node.left)\n && !ts.isLocalName(node.left)\n && !ts.isDeclarationNameOfEnumOrNamespace(node.left)) {\n var exportedNames = getExports(node.left);\n if (exportedNames) {\n // For each additional export of the declaration, apply an export assignment.\n var expression = node;\n for (var _i = 0, exportedNames_3 = exportedNames; _i < exportedNames_3.length; _i++) {\n var exportName = exportedNames_3[_i];\n // Mark the node to prevent triggering this rule again.\n noSubstitution[ts.getNodeId(expression)] = true;\n expression = createExportExpression(exportName, expression, /*location*/ node);\n }\n return expression;\n }\n }\n return node;\n }\n /**\n * Gets the additional exports of a name.\n *\n * @param name The name.\n */\n function getExports(name) {\n if (!ts.isGeneratedIdentifier(name)) {\n var valueDeclaration = resolver.getReferencedImportDeclaration(name)\n || resolver.getReferencedValueDeclaration(name);\n if (valueDeclaration) {\n return currentModuleInfo\n && currentModuleInfo.exportedBindings[ts.getOriginalNodeId(valueDeclaration)];\n }\n }\n }\n }\n ts.transformModule = transformModule;\n // emit helper for dynamic import\n var dynamicImportUMDHelper = {\n name: \"typescript:dynamicimport-sync-require\",\n scoped: true,\n text: \"\\n var __syncRequire = typeof module === \\\"object\\\" && typeof module.exports === \\\"object\\\";\"\n };\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformSystemModule(context) {\n var factory = context.factory, startLexicalEnvironment = context.startLexicalEnvironment, endLexicalEnvironment = context.endLexicalEnvironment, hoistVariableDeclaration = context.hoistVariableDeclaration;\n var compilerOptions = context.getCompilerOptions();\n var resolver = context.getEmitResolver();\n var host = context.getEmitHost();\n var previousOnSubstituteNode = context.onSubstituteNode;\n var previousOnEmitNode = context.onEmitNode;\n context.onSubstituteNode = onSubstituteNode;\n context.onEmitNode = onEmitNode;\n context.enableSubstitution(79 /* Identifier */); // Substitutes expression identifiers for imported symbols.\n context.enableSubstitution(292 /* ShorthandPropertyAssignment */); // Substitutes expression identifiers for imported symbols\n context.enableSubstitution(219 /* BinaryExpression */); // Substitutes assignments to exported symbols.\n context.enableSubstitution(229 /* MetaProperty */); // Substitutes 'import.meta'\n context.enableEmitNotification(300 /* SourceFile */); // Restore state when substituting nodes in a file.\n var moduleInfoMap = []; // The ExternalModuleInfo for each file.\n var deferredExports = []; // Exports to defer until an EndOfDeclarationMarker is found.\n var exportFunctionsMap = []; // The export function associated with a source file.\n var noSubstitutionMap = []; // Set of nodes for which substitution rules should be ignored for each file.\n var contextObjectMap = []; // The context object associated with a source file.\n var currentSourceFile; // The current file.\n var moduleInfo; // ExternalModuleInfo for the current file.\n var exportFunction; // The export function for the current file.\n var contextObject; // The context object for the current file.\n var hoistedStatements;\n var enclosingBlockScopedContainer;\n var noSubstitution; // Set of nodes for which substitution rules should be ignored.\n return ts.chainBundle(context, transformSourceFile);\n /**\n * Transforms the module aspects of a SourceFile.\n *\n * @param node The SourceFile node.\n */\n function transformSourceFile(node) {\n if (node.isDeclarationFile || !(ts.isEffectiveExternalModule(node, compilerOptions) || node.transformFlags & 4194304 /* ContainsDynamicImport */)) {\n return node;\n }\n var id = ts.getOriginalNodeId(node);\n currentSourceFile = node;\n enclosingBlockScopedContainer = node;\n // System modules have the following shape:\n //\n // System.register(['dep-1', ... 'dep-n'], function(exports) {/* module body function */})\n //\n // The parameter 'exports' here is a callback '(name: string, value: T) => T' that\n // is used to publish exported values. 'exports' returns its 'value' argument so in\n // most cases expressions that mutate exported values can be rewritten as:\n //\n // expr -> exports('name', expr)\n //\n // The only exception in this rule is postfix unary operators,\n // see comment to 'substitutePostfixUnaryExpression' for more details\n // Collect information about the external module and dependency groups.\n moduleInfo = moduleInfoMap[id] = ts.collectExternalModuleInfo(context, node, resolver, compilerOptions);\n // Make sure that the name of the 'exports' function does not conflict with\n // existing identifiers.\n exportFunction = factory.createUniqueName(\"exports\");\n exportFunctionsMap[id] = exportFunction;\n contextObject = contextObjectMap[id] = factory.createUniqueName(\"context\");\n // Add the body of the module.\n var dependencyGroups = collectDependencyGroups(moduleInfo.externalImports);\n var moduleBodyBlock = createSystemModuleBody(node, dependencyGroups);\n var moduleBodyFunction = factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, [\n factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, exportFunction),\n factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, contextObject)\n ], \n /*type*/ undefined, moduleBodyBlock);\n // Write the call to `System.register`\n // Clear the emit-helpers flag for later passes since we'll have already used it in the module body\n // So the helper will be emit at the correct position instead of at the top of the source-file\n var moduleName = ts.tryGetModuleNameFromFile(factory, node, host, compilerOptions);\n var dependencies = factory.createArrayLiteralExpression(ts.map(dependencyGroups, function (dependencyGroup) { return dependencyGroup.name; }));\n var updated = ts.setEmitFlags(factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray([\n factory.createExpressionStatement(factory.createCallExpression(factory.createPropertyAccessExpression(factory.createIdentifier(\"System\"), \"register\"), \n /*typeArguments*/ undefined, moduleName\n ? [moduleName, dependencies, moduleBodyFunction]\n : [dependencies, moduleBodyFunction]))\n ]), node.statements)), 1024 /* NoTrailingComments */);\n if (!ts.outFile(compilerOptions)) {\n ts.moveEmitHelpers(updated, moduleBodyBlock, function (helper) { return !helper.scoped; });\n }\n if (noSubstitution) {\n noSubstitutionMap[id] = noSubstitution;\n noSubstitution = undefined;\n }\n currentSourceFile = undefined;\n moduleInfo = undefined;\n exportFunction = undefined;\n contextObject = undefined;\n hoistedStatements = undefined;\n enclosingBlockScopedContainer = undefined;\n return updated;\n }\n /**\n * Collects the dependency groups for this files imports.\n *\n * @param externalImports The imports for the file.\n */\n function collectDependencyGroups(externalImports) {\n var groupIndices = new ts.Map();\n var dependencyGroups = [];\n for (var _i = 0, externalImports_1 = externalImports; _i < externalImports_1.length; _i++) {\n var externalImport = externalImports_1[_i];\n var externalModuleName = ts.getExternalModuleNameLiteral(factory, externalImport, currentSourceFile, host, resolver, compilerOptions);\n if (externalModuleName) {\n var text = externalModuleName.text;\n var groupIndex = groupIndices.get(text);\n if (groupIndex !== undefined) {\n // deduplicate/group entries in dependency list by the dependency name\n dependencyGroups[groupIndex].externalImports.push(externalImport);\n }\n else {\n groupIndices.set(text, dependencyGroups.length);\n dependencyGroups.push({\n name: externalModuleName,\n externalImports: [externalImport]\n });\n }\n }\n }\n return dependencyGroups;\n }\n /**\n * Adds the statements for the module body function for the source file.\n *\n * @param node The source file for the module.\n * @param dependencyGroups The grouped dependencies of the module.\n */\n function createSystemModuleBody(node, dependencyGroups) {\n // Shape of the body in system modules:\n //\n // function (exports) {\n // \n // \n // \n // return {\n // setters: [\n // \n // ],\n // execute: function() {\n // \n // }\n // }\n // \n // }\n //\n // i.e:\n //\n // import {x} from 'file1'\n // var y = 1;\n // export function foo() { return y + x(); }\n // console.log(y);\n //\n // Will be transformed to:\n //\n // function(exports) {\n // function foo() { return y + file_1.x(); }\n // exports(\"foo\", foo);\n // var file_1, y;\n // return {\n // setters: [\n // function(v) { file_1 = v }\n // ],\n // execute(): function() {\n // y = 1;\n // console.log(y);\n // }\n // };\n // }\n var statements = [];\n // We start a new lexical environment in this function body, but *not* in the\n // body of the execute function. This allows us to emit temporary declarations\n // only in the outer module body and not in the inner one.\n startLexicalEnvironment();\n // Add any prologue directives.\n var ensureUseStrict = ts.getStrictOptionValue(compilerOptions, \"alwaysStrict\") || (!compilerOptions.noImplicitUseStrict && ts.isExternalModule(currentSourceFile));\n var statementOffset = factory.copyPrologue(node.statements, statements, ensureUseStrict, topLevelVisitor);\n // var __moduleName = context_1 && context_1.id;\n statements.push(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(\"__moduleName\", \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createLogicalAnd(contextObject, factory.createPropertyAccessExpression(contextObject, \"id\")))\n ])));\n // Visit the synthetic external helpers import declaration if present\n ts.visitNode(moduleInfo.externalHelpersImportDeclaration, topLevelVisitor, ts.isStatement);\n // Visit the statements of the source file, emitting any transformations into\n // the `executeStatements` array. We do this *before* we fill the `setters` array\n // as we both emit transformations as well as aggregate some data used when creating\n // setters. This allows us to reduce the number of times we need to loop through the\n // statements of the source file.\n var executeStatements = ts.visitNodes(node.statements, topLevelVisitor, ts.isStatement, statementOffset);\n // Emit early exports for function declarations.\n ts.addRange(statements, hoistedStatements);\n // We emit hoisted variables early to align roughly with our previous emit output.\n // Two key differences in this approach are:\n // - Temporary variables will appear at the top rather than at the bottom of the file\n ts.insertStatementsAfterStandardPrologue(statements, endLexicalEnvironment());\n var exportStarFunction = addExportStarIfNeeded(statements); // TODO: GH#18217\n var modifiers = node.transformFlags & 1048576 /* ContainsAwait */ ?\n factory.createModifiersFromModifierFlags(256 /* Async */) :\n undefined;\n var moduleObject = factory.createObjectLiteralExpression([\n factory.createPropertyAssignment(\"setters\", createSettersArray(exportStarFunction, dependencyGroups)),\n factory.createPropertyAssignment(\"execute\", factory.createFunctionExpression(modifiers, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, \n /*parameters*/ [], \n /*type*/ undefined, factory.createBlock(executeStatements, /*multiLine*/ true)))\n ], /*multiLine*/ true);\n statements.push(factory.createReturnStatement(moduleObject));\n return factory.createBlock(statements, /*multiLine*/ true);\n }\n /**\n * Adds an exportStar function to a statement list if it is needed for the file.\n *\n * @param statements A statement list.\n */\n function addExportStarIfNeeded(statements) {\n if (!moduleInfo.hasExportStarsToExportValues) {\n return;\n }\n // when resolving exports local exported entries/indirect exported entries in the module\n // should always win over entries with similar names that were added via star exports\n // to support this we store names of local/indirect exported entries in a set.\n // this set is used to filter names brought by star expors.\n // local names set should only be added if we have anything exported\n if (!moduleInfo.exportedNames && moduleInfo.exportSpecifiers.size === 0) {\n // no exported declarations (export var ...) or export specifiers (export {x})\n // check if we have any non star export declarations.\n var hasExportDeclarationWithExportClause = false;\n for (var _i = 0, _a = moduleInfo.externalImports; _i < _a.length; _i++) {\n var externalImport = _a[_i];\n if (externalImport.kind === 270 /* ExportDeclaration */ && externalImport.exportClause) {\n hasExportDeclarationWithExportClause = true;\n break;\n }\n }\n if (!hasExportDeclarationWithExportClause) {\n // we still need to emit exportStar helper\n var exportStarFunction_1 = createExportStarFunction(/*localNames*/ undefined);\n statements.push(exportStarFunction_1);\n return exportStarFunction_1.name;\n }\n }\n var exportedNames = [];\n if (moduleInfo.exportedNames) {\n for (var _b = 0, _c = moduleInfo.exportedNames; _b < _c.length; _b++) {\n var exportedLocalName = _c[_b];\n if (exportedLocalName.escapedText === \"default\") {\n continue;\n }\n // write name of exported declaration, i.e 'export var x...'\n exportedNames.push(factory.createPropertyAssignment(factory.createStringLiteralFromNode(exportedLocalName), factory.createTrue()));\n }\n }\n var exportedNamesStorageRef = factory.createUniqueName(\"exportedNames\");\n statements.push(factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(exportedNamesStorageRef, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createObjectLiteralExpression(exportedNames, /*multiline*/ true))\n ])));\n var exportStarFunction = createExportStarFunction(exportedNamesStorageRef);\n statements.push(exportStarFunction);\n return exportStarFunction.name;\n }\n /**\n * Creates an exportStar function for the file, with an optional set of excluded local\n * names.\n *\n * @param localNames An optional reference to an object containing a set of excluded local\n * names.\n */\n function createExportStarFunction(localNames) {\n var exportStarFunction = factory.createUniqueName(\"exportStar\");\n var m = factory.createIdentifier(\"m\");\n var n = factory.createIdentifier(\"n\");\n var exports = factory.createIdentifier(\"exports\");\n var condition = factory.createStrictInequality(n, factory.createStringLiteral(\"default\"));\n if (localNames) {\n condition = factory.createLogicalAnd(condition, factory.createLogicalNot(factory.createCallExpression(factory.createPropertyAccessExpression(localNames, \"hasOwnProperty\"), \n /*typeArguments*/ undefined, [n])));\n }\n return factory.createFunctionDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, exportStarFunction, \n /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, m)], \n /*type*/ undefined, factory.createBlock([\n factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList([\n factory.createVariableDeclaration(exports, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, factory.createObjectLiteralExpression([]))\n ])),\n factory.createForInStatement(factory.createVariableDeclarationList([\n factory.createVariableDeclaration(n)\n ]), m, factory.createBlock([\n ts.setEmitFlags(factory.createIfStatement(condition, factory.createExpressionStatement(factory.createAssignment(factory.createElementAccessExpression(exports, n), factory.createElementAccessExpression(m, n)))), 1 /* SingleLine */)\n ])),\n factory.createExpressionStatement(factory.createCallExpression(exportFunction, \n /*typeArguments*/ undefined, [exports]))\n ], /*multiline*/ true));\n }\n /**\n * Creates an array setter callbacks for each dependency group.\n *\n * @param exportStarFunction A reference to an exportStarFunction for the file.\n * @param dependencyGroups An array of grouped dependencies.\n */\n function createSettersArray(exportStarFunction, dependencyGroups) {\n var setters = [];\n for (var _i = 0, dependencyGroups_1 = dependencyGroups; _i < dependencyGroups_1.length; _i++) {\n var group_2 = dependencyGroups_1[_i];\n // derive a unique name for parameter from the first named entry in the group\n var localName = ts.forEach(group_2.externalImports, function (i) { return ts.getLocalNameForExternalImport(factory, i, currentSourceFile); });\n var parameterName = localName ? factory.getGeneratedNameForNode(localName) : factory.createUniqueName(\"\");\n var statements = [];\n for (var _a = 0, _b = group_2.externalImports; _a < _b.length; _a++) {\n var entry = _b[_a];\n var importVariableName = ts.getLocalNameForExternalImport(factory, entry, currentSourceFile); // TODO: GH#18217\n switch (entry.kind) {\n case 264 /* ImportDeclaration */:\n if (!entry.importClause) {\n // 'import \"...\"' case\n // module is imported only for side-effects, no emit required\n break;\n }\n // falls through\n case 263 /* ImportEqualsDeclaration */:\n ts.Debug.assert(importVariableName !== undefined);\n // save import into the local\n statements.push(factory.createExpressionStatement(factory.createAssignment(importVariableName, parameterName)));\n break;\n case 270 /* ExportDeclaration */:\n ts.Debug.assert(importVariableName !== undefined);\n if (entry.exportClause) {\n if (ts.isNamedExports(entry.exportClause)) {\n // export {a, b as c} from 'foo'\n //\n // emit as:\n //\n // exports_({\n // \"a\": _[\"a\"],\n // \"c\": _[\"b\"]\n // });\n var properties = [];\n for (var _c = 0, _d = entry.exportClause.elements; _c < _d.length; _c++) {\n var e = _d[_c];\n properties.push(factory.createPropertyAssignment(factory.createStringLiteral(ts.idText(e.name)), factory.createElementAccessExpression(parameterName, factory.createStringLiteral(ts.idText(e.propertyName || e.name)))));\n }\n statements.push(factory.createExpressionStatement(factory.createCallExpression(exportFunction, \n /*typeArguments*/ undefined, [factory.createObjectLiteralExpression(properties, /*multiline*/ true)])));\n }\n else {\n statements.push(factory.createExpressionStatement(factory.createCallExpression(exportFunction, \n /*typeArguments*/ undefined, [\n factory.createStringLiteral(ts.idText(entry.exportClause.name)),\n parameterName\n ])));\n }\n }\n else {\n // export * from 'foo'\n //\n // emit as:\n //\n // exportStar(foo_1_1);\n statements.push(factory.createExpressionStatement(factory.createCallExpression(exportStarFunction, \n /*typeArguments*/ undefined, [parameterName])));\n }\n break;\n }\n }\n setters.push(factory.createFunctionExpression(\n /*modifiers*/ undefined, \n /*asteriskToken*/ undefined, \n /*name*/ undefined, \n /*typeParameters*/ undefined, [factory.createParameterDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*dotDotDotToken*/ undefined, parameterName)], \n /*type*/ undefined, factory.createBlock(statements, /*multiLine*/ true)));\n }\n return factory.createArrayLiteralExpression(setters, /*multiLine*/ true);\n }\n //\n // Top-level Source Element Visitors\n //\n /**\n * Visit source elements at the top-level of a module.\n *\n * @param node The node to visit.\n */\n function topLevelVisitor(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return visitImportDeclaration(node);\n case 263 /* ImportEqualsDeclaration */:\n return visitImportEqualsDeclaration(node);\n case 270 /* ExportDeclaration */:\n return visitExportDeclaration(node);\n case 269 /* ExportAssignment */:\n return visitExportAssignment(node);\n default:\n return topLevelNestedVisitor(node);\n }\n }\n /**\n * Visits an ImportDeclaration node.\n *\n * @param node The node to visit.\n */\n function visitImportDeclaration(node) {\n var statements;\n if (node.importClause) {\n hoistVariableDeclaration(ts.getLocalNameForExternalImport(factory, node, currentSourceFile)); // TODO: GH#18217\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfImportDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfImportDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n function visitExportDeclaration(node) {\n ts.Debug.assertIsDefined(node);\n return undefined;\n }\n /**\n * Visits an ImportEqualsDeclaration node.\n *\n * @param node The node to visit.\n */\n function visitImportEqualsDeclaration(node) {\n ts.Debug.assert(ts.isExternalModuleImportEqualsDeclaration(node), \"import= for internal module references should be handled in an earlier transformer.\");\n var statements;\n hoistVariableDeclaration(ts.getLocalNameForExternalImport(factory, node, currentSourceFile)); // TODO: GH#18217\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfImportEqualsDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfImportEqualsDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits an ExportAssignment node.\n *\n * @param node The node to visit.\n */\n function visitExportAssignment(node) {\n if (node.isExportEquals) {\n // Elide `export=` as it is illegal in a SystemJS module.\n return undefined;\n }\n var expression = ts.visitNode(node.expression, visitor, ts.isExpression);\n var original = node.original;\n if (original && hasAssociatedEndOfDeclarationMarker(original)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportStatement(deferredExports[id], factory.createIdentifier(\"default\"), expression, /*allowComments*/ true);\n }\n else {\n return createExportStatement(factory.createIdentifier(\"default\"), expression, /*allowComments*/ true);\n }\n }\n /**\n * Visits a FunctionDeclaration, hoisting it to the outer module body function.\n *\n * @param node The node to visit.\n */\n function visitFunctionDeclaration(node) {\n if (ts.hasSyntacticModifier(node, 1 /* Export */)) {\n hoistedStatements = ts.append(hoistedStatements, factory.updateFunctionDeclaration(node, node.decorators, ts.visitNodes(node.modifiers, modifierVisitor, ts.isModifier), node.asteriskToken, factory.getDeclarationName(node, /*allowComments*/ true, /*allowSourceMaps*/ true), \n /*typeParameters*/ undefined, ts.visitNodes(node.parameters, visitor, ts.isParameterDeclaration), \n /*type*/ undefined, ts.visitNode(node.body, visitor, ts.isBlock)));\n }\n else {\n hoistedStatements = ts.append(hoistedStatements, ts.visitEachChild(node, visitor, context));\n }\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n }\n else {\n hoistedStatements = appendExportsOfHoistedDeclaration(hoistedStatements, node);\n }\n return undefined;\n }\n /**\n * Visits a ClassDeclaration, hoisting its name to the outer module body function.\n *\n * @param node The node to visit.\n */\n function visitClassDeclaration(node) {\n var statements;\n // Hoist the name of the class declaration to the outer module body function.\n var name = factory.getLocalName(node);\n hoistVariableDeclaration(name);\n // Rewrite the class declaration into an assignment of a class expression.\n statements = ts.append(statements, ts.setTextRange(factory.createExpressionStatement(factory.createAssignment(name, ts.setTextRange(factory.createClassExpression(ts.visitNodes(node.decorators, visitor, ts.isDecorator), \n /*modifiers*/ undefined, node.name, \n /*typeParameters*/ undefined, ts.visitNodes(node.heritageClauses, visitor, ts.isHeritageClause), ts.visitNodes(node.members, visitor, ts.isClassElement)), node))), node));\n if (hasAssociatedEndOfDeclarationMarker(node)) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfHoistedDeclaration(deferredExports[id], node);\n }\n else {\n statements = appendExportsOfHoistedDeclaration(statements, node);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Visits a variable statement, hoisting declared names to the top-level module body.\n * Each declaration is rewritten into an assignment expression.\n *\n * @param node The node to visit.\n */\n function visitVariableStatement(node) {\n if (!shouldHoistVariableDeclarationList(node.declarationList)) {\n return ts.visitNode(node, visitor, ts.isStatement);\n }\n var expressions;\n var isExportedDeclaration = ts.hasSyntacticModifier(node, 1 /* Export */);\n var isMarkedDeclaration = hasAssociatedEndOfDeclarationMarker(node);\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n if (variable.initializer) {\n expressions = ts.append(expressions, transformInitializedVariable(variable, isExportedDeclaration && !isMarkedDeclaration));\n }\n else {\n hoistBindingElement(variable);\n }\n }\n var statements;\n if (expressions) {\n statements = ts.append(statements, ts.setTextRange(factory.createExpressionStatement(factory.inlineExpressions(expressions)), node));\n }\n if (isMarkedDeclaration) {\n // Defer exports until we encounter an EndOfDeclarationMarker node\n var id = ts.getOriginalNodeId(node);\n deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node, isExportedDeclaration);\n }\n else {\n statements = appendExportsOfVariableStatement(statements, node, /*exportSelf*/ false);\n }\n return ts.singleOrMany(statements);\n }\n /**\n * Hoists the declared names of a VariableDeclaration or BindingElement.\n *\n * @param node The declaration to hoist.\n */\n function hoistBindingElement(node) {\n if (ts.isBindingPattern(node.name)) {\n for (var _i = 0, _a = node.name.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n hoistBindingElement(element);\n }\n }\n }\n else {\n hoistVariableDeclaration(factory.cloneNode(node.name));\n }\n }\n /**\n * Determines whether a VariableDeclarationList should be hoisted.\n *\n * @param node The node to test.\n */\n function shouldHoistVariableDeclarationList(node) {\n // hoist only non-block scoped declarations or block scoped declarations parented by source file\n return (ts.getEmitFlags(node) & 2097152 /* NoHoisting */) === 0\n && (enclosingBlockScopedContainer.kind === 300 /* SourceFile */\n || (ts.getOriginalNode(node).flags & 3 /* BlockScoped */) === 0);\n }\n /**\n * Transform an initialized variable declaration into an expression.\n *\n * @param node The node to transform.\n * @param isExportedDeclaration A value indicating whether the variable is exported.\n */\n function transformInitializedVariable(node, isExportedDeclaration) {\n var createAssignment = isExportedDeclaration ? createExportedVariableAssignment : createNonExportedVariableAssignment;\n return ts.isBindingPattern(node.name)\n ? ts.flattenDestructuringAssignment(node, visitor, context, 0 /* All */, \n /*needsValue*/ false, createAssignment)\n : node.initializer ? createAssignment(node.name, ts.visitNode(node.initializer, visitor, ts.isExpression)) : node.name;\n }\n /**\n * Creates an assignment expression for an exported variable declaration.\n *\n * @param name The name of the variable.\n * @param value The value of the variable's initializer.\n * @param location The source map location for the assignment.\n */\n function createExportedVariableAssignment(name, value, location) {\n return createVariableAssignment(name, value, location, /*isExportedDeclaration*/ true);\n }\n /**\n * Creates an assignment expression for a non-exported variable declaration.\n *\n * @param name The name of the variable.\n * @param value The value of the variable's initializer.\n * @param location The source map location for the assignment.\n */\n function createNonExportedVariableAssignment(name, value, location) {\n return createVariableAssignment(name, value, location, /*isExportedDeclaration*/ false);\n }\n /**\n * Creates an assignment expression for a variable declaration.\n *\n * @param name The name of the variable.\n * @param value The value of the variable's initializer.\n * @param location The source map location for the assignment.\n * @param isExportedDeclaration A value indicating whether the variable is exported.\n */\n function createVariableAssignment(name, value, location, isExportedDeclaration) {\n hoistVariableDeclaration(factory.cloneNode(name));\n return isExportedDeclaration\n ? createExportExpression(name, preventSubstitution(ts.setTextRange(factory.createAssignment(name, value), location)))\n : preventSubstitution(ts.setTextRange(factory.createAssignment(name, value), location));\n }\n /**\n * Visits a MergeDeclarationMarker used as a placeholder for the beginning of a merged\n * and transformed declaration.\n *\n * @param node The node to visit.\n */\n function visitMergeDeclarationMarker(node) {\n // For an EnumDeclaration or ModuleDeclaration that merges with a preceeding\n // declaration we do not emit a leading variable declaration. To preserve the\n // begin/end semantics of the declararation and to properly handle exports\n // we wrapped the leading variable declaration in a `MergeDeclarationMarker`.\n //\n // To balance the declaration, we defer the exports of the elided variable\n // statement until we visit this declaration's `EndOfDeclarationMarker`.\n if (hasAssociatedEndOfDeclarationMarker(node) && node.original.kind === 235 /* VariableStatement */) {\n var id = ts.getOriginalNodeId(node);\n var isExportedDeclaration = ts.hasSyntacticModifier(node.original, 1 /* Export */);\n deferredExports[id] = appendExportsOfVariableStatement(deferredExports[id], node.original, isExportedDeclaration);\n }\n return node;\n }\n /**\n * Determines whether a node has an associated EndOfDeclarationMarker.\n *\n * @param node The node to test.\n */\n function hasAssociatedEndOfDeclarationMarker(node) {\n return (ts.getEmitFlags(node) & 4194304 /* HasEndOfDeclarationMarker */) !== 0;\n }\n /**\n * Visits a DeclarationMarker used as a placeholder for the end of a transformed\n * declaration.\n *\n * @param node The node to visit.\n */\n function visitEndOfDeclarationMarker(node) {\n // For some transformations we emit an `EndOfDeclarationMarker` to mark the actual\n // end of the transformed declaration. We use this marker to emit any deferred exports\n // of the declaration.\n var id = ts.getOriginalNodeId(node);\n var statements = deferredExports[id];\n if (statements) {\n delete deferredExports[id];\n return ts.append(statements, node);\n }\n else {\n var original = ts.getOriginalNode(node);\n if (ts.isModuleOrEnumDeclaration(original)) {\n return ts.append(appendExportsOfDeclaration(statements, original), node);\n }\n }\n return node;\n }\n /**\n * Appends the exports of an ImportDeclaration to a statement list, returning the\n * statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfImportDeclaration(statements, decl) {\n if (moduleInfo.exportEquals) {\n return statements;\n }\n var importClause = decl.importClause;\n if (!importClause) {\n return statements;\n }\n if (importClause.name) {\n statements = appendExportsOfDeclaration(statements, importClause);\n }\n var namedBindings = importClause.namedBindings;\n if (namedBindings) {\n switch (namedBindings.kind) {\n case 266 /* NamespaceImport */:\n statements = appendExportsOfDeclaration(statements, namedBindings);\n break;\n case 267 /* NamedImports */:\n for (var _i = 0, _a = namedBindings.elements; _i < _a.length; _i++) {\n var importBinding = _a[_i];\n statements = appendExportsOfDeclaration(statements, importBinding);\n }\n break;\n }\n }\n return statements;\n }\n /**\n * Appends the export of an ImportEqualsDeclaration to a statement list, returning the\n * statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfImportEqualsDeclaration(statements, decl) {\n if (moduleInfo.exportEquals) {\n return statements;\n }\n return appendExportsOfDeclaration(statements, decl);\n }\n /**\n * Appends the exports of a VariableStatement to a statement list, returning the statement\n * list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param node The VariableStatement whose exports are to be recorded.\n * @param exportSelf A value indicating whether to also export each VariableDeclaration of\n * `nodes` declaration list.\n */\n function appendExportsOfVariableStatement(statements, node, exportSelf) {\n if (moduleInfo.exportEquals) {\n return statements;\n }\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (decl.initializer || exportSelf) {\n statements = appendExportsOfBindingElement(statements, decl, exportSelf);\n }\n }\n return statements;\n }\n /**\n * Appends the exports of a VariableDeclaration or BindingElement to a statement list,\n * returning the statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n * @param exportSelf A value indicating whether to also export the declaration itself.\n */\n function appendExportsOfBindingElement(statements, decl, exportSelf) {\n if (moduleInfo.exportEquals) {\n return statements;\n }\n if (ts.isBindingPattern(decl.name)) {\n for (var _i = 0, _a = decl.name.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isOmittedExpression(element)) {\n statements = appendExportsOfBindingElement(statements, element, exportSelf);\n }\n }\n }\n else if (!ts.isGeneratedIdentifier(decl.name)) {\n var excludeName = void 0;\n if (exportSelf) {\n statements = appendExportStatement(statements, decl.name, factory.getLocalName(decl));\n excludeName = ts.idText(decl.name);\n }\n statements = appendExportsOfDeclaration(statements, decl, excludeName);\n }\n return statements;\n }\n /**\n * Appends the exports of a ClassDeclaration or FunctionDeclaration to a statement list,\n * returning the statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration whose exports are to be recorded.\n */\n function appendExportsOfHoistedDeclaration(statements, decl) {\n if (moduleInfo.exportEquals) {\n return statements;\n }\n var excludeName;\n if (ts.hasSyntacticModifier(decl, 1 /* Export */)) {\n var exportName = ts.hasSyntacticModifier(decl, 512 /* Default */) ? factory.createStringLiteral(\"default\") : decl.name;\n statements = appendExportStatement(statements, exportName, factory.getLocalName(decl));\n excludeName = ts.getTextOfIdentifierOrLiteral(exportName);\n }\n if (decl.name) {\n statements = appendExportsOfDeclaration(statements, decl, excludeName);\n }\n return statements;\n }\n /**\n * Appends the exports of a declaration to a statement list, returning the statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param decl The declaration to export.\n * @param excludeName An optional name to exclude from exports.\n */\n function appendExportsOfDeclaration(statements, decl, excludeName) {\n if (moduleInfo.exportEquals) {\n return statements;\n }\n var name = factory.getDeclarationName(decl);\n var exportSpecifiers = moduleInfo.exportSpecifiers.get(ts.idText(name));\n if (exportSpecifiers) {\n for (var _i = 0, exportSpecifiers_2 = exportSpecifiers; _i < exportSpecifiers_2.length; _i++) {\n var exportSpecifier = exportSpecifiers_2[_i];\n if (exportSpecifier.name.escapedText !== excludeName) {\n statements = appendExportStatement(statements, exportSpecifier.name, name);\n }\n }\n }\n return statements;\n }\n /**\n * Appends the down-level representation of an export to a statement list, returning the\n * statement list.\n *\n * @param statements A statement list to which the down-level export statements are to be\n * appended. If `statements` is `undefined`, a new array is allocated if statements are\n * appended.\n * @param exportName The name of the export.\n * @param expression The expression to export.\n * @param allowComments Whether to allow comments on the export.\n */\n function appendExportStatement(statements, exportName, expression, allowComments) {\n statements = ts.append(statements, createExportStatement(exportName, expression, allowComments));\n return statements;\n }\n /**\n * Creates a call to the current file's export function to export a value.\n *\n * @param name The bound name of the export.\n * @param value The exported value.\n * @param allowComments An optional value indicating whether to emit comments for the statement.\n */\n function createExportStatement(name, value, allowComments) {\n var statement = factory.createExpressionStatement(createExportExpression(name, value));\n ts.startOnNewLine(statement);\n if (!allowComments) {\n ts.setEmitFlags(statement, 1536 /* NoComments */);\n }\n return statement;\n }\n /**\n * Creates a call to the current file's export function to export a value.\n *\n * @param name The bound name of the export.\n * @param value The exported value.\n */\n function createExportExpression(name, value) {\n var exportName = ts.isIdentifier(name) ? factory.createStringLiteralFromNode(name) : name;\n ts.setEmitFlags(value, ts.getEmitFlags(value) | 1536 /* NoComments */);\n return ts.setCommentRange(factory.createCallExpression(exportFunction, /*typeArguments*/ undefined, [exportName, value]), value);\n }\n //\n // Top-Level or Nested Source Element Visitors\n //\n /**\n * Visit nested elements at the top-level of a module.\n *\n * @param node The node to visit.\n */\n function topLevelNestedVisitor(node) {\n switch (node.kind) {\n case 235 /* VariableStatement */:\n return visitVariableStatement(node);\n case 254 /* FunctionDeclaration */:\n return visitFunctionDeclaration(node);\n case 255 /* ClassDeclaration */:\n return visitClassDeclaration(node);\n case 240 /* ForStatement */:\n return visitForStatement(node, /*isTopLevel*/ true);\n case 241 /* ForInStatement */:\n return visitForInStatement(node);\n case 242 /* ForOfStatement */:\n return visitForOfStatement(node);\n case 238 /* DoStatement */:\n return visitDoStatement(node);\n case 239 /* WhileStatement */:\n return visitWhileStatement(node);\n case 248 /* LabeledStatement */:\n return visitLabeledStatement(node);\n case 246 /* WithStatement */:\n return visitWithStatement(node);\n case 247 /* SwitchStatement */:\n return visitSwitchStatement(node);\n case 261 /* CaseBlock */:\n return visitCaseBlock(node);\n case 287 /* CaseClause */:\n return visitCaseClause(node);\n case 288 /* DefaultClause */:\n return visitDefaultClause(node);\n case 250 /* TryStatement */:\n return visitTryStatement(node);\n case 290 /* CatchClause */:\n return visitCatchClause(node);\n case 233 /* Block */:\n return visitBlock(node);\n case 347 /* MergeDeclarationMarker */:\n return visitMergeDeclarationMarker(node);\n case 348 /* EndOfDeclarationMarker */:\n return visitEndOfDeclarationMarker(node);\n default:\n return visitor(node);\n }\n }\n /**\n * Visits the body of a ForStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitForStatement(node, isTopLevel) {\n var savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n enclosingBlockScopedContainer = node;\n node = factory.updateForStatement(node, ts.visitNode(node.initializer, isTopLevel ? visitForInitializer : discardedValueVisitor, ts.isForInitializer), ts.visitNode(node.condition, visitor, ts.isExpression), ts.visitNode(node.incrementor, discardedValueVisitor, ts.isExpression), ts.visitIterationBody(node.statement, isTopLevel ? topLevelNestedVisitor : visitor, context));\n enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n return node;\n }\n /**\n * Visits the body of a ForInStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitForInStatement(node) {\n var savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n enclosingBlockScopedContainer = node;\n node = factory.updateForInStatement(node, visitForInitializer(node.initializer), ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitIterationBody(node.statement, topLevelNestedVisitor, context));\n enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n return node;\n }\n /**\n * Visits the body of a ForOfStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitForOfStatement(node) {\n var savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n enclosingBlockScopedContainer = node;\n node = factory.updateForOfStatement(node, node.awaitModifier, visitForInitializer(node.initializer), ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitIterationBody(node.statement, topLevelNestedVisitor, context));\n enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n return node;\n }\n /**\n * Determines whether to hoist the initializer of a ForStatement, ForInStatement, or\n * ForOfStatement.\n *\n * @param node The node to test.\n */\n function shouldHoistForInitializer(node) {\n return ts.isVariableDeclarationList(node)\n && shouldHoistVariableDeclarationList(node);\n }\n /**\n * Visits the initializer of a ForStatement, ForInStatement, or ForOfStatement\n *\n * @param node The node to visit.\n */\n function visitForInitializer(node) {\n if (shouldHoistForInitializer(node)) {\n var expressions = void 0;\n for (var _i = 0, _a = node.declarations; _i < _a.length; _i++) {\n var variable = _a[_i];\n expressions = ts.append(expressions, transformInitializedVariable(variable, /*isExportedDeclaration*/ false));\n if (!variable.initializer) {\n hoistBindingElement(variable);\n }\n }\n return expressions ? factory.inlineExpressions(expressions) : factory.createOmittedExpression();\n }\n else {\n return ts.visitNode(node, discardedValueVisitor, ts.isExpression);\n }\n }\n /**\n * Visits the body of a DoStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitDoStatement(node) {\n return factory.updateDoStatement(node, ts.visitIterationBody(node.statement, topLevelNestedVisitor, context), ts.visitNode(node.expression, visitor, ts.isExpression));\n }\n /**\n * Visits the body of a WhileStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitWhileStatement(node) {\n return factory.updateWhileStatement(node, ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitIterationBody(node.statement, topLevelNestedVisitor, context));\n }\n /**\n * Visits the body of a LabeledStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitLabeledStatement(node) {\n return factory.updateLabeledStatement(node, node.label, ts.visitNode(node.statement, topLevelNestedVisitor, ts.isStatement, factory.liftToBlock));\n }\n /**\n * Visits the body of a WithStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitWithStatement(node) {\n return factory.updateWithStatement(node, ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitNode(node.statement, topLevelNestedVisitor, ts.isStatement, factory.liftToBlock));\n }\n /**\n * Visits the body of a SwitchStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitSwitchStatement(node) {\n return factory.updateSwitchStatement(node, ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitNode(node.caseBlock, topLevelNestedVisitor, ts.isCaseBlock));\n }\n /**\n * Visits the body of a CaseBlock to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitCaseBlock(node) {\n var savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n enclosingBlockScopedContainer = node;\n node = factory.updateCaseBlock(node, ts.visitNodes(node.clauses, topLevelNestedVisitor, ts.isCaseOrDefaultClause));\n enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n return node;\n }\n /**\n * Visits the body of a CaseClause to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitCaseClause(node) {\n return factory.updateCaseClause(node, ts.visitNode(node.expression, visitor, ts.isExpression), ts.visitNodes(node.statements, topLevelNestedVisitor, ts.isStatement));\n }\n /**\n * Visits the body of a DefaultClause to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitDefaultClause(node) {\n return ts.visitEachChild(node, topLevelNestedVisitor, context);\n }\n /**\n * Visits the body of a TryStatement to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitTryStatement(node) {\n return ts.visitEachChild(node, topLevelNestedVisitor, context);\n }\n /**\n * Visits the body of a CatchClause to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitCatchClause(node) {\n var savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n enclosingBlockScopedContainer = node;\n node = factory.updateCatchClause(node, node.variableDeclaration, ts.visitNode(node.block, topLevelNestedVisitor, ts.isBlock));\n enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n return node;\n }\n /**\n * Visits the body of a Block to hoist declarations.\n *\n * @param node The node to visit.\n */\n function visitBlock(node) {\n var savedEnclosingBlockScopedContainer = enclosingBlockScopedContainer;\n enclosingBlockScopedContainer = node;\n node = ts.visitEachChild(node, topLevelNestedVisitor, context);\n enclosingBlockScopedContainer = savedEnclosingBlockScopedContainer;\n return node;\n }\n //\n // Destructuring Assignment Visitors\n //\n /**\n * Visit nodes to flatten destructuring assignments to exported symbols.\n *\n * @param node The node to visit.\n */\n function visitorWorker(node, valueIsDiscarded) {\n if (!(node.transformFlags & (2048 /* ContainsDestructuringAssignment */ | 4194304 /* ContainsDynamicImport */ | 67108864 /* ContainsUpdateExpressionForIdentifier */))) {\n return node;\n }\n switch (node.kind) {\n case 240 /* ForStatement */:\n return visitForStatement(node, /*isTopLevel*/ false);\n case 236 /* ExpressionStatement */:\n return visitExpressionStatement(node);\n case 210 /* ParenthesizedExpression */:\n return visitParenthesizedExpression(node, valueIsDiscarded);\n case 345 /* PartiallyEmittedExpression */:\n return visitPartiallyEmittedExpression(node, valueIsDiscarded);\n case 219 /* BinaryExpression */:\n if (ts.isDestructuringAssignment(node)) {\n return visitDestructuringAssignment(node, valueIsDiscarded);\n }\n break;\n case 206 /* CallExpression */:\n if (ts.isImportCall(node)) {\n return visitImportCallExpression(node);\n }\n break;\n case 217 /* PrefixUnaryExpression */:\n case 218 /* PostfixUnaryExpression */:\n return visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Visit nodes to flatten destructuring assignments to exported symbols.\n *\n * @param node The node to visit.\n */\n function visitor(node) {\n return visitorWorker(node, /*valueIsDiscarded*/ false);\n }\n function discardedValueVisitor(node) {\n return visitorWorker(node, /*valueIsDiscarded*/ true);\n }\n function visitExpressionStatement(node) {\n return factory.updateExpressionStatement(node, ts.visitNode(node.expression, discardedValueVisitor, ts.isExpression));\n }\n function visitParenthesizedExpression(node, valueIsDiscarded) {\n return factory.updateParenthesizedExpression(node, ts.visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, ts.isExpression));\n }\n function visitPartiallyEmittedExpression(node, valueIsDiscarded) {\n return factory.updatePartiallyEmittedExpression(node, ts.visitNode(node.expression, valueIsDiscarded ? discardedValueVisitor : visitor, ts.isExpression));\n }\n function visitImportCallExpression(node) {\n // import(\"./blah\")\n // emit as\n // System.register([], function (_export, _context) {\n // return {\n // setters: [],\n // execute: () => {\n // _context.import('./blah');\n // }\n // };\n // });\n var externalModuleName = ts.getExternalModuleNameLiteral(factory, node, currentSourceFile, host, resolver, compilerOptions);\n var firstArgument = ts.visitNode(ts.firstOrUndefined(node.arguments), visitor);\n // Only use the external module name if it differs from the first argument. This allows us to preserve the quote style of the argument on output.\n var argument = externalModuleName && (!firstArgument || !ts.isStringLiteral(firstArgument) || firstArgument.text !== externalModuleName.text) ? externalModuleName : firstArgument;\n return factory.createCallExpression(factory.createPropertyAccessExpression(contextObject, factory.createIdentifier(\"import\")), \n /*typeArguments*/ undefined, argument ? [argument] : []);\n }\n /**\n * Visits a DestructuringAssignment to flatten destructuring to exported symbols.\n *\n * @param node The node to visit.\n */\n function visitDestructuringAssignment(node, valueIsDiscarded) {\n if (hasExportedReferenceInDestructuringTarget(node.left)) {\n return ts.flattenDestructuringAssignment(node, visitor, context, 0 /* All */, !valueIsDiscarded);\n }\n return ts.visitEachChild(node, visitor, context);\n }\n /**\n * Determines whether the target of a destructuring assignment refers to an exported symbol.\n *\n * @param node The destructuring target.\n */\n function hasExportedReferenceInDestructuringTarget(node) {\n if (ts.isAssignmentExpression(node, /*excludeCompoundAssignment*/ true)) {\n return hasExportedReferenceInDestructuringTarget(node.left);\n }\n else if (ts.isSpreadElement(node)) {\n return hasExportedReferenceInDestructuringTarget(node.expression);\n }\n else if (ts.isObjectLiteralExpression(node)) {\n return ts.some(node.properties, hasExportedReferenceInDestructuringTarget);\n }\n else if (ts.isArrayLiteralExpression(node)) {\n return ts.some(node.elements, hasExportedReferenceInDestructuringTarget);\n }\n else if (ts.isShorthandPropertyAssignment(node)) {\n return hasExportedReferenceInDestructuringTarget(node.name);\n }\n else if (ts.isPropertyAssignment(node)) {\n return hasExportedReferenceInDestructuringTarget(node.initializer);\n }\n else if (ts.isIdentifier(node)) {\n var container = resolver.getReferencedExportContainer(node);\n return container !== undefined && container.kind === 300 /* SourceFile */;\n }\n else {\n return false;\n }\n }\n function visitPrefixOrPostfixUnaryExpression(node, valueIsDiscarded) {\n // When we see a prefix or postfix increment expression whose operand is an exported\n // symbol, we should ensure all exports of that symbol are updated with the correct\n // value.\n //\n // - We do not transform generated identifiers for any reason.\n // - We do not transform identifiers tagged with the LocalName flag.\n // - We do not transform identifiers that were originally the name of an enum or\n // namespace due to how they are transformed in TypeScript.\n // - We only transform identifiers that are exported at the top level.\n if ((node.operator === 45 /* PlusPlusToken */ || node.operator === 46 /* MinusMinusToken */)\n && ts.isIdentifier(node.operand)\n && !ts.isGeneratedIdentifier(node.operand)\n && !ts.isLocalName(node.operand)\n && !ts.isDeclarationNameOfEnumOrNamespace(node.operand)) {\n var exportedNames = getExports(node.operand);\n if (exportedNames) {\n var temp = void 0;\n var expression = ts.visitNode(node.operand, visitor, ts.isExpression);\n if (ts.isPrefixUnaryExpression(node)) {\n expression = factory.updatePrefixUnaryExpression(node, expression);\n }\n else {\n expression = factory.updatePostfixUnaryExpression(node, expression);\n if (!valueIsDiscarded) {\n temp = factory.createTempVariable(hoistVariableDeclaration);\n expression = factory.createAssignment(temp, expression);\n ts.setTextRange(expression, node);\n }\n expression = factory.createComma(expression, factory.cloneNode(node.operand));\n ts.setTextRange(expression, node);\n }\n for (var _i = 0, exportedNames_4 = exportedNames; _i < exportedNames_4.length; _i++) {\n var exportName = exportedNames_4[_i];\n expression = createExportExpression(exportName, preventSubstitution(expression));\n }\n if (temp) {\n expression = factory.createComma(expression, temp);\n ts.setTextRange(expression, node);\n }\n return expression;\n }\n }\n return ts.visitEachChild(node, visitor, context);\n }\n //\n // Modifier Visitors\n //\n /**\n * Visit nodes to elide module-specific modifiers.\n *\n * @param node The node to visit.\n */\n function modifierVisitor(node) {\n switch (node.kind) {\n case 93 /* ExportKeyword */:\n case 88 /* DefaultKeyword */:\n return undefined;\n }\n return node;\n }\n //\n // Emit Notification\n //\n /**\n * Hook for node emit notifications.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emitCallback A callback used to emit the node in the printer.\n */\n function onEmitNode(hint, node, emitCallback) {\n if (node.kind === 300 /* SourceFile */) {\n var id = ts.getOriginalNodeId(node);\n currentSourceFile = node;\n moduleInfo = moduleInfoMap[id];\n exportFunction = exportFunctionsMap[id];\n noSubstitution = noSubstitutionMap[id];\n contextObject = contextObjectMap[id];\n if (noSubstitution) {\n delete noSubstitutionMap[id];\n }\n previousOnEmitNode(hint, node, emitCallback);\n currentSourceFile = undefined;\n moduleInfo = undefined;\n exportFunction = undefined;\n contextObject = undefined;\n noSubstitution = undefined;\n }\n else {\n previousOnEmitNode(hint, node, emitCallback);\n }\n }\n //\n // Substitutions\n //\n /**\n * Hooks node substitutions.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (isSubstitutionPrevented(node)) {\n return node;\n }\n if (hint === 1 /* Expression */) {\n return substituteExpression(node);\n }\n else if (hint === 4 /* Unspecified */) {\n return substituteUnspecified(node);\n }\n return node;\n }\n /**\n * Substitute the node, if necessary.\n *\n * @param node The node to substitute.\n */\n function substituteUnspecified(node) {\n switch (node.kind) {\n case 292 /* ShorthandPropertyAssignment */:\n return substituteShorthandPropertyAssignment(node);\n }\n return node;\n }\n /**\n * Substitution for a ShorthandPropertyAssignment whose name that may contain an imported or exported symbol.\n *\n * @param node The node to substitute.\n */\n function substituteShorthandPropertyAssignment(node) {\n var _a, _b;\n var name = node.name;\n if (!ts.isGeneratedIdentifier(name) && !ts.isLocalName(name)) {\n var importDeclaration = resolver.getReferencedImportDeclaration(name);\n if (importDeclaration) {\n if (ts.isImportClause(importDeclaration)) {\n return ts.setTextRange(factory.createPropertyAssignment(factory.cloneNode(name), factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(importDeclaration.parent), factory.createIdentifier(\"default\"))), \n /*location*/ node);\n }\n else if (ts.isImportSpecifier(importDeclaration)) {\n return ts.setTextRange(factory.createPropertyAssignment(factory.cloneNode(name), factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) || importDeclaration), factory.cloneNode(importDeclaration.propertyName || importDeclaration.name))), \n /*location*/ node);\n }\n }\n }\n return node;\n }\n /**\n * Substitute the expression, if necessary.\n *\n * @param node The node to substitute.\n */\n function substituteExpression(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return substituteExpressionIdentifier(node);\n case 219 /* BinaryExpression */:\n return substituteBinaryExpression(node);\n case 229 /* MetaProperty */:\n return substituteMetaProperty(node);\n }\n return node;\n }\n /**\n * Substitution for an Identifier expression that may contain an imported or exported symbol.\n *\n * @param node The node to substitute.\n */\n function substituteExpressionIdentifier(node) {\n var _a, _b;\n if (ts.getEmitFlags(node) & 4096 /* HelperName */) {\n var externalHelpersModuleName = ts.getExternalHelpersModuleName(currentSourceFile);\n if (externalHelpersModuleName) {\n return factory.createPropertyAccessExpression(externalHelpersModuleName, node);\n }\n return node;\n }\n // When we see an identifier in an expression position that\n // points to an imported symbol, we should substitute a qualified\n // reference to the imported symbol if one is needed.\n //\n // - We do not substitute generated identifiers for any reason.\n // - We do not substitute identifiers tagged with the LocalName flag.\n if (!ts.isGeneratedIdentifier(node) && !ts.isLocalName(node)) {\n var importDeclaration = resolver.getReferencedImportDeclaration(node);\n if (importDeclaration) {\n if (ts.isImportClause(importDeclaration)) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(importDeclaration.parent), factory.createIdentifier(\"default\")), \n /*location*/ node);\n }\n else if (ts.isImportSpecifier(importDeclaration)) {\n return ts.setTextRange(factory.createPropertyAccessExpression(factory.getGeneratedNameForNode(((_b = (_a = importDeclaration.parent) === null || _a === void 0 ? void 0 : _a.parent) === null || _b === void 0 ? void 0 : _b.parent) || importDeclaration), factory.cloneNode(importDeclaration.propertyName || importDeclaration.name)), \n /*location*/ node);\n }\n }\n }\n return node;\n }\n /**\n * Substitution for a BinaryExpression that may contain an imported or exported symbol.\n *\n * @param node The node to substitute.\n */\n function substituteBinaryExpression(node) {\n // When we see an assignment expression whose left-hand side is an exported symbol,\n // we should ensure all exports of that symbol are updated with the correct value.\n //\n // - We do not substitute generated identifiers for any reason.\n // - We do not substitute identifiers tagged with the LocalName flag.\n // - We do not substitute identifiers that were originally the name of an enum or\n // namespace due to how they are transformed in TypeScript.\n // - We only substitute identifiers that are exported at the top level.\n if (ts.isAssignmentOperator(node.operatorToken.kind)\n && ts.isIdentifier(node.left)\n && !ts.isGeneratedIdentifier(node.left)\n && !ts.isLocalName(node.left)\n && !ts.isDeclarationNameOfEnumOrNamespace(node.left)) {\n var exportedNames = getExports(node.left);\n if (exportedNames) {\n // For each additional export of the declaration, apply an export assignment.\n var expression = node;\n for (var _i = 0, exportedNames_5 = exportedNames; _i < exportedNames_5.length; _i++) {\n var exportName = exportedNames_5[_i];\n expression = createExportExpression(exportName, preventSubstitution(expression));\n }\n return expression;\n }\n }\n return node;\n }\n function substituteMetaProperty(node) {\n if (ts.isImportMeta(node)) {\n return factory.createPropertyAccessExpression(contextObject, factory.createIdentifier(\"meta\"));\n }\n return node;\n }\n /**\n * Gets the exports of a name.\n *\n * @param name The name.\n */\n function getExports(name) {\n var exportedNames;\n if (!ts.isGeneratedIdentifier(name)) {\n var valueDeclaration = resolver.getReferencedImportDeclaration(name)\n || resolver.getReferencedValueDeclaration(name);\n if (valueDeclaration) {\n var exportContainer = resolver.getReferencedExportContainer(name, /*prefixLocals*/ false);\n if (exportContainer && exportContainer.kind === 300 /* SourceFile */) {\n exportedNames = ts.append(exportedNames, factory.getDeclarationName(valueDeclaration));\n }\n exportedNames = ts.addRange(exportedNames, moduleInfo && moduleInfo.exportedBindings[ts.getOriginalNodeId(valueDeclaration)]);\n }\n }\n return exportedNames;\n }\n /**\n * Prevent substitution of a node for this transformer.\n *\n * @param node The node which should not be substituted.\n */\n function preventSubstitution(node) {\n if (noSubstitution === undefined)\n noSubstitution = [];\n noSubstitution[ts.getNodeId(node)] = true;\n return node;\n }\n /**\n * Determines whether a node should not be substituted.\n *\n * @param node The node to test.\n */\n function isSubstitutionPrevented(node) {\n return noSubstitution && node.id && noSubstitution[node.id];\n }\n }\n ts.transformSystemModule = transformSystemModule;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function transformECMAScriptModule(context) {\n var factory = context.factory, emitHelpers = context.getEmitHelperFactory;\n var compilerOptions = context.getCompilerOptions();\n var previousOnEmitNode = context.onEmitNode;\n var previousOnSubstituteNode = context.onSubstituteNode;\n context.onEmitNode = onEmitNode;\n context.onSubstituteNode = onSubstituteNode;\n context.enableEmitNotification(300 /* SourceFile */);\n context.enableSubstitution(79 /* Identifier */);\n var helperNameSubstitutions;\n return ts.chainBundle(context, transformSourceFile);\n function transformSourceFile(node) {\n if (node.isDeclarationFile) {\n return node;\n }\n if (ts.isExternalModule(node) || compilerOptions.isolatedModules) {\n var result = updateExternalModule(node);\n if (!ts.isExternalModule(node) || ts.some(result.statements, ts.isExternalModuleIndicator)) {\n return result;\n }\n return factory.updateSourceFile(result, ts.setTextRange(factory.createNodeArray(__spreadArray(__spreadArray([], result.statements, true), [ts.createEmptyExports(factory)], false)), result.statements));\n }\n return node;\n }\n function updateExternalModule(node) {\n var externalHelpersImportDeclaration = ts.createExternalHelpersImportDeclarationIfNeeded(factory, emitHelpers(), node, compilerOptions);\n if (externalHelpersImportDeclaration) {\n var statements = [];\n var statementOffset = factory.copyPrologue(node.statements, statements);\n ts.append(statements, externalHelpersImportDeclaration);\n ts.addRange(statements, ts.visitNodes(node.statements, visitor, ts.isStatement, statementOffset));\n return factory.updateSourceFile(node, ts.setTextRange(factory.createNodeArray(statements), node.statements));\n }\n else {\n return ts.visitEachChild(node, visitor, context);\n }\n }\n function visitor(node) {\n switch (node.kind) {\n case 263 /* ImportEqualsDeclaration */:\n // Elide `import=` as it is not legal with --module ES6\n return undefined;\n case 269 /* ExportAssignment */:\n return visitExportAssignment(node);\n case 270 /* ExportDeclaration */:\n var exportDecl = node;\n return visitExportDeclaration(exportDecl);\n }\n return node;\n }\n function visitExportAssignment(node) {\n // Elide `export=` as it is not legal with --module ES6\n return node.isExportEquals ? undefined : node;\n }\n function visitExportDeclaration(node) {\n // `export * as ns` only needs to be transformed in ES2015\n if (compilerOptions.module !== undefined && compilerOptions.module > ts.ModuleKind.ES2015) {\n return node;\n }\n // Either ill-formed or don't need to be tranformed.\n if (!node.exportClause || !ts.isNamespaceExport(node.exportClause) || !node.moduleSpecifier) {\n return node;\n }\n var oldIdentifier = node.exportClause.name;\n var synthName = factory.getGeneratedNameForNode(oldIdentifier);\n var importDecl = factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, factory.createImportClause(\n /*isTypeOnly*/ false, \n /*name*/ undefined, factory.createNamespaceImport(synthName)), node.moduleSpecifier);\n ts.setOriginalNode(importDecl, node.exportClause);\n var exportDecl = ts.isExportNamespaceAsDefaultDeclaration(node) ? factory.createExportDefault(synthName) : factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, factory.createNamedExports([factory.createExportSpecifier(synthName, oldIdentifier)]));\n ts.setOriginalNode(exportDecl, node);\n return [importDecl, exportDecl];\n }\n //\n // Emit Notification\n //\n /**\n * Hook for node emit.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emit A callback used to emit the node in the printer.\n */\n function onEmitNode(hint, node, emitCallback) {\n if (ts.isSourceFile(node)) {\n if ((ts.isExternalModule(node) || compilerOptions.isolatedModules) && compilerOptions.importHelpers) {\n helperNameSubstitutions = new ts.Map();\n }\n previousOnEmitNode(hint, node, emitCallback);\n helperNameSubstitutions = undefined;\n }\n else {\n previousOnEmitNode(hint, node, emitCallback);\n }\n }\n //\n // Substitutions\n //\n /**\n * Hooks node substitutions.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to substitute.\n */\n function onSubstituteNode(hint, node) {\n node = previousOnSubstituteNode(hint, node);\n if (helperNameSubstitutions && ts.isIdentifier(node) && ts.getEmitFlags(node) & 4096 /* HelperName */) {\n return substituteHelperName(node);\n }\n return node;\n }\n function substituteHelperName(node) {\n var name = ts.idText(node);\n var substitution = helperNameSubstitutions.get(name);\n if (!substitution) {\n helperNameSubstitutions.set(name, substitution = factory.createUniqueName(name, 16 /* Optimistic */ | 32 /* FileLevel */));\n }\n return substitution;\n }\n }\n ts.transformECMAScriptModule = transformECMAScriptModule;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function canProduceDiagnostics(node) {\n return ts.isVariableDeclaration(node) ||\n ts.isPropertyDeclaration(node) ||\n ts.isPropertySignature(node) ||\n ts.isBindingElement(node) ||\n ts.isSetAccessor(node) ||\n ts.isGetAccessor(node) ||\n ts.isConstructSignatureDeclaration(node) ||\n ts.isCallSignatureDeclaration(node) ||\n ts.isMethodDeclaration(node) ||\n ts.isMethodSignature(node) ||\n ts.isFunctionDeclaration(node) ||\n ts.isParameter(node) ||\n ts.isTypeParameterDeclaration(node) ||\n ts.isExpressionWithTypeArguments(node) ||\n ts.isImportEqualsDeclaration(node) ||\n ts.isTypeAliasDeclaration(node) ||\n ts.isConstructorDeclaration(node) ||\n ts.isIndexSignatureDeclaration(node) ||\n ts.isPropertyAccessExpression(node) ||\n ts.isJSDocTypeAlias(node);\n }\n ts.canProduceDiagnostics = canProduceDiagnostics;\n function createGetSymbolAccessibilityDiagnosticForNodeName(node) {\n if (ts.isSetAccessor(node) || ts.isGetAccessor(node)) {\n return getAccessorNameVisibilityError;\n }\n else if (ts.isMethodSignature(node) || ts.isMethodDeclaration(node)) {\n return getMethodNameVisibilityError;\n }\n else {\n return createGetSymbolAccessibilityDiagnosticForNode(node);\n }\n function getAccessorNameVisibilityError(symbolAccessibilityResult) {\n var diagnosticMessage = getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult);\n return diagnosticMessage !== undefined ? {\n diagnosticMessage: diagnosticMessage,\n errorNode: node,\n typeName: node.name\n } : undefined;\n }\n function getAccessorNameVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n if (ts.isStatic(node)) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1;\n }\n else if (node.parent.kind === 255 /* ClassDeclaration */) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1;\n }\n else {\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1;\n }\n }\n function getMethodNameVisibilityError(symbolAccessibilityResult) {\n var diagnosticMessage = getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult);\n return diagnosticMessage !== undefined ? {\n diagnosticMessage: diagnosticMessage,\n errorNode: node,\n typeName: node.name\n } : undefined;\n }\n function getMethodNameVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n if (ts.isStatic(node)) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Public_static_method_0_of_exported_class_has_or_is_using_private_name_1;\n }\n else if (node.parent.kind === 255 /* ClassDeclaration */) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Public_method_0_of_exported_class_has_or_is_using_private_name_1;\n }\n else {\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Method_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Method_0_of_exported_interface_has_or_is_using_private_name_1;\n }\n }\n }\n ts.createGetSymbolAccessibilityDiagnosticForNodeName = createGetSymbolAccessibilityDiagnosticForNodeName;\n function createGetSymbolAccessibilityDiagnosticForNode(node) {\n if (ts.isVariableDeclaration(node) || ts.isPropertyDeclaration(node) || ts.isPropertySignature(node) || ts.isPropertyAccessExpression(node) || ts.isBindingElement(node) || ts.isConstructorDeclaration(node)) {\n return getVariableDeclarationTypeVisibilityError;\n }\n else if (ts.isSetAccessor(node) || ts.isGetAccessor(node)) {\n return getAccessorDeclarationTypeVisibilityError;\n }\n else if (ts.isConstructSignatureDeclaration(node) || ts.isCallSignatureDeclaration(node) || ts.isMethodDeclaration(node) || ts.isMethodSignature(node) || ts.isFunctionDeclaration(node) || ts.isIndexSignatureDeclaration(node)) {\n return getReturnTypeVisibilityError;\n }\n else if (ts.isParameter(node)) {\n if (ts.isParameterPropertyDeclaration(node, node.parent) && ts.hasSyntacticModifier(node.parent, 8 /* Private */)) {\n return getVariableDeclarationTypeVisibilityError;\n }\n return getParameterDeclarationTypeVisibilityError;\n }\n else if (ts.isTypeParameterDeclaration(node)) {\n return getTypeParameterConstraintVisibilityError;\n }\n else if (ts.isExpressionWithTypeArguments(node)) {\n return getHeritageClauseVisibilityError;\n }\n else if (ts.isImportEqualsDeclaration(node)) {\n return getImportEntityNameVisibilityError;\n }\n else if (ts.isTypeAliasDeclaration(node) || ts.isJSDocTypeAlias(node)) {\n return getTypeAliasDeclarationVisibilityError;\n }\n else {\n return ts.Debug.assertNever(node, \"Attempted to set a declaration diagnostic context for unhandled node kind: \" + ts.SyntaxKind[node.kind]);\n }\n function getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n if (node.kind === 252 /* VariableDeclaration */ || node.kind === 201 /* BindingElement */) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Exported_variable_0_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Exported_variable_0_has_or_is_using_private_name_1;\n }\n // This check is to ensure we don't report error on constructor parameter property as that error would be reported during parameter emit\n // The only exception here is if the constructor was marked as private. we are not emitting the constructor parameters at all.\n else if (node.kind === 165 /* PropertyDeclaration */ || node.kind === 204 /* PropertyAccessExpression */ || node.kind === 164 /* PropertySignature */ ||\n (node.kind === 162 /* Parameter */ && ts.hasSyntacticModifier(node.parent, 8 /* Private */))) {\n // TODO(jfreeman): Deal with computed properties in error reporting.\n if (ts.isStatic(node)) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Public_static_property_0_of_exported_class_has_or_is_using_private_name_1;\n }\n else if (node.parent.kind === 255 /* ClassDeclaration */ || node.kind === 162 /* Parameter */) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Public_property_0_of_exported_class_has_or_is_using_private_name_1;\n }\n else {\n // Interfaces cannot have types that cannot be named\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Property_0_of_exported_interface_has_or_is_using_private_name_1;\n }\n }\n }\n function getVariableDeclarationTypeVisibilityError(symbolAccessibilityResult) {\n var diagnosticMessage = getVariableDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult);\n return diagnosticMessage !== undefined ? {\n diagnosticMessage: diagnosticMessage,\n errorNode: node,\n typeName: node.name\n } : undefined;\n }\n function getAccessorDeclarationTypeVisibilityError(symbolAccessibilityResult) {\n var diagnosticMessage;\n if (node.kind === 171 /* SetAccessor */) {\n // Getters can infer the return type from the returned expression, but setters cannot, so the\n // \"_from_external_module_1_but_cannot_be_named\" case cannot occur.\n if (ts.isStatic(node)) {\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_type_of_public_static_setter_0_from_exported_class_has_or_is_using_private_name_1;\n }\n else {\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_type_of_public_setter_0_from_exported_class_has_or_is_using_private_name_1;\n }\n }\n else {\n if (ts.isStatic(node)) {\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Return_type_of_public_static_getter_0_from_exported_class_has_or_is_using_private_name_1;\n }\n else {\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Return_type_of_public_getter_0_from_exported_class_has_or_is_using_private_name_1;\n }\n }\n return {\n diagnosticMessage: diagnosticMessage,\n errorNode: node.name,\n typeName: node.name\n };\n }\n function getReturnTypeVisibilityError(symbolAccessibilityResult) {\n var diagnosticMessage;\n switch (node.kind) {\n case 173 /* ConstructSignature */:\n // Interfaces cannot have return types that cannot be named\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_0;\n break;\n case 172 /* CallSignature */:\n // Interfaces cannot have return types that cannot be named\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_call_signature_from_exported_interface_has_or_is_using_private_name_0;\n break;\n case 174 /* IndexSignature */:\n // Interfaces cannot have return types that cannot be named\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_index_signature_from_exported_interface_has_or_is_using_private_name_0;\n break;\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n if (ts.isStatic(node)) {\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named :\n ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_public_static_method_from_exported_class_has_or_is_using_private_name_0;\n }\n else if (node.parent.kind === 255 /* ClassDeclaration */) {\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named :\n ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_public_method_from_exported_class_has_or_is_using_private_name_0;\n }\n else {\n // Interfaces cannot have return types that cannot be named\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_method_from_exported_interface_has_or_is_using_private_name_0;\n }\n break;\n case 254 /* FunctionDeclaration */:\n diagnosticMessage = symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_external_module_1_but_cannot_be_named :\n ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_name_0_from_private_module_1 :\n ts.Diagnostics.Return_type_of_exported_function_has_or_is_using_private_name_0;\n break;\n default:\n return ts.Debug.fail(\"This is unknown kind for signature: \" + node.kind);\n }\n return {\n diagnosticMessage: diagnosticMessage,\n errorNode: node.name || node\n };\n }\n function getParameterDeclarationTypeVisibilityError(symbolAccessibilityResult) {\n var diagnosticMessage = getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult);\n return diagnosticMessage !== undefined ? {\n diagnosticMessage: diagnosticMessage,\n errorNode: node,\n typeName: node.name\n } : undefined;\n }\n function getParameterDeclarationTypeVisibilityDiagnosticMessage(symbolAccessibilityResult) {\n switch (node.parent.kind) {\n case 169 /* Constructor */:\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_constructor_from_exported_class_has_or_is_using_private_name_1;\n case 173 /* ConstructSignature */:\n case 178 /* ConstructorType */:\n // Interfaces cannot have parameter types that cannot be named\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;\n case 172 /* CallSignature */:\n // Interfaces cannot have parameter types that cannot be named\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;\n case 174 /* IndexSignature */:\n // Interfaces cannot have parameter types that cannot be named\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_index_signature_from_exported_interface_has_or_is_using_private_name_1;\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n if (ts.isStatic(node.parent)) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1;\n }\n else if (node.parent.parent.kind === 255 /* ClassDeclaration */) {\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1;\n }\n else {\n // Interfaces cannot have parameter types that cannot be named\n return symbolAccessibilityResult.errorModuleName ?\n ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;\n }\n case 254 /* FunctionDeclaration */:\n case 177 /* FunctionType */:\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_exported_function_has_or_is_using_private_name_1;\n case 171 /* SetAccessor */:\n case 170 /* GetAccessor */:\n return symbolAccessibilityResult.errorModuleName ?\n symbolAccessibilityResult.accessibility === 2 /* CannotBeNamed */ ?\n ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_external_module_2_but_cannot_be_named :\n ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_name_1_from_private_module_2 :\n ts.Diagnostics.Parameter_0_of_accessor_has_or_is_using_private_name_1;\n default:\n return ts.Debug.fail(\"Unknown parent for parameter: \" + ts.SyntaxKind[node.parent.kind]);\n }\n }\n function getTypeParameterConstraintVisibilityError() {\n // Type parameter constraints are named by user so we should always be able to name it\n var diagnosticMessage;\n switch (node.parent.kind) {\n case 255 /* ClassDeclaration */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_class_has_or_is_using_private_name_1;\n break;\n case 256 /* InterfaceDeclaration */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1;\n break;\n case 193 /* MappedType */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_mapped_object_type_is_using_private_name_1;\n break;\n case 178 /* ConstructorType */:\n case 173 /* ConstructSignature */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_constructor_signature_from_exported_interface_has_or_is_using_private_name_1;\n break;\n case 172 /* CallSignature */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_call_signature_from_exported_interface_has_or_is_using_private_name_1;\n break;\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n if (ts.isStatic(node.parent)) {\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_public_static_method_from_exported_class_has_or_is_using_private_name_1;\n }\n else if (node.parent.parent.kind === 255 /* ClassDeclaration */) {\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_public_method_from_exported_class_has_or_is_using_private_name_1;\n }\n else {\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_method_from_exported_interface_has_or_is_using_private_name_1;\n }\n break;\n case 177 /* FunctionType */:\n case 254 /* FunctionDeclaration */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_function_has_or_is_using_private_name_1;\n break;\n case 257 /* TypeAliasDeclaration */:\n diagnosticMessage = ts.Diagnostics.Type_parameter_0_of_exported_type_alias_has_or_is_using_private_name_1;\n break;\n default:\n return ts.Debug.fail(\"This is unknown parent for type parameter: \" + node.parent.kind);\n }\n return {\n diagnosticMessage: diagnosticMessage,\n errorNode: node,\n typeName: node.name\n };\n }\n function getHeritageClauseVisibilityError() {\n var diagnosticMessage;\n // Heritage clause is written by user so it can always be named\n if (ts.isClassDeclaration(node.parent.parent)) {\n // Class or Interface implemented/extended is inaccessible\n diagnosticMessage = ts.isHeritageClause(node.parent) && node.parent.token === 117 /* ImplementsKeyword */ ?\n ts.Diagnostics.Implements_clause_of_exported_class_0_has_or_is_using_private_name_1 :\n node.parent.parent.name ? ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1 :\n ts.Diagnostics.extends_clause_of_exported_class_has_or_is_using_private_name_0;\n }\n else {\n // interface is inaccessible\n diagnosticMessage = ts.Diagnostics.extends_clause_of_exported_interface_0_has_or_is_using_private_name_1;\n }\n return {\n diagnosticMessage: diagnosticMessage,\n errorNode: node,\n typeName: ts.getNameOfDeclaration(node.parent.parent)\n };\n }\n function getImportEntityNameVisibilityError() {\n return {\n diagnosticMessage: ts.Diagnostics.Import_declaration_0_is_using_private_name_1,\n errorNode: node,\n typeName: node.name\n };\n }\n function getTypeAliasDeclarationVisibilityError(symbolAccessibilityResult) {\n return {\n diagnosticMessage: symbolAccessibilityResult.errorModuleName\n ? ts.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1_from_module_2\n : ts.Diagnostics.Exported_type_alias_0_has_or_is_using_private_name_1,\n errorNode: ts.isJSDocTypeAlias(node) ? ts.Debug.checkDefined(node.typeExpression) : node.type,\n typeName: ts.isJSDocTypeAlias(node) ? ts.getNameOfDeclaration(node) : node.name,\n };\n }\n }\n ts.createGetSymbolAccessibilityDiagnosticForNode = createGetSymbolAccessibilityDiagnosticForNode;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function getDeclarationDiagnostics(host, resolver, file) {\n var compilerOptions = host.getCompilerOptions();\n var result = ts.transformNodes(resolver, host, ts.factory, compilerOptions, file ? [file] : ts.filter(host.getSourceFiles(), ts.isSourceFileNotJson), [transformDeclarations], /*allowDtsFiles*/ false);\n return result.diagnostics;\n }\n ts.getDeclarationDiagnostics = getDeclarationDiagnostics;\n function hasInternalAnnotation(range, currentSourceFile) {\n var comment = currentSourceFile.text.substring(range.pos, range.end);\n return ts.stringContains(comment, \"@internal\");\n }\n function isInternalDeclaration(node, currentSourceFile) {\n var parseTreeNode = ts.getParseTreeNode(node);\n if (parseTreeNode && parseTreeNode.kind === 162 /* Parameter */) {\n var paramIdx = parseTreeNode.parent.parameters.indexOf(parseTreeNode);\n var previousSibling = paramIdx > 0 ? parseTreeNode.parent.parameters[paramIdx - 1] : undefined;\n var text = currentSourceFile.text;\n var commentRanges = previousSibling\n ? ts.concatenate(\n // to handle\n // ... parameters, /* @internal */\n // public param: string\n ts.getTrailingCommentRanges(text, ts.skipTrivia(text, previousSibling.end + 1, /* stopAfterLineBreak */ false, /* stopAtComments */ true)), ts.getLeadingCommentRanges(text, node.pos))\n : ts.getTrailingCommentRanges(text, ts.skipTrivia(text, node.pos, /* stopAfterLineBreak */ false, /* stopAtComments */ true));\n return commentRanges && commentRanges.length && hasInternalAnnotation(ts.last(commentRanges), currentSourceFile);\n }\n var leadingCommentRanges = parseTreeNode && ts.getLeadingCommentRangesOfNode(parseTreeNode, currentSourceFile);\n return !!ts.forEach(leadingCommentRanges, function (range) {\n return hasInternalAnnotation(range, currentSourceFile);\n });\n }\n ts.isInternalDeclaration = isInternalDeclaration;\n var declarationEmitNodeBuilderFlags = 1024 /* MultilineObjectLiterals */ |\n 2048 /* WriteClassExpressionAsTypeLiteral */ |\n 4096 /* UseTypeOfFunction */ |\n 8 /* UseStructuralFallback */ |\n 524288 /* AllowEmptyTuple */ |\n 4 /* GenerateNamesForShadowedTypeParams */ |\n 1 /* NoTruncation */;\n /**\n * Transforms a ts file into a .d.ts file\n * This process requires type information, which is retrieved through the emit resolver. Because of this,\n * in many places this transformer assumes it will be operating on parse tree nodes directly.\n * This means that _no transforms should be allowed to occur before this one_.\n */\n function transformDeclarations(context) {\n var throwDiagnostic = function () { return ts.Debug.fail(\"Diagnostic emitted without context\"); };\n var getSymbolAccessibilityDiagnostic = throwDiagnostic;\n var needsDeclare = true;\n var isBundledEmit = false;\n var resultHasExternalModuleIndicator = false;\n var needsScopeFixMarker = false;\n var resultHasScopeMarker = false;\n var enclosingDeclaration;\n var necessaryTypeReferences;\n var lateMarkedStatements;\n var lateStatementReplacementMap;\n var suppressNewDiagnosticContexts;\n var exportedModulesFromDeclarationEmit;\n var factory = context.factory;\n var host = context.getEmitHost();\n var symbolTracker = {\n trackSymbol: trackSymbol,\n reportInaccessibleThisError: reportInaccessibleThisError,\n reportInaccessibleUniqueSymbolError: reportInaccessibleUniqueSymbolError,\n reportCyclicStructureError: reportCyclicStructureError,\n reportPrivateInBaseOfClassExpression: reportPrivateInBaseOfClassExpression,\n reportLikelyUnsafeImportRequiredError: reportLikelyUnsafeImportRequiredError,\n reportTruncationError: reportTruncationError,\n moduleResolverHost: host,\n trackReferencedAmbientModule: trackReferencedAmbientModule,\n trackExternalModuleSymbolOfImportTypeNode: trackExternalModuleSymbolOfImportTypeNode,\n reportNonlocalAugmentation: reportNonlocalAugmentation,\n reportNonSerializableProperty: reportNonSerializableProperty\n };\n var errorNameNode;\n var errorFallbackNode;\n var currentSourceFile;\n var refs;\n var libs;\n var emittedImports; // must be declared in container so it can be `undefined` while transformer's first pass\n var resolver = context.getEmitResolver();\n var options = context.getCompilerOptions();\n var noResolve = options.noResolve, stripInternal = options.stripInternal;\n return transformRoot;\n function recordTypeReferenceDirectivesIfNecessary(typeReferenceDirectives) {\n if (!typeReferenceDirectives) {\n return;\n }\n necessaryTypeReferences = necessaryTypeReferences || new ts.Set();\n for (var _i = 0, typeReferenceDirectives_2 = typeReferenceDirectives; _i < typeReferenceDirectives_2.length; _i++) {\n var ref = typeReferenceDirectives_2[_i];\n necessaryTypeReferences.add(ref);\n }\n }\n function trackReferencedAmbientModule(node, symbol) {\n // If it is visible via `// `, then we should just use that\n var directives = resolver.getTypeReferenceDirectivesForSymbol(symbol, 67108863 /* All */);\n if (ts.length(directives)) {\n return recordTypeReferenceDirectivesIfNecessary(directives);\n }\n // Otherwise we should emit a path-based reference\n var container = ts.getSourceFileOfNode(node);\n refs.set(ts.getOriginalNodeId(container), container);\n }\n function handleSymbolAccessibilityError(symbolAccessibilityResult) {\n if (symbolAccessibilityResult.accessibility === 0 /* Accessible */) {\n // Add aliases back onto the possible imports list if they're not there so we can try them again with updated visibility info\n if (symbolAccessibilityResult && symbolAccessibilityResult.aliasesToMakeVisible) {\n if (!lateMarkedStatements) {\n lateMarkedStatements = symbolAccessibilityResult.aliasesToMakeVisible;\n }\n else {\n for (var _i = 0, _a = symbolAccessibilityResult.aliasesToMakeVisible; _i < _a.length; _i++) {\n var ref = _a[_i];\n ts.pushIfUnique(lateMarkedStatements, ref);\n }\n }\n }\n // TODO: Do all these accessibility checks inside/after the first pass in the checker when declarations are enabled, if possible\n }\n else {\n // Report error\n var errorInfo = getSymbolAccessibilityDiagnostic(symbolAccessibilityResult);\n if (errorInfo) {\n if (errorInfo.typeName) {\n context.addDiagnostic(ts.createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, ts.getTextOfNode(errorInfo.typeName), symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName));\n }\n else {\n context.addDiagnostic(ts.createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName));\n }\n return true;\n }\n }\n return false;\n }\n function trackExternalModuleSymbolOfImportTypeNode(symbol) {\n if (!isBundledEmit) {\n (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);\n }\n }\n function trackSymbol(symbol, enclosingDeclaration, meaning) {\n if (symbol.flags & 262144 /* TypeParameter */)\n return false;\n var issuedDiagnostic = handleSymbolAccessibilityError(resolver.isSymbolAccessible(symbol, enclosingDeclaration, meaning, /*shouldComputeAliasesToMakeVisible*/ true));\n recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForSymbol(symbol, meaning));\n return issuedDiagnostic;\n }\n function reportPrivateInBaseOfClassExpression(propertyName) {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.Property_0_of_exported_class_expression_may_not_be_private_or_protected, propertyName));\n }\n }\n function errorDeclarationNameWithFallback() {\n return errorNameNode ? ts.declarationNameToString(errorNameNode) :\n errorFallbackNode && ts.getNameOfDeclaration(errorFallbackNode) ? ts.declarationNameToString(ts.getNameOfDeclaration(errorFallbackNode)) :\n errorFallbackNode && ts.isExportAssignment(errorFallbackNode) ? errorFallbackNode.isExportEquals ? \"export=\" : \"default\" :\n \"(Missing)\"; // same fallback declarationNameToString uses when node is zero-width (ie, nameless)\n }\n function reportInaccessibleUniqueSymbolError() {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), \"unique symbol\"));\n }\n }\n function reportCyclicStructureError() {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.The_inferred_type_of_0_references_a_type_with_a_cyclic_structure_which_cannot_be_trivially_serialized_A_type_annotation_is_necessary, errorDeclarationNameWithFallback()));\n }\n }\n function reportInaccessibleThisError() {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.The_inferred_type_of_0_references_an_inaccessible_1_type_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), \"this\"));\n }\n }\n function reportLikelyUnsafeImportRequiredError(specifier) {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.The_inferred_type_of_0_cannot_be_named_without_a_reference_to_1_This_is_likely_not_portable_A_type_annotation_is_necessary, errorDeclarationNameWithFallback(), specifier));\n }\n }\n function reportTruncationError() {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.The_inferred_type_of_this_node_exceeds_the_maximum_length_the_compiler_will_serialize_An_explicit_type_annotation_is_needed));\n }\n }\n function reportNonlocalAugmentation(containingFile, parentSymbol, symbol) {\n var _a;\n var primaryDeclaration = (_a = parentSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return ts.getSourceFileOfNode(d) === containingFile; });\n var augmentingDeclarations = ts.filter(symbol.declarations, function (d) { return ts.getSourceFileOfNode(d) !== containingFile; });\n if (augmentingDeclarations) {\n for (var _i = 0, augmentingDeclarations_1 = augmentingDeclarations; _i < augmentingDeclarations_1.length; _i++) {\n var augmentations = augmentingDeclarations_1[_i];\n context.addDiagnostic(ts.addRelatedInfo(ts.createDiagnosticForNode(augmentations, ts.Diagnostics.Declaration_augments_declaration_in_another_file_This_cannot_be_serialized), ts.createDiagnosticForNode(primaryDeclaration, ts.Diagnostics.This_is_the_declaration_being_augmented_Consider_moving_the_augmenting_declaration_into_the_same_file)));\n }\n }\n }\n function reportNonSerializableProperty(propertyName) {\n if (errorNameNode || errorFallbackNode) {\n context.addDiagnostic(ts.createDiagnosticForNode((errorNameNode || errorFallbackNode), ts.Diagnostics.The_type_of_this_node_cannot_be_serialized_because_its_property_0_cannot_be_serialized, propertyName));\n }\n }\n function transformDeclarationsForJS(sourceFile, bundled) {\n var oldDiag = getSymbolAccessibilityDiagnostic;\n getSymbolAccessibilityDiagnostic = function (s) { return (s.errorNode && ts.canProduceDiagnostics(s.errorNode) ? ts.createGetSymbolAccessibilityDiagnosticForNode(s.errorNode)(s) : ({\n diagnosticMessage: s.errorModuleName\n ? ts.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_from_module_1_An_explicit_type_annotation_may_unblock_declaration_emit\n : ts.Diagnostics.Declaration_emit_for_this_file_requires_using_private_name_0_An_explicit_type_annotation_may_unblock_declaration_emit,\n errorNode: s.errorNode || sourceFile\n })); };\n var result = resolver.getDeclarationStatementsForSourceFile(sourceFile, declarationEmitNodeBuilderFlags, symbolTracker, bundled);\n getSymbolAccessibilityDiagnostic = oldDiag;\n return result;\n }\n function transformRoot(node) {\n if (node.kind === 300 /* SourceFile */ && node.isDeclarationFile) {\n return node;\n }\n if (node.kind === 301 /* Bundle */) {\n isBundledEmit = true;\n refs = new ts.Map();\n libs = new ts.Map();\n var hasNoDefaultLib_1 = false;\n var bundle = factory.createBundle(ts.map(node.sourceFiles, function (sourceFile) {\n if (sourceFile.isDeclarationFile)\n return undefined; // Omit declaration files from bundle results, too // TODO: GH#18217\n hasNoDefaultLib_1 = hasNoDefaultLib_1 || sourceFile.hasNoDefaultLib;\n currentSourceFile = sourceFile;\n enclosingDeclaration = sourceFile;\n lateMarkedStatements = undefined;\n suppressNewDiagnosticContexts = false;\n lateStatementReplacementMap = new ts.Map();\n getSymbolAccessibilityDiagnostic = throwDiagnostic;\n needsScopeFixMarker = false;\n resultHasScopeMarker = false;\n collectReferences(sourceFile, refs);\n collectLibs(sourceFile, libs);\n if (ts.isExternalOrCommonJsModule(sourceFile) || ts.isJsonSourceFile(sourceFile)) {\n resultHasExternalModuleIndicator = false; // unused in external module bundle emit (all external modules are within module blocks, therefore are known to be modules)\n needsDeclare = false;\n var statements = ts.isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS(sourceFile, /*bundled*/ true)) : ts.visitNodes(sourceFile.statements, visitDeclarationStatements);\n var newFile = factory.updateSourceFile(sourceFile, [factory.createModuleDeclaration([], [factory.createModifier(134 /* DeclareKeyword */)], factory.createStringLiteral(ts.getResolvedExternalModuleName(context.getEmitHost(), sourceFile)), factory.createModuleBlock(ts.setTextRange(factory.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), sourceFile.statements)))], /*isDeclarationFile*/ true, /*referencedFiles*/ [], /*typeReferences*/ [], /*hasNoDefaultLib*/ false, /*libReferences*/ []);\n return newFile;\n }\n needsDeclare = true;\n var updated = ts.isSourceFileJS(sourceFile) ? factory.createNodeArray(transformDeclarationsForJS(sourceFile)) : ts.visitNodes(sourceFile.statements, visitDeclarationStatements);\n return factory.updateSourceFile(sourceFile, transformAndReplaceLatePaintedStatements(updated), /*isDeclarationFile*/ true, /*referencedFiles*/ [], /*typeReferences*/ [], /*hasNoDefaultLib*/ false, /*libReferences*/ []);\n }), ts.mapDefined(node.prepends, function (prepend) {\n if (prepend.kind === 303 /* InputFiles */) {\n var sourceFile = ts.createUnparsedSourceFile(prepend, \"dts\", stripInternal);\n hasNoDefaultLib_1 = hasNoDefaultLib_1 || !!sourceFile.hasNoDefaultLib;\n collectReferences(sourceFile, refs);\n recordTypeReferenceDirectivesIfNecessary(sourceFile.typeReferenceDirectives);\n collectLibs(sourceFile, libs);\n return sourceFile;\n }\n return prepend;\n }));\n bundle.syntheticFileReferences = [];\n bundle.syntheticTypeReferences = getFileReferencesForUsedTypeReferences();\n bundle.syntheticLibReferences = getLibReferences();\n bundle.hasNoDefaultLib = hasNoDefaultLib_1;\n var outputFilePath_1 = ts.getDirectoryPath(ts.normalizeSlashes(ts.getOutputPathsFor(node, host, /*forceDtsPaths*/ true).declarationFilePath));\n var referenceVisitor_1 = mapReferencesIntoArray(bundle.syntheticFileReferences, outputFilePath_1);\n refs.forEach(referenceVisitor_1);\n return bundle;\n }\n // Single source file\n needsDeclare = true;\n needsScopeFixMarker = false;\n resultHasScopeMarker = false;\n enclosingDeclaration = node;\n currentSourceFile = node;\n getSymbolAccessibilityDiagnostic = throwDiagnostic;\n isBundledEmit = false;\n resultHasExternalModuleIndicator = false;\n suppressNewDiagnosticContexts = false;\n lateMarkedStatements = undefined;\n lateStatementReplacementMap = new ts.Map();\n necessaryTypeReferences = undefined;\n refs = collectReferences(currentSourceFile, new ts.Map());\n libs = collectLibs(currentSourceFile, new ts.Map());\n var references = [];\n var outputFilePath = ts.getDirectoryPath(ts.normalizeSlashes(ts.getOutputPathsFor(node, host, /*forceDtsPaths*/ true).declarationFilePath));\n var referenceVisitor = mapReferencesIntoArray(references, outputFilePath);\n var combinedStatements;\n if (ts.isSourceFileJS(currentSourceFile)) {\n combinedStatements = factory.createNodeArray(transformDeclarationsForJS(node));\n refs.forEach(referenceVisitor);\n emittedImports = ts.filter(combinedStatements, ts.isAnyImportSyntax);\n }\n else {\n var statements = ts.visitNodes(node.statements, visitDeclarationStatements);\n combinedStatements = ts.setTextRange(factory.createNodeArray(transformAndReplaceLatePaintedStatements(statements)), node.statements);\n refs.forEach(referenceVisitor);\n emittedImports = ts.filter(combinedStatements, ts.isAnyImportSyntax);\n if (ts.isExternalModule(node) && (!resultHasExternalModuleIndicator || (needsScopeFixMarker && !resultHasScopeMarker))) {\n combinedStatements = ts.setTextRange(factory.createNodeArray(__spreadArray(__spreadArray([], combinedStatements, true), [ts.createEmptyExports(factory)], false)), combinedStatements);\n }\n }\n var updated = factory.updateSourceFile(node, combinedStatements, /*isDeclarationFile*/ true, references, getFileReferencesForUsedTypeReferences(), node.hasNoDefaultLib, getLibReferences());\n updated.exportedModulesFromDeclarationEmit = exportedModulesFromDeclarationEmit;\n return updated;\n function getLibReferences() {\n return ts.map(ts.arrayFrom(libs.keys()), function (lib) { return ({ fileName: lib, pos: -1, end: -1 }); });\n }\n function getFileReferencesForUsedTypeReferences() {\n return necessaryTypeReferences ? ts.mapDefined(ts.arrayFrom(necessaryTypeReferences.keys()), getFileReferenceForTypeName) : [];\n }\n function getFileReferenceForTypeName(typeName) {\n // Elide type references for which we have imports\n if (emittedImports) {\n for (var _i = 0, emittedImports_1 = emittedImports; _i < emittedImports_1.length; _i++) {\n var importStatement = emittedImports_1[_i];\n if (ts.isImportEqualsDeclaration(importStatement) && ts.isExternalModuleReference(importStatement.moduleReference)) {\n var expr = importStatement.moduleReference.expression;\n if (ts.isStringLiteralLike(expr) && expr.text === typeName) {\n return undefined;\n }\n }\n else if (ts.isImportDeclaration(importStatement) && ts.isStringLiteral(importStatement.moduleSpecifier) && importStatement.moduleSpecifier.text === typeName) {\n return undefined;\n }\n }\n }\n return { fileName: typeName, pos: -1, end: -1 };\n }\n function mapReferencesIntoArray(references, outputFilePath) {\n return function (file) {\n var declFileName;\n if (file.isDeclarationFile) { // Neither decl files or js should have their refs changed\n declFileName = file.fileName;\n }\n else {\n if (isBundledEmit && ts.contains(node.sourceFiles, file))\n return; // Omit references to files which are being merged\n var paths = ts.getOutputPathsFor(file, host, /*forceDtsPaths*/ true);\n declFileName = paths.declarationFilePath || paths.jsFilePath || file.fileName;\n }\n if (declFileName) {\n var specifier = ts.moduleSpecifiers.getModuleSpecifier(options, currentSourceFile, ts.toPath(outputFilePath, host.getCurrentDirectory(), host.getCanonicalFileName), ts.toPath(declFileName, host.getCurrentDirectory(), host.getCanonicalFileName), host);\n if (!ts.pathIsRelative(specifier)) {\n // If some compiler option/symlink/whatever allows access to the file containing the ambient module declaration\n // via a non-relative name, emit a type reference directive to that non-relative name, rather than\n // a relative path to the declaration file\n recordTypeReferenceDirectivesIfNecessary([specifier]);\n return;\n }\n var fileName = ts.getRelativePathToDirectoryOrUrl(outputFilePath, declFileName, host.getCurrentDirectory(), host.getCanonicalFileName, \n /*isAbsolutePathAnUrl*/ false);\n if (ts.startsWith(fileName, \"./\") && ts.hasExtension(fileName)) {\n fileName = fileName.substring(2);\n }\n // omit references to files from node_modules (npm may disambiguate module\n // references when installing this package, making the path is unreliable).\n if (ts.startsWith(fileName, \"node_modules/\") || ts.pathContainsNodeModules(fileName)) {\n return;\n }\n references.push({ pos: -1, end: -1, fileName: fileName });\n }\n };\n }\n }\n function collectReferences(sourceFile, ret) {\n if (noResolve || (!ts.isUnparsedSource(sourceFile) && ts.isSourceFileJS(sourceFile)))\n return ret;\n ts.forEach(sourceFile.referencedFiles, function (f) {\n var elem = host.getSourceFileFromReference(sourceFile, f);\n if (elem) {\n ret.set(ts.getOriginalNodeId(elem), elem);\n }\n });\n return ret;\n }\n function collectLibs(sourceFile, ret) {\n ts.forEach(sourceFile.libReferenceDirectives, function (ref) {\n var lib = host.getLibFileFromReference(ref);\n if (lib) {\n ret.set(ts.toFileNameLowerCase(ref.fileName), true);\n }\n });\n return ret;\n }\n function filterBindingPatternInitializers(name) {\n if (name.kind === 79 /* Identifier */) {\n return name;\n }\n else {\n if (name.kind === 200 /* ArrayBindingPattern */) {\n return factory.updateArrayBindingPattern(name, ts.visitNodes(name.elements, visitBindingElement));\n }\n else {\n return factory.updateObjectBindingPattern(name, ts.visitNodes(name.elements, visitBindingElement));\n }\n }\n function visitBindingElement(elem) {\n if (elem.kind === 225 /* OmittedExpression */) {\n return elem;\n }\n return factory.updateBindingElement(elem, elem.dotDotDotToken, elem.propertyName, filterBindingPatternInitializers(elem.name), shouldPrintWithInitializer(elem) ? elem.initializer : undefined);\n }\n }\n function ensureParameter(p, modifierMask, type) {\n var oldDiag;\n if (!suppressNewDiagnosticContexts) {\n oldDiag = getSymbolAccessibilityDiagnostic;\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(p);\n }\n var newParam = factory.updateParameterDeclaration(p, \n /*decorators*/ undefined, maskModifiers(p, modifierMask), p.dotDotDotToken, filterBindingPatternInitializers(p.name), resolver.isOptionalParameter(p) ? (p.questionToken || factory.createToken(57 /* QuestionToken */)) : undefined, ensureType(p, type || p.type, /*ignorePrivate*/ true), // Ignore private param props, since this type is going straight back into a param\n ensureNoInitializer(p));\n if (!suppressNewDiagnosticContexts) {\n getSymbolAccessibilityDiagnostic = oldDiag;\n }\n return newParam;\n }\n function shouldPrintWithInitializer(node) {\n return canHaveLiteralInitializer(node) && resolver.isLiteralConstDeclaration(ts.getParseTreeNode(node)); // TODO: Make safe\n }\n function ensureNoInitializer(node) {\n if (shouldPrintWithInitializer(node)) {\n return resolver.createLiteralConstValue(ts.getParseTreeNode(node), symbolTracker); // TODO: Make safe\n }\n return undefined;\n }\n function ensureType(node, type, ignorePrivate) {\n if (!ignorePrivate && ts.hasEffectiveModifier(node, 8 /* Private */)) {\n // Private nodes emit no types (except private parameter properties, whose parameter types are actually visible)\n return;\n }\n if (shouldPrintWithInitializer(node)) {\n // Literal const declarations will have an initializer ensured rather than a type\n return;\n }\n var shouldUseResolverType = node.kind === 162 /* Parameter */ &&\n (resolver.isRequiredInitializedParameter(node) ||\n resolver.isOptionalUninitializedParameterProperty(node));\n if (type && !shouldUseResolverType) {\n return ts.visitNode(type, visitDeclarationSubtree);\n }\n if (!ts.getParseTreeNode(node)) {\n return type ? ts.visitNode(type, visitDeclarationSubtree) : factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n if (node.kind === 171 /* SetAccessor */) {\n // Set accessors with no associated type node (from it's param or get accessor return) are `any` since they are never contextually typed right now\n // (The inferred type here will be void, but the old declaration emitter printed `any`, so this replicates that)\n return factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n errorNameNode = node.name;\n var oldDiag;\n if (!suppressNewDiagnosticContexts) {\n oldDiag = getSymbolAccessibilityDiagnostic;\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(node);\n }\n if (node.kind === 252 /* VariableDeclaration */ || node.kind === 201 /* BindingElement */) {\n return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker));\n }\n if (node.kind === 162 /* Parameter */\n || node.kind === 165 /* PropertyDeclaration */\n || node.kind === 164 /* PropertySignature */) {\n if (!node.initializer)\n return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType));\n return cleanup(resolver.createTypeOfDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker, shouldUseResolverType) || resolver.createTypeOfExpression(node.initializer, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker));\n }\n return cleanup(resolver.createReturnTypeOfSignatureDeclaration(node, enclosingDeclaration, declarationEmitNodeBuilderFlags, symbolTracker));\n function cleanup(returnValue) {\n errorNameNode = undefined;\n if (!suppressNewDiagnosticContexts) {\n getSymbolAccessibilityDiagnostic = oldDiag;\n }\n return returnValue || factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n }\n function isDeclarationAndNotVisible(node) {\n node = ts.getParseTreeNode(node);\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 255 /* ClassDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 258 /* EnumDeclaration */:\n return !resolver.isDeclarationVisible(node);\n // The following should be doing their own visibility checks based on filtering their members\n case 252 /* VariableDeclaration */:\n return !getBindingNameVisible(node);\n case 263 /* ImportEqualsDeclaration */:\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n case 269 /* ExportAssignment */:\n return false;\n case 168 /* ClassStaticBlockDeclaration */:\n return true;\n }\n return false;\n }\n // If the ExpandoFunctionDeclaration have multiple overloads, then we only need to emit properties for the last one.\n function shouldEmitFunctionProperties(input) {\n var _a;\n if (input.body) {\n return true;\n }\n var overloadSignatures = (_a = input.symbol.declarations) === null || _a === void 0 ? void 0 : _a.filter(function (decl) { return ts.isFunctionDeclaration(decl) && !decl.body; });\n return !overloadSignatures || overloadSignatures.indexOf(input) === overloadSignatures.length - 1;\n }\n function getBindingNameVisible(elem) {\n if (ts.isOmittedExpression(elem)) {\n return false;\n }\n if (ts.isBindingPattern(elem.name)) {\n // If any child binding pattern element has been marked visible (usually by collect linked aliases), then this is visible\n return ts.some(elem.name.elements, getBindingNameVisible);\n }\n else {\n return resolver.isDeclarationVisible(elem);\n }\n }\n function updateParamsList(node, params, modifierMask) {\n if (ts.hasEffectiveModifier(node, 8 /* Private */)) {\n return undefined; // TODO: GH#18217\n }\n var newParams = ts.map(params, function (p) { return ensureParameter(p, modifierMask); });\n if (!newParams) {\n return undefined; // TODO: GH#18217\n }\n return factory.createNodeArray(newParams, params.hasTrailingComma);\n }\n function updateAccessorParamsList(input, isPrivate) {\n var newParams;\n if (!isPrivate) {\n var thisParameter = ts.getThisParameter(input);\n if (thisParameter) {\n newParams = [ensureParameter(thisParameter)];\n }\n }\n if (ts.isSetAccessorDeclaration(input)) {\n var newValueParameter = void 0;\n if (!isPrivate) {\n var valueParameter = ts.getSetAccessorValueParameter(input);\n if (valueParameter) {\n var accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, resolver.getAllAccessorDeclarations(input));\n newValueParameter = ensureParameter(valueParameter, /*modifierMask*/ undefined, accessorType);\n }\n }\n if (!newValueParameter) {\n newValueParameter = factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, \"value\");\n }\n newParams = ts.append(newParams, newValueParameter);\n }\n return factory.createNodeArray(newParams || ts.emptyArray);\n }\n function ensureTypeParams(node, params) {\n return ts.hasEffectiveModifier(node, 8 /* Private */) ? undefined : ts.visitNodes(params, visitDeclarationSubtree);\n }\n function isEnclosingDeclaration(node) {\n return ts.isSourceFile(node)\n || ts.isTypeAliasDeclaration(node)\n || ts.isModuleDeclaration(node)\n || ts.isClassDeclaration(node)\n || ts.isInterfaceDeclaration(node)\n || ts.isFunctionLike(node)\n || ts.isIndexSignatureDeclaration(node)\n || ts.isMappedTypeNode(node);\n }\n function checkEntityNameVisibility(entityName, enclosingDeclaration) {\n var visibilityResult = resolver.isEntityNameVisible(entityName, enclosingDeclaration);\n handleSymbolAccessibilityError(visibilityResult);\n recordTypeReferenceDirectivesIfNecessary(resolver.getTypeReferenceDirectivesForEntityName(entityName));\n }\n function preserveJsDoc(updated, original) {\n if (ts.hasJSDocNodes(updated) && ts.hasJSDocNodes(original)) {\n updated.jsDoc = original.jsDoc;\n }\n return ts.setCommentRange(updated, ts.getCommentRange(original));\n }\n function rewriteModuleSpecifier(parent, input) {\n if (!input)\n return undefined; // TODO: GH#18217\n resultHasExternalModuleIndicator = resultHasExternalModuleIndicator || (parent.kind !== 259 /* ModuleDeclaration */ && parent.kind !== 198 /* ImportType */);\n if (ts.isStringLiteralLike(input)) {\n if (isBundledEmit) {\n var newName = ts.getExternalModuleNameFromDeclaration(context.getEmitHost(), resolver, parent);\n if (newName) {\n return factory.createStringLiteral(newName);\n }\n }\n else {\n var symbol = resolver.getSymbolOfExternalModuleSpecifier(input);\n if (symbol) {\n (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol);\n }\n }\n }\n return input;\n }\n function transformImportEqualsDeclaration(decl) {\n if (!resolver.isDeclarationVisible(decl))\n return;\n if (decl.moduleReference.kind === 275 /* ExternalModuleReference */) {\n // Rewrite external module names if necessary\n var specifier = ts.getExternalModuleImportEqualsDeclarationExpression(decl);\n return factory.updateImportEqualsDeclaration(decl, \n /*decorators*/ undefined, decl.modifiers, decl.isTypeOnly, decl.name, factory.updateExternalModuleReference(decl.moduleReference, rewriteModuleSpecifier(decl, specifier)));\n }\n else {\n var oldDiag = getSymbolAccessibilityDiagnostic;\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(decl);\n checkEntityNameVisibility(decl.moduleReference, enclosingDeclaration);\n getSymbolAccessibilityDiagnostic = oldDiag;\n return decl;\n }\n }\n function transformImportDeclaration(decl) {\n if (!decl.importClause) {\n // import \"mod\" - possibly needed for side effects? (global interface patches, module augmentations, etc)\n return factory.updateImportDeclaration(decl, \n /*decorators*/ undefined, decl.modifiers, decl.importClause, rewriteModuleSpecifier(decl, decl.moduleSpecifier));\n }\n // The `importClause` visibility corresponds to the default's visibility.\n var visibleDefaultBinding = decl.importClause && decl.importClause.name && resolver.isDeclarationVisible(decl.importClause) ? decl.importClause.name : undefined;\n if (!decl.importClause.namedBindings) {\n // No named bindings (either namespace or list), meaning the import is just default or should be elided\n return visibleDefaultBinding && factory.updateImportDeclaration(decl, /*decorators*/ undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, \n /*namedBindings*/ undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier));\n }\n if (decl.importClause.namedBindings.kind === 266 /* NamespaceImport */) {\n // Namespace import (optionally with visible default)\n var namedBindings = resolver.isDeclarationVisible(decl.importClause.namedBindings) ? decl.importClause.namedBindings : /*namedBindings*/ undefined;\n return visibleDefaultBinding || namedBindings ? factory.updateImportDeclaration(decl, /*decorators*/ undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, namedBindings), rewriteModuleSpecifier(decl, decl.moduleSpecifier)) : undefined;\n }\n // Named imports (optionally with visible default)\n var bindingList = ts.mapDefined(decl.importClause.namedBindings.elements, function (b) { return resolver.isDeclarationVisible(b) ? b : undefined; });\n if ((bindingList && bindingList.length) || visibleDefaultBinding) {\n return factory.updateImportDeclaration(decl, \n /*decorators*/ undefined, decl.modifiers, factory.updateImportClause(decl.importClause, decl.importClause.isTypeOnly, visibleDefaultBinding, bindingList && bindingList.length ? factory.updateNamedImports(decl.importClause.namedBindings, bindingList) : undefined), rewriteModuleSpecifier(decl, decl.moduleSpecifier));\n }\n // Augmentation of export depends on import\n if (resolver.isImportRequiredByAugmentation(decl)) {\n return factory.updateImportDeclaration(decl, \n /*decorators*/ undefined, decl.modifiers, \n /*importClause*/ undefined, rewriteModuleSpecifier(decl, decl.moduleSpecifier));\n }\n // Nothing visible\n }\n function transformAndReplaceLatePaintedStatements(statements) {\n // This is a `while` loop because `handleSymbolAccessibilityError` can see additional import aliases marked as visible during\n // error handling which must now be included in the output and themselves checked for errors.\n // For example:\n // ```\n // module A {\n // export module Q {}\n // import B = Q;\n // import C = B;\n // export import D = C;\n // }\n // ```\n // In such a scenario, only Q and D are initially visible, but we don't consider imports as private names - instead we say they if they are referenced they must\n // be recorded. So while checking D's visibility we mark C as visible, then we must check C which in turn marks B, completing the chain of\n // dependent imports and allowing a valid declaration file output. Today, this dependent alias marking only happens for internal import aliases.\n while (ts.length(lateMarkedStatements)) {\n var i = lateMarkedStatements.shift();\n if (!ts.isLateVisibilityPaintedStatement(i)) {\n return ts.Debug.fail(\"Late replaced statement was found which is not handled by the declaration transformer!: \" + (ts.SyntaxKind ? ts.SyntaxKind[i.kind] : i.kind));\n }\n var priorNeedsDeclare = needsDeclare;\n needsDeclare = i.parent && ts.isSourceFile(i.parent) && !(ts.isExternalModule(i.parent) && isBundledEmit);\n var result = transformTopLevelDeclaration(i);\n needsDeclare = priorNeedsDeclare;\n lateStatementReplacementMap.set(ts.getOriginalNodeId(i), result);\n }\n // And lastly, we need to get the final form of all those indetermine import declarations from before and add them to the output list\n // (and remove them from the set to examine for outter declarations)\n return ts.visitNodes(statements, visitLateVisibilityMarkedStatements);\n function visitLateVisibilityMarkedStatements(statement) {\n if (ts.isLateVisibilityPaintedStatement(statement)) {\n var key = ts.getOriginalNodeId(statement);\n if (lateStatementReplacementMap.has(key)) {\n var result = lateStatementReplacementMap.get(key);\n lateStatementReplacementMap.delete(key);\n if (result) {\n if (ts.isArray(result) ? ts.some(result, ts.needsScopeMarker) : ts.needsScopeMarker(result)) {\n // Top-level declarations in .d.ts files are always considered exported even without a modifier unless there's an export assignment or specifier\n needsScopeFixMarker = true;\n }\n if (ts.isSourceFile(statement.parent) && (ts.isArray(result) ? ts.some(result, ts.isExternalModuleIndicator) : ts.isExternalModuleIndicator(result))) {\n resultHasExternalModuleIndicator = true;\n }\n }\n return result;\n }\n }\n return statement;\n }\n }\n function visitDeclarationSubtree(input) {\n if (shouldStripInternal(input))\n return;\n if (ts.isDeclaration(input)) {\n if (isDeclarationAndNotVisible(input))\n return;\n if (ts.hasDynamicName(input) && !resolver.isLateBound(ts.getParseTreeNode(input))) {\n return;\n }\n }\n // Elide implementation signatures from overload sets\n if (ts.isFunctionLike(input) && resolver.isImplementationOfOverload(input))\n return;\n // Elide semicolon class statements\n if (ts.isSemicolonClassElement(input))\n return;\n var previousEnclosingDeclaration;\n if (isEnclosingDeclaration(input)) {\n previousEnclosingDeclaration = enclosingDeclaration;\n enclosingDeclaration = input;\n }\n var oldDiag = getSymbolAccessibilityDiagnostic;\n // Setup diagnostic-related flags before first potential `cleanup` call, otherwise\n // We'd see a TDZ violation at runtime\n var canProduceDiagnostic = ts.canProduceDiagnostics(input);\n var oldWithinObjectLiteralType = suppressNewDiagnosticContexts;\n var shouldEnterSuppressNewDiagnosticsContextContext = ((input.kind === 180 /* TypeLiteral */ || input.kind === 193 /* MappedType */) && input.parent.kind !== 257 /* TypeAliasDeclaration */);\n // Emit methods which are private as properties with no type information\n if (ts.isMethodDeclaration(input) || ts.isMethodSignature(input)) {\n if (ts.hasEffectiveModifier(input, 8 /* Private */)) {\n if (input.symbol && input.symbol.declarations && input.symbol.declarations[0] !== input)\n return; // Elide all but the first overload\n return cleanup(factory.createPropertyDeclaration(/*decorators*/ undefined, ensureModifiers(input), input.name, /*questionToken*/ undefined, /*type*/ undefined, /*initializer*/ undefined));\n }\n }\n if (canProduceDiagnostic && !suppressNewDiagnosticContexts) {\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(input);\n }\n if (ts.isTypeQueryNode(input)) {\n checkEntityNameVisibility(input.exprName, enclosingDeclaration);\n }\n if (shouldEnterSuppressNewDiagnosticsContextContext) {\n // We stop making new diagnostic contexts within object literal types. Unless it's an object type on the RHS of a type alias declaration. Then we do.\n suppressNewDiagnosticContexts = true;\n }\n if (isProcessedComponent(input)) {\n switch (input.kind) {\n case 226 /* ExpressionWithTypeArguments */: {\n if ((ts.isEntityName(input.expression) || ts.isEntityNameExpression(input.expression))) {\n checkEntityNameVisibility(input.expression, enclosingDeclaration);\n }\n var node = ts.visitEachChild(input, visitDeclarationSubtree, context);\n return cleanup(factory.updateExpressionWithTypeArguments(node, node.expression, node.typeArguments));\n }\n case 176 /* TypeReference */: {\n checkEntityNameVisibility(input.typeName, enclosingDeclaration);\n var node = ts.visitEachChild(input, visitDeclarationSubtree, context);\n return cleanup(factory.updateTypeReferenceNode(node, node.typeName, node.typeArguments));\n }\n case 173 /* ConstructSignature */:\n return cleanup(factory.updateConstructSignature(input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type)));\n case 169 /* Constructor */: {\n // A constructor declaration may not have a type annotation\n var ctor = factory.createConstructorDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ ensureModifiers(input), updateParamsList(input, input.parameters, 0 /* None */), \n /*body*/ undefined);\n return cleanup(ctor);\n }\n case 167 /* MethodDeclaration */: {\n if (ts.isPrivateIdentifier(input.name)) {\n return cleanup(/*returnValue*/ undefined);\n }\n var sig = factory.createMethodDeclaration(\n /*decorators*/ undefined, ensureModifiers(input), \n /*asteriskToken*/ undefined, input.name, input.questionToken, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type), \n /*body*/ undefined);\n return cleanup(sig);\n }\n case 170 /* GetAccessor */: {\n if (ts.isPrivateIdentifier(input.name)) {\n return cleanup(/*returnValue*/ undefined);\n }\n var accessorType = getTypeAnnotationFromAllAccessorDeclarations(input, resolver.getAllAccessorDeclarations(input));\n return cleanup(factory.updateGetAccessorDeclaration(input, \n /*decorators*/ undefined, ensureModifiers(input), input.name, updateAccessorParamsList(input, ts.hasEffectiveModifier(input, 8 /* Private */)), ensureType(input, accessorType), \n /*body*/ undefined));\n }\n case 171 /* SetAccessor */: {\n if (ts.isPrivateIdentifier(input.name)) {\n return cleanup(/*returnValue*/ undefined);\n }\n return cleanup(factory.updateSetAccessorDeclaration(input, \n /*decorators*/ undefined, ensureModifiers(input), input.name, updateAccessorParamsList(input, ts.hasEffectiveModifier(input, 8 /* Private */)), \n /*body*/ undefined));\n }\n case 165 /* PropertyDeclaration */:\n if (ts.isPrivateIdentifier(input.name)) {\n return cleanup(/*returnValue*/ undefined);\n }\n return cleanup(factory.updatePropertyDeclaration(input, \n /*decorators*/ undefined, ensureModifiers(input), input.name, input.questionToken, ensureType(input, input.type), ensureNoInitializer(input)));\n case 164 /* PropertySignature */:\n if (ts.isPrivateIdentifier(input.name)) {\n return cleanup(/*returnValue*/ undefined);\n }\n return cleanup(factory.updatePropertySignature(input, ensureModifiers(input), input.name, input.questionToken, ensureType(input, input.type)));\n case 166 /* MethodSignature */: {\n if (ts.isPrivateIdentifier(input.name)) {\n return cleanup(/*returnValue*/ undefined);\n }\n return cleanup(factory.updateMethodSignature(input, ensureModifiers(input), input.name, input.questionToken, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type)));\n }\n case 172 /* CallSignature */: {\n return cleanup(factory.updateCallSignature(input, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type)));\n }\n case 174 /* IndexSignature */: {\n return cleanup(factory.updateIndexSignature(input, \n /*decorators*/ undefined, ensureModifiers(input), updateParamsList(input, input.parameters), ts.visitNode(input.type, visitDeclarationSubtree) || factory.createKeywordTypeNode(129 /* AnyKeyword */)));\n }\n case 252 /* VariableDeclaration */: {\n if (ts.isBindingPattern(input.name)) {\n return recreateBindingPattern(input.name);\n }\n shouldEnterSuppressNewDiagnosticsContextContext = true;\n suppressNewDiagnosticContexts = true; // Variable declaration types also suppress new diagnostic contexts, provided the contexts wouldn't be made for binding pattern types\n return cleanup(factory.updateVariableDeclaration(input, input.name, /*exclamationToken*/ undefined, ensureType(input, input.type), ensureNoInitializer(input)));\n }\n case 161 /* TypeParameter */: {\n if (isPrivateMethodTypeParameter(input) && (input.default || input.constraint)) {\n return cleanup(factory.updateTypeParameterDeclaration(input, input.name, /*constraint*/ undefined, /*defaultType*/ undefined));\n }\n return cleanup(ts.visitEachChild(input, visitDeclarationSubtree, context));\n }\n case 187 /* ConditionalType */: {\n // We have to process conditional types in a special way because for visibility purposes we need to push a new enclosingDeclaration\n // just for the `infer` types in the true branch. It's an implicit declaration scope that only applies to _part_ of the type.\n var checkType = ts.visitNode(input.checkType, visitDeclarationSubtree);\n var extendsType = ts.visitNode(input.extendsType, visitDeclarationSubtree);\n var oldEnclosingDecl = enclosingDeclaration;\n enclosingDeclaration = input.trueType;\n var trueType = ts.visitNode(input.trueType, visitDeclarationSubtree);\n enclosingDeclaration = oldEnclosingDecl;\n var falseType = ts.visitNode(input.falseType, visitDeclarationSubtree);\n return cleanup(factory.updateConditionalTypeNode(input, checkType, extendsType, trueType, falseType));\n }\n case 177 /* FunctionType */: {\n return cleanup(factory.updateFunctionTypeNode(input, ts.visitNodes(input.typeParameters, visitDeclarationSubtree), updateParamsList(input, input.parameters), ts.visitNode(input.type, visitDeclarationSubtree)));\n }\n case 178 /* ConstructorType */: {\n return cleanup(factory.updateConstructorTypeNode(input, ensureModifiers(input), ts.visitNodes(input.typeParameters, visitDeclarationSubtree), updateParamsList(input, input.parameters), ts.visitNode(input.type, visitDeclarationSubtree)));\n }\n case 198 /* ImportType */: {\n if (!ts.isLiteralImportTypeNode(input))\n return cleanup(input);\n return cleanup(factory.updateImportTypeNode(input, factory.updateLiteralTypeNode(input.argument, rewriteModuleSpecifier(input, input.argument.literal)), input.qualifier, ts.visitNodes(input.typeArguments, visitDeclarationSubtree, ts.isTypeNode), input.isTypeOf));\n }\n default: ts.Debug.assertNever(input, \"Attempted to process unhandled node kind: \" + ts.SyntaxKind[input.kind]);\n }\n }\n if (ts.isTupleTypeNode(input) && (ts.getLineAndCharacterOfPosition(currentSourceFile, input.pos).line === ts.getLineAndCharacterOfPosition(currentSourceFile, input.end).line)) {\n ts.setEmitFlags(input, 1 /* SingleLine */);\n }\n return cleanup(ts.visitEachChild(input, visitDeclarationSubtree, context));\n function cleanup(returnValue) {\n if (returnValue && canProduceDiagnostic && ts.hasDynamicName(input)) {\n checkName(input);\n }\n if (isEnclosingDeclaration(input)) {\n enclosingDeclaration = previousEnclosingDeclaration;\n }\n if (canProduceDiagnostic && !suppressNewDiagnosticContexts) {\n getSymbolAccessibilityDiagnostic = oldDiag;\n }\n if (shouldEnterSuppressNewDiagnosticsContextContext) {\n suppressNewDiagnosticContexts = oldWithinObjectLiteralType;\n }\n if (returnValue === input) {\n return returnValue;\n }\n return returnValue && ts.setOriginalNode(preserveJsDoc(returnValue, input), input);\n }\n }\n function isPrivateMethodTypeParameter(node) {\n return node.parent.kind === 167 /* MethodDeclaration */ && ts.hasEffectiveModifier(node.parent, 8 /* Private */);\n }\n function visitDeclarationStatements(input) {\n if (!isPreservedDeclarationStatement(input)) {\n // return undefined for unmatched kinds to omit them from the tree\n return;\n }\n if (shouldStripInternal(input))\n return;\n switch (input.kind) {\n case 270 /* ExportDeclaration */: {\n if (ts.isSourceFile(input.parent)) {\n resultHasExternalModuleIndicator = true;\n }\n resultHasScopeMarker = true;\n // Always visible if the parent node isn't dropped for being not visible\n // Rewrite external module names if necessary\n return factory.updateExportDeclaration(input, \n /*decorators*/ undefined, input.modifiers, input.isTypeOnly, input.exportClause, rewriteModuleSpecifier(input, input.moduleSpecifier));\n }\n case 269 /* ExportAssignment */: {\n // Always visible if the parent node isn't dropped for being not visible\n if (ts.isSourceFile(input.parent)) {\n resultHasExternalModuleIndicator = true;\n }\n resultHasScopeMarker = true;\n if (input.expression.kind === 79 /* Identifier */) {\n return input;\n }\n else {\n var newId = factory.createUniqueName(\"_default\", 16 /* Optimistic */);\n getSymbolAccessibilityDiagnostic = function () { return ({\n diagnosticMessage: ts.Diagnostics.Default_export_of_the_module_has_or_is_using_private_name_0,\n errorNode: input\n }); };\n errorFallbackNode = input;\n var varDecl = factory.createVariableDeclaration(newId, /*exclamationToken*/ undefined, resolver.createTypeOfExpression(input.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), /*initializer*/ undefined);\n errorFallbackNode = undefined;\n var statement = factory.createVariableStatement(needsDeclare ? [factory.createModifier(134 /* DeclareKeyword */)] : [], factory.createVariableDeclarationList([varDecl], 2 /* Const */));\n return [statement, factory.updateExportAssignment(input, input.decorators, input.modifiers, newId)];\n }\n }\n }\n var result = transformTopLevelDeclaration(input);\n // Don't actually transform yet; just leave as original node - will be elided/swapped by late pass\n lateStatementReplacementMap.set(ts.getOriginalNodeId(input), result);\n return input;\n }\n function stripExportModifiers(statement) {\n if (ts.isImportEqualsDeclaration(statement) || ts.hasEffectiveModifier(statement, 512 /* Default */) || !ts.canHaveModifiers(statement)) {\n // `export import` statements should remain as-is, as imports are _not_ implicitly exported in an ambient namespace\n // Likewise, `export default` classes and the like and just be `default`, so we preserve their `export` modifiers, too\n return statement;\n }\n var modifiers = factory.createModifiersFromModifierFlags(ts.getEffectiveModifierFlags(statement) & (27647 /* All */ ^ 1 /* Export */));\n return factory.updateModifiers(statement, modifiers);\n }\n function transformTopLevelDeclaration(input) {\n if (shouldStripInternal(input))\n return;\n switch (input.kind) {\n case 263 /* ImportEqualsDeclaration */: {\n return transformImportEqualsDeclaration(input);\n }\n case 264 /* ImportDeclaration */: {\n return transformImportDeclaration(input);\n }\n }\n if (ts.isDeclaration(input) && isDeclarationAndNotVisible(input))\n return;\n // Elide implementation signatures from overload sets\n if (ts.isFunctionLike(input) && resolver.isImplementationOfOverload(input))\n return;\n var previousEnclosingDeclaration;\n if (isEnclosingDeclaration(input)) {\n previousEnclosingDeclaration = enclosingDeclaration;\n enclosingDeclaration = input;\n }\n var canProdiceDiagnostic = ts.canProduceDiagnostics(input);\n var oldDiag = getSymbolAccessibilityDiagnostic;\n if (canProdiceDiagnostic) {\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(input);\n }\n var previousNeedsDeclare = needsDeclare;\n switch (input.kind) {\n case 257 /* TypeAliasDeclaration */: // Type aliases get `declare`d if need be (for legacy support), but that's all\n return cleanup(factory.updateTypeAliasDeclaration(input, \n /*decorators*/ undefined, ensureModifiers(input), input.name, ts.visitNodes(input.typeParameters, visitDeclarationSubtree, ts.isTypeParameterDeclaration), ts.visitNode(input.type, visitDeclarationSubtree, ts.isTypeNode)));\n case 256 /* InterfaceDeclaration */: {\n return cleanup(factory.updateInterfaceDeclaration(input, \n /*decorators*/ undefined, ensureModifiers(input), input.name, ensureTypeParams(input, input.typeParameters), transformHeritageClauses(input.heritageClauses), ts.visitNodes(input.members, visitDeclarationSubtree)));\n }\n case 254 /* FunctionDeclaration */: {\n // Generators lose their generator-ness, excepting their return type\n var clean = cleanup(factory.updateFunctionDeclaration(input, \n /*decorators*/ undefined, ensureModifiers(input), \n /*asteriskToken*/ undefined, input.name, ensureTypeParams(input, input.typeParameters), updateParamsList(input, input.parameters), ensureType(input, input.type), \n /*body*/ undefined));\n if (clean && resolver.isExpandoFunctionDeclaration(input) && shouldEmitFunctionProperties(input)) {\n var props = resolver.getPropertiesOfContainerFunction(input);\n // Use parseNodeFactory so it is usable as an enclosing declaration\n var fakespace_1 = ts.parseNodeFactory.createModuleDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, clean.name || factory.createIdentifier(\"_default\"), factory.createModuleBlock([]), 16 /* Namespace */);\n ts.setParent(fakespace_1, enclosingDeclaration);\n fakespace_1.locals = ts.createSymbolTable(props);\n fakespace_1.symbol = props[0].parent;\n var exportMappings_1 = [];\n var declarations = ts.mapDefined(props, function (p) {\n if (!p.valueDeclaration || !ts.isPropertyAccessExpression(p.valueDeclaration)) {\n return undefined; // TODO GH#33569: Handle element access expressions that created late bound names (rather than silently omitting them)\n }\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(p.valueDeclaration);\n var type = resolver.createTypeOfDeclaration(p.valueDeclaration, fakespace_1, declarationEmitNodeBuilderFlags, symbolTracker);\n getSymbolAccessibilityDiagnostic = oldDiag;\n var nameStr = ts.unescapeLeadingUnderscores(p.escapedName);\n var isNonContextualKeywordName = ts.isStringANonContextualKeyword(nameStr);\n var name = isNonContextualKeywordName ? factory.getGeneratedNameForNode(p.valueDeclaration) : factory.createIdentifier(nameStr);\n if (isNonContextualKeywordName) {\n exportMappings_1.push([name, nameStr]);\n }\n var varDecl = factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, type, /*initializer*/ undefined);\n return factory.createVariableStatement(isNonContextualKeywordName ? undefined : [factory.createToken(93 /* ExportKeyword */)], factory.createVariableDeclarationList([varDecl]));\n });\n if (!exportMappings_1.length) {\n declarations = ts.mapDefined(declarations, function (declaration) { return factory.updateModifiers(declaration, 0 /* None */); });\n }\n else {\n declarations.push(factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, factory.createNamedExports(ts.map(exportMappings_1, function (_a) {\n var gen = _a[0], exp = _a[1];\n return factory.createExportSpecifier(gen, exp);\n }))));\n }\n var namespaceDecl = factory.createModuleDeclaration(/*decorators*/ undefined, ensureModifiers(input), input.name, factory.createModuleBlock(declarations), 16 /* Namespace */);\n if (!ts.hasEffectiveModifier(clean, 512 /* Default */)) {\n return [clean, namespaceDecl];\n }\n var modifiers = factory.createModifiersFromModifierFlags((ts.getEffectiveModifierFlags(clean) & ~513 /* ExportDefault */) | 2 /* Ambient */);\n var cleanDeclaration = factory.updateFunctionDeclaration(clean, \n /*decorators*/ undefined, modifiers, \n /*asteriskToken*/ undefined, clean.name, clean.typeParameters, clean.parameters, clean.type, \n /*body*/ undefined);\n var namespaceDeclaration = factory.updateModuleDeclaration(namespaceDecl, \n /*decorators*/ undefined, modifiers, namespaceDecl.name, namespaceDecl.body);\n var exportDefaultDeclaration = factory.createExportAssignment(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isExportEquals*/ false, namespaceDecl.name);\n if (ts.isSourceFile(input.parent)) {\n resultHasExternalModuleIndicator = true;\n }\n resultHasScopeMarker = true;\n return [cleanDeclaration, namespaceDeclaration, exportDefaultDeclaration];\n }\n else {\n return clean;\n }\n }\n case 259 /* ModuleDeclaration */: {\n needsDeclare = false;\n var inner = input.body;\n if (inner && inner.kind === 260 /* ModuleBlock */) {\n var oldNeedsScopeFix = needsScopeFixMarker;\n var oldHasScopeFix = resultHasScopeMarker;\n resultHasScopeMarker = false;\n needsScopeFixMarker = false;\n var statements = ts.visitNodes(inner.statements, visitDeclarationStatements);\n var lateStatements = transformAndReplaceLatePaintedStatements(statements);\n if (input.flags & 8388608 /* Ambient */) {\n needsScopeFixMarker = false; // If it was `declare`'d everything is implicitly exported already, ignore late printed \"privates\"\n }\n // With the final list of statements, there are 3 possibilities:\n // 1. There's an export assignment or export declaration in the namespace - do nothing\n // 2. Everything is exported and there are no export assignments or export declarations - strip all export modifiers\n // 3. Some things are exported, some are not, and there's no marker - add an empty marker\n if (!ts.isGlobalScopeAugmentation(input) && !hasScopeMarker(lateStatements) && !resultHasScopeMarker) {\n if (needsScopeFixMarker) {\n lateStatements = factory.createNodeArray(__spreadArray(__spreadArray([], lateStatements, true), [ts.createEmptyExports(factory)], false));\n }\n else {\n lateStatements = ts.visitNodes(lateStatements, stripExportModifiers);\n }\n }\n var body = factory.updateModuleBlock(inner, lateStatements);\n needsDeclare = previousNeedsDeclare;\n needsScopeFixMarker = oldNeedsScopeFix;\n resultHasScopeMarker = oldHasScopeFix;\n var mods = ensureModifiers(input);\n return cleanup(factory.updateModuleDeclaration(input, \n /*decorators*/ undefined, mods, ts.isExternalModuleAugmentation(input) ? rewriteModuleSpecifier(input, input.name) : input.name, body));\n }\n else {\n needsDeclare = previousNeedsDeclare;\n var mods = ensureModifiers(input);\n needsDeclare = false;\n ts.visitNode(inner, visitDeclarationStatements);\n // eagerly transform nested namespaces (the nesting doesn't need any elision or painting done)\n var id = ts.getOriginalNodeId(inner); // TODO: GH#18217\n var body = lateStatementReplacementMap.get(id);\n lateStatementReplacementMap.delete(id);\n return cleanup(factory.updateModuleDeclaration(input, \n /*decorators*/ undefined, mods, input.name, body));\n }\n }\n case 255 /* ClassDeclaration */: {\n errorNameNode = input.name;\n errorFallbackNode = input;\n var modifiers = factory.createNodeArray(ensureModifiers(input));\n var typeParameters = ensureTypeParams(input, input.typeParameters);\n var ctor = ts.getFirstConstructorWithBody(input);\n var parameterProperties = void 0;\n if (ctor) {\n var oldDiag_1 = getSymbolAccessibilityDiagnostic;\n parameterProperties = ts.compact(ts.flatMap(ctor.parameters, function (param) {\n if (!ts.hasSyntacticModifier(param, 16476 /* ParameterPropertyModifier */) || shouldStripInternal(param))\n return;\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(param);\n if (param.name.kind === 79 /* Identifier */) {\n return preserveJsDoc(factory.createPropertyDeclaration(\n /*decorators*/ undefined, ensureModifiers(param), param.name, param.questionToken, ensureType(param, param.type), ensureNoInitializer(param)), param);\n }\n else {\n // Pattern - this is currently an error, but we emit declarations for it somewhat correctly\n return walkBindingPattern(param.name);\n }\n function walkBindingPattern(pattern) {\n var elems;\n for (var _i = 0, _a = pattern.elements; _i < _a.length; _i++) {\n var elem = _a[_i];\n if (ts.isOmittedExpression(elem))\n continue;\n if (ts.isBindingPattern(elem.name)) {\n elems = ts.concatenate(elems, walkBindingPattern(elem.name));\n }\n elems = elems || [];\n elems.push(factory.createPropertyDeclaration(\n /*decorators*/ undefined, ensureModifiers(param), elem.name, \n /*questionToken*/ undefined, ensureType(elem, /*type*/ undefined), \n /*initializer*/ undefined));\n }\n return elems;\n }\n }));\n getSymbolAccessibilityDiagnostic = oldDiag_1;\n }\n var hasPrivateIdentifier = ts.some(input.members, function (member) { return !!member.name && ts.isPrivateIdentifier(member.name); });\n // When the class has at least one private identifier, create a unique constant identifier to retain the nominal typing behavior\n // Prevents other classes with the same public members from being used in place of the current class\n var privateIdentifier = hasPrivateIdentifier ? [\n factory.createPropertyDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, factory.createPrivateIdentifier(\"#private\"), \n /*questionToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined)\n ] : undefined;\n var memberNodes = ts.concatenate(ts.concatenate(privateIdentifier, parameterProperties), ts.visitNodes(input.members, visitDeclarationSubtree));\n var members = factory.createNodeArray(memberNodes);\n var extendsClause_1 = ts.getEffectiveBaseTypeNode(input);\n if (extendsClause_1 && !ts.isEntityNameExpression(extendsClause_1.expression) && extendsClause_1.expression.kind !== 104 /* NullKeyword */) {\n // We must add a temporary declaration for the extends clause expression\n var oldId = input.name ? ts.unescapeLeadingUnderscores(input.name.escapedText) : \"default\";\n var newId_1 = factory.createUniqueName(oldId + \"_base\", 16 /* Optimistic */);\n getSymbolAccessibilityDiagnostic = function () { return ({\n diagnosticMessage: ts.Diagnostics.extends_clause_of_exported_class_0_has_or_is_using_private_name_1,\n errorNode: extendsClause_1,\n typeName: input.name\n }); };\n var varDecl = factory.createVariableDeclaration(newId_1, /*exclamationToken*/ undefined, resolver.createTypeOfExpression(extendsClause_1.expression, input, declarationEmitNodeBuilderFlags, symbolTracker), /*initializer*/ undefined);\n var statement = factory.createVariableStatement(needsDeclare ? [factory.createModifier(134 /* DeclareKeyword */)] : [], factory.createVariableDeclarationList([varDecl], 2 /* Const */));\n var heritageClauses = factory.createNodeArray(ts.map(input.heritageClauses, function (clause) {\n if (clause.token === 94 /* ExtendsKeyword */) {\n var oldDiag_2 = getSymbolAccessibilityDiagnostic;\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(clause.types[0]);\n var newClause = factory.updateHeritageClause(clause, ts.map(clause.types, function (t) { return factory.updateExpressionWithTypeArguments(t, newId_1, ts.visitNodes(t.typeArguments, visitDeclarationSubtree)); }));\n getSymbolAccessibilityDiagnostic = oldDiag_2;\n return newClause;\n }\n return factory.updateHeritageClause(clause, ts.visitNodes(factory.createNodeArray(ts.filter(clause.types, function (t) { return ts.isEntityNameExpression(t.expression) || t.expression.kind === 104 /* NullKeyword */; })), visitDeclarationSubtree));\n }));\n return [statement, cleanup(factory.updateClassDeclaration(input, \n /*decorators*/ undefined, modifiers, input.name, typeParameters, heritageClauses, members))]; // TODO: GH#18217\n }\n else {\n var heritageClauses = transformHeritageClauses(input.heritageClauses);\n return cleanup(factory.updateClassDeclaration(input, \n /*decorators*/ undefined, modifiers, input.name, typeParameters, heritageClauses, members));\n }\n }\n case 235 /* VariableStatement */: {\n return cleanup(transformVariableStatement(input));\n }\n case 258 /* EnumDeclaration */: {\n return cleanup(factory.updateEnumDeclaration(input, /*decorators*/ undefined, factory.createNodeArray(ensureModifiers(input)), input.name, factory.createNodeArray(ts.mapDefined(input.members, function (m) {\n if (shouldStripInternal(m))\n return;\n // Rewrite enum values to their constants, if available\n var constValue = resolver.getConstantValue(m);\n return preserveJsDoc(factory.updateEnumMember(m, m.name, constValue !== undefined ? typeof constValue === \"string\" ? factory.createStringLiteral(constValue) : factory.createNumericLiteral(constValue) : undefined), m);\n }))));\n }\n }\n // Anything left unhandled is an error, so this should be unreachable\n return ts.Debug.assertNever(input, \"Unhandled top-level node in declaration emit: \" + ts.SyntaxKind[input.kind]);\n function cleanup(node) {\n if (isEnclosingDeclaration(input)) {\n enclosingDeclaration = previousEnclosingDeclaration;\n }\n if (canProdiceDiagnostic) {\n getSymbolAccessibilityDiagnostic = oldDiag;\n }\n if (input.kind === 259 /* ModuleDeclaration */) {\n needsDeclare = previousNeedsDeclare;\n }\n if (node === input) {\n return node;\n }\n errorFallbackNode = undefined;\n errorNameNode = undefined;\n return node && ts.setOriginalNode(preserveJsDoc(node, input), input);\n }\n }\n function transformVariableStatement(input) {\n if (!ts.forEach(input.declarationList.declarations, getBindingNameVisible))\n return;\n var nodes = ts.visitNodes(input.declarationList.declarations, visitDeclarationSubtree);\n if (!ts.length(nodes))\n return;\n return factory.updateVariableStatement(input, factory.createNodeArray(ensureModifiers(input)), factory.updateVariableDeclarationList(input.declarationList, nodes));\n }\n function recreateBindingPattern(d) {\n return ts.flatten(ts.mapDefined(d.elements, function (e) { return recreateBindingElement(e); }));\n }\n function recreateBindingElement(e) {\n if (e.kind === 225 /* OmittedExpression */) {\n return;\n }\n if (e.name) {\n if (!getBindingNameVisible(e))\n return;\n if (ts.isBindingPattern(e.name)) {\n return recreateBindingPattern(e.name);\n }\n else {\n return factory.createVariableDeclaration(e.name, /*exclamationToken*/ undefined, ensureType(e, /*type*/ undefined), /*initializer*/ undefined);\n }\n }\n }\n function checkName(node) {\n var oldDiag;\n if (!suppressNewDiagnosticContexts) {\n oldDiag = getSymbolAccessibilityDiagnostic;\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNodeName(node);\n }\n errorNameNode = node.name;\n ts.Debug.assert(resolver.isLateBound(ts.getParseTreeNode(node))); // Should only be called with dynamic names\n var decl = node;\n var entityName = decl.name.expression;\n checkEntityNameVisibility(entityName, enclosingDeclaration);\n if (!suppressNewDiagnosticContexts) {\n getSymbolAccessibilityDiagnostic = oldDiag;\n }\n errorNameNode = undefined;\n }\n function shouldStripInternal(node) {\n return !!stripInternal && !!node && isInternalDeclaration(node, currentSourceFile);\n }\n function isScopeMarker(node) {\n return ts.isExportAssignment(node) || ts.isExportDeclaration(node);\n }\n function hasScopeMarker(statements) {\n return ts.some(statements, isScopeMarker);\n }\n function ensureModifiers(node) {\n var currentFlags = ts.getEffectiveModifierFlags(node);\n var newFlags = ensureModifierFlags(node);\n if (currentFlags === newFlags) {\n return node.modifiers;\n }\n return factory.createModifiersFromModifierFlags(newFlags);\n }\n function ensureModifierFlags(node) {\n var mask = 27647 /* All */ ^ (4 /* Public */ | 256 /* Async */ | 16384 /* Override */); // No async and override modifiers in declaration files\n var additions = (needsDeclare && !isAlwaysType(node)) ? 2 /* Ambient */ : 0 /* None */;\n var parentIsFile = node.parent.kind === 300 /* SourceFile */;\n if (!parentIsFile || (isBundledEmit && parentIsFile && ts.isExternalModule(node.parent))) {\n mask ^= 2 /* Ambient */;\n additions = 0 /* None */;\n }\n return maskModifierFlags(node, mask, additions);\n }\n function getTypeAnnotationFromAllAccessorDeclarations(node, accessors) {\n var accessorType = getTypeAnnotationFromAccessor(node);\n if (!accessorType && node !== accessors.firstAccessor) {\n accessorType = getTypeAnnotationFromAccessor(accessors.firstAccessor);\n // If we end up pulling the type from the second accessor, we also need to change the diagnostic context to get the expected error message\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(accessors.firstAccessor);\n }\n if (!accessorType && accessors.secondAccessor && node !== accessors.secondAccessor) {\n accessorType = getTypeAnnotationFromAccessor(accessors.secondAccessor);\n // If we end up pulling the type from the second accessor, we also need to change the diagnostic context to get the expected error message\n getSymbolAccessibilityDiagnostic = ts.createGetSymbolAccessibilityDiagnosticForNode(accessors.secondAccessor);\n }\n return accessorType;\n }\n function transformHeritageClauses(nodes) {\n return factory.createNodeArray(ts.filter(ts.map(nodes, function (clause) { return factory.updateHeritageClause(clause, ts.visitNodes(factory.createNodeArray(ts.filter(clause.types, function (t) {\n return ts.isEntityNameExpression(t.expression) || (clause.token === 94 /* ExtendsKeyword */ && t.expression.kind === 104 /* NullKeyword */);\n })), visitDeclarationSubtree)); }), function (clause) { return clause.types && !!clause.types.length; }));\n }\n }\n ts.transformDeclarations = transformDeclarations;\n function isAlwaysType(node) {\n if (node.kind === 256 /* InterfaceDeclaration */) {\n return true;\n }\n return false;\n }\n // Elide \"public\" modifier, as it is the default\n function maskModifiers(node, modifierMask, modifierAdditions) {\n return ts.factory.createModifiersFromModifierFlags(maskModifierFlags(node, modifierMask, modifierAdditions));\n }\n function maskModifierFlags(node, modifierMask, modifierAdditions) {\n if (modifierMask === void 0) { modifierMask = 27647 /* All */ ^ 4 /* Public */; }\n if (modifierAdditions === void 0) { modifierAdditions = 0 /* None */; }\n var flags = (ts.getEffectiveModifierFlags(node) & modifierMask) | modifierAdditions;\n if (flags & 512 /* Default */ && !(flags & 1 /* Export */)) {\n // A non-exported default is a nonsequitor - we usually try to remove all export modifiers\n // from statements in ambient declarations; but a default export must retain its export modifier to be syntactically valid\n flags ^= 1 /* Export */;\n }\n if (flags & 512 /* Default */ && flags & 2 /* Ambient */) {\n flags ^= 2 /* Ambient */; // `declare` is never required alongside `default` (and would be an error if printed)\n }\n return flags;\n }\n function getTypeAnnotationFromAccessor(accessor) {\n if (accessor) {\n return accessor.kind === 170 /* GetAccessor */\n ? accessor.type // Getter - return type\n : accessor.parameters.length > 0\n ? accessor.parameters[0].type // Setter parameter type\n : undefined;\n }\n }\n function canHaveLiteralInitializer(node) {\n switch (node.kind) {\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n return !ts.hasEffectiveModifier(node, 8 /* Private */);\n case 162 /* Parameter */:\n case 252 /* VariableDeclaration */:\n return true;\n }\n return false;\n }\n function isPreservedDeclarationStatement(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 255 /* ClassDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 258 /* EnumDeclaration */:\n case 235 /* VariableStatement */:\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n case 269 /* ExportAssignment */:\n return true;\n }\n return false;\n }\n function isProcessedComponent(node) {\n switch (node.kind) {\n case 173 /* ConstructSignature */:\n case 169 /* Constructor */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 174 /* IndexSignature */:\n case 252 /* VariableDeclaration */:\n case 161 /* TypeParameter */:\n case 226 /* ExpressionWithTypeArguments */:\n case 176 /* TypeReference */:\n case 187 /* ConditionalType */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 198 /* ImportType */:\n return true;\n }\n return false;\n }\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function getModuleTransformer(moduleKind) {\n switch (moduleKind) {\n case ts.ModuleKind.ESNext:\n case ts.ModuleKind.ES2020:\n case ts.ModuleKind.ES2015:\n return ts.transformECMAScriptModule;\n case ts.ModuleKind.System:\n return ts.transformSystemModule;\n default:\n return ts.transformModule;\n }\n }\n var TransformationState;\n (function (TransformationState) {\n TransformationState[TransformationState[\"Uninitialized\"] = 0] = \"Uninitialized\";\n TransformationState[TransformationState[\"Initialized\"] = 1] = \"Initialized\";\n TransformationState[TransformationState[\"Completed\"] = 2] = \"Completed\";\n TransformationState[TransformationState[\"Disposed\"] = 3] = \"Disposed\";\n })(TransformationState || (TransformationState = {}));\n var SyntaxKindFeatureFlags;\n (function (SyntaxKindFeatureFlags) {\n SyntaxKindFeatureFlags[SyntaxKindFeatureFlags[\"Substitution\"] = 1] = \"Substitution\";\n SyntaxKindFeatureFlags[SyntaxKindFeatureFlags[\"EmitNotifications\"] = 2] = \"EmitNotifications\";\n })(SyntaxKindFeatureFlags || (SyntaxKindFeatureFlags = {}));\n ts.noTransformers = { scriptTransformers: ts.emptyArray, declarationTransformers: ts.emptyArray };\n function getTransformers(compilerOptions, customTransformers, emitOnlyDtsFiles) {\n return {\n scriptTransformers: getScriptTransformers(compilerOptions, customTransformers, emitOnlyDtsFiles),\n declarationTransformers: getDeclarationTransformers(customTransformers),\n };\n }\n ts.getTransformers = getTransformers;\n function getScriptTransformers(compilerOptions, customTransformers, emitOnlyDtsFiles) {\n if (emitOnlyDtsFiles)\n return ts.emptyArray;\n var languageVersion = ts.getEmitScriptTarget(compilerOptions);\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n var transformers = [];\n ts.addRange(transformers, customTransformers && ts.map(customTransformers.before, wrapScriptTransformerFactory));\n transformers.push(ts.transformTypeScript);\n transformers.push(ts.transformClassFields);\n if (ts.getJSXTransformEnabled(compilerOptions)) {\n transformers.push(ts.transformJsx);\n }\n if (languageVersion < 99 /* ESNext */) {\n transformers.push(ts.transformESNext);\n }\n if (languageVersion < 8 /* ES2021 */) {\n transformers.push(ts.transformES2021);\n }\n if (languageVersion < 7 /* ES2020 */) {\n transformers.push(ts.transformES2020);\n }\n if (languageVersion < 6 /* ES2019 */) {\n transformers.push(ts.transformES2019);\n }\n if (languageVersion < 5 /* ES2018 */) {\n transformers.push(ts.transformES2018);\n }\n if (languageVersion < 4 /* ES2017 */) {\n transformers.push(ts.transformES2017);\n }\n if (languageVersion < 3 /* ES2016 */) {\n transformers.push(ts.transformES2016);\n }\n if (languageVersion < 2 /* ES2015 */) {\n transformers.push(ts.transformES2015);\n transformers.push(ts.transformGenerators);\n }\n transformers.push(getModuleTransformer(moduleKind));\n // The ES5 transformer is last so that it can substitute expressions like `exports.default`\n // for ES3.\n if (languageVersion < 1 /* ES5 */) {\n transformers.push(ts.transformES5);\n }\n ts.addRange(transformers, customTransformers && ts.map(customTransformers.after, wrapScriptTransformerFactory));\n return transformers;\n }\n function getDeclarationTransformers(customTransformers) {\n var transformers = [];\n transformers.push(ts.transformDeclarations);\n ts.addRange(transformers, customTransformers && ts.map(customTransformers.afterDeclarations, wrapDeclarationTransformerFactory));\n return transformers;\n }\n /**\n * Wrap a custom script or declaration transformer object in a `Transformer` callback with fallback support for transforming bundles.\n */\n function wrapCustomTransformer(transformer) {\n return function (node) { return ts.isBundle(node) ? transformer.transformBundle(node) : transformer.transformSourceFile(node); };\n }\n /**\n * Wrap a transformer factory that may return a custom script or declaration transformer object.\n */\n function wrapCustomTransformerFactory(transformer, handleDefault) {\n return function (context) {\n var customTransformer = transformer(context);\n return typeof customTransformer === \"function\"\n ? handleDefault(context, customTransformer)\n : wrapCustomTransformer(customTransformer);\n };\n }\n function wrapScriptTransformerFactory(transformer) {\n return wrapCustomTransformerFactory(transformer, ts.chainBundle);\n }\n function wrapDeclarationTransformerFactory(transformer) {\n return wrapCustomTransformerFactory(transformer, function (_, node) { return node; });\n }\n function noEmitSubstitution(_hint, node) {\n return node;\n }\n ts.noEmitSubstitution = noEmitSubstitution;\n function noEmitNotification(hint, node, callback) {\n callback(hint, node);\n }\n ts.noEmitNotification = noEmitNotification;\n /**\n * Transforms an array of SourceFiles by passing them through each transformer.\n *\n * @param resolver The emit resolver provided by the checker.\n * @param host The emit host object used to interact with the file system.\n * @param options Compiler options to surface in the `TransformationContext`.\n * @param nodes An array of nodes to transform.\n * @param transforms An array of `TransformerFactory` callbacks.\n * @param allowDtsFiles A value indicating whether to allow the transformation of .d.ts files.\n */\n function transformNodes(resolver, host, factory, options, nodes, transformers, allowDtsFiles) {\n var enabledSyntaxKindFeatures = new Array(350 /* Count */);\n var lexicalEnvironmentVariableDeclarations;\n var lexicalEnvironmentFunctionDeclarations;\n var lexicalEnvironmentStatements;\n var lexicalEnvironmentFlags = 0 /* None */;\n var lexicalEnvironmentVariableDeclarationsStack = [];\n var lexicalEnvironmentFunctionDeclarationsStack = [];\n var lexicalEnvironmentStatementsStack = [];\n var lexicalEnvironmentFlagsStack = [];\n var lexicalEnvironmentStackOffset = 0;\n var lexicalEnvironmentSuspended = false;\n var blockScopedVariableDeclarationsStack = [];\n var blockScopeStackOffset = 0;\n var blockScopedVariableDeclarations;\n var emitHelpers;\n var onSubstituteNode = noEmitSubstitution;\n var onEmitNode = noEmitNotification;\n var state = 0 /* Uninitialized */;\n var diagnostics = [];\n // The transformation context is provided to each transformer as part of transformer\n // initialization.\n var context = {\n factory: factory,\n getCompilerOptions: function () { return options; },\n getEmitResolver: function () { return resolver; },\n getEmitHost: function () { return host; },\n getEmitHelperFactory: ts.memoize(function () { return ts.createEmitHelperFactory(context); }),\n startLexicalEnvironment: startLexicalEnvironment,\n suspendLexicalEnvironment: suspendLexicalEnvironment,\n resumeLexicalEnvironment: resumeLexicalEnvironment,\n endLexicalEnvironment: endLexicalEnvironment,\n setLexicalEnvironmentFlags: setLexicalEnvironmentFlags,\n getLexicalEnvironmentFlags: getLexicalEnvironmentFlags,\n hoistVariableDeclaration: hoistVariableDeclaration,\n hoistFunctionDeclaration: hoistFunctionDeclaration,\n addInitializationStatement: addInitializationStatement,\n startBlockScope: startBlockScope,\n endBlockScope: endBlockScope,\n addBlockScopedVariable: addBlockScopedVariable,\n requestEmitHelper: requestEmitHelper,\n readEmitHelpers: readEmitHelpers,\n enableSubstitution: enableSubstitution,\n enableEmitNotification: enableEmitNotification,\n isSubstitutionEnabled: isSubstitutionEnabled,\n isEmitNotificationEnabled: isEmitNotificationEnabled,\n get onSubstituteNode() { return onSubstituteNode; },\n set onSubstituteNode(value) {\n ts.Debug.assert(state < 1 /* Initialized */, \"Cannot modify transformation hooks after initialization has completed.\");\n ts.Debug.assert(value !== undefined, \"Value must not be 'undefined'\");\n onSubstituteNode = value;\n },\n get onEmitNode() { return onEmitNode; },\n set onEmitNode(value) {\n ts.Debug.assert(state < 1 /* Initialized */, \"Cannot modify transformation hooks after initialization has completed.\");\n ts.Debug.assert(value !== undefined, \"Value must not be 'undefined'\");\n onEmitNode = value;\n },\n addDiagnostic: function (diag) {\n diagnostics.push(diag);\n }\n };\n // Ensure the parse tree is clean before applying transformations\n for (var _i = 0, nodes_2 = nodes; _i < nodes_2.length; _i++) {\n var node = nodes_2[_i];\n ts.disposeEmitNodes(ts.getSourceFileOfNode(ts.getParseTreeNode(node)));\n }\n ts.performance.mark(\"beforeTransform\");\n // Chain together and initialize each transformer.\n var transformersWithContext = transformers.map(function (t) { return t(context); });\n var transformation = function (node) {\n for (var _i = 0, transformersWithContext_1 = transformersWithContext; _i < transformersWithContext_1.length; _i++) {\n var transform = transformersWithContext_1[_i];\n node = transform(node);\n }\n return node;\n };\n // prevent modification of transformation hooks.\n state = 1 /* Initialized */;\n // Transform each node.\n var transformed = [];\n for (var _a = 0, nodes_3 = nodes; _a < nodes_3.length; _a++) {\n var node = nodes_3[_a];\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"emit\" /* Emit */, \"transformNodes\", node.kind === 300 /* SourceFile */ ? { path: node.path } : { kind: node.kind, pos: node.pos, end: node.end });\n transformed.push((allowDtsFiles ? transformation : transformRoot)(node));\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n // prevent modification of the lexical environment.\n state = 2 /* Completed */;\n ts.performance.mark(\"afterTransform\");\n ts.performance.measure(\"transformTime\", \"beforeTransform\", \"afterTransform\");\n return {\n transformed: transformed,\n substituteNode: substituteNode,\n emitNodeWithNotification: emitNodeWithNotification,\n isEmitNotificationEnabled: isEmitNotificationEnabled,\n dispose: dispose,\n diagnostics: diagnostics\n };\n function transformRoot(node) {\n return node && (!ts.isSourceFile(node) || !node.isDeclarationFile) ? transformation(node) : node;\n }\n /**\n * Enables expression substitutions in the pretty printer for the provided SyntaxKind.\n */\n function enableSubstitution(kind) {\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the transformation context after transformation has completed.\");\n enabledSyntaxKindFeatures[kind] |= 1 /* Substitution */;\n }\n /**\n * Determines whether expression substitutions are enabled for the provided node.\n */\n function isSubstitutionEnabled(node) {\n return (enabledSyntaxKindFeatures[node.kind] & 1 /* Substitution */) !== 0\n && (ts.getEmitFlags(node) & 4 /* NoSubstitution */) === 0;\n }\n /**\n * Emits a node with possible substitution.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emitCallback The callback used to emit the node or its substitute.\n */\n function substituteNode(hint, node) {\n ts.Debug.assert(state < 3 /* Disposed */, \"Cannot substitute a node after the result is disposed.\");\n return node && isSubstitutionEnabled(node) && onSubstituteNode(hint, node) || node;\n }\n /**\n * Enables before/after emit notifications in the pretty printer for the provided SyntaxKind.\n */\n function enableEmitNotification(kind) {\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the transformation context after transformation has completed.\");\n enabledSyntaxKindFeatures[kind] |= 2 /* EmitNotifications */;\n }\n /**\n * Determines whether before/after emit notifications should be raised in the pretty\n * printer when it emits a node.\n */\n function isEmitNotificationEnabled(node) {\n return (enabledSyntaxKindFeatures[node.kind] & 2 /* EmitNotifications */) !== 0\n || (ts.getEmitFlags(node) & 2 /* AdviseOnEmitNode */) !== 0;\n }\n /**\n * Emits a node with possible emit notification.\n *\n * @param hint A hint as to the intended usage of the node.\n * @param node The node to emit.\n * @param emitCallback The callback used to emit the node.\n */\n function emitNodeWithNotification(hint, node, emitCallback) {\n ts.Debug.assert(state < 3 /* Disposed */, \"Cannot invoke TransformationResult callbacks after the result is disposed.\");\n if (node) {\n // TODO: Remove check and unconditionally use onEmitNode when API is breakingly changed\n // (see https://github.com/microsoft/TypeScript/pull/36248/files/5062623f39120171b98870c71344b3242eb03d23#r369766739)\n if (isEmitNotificationEnabled(node)) {\n onEmitNode(hint, node, emitCallback);\n }\n else {\n emitCallback(hint, node);\n }\n }\n }\n /**\n * Records a hoisted variable declaration for the provided name within a lexical environment.\n */\n function hoistVariableDeclaration(name) {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n var decl = ts.setEmitFlags(factory.createVariableDeclaration(name), 64 /* NoNestedSourceMaps */);\n if (!lexicalEnvironmentVariableDeclarations) {\n lexicalEnvironmentVariableDeclarations = [decl];\n }\n else {\n lexicalEnvironmentVariableDeclarations.push(decl);\n }\n if (lexicalEnvironmentFlags & 1 /* InParameters */) {\n lexicalEnvironmentFlags |= 2 /* VariablesHoistedInParameters */;\n }\n }\n /**\n * Records a hoisted function declaration within a lexical environment.\n */\n function hoistFunctionDeclaration(func) {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n ts.setEmitFlags(func, 1048576 /* CustomPrologue */);\n if (!lexicalEnvironmentFunctionDeclarations) {\n lexicalEnvironmentFunctionDeclarations = [func];\n }\n else {\n lexicalEnvironmentFunctionDeclarations.push(func);\n }\n }\n /**\n * Adds an initialization statement to the top of the lexical environment.\n */\n function addInitializationStatement(node) {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n ts.setEmitFlags(node, 1048576 /* CustomPrologue */);\n if (!lexicalEnvironmentStatements) {\n lexicalEnvironmentStatements = [node];\n }\n else {\n lexicalEnvironmentStatements.push(node);\n }\n }\n /**\n * Starts a new lexical environment. Any existing hoisted variable or function declarations\n * are pushed onto a stack, and the related storage variables are reset.\n */\n function startLexicalEnvironment() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n ts.Debug.assert(!lexicalEnvironmentSuspended, \"Lexical environment is suspended.\");\n // Save the current lexical environment. Rather than resizing the array we adjust the\n // stack size variable. This allows us to reuse existing array slots we've\n // already allocated between transformations to avoid allocation and GC overhead during\n // transformation.\n lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentVariableDeclarations;\n lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFunctionDeclarations;\n lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentStatements;\n lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset] = lexicalEnvironmentFlags;\n lexicalEnvironmentStackOffset++;\n lexicalEnvironmentVariableDeclarations = undefined;\n lexicalEnvironmentFunctionDeclarations = undefined;\n lexicalEnvironmentStatements = undefined;\n lexicalEnvironmentFlags = 0 /* None */;\n }\n /** Suspends the current lexical environment, usually after visiting a parameter list. */\n function suspendLexicalEnvironment() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n ts.Debug.assert(!lexicalEnvironmentSuspended, \"Lexical environment is already suspended.\");\n lexicalEnvironmentSuspended = true;\n }\n /** Resumes a suspended lexical environment, usually before visiting a function body. */\n function resumeLexicalEnvironment() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n ts.Debug.assert(lexicalEnvironmentSuspended, \"Lexical environment is not suspended.\");\n lexicalEnvironmentSuspended = false;\n }\n /**\n * Ends a lexical environment. The previous set of hoisted declarations are restored and\n * any hoisted declarations added in this environment are returned.\n */\n function endLexicalEnvironment() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the lexical environment during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the lexical environment after transformation has completed.\");\n ts.Debug.assert(!lexicalEnvironmentSuspended, \"Lexical environment is suspended.\");\n var statements;\n if (lexicalEnvironmentVariableDeclarations ||\n lexicalEnvironmentFunctionDeclarations ||\n lexicalEnvironmentStatements) {\n if (lexicalEnvironmentFunctionDeclarations) {\n statements = __spreadArray([], lexicalEnvironmentFunctionDeclarations, true);\n }\n if (lexicalEnvironmentVariableDeclarations) {\n var statement = factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(lexicalEnvironmentVariableDeclarations));\n ts.setEmitFlags(statement, 1048576 /* CustomPrologue */);\n if (!statements) {\n statements = [statement];\n }\n else {\n statements.push(statement);\n }\n }\n if (lexicalEnvironmentStatements) {\n if (!statements) {\n statements = __spreadArray([], lexicalEnvironmentStatements, true);\n }\n else {\n statements = __spreadArray(__spreadArray([], statements, true), lexicalEnvironmentStatements, true);\n }\n }\n }\n // Restore the previous lexical environment.\n lexicalEnvironmentStackOffset--;\n lexicalEnvironmentVariableDeclarations = lexicalEnvironmentVariableDeclarationsStack[lexicalEnvironmentStackOffset];\n lexicalEnvironmentFunctionDeclarations = lexicalEnvironmentFunctionDeclarationsStack[lexicalEnvironmentStackOffset];\n lexicalEnvironmentStatements = lexicalEnvironmentStatementsStack[lexicalEnvironmentStackOffset];\n lexicalEnvironmentFlags = lexicalEnvironmentFlagsStack[lexicalEnvironmentStackOffset];\n if (lexicalEnvironmentStackOffset === 0) {\n lexicalEnvironmentVariableDeclarationsStack = [];\n lexicalEnvironmentFunctionDeclarationsStack = [];\n lexicalEnvironmentStatementsStack = [];\n lexicalEnvironmentFlagsStack = [];\n }\n return statements;\n }\n function setLexicalEnvironmentFlags(flags, value) {\n lexicalEnvironmentFlags = value ?\n lexicalEnvironmentFlags | flags :\n lexicalEnvironmentFlags & ~flags;\n }\n function getLexicalEnvironmentFlags() {\n return lexicalEnvironmentFlags;\n }\n /**\n * Starts a block scope. Any existing block hoisted variables are pushed onto the stack and the related storage variables are reset.\n */\n function startBlockScope() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot start a block scope during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot start a block scope after transformation has completed.\");\n blockScopedVariableDeclarationsStack[blockScopeStackOffset] = blockScopedVariableDeclarations;\n blockScopeStackOffset++;\n blockScopedVariableDeclarations = undefined;\n }\n /**\n * Ends a block scope. The previous set of block hoisted variables are restored. Any hoisted declarations are returned.\n */\n function endBlockScope() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot end a block scope during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot end a block scope after transformation has completed.\");\n var statements = ts.some(blockScopedVariableDeclarations) ?\n [\n factory.createVariableStatement(\n /*modifiers*/ undefined, factory.createVariableDeclarationList(blockScopedVariableDeclarations.map(function (identifier) { return factory.createVariableDeclaration(identifier); }), 1 /* Let */))\n ] : undefined;\n blockScopeStackOffset--;\n blockScopedVariableDeclarations = blockScopedVariableDeclarationsStack[blockScopeStackOffset];\n if (blockScopeStackOffset === 0) {\n blockScopedVariableDeclarationsStack = [];\n }\n return statements;\n }\n function addBlockScopedVariable(name) {\n ts.Debug.assert(blockScopeStackOffset > 0, \"Cannot add a block scoped variable outside of an iteration body.\");\n (blockScopedVariableDeclarations || (blockScopedVariableDeclarations = [])).push(name);\n }\n function requestEmitHelper(helper) {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the transformation context during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the transformation context after transformation has completed.\");\n ts.Debug.assert(!helper.scoped, \"Cannot request a scoped emit helper.\");\n if (helper.dependencies) {\n for (var _i = 0, _a = helper.dependencies; _i < _a.length; _i++) {\n var h = _a[_i];\n requestEmitHelper(h);\n }\n }\n emitHelpers = ts.append(emitHelpers, helper);\n }\n function readEmitHelpers() {\n ts.Debug.assert(state > 0 /* Uninitialized */, \"Cannot modify the transformation context during initialization.\");\n ts.Debug.assert(state < 2 /* Completed */, \"Cannot modify the transformation context after transformation has completed.\");\n var helpers = emitHelpers;\n emitHelpers = undefined;\n return helpers;\n }\n function dispose() {\n if (state < 3 /* Disposed */) {\n // Clean up emit nodes on parse tree\n for (var _i = 0, nodes_4 = nodes; _i < nodes_4.length; _i++) {\n var node = nodes_4[_i];\n ts.disposeEmitNodes(ts.getSourceFileOfNode(ts.getParseTreeNode(node)));\n }\n // Release references to external entries for GC purposes.\n lexicalEnvironmentVariableDeclarations = undefined;\n lexicalEnvironmentVariableDeclarationsStack = undefined;\n lexicalEnvironmentFunctionDeclarations = undefined;\n lexicalEnvironmentFunctionDeclarationsStack = undefined;\n onSubstituteNode = undefined;\n onEmitNode = undefined;\n emitHelpers = undefined;\n // Prevent further use of the transformation result.\n state = 3 /* Disposed */;\n }\n }\n }\n ts.transformNodes = transformNodes;\n ts.nullTransformationContext = {\n factory: ts.factory,\n getCompilerOptions: function () { return ({}); },\n getEmitResolver: ts.notImplemented,\n getEmitHost: ts.notImplemented,\n getEmitHelperFactory: ts.notImplemented,\n startLexicalEnvironment: ts.noop,\n resumeLexicalEnvironment: ts.noop,\n suspendLexicalEnvironment: ts.noop,\n endLexicalEnvironment: ts.returnUndefined,\n setLexicalEnvironmentFlags: ts.noop,\n getLexicalEnvironmentFlags: function () { return 0; },\n hoistVariableDeclaration: ts.noop,\n hoistFunctionDeclaration: ts.noop,\n addInitializationStatement: ts.noop,\n startBlockScope: ts.noop,\n endBlockScope: ts.returnUndefined,\n addBlockScopedVariable: ts.noop,\n requestEmitHelper: ts.noop,\n readEmitHelpers: ts.notImplemented,\n enableSubstitution: ts.noop,\n enableEmitNotification: ts.noop,\n isSubstitutionEnabled: ts.notImplemented,\n isEmitNotificationEnabled: ts.notImplemented,\n onSubstituteNode: noEmitSubstitution,\n onEmitNode: noEmitNotification,\n addDiagnostic: ts.noop,\n };\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var brackets = createBracketsMap();\n /*@internal*/\n function isBuildInfoFile(file) {\n return ts.fileExtensionIs(file, \".tsbuildinfo\" /* TsBuildInfo */);\n }\n ts.isBuildInfoFile = isBuildInfoFile;\n /*@internal*/\n /**\n * Iterates over the source files that are expected to have an emit output.\n *\n * @param host An EmitHost.\n * @param action The action to execute.\n * @param sourceFilesOrTargetSourceFile\n * If an array, the full list of source files to emit.\n * Else, calls `getSourceFilesToEmit` with the (optional) target source file to determine the list of source files to emit.\n */\n function forEachEmittedFile(host, action, sourceFilesOrTargetSourceFile, forceDtsEmit, onlyBuildInfo, includeBuildInfo) {\n if (forceDtsEmit === void 0) { forceDtsEmit = false; }\n var sourceFiles = ts.isArray(sourceFilesOrTargetSourceFile) ? sourceFilesOrTargetSourceFile : ts.getSourceFilesToEmit(host, sourceFilesOrTargetSourceFile, forceDtsEmit);\n var options = host.getCompilerOptions();\n if (ts.outFile(options)) {\n var prepends = host.getPrependNodes();\n if (sourceFiles.length || prepends.length) {\n var bundle = ts.factory.createBundle(sourceFiles, prepends);\n var result = action(getOutputPathsFor(bundle, host, forceDtsEmit), bundle);\n if (result) {\n return result;\n }\n }\n }\n else {\n if (!onlyBuildInfo) {\n for (var _a = 0, sourceFiles_1 = sourceFiles; _a < sourceFiles_1.length; _a++) {\n var sourceFile = sourceFiles_1[_a];\n var result = action(getOutputPathsFor(sourceFile, host, forceDtsEmit), sourceFile);\n if (result) {\n return result;\n }\n }\n }\n if (includeBuildInfo) {\n var buildInfoPath = getTsBuildInfoEmitOutputFilePath(options);\n if (buildInfoPath)\n return action({ buildInfoPath: buildInfoPath }, /*sourceFileOrBundle*/ undefined);\n }\n }\n }\n ts.forEachEmittedFile = forEachEmittedFile;\n function getTsBuildInfoEmitOutputFilePath(options) {\n var configFile = options.configFilePath;\n if (!ts.isIncrementalCompilation(options))\n return undefined;\n if (options.tsBuildInfoFile)\n return options.tsBuildInfoFile;\n var outPath = ts.outFile(options);\n var buildInfoExtensionLess;\n if (outPath) {\n buildInfoExtensionLess = ts.removeFileExtension(outPath);\n }\n else {\n if (!configFile)\n return undefined;\n var configFileExtensionLess = ts.removeFileExtension(configFile);\n buildInfoExtensionLess = options.outDir ?\n options.rootDir ?\n ts.resolvePath(options.outDir, ts.getRelativePathFromDirectory(options.rootDir, configFileExtensionLess, /*ignoreCase*/ true)) :\n ts.combinePaths(options.outDir, ts.getBaseFileName(configFileExtensionLess)) :\n configFileExtensionLess;\n }\n return buildInfoExtensionLess + \".tsbuildinfo\" /* TsBuildInfo */;\n }\n ts.getTsBuildInfoEmitOutputFilePath = getTsBuildInfoEmitOutputFilePath;\n /*@internal*/\n function getOutputPathsForBundle(options, forceDtsPaths) {\n var outPath = ts.outFile(options);\n var jsFilePath = options.emitDeclarationOnly ? undefined : outPath;\n var sourceMapFilePath = jsFilePath && getSourceMapFilePath(jsFilePath, options);\n var declarationFilePath = (forceDtsPaths || ts.getEmitDeclarations(options)) ? ts.removeFileExtension(outPath) + \".d.ts\" /* Dts */ : undefined;\n var declarationMapPath = declarationFilePath && ts.getAreDeclarationMapsEnabled(options) ? declarationFilePath + \".map\" : undefined;\n var buildInfoPath = getTsBuildInfoEmitOutputFilePath(options);\n return { jsFilePath: jsFilePath, sourceMapFilePath: sourceMapFilePath, declarationFilePath: declarationFilePath, declarationMapPath: declarationMapPath, buildInfoPath: buildInfoPath };\n }\n ts.getOutputPathsForBundle = getOutputPathsForBundle;\n /*@internal*/\n function getOutputPathsFor(sourceFile, host, forceDtsPaths) {\n var options = host.getCompilerOptions();\n if (sourceFile.kind === 301 /* Bundle */) {\n return getOutputPathsForBundle(options, forceDtsPaths);\n }\n else {\n var ownOutputFilePath = ts.getOwnEmitOutputFilePath(sourceFile.fileName, host, getOutputExtension(sourceFile, options));\n var isJsonFile = ts.isJsonSourceFile(sourceFile);\n // If json file emits to the same location skip writing it, if emitDeclarationOnly skip writing it\n var isJsonEmittedToSameLocation = isJsonFile &&\n ts.comparePaths(sourceFile.fileName, ownOutputFilePath, host.getCurrentDirectory(), !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */;\n var jsFilePath = options.emitDeclarationOnly || isJsonEmittedToSameLocation ? undefined : ownOutputFilePath;\n var sourceMapFilePath = !jsFilePath || ts.isJsonSourceFile(sourceFile) ? undefined : getSourceMapFilePath(jsFilePath, options);\n var declarationFilePath = (forceDtsPaths || (ts.getEmitDeclarations(options) && !isJsonFile)) ? ts.getDeclarationEmitOutputFilePath(sourceFile.fileName, host) : undefined;\n var declarationMapPath = declarationFilePath && ts.getAreDeclarationMapsEnabled(options) ? declarationFilePath + \".map\" : undefined;\n return { jsFilePath: jsFilePath, sourceMapFilePath: sourceMapFilePath, declarationFilePath: declarationFilePath, declarationMapPath: declarationMapPath, buildInfoPath: undefined };\n }\n }\n ts.getOutputPathsFor = getOutputPathsFor;\n function getSourceMapFilePath(jsFilePath, options) {\n return (options.sourceMap && !options.inlineSourceMap) ? jsFilePath + \".map\" : undefined;\n }\n // JavaScript files are always LanguageVariant.JSX, as JSX syntax is allowed in .js files also.\n // So for JavaScript files, '.jsx' is only emitted if the input was '.jsx', and JsxEmit.Preserve.\n // For TypeScript, the only time to emit with a '.jsx' extension, is on JSX input, and JsxEmit.Preserve\n /* @internal */\n function getOutputExtension(sourceFile, options) {\n if (ts.isJsonSourceFile(sourceFile)) {\n return \".json\" /* Json */;\n }\n if (options.jsx === 1 /* Preserve */) {\n if (ts.isSourceFileJS(sourceFile)) {\n if (ts.fileExtensionIs(sourceFile.fileName, \".jsx\" /* Jsx */)) {\n return \".jsx\" /* Jsx */;\n }\n }\n else if (sourceFile.languageVariant === 1 /* JSX */) {\n // TypeScript source file preserving JSX syntax\n return \".jsx\" /* Jsx */;\n }\n }\n return \".js\" /* Js */;\n }\n ts.getOutputExtension = getOutputExtension;\n function getOutputPathWithoutChangingExt(inputFileName, configFile, ignoreCase, outputDir, getCommonSourceDirectory) {\n return outputDir ?\n ts.resolvePath(outputDir, ts.getRelativePathFromDirectory(getCommonSourceDirectory ? getCommonSourceDirectory() : getCommonSourceDirectoryOfConfig(configFile, ignoreCase), inputFileName, ignoreCase)) :\n inputFileName;\n }\n /* @internal */\n function getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory) {\n ts.Debug.assert(!ts.fileExtensionIs(inputFileName, \".d.ts\" /* Dts */) && !ts.fileExtensionIs(inputFileName, \".json\" /* Json */));\n return ts.changeExtension(getOutputPathWithoutChangingExt(inputFileName, configFile, ignoreCase, configFile.options.declarationDir || configFile.options.outDir, getCommonSourceDirectory), \".d.ts\" /* Dts */);\n }\n ts.getOutputDeclarationFileName = getOutputDeclarationFileName;\n function getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory) {\n if (configFile.options.emitDeclarationOnly)\n return undefined;\n var isJsonFile = ts.fileExtensionIs(inputFileName, \".json\" /* Json */);\n var outputFileName = ts.changeExtension(getOutputPathWithoutChangingExt(inputFileName, configFile, ignoreCase, configFile.options.outDir, getCommonSourceDirectory), isJsonFile ?\n \".json\" /* Json */ :\n configFile.options.jsx === 1 /* Preserve */ && (ts.fileExtensionIs(inputFileName, \".tsx\" /* Tsx */) || ts.fileExtensionIs(inputFileName, \".jsx\" /* Jsx */)) ?\n \".jsx\" /* Jsx */ :\n \".js\" /* Js */);\n return !isJsonFile || ts.comparePaths(inputFileName, outputFileName, ts.Debug.checkDefined(configFile.options.configFilePath), ignoreCase) !== 0 /* EqualTo */ ?\n outputFileName :\n undefined;\n }\n function createAddOutput() {\n var outputs;\n return { addOutput: addOutput, getOutputs: getOutputs };\n function addOutput(path) {\n if (path) {\n (outputs || (outputs = [])).push(path);\n }\n }\n function getOutputs() {\n return outputs || ts.emptyArray;\n }\n }\n function getSingleOutputFileNames(configFile, addOutput) {\n var _a = getOutputPathsForBundle(configFile.options, /*forceDtsPaths*/ false), jsFilePath = _a.jsFilePath, sourceMapFilePath = _a.sourceMapFilePath, declarationFilePath = _a.declarationFilePath, declarationMapPath = _a.declarationMapPath, buildInfoPath = _a.buildInfoPath;\n addOutput(jsFilePath);\n addOutput(sourceMapFilePath);\n addOutput(declarationFilePath);\n addOutput(declarationMapPath);\n addOutput(buildInfoPath);\n }\n function getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory) {\n if (ts.fileExtensionIs(inputFileName, \".d.ts\" /* Dts */))\n return;\n var js = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);\n addOutput(js);\n if (ts.fileExtensionIs(inputFileName, \".json\" /* Json */))\n return;\n if (js && configFile.options.sourceMap) {\n addOutput(js + \".map\");\n }\n if (ts.getEmitDeclarations(configFile.options)) {\n var dts = getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);\n addOutput(dts);\n if (configFile.options.declarationMap) {\n addOutput(dts + \".map\");\n }\n }\n }\n /*@internal*/\n function getCommonSourceDirectory(options, emittedFiles, currentDirectory, getCanonicalFileName, checkSourceFilesBelongToPath) {\n var commonSourceDirectory;\n if (options.rootDir) {\n // If a rootDir is specified use it as the commonSourceDirectory\n commonSourceDirectory = ts.getNormalizedAbsolutePath(options.rootDir, currentDirectory);\n checkSourceFilesBelongToPath === null || checkSourceFilesBelongToPath === void 0 ? void 0 : checkSourceFilesBelongToPath(options.rootDir);\n }\n else if (options.composite && options.configFilePath) {\n // Project compilations never infer their root from the input source paths\n commonSourceDirectory = ts.getDirectoryPath(ts.normalizeSlashes(options.configFilePath));\n checkSourceFilesBelongToPath === null || checkSourceFilesBelongToPath === void 0 ? void 0 : checkSourceFilesBelongToPath(commonSourceDirectory);\n }\n else {\n commonSourceDirectory = ts.computeCommonSourceDirectoryOfFilenames(emittedFiles(), currentDirectory, getCanonicalFileName);\n }\n if (commonSourceDirectory && commonSourceDirectory[commonSourceDirectory.length - 1] !== ts.directorySeparator) {\n // Make sure directory path ends with directory separator so this string can directly\n // used to replace with \"\" to get the relative path of the source file and the relative path doesn't\n // start with / making it rooted path\n commonSourceDirectory += ts.directorySeparator;\n }\n return commonSourceDirectory;\n }\n ts.getCommonSourceDirectory = getCommonSourceDirectory;\n /*@internal*/\n function getCommonSourceDirectoryOfConfig(_a, ignoreCase) {\n var options = _a.options, fileNames = _a.fileNames;\n return getCommonSourceDirectory(options, function () { return ts.filter(fileNames, function (file) { return !(options.noEmitForJsFiles && ts.fileExtensionIsOneOf(file, ts.supportedJSExtensions)) && !ts.fileExtensionIs(file, \".d.ts\" /* Dts */); }); }, ts.getDirectoryPath(ts.normalizeSlashes(ts.Debug.checkDefined(options.configFilePath))), ts.createGetCanonicalFileName(!ignoreCase));\n }\n ts.getCommonSourceDirectoryOfConfig = getCommonSourceDirectoryOfConfig;\n /*@internal*/\n function getAllProjectOutputs(configFile, ignoreCase) {\n var _a = createAddOutput(), addOutput = _a.addOutput, getOutputs = _a.getOutputs;\n if (ts.outFile(configFile.options)) {\n getSingleOutputFileNames(configFile, addOutput);\n }\n else {\n var getCommonSourceDirectory_1 = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });\n for (var _b = 0, _c = configFile.fileNames; _b < _c.length; _b++) {\n var inputFileName = _c[_b];\n getOwnOutputFileNames(configFile, inputFileName, ignoreCase, addOutput, getCommonSourceDirectory_1);\n }\n addOutput(getTsBuildInfoEmitOutputFilePath(configFile.options));\n }\n return getOutputs();\n }\n ts.getAllProjectOutputs = getAllProjectOutputs;\n function getOutputFileNames(commandLine, inputFileName, ignoreCase) {\n inputFileName = ts.normalizePath(inputFileName);\n ts.Debug.assert(ts.contains(commandLine.fileNames, inputFileName), \"Expected fileName to be present in command line\");\n var _a = createAddOutput(), addOutput = _a.addOutput, getOutputs = _a.getOutputs;\n if (ts.outFile(commandLine.options)) {\n getSingleOutputFileNames(commandLine, addOutput);\n }\n else {\n getOwnOutputFileNames(commandLine, inputFileName, ignoreCase, addOutput);\n }\n return getOutputs();\n }\n ts.getOutputFileNames = getOutputFileNames;\n /*@internal*/\n function getFirstProjectOutput(configFile, ignoreCase) {\n if (ts.outFile(configFile.options)) {\n var jsFilePath = getOutputPathsForBundle(configFile.options, /*forceDtsPaths*/ false).jsFilePath;\n return ts.Debug.checkDefined(jsFilePath, \"project \" + configFile.options.configFilePath + \" expected to have at least one output\");\n }\n var getCommonSourceDirectory = ts.memoize(function () { return getCommonSourceDirectoryOfConfig(configFile, ignoreCase); });\n for (var _a = 0, _b = configFile.fileNames; _a < _b.length; _a++) {\n var inputFileName = _b[_a];\n if (ts.fileExtensionIs(inputFileName, \".d.ts\" /* Dts */))\n continue;\n var jsFilePath = getOutputJSFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);\n if (jsFilePath)\n return jsFilePath;\n if (ts.fileExtensionIs(inputFileName, \".json\" /* Json */))\n continue;\n if (ts.getEmitDeclarations(configFile.options)) {\n return getOutputDeclarationFileName(inputFileName, configFile, ignoreCase, getCommonSourceDirectory);\n }\n }\n var buildInfoPath = getTsBuildInfoEmitOutputFilePath(configFile.options);\n if (buildInfoPath)\n return buildInfoPath;\n return ts.Debug.fail(\"project \" + configFile.options.configFilePath + \" expected to have at least one output\");\n }\n ts.getFirstProjectOutput = getFirstProjectOutput;\n /*@internal*/\n // targetSourceFile is when users only want one file in entire project to be emitted. This is used in compileOnSave feature\n function emitFiles(resolver, host, targetSourceFile, _a, emitOnlyDtsFiles, onlyBuildInfo, forceDtsEmit) {\n var scriptTransformers = _a.scriptTransformers, declarationTransformers = _a.declarationTransformers;\n var compilerOptions = host.getCompilerOptions();\n var sourceMapDataList = (compilerOptions.sourceMap || compilerOptions.inlineSourceMap || ts.getAreDeclarationMapsEnabled(compilerOptions)) ? [] : undefined;\n var emittedFilesList = compilerOptions.listEmittedFiles ? [] : undefined;\n var emitterDiagnostics = ts.createDiagnosticCollection();\n var newLine = ts.getNewLineCharacter(compilerOptions, function () { return host.getNewLine(); });\n var writer = ts.createTextWriter(newLine);\n var _b = ts.performance.createTimer(\"printTime\", \"beforePrint\", \"afterPrint\"), enter = _b.enter, exit = _b.exit;\n var bundleBuildInfo;\n var emitSkipped = false;\n var exportedModulesFromDeclarationEmit;\n // Emit each output file\n enter();\n forEachEmittedFile(host, emitSourceFileOrBundle, ts.getSourceFilesToEmit(host, targetSourceFile, forceDtsEmit), forceDtsEmit, onlyBuildInfo, !targetSourceFile);\n exit();\n return {\n emitSkipped: emitSkipped,\n diagnostics: emitterDiagnostics.getDiagnostics(),\n emittedFiles: emittedFilesList,\n sourceMaps: sourceMapDataList,\n exportedModulesFromDeclarationEmit: exportedModulesFromDeclarationEmit\n };\n function emitSourceFileOrBundle(_a, sourceFileOrBundle) {\n var jsFilePath = _a.jsFilePath, sourceMapFilePath = _a.sourceMapFilePath, declarationFilePath = _a.declarationFilePath, declarationMapPath = _a.declarationMapPath, buildInfoPath = _a.buildInfoPath;\n var buildInfoDirectory;\n if (buildInfoPath && sourceFileOrBundle && ts.isBundle(sourceFileOrBundle)) {\n buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n bundleBuildInfo = {\n commonSourceDirectory: relativeToBuildInfo(host.getCommonSourceDirectory()),\n sourceFiles: sourceFileOrBundle.sourceFiles.map(function (file) { return relativeToBuildInfo(ts.getNormalizedAbsolutePath(file.fileName, host.getCurrentDirectory())); })\n };\n }\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"emit\" /* Emit */, \"emitJsFileOrBundle\", { jsFilePath: jsFilePath });\n emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath, relativeToBuildInfo);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"emit\" /* Emit */, \"emitDeclarationFileOrBundle\", { declarationFilePath: declarationFilePath });\n emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath, relativeToBuildInfo);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"emit\" /* Emit */, \"emitBuildInfo\", { buildInfoPath: buildInfoPath });\n emitBuildInfo(bundleBuildInfo, buildInfoPath);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n if (!emitSkipped && emittedFilesList) {\n if (!emitOnlyDtsFiles) {\n if (jsFilePath) {\n emittedFilesList.push(jsFilePath);\n }\n if (sourceMapFilePath) {\n emittedFilesList.push(sourceMapFilePath);\n }\n if (buildInfoPath) {\n emittedFilesList.push(buildInfoPath);\n }\n }\n if (declarationFilePath) {\n emittedFilesList.push(declarationFilePath);\n }\n if (declarationMapPath) {\n emittedFilesList.push(declarationMapPath);\n }\n }\n function relativeToBuildInfo(path) {\n return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, host.getCanonicalFileName));\n }\n }\n function emitBuildInfo(bundle, buildInfoPath) {\n // Write build information if applicable\n if (!buildInfoPath || targetSourceFile || emitSkipped)\n return;\n var program = host.getProgramBuildInfo();\n if (host.isEmitBlocked(buildInfoPath)) {\n emitSkipped = true;\n return;\n }\n var version = ts.version; // Extracted into a const so the form is stable between namespace and module\n ts.writeFile(host, emitterDiagnostics, buildInfoPath, getBuildInfoText({ bundle: bundle, program: program, version: version }), /*writeByteOrderMark*/ false);\n }\n function emitJsFileOrBundle(sourceFileOrBundle, jsFilePath, sourceMapFilePath, relativeToBuildInfo) {\n if (!sourceFileOrBundle || emitOnlyDtsFiles || !jsFilePath) {\n return;\n }\n // Make sure not to write js file and source map file if any of them cannot be written\n if ((jsFilePath && host.isEmitBlocked(jsFilePath)) || compilerOptions.noEmit) {\n emitSkipped = true;\n return;\n }\n // Transform the source files\n var transform = ts.transformNodes(resolver, host, ts.factory, compilerOptions, [sourceFileOrBundle], scriptTransformers, /*allowDtsFiles*/ false);\n var printerOptions = {\n removeComments: compilerOptions.removeComments,\n newLine: compilerOptions.newLine,\n noEmitHelpers: compilerOptions.noEmitHelpers,\n module: compilerOptions.module,\n target: compilerOptions.target,\n sourceMap: compilerOptions.sourceMap,\n inlineSourceMap: compilerOptions.inlineSourceMap,\n inlineSources: compilerOptions.inlineSources,\n extendedDiagnostics: compilerOptions.extendedDiagnostics,\n writeBundleFileInfo: !!bundleBuildInfo,\n relativeToBuildInfo: relativeToBuildInfo\n };\n // Create a printer to print the nodes\n var printer = createPrinter(printerOptions, {\n // resolver hooks\n hasGlobalName: resolver.hasGlobalName,\n // transform hooks\n onEmitNode: transform.emitNodeWithNotification,\n isEmitNotificationEnabled: transform.isEmitNotificationEnabled,\n substituteNode: transform.substituteNode,\n });\n ts.Debug.assert(transform.transformed.length === 1, \"Should only see one output from the transform\");\n printSourceFileOrBundle(jsFilePath, sourceMapFilePath, transform.transformed[0], printer, compilerOptions);\n // Clean up emit nodes on parse tree\n transform.dispose();\n if (bundleBuildInfo)\n bundleBuildInfo.js = printer.bundleFileInfo;\n }\n function emitDeclarationFileOrBundle(sourceFileOrBundle, declarationFilePath, declarationMapPath, relativeToBuildInfo) {\n if (!sourceFileOrBundle)\n return;\n if (!declarationFilePath) {\n if (emitOnlyDtsFiles || compilerOptions.emitDeclarationOnly)\n emitSkipped = true;\n return;\n }\n var sourceFiles = ts.isSourceFile(sourceFileOrBundle) ? [sourceFileOrBundle] : sourceFileOrBundle.sourceFiles;\n var filesForEmit = forceDtsEmit ? sourceFiles : ts.filter(sourceFiles, ts.isSourceFileNotJson);\n // Setup and perform the transformation to retrieve declarations from the input files\n var inputListOrBundle = ts.outFile(compilerOptions) ? [ts.factory.createBundle(filesForEmit, !ts.isSourceFile(sourceFileOrBundle) ? sourceFileOrBundle.prepends : undefined)] : filesForEmit;\n if (emitOnlyDtsFiles && !ts.getEmitDeclarations(compilerOptions)) {\n // Checker wont collect the linked aliases since thats only done when declaration is enabled.\n // Do that here when emitting only dts files\n filesForEmit.forEach(collectLinkedAliases);\n }\n var declarationTransform = ts.transformNodes(resolver, host, ts.factory, compilerOptions, inputListOrBundle, declarationTransformers, /*allowDtsFiles*/ false);\n if (ts.length(declarationTransform.diagnostics)) {\n for (var _a = 0, _b = declarationTransform.diagnostics; _a < _b.length; _a++) {\n var diagnostic = _b[_a];\n emitterDiagnostics.add(diagnostic);\n }\n }\n var printerOptions = {\n removeComments: compilerOptions.removeComments,\n newLine: compilerOptions.newLine,\n noEmitHelpers: true,\n module: compilerOptions.module,\n target: compilerOptions.target,\n sourceMap: compilerOptions.sourceMap,\n inlineSourceMap: compilerOptions.inlineSourceMap,\n extendedDiagnostics: compilerOptions.extendedDiagnostics,\n onlyPrintJsDocStyle: true,\n writeBundleFileInfo: !!bundleBuildInfo,\n recordInternalSection: !!bundleBuildInfo,\n relativeToBuildInfo: relativeToBuildInfo\n };\n var declarationPrinter = createPrinter(printerOptions, {\n // resolver hooks\n hasGlobalName: resolver.hasGlobalName,\n // transform hooks\n onEmitNode: declarationTransform.emitNodeWithNotification,\n isEmitNotificationEnabled: declarationTransform.isEmitNotificationEnabled,\n substituteNode: declarationTransform.substituteNode,\n });\n var declBlocked = (!!declarationTransform.diagnostics && !!declarationTransform.diagnostics.length) || !!host.isEmitBlocked(declarationFilePath) || !!compilerOptions.noEmit;\n emitSkipped = emitSkipped || declBlocked;\n if (!declBlocked || forceDtsEmit) {\n ts.Debug.assert(declarationTransform.transformed.length === 1, \"Should only see one output from the decl transform\");\n printSourceFileOrBundle(declarationFilePath, declarationMapPath, declarationTransform.transformed[0], declarationPrinter, {\n sourceMap: !forceDtsEmit && compilerOptions.declarationMap,\n sourceRoot: compilerOptions.sourceRoot,\n mapRoot: compilerOptions.mapRoot,\n extendedDiagnostics: compilerOptions.extendedDiagnostics,\n // Explicitly do not passthru either `inline` option\n });\n if (forceDtsEmit && declarationTransform.transformed[0].kind === 300 /* SourceFile */) {\n var sourceFile = declarationTransform.transformed[0];\n exportedModulesFromDeclarationEmit = sourceFile.exportedModulesFromDeclarationEmit;\n }\n }\n declarationTransform.dispose();\n if (bundleBuildInfo)\n bundleBuildInfo.dts = declarationPrinter.bundleFileInfo;\n }\n function collectLinkedAliases(node) {\n if (ts.isExportAssignment(node)) {\n if (node.expression.kind === 79 /* Identifier */) {\n resolver.collectLinkedAliases(node.expression, /*setVisibility*/ true);\n }\n return;\n }\n else if (ts.isExportSpecifier(node)) {\n resolver.collectLinkedAliases(node.propertyName || node.name, /*setVisibility*/ true);\n return;\n }\n ts.forEachChild(node, collectLinkedAliases);\n }\n function printSourceFileOrBundle(jsFilePath, sourceMapFilePath, sourceFileOrBundle, printer, mapOptions) {\n var bundle = sourceFileOrBundle.kind === 301 /* Bundle */ ? sourceFileOrBundle : undefined;\n var sourceFile = sourceFileOrBundle.kind === 300 /* SourceFile */ ? sourceFileOrBundle : undefined;\n var sourceFiles = bundle ? bundle.sourceFiles : [sourceFile];\n var sourceMapGenerator;\n if (shouldEmitSourceMaps(mapOptions, sourceFileOrBundle)) {\n sourceMapGenerator = ts.createSourceMapGenerator(host, ts.getBaseFileName(ts.normalizeSlashes(jsFilePath)), getSourceRoot(mapOptions), getSourceMapDirectory(mapOptions, jsFilePath, sourceFile), mapOptions);\n }\n if (bundle) {\n printer.writeBundle(bundle, writer, sourceMapGenerator);\n }\n else {\n printer.writeFile(sourceFile, writer, sourceMapGenerator);\n }\n if (sourceMapGenerator) {\n if (sourceMapDataList) {\n sourceMapDataList.push({\n inputSourceFileNames: sourceMapGenerator.getSources(),\n sourceMap: sourceMapGenerator.toJSON()\n });\n }\n var sourceMappingURL = getSourceMappingURL(mapOptions, sourceMapGenerator, jsFilePath, sourceMapFilePath, sourceFile);\n if (sourceMappingURL) {\n if (!writer.isAtStartOfLine())\n writer.rawWrite(newLine);\n writer.writeComment(\"//# \" + \"sourceMappingURL\" + \"=\" + sourceMappingURL); // Tools can sometimes see this line as a source mapping url comment\n }\n // Write the source map\n if (sourceMapFilePath) {\n var sourceMap = sourceMapGenerator.toString();\n ts.writeFile(host, emitterDiagnostics, sourceMapFilePath, sourceMap, /*writeByteOrderMark*/ false, sourceFiles);\n }\n }\n else {\n writer.writeLine();\n }\n // Write the output file\n ts.writeFile(host, emitterDiagnostics, jsFilePath, writer.getText(), !!compilerOptions.emitBOM, sourceFiles);\n // Reset state\n writer.clear();\n }\n function shouldEmitSourceMaps(mapOptions, sourceFileOrBundle) {\n return (mapOptions.sourceMap || mapOptions.inlineSourceMap)\n && (sourceFileOrBundle.kind !== 300 /* SourceFile */ || !ts.fileExtensionIs(sourceFileOrBundle.fileName, \".json\" /* Json */));\n }\n function getSourceRoot(mapOptions) {\n // Normalize source root and make sure it has trailing \"/\" so that it can be used to combine paths with the\n // relative paths of the sources list in the sourcemap\n var sourceRoot = ts.normalizeSlashes(mapOptions.sourceRoot || \"\");\n return sourceRoot ? ts.ensureTrailingDirectorySeparator(sourceRoot) : sourceRoot;\n }\n function getSourceMapDirectory(mapOptions, filePath, sourceFile) {\n if (mapOptions.sourceRoot)\n return host.getCommonSourceDirectory();\n if (mapOptions.mapRoot) {\n var sourceMapDir = ts.normalizeSlashes(mapOptions.mapRoot);\n if (sourceFile) {\n // For modules or multiple emit files the mapRoot will have directory structure like the sources\n // So if src\\a.ts and src\\lib\\b.ts are compiled together user would be moving the maps into mapRoot\\a.js.map and mapRoot\\lib\\b.js.map\n sourceMapDir = ts.getDirectoryPath(ts.getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir));\n }\n if (ts.getRootLength(sourceMapDir) === 0) {\n // The relative paths are relative to the common directory\n sourceMapDir = ts.combinePaths(host.getCommonSourceDirectory(), sourceMapDir);\n }\n return sourceMapDir;\n }\n return ts.getDirectoryPath(ts.normalizePath(filePath));\n }\n function getSourceMappingURL(mapOptions, sourceMapGenerator, filePath, sourceMapFilePath, sourceFile) {\n if (mapOptions.inlineSourceMap) {\n // Encode the sourceMap into the sourceMap url\n var sourceMapText = sourceMapGenerator.toString();\n var base64SourceMapText = ts.base64encode(ts.sys, sourceMapText);\n return \"data:application/json;base64,\" + base64SourceMapText;\n }\n var sourceMapFile = ts.getBaseFileName(ts.normalizeSlashes(ts.Debug.checkDefined(sourceMapFilePath)));\n if (mapOptions.mapRoot) {\n var sourceMapDir = ts.normalizeSlashes(mapOptions.mapRoot);\n if (sourceFile) {\n // For modules or multiple emit files the mapRoot will have directory structure like the sources\n // So if src\\a.ts and src\\lib\\b.ts are compiled together user would be moving the maps into mapRoot\\a.js.map and mapRoot\\lib\\b.js.map\n sourceMapDir = ts.getDirectoryPath(ts.getSourceFilePathInNewDir(sourceFile.fileName, host, sourceMapDir));\n }\n if (ts.getRootLength(sourceMapDir) === 0) {\n // The relative paths are relative to the common directory\n sourceMapDir = ts.combinePaths(host.getCommonSourceDirectory(), sourceMapDir);\n return encodeURI(ts.getRelativePathToDirectoryOrUrl(ts.getDirectoryPath(ts.normalizePath(filePath)), // get the relative sourceMapDir path based on jsFilePath\n ts.combinePaths(sourceMapDir, sourceMapFile), // this is where user expects to see sourceMap\n host.getCurrentDirectory(), host.getCanonicalFileName, \n /*isAbsolutePathAnUrl*/ true));\n }\n else {\n return encodeURI(ts.combinePaths(sourceMapDir, sourceMapFile));\n }\n }\n return encodeURI(sourceMapFile);\n }\n }\n ts.emitFiles = emitFiles;\n /*@internal*/\n function getBuildInfoText(buildInfo) {\n return JSON.stringify(buildInfo);\n }\n ts.getBuildInfoText = getBuildInfoText;\n /*@internal*/\n function getBuildInfo(buildInfoText) {\n return JSON.parse(buildInfoText);\n }\n ts.getBuildInfo = getBuildInfo;\n /*@internal*/\n ts.notImplementedResolver = {\n hasGlobalName: ts.notImplemented,\n getReferencedExportContainer: ts.notImplemented,\n getReferencedImportDeclaration: ts.notImplemented,\n getReferencedDeclarationWithCollidingName: ts.notImplemented,\n isDeclarationWithCollidingName: ts.notImplemented,\n isValueAliasDeclaration: ts.notImplemented,\n isReferencedAliasDeclaration: ts.notImplemented,\n isTopLevelValueImportEqualsWithEntityName: ts.notImplemented,\n getNodeCheckFlags: ts.notImplemented,\n isDeclarationVisible: ts.notImplemented,\n isLateBound: function (_node) { return false; },\n collectLinkedAliases: ts.notImplemented,\n isImplementationOfOverload: ts.notImplemented,\n isRequiredInitializedParameter: ts.notImplemented,\n isOptionalUninitializedParameterProperty: ts.notImplemented,\n isExpandoFunctionDeclaration: ts.notImplemented,\n getPropertiesOfContainerFunction: ts.notImplemented,\n createTypeOfDeclaration: ts.notImplemented,\n createReturnTypeOfSignatureDeclaration: ts.notImplemented,\n createTypeOfExpression: ts.notImplemented,\n createLiteralConstValue: ts.notImplemented,\n isSymbolAccessible: ts.notImplemented,\n isEntityNameVisible: ts.notImplemented,\n // Returns the constant value this property access resolves to: notImplemented, or 'undefined' for a non-constant\n getConstantValue: ts.notImplemented,\n getReferencedValueDeclaration: ts.notImplemented,\n getTypeReferenceSerializationKind: ts.notImplemented,\n isOptionalParameter: ts.notImplemented,\n moduleExportsSomeValue: ts.notImplemented,\n isArgumentsLocalBinding: ts.notImplemented,\n getExternalModuleFileFromDeclaration: ts.notImplemented,\n getTypeReferenceDirectivesForEntityName: ts.notImplemented,\n getTypeReferenceDirectivesForSymbol: ts.notImplemented,\n isLiteralConstDeclaration: ts.notImplemented,\n getJsxFactoryEntity: ts.notImplemented,\n getJsxFragmentFactoryEntity: ts.notImplemented,\n getAllAccessorDeclarations: ts.notImplemented,\n getSymbolOfExternalModuleSpecifier: ts.notImplemented,\n isBindingCapturedByNode: ts.notImplemented,\n getDeclarationStatementsForSourceFile: ts.notImplemented,\n isImportRequiredByAugmentation: ts.notImplemented,\n };\n function createSourceFilesFromBundleBuildInfo(bundle, buildInfoDirectory, host) {\n var _a;\n var jsBundle = ts.Debug.checkDefined(bundle.js);\n var prologueMap = ((_a = jsBundle.sources) === null || _a === void 0 ? void 0 : _a.prologues) && ts.arrayToMap(jsBundle.sources.prologues, function (prologueInfo) { return prologueInfo.file; });\n return bundle.sourceFiles.map(function (fileName, index) {\n var _a, _b;\n var prologueInfo = prologueMap === null || prologueMap === void 0 ? void 0 : prologueMap.get(index);\n var statements = prologueInfo === null || prologueInfo === void 0 ? void 0 : prologueInfo.directives.map(function (directive) {\n var literal = ts.setTextRange(ts.factory.createStringLiteral(directive.expression.text), directive.expression);\n var statement = ts.setTextRange(ts.factory.createExpressionStatement(literal), directive);\n ts.setParent(literal, statement);\n return statement;\n });\n var eofToken = ts.factory.createToken(1 /* EndOfFileToken */);\n var sourceFile = ts.factory.createSourceFile(statements !== null && statements !== void 0 ? statements : [], eofToken, 0 /* None */);\n sourceFile.fileName = ts.getRelativePathFromDirectory(host.getCurrentDirectory(), ts.getNormalizedAbsolutePath(fileName, buildInfoDirectory), !host.useCaseSensitiveFileNames());\n sourceFile.text = (_a = prologueInfo === null || prologueInfo === void 0 ? void 0 : prologueInfo.text) !== null && _a !== void 0 ? _a : \"\";\n ts.setTextRangePosWidth(sourceFile, 0, (_b = prologueInfo === null || prologueInfo === void 0 ? void 0 : prologueInfo.text.length) !== null && _b !== void 0 ? _b : 0);\n ts.setEachParent(sourceFile.statements, sourceFile);\n ts.setTextRangePosWidth(eofToken, sourceFile.end, 0);\n ts.setParent(eofToken, sourceFile);\n return sourceFile;\n });\n }\n /*@internal*/\n function emitUsingBuildInfo(config, host, getCommandLine, customTransformers) {\n var _a = getOutputPathsForBundle(config.options, /*forceDtsPaths*/ false), buildInfoPath = _a.buildInfoPath, jsFilePath = _a.jsFilePath, sourceMapFilePath = _a.sourceMapFilePath, declarationFilePath = _a.declarationFilePath, declarationMapPath = _a.declarationMapPath;\n var buildInfoText = host.readFile(ts.Debug.checkDefined(buildInfoPath));\n if (!buildInfoText)\n return buildInfoPath;\n var jsFileText = host.readFile(ts.Debug.checkDefined(jsFilePath));\n if (!jsFileText)\n return jsFilePath;\n var sourceMapText = sourceMapFilePath && host.readFile(sourceMapFilePath);\n // error if no source map or for now if inline sourcemap\n if ((sourceMapFilePath && !sourceMapText) || config.options.inlineSourceMap)\n return sourceMapFilePath || \"inline sourcemap decoding\";\n // read declaration text\n var declarationText = declarationFilePath && host.readFile(declarationFilePath);\n if (declarationFilePath && !declarationText)\n return declarationFilePath;\n var declarationMapText = declarationMapPath && host.readFile(declarationMapPath);\n // error if no source map or for now if inline sourcemap\n if ((declarationMapPath && !declarationMapText) || config.options.inlineSourceMap)\n return declarationMapPath || \"inline sourcemap decoding\";\n var buildInfo = getBuildInfo(buildInfoText);\n if (!buildInfo.bundle || !buildInfo.bundle.js || (declarationText && !buildInfo.bundle.dts))\n return buildInfoPath;\n var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n var ownPrependInput = ts.createInputFiles(jsFileText, declarationText, sourceMapFilePath, sourceMapText, declarationMapPath, declarationMapText, jsFilePath, declarationFilePath, buildInfoPath, buildInfo, \n /*onlyOwnText*/ true);\n var outputFiles = [];\n var prependNodes = ts.createPrependNodes(config.projectReferences, getCommandLine, function (f) { return host.readFile(f); });\n var sourceFilesForJsEmit = createSourceFilesFromBundleBuildInfo(buildInfo.bundle, buildInfoDirectory, host);\n var emitHost = {\n getPrependNodes: ts.memoize(function () { return __spreadArray(__spreadArray([], prependNodes, true), [ownPrependInput], false); }),\n getCanonicalFileName: host.getCanonicalFileName,\n getCommonSourceDirectory: function () { return ts.getNormalizedAbsolutePath(buildInfo.bundle.commonSourceDirectory, buildInfoDirectory); },\n getCompilerOptions: function () { return config.options; },\n getCurrentDirectory: function () { return host.getCurrentDirectory(); },\n getNewLine: function () { return host.getNewLine(); },\n getSourceFile: ts.returnUndefined,\n getSourceFileByPath: ts.returnUndefined,\n getSourceFiles: function () { return sourceFilesForJsEmit; },\n getLibFileFromReference: ts.notImplemented,\n isSourceFileFromExternalLibrary: ts.returnFalse,\n getResolvedProjectReferenceToRedirect: ts.returnUndefined,\n getProjectReferenceRedirect: ts.returnUndefined,\n isSourceOfProjectReferenceRedirect: ts.returnFalse,\n writeFile: function (name, text, writeByteOrderMark) {\n switch (name) {\n case jsFilePath:\n if (jsFileText === text)\n return;\n break;\n case sourceMapFilePath:\n if (sourceMapText === text)\n return;\n break;\n case buildInfoPath:\n var newBuildInfo = getBuildInfo(text);\n newBuildInfo.program = buildInfo.program;\n // Update sourceFileInfo\n var _a = buildInfo.bundle, js = _a.js, dts = _a.dts, sourceFiles = _a.sourceFiles;\n newBuildInfo.bundle.js.sources = js.sources;\n if (dts) {\n newBuildInfo.bundle.dts.sources = dts.sources;\n }\n newBuildInfo.bundle.sourceFiles = sourceFiles;\n outputFiles.push({ name: name, text: getBuildInfoText(newBuildInfo), writeByteOrderMark: writeByteOrderMark });\n return;\n case declarationFilePath:\n if (declarationText === text)\n return;\n break;\n case declarationMapPath:\n if (declarationMapText === text)\n return;\n break;\n default:\n ts.Debug.fail(\"Unexpected path: \" + name);\n }\n outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark });\n },\n isEmitBlocked: ts.returnFalse,\n readFile: function (f) { return host.readFile(f); },\n fileExists: function (f) { return host.fileExists(f); },\n useCaseSensitiveFileNames: function () { return host.useCaseSensitiveFileNames(); },\n getProgramBuildInfo: ts.returnUndefined,\n getSourceFileFromReference: ts.returnUndefined,\n redirectTargetsMap: ts.createMultiMap(),\n getFileIncludeReasons: ts.notImplemented,\n };\n emitFiles(ts.notImplementedResolver, emitHost, \n /*targetSourceFile*/ undefined, ts.getTransformers(config.options, customTransformers));\n return outputFiles;\n }\n ts.emitUsingBuildInfo = emitUsingBuildInfo;\n var PipelinePhase;\n (function (PipelinePhase) {\n PipelinePhase[PipelinePhase[\"Notification\"] = 0] = \"Notification\";\n PipelinePhase[PipelinePhase[\"Substitution\"] = 1] = \"Substitution\";\n PipelinePhase[PipelinePhase[\"Comments\"] = 2] = \"Comments\";\n PipelinePhase[PipelinePhase[\"SourceMaps\"] = 3] = \"SourceMaps\";\n PipelinePhase[PipelinePhase[\"Emit\"] = 4] = \"Emit\";\n })(PipelinePhase || (PipelinePhase = {}));\n function createPrinter(printerOptions, handlers) {\n if (printerOptions === void 0) { printerOptions = {}; }\n if (handlers === void 0) { handlers = {}; }\n var hasGlobalName = handlers.hasGlobalName, _a = handlers.onEmitNode, onEmitNode = _a === void 0 ? ts.noEmitNotification : _a, isEmitNotificationEnabled = handlers.isEmitNotificationEnabled, _b = handlers.substituteNode, substituteNode = _b === void 0 ? ts.noEmitSubstitution : _b, onBeforeEmitNode = handlers.onBeforeEmitNode, onAfterEmitNode = handlers.onAfterEmitNode, onBeforeEmitNodeArray = handlers.onBeforeEmitNodeArray, onAfterEmitNodeArray = handlers.onAfterEmitNodeArray, onBeforeEmitToken = handlers.onBeforeEmitToken, onAfterEmitToken = handlers.onAfterEmitToken;\n var extendedDiagnostics = !!printerOptions.extendedDiagnostics;\n var newLine = ts.getNewLineCharacter(printerOptions);\n var moduleKind = ts.getEmitModuleKind(printerOptions);\n var bundledHelpers = new ts.Map();\n var currentSourceFile;\n var nodeIdToGeneratedName; // Map of generated names for specific nodes.\n var autoGeneratedIdToGeneratedName; // Map of generated names for temp and loop variables.\n var generatedNames; // Set of names generated by the NameGenerator.\n var tempFlagsStack; // Stack of enclosing name generation scopes.\n var tempFlags; // TempFlags for the current name generation scope.\n var reservedNamesStack; // Stack of TempFlags reserved in enclosing name generation scopes.\n var reservedNames; // TempFlags to reserve in nested name generation scopes.\n var preserveSourceNewlines = printerOptions.preserveSourceNewlines; // Can be overridden inside nodes with the `IgnoreSourceNewlines` emit flag.\n var nextListElementPos; // See comment in `getLeadingLineTerminatorCount`.\n var writer;\n var ownWriter; // Reusable `EmitTextWriter` for basic printing.\n var write = writeBase;\n var isOwnFileEmit;\n var bundleFileInfo = printerOptions.writeBundleFileInfo ? { sections: [] } : undefined;\n var relativeToBuildInfo = bundleFileInfo ? ts.Debug.checkDefined(printerOptions.relativeToBuildInfo) : undefined;\n var recordInternalSection = printerOptions.recordInternalSection;\n var sourceFileTextPos = 0;\n var sourceFileTextKind = \"text\" /* Text */;\n // Source Maps\n var sourceMapsDisabled = true;\n var sourceMapGenerator;\n var sourceMapSource;\n var sourceMapSourceIndex = -1;\n var mostRecentlyAddedSourceMapSource;\n var mostRecentlyAddedSourceMapSourceIndex = -1;\n // Comments\n var containerPos = -1;\n var containerEnd = -1;\n var declarationListContainerEnd = -1;\n var currentLineMap;\n var detachedCommentsInfo;\n var hasWrittenComment = false;\n var commentsDisabled = !!printerOptions.removeComments;\n var lastSubstitution;\n var currentParenthesizerRule;\n var _c = ts.performance.createTimerIf(extendedDiagnostics, \"commentTime\", \"beforeComment\", \"afterComment\"), enterComment = _c.enter, exitComment = _c.exit;\n var parenthesizer = ts.factory.parenthesizer;\n var emitBinaryExpression = createEmitBinaryExpression();\n reset();\n return {\n // public API\n printNode: printNode,\n printList: printList,\n printFile: printFile,\n printBundle: printBundle,\n // internal API\n writeNode: writeNode,\n writeList: writeList,\n writeFile: writeFile,\n writeBundle: writeBundle,\n bundleFileInfo: bundleFileInfo\n };\n function printNode(hint, node, sourceFile) {\n switch (hint) {\n case 0 /* SourceFile */:\n ts.Debug.assert(ts.isSourceFile(node), \"Expected a SourceFile node.\");\n break;\n case 2 /* IdentifierName */:\n ts.Debug.assert(ts.isIdentifier(node), \"Expected an Identifier node.\");\n break;\n case 1 /* Expression */:\n ts.Debug.assert(ts.isExpression(node), \"Expected an Expression node.\");\n break;\n }\n switch (node.kind) {\n case 300 /* SourceFile */: return printFile(node);\n case 301 /* Bundle */: return printBundle(node);\n case 302 /* UnparsedSource */: return printUnparsedSource(node);\n }\n writeNode(hint, node, sourceFile, beginPrint());\n return endPrint();\n }\n function printList(format, nodes, sourceFile) {\n writeList(format, nodes, sourceFile, beginPrint());\n return endPrint();\n }\n function printBundle(bundle) {\n writeBundle(bundle, beginPrint(), /*sourceMapEmitter*/ undefined);\n return endPrint();\n }\n function printFile(sourceFile) {\n writeFile(sourceFile, beginPrint(), /*sourceMapEmitter*/ undefined);\n return endPrint();\n }\n function printUnparsedSource(unparsed) {\n writeUnparsedSource(unparsed, beginPrint());\n return endPrint();\n }\n function writeNode(hint, node, sourceFile, output) {\n var previousWriter = writer;\n setWriter(output, /*_sourceMapGenerator*/ undefined);\n print(hint, node, sourceFile);\n reset();\n writer = previousWriter;\n }\n function writeList(format, nodes, sourceFile, output) {\n var previousWriter = writer;\n setWriter(output, /*_sourceMapGenerator*/ undefined);\n if (sourceFile) {\n setSourceFile(sourceFile);\n }\n emitList(/*parentNode*/ undefined, nodes, format);\n reset();\n writer = previousWriter;\n }\n function getTextPosWithWriteLine() {\n return writer.getTextPosWithWriteLine ? writer.getTextPosWithWriteLine() : writer.getTextPos();\n }\n function updateOrPushBundleFileTextLike(pos, end, kind) {\n var last = ts.lastOrUndefined(bundleFileInfo.sections);\n if (last && last.kind === kind) {\n last.end = end;\n }\n else {\n bundleFileInfo.sections.push({ pos: pos, end: end, kind: kind });\n }\n }\n function recordBundleFileInternalSectionStart(node) {\n if (recordInternalSection &&\n bundleFileInfo &&\n currentSourceFile &&\n (ts.isDeclaration(node) || ts.isVariableStatement(node)) &&\n ts.isInternalDeclaration(node, currentSourceFile) &&\n sourceFileTextKind !== \"internal\" /* Internal */) {\n var prevSourceFileTextKind = sourceFileTextKind;\n recordBundleFileTextLikeSection(writer.getTextPos());\n sourceFileTextPos = getTextPosWithWriteLine();\n sourceFileTextKind = \"internal\" /* Internal */;\n return prevSourceFileTextKind;\n }\n return undefined;\n }\n function recordBundleFileInternalSectionEnd(prevSourceFileTextKind) {\n if (prevSourceFileTextKind) {\n recordBundleFileTextLikeSection(writer.getTextPos());\n sourceFileTextPos = getTextPosWithWriteLine();\n sourceFileTextKind = prevSourceFileTextKind;\n }\n }\n function recordBundleFileTextLikeSection(end) {\n if (sourceFileTextPos < end) {\n updateOrPushBundleFileTextLike(sourceFileTextPos, end, sourceFileTextKind);\n return true;\n }\n return false;\n }\n function writeBundle(bundle, output, sourceMapGenerator) {\n var _a;\n isOwnFileEmit = false;\n var previousWriter = writer;\n setWriter(output, sourceMapGenerator);\n emitShebangIfNeeded(bundle);\n emitPrologueDirectivesIfNeeded(bundle);\n emitHelpers(bundle);\n emitSyntheticTripleSlashReferencesIfNeeded(bundle);\n for (var _b = 0, _c = bundle.prepends; _b < _c.length; _b++) {\n var prepend = _c[_b];\n writeLine();\n var pos = writer.getTextPos();\n var savedSections = bundleFileInfo && bundleFileInfo.sections;\n if (savedSections)\n bundleFileInfo.sections = [];\n print(4 /* Unspecified */, prepend, /*sourceFile*/ undefined);\n if (bundleFileInfo) {\n var newSections = bundleFileInfo.sections;\n bundleFileInfo.sections = savedSections;\n if (prepend.oldFileOfCurrentEmit)\n (_a = bundleFileInfo.sections).push.apply(_a, newSections);\n else {\n newSections.forEach(function (section) { return ts.Debug.assert(ts.isBundleFileTextLike(section)); });\n bundleFileInfo.sections.push({\n pos: pos,\n end: writer.getTextPos(),\n kind: \"prepend\" /* Prepend */,\n data: relativeToBuildInfo(prepend.fileName),\n texts: newSections\n });\n }\n }\n }\n sourceFileTextPos = getTextPosWithWriteLine();\n for (var _d = 0, _e = bundle.sourceFiles; _d < _e.length; _d++) {\n var sourceFile = _e[_d];\n print(0 /* SourceFile */, sourceFile, sourceFile);\n }\n if (bundleFileInfo && bundle.sourceFiles.length) {\n var end = writer.getTextPos();\n if (recordBundleFileTextLikeSection(end)) {\n // Store prologues\n var prologues = getPrologueDirectivesFromBundledSourceFiles(bundle);\n if (prologues) {\n if (!bundleFileInfo.sources)\n bundleFileInfo.sources = {};\n bundleFileInfo.sources.prologues = prologues;\n }\n // Store helpes\n var helpers = getHelpersFromBundledSourceFiles(bundle);\n if (helpers) {\n if (!bundleFileInfo.sources)\n bundleFileInfo.sources = {};\n bundleFileInfo.sources.helpers = helpers;\n }\n }\n }\n reset();\n writer = previousWriter;\n }\n function writeUnparsedSource(unparsed, output) {\n var previousWriter = writer;\n setWriter(output, /*_sourceMapGenerator*/ undefined);\n print(4 /* Unspecified */, unparsed, /*sourceFile*/ undefined);\n reset();\n writer = previousWriter;\n }\n function writeFile(sourceFile, output, sourceMapGenerator) {\n isOwnFileEmit = true;\n var previousWriter = writer;\n setWriter(output, sourceMapGenerator);\n emitShebangIfNeeded(sourceFile);\n emitPrologueDirectivesIfNeeded(sourceFile);\n print(0 /* SourceFile */, sourceFile, sourceFile);\n reset();\n writer = previousWriter;\n }\n function beginPrint() {\n return ownWriter || (ownWriter = ts.createTextWriter(newLine));\n }\n function endPrint() {\n var text = ownWriter.getText();\n ownWriter.clear();\n return text;\n }\n function print(hint, node, sourceFile) {\n if (sourceFile) {\n setSourceFile(sourceFile);\n }\n pipelineEmit(hint, node, /*parenthesizerRule*/ undefined);\n }\n function setSourceFile(sourceFile) {\n currentSourceFile = sourceFile;\n currentLineMap = undefined;\n detachedCommentsInfo = undefined;\n if (sourceFile) {\n setSourceMapSource(sourceFile);\n }\n }\n function setWriter(_writer, _sourceMapGenerator) {\n if (_writer && printerOptions.omitTrailingSemicolon) {\n _writer = ts.getTrailingSemicolonDeferringWriter(_writer);\n }\n writer = _writer; // TODO: GH#18217\n sourceMapGenerator = _sourceMapGenerator;\n sourceMapsDisabled = !writer || !sourceMapGenerator;\n }\n function reset() {\n nodeIdToGeneratedName = [];\n autoGeneratedIdToGeneratedName = [];\n generatedNames = new ts.Set();\n tempFlagsStack = [];\n tempFlags = 0 /* Auto */;\n reservedNamesStack = [];\n currentSourceFile = undefined;\n currentLineMap = undefined;\n detachedCommentsInfo = undefined;\n setWriter(/*output*/ undefined, /*_sourceMapGenerator*/ undefined);\n }\n function getCurrentLineMap() {\n return currentLineMap || (currentLineMap = ts.getLineStarts(currentSourceFile));\n }\n function emit(node, parenthesizerRule) {\n if (node === undefined)\n return;\n var prevSourceFileTextKind = recordBundleFileInternalSectionStart(node);\n pipelineEmit(4 /* Unspecified */, node, parenthesizerRule);\n recordBundleFileInternalSectionEnd(prevSourceFileTextKind);\n }\n function emitIdentifierName(node) {\n if (node === undefined)\n return;\n pipelineEmit(2 /* IdentifierName */, node, /*parenthesizerRule*/ undefined);\n }\n function emitExpression(node, parenthesizerRule) {\n if (node === undefined)\n return;\n pipelineEmit(1 /* Expression */, node, parenthesizerRule);\n }\n function emitJsxAttributeValue(node) {\n pipelineEmit(ts.isStringLiteral(node) ? 6 /* JsxAttributeValue */ : 4 /* Unspecified */, node);\n }\n function beforeEmitNode(node) {\n if (preserveSourceNewlines && (ts.getEmitFlags(node) & 134217728 /* IgnoreSourceNewlines */)) {\n preserveSourceNewlines = false;\n }\n }\n function afterEmitNode(savedPreserveSourceNewlines) {\n preserveSourceNewlines = savedPreserveSourceNewlines;\n }\n function pipelineEmit(emitHint, node, parenthesizerRule) {\n currentParenthesizerRule = parenthesizerRule;\n var pipelinePhase = getPipelinePhase(0 /* Notification */, emitHint, node);\n pipelinePhase(emitHint, node);\n currentParenthesizerRule = undefined;\n }\n function shouldEmitComments(node) {\n return !commentsDisabled && !ts.isSourceFile(node);\n }\n function shouldEmitSourceMaps(node) {\n return !sourceMapsDisabled &&\n !ts.isSourceFile(node) &&\n !ts.isInJsonFile(node) &&\n !ts.isUnparsedSource(node) &&\n !ts.isUnparsedPrepend(node);\n }\n function getPipelinePhase(phase, emitHint, node) {\n switch (phase) {\n case 0 /* Notification */:\n if (onEmitNode !== ts.noEmitNotification && (!isEmitNotificationEnabled || isEmitNotificationEnabled(node))) {\n return pipelineEmitWithNotification;\n }\n // falls through\n case 1 /* Substitution */:\n if (substituteNode !== ts.noEmitSubstitution && (lastSubstitution = substituteNode(emitHint, node) || node) !== node) {\n if (currentParenthesizerRule) {\n lastSubstitution = currentParenthesizerRule(lastSubstitution);\n }\n return pipelineEmitWithSubstitution;\n }\n // falls through\n case 2 /* Comments */:\n if (shouldEmitComments(node)) {\n return pipelineEmitWithComments;\n }\n // falls through\n case 3 /* SourceMaps */:\n if (shouldEmitSourceMaps(node)) {\n return pipelineEmitWithSourceMaps;\n }\n // falls through\n case 4 /* Emit */:\n return pipelineEmitWithHint;\n default:\n return ts.Debug.assertNever(phase);\n }\n }\n function getNextPipelinePhase(currentPhase, emitHint, node) {\n return getPipelinePhase(currentPhase + 1, emitHint, node);\n }\n function pipelineEmitWithNotification(hint, node) {\n var pipelinePhase = getNextPipelinePhase(0 /* Notification */, hint, node);\n onEmitNode(hint, node, pipelinePhase);\n }\n function pipelineEmitWithHint(hint, node) {\n onBeforeEmitNode === null || onBeforeEmitNode === void 0 ? void 0 : onBeforeEmitNode(node);\n if (preserveSourceNewlines) {\n var savedPreserveSourceNewlines = preserveSourceNewlines;\n beforeEmitNode(node);\n pipelineEmitWithHintWorker(hint, node);\n afterEmitNode(savedPreserveSourceNewlines);\n }\n else {\n pipelineEmitWithHintWorker(hint, node);\n }\n onAfterEmitNode === null || onAfterEmitNode === void 0 ? void 0 : onAfterEmitNode(node);\n // clear the parenthesizer rule as we ascend\n currentParenthesizerRule = undefined;\n }\n function pipelineEmitWithHintWorker(hint, node) {\n if (hint === 0 /* SourceFile */)\n return emitSourceFile(ts.cast(node, ts.isSourceFile));\n if (hint === 2 /* IdentifierName */)\n return emitIdentifier(ts.cast(node, ts.isIdentifier));\n if (hint === 6 /* JsxAttributeValue */)\n return emitLiteral(ts.cast(node, ts.isStringLiteral), /*jsxAttributeEscape*/ true);\n if (hint === 3 /* MappedTypeParameter */)\n return emitMappedTypeParameter(ts.cast(node, ts.isTypeParameterDeclaration));\n if (hint === 5 /* EmbeddedStatement */) {\n ts.Debug.assertNode(node, ts.isEmptyStatement);\n return emitEmptyStatement(/*isEmbeddedStatement*/ true);\n }\n if (hint === 4 /* Unspecified */) {\n switch (node.kind) {\n // Pseudo-literals\n case 15 /* TemplateHead */:\n case 16 /* TemplateMiddle */:\n case 17 /* TemplateTail */:\n return emitLiteral(node, /*jsxAttributeEscape*/ false);\n // Identifiers\n case 79 /* Identifier */:\n return emitIdentifier(node);\n // PrivateIdentifiers\n case 80 /* PrivateIdentifier */:\n return emitPrivateIdentifier(node);\n // Parse tree nodes\n // Names\n case 159 /* QualifiedName */:\n return emitQualifiedName(node);\n case 160 /* ComputedPropertyName */:\n return emitComputedPropertyName(node);\n // Signature elements\n case 161 /* TypeParameter */:\n return emitTypeParameter(node);\n case 162 /* Parameter */:\n return emitParameter(node);\n case 163 /* Decorator */:\n return emitDecorator(node);\n // Type members\n case 164 /* PropertySignature */:\n return emitPropertySignature(node);\n case 165 /* PropertyDeclaration */:\n return emitPropertyDeclaration(node);\n case 166 /* MethodSignature */:\n return emitMethodSignature(node);\n case 167 /* MethodDeclaration */:\n return emitMethodDeclaration(node);\n case 168 /* ClassStaticBlockDeclaration */:\n return emitClassStaticBlockDeclaration(node);\n case 169 /* Constructor */:\n return emitConstructor(node);\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return emitAccessorDeclaration(node);\n case 172 /* CallSignature */:\n return emitCallSignature(node);\n case 173 /* ConstructSignature */:\n return emitConstructSignature(node);\n case 174 /* IndexSignature */:\n return emitIndexSignature(node);\n // Types\n case 175 /* TypePredicate */:\n return emitTypePredicate(node);\n case 176 /* TypeReference */:\n return emitTypeReference(node);\n case 177 /* FunctionType */:\n return emitFunctionType(node);\n case 178 /* ConstructorType */:\n return emitConstructorType(node);\n case 179 /* TypeQuery */:\n return emitTypeQuery(node);\n case 180 /* TypeLiteral */:\n return emitTypeLiteral(node);\n case 181 /* ArrayType */:\n return emitArrayType(node);\n case 182 /* TupleType */:\n return emitTupleType(node);\n case 183 /* OptionalType */:\n return emitOptionalType(node);\n // SyntaxKind.RestType is handled below\n case 185 /* UnionType */:\n return emitUnionType(node);\n case 186 /* IntersectionType */:\n return emitIntersectionType(node);\n case 187 /* ConditionalType */:\n return emitConditionalType(node);\n case 188 /* InferType */:\n return emitInferType(node);\n case 189 /* ParenthesizedType */:\n return emitParenthesizedType(node);\n case 226 /* ExpressionWithTypeArguments */:\n return emitExpressionWithTypeArguments(node);\n case 190 /* ThisType */:\n return emitThisType();\n case 191 /* TypeOperator */:\n return emitTypeOperator(node);\n case 192 /* IndexedAccessType */:\n return emitIndexedAccessType(node);\n case 193 /* MappedType */:\n return emitMappedType(node);\n case 194 /* LiteralType */:\n return emitLiteralType(node);\n case 195 /* NamedTupleMember */:\n return emitNamedTupleMember(node);\n case 196 /* TemplateLiteralType */:\n return emitTemplateType(node);\n case 197 /* TemplateLiteralTypeSpan */:\n return emitTemplateTypeSpan(node);\n case 198 /* ImportType */:\n return emitImportTypeNode(node);\n // Binding patterns\n case 199 /* ObjectBindingPattern */:\n return emitObjectBindingPattern(node);\n case 200 /* ArrayBindingPattern */:\n return emitArrayBindingPattern(node);\n case 201 /* BindingElement */:\n return emitBindingElement(node);\n // Misc\n case 231 /* TemplateSpan */:\n return emitTemplateSpan(node);\n case 232 /* SemicolonClassElement */:\n return emitSemicolonClassElement();\n // Statements\n case 233 /* Block */:\n return emitBlock(node);\n case 235 /* VariableStatement */:\n return emitVariableStatement(node);\n case 234 /* EmptyStatement */:\n return emitEmptyStatement(/*isEmbeddedStatement*/ false);\n case 236 /* ExpressionStatement */:\n return emitExpressionStatement(node);\n case 237 /* IfStatement */:\n return emitIfStatement(node);\n case 238 /* DoStatement */:\n return emitDoStatement(node);\n case 239 /* WhileStatement */:\n return emitWhileStatement(node);\n case 240 /* ForStatement */:\n return emitForStatement(node);\n case 241 /* ForInStatement */:\n return emitForInStatement(node);\n case 242 /* ForOfStatement */:\n return emitForOfStatement(node);\n case 243 /* ContinueStatement */:\n return emitContinueStatement(node);\n case 244 /* BreakStatement */:\n return emitBreakStatement(node);\n case 245 /* ReturnStatement */:\n return emitReturnStatement(node);\n case 246 /* WithStatement */:\n return emitWithStatement(node);\n case 247 /* SwitchStatement */:\n return emitSwitchStatement(node);\n case 248 /* LabeledStatement */:\n return emitLabeledStatement(node);\n case 249 /* ThrowStatement */:\n return emitThrowStatement(node);\n case 250 /* TryStatement */:\n return emitTryStatement(node);\n case 251 /* DebuggerStatement */:\n return emitDebuggerStatement(node);\n // Declarations\n case 252 /* VariableDeclaration */:\n return emitVariableDeclaration(node);\n case 253 /* VariableDeclarationList */:\n return emitVariableDeclarationList(node);\n case 254 /* FunctionDeclaration */:\n return emitFunctionDeclaration(node);\n case 255 /* ClassDeclaration */:\n return emitClassDeclaration(node);\n case 256 /* InterfaceDeclaration */:\n return emitInterfaceDeclaration(node);\n case 257 /* TypeAliasDeclaration */:\n return emitTypeAliasDeclaration(node);\n case 258 /* EnumDeclaration */:\n return emitEnumDeclaration(node);\n case 259 /* ModuleDeclaration */:\n return emitModuleDeclaration(node);\n case 260 /* ModuleBlock */:\n return emitModuleBlock(node);\n case 261 /* CaseBlock */:\n return emitCaseBlock(node);\n case 262 /* NamespaceExportDeclaration */:\n return emitNamespaceExportDeclaration(node);\n case 263 /* ImportEqualsDeclaration */:\n return emitImportEqualsDeclaration(node);\n case 264 /* ImportDeclaration */:\n return emitImportDeclaration(node);\n case 265 /* ImportClause */:\n return emitImportClause(node);\n case 266 /* NamespaceImport */:\n return emitNamespaceImport(node);\n case 272 /* NamespaceExport */:\n return emitNamespaceExport(node);\n case 267 /* NamedImports */:\n return emitNamedImports(node);\n case 268 /* ImportSpecifier */:\n return emitImportSpecifier(node);\n case 269 /* ExportAssignment */:\n return emitExportAssignment(node);\n case 270 /* ExportDeclaration */:\n return emitExportDeclaration(node);\n case 271 /* NamedExports */:\n return emitNamedExports(node);\n case 273 /* ExportSpecifier */:\n return emitExportSpecifier(node);\n case 274 /* MissingDeclaration */:\n return;\n // Module references\n case 275 /* ExternalModuleReference */:\n return emitExternalModuleReference(node);\n // JSX (non-expression)\n case 11 /* JsxText */:\n return emitJsxText(node);\n case 278 /* JsxOpeningElement */:\n case 281 /* JsxOpeningFragment */:\n return emitJsxOpeningElementOrFragment(node);\n case 279 /* JsxClosingElement */:\n case 282 /* JsxClosingFragment */:\n return emitJsxClosingElementOrFragment(node);\n case 283 /* JsxAttribute */:\n return emitJsxAttribute(node);\n case 284 /* JsxAttributes */:\n return emitJsxAttributes(node);\n case 285 /* JsxSpreadAttribute */:\n return emitJsxSpreadAttribute(node);\n case 286 /* JsxExpression */:\n return emitJsxExpression(node);\n // Clauses\n case 287 /* CaseClause */:\n return emitCaseClause(node);\n case 288 /* DefaultClause */:\n return emitDefaultClause(node);\n case 289 /* HeritageClause */:\n return emitHeritageClause(node);\n case 290 /* CatchClause */:\n return emitCatchClause(node);\n // Property assignments\n case 291 /* PropertyAssignment */:\n return emitPropertyAssignment(node);\n case 292 /* ShorthandPropertyAssignment */:\n return emitShorthandPropertyAssignment(node);\n case 293 /* SpreadAssignment */:\n return emitSpreadAssignment(node);\n // Enum\n case 294 /* EnumMember */:\n return emitEnumMember(node);\n // Unparsed\n case 295 /* UnparsedPrologue */:\n return writeUnparsedNode(node);\n case 302 /* UnparsedSource */:\n case 296 /* UnparsedPrepend */:\n return emitUnparsedSourceOrPrepend(node);\n case 297 /* UnparsedText */:\n case 298 /* UnparsedInternalText */:\n return emitUnparsedTextLike(node);\n case 299 /* UnparsedSyntheticReference */:\n return emitUnparsedSyntheticReference(node);\n // Top-level nodes\n case 300 /* SourceFile */:\n return emitSourceFile(node);\n case 301 /* Bundle */:\n return ts.Debug.fail(\"Bundles should be printed using printBundle\");\n // SyntaxKind.UnparsedSource (handled above)\n case 303 /* InputFiles */:\n return ts.Debug.fail(\"InputFiles should not be printed\");\n // JSDoc nodes (only used in codefixes currently)\n case 304 /* JSDocTypeExpression */:\n return emitJSDocTypeExpression(node);\n case 305 /* JSDocNameReference */:\n return emitJSDocNameReference(node);\n case 307 /* JSDocAllType */:\n return writePunctuation(\"*\");\n case 308 /* JSDocUnknownType */:\n return writePunctuation(\"?\");\n case 309 /* JSDocNullableType */:\n return emitJSDocNullableType(node);\n case 310 /* JSDocNonNullableType */:\n return emitJSDocNonNullableType(node);\n case 311 /* JSDocOptionalType */:\n return emitJSDocOptionalType(node);\n case 312 /* JSDocFunctionType */:\n return emitJSDocFunctionType(node);\n case 184 /* RestType */:\n case 313 /* JSDocVariadicType */:\n return emitRestOrJSDocVariadicType(node);\n case 314 /* JSDocNamepathType */:\n return;\n case 315 /* JSDocComment */:\n return emitJSDoc(node);\n case 317 /* JSDocTypeLiteral */:\n return emitJSDocTypeLiteral(node);\n case 318 /* JSDocSignature */:\n return emitJSDocSignature(node);\n case 322 /* JSDocTag */:\n case 327 /* JSDocClassTag */:\n return emitJSDocSimpleTag(node);\n case 323 /* JSDocAugmentsTag */:\n case 324 /* JSDocImplementsTag */:\n return emitJSDocHeritageTag(node);\n case 325 /* JSDocAuthorTag */:\n case 326 /* JSDocDeprecatedTag */:\n return;\n // SyntaxKind.JSDocClassTag (see JSDocTag, above)\n case 328 /* JSDocPublicTag */:\n case 329 /* JSDocPrivateTag */:\n case 330 /* JSDocProtectedTag */:\n case 331 /* JSDocReadonlyTag */:\n case 332 /* JSDocOverrideTag */:\n return;\n case 333 /* JSDocCallbackTag */:\n return emitJSDocCallbackTag(node);\n // SyntaxKind.JSDocEnumTag (see below)\n case 335 /* JSDocParameterTag */:\n case 342 /* JSDocPropertyTag */:\n return emitJSDocPropertyLikeTag(node);\n case 334 /* JSDocEnumTag */:\n case 336 /* JSDocReturnTag */:\n case 337 /* JSDocThisTag */:\n case 338 /* JSDocTypeTag */:\n return emitJSDocSimpleTypedTag(node);\n case 339 /* JSDocTemplateTag */:\n return emitJSDocTemplateTag(node);\n case 340 /* JSDocTypedefTag */:\n return emitJSDocTypedefTag(node);\n case 341 /* JSDocSeeTag */:\n return emitJSDocSeeTag(node);\n // SyntaxKind.JSDocPropertyTag (see JSDocParameterTag, above)\n // Transformation nodes\n case 344 /* NotEmittedStatement */:\n case 348 /* EndOfDeclarationMarker */:\n case 347 /* MergeDeclarationMarker */:\n return;\n }\n if (ts.isExpression(node)) {\n hint = 1 /* Expression */;\n if (substituteNode !== ts.noEmitSubstitution) {\n var substitute = substituteNode(hint, node) || node;\n if (substitute !== node) {\n node = substitute;\n if (currentParenthesizerRule) {\n node = currentParenthesizerRule(node);\n }\n }\n }\n }\n }\n if (hint === 1 /* Expression */) {\n switch (node.kind) {\n // Literals\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n return emitNumericOrBigIntLiteral(node);\n case 10 /* StringLiteral */:\n case 13 /* RegularExpressionLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return emitLiteral(node, /*jsxAttributeEscape*/ false);\n // Identifiers\n case 79 /* Identifier */:\n return emitIdentifier(node);\n // Expressions\n case 202 /* ArrayLiteralExpression */:\n return emitArrayLiteralExpression(node);\n case 203 /* ObjectLiteralExpression */:\n return emitObjectLiteralExpression(node);\n case 204 /* PropertyAccessExpression */:\n return emitPropertyAccessExpression(node);\n case 205 /* ElementAccessExpression */:\n return emitElementAccessExpression(node);\n case 206 /* CallExpression */:\n return emitCallExpression(node);\n case 207 /* NewExpression */:\n return emitNewExpression(node);\n case 208 /* TaggedTemplateExpression */:\n return emitTaggedTemplateExpression(node);\n case 209 /* TypeAssertionExpression */:\n return emitTypeAssertionExpression(node);\n case 210 /* ParenthesizedExpression */:\n return emitParenthesizedExpression(node);\n case 211 /* FunctionExpression */:\n return emitFunctionExpression(node);\n case 212 /* ArrowFunction */:\n return emitArrowFunction(node);\n case 213 /* DeleteExpression */:\n return emitDeleteExpression(node);\n case 214 /* TypeOfExpression */:\n return emitTypeOfExpression(node);\n case 215 /* VoidExpression */:\n return emitVoidExpression(node);\n case 216 /* AwaitExpression */:\n return emitAwaitExpression(node);\n case 217 /* PrefixUnaryExpression */:\n return emitPrefixUnaryExpression(node);\n case 218 /* PostfixUnaryExpression */:\n return emitPostfixUnaryExpression(node);\n case 219 /* BinaryExpression */:\n return emitBinaryExpression(node);\n case 220 /* ConditionalExpression */:\n return emitConditionalExpression(node);\n case 221 /* TemplateExpression */:\n return emitTemplateExpression(node);\n case 222 /* YieldExpression */:\n return emitYieldExpression(node);\n case 223 /* SpreadElement */:\n return emitSpreadElement(node);\n case 224 /* ClassExpression */:\n return emitClassExpression(node);\n case 225 /* OmittedExpression */:\n return;\n case 227 /* AsExpression */:\n return emitAsExpression(node);\n case 228 /* NonNullExpression */:\n return emitNonNullExpression(node);\n case 229 /* MetaProperty */:\n return emitMetaProperty(node);\n case 230 /* SyntheticExpression */:\n return ts.Debug.fail(\"SyntheticExpression should never be printed.\");\n // JSX\n case 276 /* JsxElement */:\n return emitJsxElement(node);\n case 277 /* JsxSelfClosingElement */:\n return emitJsxSelfClosingElement(node);\n case 280 /* JsxFragment */:\n return emitJsxFragment(node);\n // Synthesized list\n case 343 /* SyntaxList */:\n return ts.Debug.fail(\"SyntaxList should not be printed\");\n // Transformation nodes\n case 344 /* NotEmittedStatement */:\n return;\n case 345 /* PartiallyEmittedExpression */:\n return emitPartiallyEmittedExpression(node);\n case 346 /* CommaListExpression */:\n return emitCommaList(node);\n case 347 /* MergeDeclarationMarker */:\n case 348 /* EndOfDeclarationMarker */:\n return;\n case 349 /* SyntheticReferenceExpression */:\n return ts.Debug.fail(\"SyntheticReferenceExpression should not be printed\");\n }\n }\n if (ts.isKeyword(node.kind))\n return writeTokenNode(node, writeKeyword);\n if (ts.isTokenKind(node.kind))\n return writeTokenNode(node, writePunctuation);\n ts.Debug.fail(\"Unhandled SyntaxKind: \" + ts.Debug.formatSyntaxKind(node.kind) + \".\");\n }\n function emitMappedTypeParameter(node) {\n emit(node.name);\n writeSpace();\n writeKeyword(\"in\");\n writeSpace();\n emit(node.constraint);\n }\n function pipelineEmitWithSubstitution(hint, node) {\n var pipelinePhase = getNextPipelinePhase(1 /* Substitution */, hint, node);\n ts.Debug.assertIsDefined(lastSubstitution);\n node = lastSubstitution;\n lastSubstitution = undefined;\n pipelinePhase(hint, node);\n }\n function getHelpersFromBundledSourceFiles(bundle) {\n var result;\n if (moduleKind === ts.ModuleKind.None || printerOptions.noEmitHelpers) {\n return undefined;\n }\n var bundledHelpers = new ts.Map();\n for (var _a = 0, _b = bundle.sourceFiles; _a < _b.length; _a++) {\n var sourceFile = _b[_a];\n var shouldSkip = ts.getExternalHelpersModuleName(sourceFile) !== undefined;\n var helpers = getSortedEmitHelpers(sourceFile);\n if (!helpers)\n continue;\n for (var _c = 0, helpers_5 = helpers; _c < helpers_5.length; _c++) {\n var helper = helpers_5[_c];\n if (!helper.scoped && !shouldSkip && !bundledHelpers.get(helper.name)) {\n bundledHelpers.set(helper.name, true);\n (result || (result = [])).push(helper.name);\n }\n }\n }\n return result;\n }\n function emitHelpers(node) {\n var helpersEmitted = false;\n var bundle = node.kind === 301 /* Bundle */ ? node : undefined;\n if (bundle && moduleKind === ts.ModuleKind.None) {\n return;\n }\n var numPrepends = bundle ? bundle.prepends.length : 0;\n var numNodes = bundle ? bundle.sourceFiles.length + numPrepends : 1;\n for (var i = 0; i < numNodes; i++) {\n var currentNode = bundle ? i < numPrepends ? bundle.prepends[i] : bundle.sourceFiles[i - numPrepends] : node;\n var sourceFile = ts.isSourceFile(currentNode) ? currentNode : ts.isUnparsedSource(currentNode) ? undefined : currentSourceFile;\n var shouldSkip = printerOptions.noEmitHelpers || (!!sourceFile && ts.hasRecordedExternalHelpers(sourceFile));\n var shouldBundle = (ts.isSourceFile(currentNode) || ts.isUnparsedSource(currentNode)) && !isOwnFileEmit;\n var helpers = ts.isUnparsedSource(currentNode) ? currentNode.helpers : getSortedEmitHelpers(currentNode);\n if (helpers) {\n for (var _a = 0, helpers_6 = helpers; _a < helpers_6.length; _a++) {\n var helper = helpers_6[_a];\n if (!helper.scoped) {\n // Skip the helper if it can be skipped and the noEmitHelpers compiler\n // option is set, or if it can be imported and the importHelpers compiler\n // option is set.\n if (shouldSkip)\n continue;\n // Skip the helper if it can be bundled but hasn't already been emitted and we\n // are emitting a bundled module.\n if (shouldBundle) {\n if (bundledHelpers.get(helper.name)) {\n continue;\n }\n bundledHelpers.set(helper.name, true);\n }\n }\n else if (bundle) {\n // Skip the helper if it is scoped and we are emitting bundled helpers\n continue;\n }\n var pos = getTextPosWithWriteLine();\n if (typeof helper.text === \"string\") {\n writeLines(helper.text);\n }\n else {\n writeLines(helper.text(makeFileLevelOptimisticUniqueName));\n }\n if (bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"emitHelpers\" /* EmitHelpers */, data: helper.name });\n helpersEmitted = true;\n }\n }\n }\n return helpersEmitted;\n }\n function getSortedEmitHelpers(node) {\n var helpers = ts.getEmitHelpers(node);\n return helpers && ts.stableSort(helpers, ts.compareEmitHelpers);\n }\n //\n // Literals/Pseudo-literals\n //\n // SyntaxKind.NumericLiteral\n // SyntaxKind.BigIntLiteral\n function emitNumericOrBigIntLiteral(node) {\n emitLiteral(node, /*jsxAttributeEscape*/ false);\n }\n // SyntaxKind.StringLiteral\n // SyntaxKind.RegularExpressionLiteral\n // SyntaxKind.NoSubstitutionTemplateLiteral\n // SyntaxKind.TemplateHead\n // SyntaxKind.TemplateMiddle\n // SyntaxKind.TemplateTail\n function emitLiteral(node, jsxAttributeEscape) {\n var text = getLiteralTextOfNode(node, printerOptions.neverAsciiEscape, jsxAttributeEscape);\n if ((printerOptions.sourceMap || printerOptions.inlineSourceMap)\n && (node.kind === 10 /* StringLiteral */ || ts.isTemplateLiteralKind(node.kind))) {\n writeLiteral(text);\n }\n else {\n // Quick info expects all literals to be called with writeStringLiteral, as there's no specific type for numberLiterals\n writeStringLiteral(text);\n }\n }\n // SyntaxKind.UnparsedSource\n // SyntaxKind.UnparsedPrepend\n function emitUnparsedSourceOrPrepend(unparsed) {\n for (var _a = 0, _b = unparsed.texts; _a < _b.length; _a++) {\n var text = _b[_a];\n writeLine();\n emit(text);\n }\n }\n // SyntaxKind.UnparsedPrologue\n // SyntaxKind.UnparsedText\n // SyntaxKind.UnparsedInternal\n // SyntaxKind.UnparsedSyntheticReference\n function writeUnparsedNode(unparsed) {\n writer.rawWrite(unparsed.parent.text.substring(unparsed.pos, unparsed.end));\n }\n // SyntaxKind.UnparsedText\n // SyntaxKind.UnparsedInternal\n function emitUnparsedTextLike(unparsed) {\n var pos = getTextPosWithWriteLine();\n writeUnparsedNode(unparsed);\n if (bundleFileInfo) {\n updateOrPushBundleFileTextLike(pos, writer.getTextPos(), unparsed.kind === 297 /* UnparsedText */ ?\n \"text\" /* Text */ :\n \"internal\" /* Internal */);\n }\n }\n // SyntaxKind.UnparsedSyntheticReference\n function emitUnparsedSyntheticReference(unparsed) {\n var pos = getTextPosWithWriteLine();\n writeUnparsedNode(unparsed);\n if (bundleFileInfo) {\n var section = ts.clone(unparsed.section);\n section.pos = pos;\n section.end = writer.getTextPos();\n bundleFileInfo.sections.push(section);\n }\n }\n //\n // Identifiers\n //\n function emitIdentifier(node) {\n var writeText = node.symbol ? writeSymbol : write;\n writeText(getTextOfNode(node, /*includeTrivia*/ false), node.symbol);\n emitList(node, node.typeArguments, 53776 /* TypeParameters */); // Call emitList directly since it could be an array of TypeParameterDeclarations _or_ type arguments\n }\n //\n // Names\n //\n function emitPrivateIdentifier(node) {\n var writeText = node.symbol ? writeSymbol : write;\n writeText(getTextOfNode(node, /*includeTrivia*/ false), node.symbol);\n }\n function emitQualifiedName(node) {\n emitEntityName(node.left);\n writePunctuation(\".\");\n emit(node.right);\n }\n function emitEntityName(node) {\n if (node.kind === 79 /* Identifier */) {\n emitExpression(node);\n }\n else {\n emit(node);\n }\n }\n function emitComputedPropertyName(node) {\n writePunctuation(\"[\");\n emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfComputedPropertyName);\n writePunctuation(\"]\");\n }\n //\n // Signature elements\n //\n function emitTypeParameter(node) {\n emit(node.name);\n if (node.constraint) {\n writeSpace();\n writeKeyword(\"extends\");\n writeSpace();\n emit(node.constraint);\n }\n if (node.default) {\n writeSpace();\n writeOperator(\"=\");\n writeSpace();\n emit(node.default);\n }\n }\n function emitParameter(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emit(node.dotDotDotToken);\n emitNodeWithWriter(node.name, writeParameter);\n emit(node.questionToken);\n if (node.parent && node.parent.kind === 312 /* JSDocFunctionType */ && !node.name) {\n emit(node.type);\n }\n else {\n emitTypeAnnotation(node.type);\n }\n // The comment position has to fallback to any present node within the parameterdeclaration because as it turns out, the parser can make parameter declarations with _just_ an initializer.\n emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name ? node.name.end : node.modifiers ? node.modifiers.end : node.decorators ? node.decorators.end : node.pos, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitDecorator(decorator) {\n writePunctuation(\"@\");\n emitExpression(decorator.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n }\n //\n // Type members\n //\n function emitPropertySignature(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emitNodeWithWriter(node.name, writeProperty);\n emit(node.questionToken);\n emitTypeAnnotation(node.type);\n writeTrailingSemicolon();\n }\n function emitPropertyDeclaration(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emit(node.name);\n emit(node.questionToken);\n emit(node.exclamationToken);\n emitTypeAnnotation(node.type);\n emitInitializer(node.initializer, node.type ? node.type.end : node.questionToken ? node.questionToken.end : node.name.end, node);\n writeTrailingSemicolon();\n }\n function emitMethodSignature(node) {\n pushNameGenerationScope(node);\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emit(node.name);\n emit(node.questionToken);\n emitTypeParameters(node, node.typeParameters);\n emitParameters(node, node.parameters);\n emitTypeAnnotation(node.type);\n writeTrailingSemicolon();\n popNameGenerationScope(node);\n }\n function emitMethodDeclaration(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emit(node.asteriskToken);\n emit(node.name);\n emit(node.questionToken);\n emitSignatureAndBody(node, emitSignatureHead);\n }\n function emitClassStaticBlockDeclaration(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"static\");\n emitBlockFunctionBody(node.body);\n }\n function emitConstructor(node) {\n emitModifiers(node, node.modifiers);\n writeKeyword(\"constructor\");\n emitSignatureAndBody(node, emitSignatureHead);\n }\n function emitAccessorDeclaration(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(node.kind === 170 /* GetAccessor */ ? \"get\" : \"set\");\n writeSpace();\n emit(node.name);\n emitSignatureAndBody(node, emitSignatureHead);\n }\n function emitCallSignature(node) {\n pushNameGenerationScope(node);\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emitTypeParameters(node, node.typeParameters);\n emitParameters(node, node.parameters);\n emitTypeAnnotation(node.type);\n writeTrailingSemicolon();\n popNameGenerationScope(node);\n }\n function emitConstructSignature(node) {\n pushNameGenerationScope(node);\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"new\");\n writeSpace();\n emitTypeParameters(node, node.typeParameters);\n emitParameters(node, node.parameters);\n emitTypeAnnotation(node.type);\n writeTrailingSemicolon();\n popNameGenerationScope(node);\n }\n function emitIndexSignature(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emitParametersForIndexSignature(node, node.parameters);\n emitTypeAnnotation(node.type);\n writeTrailingSemicolon();\n }\n function emitTemplateTypeSpan(node) {\n emit(node.type);\n emit(node.literal);\n }\n function emitSemicolonClassElement() {\n writeTrailingSemicolon();\n }\n //\n // Types\n //\n function emitTypePredicate(node) {\n if (node.assertsModifier) {\n emit(node.assertsModifier);\n writeSpace();\n }\n emit(node.parameterName);\n if (node.type) {\n writeSpace();\n writeKeyword(\"is\");\n writeSpace();\n emit(node.type);\n }\n }\n function emitTypeReference(node) {\n emit(node.typeName);\n emitTypeArguments(node, node.typeArguments);\n }\n function emitFunctionType(node) {\n pushNameGenerationScope(node);\n emitTypeParameters(node, node.typeParameters);\n emitParametersForArrow(node, node.parameters);\n writeSpace();\n writePunctuation(\"=>\");\n writeSpace();\n emit(node.type);\n popNameGenerationScope(node);\n }\n function emitJSDocFunctionType(node) {\n writeKeyword(\"function\");\n emitParameters(node, node.parameters);\n writePunctuation(\":\");\n emit(node.type);\n }\n function emitJSDocNullableType(node) {\n writePunctuation(\"?\");\n emit(node.type);\n }\n function emitJSDocNonNullableType(node) {\n writePunctuation(\"!\");\n emit(node.type);\n }\n function emitJSDocOptionalType(node) {\n emit(node.type);\n writePunctuation(\"=\");\n }\n function emitConstructorType(node) {\n pushNameGenerationScope(node);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"new\");\n writeSpace();\n emitTypeParameters(node, node.typeParameters);\n emitParameters(node, node.parameters);\n writeSpace();\n writePunctuation(\"=>\");\n writeSpace();\n emit(node.type);\n popNameGenerationScope(node);\n }\n function emitTypeQuery(node) {\n writeKeyword(\"typeof\");\n writeSpace();\n emit(node.exprName);\n }\n function emitTypeLiteral(node) {\n writePunctuation(\"{\");\n var flags = ts.getEmitFlags(node) & 1 /* SingleLine */ ? 768 /* SingleLineTypeLiteralMembers */ : 32897 /* MultiLineTypeLiteralMembers */;\n emitList(node, node.members, flags | 524288 /* NoSpaceIfEmpty */);\n writePunctuation(\"}\");\n }\n function emitArrayType(node) {\n emit(node.elementType, parenthesizer.parenthesizeElementTypeOfArrayType);\n writePunctuation(\"[\");\n writePunctuation(\"]\");\n }\n function emitRestOrJSDocVariadicType(node) {\n writePunctuation(\"...\");\n emit(node.type);\n }\n function emitTupleType(node) {\n emitTokenWithComment(22 /* OpenBracketToken */, node.pos, writePunctuation, node);\n var flags = ts.getEmitFlags(node) & 1 /* SingleLine */ ? 528 /* SingleLineTupleTypeElements */ : 657 /* MultiLineTupleTypeElements */;\n emitList(node, node.elements, flags | 524288 /* NoSpaceIfEmpty */);\n emitTokenWithComment(23 /* CloseBracketToken */, node.elements.end, writePunctuation, node);\n }\n function emitNamedTupleMember(node) {\n emit(node.dotDotDotToken);\n emit(node.name);\n emit(node.questionToken);\n emitTokenWithComment(58 /* ColonToken */, node.name.end, writePunctuation, node);\n writeSpace();\n emit(node.type);\n }\n function emitOptionalType(node) {\n emit(node.type, parenthesizer.parenthesizeElementTypeOfArrayType);\n writePunctuation(\"?\");\n }\n function emitUnionType(node) {\n emitList(node, node.types, 516 /* UnionTypeConstituents */, parenthesizer.parenthesizeMemberOfElementType);\n }\n function emitIntersectionType(node) {\n emitList(node, node.types, 520 /* IntersectionTypeConstituents */, parenthesizer.parenthesizeMemberOfElementType);\n }\n function emitConditionalType(node) {\n emit(node.checkType, parenthesizer.parenthesizeMemberOfConditionalType);\n writeSpace();\n writeKeyword(\"extends\");\n writeSpace();\n emit(node.extendsType, parenthesizer.parenthesizeMemberOfConditionalType);\n writeSpace();\n writePunctuation(\"?\");\n writeSpace();\n emit(node.trueType);\n writeSpace();\n writePunctuation(\":\");\n writeSpace();\n emit(node.falseType);\n }\n function emitInferType(node) {\n writeKeyword(\"infer\");\n writeSpace();\n emit(node.typeParameter);\n }\n function emitParenthesizedType(node) {\n writePunctuation(\"(\");\n emit(node.type);\n writePunctuation(\")\");\n }\n function emitThisType() {\n writeKeyword(\"this\");\n }\n function emitTypeOperator(node) {\n writeTokenText(node.operator, writeKeyword);\n writeSpace();\n emit(node.type, parenthesizer.parenthesizeMemberOfElementType);\n }\n function emitIndexedAccessType(node) {\n emit(node.objectType, parenthesizer.parenthesizeMemberOfElementType);\n writePunctuation(\"[\");\n emit(node.indexType);\n writePunctuation(\"]\");\n }\n function emitMappedType(node) {\n var emitFlags = ts.getEmitFlags(node);\n writePunctuation(\"{\");\n if (emitFlags & 1 /* SingleLine */) {\n writeSpace();\n }\n else {\n writeLine();\n increaseIndent();\n }\n if (node.readonlyToken) {\n emit(node.readonlyToken);\n if (node.readonlyToken.kind !== 143 /* ReadonlyKeyword */) {\n writeKeyword(\"readonly\");\n }\n writeSpace();\n }\n writePunctuation(\"[\");\n pipelineEmit(3 /* MappedTypeParameter */, node.typeParameter);\n if (node.nameType) {\n writeSpace();\n writeKeyword(\"as\");\n writeSpace();\n emit(node.nameType);\n }\n writePunctuation(\"]\");\n if (node.questionToken) {\n emit(node.questionToken);\n if (node.questionToken.kind !== 57 /* QuestionToken */) {\n writePunctuation(\"?\");\n }\n }\n writePunctuation(\":\");\n writeSpace();\n emit(node.type);\n writeTrailingSemicolon();\n if (emitFlags & 1 /* SingleLine */) {\n writeSpace();\n }\n else {\n writeLine();\n decreaseIndent();\n }\n writePunctuation(\"}\");\n }\n function emitLiteralType(node) {\n emitExpression(node.literal);\n }\n function emitTemplateType(node) {\n emit(node.head);\n emitList(node, node.templateSpans, 262144 /* TemplateExpressionSpans */);\n }\n function emitImportTypeNode(node) {\n if (node.isTypeOf) {\n writeKeyword(\"typeof\");\n writeSpace();\n }\n writeKeyword(\"import\");\n writePunctuation(\"(\");\n emit(node.argument);\n writePunctuation(\")\");\n if (node.qualifier) {\n writePunctuation(\".\");\n emit(node.qualifier);\n }\n emitTypeArguments(node, node.typeArguments);\n }\n //\n // Binding patterns\n //\n function emitObjectBindingPattern(node) {\n writePunctuation(\"{\");\n emitList(node, node.elements, 525136 /* ObjectBindingPatternElements */);\n writePunctuation(\"}\");\n }\n function emitArrayBindingPattern(node) {\n writePunctuation(\"[\");\n emitList(node, node.elements, 524880 /* ArrayBindingPatternElements */);\n writePunctuation(\"]\");\n }\n function emitBindingElement(node) {\n emit(node.dotDotDotToken);\n if (node.propertyName) {\n emit(node.propertyName);\n writePunctuation(\":\");\n writeSpace();\n }\n emit(node.name);\n emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n //\n // Expressions\n //\n function emitArrayLiteralExpression(node) {\n var elements = node.elements;\n var preferNewLine = node.multiLine ? 65536 /* PreferNewLine */ : 0 /* None */;\n emitExpressionList(node, elements, 8914 /* ArrayLiteralExpressionElements */ | preferNewLine, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitObjectLiteralExpression(node) {\n ts.forEach(node.properties, generateMemberNames);\n var indentedFlag = ts.getEmitFlags(node) & 65536 /* Indented */;\n if (indentedFlag) {\n increaseIndent();\n }\n var preferNewLine = node.multiLine ? 65536 /* PreferNewLine */ : 0 /* None */;\n var allowTrailingComma = currentSourceFile.languageVersion >= 1 /* ES5 */ && !ts.isJsonSourceFile(currentSourceFile) ? 64 /* AllowTrailingComma */ : 0 /* None */;\n emitList(node, node.properties, 526226 /* ObjectLiteralExpressionProperties */ | allowTrailingComma | preferNewLine);\n if (indentedFlag) {\n decreaseIndent();\n }\n }\n function emitPropertyAccessExpression(node) {\n emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n var token = node.questionDotToken || ts.setTextRangePosEnd(ts.factory.createToken(24 /* DotToken */), node.expression.end, node.name.pos);\n var linesBeforeDot = getLinesBetweenNodes(node, node.expression, token);\n var linesAfterDot = getLinesBetweenNodes(node, token, node.name);\n writeLinesAndIndent(linesBeforeDot, /*writeSpaceIfNotIndenting*/ false);\n var shouldEmitDotDot = token.kind !== 28 /* QuestionDotToken */ &&\n mayNeedDotDotForPropertyAccess(node.expression) &&\n !writer.hasTrailingComment() &&\n !writer.hasTrailingWhitespace();\n if (shouldEmitDotDot) {\n writePunctuation(\".\");\n }\n if (node.questionDotToken) {\n emit(token);\n }\n else {\n emitTokenWithComment(token.kind, node.expression.end, writePunctuation, node);\n }\n writeLinesAndIndent(linesAfterDot, /*writeSpaceIfNotIndenting*/ false);\n emit(node.name);\n decreaseIndentIf(linesBeforeDot, linesAfterDot);\n }\n // 1..toString is a valid property access, emit a dot after the literal\n // Also emit a dot if expression is a integer const enum value - it will appear in generated code as numeric literal\n function mayNeedDotDotForPropertyAccess(expression) {\n expression = ts.skipPartiallyEmittedExpressions(expression);\n if (ts.isNumericLiteral(expression)) {\n // check if numeric literal is a decimal literal that was originally written with a dot\n var text = getLiteralTextOfNode(expression, /*neverAsciiEscape*/ true, /*jsxAttributeEscape*/ false);\n // If he number will be printed verbatim and it doesn't already contain a dot, add one\n // if the expression doesn't have any comments that will be emitted.\n return !expression.numericLiteralFlags && !ts.stringContains(text, ts.tokenToString(24 /* DotToken */));\n }\n else if (ts.isAccessExpression(expression)) {\n // check if constant enum value is integer\n var constantValue = ts.getConstantValue(expression);\n // isFinite handles cases when constantValue is undefined\n return typeof constantValue === \"number\" && isFinite(constantValue)\n && Math.floor(constantValue) === constantValue;\n }\n }\n function emitElementAccessExpression(node) {\n emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n emit(node.questionDotToken);\n emitTokenWithComment(22 /* OpenBracketToken */, node.expression.end, writePunctuation, node);\n emitExpression(node.argumentExpression);\n emitTokenWithComment(23 /* CloseBracketToken */, node.argumentExpression.end, writePunctuation, node);\n }\n function emitCallExpression(node) {\n var indirectCall = ts.getEmitFlags(node) & 536870912 /* IndirectCall */;\n if (indirectCall) {\n writePunctuation(\"(\");\n writeLiteral(\"0\");\n writePunctuation(\",\");\n writeSpace();\n }\n emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n if (indirectCall) {\n writePunctuation(\")\");\n }\n emit(node.questionDotToken);\n emitTypeArguments(node, node.typeArguments);\n emitExpressionList(node, node.arguments, 2576 /* CallExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitNewExpression(node) {\n emitTokenWithComment(103 /* NewKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfNew);\n emitTypeArguments(node, node.typeArguments);\n emitExpressionList(node, node.arguments, 18960 /* NewExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitTaggedTemplateExpression(node) {\n var indirectCall = ts.getEmitFlags(node) & 536870912 /* IndirectCall */;\n if (indirectCall) {\n writePunctuation(\"(\");\n writeLiteral(\"0\");\n writePunctuation(\",\");\n writeSpace();\n }\n emitExpression(node.tag, parenthesizer.parenthesizeLeftSideOfAccess);\n if (indirectCall) {\n writePunctuation(\")\");\n }\n emitTypeArguments(node, node.typeArguments);\n writeSpace();\n emitExpression(node.template);\n }\n function emitTypeAssertionExpression(node) {\n writePunctuation(\"<\");\n emit(node.type);\n writePunctuation(\">\");\n emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n }\n function emitParenthesizedExpression(node) {\n var openParenPos = emitTokenWithComment(20 /* OpenParenToken */, node.pos, writePunctuation, node);\n var indented = writeLineSeparatorsAndIndentBefore(node.expression, node);\n emitExpression(node.expression, /*parenthesizerRules*/ undefined);\n writeLineSeparatorsAfter(node.expression, node);\n decreaseIndentIf(indented);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression ? node.expression.end : openParenPos, writePunctuation, node);\n }\n function emitFunctionExpression(node) {\n generateNameIfNeeded(node.name);\n emitFunctionDeclarationOrExpression(node);\n }\n function emitArrowFunction(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n emitSignatureAndBody(node, emitArrowFunctionHead);\n }\n function emitArrowFunctionHead(node) {\n emitTypeParameters(node, node.typeParameters);\n emitParametersForArrow(node, node.parameters);\n emitTypeAnnotation(node.type);\n writeSpace();\n emit(node.equalsGreaterThanToken);\n }\n function emitDeleteExpression(node) {\n emitTokenWithComment(89 /* DeleteKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n }\n function emitTypeOfExpression(node) {\n emitTokenWithComment(112 /* TypeOfKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n }\n function emitVoidExpression(node) {\n emitTokenWithComment(114 /* VoidKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n }\n function emitAwaitExpression(node) {\n emitTokenWithComment(131 /* AwaitKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);\n }\n function emitPrefixUnaryExpression(node) {\n writeTokenText(node.operator, writeOperator);\n if (shouldEmitWhitespaceBeforeOperand(node)) {\n writeSpace();\n }\n emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPrefixUnary);\n }\n function shouldEmitWhitespaceBeforeOperand(node) {\n // In some cases, we need to emit a space between the operator and the operand. One obvious case\n // is when the operator is an identifier, like delete or typeof. We also need to do this for plus\n // and minus expressions in certain cases. Specifically, consider the following two cases (parens\n // are just for clarity of exposition, and not part of the source code):\n //\n // (+(+1))\n // (+(++1))\n //\n // We need to emit a space in both cases. In the first case, the absence of a space will make\n // the resulting expression a prefix increment operation. And in the second, it will make the resulting\n // expression a prefix increment whose operand is a plus expression - (++(+x))\n // The same is true of minus of course.\n var operand = node.operand;\n return operand.kind === 217 /* PrefixUnaryExpression */\n && ((node.operator === 39 /* PlusToken */ && (operand.operator === 39 /* PlusToken */ || operand.operator === 45 /* PlusPlusToken */))\n || (node.operator === 40 /* MinusToken */ && (operand.operator === 40 /* MinusToken */ || operand.operator === 46 /* MinusMinusToken */)));\n }\n function emitPostfixUnaryExpression(node) {\n emitExpression(node.operand, parenthesizer.parenthesizeOperandOfPostfixUnary);\n writeTokenText(node.operator, writeOperator);\n }\n function createEmitBinaryExpression() {\n return ts.createBinaryExpressionTrampoline(onEnter, onLeft, onOperator, onRight, onExit, /*foldState*/ undefined);\n function onEnter(node, state) {\n if (state) {\n state.stackIndex++;\n state.preserveSourceNewlinesStack[state.stackIndex] = preserveSourceNewlines;\n state.containerPosStack[state.stackIndex] = containerPos;\n state.containerEndStack[state.stackIndex] = containerEnd;\n state.declarationListContainerEndStack[state.stackIndex] = declarationListContainerEnd;\n var emitComments_1 = state.shouldEmitCommentsStack[state.stackIndex] = shouldEmitComments(node);\n var emitSourceMaps = state.shouldEmitSourceMapsStack[state.stackIndex] = shouldEmitSourceMaps(node);\n onBeforeEmitNode === null || onBeforeEmitNode === void 0 ? void 0 : onBeforeEmitNode(node);\n if (emitComments_1)\n emitCommentsBeforeNode(node);\n if (emitSourceMaps)\n emitSourceMapsBeforeNode(node);\n beforeEmitNode(node);\n }\n else {\n state = {\n stackIndex: 0,\n preserveSourceNewlinesStack: [undefined],\n containerPosStack: [-1],\n containerEndStack: [-1],\n declarationListContainerEndStack: [-1],\n shouldEmitCommentsStack: [false],\n shouldEmitSourceMapsStack: [false],\n };\n }\n return state;\n }\n function onLeft(next, _workArea, parent) {\n return maybeEmitExpression(next, parent, \"left\");\n }\n function onOperator(operatorToken, _state, node) {\n var isCommaOperator = operatorToken.kind !== 27 /* CommaToken */;\n var linesBeforeOperator = getLinesBetweenNodes(node, node.left, operatorToken);\n var linesAfterOperator = getLinesBetweenNodes(node, operatorToken, node.right);\n writeLinesAndIndent(linesBeforeOperator, isCommaOperator);\n emitLeadingCommentsOfPosition(operatorToken.pos);\n writeTokenNode(operatorToken, operatorToken.kind === 101 /* InKeyword */ ? writeKeyword : writeOperator);\n emitTrailingCommentsOfPosition(operatorToken.end, /*prefixSpace*/ true); // Binary operators should have a space before the comment starts\n writeLinesAndIndent(linesAfterOperator, /*writeSpaceIfNotIndenting*/ true);\n }\n function onRight(next, _workArea, parent) {\n return maybeEmitExpression(next, parent, \"right\");\n }\n function onExit(node, state) {\n var linesBeforeOperator = getLinesBetweenNodes(node, node.left, node.operatorToken);\n var linesAfterOperator = getLinesBetweenNodes(node, node.operatorToken, node.right);\n decreaseIndentIf(linesBeforeOperator, linesAfterOperator);\n if (state.stackIndex > 0) {\n var savedPreserveSourceNewlines = state.preserveSourceNewlinesStack[state.stackIndex];\n var savedContainerPos = state.containerPosStack[state.stackIndex];\n var savedContainerEnd = state.containerEndStack[state.stackIndex];\n var savedDeclarationListContainerEnd = state.declarationListContainerEndStack[state.stackIndex];\n var shouldEmitComments_1 = state.shouldEmitCommentsStack[state.stackIndex];\n var shouldEmitSourceMaps_1 = state.shouldEmitSourceMapsStack[state.stackIndex];\n afterEmitNode(savedPreserveSourceNewlines);\n if (shouldEmitSourceMaps_1)\n emitSourceMapsAfterNode(node);\n if (shouldEmitComments_1)\n emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n onAfterEmitNode === null || onAfterEmitNode === void 0 ? void 0 : onAfterEmitNode(node);\n state.stackIndex--;\n }\n }\n function maybeEmitExpression(next, parent, side) {\n var parenthesizerRule = side === \"left\" ?\n parenthesizer.getParenthesizeLeftSideOfBinaryForOperator(parent.operatorToken.kind) :\n parenthesizer.getParenthesizeRightSideOfBinaryForOperator(parent.operatorToken.kind);\n var pipelinePhase = getPipelinePhase(0 /* Notification */, 1 /* Expression */, next);\n if (pipelinePhase === pipelineEmitWithSubstitution) {\n ts.Debug.assertIsDefined(lastSubstitution);\n next = parenthesizerRule(ts.cast(lastSubstitution, ts.isExpression));\n pipelinePhase = getNextPipelinePhase(1 /* Substitution */, 1 /* Expression */, next);\n lastSubstitution = undefined;\n }\n if (pipelinePhase === pipelineEmitWithComments ||\n pipelinePhase === pipelineEmitWithSourceMaps ||\n pipelinePhase === pipelineEmitWithHint) {\n if (ts.isBinaryExpression(next)) {\n return next;\n }\n }\n currentParenthesizerRule = parenthesizerRule;\n pipelinePhase(1 /* Expression */, next);\n }\n }\n function emitConditionalExpression(node) {\n var linesBeforeQuestion = getLinesBetweenNodes(node, node.condition, node.questionToken);\n var linesAfterQuestion = getLinesBetweenNodes(node, node.questionToken, node.whenTrue);\n var linesBeforeColon = getLinesBetweenNodes(node, node.whenTrue, node.colonToken);\n var linesAfterColon = getLinesBetweenNodes(node, node.colonToken, node.whenFalse);\n emitExpression(node.condition, parenthesizer.parenthesizeConditionOfConditionalExpression);\n writeLinesAndIndent(linesBeforeQuestion, /*writeSpaceIfNotIndenting*/ true);\n emit(node.questionToken);\n writeLinesAndIndent(linesAfterQuestion, /*writeSpaceIfNotIndenting*/ true);\n emitExpression(node.whenTrue, parenthesizer.parenthesizeBranchOfConditionalExpression);\n decreaseIndentIf(linesBeforeQuestion, linesAfterQuestion);\n writeLinesAndIndent(linesBeforeColon, /*writeSpaceIfNotIndenting*/ true);\n emit(node.colonToken);\n writeLinesAndIndent(linesAfterColon, /*writeSpaceIfNotIndenting*/ true);\n emitExpression(node.whenFalse, parenthesizer.parenthesizeBranchOfConditionalExpression);\n decreaseIndentIf(linesBeforeColon, linesAfterColon);\n }\n function emitTemplateExpression(node) {\n emit(node.head);\n emitList(node, node.templateSpans, 262144 /* TemplateExpressionSpans */);\n }\n function emitYieldExpression(node) {\n emitTokenWithComment(125 /* YieldKeyword */, node.pos, writeKeyword, node);\n emit(node.asteriskToken);\n emitExpressionWithLeadingSpace(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitSpreadElement(node) {\n emitTokenWithComment(25 /* DotDotDotToken */, node.pos, writePunctuation, node);\n emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitClassExpression(node) {\n generateNameIfNeeded(node.name);\n emitClassDeclarationOrExpression(node);\n }\n function emitExpressionWithTypeArguments(node) {\n emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n emitTypeArguments(node, node.typeArguments);\n }\n function emitAsExpression(node) {\n emitExpression(node.expression, /*parenthesizerRules*/ undefined);\n if (node.type) {\n writeSpace();\n writeKeyword(\"as\");\n writeSpace();\n emit(node.type);\n }\n }\n function emitNonNullExpression(node) {\n emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);\n writeOperator(\"!\");\n }\n function emitMetaProperty(node) {\n writeToken(node.keywordToken, node.pos, writePunctuation);\n writePunctuation(\".\");\n emit(node.name);\n }\n //\n // Misc\n //\n function emitTemplateSpan(node) {\n emitExpression(node.expression);\n emit(node.literal);\n }\n //\n // Statements\n //\n function emitBlock(node) {\n emitBlockStatements(node, /*forceSingleLine*/ !node.multiLine && isEmptyBlock(node));\n }\n function emitBlockStatements(node, forceSingleLine) {\n emitTokenWithComment(18 /* OpenBraceToken */, node.pos, writePunctuation, /*contextNode*/ node);\n var format = forceSingleLine || ts.getEmitFlags(node) & 1 /* SingleLine */ ? 768 /* SingleLineBlockStatements */ : 129 /* MultiLineBlockStatements */;\n emitList(node, node.statements, format);\n emitTokenWithComment(19 /* CloseBraceToken */, node.statements.end, writePunctuation, /*contextNode*/ node, /*indentLeading*/ !!(format & 1 /* MultiLine */));\n }\n function emitVariableStatement(node) {\n emitModifiers(node, node.modifiers);\n emit(node.declarationList);\n writeTrailingSemicolon();\n }\n function emitEmptyStatement(isEmbeddedStatement) {\n // While most trailing semicolons are possibly insignificant, an embedded \"empty\"\n // statement is significant and cannot be elided by a trailing-semicolon-omitting writer.\n if (isEmbeddedStatement) {\n writePunctuation(\";\");\n }\n else {\n writeTrailingSemicolon();\n }\n }\n function emitExpressionStatement(node) {\n emitExpression(node.expression, parenthesizer.parenthesizeExpressionOfExpressionStatement);\n // Emit semicolon in non json files\n // or if json file that created synthesized expression(eg.define expression statement when --out and amd code generation)\n if (!ts.isJsonSourceFile(currentSourceFile) || ts.nodeIsSynthesized(node.expression)) {\n writeTrailingSemicolon();\n }\n }\n function emitIfStatement(node) {\n var openParenPos = emitTokenWithComment(99 /* IfKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emitExpression(node.expression);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression.end, writePunctuation, node);\n emitEmbeddedStatement(node, node.thenStatement);\n if (node.elseStatement) {\n writeLineOrSpace(node, node.thenStatement, node.elseStatement);\n emitTokenWithComment(91 /* ElseKeyword */, node.thenStatement.end, writeKeyword, node);\n if (node.elseStatement.kind === 237 /* IfStatement */) {\n writeSpace();\n emit(node.elseStatement);\n }\n else {\n emitEmbeddedStatement(node, node.elseStatement);\n }\n }\n }\n function emitWhileClause(node, startPos) {\n var openParenPos = emitTokenWithComment(115 /* WhileKeyword */, startPos, writeKeyword, node);\n writeSpace();\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emitExpression(node.expression);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression.end, writePunctuation, node);\n }\n function emitDoStatement(node) {\n emitTokenWithComment(90 /* DoKeyword */, node.pos, writeKeyword, node);\n emitEmbeddedStatement(node, node.statement);\n if (ts.isBlock(node.statement) && !preserveSourceNewlines) {\n writeSpace();\n }\n else {\n writeLineOrSpace(node, node.statement, node.expression);\n }\n emitWhileClause(node, node.statement.end);\n writeTrailingSemicolon();\n }\n function emitWhileStatement(node) {\n emitWhileClause(node, node.pos);\n emitEmbeddedStatement(node, node.statement);\n }\n function emitForStatement(node) {\n var openParenPos = emitTokenWithComment(97 /* ForKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n var pos = emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, /*contextNode*/ node);\n emitForBinding(node.initializer);\n pos = emitTokenWithComment(26 /* SemicolonToken */, node.initializer ? node.initializer.end : pos, writePunctuation, node);\n emitExpressionWithLeadingSpace(node.condition);\n pos = emitTokenWithComment(26 /* SemicolonToken */, node.condition ? node.condition.end : pos, writePunctuation, node);\n emitExpressionWithLeadingSpace(node.incrementor);\n emitTokenWithComment(21 /* CloseParenToken */, node.incrementor ? node.incrementor.end : pos, writePunctuation, node);\n emitEmbeddedStatement(node, node.statement);\n }\n function emitForInStatement(node) {\n var openParenPos = emitTokenWithComment(97 /* ForKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emitForBinding(node.initializer);\n writeSpace();\n emitTokenWithComment(101 /* InKeyword */, node.initializer.end, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression.end, writePunctuation, node);\n emitEmbeddedStatement(node, node.statement);\n }\n function emitForOfStatement(node) {\n var openParenPos = emitTokenWithComment(97 /* ForKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitWithTrailingSpace(node.awaitModifier);\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emitForBinding(node.initializer);\n writeSpace();\n emitTokenWithComment(158 /* OfKeyword */, node.initializer.end, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression.end, writePunctuation, node);\n emitEmbeddedStatement(node, node.statement);\n }\n function emitForBinding(node) {\n if (node !== undefined) {\n if (node.kind === 253 /* VariableDeclarationList */) {\n emit(node);\n }\n else {\n emitExpression(node);\n }\n }\n }\n function emitContinueStatement(node) {\n emitTokenWithComment(86 /* ContinueKeyword */, node.pos, writeKeyword, node);\n emitWithLeadingSpace(node.label);\n writeTrailingSemicolon();\n }\n function emitBreakStatement(node) {\n emitTokenWithComment(81 /* BreakKeyword */, node.pos, writeKeyword, node);\n emitWithLeadingSpace(node.label);\n writeTrailingSemicolon();\n }\n function emitTokenWithComment(token, pos, writer, contextNode, indentLeading) {\n var node = ts.getParseTreeNode(contextNode);\n var isSimilarNode = node && node.kind === contextNode.kind;\n var startPos = pos;\n if (isSimilarNode && currentSourceFile) {\n pos = ts.skipTrivia(currentSourceFile.text, pos);\n }\n if (isSimilarNode && contextNode.pos !== startPos) {\n var needsIndent = indentLeading && currentSourceFile && !ts.positionsAreOnSameLine(startPos, pos, currentSourceFile);\n if (needsIndent) {\n increaseIndent();\n }\n emitLeadingCommentsOfPosition(startPos);\n if (needsIndent) {\n decreaseIndent();\n }\n }\n pos = writeTokenText(token, writer, pos);\n if (isSimilarNode && contextNode.end !== pos) {\n var isJsxExprContext = contextNode.kind === 286 /* JsxExpression */;\n emitTrailingCommentsOfPosition(pos, /*prefixSpace*/ !isJsxExprContext, /*forceNoNewline*/ isJsxExprContext);\n }\n return pos;\n }\n function emitReturnStatement(node) {\n emitTokenWithComment(105 /* ReturnKeyword */, node.pos, writeKeyword, /*contextNode*/ node);\n emitExpressionWithLeadingSpace(node.expression);\n writeTrailingSemicolon();\n }\n function emitWithStatement(node) {\n var openParenPos = emitTokenWithComment(116 /* WithKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emitExpression(node.expression);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression.end, writePunctuation, node);\n emitEmbeddedStatement(node, node.statement);\n }\n function emitSwitchStatement(node) {\n var openParenPos = emitTokenWithComment(107 /* SwitchKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emitExpression(node.expression);\n emitTokenWithComment(21 /* CloseParenToken */, node.expression.end, writePunctuation, node);\n writeSpace();\n emit(node.caseBlock);\n }\n function emitLabeledStatement(node) {\n emit(node.label);\n emitTokenWithComment(58 /* ColonToken */, node.label.end, writePunctuation, node);\n writeSpace();\n emit(node.statement);\n }\n function emitThrowStatement(node) {\n emitTokenWithComment(109 /* ThrowKeyword */, node.pos, writeKeyword, node);\n emitExpressionWithLeadingSpace(node.expression);\n writeTrailingSemicolon();\n }\n function emitTryStatement(node) {\n emitTokenWithComment(111 /* TryKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emit(node.tryBlock);\n if (node.catchClause) {\n writeLineOrSpace(node, node.tryBlock, node.catchClause);\n emit(node.catchClause);\n }\n if (node.finallyBlock) {\n writeLineOrSpace(node, node.catchClause || node.tryBlock, node.finallyBlock);\n emitTokenWithComment(96 /* FinallyKeyword */, (node.catchClause || node.tryBlock).end, writeKeyword, node);\n writeSpace();\n emit(node.finallyBlock);\n }\n }\n function emitDebuggerStatement(node) {\n writeToken(87 /* DebuggerKeyword */, node.pos, writeKeyword);\n writeTrailingSemicolon();\n }\n //\n // Declarations\n //\n function emitVariableDeclaration(node) {\n emit(node.name);\n emit(node.exclamationToken);\n emitTypeAnnotation(node.type);\n emitInitializer(node.initializer, node.type ? node.type.end : node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitVariableDeclarationList(node) {\n writeKeyword(ts.isLet(node) ? \"let\" : ts.isVarConst(node) ? \"const\" : \"var\");\n writeSpace();\n emitList(node, node.declarations, 528 /* VariableDeclarationList */);\n }\n function emitFunctionDeclaration(node) {\n emitFunctionDeclarationOrExpression(node);\n }\n function emitFunctionDeclarationOrExpression(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"function\");\n emit(node.asteriskToken);\n writeSpace();\n emitIdentifierName(node.name);\n emitSignatureAndBody(node, emitSignatureHead);\n }\n function emitSignatureAndBody(node, emitSignatureHead) {\n var body = node.body;\n if (body) {\n if (ts.isBlock(body)) {\n var indentedFlag = ts.getEmitFlags(node) & 65536 /* Indented */;\n if (indentedFlag) {\n increaseIndent();\n }\n pushNameGenerationScope(node);\n ts.forEach(node.parameters, generateNames);\n generateNames(node.body);\n emitSignatureHead(node);\n emitBlockFunctionBody(body);\n popNameGenerationScope(node);\n if (indentedFlag) {\n decreaseIndent();\n }\n }\n else {\n emitSignatureHead(node);\n writeSpace();\n emitExpression(body, parenthesizer.parenthesizeConciseBodyOfArrowFunction);\n }\n }\n else {\n emitSignatureHead(node);\n writeTrailingSemicolon();\n }\n }\n function emitSignatureHead(node) {\n emitTypeParameters(node, node.typeParameters);\n emitParameters(node, node.parameters);\n emitTypeAnnotation(node.type);\n }\n function shouldEmitBlockFunctionBodyOnSingleLine(body) {\n // We must emit a function body as a single-line body in the following case:\n // * The body has NodeEmitFlags.SingleLine specified.\n // We must emit a function body as a multi-line body in the following cases:\n // * The body is explicitly marked as multi-line.\n // * A non-synthesized body's start and end position are on different lines.\n // * Any statement in the body starts on a new line.\n if (ts.getEmitFlags(body) & 1 /* SingleLine */) {\n return true;\n }\n if (body.multiLine) {\n return false;\n }\n if (!ts.nodeIsSynthesized(body) && !ts.rangeIsOnSingleLine(body, currentSourceFile)) {\n return false;\n }\n if (getLeadingLineTerminatorCount(body, body.statements, 2 /* PreserveLines */)\n || getClosingLineTerminatorCount(body, body.statements, 2 /* PreserveLines */)) {\n return false;\n }\n var previousStatement;\n for (var _a = 0, _b = body.statements; _a < _b.length; _a++) {\n var statement = _b[_a];\n if (getSeparatingLineTerminatorCount(previousStatement, statement, 2 /* PreserveLines */) > 0) {\n return false;\n }\n previousStatement = statement;\n }\n return true;\n }\n function emitBlockFunctionBody(body) {\n onBeforeEmitNode === null || onBeforeEmitNode === void 0 ? void 0 : onBeforeEmitNode(body);\n writeSpace();\n writePunctuation(\"{\");\n increaseIndent();\n var emitBlockFunctionBody = shouldEmitBlockFunctionBodyOnSingleLine(body)\n ? emitBlockFunctionBodyOnSingleLine\n : emitBlockFunctionBodyWorker;\n if (emitBodyWithDetachedComments) {\n emitBodyWithDetachedComments(body, body.statements, emitBlockFunctionBody);\n }\n else {\n emitBlockFunctionBody(body);\n }\n decreaseIndent();\n writeToken(19 /* CloseBraceToken */, body.statements.end, writePunctuation, body);\n onAfterEmitNode === null || onAfterEmitNode === void 0 ? void 0 : onAfterEmitNode(body);\n }\n function emitBlockFunctionBodyOnSingleLine(body) {\n emitBlockFunctionBodyWorker(body, /*emitBlockFunctionBodyOnSingleLine*/ true);\n }\n function emitBlockFunctionBodyWorker(body, emitBlockFunctionBodyOnSingleLine) {\n // Emit all the prologue directives (like \"use strict\").\n var statementOffset = emitPrologueDirectives(body.statements);\n var pos = writer.getTextPos();\n emitHelpers(body);\n if (statementOffset === 0 && pos === writer.getTextPos() && emitBlockFunctionBodyOnSingleLine) {\n decreaseIndent();\n emitList(body, body.statements, 768 /* SingleLineFunctionBodyStatements */);\n increaseIndent();\n }\n else {\n emitList(body, body.statements, 1 /* MultiLineFunctionBodyStatements */, /*parenthesizerRule*/ undefined, statementOffset);\n }\n }\n function emitClassDeclaration(node) {\n emitClassDeclarationOrExpression(node);\n }\n function emitClassDeclarationOrExpression(node) {\n ts.forEach(node.members, generateMemberNames);\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"class\");\n if (node.name) {\n writeSpace();\n emitIdentifierName(node.name);\n }\n var indentedFlag = ts.getEmitFlags(node) & 65536 /* Indented */;\n if (indentedFlag) {\n increaseIndent();\n }\n emitTypeParameters(node, node.typeParameters);\n emitList(node, node.heritageClauses, 0 /* ClassHeritageClauses */);\n writeSpace();\n writePunctuation(\"{\");\n emitList(node, node.members, 129 /* ClassMembers */);\n writePunctuation(\"}\");\n if (indentedFlag) {\n decreaseIndent();\n }\n }\n function emitInterfaceDeclaration(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"interface\");\n writeSpace();\n emit(node.name);\n emitTypeParameters(node, node.typeParameters);\n emitList(node, node.heritageClauses, 512 /* HeritageClauses */);\n writeSpace();\n writePunctuation(\"{\");\n emitList(node, node.members, 129 /* InterfaceMembers */);\n writePunctuation(\"}\");\n }\n function emitTypeAliasDeclaration(node) {\n emitDecorators(node, node.decorators);\n emitModifiers(node, node.modifiers);\n writeKeyword(\"type\");\n writeSpace();\n emit(node.name);\n emitTypeParameters(node, node.typeParameters);\n writeSpace();\n writePunctuation(\"=\");\n writeSpace();\n emit(node.type);\n writeTrailingSemicolon();\n }\n function emitEnumDeclaration(node) {\n emitModifiers(node, node.modifiers);\n writeKeyword(\"enum\");\n writeSpace();\n emit(node.name);\n writeSpace();\n writePunctuation(\"{\");\n emitList(node, node.members, 145 /* EnumMembers */);\n writePunctuation(\"}\");\n }\n function emitModuleDeclaration(node) {\n emitModifiers(node, node.modifiers);\n if (~node.flags & 1024 /* GlobalAugmentation */) {\n writeKeyword(node.flags & 16 /* Namespace */ ? \"namespace\" : \"module\");\n writeSpace();\n }\n emit(node.name);\n var body = node.body;\n if (!body)\n return writeTrailingSemicolon();\n while (body && ts.isModuleDeclaration(body)) {\n writePunctuation(\".\");\n emit(body.name);\n body = body.body;\n }\n writeSpace();\n emit(body);\n }\n function emitModuleBlock(node) {\n pushNameGenerationScope(node);\n ts.forEach(node.statements, generateNames);\n emitBlockStatements(node, /*forceSingleLine*/ isEmptyBlock(node));\n popNameGenerationScope(node);\n }\n function emitCaseBlock(node) {\n emitTokenWithComment(18 /* OpenBraceToken */, node.pos, writePunctuation, node);\n emitList(node, node.clauses, 129 /* CaseBlockClauses */);\n emitTokenWithComment(19 /* CloseBraceToken */, node.clauses.end, writePunctuation, node, /*indentLeading*/ true);\n }\n function emitImportEqualsDeclaration(node) {\n emitModifiers(node, node.modifiers);\n emitTokenWithComment(100 /* ImportKeyword */, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node);\n writeSpace();\n if (node.isTypeOnly) {\n emitTokenWithComment(150 /* TypeKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n }\n emit(node.name);\n writeSpace();\n emitTokenWithComment(63 /* EqualsToken */, node.name.end, writePunctuation, node);\n writeSpace();\n emitModuleReference(node.moduleReference);\n writeTrailingSemicolon();\n }\n function emitModuleReference(node) {\n if (node.kind === 79 /* Identifier */) {\n emitExpression(node);\n }\n else {\n emit(node);\n }\n }\n function emitImportDeclaration(node) {\n emitModifiers(node, node.modifiers);\n emitTokenWithComment(100 /* ImportKeyword */, node.modifiers ? node.modifiers.end : node.pos, writeKeyword, node);\n writeSpace();\n if (node.importClause) {\n emit(node.importClause);\n writeSpace();\n emitTokenWithComment(154 /* FromKeyword */, node.importClause.end, writeKeyword, node);\n writeSpace();\n }\n emitExpression(node.moduleSpecifier);\n writeTrailingSemicolon();\n }\n function emitImportClause(node) {\n if (node.isTypeOnly) {\n emitTokenWithComment(150 /* TypeKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n }\n emit(node.name);\n if (node.name && node.namedBindings) {\n emitTokenWithComment(27 /* CommaToken */, node.name.end, writePunctuation, node);\n writeSpace();\n }\n emit(node.namedBindings);\n }\n function emitNamespaceImport(node) {\n var asPos = emitTokenWithComment(41 /* AsteriskToken */, node.pos, writePunctuation, node);\n writeSpace();\n emitTokenWithComment(127 /* AsKeyword */, asPos, writeKeyword, node);\n writeSpace();\n emit(node.name);\n }\n function emitNamedImports(node) {\n emitNamedImportsOrExports(node);\n }\n function emitImportSpecifier(node) {\n emitImportOrExportSpecifier(node);\n }\n function emitExportAssignment(node) {\n var nextPos = emitTokenWithComment(93 /* ExportKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n if (node.isExportEquals) {\n emitTokenWithComment(63 /* EqualsToken */, nextPos, writeOperator, node);\n }\n else {\n emitTokenWithComment(88 /* DefaultKeyword */, nextPos, writeKeyword, node);\n }\n writeSpace();\n emitExpression(node.expression, node.isExportEquals ?\n parenthesizer.getParenthesizeRightSideOfBinaryForOperator(63 /* EqualsToken */) :\n parenthesizer.parenthesizeExpressionOfExportDefault);\n writeTrailingSemicolon();\n }\n function emitExportDeclaration(node) {\n var nextPos = emitTokenWithComment(93 /* ExportKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n if (node.isTypeOnly) {\n nextPos = emitTokenWithComment(150 /* TypeKeyword */, nextPos, writeKeyword, node);\n writeSpace();\n }\n if (node.exportClause) {\n emit(node.exportClause);\n }\n else {\n nextPos = emitTokenWithComment(41 /* AsteriskToken */, nextPos, writePunctuation, node);\n }\n if (node.moduleSpecifier) {\n writeSpace();\n var fromPos = node.exportClause ? node.exportClause.end : nextPos;\n emitTokenWithComment(154 /* FromKeyword */, fromPos, writeKeyword, node);\n writeSpace();\n emitExpression(node.moduleSpecifier);\n }\n writeTrailingSemicolon();\n }\n function emitNamespaceExportDeclaration(node) {\n var nextPos = emitTokenWithComment(93 /* ExportKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n nextPos = emitTokenWithComment(127 /* AsKeyword */, nextPos, writeKeyword, node);\n writeSpace();\n nextPos = emitTokenWithComment(141 /* NamespaceKeyword */, nextPos, writeKeyword, node);\n writeSpace();\n emit(node.name);\n writeTrailingSemicolon();\n }\n function emitNamespaceExport(node) {\n var asPos = emitTokenWithComment(41 /* AsteriskToken */, node.pos, writePunctuation, node);\n writeSpace();\n emitTokenWithComment(127 /* AsKeyword */, asPos, writeKeyword, node);\n writeSpace();\n emit(node.name);\n }\n function emitNamedExports(node) {\n emitNamedImportsOrExports(node);\n }\n function emitExportSpecifier(node) {\n emitImportOrExportSpecifier(node);\n }\n function emitNamedImportsOrExports(node) {\n writePunctuation(\"{\");\n emitList(node, node.elements, 525136 /* NamedImportsOrExportsElements */);\n writePunctuation(\"}\");\n }\n function emitImportOrExportSpecifier(node) {\n if (node.propertyName) {\n emit(node.propertyName);\n writeSpace();\n emitTokenWithComment(127 /* AsKeyword */, node.propertyName.end, writeKeyword, node);\n writeSpace();\n }\n emit(node.name);\n }\n //\n // Module references\n //\n function emitExternalModuleReference(node) {\n writeKeyword(\"require\");\n writePunctuation(\"(\");\n emitExpression(node.expression);\n writePunctuation(\")\");\n }\n //\n // JSX\n //\n function emitJsxElement(node) {\n emit(node.openingElement);\n emitList(node, node.children, 262144 /* JsxElementOrFragmentChildren */);\n emit(node.closingElement);\n }\n function emitJsxSelfClosingElement(node) {\n writePunctuation(\"<\");\n emitJsxTagName(node.tagName);\n emitTypeArguments(node, node.typeArguments);\n writeSpace();\n emit(node.attributes);\n writePunctuation(\"/>\");\n }\n function emitJsxFragment(node) {\n emit(node.openingFragment);\n emitList(node, node.children, 262144 /* JsxElementOrFragmentChildren */);\n emit(node.closingFragment);\n }\n function emitJsxOpeningElementOrFragment(node) {\n writePunctuation(\"<\");\n if (ts.isJsxOpeningElement(node)) {\n var indented = writeLineSeparatorsAndIndentBefore(node.tagName, node);\n emitJsxTagName(node.tagName);\n emitTypeArguments(node, node.typeArguments);\n if (node.attributes.properties && node.attributes.properties.length > 0) {\n writeSpace();\n }\n emit(node.attributes);\n writeLineSeparatorsAfter(node.attributes, node);\n decreaseIndentIf(indented);\n }\n writePunctuation(\">\");\n }\n function emitJsxText(node) {\n writer.writeLiteral(node.text);\n }\n function emitJsxClosingElementOrFragment(node) {\n writePunctuation(\"\");\n }\n function emitJsxAttributes(node) {\n emitList(node, node.properties, 262656 /* JsxElementAttributes */);\n }\n function emitJsxAttribute(node) {\n emit(node.name);\n emitNodeWithPrefix(\"=\", writePunctuation, node.initializer, emitJsxAttributeValue);\n }\n function emitJsxSpreadAttribute(node) {\n writePunctuation(\"{...\");\n emitExpression(node.expression);\n writePunctuation(\"}\");\n }\n function hasTrailingCommentsAtPosition(pos) {\n var result = false;\n ts.forEachTrailingCommentRange((currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.text) || \"\", pos + 1, function () { return result = true; });\n return result;\n }\n function hasLeadingCommentsAtPosition(pos) {\n var result = false;\n ts.forEachLeadingCommentRange((currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.text) || \"\", pos + 1, function () { return result = true; });\n return result;\n }\n function hasCommentsAtPosition(pos) {\n return hasTrailingCommentsAtPosition(pos) || hasLeadingCommentsAtPosition(pos);\n }\n function emitJsxExpression(node) {\n var _a;\n if (node.expression || (!commentsDisabled && !ts.nodeIsSynthesized(node) && hasCommentsAtPosition(node.pos))) { // preserve empty expressions if they contain comments!\n var isMultiline = currentSourceFile && !ts.nodeIsSynthesized(node) && ts.getLineAndCharacterOfPosition(currentSourceFile, node.pos).line !== ts.getLineAndCharacterOfPosition(currentSourceFile, node.end).line;\n if (isMultiline) {\n writer.increaseIndent();\n }\n var end = emitTokenWithComment(18 /* OpenBraceToken */, node.pos, writePunctuation, node);\n emit(node.dotDotDotToken);\n emitExpression(node.expression);\n emitTokenWithComment(19 /* CloseBraceToken */, ((_a = node.expression) === null || _a === void 0 ? void 0 : _a.end) || end, writePunctuation, node);\n if (isMultiline) {\n writer.decreaseIndent();\n }\n }\n }\n function emitJsxTagName(node) {\n if (node.kind === 79 /* Identifier */) {\n emitExpression(node);\n }\n else {\n emit(node);\n }\n }\n //\n // Clauses\n //\n function emitCaseClause(node) {\n emitTokenWithComment(82 /* CaseKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n emitCaseOrDefaultClauseRest(node, node.statements, node.expression.end);\n }\n function emitDefaultClause(node) {\n var pos = emitTokenWithComment(88 /* DefaultKeyword */, node.pos, writeKeyword, node);\n emitCaseOrDefaultClauseRest(node, node.statements, pos);\n }\n function emitCaseOrDefaultClauseRest(parentNode, statements, colonPos) {\n var emitAsSingleStatement = statements.length === 1 &&\n (\n // treat synthesized nodes as located on the same line for emit purposes\n ts.nodeIsSynthesized(parentNode) ||\n ts.nodeIsSynthesized(statements[0]) ||\n ts.rangeStartPositionsAreOnSameLine(parentNode, statements[0], currentSourceFile));\n var format = 163969 /* CaseOrDefaultClauseStatements */;\n if (emitAsSingleStatement) {\n writeToken(58 /* ColonToken */, colonPos, writePunctuation, parentNode);\n writeSpace();\n format &= ~(1 /* MultiLine */ | 128 /* Indented */);\n }\n else {\n emitTokenWithComment(58 /* ColonToken */, colonPos, writePunctuation, parentNode);\n }\n emitList(parentNode, statements, format);\n }\n function emitHeritageClause(node) {\n writeSpace();\n writeTokenText(node.token, writeKeyword);\n writeSpace();\n emitList(node, node.types, 528 /* HeritageClauseTypes */);\n }\n function emitCatchClause(node) {\n var openParenPos = emitTokenWithComment(83 /* CatchKeyword */, node.pos, writeKeyword, node);\n writeSpace();\n if (node.variableDeclaration) {\n emitTokenWithComment(20 /* OpenParenToken */, openParenPos, writePunctuation, node);\n emit(node.variableDeclaration);\n emitTokenWithComment(21 /* CloseParenToken */, node.variableDeclaration.end, writePunctuation, node);\n writeSpace();\n }\n emit(node.block);\n }\n //\n // Property assignments\n //\n function emitPropertyAssignment(node) {\n emit(node.name);\n writePunctuation(\":\");\n writeSpace();\n // This is to ensure that we emit comment in the following case:\n // For example:\n // obj = {\n // id: /*comment1*/ ()=>void\n // }\n // \"comment1\" is not considered to be leading comment for node.initializer\n // but rather a trailing comment on the previous node.\n var initializer = node.initializer;\n if ((ts.getEmitFlags(initializer) & 512 /* NoLeadingComments */) === 0) {\n var commentRange = ts.getCommentRange(initializer);\n emitTrailingCommentsOfPosition(commentRange.pos);\n }\n emitExpression(initializer, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n function emitShorthandPropertyAssignment(node) {\n emit(node.name);\n if (node.objectAssignmentInitializer) {\n writeSpace();\n writePunctuation(\"=\");\n writeSpace();\n emitExpression(node.objectAssignmentInitializer, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n }\n function emitSpreadAssignment(node) {\n if (node.expression) {\n emitTokenWithComment(25 /* DotDotDotToken */, node.pos, writePunctuation, node);\n emitExpression(node.expression, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n }\n //\n // Enum\n //\n function emitEnumMember(node) {\n emit(node.name);\n emitInitializer(node.initializer, node.name.end, node, parenthesizer.parenthesizeExpressionForDisallowedComma);\n }\n //\n // JSDoc\n //\n function emitJSDoc(node) {\n write(\"/**\");\n if (node.comment) {\n var text = ts.getTextOfJSDocComment(node.comment);\n if (text) {\n var lines = text.split(/\\r\\n?|\\n/g);\n for (var _a = 0, lines_2 = lines; _a < lines_2.length; _a++) {\n var line = lines_2[_a];\n writeLine();\n writeSpace();\n writePunctuation(\"*\");\n writeSpace();\n write(line);\n }\n }\n }\n if (node.tags) {\n if (node.tags.length === 1 && node.tags[0].kind === 338 /* JSDocTypeTag */ && !node.comment) {\n writeSpace();\n emit(node.tags[0]);\n }\n else {\n emitList(node, node.tags, 33 /* JSDocComment */);\n }\n }\n writeSpace();\n write(\"*/\");\n }\n function emitJSDocSimpleTypedTag(tag) {\n emitJSDocTagName(tag.tagName);\n emitJSDocTypeExpression(tag.typeExpression);\n emitJSDocComment(tag.comment);\n }\n function emitJSDocSeeTag(tag) {\n emitJSDocTagName(tag.tagName);\n emit(tag.name);\n emitJSDocComment(tag.comment);\n }\n function emitJSDocNameReference(node) {\n writeSpace();\n writePunctuation(\"{\");\n emit(node.name);\n writePunctuation(\"}\");\n }\n function emitJSDocHeritageTag(tag) {\n emitJSDocTagName(tag.tagName);\n writeSpace();\n writePunctuation(\"{\");\n emit(tag.class);\n writePunctuation(\"}\");\n emitJSDocComment(tag.comment);\n }\n function emitJSDocTemplateTag(tag) {\n emitJSDocTagName(tag.tagName);\n emitJSDocTypeExpression(tag.constraint);\n writeSpace();\n emitList(tag, tag.typeParameters, 528 /* CommaListElements */);\n emitJSDocComment(tag.comment);\n }\n function emitJSDocTypedefTag(tag) {\n emitJSDocTagName(tag.tagName);\n if (tag.typeExpression) {\n if (tag.typeExpression.kind === 304 /* JSDocTypeExpression */) {\n emitJSDocTypeExpression(tag.typeExpression);\n }\n else {\n writeSpace();\n writePunctuation(\"{\");\n write(\"Object\");\n if (tag.typeExpression.isArrayType) {\n writePunctuation(\"[\");\n writePunctuation(\"]\");\n }\n writePunctuation(\"}\");\n }\n }\n if (tag.fullName) {\n writeSpace();\n emit(tag.fullName);\n }\n emitJSDocComment(tag.comment);\n if (tag.typeExpression && tag.typeExpression.kind === 317 /* JSDocTypeLiteral */) {\n emitJSDocTypeLiteral(tag.typeExpression);\n }\n }\n function emitJSDocCallbackTag(tag) {\n emitJSDocTagName(tag.tagName);\n if (tag.name) {\n writeSpace();\n emit(tag.name);\n }\n emitJSDocComment(tag.comment);\n emitJSDocSignature(tag.typeExpression);\n }\n function emitJSDocSimpleTag(tag) {\n emitJSDocTagName(tag.tagName);\n emitJSDocComment(tag.comment);\n }\n function emitJSDocTypeLiteral(lit) {\n emitList(lit, ts.factory.createNodeArray(lit.jsDocPropertyTags), 33 /* JSDocComment */);\n }\n function emitJSDocSignature(sig) {\n if (sig.typeParameters) {\n emitList(sig, ts.factory.createNodeArray(sig.typeParameters), 33 /* JSDocComment */);\n }\n if (sig.parameters) {\n emitList(sig, ts.factory.createNodeArray(sig.parameters), 33 /* JSDocComment */);\n }\n if (sig.type) {\n writeLine();\n writeSpace();\n writePunctuation(\"*\");\n writeSpace();\n emit(sig.type);\n }\n }\n function emitJSDocPropertyLikeTag(param) {\n emitJSDocTagName(param.tagName);\n emitJSDocTypeExpression(param.typeExpression);\n writeSpace();\n if (param.isBracketed) {\n writePunctuation(\"[\");\n }\n emit(param.name);\n if (param.isBracketed) {\n writePunctuation(\"]\");\n }\n emitJSDocComment(param.comment);\n }\n function emitJSDocTagName(tagName) {\n writePunctuation(\"@\");\n emit(tagName);\n }\n function emitJSDocComment(comment) {\n var text = ts.getTextOfJSDocComment(comment);\n if (text) {\n writeSpace();\n write(text);\n }\n }\n function emitJSDocTypeExpression(typeExpression) {\n if (typeExpression) {\n writeSpace();\n writePunctuation(\"{\");\n emit(typeExpression.type);\n writePunctuation(\"}\");\n }\n }\n //\n // Top-level nodes\n //\n function emitSourceFile(node) {\n writeLine();\n var statements = node.statements;\n if (emitBodyWithDetachedComments) {\n // Emit detached comment if there are no prologue directives or if the first node is synthesized.\n // The synthesized node will have no leading comment so some comments may be missed.\n var shouldEmitDetachedComment = statements.length === 0 ||\n !ts.isPrologueDirective(statements[0]) ||\n ts.nodeIsSynthesized(statements[0]);\n if (shouldEmitDetachedComment) {\n emitBodyWithDetachedComments(node, statements, emitSourceFileWorker);\n return;\n }\n }\n emitSourceFileWorker(node);\n }\n function emitSyntheticTripleSlashReferencesIfNeeded(node) {\n emitTripleSlashDirectives(!!node.hasNoDefaultLib, node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []);\n for (var _a = 0, _b = node.prepends; _a < _b.length; _a++) {\n var prepend = _b[_a];\n if (ts.isUnparsedSource(prepend) && prepend.syntheticReferences) {\n for (var _c = 0, _d = prepend.syntheticReferences; _c < _d.length; _c++) {\n var ref = _d[_c];\n emit(ref);\n writeLine();\n }\n }\n }\n }\n function emitTripleSlashDirectivesIfNeeded(node) {\n if (node.isDeclarationFile)\n emitTripleSlashDirectives(node.hasNoDefaultLib, node.referencedFiles, node.typeReferenceDirectives, node.libReferenceDirectives);\n }\n function emitTripleSlashDirectives(hasNoDefaultLib, files, types, libs) {\n if (hasNoDefaultLib) {\n var pos = writer.getTextPos();\n writeComment(\"/// \");\n if (bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"no-default-lib\" /* NoDefaultLib */ });\n writeLine();\n }\n if (currentSourceFile && currentSourceFile.moduleName) {\n writeComment(\"/// \");\n writeLine();\n }\n if (currentSourceFile && currentSourceFile.amdDependencies) {\n for (var _a = 0, _b = currentSourceFile.amdDependencies; _a < _b.length; _a++) {\n var dep = _b[_a];\n if (dep.name) {\n writeComment(\"/// \");\n }\n else {\n writeComment(\"/// \");\n }\n writeLine();\n }\n }\n for (var _c = 0, files_2 = files; _c < files_2.length; _c++) {\n var directive = files_2[_c];\n var pos = writer.getTextPos();\n writeComment(\"/// \");\n if (bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"reference\" /* Reference */, data: directive.fileName });\n writeLine();\n }\n for (var _d = 0, types_24 = types; _d < types_24.length; _d++) {\n var directive = types_24[_d];\n var pos = writer.getTextPos();\n writeComment(\"/// \");\n if (bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"type\" /* Type */, data: directive.fileName });\n writeLine();\n }\n for (var _e = 0, libs_1 = libs; _e < libs_1.length; _e++) {\n var directive = libs_1[_e];\n var pos = writer.getTextPos();\n writeComment(\"/// \");\n if (bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"lib\" /* Lib */, data: directive.fileName });\n writeLine();\n }\n }\n function emitSourceFileWorker(node) {\n var statements = node.statements;\n pushNameGenerationScope(node);\n ts.forEach(node.statements, generateNames);\n emitHelpers(node);\n var index = ts.findIndex(statements, function (statement) { return !ts.isPrologueDirective(statement); });\n emitTripleSlashDirectivesIfNeeded(node);\n emitList(node, statements, 1 /* MultiLine */, /*parenthesizerRule*/ undefined, index === -1 ? statements.length : index);\n popNameGenerationScope(node);\n }\n // Transformation nodes\n function emitPartiallyEmittedExpression(node) {\n emitExpression(node.expression);\n }\n function emitCommaList(node) {\n emitExpressionList(node, node.elements, 528 /* CommaListElements */, /*parenthesizerRule*/ undefined);\n }\n /**\n * Emits any prologue directives at the start of a Statement list, returning the\n * number of prologue directives written to the output.\n */\n function emitPrologueDirectives(statements, sourceFile, seenPrologueDirectives, recordBundleFileSection) {\n var needsToSetSourceFile = !!sourceFile;\n for (var i = 0; i < statements.length; i++) {\n var statement = statements[i];\n if (ts.isPrologueDirective(statement)) {\n var shouldEmitPrologueDirective = seenPrologueDirectives ? !seenPrologueDirectives.has(statement.expression.text) : true;\n if (shouldEmitPrologueDirective) {\n if (needsToSetSourceFile) {\n needsToSetSourceFile = false;\n setSourceFile(sourceFile);\n }\n writeLine();\n var pos = writer.getTextPos();\n emit(statement);\n if (recordBundleFileSection && bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"prologue\" /* Prologue */, data: statement.expression.text });\n if (seenPrologueDirectives) {\n seenPrologueDirectives.add(statement.expression.text);\n }\n }\n }\n else {\n // return index of the first non prologue directive\n return i;\n }\n }\n return statements.length;\n }\n function emitUnparsedPrologues(prologues, seenPrologueDirectives) {\n for (var _a = 0, prologues_1 = prologues; _a < prologues_1.length; _a++) {\n var prologue = prologues_1[_a];\n if (!seenPrologueDirectives.has(prologue.data)) {\n writeLine();\n var pos = writer.getTextPos();\n emit(prologue);\n if (bundleFileInfo)\n bundleFileInfo.sections.push({ pos: pos, end: writer.getTextPos(), kind: \"prologue\" /* Prologue */, data: prologue.data });\n if (seenPrologueDirectives) {\n seenPrologueDirectives.add(prologue.data);\n }\n }\n }\n }\n function emitPrologueDirectivesIfNeeded(sourceFileOrBundle) {\n if (ts.isSourceFile(sourceFileOrBundle)) {\n emitPrologueDirectives(sourceFileOrBundle.statements, sourceFileOrBundle);\n }\n else {\n var seenPrologueDirectives = new ts.Set();\n for (var _a = 0, _b = sourceFileOrBundle.prepends; _a < _b.length; _a++) {\n var prepend = _b[_a];\n emitUnparsedPrologues(prepend.prologues, seenPrologueDirectives);\n }\n for (var _c = 0, _d = sourceFileOrBundle.sourceFiles; _c < _d.length; _c++) {\n var sourceFile = _d[_c];\n emitPrologueDirectives(sourceFile.statements, sourceFile, seenPrologueDirectives, /*recordBundleFileSection*/ true);\n }\n setSourceFile(undefined);\n }\n }\n function getPrologueDirectivesFromBundledSourceFiles(bundle) {\n var seenPrologueDirectives = new ts.Set();\n var prologues;\n for (var index = 0; index < bundle.sourceFiles.length; index++) {\n var sourceFile = bundle.sourceFiles[index];\n var directives = void 0;\n var end = 0;\n for (var _a = 0, _b = sourceFile.statements; _a < _b.length; _a++) {\n var statement = _b[_a];\n if (!ts.isPrologueDirective(statement))\n break;\n if (seenPrologueDirectives.has(statement.expression.text))\n continue;\n seenPrologueDirectives.add(statement.expression.text);\n (directives || (directives = [])).push({\n pos: statement.pos,\n end: statement.end,\n expression: {\n pos: statement.expression.pos,\n end: statement.expression.end,\n text: statement.expression.text\n }\n });\n end = end < statement.end ? statement.end : end;\n }\n if (directives)\n (prologues || (prologues = [])).push({ file: index, text: sourceFile.text.substring(0, end), directives: directives });\n }\n return prologues;\n }\n function emitShebangIfNeeded(sourceFileOrBundle) {\n if (ts.isSourceFile(sourceFileOrBundle) || ts.isUnparsedSource(sourceFileOrBundle)) {\n var shebang = ts.getShebang(sourceFileOrBundle.text);\n if (shebang) {\n writeComment(shebang);\n writeLine();\n return true;\n }\n }\n else {\n for (var _a = 0, _b = sourceFileOrBundle.prepends; _a < _b.length; _a++) {\n var prepend = _b[_a];\n ts.Debug.assertNode(prepend, ts.isUnparsedSource);\n if (emitShebangIfNeeded(prepend)) {\n return true;\n }\n }\n for (var _c = 0, _d = sourceFileOrBundle.sourceFiles; _c < _d.length; _c++) {\n var sourceFile = _d[_c];\n // Emit only the first encountered shebang\n if (emitShebangIfNeeded(sourceFile)) {\n return true;\n }\n }\n }\n }\n //\n // Helpers\n //\n function emitNodeWithWriter(node, writer) {\n if (!node)\n return;\n var savedWrite = write;\n write = writer;\n emit(node);\n write = savedWrite;\n }\n function emitModifiers(node, modifiers) {\n if (modifiers && modifiers.length) {\n emitList(node, modifiers, 262656 /* Modifiers */);\n writeSpace();\n }\n }\n function emitTypeAnnotation(node) {\n if (node) {\n writePunctuation(\":\");\n writeSpace();\n emit(node);\n }\n }\n function emitInitializer(node, equalCommentStartPos, container, parenthesizerRule) {\n if (node) {\n writeSpace();\n emitTokenWithComment(63 /* EqualsToken */, equalCommentStartPos, writeOperator, container);\n writeSpace();\n emitExpression(node, parenthesizerRule);\n }\n }\n function emitNodeWithPrefix(prefix, prefixWriter, node, emit) {\n if (node) {\n prefixWriter(prefix);\n emit(node);\n }\n }\n function emitWithLeadingSpace(node) {\n if (node) {\n writeSpace();\n emit(node);\n }\n }\n function emitExpressionWithLeadingSpace(node, parenthesizerRule) {\n if (node) {\n writeSpace();\n emitExpression(node, parenthesizerRule);\n }\n }\n function emitWithTrailingSpace(node) {\n if (node) {\n emit(node);\n writeSpace();\n }\n }\n function emitEmbeddedStatement(parent, node) {\n if (ts.isBlock(node) || ts.getEmitFlags(parent) & 1 /* SingleLine */) {\n writeSpace();\n emit(node);\n }\n else {\n writeLine();\n increaseIndent();\n if (ts.isEmptyStatement(node)) {\n pipelineEmit(5 /* EmbeddedStatement */, node);\n }\n else {\n emit(node);\n }\n decreaseIndent();\n }\n }\n function emitDecorators(parentNode, decorators) {\n emitList(parentNode, decorators, 2146305 /* Decorators */);\n }\n function emitTypeArguments(parentNode, typeArguments) {\n emitList(parentNode, typeArguments, 53776 /* TypeArguments */, parenthesizer.parenthesizeMemberOfElementType);\n }\n function emitTypeParameters(parentNode, typeParameters) {\n if (ts.isFunctionLike(parentNode) && parentNode.typeArguments) { // Quick info uses type arguments in place of type parameters on instantiated signatures\n return emitTypeArguments(parentNode, parentNode.typeArguments);\n }\n emitList(parentNode, typeParameters, 53776 /* TypeParameters */);\n }\n function emitParameters(parentNode, parameters) {\n emitList(parentNode, parameters, 2576 /* Parameters */);\n }\n function canEmitSimpleArrowHead(parentNode, parameters) {\n var parameter = ts.singleOrUndefined(parameters);\n return parameter\n && parameter.pos === parentNode.pos // may not have parsed tokens between parent and parameter\n && ts.isArrowFunction(parentNode) // only arrow functions may have simple arrow head\n && !parentNode.type // arrow function may not have return type annotation\n && !ts.some(parentNode.decorators) // parent may not have decorators\n && !ts.some(parentNode.modifiers) // parent may not have modifiers\n && !ts.some(parentNode.typeParameters) // parent may not have type parameters\n && !ts.some(parameter.decorators) // parameter may not have decorators\n && !ts.some(parameter.modifiers) // parameter may not have modifiers\n && !parameter.dotDotDotToken // parameter may not be rest\n && !parameter.questionToken // parameter may not be optional\n && !parameter.type // parameter may not have a type annotation\n && !parameter.initializer // parameter may not have an initializer\n && ts.isIdentifier(parameter.name); // parameter name must be identifier\n }\n function emitParametersForArrow(parentNode, parameters) {\n if (canEmitSimpleArrowHead(parentNode, parameters)) {\n emitList(parentNode, parameters, 2576 /* Parameters */ & ~2048 /* Parenthesis */);\n }\n else {\n emitParameters(parentNode, parameters);\n }\n }\n function emitParametersForIndexSignature(parentNode, parameters) {\n emitList(parentNode, parameters, 8848 /* IndexSignatureParameters */);\n }\n function writeDelimiter(format) {\n switch (format & 60 /* DelimitersMask */) {\n case 0 /* None */:\n break;\n case 16 /* CommaDelimited */:\n writePunctuation(\",\");\n break;\n case 4 /* BarDelimited */:\n writeSpace();\n writePunctuation(\"|\");\n break;\n case 32 /* AsteriskDelimited */:\n writeSpace();\n writePunctuation(\"*\");\n writeSpace();\n break;\n case 8 /* AmpersandDelimited */:\n writeSpace();\n writePunctuation(\"&\");\n break;\n }\n }\n function emitList(parentNode, children, format, parenthesizerRule, start, count) {\n emitNodeList(emit, parentNode, children, format, parenthesizerRule, start, count);\n }\n function emitExpressionList(parentNode, children, format, parenthesizerRule, start, count) {\n emitNodeList(emitExpression, parentNode, children, format, parenthesizerRule, start, count);\n }\n function emitNodeList(emit, parentNode, children, format, parenthesizerRule, start, count) {\n if (start === void 0) { start = 0; }\n if (count === void 0) { count = children ? children.length - start : 0; }\n var isUndefined = children === undefined;\n if (isUndefined && format & 16384 /* OptionalIfUndefined */) {\n return;\n }\n var isEmpty = children === undefined || start >= children.length || count === 0;\n if (isEmpty && format & 32768 /* OptionalIfEmpty */) {\n if (onBeforeEmitNodeArray) {\n onBeforeEmitNodeArray(children);\n }\n if (onAfterEmitNodeArray) {\n onAfterEmitNodeArray(children);\n }\n return;\n }\n if (format & 15360 /* BracketsMask */) {\n writePunctuation(getOpeningBracket(format));\n if (isEmpty && children) {\n emitTrailingCommentsOfPosition(children.pos, /*prefixSpace*/ true); // Emit comments within empty bracketed lists\n }\n }\n if (onBeforeEmitNodeArray) {\n onBeforeEmitNodeArray(children);\n }\n if (isEmpty) {\n // Write a line terminator if the parent node was multi-line\n if (format & 1 /* MultiLine */ && !(preserveSourceNewlines && (!parentNode || ts.rangeIsOnSingleLine(parentNode, currentSourceFile)))) {\n writeLine();\n }\n else if (format & 256 /* SpaceBetweenBraces */ && !(format & 524288 /* NoSpaceIfEmpty */)) {\n writeSpace();\n }\n }\n else {\n ts.Debug.type(children);\n // Write the opening line terminator or leading whitespace.\n var mayEmitInterveningComments = (format & 262144 /* NoInterveningComments */) === 0;\n var shouldEmitInterveningComments = mayEmitInterveningComments;\n var leadingLineTerminatorCount = getLeadingLineTerminatorCount(parentNode, children, format); // TODO: GH#18217\n if (leadingLineTerminatorCount) {\n writeLine(leadingLineTerminatorCount);\n shouldEmitInterveningComments = false;\n }\n else if (format & 256 /* SpaceBetweenBraces */) {\n writeSpace();\n }\n // Increase the indent, if requested.\n if (format & 128 /* Indented */) {\n increaseIndent();\n }\n // Emit each child.\n var previousSibling = void 0;\n var previousSourceFileTextKind = void 0;\n var shouldDecreaseIndentAfterEmit = false;\n for (var i = 0; i < count; i++) {\n var child = children[start + i];\n // Write the delimiter if this is not the first node.\n if (format & 32 /* AsteriskDelimited */) {\n // always write JSDoc in the format \"\\n *\"\n writeLine();\n writeDelimiter(format);\n }\n else if (previousSibling) {\n // i.e\n // function commentedParameters(\n // /* Parameter a */\n // a\n // /* End of parameter a */ -> this comment isn't considered to be trailing comment of parameter \"a\" due to newline\n // ,\n if (format & 60 /* DelimitersMask */ && previousSibling.end !== (parentNode ? parentNode.end : -1)) {\n emitLeadingCommentsOfPosition(previousSibling.end);\n }\n writeDelimiter(format);\n recordBundleFileInternalSectionEnd(previousSourceFileTextKind);\n // Write either a line terminator or whitespace to separate the elements.\n var separatingLineTerminatorCount = getSeparatingLineTerminatorCount(previousSibling, child, format);\n if (separatingLineTerminatorCount > 0) {\n // If a synthesized node in a single-line list starts on a new\n // line, we should increase the indent.\n if ((format & (3 /* LinesMask */ | 128 /* Indented */)) === 0 /* SingleLine */) {\n increaseIndent();\n shouldDecreaseIndentAfterEmit = true;\n }\n writeLine(separatingLineTerminatorCount);\n shouldEmitInterveningComments = false;\n }\n else if (previousSibling && format & 512 /* SpaceBetweenSiblings */) {\n writeSpace();\n }\n }\n // Emit this child.\n previousSourceFileTextKind = recordBundleFileInternalSectionStart(child);\n if (shouldEmitInterveningComments) {\n if (emitTrailingCommentsOfPosition) {\n var commentRange = ts.getCommentRange(child);\n emitTrailingCommentsOfPosition(commentRange.pos);\n }\n }\n else {\n shouldEmitInterveningComments = mayEmitInterveningComments;\n }\n nextListElementPos = child.pos;\n if (emit.length === 1) {\n emit(child);\n }\n else {\n emit(child, parenthesizerRule);\n }\n if (shouldDecreaseIndentAfterEmit) {\n decreaseIndent();\n shouldDecreaseIndentAfterEmit = false;\n }\n previousSibling = child;\n }\n // Write a trailing comma, if requested.\n var emitFlags = previousSibling ? ts.getEmitFlags(previousSibling) : 0;\n var skipTrailingComments = commentsDisabled || !!(emitFlags & 1024 /* NoTrailingComments */);\n var hasTrailingComma = (children === null || children === void 0 ? void 0 : children.hasTrailingComma) && (format & 64 /* AllowTrailingComma */) && (format & 16 /* CommaDelimited */);\n if (hasTrailingComma) {\n if (previousSibling && !skipTrailingComments) {\n emitTokenWithComment(27 /* CommaToken */, previousSibling.end, writePunctuation, previousSibling);\n }\n else {\n writePunctuation(\",\");\n }\n }\n // Emit any trailing comment of the last element in the list\n // i.e\n // var array = [...\n // 2\n // /* end of element 2 */\n // ];\n if (previousSibling && (parentNode ? parentNode.end : -1) !== previousSibling.end && (format & 60 /* DelimitersMask */) && !skipTrailingComments) {\n emitLeadingCommentsOfPosition(hasTrailingComma && (children === null || children === void 0 ? void 0 : children.end) ? children.end : previousSibling.end);\n }\n // Decrease the indent, if requested.\n if (format & 128 /* Indented */) {\n decreaseIndent();\n }\n recordBundleFileInternalSectionEnd(previousSourceFileTextKind);\n // Write the closing line terminator or closing whitespace.\n var closingLineTerminatorCount = getClosingLineTerminatorCount(parentNode, children, format);\n if (closingLineTerminatorCount) {\n writeLine(closingLineTerminatorCount);\n }\n else if (format & (2097152 /* SpaceAfterList */ | 256 /* SpaceBetweenBraces */)) {\n writeSpace();\n }\n }\n if (onAfterEmitNodeArray) {\n onAfterEmitNodeArray(children);\n }\n if (format & 15360 /* BracketsMask */) {\n if (isEmpty && children) {\n emitLeadingCommentsOfPosition(children.end); // Emit leading comments within empty lists\n }\n writePunctuation(getClosingBracket(format));\n }\n }\n // Writers\n function writeLiteral(s) {\n writer.writeLiteral(s);\n }\n function writeStringLiteral(s) {\n writer.writeStringLiteral(s);\n }\n function writeBase(s) {\n writer.write(s);\n }\n function writeSymbol(s, sym) {\n writer.writeSymbol(s, sym);\n }\n function writePunctuation(s) {\n writer.writePunctuation(s);\n }\n function writeTrailingSemicolon() {\n writer.writeTrailingSemicolon(\";\");\n }\n function writeKeyword(s) {\n writer.writeKeyword(s);\n }\n function writeOperator(s) {\n writer.writeOperator(s);\n }\n function writeParameter(s) {\n writer.writeParameter(s);\n }\n function writeComment(s) {\n writer.writeComment(s);\n }\n function writeSpace() {\n writer.writeSpace(\" \");\n }\n function writeProperty(s) {\n writer.writeProperty(s);\n }\n function writeLine(count) {\n if (count === void 0) { count = 1; }\n for (var i = 0; i < count; i++) {\n writer.writeLine(i > 0);\n }\n }\n function increaseIndent() {\n writer.increaseIndent();\n }\n function decreaseIndent() {\n writer.decreaseIndent();\n }\n function writeToken(token, pos, writer, contextNode) {\n return !sourceMapsDisabled\n ? emitTokenWithSourceMap(contextNode, token, writer, pos, writeTokenText)\n : writeTokenText(token, writer, pos);\n }\n function writeTokenNode(node, writer) {\n if (onBeforeEmitToken) {\n onBeforeEmitToken(node);\n }\n writer(ts.tokenToString(node.kind));\n if (onAfterEmitToken) {\n onAfterEmitToken(node);\n }\n }\n function writeTokenText(token, writer, pos) {\n var tokenString = ts.tokenToString(token);\n writer(tokenString);\n return pos < 0 ? pos : pos + tokenString.length;\n }\n function writeLineOrSpace(parentNode, prevChildNode, nextChildNode) {\n if (ts.getEmitFlags(parentNode) & 1 /* SingleLine */) {\n writeSpace();\n }\n else if (preserveSourceNewlines) {\n var lines = getLinesBetweenNodes(parentNode, prevChildNode, nextChildNode);\n if (lines) {\n writeLine(lines);\n }\n else {\n writeSpace();\n }\n }\n else {\n writeLine();\n }\n }\n function writeLines(text) {\n var lines = text.split(/\\r\\n?|\\n/g);\n var indentation = ts.guessIndentation(lines);\n for (var _a = 0, lines_3 = lines; _a < lines_3.length; _a++) {\n var lineText = lines_3[_a];\n var line = indentation ? lineText.slice(indentation) : lineText;\n if (line.length) {\n writeLine();\n write(line);\n }\n }\n }\n function writeLinesAndIndent(lineCount, writeSpaceIfNotIndenting) {\n if (lineCount) {\n increaseIndent();\n writeLine(lineCount);\n }\n else if (writeSpaceIfNotIndenting) {\n writeSpace();\n }\n }\n // Helper function to decrease the indent if we previously indented. Allows multiple\n // previous indent values to be considered at a time. This also allows caller to just\n // call this once, passing in all their appropriate indent values, instead of needing\n // to call this helper function multiple times.\n function decreaseIndentIf(value1, value2) {\n if (value1) {\n decreaseIndent();\n }\n if (value2) {\n decreaseIndent();\n }\n }\n function getLeadingLineTerminatorCount(parentNode, children, format) {\n if (format & 2 /* PreserveLines */ || preserveSourceNewlines) {\n if (format & 65536 /* PreferNewLine */) {\n return 1;\n }\n var firstChild_1 = children[0];\n if (firstChild_1 === undefined) {\n return !parentNode || ts.rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1;\n }\n if (firstChild_1.pos === nextListElementPos) {\n // If this child starts at the beginning of a list item in a parent list, its leading\n // line terminators have already been written as the separating line terminators of the\n // parent list. Example:\n //\n // class Foo {\n // constructor() {}\n // public foo() {}\n // }\n //\n // The outer list is the list of class members, with one line terminator between the\n // constructor and the method. The constructor is written, the separating line terminator\n // is written, and then we start emitting the method. Its modifiers ([public]) constitute an inner\n // list, so we look for its leading line terminators. If we didn't know that we had already\n // written a newline as part of the parent list, it would appear that we need to write a\n // leading newline to start the modifiers.\n return 0;\n }\n if (firstChild_1.kind === 11 /* JsxText */) {\n // JsxText will be written with its leading whitespace, so don't add more manually.\n return 0;\n }\n if (parentNode &&\n !ts.positionIsSynthesized(parentNode.pos) &&\n !ts.nodeIsSynthesized(firstChild_1) &&\n (!firstChild_1.parent || ts.getOriginalNode(firstChild_1.parent) === ts.getOriginalNode(parentNode))) {\n if (preserveSourceNewlines) {\n return getEffectiveLines(function (includeComments) { return ts.getLinesBetweenPositionAndPrecedingNonWhitespaceCharacter(firstChild_1.pos, parentNode.pos, currentSourceFile, includeComments); });\n }\n return ts.rangeStartPositionsAreOnSameLine(parentNode, firstChild_1, currentSourceFile) ? 0 : 1;\n }\n if (synthesizedNodeStartsOnNewLine(firstChild_1, format)) {\n return 1;\n }\n }\n return format & 1 /* MultiLine */ ? 1 : 0;\n }\n function getSeparatingLineTerminatorCount(previousNode, nextNode, format) {\n if (format & 2 /* PreserveLines */ || preserveSourceNewlines) {\n if (previousNode === undefined || nextNode === undefined) {\n return 0;\n }\n if (nextNode.kind === 11 /* JsxText */) {\n // JsxText will be written with its leading whitespace, so don't add more manually.\n return 0;\n }\n else if (!ts.nodeIsSynthesized(previousNode) && !ts.nodeIsSynthesized(nextNode)) {\n if (preserveSourceNewlines && siblingNodePositionsAreComparable(previousNode, nextNode)) {\n return getEffectiveLines(function (includeComments) { return ts.getLinesBetweenRangeEndAndRangeStart(previousNode, nextNode, currentSourceFile, includeComments); });\n }\n // If `preserveSourceNewlines` is `false` we do not intend to preserve the effective lines between the\n // previous and next node. Instead we naively check whether nodes are on separate lines within the\n // same node parent. If so, we intend to preserve a single line terminator. This is less precise and\n // expensive than checking with `preserveSourceNewlines` as above, but the goal is not to preserve the\n // effective source lines between two sibling nodes.\n else if (!preserveSourceNewlines && originalNodesHaveSameParent(previousNode, nextNode)) {\n return ts.rangeEndIsOnSameLineAsRangeStart(previousNode, nextNode, currentSourceFile) ? 0 : 1;\n }\n // If the two nodes are not comparable, add a line terminator based on the format that can indicate\n // whether new lines are preferred or not.\n return format & 65536 /* PreferNewLine */ ? 1 : 0;\n }\n else if (synthesizedNodeStartsOnNewLine(previousNode, format) || synthesizedNodeStartsOnNewLine(nextNode, format)) {\n return 1;\n }\n }\n else if (ts.getStartsOnNewLine(nextNode)) {\n return 1;\n }\n return format & 1 /* MultiLine */ ? 1 : 0;\n }\n function getClosingLineTerminatorCount(parentNode, children, format) {\n if (format & 2 /* PreserveLines */ || preserveSourceNewlines) {\n if (format & 65536 /* PreferNewLine */) {\n return 1;\n }\n var lastChild = ts.lastOrUndefined(children);\n if (lastChild === undefined) {\n return !parentNode || ts.rangeIsOnSingleLine(parentNode, currentSourceFile) ? 0 : 1;\n }\n if (parentNode && !ts.positionIsSynthesized(parentNode.pos) && !ts.nodeIsSynthesized(lastChild) && (!lastChild.parent || lastChild.parent === parentNode)) {\n if (preserveSourceNewlines) {\n var end_1 = ts.isNodeArray(children) && !ts.positionIsSynthesized(children.end) ? children.end : lastChild.end;\n return getEffectiveLines(function (includeComments) { return ts.getLinesBetweenPositionAndNextNonWhitespaceCharacter(end_1, parentNode.end, currentSourceFile, includeComments); });\n }\n return ts.rangeEndPositionsAreOnSameLine(parentNode, lastChild, currentSourceFile) ? 0 : 1;\n }\n if (synthesizedNodeStartsOnNewLine(lastChild, format)) {\n return 1;\n }\n }\n if (format & 1 /* MultiLine */ && !(format & 131072 /* NoTrailingNewLine */)) {\n return 1;\n }\n return 0;\n }\n function getEffectiveLines(getLineDifference) {\n // If 'preserveSourceNewlines' is disabled, we should never call this function\n // because it could be more expensive than alternative approximations.\n ts.Debug.assert(!!preserveSourceNewlines);\n // We start by measuring the line difference from a position to its adjacent comments,\n // so that this is counted as a one-line difference, not two:\n //\n // node1;\n // // NODE2 COMMENT\n // node2;\n var lines = getLineDifference(/*includeComments*/ true);\n if (lines === 0) {\n // However, if the line difference considering comments was 0, we might have this:\n //\n // node1; // NODE2 COMMENT\n // node2;\n //\n // in which case we should be ignoring node2's comment, so this too is counted as\n // a one-line difference, not zero.\n return getLineDifference(/*includeComments*/ false);\n }\n return lines;\n }\n function writeLineSeparatorsAndIndentBefore(node, parent) {\n var leadingNewlines = preserveSourceNewlines && getLeadingLineTerminatorCount(parent, [node], 0 /* None */);\n if (leadingNewlines) {\n writeLinesAndIndent(leadingNewlines, /*writeLinesIfNotIndenting*/ false);\n }\n return !!leadingNewlines;\n }\n function writeLineSeparatorsAfter(node, parent) {\n var trailingNewlines = preserveSourceNewlines && getClosingLineTerminatorCount(parent, [node], 0 /* None */);\n if (trailingNewlines) {\n writeLine(trailingNewlines);\n }\n }\n function synthesizedNodeStartsOnNewLine(node, format) {\n if (ts.nodeIsSynthesized(node)) {\n var startsOnNewLine = ts.getStartsOnNewLine(node);\n if (startsOnNewLine === undefined) {\n return (format & 65536 /* PreferNewLine */) !== 0;\n }\n return startsOnNewLine;\n }\n return (format & 65536 /* PreferNewLine */) !== 0;\n }\n function getLinesBetweenNodes(parent, node1, node2) {\n if (ts.getEmitFlags(parent) & 131072 /* NoIndentation */) {\n return 0;\n }\n parent = skipSynthesizedParentheses(parent);\n node1 = skipSynthesizedParentheses(node1);\n node2 = skipSynthesizedParentheses(node2);\n // Always use a newline for synthesized code if the synthesizer desires it.\n if (ts.getStartsOnNewLine(node2)) {\n return 1;\n }\n if (!ts.nodeIsSynthesized(parent) && !ts.nodeIsSynthesized(node1) && !ts.nodeIsSynthesized(node2)) {\n if (preserveSourceNewlines) {\n return getEffectiveLines(function (includeComments) { return ts.getLinesBetweenRangeEndAndRangeStart(node1, node2, currentSourceFile, includeComments); });\n }\n return ts.rangeEndIsOnSameLineAsRangeStart(node1, node2, currentSourceFile) ? 0 : 1;\n }\n return 0;\n }\n function isEmptyBlock(block) {\n return block.statements.length === 0\n && ts.rangeEndIsOnSameLineAsRangeStart(block, block, currentSourceFile);\n }\n function skipSynthesizedParentheses(node) {\n while (node.kind === 210 /* ParenthesizedExpression */ && ts.nodeIsSynthesized(node)) {\n node = node.expression;\n }\n return node;\n }\n function getTextOfNode(node, includeTrivia) {\n if (ts.isGeneratedIdentifier(node)) {\n return generateName(node);\n }\n else if ((ts.isIdentifier(node) || ts.isPrivateIdentifier(node)) && (ts.nodeIsSynthesized(node) || !node.parent || !currentSourceFile || (node.parent && currentSourceFile && ts.getSourceFileOfNode(node) !== ts.getOriginalNode(currentSourceFile)))) {\n return ts.idText(node);\n }\n else if (node.kind === 10 /* StringLiteral */ && node.textSourceNode) {\n return getTextOfNode(node.textSourceNode, includeTrivia);\n }\n else if (ts.isLiteralExpression(node) && (ts.nodeIsSynthesized(node) || !node.parent)) {\n return node.text;\n }\n return ts.getSourceTextOfNodeFromSourceFile(currentSourceFile, node, includeTrivia);\n }\n function getLiteralTextOfNode(node, neverAsciiEscape, jsxAttributeEscape) {\n if (node.kind === 10 /* StringLiteral */ && node.textSourceNode) {\n var textSourceNode = node.textSourceNode;\n if (ts.isIdentifier(textSourceNode) || ts.isNumericLiteral(textSourceNode)) {\n var text = ts.isNumericLiteral(textSourceNode) ? textSourceNode.text : getTextOfNode(textSourceNode);\n return jsxAttributeEscape ? \"\\\"\" + ts.escapeJsxAttributeString(text) + \"\\\"\" :\n neverAsciiEscape || (ts.getEmitFlags(node) & 16777216 /* NoAsciiEscaping */) ? \"\\\"\" + ts.escapeString(text) + \"\\\"\" :\n \"\\\"\" + ts.escapeNonAsciiString(text) + \"\\\"\";\n }\n else {\n return getLiteralTextOfNode(textSourceNode, neverAsciiEscape, jsxAttributeEscape);\n }\n }\n var flags = (neverAsciiEscape ? 1 /* NeverAsciiEscape */ : 0)\n | (jsxAttributeEscape ? 2 /* JsxAttributeEscape */ : 0)\n | (printerOptions.terminateUnterminatedLiterals ? 4 /* TerminateUnterminatedLiterals */ : 0)\n | (printerOptions.target && printerOptions.target === 99 /* ESNext */ ? 8 /* AllowNumericSeparator */ : 0);\n return ts.getLiteralText(node, currentSourceFile, flags);\n }\n /**\n * Push a new name generation scope.\n */\n function pushNameGenerationScope(node) {\n if (node && ts.getEmitFlags(node) & 524288 /* ReuseTempVariableScope */) {\n return;\n }\n tempFlagsStack.push(tempFlags);\n tempFlags = 0;\n reservedNamesStack.push(reservedNames);\n }\n /**\n * Pop the current name generation scope.\n */\n function popNameGenerationScope(node) {\n if (node && ts.getEmitFlags(node) & 524288 /* ReuseTempVariableScope */) {\n return;\n }\n tempFlags = tempFlagsStack.pop();\n reservedNames = reservedNamesStack.pop();\n }\n function reserveNameInNestedScopes(name) {\n if (!reservedNames || reservedNames === ts.lastOrUndefined(reservedNamesStack)) {\n reservedNames = new ts.Set();\n }\n reservedNames.add(name);\n }\n function generateNames(node) {\n if (!node)\n return;\n switch (node.kind) {\n case 233 /* Block */:\n ts.forEach(node.statements, generateNames);\n break;\n case 248 /* LabeledStatement */:\n case 246 /* WithStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n generateNames(node.statement);\n break;\n case 237 /* IfStatement */:\n generateNames(node.thenStatement);\n generateNames(node.elseStatement);\n break;\n case 240 /* ForStatement */:\n case 242 /* ForOfStatement */:\n case 241 /* ForInStatement */:\n generateNames(node.initializer);\n generateNames(node.statement);\n break;\n case 247 /* SwitchStatement */:\n generateNames(node.caseBlock);\n break;\n case 261 /* CaseBlock */:\n ts.forEach(node.clauses, generateNames);\n break;\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n ts.forEach(node.statements, generateNames);\n break;\n case 250 /* TryStatement */:\n generateNames(node.tryBlock);\n generateNames(node.catchClause);\n generateNames(node.finallyBlock);\n break;\n case 290 /* CatchClause */:\n generateNames(node.variableDeclaration);\n generateNames(node.block);\n break;\n case 235 /* VariableStatement */:\n generateNames(node.declarationList);\n break;\n case 253 /* VariableDeclarationList */:\n ts.forEach(node.declarations, generateNames);\n break;\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n case 201 /* BindingElement */:\n case 255 /* ClassDeclaration */:\n generateNameIfNeeded(node.name);\n break;\n case 254 /* FunctionDeclaration */:\n generateNameIfNeeded(node.name);\n if (ts.getEmitFlags(node) & 524288 /* ReuseTempVariableScope */) {\n ts.forEach(node.parameters, generateNames);\n generateNames(node.body);\n }\n break;\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */:\n ts.forEach(node.elements, generateNames);\n break;\n case 264 /* ImportDeclaration */:\n generateNames(node.importClause);\n break;\n case 265 /* ImportClause */:\n generateNameIfNeeded(node.name);\n generateNames(node.namedBindings);\n break;\n case 266 /* NamespaceImport */:\n generateNameIfNeeded(node.name);\n break;\n case 272 /* NamespaceExport */:\n generateNameIfNeeded(node.name);\n break;\n case 267 /* NamedImports */:\n ts.forEach(node.elements, generateNames);\n break;\n case 268 /* ImportSpecifier */:\n generateNameIfNeeded(node.propertyName || node.name);\n break;\n }\n }\n function generateMemberNames(node) {\n if (!node)\n return;\n switch (node.kind) {\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n generateNameIfNeeded(node.name);\n break;\n }\n }\n function generateNameIfNeeded(name) {\n if (name) {\n if (ts.isGeneratedIdentifier(name)) {\n generateName(name);\n }\n else if (ts.isBindingPattern(name)) {\n generateNames(name);\n }\n }\n }\n /**\n * Generate the text for a generated identifier.\n */\n function generateName(name) {\n if ((name.autoGenerateFlags & 7 /* KindMask */) === 4 /* Node */) {\n // Node names generate unique names based on their original node\n // and are cached based on that node's id.\n return generateNameCached(getNodeForGeneratedName(name), name.autoGenerateFlags);\n }\n else {\n // Auto, Loop, and Unique names are cached based on their unique\n // autoGenerateId.\n var autoGenerateId = name.autoGenerateId;\n return autoGeneratedIdToGeneratedName[autoGenerateId] || (autoGeneratedIdToGeneratedName[autoGenerateId] = makeName(name));\n }\n }\n function generateNameCached(node, flags) {\n var nodeId = ts.getNodeId(node);\n return nodeIdToGeneratedName[nodeId] || (nodeIdToGeneratedName[nodeId] = generateNameForNode(node, flags));\n }\n /**\n * Returns a value indicating whether a name is unique globally, within the current file,\n * or within the NameGenerator.\n */\n function isUniqueName(name) {\n return isFileLevelUniqueName(name)\n && !generatedNames.has(name)\n && !(reservedNames && reservedNames.has(name));\n }\n /**\n * Returns a value indicating whether a name is unique globally or within the current file.\n */\n function isFileLevelUniqueName(name) {\n return currentSourceFile ? ts.isFileLevelUniqueName(currentSourceFile, name, hasGlobalName) : true;\n }\n /**\n * Returns a value indicating whether a name is unique within a container.\n */\n function isUniqueLocalName(name, container) {\n for (var node = container; ts.isNodeDescendantOf(node, container); node = node.nextContainer) {\n if (node.locals) {\n var local = node.locals.get(ts.escapeLeadingUnderscores(name));\n // We conservatively include alias symbols to cover cases where they're emitted as locals\n if (local && local.flags & (111551 /* Value */ | 1048576 /* ExportValue */ | 2097152 /* Alias */)) {\n return false;\n }\n }\n }\n return true;\n }\n /**\n * Return the next available name in the pattern _a ... _z, _0, _1, ...\n * TempFlags._i or TempFlags._n may be used to express a preference for that dedicated name.\n * Note that names generated by makeTempVariableName and makeUniqueName will never conflict.\n */\n function makeTempVariableName(flags, reservedInNestedScopes) {\n if (flags && !(tempFlags & flags)) {\n var name = flags === 268435456 /* _i */ ? \"_i\" : \"_n\";\n if (isUniqueName(name)) {\n tempFlags |= flags;\n if (reservedInNestedScopes) {\n reserveNameInNestedScopes(name);\n }\n return name;\n }\n }\n while (true) {\n var count = tempFlags & 268435455 /* CountMask */;\n tempFlags++;\n // Skip over 'i' and 'n'\n if (count !== 8 && count !== 13) {\n var name = count < 26\n ? \"_\" + String.fromCharCode(97 /* a */ + count)\n : \"_\" + (count - 26);\n if (isUniqueName(name)) {\n if (reservedInNestedScopes) {\n reserveNameInNestedScopes(name);\n }\n return name;\n }\n }\n }\n }\n /**\n * Generate a name that is unique within the current file and doesn't conflict with any names\n * in global scope. The name is formed by adding an '_n' suffix to the specified base name,\n * where n is a positive integer. Note that names generated by makeTempVariableName and\n * makeUniqueName are guaranteed to never conflict.\n * If `optimistic` is set, the first instance will use 'baseName' verbatim instead of 'baseName_1'\n */\n function makeUniqueName(baseName, checkFn, optimistic, scoped) {\n if (checkFn === void 0) { checkFn = isUniqueName; }\n if (optimistic) {\n if (checkFn(baseName)) {\n if (scoped) {\n reserveNameInNestedScopes(baseName);\n }\n else {\n generatedNames.add(baseName);\n }\n return baseName;\n }\n }\n // Find the first unique 'name_n', where n is a positive number\n if (baseName.charCodeAt(baseName.length - 1) !== 95 /* _ */) {\n baseName += \"_\";\n }\n var i = 1;\n while (true) {\n var generatedName = baseName + i;\n if (checkFn(generatedName)) {\n if (scoped) {\n reserveNameInNestedScopes(generatedName);\n }\n else {\n generatedNames.add(generatedName);\n }\n return generatedName;\n }\n i++;\n }\n }\n function makeFileLevelOptimisticUniqueName(name) {\n return makeUniqueName(name, isFileLevelUniqueName, /*optimistic*/ true);\n }\n /**\n * Generates a unique name for a ModuleDeclaration or EnumDeclaration.\n */\n function generateNameForModuleOrEnum(node) {\n var name = getTextOfNode(node.name);\n // Use module/enum name itself if it is unique, otherwise make a unique variation\n return isUniqueLocalName(name, node) ? name : makeUniqueName(name);\n }\n /**\n * Generates a unique name for an ImportDeclaration or ExportDeclaration.\n */\n function generateNameForImportOrExportDeclaration(node) {\n var expr = ts.getExternalModuleName(node); // TODO: GH#18217\n var baseName = ts.isStringLiteral(expr) ?\n ts.makeIdentifierFromModuleName(expr.text) : \"module\";\n return makeUniqueName(baseName);\n }\n /**\n * Generates a unique name for a default export.\n */\n function generateNameForExportDefault() {\n return makeUniqueName(\"default\");\n }\n /**\n * Generates a unique name for a class expression.\n */\n function generateNameForClassExpression() {\n return makeUniqueName(\"class\");\n }\n function generateNameForMethodOrAccessor(node) {\n if (ts.isIdentifier(node.name)) {\n return generateNameCached(node.name);\n }\n return makeTempVariableName(0 /* Auto */);\n }\n /**\n * Generates a unique name from a node.\n */\n function generateNameForNode(node, flags) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return makeUniqueName(getTextOfNode(node), isUniqueName, !!(flags & 16 /* Optimistic */), !!(flags & 8 /* ReservedInNestedScopes */));\n case 259 /* ModuleDeclaration */:\n case 258 /* EnumDeclaration */:\n return generateNameForModuleOrEnum(node);\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n return generateNameForImportOrExportDeclaration(node);\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 269 /* ExportAssignment */:\n return generateNameForExportDefault();\n case 224 /* ClassExpression */:\n return generateNameForClassExpression();\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return generateNameForMethodOrAccessor(node);\n case 160 /* ComputedPropertyName */:\n return makeTempVariableName(0 /* Auto */, /*reserveInNestedScopes*/ true);\n default:\n return makeTempVariableName(0 /* Auto */);\n }\n }\n /**\n * Generates a unique identifier for a node.\n */\n function makeName(name) {\n switch (name.autoGenerateFlags & 7 /* KindMask */) {\n case 1 /* Auto */:\n return makeTempVariableName(0 /* Auto */, !!(name.autoGenerateFlags & 8 /* ReservedInNestedScopes */));\n case 2 /* Loop */:\n return makeTempVariableName(268435456 /* _i */, !!(name.autoGenerateFlags & 8 /* ReservedInNestedScopes */));\n case 3 /* Unique */:\n return makeUniqueName(ts.idText(name), (name.autoGenerateFlags & 32 /* FileLevel */) ? isFileLevelUniqueName : isUniqueName, !!(name.autoGenerateFlags & 16 /* Optimistic */), !!(name.autoGenerateFlags & 8 /* ReservedInNestedScopes */));\n }\n return ts.Debug.fail(\"Unsupported GeneratedIdentifierKind.\");\n }\n /**\n * Gets the node from which a name should be generated.\n */\n function getNodeForGeneratedName(name) {\n var autoGenerateId = name.autoGenerateId;\n var node = name;\n var original = node.original;\n while (original) {\n node = original;\n // if \"node\" is a different generated name (having a different\n // \"autoGenerateId\"), use it and stop traversing.\n if (ts.isIdentifier(node)\n && !!(node.autoGenerateFlags & 4 /* Node */)\n && node.autoGenerateId !== autoGenerateId) {\n break;\n }\n original = node.original;\n }\n // otherwise, return the original node for the source;\n return node;\n }\n // Comments\n function pipelineEmitWithComments(hint, node) {\n var pipelinePhase = getNextPipelinePhase(2 /* Comments */, hint, node);\n var savedContainerPos = containerPos;\n var savedContainerEnd = containerEnd;\n var savedDeclarationListContainerEnd = declarationListContainerEnd;\n emitCommentsBeforeNode(node);\n pipelinePhase(hint, node);\n emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n }\n function emitCommentsBeforeNode(node) {\n var emitFlags = ts.getEmitFlags(node);\n var commentRange = ts.getCommentRange(node);\n // Emit leading comments\n emitLeadingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end);\n if (emitFlags & 2048 /* NoNestedComments */) {\n commentsDisabled = true;\n }\n }\n function emitCommentsAfterNode(node, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) {\n var emitFlags = ts.getEmitFlags(node);\n var commentRange = ts.getCommentRange(node);\n // Emit trailing comments\n if (emitFlags & 2048 /* NoNestedComments */) {\n commentsDisabled = false;\n }\n emitTrailingCommentsOfNode(node, emitFlags, commentRange.pos, commentRange.end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd);\n }\n function emitLeadingCommentsOfNode(node, emitFlags, pos, end) {\n enterComment();\n hasWrittenComment = false;\n // We have to explicitly check that the node is JsxText because if the compilerOptions.jsx is \"preserve\" we will not do any transformation.\n // It is expensive to walk entire tree just to set one kind of node to have no comments.\n var skipLeadingComments = pos < 0 || (emitFlags & 512 /* NoLeadingComments */) !== 0 || node.kind === 11 /* JsxText */;\n var skipTrailingComments = end < 0 || (emitFlags & 1024 /* NoTrailingComments */) !== 0 || node.kind === 11 /* JsxText */;\n // Save current container state on the stack.\n if ((pos > 0 || end > 0) && pos !== end) {\n // Emit leading comments if the position is not synthesized and the node\n // has not opted out from emitting leading comments.\n if (!skipLeadingComments) {\n emitLeadingComments(pos, /*isEmittedNode*/ node.kind !== 344 /* NotEmittedStatement */);\n }\n if (!skipLeadingComments || (pos >= 0 && (emitFlags & 512 /* NoLeadingComments */) !== 0)) {\n // Advance the container position if comments get emitted or if they've been disabled explicitly using NoLeadingComments.\n containerPos = pos;\n }\n if (!skipTrailingComments || (end >= 0 && (emitFlags & 1024 /* NoTrailingComments */) !== 0)) {\n // As above.\n containerEnd = end;\n // To avoid invalid comment emit in a down-level binding pattern, we\n // keep track of the last declaration list container's end\n if (node.kind === 253 /* VariableDeclarationList */) {\n declarationListContainerEnd = end;\n }\n }\n }\n ts.forEach(ts.getSyntheticLeadingComments(node), emitLeadingSynthesizedComment);\n exitComment();\n }\n function emitTrailingCommentsOfNode(node, emitFlags, pos, end, savedContainerPos, savedContainerEnd, savedDeclarationListContainerEnd) {\n enterComment();\n var skipTrailingComments = end < 0 || (emitFlags & 1024 /* NoTrailingComments */) !== 0 || node.kind === 11 /* JsxText */;\n ts.forEach(ts.getSyntheticTrailingComments(node), emitTrailingSynthesizedComment);\n if ((pos > 0 || end > 0) && pos !== end) {\n // Restore previous container state.\n containerPos = savedContainerPos;\n containerEnd = savedContainerEnd;\n declarationListContainerEnd = savedDeclarationListContainerEnd;\n // Emit trailing comments if the position is not synthesized and the node\n // has not opted out from emitting leading comments and is an emitted node.\n if (!skipTrailingComments && node.kind !== 344 /* NotEmittedStatement */) {\n emitTrailingComments(end);\n }\n }\n exitComment();\n }\n function emitLeadingSynthesizedComment(comment) {\n if (comment.hasLeadingNewline || comment.kind === 2 /* SingleLineCommentTrivia */) {\n writer.writeLine();\n }\n writeSynthesizedComment(comment);\n if (comment.hasTrailingNewLine || comment.kind === 2 /* SingleLineCommentTrivia */) {\n writer.writeLine();\n }\n else {\n writer.writeSpace(\" \");\n }\n }\n function emitTrailingSynthesizedComment(comment) {\n if (!writer.isAtStartOfLine()) {\n writer.writeSpace(\" \");\n }\n writeSynthesizedComment(comment);\n if (comment.hasTrailingNewLine) {\n writer.writeLine();\n }\n }\n function writeSynthesizedComment(comment) {\n var text = formatSynthesizedComment(comment);\n var lineMap = comment.kind === 3 /* MultiLineCommentTrivia */ ? ts.computeLineStarts(text) : undefined;\n ts.writeCommentRange(text, lineMap, writer, 0, text.length, newLine);\n }\n function formatSynthesizedComment(comment) {\n return comment.kind === 3 /* MultiLineCommentTrivia */\n ? \"/*\" + comment.text + \"*/\"\n : \"//\" + comment.text;\n }\n function emitBodyWithDetachedComments(node, detachedRange, emitCallback) {\n enterComment();\n var pos = detachedRange.pos, end = detachedRange.end;\n var emitFlags = ts.getEmitFlags(node);\n var skipLeadingComments = pos < 0 || (emitFlags & 512 /* NoLeadingComments */) !== 0;\n var skipTrailingComments = commentsDisabled || end < 0 || (emitFlags & 1024 /* NoTrailingComments */) !== 0;\n if (!skipLeadingComments) {\n emitDetachedCommentsAndUpdateCommentsInfo(detachedRange);\n }\n exitComment();\n if (emitFlags & 2048 /* NoNestedComments */ && !commentsDisabled) {\n commentsDisabled = true;\n emitCallback(node);\n commentsDisabled = false;\n }\n else {\n emitCallback(node);\n }\n enterComment();\n if (!skipTrailingComments) {\n emitLeadingComments(detachedRange.end, /*isEmittedNode*/ true);\n if (hasWrittenComment && !writer.isAtStartOfLine()) {\n writer.writeLine();\n }\n }\n exitComment();\n }\n function originalNodesHaveSameParent(nodeA, nodeB) {\n nodeA = ts.getOriginalNode(nodeA);\n // For performance, do not call `getOriginalNode` for `nodeB` if `nodeA` doesn't even\n // have a parent node.\n return nodeA.parent && nodeA.parent === ts.getOriginalNode(nodeB).parent;\n }\n function siblingNodePositionsAreComparable(previousNode, nextNode) {\n if (nextNode.pos < previousNode.end) {\n return false;\n }\n previousNode = ts.getOriginalNode(previousNode);\n nextNode = ts.getOriginalNode(nextNode);\n var parent = previousNode.parent;\n if (!parent || parent !== nextNode.parent) {\n return false;\n }\n var parentNodeArray = ts.getContainingNodeArray(previousNode);\n var prevNodeIndex = parentNodeArray === null || parentNodeArray === void 0 ? void 0 : parentNodeArray.indexOf(previousNode);\n return prevNodeIndex !== undefined && prevNodeIndex > -1 && parentNodeArray.indexOf(nextNode) === prevNodeIndex + 1;\n }\n function emitLeadingComments(pos, isEmittedNode) {\n hasWrittenComment = false;\n if (isEmittedNode) {\n if (pos === 0 && (currentSourceFile === null || currentSourceFile === void 0 ? void 0 : currentSourceFile.isDeclarationFile)) {\n forEachLeadingCommentToEmit(pos, emitNonTripleSlashLeadingComment);\n }\n else {\n forEachLeadingCommentToEmit(pos, emitLeadingComment);\n }\n }\n else if (pos === 0) {\n // If the node will not be emitted in JS, remove all the comments(normal, pinned and ///) associated with the node,\n // unless it is a triple slash comment at the top of the file.\n // For Example:\n // /// \n // declare var x;\n // /// \n // interface F {}\n // The first /// will NOT be removed while the second one will be removed even though both node will not be emitted\n forEachLeadingCommentToEmit(pos, emitTripleSlashLeadingComment);\n }\n }\n function emitTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {\n if (isTripleSlashComment(commentPos, commentEnd)) {\n emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos);\n }\n }\n function emitNonTripleSlashLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {\n if (!isTripleSlashComment(commentPos, commentEnd)) {\n emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos);\n }\n }\n function shouldWriteComment(text, pos) {\n if (printerOptions.onlyPrintJsDocStyle) {\n return (ts.isJSDocLikeText(text, pos) || ts.isPinnedComment(text, pos));\n }\n return true;\n }\n function emitLeadingComment(commentPos, commentEnd, kind, hasTrailingNewLine, rangePos) {\n if (!shouldWriteComment(currentSourceFile.text, commentPos))\n return;\n if (!hasWrittenComment) {\n ts.emitNewLineBeforeLeadingCommentOfPosition(getCurrentLineMap(), writer, rangePos, commentPos);\n hasWrittenComment = true;\n }\n // Leading comments are emitted at /*leading comment1 */space/*leading comment*/space\n emitPos(commentPos);\n ts.writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n emitPos(commentEnd);\n if (hasTrailingNewLine) {\n writer.writeLine();\n }\n else if (kind === 3 /* MultiLineCommentTrivia */) {\n writer.writeSpace(\" \");\n }\n }\n function emitLeadingCommentsOfPosition(pos) {\n if (commentsDisabled || pos === -1) {\n return;\n }\n emitLeadingComments(pos, /*isEmittedNode*/ true);\n }\n function emitTrailingComments(pos) {\n forEachTrailingCommentToEmit(pos, emitTrailingComment);\n }\n function emitTrailingComment(commentPos, commentEnd, _kind, hasTrailingNewLine) {\n if (!shouldWriteComment(currentSourceFile.text, commentPos))\n return;\n // trailing comments are emitted at space/*trailing comment1 */space/*trailing comment2*/\n if (!writer.isAtStartOfLine()) {\n writer.writeSpace(\" \");\n }\n emitPos(commentPos);\n ts.writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n emitPos(commentEnd);\n if (hasTrailingNewLine) {\n writer.writeLine();\n }\n }\n function emitTrailingCommentsOfPosition(pos, prefixSpace, forceNoNewline) {\n if (commentsDisabled) {\n return;\n }\n enterComment();\n forEachTrailingCommentToEmit(pos, prefixSpace ? emitTrailingComment : forceNoNewline ? emitTrailingCommentOfPositionNoNewline : emitTrailingCommentOfPosition);\n exitComment();\n }\n function emitTrailingCommentOfPositionNoNewline(commentPos, commentEnd, kind) {\n // trailing comments of a position are emitted at /*trailing comment1 */space/*trailing comment*/space\n emitPos(commentPos);\n ts.writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n emitPos(commentEnd);\n if (kind === 2 /* SingleLineCommentTrivia */) {\n writer.writeLine(); // still write a newline for single-line comments, so closing tokens aren't written on the same line\n }\n }\n function emitTrailingCommentOfPosition(commentPos, commentEnd, _kind, hasTrailingNewLine) {\n // trailing comments of a position are emitted at /*trailing comment1 */space/*trailing comment*/space\n emitPos(commentPos);\n ts.writeCommentRange(currentSourceFile.text, getCurrentLineMap(), writer, commentPos, commentEnd, newLine);\n emitPos(commentEnd);\n if (hasTrailingNewLine) {\n writer.writeLine();\n }\n else {\n writer.writeSpace(\" \");\n }\n }\n function forEachLeadingCommentToEmit(pos, cb) {\n // Emit the leading comments only if the container's pos doesn't match because the container should take care of emitting these comments\n if (currentSourceFile && (containerPos === -1 || pos !== containerPos)) {\n if (hasDetachedComments(pos)) {\n forEachLeadingCommentWithoutDetachedComments(cb);\n }\n else {\n ts.forEachLeadingCommentRange(currentSourceFile.text, pos, cb, /*state*/ pos);\n }\n }\n }\n function forEachTrailingCommentToEmit(end, cb) {\n // Emit the trailing comments only if the container's end doesn't match because the container should take care of emitting these comments\n if (currentSourceFile && (containerEnd === -1 || (end !== containerEnd && end !== declarationListContainerEnd))) {\n ts.forEachTrailingCommentRange(currentSourceFile.text, end, cb);\n }\n }\n function hasDetachedComments(pos) {\n return detachedCommentsInfo !== undefined && ts.last(detachedCommentsInfo).nodePos === pos;\n }\n function forEachLeadingCommentWithoutDetachedComments(cb) {\n // get the leading comments from detachedPos\n var pos = ts.last(detachedCommentsInfo).detachedCommentEndPos;\n if (detachedCommentsInfo.length - 1) {\n detachedCommentsInfo.pop();\n }\n else {\n detachedCommentsInfo = undefined;\n }\n ts.forEachLeadingCommentRange(currentSourceFile.text, pos, cb, /*state*/ pos);\n }\n function emitDetachedCommentsAndUpdateCommentsInfo(range) {\n var currentDetachedCommentInfo = ts.emitDetachedComments(currentSourceFile.text, getCurrentLineMap(), writer, emitComment, range, newLine, commentsDisabled);\n if (currentDetachedCommentInfo) {\n if (detachedCommentsInfo) {\n detachedCommentsInfo.push(currentDetachedCommentInfo);\n }\n else {\n detachedCommentsInfo = [currentDetachedCommentInfo];\n }\n }\n }\n function emitComment(text, lineMap, writer, commentPos, commentEnd, newLine) {\n if (!shouldWriteComment(currentSourceFile.text, commentPos))\n return;\n emitPos(commentPos);\n ts.writeCommentRange(text, lineMap, writer, commentPos, commentEnd, newLine);\n emitPos(commentEnd);\n }\n /**\n * Determine if the given comment is a triple-slash\n *\n * @return true if the comment is a triple-slash comment else false\n */\n function isTripleSlashComment(commentPos, commentEnd) {\n return ts.isRecognizedTripleSlashComment(currentSourceFile.text, commentPos, commentEnd);\n }\n // Source Maps\n function getParsedSourceMap(node) {\n if (node.parsedSourceMap === undefined && node.sourceMapText !== undefined) {\n node.parsedSourceMap = ts.tryParseRawSourceMap(node.sourceMapText) || false;\n }\n return node.parsedSourceMap || undefined;\n }\n function pipelineEmitWithSourceMaps(hint, node) {\n var pipelinePhase = getNextPipelinePhase(3 /* SourceMaps */, hint, node);\n emitSourceMapsBeforeNode(node);\n pipelinePhase(hint, node);\n emitSourceMapsAfterNode(node);\n }\n function emitSourceMapsBeforeNode(node) {\n var emitFlags = ts.getEmitFlags(node);\n var sourceMapRange = ts.getSourceMapRange(node);\n // Emit leading sourcemap\n if (ts.isUnparsedNode(node)) {\n ts.Debug.assertIsDefined(node.parent, \"UnparsedNodes must have parent pointers\");\n var parsed = getParsedSourceMap(node.parent);\n if (parsed && sourceMapGenerator) {\n sourceMapGenerator.appendSourceMap(writer.getLine(), writer.getColumn(), parsed, node.parent.sourceMapPath, node.parent.getLineAndCharacterOfPosition(node.pos), node.parent.getLineAndCharacterOfPosition(node.end));\n }\n }\n else {\n var source = sourceMapRange.source || sourceMapSource;\n if (node.kind !== 344 /* NotEmittedStatement */\n && (emitFlags & 16 /* NoLeadingSourceMap */) === 0\n && sourceMapRange.pos >= 0) {\n emitSourcePos(sourceMapRange.source || sourceMapSource, skipSourceTrivia(source, sourceMapRange.pos));\n }\n if (emitFlags & 64 /* NoNestedSourceMaps */) {\n sourceMapsDisabled = true;\n }\n }\n }\n function emitSourceMapsAfterNode(node) {\n var emitFlags = ts.getEmitFlags(node);\n var sourceMapRange = ts.getSourceMapRange(node);\n // Emit trailing sourcemap\n if (!ts.isUnparsedNode(node)) {\n if (emitFlags & 64 /* NoNestedSourceMaps */) {\n sourceMapsDisabled = false;\n }\n if (node.kind !== 344 /* NotEmittedStatement */\n && (emitFlags & 32 /* NoTrailingSourceMap */) === 0\n && sourceMapRange.end >= 0) {\n emitSourcePos(sourceMapRange.source || sourceMapSource, sourceMapRange.end);\n }\n }\n }\n /**\n * Skips trivia such as comments and white-space that can be optionally overridden by the source-map source\n */\n function skipSourceTrivia(source, pos) {\n return source.skipTrivia ? source.skipTrivia(pos) : ts.skipTrivia(source.text, pos);\n }\n /**\n * Emits a mapping.\n *\n * If the position is synthetic (undefined or a negative value), no mapping will be\n * created.\n *\n * @param pos The position.\n */\n function emitPos(pos) {\n if (sourceMapsDisabled || ts.positionIsSynthesized(pos) || isJsonSourceMapSource(sourceMapSource)) {\n return;\n }\n var _a = ts.getLineAndCharacterOfPosition(sourceMapSource, pos), sourceLine = _a.line, sourceCharacter = _a.character;\n sourceMapGenerator.addMapping(writer.getLine(), writer.getColumn(), sourceMapSourceIndex, sourceLine, sourceCharacter, \n /*nameIndex*/ undefined);\n }\n function emitSourcePos(source, pos) {\n if (source !== sourceMapSource) {\n var savedSourceMapSource = sourceMapSource;\n var savedSourceMapSourceIndex = sourceMapSourceIndex;\n setSourceMapSource(source);\n emitPos(pos);\n resetSourceMapSource(savedSourceMapSource, savedSourceMapSourceIndex);\n }\n else {\n emitPos(pos);\n }\n }\n /**\n * Emits a token of a node with possible leading and trailing source maps.\n *\n * @param node The node containing the token.\n * @param token The token to emit.\n * @param tokenStartPos The start pos of the token.\n * @param emitCallback The callback used to emit the token.\n */\n function emitTokenWithSourceMap(node, token, writer, tokenPos, emitCallback) {\n if (sourceMapsDisabled || node && ts.isInJsonFile(node)) {\n return emitCallback(token, writer, tokenPos);\n }\n var emitNode = node && node.emitNode;\n var emitFlags = emitNode && emitNode.flags || 0 /* None */;\n var range = emitNode && emitNode.tokenSourceMapRanges && emitNode.tokenSourceMapRanges[token];\n var source = range && range.source || sourceMapSource;\n tokenPos = skipSourceTrivia(source, range ? range.pos : tokenPos);\n if ((emitFlags & 128 /* NoTokenLeadingSourceMaps */) === 0 && tokenPos >= 0) {\n emitSourcePos(source, tokenPos);\n }\n tokenPos = emitCallback(token, writer, tokenPos);\n if (range)\n tokenPos = range.end;\n if ((emitFlags & 256 /* NoTokenTrailingSourceMaps */) === 0 && tokenPos >= 0) {\n emitSourcePos(source, tokenPos);\n }\n return tokenPos;\n }\n function setSourceMapSource(source) {\n if (sourceMapsDisabled) {\n return;\n }\n sourceMapSource = source;\n if (source === mostRecentlyAddedSourceMapSource) {\n // Fast path for when the new source map is the most recently added, in which case\n // we use its captured index without going through the source map generator.\n sourceMapSourceIndex = mostRecentlyAddedSourceMapSourceIndex;\n return;\n }\n if (isJsonSourceMapSource(source)) {\n return;\n }\n sourceMapSourceIndex = sourceMapGenerator.addSource(source.fileName);\n if (printerOptions.inlineSources) {\n sourceMapGenerator.setSourceContent(sourceMapSourceIndex, source.text);\n }\n mostRecentlyAddedSourceMapSource = source;\n mostRecentlyAddedSourceMapSourceIndex = sourceMapSourceIndex;\n }\n function resetSourceMapSource(source, sourceIndex) {\n sourceMapSource = source;\n sourceMapSourceIndex = sourceIndex;\n }\n function isJsonSourceMapSource(sourceFile) {\n return ts.fileExtensionIs(sourceFile.fileName, \".json\" /* Json */);\n }\n }\n ts.createPrinter = createPrinter;\n function createBracketsMap() {\n var brackets = [];\n brackets[1024 /* Braces */] = [\"{\", \"}\"];\n brackets[2048 /* Parenthesis */] = [\"(\", \")\"];\n brackets[4096 /* AngleBrackets */] = [\"<\", \">\"];\n brackets[8192 /* SquareBrackets */] = [\"[\", \"]\"];\n return brackets;\n }\n function getOpeningBracket(format) {\n return brackets[format & 15360 /* BracketsMask */][0];\n }\n function getClosingBracket(format) {\n return brackets[format & 15360 /* BracketsMask */][1];\n }\n // Flags enum to track count of temp variables and a few dedicated names\n var TempFlags;\n (function (TempFlags) {\n TempFlags[TempFlags[\"Auto\"] = 0] = \"Auto\";\n TempFlags[TempFlags[\"CountMask\"] = 268435455] = \"CountMask\";\n TempFlags[TempFlags[\"_i\"] = 268435456] = \"_i\";\n })(TempFlags || (TempFlags = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames) {\n if (!host.getDirectories || !host.readDirectory) {\n return undefined;\n }\n var cachedReadDirectoryResult = new ts.Map();\n var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n return {\n useCaseSensitiveFileNames: useCaseSensitiveFileNames,\n fileExists: fileExists,\n readFile: function (path, encoding) { return host.readFile(path, encoding); },\n directoryExists: host.directoryExists && directoryExists,\n getDirectories: getDirectories,\n readDirectory: readDirectory,\n createDirectory: host.createDirectory && createDirectory,\n writeFile: host.writeFile && writeFile,\n addOrDeleteFileOrDirectory: addOrDeleteFileOrDirectory,\n addOrDeleteFile: addOrDeleteFile,\n clearCache: clearCache,\n realpath: host.realpath && realpath\n };\n function toPath(fileName) {\n return ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n }\n function getCachedFileSystemEntries(rootDirPath) {\n return cachedReadDirectoryResult.get(ts.ensureTrailingDirectorySeparator(rootDirPath));\n }\n function getCachedFileSystemEntriesForBaseDir(path) {\n return getCachedFileSystemEntries(ts.getDirectoryPath(path));\n }\n function getBaseNameOfFileName(fileName) {\n return ts.getBaseFileName(ts.normalizePath(fileName));\n }\n function createCachedFileSystemEntries(rootDir, rootDirPath) {\n var _a;\n if (!host.realpath || ts.ensureTrailingDirectorySeparator(toPath(host.realpath(rootDir))) === rootDirPath) {\n var resultFromHost = {\n files: ts.map(host.readDirectory(rootDir, /*extensions*/ undefined, /*exclude*/ undefined, /*include*/ [\"*.*\"]), getBaseNameOfFileName) || [],\n directories: host.getDirectories(rootDir) || []\n };\n cachedReadDirectoryResult.set(ts.ensureTrailingDirectorySeparator(rootDirPath), resultFromHost);\n return resultFromHost;\n }\n // If the directory is symlink do not cache the result\n if ((_a = host.directoryExists) === null || _a === void 0 ? void 0 : _a.call(host, rootDir)) {\n cachedReadDirectoryResult.set(rootDirPath, false);\n return false;\n }\n // Non existing directory\n return undefined;\n }\n /**\n * If the readDirectory result was already cached, it returns that\n * Otherwise gets result from host and caches it.\n * The host request is done under try catch block to avoid caching incorrect result\n */\n function tryReadDirectory(rootDir, rootDirPath) {\n rootDirPath = ts.ensureTrailingDirectorySeparator(rootDirPath);\n var cachedResult = getCachedFileSystemEntries(rootDirPath);\n if (cachedResult) {\n return cachedResult;\n }\n try {\n return createCachedFileSystemEntries(rootDir, rootDirPath);\n }\n catch (_e) {\n // If there is exception to read directories, dont cache the result and direct the calls to host\n ts.Debug.assert(!cachedReadDirectoryResult.has(ts.ensureTrailingDirectorySeparator(rootDirPath)));\n return undefined;\n }\n }\n function fileNameEqual(name1, name2) {\n return getCanonicalFileName(name1) === getCanonicalFileName(name2);\n }\n function hasEntry(entries, name) {\n return ts.some(entries, function (file) { return fileNameEqual(file, name); });\n }\n function updateFileSystemEntry(entries, baseName, isValid) {\n if (hasEntry(entries, baseName)) {\n if (!isValid) {\n return ts.filterMutate(entries, function (entry) { return !fileNameEqual(entry, baseName); });\n }\n }\n else if (isValid) {\n return entries.push(baseName);\n }\n }\n function writeFile(fileName, data, writeByteOrderMark) {\n var path = toPath(fileName);\n var result = getCachedFileSystemEntriesForBaseDir(path);\n if (result) {\n updateFilesOfFileSystemEntry(result, getBaseNameOfFileName(fileName), /*fileExists*/ true);\n }\n return host.writeFile(fileName, data, writeByteOrderMark);\n }\n function fileExists(fileName) {\n var path = toPath(fileName);\n var result = getCachedFileSystemEntriesForBaseDir(path);\n return result && hasEntry(result.files, getBaseNameOfFileName(fileName)) ||\n host.fileExists(fileName);\n }\n function directoryExists(dirPath) {\n var path = toPath(dirPath);\n return cachedReadDirectoryResult.has(ts.ensureTrailingDirectorySeparator(path)) || host.directoryExists(dirPath);\n }\n function createDirectory(dirPath) {\n var path = toPath(dirPath);\n var result = getCachedFileSystemEntriesForBaseDir(path);\n var baseFileName = getBaseNameOfFileName(dirPath);\n if (result) {\n updateFileSystemEntry(result.directories, baseFileName, /*isValid*/ true);\n }\n host.createDirectory(dirPath);\n }\n function getDirectories(rootDir) {\n var rootDirPath = toPath(rootDir);\n var result = tryReadDirectory(rootDir, rootDirPath);\n if (result) {\n return result.directories.slice();\n }\n return host.getDirectories(rootDir);\n }\n function readDirectory(rootDir, extensions, excludes, includes, depth) {\n var rootDirPath = toPath(rootDir);\n var rootResult = tryReadDirectory(rootDir, rootDirPath);\n var rootSymLinkResult;\n if (rootResult !== undefined) {\n return ts.matchFiles(rootDir, extensions, excludes, includes, useCaseSensitiveFileNames, currentDirectory, depth, getFileSystemEntries, realpath, directoryExists);\n }\n return host.readDirectory(rootDir, extensions, excludes, includes, depth);\n function getFileSystemEntries(dir) {\n var path = toPath(dir);\n if (path === rootDirPath) {\n return rootResult || getFileSystemEntriesFromHost(dir, path);\n }\n var result = tryReadDirectory(dir, path);\n return result !== undefined ?\n result || getFileSystemEntriesFromHost(dir, path) :\n ts.emptyFileSystemEntries;\n }\n function getFileSystemEntriesFromHost(dir, path) {\n if (rootSymLinkResult && path === rootDirPath)\n return rootSymLinkResult;\n var result = {\n files: ts.map(host.readDirectory(dir, /*extensions*/ undefined, /*exclude*/ undefined, /*include*/ [\"*.*\"]), getBaseNameOfFileName) || ts.emptyArray,\n directories: host.getDirectories(dir) || ts.emptyArray\n };\n if (path === rootDirPath)\n rootSymLinkResult = result;\n return result;\n }\n }\n function realpath(s) {\n return host.realpath ? host.realpath(s) : s;\n }\n function addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath) {\n var existingResult = getCachedFileSystemEntries(fileOrDirectoryPath);\n if (existingResult !== undefined) {\n // Just clear the cache for now\n // For now just clear the cache, since this could mean that multiple level entries might need to be re-evaluated\n clearCache();\n return undefined;\n }\n var parentResult = getCachedFileSystemEntriesForBaseDir(fileOrDirectoryPath);\n if (!parentResult) {\n return undefined;\n }\n // This was earlier a file (hence not in cached directory contents)\n // or we never cached the directory containing it\n if (!host.directoryExists) {\n // Since host doesnt support directory exists, clear the cache as otherwise it might not be same\n clearCache();\n return undefined;\n }\n var baseName = getBaseNameOfFileName(fileOrDirectory);\n var fsQueryResult = {\n fileExists: host.fileExists(fileOrDirectoryPath),\n directoryExists: host.directoryExists(fileOrDirectoryPath)\n };\n if (fsQueryResult.directoryExists || hasEntry(parentResult.directories, baseName)) {\n // Folder added or removed, clear the cache instead of updating the folder and its structure\n clearCache();\n }\n else {\n // No need to update the directory structure, just files\n updateFilesOfFileSystemEntry(parentResult, baseName, fsQueryResult.fileExists);\n }\n return fsQueryResult;\n }\n function addOrDeleteFile(fileName, filePath, eventKind) {\n if (eventKind === ts.FileWatcherEventKind.Changed) {\n return;\n }\n var parentResult = getCachedFileSystemEntriesForBaseDir(filePath);\n if (parentResult) {\n updateFilesOfFileSystemEntry(parentResult, getBaseNameOfFileName(fileName), eventKind === ts.FileWatcherEventKind.Created);\n }\n }\n function updateFilesOfFileSystemEntry(parentResult, baseName, fileExists) {\n updateFileSystemEntry(parentResult.files, baseName, fileExists);\n }\n function clearCache() {\n cachedReadDirectoryResult.clear();\n }\n }\n ts.createCachedDirectoryStructureHost = createCachedDirectoryStructureHost;\n var ConfigFileProgramReloadLevel;\n (function (ConfigFileProgramReloadLevel) {\n ConfigFileProgramReloadLevel[ConfigFileProgramReloadLevel[\"None\"] = 0] = \"None\";\n /** Update the file name list from the disk */\n ConfigFileProgramReloadLevel[ConfigFileProgramReloadLevel[\"Partial\"] = 1] = \"Partial\";\n /** Reload completely by re-reading contents of config file from disk and updating program */\n ConfigFileProgramReloadLevel[ConfigFileProgramReloadLevel[\"Full\"] = 2] = \"Full\";\n })(ConfigFileProgramReloadLevel = ts.ConfigFileProgramReloadLevel || (ts.ConfigFileProgramReloadLevel = {}));\n /**\n * Updates the map of shared extended config file watches with a new set of extended config files from a base config file of the project\n */\n function updateSharedExtendedConfigFileWatcher(projectPath, options, extendedConfigFilesMap, createExtendedConfigFileWatch, toPath) {\n var _a;\n var extendedConfigs = ts.arrayToMap(((_a = options === null || options === void 0 ? void 0 : options.configFile) === null || _a === void 0 ? void 0 : _a.extendedSourceFiles) || ts.emptyArray, toPath);\n // remove project from all unrelated watchers\n extendedConfigFilesMap.forEach(function (watcher, extendedConfigFilePath) {\n if (!extendedConfigs.has(extendedConfigFilePath)) {\n watcher.projects.delete(projectPath);\n watcher.close();\n }\n });\n // Update the extended config files watcher\n extendedConfigs.forEach(function (extendedConfigFileName, extendedConfigFilePath) {\n var existing = extendedConfigFilesMap.get(extendedConfigFilePath);\n if (existing) {\n existing.projects.add(projectPath);\n }\n else {\n // start watching previously unseen extended config\n extendedConfigFilesMap.set(extendedConfigFilePath, {\n projects: new ts.Set([projectPath]),\n watcher: createExtendedConfigFileWatch(extendedConfigFileName, extendedConfigFilePath),\n close: function () {\n var existing = extendedConfigFilesMap.get(extendedConfigFilePath);\n if (!existing || existing.projects.size !== 0)\n return;\n existing.watcher.close();\n extendedConfigFilesMap.delete(extendedConfigFilePath);\n },\n });\n }\n });\n }\n ts.updateSharedExtendedConfigFileWatcher = updateSharedExtendedConfigFileWatcher;\n /**\n * Remove the project from the extended config file watchers and close not needed watches\n */\n function clearSharedExtendedConfigFileWatcher(projectPath, extendedConfigFilesMap) {\n extendedConfigFilesMap.forEach(function (watcher) {\n if (watcher.projects.delete(projectPath))\n watcher.close();\n });\n }\n ts.clearSharedExtendedConfigFileWatcher = clearSharedExtendedConfigFileWatcher;\n /**\n * Clean the extendsConfigCache when extended config file has changed\n */\n function cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath) {\n if (!extendedConfigCache.delete(extendedConfigFilePath))\n return;\n extendedConfigCache.forEach(function (_a, key) {\n var _b;\n var extendedResult = _a.extendedResult;\n if ((_b = extendedResult.extendedSourceFiles) === null || _b === void 0 ? void 0 : _b.some(function (extendedFile) { return toPath(extendedFile) === extendedConfigFilePath; })) {\n cleanExtendedConfigCache(extendedConfigCache, key, toPath);\n }\n });\n }\n ts.cleanExtendedConfigCache = cleanExtendedConfigCache;\n /**\n * Updates watchers based on the package json files used in module resolution\n */\n function updatePackageJsonWatch(lookups, packageJsonWatches, createPackageJsonWatch) {\n var newMap = new ts.Map(lookups);\n ts.mutateMap(packageJsonWatches, newMap, {\n createNewValue: createPackageJsonWatch,\n onDeleteValue: ts.closeFileWatcher\n });\n }\n ts.updatePackageJsonWatch = updatePackageJsonWatch;\n /**\n * Updates the existing missing file watches with the new set of missing files after new program is created\n */\n function updateMissingFilePathsWatch(program, missingFileWatches, createMissingFileWatch) {\n var missingFilePaths = program.getMissingFilePaths();\n // TODO(rbuckton): Should be a `Set` but that requires changing the below code that uses `mutateMap`\n var newMissingFilePathMap = ts.arrayToMap(missingFilePaths, ts.identity, ts.returnTrue);\n // Update the missing file paths watcher\n ts.mutateMap(missingFileWatches, newMissingFilePathMap, {\n // Watch the missing files\n createNewValue: createMissingFileWatch,\n // Files that are no longer missing (e.g. because they are no longer required)\n // should no longer be watched.\n onDeleteValue: ts.closeFileWatcher\n });\n }\n ts.updateMissingFilePathsWatch = updateMissingFilePathsWatch;\n /**\n * Updates the existing wild card directory watches with the new set of wild card directories from the config file\n * after new program is created because the config file was reloaded or program was created first time from the config file\n * Note that there is no need to call this function when the program is updated with additional files without reloading config files,\n * as wildcard directories wont change unless reloading config file\n */\n function updateWatchingWildcardDirectories(existingWatchedForWildcards, wildcardDirectories, watchDirectory) {\n ts.mutateMap(existingWatchedForWildcards, wildcardDirectories, {\n // Create new watch and recursive info\n createNewValue: createWildcardDirectoryWatcher,\n // Close existing watch thats not needed any more\n onDeleteValue: closeFileWatcherOf,\n // Close existing watch that doesnt match in the flags\n onExistingValue: updateWildcardDirectoryWatcher\n });\n function createWildcardDirectoryWatcher(directory, flags) {\n // Create new watch and recursive info\n return {\n watcher: watchDirectory(directory, flags),\n flags: flags\n };\n }\n function updateWildcardDirectoryWatcher(existingWatcher, flags, directory) {\n // Watcher needs to be updated if the recursive flags dont match\n if (existingWatcher.flags === flags) {\n return;\n }\n existingWatcher.watcher.close();\n existingWatchedForWildcards.set(directory, createWildcardDirectoryWatcher(directory, flags));\n }\n }\n ts.updateWatchingWildcardDirectories = updateWatchingWildcardDirectories;\n /* @internal */\n function isIgnoredFileFromWildCardWatching(_a) {\n var watchedDirPath = _a.watchedDirPath, fileOrDirectory = _a.fileOrDirectory, fileOrDirectoryPath = _a.fileOrDirectoryPath, configFileName = _a.configFileName, options = _a.options, program = _a.program, extraFileExtensions = _a.extraFileExtensions, currentDirectory = _a.currentDirectory, useCaseSensitiveFileNames = _a.useCaseSensitiveFileNames, writeLog = _a.writeLog, toPath = _a.toPath;\n var newPath = ts.removeIgnoredPath(fileOrDirectoryPath);\n if (!newPath) {\n writeLog(\"Project: \" + configFileName + \" Detected ignored path: \" + fileOrDirectory);\n return true;\n }\n fileOrDirectoryPath = newPath;\n if (fileOrDirectoryPath === watchedDirPath)\n return false;\n // If the the added or created file or directory is not supported file name, ignore the file\n // But when watched directory is added/removed, we need to reload the file list\n if (ts.hasExtension(fileOrDirectoryPath) && !ts.isSupportedSourceFileName(fileOrDirectory, options, extraFileExtensions)) {\n writeLog(\"Project: \" + configFileName + \" Detected file add/remove of non supported extension: \" + fileOrDirectory);\n return true;\n }\n if (ts.isExcludedFile(fileOrDirectory, options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), useCaseSensitiveFileNames, currentDirectory)) {\n writeLog(\"Project: \" + configFileName + \" Detected excluded file: \" + fileOrDirectory);\n return true;\n }\n if (!program)\n return false;\n // We want to ignore emit file check if file is not going to be emitted next to source file\n // In that case we follow config file inclusion rules\n if (ts.outFile(options) || options.outDir)\n return false;\n // File if emitted next to input needs to be ignored\n if (ts.fileExtensionIs(fileOrDirectoryPath, \".d.ts\" /* Dts */)) {\n // If its declaration directory: its not ignored if not excluded by config\n if (options.declarationDir)\n return false;\n }\n else if (!ts.fileExtensionIsOneOf(fileOrDirectoryPath, ts.supportedJSExtensions)) {\n return false;\n }\n // just check if sourceFile with the name exists\n var filePathWithoutExtension = ts.removeFileExtension(fileOrDirectoryPath);\n var realProgram = ts.isArray(program) ? undefined : isBuilderProgram(program) ? program.getProgramOrUndefined() : program;\n var builderProgram = !realProgram && !ts.isArray(program) ? program : undefined;\n if (hasSourceFile((filePathWithoutExtension + \".ts\" /* Ts */)) ||\n hasSourceFile((filePathWithoutExtension + \".tsx\" /* Tsx */))) {\n writeLog(\"Project: \" + configFileName + \" Detected output file: \" + fileOrDirectory);\n return true;\n }\n return false;\n function hasSourceFile(file) {\n return realProgram ?\n !!realProgram.getSourceFileByPath(file) :\n builderProgram ?\n builderProgram.getState().fileInfos.has(file) :\n !!ts.find(program, function (rootFile) { return toPath(rootFile) === file; });\n }\n }\n ts.isIgnoredFileFromWildCardWatching = isIgnoredFileFromWildCardWatching;\n function isBuilderProgram(program) {\n return !!program.getState;\n }\n function isEmittedFileOfProgram(program, file) {\n if (!program) {\n return false;\n }\n return program.isEmittedFile(file);\n }\n ts.isEmittedFileOfProgram = isEmittedFileOfProgram;\n var WatchLogLevel;\n (function (WatchLogLevel) {\n WatchLogLevel[WatchLogLevel[\"None\"] = 0] = \"None\";\n WatchLogLevel[WatchLogLevel[\"TriggerOnly\"] = 1] = \"TriggerOnly\";\n WatchLogLevel[WatchLogLevel[\"Verbose\"] = 2] = \"Verbose\";\n })(WatchLogLevel = ts.WatchLogLevel || (ts.WatchLogLevel = {}));\n function getWatchFactory(host, watchLogLevel, log, getDetailWatchInfo) {\n ts.setSysLog(watchLogLevel === WatchLogLevel.Verbose ? log : ts.noop);\n var plainInvokeFactory = {\n watchFile: function (file, callback, pollingInterval, options) { return host.watchFile(file, callback, pollingInterval, options); },\n watchDirectory: function (directory, callback, flags, options) { return host.watchDirectory(directory, callback, (flags & 1 /* Recursive */) !== 0, options); },\n };\n var triggerInvokingFactory = watchLogLevel !== WatchLogLevel.None ?\n {\n watchFile: createTriggerLoggingAddWatch(\"watchFile\"),\n watchDirectory: createTriggerLoggingAddWatch(\"watchDirectory\")\n } :\n undefined;\n var factory = watchLogLevel === WatchLogLevel.Verbose ?\n {\n watchFile: createFileWatcherWithLogging,\n watchDirectory: createDirectoryWatcherWithLogging\n } :\n triggerInvokingFactory || plainInvokeFactory;\n var excludeWatcherFactory = watchLogLevel === WatchLogLevel.Verbose ?\n createExcludeWatcherWithLogging :\n ts.returnNoopFileWatcher;\n return {\n watchFile: createExcludeHandlingAddWatch(\"watchFile\"),\n watchDirectory: createExcludeHandlingAddWatch(\"watchDirectory\")\n };\n function createExcludeHandlingAddWatch(key) {\n return function (file, cb, flags, options, detailInfo1, detailInfo2) {\n var _a;\n return !ts.matchesExclude(file, key === \"watchFile\" ? options === null || options === void 0 ? void 0 : options.excludeFiles : options === null || options === void 0 ? void 0 : options.excludeDirectories, useCaseSensitiveFileNames(), ((_a = host.getCurrentDirectory) === null || _a === void 0 ? void 0 : _a.call(host)) || \"\") ?\n factory[key].call(/*thisArgs*/ undefined, file, cb, flags, options, detailInfo1, detailInfo2) :\n excludeWatcherFactory(file, flags, options, detailInfo1, detailInfo2);\n };\n }\n function useCaseSensitiveFileNames() {\n return typeof host.useCaseSensitiveFileNames === \"boolean\" ?\n host.useCaseSensitiveFileNames :\n host.useCaseSensitiveFileNames();\n }\n function createExcludeWatcherWithLogging(file, flags, options, detailInfo1, detailInfo2) {\n log(\"ExcludeWatcher:: Added:: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));\n return {\n close: function () { return log(\"ExcludeWatcher:: Close:: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo)); }\n };\n }\n function createFileWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {\n log(\"FileWatcher:: Added:: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));\n var watcher = triggerInvokingFactory.watchFile(file, cb, flags, options, detailInfo1, detailInfo2);\n return {\n close: function () {\n log(\"FileWatcher:: Close:: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo));\n watcher.close();\n }\n };\n }\n function createDirectoryWatcherWithLogging(file, cb, flags, options, detailInfo1, detailInfo2) {\n var watchInfo = \"DirectoryWatcher:: Added:: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);\n log(watchInfo);\n var start = ts.timestamp();\n var watcher = triggerInvokingFactory.watchDirectory(file, cb, flags, options, detailInfo1, detailInfo2);\n var elapsed = ts.timestamp() - start;\n log(\"Elapsed:: \" + elapsed + \"ms \" + watchInfo);\n return {\n close: function () {\n var watchInfo = \"DirectoryWatcher:: Close:: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);\n log(watchInfo);\n var start = ts.timestamp();\n watcher.close();\n var elapsed = ts.timestamp() - start;\n log(\"Elapsed:: \" + elapsed + \"ms \" + watchInfo);\n }\n };\n }\n function createTriggerLoggingAddWatch(key) {\n return function (file, cb, flags, options, detailInfo1, detailInfo2) { return plainInvokeFactory[key].call(/*thisArgs*/ undefined, file, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var triggerredInfo = (key === \"watchFile\" ? \"FileWatcher\" : \"DirectoryWatcher\") + \":: Triggered with \" + args[0] + \" \" + (args[1] !== undefined ? args[1] : \"\") + \":: \" + getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo);\n log(triggerredInfo);\n var start = ts.timestamp();\n cb.call.apply(cb, __spreadArray([/*thisArg*/ undefined], args, false));\n var elapsed = ts.timestamp() - start;\n log(\"Elapsed:: \" + elapsed + \"ms \" + triggerredInfo);\n }, flags, options, detailInfo1, detailInfo2); };\n }\n function getWatchInfo(file, flags, options, detailInfo1, detailInfo2, getDetailWatchInfo) {\n return \"WatchInfo: \" + file + \" \" + flags + \" \" + JSON.stringify(options) + \" \" + (getDetailWatchInfo ? getDetailWatchInfo(detailInfo1, detailInfo2) : detailInfo2 === undefined ? detailInfo1 : detailInfo1 + \" \" + detailInfo2);\n }\n }\n ts.getWatchFactory = getWatchFactory;\n function getFallbackOptions(options) {\n var fallbackPolling = options === null || options === void 0 ? void 0 : options.fallbackPolling;\n return {\n watchFile: fallbackPolling !== undefined ?\n fallbackPolling :\n ts.WatchFileKind.PriorityPollingInterval\n };\n }\n ts.getFallbackOptions = getFallbackOptions;\n function closeFileWatcherOf(objWithWatcher) {\n objWithWatcher.watcher.close();\n }\n ts.closeFileWatcherOf = closeFileWatcherOf;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function findConfigFile(searchPath, fileExists, configName) {\n if (configName === void 0) { configName = \"tsconfig.json\"; }\n return ts.forEachAncestorDirectory(searchPath, function (ancestor) {\n var fileName = ts.combinePaths(ancestor, configName);\n return fileExists(fileName) ? fileName : undefined;\n });\n }\n ts.findConfigFile = findConfigFile;\n function resolveTripleslashReference(moduleName, containingFile) {\n var basePath = ts.getDirectoryPath(containingFile);\n var referencedFileName = ts.isRootedDiskPath(moduleName) ? moduleName : ts.combinePaths(basePath, moduleName);\n return ts.normalizePath(referencedFileName);\n }\n ts.resolveTripleslashReference = resolveTripleslashReference;\n /* @internal */\n function computeCommonSourceDirectoryOfFilenames(fileNames, currentDirectory, getCanonicalFileName) {\n var commonPathComponents;\n var failed = ts.forEach(fileNames, function (sourceFile) {\n // Each file contributes into common source file path\n var sourcePathComponents = ts.getNormalizedPathComponents(sourceFile, currentDirectory);\n sourcePathComponents.pop(); // The base file name is not part of the common directory path\n if (!commonPathComponents) {\n // first file\n commonPathComponents = sourcePathComponents;\n return;\n }\n var n = Math.min(commonPathComponents.length, sourcePathComponents.length);\n for (var i = 0; i < n; i++) {\n if (getCanonicalFileName(commonPathComponents[i]) !== getCanonicalFileName(sourcePathComponents[i])) {\n if (i === 0) {\n // Failed to find any common path component\n return true;\n }\n // New common path found that is 0 -> i-1\n commonPathComponents.length = i;\n break;\n }\n }\n // If the sourcePathComponents was shorter than the commonPathComponents, truncate to the sourcePathComponents\n if (sourcePathComponents.length < commonPathComponents.length) {\n commonPathComponents.length = sourcePathComponents.length;\n }\n });\n // A common path can not be found when paths span multiple drives on windows, for example\n if (failed) {\n return \"\";\n }\n if (!commonPathComponents) { // Can happen when all input files are .d.ts files\n return currentDirectory;\n }\n return ts.getPathFromPathComponents(commonPathComponents);\n }\n ts.computeCommonSourceDirectoryOfFilenames = computeCommonSourceDirectoryOfFilenames;\n function createCompilerHost(options, setParentNodes) {\n return createCompilerHostWorker(options, setParentNodes);\n }\n ts.createCompilerHost = createCompilerHost;\n /*@internal*/\n // TODO(shkamat): update this after reworking ts build API\n function createCompilerHostWorker(options, setParentNodes, system) {\n if (system === void 0) { system = ts.sys; }\n var existingDirectories = new ts.Map();\n var getCanonicalFileName = ts.createGetCanonicalFileName(system.useCaseSensitiveFileNames);\n var computeHash = ts.maybeBind(system, system.createHash) || ts.generateDjb2Hash;\n function getSourceFile(fileName, languageVersion, onError) {\n var text;\n try {\n ts.performance.mark(\"beforeIORead\");\n text = compilerHost.readFile(fileName);\n ts.performance.mark(\"afterIORead\");\n ts.performance.measure(\"I/O Read\", \"beforeIORead\", \"afterIORead\");\n }\n catch (e) {\n if (onError) {\n onError(e.message);\n }\n text = \"\";\n }\n return text !== undefined ? ts.createSourceFile(fileName, text, languageVersion, setParentNodes) : undefined;\n }\n function directoryExists(directoryPath) {\n if (existingDirectories.has(directoryPath)) {\n return true;\n }\n if ((compilerHost.directoryExists || system.directoryExists)(directoryPath)) {\n existingDirectories.set(directoryPath, true);\n return true;\n }\n return false;\n }\n function writeFile(fileName, data, writeByteOrderMark, onError) {\n try {\n ts.performance.mark(\"beforeIOWrite\");\n // NOTE: If patchWriteFileEnsuringDirectory has been called,\n // the system.writeFile will do its own directory creation and\n // the ensureDirectoriesExist call will always be redundant.\n ts.writeFileEnsuringDirectories(fileName, data, writeByteOrderMark, function (path, data, writeByteOrderMark) { return writeFileWorker(path, data, writeByteOrderMark); }, function (path) { return (compilerHost.createDirectory || system.createDirectory)(path); }, function (path) { return directoryExists(path); });\n ts.performance.mark(\"afterIOWrite\");\n ts.performance.measure(\"I/O Write\", \"beforeIOWrite\", \"afterIOWrite\");\n }\n catch (e) {\n if (onError) {\n onError(e.message);\n }\n }\n }\n var outputFingerprints;\n function writeFileWorker(fileName, data, writeByteOrderMark) {\n if (!ts.isWatchSet(options) || !system.getModifiedTime) {\n system.writeFile(fileName, data, writeByteOrderMark);\n return;\n }\n if (!outputFingerprints) {\n outputFingerprints = new ts.Map();\n }\n var hash = computeHash(data);\n var mtimeBefore = system.getModifiedTime(fileName);\n if (mtimeBefore) {\n var fingerprint = outputFingerprints.get(fileName);\n // If output has not been changed, and the file has no external modification\n if (fingerprint &&\n fingerprint.byteOrderMark === writeByteOrderMark &&\n fingerprint.hash === hash &&\n fingerprint.mtime.getTime() === mtimeBefore.getTime()) {\n return;\n }\n }\n system.writeFile(fileName, data, writeByteOrderMark);\n var mtimeAfter = system.getModifiedTime(fileName) || ts.missingFileModifiedTime;\n outputFingerprints.set(fileName, {\n hash: hash,\n byteOrderMark: writeByteOrderMark,\n mtime: mtimeAfter\n });\n }\n function getDefaultLibLocation() {\n return ts.getDirectoryPath(ts.normalizePath(system.getExecutingFilePath()));\n }\n var newLine = ts.getNewLineCharacter(options, function () { return system.newLine; });\n var realpath = system.realpath && (function (path) { return system.realpath(path); });\n var compilerHost = {\n getSourceFile: getSourceFile,\n getDefaultLibLocation: getDefaultLibLocation,\n getDefaultLibFileName: function (options) { return ts.combinePaths(getDefaultLibLocation(), ts.getDefaultLibFileName(options)); },\n writeFile: writeFile,\n getCurrentDirectory: ts.memoize(function () { return system.getCurrentDirectory(); }),\n useCaseSensitiveFileNames: function () { return system.useCaseSensitiveFileNames; },\n getCanonicalFileName: getCanonicalFileName,\n getNewLine: function () { return newLine; },\n fileExists: function (fileName) { return system.fileExists(fileName); },\n readFile: function (fileName) { return system.readFile(fileName); },\n trace: function (s) { return system.write(s + newLine); },\n directoryExists: function (directoryName) { return system.directoryExists(directoryName); },\n getEnvironmentVariable: function (name) { return system.getEnvironmentVariable ? system.getEnvironmentVariable(name) : \"\"; },\n getDirectories: function (path) { return system.getDirectories(path); },\n realpath: realpath,\n readDirectory: function (path, extensions, include, exclude, depth) { return system.readDirectory(path, extensions, include, exclude, depth); },\n createDirectory: function (d) { return system.createDirectory(d); },\n createHash: ts.maybeBind(system, system.createHash)\n };\n return compilerHost;\n }\n ts.createCompilerHostWorker = createCompilerHostWorker;\n /*@internal*/\n function changeCompilerHostLikeToUseCache(host, toPath, getSourceFile) {\n var originalReadFile = host.readFile;\n var originalFileExists = host.fileExists;\n var originalDirectoryExists = host.directoryExists;\n var originalCreateDirectory = host.createDirectory;\n var originalWriteFile = host.writeFile;\n var readFileCache = new ts.Map();\n var fileExistsCache = new ts.Map();\n var directoryExistsCache = new ts.Map();\n var sourceFileCache = new ts.Map();\n var readFileWithCache = function (fileName) {\n var key = toPath(fileName);\n var value = readFileCache.get(key);\n if (value !== undefined)\n return value !== false ? value : undefined;\n return setReadFileCache(key, fileName);\n };\n var setReadFileCache = function (key, fileName) {\n var newValue = originalReadFile.call(host, fileName);\n readFileCache.set(key, newValue !== undefined ? newValue : false);\n return newValue;\n };\n host.readFile = function (fileName) {\n var key = toPath(fileName);\n var value = readFileCache.get(key);\n if (value !== undefined)\n return value !== false ? value : undefined; // could be .d.ts from output\n // Cache json or buildInfo\n if (!ts.fileExtensionIs(fileName, \".json\" /* Json */) && !ts.isBuildInfoFile(fileName)) {\n return originalReadFile.call(host, fileName);\n }\n return setReadFileCache(key, fileName);\n };\n var getSourceFileWithCache = getSourceFile ? function (fileName, languageVersion, onError, shouldCreateNewSourceFile) {\n var key = toPath(fileName);\n var value = sourceFileCache.get(key);\n if (value)\n return value;\n var sourceFile = getSourceFile(fileName, languageVersion, onError, shouldCreateNewSourceFile);\n if (sourceFile && (ts.isDeclarationFileName(fileName) || ts.fileExtensionIs(fileName, \".json\" /* Json */))) {\n sourceFileCache.set(key, sourceFile);\n }\n return sourceFile;\n } : undefined;\n // fileExists for any kind of extension\n host.fileExists = function (fileName) {\n var key = toPath(fileName);\n var value = fileExistsCache.get(key);\n if (value !== undefined)\n return value;\n var newValue = originalFileExists.call(host, fileName);\n fileExistsCache.set(key, !!newValue);\n return newValue;\n };\n if (originalWriteFile) {\n host.writeFile = function (fileName, data, writeByteOrderMark, onError, sourceFiles) {\n var key = toPath(fileName);\n fileExistsCache.delete(key);\n var value = readFileCache.get(key);\n if (value !== undefined && value !== data) {\n readFileCache.delete(key);\n sourceFileCache.delete(key);\n }\n else if (getSourceFileWithCache) {\n var sourceFile = sourceFileCache.get(key);\n if (sourceFile && sourceFile.text !== data) {\n sourceFileCache.delete(key);\n }\n }\n originalWriteFile.call(host, fileName, data, writeByteOrderMark, onError, sourceFiles);\n };\n }\n // directoryExists\n if (originalDirectoryExists && originalCreateDirectory) {\n host.directoryExists = function (directory) {\n var key = toPath(directory);\n var value = directoryExistsCache.get(key);\n if (value !== undefined)\n return value;\n var newValue = originalDirectoryExists.call(host, directory);\n directoryExistsCache.set(key, !!newValue);\n return newValue;\n };\n host.createDirectory = function (directory) {\n var key = toPath(directory);\n directoryExistsCache.delete(key);\n originalCreateDirectory.call(host, directory);\n };\n }\n return {\n originalReadFile: originalReadFile,\n originalFileExists: originalFileExists,\n originalDirectoryExists: originalDirectoryExists,\n originalCreateDirectory: originalCreateDirectory,\n originalWriteFile: originalWriteFile,\n getSourceFileWithCache: getSourceFileWithCache,\n readFileWithCache: readFileWithCache\n };\n }\n ts.changeCompilerHostLikeToUseCache = changeCompilerHostLikeToUseCache;\n function getPreEmitDiagnostics(program, sourceFile, cancellationToken) {\n var diagnostics;\n diagnostics = ts.addRange(diagnostics, program.getConfigFileParsingDiagnostics());\n diagnostics = ts.addRange(diagnostics, program.getOptionsDiagnostics(cancellationToken));\n diagnostics = ts.addRange(diagnostics, program.getSyntacticDiagnostics(sourceFile, cancellationToken));\n diagnostics = ts.addRange(diagnostics, program.getGlobalDiagnostics(cancellationToken));\n diagnostics = ts.addRange(diagnostics, program.getSemanticDiagnostics(sourceFile, cancellationToken));\n if (ts.getEmitDeclarations(program.getCompilerOptions())) {\n diagnostics = ts.addRange(diagnostics, program.getDeclarationDiagnostics(sourceFile, cancellationToken));\n }\n return ts.sortAndDeduplicateDiagnostics(diagnostics || ts.emptyArray);\n }\n ts.getPreEmitDiagnostics = getPreEmitDiagnostics;\n function formatDiagnostics(diagnostics, host) {\n var output = \"\";\n for (var _i = 0, diagnostics_3 = diagnostics; _i < diagnostics_3.length; _i++) {\n var diagnostic = diagnostics_3[_i];\n output += formatDiagnostic(diagnostic, host);\n }\n return output;\n }\n ts.formatDiagnostics = formatDiagnostics;\n function formatDiagnostic(diagnostic, host) {\n var errorMessage = ts.diagnosticCategoryName(diagnostic) + \" TS\" + diagnostic.code + \": \" + flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine()) + host.getNewLine();\n if (diagnostic.file) {\n var _a = ts.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start), line = _a.line, character = _a.character; // TODO: GH#18217\n var fileName = diagnostic.file.fileName;\n var relativeFileName = ts.convertToRelativePath(fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); });\n return relativeFileName + \"(\" + (line + 1) + \",\" + (character + 1) + \"): \" + errorMessage;\n }\n return errorMessage;\n }\n ts.formatDiagnostic = formatDiagnostic;\n /** @internal */\n var ForegroundColorEscapeSequences;\n (function (ForegroundColorEscapeSequences) {\n ForegroundColorEscapeSequences[\"Grey\"] = \"\\u001B[90m\";\n ForegroundColorEscapeSequences[\"Red\"] = \"\\u001B[91m\";\n ForegroundColorEscapeSequences[\"Yellow\"] = \"\\u001B[93m\";\n ForegroundColorEscapeSequences[\"Blue\"] = \"\\u001B[94m\";\n ForegroundColorEscapeSequences[\"Cyan\"] = \"\\u001B[96m\";\n })(ForegroundColorEscapeSequences = ts.ForegroundColorEscapeSequences || (ts.ForegroundColorEscapeSequences = {}));\n var gutterStyleSequence = \"\\u001b[7m\";\n var gutterSeparator = \" \";\n var resetEscapeSequence = \"\\u001b[0m\";\n var ellipsis = \"...\";\n var halfIndent = \" \";\n var indent = \" \";\n function getCategoryFormat(category) {\n switch (category) {\n case ts.DiagnosticCategory.Error: return ForegroundColorEscapeSequences.Red;\n case ts.DiagnosticCategory.Warning: return ForegroundColorEscapeSequences.Yellow;\n case ts.DiagnosticCategory.Suggestion: return ts.Debug.fail(\"Should never get an Info diagnostic on the command line.\");\n case ts.DiagnosticCategory.Message: return ForegroundColorEscapeSequences.Blue;\n }\n }\n /** @internal */\n function formatColorAndReset(text, formatStyle) {\n return formatStyle + text + resetEscapeSequence;\n }\n ts.formatColorAndReset = formatColorAndReset;\n function formatCodeSpan(file, start, length, indent, squiggleColor, host) {\n var _a = ts.getLineAndCharacterOfPosition(file, start), firstLine = _a.line, firstLineChar = _a.character;\n var _b = ts.getLineAndCharacterOfPosition(file, start + length), lastLine = _b.line, lastLineChar = _b.character;\n var lastLineInFile = ts.getLineAndCharacterOfPosition(file, file.text.length).line;\n var hasMoreThanFiveLines = (lastLine - firstLine) >= 4;\n var gutterWidth = (lastLine + 1 + \"\").length;\n if (hasMoreThanFiveLines) {\n gutterWidth = Math.max(ellipsis.length, gutterWidth);\n }\n var context = \"\";\n for (var i = firstLine; i <= lastLine; i++) {\n context += host.getNewLine();\n // If the error spans over 5 lines, we'll only show the first 2 and last 2 lines,\n // so we'll skip ahead to the second-to-last line.\n if (hasMoreThanFiveLines && firstLine + 1 < i && i < lastLine - 1) {\n context += indent + formatColorAndReset(ts.padLeft(ellipsis, gutterWidth), gutterStyleSequence) + gutterSeparator + host.getNewLine();\n i = lastLine - 1;\n }\n var lineStart = ts.getPositionOfLineAndCharacter(file, i, 0);\n var lineEnd = i < lastLineInFile ? ts.getPositionOfLineAndCharacter(file, i + 1, 0) : file.text.length;\n var lineContent = file.text.slice(lineStart, lineEnd);\n lineContent = ts.trimStringEnd(lineContent); // trim from end\n lineContent = lineContent.replace(/\\t/g, \" \"); // convert tabs to single spaces\n // Output the gutter and the actual contents of the line.\n context += indent + formatColorAndReset(ts.padLeft(i + 1 + \"\", gutterWidth), gutterStyleSequence) + gutterSeparator;\n context += lineContent + host.getNewLine();\n // Output the gutter and the error span for the line using tildes.\n context += indent + formatColorAndReset(ts.padLeft(\"\", gutterWidth), gutterStyleSequence) + gutterSeparator;\n context += squiggleColor;\n if (i === firstLine) {\n // If we're on the last line, then limit it to the last character of the last line.\n // Otherwise, we'll just squiggle the rest of the line, giving 'slice' no end position.\n var lastCharForLine = i === lastLine ? lastLineChar : undefined;\n context += lineContent.slice(0, firstLineChar).replace(/\\S/g, \" \");\n context += lineContent.slice(firstLineChar, lastCharForLine).replace(/./g, \"~\");\n }\n else if (i === lastLine) {\n context += lineContent.slice(0, lastLineChar).replace(/./g, \"~\");\n }\n else {\n // Squiggle the entire line.\n context += lineContent.replace(/./g, \"~\");\n }\n context += resetEscapeSequence;\n }\n return context;\n }\n /* @internal */\n function formatLocation(file, start, host, color) {\n if (color === void 0) { color = formatColorAndReset; }\n var _a = ts.getLineAndCharacterOfPosition(file, start), firstLine = _a.line, firstLineChar = _a.character; // TODO: GH#18217\n var relativeFileName = host ? ts.convertToRelativePath(file.fileName, host.getCurrentDirectory(), function (fileName) { return host.getCanonicalFileName(fileName); }) : file.fileName;\n var output = \"\";\n output += color(relativeFileName, ForegroundColorEscapeSequences.Cyan);\n output += \":\";\n output += color(\"\" + (firstLine + 1), ForegroundColorEscapeSequences.Yellow);\n output += \":\";\n output += color(\"\" + (firstLineChar + 1), ForegroundColorEscapeSequences.Yellow);\n return output;\n }\n ts.formatLocation = formatLocation;\n function formatDiagnosticsWithColorAndContext(diagnostics, host) {\n var output = \"\";\n for (var _i = 0, diagnostics_4 = diagnostics; _i < diagnostics_4.length; _i++) {\n var diagnostic = diagnostics_4[_i];\n if (diagnostic.file) {\n var file = diagnostic.file, start = diagnostic.start;\n output += formatLocation(file, start, host); // TODO: GH#18217\n output += \" - \";\n }\n output += formatColorAndReset(ts.diagnosticCategoryName(diagnostic), getCategoryFormat(diagnostic.category));\n output += formatColorAndReset(\" TS\" + diagnostic.code + \": \", ForegroundColorEscapeSequences.Grey);\n output += flattenDiagnosticMessageText(diagnostic.messageText, host.getNewLine());\n if (diagnostic.file) {\n output += host.getNewLine();\n output += formatCodeSpan(diagnostic.file, diagnostic.start, diagnostic.length, \"\", getCategoryFormat(diagnostic.category), host); // TODO: GH#18217\n }\n if (diagnostic.relatedInformation) {\n output += host.getNewLine();\n for (var _a = 0, _b = diagnostic.relatedInformation; _a < _b.length; _a++) {\n var _c = _b[_a], file = _c.file, start = _c.start, length_9 = _c.length, messageText = _c.messageText;\n if (file) {\n output += host.getNewLine();\n output += halfIndent + formatLocation(file, start, host); // TODO: GH#18217\n output += formatCodeSpan(file, start, length_9, indent, ForegroundColorEscapeSequences.Cyan, host); // TODO: GH#18217\n }\n output += host.getNewLine();\n output += indent + flattenDiagnosticMessageText(messageText, host.getNewLine());\n }\n }\n output += host.getNewLine();\n }\n return output;\n }\n ts.formatDiagnosticsWithColorAndContext = formatDiagnosticsWithColorAndContext;\n function flattenDiagnosticMessageText(diag, newLine, indent) {\n if (indent === void 0) { indent = 0; }\n if (ts.isString(diag)) {\n return diag;\n }\n else if (diag === undefined) {\n return \"\";\n }\n var result = \"\";\n if (indent) {\n result += newLine;\n for (var i = 0; i < indent; i++) {\n result += \" \";\n }\n }\n result += diag.messageText;\n indent++;\n if (diag.next) {\n for (var _i = 0, _a = diag.next; _i < _a.length; _i++) {\n var kid = _a[_i];\n result += flattenDiagnosticMessageText(kid, newLine, indent);\n }\n }\n return result;\n }\n ts.flattenDiagnosticMessageText = flattenDiagnosticMessageText;\n /* @internal */\n function loadWithLocalCache(names, containingFile, redirectedReference, loader) {\n if (names.length === 0) {\n return [];\n }\n var resolutions = [];\n var cache = new ts.Map();\n for (var _i = 0, names_2 = names; _i < names_2.length; _i++) {\n var name = names_2[_i];\n var result = void 0;\n if (cache.has(name)) {\n result = cache.get(name);\n }\n else {\n cache.set(name, result = loader(name, containingFile, redirectedReference));\n }\n resolutions.push(result);\n }\n return resolutions;\n }\n ts.loadWithLocalCache = loadWithLocalCache;\n /* @internal */\n function forEachResolvedProjectReference(resolvedProjectReferences, cb) {\n return forEachProjectReference(/*projectReferences*/ undefined, resolvedProjectReferences, function (resolvedRef, parent) { return resolvedRef && cb(resolvedRef, parent); });\n }\n ts.forEachResolvedProjectReference = forEachResolvedProjectReference;\n function forEachProjectReference(projectReferences, resolvedProjectReferences, cbResolvedRef, cbRef) {\n var seenResolvedRefs;\n return worker(projectReferences, resolvedProjectReferences, /*parent*/ undefined);\n function worker(projectReferences, resolvedProjectReferences, parent) {\n // Visit project references first\n if (cbRef) {\n var result = cbRef(projectReferences, parent);\n if (result) {\n return result;\n }\n }\n return ts.forEach(resolvedProjectReferences, function (resolvedRef, index) {\n if (resolvedRef && (seenResolvedRefs === null || seenResolvedRefs === void 0 ? void 0 : seenResolvedRefs.has(resolvedRef.sourceFile.path))) {\n // ignore recursives\n return undefined;\n }\n var result = cbResolvedRef(resolvedRef, parent, index);\n if (result || !resolvedRef)\n return result;\n (seenResolvedRefs || (seenResolvedRefs = new ts.Set())).add(resolvedRef.sourceFile.path);\n return worker(resolvedRef.commandLine.projectReferences, resolvedRef.references, resolvedRef);\n });\n }\n }\n /* @internal */\n ts.inferredTypesContainingFile = \"__inferred type names__.ts\";\n /*@internal*/\n function isReferencedFile(reason) {\n switch (reason === null || reason === void 0 ? void 0 : reason.kind) {\n case ts.FileIncludeKind.Import:\n case ts.FileIncludeKind.ReferenceFile:\n case ts.FileIncludeKind.TypeReferenceDirective:\n case ts.FileIncludeKind.LibReferenceDirective:\n return true;\n default:\n return false;\n }\n }\n ts.isReferencedFile = isReferencedFile;\n /*@internal*/\n function isReferenceFileLocation(location) {\n return location.pos !== undefined;\n }\n ts.isReferenceFileLocation = isReferenceFileLocation;\n /*@internal*/\n function getReferencedFileLocation(getSourceFileByPath, ref) {\n var _a, _b, _c;\n var _d, _e, _f, _g;\n var file = ts.Debug.checkDefined(getSourceFileByPath(ref.file));\n var kind = ref.kind, index = ref.index;\n var pos, end, packageId;\n switch (kind) {\n case ts.FileIncludeKind.Import:\n var importLiteral = getModuleNameStringLiteralAt(file, index);\n packageId = (_e = (_d = file.resolvedModules) === null || _d === void 0 ? void 0 : _d.get(importLiteral.text)) === null || _e === void 0 ? void 0 : _e.packageId;\n if (importLiteral.pos === -1)\n return { file: file, packageId: packageId, text: importLiteral.text };\n pos = ts.skipTrivia(file.text, importLiteral.pos);\n end = importLiteral.end;\n break;\n case ts.FileIncludeKind.ReferenceFile:\n (_a = file.referencedFiles[index], pos = _a.pos, end = _a.end);\n break;\n case ts.FileIncludeKind.TypeReferenceDirective:\n (_b = file.typeReferenceDirectives[index], pos = _b.pos, end = _b.end);\n packageId = (_g = (_f = file.resolvedTypeReferenceDirectiveNames) === null || _f === void 0 ? void 0 : _f.get(ts.toFileNameLowerCase(file.typeReferenceDirectives[index].fileName))) === null || _g === void 0 ? void 0 : _g.packageId;\n break;\n case ts.FileIncludeKind.LibReferenceDirective:\n (_c = file.libReferenceDirectives[index], pos = _c.pos, end = _c.end);\n break;\n default:\n return ts.Debug.assertNever(kind);\n }\n return { file: file, pos: pos, end: end, packageId: packageId };\n }\n ts.getReferencedFileLocation = getReferencedFileLocation;\n /**\n * Determines if program structure is upto date or needs to be recreated\n */\n /* @internal */\n function isProgramUptoDate(program, rootFileNames, newOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences) {\n // If we haven't created a program yet or have changed automatic type directives, then it is not up-to-date\n if (!program || (hasChangedAutomaticTypeDirectiveNames === null || hasChangedAutomaticTypeDirectiveNames === void 0 ? void 0 : hasChangedAutomaticTypeDirectiveNames()))\n return false;\n // If root file names don't match\n if (!ts.arrayIsEqualTo(program.getRootFileNames(), rootFileNames))\n return false;\n var seenResolvedRefs;\n // If project references don't match\n if (!ts.arrayIsEqualTo(program.getProjectReferences(), projectReferences, projectReferenceUptoDate))\n return false;\n // If any file is not up-to-date, then the whole program is not up-to-date\n if (program.getSourceFiles().some(sourceFileNotUptoDate))\n return false;\n // If any of the missing file paths are now created\n if (program.getMissingFilePaths().some(fileExists))\n return false;\n var currentOptions = program.getCompilerOptions();\n // If the compilation settings do no match, then the program is not up-to-date\n if (!ts.compareDataObjects(currentOptions, newOptions))\n return false;\n // If everything matches but the text of config file is changed,\n // error locations can change for program options, so update the program\n if (currentOptions.configFile && newOptions.configFile)\n return currentOptions.configFile.text === newOptions.configFile.text;\n return true;\n function sourceFileNotUptoDate(sourceFile) {\n return !sourceFileVersionUptoDate(sourceFile) ||\n hasInvalidatedResolution(sourceFile.path);\n }\n function sourceFileVersionUptoDate(sourceFile) {\n return sourceFile.version === getSourceVersion(sourceFile.resolvedPath, sourceFile.fileName);\n }\n function projectReferenceUptoDate(oldRef, newRef, index) {\n return ts.projectReferenceIsEqualTo(oldRef, newRef) &&\n resolvedProjectReferenceUptoDate(program.getResolvedProjectReferences()[index], oldRef);\n }\n function resolvedProjectReferenceUptoDate(oldResolvedRef, oldRef) {\n if (oldResolvedRef) {\n // Assume true\n if (ts.contains(seenResolvedRefs, oldResolvedRef))\n return true;\n var refPath_1 = resolveProjectReferencePath(oldRef);\n var newParsedCommandLine = getParsedCommandLine(refPath_1);\n // Check if config file exists\n if (!newParsedCommandLine)\n return false;\n // If change in source file\n if (oldResolvedRef.commandLine.options.configFile !== newParsedCommandLine.options.configFile)\n return false;\n // check file names\n if (!ts.arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newParsedCommandLine.fileNames))\n return false;\n // Add to seen before checking the referenced paths of this config file\n (seenResolvedRefs || (seenResolvedRefs = [])).push(oldResolvedRef);\n // If child project references are upto date, this project reference is uptodate\n return !ts.forEach(oldResolvedRef.references, function (childResolvedRef, index) {\n return !resolvedProjectReferenceUptoDate(childResolvedRef, oldResolvedRef.commandLine.projectReferences[index]);\n });\n }\n // In old program, not able to resolve project reference path,\n // so if config file doesnt exist, it is uptodate.\n var refPath = resolveProjectReferencePath(oldRef);\n return !getParsedCommandLine(refPath);\n }\n }\n ts.isProgramUptoDate = isProgramUptoDate;\n function getConfigFileParsingDiagnostics(configFileParseResult) {\n return configFileParseResult.options.configFile ? __spreadArray(__spreadArray([], configFileParseResult.options.configFile.parseDiagnostics, true), configFileParseResult.errors, true) :\n configFileParseResult.errors;\n }\n ts.getConfigFileParsingDiagnostics = getConfigFileParsingDiagnostics;\n /**\n * Determine if source file needs to be re-created even if its text hasn't changed\n */\n function shouldProgramCreateNewSourceFiles(program, newOptions) {\n if (!program)\n return false;\n // If any compiler options change, we can't reuse old source file even if version match\n // The change in options like these could result in change in syntax tree or `sourceFile.bindDiagnostics`.\n return ts.optionsHaveChanges(program.getCompilerOptions(), newOptions, ts.sourceFileAffectingCompilerOptions);\n }\n function createCreateProgramOptions(rootNames, options, host, oldProgram, configFileParsingDiagnostics) {\n return {\n rootNames: rootNames,\n options: options,\n host: host,\n oldProgram: oldProgram,\n configFileParsingDiagnostics: configFileParsingDiagnostics\n };\n }\n function createProgram(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) {\n var _a, _b, _c;\n var createProgramOptions = ts.isArray(rootNamesOrOptions) ? createCreateProgramOptions(rootNamesOrOptions, _options, _host, _oldProgram, _configFileParsingDiagnostics) : rootNamesOrOptions; // TODO: GH#18217\n var rootNames = createProgramOptions.rootNames, options = createProgramOptions.options, configFileParsingDiagnostics = createProgramOptions.configFileParsingDiagnostics, projectReferences = createProgramOptions.projectReferences;\n var oldProgram = createProgramOptions.oldProgram;\n var processingDefaultLibFiles;\n var processingOtherFiles;\n var files;\n var symlinks;\n var commonSourceDirectory;\n var diagnosticsProducingTypeChecker;\n var noDiagnosticsTypeChecker;\n var classifiableNames;\n var ambientModuleNameToUnmodifiedFileName = new ts.Map();\n var fileReasons = ts.createMultiMap();\n var cachedBindAndCheckDiagnosticsForFile = {};\n var cachedDeclarationDiagnosticsForFile = {};\n var resolvedTypeReferenceDirectives = new ts.Map();\n var fileProcessingDiagnostics;\n // The below settings are to track if a .js file should be add to the program if loaded via searching under node_modules.\n // This works as imported modules are discovered recursively in a depth first manner, specifically:\n // - For each root file, findSourceFile is called.\n // - This calls processImportedModules for each module imported in the source file.\n // - This calls resolveModuleNames, and then calls findSourceFile for each resolved module.\n // As all these operations happen - and are nested - within the createProgram call, they close over the below variables.\n // The current resolution depth is tracked by incrementing/decrementing as the depth first search progresses.\n var maxNodeModuleJsDepth = typeof options.maxNodeModuleJsDepth === \"number\" ? options.maxNodeModuleJsDepth : 0;\n var currentNodeModulesDepth = 0;\n // If a module has some of its imports skipped due to being at the depth limit under node_modules, then track\n // this, as it may be imported at a shallower depth later, and then it will need its skipped imports processed.\n var modulesWithElidedImports = new ts.Map();\n // Track source files that are source files found by searching under node_modules, as these shouldn't be compiled.\n var sourceFilesFoundSearchingNodeModules = new ts.Map();\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"createProgram\", { configFilePath: options.configFilePath, rootDir: options.rootDir }, /*separateBeginAndEnd*/ true);\n ts.performance.mark(\"beforeProgram\");\n var host = createProgramOptions.host || createCompilerHost(options);\n var configParsingHost = parseConfigHostFromCompilerHostLike(host);\n var skipDefaultLib = options.noLib;\n var getDefaultLibraryFileName = ts.memoize(function () { return host.getDefaultLibFileName(options); });\n var defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : ts.getDirectoryPath(getDefaultLibraryFileName());\n var programDiagnostics = ts.createDiagnosticCollection();\n var currentDirectory = host.getCurrentDirectory();\n var supportedExtensions = ts.getSupportedExtensions(options);\n var supportedExtensionsWithJsonIfResolveJsonModule = ts.getSuppoertedExtensionsWithJsonIfResolveJsonModule(options, supportedExtensions);\n // Map storing if there is emit blocking diagnostics for given input\n var hasEmitBlockingDiagnostics = new ts.Map();\n var _compilerOptionsObjectLiteralSyntax;\n var moduleResolutionCache;\n var typeReferenceDirectiveResolutionCache;\n var actualResolveModuleNamesWorker;\n var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;\n if (host.resolveModuleNames) {\n actualResolveModuleNamesWorker = function (moduleNames, containingFile, reusedNames, redirectedReference) { return host.resolveModuleNames(ts.Debug.checkEachDefined(moduleNames), containingFile, reusedNames, redirectedReference, options).map(function (resolved) {\n // An older host may have omitted extension, in which case we should infer it from the file extension of resolvedFileName.\n if (!resolved || resolved.extension !== undefined) {\n return resolved;\n }\n var withExtension = ts.clone(resolved);\n withExtension.extension = ts.extensionFromPath(resolved.resolvedFileName);\n return withExtension;\n }); };\n }\n else {\n moduleResolutionCache = ts.createModuleResolutionCache(currentDirectory, getCanonicalFileName, options);\n var loader_1 = function (moduleName, containingFile, redirectedReference) { return ts.resolveModuleName(moduleName, containingFile, options, host, moduleResolutionCache, redirectedReference).resolvedModule; }; // TODO: GH#18217\n actualResolveModuleNamesWorker = function (moduleNames, containingFile, _reusedNames, redirectedReference) { return loadWithLocalCache(ts.Debug.checkEachDefined(moduleNames), containingFile, redirectedReference, loader_1); };\n }\n var actualResolveTypeReferenceDirectiveNamesWorker;\n if (host.resolveTypeReferenceDirectives) {\n actualResolveTypeReferenceDirectiveNamesWorker = function (typeDirectiveNames, containingFile, redirectedReference) { return host.resolveTypeReferenceDirectives(ts.Debug.checkEachDefined(typeDirectiveNames), containingFile, redirectedReference, options); };\n }\n else {\n typeReferenceDirectiveResolutionCache = ts.createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache === null || moduleResolutionCache === void 0 ? void 0 : moduleResolutionCache.getPackageJsonInfoCache());\n var loader_2 = function (typesRef, containingFile, redirectedReference) { return ts.resolveTypeReferenceDirective(typesRef, containingFile, options, host, redirectedReference, typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective; }; // TODO: GH#18217\n actualResolveTypeReferenceDirectiveNamesWorker = function (typeReferenceDirectiveNames, containingFile, redirectedReference) { return loadWithLocalCache(ts.Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, loader_2); };\n }\n // Map from a stringified PackageId to the source file with that id.\n // Only one source file may have a given packageId. Others become redirects (see createRedirectSourceFile).\n // `packageIdToSourceFile` is only used while building the program, while `sourceFileToPackageName` and `isSourceFileTargetOfRedirect` are kept around.\n var packageIdToSourceFile = new ts.Map();\n // Maps from a SourceFile's `.path` to the name of the package it was imported with.\n var sourceFileToPackageName = new ts.Map();\n // Key is a file name. Value is the (non-empty, or undefined) list of files that redirect to it.\n var redirectTargetsMap = ts.createMultiMap();\n var usesUriStyleNodeCoreModules = false;\n /**\n * map with\n * - SourceFile if present\n * - false if sourceFile missing for source of project reference redirect\n * - undefined otherwise\n */\n var filesByName = new ts.Map();\n var missingFilePaths;\n // stores 'filename -> file association' ignoring case\n // used to track cases when two file names differ only in casing\n var filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? new ts.Map() : undefined;\n // A parallel array to projectReferences storing the results of reading in the referenced tsconfig files\n var resolvedProjectReferences;\n var projectReferenceRedirects;\n var mapFromFileToProjectReferenceRedirects;\n var mapFromToProjectReferenceRedirectSource;\n var useSourceOfProjectReferenceRedirect = !!((_a = host.useSourceOfProjectReferenceRedirect) === null || _a === void 0 ? void 0 : _a.call(host)) &&\n !options.disableSourceOfProjectReferenceRedirect;\n var _d = updateHostForUseSourceOfProjectReferenceRedirect({\n compilerHost: host,\n getSymlinkCache: getSymlinkCache,\n useSourceOfProjectReferenceRedirect: useSourceOfProjectReferenceRedirect,\n toPath: toPath,\n getResolvedProjectReferences: getResolvedProjectReferences,\n getSourceOfProjectReferenceRedirect: getSourceOfProjectReferenceRedirect,\n forEachResolvedProjectReference: forEachResolvedProjectReference\n }), onProgramCreateComplete = _d.onProgramCreateComplete, fileExists = _d.fileExists, directoryExists = _d.directoryExists;\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"shouldProgramCreateNewSourceFiles\", { hasOldProgram: !!oldProgram });\n var shouldCreateNewSourceFile = shouldProgramCreateNewSourceFiles(oldProgram, options);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n // We set `structuralIsReused` to `undefined` because `tryReuseStructureFromOldProgram` calls `tryReuseStructureFromOldProgram` which checks\n // `structuralIsReused`, which would be a TDZ violation if it was not set in advance to `undefined`.\n var structureIsReused;\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"tryReuseStructureFromOldProgram\", {});\n structureIsReused = tryReuseStructureFromOldProgram(); // eslint-disable-line prefer-const\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n if (structureIsReused !== 2 /* Completely */) {\n processingDefaultLibFiles = [];\n processingOtherFiles = [];\n if (projectReferences) {\n if (!resolvedProjectReferences) {\n resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile);\n }\n if (rootNames.length) {\n resolvedProjectReferences === null || resolvedProjectReferences === void 0 ? void 0 : resolvedProjectReferences.forEach(function (parsedRef, index) {\n if (!parsedRef)\n return;\n var out = ts.outFile(parsedRef.commandLine.options);\n if (useSourceOfProjectReferenceRedirect) {\n if (out || ts.getEmitModuleKind(parsedRef.commandLine.options) === ts.ModuleKind.None) {\n for (var _i = 0, _a = parsedRef.commandLine.fileNames; _i < _a.length; _i++) {\n var fileName = _a[_i];\n processProjectReferenceFile(fileName, { kind: ts.FileIncludeKind.SourceFromProjectReference, index: index });\n }\n }\n }\n else {\n if (out) {\n processProjectReferenceFile(ts.changeExtension(out, \".d.ts\"), { kind: ts.FileIncludeKind.OutputFromProjectReference, index: index });\n }\n else if (ts.getEmitModuleKind(parsedRef.commandLine.options) === ts.ModuleKind.None) {\n var getCommonSourceDirectory_2 = ts.memoize(function () { return ts.getCommonSourceDirectoryOfConfig(parsedRef.commandLine, !host.useCaseSensitiveFileNames()); });\n for (var _b = 0, _c = parsedRef.commandLine.fileNames; _b < _c.length; _b++) {\n var fileName = _c[_b];\n if (!ts.fileExtensionIs(fileName, \".d.ts\" /* Dts */) && !ts.fileExtensionIs(fileName, \".json\" /* Json */)) {\n processProjectReferenceFile(ts.getOutputDeclarationFileName(fileName, parsedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory_2), { kind: ts.FileIncludeKind.OutputFromProjectReference, index: index });\n }\n }\n }\n }\n });\n }\n }\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"processRootFiles\", { count: rootNames.length });\n ts.forEach(rootNames, function (name, index) { return processRootFile(name, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, { kind: ts.FileIncludeKind.RootFile, index: index }); });\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n // load type declarations specified via 'types' argument or implicitly from types/ and node_modules/@types folders\n var typeReferences = rootNames.length ? ts.getAutomaticTypeDirectiveNames(options, host) : ts.emptyArray;\n if (typeReferences.length) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"processTypeReferences\", { count: typeReferences.length });\n // This containingFilename needs to match with the one used in managed-side\n var containingDirectory = options.configFilePath ? ts.getDirectoryPath(options.configFilePath) : host.getCurrentDirectory();\n var containingFilename = ts.combinePaths(containingDirectory, ts.inferredTypesContainingFile);\n var resolutions = resolveTypeReferenceDirectiveNamesWorker(typeReferences, containingFilename);\n for (var i = 0; i < typeReferences.length; i++) {\n processTypeReferenceDirective(typeReferences[i], resolutions[i], { kind: ts.FileIncludeKind.AutomaticTypeDirectiveFile, typeReference: typeReferences[i], packageId: (_b = resolutions[i]) === null || _b === void 0 ? void 0 : _b.packageId });\n }\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n // Do not process the default library if:\n // - The '--noLib' flag is used.\n // - A 'no-default-lib' reference comment is encountered in\n // processing the root files.\n if (rootNames.length && !skipDefaultLib) {\n // If '--lib' is not specified, include default library file according to '--target'\n // otherwise, using options specified in '--lib' instead of '--target' default library file\n var defaultLibraryFileName = getDefaultLibraryFileName();\n if (!options.lib && defaultLibraryFileName) {\n processRootFile(defaultLibraryFileName, /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ false, { kind: ts.FileIncludeKind.LibFile });\n }\n else {\n ts.forEach(options.lib, function (libFileName, index) {\n processRootFile(ts.combinePaths(defaultLibraryPath, libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ false, { kind: ts.FileIncludeKind.LibFile, index: index });\n });\n }\n }\n missingFilePaths = ts.arrayFrom(ts.mapDefinedIterator(filesByName.entries(), function (_a) {\n var path = _a[0], file = _a[1];\n return file === undefined ? path : undefined;\n }));\n files = ts.stableSort(processingDefaultLibFiles, compareDefaultLibFiles).concat(processingOtherFiles);\n processingDefaultLibFiles = undefined;\n processingOtherFiles = undefined;\n }\n ts.Debug.assert(!!missingFilePaths);\n // Release any files we have acquired in the old program but are\n // not part of the new program.\n if (oldProgram && host.onReleaseOldSourceFile) {\n var oldSourceFiles = oldProgram.getSourceFiles();\n for (var _i = 0, oldSourceFiles_1 = oldSourceFiles; _i < oldSourceFiles_1.length; _i++) {\n var oldSourceFile = oldSourceFiles_1[_i];\n var newFile = getSourceFileByPath(oldSourceFile.resolvedPath);\n if (shouldCreateNewSourceFile || !newFile ||\n // old file wasn't redirect but new file is\n (oldSourceFile.resolvedPath === oldSourceFile.path && newFile.resolvedPath !== oldSourceFile.path)) {\n host.onReleaseOldSourceFile(oldSourceFile, oldProgram.getCompilerOptions(), !!getSourceFileByPath(oldSourceFile.path));\n }\n }\n if (!host.getParsedCommandLine) {\n oldProgram.forEachResolvedProjectReference(function (resolvedProjectReference) {\n if (!getResolvedProjectReferenceByPath(resolvedProjectReference.sourceFile.path)) {\n host.onReleaseOldSourceFile(resolvedProjectReference.sourceFile, oldProgram.getCompilerOptions(), /*hasSourceFileByPath*/ false);\n }\n });\n }\n }\n // Release commandlines that new program does not use\n if (oldProgram && host.onReleaseParsedCommandLine) {\n forEachProjectReference(oldProgram.getProjectReferences(), oldProgram.getResolvedProjectReferences(), function (oldResolvedRef, parent, index) {\n var oldReference = (parent === null || parent === void 0 ? void 0 : parent.commandLine.projectReferences[index]) || oldProgram.getProjectReferences()[index];\n var oldRefPath = resolveProjectReferencePath(oldReference);\n if (!(projectReferenceRedirects === null || projectReferenceRedirects === void 0 ? void 0 : projectReferenceRedirects.has(toPath(oldRefPath)))) {\n host.onReleaseParsedCommandLine(oldRefPath, oldResolvedRef, oldProgram.getCompilerOptions());\n }\n });\n }\n typeReferenceDirectiveResolutionCache = undefined;\n // unconditionally set oldProgram to undefined to prevent it from being captured in closure\n oldProgram = undefined;\n var program = {\n getRootFileNames: function () { return rootNames; },\n getSourceFile: getSourceFile,\n getSourceFileByPath: getSourceFileByPath,\n getSourceFiles: function () { return files; },\n getMissingFilePaths: function () { return missingFilePaths; },\n getModuleResolutionCache: function () { return moduleResolutionCache; },\n getFilesByNameMap: function () { return filesByName; },\n getCompilerOptions: function () { return options; },\n getSyntacticDiagnostics: getSyntacticDiagnostics,\n getOptionsDiagnostics: getOptionsDiagnostics,\n getGlobalDiagnostics: getGlobalDiagnostics,\n getSemanticDiagnostics: getSemanticDiagnostics,\n getCachedSemanticDiagnostics: getCachedSemanticDiagnostics,\n getSuggestionDiagnostics: getSuggestionDiagnostics,\n getDeclarationDiagnostics: getDeclarationDiagnostics,\n getBindAndCheckDiagnostics: getBindAndCheckDiagnostics,\n getProgramDiagnostics: getProgramDiagnostics,\n getTypeChecker: getTypeChecker,\n getClassifiableNames: getClassifiableNames,\n getDiagnosticsProducingTypeChecker: getDiagnosticsProducingTypeChecker,\n getCommonSourceDirectory: getCommonSourceDirectory,\n emit: emit,\n getCurrentDirectory: function () { return currentDirectory; },\n getNodeCount: function () { return getDiagnosticsProducingTypeChecker().getNodeCount(); },\n getIdentifierCount: function () { return getDiagnosticsProducingTypeChecker().getIdentifierCount(); },\n getSymbolCount: function () { return getDiagnosticsProducingTypeChecker().getSymbolCount(); },\n getTypeCount: function () { return getDiagnosticsProducingTypeChecker().getTypeCount(); },\n getInstantiationCount: function () { return getDiagnosticsProducingTypeChecker().getInstantiationCount(); },\n getRelationCacheSizes: function () { return getDiagnosticsProducingTypeChecker().getRelationCacheSizes(); },\n getFileProcessingDiagnostics: function () { return fileProcessingDiagnostics; },\n getResolvedTypeReferenceDirectives: function () { return resolvedTypeReferenceDirectives; },\n isSourceFileFromExternalLibrary: isSourceFileFromExternalLibrary,\n isSourceFileDefaultLibrary: isSourceFileDefaultLibrary,\n dropDiagnosticsProducingTypeChecker: dropDiagnosticsProducingTypeChecker,\n getSourceFileFromReference: getSourceFileFromReference,\n getLibFileFromReference: getLibFileFromReference,\n sourceFileToPackageName: sourceFileToPackageName,\n redirectTargetsMap: redirectTargetsMap,\n usesUriStyleNodeCoreModules: usesUriStyleNodeCoreModules,\n isEmittedFile: isEmittedFile,\n getConfigFileParsingDiagnostics: getConfigFileParsingDiagnostics,\n getResolvedModuleWithFailedLookupLocationsFromCache: getResolvedModuleWithFailedLookupLocationsFromCache,\n getProjectReferences: getProjectReferences,\n getResolvedProjectReferences: getResolvedProjectReferences,\n getProjectReferenceRedirect: getProjectReferenceRedirect,\n getResolvedProjectReferenceToRedirect: getResolvedProjectReferenceToRedirect,\n getResolvedProjectReferenceByPath: getResolvedProjectReferenceByPath,\n forEachResolvedProjectReference: forEachResolvedProjectReference,\n isSourceOfProjectReferenceRedirect: isSourceOfProjectReferenceRedirect,\n emitBuildInfo: emitBuildInfo,\n fileExists: fileExists,\n directoryExists: directoryExists,\n getSymlinkCache: getSymlinkCache,\n realpath: (_c = host.realpath) === null || _c === void 0 ? void 0 : _c.bind(host),\n useCaseSensitiveFileNames: function () { return host.useCaseSensitiveFileNames(); },\n getFileIncludeReasons: function () { return fileReasons; },\n structureIsReused: structureIsReused,\n };\n onProgramCreateComplete();\n // Add file processingDiagnostics\n fileProcessingDiagnostics === null || fileProcessingDiagnostics === void 0 ? void 0 : fileProcessingDiagnostics.forEach(function (diagnostic) {\n switch (diagnostic.kind) {\n case 1 /* FilePreprocessingFileExplainingDiagnostic */:\n return programDiagnostics.add(createDiagnosticExplainingFile(diagnostic.file && getSourceFileByPath(diagnostic.file), diagnostic.fileProcessingReason, diagnostic.diagnostic, diagnostic.args || ts.emptyArray));\n case 0 /* FilePreprocessingReferencedDiagnostic */:\n var _a = getReferencedFileLocation(getSourceFileByPath, diagnostic.reason), file = _a.file, pos = _a.pos, end = _a.end;\n return programDiagnostics.add(ts.createFileDiagnostic.apply(void 0, __spreadArray([file, ts.Debug.checkDefined(pos), ts.Debug.checkDefined(end) - pos, diagnostic.diagnostic], diagnostic.args || ts.emptyArray, false)));\n default:\n ts.Debug.assertNever(diagnostic);\n }\n });\n verifyCompilerOptions();\n ts.performance.mark(\"afterProgram\");\n ts.performance.measure(\"Program\", \"beforeProgram\", \"afterProgram\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return program;\n function resolveModuleNamesWorker(moduleNames, containingFile, reusedNames) {\n if (!moduleNames.length)\n return ts.emptyArray;\n var containingFileName = ts.getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory);\n var redirectedReference = getRedirectReferenceForResolution(containingFile);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"resolveModuleNamesWorker\", { containingFileName: containingFileName });\n ts.performance.mark(\"beforeResolveModule\");\n var result = actualResolveModuleNamesWorker(moduleNames, containingFileName, reusedNames, redirectedReference);\n ts.performance.mark(\"afterResolveModule\");\n ts.performance.measure(\"ResolveModule\", \"beforeResolveModule\", \"afterResolveModule\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return result;\n }\n function resolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFile) {\n if (!typeDirectiveNames.length)\n return [];\n var containingFileName = !ts.isString(containingFile) ? ts.getNormalizedAbsolutePath(containingFile.originalFileName, currentDirectory) : containingFile;\n var redirectedReference = !ts.isString(containingFile) ? getRedirectReferenceForResolution(containingFile) : undefined;\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"resolveTypeReferenceDirectiveNamesWorker\", { containingFileName: containingFileName });\n ts.performance.mark(\"beforeResolveTypeReference\");\n var result = actualResolveTypeReferenceDirectiveNamesWorker(typeDirectiveNames, containingFileName, redirectedReference);\n ts.performance.mark(\"afterResolveTypeReference\");\n ts.performance.measure(\"ResolveTypeReference\", \"beforeResolveTypeReference\", \"afterResolveTypeReference\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return result;\n }\n function getRedirectReferenceForResolution(file) {\n var redirect = getResolvedProjectReferenceToRedirect(file.originalFileName);\n if (redirect || !ts.fileExtensionIs(file.originalFileName, \".d.ts\" /* Dts */))\n return redirect;\n // The originalFileName could not be actual source file name if file found was d.ts from referecned project\n // So in this case try to look up if this is output from referenced project, if it is use the redirected project in that case\n var resultFromDts = getRedirectReferenceForResolutionFromSourceOfProject(file.originalFileName, file.path);\n if (resultFromDts)\n return resultFromDts;\n // If preserveSymlinks is true, module resolution wont jump the symlink\n // but the resolved real path may be the .d.ts from project reference\n // Note:: Currently we try the real path only if the\n // file is from node_modules to avoid having to run real path on all file paths\n if (!host.realpath || !options.preserveSymlinks || !ts.stringContains(file.originalFileName, ts.nodeModulesPathPart))\n return undefined;\n var realDeclarationFileName = host.realpath(file.originalFileName);\n var realDeclarationPath = toPath(realDeclarationFileName);\n return realDeclarationPath === file.path ? undefined : getRedirectReferenceForResolutionFromSourceOfProject(realDeclarationFileName, realDeclarationPath);\n }\n function getRedirectReferenceForResolutionFromSourceOfProject(fileName, filePath) {\n var source = getSourceOfProjectReferenceRedirect(fileName);\n if (ts.isString(source))\n return getResolvedProjectReferenceToRedirect(source);\n if (!source)\n return undefined;\n // Output of .d.ts file so return resolved ref that matches the out file name\n return forEachResolvedProjectReference(function (resolvedRef) {\n var out = ts.outFile(resolvedRef.commandLine.options);\n if (!out)\n return undefined;\n return toPath(out) === filePath ? resolvedRef : undefined;\n });\n }\n function compareDefaultLibFiles(a, b) {\n return ts.compareValues(getDefaultLibFilePriority(a), getDefaultLibFilePriority(b));\n }\n function getDefaultLibFilePriority(a) {\n if (ts.containsPath(defaultLibraryPath, a.fileName, /*ignoreCase*/ false)) {\n var basename = ts.getBaseFileName(a.fileName);\n if (basename === \"lib.d.ts\" || basename === \"lib.es6.d.ts\")\n return 0;\n var name = ts.removeSuffix(ts.removePrefix(basename, \"lib.\"), \".d.ts\");\n var index = ts.libs.indexOf(name);\n if (index !== -1)\n return index + 1;\n }\n return ts.libs.length + 2;\n }\n function getResolvedModuleWithFailedLookupLocationsFromCache(moduleName, containingFile) {\n return moduleResolutionCache && ts.resolveModuleNameFromCache(moduleName, containingFile, moduleResolutionCache);\n }\n function toPath(fileName) {\n return ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n }\n function getCommonSourceDirectory() {\n if (commonSourceDirectory === undefined) {\n var emittedFiles_1 = ts.filter(files, function (file) { return ts.sourceFileMayBeEmitted(file, program); });\n commonSourceDirectory = ts.getCommonSourceDirectory(options, function () { return ts.mapDefined(emittedFiles_1, function (file) { return file.isDeclarationFile ? undefined : file.fileName; }); }, currentDirectory, getCanonicalFileName, function (commonSourceDirectory) { return checkSourceFilesBelongToPath(emittedFiles_1, commonSourceDirectory); });\n }\n return commonSourceDirectory;\n }\n function getClassifiableNames() {\n var _a;\n if (!classifiableNames) {\n // Initialize a checker so that all our files are bound.\n getTypeChecker();\n classifiableNames = new ts.Set();\n for (var _i = 0, files_3 = files; _i < files_3.length; _i++) {\n var sourceFile = files_3[_i];\n (_a = sourceFile.classifiableNames) === null || _a === void 0 ? void 0 : _a.forEach(function (value) { return classifiableNames.add(value); });\n }\n }\n return classifiableNames;\n }\n function resolveModuleNamesReusingOldState(moduleNames, file) {\n if (structureIsReused === 0 /* Not */ && !file.ambientModuleNames.length) {\n // If the old program state does not permit reusing resolutions and `file` does not contain locally defined ambient modules,\n // the best we can do is fallback to the default logic.\n return resolveModuleNamesWorker(moduleNames, file, /*reusedNames*/ undefined);\n }\n var oldSourceFile = oldProgram && oldProgram.getSourceFile(file.fileName);\n if (oldSourceFile !== file && file.resolvedModules) {\n // `file` was created for the new program.\n //\n // We only set `file.resolvedModules` via work from the current function,\n // so it is defined iff we already called the current function on `file`.\n // That call happened no later than the creation of the `file` object,\n // which per above occurred during the current program creation.\n // Since we assume the filesystem does not change during program creation,\n // it is safe to reuse resolutions from the earlier call.\n var result_14 = [];\n for (var _i = 0, moduleNames_1 = moduleNames; _i < moduleNames_1.length; _i++) {\n var moduleName = moduleNames_1[_i];\n var resolvedModule = file.resolvedModules.get(moduleName);\n result_14.push(resolvedModule);\n }\n return result_14;\n }\n // At this point, we know at least one of the following hold:\n // - file has local declarations for ambient modules\n // - old program state is available\n // With this information, we can infer some module resolutions without performing resolution.\n /** An ordered list of module names for which we cannot recover the resolution. */\n var unknownModuleNames;\n /**\n * The indexing of elements in this list matches that of `moduleNames`.\n *\n * Before combining results, result[i] is in one of the following states:\n * * undefined: needs to be recomputed,\n * * predictedToResolveToAmbientModuleMarker: known to be an ambient module.\n * Needs to be reset to undefined before returning,\n * * ResolvedModuleFull instance: can be reused.\n */\n var result;\n var reusedNames;\n /** A transient placeholder used to mark predicted resolution in the result list. */\n var predictedToResolveToAmbientModuleMarker = {};\n for (var i = 0; i < moduleNames.length; i++) {\n var moduleName = moduleNames[i];\n // If the source file is unchanged and doesnt have invalidated resolution, reuse the module resolutions\n if (file === oldSourceFile && !hasInvalidatedResolution(oldSourceFile.path)) {\n var oldResolvedModule = ts.getResolvedModule(oldSourceFile, moduleName);\n if (oldResolvedModule) {\n if (ts.isTraceEnabled(options, host)) {\n ts.trace(host, oldResolvedModule.packageId ?\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 :\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2, moduleName, ts.getNormalizedAbsolutePath(file.originalFileName, currentDirectory), oldResolvedModule.resolvedFileName, oldResolvedModule.packageId && ts.packageIdToString(oldResolvedModule.packageId));\n }\n (result || (result = new Array(moduleNames.length)))[i] = oldResolvedModule;\n (reusedNames || (reusedNames = [])).push(moduleName);\n continue;\n }\n }\n // We know moduleName resolves to an ambient module provided that moduleName:\n // - is in the list of ambient modules locally declared in the current source file.\n // - resolved to an ambient module in the old program whose declaration is in an unmodified file\n // (so the same module declaration will land in the new program)\n var resolvesToAmbientModuleInNonModifiedFile = false;\n if (ts.contains(file.ambientModuleNames, moduleName)) {\n resolvesToAmbientModuleInNonModifiedFile = true;\n if (ts.isTraceEnabled(options, host)) {\n ts.trace(host, ts.Diagnostics.Module_0_was_resolved_as_locally_declared_ambient_module_in_file_1, moduleName, ts.getNormalizedAbsolutePath(file.originalFileName, currentDirectory));\n }\n }\n else {\n resolvesToAmbientModuleInNonModifiedFile = moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName);\n }\n if (resolvesToAmbientModuleInNonModifiedFile) {\n (result || (result = new Array(moduleNames.length)))[i] = predictedToResolveToAmbientModuleMarker;\n }\n else {\n // Resolution failed in the old program, or resolved to an ambient module for which we can't reuse the result.\n (unknownModuleNames || (unknownModuleNames = [])).push(moduleName);\n }\n }\n var resolutions = unknownModuleNames && unknownModuleNames.length\n ? resolveModuleNamesWorker(unknownModuleNames, file, reusedNames)\n : ts.emptyArray;\n // Combine results of resolutions and predicted results\n if (!result) {\n // There were no unresolved/ambient resolutions.\n ts.Debug.assert(resolutions.length === moduleNames.length);\n return resolutions;\n }\n var j = 0;\n for (var i = 0; i < result.length; i++) {\n if (result[i]) {\n // `result[i]` is either a `ResolvedModuleFull` or a marker.\n // If it is the former, we can leave it as is.\n if (result[i] === predictedToResolveToAmbientModuleMarker) {\n result[i] = undefined; // TODO: GH#18217\n }\n }\n else {\n result[i] = resolutions[j];\n j++;\n }\n }\n ts.Debug.assert(j === resolutions.length);\n return result;\n // If we change our policy of rechecking failed lookups on each program create,\n // we should adjust the value returned here.\n function moduleNameResolvesToAmbientModuleInNonModifiedFile(moduleName) {\n var resolutionToFile = ts.getResolvedModule(oldSourceFile, moduleName);\n var resolvedFile = resolutionToFile && oldProgram.getSourceFile(resolutionToFile.resolvedFileName);\n if (resolutionToFile && resolvedFile) {\n // In the old program, we resolved to an ambient module that was in the same\n // place as we expected to find an actual module file.\n // We actually need to return 'false' here even though this seems like a 'true' case\n // because the normal module resolution algorithm will find this anyway.\n return false;\n }\n // at least one of declarations should come from non-modified source file\n var unmodifiedFile = ambientModuleNameToUnmodifiedFileName.get(moduleName);\n if (!unmodifiedFile) {\n return false;\n }\n if (ts.isTraceEnabled(options, host)) {\n ts.trace(host, ts.Diagnostics.Module_0_was_resolved_as_ambient_module_declared_in_1_since_this_file_was_not_modified, moduleName, unmodifiedFile);\n }\n return true;\n }\n }\n function canReuseProjectReferences() {\n return !forEachProjectReference(oldProgram.getProjectReferences(), oldProgram.getResolvedProjectReferences(), function (oldResolvedRef, parent, index) {\n var newRef = (parent ? parent.commandLine.projectReferences : projectReferences)[index];\n var newResolvedRef = parseProjectReferenceConfigFile(newRef);\n if (oldResolvedRef) {\n // Resolved project reference has gone missing or changed\n return !newResolvedRef ||\n newResolvedRef.sourceFile !== oldResolvedRef.sourceFile ||\n !ts.arrayIsEqualTo(oldResolvedRef.commandLine.fileNames, newResolvedRef.commandLine.fileNames);\n }\n else {\n // A previously-unresolved reference may be resolved now\n return newResolvedRef !== undefined;\n }\n }, function (oldProjectReferences, parent) {\n // If array of references is changed, we cant resue old program\n var newReferences = parent ? getResolvedProjectReferenceByPath(parent.sourceFile.path).commandLine.projectReferences : projectReferences;\n return !ts.arrayIsEqualTo(oldProjectReferences, newReferences, ts.projectReferenceIsEqualTo);\n });\n }\n function tryReuseStructureFromOldProgram() {\n var _a;\n if (!oldProgram) {\n return 0 /* Not */;\n }\n // check properties that can affect structure of the program or module resolution strategy\n // if any of these properties has changed - structure cannot be reused\n var oldOptions = oldProgram.getCompilerOptions();\n if (ts.changesAffectModuleResolution(oldOptions, options)) {\n return 0 /* Not */;\n }\n // there is an old program, check if we can reuse its structure\n var oldRootNames = oldProgram.getRootFileNames();\n if (!ts.arrayIsEqualTo(oldRootNames, rootNames)) {\n return 0 /* Not */;\n }\n // Check if any referenced project tsconfig files are different\n if (!canReuseProjectReferences()) {\n return 0 /* Not */;\n }\n if (projectReferences) {\n resolvedProjectReferences = projectReferences.map(parseProjectReferenceConfigFile);\n }\n // check if program source files has changed in the way that can affect structure of the program\n var newSourceFiles = [];\n var modifiedSourceFiles = [];\n structureIsReused = 2 /* Completely */;\n // If the missing file paths are now present, it can change the progam structure,\n // and hence cant reuse the structure.\n // This is same as how we dont reuse the structure if one of the file from old program is now missing\n if (oldProgram.getMissingFilePaths().some(function (missingFilePath) { return host.fileExists(missingFilePath); })) {\n return 0 /* Not */;\n }\n var oldSourceFiles = oldProgram.getSourceFiles();\n var SeenPackageName;\n (function (SeenPackageName) {\n SeenPackageName[SeenPackageName[\"Exists\"] = 0] = \"Exists\";\n SeenPackageName[SeenPackageName[\"Modified\"] = 1] = \"Modified\";\n })(SeenPackageName || (SeenPackageName = {}));\n var seenPackageNames = new ts.Map();\n for (var _i = 0, oldSourceFiles_2 = oldSourceFiles; _i < oldSourceFiles_2.length; _i++) {\n var oldSourceFile = oldSourceFiles_2[_i];\n var newSourceFile = host.getSourceFileByPath\n ? host.getSourceFileByPath(oldSourceFile.fileName, oldSourceFile.resolvedPath, options.target, /*onError*/ undefined, shouldCreateNewSourceFile)\n : host.getSourceFile(oldSourceFile.fileName, options.target, /*onError*/ undefined, shouldCreateNewSourceFile); // TODO: GH#18217\n if (!newSourceFile) {\n return 0 /* Not */;\n }\n ts.Debug.assert(!newSourceFile.redirectInfo, \"Host should not return a redirect source file from `getSourceFile`\");\n var fileChanged = void 0;\n if (oldSourceFile.redirectInfo) {\n // We got `newSourceFile` by path, so it is actually for the unredirected file.\n // This lets us know if the unredirected file has changed. If it has we should break the redirect.\n if (newSourceFile !== oldSourceFile.redirectInfo.unredirected) {\n // Underlying file has changed. Might not redirect anymore. Must rebuild program.\n return 0 /* Not */;\n }\n fileChanged = false;\n newSourceFile = oldSourceFile; // Use the redirect.\n }\n else if (oldProgram.redirectTargetsMap.has(oldSourceFile.path)) {\n // If a redirected-to source file changes, the redirect may be broken.\n if (newSourceFile !== oldSourceFile) {\n return 0 /* Not */;\n }\n fileChanged = false;\n }\n else {\n fileChanged = newSourceFile !== oldSourceFile;\n }\n // Since the project references havent changed, its right to set originalFileName and resolvedPath here\n newSourceFile.path = oldSourceFile.path;\n newSourceFile.originalFileName = oldSourceFile.originalFileName;\n newSourceFile.resolvedPath = oldSourceFile.resolvedPath;\n newSourceFile.fileName = oldSourceFile.fileName;\n var packageName = oldProgram.sourceFileToPackageName.get(oldSourceFile.path);\n if (packageName !== undefined) {\n // If there are 2 different source files for the same package name and at least one of them changes,\n // they might become redirects. So we must rebuild the program.\n var prevKind = seenPackageNames.get(packageName);\n var newKind = fileChanged ? 1 /* Modified */ : 0 /* Exists */;\n if ((prevKind !== undefined && newKind === 1 /* Modified */) || prevKind === 1 /* Modified */) {\n return 0 /* Not */;\n }\n seenPackageNames.set(packageName, newKind);\n }\n if (fileChanged) {\n // The `newSourceFile` object was created for the new program.\n if (!ts.arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) {\n // 'lib' references has changed. Matches behavior in changesAffectModuleResolution\n structureIsReused = 1 /* SafeModules */;\n }\n if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) {\n // value of no-default-lib has changed\n // this will affect if default library is injected into the list of files\n structureIsReused = 1 /* SafeModules */;\n }\n // check tripleslash references\n if (!ts.arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) {\n // tripleslash references has changed\n structureIsReused = 1 /* SafeModules */;\n }\n // check imports and module augmentations\n collectExternalModuleReferences(newSourceFile);\n if (!ts.arrayIsEqualTo(oldSourceFile.imports, newSourceFile.imports, moduleNameIsEqualTo)) {\n // imports has changed\n structureIsReused = 1 /* SafeModules */;\n }\n if (!ts.arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations, moduleNameIsEqualTo)) {\n // moduleAugmentations has changed\n structureIsReused = 1 /* SafeModules */;\n }\n if ((oldSourceFile.flags & 3145728 /* PermanentlySetIncrementalFlags */) !== (newSourceFile.flags & 3145728 /* PermanentlySetIncrementalFlags */)) {\n // dynamicImport has changed\n structureIsReused = 1 /* SafeModules */;\n }\n if (!ts.arrayIsEqualTo(oldSourceFile.typeReferenceDirectives, newSourceFile.typeReferenceDirectives, fileReferenceIsEqualTo)) {\n // 'types' references has changed\n structureIsReused = 1 /* SafeModules */;\n }\n // tentatively approve the file\n modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });\n }\n else if (hasInvalidatedResolution(oldSourceFile.path)) {\n // 'module/types' references could have changed\n structureIsReused = 1 /* SafeModules */;\n // add file to the modified list so that we will resolve it later\n modifiedSourceFiles.push({ oldFile: oldSourceFile, newFile: newSourceFile });\n }\n // if file has passed all checks it should be safe to reuse it\n newSourceFiles.push(newSourceFile);\n }\n if (structureIsReused !== 2 /* Completely */) {\n return structureIsReused;\n }\n var modifiedFiles = modifiedSourceFiles.map(function (f) { return f.oldFile; });\n for (var _b = 0, oldSourceFiles_3 = oldSourceFiles; _b < oldSourceFiles_3.length; _b++) {\n var oldFile = oldSourceFiles_3[_b];\n if (!ts.contains(modifiedFiles, oldFile)) {\n for (var _c = 0, _d = oldFile.ambientModuleNames; _c < _d.length; _c++) {\n var moduleName = _d[_c];\n ambientModuleNameToUnmodifiedFileName.set(moduleName, oldFile.fileName);\n }\n }\n }\n // try to verify results of module resolution\n for (var _e = 0, modifiedSourceFiles_1 = modifiedSourceFiles; _e < modifiedSourceFiles_1.length; _e++) {\n var _f = modifiedSourceFiles_1[_e], oldSourceFile = _f.oldFile, newSourceFile = _f.newFile;\n var moduleNames = getModuleNames(newSourceFile);\n var resolutions = resolveModuleNamesReusingOldState(moduleNames, newSourceFile);\n // ensure that module resolution results are still correct\n var resolutionsChanged = ts.hasChangesInResolutions(moduleNames, resolutions, oldSourceFile.resolvedModules, ts.moduleResolutionIsEqualTo);\n if (resolutionsChanged) {\n structureIsReused = 1 /* SafeModules */;\n newSourceFile.resolvedModules = ts.zipToMap(moduleNames, resolutions);\n }\n else {\n newSourceFile.resolvedModules = oldSourceFile.resolvedModules;\n }\n // We lower-case all type references because npm automatically lowercases all packages. See GH#9824.\n var typesReferenceDirectives = ts.map(newSourceFile.typeReferenceDirectives, function (ref) { return ts.toFileNameLowerCase(ref.fileName); });\n var typeReferenceResolutions = resolveTypeReferenceDirectiveNamesWorker(typesReferenceDirectives, newSourceFile);\n // ensure that types resolutions are still correct\n var typeReferenceEesolutionsChanged = ts.hasChangesInResolutions(typesReferenceDirectives, typeReferenceResolutions, oldSourceFile.resolvedTypeReferenceDirectiveNames, ts.typeDirectiveIsEqualTo);\n if (typeReferenceEesolutionsChanged) {\n structureIsReused = 1 /* SafeModules */;\n newSourceFile.resolvedTypeReferenceDirectiveNames = ts.zipToMap(typesReferenceDirectives, typeReferenceResolutions);\n }\n else {\n newSourceFile.resolvedTypeReferenceDirectiveNames = oldSourceFile.resolvedTypeReferenceDirectiveNames;\n }\n }\n if (structureIsReused !== 2 /* Completely */) {\n return structureIsReused;\n }\n if (ts.changesAffectingProgramStructure(oldOptions, options) || ((_a = host.hasChangedAutomaticTypeDirectiveNames) === null || _a === void 0 ? void 0 : _a.call(host))) {\n return 1 /* SafeModules */;\n }\n missingFilePaths = oldProgram.getMissingFilePaths();\n // update fileName -> file mapping\n ts.Debug.assert(newSourceFiles.length === oldProgram.getSourceFiles().length);\n for (var _g = 0, newSourceFiles_1 = newSourceFiles; _g < newSourceFiles_1.length; _g++) {\n var newSourceFile = newSourceFiles_1[_g];\n filesByName.set(newSourceFile.path, newSourceFile);\n }\n var oldFilesByNameMap = oldProgram.getFilesByNameMap();\n oldFilesByNameMap.forEach(function (oldFile, path) {\n if (!oldFile) {\n filesByName.set(path, oldFile);\n return;\n }\n if (oldFile.path === path) {\n // Set the file as found during node modules search if it was found that way in old progra,\n if (oldProgram.isSourceFileFromExternalLibrary(oldFile)) {\n sourceFilesFoundSearchingNodeModules.set(oldFile.path, true);\n }\n return;\n }\n filesByName.set(path, filesByName.get(oldFile.path));\n });\n files = newSourceFiles;\n fileReasons = oldProgram.getFileIncludeReasons();\n fileProcessingDiagnostics = oldProgram.getFileProcessingDiagnostics();\n resolvedTypeReferenceDirectives = oldProgram.getResolvedTypeReferenceDirectives();\n sourceFileToPackageName = oldProgram.sourceFileToPackageName;\n redirectTargetsMap = oldProgram.redirectTargetsMap;\n usesUriStyleNodeCoreModules = oldProgram.usesUriStyleNodeCoreModules;\n return 2 /* Completely */;\n }\n function getEmitHost(writeFileCallback) {\n return {\n getPrependNodes: getPrependNodes,\n getCanonicalFileName: getCanonicalFileName,\n getCommonSourceDirectory: program.getCommonSourceDirectory,\n getCompilerOptions: program.getCompilerOptions,\n getCurrentDirectory: function () { return currentDirectory; },\n getNewLine: function () { return host.getNewLine(); },\n getSourceFile: program.getSourceFile,\n getSourceFileByPath: program.getSourceFileByPath,\n getSourceFiles: program.getSourceFiles,\n getLibFileFromReference: program.getLibFileFromReference,\n isSourceFileFromExternalLibrary: isSourceFileFromExternalLibrary,\n getResolvedProjectReferenceToRedirect: getResolvedProjectReferenceToRedirect,\n getProjectReferenceRedirect: getProjectReferenceRedirect,\n isSourceOfProjectReferenceRedirect: isSourceOfProjectReferenceRedirect,\n getSymlinkCache: getSymlinkCache,\n writeFile: writeFileCallback || (function (fileName, data, writeByteOrderMark, onError, sourceFiles) { return host.writeFile(fileName, data, writeByteOrderMark, onError, sourceFiles); }),\n isEmitBlocked: isEmitBlocked,\n readFile: function (f) { return host.readFile(f); },\n fileExists: function (f) {\n // Use local caches\n var path = toPath(f);\n if (getSourceFileByPath(path))\n return true;\n if (ts.contains(missingFilePaths, path))\n return false;\n // Before falling back to the host\n return host.fileExists(f);\n },\n useCaseSensitiveFileNames: function () { return host.useCaseSensitiveFileNames(); },\n getProgramBuildInfo: function () { return program.getProgramBuildInfo && program.getProgramBuildInfo(); },\n getSourceFileFromReference: function (file, ref) { return program.getSourceFileFromReference(file, ref); },\n redirectTargetsMap: redirectTargetsMap,\n getFileIncludeReasons: program.getFileIncludeReasons,\n };\n }\n function emitBuildInfo(writeFileCallback) {\n ts.Debug.assert(!ts.outFile(options));\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"emit\" /* Emit */, \"emitBuildInfo\", {}, /*separateBeginAndEnd*/ true);\n ts.performance.mark(\"beforeEmit\");\n var emitResult = ts.emitFiles(ts.notImplementedResolver, getEmitHost(writeFileCallback), \n /*targetSourceFile*/ undefined, \n /*transformers*/ ts.noTransformers, \n /*emitOnlyDtsFiles*/ false, \n /*onlyBuildInfo*/ true);\n ts.performance.mark(\"afterEmit\");\n ts.performance.measure(\"Emit\", \"beforeEmit\", \"afterEmit\");\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return emitResult;\n }\n function getResolvedProjectReferences() {\n return resolvedProjectReferences;\n }\n function getProjectReferences() {\n return projectReferences;\n }\n function getPrependNodes() {\n return createPrependNodes(projectReferences, function (_ref, index) { var _a; return (_a = resolvedProjectReferences[index]) === null || _a === void 0 ? void 0 : _a.commandLine; }, function (fileName) {\n var path = toPath(fileName);\n var sourceFile = getSourceFileByPath(path);\n return sourceFile ? sourceFile.text : filesByName.has(path) ? undefined : host.readFile(path);\n });\n }\n function isSourceFileFromExternalLibrary(file) {\n return !!sourceFilesFoundSearchingNodeModules.get(file.path);\n }\n function isSourceFileDefaultLibrary(file) {\n if (file.hasNoDefaultLib) {\n return true;\n }\n if (!options.noLib) {\n return false;\n }\n // If '--lib' is not specified, include default library file according to '--target'\n // otherwise, using options specified in '--lib' instead of '--target' default library file\n var equalityComparer = host.useCaseSensitiveFileNames() ? ts.equateStringsCaseSensitive : ts.equateStringsCaseInsensitive;\n if (!options.lib) {\n return equalityComparer(file.fileName, getDefaultLibraryFileName());\n }\n else {\n return ts.some(options.lib, function (libFileName) { return equalityComparer(file.fileName, ts.combinePaths(defaultLibraryPath, libFileName)); });\n }\n }\n function getDiagnosticsProducingTypeChecker() {\n return diagnosticsProducingTypeChecker || (diagnosticsProducingTypeChecker = ts.createTypeChecker(program, /*produceDiagnostics:*/ true));\n }\n function dropDiagnosticsProducingTypeChecker() {\n diagnosticsProducingTypeChecker = undefined;\n }\n function getTypeChecker() {\n return noDiagnosticsTypeChecker || (noDiagnosticsTypeChecker = ts.createTypeChecker(program, /*produceDiagnostics:*/ false));\n }\n function emit(sourceFile, writeFileCallback, cancellationToken, emitOnlyDtsFiles, transformers, forceDtsEmit) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"emit\" /* Emit */, \"emit\", { path: sourceFile === null || sourceFile === void 0 ? void 0 : sourceFile.path }, /*separateBeginAndEnd*/ true);\n var result = runWithCancellationToken(function () { return emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnlyDtsFiles, transformers, forceDtsEmit); });\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return result;\n }\n function isEmitBlocked(emitFileName) {\n return hasEmitBlockingDiagnostics.has(toPath(emitFileName));\n }\n function emitWorker(program, sourceFile, writeFileCallback, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit) {\n if (!forceDtsEmit) {\n var result = handleNoEmitOptions(program, sourceFile, writeFileCallback, cancellationToken);\n if (result)\n return result;\n }\n // Create the emit resolver outside of the \"emitTime\" tracking code below. That way\n // any cost associated with it (like type checking) are appropriate associated with\n // the type-checking counter.\n //\n // If the -out option is specified, we should not pass the source file to getEmitResolver.\n // This is because in the -out scenario all files need to be emitted, and therefore all\n // files need to be type checked. And the way to specify that all files need to be type\n // checked is to not pass the file to getEmitResolver.\n var emitResolver = getDiagnosticsProducingTypeChecker().getEmitResolver(ts.outFile(options) ? undefined : sourceFile, cancellationToken);\n ts.performance.mark(\"beforeEmit\");\n var emitResult = ts.emitFiles(emitResolver, getEmitHost(writeFileCallback), sourceFile, ts.getTransformers(options, customTransformers, emitOnlyDtsFiles), emitOnlyDtsFiles, \n /*onlyBuildInfo*/ false, forceDtsEmit);\n ts.performance.mark(\"afterEmit\");\n ts.performance.measure(\"Emit\", \"beforeEmit\", \"afterEmit\");\n return emitResult;\n }\n function getSourceFile(fileName) {\n return getSourceFileByPath(toPath(fileName));\n }\n function getSourceFileByPath(path) {\n return filesByName.get(path) || undefined;\n }\n function getDiagnosticsHelper(sourceFile, getDiagnostics, cancellationToken) {\n if (sourceFile) {\n return getDiagnostics(sourceFile, cancellationToken);\n }\n return ts.sortAndDeduplicateDiagnostics(ts.flatMap(program.getSourceFiles(), function (sourceFile) {\n if (cancellationToken) {\n cancellationToken.throwIfCancellationRequested();\n }\n return getDiagnostics(sourceFile, cancellationToken);\n }));\n }\n function getSyntacticDiagnostics(sourceFile, cancellationToken) {\n return getDiagnosticsHelper(sourceFile, getSyntacticDiagnosticsForFile, cancellationToken);\n }\n function getSemanticDiagnostics(sourceFile, cancellationToken) {\n return getDiagnosticsHelper(sourceFile, getSemanticDiagnosticsForFile, cancellationToken);\n }\n function getCachedSemanticDiagnostics(sourceFile) {\n var _a;\n return sourceFile\n ? (_a = cachedBindAndCheckDiagnosticsForFile.perFile) === null || _a === void 0 ? void 0 : _a.get(sourceFile.path)\n : cachedBindAndCheckDiagnosticsForFile.allDiagnostics;\n }\n function getBindAndCheckDiagnostics(sourceFile, cancellationToken) {\n return getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken);\n }\n function getProgramDiagnostics(sourceFile) {\n var _a;\n if (ts.skipTypeChecking(sourceFile, options, program)) {\n return ts.emptyArray;\n }\n var programDiagnosticsInFile = programDiagnostics.getDiagnostics(sourceFile.fileName);\n if (!((_a = sourceFile.commentDirectives) === null || _a === void 0 ? void 0 : _a.length)) {\n return programDiagnosticsInFile;\n }\n return getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, programDiagnosticsInFile).diagnostics;\n }\n function getDeclarationDiagnostics(sourceFile, cancellationToken) {\n var options = program.getCompilerOptions();\n // collect diagnostics from the program only once if either no source file was specified or out/outFile is set (bundled emit)\n if (!sourceFile || ts.outFile(options)) {\n return getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);\n }\n else {\n return getDiagnosticsHelper(sourceFile, getDeclarationDiagnosticsForFile, cancellationToken);\n }\n }\n function getSyntacticDiagnosticsForFile(sourceFile) {\n // For JavaScript files, we report semantic errors for using TypeScript-only\n // constructs from within a JavaScript file as syntactic errors.\n if (ts.isSourceFileJS(sourceFile)) {\n if (!sourceFile.additionalSyntacticDiagnostics) {\n sourceFile.additionalSyntacticDiagnostics = getJSSyntacticDiagnosticsForFile(sourceFile);\n }\n return ts.concatenate(sourceFile.additionalSyntacticDiagnostics, sourceFile.parseDiagnostics);\n }\n return sourceFile.parseDiagnostics;\n }\n function runWithCancellationToken(func) {\n try {\n return func();\n }\n catch (e) {\n if (e instanceof ts.OperationCanceledException) {\n // We were canceled while performing the operation. Because our type checker\n // might be a bad state, we need to throw it away.\n //\n // Note: we are overly aggressive here. We do not actually *have* to throw away\n // the \"noDiagnosticsTypeChecker\". However, for simplicity, i'd like to keep\n // the lifetimes of these two TypeCheckers the same. Also, we generally only\n // cancel when the user has made a change anyways. And, in that case, we (the\n // program instance) will get thrown away anyways. So trying to keep one of\n // these type checkers alive doesn't serve much purpose.\n noDiagnosticsTypeChecker = undefined;\n diagnosticsProducingTypeChecker = undefined;\n }\n throw e;\n }\n }\n function getSemanticDiagnosticsForFile(sourceFile, cancellationToken) {\n return ts.concatenate(filterSemanticDiagnostics(getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken), options), getProgramDiagnostics(sourceFile));\n }\n function getBindAndCheckDiagnosticsForFile(sourceFile, cancellationToken) {\n return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedBindAndCheckDiagnosticsForFile, getBindAndCheckDiagnosticsForFileNoCache);\n }\n function getBindAndCheckDiagnosticsForFileNoCache(sourceFile, cancellationToken) {\n return runWithCancellationToken(function () {\n if (ts.skipTypeChecking(sourceFile, options, program)) {\n return ts.emptyArray;\n }\n var typeChecker = getDiagnosticsProducingTypeChecker();\n ts.Debug.assert(!!sourceFile.bindDiagnostics);\n var isCheckJs = ts.isCheckJsEnabledForFile(sourceFile, options);\n var isTsNoCheck = !!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false;\n // By default, only type-check .ts, .tsx, 'Deferred' and 'External' files (external files are added by plugins)\n var includeBindAndCheckDiagnostics = !isTsNoCheck && (sourceFile.scriptKind === 3 /* TS */ || sourceFile.scriptKind === 4 /* TSX */\n || sourceFile.scriptKind === 5 /* External */ || isCheckJs || sourceFile.scriptKind === 7 /* Deferred */);\n var bindDiagnostics = includeBindAndCheckDiagnostics ? sourceFile.bindDiagnostics : ts.emptyArray;\n var checkDiagnostics = includeBindAndCheckDiagnostics ? typeChecker.getDiagnostics(sourceFile, cancellationToken) : ts.emptyArray;\n return getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics, bindDiagnostics, checkDiagnostics, isCheckJs ? sourceFile.jsDocDiagnostics : undefined);\n });\n }\n function getMergedBindAndCheckDiagnostics(sourceFile, includeBindAndCheckDiagnostics) {\n var _a;\n var allDiagnostics = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n allDiagnostics[_i - 2] = arguments[_i];\n }\n var flatDiagnostics = ts.flatten(allDiagnostics);\n if (!includeBindAndCheckDiagnostics || !((_a = sourceFile.commentDirectives) === null || _a === void 0 ? void 0 : _a.length)) {\n return flatDiagnostics;\n }\n var _b = getDiagnosticsWithPrecedingDirectives(sourceFile, sourceFile.commentDirectives, flatDiagnostics), diagnostics = _b.diagnostics, directives = _b.directives;\n for (var _c = 0, _d = directives.getUnusedExpectations(); _c < _d.length; _c++) {\n var errorExpectation = _d[_c];\n diagnostics.push(ts.createDiagnosticForRange(sourceFile, errorExpectation.range, ts.Diagnostics.Unused_ts_expect_error_directive));\n }\n return diagnostics;\n }\n /**\n * Creates a map of comment directives along with the diagnostics immediately preceded by one of them.\n * Comments that match to any of those diagnostics are marked as used.\n */\n function getDiagnosticsWithPrecedingDirectives(sourceFile, commentDirectives, flatDiagnostics) {\n // Diagnostics are only reported if there is no comment directive preceding them\n // This will modify the directives map by marking \"used\" ones with a corresponding diagnostic\n var directives = ts.createCommentDirectivesMap(sourceFile, commentDirectives);\n var diagnostics = flatDiagnostics.filter(function (diagnostic) { return markPrecedingCommentDirectiveLine(diagnostic, directives) === -1; });\n return { diagnostics: diagnostics, directives: directives };\n }\n function getSuggestionDiagnostics(sourceFile, cancellationToken) {\n return runWithCancellationToken(function () {\n return getDiagnosticsProducingTypeChecker().getSuggestionDiagnostics(sourceFile, cancellationToken);\n });\n }\n /**\n * @returns The line index marked as preceding the diagnostic, or -1 if none was.\n */\n function markPrecedingCommentDirectiveLine(diagnostic, directives) {\n var file = diagnostic.file, start = diagnostic.start;\n if (!file) {\n return -1;\n }\n // Start out with the line just before the text\n var lineStarts = ts.getLineStarts(file);\n var line = ts.computeLineAndCharacterOfPosition(lineStarts, start).line - 1; // TODO: GH#18217\n while (line >= 0) {\n // As soon as that line is known to have a comment directive, use that\n if (directives.markUsed(line)) {\n return line;\n }\n // Stop searching if the line is not empty and not a comment\n var lineText = file.text.slice(lineStarts[line], lineStarts[line + 1]).trim();\n if (lineText !== \"\" && !/^(\\s*)\\/\\/(.*)$/.test(lineText)) {\n return -1;\n }\n line--;\n }\n return -1;\n }\n function getJSSyntacticDiagnosticsForFile(sourceFile) {\n return runWithCancellationToken(function () {\n var diagnostics = [];\n walk(sourceFile, sourceFile);\n ts.forEachChildRecursively(sourceFile, walk, walkArray);\n return diagnostics;\n function walk(node, parent) {\n // Return directly from the case if the given node doesnt want to visit each child\n // Otherwise break to visit each child\n switch (parent.kind) {\n case 162 /* Parameter */:\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n if (parent.questionToken === node) {\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, \"?\"));\n return \"skip\";\n }\n // falls through\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n case 212 /* ArrowFunction */:\n case 252 /* VariableDeclaration */:\n // type annotation\n if (parent.type === node) {\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Type_annotations_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n }\n }\n switch (node.kind) {\n case 265 /* ImportClause */:\n if (node.isTypeOnly) {\n diagnostics.push(createDiagnosticForNode(parent, ts.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, \"import type\"));\n return \"skip\";\n }\n break;\n case 270 /* ExportDeclaration */:\n if (node.isTypeOnly) {\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, \"export type\"));\n return \"skip\";\n }\n break;\n case 263 /* ImportEqualsDeclaration */:\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.import_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n case 269 /* ExportAssignment */:\n if (node.isExportEquals) {\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.export_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n }\n break;\n case 289 /* HeritageClause */:\n var heritageClause = node;\n if (heritageClause.token === 117 /* ImplementsKeyword */) {\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.implements_clauses_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n }\n break;\n case 256 /* InterfaceDeclaration */:\n var interfaceKeyword = ts.tokenToString(118 /* InterfaceKeyword */);\n ts.Debug.assertIsDefined(interfaceKeyword);\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, interfaceKeyword));\n return \"skip\";\n case 259 /* ModuleDeclaration */:\n var moduleKeyword = node.flags & 16 /* Namespace */ ? ts.tokenToString(141 /* NamespaceKeyword */) : ts.tokenToString(140 /* ModuleKeyword */);\n ts.Debug.assertIsDefined(moduleKeyword);\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, moduleKeyword));\n return \"skip\";\n case 257 /* TypeAliasDeclaration */:\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Type_aliases_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n case 258 /* EnumDeclaration */:\n var enumKeyword = ts.Debug.checkDefined(ts.tokenToString(92 /* EnumKeyword */));\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics._0_declarations_can_only_be_used_in_TypeScript_files, enumKeyword));\n return \"skip\";\n case 228 /* NonNullExpression */:\n diagnostics.push(createDiagnosticForNode(node, ts.Diagnostics.Non_null_assertions_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n case 227 /* AsExpression */:\n diagnostics.push(createDiagnosticForNode(node.type, ts.Diagnostics.Type_assertion_expressions_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n case 209 /* TypeAssertionExpression */:\n ts.Debug.fail(); // Won't parse these in a JS file anyway, as they are interpreted as JSX.\n }\n }\n function walkArray(nodes, parent) {\n if (parent.decorators === nodes && !options.experimentalDecorators) {\n diagnostics.push(createDiagnosticForNode(parent, ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning));\n }\n switch (parent.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n case 212 /* ArrowFunction */:\n // Check type parameters\n if (nodes === parent.typeParameters) {\n diagnostics.push(createDiagnosticForNodeArray(nodes, ts.Diagnostics.Type_parameter_declarations_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n }\n // falls through\n case 235 /* VariableStatement */:\n // Check modifiers\n if (nodes === parent.modifiers) {\n checkModifiers(parent.modifiers, parent.kind === 235 /* VariableStatement */);\n return \"skip\";\n }\n break;\n case 165 /* PropertyDeclaration */:\n // Check modifiers of property declaration\n if (nodes === parent.modifiers) {\n for (var _i = 0, _a = nodes; _i < _a.length; _i++) {\n var modifier = _a[_i];\n if (modifier.kind !== 124 /* StaticKeyword */) {\n diagnostics.push(createDiagnosticForNode(modifier, ts.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, ts.tokenToString(modifier.kind)));\n }\n }\n return \"skip\";\n }\n break;\n case 162 /* Parameter */:\n // Check modifiers of parameter declaration\n if (nodes === parent.modifiers) {\n diagnostics.push(createDiagnosticForNodeArray(nodes, ts.Diagnostics.Parameter_modifiers_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n }\n break;\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 226 /* ExpressionWithTypeArguments */:\n case 277 /* JsxSelfClosingElement */:\n case 278 /* JsxOpeningElement */:\n case 208 /* TaggedTemplateExpression */:\n // Check type arguments\n if (nodes === parent.typeArguments) {\n diagnostics.push(createDiagnosticForNodeArray(nodes, ts.Diagnostics.Type_arguments_can_only_be_used_in_TypeScript_files));\n return \"skip\";\n }\n break;\n }\n }\n function checkModifiers(modifiers, isConstValid) {\n for (var _i = 0, modifiers_2 = modifiers; _i < modifiers_2.length; _i++) {\n var modifier = modifiers_2[_i];\n switch (modifier.kind) {\n case 85 /* ConstKeyword */:\n if (isConstValid) {\n continue;\n }\n // to report error,\n // falls through\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 143 /* ReadonlyKeyword */:\n case 134 /* DeclareKeyword */:\n case 126 /* AbstractKeyword */:\n case 157 /* OverrideKeyword */:\n diagnostics.push(createDiagnosticForNode(modifier, ts.Diagnostics.The_0_modifier_can_only_be_used_in_TypeScript_files, ts.tokenToString(modifier.kind)));\n break;\n // These are all legal modifiers.\n case 124 /* StaticKeyword */:\n case 93 /* ExportKeyword */:\n case 88 /* DefaultKeyword */:\n }\n }\n }\n function createDiagnosticForNodeArray(nodes, message, arg0, arg1, arg2) {\n var start = nodes.pos;\n return ts.createFileDiagnostic(sourceFile, start, nodes.end - start, message, arg0, arg1, arg2);\n }\n // Since these are syntactic diagnostics, parent might not have been set\n // this means the sourceFile cannot be infered from the node\n function createDiagnosticForNode(node, message, arg0, arg1, arg2) {\n return ts.createDiagnosticForNodeInSourceFile(sourceFile, node, message, arg0, arg1, arg2);\n }\n });\n }\n function getDeclarationDiagnosticsWorker(sourceFile, cancellationToken) {\n return getAndCacheDiagnostics(sourceFile, cancellationToken, cachedDeclarationDiagnosticsForFile, getDeclarationDiagnosticsForFileNoCache);\n }\n function getDeclarationDiagnosticsForFileNoCache(sourceFile, cancellationToken) {\n return runWithCancellationToken(function () {\n var resolver = getDiagnosticsProducingTypeChecker().getEmitResolver(sourceFile, cancellationToken);\n // Don't actually write any files since we're just getting diagnostics.\n return ts.getDeclarationDiagnostics(getEmitHost(ts.noop), resolver, sourceFile) || ts.emptyArray;\n });\n }\n function getAndCacheDiagnostics(sourceFile, cancellationToken, cache, getDiagnostics) {\n var _a;\n var cachedResult = sourceFile\n ? (_a = cache.perFile) === null || _a === void 0 ? void 0 : _a.get(sourceFile.path)\n : cache.allDiagnostics;\n if (cachedResult) {\n return cachedResult;\n }\n var result = getDiagnostics(sourceFile, cancellationToken);\n if (sourceFile) {\n (cache.perFile || (cache.perFile = new ts.Map())).set(sourceFile.path, result);\n }\n else {\n cache.allDiagnostics = result;\n }\n return result;\n }\n function getDeclarationDiagnosticsForFile(sourceFile, cancellationToken) {\n return sourceFile.isDeclarationFile ? [] : getDeclarationDiagnosticsWorker(sourceFile, cancellationToken);\n }\n function getOptionsDiagnostics() {\n return ts.sortAndDeduplicateDiagnostics(ts.concatenate(programDiagnostics.getGlobalDiagnostics(), getOptionsDiagnosticsOfConfigFile()));\n }\n function getOptionsDiagnosticsOfConfigFile() {\n if (!options.configFile) {\n return ts.emptyArray;\n }\n var diagnostics = programDiagnostics.getDiagnostics(options.configFile.fileName);\n forEachResolvedProjectReference(function (resolvedRef) {\n diagnostics = ts.concatenate(diagnostics, programDiagnostics.getDiagnostics(resolvedRef.sourceFile.fileName));\n });\n return diagnostics;\n }\n function getGlobalDiagnostics() {\n return rootNames.length ? ts.sortAndDeduplicateDiagnostics(getDiagnosticsProducingTypeChecker().getGlobalDiagnostics().slice()) : ts.emptyArray;\n }\n function getConfigFileParsingDiagnostics() {\n return configFileParsingDiagnostics || ts.emptyArray;\n }\n function processRootFile(fileName, isDefaultLib, ignoreNoDefaultLib, reason) {\n processSourceFile(ts.normalizePath(fileName), isDefaultLib, ignoreNoDefaultLib, /*packageId*/ undefined, reason);\n }\n function fileReferenceIsEqualTo(a, b) {\n return a.fileName === b.fileName;\n }\n function moduleNameIsEqualTo(a, b) {\n return a.kind === 79 /* Identifier */\n ? b.kind === 79 /* Identifier */ && a.escapedText === b.escapedText\n : b.kind === 10 /* StringLiteral */ && a.text === b.text;\n }\n function createSyntheticImport(text, file) {\n var externalHelpersModuleReference = ts.factory.createStringLiteral(text);\n var importDecl = ts.factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*importClause*/ undefined, externalHelpersModuleReference);\n ts.addEmitFlags(importDecl, 67108864 /* NeverApplyImportHelper */);\n ts.setParent(externalHelpersModuleReference, importDecl);\n ts.setParent(importDecl, file);\n // explicitly unset the synthesized flag on these declarations so the checker API will answer questions about them\n // (which is required to build the dependency graph for incremental emit)\n externalHelpersModuleReference.flags &= ~8 /* Synthesized */;\n importDecl.flags &= ~8 /* Synthesized */;\n return externalHelpersModuleReference;\n }\n function collectExternalModuleReferences(file) {\n if (file.imports) {\n return;\n }\n var isJavaScriptFile = ts.isSourceFileJS(file);\n var isExternalModuleFile = ts.isExternalModule(file);\n // file.imports may not be undefined if there exists dynamic import\n var imports;\n var moduleAugmentations;\n var ambientModules;\n // If we are importing helpers, we need to add a synthetic reference to resolve the\n // helpers library.\n if ((options.isolatedModules || isExternalModuleFile)\n && !file.isDeclarationFile) {\n if (options.importHelpers) {\n // synthesize 'import \"tslib\"' declaration\n imports = [createSyntheticImport(ts.externalHelpersModuleNameText, file)];\n }\n var jsxImport = ts.getJSXRuntimeImport(ts.getJSXImplicitImportBase(options, file), options);\n if (jsxImport) {\n // synthesize `import \"base/jsx-runtime\"` declaration\n (imports || (imports = [])).push(createSyntheticImport(jsxImport, file));\n }\n }\n for (var _i = 0, _a = file.statements; _i < _a.length; _i++) {\n var node = _a[_i];\n collectModuleReferences(node, /*inAmbientModule*/ false);\n }\n if ((file.flags & 1048576 /* PossiblyContainsDynamicImport */) || isJavaScriptFile) {\n collectDynamicImportOrRequireCalls(file);\n }\n file.imports = imports || ts.emptyArray;\n file.moduleAugmentations = moduleAugmentations || ts.emptyArray;\n file.ambientModuleNames = ambientModules || ts.emptyArray;\n return;\n function collectModuleReferences(node, inAmbientModule) {\n if (ts.isAnyImportOrReExport(node)) {\n var moduleNameExpr = ts.getExternalModuleName(node);\n // TypeScript 1.0 spec (April 2014): 12.1.6\n // An ExternalImportDeclaration in an AmbientExternalModuleDeclaration may reference other external modules\n // only through top - level external module names. Relative external module names are not permitted.\n if (moduleNameExpr && ts.isStringLiteral(moduleNameExpr) && moduleNameExpr.text && (!inAmbientModule || !ts.isExternalModuleNameRelative(moduleNameExpr.text))) {\n imports = ts.append(imports, moduleNameExpr);\n if (!usesUriStyleNodeCoreModules && currentNodeModulesDepth === 0 && !file.isDeclarationFile) {\n usesUriStyleNodeCoreModules = ts.startsWith(moduleNameExpr.text, \"node:\");\n }\n }\n }\n else if (ts.isModuleDeclaration(node)) {\n if (ts.isAmbientModule(node) && (inAmbientModule || ts.hasSyntacticModifier(node, 2 /* Ambient */) || file.isDeclarationFile)) {\n var nameText = ts.getTextOfIdentifierOrLiteral(node.name);\n // Ambient module declarations can be interpreted as augmentations for some existing external modules.\n // This will happen in two cases:\n // - if current file is external module then module augmentation is a ambient module declaration defined in the top level scope\n // - if current file is not external module then module augmentation is an ambient module declaration with non-relative module name\n // immediately nested in top level ambient module declaration .\n if (isExternalModuleFile || (inAmbientModule && !ts.isExternalModuleNameRelative(nameText))) {\n (moduleAugmentations || (moduleAugmentations = [])).push(node.name);\n }\n else if (!inAmbientModule) {\n if (file.isDeclarationFile) {\n // for global .d.ts files record name of ambient module\n (ambientModules || (ambientModules = [])).push(nameText);\n }\n // An AmbientExternalModuleDeclaration declares an external module.\n // This type of declaration is permitted only in the global module.\n // The StringLiteral must specify a top - level external module name.\n // Relative external module names are not permitted\n // NOTE: body of ambient module is always a module block, if it exists\n var body = node.body;\n if (body) {\n for (var _i = 0, _a = body.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n collectModuleReferences(statement, /*inAmbientModule*/ true);\n }\n }\n }\n }\n }\n }\n function collectDynamicImportOrRequireCalls(file) {\n var r = /import|require/g;\n while (r.exec(file.text) !== null) { // eslint-disable-line no-null/no-null\n var node = getNodeAtPosition(file, r.lastIndex);\n if (isJavaScriptFile && ts.isRequireCall(node, /*checkArgumentIsStringLiteralLike*/ true)) {\n imports = ts.append(imports, node.arguments[0]);\n }\n // we have to check the argument list has length of 1. We will still have to process these even though we have parsing error.\n else if (ts.isImportCall(node) && node.arguments.length === 1 && ts.isStringLiteralLike(node.arguments[0])) {\n imports = ts.append(imports, node.arguments[0]);\n }\n else if (ts.isLiteralImportTypeNode(node)) {\n imports = ts.append(imports, node.argument.literal);\n }\n }\n }\n /** Returns a token if position is in [start-of-leading-trivia, end), includes JSDoc only in JS files */\n function getNodeAtPosition(sourceFile, position) {\n var current = sourceFile;\n var getContainingChild = function (child) {\n if (child.pos <= position && (position < child.end || (position === child.end && (child.kind === 1 /* EndOfFileToken */)))) {\n return child;\n }\n };\n while (true) {\n var child = isJavaScriptFile && ts.hasJSDocNodes(current) && ts.forEach(current.jsDoc, getContainingChild) || ts.forEachChild(current, getContainingChild);\n if (!child) {\n return current;\n }\n current = child;\n }\n }\n }\n function getLibFileFromReference(ref) {\n var libName = ts.toFileNameLowerCase(ref.fileName);\n var libFileName = ts.libMap.get(libName);\n if (libFileName) {\n return getSourceFile(ts.combinePaths(defaultLibraryPath, libFileName));\n }\n }\n /** This should have similar behavior to 'processSourceFile' without diagnostics or mutation. */\n function getSourceFileFromReference(referencingFile, ref) {\n return getSourceFileFromReferenceWorker(resolveTripleslashReference(ref.fileName, referencingFile.fileName), getSourceFile);\n }\n function getSourceFileFromReferenceWorker(fileName, getSourceFile, fail, reason) {\n if (ts.hasExtension(fileName)) {\n var canonicalFileName_1 = host.getCanonicalFileName(fileName);\n if (!options.allowNonTsExtensions && !ts.forEach(supportedExtensionsWithJsonIfResolveJsonModule, function (extension) { return ts.fileExtensionIs(canonicalFileName_1, extension); })) {\n if (fail) {\n if (ts.hasJSFileExtension(canonicalFileName_1)) {\n fail(ts.Diagnostics.File_0_is_a_JavaScript_file_Did_you_mean_to_enable_the_allowJs_option, fileName);\n }\n else {\n fail(ts.Diagnostics.File_0_has_an_unsupported_extension_The_only_supported_extensions_are_1, fileName, \"'\" + supportedExtensions.join(\"', '\") + \"'\");\n }\n }\n return undefined;\n }\n var sourceFile = getSourceFile(fileName);\n if (fail) {\n if (!sourceFile) {\n var redirect = getProjectReferenceRedirect(fileName);\n if (redirect) {\n fail(ts.Diagnostics.Output_file_0_has_not_been_built_from_source_file_1, redirect, fileName);\n }\n else {\n fail(ts.Diagnostics.File_0_not_found, fileName);\n }\n }\n else if (isReferencedFile(reason) && canonicalFileName_1 === host.getCanonicalFileName(getSourceFileByPath(reason.file).fileName)) {\n fail(ts.Diagnostics.A_file_cannot_have_a_reference_to_itself);\n }\n }\n return sourceFile;\n }\n else {\n var sourceFileNoExtension = options.allowNonTsExtensions && getSourceFile(fileName);\n if (sourceFileNoExtension)\n return sourceFileNoExtension;\n if (fail && options.allowNonTsExtensions) {\n fail(ts.Diagnostics.File_0_not_found, fileName);\n return undefined;\n }\n var sourceFileWithAddedExtension = ts.forEach(supportedExtensions, function (extension) { return getSourceFile(fileName + extension); });\n if (fail && !sourceFileWithAddedExtension)\n fail(ts.Diagnostics.Could_not_resolve_the_path_0_with_the_extensions_Colon_1, fileName, \"'\" + supportedExtensions.join(\"', '\") + \"'\");\n return sourceFileWithAddedExtension;\n }\n }\n /** This has side effects through `findSourceFile`. */\n function processSourceFile(fileName, isDefaultLib, ignoreNoDefaultLib, packageId, reason) {\n getSourceFileFromReferenceWorker(fileName, function (fileName) { return findSourceFile(fileName, toPath(fileName), isDefaultLib, ignoreNoDefaultLib, reason, packageId); }, // TODO: GH#18217\n function (diagnostic) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return addFilePreprocessingFileExplainingDiagnostic(/*file*/ undefined, reason, diagnostic, args);\n }, reason);\n }\n function processProjectReferenceFile(fileName, reason) {\n return processSourceFile(fileName, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, /*packageId*/ undefined, reason);\n }\n function reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason) {\n var hasExistingReasonToReportErrorOn = !isReferencedFile(reason) && ts.some(fileReasons.get(existingFile.path), isReferencedFile);\n if (hasExistingReasonToReportErrorOn) {\n addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, ts.Diagnostics.Already_included_file_name_0_differs_from_file_name_1_only_in_casing, [existingFile.fileName, fileName]);\n }\n else {\n addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, ts.Diagnostics.File_name_0_differs_from_already_included_file_name_1_only_in_casing, [fileName, existingFile.fileName]);\n }\n }\n function createRedirectSourceFile(redirectTarget, unredirected, fileName, path, resolvedPath, originalFileName) {\n var redirect = Object.create(redirectTarget);\n redirect.fileName = fileName;\n redirect.path = path;\n redirect.resolvedPath = resolvedPath;\n redirect.originalFileName = originalFileName;\n redirect.redirectInfo = { redirectTarget: redirectTarget, unredirected: unredirected };\n sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);\n Object.defineProperties(redirect, {\n id: {\n get: function () { return this.redirectInfo.redirectTarget.id; },\n set: function (value) { this.redirectInfo.redirectTarget.id = value; },\n },\n symbol: {\n get: function () { return this.redirectInfo.redirectTarget.symbol; },\n set: function (value) { this.redirectInfo.redirectTarget.symbol = value; },\n },\n });\n return redirect;\n }\n // Get source file from normalized fileName\n function findSourceFile(fileName, path, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"findSourceFile\", {\n fileName: fileName,\n isDefaultLib: isDefaultLib || undefined,\n fileIncludeKind: ts.FileIncludeKind[reason.kind],\n });\n var result = findSourceFileWorker(fileName, path, isDefaultLib, ignoreNoDefaultLib, reason, packageId);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n return result;\n }\n function findSourceFileWorker(fileName, path, isDefaultLib, ignoreNoDefaultLib, reason, packageId) {\n if (useSourceOfProjectReferenceRedirect) {\n var source = getSourceOfProjectReferenceRedirect(fileName);\n // If preserveSymlinks is true, module resolution wont jump the symlink\n // but the resolved real path may be the .d.ts from project reference\n // Note:: Currently we try the real path only if the\n // file is from node_modules to avoid having to run real path on all file paths\n if (!source &&\n host.realpath &&\n options.preserveSymlinks &&\n ts.isDeclarationFileName(fileName) &&\n ts.stringContains(fileName, ts.nodeModulesPathPart)) {\n var realPath = host.realpath(fileName);\n if (realPath !== fileName)\n source = getSourceOfProjectReferenceRedirect(realPath);\n }\n if (source) {\n var file_1 = ts.isString(source) ?\n findSourceFile(source, toPath(source), isDefaultLib, ignoreNoDefaultLib, reason, packageId) :\n undefined;\n if (file_1)\n addFileToFilesByName(file_1, path, /*redirectedPath*/ undefined);\n return file_1;\n }\n }\n var originalFileName = fileName;\n if (filesByName.has(path)) {\n var file_2 = filesByName.get(path);\n addFileIncludeReason(file_2 || undefined, reason);\n // try to check if we've already seen this file but with a different casing in path\n // NOTE: this only makes sense for case-insensitive file systems, and only on files which are not redirected\n if (file_2 && options.forceConsistentCasingInFileNames) {\n var checkedName = file_2.fileName;\n var isRedirect = toPath(checkedName) !== toPath(fileName);\n if (isRedirect) {\n fileName = getProjectReferenceRedirect(fileName) || fileName;\n }\n // Check if it differs only in drive letters its ok to ignore that error:\n var checkedAbsolutePath = ts.getNormalizedAbsolutePathWithoutRoot(checkedName, currentDirectory);\n var inputAbsolutePath = ts.getNormalizedAbsolutePathWithoutRoot(fileName, currentDirectory);\n if (checkedAbsolutePath !== inputAbsolutePath) {\n reportFileNamesDifferOnlyInCasingError(fileName, file_2, reason);\n }\n }\n // If the file was previously found via a node_modules search, but is now being processed as a root file,\n // then everything it sucks in may also be marked incorrectly, and needs to be checked again.\n if (file_2 && sourceFilesFoundSearchingNodeModules.get(file_2.path) && currentNodeModulesDepth === 0) {\n sourceFilesFoundSearchingNodeModules.set(file_2.path, false);\n if (!options.noResolve) {\n processReferencedFiles(file_2, isDefaultLib);\n processTypeReferenceDirectives(file_2);\n }\n if (!options.noLib) {\n processLibReferenceDirectives(file_2);\n }\n modulesWithElidedImports.set(file_2.path, false);\n processImportedModules(file_2);\n }\n // See if we need to reprocess the imports due to prior skipped imports\n else if (file_2 && modulesWithElidedImports.get(file_2.path)) {\n if (currentNodeModulesDepth < maxNodeModuleJsDepth) {\n modulesWithElidedImports.set(file_2.path, false);\n processImportedModules(file_2);\n }\n }\n return file_2 || undefined;\n }\n var redirectedPath;\n if (isReferencedFile(reason) && !useSourceOfProjectReferenceRedirect) {\n var redirectProject = getProjectReferenceRedirectProject(fileName);\n if (redirectProject) {\n if (ts.outFile(redirectProject.commandLine.options)) {\n // Shouldnt create many to 1 mapping file in --out scenario\n return undefined;\n }\n var redirect = getProjectReferenceOutputName(redirectProject, fileName);\n fileName = redirect;\n // Once we start redirecting to a file, we can potentially come back to it\n // via a back-reference from another file in the .d.ts folder. If that happens we'll\n // end up trying to add it to the program *again* because we were tracking it via its\n // original (un-redirected) name. So we have to map both the original path and the redirected path\n // to the source file we're about to find/create\n redirectedPath = toPath(redirect);\n }\n }\n // We haven't looked for this file, do so now and cache result\n var file = host.getSourceFile(fileName, options.target, function (hostErrorMessage) { return addFilePreprocessingFileExplainingDiagnostic(/*file*/ undefined, reason, ts.Diagnostics.Cannot_read_file_0_Colon_1, [fileName, hostErrorMessage]); }, shouldCreateNewSourceFile);\n if (packageId) {\n var packageIdKey = ts.packageIdToString(packageId);\n var fileFromPackageId = packageIdToSourceFile.get(packageIdKey);\n if (fileFromPackageId) {\n // Some other SourceFile already exists with this package name and version.\n // Instead of creating a duplicate, just redirect to the existing one.\n var dupFile = createRedirectSourceFile(fileFromPackageId, file, fileName, path, toPath(fileName), originalFileName); // TODO: GH#18217\n redirectTargetsMap.add(fileFromPackageId.path, fileName);\n addFileToFilesByName(dupFile, path, redirectedPath);\n addFileIncludeReason(dupFile, reason);\n sourceFileToPackageName.set(path, packageId.name);\n processingOtherFiles.push(dupFile);\n return dupFile;\n }\n else if (file) {\n // This is the first source file to have this packageId.\n packageIdToSourceFile.set(packageIdKey, file);\n sourceFileToPackageName.set(path, packageId.name);\n }\n }\n addFileToFilesByName(file, path, redirectedPath);\n if (file) {\n sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);\n file.fileName = fileName; // Ensure that source file has same name as what we were looking for\n file.path = path;\n file.resolvedPath = toPath(fileName);\n file.originalFileName = originalFileName;\n addFileIncludeReason(file, reason);\n if (host.useCaseSensitiveFileNames()) {\n var pathLowerCase = ts.toFileNameLowerCase(path);\n // for case-sensitive file systems check if we've already seen some file with similar filename ignoring case\n var existingFile = filesByNameIgnoreCase.get(pathLowerCase);\n if (existingFile) {\n reportFileNamesDifferOnlyInCasingError(fileName, existingFile, reason);\n }\n else {\n filesByNameIgnoreCase.set(pathLowerCase, file);\n }\n }\n skipDefaultLib = skipDefaultLib || (file.hasNoDefaultLib && !ignoreNoDefaultLib);\n if (!options.noResolve) {\n processReferencedFiles(file, isDefaultLib);\n processTypeReferenceDirectives(file);\n }\n if (!options.noLib) {\n processLibReferenceDirectives(file);\n }\n // always process imported modules to record module name resolutions\n processImportedModules(file);\n if (isDefaultLib) {\n processingDefaultLibFiles.push(file);\n }\n else {\n processingOtherFiles.push(file);\n }\n }\n return file;\n }\n function addFileIncludeReason(file, reason) {\n if (file)\n fileReasons.add(file.path, reason);\n }\n function addFileToFilesByName(file, path, redirectedPath) {\n if (redirectedPath) {\n filesByName.set(redirectedPath, file);\n filesByName.set(path, file || false);\n }\n else {\n filesByName.set(path, file);\n }\n }\n function getProjectReferenceRedirect(fileName) {\n var referencedProject = getProjectReferenceRedirectProject(fileName);\n return referencedProject && getProjectReferenceOutputName(referencedProject, fileName);\n }\n function getProjectReferenceRedirectProject(fileName) {\n // Ignore dts or any json files\n if (!resolvedProjectReferences || !resolvedProjectReferences.length || ts.fileExtensionIs(fileName, \".d.ts\" /* Dts */) || ts.fileExtensionIs(fileName, \".json\" /* Json */)) {\n return undefined;\n }\n // If this file is produced by a referenced project, we need to rewrite it to\n // look in the output folder of the referenced project rather than the input\n return getResolvedProjectReferenceToRedirect(fileName);\n }\n function getProjectReferenceOutputName(referencedProject, fileName) {\n var out = ts.outFile(referencedProject.commandLine.options);\n return out ?\n ts.changeExtension(out, \".d.ts\" /* Dts */) :\n ts.getOutputDeclarationFileName(fileName, referencedProject.commandLine, !host.useCaseSensitiveFileNames());\n }\n /**\n * Get the referenced project if the file is input file from that reference project\n */\n function getResolvedProjectReferenceToRedirect(fileName) {\n if (mapFromFileToProjectReferenceRedirects === undefined) {\n mapFromFileToProjectReferenceRedirects = new ts.Map();\n forEachResolvedProjectReference(function (referencedProject) {\n // not input file from the referenced project, ignore\n if (toPath(options.configFilePath) !== referencedProject.sourceFile.path) {\n referencedProject.commandLine.fileNames.forEach(function (f) {\n return mapFromFileToProjectReferenceRedirects.set(toPath(f), referencedProject.sourceFile.path);\n });\n }\n });\n }\n var referencedProjectPath = mapFromFileToProjectReferenceRedirects.get(toPath(fileName));\n return referencedProjectPath && getResolvedProjectReferenceByPath(referencedProjectPath);\n }\n function forEachResolvedProjectReference(cb) {\n return ts.forEachResolvedProjectReference(resolvedProjectReferences, cb);\n }\n function getSourceOfProjectReferenceRedirect(file) {\n if (!ts.isDeclarationFileName(file))\n return undefined;\n if (mapFromToProjectReferenceRedirectSource === undefined) {\n mapFromToProjectReferenceRedirectSource = new ts.Map();\n forEachResolvedProjectReference(function (resolvedRef) {\n var out = ts.outFile(resolvedRef.commandLine.options);\n if (out) {\n // Dont know which source file it means so return true?\n var outputDts = ts.changeExtension(out, \".d.ts\" /* Dts */);\n mapFromToProjectReferenceRedirectSource.set(toPath(outputDts), true);\n }\n else {\n var getCommonSourceDirectory_3 = ts.memoize(function () { return ts.getCommonSourceDirectoryOfConfig(resolvedRef.commandLine, !host.useCaseSensitiveFileNames()); });\n ts.forEach(resolvedRef.commandLine.fileNames, function (fileName) {\n if (!ts.fileExtensionIs(fileName, \".d.ts\" /* Dts */) && !ts.fileExtensionIs(fileName, \".json\" /* Json */)) {\n var outputDts = ts.getOutputDeclarationFileName(fileName, resolvedRef.commandLine, !host.useCaseSensitiveFileNames(), getCommonSourceDirectory_3);\n mapFromToProjectReferenceRedirectSource.set(toPath(outputDts), fileName);\n }\n });\n }\n });\n }\n return mapFromToProjectReferenceRedirectSource.get(toPath(file));\n }\n function isSourceOfProjectReferenceRedirect(fileName) {\n return useSourceOfProjectReferenceRedirect && !!getResolvedProjectReferenceToRedirect(fileName);\n }\n function getResolvedProjectReferenceByPath(projectReferencePath) {\n if (!projectReferenceRedirects) {\n return undefined;\n }\n return projectReferenceRedirects.get(projectReferencePath) || undefined;\n }\n function processReferencedFiles(file, isDefaultLib) {\n ts.forEach(file.referencedFiles, function (ref, index) {\n processSourceFile(resolveTripleslashReference(ref.fileName, file.fileName), isDefaultLib, \n /*ignoreNoDefaultLib*/ false, \n /*packageId*/ undefined, { kind: ts.FileIncludeKind.ReferenceFile, file: file.path, index: index, });\n });\n }\n function processTypeReferenceDirectives(file) {\n // We lower-case all type references because npm automatically lowercases all packages. See GH#9824.\n var typeDirectives = ts.map(file.typeReferenceDirectives, function (ref) { return ts.toFileNameLowerCase(ref.fileName); });\n if (!typeDirectives) {\n return;\n }\n var resolutions = resolveTypeReferenceDirectiveNamesWorker(typeDirectives, file);\n for (var index = 0; index < typeDirectives.length; index++) {\n var ref = file.typeReferenceDirectives[index];\n var resolvedTypeReferenceDirective = resolutions[index];\n // store resolved type directive on the file\n var fileName = ts.toFileNameLowerCase(ref.fileName);\n ts.setResolvedTypeReferenceDirective(file, fileName, resolvedTypeReferenceDirective);\n processTypeReferenceDirective(fileName, resolvedTypeReferenceDirective, { kind: ts.FileIncludeKind.TypeReferenceDirective, file: file.path, index: index, });\n }\n }\n function processTypeReferenceDirective(typeReferenceDirective, resolvedTypeReferenceDirective, reason) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.push(\"program\" /* Program */, \"processTypeReferenceDirective\", { directive: typeReferenceDirective, hasResolved: !!resolveModuleNamesReusingOldState, refKind: reason.kind, refPath: isReferencedFile(reason) ? reason.file : undefined });\n processTypeReferenceDirectiveWorker(typeReferenceDirective, resolvedTypeReferenceDirective, reason);\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.pop();\n }\n function processTypeReferenceDirectiveWorker(typeReferenceDirective, resolvedTypeReferenceDirective, reason) {\n // If we already found this library as a primary reference - nothing to do\n var previousResolution = resolvedTypeReferenceDirectives.get(typeReferenceDirective);\n if (previousResolution && previousResolution.primary) {\n return;\n }\n var saveResolution = true;\n if (resolvedTypeReferenceDirective) {\n if (resolvedTypeReferenceDirective.isExternalLibraryImport)\n currentNodeModulesDepth++;\n if (resolvedTypeReferenceDirective.primary) {\n // resolved from the primary path\n processSourceFile(resolvedTypeReferenceDirective.resolvedFileName, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, resolvedTypeReferenceDirective.packageId, reason); // TODO: GH#18217\n }\n else {\n // If we already resolved to this file, it must have been a secondary reference. Check file contents\n // for sameness and possibly issue an error\n if (previousResolution) {\n // Don't bother reading the file again if it's the same file.\n if (resolvedTypeReferenceDirective.resolvedFileName !== previousResolution.resolvedFileName) {\n var otherFileText = host.readFile(resolvedTypeReferenceDirective.resolvedFileName);\n var existingFile = getSourceFile(previousResolution.resolvedFileName);\n if (otherFileText !== existingFile.text) {\n addFilePreprocessingFileExplainingDiagnostic(existingFile, reason, ts.Diagnostics.Conflicting_definitions_for_0_found_at_1_and_2_Consider_installing_a_specific_version_of_this_library_to_resolve_the_conflict, [typeReferenceDirective, resolvedTypeReferenceDirective.resolvedFileName, previousResolution.resolvedFileName]);\n }\n }\n // don't overwrite previous resolution result\n saveResolution = false;\n }\n else {\n // First resolution of this library\n processSourceFile(resolvedTypeReferenceDirective.resolvedFileName, /*isDefaultLib*/ false, /*ignoreNoDefaultLib*/ false, resolvedTypeReferenceDirective.packageId, reason);\n }\n }\n if (resolvedTypeReferenceDirective.isExternalLibraryImport)\n currentNodeModulesDepth--;\n }\n else {\n addFilePreprocessingFileExplainingDiagnostic(/*file*/ undefined, reason, ts.Diagnostics.Cannot_find_type_definition_file_for_0, [typeReferenceDirective]);\n }\n if (saveResolution) {\n resolvedTypeReferenceDirectives.set(typeReferenceDirective, resolvedTypeReferenceDirective);\n }\n }\n function processLibReferenceDirectives(file) {\n ts.forEach(file.libReferenceDirectives, function (libReference, index) {\n var libName = ts.toFileNameLowerCase(libReference.fileName);\n var libFileName = ts.libMap.get(libName);\n if (libFileName) {\n // we ignore any 'no-default-lib' reference set on this file.\n processRootFile(ts.combinePaths(defaultLibraryPath, libFileName), /*isDefaultLib*/ true, /*ignoreNoDefaultLib*/ true, { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, });\n }\n else {\n var unqualifiedLibName = ts.removeSuffix(ts.removePrefix(libName, \"lib.\"), \".d.ts\");\n var suggestion = ts.getSpellingSuggestion(unqualifiedLibName, ts.libs, ts.identity);\n var diagnostic = suggestion ? ts.Diagnostics.Cannot_find_lib_definition_for_0_Did_you_mean_1 : ts.Diagnostics.Cannot_find_lib_definition_for_0;\n (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({\n kind: 0 /* FilePreprocessingReferencedDiagnostic */,\n reason: { kind: ts.FileIncludeKind.LibReferenceDirective, file: file.path, index: index, },\n diagnostic: diagnostic,\n args: [libName, suggestion]\n });\n }\n });\n }\n function getCanonicalFileName(fileName) {\n return host.getCanonicalFileName(fileName);\n }\n function processImportedModules(file) {\n var _a;\n collectExternalModuleReferences(file);\n if (file.imports.length || file.moduleAugmentations.length) {\n // Because global augmentation doesn't have string literal name, we can check for global augmentation as such.\n var moduleNames = getModuleNames(file);\n var resolutions = resolveModuleNamesReusingOldState(moduleNames, file);\n ts.Debug.assert(resolutions.length === moduleNames.length);\n var optionsForFile = (useSourceOfProjectReferenceRedirect ? (_a = getRedirectReferenceForResolution(file)) === null || _a === void 0 ? void 0 : _a.commandLine.options : undefined) || options;\n for (var index = 0; index < moduleNames.length; index++) {\n var resolution = resolutions[index];\n ts.setResolvedModule(file, moduleNames[index], resolution);\n if (!resolution) {\n continue;\n }\n var isFromNodeModulesSearch = resolution.isExternalLibraryImport;\n var isJsFile = !ts.resolutionExtensionIsTSOrJson(resolution.extension);\n var isJsFileFromNodeModules = isFromNodeModulesSearch && isJsFile;\n var resolvedFileName = resolution.resolvedFileName;\n if (isFromNodeModulesSearch) {\n currentNodeModulesDepth++;\n }\n // add file to program only if:\n // - resolution was successful\n // - noResolve is falsy\n // - module name comes from the list of imports\n // - it's not a top level JavaScript module that exceeded the search max\n var elideImport = isJsFileFromNodeModules && currentNodeModulesDepth > maxNodeModuleJsDepth;\n // Don't add the file if it has a bad extension (e.g. 'tsx' if we don't have '--allowJs')\n // This may still end up being an untyped module -- the file won't be included but imports will be allowed.\n var shouldAddFile = resolvedFileName\n && !getResolutionDiagnostic(optionsForFile, resolution)\n && !optionsForFile.noResolve\n && index < file.imports.length\n && !elideImport\n && !(isJsFile && !ts.getAllowJSCompilerOption(optionsForFile))\n && (ts.isInJSFile(file.imports[index]) || !(file.imports[index].flags & 4194304 /* JSDoc */));\n if (elideImport) {\n modulesWithElidedImports.set(file.path, true);\n }\n else if (shouldAddFile) {\n var path = toPath(resolvedFileName);\n findSourceFile(resolvedFileName, path, \n /*isDefaultLib*/ false, \n /*ignoreNoDefaultLib*/ false, { kind: ts.FileIncludeKind.Import, file: file.path, index: index, }, resolution.packageId);\n }\n if (isFromNodeModulesSearch) {\n currentNodeModulesDepth--;\n }\n }\n }\n else {\n // no imports - drop cached module resolutions\n file.resolvedModules = undefined;\n }\n }\n function checkSourceFilesBelongToPath(sourceFiles, rootDirectory) {\n var allFilesBelongToPath = true;\n var absoluteRootDirectoryPath = host.getCanonicalFileName(ts.getNormalizedAbsolutePath(rootDirectory, currentDirectory));\n for (var _i = 0, sourceFiles_2 = sourceFiles; _i < sourceFiles_2.length; _i++) {\n var sourceFile = sourceFiles_2[_i];\n if (!sourceFile.isDeclarationFile) {\n var absoluteSourceFilePath = host.getCanonicalFileName(ts.getNormalizedAbsolutePath(sourceFile.fileName, currentDirectory));\n if (absoluteSourceFilePath.indexOf(absoluteRootDirectoryPath) !== 0) {\n addProgramDiagnosticExplainingFile(sourceFile, ts.Diagnostics.File_0_is_not_under_rootDir_1_rootDir_is_expected_to_contain_all_source_files, [sourceFile.fileName, rootDirectory]);\n allFilesBelongToPath = false;\n }\n }\n }\n return allFilesBelongToPath;\n }\n function parseProjectReferenceConfigFile(ref) {\n if (!projectReferenceRedirects) {\n projectReferenceRedirects = new ts.Map();\n }\n // The actual filename (i.e. add \"/tsconfig.json\" if necessary)\n var refPath = resolveProjectReferencePath(ref);\n var sourceFilePath = toPath(refPath);\n var fromCache = projectReferenceRedirects.get(sourceFilePath);\n if (fromCache !== undefined) {\n return fromCache || undefined;\n }\n var commandLine;\n var sourceFile;\n if (host.getParsedCommandLine) {\n commandLine = host.getParsedCommandLine(refPath);\n if (!commandLine) {\n addFileToFilesByName(/*sourceFile*/ undefined, sourceFilePath, /*redirectedPath*/ undefined);\n projectReferenceRedirects.set(sourceFilePath, false);\n return undefined;\n }\n sourceFile = ts.Debug.checkDefined(commandLine.options.configFile);\n ts.Debug.assert(!sourceFile.path || sourceFile.path === sourceFilePath);\n addFileToFilesByName(sourceFile, sourceFilePath, /*redirectedPath*/ undefined);\n }\n else {\n // An absolute path pointing to the containing directory of the config file\n var basePath = ts.getNormalizedAbsolutePath(ts.getDirectoryPath(refPath), host.getCurrentDirectory());\n sourceFile = host.getSourceFile(refPath, 100 /* JSON */);\n addFileToFilesByName(sourceFile, sourceFilePath, /*redirectedPath*/ undefined);\n if (sourceFile === undefined) {\n projectReferenceRedirects.set(sourceFilePath, false);\n return undefined;\n }\n commandLine = ts.parseJsonSourceFileConfigFileContent(sourceFile, configParsingHost, basePath, /*existingOptions*/ undefined, refPath);\n }\n sourceFile.fileName = refPath;\n sourceFile.path = sourceFilePath;\n sourceFile.resolvedPath = sourceFilePath;\n sourceFile.originalFileName = refPath;\n var resolvedRef = { commandLine: commandLine, sourceFile: sourceFile };\n projectReferenceRedirects.set(sourceFilePath, resolvedRef);\n if (commandLine.projectReferences) {\n resolvedRef.references = commandLine.projectReferences.map(parseProjectReferenceConfigFile);\n }\n return resolvedRef;\n }\n function verifyCompilerOptions() {\n if (options.strictPropertyInitialization && !ts.getStrictOptionValue(options, \"strictNullChecks\")) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"strictPropertyInitialization\", \"strictNullChecks\");\n }\n if (options.exactOptionalPropertyTypes && !ts.getStrictOptionValue(options, \"strictNullChecks\")) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"exactOptionalPropertyTypes\", \"strictNullChecks\");\n }\n if (options.isolatedModules) {\n if (options.out) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"out\", \"isolatedModules\");\n }\n if (options.outFile) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"outFile\", \"isolatedModules\");\n }\n }\n if (options.inlineSourceMap) {\n if (options.sourceMap) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"sourceMap\", \"inlineSourceMap\");\n }\n if (options.mapRoot) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"mapRoot\", \"inlineSourceMap\");\n }\n }\n if (options.composite) {\n if (options.declaration === false) {\n createDiagnosticForOptionName(ts.Diagnostics.Composite_projects_may_not_disable_declaration_emit, \"declaration\");\n }\n if (options.incremental === false) {\n createDiagnosticForOptionName(ts.Diagnostics.Composite_projects_may_not_disable_incremental_compilation, \"declaration\");\n }\n }\n var outputFile = ts.outFile(options);\n if (options.tsBuildInfoFile) {\n if (!ts.isIncrementalCompilation(options)) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"tsBuildInfoFile\", \"incremental\", \"composite\");\n }\n }\n else if (options.incremental && !outputFile && !options.configFilePath) {\n programDiagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_incremental_can_only_be_specified_using_tsconfig_emitting_to_single_file_or_when_option_tsBuildInfoFile_is_specified));\n }\n verifyProjectReferences();\n // List of collected files is complete; validate exhautiveness if this is a project with a file list\n if (options.composite) {\n var rootPaths = new ts.Set(rootNames.map(toPath));\n for (var _i = 0, files_4 = files; _i < files_4.length; _i++) {\n var file = files_4[_i];\n // Ignore file that is not emitted\n if (ts.sourceFileMayBeEmitted(file, program) && !rootPaths.has(file.path)) {\n addProgramDiagnosticExplainingFile(file, ts.Diagnostics.File_0_is_not_listed_within_the_file_list_of_project_1_Projects_must_list_all_files_or_use_an_include_pattern, [file.fileName, options.configFilePath || \"\"]);\n }\n }\n }\n if (options.paths) {\n for (var key in options.paths) {\n if (!ts.hasProperty(options.paths, key)) {\n continue;\n }\n if (!ts.hasZeroOrOneAsteriskCharacter(key)) {\n createDiagnosticForOptionPaths(/*onKey*/ true, key, ts.Diagnostics.Pattern_0_can_have_at_most_one_Asterisk_character, key);\n }\n if (ts.isArray(options.paths[key])) {\n var len = options.paths[key].length;\n if (len === 0) {\n createDiagnosticForOptionPaths(/*onKey*/ false, key, ts.Diagnostics.Substitutions_for_pattern_0_shouldn_t_be_an_empty_array, key);\n }\n for (var i = 0; i < len; i++) {\n var subst = options.paths[key][i];\n var typeOfSubst = typeof subst;\n if (typeOfSubst === \"string\") {\n if (!ts.hasZeroOrOneAsteriskCharacter(subst)) {\n createDiagnosticForOptionPathKeyValue(key, i, ts.Diagnostics.Substitution_0_in_pattern_1_can_have_at_most_one_Asterisk_character, subst, key);\n }\n if (!options.baseUrl && !ts.pathIsRelative(subst) && !ts.pathIsAbsolute(subst)) {\n createDiagnosticForOptionPathKeyValue(key, i, ts.Diagnostics.Non_relative_paths_are_not_allowed_when_baseUrl_is_not_set_Did_you_forget_a_leading_Slash);\n }\n }\n else {\n createDiagnosticForOptionPathKeyValue(key, i, ts.Diagnostics.Substitution_0_for_pattern_1_has_incorrect_type_expected_string_got_2, subst, key, typeOfSubst);\n }\n }\n }\n else {\n createDiagnosticForOptionPaths(/*onKey*/ false, key, ts.Diagnostics.Substitutions_for_pattern_0_should_be_an_array, key);\n }\n }\n }\n if (!options.sourceMap && !options.inlineSourceMap) {\n if (options.inlineSources) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, \"inlineSources\");\n }\n if (options.sourceRoot) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_can_only_be_used_when_either_option_inlineSourceMap_or_option_sourceMap_is_provided, \"sourceRoot\");\n }\n }\n if (options.out && options.outFile) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"out\", \"outFile\");\n }\n if (options.mapRoot && !(options.sourceMap || options.declarationMap)) {\n // Error to specify --mapRoot without --sourcemap\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"mapRoot\", \"sourceMap\", \"declarationMap\");\n }\n if (options.declarationDir) {\n if (!ts.getEmitDeclarations(options)) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"declarationDir\", \"declaration\", \"composite\");\n }\n if (outputFile) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"declarationDir\", options.out ? \"out\" : \"outFile\");\n }\n }\n if (options.declarationMap && !ts.getEmitDeclarations(options)) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"declarationMap\", \"declaration\", \"composite\");\n }\n if (options.lib && options.noLib) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"lib\", \"noLib\");\n }\n if (options.noImplicitUseStrict && ts.getStrictOptionValue(options, \"alwaysStrict\")) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"noImplicitUseStrict\", \"alwaysStrict\");\n }\n var languageVersion = options.target || 0 /* ES3 */;\n var firstNonAmbientExternalModuleSourceFile = ts.find(files, function (f) { return ts.isExternalModule(f) && !f.isDeclarationFile; });\n if (options.isolatedModules) {\n if (options.module === ts.ModuleKind.None && languageVersion < 2 /* ES2015 */) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_isolatedModules_can_only_be_used_when_either_option_module_is_provided_or_option_target_is_ES2015_or_higher, \"isolatedModules\", \"target\");\n }\n if (options.preserveConstEnums === false) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_preserveConstEnums_cannot_be_disabled_when_isolatedModules_is_enabled, \"preserveConstEnums\", \"isolatedModules\");\n }\n var firstNonExternalModuleSourceFile = ts.find(files, function (f) { return !ts.isExternalModule(f) && !ts.isSourceFileJS(f) && !f.isDeclarationFile && f.scriptKind !== 6 /* JSON */; });\n if (firstNonExternalModuleSourceFile) {\n var span = ts.getErrorSpanForNode(firstNonExternalModuleSourceFile, firstNonExternalModuleSourceFile);\n programDiagnostics.add(ts.createFileDiagnostic(firstNonExternalModuleSourceFile, span.start, span.length, ts.Diagnostics._0_cannot_be_compiled_under_isolatedModules_because_it_is_considered_a_global_script_file_Add_an_import_export_or_an_empty_export_statement_to_make_it_a_module, ts.getBaseFileName(firstNonExternalModuleSourceFile.fileName)));\n }\n }\n else if (firstNonAmbientExternalModuleSourceFile && languageVersion < 2 /* ES2015 */ && options.module === ts.ModuleKind.None) {\n // We cannot use createDiagnosticFromNode because nodes do not have parents yet\n var span = ts.getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);\n programDiagnostics.add(ts.createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_use_imports_exports_or_module_augmentations_when_module_is_none));\n }\n // Cannot specify module gen that isn't amd or system with --out\n if (outputFile && !options.emitDeclarationOnly) {\n if (options.module && !(options.module === ts.ModuleKind.AMD || options.module === ts.ModuleKind.System)) {\n createDiagnosticForOptionName(ts.Diagnostics.Only_amd_and_system_modules_are_supported_alongside_0, options.out ? \"out\" : \"outFile\", \"module\");\n }\n else if (options.module === undefined && firstNonAmbientExternalModuleSourceFile) {\n var span = ts.getErrorSpanForNode(firstNonAmbientExternalModuleSourceFile, firstNonAmbientExternalModuleSourceFile.externalModuleIndicator);\n programDiagnostics.add(ts.createFileDiagnostic(firstNonAmbientExternalModuleSourceFile, span.start, span.length, ts.Diagnostics.Cannot_compile_modules_using_option_0_unless_the_module_flag_is_amd_or_system, options.out ? \"out\" : \"outFile\"));\n }\n }\n if (options.resolveJsonModule) {\n if (ts.getEmitModuleResolutionKind(options) !== ts.ModuleResolutionKind.NodeJs) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_resolveJsonModule_cannot_be_specified_without_node_module_resolution_strategy, \"resolveJsonModule\");\n }\n // Any emit other than common js, amd, es2015 or esnext is error\n else if (!ts.hasJsonModuleEmitEnabled(options)) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_resolveJsonModule_can_only_be_specified_when_module_code_generation_is_commonjs_amd_es2015_or_esNext, \"resolveJsonModule\", \"module\");\n }\n }\n // there has to be common source directory if user specified --outdir || --rootDir || --sourceRoot\n // if user specified --mapRoot, there needs to be common source directory if there would be multiple files being emitted\n if (options.outDir || // there is --outDir specified\n options.rootDir || // there is --rootDir specified\n options.sourceRoot || // there is --sourceRoot specified\n options.mapRoot) { // there is --mapRoot specified\n // Precalculate and cache the common source directory\n var dir = getCommonSourceDirectory();\n // If we failed to find a good common directory, but outDir is specified and at least one of our files is on a windows drive/URL/other resource, add a failure\n if (options.outDir && dir === \"\" && files.some(function (file) { return ts.getRootLength(file.fileName) > 1; })) {\n createDiagnosticForOptionName(ts.Diagnostics.Cannot_find_the_common_subdirectory_path_for_the_input_files, \"outDir\");\n }\n }\n if (options.useDefineForClassFields && languageVersion === 0 /* ES3 */) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_when_option_target_is_ES3, \"useDefineForClassFields\");\n }\n if (options.checkJs && !ts.getAllowJSCompilerOption(options)) {\n programDiagnostics.add(ts.createCompilerDiagnostic(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"checkJs\", \"allowJs\"));\n }\n if (options.emitDeclarationOnly) {\n if (!ts.getEmitDeclarations(options)) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1_or_option_2, \"emitDeclarationOnly\", \"declaration\", \"composite\");\n }\n if (options.noEmit) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"emitDeclarationOnly\", \"noEmit\");\n }\n }\n if (options.emitDecoratorMetadata &&\n !options.experimentalDecorators) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"emitDecoratorMetadata\", \"experimentalDecorators\");\n }\n if (options.jsxFactory) {\n if (options.reactNamespace) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_with_option_1, \"reactNamespace\", \"jsxFactory\");\n }\n if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"jsxFactory\", ts.inverseJsxOptionMap.get(\"\" + options.jsx));\n }\n if (!ts.parseIsolatedEntityName(options.jsxFactory, languageVersion)) {\n createOptionValueDiagnostic(\"jsxFactory\", ts.Diagnostics.Invalid_value_for_jsxFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFactory);\n }\n }\n else if (options.reactNamespace && !ts.isIdentifierText(options.reactNamespace, languageVersion)) {\n createOptionValueDiagnostic(\"reactNamespace\", ts.Diagnostics.Invalid_value_for_reactNamespace_0_is_not_a_valid_identifier, options.reactNamespace);\n }\n if (options.jsxFragmentFactory) {\n if (!options.jsxFactory) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_without_specifying_option_1, \"jsxFragmentFactory\", \"jsxFactory\");\n }\n if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"jsxFragmentFactory\", ts.inverseJsxOptionMap.get(\"\" + options.jsx));\n }\n if (!ts.parseIsolatedEntityName(options.jsxFragmentFactory, languageVersion)) {\n createOptionValueDiagnostic(\"jsxFragmentFactory\", ts.Diagnostics.Invalid_value_for_jsxFragmentFactory_0_is_not_a_valid_identifier_or_qualified_name, options.jsxFragmentFactory);\n }\n }\n if (options.reactNamespace) {\n if (options.jsx === 4 /* ReactJSX */ || options.jsx === 5 /* ReactJSXDev */) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"reactNamespace\", ts.inverseJsxOptionMap.get(\"\" + options.jsx));\n }\n }\n if (options.jsxImportSource) {\n if (options.jsx === 2 /* React */) {\n createDiagnosticForOptionName(ts.Diagnostics.Option_0_cannot_be_specified_when_option_jsx_is_1, \"jsxImportSource\", ts.inverseJsxOptionMap.get(\"\" + options.jsx));\n }\n }\n // If the emit is enabled make sure that every output file is unique and not overwriting any of the input files\n if (!options.noEmit && !options.suppressOutputPathCheck) {\n var emitHost = getEmitHost();\n var emitFilesSeen_1 = new ts.Set();\n ts.forEachEmittedFile(emitHost, function (emitFileNames) {\n if (!options.emitDeclarationOnly) {\n verifyEmitFilePath(emitFileNames.jsFilePath, emitFilesSeen_1);\n }\n verifyEmitFilePath(emitFileNames.declarationFilePath, emitFilesSeen_1);\n });\n }\n // Verify that all the emit files are unique and don't overwrite input files\n function verifyEmitFilePath(emitFileName, emitFilesSeen) {\n if (emitFileName) {\n var emitFilePath = toPath(emitFileName);\n // Report error if the output overwrites input file\n if (filesByName.has(emitFilePath)) {\n var chain = void 0;\n if (!options.configFilePath) {\n // The program is from either an inferred project or an external project\n chain = ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Adding_a_tsconfig_json_file_will_help_organize_projects_that_contain_both_TypeScript_and_JavaScript_files_Learn_more_at_https_Colon_Slash_Slashaka_ms_Slashtsconfig);\n }\n chain = ts.chainDiagnosticMessages(chain, ts.Diagnostics.Cannot_write_file_0_because_it_would_overwrite_input_file, emitFileName);\n blockEmittingOfFile(emitFileName, ts.createCompilerDiagnosticFromMessageChain(chain));\n }\n var emitFileKey = !host.useCaseSensitiveFileNames() ? ts.toFileNameLowerCase(emitFilePath) : emitFilePath;\n // Report error if multiple files write into same file\n if (emitFilesSeen.has(emitFileKey)) {\n // Already seen the same emit file - report error\n blockEmittingOfFile(emitFileName, ts.createCompilerDiagnostic(ts.Diagnostics.Cannot_write_file_0_because_it_would_be_overwritten_by_multiple_input_files, emitFileName));\n }\n else {\n emitFilesSeen.add(emitFileKey);\n }\n }\n }\n }\n function createDiagnosticExplainingFile(file, fileProcessingReason, diagnostic, args) {\n var _a;\n var fileIncludeReasons;\n var relatedInfo;\n var locationReason = isReferencedFile(fileProcessingReason) ? fileProcessingReason : undefined;\n if (file)\n (_a = fileReasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(processReason);\n if (fileProcessingReason)\n processReason(fileProcessingReason);\n // If we have location and there is only one reason file is in which is the location, dont add details for file include\n if (locationReason && (fileIncludeReasons === null || fileIncludeReasons === void 0 ? void 0 : fileIncludeReasons.length) === 1)\n fileIncludeReasons = undefined;\n var location = locationReason && getReferencedFileLocation(getSourceFileByPath, locationReason);\n var fileIncludeReasonDetails = fileIncludeReasons && ts.chainDiagnosticMessages(fileIncludeReasons, ts.Diagnostics.The_file_is_in_the_program_because_Colon);\n var redirectInfo = file && ts.explainIfFileIsRedirect(file);\n var chain = ts.chainDiagnosticMessages.apply(void 0, __spreadArray([redirectInfo ? fileIncludeReasonDetails ? __spreadArray([fileIncludeReasonDetails], redirectInfo, true) : redirectInfo : fileIncludeReasonDetails, diagnostic], args || ts.emptyArray, false));\n return location && isReferenceFileLocation(location) ?\n ts.createFileDiagnosticFromMessageChain(location.file, location.pos, location.end - location.pos, chain, relatedInfo) :\n ts.createCompilerDiagnosticFromMessageChain(chain, relatedInfo);\n function processReason(reason) {\n (fileIncludeReasons || (fileIncludeReasons = [])).push(ts.fileIncludeReasonToDiagnostics(program, reason));\n if (!locationReason && isReferencedFile(reason)) {\n // Report error at first reference file or file currently in processing and dont report in related information\n locationReason = reason;\n }\n else if (locationReason !== reason) {\n relatedInfo = ts.append(relatedInfo, fileIncludeReasonToRelatedInformation(reason));\n }\n // Remove fileProcessingReason if its already included in fileReasons of the program\n if (reason === fileProcessingReason)\n fileProcessingReason = undefined;\n }\n }\n function addFilePreprocessingFileExplainingDiagnostic(file, fileProcessingReason, diagnostic, args) {\n (fileProcessingDiagnostics || (fileProcessingDiagnostics = [])).push({\n kind: 1 /* FilePreprocessingFileExplainingDiagnostic */,\n file: file && file.path,\n fileProcessingReason: fileProcessingReason,\n diagnostic: diagnostic,\n args: args\n });\n }\n function addProgramDiagnosticExplainingFile(file, diagnostic, args) {\n programDiagnostics.add(createDiagnosticExplainingFile(file, /*fileProcessingReason*/ undefined, diagnostic, args));\n }\n function fileIncludeReasonToRelatedInformation(reason) {\n if (isReferencedFile(reason)) {\n var referenceLocation = getReferencedFileLocation(getSourceFileByPath, reason);\n var message_2;\n switch (reason.kind) {\n case ts.FileIncludeKind.Import:\n message_2 = ts.Diagnostics.File_is_included_via_import_here;\n break;\n case ts.FileIncludeKind.ReferenceFile:\n message_2 = ts.Diagnostics.File_is_included_via_reference_here;\n break;\n case ts.FileIncludeKind.TypeReferenceDirective:\n message_2 = ts.Diagnostics.File_is_included_via_type_library_reference_here;\n break;\n case ts.FileIncludeKind.LibReferenceDirective:\n message_2 = ts.Diagnostics.File_is_included_via_library_reference_here;\n break;\n default:\n ts.Debug.assertNever(reason);\n }\n return isReferenceFileLocation(referenceLocation) ? ts.createFileDiagnostic(referenceLocation.file, referenceLocation.pos, referenceLocation.end - referenceLocation.pos, message_2) : undefined;\n }\n if (!options.configFile)\n return undefined;\n var configFileNode;\n var message;\n switch (reason.kind) {\n case ts.FileIncludeKind.RootFile:\n if (!options.configFile.configFileSpecs)\n return undefined;\n var fileName = ts.getNormalizedAbsolutePath(rootNames[reason.index], currentDirectory);\n var matchedByFiles = ts.getMatchedFileSpec(program, fileName);\n if (matchedByFiles) {\n configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, \"files\", matchedByFiles);\n message = ts.Diagnostics.File_is_matched_by_files_list_specified_here;\n break;\n }\n var matchedByInclude = ts.getMatchedIncludeSpec(program, fileName);\n // Could be additional files specified as roots\n if (!matchedByInclude)\n return undefined;\n configFileNode = ts.getTsConfigPropArrayElementValue(options.configFile, \"include\", matchedByInclude);\n message = ts.Diagnostics.File_is_matched_by_include_pattern_specified_here;\n break;\n case ts.FileIncludeKind.SourceFromProjectReference:\n case ts.FileIncludeKind.OutputFromProjectReference:\n var referencedResolvedRef_1 = ts.Debug.checkDefined(resolvedProjectReferences === null || resolvedProjectReferences === void 0 ? void 0 : resolvedProjectReferences[reason.index]);\n var referenceInfo = forEachProjectReference(projectReferences, resolvedProjectReferences, function (resolvedRef, parent, index) {\n return resolvedRef === referencedResolvedRef_1 ? { sourceFile: (parent === null || parent === void 0 ? void 0 : parent.sourceFile) || options.configFile, index: index } : undefined;\n });\n if (!referenceInfo)\n return undefined;\n var sourceFile = referenceInfo.sourceFile, index = referenceInfo.index;\n var referencesSyntax = ts.firstDefined(ts.getTsConfigPropArray(sourceFile, \"references\"), function (property) { return ts.isArrayLiteralExpression(property.initializer) ? property.initializer : undefined; });\n return referencesSyntax && referencesSyntax.elements.length > index ?\n ts.createDiagnosticForNodeInSourceFile(sourceFile, referencesSyntax.elements[index], reason.kind === ts.FileIncludeKind.OutputFromProjectReference ?\n ts.Diagnostics.File_is_output_from_referenced_project_specified_here :\n ts.Diagnostics.File_is_source_from_referenced_project_specified_here) :\n undefined;\n case ts.FileIncludeKind.AutomaticTypeDirectiveFile:\n if (!options.types)\n return undefined;\n configFileNode = getOptionsSyntaxByArrayElementValue(\"types\", reason.typeReference);\n message = ts.Diagnostics.File_is_entry_point_of_type_library_specified_here;\n break;\n case ts.FileIncludeKind.LibFile:\n if (reason.index !== undefined) {\n configFileNode = getOptionsSyntaxByArrayElementValue(\"lib\", options.lib[reason.index]);\n message = ts.Diagnostics.File_is_library_specified_here;\n break;\n }\n var target = ts.forEachEntry(ts.targetOptionDeclaration.type, function (value, key) { return value === options.target ? key : undefined; });\n configFileNode = target ? getOptionsSyntaxByValue(\"target\", target) : undefined;\n message = ts.Diagnostics.File_is_default_library_for_target_specified_here;\n break;\n default:\n ts.Debug.assertNever(reason);\n }\n return configFileNode && ts.createDiagnosticForNodeInSourceFile(options.configFile, configFileNode, message);\n }\n function verifyProjectReferences() {\n var buildInfoPath = !options.suppressOutputPathCheck ? ts.getTsBuildInfoEmitOutputFilePath(options) : undefined;\n forEachProjectReference(projectReferences, resolvedProjectReferences, function (resolvedRef, parent, index) {\n var ref = (parent ? parent.commandLine.projectReferences : projectReferences)[index];\n var parentFile = parent && parent.sourceFile;\n if (!resolvedRef) {\n createDiagnosticForReference(parentFile, index, ts.Diagnostics.File_0_not_found, ref.path);\n return;\n }\n var options = resolvedRef.commandLine.options;\n if (!options.composite || options.noEmit) {\n // ok to not have composite if the current program is container only\n var inputs = parent ? parent.commandLine.fileNames : rootNames;\n if (inputs.length) {\n if (!options.composite)\n createDiagnosticForReference(parentFile, index, ts.Diagnostics.Referenced_project_0_must_have_setting_composite_Colon_true, ref.path);\n if (options.noEmit)\n createDiagnosticForReference(parentFile, index, ts.Diagnostics.Referenced_project_0_may_not_disable_emit, ref.path);\n }\n }\n if (ref.prepend) {\n var out = ts.outFile(options);\n if (out) {\n if (!host.fileExists(out)) {\n createDiagnosticForReference(parentFile, index, ts.Diagnostics.Output_file_0_from_project_1_does_not_exist, out, ref.path);\n }\n }\n else {\n createDiagnosticForReference(parentFile, index, ts.Diagnostics.Cannot_prepend_project_0_because_it_does_not_have_outFile_set, ref.path);\n }\n }\n if (!parent && buildInfoPath && buildInfoPath === ts.getTsBuildInfoEmitOutputFilePath(options)) {\n createDiagnosticForReference(parentFile, index, ts.Diagnostics.Cannot_write_file_0_because_it_will_overwrite_tsbuildinfo_file_generated_by_referenced_project_1, buildInfoPath, ref.path);\n hasEmitBlockingDiagnostics.set(toPath(buildInfoPath), true);\n }\n });\n }\n function createDiagnosticForOptionPathKeyValue(key, valueIndex, message, arg0, arg1, arg2) {\n var needCompilerDiagnostic = true;\n var pathsSyntax = getOptionPathsSyntax();\n for (var _i = 0, pathsSyntax_1 = pathsSyntax; _i < pathsSyntax_1.length; _i++) {\n var pathProp = pathsSyntax_1[_i];\n if (ts.isObjectLiteralExpression(pathProp.initializer)) {\n for (var _a = 0, _b = ts.getPropertyAssignment(pathProp.initializer, key); _a < _b.length; _a++) {\n var keyProps = _b[_a];\n var initializer = keyProps.initializer;\n if (ts.isArrayLiteralExpression(initializer) && initializer.elements.length > valueIndex) {\n programDiagnostics.add(ts.createDiagnosticForNodeInSourceFile(options.configFile, initializer.elements[valueIndex], message, arg0, arg1, arg2));\n needCompilerDiagnostic = false;\n }\n }\n }\n }\n if (needCompilerDiagnostic) {\n programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0, arg1, arg2));\n }\n }\n function createDiagnosticForOptionPaths(onKey, key, message, arg0) {\n var needCompilerDiagnostic = true;\n var pathsSyntax = getOptionPathsSyntax();\n for (var _i = 0, pathsSyntax_2 = pathsSyntax; _i < pathsSyntax_2.length; _i++) {\n var pathProp = pathsSyntax_2[_i];\n if (ts.isObjectLiteralExpression(pathProp.initializer) &&\n createOptionDiagnosticInObjectLiteralSyntax(pathProp.initializer, onKey, key, /*key2*/ undefined, message, arg0)) {\n needCompilerDiagnostic = false;\n }\n }\n if (needCompilerDiagnostic) {\n programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0));\n }\n }\n function getOptionsSyntaxByName(name) {\n var compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n return compilerOptionsObjectLiteralSyntax && ts.getPropertyAssignment(compilerOptionsObjectLiteralSyntax, name);\n }\n function getOptionPathsSyntax() {\n return getOptionsSyntaxByName(\"paths\") || ts.emptyArray;\n }\n function getOptionsSyntaxByValue(name, value) {\n var syntaxByName = getOptionsSyntaxByName(name);\n return syntaxByName && ts.firstDefined(syntaxByName, function (property) { return ts.isStringLiteral(property.initializer) && property.initializer.text === value ? property.initializer : undefined; });\n }\n function getOptionsSyntaxByArrayElementValue(name, value) {\n var compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n return compilerOptionsObjectLiteralSyntax && ts.getPropertyArrayElementValue(compilerOptionsObjectLiteralSyntax, name, value);\n }\n function createDiagnosticForOptionName(message, option1, option2, option3) {\n createDiagnosticForOption(/*onKey*/ true, option1, option2, message, option1, option2, option3);\n }\n function createOptionValueDiagnostic(option1, message, arg0) {\n createDiagnosticForOption(/*onKey*/ false, option1, /*option2*/ undefined, message, arg0);\n }\n function createDiagnosticForReference(sourceFile, index, message, arg0, arg1) {\n var referencesSyntax = ts.firstDefined(ts.getTsConfigPropArray(sourceFile || options.configFile, \"references\"), function (property) { return ts.isArrayLiteralExpression(property.initializer) ? property.initializer : undefined; });\n if (referencesSyntax && referencesSyntax.elements.length > index) {\n programDiagnostics.add(ts.createDiagnosticForNodeInSourceFile(sourceFile || options.configFile, referencesSyntax.elements[index], message, arg0, arg1));\n }\n else {\n programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0, arg1));\n }\n }\n function createDiagnosticForOption(onKey, option1, option2, message, arg0, arg1, arg2) {\n var compilerOptionsObjectLiteralSyntax = getCompilerOptionsObjectLiteralSyntax();\n var needCompilerDiagnostic = !compilerOptionsObjectLiteralSyntax ||\n !createOptionDiagnosticInObjectLiteralSyntax(compilerOptionsObjectLiteralSyntax, onKey, option1, option2, message, arg0, arg1, arg2);\n if (needCompilerDiagnostic) {\n programDiagnostics.add(ts.createCompilerDiagnostic(message, arg0, arg1, arg2));\n }\n }\n function getCompilerOptionsObjectLiteralSyntax() {\n if (_compilerOptionsObjectLiteralSyntax === undefined) {\n _compilerOptionsObjectLiteralSyntax = false;\n var jsonObjectLiteral = ts.getTsConfigObjectLiteralExpression(options.configFile);\n if (jsonObjectLiteral) {\n for (var _i = 0, _a = ts.getPropertyAssignment(jsonObjectLiteral, \"compilerOptions\"); _i < _a.length; _i++) {\n var prop = _a[_i];\n if (ts.isObjectLiteralExpression(prop.initializer)) {\n _compilerOptionsObjectLiteralSyntax = prop.initializer;\n break;\n }\n }\n }\n }\n return _compilerOptionsObjectLiteralSyntax || undefined;\n }\n function createOptionDiagnosticInObjectLiteralSyntax(objectLiteral, onKey, key1, key2, message, arg0, arg1, arg2) {\n var props = ts.getPropertyAssignment(objectLiteral, key1, key2);\n for (var _i = 0, props_3 = props; _i < props_3.length; _i++) {\n var prop = props_3[_i];\n programDiagnostics.add(ts.createDiagnosticForNodeInSourceFile(options.configFile, onKey ? prop.name : prop.initializer, message, arg0, arg1, arg2));\n }\n return !!props.length;\n }\n function blockEmittingOfFile(emitFileName, diag) {\n hasEmitBlockingDiagnostics.set(toPath(emitFileName), true);\n programDiagnostics.add(diag);\n }\n function isEmittedFile(file) {\n if (options.noEmit) {\n return false;\n }\n // If this is source file, its not emitted file\n var filePath = toPath(file);\n if (getSourceFileByPath(filePath)) {\n return false;\n }\n // If options have --outFile or --out just check that\n var out = ts.outFile(options);\n if (out) {\n return isSameFile(filePath, out) || isSameFile(filePath, ts.removeFileExtension(out) + \".d.ts\" /* Dts */);\n }\n // If declarationDir is specified, return if its a file in that directory\n if (options.declarationDir && ts.containsPath(options.declarationDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames())) {\n return true;\n }\n // If --outDir, check if file is in that directory\n if (options.outDir) {\n return ts.containsPath(options.outDir, filePath, currentDirectory, !host.useCaseSensitiveFileNames());\n }\n if (ts.fileExtensionIsOneOf(filePath, ts.supportedJSExtensions) || ts.fileExtensionIs(filePath, \".d.ts\" /* Dts */)) {\n // Otherwise just check if sourceFile with the name exists\n var filePathWithoutExtension = ts.removeFileExtension(filePath);\n return !!getSourceFileByPath((filePathWithoutExtension + \".ts\" /* Ts */)) ||\n !!getSourceFileByPath((filePathWithoutExtension + \".tsx\" /* Tsx */));\n }\n return false;\n }\n function isSameFile(file1, file2) {\n return ts.comparePaths(file1, file2, currentDirectory, !host.useCaseSensitiveFileNames()) === 0 /* EqualTo */;\n }\n function getSymlinkCache() {\n if (host.getSymlinkCache) {\n return host.getSymlinkCache();\n }\n if (!symlinks) {\n symlinks = ts.createSymlinkCache(currentDirectory, getCanonicalFileName);\n }\n if (files && resolvedTypeReferenceDirectives && !symlinks.hasProcessedResolutions()) {\n symlinks.setSymlinksFromResolutions(files, resolvedTypeReferenceDirectives);\n }\n return symlinks;\n }\n }\n ts.createProgram = createProgram;\n function updateHostForUseSourceOfProjectReferenceRedirect(host) {\n var setOfDeclarationDirectories;\n var originalFileExists = host.compilerHost.fileExists;\n var originalDirectoryExists = host.compilerHost.directoryExists;\n var originalGetDirectories = host.compilerHost.getDirectories;\n var originalRealpath = host.compilerHost.realpath;\n if (!host.useSourceOfProjectReferenceRedirect)\n return { onProgramCreateComplete: ts.noop, fileExists: fileExists };\n host.compilerHost.fileExists = fileExists;\n var directoryExists;\n if (originalDirectoryExists) {\n // This implementation of directoryExists checks if the directory being requested is\n // directory of .d.ts file for the referenced Project.\n // If it is it returns true irrespective of whether that directory exists on host\n directoryExists = host.compilerHost.directoryExists = function (path) {\n if (originalDirectoryExists.call(host.compilerHost, path)) {\n handleDirectoryCouldBeSymlink(path);\n return true;\n }\n if (!host.getResolvedProjectReferences())\n return false;\n if (!setOfDeclarationDirectories) {\n setOfDeclarationDirectories = new ts.Set();\n host.forEachResolvedProjectReference(function (ref) {\n var out = ts.outFile(ref.commandLine.options);\n if (out) {\n setOfDeclarationDirectories.add(ts.getDirectoryPath(host.toPath(out)));\n }\n else {\n // Set declaration's in different locations only, if they are next to source the directory present doesnt change\n var declarationDir = ref.commandLine.options.declarationDir || ref.commandLine.options.outDir;\n if (declarationDir) {\n setOfDeclarationDirectories.add(host.toPath(declarationDir));\n }\n }\n });\n }\n return fileOrDirectoryExistsUsingSource(path, /*isFile*/ false);\n };\n }\n if (originalGetDirectories) {\n // Call getDirectories only if directory actually present on the host\n // This is needed to ensure that we arent getting directories that we fake about presence for\n host.compilerHost.getDirectories = function (path) {\n return !host.getResolvedProjectReferences() || (originalDirectoryExists && originalDirectoryExists.call(host.compilerHost, path)) ?\n originalGetDirectories.call(host.compilerHost, path) :\n [];\n };\n }\n // This is something we keep for life time of the host\n if (originalRealpath) {\n host.compilerHost.realpath = function (s) {\n var _a;\n return ((_a = host.getSymlinkCache().getSymlinkedFiles()) === null || _a === void 0 ? void 0 : _a.get(host.toPath(s))) ||\n originalRealpath.call(host.compilerHost, s);\n };\n }\n return { onProgramCreateComplete: onProgramCreateComplete, fileExists: fileExists, directoryExists: directoryExists };\n function onProgramCreateComplete() {\n host.compilerHost.fileExists = originalFileExists;\n host.compilerHost.directoryExists = originalDirectoryExists;\n host.compilerHost.getDirectories = originalGetDirectories;\n // DO not revert realpath as it could be used later\n }\n // This implementation of fileExists checks if the file being requested is\n // .d.ts file for the referenced Project.\n // If it is it returns true irrespective of whether that file exists on host\n function fileExists(file) {\n if (originalFileExists.call(host.compilerHost, file))\n return true;\n if (!host.getResolvedProjectReferences())\n return false;\n if (!ts.isDeclarationFileName(file))\n return false;\n // Project references go to source file instead of .d.ts file\n return fileOrDirectoryExistsUsingSource(file, /*isFile*/ true);\n }\n function fileExistsIfProjectReferenceDts(file) {\n var source = host.getSourceOfProjectReferenceRedirect(file);\n return source !== undefined ?\n ts.isString(source) ? originalFileExists.call(host.compilerHost, source) : true :\n undefined;\n }\n function directoryExistsIfProjectReferenceDeclDir(dir) {\n var dirPath = host.toPath(dir);\n var dirPathWithTrailingDirectorySeparator = \"\" + dirPath + ts.directorySeparator;\n return ts.forEachKey(setOfDeclarationDirectories, function (declDirPath) { return dirPath === declDirPath ||\n // Any parent directory of declaration dir\n ts.startsWith(declDirPath, dirPathWithTrailingDirectorySeparator) ||\n // Any directory inside declaration dir\n ts.startsWith(dirPath, declDirPath + \"/\"); });\n }\n function handleDirectoryCouldBeSymlink(directory) {\n var _a;\n if (!host.getResolvedProjectReferences() || ts.containsIgnoredPath(directory))\n return;\n // Because we already watch node_modules, handle symlinks in there\n if (!originalRealpath || !ts.stringContains(directory, ts.nodeModulesPathPart))\n return;\n var symlinkCache = host.getSymlinkCache();\n var directoryPath = ts.ensureTrailingDirectorySeparator(host.toPath(directory));\n if ((_a = symlinkCache.getSymlinkedDirectories()) === null || _a === void 0 ? void 0 : _a.has(directoryPath))\n return;\n var real = ts.normalizePath(originalRealpath.call(host.compilerHost, directory));\n var realPath;\n if (real === directory ||\n (realPath = ts.ensureTrailingDirectorySeparator(host.toPath(real))) === directoryPath) {\n // not symlinked\n symlinkCache.setSymlinkedDirectory(directoryPath, false);\n return;\n }\n symlinkCache.setSymlinkedDirectory(directory, {\n real: ts.ensureTrailingDirectorySeparator(real),\n realPath: realPath\n });\n }\n function fileOrDirectoryExistsUsingSource(fileOrDirectory, isFile) {\n var _a;\n var fileOrDirectoryExistsUsingSource = isFile ?\n function (file) { return fileExistsIfProjectReferenceDts(file); } :\n function (dir) { return directoryExistsIfProjectReferenceDeclDir(dir); };\n // Check current directory or file\n var result = fileOrDirectoryExistsUsingSource(fileOrDirectory);\n if (result !== undefined)\n return result;\n var symlinkCache = host.getSymlinkCache();\n var symlinkedDirectories = symlinkCache.getSymlinkedDirectories();\n if (!symlinkedDirectories)\n return false;\n var fileOrDirectoryPath = host.toPath(fileOrDirectory);\n if (!ts.stringContains(fileOrDirectoryPath, ts.nodeModulesPathPart))\n return false;\n if (isFile && ((_a = symlinkCache.getSymlinkedFiles()) === null || _a === void 0 ? void 0 : _a.has(fileOrDirectoryPath)))\n return true;\n // If it contains node_modules check if its one of the symlinked path we know of\n return ts.firstDefinedIterator(symlinkedDirectories.entries(), function (_a) {\n var directoryPath = _a[0], symlinkedDirectory = _a[1];\n if (!symlinkedDirectory || !ts.startsWith(fileOrDirectoryPath, directoryPath))\n return undefined;\n var result = fileOrDirectoryExistsUsingSource(fileOrDirectoryPath.replace(directoryPath, symlinkedDirectory.realPath));\n if (isFile && result) {\n // Store the real path for the file'\n var absolutePath = ts.getNormalizedAbsolutePath(fileOrDirectory, host.compilerHost.getCurrentDirectory());\n symlinkCache.setSymlinkedFile(fileOrDirectoryPath, \"\" + symlinkedDirectory.real + absolutePath.replace(new RegExp(directoryPath, \"i\"), \"\"));\n }\n return result;\n }) || false;\n }\n }\n /*@internal*/\n ts.emitSkippedWithNoDiagnostics = { diagnostics: ts.emptyArray, sourceMaps: undefined, emittedFiles: undefined, emitSkipped: true };\n /*@internal*/\n function handleNoEmitOptions(program, sourceFile, writeFile, cancellationToken) {\n var options = program.getCompilerOptions();\n if (options.noEmit) {\n // Cache the semantic diagnostics\n program.getSemanticDiagnostics(sourceFile, cancellationToken);\n return sourceFile || ts.outFile(options) ?\n ts.emitSkippedWithNoDiagnostics :\n program.emitBuildInfo(writeFile, cancellationToken);\n }\n // If the noEmitOnError flag is set, then check if we have any errors so far. If so,\n // immediately bail out. Note that we pass 'undefined' for 'sourceFile' so that we\n // get any preEmit diagnostics, not just the ones\n if (!options.noEmitOnError)\n return undefined;\n var diagnostics = __spreadArray(__spreadArray(__spreadArray(__spreadArray([], program.getOptionsDiagnostics(cancellationToken), true), program.getSyntacticDiagnostics(sourceFile, cancellationToken), true), program.getGlobalDiagnostics(cancellationToken), true), program.getSemanticDiagnostics(sourceFile, cancellationToken), true);\n if (diagnostics.length === 0 && ts.getEmitDeclarations(program.getCompilerOptions())) {\n diagnostics = program.getDeclarationDiagnostics(/*sourceFile*/ undefined, cancellationToken);\n }\n if (!diagnostics.length)\n return undefined;\n var emittedFiles;\n if (!sourceFile && !ts.outFile(options)) {\n var emitResult = program.emitBuildInfo(writeFile, cancellationToken);\n if (emitResult.diagnostics)\n diagnostics = __spreadArray(__spreadArray([], diagnostics, true), emitResult.diagnostics, true);\n emittedFiles = emitResult.emittedFiles;\n }\n return { diagnostics: diagnostics, sourceMaps: undefined, emittedFiles: emittedFiles, emitSkipped: true };\n }\n ts.handleNoEmitOptions = handleNoEmitOptions;\n /*@internal*/\n function filterSemanticDiagnostics(diagnostic, option) {\n return ts.filter(diagnostic, function (d) { return !d.skippedOn || !option[d.skippedOn]; });\n }\n ts.filterSemanticDiagnostics = filterSemanticDiagnostics;\n /* @internal */\n function parseConfigHostFromCompilerHostLike(host, directoryStructureHost) {\n if (directoryStructureHost === void 0) { directoryStructureHost = host; }\n return {\n fileExists: function (f) { return directoryStructureHost.fileExists(f); },\n readDirectory: function (root, extensions, excludes, includes, depth) {\n ts.Debug.assertIsDefined(directoryStructureHost.readDirectory, \"'CompilerHost.readDirectory' must be implemented to correctly process 'projectReferences'\");\n return directoryStructureHost.readDirectory(root, extensions, excludes, includes, depth);\n },\n readFile: function (f) { return directoryStructureHost.readFile(f); },\n useCaseSensitiveFileNames: host.useCaseSensitiveFileNames(),\n getCurrentDirectory: function () { return host.getCurrentDirectory(); },\n onUnRecoverableConfigFileDiagnostic: host.onUnRecoverableConfigFileDiagnostic || ts.returnUndefined,\n trace: host.trace ? function (s) { return host.trace(s); } : undefined\n };\n }\n ts.parseConfigHostFromCompilerHostLike = parseConfigHostFromCompilerHostLike;\n /* @internal */\n function createPrependNodes(projectReferences, getCommandLine, readFile) {\n if (!projectReferences)\n return ts.emptyArray;\n var nodes;\n for (var i = 0; i < projectReferences.length; i++) {\n var ref = projectReferences[i];\n var resolvedRefOpts = getCommandLine(ref, i);\n if (ref.prepend && resolvedRefOpts && resolvedRefOpts.options) {\n var out = ts.outFile(resolvedRefOpts.options);\n // Upstream project didn't have outFile set -- skip (error will have been issued earlier)\n if (!out)\n continue;\n var _a = ts.getOutputPathsForBundle(resolvedRefOpts.options, /*forceDtsPaths*/ true), jsFilePath = _a.jsFilePath, sourceMapFilePath = _a.sourceMapFilePath, declarationFilePath = _a.declarationFilePath, declarationMapPath = _a.declarationMapPath, buildInfoPath = _a.buildInfoPath;\n var node = ts.createInputFiles(readFile, jsFilePath, sourceMapFilePath, declarationFilePath, declarationMapPath, buildInfoPath);\n (nodes || (nodes = [])).push(node);\n }\n }\n return nodes || ts.emptyArray;\n }\n ts.createPrependNodes = createPrependNodes;\n function resolveProjectReferencePath(hostOrRef, ref) {\n var passedInRef = ref ? ref : hostOrRef;\n return ts.resolveConfigFileProjectName(passedInRef.path);\n }\n ts.resolveProjectReferencePath = resolveProjectReferencePath;\n /* @internal */\n /**\n * Returns a DiagnosticMessage if we won't include a resolved module due to its extension.\n * The DiagnosticMessage's parameters are the imported module name, and the filename it resolved to.\n * This returns a diagnostic even if the module will be an untyped module.\n */\n function getResolutionDiagnostic(options, _a) {\n var extension = _a.extension;\n switch (extension) {\n case \".ts\" /* Ts */:\n case \".d.ts\" /* Dts */:\n // These are always allowed.\n return undefined;\n case \".tsx\" /* Tsx */:\n return needJsx();\n case \".jsx\" /* Jsx */:\n return needJsx() || needAllowJs();\n case \".js\" /* Js */:\n return needAllowJs();\n case \".json\" /* Json */:\n return needResolveJsonModule();\n }\n function needJsx() {\n return options.jsx ? undefined : ts.Diagnostics.Module_0_was_resolved_to_1_but_jsx_is_not_set;\n }\n function needAllowJs() {\n return ts.getAllowJSCompilerOption(options) || !ts.getStrictOptionValue(options, \"noImplicitAny\") ? undefined : ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type;\n }\n function needResolveJsonModule() {\n return options.resolveJsonModule ? undefined : ts.Diagnostics.Module_0_was_resolved_to_1_but_resolveJsonModule_is_not_used;\n }\n }\n ts.getResolutionDiagnostic = getResolutionDiagnostic;\n function getModuleNames(_a) {\n var imports = _a.imports, moduleAugmentations = _a.moduleAugmentations;\n var res = imports.map(function (i) { return i.text; });\n for (var _i = 0, moduleAugmentations_1 = moduleAugmentations; _i < moduleAugmentations_1.length; _i++) {\n var aug = moduleAugmentations_1[_i];\n if (aug.kind === 10 /* StringLiteral */) {\n res.push(aug.text);\n }\n // Do nothing if it's an Identifier; we don't need to do module resolution for `declare global`.\n }\n return res;\n }\n /* @internal */\n function getModuleNameStringLiteralAt(_a, index) {\n var imports = _a.imports, moduleAugmentations = _a.moduleAugmentations;\n if (index < imports.length)\n return imports[index];\n var augIndex = imports.length;\n for (var _i = 0, moduleAugmentations_2 = moduleAugmentations; _i < moduleAugmentations_2.length; _i++) {\n var aug = moduleAugmentations_2[_i];\n if (aug.kind === 10 /* StringLiteral */) {\n if (index === augIndex)\n return aug;\n augIndex++;\n }\n // Do nothing if it's an Identifier; we don't need to do module resolution for `declare global`.\n }\n ts.Debug.fail(\"should never ask for module name at index higher than possible module name\");\n }\n ts.getModuleNameStringLiteralAt = getModuleNameStringLiteralAt;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function getFileEmitOutput(program, sourceFile, emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit) {\n var outputFiles = [];\n var _a = program.emit(sourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers, forceDtsEmit), emitSkipped = _a.emitSkipped, diagnostics = _a.diagnostics, exportedModulesFromDeclarationEmit = _a.exportedModulesFromDeclarationEmit;\n return { outputFiles: outputFiles, emitSkipped: emitSkipped, diagnostics: diagnostics, exportedModulesFromDeclarationEmit: exportedModulesFromDeclarationEmit };\n function writeFile(fileName, text, writeByteOrderMark) {\n outputFiles.push({ name: fileName, writeByteOrderMark: writeByteOrderMark, text: text });\n }\n }\n ts.getFileEmitOutput = getFileEmitOutput;\n var BuilderState;\n (function (BuilderState) {\n var manyToManyPathMapCount = 0;\n function createManyToManyPathMap() {\n function create(forward, reverse, deleted) {\n var version = 0;\n var map = {\n id: manyToManyPathMapCount++,\n version: function () { return version; },\n clone: function () { return create(new ts.Map(forward), new ts.Map(reverse), deleted && new ts.Set(deleted)); },\n forEach: function (fn) { return forward.forEach(fn); },\n getKeys: function (v) { return reverse.get(v); },\n getValues: function (k) { return forward.get(k); },\n hasKey: function (k) { return forward.has(k); },\n keys: function () { return forward.keys(); },\n deletedKeys: function () { return deleted; },\n deleteKey: function (k) {\n (deleted || (deleted = new ts.Set())).add(k);\n var set = forward.get(k);\n if (!set) {\n return false;\n }\n set.forEach(function (v) { return deleteFromMultimap(reverse, v, k); });\n forward.delete(k);\n version++;\n return true;\n },\n set: function (k, vSet) {\n var changed = !!(deleted === null || deleted === void 0 ? void 0 : deleted.delete(k));\n var existingVSet = forward.get(k);\n forward.set(k, vSet);\n existingVSet === null || existingVSet === void 0 ? void 0 : existingVSet.forEach(function (v) {\n if (!vSet.has(v)) {\n changed = true;\n deleteFromMultimap(reverse, v, k);\n }\n });\n vSet.forEach(function (v) {\n if (!(existingVSet === null || existingVSet === void 0 ? void 0 : existingVSet.has(v))) {\n changed = true;\n addToMultimap(reverse, v, k);\n }\n });\n if (changed) {\n version++;\n }\n return map;\n },\n };\n return map;\n }\n return create(new ts.Map(), new ts.Map(), /*deleted*/ undefined);\n }\n BuilderState.createManyToManyPathMap = createManyToManyPathMap;\n function addToMultimap(map, k, v) {\n var set = map.get(k);\n if (!set) {\n set = new ts.Set();\n map.set(k, set);\n }\n set.add(v);\n }\n function deleteFromMultimap(map, k, v, removeEmpty) {\n if (removeEmpty === void 0) { removeEmpty = true; }\n var set = map.get(k);\n if (set === null || set === void 0 ? void 0 : set.delete(v)) {\n if (removeEmpty && !set.size) {\n map.delete(k);\n }\n return true;\n }\n return false;\n }\n function getReferencedFilesFromImportedModuleSymbol(symbol) {\n return ts.mapDefined(symbol.declarations, function (declaration) { var _a; return (_a = ts.getSourceFileOfNode(declaration)) === null || _a === void 0 ? void 0 : _a.resolvedPath; });\n }\n /**\n * Get the module source file and all augmenting files from the import name node from file\n */\n function getReferencedFilesFromImportLiteral(checker, importName) {\n var symbol = checker.getSymbolAtLocation(importName);\n return symbol && getReferencedFilesFromImportedModuleSymbol(symbol);\n }\n /**\n * Gets the path to reference file from file name, it could be resolvedPath if present otherwise path\n */\n function getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName) {\n return ts.toPath(program.getProjectReferenceRedirect(fileName) || fileName, sourceFileDirectory, getCanonicalFileName);\n }\n /**\n * Gets the referenced files for a file from the program with values for the keys as referenced file's path to be true\n */\n function getReferencedFiles(program, sourceFile, getCanonicalFileName) {\n var referencedFiles;\n // We need to use a set here since the code can contain the same import twice,\n // but that will only be one dependency.\n // To avoid invernal conversion, the key of the referencedFiles map must be of type Path\n if (sourceFile.imports && sourceFile.imports.length > 0) {\n var checker = program.getTypeChecker();\n for (var _i = 0, _a = sourceFile.imports; _i < _a.length; _i++) {\n var importName = _a[_i];\n var declarationSourceFilePaths = getReferencedFilesFromImportLiteral(checker, importName);\n declarationSourceFilePaths === null || declarationSourceFilePaths === void 0 ? void 0 : declarationSourceFilePaths.forEach(addReferencedFile);\n }\n }\n var sourceFileDirectory = ts.getDirectoryPath(sourceFile.resolvedPath);\n // Handle triple slash references\n if (sourceFile.referencedFiles && sourceFile.referencedFiles.length > 0) {\n for (var _b = 0, _c = sourceFile.referencedFiles; _b < _c.length; _b++) {\n var referencedFile = _c[_b];\n var referencedPath = getReferencedFileFromFileName(program, referencedFile.fileName, sourceFileDirectory, getCanonicalFileName);\n addReferencedFile(referencedPath);\n }\n }\n // Handle type reference directives\n if (sourceFile.resolvedTypeReferenceDirectiveNames) {\n sourceFile.resolvedTypeReferenceDirectiveNames.forEach(function (resolvedTypeReferenceDirective) {\n if (!resolvedTypeReferenceDirective) {\n return;\n }\n var fileName = resolvedTypeReferenceDirective.resolvedFileName; // TODO: GH#18217\n var typeFilePath = getReferencedFileFromFileName(program, fileName, sourceFileDirectory, getCanonicalFileName);\n addReferencedFile(typeFilePath);\n });\n }\n // Add module augmentation as references\n if (sourceFile.moduleAugmentations.length) {\n var checker = program.getTypeChecker();\n for (var _d = 0, _e = sourceFile.moduleAugmentations; _d < _e.length; _d++) {\n var moduleName = _e[_d];\n if (!ts.isStringLiteral(moduleName)) {\n continue;\n }\n var symbol = checker.getSymbolAtLocation(moduleName);\n if (!symbol) {\n continue;\n }\n // Add any file other than our own as reference\n addReferenceFromAmbientModule(symbol);\n }\n }\n // From ambient modules\n for (var _f = 0, _g = program.getTypeChecker().getAmbientModules(); _f < _g.length; _f++) {\n var ambientModule = _g[_f];\n if (ambientModule.declarations && ambientModule.declarations.length > 1) {\n addReferenceFromAmbientModule(ambientModule);\n }\n }\n return referencedFiles;\n function addReferenceFromAmbientModule(symbol) {\n if (!symbol.declarations) {\n return;\n }\n // Add any file other than our own as reference\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n var declarationSourceFile = ts.getSourceFileOfNode(declaration);\n if (declarationSourceFile &&\n declarationSourceFile !== sourceFile) {\n addReferencedFile(declarationSourceFile.resolvedPath);\n }\n }\n }\n function addReferencedFile(referencedPath) {\n (referencedFiles || (referencedFiles = new ts.Set())).add(referencedPath);\n }\n }\n /**\n * Returns true if oldState is reusable, that is the emitKind = module/non module has not changed\n */\n function canReuseOldState(newReferencedMap, oldState) {\n return oldState && !oldState.referencedMap === !newReferencedMap;\n }\n BuilderState.canReuseOldState = canReuseOldState;\n /**\n * Creates the state of file references and signature for the new program from oldState if it is safe\n */\n function create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {\n var fileInfos = new ts.Map();\n var referencedMap = newProgram.getCompilerOptions().module !== ts.ModuleKind.None ? createManyToManyPathMap() : undefined;\n var exportedModulesMap = referencedMap ? createManyToManyPathMap() : undefined;\n var hasCalledUpdateShapeSignature = new ts.Set();\n var useOldState = canReuseOldState(referencedMap, oldState);\n // Ensure source files have parent pointers set\n newProgram.getTypeChecker();\n // Create the reference map, and set the file infos\n for (var _i = 0, _a = newProgram.getSourceFiles(); _i < _a.length; _i++) {\n var sourceFile = _a[_i];\n var version_2 = ts.Debug.checkDefined(sourceFile.version, \"Program intended to be used with Builder should have source files with versions set\");\n var oldInfo = useOldState ? oldState.fileInfos.get(sourceFile.resolvedPath) : undefined;\n if (referencedMap) {\n var newReferences = getReferencedFiles(newProgram, sourceFile, getCanonicalFileName);\n if (newReferences) {\n referencedMap.set(sourceFile.resolvedPath, newReferences);\n }\n // Copy old visible to outside files map\n if (useOldState) {\n var exportedModules = oldState.exportedModulesMap.getValues(sourceFile.resolvedPath);\n if (exportedModules) {\n exportedModulesMap.set(sourceFile.resolvedPath, exportedModules);\n }\n }\n }\n fileInfos.set(sourceFile.resolvedPath, { version: version_2, signature: oldInfo && oldInfo.signature, affectsGlobalScope: isFileAffectingGlobalScope(sourceFile) || undefined });\n }\n return {\n fileInfos: fileInfos,\n referencedMap: referencedMap,\n exportedModulesMap: exportedModulesMap,\n hasCalledUpdateShapeSignature: hasCalledUpdateShapeSignature,\n useFileVersionAsSignature: !disableUseFileVersionAsSignature && !useOldState\n };\n }\n BuilderState.create = create;\n /**\n * Releases needed properties\n */\n function releaseCache(state) {\n state.allFilesExcludingDefaultLibraryFile = undefined;\n state.allFileNames = undefined;\n }\n BuilderState.releaseCache = releaseCache;\n /**\n * Creates a clone of the state\n */\n function clone(state) {\n var _a, _b;\n // Dont need to backup allFiles info since its cache anyway\n return {\n fileInfos: new ts.Map(state.fileInfos),\n referencedMap: (_a = state.referencedMap) === null || _a === void 0 ? void 0 : _a.clone(),\n exportedModulesMap: (_b = state.exportedModulesMap) === null || _b === void 0 ? void 0 : _b.clone(),\n hasCalledUpdateShapeSignature: new ts.Set(state.hasCalledUpdateShapeSignature),\n useFileVersionAsSignature: state.useFileVersionAsSignature,\n };\n }\n BuilderState.clone = clone;\n /**\n * Gets the files affected by the path from the program\n */\n function getFilesAffectedBy(state, programOfThisState, path, cancellationToken, computeHash, cacheToUpdateSignature, exportedModulesMapCache) {\n // Since the operation could be cancelled, the signatures are always stored in the cache\n // They will be committed once it is safe to use them\n // eg when calling this api from tsserver, if there is no cancellation of the operation\n // In the other cases the affected files signatures are committed only after the iteration through the result is complete\n var signatureCache = cacheToUpdateSignature || new ts.Map();\n var sourceFile = programOfThisState.getSourceFileByPath(path);\n if (!sourceFile) {\n return ts.emptyArray;\n }\n if (!updateShapeSignature(state, programOfThisState, sourceFile, signatureCache, cancellationToken, computeHash, exportedModulesMapCache)) {\n return [sourceFile];\n }\n var result = (state.referencedMap ? getFilesAffectedByUpdatedShapeWhenModuleEmit : getFilesAffectedByUpdatedShapeWhenNonModuleEmit)(state, programOfThisState, sourceFile, signatureCache, cancellationToken, computeHash, exportedModulesMapCache);\n if (!cacheToUpdateSignature) {\n // Commit all the signatures in the signature cache\n updateSignaturesFromCache(state, signatureCache);\n }\n return result;\n }\n BuilderState.getFilesAffectedBy = getFilesAffectedBy;\n /**\n * Updates the signatures from the cache into state's fileinfo signatures\n * This should be called whenever it is safe to commit the state of the builder\n */\n function updateSignaturesFromCache(state, signatureCache) {\n signatureCache.forEach(function (signature, path) { return updateSignatureOfFile(state, signature, path); });\n }\n BuilderState.updateSignaturesFromCache = updateSignaturesFromCache;\n function updateSignatureOfFile(state, signature, path) {\n state.fileInfos.get(path).signature = signature;\n state.hasCalledUpdateShapeSignature.add(path);\n }\n BuilderState.updateSignatureOfFile = updateSignatureOfFile;\n /**\n * Returns if the shape of the signature has changed since last emit\n */\n function updateShapeSignature(state, programOfThisState, sourceFile, cacheToUpdateSignature, cancellationToken, computeHash, exportedModulesMapCache, useFileVersionAsSignature) {\n if (useFileVersionAsSignature === void 0) { useFileVersionAsSignature = state.useFileVersionAsSignature; }\n ts.Debug.assert(!!sourceFile);\n ts.Debug.assert(!exportedModulesMapCache || !!state.exportedModulesMap, \"Compute visible to outside map only if visibleToOutsideReferencedMap present in the state\");\n // If we have cached the result for this file, that means hence forth we should assume file shape is uptodate\n if (state.hasCalledUpdateShapeSignature.has(sourceFile.resolvedPath) || cacheToUpdateSignature.has(sourceFile.resolvedPath)) {\n return false;\n }\n var info = state.fileInfos.get(sourceFile.resolvedPath);\n if (!info)\n return ts.Debug.fail();\n var prevSignature = info.signature;\n var latestSignature;\n if (!sourceFile.isDeclarationFile && !useFileVersionAsSignature) {\n var emitOutput_1 = getFileEmitOutput(programOfThisState, sourceFile, \n /*emitOnlyDtsFiles*/ true, cancellationToken, \n /*customTransformers*/ undefined, \n /*forceDtsEmit*/ true);\n var firstDts_1 = ts.firstOrUndefined(emitOutput_1.outputFiles);\n if (firstDts_1) {\n ts.Debug.assert(ts.fileExtensionIs(firstDts_1.name, \".d.ts\" /* Dts */), \"File extension for signature expected to be dts\", function () { return \"Found: \" + ts.getAnyExtensionFromPath(firstDts_1.name) + \" for \" + firstDts_1.name + \":: All output files: \" + JSON.stringify(emitOutput_1.outputFiles.map(function (f) { return f.name; })); });\n latestSignature = (computeHash || ts.generateDjb2Hash)(firstDts_1.text);\n if (exportedModulesMapCache && latestSignature !== prevSignature) {\n updateExportedModules(sourceFile, emitOutput_1.exportedModulesFromDeclarationEmit, exportedModulesMapCache);\n }\n }\n }\n // Default is to use file version as signature\n if (latestSignature === undefined) {\n latestSignature = sourceFile.version;\n if (exportedModulesMapCache && latestSignature !== prevSignature) {\n // All the references in this file are exported\n var references = state.referencedMap ? state.referencedMap.getValues(sourceFile.resolvedPath) : undefined;\n if (references) {\n exportedModulesMapCache.set(sourceFile.resolvedPath, references);\n }\n else {\n exportedModulesMapCache.deleteKey(sourceFile.resolvedPath);\n }\n }\n }\n cacheToUpdateSignature.set(sourceFile.resolvedPath, latestSignature);\n return latestSignature !== prevSignature;\n }\n BuilderState.updateShapeSignature = updateShapeSignature;\n /**\n * Coverts the declaration emit result into exported modules map\n */\n function updateExportedModules(sourceFile, exportedModulesFromDeclarationEmit, exportedModulesMapCache) {\n if (!exportedModulesFromDeclarationEmit) {\n exportedModulesMapCache.deleteKey(sourceFile.resolvedPath);\n return;\n }\n var exportedModules;\n exportedModulesFromDeclarationEmit.forEach(function (symbol) { return addExportedModule(getReferencedFilesFromImportedModuleSymbol(symbol)); });\n if (exportedModules) {\n exportedModulesMapCache.set(sourceFile.resolvedPath, exportedModules);\n }\n else {\n exportedModulesMapCache.deleteKey(sourceFile.resolvedPath);\n }\n function addExportedModule(exportedModulePaths) {\n if (exportedModulePaths === null || exportedModulePaths === void 0 ? void 0 : exportedModulePaths.length) {\n if (!exportedModules) {\n exportedModules = new ts.Set();\n }\n exportedModulePaths.forEach(function (path) { return exportedModules.add(path); });\n }\n }\n }\n /**\n * Updates the exported modules from cache into state's exported modules map\n * This should be called whenever it is safe to commit the state of the builder\n */\n function updateExportedFilesMapFromCache(state, exportedModulesMapCache) {\n var _a;\n if (exportedModulesMapCache) {\n ts.Debug.assert(!!state.exportedModulesMap);\n var cacheId = exportedModulesMapCache.id;\n var cacheVersion = exportedModulesMapCache.version();\n if (state.previousCache) {\n if (state.previousCache.id === cacheId && state.previousCache.version === cacheVersion) {\n // If this is the same cache at the same version as last time this BuilderState\n // was updated, there's no need to update again\n return;\n }\n state.previousCache.id = cacheId;\n state.previousCache.version = cacheVersion;\n }\n else {\n state.previousCache = { id: cacheId, version: cacheVersion };\n }\n (_a = exportedModulesMapCache.deletedKeys()) === null || _a === void 0 ? void 0 : _a.forEach(function (path) { return state.exportedModulesMap.deleteKey(path); });\n exportedModulesMapCache.forEach(function (exportedModules, path) { return state.exportedModulesMap.set(path, exportedModules); });\n }\n }\n BuilderState.updateExportedFilesMapFromCache = updateExportedFilesMapFromCache;\n /**\n * Get all the dependencies of the sourceFile\n */\n function getAllDependencies(state, programOfThisState, sourceFile) {\n var compilerOptions = programOfThisState.getCompilerOptions();\n // With --out or --outFile all outputs go into single file, all files depend on each other\n if (ts.outFile(compilerOptions)) {\n return getAllFileNames(state, programOfThisState);\n }\n // If this is non module emit, or its a global file, it depends on all the source files\n if (!state.referencedMap || isFileAffectingGlobalScope(sourceFile)) {\n return getAllFileNames(state, programOfThisState);\n }\n // Get the references, traversing deep from the referenceMap\n var seenMap = new ts.Set();\n var queue = [sourceFile.resolvedPath];\n while (queue.length) {\n var path = queue.pop();\n if (!seenMap.has(path)) {\n seenMap.add(path);\n var references = state.referencedMap.getValues(path);\n if (references) {\n var iterator = references.keys();\n for (var iterResult = iterator.next(); !iterResult.done; iterResult = iterator.next()) {\n queue.push(iterResult.value);\n }\n }\n }\n }\n return ts.arrayFrom(ts.mapDefinedIterator(seenMap.keys(), function (path) { var _a, _b; return (_b = (_a = programOfThisState.getSourceFileByPath(path)) === null || _a === void 0 ? void 0 : _a.fileName) !== null && _b !== void 0 ? _b : path; }));\n }\n BuilderState.getAllDependencies = getAllDependencies;\n /**\n * Gets the names of all files from the program\n */\n function getAllFileNames(state, programOfThisState) {\n if (!state.allFileNames) {\n var sourceFiles = programOfThisState.getSourceFiles();\n state.allFileNames = sourceFiles === ts.emptyArray ? ts.emptyArray : sourceFiles.map(function (file) { return file.fileName; });\n }\n return state.allFileNames;\n }\n /**\n * Gets the files referenced by the the file path\n */\n function getReferencedByPaths(state, referencedFilePath) {\n var keys = state.referencedMap.getKeys(referencedFilePath);\n return keys ? ts.arrayFrom(keys.keys()) : [];\n }\n BuilderState.getReferencedByPaths = getReferencedByPaths;\n /**\n * For script files that contains only ambient external modules, although they are not actually external module files,\n * they can only be consumed via importing elements from them. Regular script files cannot consume them. Therefore,\n * there are no point to rebuild all script files if these special files have changed. However, if any statement\n * in the file is not ambient external module, we treat it as a regular script file.\n */\n function containsOnlyAmbientModules(sourceFile) {\n for (var _i = 0, _a = sourceFile.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n if (!ts.isModuleWithStringLiteralName(statement)) {\n return false;\n }\n }\n return true;\n }\n /**\n * Return true if file contains anything that augments to global scope we need to build them as if\n * they are global files as well as module\n */\n function containsGlobalScopeAugmentation(sourceFile) {\n return ts.some(sourceFile.moduleAugmentations, function (augmentation) { return ts.isGlobalScopeAugmentation(augmentation.parent); });\n }\n /**\n * Return true if the file will invalidate all files because it affectes global scope\n */\n function isFileAffectingGlobalScope(sourceFile) {\n return containsGlobalScopeAugmentation(sourceFile) ||\n !ts.isExternalOrCommonJsModule(sourceFile) && !ts.isJsonSourceFile(sourceFile) && !containsOnlyAmbientModules(sourceFile);\n }\n /**\n * Gets all files of the program excluding the default library file\n */\n function getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, firstSourceFile) {\n // Use cached result\n if (state.allFilesExcludingDefaultLibraryFile) {\n return state.allFilesExcludingDefaultLibraryFile;\n }\n var result;\n if (firstSourceFile)\n addSourceFile(firstSourceFile);\n for (var _i = 0, _a = programOfThisState.getSourceFiles(); _i < _a.length; _i++) {\n var sourceFile = _a[_i];\n if (sourceFile !== firstSourceFile) {\n addSourceFile(sourceFile);\n }\n }\n state.allFilesExcludingDefaultLibraryFile = result || ts.emptyArray;\n return state.allFilesExcludingDefaultLibraryFile;\n function addSourceFile(sourceFile) {\n if (!programOfThisState.isSourceFileDefaultLibrary(sourceFile)) {\n (result || (result = [])).push(sourceFile);\n }\n }\n }\n BuilderState.getAllFilesExcludingDefaultLibraryFile = getAllFilesExcludingDefaultLibraryFile;\n /**\n * When program emits non modular code, gets the files affected by the sourceFile whose shape has changed\n */\n function getFilesAffectedByUpdatedShapeWhenNonModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape) {\n var compilerOptions = programOfThisState.getCompilerOptions();\n // If `--out` or `--outFile` is specified, any new emit will result in re-emitting the entire project,\n // so returning the file itself is good enough.\n if (compilerOptions && ts.outFile(compilerOptions)) {\n return [sourceFileWithUpdatedShape];\n }\n return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);\n }\n /**\n * When program emits modular code, gets the files affected by the sourceFile whose shape has changed\n */\n function getFilesAffectedByUpdatedShapeWhenModuleEmit(state, programOfThisState, sourceFileWithUpdatedShape, cacheToUpdateSignature, cancellationToken, computeHash, exportedModulesMapCache) {\n if (isFileAffectingGlobalScope(sourceFileWithUpdatedShape)) {\n return getAllFilesExcludingDefaultLibraryFile(state, programOfThisState, sourceFileWithUpdatedShape);\n }\n var compilerOptions = programOfThisState.getCompilerOptions();\n if (compilerOptions && (compilerOptions.isolatedModules || ts.outFile(compilerOptions))) {\n return [sourceFileWithUpdatedShape];\n }\n // Now we need to if each file in the referencedBy list has a shape change as well.\n // Because if so, its own referencedBy files need to be saved as well to make the\n // emitting result consistent with files on disk.\n var seenFileNamesMap = new ts.Map();\n // Start with the paths this file was referenced by\n seenFileNamesMap.set(sourceFileWithUpdatedShape.resolvedPath, sourceFileWithUpdatedShape);\n var queue = getReferencedByPaths(state, sourceFileWithUpdatedShape.resolvedPath);\n while (queue.length > 0) {\n var currentPath = queue.pop();\n if (!seenFileNamesMap.has(currentPath)) {\n var currentSourceFile = programOfThisState.getSourceFileByPath(currentPath);\n seenFileNamesMap.set(currentPath, currentSourceFile);\n if (currentSourceFile && updateShapeSignature(state, programOfThisState, currentSourceFile, cacheToUpdateSignature, cancellationToken, computeHash, exportedModulesMapCache)) {\n queue.push.apply(queue, getReferencedByPaths(state, currentSourceFile.resolvedPath));\n }\n }\n }\n // Return array of values that needs emit\n return ts.arrayFrom(ts.mapDefinedIterator(seenFileNamesMap.values(), function (value) { return value; }));\n }\n })(BuilderState = ts.BuilderState || (ts.BuilderState = {}));\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var BuilderFileEmit;\n (function (BuilderFileEmit) {\n BuilderFileEmit[BuilderFileEmit[\"DtsOnly\"] = 0] = \"DtsOnly\";\n BuilderFileEmit[BuilderFileEmit[\"Full\"] = 1] = \"Full\";\n })(BuilderFileEmit = ts.BuilderFileEmit || (ts.BuilderFileEmit = {}));\n function hasSameKeys(map1, map2) {\n // Has same size and every key is present in both maps\n return map1 === map2 || map1 !== undefined && map2 !== undefined && map1.size === map2.size && !ts.forEachKey(map1, function (key) { return !map2.has(key); });\n }\n /**\n * Create the state so that we can iterate on changedFiles/affected files\n */\n function createBuilderProgramState(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature) {\n var state = ts.BuilderState.create(newProgram, getCanonicalFileName, oldState, disableUseFileVersionAsSignature);\n state.program = newProgram;\n var compilerOptions = newProgram.getCompilerOptions();\n state.compilerOptions = compilerOptions;\n // With --out or --outFile, any change affects all semantic diagnostics so no need to cache them\n if (!ts.outFile(compilerOptions)) {\n state.semanticDiagnosticsPerFile = new ts.Map();\n }\n state.changedFilesSet = new ts.Set();\n var useOldState = ts.BuilderState.canReuseOldState(state.referencedMap, oldState);\n var oldCompilerOptions = useOldState ? oldState.compilerOptions : undefined;\n var canCopySemanticDiagnostics = useOldState && oldState.semanticDiagnosticsPerFile && !!state.semanticDiagnosticsPerFile &&\n !ts.compilerOptionsAffectSemanticDiagnostics(compilerOptions, oldCompilerOptions);\n if (useOldState) {\n // Verify the sanity of old state\n if (!oldState.currentChangedFilePath) {\n var affectedSignatures = oldState.currentAffectedFilesSignatures;\n ts.Debug.assert(!oldState.affectedFiles && (!affectedSignatures || !affectedSignatures.size), \"Cannot reuse if only few affected files of currentChangedFile were iterated\");\n }\n var changedFilesSet = oldState.changedFilesSet;\n if (canCopySemanticDiagnostics) {\n ts.Debug.assert(!changedFilesSet || !ts.forEachKey(changedFilesSet, function (path) { return oldState.semanticDiagnosticsPerFile.has(path); }), \"Semantic diagnostics shouldnt be available for changed files\");\n }\n // Copy old state's changed files set\n changedFilesSet === null || changedFilesSet === void 0 ? void 0 : changedFilesSet.forEach(function (value) { return state.changedFilesSet.add(value); });\n if (!ts.outFile(compilerOptions) && oldState.affectedFilesPendingEmit) {\n state.affectedFilesPendingEmit = oldState.affectedFilesPendingEmit.slice();\n state.affectedFilesPendingEmitKind = oldState.affectedFilesPendingEmitKind && new ts.Map(oldState.affectedFilesPendingEmitKind);\n state.affectedFilesPendingEmitIndex = oldState.affectedFilesPendingEmitIndex;\n state.seenAffectedFiles = new ts.Set();\n }\n }\n // Update changed files and copy semantic diagnostics if we can\n var referencedMap = state.referencedMap;\n var oldReferencedMap = useOldState ? oldState.referencedMap : undefined;\n var copyDeclarationFileDiagnostics = canCopySemanticDiagnostics && !compilerOptions.skipLibCheck === !oldCompilerOptions.skipLibCheck;\n var copyLibFileDiagnostics = copyDeclarationFileDiagnostics && !compilerOptions.skipDefaultLibCheck === !oldCompilerOptions.skipDefaultLibCheck;\n state.fileInfos.forEach(function (info, sourceFilePath) {\n var oldInfo;\n var newReferences;\n // if not using old state, every file is changed\n if (!useOldState ||\n // File wasn't present in old state\n !(oldInfo = oldState.fileInfos.get(sourceFilePath)) ||\n // versions dont match\n oldInfo.version !== info.version ||\n // Referenced files changed\n !hasSameKeys(newReferences = referencedMap && referencedMap.getValues(sourceFilePath), oldReferencedMap && oldReferencedMap.getValues(sourceFilePath)) ||\n // Referenced file was deleted in the new program\n newReferences && ts.forEachKey(newReferences, function (path) { return !state.fileInfos.has(path) && oldState.fileInfos.has(path); })) {\n // Register file as changed file and do not copy semantic diagnostics, since all changed files need to be re-evaluated\n state.changedFilesSet.add(sourceFilePath);\n }\n else if (canCopySemanticDiagnostics) {\n var sourceFile = newProgram.getSourceFileByPath(sourceFilePath);\n if (sourceFile.isDeclarationFile && !copyDeclarationFileDiagnostics) {\n return;\n }\n if (sourceFile.hasNoDefaultLib && !copyLibFileDiagnostics) {\n return;\n }\n // Unchanged file copy diagnostics\n var diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);\n if (diagnostics) {\n state.semanticDiagnosticsPerFile.set(sourceFilePath, oldState.hasReusableDiagnostic ? convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) : diagnostics);\n if (!state.semanticDiagnosticsFromOldState) {\n state.semanticDiagnosticsFromOldState = new ts.Set();\n }\n state.semanticDiagnosticsFromOldState.add(sourceFilePath);\n }\n }\n });\n // If the global file is removed, add all files as changed\n if (useOldState && ts.forEachEntry(oldState.fileInfos, function (info, sourceFilePath) { return info.affectsGlobalScope && !state.fileInfos.has(sourceFilePath); })) {\n ts.BuilderState.getAllFilesExcludingDefaultLibraryFile(state, newProgram, /*firstSourceFile*/ undefined)\n .forEach(function (file) { return state.changedFilesSet.add(file.resolvedPath); });\n }\n else if (oldCompilerOptions && !ts.outFile(compilerOptions) && ts.compilerOptionsAffectEmit(compilerOptions, oldCompilerOptions)) {\n // Add all files to affectedFilesPendingEmit since emit changed\n newProgram.getSourceFiles().forEach(function (f) { return addToAffectedFilesPendingEmit(state, f.resolvedPath, 1 /* Full */); });\n ts.Debug.assert(!state.seenAffectedFiles || !state.seenAffectedFiles.size);\n state.seenAffectedFiles = state.seenAffectedFiles || new ts.Set();\n }\n state.buildInfoEmitPending = !!state.changedFilesSet.size;\n return state;\n }\n function convertToDiagnostics(diagnostics, newProgram, getCanonicalFileName) {\n if (!diagnostics.length)\n return ts.emptyArray;\n var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(ts.getTsBuildInfoEmitOutputFilePath(newProgram.getCompilerOptions()), newProgram.getCurrentDirectory()));\n return diagnostics.map(function (diagnostic) {\n var result = convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath);\n result.reportsUnnecessary = diagnostic.reportsUnnecessary;\n result.reportsDeprecated = diagnostic.reportDeprecated;\n result.source = diagnostic.source;\n result.skippedOn = diagnostic.skippedOn;\n var relatedInformation = diagnostic.relatedInformation;\n result.relatedInformation = relatedInformation ?\n relatedInformation.length ?\n relatedInformation.map(function (r) { return convertToDiagnosticRelatedInformation(r, newProgram, toPath); }) :\n [] :\n undefined;\n return result;\n });\n function toPath(path) {\n return ts.toPath(path, buildInfoDirectory, getCanonicalFileName);\n }\n }\n function convertToDiagnosticRelatedInformation(diagnostic, newProgram, toPath) {\n var file = diagnostic.file;\n return __assign(__assign({}, diagnostic), { file: file ? newProgram.getSourceFileByPath(toPath(file)) : undefined });\n }\n /**\n * Releases program and other related not needed properties\n */\n function releaseCache(state) {\n ts.BuilderState.releaseCache(state);\n state.program = undefined;\n }\n /**\n * Creates a clone of the state\n */\n function cloneBuilderProgramState(state) {\n var _a;\n var newState = ts.BuilderState.clone(state);\n newState.semanticDiagnosticsPerFile = state.semanticDiagnosticsPerFile && new ts.Map(state.semanticDiagnosticsPerFile);\n newState.changedFilesSet = new ts.Set(state.changedFilesSet);\n newState.affectedFiles = state.affectedFiles;\n newState.affectedFilesIndex = state.affectedFilesIndex;\n newState.currentChangedFilePath = state.currentChangedFilePath;\n newState.currentAffectedFilesSignatures = state.currentAffectedFilesSignatures && new ts.Map(state.currentAffectedFilesSignatures);\n newState.currentAffectedFilesExportedModulesMap = (_a = state.currentAffectedFilesExportedModulesMap) === null || _a === void 0 ? void 0 : _a.clone();\n newState.seenAffectedFiles = state.seenAffectedFiles && new ts.Set(state.seenAffectedFiles);\n newState.cleanedDiagnosticsOfLibFiles = state.cleanedDiagnosticsOfLibFiles;\n newState.semanticDiagnosticsFromOldState = state.semanticDiagnosticsFromOldState && new ts.Set(state.semanticDiagnosticsFromOldState);\n newState.program = state.program;\n newState.compilerOptions = state.compilerOptions;\n newState.affectedFilesPendingEmit = state.affectedFilesPendingEmit && state.affectedFilesPendingEmit.slice();\n newState.affectedFilesPendingEmitKind = state.affectedFilesPendingEmitKind && new ts.Map(state.affectedFilesPendingEmitKind);\n newState.affectedFilesPendingEmitIndex = state.affectedFilesPendingEmitIndex;\n newState.seenEmittedFiles = state.seenEmittedFiles && new ts.Map(state.seenEmittedFiles);\n newState.programEmitComplete = state.programEmitComplete;\n return newState;\n }\n /**\n * Verifies that source file is ok to be used in calls that arent handled by next\n */\n function assertSourceFileOkWithoutNextAffectedCall(state, sourceFile) {\n ts.Debug.assert(!sourceFile || !state.affectedFiles || state.affectedFiles[state.affectedFilesIndex - 1] !== sourceFile || !state.semanticDiagnosticsPerFile.has(sourceFile.resolvedPath));\n }\n /**\n * This function returns the next affected file to be processed.\n * Note that until doneAffected is called it would keep reporting same result\n * This is to allow the callers to be able to actually remove affected file only when the operation is complete\n * eg. if during diagnostics check cancellation token ends up cancelling the request, the affected file should be retained\n */\n function getNextAffectedFile(state, cancellationToken, computeHash) {\n while (true) {\n var affectedFiles = state.affectedFiles;\n if (affectedFiles) {\n var seenAffectedFiles = state.seenAffectedFiles;\n var affectedFilesIndex = state.affectedFilesIndex; // TODO: GH#18217\n while (affectedFilesIndex < affectedFiles.length) {\n var affectedFile = affectedFiles[affectedFilesIndex];\n if (!seenAffectedFiles.has(affectedFile.resolvedPath)) {\n // Set the next affected file as seen and remove the cached semantic diagnostics\n state.affectedFilesIndex = affectedFilesIndex;\n handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash);\n return affectedFile;\n }\n affectedFilesIndex++;\n }\n // Remove the changed file from the change set\n state.changedFilesSet.delete(state.currentChangedFilePath);\n state.currentChangedFilePath = undefined;\n // Commit the changes in file signature\n ts.BuilderState.updateSignaturesFromCache(state, state.currentAffectedFilesSignatures);\n state.currentAffectedFilesSignatures.clear();\n ts.BuilderState.updateExportedFilesMapFromCache(state, state.currentAffectedFilesExportedModulesMap);\n state.affectedFiles = undefined;\n }\n // Get next changed file\n var nextKey = state.changedFilesSet.keys().next();\n if (nextKey.done) {\n // Done\n return undefined;\n }\n // With --out or --outFile all outputs go into single file\n // so operations are performed directly on program, return program\n var program = ts.Debug.checkDefined(state.program);\n var compilerOptions = program.getCompilerOptions();\n if (ts.outFile(compilerOptions)) {\n ts.Debug.assert(!state.semanticDiagnosticsPerFile);\n return program;\n }\n // Get next batch of affected files\n if (!state.currentAffectedFilesSignatures)\n state.currentAffectedFilesSignatures = new ts.Map();\n if (state.exportedModulesMap) {\n state.currentAffectedFilesExportedModulesMap || (state.currentAffectedFilesExportedModulesMap = ts.BuilderState.createManyToManyPathMap());\n }\n state.affectedFiles = ts.BuilderState.getFilesAffectedBy(state, program, nextKey.value, cancellationToken, computeHash, state.currentAffectedFilesSignatures, state.currentAffectedFilesExportedModulesMap);\n state.currentChangedFilePath = nextKey.value;\n state.affectedFilesIndex = 0;\n if (!state.seenAffectedFiles)\n state.seenAffectedFiles = new ts.Set();\n }\n }\n /**\n * Returns next file to be emitted from files that retrieved semantic diagnostics but did not emit yet\n */\n function getNextAffectedFilePendingEmit(state) {\n var affectedFilesPendingEmit = state.affectedFilesPendingEmit;\n if (affectedFilesPendingEmit) {\n var seenEmittedFiles = (state.seenEmittedFiles || (state.seenEmittedFiles = new ts.Map()));\n for (var i = state.affectedFilesPendingEmitIndex; i < affectedFilesPendingEmit.length; i++) {\n var affectedFile = ts.Debug.checkDefined(state.program).getSourceFileByPath(affectedFilesPendingEmit[i]);\n if (affectedFile) {\n var seenKind = seenEmittedFiles.get(affectedFile.resolvedPath);\n var emitKind = ts.Debug.checkDefined(ts.Debug.checkDefined(state.affectedFilesPendingEmitKind).get(affectedFile.resolvedPath));\n if (seenKind === undefined || seenKind < emitKind) {\n // emit this file\n state.affectedFilesPendingEmitIndex = i;\n return { affectedFile: affectedFile, emitKind: emitKind };\n }\n }\n }\n state.affectedFilesPendingEmit = undefined;\n state.affectedFilesPendingEmitKind = undefined;\n state.affectedFilesPendingEmitIndex = undefined;\n }\n return undefined;\n }\n /**\n * Handles semantic diagnostics and dts emit for affectedFile and files, that are referencing modules that export entities from affected file\n * This is because even though js emit doesnt change, dts emit / type used can change resulting in need for dts emit and js change\n */\n function handleDtsMayChangeOfAffectedFile(state, affectedFile, cancellationToken, computeHash) {\n var _a;\n removeSemanticDiagnosticsOf(state, affectedFile.resolvedPath);\n // If affected files is everything except default library, then nothing more to do\n if (state.allFilesExcludingDefaultLibraryFile === state.affectedFiles) {\n if (!state.cleanedDiagnosticsOfLibFiles) {\n state.cleanedDiagnosticsOfLibFiles = true;\n var program_1 = ts.Debug.checkDefined(state.program);\n var options_2 = program_1.getCompilerOptions();\n ts.forEach(program_1.getSourceFiles(), function (f) {\n return program_1.isSourceFileDefaultLibrary(f) &&\n !ts.skipTypeChecking(f, options_2, program_1) &&\n removeSemanticDiagnosticsOf(state, f.resolvedPath);\n });\n }\n // When a change affects the global scope, all files are considered to be affected without updating their signature\n // That means when affected file is handled, its signature can be out of date\n // To avoid this, ensure that we update the signature for any affected file in this scenario.\n ts.BuilderState.updateShapeSignature(state, ts.Debug.checkDefined(state.program), affectedFile, ts.Debug.checkDefined(state.currentAffectedFilesSignatures), cancellationToken, computeHash, state.currentAffectedFilesExportedModulesMap);\n return;\n }\n else {\n ts.Debug.assert(state.hasCalledUpdateShapeSignature.has(affectedFile.resolvedPath) || ((_a = state.currentAffectedFilesSignatures) === null || _a === void 0 ? void 0 : _a.has(affectedFile.resolvedPath)), \"Signature not updated for affected file: \" + affectedFile.fileName);\n }\n if (!state.compilerOptions.assumeChangesOnlyAffectDirectDependencies) {\n forEachReferencingModulesOfExportOfAffectedFile(state, affectedFile, function (state, path) { return handleDtsMayChangeOf(state, path, cancellationToken, computeHash); });\n }\n }\n /**\n * Handle the dts may change, so they need to be added to pending emit if dts emit is enabled,\n * Also we need to make sure signature is updated for these files\n */\n function handleDtsMayChangeOf(state, path, cancellationToken, computeHash) {\n removeSemanticDiagnosticsOf(state, path);\n if (!state.changedFilesSet.has(path)) {\n var program = ts.Debug.checkDefined(state.program);\n var sourceFile = program.getSourceFileByPath(path);\n if (sourceFile) {\n // Even though the js emit doesnt change and we are already handling dts emit and semantic diagnostics\n // we need to update the signature to reflect correctness of the signature(which is output d.ts emit) of this file\n // This ensures that we dont later during incremental builds considering wrong signature.\n // Eg where this also is needed to ensure that .tsbuildinfo generated by incremental build should be same as if it was first fresh build\n // But we avoid expensive full shape computation, as using file version as shape is enough for correctness.\n ts.BuilderState.updateShapeSignature(state, program, sourceFile, ts.Debug.checkDefined(state.currentAffectedFilesSignatures), cancellationToken, computeHash, state.currentAffectedFilesExportedModulesMap, \n /* useFileVersionAsSignature */ true);\n // If not dts emit, nothing more to do\n if (ts.getEmitDeclarations(state.compilerOptions)) {\n addToAffectedFilesPendingEmit(state, path, 0 /* DtsOnly */);\n }\n }\n }\n }\n /**\n * Removes semantic diagnostics for path and\n * returns true if there are no more semantic diagnostics from the old state\n */\n function removeSemanticDiagnosticsOf(state, path) {\n if (!state.semanticDiagnosticsFromOldState) {\n return true;\n }\n state.semanticDiagnosticsFromOldState.delete(path);\n state.semanticDiagnosticsPerFile.delete(path);\n return !state.semanticDiagnosticsFromOldState.size;\n }\n function isChangedSignature(state, path) {\n var newSignature = ts.Debug.checkDefined(state.currentAffectedFilesSignatures).get(path);\n var oldSignature = ts.Debug.checkDefined(state.fileInfos.get(path)).signature;\n return newSignature !== oldSignature;\n }\n /**\n * Iterate on referencing modules that export entities from affected file\n */\n function forEachReferencingModulesOfExportOfAffectedFile(state, affectedFile, fn) {\n var _a, _b;\n // If there was change in signature (dts output) for the changed file,\n // then only we need to handle pending file emit\n if (!state.exportedModulesMap || !state.changedFilesSet.has(affectedFile.resolvedPath)) {\n return;\n }\n if (!isChangedSignature(state, affectedFile.resolvedPath))\n return;\n // Since isolated modules dont change js files, files affected by change in signature is itself\n // But we need to cleanup semantic diagnostics and queue dts emit for affected files\n if (state.compilerOptions.isolatedModules) {\n var seenFileNamesMap = new ts.Map();\n seenFileNamesMap.set(affectedFile.resolvedPath, true);\n var queue = ts.BuilderState.getReferencedByPaths(state, affectedFile.resolvedPath);\n while (queue.length > 0) {\n var currentPath = queue.pop();\n if (!seenFileNamesMap.has(currentPath)) {\n seenFileNamesMap.set(currentPath, true);\n fn(state, currentPath);\n if (isChangedSignature(state, currentPath)) {\n var currentSourceFile = ts.Debug.checkDefined(state.program).getSourceFileByPath(currentPath);\n queue.push.apply(queue, ts.BuilderState.getReferencedByPaths(state, currentSourceFile.resolvedPath));\n }\n }\n }\n }\n ts.Debug.assert(!!state.currentAffectedFilesExportedModulesMap);\n var seenFileAndExportsOfFile = new ts.Set();\n // Go through exported modules from cache first\n // If exported modules has path, all files referencing file exported from are affected\n (_a = state.currentAffectedFilesExportedModulesMap.getKeys(affectedFile.resolvedPath)) === null || _a === void 0 ? void 0 : _a.forEach(function (exportedFromPath) {\n return forEachFilesReferencingPath(state, exportedFromPath, seenFileAndExportsOfFile, fn);\n });\n // If exported from path is not from cache and exported modules has path, all files referencing file exported from are affected\n (_b = state.exportedModulesMap.getKeys(affectedFile.resolvedPath)) === null || _b === void 0 ? void 0 : _b.forEach(function (exportedFromPath) {\n var _a;\n // If the cache had an updated value, skip\n return !state.currentAffectedFilesExportedModulesMap.hasKey(exportedFromPath) &&\n !((_a = state.currentAffectedFilesExportedModulesMap.deletedKeys()) === null || _a === void 0 ? void 0 : _a.has(exportedFromPath)) &&\n forEachFilesReferencingPath(state, exportedFromPath, seenFileAndExportsOfFile, fn);\n });\n }\n /**\n * Iterate on files referencing referencedPath\n */\n function forEachFilesReferencingPath(state, referencedPath, seenFileAndExportsOfFile, fn) {\n var _a;\n (_a = state.referencedMap.getKeys(referencedPath)) === null || _a === void 0 ? void 0 : _a.forEach(function (filePath) {\n return forEachFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, fn);\n });\n }\n /**\n * fn on file and iterate on anything that exports this file\n */\n function forEachFileAndExportsOfFile(state, filePath, seenFileAndExportsOfFile, fn) {\n var _a, _b, _c;\n if (!ts.tryAddToSet(seenFileAndExportsOfFile, filePath)) {\n return;\n }\n fn(state, filePath);\n ts.Debug.assert(!!state.currentAffectedFilesExportedModulesMap);\n // Go through exported modules from cache first\n // If exported modules has path, all files referencing file exported from are affected\n (_a = state.currentAffectedFilesExportedModulesMap.getKeys(filePath)) === null || _a === void 0 ? void 0 : _a.forEach(function (exportedFromPath) {\n return forEachFileAndExportsOfFile(state, exportedFromPath, seenFileAndExportsOfFile, fn);\n });\n // If exported from path is not from cache and exported modules has path, all files referencing file exported from are affected\n (_b = state.exportedModulesMap.getKeys(filePath)) === null || _b === void 0 ? void 0 : _b.forEach(function (exportedFromPath) {\n var _a;\n // If the cache had an updated value, skip\n return !state.currentAffectedFilesExportedModulesMap.hasKey(exportedFromPath) &&\n !((_a = state.currentAffectedFilesExportedModulesMap.deletedKeys()) === null || _a === void 0 ? void 0 : _a.has(exportedFromPath)) &&\n forEachFileAndExportsOfFile(state, exportedFromPath, seenFileAndExportsOfFile, fn);\n });\n // Remove diagnostics of files that import this file (without going to exports of referencing files)\n (_c = state.referencedMap.getKeys(filePath)) === null || _c === void 0 ? void 0 : _c.forEach(function (referencingFilePath) {\n return !seenFileAndExportsOfFile.has(referencingFilePath) && // Not already removed diagnostic file\n fn(state, referencingFilePath);\n } // Dont add to seen since this is not yet done with the export removal\n );\n }\n /**\n * This is called after completing operation on the next affected file.\n * The operations here are postponed to ensure that cancellation during the iteration is handled correctly\n */\n function doneWithAffectedFile(state, affected, emitKind, isPendingEmit, isBuildInfoEmit) {\n if (isBuildInfoEmit) {\n state.buildInfoEmitPending = false;\n }\n else if (affected === state.program) {\n state.changedFilesSet.clear();\n state.programEmitComplete = true;\n }\n else {\n state.seenAffectedFiles.add(affected.resolvedPath);\n if (emitKind !== undefined) {\n (state.seenEmittedFiles || (state.seenEmittedFiles = new ts.Map())).set(affected.resolvedPath, emitKind);\n }\n if (isPendingEmit) {\n state.affectedFilesPendingEmitIndex++;\n state.buildInfoEmitPending = true;\n }\n else {\n state.affectedFilesIndex++;\n }\n }\n }\n /**\n * Returns the result with affected file\n */\n function toAffectedFileResult(state, result, affected) {\n doneWithAffectedFile(state, affected);\n return { result: result, affected: affected };\n }\n /**\n * Returns the result with affected file\n */\n function toAffectedFileEmitResult(state, result, affected, emitKind, isPendingEmit, isBuildInfoEmit) {\n doneWithAffectedFile(state, affected, emitKind, isPendingEmit, isBuildInfoEmit);\n return { result: result, affected: affected };\n }\n /**\n * Gets semantic diagnostics for the file which are\n * bindAndCheckDiagnostics (from cache) and program diagnostics\n */\n function getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken) {\n return ts.concatenate(getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken), ts.Debug.checkDefined(state.program).getProgramDiagnostics(sourceFile));\n }\n /**\n * Gets the binder and checker diagnostics either from cache if present, or otherwise from program and caches it\n * Note that it is assumed that when asked about binder and checker diagnostics, the file has been taken out of affected files/changed file set\n */\n function getBinderAndCheckerDiagnosticsOfFile(state, sourceFile, cancellationToken) {\n var path = sourceFile.resolvedPath;\n if (state.semanticDiagnosticsPerFile) {\n var cachedDiagnostics = state.semanticDiagnosticsPerFile.get(path);\n // Report the bind and check diagnostics from the cache if we already have those diagnostics present\n if (cachedDiagnostics) {\n return ts.filterSemanticDiagnostics(cachedDiagnostics, state.compilerOptions);\n }\n }\n // Diagnostics werent cached, get them from program, and cache the result\n var diagnostics = ts.Debug.checkDefined(state.program).getBindAndCheckDiagnostics(sourceFile, cancellationToken);\n if (state.semanticDiagnosticsPerFile) {\n state.semanticDiagnosticsPerFile.set(path, diagnostics);\n }\n return ts.filterSemanticDiagnostics(diagnostics, state.compilerOptions);\n }\n /**\n * Gets the program information to be emitted in buildInfo so that we can use it to create new program\n */\n function getProgramBuildInfo(state, getCanonicalFileName) {\n if (ts.outFile(state.compilerOptions))\n return undefined;\n var currentDirectory = ts.Debug.checkDefined(state.program).getCurrentDirectory();\n var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(ts.getTsBuildInfoEmitOutputFilePath(state.compilerOptions), currentDirectory));\n var fileNames = [];\n var fileNameToFileId = new ts.Map();\n var fileIdsList;\n var fileNamesToFileIdListId;\n var fileInfos = ts.arrayFrom(state.fileInfos.entries(), function (_a) {\n var key = _a[0], value = _a[1];\n // Ensure fileId\n var fileId = toFileId(key);\n ts.Debug.assert(fileNames[fileId - 1] === relativeToBuildInfo(key));\n var signature = state.currentAffectedFilesSignatures && state.currentAffectedFilesSignatures.get(key);\n var actualSignature = signature !== null && signature !== void 0 ? signature : value.signature;\n return value.version === actualSignature ?\n value.affectsGlobalScope ?\n { version: value.version, signature: undefined, affectsGlobalScope: true } :\n value.version :\n actualSignature !== undefined ?\n signature === undefined ?\n value :\n { version: value.version, signature: signature, affectsGlobalScope: value.affectsGlobalScope } :\n { version: value.version, signature: false, affectsGlobalScope: value.affectsGlobalScope };\n });\n var referencedMap;\n if (state.referencedMap) {\n referencedMap = ts.arrayFrom(state.referencedMap.keys()).sort(ts.compareStringsCaseSensitive).map(function (key) { return [\n toFileId(key),\n toFileIdListId(state.referencedMap.getValues(key))\n ]; });\n }\n var exportedModulesMap;\n if (state.exportedModulesMap) {\n exportedModulesMap = ts.mapDefined(ts.arrayFrom(state.exportedModulesMap.keys()).sort(ts.compareStringsCaseSensitive), function (key) {\n var _a;\n if (state.currentAffectedFilesExportedModulesMap) {\n if ((_a = state.currentAffectedFilesExportedModulesMap.deletedKeys()) === null || _a === void 0 ? void 0 : _a.has(key)) {\n return undefined;\n }\n var newValue = state.currentAffectedFilesExportedModulesMap.getValues(key);\n if (newValue) {\n return [toFileId(key), toFileIdListId(newValue)];\n }\n }\n // Not in temporary cache, use existing value\n return [toFileId(key), toFileIdListId(state.exportedModulesMap.getValues(key))];\n });\n }\n var semanticDiagnosticsPerFile;\n if (state.semanticDiagnosticsPerFile) {\n for (var _i = 0, _a = ts.arrayFrom(state.semanticDiagnosticsPerFile.keys()).sort(ts.compareStringsCaseSensitive); _i < _a.length; _i++) {\n var key = _a[_i];\n var value = state.semanticDiagnosticsPerFile.get(key);\n (semanticDiagnosticsPerFile || (semanticDiagnosticsPerFile = [])).push(value.length ?\n [\n toFileId(key),\n state.hasReusableDiagnostic ?\n value :\n convertToReusableDiagnostics(value, relativeToBuildInfo)\n ] :\n toFileId(key));\n }\n }\n var affectedFilesPendingEmit;\n if (state.affectedFilesPendingEmit) {\n var seenFiles = new ts.Set();\n for (var _b = 0, _c = state.affectedFilesPendingEmit.slice(state.affectedFilesPendingEmitIndex).sort(ts.compareStringsCaseSensitive); _b < _c.length; _b++) {\n var path = _c[_b];\n if (ts.tryAddToSet(seenFiles, path)) {\n (affectedFilesPendingEmit || (affectedFilesPendingEmit = [])).push([toFileId(path), state.affectedFilesPendingEmitKind.get(path)]);\n }\n }\n }\n return {\n fileNames: fileNames,\n fileInfos: fileInfos,\n options: convertToProgramBuildInfoCompilerOptions(state.compilerOptions, relativeToBuildInfoEnsuringAbsolutePath),\n fileIdsList: fileIdsList,\n referencedMap: referencedMap,\n exportedModulesMap: exportedModulesMap,\n semanticDiagnosticsPerFile: semanticDiagnosticsPerFile,\n affectedFilesPendingEmit: affectedFilesPendingEmit,\n };\n function relativeToBuildInfoEnsuringAbsolutePath(path) {\n return relativeToBuildInfo(ts.getNormalizedAbsolutePath(path, currentDirectory));\n }\n function relativeToBuildInfo(path) {\n return ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(buildInfoDirectory, path, getCanonicalFileName));\n }\n function toFileId(path) {\n var fileId = fileNameToFileId.get(path);\n if (fileId === undefined) {\n fileNames.push(relativeToBuildInfo(path));\n fileNameToFileId.set(path, fileId = fileNames.length);\n }\n return fileId;\n }\n function toFileIdListId(set) {\n var fileIds = ts.arrayFrom(set.keys(), toFileId).sort(ts.compareValues);\n var key = fileIds.join();\n var fileIdListId = fileNamesToFileIdListId === null || fileNamesToFileIdListId === void 0 ? void 0 : fileNamesToFileIdListId.get(key);\n if (fileIdListId === undefined) {\n (fileIdsList || (fileIdsList = [])).push(fileIds);\n (fileNamesToFileIdListId || (fileNamesToFileIdListId = new ts.Map())).set(key, fileIdListId = fileIdsList.length);\n }\n return fileIdListId;\n }\n }\n function convertToProgramBuildInfoCompilerOptions(options, relativeToBuildInfo) {\n var result;\n var optionsNameMap = ts.getOptionsNameMap().optionsNameMap;\n for (var _i = 0, _a = ts.getOwnKeys(options).sort(ts.compareStringsCaseSensitive); _i < _a.length; _i++) {\n var name = _a[_i];\n var optionKey = name.toLowerCase();\n var optionInfo = optionsNameMap.get(optionKey);\n if ((optionInfo === null || optionInfo === void 0 ? void 0 : optionInfo.affectsEmit) || (optionInfo === null || optionInfo === void 0 ? void 0 : optionInfo.affectsSemanticDiagnostics) ||\n // We need to store `strict`, even though it won't be examined directly, so that the\n // flags it controls (e.g. `strictNullChecks`) will be retrieved correctly from the buildinfo\n optionKey === \"strict\" ||\n // We need to store these to determine whether `lib` files need to be rechecked.\n optionKey === \"skiplibcheck\" || optionKey === \"skipdefaultlibcheck\") {\n (result || (result = {}))[name] = convertToReusableCompilerOptionValue(optionInfo, options[name], relativeToBuildInfo);\n }\n }\n return result;\n }\n function convertToReusableCompilerOptionValue(option, value, relativeToBuildInfo) {\n if (option) {\n if (option.type === \"list\") {\n var values = value;\n if (option.element.isFilePath && values.length) {\n return values.map(relativeToBuildInfo);\n }\n }\n else if (option.isFilePath) {\n return relativeToBuildInfo(value);\n }\n }\n return value;\n }\n function convertToReusableDiagnostics(diagnostics, relativeToBuildInfo) {\n ts.Debug.assert(!!diagnostics.length);\n return diagnostics.map(function (diagnostic) {\n var result = convertToReusableDiagnosticRelatedInformation(diagnostic, relativeToBuildInfo);\n result.reportsUnnecessary = diagnostic.reportsUnnecessary;\n result.reportDeprecated = diagnostic.reportsDeprecated;\n result.source = diagnostic.source;\n result.skippedOn = diagnostic.skippedOn;\n var relatedInformation = diagnostic.relatedInformation;\n result.relatedInformation = relatedInformation ?\n relatedInformation.length ?\n relatedInformation.map(function (r) { return convertToReusableDiagnosticRelatedInformation(r, relativeToBuildInfo); }) :\n [] :\n undefined;\n return result;\n });\n }\n function convertToReusableDiagnosticRelatedInformation(diagnostic, relativeToBuildInfo) {\n var file = diagnostic.file;\n return __assign(__assign({}, diagnostic), { file: file ? relativeToBuildInfo(file.resolvedPath) : undefined });\n }\n var BuilderProgramKind;\n (function (BuilderProgramKind) {\n BuilderProgramKind[BuilderProgramKind[\"SemanticDiagnosticsBuilderProgram\"] = 0] = \"SemanticDiagnosticsBuilderProgram\";\n BuilderProgramKind[BuilderProgramKind[\"EmitAndSemanticDiagnosticsBuilderProgram\"] = 1] = \"EmitAndSemanticDiagnosticsBuilderProgram\";\n })(BuilderProgramKind = ts.BuilderProgramKind || (ts.BuilderProgramKind = {}));\n function getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n var host;\n var newProgram;\n var oldProgram;\n if (newProgramOrRootNames === undefined) {\n ts.Debug.assert(hostOrOptions === undefined);\n host = oldProgramOrHost;\n oldProgram = configFileParsingDiagnosticsOrOldProgram;\n ts.Debug.assert(!!oldProgram);\n newProgram = oldProgram.getProgram();\n }\n else if (ts.isArray(newProgramOrRootNames)) {\n oldProgram = configFileParsingDiagnosticsOrOldProgram;\n newProgram = ts.createProgram({\n rootNames: newProgramOrRootNames,\n options: hostOrOptions,\n host: oldProgramOrHost,\n oldProgram: oldProgram && oldProgram.getProgramOrUndefined(),\n configFileParsingDiagnostics: configFileParsingDiagnostics,\n projectReferences: projectReferences\n });\n host = oldProgramOrHost;\n }\n else {\n newProgram = newProgramOrRootNames;\n host = hostOrOptions;\n oldProgram = oldProgramOrHost;\n configFileParsingDiagnostics = configFileParsingDiagnosticsOrOldProgram;\n }\n return { host: host, newProgram: newProgram, oldProgram: oldProgram, configFileParsingDiagnostics: configFileParsingDiagnostics || ts.emptyArray };\n }\n ts.getBuilderCreationParameters = getBuilderCreationParameters;\n function createBuilderProgram(kind, _a) {\n var newProgram = _a.newProgram, host = _a.host, oldProgram = _a.oldProgram, configFileParsingDiagnostics = _a.configFileParsingDiagnostics;\n // Return same program if underlying program doesnt change\n var oldState = oldProgram && oldProgram.getState();\n if (oldState && newProgram === oldState.program && configFileParsingDiagnostics === newProgram.getConfigFileParsingDiagnostics()) {\n newProgram = undefined; // TODO: GH#18217\n oldState = undefined;\n return oldProgram;\n }\n /**\n * Create the canonical file name for identity\n */\n var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n /**\n * Computing hash to for signature verification\n */\n var computeHash = ts.maybeBind(host, host.createHash);\n var state = createBuilderProgramState(newProgram, getCanonicalFileName, oldState, host.disableUseFileVersionAsSignature);\n var backupState;\n newProgram.getProgramBuildInfo = function () { return getProgramBuildInfo(state, getCanonicalFileName); };\n // To ensure that we arent storing any references to old program or new program without state\n newProgram = undefined; // TODO: GH#18217\n oldProgram = undefined;\n oldState = undefined;\n var getState = function () { return state; };\n var builderProgram = createRedirectedBuilderProgram(getState, configFileParsingDiagnostics);\n builderProgram.getState = getState;\n builderProgram.backupState = function () {\n ts.Debug.assert(backupState === undefined);\n backupState = cloneBuilderProgramState(state);\n };\n builderProgram.restoreState = function () {\n state = ts.Debug.checkDefined(backupState);\n backupState = undefined;\n };\n builderProgram.getAllDependencies = function (sourceFile) { return ts.BuilderState.getAllDependencies(state, ts.Debug.checkDefined(state.program), sourceFile); };\n builderProgram.getSemanticDiagnostics = getSemanticDiagnostics;\n builderProgram.emit = emit;\n builderProgram.releaseProgram = function () {\n releaseCache(state);\n backupState = undefined;\n };\n if (kind === BuilderProgramKind.SemanticDiagnosticsBuilderProgram) {\n builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile;\n }\n else if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) {\n builderProgram.getSemanticDiagnosticsOfNextAffectedFile = getSemanticDiagnosticsOfNextAffectedFile;\n builderProgram.emitNextAffectedFile = emitNextAffectedFile;\n builderProgram.emitBuildInfo = emitBuildInfo;\n }\n else {\n ts.notImplemented();\n }\n return builderProgram;\n function emitBuildInfo(writeFile, cancellationToken) {\n if (state.buildInfoEmitPending) {\n var result = ts.Debug.checkDefined(state.program).emitBuildInfo(writeFile || ts.maybeBind(host, host.writeFile), cancellationToken);\n state.buildInfoEmitPending = false;\n return result;\n }\n return ts.emitSkippedWithNoDiagnostics;\n }\n /**\n * Emits the next affected file's emit result (EmitResult and sourceFiles emitted) or returns undefined if iteration is complete\n * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host\n * in that order would be used to write the files\n */\n function emitNextAffectedFile(writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n var affected = getNextAffectedFile(state, cancellationToken, computeHash);\n var emitKind = 1 /* Full */;\n var isPendingEmitFile = false;\n if (!affected) {\n if (!ts.outFile(state.compilerOptions)) {\n var pendingAffectedFile = getNextAffectedFilePendingEmit(state);\n if (!pendingAffectedFile) {\n if (!state.buildInfoEmitPending) {\n return undefined;\n }\n var affected_1 = ts.Debug.checkDefined(state.program);\n return toAffectedFileEmitResult(state, \n // When whole program is affected, do emit only once (eg when --out or --outFile is specified)\n // Otherwise just affected file\n affected_1.emitBuildInfo(writeFile || ts.maybeBind(host, host.writeFile), cancellationToken), affected_1, 1 /* Full */, \n /*isPendingEmitFile*/ false, \n /*isBuildInfoEmit*/ true);\n }\n (affected = pendingAffectedFile.affectedFile, emitKind = pendingAffectedFile.emitKind);\n isPendingEmitFile = true;\n }\n else {\n var program = ts.Debug.checkDefined(state.program);\n if (state.programEmitComplete)\n return undefined;\n affected = program;\n }\n }\n return toAffectedFileEmitResult(state, \n // When whole program is affected, do emit only once (eg when --out or --outFile is specified)\n // Otherwise just affected file\n ts.Debug.checkDefined(state.program).emit(affected === state.program ? undefined : affected, writeFile || ts.maybeBind(host, host.writeFile), cancellationToken, emitOnlyDtsFiles || emitKind === 0 /* DtsOnly */, customTransformers), affected, emitKind, isPendingEmitFile);\n }\n /**\n * Emits the JavaScript and declaration files.\n * When targetSource file is specified, emits the files corresponding to that source file,\n * otherwise for the whole program.\n * In case of EmitAndSemanticDiagnosticsBuilderProgram, when targetSourceFile is specified,\n * it is assumed that that file is handled from affected file list. If targetSourceFile is not specified,\n * it will only emit all the affected files instead of whole program\n *\n * The first of writeFile if provided, writeFile of BuilderProgramHost if provided, writeFile of compiler host\n * in that order would be used to write the files\n */\n function emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n var restorePendingEmitOnHandlingNoEmitSuccess = false;\n var savedAffectedFilesPendingEmit;\n var savedAffectedFilesPendingEmitKind;\n var savedAffectedFilesPendingEmitIndex;\n // Backup and restore affected pendings emit state for non emit Builder if noEmitOnError is enabled and emitBuildInfo could be written in case there are errors\n // This ensures pending files to emit is updated in tsbuildinfo\n // Note that when there are no errors, emit proceeds as if everything is emitted as it is callers reponsibility to write the files to disk if at all (because its builder that doesnt track files to emit)\n if (kind !== BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram &&\n !targetSourceFile &&\n !ts.outFile(state.compilerOptions) &&\n !state.compilerOptions.noEmit &&\n state.compilerOptions.noEmitOnError) {\n restorePendingEmitOnHandlingNoEmitSuccess = true;\n savedAffectedFilesPendingEmit = state.affectedFilesPendingEmit && state.affectedFilesPendingEmit.slice();\n savedAffectedFilesPendingEmitKind = state.affectedFilesPendingEmitKind && new ts.Map(state.affectedFilesPendingEmitKind);\n savedAffectedFilesPendingEmitIndex = state.affectedFilesPendingEmitIndex;\n }\n if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) {\n assertSourceFileOkWithoutNextAffectedCall(state, targetSourceFile);\n }\n var result = ts.handleNoEmitOptions(builderProgram, targetSourceFile, writeFile, cancellationToken);\n if (result)\n return result;\n if (restorePendingEmitOnHandlingNoEmitSuccess) {\n state.affectedFilesPendingEmit = savedAffectedFilesPendingEmit;\n state.affectedFilesPendingEmitKind = savedAffectedFilesPendingEmitKind;\n state.affectedFilesPendingEmitIndex = savedAffectedFilesPendingEmitIndex;\n }\n // Emit only affected files if using builder for emit\n if (!targetSourceFile && kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram) {\n // Emit and report any errors we ran into.\n var sourceMaps = [];\n var emitSkipped = false;\n var diagnostics = void 0;\n var emittedFiles = [];\n var affectedEmitResult = void 0;\n while (affectedEmitResult = emitNextAffectedFile(writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers)) {\n emitSkipped = emitSkipped || affectedEmitResult.result.emitSkipped;\n diagnostics = ts.addRange(diagnostics, affectedEmitResult.result.diagnostics);\n emittedFiles = ts.addRange(emittedFiles, affectedEmitResult.result.emittedFiles);\n sourceMaps = ts.addRange(sourceMaps, affectedEmitResult.result.sourceMaps);\n }\n return {\n emitSkipped: emitSkipped,\n diagnostics: diagnostics || ts.emptyArray,\n emittedFiles: emittedFiles,\n sourceMaps: sourceMaps\n };\n }\n return ts.Debug.checkDefined(state.program).emit(targetSourceFile, writeFile || ts.maybeBind(host, host.writeFile), cancellationToken, emitOnlyDtsFiles, customTransformers);\n }\n /**\n * Return the semantic diagnostics for the next affected file or undefined if iteration is complete\n * If provided ignoreSourceFile would be called before getting the diagnostics and would ignore the sourceFile if the returned value was true\n */\n function getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile) {\n while (true) {\n var affected = getNextAffectedFile(state, cancellationToken, computeHash);\n if (!affected) {\n // Done\n return undefined;\n }\n else if (affected === state.program) {\n // When whole program is affected, get all semantic diagnostics (eg when --out or --outFile is specified)\n return toAffectedFileResult(state, state.program.getSemanticDiagnostics(/*targetSourceFile*/ undefined, cancellationToken), affected);\n }\n // Add file to affected file pending emit to handle for later emit time\n // Apart for emit builder do this for tsbuildinfo, do this for non emit builder when noEmit is set as tsbuildinfo is written and reused between emitters\n if (kind === BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram || state.compilerOptions.noEmit || state.compilerOptions.noEmitOnError) {\n addToAffectedFilesPendingEmit(state, affected.resolvedPath, 1 /* Full */);\n }\n // Get diagnostics for the affected file if its not ignored\n if (ignoreSourceFile && ignoreSourceFile(affected)) {\n // Get next affected file\n doneWithAffectedFile(state, affected);\n continue;\n }\n return toAffectedFileResult(state, getSemanticDiagnosticsOfFile(state, affected, cancellationToken), affected);\n }\n }\n /**\n * Gets the semantic diagnostics from the program corresponding to this state of file (if provided) or whole program\n * The semantic diagnostics are cached and managed here\n * Note that it is assumed that when asked about semantic diagnostics through this API,\n * the file has been taken out of affected files so it is safe to use cache or get from program and cache the diagnostics\n * In case of SemanticDiagnosticsBuilderProgram if the source file is not provided,\n * it will iterate through all the affected files, to ensure that cache stays valid and yet provide a way to get all semantic diagnostics\n */\n function getSemanticDiagnostics(sourceFile, cancellationToken) {\n assertSourceFileOkWithoutNextAffectedCall(state, sourceFile);\n var compilerOptions = ts.Debug.checkDefined(state.program).getCompilerOptions();\n if (ts.outFile(compilerOptions)) {\n ts.Debug.assert(!state.semanticDiagnosticsPerFile);\n // We dont need to cache the diagnostics just return them from program\n return ts.Debug.checkDefined(state.program).getSemanticDiagnostics(sourceFile, cancellationToken);\n }\n if (sourceFile) {\n return getSemanticDiagnosticsOfFile(state, sourceFile, cancellationToken);\n }\n // When semantic builder asks for diagnostics of the whole program,\n // ensure that all the affected files are handled\n // eslint-disable-next-line no-empty\n while (getSemanticDiagnosticsOfNextAffectedFile(cancellationToken)) {\n }\n var diagnostics;\n for (var _i = 0, _a = ts.Debug.checkDefined(state.program).getSourceFiles(); _i < _a.length; _i++) {\n var sourceFile_1 = _a[_i];\n diagnostics = ts.addRange(diagnostics, getSemanticDiagnosticsOfFile(state, sourceFile_1, cancellationToken));\n }\n return diagnostics || ts.emptyArray;\n }\n }\n ts.createBuilderProgram = createBuilderProgram;\n function addToAffectedFilesPendingEmit(state, affectedFilePendingEmit, kind) {\n if (!state.affectedFilesPendingEmit)\n state.affectedFilesPendingEmit = [];\n if (!state.affectedFilesPendingEmitKind)\n state.affectedFilesPendingEmitKind = new ts.Map();\n var existingKind = state.affectedFilesPendingEmitKind.get(affectedFilePendingEmit);\n state.affectedFilesPendingEmit.push(affectedFilePendingEmit);\n state.affectedFilesPendingEmitKind.set(affectedFilePendingEmit, existingKind || kind);\n // affectedFilesPendingEmitIndex === undefined\n // - means the emit state.affectedFilesPendingEmit was undefined before adding current affected files\n // so start from 0 as array would be affectedFilesPendingEmit\n // else, continue to iterate from existing index, the current set is appended to existing files\n if (state.affectedFilesPendingEmitIndex === undefined) {\n state.affectedFilesPendingEmitIndex = 0;\n }\n }\n function toBuilderStateFileInfo(fileInfo) {\n return ts.isString(fileInfo) ?\n { version: fileInfo, signature: fileInfo, affectsGlobalScope: undefined } :\n ts.isString(fileInfo.signature) ?\n fileInfo :\n { version: fileInfo.version, signature: fileInfo.signature === false ? undefined : fileInfo.version, affectsGlobalScope: fileInfo.affectsGlobalScope };\n }\n ts.toBuilderStateFileInfo = toBuilderStateFileInfo;\n function createBuildProgramUsingProgramBuildInfo(program, buildInfoPath, host) {\n var _a;\n var buildInfoDirectory = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(buildInfoPath, host.getCurrentDirectory()));\n var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n var filePaths = program.fileNames.map(toPath);\n var filePathsSetList = (_a = program.fileIdsList) === null || _a === void 0 ? void 0 : _a.map(function (fileIds) { return new ts.Set(fileIds.map(toFilePath)); });\n var fileInfos = new ts.Map();\n program.fileInfos.forEach(function (fileInfo, index) { return fileInfos.set(toFilePath(index + 1), toBuilderStateFileInfo(fileInfo)); });\n var state = {\n fileInfos: fileInfos,\n compilerOptions: program.options ? ts.convertToOptionsWithAbsolutePaths(program.options, toAbsolutePath) : {},\n referencedMap: toManyToManyPathMap(program.referencedMap),\n exportedModulesMap: toManyToManyPathMap(program.exportedModulesMap),\n semanticDiagnosticsPerFile: program.semanticDiagnosticsPerFile && ts.arrayToMap(program.semanticDiagnosticsPerFile, function (value) { return toFilePath(ts.isNumber(value) ? value : value[0]); }, function (value) { return ts.isNumber(value) ? ts.emptyArray : value[1]; }),\n hasReusableDiagnostic: true,\n affectedFilesPendingEmit: ts.map(program.affectedFilesPendingEmit, function (value) { return toFilePath(value[0]); }),\n affectedFilesPendingEmitKind: program.affectedFilesPendingEmit && ts.arrayToMap(program.affectedFilesPendingEmit, function (value) { return toFilePath(value[0]); }, function (value) { return value[1]; }),\n affectedFilesPendingEmitIndex: program.affectedFilesPendingEmit && 0,\n };\n return {\n getState: function () { return state; },\n backupState: ts.noop,\n restoreState: ts.noop,\n getProgram: ts.notImplemented,\n getProgramOrUndefined: ts.returnUndefined,\n releaseProgram: ts.noop,\n getCompilerOptions: function () { return state.compilerOptions; },\n getSourceFile: ts.notImplemented,\n getSourceFiles: ts.notImplemented,\n getOptionsDiagnostics: ts.notImplemented,\n getGlobalDiagnostics: ts.notImplemented,\n getConfigFileParsingDiagnostics: ts.notImplemented,\n getSyntacticDiagnostics: ts.notImplemented,\n getDeclarationDiagnostics: ts.notImplemented,\n getSemanticDiagnostics: ts.notImplemented,\n emit: ts.notImplemented,\n getAllDependencies: ts.notImplemented,\n getCurrentDirectory: ts.notImplemented,\n emitNextAffectedFile: ts.notImplemented,\n getSemanticDiagnosticsOfNextAffectedFile: ts.notImplemented,\n emitBuildInfo: ts.notImplemented,\n close: ts.noop,\n };\n function toPath(path) {\n return ts.toPath(path, buildInfoDirectory, getCanonicalFileName);\n }\n function toAbsolutePath(path) {\n return ts.getNormalizedAbsolutePath(path, buildInfoDirectory);\n }\n function toFilePath(fileId) {\n return filePaths[fileId - 1];\n }\n function toFilePathsSet(fileIdsListId) {\n return filePathsSetList[fileIdsListId - 1];\n }\n function toManyToManyPathMap(referenceMap) {\n if (!referenceMap) {\n return undefined;\n }\n var map = ts.BuilderState.createManyToManyPathMap();\n referenceMap.forEach(function (_a) {\n var fileId = _a[0], fileIdListId = _a[1];\n return map.set(toFilePath(fileId), toFilePathsSet(fileIdListId));\n });\n return map;\n }\n }\n ts.createBuildProgramUsingProgramBuildInfo = createBuildProgramUsingProgramBuildInfo;\n function createRedirectedBuilderProgram(getState, configFileParsingDiagnostics) {\n return {\n getState: ts.notImplemented,\n backupState: ts.noop,\n restoreState: ts.noop,\n getProgram: getProgram,\n getProgramOrUndefined: function () { return getState().program; },\n releaseProgram: function () { return getState().program = undefined; },\n getCompilerOptions: function () { return getState().compilerOptions; },\n getSourceFile: function (fileName) { return getProgram().getSourceFile(fileName); },\n getSourceFiles: function () { return getProgram().getSourceFiles(); },\n getOptionsDiagnostics: function (cancellationToken) { return getProgram().getOptionsDiagnostics(cancellationToken); },\n getGlobalDiagnostics: function (cancellationToken) { return getProgram().getGlobalDiagnostics(cancellationToken); },\n getConfigFileParsingDiagnostics: function () { return configFileParsingDiagnostics; },\n getSyntacticDiagnostics: function (sourceFile, cancellationToken) { return getProgram().getSyntacticDiagnostics(sourceFile, cancellationToken); },\n getDeclarationDiagnostics: function (sourceFile, cancellationToken) { return getProgram().getDeclarationDiagnostics(sourceFile, cancellationToken); },\n getSemanticDiagnostics: function (sourceFile, cancellationToken) { return getProgram().getSemanticDiagnostics(sourceFile, cancellationToken); },\n emit: function (sourceFile, writeFile, cancellationToken, emitOnlyDts, customTransformers) { return getProgram().emit(sourceFile, writeFile, cancellationToken, emitOnlyDts, customTransformers); },\n emitBuildInfo: function (writeFile, cancellationToken) { return getProgram().emitBuildInfo(writeFile, cancellationToken); },\n getAllDependencies: ts.notImplemented,\n getCurrentDirectory: function () { return getProgram().getCurrentDirectory(); },\n close: ts.noop,\n };\n function getProgram() {\n return ts.Debug.checkDefined(getState().program);\n }\n }\n ts.createRedirectedBuilderProgram = createRedirectedBuilderProgram;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function createSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n return ts.createBuilderProgram(ts.BuilderProgramKind.SemanticDiagnosticsBuilderProgram, ts.getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences));\n }\n ts.createSemanticDiagnosticsBuilderProgram = createSemanticDiagnosticsBuilderProgram;\n function createEmitAndSemanticDiagnosticsBuilderProgram(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n return ts.createBuilderProgram(ts.BuilderProgramKind.EmitAndSemanticDiagnosticsBuilderProgram, ts.getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences));\n }\n ts.createEmitAndSemanticDiagnosticsBuilderProgram = createEmitAndSemanticDiagnosticsBuilderProgram;\n function createAbstractBuilder(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences) {\n var _a = ts.getBuilderCreationParameters(newProgramOrRootNames, hostOrOptions, oldProgramOrHost, configFileParsingDiagnosticsOrOldProgram, configFileParsingDiagnostics, projectReferences), newProgram = _a.newProgram, newConfigFileParsingDiagnostics = _a.configFileParsingDiagnostics;\n return ts.createRedirectedBuilderProgram(function () { return ({ program: newProgram, compilerOptions: newProgram.getCompilerOptions() }); }, newConfigFileParsingDiagnostics);\n }\n ts.createAbstractBuilder = createAbstractBuilder;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n function removeIgnoredPath(path) {\n // Consider whole staging folder as if node_modules changed.\n if (ts.endsWith(path, \"/node_modules/.staging\")) {\n return ts.removeSuffix(path, \"/.staging\");\n }\n return ts.some(ts.ignoredPaths, function (searchPath) { return ts.stringContains(path, searchPath); }) ?\n undefined :\n path;\n }\n ts.removeIgnoredPath = removeIgnoredPath;\n /**\n * Filter out paths like\n * \"/\", \"/user\", \"/user/username\", \"/user/username/folderAtRoot\",\n * \"c:/\", \"c:/users\", \"c:/users/username\", \"c:/users/username/folderAtRoot\", \"c:/folderAtRoot\"\n * @param dirPath\n */\n function canWatchDirectory(dirPath) {\n var rootLength = ts.getRootLength(dirPath);\n if (dirPath.length === rootLength) {\n // Ignore \"/\", \"c:/\"\n return false;\n }\n var nextDirectorySeparator = dirPath.indexOf(ts.directorySeparator, rootLength);\n if (nextDirectorySeparator === -1) {\n // ignore \"/user\", \"c:/users\" or \"c:/folderAtRoot\"\n return false;\n }\n var pathPartForUserCheck = dirPath.substring(rootLength, nextDirectorySeparator + 1);\n var isNonDirectorySeparatorRoot = rootLength > 1 || dirPath.charCodeAt(0) !== 47 /* slash */;\n if (isNonDirectorySeparatorRoot &&\n dirPath.search(/[a-zA-Z]:/) !== 0 && // Non dos style paths\n pathPartForUserCheck.search(/[a-zA-z]\\$\\//) === 0) { // Dos style nextPart\n nextDirectorySeparator = dirPath.indexOf(ts.directorySeparator, nextDirectorySeparator + 1);\n if (nextDirectorySeparator === -1) {\n // ignore \"//vda1cs4850/c$/folderAtRoot\"\n return false;\n }\n pathPartForUserCheck = dirPath.substring(rootLength + pathPartForUserCheck.length, nextDirectorySeparator + 1);\n }\n if (isNonDirectorySeparatorRoot &&\n pathPartForUserCheck.search(/users\\//i) !== 0) {\n // Paths like c:/folderAtRoot/subFolder are allowed\n return true;\n }\n for (var searchIndex = nextDirectorySeparator + 1, searchLevels = 2; searchLevels > 0; searchLevels--) {\n searchIndex = dirPath.indexOf(ts.directorySeparator, searchIndex) + 1;\n if (searchIndex === 0) {\n // Folder isnt at expected minimum levels\n return false;\n }\n }\n return true;\n }\n ts.canWatchDirectory = canWatchDirectory;\n function createResolutionCache(resolutionHost, rootDirForResolution, logChangesWhenResolvingModule) {\n var filesWithChangedSetOfUnresolvedImports;\n var filesWithInvalidatedResolutions;\n var filesWithInvalidatedNonRelativeUnresolvedImports;\n var nonRelativeExternalModuleResolutions = ts.createMultiMap();\n var resolutionsWithFailedLookups = [];\n var resolvedFileToResolution = ts.createMultiMap();\n var hasChangedAutomaticTypeDirectiveNames = false;\n var failedLookupChecks;\n var startsWithPathChecks;\n var isInDirectoryChecks;\n var getCurrentDirectory = ts.memoize(function () { return resolutionHost.getCurrentDirectory(); }); // TODO: GH#18217\n var cachedDirectoryStructureHost = resolutionHost.getCachedDirectoryStructureHost();\n // The resolvedModuleNames and resolvedTypeReferenceDirectives are the cache of resolutions per file.\n // The key in the map is source file's path.\n // The values are Map of resolutions with key being name lookedup.\n var resolvedModuleNames = new ts.Map();\n var perDirectoryResolvedModuleNames = ts.createCacheWithRedirects();\n var nonRelativeModuleNameCache = ts.createCacheWithRedirects();\n var moduleResolutionCache = ts.createModuleResolutionCache(getCurrentDirectory(), resolutionHost.getCanonicalFileName, \n /*options*/ undefined, perDirectoryResolvedModuleNames, nonRelativeModuleNameCache);\n var resolvedTypeReferenceDirectives = new ts.Map();\n var perDirectoryResolvedTypeReferenceDirectives = ts.createCacheWithRedirects();\n var typeReferenceDirectiveResolutionCache = ts.createTypeReferenceDirectiveResolutionCache(getCurrentDirectory(), resolutionHost.getCanonicalFileName, \n /*options*/ undefined, moduleResolutionCache.getPackageJsonInfoCache(), perDirectoryResolvedTypeReferenceDirectives);\n /**\n * These are the extensions that failed lookup files will have by default,\n * any other extension of failed lookup will be store that path in custom failed lookup path\n * This helps in not having to comb through all resolutions when files are added/removed\n * Note that .d.ts file also has .d.ts extension hence will be part of default extensions\n */\n var failedLookupDefaultExtensions = [\".ts\" /* Ts */, \".tsx\" /* Tsx */, \".js\" /* Js */, \".jsx\" /* Jsx */, \".json\" /* Json */];\n var customFailedLookupPaths = new ts.Map();\n var directoryWatchesOfFailedLookups = new ts.Map();\n var rootDir = rootDirForResolution && ts.removeTrailingDirectorySeparator(ts.getNormalizedAbsolutePath(rootDirForResolution, getCurrentDirectory()));\n var rootPath = (rootDir && resolutionHost.toPath(rootDir)); // TODO: GH#18217\n var rootSplitLength = rootPath !== undefined ? rootPath.split(ts.directorySeparator).length : 0;\n // TypeRoot watches for the types that get added as part of getAutomaticTypeDirectiveNames\n var typeRootsWatches = new ts.Map();\n return {\n getModuleResolutionCache: function () { return moduleResolutionCache; },\n startRecordingFilesWithChangedResolutions: startRecordingFilesWithChangedResolutions,\n finishRecordingFilesWithChangedResolutions: finishRecordingFilesWithChangedResolutions,\n // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update\n // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution)\n startCachingPerDirectoryResolution: clearPerDirectoryResolutions,\n finishCachingPerDirectoryResolution: finishCachingPerDirectoryResolution,\n resolveModuleNames: resolveModuleNames,\n getResolvedModuleWithFailedLookupLocationsFromCache: getResolvedModuleWithFailedLookupLocationsFromCache,\n resolveTypeReferenceDirectives: resolveTypeReferenceDirectives,\n removeResolutionsFromProjectReferenceRedirects: removeResolutionsFromProjectReferenceRedirects,\n removeResolutionsOfFile: removeResolutionsOfFile,\n hasChangedAutomaticTypeDirectiveNames: function () { return hasChangedAutomaticTypeDirectiveNames; },\n invalidateResolutionOfFile: invalidateResolutionOfFile,\n invalidateResolutionsOfFailedLookupLocations: invalidateResolutionsOfFailedLookupLocations,\n setFilesWithInvalidatedNonRelativeUnresolvedImports: setFilesWithInvalidatedNonRelativeUnresolvedImports,\n createHasInvalidatedResolution: createHasInvalidatedResolution,\n isFileWithInvalidatedNonRelativeUnresolvedImports: isFileWithInvalidatedNonRelativeUnresolvedImports,\n updateTypeRootsWatch: updateTypeRootsWatch,\n closeTypeRootsWatch: closeTypeRootsWatch,\n clear: clear\n };\n function getResolvedModule(resolution) {\n return resolution.resolvedModule;\n }\n function getResolvedTypeReferenceDirective(resolution) {\n return resolution.resolvedTypeReferenceDirective;\n }\n function isInDirectoryPath(dir, file) {\n if (dir === undefined || file.length <= dir.length) {\n return false;\n }\n return ts.startsWith(file, dir) && file[dir.length] === ts.directorySeparator;\n }\n function clear() {\n ts.clearMap(directoryWatchesOfFailedLookups, ts.closeFileWatcherOf);\n customFailedLookupPaths.clear();\n nonRelativeExternalModuleResolutions.clear();\n closeTypeRootsWatch();\n resolvedModuleNames.clear();\n resolvedTypeReferenceDirectives.clear();\n resolvedFileToResolution.clear();\n resolutionsWithFailedLookups.length = 0;\n failedLookupChecks = undefined;\n startsWithPathChecks = undefined;\n isInDirectoryChecks = undefined;\n // perDirectoryResolvedModuleNames and perDirectoryResolvedTypeReferenceDirectives could be non empty if there was exception during program update\n // (between startCachingPerDirectoryResolution and finishCachingPerDirectoryResolution)\n clearPerDirectoryResolutions();\n hasChangedAutomaticTypeDirectiveNames = false;\n }\n function startRecordingFilesWithChangedResolutions() {\n filesWithChangedSetOfUnresolvedImports = [];\n }\n function finishRecordingFilesWithChangedResolutions() {\n var collected = filesWithChangedSetOfUnresolvedImports;\n filesWithChangedSetOfUnresolvedImports = undefined;\n return collected;\n }\n function isFileWithInvalidatedNonRelativeUnresolvedImports(path) {\n if (!filesWithInvalidatedNonRelativeUnresolvedImports) {\n return false;\n }\n // Invalidated if file has unresolved imports\n var value = filesWithInvalidatedNonRelativeUnresolvedImports.get(path);\n return !!value && !!value.length;\n }\n function createHasInvalidatedResolution(forceAllFilesAsInvalidated) {\n // Ensure pending resolutions are applied\n invalidateResolutionsOfFailedLookupLocations();\n if (forceAllFilesAsInvalidated) {\n // Any file asked would have invalidated resolution\n filesWithInvalidatedResolutions = undefined;\n return ts.returnTrue;\n }\n var collected = filesWithInvalidatedResolutions;\n filesWithInvalidatedResolutions = undefined;\n return function (path) { return (!!collected && collected.has(path)) ||\n isFileWithInvalidatedNonRelativeUnresolvedImports(path); };\n }\n function clearPerDirectoryResolutions() {\n moduleResolutionCache.clear();\n typeReferenceDirectiveResolutionCache.clear();\n nonRelativeExternalModuleResolutions.forEach(watchFailedLookupLocationOfNonRelativeModuleResolutions);\n nonRelativeExternalModuleResolutions.clear();\n }\n function finishCachingPerDirectoryResolution() {\n filesWithInvalidatedNonRelativeUnresolvedImports = undefined;\n clearPerDirectoryResolutions();\n directoryWatchesOfFailedLookups.forEach(function (watcher, path) {\n if (watcher.refCount === 0) {\n directoryWatchesOfFailedLookups.delete(path);\n watcher.watcher.close();\n }\n });\n hasChangedAutomaticTypeDirectiveNames = false;\n }\n function resolveModuleName(moduleName, containingFile, compilerOptions, host, redirectedReference) {\n var _a;\n var primaryResult = ts.resolveModuleName(moduleName, containingFile, compilerOptions, host, moduleResolutionCache, redirectedReference);\n // return result immediately only if global cache support is not enabled or if it is .ts, .tsx or .d.ts\n if (!resolutionHost.getGlobalCache) {\n return primaryResult;\n }\n // otherwise try to load typings from @types\n var globalCache = resolutionHost.getGlobalCache();\n if (globalCache !== undefined && !ts.isExternalModuleNameRelative(moduleName) && !(primaryResult.resolvedModule && ts.extensionIsTS(primaryResult.resolvedModule.extension))) {\n // create different collection of failed lookup locations for second pass\n // if it will fail and we've already found something during the first pass - we don't want to pollute its results\n var _b = ts.loadModuleFromGlobalCache(ts.Debug.checkDefined(resolutionHost.globalCacheResolutionModuleName)(moduleName), resolutionHost.projectName, compilerOptions, host, globalCache, moduleResolutionCache), resolvedModule = _b.resolvedModule, failedLookupLocations = _b.failedLookupLocations;\n if (resolvedModule) {\n // Modify existing resolution so its saved in the directory cache as well\n primaryResult.resolvedModule = resolvedModule;\n (_a = primaryResult.failedLookupLocations).push.apply(_a, failedLookupLocations);\n return primaryResult;\n }\n }\n // Default return the result from the first pass\n return primaryResult;\n }\n function resolveTypeReferenceDirective(typeReferenceDirectiveName, containingFile, options, host, redirectedReference) {\n return ts.resolveTypeReferenceDirective(typeReferenceDirectiveName, containingFile, options, host, redirectedReference, typeReferenceDirectiveResolutionCache);\n }\n function resolveNamesWithLocalCache(_a) {\n var _b, _c, _d;\n var names = _a.names, containingFile = _a.containingFile, redirectedReference = _a.redirectedReference, cache = _a.cache, perDirectoryCacheWithRedirects = _a.perDirectoryCacheWithRedirects, loader = _a.loader, getResolutionWithResolvedFileName = _a.getResolutionWithResolvedFileName, shouldRetryResolution = _a.shouldRetryResolution, reusedNames = _a.reusedNames, logChanges = _a.logChanges;\n var path = resolutionHost.toPath(containingFile);\n var resolutionsInFile = cache.get(path) || cache.set(path, new ts.Map()).get(path);\n var dirPath = ts.getDirectoryPath(path);\n var perDirectoryCache = perDirectoryCacheWithRedirects.getOrCreateMapOfCacheRedirects(redirectedReference);\n var perDirectoryResolution = perDirectoryCache.get(dirPath);\n if (!perDirectoryResolution) {\n perDirectoryResolution = new ts.Map();\n perDirectoryCache.set(dirPath, perDirectoryResolution);\n }\n var resolvedModules = [];\n var compilerOptions = resolutionHost.getCompilationSettings();\n var hasInvalidatedNonRelativeUnresolvedImport = logChanges && isFileWithInvalidatedNonRelativeUnresolvedImports(path);\n // All the resolutions in this file are invalidated if this file wasn't resolved using same redirect\n var program = resolutionHost.getCurrentProgram();\n var oldRedirect = program && program.getResolvedProjectReferenceToRedirect(containingFile);\n var unmatchedRedirects = oldRedirect ?\n !redirectedReference || redirectedReference.sourceFile.path !== oldRedirect.sourceFile.path :\n !!redirectedReference;\n var seenNamesInFile = new ts.Map();\n for (var _i = 0, names_3 = names; _i < names_3.length; _i++) {\n var name = names_3[_i];\n var resolution = resolutionsInFile.get(name);\n // Resolution is valid if it is present and not invalidated\n if (!seenNamesInFile.has(name) &&\n unmatchedRedirects || !resolution || resolution.isInvalidated ||\n // If the name is unresolved import that was invalidated, recalculate\n (hasInvalidatedNonRelativeUnresolvedImport && !ts.isExternalModuleNameRelative(name) && shouldRetryResolution(resolution))) {\n var existingResolution = resolution;\n var resolutionInDirectory = perDirectoryResolution.get(name);\n if (resolutionInDirectory) {\n resolution = resolutionInDirectory;\n var host = ((_b = resolutionHost.getCompilerHost) === null || _b === void 0 ? void 0 : _b.call(resolutionHost)) || resolutionHost;\n if (ts.isTraceEnabled(compilerOptions, host)) {\n var resolved = getResolutionWithResolvedFileName(resolution);\n ts.trace(host, loader === resolveModuleName ?\n (resolved === null || resolved === void 0 ? void 0 : resolved.resolvedFileName) ?\n resolved.packagetId ?\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 :\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 :\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_found_in_cache_from_location_2_it_was_not_resolved :\n (resolved === null || resolved === void 0 ? void 0 : resolved.resolvedFileName) ?\n resolved.packagetId ?\n ts.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3_with_Package_ID_4 :\n ts.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_successfully_resolved_to_3 :\n ts.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_found_in_cache_from_location_2_it_was_not_resolved, name, containingFile, ts.getDirectoryPath(containingFile), resolved === null || resolved === void 0 ? void 0 : resolved.resolvedFileName, (resolved === null || resolved === void 0 ? void 0 : resolved.packagetId) && ts.packageIdToString(resolved.packagetId));\n }\n }\n else {\n resolution = loader(name, containingFile, compilerOptions, ((_c = resolutionHost.getCompilerHost) === null || _c === void 0 ? void 0 : _c.call(resolutionHost)) || resolutionHost, redirectedReference);\n perDirectoryResolution.set(name, resolution);\n }\n resolutionsInFile.set(name, resolution);\n watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, path, getResolutionWithResolvedFileName);\n if (existingResolution) {\n stopWatchFailedLookupLocationOfResolution(existingResolution, path, getResolutionWithResolvedFileName);\n }\n if (logChanges && filesWithChangedSetOfUnresolvedImports && !resolutionIsEqualTo(existingResolution, resolution)) {\n filesWithChangedSetOfUnresolvedImports.push(path);\n // reset log changes to avoid recording the same file multiple times\n logChanges = false;\n }\n }\n else {\n var host = ((_d = resolutionHost.getCompilerHost) === null || _d === void 0 ? void 0 : _d.call(resolutionHost)) || resolutionHost;\n if (ts.isTraceEnabled(compilerOptions, host) && !seenNamesInFile.has(name)) {\n var resolved = getResolutionWithResolvedFileName(resolution);\n ts.trace(host, loader === resolveModuleName ?\n (resolved === null || resolved === void 0 ? void 0 : resolved.resolvedFileName) ?\n resolved.packagetId ?\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 :\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_successfully_resolved_to_2 :\n ts.Diagnostics.Reusing_resolution_of_module_0_from_1_of_old_program_it_was_not_resolved :\n (resolved === null || resolved === void 0 ? void 0 : resolved.resolvedFileName) ?\n resolved.packagetId ?\n ts.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2_with_Package_ID_3 :\n ts.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_successfully_resolved_to_2 :\n ts.Diagnostics.Reusing_resolution_of_type_reference_directive_0_from_1_of_old_program_it_was_not_resolved, name, containingFile, resolved === null || resolved === void 0 ? void 0 : resolved.resolvedFileName, (resolved === null || resolved === void 0 ? void 0 : resolved.packagetId) && ts.packageIdToString(resolved.packagetId));\n }\n }\n ts.Debug.assert(resolution !== undefined && !resolution.isInvalidated);\n seenNamesInFile.set(name, true);\n resolvedModules.push(getResolutionWithResolvedFileName(resolution));\n }\n // Stop watching and remove the unused name\n resolutionsInFile.forEach(function (resolution, name) {\n if (!seenNamesInFile.has(name) && !ts.contains(reusedNames, name)) {\n stopWatchFailedLookupLocationOfResolution(resolution, path, getResolutionWithResolvedFileName);\n resolutionsInFile.delete(name);\n }\n });\n return resolvedModules;\n function resolutionIsEqualTo(oldResolution, newResolution) {\n if (oldResolution === newResolution) {\n return true;\n }\n if (!oldResolution || !newResolution) {\n return false;\n }\n var oldResult = getResolutionWithResolvedFileName(oldResolution);\n var newResult = getResolutionWithResolvedFileName(newResolution);\n if (oldResult === newResult) {\n return true;\n }\n if (!oldResult || !newResult) {\n return false;\n }\n return oldResult.resolvedFileName === newResult.resolvedFileName;\n }\n }\n function resolveTypeReferenceDirectives(typeDirectiveNames, containingFile, redirectedReference) {\n return resolveNamesWithLocalCache({\n names: typeDirectiveNames,\n containingFile: containingFile,\n redirectedReference: redirectedReference,\n cache: resolvedTypeReferenceDirectives,\n perDirectoryCacheWithRedirects: perDirectoryResolvedTypeReferenceDirectives,\n loader: resolveTypeReferenceDirective,\n getResolutionWithResolvedFileName: getResolvedTypeReferenceDirective,\n shouldRetryResolution: function (resolution) { return resolution.resolvedTypeReferenceDirective === undefined; },\n });\n }\n function resolveModuleNames(moduleNames, containingFile, reusedNames, redirectedReference) {\n return resolveNamesWithLocalCache({\n names: moduleNames,\n containingFile: containingFile,\n redirectedReference: redirectedReference,\n cache: resolvedModuleNames,\n perDirectoryCacheWithRedirects: perDirectoryResolvedModuleNames,\n loader: resolveModuleName,\n getResolutionWithResolvedFileName: getResolvedModule,\n shouldRetryResolution: function (resolution) { return !resolution.resolvedModule || !ts.resolutionExtensionIsTSOrJson(resolution.resolvedModule.extension); },\n reusedNames: reusedNames,\n logChanges: logChangesWhenResolvingModule,\n });\n }\n function getResolvedModuleWithFailedLookupLocationsFromCache(moduleName, containingFile) {\n var cache = resolvedModuleNames.get(resolutionHost.toPath(containingFile));\n return cache && cache.get(moduleName);\n }\n function isNodeModulesAtTypesDirectory(dirPath) {\n return ts.endsWith(dirPath, \"/node_modules/@types\");\n }\n function getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath) {\n if (isInDirectoryPath(rootPath, failedLookupLocationPath)) {\n // Ensure failed look up is normalized path\n failedLookupLocation = ts.isRootedDiskPath(failedLookupLocation) ? ts.normalizePath(failedLookupLocation) : ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory());\n var failedLookupPathSplit = failedLookupLocationPath.split(ts.directorySeparator);\n var failedLookupSplit = failedLookupLocation.split(ts.directorySeparator);\n ts.Debug.assert(failedLookupSplit.length === failedLookupPathSplit.length, \"FailedLookup: \" + failedLookupLocation + \" failedLookupLocationPath: \" + failedLookupLocationPath);\n if (failedLookupPathSplit.length > rootSplitLength + 1) {\n // Instead of watching root, watch directory in root to avoid watching excluded directories not needed for module resolution\n return {\n dir: failedLookupSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator),\n dirPath: failedLookupPathSplit.slice(0, rootSplitLength + 1).join(ts.directorySeparator)\n };\n }\n else {\n // Always watch root directory non recursively\n return {\n dir: rootDir,\n dirPath: rootPath,\n nonRecursive: false\n };\n }\n }\n return getDirectoryToWatchFromFailedLookupLocationDirectory(ts.getDirectoryPath(ts.getNormalizedAbsolutePath(failedLookupLocation, getCurrentDirectory())), ts.getDirectoryPath(failedLookupLocationPath));\n }\n function getDirectoryToWatchFromFailedLookupLocationDirectory(dir, dirPath) {\n // If directory path contains node module, get the most parent node_modules directory for watching\n while (ts.pathContainsNodeModules(dirPath)) {\n dir = ts.getDirectoryPath(dir);\n dirPath = ts.getDirectoryPath(dirPath);\n }\n // If the directory is node_modules use it to watch, always watch it recursively\n if (ts.isNodeModulesDirectory(dirPath)) {\n return canWatchDirectory(ts.getDirectoryPath(dirPath)) ? { dir: dir, dirPath: dirPath } : undefined;\n }\n var nonRecursive = true;\n // Use some ancestor of the root directory\n var subDirectoryPath, subDirectory;\n if (rootPath !== undefined) {\n while (!isInDirectoryPath(dirPath, rootPath)) {\n var parentPath = ts.getDirectoryPath(dirPath);\n if (parentPath === dirPath) {\n break;\n }\n nonRecursive = false;\n subDirectoryPath = dirPath;\n subDirectory = dir;\n dirPath = parentPath;\n dir = ts.getDirectoryPath(dir);\n }\n }\n return canWatchDirectory(dirPath) ? { dir: subDirectory || dir, dirPath: subDirectoryPath || dirPath, nonRecursive: nonRecursive } : undefined;\n }\n function isPathWithDefaultFailedLookupExtension(path) {\n return ts.fileExtensionIsOneOf(path, failedLookupDefaultExtensions);\n }\n function watchFailedLookupLocationsOfExternalModuleResolutions(name, resolution, filePath, getResolutionWithResolvedFileName) {\n if (resolution.refCount) {\n resolution.refCount++;\n ts.Debug.assertDefined(resolution.files);\n }\n else {\n resolution.refCount = 1;\n ts.Debug.assert(ts.length(resolution.files) === 0); // This resolution shouldnt be referenced by any file yet\n if (ts.isExternalModuleNameRelative(name)) {\n watchFailedLookupLocationOfResolution(resolution);\n }\n else {\n nonRelativeExternalModuleResolutions.add(name, resolution);\n }\n var resolved = getResolutionWithResolvedFileName(resolution);\n if (resolved && resolved.resolvedFileName) {\n resolvedFileToResolution.add(resolutionHost.toPath(resolved.resolvedFileName), resolution);\n }\n }\n (resolution.files || (resolution.files = [])).push(filePath);\n }\n function watchFailedLookupLocationOfResolution(resolution) {\n ts.Debug.assert(!!resolution.refCount);\n var failedLookupLocations = resolution.failedLookupLocations;\n if (!failedLookupLocations.length)\n return;\n resolutionsWithFailedLookups.push(resolution);\n var setAtRoot = false;\n for (var _i = 0, failedLookupLocations_1 = failedLookupLocations; _i < failedLookupLocations_1.length; _i++) {\n var failedLookupLocation = failedLookupLocations_1[_i];\n var failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation);\n var toWatch = getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath);\n if (toWatch) {\n var dir = toWatch.dir, dirPath = toWatch.dirPath, nonRecursive = toWatch.nonRecursive;\n // If the failed lookup location path is not one of the supported extensions,\n // store it in the custom path\n if (!isPathWithDefaultFailedLookupExtension(failedLookupLocationPath)) {\n var refCount = customFailedLookupPaths.get(failedLookupLocationPath) || 0;\n customFailedLookupPaths.set(failedLookupLocationPath, refCount + 1);\n }\n if (dirPath === rootPath) {\n ts.Debug.assert(!nonRecursive);\n setAtRoot = true;\n }\n else {\n setDirectoryWatcher(dir, dirPath, nonRecursive);\n }\n }\n }\n if (setAtRoot) {\n // This is always non recursive\n setDirectoryWatcher(rootDir, rootPath, /*nonRecursive*/ true); // TODO: GH#18217\n }\n }\n function watchFailedLookupLocationOfNonRelativeModuleResolutions(resolutions, name) {\n var program = resolutionHost.getCurrentProgram();\n if (!program || !program.getTypeChecker().tryFindAmbientModuleWithoutAugmentations(name)) {\n resolutions.forEach(watchFailedLookupLocationOfResolution);\n }\n }\n function setDirectoryWatcher(dir, dirPath, nonRecursive) {\n var dirWatcher = directoryWatchesOfFailedLookups.get(dirPath);\n if (dirWatcher) {\n ts.Debug.assert(!!nonRecursive === !!dirWatcher.nonRecursive);\n dirWatcher.refCount++;\n }\n else {\n directoryWatchesOfFailedLookups.set(dirPath, { watcher: createDirectoryWatcher(dir, dirPath, nonRecursive), refCount: 1, nonRecursive: nonRecursive });\n }\n }\n function stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName) {\n ts.unorderedRemoveItem(ts.Debug.assertDefined(resolution.files), filePath);\n resolution.refCount--;\n if (resolution.refCount) {\n return;\n }\n var resolved = getResolutionWithResolvedFileName(resolution);\n if (resolved && resolved.resolvedFileName) {\n resolvedFileToResolution.remove(resolutionHost.toPath(resolved.resolvedFileName), resolution);\n }\n if (!ts.unorderedRemoveItem(resolutionsWithFailedLookups, resolution)) {\n // If not watching failed lookups, it wont be there in resolutionsWithFailedLookups\n return;\n }\n var failedLookupLocations = resolution.failedLookupLocations;\n var removeAtRoot = false;\n for (var _i = 0, failedLookupLocations_2 = failedLookupLocations; _i < failedLookupLocations_2.length; _i++) {\n var failedLookupLocation = failedLookupLocations_2[_i];\n var failedLookupLocationPath = resolutionHost.toPath(failedLookupLocation);\n var toWatch = getDirectoryToWatchFailedLookupLocation(failedLookupLocation, failedLookupLocationPath);\n if (toWatch) {\n var dirPath = toWatch.dirPath;\n var refCount = customFailedLookupPaths.get(failedLookupLocationPath);\n if (refCount) {\n if (refCount === 1) {\n customFailedLookupPaths.delete(failedLookupLocationPath);\n }\n else {\n ts.Debug.assert(refCount > 1);\n customFailedLookupPaths.set(failedLookupLocationPath, refCount - 1);\n }\n }\n if (dirPath === rootPath) {\n removeAtRoot = true;\n }\n else {\n removeDirectoryWatcher(dirPath);\n }\n }\n }\n if (removeAtRoot) {\n removeDirectoryWatcher(rootPath);\n }\n }\n function removeDirectoryWatcher(dirPath) {\n var dirWatcher = directoryWatchesOfFailedLookups.get(dirPath);\n // Do not close the watcher yet since it might be needed by other failed lookup locations.\n dirWatcher.refCount--;\n }\n function createDirectoryWatcher(directory, dirPath, nonRecursive) {\n return resolutionHost.watchDirectoryOfFailedLookupLocation(directory, function (fileOrDirectory) {\n var fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory);\n if (cachedDirectoryStructureHost) {\n // Since the file existence changed, update the sourceFiles cache\n cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n }\n scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath);\n }, nonRecursive ? 0 /* None */ : 1 /* Recursive */);\n }\n function removeResolutionsOfFileFromCache(cache, filePath, getResolutionWithResolvedFileName) {\n // Deleted file, stop watching failed lookups for all the resolutions in the file\n var resolutions = cache.get(filePath);\n if (resolutions) {\n resolutions.forEach(function (resolution) { return stopWatchFailedLookupLocationOfResolution(resolution, filePath, getResolutionWithResolvedFileName); });\n cache.delete(filePath);\n }\n }\n function removeResolutionsFromProjectReferenceRedirects(filePath) {\n if (!ts.fileExtensionIs(filePath, \".json\" /* Json */)) {\n return;\n }\n var program = resolutionHost.getCurrentProgram();\n if (!program) {\n return;\n }\n // If this file is input file for the referenced project, get it\n var resolvedProjectReference = program.getResolvedProjectReferenceByPath(filePath);\n if (!resolvedProjectReference) {\n return;\n }\n // filePath is for the projectReference and the containing file is from this project reference, invalidate the resolution\n resolvedProjectReference.commandLine.fileNames.forEach(function (f) { return removeResolutionsOfFile(resolutionHost.toPath(f)); });\n }\n function removeResolutionsOfFile(filePath) {\n removeResolutionsOfFileFromCache(resolvedModuleNames, filePath, getResolvedModule);\n removeResolutionsOfFileFromCache(resolvedTypeReferenceDirectives, filePath, getResolvedTypeReferenceDirective);\n }\n function invalidateResolutions(resolutions, canInvalidate) {\n if (!resolutions)\n return false;\n var invalidated = false;\n for (var _i = 0, resolutions_1 = resolutions; _i < resolutions_1.length; _i++) {\n var resolution = resolutions_1[_i];\n if (resolution.isInvalidated || !canInvalidate(resolution))\n continue;\n resolution.isInvalidated = invalidated = true;\n for (var _a = 0, _b = ts.Debug.assertDefined(resolution.files); _a < _b.length; _a++) {\n var containingFilePath = _b[_a];\n (filesWithInvalidatedResolutions || (filesWithInvalidatedResolutions = new ts.Set())).add(containingFilePath);\n // When its a file with inferred types resolution, invalidate type reference directive resolution\n hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames || ts.endsWith(containingFilePath, ts.inferredTypesContainingFile);\n }\n }\n return invalidated;\n }\n function invalidateResolutionOfFile(filePath) {\n removeResolutionsOfFile(filePath);\n // Resolution is invalidated if the resulting file name is same as the deleted file path\n var prevHasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;\n if (invalidateResolutions(resolvedFileToResolution.get(filePath), ts.returnTrue) &&\n hasChangedAutomaticTypeDirectiveNames &&\n !prevHasChangedAutomaticTypeDirectiveNames) {\n resolutionHost.onChangedAutomaticTypeDirectiveNames();\n }\n }\n function setFilesWithInvalidatedNonRelativeUnresolvedImports(filesMap) {\n ts.Debug.assert(filesWithInvalidatedNonRelativeUnresolvedImports === filesMap || filesWithInvalidatedNonRelativeUnresolvedImports === undefined);\n filesWithInvalidatedNonRelativeUnresolvedImports = filesMap;\n }\n function scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, isCreatingWatchedDirectory) {\n if (isCreatingWatchedDirectory) {\n // Watching directory is created\n // Invalidate any resolution has failed lookup in this directory\n (isInDirectoryChecks || (isInDirectoryChecks = [])).push(fileOrDirectoryPath);\n }\n else {\n // If something to do with folder/file starting with \".\" in node_modules folder, skip it\n var updatedPath = removeIgnoredPath(fileOrDirectoryPath);\n if (!updatedPath)\n return false;\n fileOrDirectoryPath = updatedPath;\n // prevent saving an open file from over-eagerly triggering invalidation\n if (resolutionHost.fileIsOpen(fileOrDirectoryPath)) {\n return false;\n }\n // Some file or directory in the watching directory is created\n // Return early if it does not have any of the watching extension or not the custom failed lookup path\n var dirOfFileOrDirectory = ts.getDirectoryPath(fileOrDirectoryPath);\n if (isNodeModulesAtTypesDirectory(fileOrDirectoryPath) || ts.isNodeModulesDirectory(fileOrDirectoryPath) ||\n isNodeModulesAtTypesDirectory(dirOfFileOrDirectory) || ts.isNodeModulesDirectory(dirOfFileOrDirectory)) {\n // Invalidate any resolution from this directory\n (failedLookupChecks || (failedLookupChecks = [])).push(fileOrDirectoryPath);\n (startsWithPathChecks || (startsWithPathChecks = new ts.Set())).add(fileOrDirectoryPath);\n }\n else {\n if (!isPathWithDefaultFailedLookupExtension(fileOrDirectoryPath) && !customFailedLookupPaths.has(fileOrDirectoryPath)) {\n return false;\n }\n // Ignore emits from the program\n if (ts.isEmittedFileOfProgram(resolutionHost.getCurrentProgram(), fileOrDirectoryPath)) {\n return false;\n }\n // Resolution need to be invalidated if failed lookup location is same as the file or directory getting created\n (failedLookupChecks || (failedLookupChecks = [])).push(fileOrDirectoryPath);\n // If the invalidated file is from a node_modules package, invalidate everything else\n // in the package since we might not get notifications for other files in the package.\n // This hardens our logic against unreliable file watchers.\n var packagePath = ts.parseNodeModuleFromPath(fileOrDirectoryPath);\n if (packagePath)\n (startsWithPathChecks || (startsWithPathChecks = new ts.Set())).add(packagePath);\n }\n }\n resolutionHost.scheduleInvalidateResolutionsOfFailedLookupLocations();\n }\n function invalidateResolutionsOfFailedLookupLocations() {\n if (!failedLookupChecks && !startsWithPathChecks && !isInDirectoryChecks) {\n return false;\n }\n var invalidated = invalidateResolutions(resolutionsWithFailedLookups, canInvalidateFailedLookupResolution);\n failedLookupChecks = undefined;\n startsWithPathChecks = undefined;\n isInDirectoryChecks = undefined;\n return invalidated;\n }\n function canInvalidateFailedLookupResolution(resolution) {\n return resolution.failedLookupLocations.some(function (location) {\n var locationPath = resolutionHost.toPath(location);\n return ts.contains(failedLookupChecks, locationPath) ||\n ts.firstDefinedIterator((startsWithPathChecks === null || startsWithPathChecks === void 0 ? void 0 : startsWithPathChecks.keys()) || ts.emptyIterator, function (fileOrDirectoryPath) { return ts.startsWith(locationPath, fileOrDirectoryPath) ? true : undefined; }) ||\n (isInDirectoryChecks === null || isInDirectoryChecks === void 0 ? void 0 : isInDirectoryChecks.some(function (fileOrDirectoryPath) { return isInDirectoryPath(fileOrDirectoryPath, locationPath); }));\n });\n }\n function closeTypeRootsWatch() {\n ts.clearMap(typeRootsWatches, ts.closeFileWatcher);\n }\n function getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath) {\n if (isInDirectoryPath(rootPath, typeRootPath)) {\n return rootPath;\n }\n var toWatch = getDirectoryToWatchFromFailedLookupLocationDirectory(typeRoot, typeRootPath);\n return toWatch && directoryWatchesOfFailedLookups.has(toWatch.dirPath) ? toWatch.dirPath : undefined;\n }\n function createTypeRootsWatch(typeRootPath, typeRoot) {\n // Create new watch and recursive info\n return resolutionHost.watchTypeRootsDirectory(typeRoot, function (fileOrDirectory) {\n var fileOrDirectoryPath = resolutionHost.toPath(fileOrDirectory);\n if (cachedDirectoryStructureHost) {\n // Since the file existence changed, update the sourceFiles cache\n cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n }\n // For now just recompile\n // We could potentially store more data here about whether it was/would be really be used or not\n // and with that determine to trigger compilation but for now this is enough\n hasChangedAutomaticTypeDirectiveNames = true;\n resolutionHost.onChangedAutomaticTypeDirectiveNames();\n // Since directory watchers invoked are flaky, the failed lookup location events might not be triggered\n // So handle to failed lookup locations here as well to ensure we are invalidating resolutions\n var dirPath = getDirectoryToWatchFailedLookupLocationFromTypeRoot(typeRoot, typeRootPath);\n if (dirPath) {\n scheduleInvalidateResolutionOfFailedLookupLocation(fileOrDirectoryPath, dirPath === fileOrDirectoryPath);\n }\n }, 1 /* Recursive */);\n }\n /**\n * Watches the types that would get added as part of getAutomaticTypeDirectiveNames\n * To be called when compiler options change\n */\n function updateTypeRootsWatch() {\n var options = resolutionHost.getCompilationSettings();\n if (options.types) {\n // No need to do any watch since resolution cache is going to handle the failed lookups\n // for the types added by this\n closeTypeRootsWatch();\n return;\n }\n // we need to assume the directories exist to ensure that we can get all the type root directories that get included\n // But filter directories that are at root level to say directory doesnt exist, so that we arent watching them\n var typeRoots = ts.getEffectiveTypeRoots(options, { directoryExists: directoryExistsForTypeRootWatch, getCurrentDirectory: getCurrentDirectory });\n if (typeRoots) {\n ts.mutateMap(typeRootsWatches, ts.arrayToMap(typeRoots, function (tr) { return resolutionHost.toPath(tr); }), {\n createNewValue: createTypeRootsWatch,\n onDeleteValue: ts.closeFileWatcher\n });\n }\n else {\n closeTypeRootsWatch();\n }\n }\n /**\n * Use this function to return if directory exists to get type roots to watch\n * If we return directory exists then only the paths will be added to type roots\n * Hence return true for all directories except root directories which are filtered from watching\n */\n function directoryExistsForTypeRootWatch(nodeTypesDirectory) {\n var dir = ts.getDirectoryPath(ts.getDirectoryPath(nodeTypesDirectory));\n var dirPath = resolutionHost.toPath(dir);\n return dirPath === rootPath || canWatchDirectory(dirPath);\n }\n }\n ts.createResolutionCache = createResolutionCache;\n})(ts || (ts = {}));\n// Used by importFixes, getEditsForFileRename, and declaration emit to synthesize import module specifiers.\n/* @internal */\nvar ts;\n(function (ts) {\n var moduleSpecifiers;\n (function (moduleSpecifiers_1) {\n var RelativePreference;\n (function (RelativePreference) {\n RelativePreference[RelativePreference[\"Relative\"] = 0] = \"Relative\";\n RelativePreference[RelativePreference[\"NonRelative\"] = 1] = \"NonRelative\";\n RelativePreference[RelativePreference[\"Shortest\"] = 2] = \"Shortest\";\n RelativePreference[RelativePreference[\"ExternalNonRelative\"] = 3] = \"ExternalNonRelative\";\n })(RelativePreference || (RelativePreference = {}));\n // See UserPreferences#importPathEnding\n var Ending;\n (function (Ending) {\n Ending[Ending[\"Minimal\"] = 0] = \"Minimal\";\n Ending[Ending[\"Index\"] = 1] = \"Index\";\n Ending[Ending[\"JsExtension\"] = 2] = \"JsExtension\";\n })(Ending || (Ending = {}));\n function getPreferences(_a, compilerOptions, importingSourceFile) {\n var importModuleSpecifierPreference = _a.importModuleSpecifierPreference, importModuleSpecifierEnding = _a.importModuleSpecifierEnding;\n return {\n relativePreference: importModuleSpecifierPreference === \"relative\" ? 0 /* Relative */ :\n importModuleSpecifierPreference === \"non-relative\" ? 1 /* NonRelative */ :\n importModuleSpecifierPreference === \"project-relative\" ? 3 /* ExternalNonRelative */ :\n 2 /* Shortest */,\n ending: getEnding(),\n };\n function getEnding() {\n switch (importModuleSpecifierEnding) {\n case \"minimal\": return 0 /* Minimal */;\n case \"index\": return 1 /* Index */;\n case \"js\": return 2 /* JsExtension */;\n default: return usesJsExtensionOnImports(importingSourceFile) ? 2 /* JsExtension */\n : ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeJs ? 1 /* Index */ : 0 /* Minimal */;\n }\n }\n }\n function getPreferencesForUpdate(compilerOptions, oldImportSpecifier) {\n return {\n relativePreference: ts.isExternalModuleNameRelative(oldImportSpecifier) ? 0 /* Relative */ : 1 /* NonRelative */,\n ending: ts.hasJSFileExtension(oldImportSpecifier) ?\n 2 /* JsExtension */ :\n ts.getEmitModuleResolutionKind(compilerOptions) !== ts.ModuleResolutionKind.NodeJs || ts.endsWith(oldImportSpecifier, \"index\") ? 1 /* Index */ : 0 /* Minimal */,\n };\n }\n function updateModuleSpecifier(compilerOptions, importingSourceFileName, toFileName, host, oldImportSpecifier) {\n var res = getModuleSpecifierWorker(compilerOptions, importingSourceFileName, toFileName, host, getPreferencesForUpdate(compilerOptions, oldImportSpecifier), {});\n if (res === oldImportSpecifier)\n return undefined;\n return res;\n }\n moduleSpecifiers_1.updateModuleSpecifier = updateModuleSpecifier;\n // Note: importingSourceFile is just for usesJsExtensionOnImports\n function getModuleSpecifier(compilerOptions, importingSourceFile, importingSourceFileName, toFileName, host) {\n return getModuleSpecifierWorker(compilerOptions, importingSourceFileName, toFileName, host, getPreferences({}, compilerOptions, importingSourceFile), {});\n }\n moduleSpecifiers_1.getModuleSpecifier = getModuleSpecifier;\n function getNodeModulesPackageName(compilerOptions, importingSourceFileName, nodeModulesFileName, host, preferences) {\n var info = getInfo(importingSourceFileName, host);\n var modulePaths = getAllModulePaths(importingSourceFileName, nodeModulesFileName, host, preferences);\n return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, host, compilerOptions, /*packageNameOnly*/ true); });\n }\n moduleSpecifiers_1.getNodeModulesPackageName = getNodeModulesPackageName;\n function getModuleSpecifierWorker(compilerOptions, importingSourceFileName, toFileName, host, preferences, userPreferences) {\n var info = getInfo(importingSourceFileName, host);\n var modulePaths = getAllModulePaths(importingSourceFileName, toFileName, host, userPreferences);\n return ts.firstDefined(modulePaths, function (modulePath) { return tryGetModuleNameAsNodeModule(modulePath, info, host, compilerOptions); }) ||\n getLocalModuleSpecifier(toFileName, info, compilerOptions, host, preferences);\n }\n function tryGetModuleSpecifiersFromCache(moduleSymbol, importingSourceFile, host, userPreferences) {\n return tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences)[0];\n }\n moduleSpecifiers_1.tryGetModuleSpecifiersFromCache = tryGetModuleSpecifiersFromCache;\n function tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences) {\n var _a;\n var moduleSourceFile = ts.getSourceFileOfModule(moduleSymbol);\n if (!moduleSourceFile) {\n return ts.emptyArray;\n }\n var cache = (_a = host.getModuleSpecifierCache) === null || _a === void 0 ? void 0 : _a.call(host);\n var cached = cache === null || cache === void 0 ? void 0 : cache.get(importingSourceFile.path, moduleSourceFile.path, userPreferences);\n return [cached === null || cached === void 0 ? void 0 : cached.moduleSpecifiers, moduleSourceFile, cached === null || cached === void 0 ? void 0 : cached.modulePaths, cache];\n }\n /** Returns an import for each symlink and for the realpath. */\n function getModuleSpecifiers(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences) {\n return getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences).moduleSpecifiers;\n }\n moduleSpecifiers_1.getModuleSpecifiers = getModuleSpecifiers;\n function getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, importingSourceFile, host, userPreferences) {\n var computedWithoutCache = false;\n var ambient = tryGetModuleNameFromAmbientModule(moduleSymbol, checker);\n if (ambient)\n return { moduleSpecifiers: [ambient], computedWithoutCache: computedWithoutCache };\n // eslint-disable-next-line prefer-const\n var _a = tryGetModuleSpecifiersFromCacheWorker(moduleSymbol, importingSourceFile, host, userPreferences), specifiers = _a[0], moduleSourceFile = _a[1], modulePaths = _a[2], cache = _a[3];\n if (specifiers)\n return { moduleSpecifiers: specifiers, computedWithoutCache: computedWithoutCache };\n if (!moduleSourceFile)\n return { moduleSpecifiers: ts.emptyArray, computedWithoutCache: computedWithoutCache };\n computedWithoutCache = true;\n modulePaths || (modulePaths = getAllModulePathsWorker(importingSourceFile.path, moduleSourceFile.originalFileName, host));\n var result = computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences);\n cache === null || cache === void 0 ? void 0 : cache.set(importingSourceFile.path, moduleSourceFile.path, userPreferences, modulePaths, result);\n return { moduleSpecifiers: result, computedWithoutCache: computedWithoutCache };\n }\n moduleSpecifiers_1.getModuleSpecifiersWithCacheInfo = getModuleSpecifiersWithCacheInfo;\n function computeModuleSpecifiers(modulePaths, compilerOptions, importingSourceFile, host, userPreferences) {\n var info = getInfo(importingSourceFile.path, host);\n var preferences = getPreferences(userPreferences, compilerOptions, importingSourceFile);\n var existingSpecifier = ts.forEach(modulePaths, function (modulePath) { return ts.forEach(host.getFileIncludeReasons().get(ts.toPath(modulePath.path, host.getCurrentDirectory(), info.getCanonicalFileName)), function (reason) {\n if (reason.kind !== ts.FileIncludeKind.Import || reason.file !== importingSourceFile.path)\n return undefined;\n var specifier = ts.getModuleNameStringLiteralAt(importingSourceFile, reason.index).text;\n // If the preference is for non relative and the module specifier is relative, ignore it\n return preferences.relativePreference !== 1 /* NonRelative */ || !ts.pathIsRelative(specifier) ?\n specifier :\n undefined;\n }); });\n if (existingSpecifier) {\n var moduleSpecifiers_2 = [existingSpecifier];\n return moduleSpecifiers_2;\n }\n var importedFileIsInNodeModules = ts.some(modulePaths, function (p) { return p.isInNodeModules; });\n // Module specifier priority:\n // 1. \"Bare package specifiers\" (e.g. \"@foo/bar\") resulting from a path through node_modules to a package.json's \"types\" entry\n // 2. Specifiers generated using \"paths\" from tsconfig\n // 3. Non-relative specfiers resulting from a path through node_modules (e.g. \"@foo/bar/path/to/file\")\n // 4. Relative paths\n var nodeModulesSpecifiers;\n var pathsSpecifiers;\n var relativeSpecifiers;\n for (var _i = 0, modulePaths_1 = modulePaths; _i < modulePaths_1.length; _i++) {\n var modulePath = modulePaths_1[_i];\n var specifier = tryGetModuleNameAsNodeModule(modulePath, info, host, compilerOptions);\n nodeModulesSpecifiers = ts.append(nodeModulesSpecifiers, specifier);\n if (specifier && modulePath.isRedirect) {\n // If we got a specifier for a redirect, it was a bare package specifier (e.g. \"@foo/bar\",\n // not \"@foo/bar/path/to/file\"). No other specifier will be this good, so stop looking.\n return nodeModulesSpecifiers;\n }\n if (!specifier && !modulePath.isRedirect) {\n var local = getLocalModuleSpecifier(modulePath.path, info, compilerOptions, host, preferences);\n if (ts.pathIsBareSpecifier(local)) {\n pathsSpecifiers = ts.append(pathsSpecifiers, local);\n }\n else if (!importedFileIsInNodeModules || modulePath.isInNodeModules) {\n // Why this extra conditional, not just an `else`? If some path to the file contained\n // 'node_modules', but we can't create a non-relative specifier (e.g. \"@foo/bar/path/to/file\"),\n // that means we had to go through a *sibling's* node_modules, not one we can access directly.\n // If some path to the file was in node_modules but another was not, this likely indicates that\n // we have a monorepo structure with symlinks. In this case, the non-node_modules path is\n // probably the realpath, e.g. \"../bar/path/to/file\", but a relative path to another package\n // in a monorepo is probably not portable. So, the module specifier we actually go with will be\n // the relative path through node_modules, so that the declaration emitter can produce a\n // portability error. (See declarationEmitReexportedSymlinkReference3)\n relativeSpecifiers = ts.append(relativeSpecifiers, local);\n }\n }\n }\n return (pathsSpecifiers === null || pathsSpecifiers === void 0 ? void 0 : pathsSpecifiers.length) ? pathsSpecifiers :\n (nodeModulesSpecifiers === null || nodeModulesSpecifiers === void 0 ? void 0 : nodeModulesSpecifiers.length) ? nodeModulesSpecifiers :\n ts.Debug.checkDefined(relativeSpecifiers);\n }\n // importingSourceFileName is separate because getEditsForFileRename may need to specify an updated path\n function getInfo(importingSourceFileName, host) {\n var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames ? host.useCaseSensitiveFileNames() : true);\n var sourceDirectory = ts.getDirectoryPath(importingSourceFileName);\n return { getCanonicalFileName: getCanonicalFileName, importingSourceFileName: importingSourceFileName, sourceDirectory: sourceDirectory };\n }\n function getLocalModuleSpecifier(moduleFileName, info, compilerOptions, host, _a) {\n var ending = _a.ending, relativePreference = _a.relativePreference;\n var baseUrl = compilerOptions.baseUrl, paths = compilerOptions.paths, rootDirs = compilerOptions.rootDirs;\n var sourceDirectory = info.sourceDirectory, getCanonicalFileName = info.getCanonicalFileName;\n var relativePath = rootDirs && tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) ||\n removeExtensionAndIndexPostFix(ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(sourceDirectory, moduleFileName, getCanonicalFileName)), ending, compilerOptions);\n if (!baseUrl && !paths || relativePreference === 0 /* Relative */) {\n return relativePath;\n }\n var baseDirectory = ts.getNormalizedAbsolutePath(ts.getPathsBasePath(compilerOptions, host) || baseUrl, host.getCurrentDirectory());\n var relativeToBaseUrl = getRelativePathIfInDirectory(moduleFileName, baseDirectory, getCanonicalFileName);\n if (!relativeToBaseUrl) {\n return relativePath;\n }\n var importRelativeToBaseUrl = removeExtensionAndIndexPostFix(relativeToBaseUrl, ending, compilerOptions);\n var fromPaths = paths && tryGetModuleNameFromPaths(ts.removeFileExtension(relativeToBaseUrl), importRelativeToBaseUrl, paths);\n var nonRelative = fromPaths === undefined && baseUrl !== undefined ? importRelativeToBaseUrl : fromPaths;\n if (!nonRelative) {\n return relativePath;\n }\n if (relativePreference === 1 /* NonRelative */) {\n return nonRelative;\n }\n if (relativePreference === 3 /* ExternalNonRelative */) {\n var projectDirectory = compilerOptions.configFilePath ?\n ts.toPath(ts.getDirectoryPath(compilerOptions.configFilePath), host.getCurrentDirectory(), info.getCanonicalFileName) :\n info.getCanonicalFileName(host.getCurrentDirectory());\n var modulePath = ts.toPath(moduleFileName, projectDirectory, getCanonicalFileName);\n var sourceIsInternal = ts.startsWith(sourceDirectory, projectDirectory);\n var targetIsInternal = ts.startsWith(modulePath, projectDirectory);\n if (sourceIsInternal && !targetIsInternal || !sourceIsInternal && targetIsInternal) {\n // 1. The import path crosses the boundary of the tsconfig.json-containing directory.\n //\n // src/\n // tsconfig.json\n // index.ts -------\n // lib/ | (path crosses tsconfig.json)\n // imported.ts <---\n //\n return nonRelative;\n }\n var nearestTargetPackageJson = getNearestAncestorDirectoryWithPackageJson(host, ts.getDirectoryPath(modulePath));\n var nearestSourcePackageJson = getNearestAncestorDirectoryWithPackageJson(host, sourceDirectory);\n if (nearestSourcePackageJson !== nearestTargetPackageJson) {\n // 2. The importing and imported files are part of different packages.\n //\n // packages/a/\n // package.json\n // index.ts --------\n // packages/b/ | (path crosses package.json)\n // package.json |\n // component.ts <---\n //\n return nonRelative;\n }\n return relativePath;\n }\n if (relativePreference !== 2 /* Shortest */)\n ts.Debug.assertNever(relativePreference);\n // Prefer a relative import over a baseUrl import if it has fewer components.\n return isPathRelativeToParent(nonRelative) || countPathComponents(relativePath) < countPathComponents(nonRelative) ? relativePath : nonRelative;\n }\n function countPathComponents(path) {\n var count = 0;\n for (var i = ts.startsWith(path, \"./\") ? 2 : 0; i < path.length; i++) {\n if (path.charCodeAt(i) === 47 /* slash */)\n count++;\n }\n return count;\n }\n moduleSpecifiers_1.countPathComponents = countPathComponents;\n function usesJsExtensionOnImports(_a) {\n var imports = _a.imports;\n return ts.firstDefined(imports, function (_a) {\n var text = _a.text;\n return ts.pathIsRelative(text) ? ts.hasJSFileExtension(text) : undefined;\n }) || false;\n }\n function comparePathsByRedirectAndNumberOfDirectorySeparators(a, b) {\n return ts.compareBooleans(b.isRedirect, a.isRedirect) || ts.compareNumberOfDirectorySeparators(a.path, b.path);\n }\n function getNearestAncestorDirectoryWithPackageJson(host, fileName) {\n if (host.getNearestAncestorDirectoryWithPackageJson) {\n return host.getNearestAncestorDirectoryWithPackageJson(fileName);\n }\n return !!ts.forEachAncestorDirectory(fileName, function (directory) {\n return host.fileExists(ts.combinePaths(directory, \"package.json\")) ? true : undefined;\n });\n }\n function forEachFileNameOfModule(importingFileName, importedFileName, host, preferSymlinks, cb) {\n var _a;\n var getCanonicalFileName = ts.hostGetCanonicalFileName(host);\n var cwd = host.getCurrentDirectory();\n var referenceRedirect = host.isSourceOfProjectReferenceRedirect(importedFileName) ? host.getProjectReferenceRedirect(importedFileName) : undefined;\n var importedPath = ts.toPath(importedFileName, cwd, getCanonicalFileName);\n var redirects = host.redirectTargetsMap.get(importedPath) || ts.emptyArray;\n var importedFileNames = __spreadArray(__spreadArray(__spreadArray([], (referenceRedirect ? [referenceRedirect] : ts.emptyArray), true), [importedFileName], false), redirects, true);\n var targets = importedFileNames.map(function (f) { return ts.getNormalizedAbsolutePath(f, cwd); });\n var shouldFilterIgnoredPaths = !ts.every(targets, ts.containsIgnoredPath);\n if (!preferSymlinks) {\n // Symlinks inside ignored paths are already filtered out of the symlink cache,\n // so we only need to remove them from the realpath filenames.\n var result_15 = ts.forEach(targets, function (p) { return !(shouldFilterIgnoredPaths && ts.containsIgnoredPath(p)) && cb(p, referenceRedirect === p); });\n if (result_15)\n return result_15;\n }\n var symlinkedDirectories = (_a = host.getSymlinkCache) === null || _a === void 0 ? void 0 : _a.call(host).getSymlinkedDirectoriesByRealpath();\n var fullImportedFileName = ts.getNormalizedAbsolutePath(importedFileName, cwd);\n var result = symlinkedDirectories && ts.forEachAncestorDirectory(ts.getDirectoryPath(fullImportedFileName), function (realPathDirectory) {\n var symlinkDirectories = symlinkedDirectories.get(ts.ensureTrailingDirectorySeparator(ts.toPath(realPathDirectory, cwd, getCanonicalFileName)));\n if (!symlinkDirectories)\n return undefined; // Continue to ancestor directory\n // Don't want to a package to globally import from itself (importNameCodeFix_symlink_own_package.ts)\n if (ts.startsWithDirectory(importingFileName, realPathDirectory, getCanonicalFileName)) {\n return false; // Stop search, each ancestor directory will also hit this condition\n }\n return ts.forEach(targets, function (target) {\n if (!ts.startsWithDirectory(target, realPathDirectory, getCanonicalFileName)) {\n return;\n }\n var relative = ts.getRelativePathFromDirectory(realPathDirectory, target, getCanonicalFileName);\n for (var _i = 0, symlinkDirectories_1 = symlinkDirectories; _i < symlinkDirectories_1.length; _i++) {\n var symlinkDirectory = symlinkDirectories_1[_i];\n var option = ts.resolvePath(symlinkDirectory, relative);\n var result_16 = cb(option, target === referenceRedirect);\n shouldFilterIgnoredPaths = true; // We found a non-ignored path in symlinks, so we can reject ignored-path realpaths\n if (result_16)\n return result_16;\n }\n });\n });\n return result || (preferSymlinks\n ? ts.forEach(targets, function (p) { return shouldFilterIgnoredPaths && ts.containsIgnoredPath(p) ? undefined : cb(p, p === referenceRedirect); })\n : undefined);\n }\n moduleSpecifiers_1.forEachFileNameOfModule = forEachFileNameOfModule;\n /**\n * Looks for existing imports that use symlinks to this module.\n * Symlinks will be returned first so they are preferred over the real path.\n */\n function getAllModulePaths(importingFilePath, importedFileName, host, preferences, importedFilePath) {\n var _a;\n if (importedFilePath === void 0) { importedFilePath = ts.toPath(importedFileName, host.getCurrentDirectory(), ts.hostGetCanonicalFileName(host)); }\n var cache = (_a = host.getModuleSpecifierCache) === null || _a === void 0 ? void 0 : _a.call(host);\n if (cache) {\n var cached = cache.get(importingFilePath, importedFilePath, preferences);\n if (cached === null || cached === void 0 ? void 0 : cached.modulePaths)\n return cached.modulePaths;\n }\n var modulePaths = getAllModulePathsWorker(importingFilePath, importedFileName, host);\n if (cache) {\n cache.setModulePaths(importingFilePath, importedFilePath, preferences, modulePaths);\n }\n return modulePaths;\n }\n function getAllModulePathsWorker(importingFileName, importedFileName, host) {\n var getCanonicalFileName = ts.hostGetCanonicalFileName(host);\n var allFileNames = new ts.Map();\n var importedFileFromNodeModules = false;\n forEachFileNameOfModule(importingFileName, importedFileName, host, \n /*preferSymlinks*/ true, function (path, isRedirect) {\n var isInNodeModules = ts.pathContainsNodeModules(path);\n allFileNames.set(path, { path: getCanonicalFileName(path), isRedirect: isRedirect, isInNodeModules: isInNodeModules });\n importedFileFromNodeModules = importedFileFromNodeModules || isInNodeModules;\n // don't return value, so we collect everything\n });\n // Sort by paths closest to importing file Name directory\n var sortedPaths = [];\n var _loop_31 = function (directory) {\n var directoryStart = ts.ensureTrailingDirectorySeparator(directory);\n var pathsInDirectory;\n allFileNames.forEach(function (_a, fileName) {\n var path = _a.path, isRedirect = _a.isRedirect, isInNodeModules = _a.isInNodeModules;\n if (ts.startsWith(path, directoryStart)) {\n (pathsInDirectory || (pathsInDirectory = [])).push({ path: fileName, isRedirect: isRedirect, isInNodeModules: isInNodeModules });\n allFileNames.delete(fileName);\n }\n });\n if (pathsInDirectory) {\n if (pathsInDirectory.length > 1) {\n pathsInDirectory.sort(comparePathsByRedirectAndNumberOfDirectorySeparators);\n }\n sortedPaths.push.apply(sortedPaths, pathsInDirectory);\n }\n var newDirectory = ts.getDirectoryPath(directory);\n if (newDirectory === directory)\n return out_directory_1 = directory, \"break\";\n directory = newDirectory;\n out_directory_1 = directory;\n };\n var out_directory_1;\n for (var directory = ts.getDirectoryPath(importingFileName); allFileNames.size !== 0;) {\n var state_9 = _loop_31(directory);\n directory = out_directory_1;\n if (state_9 === \"break\")\n break;\n }\n if (allFileNames.size) {\n var remainingPaths = ts.arrayFrom(allFileNames.values());\n if (remainingPaths.length > 1)\n remainingPaths.sort(comparePathsByRedirectAndNumberOfDirectorySeparators);\n sortedPaths.push.apply(sortedPaths, remainingPaths);\n }\n return sortedPaths;\n }\n function tryGetModuleNameFromAmbientModule(moduleSymbol, checker) {\n var _a;\n var decl = (_a = moduleSymbol.declarations) === null || _a === void 0 ? void 0 : _a.find(function (d) { return ts.isNonGlobalAmbientModule(d) && (!ts.isExternalModuleAugmentation(d) || !ts.isExternalModuleNameRelative(ts.getTextOfIdentifierOrLiteral(d.name))); });\n if (decl) {\n return decl.name.text;\n }\n // the module could be a namespace, which is export through \"export=\" from an ambient module.\n /**\n * declare module \"m\" {\n * namespace ns {\n * class c {}\n * }\n * export = ns;\n * }\n */\n // `import {c} from \"m\";` is valid, in which case, `moduleSymbol` is \"ns\", but the module name should be \"m\"\n var ambientModuleDeclareCandidates = ts.mapDefined(moduleSymbol.declarations, function (d) {\n var _a, _b, _c, _d;\n if (!ts.isModuleDeclaration(d))\n return;\n var topNamespace = getTopNamespace(d);\n if (!(((_a = topNamespace === null || topNamespace === void 0 ? void 0 : topNamespace.parent) === null || _a === void 0 ? void 0 : _a.parent)\n && ts.isModuleBlock(topNamespace.parent) && ts.isAmbientModule(topNamespace.parent.parent) && ts.isSourceFile(topNamespace.parent.parent.parent)))\n return;\n var exportAssignment = (_d = (_c = (_b = topNamespace.parent.parent.symbol.exports) === null || _b === void 0 ? void 0 : _b.get(\"export=\")) === null || _c === void 0 ? void 0 : _c.valueDeclaration) === null || _d === void 0 ? void 0 : _d.expression;\n if (!exportAssignment)\n return;\n var exportSymbol = checker.getSymbolAtLocation(exportAssignment);\n if (!exportSymbol)\n return;\n var originalExportSymbol = (exportSymbol === null || exportSymbol === void 0 ? void 0 : exportSymbol.flags) & 2097152 /* Alias */ ? checker.getAliasedSymbol(exportSymbol) : exportSymbol;\n if (originalExportSymbol === d.symbol)\n return topNamespace.parent.parent;\n function getTopNamespace(namespaceDeclaration) {\n while (namespaceDeclaration.flags & 4 /* NestedNamespace */) {\n namespaceDeclaration = namespaceDeclaration.parent;\n }\n return namespaceDeclaration;\n }\n });\n var ambientModuleDeclare = ambientModuleDeclareCandidates[0];\n if (ambientModuleDeclare) {\n return ambientModuleDeclare.name.text;\n }\n }\n function tryGetModuleNameFromPaths(relativeToBaseUrlWithIndex, relativeToBaseUrl, paths) {\n for (var key in paths) {\n for (var _i = 0, _a = paths[key]; _i < _a.length; _i++) {\n var patternText_1 = _a[_i];\n var pattern = ts.removeFileExtension(ts.normalizePath(patternText_1));\n var indexOfStar = pattern.indexOf(\"*\");\n if (indexOfStar !== -1) {\n var prefix = pattern.substr(0, indexOfStar);\n var suffix = pattern.substr(indexOfStar + 1);\n if (relativeToBaseUrl.length >= prefix.length + suffix.length &&\n ts.startsWith(relativeToBaseUrl, prefix) &&\n ts.endsWith(relativeToBaseUrl, suffix) ||\n !suffix && relativeToBaseUrl === ts.removeTrailingDirectorySeparator(prefix)) {\n var matchedStar = relativeToBaseUrl.substr(prefix.length, relativeToBaseUrl.length - suffix.length - prefix.length);\n return key.replace(\"*\", matchedStar);\n }\n }\n else if (pattern === relativeToBaseUrl || pattern === relativeToBaseUrlWithIndex) {\n return key;\n }\n }\n }\n }\n function tryGetModuleNameFromRootDirs(rootDirs, moduleFileName, sourceDirectory, getCanonicalFileName, ending, compilerOptions) {\n var normalizedTargetPath = getPathRelativeToRootDirs(moduleFileName, rootDirs, getCanonicalFileName);\n if (normalizedTargetPath === undefined) {\n return undefined;\n }\n var normalizedSourcePath = getPathRelativeToRootDirs(sourceDirectory, rootDirs, getCanonicalFileName);\n var relativePath = normalizedSourcePath !== undefined ? ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(normalizedSourcePath, normalizedTargetPath, getCanonicalFileName)) : normalizedTargetPath;\n return ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.NodeJs\n ? removeExtensionAndIndexPostFix(relativePath, ending, compilerOptions)\n : ts.removeFileExtension(relativePath);\n }\n function tryGetModuleNameAsNodeModule(_a, _b, host, options, packageNameOnly) {\n var path = _a.path, isRedirect = _a.isRedirect;\n var getCanonicalFileName = _b.getCanonicalFileName, sourceDirectory = _b.sourceDirectory;\n if (!host.fileExists || !host.readFile) {\n return undefined;\n }\n var parts = getNodeModulePathParts(path);\n if (!parts) {\n return undefined;\n }\n // Simplify the full file path to something that can be resolved by Node.\n var moduleSpecifier = path;\n var isPackageRootPath = false;\n if (!packageNameOnly) {\n var packageRootIndex = parts.packageRootIndex;\n var moduleFileNameForExtensionless = void 0;\n while (true) {\n // If the module could be imported by a directory name, use that directory's name\n var _c = tryDirectoryWithPackageJson(packageRootIndex), moduleFileToTry = _c.moduleFileToTry, packageRootPath = _c.packageRootPath;\n if (packageRootPath) {\n moduleSpecifier = packageRootPath;\n isPackageRootPath = true;\n break;\n }\n if (!moduleFileNameForExtensionless)\n moduleFileNameForExtensionless = moduleFileToTry;\n // try with next level of directory\n packageRootIndex = path.indexOf(ts.directorySeparator, packageRootIndex + 1);\n if (packageRootIndex === -1) {\n moduleSpecifier = getExtensionlessFileName(moduleFileNameForExtensionless);\n break;\n }\n }\n }\n if (isRedirect && !isPackageRootPath) {\n return undefined;\n }\n var globalTypingsCacheLocation = host.getGlobalTypingsCacheLocation && host.getGlobalTypingsCacheLocation();\n // Get a path that's relative to node_modules or the importing file's path\n // if node_modules folder is in this folder or any of its parent folders, no need to keep it.\n var pathToTopLevelNodeModules = getCanonicalFileName(moduleSpecifier.substring(0, parts.topLevelNodeModulesIndex));\n if (!(ts.startsWith(sourceDirectory, pathToTopLevelNodeModules) || globalTypingsCacheLocation && ts.startsWith(getCanonicalFileName(globalTypingsCacheLocation), pathToTopLevelNodeModules))) {\n return undefined;\n }\n // If the module was found in @types, get the actual Node package name\n var nodeModulesDirectoryName = moduleSpecifier.substring(parts.topLevelPackageNameIndex + 1);\n var packageName = ts.getPackageNameFromTypesPackageName(nodeModulesDirectoryName);\n // For classic resolution, only allow importing from node_modules/@types, not other node_modules\n return ts.getEmitModuleResolutionKind(options) !== ts.ModuleResolutionKind.NodeJs && packageName === nodeModulesDirectoryName ? undefined : packageName;\n function tryDirectoryWithPackageJson(packageRootIndex) {\n var packageRootPath = path.substring(0, packageRootIndex);\n var packageJsonPath = ts.combinePaths(packageRootPath, \"package.json\");\n var moduleFileToTry = path;\n if (host.fileExists(packageJsonPath)) {\n var packageJsonContent = JSON.parse(host.readFile(packageJsonPath));\n var versionPaths = packageJsonContent.typesVersions\n ? ts.getPackageJsonTypesVersionsPaths(packageJsonContent.typesVersions)\n : undefined;\n if (versionPaths) {\n var subModuleName = path.slice(packageRootPath.length + 1);\n var fromPaths = tryGetModuleNameFromPaths(ts.removeFileExtension(subModuleName), removeExtensionAndIndexPostFix(subModuleName, 0 /* Minimal */, options), versionPaths.paths);\n if (fromPaths !== undefined) {\n moduleFileToTry = ts.combinePaths(packageRootPath, fromPaths);\n }\n }\n // If the file is the main module, it can be imported by the package name\n var mainFileRelative = packageJsonContent.typings || packageJsonContent.types || packageJsonContent.main;\n if (ts.isString(mainFileRelative)) {\n var mainExportFile = ts.toPath(mainFileRelative, packageRootPath, getCanonicalFileName);\n if (ts.removeFileExtension(mainExportFile) === ts.removeFileExtension(getCanonicalFileName(moduleFileToTry))) {\n return { packageRootPath: packageRootPath, moduleFileToTry: moduleFileToTry };\n }\n }\n }\n return { moduleFileToTry: moduleFileToTry };\n }\n function getExtensionlessFileName(path) {\n // We still have a file name - remove the extension\n var fullModulePathWithoutExtension = ts.removeFileExtension(path);\n // If the file is /index, it can be imported by its directory name\n // IFF there is not _also_ a file by the same name\n if (getCanonicalFileName(fullModulePathWithoutExtension.substring(parts.fileNameIndex)) === \"/index\" && !tryGetAnyFileFromPath(host, fullModulePathWithoutExtension.substring(0, parts.fileNameIndex))) {\n return fullModulePathWithoutExtension.substring(0, parts.fileNameIndex);\n }\n return fullModulePathWithoutExtension;\n }\n }\n function tryGetAnyFileFromPath(host, path) {\n if (!host.fileExists)\n return;\n // We check all js, `node` and `json` extensions in addition to TS, since node module resolution would also choose those over the directory\n var extensions = ts.getSupportedExtensions({ allowJs: true }, [{ extension: \"node\", isMixedContent: false }, { extension: \"json\", isMixedContent: false, scriptKind: 6 /* JSON */ }]);\n for (var _i = 0, extensions_3 = extensions; _i < extensions_3.length; _i++) {\n var e = extensions_3[_i];\n var fullPath = path + e;\n if (host.fileExists(fullPath)) {\n return fullPath;\n }\n }\n }\n function getNodeModulePathParts(fullPath) {\n // If fullPath can't be valid module file within node_modules, returns undefined.\n // Example of expected pattern: /base/path/node_modules/[@scope/otherpackage/@otherscope/node_modules/]package/[subdirectory/]file.js\n // Returns indices: ^ ^ ^ ^\n var topLevelNodeModulesIndex = 0;\n var topLevelPackageNameIndex = 0;\n var packageRootIndex = 0;\n var fileNameIndex = 0;\n var States;\n (function (States) {\n States[States[\"BeforeNodeModules\"] = 0] = \"BeforeNodeModules\";\n States[States[\"NodeModules\"] = 1] = \"NodeModules\";\n States[States[\"Scope\"] = 2] = \"Scope\";\n States[States[\"PackageContent\"] = 3] = \"PackageContent\";\n })(States || (States = {}));\n var partStart = 0;\n var partEnd = 0;\n var state = 0 /* BeforeNodeModules */;\n while (partEnd >= 0) {\n partStart = partEnd;\n partEnd = fullPath.indexOf(\"/\", partStart + 1);\n switch (state) {\n case 0 /* BeforeNodeModules */:\n if (fullPath.indexOf(ts.nodeModulesPathPart, partStart) === partStart) {\n topLevelNodeModulesIndex = partStart;\n topLevelPackageNameIndex = partEnd;\n state = 1 /* NodeModules */;\n }\n break;\n case 1 /* NodeModules */:\n case 2 /* Scope */:\n if (state === 1 /* NodeModules */ && fullPath.charAt(partStart + 1) === \"@\") {\n state = 2 /* Scope */;\n }\n else {\n packageRootIndex = partEnd;\n state = 3 /* PackageContent */;\n }\n break;\n case 3 /* PackageContent */:\n if (fullPath.indexOf(ts.nodeModulesPathPart, partStart) === partStart) {\n state = 1 /* NodeModules */;\n }\n else {\n state = 3 /* PackageContent */;\n }\n break;\n }\n }\n fileNameIndex = partStart;\n return state > 1 /* NodeModules */ ? { topLevelNodeModulesIndex: topLevelNodeModulesIndex, topLevelPackageNameIndex: topLevelPackageNameIndex, packageRootIndex: packageRootIndex, fileNameIndex: fileNameIndex } : undefined;\n }\n function getPathRelativeToRootDirs(path, rootDirs, getCanonicalFileName) {\n return ts.firstDefined(rootDirs, function (rootDir) {\n var relativePath = getRelativePathIfInDirectory(path, rootDir, getCanonicalFileName); // TODO: GH#18217\n return isPathRelativeToParent(relativePath) ? undefined : relativePath;\n });\n }\n function removeExtensionAndIndexPostFix(fileName, ending, options) {\n if (ts.fileExtensionIs(fileName, \".json\" /* Json */))\n return fileName;\n var noExtension = ts.removeFileExtension(fileName);\n switch (ending) {\n case 0 /* Minimal */:\n return ts.removeSuffix(noExtension, \"/index\");\n case 1 /* Index */:\n return noExtension;\n case 2 /* JsExtension */:\n return noExtension + getJSExtensionForFile(fileName, options);\n default:\n return ts.Debug.assertNever(ending);\n }\n }\n function getJSExtensionForFile(fileName, options) {\n var _a;\n return (_a = tryGetJSExtensionForFile(fileName, options)) !== null && _a !== void 0 ? _a : ts.Debug.fail(\"Extension \" + ts.extensionFromPath(fileName) + \" is unsupported:: FileName:: \" + fileName);\n }\n function tryGetJSExtensionForFile(fileName, options) {\n var ext = ts.tryGetExtensionFromPath(fileName);\n switch (ext) {\n case \".ts\" /* Ts */:\n case \".d.ts\" /* Dts */:\n return \".js\" /* Js */;\n case \".tsx\" /* Tsx */:\n return options.jsx === 1 /* Preserve */ ? \".jsx\" /* Jsx */ : \".js\" /* Js */;\n case \".js\" /* Js */:\n case \".jsx\" /* Jsx */:\n case \".json\" /* Json */:\n return ext;\n default:\n return undefined;\n }\n }\n moduleSpecifiers_1.tryGetJSExtensionForFile = tryGetJSExtensionForFile;\n function getRelativePathIfInDirectory(path, directoryPath, getCanonicalFileName) {\n var relativePath = ts.getRelativePathToDirectoryOrUrl(directoryPath, path, directoryPath, getCanonicalFileName, /*isAbsolutePathAnUrl*/ false);\n return ts.isRootedDiskPath(relativePath) ? undefined : relativePath;\n }\n function isPathRelativeToParent(path) {\n return ts.startsWith(path, \"..\");\n }\n })(moduleSpecifiers = ts.moduleSpecifiers || (ts.moduleSpecifiers = {}));\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var sysFormatDiagnosticsHost = ts.sys ? {\n getCurrentDirectory: function () { return ts.sys.getCurrentDirectory(); },\n getNewLine: function () { return ts.sys.newLine; },\n getCanonicalFileName: ts.createGetCanonicalFileName(ts.sys.useCaseSensitiveFileNames)\n } : undefined;\n /**\n * Create a function that reports error by writing to the system and handles the formating of the diagnostic\n */\n function createDiagnosticReporter(system, pretty) {\n var host = system === ts.sys && sysFormatDiagnosticsHost ? sysFormatDiagnosticsHost : {\n getCurrentDirectory: function () { return system.getCurrentDirectory(); },\n getNewLine: function () { return system.newLine; },\n getCanonicalFileName: ts.createGetCanonicalFileName(system.useCaseSensitiveFileNames),\n };\n if (!pretty) {\n return function (diagnostic) { return system.write(ts.formatDiagnostic(diagnostic, host)); };\n }\n var diagnostics = new Array(1);\n return function (diagnostic) {\n diagnostics[0] = diagnostic;\n system.write(ts.formatDiagnosticsWithColorAndContext(diagnostics, host) + host.getNewLine());\n diagnostics[0] = undefined; // TODO: GH#18217\n };\n }\n ts.createDiagnosticReporter = createDiagnosticReporter;\n /**\n * @returns Whether the screen was cleared.\n */\n function clearScreenIfNotWatchingForFileChanges(system, diagnostic, options) {\n if (system.clearScreen &&\n !options.preserveWatchOutput &&\n !options.extendedDiagnostics &&\n !options.diagnostics &&\n ts.contains(ts.screenStartingMessageCodes, diagnostic.code)) {\n system.clearScreen();\n return true;\n }\n return false;\n }\n ts.screenStartingMessageCodes = [\n ts.Diagnostics.Starting_compilation_in_watch_mode.code,\n ts.Diagnostics.File_change_detected_Starting_incremental_compilation.code,\n ];\n function getPlainDiagnosticFollowingNewLines(diagnostic, newLine) {\n return ts.contains(ts.screenStartingMessageCodes, diagnostic.code)\n ? newLine + newLine\n : newLine;\n }\n /**\n * Get locale specific time based on whether we are in test mode\n */\n function getLocaleTimeString(system) {\n return !system.now ?\n new Date().toLocaleTimeString() :\n system.now().toLocaleTimeString(\"en-US\", { timeZone: \"UTC\" });\n }\n ts.getLocaleTimeString = getLocaleTimeString;\n /**\n * Create a function that reports watch status by writing to the system and handles the formating of the diagnostic\n */\n function createWatchStatusReporter(system, pretty) {\n return pretty ?\n function (diagnostic, newLine, options) {\n clearScreenIfNotWatchingForFileChanges(system, diagnostic, options);\n var output = \"[\" + ts.formatColorAndReset(getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + \"] \";\n output += \"\" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (newLine + newLine);\n system.write(output);\n } :\n function (diagnostic, newLine, options) {\n var output = \"\";\n if (!clearScreenIfNotWatchingForFileChanges(system, diagnostic, options)) {\n output += newLine;\n }\n output += getLocaleTimeString(system) + \" - \";\n output += \"\" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + getPlainDiagnosticFollowingNewLines(diagnostic, newLine);\n system.write(output);\n };\n }\n ts.createWatchStatusReporter = createWatchStatusReporter;\n /** Parses config file using System interface */\n function parseConfigFileWithSystem(configFileName, optionsToExtend, extendedConfigCache, watchOptionsToExtend, system, reportDiagnostic) {\n var host = system;\n host.onUnRecoverableConfigFileDiagnostic = function (diagnostic) { return reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic); };\n var result = ts.getParsedCommandLineOfConfigFile(configFileName, optionsToExtend, host, extendedConfigCache, watchOptionsToExtend);\n host.onUnRecoverableConfigFileDiagnostic = undefined; // TODO: GH#18217\n return result;\n }\n ts.parseConfigFileWithSystem = parseConfigFileWithSystem;\n function getErrorCountForSummary(diagnostics) {\n return ts.countWhere(diagnostics, function (diagnostic) { return diagnostic.category === ts.DiagnosticCategory.Error; });\n }\n ts.getErrorCountForSummary = getErrorCountForSummary;\n function getWatchErrorSummaryDiagnosticMessage(errorCount) {\n return errorCount === 1 ?\n ts.Diagnostics.Found_1_error_Watching_for_file_changes :\n ts.Diagnostics.Found_0_errors_Watching_for_file_changes;\n }\n ts.getWatchErrorSummaryDiagnosticMessage = getWatchErrorSummaryDiagnosticMessage;\n function getErrorSummaryText(errorCount, newLine) {\n if (errorCount === 0)\n return \"\";\n var d = ts.createCompilerDiagnostic(errorCount === 1 ? ts.Diagnostics.Found_1_error : ts.Diagnostics.Found_0_errors, errorCount);\n return \"\" + newLine + ts.flattenDiagnosticMessageText(d.messageText, newLine) + newLine + newLine;\n }\n ts.getErrorSummaryText = getErrorSummaryText;\n function isBuilderProgram(program) {\n return !!program.getState;\n }\n ts.isBuilderProgram = isBuilderProgram;\n function listFiles(program, write) {\n var options = program.getCompilerOptions();\n if (options.explainFiles) {\n explainFiles(isBuilderProgram(program) ? program.getProgram() : program, write);\n }\n else if (options.listFiles || options.listFilesOnly) {\n ts.forEach(program.getSourceFiles(), function (file) {\n write(file.fileName);\n });\n }\n }\n ts.listFiles = listFiles;\n function explainFiles(program, write) {\n var _a, _b;\n var reasons = program.getFileIncludeReasons();\n var getCanonicalFileName = ts.createGetCanonicalFileName(program.useCaseSensitiveFileNames());\n var relativeFileName = function (fileName) { return ts.convertToRelativePath(fileName, program.getCurrentDirectory(), getCanonicalFileName); };\n for (var _i = 0, _c = program.getSourceFiles(); _i < _c.length; _i++) {\n var file = _c[_i];\n write(\"\" + toFileName(file, relativeFileName));\n (_a = reasons.get(file.path)) === null || _a === void 0 ? void 0 : _a.forEach(function (reason) { return write(\" \" + fileIncludeReasonToDiagnostics(program, reason, relativeFileName).messageText); });\n (_b = explainIfFileIsRedirect(file, relativeFileName)) === null || _b === void 0 ? void 0 : _b.forEach(function (d) { return write(\" \" + d.messageText); });\n }\n }\n ts.explainFiles = explainFiles;\n function explainIfFileIsRedirect(file, fileNameConvertor) {\n var result;\n if (file.path !== file.resolvedPath) {\n (result || (result = [])).push(ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.File_is_output_of_project_reference_source_0, toFileName(file.originalFileName, fileNameConvertor)));\n }\n if (file.redirectInfo) {\n (result || (result = [])).push(ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.File_redirects_to_file_0, toFileName(file.redirectInfo.redirectTarget, fileNameConvertor)));\n }\n return result;\n }\n ts.explainIfFileIsRedirect = explainIfFileIsRedirect;\n function getMatchedFileSpec(program, fileName) {\n var _a;\n var configFile = program.getCompilerOptions().configFile;\n if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedFilesSpec))\n return undefined;\n var getCanonicalFileName = ts.createGetCanonicalFileName(program.useCaseSensitiveFileNames());\n var filePath = getCanonicalFileName(fileName);\n var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));\n return ts.find(configFile.configFileSpecs.validatedFilesSpec, function (fileSpec) { return getCanonicalFileName(ts.getNormalizedAbsolutePath(fileSpec, basePath)) === filePath; });\n }\n ts.getMatchedFileSpec = getMatchedFileSpec;\n function getMatchedIncludeSpec(program, fileName) {\n var _a, _b;\n var configFile = program.getCompilerOptions().configFile;\n if (!((_a = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _a === void 0 ? void 0 : _a.validatedIncludeSpecs))\n return undefined;\n var isJsonFile = ts.fileExtensionIs(fileName, \".json\" /* Json */);\n var basePath = ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFile.fileName, program.getCurrentDirectory()));\n var useCaseSensitiveFileNames = program.useCaseSensitiveFileNames();\n return ts.find((_b = configFile === null || configFile === void 0 ? void 0 : configFile.configFileSpecs) === null || _b === void 0 ? void 0 : _b.validatedIncludeSpecs, function (includeSpec) {\n if (isJsonFile && !ts.endsWith(includeSpec, \".json\" /* Json */))\n return false;\n var pattern = ts.getPatternFromSpec(includeSpec, basePath, \"files\");\n return !!pattern && ts.getRegexFromPattern(\"(\" + pattern + \")$\", useCaseSensitiveFileNames).test(fileName);\n });\n }\n ts.getMatchedIncludeSpec = getMatchedIncludeSpec;\n function fileIncludeReasonToDiagnostics(program, reason, fileNameConvertor) {\n var _a, _b;\n var options = program.getCompilerOptions();\n if (ts.isReferencedFile(reason)) {\n var referenceLocation = ts.getReferencedFileLocation(function (path) { return program.getSourceFileByPath(path); }, reason);\n var referenceText = ts.isReferenceFileLocation(referenceLocation) ? referenceLocation.file.text.substring(referenceLocation.pos, referenceLocation.end) : \"\\\"\" + referenceLocation.text + \"\\\"\";\n var message = void 0;\n ts.Debug.assert(ts.isReferenceFileLocation(referenceLocation) || reason.kind === ts.FileIncludeKind.Import, \"Only synthetic references are imports\");\n switch (reason.kind) {\n case ts.FileIncludeKind.Import:\n if (ts.isReferenceFileLocation(referenceLocation)) {\n message = referenceLocation.packageId ?\n ts.Diagnostics.Imported_via_0_from_file_1_with_packageId_2 :\n ts.Diagnostics.Imported_via_0_from_file_1;\n }\n else if (referenceLocation.text === ts.externalHelpersModuleNameText) {\n message = referenceLocation.packageId ?\n ts.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_importHelpers_as_specified_in_compilerOptions :\n ts.Diagnostics.Imported_via_0_from_file_1_to_import_importHelpers_as_specified_in_compilerOptions;\n }\n else {\n message = referenceLocation.packageId ?\n ts.Diagnostics.Imported_via_0_from_file_1_with_packageId_2_to_import_jsx_and_jsxs_factory_functions :\n ts.Diagnostics.Imported_via_0_from_file_1_to_import_jsx_and_jsxs_factory_functions;\n }\n break;\n case ts.FileIncludeKind.ReferenceFile:\n ts.Debug.assert(!referenceLocation.packageId);\n message = ts.Diagnostics.Referenced_via_0_from_file_1;\n break;\n case ts.FileIncludeKind.TypeReferenceDirective:\n message = referenceLocation.packageId ?\n ts.Diagnostics.Type_library_referenced_via_0_from_file_1_with_packageId_2 :\n ts.Diagnostics.Type_library_referenced_via_0_from_file_1;\n break;\n case ts.FileIncludeKind.LibReferenceDirective:\n ts.Debug.assert(!referenceLocation.packageId);\n message = ts.Diagnostics.Library_referenced_via_0_from_file_1;\n break;\n default:\n ts.Debug.assertNever(reason);\n }\n return ts.chainDiagnosticMessages(\n /*details*/ undefined, message, referenceText, toFileName(referenceLocation.file, fileNameConvertor), referenceLocation.packageId && ts.packageIdToString(referenceLocation.packageId));\n }\n switch (reason.kind) {\n case ts.FileIncludeKind.RootFile:\n if (!((_a = options.configFile) === null || _a === void 0 ? void 0 : _a.configFileSpecs))\n return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Root_file_specified_for_compilation);\n var fileName = ts.getNormalizedAbsolutePath(program.getRootFileNames()[reason.index], program.getCurrentDirectory());\n var matchedByFiles = getMatchedFileSpec(program, fileName);\n if (matchedByFiles)\n return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Part_of_files_list_in_tsconfig_json);\n var matchedByInclude = getMatchedIncludeSpec(program, fileName);\n return matchedByInclude ?\n ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.Diagnostics.Matched_by_include_pattern_0_in_1, matchedByInclude, toFileName(options.configFile, fileNameConvertor)) :\n // Could be additional files specified as roots\n ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Root_file_specified_for_compilation);\n case ts.FileIncludeKind.SourceFromProjectReference:\n case ts.FileIncludeKind.OutputFromProjectReference:\n var isOutput = reason.kind === ts.FileIncludeKind.OutputFromProjectReference;\n var referencedResolvedRef = ts.Debug.checkDefined((_b = program.getResolvedProjectReferences()) === null || _b === void 0 ? void 0 : _b[reason.index]);\n return ts.chainDiagnosticMessages(\n /*details*/ undefined, ts.outFile(options) ?\n isOutput ?\n ts.Diagnostics.Output_from_referenced_project_0_included_because_1_specified :\n ts.Diagnostics.Source_from_referenced_project_0_included_because_1_specified :\n isOutput ?\n ts.Diagnostics.Output_from_referenced_project_0_included_because_module_is_specified_as_none :\n ts.Diagnostics.Source_from_referenced_project_0_included_because_module_is_specified_as_none, toFileName(referencedResolvedRef.sourceFile.fileName, fileNameConvertor), options.outFile ? \"--outFile\" : \"--out\");\n case ts.FileIncludeKind.AutomaticTypeDirectiveFile:\n return ts.chainDiagnosticMessages(\n /*details*/ undefined, options.types ?\n reason.packageId ?\n ts.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions_with_packageId_1 :\n ts.Diagnostics.Entry_point_of_type_library_0_specified_in_compilerOptions :\n reason.packageId ?\n ts.Diagnostics.Entry_point_for_implicit_type_library_0_with_packageId_1 :\n ts.Diagnostics.Entry_point_for_implicit_type_library_0, reason.typeReference, reason.packageId && ts.packageIdToString(reason.packageId));\n case ts.FileIncludeKind.LibFile:\n if (reason.index !== undefined)\n return ts.chainDiagnosticMessages(/*details*/ undefined, ts.Diagnostics.Library_0_specified_in_compilerOptions, options.lib[reason.index]);\n var target = ts.forEachEntry(ts.targetOptionDeclaration.type, function (value, key) { return value === options.target ? key : undefined; });\n return ts.chainDiagnosticMessages(\n /*details*/ undefined, target ?\n ts.Diagnostics.Default_library_for_target_0 :\n ts.Diagnostics.Default_library, target);\n default:\n ts.Debug.assertNever(reason);\n }\n }\n ts.fileIncludeReasonToDiagnostics = fileIncludeReasonToDiagnostics;\n function toFileName(file, fileNameConvertor) {\n var fileName = ts.isString(file) ? file : file.fileName;\n return fileNameConvertor ? fileNameConvertor(fileName) : fileName;\n }\n /**\n * Helper that emit files, report diagnostics and lists emitted and/or source files depending on compiler options\n */\n function emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n var isListFilesOnly = !!program.getCompilerOptions().listFilesOnly;\n // First get and report any syntactic errors.\n var allDiagnostics = program.getConfigFileParsingDiagnostics().slice();\n var configFileParsingDiagnosticsLength = allDiagnostics.length;\n ts.addRange(allDiagnostics, program.getSyntacticDiagnostics(/*sourceFile*/ undefined, cancellationToken));\n // If we didn't have any syntactic errors, then also try getting the global and\n // semantic errors.\n if (allDiagnostics.length === configFileParsingDiagnosticsLength) {\n ts.addRange(allDiagnostics, program.getOptionsDiagnostics(cancellationToken));\n if (!isListFilesOnly) {\n ts.addRange(allDiagnostics, program.getGlobalDiagnostics(cancellationToken));\n if (allDiagnostics.length === configFileParsingDiagnosticsLength) {\n ts.addRange(allDiagnostics, program.getSemanticDiagnostics(/*sourceFile*/ undefined, cancellationToken));\n }\n }\n }\n // Emit and report any errors we ran into.\n var emitResult = isListFilesOnly\n ? { emitSkipped: true, diagnostics: ts.emptyArray }\n : program.emit(/*targetSourceFile*/ undefined, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers);\n var emittedFiles = emitResult.emittedFiles, emitDiagnostics = emitResult.diagnostics;\n ts.addRange(allDiagnostics, emitDiagnostics);\n var diagnostics = ts.sortAndDeduplicateDiagnostics(allDiagnostics);\n diagnostics.forEach(reportDiagnostic);\n if (write) {\n var currentDir_1 = program.getCurrentDirectory();\n ts.forEach(emittedFiles, function (file) {\n var filepath = ts.getNormalizedAbsolutePath(file, currentDir_1);\n write(\"TSFILE: \" + filepath);\n });\n listFiles(program, write);\n }\n if (reportSummary) {\n reportSummary(getErrorCountForSummary(diagnostics));\n }\n return {\n emitResult: emitResult,\n diagnostics: diagnostics,\n };\n }\n ts.emitFilesAndReportErrors = emitFilesAndReportErrors;\n function emitFilesAndReportErrorsAndGetExitStatus(program, reportDiagnostic, write, reportSummary, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n var _a = emitFilesAndReportErrors(program, reportDiagnostic, write, reportSummary, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers), emitResult = _a.emitResult, diagnostics = _a.diagnostics;\n if (emitResult.emitSkipped && diagnostics.length > 0) {\n // If the emitter didn't emit anything, then pass that value along.\n return ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;\n }\n else if (diagnostics.length > 0) {\n // The emitter emitted something, inform the caller if that happened in the presence\n // of diagnostics or not.\n return ts.ExitStatus.DiagnosticsPresent_OutputsGenerated;\n }\n return ts.ExitStatus.Success;\n }\n ts.emitFilesAndReportErrorsAndGetExitStatus = emitFilesAndReportErrorsAndGetExitStatus;\n ts.noopFileWatcher = { close: ts.noop };\n ts.returnNoopFileWatcher = function () { return ts.noopFileWatcher; };\n function createWatchHost(system, reportWatchStatus) {\n if (system === void 0) { system = ts.sys; }\n var onWatchStatusChange = reportWatchStatus || createWatchStatusReporter(system);\n return {\n onWatchStatusChange: onWatchStatusChange,\n watchFile: ts.maybeBind(system, system.watchFile) || ts.returnNoopFileWatcher,\n watchDirectory: ts.maybeBind(system, system.watchDirectory) || ts.returnNoopFileWatcher,\n setTimeout: ts.maybeBind(system, system.setTimeout) || ts.noop,\n clearTimeout: ts.maybeBind(system, system.clearTimeout) || ts.noop\n };\n }\n ts.createWatchHost = createWatchHost;\n ts.WatchType = {\n ConfigFile: \"Config file\",\n ExtendedConfigFile: \"Extended config file\",\n SourceFile: \"Source file\",\n MissingFile: \"Missing file\",\n WildcardDirectory: \"Wild card directory\",\n FailedLookupLocations: \"Failed Lookup Locations\",\n TypeRoots: \"Type roots\",\n ConfigFileOfReferencedProject: \"Config file of referened project\",\n ExtendedConfigOfReferencedProject: \"Extended config file of referenced project\",\n WildcardDirectoryOfReferencedProject: \"Wild card directory of referenced project\",\n PackageJson: \"package.json file\",\n };\n function createWatchFactory(host, options) {\n var watchLogLevel = host.trace ? options.extendedDiagnostics ? ts.WatchLogLevel.Verbose : options.diagnostics ? ts.WatchLogLevel.TriggerOnly : ts.WatchLogLevel.None : ts.WatchLogLevel.None;\n var writeLog = watchLogLevel !== ts.WatchLogLevel.None ? (function (s) { return host.trace(s); }) : ts.noop;\n var result = ts.getWatchFactory(host, watchLogLevel, writeLog);\n result.writeLog = writeLog;\n return result;\n }\n ts.createWatchFactory = createWatchFactory;\n function createCompilerHostFromProgramHost(host, getCompilerOptions, directoryStructureHost) {\n if (directoryStructureHost === void 0) { directoryStructureHost = host; }\n var useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();\n var hostGetNewLine = ts.memoize(function () { return host.getNewLine(); });\n return {\n getSourceFile: function (fileName, languageVersion, onError) {\n var text;\n try {\n ts.performance.mark(\"beforeIORead\");\n text = host.readFile(fileName, getCompilerOptions().charset);\n ts.performance.mark(\"afterIORead\");\n ts.performance.measure(\"I/O Read\", \"beforeIORead\", \"afterIORead\");\n }\n catch (e) {\n if (onError) {\n onError(e.message);\n }\n text = \"\";\n }\n return text !== undefined ? ts.createSourceFile(fileName, text, languageVersion) : undefined;\n },\n getDefaultLibLocation: ts.maybeBind(host, host.getDefaultLibLocation),\n getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); },\n writeFile: writeFile,\n getCurrentDirectory: ts.memoize(function () { return host.getCurrentDirectory(); }),\n useCaseSensitiveFileNames: function () { return useCaseSensitiveFileNames; },\n getCanonicalFileName: ts.createGetCanonicalFileName(useCaseSensitiveFileNames),\n getNewLine: function () { return ts.getNewLineCharacter(getCompilerOptions(), hostGetNewLine); },\n fileExists: function (f) { return host.fileExists(f); },\n readFile: function (f) { return host.readFile(f); },\n trace: ts.maybeBind(host, host.trace),\n directoryExists: ts.maybeBind(directoryStructureHost, directoryStructureHost.directoryExists),\n getDirectories: ts.maybeBind(directoryStructureHost, directoryStructureHost.getDirectories),\n realpath: ts.maybeBind(host, host.realpath),\n getEnvironmentVariable: ts.maybeBind(host, host.getEnvironmentVariable) || (function () { return \"\"; }),\n createHash: ts.maybeBind(host, host.createHash),\n readDirectory: ts.maybeBind(host, host.readDirectory),\n disableUseFileVersionAsSignature: host.disableUseFileVersionAsSignature,\n };\n function writeFile(fileName, text, writeByteOrderMark, onError) {\n try {\n ts.performance.mark(\"beforeIOWrite\");\n // NOTE: If patchWriteFileEnsuringDirectory has been called,\n // the host.writeFile will do its own directory creation and\n // the ensureDirectoriesExist call will always be redundant.\n ts.writeFileEnsuringDirectories(fileName, text, writeByteOrderMark, function (path, data, writeByteOrderMark) { return host.writeFile(path, data, writeByteOrderMark); }, function (path) { return host.createDirectory(path); }, function (path) { return host.directoryExists(path); });\n ts.performance.mark(\"afterIOWrite\");\n ts.performance.measure(\"I/O Write\", \"beforeIOWrite\", \"afterIOWrite\");\n }\n catch (e) {\n if (onError) {\n onError(e.message);\n }\n }\n }\n }\n ts.createCompilerHostFromProgramHost = createCompilerHostFromProgramHost;\n function setGetSourceFileAsHashVersioned(compilerHost, host) {\n var originalGetSourceFile = compilerHost.getSourceFile;\n var computeHash = ts.maybeBind(host, host.createHash) || ts.generateDjb2Hash;\n compilerHost.getSourceFile = function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = originalGetSourceFile.call.apply(originalGetSourceFile, __spreadArray([compilerHost], args, false));\n if (result) {\n result.version = computeHash(result.text);\n }\n return result;\n };\n }\n ts.setGetSourceFileAsHashVersioned = setGetSourceFileAsHashVersioned;\n /**\n * Creates the watch compiler host that can be extended with config file or root file names and options host\n */\n function createProgramHost(system, createProgram) {\n var getDefaultLibLocation = ts.memoize(function () { return ts.getDirectoryPath(ts.normalizePath(system.getExecutingFilePath())); });\n return {\n useCaseSensitiveFileNames: function () { return system.useCaseSensitiveFileNames; },\n getNewLine: function () { return system.newLine; },\n getCurrentDirectory: ts.memoize(function () { return system.getCurrentDirectory(); }),\n getDefaultLibLocation: getDefaultLibLocation,\n getDefaultLibFileName: function (options) { return ts.combinePaths(getDefaultLibLocation(), ts.getDefaultLibFileName(options)); },\n fileExists: function (path) { return system.fileExists(path); },\n readFile: function (path, encoding) { return system.readFile(path, encoding); },\n directoryExists: function (path) { return system.directoryExists(path); },\n getDirectories: function (path) { return system.getDirectories(path); },\n readDirectory: function (path, extensions, exclude, include, depth) { return system.readDirectory(path, extensions, exclude, include, depth); },\n realpath: ts.maybeBind(system, system.realpath),\n getEnvironmentVariable: ts.maybeBind(system, system.getEnvironmentVariable),\n trace: function (s) { return system.write(s + system.newLine); },\n createDirectory: function (path) { return system.createDirectory(path); },\n writeFile: function (path, data, writeByteOrderMark) { return system.writeFile(path, data, writeByteOrderMark); },\n createHash: ts.maybeBind(system, system.createHash),\n createProgram: createProgram || ts.createEmitAndSemanticDiagnosticsBuilderProgram,\n disableUseFileVersionAsSignature: system.disableUseFileVersionAsSignature,\n };\n }\n ts.createProgramHost = createProgramHost;\n /**\n * Creates the watch compiler host that can be extended with config file or root file names and options host\n */\n function createWatchCompilerHost(system, createProgram, reportDiagnostic, reportWatchStatus) {\n if (system === void 0) { system = ts.sys; }\n var write = function (s) { return system.write(s + system.newLine); };\n var result = createProgramHost(system, createProgram);\n ts.copyProperties(result, createWatchHost(system, reportWatchStatus));\n result.afterProgramCreate = function (builderProgram) {\n var compilerOptions = builderProgram.getCompilerOptions();\n var newLine = ts.getNewLineCharacter(compilerOptions, function () { return system.newLine; });\n emitFilesAndReportErrors(builderProgram, reportDiagnostic, write, function (errorCount) { return result.onWatchStatusChange(ts.createCompilerDiagnostic(getWatchErrorSummaryDiagnosticMessage(errorCount), errorCount), newLine, compilerOptions, errorCount); });\n };\n return result;\n }\n /**\n * Report error and exit\n */\n function reportUnrecoverableDiagnostic(system, reportDiagnostic, diagnostic) {\n reportDiagnostic(diagnostic);\n system.exit(ts.ExitStatus.DiagnosticsPresent_OutputsSkipped);\n }\n /**\n * Creates the watch compiler host from system for config file in watch mode\n */\n function createWatchCompilerHostOfConfigFile(_a) {\n var configFileName = _a.configFileName, optionsToExtend = _a.optionsToExtend, watchOptionsToExtend = _a.watchOptionsToExtend, extraFileExtensions = _a.extraFileExtensions, system = _a.system, createProgram = _a.createProgram, reportDiagnostic = _a.reportDiagnostic, reportWatchStatus = _a.reportWatchStatus;\n var diagnosticReporter = reportDiagnostic || createDiagnosticReporter(system);\n var host = createWatchCompilerHost(system, createProgram, diagnosticReporter, reportWatchStatus);\n host.onUnRecoverableConfigFileDiagnostic = function (diagnostic) { return reportUnrecoverableDiagnostic(system, diagnosticReporter, diagnostic); };\n host.configFileName = configFileName;\n host.optionsToExtend = optionsToExtend;\n host.watchOptionsToExtend = watchOptionsToExtend;\n host.extraFileExtensions = extraFileExtensions;\n return host;\n }\n ts.createWatchCompilerHostOfConfigFile = createWatchCompilerHostOfConfigFile;\n /**\n * Creates the watch compiler host from system for compiling root files and options in watch mode\n */\n function createWatchCompilerHostOfFilesAndCompilerOptions(_a) {\n var rootFiles = _a.rootFiles, options = _a.options, watchOptions = _a.watchOptions, projectReferences = _a.projectReferences, system = _a.system, createProgram = _a.createProgram, reportDiagnostic = _a.reportDiagnostic, reportWatchStatus = _a.reportWatchStatus;\n var host = createWatchCompilerHost(system, createProgram, reportDiagnostic || createDiagnosticReporter(system), reportWatchStatus);\n host.rootFiles = rootFiles;\n host.options = options;\n host.watchOptions = watchOptions;\n host.projectReferences = projectReferences;\n return host;\n }\n ts.createWatchCompilerHostOfFilesAndCompilerOptions = createWatchCompilerHostOfFilesAndCompilerOptions;\n function performIncrementalCompilation(input) {\n var system = input.system || ts.sys;\n var host = input.host || (input.host = ts.createIncrementalCompilerHost(input.options, system));\n var builderProgram = ts.createIncrementalProgram(input);\n var exitStatus = emitFilesAndReportErrorsAndGetExitStatus(builderProgram, input.reportDiagnostic || createDiagnosticReporter(system), function (s) { return host.trace && host.trace(s); }, input.reportErrorSummary || input.options.pretty ? function (errorCount) { return system.write(getErrorSummaryText(errorCount, system.newLine)); } : undefined);\n if (input.afterProgramEmitAndDiagnostics)\n input.afterProgramEmitAndDiagnostics(builderProgram);\n return exitStatus;\n }\n ts.performIncrementalCompilation = performIncrementalCompilation;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function readBuilderProgram(compilerOptions, host) {\n if (ts.outFile(compilerOptions))\n return undefined;\n var buildInfoPath = ts.getTsBuildInfoEmitOutputFilePath(compilerOptions);\n if (!buildInfoPath)\n return undefined;\n var content = host.readFile(buildInfoPath);\n if (!content)\n return undefined;\n var buildInfo = ts.getBuildInfo(content);\n if (buildInfo.version !== ts.version)\n return undefined;\n if (!buildInfo.program)\n return undefined;\n return ts.createBuildProgramUsingProgramBuildInfo(buildInfo.program, buildInfoPath, host);\n }\n ts.readBuilderProgram = readBuilderProgram;\n function createIncrementalCompilerHost(options, system) {\n if (system === void 0) { system = ts.sys; }\n var host = ts.createCompilerHostWorker(options, /*setParentNodes*/ undefined, system);\n host.createHash = ts.maybeBind(system, system.createHash);\n host.disableUseFileVersionAsSignature = system.disableUseFileVersionAsSignature;\n ts.setGetSourceFileAsHashVersioned(host, system);\n ts.changeCompilerHostLikeToUseCache(host, function (fileName) { return ts.toPath(fileName, host.getCurrentDirectory(), host.getCanonicalFileName); });\n return host;\n }\n ts.createIncrementalCompilerHost = createIncrementalCompilerHost;\n function createIncrementalProgram(_a) {\n var rootNames = _a.rootNames, options = _a.options, configFileParsingDiagnostics = _a.configFileParsingDiagnostics, projectReferences = _a.projectReferences, host = _a.host, createProgram = _a.createProgram;\n host = host || createIncrementalCompilerHost(options);\n createProgram = createProgram || ts.createEmitAndSemanticDiagnosticsBuilderProgram;\n var oldProgram = readBuilderProgram(options, host);\n return createProgram(rootNames, options, host, oldProgram, configFileParsingDiagnostics, projectReferences);\n }\n ts.createIncrementalProgram = createIncrementalProgram;\n function createWatchCompilerHost(rootFilesOrConfigFileName, options, system, createProgram, reportDiagnostic, reportWatchStatus, projectReferencesOrWatchOptionsToExtend, watchOptionsOrExtraFileExtensions) {\n if (ts.isArray(rootFilesOrConfigFileName)) {\n return ts.createWatchCompilerHostOfFilesAndCompilerOptions({\n rootFiles: rootFilesOrConfigFileName,\n options: options,\n watchOptions: watchOptionsOrExtraFileExtensions,\n projectReferences: projectReferencesOrWatchOptionsToExtend,\n system: system,\n createProgram: createProgram,\n reportDiagnostic: reportDiagnostic,\n reportWatchStatus: reportWatchStatus,\n });\n }\n else {\n return ts.createWatchCompilerHostOfConfigFile({\n configFileName: rootFilesOrConfigFileName,\n optionsToExtend: options,\n watchOptionsToExtend: projectReferencesOrWatchOptionsToExtend,\n extraFileExtensions: watchOptionsOrExtraFileExtensions,\n system: system,\n createProgram: createProgram,\n reportDiagnostic: reportDiagnostic,\n reportWatchStatus: reportWatchStatus,\n });\n }\n }\n ts.createWatchCompilerHost = createWatchCompilerHost;\n function createWatchProgram(host) {\n var builderProgram;\n var reloadLevel; // level to indicate if the program needs to be reloaded from config file/just filenames etc\n var missingFilesMap; // Map of file watchers for the missing files\n var packageJsonMap; // map of watchers for package json files used in module resolution\n var watchedWildcardDirectories; // map of watchers for the wild card directories in the config file\n var timerToUpdateProgram; // timer callback to recompile the program\n var timerToInvalidateFailedLookupResolutions; // timer callback to invalidate resolutions for changes in failed lookup locations\n var parsedConfigs; // Parsed commandline and watching cached for referenced projects\n var sharedExtendedConfigFileWatchers; // Map of file watchers for extended files, shared between different referenced projects\n var extendedConfigCache = host.extendedConfigCache; // Cache for extended config evaluation\n var changesAffectResolution = false; // Flag for indicating non-config changes affect module resolution\n var sourceFilesCache = new ts.Map(); // Cache that stores the source file and version info\n var missingFilePathsRequestedForRelease; // These paths are held temporarily so that we can remove the entry from source file cache if the file is not tracked by missing files\n var hasChangedCompilerOptions = false; // True if the compiler options have changed between compilations\n var useCaseSensitiveFileNames = host.useCaseSensitiveFileNames();\n var currentDirectory = host.getCurrentDirectory();\n var configFileName = host.configFileName, _a = host.optionsToExtend, optionsToExtendForConfigFile = _a === void 0 ? {} : _a, watchOptionsToExtend = host.watchOptionsToExtend, extraFileExtensions = host.extraFileExtensions, createProgram = host.createProgram;\n var rootFileNames = host.rootFiles, compilerOptions = host.options, watchOptions = host.watchOptions, projectReferences = host.projectReferences;\n var wildcardDirectories;\n var configFileParsingDiagnostics;\n var canConfigFileJsonReportNoInputFiles = false;\n var hasChangedConfigFileParsingErrors = false;\n var cachedDirectoryStructureHost = configFileName === undefined ? undefined : ts.createCachedDirectoryStructureHost(host, currentDirectory, useCaseSensitiveFileNames);\n var directoryStructureHost = cachedDirectoryStructureHost || host;\n var parseConfigFileHost = ts.parseConfigHostFromCompilerHostLike(host, directoryStructureHost);\n // From tsc we want to get already parsed result and hence check for rootFileNames\n var newLine = updateNewLine();\n if (configFileName && host.configFileParsingResult) {\n setConfigFileParsingResult(host.configFileParsingResult);\n newLine = updateNewLine();\n }\n reportWatchDiagnostic(ts.Diagnostics.Starting_compilation_in_watch_mode);\n if (configFileName && !host.configFileParsingResult) {\n newLine = ts.getNewLineCharacter(optionsToExtendForConfigFile, function () { return host.getNewLine(); });\n ts.Debug.assert(!rootFileNames);\n parseConfigFile();\n newLine = updateNewLine();\n }\n var _b = ts.createWatchFactory(host, compilerOptions), watchFile = _b.watchFile, watchDirectory = _b.watchDirectory, writeLog = _b.writeLog;\n var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n writeLog(\"Current directory: \" + currentDirectory + \" CaseSensitiveFileNames: \" + useCaseSensitiveFileNames);\n var configFileWatcher;\n if (configFileName) {\n configFileWatcher = watchFile(configFileName, scheduleProgramReload, ts.PollingInterval.High, watchOptions, ts.WatchType.ConfigFile);\n }\n var compilerHost = ts.createCompilerHostFromProgramHost(host, function () { return compilerOptions; }, directoryStructureHost);\n ts.setGetSourceFileAsHashVersioned(compilerHost, host);\n // Members for CompilerHost\n var getNewSourceFile = compilerHost.getSourceFile;\n compilerHost.getSourceFile = function (fileName) {\n var args = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n args[_i - 1] = arguments[_i];\n }\n return getVersionedSourceFileByPath.apply(void 0, __spreadArray([fileName, toPath(fileName)], args, false));\n };\n compilerHost.getSourceFileByPath = getVersionedSourceFileByPath;\n compilerHost.getNewLine = function () { return newLine; };\n compilerHost.fileExists = fileExists;\n compilerHost.onReleaseOldSourceFile = onReleaseOldSourceFile;\n compilerHost.onReleaseParsedCommandLine = onReleaseParsedCommandLine;\n // Members for ResolutionCacheHost\n compilerHost.toPath = toPath;\n compilerHost.getCompilationSettings = function () { return compilerOptions; };\n compilerHost.useSourceOfProjectReferenceRedirect = ts.maybeBind(host, host.useSourceOfProjectReferenceRedirect);\n compilerHost.watchDirectoryOfFailedLookupLocation = function (dir, cb, flags) { return watchDirectory(dir, cb, flags, watchOptions, ts.WatchType.FailedLookupLocations); };\n compilerHost.watchTypeRootsDirectory = function (dir, cb, flags) { return watchDirectory(dir, cb, flags, watchOptions, ts.WatchType.TypeRoots); };\n compilerHost.getCachedDirectoryStructureHost = function () { return cachedDirectoryStructureHost; };\n compilerHost.scheduleInvalidateResolutionsOfFailedLookupLocations = scheduleInvalidateResolutionsOfFailedLookupLocations;\n compilerHost.onInvalidatedResolution = scheduleProgramUpdate;\n compilerHost.onChangedAutomaticTypeDirectiveNames = scheduleProgramUpdate;\n compilerHost.fileIsOpen = ts.returnFalse;\n compilerHost.getCurrentProgram = getCurrentProgram;\n compilerHost.writeLog = writeLog;\n compilerHost.getParsedCommandLine = getParsedCommandLine;\n // Cache for the module resolution\n var resolutionCache = ts.createResolutionCache(compilerHost, configFileName ?\n ts.getDirectoryPath(ts.getNormalizedAbsolutePath(configFileName, currentDirectory)) :\n currentDirectory, \n /*logChangesWhenResolvingModule*/ false);\n // Resolve module using host module resolution strategy if provided otherwise use resolution cache to resolve module names\n compilerHost.resolveModuleNames = host.resolveModuleNames ?\n (function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return host.resolveModuleNames.apply(host, args);\n }) :\n (function (moduleNames, containingFile, reusedNames, redirectedReference) { return resolutionCache.resolveModuleNames(moduleNames, containingFile, reusedNames, redirectedReference); });\n compilerHost.resolveTypeReferenceDirectives = host.resolveTypeReferenceDirectives ?\n (function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return host.resolveTypeReferenceDirectives.apply(host, args);\n }) :\n (function (typeDirectiveNames, containingFile, redirectedReference) { return resolutionCache.resolveTypeReferenceDirectives(typeDirectiveNames, containingFile, redirectedReference); });\n var userProvidedResolution = !!host.resolveModuleNames || !!host.resolveTypeReferenceDirectives;\n builderProgram = readBuilderProgram(compilerOptions, compilerHost);\n synchronizeProgram();\n // Update the wild card directory watch\n watchConfigFileWildCardDirectories();\n // Update extended config file watch\n if (configFileName)\n updateExtendedConfigFilesWatches(toPath(configFileName), compilerOptions, watchOptions, ts.WatchType.ExtendedConfigFile);\n return configFileName ?\n { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, close: close } :\n { getCurrentProgram: getCurrentBuilderProgram, getProgram: updateProgram, updateRootFileNames: updateRootFileNames, close: close };\n function close() {\n clearInvalidateResolutionsOfFailedLookupLocations();\n resolutionCache.clear();\n ts.clearMap(sourceFilesCache, function (value) {\n if (value && value.fileWatcher) {\n value.fileWatcher.close();\n value.fileWatcher = undefined;\n }\n });\n if (configFileWatcher) {\n configFileWatcher.close();\n configFileWatcher = undefined;\n }\n extendedConfigCache === null || extendedConfigCache === void 0 ? void 0 : extendedConfigCache.clear();\n extendedConfigCache = undefined;\n if (sharedExtendedConfigFileWatchers) {\n ts.clearMap(sharedExtendedConfigFileWatchers, ts.closeFileWatcherOf);\n sharedExtendedConfigFileWatchers = undefined;\n }\n if (watchedWildcardDirectories) {\n ts.clearMap(watchedWildcardDirectories, ts.closeFileWatcherOf);\n watchedWildcardDirectories = undefined;\n }\n if (missingFilesMap) {\n ts.clearMap(missingFilesMap, ts.closeFileWatcher);\n missingFilesMap = undefined;\n }\n if (parsedConfigs) {\n ts.clearMap(parsedConfigs, function (config) {\n var _a;\n (_a = config.watcher) === null || _a === void 0 ? void 0 : _a.close();\n config.watcher = undefined;\n if (config.watchedDirectories)\n ts.clearMap(config.watchedDirectories, ts.closeFileWatcherOf);\n config.watchedDirectories = undefined;\n });\n parsedConfigs = undefined;\n }\n if (packageJsonMap) {\n ts.clearMap(packageJsonMap, ts.closeFileWatcher);\n packageJsonMap = undefined;\n }\n }\n function getCurrentBuilderProgram() {\n return builderProgram;\n }\n function getCurrentProgram() {\n return builderProgram && builderProgram.getProgramOrUndefined();\n }\n function synchronizeProgram() {\n writeLog(\"Synchronizing program\");\n clearInvalidateResolutionsOfFailedLookupLocations();\n var program = getCurrentBuilderProgram();\n if (hasChangedCompilerOptions) {\n newLine = updateNewLine();\n if (program && (changesAffectResolution || ts.changesAffectModuleResolution(program.getCompilerOptions(), compilerOptions))) {\n resolutionCache.clear();\n }\n }\n // All resolutions are invalid if user provided resolutions\n var hasInvalidatedResolution = resolutionCache.createHasInvalidatedResolution(userProvidedResolution || changesAffectResolution);\n if (ts.isProgramUptoDate(getCurrentProgram(), rootFileNames, compilerOptions, getSourceVersion, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {\n if (hasChangedConfigFileParsingErrors) {\n builderProgram = createProgram(/*rootNames*/ undefined, /*options*/ undefined, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);\n hasChangedConfigFileParsingErrors = false;\n }\n }\n else {\n createNewProgram(hasInvalidatedResolution);\n }\n changesAffectResolution = false; // reset for next sync\n if (host.afterProgramCreate && program !== builderProgram) {\n host.afterProgramCreate(builderProgram);\n }\n return builderProgram;\n }\n function createNewProgram(hasInvalidatedResolution) {\n // Compile the program\n writeLog(\"CreatingProgramWith::\");\n writeLog(\" roots: \" + JSON.stringify(rootFileNames));\n writeLog(\" options: \" + JSON.stringify(compilerOptions));\n if (projectReferences)\n writeLog(\" projectReferences: \" + JSON.stringify(projectReferences));\n var needsUpdateInTypeRootWatch = hasChangedCompilerOptions || !getCurrentProgram();\n hasChangedCompilerOptions = false;\n hasChangedConfigFileParsingErrors = false;\n resolutionCache.startCachingPerDirectoryResolution();\n compilerHost.hasInvalidatedResolution = hasInvalidatedResolution;\n compilerHost.hasChangedAutomaticTypeDirectiveNames = hasChangedAutomaticTypeDirectiveNames;\n builderProgram = createProgram(rootFileNames, compilerOptions, compilerHost, builderProgram, configFileParsingDiagnostics, projectReferences);\n // map package json cache entries to their realpaths so we don't try to watch across symlinks\n var packageCacheEntries = ts.map(resolutionCache.getModuleResolutionCache().getPackageJsonInfoCache().entries(), function (_a) {\n var path = _a[0], data = _a[1];\n return [compilerHost.realpath ? toPath(compilerHost.realpath(path)) : path, data];\n });\n resolutionCache.finishCachingPerDirectoryResolution();\n // Update watches\n ts.updateMissingFilePathsWatch(builderProgram.getProgram(), missingFilesMap || (missingFilesMap = new ts.Map()), watchMissingFilePath);\n ts.updatePackageJsonWatch(packageCacheEntries, packageJsonMap || (packageJsonMap = new ts.Map()), watchPackageJsonLookupPath);\n if (needsUpdateInTypeRootWatch) {\n resolutionCache.updateTypeRootsWatch();\n }\n if (missingFilePathsRequestedForRelease) {\n // These are the paths that program creater told us as not in use any more but were missing on the disk.\n // We didnt remove the entry for them from sourceFiles cache so that we dont have to do File IO,\n // if there is already watcher for it (for missing files)\n // At this point our watches were updated, hence now we know that these paths are not tracked and need to be removed\n // so that at later time we have correct result of their presence\n for (var _i = 0, missingFilePathsRequestedForRelease_1 = missingFilePathsRequestedForRelease; _i < missingFilePathsRequestedForRelease_1.length; _i++) {\n var missingFilePath = missingFilePathsRequestedForRelease_1[_i];\n if (!missingFilesMap.has(missingFilePath)) {\n sourceFilesCache.delete(missingFilePath);\n }\n }\n missingFilePathsRequestedForRelease = undefined;\n }\n }\n function updateRootFileNames(files) {\n ts.Debug.assert(!configFileName, \"Cannot update root file names with config file watch mode\");\n rootFileNames = files;\n scheduleProgramUpdate();\n }\n function updateNewLine() {\n return ts.getNewLineCharacter(compilerOptions || optionsToExtendForConfigFile, function () { return host.getNewLine(); });\n }\n function toPath(fileName) {\n return ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n }\n function isFileMissingOnHost(hostSourceFile) {\n return typeof hostSourceFile === \"boolean\";\n }\n function isFilePresenceUnknownOnHost(hostSourceFile) {\n return typeof hostSourceFile.version === \"boolean\";\n }\n function fileExists(fileName) {\n var path = toPath(fileName);\n // If file is missing on host from cache, we can definitely say file doesnt exist\n // otherwise we need to ensure from the disk\n if (isFileMissingOnHost(sourceFilesCache.get(path))) {\n return false;\n }\n return directoryStructureHost.fileExists(fileName);\n }\n function getVersionedSourceFileByPath(fileName, path, languageVersion, onError, shouldCreateNewSourceFile) {\n var hostSourceFile = sourceFilesCache.get(path);\n // No source file on the host\n if (isFileMissingOnHost(hostSourceFile)) {\n return undefined;\n }\n // Create new source file if requested or the versions dont match\n if (hostSourceFile === undefined || shouldCreateNewSourceFile || isFilePresenceUnknownOnHost(hostSourceFile)) {\n var sourceFile = getNewSourceFile(fileName, languageVersion, onError);\n if (hostSourceFile) {\n if (sourceFile) {\n // Set the source file and create file watcher now that file was present on the disk\n hostSourceFile.sourceFile = sourceFile;\n hostSourceFile.version = sourceFile.version;\n if (!hostSourceFile.fileWatcher) {\n hostSourceFile.fileWatcher = watchFilePath(path, fileName, onSourceFileChange, ts.PollingInterval.Low, watchOptions, ts.WatchType.SourceFile);\n }\n }\n else {\n // There is no source file on host any more, close the watch, missing file paths will track it\n if (hostSourceFile.fileWatcher) {\n hostSourceFile.fileWatcher.close();\n }\n sourceFilesCache.set(path, false);\n }\n }\n else {\n if (sourceFile) {\n var fileWatcher = watchFilePath(path, fileName, onSourceFileChange, ts.PollingInterval.Low, watchOptions, ts.WatchType.SourceFile);\n sourceFilesCache.set(path, { sourceFile: sourceFile, version: sourceFile.version, fileWatcher: fileWatcher });\n }\n else {\n sourceFilesCache.set(path, false);\n }\n }\n return sourceFile;\n }\n return hostSourceFile.sourceFile;\n }\n function nextSourceFileVersion(path) {\n var hostSourceFile = sourceFilesCache.get(path);\n if (hostSourceFile !== undefined) {\n if (isFileMissingOnHost(hostSourceFile)) {\n // The next version, lets set it as presence unknown file\n sourceFilesCache.set(path, { version: false });\n }\n else {\n hostSourceFile.version = false;\n }\n }\n }\n function getSourceVersion(path) {\n var hostSourceFile = sourceFilesCache.get(path);\n return !hostSourceFile || !hostSourceFile.version ? undefined : hostSourceFile.version;\n }\n function onReleaseOldSourceFile(oldSourceFile, _oldOptions, hasSourceFileByPath) {\n var hostSourceFileInfo = sourceFilesCache.get(oldSourceFile.resolvedPath);\n // If this is the source file thats in the cache and new program doesnt need it,\n // remove the cached entry.\n // Note we arent deleting entry if file became missing in new program or\n // there was version update and new source file was created.\n if (hostSourceFileInfo !== undefined) {\n // record the missing file paths so they can be removed later if watchers arent tracking them\n if (isFileMissingOnHost(hostSourceFileInfo)) {\n (missingFilePathsRequestedForRelease || (missingFilePathsRequestedForRelease = [])).push(oldSourceFile.path);\n }\n else if (hostSourceFileInfo.sourceFile === oldSourceFile) {\n if (hostSourceFileInfo.fileWatcher) {\n hostSourceFileInfo.fileWatcher.close();\n }\n sourceFilesCache.delete(oldSourceFile.resolvedPath);\n if (!hasSourceFileByPath) {\n resolutionCache.removeResolutionsOfFile(oldSourceFile.path);\n }\n }\n }\n }\n function reportWatchDiagnostic(message) {\n if (host.onWatchStatusChange) {\n host.onWatchStatusChange(ts.createCompilerDiagnostic(message), newLine, compilerOptions || optionsToExtendForConfigFile);\n }\n }\n function hasChangedAutomaticTypeDirectiveNames() {\n return resolutionCache.hasChangedAutomaticTypeDirectiveNames();\n }\n function clearInvalidateResolutionsOfFailedLookupLocations() {\n if (!timerToInvalidateFailedLookupResolutions)\n return false;\n host.clearTimeout(timerToInvalidateFailedLookupResolutions);\n timerToInvalidateFailedLookupResolutions = undefined;\n return true;\n }\n function scheduleInvalidateResolutionsOfFailedLookupLocations() {\n if (!host.setTimeout || !host.clearTimeout) {\n return resolutionCache.invalidateResolutionsOfFailedLookupLocations();\n }\n var pending = clearInvalidateResolutionsOfFailedLookupLocations();\n writeLog(\"Scheduling invalidateFailedLookup\" + (pending ? \", Cancelled earlier one\" : \"\"));\n timerToInvalidateFailedLookupResolutions = host.setTimeout(invalidateResolutionsOfFailedLookup, 250);\n }\n function invalidateResolutionsOfFailedLookup() {\n timerToInvalidateFailedLookupResolutions = undefined;\n if (resolutionCache.invalidateResolutionsOfFailedLookupLocations()) {\n scheduleProgramUpdate();\n }\n }\n // Upon detecting a file change, wait for 250ms and then perform a recompilation. This gives batch\n // operations (such as saving all modified files in an editor) a chance to complete before we kick\n // off a new compilation.\n function scheduleProgramUpdate() {\n if (!host.setTimeout || !host.clearTimeout) {\n return;\n }\n if (timerToUpdateProgram) {\n host.clearTimeout(timerToUpdateProgram);\n }\n writeLog(\"Scheduling update\");\n timerToUpdateProgram = host.setTimeout(updateProgramWithWatchStatus, 250);\n }\n function scheduleProgramReload() {\n ts.Debug.assert(!!configFileName);\n reloadLevel = ts.ConfigFileProgramReloadLevel.Full;\n scheduleProgramUpdate();\n }\n function updateProgramWithWatchStatus() {\n timerToUpdateProgram = undefined;\n reportWatchDiagnostic(ts.Diagnostics.File_change_detected_Starting_incremental_compilation);\n updateProgram();\n }\n function updateProgram() {\n switch (reloadLevel) {\n case ts.ConfigFileProgramReloadLevel.Partial:\n ts.perfLogger.logStartUpdateProgram(\"PartialConfigReload\");\n reloadFileNamesFromConfigFile();\n break;\n case ts.ConfigFileProgramReloadLevel.Full:\n ts.perfLogger.logStartUpdateProgram(\"FullConfigReload\");\n reloadConfigFile();\n break;\n default:\n ts.perfLogger.logStartUpdateProgram(\"SynchronizeProgram\");\n synchronizeProgram();\n break;\n }\n ts.perfLogger.logStopUpdateProgram(\"Done\");\n return getCurrentBuilderProgram();\n }\n function reloadFileNamesFromConfigFile() {\n writeLog(\"Reloading new file names and options\");\n rootFileNames = ts.getFileNamesFromConfigSpecs(compilerOptions.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost, extraFileExtensions);\n if (ts.updateErrorForNoInputFiles(rootFileNames, ts.getNormalizedAbsolutePath(configFileName, currentDirectory), compilerOptions.configFile.configFileSpecs, configFileParsingDiagnostics, canConfigFileJsonReportNoInputFiles)) {\n hasChangedConfigFileParsingErrors = true;\n }\n // Update the program\n synchronizeProgram();\n }\n function reloadConfigFile() {\n writeLog(\"Reloading config file: \" + configFileName);\n reloadLevel = ts.ConfigFileProgramReloadLevel.None;\n if (cachedDirectoryStructureHost) {\n cachedDirectoryStructureHost.clearCache();\n }\n parseConfigFile();\n hasChangedCompilerOptions = true;\n synchronizeProgram();\n // Update the wild card directory watch\n watchConfigFileWildCardDirectories();\n // Update extended config file watch\n updateExtendedConfigFilesWatches(toPath(configFileName), compilerOptions, watchOptions, ts.WatchType.ExtendedConfigFile);\n }\n function parseConfigFile() {\n setConfigFileParsingResult(ts.getParsedCommandLineOfConfigFile(configFileName, optionsToExtendForConfigFile, parseConfigFileHost, extendedConfigCache || (extendedConfigCache = new ts.Map()), watchOptionsToExtend, extraFileExtensions)); // TODO: GH#18217\n }\n function setConfigFileParsingResult(configFileParseResult) {\n rootFileNames = configFileParseResult.fileNames;\n compilerOptions = configFileParseResult.options;\n watchOptions = configFileParseResult.watchOptions;\n projectReferences = configFileParseResult.projectReferences;\n wildcardDirectories = configFileParseResult.wildcardDirectories;\n configFileParsingDiagnostics = ts.getConfigFileParsingDiagnostics(configFileParseResult).slice();\n canConfigFileJsonReportNoInputFiles = ts.canJsonReportNoInputFiles(configFileParseResult.raw);\n hasChangedConfigFileParsingErrors = true;\n }\n function getParsedCommandLine(configFileName) {\n var configPath = toPath(configFileName);\n var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(configPath);\n if (config) {\n if (!config.reloadLevel)\n return config.parsedCommandLine;\n // With host implementing getParsedCommandLine we cant just update file names\n if (config.parsedCommandLine && config.reloadLevel === ts.ConfigFileProgramReloadLevel.Partial && !host.getParsedCommandLine) {\n writeLog(\"Reloading new file names and options\");\n var fileNames = ts.getFileNamesFromConfigSpecs(config.parsedCommandLine.options.configFile.configFileSpecs, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), compilerOptions, parseConfigFileHost);\n config.parsedCommandLine = __assign(__assign({}, config.parsedCommandLine), { fileNames: fileNames });\n config.reloadLevel = undefined;\n return config.parsedCommandLine;\n }\n }\n writeLog(\"Loading config file: \" + configFileName);\n var parsedCommandLine = host.getParsedCommandLine ?\n host.getParsedCommandLine(configFileName) :\n getParsedCommandLineFromConfigFileHost(configFileName);\n if (config) {\n config.parsedCommandLine = parsedCommandLine;\n config.reloadLevel = undefined;\n }\n else {\n (parsedConfigs || (parsedConfigs = new ts.Map())).set(configPath, config = { parsedCommandLine: parsedCommandLine });\n }\n watchReferencedProject(configFileName, configPath, config);\n return parsedCommandLine;\n }\n function getParsedCommandLineFromConfigFileHost(configFileName) {\n // Ignore the file absent errors\n var onUnRecoverableConfigFileDiagnostic = parseConfigFileHost.onUnRecoverableConfigFileDiagnostic;\n parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = ts.noop;\n var parsedCommandLine = ts.getParsedCommandLineOfConfigFile(configFileName, \n /*optionsToExtend*/ undefined, parseConfigFileHost, extendedConfigCache || (extendedConfigCache = new ts.Map()), watchOptionsToExtend);\n parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = onUnRecoverableConfigFileDiagnostic;\n return parsedCommandLine;\n }\n function onReleaseParsedCommandLine(fileName) {\n var _a;\n var path = toPath(fileName);\n var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(path);\n if (!config)\n return;\n parsedConfigs.delete(path);\n if (config.watchedDirectories)\n ts.clearMap(config.watchedDirectories, ts.closeFileWatcherOf);\n (_a = config.watcher) === null || _a === void 0 ? void 0 : _a.close();\n ts.clearSharedExtendedConfigFileWatcher(path, sharedExtendedConfigFileWatchers);\n }\n function watchFilePath(path, file, callback, pollingInterval, options, watchType) {\n return watchFile(file, function (fileName, eventKind) { return callback(fileName, eventKind, path); }, pollingInterval, options, watchType);\n }\n function onSourceFileChange(fileName, eventKind, path) {\n updateCachedSystemWithFile(fileName, path, eventKind);\n // Update the source file cache\n if (eventKind === ts.FileWatcherEventKind.Deleted && sourceFilesCache.has(path)) {\n resolutionCache.invalidateResolutionOfFile(path);\n }\n nextSourceFileVersion(path);\n // Update the program\n scheduleProgramUpdate();\n }\n function updateCachedSystemWithFile(fileName, path, eventKind) {\n if (cachedDirectoryStructureHost) {\n cachedDirectoryStructureHost.addOrDeleteFile(fileName, path, eventKind);\n }\n }\n function watchMissingFilePath(missingFilePath) {\n // If watching missing referenced config file, we are already watching it so no need for separate watcher\n return (parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.has(missingFilePath)) ?\n ts.noopFileWatcher :\n watchFilePath(missingFilePath, missingFilePath, onMissingFileChange, ts.PollingInterval.Medium, watchOptions, ts.WatchType.MissingFile);\n }\n function watchPackageJsonLookupPath(packageJsonPath) {\n // If the package.json is pulled into the compilation itself (eg, via json imports), don't add a second watcher here\n return sourceFilesCache.has(packageJsonPath) ?\n ts.noopFileWatcher :\n watchFilePath(packageJsonPath, packageJsonPath, onPackageJsonChange, ts.PollingInterval.High, watchOptions, ts.WatchType.PackageJson);\n }\n function onPackageJsonChange(fileName, eventKind, path) {\n updateCachedSystemWithFile(fileName, path, eventKind);\n // package.json changes invalidate module resolution and can change the set of loaded files\n // so if we witness a change to one, we have to do a full reload\n reloadLevel = ts.ConfigFileProgramReloadLevel.Full;\n changesAffectResolution = true;\n // Update the program\n scheduleProgramUpdate();\n }\n function onMissingFileChange(fileName, eventKind, missingFilePath) {\n updateCachedSystemWithFile(fileName, missingFilePath, eventKind);\n if (eventKind === ts.FileWatcherEventKind.Created && missingFilesMap.has(missingFilePath)) {\n missingFilesMap.get(missingFilePath).close();\n missingFilesMap.delete(missingFilePath);\n // Delete the entry in the source files cache so that new source file is created\n nextSourceFileVersion(missingFilePath);\n // When a missing file is created, we should update the graph.\n scheduleProgramUpdate();\n }\n }\n function watchConfigFileWildCardDirectories() {\n if (wildcardDirectories) {\n ts.updateWatchingWildcardDirectories(watchedWildcardDirectories || (watchedWildcardDirectories = new ts.Map()), new ts.Map(ts.getEntries(wildcardDirectories)), watchWildcardDirectory);\n }\n else if (watchedWildcardDirectories) {\n ts.clearMap(watchedWildcardDirectories, ts.closeFileWatcherOf);\n }\n }\n function watchWildcardDirectory(directory, flags) {\n return watchDirectory(directory, function (fileOrDirectory) {\n ts.Debug.assert(!!configFileName);\n var fileOrDirectoryPath = toPath(fileOrDirectory);\n // Since the file existence changed, update the sourceFiles cache\n if (cachedDirectoryStructureHost) {\n cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n }\n nextSourceFileVersion(fileOrDirectoryPath);\n if (ts.isIgnoredFileFromWildCardWatching({\n watchedDirPath: toPath(directory),\n fileOrDirectory: fileOrDirectory,\n fileOrDirectoryPath: fileOrDirectoryPath,\n configFileName: configFileName,\n extraFileExtensions: extraFileExtensions,\n options: compilerOptions,\n program: getCurrentBuilderProgram() || rootFileNames,\n currentDirectory: currentDirectory,\n useCaseSensitiveFileNames: useCaseSensitiveFileNames,\n writeLog: writeLog,\n toPath: toPath,\n }))\n return;\n // Reload is pending, do the reload\n if (reloadLevel !== ts.ConfigFileProgramReloadLevel.Full) {\n reloadLevel = ts.ConfigFileProgramReloadLevel.Partial;\n // Schedule Update the program\n scheduleProgramUpdate();\n }\n }, flags, watchOptions, ts.WatchType.WildcardDirectory);\n }\n function updateExtendedConfigFilesWatches(forProjectPath, options, watchOptions, watchType) {\n ts.updateSharedExtendedConfigFileWatcher(forProjectPath, options, sharedExtendedConfigFileWatchers || (sharedExtendedConfigFileWatchers = new ts.Map()), function (extendedConfigFileName, extendedConfigFilePath) { return watchFile(extendedConfigFileName, function (_fileName, eventKind) {\n var _a;\n updateCachedSystemWithFile(extendedConfigFileName, extendedConfigFilePath, eventKind);\n // Update extended config cache\n if (extendedConfigCache)\n ts.cleanExtendedConfigCache(extendedConfigCache, extendedConfigFilePath, toPath);\n // Update projects\n var projects = (_a = sharedExtendedConfigFileWatchers.get(extendedConfigFilePath)) === null || _a === void 0 ? void 0 : _a.projects;\n // If there are no referenced projects this extended config file watcher depend on ignore\n if (!(projects === null || projects === void 0 ? void 0 : projects.size))\n return;\n projects.forEach(function (projectPath) {\n if (toPath(configFileName) === projectPath) {\n // If this is the config file of the project, reload completely\n reloadLevel = ts.ConfigFileProgramReloadLevel.Full;\n }\n else {\n // Reload config for the referenced projects and remove the resolutions from referenced projects since the config file changed\n var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(projectPath);\n if (config)\n config.reloadLevel = ts.ConfigFileProgramReloadLevel.Full;\n resolutionCache.removeResolutionsFromProjectReferenceRedirects(projectPath);\n }\n scheduleProgramUpdate();\n });\n }, ts.PollingInterval.High, watchOptions, watchType); }, toPath);\n }\n function watchReferencedProject(configFileName, configPath, commandLine) {\n var _a, _b, _c, _d, _e;\n // Watch file\n commandLine.watcher || (commandLine.watcher = watchFile(configFileName, function (_fileName, eventKind) {\n updateCachedSystemWithFile(configFileName, configPath, eventKind);\n var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(configPath);\n if (config)\n config.reloadLevel = ts.ConfigFileProgramReloadLevel.Full;\n resolutionCache.removeResolutionsFromProjectReferenceRedirects(configPath);\n scheduleProgramUpdate();\n }, ts.PollingInterval.High, ((_a = commandLine.parsedCommandLine) === null || _a === void 0 ? void 0 : _a.watchOptions) || watchOptions, ts.WatchType.ConfigFileOfReferencedProject));\n // Watch Wild card\n if ((_b = commandLine.parsedCommandLine) === null || _b === void 0 ? void 0 : _b.wildcardDirectories) {\n ts.updateWatchingWildcardDirectories(commandLine.watchedDirectories || (commandLine.watchedDirectories = new ts.Map()), new ts.Map(ts.getEntries((_c = commandLine.parsedCommandLine) === null || _c === void 0 ? void 0 : _c.wildcardDirectories)), function (directory, flags) {\n var _a;\n return watchDirectory(directory, function (fileOrDirectory) {\n var fileOrDirectoryPath = toPath(fileOrDirectory);\n // Since the file existence changed, update the sourceFiles cache\n if (cachedDirectoryStructureHost) {\n cachedDirectoryStructureHost.addOrDeleteFileOrDirectory(fileOrDirectory, fileOrDirectoryPath);\n }\n nextSourceFileVersion(fileOrDirectoryPath);\n var config = parsedConfigs === null || parsedConfigs === void 0 ? void 0 : parsedConfigs.get(configPath);\n if (!(config === null || config === void 0 ? void 0 : config.parsedCommandLine))\n return;\n if (ts.isIgnoredFileFromWildCardWatching({\n watchedDirPath: toPath(directory),\n fileOrDirectory: fileOrDirectory,\n fileOrDirectoryPath: fileOrDirectoryPath,\n configFileName: configFileName,\n options: config.parsedCommandLine.options,\n program: config.parsedCommandLine.fileNames,\n currentDirectory: currentDirectory,\n useCaseSensitiveFileNames: useCaseSensitiveFileNames,\n writeLog: writeLog,\n toPath: toPath,\n }))\n return;\n // Reload is pending, do the reload\n if (config.reloadLevel !== ts.ConfigFileProgramReloadLevel.Full) {\n config.reloadLevel = ts.ConfigFileProgramReloadLevel.Partial;\n // Schedule Update the program\n scheduleProgramUpdate();\n }\n }, flags, ((_a = commandLine.parsedCommandLine) === null || _a === void 0 ? void 0 : _a.watchOptions) || watchOptions, ts.WatchType.WildcardDirectoryOfReferencedProject);\n });\n }\n else if (commandLine.watchedDirectories) {\n ts.clearMap(commandLine.watchedDirectories, ts.closeFileWatcherOf);\n commandLine.watchedDirectories = undefined;\n }\n // Watch extended config files\n updateExtendedConfigFilesWatches(configPath, (_d = commandLine.parsedCommandLine) === null || _d === void 0 ? void 0 : _d.options, ((_e = commandLine.parsedCommandLine) === null || _e === void 0 ? void 0 : _e.watchOptions) || watchOptions, ts.WatchType.ExtendedConfigOfReferencedProject);\n }\n }\n ts.createWatchProgram = createWatchProgram;\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var UpToDateStatusType;\n (function (UpToDateStatusType) {\n UpToDateStatusType[UpToDateStatusType[\"Unbuildable\"] = 0] = \"Unbuildable\";\n UpToDateStatusType[UpToDateStatusType[\"UpToDate\"] = 1] = \"UpToDate\";\n /**\n * The project appears out of date because its upstream inputs are newer than its outputs,\n * but all of its outputs are actually newer than the previous identical outputs of its (.d.ts) inputs.\n * This means we can Pseudo-build (just touch timestamps), as if we had actually built this project.\n */\n UpToDateStatusType[UpToDateStatusType[\"UpToDateWithUpstreamTypes\"] = 2] = \"UpToDateWithUpstreamTypes\";\n /**\n * The project appears out of date because its upstream inputs are newer than its outputs,\n * but all of its outputs are actually newer than the previous identical outputs of its (.d.ts) inputs.\n * This means we can Pseudo-build (just manipulate outputs), as if we had actually built this project.\n */\n UpToDateStatusType[UpToDateStatusType[\"OutOfDateWithPrepend\"] = 3] = \"OutOfDateWithPrepend\";\n UpToDateStatusType[UpToDateStatusType[\"OutputMissing\"] = 4] = \"OutputMissing\";\n UpToDateStatusType[UpToDateStatusType[\"OutOfDateWithSelf\"] = 5] = \"OutOfDateWithSelf\";\n UpToDateStatusType[UpToDateStatusType[\"OutOfDateWithUpstream\"] = 6] = \"OutOfDateWithUpstream\";\n UpToDateStatusType[UpToDateStatusType[\"UpstreamOutOfDate\"] = 7] = \"UpstreamOutOfDate\";\n UpToDateStatusType[UpToDateStatusType[\"UpstreamBlocked\"] = 8] = \"UpstreamBlocked\";\n UpToDateStatusType[UpToDateStatusType[\"ComputingUpstream\"] = 9] = \"ComputingUpstream\";\n UpToDateStatusType[UpToDateStatusType[\"TsVersionOutputOfDate\"] = 10] = \"TsVersionOutputOfDate\";\n /**\n * Projects with no outputs (i.e. \"solution\" files)\n */\n UpToDateStatusType[UpToDateStatusType[\"ContainerOnly\"] = 11] = \"ContainerOnly\";\n })(UpToDateStatusType = ts.UpToDateStatusType || (ts.UpToDateStatusType = {}));\n function resolveConfigFileProjectName(project) {\n if (ts.fileExtensionIs(project, \".json\" /* Json */)) {\n return project;\n }\n return ts.combinePaths(project, \"tsconfig.json\");\n }\n ts.resolveConfigFileProjectName = resolveConfigFileProjectName;\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var minimumDate = new Date(-8640000000000000);\n var maximumDate = new Date(8640000000000000);\n var BuildResultFlags;\n (function (BuildResultFlags) {\n BuildResultFlags[BuildResultFlags[\"None\"] = 0] = \"None\";\n /**\n * No errors of any kind occurred during build\n */\n BuildResultFlags[BuildResultFlags[\"Success\"] = 1] = \"Success\";\n /**\n * None of the .d.ts files emitted by this build were\n * different from the existing files on disk\n */\n BuildResultFlags[BuildResultFlags[\"DeclarationOutputUnchanged\"] = 2] = \"DeclarationOutputUnchanged\";\n BuildResultFlags[BuildResultFlags[\"ConfigFileErrors\"] = 4] = \"ConfigFileErrors\";\n BuildResultFlags[BuildResultFlags[\"SyntaxErrors\"] = 8] = \"SyntaxErrors\";\n BuildResultFlags[BuildResultFlags[\"TypeErrors\"] = 16] = \"TypeErrors\";\n BuildResultFlags[BuildResultFlags[\"DeclarationEmitErrors\"] = 32] = \"DeclarationEmitErrors\";\n BuildResultFlags[BuildResultFlags[\"EmitErrors\"] = 64] = \"EmitErrors\";\n BuildResultFlags[BuildResultFlags[\"AnyErrors\"] = 124] = \"AnyErrors\";\n })(BuildResultFlags || (BuildResultFlags = {}));\n function getOrCreateValueFromConfigFileMap(configFileMap, resolved, createT) {\n var existingValue = configFileMap.get(resolved);\n var newValue;\n if (!existingValue) {\n newValue = createT();\n configFileMap.set(resolved, newValue);\n }\n return existingValue || newValue;\n }\n function getOrCreateValueMapFromConfigFileMap(configFileMap, resolved) {\n return getOrCreateValueFromConfigFileMap(configFileMap, resolved, function () { return new ts.Map(); });\n }\n function newer(date1, date2) {\n return date2 > date1 ? date2 : date1;\n }\n function isDeclarationFile(fileName) {\n return ts.fileExtensionIs(fileName, \".d.ts\" /* Dts */);\n }\n /*@internal*/\n function isCircularBuildOrder(buildOrder) {\n return !!buildOrder && !!buildOrder.buildOrder;\n }\n ts.isCircularBuildOrder = isCircularBuildOrder;\n /*@internal*/\n function getBuildOrderFromAnyBuildOrder(anyBuildOrder) {\n return isCircularBuildOrder(anyBuildOrder) ? anyBuildOrder.buildOrder : anyBuildOrder;\n }\n ts.getBuildOrderFromAnyBuildOrder = getBuildOrderFromAnyBuildOrder;\n /**\n * Create a function that reports watch status by writing to the system and handles the formating of the diagnostic\n */\n function createBuilderStatusReporter(system, pretty) {\n return function (diagnostic) {\n var output = pretty ? \"[\" + ts.formatColorAndReset(ts.getLocaleTimeString(system), ts.ForegroundColorEscapeSequences.Grey) + \"] \" : ts.getLocaleTimeString(system) + \" - \";\n output += \"\" + ts.flattenDiagnosticMessageText(diagnostic.messageText, system.newLine) + (system.newLine + system.newLine);\n system.write(output);\n };\n }\n ts.createBuilderStatusReporter = createBuilderStatusReporter;\n function createSolutionBuilderHostBase(system, createProgram, reportDiagnostic, reportSolutionBuilderStatus) {\n var host = ts.createProgramHost(system, createProgram);\n host.getModifiedTime = system.getModifiedTime ? function (path) { return system.getModifiedTime(path); } : ts.returnUndefined;\n host.setModifiedTime = system.setModifiedTime ? function (path, date) { return system.setModifiedTime(path, date); } : ts.noop;\n host.deleteFile = system.deleteFile ? function (path) { return system.deleteFile(path); } : ts.noop;\n host.reportDiagnostic = reportDiagnostic || ts.createDiagnosticReporter(system);\n host.reportSolutionBuilderStatus = reportSolutionBuilderStatus || createBuilderStatusReporter(system);\n host.now = ts.maybeBind(system, system.now); // For testing\n return host;\n }\n function createSolutionBuilderHost(system, createProgram, reportDiagnostic, reportSolutionBuilderStatus, reportErrorSummary) {\n if (system === void 0) { system = ts.sys; }\n var host = createSolutionBuilderHostBase(system, createProgram, reportDiagnostic, reportSolutionBuilderStatus);\n host.reportErrorSummary = reportErrorSummary;\n return host;\n }\n ts.createSolutionBuilderHost = createSolutionBuilderHost;\n function createSolutionBuilderWithWatchHost(system, createProgram, reportDiagnostic, reportSolutionBuilderStatus, reportWatchStatus) {\n if (system === void 0) { system = ts.sys; }\n var host = createSolutionBuilderHostBase(system, createProgram, reportDiagnostic, reportSolutionBuilderStatus);\n var watchHost = ts.createWatchHost(system, reportWatchStatus);\n ts.copyProperties(host, watchHost);\n return host;\n }\n ts.createSolutionBuilderWithWatchHost = createSolutionBuilderWithWatchHost;\n function getCompilerOptionsOfBuildOptions(buildOptions) {\n var result = {};\n ts.commonOptionsWithBuild.forEach(function (option) {\n if (ts.hasProperty(buildOptions, option.name))\n result[option.name] = buildOptions[option.name];\n });\n return result;\n }\n function createSolutionBuilder(host, rootNames, defaultOptions) {\n return createSolutionBuilderWorker(/*watch*/ false, host, rootNames, defaultOptions);\n }\n ts.createSolutionBuilder = createSolutionBuilder;\n function createSolutionBuilderWithWatch(host, rootNames, defaultOptions, baseWatchOptions) {\n return createSolutionBuilderWorker(/*watch*/ true, host, rootNames, defaultOptions, baseWatchOptions);\n }\n ts.createSolutionBuilderWithWatch = createSolutionBuilderWithWatch;\n function createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {\n var host = hostOrHostWithWatch;\n var hostWithWatch = hostOrHostWithWatch;\n var currentDirectory = host.getCurrentDirectory();\n var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n // State of the solution\n var baseCompilerOptions = getCompilerOptionsOfBuildOptions(options);\n var compilerHost = ts.createCompilerHostFromProgramHost(host, function () { return state.projectCompilerOptions; });\n ts.setGetSourceFileAsHashVersioned(compilerHost, host);\n compilerHost.getParsedCommandLine = function (fileName) { return parseConfigFile(state, fileName, toResolvedConfigFilePath(state, fileName)); };\n compilerHost.resolveModuleNames = ts.maybeBind(host, host.resolveModuleNames);\n compilerHost.resolveTypeReferenceDirectives = ts.maybeBind(host, host.resolveTypeReferenceDirectives);\n var moduleResolutionCache = !compilerHost.resolveModuleNames ? ts.createModuleResolutionCache(currentDirectory, getCanonicalFileName) : undefined;\n var typeReferenceDirectiveResolutionCache = !compilerHost.resolveTypeReferenceDirectives ? ts.createTypeReferenceDirectiveResolutionCache(currentDirectory, getCanonicalFileName, /*options*/ undefined, moduleResolutionCache === null || moduleResolutionCache === void 0 ? void 0 : moduleResolutionCache.getPackageJsonInfoCache()) : undefined;\n if (!compilerHost.resolveModuleNames) {\n var loader_3 = function (moduleName, containingFile, redirectedReference) { return ts.resolveModuleName(moduleName, containingFile, state.projectCompilerOptions, compilerHost, moduleResolutionCache, redirectedReference).resolvedModule; };\n compilerHost.resolveModuleNames = function (moduleNames, containingFile, _reusedNames, redirectedReference) {\n return ts.loadWithLocalCache(ts.Debug.checkEachDefined(moduleNames), containingFile, redirectedReference, loader_3);\n };\n }\n if (!compilerHost.resolveTypeReferenceDirectives) {\n var loader_4 = function (moduleName, containingFile, redirectedReference) { return ts.resolveTypeReferenceDirective(moduleName, containingFile, state.projectCompilerOptions, compilerHost, redirectedReference, state.typeReferenceDirectiveResolutionCache).resolvedTypeReferenceDirective; };\n compilerHost.resolveTypeReferenceDirectives = function (typeReferenceDirectiveNames, containingFile, redirectedReference) {\n return ts.loadWithLocalCache(ts.Debug.checkEachDefined(typeReferenceDirectiveNames), containingFile, redirectedReference, loader_4);\n };\n }\n var _a = ts.createWatchFactory(hostWithWatch, options), watchFile = _a.watchFile, watchDirectory = _a.watchDirectory, writeLog = _a.writeLog;\n var state = {\n host: host,\n hostWithWatch: hostWithWatch,\n currentDirectory: currentDirectory,\n getCanonicalFileName: getCanonicalFileName,\n parseConfigFileHost: ts.parseConfigHostFromCompilerHostLike(host),\n write: ts.maybeBind(host, host.trace),\n // State of solution\n options: options,\n baseCompilerOptions: baseCompilerOptions,\n rootNames: rootNames,\n baseWatchOptions: baseWatchOptions,\n resolvedConfigFilePaths: new ts.Map(),\n configFileCache: new ts.Map(),\n projectStatus: new ts.Map(),\n buildInfoChecked: new ts.Map(),\n extendedConfigCache: new ts.Map(),\n builderPrograms: new ts.Map(),\n diagnostics: new ts.Map(),\n projectPendingBuild: new ts.Map(),\n projectErrorsReported: new ts.Map(),\n compilerHost: compilerHost,\n moduleResolutionCache: moduleResolutionCache,\n typeReferenceDirectiveResolutionCache: typeReferenceDirectiveResolutionCache,\n // Mutable state\n buildOrder: undefined,\n readFileWithCache: function (f) { return host.readFile(f); },\n projectCompilerOptions: baseCompilerOptions,\n cache: undefined,\n allProjectBuildPending: true,\n needsSummary: true,\n watchAllProjectsPending: watch,\n currentInvalidatedProject: undefined,\n // Watch state\n watch: watch,\n allWatchedWildcardDirectories: new ts.Map(),\n allWatchedInputFiles: new ts.Map(),\n allWatchedConfigFiles: new ts.Map(),\n allWatchedExtendedConfigFiles: new ts.Map(),\n allWatchedPackageJsonFiles: new ts.Map(),\n lastCachedPackageJsonLookups: new ts.Map(),\n timerToBuildInvalidatedProject: undefined,\n reportFileChangeDetected: false,\n watchFile: watchFile,\n watchDirectory: watchDirectory,\n writeLog: writeLog,\n };\n return state;\n }\n function toPath(state, fileName) {\n return ts.toPath(fileName, state.currentDirectory, state.getCanonicalFileName);\n }\n function toResolvedConfigFilePath(state, fileName) {\n var resolvedConfigFilePaths = state.resolvedConfigFilePaths;\n var path = resolvedConfigFilePaths.get(fileName);\n if (path !== undefined)\n return path;\n var resolvedPath = toPath(state, fileName);\n resolvedConfigFilePaths.set(fileName, resolvedPath);\n return resolvedPath;\n }\n function isParsedCommandLine(entry) {\n return !!entry.options;\n }\n function getCachedParsedConfigFile(state, configFilePath) {\n var value = state.configFileCache.get(configFilePath);\n return value && isParsedCommandLine(value) ? value : undefined;\n }\n function parseConfigFile(state, configFileName, configFilePath) {\n var configFileCache = state.configFileCache;\n var value = configFileCache.get(configFilePath);\n if (value) {\n return isParsedCommandLine(value) ? value : undefined;\n }\n var diagnostic;\n var parseConfigFileHost = state.parseConfigFileHost, baseCompilerOptions = state.baseCompilerOptions, baseWatchOptions = state.baseWatchOptions, extendedConfigCache = state.extendedConfigCache, host = state.host;\n var parsed;\n if (host.getParsedCommandLine) {\n parsed = host.getParsedCommandLine(configFileName);\n if (!parsed)\n diagnostic = ts.createCompilerDiagnostic(ts.Diagnostics.File_0_not_found, configFileName);\n }\n else {\n parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = function (d) { return diagnostic = d; };\n parsed = ts.getParsedCommandLineOfConfigFile(configFileName, baseCompilerOptions, parseConfigFileHost, extendedConfigCache, baseWatchOptions);\n parseConfigFileHost.onUnRecoverableConfigFileDiagnostic = ts.noop;\n }\n configFileCache.set(configFilePath, parsed || diagnostic);\n return parsed;\n }\n function resolveProjectName(state, name) {\n return ts.resolveConfigFileProjectName(ts.resolvePath(state.currentDirectory, name));\n }\n function createBuildOrder(state, roots) {\n var temporaryMarks = new ts.Map();\n var permanentMarks = new ts.Map();\n var circularityReportStack = [];\n var buildOrder;\n var circularDiagnostics;\n for (var _i = 0, roots_1 = roots; _i < roots_1.length; _i++) {\n var root = roots_1[_i];\n visit(root);\n }\n return circularDiagnostics ?\n { buildOrder: buildOrder || ts.emptyArray, circularDiagnostics: circularDiagnostics } :\n buildOrder || ts.emptyArray;\n function visit(configFileName, inCircularContext) {\n var projPath = toResolvedConfigFilePath(state, configFileName);\n // Already visited\n if (permanentMarks.has(projPath))\n return;\n // Circular\n if (temporaryMarks.has(projPath)) {\n if (!inCircularContext) {\n (circularDiagnostics || (circularDiagnostics = [])).push(ts.createCompilerDiagnostic(ts.Diagnostics.Project_references_may_not_form_a_circular_graph_Cycle_detected_Colon_0, circularityReportStack.join(\"\\r\\n\")));\n }\n return;\n }\n temporaryMarks.set(projPath, true);\n circularityReportStack.push(configFileName);\n var parsed = parseConfigFile(state, configFileName, projPath);\n if (parsed && parsed.projectReferences) {\n for (var _i = 0, _a = parsed.projectReferences; _i < _a.length; _i++) {\n var ref = _a[_i];\n var resolvedRefPath = resolveProjectName(state, ref.path);\n visit(resolvedRefPath, inCircularContext || ref.circular);\n }\n }\n circularityReportStack.pop();\n permanentMarks.set(projPath, true);\n (buildOrder || (buildOrder = [])).push(configFileName);\n }\n }\n function getBuildOrder(state) {\n return state.buildOrder || createStateBuildOrder(state);\n }\n function createStateBuildOrder(state) {\n var buildOrder = createBuildOrder(state, state.rootNames.map(function (f) { return resolveProjectName(state, f); }));\n // Clear all to ResolvedConfigFilePaths cache to start fresh\n state.resolvedConfigFilePaths.clear();\n // TODO(rbuckton): Should be a `Set`, but that requires changing the code below that uses `mutateMapSkippingNewValues`\n var currentProjects = new ts.Map(getBuildOrderFromAnyBuildOrder(buildOrder).map(function (resolved) { return [toResolvedConfigFilePath(state, resolved), true]; }));\n var noopOnDelete = { onDeleteValue: ts.noop };\n // Config file cache\n ts.mutateMapSkippingNewValues(state.configFileCache, currentProjects, noopOnDelete);\n ts.mutateMapSkippingNewValues(state.projectStatus, currentProjects, noopOnDelete);\n ts.mutateMapSkippingNewValues(state.buildInfoChecked, currentProjects, noopOnDelete);\n ts.mutateMapSkippingNewValues(state.builderPrograms, currentProjects, noopOnDelete);\n ts.mutateMapSkippingNewValues(state.diagnostics, currentProjects, noopOnDelete);\n ts.mutateMapSkippingNewValues(state.projectPendingBuild, currentProjects, noopOnDelete);\n ts.mutateMapSkippingNewValues(state.projectErrorsReported, currentProjects, noopOnDelete);\n // Remove watches for the program no longer in the solution\n if (state.watch) {\n ts.mutateMapSkippingNewValues(state.allWatchedConfigFiles, currentProjects, { onDeleteValue: ts.closeFileWatcher });\n state.allWatchedExtendedConfigFiles.forEach(function (watcher) {\n watcher.projects.forEach(function (project) {\n if (!currentProjects.has(project)) {\n watcher.projects.delete(project);\n }\n });\n watcher.close();\n });\n ts.mutateMapSkippingNewValues(state.allWatchedWildcardDirectories, currentProjects, { onDeleteValue: function (existingMap) { return existingMap.forEach(ts.closeFileWatcherOf); } });\n ts.mutateMapSkippingNewValues(state.allWatchedInputFiles, currentProjects, { onDeleteValue: function (existingMap) { return existingMap.forEach(ts.closeFileWatcher); } });\n ts.mutateMapSkippingNewValues(state.allWatchedPackageJsonFiles, currentProjects, { onDeleteValue: function (existingMap) { return existingMap.forEach(ts.closeFileWatcher); } });\n }\n return state.buildOrder = buildOrder;\n }\n function getBuildOrderFor(state, project, onlyReferences) {\n var resolvedProject = project && resolveProjectName(state, project);\n var buildOrderFromState = getBuildOrder(state);\n if (isCircularBuildOrder(buildOrderFromState))\n return buildOrderFromState;\n if (resolvedProject) {\n var projectPath_1 = toResolvedConfigFilePath(state, resolvedProject);\n var projectIndex = ts.findIndex(buildOrderFromState, function (configFileName) { return toResolvedConfigFilePath(state, configFileName) === projectPath_1; });\n if (projectIndex === -1)\n return undefined;\n }\n var buildOrder = resolvedProject ? createBuildOrder(state, [resolvedProject]) : buildOrderFromState;\n ts.Debug.assert(!isCircularBuildOrder(buildOrder));\n ts.Debug.assert(!onlyReferences || resolvedProject !== undefined);\n ts.Debug.assert(!onlyReferences || buildOrder[buildOrder.length - 1] === resolvedProject);\n return onlyReferences ? buildOrder.slice(0, buildOrder.length - 1) : buildOrder;\n }\n function enableCache(state) {\n if (state.cache) {\n disableCache(state);\n }\n var compilerHost = state.compilerHost, host = state.host;\n var originalReadFileWithCache = state.readFileWithCache;\n var originalGetSourceFile = compilerHost.getSourceFile;\n var _a = ts.changeCompilerHostLikeToUseCache(host, function (fileName) { return toPath(state, fileName); }, function () {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n return originalGetSourceFile.call.apply(originalGetSourceFile, __spreadArray([compilerHost], args, false));\n }), originalReadFile = _a.originalReadFile, originalFileExists = _a.originalFileExists, originalDirectoryExists = _a.originalDirectoryExists, originalCreateDirectory = _a.originalCreateDirectory, originalWriteFile = _a.originalWriteFile, getSourceFileWithCache = _a.getSourceFileWithCache, readFileWithCache = _a.readFileWithCache;\n state.readFileWithCache = readFileWithCache;\n compilerHost.getSourceFile = getSourceFileWithCache;\n state.cache = {\n originalReadFile: originalReadFile,\n originalFileExists: originalFileExists,\n originalDirectoryExists: originalDirectoryExists,\n originalCreateDirectory: originalCreateDirectory,\n originalWriteFile: originalWriteFile,\n originalReadFileWithCache: originalReadFileWithCache,\n originalGetSourceFile: originalGetSourceFile,\n };\n }\n function disableCache(state) {\n if (!state.cache)\n return;\n var cache = state.cache, host = state.host, compilerHost = state.compilerHost, extendedConfigCache = state.extendedConfigCache, moduleResolutionCache = state.moduleResolutionCache, typeReferenceDirectiveResolutionCache = state.typeReferenceDirectiveResolutionCache;\n host.readFile = cache.originalReadFile;\n host.fileExists = cache.originalFileExists;\n host.directoryExists = cache.originalDirectoryExists;\n host.createDirectory = cache.originalCreateDirectory;\n host.writeFile = cache.originalWriteFile;\n compilerHost.getSourceFile = cache.originalGetSourceFile;\n state.readFileWithCache = cache.originalReadFileWithCache;\n extendedConfigCache.clear();\n moduleResolutionCache === null || moduleResolutionCache === void 0 ? void 0 : moduleResolutionCache.clear();\n typeReferenceDirectiveResolutionCache === null || typeReferenceDirectiveResolutionCache === void 0 ? void 0 : typeReferenceDirectiveResolutionCache.clear();\n state.cache = undefined;\n }\n function clearProjectStatus(state, resolved) {\n state.projectStatus.delete(resolved);\n state.diagnostics.delete(resolved);\n }\n function addProjToQueue(_a, proj, reloadLevel) {\n var projectPendingBuild = _a.projectPendingBuild;\n var value = projectPendingBuild.get(proj);\n if (value === undefined) {\n projectPendingBuild.set(proj, reloadLevel);\n }\n else if (value < reloadLevel) {\n projectPendingBuild.set(proj, reloadLevel);\n }\n }\n function setupInitialBuild(state, cancellationToken) {\n // Set initial build if not already built\n if (!state.allProjectBuildPending)\n return;\n state.allProjectBuildPending = false;\n if (state.options.watch) {\n reportWatchStatus(state, ts.Diagnostics.Starting_compilation_in_watch_mode);\n }\n enableCache(state);\n var buildOrder = getBuildOrderFromAnyBuildOrder(getBuildOrder(state));\n buildOrder.forEach(function (configFileName) {\n return state.projectPendingBuild.set(toResolvedConfigFilePath(state, configFileName), ts.ConfigFileProgramReloadLevel.None);\n });\n if (cancellationToken) {\n cancellationToken.throwIfCancellationRequested();\n }\n }\n var InvalidatedProjectKind;\n (function (InvalidatedProjectKind) {\n InvalidatedProjectKind[InvalidatedProjectKind[\"Build\"] = 0] = \"Build\";\n InvalidatedProjectKind[InvalidatedProjectKind[\"UpdateBundle\"] = 1] = \"UpdateBundle\";\n InvalidatedProjectKind[InvalidatedProjectKind[\"UpdateOutputFileStamps\"] = 2] = \"UpdateOutputFileStamps\";\n })(InvalidatedProjectKind = ts.InvalidatedProjectKind || (ts.InvalidatedProjectKind = {}));\n function doneInvalidatedProject(state, projectPath) {\n state.projectPendingBuild.delete(projectPath);\n state.currentInvalidatedProject = undefined;\n return state.diagnostics.has(projectPath) ?\n ts.ExitStatus.DiagnosticsPresent_OutputsSkipped :\n ts.ExitStatus.Success;\n }\n function createUpdateOutputFileStampsProject(state, project, projectPath, config, buildOrder) {\n var updateOutputFileStampsPending = true;\n return {\n kind: InvalidatedProjectKind.UpdateOutputFileStamps,\n project: project,\n projectPath: projectPath,\n buildOrder: buildOrder,\n getCompilerOptions: function () { return config.options; },\n getCurrentDirectory: function () { return state.currentDirectory; },\n updateOutputFileStatmps: function () {\n updateOutputTimestamps(state, config, projectPath);\n updateOutputFileStampsPending = false;\n },\n done: function () {\n if (updateOutputFileStampsPending) {\n updateOutputTimestamps(state, config, projectPath);\n }\n return doneInvalidatedProject(state, projectPath);\n }\n };\n }\n var BuildStep;\n (function (BuildStep) {\n BuildStep[BuildStep[\"CreateProgram\"] = 0] = \"CreateProgram\";\n BuildStep[BuildStep[\"SyntaxDiagnostics\"] = 1] = \"SyntaxDiagnostics\";\n BuildStep[BuildStep[\"SemanticDiagnostics\"] = 2] = \"SemanticDiagnostics\";\n BuildStep[BuildStep[\"Emit\"] = 3] = \"Emit\";\n BuildStep[BuildStep[\"EmitBundle\"] = 4] = \"EmitBundle\";\n BuildStep[BuildStep[\"EmitBuildInfo\"] = 5] = \"EmitBuildInfo\";\n BuildStep[BuildStep[\"BuildInvalidatedProjectOfBundle\"] = 6] = \"BuildInvalidatedProjectOfBundle\";\n BuildStep[BuildStep[\"QueueReferencingProjects\"] = 7] = \"QueueReferencingProjects\";\n BuildStep[BuildStep[\"Done\"] = 8] = \"Done\";\n })(BuildStep || (BuildStep = {}));\n function createBuildOrUpdateInvalidedProject(kind, state, project, projectPath, projectIndex, config, buildOrder) {\n var step = kind === InvalidatedProjectKind.Build ? BuildStep.CreateProgram : BuildStep.EmitBundle;\n var program;\n var buildResult;\n var invalidatedProjectOfBundle;\n return kind === InvalidatedProjectKind.Build ?\n {\n kind: kind,\n project: project,\n projectPath: projectPath,\n buildOrder: buildOrder,\n getCompilerOptions: function () { return config.options; },\n getCurrentDirectory: function () { return state.currentDirectory; },\n getBuilderProgram: function () { return withProgramOrUndefined(ts.identity); },\n getProgram: function () {\n return withProgramOrUndefined(function (program) { return program.getProgramOrUndefined(); });\n },\n getSourceFile: function (fileName) {\n return withProgramOrUndefined(function (program) { return program.getSourceFile(fileName); });\n },\n getSourceFiles: function () {\n return withProgramOrEmptyArray(function (program) { return program.getSourceFiles(); });\n },\n getOptionsDiagnostics: function (cancellationToken) {\n return withProgramOrEmptyArray(function (program) { return program.getOptionsDiagnostics(cancellationToken); });\n },\n getGlobalDiagnostics: function (cancellationToken) {\n return withProgramOrEmptyArray(function (program) { return program.getGlobalDiagnostics(cancellationToken); });\n },\n getConfigFileParsingDiagnostics: function () {\n return withProgramOrEmptyArray(function (program) { return program.getConfigFileParsingDiagnostics(); });\n },\n getSyntacticDiagnostics: function (sourceFile, cancellationToken) {\n return withProgramOrEmptyArray(function (program) { return program.getSyntacticDiagnostics(sourceFile, cancellationToken); });\n },\n getAllDependencies: function (sourceFile) {\n return withProgramOrEmptyArray(function (program) { return program.getAllDependencies(sourceFile); });\n },\n getSemanticDiagnostics: function (sourceFile, cancellationToken) {\n return withProgramOrEmptyArray(function (program) { return program.getSemanticDiagnostics(sourceFile, cancellationToken); });\n },\n getSemanticDiagnosticsOfNextAffectedFile: function (cancellationToken, ignoreSourceFile) {\n return withProgramOrUndefined(function (program) {\n return (program.getSemanticDiagnosticsOfNextAffectedFile) &&\n program.getSemanticDiagnosticsOfNextAffectedFile(cancellationToken, ignoreSourceFile);\n });\n },\n emit: function (targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers) {\n if (targetSourceFile || emitOnlyDtsFiles) {\n return withProgramOrUndefined(function (program) { var _a, _b; return program.emit(targetSourceFile, writeFile, cancellationToken, emitOnlyDtsFiles, customTransformers || ((_b = (_a = state.host).getCustomTransformers) === null || _b === void 0 ? void 0 : _b.call(_a, project))); });\n }\n executeSteps(BuildStep.SemanticDiagnostics, cancellationToken);\n if (step === BuildStep.EmitBuildInfo) {\n return emitBuildInfo(writeFile, cancellationToken);\n }\n if (step !== BuildStep.Emit)\n return undefined;\n return emit(writeFile, cancellationToken, customTransformers);\n },\n done: done\n } :\n {\n kind: kind,\n project: project,\n projectPath: projectPath,\n buildOrder: buildOrder,\n getCompilerOptions: function () { return config.options; },\n getCurrentDirectory: function () { return state.currentDirectory; },\n emit: function (writeFile, customTransformers) {\n if (step !== BuildStep.EmitBundle)\n return invalidatedProjectOfBundle;\n return emitBundle(writeFile, customTransformers);\n },\n done: done,\n };\n function done(cancellationToken, writeFile, customTransformers) {\n executeSteps(BuildStep.Done, cancellationToken, writeFile, customTransformers);\n return doneInvalidatedProject(state, projectPath);\n }\n function withProgramOrUndefined(action) {\n executeSteps(BuildStep.CreateProgram);\n return program && action(program);\n }\n function withProgramOrEmptyArray(action) {\n return withProgramOrUndefined(action) || ts.emptyArray;\n }\n function createProgram() {\n var _a, _b;\n ts.Debug.assert(program === undefined);\n if (state.options.dry) {\n reportStatus(state, ts.Diagnostics.A_non_dry_build_would_build_project_0, project);\n buildResult = BuildResultFlags.Success;\n step = BuildStep.QueueReferencingProjects;\n return;\n }\n if (state.options.verbose)\n reportStatus(state, ts.Diagnostics.Building_project_0, project);\n if (config.fileNames.length === 0) {\n reportAndStoreErrors(state, projectPath, ts.getConfigFileParsingDiagnostics(config));\n // Nothing to build - must be a solution file, basically\n buildResult = BuildResultFlags.None;\n step = BuildStep.QueueReferencingProjects;\n return;\n }\n var host = state.host, compilerHost = state.compilerHost;\n state.projectCompilerOptions = config.options;\n // Update module resolution cache if needed\n (_a = state.moduleResolutionCache) === null || _a === void 0 ? void 0 : _a.update(config.options);\n (_b = state.typeReferenceDirectiveResolutionCache) === null || _b === void 0 ? void 0 : _b.update(config.options);\n // Create program\n program = host.createProgram(config.fileNames, config.options, compilerHost, getOldProgram(state, projectPath, config), ts.getConfigFileParsingDiagnostics(config), config.projectReferences);\n if (state.watch) {\n state.lastCachedPackageJsonLookups.set(projectPath, state.moduleResolutionCache && ts.map(state.moduleResolutionCache.getPackageJsonInfoCache().entries(), function (_a) {\n var path = _a[0], data = _a[1];\n return [state.host.realpath && data ? toPath(state, state.host.realpath(path)) : path, data];\n }));\n state.builderPrograms.set(projectPath, program);\n }\n step++;\n }\n function handleDiagnostics(diagnostics, errorFlags, errorType) {\n var _a;\n if (diagnostics.length) {\n (_a = buildErrors(state, projectPath, program, config, diagnostics, errorFlags, errorType), buildResult = _a.buildResult, step = _a.step);\n }\n else {\n step++;\n }\n }\n function getSyntaxDiagnostics(cancellationToken) {\n ts.Debug.assertIsDefined(program);\n handleDiagnostics(__spreadArray(__spreadArray(__spreadArray(__spreadArray([], program.getConfigFileParsingDiagnostics(), true), program.getOptionsDiagnostics(cancellationToken), true), program.getGlobalDiagnostics(cancellationToken), true), program.getSyntacticDiagnostics(/*sourceFile*/ undefined, cancellationToken), true), BuildResultFlags.SyntaxErrors, \"Syntactic\");\n }\n function getSemanticDiagnostics(cancellationToken) {\n handleDiagnostics(ts.Debug.checkDefined(program).getSemanticDiagnostics(/*sourceFile*/ undefined, cancellationToken), BuildResultFlags.TypeErrors, \"Semantic\");\n }\n function emit(writeFileCallback, cancellationToken, customTransformers) {\n var _a;\n var _b, _c;\n ts.Debug.assertIsDefined(program);\n ts.Debug.assert(step === BuildStep.Emit);\n // Before emitting lets backup state, so we can revert it back if there are declaration errors to handle emit and declaration errors correctly\n program.backupState();\n var declDiagnostics;\n var reportDeclarationDiagnostics = function (d) { return (declDiagnostics || (declDiagnostics = [])).push(d); };\n var outputFiles = [];\n var emitResult = ts.emitFilesAndReportErrors(program, reportDeclarationDiagnostics, \n /*write*/ undefined, \n /*reportSummary*/ undefined, function (name, text, writeByteOrderMark) { return outputFiles.push({ name: name, text: text, writeByteOrderMark: writeByteOrderMark }); }, cancellationToken, \n /*emitOnlyDts*/ false, customTransformers || ((_c = (_b = state.host).getCustomTransformers) === null || _c === void 0 ? void 0 : _c.call(_b, project))).emitResult;\n // Don't emit .d.ts if there are decl file errors\n if (declDiagnostics) {\n program.restoreState();\n (_a = buildErrors(state, projectPath, program, config, declDiagnostics, BuildResultFlags.DeclarationEmitErrors, \"Declaration file\"), buildResult = _a.buildResult, step = _a.step);\n return {\n emitSkipped: true,\n diagnostics: emitResult.diagnostics\n };\n }\n // Actual Emit\n var host = state.host, compilerHost = state.compilerHost;\n var resultFlags = BuildResultFlags.DeclarationOutputUnchanged;\n var newestDeclarationFileContentChangedTime = minimumDate;\n var anyDtsChanged = false;\n var emitterDiagnostics = ts.createDiagnosticCollection();\n var emittedOutputs = new ts.Map();\n outputFiles.forEach(function (_a) {\n var name = _a.name, text = _a.text, writeByteOrderMark = _a.writeByteOrderMark;\n var priorChangeTime;\n if (!anyDtsChanged && isDeclarationFile(name)) {\n // Check for unchanged .d.ts files\n if (host.fileExists(name) && state.readFileWithCache(name) === text) {\n priorChangeTime = host.getModifiedTime(name);\n }\n else {\n resultFlags &= ~BuildResultFlags.DeclarationOutputUnchanged;\n anyDtsChanged = true;\n }\n }\n emittedOutputs.set(toPath(state, name), name);\n ts.writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark);\n if (priorChangeTime !== undefined) {\n newestDeclarationFileContentChangedTime = newer(priorChangeTime, newestDeclarationFileContentChangedTime);\n }\n });\n finishEmit(emitterDiagnostics, emittedOutputs, newestDeclarationFileContentChangedTime, \n /*newestDeclarationFileContentChangedTimeIsMaximumDate*/ anyDtsChanged, outputFiles.length ? outputFiles[0].name : ts.getFirstProjectOutput(config, !host.useCaseSensitiveFileNames()), resultFlags);\n return emitResult;\n }\n function emitBuildInfo(writeFileCallback, cancellationToken) {\n ts.Debug.assertIsDefined(program);\n ts.Debug.assert(step === BuildStep.EmitBuildInfo);\n var emitResult = program.emitBuildInfo(writeFileCallback, cancellationToken);\n if (emitResult.diagnostics.length) {\n reportErrors(state, emitResult.diagnostics);\n state.diagnostics.set(projectPath, __spreadArray(__spreadArray([], state.diagnostics.get(projectPath), true), emitResult.diagnostics, true));\n buildResult = BuildResultFlags.EmitErrors & buildResult;\n }\n if (emitResult.emittedFiles && state.write) {\n emitResult.emittedFiles.forEach(function (name) { return listEmittedFile(state, config, name); });\n }\n afterProgramDone(state, program, config);\n step = BuildStep.QueueReferencingProjects;\n return emitResult;\n }\n function finishEmit(emitterDiagnostics, emittedOutputs, priorNewestUpdateTime, newestDeclarationFileContentChangedTimeIsMaximumDate, oldestOutputFileName, resultFlags) {\n var _a;\n var emitDiagnostics = emitterDiagnostics.getDiagnostics();\n if (emitDiagnostics.length) {\n (_a = buildErrors(state, projectPath, program, config, emitDiagnostics, BuildResultFlags.EmitErrors, \"Emit\"), buildResult = _a.buildResult, step = _a.step);\n return emitDiagnostics;\n }\n if (state.write) {\n emittedOutputs.forEach(function (name) { return listEmittedFile(state, config, name); });\n }\n // Update time stamps for rest of the outputs\n var newestDeclarationFileContentChangedTime = updateOutputTimestampsWorker(state, config, priorNewestUpdateTime, ts.Diagnostics.Updating_unchanged_output_timestamps_of_project_0, emittedOutputs);\n state.diagnostics.delete(projectPath);\n state.projectStatus.set(projectPath, {\n type: ts.UpToDateStatusType.UpToDate,\n newestDeclarationFileContentChangedTime: newestDeclarationFileContentChangedTimeIsMaximumDate ?\n maximumDate :\n newestDeclarationFileContentChangedTime,\n oldestOutputFileName: oldestOutputFileName\n });\n afterProgramDone(state, program, config);\n step = BuildStep.QueueReferencingProjects;\n buildResult = resultFlags;\n return emitDiagnostics;\n }\n function emitBundle(writeFileCallback, customTransformers) {\n var _a, _b;\n ts.Debug.assert(kind === InvalidatedProjectKind.UpdateBundle);\n if (state.options.dry) {\n reportStatus(state, ts.Diagnostics.A_non_dry_build_would_update_output_of_project_0, project);\n buildResult = BuildResultFlags.Success;\n step = BuildStep.QueueReferencingProjects;\n return undefined;\n }\n if (state.options.verbose)\n reportStatus(state, ts.Diagnostics.Updating_output_of_project_0, project);\n // Update js, and source map\n var compilerHost = state.compilerHost;\n state.projectCompilerOptions = config.options;\n var outputFiles = ts.emitUsingBuildInfo(config, compilerHost, function (ref) {\n var refName = resolveProjectName(state, ref.path);\n return parseConfigFile(state, refName, toResolvedConfigFilePath(state, refName));\n }, customTransformers || ((_b = (_a = state.host).getCustomTransformers) === null || _b === void 0 ? void 0 : _b.call(_a, project)));\n if (ts.isString(outputFiles)) {\n reportStatus(state, ts.Diagnostics.Cannot_update_output_of_project_0_because_there_was_error_reading_file_1, project, relName(state, outputFiles));\n step = BuildStep.BuildInvalidatedProjectOfBundle;\n return invalidatedProjectOfBundle = createBuildOrUpdateInvalidedProject(InvalidatedProjectKind.Build, state, project, projectPath, projectIndex, config, buildOrder);\n }\n // Actual Emit\n ts.Debug.assert(!!outputFiles.length);\n var emitterDiagnostics = ts.createDiagnosticCollection();\n var emittedOutputs = new ts.Map();\n outputFiles.forEach(function (_a) {\n var name = _a.name, text = _a.text, writeByteOrderMark = _a.writeByteOrderMark;\n emittedOutputs.set(toPath(state, name), name);\n ts.writeFile(writeFileCallback ? { writeFile: writeFileCallback } : compilerHost, emitterDiagnostics, name, text, writeByteOrderMark);\n });\n var emitDiagnostics = finishEmit(emitterDiagnostics, emittedOutputs, minimumDate, \n /*newestDeclarationFileContentChangedTimeIsMaximumDate*/ false, outputFiles[0].name, BuildResultFlags.DeclarationOutputUnchanged);\n return { emitSkipped: false, diagnostics: emitDiagnostics };\n }\n function executeSteps(till, cancellationToken, writeFile, customTransformers) {\n while (step <= till && step < BuildStep.Done) {\n var currentStep = step;\n switch (step) {\n case BuildStep.CreateProgram:\n createProgram();\n break;\n case BuildStep.SyntaxDiagnostics:\n getSyntaxDiagnostics(cancellationToken);\n break;\n case BuildStep.SemanticDiagnostics:\n getSemanticDiagnostics(cancellationToken);\n break;\n case BuildStep.Emit:\n emit(writeFile, cancellationToken, customTransformers);\n break;\n case BuildStep.EmitBuildInfo:\n emitBuildInfo(writeFile, cancellationToken);\n break;\n case BuildStep.EmitBundle:\n emitBundle(writeFile, customTransformers);\n break;\n case BuildStep.BuildInvalidatedProjectOfBundle:\n ts.Debug.checkDefined(invalidatedProjectOfBundle).done(cancellationToken, writeFile, customTransformers);\n step = BuildStep.Done;\n break;\n case BuildStep.QueueReferencingProjects:\n queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, ts.Debug.checkDefined(buildResult));\n step++;\n break;\n // Should never be done\n case BuildStep.Done:\n default:\n ts.assertType(step);\n }\n ts.Debug.assert(step > currentStep);\n }\n }\n }\n function needsBuild(_a, status, config) {\n var options = _a.options;\n if (status.type !== ts.UpToDateStatusType.OutOfDateWithPrepend || options.force)\n return true;\n return config.fileNames.length === 0 ||\n !!ts.getConfigFileParsingDiagnostics(config).length ||\n !ts.isIncrementalCompilation(config.options);\n }\n function getNextInvalidatedProject(state, buildOrder, reportQueue) {\n if (!state.projectPendingBuild.size)\n return undefined;\n if (isCircularBuildOrder(buildOrder))\n return undefined;\n if (state.currentInvalidatedProject) {\n // Only if same buildOrder the currentInvalidated project can be sent again\n return ts.arrayIsEqualTo(state.currentInvalidatedProject.buildOrder, buildOrder) ?\n state.currentInvalidatedProject :\n undefined;\n }\n var options = state.options, projectPendingBuild = state.projectPendingBuild;\n for (var projectIndex = 0; projectIndex < buildOrder.length; projectIndex++) {\n var project = buildOrder[projectIndex];\n var projectPath = toResolvedConfigFilePath(state, project);\n var reloadLevel = state.projectPendingBuild.get(projectPath);\n if (reloadLevel === undefined)\n continue;\n if (reportQueue) {\n reportQueue = false;\n reportBuildQueue(state, buildOrder);\n }\n var config = parseConfigFile(state, project, projectPath);\n if (!config) {\n reportParseConfigFileDiagnostic(state, projectPath);\n projectPendingBuild.delete(projectPath);\n continue;\n }\n if (reloadLevel === ts.ConfigFileProgramReloadLevel.Full) {\n watchConfigFile(state, project, projectPath, config);\n watchExtendedConfigFiles(state, projectPath, config);\n watchWildCardDirectories(state, project, projectPath, config);\n watchInputFiles(state, project, projectPath, config);\n watchPackageJsonFiles(state, project, projectPath, config);\n }\n else if (reloadLevel === ts.ConfigFileProgramReloadLevel.Partial) {\n // Update file names\n config.fileNames = ts.getFileNamesFromConfigSpecs(config.options.configFile.configFileSpecs, ts.getDirectoryPath(project), config.options, state.parseConfigFileHost);\n ts.updateErrorForNoInputFiles(config.fileNames, project, config.options.configFile.configFileSpecs, config.errors, ts.canJsonReportNoInputFiles(config.raw));\n watchInputFiles(state, project, projectPath, config);\n watchPackageJsonFiles(state, project, projectPath, config);\n }\n var status = getUpToDateStatus(state, config, projectPath);\n verboseReportProjectStatus(state, project, status);\n if (!options.force) {\n if (status.type === ts.UpToDateStatusType.UpToDate) {\n reportAndStoreErrors(state, projectPath, ts.getConfigFileParsingDiagnostics(config));\n projectPendingBuild.delete(projectPath);\n // Up to date, skip\n if (options.dry) {\n // In a dry build, inform the user of this fact\n reportStatus(state, ts.Diagnostics.Project_0_is_up_to_date, project);\n }\n continue;\n }\n if (status.type === ts.UpToDateStatusType.UpToDateWithUpstreamTypes) {\n reportAndStoreErrors(state, projectPath, ts.getConfigFileParsingDiagnostics(config));\n return createUpdateOutputFileStampsProject(state, project, projectPath, config, buildOrder);\n }\n }\n if (status.type === ts.UpToDateStatusType.UpstreamBlocked) {\n reportAndStoreErrors(state, projectPath, ts.getConfigFileParsingDiagnostics(config));\n projectPendingBuild.delete(projectPath);\n if (options.verbose) {\n reportStatus(state, status.upstreamProjectBlocked ?\n ts.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_was_not_built :\n ts.Diagnostics.Skipping_build_of_project_0_because_its_dependency_1_has_errors, project, status.upstreamProjectName);\n }\n continue;\n }\n if (status.type === ts.UpToDateStatusType.ContainerOnly) {\n reportAndStoreErrors(state, projectPath, ts.getConfigFileParsingDiagnostics(config));\n projectPendingBuild.delete(projectPath);\n // Do nothing\n continue;\n }\n return createBuildOrUpdateInvalidedProject(needsBuild(state, status, config) ?\n InvalidatedProjectKind.Build :\n InvalidatedProjectKind.UpdateBundle, state, project, projectPath, projectIndex, config, buildOrder);\n }\n return undefined;\n }\n function listEmittedFile(_a, proj, file) {\n var write = _a.write;\n if (write && proj.options.listEmittedFiles) {\n write(\"TSFILE: \" + file);\n }\n }\n function getOldProgram(_a, proj, parsed) {\n var options = _a.options, builderPrograms = _a.builderPrograms, compilerHost = _a.compilerHost;\n if (options.force)\n return undefined;\n var value = builderPrograms.get(proj);\n if (value)\n return value;\n return ts.readBuilderProgram(parsed.options, compilerHost);\n }\n function afterProgramDone(state, program, config) {\n if (program) {\n if (program && state.write)\n ts.listFiles(program, state.write);\n if (state.host.afterProgramEmitAndDiagnostics) {\n state.host.afterProgramEmitAndDiagnostics(program);\n }\n program.releaseProgram();\n }\n else if (state.host.afterEmitBundle) {\n state.host.afterEmitBundle(config);\n }\n state.projectCompilerOptions = state.baseCompilerOptions;\n }\n function buildErrors(state, resolvedPath, program, config, diagnostics, buildResult, errorType) {\n var canEmitBuildInfo = !(buildResult & BuildResultFlags.SyntaxErrors) && program && !ts.outFile(program.getCompilerOptions());\n reportAndStoreErrors(state, resolvedPath, diagnostics);\n state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.Unbuildable, reason: errorType + \" errors\" });\n if (canEmitBuildInfo)\n return { buildResult: buildResult, step: BuildStep.EmitBuildInfo };\n afterProgramDone(state, program, config);\n return { buildResult: buildResult, step: BuildStep.QueueReferencingProjects };\n }\n function checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName) {\n // Check tsconfig time\n var tsconfigTime = ts.getModifiedTime(state.host, configFile);\n if (oldestOutputFileTime < tsconfigTime) {\n return {\n type: ts.UpToDateStatusType.OutOfDateWithSelf,\n outOfDateOutputFileName: oldestOutputFileName,\n newerInputFileName: configFile\n };\n }\n }\n function getUpToDateStatusWorker(state, project, resolvedPath) {\n var force = !!state.options.force;\n var newestInputFileName = undefined;\n var newestInputFileTime = minimumDate;\n var host = state.host;\n // Get timestamps of input files\n for (var _i = 0, _a = project.fileNames; _i < _a.length; _i++) {\n var inputFile = _a[_i];\n if (!host.fileExists(inputFile)) {\n return {\n type: ts.UpToDateStatusType.Unbuildable,\n reason: inputFile + \" does not exist\"\n };\n }\n if (!force) {\n var inputTime = ts.getModifiedTime(host, inputFile);\n host.getModifiedTime(inputFile);\n if (inputTime > newestInputFileTime) {\n newestInputFileName = inputFile;\n newestInputFileTime = inputTime;\n }\n }\n }\n // Container if no files are specified in the project\n if (!project.fileNames.length && !ts.canJsonReportNoInputFiles(project.raw)) {\n return {\n type: ts.UpToDateStatusType.ContainerOnly\n };\n }\n // Collect the expected outputs of this project\n var outputs = ts.getAllProjectOutputs(project, !host.useCaseSensitiveFileNames());\n // Now see if all outputs are newer than the newest input\n var oldestOutputFileName = \"(none)\";\n var oldestOutputFileTime = maximumDate;\n var newestOutputFileName = \"(none)\";\n var newestOutputFileTime = minimumDate;\n var missingOutputFileName;\n var newestDeclarationFileContentChangedTime = minimumDate;\n var isOutOfDateWithInputs = false;\n if (!force) {\n for (var _b = 0, outputs_1 = outputs; _b < outputs_1.length; _b++) {\n var output = outputs_1[_b];\n // Output is missing; can stop checking\n // Don't immediately return because we can still be upstream-blocked, which is a higher-priority status\n if (!host.fileExists(output)) {\n missingOutputFileName = output;\n break;\n }\n var outputTime = ts.getModifiedTime(host, output);\n if (outputTime < oldestOutputFileTime) {\n oldestOutputFileTime = outputTime;\n oldestOutputFileName = output;\n }\n // If an output is older than the newest input, we can stop checking\n // Don't immediately return because we can still be upstream-blocked, which is a higher-priority status\n if (outputTime < newestInputFileTime) {\n isOutOfDateWithInputs = true;\n break;\n }\n if (outputTime > newestOutputFileTime) {\n newestOutputFileTime = outputTime;\n newestOutputFileName = output;\n }\n // Keep track of when the most recent time a .d.ts file was changed.\n // In addition to file timestamps, we also keep track of when a .d.ts file\n // had its file touched but not had its contents changed - this allows us\n // to skip a downstream typecheck\n if (isDeclarationFile(output)) {\n var outputModifiedTime = ts.getModifiedTime(host, output);\n newestDeclarationFileContentChangedTime = newer(newestDeclarationFileContentChangedTime, outputModifiedTime);\n }\n }\n }\n var pseudoUpToDate = false;\n var usesPrepend = false;\n var upstreamChangedProject;\n if (project.projectReferences) {\n state.projectStatus.set(resolvedPath, { type: ts.UpToDateStatusType.ComputingUpstream });\n for (var _c = 0, _d = project.projectReferences; _c < _d.length; _c++) {\n var ref = _d[_c];\n usesPrepend = usesPrepend || !!(ref.prepend);\n var resolvedRef = ts.resolveProjectReferencePath(ref);\n var resolvedRefPath = toResolvedConfigFilePath(state, resolvedRef);\n var refStatus = getUpToDateStatus(state, parseConfigFile(state, resolvedRef, resolvedRefPath), resolvedRefPath);\n // Its a circular reference ignore the status of this project\n if (refStatus.type === ts.UpToDateStatusType.ComputingUpstream ||\n refStatus.type === ts.UpToDateStatusType.ContainerOnly) { // Container only ignore this project\n continue;\n }\n // An upstream project is blocked\n if (refStatus.type === ts.UpToDateStatusType.Unbuildable ||\n refStatus.type === ts.UpToDateStatusType.UpstreamBlocked) {\n return {\n type: ts.UpToDateStatusType.UpstreamBlocked,\n upstreamProjectName: ref.path,\n upstreamProjectBlocked: refStatus.type === ts.UpToDateStatusType.UpstreamBlocked\n };\n }\n // If the upstream project is out of date, then so are we (someone shouldn't have asked, though?)\n if (refStatus.type !== ts.UpToDateStatusType.UpToDate) {\n return {\n type: ts.UpToDateStatusType.UpstreamOutOfDate,\n upstreamProjectName: ref.path\n };\n }\n // Check oldest output file name only if there is no missing output file name\n // (a check we will have skipped if this is a forced build)\n if (!force && !missingOutputFileName) {\n // If the upstream project's newest file is older than our oldest output, we\n // can't be out of date because of it\n if (refStatus.newestInputFileTime && refStatus.newestInputFileTime <= oldestOutputFileTime) {\n continue;\n }\n // If the upstream project has only change .d.ts files, and we've built\n // *after* those files, then we're \"psuedo up to date\" and eligible for a fast rebuild\n if (refStatus.newestDeclarationFileContentChangedTime && refStatus.newestDeclarationFileContentChangedTime <= oldestOutputFileTime) {\n pseudoUpToDate = true;\n upstreamChangedProject = ref.path;\n continue;\n }\n // We have an output older than an upstream output - we are out of date\n ts.Debug.assert(oldestOutputFileName !== undefined, \"Should have an oldest output filename here\");\n return {\n type: ts.UpToDateStatusType.OutOfDateWithUpstream,\n outOfDateOutputFileName: oldestOutputFileName,\n newerProjectName: ref.path\n };\n }\n }\n }\n if (missingOutputFileName !== undefined) {\n return {\n type: ts.UpToDateStatusType.OutputMissing,\n missingOutputFileName: missingOutputFileName\n };\n }\n if (isOutOfDateWithInputs) {\n return {\n type: ts.UpToDateStatusType.OutOfDateWithSelf,\n outOfDateOutputFileName: oldestOutputFileName,\n newerInputFileName: newestInputFileName\n };\n }\n else {\n // Check tsconfig time\n var configStatus = checkConfigFileUpToDateStatus(state, project.options.configFilePath, oldestOutputFileTime, oldestOutputFileName);\n if (configStatus)\n return configStatus;\n // Check extended config time\n var extendedConfigStatus = ts.forEach(project.options.configFile.extendedSourceFiles || ts.emptyArray, function (configFile) { return checkConfigFileUpToDateStatus(state, configFile, oldestOutputFileTime, oldestOutputFileName); });\n if (extendedConfigStatus)\n return extendedConfigStatus;\n // Check package file time\n var dependentPackageFileStatus = ts.forEach(state.lastCachedPackageJsonLookups.get(resolvedPath) || ts.emptyArray, function (_a) {\n var path = _a[0];\n return checkConfigFileUpToDateStatus(state, path, oldestOutputFileTime, oldestOutputFileName);\n });\n if (dependentPackageFileStatus)\n return dependentPackageFileStatus;\n }\n if (!force && !state.buildInfoChecked.has(resolvedPath)) {\n state.buildInfoChecked.set(resolvedPath, true);\n var buildInfoPath = ts.getTsBuildInfoEmitOutputFilePath(project.options);\n if (buildInfoPath) {\n var value = state.readFileWithCache(buildInfoPath);\n var buildInfo = value && ts.getBuildInfo(value);\n if (buildInfo && (buildInfo.bundle || buildInfo.program) && buildInfo.version !== ts.version) {\n return {\n type: ts.UpToDateStatusType.TsVersionOutputOfDate,\n version: buildInfo.version\n };\n }\n }\n }\n if (usesPrepend && pseudoUpToDate) {\n return {\n type: ts.UpToDateStatusType.OutOfDateWithPrepend,\n outOfDateOutputFileName: oldestOutputFileName,\n newerProjectName: upstreamChangedProject\n };\n }\n // Up to date\n return {\n type: pseudoUpToDate ? ts.UpToDateStatusType.UpToDateWithUpstreamTypes : ts.UpToDateStatusType.UpToDate,\n newestDeclarationFileContentChangedTime: newestDeclarationFileContentChangedTime,\n newestInputFileTime: newestInputFileTime,\n newestOutputFileTime: newestOutputFileTime,\n newestInputFileName: newestInputFileName,\n newestOutputFileName: newestOutputFileName,\n oldestOutputFileName: oldestOutputFileName\n };\n }\n function getUpToDateStatus(state, project, resolvedPath) {\n if (project === undefined) {\n return { type: ts.UpToDateStatusType.Unbuildable, reason: \"File deleted mid-build\" };\n }\n var prior = state.projectStatus.get(resolvedPath);\n if (prior !== undefined) {\n return prior;\n }\n var actual = getUpToDateStatusWorker(state, project, resolvedPath);\n state.projectStatus.set(resolvedPath, actual);\n return actual;\n }\n function updateOutputTimestampsWorker(state, proj, priorNewestUpdateTime, verboseMessage, skipOutputs) {\n if (proj.options.noEmit)\n return priorNewestUpdateTime;\n var host = state.host;\n var outputs = ts.getAllProjectOutputs(proj, !host.useCaseSensitiveFileNames());\n if (!skipOutputs || outputs.length !== skipOutputs.size) {\n var reportVerbose = !!state.options.verbose;\n var now = host.now ? host.now() : new Date();\n for (var _i = 0, outputs_2 = outputs; _i < outputs_2.length; _i++) {\n var file = outputs_2[_i];\n if (skipOutputs && skipOutputs.has(toPath(state, file))) {\n continue;\n }\n if (reportVerbose) {\n reportVerbose = false;\n reportStatus(state, verboseMessage, proj.options.configFilePath);\n }\n if (isDeclarationFile(file)) {\n priorNewestUpdateTime = newer(priorNewestUpdateTime, ts.getModifiedTime(host, file));\n }\n host.setModifiedTime(file, now);\n }\n }\n return priorNewestUpdateTime;\n }\n function updateOutputTimestamps(state, proj, resolvedPath) {\n if (state.options.dry) {\n return reportStatus(state, ts.Diagnostics.A_non_dry_build_would_update_timestamps_for_output_of_project_0, proj.options.configFilePath);\n }\n var priorNewestUpdateTime = updateOutputTimestampsWorker(state, proj, minimumDate, ts.Diagnostics.Updating_output_timestamps_of_project_0);\n state.projectStatus.set(resolvedPath, {\n type: ts.UpToDateStatusType.UpToDate,\n newestDeclarationFileContentChangedTime: priorNewestUpdateTime,\n oldestOutputFileName: ts.getFirstProjectOutput(proj, !state.host.useCaseSensitiveFileNames())\n });\n }\n function queueReferencingProjects(state, project, projectPath, projectIndex, config, buildOrder, buildResult) {\n // Queue only if there are no errors\n if (buildResult & BuildResultFlags.AnyErrors)\n return;\n // Only composite projects can be referenced by other projects\n if (!config.options.composite)\n return;\n // Always use build order to queue projects\n for (var index = projectIndex + 1; index < buildOrder.length; index++) {\n var nextProject = buildOrder[index];\n var nextProjectPath = toResolvedConfigFilePath(state, nextProject);\n if (state.projectPendingBuild.has(nextProjectPath))\n continue;\n var nextProjectConfig = parseConfigFile(state, nextProject, nextProjectPath);\n if (!nextProjectConfig || !nextProjectConfig.projectReferences)\n continue;\n for (var _i = 0, _a = nextProjectConfig.projectReferences; _i < _a.length; _i++) {\n var ref = _a[_i];\n var resolvedRefPath = resolveProjectName(state, ref.path);\n if (toResolvedConfigFilePath(state, resolvedRefPath) !== projectPath)\n continue;\n // If the project is referenced with prepend, always build downstream projects,\n // If declaration output is changed, build the project\n // otherwise mark the project UpToDateWithUpstreamTypes so it updates output time stamps\n var status = state.projectStatus.get(nextProjectPath);\n if (status) {\n switch (status.type) {\n case ts.UpToDateStatusType.UpToDate:\n if (buildResult & BuildResultFlags.DeclarationOutputUnchanged) {\n if (ref.prepend) {\n state.projectStatus.set(nextProjectPath, {\n type: ts.UpToDateStatusType.OutOfDateWithPrepend,\n outOfDateOutputFileName: status.oldestOutputFileName,\n newerProjectName: project\n });\n }\n else {\n status.type = ts.UpToDateStatusType.UpToDateWithUpstreamTypes;\n }\n break;\n }\n // falls through\n case ts.UpToDateStatusType.UpToDateWithUpstreamTypes:\n case ts.UpToDateStatusType.OutOfDateWithPrepend:\n if (!(buildResult & BuildResultFlags.DeclarationOutputUnchanged)) {\n state.projectStatus.set(nextProjectPath, {\n type: ts.UpToDateStatusType.OutOfDateWithUpstream,\n outOfDateOutputFileName: status.type === ts.UpToDateStatusType.OutOfDateWithPrepend ? status.outOfDateOutputFileName : status.oldestOutputFileName,\n newerProjectName: project\n });\n }\n break;\n case ts.UpToDateStatusType.UpstreamBlocked:\n if (toResolvedConfigFilePath(state, resolveProjectName(state, status.upstreamProjectName)) === projectPath) {\n clearProjectStatus(state, nextProjectPath);\n }\n break;\n }\n }\n addProjToQueue(state, nextProjectPath, ts.ConfigFileProgramReloadLevel.None);\n break;\n }\n }\n }\n function build(state, project, cancellationToken, writeFile, getCustomTransformers, onlyReferences) {\n var buildOrder = getBuildOrderFor(state, project, onlyReferences);\n if (!buildOrder)\n return ts.ExitStatus.InvalidProject_OutputsSkipped;\n setupInitialBuild(state, cancellationToken);\n var reportQueue = true;\n var successfulProjects = 0;\n while (true) {\n var invalidatedProject = getNextInvalidatedProject(state, buildOrder, reportQueue);\n if (!invalidatedProject)\n break;\n reportQueue = false;\n invalidatedProject.done(cancellationToken, writeFile, getCustomTransformers === null || getCustomTransformers === void 0 ? void 0 : getCustomTransformers(invalidatedProject.project));\n if (!state.diagnostics.has(invalidatedProject.projectPath))\n successfulProjects++;\n }\n disableCache(state);\n reportErrorSummary(state, buildOrder);\n startWatching(state, buildOrder);\n return isCircularBuildOrder(buildOrder)\n ? ts.ExitStatus.ProjectReferenceCycle_OutputsSkipped\n : !buildOrder.some(function (p) { return state.diagnostics.has(toResolvedConfigFilePath(state, p)); })\n ? ts.ExitStatus.Success\n : successfulProjects\n ? ts.ExitStatus.DiagnosticsPresent_OutputsGenerated\n : ts.ExitStatus.DiagnosticsPresent_OutputsSkipped;\n }\n function clean(state, project, onlyReferences) {\n var buildOrder = getBuildOrderFor(state, project, onlyReferences);\n if (!buildOrder)\n return ts.ExitStatus.InvalidProject_OutputsSkipped;\n if (isCircularBuildOrder(buildOrder)) {\n reportErrors(state, buildOrder.circularDiagnostics);\n return ts.ExitStatus.ProjectReferenceCycle_OutputsSkipped;\n }\n var options = state.options, host = state.host;\n var filesToDelete = options.dry ? [] : undefined;\n for (var _i = 0, buildOrder_1 = buildOrder; _i < buildOrder_1.length; _i++) {\n var proj = buildOrder_1[_i];\n var resolvedPath = toResolvedConfigFilePath(state, proj);\n var parsed = parseConfigFile(state, proj, resolvedPath);\n if (parsed === undefined) {\n // File has gone missing; fine to ignore here\n reportParseConfigFileDiagnostic(state, resolvedPath);\n continue;\n }\n var outputs = ts.getAllProjectOutputs(parsed, !host.useCaseSensitiveFileNames());\n if (!outputs.length)\n continue;\n var inputFileNames = new ts.Set(parsed.fileNames.map(function (f) { return toPath(state, f); }));\n for (var _a = 0, outputs_3 = outputs; _a < outputs_3.length; _a++) {\n var output = outputs_3[_a];\n // If output name is same as input file name, do not delete and ignore the error\n if (inputFileNames.has(toPath(state, output)))\n continue;\n if (host.fileExists(output)) {\n if (filesToDelete) {\n filesToDelete.push(output);\n }\n else {\n host.deleteFile(output);\n invalidateProject(state, resolvedPath, ts.ConfigFileProgramReloadLevel.None);\n }\n }\n }\n }\n if (filesToDelete) {\n reportStatus(state, ts.Diagnostics.A_non_dry_build_would_delete_the_following_files_Colon_0, filesToDelete.map(function (f) { return \"\\r\\n * \" + f; }).join(\"\"));\n }\n return ts.ExitStatus.Success;\n }\n function invalidateProject(state, resolved, reloadLevel) {\n // If host implements getParsedCommandLine, we cant get list of files from parseConfigFileHost\n if (state.host.getParsedCommandLine && reloadLevel === ts.ConfigFileProgramReloadLevel.Partial) {\n reloadLevel = ts.ConfigFileProgramReloadLevel.Full;\n }\n if (reloadLevel === ts.ConfigFileProgramReloadLevel.Full) {\n state.configFileCache.delete(resolved);\n state.buildOrder = undefined;\n }\n state.needsSummary = true;\n clearProjectStatus(state, resolved);\n addProjToQueue(state, resolved, reloadLevel);\n enableCache(state);\n }\n function invalidateProjectAndScheduleBuilds(state, resolvedPath, reloadLevel) {\n state.reportFileChangeDetected = true;\n invalidateProject(state, resolvedPath, reloadLevel);\n scheduleBuildInvalidatedProject(state);\n }\n function scheduleBuildInvalidatedProject(state) {\n var hostWithWatch = state.hostWithWatch;\n if (!hostWithWatch.setTimeout || !hostWithWatch.clearTimeout) {\n return;\n }\n if (state.timerToBuildInvalidatedProject) {\n hostWithWatch.clearTimeout(state.timerToBuildInvalidatedProject);\n }\n state.timerToBuildInvalidatedProject = hostWithWatch.setTimeout(buildNextInvalidatedProject, 250, state);\n }\n function buildNextInvalidatedProject(state) {\n state.timerToBuildInvalidatedProject = undefined;\n if (state.reportFileChangeDetected) {\n state.reportFileChangeDetected = false;\n state.projectErrorsReported.clear();\n reportWatchStatus(state, ts.Diagnostics.File_change_detected_Starting_incremental_compilation);\n }\n var buildOrder = getBuildOrder(state);\n var invalidatedProject = getNextInvalidatedProject(state, buildOrder, /*reportQueue*/ false);\n if (invalidatedProject) {\n invalidatedProject.done();\n if (state.projectPendingBuild.size) {\n // Schedule next project for build\n if (state.watch && !state.timerToBuildInvalidatedProject) {\n scheduleBuildInvalidatedProject(state);\n }\n return;\n }\n }\n disableCache(state);\n reportErrorSummary(state, buildOrder);\n }\n function watchConfigFile(state, resolved, resolvedPath, parsed) {\n if (!state.watch || state.allWatchedConfigFiles.has(resolvedPath))\n return;\n state.allWatchedConfigFiles.set(resolvedPath, state.watchFile(resolved, function () {\n invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.Full);\n }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.ConfigFile, resolved));\n }\n function watchExtendedConfigFiles(state, resolvedPath, parsed) {\n ts.updateSharedExtendedConfigFileWatcher(resolvedPath, parsed === null || parsed === void 0 ? void 0 : parsed.options, state.allWatchedExtendedConfigFiles, function (extendedConfigFileName, extendedConfigFilePath) { return state.watchFile(extendedConfigFileName, function () {\n var _a;\n return (_a = state.allWatchedExtendedConfigFiles.get(extendedConfigFilePath)) === null || _a === void 0 ? void 0 : _a.projects.forEach(function (projectConfigFilePath) {\n return invalidateProjectAndScheduleBuilds(state, projectConfigFilePath, ts.ConfigFileProgramReloadLevel.Full);\n });\n }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.ExtendedConfigFile); }, function (fileName) { return toPath(state, fileName); });\n }\n function watchWildCardDirectories(state, resolved, resolvedPath, parsed) {\n if (!state.watch)\n return;\n ts.updateWatchingWildcardDirectories(getOrCreateValueMapFromConfigFileMap(state.allWatchedWildcardDirectories, resolvedPath), new ts.Map(ts.getEntries(parsed.wildcardDirectories)), function (dir, flags) { return state.watchDirectory(dir, function (fileOrDirectory) {\n var _a;\n if (ts.isIgnoredFileFromWildCardWatching({\n watchedDirPath: toPath(state, dir),\n fileOrDirectory: fileOrDirectory,\n fileOrDirectoryPath: toPath(state, fileOrDirectory),\n configFileName: resolved,\n currentDirectory: state.currentDirectory,\n options: parsed.options,\n program: state.builderPrograms.get(resolvedPath) || ((_a = getCachedParsedConfigFile(state, resolvedPath)) === null || _a === void 0 ? void 0 : _a.fileNames),\n useCaseSensitiveFileNames: state.parseConfigFileHost.useCaseSensitiveFileNames,\n writeLog: function (s) { return state.writeLog(s); },\n toPath: function (fileName) { return toPath(state, fileName); }\n }))\n return;\n invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.Partial);\n }, flags, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.WildcardDirectory, resolved); });\n }\n function watchInputFiles(state, resolved, resolvedPath, parsed) {\n if (!state.watch)\n return;\n ts.mutateMap(getOrCreateValueMapFromConfigFileMap(state.allWatchedInputFiles, resolvedPath), ts.arrayToMap(parsed.fileNames, function (fileName) { return toPath(state, fileName); }), {\n createNewValue: function (_path, input) { return state.watchFile(input, function () { return invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.None); }, ts.PollingInterval.Low, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.SourceFile, resolved); },\n onDeleteValue: ts.closeFileWatcher,\n });\n }\n function watchPackageJsonFiles(state, resolved, resolvedPath, parsed) {\n if (!state.watch || !state.lastCachedPackageJsonLookups)\n return;\n ts.mutateMap(getOrCreateValueMapFromConfigFileMap(state.allWatchedPackageJsonFiles, resolvedPath), new ts.Map(state.lastCachedPackageJsonLookups.get(resolvedPath)), {\n createNewValue: function (path, _input) { return state.watchFile(path, function () { return invalidateProjectAndScheduleBuilds(state, resolvedPath, ts.ConfigFileProgramReloadLevel.Full); }, ts.PollingInterval.High, parsed === null || parsed === void 0 ? void 0 : parsed.watchOptions, ts.WatchType.PackageJson, resolved); },\n onDeleteValue: ts.closeFileWatcher,\n });\n }\n function startWatching(state, buildOrder) {\n if (!state.watchAllProjectsPending)\n return;\n state.watchAllProjectsPending = false;\n for (var _i = 0, _a = getBuildOrderFromAnyBuildOrder(buildOrder); _i < _a.length; _i++) {\n var resolved = _a[_i];\n var resolvedPath = toResolvedConfigFilePath(state, resolved);\n var cfg = parseConfigFile(state, resolved, resolvedPath);\n // Watch this file\n watchConfigFile(state, resolved, resolvedPath, cfg);\n watchExtendedConfigFiles(state, resolvedPath, cfg);\n if (cfg) {\n // Update watchers for wildcard directories\n watchWildCardDirectories(state, resolved, resolvedPath, cfg);\n // Watch input files\n watchInputFiles(state, resolved, resolvedPath, cfg);\n // Watch package json files\n watchPackageJsonFiles(state, resolved, resolvedPath, cfg);\n }\n }\n }\n function stopWatching(state) {\n ts.clearMap(state.allWatchedConfigFiles, ts.closeFileWatcher);\n ts.clearMap(state.allWatchedExtendedConfigFiles, ts.closeFileWatcherOf);\n ts.clearMap(state.allWatchedWildcardDirectories, function (watchedWildcardDirectories) { return ts.clearMap(watchedWildcardDirectories, ts.closeFileWatcherOf); });\n ts.clearMap(state.allWatchedInputFiles, function (watchedWildcardDirectories) { return ts.clearMap(watchedWildcardDirectories, ts.closeFileWatcher); });\n ts.clearMap(state.allWatchedPackageJsonFiles, function (watchedPacageJsonFiles) { return ts.clearMap(watchedPacageJsonFiles, ts.closeFileWatcher); });\n }\n function createSolutionBuilderWorker(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions) {\n var state = createSolutionBuilderState(watch, hostOrHostWithWatch, rootNames, options, baseWatchOptions);\n return {\n build: function (project, cancellationToken, writeFile, getCustomTransformers) { return build(state, project, cancellationToken, writeFile, getCustomTransformers); },\n clean: function (project) { return clean(state, project); },\n buildReferences: function (project, cancellationToken, writeFile, getCustomTransformers) { return build(state, project, cancellationToken, writeFile, getCustomTransformers, /*onlyReferences*/ true); },\n cleanReferences: function (project) { return clean(state, project, /*onlyReferences*/ true); },\n getNextInvalidatedProject: function (cancellationToken) {\n setupInitialBuild(state, cancellationToken);\n return getNextInvalidatedProject(state, getBuildOrder(state), /*reportQueue*/ false);\n },\n getBuildOrder: function () { return getBuildOrder(state); },\n getUpToDateStatusOfProject: function (project) {\n var configFileName = resolveProjectName(state, project);\n var configFilePath = toResolvedConfigFilePath(state, configFileName);\n return getUpToDateStatus(state, parseConfigFile(state, configFileName, configFilePath), configFilePath);\n },\n invalidateProject: function (configFilePath, reloadLevel) { return invalidateProject(state, configFilePath, reloadLevel || ts.ConfigFileProgramReloadLevel.None); },\n buildNextInvalidatedProject: function () { return buildNextInvalidatedProject(state); },\n getAllParsedConfigs: function () { return ts.arrayFrom(ts.mapDefinedIterator(state.configFileCache.values(), function (config) { return isParsedCommandLine(config) ? config : undefined; })); },\n close: function () { return stopWatching(state); },\n };\n }\n function relName(state, path) {\n return ts.convertToRelativePath(path, state.currentDirectory, function (f) { return state.getCanonicalFileName(f); });\n }\n function reportStatus(state, message) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n state.host.reportSolutionBuilderStatus(ts.createCompilerDiagnostic.apply(void 0, __spreadArray([message], args, false)));\n }\n function reportWatchStatus(state, message) {\n var _a, _b;\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n (_b = (_a = state.hostWithWatch).onWatchStatusChange) === null || _b === void 0 ? void 0 : _b.call(_a, ts.createCompilerDiagnostic.apply(void 0, __spreadArray([message], args, false)), state.host.getNewLine(), state.baseCompilerOptions);\n }\n function reportErrors(_a, errors) {\n var host = _a.host;\n errors.forEach(function (err) { return host.reportDiagnostic(err); });\n }\n function reportAndStoreErrors(state, proj, errors) {\n reportErrors(state, errors);\n state.projectErrorsReported.set(proj, true);\n if (errors.length) {\n state.diagnostics.set(proj, errors);\n }\n }\n function reportParseConfigFileDiagnostic(state, proj) {\n reportAndStoreErrors(state, proj, [state.configFileCache.get(proj)]);\n }\n function reportErrorSummary(state, buildOrder) {\n if (!state.needsSummary)\n return;\n state.needsSummary = false;\n var canReportSummary = state.watch || !!state.host.reportErrorSummary;\n var diagnostics = state.diagnostics;\n var totalErrors = 0;\n if (isCircularBuildOrder(buildOrder)) {\n reportBuildQueue(state, buildOrder.buildOrder);\n reportErrors(state, buildOrder.circularDiagnostics);\n if (canReportSummary)\n totalErrors += ts.getErrorCountForSummary(buildOrder.circularDiagnostics);\n }\n else {\n // Report errors from the other projects\n buildOrder.forEach(function (project) {\n var projectPath = toResolvedConfigFilePath(state, project);\n if (!state.projectErrorsReported.has(projectPath)) {\n reportErrors(state, diagnostics.get(projectPath) || ts.emptyArray);\n }\n });\n if (canReportSummary)\n diagnostics.forEach(function (singleProjectErrors) { return totalErrors += ts.getErrorCountForSummary(singleProjectErrors); });\n }\n if (state.watch) {\n reportWatchStatus(state, ts.getWatchErrorSummaryDiagnosticMessage(totalErrors), totalErrors);\n }\n else if (state.host.reportErrorSummary) {\n state.host.reportErrorSummary(totalErrors);\n }\n }\n /**\n * Report the build ordering inferred from the current project graph if we're in verbose mode\n */\n function reportBuildQueue(state, buildQueue) {\n if (state.options.verbose) {\n reportStatus(state, ts.Diagnostics.Projects_in_this_build_Colon_0, buildQueue.map(function (s) { return \"\\r\\n * \" + relName(state, s); }).join(\"\"));\n }\n }\n function reportUpToDateStatus(state, configFileName, status) {\n if (state.options.force && (status.type === ts.UpToDateStatusType.UpToDate || status.type === ts.UpToDateStatusType.UpToDateWithUpstreamTypes)) {\n return reportStatus(state, ts.Diagnostics.Project_0_is_being_forcibly_rebuilt, relName(state, configFileName));\n }\n switch (status.type) {\n case ts.UpToDateStatusType.OutOfDateWithSelf:\n return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relName(state, configFileName), relName(state, status.outOfDateOutputFileName), relName(state, status.newerInputFileName));\n case ts.UpToDateStatusType.OutOfDateWithUpstream:\n return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_oldest_output_1_is_older_than_newest_input_2, relName(state, configFileName), relName(state, status.outOfDateOutputFileName), relName(state, status.newerProjectName));\n case ts.UpToDateStatusType.OutputMissing:\n return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_output_file_1_does_not_exist, relName(state, configFileName), relName(state, status.missingOutputFileName));\n case ts.UpToDateStatusType.UpToDate:\n if (status.newestInputFileTime !== undefined) {\n return reportStatus(state, ts.Diagnostics.Project_0_is_up_to_date_because_newest_input_1_is_older_than_oldest_output_2, relName(state, configFileName), relName(state, status.newestInputFileName || \"\"), relName(state, status.oldestOutputFileName || \"\"));\n }\n // Don't report anything for \"up to date because it was already built\" -- too verbose\n break;\n case ts.UpToDateStatusType.OutOfDateWithPrepend:\n return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_output_of_its_dependency_1_has_changed, relName(state, configFileName), relName(state, status.newerProjectName));\n case ts.UpToDateStatusType.UpToDateWithUpstreamTypes:\n return reportStatus(state, ts.Diagnostics.Project_0_is_up_to_date_with_d_ts_files_from_its_dependencies, relName(state, configFileName));\n case ts.UpToDateStatusType.UpstreamOutOfDate:\n return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_its_dependency_1_is_out_of_date, relName(state, configFileName), relName(state, status.upstreamProjectName));\n case ts.UpToDateStatusType.UpstreamBlocked:\n return reportStatus(state, status.upstreamProjectBlocked ?\n ts.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_was_not_built :\n ts.Diagnostics.Project_0_can_t_be_built_because_its_dependency_1_has_errors, relName(state, configFileName), relName(state, status.upstreamProjectName));\n case ts.UpToDateStatusType.Unbuildable:\n return reportStatus(state, ts.Diagnostics.Failed_to_parse_file_0_Colon_1, relName(state, configFileName), status.reason);\n case ts.UpToDateStatusType.TsVersionOutputOfDate:\n return reportStatus(state, ts.Diagnostics.Project_0_is_out_of_date_because_output_for_it_was_generated_with_version_1_that_differs_with_current_version_2, relName(state, configFileName), status.version, ts.version);\n case ts.UpToDateStatusType.ContainerOnly:\n // Don't report status on \"solution\" projects\n // falls through\n case ts.UpToDateStatusType.ComputingUpstream:\n // Should never leak from getUptoDateStatusWorker\n break;\n default:\n ts.assertType(status);\n }\n }\n /**\n * Report the up-to-date status of a project if we're in verbose mode\n */\n function verboseReportProjectStatus(state, configFileName, status) {\n if (state.options.verbose) {\n reportUpToDateStatus(state, configFileName, status);\n }\n }\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var server;\n (function (server) {\n /* @internal */\n server.ActionSet = \"action::set\";\n /* @internal */\n server.ActionInvalidate = \"action::invalidate\";\n /* @internal */\n server.ActionPackageInstalled = \"action::packageInstalled\";\n /* @internal */\n server.EventTypesRegistry = \"event::typesRegistry\";\n /* @internal */\n server.EventBeginInstallTypes = \"event::beginInstallTypes\";\n /* @internal */\n server.EventEndInstallTypes = \"event::endInstallTypes\";\n /* @internal */\n server.EventInitializationFailed = \"event::initializationFailed\";\n /* @internal */\n var Arguments;\n (function (Arguments) {\n Arguments.GlobalCacheLocation = \"--globalTypingsCacheLocation\";\n Arguments.LogFile = \"--logFile\";\n Arguments.EnableTelemetry = \"--enableTelemetry\";\n Arguments.TypingSafeListLocation = \"--typingSafeListLocation\";\n Arguments.TypesMapLocation = \"--typesMapLocation\";\n /**\n * This argument specifies the location of the NPM executable.\n * typingsInstaller will run the command with `${npmLocation} install ...`.\n */\n Arguments.NpmLocation = \"--npmLocation\";\n /**\n * Flag indicating that the typings installer should try to validate the default npm location.\n * If the default npm is not found when this flag is enabled, fallback to `npm install`\n */\n Arguments.ValidateDefaultNpmLocation = \"--validateDefaultNpmLocation\";\n })(Arguments = server.Arguments || (server.Arguments = {}));\n /* @internal */\n function hasArgument(argumentName) {\n return ts.sys.args.indexOf(argumentName) >= 0;\n }\n server.hasArgument = hasArgument;\n /* @internal */\n function findArgument(argumentName) {\n var index = ts.sys.args.indexOf(argumentName);\n return index >= 0 && index < ts.sys.args.length - 1\n ? ts.sys.args[index + 1]\n : undefined;\n }\n server.findArgument = findArgument;\n /* @internal */\n function nowString() {\n // E.g. \"12:34:56.789\"\n var d = new Date();\n return ts.padLeft(d.getHours().toString(), 2, \"0\") + \":\" + ts.padLeft(d.getMinutes().toString(), 2, \"0\") + \":\" + ts.padLeft(d.getSeconds().toString(), 2, \"0\") + \".\" + ts.padLeft(d.getMilliseconds().toString(), 3, \"0\");\n }\n server.nowString = nowString;\n })(server = ts.server || (ts.server = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var JsTyping;\n (function (JsTyping) {\n function isTypingUpToDate(cachedTyping, availableTypingVersions) {\n var availableVersion = new ts.Version(ts.getProperty(availableTypingVersions, \"ts\" + ts.versionMajorMinor) || ts.getProperty(availableTypingVersions, \"latest\"));\n return availableVersion.compareTo(cachedTyping.version) <= 0;\n }\n JsTyping.isTypingUpToDate = isTypingUpToDate;\n var unprefixedNodeCoreModuleList = [\n \"assert\",\n \"assert/strict\",\n \"async_hooks\",\n \"buffer\",\n \"child_process\",\n \"cluster\",\n \"console\",\n \"constants\",\n \"crypto\",\n \"dgram\",\n \"diagnostics_channel\",\n \"dns\",\n \"dns/promises\",\n \"domain\",\n \"events\",\n \"fs\",\n \"fs/promises\",\n \"http\",\n \"https\",\n \"http2\",\n \"inspector\",\n \"module\",\n \"net\",\n \"os\",\n \"path\",\n \"perf_hooks\",\n \"process\",\n \"punycode\",\n \"querystring\",\n \"readline\",\n \"repl\",\n \"stream\",\n \"stream/promises\",\n \"string_decoder\",\n \"timers\",\n \"timers/promises\",\n \"tls\",\n \"trace_events\",\n \"tty\",\n \"url\",\n \"util\",\n \"util/types\",\n \"v8\",\n \"vm\",\n \"wasi\",\n \"worker_threads\",\n \"zlib\"\n ];\n JsTyping.prefixedNodeCoreModuleList = unprefixedNodeCoreModuleList.map(function (name) { return \"node:\" + name; });\n JsTyping.nodeCoreModuleList = __spreadArray(__spreadArray([], unprefixedNodeCoreModuleList, true), JsTyping.prefixedNodeCoreModuleList, true);\n JsTyping.nodeCoreModules = new ts.Set(JsTyping.nodeCoreModuleList);\n function nonRelativeModuleNameForTypingCache(moduleName) {\n return JsTyping.nodeCoreModules.has(moduleName) ? \"node\" : moduleName;\n }\n JsTyping.nonRelativeModuleNameForTypingCache = nonRelativeModuleNameForTypingCache;\n function loadSafeList(host, safeListPath) {\n var result = ts.readConfigFile(safeListPath, function (path) { return host.readFile(path); });\n return new ts.Map(ts.getEntries(result.config));\n }\n JsTyping.loadSafeList = loadSafeList;\n function loadTypesMap(host, typesMapPath) {\n var result = ts.readConfigFile(typesMapPath, function (path) { return host.readFile(path); });\n if (result.config) {\n return new ts.Map(ts.getEntries(result.config.simpleMap));\n }\n return undefined;\n }\n JsTyping.loadTypesMap = loadTypesMap;\n /**\n * @param host is the object providing I/O related operations.\n * @param fileNames are the file names that belong to the same project\n * @param projectRootPath is the path to the project root directory\n * @param safeListPath is the path used to retrieve the safe list\n * @param packageNameToTypingLocation is the map of package names to their cached typing locations and installed versions\n * @param typeAcquisition is used to customize the typing acquisition process\n * @param compilerOptions are used as a source for typing inference\n */\n function discoverTypings(host, log, fileNames, projectRootPath, safeList, packageNameToTypingLocation, typeAcquisition, unresolvedImports, typesRegistry) {\n if (!typeAcquisition || !typeAcquisition.enable) {\n return { cachedTypingPaths: [], newTypingNames: [], filesToWatch: [] };\n }\n // A typing name to typing file path mapping\n var inferredTypings = new ts.Map();\n // Only infer typings for .js and .jsx files\n fileNames = ts.mapDefined(fileNames, function (fileName) {\n var path = ts.normalizePath(fileName);\n if (ts.hasJSFileExtension(path)) {\n return path;\n }\n });\n var filesToWatch = [];\n if (typeAcquisition.include)\n addInferredTypings(typeAcquisition.include, \"Explicitly included types\");\n var exclude = typeAcquisition.exclude || [];\n // Directories to search for package.json, bower.json and other typing information\n var possibleSearchDirs = new ts.Set(fileNames.map(ts.getDirectoryPath));\n possibleSearchDirs.add(projectRootPath);\n possibleSearchDirs.forEach(function (searchDir) {\n var packageJsonPath = ts.combinePaths(searchDir, \"package.json\");\n getTypingNamesFromJson(packageJsonPath, filesToWatch);\n var bowerJsonPath = ts.combinePaths(searchDir, \"bower.json\");\n getTypingNamesFromJson(bowerJsonPath, filesToWatch);\n var bowerComponentsPath = ts.combinePaths(searchDir, \"bower_components\");\n getTypingNamesFromPackagesFolder(bowerComponentsPath, filesToWatch);\n var nodeModulesPath = ts.combinePaths(searchDir, \"node_modules\");\n getTypingNamesFromPackagesFolder(nodeModulesPath, filesToWatch);\n });\n if (!typeAcquisition.disableFilenameBasedTypeAcquisition) {\n getTypingNamesFromSourceFileNames(fileNames);\n }\n // add typings for unresolved imports\n if (unresolvedImports) {\n var module_1 = ts.deduplicate(unresolvedImports.map(nonRelativeModuleNameForTypingCache), ts.equateStringsCaseSensitive, ts.compareStringsCaseSensitive);\n addInferredTypings(module_1, \"Inferred typings from unresolved imports\");\n }\n // Add the cached typing locations for inferred typings that are already installed\n packageNameToTypingLocation.forEach(function (typing, name) {\n var registryEntry = typesRegistry.get(name);\n if (inferredTypings.has(name) && inferredTypings.get(name) === undefined && registryEntry !== undefined && isTypingUpToDate(typing, registryEntry)) {\n inferredTypings.set(name, typing.typingLocation);\n }\n });\n // Remove typings that the user has added to the exclude list\n for (var _i = 0, exclude_1 = exclude; _i < exclude_1.length; _i++) {\n var excludeTypingName = exclude_1[_i];\n var didDelete = inferredTypings.delete(excludeTypingName);\n if (didDelete && log)\n log(\"Typing for \" + excludeTypingName + \" is in exclude list, will be ignored.\");\n }\n var newTypingNames = [];\n var cachedTypingPaths = [];\n inferredTypings.forEach(function (inferred, typing) {\n if (inferred !== undefined) {\n cachedTypingPaths.push(inferred);\n }\n else {\n newTypingNames.push(typing);\n }\n });\n var result = { cachedTypingPaths: cachedTypingPaths, newTypingNames: newTypingNames, filesToWatch: filesToWatch };\n if (log)\n log(\"Result: \" + JSON.stringify(result));\n return result;\n function addInferredTyping(typingName) {\n if (!inferredTypings.has(typingName)) {\n inferredTypings.set(typingName, undefined); // TODO: GH#18217\n }\n }\n function addInferredTypings(typingNames, message) {\n if (log)\n log(message + \": \" + JSON.stringify(typingNames));\n ts.forEach(typingNames, addInferredTyping);\n }\n /**\n * Get the typing info from common package manager json files like package.json or bower.json\n */\n function getTypingNamesFromJson(jsonPath, filesToWatch) {\n if (!host.fileExists(jsonPath)) {\n return;\n }\n filesToWatch.push(jsonPath);\n var jsonConfig = ts.readConfigFile(jsonPath, function (path) { return host.readFile(path); }).config;\n var jsonTypingNames = ts.flatMap([jsonConfig.dependencies, jsonConfig.devDependencies, jsonConfig.optionalDependencies, jsonConfig.peerDependencies], ts.getOwnKeys);\n addInferredTypings(jsonTypingNames, \"Typing names in '\" + jsonPath + \"' dependencies\");\n }\n /**\n * Infer typing names from given file names. For example, the file name \"jquery-min.2.3.4.js\"\n * should be inferred to the 'jquery' typing name; and \"angular-route.1.2.3.js\" should be inferred\n * to the 'angular-route' typing name.\n * @param fileNames are the names for source files in the project\n */\n function getTypingNamesFromSourceFileNames(fileNames) {\n var fromFileNames = ts.mapDefined(fileNames, function (j) {\n if (!ts.hasJSFileExtension(j))\n return undefined;\n var inferredTypingName = ts.removeFileExtension(ts.getBaseFileName(j.toLowerCase()));\n var cleanedTypingName = ts.removeMinAndVersionNumbers(inferredTypingName);\n return safeList.get(cleanedTypingName);\n });\n if (fromFileNames.length) {\n addInferredTypings(fromFileNames, \"Inferred typings from file names\");\n }\n var hasJsxFile = ts.some(fileNames, function (f) { return ts.fileExtensionIs(f, \".jsx\" /* Jsx */); });\n if (hasJsxFile) {\n if (log)\n log(\"Inferred 'react' typings due to presence of '.jsx' extension\");\n addInferredTyping(\"react\");\n }\n }\n /**\n * Infer typing names from packages folder (ex: node_module, bower_components)\n * @param packagesFolderPath is the path to the packages folder\n */\n function getTypingNamesFromPackagesFolder(packagesFolderPath, filesToWatch) {\n filesToWatch.push(packagesFolderPath);\n // Todo: add support for ModuleResolutionHost too\n if (!host.directoryExists(packagesFolderPath)) {\n return;\n }\n // depth of 2, so we access `node_modules/foo` but not `node_modules/foo/bar`\n var fileNames = host.readDirectory(packagesFolderPath, [\".json\" /* Json */], /*excludes*/ undefined, /*includes*/ undefined, /*depth*/ 2);\n if (log)\n log(\"Searching for typing names in \" + packagesFolderPath + \"; all files: \" + JSON.stringify(fileNames));\n var packageNames = [];\n for (var _i = 0, fileNames_1 = fileNames; _i < fileNames_1.length; _i++) {\n var fileName = fileNames_1[_i];\n var normalizedFileName = ts.normalizePath(fileName);\n var baseFileName = ts.getBaseFileName(normalizedFileName);\n if (baseFileName !== \"package.json\" && baseFileName !== \"bower.json\") {\n continue;\n }\n var result_1 = ts.readConfigFile(normalizedFileName, function (path) { return host.readFile(path); });\n var packageJson = result_1.config;\n // npm 3's package.json contains a \"_requiredBy\" field\n // we should include all the top level module names for npm 2, and only module names whose\n // \"_requiredBy\" field starts with \"#\" or equals \"/\" for npm 3.\n if (baseFileName === \"package.json\" && packageJson._requiredBy &&\n ts.filter(packageJson._requiredBy, function (r) { return r[0] === \"#\" || r === \"/\"; }).length === 0) {\n continue;\n }\n // If the package has its own d.ts typings, those will take precedence. Otherwise the package name will be used\n // to download d.ts files from DefinitelyTyped\n if (!packageJson.name) {\n continue;\n }\n var ownTypes = packageJson.types || packageJson.typings;\n if (ownTypes) {\n var absolutePath = ts.getNormalizedAbsolutePath(ownTypes, ts.getDirectoryPath(normalizedFileName));\n if (log)\n log(\" Package '\" + packageJson.name + \"' provides its own types.\");\n inferredTypings.set(packageJson.name, absolutePath);\n }\n else {\n packageNames.push(packageJson.name);\n }\n }\n addInferredTypings(packageNames, \" Found package names\");\n }\n }\n JsTyping.discoverTypings = discoverTypings;\n var NameValidationResult;\n (function (NameValidationResult) {\n NameValidationResult[NameValidationResult[\"Ok\"] = 0] = \"Ok\";\n NameValidationResult[NameValidationResult[\"EmptyName\"] = 1] = \"EmptyName\";\n NameValidationResult[NameValidationResult[\"NameTooLong\"] = 2] = \"NameTooLong\";\n NameValidationResult[NameValidationResult[\"NameStartsWithDot\"] = 3] = \"NameStartsWithDot\";\n NameValidationResult[NameValidationResult[\"NameStartsWithUnderscore\"] = 4] = \"NameStartsWithUnderscore\";\n NameValidationResult[NameValidationResult[\"NameContainsNonURISafeCharacters\"] = 5] = \"NameContainsNonURISafeCharacters\";\n })(NameValidationResult = JsTyping.NameValidationResult || (JsTyping.NameValidationResult = {}));\n var maxPackageNameLength = 214;\n /**\n * Validates package name using rules defined at https://docs.npmjs.com/files/package.json\n */\n function validatePackageName(packageName) {\n return validatePackageNameWorker(packageName, /*supportScopedPackage*/ true);\n }\n JsTyping.validatePackageName = validatePackageName;\n function validatePackageNameWorker(packageName, supportScopedPackage) {\n if (!packageName) {\n return 1 /* EmptyName */;\n }\n if (packageName.length > maxPackageNameLength) {\n return 2 /* NameTooLong */;\n }\n if (packageName.charCodeAt(0) === 46 /* dot */) {\n return 3 /* NameStartsWithDot */;\n }\n if (packageName.charCodeAt(0) === 95 /* _ */) {\n return 4 /* NameStartsWithUnderscore */;\n }\n // check if name is scope package like: starts with @ and has one '/' in the middle\n // scoped packages are not currently supported\n if (supportScopedPackage) {\n var matches = /^@([^/]+)\\/([^/]+)$/.exec(packageName);\n if (matches) {\n var scopeResult = validatePackageNameWorker(matches[1], /*supportScopedPackage*/ false);\n if (scopeResult !== 0 /* Ok */) {\n return { name: matches[1], isScopeName: true, result: scopeResult };\n }\n var packageResult = validatePackageNameWorker(matches[2], /*supportScopedPackage*/ false);\n if (packageResult !== 0 /* Ok */) {\n return { name: matches[2], isScopeName: false, result: packageResult };\n }\n return 0 /* Ok */;\n }\n }\n if (encodeURIComponent(packageName) !== packageName) {\n return 5 /* NameContainsNonURISafeCharacters */;\n }\n return 0 /* Ok */;\n }\n function renderPackageNameValidationFailure(result, typing) {\n return typeof result === \"object\" ?\n renderPackageNameValidationFailureWorker(typing, result.result, result.name, result.isScopeName) :\n renderPackageNameValidationFailureWorker(typing, result, typing, /*isScopeName*/ false);\n }\n JsTyping.renderPackageNameValidationFailure = renderPackageNameValidationFailure;\n function renderPackageNameValidationFailureWorker(typing, result, name, isScopeName) {\n var kind = isScopeName ? \"Scope\" : \"Package\";\n switch (result) {\n case 1 /* EmptyName */:\n return \"'\" + typing + \"':: \" + kind + \" name '\" + name + \"' cannot be empty\";\n case 2 /* NameTooLong */:\n return \"'\" + typing + \"':: \" + kind + \" name '\" + name + \"' should be less than \" + maxPackageNameLength + \" characters\";\n case 3 /* NameStartsWithDot */:\n return \"'\" + typing + \"':: \" + kind + \" name '\" + name + \"' cannot start with '.'\";\n case 4 /* NameStartsWithUnderscore */:\n return \"'\" + typing + \"':: \" + kind + \" name '\" + name + \"' cannot start with '_'\";\n case 5 /* NameContainsNonURISafeCharacters */:\n return \"'\" + typing + \"':: \" + kind + \" name '\" + name + \"' contains non URI safe characters\";\n case 0 /* Ok */:\n return ts.Debug.fail(); // Shouldn't have called this.\n default:\n throw ts.Debug.assertNever(result);\n }\n }\n })(JsTyping = ts.JsTyping || (ts.JsTyping = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n var ScriptSnapshot;\n (function (ScriptSnapshot) {\n var StringScriptSnapshot = /** @class */ (function () {\n function StringScriptSnapshot(text) {\n this.text = text;\n }\n StringScriptSnapshot.prototype.getText = function (start, end) {\n return start === 0 && end === this.text.length\n ? this.text\n : this.text.substring(start, end);\n };\n StringScriptSnapshot.prototype.getLength = function () {\n return this.text.length;\n };\n StringScriptSnapshot.prototype.getChangeRange = function () {\n // Text-based snapshots do not support incremental parsing. Return undefined\n // to signal that to the caller.\n return undefined;\n };\n return StringScriptSnapshot;\n }());\n function fromString(text) {\n return new StringScriptSnapshot(text);\n }\n ScriptSnapshot.fromString = fromString;\n })(ScriptSnapshot = ts.ScriptSnapshot || (ts.ScriptSnapshot = {}));\n /* @internal */\n var PackageJsonDependencyGroup;\n (function (PackageJsonDependencyGroup) {\n PackageJsonDependencyGroup[PackageJsonDependencyGroup[\"Dependencies\"] = 1] = \"Dependencies\";\n PackageJsonDependencyGroup[PackageJsonDependencyGroup[\"DevDependencies\"] = 2] = \"DevDependencies\";\n PackageJsonDependencyGroup[PackageJsonDependencyGroup[\"PeerDependencies\"] = 4] = \"PeerDependencies\";\n PackageJsonDependencyGroup[PackageJsonDependencyGroup[\"OptionalDependencies\"] = 8] = \"OptionalDependencies\";\n PackageJsonDependencyGroup[PackageJsonDependencyGroup[\"All\"] = 15] = \"All\";\n })(PackageJsonDependencyGroup = ts.PackageJsonDependencyGroup || (ts.PackageJsonDependencyGroup = {}));\n /* @internal */\n var PackageJsonAutoImportPreference;\n (function (PackageJsonAutoImportPreference) {\n PackageJsonAutoImportPreference[PackageJsonAutoImportPreference[\"Off\"] = 0] = \"Off\";\n PackageJsonAutoImportPreference[PackageJsonAutoImportPreference[\"On\"] = 1] = \"On\";\n PackageJsonAutoImportPreference[PackageJsonAutoImportPreference[\"Auto\"] = 2] = \"Auto\";\n })(PackageJsonAutoImportPreference = ts.PackageJsonAutoImportPreference || (ts.PackageJsonAutoImportPreference = {}));\n var LanguageServiceMode;\n (function (LanguageServiceMode) {\n LanguageServiceMode[LanguageServiceMode[\"Semantic\"] = 0] = \"Semantic\";\n LanguageServiceMode[LanguageServiceMode[\"PartialSemantic\"] = 1] = \"PartialSemantic\";\n LanguageServiceMode[LanguageServiceMode[\"Syntactic\"] = 2] = \"Syntactic\";\n })(LanguageServiceMode = ts.LanguageServiceMode || (ts.LanguageServiceMode = {}));\n /* @internal */\n ts.emptyOptions = {};\n var SemanticClassificationFormat;\n (function (SemanticClassificationFormat) {\n SemanticClassificationFormat[\"Original\"] = \"original\";\n SemanticClassificationFormat[\"TwentyTwenty\"] = \"2020\";\n })(SemanticClassificationFormat = ts.SemanticClassificationFormat || (ts.SemanticClassificationFormat = {}));\n var CompletionTriggerKind;\n (function (CompletionTriggerKind) {\n /** Completion was triggered by typing an identifier, manual invocation (e.g Ctrl+Space) or via API. */\n CompletionTriggerKind[CompletionTriggerKind[\"Invoked\"] = 1] = \"Invoked\";\n /** Completion was triggered by a trigger character. */\n CompletionTriggerKind[CompletionTriggerKind[\"TriggerCharacter\"] = 2] = \"TriggerCharacter\";\n /** Completion was re-triggered as the current completion list is incomplete. */\n CompletionTriggerKind[CompletionTriggerKind[\"TriggerForIncompleteCompletions\"] = 3] = \"TriggerForIncompleteCompletions\";\n })(CompletionTriggerKind = ts.CompletionTriggerKind || (ts.CompletionTriggerKind = {}));\n var InlayHintKind;\n (function (InlayHintKind) {\n InlayHintKind[\"Type\"] = \"Type\";\n InlayHintKind[\"Parameter\"] = \"Parameter\";\n InlayHintKind[\"Enum\"] = \"Enum\";\n })(InlayHintKind = ts.InlayHintKind || (ts.InlayHintKind = {}));\n var HighlightSpanKind;\n (function (HighlightSpanKind) {\n HighlightSpanKind[\"none\"] = \"none\";\n HighlightSpanKind[\"definition\"] = \"definition\";\n HighlightSpanKind[\"reference\"] = \"reference\";\n HighlightSpanKind[\"writtenReference\"] = \"writtenReference\";\n })(HighlightSpanKind = ts.HighlightSpanKind || (ts.HighlightSpanKind = {}));\n var IndentStyle;\n (function (IndentStyle) {\n IndentStyle[IndentStyle[\"None\"] = 0] = \"None\";\n IndentStyle[IndentStyle[\"Block\"] = 1] = \"Block\";\n IndentStyle[IndentStyle[\"Smart\"] = 2] = \"Smart\";\n })(IndentStyle = ts.IndentStyle || (ts.IndentStyle = {}));\n var SemicolonPreference;\n (function (SemicolonPreference) {\n SemicolonPreference[\"Ignore\"] = \"ignore\";\n SemicolonPreference[\"Insert\"] = \"insert\";\n SemicolonPreference[\"Remove\"] = \"remove\";\n })(SemicolonPreference = ts.SemicolonPreference || (ts.SemicolonPreference = {}));\n function getDefaultFormatCodeSettings(newLineCharacter) {\n return {\n indentSize: 4,\n tabSize: 4,\n newLineCharacter: newLineCharacter || \"\\n\",\n convertTabsToSpaces: true,\n indentStyle: IndentStyle.Smart,\n insertSpaceAfterConstructor: false,\n insertSpaceAfterCommaDelimiter: true,\n insertSpaceAfterSemicolonInForStatements: true,\n insertSpaceBeforeAndAfterBinaryOperators: true,\n insertSpaceAfterKeywordsInControlFlowStatements: true,\n insertSpaceAfterFunctionKeywordForAnonymousFunctions: false,\n insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis: false,\n insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets: false,\n insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces: true,\n insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces: false,\n insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces: false,\n insertSpaceBeforeFunctionParenthesis: false,\n placeOpenBraceOnNewLineForFunctions: false,\n placeOpenBraceOnNewLineForControlBlocks: false,\n semicolons: SemicolonPreference.Ignore,\n trimTrailingWhitespace: true\n };\n }\n ts.getDefaultFormatCodeSettings = getDefaultFormatCodeSettings;\n /* @internal */\n ts.testFormatSettings = getDefaultFormatCodeSettings(\"\\n\");\n var SymbolDisplayPartKind;\n (function (SymbolDisplayPartKind) {\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"aliasName\"] = 0] = \"aliasName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"className\"] = 1] = \"className\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"enumName\"] = 2] = \"enumName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"fieldName\"] = 3] = \"fieldName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"interfaceName\"] = 4] = \"interfaceName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"keyword\"] = 5] = \"keyword\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"lineBreak\"] = 6] = \"lineBreak\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"numericLiteral\"] = 7] = \"numericLiteral\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"stringLiteral\"] = 8] = \"stringLiteral\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"localName\"] = 9] = \"localName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"methodName\"] = 10] = \"methodName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"moduleName\"] = 11] = \"moduleName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"operator\"] = 12] = \"operator\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"parameterName\"] = 13] = \"parameterName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"propertyName\"] = 14] = \"propertyName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"punctuation\"] = 15] = \"punctuation\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"space\"] = 16] = \"space\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"text\"] = 17] = \"text\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"typeParameterName\"] = 18] = \"typeParameterName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"enumMemberName\"] = 19] = \"enumMemberName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"functionName\"] = 20] = \"functionName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"regularExpressionLiteral\"] = 21] = \"regularExpressionLiteral\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"link\"] = 22] = \"link\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"linkName\"] = 23] = \"linkName\";\n SymbolDisplayPartKind[SymbolDisplayPartKind[\"linkText\"] = 24] = \"linkText\";\n })(SymbolDisplayPartKind = ts.SymbolDisplayPartKind || (ts.SymbolDisplayPartKind = {}));\n var OutliningSpanKind;\n (function (OutliningSpanKind) {\n /** Single or multi-line comments */\n OutliningSpanKind[\"Comment\"] = \"comment\";\n /** Sections marked by '// #region' and '// #endregion' comments */\n OutliningSpanKind[\"Region\"] = \"region\";\n /** Declarations and expressions */\n OutliningSpanKind[\"Code\"] = \"code\";\n /** Contiguous blocks of import declarations */\n OutliningSpanKind[\"Imports\"] = \"imports\";\n })(OutliningSpanKind = ts.OutliningSpanKind || (ts.OutliningSpanKind = {}));\n var OutputFileType;\n (function (OutputFileType) {\n OutputFileType[OutputFileType[\"JavaScript\"] = 0] = \"JavaScript\";\n OutputFileType[OutputFileType[\"SourceMap\"] = 1] = \"SourceMap\";\n OutputFileType[OutputFileType[\"Declaration\"] = 2] = \"Declaration\";\n })(OutputFileType = ts.OutputFileType || (ts.OutputFileType = {}));\n var EndOfLineState;\n (function (EndOfLineState) {\n EndOfLineState[EndOfLineState[\"None\"] = 0] = \"None\";\n EndOfLineState[EndOfLineState[\"InMultiLineCommentTrivia\"] = 1] = \"InMultiLineCommentTrivia\";\n EndOfLineState[EndOfLineState[\"InSingleQuoteStringLiteral\"] = 2] = \"InSingleQuoteStringLiteral\";\n EndOfLineState[EndOfLineState[\"InDoubleQuoteStringLiteral\"] = 3] = \"InDoubleQuoteStringLiteral\";\n EndOfLineState[EndOfLineState[\"InTemplateHeadOrNoSubstitutionTemplate\"] = 4] = \"InTemplateHeadOrNoSubstitutionTemplate\";\n EndOfLineState[EndOfLineState[\"InTemplateMiddleOrTail\"] = 5] = \"InTemplateMiddleOrTail\";\n EndOfLineState[EndOfLineState[\"InTemplateSubstitutionPosition\"] = 6] = \"InTemplateSubstitutionPosition\";\n })(EndOfLineState = ts.EndOfLineState || (ts.EndOfLineState = {}));\n var TokenClass;\n (function (TokenClass) {\n TokenClass[TokenClass[\"Punctuation\"] = 0] = \"Punctuation\";\n TokenClass[TokenClass[\"Keyword\"] = 1] = \"Keyword\";\n TokenClass[TokenClass[\"Operator\"] = 2] = \"Operator\";\n TokenClass[TokenClass[\"Comment\"] = 3] = \"Comment\";\n TokenClass[TokenClass[\"Whitespace\"] = 4] = \"Whitespace\";\n TokenClass[TokenClass[\"Identifier\"] = 5] = \"Identifier\";\n TokenClass[TokenClass[\"NumberLiteral\"] = 6] = \"NumberLiteral\";\n TokenClass[TokenClass[\"BigIntLiteral\"] = 7] = \"BigIntLiteral\";\n TokenClass[TokenClass[\"StringLiteral\"] = 8] = \"StringLiteral\";\n TokenClass[TokenClass[\"RegExpLiteral\"] = 9] = \"RegExpLiteral\";\n })(TokenClass = ts.TokenClass || (ts.TokenClass = {}));\n var ScriptElementKind;\n (function (ScriptElementKind) {\n ScriptElementKind[\"unknown\"] = \"\";\n ScriptElementKind[\"warning\"] = \"warning\";\n /** predefined type (void) or keyword (class) */\n ScriptElementKind[\"keyword\"] = \"keyword\";\n /** top level script node */\n ScriptElementKind[\"scriptElement\"] = \"script\";\n /** module foo {} */\n ScriptElementKind[\"moduleElement\"] = \"module\";\n /** class X {} */\n ScriptElementKind[\"classElement\"] = \"class\";\n /** var x = class X {} */\n ScriptElementKind[\"localClassElement\"] = \"local class\";\n /** interface Y {} */\n ScriptElementKind[\"interfaceElement\"] = \"interface\";\n /** type T = ... */\n ScriptElementKind[\"typeElement\"] = \"type\";\n /** enum E */\n ScriptElementKind[\"enumElement\"] = \"enum\";\n ScriptElementKind[\"enumMemberElement\"] = \"enum member\";\n /**\n * Inside module and script only\n * const v = ..\n */\n ScriptElementKind[\"variableElement\"] = \"var\";\n /** Inside function */\n ScriptElementKind[\"localVariableElement\"] = \"local var\";\n /**\n * Inside module and script only\n * function f() { }\n */\n ScriptElementKind[\"functionElement\"] = \"function\";\n /** Inside function */\n ScriptElementKind[\"localFunctionElement\"] = \"local function\";\n /** class X { [public|private]* foo() {} } */\n ScriptElementKind[\"memberFunctionElement\"] = \"method\";\n /** class X { [public|private]* [get|set] foo:number; } */\n ScriptElementKind[\"memberGetAccessorElement\"] = \"getter\";\n ScriptElementKind[\"memberSetAccessorElement\"] = \"setter\";\n /**\n * class X { [public|private]* foo:number; }\n * interface Y { foo:number; }\n */\n ScriptElementKind[\"memberVariableElement\"] = \"property\";\n /**\n * class X { constructor() { } }\n * class X { static { } }\n */\n ScriptElementKind[\"constructorImplementationElement\"] = \"constructor\";\n /** interface Y { ():number; } */\n ScriptElementKind[\"callSignatureElement\"] = \"call\";\n /** interface Y { []:number; } */\n ScriptElementKind[\"indexSignatureElement\"] = \"index\";\n /** interface Y { new():Y; } */\n ScriptElementKind[\"constructSignatureElement\"] = \"construct\";\n /** function foo(*Y*: string) */\n ScriptElementKind[\"parameterElement\"] = \"parameter\";\n ScriptElementKind[\"typeParameterElement\"] = \"type parameter\";\n ScriptElementKind[\"primitiveType\"] = \"primitive type\";\n ScriptElementKind[\"label\"] = \"label\";\n ScriptElementKind[\"alias\"] = \"alias\";\n ScriptElementKind[\"constElement\"] = \"const\";\n ScriptElementKind[\"letElement\"] = \"let\";\n ScriptElementKind[\"directory\"] = \"directory\";\n ScriptElementKind[\"externalModuleName\"] = \"external module name\";\n /**\n * \n */\n ScriptElementKind[\"jsxAttribute\"] = \"JSX attribute\";\n /** String literal */\n ScriptElementKind[\"string\"] = \"string\";\n /** Jsdoc @link: in `{@link C link text}`, the before and after text \"{@link \" and \"}\" */\n ScriptElementKind[\"link\"] = \"link\";\n /** Jsdoc @link: in `{@link C link text}`, the entity name \"C\" */\n ScriptElementKind[\"linkName\"] = \"link name\";\n /** Jsdoc @link: in `{@link C link text}`, the link text \"link text\" */\n ScriptElementKind[\"linkText\"] = \"link text\";\n })(ScriptElementKind = ts.ScriptElementKind || (ts.ScriptElementKind = {}));\n var ScriptElementKindModifier;\n (function (ScriptElementKindModifier) {\n ScriptElementKindModifier[\"none\"] = \"\";\n ScriptElementKindModifier[\"publicMemberModifier\"] = \"public\";\n ScriptElementKindModifier[\"privateMemberModifier\"] = \"private\";\n ScriptElementKindModifier[\"protectedMemberModifier\"] = \"protected\";\n ScriptElementKindModifier[\"exportedModifier\"] = \"export\";\n ScriptElementKindModifier[\"ambientModifier\"] = \"declare\";\n ScriptElementKindModifier[\"staticModifier\"] = \"static\";\n ScriptElementKindModifier[\"abstractModifier\"] = \"abstract\";\n ScriptElementKindModifier[\"optionalModifier\"] = \"optional\";\n ScriptElementKindModifier[\"deprecatedModifier\"] = \"deprecated\";\n ScriptElementKindModifier[\"dtsModifier\"] = \".d.ts\";\n ScriptElementKindModifier[\"tsModifier\"] = \".ts\";\n ScriptElementKindModifier[\"tsxModifier\"] = \".tsx\";\n ScriptElementKindModifier[\"jsModifier\"] = \".js\";\n ScriptElementKindModifier[\"jsxModifier\"] = \".jsx\";\n ScriptElementKindModifier[\"jsonModifier\"] = \".json\";\n })(ScriptElementKindModifier = ts.ScriptElementKindModifier || (ts.ScriptElementKindModifier = {}));\n var ClassificationTypeNames;\n (function (ClassificationTypeNames) {\n ClassificationTypeNames[\"comment\"] = \"comment\";\n ClassificationTypeNames[\"identifier\"] = \"identifier\";\n ClassificationTypeNames[\"keyword\"] = \"keyword\";\n ClassificationTypeNames[\"numericLiteral\"] = \"number\";\n ClassificationTypeNames[\"bigintLiteral\"] = \"bigint\";\n ClassificationTypeNames[\"operator\"] = \"operator\";\n ClassificationTypeNames[\"stringLiteral\"] = \"string\";\n ClassificationTypeNames[\"whiteSpace\"] = \"whitespace\";\n ClassificationTypeNames[\"text\"] = \"text\";\n ClassificationTypeNames[\"punctuation\"] = \"punctuation\";\n ClassificationTypeNames[\"className\"] = \"class name\";\n ClassificationTypeNames[\"enumName\"] = \"enum name\";\n ClassificationTypeNames[\"interfaceName\"] = \"interface name\";\n ClassificationTypeNames[\"moduleName\"] = \"module name\";\n ClassificationTypeNames[\"typeParameterName\"] = \"type parameter name\";\n ClassificationTypeNames[\"typeAliasName\"] = \"type alias name\";\n ClassificationTypeNames[\"parameterName\"] = \"parameter name\";\n ClassificationTypeNames[\"docCommentTagName\"] = \"doc comment tag name\";\n ClassificationTypeNames[\"jsxOpenTagName\"] = \"jsx open tag name\";\n ClassificationTypeNames[\"jsxCloseTagName\"] = \"jsx close tag name\";\n ClassificationTypeNames[\"jsxSelfClosingTagName\"] = \"jsx self closing tag name\";\n ClassificationTypeNames[\"jsxAttribute\"] = \"jsx attribute\";\n ClassificationTypeNames[\"jsxText\"] = \"jsx text\";\n ClassificationTypeNames[\"jsxAttributeStringLiteralValue\"] = \"jsx attribute string literal value\";\n })(ClassificationTypeNames = ts.ClassificationTypeNames || (ts.ClassificationTypeNames = {}));\n var ClassificationType;\n (function (ClassificationType) {\n ClassificationType[ClassificationType[\"comment\"] = 1] = \"comment\";\n ClassificationType[ClassificationType[\"identifier\"] = 2] = \"identifier\";\n ClassificationType[ClassificationType[\"keyword\"] = 3] = \"keyword\";\n ClassificationType[ClassificationType[\"numericLiteral\"] = 4] = \"numericLiteral\";\n ClassificationType[ClassificationType[\"operator\"] = 5] = \"operator\";\n ClassificationType[ClassificationType[\"stringLiteral\"] = 6] = \"stringLiteral\";\n ClassificationType[ClassificationType[\"regularExpressionLiteral\"] = 7] = \"regularExpressionLiteral\";\n ClassificationType[ClassificationType[\"whiteSpace\"] = 8] = \"whiteSpace\";\n ClassificationType[ClassificationType[\"text\"] = 9] = \"text\";\n ClassificationType[ClassificationType[\"punctuation\"] = 10] = \"punctuation\";\n ClassificationType[ClassificationType[\"className\"] = 11] = \"className\";\n ClassificationType[ClassificationType[\"enumName\"] = 12] = \"enumName\";\n ClassificationType[ClassificationType[\"interfaceName\"] = 13] = \"interfaceName\";\n ClassificationType[ClassificationType[\"moduleName\"] = 14] = \"moduleName\";\n ClassificationType[ClassificationType[\"typeParameterName\"] = 15] = \"typeParameterName\";\n ClassificationType[ClassificationType[\"typeAliasName\"] = 16] = \"typeAliasName\";\n ClassificationType[ClassificationType[\"parameterName\"] = 17] = \"parameterName\";\n ClassificationType[ClassificationType[\"docCommentTagName\"] = 18] = \"docCommentTagName\";\n ClassificationType[ClassificationType[\"jsxOpenTagName\"] = 19] = \"jsxOpenTagName\";\n ClassificationType[ClassificationType[\"jsxCloseTagName\"] = 20] = \"jsxCloseTagName\";\n ClassificationType[ClassificationType[\"jsxSelfClosingTagName\"] = 21] = \"jsxSelfClosingTagName\";\n ClassificationType[ClassificationType[\"jsxAttribute\"] = 22] = \"jsxAttribute\";\n ClassificationType[ClassificationType[\"jsxText\"] = 23] = \"jsxText\";\n ClassificationType[ClassificationType[\"jsxAttributeStringLiteralValue\"] = 24] = \"jsxAttributeStringLiteralValue\";\n ClassificationType[ClassificationType[\"bigintLiteral\"] = 25] = \"bigintLiteral\";\n })(ClassificationType = ts.ClassificationType || (ts.ClassificationType = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n // These utilities are common to multiple language service features.\n //#region\n ts.scanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ true);\n var SemanticMeaning;\n (function (SemanticMeaning) {\n SemanticMeaning[SemanticMeaning[\"None\"] = 0] = \"None\";\n SemanticMeaning[SemanticMeaning[\"Value\"] = 1] = \"Value\";\n SemanticMeaning[SemanticMeaning[\"Type\"] = 2] = \"Type\";\n SemanticMeaning[SemanticMeaning[\"Namespace\"] = 4] = \"Namespace\";\n SemanticMeaning[SemanticMeaning[\"All\"] = 7] = \"All\";\n })(SemanticMeaning = ts.SemanticMeaning || (ts.SemanticMeaning = {}));\n function getMeaningFromDeclaration(node) {\n switch (node.kind) {\n case 252 /* VariableDeclaration */:\n return ts.isInJSFile(node) && ts.getJSDocEnumTag(node) ? 7 /* All */ : 1 /* Value */;\n case 162 /* Parameter */:\n case 201 /* BindingElement */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 290 /* CatchClause */:\n case 283 /* JsxAttribute */:\n return 1 /* Value */;\n case 161 /* TypeParameter */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 180 /* TypeLiteral */:\n return 2 /* Type */;\n case 340 /* JSDocTypedefTag */:\n // If it has no name node, it shares the name with the value declaration below it.\n return node.name === undefined ? 1 /* Value */ | 2 /* Type */ : 2 /* Type */;\n case 294 /* EnumMember */:\n case 255 /* ClassDeclaration */:\n return 1 /* Value */ | 2 /* Type */;\n case 259 /* ModuleDeclaration */:\n if (ts.isAmbientModule(node)) {\n return 4 /* Namespace */ | 1 /* Value */;\n }\n else if (ts.getModuleInstanceState(node) === 1 /* Instantiated */) {\n return 4 /* Namespace */ | 1 /* Value */;\n }\n else {\n return 4 /* Namespace */;\n }\n case 258 /* EnumDeclaration */:\n case 267 /* NamedImports */:\n case 268 /* ImportSpecifier */:\n case 263 /* ImportEqualsDeclaration */:\n case 264 /* ImportDeclaration */:\n case 269 /* ExportAssignment */:\n case 270 /* ExportDeclaration */:\n return 7 /* All */;\n // An external module can be a Value\n case 300 /* SourceFile */:\n return 4 /* Namespace */ | 1 /* Value */;\n }\n return 7 /* All */;\n }\n ts.getMeaningFromDeclaration = getMeaningFromDeclaration;\n function getMeaningFromLocation(node) {\n node = getAdjustedReferenceLocation(node);\n var parent = node.parent;\n if (node.kind === 300 /* SourceFile */) {\n return 1 /* Value */;\n }\n else if (ts.isExportAssignment(parent)\n || ts.isExportSpecifier(parent)\n || ts.isExternalModuleReference(parent)\n || ts.isImportSpecifier(parent)\n || ts.isImportClause(parent)\n || ts.isImportEqualsDeclaration(parent) && node === parent.name) {\n var decl = parent;\n while (decl) {\n if (ts.isImportEqualsDeclaration(decl) || ts.isImportClause(decl) || ts.isExportDeclaration(decl)) {\n return decl.isTypeOnly ? 2 /* Type */ : 7 /* All */;\n }\n decl = decl.parent;\n }\n return 7 /* All */;\n }\n else if (isInRightSideOfInternalImportEqualsDeclaration(node)) {\n return getMeaningFromRightHandSideOfImportEquals(node);\n }\n else if (ts.isDeclarationName(node)) {\n return getMeaningFromDeclaration(parent);\n }\n else if (ts.isEntityName(node) && ts.findAncestor(node, ts.or(ts.isJSDocNameReference, ts.isJSDocLinkLike, ts.isJSDocMemberName))) {\n return 7 /* All */;\n }\n else if (isTypeReference(node)) {\n return 2 /* Type */;\n }\n else if (isNamespaceReference(node)) {\n return 4 /* Namespace */;\n }\n else if (ts.isTypeParameterDeclaration(parent)) {\n ts.Debug.assert(ts.isJSDocTemplateTag(parent.parent)); // Else would be handled by isDeclarationName\n return 2 /* Type */;\n }\n else if (ts.isLiteralTypeNode(parent)) {\n // This might be T[\"name\"], which is actually referencing a property and not a type. So allow both meanings.\n return 2 /* Type */ | 1 /* Value */;\n }\n else {\n return 1 /* Value */;\n }\n }\n ts.getMeaningFromLocation = getMeaningFromLocation;\n function getMeaningFromRightHandSideOfImportEquals(node) {\n // import a = |b|; // Namespace\n // import a = |b.c|; // Value, type, namespace\n // import a = |b.c|.d; // Namespace\n var name = node.kind === 159 /* QualifiedName */ ? node : ts.isQualifiedName(node.parent) && node.parent.right === node ? node.parent : undefined;\n return name && name.parent.kind === 263 /* ImportEqualsDeclaration */ ? 7 /* All */ : 4 /* Namespace */;\n }\n function isInRightSideOfInternalImportEqualsDeclaration(node) {\n while (node.parent.kind === 159 /* QualifiedName */) {\n node = node.parent;\n }\n return ts.isInternalModuleImportEqualsDeclaration(node.parent) && node.parent.moduleReference === node;\n }\n ts.isInRightSideOfInternalImportEqualsDeclaration = isInRightSideOfInternalImportEqualsDeclaration;\n function isNamespaceReference(node) {\n return isQualifiedNameNamespaceReference(node) || isPropertyAccessNamespaceReference(node);\n }\n function isQualifiedNameNamespaceReference(node) {\n var root = node;\n var isLastClause = true;\n if (root.parent.kind === 159 /* QualifiedName */) {\n while (root.parent && root.parent.kind === 159 /* QualifiedName */) {\n root = root.parent;\n }\n isLastClause = root.right === node;\n }\n return root.parent.kind === 176 /* TypeReference */ && !isLastClause;\n }\n function isPropertyAccessNamespaceReference(node) {\n var root = node;\n var isLastClause = true;\n if (root.parent.kind === 204 /* PropertyAccessExpression */) {\n while (root.parent && root.parent.kind === 204 /* PropertyAccessExpression */) {\n root = root.parent;\n }\n isLastClause = root.name === node;\n }\n if (!isLastClause && root.parent.kind === 226 /* ExpressionWithTypeArguments */ && root.parent.parent.kind === 289 /* HeritageClause */) {\n var decl = root.parent.parent.parent;\n return (decl.kind === 255 /* ClassDeclaration */ && root.parent.parent.token === 117 /* ImplementsKeyword */) ||\n (decl.kind === 256 /* InterfaceDeclaration */ && root.parent.parent.token === 94 /* ExtendsKeyword */);\n }\n return false;\n }\n function isTypeReference(node) {\n if (ts.isRightSideOfQualifiedNameOrPropertyAccess(node)) {\n node = node.parent;\n }\n switch (node.kind) {\n case 108 /* ThisKeyword */:\n return !ts.isExpressionNode(node);\n case 190 /* ThisType */:\n return true;\n }\n switch (node.parent.kind) {\n case 176 /* TypeReference */:\n return true;\n case 198 /* ImportType */:\n return !node.parent.isTypeOf;\n case 226 /* ExpressionWithTypeArguments */:\n return !ts.isExpressionWithTypeArgumentsInClassExtendsClause(node.parent);\n }\n return false;\n }\n function isCallExpressionTarget(node, includeElementAccess, skipPastOuterExpressions) {\n if (includeElementAccess === void 0) { includeElementAccess = false; }\n if (skipPastOuterExpressions === void 0) { skipPastOuterExpressions = false; }\n return isCalleeWorker(node, ts.isCallExpression, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n }\n ts.isCallExpressionTarget = isCallExpressionTarget;\n function isNewExpressionTarget(node, includeElementAccess, skipPastOuterExpressions) {\n if (includeElementAccess === void 0) { includeElementAccess = false; }\n if (skipPastOuterExpressions === void 0) { skipPastOuterExpressions = false; }\n return isCalleeWorker(node, ts.isNewExpression, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n }\n ts.isNewExpressionTarget = isNewExpressionTarget;\n function isCallOrNewExpressionTarget(node, includeElementAccess, skipPastOuterExpressions) {\n if (includeElementAccess === void 0) { includeElementAccess = false; }\n if (skipPastOuterExpressions === void 0) { skipPastOuterExpressions = false; }\n return isCalleeWorker(node, ts.isCallOrNewExpression, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n }\n ts.isCallOrNewExpressionTarget = isCallOrNewExpressionTarget;\n function isTaggedTemplateTag(node, includeElementAccess, skipPastOuterExpressions) {\n if (includeElementAccess === void 0) { includeElementAccess = false; }\n if (skipPastOuterExpressions === void 0) { skipPastOuterExpressions = false; }\n return isCalleeWorker(node, ts.isTaggedTemplateExpression, selectTagOfTaggedTemplateExpression, includeElementAccess, skipPastOuterExpressions);\n }\n ts.isTaggedTemplateTag = isTaggedTemplateTag;\n function isDecoratorTarget(node, includeElementAccess, skipPastOuterExpressions) {\n if (includeElementAccess === void 0) { includeElementAccess = false; }\n if (skipPastOuterExpressions === void 0) { skipPastOuterExpressions = false; }\n return isCalleeWorker(node, ts.isDecorator, selectExpressionOfCallOrNewExpressionOrDecorator, includeElementAccess, skipPastOuterExpressions);\n }\n ts.isDecoratorTarget = isDecoratorTarget;\n function isJsxOpeningLikeElementTagName(node, includeElementAccess, skipPastOuterExpressions) {\n if (includeElementAccess === void 0) { includeElementAccess = false; }\n if (skipPastOuterExpressions === void 0) { skipPastOuterExpressions = false; }\n return isCalleeWorker(node, ts.isJsxOpeningLikeElement, selectTagNameOfJsxOpeningLikeElement, includeElementAccess, skipPastOuterExpressions);\n }\n ts.isJsxOpeningLikeElementTagName = isJsxOpeningLikeElementTagName;\n function selectExpressionOfCallOrNewExpressionOrDecorator(node) {\n return node.expression;\n }\n function selectTagOfTaggedTemplateExpression(node) {\n return node.tag;\n }\n function selectTagNameOfJsxOpeningLikeElement(node) {\n return node.tagName;\n }\n function isCalleeWorker(node, pred, calleeSelector, includeElementAccess, skipPastOuterExpressions) {\n var target = includeElementAccess ? climbPastPropertyOrElementAccess(node) : climbPastPropertyAccess(node);\n if (skipPastOuterExpressions) {\n target = ts.skipOuterExpressions(target);\n }\n return !!target && !!target.parent && pred(target.parent) && calleeSelector(target.parent) === target;\n }\n function climbPastPropertyAccess(node) {\n return isRightSideOfPropertyAccess(node) ? node.parent : node;\n }\n ts.climbPastPropertyAccess = climbPastPropertyAccess;\n function climbPastPropertyOrElementAccess(node) {\n return isRightSideOfPropertyAccess(node) || isArgumentExpressionOfElementAccess(node) ? node.parent : node;\n }\n ts.climbPastPropertyOrElementAccess = climbPastPropertyOrElementAccess;\n function getTargetLabel(referenceNode, labelName) {\n while (referenceNode) {\n if (referenceNode.kind === 248 /* LabeledStatement */ && referenceNode.label.escapedText === labelName) {\n return referenceNode.label;\n }\n referenceNode = referenceNode.parent;\n }\n return undefined;\n }\n ts.getTargetLabel = getTargetLabel;\n function hasPropertyAccessExpressionWithName(node, funcName) {\n if (!ts.isPropertyAccessExpression(node.expression)) {\n return false;\n }\n return node.expression.name.text === funcName;\n }\n ts.hasPropertyAccessExpressionWithName = hasPropertyAccessExpressionWithName;\n function isJumpStatementTarget(node) {\n var _a;\n return ts.isIdentifier(node) && ((_a = ts.tryCast(node.parent, ts.isBreakOrContinueStatement)) === null || _a === void 0 ? void 0 : _a.label) === node;\n }\n ts.isJumpStatementTarget = isJumpStatementTarget;\n function isLabelOfLabeledStatement(node) {\n var _a;\n return ts.isIdentifier(node) && ((_a = ts.tryCast(node.parent, ts.isLabeledStatement)) === null || _a === void 0 ? void 0 : _a.label) === node;\n }\n ts.isLabelOfLabeledStatement = isLabelOfLabeledStatement;\n function isLabelName(node) {\n return isLabelOfLabeledStatement(node) || isJumpStatementTarget(node);\n }\n ts.isLabelName = isLabelName;\n function isTagName(node) {\n var _a;\n return ((_a = ts.tryCast(node.parent, ts.isJSDocTag)) === null || _a === void 0 ? void 0 : _a.tagName) === node;\n }\n ts.isTagName = isTagName;\n function isRightSideOfQualifiedName(node) {\n var _a;\n return ((_a = ts.tryCast(node.parent, ts.isQualifiedName)) === null || _a === void 0 ? void 0 : _a.right) === node;\n }\n ts.isRightSideOfQualifiedName = isRightSideOfQualifiedName;\n function isRightSideOfPropertyAccess(node) {\n var _a;\n return ((_a = ts.tryCast(node.parent, ts.isPropertyAccessExpression)) === null || _a === void 0 ? void 0 : _a.name) === node;\n }\n ts.isRightSideOfPropertyAccess = isRightSideOfPropertyAccess;\n function isArgumentExpressionOfElementAccess(node) {\n var _a;\n return ((_a = ts.tryCast(node.parent, ts.isElementAccessExpression)) === null || _a === void 0 ? void 0 : _a.argumentExpression) === node;\n }\n ts.isArgumentExpressionOfElementAccess = isArgumentExpressionOfElementAccess;\n function isNameOfModuleDeclaration(node) {\n var _a;\n return ((_a = ts.tryCast(node.parent, ts.isModuleDeclaration)) === null || _a === void 0 ? void 0 : _a.name) === node;\n }\n ts.isNameOfModuleDeclaration = isNameOfModuleDeclaration;\n function isNameOfFunctionDeclaration(node) {\n var _a;\n return ts.isIdentifier(node) && ((_a = ts.tryCast(node.parent, ts.isFunctionLike)) === null || _a === void 0 ? void 0 : _a.name) === node;\n }\n ts.isNameOfFunctionDeclaration = isNameOfFunctionDeclaration;\n function isLiteralNameOfPropertyDeclarationOrIndexAccess(node) {\n switch (node.parent.kind) {\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 291 /* PropertyAssignment */:\n case 294 /* EnumMember */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 259 /* ModuleDeclaration */:\n return ts.getNameOfDeclaration(node.parent) === node;\n case 205 /* ElementAccessExpression */:\n return node.parent.argumentExpression === node;\n case 160 /* ComputedPropertyName */:\n return true;\n case 194 /* LiteralType */:\n return node.parent.parent.kind === 192 /* IndexedAccessType */;\n default:\n return false;\n }\n }\n ts.isLiteralNameOfPropertyDeclarationOrIndexAccess = isLiteralNameOfPropertyDeclarationOrIndexAccess;\n function isExpressionOfExternalModuleImportEqualsDeclaration(node) {\n return ts.isExternalModuleImportEqualsDeclaration(node.parent.parent) &&\n ts.getExternalModuleImportEqualsDeclarationExpression(node.parent.parent) === node;\n }\n ts.isExpressionOfExternalModuleImportEqualsDeclaration = isExpressionOfExternalModuleImportEqualsDeclaration;\n function getContainerNode(node) {\n if (ts.isJSDocTypeAlias(node)) {\n // This doesn't just apply to the node immediately under the comment, but to everything in its parent's scope.\n // node.parent = the JSDoc comment, node.parent.parent = the node having the comment.\n // Then we get parent again in the loop.\n node = node.parent.parent;\n }\n while (true) {\n node = node.parent;\n if (!node) {\n return undefined;\n }\n switch (node.kind) {\n case 300 /* SourceFile */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 259 /* ModuleDeclaration */:\n return node;\n }\n }\n }\n ts.getContainerNode = getContainerNode;\n function getNodeKind(node) {\n switch (node.kind) {\n case 300 /* SourceFile */:\n return ts.isExternalModule(node) ? \"module\" /* moduleElement */ : \"script\" /* scriptElement */;\n case 259 /* ModuleDeclaration */:\n return \"module\" /* moduleElement */;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return \"class\" /* classElement */;\n case 256 /* InterfaceDeclaration */: return \"interface\" /* interfaceElement */;\n case 257 /* TypeAliasDeclaration */:\n case 333 /* JSDocCallbackTag */:\n case 340 /* JSDocTypedefTag */:\n return \"type\" /* typeElement */;\n case 258 /* EnumDeclaration */: return \"enum\" /* enumElement */;\n case 252 /* VariableDeclaration */:\n return getKindOfVariableDeclaration(node);\n case 201 /* BindingElement */:\n return getKindOfVariableDeclaration(ts.getRootDeclaration(node));\n case 212 /* ArrowFunction */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n return \"function\" /* functionElement */;\n case 170 /* GetAccessor */: return \"getter\" /* memberGetAccessorElement */;\n case 171 /* SetAccessor */: return \"setter\" /* memberSetAccessorElement */;\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n return \"method\" /* memberFunctionElement */;\n case 291 /* PropertyAssignment */:\n var initializer = node.initializer;\n return ts.isFunctionLike(initializer) ? \"method\" /* memberFunctionElement */ : \"property\" /* memberVariableElement */;\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 292 /* ShorthandPropertyAssignment */:\n case 293 /* SpreadAssignment */:\n return \"property\" /* memberVariableElement */;\n case 174 /* IndexSignature */: return \"index\" /* indexSignatureElement */;\n case 173 /* ConstructSignature */: return \"construct\" /* constructSignatureElement */;\n case 172 /* CallSignature */: return \"call\" /* callSignatureElement */;\n case 169 /* Constructor */:\n case 168 /* ClassStaticBlockDeclaration */:\n return \"constructor\" /* constructorImplementationElement */;\n case 161 /* TypeParameter */: return \"type parameter\" /* typeParameterElement */;\n case 294 /* EnumMember */: return \"enum member\" /* enumMemberElement */;\n case 162 /* Parameter */: return ts.hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */) ? \"property\" /* memberVariableElement */ : \"parameter\" /* parameterElement */;\n case 263 /* ImportEqualsDeclaration */:\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */:\n case 266 /* NamespaceImport */:\n case 272 /* NamespaceExport */:\n return \"alias\" /* alias */;\n case 219 /* BinaryExpression */:\n var kind = ts.getAssignmentDeclarationKind(node);\n var right = node.right;\n switch (kind) {\n case 7 /* ObjectDefinePropertyValue */:\n case 8 /* ObjectDefinePropertyExports */:\n case 9 /* ObjectDefinePrototypeProperty */:\n case 0 /* None */:\n return \"\" /* unknown */;\n case 1 /* ExportsProperty */:\n case 2 /* ModuleExports */:\n var rightKind = getNodeKind(right);\n return rightKind === \"\" /* unknown */ ? \"const\" /* constElement */ : rightKind;\n case 3 /* PrototypeProperty */:\n return ts.isFunctionExpression(right) ? \"method\" /* memberFunctionElement */ : \"property\" /* memberVariableElement */;\n case 4 /* ThisProperty */:\n return \"property\" /* memberVariableElement */; // property\n case 5 /* Property */:\n // static method / property\n return ts.isFunctionExpression(right) ? \"method\" /* memberFunctionElement */ : \"property\" /* memberVariableElement */;\n case 6 /* Prototype */:\n return \"local class\" /* localClassElement */;\n default: {\n ts.assertType(kind);\n return \"\" /* unknown */;\n }\n }\n case 79 /* Identifier */:\n return ts.isImportClause(node.parent) ? \"alias\" /* alias */ : \"\" /* unknown */;\n case 269 /* ExportAssignment */:\n var scriptKind = getNodeKind(node.expression);\n // If the expression didn't come back with something (like it does for an identifiers)\n return scriptKind === \"\" /* unknown */ ? \"const\" /* constElement */ : scriptKind;\n default:\n return \"\" /* unknown */;\n }\n function getKindOfVariableDeclaration(v) {\n return ts.isVarConst(v)\n ? \"const\" /* constElement */\n : ts.isLet(v)\n ? \"let\" /* letElement */\n : \"var\" /* variableElement */;\n }\n }\n ts.getNodeKind = getNodeKind;\n function isThis(node) {\n switch (node.kind) {\n case 108 /* ThisKeyword */:\n // case SyntaxKind.ThisType: TODO: GH#9267\n return true;\n case 79 /* Identifier */:\n // 'this' as a parameter\n return ts.identifierIsThisKeyword(node) && node.parent.kind === 162 /* Parameter */;\n default:\n return false;\n }\n }\n ts.isThis = isThis;\n // Matches the beginning of a triple slash directive\n var tripleSlashDirectivePrefixRegex = /^\\/\\/\\/\\s*= range.end;\n }\n ts.startEndContainsRange = startEndContainsRange;\n function rangeContainsStartEnd(range, start, end) {\n return range.pos <= start && range.end >= end;\n }\n ts.rangeContainsStartEnd = rangeContainsStartEnd;\n function rangeOverlapsWithStartEnd(r1, start, end) {\n return startEndOverlapsWithStartEnd(r1.pos, r1.end, start, end);\n }\n ts.rangeOverlapsWithStartEnd = rangeOverlapsWithStartEnd;\n function nodeOverlapsWithStartEnd(node, sourceFile, start, end) {\n return startEndOverlapsWithStartEnd(node.getStart(sourceFile), node.end, start, end);\n }\n ts.nodeOverlapsWithStartEnd = nodeOverlapsWithStartEnd;\n function startEndOverlapsWithStartEnd(start1, end1, start2, end2) {\n var start = Math.max(start1, start2);\n var end = Math.min(end1, end2);\n return start < end;\n }\n ts.startEndOverlapsWithStartEnd = startEndOverlapsWithStartEnd;\n /**\n * Assumes `candidate.start <= position` holds.\n */\n function positionBelongsToNode(candidate, position, sourceFile) {\n ts.Debug.assert(candidate.pos <= position);\n return position < candidate.end || !isCompletedNode(candidate, sourceFile);\n }\n ts.positionBelongsToNode = positionBelongsToNode;\n function isCompletedNode(n, sourceFile) {\n if (n === undefined || ts.nodeIsMissing(n)) {\n return false;\n }\n switch (n.kind) {\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 203 /* ObjectLiteralExpression */:\n case 199 /* ObjectBindingPattern */:\n case 180 /* TypeLiteral */:\n case 233 /* Block */:\n case 260 /* ModuleBlock */:\n case 261 /* CaseBlock */:\n case 267 /* NamedImports */:\n case 271 /* NamedExports */:\n return nodeEndsWith(n, 19 /* CloseBraceToken */, sourceFile);\n case 290 /* CatchClause */:\n return isCompletedNode(n.block, sourceFile);\n case 207 /* NewExpression */:\n if (!n.arguments) {\n return true;\n }\n // falls through\n case 206 /* CallExpression */:\n case 210 /* ParenthesizedExpression */:\n case 189 /* ParenthesizedType */:\n return nodeEndsWith(n, 21 /* CloseParenToken */, sourceFile);\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n return isCompletedNode(n.type, sourceFile);\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 173 /* ConstructSignature */:\n case 172 /* CallSignature */:\n case 212 /* ArrowFunction */:\n if (n.body) {\n return isCompletedNode(n.body, sourceFile);\n }\n if (n.type) {\n return isCompletedNode(n.type, sourceFile);\n }\n // Even though type parameters can be unclosed, we can get away with\n // having at least a closing paren.\n return hasChildOfKind(n, 21 /* CloseParenToken */, sourceFile);\n case 259 /* ModuleDeclaration */:\n return !!n.body && isCompletedNode(n.body, sourceFile);\n case 237 /* IfStatement */:\n if (n.elseStatement) {\n return isCompletedNode(n.elseStatement, sourceFile);\n }\n return isCompletedNode(n.thenStatement, sourceFile);\n case 236 /* ExpressionStatement */:\n return isCompletedNode(n.expression, sourceFile) ||\n hasChildOfKind(n, 26 /* SemicolonToken */, sourceFile);\n case 202 /* ArrayLiteralExpression */:\n case 200 /* ArrayBindingPattern */:\n case 205 /* ElementAccessExpression */:\n case 160 /* ComputedPropertyName */:\n case 182 /* TupleType */:\n return nodeEndsWith(n, 23 /* CloseBracketToken */, sourceFile);\n case 174 /* IndexSignature */:\n if (n.type) {\n return isCompletedNode(n.type, sourceFile);\n }\n return hasChildOfKind(n, 23 /* CloseBracketToken */, sourceFile);\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n // there is no such thing as terminator token for CaseClause/DefaultClause so for simplicity always consider them non-completed\n return false;\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 239 /* WhileStatement */:\n return isCompletedNode(n.statement, sourceFile);\n case 238 /* DoStatement */:\n // rough approximation: if DoStatement has While keyword - then if node is completed is checking the presence of ')';\n return hasChildOfKind(n, 115 /* WhileKeyword */, sourceFile)\n ? nodeEndsWith(n, 21 /* CloseParenToken */, sourceFile)\n : isCompletedNode(n.statement, sourceFile);\n case 179 /* TypeQuery */:\n return isCompletedNode(n.exprName, sourceFile);\n case 214 /* TypeOfExpression */:\n case 213 /* DeleteExpression */:\n case 215 /* VoidExpression */:\n case 222 /* YieldExpression */:\n case 223 /* SpreadElement */:\n var unaryWordExpression = n;\n return isCompletedNode(unaryWordExpression.expression, sourceFile);\n case 208 /* TaggedTemplateExpression */:\n return isCompletedNode(n.template, sourceFile);\n case 221 /* TemplateExpression */:\n var lastSpan = ts.lastOrUndefined(n.templateSpans);\n return isCompletedNode(lastSpan, sourceFile);\n case 231 /* TemplateSpan */:\n return ts.nodeIsPresent(n.literal);\n case 270 /* ExportDeclaration */:\n case 264 /* ImportDeclaration */:\n return ts.nodeIsPresent(n.moduleSpecifier);\n case 217 /* PrefixUnaryExpression */:\n return isCompletedNode(n.operand, sourceFile);\n case 219 /* BinaryExpression */:\n return isCompletedNode(n.right, sourceFile);\n case 220 /* ConditionalExpression */:\n return isCompletedNode(n.whenFalse, sourceFile);\n default:\n return true;\n }\n }\n /*\n * Checks if node ends with 'expectedLastToken'.\n * If child at position 'length - 1' is 'SemicolonToken' it is skipped and 'expectedLastToken' is compared with child at position 'length - 2'.\n */\n function nodeEndsWith(n, expectedLastToken, sourceFile) {\n var children = n.getChildren(sourceFile);\n if (children.length) {\n var lastChild = ts.last(children);\n if (lastChild.kind === expectedLastToken) {\n return true;\n }\n else if (lastChild.kind === 26 /* SemicolonToken */ && children.length !== 1) {\n return children[children.length - 2].kind === expectedLastToken;\n }\n }\n return false;\n }\n function findListItemInfo(node) {\n var list = findContainingList(node);\n // It is possible at this point for syntaxList to be undefined, either if\n // node.parent had no list child, or if none of its list children contained\n // the span of node. If this happens, return undefined. The caller should\n // handle this case.\n if (!list) {\n return undefined;\n }\n var children = list.getChildren();\n var listItemIndex = ts.indexOfNode(children, node);\n return {\n listItemIndex: listItemIndex,\n list: list\n };\n }\n ts.findListItemInfo = findListItemInfo;\n function hasChildOfKind(n, kind, sourceFile) {\n return !!findChildOfKind(n, kind, sourceFile);\n }\n ts.hasChildOfKind = hasChildOfKind;\n function findChildOfKind(n, kind, sourceFile) {\n return ts.find(n.getChildren(sourceFile), function (c) { return c.kind === kind; });\n }\n ts.findChildOfKind = findChildOfKind;\n function findContainingList(node) {\n // The node might be a list element (nonsynthetic) or a comma (synthetic). Either way, it will\n // be parented by the container of the SyntaxList, not the SyntaxList itself.\n // In order to find the list item index, we first need to locate SyntaxList itself and then search\n // for the position of the relevant node (or comma).\n var syntaxList = ts.find(node.parent.getChildren(), function (c) { return ts.isSyntaxList(c) && rangeContainsRange(c, node); });\n // Either we didn't find an appropriate list, or the list must contain us.\n ts.Debug.assert(!syntaxList || ts.contains(syntaxList.getChildren(), node));\n return syntaxList;\n }\n ts.findContainingList = findContainingList;\n function isDefaultModifier(node) {\n return node.kind === 88 /* DefaultKeyword */;\n }\n function isClassKeyword(node) {\n return node.kind === 84 /* ClassKeyword */;\n }\n function isFunctionKeyword(node) {\n return node.kind === 98 /* FunctionKeyword */;\n }\n function getAdjustedLocationForClass(node) {\n if (ts.isNamedDeclaration(node)) {\n return node.name;\n }\n if (ts.isClassDeclaration(node)) {\n // for class and function declarations, use the `default` modifier\n // when the declaration is unnamed.\n var defaultModifier = node.modifiers && ts.find(node.modifiers, isDefaultModifier);\n if (defaultModifier)\n return defaultModifier;\n }\n if (ts.isClassExpression(node)) {\n // for class expressions, use the `class` keyword when the class is unnamed\n var classKeyword = ts.find(node.getChildren(), isClassKeyword);\n if (classKeyword)\n return classKeyword;\n }\n }\n function getAdjustedLocationForFunction(node) {\n if (ts.isNamedDeclaration(node)) {\n return node.name;\n }\n if (ts.isFunctionDeclaration(node)) {\n // for class and function declarations, use the `default` modifier\n // when the declaration is unnamed.\n var defaultModifier = ts.find(node.modifiers, isDefaultModifier);\n if (defaultModifier)\n return defaultModifier;\n }\n if (ts.isFunctionExpression(node)) {\n // for function expressions, use the `function` keyword when the function is unnamed\n var functionKeyword = ts.find(node.getChildren(), isFunctionKeyword);\n if (functionKeyword)\n return functionKeyword;\n }\n }\n function getAncestorTypeNode(node) {\n var lastTypeNode;\n ts.findAncestor(node, function (a) {\n if (ts.isTypeNode(a)) {\n lastTypeNode = a;\n }\n return !ts.isQualifiedName(a.parent) && !ts.isTypeNode(a.parent) && !ts.isTypeElement(a.parent);\n });\n return lastTypeNode;\n }\n function getContextualTypeOrAncestorTypeNodeType(node, checker) {\n var contextualType = checker.getContextualType(node);\n if (contextualType) {\n return contextualType;\n }\n var parent = node.parent;\n if (parent && ts.isBinaryExpression(parent) && isEqualityOperatorKind(parent.operatorToken.kind)) {\n return checker.getTypeAtLocation(node === parent.left ? parent.right : parent.left);\n }\n var ancestorTypeNode = getAncestorTypeNode(node);\n return ancestorTypeNode && checker.getTypeAtLocation(ancestorTypeNode);\n }\n ts.getContextualTypeOrAncestorTypeNodeType = getContextualTypeOrAncestorTypeNodeType;\n function getAdjustedLocationForDeclaration(node, forRename) {\n if (!forRename) {\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n return getAdjustedLocationForClass(node);\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n return getAdjustedLocationForFunction(node);\n }\n }\n if (ts.isNamedDeclaration(node)) {\n return node.name;\n }\n }\n function getAdjustedLocationForImportDeclaration(node, forRename) {\n if (node.importClause) {\n if (node.importClause.name && node.importClause.namedBindings) {\n // do not adjust if we have both a name and named bindings\n return;\n }\n // /**/import [|name|] from ...;\n // import /**/type [|name|] from ...;\n if (node.importClause.name) {\n return node.importClause.name;\n }\n // /**/import { [|name|] } from ...;\n // /**/import { propertyName as [|name|] } from ...;\n // /**/import * as [|name|] from ...;\n // import /**/type { [|name|] } from ...;\n // import /**/type { propertyName as [|name|] } from ...;\n // import /**/type * as [|name|] from ...;\n if (node.importClause.namedBindings) {\n if (ts.isNamedImports(node.importClause.namedBindings)) {\n // do nothing if there is more than one binding\n var onlyBinding = ts.singleOrUndefined(node.importClause.namedBindings.elements);\n if (!onlyBinding) {\n return;\n }\n return onlyBinding.name;\n }\n else if (ts.isNamespaceImport(node.importClause.namedBindings)) {\n return node.importClause.namedBindings.name;\n }\n }\n }\n if (!forRename) {\n // /**/import \"[|module|]\";\n // /**/import ... from \"[|module|]\";\n // import /**/type ... from \"[|module|]\";\n return node.moduleSpecifier;\n }\n }\n function getAdjustedLocationForExportDeclaration(node, forRename) {\n if (node.exportClause) {\n // /**/export { [|name|] } ...\n // /**/export { propertyName as [|name|] } ...\n // /**/export * as [|name|] ...\n // export /**/type { [|name|] } from ...\n // export /**/type { propertyName as [|name|] } from ...\n // export /**/type * as [|name|] ...\n if (ts.isNamedExports(node.exportClause)) {\n // do nothing if there is more than one binding\n var onlyBinding = ts.singleOrUndefined(node.exportClause.elements);\n if (!onlyBinding) {\n return;\n }\n return node.exportClause.elements[0].name;\n }\n else if (ts.isNamespaceExport(node.exportClause)) {\n return node.exportClause.name;\n }\n }\n if (!forRename) {\n // /**/export * from \"[|module|]\";\n // export /**/type * from \"[|module|]\";\n return node.moduleSpecifier;\n }\n }\n function getAdjustedLocationForHeritageClause(node) {\n // /**/extends [|name|]\n // /**/implements [|name|]\n if (node.types.length === 1) {\n return node.types[0].expression;\n }\n // /**/extends name1, name2 ...\n // /**/implements name1, name2 ...\n }\n function getAdjustedLocation(node, forRename) {\n var parent = node.parent;\n // /**/ [|name|] ...\n // /**/ [|name|] ...\n // /**/ [|name|] ...\n // /**/import [|name|] = ...\n //\n // NOTE: If the node is a modifier, we don't adjust its location if it is the `default` modifier as that is handled\n // specially by `getSymbolAtLocation`.\n if (ts.isModifier(node) && (forRename || node.kind !== 88 /* DefaultKeyword */) ? ts.contains(parent.modifiers, node) :\n node.kind === 84 /* ClassKeyword */ ? ts.isClassDeclaration(parent) || ts.isClassExpression(node) :\n node.kind === 98 /* FunctionKeyword */ ? ts.isFunctionDeclaration(parent) || ts.isFunctionExpression(node) :\n node.kind === 118 /* InterfaceKeyword */ ? ts.isInterfaceDeclaration(parent) :\n node.kind === 92 /* EnumKeyword */ ? ts.isEnumDeclaration(parent) :\n node.kind === 150 /* TypeKeyword */ ? ts.isTypeAliasDeclaration(parent) :\n node.kind === 141 /* NamespaceKeyword */ || node.kind === 140 /* ModuleKeyword */ ? ts.isModuleDeclaration(parent) :\n node.kind === 100 /* ImportKeyword */ ? ts.isImportEqualsDeclaration(parent) :\n node.kind === 135 /* GetKeyword */ ? ts.isGetAccessorDeclaration(parent) :\n node.kind === 147 /* SetKeyword */ && ts.isSetAccessorDeclaration(parent)) {\n var location = getAdjustedLocationForDeclaration(parent, forRename);\n if (location) {\n return location;\n }\n }\n // /**/ [|name|] ...\n if ((node.kind === 113 /* VarKeyword */ || node.kind === 85 /* ConstKeyword */ || node.kind === 119 /* LetKeyword */) &&\n ts.isVariableDeclarationList(parent) && parent.declarations.length === 1) {\n var decl = parent.declarations[0];\n if (ts.isIdentifier(decl.name)) {\n return decl.name;\n }\n }\n if (node.kind === 150 /* TypeKeyword */) {\n // import /**/type [|name|] from ...;\n // import /**/type { [|name|] } from ...;\n // import /**/type { propertyName as [|name|] } from ...;\n // import /**/type ... from \"[|module|]\";\n if (ts.isImportClause(parent) && parent.isTypeOnly) {\n var location = getAdjustedLocationForImportDeclaration(parent.parent, forRename);\n if (location) {\n return location;\n }\n }\n // export /**/type { [|name|] } from ...;\n // export /**/type { propertyName as [|name|] } from ...;\n // export /**/type * from \"[|module|]\";\n // export /**/type * as ... from \"[|module|]\";\n if (ts.isExportDeclaration(parent) && parent.isTypeOnly) {\n var location = getAdjustedLocationForExportDeclaration(parent, forRename);\n if (location) {\n return location;\n }\n }\n }\n // import { propertyName /**/as [|name|] } ...\n // import * /**/as [|name|] ...\n // export { propertyName /**/as [|name|] } ...\n // export * /**/as [|name|] ...\n if (node.kind === 127 /* AsKeyword */) {\n if (ts.isImportSpecifier(parent) && parent.propertyName ||\n ts.isExportSpecifier(parent) && parent.propertyName ||\n ts.isNamespaceImport(parent) ||\n ts.isNamespaceExport(parent)) {\n return parent.name;\n }\n if (ts.isExportDeclaration(parent) && parent.exportClause && ts.isNamespaceExport(parent.exportClause)) {\n return parent.exportClause.name;\n }\n }\n // /**/import [|name|] from ...;\n // /**/import { [|name|] } from ...;\n // /**/import { propertyName as [|name|] } from ...;\n // /**/import ... from \"[|module|]\";\n // /**/import \"[|module|]\";\n if (node.kind === 100 /* ImportKeyword */ && ts.isImportDeclaration(parent)) {\n var location = getAdjustedLocationForImportDeclaration(parent, forRename);\n if (location) {\n return location;\n }\n }\n if (node.kind === 93 /* ExportKeyword */) {\n // /**/export { [|name|] } ...;\n // /**/export { propertyName as [|name|] } ...;\n // /**/export * from \"[|module|]\";\n // /**/export * as ... from \"[|module|]\";\n if (ts.isExportDeclaration(parent)) {\n var location = getAdjustedLocationForExportDeclaration(parent, forRename);\n if (location) {\n return location;\n }\n }\n // NOTE: We don't adjust the location of the `default` keyword as that is handled specially by `getSymbolAtLocation`.\n // /**/export default [|name|];\n // /**/export = [|name|];\n if (ts.isExportAssignment(parent)) {\n return ts.skipOuterExpressions(parent.expression);\n }\n }\n // import name = /**/require(\"[|module|]\");\n if (node.kind === 144 /* RequireKeyword */ && ts.isExternalModuleReference(parent)) {\n return parent.expression;\n }\n // import ... /**/from \"[|module|]\";\n // export ... /**/from \"[|module|]\";\n if (node.kind === 154 /* FromKeyword */ && (ts.isImportDeclaration(parent) || ts.isExportDeclaration(parent)) && parent.moduleSpecifier) {\n return parent.moduleSpecifier;\n }\n // class ... /**/extends [|name|] ...\n // class ... /**/implements [|name|] ...\n // class ... /**/implements name1, name2 ...\n // interface ... /**/extends [|name|] ...\n // interface ... /**/extends name1, name2 ...\n if ((node.kind === 94 /* ExtendsKeyword */ || node.kind === 117 /* ImplementsKeyword */) && ts.isHeritageClause(parent) && parent.token === node.kind) {\n var location = getAdjustedLocationForHeritageClause(parent);\n if (location) {\n return location;\n }\n }\n if (node.kind === 94 /* ExtendsKeyword */) {\n // ... ...\n if (ts.isTypeParameterDeclaration(parent) && parent.constraint && ts.isTypeReferenceNode(parent.constraint)) {\n return parent.constraint.typeName;\n }\n // ... T /**/extends [|U|] ? ...\n if (ts.isConditionalTypeNode(parent) && ts.isTypeReferenceNode(parent.extendsType)) {\n return parent.extendsType.typeName;\n }\n }\n // ... T extends /**/infer [|U|] ? ...\n if (node.kind === 136 /* InferKeyword */ && ts.isInferTypeNode(parent)) {\n return parent.typeParameter.name;\n }\n // { [ [|K|] /**/in keyof T]: ... }\n if (node.kind === 101 /* InKeyword */ && ts.isTypeParameterDeclaration(parent) && ts.isMappedTypeNode(parent.parent)) {\n return parent.name;\n }\n // /**/keyof [|T|]\n if (node.kind === 139 /* KeyOfKeyword */ && ts.isTypeOperatorNode(parent) && parent.operator === 139 /* KeyOfKeyword */ &&\n ts.isTypeReferenceNode(parent.type)) {\n return parent.type.typeName;\n }\n // /**/readonly [|name|][]\n if (node.kind === 143 /* ReadonlyKeyword */ && ts.isTypeOperatorNode(parent) && parent.operator === 143 /* ReadonlyKeyword */ &&\n ts.isArrayTypeNode(parent.type) && ts.isTypeReferenceNode(parent.type.elementType)) {\n return parent.type.elementType.typeName;\n }\n if (!forRename) {\n // /**/new [|name|]\n // /**/void [|name|]\n // /**/void obj.[|name|]\n // /**/typeof [|name|]\n // /**/typeof obj.[|name|]\n // /**/await [|name|]\n // /**/await obj.[|name|]\n // /**/yield [|name|]\n // /**/yield obj.[|name|]\n // /**/delete obj.[|name|]\n if (node.kind === 103 /* NewKeyword */ && ts.isNewExpression(parent) ||\n node.kind === 114 /* VoidKeyword */ && ts.isVoidExpression(parent) ||\n node.kind === 112 /* TypeOfKeyword */ && ts.isTypeOfExpression(parent) ||\n node.kind === 131 /* AwaitKeyword */ && ts.isAwaitExpression(parent) ||\n node.kind === 125 /* YieldKeyword */ && ts.isYieldExpression(parent) ||\n node.kind === 89 /* DeleteKeyword */ && ts.isDeleteExpression(parent)) {\n if (parent.expression) {\n return ts.skipOuterExpressions(parent.expression);\n }\n }\n // left /**/in [|name|]\n // left /**/instanceof [|name|]\n if ((node.kind === 101 /* InKeyword */ || node.kind === 102 /* InstanceOfKeyword */) && ts.isBinaryExpression(parent) && parent.operatorToken === node) {\n return ts.skipOuterExpressions(parent.right);\n }\n // left /**/as [|name|]\n if (node.kind === 127 /* AsKeyword */ && ts.isAsExpression(parent) && ts.isTypeReferenceNode(parent.type)) {\n return parent.type.typeName;\n }\n // for (... /**/in [|name|])\n // for (... /**/of [|name|])\n if (node.kind === 101 /* InKeyword */ && ts.isForInStatement(parent) ||\n node.kind === 158 /* OfKeyword */ && ts.isForOfStatement(parent)) {\n return ts.skipOuterExpressions(parent.expression);\n }\n }\n return node;\n }\n /**\n * Adjusts the location used for \"find references\" and \"go to definition\" when the cursor was not\n * on a property name.\n */\n function getAdjustedReferenceLocation(node) {\n return getAdjustedLocation(node, /*forRename*/ false);\n }\n ts.getAdjustedReferenceLocation = getAdjustedReferenceLocation;\n /**\n * Adjusts the location used for \"rename\" when the cursor was not on a property name.\n */\n function getAdjustedRenameLocation(node) {\n return getAdjustedLocation(node, /*forRename*/ true);\n }\n ts.getAdjustedRenameLocation = getAdjustedRenameLocation;\n /**\n * Gets the token whose text has range [start, end) and\n * position >= start and (position < end or (position === end && token is literal or keyword or identifier))\n */\n function getTouchingPropertyName(sourceFile, position) {\n return getTouchingToken(sourceFile, position, function (n) { return ts.isPropertyNameLiteral(n) || ts.isKeyword(n.kind) || ts.isPrivateIdentifier(n); });\n }\n ts.getTouchingPropertyName = getTouchingPropertyName;\n /**\n * Returns the token if position is in [start, end).\n * If position === end, returns the preceding token if includeItemAtEndPosition(previousToken) === true\n */\n function getTouchingToken(sourceFile, position, includePrecedingTokenAtEndPosition) {\n return getTokenAtPositionWorker(sourceFile, position, /*allowPositionInLeadingTrivia*/ false, includePrecedingTokenAtEndPosition, /*includeEndPosition*/ false);\n }\n ts.getTouchingToken = getTouchingToken;\n /** Returns a token if position is in [start-of-leading-trivia, end) */\n function getTokenAtPosition(sourceFile, position) {\n return getTokenAtPositionWorker(sourceFile, position, /*allowPositionInLeadingTrivia*/ true, /*includePrecedingTokenAtEndPosition*/ undefined, /*includeEndPosition*/ false);\n }\n ts.getTokenAtPosition = getTokenAtPosition;\n /** Get the token whose text contains the position */\n function getTokenAtPositionWorker(sourceFile, position, allowPositionInLeadingTrivia, includePrecedingTokenAtEndPosition, includeEndPosition) {\n var current = sourceFile;\n outer: while (true) {\n // find the child that contains 'position'\n for (var _i = 0, _a = current.getChildren(sourceFile); _i < _a.length; _i++) {\n var child = _a[_i];\n var start = allowPositionInLeadingTrivia ? child.getFullStart() : child.getStart(sourceFile, /*includeJsDoc*/ true);\n if (start > position) {\n // If this child begins after position, then all subsequent children will as well.\n break;\n }\n var end = child.getEnd();\n if (position < end || (position === end && (child.kind === 1 /* EndOfFileToken */ || includeEndPosition))) {\n current = child;\n continue outer;\n }\n else if (includePrecedingTokenAtEndPosition && end === position) {\n var previousToken = findPrecedingToken(position, sourceFile, child);\n if (previousToken && includePrecedingTokenAtEndPosition(previousToken)) {\n return previousToken;\n }\n }\n }\n return current;\n }\n }\n /**\n * Returns the first token where position is in [start, end),\n * excluding `JsxText` tokens containing only whitespace.\n */\n function findFirstNonJsxWhitespaceToken(sourceFile, position) {\n var tokenAtPosition = getTokenAtPosition(sourceFile, position);\n while (isWhiteSpaceOnlyJsxText(tokenAtPosition)) {\n var nextToken = findNextToken(tokenAtPosition, tokenAtPosition.parent, sourceFile);\n if (!nextToken)\n return;\n tokenAtPosition = nextToken;\n }\n return tokenAtPosition;\n }\n ts.findFirstNonJsxWhitespaceToken = findFirstNonJsxWhitespaceToken;\n /**\n * The token on the left of the position is the token that strictly includes the position\n * or sits to the left of the cursor if it is on a boundary. For example\n *\n * fo|o -> will return foo\n * foo |bar -> will return foo\n *\n */\n function findTokenOnLeftOfPosition(file, position) {\n // Ideally, getTokenAtPosition should return a token. However, it is currently\n // broken, so we do a check to make sure the result was indeed a token.\n var tokenAtPosition = getTokenAtPosition(file, position);\n if (ts.isToken(tokenAtPosition) && position > tokenAtPosition.getStart(file) && position < tokenAtPosition.getEnd()) {\n return tokenAtPosition;\n }\n return findPrecedingToken(position, file);\n }\n ts.findTokenOnLeftOfPosition = findTokenOnLeftOfPosition;\n function findNextToken(previousToken, parent, sourceFile) {\n return find(parent);\n function find(n) {\n if (ts.isToken(n) && n.pos === previousToken.end) {\n // this is token that starts at the end of previous token - return it\n return n;\n }\n return ts.firstDefined(n.getChildren(sourceFile), function (child) {\n var shouldDiveInChildNode = \n // previous token is enclosed somewhere in the child\n (child.pos <= previousToken.pos && child.end > previousToken.end) ||\n // previous token ends exactly at the beginning of child\n (child.pos === previousToken.end);\n return shouldDiveInChildNode && nodeHasTokens(child, sourceFile) ? find(child) : undefined;\n });\n }\n }\n ts.findNextToken = findNextToken;\n /**\n * Finds the rightmost token satisfying `token.end <= position`,\n * excluding `JsxText` tokens containing only whitespace.\n */\n function findPrecedingToken(position, sourceFile, startNode, excludeJsdoc) {\n var result = find(startNode || sourceFile);\n ts.Debug.assert(!(result && isWhiteSpaceOnlyJsxText(result)));\n return result;\n function find(n) {\n if (isNonWhitespaceToken(n) && n.kind !== 1 /* EndOfFileToken */) {\n return n;\n }\n var children = n.getChildren(sourceFile);\n var i = ts.binarySearchKey(children, position, function (_, i) { return i; }, function (middle, _) {\n // This last callback is more of a selector than a comparator -\n // `EqualTo` causes the `middle` result to be returned\n // `GreaterThan` causes recursion on the left of the middle\n // `LessThan` causes recursion on the right of the middle\n if (position < children[middle].end) {\n // first element whose end position is greater than the input position\n if (!children[middle - 1] || position >= children[middle - 1].end) {\n return 0 /* EqualTo */;\n }\n return 1 /* GreaterThan */;\n }\n return -1 /* LessThan */;\n });\n if (i >= 0 && children[i]) {\n var child = children[i];\n // Note that the span of a node's tokens is [node.getStart(...), node.end).\n // Given that `position < child.end` and child has constituent tokens, we distinguish these cases:\n // 1) `position` precedes `child`'s tokens or `child` has no tokens (ie: in a comment or whitespace preceding `child`):\n // we need to find the last token in a previous child.\n // 2) `position` is within the same span: we recurse on `child`.\n if (position < child.end) {\n var start = child.getStart(sourceFile, /*includeJsDoc*/ !excludeJsdoc);\n var lookInPreviousChild = (start >= position) || // cursor in the leading trivia\n !nodeHasTokens(child, sourceFile) ||\n isWhiteSpaceOnlyJsxText(child);\n if (lookInPreviousChild) {\n // actual start of the node is past the position - previous token should be at the end of previous child\n var candidate_1 = findRightmostChildNodeWithTokens(children, /*exclusiveStartPosition*/ i, sourceFile);\n return candidate_1 && findRightmostToken(candidate_1, sourceFile);\n }\n else {\n // candidate should be in this node\n return find(child);\n }\n }\n }\n ts.Debug.assert(startNode !== undefined || n.kind === 300 /* SourceFile */ || n.kind === 1 /* EndOfFileToken */ || ts.isJSDocCommentContainingNode(n));\n // Here we know that none of child token nodes embrace the position,\n // the only known case is when position is at the end of the file.\n // Try to find the rightmost token in the file without filtering.\n // Namely we are skipping the check: 'position < node.end'\n var candidate = findRightmostChildNodeWithTokens(children, /*exclusiveStartPosition*/ children.length, sourceFile);\n return candidate && findRightmostToken(candidate, sourceFile);\n }\n }\n ts.findPrecedingToken = findPrecedingToken;\n function isNonWhitespaceToken(n) {\n return ts.isToken(n) && !isWhiteSpaceOnlyJsxText(n);\n }\n function findRightmostToken(n, sourceFile) {\n if (isNonWhitespaceToken(n)) {\n return n;\n }\n var children = n.getChildren(sourceFile);\n if (children.length === 0) {\n return n;\n }\n var candidate = findRightmostChildNodeWithTokens(children, /*exclusiveStartPosition*/ children.length, sourceFile);\n return candidate && findRightmostToken(candidate, sourceFile);\n }\n /**\n * Finds the rightmost child to the left of `children[exclusiveStartPosition]` which is a non-all-whitespace token or has constituent tokens.\n */\n function findRightmostChildNodeWithTokens(children, exclusiveStartPosition, sourceFile) {\n for (var i = exclusiveStartPosition - 1; i >= 0; i--) {\n var child = children[i];\n if (isWhiteSpaceOnlyJsxText(child)) {\n ts.Debug.assert(i > 0, \"`JsxText` tokens should not be the first child of `JsxElement | JsxSelfClosingElement`\");\n }\n else if (nodeHasTokens(children[i], sourceFile)) {\n return children[i];\n }\n }\n }\n function isInString(sourceFile, position, previousToken) {\n if (previousToken === void 0) { previousToken = findPrecedingToken(position, sourceFile); }\n if (previousToken && ts.isStringTextContainingNode(previousToken)) {\n var start = previousToken.getStart(sourceFile);\n var end = previousToken.getEnd();\n // To be \"in\" one of these literals, the position has to be:\n // 1. entirely within the token text.\n // 2. at the end position of an unterminated token.\n // 3. at the end of a regular expression (due to trailing flags like '/foo/g').\n if (start < position && position < end) {\n return true;\n }\n if (position === end) {\n return !!previousToken.isUnterminated;\n }\n }\n return false;\n }\n ts.isInString = isInString;\n /**\n * returns true if the position is in between the open and close elements of an JSX expression.\n */\n function isInsideJsxElementOrAttribute(sourceFile, position) {\n var token = getTokenAtPosition(sourceFile, position);\n if (!token) {\n return false;\n }\n if (token.kind === 11 /* JsxText */) {\n return true;\n }\n //
Hello |
\n if (token.kind === 29 /* LessThanToken */ && token.parent.kind === 11 /* JsxText */) {\n return true;\n }\n //
{ |
or
\n if (token.kind === 29 /* LessThanToken */ && token.parent.kind === 286 /* JsxExpression */) {\n return true;\n }\n //
{\n // |\n // } < /div>\n if (token && token.kind === 19 /* CloseBraceToken */ && token.parent.kind === 286 /* JsxExpression */) {\n return true;\n }\n //
|
\n if (token.kind === 29 /* LessThanToken */ && token.parent.kind === 279 /* JsxClosingElement */) {\n return true;\n }\n return false;\n }\n ts.isInsideJsxElementOrAttribute = isInsideJsxElementOrAttribute;\n function isWhiteSpaceOnlyJsxText(node) {\n return ts.isJsxText(node) && node.containsOnlyTriviaWhiteSpaces;\n }\n function isInTemplateString(sourceFile, position) {\n var token = getTokenAtPosition(sourceFile, position);\n return ts.isTemplateLiteralKind(token.kind) && position > token.getStart(sourceFile);\n }\n ts.isInTemplateString = isInTemplateString;\n function isInJSXText(sourceFile, position) {\n var token = getTokenAtPosition(sourceFile, position);\n if (ts.isJsxText(token)) {\n return true;\n }\n if (token.kind === 18 /* OpenBraceToken */ && ts.isJsxExpression(token.parent) && ts.isJsxElement(token.parent.parent)) {\n return true;\n }\n if (token.kind === 29 /* LessThanToken */ && ts.isJsxOpeningLikeElement(token.parent) && ts.isJsxElement(token.parent.parent)) {\n return true;\n }\n return false;\n }\n ts.isInJSXText = isInJSXText;\n function isInsideJsxElement(sourceFile, position) {\n function isInsideJsxElementTraversal(node) {\n while (node) {\n if (node.kind >= 277 /* JsxSelfClosingElement */ && node.kind <= 286 /* JsxExpression */\n || node.kind === 11 /* JsxText */\n || node.kind === 29 /* LessThanToken */\n || node.kind === 31 /* GreaterThanToken */\n || node.kind === 79 /* Identifier */\n || node.kind === 19 /* CloseBraceToken */\n || node.kind === 18 /* OpenBraceToken */\n || node.kind === 43 /* SlashToken */) {\n node = node.parent;\n }\n else if (node.kind === 276 /* JsxElement */) {\n if (position > node.getStart(sourceFile))\n return true;\n node = node.parent;\n }\n else {\n return false;\n }\n }\n return false;\n }\n return isInsideJsxElementTraversal(getTokenAtPosition(sourceFile, position));\n }\n ts.isInsideJsxElement = isInsideJsxElement;\n function findPrecedingMatchingToken(token, matchingTokenKind, sourceFile) {\n var closeTokenText = ts.tokenToString(token.kind);\n var matchingTokenText = ts.tokenToString(matchingTokenKind);\n var tokenFullStart = token.getFullStart();\n // Text-scan based fast path - can be bamboozled by comments and other trivia, but often provides\n // a good, fast approximation without too much extra work in the cases where it fails.\n var bestGuessIndex = sourceFile.text.lastIndexOf(matchingTokenText, tokenFullStart);\n if (bestGuessIndex === -1) {\n return undefined; // if the token text doesn't appear in the file, there can't be a match - super fast bail\n }\n // we can only use the textual result directly if we didn't have to count any close tokens within the range\n if (sourceFile.text.lastIndexOf(closeTokenText, tokenFullStart - 1) < bestGuessIndex) {\n var nodeAtGuess = findPrecedingToken(bestGuessIndex + 1, sourceFile);\n if (nodeAtGuess && nodeAtGuess.kind === matchingTokenKind) {\n return nodeAtGuess;\n }\n }\n var tokenKind = token.kind;\n var remainingMatchingTokens = 0;\n while (true) {\n var preceding = findPrecedingToken(token.getFullStart(), sourceFile);\n if (!preceding) {\n return undefined;\n }\n token = preceding;\n if (token.kind === matchingTokenKind) {\n if (remainingMatchingTokens === 0) {\n return token;\n }\n remainingMatchingTokens--;\n }\n else if (token.kind === tokenKind) {\n remainingMatchingTokens++;\n }\n }\n }\n ts.findPrecedingMatchingToken = findPrecedingMatchingToken;\n function removeOptionality(type, isOptionalExpression, isOptionalChain) {\n return isOptionalExpression ? type.getNonNullableType() :\n isOptionalChain ? type.getNonOptionalType() :\n type;\n }\n ts.removeOptionality = removeOptionality;\n function isPossiblyTypeArgumentPosition(token, sourceFile, checker) {\n var info = getPossibleTypeArgumentsInfo(token, sourceFile);\n return info !== undefined && (ts.isPartOfTypeNode(info.called) ||\n getPossibleGenericSignatures(info.called, info.nTypeArguments, checker).length !== 0 ||\n isPossiblyTypeArgumentPosition(info.called, sourceFile, checker));\n }\n ts.isPossiblyTypeArgumentPosition = isPossiblyTypeArgumentPosition;\n function getPossibleGenericSignatures(called, typeArgumentCount, checker) {\n var type = checker.getTypeAtLocation(called);\n if (ts.isOptionalChain(called.parent)) {\n type = removeOptionality(type, ts.isOptionalChainRoot(called.parent), /*isOptionalChain*/ true);\n }\n var signatures = ts.isNewExpression(called.parent) ? type.getConstructSignatures() : type.getCallSignatures();\n return signatures.filter(function (candidate) { return !!candidate.typeParameters && candidate.typeParameters.length >= typeArgumentCount; });\n }\n ts.getPossibleGenericSignatures = getPossibleGenericSignatures;\n // Get info for an expression like `f <` that may be the start of type arguments.\n function getPossibleTypeArgumentsInfo(tokenIn, sourceFile) {\n // This is a rare case, but one that saves on a _lot_ of work if true - if the source file has _no_ `<` character,\n // then there obviously can't be any type arguments - no expensive brace-matching backwards scanning required\n if (sourceFile.text.lastIndexOf(\"<\", tokenIn ? tokenIn.pos : sourceFile.text.length) === -1) {\n return undefined;\n }\n var token = tokenIn;\n // This function determines if the node could be type argument position\n // Since during editing, when type argument list is not complete,\n // the tree could be of any shape depending on the tokens parsed before current node,\n // scanning of the previous identifier followed by \"<\" before current node would give us better result\n // Note that we also balance out the already provided type arguments, arrays, object literals while doing so\n var remainingLessThanTokens = 0;\n var nTypeArguments = 0;\n while (token) {\n switch (token.kind) {\n case 29 /* LessThanToken */:\n // Found the beginning of the generic argument expression\n token = findPrecedingToken(token.getFullStart(), sourceFile);\n if (token && token.kind === 28 /* QuestionDotToken */) {\n token = findPrecedingToken(token.getFullStart(), sourceFile);\n }\n if (!token || !ts.isIdentifier(token))\n return undefined;\n if (!remainingLessThanTokens) {\n return ts.isDeclarationName(token) ? undefined : { called: token, nTypeArguments: nTypeArguments };\n }\n remainingLessThanTokens--;\n break;\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n remainingLessThanTokens = +3;\n break;\n case 48 /* GreaterThanGreaterThanToken */:\n remainingLessThanTokens = +2;\n break;\n case 31 /* GreaterThanToken */:\n remainingLessThanTokens++;\n break;\n case 19 /* CloseBraceToken */:\n // This can be object type, skip until we find the matching open brace token\n // Skip until the matching open brace token\n token = findPrecedingMatchingToken(token, 18 /* OpenBraceToken */, sourceFile);\n if (!token)\n return undefined;\n break;\n case 21 /* CloseParenToken */:\n // This can be object type, skip until we find the matching open brace token\n // Skip until the matching open brace token\n token = findPrecedingMatchingToken(token, 20 /* OpenParenToken */, sourceFile);\n if (!token)\n return undefined;\n break;\n case 23 /* CloseBracketToken */:\n // This can be object type, skip until we find the matching open brace token\n // Skip until the matching open brace token\n token = findPrecedingMatchingToken(token, 22 /* OpenBracketToken */, sourceFile);\n if (!token)\n return undefined;\n break;\n // Valid tokens in a type name. Skip.\n case 27 /* CommaToken */:\n nTypeArguments++;\n break;\n case 38 /* EqualsGreaterThanToken */:\n // falls through\n case 79 /* Identifier */:\n case 10 /* StringLiteral */:\n case 8 /* NumericLiteral */:\n case 9 /* BigIntLiteral */:\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n // falls through\n case 112 /* TypeOfKeyword */:\n case 94 /* ExtendsKeyword */:\n case 139 /* KeyOfKeyword */:\n case 24 /* DotToken */:\n case 51 /* BarToken */:\n case 57 /* QuestionToken */:\n case 58 /* ColonToken */:\n break;\n default:\n if (ts.isTypeNode(token)) {\n break;\n }\n // Invalid token in type\n return undefined;\n }\n token = findPrecedingToken(token.getFullStart(), sourceFile);\n }\n return undefined;\n }\n ts.getPossibleTypeArgumentsInfo = getPossibleTypeArgumentsInfo;\n /**\n * Returns true if the cursor at position in sourceFile is within a comment.\n *\n * @param tokenAtPosition Must equal `getTokenAtPosition(sourceFile, position)\n * @param predicate Additional predicate to test on the comment range.\n */\n function isInComment(sourceFile, position, tokenAtPosition) {\n return ts.formatting.getRangeOfEnclosingComment(sourceFile, position, /*precedingToken*/ undefined, tokenAtPosition);\n }\n ts.isInComment = isInComment;\n function hasDocComment(sourceFile, position) {\n var token = getTokenAtPosition(sourceFile, position);\n return !!ts.findAncestor(token, ts.isJSDoc);\n }\n ts.hasDocComment = hasDocComment;\n function nodeHasTokens(n, sourceFile) {\n // If we have a token or node that has a non-zero width, it must have tokens.\n // Note: getWidth() does not take trivia into account.\n return n.kind === 1 /* EndOfFileToken */ ? !!n.jsDoc : n.getWidth(sourceFile) !== 0;\n }\n function getNodeModifiers(node, excludeFlags) {\n if (excludeFlags === void 0) { excludeFlags = 0 /* None */; }\n var result = [];\n var flags = ts.isDeclaration(node)\n ? ts.getCombinedNodeFlagsAlwaysIncludeJSDoc(node) & ~excludeFlags\n : 0 /* None */;\n if (flags & 8 /* Private */)\n result.push(\"private\" /* privateMemberModifier */);\n if (flags & 16 /* Protected */)\n result.push(\"protected\" /* protectedMemberModifier */);\n if (flags & 4 /* Public */)\n result.push(\"public\" /* publicMemberModifier */);\n if (flags & 32 /* Static */ || ts.isClassStaticBlockDeclaration(node))\n result.push(\"static\" /* staticModifier */);\n if (flags & 128 /* Abstract */)\n result.push(\"abstract\" /* abstractModifier */);\n if (flags & 1 /* Export */)\n result.push(\"export\" /* exportedModifier */);\n if (flags & 8192 /* Deprecated */)\n result.push(\"deprecated\" /* deprecatedModifier */);\n if (node.flags & 8388608 /* Ambient */)\n result.push(\"declare\" /* ambientModifier */);\n if (node.kind === 269 /* ExportAssignment */)\n result.push(\"export\" /* exportedModifier */);\n return result.length > 0 ? result.join(\",\") : \"\" /* none */;\n }\n ts.getNodeModifiers = getNodeModifiers;\n function getTypeArgumentOrTypeParameterList(node) {\n if (node.kind === 176 /* TypeReference */ || node.kind === 206 /* CallExpression */) {\n return node.typeArguments;\n }\n if (ts.isFunctionLike(node) || node.kind === 255 /* ClassDeclaration */ || node.kind === 256 /* InterfaceDeclaration */) {\n return node.typeParameters;\n }\n return undefined;\n }\n ts.getTypeArgumentOrTypeParameterList = getTypeArgumentOrTypeParameterList;\n function isComment(kind) {\n return kind === 2 /* SingleLineCommentTrivia */ || kind === 3 /* MultiLineCommentTrivia */;\n }\n ts.isComment = isComment;\n function isStringOrRegularExpressionOrTemplateLiteral(kind) {\n if (kind === 10 /* StringLiteral */\n || kind === 13 /* RegularExpressionLiteral */\n || ts.isTemplateLiteralKind(kind)) {\n return true;\n }\n return false;\n }\n ts.isStringOrRegularExpressionOrTemplateLiteral = isStringOrRegularExpressionOrTemplateLiteral;\n function isPunctuation(kind) {\n return 18 /* FirstPunctuation */ <= kind && kind <= 78 /* LastPunctuation */;\n }\n ts.isPunctuation = isPunctuation;\n function isInsideTemplateLiteral(node, position, sourceFile) {\n return ts.isTemplateLiteralKind(node.kind)\n && (node.getStart(sourceFile) < position && position < node.end) || (!!node.isUnterminated && position === node.end);\n }\n ts.isInsideTemplateLiteral = isInsideTemplateLiteral;\n function isAccessibilityModifier(kind) {\n switch (kind) {\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n return true;\n }\n return false;\n }\n ts.isAccessibilityModifier = isAccessibilityModifier;\n function cloneCompilerOptions(options) {\n var result = ts.clone(options);\n ts.setConfigFileInOptions(result, options && options.configFile);\n return result;\n }\n ts.cloneCompilerOptions = cloneCompilerOptions;\n function isArrayLiteralOrObjectLiteralDestructuringPattern(node) {\n if (node.kind === 202 /* ArrayLiteralExpression */ ||\n node.kind === 203 /* ObjectLiteralExpression */) {\n // [a,b,c] from:\n // [a, b, c] = someExpression;\n if (node.parent.kind === 219 /* BinaryExpression */ &&\n node.parent.left === node &&\n node.parent.operatorToken.kind === 63 /* EqualsToken */) {\n return true;\n }\n // [a, b, c] from:\n // for([a, b, c] of expression)\n if (node.parent.kind === 242 /* ForOfStatement */ &&\n node.parent.initializer === node) {\n return true;\n }\n // [a, b, c] of\n // [x, [a, b, c] ] = someExpression\n // or\n // {x, a: {a, b, c} } = someExpression\n if (isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.kind === 291 /* PropertyAssignment */ ? node.parent.parent : node.parent)) {\n return true;\n }\n }\n return false;\n }\n ts.isArrayLiteralOrObjectLiteralDestructuringPattern = isArrayLiteralOrObjectLiteralDestructuringPattern;\n function isInReferenceComment(sourceFile, position) {\n return isInReferenceCommentWorker(sourceFile, position, /*shouldBeReference*/ true);\n }\n ts.isInReferenceComment = isInReferenceComment;\n function isInNonReferenceComment(sourceFile, position) {\n return isInReferenceCommentWorker(sourceFile, position, /*shouldBeReference*/ false);\n }\n ts.isInNonReferenceComment = isInNonReferenceComment;\n function isInReferenceCommentWorker(sourceFile, position, shouldBeReference) {\n var range = isInComment(sourceFile, position, /*tokenAtPosition*/ undefined);\n return !!range && shouldBeReference === tripleSlashDirectivePrefixRegex.test(sourceFile.text.substring(range.pos, range.end));\n }\n function getReplacementSpanForContextToken(contextToken) {\n if (!contextToken)\n return undefined;\n switch (contextToken.kind) {\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return createTextSpanFromStringLiteralLikeContent(contextToken);\n default:\n return createTextSpanFromNode(contextToken);\n }\n }\n ts.getReplacementSpanForContextToken = getReplacementSpanForContextToken;\n function createTextSpanFromNode(node, sourceFile, endNode) {\n return ts.createTextSpanFromBounds(node.getStart(sourceFile), (endNode || node).getEnd());\n }\n ts.createTextSpanFromNode = createTextSpanFromNode;\n function createTextSpanFromStringLiteralLikeContent(node) {\n if (node.isUnterminated)\n return undefined;\n return ts.createTextSpanFromBounds(node.getStart() + 1, node.getEnd() - 1);\n }\n ts.createTextSpanFromStringLiteralLikeContent = createTextSpanFromStringLiteralLikeContent;\n function createTextRangeFromNode(node, sourceFile) {\n return ts.createRange(node.getStart(sourceFile), node.end);\n }\n ts.createTextRangeFromNode = createTextRangeFromNode;\n function createTextSpanFromRange(range) {\n return ts.createTextSpanFromBounds(range.pos, range.end);\n }\n ts.createTextSpanFromRange = createTextSpanFromRange;\n function createTextRangeFromSpan(span) {\n return ts.createRange(span.start, span.start + span.length);\n }\n ts.createTextRangeFromSpan = createTextRangeFromSpan;\n function createTextChangeFromStartLength(start, length, newText) {\n return createTextChange(ts.createTextSpan(start, length), newText);\n }\n ts.createTextChangeFromStartLength = createTextChangeFromStartLength;\n function createTextChange(span, newText) {\n return { span: span, newText: newText };\n }\n ts.createTextChange = createTextChange;\n ts.typeKeywords = [\n 129 /* AnyKeyword */,\n 128 /* AssertsKeyword */,\n 156 /* BigIntKeyword */,\n 132 /* BooleanKeyword */,\n 95 /* FalseKeyword */,\n 136 /* InferKeyword */,\n 139 /* KeyOfKeyword */,\n 142 /* NeverKeyword */,\n 104 /* NullKeyword */,\n 145 /* NumberKeyword */,\n 146 /* ObjectKeyword */,\n 143 /* ReadonlyKeyword */,\n 148 /* StringKeyword */,\n 149 /* SymbolKeyword */,\n 110 /* TrueKeyword */,\n 114 /* VoidKeyword */,\n 151 /* UndefinedKeyword */,\n 152 /* UniqueKeyword */,\n 153 /* UnknownKeyword */,\n ];\n function isTypeKeyword(kind) {\n return ts.contains(ts.typeKeywords, kind);\n }\n ts.isTypeKeyword = isTypeKeyword;\n function isTypeKeywordToken(node) {\n return node.kind === 150 /* TypeKeyword */;\n }\n ts.isTypeKeywordToken = isTypeKeywordToken;\n /** True if the symbol is for an external module, as opposed to a namespace. */\n function isExternalModuleSymbol(moduleSymbol) {\n return !!(moduleSymbol.flags & 1536 /* Module */) && moduleSymbol.name.charCodeAt(0) === 34 /* doubleQuote */;\n }\n ts.isExternalModuleSymbol = isExternalModuleSymbol;\n function nodeSeenTracker() {\n var seen = [];\n return function (node) {\n var id = ts.getNodeId(node);\n return !seen[id] && (seen[id] = true);\n };\n }\n ts.nodeSeenTracker = nodeSeenTracker;\n function getSnapshotText(snap) {\n return snap.getText(0, snap.getLength());\n }\n ts.getSnapshotText = getSnapshotText;\n function repeatString(str, count) {\n var result = \"\";\n for (var i = 0; i < count; i++) {\n result += str;\n }\n return result;\n }\n ts.repeatString = repeatString;\n function skipConstraint(type) {\n return type.isTypeParameter() ? type.getConstraint() || type : type;\n }\n ts.skipConstraint = skipConstraint;\n function getNameFromPropertyName(name) {\n return name.kind === 160 /* ComputedPropertyName */\n // treat computed property names where expression is string/numeric literal as just string/numeric literal\n ? ts.isStringOrNumericLiteralLike(name.expression) ? name.expression.text : undefined\n : ts.isPrivateIdentifier(name) ? ts.idText(name) : ts.getTextOfIdentifierOrLiteral(name);\n }\n ts.getNameFromPropertyName = getNameFromPropertyName;\n function programContainsModules(program) {\n return program.getSourceFiles().some(function (s) { return !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!(s.externalModuleIndicator || s.commonJsModuleIndicator); });\n }\n ts.programContainsModules = programContainsModules;\n function programContainsEs6Modules(program) {\n return program.getSourceFiles().some(function (s) { return !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!s.externalModuleIndicator; });\n }\n ts.programContainsEs6Modules = programContainsEs6Modules;\n function compilerOptionsIndicateEs6Modules(compilerOptions) {\n return !!compilerOptions.module || compilerOptions.target >= 2 /* ES2015 */ || !!compilerOptions.noEmit;\n }\n ts.compilerOptionsIndicateEs6Modules = compilerOptionsIndicateEs6Modules;\n function createModuleSpecifierResolutionHost(program, host) {\n // Mix in `getSymlinkCache` from Program when host doesn't have it\n // in order for non-Project hosts to have a symlinks cache.\n return {\n fileExists: function (fileName) { return program.fileExists(fileName); },\n getCurrentDirectory: function () { return host.getCurrentDirectory(); },\n readFile: ts.maybeBind(host, host.readFile),\n useCaseSensitiveFileNames: ts.maybeBind(host, host.useCaseSensitiveFileNames),\n getSymlinkCache: ts.maybeBind(host, host.getSymlinkCache) || program.getSymlinkCache,\n getModuleSpecifierCache: ts.maybeBind(host, host.getModuleSpecifierCache),\n getGlobalTypingsCacheLocation: ts.maybeBind(host, host.getGlobalTypingsCacheLocation),\n redirectTargetsMap: program.redirectTargetsMap,\n getProjectReferenceRedirect: function (fileName) { return program.getProjectReferenceRedirect(fileName); },\n isSourceOfProjectReferenceRedirect: function (fileName) { return program.isSourceOfProjectReferenceRedirect(fileName); },\n getNearestAncestorDirectoryWithPackageJson: ts.maybeBind(host, host.getNearestAncestorDirectoryWithPackageJson),\n getFileIncludeReasons: function () { return program.getFileIncludeReasons(); },\n };\n }\n ts.createModuleSpecifierResolutionHost = createModuleSpecifierResolutionHost;\n function getModuleSpecifierResolverHost(program, host) {\n return __assign(__assign({}, createModuleSpecifierResolutionHost(program, host)), { getCommonSourceDirectory: function () { return program.getCommonSourceDirectory(); } });\n }\n ts.getModuleSpecifierResolverHost = getModuleSpecifierResolverHost;\n function makeImportIfNecessary(defaultImport, namedImports, moduleSpecifier, quotePreference) {\n return defaultImport || namedImports && namedImports.length ? makeImport(defaultImport, namedImports, moduleSpecifier, quotePreference) : undefined;\n }\n ts.makeImportIfNecessary = makeImportIfNecessary;\n function makeImport(defaultImport, namedImports, moduleSpecifier, quotePreference, isTypeOnly) {\n return ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, defaultImport || namedImports\n ? ts.factory.createImportClause(!!isTypeOnly, defaultImport, namedImports && namedImports.length ? ts.factory.createNamedImports(namedImports) : undefined)\n : undefined, typeof moduleSpecifier === \"string\" ? makeStringLiteral(moduleSpecifier, quotePreference) : moduleSpecifier);\n }\n ts.makeImport = makeImport;\n function makeStringLiteral(text, quotePreference) {\n return ts.factory.createStringLiteral(text, quotePreference === 0 /* Single */);\n }\n ts.makeStringLiteral = makeStringLiteral;\n var QuotePreference;\n (function (QuotePreference) {\n QuotePreference[QuotePreference[\"Single\"] = 0] = \"Single\";\n QuotePreference[QuotePreference[\"Double\"] = 1] = \"Double\";\n })(QuotePreference = ts.QuotePreference || (ts.QuotePreference = {}));\n function quotePreferenceFromString(str, sourceFile) {\n return ts.isStringDoubleQuoted(str, sourceFile) ? 1 /* Double */ : 0 /* Single */;\n }\n ts.quotePreferenceFromString = quotePreferenceFromString;\n function getQuotePreference(sourceFile, preferences) {\n if (preferences.quotePreference && preferences.quotePreference !== \"auto\") {\n return preferences.quotePreference === \"single\" ? 0 /* Single */ : 1 /* Double */;\n }\n else {\n // ignore synthetic import added when importHelpers: true\n var firstModuleSpecifier = sourceFile.imports &&\n ts.find(sourceFile.imports, function (n) { return ts.isStringLiteral(n) && !ts.nodeIsSynthesized(n.parent); });\n return firstModuleSpecifier ? quotePreferenceFromString(firstModuleSpecifier, sourceFile) : 1 /* Double */;\n }\n }\n ts.getQuotePreference = getQuotePreference;\n function getQuoteFromPreference(qp) {\n switch (qp) {\n case 0 /* Single */: return \"'\";\n case 1 /* Double */: return '\"';\n default: return ts.Debug.assertNever(qp);\n }\n }\n ts.getQuoteFromPreference = getQuoteFromPreference;\n function symbolNameNoDefault(symbol) {\n var escaped = symbolEscapedNameNoDefault(symbol);\n return escaped === undefined ? undefined : ts.unescapeLeadingUnderscores(escaped);\n }\n ts.symbolNameNoDefault = symbolNameNoDefault;\n function symbolEscapedNameNoDefault(symbol) {\n if (symbol.escapedName !== \"default\" /* Default */) {\n return symbol.escapedName;\n }\n return ts.firstDefined(symbol.declarations, function (decl) {\n var name = ts.getNameOfDeclaration(decl);\n return name && name.kind === 79 /* Identifier */ ? name.escapedText : undefined;\n });\n }\n ts.symbolEscapedNameNoDefault = symbolEscapedNameNoDefault;\n function isModuleSpecifierLike(node) {\n return ts.isStringLiteralLike(node) && (ts.isExternalModuleReference(node.parent) ||\n ts.isImportDeclaration(node.parent) ||\n ts.isRequireCall(node.parent, /*requireStringLiteralLikeArgument*/ false) && node.parent.arguments[0] === node ||\n ts.isImportCall(node.parent) && node.parent.arguments[0] === node);\n }\n ts.isModuleSpecifierLike = isModuleSpecifierLike;\n function isObjectBindingElementWithoutPropertyName(bindingElement) {\n return ts.isBindingElement(bindingElement) &&\n ts.isObjectBindingPattern(bindingElement.parent) &&\n ts.isIdentifier(bindingElement.name) &&\n !bindingElement.propertyName;\n }\n ts.isObjectBindingElementWithoutPropertyName = isObjectBindingElementWithoutPropertyName;\n function getPropertySymbolFromBindingElement(checker, bindingElement) {\n var typeOfPattern = checker.getTypeAtLocation(bindingElement.parent);\n return typeOfPattern && checker.getPropertyOfType(typeOfPattern, bindingElement.name.text);\n }\n ts.getPropertySymbolFromBindingElement = getPropertySymbolFromBindingElement;\n function getParentNodeInSpan(node, file, span) {\n if (!node)\n return undefined;\n while (node.parent) {\n if (ts.isSourceFile(node.parent) || !spanContainsNode(span, node.parent, file)) {\n return node;\n }\n node = node.parent;\n }\n }\n ts.getParentNodeInSpan = getParentNodeInSpan;\n function spanContainsNode(span, node, file) {\n return ts.textSpanContainsPosition(span, node.getStart(file)) &&\n node.getEnd() <= ts.textSpanEnd(span);\n }\n function findModifier(node, kind) {\n return node.modifiers && ts.find(node.modifiers, function (m) { return m.kind === kind; });\n }\n ts.findModifier = findModifier;\n function insertImports(changes, sourceFile, imports, blankLineBetween) {\n var decl = ts.isArray(imports) ? imports[0] : imports;\n var importKindPredicate = decl.kind === 235 /* VariableStatement */ ? ts.isRequireVariableStatement : ts.isAnyImportSyntax;\n var existingImportStatements = ts.filter(sourceFile.statements, importKindPredicate);\n var sortedNewImports = ts.isArray(imports) ? ts.stableSort(imports, ts.OrganizeImports.compareImportsOrRequireStatements) : [imports];\n if (!existingImportStatements.length) {\n changes.insertNodesAtTopOfFile(sourceFile, sortedNewImports, blankLineBetween);\n }\n else if (existingImportStatements && ts.OrganizeImports.importsAreSorted(existingImportStatements)) {\n for (var _i = 0, sortedNewImports_1 = sortedNewImports; _i < sortedNewImports_1.length; _i++) {\n var newImport = sortedNewImports_1[_i];\n var insertionIndex = ts.OrganizeImports.getImportDeclarationInsertionIndex(existingImportStatements, newImport);\n if (insertionIndex === 0) {\n // If the first import is top-of-file, insert after the leading comment which is likely the header.\n var options = existingImportStatements[0] === sourceFile.statements[0] ?\n { leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude } : {};\n changes.insertNodeBefore(sourceFile, existingImportStatements[0], newImport, /*blankLineBetween*/ false, options);\n }\n else {\n var prevImport = existingImportStatements[insertionIndex - 1];\n changes.insertNodeAfter(sourceFile, prevImport, newImport);\n }\n }\n }\n else {\n var lastExistingImport = ts.lastOrUndefined(existingImportStatements);\n if (lastExistingImport) {\n changes.insertNodesAfter(sourceFile, lastExistingImport, sortedNewImports);\n }\n else {\n changes.insertNodesAtTopOfFile(sourceFile, sortedNewImports, blankLineBetween);\n }\n }\n }\n ts.insertImports = insertImports;\n function getTypeKeywordOfTypeOnlyImport(importClause, sourceFile) {\n ts.Debug.assert(importClause.isTypeOnly);\n return ts.cast(importClause.getChildAt(0, sourceFile), isTypeKeywordToken);\n }\n ts.getTypeKeywordOfTypeOnlyImport = getTypeKeywordOfTypeOnlyImport;\n function textSpansEqual(a, b) {\n return !!a && !!b && a.start === b.start && a.length === b.length;\n }\n ts.textSpansEqual = textSpansEqual;\n function documentSpansEqual(a, b) {\n return a.fileName === b.fileName && textSpansEqual(a.textSpan, b.textSpan);\n }\n ts.documentSpansEqual = documentSpansEqual;\n /**\n * Iterates through 'array' by index and performs the callback on each element of array until the callback\n * returns a truthy value, then returns that value.\n * If no such value is found, the callback is applied to each element of array and undefined is returned.\n */\n function forEachUnique(array, callback) {\n if (array) {\n for (var i = 0; i < array.length; i++) {\n if (array.indexOf(array[i]) === i) {\n var result = callback(array[i], i);\n if (result) {\n return result;\n }\n }\n }\n }\n return undefined;\n }\n ts.forEachUnique = forEachUnique;\n function isTextWhiteSpaceLike(text, startPos, endPos) {\n for (var i = startPos; i < endPos; i++) {\n if (!ts.isWhiteSpaceLike(text.charCodeAt(i))) {\n return false;\n }\n }\n return true;\n }\n ts.isTextWhiteSpaceLike = isTextWhiteSpaceLike;\n // #endregion\n // Display-part writer helpers\n // #region\n function isFirstDeclarationOfSymbolParameter(symbol) {\n return symbol.declarations && symbol.declarations.length > 0 && symbol.declarations[0].kind === 162 /* Parameter */;\n }\n ts.isFirstDeclarationOfSymbolParameter = isFirstDeclarationOfSymbolParameter;\n var displayPartWriter = getDisplayPartWriter();\n function getDisplayPartWriter() {\n var absoluteMaximumLength = ts.defaultMaximumTruncationLength * 10; // A hard cutoff to avoid overloading the messaging channel in worst-case scenarios\n var displayParts;\n var lineStart;\n var indent;\n var length;\n resetWriter();\n var unknownWrite = function (text) { return writeKind(text, ts.SymbolDisplayPartKind.text); };\n return {\n displayParts: function () {\n var finalText = displayParts.length && displayParts[displayParts.length - 1].text;\n if (length > absoluteMaximumLength && finalText && finalText !== \"...\") {\n if (!ts.isWhiteSpaceLike(finalText.charCodeAt(finalText.length - 1))) {\n displayParts.push(displayPart(\" \", ts.SymbolDisplayPartKind.space));\n }\n displayParts.push(displayPart(\"...\", ts.SymbolDisplayPartKind.punctuation));\n }\n return displayParts;\n },\n writeKeyword: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.keyword); },\n writeOperator: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.operator); },\n writePunctuation: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.punctuation); },\n writeTrailingSemicolon: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.punctuation); },\n writeSpace: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.space); },\n writeStringLiteral: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.stringLiteral); },\n writeParameter: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.parameterName); },\n writeProperty: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.propertyName); },\n writeLiteral: function (text) { return writeKind(text, ts.SymbolDisplayPartKind.stringLiteral); },\n writeSymbol: writeSymbol,\n writeLine: writeLine,\n write: unknownWrite,\n writeComment: unknownWrite,\n getText: function () { return \"\"; },\n getTextPos: function () { return 0; },\n getColumn: function () { return 0; },\n getLine: function () { return 0; },\n isAtStartOfLine: function () { return false; },\n hasTrailingWhitespace: function () { return false; },\n hasTrailingComment: function () { return false; },\n rawWrite: ts.notImplemented,\n getIndent: function () { return indent; },\n increaseIndent: function () { indent++; },\n decreaseIndent: function () { indent--; },\n clear: resetWriter,\n trackSymbol: function () { return false; },\n reportInaccessibleThisError: ts.noop,\n reportInaccessibleUniqueSymbolError: ts.noop,\n reportPrivateInBaseOfClassExpression: ts.noop,\n };\n function writeIndent() {\n if (length > absoluteMaximumLength)\n return;\n if (lineStart) {\n var indentString = ts.getIndentString(indent);\n if (indentString) {\n length += indentString.length;\n displayParts.push(displayPart(indentString, ts.SymbolDisplayPartKind.space));\n }\n lineStart = false;\n }\n }\n function writeKind(text, kind) {\n if (length > absoluteMaximumLength)\n return;\n writeIndent();\n length += text.length;\n displayParts.push(displayPart(text, kind));\n }\n function writeSymbol(text, symbol) {\n if (length > absoluteMaximumLength)\n return;\n writeIndent();\n length += text.length;\n displayParts.push(symbolPart(text, symbol));\n }\n function writeLine() {\n if (length > absoluteMaximumLength)\n return;\n length += 1;\n displayParts.push(lineBreakPart());\n lineStart = true;\n }\n function resetWriter() {\n displayParts = [];\n lineStart = true;\n indent = 0;\n length = 0;\n }\n }\n function symbolPart(text, symbol) {\n return displayPart(text, displayPartKind(symbol));\n function displayPartKind(symbol) {\n var flags = symbol.flags;\n if (flags & 3 /* Variable */) {\n return isFirstDeclarationOfSymbolParameter(symbol) ? ts.SymbolDisplayPartKind.parameterName : ts.SymbolDisplayPartKind.localName;\n }\n else if (flags & 4 /* Property */) {\n return ts.SymbolDisplayPartKind.propertyName;\n }\n else if (flags & 32768 /* GetAccessor */) {\n return ts.SymbolDisplayPartKind.propertyName;\n }\n else if (flags & 65536 /* SetAccessor */) {\n return ts.SymbolDisplayPartKind.propertyName;\n }\n else if (flags & 8 /* EnumMember */) {\n return ts.SymbolDisplayPartKind.enumMemberName;\n }\n else if (flags & 16 /* Function */) {\n return ts.SymbolDisplayPartKind.functionName;\n }\n else if (flags & 32 /* Class */) {\n return ts.SymbolDisplayPartKind.className;\n }\n else if (flags & 64 /* Interface */) {\n return ts.SymbolDisplayPartKind.interfaceName;\n }\n else if (flags & 384 /* Enum */) {\n return ts.SymbolDisplayPartKind.enumName;\n }\n else if (flags & 1536 /* Module */) {\n return ts.SymbolDisplayPartKind.moduleName;\n }\n else if (flags & 8192 /* Method */) {\n return ts.SymbolDisplayPartKind.methodName;\n }\n else if (flags & 262144 /* TypeParameter */) {\n return ts.SymbolDisplayPartKind.typeParameterName;\n }\n else if (flags & 524288 /* TypeAlias */) {\n return ts.SymbolDisplayPartKind.aliasName;\n }\n else if (flags & 2097152 /* Alias */) {\n return ts.SymbolDisplayPartKind.aliasName;\n }\n return ts.SymbolDisplayPartKind.text;\n }\n }\n ts.symbolPart = symbolPart;\n function displayPart(text, kind) {\n return { text: text, kind: ts.SymbolDisplayPartKind[kind] };\n }\n ts.displayPart = displayPart;\n function spacePart() {\n return displayPart(\" \", ts.SymbolDisplayPartKind.space);\n }\n ts.spacePart = spacePart;\n function keywordPart(kind) {\n return displayPart(ts.tokenToString(kind), ts.SymbolDisplayPartKind.keyword);\n }\n ts.keywordPart = keywordPart;\n function punctuationPart(kind) {\n return displayPart(ts.tokenToString(kind), ts.SymbolDisplayPartKind.punctuation);\n }\n ts.punctuationPart = punctuationPart;\n function operatorPart(kind) {\n return displayPart(ts.tokenToString(kind), ts.SymbolDisplayPartKind.operator);\n }\n ts.operatorPart = operatorPart;\n function parameterNamePart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.parameterName);\n }\n ts.parameterNamePart = parameterNamePart;\n function propertyNamePart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.propertyName);\n }\n ts.propertyNamePart = propertyNamePart;\n function textOrKeywordPart(text) {\n var kind = ts.stringToToken(text);\n return kind === undefined\n ? textPart(text)\n : keywordPart(kind);\n }\n ts.textOrKeywordPart = textOrKeywordPart;\n function textPart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.text);\n }\n ts.textPart = textPart;\n function typeAliasNamePart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.aliasName);\n }\n ts.typeAliasNamePart = typeAliasNamePart;\n function typeParameterNamePart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.typeParameterName);\n }\n ts.typeParameterNamePart = typeParameterNamePart;\n function linkTextPart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.linkText);\n }\n ts.linkTextPart = linkTextPart;\n function linkNamePart(name, target) {\n return {\n text: ts.getTextOfNode(name),\n kind: ts.SymbolDisplayPartKind[ts.SymbolDisplayPartKind.linkName],\n target: {\n fileName: ts.getSourceFileOfNode(target).fileName,\n textSpan: createTextSpanFromNode(target),\n },\n };\n }\n ts.linkNamePart = linkNamePart;\n function linkPart(text) {\n return displayPart(text, ts.SymbolDisplayPartKind.link);\n }\n ts.linkPart = linkPart;\n function buildLinkParts(link, checker) {\n var _a;\n var prefix = ts.isJSDocLink(link) ? \"link\"\n : ts.isJSDocLinkCode(link) ? \"linkcode\"\n : \"linkplain\";\n var parts = [linkPart(\"{@\" + prefix + \" \")];\n if (!link.name) {\n if (link.text) {\n parts.push(linkTextPart(link.text));\n }\n }\n else {\n var symbol = checker === null || checker === void 0 ? void 0 : checker.getSymbolAtLocation(link.name);\n var decl = (symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration) || ((_a = symbol === null || symbol === void 0 ? void 0 : symbol.declarations) === null || _a === void 0 ? void 0 : _a[0]);\n if (decl) {\n parts.push(linkNamePart(link.name, decl));\n if (link.text) {\n parts.push(linkTextPart(link.text));\n }\n }\n else {\n parts.push(linkTextPart(ts.getTextOfNode(link.name) + \" \" + link.text));\n }\n }\n parts.push(linkPart(\"}\"));\n return parts;\n }\n ts.buildLinkParts = buildLinkParts;\n var carriageReturnLineFeed = \"\\r\\n\";\n /**\n * The default is CRLF.\n */\n function getNewLineOrDefaultFromHost(host, formatSettings) {\n var _a;\n return (formatSettings === null || formatSettings === void 0 ? void 0 : formatSettings.newLineCharacter) ||\n ((_a = host.getNewLine) === null || _a === void 0 ? void 0 : _a.call(host)) ||\n carriageReturnLineFeed;\n }\n ts.getNewLineOrDefaultFromHost = getNewLineOrDefaultFromHost;\n function lineBreakPart() {\n return displayPart(\"\\n\", ts.SymbolDisplayPartKind.lineBreak);\n }\n ts.lineBreakPart = lineBreakPart;\n function mapToDisplayParts(writeDisplayParts) {\n try {\n writeDisplayParts(displayPartWriter);\n return displayPartWriter.displayParts();\n }\n finally {\n displayPartWriter.clear();\n }\n }\n ts.mapToDisplayParts = mapToDisplayParts;\n function typeToDisplayParts(typechecker, type, enclosingDeclaration, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n return mapToDisplayParts(function (writer) {\n typechecker.writeType(type, enclosingDeclaration, flags | 1024 /* MultilineObjectLiterals */ | 16384 /* UseAliasDefinedOutsideCurrentScope */, writer);\n });\n }\n ts.typeToDisplayParts = typeToDisplayParts;\n function symbolToDisplayParts(typeChecker, symbol, enclosingDeclaration, meaning, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n return mapToDisplayParts(function (writer) {\n typeChecker.writeSymbol(symbol, enclosingDeclaration, meaning, flags | 8 /* UseAliasDefinedOutsideCurrentScope */, writer);\n });\n }\n ts.symbolToDisplayParts = symbolToDisplayParts;\n function signatureToDisplayParts(typechecker, signature, enclosingDeclaration, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n flags |= 16384 /* UseAliasDefinedOutsideCurrentScope */ | 1024 /* MultilineObjectLiterals */ | 32 /* WriteTypeArgumentsOfSignature */ | 8192 /* OmitParameterModifiers */;\n return mapToDisplayParts(function (writer) {\n typechecker.writeSignature(signature, enclosingDeclaration, flags, /*signatureKind*/ undefined, writer);\n });\n }\n ts.signatureToDisplayParts = signatureToDisplayParts;\n function isImportOrExportSpecifierName(location) {\n return !!location.parent && ts.isImportOrExportSpecifier(location.parent) && location.parent.propertyName === location;\n }\n ts.isImportOrExportSpecifierName = isImportOrExportSpecifierName;\n function getScriptKind(fileName, host) {\n // First check to see if the script kind was specified by the host. Chances are the host\n // may override the default script kind for the file extension.\n return ts.ensureScriptKind(fileName, host.getScriptKind && host.getScriptKind(fileName));\n }\n ts.getScriptKind = getScriptKind;\n function getSymbolTarget(symbol, checker) {\n var next = symbol;\n while (isAliasSymbol(next) || (isTransientSymbol(next) && next.target)) {\n if (isTransientSymbol(next) && next.target) {\n next = next.target;\n }\n else {\n next = ts.skipAlias(next, checker);\n }\n }\n return next;\n }\n ts.getSymbolTarget = getSymbolTarget;\n function isTransientSymbol(symbol) {\n return (symbol.flags & 33554432 /* Transient */) !== 0;\n }\n function isAliasSymbol(symbol) {\n return (symbol.flags & 2097152 /* Alias */) !== 0;\n }\n function getUniqueSymbolId(symbol, checker) {\n return ts.getSymbolId(ts.skipAlias(symbol, checker));\n }\n ts.getUniqueSymbolId = getUniqueSymbolId;\n function getFirstNonSpaceCharacterPosition(text, position) {\n while (ts.isWhiteSpaceLike(text.charCodeAt(position))) {\n position += 1;\n }\n return position;\n }\n ts.getFirstNonSpaceCharacterPosition = getFirstNonSpaceCharacterPosition;\n function getPrecedingNonSpaceCharacterPosition(text, position) {\n while (position > -1 && ts.isWhiteSpaceSingleLine(text.charCodeAt(position))) {\n position -= 1;\n }\n return position + 1;\n }\n ts.getPrecedingNonSpaceCharacterPosition = getPrecedingNonSpaceCharacterPosition;\n /**\n * Creates a deep, memberwise clone of a node with no source map location.\n *\n * WARNING: This is an expensive operation and is only intended to be used in refactorings\n * and code fixes (because those are triggered by explicit user actions).\n */\n function getSynthesizedDeepClone(node, includeTrivia) {\n if (includeTrivia === void 0) { includeTrivia = true; }\n var clone = node && getSynthesizedDeepCloneWorker(node);\n if (clone && !includeTrivia)\n suppressLeadingAndTrailingTrivia(clone);\n return clone;\n }\n ts.getSynthesizedDeepClone = getSynthesizedDeepClone;\n function getSynthesizedDeepCloneWithReplacements(node, includeTrivia, replaceNode) {\n var clone = replaceNode(node);\n if (clone) {\n ts.setOriginalNode(clone, node);\n }\n else {\n clone = getSynthesizedDeepCloneWorker(node, replaceNode);\n }\n if (clone && !includeTrivia)\n suppressLeadingAndTrailingTrivia(clone);\n return clone;\n }\n ts.getSynthesizedDeepCloneWithReplacements = getSynthesizedDeepCloneWithReplacements;\n function getSynthesizedDeepCloneWorker(node, replaceNode) {\n var nodeClone = replaceNode\n ? function (n) { return getSynthesizedDeepCloneWithReplacements(n, /*includeTrivia*/ true, replaceNode); }\n : getSynthesizedDeepClone;\n var nodesClone = replaceNode\n ? function (ns) { return ns && getSynthesizedDeepClonesWithReplacements(ns, /*includeTrivia*/ true, replaceNode); }\n : function (ns) { return ns && getSynthesizedDeepClones(ns); };\n var visited = ts.visitEachChild(node, nodeClone, ts.nullTransformationContext, nodesClone, nodeClone);\n if (visited === node) {\n // This only happens for leaf nodes - internal nodes always see their children change.\n var clone_1 = ts.isStringLiteral(node) ? ts.setOriginalNode(ts.factory.createStringLiteralFromNode(node), node) :\n ts.isNumericLiteral(node) ? ts.setOriginalNode(ts.factory.createNumericLiteral(node.text, node.numericLiteralFlags), node) :\n ts.factory.cloneNode(node);\n return ts.setTextRange(clone_1, node);\n }\n // PERF: As an optimization, rather than calling factory.cloneNode, we'll update\n // the new node created by visitEachChild with the extra changes factory.cloneNode\n // would have made.\n visited.parent = undefined;\n return visited;\n }\n function getSynthesizedDeepClones(nodes, includeTrivia) {\n if (includeTrivia === void 0) { includeTrivia = true; }\n return nodes && ts.factory.createNodeArray(nodes.map(function (n) { return getSynthesizedDeepClone(n, includeTrivia); }), nodes.hasTrailingComma);\n }\n ts.getSynthesizedDeepClones = getSynthesizedDeepClones;\n function getSynthesizedDeepClonesWithReplacements(nodes, includeTrivia, replaceNode) {\n return ts.factory.createNodeArray(nodes.map(function (n) { return getSynthesizedDeepCloneWithReplacements(n, includeTrivia, replaceNode); }), nodes.hasTrailingComma);\n }\n ts.getSynthesizedDeepClonesWithReplacements = getSynthesizedDeepClonesWithReplacements;\n /**\n * Sets EmitFlags to suppress leading and trailing trivia on the node.\n */\n function suppressLeadingAndTrailingTrivia(node) {\n suppressLeadingTrivia(node);\n suppressTrailingTrivia(node);\n }\n ts.suppressLeadingAndTrailingTrivia = suppressLeadingAndTrailingTrivia;\n /**\n * Sets EmitFlags to suppress leading trivia on the node.\n */\n function suppressLeadingTrivia(node) {\n addEmitFlagsRecursively(node, 512 /* NoLeadingComments */, getFirstChild);\n }\n ts.suppressLeadingTrivia = suppressLeadingTrivia;\n /**\n * Sets EmitFlags to suppress trailing trivia on the node.\n */\n function suppressTrailingTrivia(node) {\n addEmitFlagsRecursively(node, 1024 /* NoTrailingComments */, ts.getLastChild);\n }\n ts.suppressTrailingTrivia = suppressTrailingTrivia;\n function copyComments(sourceNode, targetNode) {\n var sourceFile = sourceNode.getSourceFile();\n var text = sourceFile.text;\n if (hasLeadingLineBreak(sourceNode, text)) {\n copyLeadingComments(sourceNode, targetNode, sourceFile);\n }\n else {\n copyTrailingAsLeadingComments(sourceNode, targetNode, sourceFile);\n }\n copyTrailingComments(sourceNode, targetNode, sourceFile);\n }\n ts.copyComments = copyComments;\n function hasLeadingLineBreak(node, text) {\n var start = node.getFullStart();\n var end = node.getStart();\n for (var i = start; i < end; i++) {\n if (text.charCodeAt(i) === 10 /* lineFeed */)\n return true;\n }\n return false;\n }\n function addEmitFlagsRecursively(node, flag, getChild) {\n ts.addEmitFlags(node, flag);\n var child = getChild(node);\n if (child)\n addEmitFlagsRecursively(child, flag, getChild);\n }\n function getFirstChild(node) {\n return node.forEachChild(function (child) { return child; });\n }\n function getUniqueName(baseName, sourceFile) {\n var nameText = baseName;\n for (var i = 1; !ts.isFileLevelUniqueName(sourceFile, nameText); i++) {\n nameText = baseName + \"_\" + i;\n }\n return nameText;\n }\n ts.getUniqueName = getUniqueName;\n /**\n * @return The index of the (only) reference to the extracted symbol. We want the cursor\n * to be on the reference, rather than the declaration, because it's closer to where the\n * user was before extracting it.\n */\n function getRenameLocation(edits, renameFilename, name, preferLastLocation) {\n var delta = 0;\n var lastPos = -1;\n for (var _i = 0, edits_1 = edits; _i < edits_1.length; _i++) {\n var _a = edits_1[_i], fileName = _a.fileName, textChanges_2 = _a.textChanges;\n ts.Debug.assert(fileName === renameFilename);\n for (var _b = 0, textChanges_1 = textChanges_2; _b < textChanges_1.length; _b++) {\n var change = textChanges_1[_b];\n var span = change.span, newText = change.newText;\n var index = indexInTextChange(newText, name);\n if (index !== -1) {\n lastPos = span.start + delta + index;\n // If the reference comes first, return immediately.\n if (!preferLastLocation) {\n return lastPos;\n }\n }\n delta += newText.length - span.length;\n }\n }\n // If the declaration comes first, return the position of the last occurrence.\n ts.Debug.assert(preferLastLocation);\n ts.Debug.assert(lastPos >= 0);\n return lastPos;\n }\n ts.getRenameLocation = getRenameLocation;\n function copyLeadingComments(sourceNode, targetNode, sourceFile, commentKind, hasTrailingNewLine) {\n ts.forEachLeadingCommentRange(sourceFile.text, sourceNode.pos, getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, ts.addSyntheticLeadingComment));\n }\n ts.copyLeadingComments = copyLeadingComments;\n function copyTrailingComments(sourceNode, targetNode, sourceFile, commentKind, hasTrailingNewLine) {\n ts.forEachTrailingCommentRange(sourceFile.text, sourceNode.end, getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, ts.addSyntheticTrailingComment));\n }\n ts.copyTrailingComments = copyTrailingComments;\n /**\n * This function copies the trailing comments for the token that comes before `sourceNode`, as leading comments of `targetNode`.\n * This is useful because sometimes a comment that refers to `sourceNode` will be a leading comment for `sourceNode`, according to the\n * notion of trivia ownership, and instead will be a trailing comment for the token before `sourceNode`, e.g.:\n * `function foo(\\* not leading comment for a *\\ a: string) {}`\n * The comment refers to `a` but belongs to the `(` token, but we might want to copy it.\n */\n function copyTrailingAsLeadingComments(sourceNode, targetNode, sourceFile, commentKind, hasTrailingNewLine) {\n ts.forEachTrailingCommentRange(sourceFile.text, sourceNode.pos, getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, ts.addSyntheticLeadingComment));\n }\n ts.copyTrailingAsLeadingComments = copyTrailingAsLeadingComments;\n function getAddCommentsFunction(targetNode, sourceFile, commentKind, hasTrailingNewLine, cb) {\n return function (pos, end, kind, htnl) {\n if (kind === 3 /* MultiLineCommentTrivia */) {\n // Remove leading /*\n pos += 2;\n // Remove trailing */\n end -= 2;\n }\n else {\n // Remove leading //\n pos += 2;\n }\n cb(targetNode, commentKind || kind, sourceFile.text.slice(pos, end), hasTrailingNewLine !== undefined ? hasTrailingNewLine : htnl);\n };\n }\n function indexInTextChange(change, name) {\n if (ts.startsWith(change, name))\n return 0;\n // Add a \" \" to avoid references inside words\n var idx = change.indexOf(\" \" + name);\n if (idx === -1)\n idx = change.indexOf(\".\" + name);\n if (idx === -1)\n idx = change.indexOf('\"' + name);\n return idx === -1 ? -1 : idx + 1;\n }\n /* @internal */\n function needsParentheses(expression) {\n return ts.isBinaryExpression(expression) && expression.operatorToken.kind === 27 /* CommaToken */\n || ts.isObjectLiteralExpression(expression)\n || ts.isAsExpression(expression) && ts.isObjectLiteralExpression(expression.expression);\n }\n ts.needsParentheses = needsParentheses;\n function getContextualTypeFromParent(node, checker) {\n var parent = node.parent;\n switch (parent.kind) {\n case 207 /* NewExpression */:\n return checker.getContextualType(parent);\n case 219 /* BinaryExpression */: {\n var _a = parent, left = _a.left, operatorToken = _a.operatorToken, right = _a.right;\n return isEqualityOperatorKind(operatorToken.kind)\n ? checker.getTypeAtLocation(node === right ? left : right)\n : checker.getContextualType(node);\n }\n case 287 /* CaseClause */:\n return parent.expression === node ? getSwitchedType(parent, checker) : undefined;\n default:\n return checker.getContextualType(node);\n }\n }\n ts.getContextualTypeFromParent = getContextualTypeFromParent;\n function quote(sourceFile, preferences, text) {\n // Editors can pass in undefined or empty string - we want to infer the preference in those cases.\n var quotePreference = getQuotePreference(sourceFile, preferences);\n var quoted = JSON.stringify(text);\n return quotePreference === 0 /* Single */ ? \"'\" + ts.stripQuotes(quoted).replace(/'/g, \"\\\\'\").replace(/\\\\\"/g, '\"') + \"'\" : quoted;\n }\n ts.quote = quote;\n function isEqualityOperatorKind(kind) {\n switch (kind) {\n case 36 /* EqualsEqualsEqualsToken */:\n case 34 /* EqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n return true;\n default:\n return false;\n }\n }\n ts.isEqualityOperatorKind = isEqualityOperatorKind;\n function isStringLiteralOrTemplate(node) {\n switch (node.kind) {\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 221 /* TemplateExpression */:\n case 208 /* TaggedTemplateExpression */:\n return true;\n default:\n return false;\n }\n }\n ts.isStringLiteralOrTemplate = isStringLiteralOrTemplate;\n function hasIndexSignature(type) {\n return !!type.getStringIndexType() || !!type.getNumberIndexType();\n }\n ts.hasIndexSignature = hasIndexSignature;\n function getSwitchedType(caseClause, checker) {\n return checker.getTypeAtLocation(caseClause.parent.parent.expression);\n }\n ts.getSwitchedType = getSwitchedType;\n ts.ANONYMOUS = \"anonymous function\";\n function getTypeNodeIfAccessible(type, enclosingScope, program, host) {\n var checker = program.getTypeChecker();\n var typeIsAccessible = true;\n var notAccessible = function () { typeIsAccessible = false; };\n var res = checker.typeToTypeNode(type, enclosingScope, 1 /* NoTruncation */, {\n trackSymbol: function (symbol, declaration, meaning) {\n typeIsAccessible = typeIsAccessible && checker.isSymbolAccessible(symbol, declaration, meaning, /*shouldComputeAliasToMarkVisible*/ false).accessibility === 0 /* Accessible */;\n return !typeIsAccessible;\n },\n reportInaccessibleThisError: notAccessible,\n reportPrivateInBaseOfClassExpression: notAccessible,\n reportInaccessibleUniqueSymbolError: notAccessible,\n moduleResolverHost: getModuleSpecifierResolverHost(program, host)\n });\n return typeIsAccessible ? res : undefined;\n }\n ts.getTypeNodeIfAccessible = getTypeNodeIfAccessible;\n function syntaxRequiresTrailingCommaOrSemicolonOrASI(kind) {\n return kind === 172 /* CallSignature */\n || kind === 173 /* ConstructSignature */\n || kind === 174 /* IndexSignature */\n || kind === 164 /* PropertySignature */\n || kind === 166 /* MethodSignature */;\n }\n ts.syntaxRequiresTrailingCommaOrSemicolonOrASI = syntaxRequiresTrailingCommaOrSemicolonOrASI;\n function syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(kind) {\n return kind === 254 /* FunctionDeclaration */\n || kind === 169 /* Constructor */\n || kind === 167 /* MethodDeclaration */\n || kind === 170 /* GetAccessor */\n || kind === 171 /* SetAccessor */;\n }\n ts.syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI = syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI;\n function syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(kind) {\n return kind === 259 /* ModuleDeclaration */;\n }\n ts.syntaxRequiresTrailingModuleBlockOrSemicolonOrASI = syntaxRequiresTrailingModuleBlockOrSemicolonOrASI;\n function syntaxRequiresTrailingSemicolonOrASI(kind) {\n return kind === 235 /* VariableStatement */\n || kind === 236 /* ExpressionStatement */\n || kind === 238 /* DoStatement */\n || kind === 243 /* ContinueStatement */\n || kind === 244 /* BreakStatement */\n || kind === 245 /* ReturnStatement */\n || kind === 249 /* ThrowStatement */\n || kind === 251 /* DebuggerStatement */\n || kind === 165 /* PropertyDeclaration */\n || kind === 257 /* TypeAliasDeclaration */\n || kind === 264 /* ImportDeclaration */\n || kind === 263 /* ImportEqualsDeclaration */\n || kind === 270 /* ExportDeclaration */\n || kind === 262 /* NamespaceExportDeclaration */\n || kind === 269 /* ExportAssignment */;\n }\n ts.syntaxRequiresTrailingSemicolonOrASI = syntaxRequiresTrailingSemicolonOrASI;\n ts.syntaxMayBeASICandidate = ts.or(syntaxRequiresTrailingCommaOrSemicolonOrASI, syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI, syntaxRequiresTrailingModuleBlockOrSemicolonOrASI, syntaxRequiresTrailingSemicolonOrASI);\n function nodeIsASICandidate(node, sourceFile) {\n var lastToken = node.getLastToken(sourceFile);\n if (lastToken && lastToken.kind === 26 /* SemicolonToken */) {\n return false;\n }\n if (syntaxRequiresTrailingCommaOrSemicolonOrASI(node.kind)) {\n if (lastToken && lastToken.kind === 27 /* CommaToken */) {\n return false;\n }\n }\n else if (syntaxRequiresTrailingModuleBlockOrSemicolonOrASI(node.kind)) {\n var lastChild = ts.last(node.getChildren(sourceFile));\n if (lastChild && ts.isModuleBlock(lastChild)) {\n return false;\n }\n }\n else if (syntaxRequiresTrailingFunctionBlockOrSemicolonOrASI(node.kind)) {\n var lastChild = ts.last(node.getChildren(sourceFile));\n if (lastChild && ts.isFunctionBlock(lastChild)) {\n return false;\n }\n }\n else if (!syntaxRequiresTrailingSemicolonOrASI(node.kind)) {\n return false;\n }\n // See comment in parser’s `parseDoStatement`\n if (node.kind === 238 /* DoStatement */) {\n return true;\n }\n var topNode = ts.findAncestor(node, function (ancestor) { return !ancestor.parent; });\n var nextToken = findNextToken(node, topNode, sourceFile);\n if (!nextToken || nextToken.kind === 19 /* CloseBraceToken */) {\n return true;\n }\n var startLine = sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line;\n var endLine = sourceFile.getLineAndCharacterOfPosition(nextToken.getStart(sourceFile)).line;\n return startLine !== endLine;\n }\n function positionIsASICandidate(pos, context, sourceFile) {\n var contextAncestor = ts.findAncestor(context, function (ancestor) {\n if (ancestor.end !== pos) {\n return \"quit\";\n }\n return ts.syntaxMayBeASICandidate(ancestor.kind);\n });\n return !!contextAncestor && nodeIsASICandidate(contextAncestor, sourceFile);\n }\n ts.positionIsASICandidate = positionIsASICandidate;\n function probablyUsesSemicolons(sourceFile) {\n var withSemicolon = 0;\n var withoutSemicolon = 0;\n var nStatementsToObserve = 5;\n ts.forEachChild(sourceFile, function visit(node) {\n if (syntaxRequiresTrailingSemicolonOrASI(node.kind)) {\n var lastToken = node.getLastToken(sourceFile);\n if (lastToken && lastToken.kind === 26 /* SemicolonToken */) {\n withSemicolon++;\n }\n else {\n withoutSemicolon++;\n }\n }\n if (withSemicolon + withoutSemicolon >= nStatementsToObserve) {\n return true;\n }\n return ts.forEachChild(node, visit);\n });\n // One statement missing a semicolon isn’t sufficient evidence to say the user\n // doesn’t want semicolons, because they may not even be done writing that statement.\n if (withSemicolon === 0 && withoutSemicolon <= 1) {\n return true;\n }\n // If even 2/5 places have a semicolon, the user probably wants semicolons\n return withSemicolon / withoutSemicolon > 1 / nStatementsToObserve;\n }\n ts.probablyUsesSemicolons = probablyUsesSemicolons;\n function tryGetDirectories(host, directoryName) {\n return tryIOAndConsumeErrors(host, host.getDirectories, directoryName) || [];\n }\n ts.tryGetDirectories = tryGetDirectories;\n function tryReadDirectory(host, path, extensions, exclude, include) {\n return tryIOAndConsumeErrors(host, host.readDirectory, path, extensions, exclude, include) || ts.emptyArray;\n }\n ts.tryReadDirectory = tryReadDirectory;\n function tryFileExists(host, path) {\n return tryIOAndConsumeErrors(host, host.fileExists, path);\n }\n ts.tryFileExists = tryFileExists;\n function tryDirectoryExists(host, path) {\n return tryAndIgnoreErrors(function () { return ts.directoryProbablyExists(path, host); }) || false;\n }\n ts.tryDirectoryExists = tryDirectoryExists;\n function tryAndIgnoreErrors(cb) {\n try {\n return cb();\n }\n catch (_a) {\n return undefined;\n }\n }\n ts.tryAndIgnoreErrors = tryAndIgnoreErrors;\n function tryIOAndConsumeErrors(host, toApply) {\n var args = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n args[_i - 2] = arguments[_i];\n }\n return tryAndIgnoreErrors(function () { return toApply && toApply.apply(host, args); });\n }\n ts.tryIOAndConsumeErrors = tryIOAndConsumeErrors;\n function findPackageJsons(startDirectory, host, stopDirectory) {\n var paths = [];\n ts.forEachAncestorDirectory(startDirectory, function (ancestor) {\n if (ancestor === stopDirectory) {\n return true;\n }\n var currentConfigPath = ts.combinePaths(ancestor, \"package.json\");\n if (tryFileExists(host, currentConfigPath)) {\n paths.push(currentConfigPath);\n }\n });\n return paths;\n }\n ts.findPackageJsons = findPackageJsons;\n function findPackageJson(directory, host) {\n var packageJson;\n ts.forEachAncestorDirectory(directory, function (ancestor) {\n if (ancestor === \"node_modules\")\n return true;\n packageJson = ts.findConfigFile(ancestor, function (f) { return tryFileExists(host, f); }, \"package.json\");\n if (packageJson) {\n return true; // break out\n }\n });\n return packageJson;\n }\n ts.findPackageJson = findPackageJson;\n function getPackageJsonsVisibleToFile(fileName, host) {\n if (!host.fileExists) {\n return [];\n }\n var packageJsons = [];\n ts.forEachAncestorDirectory(ts.getDirectoryPath(fileName), function (ancestor) {\n var packageJsonFileName = ts.combinePaths(ancestor, \"package.json\");\n if (host.fileExists(packageJsonFileName)) {\n var info = createPackageJsonInfo(packageJsonFileName, host);\n if (info) {\n packageJsons.push(info);\n }\n }\n });\n return packageJsons;\n }\n ts.getPackageJsonsVisibleToFile = getPackageJsonsVisibleToFile;\n function createPackageJsonInfo(fileName, host) {\n if (!host.readFile) {\n return undefined;\n }\n var dependencyKeys = [\"dependencies\", \"devDependencies\", \"optionalDependencies\", \"peerDependencies\"];\n var stringContent = host.readFile(fileName) || \"\";\n var content = tryParseJson(stringContent);\n var info = {};\n if (content) {\n for (var _i = 0, dependencyKeys_1 = dependencyKeys; _i < dependencyKeys_1.length; _i++) {\n var key = dependencyKeys_1[_i];\n var dependencies = content[key];\n if (!dependencies) {\n continue;\n }\n var dependencyMap = new ts.Map();\n for (var packageName in dependencies) {\n dependencyMap.set(packageName, dependencies[packageName]);\n }\n info[key] = dependencyMap;\n }\n }\n var dependencyGroups = [\n [1 /* Dependencies */, info.dependencies],\n [2 /* DevDependencies */, info.devDependencies],\n [8 /* OptionalDependencies */, info.optionalDependencies],\n [4 /* PeerDependencies */, info.peerDependencies],\n ];\n return __assign(__assign({}, info), { parseable: !!content, fileName: fileName, get: get, has: function (dependencyName, inGroups) {\n return !!get(dependencyName, inGroups);\n } });\n function get(dependencyName, inGroups) {\n if (inGroups === void 0) { inGroups = 15 /* All */; }\n for (var _i = 0, dependencyGroups_1 = dependencyGroups; _i < dependencyGroups_1.length; _i++) {\n var _a = dependencyGroups_1[_i], group_1 = _a[0], deps = _a[1];\n if (deps && (inGroups & group_1)) {\n var dep = deps.get(dependencyName);\n if (dep !== undefined) {\n return dep;\n }\n }\n }\n }\n }\n ts.createPackageJsonInfo = createPackageJsonInfo;\n function createPackageJsonImportFilter(fromFile, preferences, host) {\n var packageJsons = ((host.getPackageJsonsVisibleToFile && host.getPackageJsonsVisibleToFile(fromFile.fileName)) || getPackageJsonsVisibleToFile(fromFile.fileName, host)).filter(function (p) { return p.parseable; });\n var usesNodeCoreModules;\n return { allowsImportingAmbientModule: allowsImportingAmbientModule, allowsImportingSourceFile: allowsImportingSourceFile, allowsImportingSpecifier: allowsImportingSpecifier };\n function moduleSpecifierIsCoveredByPackageJson(specifier) {\n var packageName = getNodeModuleRootSpecifier(specifier);\n for (var _i = 0, packageJsons_1 = packageJsons; _i < packageJsons_1.length; _i++) {\n var packageJson = packageJsons_1[_i];\n if (packageJson.has(packageName) || packageJson.has(ts.getTypesPackageName(packageName))) {\n return true;\n }\n }\n return false;\n }\n function allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost) {\n if (!packageJsons.length || !moduleSymbol.valueDeclaration) {\n return true;\n }\n var declaringSourceFile = moduleSymbol.valueDeclaration.getSourceFile();\n var declaringNodeModuleName = getNodeModulesPackageNameFromFileName(declaringSourceFile.fileName, moduleSpecifierResolutionHost);\n if (typeof declaringNodeModuleName === \"undefined\") {\n return true;\n }\n var declaredModuleSpecifier = ts.stripQuotes(moduleSymbol.getName());\n if (isAllowedCoreNodeModulesImport(declaredModuleSpecifier)) {\n return true;\n }\n return moduleSpecifierIsCoveredByPackageJson(declaringNodeModuleName)\n || moduleSpecifierIsCoveredByPackageJson(declaredModuleSpecifier);\n }\n function allowsImportingSourceFile(sourceFile, moduleSpecifierResolutionHost) {\n if (!packageJsons.length) {\n return true;\n }\n var moduleSpecifier = getNodeModulesPackageNameFromFileName(sourceFile.fileName, moduleSpecifierResolutionHost);\n if (!moduleSpecifier) {\n return true;\n }\n return moduleSpecifierIsCoveredByPackageJson(moduleSpecifier);\n }\n function allowsImportingSpecifier(moduleSpecifier) {\n if (!packageJsons.length || isAllowedCoreNodeModulesImport(moduleSpecifier)) {\n return true;\n }\n if (ts.pathIsRelative(moduleSpecifier) || ts.isRootedDiskPath(moduleSpecifier)) {\n return true;\n }\n return moduleSpecifierIsCoveredByPackageJson(moduleSpecifier);\n }\n function isAllowedCoreNodeModulesImport(moduleSpecifier) {\n // If we’re in JavaScript, it can be difficult to tell whether the user wants to import\n // from Node core modules or not. We can start by seeing if the user is actually using\n // any node core modules, as opposed to simply having @types/node accidentally as a\n // dependency of a dependency.\n if (ts.isSourceFileJS(fromFile) && ts.JsTyping.nodeCoreModules.has(moduleSpecifier)) {\n if (usesNodeCoreModules === undefined) {\n usesNodeCoreModules = consumesNodeCoreModules(fromFile);\n }\n if (usesNodeCoreModules) {\n return true;\n }\n }\n return false;\n }\n function getNodeModulesPackageNameFromFileName(importedFileName, moduleSpecifierResolutionHost) {\n if (!ts.stringContains(importedFileName, \"node_modules\")) {\n return undefined;\n }\n var specifier = ts.moduleSpecifiers.getNodeModulesPackageName(host.getCompilationSettings(), fromFile.path, importedFileName, moduleSpecifierResolutionHost, preferences);\n if (!specifier) {\n return undefined;\n }\n // Paths here are not node_modules, so we don’t care about them;\n // returning anything will trigger a lookup in package.json.\n if (!ts.pathIsRelative(specifier) && !ts.isRootedDiskPath(specifier)) {\n return getNodeModuleRootSpecifier(specifier);\n }\n }\n function getNodeModuleRootSpecifier(fullSpecifier) {\n var components = ts.getPathComponents(ts.getPackageNameFromTypesPackageName(fullSpecifier)).slice(1);\n // Scoped packages\n if (ts.startsWith(components[0], \"@\")) {\n return components[0] + \"/\" + components[1];\n }\n return components[0];\n }\n }\n ts.createPackageJsonImportFilter = createPackageJsonImportFilter;\n function tryParseJson(text) {\n try {\n return JSON.parse(text);\n }\n catch (_a) {\n return undefined;\n }\n }\n function consumesNodeCoreModules(sourceFile) {\n return ts.some(sourceFile.imports, function (_a) {\n var text = _a.text;\n return ts.JsTyping.nodeCoreModules.has(text);\n });\n }\n ts.consumesNodeCoreModules = consumesNodeCoreModules;\n function isInsideNodeModules(fileOrDirectory) {\n return ts.contains(ts.getPathComponents(fileOrDirectory), \"node_modules\");\n }\n ts.isInsideNodeModules = isInsideNodeModules;\n function isDiagnosticWithLocation(diagnostic) {\n return diagnostic.file !== undefined && diagnostic.start !== undefined && diagnostic.length !== undefined;\n }\n ts.isDiagnosticWithLocation = isDiagnosticWithLocation;\n function findDiagnosticForNode(node, sortedFileDiagnostics) {\n var span = createTextSpanFromNode(node);\n var index = ts.binarySearchKey(sortedFileDiagnostics, span, ts.identity, ts.compareTextSpans);\n if (index >= 0) {\n var diagnostic = sortedFileDiagnostics[index];\n ts.Debug.assertEqual(diagnostic.file, node.getSourceFile(), \"Diagnostics proided to 'findDiagnosticForNode' must be from a single SourceFile\");\n return ts.cast(diagnostic, isDiagnosticWithLocation);\n }\n }\n ts.findDiagnosticForNode = findDiagnosticForNode;\n function getDiagnosticsWithinSpan(span, sortedFileDiagnostics) {\n var _a;\n var index = ts.binarySearchKey(sortedFileDiagnostics, span.start, function (diag) { return diag.start; }, ts.compareValues);\n if (index < 0) {\n index = ~index;\n }\n while (((_a = sortedFileDiagnostics[index - 1]) === null || _a === void 0 ? void 0 : _a.start) === span.start) {\n index--;\n }\n var result = [];\n var end = ts.textSpanEnd(span);\n while (true) {\n var diagnostic = ts.tryCast(sortedFileDiagnostics[index], isDiagnosticWithLocation);\n if (!diagnostic || diagnostic.start > end) {\n break;\n }\n if (ts.textSpanContainsTextSpan(span, diagnostic)) {\n result.push(diagnostic);\n }\n index++;\n }\n return result;\n }\n ts.getDiagnosticsWithinSpan = getDiagnosticsWithinSpan;\n /* @internal */\n function getRefactorContextSpan(_a) {\n var startPosition = _a.startPosition, endPosition = _a.endPosition;\n return ts.createTextSpanFromBounds(startPosition, endPosition === undefined ? startPosition : endPosition);\n }\n ts.getRefactorContextSpan = getRefactorContextSpan;\n function mapOneOrMany(valueOrArray, f, resultSelector) {\n if (resultSelector === void 0) { resultSelector = ts.identity; }\n return valueOrArray ? ts.isArray(valueOrArray) ? resultSelector(ts.map(valueOrArray, f)) : f(valueOrArray, 0) : undefined;\n }\n ts.mapOneOrMany = mapOneOrMany;\n /**\n * If the provided value is an array, the first element of the array is returned; otherwise, the provided value is returned instead.\n */\n function firstOrOnly(valueOrArray) {\n return ts.isArray(valueOrArray) ? ts.first(valueOrArray) : valueOrArray;\n }\n ts.firstOrOnly = firstOrOnly;\n function getNameForExportedSymbol(symbol, scriptTarget) {\n if (!(symbol.flags & 33554432 /* Transient */) && (symbol.escapedName === \"export=\" /* ExportEquals */ || symbol.escapedName === \"default\" /* Default */)) {\n // Name of \"export default foo;\" is \"foo\". Name of \"export default 0\" is the filename converted to camelCase.\n return ts.firstDefined(symbol.declarations, function (d) { var _a; return ts.isExportAssignment(d) ? (_a = ts.tryCast(ts.skipOuterExpressions(d.expression), ts.isIdentifier)) === null || _a === void 0 ? void 0 : _a.text : undefined; })\n || ts.codefix.moduleSymbolToValidIdentifier(getSymbolParentOrFail(symbol), scriptTarget);\n }\n return symbol.name;\n }\n ts.getNameForExportedSymbol = getNameForExportedSymbol;\n function getSymbolParentOrFail(symbol) {\n var _a;\n return ts.Debug.checkDefined(symbol.parent, \"Symbol parent was undefined. Flags: \" + ts.Debug.formatSymbolFlags(symbol.flags) + \". \" +\n (\"Declarations: \" + ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.map(function (d) {\n var kind = ts.Debug.formatSyntaxKind(d.kind);\n var inJS = ts.isInJSFile(d);\n var expression = d.expression;\n return (inJS ? \"[JS]\" : \"\") + kind + (expression ? \" (expression: \" + ts.Debug.formatSyntaxKind(expression.kind) + \")\" : \"\");\n }).join(\", \")) + \".\"));\n }\n /**\n * Useful to check whether a string contains another string at a specific index\n * without allocating another string or traversing the entire contents of the outer string.\n *\n * This function is useful in place of either of the following:\n *\n * ```ts\n * // Allocates\n * haystack.substr(startIndex, needle.length) === needle\n *\n * // Full traversal\n * haystack.indexOf(needle, startIndex) === startIndex\n * ```\n *\n * @param haystack The string that potentially contains `needle`.\n * @param needle The string whose content might sit within `haystack`.\n * @param startIndex The index within `haystack` to start searching for `needle`.\n */\n function stringContainsAt(haystack, needle, startIndex) {\n var needleLength = needle.length;\n if (needleLength + startIndex > haystack.length) {\n return false;\n }\n for (var i = 0; i < needleLength; i++) {\n if (needle.charCodeAt(i) !== haystack.charCodeAt(i + startIndex))\n return false;\n }\n return true;\n }\n ts.stringContainsAt = stringContainsAt;\n function startsWithUnderscore(name) {\n return name.charCodeAt(0) === 95 /* _ */;\n }\n ts.startsWithUnderscore = startsWithUnderscore;\n function isGlobalDeclaration(declaration) {\n return !isNonGlobalDeclaration(declaration);\n }\n ts.isGlobalDeclaration = isGlobalDeclaration;\n function isNonGlobalDeclaration(declaration) {\n var sourceFile = declaration.getSourceFile();\n // If the file is not a module, the declaration is global\n if (!sourceFile.externalModuleIndicator && !sourceFile.commonJsModuleIndicator) {\n return false;\n }\n // If the file is a module written in TypeScript, it still might be in a `declare global` augmentation\n return ts.isInJSFile(declaration) || !ts.findAncestor(declaration, ts.isGlobalScopeAugmentation);\n }\n ts.isNonGlobalDeclaration = isNonGlobalDeclaration;\n function isDeprecatedDeclaration(decl) {\n return !!(ts.getCombinedNodeFlagsAlwaysIncludeJSDoc(decl) & 8192 /* Deprecated */);\n }\n ts.isDeprecatedDeclaration = isDeprecatedDeclaration;\n function shouldUseUriStyleNodeCoreModules(file, program) {\n var decisionFromFile = ts.firstDefined(file.imports, function (node) {\n if (ts.JsTyping.nodeCoreModules.has(node.text)) {\n return ts.startsWith(node.text, \"node:\");\n }\n });\n return decisionFromFile !== null && decisionFromFile !== void 0 ? decisionFromFile : program.usesUriStyleNodeCoreModules;\n }\n ts.shouldUseUriStyleNodeCoreModules = shouldUseUriStyleNodeCoreModules;\n // #endregion\n})(ts || (ts = {}));\n/*@internal*/\nvar ts;\n(function (ts) {\n var ImportKind;\n (function (ImportKind) {\n ImportKind[ImportKind[\"Named\"] = 0] = \"Named\";\n ImportKind[ImportKind[\"Default\"] = 1] = \"Default\";\n ImportKind[ImportKind[\"Namespace\"] = 2] = \"Namespace\";\n ImportKind[ImportKind[\"CommonJS\"] = 3] = \"CommonJS\";\n })(ImportKind = ts.ImportKind || (ts.ImportKind = {}));\n var ExportKind;\n (function (ExportKind) {\n ExportKind[ExportKind[\"Named\"] = 0] = \"Named\";\n ExportKind[ExportKind[\"Default\"] = 1] = \"Default\";\n ExportKind[ExportKind[\"ExportEquals\"] = 2] = \"ExportEquals\";\n ExportKind[ExportKind[\"UMD\"] = 3] = \"UMD\";\n })(ExportKind = ts.ExportKind || (ts.ExportKind = {}));\n function createCacheableExportInfoMap(host) {\n var exportInfoId = 1;\n var exportInfo = ts.createMultiMap();\n var symbols = new ts.Map();\n var usableByFileName;\n var cache = {\n isUsableByFile: function (importingFile) { return importingFile === usableByFileName; },\n isEmpty: function () { return !exportInfo.size; },\n clear: function () {\n exportInfo.clear();\n symbols.clear();\n usableByFileName = undefined;\n },\n add: function (importingFile, symbol, symbolTableKey, moduleSymbol, moduleFile, exportKind, isFromPackageJson, scriptTarget, checker) {\n if (importingFile !== usableByFileName) {\n cache.clear();\n usableByFileName = importingFile;\n }\n var isDefault = exportKind === 1 /* Default */;\n var namedSymbol = isDefault && ts.getLocalSymbolForExportDefault(symbol) || symbol;\n // A re-export merged with an export from a module augmentation can result in `symbol`\n // being an external module symbol; the name it is re-exported by will be `symbolTableKey`\n // (which comes from the keys of `moduleSymbol.exports`.)\n var importedName = ts.isExternalModuleSymbol(namedSymbol)\n ? ts.unescapeLeadingUnderscores(symbolTableKey)\n : ts.getNameForExportedSymbol(namedSymbol, scriptTarget);\n var moduleName = ts.stripQuotes(moduleSymbol.name);\n var id = exportInfoId++;\n var storedSymbol = symbol.flags & 33554432 /* Transient */ ? undefined : symbol;\n var storedModuleSymbol = moduleSymbol.flags & 33554432 /* Transient */ ? undefined : moduleSymbol;\n if (!storedSymbol || !storedModuleSymbol)\n symbols.set(id, [symbol, moduleSymbol]);\n exportInfo.add(key(importedName, symbol, moduleName, checker), {\n id: id,\n symbolTableKey: symbolTableKey,\n symbolName: importedName,\n moduleName: moduleName,\n moduleFile: moduleFile,\n moduleFileName: moduleFile === null || moduleFile === void 0 ? void 0 : moduleFile.fileName,\n exportKind: exportKind,\n targetFlags: ts.skipAlias(symbol, checker).flags,\n isFromPackageJson: isFromPackageJson,\n symbol: storedSymbol,\n moduleSymbol: storedModuleSymbol,\n });\n },\n get: function (importingFile, importedName, symbol, moduleName, checker) {\n if (importingFile !== usableByFileName)\n return;\n var result = exportInfo.get(key(importedName, symbol, moduleName, checker));\n return result === null || result === void 0 ? void 0 : result.map(rehydrateCachedInfo);\n },\n forEach: function (importingFile, action) {\n if (importingFile !== usableByFileName)\n return;\n exportInfo.forEach(function (info, key) {\n var _a = parseKey(key), symbolName = _a.symbolName, ambientModuleName = _a.ambientModuleName;\n action(info.map(rehydrateCachedInfo), symbolName, !!ambientModuleName);\n });\n },\n releaseSymbols: function () {\n symbols.clear();\n },\n onFileChanged: function (oldSourceFile, newSourceFile, typeAcquisitionEnabled) {\n if (fileIsGlobalOnly(oldSourceFile) && fileIsGlobalOnly(newSourceFile)) {\n // File is purely global; doesn't affect export map\n return false;\n }\n if (usableByFileName && usableByFileName !== newSourceFile.path ||\n // If ATA is enabled, auto-imports uses existing imports to guess whether you want auto-imports from node.\n // Adding or removing imports from node could change the outcome of that guess, so could change the suggestions list.\n typeAcquisitionEnabled && ts.consumesNodeCoreModules(oldSourceFile) !== ts.consumesNodeCoreModules(newSourceFile) ||\n // Module agumentation and ambient module changes can add or remove exports available to be auto-imported.\n // Changes elsewhere in the file can change the *type* of an export in a module augmentation,\n // but type info is gathered in getCompletionEntryDetails, which doesn’t use the cache.\n !ts.arrayIsEqualTo(oldSourceFile.moduleAugmentations, newSourceFile.moduleAugmentations) ||\n !ambientModuleDeclarationsAreEqual(oldSourceFile, newSourceFile)) {\n cache.clear();\n return true;\n }\n usableByFileName = newSourceFile.path;\n return false;\n },\n };\n if (ts.Debug.isDebugging) {\n Object.defineProperty(cache, \"__cache\", { get: function () { return exportInfo; } });\n }\n return cache;\n function rehydrateCachedInfo(info) {\n if (info.symbol && info.moduleSymbol)\n return info;\n var id = info.id, exportKind = info.exportKind, targetFlags = info.targetFlags, isFromPackageJson = info.isFromPackageJson, moduleFileName = info.moduleFileName;\n var _a = symbols.get(id) || ts.emptyArray, cachedSymbol = _a[0], cachedModuleSymbol = _a[1];\n if (cachedSymbol && cachedModuleSymbol) {\n return {\n symbol: cachedSymbol,\n moduleSymbol: cachedModuleSymbol,\n moduleFileName: moduleFileName,\n exportKind: exportKind,\n targetFlags: targetFlags,\n isFromPackageJson: isFromPackageJson,\n };\n }\n var checker = (isFromPackageJson\n ? host.getPackageJsonAutoImportProvider()\n : host.getCurrentProgram()).getTypeChecker();\n var moduleSymbol = info.moduleSymbol || cachedModuleSymbol || ts.Debug.checkDefined(info.moduleFile\n ? checker.getMergedSymbol(info.moduleFile.symbol)\n : checker.tryFindAmbientModule(info.moduleName));\n var symbol = info.symbol || cachedSymbol || ts.Debug.checkDefined(exportKind === 2 /* ExportEquals */\n ? checker.resolveExternalModuleSymbol(moduleSymbol)\n : checker.tryGetMemberInModuleExportsAndProperties(ts.unescapeLeadingUnderscores(info.symbolTableKey), moduleSymbol), \"Could not find symbol '\" + info.symbolName + \"' by key '\" + info.symbolTableKey + \"' in module \" + moduleSymbol.name);\n symbols.set(id, [symbol, moduleSymbol]);\n return {\n symbol: symbol,\n moduleSymbol: moduleSymbol,\n moduleFileName: moduleFileName,\n exportKind: exportKind,\n targetFlags: targetFlags,\n isFromPackageJson: isFromPackageJson,\n };\n }\n function key(importedName, symbol, moduleName, checker) {\n var unquoted = ts.stripQuotes(moduleName);\n var moduleKey = ts.isExternalModuleNameRelative(unquoted) ? \"/\" : unquoted;\n var target = ts.skipAlias(symbol, checker);\n return importedName + \"|\" + createSymbolKey(target) + \"|\" + moduleKey;\n }\n function parseKey(key) {\n var symbolName = key.substring(0, key.indexOf(\"|\"));\n var moduleKey = key.substring(key.lastIndexOf(\"|\") + 1);\n var ambientModuleName = moduleKey === \"/\" ? undefined : moduleKey;\n return { symbolName: symbolName, ambientModuleName: ambientModuleName };\n }\n function createSymbolKey(symbol) {\n var key = symbol.name;\n while (symbol.parent) {\n key += \",\" + symbol.parent.name;\n symbol = symbol.parent;\n }\n return key;\n }\n function fileIsGlobalOnly(file) {\n return !file.commonJsModuleIndicator && !file.externalModuleIndicator && !file.moduleAugmentations && !file.ambientModuleNames;\n }\n function ambientModuleDeclarationsAreEqual(oldSourceFile, newSourceFile) {\n if (!ts.arrayIsEqualTo(oldSourceFile.ambientModuleNames, newSourceFile.ambientModuleNames)) {\n return false;\n }\n var oldFileStatementIndex = -1;\n var newFileStatementIndex = -1;\n var _loop_1 = function (ambientModuleName) {\n var isMatchingModuleDeclaration = function (node) { return ts.isNonGlobalAmbientModule(node) && node.name.text === ambientModuleName; };\n oldFileStatementIndex = ts.findIndex(oldSourceFile.statements, isMatchingModuleDeclaration, oldFileStatementIndex + 1);\n newFileStatementIndex = ts.findIndex(newSourceFile.statements, isMatchingModuleDeclaration, newFileStatementIndex + 1);\n if (oldSourceFile.statements[oldFileStatementIndex] !== newSourceFile.statements[newFileStatementIndex]) {\n return { value: false };\n }\n };\n for (var _i = 0, _a = newSourceFile.ambientModuleNames; _i < _a.length; _i++) {\n var ambientModuleName = _a[_i];\n var state_1 = _loop_1(ambientModuleName);\n if (typeof state_1 === \"object\")\n return state_1.value;\n }\n return true;\n }\n }\n ts.createCacheableExportInfoMap = createCacheableExportInfoMap;\n function isImportableFile(program, from, to, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) {\n var _a;\n if (from === to)\n return false;\n var cachedResult = moduleSpecifierCache === null || moduleSpecifierCache === void 0 ? void 0 : moduleSpecifierCache.get(from.path, to.path, preferences);\n if ((cachedResult === null || cachedResult === void 0 ? void 0 : cachedResult.isAutoImportable) !== undefined) {\n return cachedResult.isAutoImportable;\n }\n var getCanonicalFileName = ts.hostGetCanonicalFileName(moduleSpecifierResolutionHost);\n var globalTypingsCache = (_a = moduleSpecifierResolutionHost.getGlobalTypingsCacheLocation) === null || _a === void 0 ? void 0 : _a.call(moduleSpecifierResolutionHost);\n var hasImportablePath = !!ts.moduleSpecifiers.forEachFileNameOfModule(from.fileName, to.fileName, moduleSpecifierResolutionHost, \n /*preferSymlinks*/ false, function (toPath) {\n var toFile = program.getSourceFile(toPath);\n // Determine to import using toPath only if toPath is what we were looking at\n // or there doesnt exist the file in the program by the symlink\n return (toFile === to || !toFile) &&\n isImportablePath(from.fileName, toPath, getCanonicalFileName, globalTypingsCache);\n });\n if (packageJsonFilter) {\n var isAutoImportable = hasImportablePath && packageJsonFilter.allowsImportingSourceFile(to, moduleSpecifierResolutionHost);\n moduleSpecifierCache === null || moduleSpecifierCache === void 0 ? void 0 : moduleSpecifierCache.setIsAutoImportable(from.path, to.path, preferences, isAutoImportable);\n return isAutoImportable;\n }\n return hasImportablePath;\n }\n ts.isImportableFile = isImportableFile;\n /**\n * Don't include something from a `node_modules` that isn't actually reachable by a global import.\n * A relative import to node_modules is usually a bad idea.\n */\n function isImportablePath(fromPath, toPath, getCanonicalFileName, globalCachePath) {\n // If it's in a `node_modules` but is not reachable from here via a global import, don't bother.\n var toNodeModules = ts.forEachAncestorDirectory(toPath, function (ancestor) { return ts.getBaseFileName(ancestor) === \"node_modules\" ? ancestor : undefined; });\n var toNodeModulesParent = toNodeModules && ts.getDirectoryPath(getCanonicalFileName(toNodeModules));\n return toNodeModulesParent === undefined\n || ts.startsWith(getCanonicalFileName(fromPath), toNodeModulesParent)\n || (!!globalCachePath && ts.startsWith(getCanonicalFileName(globalCachePath), toNodeModulesParent));\n }\n function forEachExternalModuleToImportFrom(program, host, useAutoImportProvider, cb) {\n var _a, _b;\n forEachExternalModule(program.getTypeChecker(), program.getSourceFiles(), function (module, file) { return cb(module, file, program, /*isFromPackageJson*/ false); });\n var autoImportProvider = useAutoImportProvider && ((_a = host.getPackageJsonAutoImportProvider) === null || _a === void 0 ? void 0 : _a.call(host));\n if (autoImportProvider) {\n var start = ts.timestamp();\n forEachExternalModule(autoImportProvider.getTypeChecker(), autoImportProvider.getSourceFiles(), function (module, file) { return cb(module, file, autoImportProvider, /*isFromPackageJson*/ true); });\n (_b = host.log) === null || _b === void 0 ? void 0 : _b.call(host, \"forEachExternalModuleToImportFrom autoImportProvider: \" + (ts.timestamp() - start));\n }\n }\n ts.forEachExternalModuleToImportFrom = forEachExternalModuleToImportFrom;\n function forEachExternalModule(checker, allSourceFiles, cb) {\n for (var _i = 0, _a = checker.getAmbientModules(); _i < _a.length; _i++) {\n var ambient = _a[_i];\n if (!ts.stringContains(ambient.name, \"*\")) {\n cb(ambient, /*sourceFile*/ undefined);\n }\n }\n for (var _b = 0, allSourceFiles_1 = allSourceFiles; _b < allSourceFiles_1.length; _b++) {\n var sourceFile = allSourceFiles_1[_b];\n if (ts.isExternalOrCommonJsModule(sourceFile)) {\n cb(checker.getMergedSymbol(sourceFile.symbol), sourceFile);\n }\n }\n }\n function getExportInfoMap(importingFile, host, program, cancellationToken) {\n var _a, _b, _c, _d, _e;\n var start = ts.timestamp();\n // Pulling the AutoImportProvider project will trigger its updateGraph if pending,\n // which will invalidate the export map cache if things change, so pull it before\n // checking the cache.\n (_a = host.getPackageJsonAutoImportProvider) === null || _a === void 0 ? void 0 : _a.call(host);\n var cache = ((_b = host.getCachedExportInfoMap) === null || _b === void 0 ? void 0 : _b.call(host)) || createCacheableExportInfoMap({\n getCurrentProgram: function () { return program; },\n getPackageJsonAutoImportProvider: function () { var _a; return (_a = host.getPackageJsonAutoImportProvider) === null || _a === void 0 ? void 0 : _a.call(host); },\n });\n if (cache.isUsableByFile(importingFile.path)) {\n (_c = host.log) === null || _c === void 0 ? void 0 : _c.call(host, \"getExportInfoMap: cache hit\");\n return cache;\n }\n (_d = host.log) === null || _d === void 0 ? void 0 : _d.call(host, \"getExportInfoMap: cache miss or empty; calculating new results\");\n var compilerOptions = program.getCompilerOptions();\n var scriptTarget = ts.getEmitScriptTarget(compilerOptions);\n var moduleCount = 0;\n forEachExternalModuleToImportFrom(program, host, /*useAutoImportProvider*/ true, function (moduleSymbol, moduleFile, program, isFromPackageJson) {\n if (++moduleCount % 100 === 0)\n cancellationToken === null || cancellationToken === void 0 ? void 0 : cancellationToken.throwIfCancellationRequested();\n var seenExports = new ts.Map();\n var checker = program.getTypeChecker();\n var defaultInfo = getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n // Note: I think we shouldn't actually see resolved module symbols here, but weird merges\n // can cause it to happen: see 'completionsImport_mergedReExport.ts'\n if (defaultInfo && isImportableSymbol(defaultInfo.symbol, checker)) {\n cache.add(importingFile.path, defaultInfo.symbol, defaultInfo.exportKind === 1 /* Default */ ? \"default\" /* Default */ : \"export=\" /* ExportEquals */, moduleSymbol, moduleFile, defaultInfo.exportKind, isFromPackageJson, scriptTarget, checker);\n }\n checker.forEachExportAndPropertyOfModule(moduleSymbol, function (exported, key) {\n if (exported !== (defaultInfo === null || defaultInfo === void 0 ? void 0 : defaultInfo.symbol) && isImportableSymbol(exported, checker) && ts.addToSeen(seenExports, exported)) {\n cache.add(importingFile.path, exported, key, moduleSymbol, moduleFile, 0 /* Named */, isFromPackageJson, scriptTarget, checker);\n }\n });\n });\n (_e = host.log) === null || _e === void 0 ? void 0 : _e.call(host, \"getExportInfoMap: done in \" + (ts.timestamp() - start) + \" ms\");\n return cache;\n }\n ts.getExportInfoMap = getExportInfoMap;\n function getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions) {\n var exported = getDefaultLikeExportWorker(moduleSymbol, checker);\n if (!exported)\n return undefined;\n var symbol = exported.symbol, exportKind = exported.exportKind;\n var info = getDefaultExportInfoWorker(symbol, checker, compilerOptions);\n return info && __assign({ symbol: symbol, exportKind: exportKind }, info);\n }\n ts.getDefaultLikeExportInfo = getDefaultLikeExportInfo;\n function isImportableSymbol(symbol, checker) {\n return !checker.isUndefinedSymbol(symbol) && !checker.isUnknownSymbol(symbol) && !ts.isKnownSymbol(symbol) && !ts.isPrivateIdentifierSymbol(symbol);\n }\n function getDefaultLikeExportWorker(moduleSymbol, checker) {\n var exportEquals = checker.resolveExternalModuleSymbol(moduleSymbol);\n if (exportEquals !== moduleSymbol)\n return { symbol: exportEquals, exportKind: 2 /* ExportEquals */ };\n var defaultExport = checker.tryGetMemberInModuleExports(\"default\" /* Default */, moduleSymbol);\n if (defaultExport)\n return { symbol: defaultExport, exportKind: 1 /* Default */ };\n }\n function getDefaultExportInfoWorker(defaultExport, checker, compilerOptions) {\n var localSymbol = ts.getLocalSymbolForExportDefault(defaultExport);\n if (localSymbol)\n return { symbolForMeaning: localSymbol, name: localSymbol.name };\n var name = getNameForExportDefault(defaultExport);\n if (name !== undefined)\n return { symbolForMeaning: defaultExport, name: name };\n if (defaultExport.flags & 2097152 /* Alias */) {\n var aliased = checker.getImmediateAliasedSymbol(defaultExport);\n if (aliased && aliased.parent) {\n // - `aliased` will be undefined if the module is exporting an unresolvable name,\n // but we can still offer completions for it.\n // - `aliased.parent` will be undefined if the module is exporting `globalThis.something`,\n // or another expression that resolves to a global.\n return getDefaultExportInfoWorker(aliased, checker, compilerOptions);\n }\n }\n if (defaultExport.escapedName !== \"default\" /* Default */ &&\n defaultExport.escapedName !== \"export=\" /* ExportEquals */) {\n return { symbolForMeaning: defaultExport, name: defaultExport.getName() };\n }\n return { symbolForMeaning: defaultExport, name: ts.getNameForExportedSymbol(defaultExport, compilerOptions.target) };\n }\n function getNameForExportDefault(symbol) {\n return symbol.declarations && ts.firstDefined(symbol.declarations, function (declaration) {\n var _a;\n if (ts.isExportAssignment(declaration)) {\n return (_a = ts.tryCast(ts.skipOuterExpressions(declaration.expression), ts.isIdentifier)) === null || _a === void 0 ? void 0 : _a.text;\n }\n else if (ts.isExportSpecifier(declaration)) {\n ts.Debug.assert(declaration.name.text === \"default\" /* Default */, \"Expected the specifier to be a default export\");\n return declaration.propertyName && declaration.propertyName.text;\n }\n });\n }\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /** The classifier is used for syntactic highlighting in editors via the TSServer */\n function createClassifier() {\n var scanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ false);\n function getClassificationsForLine(text, lexState, syntacticClassifierAbsent) {\n return convertClassificationsToResult(getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent), text);\n }\n // If there is a syntactic classifier ('syntacticClassifierAbsent' is false),\n // we will be more conservative in order to avoid conflicting with the syntactic classifier.\n function getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent) {\n var token = 0 /* Unknown */;\n var lastNonTriviaToken = 0 /* Unknown */;\n // Just a stack of TemplateHeads and OpenCurlyBraces, used to perform rudimentary (inexact)\n // classification on template strings. Because of the context free nature of templates,\n // the only precise way to classify a template portion would be by propagating the stack across\n // lines, just as we do with the end-of-line state. However, this is a burden for implementers,\n // and the behavior is entirely subsumed by the syntactic classifier anyway, so we instead\n // flatten any nesting when the template stack is non-empty and encode it in the end-of-line state.\n // Situations in which this fails are\n // 1) When template strings are nested across different lines:\n // `hello ${ `world\n // ` }`\n //\n // Where on the second line, you will get the closing of a template,\n // a closing curly, and a new template.\n //\n // 2) When substitution expressions have curly braces and the curly brace falls on the next line:\n // `hello ${ () => {\n // return \"world\" } } `\n //\n // Where on the second line, you will get the 'return' keyword,\n // a string literal, and a template end consisting of '} } `'.\n var templateStack = [];\n var _a = getPrefixFromLexState(lexState), prefix = _a.prefix, pushTemplate = _a.pushTemplate;\n text = prefix + text;\n var offset = prefix.length;\n if (pushTemplate) {\n templateStack.push(15 /* TemplateHead */);\n }\n scanner.setText(text);\n var endOfLineState = 0 /* None */;\n var spans = [];\n // We can run into an unfortunate interaction between the lexical and syntactic classifier\n // when the user is typing something generic. Consider the case where the user types:\n //\n // Foo tokens. It's a weak heuristic, but should\n // work well enough in practice.\n var angleBracketStack = 0;\n do {\n token = scanner.scan();\n if (!ts.isTrivia(token)) {\n handleToken();\n lastNonTriviaToken = token;\n }\n var end = scanner.getTextPos();\n pushEncodedClassification(scanner.getTokenPos(), end, offset, classFromKind(token), spans);\n if (end >= text.length) {\n var end_1 = getNewEndOfLineState(scanner, token, ts.lastOrUndefined(templateStack));\n if (end_1 !== undefined) {\n endOfLineState = end_1;\n }\n }\n } while (token !== 1 /* EndOfFileToken */);\n function handleToken() {\n switch (token) {\n case 43 /* SlashToken */:\n case 68 /* SlashEqualsToken */:\n if (!noRegexTable[lastNonTriviaToken] && scanner.reScanSlashToken() === 13 /* RegularExpressionLiteral */) {\n token = 13 /* RegularExpressionLiteral */;\n }\n break;\n case 29 /* LessThanToken */:\n if (lastNonTriviaToken === 79 /* Identifier */) {\n // Could be the start of something generic. Keep track of that by bumping\n // up the current count of generic contexts we may be in.\n angleBracketStack++;\n }\n break;\n case 31 /* GreaterThanToken */:\n if (angleBracketStack > 0) {\n // If we think we're currently in something generic, then mark that that\n // generic entity is complete.\n angleBracketStack--;\n }\n break;\n case 129 /* AnyKeyword */:\n case 148 /* StringKeyword */:\n case 145 /* NumberKeyword */:\n case 132 /* BooleanKeyword */:\n case 149 /* SymbolKeyword */:\n if (angleBracketStack > 0 && !syntacticClassifierAbsent) {\n // If it looks like we're could be in something generic, don't classify this\n // as a keyword. We may just get overwritten by the syntactic classifier,\n // causing a noisy experience for the user.\n token = 79 /* Identifier */;\n }\n break;\n case 15 /* TemplateHead */:\n templateStack.push(token);\n break;\n case 18 /* OpenBraceToken */:\n // If we don't have anything on the template stack,\n // then we aren't trying to keep track of a previously scanned template head.\n if (templateStack.length > 0) {\n templateStack.push(token);\n }\n break;\n case 19 /* CloseBraceToken */:\n // If we don't have anything on the template stack,\n // then we aren't trying to keep track of a previously scanned template head.\n if (templateStack.length > 0) {\n var lastTemplateStackToken = ts.lastOrUndefined(templateStack);\n if (lastTemplateStackToken === 15 /* TemplateHead */) {\n token = scanner.reScanTemplateToken(/* isTaggedTemplate */ false);\n // Only pop on a TemplateTail; a TemplateMiddle indicates there is more for us.\n if (token === 17 /* TemplateTail */) {\n templateStack.pop();\n }\n else {\n ts.Debug.assertEqual(token, 16 /* TemplateMiddle */, \"Should have been a template middle.\");\n }\n }\n else {\n ts.Debug.assertEqual(lastTemplateStackToken, 18 /* OpenBraceToken */, \"Should have been an open brace\");\n templateStack.pop();\n }\n }\n break;\n default:\n if (!ts.isKeyword(token)) {\n break;\n }\n if (lastNonTriviaToken === 24 /* DotToken */) {\n token = 79 /* Identifier */;\n }\n else if (ts.isKeyword(lastNonTriviaToken) && ts.isKeyword(token) && !canFollow(lastNonTriviaToken, token)) {\n // We have two keywords in a row. Only treat the second as a keyword if\n // it's a sequence that could legally occur in the language. Otherwise\n // treat it as an identifier. This way, if someone writes \"private var\"\n // we recognize that 'var' is actually an identifier here.\n token = 79 /* Identifier */;\n }\n }\n }\n return { endOfLineState: endOfLineState, spans: spans };\n }\n return { getClassificationsForLine: getClassificationsForLine, getEncodedLexicalClassifications: getEncodedLexicalClassifications };\n }\n ts.createClassifier = createClassifier;\n /// We do not have a full parser support to know when we should parse a regex or not\n /// If we consider every slash token to be a regex, we could be missing cases like \"1/2/3\", where\n /// we have a series of divide operator. this list allows us to be more accurate by ruling out\n /// locations where a regexp cannot exist.\n var noRegexTable = ts.arrayToNumericMap([\n 79 /* Identifier */,\n 10 /* StringLiteral */,\n 8 /* NumericLiteral */,\n 9 /* BigIntLiteral */,\n 13 /* RegularExpressionLiteral */,\n 108 /* ThisKeyword */,\n 45 /* PlusPlusToken */,\n 46 /* MinusMinusToken */,\n 21 /* CloseParenToken */,\n 23 /* CloseBracketToken */,\n 19 /* CloseBraceToken */,\n 110 /* TrueKeyword */,\n 95 /* FalseKeyword */,\n ], function (token) { return token; }, function () { return true; });\n function getNewEndOfLineState(scanner, token, lastOnTemplateStack) {\n switch (token) {\n case 10 /* StringLiteral */: {\n // Check to see if we finished up on a multiline string literal.\n if (!scanner.isUnterminated())\n return undefined;\n var tokenText = scanner.getTokenText();\n var lastCharIndex = tokenText.length - 1;\n var numBackslashes = 0;\n while (tokenText.charCodeAt(lastCharIndex - numBackslashes) === 92 /* backslash */) {\n numBackslashes++;\n }\n // If we have an odd number of backslashes, then the multiline string is unclosed\n if ((numBackslashes & 1) === 0)\n return undefined;\n return tokenText.charCodeAt(0) === 34 /* doubleQuote */ ? 3 /* InDoubleQuoteStringLiteral */ : 2 /* InSingleQuoteStringLiteral */;\n }\n case 3 /* MultiLineCommentTrivia */:\n // Check to see if the multiline comment was unclosed.\n return scanner.isUnterminated() ? 1 /* InMultiLineCommentTrivia */ : undefined;\n default:\n if (ts.isTemplateLiteralKind(token)) {\n if (!scanner.isUnterminated()) {\n return undefined;\n }\n switch (token) {\n case 17 /* TemplateTail */:\n return 5 /* InTemplateMiddleOrTail */;\n case 14 /* NoSubstitutionTemplateLiteral */:\n return 4 /* InTemplateHeadOrNoSubstitutionTemplate */;\n default:\n return ts.Debug.fail(\"Only 'NoSubstitutionTemplateLiteral's and 'TemplateTail's can be unterminated; got SyntaxKind #\" + token);\n }\n }\n return lastOnTemplateStack === 15 /* TemplateHead */ ? 6 /* InTemplateSubstitutionPosition */ : undefined;\n }\n }\n function pushEncodedClassification(start, end, offset, classification, result) {\n if (classification === 8 /* whiteSpace */) {\n // Don't bother with whitespace classifications. They're not needed.\n return;\n }\n if (start === 0 && offset > 0) {\n // We're classifying the first token, and this was a case where we prepended text.\n // We should consider the start of this token to be at the start of the original text.\n start += offset;\n }\n var length = end - start;\n if (length > 0) {\n // All our tokens are in relation to the augmented text. Move them back to be\n // relative to the original text.\n result.push(start - offset, length, classification);\n }\n }\n function convertClassificationsToResult(classifications, text) {\n var entries = [];\n var dense = classifications.spans;\n var lastEnd = 0;\n for (var i = 0; i < dense.length; i += 3) {\n var start = dense[i];\n var length_1 = dense[i + 1];\n var type = dense[i + 2];\n // Make a whitespace entry between the last item and this one.\n if (lastEnd >= 0) {\n var whitespaceLength_1 = start - lastEnd;\n if (whitespaceLength_1 > 0) {\n entries.push({ length: whitespaceLength_1, classification: ts.TokenClass.Whitespace });\n }\n }\n entries.push({ length: length_1, classification: convertClassification(type) });\n lastEnd = start + length_1;\n }\n var whitespaceLength = text.length - lastEnd;\n if (whitespaceLength > 0) {\n entries.push({ length: whitespaceLength, classification: ts.TokenClass.Whitespace });\n }\n return { entries: entries, finalLexState: classifications.endOfLineState };\n }\n function convertClassification(type) {\n switch (type) {\n case 1 /* comment */: return ts.TokenClass.Comment;\n case 3 /* keyword */: return ts.TokenClass.Keyword;\n case 4 /* numericLiteral */: return ts.TokenClass.NumberLiteral;\n case 25 /* bigintLiteral */: return ts.TokenClass.BigIntLiteral;\n case 5 /* operator */: return ts.TokenClass.Operator;\n case 6 /* stringLiteral */: return ts.TokenClass.StringLiteral;\n case 8 /* whiteSpace */: return ts.TokenClass.Whitespace;\n case 10 /* punctuation */: return ts.TokenClass.Punctuation;\n case 2 /* identifier */:\n case 11 /* className */:\n case 12 /* enumName */:\n case 13 /* interfaceName */:\n case 14 /* moduleName */:\n case 15 /* typeParameterName */:\n case 16 /* typeAliasName */:\n case 9 /* text */:\n case 17 /* parameterName */:\n return ts.TokenClass.Identifier;\n default:\n return undefined; // TODO: GH#18217 Debug.assertNever(type);\n }\n }\n /** Returns true if 'keyword2' can legally follow 'keyword1' in any language construct. */\n function canFollow(keyword1, keyword2) {\n if (!ts.isAccessibilityModifier(keyword1)) {\n // Assume any other keyword combination is legal.\n // This can be refined in the future if there are more cases we want the classifier to be better at.\n return true;\n }\n switch (keyword2) {\n case 135 /* GetKeyword */:\n case 147 /* SetKeyword */:\n case 133 /* ConstructorKeyword */:\n case 124 /* StaticKeyword */:\n return true; // Allow things like \"public get\", \"public constructor\" and \"public static\".\n default:\n return false; // Any other keyword following \"public\" is actually an identifier, not a real keyword.\n }\n }\n function getPrefixFromLexState(lexState) {\n // If we're in a string literal, then prepend: \"\\\n // (and a newline). That way when we lex we'll think we're still in a string literal.\n //\n // If we're in a multiline comment, then prepend: /*\n // (and a newline). That way when we lex we'll think we're still in a multiline comment.\n switch (lexState) {\n case 3 /* InDoubleQuoteStringLiteral */:\n return { prefix: \"\\\"\\\\\\n\" };\n case 2 /* InSingleQuoteStringLiteral */:\n return { prefix: \"'\\\\\\n\" };\n case 1 /* InMultiLineCommentTrivia */:\n return { prefix: \"/*\\n\" };\n case 4 /* InTemplateHeadOrNoSubstitutionTemplate */:\n return { prefix: \"`\\n\" };\n case 5 /* InTemplateMiddleOrTail */:\n return { prefix: \"}\\n\", pushTemplate: true };\n case 6 /* InTemplateSubstitutionPosition */:\n return { prefix: \"\", pushTemplate: true };\n case 0 /* None */:\n return { prefix: \"\" };\n default:\n return ts.Debug.assertNever(lexState);\n }\n }\n function isBinaryExpressionOperatorToken(token) {\n switch (token) {\n case 41 /* AsteriskToken */:\n case 43 /* SlashToken */:\n case 44 /* PercentToken */:\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 47 /* LessThanLessThanToken */:\n case 48 /* GreaterThanGreaterThanToken */:\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n case 29 /* LessThanToken */:\n case 31 /* GreaterThanToken */:\n case 32 /* LessThanEqualsToken */:\n case 33 /* GreaterThanEqualsToken */:\n case 102 /* InstanceOfKeyword */:\n case 101 /* InKeyword */:\n case 127 /* AsKeyword */:\n case 34 /* EqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n case 36 /* EqualsEqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n case 50 /* AmpersandToken */:\n case 52 /* CaretToken */:\n case 51 /* BarToken */:\n case 55 /* AmpersandAmpersandToken */:\n case 56 /* BarBarToken */:\n case 74 /* BarEqualsToken */:\n case 73 /* AmpersandEqualsToken */:\n case 78 /* CaretEqualsToken */:\n case 70 /* LessThanLessThanEqualsToken */:\n case 71 /* GreaterThanGreaterThanEqualsToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n case 64 /* PlusEqualsToken */:\n case 65 /* MinusEqualsToken */:\n case 66 /* AsteriskEqualsToken */:\n case 68 /* SlashEqualsToken */:\n case 69 /* PercentEqualsToken */:\n case 63 /* EqualsToken */:\n case 27 /* CommaToken */:\n case 60 /* QuestionQuestionToken */:\n case 75 /* BarBarEqualsToken */:\n case 76 /* AmpersandAmpersandEqualsToken */:\n case 77 /* QuestionQuestionEqualsToken */:\n return true;\n default:\n return false;\n }\n }\n function isPrefixUnaryExpressionOperatorToken(token) {\n switch (token) {\n case 39 /* PlusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n case 53 /* ExclamationToken */:\n case 45 /* PlusPlusToken */:\n case 46 /* MinusMinusToken */:\n return true;\n default:\n return false;\n }\n }\n function classFromKind(token) {\n if (ts.isKeyword(token)) {\n return 3 /* keyword */;\n }\n else if (isBinaryExpressionOperatorToken(token) || isPrefixUnaryExpressionOperatorToken(token)) {\n return 5 /* operator */;\n }\n else if (token >= 18 /* FirstPunctuation */ && token <= 78 /* LastPunctuation */) {\n return 10 /* punctuation */;\n }\n switch (token) {\n case 8 /* NumericLiteral */:\n return 4 /* numericLiteral */;\n case 9 /* BigIntLiteral */:\n return 25 /* bigintLiteral */;\n case 10 /* StringLiteral */:\n return 6 /* stringLiteral */;\n case 13 /* RegularExpressionLiteral */:\n return 7 /* regularExpressionLiteral */;\n case 7 /* ConflictMarkerTrivia */:\n case 3 /* MultiLineCommentTrivia */:\n case 2 /* SingleLineCommentTrivia */:\n return 1 /* comment */;\n case 5 /* WhitespaceTrivia */:\n case 4 /* NewLineTrivia */:\n return 8 /* whiteSpace */;\n case 79 /* Identifier */:\n default:\n if (ts.isTemplateLiteralKind(token)) {\n return 6 /* stringLiteral */;\n }\n return 2 /* identifier */;\n }\n }\n /* @internal */\n function getSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span) {\n return convertClassificationsToSpans(getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span));\n }\n ts.getSemanticClassifications = getSemanticClassifications;\n function checkForClassificationCancellation(cancellationToken, kind) {\n // We don't want to actually call back into our host on every node to find out if we've\n // been canceled. That would be an enormous amount of chattyness, along with the all\n // the overhead of marshalling the data to/from the host. So instead we pick a few\n // reasonable node kinds to bother checking on. These node kinds represent high level\n // constructs that we would expect to see commonly, but just at a far less frequent\n // interval.\n //\n // For example, in checker.ts (around 750k) we only have around 600 of these constructs.\n // That means we're calling back into the host around every 1.2k of the file we process.\n // Lib.d.ts has similar numbers.\n switch (kind) {\n case 259 /* ModuleDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n cancellationToken.throwIfCancellationRequested();\n }\n }\n /* @internal */\n function getEncodedSemanticClassifications(typeChecker, cancellationToken, sourceFile, classifiableNames, span) {\n var spans = [];\n sourceFile.forEachChild(function cb(node) {\n // Only walk into nodes that intersect the requested span.\n if (!node || !ts.textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {\n return;\n }\n checkForClassificationCancellation(cancellationToken, node.kind);\n // Only bother calling into the typechecker if this is an identifier that\n // could possibly resolve to a type name. This makes classification run\n // in a third of the time it would normally take.\n if (ts.isIdentifier(node) && !ts.nodeIsMissing(node) && classifiableNames.has(node.escapedText)) {\n var symbol = typeChecker.getSymbolAtLocation(node);\n var type = symbol && classifySymbol(symbol, ts.getMeaningFromLocation(node), typeChecker);\n if (type) {\n pushClassification(node.getStart(sourceFile), node.getEnd(), type);\n }\n }\n node.forEachChild(cb);\n });\n return { spans: spans, endOfLineState: 0 /* None */ };\n function pushClassification(start, end, type) {\n var length = end - start;\n ts.Debug.assert(length > 0, \"Classification had non-positive length of \" + length);\n spans.push(start);\n spans.push(length);\n spans.push(type);\n }\n }\n ts.getEncodedSemanticClassifications = getEncodedSemanticClassifications;\n function classifySymbol(symbol, meaningAtPosition, checker) {\n var flags = symbol.getFlags();\n if ((flags & 2885600 /* Classifiable */) === 0 /* None */) {\n return undefined;\n }\n else if (flags & 32 /* Class */) {\n return 11 /* className */;\n }\n else if (flags & 384 /* Enum */) {\n return 12 /* enumName */;\n }\n else if (flags & 524288 /* TypeAlias */) {\n return 16 /* typeAliasName */;\n }\n else if (flags & 1536 /* Module */) {\n // Only classify a module as such if\n // - It appears in a namespace context.\n // - There exists a module declaration which actually impacts the value side.\n return meaningAtPosition & 4 /* Namespace */ || meaningAtPosition & 1 /* Value */ && hasValueSideModule(symbol) ? 14 /* moduleName */ : undefined;\n }\n else if (flags & 2097152 /* Alias */) {\n return classifySymbol(checker.getAliasedSymbol(symbol), meaningAtPosition, checker);\n }\n else if (meaningAtPosition & 2 /* Type */) {\n return flags & 64 /* Interface */ ? 13 /* interfaceName */ : flags & 262144 /* TypeParameter */ ? 15 /* typeParameterName */ : undefined;\n }\n else {\n return undefined;\n }\n }\n /** Returns true if there exists a module that introduces entities on the value side. */\n function hasValueSideModule(symbol) {\n return ts.some(symbol.declarations, function (declaration) {\n return ts.isModuleDeclaration(declaration) && ts.getModuleInstanceState(declaration) === 1 /* Instantiated */;\n });\n }\n function getClassificationTypeName(type) {\n switch (type) {\n case 1 /* comment */: return \"comment\" /* comment */;\n case 2 /* identifier */: return \"identifier\" /* identifier */;\n case 3 /* keyword */: return \"keyword\" /* keyword */;\n case 4 /* numericLiteral */: return \"number\" /* numericLiteral */;\n case 25 /* bigintLiteral */: return \"bigint\" /* bigintLiteral */;\n case 5 /* operator */: return \"operator\" /* operator */;\n case 6 /* stringLiteral */: return \"string\" /* stringLiteral */;\n case 8 /* whiteSpace */: return \"whitespace\" /* whiteSpace */;\n case 9 /* text */: return \"text\" /* text */;\n case 10 /* punctuation */: return \"punctuation\" /* punctuation */;\n case 11 /* className */: return \"class name\" /* className */;\n case 12 /* enumName */: return \"enum name\" /* enumName */;\n case 13 /* interfaceName */: return \"interface name\" /* interfaceName */;\n case 14 /* moduleName */: return \"module name\" /* moduleName */;\n case 15 /* typeParameterName */: return \"type parameter name\" /* typeParameterName */;\n case 16 /* typeAliasName */: return \"type alias name\" /* typeAliasName */;\n case 17 /* parameterName */: return \"parameter name\" /* parameterName */;\n case 18 /* docCommentTagName */: return \"doc comment tag name\" /* docCommentTagName */;\n case 19 /* jsxOpenTagName */: return \"jsx open tag name\" /* jsxOpenTagName */;\n case 20 /* jsxCloseTagName */: return \"jsx close tag name\" /* jsxCloseTagName */;\n case 21 /* jsxSelfClosingTagName */: return \"jsx self closing tag name\" /* jsxSelfClosingTagName */;\n case 22 /* jsxAttribute */: return \"jsx attribute\" /* jsxAttribute */;\n case 23 /* jsxText */: return \"jsx text\" /* jsxText */;\n case 24 /* jsxAttributeStringLiteralValue */: return \"jsx attribute string literal value\" /* jsxAttributeStringLiteralValue */;\n default: return undefined; // TODO: GH#18217 throw Debug.assertNever(type);\n }\n }\n function convertClassificationsToSpans(classifications) {\n ts.Debug.assert(classifications.spans.length % 3 === 0);\n var dense = classifications.spans;\n var result = [];\n for (var i = 0; i < dense.length; i += 3) {\n result.push({\n textSpan: ts.createTextSpan(dense[i], dense[i + 1]),\n classificationType: getClassificationTypeName(dense[i + 2])\n });\n }\n return result;\n }\n /* @internal */\n function getSyntacticClassifications(cancellationToken, sourceFile, span) {\n return convertClassificationsToSpans(getEncodedSyntacticClassifications(cancellationToken, sourceFile, span));\n }\n ts.getSyntacticClassifications = getSyntacticClassifications;\n /* @internal */\n function getEncodedSyntacticClassifications(cancellationToken, sourceFile, span) {\n var spanStart = span.start;\n var spanLength = span.length;\n // Make a scanner we can get trivia from.\n var triviaScanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ false, sourceFile.languageVariant, sourceFile.text);\n var mergeConflictScanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ false, sourceFile.languageVariant, sourceFile.text);\n var result = [];\n processElement(sourceFile);\n return { spans: result, endOfLineState: 0 /* None */ };\n function pushClassification(start, length, type) {\n result.push(start);\n result.push(length);\n result.push(type);\n }\n function classifyLeadingTriviaAndGetTokenStart(token) {\n triviaScanner.setTextPos(token.pos);\n while (true) {\n var start = triviaScanner.getTextPos();\n // only bother scanning if we have something that could be trivia.\n if (!ts.couldStartTrivia(sourceFile.text, start)) {\n return start;\n }\n var kind = triviaScanner.scan();\n var end = triviaScanner.getTextPos();\n var width = end - start;\n // The moment we get something that isn't trivia, then stop processing.\n if (!ts.isTrivia(kind)) {\n return start;\n }\n switch (kind) {\n case 4 /* NewLineTrivia */:\n case 5 /* WhitespaceTrivia */:\n // Don't bother with newlines/whitespace.\n continue;\n case 2 /* SingleLineCommentTrivia */:\n case 3 /* MultiLineCommentTrivia */:\n // Only bother with the trivia if it at least intersects the span of interest.\n classifyComment(token, kind, start, width);\n // Classifying a comment might cause us to reuse the trivia scanner\n // (because of jsdoc comments). So after we classify the comment make\n // sure we set the scanner position back to where it needs to be.\n triviaScanner.setTextPos(end);\n continue;\n case 7 /* ConflictMarkerTrivia */:\n var text = sourceFile.text;\n var ch = text.charCodeAt(start);\n // for the <<<<<<< and >>>>>>> markers, we just add them in as comments\n // in the classification stream.\n if (ch === 60 /* lessThan */ || ch === 62 /* greaterThan */) {\n pushClassification(start, width, 1 /* comment */);\n continue;\n }\n // for the ||||||| and ======== markers, add a comment for the first line,\n // and then lex all subsequent lines up until the end of the conflict marker.\n ts.Debug.assert(ch === 124 /* bar */ || ch === 61 /* equals */);\n classifyDisabledMergeCode(text, start, end);\n break;\n case 6 /* ShebangTrivia */:\n // TODO: Maybe we should classify these.\n break;\n default:\n ts.Debug.assertNever(kind);\n }\n }\n }\n function classifyComment(token, kind, start, width) {\n if (kind === 3 /* MultiLineCommentTrivia */) {\n // See if this is a doc comment. If so, we'll classify certain portions of it\n // specially.\n var docCommentAndDiagnostics = ts.parseIsolatedJSDocComment(sourceFile.text, start, width);\n if (docCommentAndDiagnostics && docCommentAndDiagnostics.jsDoc) {\n // TODO: This should be predicated on `token[\"kind\"]` being compatible with `HasJSDoc[\"kind\"]`\n ts.setParent(docCommentAndDiagnostics.jsDoc, token);\n classifyJSDocComment(docCommentAndDiagnostics.jsDoc);\n return;\n }\n }\n else if (kind === 2 /* SingleLineCommentTrivia */) {\n if (tryClassifyTripleSlashComment(start, width)) {\n return;\n }\n }\n // Simple comment. Just add as is.\n pushCommentRange(start, width);\n }\n function pushCommentRange(start, width) {\n pushClassification(start, width, 1 /* comment */);\n }\n function classifyJSDocComment(docComment) {\n var _a, _b, _c, _d, _e, _f, _g;\n var pos = docComment.pos;\n if (docComment.tags) {\n for (var _i = 0, _h = docComment.tags; _i < _h.length; _i++) {\n var tag = _h[_i];\n // As we walk through each tag, classify the portion of text from the end of\n // the last tag (or the start of the entire doc comment) as 'comment'.\n if (tag.pos !== pos) {\n pushCommentRange(pos, tag.pos - pos);\n }\n pushClassification(tag.pos, 1, 10 /* punctuation */); // \"@\"\n pushClassification(tag.tagName.pos, tag.tagName.end - tag.tagName.pos, 18 /* docCommentTagName */); // e.g. \"param\"\n pos = tag.tagName.end;\n var commentStart = tag.tagName.end;\n switch (tag.kind) {\n case 335 /* JSDocParameterTag */:\n var param = tag;\n processJSDocParameterTag(param);\n commentStart = param.isNameFirst && ((_a = param.typeExpression) === null || _a === void 0 ? void 0 : _a.end) || param.name.end;\n break;\n case 342 /* JSDocPropertyTag */:\n var prop = tag;\n commentStart = prop.isNameFirst && ((_b = prop.typeExpression) === null || _b === void 0 ? void 0 : _b.end) || prop.name.end;\n break;\n case 339 /* JSDocTemplateTag */:\n processJSDocTemplateTag(tag);\n pos = tag.end;\n commentStart = tag.typeParameters.end;\n break;\n case 340 /* JSDocTypedefTag */:\n var type = tag;\n commentStart = ((_c = type.typeExpression) === null || _c === void 0 ? void 0 : _c.kind) === 304 /* JSDocTypeExpression */ && ((_d = type.fullName) === null || _d === void 0 ? void 0 : _d.end) || ((_e = type.typeExpression) === null || _e === void 0 ? void 0 : _e.end) || commentStart;\n break;\n case 333 /* JSDocCallbackTag */:\n commentStart = tag.typeExpression.end;\n break;\n case 338 /* JSDocTypeTag */:\n processElement(tag.typeExpression);\n pos = tag.end;\n commentStart = tag.typeExpression.end;\n break;\n case 337 /* JSDocThisTag */:\n case 334 /* JSDocEnumTag */:\n commentStart = tag.typeExpression.end;\n break;\n case 336 /* JSDocReturnTag */:\n processElement(tag.typeExpression);\n pos = tag.end;\n commentStart = ((_f = tag.typeExpression) === null || _f === void 0 ? void 0 : _f.end) || commentStart;\n break;\n case 341 /* JSDocSeeTag */:\n commentStart = ((_g = tag.name) === null || _g === void 0 ? void 0 : _g.end) || commentStart;\n break;\n case 323 /* JSDocAugmentsTag */:\n case 324 /* JSDocImplementsTag */:\n commentStart = tag.class.end;\n break;\n }\n if (typeof tag.comment === \"object\") {\n pushCommentRange(tag.comment.pos, tag.comment.end - tag.comment.pos);\n }\n else if (typeof tag.comment === \"string\") {\n pushCommentRange(commentStart, tag.end - commentStart);\n }\n }\n }\n if (pos !== docComment.end) {\n pushCommentRange(pos, docComment.end - pos);\n }\n return;\n function processJSDocParameterTag(tag) {\n if (tag.isNameFirst) {\n pushCommentRange(pos, tag.name.pos - pos);\n pushClassification(tag.name.pos, tag.name.end - tag.name.pos, 17 /* parameterName */);\n pos = tag.name.end;\n }\n if (tag.typeExpression) {\n pushCommentRange(pos, tag.typeExpression.pos - pos);\n processElement(tag.typeExpression);\n pos = tag.typeExpression.end;\n }\n if (!tag.isNameFirst) {\n pushCommentRange(pos, tag.name.pos - pos);\n pushClassification(tag.name.pos, tag.name.end - tag.name.pos, 17 /* parameterName */);\n pos = tag.name.end;\n }\n }\n }\n function tryClassifyTripleSlashComment(start, width) {\n var tripleSlashXMLCommentRegEx = /^(\\/\\/\\/\\s*)(<)(?:(\\S+)((?:[^/]|\\/[^>])*)(\\/>)?)?/im;\n // Require a leading whitespace character (the parser already does) to prevent terrible backtracking performance\n var attributeRegex = /(\\s)(\\S+)(\\s*)(=)(\\s*)('[^']+'|\"[^\"]+\")/img;\n var text = sourceFile.text.substr(start, width);\n var match = tripleSlashXMLCommentRegEx.exec(text);\n if (!match) {\n return false;\n }\n // Limiting classification to exactly the elements and attributes\n // defined in `ts.commentPragmas` would be excessive, but we can avoid\n // some obvious false positives (e.g. in XML-like doc comments) by\n // checking the element name.\n // eslint-disable-next-line no-in-operator\n if (!match[3] || !(match[3] in ts.commentPragmas)) {\n return false;\n }\n var pos = start;\n pushCommentRange(pos, match[1].length); // ///\n pos += match[1].length;\n pushClassification(pos, match[2].length, 10 /* punctuation */); // <\n pos += match[2].length;\n pushClassification(pos, match[3].length, 21 /* jsxSelfClosingTagName */); // element name\n pos += match[3].length;\n var attrText = match[4];\n var attrPos = pos;\n while (true) {\n var attrMatch = attributeRegex.exec(attrText);\n if (!attrMatch) {\n break;\n }\n var newAttrPos = pos + attrMatch.index + attrMatch[1].length; // whitespace\n if (newAttrPos > attrPos) {\n pushCommentRange(attrPos, newAttrPos - attrPos);\n attrPos = newAttrPos;\n }\n pushClassification(attrPos, attrMatch[2].length, 22 /* jsxAttribute */); // attribute name\n attrPos += attrMatch[2].length;\n if (attrMatch[3].length) {\n pushCommentRange(attrPos, attrMatch[3].length); // whitespace\n attrPos += attrMatch[3].length;\n }\n pushClassification(attrPos, attrMatch[4].length, 5 /* operator */); // =\n attrPos += attrMatch[4].length;\n if (attrMatch[5].length) {\n pushCommentRange(attrPos, attrMatch[5].length); // whitespace\n attrPos += attrMatch[5].length;\n }\n pushClassification(attrPos, attrMatch[6].length, 24 /* jsxAttributeStringLiteralValue */); // attribute value\n attrPos += attrMatch[6].length;\n }\n pos += match[4].length;\n if (pos > attrPos) {\n pushCommentRange(attrPos, pos - attrPos);\n }\n if (match[5]) {\n pushClassification(pos, match[5].length, 10 /* punctuation */); // />\n pos += match[5].length;\n }\n var end = start + width;\n if (pos < end) {\n pushCommentRange(pos, end - pos);\n }\n return true;\n }\n function processJSDocTemplateTag(tag) {\n for (var _i = 0, _a = tag.getChildren(); _i < _a.length; _i++) {\n var child = _a[_i];\n processElement(child);\n }\n }\n function classifyDisabledMergeCode(text, start, end) {\n // Classify the line that the ||||||| or ======= marker is on as a comment.\n // Then just lex all further tokens and add them to the result.\n var i;\n for (i = start; i < end; i++) {\n if (ts.isLineBreak(text.charCodeAt(i))) {\n break;\n }\n }\n pushClassification(start, i - start, 1 /* comment */);\n mergeConflictScanner.setTextPos(i);\n while (mergeConflictScanner.getTextPos() < end) {\n classifyDisabledCodeToken();\n }\n }\n function classifyDisabledCodeToken() {\n var start = mergeConflictScanner.getTextPos();\n var tokenKind = mergeConflictScanner.scan();\n var end = mergeConflictScanner.getTextPos();\n var type = classifyTokenType(tokenKind);\n if (type) {\n pushClassification(start, end - start, type);\n }\n }\n /**\n * Returns true if node should be treated as classified and no further processing is required.\n * False will mean that node is not classified and traverse routine should recurse into node contents.\n */\n function tryClassifyNode(node) {\n if (ts.isJSDoc(node)) {\n return true;\n }\n if (ts.nodeIsMissing(node)) {\n return true;\n }\n var classifiedElementName = tryClassifyJsxElementName(node);\n if (!ts.isToken(node) && node.kind !== 11 /* JsxText */ && classifiedElementName === undefined) {\n return false;\n }\n var tokenStart = node.kind === 11 /* JsxText */ ? node.pos : classifyLeadingTriviaAndGetTokenStart(node);\n var tokenWidth = node.end - tokenStart;\n ts.Debug.assert(tokenWidth >= 0);\n if (tokenWidth > 0) {\n var type = classifiedElementName || classifyTokenType(node.kind, node);\n if (type) {\n pushClassification(tokenStart, tokenWidth, type);\n }\n }\n return true;\n }\n function tryClassifyJsxElementName(token) {\n switch (token.parent && token.parent.kind) {\n case 278 /* JsxOpeningElement */:\n if (token.parent.tagName === token) {\n return 19 /* jsxOpenTagName */;\n }\n break;\n case 279 /* JsxClosingElement */:\n if (token.parent.tagName === token) {\n return 20 /* jsxCloseTagName */;\n }\n break;\n case 277 /* JsxSelfClosingElement */:\n if (token.parent.tagName === token) {\n return 21 /* jsxSelfClosingTagName */;\n }\n break;\n case 283 /* JsxAttribute */:\n if (token.parent.name === token) {\n return 22 /* jsxAttribute */;\n }\n break;\n }\n return undefined;\n }\n // for accurate classification, the actual token should be passed in. however, for\n // cases like 'disabled merge code' classification, we just get the token kind and\n // classify based on that instead.\n function classifyTokenType(tokenKind, token) {\n if (ts.isKeyword(tokenKind)) {\n return 3 /* keyword */;\n }\n // Special case `<` and `>`: If they appear in a generic context they are punctuation,\n // not operators.\n if (tokenKind === 29 /* LessThanToken */ || tokenKind === 31 /* GreaterThanToken */) {\n // If the node owning the token has a type argument list or type parameter list, then\n // we can effectively assume that a '<' and '>' belong to those lists.\n if (token && ts.getTypeArgumentOrTypeParameterList(token.parent)) {\n return 10 /* punctuation */;\n }\n }\n if (ts.isPunctuation(tokenKind)) {\n if (token) {\n var parent = token.parent;\n if (tokenKind === 63 /* EqualsToken */) {\n // the '=' in a variable declaration is special cased here.\n if (parent.kind === 252 /* VariableDeclaration */ ||\n parent.kind === 165 /* PropertyDeclaration */ ||\n parent.kind === 162 /* Parameter */ ||\n parent.kind === 283 /* JsxAttribute */) {\n return 5 /* operator */;\n }\n }\n if (parent.kind === 219 /* BinaryExpression */ ||\n parent.kind === 217 /* PrefixUnaryExpression */ ||\n parent.kind === 218 /* PostfixUnaryExpression */ ||\n parent.kind === 220 /* ConditionalExpression */) {\n return 5 /* operator */;\n }\n }\n return 10 /* punctuation */;\n }\n else if (tokenKind === 8 /* NumericLiteral */) {\n return 4 /* numericLiteral */;\n }\n else if (tokenKind === 9 /* BigIntLiteral */) {\n return 25 /* bigintLiteral */;\n }\n else if (tokenKind === 10 /* StringLiteral */) {\n return token && token.parent.kind === 283 /* JsxAttribute */ ? 24 /* jsxAttributeStringLiteralValue */ : 6 /* stringLiteral */;\n }\n else if (tokenKind === 13 /* RegularExpressionLiteral */) {\n // TODO: we should get another classification type for these literals.\n return 6 /* stringLiteral */;\n }\n else if (ts.isTemplateLiteralKind(tokenKind)) {\n // TODO (drosen): we should *also* get another classification type for these literals.\n return 6 /* stringLiteral */;\n }\n else if (tokenKind === 11 /* JsxText */) {\n return 23 /* jsxText */;\n }\n else if (tokenKind === 79 /* Identifier */) {\n if (token) {\n switch (token.parent.kind) {\n case 255 /* ClassDeclaration */:\n if (token.parent.name === token) {\n return 11 /* className */;\n }\n return;\n case 161 /* TypeParameter */:\n if (token.parent.name === token) {\n return 15 /* typeParameterName */;\n }\n return;\n case 256 /* InterfaceDeclaration */:\n if (token.parent.name === token) {\n return 13 /* interfaceName */;\n }\n return;\n case 258 /* EnumDeclaration */:\n if (token.parent.name === token) {\n return 12 /* enumName */;\n }\n return;\n case 259 /* ModuleDeclaration */:\n if (token.parent.name === token) {\n return 14 /* moduleName */;\n }\n return;\n case 162 /* Parameter */:\n if (token.parent.name === token) {\n return ts.isThisIdentifier(token) ? 3 /* keyword */ : 17 /* parameterName */;\n }\n return;\n }\n }\n return 2 /* identifier */;\n }\n }\n function processElement(element) {\n if (!element) {\n return;\n }\n // Ignore nodes that don't intersect the original span to classify.\n if (ts.decodedTextSpanIntersectsWith(spanStart, spanLength, element.pos, element.getFullWidth())) {\n checkForClassificationCancellation(cancellationToken, element.kind);\n for (var _i = 0, _a = element.getChildren(sourceFile); _i < _a.length; _i++) {\n var child = _a[_i];\n if (!tryClassifyNode(child)) {\n // Recurse into our child nodes.\n processElement(child);\n }\n }\n }\n }\n }\n ts.getEncodedSyntacticClassifications = getEncodedSyntacticClassifications;\n})(ts || (ts = {}));\n/** @internal */\nvar ts;\n(function (ts) {\n var classifier;\n (function (classifier) {\n var v2020;\n (function (v2020) {\n var TokenEncodingConsts;\n (function (TokenEncodingConsts) {\n TokenEncodingConsts[TokenEncodingConsts[\"typeOffset\"] = 8] = \"typeOffset\";\n TokenEncodingConsts[TokenEncodingConsts[\"modifierMask\"] = 255] = \"modifierMask\";\n })(TokenEncodingConsts = v2020.TokenEncodingConsts || (v2020.TokenEncodingConsts = {}));\n var TokenType;\n (function (TokenType) {\n TokenType[TokenType[\"class\"] = 0] = \"class\";\n TokenType[TokenType[\"enum\"] = 1] = \"enum\";\n TokenType[TokenType[\"interface\"] = 2] = \"interface\";\n TokenType[TokenType[\"namespace\"] = 3] = \"namespace\";\n TokenType[TokenType[\"typeParameter\"] = 4] = \"typeParameter\";\n TokenType[TokenType[\"type\"] = 5] = \"type\";\n TokenType[TokenType[\"parameter\"] = 6] = \"parameter\";\n TokenType[TokenType[\"variable\"] = 7] = \"variable\";\n TokenType[TokenType[\"enumMember\"] = 8] = \"enumMember\";\n TokenType[TokenType[\"property\"] = 9] = \"property\";\n TokenType[TokenType[\"function\"] = 10] = \"function\";\n TokenType[TokenType[\"member\"] = 11] = \"member\";\n })(TokenType = v2020.TokenType || (v2020.TokenType = {}));\n var TokenModifier;\n (function (TokenModifier) {\n TokenModifier[TokenModifier[\"declaration\"] = 0] = \"declaration\";\n TokenModifier[TokenModifier[\"static\"] = 1] = \"static\";\n TokenModifier[TokenModifier[\"async\"] = 2] = \"async\";\n TokenModifier[TokenModifier[\"readonly\"] = 3] = \"readonly\";\n TokenModifier[TokenModifier[\"defaultLibrary\"] = 4] = \"defaultLibrary\";\n TokenModifier[TokenModifier[\"local\"] = 5] = \"local\";\n })(TokenModifier = v2020.TokenModifier || (v2020.TokenModifier = {}));\n /** This is mainly used internally for testing */\n function getSemanticClassifications(program, cancellationToken, sourceFile, span) {\n var classifications = getEncodedSemanticClassifications(program, cancellationToken, sourceFile, span);\n ts.Debug.assert(classifications.spans.length % 3 === 0);\n var dense = classifications.spans;\n var result = [];\n for (var i = 0; i < dense.length; i += 3) {\n result.push({\n textSpan: ts.createTextSpan(dense[i], dense[i + 1]),\n classificationType: dense[i + 2]\n });\n }\n return result;\n }\n v2020.getSemanticClassifications = getSemanticClassifications;\n function getEncodedSemanticClassifications(program, cancellationToken, sourceFile, span) {\n return {\n spans: getSemanticTokens(program, sourceFile, span, cancellationToken),\n endOfLineState: 0 /* None */\n };\n }\n v2020.getEncodedSemanticClassifications = getEncodedSemanticClassifications;\n function getSemanticTokens(program, sourceFile, span, cancellationToken) {\n var resultTokens = [];\n var collector = function (node, typeIdx, modifierSet) {\n resultTokens.push(node.getStart(sourceFile), node.getWidth(sourceFile), ((typeIdx + 1) << 8 /* typeOffset */) + modifierSet);\n };\n if (program && sourceFile) {\n collectTokens(program, sourceFile, span, collector, cancellationToken);\n }\n return resultTokens;\n }\n function collectTokens(program, sourceFile, span, collector, cancellationToken) {\n var typeChecker = program.getTypeChecker();\n var inJSXElement = false;\n function visit(node) {\n switch (node.kind) {\n case 259 /* ModuleDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n cancellationToken.throwIfCancellationRequested();\n }\n if (!node || !ts.textSpanIntersectsWith(span, node.pos, node.getFullWidth()) || node.getFullWidth() === 0) {\n return;\n }\n var prevInJSXElement = inJSXElement;\n if (ts.isJsxElement(node) || ts.isJsxSelfClosingElement(node)) {\n inJSXElement = true;\n }\n if (ts.isJsxExpression(node)) {\n inJSXElement = false;\n }\n if (ts.isIdentifier(node) && !inJSXElement && !inImportClause(node) && !ts.isInfinityOrNaNString(node.escapedText)) {\n var symbol = typeChecker.getSymbolAtLocation(node);\n if (symbol) {\n if (symbol.flags & 2097152 /* Alias */) {\n symbol = typeChecker.getAliasedSymbol(symbol);\n }\n var typeIdx = classifySymbol(symbol, ts.getMeaningFromLocation(node));\n if (typeIdx !== undefined) {\n var modifierSet = 0;\n if (node.parent) {\n var parentIsDeclaration = (ts.isBindingElement(node.parent) || tokenFromDeclarationMapping.get(node.parent.kind) === typeIdx);\n if (parentIsDeclaration && node.parent.name === node) {\n modifierSet = 1 << 0 /* declaration */;\n }\n }\n // property declaration in constructor\n if (typeIdx === 6 /* parameter */ && isRightSideOfQualifiedNameOrPropertyAccess(node)) {\n typeIdx = 9 /* property */;\n }\n typeIdx = reclassifyByType(typeChecker, node, typeIdx);\n var decl = symbol.valueDeclaration;\n if (decl) {\n var modifiers = ts.getCombinedModifierFlags(decl);\n var nodeFlags = ts.getCombinedNodeFlags(decl);\n if (modifiers & 32 /* Static */) {\n modifierSet |= 1 << 1 /* static */;\n }\n if (modifiers & 256 /* Async */) {\n modifierSet |= 1 << 2 /* async */;\n }\n if (typeIdx !== 0 /* class */ && typeIdx !== 2 /* interface */) {\n if ((modifiers & 64 /* Readonly */) || (nodeFlags & 2 /* Const */) || (symbol.getFlags() & 8 /* EnumMember */)) {\n modifierSet |= 1 << 3 /* readonly */;\n }\n }\n if ((typeIdx === 7 /* variable */ || typeIdx === 10 /* function */) && isLocalDeclaration(decl, sourceFile)) {\n modifierSet |= 1 << 5 /* local */;\n }\n if (program.isSourceFileDefaultLibrary(decl.getSourceFile())) {\n modifierSet |= 1 << 4 /* defaultLibrary */;\n }\n }\n else if (symbol.declarations && symbol.declarations.some(function (d) { return program.isSourceFileDefaultLibrary(d.getSourceFile()); })) {\n modifierSet |= 1 << 4 /* defaultLibrary */;\n }\n collector(node, typeIdx, modifierSet);\n }\n }\n }\n ts.forEachChild(node, visit);\n inJSXElement = prevInJSXElement;\n }\n visit(sourceFile);\n }\n function classifySymbol(symbol, meaning) {\n var flags = symbol.getFlags();\n if (flags & 32 /* Class */) {\n return 0 /* class */;\n }\n else if (flags & 384 /* Enum */) {\n return 1 /* enum */;\n }\n else if (flags & 524288 /* TypeAlias */) {\n return 5 /* type */;\n }\n else if (flags & 64 /* Interface */) {\n if (meaning & 2 /* Type */) {\n return 2 /* interface */;\n }\n }\n else if (flags & 262144 /* TypeParameter */) {\n return 4 /* typeParameter */;\n }\n var decl = symbol.valueDeclaration || symbol.declarations && symbol.declarations[0];\n if (decl && ts.isBindingElement(decl)) {\n decl = getDeclarationForBindingElement(decl);\n }\n return decl && tokenFromDeclarationMapping.get(decl.kind);\n }\n function reclassifyByType(typeChecker, node, typeIdx) {\n // type based classifications\n if (typeIdx === 7 /* variable */ || typeIdx === 9 /* property */ || typeIdx === 6 /* parameter */) {\n var type_1 = typeChecker.getTypeAtLocation(node);\n if (type_1) {\n var test = function (condition) {\n return condition(type_1) || type_1.isUnion() && type_1.types.some(condition);\n };\n if (typeIdx !== 6 /* parameter */ && test(function (t) { return t.getConstructSignatures().length > 0; })) {\n return 0 /* class */;\n }\n if (test(function (t) { return t.getCallSignatures().length > 0; }) && !test(function (t) { return t.getProperties().length > 0; }) || isExpressionInCallExpression(node)) {\n return typeIdx === 9 /* property */ ? 11 /* member */ : 10 /* function */;\n }\n }\n }\n return typeIdx;\n }\n function isLocalDeclaration(decl, sourceFile) {\n if (ts.isBindingElement(decl)) {\n decl = getDeclarationForBindingElement(decl);\n }\n if (ts.isVariableDeclaration(decl)) {\n return (!ts.isSourceFile(decl.parent.parent.parent) || ts.isCatchClause(decl.parent)) && decl.getSourceFile() === sourceFile;\n }\n else if (ts.isFunctionDeclaration(decl)) {\n return !ts.isSourceFile(decl.parent) && decl.getSourceFile() === sourceFile;\n }\n return false;\n }\n function getDeclarationForBindingElement(element) {\n while (true) {\n if (ts.isBindingElement(element.parent.parent)) {\n element = element.parent.parent;\n }\n else {\n return element.parent.parent;\n }\n }\n }\n function inImportClause(node) {\n var parent = node.parent;\n return parent && (ts.isImportClause(parent) || ts.isImportSpecifier(parent) || ts.isNamespaceImport(parent));\n }\n function isExpressionInCallExpression(node) {\n while (isRightSideOfQualifiedNameOrPropertyAccess(node)) {\n node = node.parent;\n }\n return ts.isCallExpression(node.parent) && node.parent.expression === node;\n }\n function isRightSideOfQualifiedNameOrPropertyAccess(node) {\n return (ts.isQualifiedName(node.parent) && node.parent.right === node) || (ts.isPropertyAccessExpression(node.parent) && node.parent.name === node);\n }\n var tokenFromDeclarationMapping = new ts.Map([\n [252 /* VariableDeclaration */, 7 /* variable */],\n [162 /* Parameter */, 6 /* parameter */],\n [165 /* PropertyDeclaration */, 9 /* property */],\n [259 /* ModuleDeclaration */, 3 /* namespace */],\n [258 /* EnumDeclaration */, 1 /* enum */],\n [294 /* EnumMember */, 8 /* enumMember */],\n [255 /* ClassDeclaration */, 0 /* class */],\n [167 /* MethodDeclaration */, 11 /* member */],\n [254 /* FunctionDeclaration */, 10 /* function */],\n [211 /* FunctionExpression */, 10 /* function */],\n [166 /* MethodSignature */, 11 /* member */],\n [170 /* GetAccessor */, 9 /* property */],\n [171 /* SetAccessor */, 9 /* property */],\n [164 /* PropertySignature */, 9 /* property */],\n [256 /* InterfaceDeclaration */, 2 /* interface */],\n [257 /* TypeAliasDeclaration */, 5 /* type */],\n [161 /* TypeParameter */, 4 /* typeParameter */],\n [291 /* PropertyAssignment */, 9 /* property */],\n [292 /* ShorthandPropertyAssignment */, 9 /* property */]\n ]);\n })(v2020 = classifier.v2020 || (classifier.v2020 = {}));\n })(classifier = ts.classifier || (ts.classifier = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var Completions;\n (function (Completions) {\n var StringCompletions;\n (function (StringCompletions) {\n function getStringLiteralCompletions(sourceFile, position, contextToken, checker, options, host, log, preferences) {\n if (ts.isInReferenceComment(sourceFile, position)) {\n var entries = getTripleSlashReferenceCompletion(sourceFile, position, options, host);\n return entries && convertPathCompletions(entries);\n }\n if (ts.isInString(sourceFile, position, contextToken)) {\n if (!contextToken || !ts.isStringLiteralLike(contextToken))\n return undefined;\n var entries = getStringLiteralCompletionEntries(sourceFile, contextToken, position, checker, options, host, preferences);\n return convertStringLiteralCompletions(entries, contextToken, sourceFile, checker, log, options, preferences);\n }\n }\n StringCompletions.getStringLiteralCompletions = getStringLiteralCompletions;\n function convertStringLiteralCompletions(completion, contextToken, sourceFile, checker, log, options, preferences) {\n if (completion === undefined) {\n return undefined;\n }\n var optionalReplacementSpan = ts.createTextSpanFromStringLiteralLikeContent(contextToken);\n switch (completion.kind) {\n case 0 /* Paths */:\n return convertPathCompletions(completion.paths);\n case 1 /* Properties */: {\n var entries = [];\n Completions.getCompletionEntriesFromSymbols(completion.symbols, entries, contextToken, sourceFile, sourceFile, checker, 99 /* ESNext */, log, 4 /* String */, preferences, options); // Target will not be used, so arbitrary\n return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: completion.hasIndexSignature, optionalReplacementSpan: optionalReplacementSpan, entries: entries };\n }\n case 2 /* Types */: {\n var entries = completion.types.map(function (type) { return ({\n name: type.value,\n kindModifiers: \"\" /* none */,\n kind: \"string\" /* string */,\n sortText: Completions.SortText.LocationPriority,\n replacementSpan: ts.getReplacementSpanForContextToken(contextToken)\n }); });\n return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: completion.isNewIdentifier, optionalReplacementSpan: optionalReplacementSpan, entries: entries };\n }\n default:\n return ts.Debug.assertNever(completion);\n }\n }\n function getStringLiteralCompletionDetails(name, sourceFile, position, contextToken, checker, options, host, cancellationToken, preferences) {\n if (!contextToken || !ts.isStringLiteralLike(contextToken))\n return undefined;\n var completions = getStringLiteralCompletionEntries(sourceFile, contextToken, position, checker, options, host, preferences);\n return completions && stringLiteralCompletionDetails(name, contextToken, completions, sourceFile, checker, cancellationToken);\n }\n StringCompletions.getStringLiteralCompletionDetails = getStringLiteralCompletionDetails;\n function stringLiteralCompletionDetails(name, location, completion, sourceFile, checker, cancellationToken) {\n switch (completion.kind) {\n case 0 /* Paths */: {\n var match = ts.find(completion.paths, function (p) { return p.name === name; });\n return match && Completions.createCompletionDetails(name, kindModifiersFromExtension(match.extension), match.kind, [ts.textPart(name)]);\n }\n case 1 /* Properties */: {\n var match = ts.find(completion.symbols, function (s) { return s.name === name; });\n return match && Completions.createCompletionDetailsForSymbol(match, checker, sourceFile, location, cancellationToken);\n }\n case 2 /* Types */:\n return ts.find(completion.types, function (t) { return t.value === name; }) ? Completions.createCompletionDetails(name, \"\" /* none */, \"type\" /* typeElement */, [ts.textPart(name)]) : undefined;\n default:\n return ts.Debug.assertNever(completion);\n }\n }\n function convertPathCompletions(pathCompletions) {\n var isGlobalCompletion = false; // We don't want the editor to offer any other completions, such as snippets, inside a comment.\n var isNewIdentifierLocation = true; // The user may type in a path that doesn't yet exist, creating a \"new identifier\" with respect to the collection of identifiers the server is aware of.\n var entries = pathCompletions.map(function (_a) {\n var name = _a.name, kind = _a.kind, span = _a.span, extension = _a.extension;\n return ({ name: name, kind: kind, kindModifiers: kindModifiersFromExtension(extension), sortText: Completions.SortText.LocationPriority, replacementSpan: span });\n });\n return { isGlobalCompletion: isGlobalCompletion, isMemberCompletion: false, isNewIdentifierLocation: isNewIdentifierLocation, entries: entries };\n }\n function kindModifiersFromExtension(extension) {\n switch (extension) {\n case \".d.ts\" /* Dts */: return \".d.ts\" /* dtsModifier */;\n case \".js\" /* Js */: return \".js\" /* jsModifier */;\n case \".json\" /* Json */: return \".json\" /* jsonModifier */;\n case \".jsx\" /* Jsx */: return \".jsx\" /* jsxModifier */;\n case \".ts\" /* Ts */: return \".ts\" /* tsModifier */;\n case \".tsx\" /* Tsx */: return \".tsx\" /* tsxModifier */;\n case \".tsbuildinfo\" /* TsBuildInfo */: return ts.Debug.fail(\"Extension \" + \".tsbuildinfo\" /* TsBuildInfo */ + \" is unsupported.\");\n case undefined: return \"\" /* none */;\n default:\n return ts.Debug.assertNever(extension);\n }\n }\n var StringLiteralCompletionKind;\n (function (StringLiteralCompletionKind) {\n StringLiteralCompletionKind[StringLiteralCompletionKind[\"Paths\"] = 0] = \"Paths\";\n StringLiteralCompletionKind[StringLiteralCompletionKind[\"Properties\"] = 1] = \"Properties\";\n StringLiteralCompletionKind[StringLiteralCompletionKind[\"Types\"] = 2] = \"Types\";\n })(StringLiteralCompletionKind || (StringLiteralCompletionKind = {}));\n function getStringLiteralCompletionEntries(sourceFile, node, position, typeChecker, compilerOptions, host, preferences) {\n var parent = walkUpParentheses(node.parent);\n switch (parent.kind) {\n case 194 /* LiteralType */: {\n var grandParent = walkUpParentheses(parent.parent);\n switch (grandParent.kind) {\n case 176 /* TypeReference */: {\n var typeReference_1 = grandParent;\n var typeArgument = ts.findAncestor(parent, function (n) { return n.parent === typeReference_1; });\n if (typeArgument) {\n return { kind: 2 /* Types */, types: getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(typeArgument)), isNewIdentifier: false };\n }\n return undefined;\n }\n case 192 /* IndexedAccessType */:\n // Get all apparent property names\n // i.e. interface Foo {\n // foo: string;\n // bar: string;\n // }\n // let x: Foo[\"/*completion position*/\"]\n var _a = grandParent, indexType = _a.indexType, objectType = _a.objectType;\n if (!ts.rangeContainsPosition(indexType, position)) {\n return undefined;\n }\n return stringLiteralCompletionsFromProperties(typeChecker.getTypeFromTypeNode(objectType));\n case 198 /* ImportType */:\n return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) };\n case 185 /* UnionType */: {\n if (!ts.isTypeReferenceNode(grandParent.parent)) {\n return undefined;\n }\n var alreadyUsedTypes_1 = getAlreadyUsedTypesInStringLiteralUnion(grandParent, parent);\n var types = getStringLiteralTypes(typeChecker.getTypeArgumentConstraint(grandParent)).filter(function (t) { return !ts.contains(alreadyUsedTypes_1, t.value); });\n return { kind: 2 /* Types */, types: types, isNewIdentifier: false };\n }\n default:\n return undefined;\n }\n }\n case 291 /* PropertyAssignment */:\n if (ts.isObjectLiteralExpression(parent.parent) && parent.name === node) {\n // Get quoted name of properties of the object literal expression\n // i.e. interface ConfigFiles {\n // 'jspm:dev': string\n // }\n // let files: ConfigFiles = {\n // '/*completion position*/'\n // }\n //\n // function foo(c: ConfigFiles) {}\n // foo({\n // '/*completion position*/'\n // });\n return stringLiteralCompletionsForObjectLiteral(typeChecker, parent.parent);\n }\n return fromContextualType();\n case 205 /* ElementAccessExpression */: {\n var _b = parent, expression = _b.expression, argumentExpression = _b.argumentExpression;\n if (node === ts.skipParentheses(argumentExpression)) {\n // Get all names of properties on the expression\n // i.e. interface A {\n // 'prop1': string\n // }\n // let a: A;\n // a['/*completion position*/']\n return stringLiteralCompletionsFromProperties(typeChecker.getTypeAtLocation(expression));\n }\n return undefined;\n }\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n if (!isRequireCallArgument(node) && !ts.isImportCall(parent)) {\n var argumentInfo = ts.SignatureHelp.getArgumentInfoForCompletions(node, position, sourceFile);\n // Get string literal completions from specialized signatures of the target\n // i.e. declare function f(a: 'A');\n // f(\"/*completion position*/\")\n return argumentInfo ? getStringLiteralCompletionsFromSignature(argumentInfo, typeChecker) : fromContextualType();\n }\n // falls through (is `require(\"\")` or `require(\"\"` or `import(\"\")`)\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n case 275 /* ExternalModuleReference */:\n // Get all known external module names or complete a path to a module\n // i.e. import * as ns from \"/*completion position*/\";\n // var y = import(\"/*completion position*/\");\n // import x = require(\"/*completion position*/\");\n // var y = require(\"/*completion position*/\");\n // export * from \"/*completion position*/\";\n return { kind: 0 /* Paths */, paths: getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) };\n default:\n return fromContextualType();\n }\n function fromContextualType() {\n // Get completion for string literal from string literal type\n // i.e. var x: \"hi\" | \"hello\" = \"/*completion position*/\"\n return { kind: 2 /* Types */, types: getStringLiteralTypes(ts.getContextualTypeFromParent(node, typeChecker)), isNewIdentifier: false };\n }\n }\n function walkUpParentheses(node) {\n switch (node.kind) {\n case 189 /* ParenthesizedType */:\n return ts.walkUpParenthesizedTypes(node);\n case 210 /* ParenthesizedExpression */:\n return ts.walkUpParenthesizedExpressions(node);\n default:\n return node;\n }\n }\n function getAlreadyUsedTypesInStringLiteralUnion(union, current) {\n return ts.mapDefined(union.types, function (type) {\n return type !== current && ts.isLiteralTypeNode(type) && ts.isStringLiteral(type.literal) ? type.literal.text : undefined;\n });\n }\n function getStringLiteralCompletionsFromSignature(argumentInfo, checker) {\n var isNewIdentifier = false;\n var uniques = new ts.Map();\n var candidates = [];\n checker.getResolvedSignature(argumentInfo.invocation, candidates, argumentInfo.argumentCount);\n var types = ts.flatMap(candidates, function (candidate) {\n if (!ts.signatureHasRestParameter(candidate) && argumentInfo.argumentCount > candidate.parameters.length)\n return;\n var type = checker.getParameterType(candidate, argumentInfo.argumentIndex);\n isNewIdentifier = isNewIdentifier || !!(type.flags & 4 /* String */);\n return getStringLiteralTypes(type, uniques);\n });\n return { kind: 2 /* Types */, types: types, isNewIdentifier: isNewIdentifier };\n }\n function stringLiteralCompletionsFromProperties(type) {\n return type && {\n kind: 1 /* Properties */,\n symbols: ts.filter(type.getApparentProperties(), function (prop) { return !(prop.valueDeclaration && ts.isPrivateIdentifierClassElementDeclaration(prop.valueDeclaration)); }),\n hasIndexSignature: ts.hasIndexSignature(type)\n };\n }\n function stringLiteralCompletionsForObjectLiteral(checker, objectLiteralExpression) {\n var contextualType = checker.getContextualType(objectLiteralExpression);\n if (!contextualType)\n return undefined;\n var completionsType = checker.getContextualType(objectLiteralExpression, 4 /* Completions */);\n var symbols = Completions.getPropertiesForObjectExpression(contextualType, completionsType, objectLiteralExpression, checker);\n return {\n kind: 1 /* Properties */,\n symbols: symbols,\n hasIndexSignature: ts.hasIndexSignature(contextualType)\n };\n }\n function getStringLiteralTypes(type, uniques) {\n if (uniques === void 0) { uniques = new ts.Map(); }\n if (!type)\n return ts.emptyArray;\n type = ts.skipConstraint(type);\n return type.isUnion() ? ts.flatMap(type.types, function (t) { return getStringLiteralTypes(t, uniques); }) :\n type.isStringLiteral() && !(type.flags & 1024 /* EnumLiteral */) && ts.addToSeen(uniques, type.value) ? [type] : ts.emptyArray;\n }\n function nameAndKind(name, kind, extension) {\n return { name: name, kind: kind, extension: extension };\n }\n function directoryResult(name) {\n return nameAndKind(name, \"directory\" /* directory */, /*extension*/ undefined);\n }\n function addReplacementSpans(text, textStart, names) {\n var span = getDirectoryFragmentTextSpan(text, textStart);\n var wholeSpan = text.length === 0 ? undefined : ts.createTextSpan(textStart, text.length);\n return names.map(function (_a) {\n var name = _a.name, kind = _a.kind, extension = _a.extension;\n return Math.max(name.indexOf(ts.directorySeparator), name.indexOf(ts.altDirectorySeparator)) !== -1 ? { name: name, kind: kind, extension: extension, span: wholeSpan } : { name: name, kind: kind, extension: extension, span: span };\n });\n }\n function getStringLiteralCompletionsFromModuleNames(sourceFile, node, compilerOptions, host, typeChecker, preferences) {\n return addReplacementSpans(node.text, node.getStart(sourceFile) + 1, getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, compilerOptions, host, typeChecker, preferences));\n }\n function getStringLiteralCompletionsFromModuleNamesWorker(sourceFile, node, compilerOptions, host, typeChecker, preferences) {\n var literalValue = ts.normalizeSlashes(node.text);\n var scriptPath = sourceFile.path;\n var scriptDirectory = ts.getDirectoryPath(scriptPath);\n return isPathRelativeToScript(literalValue) || !compilerOptions.baseUrl && (ts.isRootedDiskPath(literalValue) || ts.isUrl(literalValue))\n ? getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, preferences)\n : getCompletionEntriesForNonRelativeModules(literalValue, scriptDirectory, compilerOptions, host, typeChecker);\n }\n function getExtensionOptions(compilerOptions, includeExtensionsOption) {\n if (includeExtensionsOption === void 0) { includeExtensionsOption = 0 /* Exclude */; }\n return { extensions: getSupportedExtensionsForModuleResolution(compilerOptions), includeExtensionsOption: includeExtensionsOption };\n }\n function getCompletionEntriesForRelativeModules(literalValue, scriptDirectory, compilerOptions, host, scriptPath, preferences) {\n var includeExtensions = preferences.importModuleSpecifierEnding === \"js\" ? 2 /* ModuleSpecifierCompletion */ : 0 /* Exclude */;\n var extensionOptions = getExtensionOptions(compilerOptions, includeExtensions);\n if (compilerOptions.rootDirs) {\n return getCompletionEntriesForDirectoryFragmentWithRootDirs(compilerOptions.rootDirs, literalValue, scriptDirectory, extensionOptions, compilerOptions, host, scriptPath);\n }\n else {\n return getCompletionEntriesForDirectoryFragment(literalValue, scriptDirectory, extensionOptions, host, scriptPath);\n }\n }\n function getSupportedExtensionsForModuleResolution(compilerOptions) {\n var extensions = ts.getSupportedExtensions(compilerOptions);\n return compilerOptions.resolveJsonModule && ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.NodeJs ?\n extensions.concat(\".json\" /* Json */) :\n extensions;\n }\n /**\n * Takes a script path and returns paths for all potential folders that could be merged with its\n * containing folder via the \"rootDirs\" compiler option\n */\n function getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase) {\n // Make all paths absolute/normalized if they are not already\n rootDirs = rootDirs.map(function (rootDirectory) { return ts.normalizePath(ts.isRootedDiskPath(rootDirectory) ? rootDirectory : ts.combinePaths(basePath, rootDirectory)); });\n // Determine the path to the directory containing the script relative to the root directory it is contained within\n var relativeDirectory = ts.firstDefined(rootDirs, function (rootDirectory) {\n return ts.containsPath(rootDirectory, scriptDirectory, basePath, ignoreCase) ? scriptDirectory.substr(rootDirectory.length) : undefined;\n }); // TODO: GH#18217\n // Now find a path for each potential directory that is to be merged with the one containing the script\n return ts.deduplicate(__spreadArray(__spreadArray([], rootDirs.map(function (rootDirectory) { return ts.combinePaths(rootDirectory, relativeDirectory); }), true), [scriptDirectory], false), ts.equateStringsCaseSensitive, ts.compareStringsCaseSensitive);\n }\n function getCompletionEntriesForDirectoryFragmentWithRootDirs(rootDirs, fragment, scriptDirectory, extensionOptions, compilerOptions, host, exclude) {\n var basePath = compilerOptions.project || host.getCurrentDirectory();\n var ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames());\n var baseDirectories = getBaseDirectoriesFromRootDirs(rootDirs, basePath, scriptDirectory, ignoreCase);\n return ts.flatMap(baseDirectories, function (baseDirectory) { return getCompletionEntriesForDirectoryFragment(fragment, baseDirectory, extensionOptions, host, exclude); });\n }\n var IncludeExtensionsOption;\n (function (IncludeExtensionsOption) {\n IncludeExtensionsOption[IncludeExtensionsOption[\"Exclude\"] = 0] = \"Exclude\";\n IncludeExtensionsOption[IncludeExtensionsOption[\"Include\"] = 1] = \"Include\";\n IncludeExtensionsOption[IncludeExtensionsOption[\"ModuleSpecifierCompletion\"] = 2] = \"ModuleSpecifierCompletion\";\n })(IncludeExtensionsOption || (IncludeExtensionsOption = {}));\n /**\n * Given a path ending at a directory, gets the completions for the path, and filters for those entries containing the basename.\n */\n function getCompletionEntriesForDirectoryFragment(fragment, scriptPath, _a, host, exclude, result) {\n var extensions = _a.extensions, includeExtensionsOption = _a.includeExtensionsOption;\n if (result === void 0) { result = []; }\n if (fragment === undefined) {\n fragment = \"\";\n }\n fragment = ts.normalizeSlashes(fragment);\n /**\n * Remove the basename from the path. Note that we don't use the basename to filter completions;\n * the client is responsible for refining completions.\n */\n if (!ts.hasTrailingDirectorySeparator(fragment)) {\n fragment = ts.getDirectoryPath(fragment);\n }\n if (fragment === \"\") {\n fragment = \".\" + ts.directorySeparator;\n }\n fragment = ts.ensureTrailingDirectorySeparator(fragment);\n // const absolutePath = normalizeAndPreserveTrailingSlash(isRootedDiskPath(fragment) ? fragment : combinePaths(scriptPath, fragment)); // TODO(rbuckton): should use resolvePaths\n var absolutePath = ts.resolvePath(scriptPath, fragment);\n var baseDirectory = ts.hasTrailingDirectorySeparator(absolutePath) ? absolutePath : ts.getDirectoryPath(absolutePath);\n var ignoreCase = !(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames());\n if (!ts.tryDirectoryExists(host, baseDirectory))\n return result;\n // Enumerate the available files if possible\n var files = ts.tryReadDirectory(host, baseDirectory, extensions, /*exclude*/ undefined, /*include*/ [\"./*\"]);\n if (files) {\n /**\n * Multiple file entries might map to the same truncated name once we remove extensions\n * (happens iff includeExtensionsOption === includeExtensionsOption.Exclude) so we use a set-like data structure. Eg:\n *\n * both foo.ts and foo.tsx become foo\n */\n var foundFiles = new ts.Map(); // maps file to its extension\n for (var _i = 0, files_1 = files; _i < files_1.length; _i++) {\n var filePath = files_1[_i];\n filePath = ts.normalizePath(filePath);\n if (exclude && ts.comparePaths(filePath, exclude, scriptPath, ignoreCase) === 0 /* EqualTo */) {\n continue;\n }\n var foundFileName = void 0;\n var outputExtension = ts.moduleSpecifiers.tryGetJSExtensionForFile(filePath, host.getCompilationSettings());\n if (includeExtensionsOption === 0 /* Exclude */ && !ts.fileExtensionIs(filePath, \".json\" /* Json */)) {\n foundFileName = ts.removeFileExtension(ts.getBaseFileName(filePath));\n foundFiles.set(foundFileName, ts.tryGetExtensionFromPath(filePath));\n }\n else if (includeExtensionsOption === 2 /* ModuleSpecifierCompletion */ && outputExtension) {\n foundFileName = ts.changeExtension(ts.getBaseFileName(filePath), outputExtension);\n foundFiles.set(foundFileName, outputExtension);\n }\n else {\n foundFileName = ts.getBaseFileName(filePath);\n foundFiles.set(foundFileName, ts.tryGetExtensionFromPath(filePath));\n }\n }\n foundFiles.forEach(function (ext, foundFile) {\n result.push(nameAndKind(foundFile, \"script\" /* scriptElement */, ext));\n });\n }\n // If possible, get folder completion as well\n var directories = ts.tryGetDirectories(host, baseDirectory);\n if (directories) {\n for (var _b = 0, directories_1 = directories; _b < directories_1.length; _b++) {\n var directory = directories_1[_b];\n var directoryName = ts.getBaseFileName(ts.normalizePath(directory));\n if (directoryName !== \"@types\") {\n result.push(directoryResult(directoryName));\n }\n }\n }\n // check for a version redirect\n var packageJsonPath = ts.findPackageJson(baseDirectory, host);\n if (packageJsonPath) {\n var packageJson = ts.readJson(packageJsonPath, host);\n var typesVersions = packageJson.typesVersions;\n if (typeof typesVersions === \"object\") {\n var versionResult = ts.getPackageJsonTypesVersionsPaths(typesVersions);\n var versionPaths = versionResult && versionResult.paths;\n var rest = absolutePath.slice(ts.ensureTrailingDirectorySeparator(baseDirectory).length);\n if (versionPaths) {\n addCompletionEntriesFromPaths(result, rest, baseDirectory, extensions, versionPaths, host);\n }\n }\n }\n return result;\n }\n function addCompletionEntriesFromPaths(result, fragment, baseDirectory, fileExtensions, paths, host) {\n for (var path in paths) {\n if (!ts.hasProperty(paths, path))\n continue;\n var patterns = paths[path];\n if (patterns) {\n var _loop_2 = function (name, kind, extension) {\n // Path mappings may provide a duplicate way to get to something we've already added, so don't add again.\n if (!result.some(function (entry) { return entry.name === name; })) {\n result.push(nameAndKind(name, kind, extension));\n }\n };\n for (var _i = 0, _a = getCompletionsForPathMapping(path, patterns, fragment, baseDirectory, fileExtensions, host); _i < _a.length; _i++) {\n var _b = _a[_i], name = _b.name, kind = _b.kind, extension = _b.extension;\n _loop_2(name, kind, extension);\n }\n }\n }\n }\n /**\n * Check all of the declared modules and those in node modules. Possible sources of modules:\n * Modules that are found by the type checker\n * Modules found relative to \"baseUrl\" compliler options (including patterns from \"paths\" compiler option)\n * Modules from node_modules (i.e. those listed in package.json)\n * This includes all files that are found in node_modules/moduleName/ with acceptable file extensions\n */\n function getCompletionEntriesForNonRelativeModules(fragment, scriptPath, compilerOptions, host, typeChecker) {\n var baseUrl = compilerOptions.baseUrl, paths = compilerOptions.paths;\n var result = [];\n var extensionOptions = getExtensionOptions(compilerOptions);\n if (baseUrl) {\n var projectDir = compilerOptions.project || host.getCurrentDirectory();\n var absolute = ts.normalizePath(ts.combinePaths(projectDir, baseUrl));\n getCompletionEntriesForDirectoryFragment(fragment, absolute, extensionOptions, host, /*exclude*/ undefined, result);\n if (paths) {\n addCompletionEntriesFromPaths(result, fragment, absolute, extensionOptions.extensions, paths, host);\n }\n }\n var fragmentDirectory = getFragmentDirectory(fragment);\n for (var _i = 0, _a = getAmbientModuleCompletions(fragment, fragmentDirectory, typeChecker); _i < _a.length; _i++) {\n var ambientName = _a[_i];\n result.push(nameAndKind(ambientName, \"external module name\" /* externalModuleName */, /*extension*/ undefined));\n }\n getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, fragmentDirectory, extensionOptions, result);\n if (ts.getEmitModuleResolutionKind(compilerOptions) === ts.ModuleResolutionKind.NodeJs) {\n // If looking for a global package name, don't just include everything in `node_modules` because that includes dependencies' own dependencies.\n // (But do if we didn't find anything, e.g. 'package.json' missing.)\n var foundGlobal = false;\n if (fragmentDirectory === undefined) {\n var _loop_3 = function (moduleName) {\n if (!result.some(function (entry) { return entry.name === moduleName; })) {\n foundGlobal = true;\n result.push(nameAndKind(moduleName, \"external module name\" /* externalModuleName */, /*extension*/ undefined));\n }\n };\n for (var _b = 0, _c = enumerateNodeModulesVisibleToScript(host, scriptPath); _b < _c.length; _b++) {\n var moduleName = _c[_b];\n _loop_3(moduleName);\n }\n }\n if (!foundGlobal) {\n ts.forEachAncestorDirectory(scriptPath, function (ancestor) {\n var nodeModules = ts.combinePaths(ancestor, \"node_modules\");\n if (ts.tryDirectoryExists(host, nodeModules)) {\n getCompletionEntriesForDirectoryFragment(fragment, nodeModules, extensionOptions, host, /*exclude*/ undefined, result);\n }\n });\n }\n }\n return result;\n }\n function getFragmentDirectory(fragment) {\n return containsSlash(fragment) ? ts.hasTrailingDirectorySeparator(fragment) ? fragment : ts.getDirectoryPath(fragment) : undefined;\n }\n function getCompletionsForPathMapping(path, patterns, fragment, baseUrl, fileExtensions, host) {\n if (!ts.endsWith(path, \"*\")) {\n // For a path mapping \"foo\": [\"/x/y/z.ts\"], add \"foo\" itself as a completion.\n return !ts.stringContains(path, \"*\") ? justPathMappingName(path) : ts.emptyArray;\n }\n var pathPrefix = path.slice(0, path.length - 1);\n var remainingFragment = ts.tryRemovePrefix(fragment, pathPrefix);\n return remainingFragment === undefined ? justPathMappingName(pathPrefix) : ts.flatMap(patterns, function (pattern) {\n return getModulesForPathsPattern(remainingFragment, baseUrl, pattern, fileExtensions, host);\n });\n function justPathMappingName(name) {\n return ts.startsWith(name, fragment) ? [directoryResult(name)] : ts.emptyArray;\n }\n }\n function getModulesForPathsPattern(fragment, baseUrl, pattern, fileExtensions, host) {\n if (!host.readDirectory) {\n return undefined;\n }\n var parsed = ts.tryParsePattern(pattern);\n if (parsed === undefined || ts.isString(parsed)) {\n return undefined;\n }\n // The prefix has two effective parts: the directory path and the base component after the filepath that is not a\n // full directory component. For example: directory/path/of/prefix/base*\n var normalizedPrefix = ts.resolvePath(parsed.prefix);\n var normalizedPrefixDirectory = ts.hasTrailingDirectorySeparator(parsed.prefix) ? normalizedPrefix : ts.getDirectoryPath(normalizedPrefix);\n var normalizedPrefixBase = ts.hasTrailingDirectorySeparator(parsed.prefix) ? \"\" : ts.getBaseFileName(normalizedPrefix);\n var fragmentHasPath = containsSlash(fragment);\n var fragmentDirectory = fragmentHasPath ? ts.hasTrailingDirectorySeparator(fragment) ? fragment : ts.getDirectoryPath(fragment) : undefined;\n // Try and expand the prefix to include any path from the fragment so that we can limit the readDirectory call\n var expandedPrefixDirectory = fragmentHasPath ? ts.combinePaths(normalizedPrefixDirectory, normalizedPrefixBase + fragmentDirectory) : normalizedPrefixDirectory;\n var normalizedSuffix = ts.normalizePath(parsed.suffix);\n // Need to normalize after combining: If we combinePaths(\"a\", \"../b\"), we want \"b\" and not \"a/../b\".\n var baseDirectory = ts.normalizePath(ts.combinePaths(baseUrl, expandedPrefixDirectory));\n var completePrefix = fragmentHasPath ? baseDirectory : ts.ensureTrailingDirectorySeparator(baseDirectory) + normalizedPrefixBase;\n // If we have a suffix, then we need to read the directory all the way down. We could create a glob\n // that encodes the suffix, but we would have to escape the character \"?\" which readDirectory\n // doesn't support. For now, this is safer but slower\n var includeGlob = normalizedSuffix ? \"**/*\" : \"./*\";\n var matches = ts.mapDefined(ts.tryReadDirectory(host, baseDirectory, fileExtensions, /*exclude*/ undefined, [includeGlob]), function (match) {\n var extension = ts.tryGetExtensionFromPath(match);\n var name = trimPrefixAndSuffix(match);\n return name === undefined ? undefined : nameAndKind(ts.removeFileExtension(name), \"script\" /* scriptElement */, extension);\n });\n var directories = ts.mapDefined(ts.tryGetDirectories(host, baseDirectory).map(function (d) { return ts.combinePaths(baseDirectory, d); }), function (dir) {\n var name = trimPrefixAndSuffix(dir);\n return name === undefined ? undefined : directoryResult(name);\n });\n return __spreadArray(__spreadArray([], matches, true), directories, true);\n function trimPrefixAndSuffix(path) {\n var inner = withoutStartAndEnd(ts.normalizePath(path), completePrefix, normalizedSuffix);\n return inner === undefined ? undefined : removeLeadingDirectorySeparator(inner);\n }\n }\n function withoutStartAndEnd(s, start, end) {\n return ts.startsWith(s, start) && ts.endsWith(s, end) ? s.slice(start.length, s.length - end.length) : undefined;\n }\n function removeLeadingDirectorySeparator(path) {\n return path[0] === ts.directorySeparator ? path.slice(1) : path;\n }\n function getAmbientModuleCompletions(fragment, fragmentDirectory, checker) {\n // Get modules that the type checker picked up\n var ambientModules = checker.getAmbientModules().map(function (sym) { return ts.stripQuotes(sym.name); });\n var nonRelativeModuleNames = ambientModules.filter(function (moduleName) { return ts.startsWith(moduleName, fragment); });\n // Nested modules of the form \"module-name/sub\" need to be adjusted to only return the string\n // after the last '/' that appears in the fragment because that's where the replacement span\n // starts\n if (fragmentDirectory !== undefined) {\n var moduleNameWithSeparator_1 = ts.ensureTrailingDirectorySeparator(fragmentDirectory);\n return nonRelativeModuleNames.map(function (nonRelativeModuleName) { return ts.removePrefix(nonRelativeModuleName, moduleNameWithSeparator_1); });\n }\n return nonRelativeModuleNames;\n }\n function getTripleSlashReferenceCompletion(sourceFile, position, compilerOptions, host) {\n var token = ts.getTokenAtPosition(sourceFile, position);\n var commentRanges = ts.getLeadingCommentRanges(sourceFile.text, token.pos);\n var range = commentRanges && ts.find(commentRanges, function (commentRange) { return position >= commentRange.pos && position <= commentRange.end; });\n if (!range) {\n return undefined;\n }\n var text = sourceFile.text.slice(range.pos, position);\n var match = tripleSlashDirectiveFragmentRegex.exec(text);\n if (!match) {\n return undefined;\n }\n var prefix = match[1], kind = match[2], toComplete = match[3];\n var scriptPath = ts.getDirectoryPath(sourceFile.path);\n var names = kind === \"path\" ? getCompletionEntriesForDirectoryFragment(toComplete, scriptPath, getExtensionOptions(compilerOptions, 1 /* Include */), host, sourceFile.path)\n : kind === \"types\" ? getCompletionEntriesFromTypings(host, compilerOptions, scriptPath, getFragmentDirectory(toComplete), getExtensionOptions(compilerOptions))\n : ts.Debug.fail();\n return addReplacementSpans(toComplete, range.pos + prefix.length, names);\n }\n function getCompletionEntriesFromTypings(host, options, scriptPath, fragmentDirectory, extensionOptions, result) {\n if (result === void 0) { result = []; }\n // Check for typings specified in compiler options\n var seen = new ts.Map();\n var typeRoots = ts.tryAndIgnoreErrors(function () { return ts.getEffectiveTypeRoots(options, host); }) || ts.emptyArray;\n for (var _i = 0, typeRoots_1 = typeRoots; _i < typeRoots_1.length; _i++) {\n var root = typeRoots_1[_i];\n getCompletionEntriesFromDirectories(root);\n }\n // Also get all @types typings installed in visible node_modules directories\n for (var _a = 0, _b = ts.findPackageJsons(scriptPath, host); _a < _b.length; _a++) {\n var packageJson = _b[_a];\n var typesDir = ts.combinePaths(ts.getDirectoryPath(packageJson), \"node_modules/@types\");\n getCompletionEntriesFromDirectories(typesDir);\n }\n return result;\n function getCompletionEntriesFromDirectories(directory) {\n if (!ts.tryDirectoryExists(host, directory))\n return;\n for (var _i = 0, _a = ts.tryGetDirectories(host, directory); _i < _a.length; _i++) {\n var typeDirectoryName = _a[_i];\n var packageName = ts.unmangleScopedPackageName(typeDirectoryName);\n if (options.types && !ts.contains(options.types, packageName))\n continue;\n if (fragmentDirectory === undefined) {\n if (!seen.has(packageName)) {\n result.push(nameAndKind(packageName, \"external module name\" /* externalModuleName */, /*extension*/ undefined));\n seen.set(packageName, true);\n }\n }\n else {\n var baseDirectory = ts.combinePaths(directory, typeDirectoryName);\n var remainingFragment = ts.tryRemoveDirectoryPrefix(fragmentDirectory, packageName, ts.hostGetCanonicalFileName(host));\n if (remainingFragment !== undefined) {\n getCompletionEntriesForDirectoryFragment(remainingFragment, baseDirectory, extensionOptions, host, /*exclude*/ undefined, result);\n }\n }\n }\n }\n }\n function enumerateNodeModulesVisibleToScript(host, scriptPath) {\n if (!host.readFile || !host.fileExists)\n return ts.emptyArray;\n var result = [];\n for (var _i = 0, _a = ts.findPackageJsons(scriptPath, host); _i < _a.length; _i++) {\n var packageJson = _a[_i];\n var contents = ts.readJson(packageJson, host); // Cast to assert that readFile is defined\n // Provide completions for all non @types dependencies\n for (var _b = 0, nodeModulesDependencyKeys_1 = nodeModulesDependencyKeys; _b < nodeModulesDependencyKeys_1.length; _b++) {\n var key = nodeModulesDependencyKeys_1[_b];\n var dependencies = contents[key];\n if (!dependencies)\n continue;\n for (var dep in dependencies) {\n if (dependencies.hasOwnProperty(dep) && !ts.startsWith(dep, \"@types/\")) {\n result.push(dep);\n }\n }\n }\n }\n return result;\n }\n // Replace everything after the last directory separator that appears\n function getDirectoryFragmentTextSpan(text, textStart) {\n var index = Math.max(text.lastIndexOf(ts.directorySeparator), text.lastIndexOf(ts.altDirectorySeparator));\n var offset = index !== -1 ? index + 1 : 0;\n // If the range is an identifier, span is unnecessary.\n var length = text.length - offset;\n return length === 0 || ts.isIdentifierText(text.substr(offset, length), 99 /* ESNext */) ? undefined : ts.createTextSpan(textStart + offset, length);\n }\n // Returns true if the path is explicitly relative to the script (i.e. relative to . or ..)\n function isPathRelativeToScript(path) {\n if (path && path.length >= 2 && path.charCodeAt(0) === 46 /* dot */) {\n var slashIndex = path.length >= 3 && path.charCodeAt(1) === 46 /* dot */ ? 2 : 1;\n var slashCharCode = path.charCodeAt(slashIndex);\n return slashCharCode === 47 /* slash */ || slashCharCode === 92 /* backslash */;\n }\n return false;\n }\n /**\n * Matches a triple slash reference directive with an incomplete string literal for its path. Used\n * to determine if the caret is currently within the string literal and capture the literal fragment\n * for completions.\n * For example, this matches\n *\n * /// \" with type any\n // And at `
` (with a closing `>`), the completion list will contain \"div\".\n // And at property access expressions ` ` the completion will\n // return full closing tag with an optional replacement span\n // For example:\n // var x = \n // var y = \n // the completion list at \"1\" and \"2\" will contain \"MainComponent.Child\" with a replacement span of closing tag name\n var hasClosingAngleBracket = !!ts.findChildOfKind(jsxClosingElement, 31 /* GreaterThanToken */, sourceFile);\n var tagName = jsxClosingElement.parent.openingElement.tagName;\n var closingTag = tagName.getText(sourceFile);\n var fullClosingTag = closingTag + (hasClosingAngleBracket ? \"\" : \">\");\n var replacementSpan = ts.createTextSpanFromNode(jsxClosingElement.tagName);\n var entry = {\n name: fullClosingTag,\n kind: \"class\" /* classElement */,\n kindModifiers: undefined,\n sortText: SortText.LocationPriority,\n };\n return { isGlobalCompletion: false, isMemberCompletion: true, isNewIdentifierLocation: false, optionalReplacementSpan: replacementSpan, entries: [entry] };\n }\n return;\n }\n function getJSCompletionEntries(sourceFile, position, uniqueNames, target, entries) {\n ts.getNameTable(sourceFile).forEach(function (pos, name) {\n // Skip identifiers produced only from the current location\n if (pos === position) {\n return;\n }\n var realName = ts.unescapeLeadingUnderscores(name);\n if (!uniqueNames.has(realName) && ts.isIdentifierText(realName, target)) {\n uniqueNames.add(realName);\n entries.push({\n name: realName,\n kind: \"warning\" /* warning */,\n kindModifiers: \"\",\n sortText: SortText.JavascriptIdentifiers,\n isFromUncheckedFile: true\n });\n }\n });\n }\n function completionNameForLiteral(sourceFile, preferences, literal) {\n return typeof literal === \"object\" ? ts.pseudoBigIntToString(literal) + \"n\" :\n ts.isString(literal) ? ts.quote(sourceFile, preferences, literal) : JSON.stringify(literal);\n }\n function createCompletionEntryForLiteral(sourceFile, preferences, literal) {\n return { name: completionNameForLiteral(sourceFile, preferences, literal), kind: \"string\" /* string */, kindModifiers: \"\" /* none */, sortText: SortText.LocationPriority };\n }\n function createCompletionEntry(symbol, sortText, contextToken, location, sourceFile, typeChecker, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importCompletionNode, useSemicolons, options, preferences) {\n var _a;\n var insertText;\n var replacementSpan = ts.getReplacementSpanForContextToken(contextToken);\n var data;\n var isSnippet;\n var sourceDisplay;\n var hasAction;\n var insertQuestionDot = origin && originIsNullableMember(origin);\n var useBraces = origin && originIsSymbolMember(origin) || needsConvertPropertyAccess;\n if (origin && originIsThisType(origin)) {\n insertText = needsConvertPropertyAccess\n ? \"this\" + (insertQuestionDot ? \"?.\" : \"\") + \"[\" + quotePropertyName(sourceFile, preferences, name) + \"]\"\n : \"this\" + (insertQuestionDot ? \"?.\" : \".\") + name;\n }\n // We should only have needsConvertPropertyAccess if there's a property access to convert. But see #21790.\n // Somehow there was a global with a non-identifier name. Hopefully someone will complain about getting a \"foo bar\" global completion and provide a repro.\n else if ((useBraces || insertQuestionDot) && propertyAccessToConvert) {\n insertText = useBraces ? needsConvertPropertyAccess ? \"[\" + quotePropertyName(sourceFile, preferences, name) + \"]\" : \"[\" + name + \"]\" : name;\n if (insertQuestionDot || propertyAccessToConvert.questionDotToken) {\n insertText = \"?.\" + insertText;\n }\n var dot = ts.findChildOfKind(propertyAccessToConvert, 24 /* DotToken */, sourceFile) ||\n ts.findChildOfKind(propertyAccessToConvert, 28 /* QuestionDotToken */, sourceFile);\n if (!dot) {\n return undefined;\n }\n // If the text after the '.' starts with this name, write over it. Else, add new text.\n var end = ts.startsWith(name, propertyAccessToConvert.name.text) ? propertyAccessToConvert.name.end : dot.end;\n replacementSpan = ts.createTextSpanFromBounds(dot.getStart(sourceFile), end);\n }\n if (isJsxInitializer) {\n if (insertText === undefined)\n insertText = name;\n insertText = \"{\" + insertText + \"}\";\n if (typeof isJsxInitializer !== \"boolean\") {\n replacementSpan = ts.createTextSpanFromNode(isJsxInitializer, sourceFile);\n }\n }\n if (origin && originIsPromise(origin) && propertyAccessToConvert) {\n if (insertText === undefined)\n insertText = name;\n var precedingToken = ts.findPrecedingToken(propertyAccessToConvert.pos, sourceFile);\n var awaitText = \"\";\n if (precedingToken && ts.positionIsASICandidate(precedingToken.end, precedingToken.parent, sourceFile)) {\n awaitText = \";\";\n }\n awaitText += \"(await \" + propertyAccessToConvert.expression.getText() + \")\";\n insertText = needsConvertPropertyAccess ? \"\" + awaitText + insertText : \"\" + awaitText + (insertQuestionDot ? \"?.\" : \".\") + insertText;\n replacementSpan = ts.createTextSpanFromBounds(propertyAccessToConvert.getStart(sourceFile), propertyAccessToConvert.end);\n }\n if (originIsResolvedExport(origin)) {\n sourceDisplay = [ts.textPart(origin.moduleSpecifier)];\n if (importCompletionNode) {\n (_a = getInsertTextAndReplacementSpanForImportCompletion(name, importCompletionNode, origin, useSemicolons, options, preferences), insertText = _a.insertText, replacementSpan = _a.replacementSpan);\n isSnippet = preferences.includeCompletionsWithSnippetText ? true : undefined;\n }\n }\n if (insertText !== undefined && !preferences.includeCompletionsWithInsertText) {\n return undefined;\n }\n if (originIsExport(origin) || originIsResolvedExport(origin)) {\n data = originToCompletionEntryData(origin);\n hasAction = !importCompletionNode;\n }\n // TODO(drosen): Right now we just permit *all* semantic meanings when calling\n // 'getSymbolKind' which is permissible given that it is backwards compatible; but\n // really we should consider passing the meaning for the node so that we don't report\n // that a suggestion for a value is an interface. We COULD also just do what\n // 'getSymbolModifiers' does, which is to use the first declaration.\n // Use a 'sortText' of 0' so that all symbol completion entries come before any other\n // entries (like JavaScript identifier entries).\n return {\n name: name,\n kind: ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, location),\n kindModifiers: ts.SymbolDisplay.getSymbolModifiers(typeChecker, symbol),\n sortText: sortText,\n source: getSourceFromOrigin(origin),\n hasAction: hasAction ? true : undefined,\n isRecommended: isRecommendedCompletionMatch(symbol, recommendedCompletion, typeChecker) || undefined,\n insertText: insertText,\n replacementSpan: replacementSpan,\n sourceDisplay: sourceDisplay,\n isSnippet: isSnippet,\n isPackageJsonImport: originIsPackageJsonImport(origin) || undefined,\n isImportStatementCompletion: !!importCompletionNode || undefined,\n data: data,\n };\n }\n function originToCompletionEntryData(origin) {\n return {\n exportName: origin.exportName,\n fileName: origin.fileName,\n ambientModuleName: origin.fileName ? undefined : ts.stripQuotes(origin.moduleSymbol.name),\n isPackageJsonImport: origin.isFromPackageJson ? true : undefined,\n moduleSpecifier: originIsResolvedExport(origin) ? origin.moduleSpecifier : undefined,\n };\n }\n function getInsertTextAndReplacementSpanForImportCompletion(name, importCompletionNode, origin, useSemicolons, options, preferences) {\n var sourceFile = importCompletionNode.getSourceFile();\n var replacementSpan = ts.createTextSpanFromNode(importCompletionNode, sourceFile);\n var quotedModuleSpecifier = ts.quote(sourceFile, preferences, origin.moduleSpecifier);\n var exportKind = origin.isDefaultExport ? 1 /* Default */ :\n origin.exportName === \"export=\" /* ExportEquals */ ? 2 /* ExportEquals */ :\n 0 /* Named */;\n var tabStop = preferences.includeCompletionsWithSnippetText ? \"$1\" : \"\";\n var importKind = ts.codefix.getImportKind(sourceFile, exportKind, options, /*forceImportKeyword*/ true);\n var suffix = useSemicolons ? \";\" : \"\";\n switch (importKind) {\n case 3 /* CommonJS */: return { replacementSpan: replacementSpan, insertText: \"import \" + name + tabStop + \" = require(\" + quotedModuleSpecifier + \")\" + suffix };\n case 1 /* Default */: return { replacementSpan: replacementSpan, insertText: \"import \" + name + tabStop + \" from \" + quotedModuleSpecifier + suffix };\n case 2 /* Namespace */: return { replacementSpan: replacementSpan, insertText: \"import * as \" + name + \" from \" + quotedModuleSpecifier + suffix };\n case 0 /* Named */: return { replacementSpan: replacementSpan, insertText: \"import { \" + name + tabStop + \" } from \" + quotedModuleSpecifier + suffix };\n }\n }\n function quotePropertyName(sourceFile, preferences, name) {\n if (/^\\d+$/.test(name)) {\n return name;\n }\n return ts.quote(sourceFile, preferences, name);\n }\n function isRecommendedCompletionMatch(localSymbol, recommendedCompletion, checker) {\n return localSymbol === recommendedCompletion ||\n !!(localSymbol.flags & 1048576 /* ExportValue */) && checker.getExportSymbolOfSymbol(localSymbol) === recommendedCompletion;\n }\n function getSourceFromOrigin(origin) {\n if (originIsExport(origin)) {\n return ts.stripQuotes(origin.moduleSymbol.name);\n }\n if (originIsResolvedExport(origin)) {\n return origin.moduleSpecifier;\n }\n if ((origin === null || origin === void 0 ? void 0 : origin.kind) === 1 /* ThisType */) {\n return CompletionSource.ThisProperty;\n }\n }\n function getCompletionEntriesFromSymbols(symbols, entries, contextToken, location, sourceFile, typeChecker, target, log, kind, preferences, compilerOptions, isTypeOnlyLocation, propertyAccessToConvert, jsxIdentifierExpected, isJsxInitializer, importCompletionNode, recommendedCompletion, symbolToOriginInfoMap, symbolToSortTextIdMap) {\n var _a;\n var start = ts.timestamp();\n var variableDeclaration = getVariableDeclaration(location);\n var useSemicolons = ts.probablyUsesSemicolons(sourceFile);\n // Tracks unique names.\n // Value is set to false for global variables or completions from external module exports, because we can have multiple of those;\n // true otherwise. Based on the order we add things we will always see locals first, then globals, then module exports.\n // So adding a completion for a local will prevent us from adding completions for external module exports sharing the same name.\n var uniques = new ts.Map();\n for (var i = 0; i < symbols.length; i++) {\n var symbol = symbols[i];\n var origin = symbolToOriginInfoMap === null || symbolToOriginInfoMap === void 0 ? void 0 : symbolToOriginInfoMap[i];\n var info = getCompletionEntryDisplayNameForSymbol(symbol, target, origin, kind, !!jsxIdentifierExpected);\n if (!info || uniques.get(info.name) || kind === 1 /* Global */ && symbolToSortTextIdMap && !shouldIncludeSymbol(symbol, symbolToSortTextIdMap)) {\n continue;\n }\n var name = info.name, needsConvertPropertyAccess = info.needsConvertPropertyAccess;\n var sortTextId = (_a = symbolToSortTextIdMap === null || symbolToSortTextIdMap === void 0 ? void 0 : symbolToSortTextIdMap[ts.getSymbolId(symbol)]) !== null && _a !== void 0 ? _a : 11 /* LocationPriority */;\n var sortText = (isDeprecated(symbol, typeChecker) ? 8 /* DeprecatedOffset */ + sortTextId : sortTextId).toString();\n var entry = createCompletionEntry(symbol, sortText, contextToken, location, sourceFile, typeChecker, name, needsConvertPropertyAccess, origin, recommendedCompletion, propertyAccessToConvert, isJsxInitializer, importCompletionNode, useSemicolons, compilerOptions, preferences);\n if (!entry) {\n continue;\n }\n /** True for locals; false for globals, module exports from other files, `this.` completions. */\n var shouldShadowLaterSymbols = !origin && !(symbol.parent === undefined && !ts.some(symbol.declarations, function (d) { return d.getSourceFile() === location.getSourceFile(); }));\n uniques.set(name, shouldShadowLaterSymbols);\n entries.push(entry);\n }\n log(\"getCompletionsAtPosition: getCompletionEntriesFromSymbols: \" + (ts.timestamp() - start));\n // Prevent consumers of this map from having to worry about\n // the boolean value. Externally, it should be seen as the\n // set of all names.\n return {\n has: function (name) { return uniques.has(name); },\n add: function (name) { return uniques.set(name, true); },\n };\n function shouldIncludeSymbol(symbol, symbolToSortTextIdMap) {\n if (!ts.isSourceFile(location)) {\n // export = /**/ here we want to get all meanings, so any symbol is ok\n if (ts.isExportAssignment(location.parent)) {\n return true;\n }\n // Filter out variables from their own initializers\n // `const a = /* no 'a' here */`\n if (variableDeclaration && symbol.valueDeclaration === variableDeclaration) {\n return false;\n }\n // External modules can have global export declarations that will be\n // available as global keywords in all scopes. But if the external module\n // already has an explicit export and user only wants to user explicit\n // module imports then the global keywords will be filtered out so auto\n // import suggestions will win in the completion\n var symbolOrigin = ts.skipAlias(symbol, typeChecker);\n // We only want to filter out the global keywords\n // Auto Imports are not available for scripts so this conditional is always false\n if (!!sourceFile.externalModuleIndicator\n && !compilerOptions.allowUmdGlobalAccess\n && symbolToSortTextIdMap[ts.getSymbolId(symbol)] === 15 /* GlobalsOrKeywords */\n && (symbolToSortTextIdMap[ts.getSymbolId(symbolOrigin)] === 16 /* AutoImportSuggestions */\n || symbolToSortTextIdMap[ts.getSymbolId(symbolOrigin)] === 11 /* LocationPriority */)) {\n return false;\n }\n // Continue with origin symbol\n symbol = symbolOrigin;\n // import m = /**/ <-- It can only access namespace (if typing import = x. this would get member symbols and not namespace)\n if (ts.isInRightSideOfInternalImportEqualsDeclaration(location)) {\n return !!(symbol.flags & 1920 /* Namespace */);\n }\n if (isTypeOnlyLocation) {\n // It's a type, but you can reach it by namespace.type as well\n return symbolCanBeReferencedAtTypeLocation(symbol, typeChecker);\n }\n }\n // expressions are value space (which includes the value namespaces)\n return !!(ts.getCombinedLocalAndExportSymbolFlags(symbol) & 111551 /* Value */);\n }\n }\n Completions.getCompletionEntriesFromSymbols = getCompletionEntriesFromSymbols;\n function getLabelCompletionAtPosition(node) {\n var entries = getLabelStatementCompletions(node);\n if (entries.length) {\n return { isGlobalCompletion: false, isMemberCompletion: false, isNewIdentifierLocation: false, entries: entries };\n }\n }\n function getLabelStatementCompletions(node) {\n var entries = [];\n var uniques = new ts.Map();\n var current = node;\n while (current) {\n if (ts.isFunctionLike(current)) {\n break;\n }\n if (ts.isLabeledStatement(current)) {\n var name = current.label.text;\n if (!uniques.has(name)) {\n uniques.set(name, true);\n entries.push({\n name: name,\n kindModifiers: \"\" /* none */,\n kind: \"label\" /* label */,\n sortText: SortText.LocationPriority\n });\n }\n }\n current = current.parent;\n }\n return entries;\n }\n function getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences) {\n if (entryId.data) {\n var autoImport = getAutoImportSymbolFromCompletionEntryData(entryId.name, entryId.data, program, host);\n if (autoImport) {\n return {\n type: \"symbol\",\n symbol: autoImport.symbol,\n location: ts.getTouchingPropertyName(sourceFile, position),\n previousToken: ts.findPrecedingToken(position, sourceFile, /*startNode*/ undefined),\n isJsxInitializer: false,\n isTypeOnlyLocation: false,\n origin: autoImport.origin,\n };\n }\n }\n var compilerOptions = program.getCompilerOptions();\n var completionData = getCompletionData(program, log, sourceFile, isUncheckedFile(sourceFile, compilerOptions), position, { includeCompletionsForModuleExports: true, includeCompletionsWithInsertText: true }, entryId, host);\n if (!completionData) {\n return { type: \"none\" };\n }\n if (completionData.kind !== 0 /* Data */) {\n return { type: \"request\", request: completionData };\n }\n var symbols = completionData.symbols, literals = completionData.literals, location = completionData.location, completionKind = completionData.completionKind, symbolToOriginInfoMap = completionData.symbolToOriginInfoMap, previousToken = completionData.previousToken, isJsxInitializer = completionData.isJsxInitializer, isTypeOnlyLocation = completionData.isTypeOnlyLocation;\n var literal = ts.find(literals, function (l) { return completionNameForLiteral(sourceFile, preferences, l) === entryId.name; });\n if (literal !== undefined)\n return { type: \"literal\", literal: literal };\n // Find the symbol with the matching entry name.\n // We don't need to perform character checks here because we're only comparing the\n // name against 'entryName' (which is known to be good), not building a new\n // completion entry.\n return ts.firstDefined(symbols, function (symbol, index) {\n var origin = symbolToOriginInfoMap[index];\n var info = getCompletionEntryDisplayNameForSymbol(symbol, compilerOptions.target, origin, completionKind, completionData.isJsxIdentifierExpected);\n return info && info.name === entryId.name && getSourceFromOrigin(origin) === entryId.source\n ? { type: \"symbol\", symbol: symbol, location: location, origin: origin, previousToken: previousToken, isJsxInitializer: isJsxInitializer, isTypeOnlyLocation: isTypeOnlyLocation }\n : undefined;\n }) || { type: \"none\" };\n }\n function getCompletionEntryDetails(program, log, sourceFile, position, entryId, host, formatContext, preferences, cancellationToken) {\n var typeChecker = program.getTypeChecker();\n var compilerOptions = program.getCompilerOptions();\n var name = entryId.name;\n var contextToken = ts.findPrecedingToken(position, sourceFile);\n if (ts.isInString(sourceFile, position, contextToken)) {\n return Completions.StringCompletions.getStringLiteralCompletionDetails(name, sourceFile, position, contextToken, typeChecker, compilerOptions, host, cancellationToken, preferences);\n }\n // Compute all the completion symbols again.\n var symbolCompletion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);\n switch (symbolCompletion.type) {\n case \"request\": {\n var request = symbolCompletion.request;\n switch (request.kind) {\n case 1 /* JsDocTagName */:\n return ts.JsDoc.getJSDocTagNameCompletionDetails(name);\n case 2 /* JsDocTag */:\n return ts.JsDoc.getJSDocTagCompletionDetails(name);\n case 3 /* JsDocParameterName */:\n return ts.JsDoc.getJSDocParameterNameCompletionDetails(name);\n case 4 /* Keywords */:\n return request.keywords.indexOf(ts.stringToToken(name)) > -1 ? createSimpleDetails(name, \"keyword\" /* keyword */, ts.SymbolDisplayPartKind.keyword) : undefined;\n default:\n return ts.Debug.assertNever(request);\n }\n }\n case \"symbol\": {\n var symbol = symbolCompletion.symbol, location = symbolCompletion.location, origin = symbolCompletion.origin, previousToken = symbolCompletion.previousToken;\n var _a = getCompletionEntryCodeActionsAndSourceDisplay(origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, entryId.data), codeActions = _a.codeActions, sourceDisplay = _a.sourceDisplay;\n return createCompletionDetailsForSymbol(symbol, typeChecker, sourceFile, location, cancellationToken, codeActions, sourceDisplay); // TODO: GH#18217\n }\n case \"literal\": {\n var literal = symbolCompletion.literal;\n return createSimpleDetails(completionNameForLiteral(sourceFile, preferences, literal), \"string\" /* string */, typeof literal === \"string\" ? ts.SymbolDisplayPartKind.stringLiteral : ts.SymbolDisplayPartKind.numericLiteral);\n }\n case \"none\":\n // Didn't find a symbol with this name. See if we can find a keyword instead.\n return allKeywordsCompletions().some(function (c) { return c.name === name; }) ? createSimpleDetails(name, \"keyword\" /* keyword */, ts.SymbolDisplayPartKind.keyword) : undefined;\n default:\n ts.Debug.assertNever(symbolCompletion);\n }\n }\n Completions.getCompletionEntryDetails = getCompletionEntryDetails;\n function createSimpleDetails(name, kind, kind2) {\n return createCompletionDetails(name, \"\" /* none */, kind, [ts.displayPart(name, kind2)]);\n }\n function createCompletionDetailsForSymbol(symbol, checker, sourceFile, location, cancellationToken, codeActions, sourceDisplay) {\n var _a = checker.runWithCancellationToken(cancellationToken, function (checker) {\n return ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, sourceFile, location, location, 7 /* All */);\n }), displayParts = _a.displayParts, documentation = _a.documentation, symbolKind = _a.symbolKind, tags = _a.tags;\n return createCompletionDetails(symbol.name, ts.SymbolDisplay.getSymbolModifiers(checker, symbol), symbolKind, displayParts, documentation, tags, codeActions, sourceDisplay);\n }\n Completions.createCompletionDetailsForSymbol = createCompletionDetailsForSymbol;\n function createCompletionDetails(name, kindModifiers, kind, displayParts, documentation, tags, codeActions, source) {\n return { name: name, kindModifiers: kindModifiers, kind: kind, displayParts: displayParts, documentation: documentation, tags: tags, codeActions: codeActions, source: source, sourceDisplay: source };\n }\n Completions.createCompletionDetails = createCompletionDetails;\n function getCompletionEntryCodeActionsAndSourceDisplay(origin, symbol, program, host, compilerOptions, sourceFile, position, previousToken, formatContext, preferences, data) {\n if (data === null || data === void 0 ? void 0 : data.moduleSpecifier) {\n var _a = getRelevantTokens(position, sourceFile), contextToken = _a.contextToken, previousToken_1 = _a.previousToken;\n if (previousToken_1 && getImportCompletionNode(contextToken || previousToken_1)) {\n // Import statement completion: 'import c|'\n return { codeActions: undefined, sourceDisplay: [ts.textPart(data.moduleSpecifier)] };\n }\n }\n if (!origin || !(originIsExport(origin) || originIsResolvedExport(origin))) {\n return { codeActions: undefined, sourceDisplay: undefined };\n }\n var checker = origin.isFromPackageJson ? host.getPackageJsonAutoImportProvider().getTypeChecker() : program.getTypeChecker();\n var moduleSymbol = origin.moduleSymbol;\n var exportedSymbol = checker.getMergedSymbol(ts.skipAlias(symbol.exportSymbol || symbol, checker));\n var _b = ts.codefix.getImportCompletionAction(exportedSymbol, moduleSymbol, sourceFile, ts.getNameForExportedSymbol(symbol, compilerOptions.target), host, program, formatContext, previousToken && ts.isIdentifier(previousToken) ? previousToken.getStart(sourceFile) : position, preferences), moduleSpecifier = _b.moduleSpecifier, codeAction = _b.codeAction;\n ts.Debug.assert(!(data === null || data === void 0 ? void 0 : data.moduleSpecifier) || moduleSpecifier === data.moduleSpecifier);\n return { sourceDisplay: [ts.textPart(moduleSpecifier)], codeActions: [codeAction] };\n }\n function getCompletionEntrySymbol(program, log, sourceFile, position, entryId, host, preferences) {\n var completion = getSymbolCompletionFromEntryId(program, log, sourceFile, position, entryId, host, preferences);\n return completion.type === \"symbol\" ? completion.symbol : undefined;\n }\n Completions.getCompletionEntrySymbol = getCompletionEntrySymbol;\n var CompletionDataKind;\n (function (CompletionDataKind) {\n CompletionDataKind[CompletionDataKind[\"Data\"] = 0] = \"Data\";\n CompletionDataKind[CompletionDataKind[\"JsDocTagName\"] = 1] = \"JsDocTagName\";\n CompletionDataKind[CompletionDataKind[\"JsDocTag\"] = 2] = \"JsDocTag\";\n CompletionDataKind[CompletionDataKind[\"JsDocParameterName\"] = 3] = \"JsDocParameterName\";\n CompletionDataKind[CompletionDataKind[\"Keywords\"] = 4] = \"Keywords\";\n })(CompletionDataKind || (CompletionDataKind = {}));\n var CompletionKind;\n (function (CompletionKind) {\n CompletionKind[CompletionKind[\"ObjectPropertyDeclaration\"] = 0] = \"ObjectPropertyDeclaration\";\n CompletionKind[CompletionKind[\"Global\"] = 1] = \"Global\";\n CompletionKind[CompletionKind[\"PropertyAccess\"] = 2] = \"PropertyAccess\";\n CompletionKind[CompletionKind[\"MemberLike\"] = 3] = \"MemberLike\";\n CompletionKind[CompletionKind[\"String\"] = 4] = \"String\";\n CompletionKind[CompletionKind[\"None\"] = 5] = \"None\";\n })(CompletionKind = Completions.CompletionKind || (Completions.CompletionKind = {}));\n function getRecommendedCompletion(previousToken, contextualType, checker) {\n // For a union, return the first one with a recommended completion.\n return ts.firstDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [contextualType]), function (type) {\n var symbol = type && type.symbol;\n // Don't include make a recommended completion for an abstract class\n return symbol && (symbol.flags & (8 /* EnumMember */ | 384 /* Enum */ | 32 /* Class */) && !ts.isAbstractConstructorSymbol(symbol))\n ? getFirstSymbolInChain(symbol, previousToken, checker)\n : undefined;\n });\n }\n function getContextualType(previousToken, position, sourceFile, checker) {\n var parent = previousToken.parent;\n switch (previousToken.kind) {\n case 79 /* Identifier */:\n return ts.getContextualTypeFromParent(previousToken, checker);\n case 63 /* EqualsToken */:\n switch (parent.kind) {\n case 252 /* VariableDeclaration */:\n return checker.getContextualType(parent.initializer); // TODO: GH#18217\n case 219 /* BinaryExpression */:\n return checker.getTypeAtLocation(parent.left);\n case 283 /* JsxAttribute */:\n return checker.getContextualTypeForJsxAttribute(parent);\n default:\n return undefined;\n }\n case 103 /* NewKeyword */:\n return checker.getContextualType(parent);\n case 82 /* CaseKeyword */:\n return ts.getSwitchedType(ts.cast(parent, ts.isCaseClause), checker);\n case 18 /* OpenBraceToken */:\n return ts.isJsxExpression(parent) && parent.parent.kind !== 276 /* JsxElement */ ? checker.getContextualTypeForJsxAttribute(parent.parent) : undefined;\n default:\n var argInfo = ts.SignatureHelp.getArgumentInfoForCompletions(previousToken, position, sourceFile);\n return argInfo ?\n // At `,`, treat this as the next argument after the comma.\n checker.getContextualTypeForArgumentAtIndex(argInfo.invocation, argInfo.argumentIndex + (previousToken.kind === 27 /* CommaToken */ ? 1 : 0)) :\n ts.isEqualityOperatorKind(previousToken.kind) && ts.isBinaryExpression(parent) && ts.isEqualityOperatorKind(parent.operatorToken.kind) ?\n // completion at `x ===/**/` should be for the right side\n checker.getTypeAtLocation(parent.left) :\n checker.getContextualType(previousToken);\n }\n }\n function getFirstSymbolInChain(symbol, enclosingDeclaration, checker) {\n var chain = checker.getAccessibleSymbolChain(symbol, enclosingDeclaration, /*meaning*/ 67108863 /* All */, /*useOnlyExternalAliasing*/ false);\n if (chain)\n return ts.first(chain);\n return symbol.parent && (isModuleSymbol(symbol.parent) ? symbol : getFirstSymbolInChain(symbol.parent, enclosingDeclaration, checker));\n }\n function isModuleSymbol(symbol) {\n var _a;\n return !!((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.some(function (d) { return d.kind === 300 /* SourceFile */; }));\n }\n function getCompletionData(program, log, sourceFile, isUncheckedFile, position, preferences, detailsEntryId, host, cancellationToken) {\n var typeChecker = program.getTypeChecker();\n var start = ts.timestamp();\n var currentToken = ts.getTokenAtPosition(sourceFile, position); // TODO: GH#15853\n // We will check for jsdoc comments with insideComment and getJsDocTagAtPosition. (TODO: that seems rather inefficient to check the same thing so many times.)\n log(\"getCompletionData: Get current token: \" + (ts.timestamp() - start));\n start = ts.timestamp();\n var insideComment = ts.isInComment(sourceFile, position, currentToken);\n log(\"getCompletionData: Is inside comment: \" + (ts.timestamp() - start));\n var insideJsDocTagTypeExpression = false;\n var isInSnippetScope = false;\n if (insideComment) {\n if (ts.hasDocComment(sourceFile, position)) {\n if (sourceFile.text.charCodeAt(position - 1) === 64 /* at */) {\n // The current position is next to the '@' sign, when no tag name being provided yet.\n // Provide a full list of tag names\n return { kind: 1 /* JsDocTagName */ };\n }\n else {\n // When completion is requested without \"@\", we will have check to make sure that\n // there are no comments prefix the request position. We will only allow \"*\" and space.\n // e.g\n // /** |c| /*\n //\n // /**\n // |c|\n // */\n //\n // /**\n // * |c|\n // */\n //\n // /**\n // * |c|\n // */\n var lineStart = ts.getLineStartPositionForPosition(position, sourceFile);\n if (!/[^\\*|\\s(/)]/.test(sourceFile.text.substring(lineStart, position))) {\n return { kind: 2 /* JsDocTag */ };\n }\n }\n }\n // Completion should work inside certain JsDoc tags. For example:\n // /** @type {number | string} */\n // Completion should work in the brackets\n var tag = getJsDocTagAtPosition(currentToken, position);\n if (tag) {\n if (tag.tagName.pos <= position && position <= tag.tagName.end) {\n return { kind: 1 /* JsDocTagName */ };\n }\n if (isTagWithTypeExpression(tag) && tag.typeExpression && tag.typeExpression.kind === 304 /* JSDocTypeExpression */) {\n currentToken = ts.getTokenAtPosition(sourceFile, position);\n if (!currentToken ||\n (!ts.isDeclarationName(currentToken) &&\n (currentToken.parent.kind !== 342 /* JSDocPropertyTag */ ||\n currentToken.parent.name !== currentToken))) {\n // Use as type location if inside tag's type expression\n insideJsDocTagTypeExpression = isCurrentlyEditingNode(tag.typeExpression);\n }\n }\n if (!insideJsDocTagTypeExpression && ts.isJSDocParameterTag(tag) && (ts.nodeIsMissing(tag.name) || tag.name.pos <= position && position <= tag.name.end)) {\n return { kind: 3 /* JsDocParameterName */, tag: tag };\n }\n }\n if (!insideJsDocTagTypeExpression) {\n // Proceed if the current position is in jsDoc tag expression; otherwise it is a normal\n // comment or the plain text part of a jsDoc comment, so no completion should be available\n log(\"Returning an empty list because completion was inside a regular comment or plain text part of a JsDoc comment.\");\n return undefined;\n }\n }\n start = ts.timestamp();\n // The decision to provide completion depends on the contextToken, which is determined through the previousToken.\n // Note: 'previousToken' (and thus 'contextToken') can be undefined if we are the beginning of the file\n var tokens = getRelevantTokens(position, sourceFile);\n var previousToken = tokens.previousToken;\n var contextToken = tokens.contextToken;\n log(\"getCompletionData: Get previous token: \" + (ts.timestamp() - start));\n // Find the node where completion is requested on.\n // Also determine whether we are trying to complete with members of that node\n // or attributes of a JSX tag.\n var node = currentToken;\n var propertyAccessToConvert;\n var isRightOfDot = false;\n var isRightOfQuestionDot = false;\n var isRightOfOpenTag = false;\n var isStartingCloseTag = false;\n var isJsxInitializer = false;\n var isJsxIdentifierExpected = false;\n var importCompletionNode;\n var location = ts.getTouchingPropertyName(sourceFile, position);\n if (contextToken) {\n var importCompletionCandidate = getImportCompletionNode(contextToken);\n if (importCompletionCandidate === 154 /* FromKeyword */) {\n return { kind: 4 /* Keywords */, keywords: [154 /* FromKeyword */] };\n }\n // Import statement completions use `insertText`, and also require the `data` property of `CompletionEntryIdentifier`\n // added in TypeScript 4.3 to be sent back from the client during `getCompletionEntryDetails`. Since this feature\n // is not backward compatible with older clients, the language service defaults to disabling it, allowing newer clients\n // to opt in with the `includeCompletionsForImportStatements` user preference.\n if (importCompletionCandidate && preferences.includeCompletionsForImportStatements && preferences.includeCompletionsWithInsertText) {\n importCompletionNode = importCompletionCandidate;\n }\n // Bail out if this is a known invalid completion location\n if (!importCompletionNode && isCompletionListBlocker(contextToken)) {\n log(\"Returning an empty list because completion was requested in an invalid position.\");\n return undefined;\n }\n var parent = contextToken.parent;\n if (contextToken.kind === 24 /* DotToken */ || contextToken.kind === 28 /* QuestionDotToken */) {\n isRightOfDot = contextToken.kind === 24 /* DotToken */;\n isRightOfQuestionDot = contextToken.kind === 28 /* QuestionDotToken */;\n switch (parent.kind) {\n case 204 /* PropertyAccessExpression */:\n propertyAccessToConvert = parent;\n node = propertyAccessToConvert.expression;\n var leftmostAccessExpression = ts.getLeftmostAccessExpression(propertyAccessToConvert);\n if (ts.nodeIsMissing(leftmostAccessExpression) ||\n ((ts.isCallExpression(node) || ts.isFunctionLike(node)) &&\n node.end === contextToken.pos &&\n node.getChildCount(sourceFile) &&\n ts.last(node.getChildren(sourceFile)).kind !== 21 /* CloseParenToken */)) {\n // This is likely dot from incorrectly parsed expression and user is starting to write spread\n // eg: Math.min(./**/)\n // const x = function (./**/) {}\n // ({./**/})\n return undefined;\n }\n break;\n case 159 /* QualifiedName */:\n node = parent.left;\n break;\n case 259 /* ModuleDeclaration */:\n node = parent.name;\n break;\n case 198 /* ImportType */:\n node = parent;\n break;\n case 229 /* MetaProperty */:\n node = parent.getFirstToken(sourceFile);\n ts.Debug.assert(node.kind === 100 /* ImportKeyword */ || node.kind === 103 /* NewKeyword */);\n break;\n default:\n // There is nothing that precedes the dot, so this likely just a stray character\n // or leading into a '...' token. Just bail out instead.\n return undefined;\n }\n }\n else if (!importCompletionNode && sourceFile.languageVariant === 1 /* JSX */) {\n // \n // If the tagname is a property access expression, we will then walk up to the top most of property access expression.\n // Then, try to get a JSX container and its associated attributes type.\n if (parent && parent.kind === 204 /* PropertyAccessExpression */) {\n contextToken = parent;\n parent = parent.parent;\n }\n // Fix location\n if (currentToken.parent === location) {\n switch (currentToken.kind) {\n case 31 /* GreaterThanToken */:\n if (currentToken.parent.kind === 276 /* JsxElement */ || currentToken.parent.kind === 278 /* JsxOpeningElement */) {\n location = currentToken;\n }\n break;\n case 43 /* SlashToken */:\n if (currentToken.parent.kind === 277 /* JsxSelfClosingElement */) {\n location = currentToken;\n }\n break;\n }\n }\n switch (parent.kind) {\n case 279 /* JsxClosingElement */:\n if (contextToken.kind === 43 /* SlashToken */) {\n isStartingCloseTag = true;\n location = contextToken;\n }\n break;\n case 219 /* BinaryExpression */:\n if (!binaryExpressionMayBeOpenTag(parent)) {\n break;\n }\n // falls through\n case 277 /* JsxSelfClosingElement */:\n case 276 /* JsxElement */:\n case 278 /* JsxOpeningElement */:\n isJsxIdentifierExpected = true;\n if (contextToken.kind === 29 /* LessThanToken */) {\n isRightOfOpenTag = true;\n location = contextToken;\n }\n break;\n case 286 /* JsxExpression */:\n case 285 /* JsxSpreadAttribute */:\n // For `
`, `parent` will be `{true}` and `previousToken` will be `}`\n if (previousToken.kind === 19 /* CloseBraceToken */ && currentToken.kind === 31 /* GreaterThanToken */) {\n isJsxIdentifierExpected = true;\n }\n break;\n case 283 /* JsxAttribute */:\n // For `
`, `parent` will be JsxAttribute and `previousToken` will be its initializer\n if (parent.initializer === previousToken &&\n previousToken.end < position) {\n isJsxIdentifierExpected = true;\n break;\n }\n switch (previousToken.kind) {\n case 63 /* EqualsToken */:\n isJsxInitializer = true;\n break;\n case 79 /* Identifier */:\n isJsxIdentifierExpected = true;\n // For `
` we don't want to treat this as a jsx inializer, instead it's the attribute name.\n if (parent !== previousToken.parent &&\n !parent.initializer &&\n ts.findChildOfKind(parent, 63 /* EqualsToken */, sourceFile)) {\n isJsxInitializer = previousToken;\n }\n }\n break;\n }\n }\n }\n var semanticStart = ts.timestamp();\n var completionKind = 5 /* None */;\n var isNewIdentifierLocation = false;\n var isNonContextualObjectLiteral = false;\n var hasUnresolvedAutoImports = false;\n var keywordFilters = 0 /* None */;\n // This also gets mutated in nested-functions after the return\n var symbols = [];\n var symbolToOriginInfoMap = [];\n var symbolToSortTextIdMap = [];\n var seenPropertySymbols = new ts.Map();\n var isTypeOnlyLocation = isTypeOnlyCompletion();\n var getModuleSpecifierResolutionHost = ts.memoizeOne(function (isFromPackageJson) {\n return ts.createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);\n });\n if (isRightOfDot || isRightOfQuestionDot) {\n getTypeScriptMemberSymbols();\n }\n else if (isRightOfOpenTag) {\n symbols = typeChecker.getJsxIntrinsicTagNamesAt(location);\n ts.Debug.assertEachIsDefined(symbols, \"getJsxIntrinsicTagNames() should all be defined\");\n tryGetGlobalSymbols();\n completionKind = 1 /* Global */;\n keywordFilters = 0 /* None */;\n }\n else if (isStartingCloseTag) {\n var tagName = contextToken.parent.parent.openingElement.tagName;\n var tagSymbol = typeChecker.getSymbolAtLocation(tagName);\n if (tagSymbol) {\n symbols = [tagSymbol];\n }\n completionKind = 1 /* Global */;\n keywordFilters = 0 /* None */;\n }\n else {\n // For JavaScript or TypeScript, if we're not after a dot, then just try to get the\n // global symbols in scope. These results should be valid for either language as\n // the set of symbols that can be referenced from this location.\n if (!tryGetGlobalSymbols()) {\n return undefined;\n }\n }\n log(\"getCompletionData: Semantic work: \" + (ts.timestamp() - semanticStart));\n var contextualType = previousToken && getContextualType(previousToken, position, sourceFile, typeChecker);\n var literals = ts.mapDefined(contextualType && (contextualType.isUnion() ? contextualType.types : [contextualType]), function (t) { return t.isLiteral() ? t.value : undefined; });\n var recommendedCompletion = previousToken && contextualType && getRecommendedCompletion(previousToken, contextualType, typeChecker);\n return {\n kind: 0 /* Data */,\n symbols: symbols,\n completionKind: completionKind,\n isInSnippetScope: isInSnippetScope,\n propertyAccessToConvert: propertyAccessToConvert,\n isNewIdentifierLocation: isNewIdentifierLocation,\n location: location,\n keywordFilters: keywordFilters,\n literals: literals,\n symbolToOriginInfoMap: symbolToOriginInfoMap,\n recommendedCompletion: recommendedCompletion,\n previousToken: previousToken,\n isJsxInitializer: isJsxInitializer,\n insideJsDocTagTypeExpression: insideJsDocTagTypeExpression,\n symbolToSortTextIdMap: symbolToSortTextIdMap,\n isTypeOnlyLocation: isTypeOnlyLocation,\n isJsxIdentifierExpected: isJsxIdentifierExpected,\n importCompletionNode: importCompletionNode,\n hasUnresolvedAutoImports: hasUnresolvedAutoImports,\n };\n function isTagWithTypeExpression(tag) {\n switch (tag.kind) {\n case 335 /* JSDocParameterTag */:\n case 342 /* JSDocPropertyTag */:\n case 336 /* JSDocReturnTag */:\n case 338 /* JSDocTypeTag */:\n case 340 /* JSDocTypedefTag */:\n return true;\n default:\n return false;\n }\n }\n function getTypeScriptMemberSymbols() {\n // Right of dot member completion list\n completionKind = 2 /* PropertyAccess */;\n // Since this is qualified name check it's a type node location\n var isImportType = ts.isLiteralImportTypeNode(node);\n var isTypeLocation = insideJsDocTagTypeExpression\n || (isImportType && !node.isTypeOf)\n || ts.isPartOfTypeNode(node.parent)\n || ts.isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker);\n var isRhsOfImportDeclaration = ts.isInRightSideOfInternalImportEqualsDeclaration(node);\n if (ts.isEntityName(node) || isImportType || ts.isPropertyAccessExpression(node)) {\n var isNamespaceName = ts.isModuleDeclaration(node.parent);\n if (isNamespaceName)\n isNewIdentifierLocation = true;\n var symbol = typeChecker.getSymbolAtLocation(node);\n if (symbol) {\n symbol = ts.skipAlias(symbol, typeChecker);\n if (symbol.flags & (1536 /* Module */ | 384 /* Enum */)) {\n // Extract module or enum members\n var exportedSymbols = typeChecker.getExportsOfModule(symbol);\n ts.Debug.assertEachIsDefined(exportedSymbols, \"getExportsOfModule() should all be defined\");\n var isValidValueAccess_1 = function (symbol) { return typeChecker.isValidPropertyAccess(isImportType ? node : node.parent, symbol.name); };\n var isValidTypeAccess_1 = function (symbol) { return symbolCanBeReferencedAtTypeLocation(symbol, typeChecker); };\n var isValidAccess = isNamespaceName\n // At `namespace N.M/**/`, if this is the only declaration of `M`, don't include `M` as a completion.\n ? function (symbol) { var _a; return !!(symbol.flags & 1920 /* Namespace */) && !((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.every(function (d) { return d.parent === node.parent; })); }\n : isRhsOfImportDeclaration ?\n // Any kind is allowed when dotting off namespace in internal import equals declaration\n function (symbol) { return isValidTypeAccess_1(symbol) || isValidValueAccess_1(symbol); } :\n isTypeLocation ? isValidTypeAccess_1 : isValidValueAccess_1;\n for (var _i = 0, exportedSymbols_1 = exportedSymbols; _i < exportedSymbols_1.length; _i++) {\n var exportedSymbol = exportedSymbols_1[_i];\n if (isValidAccess(exportedSymbol)) {\n symbols.push(exportedSymbol);\n }\n }\n // If the module is merged with a value, we must get the type of the class and add its propertes (for inherited static methods).\n if (!isTypeLocation &&\n symbol.declarations &&\n symbol.declarations.some(function (d) { return d.kind !== 300 /* SourceFile */ && d.kind !== 259 /* ModuleDeclaration */ && d.kind !== 258 /* EnumDeclaration */; })) {\n var type = typeChecker.getTypeOfSymbolAtLocation(symbol, node).getNonOptionalType();\n var insertQuestionDot = false;\n if (type.isNullableType()) {\n var canCorrectToQuestionDot = isRightOfDot &&\n !isRightOfQuestionDot &&\n preferences.includeAutomaticOptionalChainCompletions !== false;\n if (canCorrectToQuestionDot || isRightOfQuestionDot) {\n type = type.getNonNullableType();\n if (canCorrectToQuestionDot) {\n insertQuestionDot = true;\n }\n }\n }\n addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot);\n }\n return;\n }\n }\n }\n if (!isTypeLocation) {\n // GH#39946. Pulling on the type of a node inside of a function with a contextual `this` parameter can result in a circularity\n // if the `node` is part of the exprssion of a `yield` or `return`. This circularity doesn't exist at compile time because\n // we will check (and cache) the type of `this` *before* checking the type of the node.\n var container = ts.getThisContainer(node, /*includeArrowFunctions*/ false);\n if (!ts.isSourceFile(container) && container.parent)\n typeChecker.getTypeAtLocation(container);\n var type = typeChecker.getTypeAtLocation(node).getNonOptionalType();\n var insertQuestionDot = false;\n if (type.isNullableType()) {\n var canCorrectToQuestionDot = isRightOfDot &&\n !isRightOfQuestionDot &&\n preferences.includeAutomaticOptionalChainCompletions !== false;\n if (canCorrectToQuestionDot || isRightOfQuestionDot) {\n type = type.getNonNullableType();\n if (canCorrectToQuestionDot) {\n insertQuestionDot = true;\n }\n }\n }\n addTypeProperties(type, !!(node.flags & 32768 /* AwaitContext */), insertQuestionDot);\n }\n }\n function addTypeProperties(type, insertAwait, insertQuestionDot) {\n isNewIdentifierLocation = !!type.getStringIndexType();\n if (isRightOfQuestionDot && ts.some(type.getCallSignatures())) {\n isNewIdentifierLocation = true;\n }\n var propertyAccess = node.kind === 198 /* ImportType */ ? node : node.parent;\n if (isUncheckedFile) {\n // In javascript files, for union types, we don't just get the members that\n // the individual types have in common, we also include all the members that\n // each individual type has. This is because we're going to add all identifiers\n // anyways. So we might as well elevate the members that were at least part\n // of the individual types to a higher status since we know what they are.\n symbols.push.apply(symbols, ts.filter(getPropertiesForCompletion(type, typeChecker), function (s) { return typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, s); }));\n }\n else {\n for (var _i = 0, _a = type.getApparentProperties(); _i < _a.length; _i++) {\n var symbol = _a[_i];\n if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, type, symbol)) {\n addPropertySymbol(symbol, /* insertAwait */ false, insertQuestionDot);\n }\n }\n }\n if (insertAwait && preferences.includeCompletionsWithInsertText) {\n var promiseType = typeChecker.getPromisedTypeOfPromise(type);\n if (promiseType) {\n for (var _b = 0, _c = promiseType.getApparentProperties(); _b < _c.length; _b++) {\n var symbol = _c[_b];\n if (typeChecker.isValidPropertyAccessForCompletions(propertyAccess, promiseType, symbol)) {\n addPropertySymbol(symbol, /* insertAwait */ true, insertQuestionDot);\n }\n }\n }\n }\n }\n function addPropertySymbol(symbol, insertAwait, insertQuestionDot) {\n // For a computed property with an accessible name like `Symbol.iterator`,\n // we'll add a completion for the *name* `Symbol` instead of for the property.\n // If this is e.g. [Symbol.iterator], add a completion for `Symbol`.\n var computedPropertyName = ts.firstDefined(symbol.declarations, function (decl) { return ts.tryCast(ts.getNameOfDeclaration(decl), ts.isComputedPropertyName); });\n if (computedPropertyName) {\n var leftMostName = getLeftMostName(computedPropertyName.expression); // The completion is for `Symbol`, not `iterator`.\n var nameSymbol = leftMostName && typeChecker.getSymbolAtLocation(leftMostName);\n // If this is nested like for `namespace N { export const sym = Symbol(); }`, we'll add the completion for `N`.\n var firstAccessibleSymbol = nameSymbol && getFirstSymbolInChain(nameSymbol, contextToken, typeChecker);\n if (firstAccessibleSymbol && ts.addToSeen(seenPropertySymbols, ts.getSymbolId(firstAccessibleSymbol))) {\n var index = symbols.length;\n symbols.push(firstAccessibleSymbol);\n var moduleSymbol = firstAccessibleSymbol.parent;\n if (!moduleSymbol || !ts.isExternalModuleSymbol(moduleSymbol)) {\n symbolToOriginInfoMap[index] = { kind: getNullableSymbolOriginInfoKind(2 /* SymbolMemberNoExport */) };\n }\n else {\n var origin = {\n kind: getNullableSymbolOriginInfoKind(6 /* SymbolMemberExport */),\n moduleSymbol: moduleSymbol,\n isDefaultExport: false,\n symbolName: firstAccessibleSymbol.name,\n exportName: firstAccessibleSymbol.name,\n fileName: ts.isExternalModuleNameRelative(ts.stripQuotes(moduleSymbol.name)) ? ts.cast(moduleSymbol.valueDeclaration, ts.isSourceFile).fileName : undefined,\n };\n symbolToOriginInfoMap[index] = origin;\n }\n }\n else if (preferences.includeCompletionsWithInsertText) {\n addSymbolOriginInfo(symbol);\n addSymbolSortInfo(symbol);\n symbols.push(symbol);\n }\n }\n else {\n addSymbolOriginInfo(symbol);\n addSymbolSortInfo(symbol);\n symbols.push(symbol);\n }\n function addSymbolSortInfo(symbol) {\n if (isStaticProperty(symbol)) {\n symbolToSortTextIdMap[ts.getSymbolId(symbol)] = 10 /* LocalDeclarationPriority */;\n }\n }\n function addSymbolOriginInfo(symbol) {\n if (preferences.includeCompletionsWithInsertText) {\n if (insertAwait && ts.addToSeen(seenPropertySymbols, ts.getSymbolId(symbol))) {\n symbolToOriginInfoMap[symbols.length] = { kind: getNullableSymbolOriginInfoKind(8 /* Promise */) };\n }\n else if (insertQuestionDot) {\n symbolToOriginInfoMap[symbols.length] = { kind: 16 /* Nullable */ };\n }\n }\n }\n function getNullableSymbolOriginInfoKind(kind) {\n return insertQuestionDot ? kind | 16 /* Nullable */ : kind;\n }\n }\n /** Given 'a.b.c', returns 'a'. */\n function getLeftMostName(e) {\n return ts.isIdentifier(e) ? e : ts.isPropertyAccessExpression(e) ? getLeftMostName(e.expression) : undefined;\n }\n function tryGetGlobalSymbols() {\n var result = tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols()\n || tryGetObjectLikeCompletionSymbols()\n || tryGetImportCompletionSymbols()\n || tryGetImportOrExportClauseCompletionSymbols()\n || tryGetLocalNamedExportCompletionSymbols()\n || tryGetConstructorCompletion()\n || tryGetClassLikeCompletionSymbols()\n || tryGetJsxCompletionSymbols()\n || (getGlobalCompletions(), 1 /* Success */);\n return result === 1 /* Success */;\n }\n function tryGetConstructorCompletion() {\n if (!tryGetConstructorLikeCompletionContainer(contextToken))\n return 0 /* Continue */;\n // no members, only keywords\n completionKind = 5 /* None */;\n // Declaring new property/method/accessor\n isNewIdentifierLocation = true;\n // Has keywords for constructor parameter\n keywordFilters = 4 /* ConstructorParameterKeywords */;\n return 1 /* Success */;\n }\n function tryGetJsxCompletionSymbols() {\n var jsxContainer = tryGetContainingJsxElement(contextToken);\n // Cursor is inside a JSX self-closing element or opening element\n var attrsType = jsxContainer && typeChecker.getContextualType(jsxContainer.attributes);\n if (!attrsType)\n return 0 /* Continue */;\n var completionsType = jsxContainer && typeChecker.getContextualType(jsxContainer.attributes, 4 /* Completions */);\n symbols = ts.concatenate(symbols, filterJsxAttributes(getPropertiesForObjectExpression(attrsType, completionsType, jsxContainer.attributes, typeChecker), jsxContainer.attributes.properties));\n setSortTextToOptionalMember();\n completionKind = 3 /* MemberLike */;\n isNewIdentifierLocation = false;\n return 1 /* Success */;\n }\n function tryGetImportCompletionSymbols() {\n if (!importCompletionNode)\n return 0 /* Continue */;\n isNewIdentifierLocation = true;\n collectAutoImports();\n return 1 /* Success */;\n }\n function getGlobalCompletions() {\n keywordFilters = tryGetFunctionLikeBodyCompletionContainer(contextToken) ? 5 /* FunctionLikeBodyKeywords */ : 1 /* All */;\n // Get all entities in the current scope.\n completionKind = 1 /* Global */;\n isNewIdentifierLocation = isNewIdentifierDefinitionLocation();\n if (previousToken !== contextToken) {\n ts.Debug.assert(!!previousToken, \"Expected 'contextToken' to be defined when different from 'previousToken'.\");\n }\n // We need to find the node that will give us an appropriate scope to begin\n // aggregating completion candidates. This is achieved in 'getScopeNode'\n // by finding the first node that encompasses a position, accounting for whether a node\n // is \"complete\" to decide whether a position belongs to the node.\n //\n // However, at the end of an identifier, we are interested in the scope of the identifier\n // itself, but fall outside of the identifier. For instance:\n //\n // xyz => x$\n //\n // the cursor is outside of both the 'x' and the arrow function 'xyz => x',\n // so 'xyz' is not returned in our results.\n //\n // We define 'adjustedPosition' so that we may appropriately account for\n // being at the end of an identifier. The intention is that if requesting completion\n // at the end of an identifier, it should be effectively equivalent to requesting completion\n // anywhere inside/at the beginning of the identifier. So in the previous case, the\n // 'adjustedPosition' will work as if requesting completion in the following:\n //\n // xyz => $x\n //\n // If previousToken !== contextToken, then\n // - 'contextToken' was adjusted to the token prior to 'previousToken'\n // because we were at the end of an identifier.\n // - 'previousToken' is defined.\n var adjustedPosition = previousToken !== contextToken ?\n previousToken.getStart() :\n position;\n var scopeNode = getScopeNode(contextToken, adjustedPosition, sourceFile) || sourceFile;\n isInSnippetScope = isSnippetScope(scopeNode);\n var symbolMeanings = (isTypeOnlyLocation ? 0 /* None */ : 111551 /* Value */) | 788968 /* Type */ | 1920 /* Namespace */ | 2097152 /* Alias */;\n symbols = ts.concatenate(symbols, typeChecker.getSymbolsInScope(scopeNode, symbolMeanings));\n ts.Debug.assertEachIsDefined(symbols, \"getSymbolsInScope() should all be defined\");\n for (var _i = 0, symbols_1 = symbols; _i < symbols_1.length; _i++) {\n var symbol = symbols_1[_i];\n if (!typeChecker.isArgumentsSymbol(symbol) &&\n !ts.some(symbol.declarations, function (d) { return d.getSourceFile() === sourceFile; })) {\n symbolToSortTextIdMap[ts.getSymbolId(symbol)] = 15 /* GlobalsOrKeywords */;\n }\n }\n // Need to insert 'this.' before properties of `this` type, so only do that if `includeInsertTextCompletions`\n if (preferences.includeCompletionsWithInsertText && scopeNode.kind !== 300 /* SourceFile */) {\n var thisType = typeChecker.tryGetThisTypeAt(scopeNode, /*includeGlobalThis*/ false);\n if (thisType && !isProbablyGlobalType(thisType, sourceFile, typeChecker)) {\n for (var _a = 0, _b = getPropertiesForCompletion(thisType, typeChecker); _a < _b.length; _a++) {\n var symbol = _b[_a];\n symbolToOriginInfoMap[symbols.length] = { kind: 1 /* ThisType */ };\n symbols.push(symbol);\n symbolToSortTextIdMap[ts.getSymbolId(symbol)] = 14 /* SuggestedClassMembers */;\n }\n }\n }\n collectAutoImports();\n if (isTypeOnlyLocation) {\n keywordFilters = contextToken && ts.isAssertionExpression(contextToken.parent)\n ? 6 /* TypeAssertionKeywords */\n : 7 /* TypeKeywords */;\n }\n }\n function shouldOfferImportCompletions() {\n // If already typing an import statement, provide completions for it.\n if (importCompletionNode)\n return true;\n // If current completion is for non-contextual Object literal shortahands, ignore auto-import symbols\n if (isNonContextualObjectLiteral)\n return false;\n // If not already a module, must have modules enabled.\n if (!preferences.includeCompletionsForModuleExports)\n return false;\n // If already using ES6 modules, OK to continue using them.\n if (sourceFile.externalModuleIndicator || sourceFile.commonJsModuleIndicator)\n return true;\n // If module transpilation is enabled or we're targeting es6 or above, or not emitting, OK.\n if (ts.compilerOptionsIndicateEs6Modules(program.getCompilerOptions()))\n return true;\n // If some file is using ES6 modules, assume that it's OK to add more.\n return ts.programContainsModules(program);\n }\n function isSnippetScope(scopeNode) {\n switch (scopeNode.kind) {\n case 300 /* SourceFile */:\n case 221 /* TemplateExpression */:\n case 286 /* JsxExpression */:\n case 233 /* Block */:\n return true;\n default:\n return ts.isStatement(scopeNode);\n }\n }\n function isTypeOnlyCompletion() {\n return insideJsDocTagTypeExpression\n || !isContextTokenValueLocation(contextToken) &&\n (ts.isPossiblyTypeArgumentPosition(contextToken, sourceFile, typeChecker)\n || ts.isPartOfTypeNode(location)\n || isContextTokenTypeLocation(contextToken));\n }\n function isContextTokenValueLocation(contextToken) {\n return contextToken &&\n ((contextToken.kind === 112 /* TypeOfKeyword */ &&\n (contextToken.parent.kind === 179 /* TypeQuery */ || ts.isTypeOfExpression(contextToken.parent))) ||\n (contextToken.kind === 128 /* AssertsKeyword */ && contextToken.parent.kind === 175 /* TypePredicate */));\n }\n function isContextTokenTypeLocation(contextToken) {\n if (contextToken) {\n var parentKind = contextToken.parent.kind;\n switch (contextToken.kind) {\n case 58 /* ColonToken */:\n return parentKind === 165 /* PropertyDeclaration */ ||\n parentKind === 164 /* PropertySignature */ ||\n parentKind === 162 /* Parameter */ ||\n parentKind === 252 /* VariableDeclaration */ ||\n ts.isFunctionLikeKind(parentKind);\n case 63 /* EqualsToken */:\n return parentKind === 257 /* TypeAliasDeclaration */;\n case 127 /* AsKeyword */:\n return parentKind === 227 /* AsExpression */;\n case 29 /* LessThanToken */:\n return parentKind === 176 /* TypeReference */ ||\n parentKind === 209 /* TypeAssertionExpression */;\n case 94 /* ExtendsKeyword */:\n return parentKind === 161 /* TypeParameter */;\n }\n }\n return false;\n }\n /** Mutates `symbols`, `symbolToOriginInfoMap`, and `symbolToSortTextIdMap` */\n function collectAutoImports() {\n var _a, _b;\n if (!shouldOfferImportCompletions())\n return;\n ts.Debug.assert(!(detailsEntryId === null || detailsEntryId === void 0 ? void 0 : detailsEntryId.data), \"Should not run 'collectAutoImports' when faster path is available via `data`\");\n if (detailsEntryId && !detailsEntryId.source) {\n // Asking for completion details for an item that is not an auto-import\n return;\n }\n var moduleSpecifierCache = (_a = host.getModuleSpecifierCache) === null || _a === void 0 ? void 0 : _a.call(host);\n var lowerCaseTokenText = previousToken && ts.isIdentifier(previousToken) ? previousToken.text.toLowerCase() : \"\";\n var exportInfo = ts.getExportInfoMap(sourceFile, host, program, cancellationToken);\n var packageJsonAutoImportProvider = (_b = host.getPackageJsonAutoImportProvider) === null || _b === void 0 ? void 0 : _b.call(host);\n var packageJsonFilter = detailsEntryId ? undefined : ts.createPackageJsonImportFilter(sourceFile, preferences, host);\n resolvingModuleSpecifiers(\"collectAutoImports\", host, program, sourceFile, preferences, !!importCompletionNode, function (context) {\n exportInfo.forEach(sourceFile.path, function (info, symbolName, isFromAmbientModule) {\n if (!ts.isIdentifierText(symbolName, ts.getEmitScriptTarget(host.getCompilationSettings())))\n return;\n if (!detailsEntryId && ts.isStringANonContextualKeyword(symbolName))\n return;\n // `targetFlags` should be the same for each `info`\n if (!isTypeOnlyLocation && !importCompletionNode && !(info[0].targetFlags & 111551 /* Value */))\n return;\n if (isTypeOnlyLocation && !(info[0].targetFlags & (1536 /* Module */ | 788968 /* Type */)))\n return;\n var isCompletionDetailsMatch = detailsEntryId && ts.some(info, function (i) { return detailsEntryId.source === ts.stripQuotes(i.moduleSymbol.name); });\n if (isCompletionDetailsMatch || !detailsEntryId && charactersFuzzyMatchInString(symbolName, lowerCaseTokenText)) {\n var defaultExportInfo = ts.find(info, isImportableExportInfo);\n if (!defaultExportInfo) {\n return;\n }\n // If we don't need to resolve module specifiers, we can use any re-export that is importable at all\n // (We need to ensure that at least one is importable to show a completion.)\n var _a = context.tryResolve(info, isFromAmbientModule) || {}, _b = _a.exportInfo, exportInfo_1 = _b === void 0 ? defaultExportInfo : _b, moduleSpecifier = _a.moduleSpecifier;\n var isDefaultExport = exportInfo_1.exportKind === 1 /* Default */;\n var symbol = isDefaultExport && ts.getLocalSymbolForExportDefault(exportInfo_1.symbol) || exportInfo_1.symbol;\n pushAutoImportSymbol(symbol, {\n kind: moduleSpecifier ? 32 /* ResolvedExport */ : 4 /* Export */,\n moduleSpecifier: moduleSpecifier,\n symbolName: symbolName,\n exportName: exportInfo_1.exportKind === 2 /* ExportEquals */ ? \"export=\" /* ExportEquals */ : exportInfo_1.symbol.name,\n fileName: exportInfo_1.moduleFileName,\n isDefaultExport: isDefaultExport,\n moduleSymbol: exportInfo_1.moduleSymbol,\n isFromPackageJson: exportInfo_1.isFromPackageJson,\n });\n }\n });\n hasUnresolvedAutoImports = context.resolutionLimitExceeded();\n });\n function isImportableExportInfo(info) {\n var moduleFile = ts.tryCast(info.moduleSymbol.valueDeclaration, ts.isSourceFile);\n if (!moduleFile) {\n var moduleName = ts.stripQuotes(info.moduleSymbol.name);\n if (ts.JsTyping.nodeCoreModules.has(moduleName) && ts.startsWith(moduleName, \"node:\") !== ts.shouldUseUriStyleNodeCoreModules(sourceFile, program)) {\n return false;\n }\n return packageJsonFilter\n ? packageJsonFilter.allowsImportingAmbientModule(info.moduleSymbol, getModuleSpecifierResolutionHost(info.isFromPackageJson))\n : true;\n }\n return ts.isImportableFile(info.isFromPackageJson ? packageJsonAutoImportProvider : program, sourceFile, moduleFile, preferences, packageJsonFilter, getModuleSpecifierResolutionHost(info.isFromPackageJson), moduleSpecifierCache);\n }\n }\n function pushAutoImportSymbol(symbol, origin) {\n var symbolId = ts.getSymbolId(symbol);\n if (symbolToSortTextIdMap[symbolId] === 15 /* GlobalsOrKeywords */) {\n // If an auto-importable symbol is available as a global, don't add the auto import\n return;\n }\n symbolToOriginInfoMap[symbols.length] = origin;\n symbolToSortTextIdMap[symbolId] = importCompletionNode ? 11 /* LocationPriority */ : 16 /* AutoImportSuggestions */;\n symbols.push(symbol);\n }\n /**\n * Finds the first node that \"embraces\" the position, so that one may\n * accurately aggregate locals from the closest containing scope.\n */\n function getScopeNode(initialToken, position, sourceFile) {\n var scope = initialToken;\n while (scope && !ts.positionBelongsToNode(scope, position, sourceFile)) {\n scope = scope.parent;\n }\n return scope;\n }\n function isCompletionListBlocker(contextToken) {\n var start = ts.timestamp();\n var result = isInStringOrRegularExpressionOrTemplateLiteral(contextToken) ||\n isSolelyIdentifierDefinitionLocation(contextToken) ||\n isDotOfNumericLiteral(contextToken) ||\n isInJsxText(contextToken) ||\n ts.isBigIntLiteral(contextToken);\n log(\"getCompletionsAtPosition: isCompletionListBlocker: \" + (ts.timestamp() - start));\n return result;\n }\n function isInJsxText(contextToken) {\n if (contextToken.kind === 11 /* JsxText */) {\n return true;\n }\n if (contextToken.kind === 31 /* GreaterThanToken */ && contextToken.parent) {\n if (contextToken.parent.kind === 278 /* JsxOpeningElement */) {\n // Two possibilities:\n // 1.
/**/\n // - contextToken: GreaterThanToken (before cursor)\n // - location: JSXElement\n // - different parents (JSXOpeningElement, JSXElement)\n // 2. /**/>\n // - contextToken: GreaterThanToken (before cursor)\n // - location: GreaterThanToken (after cursor)\n // - same parent (JSXOpeningElement)\n return location.parent.kind !== 278 /* JsxOpeningElement */;\n }\n if (contextToken.parent.kind === 279 /* JsxClosingElement */ || contextToken.parent.kind === 277 /* JsxSelfClosingElement */) {\n return !!contextToken.parent.parent && contextToken.parent.parent.kind === 276 /* JsxElement */;\n }\n }\n return false;\n }\n function isNewIdentifierDefinitionLocation() {\n if (contextToken) {\n var containingNodeKind = contextToken.parent.kind;\n // Previous token may have been a keyword that was converted to an identifier.\n switch (keywordForNode(contextToken)) {\n case 27 /* CommaToken */:\n return containingNodeKind === 206 /* CallExpression */ // func( a, |\n || containingNodeKind === 169 /* Constructor */ // constructor( a, | /* public, protected, private keywords are allowed here, so show completion */\n || containingNodeKind === 207 /* NewExpression */ // new C(a, |\n || containingNodeKind === 202 /* ArrayLiteralExpression */ // [a, |\n || containingNodeKind === 219 /* BinaryExpression */ // const x = (a, |\n || containingNodeKind === 177 /* FunctionType */ // var x: (s: string, list|\n || containingNodeKind === 203 /* ObjectLiteralExpression */; // const obj = { x, |\n case 20 /* OpenParenToken */:\n return containingNodeKind === 206 /* CallExpression */ // func( |\n || containingNodeKind === 169 /* Constructor */ // constructor( |\n || containingNodeKind === 207 /* NewExpression */ // new C(a|\n || containingNodeKind === 210 /* ParenthesizedExpression */ // const x = (a|\n || containingNodeKind === 189 /* ParenthesizedType */; // function F(pred: (a| /* this can become an arrow function, where 'a' is the argument */\n case 22 /* OpenBracketToken */:\n return containingNodeKind === 202 /* ArrayLiteralExpression */ // [ |\n || containingNodeKind === 174 /* IndexSignature */ // [ | : string ]\n || containingNodeKind === 160 /* ComputedPropertyName */; // [ | /* this can become an index signature */\n case 140 /* ModuleKeyword */: // module |\n case 141 /* NamespaceKeyword */: // namespace |\n return true;\n case 24 /* DotToken */:\n return containingNodeKind === 259 /* ModuleDeclaration */; // module A.|\n case 18 /* OpenBraceToken */:\n return containingNodeKind === 255 /* ClassDeclaration */ // class A { |\n || containingNodeKind === 203 /* ObjectLiteralExpression */; // const obj = { |\n case 63 /* EqualsToken */:\n return containingNodeKind === 252 /* VariableDeclaration */ // const x = a|\n || containingNodeKind === 219 /* BinaryExpression */; // x = a|\n case 15 /* TemplateHead */:\n return containingNodeKind === 221 /* TemplateExpression */; // `aa ${|\n case 16 /* TemplateMiddle */:\n return containingNodeKind === 231 /* TemplateSpan */; // `aa ${10} dd ${|\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n return containingNodeKind === 165 /* PropertyDeclaration */; // class A{ public |\n }\n }\n return false;\n }\n function isInStringOrRegularExpressionOrTemplateLiteral(contextToken) {\n // To be \"in\" one of these literals, the position has to be:\n // 1. entirely within the token text.\n // 2. at the end position of an unterminated token.\n // 3. at the end of a regular expression (due to trailing flags like '/foo/g').\n return (ts.isRegularExpressionLiteral(contextToken) || ts.isStringTextContainingNode(contextToken)) && (ts.rangeContainsPositionExclusive(ts.createTextRangeFromSpan(ts.createTextSpanFromNode(contextToken)), position) ||\n position === contextToken.end && (!!contextToken.isUnterminated || ts.isRegularExpressionLiteral(contextToken)));\n }\n function tryGetObjectTypeLiteralInTypeArgumentCompletionSymbols() {\n var typeLiteralNode = tryGetTypeLiteralNode(contextToken);\n if (!typeLiteralNode)\n return 0 /* Continue */;\n var intersectionTypeNode = ts.isIntersectionTypeNode(typeLiteralNode.parent) ? typeLiteralNode.parent : undefined;\n var containerTypeNode = intersectionTypeNode || typeLiteralNode;\n var containerExpectedType = getConstraintOfTypeArgumentProperty(containerTypeNode, typeChecker);\n if (!containerExpectedType)\n return 0 /* Continue */;\n var containerActualType = typeChecker.getTypeFromTypeNode(containerTypeNode);\n var members = getPropertiesForCompletion(containerExpectedType, typeChecker);\n var existingMembers = getPropertiesForCompletion(containerActualType, typeChecker);\n var existingMemberEscapedNames = new ts.Set();\n existingMembers.forEach(function (s) { return existingMemberEscapedNames.add(s.escapedName); });\n symbols = ts.concatenate(symbols, ts.filter(members, function (s) { return !existingMemberEscapedNames.has(s.escapedName); }));\n completionKind = 0 /* ObjectPropertyDeclaration */;\n isNewIdentifierLocation = true;\n return 1 /* Success */;\n }\n /**\n * Aggregates relevant symbols for completion in object literals and object binding patterns.\n * Relevant symbols are stored in the captured 'symbols' variable.\n *\n * @returns true if 'symbols' was successfully populated; false otherwise.\n */\n function tryGetObjectLikeCompletionSymbols() {\n var objectLikeContainer = tryGetObjectLikeCompletionContainer(contextToken);\n if (!objectLikeContainer)\n return 0 /* Continue */;\n // We're looking up possible property names from contextual/inferred/declared type.\n completionKind = 0 /* ObjectPropertyDeclaration */;\n var typeMembers;\n var existingMembers;\n if (objectLikeContainer.kind === 203 /* ObjectLiteralExpression */) {\n var instantiatedType = tryGetObjectLiteralContextualType(objectLikeContainer, typeChecker);\n // Check completions for Object property value shorthand\n if (instantiatedType === undefined) {\n if (objectLikeContainer.flags & 16777216 /* InWithStatement */) {\n return 2 /* Fail */;\n }\n isNonContextualObjectLiteral = true;\n return 0 /* Continue */;\n }\n var completionsType = typeChecker.getContextualType(objectLikeContainer, 4 /* Completions */);\n var hasStringIndexType = (completionsType || instantiatedType).getStringIndexType();\n var hasNumberIndextype = (completionsType || instantiatedType).getNumberIndexType();\n isNewIdentifierLocation = !!hasStringIndexType || !!hasNumberIndextype;\n typeMembers = getPropertiesForObjectExpression(instantiatedType, completionsType, objectLikeContainer, typeChecker);\n existingMembers = objectLikeContainer.properties;\n if (typeMembers.length === 0) {\n // Edge case: If NumberIndexType exists\n if (!hasNumberIndextype) {\n isNonContextualObjectLiteral = true;\n return 0 /* Continue */;\n }\n }\n }\n else {\n ts.Debug.assert(objectLikeContainer.kind === 199 /* ObjectBindingPattern */);\n // We are *only* completing on properties from the type being destructured.\n isNewIdentifierLocation = false;\n var rootDeclaration = ts.getRootDeclaration(objectLikeContainer.parent);\n if (!ts.isVariableLike(rootDeclaration))\n return ts.Debug.fail(\"Root declaration is not variable-like.\");\n // We don't want to complete using the type acquired by the shape\n // of the binding pattern; we are only interested in types acquired\n // through type declaration or inference.\n // Also proceed if rootDeclaration is a parameter and if its containing function expression/arrow function is contextually typed -\n // type of parameter will flow in from the contextual type of the function\n var canGetType = ts.hasInitializer(rootDeclaration) || ts.hasType(rootDeclaration) || rootDeclaration.parent.parent.kind === 242 /* ForOfStatement */;\n if (!canGetType && rootDeclaration.kind === 162 /* Parameter */) {\n if (ts.isExpression(rootDeclaration.parent)) {\n canGetType = !!typeChecker.getContextualType(rootDeclaration.parent);\n }\n else if (rootDeclaration.parent.kind === 167 /* MethodDeclaration */ || rootDeclaration.parent.kind === 171 /* SetAccessor */) {\n canGetType = ts.isExpression(rootDeclaration.parent.parent) && !!typeChecker.getContextualType(rootDeclaration.parent.parent);\n }\n }\n if (canGetType) {\n var typeForObject_1 = typeChecker.getTypeAtLocation(objectLikeContainer);\n if (!typeForObject_1)\n return 2 /* Fail */;\n // In a binding pattern, get only known properties (unless in the same scope).\n // Everywhere else we will get all possible properties.\n var containerClass_1 = ts.getContainingClass(objectLikeContainer);\n typeMembers = typeChecker.getPropertiesOfType(typeForObject_1).filter(function (symbol) {\n // either public\n return !(ts.getDeclarationModifierFlagsFromSymbol(symbol) & 24 /* NonPublicAccessibilityModifier */)\n // or we're in it\n || containerClass_1 && ts.contains(typeForObject_1.symbol.declarations, containerClass_1);\n });\n existingMembers = objectLikeContainer.elements;\n }\n }\n if (typeMembers && typeMembers.length > 0) {\n // Add filtered items to the completion list\n symbols = ts.concatenate(symbols, filterObjectMembersList(typeMembers, ts.Debug.checkDefined(existingMembers)));\n }\n setSortTextToOptionalMember();\n return 1 /* Success */;\n }\n /**\n * Aggregates relevant symbols for completion in import clauses and export clauses\n * whose declarations have a module specifier; for instance, symbols will be aggregated for\n *\n * import { | } from \"moduleName\";\n * export { a as foo, | } from \"moduleName\";\n *\n * but not for\n *\n * export { | };\n *\n * Relevant symbols are stored in the captured 'symbols' variable.\n */\n function tryGetImportOrExportClauseCompletionSymbols() {\n // `import { |` or `import { a as 0, | }`\n var namedImportsOrExports = contextToken && (contextToken.kind === 18 /* OpenBraceToken */ || contextToken.kind === 27 /* CommaToken */)\n ? ts.tryCast(contextToken.parent, ts.isNamedImportsOrExports) : undefined;\n if (!namedImportsOrExports)\n return 0 /* Continue */;\n // try to show exported member for imported/re-exported module\n var moduleSpecifier = (namedImportsOrExports.kind === 267 /* NamedImports */ ? namedImportsOrExports.parent.parent : namedImportsOrExports.parent).moduleSpecifier;\n if (!moduleSpecifier)\n return namedImportsOrExports.kind === 267 /* NamedImports */ ? 2 /* Fail */ : 0 /* Continue */;\n var moduleSpecifierSymbol = typeChecker.getSymbolAtLocation(moduleSpecifier); // TODO: GH#18217\n if (!moduleSpecifierSymbol)\n return 2 /* Fail */;\n completionKind = 3 /* MemberLike */;\n isNewIdentifierLocation = false;\n var exports = typeChecker.getExportsAndPropertiesOfModule(moduleSpecifierSymbol);\n var existing = new ts.Set(namedImportsOrExports.elements.filter(function (n) { return !isCurrentlyEditingNode(n); }).map(function (n) { return (n.propertyName || n.name).escapedText; }));\n symbols = ts.concatenate(symbols, exports.filter(function (e) { return e.escapedName !== \"default\" /* Default */ && !existing.has(e.escapedName); }));\n return 1 /* Success */;\n }\n /**\n * Adds local declarations for completions in named exports:\n *\n * export { | };\n *\n * Does not check for the absence of a module specifier (`export {} from \"./other\"`)\n * because `tryGetImportOrExportClauseCompletionSymbols` runs first and handles that,\n * preventing this function from running.\n */\n function tryGetLocalNamedExportCompletionSymbols() {\n var _a;\n var namedExports = contextToken && (contextToken.kind === 18 /* OpenBraceToken */ || contextToken.kind === 27 /* CommaToken */)\n ? ts.tryCast(contextToken.parent, ts.isNamedExports)\n : undefined;\n if (!namedExports) {\n return 0 /* Continue */;\n }\n var localsContainer = ts.findAncestor(namedExports, ts.or(ts.isSourceFile, ts.isModuleDeclaration));\n completionKind = 5 /* None */;\n isNewIdentifierLocation = false;\n (_a = localsContainer.locals) === null || _a === void 0 ? void 0 : _a.forEach(function (symbol, name) {\n var _a, _b;\n symbols.push(symbol);\n if ((_b = (_a = localsContainer.symbol) === null || _a === void 0 ? void 0 : _a.exports) === null || _b === void 0 ? void 0 : _b.has(name)) {\n symbolToSortTextIdMap[ts.getSymbolId(symbol)] = 12 /* OptionalMember */;\n }\n });\n return 1 /* Success */;\n }\n /**\n * Aggregates relevant symbols for completion in class declaration\n * Relevant symbols are stored in the captured 'symbols' variable.\n */\n function tryGetClassLikeCompletionSymbols() {\n var decl = tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position);\n if (!decl)\n return 0 /* Continue */;\n // We're looking up possible property names from parent type.\n completionKind = 3 /* MemberLike */;\n // Declaring new property/method/accessor\n isNewIdentifierLocation = true;\n keywordFilters = contextToken.kind === 41 /* AsteriskToken */ ? 0 /* None */ :\n ts.isClassLike(decl) ? 2 /* ClassElementKeywords */ : 3 /* InterfaceElementKeywords */;\n // If you're in an interface you don't want to repeat things from super-interface. So just stop here.\n if (!ts.isClassLike(decl))\n return 1 /* Success */;\n var classElement = contextToken.kind === 26 /* SemicolonToken */ ? contextToken.parent.parent : contextToken.parent;\n var classElementModifierFlags = ts.isClassElement(classElement) ? ts.getEffectiveModifierFlags(classElement) : 0 /* None */;\n // If this is context token is not something we are editing now, consider if this would lead to be modifier\n if (contextToken.kind === 79 /* Identifier */ && !isCurrentlyEditingNode(contextToken)) {\n switch (contextToken.getText()) {\n case \"private\":\n classElementModifierFlags = classElementModifierFlags | 8 /* Private */;\n break;\n case \"static\":\n classElementModifierFlags = classElementModifierFlags | 32 /* Static */;\n break;\n case \"override\":\n classElementModifierFlags = classElementModifierFlags | 16384 /* Override */;\n break;\n }\n }\n if (ts.isClassStaticBlockDeclaration(classElement)) {\n classElementModifierFlags |= 32 /* Static */;\n }\n // No member list for private methods\n if (!(classElementModifierFlags & 8 /* Private */)) {\n // List of property symbols of base type that are not private and already implemented\n var baseTypeNodes = ts.isClassLike(decl) && classElementModifierFlags & 16384 /* Override */ ? ts.singleElementArray(ts.getEffectiveBaseTypeNode(decl)) : ts.getAllSuperTypeNodes(decl);\n var baseSymbols = ts.flatMap(baseTypeNodes, function (baseTypeNode) {\n var type = typeChecker.getTypeAtLocation(baseTypeNode);\n return classElementModifierFlags & 32 /* Static */ ?\n (type === null || type === void 0 ? void 0 : type.symbol) && typeChecker.getPropertiesOfType(typeChecker.getTypeOfSymbolAtLocation(type.symbol, decl)) :\n type && typeChecker.getPropertiesOfType(type);\n });\n symbols = ts.concatenate(symbols, filterClassMembersList(baseSymbols, decl.members, classElementModifierFlags));\n }\n return 1 /* Success */;\n }\n /**\n * Returns the immediate owning object literal or binding pattern of a context token,\n * on the condition that one exists and that the context implies completion should be given.\n */\n function tryGetObjectLikeCompletionContainer(contextToken) {\n if (contextToken) {\n var parent = contextToken.parent;\n switch (contextToken.kind) {\n case 18 /* OpenBraceToken */: // const x = { |\n case 27 /* CommaToken */: // const x = { a: 0, |\n if (ts.isObjectLiteralExpression(parent) || ts.isObjectBindingPattern(parent)) {\n return parent;\n }\n break;\n case 41 /* AsteriskToken */:\n return ts.isMethodDeclaration(parent) ? ts.tryCast(parent.parent, ts.isObjectLiteralExpression) : undefined;\n case 79 /* Identifier */:\n return contextToken.text === \"async\" && ts.isShorthandPropertyAssignment(contextToken.parent)\n ? contextToken.parent.parent : undefined;\n }\n }\n return undefined;\n }\n function isConstructorParameterCompletion(node) {\n return !!node.parent && ts.isParameter(node.parent) && ts.isConstructorDeclaration(node.parent.parent)\n && (ts.isParameterPropertyModifier(node.kind) || ts.isDeclarationName(node));\n }\n /**\n * Returns the immediate owning class declaration of a context token,\n * on the condition that one exists and that the context implies completion should be given.\n */\n function tryGetConstructorLikeCompletionContainer(contextToken) {\n if (contextToken) {\n var parent = contextToken.parent;\n switch (contextToken.kind) {\n case 20 /* OpenParenToken */:\n case 27 /* CommaToken */:\n return ts.isConstructorDeclaration(contextToken.parent) ? contextToken.parent : undefined;\n default:\n if (isConstructorParameterCompletion(contextToken)) {\n return parent.parent;\n }\n }\n }\n return undefined;\n }\n function tryGetFunctionLikeBodyCompletionContainer(contextToken) {\n if (contextToken) {\n var prev_1;\n var container = ts.findAncestor(contextToken.parent, function (node) {\n if (ts.isClassLike(node)) {\n return \"quit\";\n }\n if (ts.isFunctionLikeDeclaration(node) && prev_1 === node.body) {\n return true;\n }\n prev_1 = node;\n return false;\n });\n return container && container;\n }\n }\n function tryGetContainingJsxElement(contextToken) {\n if (contextToken) {\n var parent = contextToken.parent;\n switch (contextToken.kind) {\n case 31 /* GreaterThanToken */: // End of a type argument list\n case 30 /* LessThanSlashToken */:\n case 43 /* SlashToken */:\n case 79 /* Identifier */:\n case 204 /* PropertyAccessExpression */:\n case 284 /* JsxAttributes */:\n case 283 /* JsxAttribute */:\n case 285 /* JsxSpreadAttribute */:\n if (parent && (parent.kind === 277 /* JsxSelfClosingElement */ || parent.kind === 278 /* JsxOpeningElement */)) {\n if (contextToken.kind === 31 /* GreaterThanToken */) {\n var precedingToken = ts.findPrecedingToken(contextToken.pos, sourceFile, /*startNode*/ undefined);\n if (!parent.typeArguments || (precedingToken && precedingToken.kind === 43 /* SlashToken */))\n break;\n }\n return parent;\n }\n else if (parent.kind === 283 /* JsxAttribute */) {\n // Currently we parse JsxOpeningLikeElement as:\n // JsxOpeningLikeElement\n // attributes: JsxAttributes\n // properties: NodeArray\n return parent.parent.parent;\n }\n break;\n // The context token is the closing } or \" of an attribute, which means\n // its parent is a JsxExpression, whose parent is a JsxAttribute,\n // whose parent is a JsxOpeningLikeElement\n case 10 /* StringLiteral */:\n if (parent && ((parent.kind === 283 /* JsxAttribute */) || (parent.kind === 285 /* JsxSpreadAttribute */))) {\n // Currently we parse JsxOpeningLikeElement as:\n // JsxOpeningLikeElement\n // attributes: JsxAttributes\n // properties: NodeArray\n return parent.parent.parent;\n }\n break;\n case 19 /* CloseBraceToken */:\n if (parent &&\n parent.kind === 286 /* JsxExpression */ &&\n parent.parent && parent.parent.kind === 283 /* JsxAttribute */) {\n // Currently we parse JsxOpeningLikeElement as:\n // JsxOpeningLikeElement\n // attributes: JsxAttributes\n // properties: NodeArray\n // each JsxAttribute can have initializer as JsxExpression\n return parent.parent.parent.parent;\n }\n if (parent && parent.kind === 285 /* JsxSpreadAttribute */) {\n // Currently we parse JsxOpeningLikeElement as:\n // JsxOpeningLikeElement\n // attributes: JsxAttributes\n // properties: NodeArray\n return parent.parent.parent;\n }\n break;\n }\n }\n return undefined;\n }\n /**\n * @returns true if we are certain that the currently edited location must define a new location; false otherwise.\n */\n function isSolelyIdentifierDefinitionLocation(contextToken) {\n var parent = contextToken.parent;\n var containingNodeKind = parent.kind;\n switch (contextToken.kind) {\n case 27 /* CommaToken */:\n return containingNodeKind === 252 /* VariableDeclaration */ ||\n isVariableDeclarationListButNotTypeArgument(contextToken) ||\n containingNodeKind === 235 /* VariableStatement */ ||\n containingNodeKind === 258 /* EnumDeclaration */ || // enum a { foo, |\n isFunctionLikeButNotConstructor(containingNodeKind) ||\n containingNodeKind === 256 /* InterfaceDeclaration */ || // interface A= contextToken.pos);\n case 24 /* DotToken */:\n return containingNodeKind === 200 /* ArrayBindingPattern */; // var [.|\n case 58 /* ColonToken */:\n return containingNodeKind === 201 /* BindingElement */; // var {x :html|\n case 22 /* OpenBracketToken */:\n return containingNodeKind === 200 /* ArrayBindingPattern */; // var [x|\n case 20 /* OpenParenToken */:\n return containingNodeKind === 290 /* CatchClause */ ||\n isFunctionLikeButNotConstructor(containingNodeKind);\n case 18 /* OpenBraceToken */:\n return containingNodeKind === 258 /* EnumDeclaration */; // enum a { |\n case 29 /* LessThanToken */:\n return containingNodeKind === 255 /* ClassDeclaration */ || // class A< |\n containingNodeKind === 224 /* ClassExpression */ || // var C = class D< |\n containingNodeKind === 256 /* InterfaceDeclaration */ || // interface A< |\n containingNodeKind === 257 /* TypeAliasDeclaration */ || // type List< |\n ts.isFunctionLikeKind(containingNodeKind);\n case 124 /* StaticKeyword */:\n return containingNodeKind === 165 /* PropertyDeclaration */ && !ts.isClassLike(parent.parent);\n case 25 /* DotDotDotToken */:\n return containingNodeKind === 162 /* Parameter */ ||\n (!!parent.parent && parent.parent.kind === 200 /* ArrayBindingPattern */); // var [...z|\n case 123 /* PublicKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n return containingNodeKind === 162 /* Parameter */ && !ts.isConstructorDeclaration(parent.parent);\n case 127 /* AsKeyword */:\n return containingNodeKind === 268 /* ImportSpecifier */ ||\n containingNodeKind === 273 /* ExportSpecifier */ ||\n containingNodeKind === 266 /* NamespaceImport */;\n case 135 /* GetKeyword */:\n case 147 /* SetKeyword */:\n return !isFromObjectTypeDeclaration(contextToken);\n case 84 /* ClassKeyword */:\n case 92 /* EnumKeyword */:\n case 118 /* InterfaceKeyword */:\n case 98 /* FunctionKeyword */:\n case 113 /* VarKeyword */:\n case 100 /* ImportKeyword */:\n case 119 /* LetKeyword */:\n case 85 /* ConstKeyword */:\n case 136 /* InferKeyword */:\n case 150 /* TypeKeyword */: // type htm|\n return true;\n case 41 /* AsteriskToken */:\n return ts.isFunctionLike(contextToken.parent) && !ts.isMethodDeclaration(contextToken.parent);\n }\n // If the previous token is keyword corresponding to class member completion keyword\n // there will be completion available here\n if (isClassMemberCompletionKeyword(keywordForNode(contextToken)) && isFromObjectTypeDeclaration(contextToken)) {\n return false;\n }\n if (isConstructorParameterCompletion(contextToken)) {\n // constructor parameter completion is available only if\n // - its modifier of the constructor parameter or\n // - its name of the parameter and not being edited\n // eg. constructor(a |<- this shouldnt show completion\n if (!ts.isIdentifier(contextToken) ||\n ts.isParameterPropertyModifier(keywordForNode(contextToken)) ||\n isCurrentlyEditingNode(contextToken)) {\n return false;\n }\n }\n // Previous token may have been a keyword that was converted to an identifier.\n switch (keywordForNode(contextToken)) {\n case 126 /* AbstractKeyword */:\n case 84 /* ClassKeyword */:\n case 85 /* ConstKeyword */:\n case 134 /* DeclareKeyword */:\n case 92 /* EnumKeyword */:\n case 98 /* FunctionKeyword */:\n case 118 /* InterfaceKeyword */:\n case 119 /* LetKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 123 /* PublicKeyword */:\n case 124 /* StaticKeyword */:\n case 113 /* VarKeyword */:\n return true;\n case 130 /* AsyncKeyword */:\n return ts.isPropertyDeclaration(contextToken.parent);\n }\n // If we are inside a class declaration, and `constructor` is totally not present,\n // but we request a completion manually at a whitespace...\n var ancestorClassLike = ts.findAncestor(contextToken.parent, ts.isClassLike);\n if (ancestorClassLike && contextToken === previousToken && isPreviousPropertyDeclarationTerminated(contextToken, position)) {\n return false; // Don't block completions.\n }\n var ancestorPropertyDeclaraion = ts.getAncestor(contextToken.parent, 165 /* PropertyDeclaration */);\n // If we are inside a class declaration and typing `constructor` after property declaration...\n if (ancestorPropertyDeclaraion\n && contextToken !== previousToken\n && ts.isClassLike(previousToken.parent.parent)\n // And the cursor is at the token...\n && position <= previousToken.end) {\n // If we are sure that the previous property declaration is terminated according to newline or semicolon...\n if (isPreviousPropertyDeclarationTerminated(contextToken, previousToken.end)) {\n return false; // Don't block completions.\n }\n else if (contextToken.kind !== 63 /* EqualsToken */\n // Should not block: `class C { blah = c/**/ }`\n // But should block: `class C { blah = somewhat c/**/ }` and `class C { blah: SomeType c/**/ }`\n && (ts.isInitializedProperty(ancestorPropertyDeclaraion)\n || ts.hasType(ancestorPropertyDeclaraion))) {\n return true;\n }\n }\n return ts.isDeclarationName(contextToken)\n && !ts.isShorthandPropertyAssignment(contextToken.parent)\n && !ts.isJsxAttribute(contextToken.parent)\n // Don't block completions if we're in `class C /**/`, because we're *past* the end of the identifier and might want to complete `extends`.\n // If `contextToken !== previousToken`, this is `class C ex/**/`.\n && !(ts.isClassLike(contextToken.parent) && (contextToken !== previousToken || position > previousToken.end));\n }\n function isPreviousPropertyDeclarationTerminated(contextToken, position) {\n return contextToken.kind !== 63 /* EqualsToken */ &&\n (contextToken.kind === 26 /* SemicolonToken */\n || !ts.positionsAreOnSameLine(contextToken.end, position, sourceFile));\n }\n function isFunctionLikeButNotConstructor(kind) {\n return ts.isFunctionLikeKind(kind) && kind !== 169 /* Constructor */;\n }\n function isDotOfNumericLiteral(contextToken) {\n if (contextToken.kind === 8 /* NumericLiteral */) {\n var text = contextToken.getFullText();\n return text.charAt(text.length - 1) === \".\";\n }\n return false;\n }\n function isVariableDeclarationListButNotTypeArgument(node) {\n return node.parent.kind === 253 /* VariableDeclarationList */\n && !ts.isPossiblyTypeArgumentPosition(node, sourceFile, typeChecker);\n }\n /**\n * Filters out completion suggestions for named imports or exports.\n *\n * @returns Symbols to be suggested in an object binding pattern or object literal expression, barring those whose declarations\n * do not occur at the current position and have not otherwise been typed.\n */\n function filterObjectMembersList(contextualMemberSymbols, existingMembers) {\n if (existingMembers.length === 0) {\n return contextualMemberSymbols;\n }\n var membersDeclaredBySpreadAssignment = new ts.Set();\n var existingMemberNames = new ts.Set();\n for (var _i = 0, existingMembers_1 = existingMembers; _i < existingMembers_1.length; _i++) {\n var m = existingMembers_1[_i];\n // Ignore omitted expressions for missing members\n if (m.kind !== 291 /* PropertyAssignment */ &&\n m.kind !== 292 /* ShorthandPropertyAssignment */ &&\n m.kind !== 201 /* BindingElement */ &&\n m.kind !== 167 /* MethodDeclaration */ &&\n m.kind !== 170 /* GetAccessor */ &&\n m.kind !== 171 /* SetAccessor */ &&\n m.kind !== 293 /* SpreadAssignment */) {\n continue;\n }\n // If this is the current item we are editing right now, do not filter it out\n if (isCurrentlyEditingNode(m)) {\n continue;\n }\n var existingName = void 0;\n if (ts.isSpreadAssignment(m)) {\n setMembersDeclaredBySpreadAssignment(m, membersDeclaredBySpreadAssignment);\n }\n else if (ts.isBindingElement(m) && m.propertyName) {\n // include only identifiers in completion list\n if (m.propertyName.kind === 79 /* Identifier */) {\n existingName = m.propertyName.escapedText;\n }\n }\n else {\n // TODO: Account for computed property name\n // NOTE: if one only performs this step when m.name is an identifier,\n // things like '__proto__' are not filtered out.\n var name = ts.getNameOfDeclaration(m);\n existingName = name && ts.isPropertyNameLiteral(name) ? ts.getEscapedTextOfIdentifierOrLiteral(name) : undefined;\n }\n if (existingName !== undefined) {\n existingMemberNames.add(existingName);\n }\n }\n var filteredSymbols = contextualMemberSymbols.filter(function (m) { return !existingMemberNames.has(m.escapedName); });\n setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment, filteredSymbols);\n return filteredSymbols;\n }\n function setMembersDeclaredBySpreadAssignment(declaration, membersDeclaredBySpreadAssignment) {\n var expression = declaration.expression;\n var symbol = typeChecker.getSymbolAtLocation(expression);\n var type = symbol && typeChecker.getTypeOfSymbolAtLocation(symbol, expression);\n var properties = type && type.properties;\n if (properties) {\n properties.forEach(function (property) {\n membersDeclaredBySpreadAssignment.add(property.name);\n });\n }\n }\n // Set SortText to OptionalMember if it is an optional member\n function setSortTextToOptionalMember() {\n symbols.forEach(function (m) {\n var _a;\n if (m.flags & 16777216 /* Optional */) {\n var symbolId = ts.getSymbolId(m);\n symbolToSortTextIdMap[symbolId] = (_a = symbolToSortTextIdMap[symbolId]) !== null && _a !== void 0 ? _a : 12 /* OptionalMember */;\n }\n });\n }\n // Set SortText to MemberDeclaredBySpreadAssignment if it is fulfilled by spread assignment\n function setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment, contextualMemberSymbols) {\n if (membersDeclaredBySpreadAssignment.size === 0) {\n return;\n }\n for (var _i = 0, contextualMemberSymbols_1 = contextualMemberSymbols; _i < contextualMemberSymbols_1.length; _i++) {\n var contextualMemberSymbol = contextualMemberSymbols_1[_i];\n if (membersDeclaredBySpreadAssignment.has(contextualMemberSymbol.name)) {\n symbolToSortTextIdMap[ts.getSymbolId(contextualMemberSymbol)] = 13 /* MemberDeclaredBySpreadAssignment */;\n }\n }\n }\n /**\n * Filters out completion suggestions for class elements.\n *\n * @returns Symbols to be suggested in an class element depending on existing memebers and symbol flags\n */\n function filterClassMembersList(baseSymbols, existingMembers, currentClassElementModifierFlags) {\n var existingMemberNames = new ts.Set();\n for (var _i = 0, existingMembers_2 = existingMembers; _i < existingMembers_2.length; _i++) {\n var m = existingMembers_2[_i];\n // Ignore omitted expressions for missing members\n if (m.kind !== 165 /* PropertyDeclaration */ &&\n m.kind !== 167 /* MethodDeclaration */ &&\n m.kind !== 170 /* GetAccessor */ &&\n m.kind !== 171 /* SetAccessor */) {\n continue;\n }\n // If this is the current item we are editing right now, do not filter it out\n if (isCurrentlyEditingNode(m)) {\n continue;\n }\n // Dont filter member even if the name matches if it is declared private in the list\n if (ts.hasEffectiveModifier(m, 8 /* Private */)) {\n continue;\n }\n // do not filter it out if the static presence doesnt match\n if (ts.isStatic(m) !== !!(currentClassElementModifierFlags & 32 /* Static */)) {\n continue;\n }\n var existingName = ts.getPropertyNameForPropertyNameNode(m.name);\n if (existingName) {\n existingMemberNames.add(existingName);\n }\n }\n return baseSymbols.filter(function (propertySymbol) {\n return !existingMemberNames.has(propertySymbol.escapedName) &&\n !!propertySymbol.declarations &&\n !(ts.getDeclarationModifierFlagsFromSymbol(propertySymbol) & 8 /* Private */) &&\n !(propertySymbol.valueDeclaration && ts.isPrivateIdentifierClassElementDeclaration(propertySymbol.valueDeclaration));\n });\n }\n /**\n * Filters out completion suggestions from 'symbols' according to existing JSX attributes.\n *\n * @returns Symbols to be suggested in a JSX element, barring those whose attributes\n * do not occur at the current position and have not otherwise been typed.\n */\n function filterJsxAttributes(symbols, attributes) {\n var seenNames = new ts.Set();\n var membersDeclaredBySpreadAssignment = new ts.Set();\n for (var _i = 0, attributes_1 = attributes; _i < attributes_1.length; _i++) {\n var attr = attributes_1[_i];\n // If this is the current item we are editing right now, do not filter it out\n if (isCurrentlyEditingNode(attr)) {\n continue;\n }\n if (attr.kind === 283 /* JsxAttribute */) {\n seenNames.add(attr.name.escapedText);\n }\n else if (ts.isJsxSpreadAttribute(attr)) {\n setMembersDeclaredBySpreadAssignment(attr, membersDeclaredBySpreadAssignment);\n }\n }\n var filteredSymbols = symbols.filter(function (a) { return !seenNames.has(a.escapedName); });\n setSortTextToMemberDeclaredBySpreadAssignment(membersDeclaredBySpreadAssignment, filteredSymbols);\n return filteredSymbols;\n }\n function isCurrentlyEditingNode(node) {\n return node.getStart(sourceFile) <= position && position <= node.getEnd();\n }\n }\n function getRelevantTokens(position, sourceFile) {\n var previousToken = ts.findPrecedingToken(position, sourceFile);\n if (previousToken && position <= previousToken.end && (ts.isMemberName(previousToken) || ts.isKeyword(previousToken.kind))) {\n var contextToken = ts.findPrecedingToken(previousToken.getFullStart(), sourceFile, /*startNode*/ undefined); // TODO: GH#18217\n return { contextToken: contextToken, previousToken: previousToken };\n }\n return { contextToken: previousToken, previousToken: previousToken };\n }\n function getAutoImportSymbolFromCompletionEntryData(name, data, program, host) {\n var containingProgram = data.isPackageJsonImport ? host.getPackageJsonAutoImportProvider() : program;\n var checker = containingProgram.getTypeChecker();\n var moduleSymbol = data.ambientModuleName ? checker.tryFindAmbientModule(data.ambientModuleName) :\n data.fileName ? checker.getMergedSymbol(ts.Debug.checkDefined(containingProgram.getSourceFile(data.fileName)).symbol) :\n undefined;\n if (!moduleSymbol)\n return undefined;\n var symbol = data.exportName === \"export=\" /* ExportEquals */\n ? checker.resolveExternalModuleSymbol(moduleSymbol)\n : checker.tryGetMemberInModuleExportsAndProperties(data.exportName, moduleSymbol);\n if (!symbol)\n return undefined;\n var isDefaultExport = data.exportName === \"default\" /* Default */;\n symbol = isDefaultExport && ts.getLocalSymbolForExportDefault(symbol) || symbol;\n return {\n symbol: symbol,\n origin: {\n kind: data.moduleSpecifier ? 32 /* ResolvedExport */ : 4 /* Export */,\n moduleSymbol: moduleSymbol,\n symbolName: name,\n isDefaultExport: isDefaultExport,\n exportName: data.exportName,\n fileName: data.fileName,\n isFromPackageJson: !!data.isPackageJsonImport,\n }\n };\n }\n function getCompletionEntryDisplayNameForSymbol(symbol, target, origin, kind, jsxIdentifierExpected) {\n var name = originIncludesSymbolName(origin) ? origin.symbolName : symbol.name;\n if (name === undefined\n // If the symbol is external module, don't show it in the completion list\n // (i.e declare module \"http\" { const x; } | // <= request completion here, \"http\" should not be there)\n || symbol.flags & 1536 /* Module */ && ts.isSingleOrDoubleQuote(name.charCodeAt(0))\n // If the symbol is the internal name of an ES symbol, it is not a valid entry. Internal names for ES symbols start with \"__@\"\n || ts.isKnownSymbol(symbol)) {\n return undefined;\n }\n var validNameResult = { name: name, needsConvertPropertyAccess: false };\n if (ts.isIdentifierText(name, target, jsxIdentifierExpected ? 1 /* JSX */ : 0 /* Standard */) || symbol.valueDeclaration && ts.isPrivateIdentifierClassElementDeclaration(symbol.valueDeclaration)) {\n return validNameResult;\n }\n switch (kind) {\n case 3 /* MemberLike */:\n return undefined;\n case 0 /* ObjectPropertyDeclaration */:\n // TODO: GH#18169\n return { name: JSON.stringify(name), needsConvertPropertyAccess: false };\n case 2 /* PropertyAccess */:\n case 1 /* Global */: // For a 'this.' completion it will be in a global context, but may have a non-identifier name.\n // Don't add a completion for a name starting with a space. See https://github.com/Microsoft/TypeScript/pull/20547\n return name.charCodeAt(0) === 32 /* space */ ? undefined : { name: name, needsConvertPropertyAccess: true };\n case 5 /* None */:\n case 4 /* String */:\n return validNameResult;\n default:\n ts.Debug.assertNever(kind);\n }\n }\n // A cache of completion entries for keywords, these do not change between sessions\n var _keywordCompletions = [];\n var allKeywordsCompletions = ts.memoize(function () {\n var res = [];\n for (var i = 81 /* FirstKeyword */; i <= 158 /* LastKeyword */; i++) {\n res.push({\n name: ts.tokenToString(i),\n kind: \"keyword\" /* keyword */,\n kindModifiers: \"\" /* none */,\n sortText: SortText.GlobalsOrKeywords\n });\n }\n return res;\n });\n function getKeywordCompletions(keywordFilter, filterOutTsOnlyKeywords) {\n if (!filterOutTsOnlyKeywords)\n return getTypescriptKeywordCompletions(keywordFilter);\n var index = keywordFilter + 7 /* Last */ + 1;\n return _keywordCompletions[index] ||\n (_keywordCompletions[index] = getTypescriptKeywordCompletions(keywordFilter)\n .filter(function (entry) { return !isTypeScriptOnlyKeyword(ts.stringToToken(entry.name)); }));\n }\n function getTypescriptKeywordCompletions(keywordFilter) {\n return _keywordCompletions[keywordFilter] || (_keywordCompletions[keywordFilter] = allKeywordsCompletions().filter(function (entry) {\n var kind = ts.stringToToken(entry.name);\n switch (keywordFilter) {\n case 0 /* None */:\n return false;\n case 1 /* All */:\n return isFunctionLikeBodyKeyword(kind)\n || kind === 134 /* DeclareKeyword */\n || kind === 140 /* ModuleKeyword */\n || kind === 150 /* TypeKeyword */\n || kind === 141 /* NamespaceKeyword */\n || ts.isTypeKeyword(kind) && kind !== 151 /* UndefinedKeyword */;\n case 5 /* FunctionLikeBodyKeywords */:\n return isFunctionLikeBodyKeyword(kind);\n case 2 /* ClassElementKeywords */:\n return isClassMemberCompletionKeyword(kind);\n case 3 /* InterfaceElementKeywords */:\n return isInterfaceOrTypeLiteralCompletionKeyword(kind);\n case 4 /* ConstructorParameterKeywords */:\n return ts.isParameterPropertyModifier(kind);\n case 6 /* TypeAssertionKeywords */:\n return ts.isTypeKeyword(kind) || kind === 85 /* ConstKeyword */;\n case 7 /* TypeKeywords */:\n return ts.isTypeKeyword(kind);\n default:\n return ts.Debug.assertNever(keywordFilter);\n }\n }));\n }\n function isTypeScriptOnlyKeyword(kind) {\n switch (kind) {\n case 126 /* AbstractKeyword */:\n case 129 /* AnyKeyword */:\n case 156 /* BigIntKeyword */:\n case 132 /* BooleanKeyword */:\n case 134 /* DeclareKeyword */:\n case 92 /* EnumKeyword */:\n case 155 /* GlobalKeyword */:\n case 117 /* ImplementsKeyword */:\n case 136 /* InferKeyword */:\n case 118 /* InterfaceKeyword */:\n case 138 /* IsKeyword */:\n case 139 /* KeyOfKeyword */:\n case 140 /* ModuleKeyword */:\n case 141 /* NamespaceKeyword */:\n case 142 /* NeverKeyword */:\n case 145 /* NumberKeyword */:\n case 146 /* ObjectKeyword */:\n case 157 /* OverrideKeyword */:\n case 121 /* PrivateKeyword */:\n case 122 /* ProtectedKeyword */:\n case 123 /* PublicKeyword */:\n case 143 /* ReadonlyKeyword */:\n case 148 /* StringKeyword */:\n case 149 /* SymbolKeyword */:\n case 150 /* TypeKeyword */:\n case 152 /* UniqueKeyword */:\n case 153 /* UnknownKeyword */:\n return true;\n default:\n return false;\n }\n }\n function isInterfaceOrTypeLiteralCompletionKeyword(kind) {\n return kind === 143 /* ReadonlyKeyword */;\n }\n function isClassMemberCompletionKeyword(kind) {\n switch (kind) {\n case 126 /* AbstractKeyword */:\n case 133 /* ConstructorKeyword */:\n case 135 /* GetKeyword */:\n case 147 /* SetKeyword */:\n case 130 /* AsyncKeyword */:\n case 134 /* DeclareKeyword */:\n case 157 /* OverrideKeyword */:\n return true;\n default:\n return ts.isClassMemberModifier(kind);\n }\n }\n function isFunctionLikeBodyKeyword(kind) {\n return kind === 130 /* AsyncKeyword */\n || kind === 131 /* AwaitKeyword */\n || kind === 127 /* AsKeyword */\n || !ts.isContextualKeyword(kind) && !isClassMemberCompletionKeyword(kind);\n }\n function keywordForNode(node) {\n return ts.isIdentifier(node) ? node.originalKeywordKind || 0 /* Unknown */ : node.kind;\n }\n /** Get the corresponding JSDocTag node if the position is in a jsDoc comment */\n function getJsDocTagAtPosition(node, position) {\n var jsdoc = ts.findAncestor(node, ts.isJSDoc);\n return jsdoc && jsdoc.tags && (ts.rangeContainsPosition(jsdoc, position) ? ts.findLast(jsdoc.tags, function (tag) { return tag.pos < position; }) : undefined);\n }\n function getPropertiesForObjectExpression(contextualType, completionsType, obj, checker) {\n var hasCompletionsType = completionsType && completionsType !== contextualType;\n var type = hasCompletionsType && !(completionsType.flags & 3 /* AnyOrUnknown */)\n ? checker.getUnionType([contextualType, completionsType])\n : contextualType;\n var properties = type.isUnion()\n ? checker.getAllPossiblePropertiesOfTypes(type.types.filter(function (memberType) {\n // If we're providing completions for an object literal, skip primitive, array-like, or callable types since those shouldn't be implemented by object literals.\n return !(memberType.flags & 131068 /* Primitive */ ||\n checker.isArrayLikeType(memberType) ||\n ts.typeHasCallOrConstructSignatures(memberType, checker) ||\n checker.isTypeInvalidDueToUnionDiscriminant(memberType, obj));\n }))\n : type.getApparentProperties();\n return hasCompletionsType ? properties.filter(hasDeclarationOtherThanSelf) : properties;\n // Filter out members whose only declaration is the object literal itself to avoid\n // self-fulfilling completions like:\n //\n // function f(x: T) {}\n // f({ abc/**/: \"\" }) // `abc` is a member of `T` but only because it declares itself\n function hasDeclarationOtherThanSelf(member) {\n return ts.some(member.declarations, function (decl) { return decl.parent !== obj; });\n }\n }\n Completions.getPropertiesForObjectExpression = getPropertiesForObjectExpression;\n /**\n * Gets all properties on a type, but if that type is a union of several types,\n * excludes array-like types or callable/constructable types.\n */\n function getPropertiesForCompletion(type, checker) {\n return type.isUnion()\n ? ts.Debug.checkEachDefined(checker.getAllPossiblePropertiesOfTypes(type.types), \"getAllPossiblePropertiesOfTypes() should all be defined\")\n : ts.Debug.checkEachDefined(type.getApparentProperties(), \"getApparentProperties() should all be defined\");\n }\n /**\n * Returns the immediate owning class declaration of a context token,\n * on the condition that one exists and that the context implies completion should be given.\n */\n function tryGetObjectTypeDeclarationCompletionContainer(sourceFile, contextToken, location, position) {\n // class c { method() { } | method2() { } }\n switch (location.kind) {\n case 343 /* SyntaxList */:\n return ts.tryCast(location.parent, ts.isObjectTypeDeclaration);\n case 1 /* EndOfFileToken */:\n var cls = ts.tryCast(ts.lastOrUndefined(ts.cast(location.parent, ts.isSourceFile).statements), ts.isObjectTypeDeclaration);\n if (cls && !ts.findChildOfKind(cls, 19 /* CloseBraceToken */, sourceFile)) {\n return cls;\n }\n break;\n case 79 /* Identifier */: {\n // class c { public prop = c| }\n if (ts.isPropertyDeclaration(location.parent) && location.parent.initializer === location) {\n return undefined;\n }\n // class c extends React.Component { a: () => 1\\n compon| }\n if (isFromObjectTypeDeclaration(location)) {\n return ts.findAncestor(location, ts.isObjectTypeDeclaration);\n }\n }\n }\n if (!contextToken)\n return undefined;\n // class C { blah; constructor/**/ } and so on\n if (location.kind === 133 /* ConstructorKeyword */\n // class C { blah \\n constructor/**/ }\n || (ts.isIdentifier(contextToken) && ts.isPropertyDeclaration(contextToken.parent) && ts.isClassLike(location))) {\n return ts.findAncestor(contextToken, ts.isClassLike);\n }\n switch (contextToken.kind) {\n case 63 /* EqualsToken */: // class c { public prop = | /* global completions */ }\n return undefined;\n case 26 /* SemicolonToken */: // class c {getValue(): number; | }\n case 19 /* CloseBraceToken */: // class c { method() { } | }\n // class c { method() { } b| }\n return isFromObjectTypeDeclaration(location) && location.parent.name === location\n ? location.parent.parent\n : ts.tryCast(location, ts.isObjectTypeDeclaration);\n case 18 /* OpenBraceToken */: // class c { |\n case 27 /* CommaToken */: // class c {getValue(): number, | }\n return ts.tryCast(contextToken.parent, ts.isObjectTypeDeclaration);\n default:\n if (!isFromObjectTypeDeclaration(contextToken)) {\n // class c extends React.Component { a: () => 1\\n| }\n if (ts.getLineAndCharacterOfPosition(sourceFile, contextToken.getEnd()).line !== ts.getLineAndCharacterOfPosition(sourceFile, position).line && ts.isObjectTypeDeclaration(location)) {\n return location;\n }\n return undefined;\n }\n var isValidKeyword = ts.isClassLike(contextToken.parent.parent) ? isClassMemberCompletionKeyword : isInterfaceOrTypeLiteralCompletionKeyword;\n return (isValidKeyword(contextToken.kind) || contextToken.kind === 41 /* AsteriskToken */ || ts.isIdentifier(contextToken) && isValidKeyword(ts.stringToToken(contextToken.text))) // TODO: GH#18217\n ? contextToken.parent.parent : undefined;\n }\n }\n function tryGetTypeLiteralNode(node) {\n if (!node)\n return undefined;\n var parent = node.parent;\n switch (node.kind) {\n case 18 /* OpenBraceToken */:\n if (ts.isTypeLiteralNode(parent)) {\n return parent;\n }\n break;\n case 26 /* SemicolonToken */:\n case 27 /* CommaToken */:\n case 79 /* Identifier */:\n if (parent.kind === 164 /* PropertySignature */ && ts.isTypeLiteralNode(parent.parent)) {\n return parent.parent;\n }\n break;\n }\n return undefined;\n }\n function getConstraintOfTypeArgumentProperty(node, checker) {\n if (!node)\n return undefined;\n if (ts.isTypeNode(node) && ts.isTypeReferenceType(node.parent)) {\n return checker.getTypeArgumentConstraint(node);\n }\n var t = getConstraintOfTypeArgumentProperty(node.parent, checker);\n if (!t)\n return undefined;\n switch (node.kind) {\n case 164 /* PropertySignature */:\n return checker.getTypeOfPropertyOfContextualType(t, node.symbol.escapedName);\n case 186 /* IntersectionType */:\n case 180 /* TypeLiteral */:\n case 185 /* UnionType */:\n return t;\n }\n }\n // TODO: GH#19856 Would like to return `node is Node & { parent: (ClassElement | TypeElement) & { parent: ObjectTypeDeclaration } }` but then compilation takes > 10 minutes\n function isFromObjectTypeDeclaration(node) {\n return node.parent && ts.isClassOrTypeElement(node.parent) && ts.isObjectTypeDeclaration(node.parent.parent);\n }\n function isValidTrigger(sourceFile, triggerCharacter, contextToken, position) {\n switch (triggerCharacter) {\n case \".\":\n case \"@\":\n return true;\n case '\"':\n case \"'\":\n case \"`\":\n // Only automatically bring up completions if this is an opening quote.\n return !!contextToken && ts.isStringLiteralOrTemplate(contextToken) && position === contextToken.getStart(sourceFile) + 1;\n case \"#\":\n return !!contextToken && ts.isPrivateIdentifier(contextToken) && !!ts.getContainingClass(contextToken);\n case \"<\":\n // Opening JSX tag\n return !!contextToken && contextToken.kind === 29 /* LessThanToken */ && (!ts.isBinaryExpression(contextToken.parent) || binaryExpressionMayBeOpenTag(contextToken.parent));\n case \"/\":\n return !!contextToken && (ts.isStringLiteralLike(contextToken)\n ? !!ts.tryGetImportFromModuleSpecifier(contextToken)\n : contextToken.kind === 43 /* SlashToken */ && ts.isJsxClosingElement(contextToken.parent));\n case \" \":\n return !!contextToken && ts.isImportKeyword(contextToken) && contextToken.parent.kind === 300 /* SourceFile */;\n default:\n return ts.Debug.assertNever(triggerCharacter);\n }\n }\n function binaryExpressionMayBeOpenTag(_a) {\n var left = _a.left;\n return ts.nodeIsMissing(left);\n }\n /** Determines if a type is exactly the same type resolved by the global 'self', 'global', or 'globalThis'. */\n function isProbablyGlobalType(type, sourceFile, checker) {\n // The type of `self` and `window` is the same in lib.dom.d.ts, but `window` does not exist in\n // lib.webworker.d.ts, so checking against `self` is also a check against `window` when it exists.\n var selfSymbol = checker.resolveName(\"self\", /*location*/ undefined, 111551 /* Value */, /*excludeGlobals*/ false);\n if (selfSymbol && checker.getTypeOfSymbolAtLocation(selfSymbol, sourceFile) === type) {\n return true;\n }\n var globalSymbol = checker.resolveName(\"global\", /*location*/ undefined, 111551 /* Value */, /*excludeGlobals*/ false);\n if (globalSymbol && checker.getTypeOfSymbolAtLocation(globalSymbol, sourceFile) === type) {\n return true;\n }\n var globalThisSymbol = checker.resolveName(\"globalThis\", /*location*/ undefined, 111551 /* Value */, /*excludeGlobals*/ false);\n if (globalThisSymbol && checker.getTypeOfSymbolAtLocation(globalThisSymbol, sourceFile) === type) {\n return true;\n }\n return false;\n }\n function isStaticProperty(symbol) {\n return !!(symbol.valueDeclaration && ts.getEffectiveModifierFlags(symbol.valueDeclaration) & 32 /* Static */ && ts.isClassLike(symbol.valueDeclaration.parent));\n }\n function tryGetObjectLiteralContextualType(node, typeChecker) {\n var type = typeChecker.getContextualType(node);\n if (type) {\n return type;\n }\n if (ts.isBinaryExpression(node.parent) && node.parent.operatorToken.kind === 63 /* EqualsToken */ && node === node.parent.left) {\n // Object literal is assignment pattern: ({ | } = x)\n return typeChecker.getTypeAtLocation(node.parent);\n }\n return undefined;\n }\n function getImportCompletionNode(contextToken) {\n var candidate = getCandidate();\n return candidate === 154 /* FromKeyword */ || candidate && ts.rangeIsOnSingleLine(candidate, candidate.getSourceFile()) ? candidate : undefined;\n function getCandidate() {\n var parent = contextToken.parent;\n if (ts.isImportEqualsDeclaration(parent)) {\n return isModuleSpecifierMissingOrEmpty(parent.moduleReference) ? parent : undefined;\n }\n if (ts.isNamedImports(parent) || ts.isNamespaceImport(parent)) {\n if (isModuleSpecifierMissingOrEmpty(parent.parent.parent.moduleSpecifier) && (ts.isNamespaceImport(parent) || parent.elements.length < 2) && !parent.parent.name) {\n // At `import { ... } |` or `import * as Foo |`, the only possible completion is `from`\n return contextToken.kind === 19 /* CloseBraceToken */ || contextToken.kind === 79 /* Identifier */\n ? 154 /* FromKeyword */\n : parent.parent.parent;\n }\n return undefined;\n }\n if (ts.isImportKeyword(contextToken) && ts.isSourceFile(parent)) {\n // A lone import keyword with nothing following it does not parse as a statement at all\n return contextToken;\n }\n if (ts.isImportKeyword(contextToken) && ts.isImportDeclaration(parent)) {\n // `import s| from`\n return isModuleSpecifierMissingOrEmpty(parent.moduleSpecifier) ? parent : undefined;\n }\n return undefined;\n }\n }\n function isModuleSpecifierMissingOrEmpty(specifier) {\n var _a;\n if (ts.nodeIsMissing(specifier))\n return true;\n return !((_a = ts.tryCast(ts.isExternalModuleReference(specifier) ? specifier.expression : specifier, ts.isStringLiteralLike)) === null || _a === void 0 ? void 0 : _a.text);\n }\n function getVariableDeclaration(property) {\n var variableDeclaration = ts.findAncestor(property, function (node) {\n return ts.isFunctionBlock(node) || isArrowFunctionBody(node) || ts.isBindingPattern(node)\n ? \"quit\"\n : ts.isVariableDeclaration(node);\n });\n return variableDeclaration;\n }\n function isArrowFunctionBody(node) {\n return node.parent && ts.isArrowFunction(node.parent) && node.parent.body === node;\n }\n ;\n /** True if symbol is a type or a module containing at least one type. */\n function symbolCanBeReferencedAtTypeLocation(symbol, checker, seenModules) {\n if (seenModules === void 0) { seenModules = new ts.Map(); }\n var sym = ts.skipAlias(symbol.exportSymbol || symbol, checker);\n return !!(sym.flags & 788968 /* Type */) || checker.isUnknownSymbol(sym) ||\n !!(sym.flags & 1536 /* Module */) && ts.addToSeen(seenModules, ts.getSymbolId(sym)) &&\n checker.getExportsOfModule(sym).some(function (e) { return symbolCanBeReferencedAtTypeLocation(e, checker, seenModules); });\n }\n function isDeprecated(symbol, checker) {\n var declarations = ts.skipAlias(symbol, checker).declarations;\n return !!ts.length(declarations) && ts.every(declarations, ts.isDeprecatedDeclaration);\n }\n /**\n * True if the first character of `lowercaseCharacters` is the first character\n * of some \"word\" in `identiferString` (where the string is split into \"words\"\n * by camelCase and snake_case segments), then if the remaining characters of\n * `lowercaseCharacters` appear, in order, in the rest of `identifierString`.\n *\n * True:\n * 'state' in 'useState'\n * 'sae' in 'useState'\n * 'viable' in 'ENVIRONMENT_VARIABLE'\n *\n * False:\n * 'staet' in 'useState'\n * 'tate' in 'useState'\n * 'ment' in 'ENVIRONMENT_VARIABLE'\n */\n function charactersFuzzyMatchInString(identifierString, lowercaseCharacters) {\n if (lowercaseCharacters.length === 0) {\n return true;\n }\n var matchedFirstCharacter = false;\n var prevChar;\n var characterIndex = 0;\n var len = identifierString.length;\n for (var strIndex = 0; strIndex < len; strIndex++) {\n var strChar = identifierString.charCodeAt(strIndex);\n var testChar = lowercaseCharacters.charCodeAt(characterIndex);\n if (strChar === testChar || strChar === toUpperCharCode(testChar)) {\n matchedFirstCharacter || (matchedFirstCharacter = prevChar === undefined || // Beginning of word\n 97 /* a */ <= prevChar && prevChar <= 122 /* z */ && 65 /* A */ <= strChar && strChar <= 90 /* Z */ || // camelCase transition\n prevChar === 95 /* _ */ && strChar !== 95 /* _ */); // snake_case transition\n if (matchedFirstCharacter) {\n characterIndex++;\n }\n if (characterIndex === lowercaseCharacters.length) {\n return true;\n }\n }\n prevChar = strChar;\n }\n // Did not find all characters\n return false;\n }\n function toUpperCharCode(charCode) {\n if (97 /* a */ <= charCode && charCode <= 122 /* z */) {\n return charCode - 32;\n }\n return charCode;\n }\n })(Completions = ts.Completions || (ts.Completions = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /* @internal */\n var DocumentHighlights;\n (function (DocumentHighlights) {\n function getDocumentHighlights(program, cancellationToken, sourceFile, position, sourceFilesToSearch) {\n var node = ts.getTouchingPropertyName(sourceFile, position);\n if (node.parent && (ts.isJsxOpeningElement(node.parent) && node.parent.tagName === node || ts.isJsxClosingElement(node.parent))) {\n // For a JSX element, just highlight the matching tag, not all references.\n var _a = node.parent.parent, openingElement = _a.openingElement, closingElement = _a.closingElement;\n var highlightSpans = [openingElement, closingElement].map(function (_a) {\n var tagName = _a.tagName;\n return getHighlightSpanForNode(tagName, sourceFile);\n });\n return [{ fileName: sourceFile.fileName, highlightSpans: highlightSpans }];\n }\n return getSemanticDocumentHighlights(position, node, program, cancellationToken, sourceFilesToSearch) || getSyntacticDocumentHighlights(node, sourceFile);\n }\n DocumentHighlights.getDocumentHighlights = getDocumentHighlights;\n function getHighlightSpanForNode(node, sourceFile) {\n return {\n fileName: sourceFile.fileName,\n textSpan: ts.createTextSpanFromNode(node, sourceFile),\n kind: \"none\" /* none */\n };\n }\n function getSemanticDocumentHighlights(position, node, program, cancellationToken, sourceFilesToSearch) {\n var sourceFilesSet = new ts.Set(sourceFilesToSearch.map(function (f) { return f.fileName; }));\n var referenceEntries = ts.FindAllReferences.getReferenceEntriesForNode(position, node, program, sourceFilesToSearch, cancellationToken, /*options*/ undefined, sourceFilesSet);\n if (!referenceEntries)\n return undefined;\n var map = ts.arrayToMultiMap(referenceEntries.map(ts.FindAllReferences.toHighlightSpan), function (e) { return e.fileName; }, function (e) { return e.span; });\n var getCanonicalFileName = ts.createGetCanonicalFileName(program.useCaseSensitiveFileNames());\n return ts.mapDefined(ts.arrayFrom(map.entries()), function (_a) {\n var fileName = _a[0], highlightSpans = _a[1];\n if (!sourceFilesSet.has(fileName)) {\n if (!program.redirectTargetsMap.has(ts.toPath(fileName, program.getCurrentDirectory(), getCanonicalFileName))) {\n return undefined;\n }\n var redirectTarget_1 = program.getSourceFile(fileName);\n var redirect = ts.find(sourceFilesToSearch, function (f) { return !!f.redirectInfo && f.redirectInfo.redirectTarget === redirectTarget_1; });\n fileName = redirect.fileName;\n ts.Debug.assert(sourceFilesSet.has(fileName));\n }\n return { fileName: fileName, highlightSpans: highlightSpans };\n });\n }\n function getSyntacticDocumentHighlights(node, sourceFile) {\n var highlightSpans = getHighlightSpans(node, sourceFile);\n return highlightSpans && [{ fileName: sourceFile.fileName, highlightSpans: highlightSpans }];\n }\n function getHighlightSpans(node, sourceFile) {\n switch (node.kind) {\n case 99 /* IfKeyword */:\n case 91 /* ElseKeyword */:\n return ts.isIfStatement(node.parent) ? getIfElseOccurrences(node.parent, sourceFile) : undefined;\n case 105 /* ReturnKeyword */:\n return useParent(node.parent, ts.isReturnStatement, getReturnOccurrences);\n case 109 /* ThrowKeyword */:\n return useParent(node.parent, ts.isThrowStatement, getThrowOccurrences);\n case 111 /* TryKeyword */:\n case 83 /* CatchKeyword */:\n case 96 /* FinallyKeyword */:\n var tryStatement = node.kind === 83 /* CatchKeyword */ ? node.parent.parent : node.parent;\n return useParent(tryStatement, ts.isTryStatement, getTryCatchFinallyOccurrences);\n case 107 /* SwitchKeyword */:\n return useParent(node.parent, ts.isSwitchStatement, getSwitchCaseDefaultOccurrences);\n case 82 /* CaseKeyword */:\n case 88 /* DefaultKeyword */: {\n if (ts.isDefaultClause(node.parent) || ts.isCaseClause(node.parent)) {\n return useParent(node.parent.parent.parent, ts.isSwitchStatement, getSwitchCaseDefaultOccurrences);\n }\n return undefined;\n }\n case 81 /* BreakKeyword */:\n case 86 /* ContinueKeyword */:\n return useParent(node.parent, ts.isBreakOrContinueStatement, getBreakOrContinueStatementOccurrences);\n case 97 /* ForKeyword */:\n case 115 /* WhileKeyword */:\n case 90 /* DoKeyword */:\n return useParent(node.parent, function (n) { return ts.isIterationStatement(n, /*lookInLabeledStatements*/ true); }, getLoopBreakContinueOccurrences);\n case 133 /* ConstructorKeyword */:\n return getFromAllDeclarations(ts.isConstructorDeclaration, [133 /* ConstructorKeyword */]);\n case 135 /* GetKeyword */:\n case 147 /* SetKeyword */:\n return getFromAllDeclarations(ts.isAccessor, [135 /* GetKeyword */, 147 /* SetKeyword */]);\n case 131 /* AwaitKeyword */:\n return useParent(node.parent, ts.isAwaitExpression, getAsyncAndAwaitOccurrences);\n case 130 /* AsyncKeyword */:\n return highlightSpans(getAsyncAndAwaitOccurrences(node));\n case 125 /* YieldKeyword */:\n return highlightSpans(getYieldOccurrences(node));\n default:\n return ts.isModifierKind(node.kind) && (ts.isDeclaration(node.parent) || ts.isVariableStatement(node.parent))\n ? highlightSpans(getModifierOccurrences(node.kind, node.parent))\n : undefined;\n }\n function getFromAllDeclarations(nodeTest, keywords) {\n return useParent(node.parent, nodeTest, function (decl) { return ts.mapDefined(decl.symbol.declarations, function (d) {\n return nodeTest(d) ? ts.find(d.getChildren(sourceFile), function (c) { return ts.contains(keywords, c.kind); }) : undefined;\n }); });\n }\n function useParent(node, nodeTest, getNodes) {\n return nodeTest(node) ? highlightSpans(getNodes(node, sourceFile)) : undefined;\n }\n function highlightSpans(nodes) {\n return nodes && nodes.map(function (node) { return getHighlightSpanForNode(node, sourceFile); });\n }\n }\n /**\n * Aggregates all throw-statements within this node *without* crossing\n * into function boundaries and try-blocks with catch-clauses.\n */\n function aggregateOwnedThrowStatements(node) {\n if (ts.isThrowStatement(node)) {\n return [node];\n }\n else if (ts.isTryStatement(node)) {\n // Exceptions thrown within a try block lacking a catch clause are \"owned\" in the current context.\n return ts.concatenate(node.catchClause ? aggregateOwnedThrowStatements(node.catchClause) : node.tryBlock && aggregateOwnedThrowStatements(node.tryBlock), node.finallyBlock && aggregateOwnedThrowStatements(node.finallyBlock));\n }\n // Do not cross function boundaries.\n return ts.isFunctionLike(node) ? undefined : flatMapChildren(node, aggregateOwnedThrowStatements);\n }\n /**\n * For lack of a better name, this function takes a throw statement and returns the\n * nearest ancestor that is a try-block (whose try statement has a catch clause),\n * function-block, or source file.\n */\n function getThrowStatementOwner(throwStatement) {\n var child = throwStatement;\n while (child.parent) {\n var parent = child.parent;\n if (ts.isFunctionBlock(parent) || parent.kind === 300 /* SourceFile */) {\n return parent;\n }\n // A throw-statement is only owned by a try-statement if the try-statement has\n // a catch clause, and if the throw-statement occurs within the try block.\n if (ts.isTryStatement(parent) && parent.tryBlock === child && parent.catchClause) {\n return child;\n }\n child = parent;\n }\n return undefined;\n }\n function aggregateAllBreakAndContinueStatements(node) {\n return ts.isBreakOrContinueStatement(node) ? [node] : ts.isFunctionLike(node) ? undefined : flatMapChildren(node, aggregateAllBreakAndContinueStatements);\n }\n function flatMapChildren(node, cb) {\n var result = [];\n node.forEachChild(function (child) {\n var value = cb(child);\n if (value !== undefined) {\n result.push.apply(result, ts.toArray(value));\n }\n });\n return result;\n }\n function ownsBreakOrContinueStatement(owner, statement) {\n var actualOwner = getBreakOrContinueOwner(statement);\n return !!actualOwner && actualOwner === owner;\n }\n function getBreakOrContinueOwner(statement) {\n return ts.findAncestor(statement, function (node) {\n switch (node.kind) {\n case 247 /* SwitchStatement */:\n if (statement.kind === 243 /* ContinueStatement */) {\n return false;\n }\n // falls through\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 239 /* WhileStatement */:\n case 238 /* DoStatement */:\n return !statement.label || isLabeledBy(node, statement.label.escapedText);\n default:\n // Don't cross function boundaries.\n // TODO: GH#20090\n return ts.isFunctionLike(node) && \"quit\";\n }\n });\n }\n function getModifierOccurrences(modifier, declaration) {\n return ts.mapDefined(getNodesToSearchForModifier(declaration, ts.modifierToFlag(modifier)), function (node) { return ts.findModifier(node, modifier); });\n }\n function getNodesToSearchForModifier(declaration, modifierFlag) {\n // Types of node whose children might have modifiers.\n var container = declaration.parent;\n switch (container.kind) {\n case 260 /* ModuleBlock */:\n case 300 /* SourceFile */:\n case 233 /* Block */:\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n // Container is either a class declaration or the declaration is a classDeclaration\n if (modifierFlag & 128 /* Abstract */ && ts.isClassDeclaration(declaration)) {\n return __spreadArray(__spreadArray([], declaration.members, true), [declaration], false);\n }\n else {\n return container.statements;\n }\n case 169 /* Constructor */:\n case 167 /* MethodDeclaration */:\n case 254 /* FunctionDeclaration */:\n return __spreadArray(__spreadArray([], container.parameters, true), (ts.isClassLike(container.parent) ? container.parent.members : []), true);\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 180 /* TypeLiteral */:\n var nodes = container.members;\n // If we're an accessibility modifier, we're in an instance member and should search\n // the constructor's parameter list for instance members as well.\n if (modifierFlag & (28 /* AccessibilityModifier */ | 64 /* Readonly */)) {\n var constructor = ts.find(container.members, ts.isConstructorDeclaration);\n if (constructor) {\n return __spreadArray(__spreadArray([], nodes, true), constructor.parameters, true);\n }\n }\n else if (modifierFlag & 128 /* Abstract */) {\n return __spreadArray(__spreadArray([], nodes, true), [container], false);\n }\n return nodes;\n // Syntactically invalid positions that the parser might produce anyway\n case 203 /* ObjectLiteralExpression */:\n return undefined;\n default:\n ts.Debug.assertNever(container, \"Invalid container kind.\");\n }\n }\n function pushKeywordIf(keywordList, token) {\n var expected = [];\n for (var _i = 2; _i < arguments.length; _i++) {\n expected[_i - 2] = arguments[_i];\n }\n if (token && ts.contains(expected, token.kind)) {\n keywordList.push(token);\n return true;\n }\n return false;\n }\n function getLoopBreakContinueOccurrences(loopNode) {\n var keywords = [];\n if (pushKeywordIf(keywords, loopNode.getFirstToken(), 97 /* ForKeyword */, 115 /* WhileKeyword */, 90 /* DoKeyword */)) {\n // If we succeeded and got a do-while loop, then start looking for a 'while' keyword.\n if (loopNode.kind === 238 /* DoStatement */) {\n var loopTokens = loopNode.getChildren();\n for (var i = loopTokens.length - 1; i >= 0; i--) {\n if (pushKeywordIf(keywords, loopTokens[i], 115 /* WhileKeyword */)) {\n break;\n }\n }\n }\n }\n ts.forEach(aggregateAllBreakAndContinueStatements(loopNode.statement), function (statement) {\n if (ownsBreakOrContinueStatement(loopNode, statement)) {\n pushKeywordIf(keywords, statement.getFirstToken(), 81 /* BreakKeyword */, 86 /* ContinueKeyword */);\n }\n });\n return keywords;\n }\n function getBreakOrContinueStatementOccurrences(breakOrContinueStatement) {\n var owner = getBreakOrContinueOwner(breakOrContinueStatement);\n if (owner) {\n switch (owner.kind) {\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n return getLoopBreakContinueOccurrences(owner);\n case 247 /* SwitchStatement */:\n return getSwitchCaseDefaultOccurrences(owner);\n }\n }\n return undefined;\n }\n function getSwitchCaseDefaultOccurrences(switchStatement) {\n var keywords = [];\n pushKeywordIf(keywords, switchStatement.getFirstToken(), 107 /* SwitchKeyword */);\n // Go through each clause in the switch statement, collecting the 'case'/'default' keywords.\n ts.forEach(switchStatement.caseBlock.clauses, function (clause) {\n pushKeywordIf(keywords, clause.getFirstToken(), 82 /* CaseKeyword */, 88 /* DefaultKeyword */);\n ts.forEach(aggregateAllBreakAndContinueStatements(clause), function (statement) {\n if (ownsBreakOrContinueStatement(switchStatement, statement)) {\n pushKeywordIf(keywords, statement.getFirstToken(), 81 /* BreakKeyword */);\n }\n });\n });\n return keywords;\n }\n function getTryCatchFinallyOccurrences(tryStatement, sourceFile) {\n var keywords = [];\n pushKeywordIf(keywords, tryStatement.getFirstToken(), 111 /* TryKeyword */);\n if (tryStatement.catchClause) {\n pushKeywordIf(keywords, tryStatement.catchClause.getFirstToken(), 83 /* CatchKeyword */);\n }\n if (tryStatement.finallyBlock) {\n var finallyKeyword = ts.findChildOfKind(tryStatement, 96 /* FinallyKeyword */, sourceFile);\n pushKeywordIf(keywords, finallyKeyword, 96 /* FinallyKeyword */);\n }\n return keywords;\n }\n function getThrowOccurrences(throwStatement, sourceFile) {\n var owner = getThrowStatementOwner(throwStatement);\n if (!owner) {\n return undefined;\n }\n var keywords = [];\n ts.forEach(aggregateOwnedThrowStatements(owner), function (throwStatement) {\n keywords.push(ts.findChildOfKind(throwStatement, 109 /* ThrowKeyword */, sourceFile));\n });\n // If the \"owner\" is a function, then we equate 'return' and 'throw' statements in their\n // ability to \"jump out\" of the function, and include occurrences for both.\n if (ts.isFunctionBlock(owner)) {\n ts.forEachReturnStatement(owner, function (returnStatement) {\n keywords.push(ts.findChildOfKind(returnStatement, 105 /* ReturnKeyword */, sourceFile));\n });\n }\n return keywords;\n }\n function getReturnOccurrences(returnStatement, sourceFile) {\n var func = ts.getContainingFunction(returnStatement);\n if (!func) {\n return undefined;\n }\n var keywords = [];\n ts.forEachReturnStatement(ts.cast(func.body, ts.isBlock), function (returnStatement) {\n keywords.push(ts.findChildOfKind(returnStatement, 105 /* ReturnKeyword */, sourceFile));\n });\n // Include 'throw' statements that do not occur within a try block.\n ts.forEach(aggregateOwnedThrowStatements(func.body), function (throwStatement) {\n keywords.push(ts.findChildOfKind(throwStatement, 109 /* ThrowKeyword */, sourceFile));\n });\n return keywords;\n }\n function getAsyncAndAwaitOccurrences(node) {\n var func = ts.getContainingFunction(node);\n if (!func) {\n return undefined;\n }\n var keywords = [];\n if (func.modifiers) {\n func.modifiers.forEach(function (modifier) {\n pushKeywordIf(keywords, modifier, 130 /* AsyncKeyword */);\n });\n }\n ts.forEachChild(func, function (child) {\n traverseWithoutCrossingFunction(child, function (node) {\n if (ts.isAwaitExpression(node)) {\n pushKeywordIf(keywords, node.getFirstToken(), 131 /* AwaitKeyword */);\n }\n });\n });\n return keywords;\n }\n function getYieldOccurrences(node) {\n var func = ts.getContainingFunction(node);\n if (!func) {\n return undefined;\n }\n var keywords = [];\n ts.forEachChild(func, function (child) {\n traverseWithoutCrossingFunction(child, function (node) {\n if (ts.isYieldExpression(node)) {\n pushKeywordIf(keywords, node.getFirstToken(), 125 /* YieldKeyword */);\n }\n });\n });\n return keywords;\n }\n // Do not cross function/class/interface/module/type boundaries.\n function traverseWithoutCrossingFunction(node, cb) {\n cb(node);\n if (!ts.isFunctionLike(node) && !ts.isClassLike(node) && !ts.isInterfaceDeclaration(node) && !ts.isModuleDeclaration(node) && !ts.isTypeAliasDeclaration(node) && !ts.isTypeNode(node)) {\n ts.forEachChild(node, function (child) { return traverseWithoutCrossingFunction(child, cb); });\n }\n }\n function getIfElseOccurrences(ifStatement, sourceFile) {\n var keywords = getIfElseKeywords(ifStatement, sourceFile);\n var result = [];\n // We'd like to highlight else/ifs together if they are only separated by whitespace\n // (i.e. the keywords are separated by no comments, no newlines).\n for (var i = 0; i < keywords.length; i++) {\n if (keywords[i].kind === 91 /* ElseKeyword */ && i < keywords.length - 1) {\n var elseKeyword = keywords[i];\n var ifKeyword = keywords[i + 1]; // this *should* always be an 'if' keyword.\n var shouldCombineElseAndIf = true;\n // Avoid recalculating getStart() by iterating backwards.\n for (var j = ifKeyword.getStart(sourceFile) - 1; j >= elseKeyword.end; j--) {\n if (!ts.isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(j))) {\n shouldCombineElseAndIf = false;\n break;\n }\n }\n if (shouldCombineElseAndIf) {\n result.push({\n fileName: sourceFile.fileName,\n textSpan: ts.createTextSpanFromBounds(elseKeyword.getStart(), ifKeyword.end),\n kind: \"reference\" /* reference */\n });\n i++; // skip the next keyword\n continue;\n }\n }\n // Ordinary case: just highlight the keyword.\n result.push(getHighlightSpanForNode(keywords[i], sourceFile));\n }\n return result;\n }\n function getIfElseKeywords(ifStatement, sourceFile) {\n var keywords = [];\n // Traverse upwards through all parent if-statements linked by their else-branches.\n while (ts.isIfStatement(ifStatement.parent) && ifStatement.parent.elseStatement === ifStatement) {\n ifStatement = ifStatement.parent;\n }\n // Now traverse back down through the else branches, aggregating if/else keywords of if-statements.\n while (true) {\n var children = ifStatement.getChildren(sourceFile);\n pushKeywordIf(keywords, children[0], 99 /* IfKeyword */);\n // Generally the 'else' keyword is second-to-last, so we traverse backwards.\n for (var i = children.length - 1; i >= 0; i--) {\n if (pushKeywordIf(keywords, children[i], 91 /* ElseKeyword */)) {\n break;\n }\n }\n if (!ifStatement.elseStatement || !ts.isIfStatement(ifStatement.elseStatement)) {\n break;\n }\n ifStatement = ifStatement.elseStatement;\n }\n return keywords;\n }\n /**\n * Whether or not a 'node' is preceded by a label of the given string.\n * Note: 'node' cannot be a SourceFile.\n */\n function isLabeledBy(node, labelName) {\n return !!ts.findAncestor(node.parent, function (owner) { return !ts.isLabeledStatement(owner) ? \"quit\" : owner.label.escapedText === labelName; });\n }\n })(DocumentHighlights = ts.DocumentHighlights || (ts.DocumentHighlights = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function isDocumentRegistryEntry(entry) {\n return !!entry.sourceFile;\n }\n function createDocumentRegistry(useCaseSensitiveFileNames, currentDirectory) {\n return createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory);\n }\n ts.createDocumentRegistry = createDocumentRegistry;\n /*@internal*/\n function createDocumentRegistryInternal(useCaseSensitiveFileNames, currentDirectory, externalCache) {\n if (currentDirectory === void 0) { currentDirectory = \"\"; }\n // Maps from compiler setting target (ES3, ES5, etc.) to all the cached documents we have\n // for those settings.\n var buckets = new ts.Map();\n var getCanonicalFileName = ts.createGetCanonicalFileName(!!useCaseSensitiveFileNames);\n function reportStats() {\n var bucketInfoArray = ts.arrayFrom(buckets.keys()).filter(function (name) { return name && name.charAt(0) === \"_\"; }).map(function (name) {\n var entries = buckets.get(name);\n var sourceFiles = [];\n entries.forEach(function (entry, name) {\n if (isDocumentRegistryEntry(entry)) {\n sourceFiles.push({\n name: name,\n scriptKind: entry.sourceFile.scriptKind,\n refCount: entry.languageServiceRefCount\n });\n }\n else {\n entry.forEach(function (value, scriptKind) { return sourceFiles.push({ name: name, scriptKind: scriptKind, refCount: value.languageServiceRefCount }); });\n }\n });\n sourceFiles.sort(function (x, y) { return y.refCount - x.refCount; });\n return {\n bucket: name,\n sourceFiles: sourceFiles\n };\n });\n return JSON.stringify(bucketInfoArray, undefined, 2);\n }\n function acquireDocument(fileName, compilationSettings, scriptSnapshot, version, scriptKind) {\n var path = ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n var key = getKeyForCompilationSettings(compilationSettings);\n return acquireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind);\n }\n function acquireDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind) {\n return acquireOrUpdateDocument(fileName, path, compilationSettings, key, scriptSnapshot, version, /*acquiring*/ true, scriptKind);\n }\n function updateDocument(fileName, compilationSettings, scriptSnapshot, version, scriptKind) {\n var path = ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n var key = getKeyForCompilationSettings(compilationSettings);\n return updateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind);\n }\n function updateDocumentWithKey(fileName, path, compilationSettings, key, scriptSnapshot, version, scriptKind) {\n return acquireOrUpdateDocument(fileName, path, compilationSettings, key, scriptSnapshot, version, /*acquiring*/ false, scriptKind);\n }\n function getDocumentRegistryEntry(bucketEntry, scriptKind) {\n var entry = isDocumentRegistryEntry(bucketEntry) ? bucketEntry : bucketEntry.get(ts.Debug.checkDefined(scriptKind, \"If there are more than one scriptKind's for same document the scriptKind should be provided\"));\n ts.Debug.assert(scriptKind === undefined || !entry || entry.sourceFile.scriptKind === scriptKind, \"Script kind should match provided ScriptKind:\" + scriptKind + \" and sourceFile.scriptKind: \" + (entry === null || entry === void 0 ? void 0 : entry.sourceFile.scriptKind) + \", !entry: \" + !entry);\n return entry;\n }\n function acquireOrUpdateDocument(fileName, path, compilationSettings, key, scriptSnapshot, version, acquiring, scriptKind) {\n scriptKind = ts.ensureScriptKind(fileName, scriptKind);\n var scriptTarget = scriptKind === 6 /* JSON */ ? 100 /* JSON */ : compilationSettings.target || 1 /* ES5 */;\n var bucket = ts.getOrUpdate(buckets, key, function () { return new ts.Map(); });\n var bucketEntry = bucket.get(path);\n var entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);\n if (!entry && externalCache) {\n var sourceFile = externalCache.getDocument(key, path);\n if (sourceFile) {\n ts.Debug.assert(acquiring);\n entry = {\n sourceFile: sourceFile,\n languageServiceRefCount: 0\n };\n setBucketEntry();\n }\n }\n if (!entry) {\n // Have never seen this file with these settings. Create a new source file for it.\n var sourceFile = ts.createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTarget, version, /*setNodeParents*/ false, scriptKind);\n if (externalCache) {\n externalCache.setDocument(key, path, sourceFile);\n }\n entry = {\n sourceFile: sourceFile,\n languageServiceRefCount: 1,\n };\n setBucketEntry();\n }\n else {\n // We have an entry for this file. However, it may be for a different version of\n // the script snapshot. If so, update it appropriately. Otherwise, we can just\n // return it as is.\n if (entry.sourceFile.version !== version) {\n entry.sourceFile = ts.updateLanguageServiceSourceFile(entry.sourceFile, scriptSnapshot, version, scriptSnapshot.getChangeRange(entry.sourceFile.scriptSnapshot)); // TODO: GH#18217\n if (externalCache) {\n externalCache.setDocument(key, path, entry.sourceFile);\n }\n }\n // If we're acquiring, then this is the first time this LS is asking for this document.\n // Increase our ref count so we know there's another LS using the document. If we're\n // not acquiring, then that means the LS is 'updating' the file instead, and that means\n // it has already acquired the document previously. As such, we do not need to increase\n // the ref count.\n if (acquiring) {\n entry.languageServiceRefCount++;\n }\n }\n ts.Debug.assert(entry.languageServiceRefCount !== 0);\n return entry.sourceFile;\n function setBucketEntry() {\n if (!bucketEntry) {\n bucket.set(path, entry);\n }\n else if (isDocumentRegistryEntry(bucketEntry)) {\n var scriptKindMap = new ts.Map();\n scriptKindMap.set(bucketEntry.sourceFile.scriptKind, bucketEntry);\n scriptKindMap.set(scriptKind, entry);\n bucket.set(path, scriptKindMap);\n }\n else {\n bucketEntry.set(scriptKind, entry);\n }\n }\n }\n function releaseDocument(fileName, compilationSettings, scriptKind) {\n var path = ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n var key = getKeyForCompilationSettings(compilationSettings);\n return releaseDocumentWithKey(path, key, scriptKind);\n }\n function releaseDocumentWithKey(path, key, scriptKind) {\n var bucket = ts.Debug.checkDefined(buckets.get(key));\n var bucketEntry = bucket.get(path);\n var entry = getDocumentRegistryEntry(bucketEntry, scriptKind);\n entry.languageServiceRefCount--;\n ts.Debug.assert(entry.languageServiceRefCount >= 0);\n if (entry.languageServiceRefCount === 0) {\n if (isDocumentRegistryEntry(bucketEntry)) {\n bucket.delete(path);\n }\n else {\n bucketEntry.delete(scriptKind);\n if (bucketEntry.size === 1) {\n bucket.set(path, ts.firstDefinedIterator(bucketEntry.values(), ts.identity));\n }\n }\n }\n }\n function getLanguageServiceRefCounts(path, scriptKind) {\n return ts.arrayFrom(buckets.entries(), function (_a) {\n var key = _a[0], bucket = _a[1];\n var bucketEntry = bucket.get(path);\n var entry = bucketEntry && getDocumentRegistryEntry(bucketEntry, scriptKind);\n return [key, entry && entry.languageServiceRefCount];\n });\n }\n return {\n acquireDocument: acquireDocument,\n acquireDocumentWithKey: acquireDocumentWithKey,\n updateDocument: updateDocument,\n updateDocumentWithKey: updateDocumentWithKey,\n releaseDocument: releaseDocument,\n releaseDocumentWithKey: releaseDocumentWithKey,\n getLanguageServiceRefCounts: getLanguageServiceRefCounts,\n reportStats: reportStats,\n getKeyForCompilationSettings: getKeyForCompilationSettings\n };\n }\n ts.createDocumentRegistryInternal = createDocumentRegistryInternal;\n function getKeyForCompilationSettings(settings) {\n return ts.sourceFileAffectingCompilerOptions.map(function (option) { return ts.getCompilerOptionValue(settings, option); }).join(\"|\");\n }\n})(ts || (ts = {}));\n/* Code for finding imports of an exported symbol. Used only by FindAllReferences. */\n/* @internal */\nvar ts;\n(function (ts) {\n var FindAllReferences;\n (function (FindAllReferences) {\n /** Creates the imports map and returns an ImportTracker that uses it. Call this lazily to avoid calling `getDirectImportsMap` unnecessarily. */\n function createImportTracker(sourceFiles, sourceFilesSet, checker, cancellationToken) {\n var allDirectImports = getDirectImportsMap(sourceFiles, checker, cancellationToken);\n return function (exportSymbol, exportInfo, isForRename) {\n var _a = getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, exportInfo, checker, cancellationToken), directImports = _a.directImports, indirectUsers = _a.indirectUsers;\n return __assign({ indirectUsers: indirectUsers }, getSearchesFromDirectImports(directImports, exportSymbol, exportInfo.exportKind, checker, isForRename));\n };\n }\n FindAllReferences.createImportTracker = createImportTracker;\n var ExportKind;\n (function (ExportKind) {\n ExportKind[ExportKind[\"Named\"] = 0] = \"Named\";\n ExportKind[ExportKind[\"Default\"] = 1] = \"Default\";\n ExportKind[ExportKind[\"ExportEquals\"] = 2] = \"ExportEquals\";\n })(ExportKind = FindAllReferences.ExportKind || (FindAllReferences.ExportKind = {}));\n var ImportExport;\n (function (ImportExport) {\n ImportExport[ImportExport[\"Import\"] = 0] = \"Import\";\n ImportExport[ImportExport[\"Export\"] = 1] = \"Export\";\n })(ImportExport = FindAllReferences.ImportExport || (FindAllReferences.ImportExport = {}));\n /** Returns import statements that directly reference the exporting module, and a list of files that may access the module through a namespace. */\n function getImportersForExport(sourceFiles, sourceFilesSet, allDirectImports, _a, checker, cancellationToken) {\n var exportingModuleSymbol = _a.exportingModuleSymbol, exportKind = _a.exportKind;\n var markSeenDirectImport = ts.nodeSeenTracker();\n var markSeenIndirectUser = ts.nodeSeenTracker();\n var directImports = [];\n var isAvailableThroughGlobal = !!exportingModuleSymbol.globalExports;\n var indirectUserDeclarations = isAvailableThroughGlobal ? undefined : [];\n handleDirectImports(exportingModuleSymbol);\n return { directImports: directImports, indirectUsers: getIndirectUsers() };\n function getIndirectUsers() {\n if (isAvailableThroughGlobal) {\n // It has `export as namespace`, so anything could potentially use it.\n return sourceFiles;\n }\n // Module augmentations may use this module's exports without importing it.\n if (exportingModuleSymbol.declarations) {\n for (var _i = 0, _a = exportingModuleSymbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (ts.isExternalModuleAugmentation(decl) && sourceFilesSet.has(decl.getSourceFile().fileName)) {\n addIndirectUser(decl);\n }\n }\n }\n // This may return duplicates (if there are multiple module declarations in a single source file, all importing the same thing as a namespace), but `State.markSearchedSymbol` will handle that.\n return indirectUserDeclarations.map(ts.getSourceFileOfNode);\n }\n function handleDirectImports(exportingModuleSymbol) {\n var theseDirectImports = getDirectImports(exportingModuleSymbol);\n if (theseDirectImports) {\n for (var _i = 0, theseDirectImports_1 = theseDirectImports; _i < theseDirectImports_1.length; _i++) {\n var direct = theseDirectImports_1[_i];\n if (!markSeenDirectImport(direct)) {\n continue;\n }\n if (cancellationToken)\n cancellationToken.throwIfCancellationRequested();\n switch (direct.kind) {\n case 206 /* CallExpression */:\n if (ts.isImportCall(direct)) {\n handleImportCall(direct);\n break;\n }\n if (!isAvailableThroughGlobal) {\n var parent = direct.parent;\n if (exportKind === 2 /* ExportEquals */ && parent.kind === 252 /* VariableDeclaration */) {\n var name = parent.name;\n if (name.kind === 79 /* Identifier */) {\n directImports.push(name);\n break;\n }\n }\n }\n break;\n case 79 /* Identifier */: // for 'const x = require(\"y\");\n break; // TODO: GH#23879\n case 263 /* ImportEqualsDeclaration */:\n handleNamespaceImport(direct, direct.name, ts.hasSyntacticModifier(direct, 1 /* Export */), /*alreadyAddedDirect*/ false);\n break;\n case 264 /* ImportDeclaration */:\n directImports.push(direct);\n var namedBindings = direct.importClause && direct.importClause.namedBindings;\n if (namedBindings && namedBindings.kind === 266 /* NamespaceImport */) {\n handleNamespaceImport(direct, namedBindings.name, /*isReExport*/ false, /*alreadyAddedDirect*/ true);\n }\n else if (!isAvailableThroughGlobal && ts.isDefaultImport(direct)) {\n addIndirectUser(getSourceFileLikeForImportDeclaration(direct)); // Add a check for indirect uses to handle synthetic default imports\n }\n break;\n case 270 /* ExportDeclaration */:\n if (!direct.exportClause) {\n // This is `export * from \"foo\"`, so imports of this module may import the export too.\n handleDirectImports(getContainingModuleSymbol(direct, checker));\n }\n else if (direct.exportClause.kind === 272 /* NamespaceExport */) {\n // `export * as foo from \"foo\"` add to indirect uses\n addIndirectUser(getSourceFileLikeForImportDeclaration(direct), /** addTransitiveDependencies */ true);\n }\n else {\n // This is `export { foo } from \"foo\"` and creates an alias symbol, so recursive search will get handle re-exports.\n directImports.push(direct);\n }\n break;\n case 198 /* ImportType */:\n // Only check for typeof import('xyz')\n if (direct.isTypeOf && !direct.qualifier && isExported(direct)) {\n addIndirectUser(direct.getSourceFile(), /** addTransitiveDependencies */ true);\n }\n directImports.push(direct);\n break;\n default:\n ts.Debug.failBadSyntaxKind(direct, \"Unexpected import kind.\");\n }\n }\n }\n }\n function handleImportCall(importCall) {\n var top = ts.findAncestor(importCall, isAmbientModuleDeclaration) || importCall.getSourceFile();\n addIndirectUser(top, /** addTransitiveDependencies */ !!isExported(importCall, /** stopAtAmbientModule */ true));\n }\n function isExported(node, stopAtAmbientModule) {\n if (stopAtAmbientModule === void 0) { stopAtAmbientModule = false; }\n return ts.findAncestor(node, function (node) {\n if (stopAtAmbientModule && isAmbientModuleDeclaration(node))\n return \"quit\";\n return ts.some(node.modifiers, function (mod) { return mod.kind === 93 /* ExportKeyword */; });\n });\n }\n function handleNamespaceImport(importDeclaration, name, isReExport, alreadyAddedDirect) {\n if (exportKind === 2 /* ExportEquals */) {\n // This is a direct import, not import-as-namespace.\n if (!alreadyAddedDirect)\n directImports.push(importDeclaration);\n }\n else if (!isAvailableThroughGlobal) {\n var sourceFileLike = getSourceFileLikeForImportDeclaration(importDeclaration);\n ts.Debug.assert(sourceFileLike.kind === 300 /* SourceFile */ || sourceFileLike.kind === 259 /* ModuleDeclaration */);\n if (isReExport || findNamespaceReExports(sourceFileLike, name, checker)) {\n addIndirectUser(sourceFileLike, /** addTransitiveDependencies */ true);\n }\n else {\n addIndirectUser(sourceFileLike);\n }\n }\n }\n /** Adds a module and all of its transitive dependencies as possible indirect users. */\n function addIndirectUser(sourceFileLike, addTransitiveDependencies) {\n if (addTransitiveDependencies === void 0) { addTransitiveDependencies = false; }\n ts.Debug.assert(!isAvailableThroughGlobal);\n var isNew = markSeenIndirectUser(sourceFileLike);\n if (!isNew)\n return;\n indirectUserDeclarations.push(sourceFileLike); // TODO: GH#18217\n if (!addTransitiveDependencies)\n return;\n var moduleSymbol = checker.getMergedSymbol(sourceFileLike.symbol);\n if (!moduleSymbol)\n return;\n ts.Debug.assert(!!(moduleSymbol.flags & 1536 /* Module */));\n var directImports = getDirectImports(moduleSymbol);\n if (directImports) {\n for (var _i = 0, directImports_1 = directImports; _i < directImports_1.length; _i++) {\n var directImport = directImports_1[_i];\n if (!ts.isImportTypeNode(directImport)) {\n addIndirectUser(getSourceFileLikeForImportDeclaration(directImport), /** addTransitiveDependencies */ true);\n }\n }\n }\n }\n function getDirectImports(moduleSymbol) {\n return allDirectImports.get(ts.getSymbolId(moduleSymbol).toString());\n }\n }\n /**\n * Given the set of direct imports of a module, we need to find which ones import the particular exported symbol.\n * The returned `importSearches` will result in the entire source file being searched.\n * But re-exports will be placed in 'singleReferences' since they cannot be locally referenced.\n */\n function getSearchesFromDirectImports(directImports, exportSymbol, exportKind, checker, isForRename) {\n var importSearches = [];\n var singleReferences = [];\n function addSearch(location, symbol) {\n importSearches.push([location, symbol]);\n }\n if (directImports) {\n for (var _i = 0, directImports_2 = directImports; _i < directImports_2.length; _i++) {\n var decl = directImports_2[_i];\n handleImport(decl);\n }\n }\n return { importSearches: importSearches, singleReferences: singleReferences };\n function handleImport(decl) {\n if (decl.kind === 263 /* ImportEqualsDeclaration */) {\n if (isExternalModuleImportEquals(decl)) {\n handleNamespaceImportLike(decl.name);\n }\n return;\n }\n if (decl.kind === 79 /* Identifier */) {\n handleNamespaceImportLike(decl);\n return;\n }\n if (decl.kind === 198 /* ImportType */) {\n if (decl.qualifier) {\n var firstIdentifier = ts.getFirstIdentifier(decl.qualifier);\n if (firstIdentifier.escapedText === ts.symbolName(exportSymbol)) {\n singleReferences.push(firstIdentifier);\n }\n }\n else if (exportKind === 2 /* ExportEquals */) {\n singleReferences.push(decl.argument.literal);\n }\n return;\n }\n // Ignore if there's a grammar error\n if (decl.moduleSpecifier.kind !== 10 /* StringLiteral */) {\n return;\n }\n if (decl.kind === 270 /* ExportDeclaration */) {\n if (decl.exportClause && ts.isNamedExports(decl.exportClause)) {\n searchForNamedImport(decl.exportClause);\n }\n return;\n }\n var _a = decl.importClause || { name: undefined, namedBindings: undefined }, name = _a.name, namedBindings = _a.namedBindings;\n if (namedBindings) {\n switch (namedBindings.kind) {\n case 266 /* NamespaceImport */:\n handleNamespaceImportLike(namedBindings.name);\n break;\n case 267 /* NamedImports */:\n // 'default' might be accessed as a named import `{ default as foo }`.\n if (exportKind === 0 /* Named */ || exportKind === 1 /* Default */) {\n searchForNamedImport(namedBindings);\n }\n break;\n default:\n ts.Debug.assertNever(namedBindings);\n }\n }\n // `export =` might be imported by a default import if `--allowSyntheticDefaultImports` is on, so this handles both ExportKind.Default and ExportKind.ExportEquals.\n // If a default import has the same name as the default export, allow to rename it.\n // Given `import f` and `export default function f`, we will rename both, but for `import g` we will rename just that.\n if (name && (exportKind === 1 /* Default */ || exportKind === 2 /* ExportEquals */) && (!isForRename || name.escapedText === ts.symbolEscapedNameNoDefault(exportSymbol))) {\n var defaultImportAlias = checker.getSymbolAtLocation(name);\n addSearch(name, defaultImportAlias);\n }\n }\n /**\n * `import x = require(\"./x\")` or `import * as x from \"./x\"`.\n * An `export =` may be imported by this syntax, so it may be a direct import.\n * If it's not a direct import, it will be in `indirectUsers`, so we don't have to do anything here.\n */\n function handleNamespaceImportLike(importName) {\n // Don't rename an import that already has a different name than the export.\n if (exportKind === 2 /* ExportEquals */ && (!isForRename || isNameMatch(importName.escapedText))) {\n addSearch(importName, checker.getSymbolAtLocation(importName));\n }\n }\n function searchForNamedImport(namedBindings) {\n if (!namedBindings) {\n return;\n }\n for (var _i = 0, _a = namedBindings.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n var name = element.name, propertyName = element.propertyName;\n if (!isNameMatch((propertyName || name).escapedText)) {\n continue;\n }\n if (propertyName) {\n // This is `import { foo as bar } from \"./a\"` or `export { foo as bar } from \"./a\"`. `foo` isn't a local in the file, so just add it as a single reference.\n singleReferences.push(propertyName);\n // If renaming `{ foo as bar }`, don't touch `bar`, just `foo`.\n // But do rename `foo` in ` { default as foo }` if that's the original export name.\n if (!isForRename || name.escapedText === exportSymbol.escapedName) {\n // Search locally for `bar`.\n addSearch(name, checker.getSymbolAtLocation(name));\n }\n }\n else {\n var localSymbol = element.kind === 273 /* ExportSpecifier */ && element.propertyName\n ? checker.getExportSpecifierLocalTargetSymbol(element) // For re-exporting under a different name, we want to get the re-exported symbol.\n : checker.getSymbolAtLocation(name);\n addSearch(name, localSymbol);\n }\n }\n }\n function isNameMatch(name) {\n // Use name of \"default\" even in `export =` case because we may have allowSyntheticDefaultImports\n return name === exportSymbol.escapedName || exportKind !== 0 /* Named */ && name === \"default\" /* Default */;\n }\n }\n /** Returns 'true' is the namespace 'name' is re-exported from this module, and 'false' if it is only used locally. */\n function findNamespaceReExports(sourceFileLike, name, checker) {\n var namespaceImportSymbol = checker.getSymbolAtLocation(name);\n return !!forEachPossibleImportOrExportStatement(sourceFileLike, function (statement) {\n if (!ts.isExportDeclaration(statement))\n return;\n var exportClause = statement.exportClause, moduleSpecifier = statement.moduleSpecifier;\n return !moduleSpecifier && exportClause && ts.isNamedExports(exportClause) &&\n exportClause.elements.some(function (element) { return checker.getExportSpecifierLocalTargetSymbol(element) === namespaceImportSymbol; });\n });\n }\n function findModuleReferences(program, sourceFiles, searchModuleSymbol) {\n var refs = [];\n var checker = program.getTypeChecker();\n for (var _i = 0, sourceFiles_1 = sourceFiles; _i < sourceFiles_1.length; _i++) {\n var referencingFile = sourceFiles_1[_i];\n var searchSourceFile = searchModuleSymbol.valueDeclaration;\n if ((searchSourceFile === null || searchSourceFile === void 0 ? void 0 : searchSourceFile.kind) === 300 /* SourceFile */) {\n for (var _a = 0, _b = referencingFile.referencedFiles; _a < _b.length; _a++) {\n var ref = _b[_a];\n if (program.getSourceFileFromReference(referencingFile, ref) === searchSourceFile) {\n refs.push({ kind: \"reference\", referencingFile: referencingFile, ref: ref });\n }\n }\n for (var _c = 0, _d = referencingFile.typeReferenceDirectives; _c < _d.length; _c++) {\n var ref = _d[_c];\n var referenced = program.getResolvedTypeReferenceDirectives().get(ref.fileName);\n if (referenced !== undefined && referenced.resolvedFileName === searchSourceFile.fileName) {\n refs.push({ kind: \"reference\", referencingFile: referencingFile, ref: ref });\n }\n }\n }\n forEachImport(referencingFile, function (_importDecl, moduleSpecifier) {\n var moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);\n if (moduleSymbol === searchModuleSymbol) {\n refs.push({ kind: \"import\", literal: moduleSpecifier });\n }\n });\n }\n return refs;\n }\n FindAllReferences.findModuleReferences = findModuleReferences;\n /** Returns a map from a module symbol Id to all import statements that directly reference the module. */\n function getDirectImportsMap(sourceFiles, checker, cancellationToken) {\n var map = new ts.Map();\n for (var _i = 0, sourceFiles_2 = sourceFiles; _i < sourceFiles_2.length; _i++) {\n var sourceFile = sourceFiles_2[_i];\n if (cancellationToken)\n cancellationToken.throwIfCancellationRequested();\n forEachImport(sourceFile, function (importDecl, moduleSpecifier) {\n var moduleSymbol = checker.getSymbolAtLocation(moduleSpecifier);\n if (moduleSymbol) {\n var id = ts.getSymbolId(moduleSymbol).toString();\n var imports = map.get(id);\n if (!imports) {\n map.set(id, imports = []);\n }\n imports.push(importDecl);\n }\n });\n }\n return map;\n }\n /** Iterates over all statements at the top level or in module declarations. Returns the first truthy result. */\n function forEachPossibleImportOrExportStatement(sourceFileLike, action) {\n return ts.forEach(sourceFileLike.kind === 300 /* SourceFile */ ? sourceFileLike.statements : sourceFileLike.body.statements, function (statement) {\n return action(statement) || (isAmbientModuleDeclaration(statement) && ts.forEach(statement.body && statement.body.statements, action));\n });\n }\n /** Calls `action` for each import, re-export, or require() in a file. */\n function forEachImport(sourceFile, action) {\n if (sourceFile.externalModuleIndicator || sourceFile.imports !== undefined) {\n for (var _i = 0, _a = sourceFile.imports; _i < _a.length; _i++) {\n var i = _a[_i];\n action(ts.importFromModuleSpecifier(i), i);\n }\n }\n else {\n forEachPossibleImportOrExportStatement(sourceFile, function (statement) {\n switch (statement.kind) {\n case 270 /* ExportDeclaration */:\n case 264 /* ImportDeclaration */: {\n var decl = statement;\n if (decl.moduleSpecifier && ts.isStringLiteral(decl.moduleSpecifier)) {\n action(decl, decl.moduleSpecifier);\n }\n break;\n }\n case 263 /* ImportEqualsDeclaration */: {\n var decl = statement;\n if (isExternalModuleImportEquals(decl)) {\n action(decl, decl.moduleReference.expression);\n }\n break;\n }\n }\n });\n }\n }\n /**\n * Given a local reference, we might notice that it's an import/export and recursively search for references of that.\n * If at an import, look locally for the symbol it imports.\n * If at an export, look for all imports of it.\n * This doesn't handle export specifiers; that is done in `getReferencesAtExportSpecifier`.\n * @param comingFromExport If we are doing a search for all exports, don't bother looking backwards for the imported symbol, since that's the reason we're here.\n */\n function getImportOrExportSymbol(node, symbol, checker, comingFromExport) {\n return comingFromExport ? getExport() : getExport() || getImport();\n function getExport() {\n var _a;\n var parent = node.parent;\n var grandparent = parent.parent;\n if (symbol.exportSymbol) {\n if (parent.kind === 204 /* PropertyAccessExpression */) {\n // When accessing an export of a JS module, there's no alias. The symbol will still be flagged as an export even though we're at the use.\n // So check that we are at the declaration.\n return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.some(function (d) { return d === parent; })) && ts.isBinaryExpression(grandparent)\n ? getSpecialPropertyExport(grandparent, /*useLhsSymbol*/ false)\n : undefined;\n }\n else {\n return exportInfo(symbol.exportSymbol, getExportKindForDeclaration(parent));\n }\n }\n else {\n var exportNode = getExportNode(parent, node);\n if (exportNode && ts.hasSyntacticModifier(exportNode, 1 /* Export */)) {\n if (ts.isImportEqualsDeclaration(exportNode) && exportNode.moduleReference === node) {\n // We're at `Y` in `export import X = Y`. This is not the exported symbol, the left-hand-side is. So treat this as an import statement.\n if (comingFromExport) {\n return undefined;\n }\n var lhsSymbol = checker.getSymbolAtLocation(exportNode.name);\n return { kind: 0 /* Import */, symbol: lhsSymbol };\n }\n else {\n return exportInfo(symbol, getExportKindForDeclaration(exportNode));\n }\n }\n else if (ts.isNamespaceExport(parent)) {\n return exportInfo(symbol, 0 /* Named */);\n }\n // If we are in `export = a;` or `export default a;`, `parent` is the export assignment.\n else if (ts.isExportAssignment(parent)) {\n return getExportAssignmentExport(parent);\n }\n // If we are in `export = class A {};` (or `export = class A {};`) at `A`, `parent.parent` is the export assignment.\n else if (ts.isExportAssignment(grandparent)) {\n return getExportAssignmentExport(grandparent);\n }\n // Similar for `module.exports =` and `exports.A =`.\n else if (ts.isBinaryExpression(parent)) {\n return getSpecialPropertyExport(parent, /*useLhsSymbol*/ true);\n }\n else if (ts.isBinaryExpression(grandparent)) {\n return getSpecialPropertyExport(grandparent, /*useLhsSymbol*/ true);\n }\n else if (ts.isJSDocTypedefTag(parent)) {\n return exportInfo(symbol, 0 /* Named */);\n }\n }\n function getExportAssignmentExport(ex) {\n // Get the symbol for the `export =` node; its parent is the module it's the export of.\n if (!ex.symbol.parent)\n return undefined;\n var exportKind = ex.isExportEquals ? 2 /* ExportEquals */ : 1 /* Default */;\n return { kind: 1 /* Export */, symbol: symbol, exportInfo: { exportingModuleSymbol: ex.symbol.parent, exportKind: exportKind } };\n }\n function getSpecialPropertyExport(node, useLhsSymbol) {\n var kind;\n switch (ts.getAssignmentDeclarationKind(node)) {\n case 1 /* ExportsProperty */:\n kind = 0 /* Named */;\n break;\n case 2 /* ModuleExports */:\n kind = 2 /* ExportEquals */;\n break;\n default:\n return undefined;\n }\n var sym = useLhsSymbol ? checker.getSymbolAtLocation(ts.getNameOfAccessExpression(ts.cast(node.left, ts.isAccessExpression))) : symbol;\n return sym && exportInfo(sym, kind);\n }\n }\n function getImport() {\n var isImport = isNodeImport(node);\n if (!isImport)\n return undefined;\n // A symbol being imported is always an alias. So get what that aliases to find the local symbol.\n var importedSymbol = checker.getImmediateAliasedSymbol(symbol);\n if (!importedSymbol)\n return undefined;\n // Search on the local symbol in the exporting module, not the exported symbol.\n importedSymbol = skipExportSpecifierSymbol(importedSymbol, checker);\n // Similarly, skip past the symbol for 'export ='\n if (importedSymbol.escapedName === \"export=\") {\n importedSymbol = getExportEqualsLocalSymbol(importedSymbol, checker);\n }\n // If the import has a different name than the export, do not continue searching.\n // If `importedName` is undefined, do continue searching as the export is anonymous.\n // (All imports returned from this function will be ignored anyway if we are in rename and this is a not a named export.)\n var importedName = ts.symbolEscapedNameNoDefault(importedSymbol);\n if (importedName === undefined || importedName === \"default\" /* Default */ || importedName === symbol.escapedName) {\n return { kind: 0 /* Import */, symbol: importedSymbol };\n }\n }\n function exportInfo(symbol, kind) {\n var exportInfo = getExportInfo(symbol, kind, checker);\n return exportInfo && { kind: 1 /* Export */, symbol: symbol, exportInfo: exportInfo };\n }\n // Not meant for use with export specifiers or export assignment.\n function getExportKindForDeclaration(node) {\n return ts.hasSyntacticModifier(node, 512 /* Default */) ? 1 /* Default */ : 0 /* Named */;\n }\n }\n FindAllReferences.getImportOrExportSymbol = getImportOrExportSymbol;\n function getExportEqualsLocalSymbol(importedSymbol, checker) {\n if (importedSymbol.flags & 2097152 /* Alias */) {\n return ts.Debug.checkDefined(checker.getImmediateAliasedSymbol(importedSymbol));\n }\n var decl = ts.Debug.checkDefined(importedSymbol.valueDeclaration);\n if (ts.isExportAssignment(decl)) { // `export = class {}`\n return ts.Debug.checkDefined(decl.expression.symbol);\n }\n else if (ts.isBinaryExpression(decl)) { // `module.exports = class {}`\n return ts.Debug.checkDefined(decl.right.symbol);\n }\n else if (ts.isSourceFile(decl)) { // json module\n return ts.Debug.checkDefined(decl.symbol);\n }\n return ts.Debug.fail();\n }\n // If a reference is a class expression, the exported node would be its parent.\n // If a reference is a variable declaration, the exported node would be the variable statement.\n function getExportNode(parent, node) {\n var declaration = ts.isVariableDeclaration(parent) ? parent : ts.isBindingElement(parent) ? ts.walkUpBindingElementsAndPatterns(parent) : undefined;\n if (declaration) {\n return parent.name !== node ? undefined :\n ts.isCatchClause(declaration.parent) ? undefined : ts.isVariableStatement(declaration.parent.parent) ? declaration.parent.parent : undefined;\n }\n else {\n return parent;\n }\n }\n function isNodeImport(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 263 /* ImportEqualsDeclaration */:\n return parent.name === node && isExternalModuleImportEquals(parent);\n case 268 /* ImportSpecifier */:\n // For a rename import `{ foo as bar }`, don't search for the imported symbol. Just find local uses of `bar`.\n return !parent.propertyName;\n case 265 /* ImportClause */:\n case 266 /* NamespaceImport */:\n ts.Debug.assert(parent.name === node);\n return true;\n case 201 /* BindingElement */:\n return ts.isInJSFile(node) && ts.isRequireVariableDeclaration(parent);\n default:\n return false;\n }\n }\n function getExportInfo(exportSymbol, exportKind, checker) {\n var moduleSymbol = exportSymbol.parent;\n if (!moduleSymbol)\n return undefined; // This can happen if an `export` is not at the top-level (which is a compile error).\n var exportingModuleSymbol = checker.getMergedSymbol(moduleSymbol); // Need to get merged symbol in case there's an augmentation.\n // `export` may appear in a namespace. In that case, just rely on global search.\n return ts.isExternalModuleSymbol(exportingModuleSymbol) ? { exportingModuleSymbol: exportingModuleSymbol, exportKind: exportKind } : undefined;\n }\n FindAllReferences.getExportInfo = getExportInfo;\n /** If at an export specifier, go to the symbol it refers to. */\n function skipExportSpecifierSymbol(symbol, checker) {\n // For `export { foo } from './bar\", there's nothing to skip, because it does not create a new alias. But `export { foo } does.\n if (symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (ts.isExportSpecifier(declaration) && !declaration.propertyName && !declaration.parent.parent.moduleSpecifier) {\n return checker.getExportSpecifierLocalTargetSymbol(declaration);\n }\n else if (ts.isPropertyAccessExpression(declaration) && ts.isModuleExportsAccessExpression(declaration.expression) && !ts.isPrivateIdentifier(declaration.name)) {\n // Export of form 'module.exports.propName = expr';\n return checker.getSymbolAtLocation(declaration);\n }\n else if (ts.isShorthandPropertyAssignment(declaration)\n && ts.isBinaryExpression(declaration.parent.parent)\n && ts.getAssignmentDeclarationKind(declaration.parent.parent) === 2 /* ModuleExports */) {\n return checker.getExportSpecifierLocalTargetSymbol(declaration.name);\n }\n }\n }\n return symbol;\n }\n function getContainingModuleSymbol(importer, checker) {\n return checker.getMergedSymbol(getSourceFileLikeForImportDeclaration(importer).symbol);\n }\n function getSourceFileLikeForImportDeclaration(node) {\n if (node.kind === 206 /* CallExpression */) {\n return node.getSourceFile();\n }\n var parent = node.parent;\n if (parent.kind === 300 /* SourceFile */) {\n return parent;\n }\n ts.Debug.assert(parent.kind === 260 /* ModuleBlock */);\n return ts.cast(parent.parent, isAmbientModuleDeclaration);\n }\n function isAmbientModuleDeclaration(node) {\n return node.kind === 259 /* ModuleDeclaration */ && node.name.kind === 10 /* StringLiteral */;\n }\n function isExternalModuleImportEquals(eq) {\n return eq.moduleReference.kind === 275 /* ExternalModuleReference */ && eq.moduleReference.expression.kind === 10 /* StringLiteral */;\n }\n })(FindAllReferences = ts.FindAllReferences || (ts.FindAllReferences = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var FindAllReferences;\n (function (FindAllReferences) {\n var DefinitionKind;\n (function (DefinitionKind) {\n DefinitionKind[DefinitionKind[\"Symbol\"] = 0] = \"Symbol\";\n DefinitionKind[DefinitionKind[\"Label\"] = 1] = \"Label\";\n DefinitionKind[DefinitionKind[\"Keyword\"] = 2] = \"Keyword\";\n DefinitionKind[DefinitionKind[\"This\"] = 3] = \"This\";\n DefinitionKind[DefinitionKind[\"String\"] = 4] = \"String\";\n DefinitionKind[DefinitionKind[\"TripleSlashReference\"] = 5] = \"TripleSlashReference\";\n })(DefinitionKind = FindAllReferences.DefinitionKind || (FindAllReferences.DefinitionKind = {}));\n var EntryKind;\n (function (EntryKind) {\n EntryKind[EntryKind[\"Span\"] = 0] = \"Span\";\n EntryKind[EntryKind[\"Node\"] = 1] = \"Node\";\n EntryKind[EntryKind[\"StringLiteral\"] = 2] = \"StringLiteral\";\n EntryKind[EntryKind[\"SearchedLocalFoundProperty\"] = 3] = \"SearchedLocalFoundProperty\";\n EntryKind[EntryKind[\"SearchedPropertyFoundLocal\"] = 4] = \"SearchedPropertyFoundLocal\";\n })(EntryKind = FindAllReferences.EntryKind || (FindAllReferences.EntryKind = {}));\n function nodeEntry(node, kind) {\n if (kind === void 0) { kind = 1 /* Node */; }\n return {\n kind: kind,\n node: node.name || node,\n context: getContextNodeForNodeEntry(node)\n };\n }\n FindAllReferences.nodeEntry = nodeEntry;\n function isContextWithStartAndEndNode(node) {\n return node && node.kind === undefined;\n }\n FindAllReferences.isContextWithStartAndEndNode = isContextWithStartAndEndNode;\n function getContextNodeForNodeEntry(node) {\n if (ts.isDeclaration(node)) {\n return getContextNode(node);\n }\n if (!node.parent)\n return undefined;\n if (!ts.isDeclaration(node.parent) && !ts.isExportAssignment(node.parent)) {\n // Special property assignment in javascript\n if (ts.isInJSFile(node)) {\n var binaryExpression = ts.isBinaryExpression(node.parent) ?\n node.parent :\n ts.isAccessExpression(node.parent) &&\n ts.isBinaryExpression(node.parent.parent) &&\n node.parent.parent.left === node.parent ?\n node.parent.parent :\n undefined;\n if (binaryExpression && ts.getAssignmentDeclarationKind(binaryExpression) !== 0 /* None */) {\n return getContextNode(binaryExpression);\n }\n }\n // Jsx Tags\n if (ts.isJsxOpeningElement(node.parent) || ts.isJsxClosingElement(node.parent)) {\n return node.parent.parent;\n }\n else if (ts.isJsxSelfClosingElement(node.parent) ||\n ts.isLabeledStatement(node.parent) ||\n ts.isBreakOrContinueStatement(node.parent)) {\n return node.parent;\n }\n else if (ts.isStringLiteralLike(node)) {\n var validImport = ts.tryGetImportFromModuleSpecifier(node);\n if (validImport) {\n var declOrStatement = ts.findAncestor(validImport, function (node) {\n return ts.isDeclaration(node) ||\n ts.isStatement(node) ||\n ts.isJSDocTag(node);\n });\n return ts.isDeclaration(declOrStatement) ?\n getContextNode(declOrStatement) :\n declOrStatement;\n }\n }\n // Handle computed property name\n var propertyName = ts.findAncestor(node, ts.isComputedPropertyName);\n return propertyName ?\n getContextNode(propertyName.parent) :\n undefined;\n }\n if (node.parent.name === node || // node is name of declaration, use parent\n ts.isConstructorDeclaration(node.parent) ||\n ts.isExportAssignment(node.parent) ||\n // Property name of the import export specifier or binding pattern, use parent\n ((ts.isImportOrExportSpecifier(node.parent) || ts.isBindingElement(node.parent))\n && node.parent.propertyName === node) ||\n // Is default export\n (node.kind === 88 /* DefaultKeyword */ && ts.hasSyntacticModifier(node.parent, 513 /* ExportDefault */))) {\n return getContextNode(node.parent);\n }\n return undefined;\n }\n function getContextNode(node) {\n if (!node)\n return undefined;\n switch (node.kind) {\n case 252 /* VariableDeclaration */:\n return !ts.isVariableDeclarationList(node.parent) || node.parent.declarations.length !== 1 ?\n node :\n ts.isVariableStatement(node.parent.parent) ?\n node.parent.parent :\n ts.isForInOrOfStatement(node.parent.parent) ?\n getContextNode(node.parent.parent) :\n node.parent;\n case 201 /* BindingElement */:\n return getContextNode(node.parent.parent);\n case 268 /* ImportSpecifier */:\n return node.parent.parent.parent;\n case 273 /* ExportSpecifier */:\n case 266 /* NamespaceImport */:\n return node.parent.parent;\n case 265 /* ImportClause */:\n case 272 /* NamespaceExport */:\n return node.parent;\n case 219 /* BinaryExpression */:\n return ts.isExpressionStatement(node.parent) ?\n node.parent :\n node;\n case 242 /* ForOfStatement */:\n case 241 /* ForInStatement */:\n return {\n start: node.initializer,\n end: node.expression\n };\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n return ts.isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent) ?\n getContextNode(ts.findAncestor(node.parent, function (node) {\n return ts.isBinaryExpression(node) || ts.isForInOrOfStatement(node);\n })) :\n node;\n default:\n return node;\n }\n }\n FindAllReferences.getContextNode = getContextNode;\n function toContextSpan(textSpan, sourceFile, context) {\n if (!context)\n return undefined;\n var contextSpan = isContextWithStartAndEndNode(context) ?\n getTextSpan(context.start, sourceFile, context.end) :\n getTextSpan(context, sourceFile);\n return contextSpan.start !== textSpan.start || contextSpan.length !== textSpan.length ?\n { contextSpan: contextSpan } :\n undefined;\n }\n FindAllReferences.toContextSpan = toContextSpan;\n var FindReferencesUse;\n (function (FindReferencesUse) {\n /**\n * When searching for references to a symbol, the location will not be adjusted (this is the default behavior when not specified).\n */\n FindReferencesUse[FindReferencesUse[\"Other\"] = 0] = \"Other\";\n /**\n * When searching for references to a symbol, the location will be adjusted if the cursor was on a keyword.\n */\n FindReferencesUse[FindReferencesUse[\"References\"] = 1] = \"References\";\n /**\n * When searching for references to a symbol, the location will be adjusted if the cursor was on a keyword.\n * Unlike `References`, the location will only be adjusted keyword belonged to a declaration with a valid name.\n * If set, we will find fewer references -- if it is referenced by several different names, we still only find references for the original name.\n */\n FindReferencesUse[FindReferencesUse[\"Rename\"] = 2] = \"Rename\";\n })(FindReferencesUse = FindAllReferences.FindReferencesUse || (FindAllReferences.FindReferencesUse = {}));\n function findReferencedSymbols(program, cancellationToken, sourceFiles, sourceFile, position) {\n var node = ts.getTouchingPropertyName(sourceFile, position);\n var referencedSymbols = Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, { use: 1 /* References */ });\n var checker = program.getTypeChecker();\n return !referencedSymbols || !referencedSymbols.length ? undefined : ts.mapDefined(referencedSymbols, function (_a) {\n var definition = _a.definition, references = _a.references;\n // Only include referenced symbols that have a valid definition.\n return definition && {\n definition: checker.runWithCancellationToken(cancellationToken, function (checker) { return definitionToReferencedSymbolDefinitionInfo(definition, checker, node); }),\n references: references.map(toReferenceEntry)\n };\n });\n }\n FindAllReferences.findReferencedSymbols = findReferencedSymbols;\n function getImplementationsAtPosition(program, cancellationToken, sourceFiles, sourceFile, position) {\n var node = ts.getTouchingPropertyName(sourceFile, position);\n var referenceEntries;\n var entries = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position);\n if (node.parent.kind === 204 /* PropertyAccessExpression */\n || node.parent.kind === 201 /* BindingElement */\n || node.parent.kind === 205 /* ElementAccessExpression */\n || node.kind === 106 /* SuperKeyword */) {\n referenceEntries = entries && __spreadArray([], entries, true);\n }\n else {\n var queue = entries && __spreadArray([], entries, true);\n var seenNodes = new ts.Map();\n while (queue && queue.length) {\n var entry = queue.shift();\n if (!ts.addToSeen(seenNodes, ts.getNodeId(entry.node))) {\n continue;\n }\n referenceEntries = ts.append(referenceEntries, entry);\n var entries_1 = getImplementationReferenceEntries(program, cancellationToken, sourceFiles, entry.node, entry.node.pos);\n if (entries_1) {\n queue.push.apply(queue, entries_1);\n }\n }\n }\n var checker = program.getTypeChecker();\n return ts.map(referenceEntries, function (entry) { return toImplementationLocation(entry, checker); });\n }\n FindAllReferences.getImplementationsAtPosition = getImplementationsAtPosition;\n function getImplementationReferenceEntries(program, cancellationToken, sourceFiles, node, position) {\n if (node.kind === 300 /* SourceFile */) {\n return undefined;\n }\n var checker = program.getTypeChecker();\n // If invoked directly on a shorthand property assignment, then return\n // the declaration of the symbol being assigned (not the symbol being assigned to).\n if (node.parent.kind === 292 /* ShorthandPropertyAssignment */) {\n var result_2 = [];\n Core.getReferenceEntriesForShorthandPropertyAssignment(node, checker, function (node) { return result_2.push(nodeEntry(node)); });\n return result_2;\n }\n else if (node.kind === 106 /* SuperKeyword */ || ts.isSuperProperty(node.parent)) {\n // References to and accesses on the super keyword only have one possible implementation, so no\n // need to \"Find all References\"\n var symbol = checker.getSymbolAtLocation(node);\n return symbol.valueDeclaration && [nodeEntry(symbol.valueDeclaration)];\n }\n else {\n // Perform \"Find all References\" and retrieve only those that are implementations\n return getReferenceEntriesForNode(position, node, program, sourceFiles, cancellationToken, { implementations: true, use: 1 /* References */ });\n }\n }\n function findReferenceOrRenameEntries(program, cancellationToken, sourceFiles, node, position, options, convertEntry) {\n return ts.map(flattenEntries(Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options)), function (entry) { return convertEntry(entry, node, program.getTypeChecker()); });\n }\n FindAllReferences.findReferenceOrRenameEntries = findReferenceOrRenameEntries;\n function getReferenceEntriesForNode(position, node, program, sourceFiles, cancellationToken, options, sourceFilesSet) {\n if (options === void 0) { options = {}; }\n if (sourceFilesSet === void 0) { sourceFilesSet = new ts.Set(sourceFiles.map(function (f) { return f.fileName; })); }\n return flattenEntries(Core.getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options, sourceFilesSet));\n }\n FindAllReferences.getReferenceEntriesForNode = getReferenceEntriesForNode;\n function flattenEntries(referenceSymbols) {\n return referenceSymbols && ts.flatMap(referenceSymbols, function (r) { return r.references; });\n }\n function definitionToReferencedSymbolDefinitionInfo(def, checker, originalNode) {\n var info = (function () {\n switch (def.type) {\n case 0 /* Symbol */: {\n var symbol = def.symbol;\n var _a = getDefinitionKindAndDisplayParts(symbol, checker, originalNode), displayParts_1 = _a.displayParts, kind_1 = _a.kind;\n var name_1 = displayParts_1.map(function (p) { return p.text; }).join(\"\");\n var declaration = symbol.declarations && ts.firstOrUndefined(symbol.declarations);\n var node = declaration ? (ts.getNameOfDeclaration(declaration) || declaration) : originalNode;\n return __assign(__assign({}, getFileAndTextSpanFromNode(node)), { name: name_1, kind: kind_1, displayParts: displayParts_1, context: getContextNode(declaration) });\n }\n case 1 /* Label */: {\n var node = def.node;\n return __assign(__assign({}, getFileAndTextSpanFromNode(node)), { name: node.text, kind: \"label\" /* label */, displayParts: [ts.displayPart(node.text, ts.SymbolDisplayPartKind.text)] });\n }\n case 2 /* Keyword */: {\n var node = def.node;\n var name_2 = ts.tokenToString(node.kind);\n return __assign(__assign({}, getFileAndTextSpanFromNode(node)), { name: name_2, kind: \"keyword\" /* keyword */, displayParts: [{ text: name_2, kind: \"keyword\" /* keyword */ }] });\n }\n case 3 /* This */: {\n var node = def.node;\n var symbol = checker.getSymbolAtLocation(node);\n var displayParts_2 = symbol && ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, node.getSourceFile(), ts.getContainerNode(node), node).displayParts || [ts.textPart(\"this\")];\n return __assign(__assign({}, getFileAndTextSpanFromNode(node)), { name: \"this\", kind: \"var\" /* variableElement */, displayParts: displayParts_2 });\n }\n case 4 /* String */: {\n var node = def.node;\n return __assign(__assign({}, getFileAndTextSpanFromNode(node)), { name: node.text, kind: \"var\" /* variableElement */, displayParts: [ts.displayPart(ts.getTextOfNode(node), ts.SymbolDisplayPartKind.stringLiteral)] });\n }\n case 5 /* TripleSlashReference */: {\n return {\n textSpan: ts.createTextSpanFromRange(def.reference),\n sourceFile: def.file,\n name: def.reference.fileName,\n kind: \"string\" /* string */,\n displayParts: [ts.displayPart(\"\\\"\" + def.reference.fileName + \"\\\"\", ts.SymbolDisplayPartKind.stringLiteral)]\n };\n }\n default:\n return ts.Debug.assertNever(def);\n }\n })();\n var sourceFile = info.sourceFile, textSpan = info.textSpan, name = info.name, kind = info.kind, displayParts = info.displayParts, context = info.context;\n return __assign({ containerKind: \"\" /* unknown */, containerName: \"\", fileName: sourceFile.fileName, kind: kind, name: name, textSpan: textSpan, displayParts: displayParts }, toContextSpan(textSpan, sourceFile, context));\n }\n function getFileAndTextSpanFromNode(node) {\n var sourceFile = node.getSourceFile();\n return {\n sourceFile: sourceFile,\n textSpan: getTextSpan(ts.isComputedPropertyName(node) ? node.expression : node, sourceFile)\n };\n }\n function getDefinitionKindAndDisplayParts(symbol, checker, node) {\n var meaning = Core.getIntersectingMeaningFromDeclarations(node, symbol);\n var enclosingDeclaration = symbol.declarations && ts.firstOrUndefined(symbol.declarations) || node;\n var _a = ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(checker, symbol, enclosingDeclaration.getSourceFile(), enclosingDeclaration, enclosingDeclaration, meaning), displayParts = _a.displayParts, symbolKind = _a.symbolKind;\n return { displayParts: displayParts, kind: symbolKind };\n }\n function toRenameLocation(entry, originalNode, checker, providePrefixAndSuffixText) {\n return __assign(__assign({}, entryToDocumentSpan(entry)), (providePrefixAndSuffixText && getPrefixAndSuffixText(entry, originalNode, checker)));\n }\n FindAllReferences.toRenameLocation = toRenameLocation;\n function toReferenceEntry(entry) {\n var documentSpan = entryToDocumentSpan(entry);\n if (entry.kind === 0 /* Span */) {\n return __assign(__assign({}, documentSpan), { isWriteAccess: false, isDefinition: false });\n }\n var kind = entry.kind, node = entry.node;\n return __assign(__assign({}, documentSpan), { isWriteAccess: isWriteAccessForReference(node), isDefinition: isDefinitionForReference(node), isInString: kind === 2 /* StringLiteral */ ? true : undefined });\n }\n FindAllReferences.toReferenceEntry = toReferenceEntry;\n function entryToDocumentSpan(entry) {\n if (entry.kind === 0 /* Span */) {\n return { textSpan: entry.textSpan, fileName: entry.fileName };\n }\n else {\n var sourceFile = entry.node.getSourceFile();\n var textSpan = getTextSpan(entry.node, sourceFile);\n return __assign({ textSpan: textSpan, fileName: sourceFile.fileName }, toContextSpan(textSpan, sourceFile, entry.context));\n }\n }\n function getPrefixAndSuffixText(entry, originalNode, checker) {\n if (entry.kind !== 0 /* Span */ && ts.isIdentifier(originalNode)) {\n var node = entry.node, kind = entry.kind;\n var parent = node.parent;\n var name = originalNode.text;\n var isShorthandAssignment = ts.isShorthandPropertyAssignment(parent);\n if (isShorthandAssignment || (ts.isObjectBindingElementWithoutPropertyName(parent) && parent.name === node && parent.dotDotDotToken === undefined)) {\n var prefixColon = { prefixText: name + \": \" };\n var suffixColon = { suffixText: \": \" + name };\n if (kind === 3 /* SearchedLocalFoundProperty */) {\n return prefixColon;\n }\n if (kind === 4 /* SearchedPropertyFoundLocal */) {\n return suffixColon;\n }\n // In `const o = { x }; o.x`, symbolAtLocation at `x` in `{ x }` is the property symbol.\n // For a binding element `const { x } = o;`, symbolAtLocation at `x` is the property symbol.\n if (isShorthandAssignment) {\n var grandParent = parent.parent;\n if (ts.isObjectLiteralExpression(grandParent) &&\n ts.isBinaryExpression(grandParent.parent) &&\n ts.isModuleExportsAccessExpression(grandParent.parent.left)) {\n return prefixColon;\n }\n return suffixColon;\n }\n else {\n return prefixColon;\n }\n }\n else if (ts.isImportSpecifier(parent) && !parent.propertyName) {\n // If the original symbol was using this alias, just rename the alias.\n var originalSymbol = ts.isExportSpecifier(originalNode.parent) ? checker.getExportSpecifierLocalTargetSymbol(originalNode.parent) : checker.getSymbolAtLocation(originalNode);\n return ts.contains(originalSymbol.declarations, parent) ? { prefixText: name + \" as \" } : ts.emptyOptions;\n }\n else if (ts.isExportSpecifier(parent) && !parent.propertyName) {\n // If the symbol for the node is same as declared node symbol use prefix text\n return originalNode === entry.node || checker.getSymbolAtLocation(originalNode) === checker.getSymbolAtLocation(entry.node) ?\n { prefixText: name + \" as \" } :\n { suffixText: \" as \" + name };\n }\n }\n return ts.emptyOptions;\n }\n function toImplementationLocation(entry, checker) {\n var documentSpan = entryToDocumentSpan(entry);\n if (entry.kind !== 0 /* Span */) {\n var node = entry.node;\n return __assign(__assign({}, documentSpan), implementationKindDisplayParts(node, checker));\n }\n else {\n return __assign(__assign({}, documentSpan), { kind: \"\" /* unknown */, displayParts: [] });\n }\n }\n function implementationKindDisplayParts(node, checker) {\n var symbol = checker.getSymbolAtLocation(ts.isDeclaration(node) && node.name ? node.name : node);\n if (symbol) {\n return getDefinitionKindAndDisplayParts(symbol, checker, node);\n }\n else if (node.kind === 203 /* ObjectLiteralExpression */) {\n return {\n kind: \"interface\" /* interfaceElement */,\n displayParts: [ts.punctuationPart(20 /* OpenParenToken */), ts.textPart(\"object literal\"), ts.punctuationPart(21 /* CloseParenToken */)]\n };\n }\n else if (node.kind === 224 /* ClassExpression */) {\n return {\n kind: \"local class\" /* localClassElement */,\n displayParts: [ts.punctuationPart(20 /* OpenParenToken */), ts.textPart(\"anonymous local class\"), ts.punctuationPart(21 /* CloseParenToken */)]\n };\n }\n else {\n return { kind: ts.getNodeKind(node), displayParts: [] };\n }\n }\n function toHighlightSpan(entry) {\n var documentSpan = entryToDocumentSpan(entry);\n if (entry.kind === 0 /* Span */) {\n return {\n fileName: documentSpan.fileName,\n span: {\n textSpan: documentSpan.textSpan,\n kind: \"reference\" /* reference */\n }\n };\n }\n var writeAccess = isWriteAccessForReference(entry.node);\n var span = __assign({ textSpan: documentSpan.textSpan, kind: writeAccess ? \"writtenReference\" /* writtenReference */ : \"reference\" /* reference */, isInString: entry.kind === 2 /* StringLiteral */ ? true : undefined }, documentSpan.contextSpan && { contextSpan: documentSpan.contextSpan });\n return { fileName: documentSpan.fileName, span: span };\n }\n FindAllReferences.toHighlightSpan = toHighlightSpan;\n function getTextSpan(node, sourceFile, endNode) {\n var start = node.getStart(sourceFile);\n var end = (endNode || node).getEnd();\n if (ts.isStringLiteralLike(node)) {\n ts.Debug.assert(endNode === undefined);\n start += 1;\n end -= 1;\n }\n return ts.createTextSpanFromBounds(start, end);\n }\n function getTextSpanOfEntry(entry) {\n return entry.kind === 0 /* Span */ ? entry.textSpan :\n getTextSpan(entry.node, entry.node.getSourceFile());\n }\n FindAllReferences.getTextSpanOfEntry = getTextSpanOfEntry;\n /** A node is considered a writeAccess iff it is a name of a declaration or a target of an assignment */\n function isWriteAccessForReference(node) {\n var decl = ts.getDeclarationFromName(node);\n return !!decl && declarationIsWriteAccess(decl) || node.kind === 88 /* DefaultKeyword */ || ts.isWriteAccess(node);\n }\n function isDefinitionForReference(node) {\n return node.kind === 88 /* DefaultKeyword */\n || !!ts.getDeclarationFromName(node)\n || ts.isLiteralComputedPropertyDeclarationName(node)\n || (node.kind === 133 /* ConstructorKeyword */ && ts.isConstructorDeclaration(node.parent));\n }\n /**\n * True if 'decl' provides a value, as in `function f() {}`;\n * false if 'decl' is just a location for a future write, as in 'let x;'\n */\n function declarationIsWriteAccess(decl) {\n // Consider anything in an ambient declaration to be a write access since it may be coming from JS.\n if (!!(decl.flags & 8388608 /* Ambient */))\n return true;\n switch (decl.kind) {\n case 219 /* BinaryExpression */:\n case 201 /* BindingElement */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 88 /* DefaultKeyword */:\n case 258 /* EnumDeclaration */:\n case 294 /* EnumMember */:\n case 273 /* ExportSpecifier */:\n case 265 /* ImportClause */: // default import\n case 263 /* ImportEqualsDeclaration */:\n case 268 /* ImportSpecifier */:\n case 256 /* InterfaceDeclaration */:\n case 333 /* JSDocCallbackTag */:\n case 340 /* JSDocTypedefTag */:\n case 283 /* JsxAttribute */:\n case 259 /* ModuleDeclaration */:\n case 262 /* NamespaceExportDeclaration */:\n case 266 /* NamespaceImport */:\n case 272 /* NamespaceExport */:\n case 162 /* Parameter */:\n case 292 /* ShorthandPropertyAssignment */:\n case 257 /* TypeAliasDeclaration */:\n case 161 /* TypeParameter */:\n return true;\n case 291 /* PropertyAssignment */:\n // In `({ x: y } = 0);`, `x` is not a write access. (Won't call this function for `y`.)\n return !ts.isArrayLiteralOrObjectLiteralDestructuringPattern(decl.parent);\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 169 /* Constructor */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return !!decl.body;\n case 252 /* VariableDeclaration */:\n case 165 /* PropertyDeclaration */:\n return !!decl.initializer || ts.isCatchClause(decl.parent);\n case 166 /* MethodSignature */:\n case 164 /* PropertySignature */:\n case 342 /* JSDocPropertyTag */:\n case 335 /* JSDocParameterTag */:\n return false;\n default:\n return ts.Debug.failBadSyntaxKind(decl);\n }\n }\n /** Encapsulates the core find-all-references algorithm. */\n var Core;\n (function (Core) {\n /** Core find-all-references algorithm. Handles special cases before delegating to `getReferencedSymbolsForSymbol`. */\n function getReferencedSymbolsForNode(position, node, program, sourceFiles, cancellationToken, options, sourceFilesSet) {\n var _a, _b;\n if (options === void 0) { options = {}; }\n if (sourceFilesSet === void 0) { sourceFilesSet = new ts.Set(sourceFiles.map(function (f) { return f.fileName; })); }\n if (options.use === 1 /* References */) {\n node = ts.getAdjustedReferenceLocation(node);\n }\n else if (options.use === 2 /* Rename */) {\n node = ts.getAdjustedRenameLocation(node);\n }\n if (ts.isSourceFile(node)) {\n var resolvedRef = ts.GoToDefinition.getReferenceAtPosition(node, position, program);\n if (!(resolvedRef === null || resolvedRef === void 0 ? void 0 : resolvedRef.file)) {\n return undefined;\n }\n var moduleSymbol = program.getTypeChecker().getMergedSymbol(resolvedRef.file.symbol);\n if (moduleSymbol) {\n return getReferencedSymbolsForModule(program, moduleSymbol, /*excludeImportTypeOfExportEquals*/ false, sourceFiles, sourceFilesSet);\n }\n var fileIncludeReasons = program.getFileIncludeReasons();\n if (!fileIncludeReasons) {\n return undefined;\n }\n return [{\n definition: { type: 5 /* TripleSlashReference */, reference: resolvedRef.reference, file: node },\n references: getReferencesForNonModule(resolvedRef.file, fileIncludeReasons, program) || ts.emptyArray\n }];\n }\n if (!options.implementations) {\n var special = getReferencedSymbolsSpecial(node, sourceFiles, cancellationToken);\n if (special) {\n return special;\n }\n }\n var checker = program.getTypeChecker();\n // constructors should use the class symbol, detected by name, if present\n var symbol = checker.getSymbolAtLocation(ts.isConstructorDeclaration(node) && node.parent.name || node);\n // Could not find a symbol e.g. unknown identifier\n if (!symbol) {\n // String literal might be a property (and thus have a symbol), so do this here rather than in getReferencedSymbolsSpecial.\n if (!options.implementations && ts.isStringLiteralLike(node)) {\n if (ts.isModuleSpecifierLike(node)) {\n var fileIncludeReasons = program.getFileIncludeReasons();\n var referencedFileName = (_b = (_a = node.getSourceFile().resolvedModules) === null || _a === void 0 ? void 0 : _a.get(node.text)) === null || _b === void 0 ? void 0 : _b.resolvedFileName;\n var referencedFile = referencedFileName ? program.getSourceFile(referencedFileName) : undefined;\n if (referencedFile) {\n return [{ definition: { type: 4 /* String */, node: node }, references: getReferencesForNonModule(referencedFile, fileIncludeReasons, program) || ts.emptyArray }];\n }\n // Fall through to string literal references. This is not very likely to return\n // anything useful, but I guess it's better than nothing, and there's an existing\n // test that expects this to happen (fourslash/cases/untypedModuleImport.ts).\n }\n return getReferencesForStringLiteral(node, sourceFiles, checker, cancellationToken);\n }\n return undefined;\n }\n if (symbol.escapedName === \"export=\" /* ExportEquals */) {\n return getReferencedSymbolsForModule(program, symbol.parent, /*excludeImportTypeOfExportEquals*/ false, sourceFiles, sourceFilesSet);\n }\n var moduleReferences = getReferencedSymbolsForModuleIfDeclaredBySourceFile(symbol, program, sourceFiles, cancellationToken, options, sourceFilesSet);\n if (moduleReferences && !(symbol.flags & 33554432 /* Transient */)) {\n return moduleReferences;\n }\n var aliasedSymbol = getMergedAliasedSymbolOfNamespaceExportDeclaration(node, symbol, checker);\n var moduleReferencesOfExportTarget = aliasedSymbol &&\n getReferencedSymbolsForModuleIfDeclaredBySourceFile(aliasedSymbol, program, sourceFiles, cancellationToken, options, sourceFilesSet);\n var references = getReferencedSymbolsForSymbol(symbol, node, sourceFiles, sourceFilesSet, checker, cancellationToken, options);\n return mergeReferences(program, moduleReferences, references, moduleReferencesOfExportTarget);\n }\n Core.getReferencedSymbolsForNode = getReferencedSymbolsForNode;\n function getReferencesForFileName(fileName, program, sourceFiles, sourceFilesSet) {\n var _a, _b;\n if (sourceFilesSet === void 0) { sourceFilesSet = new ts.Set(sourceFiles.map(function (f) { return f.fileName; })); }\n var moduleSymbol = (_a = program.getSourceFile(fileName)) === null || _a === void 0 ? void 0 : _a.symbol;\n if (moduleSymbol) {\n return ((_b = getReferencedSymbolsForModule(program, moduleSymbol, /*excludeImportTypeOfExportEquals*/ false, sourceFiles, sourceFilesSet)[0]) === null || _b === void 0 ? void 0 : _b.references) || ts.emptyArray;\n }\n var fileIncludeReasons = program.getFileIncludeReasons();\n var referencedFile = program.getSourceFile(fileName);\n return referencedFile && fileIncludeReasons && getReferencesForNonModule(referencedFile, fileIncludeReasons, program) || ts.emptyArray;\n }\n Core.getReferencesForFileName = getReferencesForFileName;\n function getReferencesForNonModule(referencedFile, refFileMap, program) {\n var entries;\n var references = refFileMap.get(referencedFile.path) || ts.emptyArray;\n for (var _i = 0, references_1 = references; _i < references_1.length; _i++) {\n var ref = references_1[_i];\n if (ts.isReferencedFile(ref)) {\n var referencingFile = program.getSourceFileByPath(ref.file);\n var location = ts.getReferencedFileLocation(program.getSourceFileByPath, ref);\n if (ts.isReferenceFileLocation(location)) {\n entries = ts.append(entries, {\n kind: 0 /* Span */,\n fileName: referencingFile.fileName,\n textSpan: ts.createTextSpanFromRange(location)\n });\n }\n }\n }\n return entries;\n }\n function getMergedAliasedSymbolOfNamespaceExportDeclaration(node, symbol, checker) {\n if (node.parent && ts.isNamespaceExportDeclaration(node.parent)) {\n var aliasedSymbol = checker.getAliasedSymbol(symbol);\n var targetSymbol = checker.getMergedSymbol(aliasedSymbol);\n if (aliasedSymbol !== targetSymbol) {\n return targetSymbol;\n }\n }\n return undefined;\n }\n function getReferencedSymbolsForModuleIfDeclaredBySourceFile(symbol, program, sourceFiles, cancellationToken, options, sourceFilesSet) {\n var moduleSourceFile = (symbol.flags & 1536 /* Module */) && symbol.declarations && ts.find(symbol.declarations, ts.isSourceFile);\n if (!moduleSourceFile)\n return undefined;\n var exportEquals = symbol.exports.get(\"export=\" /* ExportEquals */);\n // If !!exportEquals, we're about to add references to `import(\"mod\")` anyway, so don't double-count them.\n var moduleReferences = getReferencedSymbolsForModule(program, symbol, !!exportEquals, sourceFiles, sourceFilesSet);\n if (!exportEquals || !sourceFilesSet.has(moduleSourceFile.fileName))\n return moduleReferences;\n // Continue to get references to 'export ='.\n var checker = program.getTypeChecker();\n symbol = ts.skipAlias(exportEquals, checker);\n return mergeReferences(program, moduleReferences, getReferencedSymbolsForSymbol(symbol, /*node*/ undefined, sourceFiles, sourceFilesSet, checker, cancellationToken, options));\n }\n /**\n * Merges the references by sorting them (by file index in sourceFiles and their location in it) that point to same definition symbol\n */\n function mergeReferences(program) {\n var referencesToMerge = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n referencesToMerge[_i - 1] = arguments[_i];\n }\n var result;\n for (var _a = 0, referencesToMerge_1 = referencesToMerge; _a < referencesToMerge_1.length; _a++) {\n var references = referencesToMerge_1[_a];\n if (!references || !references.length)\n continue;\n if (!result) {\n result = references;\n continue;\n }\n var _loop_4 = function (entry) {\n if (!entry.definition || entry.definition.type !== 0 /* Symbol */) {\n result.push(entry);\n return \"continue\";\n }\n var symbol = entry.definition.symbol;\n var refIndex = ts.findIndex(result, function (ref) { return !!ref.definition &&\n ref.definition.type === 0 /* Symbol */ &&\n ref.definition.symbol === symbol; });\n if (refIndex === -1) {\n result.push(entry);\n return \"continue\";\n }\n var reference = result[refIndex];\n result[refIndex] = {\n definition: reference.definition,\n references: reference.references.concat(entry.references).sort(function (entry1, entry2) {\n var entry1File = getSourceFileIndexOfEntry(program, entry1);\n var entry2File = getSourceFileIndexOfEntry(program, entry2);\n if (entry1File !== entry2File) {\n return ts.compareValues(entry1File, entry2File);\n }\n var entry1Span = getTextSpanOfEntry(entry1);\n var entry2Span = getTextSpanOfEntry(entry2);\n return entry1Span.start !== entry2Span.start ?\n ts.compareValues(entry1Span.start, entry2Span.start) :\n ts.compareValues(entry1Span.length, entry2Span.length);\n })\n };\n };\n for (var _b = 0, references_2 = references; _b < references_2.length; _b++) {\n var entry = references_2[_b];\n _loop_4(entry);\n }\n }\n return result;\n }\n function getSourceFileIndexOfEntry(program, entry) {\n var sourceFile = entry.kind === 0 /* Span */ ?\n program.getSourceFile(entry.fileName) :\n entry.node.getSourceFile();\n return program.getSourceFiles().indexOf(sourceFile);\n }\n function getReferencedSymbolsForModule(program, symbol, excludeImportTypeOfExportEquals, sourceFiles, sourceFilesSet) {\n ts.Debug.assert(!!symbol.valueDeclaration);\n var references = ts.mapDefined(FindAllReferences.findModuleReferences(program, sourceFiles, symbol), function (reference) {\n if (reference.kind === \"import\") {\n var parent = reference.literal.parent;\n if (ts.isLiteralTypeNode(parent)) {\n var importType = ts.cast(parent.parent, ts.isImportTypeNode);\n if (excludeImportTypeOfExportEquals && !importType.qualifier) {\n return undefined;\n }\n }\n // import(\"foo\") with no qualifier will reference the `export =` of the module, which may be referenced anyway.\n return nodeEntry(reference.literal);\n }\n else {\n return {\n kind: 0 /* Span */,\n fileName: reference.referencingFile.fileName,\n textSpan: ts.createTextSpanFromRange(reference.ref),\n };\n }\n });\n if (symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n switch (decl.kind) {\n case 300 /* SourceFile */:\n // Don't include the source file itself. (This may not be ideal behavior, but awkward to include an entire file as a reference.)\n break;\n case 259 /* ModuleDeclaration */:\n if (sourceFilesSet.has(decl.getSourceFile().fileName)) {\n references.push(nodeEntry(decl.name));\n }\n break;\n default:\n // This may be merged with something.\n ts.Debug.assert(!!(symbol.flags & 33554432 /* Transient */), \"Expected a module symbol to be declared by a SourceFile or ModuleDeclaration.\");\n }\n }\n }\n var exported = symbol.exports.get(\"export=\" /* ExportEquals */);\n if (exported === null || exported === void 0 ? void 0 : exported.declarations) {\n for (var _b = 0, _c = exported.declarations; _b < _c.length; _b++) {\n var decl = _c[_b];\n var sourceFile = decl.getSourceFile();\n if (sourceFilesSet.has(sourceFile.fileName)) {\n // At `module.exports = ...`, reference node is `module`\n var node = ts.isBinaryExpression(decl) && ts.isPropertyAccessExpression(decl.left) ? decl.left.expression :\n ts.isExportAssignment(decl) ? ts.Debug.checkDefined(ts.findChildOfKind(decl, 93 /* ExportKeyword */, sourceFile)) :\n ts.getNameOfDeclaration(decl) || decl;\n references.push(nodeEntry(node));\n }\n }\n }\n return references.length ? [{ definition: { type: 0 /* Symbol */, symbol: symbol }, references: references }] : ts.emptyArray;\n }\n /** As in a `readonly prop: any` or `constructor(readonly prop: any)`, not a `readonly any[]`. */\n function isReadonlyTypeOperator(node) {\n return node.kind === 143 /* ReadonlyKeyword */\n && ts.isTypeOperatorNode(node.parent)\n && node.parent.operator === 143 /* ReadonlyKeyword */;\n }\n /** getReferencedSymbols for special node kinds. */\n function getReferencedSymbolsSpecial(node, sourceFiles, cancellationToken) {\n if (ts.isTypeKeyword(node.kind)) {\n // A void expression (i.e., `void foo()`) is not special, but the `void` type is.\n if (node.kind === 114 /* VoidKeyword */ && ts.isVoidExpression(node.parent)) {\n return undefined;\n }\n // A modifier readonly (like on a property declaration) is not special;\n // a readonly type keyword (like `readonly string[]`) is.\n if (node.kind === 143 /* ReadonlyKeyword */ && !isReadonlyTypeOperator(node)) {\n return undefined;\n }\n // Likewise, when we *are* looking for a special keyword, make sure we\n // *don’t* include readonly member modifiers.\n return getAllReferencesForKeyword(sourceFiles, node.kind, cancellationToken, node.kind === 143 /* ReadonlyKeyword */ ? isReadonlyTypeOperator : undefined);\n }\n if (ts.isStaticModifier(node) && ts.isClassStaticBlockDeclaration(node.parent)) {\n return [{ definition: { type: 2 /* Keyword */, node: node }, references: [nodeEntry(node)] }];\n }\n // Labels\n if (ts.isJumpStatementTarget(node)) {\n var labelDefinition = ts.getTargetLabel(node.parent, node.text);\n // if we have a label definition, look within its statement for references, if not, then\n // the label is undefined and we have no results..\n return labelDefinition && getLabelReferencesInNode(labelDefinition.parent, labelDefinition);\n }\n else if (ts.isLabelOfLabeledStatement(node)) {\n // it is a label definition and not a target, search within the parent labeledStatement\n return getLabelReferencesInNode(node.parent, node);\n }\n if (ts.isThis(node)) {\n return getReferencesForThisKeyword(node, sourceFiles, cancellationToken);\n }\n if (node.kind === 106 /* SuperKeyword */) {\n return getReferencesForSuperKeyword(node);\n }\n return undefined;\n }\n /** Core find-all-references algorithm for a normal symbol. */\n function getReferencedSymbolsForSymbol(originalSymbol, node, sourceFiles, sourceFilesSet, checker, cancellationToken, options) {\n var symbol = node && skipPastExportOrImportSpecifierOrUnion(originalSymbol, node, checker, /*useLocalSymbolForExportSpecifier*/ !isForRenameWithPrefixAndSuffixText(options)) || originalSymbol;\n // Compute the meaning from the location and the symbol it references\n var searchMeaning = node ? getIntersectingMeaningFromDeclarations(node, symbol) : 7 /* All */;\n var result = [];\n var state = new State(sourceFiles, sourceFilesSet, node ? getSpecialSearchKind(node) : 0 /* None */, checker, cancellationToken, searchMeaning, options, result);\n var exportSpecifier = !isForRenameWithPrefixAndSuffixText(options) || !symbol.declarations ? undefined : ts.find(symbol.declarations, ts.isExportSpecifier);\n if (exportSpecifier) {\n // When renaming at an export specifier, rename the export and not the thing being exported.\n getReferencesAtExportSpecifier(exportSpecifier.name, symbol, exportSpecifier, state.createSearch(node, originalSymbol, /*comingFrom*/ undefined), state, /*addReferencesHere*/ true, /*alwaysGetReferences*/ true);\n }\n else if (node && node.kind === 88 /* DefaultKeyword */ && symbol.escapedName === \"default\" /* Default */ && symbol.parent) {\n addReference(node, symbol, state);\n searchForImportsOfExport(node, symbol, { exportingModuleSymbol: symbol.parent, exportKind: 1 /* Default */ }, state);\n }\n else {\n var search = state.createSearch(node, symbol, /*comingFrom*/ undefined, { allSearchSymbols: node ? populateSearchSymbolSet(symbol, node, checker, options.use === 2 /* Rename */, !!options.providePrefixAndSuffixTextForRename, !!options.implementations) : [symbol] });\n getReferencesInContainerOrFiles(symbol, state, search);\n }\n return result;\n }\n function getReferencesInContainerOrFiles(symbol, state, search) {\n // Try to get the smallest valid scope that we can limit our search to;\n // otherwise we'll need to search globally (i.e. include each file).\n var scope = getSymbolScope(symbol);\n if (scope) {\n getReferencesInContainer(scope, scope.getSourceFile(), search, state, /*addReferencesHere*/ !(ts.isSourceFile(scope) && !ts.contains(state.sourceFiles, scope)));\n }\n else {\n // Global search\n for (var _i = 0, _a = state.sourceFiles; _i < _a.length; _i++) {\n var sourceFile = _a[_i];\n state.cancellationToken.throwIfCancellationRequested();\n searchForName(sourceFile, search, state);\n }\n }\n }\n function getSpecialSearchKind(node) {\n switch (node.kind) {\n case 169 /* Constructor */:\n case 133 /* ConstructorKeyword */:\n return 1 /* Constructor */;\n case 79 /* Identifier */:\n if (ts.isClassLike(node.parent)) {\n ts.Debug.assert(node.parent.name === node);\n return 2 /* Class */;\n }\n // falls through\n default:\n return 0 /* None */;\n }\n }\n /** Handle a few special cases relating to export/import specifiers. */\n function skipPastExportOrImportSpecifierOrUnion(symbol, node, checker, useLocalSymbolForExportSpecifier) {\n var parent = node.parent;\n if (ts.isExportSpecifier(parent) && useLocalSymbolForExportSpecifier) {\n return getLocalSymbolForExportSpecifier(node, symbol, parent, checker);\n }\n // If the symbol is declared as part of a declaration like `{ type: \"a\" } | { type: \"b\" }`, use the property on the union type to get more references.\n return ts.firstDefined(symbol.declarations, function (decl) {\n if (!decl.parent) {\n // Ignore UMD module and global merge\n if (symbol.flags & 33554432 /* Transient */)\n return undefined;\n // Assertions for GH#21814. We should be handling SourceFile symbols in `getReferencedSymbolsForModule` instead of getting here.\n ts.Debug.fail(\"Unexpected symbol at \" + ts.Debug.formatSyntaxKind(node.kind) + \": \" + ts.Debug.formatSymbol(symbol));\n }\n return ts.isTypeLiteralNode(decl.parent) && ts.isUnionTypeNode(decl.parent.parent)\n ? checker.getPropertyOfType(checker.getTypeFromTypeNode(decl.parent.parent), symbol.name)\n : undefined;\n });\n }\n var SpecialSearchKind;\n (function (SpecialSearchKind) {\n SpecialSearchKind[SpecialSearchKind[\"None\"] = 0] = \"None\";\n SpecialSearchKind[SpecialSearchKind[\"Constructor\"] = 1] = \"Constructor\";\n SpecialSearchKind[SpecialSearchKind[\"Class\"] = 2] = \"Class\";\n })(SpecialSearchKind || (SpecialSearchKind = {}));\n function getNonModuleSymbolOfMergedModuleSymbol(symbol) {\n if (!(symbol.flags & (1536 /* Module */ | 33554432 /* Transient */)))\n return undefined;\n var decl = symbol.declarations && ts.find(symbol.declarations, function (d) { return !ts.isSourceFile(d) && !ts.isModuleDeclaration(d); });\n return decl && decl.symbol;\n }\n /**\n * Holds all state needed for the finding references.\n * Unlike `Search`, there is only one `State`.\n */\n var State = /** @class */ (function () {\n function State(sourceFiles, sourceFilesSet, specialSearchKind, checker, cancellationToken, searchMeaning, options, result) {\n this.sourceFiles = sourceFiles;\n this.sourceFilesSet = sourceFilesSet;\n this.specialSearchKind = specialSearchKind;\n this.checker = checker;\n this.cancellationToken = cancellationToken;\n this.searchMeaning = searchMeaning;\n this.options = options;\n this.result = result;\n /** Cache for `explicitlyinheritsFrom`. */\n this.inheritsFromCache = new ts.Map();\n /**\n * Type nodes can contain multiple references to the same type. For example:\n * let x: Foo & (Foo & Bar) = ...\n * Because we are returning the implementation locations and not the identifier locations,\n * duplicate entries would be returned here as each of the type references is part of\n * the same implementation. For that reason, check before we add a new entry.\n */\n this.markSeenContainingTypeReference = ts.nodeSeenTracker();\n /**\n * It's possible that we will encounter the right side of `export { foo as bar } from \"x\";` more than once.\n * For example:\n * // b.ts\n * export { foo as bar } from \"./a\";\n * import { bar } from \"./b\";\n *\n * Normally at `foo as bar` we directly add `foo` and do not locally search for it (since it doesn't declare a local).\n * But another reference to it may appear in the same source file.\n * See `tests/cases/fourslash/transitiveExportImports3.ts`.\n */\n this.markSeenReExportRHS = ts.nodeSeenTracker();\n this.symbolIdToReferences = [];\n // Source file ID → symbol ID → Whether the symbol has been searched for in the source file.\n this.sourceFileToSeenSymbols = [];\n }\n State.prototype.includesSourceFile = function (sourceFile) {\n return this.sourceFilesSet.has(sourceFile.fileName);\n };\n /** Gets every place to look for references of an exported symbols. See `ImportsResult` in `importTracker.ts` for more documentation. */\n State.prototype.getImportSearches = function (exportSymbol, exportInfo) {\n if (!this.importTracker)\n this.importTracker = FindAllReferences.createImportTracker(this.sourceFiles, this.sourceFilesSet, this.checker, this.cancellationToken);\n return this.importTracker(exportSymbol, exportInfo, this.options.use === 2 /* Rename */);\n };\n /** @param allSearchSymbols set of additional symbols for use by `includes`. */\n State.prototype.createSearch = function (location, symbol, comingFrom, searchOptions) {\n if (searchOptions === void 0) { searchOptions = {}; }\n // Note: if this is an external module symbol, the name doesn't include quotes.\n // Note: getLocalSymbolForExportDefault handles `export default class C {}`, but not `export default C` or `export { C as default }`.\n // The other two forms seem to be handled downstream (e.g. in `skipPastExportOrImportSpecifier`), so special-casing the first form\n // here appears to be intentional).\n var _a = searchOptions.text, text = _a === void 0 ? ts.stripQuotes(ts.symbolName(ts.getLocalSymbolForExportDefault(symbol) || getNonModuleSymbolOfMergedModuleSymbol(symbol) || symbol)) : _a, _b = searchOptions.allSearchSymbols, allSearchSymbols = _b === void 0 ? [symbol] : _b;\n var escapedText = ts.escapeLeadingUnderscores(text);\n var parents = this.options.implementations && location ? getParentSymbolsOfPropertyAccess(location, symbol, this.checker) : undefined;\n return { symbol: symbol, comingFrom: comingFrom, text: text, escapedText: escapedText, parents: parents, allSearchSymbols: allSearchSymbols, includes: function (sym) { return ts.contains(allSearchSymbols, sym); } };\n };\n /**\n * Callback to add references for a particular searched symbol.\n * This initializes a reference group, so only call this if you will add at least one reference.\n */\n State.prototype.referenceAdder = function (searchSymbol) {\n var symbolId = ts.getSymbolId(searchSymbol);\n var references = this.symbolIdToReferences[symbolId];\n if (!references) {\n references = this.symbolIdToReferences[symbolId] = [];\n this.result.push({ definition: { type: 0 /* Symbol */, symbol: searchSymbol }, references: references });\n }\n return function (node, kind) { return references.push(nodeEntry(node, kind)); };\n };\n /** Add a reference with no associated definition. */\n State.prototype.addStringOrCommentReference = function (fileName, textSpan) {\n this.result.push({\n definition: undefined,\n references: [{ kind: 0 /* Span */, fileName: fileName, textSpan: textSpan }]\n });\n };\n /** Returns `true` the first time we search for a symbol in a file and `false` afterwards. */\n State.prototype.markSearchedSymbols = function (sourceFile, symbols) {\n var sourceId = ts.getNodeId(sourceFile);\n var seenSymbols = this.sourceFileToSeenSymbols[sourceId] || (this.sourceFileToSeenSymbols[sourceId] = new ts.Set());\n var anyNewSymbols = false;\n for (var _i = 0, symbols_2 = symbols; _i < symbols_2.length; _i++) {\n var sym = symbols_2[_i];\n anyNewSymbols = ts.tryAddToSet(seenSymbols, ts.getSymbolId(sym)) || anyNewSymbols;\n }\n return anyNewSymbols;\n };\n return State;\n }());\n /** Search for all imports of a given exported symbol using `State.getImportSearches`. */\n function searchForImportsOfExport(exportLocation, exportSymbol, exportInfo, state) {\n var _a = state.getImportSearches(exportSymbol, exportInfo), importSearches = _a.importSearches, singleReferences = _a.singleReferences, indirectUsers = _a.indirectUsers;\n // For `import { foo as bar }` just add the reference to `foo`, and don't otherwise search in the file.\n if (singleReferences.length) {\n var addRef = state.referenceAdder(exportSymbol);\n for (var _i = 0, singleReferences_1 = singleReferences; _i < singleReferences_1.length; _i++) {\n var singleRef = singleReferences_1[_i];\n if (shouldAddSingleReference(singleRef, state))\n addRef(singleRef);\n }\n }\n // For each import, find all references to that import in its source file.\n for (var _b = 0, importSearches_1 = importSearches; _b < importSearches_1.length; _b++) {\n var _c = importSearches_1[_b], importLocation = _c[0], importSymbol = _c[1];\n getReferencesInSourceFile(importLocation.getSourceFile(), state.createSearch(importLocation, importSymbol, 1 /* Export */), state);\n }\n if (indirectUsers.length) {\n var indirectSearch = void 0;\n switch (exportInfo.exportKind) {\n case 0 /* Named */:\n indirectSearch = state.createSearch(exportLocation, exportSymbol, 1 /* Export */);\n break;\n case 1 /* Default */:\n // Search for a property access to '.default'. This can't be renamed.\n indirectSearch = state.options.use === 2 /* Rename */ ? undefined : state.createSearch(exportLocation, exportSymbol, 1 /* Export */, { text: \"default\" });\n break;\n case 2 /* ExportEquals */:\n break;\n }\n if (indirectSearch) {\n for (var _d = 0, indirectUsers_1 = indirectUsers; _d < indirectUsers_1.length; _d++) {\n var indirectUser = indirectUsers_1[_d];\n searchForName(indirectUser, indirectSearch, state);\n }\n }\n }\n }\n function eachExportReference(sourceFiles, checker, cancellationToken, exportSymbol, exportingModuleSymbol, exportName, isDefaultExport, cb) {\n var importTracker = FindAllReferences.createImportTracker(sourceFiles, new ts.Set(sourceFiles.map(function (f) { return f.fileName; })), checker, cancellationToken);\n var _a = importTracker(exportSymbol, { exportKind: isDefaultExport ? 1 /* Default */ : 0 /* Named */, exportingModuleSymbol: exportingModuleSymbol }, /*isForRename*/ false), importSearches = _a.importSearches, indirectUsers = _a.indirectUsers;\n for (var _i = 0, importSearches_2 = importSearches; _i < importSearches_2.length; _i++) {\n var importLocation = importSearches_2[_i][0];\n cb(importLocation);\n }\n for (var _b = 0, indirectUsers_2 = indirectUsers; _b < indirectUsers_2.length; _b++) {\n var indirectUser = indirectUsers_2[_b];\n for (var _c = 0, _d = getPossibleSymbolReferenceNodes(indirectUser, isDefaultExport ? \"default\" : exportName); _c < _d.length; _c++) {\n var node = _d[_c];\n // Import specifiers should be handled by importSearches\n var symbol = checker.getSymbolAtLocation(node);\n var hasExportAssignmentDeclaration = ts.some(symbol === null || symbol === void 0 ? void 0 : symbol.declarations, function (d) { return ts.tryCast(d, ts.isExportAssignment) ? true : false; });\n if (ts.isIdentifier(node) && !ts.isImportOrExportSpecifier(node.parent) && (symbol === exportSymbol || hasExportAssignmentDeclaration)) {\n cb(node);\n }\n }\n }\n }\n Core.eachExportReference = eachExportReference;\n function shouldAddSingleReference(singleRef, state) {\n if (!hasMatchingMeaning(singleRef, state))\n return false;\n if (state.options.use !== 2 /* Rename */)\n return true;\n // Don't rename an import type `import(\"./module-name\")` when renaming `name` in `export = name;`\n if (!ts.isIdentifier(singleRef))\n return false;\n // At `default` in `import { default as x }` or `export { default as x }`, do add a reference, but do not rename.\n return !(ts.isImportOrExportSpecifier(singleRef.parent) && singleRef.escapedText === \"default\" /* Default */);\n }\n // Go to the symbol we imported from and find references for it.\n function searchForImportedSymbol(symbol, state) {\n if (!symbol.declarations)\n return;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n var exportingFile = declaration.getSourceFile();\n // Need to search in the file even if it's not in the search-file set, because it might export the symbol.\n getReferencesInSourceFile(exportingFile, state.createSearch(declaration, symbol, 0 /* Import */), state, state.includesSourceFile(exportingFile));\n }\n }\n /** Search for all occurences of an identifier in a source file (and filter out the ones that match). */\n function searchForName(sourceFile, search, state) {\n if (ts.getNameTable(sourceFile).get(search.escapedText) !== undefined) {\n getReferencesInSourceFile(sourceFile, search, state);\n }\n }\n function getPropertySymbolOfDestructuringAssignment(location, checker) {\n return ts.isArrayLiteralOrObjectLiteralDestructuringPattern(location.parent.parent)\n ? checker.getPropertySymbolOfDestructuringAssignment(location)\n : undefined;\n }\n /**\n * Determines the smallest scope in which a symbol may have named references.\n * Note that not every construct has been accounted for. This function can\n * probably be improved.\n *\n * @returns undefined if the scope cannot be determined, implying that\n * a reference to a symbol can occur anywhere.\n */\n function getSymbolScope(symbol) {\n // If this is the symbol of a named function expression or named class expression,\n // then named references are limited to its own scope.\n var declarations = symbol.declarations, flags = symbol.flags, parent = symbol.parent, valueDeclaration = symbol.valueDeclaration;\n if (valueDeclaration && (valueDeclaration.kind === 211 /* FunctionExpression */ || valueDeclaration.kind === 224 /* ClassExpression */)) {\n return valueDeclaration;\n }\n if (!declarations) {\n return undefined;\n }\n // If this is private property or method, the scope is the containing class\n if (flags & (4 /* Property */ | 8192 /* Method */)) {\n var privateDeclaration = ts.find(declarations, function (d) { return ts.hasEffectiveModifier(d, 8 /* Private */) || ts.isPrivateIdentifierClassElementDeclaration(d); });\n if (privateDeclaration) {\n return ts.getAncestor(privateDeclaration, 255 /* ClassDeclaration */);\n }\n // Else this is a public property and could be accessed from anywhere.\n return undefined;\n }\n // If symbol is of object binding pattern element without property name we would want to\n // look for property too and that could be anywhere\n if (declarations.some(ts.isObjectBindingElementWithoutPropertyName)) {\n return undefined;\n }\n /*\n If the symbol has a parent, it's globally visible unless:\n - It's a private property (handled above).\n - It's a type parameter.\n - The parent is an external module: then we should only search in the module (and recurse on the export later).\n - But if the parent has `export as namespace`, the symbol is globally visible through that namespace.\n */\n var exposedByParent = parent && !(symbol.flags & 262144 /* TypeParameter */);\n if (exposedByParent && !(ts.isExternalModuleSymbol(parent) && !parent.globalExports)) {\n return undefined;\n }\n var scope;\n for (var _i = 0, declarations_1 = declarations; _i < declarations_1.length; _i++) {\n var declaration = declarations_1[_i];\n var container = ts.getContainerNode(declaration);\n if (scope && scope !== container) {\n // Different declarations have different containers, bail out\n return undefined;\n }\n if (!container || container.kind === 300 /* SourceFile */ && !ts.isExternalOrCommonJsModule(container)) {\n // This is a global variable and not an external module, any declaration defined\n // within this scope is visible outside the file\n return undefined;\n }\n scope = container;\n if (ts.isFunctionExpression(scope)) {\n var next = void 0;\n while (next = ts.getNextJSDocCommentLocation(scope)) {\n scope = next;\n }\n }\n }\n // If symbol.parent, this means we are in an export of an external module. (Otherwise we would have returned `undefined` above.)\n // For an export of a module, we may be in a declaration file, and it may be accessed elsewhere. E.g.:\n // declare module \"a\" { export type T = number; }\n // declare module \"b\" { import { T } from \"a\"; export const x: T; }\n // So we must search the whole source file. (Because we will mark the source file as seen, we we won't return to it when searching for imports.)\n return exposedByParent ? scope.getSourceFile() : scope; // TODO: GH#18217\n }\n /** Used as a quick check for whether a symbol is used at all in a file (besides its definition). */\n function isSymbolReferencedInFile(definition, checker, sourceFile, searchContainer) {\n if (searchContainer === void 0) { searchContainer = sourceFile; }\n return eachSymbolReferenceInFile(definition, checker, sourceFile, function () { return true; }, searchContainer) || false;\n }\n Core.isSymbolReferencedInFile = isSymbolReferencedInFile;\n function eachSymbolReferenceInFile(definition, checker, sourceFile, cb, searchContainer) {\n if (searchContainer === void 0) { searchContainer = sourceFile; }\n var symbol = ts.isParameterPropertyDeclaration(definition.parent, definition.parent.parent)\n ? ts.first(checker.getSymbolsOfParameterPropertyDeclaration(definition.parent, definition.text))\n : checker.getSymbolAtLocation(definition);\n if (!symbol)\n return undefined;\n for (var _i = 0, _a = getPossibleSymbolReferenceNodes(sourceFile, symbol.name, searchContainer); _i < _a.length; _i++) {\n var token = _a[_i];\n if (!ts.isIdentifier(token) || token === definition || token.escapedText !== definition.escapedText)\n continue;\n var referenceSymbol = checker.getSymbolAtLocation(token); // See GH#19955 for why the type annotation is necessary\n if (referenceSymbol === symbol\n || checker.getShorthandAssignmentValueSymbol(token.parent) === symbol\n || ts.isExportSpecifier(token.parent) && getLocalSymbolForExportSpecifier(token, referenceSymbol, token.parent, checker) === symbol) {\n var res = cb(token);\n if (res)\n return res;\n }\n }\n }\n Core.eachSymbolReferenceInFile = eachSymbolReferenceInFile;\n function someSignatureUsage(signature, sourceFiles, checker, cb) {\n if (!signature.name || !ts.isIdentifier(signature.name))\n return false;\n var symbol = ts.Debug.checkDefined(checker.getSymbolAtLocation(signature.name));\n for (var _i = 0, sourceFiles_3 = sourceFiles; _i < sourceFiles_3.length; _i++) {\n var sourceFile = sourceFiles_3[_i];\n for (var _a = 0, _b = getPossibleSymbolReferenceNodes(sourceFile, symbol.name); _a < _b.length; _a++) {\n var name = _b[_a];\n if (!ts.isIdentifier(name) || name === signature.name || name.escapedText !== signature.name.escapedText)\n continue;\n var called = ts.climbPastPropertyAccess(name);\n var call = ts.isCallExpression(called.parent) && called.parent.expression === called ? called.parent : undefined;\n var referenceSymbol = checker.getSymbolAtLocation(name);\n if (referenceSymbol && checker.getRootSymbols(referenceSymbol).some(function (s) { return s === symbol; })) {\n if (cb(name, call)) {\n return true;\n }\n }\n }\n }\n return false;\n }\n Core.someSignatureUsage = someSignatureUsage;\n function getPossibleSymbolReferenceNodes(sourceFile, symbolName, container) {\n if (container === void 0) { container = sourceFile; }\n return getPossibleSymbolReferencePositions(sourceFile, symbolName, container).map(function (pos) { return ts.getTouchingPropertyName(sourceFile, pos); });\n }\n function getPossibleSymbolReferencePositions(sourceFile, symbolName, container) {\n if (container === void 0) { container = sourceFile; }\n var positions = [];\n /// TODO: Cache symbol existence for files to save text search\n // Also, need to make this work for unicode escapes.\n // Be resilient in the face of a symbol with no name or zero length name\n if (!symbolName || !symbolName.length) {\n return positions;\n }\n var text = sourceFile.text;\n var sourceLength = text.length;\n var symbolNameLength = symbolName.length;\n var position = text.indexOf(symbolName, container.pos);\n while (position >= 0) {\n // If we are past the end, stop looking\n if (position > container.end)\n break;\n // We found a match. Make sure it's not part of a larger word (i.e. the char\n // before and after it have to be a non-identifier char).\n var endPosition = position + symbolNameLength;\n if ((position === 0 || !ts.isIdentifierPart(text.charCodeAt(position - 1), 99 /* Latest */)) &&\n (endPosition === sourceLength || !ts.isIdentifierPart(text.charCodeAt(endPosition), 99 /* Latest */))) {\n // Found a real match. Keep searching.\n positions.push(position);\n }\n position = text.indexOf(symbolName, position + symbolNameLength + 1);\n }\n return positions;\n }\n function getLabelReferencesInNode(container, targetLabel) {\n var sourceFile = container.getSourceFile();\n var labelName = targetLabel.text;\n var references = ts.mapDefined(getPossibleSymbolReferenceNodes(sourceFile, labelName, container), function (node) {\n // Only pick labels that are either the target label, or have a target that is the target label\n return node === targetLabel || (ts.isJumpStatementTarget(node) && ts.getTargetLabel(node, labelName) === targetLabel) ? nodeEntry(node) : undefined;\n });\n return [{ definition: { type: 1 /* Label */, node: targetLabel }, references: references }];\n }\n function isValidReferencePosition(node, searchSymbolName) {\n // Compare the length so we filter out strict superstrings of the symbol we are looking for\n switch (node.kind) {\n case 80 /* PrivateIdentifier */:\n if (ts.isJSDocMemberName(node.parent)) {\n return true;\n }\n // falls through I guess\n case 79 /* Identifier */:\n return node.text.length === searchSymbolName.length;\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 10 /* StringLiteral */: {\n var str = node;\n return (ts.isLiteralNameOfPropertyDeclarationOrIndexAccess(str) || ts.isNameOfModuleDeclaration(node) || ts.isExpressionOfExternalModuleImportEqualsDeclaration(node) || (ts.isCallExpression(node.parent) && ts.isBindableObjectDefinePropertyCall(node.parent) && node.parent.arguments[1] === node)) &&\n str.text.length === searchSymbolName.length;\n }\n case 8 /* NumericLiteral */:\n return ts.isLiteralNameOfPropertyDeclarationOrIndexAccess(node) && node.text.length === searchSymbolName.length;\n case 88 /* DefaultKeyword */:\n return \"default\".length === searchSymbolName.length;\n default:\n return false;\n }\n }\n function getAllReferencesForKeyword(sourceFiles, keywordKind, cancellationToken, filter) {\n var references = ts.flatMap(sourceFiles, function (sourceFile) {\n cancellationToken.throwIfCancellationRequested();\n return ts.mapDefined(getPossibleSymbolReferenceNodes(sourceFile, ts.tokenToString(keywordKind), sourceFile), function (referenceLocation) {\n if (referenceLocation.kind === keywordKind && (!filter || filter(referenceLocation))) {\n return nodeEntry(referenceLocation);\n }\n });\n });\n return references.length ? [{ definition: { type: 2 /* Keyword */, node: references[0].node }, references: references }] : undefined;\n }\n function getReferencesInSourceFile(sourceFile, search, state, addReferencesHere) {\n if (addReferencesHere === void 0) { addReferencesHere = true; }\n state.cancellationToken.throwIfCancellationRequested();\n return getReferencesInContainer(sourceFile, sourceFile, search, state, addReferencesHere);\n }\n /**\n * Search within node \"container\" for references for a search value, where the search value is defined as a\n * tuple of(searchSymbol, searchText, searchLocation, and searchMeaning).\n * searchLocation: a node where the search value\n */\n function getReferencesInContainer(container, sourceFile, search, state, addReferencesHere) {\n if (!state.markSearchedSymbols(sourceFile, search.allSearchSymbols)) {\n return;\n }\n for (var _i = 0, _a = getPossibleSymbolReferencePositions(sourceFile, search.text, container); _i < _a.length; _i++) {\n var position = _a[_i];\n getReferencesAtLocation(sourceFile, position, search, state, addReferencesHere);\n }\n }\n function hasMatchingMeaning(referenceLocation, state) {\n return !!(ts.getMeaningFromLocation(referenceLocation) & state.searchMeaning);\n }\n function getReferencesAtLocation(sourceFile, position, search, state, addReferencesHere) {\n var referenceLocation = ts.getTouchingPropertyName(sourceFile, position);\n if (!isValidReferencePosition(referenceLocation, search.text)) {\n // This wasn't the start of a token. Check to see if it might be a\n // match in a comment or string if that's what the caller is asking\n // for.\n if (!state.options.implementations && (state.options.findInStrings && ts.isInString(sourceFile, position) || state.options.findInComments && ts.isInNonReferenceComment(sourceFile, position))) {\n // In the case where we're looking inside comments/strings, we don't have\n // an actual definition. So just use 'undefined' here. Features like\n // 'Rename' won't care (as they ignore the definitions), and features like\n // 'FindReferences' will just filter out these results.\n state.addStringOrCommentReference(sourceFile.fileName, ts.createTextSpan(position, search.text.length));\n }\n return;\n }\n if (!hasMatchingMeaning(referenceLocation, state))\n return;\n var referenceSymbol = state.checker.getSymbolAtLocation(referenceLocation);\n if (!referenceSymbol) {\n return;\n }\n var parent = referenceLocation.parent;\n if (ts.isImportSpecifier(parent) && parent.propertyName === referenceLocation) {\n // This is added through `singleReferences` in ImportsResult. If we happen to see it again, don't add it again.\n return;\n }\n if (ts.isExportSpecifier(parent)) {\n ts.Debug.assert(referenceLocation.kind === 79 /* Identifier */);\n getReferencesAtExportSpecifier(referenceLocation, referenceSymbol, parent, search, state, addReferencesHere);\n return;\n }\n var relatedSymbol = getRelatedSymbol(search, referenceSymbol, referenceLocation, state);\n if (!relatedSymbol) {\n getReferenceForShorthandProperty(referenceSymbol, search, state);\n return;\n }\n switch (state.specialSearchKind) {\n case 0 /* None */:\n if (addReferencesHere)\n addReference(referenceLocation, relatedSymbol, state);\n break;\n case 1 /* Constructor */:\n addConstructorReferences(referenceLocation, sourceFile, search, state);\n break;\n case 2 /* Class */:\n addClassStaticThisReferences(referenceLocation, search, state);\n break;\n default:\n ts.Debug.assertNever(state.specialSearchKind);\n }\n // Use the parent symbol if the location is commonjs require syntax on javascript files only.\n referenceSymbol = ts.isInJSFile(referenceLocation) && referenceLocation.parent.kind === 201 /* BindingElement */ && ts.isRequireVariableDeclaration(referenceLocation.parent)\n ? referenceLocation.parent.symbol\n : referenceSymbol;\n getImportOrExportReferences(referenceLocation, referenceSymbol, search, state);\n }\n function getReferencesAtExportSpecifier(referenceLocation, referenceSymbol, exportSpecifier, search, state, addReferencesHere, alwaysGetReferences) {\n ts.Debug.assert(!alwaysGetReferences || !!state.options.providePrefixAndSuffixTextForRename, \"If alwaysGetReferences is true, then prefix/suffix text must be enabled\");\n var parent = exportSpecifier.parent, propertyName = exportSpecifier.propertyName, name = exportSpecifier.name;\n var exportDeclaration = parent.parent;\n var localSymbol = getLocalSymbolForExportSpecifier(referenceLocation, referenceSymbol, exportSpecifier, state.checker);\n if (!alwaysGetReferences && !search.includes(localSymbol)) {\n return;\n }\n if (!propertyName) {\n // Don't rename at `export { default } from \"m\";`. (but do continue to search for imports of the re-export)\n if (!(state.options.use === 2 /* Rename */ && (name.escapedText === \"default\" /* Default */))) {\n addRef();\n }\n }\n else if (referenceLocation === propertyName) {\n // For `export { foo as bar } from \"baz\"`, \"`foo`\" will be added from the singleReferences for import searches of the original export.\n // For `export { foo as bar };`, where `foo` is a local, so add it now.\n if (!exportDeclaration.moduleSpecifier) {\n addRef();\n }\n if (addReferencesHere && state.options.use !== 2 /* Rename */ && state.markSeenReExportRHS(name)) {\n addReference(name, ts.Debug.checkDefined(exportSpecifier.symbol), state);\n }\n }\n else {\n if (state.markSeenReExportRHS(referenceLocation)) {\n addRef();\n }\n }\n // For `export { foo as bar }`, rename `foo`, but not `bar`.\n if (!isForRenameWithPrefixAndSuffixText(state.options) || alwaysGetReferences) {\n var isDefaultExport = referenceLocation.originalKeywordKind === 88 /* DefaultKeyword */\n || exportSpecifier.name.originalKeywordKind === 88 /* DefaultKeyword */;\n var exportKind = isDefaultExport ? 1 /* Default */ : 0 /* Named */;\n var exportSymbol = ts.Debug.checkDefined(exportSpecifier.symbol);\n var exportInfo = FindAllReferences.getExportInfo(exportSymbol, exportKind, state.checker);\n if (exportInfo) {\n searchForImportsOfExport(referenceLocation, exportSymbol, exportInfo, state);\n }\n }\n // At `export { x } from \"foo\"`, also search for the imported symbol `\"foo\".x`.\n if (search.comingFrom !== 1 /* Export */ && exportDeclaration.moduleSpecifier && !propertyName && !isForRenameWithPrefixAndSuffixText(state.options)) {\n var imported = state.checker.getExportSpecifierLocalTargetSymbol(exportSpecifier);\n if (imported)\n searchForImportedSymbol(imported, state);\n }\n function addRef() {\n if (addReferencesHere)\n addReference(referenceLocation, localSymbol, state);\n }\n }\n function getLocalSymbolForExportSpecifier(referenceLocation, referenceSymbol, exportSpecifier, checker) {\n return isExportSpecifierAlias(referenceLocation, exportSpecifier) && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier) || referenceSymbol;\n }\n function isExportSpecifierAlias(referenceLocation, exportSpecifier) {\n var parent = exportSpecifier.parent, propertyName = exportSpecifier.propertyName, name = exportSpecifier.name;\n ts.Debug.assert(propertyName === referenceLocation || name === referenceLocation);\n if (propertyName) {\n // Given `export { foo as bar } [from \"someModule\"]`: It's an alias at `foo`, but at `bar` it's a new symbol.\n return propertyName === referenceLocation;\n }\n else {\n // `export { foo } from \"foo\"` is a re-export.\n // `export { foo };` is not a re-export, it creates an alias for the local variable `foo`.\n return !parent.parent.moduleSpecifier;\n }\n }\n function getImportOrExportReferences(referenceLocation, referenceSymbol, search, state) {\n var importOrExport = FindAllReferences.getImportOrExportSymbol(referenceLocation, referenceSymbol, state.checker, search.comingFrom === 1 /* Export */);\n if (!importOrExport)\n return;\n var symbol = importOrExport.symbol;\n if (importOrExport.kind === 0 /* Import */) {\n if (!(isForRenameWithPrefixAndSuffixText(state.options))) {\n searchForImportedSymbol(symbol, state);\n }\n }\n else {\n searchForImportsOfExport(referenceLocation, symbol, importOrExport.exportInfo, state);\n }\n }\n function getReferenceForShorthandProperty(_a, search, state) {\n var flags = _a.flags, valueDeclaration = _a.valueDeclaration;\n var shorthandValueSymbol = state.checker.getShorthandAssignmentValueSymbol(valueDeclaration);\n var name = valueDeclaration && ts.getNameOfDeclaration(valueDeclaration);\n /*\n * Because in short-hand property assignment, an identifier which stored as name of the short-hand property assignment\n * has two meanings: property name and property value. Therefore when we do findAllReference at the position where\n * an identifier is declared, the language service should return the position of the variable declaration as well as\n * the position in short-hand property assignment excluding property accessing. However, if we do findAllReference at the\n * position of property accessing, the referenceEntry of such position will be handled in the first case.\n */\n if (!(flags & 33554432 /* Transient */) && name && search.includes(shorthandValueSymbol)) {\n addReference(name, shorthandValueSymbol, state);\n }\n }\n function addReference(referenceLocation, relatedSymbol, state) {\n var _a = \"kind\" in relatedSymbol ? relatedSymbol : { kind: undefined, symbol: relatedSymbol }, kind = _a.kind, symbol = _a.symbol; // eslint-disable-line no-in-operator\n var addRef = state.referenceAdder(symbol);\n if (state.options.implementations) {\n addImplementationReferences(referenceLocation, addRef, state);\n }\n else {\n addRef(referenceLocation, kind);\n }\n }\n /** Adds references when a constructor is used with `new this()` in its own class and `super()` calls in subclasses. */\n function addConstructorReferences(referenceLocation, sourceFile, search, state) {\n if (ts.isNewExpressionTarget(referenceLocation)) {\n addReference(referenceLocation, search.symbol, state);\n }\n var pusher = function () { return state.referenceAdder(search.symbol); };\n if (ts.isClassLike(referenceLocation.parent)) {\n ts.Debug.assert(referenceLocation.kind === 88 /* DefaultKeyword */ || referenceLocation.parent.name === referenceLocation);\n // This is the class declaration containing the constructor.\n findOwnConstructorReferences(search.symbol, sourceFile, pusher());\n }\n else {\n // If this class appears in `extends C`, then the extending class' \"super\" calls are references.\n var classExtending = tryGetClassByExtendingIdentifier(referenceLocation);\n if (classExtending) {\n findSuperConstructorAccesses(classExtending, pusher());\n findInheritedConstructorReferences(classExtending, state);\n }\n }\n }\n function addClassStaticThisReferences(referenceLocation, search, state) {\n addReference(referenceLocation, search.symbol, state);\n var classLike = referenceLocation.parent;\n if (state.options.use === 2 /* Rename */ || !ts.isClassLike(classLike))\n return;\n ts.Debug.assert(classLike.name === referenceLocation);\n var addRef = state.referenceAdder(search.symbol);\n for (var _i = 0, _a = classLike.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (!(ts.isMethodOrAccessor(member) && ts.isStatic(member))) {\n continue;\n }\n if (member.body) {\n member.body.forEachChild(function cb(node) {\n if (node.kind === 108 /* ThisKeyword */) {\n addRef(node);\n }\n else if (!ts.isFunctionLike(node) && !ts.isClassLike(node)) {\n node.forEachChild(cb);\n }\n });\n }\n }\n }\n /**\n * `classSymbol` is the class where the constructor was defined.\n * Reference the constructor and all calls to `new this()`.\n */\n function findOwnConstructorReferences(classSymbol, sourceFile, addNode) {\n var constructorSymbol = getClassConstructorSymbol(classSymbol);\n if (constructorSymbol && constructorSymbol.declarations) {\n for (var _i = 0, _a = constructorSymbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n var ctrKeyword = ts.findChildOfKind(decl, 133 /* ConstructorKeyword */, sourceFile);\n ts.Debug.assert(decl.kind === 169 /* Constructor */ && !!ctrKeyword);\n addNode(ctrKeyword);\n }\n }\n if (classSymbol.exports) {\n classSymbol.exports.forEach(function (member) {\n var decl = member.valueDeclaration;\n if (decl && decl.kind === 167 /* MethodDeclaration */) {\n var body = decl.body;\n if (body) {\n forEachDescendantOfKind(body, 108 /* ThisKeyword */, function (thisKeyword) {\n if (ts.isNewExpressionTarget(thisKeyword)) {\n addNode(thisKeyword);\n }\n });\n }\n }\n });\n }\n }\n function getClassConstructorSymbol(classSymbol) {\n return classSymbol.members && classSymbol.members.get(\"__constructor\" /* Constructor */);\n }\n /** Find references to `super` in the constructor of an extending class. */\n function findSuperConstructorAccesses(classDeclaration, addNode) {\n var constructor = getClassConstructorSymbol(classDeclaration.symbol);\n if (!(constructor && constructor.declarations)) {\n return;\n }\n for (var _i = 0, _a = constructor.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n ts.Debug.assert(decl.kind === 169 /* Constructor */);\n var body = decl.body;\n if (body) {\n forEachDescendantOfKind(body, 106 /* SuperKeyword */, function (node) {\n if (ts.isCallExpressionTarget(node)) {\n addNode(node);\n }\n });\n }\n }\n }\n function hasOwnConstructor(classDeclaration) {\n return !!getClassConstructorSymbol(classDeclaration.symbol);\n }\n function findInheritedConstructorReferences(classDeclaration, state) {\n if (hasOwnConstructor(classDeclaration))\n return;\n var classSymbol = classDeclaration.symbol;\n var search = state.createSearch(/*location*/ undefined, classSymbol, /*comingFrom*/ undefined);\n getReferencesInContainerOrFiles(classSymbol, state, search);\n }\n function addImplementationReferences(refNode, addReference, state) {\n // Check if we found a function/propertyAssignment/method with an implementation or initializer\n if (ts.isDeclarationName(refNode) && isImplementation(refNode.parent)) {\n addReference(refNode);\n return;\n }\n if (refNode.kind !== 79 /* Identifier */) {\n return;\n }\n if (refNode.parent.kind === 292 /* ShorthandPropertyAssignment */) {\n // Go ahead and dereference the shorthand assignment by going to its definition\n getReferenceEntriesForShorthandPropertyAssignment(refNode, state.checker, addReference);\n }\n // Check if the node is within an extends or implements clause\n var containingClass = getContainingClassIfInHeritageClause(refNode);\n if (containingClass) {\n addReference(containingClass);\n return;\n }\n // If we got a type reference, try and see if the reference applies to any expressions that can implement an interface\n // Find the first node whose parent isn't a type node -- i.e., the highest type node.\n var typeNode = ts.findAncestor(refNode, function (a) { return !ts.isQualifiedName(a.parent) && !ts.isTypeNode(a.parent) && !ts.isTypeElement(a.parent); });\n var typeHavingNode = typeNode.parent;\n if (ts.hasType(typeHavingNode) && typeHavingNode.type === typeNode && state.markSeenContainingTypeReference(typeHavingNode)) {\n if (ts.hasInitializer(typeHavingNode)) {\n addIfImplementation(typeHavingNode.initializer);\n }\n else if (ts.isFunctionLike(typeHavingNode) && typeHavingNode.body) {\n var body = typeHavingNode.body;\n if (body.kind === 233 /* Block */) {\n ts.forEachReturnStatement(body, function (returnStatement) {\n if (returnStatement.expression)\n addIfImplementation(returnStatement.expression);\n });\n }\n else {\n addIfImplementation(body);\n }\n }\n else if (ts.isAssertionExpression(typeHavingNode)) {\n addIfImplementation(typeHavingNode.expression);\n }\n }\n function addIfImplementation(e) {\n if (isImplementationExpression(e))\n addReference(e);\n }\n }\n function getContainingClassIfInHeritageClause(node) {\n return ts.isIdentifier(node) || ts.isPropertyAccessExpression(node) ? getContainingClassIfInHeritageClause(node.parent)\n : ts.isExpressionWithTypeArguments(node) ? ts.tryCast(node.parent.parent, ts.isClassLike) : undefined;\n }\n /**\n * Returns true if this is an expression that can be considered an implementation\n */\n function isImplementationExpression(node) {\n switch (node.kind) {\n case 210 /* ParenthesizedExpression */:\n return isImplementationExpression(node.expression);\n case 212 /* ArrowFunction */:\n case 211 /* FunctionExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 224 /* ClassExpression */:\n case 202 /* ArrayLiteralExpression */:\n return true;\n default:\n return false;\n }\n }\n /**\n * Determines if the parent symbol occurs somewhere in the child's ancestry. If the parent symbol\n * is an interface, determines if some ancestor of the child symbol extends or inherits from it.\n * Also takes in a cache of previous results which makes this slightly more efficient and is\n * necessary to avoid potential loops like so:\n * class A extends B { }\n * class B extends A { }\n *\n * We traverse the AST rather than using the type checker because users are typically only interested\n * in explicit implementations of an interface/class when calling \"Go to Implementation\". Sibling\n * implementations of types that share a common ancestor with the type whose implementation we are\n * searching for need to be filtered out of the results. The type checker doesn't let us make the\n * distinction between structurally compatible implementations and explicit implementations, so we\n * must use the AST.\n *\n * @param symbol A class or interface Symbol\n * @param parent Another class or interface Symbol\n * @param cachedResults A map of symbol id pairs (i.e. \"child,parent\") to booleans indicating previous results\n */\n function explicitlyInheritsFrom(symbol, parent, cachedResults, checker) {\n if (symbol === parent) {\n return true;\n }\n var key = ts.getSymbolId(symbol) + \",\" + ts.getSymbolId(parent);\n var cached = cachedResults.get(key);\n if (cached !== undefined) {\n return cached;\n }\n // Set the key so that we don't infinitely recurse\n cachedResults.set(key, false);\n var inherits = !!symbol.declarations && symbol.declarations.some(function (declaration) {\n return ts.getAllSuperTypeNodes(declaration).some(function (typeReference) {\n var type = checker.getTypeAtLocation(typeReference);\n return !!type && !!type.symbol && explicitlyInheritsFrom(type.symbol, parent, cachedResults, checker);\n });\n });\n cachedResults.set(key, inherits);\n return inherits;\n }\n function getReferencesForSuperKeyword(superKeyword) {\n var searchSpaceNode = ts.getSuperContainer(superKeyword, /*stopOnFunctions*/ false);\n if (!searchSpaceNode) {\n return undefined;\n }\n // Whether 'super' occurs in a static context within a class.\n var staticFlag = 32 /* Static */;\n switch (searchSpaceNode.kind) {\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n staticFlag &= ts.getSyntacticModifierFlags(searchSpaceNode);\n searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning class\n break;\n default:\n return undefined;\n }\n var sourceFile = searchSpaceNode.getSourceFile();\n var references = ts.mapDefined(getPossibleSymbolReferenceNodes(sourceFile, \"super\", searchSpaceNode), function (node) {\n if (node.kind !== 106 /* SuperKeyword */) {\n return;\n }\n var container = ts.getSuperContainer(node, /*stopOnFunctions*/ false);\n // If we have a 'super' container, we must have an enclosing class.\n // Now make sure the owning class is the same as the search-space\n // and has the same static qualifier as the original 'super's owner.\n return container && ts.isStatic(container) === !!staticFlag && container.parent.symbol === searchSpaceNode.symbol ? nodeEntry(node) : undefined;\n });\n return [{ definition: { type: 0 /* Symbol */, symbol: searchSpaceNode.symbol }, references: references }];\n }\n function isParameterName(node) {\n return node.kind === 79 /* Identifier */ && node.parent.kind === 162 /* Parameter */ && node.parent.name === node;\n }\n function getReferencesForThisKeyword(thisOrSuperKeyword, sourceFiles, cancellationToken) {\n var searchSpaceNode = ts.getThisContainer(thisOrSuperKeyword, /* includeArrowFunctions */ false);\n // Whether 'this' occurs in a static context within a class.\n var staticFlag = 32 /* Static */;\n switch (searchSpaceNode.kind) {\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n if (ts.isObjectLiteralMethod(searchSpaceNode)) {\n staticFlag &= ts.getSyntacticModifierFlags(searchSpaceNode);\n searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning object literals\n break;\n }\n // falls through\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n staticFlag &= ts.getSyntacticModifierFlags(searchSpaceNode);\n searchSpaceNode = searchSpaceNode.parent; // re-assign to be the owning class\n break;\n case 300 /* SourceFile */:\n if (ts.isExternalModule(searchSpaceNode) || isParameterName(thisOrSuperKeyword)) {\n return undefined;\n }\n // falls through\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n break;\n // Computed properties in classes are not handled here because references to this are illegal,\n // so there is no point finding references to them.\n default:\n return undefined;\n }\n var references = ts.flatMap(searchSpaceNode.kind === 300 /* SourceFile */ ? sourceFiles : [searchSpaceNode.getSourceFile()], function (sourceFile) {\n cancellationToken.throwIfCancellationRequested();\n return getPossibleSymbolReferenceNodes(sourceFile, \"this\", ts.isSourceFile(searchSpaceNode) ? sourceFile : searchSpaceNode).filter(function (node) {\n if (!ts.isThis(node)) {\n return false;\n }\n var container = ts.getThisContainer(node, /* includeArrowFunctions */ false);\n switch (searchSpaceNode.kind) {\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n return searchSpaceNode.symbol === container.symbol;\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n return ts.isObjectLiteralMethod(searchSpaceNode) && searchSpaceNode.symbol === container.symbol;\n case 224 /* ClassExpression */:\n case 255 /* ClassDeclaration */:\n case 203 /* ObjectLiteralExpression */:\n // Make sure the container belongs to the same class/object literals\n // and has the appropriate static modifier from the original container.\n return container.parent && searchSpaceNode.symbol === container.parent.symbol && ts.isStatic(container) === !!staticFlag;\n case 300 /* SourceFile */:\n return container.kind === 300 /* SourceFile */ && !ts.isExternalModule(container) && !isParameterName(node);\n }\n });\n }).map(function (n) { return nodeEntry(n); });\n var thisParameter = ts.firstDefined(references, function (r) { return ts.isParameter(r.node.parent) ? r.node : undefined; });\n return [{\n definition: { type: 3 /* This */, node: thisParameter || thisOrSuperKeyword },\n references: references\n }];\n }\n function getReferencesForStringLiteral(node, sourceFiles, checker, cancellationToken) {\n var type = ts.getContextualTypeOrAncestorTypeNodeType(node, checker);\n var references = ts.flatMap(sourceFiles, function (sourceFile) {\n cancellationToken.throwIfCancellationRequested();\n return ts.mapDefined(getPossibleSymbolReferenceNodes(sourceFile, node.text), function (ref) {\n if (ts.isStringLiteralLike(ref) && ref.text === node.text) {\n if (type) {\n var refType = ts.getContextualTypeOrAncestorTypeNodeType(ref, checker);\n if (type !== checker.getStringType() && type === refType) {\n return nodeEntry(ref, 2 /* StringLiteral */);\n }\n }\n else {\n return nodeEntry(ref, 2 /* StringLiteral */);\n }\n }\n });\n });\n return [{\n definition: { type: 4 /* String */, node: node },\n references: references\n }];\n }\n // For certain symbol kinds, we need to include other symbols in the search set.\n // This is not needed when searching for re-exports.\n function populateSearchSymbolSet(symbol, location, checker, isForRename, providePrefixAndSuffixText, implementations) {\n var result = [];\n forEachRelatedSymbol(symbol, location, checker, isForRename, !(isForRename && providePrefixAndSuffixText), function (sym, root, base) {\n // static method/property and instance method/property might have the same name. Only include static or only include instance.\n if (base) {\n if (isStaticSymbol(symbol) !== isStaticSymbol(base)) {\n base = undefined;\n }\n }\n result.push(base || root || sym);\n }, \n // when try to find implementation, implementations is true, and not allowed to find base class\n /*allowBaseTypes*/ function () { return !implementations; });\n return result;\n }\n /**\n * @param allowBaseTypes return true means it would try to find in base class or interface.\n */\n function forEachRelatedSymbol(symbol, location, checker, isForRenamePopulateSearchSymbolSet, onlyIncludeBindingElementAtReferenceLocation, \n /**\n * @param baseSymbol This symbol means one property/mehtod from base class or interface when it is not null or undefined,\n */\n cbSymbol, allowBaseTypes) {\n var containingObjectLiteralElement = ts.getContainingObjectLiteralElement(location);\n if (containingObjectLiteralElement) {\n /* Because in short-hand property assignment, location has two meaning : property name and as value of the property\n * When we do findAllReference at the position of the short-hand property assignment, we would want to have references to position of\n * property name and variable declaration of the identifier.\n * Like in below example, when querying for all references for an identifier 'name', of the property assignment, the language service\n * should show both 'name' in 'obj' and 'name' in variable declaration\n * const name = \"Foo\";\n * const obj = { name };\n * In order to do that, we will populate the search set with the value symbol of the identifier as a value of the property assignment\n * so that when matching with potential reference symbol, both symbols from property declaration and variable declaration\n * will be included correctly.\n */\n var shorthandValueSymbol = checker.getShorthandAssignmentValueSymbol(location.parent); // gets the local symbol\n if (shorthandValueSymbol && isForRenamePopulateSearchSymbolSet) {\n // When renaming 'x' in `const o = { x }`, just rename the local variable, not the property.\n return cbSymbol(shorthandValueSymbol, /*rootSymbol*/ undefined, /*baseSymbol*/ undefined, 3 /* SearchedLocalFoundProperty */);\n }\n // If the location is in a context sensitive location (i.e. in an object literal) try\n // to get a contextual type for it, and add the property symbol from the contextual\n // type to the search set\n var contextualType = checker.getContextualType(containingObjectLiteralElement.parent);\n var res_1 = contextualType && ts.firstDefined(ts.getPropertySymbolsFromContextualType(containingObjectLiteralElement, checker, contextualType, /*unionSymbolOk*/ true), function (sym) { return fromRoot(sym, 4 /* SearchedPropertyFoundLocal */); });\n if (res_1)\n return res_1;\n // If the location is name of property symbol from object literal destructuring pattern\n // Search the property symbol\n // for ( { property: p2 } of elems) { }\n var propertySymbol = getPropertySymbolOfDestructuringAssignment(location, checker);\n var res1 = propertySymbol && cbSymbol(propertySymbol, /*rootSymbol*/ undefined, /*baseSymbol*/ undefined, 4 /* SearchedPropertyFoundLocal */);\n if (res1)\n return res1;\n var res2 = shorthandValueSymbol && cbSymbol(shorthandValueSymbol, /*rootSymbol*/ undefined, /*baseSymbol*/ undefined, 3 /* SearchedLocalFoundProperty */);\n if (res2)\n return res2;\n }\n var aliasedSymbol = getMergedAliasedSymbolOfNamespaceExportDeclaration(location, symbol, checker);\n if (aliasedSymbol) {\n // In case of UMD module and global merging, search for global as well\n var res_2 = cbSymbol(aliasedSymbol, /*rootSymbol*/ undefined, /*baseSymbol*/ undefined, 1 /* Node */);\n if (res_2)\n return res_2;\n }\n var res = fromRoot(symbol);\n if (res)\n return res;\n if (symbol.valueDeclaration && ts.isParameterPropertyDeclaration(symbol.valueDeclaration, symbol.valueDeclaration.parent)) {\n // For a parameter property, now try on the other symbol (property if this was a parameter, parameter if this was a property).\n var paramProps = checker.getSymbolsOfParameterPropertyDeclaration(ts.cast(symbol.valueDeclaration, ts.isParameter), symbol.name);\n ts.Debug.assert(paramProps.length === 2 && !!(paramProps[0].flags & 1 /* FunctionScopedVariable */) && !!(paramProps[1].flags & 4 /* Property */)); // is [parameter, property]\n return fromRoot(symbol.flags & 1 /* FunctionScopedVariable */ ? paramProps[1] : paramProps[0]);\n }\n var exportSpecifier = ts.getDeclarationOfKind(symbol, 273 /* ExportSpecifier */);\n if (!isForRenamePopulateSearchSymbolSet || exportSpecifier && !exportSpecifier.propertyName) {\n var localSymbol = exportSpecifier && checker.getExportSpecifierLocalTargetSymbol(exportSpecifier);\n if (localSymbol) {\n var res_3 = cbSymbol(localSymbol, /*rootSymbol*/ undefined, /*baseSymbol*/ undefined, 1 /* Node */);\n if (res_3)\n return res_3;\n }\n }\n // symbolAtLocation for a binding element is the local symbol. See if the search symbol is the property.\n // Don't do this when populating search set for a rename when prefix and suffix text will be provided -- just rename the local.\n if (!isForRenamePopulateSearchSymbolSet) {\n var bindingElementPropertySymbol = void 0;\n if (onlyIncludeBindingElementAtReferenceLocation) {\n bindingElementPropertySymbol = ts.isObjectBindingElementWithoutPropertyName(location.parent) ? ts.getPropertySymbolFromBindingElement(checker, location.parent) : undefined;\n }\n else {\n bindingElementPropertySymbol = getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol, checker);\n }\n return bindingElementPropertySymbol && fromRoot(bindingElementPropertySymbol, 4 /* SearchedPropertyFoundLocal */);\n }\n ts.Debug.assert(isForRenamePopulateSearchSymbolSet);\n // due to the above assert and the arguments at the uses of this function,\n // (onlyIncludeBindingElementAtReferenceLocation <=> !providePrefixAndSuffixTextForRename) holds\n var includeOriginalSymbolOfBindingElement = onlyIncludeBindingElementAtReferenceLocation;\n if (includeOriginalSymbolOfBindingElement) {\n var bindingElementPropertySymbol = getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol, checker);\n return bindingElementPropertySymbol && fromRoot(bindingElementPropertySymbol, 4 /* SearchedPropertyFoundLocal */);\n }\n function fromRoot(sym, kind) {\n // If this is a union property:\n // - In populateSearchSymbolsSet we will add all the symbols from all its source symbols in all unioned types.\n // - In findRelatedSymbol, we will just use the union symbol if any source symbol is included in the search.\n // If the symbol is an instantiation from a another symbol (e.g. widened symbol):\n // - In populateSearchSymbolsSet, add the root the list\n // - In findRelatedSymbol, return the source symbol if that is in the search. (Do not return the instantiation symbol.)\n return ts.firstDefined(checker.getRootSymbols(sym), function (rootSymbol) {\n return cbSymbol(sym, rootSymbol, /*baseSymbol*/ undefined, kind)\n // Add symbol of properties/methods of the same name in base classes and implemented interfaces definitions\n || (rootSymbol.parent && rootSymbol.parent.flags & (32 /* Class */ | 64 /* Interface */) && allowBaseTypes(rootSymbol)\n ? getPropertySymbolsFromBaseTypes(rootSymbol.parent, rootSymbol.name, checker, function (base) { return cbSymbol(sym, rootSymbol, base, kind); })\n : undefined);\n });\n }\n function getPropertySymbolOfObjectBindingPatternWithoutPropertyName(symbol, checker) {\n var bindingElement = ts.getDeclarationOfKind(symbol, 201 /* BindingElement */);\n if (bindingElement && ts.isObjectBindingElementWithoutPropertyName(bindingElement)) {\n return ts.getPropertySymbolFromBindingElement(checker, bindingElement);\n }\n }\n }\n /**\n * Find symbol of the given property-name and add the symbol to the given result array\n * @param symbol a symbol to start searching for the given propertyName\n * @param propertyName a name of property to search for\n * @param result an array of symbol of found property symbols\n * @param previousIterationSymbolsCache a cache of symbol from previous iterations of calling this function to prevent infinite revisiting of the same symbol.\n * The value of previousIterationSymbol is undefined when the function is first called.\n */\n function getPropertySymbolsFromBaseTypes(symbol, propertyName, checker, cb) {\n var seen = new ts.Map();\n return recur(symbol);\n function recur(symbol) {\n // Use `addToSeen` to ensure we don't infinitely recurse in this situation:\n // interface C extends C {\n // /*findRef*/propName: string;\n // }\n if (!(symbol.flags & (32 /* Class */ | 64 /* Interface */)) || !ts.addToSeen(seen, ts.getSymbolId(symbol)))\n return;\n return ts.firstDefined(symbol.declarations, function (declaration) { return ts.firstDefined(ts.getAllSuperTypeNodes(declaration), function (typeReference) {\n var type = checker.getTypeAtLocation(typeReference);\n var propertySymbol = type && type.symbol && checker.getPropertyOfType(type, propertyName);\n // Visit the typeReference as well to see if it directly or indirectly uses that property\n return type && propertySymbol && (ts.firstDefined(checker.getRootSymbols(propertySymbol), cb) || recur(type.symbol));\n }); });\n }\n }\n function isStaticSymbol(symbol) {\n if (!symbol.valueDeclaration) {\n return false;\n }\n var modifierFlags = ts.getEffectiveModifierFlags(symbol.valueDeclaration);\n return !!(modifierFlags & 32 /* Static */);\n }\n function getRelatedSymbol(search, referenceSymbol, referenceLocation, state) {\n var checker = state.checker;\n return forEachRelatedSymbol(referenceSymbol, referenceLocation, checker, /*isForRenamePopulateSearchSymbolSet*/ false, \n /*onlyIncludeBindingElementAtReferenceLocation*/ state.options.use !== 2 /* Rename */ || !!state.options.providePrefixAndSuffixTextForRename, function (sym, rootSymbol, baseSymbol, kind) {\n // check whether the symbol used to search itself is just the searched one.\n if (baseSymbol) {\n // static method/property and instance method/property might have the same name. Only check static or only check instance.\n if (isStaticSymbol(referenceSymbol) !== isStaticSymbol(baseSymbol)) {\n baseSymbol = undefined;\n }\n }\n return search.includes(baseSymbol || rootSymbol || sym)\n // For a base type, use the symbol for the derived type. For a synthetic (e.g. union) property, use the union symbol.\n ? { symbol: rootSymbol && !(ts.getCheckFlags(sym) & 6 /* Synthetic */) ? rootSymbol : sym, kind: kind }\n : undefined;\n }, \n /*allowBaseTypes*/ function (rootSymbol) {\n return !(search.parents && !search.parents.some(function (parent) { return explicitlyInheritsFrom(rootSymbol.parent, parent, state.inheritsFromCache, checker); }));\n });\n }\n /**\n * Given an initial searchMeaning, extracted from a location, widen the search scope based on the declarations\n * of the corresponding symbol. e.g. if we are searching for \"Foo\" in value position, but \"Foo\" references a class\n * then we need to widen the search to include type positions as well.\n * On the contrary, if we are searching for \"Bar\" in type position and we trace bar to an interface, and an uninstantiated\n * module, we want to keep the search limited to only types, as the two declarations (interface and uninstantiated module)\n * do not intersect in any of the three spaces.\n */\n function getIntersectingMeaningFromDeclarations(node, symbol) {\n var meaning = ts.getMeaningFromLocation(node);\n var declarations = symbol.declarations;\n if (declarations) {\n var lastIterationMeaning = void 0;\n do {\n // The result is order-sensitive, for instance if initialMeaning === Namespace, and declarations = [class, instantiated module]\n // we need to consider both as they initialMeaning intersects with the module in the namespace space, and the module\n // intersects with the class in the value space.\n // To achieve that we will keep iterating until the result stabilizes.\n // Remember the last meaning\n lastIterationMeaning = meaning;\n for (var _i = 0, declarations_2 = declarations; _i < declarations_2.length; _i++) {\n var declaration = declarations_2[_i];\n var declarationMeaning = ts.getMeaningFromDeclaration(declaration);\n if (declarationMeaning & meaning) {\n meaning |= declarationMeaning;\n }\n }\n } while (meaning !== lastIterationMeaning);\n }\n return meaning;\n }\n Core.getIntersectingMeaningFromDeclarations = getIntersectingMeaningFromDeclarations;\n function isImplementation(node) {\n return !!(node.flags & 8388608 /* Ambient */) ? !(ts.isInterfaceDeclaration(node) || ts.isTypeAliasDeclaration(node)) :\n (ts.isVariableLike(node) ? ts.hasInitializer(node) :\n ts.isFunctionLikeDeclaration(node) ? !!node.body :\n ts.isClassLike(node) || ts.isModuleOrEnumDeclaration(node));\n }\n function getReferenceEntriesForShorthandPropertyAssignment(node, checker, addReference) {\n var refSymbol = checker.getSymbolAtLocation(node);\n var shorthandSymbol = checker.getShorthandAssignmentValueSymbol(refSymbol.valueDeclaration);\n if (shorthandSymbol) {\n for (var _i = 0, _a = shorthandSymbol.getDeclarations(); _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (ts.getMeaningFromDeclaration(declaration) & 1 /* Value */) {\n addReference(declaration);\n }\n }\n }\n }\n Core.getReferenceEntriesForShorthandPropertyAssignment = getReferenceEntriesForShorthandPropertyAssignment;\n function forEachDescendantOfKind(node, kind, action) {\n ts.forEachChild(node, function (child) {\n if (child.kind === kind) {\n action(child);\n }\n forEachDescendantOfKind(child, kind, action);\n });\n }\n /** Get `C` given `N` if `N` is in the position `class C extends N` or `class C extends foo.N` where `N` is an identifier. */\n function tryGetClassByExtendingIdentifier(node) {\n return ts.tryGetClassExtendingExpressionWithTypeArguments(ts.climbPastPropertyAccess(node).parent);\n }\n /**\n * If we are just looking for implementations and this is a property access expression, we need to get the\n * symbol of the local type of the symbol the property is being accessed on. This is because our search\n * symbol may have a different parent symbol if the local type's symbol does not declare the property\n * being accessed (i.e. it is declared in some parent class or interface)\n */\n function getParentSymbolsOfPropertyAccess(location, symbol, checker) {\n var propertyAccessExpression = ts.isRightSideOfPropertyAccess(location) ? location.parent : undefined;\n var lhsType = propertyAccessExpression && checker.getTypeAtLocation(propertyAccessExpression.expression);\n var res = ts.mapDefined(lhsType && (lhsType.isUnionOrIntersection() ? lhsType.types : lhsType.symbol === symbol.parent ? undefined : [lhsType]), function (t) {\n return t.symbol && t.symbol.flags & (32 /* Class */ | 64 /* Interface */) ? t.symbol : undefined;\n });\n return res.length === 0 ? undefined : res;\n }\n function isForRenameWithPrefixAndSuffixText(options) {\n return options.use === 2 /* Rename */ && options.providePrefixAndSuffixTextForRename;\n }\n })(Core = FindAllReferences.Core || (FindAllReferences.Core = {}));\n })(FindAllReferences = ts.FindAllReferences || (ts.FindAllReferences = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var CallHierarchy;\n (function (CallHierarchy) {\n /** Indictates whether a node is named function or class expression. */\n function isNamedExpression(node) {\n return (ts.isFunctionExpression(node) || ts.isClassExpression(node)) && ts.isNamedDeclaration(node);\n }\n /** Indicates whether a node is a function, arrow, or class expression assigned to a constant variable. */\n function isConstNamedExpression(node) {\n return (ts.isFunctionExpression(node) || ts.isArrowFunction(node) || ts.isClassExpression(node))\n && ts.isVariableDeclaration(node.parent)\n && node === node.parent.initializer\n && ts.isIdentifier(node.parent.name)\n && !!(ts.getCombinedNodeFlags(node.parent) & 2 /* Const */);\n }\n /**\n * Indicates whether a node could possibly be a call hierarchy declaration.\n *\n * See `resolveCallHierarchyDeclaration` for the specific rules.\n */\n function isPossibleCallHierarchyDeclaration(node) {\n return ts.isSourceFile(node)\n || ts.isModuleDeclaration(node)\n || ts.isFunctionDeclaration(node)\n || ts.isFunctionExpression(node)\n || ts.isClassDeclaration(node)\n || ts.isClassExpression(node)\n || ts.isClassStaticBlockDeclaration(node)\n || ts.isMethodDeclaration(node)\n || ts.isMethodSignature(node)\n || ts.isGetAccessorDeclaration(node)\n || ts.isSetAccessorDeclaration(node);\n }\n /**\n * Indicates whether a node is a valid a call hierarchy declaration.\n *\n * See `resolveCallHierarchyDeclaration` for the specific rules.\n */\n function isValidCallHierarchyDeclaration(node) {\n return ts.isSourceFile(node)\n || ts.isModuleDeclaration(node) && ts.isIdentifier(node.name)\n || ts.isFunctionDeclaration(node)\n || ts.isClassDeclaration(node)\n || ts.isClassStaticBlockDeclaration(node)\n || ts.isMethodDeclaration(node)\n || ts.isMethodSignature(node)\n || ts.isGetAccessorDeclaration(node)\n || ts.isSetAccessorDeclaration(node)\n || isNamedExpression(node)\n || isConstNamedExpression(node);\n }\n /** Gets the node that can be used as a reference to a call hierarchy declaration. */\n function getCallHierarchyDeclarationReferenceNode(node) {\n if (ts.isSourceFile(node))\n return node;\n if (ts.isNamedDeclaration(node))\n return node.name;\n if (isConstNamedExpression(node))\n return node.parent.name;\n return ts.Debug.checkDefined(node.modifiers && ts.find(node.modifiers, isDefaultModifier));\n }\n function isDefaultModifier(node) {\n return node.kind === 88 /* DefaultKeyword */;\n }\n /** Gets the symbol for a call hierarchy declaration. */\n function getSymbolOfCallHierarchyDeclaration(typeChecker, node) {\n var location = getCallHierarchyDeclarationReferenceNode(node);\n return location && typeChecker.getSymbolAtLocation(location);\n }\n /** Gets the text and range for the name of a call hierarchy declaration. */\n function getCallHierarchyItemName(program, node) {\n if (ts.isSourceFile(node)) {\n return { text: node.fileName, pos: 0, end: 0 };\n }\n if ((ts.isFunctionDeclaration(node) || ts.isClassDeclaration(node)) && !ts.isNamedDeclaration(node)) {\n var defaultModifier = node.modifiers && ts.find(node.modifiers, isDefaultModifier);\n if (defaultModifier) {\n return { text: \"default\", pos: defaultModifier.getStart(), end: defaultModifier.getEnd() };\n }\n }\n if (ts.isClassStaticBlockDeclaration(node)) {\n var sourceFile = node.getSourceFile();\n var pos = ts.skipTrivia(sourceFile.text, ts.moveRangePastModifiers(node).pos);\n var end = pos + 6; /* \"static\".length */\n var typeChecker = program.getTypeChecker();\n var symbol = typeChecker.getSymbolAtLocation(node.parent);\n var prefix = symbol ? typeChecker.symbolToString(symbol, node.parent) + \" \" : \"\";\n return { text: prefix + \"static {}\", pos: pos, end: end };\n }\n var declName = isConstNamedExpression(node) ? node.parent.name :\n ts.Debug.checkDefined(ts.getNameOfDeclaration(node), \"Expected call hierarchy item to have a name\");\n var text = ts.isIdentifier(declName) ? ts.idText(declName) :\n ts.isStringOrNumericLiteralLike(declName) ? declName.text :\n ts.isComputedPropertyName(declName) ?\n ts.isStringOrNumericLiteralLike(declName.expression) ? declName.expression.text :\n undefined :\n undefined;\n if (text === undefined) {\n var typeChecker = program.getTypeChecker();\n var symbol = typeChecker.getSymbolAtLocation(declName);\n if (symbol) {\n text = typeChecker.symbolToString(symbol, node);\n }\n }\n if (text === undefined) {\n // get the text from printing the node on a single line without comments...\n var printer_1 = ts.createPrinter({ removeComments: true, omitTrailingSemicolon: true });\n text = ts.usingSingleLineStringWriter(function (writer) { return printer_1.writeNode(4 /* Unspecified */, node, node.getSourceFile(), writer); });\n }\n return { text: text, pos: declName.getStart(), end: declName.getEnd() };\n }\n function getCallHierarchItemContainerName(node) {\n var _a, _b;\n if (isConstNamedExpression(node)) {\n if (ts.isModuleBlock(node.parent.parent.parent.parent) && ts.isIdentifier(node.parent.parent.parent.parent.parent.name)) {\n return node.parent.parent.parent.parent.parent.name.getText();\n }\n return;\n }\n switch (node.kind) {\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n if (node.parent.kind === 203 /* ObjectLiteralExpression */) {\n return (_a = ts.getAssignedName(node.parent)) === null || _a === void 0 ? void 0 : _a.getText();\n }\n return (_b = ts.getNameOfDeclaration(node.parent)) === null || _b === void 0 ? void 0 : _b.getText();\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 259 /* ModuleDeclaration */:\n if (ts.isModuleBlock(node.parent) && ts.isIdentifier(node.parent.parent.name)) {\n return node.parent.parent.name.getText();\n }\n }\n }\n function findImplementation(typeChecker, node) {\n if (node.body) {\n return node;\n }\n if (ts.isConstructorDeclaration(node)) {\n return ts.getFirstConstructorWithBody(node.parent);\n }\n if (ts.isFunctionDeclaration(node) || ts.isMethodDeclaration(node)) {\n var symbol = getSymbolOfCallHierarchyDeclaration(typeChecker, node);\n if (symbol && symbol.valueDeclaration && ts.isFunctionLikeDeclaration(symbol.valueDeclaration) && symbol.valueDeclaration.body) {\n return symbol.valueDeclaration;\n }\n return undefined;\n }\n return node;\n }\n function findAllInitialDeclarations(typeChecker, node) {\n var symbol = getSymbolOfCallHierarchyDeclaration(typeChecker, node);\n var declarations;\n if (symbol && symbol.declarations) {\n var indices = ts.indicesOf(symbol.declarations);\n var keys_1 = ts.map(symbol.declarations, function (decl) { return ({ file: decl.getSourceFile().fileName, pos: decl.pos }); });\n indices.sort(function (a, b) { return ts.compareStringsCaseSensitive(keys_1[a].file, keys_1[b].file) || keys_1[a].pos - keys_1[b].pos; });\n var sortedDeclarations = ts.map(indices, function (i) { return symbol.declarations[i]; });\n var lastDecl = void 0;\n for (var _i = 0, sortedDeclarations_1 = sortedDeclarations; _i < sortedDeclarations_1.length; _i++) {\n var decl = sortedDeclarations_1[_i];\n if (isValidCallHierarchyDeclaration(decl)) {\n if (!lastDecl || lastDecl.parent !== decl.parent || lastDecl.end !== decl.pos) {\n declarations = ts.append(declarations, decl);\n }\n lastDecl = decl;\n }\n }\n }\n return declarations;\n }\n /** Find the implementation or the first declaration for a call hierarchy declaration. */\n function findImplementationOrAllInitialDeclarations(typeChecker, node) {\n var _a, _b, _c;\n if (ts.isClassStaticBlockDeclaration(node)) {\n return node;\n }\n if (ts.isFunctionLikeDeclaration(node)) {\n return (_b = (_a = findImplementation(typeChecker, node)) !== null && _a !== void 0 ? _a : findAllInitialDeclarations(typeChecker, node)) !== null && _b !== void 0 ? _b : node;\n }\n return (_c = findAllInitialDeclarations(typeChecker, node)) !== null && _c !== void 0 ? _c : node;\n }\n /** Resolves the call hierarchy declaration for a node. */\n function resolveCallHierarchyDeclaration(program, location) {\n // A call hierarchy item must refer to either a SourceFile, Module Declaration, Class Static Block, or something intrinsically callable that has a name:\n // - Class Declarations\n // - Class Expressions (with a name)\n // - Function Declarations\n // - Function Expressions (with a name or assigned to a const variable)\n // - Arrow Functions (assigned to a const variable)\n // - Constructors\n // - Class `static {}` initializer blocks\n // - Methods\n // - Accessors\n //\n // If a call is contained in a non-named callable Node (function expression, arrow function, etc.), then\n // its containing `CallHierarchyItem` is a containing function or SourceFile that matches the above list.\n var typeChecker = program.getTypeChecker();\n var followingSymbol = false;\n while (true) {\n if (isValidCallHierarchyDeclaration(location)) {\n return findImplementationOrAllInitialDeclarations(typeChecker, location);\n }\n if (isPossibleCallHierarchyDeclaration(location)) {\n var ancestor = ts.findAncestor(location, isValidCallHierarchyDeclaration);\n return ancestor && findImplementationOrAllInitialDeclarations(typeChecker, ancestor);\n }\n if (ts.isDeclarationName(location)) {\n if (isValidCallHierarchyDeclaration(location.parent)) {\n return findImplementationOrAllInitialDeclarations(typeChecker, location.parent);\n }\n if (isPossibleCallHierarchyDeclaration(location.parent)) {\n var ancestor = ts.findAncestor(location.parent, isValidCallHierarchyDeclaration);\n return ancestor && findImplementationOrAllInitialDeclarations(typeChecker, ancestor);\n }\n if (ts.isVariableDeclaration(location.parent) && location.parent.initializer && isConstNamedExpression(location.parent.initializer)) {\n return location.parent.initializer;\n }\n return undefined;\n }\n if (ts.isConstructorDeclaration(location)) {\n if (isValidCallHierarchyDeclaration(location.parent)) {\n return location.parent;\n }\n return undefined;\n }\n if (location.kind === 124 /* StaticKeyword */ && ts.isClassStaticBlockDeclaration(location.parent)) {\n location = location.parent;\n continue;\n }\n // #39453\n if (ts.isVariableDeclaration(location) && location.initializer && isConstNamedExpression(location.initializer)) {\n return location.initializer;\n }\n if (!followingSymbol) {\n var symbol = typeChecker.getSymbolAtLocation(location);\n if (symbol) {\n if (symbol.flags & 2097152 /* Alias */) {\n symbol = typeChecker.getAliasedSymbol(symbol);\n }\n if (symbol.valueDeclaration) {\n followingSymbol = true;\n location = symbol.valueDeclaration;\n continue;\n }\n }\n }\n return undefined;\n }\n }\n CallHierarchy.resolveCallHierarchyDeclaration = resolveCallHierarchyDeclaration;\n /** Creates a `CallHierarchyItem` for a call hierarchy declaration. */\n function createCallHierarchyItem(program, node) {\n var sourceFile = node.getSourceFile();\n var name = getCallHierarchyItemName(program, node);\n var containerName = getCallHierarchItemContainerName(node);\n var kind = ts.getNodeKind(node);\n var kindModifiers = ts.getNodeModifiers(node);\n var span = ts.createTextSpanFromBounds(ts.skipTrivia(sourceFile.text, node.getFullStart(), /*stopAfterLineBreak*/ false, /*stopAtComments*/ true), node.getEnd());\n var selectionSpan = ts.createTextSpanFromBounds(name.pos, name.end);\n return { file: sourceFile.fileName, kind: kind, kindModifiers: kindModifiers, name: name.text, containerName: containerName, span: span, selectionSpan: selectionSpan };\n }\n CallHierarchy.createCallHierarchyItem = createCallHierarchyItem;\n function isDefined(x) {\n return x !== undefined;\n }\n function convertEntryToCallSite(entry) {\n if (entry.kind === 1 /* Node */) {\n var node = entry.node;\n if (ts.isCallOrNewExpressionTarget(node, /*includeElementAccess*/ true, /*skipPastOuterExpressions*/ true)\n || ts.isTaggedTemplateTag(node, /*includeElementAccess*/ true, /*skipPastOuterExpressions*/ true)\n || ts.isDecoratorTarget(node, /*includeElementAccess*/ true, /*skipPastOuterExpressions*/ true)\n || ts.isJsxOpeningLikeElementTagName(node, /*includeElementAccess*/ true, /*skipPastOuterExpressions*/ true)\n || ts.isRightSideOfPropertyAccess(node)\n || ts.isArgumentExpressionOfElementAccess(node)) {\n var sourceFile = node.getSourceFile();\n var ancestor = ts.findAncestor(node, isValidCallHierarchyDeclaration) || sourceFile;\n return { declaration: ancestor, range: ts.createTextRangeFromNode(node, sourceFile) };\n }\n }\n }\n function getCallSiteGroupKey(entry) {\n return ts.getNodeId(entry.declaration);\n }\n function createCallHierarchyIncomingCall(from, fromSpans) {\n return { from: from, fromSpans: fromSpans };\n }\n function convertCallSiteGroupToIncomingCall(program, entries) {\n return createCallHierarchyIncomingCall(createCallHierarchyItem(program, entries[0].declaration), ts.map(entries, function (entry) { return ts.createTextSpanFromRange(entry.range); }));\n }\n /** Gets the call sites that call into the provided call hierarchy declaration. */\n function getIncomingCalls(program, declaration, cancellationToken) {\n // Source files and modules have no incoming calls.\n if (ts.isSourceFile(declaration) || ts.isModuleDeclaration(declaration) || ts.isClassStaticBlockDeclaration(declaration)) {\n return [];\n }\n var location = getCallHierarchyDeclarationReferenceNode(declaration);\n var calls = ts.filter(ts.FindAllReferences.findReferenceOrRenameEntries(program, cancellationToken, program.getSourceFiles(), location, /*position*/ 0, { use: 1 /* References */ }, convertEntryToCallSite), isDefined);\n return calls ? ts.group(calls, getCallSiteGroupKey, function (entries) { return convertCallSiteGroupToIncomingCall(program, entries); }) : [];\n }\n CallHierarchy.getIncomingCalls = getIncomingCalls;\n function createCallSiteCollector(program, callSites) {\n function recordCallSite(node) {\n var target = ts.isTaggedTemplateExpression(node) ? node.tag :\n ts.isJsxOpeningLikeElement(node) ? node.tagName :\n ts.isAccessExpression(node) ? node :\n ts.isClassStaticBlockDeclaration(node) ? node :\n node.expression;\n var declaration = resolveCallHierarchyDeclaration(program, target);\n if (declaration) {\n var range = ts.createTextRangeFromNode(target, node.getSourceFile());\n if (ts.isArray(declaration)) {\n for (var _i = 0, declaration_1 = declaration; _i < declaration_1.length; _i++) {\n var decl = declaration_1[_i];\n callSites.push({ declaration: decl, range: range });\n }\n }\n else {\n callSites.push({ declaration: declaration, range: range });\n }\n }\n }\n function collect(node) {\n if (!node)\n return;\n if (node.flags & 8388608 /* Ambient */) {\n // do not descend into ambient nodes.\n return;\n }\n if (isValidCallHierarchyDeclaration(node)) {\n // do not descend into other call site declarations, other than class member names\n if (ts.isClassLike(node)) {\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (member.name && ts.isComputedPropertyName(member.name)) {\n collect(member.name.expression);\n }\n }\n }\n return;\n }\n switch (node.kind) {\n case 79 /* Identifier */:\n case 263 /* ImportEqualsDeclaration */:\n case 264 /* ImportDeclaration */:\n case 270 /* ExportDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n // do not descend into nodes that cannot contain callable nodes\n return;\n case 168 /* ClassStaticBlockDeclaration */:\n recordCallSite(node);\n return;\n case 209 /* TypeAssertionExpression */:\n case 227 /* AsExpression */:\n // do not descend into the type side of an assertion\n collect(node.expression);\n return;\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n // do not descend into the type of a variable or parameter declaration\n collect(node.name);\n collect(node.initializer);\n return;\n case 206 /* CallExpression */:\n // do not descend into the type arguments of a call expression\n recordCallSite(node);\n collect(node.expression);\n ts.forEach(node.arguments, collect);\n return;\n case 207 /* NewExpression */:\n // do not descend into the type arguments of a new expression\n recordCallSite(node);\n collect(node.expression);\n ts.forEach(node.arguments, collect);\n return;\n case 208 /* TaggedTemplateExpression */:\n // do not descend into the type arguments of a tagged template expression\n recordCallSite(node);\n collect(node.tag);\n collect(node.template);\n return;\n case 278 /* JsxOpeningElement */:\n case 277 /* JsxSelfClosingElement */:\n // do not descend into the type arguments of a JsxOpeningLikeElement\n recordCallSite(node);\n collect(node.tagName);\n collect(node.attributes);\n return;\n case 163 /* Decorator */:\n recordCallSite(node);\n collect(node.expression);\n return;\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n recordCallSite(node);\n ts.forEachChild(node, collect);\n break;\n }\n if (ts.isPartOfTypeNode(node)) {\n // do not descend into types\n return;\n }\n ts.forEachChild(node, collect);\n }\n return collect;\n }\n function collectCallSitesOfSourceFile(node, collect) {\n ts.forEach(node.statements, collect);\n }\n function collectCallSitesOfModuleDeclaration(node, collect) {\n if (!ts.hasSyntacticModifier(node, 2 /* Ambient */) && node.body && ts.isModuleBlock(node.body)) {\n ts.forEach(node.body.statements, collect);\n }\n }\n function collectCallSitesOfFunctionLikeDeclaration(typeChecker, node, collect) {\n var implementation = findImplementation(typeChecker, node);\n if (implementation) {\n ts.forEach(implementation.parameters, collect);\n collect(implementation.body);\n }\n }\n function collectCallSitesOfClassStaticBlockDeclaration(node, collect) {\n collect(node.body);\n }\n function collectCallSitesOfClassLikeDeclaration(node, collect) {\n ts.forEach(node.decorators, collect);\n var heritage = ts.getClassExtendsHeritageElement(node);\n if (heritage) {\n collect(heritage.expression);\n }\n for (var _i = 0, _a = node.members; _i < _a.length; _i++) {\n var member = _a[_i];\n ts.forEach(member.decorators, collect);\n if (ts.isPropertyDeclaration(member)) {\n collect(member.initializer);\n }\n else if (ts.isConstructorDeclaration(member) && member.body) {\n ts.forEach(member.parameters, collect);\n collect(member.body);\n }\n else if (ts.isClassStaticBlockDeclaration(member)) {\n collect(member);\n }\n }\n }\n function collectCallSites(program, node) {\n var callSites = [];\n var collect = createCallSiteCollector(program, callSites);\n switch (node.kind) {\n case 300 /* SourceFile */:\n collectCallSitesOfSourceFile(node, collect);\n break;\n case 259 /* ModuleDeclaration */:\n collectCallSitesOfModuleDeclaration(node, collect);\n break;\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n collectCallSitesOfFunctionLikeDeclaration(program.getTypeChecker(), node, collect);\n break;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n collectCallSitesOfClassLikeDeclaration(node, collect);\n break;\n case 168 /* ClassStaticBlockDeclaration */:\n collectCallSitesOfClassStaticBlockDeclaration(node, collect);\n break;\n default:\n ts.Debug.assertNever(node);\n }\n return callSites;\n }\n function createCallHierarchyOutgoingCall(to, fromSpans) {\n return { to: to, fromSpans: fromSpans };\n }\n function convertCallSiteGroupToOutgoingCall(program, entries) {\n return createCallHierarchyOutgoingCall(createCallHierarchyItem(program, entries[0].declaration), ts.map(entries, function (entry) { return ts.createTextSpanFromRange(entry.range); }));\n }\n /** Gets the call sites that call out of the provided call hierarchy declaration. */\n function getOutgoingCalls(program, declaration) {\n if (declaration.flags & 8388608 /* Ambient */ || ts.isMethodSignature(declaration)) {\n return [];\n }\n return ts.group(collectCallSites(program, declaration), getCallSiteGroupKey, function (entries) { return convertCallSiteGroupToOutgoingCall(program, entries); });\n }\n CallHierarchy.getOutgoingCalls = getOutgoingCalls;\n })(CallHierarchy = ts.CallHierarchy || (ts.CallHierarchy = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n function getEditsForFileRename(program, oldFileOrDirPath, newFileOrDirPath, host, formatContext, preferences, sourceMapper) {\n var useCaseSensitiveFileNames = ts.hostUsesCaseSensitiveFileNames(host);\n var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n var oldToNew = getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper);\n var newToOld = getPathUpdater(newFileOrDirPath, oldFileOrDirPath, getCanonicalFileName, sourceMapper);\n return ts.textChanges.ChangeTracker.with({ host: host, formatContext: formatContext, preferences: preferences }, function (changeTracker) {\n updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, host.getCurrentDirectory(), useCaseSensitiveFileNames);\n updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName);\n });\n }\n ts.getEditsForFileRename = getEditsForFileRename;\n // exported for tests\n function getPathUpdater(oldFileOrDirPath, newFileOrDirPath, getCanonicalFileName, sourceMapper) {\n var canonicalOldPath = getCanonicalFileName(oldFileOrDirPath);\n return function (path) {\n var originalPath = sourceMapper && sourceMapper.tryGetSourcePosition({ fileName: path, pos: 0 });\n var updatedPath = getUpdatedPath(originalPath ? originalPath.fileName : path);\n return originalPath\n ? updatedPath === undefined ? undefined : makeCorrespondingRelativeChange(originalPath.fileName, updatedPath, path, getCanonicalFileName)\n : updatedPath;\n };\n function getUpdatedPath(pathToUpdate) {\n if (getCanonicalFileName(pathToUpdate) === canonicalOldPath)\n return newFileOrDirPath;\n var suffix = ts.tryRemoveDirectoryPrefix(pathToUpdate, canonicalOldPath, getCanonicalFileName);\n return suffix === undefined ? undefined : newFileOrDirPath + \"/\" + suffix;\n }\n }\n ts.getPathUpdater = getPathUpdater;\n // Relative path from a0 to b0 should be same as relative path from a1 to b1. Returns b1.\n function makeCorrespondingRelativeChange(a0, b0, a1, getCanonicalFileName) {\n var rel = ts.getRelativePathFromFile(a0, b0, getCanonicalFileName);\n return combinePathsSafe(ts.getDirectoryPath(a1), rel);\n }\n function updateTsconfigFiles(program, changeTracker, oldToNew, oldFileOrDirPath, newFileOrDirPath, currentDirectory, useCaseSensitiveFileNames) {\n var configFile = program.getCompilerOptions().configFile;\n if (!configFile)\n return;\n var configDir = ts.getDirectoryPath(configFile.fileName);\n var jsonObjectLiteral = ts.getTsConfigObjectLiteralExpression(configFile);\n if (!jsonObjectLiteral)\n return;\n forEachProperty(jsonObjectLiteral, function (property, propertyName) {\n switch (propertyName) {\n case \"files\":\n case \"include\":\n case \"exclude\": {\n var foundExactMatch = updatePaths(property);\n if (foundExactMatch || propertyName !== \"include\" || !ts.isArrayLiteralExpression(property.initializer))\n return;\n var includes = ts.mapDefined(property.initializer.elements, function (e) { return ts.isStringLiteral(e) ? e.text : undefined; });\n if (includes.length === 0)\n return;\n var matchers = ts.getFileMatcherPatterns(configDir, /*excludes*/ [], includes, useCaseSensitiveFileNames, currentDirectory);\n // If there isn't some include for this, add a new one.\n if (ts.getRegexFromPattern(ts.Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(oldFileOrDirPath) &&\n !ts.getRegexFromPattern(ts.Debug.checkDefined(matchers.includeFilePattern), useCaseSensitiveFileNames).test(newFileOrDirPath)) {\n changeTracker.insertNodeAfter(configFile, ts.last(property.initializer.elements), ts.factory.createStringLiteral(relativePath(newFileOrDirPath)));\n }\n return;\n }\n case \"compilerOptions\":\n forEachProperty(property.initializer, function (property, propertyName) {\n var option = ts.getOptionFromName(propertyName);\n if (option && (option.isFilePath || option.type === \"list\" && option.element.isFilePath)) {\n updatePaths(property);\n }\n else if (propertyName === \"paths\") {\n forEachProperty(property.initializer, function (pathsProperty) {\n if (!ts.isArrayLiteralExpression(pathsProperty.initializer))\n return;\n for (var _i = 0, _a = pathsProperty.initializer.elements; _i < _a.length; _i++) {\n var e = _a[_i];\n tryUpdateString(e);\n }\n });\n }\n });\n return;\n }\n });\n function updatePaths(property) {\n var elements = ts.isArrayLiteralExpression(property.initializer) ? property.initializer.elements : [property.initializer];\n var foundExactMatch = false;\n for (var _i = 0, elements_1 = elements; _i < elements_1.length; _i++) {\n var element = elements_1[_i];\n foundExactMatch = tryUpdateString(element) || foundExactMatch;\n }\n return foundExactMatch;\n }\n function tryUpdateString(element) {\n if (!ts.isStringLiteral(element))\n return false;\n var elementFileName = combinePathsSafe(configDir, element.text);\n var updated = oldToNew(elementFileName);\n if (updated !== undefined) {\n changeTracker.replaceRangeWithText(configFile, createStringRange(element, configFile), relativePath(updated));\n return true;\n }\n return false;\n }\n function relativePath(path) {\n return ts.getRelativePathFromDirectory(configDir, path, /*ignoreCase*/ !useCaseSensitiveFileNames);\n }\n }\n function updateImports(program, changeTracker, oldToNew, newToOld, host, getCanonicalFileName) {\n var allFiles = program.getSourceFiles();\n var _loop_5 = function (sourceFile) {\n var newFromOld = oldToNew(sourceFile.fileName);\n var newImportFromPath = newFromOld !== null && newFromOld !== void 0 ? newFromOld : sourceFile.fileName;\n var newImportFromDirectory = ts.getDirectoryPath(newImportFromPath);\n var oldFromNew = newToOld(sourceFile.fileName);\n var oldImportFromPath = oldFromNew || sourceFile.fileName;\n var oldImportFromDirectory = ts.getDirectoryPath(oldImportFromPath);\n var importingSourceFileMoved = newFromOld !== undefined || oldFromNew !== undefined;\n updateImportsWorker(sourceFile, changeTracker, function (referenceText) {\n if (!ts.pathIsRelative(referenceText))\n return undefined;\n var oldAbsolute = combinePathsSafe(oldImportFromDirectory, referenceText);\n var newAbsolute = oldToNew(oldAbsolute);\n return newAbsolute === undefined ? undefined : ts.ensurePathIsNonModuleName(ts.getRelativePathFromDirectory(newImportFromDirectory, newAbsolute, getCanonicalFileName));\n }, function (importLiteral) {\n var importedModuleSymbol = program.getTypeChecker().getSymbolAtLocation(importLiteral);\n // No need to update if it's an ambient module^M\n if ((importedModuleSymbol === null || importedModuleSymbol === void 0 ? void 0 : importedModuleSymbol.declarations) && importedModuleSymbol.declarations.some(function (d) { return ts.isAmbientModule(d); }))\n return undefined;\n var toImport = oldFromNew !== undefined\n // If we're at the new location (file was already renamed), need to redo module resolution starting from the old location.\n // TODO:GH#18217\n ? getSourceFileToImportFromResolved(importLiteral, ts.resolveModuleName(importLiteral.text, oldImportFromPath, program.getCompilerOptions(), host), oldToNew, allFiles)\n : getSourceFileToImport(importedModuleSymbol, importLiteral, sourceFile, program, host, oldToNew);\n // Need an update if the imported file moved, or the importing file moved and was using a relative path.\n return toImport !== undefined && (toImport.updated || (importingSourceFileMoved && ts.pathIsRelative(importLiteral.text)))\n ? ts.moduleSpecifiers.updateModuleSpecifier(program.getCompilerOptions(), getCanonicalFileName(newImportFromPath), toImport.newFileName, ts.createModuleSpecifierResolutionHost(program, host), importLiteral.text)\n : undefined;\n });\n };\n for (var _i = 0, allFiles_1 = allFiles; _i < allFiles_1.length; _i++) {\n var sourceFile = allFiles_1[_i];\n _loop_5(sourceFile);\n }\n }\n function combineNormal(pathA, pathB) {\n return ts.normalizePath(ts.combinePaths(pathA, pathB));\n }\n function combinePathsSafe(pathA, pathB) {\n return ts.ensurePathIsNonModuleName(combineNormal(pathA, pathB));\n }\n function getSourceFileToImport(importedModuleSymbol, importLiteral, importingSourceFile, program, host, oldToNew) {\n if (importedModuleSymbol) {\n // `find` should succeed because we checked for ambient modules before calling this function.\n var oldFileName = ts.find(importedModuleSymbol.declarations, ts.isSourceFile).fileName;\n var newFileName = oldToNew(oldFileName);\n return newFileName === undefined ? { newFileName: oldFileName, updated: false } : { newFileName: newFileName, updated: true };\n }\n else {\n var resolved = host.resolveModuleNames\n ? host.getResolvedModuleWithFailedLookupLocationsFromCache && host.getResolvedModuleWithFailedLookupLocationsFromCache(importLiteral.text, importingSourceFile.fileName)\n : program.getResolvedModuleWithFailedLookupLocationsFromCache(importLiteral.text, importingSourceFile.fileName);\n return getSourceFileToImportFromResolved(importLiteral, resolved, oldToNew, program.getSourceFiles());\n }\n }\n function getSourceFileToImportFromResolved(importLiteral, resolved, oldToNew, sourceFiles) {\n // Search through all locations looking for a moved file, and only then test already existing files.\n // This is because if `a.ts` is compiled to `a.js` and `a.ts` is moved, we don't want to resolve anything to `a.js`, but to `a.ts`'s new location.\n if (!resolved)\n return undefined;\n // First try resolved module\n if (resolved.resolvedModule) {\n var result_3 = tryChange(resolved.resolvedModule.resolvedFileName);\n if (result_3)\n return result_3;\n }\n // Then failed lookups that are in the list of sources\n var result = ts.forEach(resolved.failedLookupLocations, tryChangeWithIgnoringPackageJsonExisting)\n // Then failed lookups except package.json since we dont want to touch them (only included ts/js files).\n // At this point, the confidence level of this fix being correct is too low to change bare specifiers or absolute paths.\n || ts.pathIsRelative(importLiteral.text) && ts.forEach(resolved.failedLookupLocations, tryChangeWithIgnoringPackageJson);\n if (result)\n return result;\n // If nothing changed, then result is resolved module file thats not updated\n return resolved.resolvedModule && { newFileName: resolved.resolvedModule.resolvedFileName, updated: false };\n function tryChangeWithIgnoringPackageJsonExisting(oldFileName) {\n var newFileName = oldToNew(oldFileName);\n return newFileName && ts.find(sourceFiles, function (src) { return src.fileName === newFileName; })\n ? tryChangeWithIgnoringPackageJson(oldFileName) : undefined;\n }\n function tryChangeWithIgnoringPackageJson(oldFileName) {\n return !ts.endsWith(oldFileName, \"/package.json\") ? tryChange(oldFileName) : undefined;\n }\n function tryChange(oldFileName) {\n var newFileName = oldToNew(oldFileName);\n return newFileName && { newFileName: newFileName, updated: true };\n }\n }\n function updateImportsWorker(sourceFile, changeTracker, updateRef, updateImport) {\n for (var _i = 0, _a = sourceFile.referencedFiles || ts.emptyArray; _i < _a.length; _i++) { // TODO: GH#26162\n var ref = _a[_i];\n var updated = updateRef(ref.fileName);\n if (updated !== undefined && updated !== sourceFile.text.slice(ref.pos, ref.end))\n changeTracker.replaceRangeWithText(sourceFile, ref, updated);\n }\n for (var _b = 0, _c = sourceFile.imports; _b < _c.length; _b++) {\n var importStringLiteral = _c[_b];\n var updated = updateImport(importStringLiteral);\n if (updated !== undefined && updated !== importStringLiteral.text)\n changeTracker.replaceRangeWithText(sourceFile, createStringRange(importStringLiteral, sourceFile), updated);\n }\n }\n function createStringRange(node, sourceFile) {\n return ts.createRange(node.getStart(sourceFile) + 1, node.end - 1);\n }\n function forEachProperty(objectLiteral, cb) {\n if (!ts.isObjectLiteralExpression(objectLiteral))\n return;\n for (var _i = 0, _a = objectLiteral.properties; _i < _a.length; _i++) {\n var property = _a[_i];\n if (ts.isPropertyAssignment(property) && ts.isStringLiteral(property.name)) {\n cb(property, property.name.text);\n }\n }\n }\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var GoToDefinition;\n (function (GoToDefinition) {\n function getDefinitionAtPosition(program, sourceFile, position) {\n var resolvedRef = getReferenceAtPosition(sourceFile, position, program);\n var fileReferenceDefinition = resolvedRef && [getDefinitionInfoForFileReference(resolvedRef.reference.fileName, resolvedRef.fileName, resolvedRef.unverified)] || ts.emptyArray;\n if (resolvedRef === null || resolvedRef === void 0 ? void 0 : resolvedRef.file) {\n // If `file` is missing, do a symbol-based lookup as well\n return fileReferenceDefinition;\n }\n var node = ts.getTouchingPropertyName(sourceFile, position);\n if (node === sourceFile) {\n return undefined;\n }\n var parent = node.parent;\n var typeChecker = program.getTypeChecker();\n if (node.kind === 157 /* OverrideKeyword */ || (ts.isJSDocOverrideTag(node) && ts.rangeContainsPosition(node.tagName, position))) {\n return getDefinitionFromOverriddenMember(typeChecker, node) || ts.emptyArray;\n }\n // Labels\n if (ts.isJumpStatementTarget(node)) {\n var label = ts.getTargetLabel(node.parent, node.text);\n return label ? [createDefinitionInfoFromName(typeChecker, label, \"label\" /* label */, node.text, /*containerName*/ undefined)] : undefined; // TODO: GH#18217\n }\n if (ts.isStaticModifier(node) && ts.isClassStaticBlockDeclaration(node.parent)) {\n var classDecl = node.parent.parent;\n var symbol_1 = getSymbol(classDecl, typeChecker);\n var staticBlocks = ts.filter(classDecl.members, ts.isClassStaticBlockDeclaration);\n var containerName_1 = symbol_1 ? typeChecker.symbolToString(symbol_1, classDecl) : \"\";\n var sourceFile_1 = node.getSourceFile();\n return ts.map(staticBlocks, function (staticBlock) {\n var pos = ts.moveRangePastModifiers(staticBlock).pos;\n pos = ts.skipTrivia(sourceFile_1.text, pos);\n return createDefinitionInfoFromName(typeChecker, staticBlock, \"constructor\" /* constructorImplementationElement */, \"static {}\", containerName_1, { start: pos, length: \"static\".length });\n });\n }\n var symbol = getSymbol(node, typeChecker);\n // Could not find a symbol e.g. node is string or number keyword,\n // or the symbol was an internal symbol and does not have a declaration e.g. undefined symbol\n if (!symbol) {\n return ts.concatenate(fileReferenceDefinition, getDefinitionInfoForIndexSignatures(node, typeChecker));\n }\n var calledDeclaration = tryGetSignatureDeclaration(typeChecker, node);\n // Don't go to the component constructor definition for a JSX element, just go to the component definition.\n if (calledDeclaration && !(ts.isJsxOpeningLikeElement(node.parent) && isConstructorLike(calledDeclaration))) {\n var sigInfo = createDefinitionFromSignatureDeclaration(typeChecker, calledDeclaration);\n // For a function, if this is the original function definition, return just sigInfo.\n // If this is the original constructor definition, parent is the class.\n if (typeChecker.getRootSymbols(symbol).some(function (s) { return symbolMatchesSignature(s, calledDeclaration); })) {\n return [sigInfo];\n }\n else {\n var defs = getDefinitionFromSymbol(typeChecker, symbol, node, calledDeclaration) || ts.emptyArray;\n // For a 'super()' call, put the signature first, else put the variable first.\n return node.kind === 106 /* SuperKeyword */ ? __spreadArray([sigInfo], defs, true) : __spreadArray(__spreadArray([], defs, true), [sigInfo], false);\n }\n }\n // Because name in short-hand property assignment has two different meanings: property name and property value,\n // using go-to-definition at such position should go to the variable declaration of the property value rather than\n // go to the declaration of the property name (in this case stay at the same position). However, if go-to-definition\n // is performed at the location of property access, we would like to go to definition of the property in the short-hand\n // assignment. This case and others are handled by the following code.\n if (node.parent.kind === 292 /* ShorthandPropertyAssignment */) {\n var shorthandSymbol_1 = typeChecker.getShorthandAssignmentValueSymbol(symbol.valueDeclaration);\n var definitions = (shorthandSymbol_1 === null || shorthandSymbol_1 === void 0 ? void 0 : shorthandSymbol_1.declarations) ? shorthandSymbol_1.declarations.map(function (decl) { return createDefinitionInfo(decl, typeChecker, shorthandSymbol_1, node); }) : ts.emptyArray;\n return ts.concatenate(definitions, getDefinitionFromObjectLiteralElement(typeChecker, node) || ts.emptyArray);\n }\n // If the node is the name of a BindingElement within an ObjectBindingPattern instead of just returning the\n // declaration the symbol (which is itself), we should try to get to the original type of the ObjectBindingPattern\n // and return the property declaration for the referenced property.\n // For example:\n // import('./foo').then(({ b/*goto*/ar }) => undefined); => should get use to the declaration in file \"./foo\"\n //\n // function bar(onfulfilled: (value: T) => void) { //....}\n // interface Test {\n // pr/*destination*/op1: number\n // }\n // bar(({pr/*goto*/op1})=>{});\n if (ts.isPropertyName(node) && ts.isBindingElement(parent) && ts.isObjectBindingPattern(parent.parent) &&\n (node === (parent.propertyName || parent.name))) {\n var name_3 = ts.getNameFromPropertyName(node);\n var type = typeChecker.getTypeAtLocation(parent.parent);\n return name_3 === undefined ? ts.emptyArray : ts.flatMap(type.isUnion() ? type.types : [type], function (t) {\n var prop = t.getProperty(name_3);\n return prop && getDefinitionFromSymbol(typeChecker, prop, node);\n });\n }\n return ts.concatenate(fileReferenceDefinition, getDefinitionFromObjectLiteralElement(typeChecker, node) || getDefinitionFromSymbol(typeChecker, symbol, node));\n }\n GoToDefinition.getDefinitionAtPosition = getDefinitionAtPosition;\n /**\n * True if we should not add definitions for both the signature symbol and the definition symbol.\n * True for `const |f = |() => 0`, false for `function |f() {} const |g = f;`.\n * Also true for any assignment RHS.\n */\n function symbolMatchesSignature(s, calledDeclaration) {\n return s === calledDeclaration.symbol\n || s === calledDeclaration.symbol.parent\n || ts.isAssignmentExpression(calledDeclaration.parent)\n || (!ts.isCallLikeExpression(calledDeclaration.parent) && s === calledDeclaration.parent.symbol);\n }\n // If the current location we want to find its definition is in an object literal, try to get the contextual type for the\n // object literal, lookup the property symbol in the contextual type, and use this for goto-definition.\n // For example\n // interface Props{\n // /*first*/prop1: number\n // prop2: boolean\n // }\n // function Foo(arg: Props) {}\n // Foo( { pr/*1*/op1: 10, prop2: true })\n function getDefinitionFromObjectLiteralElement(typeChecker, node) {\n var element = ts.getContainingObjectLiteralElement(node);\n if (element) {\n var contextualType = element && typeChecker.getContextualType(element.parent);\n if (contextualType) {\n return ts.flatMap(ts.getPropertySymbolsFromContextualType(element, typeChecker, contextualType, /*unionSymbolOk*/ false), function (propertySymbol) {\n return getDefinitionFromSymbol(typeChecker, propertySymbol, node);\n });\n }\n }\n }\n function getDefinitionFromOverriddenMember(typeChecker, node) {\n var classElement = ts.findAncestor(node, ts.isClassElement);\n if (!(classElement && classElement.name))\n return;\n var baseDeclaration = ts.findAncestor(classElement, ts.isClassLike);\n if (!baseDeclaration)\n return;\n var baseTypeNode = ts.getEffectiveBaseTypeNode(baseDeclaration);\n var baseType = baseTypeNode ? typeChecker.getTypeAtLocation(baseTypeNode) : undefined;\n if (!baseType)\n return;\n var name = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(classElement.name));\n var symbol = ts.hasStaticModifier(classElement)\n ? typeChecker.getPropertyOfType(typeChecker.getTypeOfSymbolAtLocation(baseType.symbol, baseDeclaration), name)\n : typeChecker.getPropertyOfType(baseType, name);\n if (!symbol)\n return;\n return getDefinitionFromSymbol(typeChecker, symbol, node);\n }\n function getReferenceAtPosition(sourceFile, position, program) {\n var _a, _b;\n var referencePath = findReferenceInPosition(sourceFile.referencedFiles, position);\n if (referencePath) {\n var file = program.getSourceFileFromReference(sourceFile, referencePath);\n return file && { reference: referencePath, fileName: file.fileName, file: file, unverified: false };\n }\n var typeReferenceDirective = findReferenceInPosition(sourceFile.typeReferenceDirectives, position);\n if (typeReferenceDirective) {\n var reference = program.getResolvedTypeReferenceDirectives().get(typeReferenceDirective.fileName);\n var file = reference && program.getSourceFile(reference.resolvedFileName); // TODO:GH#18217\n return file && { reference: typeReferenceDirective, fileName: file.fileName, file: file, unverified: false };\n }\n var libReferenceDirective = findReferenceInPosition(sourceFile.libReferenceDirectives, position);\n if (libReferenceDirective) {\n var file = program.getLibFileFromReference(libReferenceDirective);\n return file && { reference: libReferenceDirective, fileName: file.fileName, file: file, unverified: false };\n }\n if ((_a = sourceFile.resolvedModules) === null || _a === void 0 ? void 0 : _a.size) {\n var node = ts.getTokenAtPosition(sourceFile, position);\n if (ts.isModuleSpecifierLike(node) && ts.isExternalModuleNameRelative(node.text) && sourceFile.resolvedModules.has(node.text)) {\n var verifiedFileName = (_b = sourceFile.resolvedModules.get(node.text)) === null || _b === void 0 ? void 0 : _b.resolvedFileName;\n var fileName = verifiedFileName || ts.resolvePath(ts.getDirectoryPath(sourceFile.fileName), node.text);\n return {\n file: program.getSourceFile(fileName),\n fileName: fileName,\n reference: {\n pos: node.getStart(),\n end: node.getEnd(),\n fileName: node.text\n },\n unverified: !verifiedFileName,\n };\n }\n }\n return undefined;\n }\n GoToDefinition.getReferenceAtPosition = getReferenceAtPosition;\n /// Goto type\n function getTypeDefinitionAtPosition(typeChecker, sourceFile, position) {\n var node = ts.getTouchingPropertyName(sourceFile, position);\n if (node === sourceFile) {\n return undefined;\n }\n var symbol = typeChecker.getSymbolAtLocation(node);\n if (!symbol)\n return undefined;\n var typeAtLocation = typeChecker.getTypeOfSymbolAtLocation(symbol, node);\n var returnType = tryGetReturnTypeOfFunction(symbol, typeAtLocation, typeChecker);\n var fromReturnType = returnType && definitionFromType(returnType, typeChecker, node);\n // If a function returns 'void' or some other type with no definition, just return the function definition.\n return fromReturnType && fromReturnType.length !== 0 ? fromReturnType : definitionFromType(typeAtLocation, typeChecker, node);\n }\n GoToDefinition.getTypeDefinitionAtPosition = getTypeDefinitionAtPosition;\n function definitionFromType(type, checker, node) {\n return ts.flatMap(type.isUnion() && !(type.flags & 32 /* Enum */) ? type.types : [type], function (t) {\n return t.symbol && getDefinitionFromSymbol(checker, t.symbol, node);\n });\n }\n function tryGetReturnTypeOfFunction(symbol, type, checker) {\n // If the type is just a function's inferred type,\n // go-to-type should go to the return type instead, since go-to-definition takes you to the function anyway.\n if (type.symbol === symbol ||\n // At `const f = () => {}`, the symbol is `f` and the type symbol is at `() => {}`\n symbol.valueDeclaration && type.symbol && ts.isVariableDeclaration(symbol.valueDeclaration) && symbol.valueDeclaration.initializer === type.symbol.valueDeclaration) {\n var sigs = type.getCallSignatures();\n if (sigs.length === 1)\n return checker.getReturnTypeOfSignature(ts.first(sigs));\n }\n return undefined;\n }\n function getDefinitionAndBoundSpan(program, sourceFile, position) {\n var definitions = getDefinitionAtPosition(program, sourceFile, position);\n if (!definitions || definitions.length === 0) {\n return undefined;\n }\n // Check if position is on triple slash reference.\n var comment = findReferenceInPosition(sourceFile.referencedFiles, position) ||\n findReferenceInPosition(sourceFile.typeReferenceDirectives, position) ||\n findReferenceInPosition(sourceFile.libReferenceDirectives, position);\n if (comment) {\n return { definitions: definitions, textSpan: ts.createTextSpanFromRange(comment) };\n }\n var node = ts.getTouchingPropertyName(sourceFile, position);\n var textSpan = ts.createTextSpan(node.getStart(), node.getWidth());\n return { definitions: definitions, textSpan: textSpan };\n }\n GoToDefinition.getDefinitionAndBoundSpan = getDefinitionAndBoundSpan;\n // At 'x.foo', see if the type of 'x' has an index signature, and if so find its declarations.\n function getDefinitionInfoForIndexSignatures(node, checker) {\n return ts.mapDefined(checker.getIndexInfosAtLocation(node), function (info) { return info.declaration && createDefinitionFromSignatureDeclaration(checker, info.declaration); });\n }\n function getSymbol(node, checker) {\n var symbol = checker.getSymbolAtLocation(node);\n // If this is an alias, and the request came at the declaration location\n // get the aliased symbol instead. This allows for goto def on an import e.g.\n // import {A, B} from \"mod\";\n // to jump to the implementation directly.\n if ((symbol === null || symbol === void 0 ? void 0 : symbol.declarations) && symbol.flags & 2097152 /* Alias */ && shouldSkipAlias(node, symbol.declarations[0])) {\n var aliased = checker.getAliasedSymbol(symbol);\n if (aliased.declarations) {\n return aliased;\n }\n }\n return symbol;\n }\n // Go to the original declaration for cases:\n //\n // (1) when the aliased symbol was declared in the location(parent).\n // (2) when the aliased symbol is originating from an import.\n //\n function shouldSkipAlias(node, declaration) {\n if (node.kind !== 79 /* Identifier */) {\n return false;\n }\n if (node.parent === declaration) {\n return true;\n }\n switch (declaration.kind) {\n case 265 /* ImportClause */:\n case 263 /* ImportEqualsDeclaration */:\n return true;\n case 268 /* ImportSpecifier */:\n return declaration.parent.kind === 267 /* NamedImports */;\n case 201 /* BindingElement */:\n case 252 /* VariableDeclaration */:\n return ts.isInJSFile(declaration) && ts.isRequireVariableDeclaration(declaration);\n default:\n return false;\n }\n }\n function getDefinitionFromSymbol(typeChecker, symbol, node, declarationNode) {\n // There are cases when you extend a function by adding properties to it afterwards,\n // we want to strip those extra properties.\n // For deduping purposes, we also want to exclude any declarationNodes if provided.\n var filteredDeclarations = ts.filter(symbol.declarations, function (d) { return d !== declarationNode && (!ts.isAssignmentDeclaration(d) || d === symbol.valueDeclaration); })\n || undefined;\n return getConstructSignatureDefinition() || getCallSignatureDefinition() || ts.map(filteredDeclarations, function (declaration) { return createDefinitionInfo(declaration, typeChecker, symbol, node); });\n function getConstructSignatureDefinition() {\n // Applicable only if we are in a new expression, or we are on a constructor declaration\n // and in either case the symbol has a construct signature definition, i.e. class\n if (symbol.flags & 32 /* Class */ && !(symbol.flags & (16 /* Function */ | 3 /* Variable */)) && (ts.isNewExpressionTarget(node) || node.kind === 133 /* ConstructorKeyword */)) {\n var cls = ts.find(filteredDeclarations, ts.isClassLike) || ts.Debug.fail(\"Expected declaration to have at least one class-like declaration\");\n return getSignatureDefinition(cls.members, /*selectConstructors*/ true);\n }\n }\n function getCallSignatureDefinition() {\n return ts.isCallOrNewExpressionTarget(node) || ts.isNameOfFunctionDeclaration(node)\n ? getSignatureDefinition(filteredDeclarations, /*selectConstructors*/ false)\n : undefined;\n }\n function getSignatureDefinition(signatureDeclarations, selectConstructors) {\n if (!signatureDeclarations) {\n return undefined;\n }\n var declarations = signatureDeclarations.filter(selectConstructors ? ts.isConstructorDeclaration : ts.isFunctionLike);\n var declarationsWithBody = declarations.filter(function (d) { return !!d.body; });\n // declarations defined on the global scope can be defined on multiple files. Get all of them.\n return declarations.length\n ? declarationsWithBody.length !== 0\n ? declarationsWithBody.map(function (x) { return createDefinitionInfo(x, typeChecker, symbol, node); })\n : [createDefinitionInfo(ts.last(declarations), typeChecker, symbol, node)]\n : undefined;\n }\n }\n /** Creates a DefinitionInfo from a Declaration, using the declaration's name if possible. */\n function createDefinitionInfo(declaration, checker, symbol, node) {\n var symbolName = checker.symbolToString(symbol); // Do not get scoped name, just the name of the symbol\n var symbolKind = ts.SymbolDisplay.getSymbolKind(checker, symbol, node);\n var containerName = symbol.parent ? checker.symbolToString(symbol.parent, node) : \"\";\n return createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName, containerName);\n }\n /** Creates a DefinitionInfo directly from the name of a declaration. */\n function createDefinitionInfoFromName(checker, declaration, symbolKind, symbolName, containerName, textSpan) {\n var sourceFile = declaration.getSourceFile();\n if (!textSpan) {\n var name = ts.getNameOfDeclaration(declaration) || declaration;\n textSpan = ts.createTextSpanFromNode(name, sourceFile);\n }\n return __assign(__assign({ fileName: sourceFile.fileName, textSpan: textSpan, kind: symbolKind, name: symbolName, containerKind: undefined, // TODO: GH#18217\n containerName: containerName }, ts.FindAllReferences.toContextSpan(textSpan, sourceFile, ts.FindAllReferences.getContextNode(declaration))), { isLocal: !isDefinitionVisible(checker, declaration) });\n }\n function isDefinitionVisible(checker, declaration) {\n if (checker.isDeclarationVisible(declaration))\n return true;\n if (!declaration.parent)\n return false;\n // Variable initializers are visible if variable is visible\n if (ts.hasInitializer(declaration.parent) && declaration.parent.initializer === declaration)\n return isDefinitionVisible(checker, declaration.parent);\n // Handle some exceptions here like arrow function, members of class and object literal expression which are technically not visible but we want the definition to be determined by its parent\n switch (declaration.kind) {\n case 165 /* PropertyDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 167 /* MethodDeclaration */:\n // Private/protected properties/methods are not visible\n if (ts.hasEffectiveModifier(declaration, 8 /* Private */))\n return false;\n // Public properties/methods are visible if its parents are visible, so:\n // falls through\n case 169 /* Constructor */:\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n case 203 /* ObjectLiteralExpression */:\n case 224 /* ClassExpression */:\n case 212 /* ArrowFunction */:\n case 211 /* FunctionExpression */:\n return isDefinitionVisible(checker, declaration.parent);\n default:\n return false;\n }\n }\n function createDefinitionFromSignatureDeclaration(typeChecker, decl) {\n return createDefinitionInfo(decl, typeChecker, decl.symbol, decl);\n }\n function findReferenceInPosition(refs, pos) {\n return ts.find(refs, function (ref) { return ts.textRangeContainsPositionInclusive(ref, pos); });\n }\n GoToDefinition.findReferenceInPosition = findReferenceInPosition;\n function getDefinitionInfoForFileReference(name, targetFileName, unverified) {\n return {\n fileName: targetFileName,\n textSpan: ts.createTextSpanFromBounds(0, 0),\n kind: \"script\" /* scriptElement */,\n name: name,\n containerName: undefined,\n containerKind: undefined,\n unverified: unverified,\n };\n }\n /** Returns a CallLikeExpression where `node` is the target being invoked. */\n function getAncestorCallLikeExpression(node) {\n var target = ts.findAncestor(node, function (n) { return !ts.isRightSideOfPropertyAccess(n); });\n var callLike = target === null || target === void 0 ? void 0 : target.parent;\n return callLike && ts.isCallLikeExpression(callLike) && ts.getInvokedExpression(callLike) === target ? callLike : undefined;\n }\n function tryGetSignatureDeclaration(typeChecker, node) {\n var callLike = getAncestorCallLikeExpression(node);\n var signature = callLike && typeChecker.getResolvedSignature(callLike);\n // Don't go to a function type, go to the value having that type.\n return ts.tryCast(signature && signature.declaration, function (d) { return ts.isFunctionLike(d) && !ts.isFunctionTypeNode(d); });\n }\n function isConstructorLike(node) {\n switch (node.kind) {\n case 169 /* Constructor */:\n case 178 /* ConstructorType */:\n case 173 /* ConstructSignature */:\n return true;\n default:\n return false;\n }\n }\n })(GoToDefinition = ts.GoToDefinition || (ts.GoToDefinition = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var JsDoc;\n (function (JsDoc) {\n var jsDocTagNames = [\n \"abstract\",\n \"access\",\n \"alias\",\n \"argument\",\n \"async\",\n \"augments\",\n \"author\",\n \"borrows\",\n \"callback\",\n \"class\",\n \"classdesc\",\n \"constant\",\n \"constructor\",\n \"constructs\",\n \"copyright\",\n \"default\",\n \"deprecated\",\n \"description\",\n \"emits\",\n \"enum\",\n \"event\",\n \"example\",\n \"exports\",\n \"extends\",\n \"external\",\n \"field\",\n \"file\",\n \"fileoverview\",\n \"fires\",\n \"function\",\n \"generator\",\n \"global\",\n \"hideconstructor\",\n \"host\",\n \"ignore\",\n \"implements\",\n \"inheritdoc\",\n \"inner\",\n \"instance\",\n \"interface\",\n \"kind\",\n \"lends\",\n \"license\",\n \"link\",\n \"listens\",\n \"member\",\n \"memberof\",\n \"method\",\n \"mixes\",\n \"module\",\n \"name\",\n \"namespace\",\n \"override\",\n \"package\",\n \"param\",\n \"private\",\n \"property\",\n \"protected\",\n \"public\",\n \"readonly\",\n \"requires\",\n \"returns\",\n \"see\",\n \"since\",\n \"static\",\n \"summary\",\n \"template\",\n \"this\",\n \"throws\",\n \"todo\",\n \"tutorial\",\n \"type\",\n \"typedef\",\n \"var\",\n \"variation\",\n \"version\",\n \"virtual\",\n \"yields\"\n ];\n var jsDocTagNameCompletionEntries;\n var jsDocTagCompletionEntries;\n function getJsDocCommentsFromDeclarations(declarations, checker) {\n // Only collect doc comments from duplicate declarations once:\n // In case of a union property there might be same declaration multiple times\n // which only varies in type parameter\n // Eg. const a: Array | Array; a.length\n // The property length will have two declarations of property length coming\n // from Array - Array and Array\n var parts = [];\n ts.forEachUnique(declarations, function (declaration) {\n for (var _i = 0, _a = getCommentHavingNodes(declaration); _i < _a.length; _i++) {\n var jsdoc = _a[_i];\n // skip comments containing @typedefs since they're not associated with particular declarations\n // Exceptions:\n // - @typedefs are themselves declarations with associated comments\n // - @param or @return indicate that the author thinks of it as a 'local' @typedef that's part of the function documentation\n if (jsdoc.comment === undefined\n || ts.isJSDoc(jsdoc)\n && declaration.kind !== 340 /* JSDocTypedefTag */ && declaration.kind !== 333 /* JSDocCallbackTag */\n && jsdoc.tags\n && jsdoc.tags.some(function (t) { return t.kind === 340 /* JSDocTypedefTag */ || t.kind === 333 /* JSDocCallbackTag */; })\n && !jsdoc.tags.some(function (t) { return t.kind === 335 /* JSDocParameterTag */ || t.kind === 336 /* JSDocReturnTag */; })) {\n continue;\n }\n var newparts = getDisplayPartsFromComment(jsdoc.comment, checker);\n if (!ts.contains(parts, newparts, isIdenticalListOfDisplayParts)) {\n parts.push(newparts);\n }\n }\n });\n return ts.flatten(ts.intersperse(parts, [ts.lineBreakPart()]));\n }\n JsDoc.getJsDocCommentsFromDeclarations = getJsDocCommentsFromDeclarations;\n function isIdenticalListOfDisplayParts(parts1, parts2) {\n return ts.arraysEqual(parts1, parts2, function (p1, p2) { return p1.kind === p2.kind && p1.text === p2.text; });\n }\n function getCommentHavingNodes(declaration) {\n switch (declaration.kind) {\n case 335 /* JSDocParameterTag */:\n case 342 /* JSDocPropertyTag */:\n return [declaration];\n case 333 /* JSDocCallbackTag */:\n case 340 /* JSDocTypedefTag */:\n return [declaration, declaration.parent];\n default:\n return ts.getJSDocCommentsAndTags(declaration);\n }\n }\n function getJsDocTagsFromDeclarations(declarations, checker) {\n // Only collect doc comments from duplicate declarations once.\n var infos = [];\n ts.forEachUnique(declarations, function (declaration) {\n var tags = ts.getJSDocTags(declaration);\n // skip comments containing @typedefs since they're not associated with particular declarations\n // Exceptions:\n // - @param or @return indicate that the author thinks of it as a 'local' @typedef that's part of the function documentation\n if (tags.some(function (t) { return t.kind === 340 /* JSDocTypedefTag */ || t.kind === 333 /* JSDocCallbackTag */; })\n && !tags.some(function (t) { return t.kind === 335 /* JSDocParameterTag */ || t.kind === 336 /* JSDocReturnTag */; })) {\n return;\n }\n for (var _i = 0, tags_1 = tags; _i < tags_1.length; _i++) {\n var tag = tags_1[_i];\n infos.push({ name: tag.tagName.text, text: getCommentDisplayParts(tag, checker) });\n }\n });\n return infos;\n }\n JsDoc.getJsDocTagsFromDeclarations = getJsDocTagsFromDeclarations;\n function getDisplayPartsFromComment(comment, checker) {\n if (typeof comment === \"string\") {\n return [ts.textPart(comment)];\n }\n return ts.flatMap(comment, function (node) { return node.kind === 316 /* JSDocText */ ? [ts.textPart(node.text)] : ts.buildLinkParts(node, checker); });\n }\n function getCommentDisplayParts(tag, checker) {\n var comment = tag.comment, kind = tag.kind;\n var namePart = getTagNameDisplayPart(kind);\n switch (kind) {\n case 324 /* JSDocImplementsTag */:\n return withNode(tag.class);\n case 323 /* JSDocAugmentsTag */:\n return withNode(tag.class);\n case 339 /* JSDocTemplateTag */:\n return addComment(tag.typeParameters.map(function (tp) { return tp.getText(); }).join(\", \"));\n case 338 /* JSDocTypeTag */:\n return withNode(tag.typeExpression);\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n case 342 /* JSDocPropertyTag */:\n case 335 /* JSDocParameterTag */:\n case 341 /* JSDocSeeTag */:\n var name = tag.name;\n return name ? withNode(name)\n : comment === undefined ? undefined\n : getDisplayPartsFromComment(comment, checker);\n default:\n return comment === undefined ? undefined : getDisplayPartsFromComment(comment, checker);\n }\n function withNode(node) {\n return addComment(node.getText());\n }\n function addComment(s) {\n if (comment) {\n if (s.match(/^https?$/)) {\n return __spreadArray([ts.textPart(s)], getDisplayPartsFromComment(comment, checker), true);\n }\n else {\n return __spreadArray([namePart(s), ts.spacePart()], getDisplayPartsFromComment(comment, checker), true);\n }\n }\n else {\n return [ts.textPart(s)];\n }\n }\n }\n function getTagNameDisplayPart(kind) {\n switch (kind) {\n case 335 /* JSDocParameterTag */:\n return ts.parameterNamePart;\n case 342 /* JSDocPropertyTag */:\n return ts.propertyNamePart;\n case 339 /* JSDocTemplateTag */:\n return ts.typeParameterNamePart;\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n return ts.typeAliasNamePart;\n default:\n return ts.textPart;\n }\n }\n function getJSDocTagNameCompletions() {\n return jsDocTagNameCompletionEntries || (jsDocTagNameCompletionEntries = ts.map(jsDocTagNames, function (tagName) {\n return {\n name: tagName,\n kind: \"keyword\" /* keyword */,\n kindModifiers: \"\",\n sortText: ts.Completions.SortText.LocationPriority,\n };\n }));\n }\n JsDoc.getJSDocTagNameCompletions = getJSDocTagNameCompletions;\n JsDoc.getJSDocTagNameCompletionDetails = getJSDocTagCompletionDetails;\n function getJSDocTagCompletions() {\n return jsDocTagCompletionEntries || (jsDocTagCompletionEntries = ts.map(jsDocTagNames, function (tagName) {\n return {\n name: \"@\" + tagName,\n kind: \"keyword\" /* keyword */,\n kindModifiers: \"\",\n sortText: ts.Completions.SortText.LocationPriority\n };\n }));\n }\n JsDoc.getJSDocTagCompletions = getJSDocTagCompletions;\n function getJSDocTagCompletionDetails(name) {\n return {\n name: name,\n kind: \"\" /* unknown */,\n kindModifiers: \"\",\n displayParts: [ts.textPart(name)],\n documentation: ts.emptyArray,\n tags: undefined,\n codeActions: undefined,\n };\n }\n JsDoc.getJSDocTagCompletionDetails = getJSDocTagCompletionDetails;\n function getJSDocParameterNameCompletions(tag) {\n if (!ts.isIdentifier(tag.name)) {\n return ts.emptyArray;\n }\n var nameThusFar = tag.name.text;\n var jsdoc = tag.parent;\n var fn = jsdoc.parent;\n if (!ts.isFunctionLike(fn))\n return [];\n return ts.mapDefined(fn.parameters, function (param) {\n if (!ts.isIdentifier(param.name))\n return undefined;\n var name = param.name.text;\n if (jsdoc.tags.some(function (t) { return t !== tag && ts.isJSDocParameterTag(t) && ts.isIdentifier(t.name) && t.name.escapedText === name; }) // TODO: GH#18217\n || nameThusFar !== undefined && !ts.startsWith(name, nameThusFar)) {\n return undefined;\n }\n return { name: name, kind: \"parameter\" /* parameterElement */, kindModifiers: \"\", sortText: ts.Completions.SortText.LocationPriority };\n });\n }\n JsDoc.getJSDocParameterNameCompletions = getJSDocParameterNameCompletions;\n function getJSDocParameterNameCompletionDetails(name) {\n return {\n name: name,\n kind: \"parameter\" /* parameterElement */,\n kindModifiers: \"\",\n displayParts: [ts.textPart(name)],\n documentation: ts.emptyArray,\n tags: undefined,\n codeActions: undefined,\n };\n }\n JsDoc.getJSDocParameterNameCompletionDetails = getJSDocParameterNameCompletionDetails;\n /**\n * Checks if position points to a valid position to add JSDoc comments, and if so,\n * returns the appropriate template. Otherwise returns an empty string.\n * Valid positions are\n * - outside of comments, statements, and expressions, and\n * - preceding a:\n * - function/constructor/method declaration\n * - class declarations\n * - variable statements\n * - namespace declarations\n * - interface declarations\n * - method signatures\n * - type alias declarations\n *\n * Hosts should ideally check that:\n * - The line is all whitespace up to 'position' before performing the insertion.\n * - If the keystroke sequence \"/\\*\\*\" induced the call, we also check that the next\n * non-whitespace character is '*', which (approximately) indicates whether we added\n * the second '*' to complete an existing (JSDoc) comment.\n * @param fileName The file in which to perform the check.\n * @param position The (character-indexed) position in the file where the check should\n * be performed.\n */\n function getDocCommentTemplateAtPosition(newLine, sourceFile, position, options) {\n var tokenAtPos = ts.getTokenAtPosition(sourceFile, position);\n var existingDocComment = ts.findAncestor(tokenAtPos, ts.isJSDoc);\n if (existingDocComment && (existingDocComment.comment !== undefined || ts.length(existingDocComment.tags))) {\n // Non-empty comment already exists.\n return undefined;\n }\n var tokenStart = tokenAtPos.getStart(sourceFile);\n // Don't provide a doc comment template based on a *previous* node. (But an existing empty jsdoc comment will likely start before `position`.)\n if (!existingDocComment && tokenStart < position) {\n return undefined;\n }\n var commentOwnerInfo = getCommentOwnerInfo(tokenAtPos, options);\n if (!commentOwnerInfo) {\n return undefined;\n }\n var commentOwner = commentOwnerInfo.commentOwner, parameters = commentOwnerInfo.parameters, hasReturn = commentOwnerInfo.hasReturn;\n if (commentOwner.getStart(sourceFile) < position) {\n return undefined;\n }\n var indentationStr = getIndentationStringAtPosition(sourceFile, position);\n var isJavaScriptFile = ts.hasJSFileExtension(sourceFile.fileName);\n var tags = (parameters ? parameterDocComments(parameters || [], isJavaScriptFile, indentationStr, newLine) : \"\") +\n (hasReturn ? returnsDocComment(indentationStr, newLine) : \"\");\n // A doc comment consists of the following\n // * The opening comment line\n // * the first line (without a param) for the object's untagged info (this is also where the caret ends up)\n // * the '@param'-tagged lines\n // * the '@returns'-tag\n // * TODO: other tags.\n // * the closing comment line\n // * if the caret was directly in front of the object, then we add an extra line and indentation.\n var openComment = \"/**\";\n var closeComment = \" */\";\n if (tags) {\n var preamble = openComment + newLine + indentationStr + \" * \";\n var endLine = tokenStart === position ? newLine + indentationStr : \"\";\n var result = preamble + newLine + tags + indentationStr + closeComment + endLine;\n return { newText: result, caretOffset: preamble.length };\n }\n return { newText: openComment + closeComment, caretOffset: 3 };\n }\n JsDoc.getDocCommentTemplateAtPosition = getDocCommentTemplateAtPosition;\n function getIndentationStringAtPosition(sourceFile, position) {\n var text = sourceFile.text;\n var lineStart = ts.getLineStartPositionForPosition(position, sourceFile);\n var pos = lineStart;\n for (; pos <= position && ts.isWhiteSpaceSingleLine(text.charCodeAt(pos)); pos++)\n ;\n return text.slice(lineStart, pos);\n }\n function parameterDocComments(parameters, isJavaScriptFile, indentationStr, newLine) {\n return parameters.map(function (_a, i) {\n var name = _a.name, dotDotDotToken = _a.dotDotDotToken;\n var paramName = name.kind === 79 /* Identifier */ ? name.text : \"param\" + i;\n var type = isJavaScriptFile ? (dotDotDotToken ? \"{...any} \" : \"{any} \") : \"\";\n return indentationStr + \" * @param \" + type + paramName + newLine;\n }).join(\"\");\n }\n function returnsDocComment(indentationStr, newLine) {\n return indentationStr + \" * @returns\" + newLine;\n }\n function getCommentOwnerInfo(tokenAtPos, options) {\n return ts.forEachAncestor(tokenAtPos, function (n) { return getCommentOwnerInfoWorker(n, options); });\n }\n function getCommentOwnerInfoWorker(commentOwner, options) {\n switch (commentOwner.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 166 /* MethodSignature */:\n case 212 /* ArrowFunction */:\n var host = commentOwner;\n return { commentOwner: commentOwner, parameters: host.parameters, hasReturn: hasReturn(host, options) };\n case 291 /* PropertyAssignment */:\n return getCommentOwnerInfoWorker(commentOwner.initializer, options);\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 164 /* PropertySignature */:\n case 258 /* EnumDeclaration */:\n case 294 /* EnumMember */:\n case 257 /* TypeAliasDeclaration */:\n return { commentOwner: commentOwner };\n case 235 /* VariableStatement */: {\n var varStatement = commentOwner;\n var varDeclarations = varStatement.declarationList.declarations;\n var host_1 = varDeclarations.length === 1 && varDeclarations[0].initializer\n ? getRightHandSideOfAssignment(varDeclarations[0].initializer)\n : undefined;\n return host_1\n ? { commentOwner: commentOwner, parameters: host_1.parameters, hasReturn: hasReturn(host_1, options) }\n : { commentOwner: commentOwner };\n }\n case 300 /* SourceFile */:\n return \"quit\";\n case 259 /* ModuleDeclaration */:\n // If in walking up the tree, we hit a a nested namespace declaration,\n // then we must be somewhere within a dotted namespace name; however we don't\n // want to give back a JSDoc template for the 'b' or 'c' in 'namespace a.b.c { }'.\n return commentOwner.parent.kind === 259 /* ModuleDeclaration */ ? undefined : { commentOwner: commentOwner };\n case 236 /* ExpressionStatement */:\n return getCommentOwnerInfoWorker(commentOwner.expression, options);\n case 219 /* BinaryExpression */: {\n var be = commentOwner;\n if (ts.getAssignmentDeclarationKind(be) === 0 /* None */) {\n return \"quit\";\n }\n return ts.isFunctionLike(be.right)\n ? { commentOwner: commentOwner, parameters: be.right.parameters, hasReturn: hasReturn(be.right, options) }\n : { commentOwner: commentOwner };\n }\n case 165 /* PropertyDeclaration */:\n var init = commentOwner.initializer;\n if (init && (ts.isFunctionExpression(init) || ts.isArrowFunction(init))) {\n return { commentOwner: commentOwner, parameters: init.parameters, hasReturn: hasReturn(init, options) };\n }\n }\n }\n function hasReturn(node, options) {\n return !!(options === null || options === void 0 ? void 0 : options.generateReturnInDocTemplate) &&\n (ts.isArrowFunction(node) && ts.isExpression(node.body)\n || ts.isFunctionLikeDeclaration(node) && node.body && ts.isBlock(node.body) && !!ts.forEachReturnStatement(node.body, function (n) { return n; }));\n }\n function getRightHandSideOfAssignment(rightHandSide) {\n while (rightHandSide.kind === 210 /* ParenthesizedExpression */) {\n rightHandSide = rightHandSide.expression;\n }\n switch (rightHandSide.kind) {\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return rightHandSide;\n case 224 /* ClassExpression */:\n return ts.find(rightHandSide.members, ts.isConstructorDeclaration);\n }\n }\n })(JsDoc = ts.JsDoc || (ts.JsDoc = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var NavigateTo;\n (function (NavigateTo) {\n function getNavigateToItems(sourceFiles, checker, cancellationToken, searchValue, maxResultCount, excludeDtsFiles) {\n var patternMatcher = ts.createPatternMatcher(searchValue);\n if (!patternMatcher)\n return ts.emptyArray;\n var rawItems = [];\n var _loop_6 = function (sourceFile) {\n cancellationToken.throwIfCancellationRequested();\n if (excludeDtsFiles && sourceFile.isDeclarationFile) {\n return \"continue\";\n }\n sourceFile.getNamedDeclarations().forEach(function (declarations, name) {\n getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, sourceFile.fileName, rawItems);\n });\n };\n // Search the declarations in all files and output matched NavigateToItem into array of NavigateToItem[]\n for (var _i = 0, sourceFiles_4 = sourceFiles; _i < sourceFiles_4.length; _i++) {\n var sourceFile = sourceFiles_4[_i];\n _loop_6(sourceFile);\n }\n rawItems.sort(compareNavigateToItems);\n return (maxResultCount === undefined ? rawItems : rawItems.slice(0, maxResultCount)).map(createNavigateToItem);\n }\n NavigateTo.getNavigateToItems = getNavigateToItems;\n function getItemsFromNamedDeclaration(patternMatcher, name, declarations, checker, fileName, rawItems) {\n // First do a quick check to see if the name of the declaration matches the\n // last portion of the (possibly) dotted name they're searching for.\n var match = patternMatcher.getMatchForLastSegmentOfPattern(name);\n if (!match) {\n return; // continue to next named declarations\n }\n for (var _i = 0, declarations_3 = declarations; _i < declarations_3.length; _i++) {\n var declaration = declarations_3[_i];\n if (!shouldKeepItem(declaration, checker))\n continue;\n if (patternMatcher.patternContainsDots) {\n // If the pattern has dots in it, then also see if the declaration container matches as well.\n var fullMatch = patternMatcher.getFullMatch(getContainers(declaration), name);\n if (fullMatch) {\n rawItems.push({ name: name, fileName: fileName, matchKind: fullMatch.kind, isCaseSensitive: fullMatch.isCaseSensitive, declaration: declaration });\n }\n }\n else {\n rawItems.push({ name: name, fileName: fileName, matchKind: match.kind, isCaseSensitive: match.isCaseSensitive, declaration: declaration });\n }\n }\n }\n function shouldKeepItem(declaration, checker) {\n switch (declaration.kind) {\n case 265 /* ImportClause */:\n case 268 /* ImportSpecifier */:\n case 263 /* ImportEqualsDeclaration */:\n var importer = checker.getSymbolAtLocation(declaration.name); // TODO: GH#18217\n var imported = checker.getAliasedSymbol(importer);\n return importer.escapedName !== imported.escapedName;\n default:\n return true;\n }\n }\n function tryAddSingleDeclarationName(declaration, containers) {\n var name = ts.getNameOfDeclaration(declaration);\n return !!name && (pushLiteral(name, containers) || name.kind === 160 /* ComputedPropertyName */ && tryAddComputedPropertyName(name.expression, containers));\n }\n // Only added the names of computed properties if they're simple dotted expressions, like:\n //\n // [X.Y.Z]() { }\n function tryAddComputedPropertyName(expression, containers) {\n return pushLiteral(expression, containers)\n || ts.isPropertyAccessExpression(expression) && (containers.push(expression.name.text), true) && tryAddComputedPropertyName(expression.expression, containers);\n }\n function pushLiteral(node, containers) {\n return ts.isPropertyNameLiteral(node) && (containers.push(ts.getTextOfIdentifierOrLiteral(node)), true);\n }\n function getContainers(declaration) {\n var containers = [];\n // First, if we started with a computed property name, then add all but the last\n // portion into the container array.\n var name = ts.getNameOfDeclaration(declaration);\n if (name && name.kind === 160 /* ComputedPropertyName */ && !tryAddComputedPropertyName(name.expression, containers)) {\n return ts.emptyArray;\n }\n // Don't include the last portion.\n containers.shift();\n // Now, walk up our containers, adding all their names to the container array.\n var container = ts.getContainerNode(declaration);\n while (container) {\n if (!tryAddSingleDeclarationName(container, containers)) {\n return ts.emptyArray;\n }\n container = ts.getContainerNode(container);\n }\n return containers.reverse();\n }\n function compareNavigateToItems(i1, i2) {\n // TODO(cyrusn): get the gamut of comparisons that VS already uses here.\n return ts.compareValues(i1.matchKind, i2.matchKind)\n || ts.compareStringsCaseSensitiveUI(i1.name, i2.name);\n }\n function createNavigateToItem(rawItem) {\n var declaration = rawItem.declaration;\n var container = ts.getContainerNode(declaration);\n var containerName = container && ts.getNameOfDeclaration(container);\n return {\n name: rawItem.name,\n kind: ts.getNodeKind(declaration),\n kindModifiers: ts.getNodeModifiers(declaration),\n matchKind: ts.PatternMatchKind[rawItem.matchKind],\n isCaseSensitive: rawItem.isCaseSensitive,\n fileName: rawItem.fileName,\n textSpan: ts.createTextSpanFromNode(declaration),\n // TODO(jfreeman): What should be the containerName when the container has a computed name?\n containerName: containerName ? containerName.text : \"\",\n containerKind: containerName ? ts.getNodeKind(container) : \"\" /* unknown */, // TODO: GH#18217 Just use `container ? ...`\n };\n }\n })(NavigateTo = ts.NavigateTo || (ts.NavigateTo = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var NavigationBar;\n (function (NavigationBar) {\n var _a;\n /**\n * Matches all whitespace characters in a string. Eg:\n *\n * \"app.\n *\n * onactivated\"\n *\n * matches because of the newline, whereas\n *\n * \"app.onactivated\"\n *\n * does not match.\n */\n var whiteSpaceRegex = /\\s+/g;\n /**\n * Maximum amount of characters to return\n * The amount was chosen arbitrarily.\n */\n var maxLength = 150;\n // Keep sourceFile handy so we don't have to search for it every time we need to call `getText`.\n var curCancellationToken;\n var curSourceFile;\n /**\n * For performance, we keep navigation bar parents on a stack rather than passing them through each recursion.\n * `parent` is the current parent and is *not* stored in parentsStack.\n * `startNode` sets a new parent and `endNode` returns to the previous parent.\n */\n var parentsStack = [];\n var parent;\n var trackedEs5ClassesStack = [];\n var trackedEs5Classes;\n // NavigationBarItem requires an array, but will not mutate it, so just give it this for performance.\n var emptyChildItemArray = [];\n function getNavigationBarItems(sourceFile, cancellationToken) {\n curCancellationToken = cancellationToken;\n curSourceFile = sourceFile;\n try {\n return ts.map(primaryNavBarMenuItems(rootNavigationBarNode(sourceFile)), convertToPrimaryNavBarMenuItem);\n }\n finally {\n reset();\n }\n }\n NavigationBar.getNavigationBarItems = getNavigationBarItems;\n function getNavigationTree(sourceFile, cancellationToken) {\n curCancellationToken = cancellationToken;\n curSourceFile = sourceFile;\n try {\n return convertToTree(rootNavigationBarNode(sourceFile));\n }\n finally {\n reset();\n }\n }\n NavigationBar.getNavigationTree = getNavigationTree;\n function reset() {\n curSourceFile = undefined;\n curCancellationToken = undefined;\n parentsStack = [];\n parent = undefined;\n emptyChildItemArray = [];\n }\n function nodeText(node) {\n return cleanText(node.getText(curSourceFile));\n }\n function navigationBarNodeKind(n) {\n return n.node.kind;\n }\n function pushChild(parent, child) {\n if (parent.children) {\n parent.children.push(child);\n }\n else {\n parent.children = [child];\n }\n }\n function rootNavigationBarNode(sourceFile) {\n ts.Debug.assert(!parentsStack.length);\n var root = { node: sourceFile, name: undefined, additionalNodes: undefined, parent: undefined, children: undefined, indent: 0 };\n parent = root;\n for (var _i = 0, _a = sourceFile.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n addChildrenRecursively(statement);\n }\n endNode();\n ts.Debug.assert(!parent && !parentsStack.length);\n return root;\n }\n function addLeafNode(node, name) {\n pushChild(parent, emptyNavigationBarNode(node, name));\n }\n function emptyNavigationBarNode(node, name) {\n return {\n node: node,\n name: name || (ts.isDeclaration(node) || ts.isExpression(node) ? ts.getNameOfDeclaration(node) : undefined),\n additionalNodes: undefined,\n parent: parent,\n children: undefined,\n indent: parent.indent + 1\n };\n }\n function addTrackedEs5Class(name) {\n if (!trackedEs5Classes) {\n trackedEs5Classes = new ts.Map();\n }\n trackedEs5Classes.set(name, true);\n }\n function endNestedNodes(depth) {\n for (var i = 0; i < depth; i++)\n endNode();\n }\n function startNestedNodes(targetNode, entityName) {\n var names = [];\n while (!ts.isPropertyNameLiteral(entityName)) {\n var name = ts.getNameOrArgument(entityName);\n var nameText = ts.getElementOrPropertyAccessName(entityName);\n entityName = entityName.expression;\n if (nameText === \"prototype\" || ts.isPrivateIdentifier(name))\n continue;\n names.push(name);\n }\n names.push(entityName);\n for (var i = names.length - 1; i > 0; i--) {\n var name = names[i];\n startNode(targetNode, name);\n }\n return [names.length - 1, names[0]];\n }\n /**\n * Add a new level of NavigationBarNodes.\n * This pushes to the stack, so you must call `endNode` when you are done adding to this node.\n */\n function startNode(node, name) {\n var navNode = emptyNavigationBarNode(node, name);\n pushChild(parent, navNode);\n // Save the old parent\n parentsStack.push(parent);\n trackedEs5ClassesStack.push(trackedEs5Classes);\n trackedEs5Classes = undefined;\n parent = navNode;\n }\n /** Call after calling `startNode` and adding children to it. */\n function endNode() {\n if (parent.children) {\n mergeChildren(parent.children, parent);\n sortChildren(parent.children);\n }\n parent = parentsStack.pop();\n trackedEs5Classes = trackedEs5ClassesStack.pop();\n }\n function addNodeWithRecursiveChild(node, child, name) {\n startNode(node, name);\n addChildrenRecursively(child);\n endNode();\n }\n function addNodeWithRecursiveInitializer(node) {\n if (node.initializer && isFunctionOrClassExpression(node.initializer)) {\n startNode(node);\n ts.forEachChild(node.initializer, addChildrenRecursively);\n endNode();\n }\n else {\n addNodeWithRecursiveChild(node, node.initializer);\n }\n }\n /**\n * Historically, we've elided dynamic names from the nav tree (including late bound names),\n * but included certain \"well known\" symbol names. While we no longer distinguish those well-known\n * symbols from other unique symbols, we do the below to retain those members in the nav tree.\n */\n function hasNavigationBarName(node) {\n return !ts.hasDynamicName(node) ||\n (node.kind !== 219 /* BinaryExpression */ &&\n ts.isPropertyAccessExpression(node.name.expression) &&\n ts.isIdentifier(node.name.expression.expression) &&\n ts.idText(node.name.expression.expression) === \"Symbol\");\n }\n /** Look for navigation bar items in node's subtree, adding them to the current `parent`. */\n function addChildrenRecursively(node) {\n var _a;\n curCancellationToken.throwIfCancellationRequested();\n if (!node || ts.isToken(node)) {\n return;\n }\n switch (node.kind) {\n case 169 /* Constructor */:\n // Get parameter properties, and treat them as being on the *same* level as the constructor, not under it.\n var ctr = node;\n addNodeWithRecursiveChild(ctr, ctr.body);\n // Parameter properties are children of the class, not the constructor.\n for (var _i = 0, _b = ctr.parameters; _i < _b.length; _i++) {\n var param = _b[_i];\n if (ts.isParameterPropertyDeclaration(param, ctr)) {\n addLeafNode(param);\n }\n }\n break;\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 166 /* MethodSignature */:\n if (hasNavigationBarName(node)) {\n addNodeWithRecursiveChild(node, node.body);\n }\n break;\n case 165 /* PropertyDeclaration */:\n if (hasNavigationBarName(node)) {\n addNodeWithRecursiveInitializer(node);\n }\n break;\n case 164 /* PropertySignature */:\n if (hasNavigationBarName(node)) {\n addLeafNode(node);\n }\n break;\n case 265 /* ImportClause */:\n var importClause = node;\n // Handle default import case e.g.:\n // import d from \"mod\";\n if (importClause.name) {\n addLeafNode(importClause.name);\n }\n // Handle named bindings in imports e.g.:\n // import * as NS from \"mod\";\n // import {a, b as B} from \"mod\";\n var namedBindings = importClause.namedBindings;\n if (namedBindings) {\n if (namedBindings.kind === 266 /* NamespaceImport */) {\n addLeafNode(namedBindings);\n }\n else {\n for (var _c = 0, _d = namedBindings.elements; _c < _d.length; _c++) {\n var element = _d[_c];\n addLeafNode(element);\n }\n }\n }\n break;\n case 292 /* ShorthandPropertyAssignment */:\n addNodeWithRecursiveChild(node, node.name);\n break;\n case 293 /* SpreadAssignment */:\n var expression = node.expression;\n // Use the expression as the name of the SpreadAssignment, otherwise show as .\n ts.isIdentifier(expression) ? addLeafNode(node, expression) : addLeafNode(node);\n break;\n case 201 /* BindingElement */:\n case 291 /* PropertyAssignment */:\n case 252 /* VariableDeclaration */: {\n var child = node;\n if (ts.isBindingPattern(child.name)) {\n addChildrenRecursively(child.name);\n }\n else {\n addNodeWithRecursiveInitializer(child);\n }\n break;\n }\n case 254 /* FunctionDeclaration */:\n var nameNode = node.name;\n // If we see a function declaration track as a possible ES5 class\n if (nameNode && ts.isIdentifier(nameNode)) {\n addTrackedEs5Class(nameNode.text);\n }\n addNodeWithRecursiveChild(node, node.body);\n break;\n case 212 /* ArrowFunction */:\n case 211 /* FunctionExpression */:\n addNodeWithRecursiveChild(node, node.body);\n break;\n case 258 /* EnumDeclaration */:\n startNode(node);\n for (var _e = 0, _f = node.members; _e < _f.length; _e++) {\n var member = _f[_e];\n if (!isComputedProperty(member)) {\n addLeafNode(member);\n }\n }\n endNode();\n break;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n startNode(node);\n for (var _g = 0, _h = node.members; _g < _h.length; _g++) {\n var member = _h[_g];\n addChildrenRecursively(member);\n }\n endNode();\n break;\n case 259 /* ModuleDeclaration */:\n addNodeWithRecursiveChild(node, getInteriorModule(node).body);\n break;\n case 269 /* ExportAssignment */: {\n var expression_1 = node.expression;\n var child = ts.isObjectLiteralExpression(expression_1) || ts.isCallExpression(expression_1) ? expression_1 :\n ts.isArrowFunction(expression_1) || ts.isFunctionExpression(expression_1) ? expression_1.body : undefined;\n if (child) {\n startNode(node);\n addChildrenRecursively(child);\n endNode();\n }\n else {\n addLeafNode(node);\n }\n break;\n }\n case 273 /* ExportSpecifier */:\n case 263 /* ImportEqualsDeclaration */:\n case 174 /* IndexSignature */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 257 /* TypeAliasDeclaration */:\n addLeafNode(node);\n break;\n case 206 /* CallExpression */:\n case 219 /* BinaryExpression */: {\n var special = ts.getAssignmentDeclarationKind(node);\n switch (special) {\n case 1 /* ExportsProperty */:\n case 2 /* ModuleExports */:\n addNodeWithRecursiveChild(node, node.right);\n return;\n case 6 /* Prototype */:\n case 3 /* PrototypeProperty */: {\n var binaryExpression = node;\n var assignmentTarget = binaryExpression.left;\n var prototypeAccess = special === 3 /* PrototypeProperty */ ?\n assignmentTarget.expression :\n assignmentTarget;\n var depth = 0;\n var className = void 0;\n // If we see a prototype assignment, start tracking the target as a class\n // This is only done for simple classes not nested assignments.\n if (ts.isIdentifier(prototypeAccess.expression)) {\n addTrackedEs5Class(prototypeAccess.expression.text);\n className = prototypeAccess.expression;\n }\n else {\n _a = startNestedNodes(binaryExpression, prototypeAccess.expression), depth = _a[0], className = _a[1];\n }\n if (special === 6 /* Prototype */) {\n if (ts.isObjectLiteralExpression(binaryExpression.right)) {\n if (binaryExpression.right.properties.length > 0) {\n startNode(binaryExpression, className);\n ts.forEachChild(binaryExpression.right, addChildrenRecursively);\n endNode();\n }\n }\n }\n else if (ts.isFunctionExpression(binaryExpression.right) || ts.isArrowFunction(binaryExpression.right)) {\n addNodeWithRecursiveChild(node, binaryExpression.right, className);\n }\n else {\n startNode(binaryExpression, className);\n addNodeWithRecursiveChild(node, binaryExpression.right, assignmentTarget.name);\n endNode();\n }\n endNestedNodes(depth);\n return;\n }\n case 7 /* ObjectDefinePropertyValue */:\n case 9 /* ObjectDefinePrototypeProperty */: {\n var defineCall = node;\n var className = special === 7 /* ObjectDefinePropertyValue */ ?\n defineCall.arguments[0] :\n defineCall.arguments[0].expression;\n var memberName = defineCall.arguments[1];\n var _j = startNestedNodes(node, className), depth = _j[0], classNameIdentifier = _j[1];\n startNode(node, classNameIdentifier);\n startNode(node, ts.setTextRange(ts.factory.createIdentifier(memberName.text), memberName));\n addChildrenRecursively(node.arguments[2]);\n endNode();\n endNode();\n endNestedNodes(depth);\n return;\n }\n case 5 /* Property */: {\n var binaryExpression = node;\n var assignmentTarget = binaryExpression.left;\n var targetFunction = assignmentTarget.expression;\n if (ts.isIdentifier(targetFunction) && ts.getElementOrPropertyAccessName(assignmentTarget) !== \"prototype\" &&\n trackedEs5Classes && trackedEs5Classes.has(targetFunction.text)) {\n if (ts.isFunctionExpression(binaryExpression.right) || ts.isArrowFunction(binaryExpression.right)) {\n addNodeWithRecursiveChild(node, binaryExpression.right, targetFunction);\n }\n else if (ts.isBindableStaticAccessExpression(assignmentTarget)) {\n startNode(binaryExpression, targetFunction);\n addNodeWithRecursiveChild(binaryExpression.left, binaryExpression.right, ts.getNameOrArgument(assignmentTarget));\n endNode();\n }\n return;\n }\n break;\n }\n case 4 /* ThisProperty */:\n case 0 /* None */:\n case 8 /* ObjectDefinePropertyExports */:\n break;\n default:\n ts.Debug.assertNever(special);\n }\n }\n // falls through\n default:\n if (ts.hasJSDocNodes(node)) {\n ts.forEach(node.jsDoc, function (jsDoc) {\n ts.forEach(jsDoc.tags, function (tag) {\n if (ts.isJSDocTypeAlias(tag)) {\n addLeafNode(tag);\n }\n });\n });\n }\n ts.forEachChild(node, addChildrenRecursively);\n }\n }\n /** Merge declarations of the same kind. */\n function mergeChildren(children, node) {\n var nameToItems = new ts.Map();\n ts.filterMutate(children, function (child, index) {\n var declName = child.name || ts.getNameOfDeclaration(child.node);\n var name = declName && nodeText(declName);\n if (!name) {\n // Anonymous items are never merged.\n return true;\n }\n var itemsWithSameName = nameToItems.get(name);\n if (!itemsWithSameName) {\n nameToItems.set(name, child);\n return true;\n }\n if (itemsWithSameName instanceof Array) {\n for (var _i = 0, itemsWithSameName_1 = itemsWithSameName; _i < itemsWithSameName_1.length; _i++) {\n var itemWithSameName = itemsWithSameName_1[_i];\n if (tryMerge(itemWithSameName, child, index, node)) {\n return false;\n }\n }\n itemsWithSameName.push(child);\n return true;\n }\n else {\n var itemWithSameName = itemsWithSameName;\n if (tryMerge(itemWithSameName, child, index, node)) {\n return false;\n }\n nameToItems.set(name, [itemWithSameName, child]);\n return true;\n }\n });\n }\n var isEs5ClassMember = (_a = {},\n _a[5 /* Property */] = true,\n _a[3 /* PrototypeProperty */] = true,\n _a[7 /* ObjectDefinePropertyValue */] = true,\n _a[9 /* ObjectDefinePrototypeProperty */] = true,\n _a[0 /* None */] = false,\n _a[1 /* ExportsProperty */] = false,\n _a[2 /* ModuleExports */] = false,\n _a[8 /* ObjectDefinePropertyExports */] = false,\n _a[6 /* Prototype */] = true,\n _a[4 /* ThisProperty */] = false,\n _a);\n function tryMergeEs5Class(a, b, bIndex, parent) {\n function isPossibleConstructor(node) {\n return ts.isFunctionExpression(node) || ts.isFunctionDeclaration(node) || ts.isVariableDeclaration(node);\n }\n var bAssignmentDeclarationKind = ts.isBinaryExpression(b.node) || ts.isCallExpression(b.node) ?\n ts.getAssignmentDeclarationKind(b.node) :\n 0 /* None */;\n var aAssignmentDeclarationKind = ts.isBinaryExpression(a.node) || ts.isCallExpression(a.node) ?\n ts.getAssignmentDeclarationKind(a.node) :\n 0 /* None */;\n // We treat this as an es5 class and merge the nodes in in one of several cases\n if ((isEs5ClassMember[bAssignmentDeclarationKind] && isEs5ClassMember[aAssignmentDeclarationKind]) // merge two class elements\n || (isPossibleConstructor(a.node) && isEs5ClassMember[bAssignmentDeclarationKind]) // ctor function & member\n || (isPossibleConstructor(b.node) && isEs5ClassMember[aAssignmentDeclarationKind]) // member & ctor function\n || (ts.isClassDeclaration(a.node) && isSynthesized(a.node) && isEs5ClassMember[bAssignmentDeclarationKind]) // class (generated) & member\n || (ts.isClassDeclaration(b.node) && isEs5ClassMember[aAssignmentDeclarationKind]) // member & class (generated)\n || (ts.isClassDeclaration(a.node) && isSynthesized(a.node) && isPossibleConstructor(b.node)) // class (generated) & ctor\n || (ts.isClassDeclaration(b.node) && isPossibleConstructor(a.node) && isSynthesized(a.node)) // ctor & class (generated)\n ) {\n var lastANode = a.additionalNodes && ts.lastOrUndefined(a.additionalNodes) || a.node;\n if ((!ts.isClassDeclaration(a.node) && !ts.isClassDeclaration(b.node)) // If neither outline node is a class\n || isPossibleConstructor(a.node) || isPossibleConstructor(b.node) // If either function is a constructor function\n ) {\n var ctorFunction = isPossibleConstructor(a.node) ? a.node :\n isPossibleConstructor(b.node) ? b.node :\n undefined;\n if (ctorFunction !== undefined) {\n var ctorNode = ts.setTextRange(ts.factory.createConstructorDeclaration(/* decorators */ undefined, /* modifiers */ undefined, [], /* body */ undefined), ctorFunction);\n var ctor = emptyNavigationBarNode(ctorNode);\n ctor.indent = a.indent + 1;\n ctor.children = a.node === ctorFunction ? a.children : b.children;\n a.children = a.node === ctorFunction ? ts.concatenate([ctor], b.children || [b]) : ts.concatenate(a.children || [__assign({}, a)], [ctor]);\n }\n else {\n if (a.children || b.children) {\n a.children = ts.concatenate(a.children || [__assign({}, a)], b.children || [b]);\n if (a.children) {\n mergeChildren(a.children, a);\n sortChildren(a.children);\n }\n }\n }\n lastANode = a.node = ts.setTextRange(ts.factory.createClassDeclaration(\n /* decorators */ undefined, \n /* modifiers */ undefined, a.name || ts.factory.createIdentifier(\"__class__\"), \n /* typeParameters */ undefined, \n /* heritageClauses */ undefined, []), a.node);\n }\n else {\n a.children = ts.concatenate(a.children, b.children);\n if (a.children) {\n mergeChildren(a.children, a);\n }\n }\n var bNode = b.node;\n // We merge if the outline node previous to b (bIndex - 1) is already part of the current class\n // We do this so that statements between class members that do not generate outline nodes do not split up the class outline:\n // Ex This should produce one outline node C:\n // function C() {}; a = 1; C.prototype.m = function () {}\n // Ex This will produce 3 outline nodes: C, a, C\n // function C() {}; let a = 1; C.prototype.m = function () {}\n if (parent.children[bIndex - 1].node.end === lastANode.end) {\n ts.setTextRange(lastANode, { pos: lastANode.pos, end: bNode.end });\n }\n else {\n if (!a.additionalNodes)\n a.additionalNodes = [];\n a.additionalNodes.push(ts.setTextRange(ts.factory.createClassDeclaration(\n /* decorators */ undefined, \n /* modifiers */ undefined, a.name || ts.factory.createIdentifier(\"__class__\"), \n /* typeParameters */ undefined, \n /* heritageClauses */ undefined, []), b.node));\n }\n return true;\n }\n return bAssignmentDeclarationKind === 0 /* None */ ? false : true;\n }\n function tryMerge(a, b, bIndex, parent) {\n // const v = false as boolean;\n if (tryMergeEs5Class(a, b, bIndex, parent)) {\n return true;\n }\n if (shouldReallyMerge(a.node, b.node, parent)) {\n merge(a, b);\n return true;\n }\n return false;\n }\n /** a and b have the same name, but they may not be mergeable. */\n function shouldReallyMerge(a, b, parent) {\n if (a.kind !== b.kind || a.parent !== b.parent && !(isOwnChild(a, parent) && isOwnChild(b, parent))) {\n return false;\n }\n switch (a.kind) {\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return ts.isStatic(a) === ts.isStatic(b);\n case 259 /* ModuleDeclaration */:\n return areSameModule(a, b)\n && getFullyQualifiedModuleName(a) === getFullyQualifiedModuleName(b);\n default:\n return true;\n }\n }\n function isSynthesized(node) {\n return !!(node.flags & 8 /* Synthesized */);\n }\n // We want to merge own children like `I` in in `module A { interface I {} } module A { interface I {} }`\n // We don't want to merge unrelated children like `m` in `const o = { a: { m() {} }, b: { m() {} } };`\n function isOwnChild(n, parent) {\n var par = ts.isModuleBlock(n.parent) ? n.parent.parent : n.parent;\n return par === parent.node || ts.contains(parent.additionalNodes, par);\n }\n // We use 1 NavNode to represent 'A.B.C', but there are multiple source nodes.\n // Only merge module nodes that have the same chain. Don't merge 'A.B.C' with 'A'!\n function areSameModule(a, b) {\n return a.body.kind === b.body.kind && (a.body.kind !== 259 /* ModuleDeclaration */ || areSameModule(a.body, b.body));\n }\n /** Merge source into target. Source should be thrown away after this is called. */\n function merge(target, source) {\n var _a;\n target.additionalNodes = target.additionalNodes || [];\n target.additionalNodes.push(source.node);\n if (source.additionalNodes) {\n (_a = target.additionalNodes).push.apply(_a, source.additionalNodes);\n }\n target.children = ts.concatenate(target.children, source.children);\n if (target.children) {\n mergeChildren(target.children, target);\n sortChildren(target.children);\n }\n }\n /** Recursively ensure that each NavNode's children are in sorted order. */\n function sortChildren(children) {\n children.sort(compareChildren);\n }\n function compareChildren(child1, child2) {\n return ts.compareStringsCaseSensitiveUI(tryGetName(child1.node), tryGetName(child2.node)) // TODO: GH#18217\n || ts.compareValues(navigationBarNodeKind(child1), navigationBarNodeKind(child2));\n }\n /**\n * This differs from getItemName because this is just used for sorting.\n * We only sort nodes by name that have a more-or-less \"direct\" name, as opposed to `new()` and the like.\n * So `new()` can still come before an `aardvark` method.\n */\n function tryGetName(node) {\n if (node.kind === 259 /* ModuleDeclaration */) {\n return getModuleName(node);\n }\n var declName = ts.getNameOfDeclaration(node);\n if (declName && ts.isPropertyName(declName)) {\n var propertyName = ts.getPropertyNameForPropertyNameNode(declName);\n return propertyName && ts.unescapeLeadingUnderscores(propertyName);\n }\n switch (node.kind) {\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 224 /* ClassExpression */:\n return getFunctionOrClassName(node);\n default:\n return undefined;\n }\n }\n function getItemName(node, name) {\n if (node.kind === 259 /* ModuleDeclaration */) {\n return cleanText(getModuleName(node));\n }\n if (name) {\n var text = ts.isIdentifier(name) ? name.text\n : ts.isElementAccessExpression(name) ? \"[\" + nodeText(name.argumentExpression) + \"]\"\n : nodeText(name);\n if (text.length > 0) {\n return cleanText(text);\n }\n }\n switch (node.kind) {\n case 300 /* SourceFile */:\n var sourceFile = node;\n return ts.isExternalModule(sourceFile)\n ? \"\\\"\" + ts.escapeString(ts.getBaseFileName(ts.removeFileExtension(ts.normalizePath(sourceFile.fileName)))) + \"\\\"\"\n : \"\";\n case 269 /* ExportAssignment */:\n return ts.isExportAssignment(node) && node.isExportEquals ? \"export=\" /* ExportEquals */ : \"default\" /* Default */;\n case 212 /* ArrowFunction */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n if (ts.getSyntacticModifierFlags(node) & 512 /* Default */) {\n return \"default\";\n }\n // We may get a string with newlines or other whitespace in the case of an object dereference\n // (eg: \"app\\n.onactivated\"), so we should remove the whitespace for readability in the\n // navigation bar.\n return getFunctionOrClassName(node);\n case 169 /* Constructor */:\n return \"constructor\";\n case 173 /* ConstructSignature */:\n return \"new()\";\n case 172 /* CallSignature */:\n return \"()\";\n case 174 /* IndexSignature */:\n return \"[]\";\n default:\n return \"\";\n }\n }\n /** Flattens the NavNode tree to a list of items to appear in the primary navbar menu. */\n function primaryNavBarMenuItems(root) {\n // The primary (middle) navbar menu displays the general code navigation hierarchy, similar to the navtree.\n // The secondary (right) navbar menu displays the child items of whichever primary item is selected.\n // Some less interesting items without their own child navigation items (e.g. a local variable declaration) only show up in the secondary menu.\n var primaryNavBarMenuItems = [];\n function recur(item) {\n if (shouldAppearInPrimaryNavBarMenu(item)) {\n primaryNavBarMenuItems.push(item);\n if (item.children) {\n for (var _i = 0, _a = item.children; _i < _a.length; _i++) {\n var child = _a[_i];\n recur(child);\n }\n }\n }\n }\n recur(root);\n return primaryNavBarMenuItems;\n /** Determines if a node should appear in the primary navbar menu. */\n function shouldAppearInPrimaryNavBarMenu(item) {\n // Items with children should always appear in the primary navbar menu.\n if (item.children) {\n return true;\n }\n // Some nodes are otherwise important enough to always include in the primary navigation menu.\n switch (navigationBarNodeKind(item)) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 258 /* EnumDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 300 /* SourceFile */:\n case 257 /* TypeAliasDeclaration */:\n case 340 /* JSDocTypedefTag */:\n case 333 /* JSDocCallbackTag */:\n return true;\n case 212 /* ArrowFunction */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n return isTopLevelFunctionDeclaration(item);\n default:\n return false;\n }\n function isTopLevelFunctionDeclaration(item) {\n if (!item.node.body) {\n return false;\n }\n switch (navigationBarNodeKind(item.parent)) {\n case 260 /* ModuleBlock */:\n case 300 /* SourceFile */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n return true;\n default:\n return false;\n }\n }\n }\n }\n function convertToTree(n) {\n return {\n text: getItemName(n.node, n.name),\n kind: ts.getNodeKind(n.node),\n kindModifiers: getModifiers(n.node),\n spans: getSpans(n),\n nameSpan: n.name && getNodeSpan(n.name),\n childItems: ts.map(n.children, convertToTree)\n };\n }\n function convertToPrimaryNavBarMenuItem(n) {\n return {\n text: getItemName(n.node, n.name),\n kind: ts.getNodeKind(n.node),\n kindModifiers: getModifiers(n.node),\n spans: getSpans(n),\n childItems: ts.map(n.children, convertToSecondaryNavBarMenuItem) || emptyChildItemArray,\n indent: n.indent,\n bolded: false,\n grayed: false\n };\n function convertToSecondaryNavBarMenuItem(n) {\n return {\n text: getItemName(n.node, n.name),\n kind: ts.getNodeKind(n.node),\n kindModifiers: ts.getNodeModifiers(n.node),\n spans: getSpans(n),\n childItems: emptyChildItemArray,\n indent: 0,\n bolded: false,\n grayed: false\n };\n }\n }\n function getSpans(n) {\n var spans = [getNodeSpan(n.node)];\n if (n.additionalNodes) {\n for (var _i = 0, _a = n.additionalNodes; _i < _a.length; _i++) {\n var node = _a[_i];\n spans.push(getNodeSpan(node));\n }\n }\n return spans;\n }\n function getModuleName(moduleDeclaration) {\n // We want to maintain quotation marks.\n if (ts.isAmbientModule(moduleDeclaration)) {\n return ts.getTextOfNode(moduleDeclaration.name);\n }\n return getFullyQualifiedModuleName(moduleDeclaration);\n }\n function getFullyQualifiedModuleName(moduleDeclaration) {\n // Otherwise, we need to aggregate each identifier to build up the qualified name.\n var result = [ts.getTextOfIdentifierOrLiteral(moduleDeclaration.name)];\n while (moduleDeclaration.body && moduleDeclaration.body.kind === 259 /* ModuleDeclaration */) {\n moduleDeclaration = moduleDeclaration.body;\n result.push(ts.getTextOfIdentifierOrLiteral(moduleDeclaration.name));\n }\n return result.join(\".\");\n }\n /**\n * For 'module A.B.C', we want to get the node for 'C'.\n * We store 'A' as associated with a NavNode, and use getModuleName to traverse down again.\n */\n function getInteriorModule(decl) {\n return decl.body && ts.isModuleDeclaration(decl.body) ? getInteriorModule(decl.body) : decl;\n }\n function isComputedProperty(member) {\n return !member.name || member.name.kind === 160 /* ComputedPropertyName */;\n }\n function getNodeSpan(node) {\n return node.kind === 300 /* SourceFile */ ? ts.createTextSpanFromRange(node) : ts.createTextSpanFromNode(node, curSourceFile);\n }\n function getModifiers(node) {\n if (node.parent && node.parent.kind === 252 /* VariableDeclaration */) {\n node = node.parent;\n }\n return ts.getNodeModifiers(node);\n }\n function getFunctionOrClassName(node) {\n var parent = node.parent;\n if (node.name && ts.getFullWidth(node.name) > 0) {\n return cleanText(ts.declarationNameToString(node.name));\n }\n // See if it is a var initializer. If so, use the var name.\n else if (ts.isVariableDeclaration(parent)) {\n return cleanText(ts.declarationNameToString(parent.name));\n }\n // See if it is of the form \" = function(){...}\". If so, use the text from the left-hand side.\n else if (ts.isBinaryExpression(parent) && parent.operatorToken.kind === 63 /* EqualsToken */) {\n return nodeText(parent.left).replace(whiteSpaceRegex, \"\");\n }\n // See if it is a property assignment, and if so use the property name\n else if (ts.isPropertyAssignment(parent)) {\n return nodeText(parent.name);\n }\n // Default exports are named \"default\"\n else if (ts.getSyntacticModifierFlags(node) & 512 /* Default */) {\n return \"default\";\n }\n else if (ts.isClassLike(node)) {\n return \"\";\n }\n else if (ts.isCallExpression(parent)) {\n var name = getCalledExpressionName(parent.expression);\n if (name !== undefined) {\n name = cleanText(name);\n if (name.length > maxLength) {\n return name + \" callback\";\n }\n var args = cleanText(ts.mapDefined(parent.arguments, function (a) { return ts.isStringLiteralLike(a) ? a.getText(curSourceFile) : undefined; }).join(\", \"));\n return name + \"(\" + args + \") callback\";\n }\n }\n return \"\";\n }\n // See also 'tryGetPropertyAccessOrIdentifierToString'\n function getCalledExpressionName(expr) {\n if (ts.isIdentifier(expr)) {\n return expr.text;\n }\n else if (ts.isPropertyAccessExpression(expr)) {\n var left = getCalledExpressionName(expr.expression);\n var right = expr.name.text;\n return left === undefined ? right : left + \".\" + right;\n }\n else {\n return undefined;\n }\n }\n function isFunctionOrClassExpression(node) {\n switch (node.kind) {\n case 212 /* ArrowFunction */:\n case 211 /* FunctionExpression */:\n case 224 /* ClassExpression */:\n return true;\n default:\n return false;\n }\n }\n function cleanText(text) {\n // Truncate to maximum amount of characters as we don't want to do a big replace operation.\n text = text.length > maxLength ? text.substring(0, maxLength) + \"...\" : text;\n // Replaces ECMAScript line terminators and removes the trailing `\\` from each line:\n // \\n - Line Feed\n // \\r - Carriage Return\n // \\u2028 - Line separator\n // \\u2029 - Paragraph separator\n return text.replace(/\\\\?(\\r?\\n|\\r|\\u2028|\\u2029)/g, \"\");\n }\n })(NavigationBar = ts.NavigationBar || (ts.NavigationBar = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var OrganizeImports;\n (function (OrganizeImports) {\n /**\n * Organize imports by:\n * 1) Removing unused imports\n * 2) Coalescing imports from the same module\n * 3) Sorting imports\n */\n function organizeImports(sourceFile, formatContext, host, program, preferences, skipDestructiveCodeActions) {\n var changeTracker = ts.textChanges.ChangeTracker.fromContext({ host: host, formatContext: formatContext, preferences: preferences });\n var coalesceAndOrganizeImports = function (importGroup) { return ts.stableSort(coalesceImports(removeUnusedImports(importGroup, sourceFile, program, skipDestructiveCodeActions)), function (s1, s2) { return compareImportsOrRequireStatements(s1, s2); }); };\n // All of the old ImportDeclarations in the file, in syntactic order.\n var topLevelImportDecls = sourceFile.statements.filter(ts.isImportDeclaration);\n organizeImportsWorker(topLevelImportDecls, coalesceAndOrganizeImports);\n // All of the old ExportDeclarations in the file, in syntactic order.\n var topLevelExportDecls = sourceFile.statements.filter(ts.isExportDeclaration);\n organizeImportsWorker(topLevelExportDecls, coalesceExports);\n for (var _i = 0, _a = sourceFile.statements.filter(ts.isAmbientModule); _i < _a.length; _i++) {\n var ambientModule = _a[_i];\n if (!ambientModule.body) {\n continue;\n }\n var ambientModuleImportDecls = ambientModule.body.statements.filter(ts.isImportDeclaration);\n organizeImportsWorker(ambientModuleImportDecls, coalesceAndOrganizeImports);\n var ambientModuleExportDecls = ambientModule.body.statements.filter(ts.isExportDeclaration);\n organizeImportsWorker(ambientModuleExportDecls, coalesceExports);\n }\n return changeTracker.getChanges();\n function organizeImportsWorker(oldImportDecls, coalesce) {\n if (ts.length(oldImportDecls) === 0) {\n return;\n }\n // Special case: normally, we'd expect leading and trailing trivia to follow each import\n // around as it's sorted. However, we do not want this to happen for leading trivia\n // on the first import because it is probably the header comment for the file.\n // Consider: we could do a more careful check that this trivia is actually a header,\n // but the consequences of being wrong are very minor.\n ts.suppressLeadingTrivia(oldImportDecls[0]);\n var oldImportGroups = ts.group(oldImportDecls, function (importDecl) { return getExternalModuleName(importDecl.moduleSpecifier); });\n var sortedImportGroups = ts.stableSort(oldImportGroups, function (group1, group2) { return compareModuleSpecifiers(group1[0].moduleSpecifier, group2[0].moduleSpecifier); });\n var newImportDecls = ts.flatMap(sortedImportGroups, function (importGroup) {\n return getExternalModuleName(importGroup[0].moduleSpecifier)\n ? coalesce(importGroup)\n : importGroup;\n });\n // Delete all nodes if there are no imports.\n if (newImportDecls.length === 0) {\n // Consider the first node to have trailingTrivia as we want to exclude the\n // \"header\" comment.\n changeTracker.deleteNodes(sourceFile, oldImportDecls, {\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Include,\n }, /*hasTrailingComment*/ true);\n }\n else {\n // Note: Delete the surrounding trivia because it will have been retained in newImportDecls.\n var replaceOptions = {\n leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude,\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Include,\n suffix: ts.getNewLineOrDefaultFromHost(host, formatContext.options),\n };\n changeTracker.replaceNodeWithNodes(sourceFile, oldImportDecls[0], newImportDecls, replaceOptions);\n var hasTrailingComment = changeTracker.nodeHasTrailingComment(sourceFile, oldImportDecls[0], replaceOptions);\n changeTracker.deleteNodes(sourceFile, oldImportDecls.slice(1), {\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Include,\n }, hasTrailingComment);\n }\n }\n }\n OrganizeImports.organizeImports = organizeImports;\n function removeUnusedImports(oldImports, sourceFile, program, skipDestructiveCodeActions) {\n // As a precaution, consider unused import detection to be destructive (GH #43051)\n if (skipDestructiveCodeActions) {\n return oldImports;\n }\n var typeChecker = program.getTypeChecker();\n var jsxNamespace = typeChecker.getJsxNamespace(sourceFile);\n var jsxFragmentFactory = typeChecker.getJsxFragmentFactory(sourceFile);\n var jsxElementsPresent = !!(sourceFile.transformFlags & 2 /* ContainsJsx */);\n var usedImports = [];\n for (var _i = 0, oldImports_1 = oldImports; _i < oldImports_1.length; _i++) {\n var importDecl = oldImports_1[_i];\n var importClause = importDecl.importClause, moduleSpecifier = importDecl.moduleSpecifier;\n if (!importClause) {\n // Imports without import clauses are assumed to be included for their side effects and are not removed.\n usedImports.push(importDecl);\n continue;\n }\n var name = importClause.name, namedBindings = importClause.namedBindings;\n // Default import\n if (name && !isDeclarationUsed(name)) {\n name = undefined;\n }\n if (namedBindings) {\n if (ts.isNamespaceImport(namedBindings)) {\n // Namespace import\n if (!isDeclarationUsed(namedBindings.name)) {\n namedBindings = undefined;\n }\n }\n else {\n // List of named imports\n var newElements = namedBindings.elements.filter(function (e) { return isDeclarationUsed(e.name); });\n if (newElements.length < namedBindings.elements.length) {\n namedBindings = newElements.length\n ? ts.factory.updateNamedImports(namedBindings, newElements)\n : undefined;\n }\n }\n }\n if (name || namedBindings) {\n usedImports.push(updateImportDeclarationAndClause(importDecl, name, namedBindings));\n }\n // If a module is imported to be augmented, it’s used\n else if (hasModuleDeclarationMatchingSpecifier(sourceFile, moduleSpecifier)) {\n // If we’re in a declaration file, it’s safe to remove the import clause from it\n if (sourceFile.isDeclarationFile) {\n usedImports.push(ts.factory.createImportDeclaration(importDecl.decorators, importDecl.modifiers, \n /*importClause*/ undefined, moduleSpecifier));\n }\n // If we’re not in a declaration file, we can’t remove the import clause even though\n // the imported symbols are unused, because removing them makes it look like the import\n // declaration has side effects, which will cause it to be preserved in the JS emit.\n else {\n usedImports.push(importDecl);\n }\n }\n }\n return usedImports;\n function isDeclarationUsed(identifier) {\n // The JSX factory symbol is always used if JSX elements are present - even if they are not allowed.\n return jsxElementsPresent && (identifier.text === jsxNamespace || jsxFragmentFactory && identifier.text === jsxFragmentFactory) ||\n ts.FindAllReferences.Core.isSymbolReferencedInFile(identifier, typeChecker, sourceFile);\n }\n }\n function hasModuleDeclarationMatchingSpecifier(sourceFile, moduleSpecifier) {\n var moduleSpecifierText = ts.isStringLiteral(moduleSpecifier) && moduleSpecifier.text;\n return ts.isString(moduleSpecifierText) && ts.some(sourceFile.moduleAugmentations, function (moduleName) {\n return ts.isStringLiteral(moduleName)\n && moduleName.text === moduleSpecifierText;\n });\n }\n function getExternalModuleName(specifier) {\n return specifier !== undefined && ts.isStringLiteralLike(specifier)\n ? specifier.text\n : undefined;\n }\n // Internal for testing\n /**\n * @param importGroup a list of ImportDeclarations, all with the same module name.\n */\n function coalesceImports(importGroup) {\n var _a;\n if (importGroup.length === 0) {\n return importGroup;\n }\n var _b = getCategorizedImports(importGroup), importWithoutClause = _b.importWithoutClause, typeOnlyImports = _b.typeOnlyImports, regularImports = _b.regularImports;\n var coalescedImports = [];\n if (importWithoutClause) {\n coalescedImports.push(importWithoutClause);\n }\n for (var _i = 0, _c = [regularImports, typeOnlyImports]; _i < _c.length; _i++) {\n var group_2 = _c[_i];\n var isTypeOnly = group_2 === typeOnlyImports;\n var defaultImports = group_2.defaultImports, namespaceImports = group_2.namespaceImports, namedImports = group_2.namedImports;\n // Normally, we don't combine default and namespace imports, but it would be silly to\n // produce two import declarations in this special case.\n if (!isTypeOnly && defaultImports.length === 1 && namespaceImports.length === 1 && namedImports.length === 0) {\n // Add the namespace import to the existing default ImportDeclaration.\n var defaultImport = defaultImports[0];\n coalescedImports.push(updateImportDeclarationAndClause(defaultImport, defaultImport.importClause.name, namespaceImports[0].importClause.namedBindings)); // TODO: GH#18217\n continue;\n }\n var sortedNamespaceImports = ts.stableSort(namespaceImports, function (i1, i2) {\n return compareIdentifiers(i1.importClause.namedBindings.name, i2.importClause.namedBindings.name);\n }); // TODO: GH#18217\n for (var _d = 0, sortedNamespaceImports_1 = sortedNamespaceImports; _d < sortedNamespaceImports_1.length; _d++) {\n var namespaceImport = sortedNamespaceImports_1[_d];\n // Drop the name, if any\n coalescedImports.push(updateImportDeclarationAndClause(namespaceImport, /*name*/ undefined, namespaceImport.importClause.namedBindings)); // TODO: GH#18217\n }\n if (defaultImports.length === 0 && namedImports.length === 0) {\n continue;\n }\n var newDefaultImport = void 0;\n var newImportSpecifiers = [];\n if (defaultImports.length === 1) {\n newDefaultImport = defaultImports[0].importClause.name;\n }\n else {\n for (var _e = 0, defaultImports_1 = defaultImports; _e < defaultImports_1.length; _e++) {\n var defaultImport = defaultImports_1[_e];\n newImportSpecifiers.push(ts.factory.createImportSpecifier(ts.factory.createIdentifier(\"default\"), defaultImport.importClause.name)); // TODO: GH#18217\n }\n }\n newImportSpecifiers.push.apply(newImportSpecifiers, ts.flatMap(namedImports, function (i) { return i.importClause.namedBindings.elements; })); // TODO: GH#18217\n var sortedImportSpecifiers = sortSpecifiers(newImportSpecifiers);\n var importDecl = defaultImports.length > 0\n ? defaultImports[0]\n : namedImports[0];\n var newNamedImports = sortedImportSpecifiers.length === 0\n ? newDefaultImport\n ? undefined\n : ts.factory.createNamedImports(ts.emptyArray)\n : namedImports.length === 0\n ? ts.factory.createNamedImports(sortedImportSpecifiers)\n : ts.factory.updateNamedImports(namedImports[0].importClause.namedBindings, sortedImportSpecifiers); // TODO: GH#18217\n // Type-only imports are not allowed to mix default, namespace, and named imports in any combination.\n // We could rewrite a default import as a named import (`import { default as name }`), but we currently\n // choose not to as a stylistic preference.\n if (isTypeOnly && newDefaultImport && newNamedImports) {\n coalescedImports.push(updateImportDeclarationAndClause(importDecl, newDefaultImport, /*namedBindings*/ undefined));\n coalescedImports.push(updateImportDeclarationAndClause((_a = namedImports[0]) !== null && _a !== void 0 ? _a : importDecl, /*name*/ undefined, newNamedImports));\n }\n else {\n coalescedImports.push(updateImportDeclarationAndClause(importDecl, newDefaultImport, newNamedImports));\n }\n }\n return coalescedImports;\n }\n OrganizeImports.coalesceImports = coalesceImports;\n /*\n * Returns entire import declarations because they may already have been rewritten and\n * may lack parent pointers. The desired parts can easily be recovered based on the\n * categorization.\n *\n * NB: There may be overlap between `defaultImports` and `namespaceImports`/`namedImports`.\n */\n function getCategorizedImports(importGroup) {\n var importWithoutClause;\n var typeOnlyImports = { defaultImports: [], namespaceImports: [], namedImports: [] };\n var regularImports = { defaultImports: [], namespaceImports: [], namedImports: [] };\n for (var _i = 0, importGroup_1 = importGroup; _i < importGroup_1.length; _i++) {\n var importDeclaration = importGroup_1[_i];\n if (importDeclaration.importClause === undefined) {\n // Only the first such import is interesting - the others are redundant.\n // Note: Unfortunately, we will lose trivia that was on this node.\n importWithoutClause = importWithoutClause || importDeclaration;\n continue;\n }\n var group_3 = importDeclaration.importClause.isTypeOnly ? typeOnlyImports : regularImports;\n var _a = importDeclaration.importClause, name = _a.name, namedBindings = _a.namedBindings;\n if (name) {\n group_3.defaultImports.push(importDeclaration);\n }\n if (namedBindings) {\n if (ts.isNamespaceImport(namedBindings)) {\n group_3.namespaceImports.push(importDeclaration);\n }\n else {\n group_3.namedImports.push(importDeclaration);\n }\n }\n }\n return {\n importWithoutClause: importWithoutClause,\n typeOnlyImports: typeOnlyImports,\n regularImports: regularImports,\n };\n }\n // Internal for testing\n /**\n * @param exportGroup a list of ExportDeclarations, all with the same module name.\n */\n function coalesceExports(exportGroup) {\n if (exportGroup.length === 0) {\n return exportGroup;\n }\n var _a = getCategorizedExports(exportGroup), exportWithoutClause = _a.exportWithoutClause, namedExports = _a.namedExports, typeOnlyExports = _a.typeOnlyExports;\n var coalescedExports = [];\n if (exportWithoutClause) {\n coalescedExports.push(exportWithoutClause);\n }\n for (var _i = 0, _b = [namedExports, typeOnlyExports]; _i < _b.length; _i++) {\n var exportGroup_1 = _b[_i];\n if (exportGroup_1.length === 0) {\n continue;\n }\n var newExportSpecifiers = [];\n newExportSpecifiers.push.apply(newExportSpecifiers, ts.flatMap(exportGroup_1, function (i) { return i.exportClause && ts.isNamedExports(i.exportClause) ? i.exportClause.elements : ts.emptyArray; }));\n var sortedExportSpecifiers = sortSpecifiers(newExportSpecifiers);\n var exportDecl = exportGroup_1[0];\n coalescedExports.push(ts.factory.updateExportDeclaration(exportDecl, exportDecl.decorators, exportDecl.modifiers, exportDecl.isTypeOnly, exportDecl.exportClause && (ts.isNamedExports(exportDecl.exportClause) ?\n ts.factory.updateNamedExports(exportDecl.exportClause, sortedExportSpecifiers) :\n ts.factory.updateNamespaceExport(exportDecl.exportClause, exportDecl.exportClause.name)), exportDecl.moduleSpecifier));\n }\n return coalescedExports;\n /*\n * Returns entire export declarations because they may already have been rewritten and\n * may lack parent pointers. The desired parts can easily be recovered based on the\n * categorization.\n */\n function getCategorizedExports(exportGroup) {\n var exportWithoutClause;\n var namedExports = [];\n var typeOnlyExports = [];\n for (var _i = 0, exportGroup_2 = exportGroup; _i < exportGroup_2.length; _i++) {\n var exportDeclaration = exportGroup_2[_i];\n if (exportDeclaration.exportClause === undefined) {\n // Only the first such export is interesting - the others are redundant.\n // Note: Unfortunately, we will lose trivia that was on this node.\n exportWithoutClause = exportWithoutClause || exportDeclaration;\n }\n else if (exportDeclaration.isTypeOnly) {\n typeOnlyExports.push(exportDeclaration);\n }\n else {\n namedExports.push(exportDeclaration);\n }\n }\n return {\n exportWithoutClause: exportWithoutClause,\n namedExports: namedExports,\n typeOnlyExports: typeOnlyExports,\n };\n }\n }\n OrganizeImports.coalesceExports = coalesceExports;\n function updateImportDeclarationAndClause(importDeclaration, name, namedBindings) {\n return ts.factory.updateImportDeclaration(importDeclaration, importDeclaration.decorators, importDeclaration.modifiers, ts.factory.updateImportClause(importDeclaration.importClause, importDeclaration.importClause.isTypeOnly, name, namedBindings), // TODO: GH#18217\n importDeclaration.moduleSpecifier);\n }\n function sortSpecifiers(specifiers) {\n return ts.stableSort(specifiers, compareImportOrExportSpecifiers);\n }\n function compareImportOrExportSpecifiers(s1, s2) {\n return compareIdentifiers(s1.propertyName || s1.name, s2.propertyName || s2.name)\n || compareIdentifiers(s1.name, s2.name);\n }\n OrganizeImports.compareImportOrExportSpecifiers = compareImportOrExportSpecifiers;\n /* internal */ // Exported for testing\n function compareModuleSpecifiers(m1, m2) {\n var name1 = m1 === undefined ? undefined : getExternalModuleName(m1);\n var name2 = m2 === undefined ? undefined : getExternalModuleName(m2);\n return ts.compareBooleans(name1 === undefined, name2 === undefined) ||\n ts.compareBooleans(ts.isExternalModuleNameRelative(name1), ts.isExternalModuleNameRelative(name2)) ||\n ts.compareStringsCaseInsensitive(name1, name2);\n }\n OrganizeImports.compareModuleSpecifiers = compareModuleSpecifiers;\n function compareIdentifiers(s1, s2) {\n return ts.compareStringsCaseInsensitive(s1.text, s2.text);\n }\n function getModuleSpecifierExpression(declaration) {\n var _a;\n switch (declaration.kind) {\n case 263 /* ImportEqualsDeclaration */:\n return (_a = ts.tryCast(declaration.moduleReference, ts.isExternalModuleReference)) === null || _a === void 0 ? void 0 : _a.expression;\n case 264 /* ImportDeclaration */:\n return declaration.moduleSpecifier;\n case 235 /* VariableStatement */:\n return declaration.declarationList.declarations[0].initializer.arguments[0];\n }\n }\n function importsAreSorted(imports) {\n return ts.arrayIsSorted(imports, compareImportsOrRequireStatements);\n }\n OrganizeImports.importsAreSorted = importsAreSorted;\n function importSpecifiersAreSorted(imports) {\n return ts.arrayIsSorted(imports, compareImportOrExportSpecifiers);\n }\n OrganizeImports.importSpecifiersAreSorted = importSpecifiersAreSorted;\n function getImportDeclarationInsertionIndex(sortedImports, newImport) {\n var index = ts.binarySearch(sortedImports, newImport, ts.identity, compareImportsOrRequireStatements);\n return index < 0 ? ~index : index;\n }\n OrganizeImports.getImportDeclarationInsertionIndex = getImportDeclarationInsertionIndex;\n function getImportSpecifierInsertionIndex(sortedImports, newImport) {\n var index = ts.binarySearch(sortedImports, newImport, ts.identity, compareImportOrExportSpecifiers);\n return index < 0 ? ~index : index;\n }\n OrganizeImports.getImportSpecifierInsertionIndex = getImportSpecifierInsertionIndex;\n function compareImportsOrRequireStatements(s1, s2) {\n return compareModuleSpecifiers(getModuleSpecifierExpression(s1), getModuleSpecifierExpression(s2)) || compareImportKind(s1, s2);\n }\n OrganizeImports.compareImportsOrRequireStatements = compareImportsOrRequireStatements;\n function compareImportKind(s1, s2) {\n return ts.compareValues(getImportKindOrder(s1), getImportKindOrder(s2));\n }\n // 1. Side-effect imports\n // 2. Type-only imports\n // 3. Namespace imports\n // 4. Default imports\n // 5. Named imports\n // 6. ImportEqualsDeclarations\n // 7. Require variable statements\n function getImportKindOrder(s1) {\n var _a;\n switch (s1.kind) {\n case 264 /* ImportDeclaration */:\n if (!s1.importClause)\n return 0;\n if (s1.importClause.isTypeOnly)\n return 1;\n if (((_a = s1.importClause.namedBindings) === null || _a === void 0 ? void 0 : _a.kind) === 266 /* NamespaceImport */)\n return 2;\n if (s1.importClause.name)\n return 3;\n return 4;\n case 263 /* ImportEqualsDeclaration */:\n return 5;\n case 235 /* VariableStatement */:\n return 6;\n }\n }\n })(OrganizeImports = ts.OrganizeImports || (ts.OrganizeImports = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var OutliningElementsCollector;\n (function (OutliningElementsCollector) {\n function collectElements(sourceFile, cancellationToken) {\n var res = [];\n addNodeOutliningSpans(sourceFile, cancellationToken, res);\n addRegionOutliningSpans(sourceFile, res);\n return res.sort(function (span1, span2) { return span1.textSpan.start - span2.textSpan.start; });\n }\n OutliningElementsCollector.collectElements = collectElements;\n function addNodeOutliningSpans(sourceFile, cancellationToken, out) {\n var depthRemaining = 40;\n var current = 0;\n // Includes the EOF Token so that comments which aren't attached to statements are included\n var statements = __spreadArray(__spreadArray([], sourceFile.statements, true), [sourceFile.endOfFileToken], false);\n var n = statements.length;\n while (current < n) {\n while (current < n && !ts.isAnyImportSyntax(statements[current])) {\n visitNonImportNode(statements[current]);\n current++;\n }\n if (current === n)\n break;\n var firstImport = current;\n while (current < n && ts.isAnyImportSyntax(statements[current])) {\n addOutliningForLeadingCommentsForNode(statements[current], sourceFile, cancellationToken, out);\n current++;\n }\n var lastImport = current - 1;\n if (lastImport !== firstImport) {\n out.push(createOutliningSpanFromBounds(ts.findChildOfKind(statements[firstImport], 100 /* ImportKeyword */, sourceFile).getStart(sourceFile), statements[lastImport].getEnd(), \"imports\" /* Imports */));\n }\n }\n function visitNonImportNode(n) {\n var _a;\n if (depthRemaining === 0)\n return;\n cancellationToken.throwIfCancellationRequested();\n if (ts.isDeclaration(n) || ts.isVariableStatement(n) || ts.isReturnStatement(n) || n.kind === 1 /* EndOfFileToken */) {\n addOutliningForLeadingCommentsForNode(n, sourceFile, cancellationToken, out);\n }\n if (ts.isFunctionLike(n) && ts.isBinaryExpression(n.parent) && ts.isPropertyAccessExpression(n.parent.left)) {\n addOutliningForLeadingCommentsForNode(n.parent.left, sourceFile, cancellationToken, out);\n }\n if (ts.isBlock(n) || ts.isModuleBlock(n)) {\n addOutliningForLeadingCommentsForPos(n.statements.end, sourceFile, cancellationToken, out);\n }\n if (ts.isClassLike(n) || ts.isInterfaceDeclaration(n)) {\n addOutliningForLeadingCommentsForPos(n.members.end, sourceFile, cancellationToken, out);\n }\n var span = getOutliningSpanForNode(n, sourceFile);\n if (span)\n out.push(span);\n depthRemaining--;\n if (ts.isCallExpression(n)) {\n depthRemaining++;\n visitNonImportNode(n.expression);\n depthRemaining--;\n n.arguments.forEach(visitNonImportNode);\n (_a = n.typeArguments) === null || _a === void 0 ? void 0 : _a.forEach(visitNonImportNode);\n }\n else if (ts.isIfStatement(n) && n.elseStatement && ts.isIfStatement(n.elseStatement)) {\n // Consider an 'else if' to be on the same depth as the 'if'.\n visitNonImportNode(n.expression);\n visitNonImportNode(n.thenStatement);\n depthRemaining++;\n visitNonImportNode(n.elseStatement);\n depthRemaining--;\n }\n else {\n n.forEachChild(visitNonImportNode);\n }\n depthRemaining++;\n }\n }\n function addRegionOutliningSpans(sourceFile, out) {\n var regions = [];\n var lineStarts = sourceFile.getLineStarts();\n for (var _i = 0, lineStarts_1 = lineStarts; _i < lineStarts_1.length; _i++) {\n var currentLineStart = lineStarts_1[_i];\n var lineEnd = sourceFile.getLineEndOfPosition(currentLineStart);\n var lineText = sourceFile.text.substring(currentLineStart, lineEnd);\n var result = isRegionDelimiter(lineText);\n if (!result || ts.isInComment(sourceFile, currentLineStart)) {\n continue;\n }\n if (!result[1]) {\n var span = ts.createTextSpanFromBounds(sourceFile.text.indexOf(\"//\", currentLineStart), lineEnd);\n regions.push(createOutliningSpan(span, \"region\" /* Region */, span, /*autoCollapse*/ false, result[2] || \"#region\"));\n }\n else {\n var region = regions.pop();\n if (region) {\n region.textSpan.length = lineEnd - region.textSpan.start;\n region.hintSpan.length = lineEnd - region.textSpan.start;\n out.push(region);\n }\n }\n }\n }\n var regionDelimiterRegExp = /^#(end)?region(?:\\s+(.*))?(?:\\r)?$/;\n function isRegionDelimiter(lineText) {\n // We trim the leading whitespace and // without the regex since the\n // multiple potential whitespace matches can make for some gnarly backtracking behavior\n lineText = ts.trimStringStart(lineText);\n if (!ts.startsWith(lineText, \"\\/\\/\")) {\n return null; // eslint-disable-line no-null/no-null\n }\n lineText = ts.trimString(lineText.slice(2));\n return regionDelimiterRegExp.exec(lineText);\n }\n function addOutliningForLeadingCommentsForPos(pos, sourceFile, cancellationToken, out) {\n var comments = ts.getLeadingCommentRanges(sourceFile.text, pos);\n if (!comments)\n return;\n var firstSingleLineCommentStart = -1;\n var lastSingleLineCommentEnd = -1;\n var singleLineCommentCount = 0;\n var sourceText = sourceFile.getFullText();\n for (var _i = 0, comments_1 = comments; _i < comments_1.length; _i++) {\n var _a = comments_1[_i], kind = _a.kind, pos_1 = _a.pos, end = _a.end;\n cancellationToken.throwIfCancellationRequested();\n switch (kind) {\n case 2 /* SingleLineCommentTrivia */:\n // never fold region delimiters into single-line comment regions\n var commentText = sourceText.slice(pos_1, end);\n if (isRegionDelimiter(commentText)) {\n combineAndAddMultipleSingleLineComments();\n singleLineCommentCount = 0;\n break;\n }\n // For single line comments, combine consecutive ones (2 or more) into\n // a single span from the start of the first till the end of the last\n if (singleLineCommentCount === 0) {\n firstSingleLineCommentStart = pos_1;\n }\n lastSingleLineCommentEnd = end;\n singleLineCommentCount++;\n break;\n case 3 /* MultiLineCommentTrivia */:\n combineAndAddMultipleSingleLineComments();\n out.push(createOutliningSpanFromBounds(pos_1, end, \"comment\" /* Comment */));\n singleLineCommentCount = 0;\n break;\n default:\n ts.Debug.assertNever(kind);\n }\n }\n combineAndAddMultipleSingleLineComments();\n function combineAndAddMultipleSingleLineComments() {\n // Only outline spans of two or more consecutive single line comments\n if (singleLineCommentCount > 1) {\n out.push(createOutliningSpanFromBounds(firstSingleLineCommentStart, lastSingleLineCommentEnd, \"comment\" /* Comment */));\n }\n }\n }\n function addOutliningForLeadingCommentsForNode(n, sourceFile, cancellationToken, out) {\n if (ts.isJsxText(n))\n return;\n addOutliningForLeadingCommentsForPos(n.pos, sourceFile, cancellationToken, out);\n }\n function createOutliningSpanFromBounds(pos, end, kind) {\n return createOutliningSpan(ts.createTextSpanFromBounds(pos, end), kind);\n }\n function getOutliningSpanForNode(n, sourceFile) {\n switch (n.kind) {\n case 233 /* Block */:\n if (ts.isFunctionLike(n.parent)) {\n return functionSpan(n.parent, n, sourceFile);\n }\n // Check if the block is standalone, or 'attached' to some parent statement.\n // If the latter, we want to collapse the block, but consider its hint span\n // to be the entire span of the parent.\n switch (n.parent.kind) {\n case 238 /* DoStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 240 /* ForStatement */:\n case 237 /* IfStatement */:\n case 239 /* WhileStatement */:\n case 246 /* WithStatement */:\n case 290 /* CatchClause */:\n return spanForNode(n.parent);\n case 250 /* TryStatement */:\n // Could be the try-block, or the finally-block.\n var tryStatement = n.parent;\n if (tryStatement.tryBlock === n) {\n return spanForNode(n.parent);\n }\n else if (tryStatement.finallyBlock === n) {\n var node = ts.findChildOfKind(tryStatement, 96 /* FinallyKeyword */, sourceFile);\n if (node)\n return spanForNode(node);\n }\n // falls through\n default:\n // Block was a standalone block. In this case we want to only collapse\n // the span of the block, independent of any parent span.\n return createOutliningSpan(ts.createTextSpanFromNode(n, sourceFile), \"code\" /* Code */);\n }\n case 260 /* ModuleBlock */:\n return spanForNode(n.parent);\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 261 /* CaseBlock */:\n case 180 /* TypeLiteral */:\n case 199 /* ObjectBindingPattern */:\n return spanForNode(n);\n case 182 /* TupleType */:\n return spanForNode(n, /*autoCollapse*/ false, /*useFullStart*/ !ts.isTupleTypeNode(n.parent), 22 /* OpenBracketToken */);\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n return spanForNodeArray(n.statements);\n case 203 /* ObjectLiteralExpression */:\n return spanForObjectOrArrayLiteral(n);\n case 202 /* ArrayLiteralExpression */:\n return spanForObjectOrArrayLiteral(n, 22 /* OpenBracketToken */);\n case 276 /* JsxElement */:\n return spanForJSXElement(n);\n case 280 /* JsxFragment */:\n return spanForJSXFragment(n);\n case 277 /* JsxSelfClosingElement */:\n case 278 /* JsxOpeningElement */:\n return spanForJSXAttributes(n.attributes);\n case 221 /* TemplateExpression */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n return spanForTemplateLiteral(n);\n case 200 /* ArrayBindingPattern */:\n return spanForNode(n, /*autoCollapse*/ false, /*useFullStart*/ !ts.isBindingElement(n.parent), 22 /* OpenBracketToken */);\n case 212 /* ArrowFunction */:\n return spanForArrowFunction(n);\n case 206 /* CallExpression */:\n return spanForCallExpression(n);\n }\n function spanForCallExpression(node) {\n if (!node.arguments.length) {\n return undefined;\n }\n var openToken = ts.findChildOfKind(node, 20 /* OpenParenToken */, sourceFile);\n var closeToken = ts.findChildOfKind(node, 21 /* CloseParenToken */, sourceFile);\n if (!openToken || !closeToken || ts.positionsAreOnSameLine(openToken.pos, closeToken.pos, sourceFile)) {\n return undefined;\n }\n return spanBetweenTokens(openToken, closeToken, node, sourceFile, /*autoCollapse*/ false, /*useFullStart*/ true);\n }\n function spanForArrowFunction(node) {\n if (ts.isBlock(node.body) || ts.positionsAreOnSameLine(node.body.getFullStart(), node.body.getEnd(), sourceFile)) {\n return undefined;\n }\n var textSpan = ts.createTextSpanFromBounds(node.body.getFullStart(), node.body.getEnd());\n return createOutliningSpan(textSpan, \"code\" /* Code */, ts.createTextSpanFromNode(node));\n }\n function spanForJSXElement(node) {\n var textSpan = ts.createTextSpanFromBounds(node.openingElement.getStart(sourceFile), node.closingElement.getEnd());\n var tagName = node.openingElement.tagName.getText(sourceFile);\n var bannerText = \"<\" + tagName + \">...\";\n return createOutliningSpan(textSpan, \"code\" /* Code */, textSpan, /*autoCollapse*/ false, bannerText);\n }\n function spanForJSXFragment(node) {\n var textSpan = ts.createTextSpanFromBounds(node.openingFragment.getStart(sourceFile), node.closingFragment.getEnd());\n var bannerText = \"<>...\";\n return createOutliningSpan(textSpan, \"code\" /* Code */, textSpan, /*autoCollapse*/ false, bannerText);\n }\n function spanForJSXAttributes(node) {\n if (node.properties.length === 0) {\n return undefined;\n }\n return createOutliningSpanFromBounds(node.getStart(sourceFile), node.getEnd(), \"code\" /* Code */);\n }\n function spanForTemplateLiteral(node) {\n if (node.kind === 14 /* NoSubstitutionTemplateLiteral */ && node.text.length === 0) {\n return undefined;\n }\n return createOutliningSpanFromBounds(node.getStart(sourceFile), node.getEnd(), \"code\" /* Code */);\n }\n function spanForObjectOrArrayLiteral(node, open) {\n if (open === void 0) { open = 18 /* OpenBraceToken */; }\n // If the block has no leading keywords and is inside an array literal or call expression,\n // we only want to collapse the span of the block.\n // Otherwise, the collapsed section will include the end of the previous line.\n return spanForNode(node, /*autoCollapse*/ false, /*useFullStart*/ !ts.isArrayLiteralExpression(node.parent) && !ts.isCallExpression(node.parent), open);\n }\n function spanForNode(hintSpanNode, autoCollapse, useFullStart, open, close) {\n if (autoCollapse === void 0) { autoCollapse = false; }\n if (useFullStart === void 0) { useFullStart = true; }\n if (open === void 0) { open = 18 /* OpenBraceToken */; }\n if (close === void 0) { close = open === 18 /* OpenBraceToken */ ? 19 /* CloseBraceToken */ : 23 /* CloseBracketToken */; }\n var openToken = ts.findChildOfKind(n, open, sourceFile);\n var closeToken = ts.findChildOfKind(n, close, sourceFile);\n return openToken && closeToken && spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse, useFullStart);\n }\n function spanForNodeArray(nodeArray) {\n return nodeArray.length ? createOutliningSpan(ts.createTextSpanFromRange(nodeArray), \"code\" /* Code */) : undefined;\n }\n }\n function functionSpan(node, body, sourceFile) {\n var openToken = tryGetFunctionOpenToken(node, body, sourceFile);\n var closeToken = ts.findChildOfKind(body, 19 /* CloseBraceToken */, sourceFile);\n return openToken && closeToken && spanBetweenTokens(openToken, closeToken, node, sourceFile, /*autoCollapse*/ node.kind !== 212 /* ArrowFunction */);\n }\n function spanBetweenTokens(openToken, closeToken, hintSpanNode, sourceFile, autoCollapse, useFullStart) {\n if (autoCollapse === void 0) { autoCollapse = false; }\n if (useFullStart === void 0) { useFullStart = true; }\n var textSpan = ts.createTextSpanFromBounds(useFullStart ? openToken.getFullStart() : openToken.getStart(sourceFile), closeToken.getEnd());\n return createOutliningSpan(textSpan, \"code\" /* Code */, ts.createTextSpanFromNode(hintSpanNode, sourceFile), autoCollapse);\n }\n function createOutliningSpan(textSpan, kind, hintSpan, autoCollapse, bannerText) {\n if (hintSpan === void 0) { hintSpan = textSpan; }\n if (autoCollapse === void 0) { autoCollapse = false; }\n if (bannerText === void 0) { bannerText = \"...\"; }\n return { textSpan: textSpan, kind: kind, hintSpan: hintSpan, bannerText: bannerText, autoCollapse: autoCollapse };\n }\n function tryGetFunctionOpenToken(node, body, sourceFile) {\n if (ts.isNodeArrayMultiLine(node.parameters, sourceFile)) {\n var openParenToken = ts.findChildOfKind(node, 20 /* OpenParenToken */, sourceFile);\n if (openParenToken) {\n return openParenToken;\n }\n }\n return ts.findChildOfKind(body, 18 /* OpenBraceToken */, sourceFile);\n }\n })(OutliningElementsCollector = ts.OutliningElementsCollector || (ts.OutliningElementsCollector = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n // Note(cyrusn): this enum is ordered from strongest match type to weakest match type.\n var PatternMatchKind;\n (function (PatternMatchKind) {\n PatternMatchKind[PatternMatchKind[\"exact\"] = 0] = \"exact\";\n PatternMatchKind[PatternMatchKind[\"prefix\"] = 1] = \"prefix\";\n PatternMatchKind[PatternMatchKind[\"substring\"] = 2] = \"substring\";\n PatternMatchKind[PatternMatchKind[\"camelCase\"] = 3] = \"camelCase\";\n })(PatternMatchKind = ts.PatternMatchKind || (ts.PatternMatchKind = {}));\n function createPatternMatch(kind, isCaseSensitive) {\n return {\n kind: kind,\n isCaseSensitive: isCaseSensitive\n };\n }\n function createPatternMatcher(pattern) {\n // We'll often see the same candidate string many times when searching (For example, when\n // we see the name of a module that is used everywhere, or the name of an overload). As\n // such, we cache the information we compute about the candidate for the life of this\n // pattern matcher so we don't have to compute it multiple times.\n var stringToWordSpans = new ts.Map();\n var dotSeparatedSegments = pattern.trim().split(\".\").map(function (p) { return createSegment(p.trim()); });\n // A segment is considered invalid if we couldn't find any words in it.\n if (dotSeparatedSegments.some(function (segment) { return !segment.subWordTextChunks.length; }))\n return undefined;\n return {\n getFullMatch: function (containers, candidate) { return getFullMatch(containers, candidate, dotSeparatedSegments, stringToWordSpans); },\n getMatchForLastSegmentOfPattern: function (candidate) { return matchSegment(candidate, ts.last(dotSeparatedSegments), stringToWordSpans); },\n patternContainsDots: dotSeparatedSegments.length > 1\n };\n }\n ts.createPatternMatcher = createPatternMatcher;\n function getFullMatch(candidateContainers, candidate, dotSeparatedSegments, stringToWordSpans) {\n // First, check that the last part of the dot separated pattern matches the name of the\n // candidate. If not, then there's no point in proceeding and doing the more\n // expensive work.\n var candidateMatch = matchSegment(candidate, ts.last(dotSeparatedSegments), stringToWordSpans);\n if (!candidateMatch) {\n return undefined;\n }\n // -1 because the last part was checked against the name, and only the rest\n // of the parts are checked against the container.\n if (dotSeparatedSegments.length - 1 > candidateContainers.length) {\n // There weren't enough container parts to match against the pattern parts.\n // So this definitely doesn't match.\n return undefined;\n }\n var bestMatch;\n for (var i = dotSeparatedSegments.length - 2, j = candidateContainers.length - 1; i >= 0; i -= 1, j -= 1) {\n bestMatch = betterMatch(bestMatch, matchSegment(candidateContainers[j], dotSeparatedSegments[i], stringToWordSpans));\n }\n return bestMatch;\n }\n function getWordSpans(word, stringToWordSpans) {\n var spans = stringToWordSpans.get(word);\n if (!spans) {\n stringToWordSpans.set(word, spans = breakIntoWordSpans(word));\n }\n return spans;\n }\n function matchTextChunk(candidate, chunk, stringToWordSpans) {\n var index = indexOfIgnoringCase(candidate, chunk.textLowerCase);\n if (index === 0) {\n // a) Check if the word is a prefix of the candidate, in a case insensitive or\n // sensitive manner. If it does, return that there was an exact match if the word and candidate are the same length, else a prefix match.\n return createPatternMatch(chunk.text.length === candidate.length ? PatternMatchKind.exact : PatternMatchKind.prefix, /*isCaseSensitive:*/ ts.startsWith(candidate, chunk.text));\n }\n if (chunk.isLowerCase) {\n if (index === -1)\n return undefined;\n // b) If the part is entirely lowercase, then check if it is contained anywhere in the\n // candidate in a case insensitive manner. If so, return that there was a substring\n // match.\n //\n // Note: We only have a substring match if the lowercase part is prefix match of some\n // word part. That way we don't match something like 'Class' when the user types 'a'.\n // But we would match 'FooAttribute' (since 'Attribute' starts with 'a').\n var wordSpans = getWordSpans(candidate, stringToWordSpans);\n for (var _i = 0, wordSpans_1 = wordSpans; _i < wordSpans_1.length; _i++) {\n var span = wordSpans_1[_i];\n if (partStartsWith(candidate, span, chunk.text, /*ignoreCase:*/ true)) {\n return createPatternMatch(PatternMatchKind.substring, /*isCaseSensitive:*/ partStartsWith(candidate, span, chunk.text, /*ignoreCase:*/ false));\n }\n }\n // c) Is the pattern a substring of the candidate starting on one of the candidate's word boundaries?\n // We could check every character boundary start of the candidate for the pattern. However, that's\n // an m * n operation in the wost case. Instead, find the first instance of the pattern\n // substring, and see if it starts on a capital letter. It seems unlikely that the user will try to\n // filter the list based on a substring that starts on a capital letter and also with a lowercase one.\n // (Pattern: fogbar, Candidate: quuxfogbarFogBar).\n if (chunk.text.length < candidate.length && isUpperCaseLetter(candidate.charCodeAt(index))) {\n return createPatternMatch(PatternMatchKind.substring, /*isCaseSensitive:*/ false);\n }\n }\n else {\n // d) If the part was not entirely lowercase, then check if it is contained in the\n // candidate in a case *sensitive* manner. If so, return that there was a substring\n // match.\n if (candidate.indexOf(chunk.text) > 0) {\n return createPatternMatch(PatternMatchKind.substring, /*isCaseSensitive:*/ true);\n }\n // e) If the part was not entirely lowercase, then attempt a camel cased match as well.\n if (chunk.characterSpans.length > 0) {\n var candidateParts = getWordSpans(candidate, stringToWordSpans);\n var isCaseSensitive = tryCamelCaseMatch(candidate, candidateParts, chunk, /*ignoreCase:*/ false) ? true\n : tryCamelCaseMatch(candidate, candidateParts, chunk, /*ignoreCase:*/ true) ? false : undefined;\n if (isCaseSensitive !== undefined) {\n return createPatternMatch(PatternMatchKind.camelCase, isCaseSensitive);\n }\n }\n }\n }\n function matchSegment(candidate, segment, stringToWordSpans) {\n // First check if the segment matches as is. This is also useful if the segment contains\n // characters we would normally strip when splitting into parts that we also may want to\n // match in the candidate. For example if the segment is \"@int\" and the candidate is\n // \"@int\", then that will show up as an exact match here.\n //\n // Note: if the segment contains a space or an asterisk then we must assume that it's a\n // multi-word segment.\n if (every(segment.totalTextChunk.text, function (ch) { return ch !== 32 /* space */ && ch !== 42 /* asterisk */; })) {\n var match = matchTextChunk(candidate, segment.totalTextChunk, stringToWordSpans);\n if (match)\n return match;\n }\n // The logic for pattern matching is now as follows:\n //\n // 1) Break the segment passed in into words. Breaking is rather simple and a\n // good way to think about it that if gives you all the individual alphanumeric words\n // of the pattern.\n //\n // 2) For each word try to match the word against the candidate value.\n //\n // 3) Matching is as follows:\n //\n // a) Check if the word is a prefix of the candidate, in a case insensitive or\n // sensitive manner. If it does, return that there was an exact match if the word and candidate are the same length, else a prefix match.\n //\n // If the word is entirely lowercase:\n // b) Then check if it is contained anywhere in the\n // candidate in a case insensitive manner. If so, return that there was a substring\n // match.\n //\n // Note: We only have a substring match if the lowercase part is prefix match of\n // some word part. That way we don't match something like 'Class' when the user\n // types 'a'. But we would match 'FooAttribute' (since 'Attribute' starts with\n // 'a').\n //\n // c) The word is all lower case. Is it a case insensitive substring of the candidate starting\n // on a part boundary of the candidate?\n //\n // Else:\n // d) If the word was not entirely lowercase, then check if it is contained in the\n // candidate in a case *sensitive* manner. If so, return that there was a substring\n // match.\n //\n // e) If the word was not entirely lowercase, then attempt a camel cased match as\n // well.\n //\n // Only if all words have some sort of match is the pattern considered matched.\n var subWordTextChunks = segment.subWordTextChunks;\n var bestMatch;\n for (var _i = 0, subWordTextChunks_1 = subWordTextChunks; _i < subWordTextChunks_1.length; _i++) {\n var subWordTextChunk = subWordTextChunks_1[_i];\n bestMatch = betterMatch(bestMatch, matchTextChunk(candidate, subWordTextChunk, stringToWordSpans));\n }\n return bestMatch;\n }\n function betterMatch(a, b) {\n return ts.min(a, b, compareMatches);\n }\n function compareMatches(a, b) {\n return a === undefined ? 1 /* GreaterThan */ : b === undefined ? -1 /* LessThan */\n : ts.compareValues(a.kind, b.kind) || ts.compareBooleans(!a.isCaseSensitive, !b.isCaseSensitive);\n }\n function partStartsWith(candidate, candidateSpan, pattern, ignoreCase, patternSpan) {\n if (patternSpan === void 0) { patternSpan = { start: 0, length: pattern.length }; }\n return patternSpan.length <= candidateSpan.length // If pattern part is longer than the candidate part there can never be a match.\n && everyInRange(0, patternSpan.length, function (i) { return equalChars(pattern.charCodeAt(patternSpan.start + i), candidate.charCodeAt(candidateSpan.start + i), ignoreCase); });\n }\n function equalChars(ch1, ch2, ignoreCase) {\n return ignoreCase ? toLowerCase(ch1) === toLowerCase(ch2) : ch1 === ch2;\n }\n function tryCamelCaseMatch(candidate, candidateParts, chunk, ignoreCase) {\n var chunkCharacterSpans = chunk.characterSpans;\n // Note: we may have more pattern parts than candidate parts. This is because multiple\n // pattern parts may match a candidate part. For example \"SiUI\" against \"SimpleUI\".\n // We'll have 3 pattern parts Si/U/I against two candidate parts Simple/UI. However, U\n // and I will both match in UI.\n var currentCandidate = 0;\n var currentChunkSpan = 0;\n var firstMatch;\n var contiguous;\n while (true) {\n // Let's consider our termination cases\n if (currentChunkSpan === chunkCharacterSpans.length) {\n return true;\n }\n else if (currentCandidate === candidateParts.length) {\n // No match, since we still have more of the pattern to hit\n return false;\n }\n var candidatePart = candidateParts[currentCandidate];\n var gotOneMatchThisCandidate = false;\n // Consider the case of matching SiUI against SimpleUIElement. The candidate parts\n // will be Simple/UI/Element, and the pattern parts will be Si/U/I. We'll match 'Si'\n // against 'Simple' first. Then we'll match 'U' against 'UI'. However, we want to\n // still keep matching pattern parts against that candidate part.\n for (; currentChunkSpan < chunkCharacterSpans.length; currentChunkSpan++) {\n var chunkCharacterSpan = chunkCharacterSpans[currentChunkSpan];\n if (gotOneMatchThisCandidate) {\n // We've already gotten one pattern part match in this candidate. We will\n // only continue trying to consumer pattern parts if the last part and this\n // part are both upper case.\n if (!isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan - 1].start)) ||\n !isUpperCaseLetter(chunk.text.charCodeAt(chunkCharacterSpans[currentChunkSpan].start))) {\n break;\n }\n }\n if (!partStartsWith(candidate, candidatePart, chunk.text, ignoreCase, chunkCharacterSpan)) {\n break;\n }\n gotOneMatchThisCandidate = true;\n firstMatch = firstMatch === undefined ? currentCandidate : firstMatch;\n // If we were contiguous, then keep that value. If we weren't, then keep that\n // value. If we don't know, then set the value to 'true' as an initial match is\n // obviously contiguous.\n contiguous = contiguous === undefined ? true : contiguous;\n candidatePart = ts.createTextSpan(candidatePart.start + chunkCharacterSpan.length, candidatePart.length - chunkCharacterSpan.length);\n }\n // Check if we matched anything at all. If we didn't, then we need to unset the\n // contiguous bit if we currently had it set.\n // If we haven't set the bit yet, then that means we haven't matched anything so\n // far, and we don't want to change that.\n if (!gotOneMatchThisCandidate && contiguous !== undefined) {\n contiguous = false;\n }\n // Move onto the next candidate.\n currentCandidate++;\n }\n }\n function createSegment(text) {\n return {\n totalTextChunk: createTextChunk(text),\n subWordTextChunks: breakPatternIntoTextChunks(text)\n };\n }\n function isUpperCaseLetter(ch) {\n // Fast check for the ascii range.\n if (ch >= 65 /* A */ && ch <= 90 /* Z */) {\n return true;\n }\n if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 99 /* Latest */)) {\n return false;\n }\n // TODO: find a way to determine this for any unicode characters in a\n // non-allocating manner.\n var str = String.fromCharCode(ch);\n return str === str.toUpperCase();\n }\n function isLowerCaseLetter(ch) {\n // Fast check for the ascii range.\n if (ch >= 97 /* a */ && ch <= 122 /* z */) {\n return true;\n }\n if (ch < 127 /* maxAsciiCharacter */ || !ts.isUnicodeIdentifierStart(ch, 99 /* Latest */)) {\n return false;\n }\n // TODO: find a way to determine this for any unicode characters in a\n // non-allocating manner.\n var str = String.fromCharCode(ch);\n return str === str.toLowerCase();\n }\n // Assumes 'value' is already lowercase.\n function indexOfIgnoringCase(str, value) {\n var n = str.length - value.length;\n var _loop_7 = function (start) {\n if (every(value, function (valueChar, i) { return toLowerCase(str.charCodeAt(i + start)) === valueChar; })) {\n return { value: start };\n }\n };\n for (var start = 0; start <= n; start++) {\n var state_2 = _loop_7(start);\n if (typeof state_2 === \"object\")\n return state_2.value;\n }\n return -1;\n }\n function toLowerCase(ch) {\n // Fast convert for the ascii range.\n if (ch >= 65 /* A */ && ch <= 90 /* Z */) {\n return 97 /* a */ + (ch - 65 /* A */);\n }\n if (ch < 127 /* maxAsciiCharacter */) {\n return ch;\n }\n // TODO: find a way to compute this for any unicode characters in a\n // non-allocating manner.\n return String.fromCharCode(ch).toLowerCase().charCodeAt(0);\n }\n function isDigit(ch) {\n // TODO(cyrusn): Find a way to support this for unicode digits.\n return ch >= 48 /* _0 */ && ch <= 57 /* _9 */;\n }\n function isWordChar(ch) {\n return isUpperCaseLetter(ch) || isLowerCaseLetter(ch) || isDigit(ch) || ch === 95 /* _ */ || ch === 36 /* $ */;\n }\n function breakPatternIntoTextChunks(pattern) {\n var result = [];\n var wordStart = 0;\n var wordLength = 0;\n for (var i = 0; i < pattern.length; i++) {\n var ch = pattern.charCodeAt(i);\n if (isWordChar(ch)) {\n if (wordLength === 0) {\n wordStart = i;\n }\n wordLength++;\n }\n else {\n if (wordLength > 0) {\n result.push(createTextChunk(pattern.substr(wordStart, wordLength)));\n wordLength = 0;\n }\n }\n }\n if (wordLength > 0) {\n result.push(createTextChunk(pattern.substr(wordStart, wordLength)));\n }\n return result;\n }\n function createTextChunk(text) {\n var textLowerCase = text.toLowerCase();\n return {\n text: text,\n textLowerCase: textLowerCase,\n isLowerCase: text === textLowerCase,\n characterSpans: breakIntoCharacterSpans(text)\n };\n }\n function breakIntoCharacterSpans(identifier) {\n return breakIntoSpans(identifier, /*word:*/ false);\n }\n ts.breakIntoCharacterSpans = breakIntoCharacterSpans;\n function breakIntoWordSpans(identifier) {\n return breakIntoSpans(identifier, /*word:*/ true);\n }\n ts.breakIntoWordSpans = breakIntoWordSpans;\n function breakIntoSpans(identifier, word) {\n var result = [];\n var wordStart = 0;\n for (var i = 1; i < identifier.length; i++) {\n var lastIsDigit = isDigit(identifier.charCodeAt(i - 1));\n var currentIsDigit = isDigit(identifier.charCodeAt(i));\n var hasTransitionFromLowerToUpper = transitionFromLowerToUpper(identifier, word, i);\n var hasTransitionFromUpperToLower = word && transitionFromUpperToLower(identifier, i, wordStart);\n if (charIsPunctuation(identifier.charCodeAt(i - 1)) ||\n charIsPunctuation(identifier.charCodeAt(i)) ||\n lastIsDigit !== currentIsDigit ||\n hasTransitionFromLowerToUpper ||\n hasTransitionFromUpperToLower) {\n if (!isAllPunctuation(identifier, wordStart, i)) {\n result.push(ts.createTextSpan(wordStart, i - wordStart));\n }\n wordStart = i;\n }\n }\n if (!isAllPunctuation(identifier, wordStart, identifier.length)) {\n result.push(ts.createTextSpan(wordStart, identifier.length - wordStart));\n }\n return result;\n }\n function charIsPunctuation(ch) {\n switch (ch) {\n case 33 /* exclamation */:\n case 34 /* doubleQuote */:\n case 35 /* hash */:\n case 37 /* percent */:\n case 38 /* ampersand */:\n case 39 /* singleQuote */:\n case 40 /* openParen */:\n case 41 /* closeParen */:\n case 42 /* asterisk */:\n case 44 /* comma */:\n case 45 /* minus */:\n case 46 /* dot */:\n case 47 /* slash */:\n case 58 /* colon */:\n case 59 /* semicolon */:\n case 63 /* question */:\n case 64 /* at */:\n case 91 /* openBracket */:\n case 92 /* backslash */:\n case 93 /* closeBracket */:\n case 95 /* _ */:\n case 123 /* openBrace */:\n case 125 /* closeBrace */:\n return true;\n }\n return false;\n }\n function isAllPunctuation(identifier, start, end) {\n return every(identifier, function (ch) { return charIsPunctuation(ch) && ch !== 95 /* _ */; }, start, end);\n }\n function transitionFromUpperToLower(identifier, index, wordStart) {\n // Cases this supports:\n // 1) IDisposable -> I, Disposable\n // 2) UIElement -> UI, Element\n // 3) HTMLDocument -> HTML, Document\n //\n // etc.\n // We have a transition from an upper to a lower letter here. But we only\n // want to break if all the letters that preceded are uppercase. i.e. if we\n // have \"Foo\" we don't want to break that into \"F, oo\". But if we have\n // \"IFoo\" or \"UIFoo\", then we want to break that into \"I, Foo\" and \"UI,\n // Foo\". i.e. the last uppercase letter belongs to the lowercase letters\n // that follows. Note: this will make the following not split properly:\n // \"HELLOthere\". However, these sorts of names do not show up in .Net\n // programs.\n return index !== wordStart\n && index + 1 < identifier.length\n && isUpperCaseLetter(identifier.charCodeAt(index))\n && isLowerCaseLetter(identifier.charCodeAt(index + 1))\n && every(identifier, isUpperCaseLetter, wordStart, index);\n }\n function transitionFromLowerToUpper(identifier, word, index) {\n var lastIsUpper = isUpperCaseLetter(identifier.charCodeAt(index - 1));\n var currentIsUpper = isUpperCaseLetter(identifier.charCodeAt(index));\n // See if the casing indicates we're starting a new word. Note: if we're breaking on\n // words, then just seeing an upper case character isn't enough. Instead, it has to\n // be uppercase and the previous character can't be uppercase.\n //\n // For example, breaking \"AddMetadata\" on words would make: Add Metadata\n //\n // on characters would be: A dd M etadata\n //\n // Break \"AM\" on words would be: AM\n //\n // on characters would be: A M\n //\n // We break the search string on characters. But we break the symbol name on words.\n return currentIsUpper && (!word || !lastIsUpper);\n }\n function everyInRange(start, end, pred) {\n for (var i = start; i < end; i++) {\n if (!pred(i)) {\n return false;\n }\n }\n return true;\n }\n function every(s, pred, start, end) {\n if (start === void 0) { start = 0; }\n if (end === void 0) { end = s.length; }\n return everyInRange(start, end, function (i) { return pred(s.charCodeAt(i), i); });\n }\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n function preProcessFile(sourceText, readImportFiles, detectJavaScriptImports) {\n if (readImportFiles === void 0) { readImportFiles = true; }\n if (detectJavaScriptImports === void 0) { detectJavaScriptImports = false; }\n var pragmaContext = {\n languageVersion: 1 /* ES5 */,\n pragmas: undefined,\n checkJsDirective: undefined,\n referencedFiles: [],\n typeReferenceDirectives: [],\n libReferenceDirectives: [],\n amdDependencies: [],\n hasNoDefaultLib: undefined,\n moduleName: undefined\n };\n var importedFiles = [];\n var ambientExternalModules;\n var lastToken;\n var currentToken;\n var braceNesting = 0;\n // assume that text represent an external module if it contains at least one top level import/export\n // ambient modules that are found inside external modules are interpreted as module augmentations\n var externalModule = false;\n function nextToken() {\n lastToken = currentToken;\n currentToken = ts.scanner.scan();\n if (currentToken === 18 /* OpenBraceToken */) {\n braceNesting++;\n }\n else if (currentToken === 19 /* CloseBraceToken */) {\n braceNesting--;\n }\n return currentToken;\n }\n function getFileReference() {\n var fileName = ts.scanner.getTokenValue();\n var pos = ts.scanner.getTokenPos();\n return { fileName: fileName, pos: pos, end: pos + fileName.length };\n }\n function recordAmbientExternalModule() {\n if (!ambientExternalModules) {\n ambientExternalModules = [];\n }\n ambientExternalModules.push({ ref: getFileReference(), depth: braceNesting });\n }\n function recordModuleName() {\n importedFiles.push(getFileReference());\n markAsExternalModuleIfTopLevel();\n }\n function markAsExternalModuleIfTopLevel() {\n if (braceNesting === 0) {\n externalModule = true;\n }\n }\n /**\n * Returns true if at least one token was consumed from the stream\n */\n function tryConsumeDeclare() {\n var token = ts.scanner.getToken();\n if (token === 134 /* DeclareKeyword */) {\n // declare module \"mod\"\n token = nextToken();\n if (token === 140 /* ModuleKeyword */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */) {\n recordAmbientExternalModule();\n }\n }\n return true;\n }\n return false;\n }\n /**\n * Returns true if at least one token was consumed from the stream\n */\n function tryConsumeImport() {\n if (lastToken === 24 /* DotToken */) {\n return false;\n }\n var token = ts.scanner.getToken();\n if (token === 100 /* ImportKeyword */) {\n token = nextToken();\n if (token === 20 /* OpenParenToken */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */ || token === 14 /* NoSubstitutionTemplateLiteral */) {\n // import(\"mod\");\n recordModuleName();\n return true;\n }\n }\n else if (token === 10 /* StringLiteral */) {\n // import \"mod\";\n recordModuleName();\n return true;\n }\n else {\n if (token === 150 /* TypeKeyword */) {\n var skipTypeKeyword = ts.scanner.lookAhead(function () {\n var token = ts.scanner.scan();\n return token !== 154 /* FromKeyword */ && (token === 41 /* AsteriskToken */ ||\n token === 18 /* OpenBraceToken */ ||\n token === 79 /* Identifier */ ||\n ts.isKeyword(token));\n });\n if (skipTypeKeyword) {\n token = nextToken();\n }\n }\n if (token === 79 /* Identifier */ || ts.isKeyword(token)) {\n token = nextToken();\n if (token === 154 /* FromKeyword */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */) {\n // import d from \"mod\";\n recordModuleName();\n return true;\n }\n }\n else if (token === 63 /* EqualsToken */) {\n if (tryConsumeRequireCall(/*skipCurrentToken*/ true)) {\n return true;\n }\n }\n else if (token === 27 /* CommaToken */) {\n // consume comma and keep going\n token = nextToken();\n }\n else {\n // unknown syntax\n return true;\n }\n }\n if (token === 18 /* OpenBraceToken */) {\n token = nextToken();\n // consume \"{ a as B, c, d as D}\" clauses\n // make sure that it stops on EOF\n while (token !== 19 /* CloseBraceToken */ && token !== 1 /* EndOfFileToken */) {\n token = nextToken();\n }\n if (token === 19 /* CloseBraceToken */) {\n token = nextToken();\n if (token === 154 /* FromKeyword */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */) {\n // import {a as A} from \"mod\";\n // import d, {a, b as B} from \"mod\"\n recordModuleName();\n }\n }\n }\n }\n else if (token === 41 /* AsteriskToken */) {\n token = nextToken();\n if (token === 127 /* AsKeyword */) {\n token = nextToken();\n if (token === 79 /* Identifier */ || ts.isKeyword(token)) {\n token = nextToken();\n if (token === 154 /* FromKeyword */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */) {\n // import * as NS from \"mod\"\n // import d, * as NS from \"mod\"\n recordModuleName();\n }\n }\n }\n }\n }\n }\n return true;\n }\n return false;\n }\n function tryConsumeExport() {\n var token = ts.scanner.getToken();\n if (token === 93 /* ExportKeyword */) {\n markAsExternalModuleIfTopLevel();\n token = nextToken();\n if (token === 150 /* TypeKeyword */) {\n var skipTypeKeyword = ts.scanner.lookAhead(function () {\n var token = ts.scanner.scan();\n return token === 41 /* AsteriskToken */ ||\n token === 18 /* OpenBraceToken */;\n });\n if (skipTypeKeyword) {\n token = nextToken();\n }\n }\n if (token === 18 /* OpenBraceToken */) {\n token = nextToken();\n // consume \"{ a as B, c, d as D}\" clauses\n // make sure it stops on EOF\n while (token !== 19 /* CloseBraceToken */ && token !== 1 /* EndOfFileToken */) {\n token = nextToken();\n }\n if (token === 19 /* CloseBraceToken */) {\n token = nextToken();\n if (token === 154 /* FromKeyword */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */) {\n // export {a as A} from \"mod\";\n // export {a, b as B} from \"mod\"\n recordModuleName();\n }\n }\n }\n }\n else if (token === 41 /* AsteriskToken */) {\n token = nextToken();\n if (token === 154 /* FromKeyword */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */) {\n // export * from \"mod\"\n recordModuleName();\n }\n }\n }\n else if (token === 100 /* ImportKeyword */) {\n token = nextToken();\n if (token === 150 /* TypeKeyword */) {\n var skipTypeKeyword = ts.scanner.lookAhead(function () {\n var token = ts.scanner.scan();\n return token === 79 /* Identifier */ ||\n ts.isKeyword(token);\n });\n if (skipTypeKeyword) {\n token = nextToken();\n }\n }\n if (token === 79 /* Identifier */ || ts.isKeyword(token)) {\n token = nextToken();\n if (token === 63 /* EqualsToken */) {\n if (tryConsumeRequireCall(/*skipCurrentToken*/ true)) {\n return true;\n }\n }\n }\n }\n return true;\n }\n return false;\n }\n function tryConsumeRequireCall(skipCurrentToken, allowTemplateLiterals) {\n if (allowTemplateLiterals === void 0) { allowTemplateLiterals = false; }\n var token = skipCurrentToken ? nextToken() : ts.scanner.getToken();\n if (token === 144 /* RequireKeyword */) {\n token = nextToken();\n if (token === 20 /* OpenParenToken */) {\n token = nextToken();\n if (token === 10 /* StringLiteral */ ||\n allowTemplateLiterals && token === 14 /* NoSubstitutionTemplateLiteral */) {\n // require(\"mod\");\n recordModuleName();\n }\n }\n return true;\n }\n return false;\n }\n function tryConsumeDefine() {\n var token = ts.scanner.getToken();\n if (token === 79 /* Identifier */ && ts.scanner.getTokenValue() === \"define\") {\n token = nextToken();\n if (token !== 20 /* OpenParenToken */) {\n return true;\n }\n token = nextToken();\n if (token === 10 /* StringLiteral */ || token === 14 /* NoSubstitutionTemplateLiteral */) {\n // looks like define (\"modname\", ... - skip string literal and comma\n token = nextToken();\n if (token === 27 /* CommaToken */) {\n token = nextToken();\n }\n else {\n // unexpected token\n return true;\n }\n }\n // should be start of dependency list\n if (token !== 22 /* OpenBracketToken */) {\n return true;\n }\n // skip open bracket\n token = nextToken();\n // scan until ']' or EOF\n while (token !== 23 /* CloseBracketToken */ && token !== 1 /* EndOfFileToken */) {\n // record string literals as module names\n if (token === 10 /* StringLiteral */ || token === 14 /* NoSubstitutionTemplateLiteral */) {\n recordModuleName();\n }\n token = nextToken();\n }\n return true;\n }\n return false;\n }\n function processImports() {\n ts.scanner.setText(sourceText);\n nextToken();\n // Look for:\n // import \"mod\";\n // import d from \"mod\"\n // import {a as A } from \"mod\";\n // import * as NS from \"mod\"\n // import d, {a, b as B} from \"mod\"\n // import i = require(\"mod\");\n // import(\"mod\");\n // export * from \"mod\"\n // export {a as b} from \"mod\"\n // export import i = require(\"mod\")\n // (for JavaScript files) require(\"mod\")\n // Do not look for:\n // AnySymbol.import(\"mod\")\n // AnySymbol.nested.import(\"mod\")\n while (true) {\n if (ts.scanner.getToken() === 1 /* EndOfFileToken */) {\n break;\n }\n // check if at least one of alternative have moved scanner forward\n if (tryConsumeDeclare() ||\n tryConsumeImport() ||\n tryConsumeExport() ||\n (detectJavaScriptImports && (tryConsumeRequireCall(/*skipCurrentToken*/ false, /*allowTemplateLiterals*/ true) ||\n tryConsumeDefine()))) {\n continue;\n }\n else {\n nextToken();\n }\n }\n ts.scanner.setText(undefined);\n }\n if (readImportFiles) {\n processImports();\n }\n ts.processCommentPragmas(pragmaContext, sourceText);\n ts.processPragmasIntoFields(pragmaContext, ts.noop);\n if (externalModule) {\n // for external modules module all nested ambient modules are augmentations\n if (ambientExternalModules) {\n // move all detected ambient modules to imported files since they need to be resolved\n for (var _i = 0, ambientExternalModules_1 = ambientExternalModules; _i < ambientExternalModules_1.length; _i++) {\n var decl = ambientExternalModules_1[_i];\n importedFiles.push(decl.ref);\n }\n }\n return { referencedFiles: pragmaContext.referencedFiles, typeReferenceDirectives: pragmaContext.typeReferenceDirectives, libReferenceDirectives: pragmaContext.libReferenceDirectives, importedFiles: importedFiles, isLibFile: !!pragmaContext.hasNoDefaultLib, ambientExternalModules: undefined };\n }\n else {\n // for global scripts ambient modules still can have augmentations - look for ambient modules with depth > 0\n var ambientModuleNames = void 0;\n if (ambientExternalModules) {\n for (var _a = 0, ambientExternalModules_2 = ambientExternalModules; _a < ambientExternalModules_2.length; _a++) {\n var decl = ambientExternalModules_2[_a];\n if (decl.depth === 0) {\n if (!ambientModuleNames) {\n ambientModuleNames = [];\n }\n ambientModuleNames.push(decl.ref.fileName);\n }\n else {\n importedFiles.push(decl.ref);\n }\n }\n }\n return { referencedFiles: pragmaContext.referencedFiles, typeReferenceDirectives: pragmaContext.typeReferenceDirectives, libReferenceDirectives: pragmaContext.libReferenceDirectives, importedFiles: importedFiles, isLibFile: !!pragmaContext.hasNoDefaultLib, ambientExternalModules: ambientModuleNames };\n }\n }\n ts.preProcessFile = preProcessFile;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var Rename;\n (function (Rename) {\n function getRenameInfo(program, sourceFile, position, options) {\n var node = ts.getAdjustedRenameLocation(ts.getTouchingPropertyName(sourceFile, position));\n if (nodeIsEligibleForRename(node)) {\n var renameInfo = getRenameInfoForNode(node, program.getTypeChecker(), sourceFile, program, options);\n if (renameInfo) {\n return renameInfo;\n }\n }\n return getRenameInfoError(ts.Diagnostics.You_cannot_rename_this_element);\n }\n Rename.getRenameInfo = getRenameInfo;\n function getRenameInfoForNode(node, typeChecker, sourceFile, program, options) {\n var symbol = typeChecker.getSymbolAtLocation(node);\n if (!symbol) {\n if (ts.isStringLiteralLike(node)) {\n var type = ts.getContextualTypeOrAncestorTypeNodeType(node, typeChecker);\n if (type && ((type.flags & 128 /* StringLiteral */) || ((type.flags & 1048576 /* Union */) && ts.every(type.types, function (type) { return !!(type.flags & 128 /* StringLiteral */); })))) {\n return getRenameInfoSuccess(node.text, node.text, \"string\" /* string */, \"\", node, sourceFile);\n }\n }\n else if (ts.isLabelName(node)) {\n var name = ts.getTextOfNode(node);\n return getRenameInfoSuccess(name, name, \"label\" /* label */, \"\" /* none */, node, sourceFile);\n }\n return undefined;\n }\n // Only allow a symbol to be renamed if it actually has at least one declaration.\n var declarations = symbol.declarations;\n if (!declarations || declarations.length === 0)\n return;\n // Disallow rename for elements that are defined in the standard TypeScript library.\n if (declarations.some(function (declaration) { return isDefinedInLibraryFile(program, declaration); })) {\n return getRenameInfoError(ts.Diagnostics.You_cannot_rename_elements_that_are_defined_in_the_standard_TypeScript_library);\n }\n // Cannot rename `default` as in `import { default as foo } from \"./someModule\";\n if (ts.isIdentifier(node) && node.originalKeywordKind === 88 /* DefaultKeyword */ && symbol.parent && symbol.parent.flags & 1536 /* Module */) {\n return undefined;\n }\n if (ts.isStringLiteralLike(node) && ts.tryGetImportFromModuleSpecifier(node)) {\n return options && options.allowRenameOfImportPath ? getRenameInfoForModule(node, sourceFile, symbol) : undefined;\n }\n var kind = ts.SymbolDisplay.getSymbolKind(typeChecker, symbol, node);\n var specifierName = (ts.isImportOrExportSpecifierName(node) || ts.isStringOrNumericLiteralLike(node) && node.parent.kind === 160 /* ComputedPropertyName */)\n ? ts.stripQuotes(ts.getTextOfIdentifierOrLiteral(node))\n : undefined;\n var displayName = specifierName || typeChecker.symbolToString(symbol);\n var fullDisplayName = specifierName || typeChecker.getFullyQualifiedName(symbol);\n return getRenameInfoSuccess(displayName, fullDisplayName, kind, ts.SymbolDisplay.getSymbolModifiers(typeChecker, symbol), node, sourceFile);\n }\n function isDefinedInLibraryFile(program, declaration) {\n var sourceFile = declaration.getSourceFile();\n return program.isSourceFileDefaultLibrary(sourceFile) && ts.fileExtensionIs(sourceFile.fileName, \".d.ts\" /* Dts */);\n }\n function getRenameInfoForModule(node, sourceFile, moduleSymbol) {\n if (!ts.isExternalModuleNameRelative(node.text)) {\n return getRenameInfoError(ts.Diagnostics.You_cannot_rename_a_module_via_a_global_import);\n }\n var moduleSourceFile = moduleSymbol.declarations && ts.find(moduleSymbol.declarations, ts.isSourceFile);\n if (!moduleSourceFile)\n return undefined;\n var withoutIndex = ts.endsWith(node.text, \"/index\") || ts.endsWith(node.text, \"/index.js\") ? undefined : ts.tryRemoveSuffix(ts.removeFileExtension(moduleSourceFile.fileName), \"/index\");\n var name = withoutIndex === undefined ? moduleSourceFile.fileName : withoutIndex;\n var kind = withoutIndex === undefined ? \"module\" /* moduleElement */ : \"directory\" /* directory */;\n var indexAfterLastSlash = node.text.lastIndexOf(\"/\") + 1;\n // Span should only be the last component of the path. + 1 to account for the quote character.\n var triggerSpan = ts.createTextSpan(node.getStart(sourceFile) + 1 + indexAfterLastSlash, node.text.length - indexAfterLastSlash);\n return {\n canRename: true,\n fileToRename: name,\n kind: kind,\n displayName: name,\n fullDisplayName: name,\n kindModifiers: \"\" /* none */,\n triggerSpan: triggerSpan,\n };\n }\n function getRenameInfoSuccess(displayName, fullDisplayName, kind, kindModifiers, node, sourceFile) {\n return {\n canRename: true,\n fileToRename: undefined,\n kind: kind,\n displayName: displayName,\n fullDisplayName: fullDisplayName,\n kindModifiers: kindModifiers,\n triggerSpan: createTriggerSpanForNode(node, sourceFile)\n };\n }\n function getRenameInfoError(diagnostic) {\n return { canRename: false, localizedErrorMessage: ts.getLocaleSpecificMessage(diagnostic) };\n }\n function createTriggerSpanForNode(node, sourceFile) {\n var start = node.getStart(sourceFile);\n var width = node.getWidth(sourceFile);\n if (ts.isStringLiteralLike(node)) {\n // Exclude the quotes\n start += 1;\n width -= 2;\n }\n return ts.createTextSpan(start, width);\n }\n function nodeIsEligibleForRename(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n case 80 /* PrivateIdentifier */:\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 108 /* ThisKeyword */:\n return true;\n case 8 /* NumericLiteral */:\n return ts.isLiteralNameOfPropertyDeclarationOrIndexAccess(node);\n default:\n return false;\n }\n }\n })(Rename = ts.Rename || (ts.Rename = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var SmartSelectionRange;\n (function (SmartSelectionRange) {\n function getSmartSelectionRange(pos, sourceFile) {\n var _a;\n var selectionRange = {\n textSpan: ts.createTextSpanFromBounds(sourceFile.getFullStart(), sourceFile.getEnd())\n };\n var parentNode = sourceFile;\n outer: while (true) {\n var children = getSelectionChildren(parentNode);\n if (!children.length)\n break;\n for (var i = 0; i < children.length; i++) {\n var prevNode = children[i - 1];\n var node = children[i];\n var nextNode = children[i + 1];\n if (ts.getTokenPosOfNode(node, sourceFile, /*includeJsDoc*/ true) > pos) {\n break outer;\n }\n var comment = ts.singleOrUndefined(ts.getTrailingCommentRanges(sourceFile.text, node.end));\n if (comment && comment.kind === 2 /* SingleLineCommentTrivia */) {\n pushSelectionCommentRange(comment.pos, comment.end);\n }\n if (positionShouldSnapToNode(sourceFile, pos, node)) {\n // 1. Blocks are effectively redundant with SyntaxLists.\n // 2. TemplateSpans, along with the SyntaxLists containing them, are a somewhat unintuitive grouping\n // of things that should be considered independently.\n // 3. A VariableStatement’s children are just a VaraiableDeclarationList and a semicolon.\n // 4. A lone VariableDeclaration in a VaraibleDeclaration feels redundant with the VariableStatement.\n // Dive in without pushing a selection range.\n if (ts.isBlock(node)\n || ts.isTemplateSpan(node) || ts.isTemplateHead(node) || ts.isTemplateTail(node)\n || prevNode && ts.isTemplateHead(prevNode)\n || ts.isVariableDeclarationList(node) && ts.isVariableStatement(parentNode)\n || ts.isSyntaxList(node) && ts.isVariableDeclarationList(parentNode)\n || ts.isVariableDeclaration(node) && ts.isSyntaxList(parentNode) && children.length === 1\n || ts.isJSDocTypeExpression(node) || ts.isJSDocSignature(node) || ts.isJSDocTypeLiteral(node)) {\n parentNode = node;\n break;\n }\n // Synthesize a stop for '${ ... }' since '${' and '}' actually belong to siblings.\n if (ts.isTemplateSpan(parentNode) && nextNode && ts.isTemplateMiddleOrTemplateTail(nextNode)) {\n var start_1 = node.getFullStart() - \"${\".length;\n var end_2 = nextNode.getStart() + \"}\".length;\n pushSelectionRange(start_1, end_2);\n }\n // Blocks with braces, brackets, parens, or JSX tags on separate lines should be\n // selected from open to close, including whitespace but not including the braces/etc. themselves.\n var isBetweenMultiLineBookends = ts.isSyntaxList(node) && isListOpener(prevNode) && isListCloser(nextNode)\n && !ts.positionsAreOnSameLine(prevNode.getStart(), nextNode.getStart(), sourceFile);\n var start = isBetweenMultiLineBookends ? prevNode.getEnd() : node.getStart();\n var end = isBetweenMultiLineBookends ? nextNode.getStart() : getEndPos(sourceFile, node);\n if (ts.hasJSDocNodes(node) && ((_a = node.jsDoc) === null || _a === void 0 ? void 0 : _a.length)) {\n pushSelectionRange(ts.first(node.jsDoc).getStart(), end);\n }\n pushSelectionRange(start, end);\n // String literals should have a stop both inside and outside their quotes.\n if (ts.isStringLiteral(node) || ts.isTemplateLiteral(node)) {\n pushSelectionRange(start + 1, end - 1);\n }\n parentNode = node;\n break;\n }\n // If we made it to the end of the for loop, we’re done.\n // In practice, I’ve only seen this happen at the very end\n // of a SourceFile.\n if (i === children.length - 1) {\n break outer;\n }\n }\n }\n return selectionRange;\n function pushSelectionRange(start, end) {\n // Skip empty ranges\n if (start !== end) {\n var textSpan = ts.createTextSpanFromBounds(start, end);\n if (!selectionRange || (\n // Skip ranges that are identical to the parent\n !ts.textSpansEqual(textSpan, selectionRange.textSpan) &&\n // Skip ranges that don’t contain the original position\n ts.textSpanIntersectsWithPosition(textSpan, pos))) {\n selectionRange = __assign({ textSpan: textSpan }, selectionRange && { parent: selectionRange });\n }\n }\n }\n function pushSelectionCommentRange(start, end) {\n pushSelectionRange(start, end);\n var pos = start;\n while (sourceFile.text.charCodeAt(pos) === 47 /* slash */) {\n pos++;\n }\n pushSelectionRange(pos, end);\n }\n }\n SmartSelectionRange.getSmartSelectionRange = getSmartSelectionRange;\n /**\n * Like `ts.positionBelongsToNode`, except positions immediately after nodes\n * count too, unless that position belongs to the next node. In effect, makes\n * selections able to snap to preceding tokens when the cursor is on the tail\n * end of them with only whitespace ahead.\n * @param sourceFile The source file containing the nodes.\n * @param pos The position to check.\n * @param node The candidate node to snap to.\n */\n function positionShouldSnapToNode(sourceFile, pos, node) {\n // Can’t use 'ts.positionBelongsToNode()' here because it cleverly accounts\n // for missing nodes, which can’t really be considered when deciding what\n // to select.\n ts.Debug.assert(node.pos <= pos);\n if (pos < node.end) {\n return true;\n }\n var nodeEnd = node.getEnd();\n if (nodeEnd === pos) {\n return ts.getTouchingPropertyName(sourceFile, pos).pos < node.end;\n }\n return false;\n }\n var isImport = ts.or(ts.isImportDeclaration, ts.isImportEqualsDeclaration);\n /**\n * Gets the children of a node to be considered for selection ranging,\n * transforming them into an artificial tree according to their intuitive\n * grouping where no grouping actually exists in the parse tree. For example,\n * top-level imports are grouped into their own SyntaxList so they can be\n * selected all together, even though in the AST they’re just siblings of each\n * other as well as of other top-level statements and declarations.\n */\n function getSelectionChildren(node) {\n // Group top-level imports\n if (ts.isSourceFile(node)) {\n return groupChildren(node.getChildAt(0).getChildren(), isImport);\n }\n // Mapped types _look_ like ObjectTypes with a single member,\n // but in fact don’t contain a SyntaxList or a node containing\n // the “key/value” pair like ObjectTypes do, but it seems intuitive\n // that the selection would snap to those points. The philosophy\n // of choosing a selection range is not so much about what the\n // syntax currently _is_ as what the syntax might easily become\n // if the user is making a selection; e.g., we synthesize a selection\n // around the “key/value” pair not because there’s a node there, but\n // because it allows the mapped type to become an object type with a\n // few keystrokes.\n if (ts.isMappedTypeNode(node)) {\n var _a = node.getChildren(), openBraceToken = _a[0], children = _a.slice(1);\n var closeBraceToken = ts.Debug.checkDefined(children.pop());\n ts.Debug.assertEqual(openBraceToken.kind, 18 /* OpenBraceToken */);\n ts.Debug.assertEqual(closeBraceToken.kind, 19 /* CloseBraceToken */);\n // Group `-/+readonly` and `-/+?`\n var groupedWithPlusMinusTokens = groupChildren(children, function (child) {\n return child === node.readonlyToken || child.kind === 143 /* ReadonlyKeyword */ ||\n child === node.questionToken || child.kind === 57 /* QuestionToken */;\n });\n // Group type parameter with surrounding brackets\n var groupedWithBrackets = groupChildren(groupedWithPlusMinusTokens, function (_a) {\n var kind = _a.kind;\n return kind === 22 /* OpenBracketToken */ ||\n kind === 161 /* TypeParameter */ ||\n kind === 23 /* CloseBracketToken */;\n });\n return [\n openBraceToken,\n // Pivot on `:`\n createSyntaxList(splitChildren(groupedWithBrackets, function (_a) {\n var kind = _a.kind;\n return kind === 58 /* ColonToken */;\n })),\n closeBraceToken,\n ];\n }\n // Group modifiers and property name, then pivot on `:`.\n if (ts.isPropertySignature(node)) {\n var children = groupChildren(node.getChildren(), function (child) {\n return child === node.name || ts.contains(node.modifiers, child);\n });\n return splitChildren(children, function (_a) {\n var kind = _a.kind;\n return kind === 58 /* ColonToken */;\n });\n }\n // Group the parameter name with its `...`, then that group with its `?`, then pivot on `=`.\n if (ts.isParameter(node)) {\n var groupedDotDotDotAndName_1 = groupChildren(node.getChildren(), function (child) {\n return child === node.dotDotDotToken || child === node.name;\n });\n var groupedWithQuestionToken = groupChildren(groupedDotDotDotAndName_1, function (child) {\n return child === groupedDotDotDotAndName_1[0] || child === node.questionToken;\n });\n return splitChildren(groupedWithQuestionToken, function (_a) {\n var kind = _a.kind;\n return kind === 63 /* EqualsToken */;\n });\n }\n // Pivot on '='\n if (ts.isBindingElement(node)) {\n return splitChildren(node.getChildren(), function (_a) {\n var kind = _a.kind;\n return kind === 63 /* EqualsToken */;\n });\n }\n return node.getChildren();\n }\n /**\n * Groups sibling nodes together into their own SyntaxList if they\n * a) are adjacent, AND b) match a predicate function.\n */\n function groupChildren(children, groupOn) {\n var result = [];\n var group;\n for (var _i = 0, children_1 = children; _i < children_1.length; _i++) {\n var child = children_1[_i];\n if (groupOn(child)) {\n group = group || [];\n group.push(child);\n }\n else {\n if (group) {\n result.push(createSyntaxList(group));\n group = undefined;\n }\n result.push(child);\n }\n }\n if (group) {\n result.push(createSyntaxList(group));\n }\n return result;\n }\n /**\n * Splits sibling nodes into up to four partitions:\n * 1) everything left of the first node matched by `pivotOn`,\n * 2) the first node matched by `pivotOn`,\n * 3) everything right of the first node matched by `pivotOn`,\n * 4) a trailing semicolon, if `separateTrailingSemicolon` is enabled.\n * The left and right groups, if not empty, will each be grouped into their own containing SyntaxList.\n * @param children The sibling nodes to split.\n * @param pivotOn The predicate function to match the node to be the pivot. The first node that matches\n * the predicate will be used; any others that may match will be included into the right-hand group.\n * @param separateTrailingSemicolon If the last token is a semicolon, it will be returned as a separate\n * child rather than be included in the right-hand group.\n */\n function splitChildren(children, pivotOn, separateTrailingSemicolon) {\n if (separateTrailingSemicolon === void 0) { separateTrailingSemicolon = true; }\n if (children.length < 2) {\n return children;\n }\n var splitTokenIndex = ts.findIndex(children, pivotOn);\n if (splitTokenIndex === -1) {\n return children;\n }\n var leftChildren = children.slice(0, splitTokenIndex);\n var splitToken = children[splitTokenIndex];\n var lastToken = ts.last(children);\n var separateLastToken = separateTrailingSemicolon && lastToken.kind === 26 /* SemicolonToken */;\n var rightChildren = children.slice(splitTokenIndex + 1, separateLastToken ? children.length - 1 : undefined);\n var result = ts.compact([\n leftChildren.length ? createSyntaxList(leftChildren) : undefined,\n splitToken,\n rightChildren.length ? createSyntaxList(rightChildren) : undefined,\n ]);\n return separateLastToken ? result.concat(lastToken) : result;\n }\n function createSyntaxList(children) {\n ts.Debug.assertGreaterThanOrEqual(children.length, 1);\n return ts.setTextRangePosEnd(ts.parseNodeFactory.createSyntaxList(children), children[0].pos, ts.last(children).end);\n }\n function isListOpener(token) {\n var kind = token && token.kind;\n return kind === 18 /* OpenBraceToken */\n || kind === 22 /* OpenBracketToken */\n || kind === 20 /* OpenParenToken */\n || kind === 278 /* JsxOpeningElement */;\n }\n function isListCloser(token) {\n var kind = token && token.kind;\n return kind === 19 /* CloseBraceToken */\n || kind === 23 /* CloseBracketToken */\n || kind === 21 /* CloseParenToken */\n || kind === 279 /* JsxClosingElement */;\n }\n function getEndPos(sourceFile, node) {\n switch (node.kind) {\n case 335 /* JSDocParameterTag */:\n case 333 /* JSDocCallbackTag */:\n case 342 /* JSDocPropertyTag */:\n case 340 /* JSDocTypedefTag */:\n case 337 /* JSDocThisTag */:\n return sourceFile.getLineEndOfPosition(node.getStart());\n default:\n return node.getEnd();\n }\n }\n })(SmartSelectionRange = ts.SmartSelectionRange || (ts.SmartSelectionRange = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var SignatureHelp;\n (function (SignatureHelp) {\n var InvocationKind;\n (function (InvocationKind) {\n InvocationKind[InvocationKind[\"Call\"] = 0] = \"Call\";\n InvocationKind[InvocationKind[\"TypeArgs\"] = 1] = \"TypeArgs\";\n InvocationKind[InvocationKind[\"Contextual\"] = 2] = \"Contextual\";\n })(InvocationKind || (InvocationKind = {}));\n function getSignatureHelpItems(program, sourceFile, position, triggerReason, cancellationToken) {\n var typeChecker = program.getTypeChecker();\n // Decide whether to show signature help\n var startingToken = ts.findTokenOnLeftOfPosition(sourceFile, position);\n if (!startingToken) {\n // We are at the beginning of the file\n return undefined;\n }\n // Only need to be careful if the user typed a character and signature help wasn't showing.\n var onlyUseSyntacticOwners = !!triggerReason && triggerReason.kind === \"characterTyped\";\n // Bail out quickly in the middle of a string or comment, don't provide signature help unless the user explicitly requested it.\n if (onlyUseSyntacticOwners && (ts.isInString(sourceFile, position, startingToken) || ts.isInComment(sourceFile, position))) {\n return undefined;\n }\n var isManuallyInvoked = !!triggerReason && triggerReason.kind === \"invoked\";\n var argumentInfo = getContainingArgumentInfo(startingToken, position, sourceFile, typeChecker, isManuallyInvoked);\n if (!argumentInfo)\n return undefined;\n cancellationToken.throwIfCancellationRequested();\n // Extra syntactic and semantic filtering of signature help\n var candidateInfo = getCandidateOrTypeInfo(argumentInfo, typeChecker, sourceFile, startingToken, onlyUseSyntacticOwners);\n cancellationToken.throwIfCancellationRequested();\n if (!candidateInfo) {\n // We didn't have any sig help items produced by the TS compiler. If this is a JS\n // file, then see if we can figure out anything better.\n return ts.isSourceFileJS(sourceFile) ? createJSSignatureHelpItems(argumentInfo, program, cancellationToken) : undefined;\n }\n return typeChecker.runWithCancellationToken(cancellationToken, function (typeChecker) {\n return candidateInfo.kind === 0 /* Candidate */\n ? createSignatureHelpItems(candidateInfo.candidates, candidateInfo.resolvedSignature, argumentInfo, sourceFile, typeChecker)\n : createTypeHelpItems(candidateInfo.symbol, argumentInfo, sourceFile, typeChecker);\n });\n }\n SignatureHelp.getSignatureHelpItems = getSignatureHelpItems;\n var CandidateOrTypeKind;\n (function (CandidateOrTypeKind) {\n CandidateOrTypeKind[CandidateOrTypeKind[\"Candidate\"] = 0] = \"Candidate\";\n CandidateOrTypeKind[CandidateOrTypeKind[\"Type\"] = 1] = \"Type\";\n })(CandidateOrTypeKind || (CandidateOrTypeKind = {}));\n function getCandidateOrTypeInfo(_a, checker, sourceFile, startingToken, onlyUseSyntacticOwners) {\n var invocation = _a.invocation, argumentCount = _a.argumentCount;\n switch (invocation.kind) {\n case 0 /* Call */: {\n if (onlyUseSyntacticOwners && !isSyntacticOwner(startingToken, invocation.node, sourceFile)) {\n return undefined;\n }\n var candidates = [];\n var resolvedSignature = checker.getResolvedSignatureForSignatureHelp(invocation.node, candidates, argumentCount); // TODO: GH#18217\n return candidates.length === 0 ? undefined : { kind: 0 /* Candidate */, candidates: candidates, resolvedSignature: resolvedSignature };\n }\n case 1 /* TypeArgs */: {\n var called = invocation.called;\n if (onlyUseSyntacticOwners && !containsPrecedingToken(startingToken, sourceFile, ts.isIdentifier(called) ? called.parent : called)) {\n return undefined;\n }\n var candidates = ts.getPossibleGenericSignatures(called, argumentCount, checker);\n if (candidates.length !== 0)\n return { kind: 0 /* Candidate */, candidates: candidates, resolvedSignature: ts.first(candidates) };\n var symbol = checker.getSymbolAtLocation(called);\n return symbol && { kind: 1 /* Type */, symbol: symbol };\n }\n case 2 /* Contextual */:\n return { kind: 0 /* Candidate */, candidates: [invocation.signature], resolvedSignature: invocation.signature };\n default:\n return ts.Debug.assertNever(invocation);\n }\n }\n function isSyntacticOwner(startingToken, node, sourceFile) {\n if (!ts.isCallOrNewExpression(node))\n return false;\n var invocationChildren = node.getChildren(sourceFile);\n switch (startingToken.kind) {\n case 20 /* OpenParenToken */:\n return ts.contains(invocationChildren, startingToken);\n case 27 /* CommaToken */: {\n var containingList = ts.findContainingList(startingToken);\n return !!containingList && ts.contains(invocationChildren, containingList);\n }\n case 29 /* LessThanToken */:\n return containsPrecedingToken(startingToken, sourceFile, node.expression);\n default:\n return false;\n }\n }\n function createJSSignatureHelpItems(argumentInfo, program, cancellationToken) {\n if (argumentInfo.invocation.kind === 2 /* Contextual */)\n return undefined;\n // See if we can find some symbol with the call expression name that has call signatures.\n var expression = getExpressionFromInvocation(argumentInfo.invocation);\n var name = ts.isPropertyAccessExpression(expression) ? expression.name.text : undefined;\n var typeChecker = program.getTypeChecker();\n return name === undefined ? undefined : ts.firstDefined(program.getSourceFiles(), function (sourceFile) {\n return ts.firstDefined(sourceFile.getNamedDeclarations().get(name), function (declaration) {\n var type = declaration.symbol && typeChecker.getTypeOfSymbolAtLocation(declaration.symbol, declaration);\n var callSignatures = type && type.getCallSignatures();\n if (callSignatures && callSignatures.length) {\n return typeChecker.runWithCancellationToken(cancellationToken, function (typeChecker) { return createSignatureHelpItems(callSignatures, callSignatures[0], argumentInfo, sourceFile, typeChecker, \n /*useFullPrefix*/ true); });\n }\n });\n });\n }\n function containsPrecedingToken(startingToken, sourceFile, container) {\n var pos = startingToken.getFullStart();\n // There’s a possibility that `startingToken.parent` contains only `startingToken` and\n // missing nodes, none of which are valid to be returned by `findPrecedingToken`. In that\n // case, the preceding token we want is actually higher up the tree—almost definitely the\n // next parent, but theoretically the situation with missing nodes might be happening on\n // multiple nested levels.\n var currentParent = startingToken.parent;\n while (currentParent) {\n var precedingToken = ts.findPrecedingToken(pos, sourceFile, currentParent, /*excludeJsdoc*/ true);\n if (precedingToken) {\n return ts.rangeContainsRange(container, precedingToken);\n }\n currentParent = currentParent.parent;\n }\n return ts.Debug.fail(\"Could not find preceding token\");\n }\n function getArgumentInfoForCompletions(node, position, sourceFile) {\n var info = getImmediatelyContainingArgumentInfo(node, position, sourceFile);\n return !info || info.isTypeParameterList || info.invocation.kind !== 0 /* Call */ ? undefined\n : { invocation: info.invocation.node, argumentCount: info.argumentCount, argumentIndex: info.argumentIndex };\n }\n SignatureHelp.getArgumentInfoForCompletions = getArgumentInfoForCompletions;\n function getArgumentOrParameterListInfo(node, sourceFile) {\n var info = getArgumentOrParameterListAndIndex(node, sourceFile);\n if (!info)\n return undefined;\n var list = info.list, argumentIndex = info.argumentIndex;\n var argumentCount = getArgumentCount(list);\n if (argumentIndex !== 0) {\n ts.Debug.assertLessThan(argumentIndex, argumentCount);\n }\n var argumentsSpan = getApplicableSpanForArguments(list, sourceFile);\n return { list: list, argumentIndex: argumentIndex, argumentCount: argumentCount, argumentsSpan: argumentsSpan };\n }\n function getArgumentOrParameterListAndIndex(node, sourceFile) {\n if (node.kind === 29 /* LessThanToken */ || node.kind === 20 /* OpenParenToken */) {\n // Find the list that starts right *after* the < or ( token.\n // If the user has just opened a list, consider this item 0.\n return { list: getChildListThatStartsWithOpenerToken(node.parent, node, sourceFile), argumentIndex: 0 };\n }\n else {\n // findListItemInfo can return undefined if we are not in parent's argument list\n // or type argument list. This includes cases where the cursor is:\n // - To the right of the closing parenthesis, non-substitution template, or template tail.\n // - Between the type arguments and the arguments (greater than token)\n // - On the target of the call (parent.func)\n // - On the 'new' keyword in a 'new' expression\n var list = ts.findContainingList(node);\n return list && { list: list, argumentIndex: getArgumentIndex(list, node) };\n }\n }\n /**\n * Returns relevant information for the argument list and the current argument if we are\n * in the argument of an invocation; returns undefined otherwise.\n */\n function getImmediatelyContainingArgumentInfo(node, position, sourceFile) {\n var parent = node.parent;\n if (ts.isCallOrNewExpression(parent)) {\n var invocation = parent;\n // There are 3 cases to handle:\n // 1. The token introduces a list, and should begin a signature help session\n // 2. The token is either not associated with a list, or ends a list, so the session should end\n // 3. The token is buried inside a list, and should give signature help\n //\n // The following are examples of each:\n //\n // Case 1:\n // foo<#T, U>(#a, b) -> The token introduces a list, and should begin a signature help session\n // Case 2:\n // fo#o#(a, b)# -> The token is either not associated with a list, or ends a list, so the session should end\n // Case 3:\n // foo(a#, #b#) -> The token is buried inside a list, and should give signature help\n // Find out if 'node' is an argument, a type argument, or neither\n var info = getArgumentOrParameterListInfo(node, sourceFile);\n if (!info)\n return undefined;\n var list = info.list, argumentIndex = info.argumentIndex, argumentCount = info.argumentCount, argumentsSpan = info.argumentsSpan;\n var isTypeParameterList = !!parent.typeArguments && parent.typeArguments.pos === list.pos;\n return { isTypeParameterList: isTypeParameterList, invocation: { kind: 0 /* Call */, node: invocation }, argumentsSpan: argumentsSpan, argumentIndex: argumentIndex, argumentCount: argumentCount };\n }\n else if (ts.isNoSubstitutionTemplateLiteral(node) && ts.isTaggedTemplateExpression(parent)) {\n // Check if we're actually inside the template;\n // otherwise we'll fall out and return undefined.\n if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {\n return getArgumentListInfoForTemplate(parent, /*argumentIndex*/ 0, sourceFile);\n }\n return undefined;\n }\n else if (ts.isTemplateHead(node) && parent.parent.kind === 208 /* TaggedTemplateExpression */) {\n var templateExpression = parent;\n var tagExpression = templateExpression.parent;\n ts.Debug.assert(templateExpression.kind === 221 /* TemplateExpression */);\n var argumentIndex = ts.isInsideTemplateLiteral(node, position, sourceFile) ? 0 : 1;\n return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile);\n }\n else if (ts.isTemplateSpan(parent) && ts.isTaggedTemplateExpression(parent.parent.parent)) {\n var templateSpan = parent;\n var tagExpression = parent.parent.parent;\n // If we're just after a template tail, don't show signature help.\n if (ts.isTemplateTail(node) && !ts.isInsideTemplateLiteral(node, position, sourceFile)) {\n return undefined;\n }\n var spanIndex = templateSpan.parent.templateSpans.indexOf(templateSpan);\n var argumentIndex = getArgumentIndexForTemplatePiece(spanIndex, node, position, sourceFile);\n return getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile);\n }\n else if (ts.isJsxOpeningLikeElement(parent)) {\n // Provide a signature help for JSX opening element or JSX self-closing element.\n // This is not guarantee that JSX tag-name is resolved into stateless function component. (that is done in \"getSignatureHelpItems\")\n // i.e\n // export function MainButton(props: ButtonProps, context: any): JSX.Element { ... }\n // ' 'b'. So, in this case the arg count will be 2. However, there\n // is a small subtlety. If you have \"Foo(a,)\", then the child list will just have\n // 'a' ''. So, in the case where the last child is a comma, we increase the\n // arg count by one to compensate.\n //\n // Note: this subtlety only applies to the last comma. If you had \"Foo(a,,\" then\n // we'll have: 'a' '' ''\n // That will give us 2 non-commas. We then add one for the last comma, giving us an\n // arg count of 3.\n var listChildren = argumentsList.getChildren();\n var argumentCount = ts.countWhere(listChildren, function (arg) { return arg.kind !== 27 /* CommaToken */; });\n if (listChildren.length > 0 && ts.last(listChildren).kind === 27 /* CommaToken */) {\n argumentCount++;\n }\n return argumentCount;\n }\n // spanIndex is either the index for a given template span.\n // This does not give appropriate results for a NoSubstitutionTemplateLiteral\n function getArgumentIndexForTemplatePiece(spanIndex, node, position, sourceFile) {\n // Because the TemplateStringsArray is the first argument, we have to offset each substitution expression by 1.\n // There are three cases we can encounter:\n // 1. We are precisely in the template literal (argIndex = 0).\n // 2. We are in or to the right of the substitution expression (argIndex = spanIndex + 1).\n // 3. We are directly to the right of the template literal, but because we look for the token on the left,\n // not enough to put us in the substitution expression; we should consider ourselves part of\n // the *next* span's expression by offsetting the index (argIndex = (spanIndex + 1) + 1).\n //\n /* eslint-disable no-double-space */\n // Example: f `# abcd $#{# 1 + 1# }# efghi ${ #\"#hello\"# } # `\n // ^ ^ ^ ^ ^ ^ ^ ^ ^\n // Case: 1 1 3 2 1 3 2 2 1\n /* eslint-enable no-double-space */\n ts.Debug.assert(position >= node.getStart(), \"Assumed 'position' could not occur before node.\");\n if (ts.isTemplateLiteralToken(node)) {\n if (ts.isInsideTemplateLiteral(node, position, sourceFile)) {\n return 0;\n }\n return spanIndex + 2;\n }\n return spanIndex + 1;\n }\n function getArgumentListInfoForTemplate(tagExpression, argumentIndex, sourceFile) {\n // argumentCount is either 1 or (numSpans + 1) to account for the template strings array argument.\n var argumentCount = ts.isNoSubstitutionTemplateLiteral(tagExpression.template) ? 1 : tagExpression.template.templateSpans.length + 1;\n if (argumentIndex !== 0) {\n ts.Debug.assertLessThan(argumentIndex, argumentCount);\n }\n return {\n isTypeParameterList: false,\n invocation: { kind: 0 /* Call */, node: tagExpression },\n argumentsSpan: getApplicableSpanForTaggedTemplate(tagExpression, sourceFile),\n argumentIndex: argumentIndex,\n argumentCount: argumentCount\n };\n }\n function getApplicableSpanForArguments(argumentsList, sourceFile) {\n // We use full start and skip trivia on the end because we want to include trivia on\n // both sides. For example,\n //\n // foo( /*comment */ a, b, c /*comment*/ )\n // | |\n //\n // The applicable span is from the first bar to the second bar (inclusive,\n // but not including parentheses)\n var applicableSpanStart = argumentsList.getFullStart();\n var applicableSpanEnd = ts.skipTrivia(sourceFile.text, argumentsList.getEnd(), /*stopAfterLineBreak*/ false);\n return ts.createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);\n }\n function getApplicableSpanForTaggedTemplate(taggedTemplate, sourceFile) {\n var template = taggedTemplate.template;\n var applicableSpanStart = template.getStart();\n var applicableSpanEnd = template.getEnd();\n // We need to adjust the end position for the case where the template does not have a tail.\n // Otherwise, we will not show signature help past the expression.\n // For example,\n //\n // ` ${ 1 + 1 foo(10)\n // | |\n // This is because a Missing node has no width. However, what we actually want is to include trivia\n // leading up to the next token in case the user is about to type in a TemplateMiddle or TemplateTail.\n if (template.kind === 221 /* TemplateExpression */) {\n var lastSpan = ts.last(template.templateSpans);\n if (lastSpan.literal.getFullWidth() === 0) {\n applicableSpanEnd = ts.skipTrivia(sourceFile.text, applicableSpanEnd, /*stopAfterLineBreak*/ false);\n }\n }\n return ts.createTextSpan(applicableSpanStart, applicableSpanEnd - applicableSpanStart);\n }\n function getContainingArgumentInfo(node, position, sourceFile, checker, isManuallyInvoked) {\n var _loop_8 = function (n) {\n // If the node is not a subspan of its parent, this is a big problem.\n // There have been crashes that might be caused by this violation.\n ts.Debug.assert(ts.rangeContainsRange(n.parent, n), \"Not a subspan\", function () { return \"Child: \" + ts.Debug.formatSyntaxKind(n.kind) + \", parent: \" + ts.Debug.formatSyntaxKind(n.parent.kind); });\n var argumentInfo = getImmediatelyContainingArgumentOrContextualParameterInfo(n, position, sourceFile, checker);\n if (argumentInfo) {\n return { value: argumentInfo };\n }\n };\n for (var n = node; !ts.isSourceFile(n) && (isManuallyInvoked || !ts.isBlock(n)); n = n.parent) {\n var state_3 = _loop_8(n);\n if (typeof state_3 === \"object\")\n return state_3.value;\n }\n return undefined;\n }\n function getChildListThatStartsWithOpenerToken(parent, openerToken, sourceFile) {\n var children = parent.getChildren(sourceFile);\n var indexOfOpenerToken = children.indexOf(openerToken);\n ts.Debug.assert(indexOfOpenerToken >= 0 && children.length > indexOfOpenerToken + 1);\n return children[indexOfOpenerToken + 1];\n }\n function getExpressionFromInvocation(invocation) {\n return invocation.kind === 0 /* Call */ ? ts.getInvokedExpression(invocation.node) : invocation.called;\n }\n function getEnclosingDeclarationFromInvocation(invocation) {\n return invocation.kind === 0 /* Call */ ? invocation.node : invocation.kind === 1 /* TypeArgs */ ? invocation.called : invocation.node;\n }\n var signatureHelpNodeBuilderFlags = 8192 /* OmitParameterModifiers */ | 70221824 /* IgnoreErrors */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;\n function createSignatureHelpItems(candidates, resolvedSignature, _a, sourceFile, typeChecker, useFullPrefix) {\n var _b;\n var isTypeParameterList = _a.isTypeParameterList, argumentCount = _a.argumentCount, applicableSpan = _a.argumentsSpan, invocation = _a.invocation, argumentIndex = _a.argumentIndex;\n var enclosingDeclaration = getEnclosingDeclarationFromInvocation(invocation);\n var callTargetSymbol = invocation.kind === 2 /* Contextual */ ? invocation.symbol : (typeChecker.getSymbolAtLocation(getExpressionFromInvocation(invocation)) || useFullPrefix && ((_b = resolvedSignature.declaration) === null || _b === void 0 ? void 0 : _b.symbol));\n var callTargetDisplayParts = callTargetSymbol ? ts.symbolToDisplayParts(typeChecker, callTargetSymbol, useFullPrefix ? sourceFile : undefined, /*meaning*/ undefined) : ts.emptyArray;\n var items = ts.map(candidates, function (candidateSignature) { return getSignatureHelpItem(candidateSignature, callTargetDisplayParts, isTypeParameterList, typeChecker, enclosingDeclaration, sourceFile); });\n if (argumentIndex !== 0) {\n ts.Debug.assertLessThan(argumentIndex, argumentCount);\n }\n var selectedItemIndex = 0;\n var itemsSeen = 0;\n for (var i = 0; i < items.length; i++) {\n var item = items[i];\n if (candidates[i] === resolvedSignature) {\n selectedItemIndex = itemsSeen;\n if (item.length > 1) {\n // check to see if any items in the list better match than the first one, as the checker isn't filtering the nested lists\n // (those come from tuple parameter expansion)\n var count = 0;\n for (var _i = 0, item_1 = item; _i < item_1.length; _i++) {\n var i_1 = item_1[_i];\n if (i_1.isVariadic || i_1.parameters.length >= argumentCount) {\n selectedItemIndex = itemsSeen + count;\n break;\n }\n count++;\n }\n }\n }\n itemsSeen += item.length;\n }\n ts.Debug.assert(selectedItemIndex !== -1); // If candidates is non-empty it should always include bestSignature. We check for an empty candidates before calling this function.\n var help = { items: ts.flatMapToMutable(items, ts.identity), applicableSpan: applicableSpan, selectedItemIndex: selectedItemIndex, argumentIndex: argumentIndex, argumentCount: argumentCount };\n var selected = help.items[selectedItemIndex];\n if (selected.isVariadic) {\n var firstRest = ts.findIndex(selected.parameters, function (p) { return !!p.isRest; });\n if (-1 < firstRest && firstRest < selected.parameters.length - 1) {\n // We don't have any code to get this correct; instead, don't highlight a current parameter AT ALL\n help.argumentIndex = selected.parameters.length;\n }\n else {\n help.argumentIndex = Math.min(help.argumentIndex, selected.parameters.length - 1);\n }\n }\n return help;\n }\n function createTypeHelpItems(symbol, _a, sourceFile, checker) {\n var argumentCount = _a.argumentCount, applicableSpan = _a.argumentsSpan, invocation = _a.invocation, argumentIndex = _a.argumentIndex;\n var typeParameters = checker.getLocalTypeParametersOfClassOrInterfaceOrTypeAlias(symbol);\n if (!typeParameters)\n return undefined;\n var items = [getTypeHelpItem(symbol, typeParameters, checker, getEnclosingDeclarationFromInvocation(invocation), sourceFile)];\n return { items: items, applicableSpan: applicableSpan, selectedItemIndex: 0, argumentIndex: argumentIndex, argumentCount: argumentCount };\n }\n function getTypeHelpItem(symbol, typeParameters, checker, enclosingDeclaration, sourceFile) {\n var typeSymbolDisplay = ts.symbolToDisplayParts(checker, symbol);\n var printer = ts.createPrinter({ removeComments: true });\n var parameters = typeParameters.map(function (t) { return createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer); });\n var documentation = symbol.getDocumentationComment(checker);\n var tags = symbol.getJsDocTags(checker);\n var prefixDisplayParts = __spreadArray(__spreadArray([], typeSymbolDisplay, true), [ts.punctuationPart(29 /* LessThanToken */)], false);\n return { isVariadic: false, prefixDisplayParts: prefixDisplayParts, suffixDisplayParts: [ts.punctuationPart(31 /* GreaterThanToken */)], separatorDisplayParts: separatorDisplayParts, parameters: parameters, documentation: documentation, tags: tags };\n }\n var separatorDisplayParts = [ts.punctuationPart(27 /* CommaToken */), ts.spacePart()];\n function getSignatureHelpItem(candidateSignature, callTargetDisplayParts, isTypeParameterList, checker, enclosingDeclaration, sourceFile) {\n var infos = (isTypeParameterList ? itemInfoForTypeParameters : itemInfoForParameters)(candidateSignature, checker, enclosingDeclaration, sourceFile);\n return ts.map(infos, function (_a) {\n var isVariadic = _a.isVariadic, parameters = _a.parameters, prefix = _a.prefix, suffix = _a.suffix;\n var prefixDisplayParts = __spreadArray(__spreadArray([], callTargetDisplayParts, true), prefix, true);\n var suffixDisplayParts = __spreadArray(__spreadArray([], suffix, true), returnTypeToDisplayParts(candidateSignature, enclosingDeclaration, checker), true);\n var documentation = candidateSignature.getDocumentationComment(checker);\n var tags = candidateSignature.getJsDocTags();\n return { isVariadic: isVariadic, prefixDisplayParts: prefixDisplayParts, suffixDisplayParts: suffixDisplayParts, separatorDisplayParts: separatorDisplayParts, parameters: parameters, documentation: documentation, tags: tags };\n });\n }\n function returnTypeToDisplayParts(candidateSignature, enclosingDeclaration, checker) {\n return ts.mapToDisplayParts(function (writer) {\n writer.writePunctuation(\":\");\n writer.writeSpace(\" \");\n var predicate = checker.getTypePredicateOfSignature(candidateSignature);\n if (predicate) {\n checker.writeTypePredicate(predicate, enclosingDeclaration, /*flags*/ undefined, writer);\n }\n else {\n checker.writeType(checker.getReturnTypeOfSignature(candidateSignature), enclosingDeclaration, /*flags*/ undefined, writer);\n }\n });\n }\n function itemInfoForTypeParameters(candidateSignature, checker, enclosingDeclaration, sourceFile) {\n var typeParameters = (candidateSignature.target || candidateSignature).typeParameters;\n var printer = ts.createPrinter({ removeComments: true });\n var parameters = (typeParameters || ts.emptyArray).map(function (t) { return createSignatureHelpParameterForTypeParameter(t, checker, enclosingDeclaration, sourceFile, printer); });\n var thisParameter = candidateSignature.thisParameter ? [checker.symbolToParameterDeclaration(candidateSignature.thisParameter, enclosingDeclaration, signatureHelpNodeBuilderFlags)] : [];\n return checker.getExpandedParameters(candidateSignature).map(function (paramList) {\n var params = ts.factory.createNodeArray(__spreadArray(__spreadArray([], thisParameter, true), ts.map(paramList, function (param) { return checker.symbolToParameterDeclaration(param, enclosingDeclaration, signatureHelpNodeBuilderFlags); }), true));\n var parameterParts = ts.mapToDisplayParts(function (writer) {\n printer.writeList(2576 /* CallExpressionArguments */, params, sourceFile, writer);\n });\n return { isVariadic: false, parameters: parameters, prefix: [ts.punctuationPart(29 /* LessThanToken */)], suffix: __spreadArray([ts.punctuationPart(31 /* GreaterThanToken */)], parameterParts, true) };\n });\n }\n function itemInfoForParameters(candidateSignature, checker, enclosingDeclaration, sourceFile) {\n var printer = ts.createPrinter({ removeComments: true });\n var typeParameterParts = ts.mapToDisplayParts(function (writer) {\n if (candidateSignature.typeParameters && candidateSignature.typeParameters.length) {\n var args = ts.factory.createNodeArray(candidateSignature.typeParameters.map(function (p) { return checker.typeParameterToDeclaration(p, enclosingDeclaration, signatureHelpNodeBuilderFlags); }));\n printer.writeList(53776 /* TypeParameters */, args, sourceFile, writer);\n }\n });\n var lists = checker.getExpandedParameters(candidateSignature);\n var isVariadic = !checker.hasEffectiveRestParameter(candidateSignature) ? function (_) { return false; }\n : lists.length === 1 ? function (_) { return true; }\n : function (pList) { return !!(pList.length && pList[pList.length - 1].checkFlags & 32768 /* RestParameter */); };\n return lists.map(function (parameterList) { return ({\n isVariadic: isVariadic(parameterList),\n parameters: parameterList.map(function (p) { return createSignatureHelpParameterForParameter(p, checker, enclosingDeclaration, sourceFile, printer); }),\n prefix: __spreadArray(__spreadArray([], typeParameterParts, true), [ts.punctuationPart(20 /* OpenParenToken */)], false),\n suffix: [ts.punctuationPart(21 /* CloseParenToken */)]\n }); });\n }\n function createSignatureHelpParameterForParameter(parameter, checker, enclosingDeclaration, sourceFile, printer) {\n var displayParts = ts.mapToDisplayParts(function (writer) {\n var param = checker.symbolToParameterDeclaration(parameter, enclosingDeclaration, signatureHelpNodeBuilderFlags);\n printer.writeNode(4 /* Unspecified */, param, sourceFile, writer);\n });\n var isOptional = checker.isOptionalParameter(parameter.valueDeclaration);\n var isRest = !!(parameter.checkFlags & 32768 /* RestParameter */);\n return { name: parameter.name, documentation: parameter.getDocumentationComment(checker), displayParts: displayParts, isOptional: isOptional, isRest: isRest };\n }\n function createSignatureHelpParameterForTypeParameter(typeParameter, checker, enclosingDeclaration, sourceFile, printer) {\n var displayParts = ts.mapToDisplayParts(function (writer) {\n var param = checker.typeParameterToDeclaration(typeParameter, enclosingDeclaration, signatureHelpNodeBuilderFlags);\n printer.writeNode(4 /* Unspecified */, param, sourceFile, writer);\n });\n return { name: typeParameter.symbol.name, documentation: typeParameter.symbol.getDocumentationComment(checker), displayParts: displayParts, isOptional: false, isRest: false };\n }\n })(SignatureHelp = ts.SignatureHelp || (ts.SignatureHelp = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var InlayHints;\n (function (InlayHints) {\n var maxHintsLength = 30;\n var leadingParameterNameCommentRegexFactory = function (name) {\n return new RegExp(\"^\\\\s?/\\\\*\\\\*?\\\\s?\" + name + \"\\\\s?\\\\*\\\\/\\\\s?$\");\n };\n function shouldShowParameterNameHints(preferences) {\n return preferences.includeInlayParameterNameHints === \"literals\" || preferences.includeInlayParameterNameHints === \"all\";\n }\n function shouldShowLiteralParameterNameHintsOnly(preferences) {\n return preferences.includeInlayParameterNameHints === \"literals\";\n }\n function provideInlayHints(context) {\n var file = context.file, program = context.program, span = context.span, cancellationToken = context.cancellationToken, preferences = context.preferences;\n var sourceFileText = file.text;\n var compilerOptions = program.getCompilerOptions();\n var checker = program.getTypeChecker();\n var result = [];\n visitor(file);\n return result;\n function visitor(node) {\n if (!node || node.getFullWidth() === 0) {\n return;\n }\n switch (node.kind) {\n case 259 /* ModuleDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 212 /* ArrowFunction */:\n cancellationToken.throwIfCancellationRequested();\n }\n if (!ts.textSpanIntersectsWith(span, node.pos, node.getFullWidth())) {\n return;\n }\n if (ts.isTypeNode(node)) {\n return;\n }\n if (preferences.includeInlayVariableTypeHints && ts.isVariableDeclaration(node)) {\n visitVariableLikeDeclaration(node);\n }\n else if (preferences.includeInlayPropertyDeclarationTypeHints && ts.isPropertyDeclaration(node)) {\n visitVariableLikeDeclaration(node);\n }\n else if (preferences.includeInlayEnumMemberValueHints && ts.isEnumMember(node)) {\n visitEnumMember(node);\n }\n else if (shouldShowParameterNameHints(preferences) && (ts.isCallExpression(node) || ts.isNewExpression(node))) {\n visitCallOrNewExpression(node);\n }\n else {\n if (preferences.includeInlayFunctionParameterTypeHints && ts.isFunctionLikeDeclaration(node) && ts.hasContextSensitiveParameters(node)) {\n visitFunctionLikeForParameterType(node);\n }\n if (preferences.includeInlayFunctionLikeReturnTypeHints && isSignatureSupportingReturnAnnotation(node)) {\n visitFunctionDeclarationLikeForReturnType(node);\n }\n }\n return ts.forEachChild(node, visitor);\n }\n function isSignatureSupportingReturnAnnotation(node) {\n return ts.isArrowFunction(node) || ts.isFunctionExpression(node) || ts.isFunctionDeclaration(node) || ts.isMethodDeclaration(node) || ts.isGetAccessorDeclaration(node);\n }\n function addParameterHints(text, position, isFirstVariadicArgument) {\n result.push({\n text: \"\" + (isFirstVariadicArgument ? \"...\" : \"\") + truncation(text, maxHintsLength) + \":\",\n position: position,\n kind: \"Parameter\" /* Parameter */,\n whitespaceAfter: true,\n });\n }\n function addTypeHints(text, position) {\n result.push({\n text: \": \" + truncation(text, maxHintsLength),\n position: position,\n kind: \"Type\" /* Type */,\n whitespaceBefore: true,\n });\n }\n function addEnumMemberValueHints(text, position) {\n result.push({\n text: \"= \" + truncation(text, maxHintsLength),\n position: position,\n kind: \"Enum\" /* Enum */,\n whitespaceBefore: true,\n });\n }\n function visitEnumMember(member) {\n if (member.initializer) {\n return;\n }\n var enumValue = checker.getConstantValue(member);\n if (enumValue !== undefined) {\n addEnumMemberValueHints(enumValue.toString(), member.end);\n }\n }\n function isModuleReferenceType(type) {\n return type.symbol && (type.symbol.flags & 1536 /* Module */);\n }\n function visitVariableLikeDeclaration(decl) {\n if (!decl.initializer || ts.isBindingPattern(decl.name)) {\n return;\n }\n var effectiveTypeAnnotation = ts.getEffectiveTypeAnnotationNode(decl);\n if (effectiveTypeAnnotation) {\n return;\n }\n var declarationType = checker.getTypeAtLocation(decl);\n if (isModuleReferenceType(declarationType)) {\n return;\n }\n var typeDisplayString = printTypeInSingleLine(declarationType);\n if (typeDisplayString) {\n addTypeHints(typeDisplayString, decl.name.end);\n }\n }\n function visitCallOrNewExpression(expr) {\n var args = expr.arguments;\n if (!args || !args.length) {\n return;\n }\n var candidates = [];\n var signature = checker.getResolvedSignatureForSignatureHelp(expr, candidates);\n if (!signature || !candidates.length) {\n return;\n }\n for (var i = 0; i < args.length; ++i) {\n var originalArg = args[i];\n var arg = ts.skipParentheses(originalArg);\n if (shouldShowLiteralParameterNameHintsOnly(preferences) && !isHintableLiteral(arg)) {\n continue;\n }\n var identifierNameInfo = checker.getParameterIdentifierNameAtPosition(signature, i);\n if (identifierNameInfo) {\n var parameterName = identifierNameInfo[0], isFirstVariadicArgument = identifierNameInfo[1];\n var isParameterNameNotSameAsArgument = preferences.includeInlayParameterNameHintsWhenArgumentMatchesName || !identifierOrAccessExpressionPostfixMatchesParameterName(arg, parameterName);\n if (!isParameterNameNotSameAsArgument && !isFirstVariadicArgument) {\n continue;\n }\n var name = ts.unescapeLeadingUnderscores(parameterName);\n if (leadingCommentsContainsParameterName(arg, name)) {\n continue;\n }\n addParameterHints(name, originalArg.getStart(), isFirstVariadicArgument);\n }\n }\n }\n function identifierOrAccessExpressionPostfixMatchesParameterName(expr, parameterName) {\n if (ts.isIdentifier(expr)) {\n return expr.text === parameterName;\n }\n if (ts.isPropertyAccessExpression(expr)) {\n return expr.name.text === parameterName;\n }\n return false;\n }\n function leadingCommentsContainsParameterName(node, name) {\n if (!ts.isIdentifierText(name, compilerOptions.target, ts.getLanguageVariant(file.scriptKind))) {\n return false;\n }\n var ranges = ts.getLeadingCommentRanges(sourceFileText, node.pos);\n if (!(ranges === null || ranges === void 0 ? void 0 : ranges.length)) {\n return false;\n }\n var regex = leadingParameterNameCommentRegexFactory(name);\n return ts.some(ranges, function (range) { return regex.test(sourceFileText.substring(range.pos, range.end)); });\n }\n function isHintableLiteral(node) {\n switch (node.kind) {\n case 217 /* PrefixUnaryExpression */: {\n var operand = node.operand;\n return ts.isLiteralExpression(operand) || ts.isIdentifier(operand) && ts.isInfinityOrNaNString(operand.escapedText);\n }\n case 110 /* TrueKeyword */:\n case 95 /* FalseKeyword */:\n case 104 /* NullKeyword */:\n return true;\n case 79 /* Identifier */: {\n var name = node.escapedText;\n return isUndefined(name) || ts.isInfinityOrNaNString(name);\n }\n }\n return ts.isLiteralExpression(node);\n }\n function visitFunctionDeclarationLikeForReturnType(decl) {\n if (ts.isArrowFunction(decl)) {\n if (!ts.findChildOfKind(decl, 20 /* OpenParenToken */, file)) {\n return;\n }\n }\n var effectiveTypeAnnotation = ts.getEffectiveReturnTypeNode(decl);\n if (effectiveTypeAnnotation || !decl.body) {\n return;\n }\n var signature = checker.getSignatureFromDeclaration(decl);\n if (!signature) {\n return;\n }\n var returnType = checker.getReturnTypeOfSignature(signature);\n if (isModuleReferenceType(returnType)) {\n return;\n }\n var typeDisplayString = printTypeInSingleLine(returnType);\n if (!typeDisplayString) {\n return;\n }\n addTypeHints(typeDisplayString, getTypeAnnotationPosition(decl));\n }\n function getTypeAnnotationPosition(decl) {\n var closeParenToken = ts.findChildOfKind(decl, 21 /* CloseParenToken */, file);\n if (closeParenToken) {\n return closeParenToken.end;\n }\n return decl.parameters.end;\n }\n function visitFunctionLikeForParameterType(node) {\n var signature = checker.getSignatureFromDeclaration(node);\n if (!signature) {\n return;\n }\n for (var i = 0; i < node.parameters.length && i < signature.parameters.length; ++i) {\n var param = node.parameters[i];\n var effectiveTypeAnnotation = ts.getEffectiveTypeAnnotationNode(param);\n if (effectiveTypeAnnotation) {\n continue;\n }\n var typeDisplayString = getParameterDeclarationTypeDisplayString(signature.parameters[i]);\n if (!typeDisplayString) {\n continue;\n }\n addTypeHints(typeDisplayString, param.end);\n }\n }\n function getParameterDeclarationTypeDisplayString(symbol) {\n var valueDeclaration = symbol.valueDeclaration;\n if (!valueDeclaration || !ts.isParameter(valueDeclaration)) {\n return undefined;\n }\n var signatureParamType = checker.getTypeOfSymbolAtLocation(symbol, valueDeclaration);\n if (isModuleReferenceType(signatureParamType)) {\n return undefined;\n }\n return printTypeInSingleLine(signatureParamType);\n }\n function truncation(text, maxLength) {\n if (text.length > maxLength) {\n return text.substr(0, maxLength - \"...\".length) + \"...\";\n }\n return text;\n }\n function printTypeInSingleLine(type) {\n var flags = 70221824 /* IgnoreErrors */ | 1048576 /* AllowUniqueESSymbolType */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;\n var options = { removeComments: true };\n var printer = ts.createPrinter(options);\n return ts.usingSingleLineStringWriter(function (writer) {\n var typeNode = checker.typeToTypeNode(type, /*enclosingDeclaration*/ undefined, flags, writer);\n ts.Debug.assertIsDefined(typeNode, \"should always get typenode\");\n printer.writeNode(4 /* Unspecified */, typeNode, /*sourceFile*/ file, writer);\n });\n }\n function isUndefined(name) {\n return name === \"undefined\";\n }\n }\n InlayHints.provideInlayHints = provideInlayHints;\n })(InlayHints = ts.InlayHints || (ts.InlayHints = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var base64UrlRegExp = /^data:(?:application\\/json(?:;charset=[uU][tT][fF]-8);base64,([A-Za-z0-9+\\/=]+)$)?/;\n function getSourceMapper(host) {\n var getCanonicalFileName = ts.createGetCanonicalFileName(host.useCaseSensitiveFileNames());\n var currentDirectory = host.getCurrentDirectory();\n var sourceFileLike = new ts.Map();\n var documentPositionMappers = new ts.Map();\n return { tryGetSourcePosition: tryGetSourcePosition, tryGetGeneratedPosition: tryGetGeneratedPosition, toLineColumnOffset: toLineColumnOffset, clearCache: clearCache };\n function toPath(fileName) {\n return ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n }\n function getDocumentPositionMapper(generatedFileName, sourceFileName) {\n var path = toPath(generatedFileName);\n var value = documentPositionMappers.get(path);\n if (value)\n return value;\n var mapper;\n if (host.getDocumentPositionMapper) {\n mapper = host.getDocumentPositionMapper(generatedFileName, sourceFileName);\n }\n else if (host.readFile) {\n var file = getSourceFileLike(generatedFileName);\n mapper = file && ts.getDocumentPositionMapper({ getSourceFileLike: getSourceFileLike, getCanonicalFileName: getCanonicalFileName, log: function (s) { return host.log(s); } }, generatedFileName, ts.getLineInfo(file.text, ts.getLineStarts(file)), function (f) { return !host.fileExists || host.fileExists(f) ? host.readFile(f) : undefined; });\n }\n documentPositionMappers.set(path, mapper || ts.identitySourceMapConsumer);\n return mapper || ts.identitySourceMapConsumer;\n }\n function tryGetSourcePosition(info) {\n if (!ts.isDeclarationFileName(info.fileName))\n return undefined;\n var file = getSourceFile(info.fileName);\n if (!file)\n return undefined;\n var newLoc = getDocumentPositionMapper(info.fileName).getSourcePosition(info);\n return !newLoc || newLoc === info ? undefined : tryGetSourcePosition(newLoc) || newLoc;\n }\n function tryGetGeneratedPosition(info) {\n if (ts.isDeclarationFileName(info.fileName))\n return undefined;\n var sourceFile = getSourceFile(info.fileName);\n if (!sourceFile)\n return undefined;\n var program = host.getProgram();\n // If this is source file of project reference source (instead of redirect) there is no generated position\n if (program.isSourceOfProjectReferenceRedirect(sourceFile.fileName)) {\n return undefined;\n }\n var options = program.getCompilerOptions();\n var outPath = ts.outFile(options);\n var declarationPath = outPath ?\n ts.removeFileExtension(outPath) + \".d.ts\" /* Dts */ :\n ts.getDeclarationEmitOutputFilePathWorker(info.fileName, program.getCompilerOptions(), currentDirectory, program.getCommonSourceDirectory(), getCanonicalFileName);\n if (declarationPath === undefined)\n return undefined;\n var newLoc = getDocumentPositionMapper(declarationPath, info.fileName).getGeneratedPosition(info);\n return newLoc === info ? undefined : newLoc;\n }\n function getSourceFile(fileName) {\n var program = host.getProgram();\n if (!program)\n return undefined;\n var path = toPath(fileName);\n // file returned here could be .d.ts when asked for .ts file if projectReferences and module resolution created this source file\n var file = program.getSourceFileByPath(path);\n return file && file.resolvedPath === path ? file : undefined;\n }\n function getOrCreateSourceFileLike(fileName) {\n var path = toPath(fileName);\n var fileFromCache = sourceFileLike.get(path);\n if (fileFromCache !== undefined)\n return fileFromCache ? fileFromCache : undefined;\n if (!host.readFile || host.fileExists && !host.fileExists(path)) {\n sourceFileLike.set(path, false);\n return undefined;\n }\n // And failing that, check the disk\n var text = host.readFile(path);\n var file = text ? createSourceFileLike(text) : false;\n sourceFileLike.set(path, file);\n return file ? file : undefined;\n }\n // This can be called from source mapper in either source program or program that includes generated file\n function getSourceFileLike(fileName) {\n return !host.getSourceFileLike ?\n getSourceFile(fileName) || getOrCreateSourceFileLike(fileName) :\n host.getSourceFileLike(fileName);\n }\n function toLineColumnOffset(fileName, position) {\n var file = getSourceFileLike(fileName); // TODO: GH#18217\n return file.getLineAndCharacterOfPosition(position);\n }\n function clearCache() {\n sourceFileLike.clear();\n documentPositionMappers.clear();\n }\n }\n ts.getSourceMapper = getSourceMapper;\n function getDocumentPositionMapper(host, generatedFileName, generatedFileLineInfo, readMapFile) {\n var mapFileName = ts.tryGetSourceMappingURL(generatedFileLineInfo);\n if (mapFileName) {\n var match = base64UrlRegExp.exec(mapFileName);\n if (match) {\n if (match[1]) {\n var base64Object = match[1];\n return convertDocumentToSourceMapper(host, ts.base64decode(ts.sys, base64Object), generatedFileName);\n }\n // Not a data URL we can parse, skip it\n mapFileName = undefined;\n }\n }\n var possibleMapLocations = [];\n if (mapFileName) {\n possibleMapLocations.push(mapFileName);\n }\n possibleMapLocations.push(generatedFileName + \".map\");\n var originalMapFileName = mapFileName && ts.getNormalizedAbsolutePath(mapFileName, ts.getDirectoryPath(generatedFileName));\n for (var _i = 0, possibleMapLocations_1 = possibleMapLocations; _i < possibleMapLocations_1.length; _i++) {\n var location = possibleMapLocations_1[_i];\n var mapFileName_1 = ts.getNormalizedAbsolutePath(location, ts.getDirectoryPath(generatedFileName));\n var mapFileContents = readMapFile(mapFileName_1, originalMapFileName);\n if (ts.isString(mapFileContents)) {\n return convertDocumentToSourceMapper(host, mapFileContents, mapFileName_1);\n }\n if (mapFileContents !== undefined) {\n return mapFileContents || undefined;\n }\n }\n return undefined;\n }\n ts.getDocumentPositionMapper = getDocumentPositionMapper;\n function convertDocumentToSourceMapper(host, contents, mapFileName) {\n var map = ts.tryParseRawSourceMap(contents);\n if (!map || !map.sources || !map.file || !map.mappings) {\n // obviously invalid map\n return undefined;\n }\n // Dont support sourcemaps that contain inlined sources\n if (map.sourcesContent && map.sourcesContent.some(ts.isString))\n return undefined;\n return ts.createDocumentPositionMapper(host, map, mapFileName);\n }\n function createSourceFileLike(text, lineMap) {\n return {\n text: text,\n lineMap: lineMap,\n getLineAndCharacterOfPosition: function (pos) {\n return ts.computeLineAndCharacterOfPosition(ts.getLineStarts(this), pos);\n }\n };\n }\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var visitedNestedConvertibleFunctions = new ts.Map();\n function computeSuggestionDiagnostics(sourceFile, program, cancellationToken) {\n program.getSemanticDiagnostics(sourceFile, cancellationToken);\n var diags = [];\n var checker = program.getTypeChecker();\n if (sourceFile.commonJsModuleIndicator &&\n (ts.programContainsEs6Modules(program) || ts.compilerOptionsIndicateEs6Modules(program.getCompilerOptions())) &&\n containsTopLevelCommonjs(sourceFile)) {\n diags.push(ts.createDiagnosticForNode(getErrorNodeFromCommonJsIndicator(sourceFile.commonJsModuleIndicator), ts.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module));\n }\n var isJsFile = ts.isSourceFileJS(sourceFile);\n visitedNestedConvertibleFunctions.clear();\n check(sourceFile);\n if (ts.getAllowSyntheticDefaultImports(program.getCompilerOptions())) {\n for (var _i = 0, _a = sourceFile.imports; _i < _a.length; _i++) {\n var moduleSpecifier = _a[_i];\n var importNode = ts.importFromModuleSpecifier(moduleSpecifier);\n var name = importNameForConvertToDefaultImport(importNode);\n if (!name)\n continue;\n var module_1 = ts.getResolvedModule(sourceFile, moduleSpecifier.text);\n var resolvedFile = module_1 && program.getSourceFile(module_1.resolvedFileName);\n if (resolvedFile && resolvedFile.externalModuleIndicator && ts.isExportAssignment(resolvedFile.externalModuleIndicator) && resolvedFile.externalModuleIndicator.isExportEquals) {\n diags.push(ts.createDiagnosticForNode(name, ts.Diagnostics.Import_may_be_converted_to_a_default_import));\n }\n }\n }\n ts.addRange(diags, sourceFile.bindSuggestionDiagnostics);\n ts.addRange(diags, program.getSuggestionDiagnostics(sourceFile, cancellationToken));\n return diags.sort(function (d1, d2) { return d1.start - d2.start; });\n function check(node) {\n if (isJsFile) {\n if (canBeConvertedToClass(node, checker)) {\n diags.push(ts.createDiagnosticForNode(ts.isVariableDeclaration(node.parent) ? node.parent.name : node, ts.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration));\n }\n }\n else {\n if (ts.isVariableStatement(node) &&\n node.parent === sourceFile &&\n node.declarationList.flags & 2 /* Const */ &&\n node.declarationList.declarations.length === 1) {\n var init = node.declarationList.declarations[0].initializer;\n if (init && ts.isRequireCall(init, /*checkArgumentIsStringLiteralLike*/ true)) {\n diags.push(ts.createDiagnosticForNode(init, ts.Diagnostics.require_call_may_be_converted_to_an_import));\n }\n }\n if (ts.codefix.parameterShouldGetTypeFromJSDoc(node)) {\n diags.push(ts.createDiagnosticForNode(node.name || node, ts.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types));\n }\n }\n if (canBeConvertedToAsync(node)) {\n addConvertToAsyncFunctionDiagnostics(node, checker, diags);\n }\n node.forEachChild(check);\n }\n }\n ts.computeSuggestionDiagnostics = computeSuggestionDiagnostics;\n // convertToEs6Module only works on top-level, so don't trigger it if commonjs code only appears in nested scopes.\n function containsTopLevelCommonjs(sourceFile) {\n return sourceFile.statements.some(function (statement) {\n switch (statement.kind) {\n case 235 /* VariableStatement */:\n return statement.declarationList.declarations.some(function (decl) {\n return !!decl.initializer && ts.isRequireCall(propertyAccessLeftHandSide(decl.initializer), /*checkArgumentIsStringLiteralLike*/ true);\n });\n case 236 /* ExpressionStatement */: {\n var expression = statement.expression;\n if (!ts.isBinaryExpression(expression))\n return ts.isRequireCall(expression, /*checkArgumentIsStringLiteralLike*/ true);\n var kind = ts.getAssignmentDeclarationKind(expression);\n return kind === 1 /* ExportsProperty */ || kind === 2 /* ModuleExports */;\n }\n default:\n return false;\n }\n });\n }\n function propertyAccessLeftHandSide(node) {\n return ts.isPropertyAccessExpression(node) ? propertyAccessLeftHandSide(node.expression) : node;\n }\n function importNameForConvertToDefaultImport(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n var importClause = node.importClause, moduleSpecifier = node.moduleSpecifier;\n return importClause && !importClause.name && importClause.namedBindings && importClause.namedBindings.kind === 266 /* NamespaceImport */ && ts.isStringLiteral(moduleSpecifier)\n ? importClause.namedBindings.name\n : undefined;\n case 263 /* ImportEqualsDeclaration */:\n return node.name;\n default:\n return undefined;\n }\n }\n function addConvertToAsyncFunctionDiagnostics(node, checker, diags) {\n // need to check function before checking map so that deeper levels of nested callbacks are checked\n if (isConvertibleFunction(node, checker) && !visitedNestedConvertibleFunctions.has(getKeyFromNode(node))) {\n diags.push(ts.createDiagnosticForNode(!node.name && ts.isVariableDeclaration(node.parent) && ts.isIdentifier(node.parent.name) ? node.parent.name : node, ts.Diagnostics.This_may_be_converted_to_an_async_function));\n }\n }\n function isConvertibleFunction(node, checker) {\n return !ts.isAsyncFunction(node) &&\n node.body &&\n ts.isBlock(node.body) &&\n hasReturnStatementWithPromiseHandler(node.body, checker) &&\n returnsPromise(node, checker);\n }\n function returnsPromise(node, checker) {\n var signature = checker.getSignatureFromDeclaration(node);\n var returnType = signature ? checker.getReturnTypeOfSignature(signature) : undefined;\n return !!returnType && !!checker.getPromisedTypeOfPromise(returnType);\n }\n ts.returnsPromise = returnsPromise;\n function getErrorNodeFromCommonJsIndicator(commonJsModuleIndicator) {\n return ts.isBinaryExpression(commonJsModuleIndicator) ? commonJsModuleIndicator.left : commonJsModuleIndicator;\n }\n function hasReturnStatementWithPromiseHandler(body, checker) {\n return !!ts.forEachReturnStatement(body, function (statement) { return isReturnStatementWithFixablePromiseHandler(statement, checker); });\n }\n function isReturnStatementWithFixablePromiseHandler(node, checker) {\n return ts.isReturnStatement(node) && !!node.expression && isFixablePromiseHandler(node.expression, checker);\n }\n ts.isReturnStatementWithFixablePromiseHandler = isReturnStatementWithFixablePromiseHandler;\n // Should be kept up to date with transformExpression in convertToAsyncFunction.ts\n function isFixablePromiseHandler(node, checker) {\n // ensure outermost call exists and is a promise handler\n if (!isPromiseHandler(node) || !node.arguments.every(function (arg) { return isFixablePromiseArgument(arg, checker); })) {\n return false;\n }\n // ensure all chained calls are valid\n var currentNode = node.expression;\n while (isPromiseHandler(currentNode) || ts.isPropertyAccessExpression(currentNode)) {\n if (ts.isCallExpression(currentNode) && !currentNode.arguments.every(function (arg) { return isFixablePromiseArgument(arg, checker); })) {\n return false;\n }\n currentNode = currentNode.expression;\n }\n return true;\n }\n ts.isFixablePromiseHandler = isFixablePromiseHandler;\n function isPromiseHandler(node) {\n return ts.isCallExpression(node) && (ts.hasPropertyAccessExpressionWithName(node, \"then\") && hasSupportedNumberOfArguments(node) ||\n ts.hasPropertyAccessExpressionWithName(node, \"catch\"));\n }\n function hasSupportedNumberOfArguments(node) {\n if (node.arguments.length > 2)\n return false;\n if (node.arguments.length < 2)\n return true;\n return ts.some(node.arguments, function (arg) {\n return arg.kind === 104 /* NullKeyword */ ||\n ts.isIdentifier(arg) && arg.text === \"undefined\";\n });\n }\n // should be kept up to date with getTransformationBody in convertToAsyncFunction.ts\n function isFixablePromiseArgument(arg, checker) {\n switch (arg.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n var functionFlags = ts.getFunctionFlags(arg);\n if (functionFlags & 1 /* Generator */) {\n return false;\n }\n // falls through\n case 212 /* ArrowFunction */:\n visitedNestedConvertibleFunctions.set(getKeyFromNode(arg), true);\n // falls through\n case 104 /* NullKeyword */:\n return true;\n case 79 /* Identifier */:\n case 204 /* PropertyAccessExpression */: {\n var symbol = checker.getSymbolAtLocation(arg);\n if (!symbol) {\n return false;\n }\n return checker.isUndefinedSymbol(symbol) ||\n ts.some(ts.skipAlias(symbol, checker).declarations, function (d) { return ts.isFunctionLike(d) || ts.hasInitializer(d) && !!d.initializer && ts.isFunctionLike(d.initializer); });\n }\n default:\n return false;\n }\n }\n function getKeyFromNode(exp) {\n return exp.pos.toString() + \":\" + exp.end.toString();\n }\n function canBeConvertedToClass(node, checker) {\n var _a, _b, _c, _d;\n if (node.kind === 211 /* FunctionExpression */) {\n if (ts.isVariableDeclaration(node.parent) && ((_a = node.symbol.members) === null || _a === void 0 ? void 0 : _a.size)) {\n return true;\n }\n var symbol = checker.getSymbolOfExpando(node, /*allowDeclaration*/ false);\n return !!(symbol && (((_b = symbol.exports) === null || _b === void 0 ? void 0 : _b.size) || ((_c = symbol.members) === null || _c === void 0 ? void 0 : _c.size)));\n }\n if (node.kind === 254 /* FunctionDeclaration */) {\n return !!((_d = node.symbol.members) === null || _d === void 0 ? void 0 : _d.size);\n }\n return false;\n }\n function canBeConvertedToAsync(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return true;\n default:\n return false;\n }\n }\n ts.canBeConvertedToAsync = canBeConvertedToAsync;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var SymbolDisplay;\n (function (SymbolDisplay) {\n var symbolDisplayNodeBuilderFlags = 8192 /* OmitParameterModifiers */ | 70221824 /* IgnoreErrors */ | 16384 /* UseAliasDefinedOutsideCurrentScope */;\n // TODO(drosen): use contextual SemanticMeaning.\n function getSymbolKind(typeChecker, symbol, location) {\n var result = getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location);\n if (result !== \"\" /* unknown */) {\n return result;\n }\n var flags = ts.getCombinedLocalAndExportSymbolFlags(symbol);\n if (flags & 32 /* Class */) {\n return ts.getDeclarationOfKind(symbol, 224 /* ClassExpression */) ?\n \"local class\" /* localClassElement */ : \"class\" /* classElement */;\n }\n if (flags & 384 /* Enum */)\n return \"enum\" /* enumElement */;\n if (flags & 524288 /* TypeAlias */)\n return \"type\" /* typeElement */;\n if (flags & 64 /* Interface */)\n return \"interface\" /* interfaceElement */;\n if (flags & 262144 /* TypeParameter */)\n return \"type parameter\" /* typeParameterElement */;\n if (flags & 8 /* EnumMember */)\n return \"enum member\" /* enumMemberElement */;\n if (flags & 2097152 /* Alias */)\n return \"alias\" /* alias */;\n if (flags & 1536 /* Module */)\n return \"module\" /* moduleElement */;\n return result;\n }\n SymbolDisplay.getSymbolKind = getSymbolKind;\n function getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) {\n var roots = typeChecker.getRootSymbols(symbol);\n // If this is a method from a mapped type, leave as a method so long as it still has a call signature.\n if (roots.length === 1\n && ts.first(roots).flags & 8192 /* Method */\n // Ensure the mapped version is still a method, as opposed to `{ [K in keyof I]: number }`.\n && typeChecker.getTypeOfSymbolAtLocation(symbol, location).getNonNullableType().getCallSignatures().length !== 0) {\n return \"method\" /* memberFunctionElement */;\n }\n if (typeChecker.isUndefinedSymbol(symbol)) {\n return \"var\" /* variableElement */;\n }\n if (typeChecker.isArgumentsSymbol(symbol)) {\n return \"local var\" /* localVariableElement */;\n }\n if (location.kind === 108 /* ThisKeyword */ && ts.isExpression(location)) {\n return \"parameter\" /* parameterElement */;\n }\n var flags = ts.getCombinedLocalAndExportSymbolFlags(symbol);\n if (flags & 3 /* Variable */) {\n if (ts.isFirstDeclarationOfSymbolParameter(symbol)) {\n return \"parameter\" /* parameterElement */;\n }\n else if (symbol.valueDeclaration && ts.isVarConst(symbol.valueDeclaration)) {\n return \"const\" /* constElement */;\n }\n else if (ts.forEach(symbol.declarations, ts.isLet)) {\n return \"let\" /* letElement */;\n }\n return isLocalVariableOrFunction(symbol) ? \"local var\" /* localVariableElement */ : \"var\" /* variableElement */;\n }\n if (flags & 16 /* Function */)\n return isLocalVariableOrFunction(symbol) ? \"local function\" /* localFunctionElement */ : \"function\" /* functionElement */;\n if (flags & 32768 /* GetAccessor */)\n return \"getter\" /* memberGetAccessorElement */;\n if (flags & 65536 /* SetAccessor */)\n return \"setter\" /* memberSetAccessorElement */;\n if (flags & 8192 /* Method */)\n return \"method\" /* memberFunctionElement */;\n if (flags & 16384 /* Constructor */)\n return \"constructor\" /* constructorImplementationElement */;\n if (flags & 4 /* Property */) {\n if (flags & 33554432 /* Transient */ && symbol.checkFlags & 6 /* Synthetic */) {\n // If union property is result of union of non method (property/accessors/variables), it is labeled as property\n var unionPropertyKind = ts.forEach(typeChecker.getRootSymbols(symbol), function (rootSymbol) {\n var rootSymbolFlags = rootSymbol.getFlags();\n if (rootSymbolFlags & (98308 /* PropertyOrAccessor */ | 3 /* Variable */)) {\n return \"property\" /* memberVariableElement */;\n }\n });\n if (!unionPropertyKind) {\n // If this was union of all methods,\n // make sure it has call signatures before we can label it as method\n var typeOfUnionProperty = typeChecker.getTypeOfSymbolAtLocation(symbol, location);\n if (typeOfUnionProperty.getCallSignatures().length) {\n return \"method\" /* memberFunctionElement */;\n }\n return \"property\" /* memberVariableElement */;\n }\n return unionPropertyKind;\n }\n // If we requested completions after `x.` at the top-level, we may be at a source file location.\n switch (location.parent && location.parent.kind) {\n // If we've typed a character of the attribute name, will be 'JsxAttribute', else will be 'JsxOpeningElement'.\n case 278 /* JsxOpeningElement */:\n case 276 /* JsxElement */:\n case 277 /* JsxSelfClosingElement */:\n return location.kind === 79 /* Identifier */ ? \"property\" /* memberVariableElement */ : \"JSX attribute\" /* jsxAttribute */;\n case 283 /* JsxAttribute */:\n return \"JSX attribute\" /* jsxAttribute */;\n default:\n return \"property\" /* memberVariableElement */;\n }\n }\n return \"\" /* unknown */;\n }\n function getNormalizedSymbolModifiers(symbol) {\n if (symbol.declarations && symbol.declarations.length) {\n var _a = symbol.declarations, declaration = _a[0], declarations = _a.slice(1);\n // omit deprecated flag if some declarations are not deprecated\n var excludeFlags = ts.length(declarations) && ts.isDeprecatedDeclaration(declaration) && ts.some(declarations, function (d) { return !ts.isDeprecatedDeclaration(d); })\n ? 8192 /* Deprecated */\n : 0 /* None */;\n var modifiers = ts.getNodeModifiers(declaration, excludeFlags);\n if (modifiers) {\n return modifiers.split(\",\");\n }\n }\n return [];\n }\n function getSymbolModifiers(typeChecker, symbol) {\n if (!symbol) {\n return \"\" /* none */;\n }\n var modifiers = new ts.Set(getNormalizedSymbolModifiers(symbol));\n if (symbol.flags & 2097152 /* Alias */) {\n var resolvedSymbol = typeChecker.getAliasedSymbol(symbol);\n if (resolvedSymbol !== symbol) {\n ts.forEach(getNormalizedSymbolModifiers(resolvedSymbol), function (modifier) {\n modifiers.add(modifier);\n });\n }\n }\n if (symbol.flags & 16777216 /* Optional */) {\n modifiers.add(\"optional\" /* optionalModifier */);\n }\n return modifiers.size > 0 ? ts.arrayFrom(modifiers.values()).join(\",\") : \"\" /* none */;\n }\n SymbolDisplay.getSymbolModifiers = getSymbolModifiers;\n // TODO(drosen): Currently completion entry details passes the SemanticMeaning.All instead of using semanticMeaning of location\n function getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, enclosingDeclaration, location, semanticMeaning, alias) {\n var _a;\n if (semanticMeaning === void 0) { semanticMeaning = ts.getMeaningFromLocation(location); }\n var displayParts = [];\n var documentation = [];\n var tags = [];\n var symbolFlags = ts.getCombinedLocalAndExportSymbolFlags(symbol);\n var symbolKind = semanticMeaning & 1 /* Value */ ? getSymbolKindOfConstructorPropertyMethodAccessorFunctionOrVar(typeChecker, symbol, location) : \"\" /* unknown */;\n var hasAddedSymbolInfo = false;\n var isThisExpression = location.kind === 108 /* ThisKeyword */ && ts.isInExpressionContext(location);\n var type;\n var printer;\n var documentationFromAlias;\n var tagsFromAlias;\n var hasMultipleSignatures = false;\n if (location.kind === 108 /* ThisKeyword */ && !isThisExpression) {\n return { displayParts: [ts.keywordPart(108 /* ThisKeyword */)], documentation: [], symbolKind: \"primitive type\" /* primitiveType */, tags: undefined };\n }\n // Class at constructor site need to be shown as constructor apart from property,method, vars\n if (symbolKind !== \"\" /* unknown */ || symbolFlags & 32 /* Class */ || symbolFlags & 2097152 /* Alias */) {\n // If it is accessor they are allowed only if location is at name of the accessor\n if (symbolKind === \"getter\" /* memberGetAccessorElement */ || symbolKind === \"setter\" /* memberSetAccessorElement */) {\n symbolKind = \"property\" /* memberVariableElement */;\n }\n var signature = void 0;\n type = isThisExpression ? typeChecker.getTypeAtLocation(location) : typeChecker.getTypeOfSymbolAtLocation(symbol, location);\n if (location.parent && location.parent.kind === 204 /* PropertyAccessExpression */) {\n var right = location.parent.name;\n // Either the location is on the right of a property access, or on the left and the right is missing\n if (right === location || (right && right.getFullWidth() === 0)) {\n location = location.parent;\n }\n }\n // try get the call/construct signature from the type if it matches\n var callExpressionLike = void 0;\n if (ts.isCallOrNewExpression(location)) {\n callExpressionLike = location;\n }\n else if (ts.isCallExpressionTarget(location) || ts.isNewExpressionTarget(location)) {\n callExpressionLike = location.parent;\n }\n else if (location.parent && (ts.isJsxOpeningLikeElement(location.parent) || ts.isTaggedTemplateExpression(location.parent)) && ts.isFunctionLike(symbol.valueDeclaration)) {\n callExpressionLike = location.parent;\n }\n if (callExpressionLike) {\n signature = typeChecker.getResolvedSignature(callExpressionLike); // TODO: GH#18217\n var useConstructSignatures = callExpressionLike.kind === 207 /* NewExpression */ || (ts.isCallExpression(callExpressionLike) && callExpressionLike.expression.kind === 106 /* SuperKeyword */);\n var allSignatures = useConstructSignatures ? type.getConstructSignatures() : type.getCallSignatures();\n if (signature && !ts.contains(allSignatures, signature.target) && !ts.contains(allSignatures, signature)) {\n // Get the first signature if there is one -- allSignatures may contain\n // either the original signature or its target, so check for either\n signature = allSignatures.length ? allSignatures[0] : undefined;\n }\n if (signature) {\n if (useConstructSignatures && (symbolFlags & 32 /* Class */)) {\n // Constructor\n symbolKind = \"constructor\" /* constructorImplementationElement */;\n addPrefixForAnyFunctionOrVar(type.symbol, symbolKind);\n }\n else if (symbolFlags & 2097152 /* Alias */) {\n symbolKind = \"alias\" /* alias */;\n pushSymbolKind(symbolKind);\n displayParts.push(ts.spacePart());\n if (useConstructSignatures) {\n if (signature.flags & 4 /* Abstract */) {\n displayParts.push(ts.keywordPart(126 /* AbstractKeyword */));\n displayParts.push(ts.spacePart());\n }\n displayParts.push(ts.keywordPart(103 /* NewKeyword */));\n displayParts.push(ts.spacePart());\n }\n addFullSymbolName(symbol);\n }\n else {\n addPrefixForAnyFunctionOrVar(symbol, symbolKind);\n }\n switch (symbolKind) {\n case \"JSX attribute\" /* jsxAttribute */:\n case \"property\" /* memberVariableElement */:\n case \"var\" /* variableElement */:\n case \"const\" /* constElement */:\n case \"let\" /* letElement */:\n case \"parameter\" /* parameterElement */:\n case \"local var\" /* localVariableElement */:\n // If it is call or construct signature of lambda's write type name\n displayParts.push(ts.punctuationPart(58 /* ColonToken */));\n displayParts.push(ts.spacePart());\n if (!(ts.getObjectFlags(type) & 16 /* Anonymous */) && type.symbol) {\n ts.addRange(displayParts, ts.symbolToDisplayParts(typeChecker, type.symbol, enclosingDeclaration, /*meaning*/ undefined, 4 /* AllowAnyNodeKind */ | 1 /* WriteTypeParametersOrArguments */));\n displayParts.push(ts.lineBreakPart());\n }\n if (useConstructSignatures) {\n if (signature.flags & 4 /* Abstract */) {\n displayParts.push(ts.keywordPart(126 /* AbstractKeyword */));\n displayParts.push(ts.spacePart());\n }\n displayParts.push(ts.keywordPart(103 /* NewKeyword */));\n displayParts.push(ts.spacePart());\n }\n addSignatureDisplayParts(signature, allSignatures, 262144 /* WriteArrowStyleSignature */);\n break;\n default:\n // Just signature\n addSignatureDisplayParts(signature, allSignatures);\n }\n hasAddedSymbolInfo = true;\n hasMultipleSignatures = allSignatures.length > 1;\n }\n }\n else if ((ts.isNameOfFunctionDeclaration(location) && !(symbolFlags & 98304 /* Accessor */)) || // name of function declaration\n (location.kind === 133 /* ConstructorKeyword */ && location.parent.kind === 169 /* Constructor */)) { // At constructor keyword of constructor declaration\n // get the signature from the declaration and write it\n var functionDeclaration_1 = location.parent;\n // Use function declaration to write the signatures only if the symbol corresponding to this declaration\n var locationIsSymbolDeclaration = symbol.declarations && ts.find(symbol.declarations, function (declaration) {\n return declaration === (location.kind === 133 /* ConstructorKeyword */ ? functionDeclaration_1.parent : functionDeclaration_1);\n });\n if (locationIsSymbolDeclaration) {\n var allSignatures = functionDeclaration_1.kind === 169 /* Constructor */ ? type.getNonNullableType().getConstructSignatures() : type.getNonNullableType().getCallSignatures();\n if (!typeChecker.isImplementationOfOverload(functionDeclaration_1)) {\n signature = typeChecker.getSignatureFromDeclaration(functionDeclaration_1); // TODO: GH#18217\n }\n else {\n signature = allSignatures[0];\n }\n if (functionDeclaration_1.kind === 169 /* Constructor */) {\n // show (constructor) Type(...) signature\n symbolKind = \"constructor\" /* constructorImplementationElement */;\n addPrefixForAnyFunctionOrVar(type.symbol, symbolKind);\n }\n else {\n // (function/method) symbol(..signature)\n addPrefixForAnyFunctionOrVar(functionDeclaration_1.kind === 172 /* CallSignature */ &&\n !(type.symbol.flags & 2048 /* TypeLiteral */ || type.symbol.flags & 4096 /* ObjectLiteral */) ? type.symbol : symbol, symbolKind);\n }\n if (signature) {\n addSignatureDisplayParts(signature, allSignatures);\n }\n hasAddedSymbolInfo = true;\n hasMultipleSignatures = allSignatures.length > 1;\n }\n }\n }\n if (symbolFlags & 32 /* Class */ && !hasAddedSymbolInfo && !isThisExpression) {\n addAliasPrefixIfNecessary();\n if (ts.getDeclarationOfKind(symbol, 224 /* ClassExpression */)) {\n // Special case for class expressions because we would like to indicate that\n // the class name is local to the class body (similar to function expression)\n // (local class) class \n pushSymbolKind(\"local class\" /* localClassElement */);\n }\n else {\n // Class declaration has name which is not local.\n displayParts.push(ts.keywordPart(84 /* ClassKeyword */));\n }\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n writeTypeParametersOfSymbol(symbol, sourceFile);\n }\n if ((symbolFlags & 64 /* Interface */) && (semanticMeaning & 2 /* Type */)) {\n prefixNextMeaning();\n displayParts.push(ts.keywordPart(118 /* InterfaceKeyword */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n writeTypeParametersOfSymbol(symbol, sourceFile);\n }\n if ((symbolFlags & 524288 /* TypeAlias */) && (semanticMeaning & 2 /* Type */)) {\n prefixNextMeaning();\n displayParts.push(ts.keywordPart(150 /* TypeKeyword */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n writeTypeParametersOfSymbol(symbol, sourceFile);\n displayParts.push(ts.spacePart());\n displayParts.push(ts.operatorPart(63 /* EqualsToken */));\n displayParts.push(ts.spacePart());\n ts.addRange(displayParts, ts.typeToDisplayParts(typeChecker, typeChecker.getDeclaredTypeOfSymbol(symbol), enclosingDeclaration, 8388608 /* InTypeAlias */));\n }\n if (symbolFlags & 384 /* Enum */) {\n prefixNextMeaning();\n if (ts.some(symbol.declarations, function (d) { return ts.isEnumDeclaration(d) && ts.isEnumConst(d); })) {\n displayParts.push(ts.keywordPart(85 /* ConstKeyword */));\n displayParts.push(ts.spacePart());\n }\n displayParts.push(ts.keywordPart(92 /* EnumKeyword */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n }\n if (symbolFlags & 1536 /* Module */ && !isThisExpression) {\n prefixNextMeaning();\n var declaration = ts.getDeclarationOfKind(symbol, 259 /* ModuleDeclaration */);\n var isNamespace = declaration && declaration.name && declaration.name.kind === 79 /* Identifier */;\n displayParts.push(ts.keywordPart(isNamespace ? 141 /* NamespaceKeyword */ : 140 /* ModuleKeyword */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n }\n if ((symbolFlags & 262144 /* TypeParameter */) && (semanticMeaning & 2 /* Type */)) {\n prefixNextMeaning();\n displayParts.push(ts.punctuationPart(20 /* OpenParenToken */));\n displayParts.push(ts.textPart(\"type parameter\"));\n displayParts.push(ts.punctuationPart(21 /* CloseParenToken */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n if (symbol.parent) {\n // Class/Interface type parameter\n addInPrefix();\n addFullSymbolName(symbol.parent, enclosingDeclaration);\n writeTypeParametersOfSymbol(symbol.parent, enclosingDeclaration);\n }\n else {\n // Method/function type parameter\n var decl = ts.getDeclarationOfKind(symbol, 161 /* TypeParameter */);\n if (decl === undefined)\n return ts.Debug.fail();\n var declaration = decl.parent;\n if (declaration) {\n if (ts.isFunctionLikeKind(declaration.kind)) {\n addInPrefix();\n var signature = typeChecker.getSignatureFromDeclaration(declaration); // TODO: GH#18217\n if (declaration.kind === 173 /* ConstructSignature */) {\n displayParts.push(ts.keywordPart(103 /* NewKeyword */));\n displayParts.push(ts.spacePart());\n }\n else if (declaration.kind !== 172 /* CallSignature */ && declaration.name) {\n addFullSymbolName(declaration.symbol);\n }\n ts.addRange(displayParts, ts.signatureToDisplayParts(typeChecker, signature, sourceFile, 32 /* WriteTypeArgumentsOfSignature */));\n }\n else if (declaration.kind === 257 /* TypeAliasDeclaration */) {\n // Type alias type parameter\n // For example\n // type list = T[]; // Both T will go through same code path\n addInPrefix();\n displayParts.push(ts.keywordPart(150 /* TypeKeyword */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(declaration.symbol);\n writeTypeParametersOfSymbol(declaration.symbol, sourceFile);\n }\n }\n }\n }\n if (symbolFlags & 8 /* EnumMember */) {\n symbolKind = \"enum member\" /* enumMemberElement */;\n addPrefixForAnyFunctionOrVar(symbol, \"enum member\");\n var declaration = (_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a[0];\n if ((declaration === null || declaration === void 0 ? void 0 : declaration.kind) === 294 /* EnumMember */) {\n var constantValue = typeChecker.getConstantValue(declaration);\n if (constantValue !== undefined) {\n displayParts.push(ts.spacePart());\n displayParts.push(ts.operatorPart(63 /* EqualsToken */));\n displayParts.push(ts.spacePart());\n displayParts.push(ts.displayPart(ts.getTextOfConstantValue(constantValue), typeof constantValue === \"number\" ? ts.SymbolDisplayPartKind.numericLiteral : ts.SymbolDisplayPartKind.stringLiteral));\n }\n }\n }\n // don't use symbolFlags since getAliasedSymbol requires the flag on the symbol itself\n if (symbol.flags & 2097152 /* Alias */) {\n prefixNextMeaning();\n if (!hasAddedSymbolInfo) {\n var resolvedSymbol = typeChecker.getAliasedSymbol(symbol);\n if (resolvedSymbol !== symbol && resolvedSymbol.declarations && resolvedSymbol.declarations.length > 0) {\n var resolvedNode = resolvedSymbol.declarations[0];\n var declarationName = ts.getNameOfDeclaration(resolvedNode);\n if (declarationName) {\n var isExternalModuleDeclaration = ts.isModuleWithStringLiteralName(resolvedNode) &&\n ts.hasSyntacticModifier(resolvedNode, 2 /* Ambient */);\n var shouldUseAliasName = symbol.name !== \"default\" && !isExternalModuleDeclaration;\n var resolvedInfo = getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, resolvedSymbol, ts.getSourceFileOfNode(resolvedNode), resolvedNode, declarationName, semanticMeaning, shouldUseAliasName ? symbol : resolvedSymbol);\n displayParts.push.apply(displayParts, resolvedInfo.displayParts);\n displayParts.push(ts.lineBreakPart());\n documentationFromAlias = resolvedInfo.documentation;\n tagsFromAlias = resolvedInfo.tags;\n }\n else {\n documentationFromAlias = resolvedSymbol.getContextualDocumentationComment(resolvedNode, typeChecker);\n tagsFromAlias = resolvedSymbol.getJsDocTags(typeChecker);\n }\n }\n }\n if (symbol.declarations) {\n switch (symbol.declarations[0].kind) {\n case 262 /* NamespaceExportDeclaration */:\n displayParts.push(ts.keywordPart(93 /* ExportKeyword */));\n displayParts.push(ts.spacePart());\n displayParts.push(ts.keywordPart(141 /* NamespaceKeyword */));\n break;\n case 269 /* ExportAssignment */:\n displayParts.push(ts.keywordPart(93 /* ExportKeyword */));\n displayParts.push(ts.spacePart());\n displayParts.push(ts.keywordPart(symbol.declarations[0].isExportEquals ? 63 /* EqualsToken */ : 88 /* DefaultKeyword */));\n break;\n case 273 /* ExportSpecifier */:\n displayParts.push(ts.keywordPart(93 /* ExportKeyword */));\n break;\n default:\n displayParts.push(ts.keywordPart(100 /* ImportKeyword */));\n }\n }\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n ts.forEach(symbol.declarations, function (declaration) {\n if (declaration.kind === 263 /* ImportEqualsDeclaration */) {\n var importEqualsDeclaration = declaration;\n if (ts.isExternalModuleImportEqualsDeclaration(importEqualsDeclaration)) {\n displayParts.push(ts.spacePart());\n displayParts.push(ts.operatorPart(63 /* EqualsToken */));\n displayParts.push(ts.spacePart());\n displayParts.push(ts.keywordPart(144 /* RequireKeyword */));\n displayParts.push(ts.punctuationPart(20 /* OpenParenToken */));\n displayParts.push(ts.displayPart(ts.getTextOfNode(ts.getExternalModuleImportEqualsDeclarationExpression(importEqualsDeclaration)), ts.SymbolDisplayPartKind.stringLiteral));\n displayParts.push(ts.punctuationPart(21 /* CloseParenToken */));\n }\n else {\n var internalAliasSymbol = typeChecker.getSymbolAtLocation(importEqualsDeclaration.moduleReference);\n if (internalAliasSymbol) {\n displayParts.push(ts.spacePart());\n displayParts.push(ts.operatorPart(63 /* EqualsToken */));\n displayParts.push(ts.spacePart());\n addFullSymbolName(internalAliasSymbol, enclosingDeclaration);\n }\n }\n return true;\n }\n });\n }\n if (!hasAddedSymbolInfo) {\n if (symbolKind !== \"\" /* unknown */) {\n if (type) {\n if (isThisExpression) {\n prefixNextMeaning();\n displayParts.push(ts.keywordPart(108 /* ThisKeyword */));\n }\n else {\n addPrefixForAnyFunctionOrVar(symbol, symbolKind);\n }\n // For properties, variables and local vars: show the type\n if (symbolKind === \"property\" /* memberVariableElement */ ||\n symbolKind === \"JSX attribute\" /* jsxAttribute */ ||\n symbolFlags & 3 /* Variable */ ||\n symbolKind === \"local var\" /* localVariableElement */ ||\n isThisExpression) {\n displayParts.push(ts.punctuationPart(58 /* ColonToken */));\n displayParts.push(ts.spacePart());\n // If the type is type parameter, format it specially\n if (type.symbol && type.symbol.flags & 262144 /* TypeParameter */) {\n var typeParameterParts = ts.mapToDisplayParts(function (writer) {\n var param = typeChecker.typeParameterToDeclaration(type, enclosingDeclaration, symbolDisplayNodeBuilderFlags);\n getPrinter().writeNode(4 /* Unspecified */, param, ts.getSourceFileOfNode(ts.getParseTreeNode(enclosingDeclaration)), writer);\n });\n ts.addRange(displayParts, typeParameterParts);\n }\n else {\n ts.addRange(displayParts, ts.typeToDisplayParts(typeChecker, type, enclosingDeclaration));\n }\n if (symbol.target && symbol.target.tupleLabelDeclaration) {\n var labelDecl = symbol.target.tupleLabelDeclaration;\n ts.Debug.assertNode(labelDecl.name, ts.isIdentifier);\n displayParts.push(ts.spacePart());\n displayParts.push(ts.punctuationPart(20 /* OpenParenToken */));\n displayParts.push(ts.textPart(ts.idText(labelDecl.name)));\n displayParts.push(ts.punctuationPart(21 /* CloseParenToken */));\n }\n }\n else if (symbolFlags & 16 /* Function */ ||\n symbolFlags & 8192 /* Method */ ||\n symbolFlags & 16384 /* Constructor */ ||\n symbolFlags & 131072 /* Signature */ ||\n symbolFlags & 98304 /* Accessor */ ||\n symbolKind === \"method\" /* memberFunctionElement */) {\n var allSignatures = type.getNonNullableType().getCallSignatures();\n if (allSignatures.length) {\n addSignatureDisplayParts(allSignatures[0], allSignatures);\n hasMultipleSignatures = allSignatures.length > 1;\n }\n }\n }\n }\n else {\n symbolKind = getSymbolKind(typeChecker, symbol, location);\n }\n }\n if (documentation.length === 0 && !hasMultipleSignatures) {\n documentation = symbol.getContextualDocumentationComment(enclosingDeclaration, typeChecker);\n }\n if (documentation.length === 0 && symbolFlags & 4 /* Property */) {\n // For some special property access expressions like `exports.foo = foo` or `module.exports.foo = foo`\n // there documentation comments might be attached to the right hand side symbol of their declarations.\n // The pattern of such special property access is that the parent symbol is the symbol of the file.\n if (symbol.parent && symbol.declarations && ts.forEach(symbol.parent.declarations, function (declaration) { return declaration.kind === 300 /* SourceFile */; })) {\n for (var _i = 0, _b = symbol.declarations; _i < _b.length; _i++) {\n var declaration = _b[_i];\n if (!declaration.parent || declaration.parent.kind !== 219 /* BinaryExpression */) {\n continue;\n }\n var rhsSymbol = typeChecker.getSymbolAtLocation(declaration.parent.right);\n if (!rhsSymbol) {\n continue;\n }\n documentation = rhsSymbol.getDocumentationComment(typeChecker);\n tags = rhsSymbol.getJsDocTags(typeChecker);\n if (documentation.length > 0) {\n break;\n }\n }\n }\n }\n if (tags.length === 0 && !hasMultipleSignatures) {\n tags = symbol.getJsDocTags(typeChecker);\n }\n if (documentation.length === 0 && documentationFromAlias) {\n documentation = documentationFromAlias;\n }\n if (tags.length === 0 && tagsFromAlias) {\n tags = tagsFromAlias;\n }\n return { displayParts: displayParts, documentation: documentation, symbolKind: symbolKind, tags: tags.length === 0 ? undefined : tags };\n function getPrinter() {\n if (!printer) {\n printer = ts.createPrinter({ removeComments: true });\n }\n return printer;\n }\n function prefixNextMeaning() {\n if (displayParts.length) {\n displayParts.push(ts.lineBreakPart());\n }\n addAliasPrefixIfNecessary();\n }\n function addAliasPrefixIfNecessary() {\n if (alias) {\n pushSymbolKind(\"alias\" /* alias */);\n displayParts.push(ts.spacePart());\n }\n }\n function addInPrefix() {\n displayParts.push(ts.spacePart());\n displayParts.push(ts.keywordPart(101 /* InKeyword */));\n displayParts.push(ts.spacePart());\n }\n function addFullSymbolName(symbolToDisplay, enclosingDeclaration) {\n if (alias && symbolToDisplay === symbol) {\n symbolToDisplay = alias;\n }\n var fullSymbolDisplayParts = ts.symbolToDisplayParts(typeChecker, symbolToDisplay, enclosingDeclaration || sourceFile, /*meaning*/ undefined, 1 /* WriteTypeParametersOrArguments */ | 2 /* UseOnlyExternalAliasing */ | 4 /* AllowAnyNodeKind */);\n ts.addRange(displayParts, fullSymbolDisplayParts);\n if (symbol.flags & 16777216 /* Optional */) {\n displayParts.push(ts.punctuationPart(57 /* QuestionToken */));\n }\n }\n function addPrefixForAnyFunctionOrVar(symbol, symbolKind) {\n prefixNextMeaning();\n if (symbolKind) {\n pushSymbolKind(symbolKind);\n if (symbol && !ts.some(symbol.declarations, function (d) { return ts.isArrowFunction(d) || (ts.isFunctionExpression(d) || ts.isClassExpression(d)) && !d.name; })) {\n displayParts.push(ts.spacePart());\n addFullSymbolName(symbol);\n }\n }\n }\n function pushSymbolKind(symbolKind) {\n switch (symbolKind) {\n case \"var\" /* variableElement */:\n case \"function\" /* functionElement */:\n case \"let\" /* letElement */:\n case \"const\" /* constElement */:\n case \"constructor\" /* constructorImplementationElement */:\n displayParts.push(ts.textOrKeywordPart(symbolKind));\n return;\n default:\n displayParts.push(ts.punctuationPart(20 /* OpenParenToken */));\n displayParts.push(ts.textOrKeywordPart(symbolKind));\n displayParts.push(ts.punctuationPart(21 /* CloseParenToken */));\n return;\n }\n }\n function addSignatureDisplayParts(signature, allSignatures, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n ts.addRange(displayParts, ts.signatureToDisplayParts(typeChecker, signature, enclosingDeclaration, flags | 32 /* WriteTypeArgumentsOfSignature */));\n if (allSignatures.length > 1) {\n displayParts.push(ts.spacePart());\n displayParts.push(ts.punctuationPart(20 /* OpenParenToken */));\n displayParts.push(ts.operatorPart(39 /* PlusToken */));\n displayParts.push(ts.displayPart((allSignatures.length - 1).toString(), ts.SymbolDisplayPartKind.numericLiteral));\n displayParts.push(ts.spacePart());\n displayParts.push(ts.textPart(allSignatures.length === 2 ? \"overload\" : \"overloads\"));\n displayParts.push(ts.punctuationPart(21 /* CloseParenToken */));\n }\n documentation = signature.getDocumentationComment(typeChecker);\n tags = signature.getJsDocTags();\n if (allSignatures.length > 1 && documentation.length === 0 && tags.length === 0) {\n documentation = allSignatures[0].getDocumentationComment(typeChecker);\n tags = allSignatures[0].getJsDocTags();\n }\n }\n function writeTypeParametersOfSymbol(symbol, enclosingDeclaration) {\n var typeParameterParts = ts.mapToDisplayParts(function (writer) {\n var params = typeChecker.symbolToTypeParameterDeclarations(symbol, enclosingDeclaration, symbolDisplayNodeBuilderFlags);\n getPrinter().writeList(53776 /* TypeParameters */, params, ts.getSourceFileOfNode(ts.getParseTreeNode(enclosingDeclaration)), writer);\n });\n ts.addRange(displayParts, typeParameterParts);\n }\n }\n SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind = getSymbolDisplayPartsDocumentationAndSymbolKind;\n function isLocalVariableOrFunction(symbol) {\n if (symbol.parent) {\n return false; // This is exported symbol\n }\n return ts.forEach(symbol.declarations, function (declaration) {\n // Function expressions are local\n if (declaration.kind === 211 /* FunctionExpression */) {\n return true;\n }\n if (declaration.kind !== 252 /* VariableDeclaration */ && declaration.kind !== 254 /* FunctionDeclaration */) {\n return false;\n }\n // If the parent is not sourceFile or module block it is local variable\n for (var parent = declaration.parent; !ts.isFunctionBlock(parent); parent = parent.parent) {\n // Reached source file or module block\n if (parent.kind === 300 /* SourceFile */ || parent.kind === 260 /* ModuleBlock */) {\n return false;\n }\n }\n // parent is in function block\n return true;\n });\n }\n })(SymbolDisplay = ts.SymbolDisplay || (ts.SymbolDisplay = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /*\n * This function will compile source text from 'input' argument using specified compiler options.\n * If not options are provided - it will use a set of default compiler options.\n * Extra compiler options that will unconditionally be used by this function are:\n * - isolatedModules = true\n * - allowNonTsExtensions = true\n * - noLib = true\n * - noResolve = true\n */\n function transpileModule(input, transpileOptions) {\n var diagnostics = [];\n var options = transpileOptions.compilerOptions ? fixupCompilerOptions(transpileOptions.compilerOptions, diagnostics) : {};\n // mix in default options\n var defaultOptions = ts.getDefaultCompilerOptions();\n for (var key in defaultOptions) {\n if (ts.hasProperty(defaultOptions, key) && options[key] === undefined) {\n options[key] = defaultOptions[key];\n }\n }\n for (var _i = 0, transpileOptionValueCompilerOptions_1 = ts.transpileOptionValueCompilerOptions; _i < transpileOptionValueCompilerOptions_1.length; _i++) {\n var option = transpileOptionValueCompilerOptions_1[_i];\n options[option.name] = option.transpileOptionValue;\n }\n // transpileModule does not write anything to disk so there is no need to verify that there are no conflicts between input and output paths.\n options.suppressOutputPathCheck = true;\n // Filename can be non-ts file.\n options.allowNonTsExtensions = true;\n // if jsx is specified then treat file as .tsx\n var inputFileName = transpileOptions.fileName || (transpileOptions.compilerOptions && transpileOptions.compilerOptions.jsx ? \"module.tsx\" : \"module.ts\");\n var sourceFile = ts.createSourceFile(inputFileName, input, options.target); // TODO: GH#18217\n if (transpileOptions.moduleName) {\n sourceFile.moduleName = transpileOptions.moduleName;\n }\n if (transpileOptions.renamedDependencies) {\n sourceFile.renamedDependencies = new ts.Map(ts.getEntries(transpileOptions.renamedDependencies));\n }\n var newLine = ts.getNewLineCharacter(options);\n // Output\n var outputText;\n var sourceMapText;\n // Create a compilerHost object to allow the compiler to read and write files\n var compilerHost = {\n getSourceFile: function (fileName) { return fileName === ts.normalizePath(inputFileName) ? sourceFile : undefined; },\n writeFile: function (name, text) {\n if (ts.fileExtensionIs(name, \".map\")) {\n ts.Debug.assertEqual(sourceMapText, undefined, \"Unexpected multiple source map outputs, file:\", name);\n sourceMapText = text;\n }\n else {\n ts.Debug.assertEqual(outputText, undefined, \"Unexpected multiple outputs, file:\", name);\n outputText = text;\n }\n },\n getDefaultLibFileName: function () { return \"lib.d.ts\"; },\n useCaseSensitiveFileNames: function () { return false; },\n getCanonicalFileName: function (fileName) { return fileName; },\n getCurrentDirectory: function () { return \"\"; },\n getNewLine: function () { return newLine; },\n fileExists: function (fileName) { return fileName === inputFileName; },\n readFile: function () { return \"\"; },\n directoryExists: function () { return true; },\n getDirectories: function () { return []; }\n };\n var program = ts.createProgram([inputFileName], options, compilerHost);\n if (transpileOptions.reportDiagnostics) {\n ts.addRange(/*to*/ diagnostics, /*from*/ program.getSyntacticDiagnostics(sourceFile));\n ts.addRange(/*to*/ diagnostics, /*from*/ program.getOptionsDiagnostics());\n }\n // Emit\n program.emit(/*targetSourceFile*/ undefined, /*writeFile*/ undefined, /*cancellationToken*/ undefined, /*emitOnlyDtsFiles*/ undefined, transpileOptions.transformers);\n if (outputText === undefined)\n return ts.Debug.fail(\"Output generation failed\");\n return { outputText: outputText, diagnostics: diagnostics, sourceMapText: sourceMapText };\n }\n ts.transpileModule = transpileModule;\n /*\n * This is a shortcut function for transpileModule - it accepts transpileOptions as parameters and returns only outputText part of the result.\n */\n function transpile(input, compilerOptions, fileName, diagnostics, moduleName) {\n var output = transpileModule(input, { compilerOptions: compilerOptions, fileName: fileName, reportDiagnostics: !!diagnostics, moduleName: moduleName });\n // addRange correctly handles cases when wither 'from' or 'to' argument is missing\n ts.addRange(diagnostics, output.diagnostics);\n return output.outputText;\n }\n ts.transpile = transpile;\n var commandLineOptionsStringToEnum;\n /** JS users may pass in string values for enum compiler options (such as ModuleKind), so convert. */\n /*@internal*/\n function fixupCompilerOptions(options, diagnostics) {\n // Lazily create this value to fix module loading errors.\n commandLineOptionsStringToEnum = commandLineOptionsStringToEnum ||\n ts.filter(ts.optionDeclarations, function (o) { return typeof o.type === \"object\" && !ts.forEachEntry(o.type, function (v) { return typeof v !== \"number\"; }); });\n options = ts.cloneCompilerOptions(options);\n var _loop_9 = function (opt) {\n if (!ts.hasProperty(options, opt.name)) {\n return \"continue\";\n }\n var value = options[opt.name];\n // Value should be a key of opt.type\n if (ts.isString(value)) {\n // If value is not a string, this will fail\n options[opt.name] = ts.parseCustomTypeOption(opt, value, diagnostics);\n }\n else {\n if (!ts.forEachEntry(opt.type, function (v) { return v === value; })) {\n // Supplied value isn't a valid enum value.\n diagnostics.push(ts.createCompilerDiagnosticForInvalidCustomType(opt));\n }\n }\n };\n for (var _i = 0, commandLineOptionsStringToEnum_1 = commandLineOptionsStringToEnum; _i < commandLineOptionsStringToEnum_1.length; _i++) {\n var opt = commandLineOptionsStringToEnum_1[_i];\n _loop_9(opt);\n }\n return options;\n }\n ts.fixupCompilerOptions = fixupCompilerOptions;\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n var FormattingRequestKind;\n (function (FormattingRequestKind) {\n FormattingRequestKind[FormattingRequestKind[\"FormatDocument\"] = 0] = \"FormatDocument\";\n FormattingRequestKind[FormattingRequestKind[\"FormatSelection\"] = 1] = \"FormatSelection\";\n FormattingRequestKind[FormattingRequestKind[\"FormatOnEnter\"] = 2] = \"FormatOnEnter\";\n FormattingRequestKind[FormattingRequestKind[\"FormatOnSemicolon\"] = 3] = \"FormatOnSemicolon\";\n FormattingRequestKind[FormattingRequestKind[\"FormatOnOpeningCurlyBrace\"] = 4] = \"FormatOnOpeningCurlyBrace\";\n FormattingRequestKind[FormattingRequestKind[\"FormatOnClosingCurlyBrace\"] = 5] = \"FormatOnClosingCurlyBrace\";\n })(FormattingRequestKind = formatting.FormattingRequestKind || (formatting.FormattingRequestKind = {}));\n var FormattingContext = /** @class */ (function () {\n function FormattingContext(sourceFile, formattingRequestKind, options) {\n this.sourceFile = sourceFile;\n this.formattingRequestKind = formattingRequestKind;\n this.options = options;\n }\n FormattingContext.prototype.updateContext = function (currentRange, currentTokenParent, nextRange, nextTokenParent, commonParent) {\n this.currentTokenSpan = ts.Debug.checkDefined(currentRange);\n this.currentTokenParent = ts.Debug.checkDefined(currentTokenParent);\n this.nextTokenSpan = ts.Debug.checkDefined(nextRange);\n this.nextTokenParent = ts.Debug.checkDefined(nextTokenParent);\n this.contextNode = ts.Debug.checkDefined(commonParent);\n // drop cached results\n this.contextNodeAllOnSameLine = undefined;\n this.nextNodeAllOnSameLine = undefined;\n this.tokensAreOnSameLine = undefined;\n this.contextNodeBlockIsOnOneLine = undefined;\n this.nextNodeBlockIsOnOneLine = undefined;\n };\n FormattingContext.prototype.ContextNodeAllOnSameLine = function () {\n if (this.contextNodeAllOnSameLine === undefined) {\n this.contextNodeAllOnSameLine = this.NodeIsOnOneLine(this.contextNode);\n }\n return this.contextNodeAllOnSameLine;\n };\n FormattingContext.prototype.NextNodeAllOnSameLine = function () {\n if (this.nextNodeAllOnSameLine === undefined) {\n this.nextNodeAllOnSameLine = this.NodeIsOnOneLine(this.nextTokenParent);\n }\n return this.nextNodeAllOnSameLine;\n };\n FormattingContext.prototype.TokensAreOnSameLine = function () {\n if (this.tokensAreOnSameLine === undefined) {\n var startLine = this.sourceFile.getLineAndCharacterOfPosition(this.currentTokenSpan.pos).line;\n var endLine = this.sourceFile.getLineAndCharacterOfPosition(this.nextTokenSpan.pos).line;\n this.tokensAreOnSameLine = (startLine === endLine);\n }\n return this.tokensAreOnSameLine;\n };\n FormattingContext.prototype.ContextNodeBlockIsOnOneLine = function () {\n if (this.contextNodeBlockIsOnOneLine === undefined) {\n this.contextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(this.contextNode);\n }\n return this.contextNodeBlockIsOnOneLine;\n };\n FormattingContext.prototype.NextNodeBlockIsOnOneLine = function () {\n if (this.nextNodeBlockIsOnOneLine === undefined) {\n this.nextNodeBlockIsOnOneLine = this.BlockIsOnOneLine(this.nextTokenParent);\n }\n return this.nextNodeBlockIsOnOneLine;\n };\n FormattingContext.prototype.NodeIsOnOneLine = function (node) {\n var startLine = this.sourceFile.getLineAndCharacterOfPosition(node.getStart(this.sourceFile)).line;\n var endLine = this.sourceFile.getLineAndCharacterOfPosition(node.getEnd()).line;\n return startLine === endLine;\n };\n FormattingContext.prototype.BlockIsOnOneLine = function (node) {\n var openBrace = ts.findChildOfKind(node, 18 /* OpenBraceToken */, this.sourceFile);\n var closeBrace = ts.findChildOfKind(node, 19 /* CloseBraceToken */, this.sourceFile);\n if (openBrace && closeBrace) {\n var startLine = this.sourceFile.getLineAndCharacterOfPosition(openBrace.getEnd()).line;\n var endLine = this.sourceFile.getLineAndCharacterOfPosition(closeBrace.getStart(this.sourceFile)).line;\n return startLine === endLine;\n }\n return false;\n };\n return FormattingContext;\n }());\n formatting.FormattingContext = FormattingContext;\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n var standardScanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ false, 0 /* Standard */);\n var jsxScanner = ts.createScanner(99 /* Latest */, /*skipTrivia*/ false, 1 /* JSX */);\n var ScanAction;\n (function (ScanAction) {\n ScanAction[ScanAction[\"Scan\"] = 0] = \"Scan\";\n ScanAction[ScanAction[\"RescanGreaterThanToken\"] = 1] = \"RescanGreaterThanToken\";\n ScanAction[ScanAction[\"RescanSlashToken\"] = 2] = \"RescanSlashToken\";\n ScanAction[ScanAction[\"RescanTemplateToken\"] = 3] = \"RescanTemplateToken\";\n ScanAction[ScanAction[\"RescanJsxIdentifier\"] = 4] = \"RescanJsxIdentifier\";\n ScanAction[ScanAction[\"RescanJsxText\"] = 5] = \"RescanJsxText\";\n ScanAction[ScanAction[\"RescanJsxAttributeValue\"] = 6] = \"RescanJsxAttributeValue\";\n })(ScanAction || (ScanAction = {}));\n function getFormattingScanner(text, languageVariant, startPos, endPos, cb) {\n var scanner = languageVariant === 1 /* JSX */ ? jsxScanner : standardScanner;\n scanner.setText(text);\n scanner.setTextPos(startPos);\n var wasNewLine = true;\n var leadingTrivia;\n var trailingTrivia;\n var savedPos;\n var lastScanAction;\n var lastTokenInfo;\n var res = cb({\n advance: advance,\n readTokenInfo: readTokenInfo,\n readEOFTokenRange: readEOFTokenRange,\n isOnToken: isOnToken,\n isOnEOF: isOnEOF,\n getCurrentLeadingTrivia: function () { return leadingTrivia; },\n lastTrailingTriviaWasNewLine: function () { return wasNewLine; },\n skipToEndOf: skipToEndOf,\n skipToStartOf: skipToStartOf,\n });\n lastTokenInfo = undefined;\n scanner.setText(undefined);\n return res;\n function advance() {\n lastTokenInfo = undefined;\n var isStarted = scanner.getStartPos() !== startPos;\n if (isStarted) {\n wasNewLine = !!trailingTrivia && ts.last(trailingTrivia).kind === 4 /* NewLineTrivia */;\n }\n else {\n scanner.scan();\n }\n leadingTrivia = undefined;\n trailingTrivia = undefined;\n var pos = scanner.getStartPos();\n // Read leading trivia and token\n while (pos < endPos) {\n var t = scanner.getToken();\n if (!ts.isTrivia(t)) {\n break;\n }\n // consume leading trivia\n scanner.scan();\n var item = {\n pos: pos,\n end: scanner.getStartPos(),\n kind: t\n };\n pos = scanner.getStartPos();\n leadingTrivia = ts.append(leadingTrivia, item);\n }\n savedPos = scanner.getStartPos();\n }\n function shouldRescanGreaterThanToken(node) {\n switch (node.kind) {\n case 33 /* GreaterThanEqualsToken */:\n case 71 /* GreaterThanGreaterThanEqualsToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n case 48 /* GreaterThanGreaterThanToken */:\n return true;\n }\n return false;\n }\n function shouldRescanJsxIdentifier(node) {\n if (node.parent) {\n switch (node.parent.kind) {\n case 283 /* JsxAttribute */:\n case 278 /* JsxOpeningElement */:\n case 279 /* JsxClosingElement */:\n case 277 /* JsxSelfClosingElement */:\n // May parse an identifier like `module-layout`; that will be scanned as a keyword at first, but we should parse the whole thing to get an identifier.\n return ts.isKeyword(node.kind) || node.kind === 79 /* Identifier */;\n }\n }\n return false;\n }\n function shouldRescanJsxText(node) {\n return ts.isJsxText(node);\n }\n function shouldRescanSlashToken(container) {\n return container.kind === 13 /* RegularExpressionLiteral */;\n }\n function shouldRescanTemplateToken(container) {\n return container.kind === 16 /* TemplateMiddle */ ||\n container.kind === 17 /* TemplateTail */;\n }\n function shouldRescanJsxAttributeValue(node) {\n return node.parent && ts.isJsxAttribute(node.parent) && node.parent.initializer === node;\n }\n function startsWithSlashToken(t) {\n return t === 43 /* SlashToken */ || t === 68 /* SlashEqualsToken */;\n }\n function readTokenInfo(n) {\n ts.Debug.assert(isOnToken());\n // normally scanner returns the smallest available token\n // check the kind of context node to determine if scanner should have more greedy behavior and consume more text.\n var expectedScanAction = shouldRescanGreaterThanToken(n) ? 1 /* RescanGreaterThanToken */ :\n shouldRescanSlashToken(n) ? 2 /* RescanSlashToken */ :\n shouldRescanTemplateToken(n) ? 3 /* RescanTemplateToken */ :\n shouldRescanJsxIdentifier(n) ? 4 /* RescanJsxIdentifier */ :\n shouldRescanJsxText(n) ? 5 /* RescanJsxText */ :\n shouldRescanJsxAttributeValue(n) ? 6 /* RescanJsxAttributeValue */ :\n 0 /* Scan */;\n if (lastTokenInfo && expectedScanAction === lastScanAction) {\n // readTokenInfo was called before with the same expected scan action.\n // No need to re-scan text, return existing 'lastTokenInfo'\n // it is ok to call fixTokenKind here since it does not affect\n // what portion of text is consumed. In contrast rescanning can change it,\n // i.e. for '>=' when originally scanner eats just one character\n // and rescanning forces it to consume more.\n return fixTokenKind(lastTokenInfo, n);\n }\n if (scanner.getStartPos() !== savedPos) {\n ts.Debug.assert(lastTokenInfo !== undefined);\n // readTokenInfo was called before but scan action differs - rescan text\n scanner.setTextPos(savedPos);\n scanner.scan();\n }\n var currentToken = getNextToken(n, expectedScanAction);\n var token = formatting.createTextRangeWithKind(scanner.getStartPos(), scanner.getTextPos(), currentToken);\n // consume trailing trivia\n if (trailingTrivia) {\n trailingTrivia = undefined;\n }\n while (scanner.getStartPos() < endPos) {\n currentToken = scanner.scan();\n if (!ts.isTrivia(currentToken)) {\n break;\n }\n var trivia = formatting.createTextRangeWithKind(scanner.getStartPos(), scanner.getTextPos(), currentToken);\n if (!trailingTrivia) {\n trailingTrivia = [];\n }\n trailingTrivia.push(trivia);\n if (currentToken === 4 /* NewLineTrivia */) {\n // move past new line\n scanner.scan();\n break;\n }\n }\n lastTokenInfo = { leadingTrivia: leadingTrivia, trailingTrivia: trailingTrivia, token: token };\n return fixTokenKind(lastTokenInfo, n);\n }\n function getNextToken(n, expectedScanAction) {\n var token = scanner.getToken();\n lastScanAction = 0 /* Scan */;\n switch (expectedScanAction) {\n case 1 /* RescanGreaterThanToken */:\n if (token === 31 /* GreaterThanToken */) {\n lastScanAction = 1 /* RescanGreaterThanToken */;\n var newToken = scanner.reScanGreaterToken();\n ts.Debug.assert(n.kind === newToken);\n return newToken;\n }\n break;\n case 2 /* RescanSlashToken */:\n if (startsWithSlashToken(token)) {\n lastScanAction = 2 /* RescanSlashToken */;\n var newToken = scanner.reScanSlashToken();\n ts.Debug.assert(n.kind === newToken);\n return newToken;\n }\n break;\n case 3 /* RescanTemplateToken */:\n if (token === 19 /* CloseBraceToken */) {\n lastScanAction = 3 /* RescanTemplateToken */;\n return scanner.reScanTemplateToken(/* isTaggedTemplate */ false);\n }\n break;\n case 4 /* RescanJsxIdentifier */:\n lastScanAction = 4 /* RescanJsxIdentifier */;\n return scanner.scanJsxIdentifier();\n case 5 /* RescanJsxText */:\n lastScanAction = 5 /* RescanJsxText */;\n return scanner.reScanJsxToken(/* allowMultilineJsxText */ false);\n case 6 /* RescanJsxAttributeValue */:\n lastScanAction = 6 /* RescanJsxAttributeValue */;\n return scanner.reScanJsxAttributeValue();\n case 0 /* Scan */:\n break;\n default:\n ts.Debug.assertNever(expectedScanAction);\n }\n return token;\n }\n function readEOFTokenRange() {\n ts.Debug.assert(isOnEOF());\n return formatting.createTextRangeWithKind(scanner.getStartPos(), scanner.getTextPos(), 1 /* EndOfFileToken */);\n }\n function isOnToken() {\n var current = lastTokenInfo ? lastTokenInfo.token.kind : scanner.getToken();\n var startPos = lastTokenInfo ? lastTokenInfo.token.pos : scanner.getStartPos();\n return startPos < endPos && current !== 1 /* EndOfFileToken */ && !ts.isTrivia(current);\n }\n function isOnEOF() {\n var current = lastTokenInfo ? lastTokenInfo.token.kind : scanner.getToken();\n return current === 1 /* EndOfFileToken */;\n }\n // when containing node in the tree is token\n // but its kind differs from the kind that was returned by the scanner,\n // then kind needs to be fixed. This might happen in cases\n // when parser interprets token differently, i.e keyword treated as identifier\n function fixTokenKind(tokenInfo, container) {\n if (ts.isToken(container) && tokenInfo.token.kind !== container.kind) {\n tokenInfo.token.kind = container.kind;\n }\n return tokenInfo;\n }\n function skipToEndOf(node) {\n scanner.setTextPos(node.end);\n savedPos = scanner.getStartPos();\n lastScanAction = undefined;\n lastTokenInfo = undefined;\n wasNewLine = false;\n leadingTrivia = undefined;\n trailingTrivia = undefined;\n }\n function skipToStartOf(node) {\n scanner.setTextPos(node.pos);\n savedPos = scanner.getStartPos();\n lastScanAction = undefined;\n lastTokenInfo = undefined;\n wasNewLine = false;\n leadingTrivia = undefined;\n trailingTrivia = undefined;\n }\n }\n formatting.getFormattingScanner = getFormattingScanner;\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n formatting.anyContext = ts.emptyArray;\n var RuleAction;\n (function (RuleAction) {\n RuleAction[RuleAction[\"StopProcessingSpaceActions\"] = 1] = \"StopProcessingSpaceActions\";\n RuleAction[RuleAction[\"StopProcessingTokenActions\"] = 2] = \"StopProcessingTokenActions\";\n RuleAction[RuleAction[\"InsertSpace\"] = 4] = \"InsertSpace\";\n RuleAction[RuleAction[\"InsertNewLine\"] = 8] = \"InsertNewLine\";\n RuleAction[RuleAction[\"DeleteSpace\"] = 16] = \"DeleteSpace\";\n RuleAction[RuleAction[\"DeleteToken\"] = 32] = \"DeleteToken\";\n RuleAction[RuleAction[\"InsertTrailingSemicolon\"] = 64] = \"InsertTrailingSemicolon\";\n RuleAction[RuleAction[\"StopAction\"] = 3] = \"StopAction\";\n RuleAction[RuleAction[\"ModifySpaceAction\"] = 28] = \"ModifySpaceAction\";\n RuleAction[RuleAction[\"ModifyTokenAction\"] = 96] = \"ModifyTokenAction\";\n })(RuleAction = formatting.RuleAction || (formatting.RuleAction = {}));\n var RuleFlags;\n (function (RuleFlags) {\n RuleFlags[RuleFlags[\"None\"] = 0] = \"None\";\n RuleFlags[RuleFlags[\"CanDeleteNewLines\"] = 1] = \"CanDeleteNewLines\";\n })(RuleFlags = formatting.RuleFlags || (formatting.RuleFlags = {}));\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n function getAllRules() {\n var allTokens = [];\n for (var token = 0 /* FirstToken */; token <= 158 /* LastToken */; token++) {\n if (token !== 1 /* EndOfFileToken */) {\n allTokens.push(token);\n }\n }\n function anyTokenExcept() {\n var tokens = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n tokens[_i] = arguments[_i];\n }\n return { tokens: allTokens.filter(function (t) { return !tokens.some(function (t2) { return t2 === t; }); }), isSpecific: false };\n }\n var anyToken = { tokens: allTokens, isSpecific: false };\n var anyTokenIncludingMultilineComments = tokenRangeFrom(__spreadArray(__spreadArray([], allTokens, true), [3 /* MultiLineCommentTrivia */], false));\n var anyTokenIncludingEOF = tokenRangeFrom(__spreadArray(__spreadArray([], allTokens, true), [1 /* EndOfFileToken */], false));\n var keywords = tokenRangeFromRange(81 /* FirstKeyword */, 158 /* LastKeyword */);\n var binaryOperators = tokenRangeFromRange(29 /* FirstBinaryOperator */, 78 /* LastBinaryOperator */);\n var binaryKeywordOperators = [101 /* InKeyword */, 102 /* InstanceOfKeyword */, 158 /* OfKeyword */, 127 /* AsKeyword */, 138 /* IsKeyword */];\n var unaryPrefixOperators = [45 /* PlusPlusToken */, 46 /* MinusMinusToken */, 54 /* TildeToken */, 53 /* ExclamationToken */];\n var unaryPrefixExpressions = [\n 8 /* NumericLiteral */, 9 /* BigIntLiteral */, 79 /* Identifier */, 20 /* OpenParenToken */,\n 22 /* OpenBracketToken */, 18 /* OpenBraceToken */, 108 /* ThisKeyword */, 103 /* NewKeyword */\n ];\n var unaryPreincrementExpressions = [79 /* Identifier */, 20 /* OpenParenToken */, 108 /* ThisKeyword */, 103 /* NewKeyword */];\n var unaryPostincrementExpressions = [79 /* Identifier */, 21 /* CloseParenToken */, 23 /* CloseBracketToken */, 103 /* NewKeyword */];\n var unaryPredecrementExpressions = [79 /* Identifier */, 20 /* OpenParenToken */, 108 /* ThisKeyword */, 103 /* NewKeyword */];\n var unaryPostdecrementExpressions = [79 /* Identifier */, 21 /* CloseParenToken */, 23 /* CloseBracketToken */, 103 /* NewKeyword */];\n var comments = [2 /* SingleLineCommentTrivia */, 3 /* MultiLineCommentTrivia */];\n var typeNames = __spreadArray([79 /* Identifier */], ts.typeKeywords, true);\n // Place a space before open brace in a function declaration\n // TypeScript: Function can have return types, which can be made of tons of different token kinds\n var functionOpenBraceLeftTokenRange = anyTokenIncludingMultilineComments;\n // Place a space before open brace in a TypeScript declaration that has braces as children (class, module, enum, etc)\n var typeScriptOpenBraceLeftTokenRange = tokenRangeFrom([79 /* Identifier */, 3 /* MultiLineCommentTrivia */, 84 /* ClassKeyword */, 93 /* ExportKeyword */, 100 /* ImportKeyword */]);\n // Place a space before open brace in a control flow construct\n var controlOpenBraceLeftTokenRange = tokenRangeFrom([21 /* CloseParenToken */, 3 /* MultiLineCommentTrivia */, 90 /* DoKeyword */, 111 /* TryKeyword */, 96 /* FinallyKeyword */, 91 /* ElseKeyword */]);\n // These rules are higher in priority than user-configurable\n var highPriorityCommonRules = [\n // Leave comments alone\n rule(\"IgnoreBeforeComment\", anyToken, comments, formatting.anyContext, 1 /* StopProcessingSpaceActions */),\n rule(\"IgnoreAfterLineComment\", 2 /* SingleLineCommentTrivia */, anyToken, formatting.anyContext, 1 /* StopProcessingSpaceActions */),\n rule(\"NotSpaceBeforeColon\", anyToken, 58 /* ColonToken */, [isNonJsxSameLineTokenContext, isNotBinaryOpContext, isNotTypeAnnotationContext], 16 /* DeleteSpace */),\n rule(\"SpaceAfterColon\", 58 /* ColonToken */, anyToken, [isNonJsxSameLineTokenContext, isNotBinaryOpContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeQuestionMark\", anyToken, 57 /* QuestionToken */, [isNonJsxSameLineTokenContext, isNotBinaryOpContext, isNotTypeAnnotationContext], 16 /* DeleteSpace */),\n // insert space after '?' only when it is used in conditional operator\n rule(\"SpaceAfterQuestionMarkInConditionalOperator\", 57 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext, isConditionalOperatorContext], 4 /* InsertSpace */),\n // in other cases there should be no space between '?' and next token\n rule(\"NoSpaceAfterQuestionMark\", 57 /* QuestionToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeDot\", anyToken, [24 /* DotToken */, 28 /* QuestionDotToken */], [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterDot\", [24 /* DotToken */, 28 /* QuestionDotToken */], anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBetweenImportParenInImportType\", 100 /* ImportKeyword */, 20 /* OpenParenToken */, [isNonJsxSameLineTokenContext, isImportTypeContext], 16 /* DeleteSpace */),\n // Special handling of unary operators.\n // Prefix operators generally shouldn't have a space between\n // them and their target unary expression.\n rule(\"NoSpaceAfterUnaryPrefixOperator\", unaryPrefixOperators, unaryPrefixExpressions, [isNonJsxSameLineTokenContext, isNotBinaryOpContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterUnaryPreincrementOperator\", 45 /* PlusPlusToken */, unaryPreincrementExpressions, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterUnaryPredecrementOperator\", 46 /* MinusMinusToken */, unaryPredecrementExpressions, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeUnaryPostincrementOperator\", unaryPostincrementExpressions, 45 /* PlusPlusToken */, [isNonJsxSameLineTokenContext, isNotStatementConditionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeUnaryPostdecrementOperator\", unaryPostdecrementExpressions, 46 /* MinusMinusToken */, [isNonJsxSameLineTokenContext, isNotStatementConditionContext], 16 /* DeleteSpace */),\n // More unary operator special-casing.\n // DevDiv 181814: Be careful when removing leading whitespace\n // around unary operators. Examples:\n // 1 - -2 --X--> 1--2\n // a + ++b --X--> a+++b\n rule(\"SpaceAfterPostincrementWhenFollowedByAdd\", 45 /* PlusPlusToken */, 39 /* PlusToken */, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterAddWhenFollowedByUnaryPlus\", 39 /* PlusToken */, 39 /* PlusToken */, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterAddWhenFollowedByPreincrement\", 39 /* PlusToken */, 45 /* PlusPlusToken */, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterPostdecrementWhenFollowedBySubtract\", 46 /* MinusMinusToken */, 40 /* MinusToken */, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterSubtractWhenFollowedByUnaryMinus\", 40 /* MinusToken */, 40 /* MinusToken */, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterSubtractWhenFollowedByPredecrement\", 40 /* MinusToken */, 46 /* MinusMinusToken */, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterCloseBrace\", 19 /* CloseBraceToken */, [27 /* CommaToken */, 26 /* SemicolonToken */], [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // For functions and control block place } on a new line [multi-line rule]\n rule(\"NewLineBeforeCloseBraceInBlockContext\", anyTokenIncludingMultilineComments, 19 /* CloseBraceToken */, [isMultilineBlockContext], 8 /* InsertNewLine */),\n // Space/new line after }.\n rule(\"SpaceAfterCloseBrace\", 19 /* CloseBraceToken */, anyTokenExcept(21 /* CloseParenToken */), [isNonJsxSameLineTokenContext, isAfterCodeBlockContext], 4 /* InsertSpace */),\n // Special case for (}, else) and (}, while) since else & while tokens are not part of the tree which makes SpaceAfterCloseBrace rule not applied\n // Also should not apply to })\n rule(\"SpaceBetweenCloseBraceAndElse\", 19 /* CloseBraceToken */, 91 /* ElseKeyword */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBetweenCloseBraceAndWhile\", 19 /* CloseBraceToken */, 115 /* WhileKeyword */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenEmptyBraceBrackets\", 18 /* OpenBraceToken */, 19 /* CloseBraceToken */, [isNonJsxSameLineTokenContext, isObjectContext], 16 /* DeleteSpace */),\n // Add a space after control dec context if the next character is an open bracket ex: 'if (false)[a, b] = [1, 2];' -> 'if (false) [a, b] = [1, 2];'\n rule(\"SpaceAfterConditionalClosingParen\", 21 /* CloseParenToken */, 22 /* OpenBracketToken */, [isControlDeclContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenFunctionKeywordAndStar\", 98 /* FunctionKeyword */, 41 /* AsteriskToken */, [isFunctionDeclarationOrFunctionExpressionContext], 16 /* DeleteSpace */),\n rule(\"SpaceAfterStarInGeneratorDeclaration\", 41 /* AsteriskToken */, 79 /* Identifier */, [isFunctionDeclarationOrFunctionExpressionContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterFunctionInFuncDecl\", 98 /* FunctionKeyword */, anyToken, [isFunctionDeclContext], 4 /* InsertSpace */),\n // Insert new line after { and before } in multi-line contexts.\n rule(\"NewLineAfterOpenBraceInBlockContext\", 18 /* OpenBraceToken */, anyToken, [isMultilineBlockContext], 8 /* InsertNewLine */),\n // For get/set members, we check for (identifier,identifier) since get/set don't have tokens and they are represented as just an identifier token.\n // Though, we do extra check on the context to make sure we are dealing with get/set node. Example:\n // get x() {}\n // set x(val) {}\n rule(\"SpaceAfterGetSetInMember\", [135 /* GetKeyword */, 147 /* SetKeyword */], 79 /* Identifier */, [isFunctionDeclContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenYieldKeywordAndStar\", 125 /* YieldKeyword */, 41 /* AsteriskToken */, [isNonJsxSameLineTokenContext, isYieldOrYieldStarWithOperand], 16 /* DeleteSpace */),\n rule(\"SpaceBetweenYieldOrYieldStarAndOperand\", [125 /* YieldKeyword */, 41 /* AsteriskToken */], anyToken, [isNonJsxSameLineTokenContext, isYieldOrYieldStarWithOperand], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenReturnAndSemicolon\", 105 /* ReturnKeyword */, 26 /* SemicolonToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"SpaceAfterCertainKeywords\", [113 /* VarKeyword */, 109 /* ThrowKeyword */, 103 /* NewKeyword */, 89 /* DeleteKeyword */, 105 /* ReturnKeyword */, 112 /* TypeOfKeyword */, 131 /* AwaitKeyword */], anyToken, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterLetConstInVariableDeclaration\", [119 /* LetKeyword */, 85 /* ConstKeyword */], anyToken, [isNonJsxSameLineTokenContext, isStartOfVariableDeclarationList], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeOpenParenInFuncCall\", anyToken, 20 /* OpenParenToken */, [isNonJsxSameLineTokenContext, isFunctionCallOrNewContext, isPreviousTokenNotComma], 16 /* DeleteSpace */),\n // Special case for binary operators (that are keywords). For these we have to add a space and shouldn't follow any user options.\n rule(\"SpaceBeforeBinaryKeywordOperator\", anyToken, binaryKeywordOperators, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterBinaryKeywordOperator\", binaryKeywordOperators, anyToken, [isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterVoidOperator\", 114 /* VoidKeyword */, anyToken, [isNonJsxSameLineTokenContext, isVoidOpContext], 4 /* InsertSpace */),\n // Async-await\n rule(\"SpaceBetweenAsyncAndOpenParen\", 130 /* AsyncKeyword */, 20 /* OpenParenToken */, [isArrowFunctionContext, isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBetweenAsyncAndFunctionKeyword\", 130 /* AsyncKeyword */, [98 /* FunctionKeyword */, 79 /* Identifier */], [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n // Template string\n rule(\"NoSpaceBetweenTagAndTemplateString\", [79 /* Identifier */, 21 /* CloseParenToken */], [14 /* NoSubstitutionTemplateLiteral */, 15 /* TemplateHead */], [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // JSX opening elements\n rule(\"SpaceBeforeJsxAttribute\", anyToken, 79 /* Identifier */, [isNextTokenParentJsxAttribute, isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBeforeSlashInJsxOpeningElement\", anyToken, 43 /* SlashToken */, [isJsxSelfClosingElementContext, isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeGreaterThanTokenInJsxOpeningElement\", 43 /* SlashToken */, 31 /* GreaterThanToken */, [isJsxSelfClosingElementContext, isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeEqualInJsxAttribute\", anyToken, 63 /* EqualsToken */, [isJsxAttributeContext, isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterEqualInJsxAttribute\", 63 /* EqualsToken */, anyToken, [isJsxAttributeContext, isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // TypeScript-specific rules\n // Use of module as a function call. e.g.: import m2 = module(\"m2\");\n rule(\"NoSpaceAfterModuleImport\", [140 /* ModuleKeyword */, 144 /* RequireKeyword */], 20 /* OpenParenToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // Add a space around certain TypeScript keywords\n rule(\"SpaceAfterCertainTypeScriptKeywords\", [\n 126 /* AbstractKeyword */,\n 84 /* ClassKeyword */,\n 134 /* DeclareKeyword */,\n 88 /* DefaultKeyword */,\n 92 /* EnumKeyword */,\n 93 /* ExportKeyword */,\n 94 /* ExtendsKeyword */,\n 135 /* GetKeyword */,\n 117 /* ImplementsKeyword */,\n 100 /* ImportKeyword */,\n 118 /* InterfaceKeyword */,\n 140 /* ModuleKeyword */,\n 141 /* NamespaceKeyword */,\n 121 /* PrivateKeyword */,\n 123 /* PublicKeyword */,\n 122 /* ProtectedKeyword */,\n 143 /* ReadonlyKeyword */,\n 147 /* SetKeyword */,\n 124 /* StaticKeyword */,\n 150 /* TypeKeyword */,\n 154 /* FromKeyword */,\n 139 /* KeyOfKeyword */,\n 136 /* InferKeyword */,\n ], anyToken, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBeforeCertainTypeScriptKeywords\", anyToken, [94 /* ExtendsKeyword */, 117 /* ImplementsKeyword */, 154 /* FromKeyword */], [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n // Treat string literals in module names as identifiers, and add a space between the literal and the opening Brace braces, e.g.: module \"m2\" {\n rule(\"SpaceAfterModuleName\", 10 /* StringLiteral */, 18 /* OpenBraceToken */, [isModuleDeclContext], 4 /* InsertSpace */),\n // Lambda expressions\n rule(\"SpaceBeforeArrow\", anyToken, 38 /* EqualsGreaterThanToken */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterArrow\", 38 /* EqualsGreaterThanToken */, anyToken, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n // Optional parameters and let args\n rule(\"NoSpaceAfterEllipsis\", 25 /* DotDotDotToken */, 79 /* Identifier */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterOptionalParameters\", 57 /* QuestionToken */, [21 /* CloseParenToken */, 27 /* CommaToken */], [isNonJsxSameLineTokenContext, isNotBinaryOpContext], 16 /* DeleteSpace */),\n // Remove spaces in empty interface literals. e.g.: x: {}\n rule(\"NoSpaceBetweenEmptyInterfaceBraceBrackets\", 18 /* OpenBraceToken */, 19 /* CloseBraceToken */, [isNonJsxSameLineTokenContext, isObjectTypeContext], 16 /* DeleteSpace */),\n // generics and type assertions\n rule(\"NoSpaceBeforeOpenAngularBracket\", typeNames, 29 /* LessThanToken */, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBetweenCloseParenAndAngularBracket\", 21 /* CloseParenToken */, 29 /* LessThanToken */, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterOpenAngularBracket\", 29 /* LessThanToken */, anyToken, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeCloseAngularBracket\", anyToken, 31 /* GreaterThanToken */, [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterCloseAngularBracket\", 31 /* GreaterThanToken */, [20 /* OpenParenToken */, 22 /* OpenBracketToken */, 31 /* GreaterThanToken */, 27 /* CommaToken */], [isNonJsxSameLineTokenContext, isTypeArgumentOrParameterOrAssertionContext, isNotFunctionDeclContext /*To prevent an interference with the SpaceBeforeOpenParenInFuncDecl rule*/], 16 /* DeleteSpace */),\n // decorators\n rule(\"SpaceBeforeAt\", [21 /* CloseParenToken */, 79 /* Identifier */], 59 /* AtToken */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterAt\", 59 /* AtToken */, anyToken, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // Insert space after @ in decorator\n rule(\"SpaceAfterDecorator\", anyToken, [\n 126 /* AbstractKeyword */,\n 79 /* Identifier */,\n 93 /* ExportKeyword */,\n 88 /* DefaultKeyword */,\n 84 /* ClassKeyword */,\n 124 /* StaticKeyword */,\n 123 /* PublicKeyword */,\n 121 /* PrivateKeyword */,\n 122 /* ProtectedKeyword */,\n 135 /* GetKeyword */,\n 147 /* SetKeyword */,\n 22 /* OpenBracketToken */,\n 41 /* AsteriskToken */,\n ], [isEndOfDecoratorContextOnSameLine], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeNonNullAssertionOperator\", anyToken, 53 /* ExclamationToken */, [isNonJsxSameLineTokenContext, isNonNullAssertionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterNewKeywordOnConstructorSignature\", 103 /* NewKeyword */, 20 /* OpenParenToken */, [isNonJsxSameLineTokenContext, isConstructorSignatureContext], 16 /* DeleteSpace */),\n rule(\"SpaceLessThanAndNonJSXTypeAnnotation\", 29 /* LessThanToken */, 29 /* LessThanToken */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n ];\n // These rules are applied after high priority\n var userConfigurableRules = [\n // Treat constructor as an identifier in a function declaration, and remove spaces between constructor and following left parentheses\n rule(\"SpaceAfterConstructor\", 133 /* ConstructorKeyword */, 20 /* OpenParenToken */, [isOptionEnabled(\"insertSpaceAfterConstructor\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterConstructor\", 133 /* ConstructorKeyword */, 20 /* OpenParenToken */, [isOptionDisabledOrUndefined(\"insertSpaceAfterConstructor\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"SpaceAfterComma\", 27 /* CommaToken */, anyToken, [isOptionEnabled(\"insertSpaceAfterCommaDelimiter\"), isNonJsxSameLineTokenContext, isNonJsxElementOrFragmentContext, isNextTokenNotCloseBracket, isNextTokenNotCloseParen], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterComma\", 27 /* CommaToken */, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterCommaDelimiter\"), isNonJsxSameLineTokenContext, isNonJsxElementOrFragmentContext], 16 /* DeleteSpace */),\n // Insert space after function keyword for anonymous functions\n rule(\"SpaceAfterAnonymousFunctionKeyword\", [98 /* FunctionKeyword */, 41 /* AsteriskToken */], 20 /* OpenParenToken */, [isOptionEnabled(\"insertSpaceAfterFunctionKeywordForAnonymousFunctions\"), isFunctionDeclContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterAnonymousFunctionKeyword\", [98 /* FunctionKeyword */, 41 /* AsteriskToken */], 20 /* OpenParenToken */, [isOptionDisabledOrUndefined(\"insertSpaceAfterFunctionKeywordForAnonymousFunctions\"), isFunctionDeclContext], 16 /* DeleteSpace */),\n // Insert space after keywords in control flow statements\n rule(\"SpaceAfterKeywordInControl\", keywords, 20 /* OpenParenToken */, [isOptionEnabled(\"insertSpaceAfterKeywordsInControlFlowStatements\"), isControlDeclContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterKeywordInControl\", keywords, 20 /* OpenParenToken */, [isOptionDisabledOrUndefined(\"insertSpaceAfterKeywordsInControlFlowStatements\"), isControlDeclContext], 16 /* DeleteSpace */),\n // Insert space after opening and before closing nonempty parenthesis\n rule(\"SpaceAfterOpenParen\", 20 /* OpenParenToken */, anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBeforeCloseParen\", anyToken, 21 /* CloseParenToken */, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBetweenOpenParens\", 20 /* OpenParenToken */, 20 /* OpenParenToken */, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenParens\", 20 /* OpenParenToken */, 21 /* CloseParenToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterOpenParen\", 20 /* OpenParenToken */, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeCloseParen\", anyToken, 21 /* CloseParenToken */, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // Insert space after opening and before closing nonempty brackets\n rule(\"SpaceAfterOpenBracket\", 22 /* OpenBracketToken */, anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"SpaceBeforeCloseBracket\", anyToken, 23 /* CloseBracketToken */, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenBrackets\", 22 /* OpenBracketToken */, 23 /* CloseBracketToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterOpenBracket\", 22 /* OpenBracketToken */, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeCloseBracket\", anyToken, 23 /* CloseBracketToken */, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // Insert a space after { and before } in single-line contexts, but remove space from empty object literals {}.\n rule(\"SpaceAfterOpenBrace\", 18 /* OpenBraceToken */, anyToken, [isOptionEnabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isBraceWrappedContext], 4 /* InsertSpace */),\n rule(\"SpaceBeforeCloseBrace\", anyToken, 19 /* CloseBraceToken */, [isOptionEnabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isBraceWrappedContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenEmptyBraceBrackets\", 18 /* OpenBraceToken */, 19 /* CloseBraceToken */, [isNonJsxSameLineTokenContext, isObjectContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterOpenBrace\", 18 /* OpenBraceToken */, anyToken, [isOptionDisabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeCloseBrace\", anyToken, 19 /* CloseBraceToken */, [isOptionDisabled(\"insertSpaceAfterOpeningAndBeforeClosingNonemptyBraces\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // Insert a space after opening and before closing empty brace brackets\n rule(\"SpaceBetweenEmptyBraceBrackets\", 18 /* OpenBraceToken */, 19 /* CloseBraceToken */, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces\")], 4 /* InsertSpace */),\n rule(\"NoSpaceBetweenEmptyBraceBrackets\", 18 /* OpenBraceToken */, 19 /* CloseBraceToken */, [isOptionDisabled(\"insertSpaceAfterOpeningAndBeforeClosingEmptyBraces\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // Insert space after opening and before closing template string braces\n rule(\"SpaceAfterTemplateHeadAndMiddle\", [15 /* TemplateHead */, 16 /* TemplateMiddle */], anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxTextContext], 4 /* InsertSpace */, 1 /* CanDeleteNewLines */),\n rule(\"SpaceBeforeTemplateMiddleAndTail\", anyToken, [16 /* TemplateMiddle */, 17 /* TemplateTail */], [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterTemplateHeadAndMiddle\", [15 /* TemplateHead */, 16 /* TemplateMiddle */], anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxTextContext], 16 /* DeleteSpace */, 1 /* CanDeleteNewLines */),\n rule(\"NoSpaceBeforeTemplateMiddleAndTail\", anyToken, [16 /* TemplateMiddle */, 17 /* TemplateTail */], [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces\"), isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // No space after { and before } in JSX expression\n rule(\"SpaceAfterOpenBraceInJsxExpression\", 18 /* OpenBraceToken */, anyToken, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 4 /* InsertSpace */),\n rule(\"SpaceBeforeCloseBraceInJsxExpression\", anyToken, 19 /* CloseBraceToken */, [isOptionEnabled(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterOpenBraceInJsxExpression\", 18 /* OpenBraceToken */, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceBeforeCloseBraceInJsxExpression\", anyToken, 19 /* CloseBraceToken */, [isOptionDisabledOrUndefined(\"insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces\"), isNonJsxSameLineTokenContext, isJsxExpressionContext], 16 /* DeleteSpace */),\n // Insert space after semicolon in for statement\n rule(\"SpaceAfterSemicolonInFor\", 26 /* SemicolonToken */, anyToken, [isOptionEnabled(\"insertSpaceAfterSemicolonInForStatements\"), isNonJsxSameLineTokenContext, isForContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterSemicolonInFor\", 26 /* SemicolonToken */, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterSemicolonInForStatements\"), isNonJsxSameLineTokenContext, isForContext], 16 /* DeleteSpace */),\n // Insert space before and after binary operators\n rule(\"SpaceBeforeBinaryOperator\", anyToken, binaryOperators, [isOptionEnabled(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"SpaceAfterBinaryOperator\", binaryOperators, anyToken, [isOptionEnabled(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeBinaryOperator\", anyToken, binaryOperators, [isOptionDisabledOrUndefined(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterBinaryOperator\", binaryOperators, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceBeforeAndAfterBinaryOperators\"), isNonJsxSameLineTokenContext, isBinaryOpContext], 16 /* DeleteSpace */),\n rule(\"SpaceBeforeOpenParenInFuncDecl\", anyToken, 20 /* OpenParenToken */, [isOptionEnabled(\"insertSpaceBeforeFunctionParenthesis\"), isNonJsxSameLineTokenContext, isFunctionDeclContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeOpenParenInFuncDecl\", anyToken, 20 /* OpenParenToken */, [isOptionDisabledOrUndefined(\"insertSpaceBeforeFunctionParenthesis\"), isNonJsxSameLineTokenContext, isFunctionDeclContext], 16 /* DeleteSpace */),\n // Open Brace braces after control block\n rule(\"NewLineBeforeOpenBraceInControl\", controlOpenBraceLeftTokenRange, 18 /* OpenBraceToken */, [isOptionEnabled(\"placeOpenBraceOnNewLineForControlBlocks\"), isControlDeclContext, isBeforeMultilineBlockContext], 8 /* InsertNewLine */, 1 /* CanDeleteNewLines */),\n // Open Brace braces after function\n // TypeScript: Function can have return types, which can be made of tons of different token kinds\n rule(\"NewLineBeforeOpenBraceInFunction\", functionOpenBraceLeftTokenRange, 18 /* OpenBraceToken */, [isOptionEnabled(\"placeOpenBraceOnNewLineForFunctions\"), isFunctionDeclContext, isBeforeMultilineBlockContext], 8 /* InsertNewLine */, 1 /* CanDeleteNewLines */),\n // Open Brace braces after TypeScript module/class/interface\n rule(\"NewLineBeforeOpenBraceInTypeScriptDeclWithBlock\", typeScriptOpenBraceLeftTokenRange, 18 /* OpenBraceToken */, [isOptionEnabled(\"placeOpenBraceOnNewLineForFunctions\"), isTypeScriptDeclWithBlockContext, isBeforeMultilineBlockContext], 8 /* InsertNewLine */, 1 /* CanDeleteNewLines */),\n rule(\"SpaceAfterTypeAssertion\", 31 /* GreaterThanToken */, anyToken, [isOptionEnabled(\"insertSpaceAfterTypeAssertion\"), isNonJsxSameLineTokenContext, isTypeAssertionContext], 4 /* InsertSpace */),\n rule(\"NoSpaceAfterTypeAssertion\", 31 /* GreaterThanToken */, anyToken, [isOptionDisabledOrUndefined(\"insertSpaceAfterTypeAssertion\"), isNonJsxSameLineTokenContext, isTypeAssertionContext], 16 /* DeleteSpace */),\n rule(\"SpaceBeforeTypeAnnotation\", anyToken, [57 /* QuestionToken */, 58 /* ColonToken */], [isOptionEnabled(\"insertSpaceBeforeTypeAnnotation\"), isNonJsxSameLineTokenContext, isTypeAnnotationContext], 4 /* InsertSpace */),\n rule(\"NoSpaceBeforeTypeAnnotation\", anyToken, [57 /* QuestionToken */, 58 /* ColonToken */], [isOptionDisabledOrUndefined(\"insertSpaceBeforeTypeAnnotation\"), isNonJsxSameLineTokenContext, isTypeAnnotationContext], 16 /* DeleteSpace */),\n rule(\"NoOptionalSemicolon\", 26 /* SemicolonToken */, anyTokenIncludingEOF, [optionEquals(\"semicolons\", ts.SemicolonPreference.Remove), isSemicolonDeletionContext], 32 /* DeleteToken */),\n rule(\"OptionalSemicolon\", anyToken, anyTokenIncludingEOF, [optionEquals(\"semicolons\", ts.SemicolonPreference.Insert), isSemicolonInsertionContext], 64 /* InsertTrailingSemicolon */),\n ];\n // These rules are lower in priority than user-configurable. Rules earlier in this list have priority over rules later in the list.\n var lowPriorityCommonRules = [\n // Space after keyword but not before ; or : or ?\n rule(\"NoSpaceBeforeSemicolon\", anyToken, 26 /* SemicolonToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"SpaceBeforeOpenBraceInControl\", controlOpenBraceLeftTokenRange, 18 /* OpenBraceToken */, [isOptionDisabledOrUndefinedOrTokensOnSameLine(\"placeOpenBraceOnNewLineForControlBlocks\"), isControlDeclContext, isNotFormatOnEnter, isSameLineTokenOrBeforeBlockContext], 4 /* InsertSpace */, 1 /* CanDeleteNewLines */),\n rule(\"SpaceBeforeOpenBraceInFunction\", functionOpenBraceLeftTokenRange, 18 /* OpenBraceToken */, [isOptionDisabledOrUndefinedOrTokensOnSameLine(\"placeOpenBraceOnNewLineForFunctions\"), isFunctionDeclContext, isBeforeBlockContext, isNotFormatOnEnter, isSameLineTokenOrBeforeBlockContext], 4 /* InsertSpace */, 1 /* CanDeleteNewLines */),\n rule(\"SpaceBeforeOpenBraceInTypeScriptDeclWithBlock\", typeScriptOpenBraceLeftTokenRange, 18 /* OpenBraceToken */, [isOptionDisabledOrUndefinedOrTokensOnSameLine(\"placeOpenBraceOnNewLineForFunctions\"), isTypeScriptDeclWithBlockContext, isNotFormatOnEnter, isSameLineTokenOrBeforeBlockContext], 4 /* InsertSpace */, 1 /* CanDeleteNewLines */),\n rule(\"NoSpaceBeforeComma\", anyToken, 27 /* CommaToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n // No space before and after indexer `x[]`\n rule(\"NoSpaceBeforeOpenBracket\", anyTokenExcept(130 /* AsyncKeyword */, 82 /* CaseKeyword */), 22 /* OpenBracketToken */, [isNonJsxSameLineTokenContext], 16 /* DeleteSpace */),\n rule(\"NoSpaceAfterCloseBracket\", 23 /* CloseBracketToken */, anyToken, [isNonJsxSameLineTokenContext, isNotBeforeBlockInFunctionDeclarationContext], 16 /* DeleteSpace */),\n rule(\"SpaceAfterSemicolon\", 26 /* SemicolonToken */, anyToken, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n // Remove extra space between for and await\n rule(\"SpaceBetweenForAndAwaitKeyword\", 97 /* ForKeyword */, 131 /* AwaitKeyword */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n // Add a space between statements. All keywords except (do,else,case) has open/close parens after them.\n // So, we have a rule to add a space for [),Any], [do,Any], [else,Any], and [case,Any]\n rule(\"SpaceBetweenStatements\", [21 /* CloseParenToken */, 90 /* DoKeyword */, 91 /* ElseKeyword */, 82 /* CaseKeyword */], anyToken, [isNonJsxSameLineTokenContext, isNonJsxElementOrFragmentContext, isNotForContext], 4 /* InsertSpace */),\n // This low-pri rule takes care of \"try {\", \"catch {\" and \"finally {\" in case the rule SpaceBeforeOpenBraceInControl didn't execute on FormatOnEnter.\n rule(\"SpaceAfterTryCatchFinally\", [111 /* TryKeyword */, 83 /* CatchKeyword */, 96 /* FinallyKeyword */], 18 /* OpenBraceToken */, [isNonJsxSameLineTokenContext], 4 /* InsertSpace */),\n ];\n return __spreadArray(__spreadArray(__spreadArray([], highPriorityCommonRules, true), userConfigurableRules, true), lowPriorityCommonRules, true);\n }\n formatting.getAllRules = getAllRules;\n /**\n * A rule takes a two tokens (left/right) and a particular context\n * for which you're meant to look at them. You then declare what should the\n * whitespace annotation be between these tokens via the action param.\n *\n * @param debugName Name to print\n * @param left The left side of the comparison\n * @param right The right side of the comparison\n * @param context A set of filters to narrow down the space in which this formatter rule applies\n * @param action a declaration of the expected whitespace\n * @param flags whether the rule deletes a line or not, defaults to no-op\n */\n function rule(debugName, left, right, context, action, flags) {\n if (flags === void 0) { flags = 0 /* None */; }\n return { leftTokenRange: toTokenRange(left), rightTokenRange: toTokenRange(right), rule: { debugName: debugName, context: context, action: action, flags: flags } };\n }\n function tokenRangeFrom(tokens) {\n return { tokens: tokens, isSpecific: true };\n }\n function toTokenRange(arg) {\n return typeof arg === \"number\" ? tokenRangeFrom([arg]) : ts.isArray(arg) ? tokenRangeFrom(arg) : arg;\n }\n function tokenRangeFromRange(from, to, except) {\n if (except === void 0) { except = []; }\n var tokens = [];\n for (var token = from; token <= to; token++) {\n if (!ts.contains(except, token)) {\n tokens.push(token);\n }\n }\n return tokenRangeFrom(tokens);\n }\n ///\n /// Contexts\n ///\n function optionEquals(optionName, optionValue) {\n return function (context) { return context.options && context.options[optionName] === optionValue; };\n }\n function isOptionEnabled(optionName) {\n return function (context) { return context.options && context.options.hasOwnProperty(optionName) && !!context.options[optionName]; };\n }\n function isOptionDisabled(optionName) {\n return function (context) { return context.options && context.options.hasOwnProperty(optionName) && !context.options[optionName]; };\n }\n function isOptionDisabledOrUndefined(optionName) {\n return function (context) { return !context.options || !context.options.hasOwnProperty(optionName) || !context.options[optionName]; };\n }\n function isOptionDisabledOrUndefinedOrTokensOnSameLine(optionName) {\n return function (context) { return !context.options || !context.options.hasOwnProperty(optionName) || !context.options[optionName] || context.TokensAreOnSameLine(); };\n }\n function isOptionEnabledOrUndefined(optionName) {\n return function (context) { return !context.options || !context.options.hasOwnProperty(optionName) || !!context.options[optionName]; };\n }\n function isForContext(context) {\n return context.contextNode.kind === 240 /* ForStatement */;\n }\n function isNotForContext(context) {\n return !isForContext(context);\n }\n function isBinaryOpContext(context) {\n switch (context.contextNode.kind) {\n case 219 /* BinaryExpression */:\n return context.contextNode.operatorToken.kind !== 27 /* CommaToken */;\n case 220 /* ConditionalExpression */:\n case 187 /* ConditionalType */:\n case 227 /* AsExpression */:\n case 273 /* ExportSpecifier */:\n case 268 /* ImportSpecifier */:\n case 175 /* TypePredicate */:\n case 185 /* UnionType */:\n case 186 /* IntersectionType */:\n return true;\n // equals in binding elements: function foo([[x, y] = [1, 2]])\n case 201 /* BindingElement */:\n // equals in type X = ...\n // falls through\n case 257 /* TypeAliasDeclaration */:\n // equal in import a = module('a');\n // falls through\n case 263 /* ImportEqualsDeclaration */:\n // equal in export = 1\n // falls through\n case 269 /* ExportAssignment */:\n // equal in let a = 0\n // falls through\n case 252 /* VariableDeclaration */:\n // equal in p = 0\n // falls through\n case 162 /* Parameter */:\n case 294 /* EnumMember */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n return context.currentTokenSpan.kind === 63 /* EqualsToken */ || context.nextTokenSpan.kind === 63 /* EqualsToken */;\n // \"in\" keyword in for (let x in []) { }\n case 241 /* ForInStatement */:\n // \"in\" keyword in [P in keyof T]: T[P]\n // falls through\n case 161 /* TypeParameter */:\n return context.currentTokenSpan.kind === 101 /* InKeyword */ || context.nextTokenSpan.kind === 101 /* InKeyword */ || context.currentTokenSpan.kind === 63 /* EqualsToken */ || context.nextTokenSpan.kind === 63 /* EqualsToken */;\n // Technically, \"of\" is not a binary operator, but format it the same way as \"in\"\n case 242 /* ForOfStatement */:\n return context.currentTokenSpan.kind === 158 /* OfKeyword */ || context.nextTokenSpan.kind === 158 /* OfKeyword */;\n }\n return false;\n }\n function isNotBinaryOpContext(context) {\n return !isBinaryOpContext(context);\n }\n function isNotTypeAnnotationContext(context) {\n return !isTypeAnnotationContext(context);\n }\n function isTypeAnnotationContext(context) {\n var contextKind = context.contextNode.kind;\n return contextKind === 165 /* PropertyDeclaration */ ||\n contextKind === 164 /* PropertySignature */ ||\n contextKind === 162 /* Parameter */ ||\n contextKind === 252 /* VariableDeclaration */ ||\n ts.isFunctionLikeKind(contextKind);\n }\n function isConditionalOperatorContext(context) {\n return context.contextNode.kind === 220 /* ConditionalExpression */ ||\n context.contextNode.kind === 187 /* ConditionalType */;\n }\n function isSameLineTokenOrBeforeBlockContext(context) {\n return context.TokensAreOnSameLine() || isBeforeBlockContext(context);\n }\n function isBraceWrappedContext(context) {\n return context.contextNode.kind === 199 /* ObjectBindingPattern */ ||\n context.contextNode.kind === 193 /* MappedType */ ||\n isSingleLineBlockContext(context);\n }\n // This check is done before an open brace in a control construct, a function, or a typescript block declaration\n function isBeforeMultilineBlockContext(context) {\n return isBeforeBlockContext(context) && !(context.NextNodeAllOnSameLine() || context.NextNodeBlockIsOnOneLine());\n }\n function isMultilineBlockContext(context) {\n return isBlockContext(context) && !(context.ContextNodeAllOnSameLine() || context.ContextNodeBlockIsOnOneLine());\n }\n function isSingleLineBlockContext(context) {\n return isBlockContext(context) && (context.ContextNodeAllOnSameLine() || context.ContextNodeBlockIsOnOneLine());\n }\n function isBlockContext(context) {\n return nodeIsBlockContext(context.contextNode);\n }\n function isBeforeBlockContext(context) {\n return nodeIsBlockContext(context.nextTokenParent);\n }\n // IMPORTANT!!! This method must return true ONLY for nodes with open and close braces as immediate children\n function nodeIsBlockContext(node) {\n if (nodeIsTypeScriptDeclWithBlockContext(node)) {\n // This means we are in a context that looks like a block to the user, but in the grammar is actually not a node (it's a class, module, enum, object type literal, etc).\n return true;\n }\n switch (node.kind) {\n case 233 /* Block */:\n case 261 /* CaseBlock */:\n case 203 /* ObjectLiteralExpression */:\n case 260 /* ModuleBlock */:\n return true;\n }\n return false;\n }\n function isFunctionDeclContext(context) {\n switch (context.contextNode.kind) {\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n // case SyntaxKind.MemberFunctionDeclaration:\n // falls through\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // case SyntaxKind.MethodSignature:\n // falls through\n case 172 /* CallSignature */:\n case 211 /* FunctionExpression */:\n case 169 /* Constructor */:\n case 212 /* ArrowFunction */:\n // case SyntaxKind.ConstructorDeclaration:\n // case SyntaxKind.SimpleArrowFunctionExpression:\n // case SyntaxKind.ParenthesizedArrowFunctionExpression:\n // falls through\n case 256 /* InterfaceDeclaration */: // This one is not truly a function, but for formatting purposes, it acts just like one\n return true;\n }\n return false;\n }\n function isNotFunctionDeclContext(context) {\n return !isFunctionDeclContext(context);\n }\n function isFunctionDeclarationOrFunctionExpressionContext(context) {\n return context.contextNode.kind === 254 /* FunctionDeclaration */ || context.contextNode.kind === 211 /* FunctionExpression */;\n }\n function isTypeScriptDeclWithBlockContext(context) {\n return nodeIsTypeScriptDeclWithBlockContext(context.contextNode);\n }\n function nodeIsTypeScriptDeclWithBlockContext(node) {\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 180 /* TypeLiteral */:\n case 259 /* ModuleDeclaration */:\n case 270 /* ExportDeclaration */:\n case 271 /* NamedExports */:\n case 264 /* ImportDeclaration */:\n case 267 /* NamedImports */:\n return true;\n }\n return false;\n }\n function isAfterCodeBlockContext(context) {\n switch (context.currentTokenParent.kind) {\n case 255 /* ClassDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 258 /* EnumDeclaration */:\n case 290 /* CatchClause */:\n case 260 /* ModuleBlock */:\n case 247 /* SwitchStatement */:\n return true;\n case 233 /* Block */: {\n var blockParent = context.currentTokenParent.parent;\n // In a codefix scenario, we can't rely on parents being set. So just always return true.\n if (!blockParent || blockParent.kind !== 212 /* ArrowFunction */ && blockParent.kind !== 211 /* FunctionExpression */) {\n return true;\n }\n }\n }\n return false;\n }\n function isControlDeclContext(context) {\n switch (context.contextNode.kind) {\n case 237 /* IfStatement */:\n case 247 /* SwitchStatement */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 239 /* WhileStatement */:\n case 250 /* TryStatement */:\n case 238 /* DoStatement */:\n case 246 /* WithStatement */:\n // TODO\n // case SyntaxKind.ElseClause:\n // falls through\n case 290 /* CatchClause */:\n return true;\n default:\n return false;\n }\n }\n function isObjectContext(context) {\n return context.contextNode.kind === 203 /* ObjectLiteralExpression */;\n }\n function isFunctionCallContext(context) {\n return context.contextNode.kind === 206 /* CallExpression */;\n }\n function isNewContext(context) {\n return context.contextNode.kind === 207 /* NewExpression */;\n }\n function isFunctionCallOrNewContext(context) {\n return isFunctionCallContext(context) || isNewContext(context);\n }\n function isPreviousTokenNotComma(context) {\n return context.currentTokenSpan.kind !== 27 /* CommaToken */;\n }\n function isNextTokenNotCloseBracket(context) {\n return context.nextTokenSpan.kind !== 23 /* CloseBracketToken */;\n }\n function isNextTokenNotCloseParen(context) {\n return context.nextTokenSpan.kind !== 21 /* CloseParenToken */;\n }\n function isArrowFunctionContext(context) {\n return context.contextNode.kind === 212 /* ArrowFunction */;\n }\n function isImportTypeContext(context) {\n return context.contextNode.kind === 198 /* ImportType */;\n }\n function isNonJsxSameLineTokenContext(context) {\n return context.TokensAreOnSameLine() && context.contextNode.kind !== 11 /* JsxText */;\n }\n function isNonJsxTextContext(context) {\n return context.contextNode.kind !== 11 /* JsxText */;\n }\n function isNonJsxElementOrFragmentContext(context) {\n return context.contextNode.kind !== 276 /* JsxElement */ && context.contextNode.kind !== 280 /* JsxFragment */;\n }\n function isJsxExpressionContext(context) {\n return context.contextNode.kind === 286 /* JsxExpression */ || context.contextNode.kind === 285 /* JsxSpreadAttribute */;\n }\n function isNextTokenParentJsxAttribute(context) {\n return context.nextTokenParent.kind === 283 /* JsxAttribute */;\n }\n function isJsxAttributeContext(context) {\n return context.contextNode.kind === 283 /* JsxAttribute */;\n }\n function isJsxSelfClosingElementContext(context) {\n return context.contextNode.kind === 277 /* JsxSelfClosingElement */;\n }\n function isNotBeforeBlockInFunctionDeclarationContext(context) {\n return !isFunctionDeclContext(context) && !isBeforeBlockContext(context);\n }\n function isEndOfDecoratorContextOnSameLine(context) {\n return context.TokensAreOnSameLine() &&\n !!context.contextNode.decorators &&\n nodeIsInDecoratorContext(context.currentTokenParent) &&\n !nodeIsInDecoratorContext(context.nextTokenParent);\n }\n function nodeIsInDecoratorContext(node) {\n while (ts.isExpressionNode(node)) {\n node = node.parent;\n }\n return node.kind === 163 /* Decorator */;\n }\n function isStartOfVariableDeclarationList(context) {\n return context.currentTokenParent.kind === 253 /* VariableDeclarationList */ &&\n context.currentTokenParent.getStart(context.sourceFile) === context.currentTokenSpan.pos;\n }\n function isNotFormatOnEnter(context) {\n return context.formattingRequestKind !== 2 /* FormatOnEnter */;\n }\n function isModuleDeclContext(context) {\n return context.contextNode.kind === 259 /* ModuleDeclaration */;\n }\n function isObjectTypeContext(context) {\n return context.contextNode.kind === 180 /* TypeLiteral */; // && context.contextNode.parent.kind !== SyntaxKind.InterfaceDeclaration;\n }\n function isConstructorSignatureContext(context) {\n return context.contextNode.kind === 173 /* ConstructSignature */;\n }\n function isTypeArgumentOrParameterOrAssertion(token, parent) {\n if (token.kind !== 29 /* LessThanToken */ && token.kind !== 31 /* GreaterThanToken */) {\n return false;\n }\n switch (parent.kind) {\n case 176 /* TypeReference */:\n case 209 /* TypeAssertionExpression */:\n case 257 /* TypeAliasDeclaration */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 226 /* ExpressionWithTypeArguments */:\n return true;\n default:\n return false;\n }\n }\n function isTypeArgumentOrParameterOrAssertionContext(context) {\n return isTypeArgumentOrParameterOrAssertion(context.currentTokenSpan, context.currentTokenParent) ||\n isTypeArgumentOrParameterOrAssertion(context.nextTokenSpan, context.nextTokenParent);\n }\n function isTypeAssertionContext(context) {\n return context.contextNode.kind === 209 /* TypeAssertionExpression */;\n }\n function isVoidOpContext(context) {\n return context.currentTokenSpan.kind === 114 /* VoidKeyword */ && context.currentTokenParent.kind === 215 /* VoidExpression */;\n }\n function isYieldOrYieldStarWithOperand(context) {\n return context.contextNode.kind === 222 /* YieldExpression */ && context.contextNode.expression !== undefined;\n }\n function isNonNullAssertionContext(context) {\n return context.contextNode.kind === 228 /* NonNullExpression */;\n }\n function isNotStatementConditionContext(context) {\n return !isStatementConditionContext(context);\n }\n function isStatementConditionContext(context) {\n switch (context.contextNode.kind) {\n case 237 /* IfStatement */:\n case 240 /* ForStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n return true;\n default:\n return false;\n }\n }\n function isSemicolonDeletionContext(context) {\n var nextTokenKind = context.nextTokenSpan.kind;\n var nextTokenStart = context.nextTokenSpan.pos;\n if (ts.isTrivia(nextTokenKind)) {\n var nextRealToken = context.nextTokenParent === context.currentTokenParent\n ? ts.findNextToken(context.currentTokenParent, ts.findAncestor(context.currentTokenParent, function (a) { return !a.parent; }), context.sourceFile)\n : context.nextTokenParent.getFirstToken(context.sourceFile);\n if (!nextRealToken) {\n return true;\n }\n nextTokenKind = nextRealToken.kind;\n nextTokenStart = nextRealToken.getStart(context.sourceFile);\n }\n var startLine = context.sourceFile.getLineAndCharacterOfPosition(context.currentTokenSpan.pos).line;\n var endLine = context.sourceFile.getLineAndCharacterOfPosition(nextTokenStart).line;\n if (startLine === endLine) {\n return nextTokenKind === 19 /* CloseBraceToken */\n || nextTokenKind === 1 /* EndOfFileToken */;\n }\n if (nextTokenKind === 232 /* SemicolonClassElement */ ||\n nextTokenKind === 26 /* SemicolonToken */) {\n return false;\n }\n if (context.contextNode.kind === 256 /* InterfaceDeclaration */ ||\n context.contextNode.kind === 257 /* TypeAliasDeclaration */) {\n // Can’t remove semicolon after `foo`; it would parse as a method declaration:\n //\n // interface I {\n // foo;\n // (): void\n // }\n return !ts.isPropertySignature(context.currentTokenParent)\n || !!context.currentTokenParent.type\n || nextTokenKind !== 20 /* OpenParenToken */;\n }\n if (ts.isPropertyDeclaration(context.currentTokenParent)) {\n return !context.currentTokenParent.initializer;\n }\n return context.currentTokenParent.kind !== 240 /* ForStatement */\n && context.currentTokenParent.kind !== 234 /* EmptyStatement */\n && context.currentTokenParent.kind !== 232 /* SemicolonClassElement */\n && nextTokenKind !== 22 /* OpenBracketToken */\n && nextTokenKind !== 20 /* OpenParenToken */\n && nextTokenKind !== 39 /* PlusToken */\n && nextTokenKind !== 40 /* MinusToken */\n && nextTokenKind !== 43 /* SlashToken */\n && nextTokenKind !== 13 /* RegularExpressionLiteral */\n && nextTokenKind !== 27 /* CommaToken */\n && nextTokenKind !== 221 /* TemplateExpression */\n && nextTokenKind !== 15 /* TemplateHead */\n && nextTokenKind !== 14 /* NoSubstitutionTemplateLiteral */\n && nextTokenKind !== 24 /* DotToken */;\n }\n function isSemicolonInsertionContext(context) {\n return ts.positionIsASICandidate(context.currentTokenSpan.end, context.currentTokenParent, context.sourceFile);\n }\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n function getFormatContext(options, host) {\n return { options: options, getRules: getRulesMap(), host: host };\n }\n formatting.getFormatContext = getFormatContext;\n var rulesMapCache;\n function getRulesMap() {\n if (rulesMapCache === undefined) {\n rulesMapCache = createRulesMap(formatting.getAllRules());\n }\n return rulesMapCache;\n }\n /**\n * For a given rule action, gets a mask of other rule actions that\n * cannot be applied at the same position.\n */\n function getRuleActionExclusion(ruleAction) {\n var mask = 0;\n if (ruleAction & 1 /* StopProcessingSpaceActions */) {\n mask |= 28 /* ModifySpaceAction */;\n }\n if (ruleAction & 2 /* StopProcessingTokenActions */) {\n mask |= 96 /* ModifyTokenAction */;\n }\n if (ruleAction & 28 /* ModifySpaceAction */) {\n mask |= 28 /* ModifySpaceAction */;\n }\n if (ruleAction & 96 /* ModifyTokenAction */) {\n mask |= 96 /* ModifyTokenAction */;\n }\n return mask;\n }\n function createRulesMap(rules) {\n var map = buildMap(rules);\n return function (context) {\n var bucket = map[getRuleBucketIndex(context.currentTokenSpan.kind, context.nextTokenSpan.kind)];\n if (bucket) {\n var rules_1 = [];\n var ruleActionMask = 0;\n for (var _i = 0, bucket_1 = bucket; _i < bucket_1.length; _i++) {\n var rule = bucket_1[_i];\n var acceptRuleActions = ~getRuleActionExclusion(ruleActionMask);\n if (rule.action & acceptRuleActions && ts.every(rule.context, function (c) { return c(context); })) {\n rules_1.push(rule);\n ruleActionMask |= rule.action;\n }\n }\n if (rules_1.length) {\n return rules_1;\n }\n }\n };\n }\n function buildMap(rules) {\n // Map from bucket index to array of rules\n var map = new Array(mapRowLength * mapRowLength);\n // This array is used only during construction of the rulesbucket in the map\n var rulesBucketConstructionStateList = new Array(map.length);\n for (var _i = 0, rules_2 = rules; _i < rules_2.length; _i++) {\n var rule = rules_2[_i];\n var specificRule = rule.leftTokenRange.isSpecific && rule.rightTokenRange.isSpecific;\n for (var _a = 0, _b = rule.leftTokenRange.tokens; _a < _b.length; _a++) {\n var left = _b[_a];\n for (var _c = 0, _d = rule.rightTokenRange.tokens; _c < _d.length; _c++) {\n var right = _d[_c];\n var index = getRuleBucketIndex(left, right);\n var rulesBucket = map[index];\n if (rulesBucket === undefined) {\n rulesBucket = map[index] = [];\n }\n addRule(rulesBucket, rule.rule, specificRule, rulesBucketConstructionStateList, index);\n }\n }\n }\n return map;\n }\n function getRuleBucketIndex(row, column) {\n ts.Debug.assert(row <= 158 /* LastKeyword */ && column <= 158 /* LastKeyword */, \"Must compute formatting context from tokens\");\n return (row * mapRowLength) + column;\n }\n var maskBitSize = 5;\n var mask = 31; // MaskBitSize bits\n var mapRowLength = 158 /* LastToken */ + 1;\n var RulesPosition;\n (function (RulesPosition) {\n RulesPosition[RulesPosition[\"StopRulesSpecific\"] = 0] = \"StopRulesSpecific\";\n RulesPosition[RulesPosition[\"StopRulesAny\"] = maskBitSize * 1] = \"StopRulesAny\";\n RulesPosition[RulesPosition[\"ContextRulesSpecific\"] = maskBitSize * 2] = \"ContextRulesSpecific\";\n RulesPosition[RulesPosition[\"ContextRulesAny\"] = maskBitSize * 3] = \"ContextRulesAny\";\n RulesPosition[RulesPosition[\"NoContextRulesSpecific\"] = maskBitSize * 4] = \"NoContextRulesSpecific\";\n RulesPosition[RulesPosition[\"NoContextRulesAny\"] = maskBitSize * 5] = \"NoContextRulesAny\";\n })(RulesPosition || (RulesPosition = {}));\n // The Rules list contains all the inserted rules into a rulebucket in the following order:\n // 1- Ignore rules with specific token combination\n // 2- Ignore rules with any token combination\n // 3- Context rules with specific token combination\n // 4- Context rules with any token combination\n // 5- Non-context rules with specific token combination\n // 6- Non-context rules with any token combination\n //\n // The member rulesInsertionIndexBitmap is used to describe the number of rules\n // in each sub-bucket (above) hence can be used to know the index of where to insert\n // the next rule. It's a bitmap which contains 6 different sections each is given 5 bits.\n //\n // Example:\n // In order to insert a rule to the end of sub-bucket (3), we get the index by adding\n // the values in the bitmap segments 3rd, 2nd, and 1st.\n function addRule(rules, rule, specificTokens, constructionState, rulesBucketIndex) {\n var position = rule.action & 3 /* StopAction */ ?\n specificTokens ? RulesPosition.StopRulesSpecific : RulesPosition.StopRulesAny :\n rule.context !== formatting.anyContext ?\n specificTokens ? RulesPosition.ContextRulesSpecific : RulesPosition.ContextRulesAny :\n specificTokens ? RulesPosition.NoContextRulesSpecific : RulesPosition.NoContextRulesAny;\n var state = constructionState[rulesBucketIndex] || 0;\n rules.splice(getInsertionIndex(state, position), 0, rule);\n constructionState[rulesBucketIndex] = increaseInsertionIndex(state, position);\n }\n function getInsertionIndex(indexBitmap, maskPosition) {\n var index = 0;\n for (var pos = 0; pos <= maskPosition; pos += maskBitSize) {\n index += indexBitmap & mask;\n indexBitmap >>= maskBitSize;\n }\n return index;\n }\n function increaseInsertionIndex(indexBitmap, maskPosition) {\n var value = ((indexBitmap >> maskPosition) & mask) + 1;\n ts.Debug.assert((value & mask) === value, \"Adding more rules into the sub-bucket than allowed. Maximum allowed is 32 rules.\");\n return (indexBitmap & ~(mask << maskPosition)) | (value << maskPosition);\n }\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n function createTextRangeWithKind(pos, end, kind) {\n var textRangeWithKind = { pos: pos, end: end, kind: kind };\n if (ts.Debug.isDebugging) {\n Object.defineProperty(textRangeWithKind, \"__debugKind\", {\n get: function () { return ts.Debug.formatSyntaxKind(kind); },\n });\n }\n return textRangeWithKind;\n }\n formatting.createTextRangeWithKind = createTextRangeWithKind;\n var Constants;\n (function (Constants) {\n Constants[Constants[\"Unknown\"] = -1] = \"Unknown\";\n })(Constants || (Constants = {}));\n function formatOnEnter(position, sourceFile, formatContext) {\n var line = sourceFile.getLineAndCharacterOfPosition(position).line;\n if (line === 0) {\n return [];\n }\n // After the enter key, the cursor is now at a new line. The new line may or may not contain non-whitespace characters.\n // If the new line has only whitespaces, we won't want to format this line, because that would remove the indentation as\n // trailing whitespaces. So the end of the formatting span should be the later one between:\n // 1. the end of the previous line\n // 2. the last non-whitespace character in the current line\n var endOfFormatSpan = ts.getEndLinePosition(line, sourceFile);\n while (ts.isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(endOfFormatSpan))) {\n endOfFormatSpan--;\n }\n // if the character at the end of the span is a line break, we shouldn't include it, because it indicates we don't want to\n // touch the current line at all. Also, on some OSes the line break consists of two characters (\\r\\n), we should test if the\n // previous character before the end of format span is line break character as well.\n if (ts.isLineBreak(sourceFile.text.charCodeAt(endOfFormatSpan))) {\n endOfFormatSpan--;\n }\n var span = {\n // get start position for the previous line\n pos: ts.getStartPositionOfLine(line - 1, sourceFile),\n // end value is exclusive so add 1 to the result\n end: endOfFormatSpan + 1\n };\n return formatSpan(span, sourceFile, formatContext, 2 /* FormatOnEnter */);\n }\n formatting.formatOnEnter = formatOnEnter;\n function formatOnSemicolon(position, sourceFile, formatContext) {\n var semicolon = findImmediatelyPrecedingTokenOfKind(position, 26 /* SemicolonToken */, sourceFile);\n return formatNodeLines(findOutermostNodeWithinListLevel(semicolon), sourceFile, formatContext, 3 /* FormatOnSemicolon */);\n }\n formatting.formatOnSemicolon = formatOnSemicolon;\n function formatOnOpeningCurly(position, sourceFile, formatContext) {\n var openingCurly = findImmediatelyPrecedingTokenOfKind(position, 18 /* OpenBraceToken */, sourceFile);\n if (!openingCurly) {\n return [];\n }\n var curlyBraceRange = openingCurly.parent;\n var outermostNode = findOutermostNodeWithinListLevel(curlyBraceRange);\n /**\n * We limit the span to end at the opening curly to handle the case where\n * the brace matched to that just typed will be incorrect after further edits.\n * For example, we could type the opening curly for the following method\n * body without brace-matching activated:\n * ```\n * class C {\n * foo()\n * }\n * ```\n * and we wouldn't want to move the closing brace.\n */\n var textRange = {\n pos: ts.getLineStartPositionForPosition(outermostNode.getStart(sourceFile), sourceFile),\n end: position\n };\n return formatSpan(textRange, sourceFile, formatContext, 4 /* FormatOnOpeningCurlyBrace */);\n }\n formatting.formatOnOpeningCurly = formatOnOpeningCurly;\n function formatOnClosingCurly(position, sourceFile, formatContext) {\n var precedingToken = findImmediatelyPrecedingTokenOfKind(position, 19 /* CloseBraceToken */, sourceFile);\n return formatNodeLines(findOutermostNodeWithinListLevel(precedingToken), sourceFile, formatContext, 5 /* FormatOnClosingCurlyBrace */);\n }\n formatting.formatOnClosingCurly = formatOnClosingCurly;\n function formatDocument(sourceFile, formatContext) {\n var span = {\n pos: 0,\n end: sourceFile.text.length\n };\n return formatSpan(span, sourceFile, formatContext, 0 /* FormatDocument */);\n }\n formatting.formatDocument = formatDocument;\n function formatSelection(start, end, sourceFile, formatContext) {\n // format from the beginning of the line\n var span = {\n pos: ts.getLineStartPositionForPosition(start, sourceFile),\n end: end,\n };\n return formatSpan(span, sourceFile, formatContext, 1 /* FormatSelection */);\n }\n formatting.formatSelection = formatSelection;\n /**\n * Validating `expectedTokenKind` ensures the token was typed in the context we expect (eg: not a comment).\n * @param expectedTokenKind The kind of the last token constituting the desired parent node.\n */\n function findImmediatelyPrecedingTokenOfKind(end, expectedTokenKind, sourceFile) {\n var precedingToken = ts.findPrecedingToken(end, sourceFile);\n return precedingToken && precedingToken.kind === expectedTokenKind && end === precedingToken.getEnd() ?\n precedingToken :\n undefined;\n }\n /**\n * Finds the highest node enclosing `node` at the same list level as `node`\n * and whose end does not exceed `node.end`.\n *\n * Consider typing the following\n * ```\n * let x = 1;\n * while (true) {\n * }\n * ```\n * Upon typing the closing curly, we want to format the entire `while`-statement, but not the preceding\n * variable declaration.\n */\n function findOutermostNodeWithinListLevel(node) {\n var current = node;\n while (current &&\n current.parent &&\n current.parent.end === node.end &&\n !isListElement(current.parent, current)) {\n current = current.parent;\n }\n return current;\n }\n // Returns true if node is a element in some list in parent\n // i.e. parent is class declaration with the list of members and node is one of members.\n function isListElement(parent, node) {\n switch (parent.kind) {\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n return ts.rangeContainsRange(parent.members, node);\n case 259 /* ModuleDeclaration */:\n var body = parent.body;\n return !!body && body.kind === 260 /* ModuleBlock */ && ts.rangeContainsRange(body.statements, node);\n case 300 /* SourceFile */:\n case 233 /* Block */:\n case 260 /* ModuleBlock */:\n return ts.rangeContainsRange(parent.statements, node);\n case 290 /* CatchClause */:\n return ts.rangeContainsRange(parent.block.statements, node);\n }\n return false;\n }\n /** find node that fully contains given text range */\n function findEnclosingNode(range, sourceFile) {\n return find(sourceFile);\n function find(n) {\n var candidate = ts.forEachChild(n, function (c) { return ts.startEndContainsRange(c.getStart(sourceFile), c.end, range) && c; });\n if (candidate) {\n var result = find(candidate);\n if (result) {\n return result;\n }\n }\n return n;\n }\n }\n /** formatting is not applied to ranges that contain parse errors.\n * This function will return a predicate that for a given text range will tell\n * if there are any parse errors that overlap with the range.\n */\n function prepareRangeContainsErrorFunction(errors, originalRange) {\n if (!errors.length) {\n return rangeHasNoErrors;\n }\n // pick only errors that fall in range\n var sorted = errors\n .filter(function (d) { return ts.rangeOverlapsWithStartEnd(originalRange, d.start, d.start + d.length); }) // TODO: GH#18217\n .sort(function (e1, e2) { return e1.start - e2.start; });\n if (!sorted.length) {\n return rangeHasNoErrors;\n }\n var index = 0;\n return function (r) {\n // in current implementation sequence of arguments [r1, r2...] is monotonically increasing.\n // 'index' tracks the index of the most recent error that was checked.\n while (true) {\n if (index >= sorted.length) {\n // all errors in the range were already checked -> no error in specified range\n return false;\n }\n var error = sorted[index];\n if (r.end <= error.start) {\n // specified range ends before the error referred by 'index' - no error in range\n return false;\n }\n if (ts.startEndOverlapsWithStartEnd(r.pos, r.end, error.start, error.start + error.length)) {\n // specified range overlaps with error range\n return true;\n }\n index++;\n }\n };\n function rangeHasNoErrors() {\n return false;\n }\n }\n /**\n * Start of the original range might fall inside the comment - scanner will not yield appropriate results\n * This function will look for token that is located before the start of target range\n * and return its end as start position for the scanner.\n */\n function getScanStartPosition(enclosingNode, originalRange, sourceFile) {\n var start = enclosingNode.getStart(sourceFile);\n if (start === originalRange.pos && enclosingNode.end === originalRange.end) {\n return start;\n }\n var precedingToken = ts.findPrecedingToken(originalRange.pos, sourceFile);\n if (!precedingToken) {\n // no preceding token found - start from the beginning of enclosing node\n return enclosingNode.pos;\n }\n // preceding token ends after the start of original range (i.e when originalRange.pos falls in the middle of literal)\n // start from the beginning of enclosingNode to handle the entire 'originalRange'\n if (precedingToken.end >= originalRange.pos) {\n return enclosingNode.pos;\n }\n return precedingToken.end;\n }\n /*\n * For cases like\n * if (a ||\n * b ||$\n * c) {...}\n * If we hit Enter at $ we want line ' b ||' to be indented.\n * Formatting will be applied to the last two lines.\n * Node that fully encloses these lines is binary expression 'a ||...'.\n * Initial indentation for this node will be 0.\n * Binary expressions don't introduce new indentation scopes, however it is possible\n * that some parent node on the same line does - like if statement in this case.\n * Note that we are considering parents only from the same line with initial node -\n * if parent is on the different line - its delta was already contributed\n * to the initial indentation.\n */\n function getOwnOrInheritedDelta(n, options, sourceFile) {\n var previousLine = -1 /* Unknown */;\n var child;\n while (n) {\n var line = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile)).line;\n if (previousLine !== -1 /* Unknown */ && line !== previousLine) {\n break;\n }\n if (formatting.SmartIndenter.shouldIndentChildNode(options, n, child, sourceFile)) {\n return options.indentSize;\n }\n previousLine = line;\n child = n;\n n = n.parent;\n }\n return 0;\n }\n function formatNodeGivenIndentation(node, sourceFileLike, languageVariant, initialIndentation, delta, formatContext) {\n var range = { pos: 0, end: sourceFileLike.text.length };\n return formatting.getFormattingScanner(sourceFileLike.text, languageVariant, range.pos, range.end, function (scanner) { return formatSpanWorker(range, node, initialIndentation, delta, scanner, formatContext, 1 /* FormatSelection */, function (_) { return false; }, // assume that node does not have any errors\n sourceFileLike); });\n }\n formatting.formatNodeGivenIndentation = formatNodeGivenIndentation;\n function formatNodeLines(node, sourceFile, formatContext, requestKind) {\n if (!node) {\n return [];\n }\n var span = {\n pos: ts.getLineStartPositionForPosition(node.getStart(sourceFile), sourceFile),\n end: node.end\n };\n return formatSpan(span, sourceFile, formatContext, requestKind);\n }\n function formatSpan(originalRange, sourceFile, formatContext, requestKind) {\n // find the smallest node that fully wraps the range and compute the initial indentation for the node\n var enclosingNode = findEnclosingNode(originalRange, sourceFile);\n return formatting.getFormattingScanner(sourceFile.text, sourceFile.languageVariant, getScanStartPosition(enclosingNode, originalRange, sourceFile), originalRange.end, function (scanner) { return formatSpanWorker(originalRange, enclosingNode, formatting.SmartIndenter.getIndentationForNode(enclosingNode, originalRange, sourceFile, formatContext.options), getOwnOrInheritedDelta(enclosingNode, formatContext.options, sourceFile), scanner, formatContext, requestKind, prepareRangeContainsErrorFunction(sourceFile.parseDiagnostics, originalRange), sourceFile); });\n }\n function formatSpanWorker(originalRange, enclosingNode, initialIndentation, delta, formattingScanner, _a, requestKind, rangeContainsError, sourceFile) {\n var options = _a.options, getRules = _a.getRules, host = _a.host;\n // formatting context is used by rules provider\n var formattingContext = new formatting.FormattingContext(sourceFile, requestKind, options);\n var previousRange;\n var previousParent;\n var previousRangeStartLine;\n var lastIndentedLine;\n var indentationOnLastIndentedLine = -1 /* Unknown */;\n var edits = [];\n formattingScanner.advance();\n if (formattingScanner.isOnToken()) {\n var startLine = sourceFile.getLineAndCharacterOfPosition(enclosingNode.getStart(sourceFile)).line;\n var undecoratedStartLine = startLine;\n if (enclosingNode.decorators) {\n undecoratedStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(enclosingNode, sourceFile)).line;\n }\n processNode(enclosingNode, enclosingNode, startLine, undecoratedStartLine, initialIndentation, delta);\n }\n if (!formattingScanner.isOnToken()) {\n var indentation = formatting.SmartIndenter.nodeWillIndentChild(options, enclosingNode, /*child*/ undefined, sourceFile, /*indentByDefault*/ false)\n ? initialIndentation + options.indentSize\n : initialIndentation;\n var leadingTrivia = formattingScanner.getCurrentLeadingTrivia();\n if (leadingTrivia) {\n indentTriviaItems(leadingTrivia, indentation, /*indentNextTokenOrTrivia*/ false, function (item) { return processRange(item, sourceFile.getLineAndCharacterOfPosition(item.pos), enclosingNode, enclosingNode, /*dynamicIndentation*/ undefined); });\n }\n }\n if (options.trimTrailingWhitespace !== false) {\n trimTrailingWhitespacesForRemainingRange();\n }\n return edits;\n // local functions\n /** Tries to compute the indentation for a list element.\n * If list element is not in range then\n * function will pick its actual indentation\n * so it can be pushed downstream as inherited indentation.\n * If list element is in the range - its indentation will be equal\n * to inherited indentation from its predecessors.\n */\n function tryComputeIndentationForListItem(startPos, endPos, parentStartLine, range, inheritedIndentation) {\n if (ts.rangeOverlapsWithStartEnd(range, startPos, endPos) ||\n ts.rangeContainsStartEnd(range, startPos, endPos) /* Not to miss zero-range nodes e.g. JsxText */) {\n if (inheritedIndentation !== -1 /* Unknown */) {\n return inheritedIndentation;\n }\n }\n else {\n var startLine = sourceFile.getLineAndCharacterOfPosition(startPos).line;\n var startLinePosition = ts.getLineStartPositionForPosition(startPos, sourceFile);\n var column = formatting.SmartIndenter.findFirstNonWhitespaceColumn(startLinePosition, startPos, sourceFile, options);\n if (startLine !== parentStartLine || startPos === column) {\n // Use the base indent size if it is greater than\n // the indentation of the inherited predecessor.\n var baseIndentSize = formatting.SmartIndenter.getBaseIndentation(options);\n return baseIndentSize > column ? baseIndentSize : column;\n }\n }\n return -1 /* Unknown */;\n }\n function computeIndentation(node, startLine, inheritedIndentation, parent, parentDynamicIndentation, effectiveParentStartLine) {\n var delta = formatting.SmartIndenter.shouldIndentChildNode(options, node) ? options.indentSize : 0;\n if (effectiveParentStartLine === startLine) {\n // if node is located on the same line with the parent\n // - inherit indentation from the parent\n // - push children if either parent of node itself has non-zero delta\n return {\n indentation: startLine === lastIndentedLine ? indentationOnLastIndentedLine : parentDynamicIndentation.getIndentation(),\n delta: Math.min(options.indentSize, parentDynamicIndentation.getDelta(node) + delta)\n };\n }\n else if (inheritedIndentation === -1 /* Unknown */) {\n if (node.kind === 20 /* OpenParenToken */ && startLine === lastIndentedLine) {\n // the is used for chaining methods formatting\n // - we need to get the indentation on last line and the delta of parent\n return { indentation: indentationOnLastIndentedLine, delta: parentDynamicIndentation.getDelta(node) };\n }\n else if (formatting.SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement(parent, node, startLine, sourceFile) ||\n formatting.SmartIndenter.childIsUnindentedBranchOfConditionalExpression(parent, node, startLine, sourceFile) ||\n formatting.SmartIndenter.argumentStartsOnSameLineAsPreviousArgument(parent, node, startLine, sourceFile)) {\n return { indentation: parentDynamicIndentation.getIndentation(), delta: delta };\n }\n else {\n return { indentation: parentDynamicIndentation.getIndentation() + parentDynamicIndentation.getDelta(node), delta: delta };\n }\n }\n else {\n return { indentation: inheritedIndentation, delta: delta };\n }\n }\n function getFirstNonDecoratorTokenOfNode(node) {\n if (node.modifiers && node.modifiers.length) {\n return node.modifiers[0].kind;\n }\n switch (node.kind) {\n case 255 /* ClassDeclaration */: return 84 /* ClassKeyword */;\n case 256 /* InterfaceDeclaration */: return 118 /* InterfaceKeyword */;\n case 254 /* FunctionDeclaration */: return 98 /* FunctionKeyword */;\n case 258 /* EnumDeclaration */: return 258 /* EnumDeclaration */;\n case 170 /* GetAccessor */: return 135 /* GetKeyword */;\n case 171 /* SetAccessor */: return 147 /* SetKeyword */;\n case 167 /* MethodDeclaration */:\n if (node.asteriskToken) {\n return 41 /* AsteriskToken */;\n }\n // falls through\n case 165 /* PropertyDeclaration */:\n case 162 /* Parameter */:\n var name = ts.getNameOfDeclaration(node);\n if (name) {\n return name.kind;\n }\n }\n }\n function getDynamicIndentation(node, nodeStartLine, indentation, delta) {\n return {\n getIndentationForComment: function (kind, tokenIndentation, container) {\n switch (kind) {\n // preceding comment to the token that closes the indentation scope inherits the indentation from the scope\n // .. {\n // // comment\n // }\n case 19 /* CloseBraceToken */:\n case 23 /* CloseBracketToken */:\n case 21 /* CloseParenToken */:\n return indentation + getDelta(container);\n }\n return tokenIndentation !== -1 /* Unknown */ ? tokenIndentation : indentation;\n },\n // if list end token is LessThanToken '>' then its delta should be explicitly suppressed\n // so that LessThanToken as a binary operator can still be indented.\n // foo.then\n // <\n // number,\n // string,\n // >();\n // vs\n // var a = xValue\n // > yValue;\n getIndentationForToken: function (line, kind, container, suppressDelta) {\n return !suppressDelta && shouldAddDelta(line, kind, container) ? indentation + getDelta(container) : indentation;\n },\n getIndentation: function () { return indentation; },\n getDelta: getDelta,\n recomputeIndentation: function (lineAdded, parent) {\n if (formatting.SmartIndenter.shouldIndentChildNode(options, parent, node, sourceFile)) {\n indentation += lineAdded ? options.indentSize : -options.indentSize;\n delta = formatting.SmartIndenter.shouldIndentChildNode(options, node) ? options.indentSize : 0;\n }\n }\n };\n function shouldAddDelta(line, kind, container) {\n switch (kind) {\n // open and close brace, 'else' and 'while' (in do statement) tokens has indentation of the parent\n case 18 /* OpenBraceToken */:\n case 19 /* CloseBraceToken */:\n case 21 /* CloseParenToken */:\n case 91 /* ElseKeyword */:\n case 115 /* WhileKeyword */:\n case 59 /* AtToken */:\n return false;\n case 43 /* SlashToken */:\n case 31 /* GreaterThanToken */:\n switch (container.kind) {\n case 278 /* JsxOpeningElement */:\n case 279 /* JsxClosingElement */:\n case 277 /* JsxSelfClosingElement */:\n case 226 /* ExpressionWithTypeArguments */:\n return false;\n }\n break;\n case 22 /* OpenBracketToken */:\n case 23 /* CloseBracketToken */:\n if (container.kind !== 193 /* MappedType */) {\n return false;\n }\n break;\n }\n // if token line equals to the line of containing node (this is a first token in the node) - use node indentation\n return nodeStartLine !== line\n // if this token is the first token following the list of decorators, we do not need to indent\n && !(node.decorators && kind === getFirstNonDecoratorTokenOfNode(node));\n }\n function getDelta(child) {\n // Delta value should be zero when the node explicitly prevents indentation of the child node\n return formatting.SmartIndenter.nodeWillIndentChild(options, node, child, sourceFile, /*indentByDefault*/ true) ? delta : 0;\n }\n }\n function processNode(node, contextNode, nodeStartLine, undecoratedNodeStartLine, indentation, delta) {\n if (!ts.rangeOverlapsWithStartEnd(originalRange, node.getStart(sourceFile), node.getEnd())) {\n return;\n }\n var nodeDynamicIndentation = getDynamicIndentation(node, nodeStartLine, indentation, delta);\n // a useful observations when tracking context node\n // /\n // [a]\n // / | \\\n // [b] [c] [d]\n // node 'a' is a context node for nodes 'b', 'c', 'd'\n // except for the leftmost leaf token in [b] - in this case context node ('e') is located somewhere above 'a'\n // this rule can be applied recursively to child nodes of 'a'.\n //\n // context node is set to parent node value after processing every child node\n // context node is set to parent of the token after processing every token\n var childContextNode = contextNode;\n // if there are any tokens that logically belong to node and interleave child nodes\n // such tokens will be consumed in processChildNode for the child that follows them\n ts.forEachChild(node, function (child) {\n processChildNode(child, /*inheritedIndentation*/ -1 /* Unknown */, node, nodeDynamicIndentation, nodeStartLine, undecoratedNodeStartLine, /*isListItem*/ false);\n }, function (nodes) {\n processChildNodes(nodes, node, nodeStartLine, nodeDynamicIndentation);\n });\n // proceed any tokens in the node that are located after child nodes\n while (formattingScanner.isOnToken()) {\n var tokenInfo = formattingScanner.readTokenInfo(node);\n if (tokenInfo.token.end > node.end) {\n break;\n }\n consumeTokenAndAdvanceScanner(tokenInfo, node, nodeDynamicIndentation, node);\n }\n if (!node.parent && formattingScanner.isOnEOF()) {\n var token = formattingScanner.readEOFTokenRange();\n if (token.end <= node.end && previousRange) {\n processPair(token, sourceFile.getLineAndCharacterOfPosition(token.pos).line, node, previousRange, previousRangeStartLine, previousParent, contextNode, nodeDynamicIndentation);\n }\n }\n function processChildNode(child, inheritedIndentation, parent, parentDynamicIndentation, parentStartLine, undecoratedParentStartLine, isListItem, isFirstListItem) {\n var childStartPos = child.getStart(sourceFile);\n var childStartLine = sourceFile.getLineAndCharacterOfPosition(childStartPos).line;\n var undecoratedChildStartLine = childStartLine;\n if (child.decorators) {\n undecoratedChildStartLine = sourceFile.getLineAndCharacterOfPosition(ts.getNonDecoratorTokenPosOfNode(child, sourceFile)).line;\n }\n // if child is a list item - try to get its indentation, only if parent is within the original range.\n var childIndentationAmount = -1 /* Unknown */;\n if (isListItem && ts.rangeContainsRange(originalRange, parent)) {\n childIndentationAmount = tryComputeIndentationForListItem(childStartPos, child.end, parentStartLine, originalRange, inheritedIndentation);\n if (childIndentationAmount !== -1 /* Unknown */) {\n inheritedIndentation = childIndentationAmount;\n }\n }\n // child node is outside the target range - do not dive inside\n if (!ts.rangeOverlapsWithStartEnd(originalRange, child.pos, child.end)) {\n if (child.end < originalRange.pos) {\n formattingScanner.skipToEndOf(child);\n }\n return inheritedIndentation;\n }\n if (child.getFullWidth() === 0) {\n return inheritedIndentation;\n }\n while (formattingScanner.isOnToken()) {\n // proceed any parent tokens that are located prior to child.getStart()\n var tokenInfo = formattingScanner.readTokenInfo(node);\n if (tokenInfo.token.end > childStartPos) {\n if (tokenInfo.token.pos > childStartPos) {\n formattingScanner.skipToStartOf(child);\n }\n // stop when formatting scanner advances past the beginning of the child\n break;\n }\n consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation, node);\n }\n if (!formattingScanner.isOnToken()) {\n return inheritedIndentation;\n }\n if (ts.isToken(child)) {\n // if child node is a token, it does not impact indentation, proceed it using parent indentation scope rules\n var tokenInfo = formattingScanner.readTokenInfo(child);\n // JSX text shouldn't affect indenting\n if (child.kind !== 11 /* JsxText */) {\n ts.Debug.assert(tokenInfo.token.end === child.end, \"Token end is child end\");\n consumeTokenAndAdvanceScanner(tokenInfo, node, parentDynamicIndentation, child);\n return inheritedIndentation;\n }\n }\n var effectiveParentStartLine = child.kind === 163 /* Decorator */ ? childStartLine : undecoratedParentStartLine;\n var childIndentation = computeIndentation(child, childStartLine, childIndentationAmount, node, parentDynamicIndentation, effectiveParentStartLine);\n processNode(child, childContextNode, childStartLine, undecoratedChildStartLine, childIndentation.indentation, childIndentation.delta);\n childContextNode = node;\n if (isFirstListItem && parent.kind === 202 /* ArrayLiteralExpression */ && inheritedIndentation === -1 /* Unknown */) {\n inheritedIndentation = childIndentation.indentation;\n }\n return inheritedIndentation;\n }\n function processChildNodes(nodes, parent, parentStartLine, parentDynamicIndentation) {\n ts.Debug.assert(ts.isNodeArray(nodes));\n var listStartToken = getOpenTokenForList(parent, nodes);\n var listDynamicIndentation = parentDynamicIndentation;\n var startLine = parentStartLine;\n if (listStartToken !== 0 /* Unknown */) {\n // introduce a new indentation scope for lists (including list start and end tokens)\n while (formattingScanner.isOnToken()) {\n var tokenInfo = formattingScanner.readTokenInfo(parent);\n if (tokenInfo.token.end > nodes.pos) {\n // stop when formatting scanner moves past the beginning of node list\n break;\n }\n else if (tokenInfo.token.kind === listStartToken) {\n // consume list start token\n startLine = sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;\n consumeTokenAndAdvanceScanner(tokenInfo, parent, parentDynamicIndentation, parent);\n var indentationOnListStartToken = void 0;\n if (indentationOnLastIndentedLine !== -1 /* Unknown */) {\n // scanner just processed list start token so consider last indentation as list indentation\n // function foo(): { // last indentation was 0, list item will be indented based on this value\n // foo: number;\n // }: {};\n indentationOnListStartToken = indentationOnLastIndentedLine;\n }\n else {\n var startLinePosition = ts.getLineStartPositionForPosition(tokenInfo.token.pos, sourceFile);\n indentationOnListStartToken = formatting.SmartIndenter.findFirstNonWhitespaceColumn(startLinePosition, tokenInfo.token.pos, sourceFile, options);\n }\n listDynamicIndentation = getDynamicIndentation(parent, parentStartLine, indentationOnListStartToken, options.indentSize); // TODO: GH#18217\n }\n else {\n // consume any tokens that precede the list as child elements of 'node' using its indentation scope\n consumeTokenAndAdvanceScanner(tokenInfo, parent, parentDynamicIndentation, parent);\n }\n }\n }\n var inheritedIndentation = -1 /* Unknown */;\n for (var i = 0; i < nodes.length; i++) {\n var child = nodes[i];\n inheritedIndentation = processChildNode(child, inheritedIndentation, node, listDynamicIndentation, startLine, startLine, /*isListItem*/ true, /*isFirstListItem*/ i === 0);\n }\n var listEndToken = getCloseTokenForOpenToken(listStartToken);\n if (listEndToken !== 0 /* Unknown */ && formattingScanner.isOnToken()) {\n var tokenInfo = formattingScanner.readTokenInfo(parent);\n if (tokenInfo.token.kind === 27 /* CommaToken */ && ts.isCallLikeExpression(parent)) {\n var commaTokenLine = sourceFile.getLineAndCharacterOfPosition(tokenInfo.token.pos).line;\n if (startLine !== commaTokenLine) {\n formattingScanner.advance();\n tokenInfo = formattingScanner.isOnToken() ? formattingScanner.readTokenInfo(parent) : undefined;\n }\n }\n // consume the list end token only if it is still belong to the parent\n // there might be the case when current token matches end token but does not considered as one\n // function (x: function) <--\n // without this check close paren will be interpreted as list end token for function expression which is wrong\n if (tokenInfo && tokenInfo.token.kind === listEndToken && ts.rangeContainsRange(parent, tokenInfo.token)) {\n // consume list end token\n consumeTokenAndAdvanceScanner(tokenInfo, parent, listDynamicIndentation, parent, /*isListEndToken*/ true);\n }\n }\n }\n function consumeTokenAndAdvanceScanner(currentTokenInfo, parent, dynamicIndentation, container, isListEndToken) {\n ts.Debug.assert(ts.rangeContainsRange(parent, currentTokenInfo.token));\n var lastTriviaWasNewLine = formattingScanner.lastTrailingTriviaWasNewLine();\n var indentToken = false;\n if (currentTokenInfo.leadingTrivia) {\n processTrivia(currentTokenInfo.leadingTrivia, parent, childContextNode, dynamicIndentation);\n }\n var lineAction = 0 /* None */;\n var isTokenInRange = ts.rangeContainsRange(originalRange, currentTokenInfo.token);\n var tokenStart = sourceFile.getLineAndCharacterOfPosition(currentTokenInfo.token.pos);\n if (isTokenInRange) {\n var rangeHasError = rangeContainsError(currentTokenInfo.token);\n // save previousRange since processRange will overwrite this value with current one\n var savePreviousRange = previousRange;\n lineAction = processRange(currentTokenInfo.token, tokenStart, parent, childContextNode, dynamicIndentation);\n // do not indent comments\\token if token range overlaps with some error\n if (!rangeHasError) {\n if (lineAction === 0 /* None */) {\n // indent token only if end line of previous range does not match start line of the token\n var prevEndLine = savePreviousRange && sourceFile.getLineAndCharacterOfPosition(savePreviousRange.end).line;\n indentToken = lastTriviaWasNewLine && tokenStart.line !== prevEndLine;\n }\n else {\n indentToken = lineAction === 1 /* LineAdded */;\n }\n }\n }\n if (currentTokenInfo.trailingTrivia) {\n processTrivia(currentTokenInfo.trailingTrivia, parent, childContextNode, dynamicIndentation);\n }\n if (indentToken) {\n var tokenIndentation = (isTokenInRange && !rangeContainsError(currentTokenInfo.token)) ?\n dynamicIndentation.getIndentationForToken(tokenStart.line, currentTokenInfo.token.kind, container, !!isListEndToken) :\n -1 /* Unknown */;\n var indentNextTokenOrTrivia = true;\n if (currentTokenInfo.leadingTrivia) {\n var commentIndentation_1 = dynamicIndentation.getIndentationForComment(currentTokenInfo.token.kind, tokenIndentation, container);\n indentNextTokenOrTrivia = indentTriviaItems(currentTokenInfo.leadingTrivia, commentIndentation_1, indentNextTokenOrTrivia, function (item) { return insertIndentation(item.pos, commentIndentation_1, /*lineAdded*/ false); });\n }\n // indent token only if is it is in target range and does not overlap with any error ranges\n if (tokenIndentation !== -1 /* Unknown */ && indentNextTokenOrTrivia) {\n insertIndentation(currentTokenInfo.token.pos, tokenIndentation, lineAction === 1 /* LineAdded */);\n lastIndentedLine = tokenStart.line;\n indentationOnLastIndentedLine = tokenIndentation;\n }\n }\n formattingScanner.advance();\n childContextNode = parent;\n }\n }\n function indentTriviaItems(trivia, commentIndentation, indentNextTokenOrTrivia, indentSingleLine) {\n for (var _i = 0, trivia_1 = trivia; _i < trivia_1.length; _i++) {\n var triviaItem = trivia_1[_i];\n var triviaInRange = ts.rangeContainsRange(originalRange, triviaItem);\n switch (triviaItem.kind) {\n case 3 /* MultiLineCommentTrivia */:\n if (triviaInRange) {\n indentMultilineComment(triviaItem, commentIndentation, /*firstLineIsIndented*/ !indentNextTokenOrTrivia);\n }\n indentNextTokenOrTrivia = false;\n break;\n case 2 /* SingleLineCommentTrivia */:\n if (indentNextTokenOrTrivia && triviaInRange) {\n indentSingleLine(triviaItem);\n }\n indentNextTokenOrTrivia = false;\n break;\n case 4 /* NewLineTrivia */:\n indentNextTokenOrTrivia = true;\n break;\n }\n }\n return indentNextTokenOrTrivia;\n }\n function processTrivia(trivia, parent, contextNode, dynamicIndentation) {\n for (var _i = 0, trivia_2 = trivia; _i < trivia_2.length; _i++) {\n var triviaItem = trivia_2[_i];\n if (ts.isComment(triviaItem.kind) && ts.rangeContainsRange(originalRange, triviaItem)) {\n var triviaItemStart = sourceFile.getLineAndCharacterOfPosition(triviaItem.pos);\n processRange(triviaItem, triviaItemStart, parent, contextNode, dynamicIndentation);\n }\n }\n }\n function processRange(range, rangeStart, parent, contextNode, dynamicIndentation) {\n var rangeHasError = rangeContainsError(range);\n var lineAction = 0 /* None */;\n if (!rangeHasError) {\n if (!previousRange) {\n // trim whitespaces starting from the beginning of the span up to the current line\n var originalStart = sourceFile.getLineAndCharacterOfPosition(originalRange.pos);\n trimTrailingWhitespacesForLines(originalStart.line, rangeStart.line);\n }\n else {\n lineAction =\n processPair(range, rangeStart.line, parent, previousRange, previousRangeStartLine, previousParent, contextNode, dynamicIndentation);\n }\n }\n previousRange = range;\n previousParent = parent;\n previousRangeStartLine = rangeStart.line;\n return lineAction;\n }\n function processPair(currentItem, currentStartLine, currentParent, previousItem, previousStartLine, previousParent, contextNode, dynamicIndentation) {\n formattingContext.updateContext(previousItem, previousParent, currentItem, currentParent, contextNode);\n var rules = getRules(formattingContext);\n var trimTrailingWhitespaces = formattingContext.options.trimTrailingWhitespace !== false;\n var lineAction = 0 /* None */;\n if (rules) {\n // Apply rules in reverse order so that higher priority rules (which are first in the array)\n // win in a conflict with lower priority rules.\n ts.forEachRight(rules, function (rule) {\n lineAction = applyRuleEdits(rule, previousItem, previousStartLine, currentItem, currentStartLine);\n switch (lineAction) {\n case 2 /* LineRemoved */:\n // Handle the case where the next line is moved to be the end of this line.\n // In this case we don't indent the next line in the next pass.\n if (currentParent.getStart(sourceFile) === currentItem.pos) {\n dynamicIndentation.recomputeIndentation(/*lineAddedByFormatting*/ false, contextNode);\n }\n break;\n case 1 /* LineAdded */:\n // Handle the case where token2 is moved to the new line.\n // In this case we indent token2 in the next pass but we set\n // sameLineIndent flag to notify the indenter that the indentation is within the line.\n if (currentParent.getStart(sourceFile) === currentItem.pos) {\n dynamicIndentation.recomputeIndentation(/*lineAddedByFormatting*/ true, contextNode);\n }\n break;\n default:\n ts.Debug.assert(lineAction === 0 /* None */);\n }\n // We need to trim trailing whitespace between the tokens if they were on different lines, and no rule was applied to put them on the same line\n trimTrailingWhitespaces = trimTrailingWhitespaces && !(rule.action & 16 /* DeleteSpace */) && rule.flags !== 1 /* CanDeleteNewLines */;\n });\n }\n else {\n trimTrailingWhitespaces = trimTrailingWhitespaces && currentItem.kind !== 1 /* EndOfFileToken */;\n }\n if (currentStartLine !== previousStartLine && trimTrailingWhitespaces) {\n // We need to trim trailing whitespace between the tokens if they were on different lines, and no rule was applied to put them on the same line\n trimTrailingWhitespacesForLines(previousStartLine, currentStartLine, previousItem);\n }\n return lineAction;\n }\n function insertIndentation(pos, indentation, lineAdded) {\n var indentationString = getIndentationString(indentation, options);\n if (lineAdded) {\n // new line is added before the token by the formatting rules\n // insert indentation string at the very beginning of the token\n recordReplace(pos, 0, indentationString);\n }\n else {\n var tokenStart = sourceFile.getLineAndCharacterOfPosition(pos);\n var startLinePosition = ts.getStartPositionOfLine(tokenStart.line, sourceFile);\n if (indentation !== characterToColumn(startLinePosition, tokenStart.character) || indentationIsDifferent(indentationString, startLinePosition)) {\n recordReplace(startLinePosition, tokenStart.character, indentationString);\n }\n }\n }\n function characterToColumn(startLinePosition, characterInLine) {\n var column = 0;\n for (var i = 0; i < characterInLine; i++) {\n if (sourceFile.text.charCodeAt(startLinePosition + i) === 9 /* tab */) {\n column += options.tabSize - column % options.tabSize;\n }\n else {\n column++;\n }\n }\n return column;\n }\n function indentationIsDifferent(indentationString, startLinePosition) {\n return indentationString !== sourceFile.text.substr(startLinePosition, indentationString.length);\n }\n function indentMultilineComment(commentRange, indentation, firstLineIsIndented, indentFinalLine) {\n if (indentFinalLine === void 0) { indentFinalLine = true; }\n // split comment in lines\n var startLine = sourceFile.getLineAndCharacterOfPosition(commentRange.pos).line;\n var endLine = sourceFile.getLineAndCharacterOfPosition(commentRange.end).line;\n if (startLine === endLine) {\n if (!firstLineIsIndented) {\n // treat as single line comment\n insertIndentation(commentRange.pos, indentation, /*lineAdded*/ false);\n }\n return;\n }\n var parts = [];\n var startPos = commentRange.pos;\n for (var line = startLine; line < endLine; line++) {\n var endOfLine = ts.getEndLinePosition(line, sourceFile);\n parts.push({ pos: startPos, end: endOfLine });\n startPos = ts.getStartPositionOfLine(line + 1, sourceFile);\n }\n if (indentFinalLine) {\n parts.push({ pos: startPos, end: commentRange.end });\n }\n if (parts.length === 0)\n return;\n var startLinePos = ts.getStartPositionOfLine(startLine, sourceFile);\n var nonWhitespaceColumnInFirstPart = formatting.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(startLinePos, parts[0].pos, sourceFile, options);\n var startIndex = 0;\n if (firstLineIsIndented) {\n startIndex = 1;\n startLine++;\n }\n // shift all parts on the delta size\n var delta = indentation - nonWhitespaceColumnInFirstPart.column;\n for (var i = startIndex; i < parts.length; i++, startLine++) {\n var startLinePos_1 = ts.getStartPositionOfLine(startLine, sourceFile);\n var nonWhitespaceCharacterAndColumn = i === 0\n ? nonWhitespaceColumnInFirstPart\n : formatting.SmartIndenter.findFirstNonWhitespaceCharacterAndColumn(parts[i].pos, parts[i].end, sourceFile, options);\n var newIndentation = nonWhitespaceCharacterAndColumn.column + delta;\n if (newIndentation > 0) {\n var indentationString = getIndentationString(newIndentation, options);\n recordReplace(startLinePos_1, nonWhitespaceCharacterAndColumn.character, indentationString);\n }\n else {\n recordDelete(startLinePos_1, nonWhitespaceCharacterAndColumn.character);\n }\n }\n }\n function trimTrailingWhitespacesForLines(line1, line2, range) {\n for (var line = line1; line < line2; line++) {\n var lineStartPosition = ts.getStartPositionOfLine(line, sourceFile);\n var lineEndPosition = ts.getEndLinePosition(line, sourceFile);\n // do not trim whitespaces in comments or template expression\n if (range && (ts.isComment(range.kind) || ts.isStringOrRegularExpressionOrTemplateLiteral(range.kind)) && range.pos <= lineEndPosition && range.end > lineEndPosition) {\n continue;\n }\n var whitespaceStart = getTrailingWhitespaceStartPosition(lineStartPosition, lineEndPosition);\n if (whitespaceStart !== -1) {\n ts.Debug.assert(whitespaceStart === lineStartPosition || !ts.isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(whitespaceStart - 1)));\n recordDelete(whitespaceStart, lineEndPosition + 1 - whitespaceStart);\n }\n }\n }\n /**\n * @param start The position of the first character in range\n * @param end The position of the last character in range\n */\n function getTrailingWhitespaceStartPosition(start, end) {\n var pos = end;\n while (pos >= start && ts.isWhiteSpaceSingleLine(sourceFile.text.charCodeAt(pos))) {\n pos--;\n }\n if (pos !== end) {\n return pos + 1;\n }\n return -1;\n }\n /**\n * Trimming will be done for lines after the previous range\n */\n function trimTrailingWhitespacesForRemainingRange() {\n var startPosition = previousRange ? previousRange.end : originalRange.pos;\n var startLine = sourceFile.getLineAndCharacterOfPosition(startPosition).line;\n var endLine = sourceFile.getLineAndCharacterOfPosition(originalRange.end).line;\n trimTrailingWhitespacesForLines(startLine, endLine + 1, previousRange);\n }\n function recordDelete(start, len) {\n if (len) {\n edits.push(ts.createTextChangeFromStartLength(start, len, \"\"));\n }\n }\n function recordReplace(start, len, newText) {\n if (len || newText) {\n edits.push(ts.createTextChangeFromStartLength(start, len, newText));\n }\n }\n function recordInsert(start, text) {\n if (text) {\n edits.push(ts.createTextChangeFromStartLength(start, 0, text));\n }\n }\n function applyRuleEdits(rule, previousRange, previousStartLine, currentRange, currentStartLine) {\n var onLaterLine = currentStartLine !== previousStartLine;\n switch (rule.action) {\n case 1 /* StopProcessingSpaceActions */:\n // no action required\n return 0 /* None */;\n case 16 /* DeleteSpace */:\n if (previousRange.end !== currentRange.pos) {\n // delete characters starting from t1.end up to t2.pos exclusive\n recordDelete(previousRange.end, currentRange.pos - previousRange.end);\n return onLaterLine ? 2 /* LineRemoved */ : 0 /* None */;\n }\n break;\n case 32 /* DeleteToken */:\n recordDelete(previousRange.pos, previousRange.end - previousRange.pos);\n break;\n case 8 /* InsertNewLine */:\n // exit early if we on different lines and rule cannot change number of newlines\n // if line1 and line2 are on subsequent lines then no edits are required - ok to exit\n // if line1 and line2 are separated with more than one newline - ok to exit since we cannot delete extra new lines\n if (rule.flags !== 1 /* CanDeleteNewLines */ && previousStartLine !== currentStartLine) {\n return 0 /* None */;\n }\n // edit should not be applied if we have one line feed between elements\n var lineDelta = currentStartLine - previousStartLine;\n if (lineDelta !== 1) {\n recordReplace(previousRange.end, currentRange.pos - previousRange.end, ts.getNewLineOrDefaultFromHost(host, options));\n return onLaterLine ? 0 /* None */ : 1 /* LineAdded */;\n }\n break;\n case 4 /* InsertSpace */:\n // exit early if we on different lines and rule cannot change number of newlines\n if (rule.flags !== 1 /* CanDeleteNewLines */ && previousStartLine !== currentStartLine) {\n return 0 /* None */;\n }\n var posDelta = currentRange.pos - previousRange.end;\n if (posDelta !== 1 || sourceFile.text.charCodeAt(previousRange.end) !== 32 /* space */) {\n recordReplace(previousRange.end, currentRange.pos - previousRange.end, \" \");\n return onLaterLine ? 2 /* LineRemoved */ : 0 /* None */;\n }\n break;\n case 64 /* InsertTrailingSemicolon */:\n recordInsert(previousRange.end, \";\");\n }\n return 0 /* None */;\n }\n }\n var LineAction;\n (function (LineAction) {\n LineAction[LineAction[\"None\"] = 0] = \"None\";\n LineAction[LineAction[\"LineAdded\"] = 1] = \"LineAdded\";\n LineAction[LineAction[\"LineRemoved\"] = 2] = \"LineRemoved\";\n })(LineAction || (LineAction = {}));\n /**\n * @param precedingToken pass `null` if preceding token was already computed and result was `undefined`.\n */\n function getRangeOfEnclosingComment(sourceFile, position, precedingToken, tokenAtPosition) {\n if (tokenAtPosition === void 0) { tokenAtPosition = ts.getTokenAtPosition(sourceFile, position); }\n var jsdoc = ts.findAncestor(tokenAtPosition, ts.isJSDoc);\n if (jsdoc)\n tokenAtPosition = jsdoc.parent;\n var tokenStart = tokenAtPosition.getStart(sourceFile);\n if (tokenStart <= position && position < tokenAtPosition.getEnd()) {\n return undefined;\n }\n // eslint-disable-next-line no-null/no-null\n precedingToken = precedingToken === null ? undefined : precedingToken === undefined ? ts.findPrecedingToken(position, sourceFile) : precedingToken;\n // Between two consecutive tokens, all comments are either trailing on the former\n // or leading on the latter (and none are in both lists).\n var trailingRangesOfPreviousToken = precedingToken && ts.getTrailingCommentRanges(sourceFile.text, precedingToken.end);\n var leadingCommentRangesOfNextToken = ts.getLeadingCommentRangesOfNode(tokenAtPosition, sourceFile);\n var commentRanges = ts.concatenate(trailingRangesOfPreviousToken, leadingCommentRangesOfNextToken);\n return commentRanges && ts.find(commentRanges, function (range) { return ts.rangeContainsPositionExclusive(range, position) ||\n // The end marker of a single-line comment does not include the newline character.\n // With caret at `^`, in the following case, we are inside a comment (^ denotes the cursor position):\n //\n // // asdf ^\\n\n //\n // But for closed multi-line comments, we don't want to be inside the comment in the following case:\n //\n // /* asdf */^\n //\n // However, unterminated multi-line comments *do* contain their end.\n //\n // Internally, we represent the end of the comment at the newline and closing '/', respectively.\n //\n position === range.end && (range.kind === 2 /* SingleLineCommentTrivia */ || position === sourceFile.getFullWidth()); });\n }\n formatting.getRangeOfEnclosingComment = getRangeOfEnclosingComment;\n function getOpenTokenForList(node, list) {\n switch (node.kind) {\n case 169 /* Constructor */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 212 /* ArrowFunction */:\n if (node.typeParameters === list) {\n return 29 /* LessThanToken */;\n }\n else if (node.parameters === list) {\n return 20 /* OpenParenToken */;\n }\n break;\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n if (node.typeArguments === list) {\n return 29 /* LessThanToken */;\n }\n else if (node.arguments === list) {\n return 20 /* OpenParenToken */;\n }\n break;\n case 176 /* TypeReference */:\n if (node.typeArguments === list) {\n return 29 /* LessThanToken */;\n }\n break;\n case 180 /* TypeLiteral */:\n return 18 /* OpenBraceToken */;\n }\n return 0 /* Unknown */;\n }\n function getCloseTokenForOpenToken(kind) {\n switch (kind) {\n case 20 /* OpenParenToken */:\n return 21 /* CloseParenToken */;\n case 29 /* LessThanToken */:\n return 31 /* GreaterThanToken */;\n case 18 /* OpenBraceToken */:\n return 19 /* CloseBraceToken */;\n }\n return 0 /* Unknown */;\n }\n var internedSizes;\n var internedTabsIndentation;\n var internedSpacesIndentation;\n function getIndentationString(indentation, options) {\n // reset interned strings if FormatCodeOptions were changed\n var resetInternedStrings = !internedSizes || (internedSizes.tabSize !== options.tabSize || internedSizes.indentSize !== options.indentSize);\n if (resetInternedStrings) {\n internedSizes = { tabSize: options.tabSize, indentSize: options.indentSize };\n internedTabsIndentation = internedSpacesIndentation = undefined;\n }\n if (!options.convertTabsToSpaces) {\n var tabs = Math.floor(indentation / options.tabSize);\n var spaces = indentation - tabs * options.tabSize;\n var tabString = void 0;\n if (!internedTabsIndentation) {\n internedTabsIndentation = [];\n }\n if (internedTabsIndentation[tabs] === undefined) {\n internedTabsIndentation[tabs] = tabString = ts.repeatString(\"\\t\", tabs);\n }\n else {\n tabString = internedTabsIndentation[tabs];\n }\n return spaces ? tabString + ts.repeatString(\" \", spaces) : tabString;\n }\n else {\n var spacesString = void 0;\n var quotient = Math.floor(indentation / options.indentSize);\n var remainder = indentation % options.indentSize;\n if (!internedSpacesIndentation) {\n internedSpacesIndentation = [];\n }\n if (internedSpacesIndentation[quotient] === undefined) {\n spacesString = ts.repeatString(\" \", options.indentSize * quotient);\n internedSpacesIndentation[quotient] = spacesString;\n }\n else {\n spacesString = internedSpacesIndentation[quotient];\n }\n return remainder ? spacesString + ts.repeatString(\" \", remainder) : spacesString;\n }\n }\n formatting.getIndentationString = getIndentationString;\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var formatting;\n (function (formatting) {\n var SmartIndenter;\n (function (SmartIndenter) {\n var Value;\n (function (Value) {\n Value[Value[\"Unknown\"] = -1] = \"Unknown\";\n })(Value || (Value = {}));\n /**\n * @param assumeNewLineBeforeCloseBrace\n * `false` when called on text from a real source file.\n * `true` when we need to assume `position` is on a newline.\n *\n * This is useful for codefixes. Consider\n * ```\n * function f() {\n * |}\n * ```\n * with `position` at `|`.\n *\n * When inserting some text after an open brace, we would like to get indentation as if a newline was already there.\n * By default indentation at `position` will be 0 so 'assumeNewLineBeforeCloseBrace' overrides this behavior.\n */\n function getIndentation(position, sourceFile, options, assumeNewLineBeforeCloseBrace) {\n if (assumeNewLineBeforeCloseBrace === void 0) { assumeNewLineBeforeCloseBrace = false; }\n if (position > sourceFile.text.length) {\n return getBaseIndentation(options); // past EOF\n }\n // no indentation when the indent style is set to none,\n // so we can return fast\n if (options.indentStyle === ts.IndentStyle.None) {\n return 0;\n }\n var precedingToken = ts.findPrecedingToken(position, sourceFile, /*startNode*/ undefined, /*excludeJsdoc*/ true);\n // eslint-disable-next-line no-null/no-null\n var enclosingCommentRange = formatting.getRangeOfEnclosingComment(sourceFile, position, precedingToken || null);\n if (enclosingCommentRange && enclosingCommentRange.kind === 3 /* MultiLineCommentTrivia */) {\n return getCommentIndent(sourceFile, position, options, enclosingCommentRange);\n }\n if (!precedingToken) {\n return getBaseIndentation(options);\n }\n // no indentation in string \\regex\\template literals\n var precedingTokenIsLiteral = ts.isStringOrRegularExpressionOrTemplateLiteral(precedingToken.kind);\n if (precedingTokenIsLiteral && precedingToken.getStart(sourceFile) <= position && position < precedingToken.end) {\n return 0;\n }\n var lineAtPosition = sourceFile.getLineAndCharacterOfPosition(position).line;\n // indentation is first non-whitespace character in a previous line\n // for block indentation, we should look for a line which contains something that's not\n // whitespace.\n if (options.indentStyle === ts.IndentStyle.Block) {\n return getBlockIndent(sourceFile, position, options);\n }\n if (precedingToken.kind === 27 /* CommaToken */ && precedingToken.parent.kind !== 219 /* BinaryExpression */) {\n // previous token is comma that separates items in list - find the previous item and try to derive indentation from it\n var actualIndentation = getActualIndentationForListItemBeforeComma(precedingToken, sourceFile, options);\n if (actualIndentation !== -1 /* Unknown */) {\n return actualIndentation;\n }\n }\n var containerList = getListByPosition(position, precedingToken.parent, sourceFile);\n // use list position if the preceding token is before any list items\n if (containerList && !ts.rangeContainsRange(containerList, precedingToken)) {\n return getActualIndentationForListStartLine(containerList, sourceFile, options) + options.indentSize; // TODO: GH#18217\n }\n return getSmartIndent(sourceFile, position, precedingToken, lineAtPosition, assumeNewLineBeforeCloseBrace, options);\n }\n SmartIndenter.getIndentation = getIndentation;\n function getCommentIndent(sourceFile, position, options, enclosingCommentRange) {\n var previousLine = ts.getLineAndCharacterOfPosition(sourceFile, position).line - 1;\n var commentStartLine = ts.getLineAndCharacterOfPosition(sourceFile, enclosingCommentRange.pos).line;\n ts.Debug.assert(commentStartLine >= 0);\n if (previousLine <= commentStartLine) {\n return findFirstNonWhitespaceColumn(ts.getStartPositionOfLine(commentStartLine, sourceFile), position, sourceFile, options);\n }\n var startPositionOfLine = ts.getStartPositionOfLine(previousLine, sourceFile);\n var _a = findFirstNonWhitespaceCharacterAndColumn(startPositionOfLine, position, sourceFile, options), column = _a.column, character = _a.character;\n if (column === 0) {\n return column;\n }\n var firstNonWhitespaceCharacterCode = sourceFile.text.charCodeAt(startPositionOfLine + character);\n return firstNonWhitespaceCharacterCode === 42 /* asterisk */ ? column - 1 : column;\n }\n function getBlockIndent(sourceFile, position, options) {\n // move backwards until we find a line with a non-whitespace character,\n // then find the first non-whitespace character for that line.\n var current = position;\n while (current > 0) {\n var char = sourceFile.text.charCodeAt(current);\n if (!ts.isWhiteSpaceLike(char)) {\n break;\n }\n current--;\n }\n var lineStart = ts.getLineStartPositionForPosition(current, sourceFile);\n return findFirstNonWhitespaceColumn(lineStart, current, sourceFile, options);\n }\n function getSmartIndent(sourceFile, position, precedingToken, lineAtPosition, assumeNewLineBeforeCloseBrace, options) {\n // try to find node that can contribute to indentation and includes 'position' starting from 'precedingToken'\n // if such node is found - compute initial indentation for 'position' inside this node\n var previous;\n var current = precedingToken;\n while (current) {\n if (ts.positionBelongsToNode(current, position, sourceFile) && shouldIndentChildNode(options, current, previous, sourceFile, /*isNextChild*/ true)) {\n var currentStart = getStartLineAndCharacterForNode(current, sourceFile);\n var nextTokenKind = nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile);\n var indentationDelta = nextTokenKind !== 0 /* Unknown */\n // handle cases when codefix is about to be inserted before the close brace\n ? assumeNewLineBeforeCloseBrace && nextTokenKind === 2 /* CloseBrace */ ? options.indentSize : 0\n : lineAtPosition !== currentStart.line ? options.indentSize : 0;\n return getIndentationForNodeWorker(current, currentStart, /*ignoreActualIndentationRange*/ undefined, indentationDelta, sourceFile, /*isNextChild*/ true, options); // TODO: GH#18217\n }\n // check if current node is a list item - if yes, take indentation from it\n // do not consider parent-child line sharing yet:\n // function foo(a\n // | preceding node 'a' does share line with its parent but indentation is expected\n var actualIndentation = getActualIndentationForListItem(current, sourceFile, options, /*listIndentsChild*/ true);\n if (actualIndentation !== -1 /* Unknown */) {\n return actualIndentation;\n }\n previous = current;\n current = current.parent;\n }\n // no parent was found - return the base indentation of the SourceFile\n return getBaseIndentation(options);\n }\n function getIndentationForNode(n, ignoreActualIndentationRange, sourceFile, options) {\n var start = sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile));\n return getIndentationForNodeWorker(n, start, ignoreActualIndentationRange, /*indentationDelta*/ 0, sourceFile, /*isNextChild*/ false, options);\n }\n SmartIndenter.getIndentationForNode = getIndentationForNode;\n function getBaseIndentation(options) {\n return options.baseIndentSize || 0;\n }\n SmartIndenter.getBaseIndentation = getBaseIndentation;\n function getIndentationForNodeWorker(current, currentStart, ignoreActualIndentationRange, indentationDelta, sourceFile, isNextChild, options) {\n var _a;\n var parent = current.parent;\n // Walk up the tree and collect indentation for parent-child node pairs. Indentation is not added if\n // * parent and child nodes start on the same line, or\n // * parent is an IfStatement and child starts on the same line as an 'else clause'.\n while (parent) {\n var useActualIndentation = true;\n if (ignoreActualIndentationRange) {\n var start = current.getStart(sourceFile);\n useActualIndentation = start < ignoreActualIndentationRange.pos || start > ignoreActualIndentationRange.end;\n }\n var containingListOrParentStart = getContainingListOrParentStart(parent, current, sourceFile);\n var parentAndChildShareLine = containingListOrParentStart.line === currentStart.line ||\n childStartsOnTheSameLineWithElseInIfStatement(parent, current, currentStart.line, sourceFile);\n if (useActualIndentation) {\n // check if current node is a list item - if yes, take indentation from it\n var firstListChild = (_a = getContainingList(current, sourceFile)) === null || _a === void 0 ? void 0 : _a[0];\n // A list indents its children if the children begin on a later line than the list itself:\n //\n // f1( L0 - List start\n // { L1 - First child start: indented, along with all other children\n // prop: 0\n // },\n // {\n // prop: 1\n // }\n // )\n //\n // f2({ L0 - List start and first child start: children are not indented.\n // prop: 0 Object properties are indented only one level, because the list\n // }, { itself contributes nothing.\n // prop: 1 L3 - The indentation of the second object literal is best understood by\n // }) looking at the relationship between the list and *first* list item.\n var listIndentsChild = !!firstListChild && getStartLineAndCharacterForNode(firstListChild, sourceFile).line > containingListOrParentStart.line;\n var actualIndentation = getActualIndentationForListItem(current, sourceFile, options, listIndentsChild);\n if (actualIndentation !== -1 /* Unknown */) {\n return actualIndentation + indentationDelta;\n }\n // try to fetch actual indentation for current node from source text\n actualIndentation = getActualIndentationForNode(current, parent, currentStart, parentAndChildShareLine, sourceFile, options);\n if (actualIndentation !== -1 /* Unknown */) {\n return actualIndentation + indentationDelta;\n }\n }\n // increase indentation if parent node wants its content to be indented and parent and child nodes don't start on the same line\n if (shouldIndentChildNode(options, parent, current, sourceFile, isNextChild) && !parentAndChildShareLine) {\n indentationDelta += options.indentSize;\n }\n // In our AST, a call argument's `parent` is the call-expression, not the argument list.\n // We would like to increase indentation based on the relationship between an argument and its argument-list,\n // so we spoof the starting position of the (parent) call-expression to match the (non-parent) argument-list.\n // But, the spoofed start-value could then cause a problem when comparing the start position of the call-expression\n // to *its* parent (in the case of an iife, an expression statement), adding an extra level of indentation.\n //\n // Instead, when at an argument, we unspoof the starting position of the enclosing call expression\n // *after* applying indentation for the argument.\n var useTrueStart = isArgumentAndStartLineOverlapsExpressionBeingCalled(parent, current, currentStart.line, sourceFile);\n current = parent;\n parent = current.parent;\n currentStart = useTrueStart ? sourceFile.getLineAndCharacterOfPosition(current.getStart(sourceFile)) : containingListOrParentStart;\n }\n return indentationDelta + getBaseIndentation(options);\n }\n function getContainingListOrParentStart(parent, child, sourceFile) {\n var containingList = getContainingList(child, sourceFile);\n var startPos = containingList ? containingList.pos : parent.getStart(sourceFile);\n return sourceFile.getLineAndCharacterOfPosition(startPos);\n }\n /*\n * Function returns Value.Unknown if indentation cannot be determined\n */\n function getActualIndentationForListItemBeforeComma(commaToken, sourceFile, options) {\n // previous token is comma that separates items in list - find the previous item and try to derive indentation from it\n var commaItemInfo = ts.findListItemInfo(commaToken);\n if (commaItemInfo && commaItemInfo.listItemIndex > 0) {\n return deriveActualIndentationFromList(commaItemInfo.list.getChildren(), commaItemInfo.listItemIndex - 1, sourceFile, options);\n }\n else {\n // handle broken code gracefully\n return -1 /* Unknown */;\n }\n }\n /*\n * Function returns Value.Unknown if actual indentation for node should not be used (i.e because node is nested expression)\n */\n function getActualIndentationForNode(current, parent, currentLineAndChar, parentAndChildShareLine, sourceFile, options) {\n // actual indentation is used for statements\\declarations if one of cases below is true:\n // - parent is SourceFile - by default immediate children of SourceFile are not indented except when user indents them manually\n // - parent and child are not on the same line\n var useActualIndentation = (ts.isDeclaration(current) || ts.isStatementButNotDeclaration(current)) &&\n (parent.kind === 300 /* SourceFile */ || !parentAndChildShareLine);\n if (!useActualIndentation) {\n return -1 /* Unknown */;\n }\n return findColumnForFirstNonWhitespaceCharacterInLine(currentLineAndChar, sourceFile, options);\n }\n var NextTokenKind;\n (function (NextTokenKind) {\n NextTokenKind[NextTokenKind[\"Unknown\"] = 0] = \"Unknown\";\n NextTokenKind[NextTokenKind[\"OpenBrace\"] = 1] = \"OpenBrace\";\n NextTokenKind[NextTokenKind[\"CloseBrace\"] = 2] = \"CloseBrace\";\n })(NextTokenKind || (NextTokenKind = {}));\n function nextTokenIsCurlyBraceOnSameLineAsCursor(precedingToken, current, lineAtPosition, sourceFile) {\n var nextToken = ts.findNextToken(precedingToken, current, sourceFile);\n if (!nextToken) {\n return 0 /* Unknown */;\n }\n if (nextToken.kind === 18 /* OpenBraceToken */) {\n // open braces are always indented at the parent level\n return 1 /* OpenBrace */;\n }\n else if (nextToken.kind === 19 /* CloseBraceToken */) {\n // close braces are indented at the parent level if they are located on the same line with cursor\n // this means that if new line will be added at $ position, this case will be indented\n // class A {\n // $\n // }\n /// and this one - not\n // class A {\n // $}\n var nextTokenStartLine = getStartLineAndCharacterForNode(nextToken, sourceFile).line;\n return lineAtPosition === nextTokenStartLine ? 2 /* CloseBrace */ : 0 /* Unknown */;\n }\n return 0 /* Unknown */;\n }\n function getStartLineAndCharacterForNode(n, sourceFile) {\n return sourceFile.getLineAndCharacterOfPosition(n.getStart(sourceFile));\n }\n function isArgumentAndStartLineOverlapsExpressionBeingCalled(parent, child, childStartLine, sourceFile) {\n if (!(ts.isCallExpression(parent) && ts.contains(parent.arguments, child))) {\n return false;\n }\n var expressionOfCallExpressionEnd = parent.expression.getEnd();\n var expressionOfCallExpressionEndLine = ts.getLineAndCharacterOfPosition(sourceFile, expressionOfCallExpressionEnd).line;\n return expressionOfCallExpressionEndLine === childStartLine;\n }\n SmartIndenter.isArgumentAndStartLineOverlapsExpressionBeingCalled = isArgumentAndStartLineOverlapsExpressionBeingCalled;\n function childStartsOnTheSameLineWithElseInIfStatement(parent, child, childStartLine, sourceFile) {\n if (parent.kind === 237 /* IfStatement */ && parent.elseStatement === child) {\n var elseKeyword = ts.findChildOfKind(parent, 91 /* ElseKeyword */, sourceFile);\n ts.Debug.assert(elseKeyword !== undefined);\n var elseKeywordStartLine = getStartLineAndCharacterForNode(elseKeyword, sourceFile).line;\n return elseKeywordStartLine === childStartLine;\n }\n return false;\n }\n SmartIndenter.childStartsOnTheSameLineWithElseInIfStatement = childStartsOnTheSameLineWithElseInIfStatement;\n // A multiline conditional typically increases the indentation of its whenTrue and whenFalse children:\n //\n // condition\n // ? whenTrue\n // : whenFalse;\n //\n // However, that indentation does not apply if the subexpressions themselves span multiple lines,\n // applying their own indentation:\n //\n // (() => {\n // return complexCalculationForCondition();\n // })() ? {\n // whenTrue: 'multiline object literal'\n // } : (\n // whenFalse('multiline parenthesized expression')\n // );\n //\n // In these cases, we must discard the indentation increase that would otherwise be applied to the\n // whenTrue and whenFalse children to avoid double-indenting their contents. To identify this scenario,\n // we check for the whenTrue branch beginning on the line that the condition ends, and the whenFalse\n // branch beginning on the line that the whenTrue branch ends.\n function childIsUnindentedBranchOfConditionalExpression(parent, child, childStartLine, sourceFile) {\n if (ts.isConditionalExpression(parent) && (child === parent.whenTrue || child === parent.whenFalse)) {\n var conditionEndLine = ts.getLineAndCharacterOfPosition(sourceFile, parent.condition.end).line;\n if (child === parent.whenTrue) {\n return childStartLine === conditionEndLine;\n }\n else {\n // On the whenFalse side, we have to look at the whenTrue side, because if that one was\n // indented, whenFalse must also be indented:\n //\n // const y = true\n // ? 1 : ( L1: whenTrue indented because it's on a new line\n // 0 L2: indented two stops, one because whenTrue was indented\n // ); and one because of the parentheses spanning multiple lines\n var trueStartLine = getStartLineAndCharacterForNode(parent.whenTrue, sourceFile).line;\n var trueEndLine = ts.getLineAndCharacterOfPosition(sourceFile, parent.whenTrue.end).line;\n return conditionEndLine === trueStartLine && trueEndLine === childStartLine;\n }\n }\n return false;\n }\n SmartIndenter.childIsUnindentedBranchOfConditionalExpression = childIsUnindentedBranchOfConditionalExpression;\n function argumentStartsOnSameLineAsPreviousArgument(parent, child, childStartLine, sourceFile) {\n if (ts.isCallOrNewExpression(parent)) {\n if (!parent.arguments)\n return false;\n var currentNode = ts.find(parent.arguments, function (arg) { return arg.pos === child.pos; });\n // If it's not one of the arguments, don't look past this\n if (!currentNode)\n return false;\n var currentIndex = parent.arguments.indexOf(currentNode);\n if (currentIndex === 0)\n return false; // Can't look at previous node if first\n var previousNode = parent.arguments[currentIndex - 1];\n var lineOfPreviousNode = ts.getLineAndCharacterOfPosition(sourceFile, previousNode.getEnd()).line;\n if (childStartLine === lineOfPreviousNode) {\n return true;\n }\n }\n return false;\n }\n SmartIndenter.argumentStartsOnSameLineAsPreviousArgument = argumentStartsOnSameLineAsPreviousArgument;\n function getContainingList(node, sourceFile) {\n return node.parent && getListByRange(node.getStart(sourceFile), node.getEnd(), node.parent, sourceFile);\n }\n SmartIndenter.getContainingList = getContainingList;\n function getListByPosition(pos, node, sourceFile) {\n return node && getListByRange(pos, pos, node, sourceFile);\n }\n function getListByRange(start, end, node, sourceFile) {\n switch (node.kind) {\n case 176 /* TypeReference */:\n return getList(node.typeArguments);\n case 203 /* ObjectLiteralExpression */:\n return getList(node.properties);\n case 202 /* ArrayLiteralExpression */:\n return getList(node.elements);\n case 180 /* TypeLiteral */:\n return getList(node.members);\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 169 /* Constructor */:\n case 178 /* ConstructorType */:\n case 173 /* ConstructSignature */:\n return getList(node.typeParameters) || getList(node.parameters);\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 339 /* JSDocTemplateTag */:\n return getList(node.typeParameters);\n case 207 /* NewExpression */:\n case 206 /* CallExpression */:\n return getList(node.typeArguments) || getList(node.arguments);\n case 253 /* VariableDeclarationList */:\n return getList(node.declarations);\n case 267 /* NamedImports */:\n case 271 /* NamedExports */:\n return getList(node.elements);\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */:\n return getList(node.elements);\n }\n function getList(list) {\n return list && ts.rangeContainsStartEnd(getVisualListRange(node, list, sourceFile), start, end) ? list : undefined;\n }\n }\n function getVisualListRange(node, list, sourceFile) {\n var children = node.getChildren(sourceFile);\n for (var i = 1; i < children.length - 1; i++) {\n if (children[i].pos === list.pos && children[i].end === list.end) {\n return { pos: children[i - 1].end, end: children[i + 1].getStart(sourceFile) };\n }\n }\n return list;\n }\n function getActualIndentationForListStartLine(list, sourceFile, options) {\n if (!list) {\n return -1 /* Unknown */;\n }\n return findColumnForFirstNonWhitespaceCharacterInLine(sourceFile.getLineAndCharacterOfPosition(list.pos), sourceFile, options);\n }\n function getActualIndentationForListItem(node, sourceFile, options, listIndentsChild) {\n if (node.parent && node.parent.kind === 253 /* VariableDeclarationList */) {\n // VariableDeclarationList has no wrapping tokens\n return -1 /* Unknown */;\n }\n var containingList = getContainingList(node, sourceFile);\n if (containingList) {\n var index = containingList.indexOf(node);\n if (index !== -1) {\n var result = deriveActualIndentationFromList(containingList, index, sourceFile, options);\n if (result !== -1 /* Unknown */) {\n return result;\n }\n }\n return getActualIndentationForListStartLine(containingList, sourceFile, options) + (listIndentsChild ? options.indentSize : 0); // TODO: GH#18217\n }\n return -1 /* Unknown */;\n }\n function deriveActualIndentationFromList(list, index, sourceFile, options) {\n ts.Debug.assert(index >= 0 && index < list.length);\n var node = list[index];\n // walk toward the start of the list starting from current node and check if the line is the same for all items.\n // if end line for item [i - 1] differs from the start line for item [i] - find column of the first non-whitespace character on the line of item [i]\n var lineAndCharacter = getStartLineAndCharacterForNode(node, sourceFile);\n for (var i = index - 1; i >= 0; i--) {\n if (list[i].kind === 27 /* CommaToken */) {\n continue;\n }\n // skip list items that ends on the same line with the current list element\n var prevEndLine = sourceFile.getLineAndCharacterOfPosition(list[i].end).line;\n if (prevEndLine !== lineAndCharacter.line) {\n return findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options);\n }\n lineAndCharacter = getStartLineAndCharacterForNode(list[i], sourceFile);\n }\n return -1 /* Unknown */;\n }\n function findColumnForFirstNonWhitespaceCharacterInLine(lineAndCharacter, sourceFile, options) {\n var lineStart = sourceFile.getPositionOfLineAndCharacter(lineAndCharacter.line, 0);\n return findFirstNonWhitespaceColumn(lineStart, lineStart + lineAndCharacter.character, sourceFile, options);\n }\n /**\n * Character is the actual index of the character since the beginning of the line.\n * Column - position of the character after expanding tabs to spaces.\n * \"0\\t2$\"\n * value of 'character' for '$' is 3\n * value of 'column' for '$' is 6 (assuming that tab size is 4)\n */\n function findFirstNonWhitespaceCharacterAndColumn(startPos, endPos, sourceFile, options) {\n var character = 0;\n var column = 0;\n for (var pos = startPos; pos < endPos; pos++) {\n var ch = sourceFile.text.charCodeAt(pos);\n if (!ts.isWhiteSpaceSingleLine(ch)) {\n break;\n }\n if (ch === 9 /* tab */) {\n column += options.tabSize + (column % options.tabSize);\n }\n else {\n column++;\n }\n character++;\n }\n return { column: column, character: character };\n }\n SmartIndenter.findFirstNonWhitespaceCharacterAndColumn = findFirstNonWhitespaceCharacterAndColumn;\n function findFirstNonWhitespaceColumn(startPos, endPos, sourceFile, options) {\n return findFirstNonWhitespaceCharacterAndColumn(startPos, endPos, sourceFile, options).column;\n }\n SmartIndenter.findFirstNonWhitespaceColumn = findFirstNonWhitespaceColumn;\n function nodeWillIndentChild(settings, parent, child, sourceFile, indentByDefault) {\n var childKind = child ? child.kind : 0 /* Unknown */;\n switch (parent.kind) {\n case 236 /* ExpressionStatement */:\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 202 /* ArrayLiteralExpression */:\n case 233 /* Block */:\n case 260 /* ModuleBlock */:\n case 203 /* ObjectLiteralExpression */:\n case 180 /* TypeLiteral */:\n case 193 /* MappedType */:\n case 182 /* TupleType */:\n case 261 /* CaseBlock */:\n case 288 /* DefaultClause */:\n case 287 /* CaseClause */:\n case 210 /* ParenthesizedExpression */:\n case 204 /* PropertyAccessExpression */:\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 235 /* VariableStatement */:\n case 269 /* ExportAssignment */:\n case 245 /* ReturnStatement */:\n case 220 /* ConditionalExpression */:\n case 200 /* ArrayBindingPattern */:\n case 199 /* ObjectBindingPattern */:\n case 278 /* JsxOpeningElement */:\n case 281 /* JsxOpeningFragment */:\n case 277 /* JsxSelfClosingElement */:\n case 286 /* JsxExpression */:\n case 166 /* MethodSignature */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 162 /* Parameter */:\n case 177 /* FunctionType */:\n case 178 /* ConstructorType */:\n case 189 /* ParenthesizedType */:\n case 208 /* TaggedTemplateExpression */:\n case 216 /* AwaitExpression */:\n case 271 /* NamedExports */:\n case 267 /* NamedImports */:\n case 273 /* ExportSpecifier */:\n case 268 /* ImportSpecifier */:\n case 165 /* PropertyDeclaration */:\n return true;\n case 252 /* VariableDeclaration */:\n case 291 /* PropertyAssignment */:\n case 219 /* BinaryExpression */:\n if (!settings.indentMultiLineObjectLiteralBeginningOnBlankLine && sourceFile && childKind === 203 /* ObjectLiteralExpression */) { // TODO: GH#18217\n return rangeIsOnOneLine(sourceFile, child);\n }\n if (parent.kind !== 219 /* BinaryExpression */) {\n return true;\n }\n break;\n case 238 /* DoStatement */:\n case 239 /* WhileStatement */:\n case 241 /* ForInStatement */:\n case 242 /* ForOfStatement */:\n case 240 /* ForStatement */:\n case 237 /* IfStatement */:\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return childKind !== 233 /* Block */;\n case 212 /* ArrowFunction */:\n if (sourceFile && childKind === 210 /* ParenthesizedExpression */) {\n return rangeIsOnOneLine(sourceFile, child);\n }\n return childKind !== 233 /* Block */;\n case 270 /* ExportDeclaration */:\n return childKind !== 271 /* NamedExports */;\n case 264 /* ImportDeclaration */:\n return childKind !== 265 /* ImportClause */ ||\n (!!child.namedBindings && child.namedBindings.kind !== 267 /* NamedImports */);\n case 276 /* JsxElement */:\n return childKind !== 279 /* JsxClosingElement */;\n case 280 /* JsxFragment */:\n return childKind !== 282 /* JsxClosingFragment */;\n case 186 /* IntersectionType */:\n case 185 /* UnionType */:\n if (childKind === 180 /* TypeLiteral */ || childKind === 182 /* TupleType */) {\n return false;\n }\n break;\n }\n // No explicit rule for given nodes so the result will follow the default value argument\n return indentByDefault;\n }\n SmartIndenter.nodeWillIndentChild = nodeWillIndentChild;\n function isControlFlowEndingStatement(kind, parent) {\n switch (kind) {\n case 245 /* ReturnStatement */:\n case 249 /* ThrowStatement */:\n case 243 /* ContinueStatement */:\n case 244 /* BreakStatement */:\n return parent.kind !== 233 /* Block */;\n default:\n return false;\n }\n }\n /**\n * True when the parent node should indent the given child by an explicit rule.\n * @param isNextChild If true, we are judging indent of a hypothetical child *after* this one, not the current child.\n */\n function shouldIndentChildNode(settings, parent, child, sourceFile, isNextChild) {\n if (isNextChild === void 0) { isNextChild = false; }\n return nodeWillIndentChild(settings, parent, child, sourceFile, /*indentByDefault*/ false)\n && !(isNextChild && child && isControlFlowEndingStatement(child.kind, parent));\n }\n SmartIndenter.shouldIndentChildNode = shouldIndentChildNode;\n function rangeIsOnOneLine(sourceFile, range) {\n var rangeStart = ts.skipTrivia(sourceFile.text, range.pos);\n var startLine = sourceFile.getLineAndCharacterOfPosition(rangeStart).line;\n var endLine = sourceFile.getLineAndCharacterOfPosition(range.end).line;\n return startLine === endLine;\n }\n })(SmartIndenter = formatting.SmartIndenter || (formatting.SmartIndenter = {}));\n })(formatting = ts.formatting || (ts.formatting = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var textChanges;\n (function (textChanges_3) {\n /**\n * Currently for simplicity we store recovered positions on the node itself.\n * It can be changed to side-table later if we decide that current design is too invasive.\n */\n function getPos(n) {\n var result = n.__pos;\n ts.Debug.assert(typeof result === \"number\");\n return result;\n }\n function setPos(n, pos) {\n ts.Debug.assert(typeof pos === \"number\");\n n.__pos = pos;\n }\n function getEnd(n) {\n var result = n.__end;\n ts.Debug.assert(typeof result === \"number\");\n return result;\n }\n function setEnd(n, end) {\n ts.Debug.assert(typeof end === \"number\");\n n.__end = end;\n }\n var LeadingTriviaOption;\n (function (LeadingTriviaOption) {\n /** Exclude all leading trivia (use getStart()) */\n LeadingTriviaOption[LeadingTriviaOption[\"Exclude\"] = 0] = \"Exclude\";\n /** Include leading trivia and,\n * if there are no line breaks between the node and the previous token,\n * include all trivia between the node and the previous token\n */\n LeadingTriviaOption[LeadingTriviaOption[\"IncludeAll\"] = 1] = \"IncludeAll\";\n /**\n * Include attached JSDoc comments\n */\n LeadingTriviaOption[LeadingTriviaOption[\"JSDoc\"] = 2] = \"JSDoc\";\n /**\n * Only delete trivia on the same line as getStart().\n * Used to avoid deleting leading comments\n */\n LeadingTriviaOption[LeadingTriviaOption[\"StartLine\"] = 3] = \"StartLine\";\n })(LeadingTriviaOption = textChanges_3.LeadingTriviaOption || (textChanges_3.LeadingTriviaOption = {}));\n var TrailingTriviaOption;\n (function (TrailingTriviaOption) {\n /** Exclude all trailing trivia (use getEnd()) */\n TrailingTriviaOption[TrailingTriviaOption[\"Exclude\"] = 0] = \"Exclude\";\n /** Doesn't include whitespace, but does strip comments */\n TrailingTriviaOption[TrailingTriviaOption[\"ExcludeWhitespace\"] = 1] = \"ExcludeWhitespace\";\n /** Include trailing trivia */\n TrailingTriviaOption[TrailingTriviaOption[\"Include\"] = 2] = \"Include\";\n })(TrailingTriviaOption = textChanges_3.TrailingTriviaOption || (textChanges_3.TrailingTriviaOption = {}));\n function skipWhitespacesAndLineBreaks(text, start) {\n return ts.skipTrivia(text, start, /*stopAfterLineBreak*/ false, /*stopAtComments*/ true);\n }\n function hasCommentsBeforeLineBreak(text, start) {\n var i = start;\n while (i < text.length) {\n var ch = text.charCodeAt(i);\n if (ts.isWhiteSpaceSingleLine(ch)) {\n i++;\n continue;\n }\n return ch === 47 /* slash */;\n }\n return false;\n }\n var useNonAdjustedPositions = {\n leadingTriviaOption: LeadingTriviaOption.Exclude,\n trailingTriviaOption: TrailingTriviaOption.Exclude,\n };\n var ChangeKind;\n (function (ChangeKind) {\n ChangeKind[ChangeKind[\"Remove\"] = 0] = \"Remove\";\n ChangeKind[ChangeKind[\"ReplaceWithSingleNode\"] = 1] = \"ReplaceWithSingleNode\";\n ChangeKind[ChangeKind[\"ReplaceWithMultipleNodes\"] = 2] = \"ReplaceWithMultipleNodes\";\n ChangeKind[ChangeKind[\"Text\"] = 3] = \"Text\";\n })(ChangeKind || (ChangeKind = {}));\n function getAdjustedRange(sourceFile, startNode, endNode, options) {\n return { pos: getAdjustedStartPosition(sourceFile, startNode, options), end: getAdjustedEndPosition(sourceFile, endNode, options) };\n }\n function getAdjustedStartPosition(sourceFile, node, options, hasTrailingComment) {\n var _a, _b;\n if (hasTrailingComment === void 0) { hasTrailingComment = false; }\n var leadingTriviaOption = options.leadingTriviaOption;\n if (leadingTriviaOption === LeadingTriviaOption.Exclude) {\n return node.getStart(sourceFile);\n }\n if (leadingTriviaOption === LeadingTriviaOption.StartLine) {\n var startPos = node.getStart(sourceFile);\n var pos = ts.getLineStartPositionForPosition(startPos, sourceFile);\n return ts.rangeContainsPosition(node, pos) ? pos : startPos;\n }\n if (leadingTriviaOption === LeadingTriviaOption.JSDoc) {\n var JSDocComments = ts.getJSDocCommentRanges(node, sourceFile.text);\n if (JSDocComments === null || JSDocComments === void 0 ? void 0 : JSDocComments.length) {\n return ts.getLineStartPositionForPosition(JSDocComments[0].pos, sourceFile);\n }\n }\n var fullStart = node.getFullStart();\n var start = node.getStart(sourceFile);\n if (fullStart === start) {\n return start;\n }\n var fullStartLine = ts.getLineStartPositionForPosition(fullStart, sourceFile);\n var startLine = ts.getLineStartPositionForPosition(start, sourceFile);\n if (startLine === fullStartLine) {\n // full start and start of the node are on the same line\n // a, b;\n // ^ ^\n // | start\n // fullstart\n // when b is replaced - we usually want to keep the leading trvia\n // when b is deleted - we delete it\n return leadingTriviaOption === LeadingTriviaOption.IncludeAll ? fullStart : start;\n }\n // if node has a trailing comments, use comment end position as the text has already been included.\n if (hasTrailingComment) {\n // Check first for leading comments as if the node is the first import, we want to exclude the trivia;\n // otherwise we get the trailing comments.\n var comment = ((_a = ts.getLeadingCommentRanges(sourceFile.text, fullStart)) === null || _a === void 0 ? void 0 : _a[0]) || ((_b = ts.getTrailingCommentRanges(sourceFile.text, fullStart)) === null || _b === void 0 ? void 0 : _b[0]);\n if (comment) {\n return ts.skipTrivia(sourceFile.text, comment.end, /*stopAfterLineBreak*/ true, /*stopAtComments*/ true);\n }\n }\n // get start position of the line following the line that contains fullstart position\n // (but only if the fullstart isn't the very beginning of the file)\n var nextLineStart = fullStart > 0 ? 1 : 0;\n var adjustedStartPosition = ts.getStartPositionOfLine(ts.getLineOfLocalPosition(sourceFile, fullStartLine) + nextLineStart, sourceFile);\n // skip whitespaces/newlines\n adjustedStartPosition = skipWhitespacesAndLineBreaks(sourceFile.text, adjustedStartPosition);\n return ts.getStartPositionOfLine(ts.getLineOfLocalPosition(sourceFile, adjustedStartPosition), sourceFile);\n }\n /** Return the end position of a multiline comment of it is on another line; otherwise returns `undefined`; */\n function getEndPositionOfMultilineTrailingComment(sourceFile, node, options) {\n var end = node.end;\n var trailingTriviaOption = options.trailingTriviaOption;\n if (trailingTriviaOption === TrailingTriviaOption.Include) {\n // If the trailing comment is a multiline comment that extends to the next lines,\n // return the end of the comment and track it for the next nodes to adjust.\n var comments = ts.getTrailingCommentRanges(sourceFile.text, end);\n if (comments) {\n var nodeEndLine = ts.getLineOfLocalPosition(sourceFile, node.end);\n for (var _i = 0, comments_2 = comments; _i < comments_2.length; _i++) {\n var comment = comments_2[_i];\n // Single line can break the loop as trivia will only be this line.\n // Comments on subsequest lines are also ignored.\n if (comment.kind === 2 /* SingleLineCommentTrivia */ || ts.getLineOfLocalPosition(sourceFile, comment.pos) > nodeEndLine) {\n break;\n }\n // Get the end line of the comment and compare against the end line of the node.\n // If the comment end line position and the multiline comment extends to multiple lines,\n // then is safe to return the end position.\n var commentEndLine = ts.getLineOfLocalPosition(sourceFile, comment.end);\n if (commentEndLine > nodeEndLine) {\n return ts.skipTrivia(sourceFile.text, comment.end, /*stopAfterLineBreak*/ true, /*stopAtComments*/ true);\n }\n }\n }\n }\n return undefined;\n }\n function getAdjustedEndPosition(sourceFile, node, options) {\n var _a;\n var end = node.end;\n var trailingTriviaOption = options.trailingTriviaOption;\n if (trailingTriviaOption === TrailingTriviaOption.Exclude) {\n return end;\n }\n if (trailingTriviaOption === TrailingTriviaOption.ExcludeWhitespace) {\n var comments = ts.concatenate(ts.getTrailingCommentRanges(sourceFile.text, end), ts.getLeadingCommentRanges(sourceFile.text, end));\n var realEnd = (_a = comments === null || comments === void 0 ? void 0 : comments[comments.length - 1]) === null || _a === void 0 ? void 0 : _a.end;\n if (realEnd) {\n return realEnd;\n }\n return end;\n }\n var multilineEndPosition = getEndPositionOfMultilineTrailingComment(sourceFile, node, options);\n if (multilineEndPosition) {\n return multilineEndPosition;\n }\n var newEnd = ts.skipTrivia(sourceFile.text, end, /*stopAfterLineBreak*/ true);\n return newEnd !== end && (trailingTriviaOption === TrailingTriviaOption.Include || ts.isLineBreak(sourceFile.text.charCodeAt(newEnd - 1)))\n ? newEnd\n : end;\n }\n /**\n * Checks if 'candidate' argument is a legal separator in the list that contains 'node' as an element\n */\n function isSeparator(node, candidate) {\n return !!candidate && !!node.parent && (candidate.kind === 27 /* CommaToken */ || (candidate.kind === 26 /* SemicolonToken */ && node.parent.kind === 203 /* ObjectLiteralExpression */));\n }\n function isThisTypeAnnotatable(containingFunction) {\n return ts.isFunctionExpression(containingFunction) || ts.isFunctionDeclaration(containingFunction);\n }\n textChanges_3.isThisTypeAnnotatable = isThisTypeAnnotatable;\n var ChangeTracker = /** @class */ (function () {\n /** Public for tests only. Other callers should use `ChangeTracker.with`. */\n function ChangeTracker(newLineCharacter, formatContext) {\n this.newLineCharacter = newLineCharacter;\n this.formatContext = formatContext;\n this.changes = [];\n this.newFiles = [];\n this.classesWithNodesInsertedAtStart = new ts.Map(); // Set implemented as Map\n this.deletedNodes = [];\n }\n ChangeTracker.fromContext = function (context) {\n return new ChangeTracker(ts.getNewLineOrDefaultFromHost(context.host, context.formatContext.options), context.formatContext);\n };\n ChangeTracker.with = function (context, cb) {\n var tracker = ChangeTracker.fromContext(context);\n cb(tracker);\n return tracker.getChanges();\n };\n ChangeTracker.prototype.pushRaw = function (sourceFile, change) {\n ts.Debug.assertEqual(sourceFile.fileName, change.fileName);\n for (var _i = 0, _a = change.textChanges; _i < _a.length; _i++) {\n var c = _a[_i];\n this.changes.push({\n kind: ChangeKind.Text,\n sourceFile: sourceFile,\n text: c.newText,\n range: ts.createTextRangeFromSpan(c.span),\n });\n }\n };\n ChangeTracker.prototype.deleteRange = function (sourceFile, range) {\n this.changes.push({ kind: ChangeKind.Remove, sourceFile: sourceFile, range: range });\n };\n ChangeTracker.prototype.delete = function (sourceFile, node) {\n this.deletedNodes.push({ sourceFile: sourceFile, node: node });\n };\n ChangeTracker.prototype.deleteNode = function (sourceFile, node, options) {\n if (options === void 0) { options = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }; }\n this.deleteRange(sourceFile, getAdjustedRange(sourceFile, node, node, options));\n };\n ChangeTracker.prototype.deleteNodes = function (sourceFile, nodes, options, hasTrailingComment) {\n if (options === void 0) { options = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }; }\n // When deleting multiple nodes we need to track if the end position is including multiline trailing comments.\n for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {\n var node = nodes_1[_i];\n var pos = getAdjustedStartPosition(sourceFile, node, options, hasTrailingComment);\n var end = getAdjustedEndPosition(sourceFile, node, options);\n this.deleteRange(sourceFile, { pos: pos, end: end });\n hasTrailingComment = !!getEndPositionOfMultilineTrailingComment(sourceFile, node, options);\n }\n };\n ChangeTracker.prototype.deleteModifier = function (sourceFile, modifier) {\n this.deleteRange(sourceFile, { pos: modifier.getStart(sourceFile), end: ts.skipTrivia(sourceFile.text, modifier.end, /*stopAfterLineBreak*/ true) });\n };\n ChangeTracker.prototype.deleteNodeRange = function (sourceFile, startNode, endNode, options) {\n if (options === void 0) { options = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }; }\n var startPosition = getAdjustedStartPosition(sourceFile, startNode, options);\n var endPosition = getAdjustedEndPosition(sourceFile, endNode, options);\n this.deleteRange(sourceFile, { pos: startPosition, end: endPosition });\n };\n ChangeTracker.prototype.deleteNodeRangeExcludingEnd = function (sourceFile, startNode, afterEndNode, options) {\n if (options === void 0) { options = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }; }\n var startPosition = getAdjustedStartPosition(sourceFile, startNode, options);\n var endPosition = afterEndNode === undefined ? sourceFile.text.length : getAdjustedStartPosition(sourceFile, afterEndNode, options);\n this.deleteRange(sourceFile, { pos: startPosition, end: endPosition });\n };\n ChangeTracker.prototype.replaceRange = function (sourceFile, range, newNode, options) {\n if (options === void 0) { options = {}; }\n this.changes.push({ kind: ChangeKind.ReplaceWithSingleNode, sourceFile: sourceFile, range: range, options: options, node: newNode });\n };\n ChangeTracker.prototype.replaceNode = function (sourceFile, oldNode, newNode, options) {\n if (options === void 0) { options = useNonAdjustedPositions; }\n this.replaceRange(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, options), newNode, options);\n };\n ChangeTracker.prototype.replaceNodeRange = function (sourceFile, startNode, endNode, newNode, options) {\n if (options === void 0) { options = useNonAdjustedPositions; }\n this.replaceRange(sourceFile, getAdjustedRange(sourceFile, startNode, endNode, options), newNode, options);\n };\n ChangeTracker.prototype.replaceRangeWithNodes = function (sourceFile, range, newNodes, options) {\n if (options === void 0) { options = {}; }\n this.changes.push({ kind: ChangeKind.ReplaceWithMultipleNodes, sourceFile: sourceFile, range: range, options: options, nodes: newNodes });\n };\n ChangeTracker.prototype.replaceNodeWithNodes = function (sourceFile, oldNode, newNodes, options) {\n if (options === void 0) { options = useNonAdjustedPositions; }\n this.replaceRangeWithNodes(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, options), newNodes, options);\n };\n ChangeTracker.prototype.replaceNodeWithText = function (sourceFile, oldNode, text) {\n this.replaceRangeWithText(sourceFile, getAdjustedRange(sourceFile, oldNode, oldNode, useNonAdjustedPositions), text);\n };\n ChangeTracker.prototype.replaceNodeRangeWithNodes = function (sourceFile, startNode, endNode, newNodes, options) {\n if (options === void 0) { options = useNonAdjustedPositions; }\n this.replaceRangeWithNodes(sourceFile, getAdjustedRange(sourceFile, startNode, endNode, options), newNodes, options);\n };\n ChangeTracker.prototype.nodeHasTrailingComment = function (sourceFile, oldNode, configurableEnd) {\n if (configurableEnd === void 0) { configurableEnd = useNonAdjustedPositions; }\n return !!getEndPositionOfMultilineTrailingComment(sourceFile, oldNode, configurableEnd);\n };\n ChangeTracker.prototype.nextCommaToken = function (sourceFile, node) {\n var next = ts.findNextToken(node, node.parent, sourceFile);\n return next && next.kind === 27 /* CommaToken */ ? next : undefined;\n };\n ChangeTracker.prototype.replacePropertyAssignment = function (sourceFile, oldNode, newNode) {\n var suffix = this.nextCommaToken(sourceFile, oldNode) ? \"\" : (\",\" + this.newLineCharacter);\n this.replaceNode(sourceFile, oldNode, newNode, { suffix: suffix });\n };\n ChangeTracker.prototype.insertNodeAt = function (sourceFile, pos, newNode, options) {\n if (options === void 0) { options = {}; }\n this.replaceRange(sourceFile, ts.createRange(pos), newNode, options);\n };\n ChangeTracker.prototype.insertNodesAt = function (sourceFile, pos, newNodes, options) {\n if (options === void 0) { options = {}; }\n this.replaceRangeWithNodes(sourceFile, ts.createRange(pos), newNodes, options);\n };\n ChangeTracker.prototype.insertNodeAtTopOfFile = function (sourceFile, newNode, blankLineBetween) {\n this.insertAtTopOfFile(sourceFile, newNode, blankLineBetween);\n };\n ChangeTracker.prototype.insertNodesAtTopOfFile = function (sourceFile, newNodes, blankLineBetween) {\n this.insertAtTopOfFile(sourceFile, newNodes, blankLineBetween);\n };\n ChangeTracker.prototype.insertAtTopOfFile = function (sourceFile, insert, blankLineBetween) {\n var pos = getInsertionPositionAtSourceFileTop(sourceFile);\n var options = {\n prefix: pos === 0 ? undefined : this.newLineCharacter,\n suffix: (ts.isLineBreak(sourceFile.text.charCodeAt(pos)) ? \"\" : this.newLineCharacter) + (blankLineBetween ? this.newLineCharacter : \"\"),\n };\n if (ts.isArray(insert)) {\n this.insertNodesAt(sourceFile, pos, insert, options);\n }\n else {\n this.insertNodeAt(sourceFile, pos, insert, options);\n }\n };\n ChangeTracker.prototype.insertFirstParameter = function (sourceFile, parameters, newParam) {\n var p0 = ts.firstOrUndefined(parameters);\n if (p0) {\n this.insertNodeBefore(sourceFile, p0, newParam);\n }\n else {\n this.insertNodeAt(sourceFile, parameters.pos, newParam);\n }\n };\n ChangeTracker.prototype.insertNodeBefore = function (sourceFile, before, newNode, blankLineBetween, options) {\n if (blankLineBetween === void 0) { blankLineBetween = false; }\n if (options === void 0) { options = {}; }\n this.insertNodeAt(sourceFile, getAdjustedStartPosition(sourceFile, before, options), newNode, this.getOptionsForInsertNodeBefore(before, newNode, blankLineBetween));\n };\n ChangeTracker.prototype.insertModifierAt = function (sourceFile, pos, modifier, options) {\n if (options === void 0) { options = {}; }\n this.insertNodeAt(sourceFile, pos, ts.factory.createToken(modifier), options);\n };\n ChangeTracker.prototype.insertModifierBefore = function (sourceFile, modifier, before) {\n return this.insertModifierAt(sourceFile, before.getStart(sourceFile), modifier, { suffix: \" \" });\n };\n ChangeTracker.prototype.insertCommentBeforeLine = function (sourceFile, lineNumber, position, commentText) {\n var lineStartPosition = ts.getStartPositionOfLine(lineNumber, sourceFile);\n var startPosition = ts.getFirstNonSpaceCharacterPosition(sourceFile.text, lineStartPosition);\n // First try to see if we can put the comment on the previous line.\n // We need to make sure that we are not in the middle of a string literal or a comment.\n // If so, we do not want to separate the node from its comment if we can.\n // Otherwise, add an extra new line immediately before the error span.\n var insertAtLineStart = isValidLocationToAddComment(sourceFile, startPosition);\n var token = ts.getTouchingToken(sourceFile, insertAtLineStart ? startPosition : position);\n var indent = sourceFile.text.slice(lineStartPosition, startPosition);\n var text = (insertAtLineStart ? \"\" : this.newLineCharacter) + \"//\" + commentText + this.newLineCharacter + indent;\n this.insertText(sourceFile, token.getStart(sourceFile), text);\n };\n ChangeTracker.prototype.insertJsdocCommentBefore = function (sourceFile, node, tag) {\n var fnStart = node.getStart(sourceFile);\n if (node.jsDoc) {\n for (var _i = 0, _a = node.jsDoc; _i < _a.length; _i++) {\n var jsdoc = _a[_i];\n this.deleteRange(sourceFile, {\n pos: ts.getLineStartPositionForPosition(jsdoc.getStart(sourceFile), sourceFile),\n end: getAdjustedEndPosition(sourceFile, jsdoc, /*options*/ {})\n });\n }\n }\n var startPosition = ts.getPrecedingNonSpaceCharacterPosition(sourceFile.text, fnStart - 1);\n var indent = sourceFile.text.slice(startPosition, fnStart);\n this.insertNodeAt(sourceFile, fnStart, tag, { preserveLeadingWhitespace: false, suffix: this.newLineCharacter + indent });\n };\n ChangeTracker.prototype.replaceRangeWithText = function (sourceFile, range, text) {\n this.changes.push({ kind: ChangeKind.Text, sourceFile: sourceFile, range: range, text: text });\n };\n ChangeTracker.prototype.insertText = function (sourceFile, pos, text) {\n this.replaceRangeWithText(sourceFile, ts.createRange(pos), text);\n };\n /** Prefer this over replacing a node with another that has a type annotation, as it avoids reformatting the other parts of the node. */\n ChangeTracker.prototype.tryInsertTypeAnnotation = function (sourceFile, node, type) {\n var _a;\n var endNode;\n if (ts.isFunctionLike(node)) {\n endNode = ts.findChildOfKind(node, 21 /* CloseParenToken */, sourceFile);\n if (!endNode) {\n if (!ts.isArrowFunction(node))\n return false; // Function missing parentheses, give up\n // If no `)`, is an arrow function `x => x`, so use the end of the first parameter\n endNode = ts.first(node.parameters);\n }\n }\n else {\n endNode = (_a = (node.kind === 252 /* VariableDeclaration */ ? node.exclamationToken : node.questionToken)) !== null && _a !== void 0 ? _a : node.name;\n }\n this.insertNodeAt(sourceFile, endNode.end, type, { prefix: \": \" });\n return true;\n };\n ChangeTracker.prototype.tryInsertThisTypeAnnotation = function (sourceFile, node, type) {\n var start = ts.findChildOfKind(node, 20 /* OpenParenToken */, sourceFile).getStart(sourceFile) + 1;\n var suffix = node.parameters.length ? \", \" : \"\";\n this.insertNodeAt(sourceFile, start, type, { prefix: \"this: \", suffix: suffix });\n };\n ChangeTracker.prototype.insertTypeParameters = function (sourceFile, node, typeParameters) {\n // If no `(`, is an arrow function `x => x`, so use the pos of the first parameter\n var start = (ts.findChildOfKind(node, 20 /* OpenParenToken */, sourceFile) || ts.first(node.parameters)).getStart(sourceFile);\n this.insertNodesAt(sourceFile, start, typeParameters, { prefix: \"<\", suffix: \">\", joiner: \", \" });\n };\n ChangeTracker.prototype.getOptionsForInsertNodeBefore = function (before, inserted, blankLineBetween) {\n if (ts.isStatement(before) || ts.isClassElement(before)) {\n return { suffix: blankLineBetween ? this.newLineCharacter + this.newLineCharacter : this.newLineCharacter };\n }\n else if (ts.isVariableDeclaration(before)) { // insert `x = 1, ` into `const x = 1, y = 2;\n return { suffix: \", \" };\n }\n else if (ts.isParameter(before)) {\n return ts.isParameter(inserted) ? { suffix: \", \" } : {};\n }\n else if (ts.isStringLiteral(before) && ts.isImportDeclaration(before.parent) || ts.isNamedImports(before)) {\n return { suffix: \", \" };\n }\n else if (ts.isImportSpecifier(before)) {\n return { suffix: \",\" + (blankLineBetween ? this.newLineCharacter : \" \") };\n }\n return ts.Debug.failBadSyntaxKind(before); // We haven't handled this kind of node yet -- add it\n };\n ChangeTracker.prototype.insertNodeAtConstructorStart = function (sourceFile, ctr, newStatement) {\n var firstStatement = ts.firstOrUndefined(ctr.body.statements);\n if (!firstStatement || !ctr.body.multiLine) {\n this.replaceConstructorBody(sourceFile, ctr, __spreadArray([newStatement], ctr.body.statements, true));\n }\n else {\n this.insertNodeBefore(sourceFile, firstStatement, newStatement);\n }\n };\n ChangeTracker.prototype.insertNodeAtConstructorStartAfterSuperCall = function (sourceFile, ctr, newStatement) {\n var superCallStatement = ts.find(ctr.body.statements, function (stmt) { return ts.isExpressionStatement(stmt) && ts.isSuperCall(stmt.expression); });\n if (!superCallStatement || !ctr.body.multiLine) {\n this.replaceConstructorBody(sourceFile, ctr, __spreadArray(__spreadArray([], ctr.body.statements, true), [newStatement], false));\n }\n else {\n this.insertNodeAfter(sourceFile, superCallStatement, newStatement);\n }\n };\n ChangeTracker.prototype.insertNodeAtConstructorEnd = function (sourceFile, ctr, newStatement) {\n var lastStatement = ts.lastOrUndefined(ctr.body.statements);\n if (!lastStatement || !ctr.body.multiLine) {\n this.replaceConstructorBody(sourceFile, ctr, __spreadArray(__spreadArray([], ctr.body.statements, true), [newStatement], false));\n }\n else {\n this.insertNodeAfter(sourceFile, lastStatement, newStatement);\n }\n };\n ChangeTracker.prototype.replaceConstructorBody = function (sourceFile, ctr, statements) {\n this.replaceNode(sourceFile, ctr.body, ts.factory.createBlock(statements, /*multiLine*/ true));\n };\n ChangeTracker.prototype.insertNodeAtEndOfScope = function (sourceFile, scope, newNode) {\n var pos = getAdjustedStartPosition(sourceFile, scope.getLastToken(), {});\n this.insertNodeAt(sourceFile, pos, newNode, {\n prefix: ts.isLineBreak(sourceFile.text.charCodeAt(scope.getLastToken().pos)) ? this.newLineCharacter : this.newLineCharacter + this.newLineCharacter,\n suffix: this.newLineCharacter\n });\n };\n ChangeTracker.prototype.insertNodeAtClassStart = function (sourceFile, cls, newElement) {\n this.insertNodeAtStartWorker(sourceFile, cls, newElement);\n };\n ChangeTracker.prototype.insertNodeAtObjectStart = function (sourceFile, obj, newElement) {\n this.insertNodeAtStartWorker(sourceFile, obj, newElement);\n };\n ChangeTracker.prototype.insertNodeAtStartWorker = function (sourceFile, cls, newElement) {\n var _a;\n var indentation = (_a = this.guessIndentationFromExistingMembers(sourceFile, cls)) !== null && _a !== void 0 ? _a : this.computeIndentationForNewMember(sourceFile, cls);\n this.insertNodeAt(sourceFile, getMembersOrProperties(cls).pos, newElement, this.getInsertNodeAtStartInsertOptions(sourceFile, cls, indentation));\n };\n /**\n * Tries to guess the indentation from the existing members of a class/interface/object. All members must be on\n * new lines and must share the same indentation.\n */\n ChangeTracker.prototype.guessIndentationFromExistingMembers = function (sourceFile, cls) {\n var indentation;\n var lastRange = cls;\n for (var _i = 0, _a = getMembersOrProperties(cls); _i < _a.length; _i++) {\n var member = _a[_i];\n if (ts.rangeStartPositionsAreOnSameLine(lastRange, member, sourceFile)) {\n // each indented member must be on a new line\n return undefined;\n }\n var memberStart = member.getStart(sourceFile);\n var memberIndentation = ts.formatting.SmartIndenter.findFirstNonWhitespaceColumn(ts.getLineStartPositionForPosition(memberStart, sourceFile), memberStart, sourceFile, this.formatContext.options);\n if (indentation === undefined) {\n indentation = memberIndentation;\n }\n else if (memberIndentation !== indentation) {\n // indentation of multiple members is not consistent\n return undefined;\n }\n lastRange = member;\n }\n return indentation;\n };\n ChangeTracker.prototype.computeIndentationForNewMember = function (sourceFile, cls) {\n var _a;\n var clsStart = cls.getStart(sourceFile);\n return ts.formatting.SmartIndenter.findFirstNonWhitespaceColumn(ts.getLineStartPositionForPosition(clsStart, sourceFile), clsStart, sourceFile, this.formatContext.options)\n + ((_a = this.formatContext.options.indentSize) !== null && _a !== void 0 ? _a : 4);\n };\n ChangeTracker.prototype.getInsertNodeAtStartInsertOptions = function (sourceFile, cls, indentation) {\n // Rules:\n // - Always insert leading newline.\n // - For object literals:\n // - Add a trailing comma if there are existing members in the node, or the source file is not a JSON file\n // (because trailing commas are generally illegal in a JSON file).\n // - Add a leading comma if the source file is not a JSON file, there are existing insertions,\n // and the node is empty (because we didn't add a trailing comma per the previous rule).\n // - Only insert a trailing newline if body is single-line and there are no other insertions for the node.\n // NOTE: This is handled in `finishClassesWithNodesInsertedAtStart`.\n var members = getMembersOrProperties(cls);\n var isEmpty = members.length === 0;\n var isFirstInsertion = ts.addToSeen(this.classesWithNodesInsertedAtStart, ts.getNodeId(cls), { node: cls, sourceFile: sourceFile });\n var insertTrailingComma = ts.isObjectLiteralExpression(cls) && (!ts.isJsonSourceFile(sourceFile) || !isEmpty);\n var insertLeadingComma = ts.isObjectLiteralExpression(cls) && ts.isJsonSourceFile(sourceFile) && isEmpty && !isFirstInsertion;\n return {\n indentation: indentation,\n prefix: (insertLeadingComma ? \",\" : \"\") + this.newLineCharacter,\n suffix: insertTrailingComma ? \",\" : \"\"\n };\n };\n ChangeTracker.prototype.insertNodeAfterComma = function (sourceFile, after, newNode) {\n var endPosition = this.insertNodeAfterWorker(sourceFile, this.nextCommaToken(sourceFile, after) || after, newNode);\n this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));\n };\n ChangeTracker.prototype.insertNodeAfter = function (sourceFile, after, newNode) {\n var endPosition = this.insertNodeAfterWorker(sourceFile, after, newNode);\n this.insertNodeAt(sourceFile, endPosition, newNode, this.getInsertNodeAfterOptions(sourceFile, after));\n };\n ChangeTracker.prototype.insertNodeAtEndOfList = function (sourceFile, list, newNode) {\n this.insertNodeAt(sourceFile, list.end, newNode, { prefix: \", \" });\n };\n ChangeTracker.prototype.insertNodesAfter = function (sourceFile, after, newNodes) {\n var endPosition = this.insertNodeAfterWorker(sourceFile, after, ts.first(newNodes));\n this.insertNodesAt(sourceFile, endPosition, newNodes, this.getInsertNodeAfterOptions(sourceFile, after));\n };\n ChangeTracker.prototype.insertNodeAfterWorker = function (sourceFile, after, newNode) {\n if (needSemicolonBetween(after, newNode)) {\n // check if previous statement ends with semicolon\n // if not - insert semicolon to preserve the code from changing the meaning due to ASI\n if (sourceFile.text.charCodeAt(after.end - 1) !== 59 /* semicolon */) {\n this.replaceRange(sourceFile, ts.createRange(after.end), ts.factory.createToken(26 /* SemicolonToken */));\n }\n }\n var endPosition = getAdjustedEndPosition(sourceFile, after, {});\n return endPosition;\n };\n ChangeTracker.prototype.getInsertNodeAfterOptions = function (sourceFile, after) {\n var options = this.getInsertNodeAfterOptionsWorker(after);\n return __assign(__assign({}, options), { prefix: after.end === sourceFile.end && ts.isStatement(after) ? (options.prefix ? \"\\n\" + options.prefix : \"\\n\") : options.prefix });\n };\n ChangeTracker.prototype.getInsertNodeAfterOptionsWorker = function (node) {\n switch (node.kind) {\n case 255 /* ClassDeclaration */:\n case 259 /* ModuleDeclaration */:\n return { prefix: this.newLineCharacter, suffix: this.newLineCharacter };\n case 252 /* VariableDeclaration */:\n case 10 /* StringLiteral */:\n case 79 /* Identifier */:\n return { prefix: \", \" };\n case 291 /* PropertyAssignment */:\n return { suffix: \",\" + this.newLineCharacter };\n case 93 /* ExportKeyword */:\n return { prefix: \" \" };\n case 162 /* Parameter */:\n return {};\n default:\n ts.Debug.assert(ts.isStatement(node) || ts.isClassOrTypeElement(node)); // Else we haven't handled this kind of node yet -- add it\n return { suffix: this.newLineCharacter };\n }\n };\n ChangeTracker.prototype.insertName = function (sourceFile, node, name) {\n ts.Debug.assert(!node.name);\n if (node.kind === 212 /* ArrowFunction */) {\n var arrow = ts.findChildOfKind(node, 38 /* EqualsGreaterThanToken */, sourceFile);\n var lparen = ts.findChildOfKind(node, 20 /* OpenParenToken */, sourceFile);\n if (lparen) {\n // `() => {}` --> `function f() {}`\n this.insertNodesAt(sourceFile, lparen.getStart(sourceFile), [ts.factory.createToken(98 /* FunctionKeyword */), ts.factory.createIdentifier(name)], { joiner: \" \" });\n deleteNode(this, sourceFile, arrow);\n }\n else {\n // `x => {}` -> `function f(x) {}`\n this.insertText(sourceFile, ts.first(node.parameters).getStart(sourceFile), \"function \" + name + \"(\");\n // Replacing full range of arrow to get rid of the leading space -- replace ` =>` with `)`\n this.replaceRange(sourceFile, arrow, ts.factory.createToken(21 /* CloseParenToken */));\n }\n if (node.body.kind !== 233 /* Block */) {\n // `() => 0` => `function f() { return 0; }`\n this.insertNodesAt(sourceFile, node.body.getStart(sourceFile), [ts.factory.createToken(18 /* OpenBraceToken */), ts.factory.createToken(105 /* ReturnKeyword */)], { joiner: \" \", suffix: \" \" });\n this.insertNodesAt(sourceFile, node.body.end, [ts.factory.createToken(26 /* SemicolonToken */), ts.factory.createToken(19 /* CloseBraceToken */)], { joiner: \" \" });\n }\n }\n else {\n var pos = ts.findChildOfKind(node, node.kind === 211 /* FunctionExpression */ ? 98 /* FunctionKeyword */ : 84 /* ClassKeyword */, sourceFile).end;\n this.insertNodeAt(sourceFile, pos, ts.factory.createIdentifier(name), { prefix: \" \" });\n }\n };\n ChangeTracker.prototype.insertExportModifier = function (sourceFile, node) {\n this.insertText(sourceFile, node.getStart(sourceFile), \"export \");\n };\n /**\n * This function should be used to insert nodes in lists when nodes don't carry separators as the part of the node range,\n * i.e. arguments in arguments lists, parameters in parameter lists etc.\n * Note that separators are part of the node in statements and class elements.\n */\n ChangeTracker.prototype.insertNodeInListAfter = function (sourceFile, after, newNode, containingList) {\n if (containingList === void 0) { containingList = ts.formatting.SmartIndenter.getContainingList(after, sourceFile); }\n if (!containingList) {\n ts.Debug.fail(\"node is not a list element\");\n return;\n }\n var index = ts.indexOfNode(containingList, after);\n if (index < 0) {\n return;\n }\n var end = after.getEnd();\n if (index !== containingList.length - 1) {\n // any element except the last one\n // use next sibling as an anchor\n var nextToken = ts.getTokenAtPosition(sourceFile, after.end);\n if (nextToken && isSeparator(after, nextToken)) {\n // for list\n // a, b, c\n // create change for adding 'e' after 'a' as\n // - find start of next element after a (it is b)\n // - use next element start as start and end position in final change\n // - build text of change by formatting the text of node + whitespace trivia of b\n // in multiline case it will work as\n // a,\n // b,\n // c,\n // result - '*' denotes leading trivia that will be inserted after new text (displayed as '#')\n // a,\n // insertedtext#\n // ###b,\n // c,\n var nextNode = containingList[index + 1];\n var startPos = skipWhitespacesAndLineBreaks(sourceFile.text, nextNode.getFullStart());\n // write separator and leading trivia of the next element as suffix\n var suffix = \"\" + ts.tokenToString(nextToken.kind) + sourceFile.text.substring(nextToken.end, startPos);\n this.insertNodesAt(sourceFile, startPos, [newNode], { suffix: suffix });\n }\n }\n else {\n var afterStart = after.getStart(sourceFile);\n var afterStartLinePosition = ts.getLineStartPositionForPosition(afterStart, sourceFile);\n var separator = void 0;\n var multilineList = false;\n // insert element after the last element in the list that has more than one item\n // pick the element preceding the after element to:\n // - pick the separator\n // - determine if list is a multiline\n if (containingList.length === 1) {\n // if list has only one element then we'll format is as multiline if node has comment in trailing trivia, or as singleline otherwise\n // i.e. var x = 1 // this is x\n // | new element will be inserted at this position\n separator = 27 /* CommaToken */;\n }\n else {\n // element has more than one element, pick separator from the list\n var tokenBeforeInsertPosition = ts.findPrecedingToken(after.pos, sourceFile);\n separator = isSeparator(after, tokenBeforeInsertPosition) ? tokenBeforeInsertPosition.kind : 27 /* CommaToken */;\n // determine if list is multiline by checking lines of after element and element that precedes it.\n var afterMinusOneStartLinePosition = ts.getLineStartPositionForPosition(containingList[index - 1].getStart(sourceFile), sourceFile);\n multilineList = afterMinusOneStartLinePosition !== afterStartLinePosition;\n }\n if (hasCommentsBeforeLineBreak(sourceFile.text, after.end)) {\n // in this case we'll always treat containing list as multiline\n multilineList = true;\n }\n if (multilineList) {\n // insert separator immediately following the 'after' node to preserve comments in trailing trivia\n this.replaceRange(sourceFile, ts.createRange(end), ts.factory.createToken(separator));\n // use the same indentation as 'after' item\n var indentation = ts.formatting.SmartIndenter.findFirstNonWhitespaceColumn(afterStartLinePosition, afterStart, sourceFile, this.formatContext.options);\n // insert element before the line break on the line that contains 'after' element\n var insertPos = ts.skipTrivia(sourceFile.text, end, /*stopAfterLineBreak*/ true, /*stopAtComments*/ false);\n // find position before \"\\n\" or \"\\r\\n\"\n while (insertPos !== end && ts.isLineBreak(sourceFile.text.charCodeAt(insertPos - 1))) {\n insertPos--;\n }\n this.replaceRange(sourceFile, ts.createRange(insertPos), newNode, { indentation: indentation, prefix: this.newLineCharacter });\n }\n else {\n this.replaceRange(sourceFile, ts.createRange(end), newNode, { prefix: ts.tokenToString(separator) + \" \" });\n }\n }\n };\n ChangeTracker.prototype.parenthesizeExpression = function (sourceFile, expression) {\n this.replaceRange(sourceFile, ts.rangeOfNode(expression), ts.factory.createParenthesizedExpression(expression));\n };\n ChangeTracker.prototype.finishClassesWithNodesInsertedAtStart = function () {\n var _this = this;\n this.classesWithNodesInsertedAtStart.forEach(function (_a) {\n var node = _a.node, sourceFile = _a.sourceFile;\n var _b = getClassOrObjectBraceEnds(node, sourceFile), openBraceEnd = _b[0], closeBraceEnd = _b[1];\n if (openBraceEnd !== undefined && closeBraceEnd !== undefined) {\n var isEmpty = getMembersOrProperties(node).length === 0;\n var isSingleLine = ts.positionsAreOnSameLine(openBraceEnd, closeBraceEnd, sourceFile);\n if (isEmpty && isSingleLine && openBraceEnd !== closeBraceEnd - 1) {\n // For `class C { }` remove the whitespace inside the braces.\n _this.deleteRange(sourceFile, ts.createRange(openBraceEnd, closeBraceEnd - 1));\n }\n if (isSingleLine) {\n _this.insertText(sourceFile, closeBraceEnd - 1, _this.newLineCharacter);\n }\n }\n });\n };\n ChangeTracker.prototype.finishDeleteDeclarations = function () {\n var _this = this;\n var deletedNodesInLists = new ts.Set(); // Stores nodes in lists that we already deleted. Used to avoid deleting `, ` twice in `a, b`.\n var _loop_10 = function (sourceFile, node) {\n if (!this_1.deletedNodes.some(function (d) { return d.sourceFile === sourceFile && ts.rangeContainsRangeExclusive(d.node, node); })) {\n if (ts.isArray(node)) {\n this_1.deleteRange(sourceFile, ts.rangeOfTypeParameters(sourceFile, node));\n }\n else {\n deleteDeclaration.deleteDeclaration(this_1, deletedNodesInLists, sourceFile, node);\n }\n }\n };\n var this_1 = this;\n for (var _i = 0, _a = this.deletedNodes; _i < _a.length; _i++) {\n var _b = _a[_i], sourceFile = _b.sourceFile, node = _b.node;\n _loop_10(sourceFile, node);\n }\n deletedNodesInLists.forEach(function (node) {\n var sourceFile = node.getSourceFile();\n var list = ts.formatting.SmartIndenter.getContainingList(node, sourceFile);\n if (node !== ts.last(list))\n return;\n var lastNonDeletedIndex = ts.findLastIndex(list, function (n) { return !deletedNodesInLists.has(n); }, list.length - 2);\n if (lastNonDeletedIndex !== -1) {\n _this.deleteRange(sourceFile, { pos: list[lastNonDeletedIndex].end, end: startPositionToDeleteNodeInList(sourceFile, list[lastNonDeletedIndex + 1]) });\n }\n });\n };\n /**\n * Note: after calling this, the TextChanges object must be discarded!\n * @param validate only for tests\n * The reason we must validate as part of this method is that `getNonFormattedText` changes the node's positions,\n * so we can only call this once and can't get the non-formatted text separately.\n */\n ChangeTracker.prototype.getChanges = function (validate) {\n this.finishDeleteDeclarations();\n this.finishClassesWithNodesInsertedAtStart();\n var changes = changesToText.getTextChangesFromChanges(this.changes, this.newLineCharacter, this.formatContext, validate);\n for (var _i = 0, _a = this.newFiles; _i < _a.length; _i++) {\n var _b = _a[_i], oldFile = _b.oldFile, fileName = _b.fileName, statements = _b.statements;\n changes.push(changesToText.newFileChanges(oldFile, fileName, statements, this.newLineCharacter, this.formatContext));\n }\n return changes;\n };\n ChangeTracker.prototype.createNewFile = function (oldFile, fileName, statements) {\n this.newFiles.push({ oldFile: oldFile, fileName: fileName, statements: statements });\n };\n return ChangeTracker;\n }());\n textChanges_3.ChangeTracker = ChangeTracker;\n // find first non-whitespace position in the leading trivia of the node\n function startPositionToDeleteNodeInList(sourceFile, node) {\n return ts.skipTrivia(sourceFile.text, getAdjustedStartPosition(sourceFile, node, { leadingTriviaOption: LeadingTriviaOption.IncludeAll }), /*stopAfterLineBreak*/ false, /*stopAtComments*/ true);\n }\n function getClassOrObjectBraceEnds(cls, sourceFile) {\n var open = ts.findChildOfKind(cls, 18 /* OpenBraceToken */, sourceFile);\n var close = ts.findChildOfKind(cls, 19 /* CloseBraceToken */, sourceFile);\n return [open === null || open === void 0 ? void 0 : open.end, close === null || close === void 0 ? void 0 : close.end];\n }\n function getMembersOrProperties(cls) {\n return ts.isObjectLiteralExpression(cls) ? cls.properties : cls.members;\n }\n function getNewFileText(statements, scriptKind, newLineCharacter, formatContext) {\n return changesToText.newFileChangesWorker(/*oldFile*/ undefined, scriptKind, statements, newLineCharacter, formatContext);\n }\n textChanges_3.getNewFileText = getNewFileText;\n var changesToText;\n (function (changesToText) {\n function getTextChangesFromChanges(changes, newLineCharacter, formatContext, validate) {\n return ts.mapDefined(ts.group(changes, function (c) { return c.sourceFile.path; }), function (changesInFile) {\n var sourceFile = changesInFile[0].sourceFile;\n // order changes by start position\n // If the start position is the same, put the shorter range first, since an empty range (x, x) may precede (x, y) but not vice-versa.\n var normalized = ts.stableSort(changesInFile, function (a, b) { return (a.range.pos - b.range.pos) || (a.range.end - b.range.end); });\n var _loop_11 = function (i) {\n ts.Debug.assert(normalized[i].range.end <= normalized[i + 1].range.pos, \"Changes overlap\", function () {\n return JSON.stringify(normalized[i].range) + \" and \" + JSON.stringify(normalized[i + 1].range);\n });\n };\n // verify that change intervals do not overlap, except possibly at end points.\n for (var i = 0; i < normalized.length - 1; i++) {\n _loop_11(i);\n }\n var textChanges = ts.mapDefined(normalized, function (c) {\n var span = ts.createTextSpanFromRange(c.range);\n var newText = computeNewText(c, sourceFile, newLineCharacter, formatContext, validate);\n // Filter out redundant changes.\n if (span.length === newText.length && ts.stringContainsAt(sourceFile.text, newText, span.start)) {\n return undefined;\n }\n return ts.createTextChange(span, newText);\n });\n return textChanges.length > 0 ? { fileName: sourceFile.fileName, textChanges: textChanges } : undefined;\n });\n }\n changesToText.getTextChangesFromChanges = getTextChangesFromChanges;\n function newFileChanges(oldFile, fileName, statements, newLineCharacter, formatContext) {\n var text = newFileChangesWorker(oldFile, ts.getScriptKindFromFileName(fileName), statements, newLineCharacter, formatContext);\n return { fileName: fileName, textChanges: [ts.createTextChange(ts.createTextSpan(0, 0), text)], isNewFile: true };\n }\n changesToText.newFileChanges = newFileChanges;\n function newFileChangesWorker(oldFile, scriptKind, statements, newLineCharacter, formatContext) {\n // TODO: this emits the file, parses it back, then formats it that -- may be a less roundabout way to do this\n var nonFormattedText = statements.map(function (s) { return s === 4 /* NewLineTrivia */ ? \"\" : getNonformattedText(s, oldFile, newLineCharacter).text; }).join(newLineCharacter);\n var sourceFile = ts.createSourceFile(\"any file name\", nonFormattedText, 99 /* ESNext */, /*setParentNodes*/ true, scriptKind);\n var changes = ts.formatting.formatDocument(sourceFile, formatContext);\n return applyChanges(nonFormattedText, changes) + newLineCharacter;\n }\n changesToText.newFileChangesWorker = newFileChangesWorker;\n function computeNewText(change, sourceFile, newLineCharacter, formatContext, validate) {\n var _a;\n if (change.kind === ChangeKind.Remove) {\n return \"\";\n }\n if (change.kind === ChangeKind.Text) {\n return change.text;\n }\n var _b = change.options, options = _b === void 0 ? {} : _b, pos = change.range.pos;\n var format = function (n) { return getFormattedTextOfNode(n, sourceFile, pos, options, newLineCharacter, formatContext, validate); };\n var text = change.kind === ChangeKind.ReplaceWithMultipleNodes\n ? change.nodes.map(function (n) { return ts.removeSuffix(format(n), newLineCharacter); }).join(((_a = change.options) === null || _a === void 0 ? void 0 : _a.joiner) || newLineCharacter)\n : format(change.node);\n // strip initial indentation (spaces or tabs) if text will be inserted in the middle of the line\n var noIndent = (options.preserveLeadingWhitespace || options.indentation !== undefined || ts.getLineStartPositionForPosition(pos, sourceFile) === pos) ? text : text.replace(/^\\s+/, \"\");\n return (options.prefix || \"\") + noIndent\n + ((!options.suffix || ts.endsWith(noIndent, options.suffix))\n ? \"\" : options.suffix);\n }\n function getFormatCodeSettingsForWriting(_a, sourceFile) {\n var options = _a.options;\n var shouldAutoDetectSemicolonPreference = !options.semicolons || options.semicolons === ts.SemicolonPreference.Ignore;\n var shouldRemoveSemicolons = options.semicolons === ts.SemicolonPreference.Remove || shouldAutoDetectSemicolonPreference && !ts.probablyUsesSemicolons(sourceFile);\n return __assign(__assign({}, options), { semicolons: shouldRemoveSemicolons ? ts.SemicolonPreference.Remove : ts.SemicolonPreference.Ignore });\n }\n /** Note: this may mutate `nodeIn`. */\n function getFormattedTextOfNode(nodeIn, sourceFile, pos, _a, newLineCharacter, formatContext, validate) {\n var indentation = _a.indentation, prefix = _a.prefix, delta = _a.delta;\n var _b = getNonformattedText(nodeIn, sourceFile, newLineCharacter), node = _b.node, text = _b.text;\n if (validate)\n validate(node, text);\n var formatOptions = getFormatCodeSettingsForWriting(formatContext, sourceFile);\n var initialIndentation = indentation !== undefined\n ? indentation\n : ts.formatting.SmartIndenter.getIndentation(pos, sourceFile, formatOptions, prefix === newLineCharacter || ts.getLineStartPositionForPosition(pos, sourceFile) === pos);\n if (delta === undefined) {\n delta = ts.formatting.SmartIndenter.shouldIndentChildNode(formatOptions, nodeIn) ? (formatOptions.indentSize || 0) : 0;\n }\n var file = { text: text, getLineAndCharacterOfPosition: function (pos) { return ts.getLineAndCharacterOfPosition(this, pos); } };\n var changes = ts.formatting.formatNodeGivenIndentation(node, file, sourceFile.languageVariant, initialIndentation, delta, __assign(__assign({}, formatContext), { options: formatOptions }));\n return applyChanges(text, changes);\n }\n /** Note: output node may be mutated input node. */\n function getNonformattedText(node, sourceFile, newLineCharacter) {\n var writer = createWriter(newLineCharacter);\n var newLine = newLineCharacter === \"\\n\" ? 1 /* LineFeed */ : 0 /* CarriageReturnLineFeed */;\n ts.createPrinter({\n newLine: newLine,\n neverAsciiEscape: true,\n preserveSourceNewlines: true,\n terminateUnterminatedLiterals: true\n }, writer).writeNode(4 /* Unspecified */, node, sourceFile, writer);\n return { text: writer.getText(), node: assignPositionsToNode(node) };\n }\n changesToText.getNonformattedText = getNonformattedText;\n })(changesToText || (changesToText = {}));\n function applyChanges(text, changes) {\n for (var i = changes.length - 1; i >= 0; i--) {\n var _a = changes[i], span = _a.span, newText = _a.newText;\n text = \"\" + text.substring(0, span.start) + newText + text.substring(ts.textSpanEnd(span));\n }\n return text;\n }\n textChanges_3.applyChanges = applyChanges;\n function isTrivia(s) {\n return ts.skipTrivia(s, 0) === s.length;\n }\n function assignPositionsToNode(node) {\n var visited = ts.visitEachChild(node, assignPositionsToNode, ts.nullTransformationContext, assignPositionsToNodeArray, assignPositionsToNode);\n // create proxy node for non synthesized nodes\n var newNode = ts.nodeIsSynthesized(visited) ? visited : Object.create(visited);\n ts.setTextRangePosEnd(newNode, getPos(node), getEnd(node));\n return newNode;\n }\n function assignPositionsToNodeArray(nodes, visitor, test, start, count) {\n var visited = ts.visitNodes(nodes, visitor, test, start, count);\n if (!visited) {\n return visited;\n }\n // clone nodearray if necessary\n var nodeArray = visited === nodes ? ts.factory.createNodeArray(visited.slice(0)) : visited;\n ts.setTextRangePosEnd(nodeArray, getPos(nodes), getEnd(nodes));\n return nodeArray;\n }\n function createWriter(newLine) {\n var lastNonTriviaPosition = 0;\n var writer = ts.createTextWriter(newLine);\n var onBeforeEmitNode = function (node) {\n if (node) {\n setPos(node, lastNonTriviaPosition);\n }\n };\n var onAfterEmitNode = function (node) {\n if (node) {\n setEnd(node, lastNonTriviaPosition);\n }\n };\n var onBeforeEmitNodeArray = function (nodes) {\n if (nodes) {\n setPos(nodes, lastNonTriviaPosition);\n }\n };\n var onAfterEmitNodeArray = function (nodes) {\n if (nodes) {\n setEnd(nodes, lastNonTriviaPosition);\n }\n };\n var onBeforeEmitToken = function (node) {\n if (node) {\n setPos(node, lastNonTriviaPosition);\n }\n };\n var onAfterEmitToken = function (node) {\n if (node) {\n setEnd(node, lastNonTriviaPosition);\n }\n };\n function setLastNonTriviaPosition(s, force) {\n if (force || !isTrivia(s)) {\n lastNonTriviaPosition = writer.getTextPos();\n var i = 0;\n while (ts.isWhiteSpaceLike(s.charCodeAt(s.length - i - 1))) {\n i++;\n }\n // trim trailing whitespaces\n lastNonTriviaPosition -= i;\n }\n }\n function write(s) {\n writer.write(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeComment(s) {\n writer.writeComment(s);\n }\n function writeKeyword(s) {\n writer.writeKeyword(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeOperator(s) {\n writer.writeOperator(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writePunctuation(s) {\n writer.writePunctuation(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeTrailingSemicolon(s) {\n writer.writeTrailingSemicolon(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeParameter(s) {\n writer.writeParameter(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeProperty(s) {\n writer.writeProperty(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeSpace(s) {\n writer.writeSpace(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeStringLiteral(s) {\n writer.writeStringLiteral(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeSymbol(s, sym) {\n writer.writeSymbol(s, sym);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeLine(force) {\n writer.writeLine(force);\n }\n function increaseIndent() {\n writer.increaseIndent();\n }\n function decreaseIndent() {\n writer.decreaseIndent();\n }\n function getText() {\n return writer.getText();\n }\n function rawWrite(s) {\n writer.rawWrite(s);\n setLastNonTriviaPosition(s, /*force*/ false);\n }\n function writeLiteral(s) {\n writer.writeLiteral(s);\n setLastNonTriviaPosition(s, /*force*/ true);\n }\n function getTextPos() {\n return writer.getTextPos();\n }\n function getLine() {\n return writer.getLine();\n }\n function getColumn() {\n return writer.getColumn();\n }\n function getIndent() {\n return writer.getIndent();\n }\n function isAtStartOfLine() {\n return writer.isAtStartOfLine();\n }\n function clear() {\n writer.clear();\n lastNonTriviaPosition = 0;\n }\n return {\n onBeforeEmitNode: onBeforeEmitNode,\n onAfterEmitNode: onAfterEmitNode,\n onBeforeEmitNodeArray: onBeforeEmitNodeArray,\n onAfterEmitNodeArray: onAfterEmitNodeArray,\n onBeforeEmitToken: onBeforeEmitToken,\n onAfterEmitToken: onAfterEmitToken,\n write: write,\n writeComment: writeComment,\n writeKeyword: writeKeyword,\n writeOperator: writeOperator,\n writePunctuation: writePunctuation,\n writeTrailingSemicolon: writeTrailingSemicolon,\n writeParameter: writeParameter,\n writeProperty: writeProperty,\n writeSpace: writeSpace,\n writeStringLiteral: writeStringLiteral,\n writeSymbol: writeSymbol,\n writeLine: writeLine,\n increaseIndent: increaseIndent,\n decreaseIndent: decreaseIndent,\n getText: getText,\n rawWrite: rawWrite,\n writeLiteral: writeLiteral,\n getTextPos: getTextPos,\n getLine: getLine,\n getColumn: getColumn,\n getIndent: getIndent,\n isAtStartOfLine: isAtStartOfLine,\n hasTrailingComment: function () { return writer.hasTrailingComment(); },\n hasTrailingWhitespace: function () { return writer.hasTrailingWhitespace(); },\n clear: clear\n };\n }\n function getInsertionPositionAtSourceFileTop(sourceFile) {\n var lastPrologue;\n for (var _i = 0, _a = sourceFile.statements; _i < _a.length; _i++) {\n var node = _a[_i];\n if (ts.isPrologueDirective(node)) {\n lastPrologue = node;\n }\n else {\n break;\n }\n }\n var position = 0;\n var text = sourceFile.text;\n if (lastPrologue) {\n position = lastPrologue.end;\n advancePastLineBreak();\n return position;\n }\n var shebang = ts.getShebang(text);\n if (shebang !== undefined) {\n position = shebang.length;\n advancePastLineBreak();\n }\n var ranges = ts.getLeadingCommentRanges(text, position);\n if (!ranges)\n return position;\n // Find the first attached comment to the first node and add before it\n var lastComment;\n var firstNodeLine;\n for (var _b = 0, ranges_1 = ranges; _b < ranges_1.length; _b++) {\n var range = ranges_1[_b];\n if (range.kind === 3 /* MultiLineCommentTrivia */) {\n if (ts.isPinnedComment(text, range.pos)) {\n lastComment = { range: range, pinnedOrTripleSlash: true };\n continue;\n }\n }\n else if (ts.isRecognizedTripleSlashComment(text, range.pos, range.end)) {\n lastComment = { range: range, pinnedOrTripleSlash: true };\n continue;\n }\n if (lastComment) {\n // Always insert after pinned or triple slash comments\n if (lastComment.pinnedOrTripleSlash)\n break;\n // There was a blank line between the last comment and this comment.\n // This comment is not part of the copyright comments\n var commentLine = sourceFile.getLineAndCharacterOfPosition(range.pos).line;\n var lastCommentEndLine = sourceFile.getLineAndCharacterOfPosition(lastComment.range.end).line;\n if (commentLine >= lastCommentEndLine + 2)\n break;\n }\n if (sourceFile.statements.length) {\n if (firstNodeLine === undefined)\n firstNodeLine = sourceFile.getLineAndCharacterOfPosition(sourceFile.statements[0].getStart()).line;\n var commentEndLine = sourceFile.getLineAndCharacterOfPosition(range.end).line;\n if (firstNodeLine < commentEndLine + 2)\n break;\n }\n lastComment = { range: range, pinnedOrTripleSlash: false };\n }\n if (lastComment) {\n position = lastComment.range.end;\n advancePastLineBreak();\n }\n return position;\n function advancePastLineBreak() {\n if (position < text.length) {\n var charCode = text.charCodeAt(position);\n if (ts.isLineBreak(charCode)) {\n position++;\n if (position < text.length && charCode === 13 /* carriageReturn */ && text.charCodeAt(position) === 10 /* lineFeed */) {\n position++;\n }\n }\n }\n }\n }\n function isValidLocationToAddComment(sourceFile, position) {\n return !ts.isInComment(sourceFile, position) && !ts.isInString(sourceFile, position) && !ts.isInTemplateString(sourceFile, position) && !ts.isInJSXText(sourceFile, position);\n }\n textChanges_3.isValidLocationToAddComment = isValidLocationToAddComment;\n function needSemicolonBetween(a, b) {\n return (ts.isPropertySignature(a) || ts.isPropertyDeclaration(a)) && ts.isClassOrTypeElement(b) && b.name.kind === 160 /* ComputedPropertyName */\n || ts.isStatementButNotDeclaration(a) && ts.isStatementButNotDeclaration(b); // TODO: only if b would start with a `(` or `[`\n }\n var deleteDeclaration;\n (function (deleteDeclaration_1) {\n function deleteDeclaration(changes, deletedNodesInLists, sourceFile, node) {\n switch (node.kind) {\n case 162 /* Parameter */: {\n var oldFunction = node.parent;\n if (ts.isArrowFunction(oldFunction) &&\n oldFunction.parameters.length === 1 &&\n !ts.findChildOfKind(oldFunction, 20 /* OpenParenToken */, sourceFile)) {\n // Lambdas with exactly one parameter are special because, after removal, there\n // must be an empty parameter list (i.e. `()`) and this won't necessarily be the\n // case if the parameter is simply removed (e.g. in `x => 1`).\n changes.replaceNodeWithText(sourceFile, node, \"()\");\n }\n else {\n deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n }\n break;\n }\n case 264 /* ImportDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n var isFirstImport = sourceFile.imports.length && node === ts.first(sourceFile.imports).parent || node === ts.find(sourceFile.statements, ts.isAnyImportSyntax);\n // For first import, leave header comment in place, otherwise only delete JSDoc comments\n deleteNode(changes, sourceFile, node, {\n leadingTriviaOption: isFirstImport ? LeadingTriviaOption.Exclude : ts.hasJSDocNodes(node) ? LeadingTriviaOption.JSDoc : LeadingTriviaOption.StartLine,\n });\n break;\n case 201 /* BindingElement */:\n var pattern = node.parent;\n var preserveComma = pattern.kind === 200 /* ArrayBindingPattern */ && node !== ts.last(pattern.elements);\n if (preserveComma) {\n deleteNode(changes, sourceFile, node);\n }\n else {\n deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n }\n break;\n case 252 /* VariableDeclaration */:\n deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node);\n break;\n case 161 /* TypeParameter */:\n deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n break;\n case 268 /* ImportSpecifier */:\n var namedImports = node.parent;\n if (namedImports.elements.length === 1) {\n deleteImportBinding(changes, sourceFile, namedImports);\n }\n else {\n deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n }\n break;\n case 266 /* NamespaceImport */:\n deleteImportBinding(changes, sourceFile, node);\n break;\n case 26 /* SemicolonToken */:\n deleteNode(changes, sourceFile, node, { trailingTriviaOption: TrailingTriviaOption.Exclude });\n break;\n case 98 /* FunctionKeyword */:\n deleteNode(changes, sourceFile, node, { leadingTriviaOption: LeadingTriviaOption.Exclude });\n break;\n case 255 /* ClassDeclaration */:\n case 254 /* FunctionDeclaration */:\n deleteNode(changes, sourceFile, node, { leadingTriviaOption: ts.hasJSDocNodes(node) ? LeadingTriviaOption.JSDoc : LeadingTriviaOption.StartLine });\n break;\n default:\n if (!node.parent) {\n // a misbehaving client can reach here with the SourceFile node\n deleteNode(changes, sourceFile, node);\n }\n else if (ts.isImportClause(node.parent) && node.parent.name === node) {\n deleteDefaultImport(changes, sourceFile, node.parent);\n }\n else if (ts.isCallExpression(node.parent) && ts.contains(node.parent.arguments, node)) {\n deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n }\n else {\n deleteNode(changes, sourceFile, node);\n }\n }\n }\n deleteDeclaration_1.deleteDeclaration = deleteDeclaration;\n function deleteDefaultImport(changes, sourceFile, importClause) {\n if (!importClause.namedBindings) {\n // Delete the whole import\n deleteNode(changes, sourceFile, importClause.parent);\n }\n else {\n // import |d,| * as ns from './file'\n var start = importClause.name.getStart(sourceFile);\n var nextToken = ts.getTokenAtPosition(sourceFile, importClause.name.end);\n if (nextToken && nextToken.kind === 27 /* CommaToken */) {\n // shift first non-whitespace position after comma to the start position of the node\n var end = ts.skipTrivia(sourceFile.text, nextToken.end, /*stopAfterLineBreaks*/ false, /*stopAtComments*/ true);\n changes.deleteRange(sourceFile, { pos: start, end: end });\n }\n else {\n deleteNode(changes, sourceFile, importClause.name);\n }\n }\n }\n function deleteImportBinding(changes, sourceFile, node) {\n if (node.parent.name) {\n // Delete named imports while preserving the default import\n // import d|, * as ns| from './file'\n // import d|, { a }| from './file'\n var previousToken = ts.Debug.checkDefined(ts.getTokenAtPosition(sourceFile, node.pos - 1));\n changes.deleteRange(sourceFile, { pos: previousToken.getStart(sourceFile), end: node.end });\n }\n else {\n // Delete the entire import declaration\n // |import * as ns from './file'|\n // |import { a } from './file'|\n var importDecl = ts.getAncestor(node, 264 /* ImportDeclaration */);\n deleteNode(changes, sourceFile, importDecl);\n }\n }\n function deleteVariableDeclaration(changes, deletedNodesInLists, sourceFile, node) {\n var parent = node.parent;\n if (parent.kind === 290 /* CatchClause */) {\n // TODO: There's currently no unused diagnostic for this, could be a suggestion\n changes.deleteNodeRange(sourceFile, ts.findChildOfKind(parent, 20 /* OpenParenToken */, sourceFile), ts.findChildOfKind(parent, 21 /* CloseParenToken */, sourceFile));\n return;\n }\n if (parent.declarations.length !== 1) {\n deleteNodeInList(changes, deletedNodesInLists, sourceFile, node);\n return;\n }\n var gp = parent.parent;\n switch (gp.kind) {\n case 242 /* ForOfStatement */:\n case 241 /* ForInStatement */:\n changes.replaceNode(sourceFile, node, ts.factory.createObjectLiteralExpression());\n break;\n case 240 /* ForStatement */:\n deleteNode(changes, sourceFile, parent);\n break;\n case 235 /* VariableStatement */:\n deleteNode(changes, sourceFile, gp, { leadingTriviaOption: ts.hasJSDocNodes(gp) ? LeadingTriviaOption.JSDoc : LeadingTriviaOption.StartLine });\n break;\n default:\n ts.Debug.assertNever(gp);\n }\n }\n })(deleteDeclaration || (deleteDeclaration = {}));\n /** Warning: This deletes comments too. See `copyComments` in `convertFunctionToEs6Class`. */\n // Exported for tests only! (TODO: improve tests to not need this)\n function deleteNode(changes, sourceFile, node, options) {\n if (options === void 0) { options = { leadingTriviaOption: LeadingTriviaOption.IncludeAll }; }\n var startPosition = getAdjustedStartPosition(sourceFile, node, options);\n var endPosition = getAdjustedEndPosition(sourceFile, node, options);\n changes.deleteRange(sourceFile, { pos: startPosition, end: endPosition });\n }\n textChanges_3.deleteNode = deleteNode;\n function deleteNodeInList(changes, deletedNodesInLists, sourceFile, node) {\n var containingList = ts.Debug.checkDefined(ts.formatting.SmartIndenter.getContainingList(node, sourceFile));\n var index = ts.indexOfNode(containingList, node);\n ts.Debug.assert(index !== -1);\n if (containingList.length === 1) {\n deleteNode(changes, sourceFile, node);\n return;\n }\n // Note: We will only delete a comma *after* a node. This will leave a trailing comma if we delete the last node.\n // That's handled in the end by `finishTrailingCommaAfterDeletingNodesInList`.\n ts.Debug.assert(!deletedNodesInLists.has(node), \"Deleting a node twice\");\n deletedNodesInLists.add(node);\n changes.deleteRange(sourceFile, {\n pos: startPositionToDeleteNodeInList(sourceFile, node),\n end: index === containingList.length - 1 ? getAdjustedEndPosition(sourceFile, node, {}) : startPositionToDeleteNodeInList(sourceFile, containingList[index + 1]),\n });\n }\n })(textChanges = ts.textChanges || (ts.textChanges = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodeToFixes = ts.createMultiMap();\n var fixIdToRegistration = new ts.Map();\n function diagnosticToString(diag) {\n return ts.isArray(diag)\n ? ts.formatStringFromArgs(ts.getLocaleSpecificMessage(diag[0]), diag.slice(1))\n : ts.getLocaleSpecificMessage(diag);\n }\n function createCodeFixActionWithoutFixAll(fixName, changes, description) {\n return createCodeFixActionWorker(fixName, diagnosticToString(description), changes, /*fixId*/ undefined, /*fixAllDescription*/ undefined);\n }\n codefix.createCodeFixActionWithoutFixAll = createCodeFixActionWithoutFixAll;\n function createCodeFixAction(fixName, changes, description, fixId, fixAllDescription, command) {\n return createCodeFixActionWorker(fixName, diagnosticToString(description), changes, fixId, diagnosticToString(fixAllDescription), command);\n }\n codefix.createCodeFixAction = createCodeFixAction;\n function createCodeFixActionMaybeFixAll(fixName, changes, description, fixId, fixAllDescription, command) {\n return createCodeFixActionWorker(fixName, diagnosticToString(description), changes, fixId, fixAllDescription && diagnosticToString(fixAllDescription), command);\n }\n codefix.createCodeFixActionMaybeFixAll = createCodeFixActionMaybeFixAll;\n function createCodeFixActionWorker(fixName, description, changes, fixId, fixAllDescription, command) {\n return { fixName: fixName, description: description, changes: changes, fixId: fixId, fixAllDescription: fixAllDescription, commands: command ? [command] : undefined };\n }\n function registerCodeFix(reg) {\n for (var _i = 0, _a = reg.errorCodes; _i < _a.length; _i++) {\n var error = _a[_i];\n errorCodeToFixes.add(String(error), reg);\n }\n if (reg.fixIds) {\n for (var _b = 0, _c = reg.fixIds; _b < _c.length; _b++) {\n var fixId = _c[_b];\n ts.Debug.assert(!fixIdToRegistration.has(fixId));\n fixIdToRegistration.set(fixId, reg);\n }\n }\n }\n codefix.registerCodeFix = registerCodeFix;\n function getSupportedErrorCodes() {\n return ts.arrayFrom(errorCodeToFixes.keys());\n }\n codefix.getSupportedErrorCodes = getSupportedErrorCodes;\n function removeFixIdIfFixAllUnavailable(registration, diagnostics) {\n var errorCodes = registration.errorCodes;\n var maybeFixableDiagnostics = 0;\n for (var _i = 0, diagnostics_1 = diagnostics; _i < diagnostics_1.length; _i++) {\n var diag = diagnostics_1[_i];\n if (ts.contains(errorCodes, diag.code))\n maybeFixableDiagnostics++;\n if (maybeFixableDiagnostics > 1)\n break;\n }\n var fixAllUnavailable = maybeFixableDiagnostics < 2;\n return function (_a) {\n var fixId = _a.fixId, fixAllDescription = _a.fixAllDescription, action = __rest(_a, [\"fixId\", \"fixAllDescription\"]);\n return fixAllUnavailable ? action : __assign(__assign({}, action), { fixId: fixId, fixAllDescription: fixAllDescription });\n };\n }\n function getFixes(context) {\n var diagnostics = getDiagnostics(context);\n var registrations = errorCodeToFixes.get(String(context.errorCode));\n return ts.flatMap(registrations, function (f) { return ts.map(f.getCodeActions(context), removeFixIdIfFixAllUnavailable(f, diagnostics)); });\n }\n codefix.getFixes = getFixes;\n function getAllFixes(context) {\n // Currently fixId is always a string.\n return fixIdToRegistration.get(ts.cast(context.fixId, ts.isString)).getAllCodeActions(context);\n }\n codefix.getAllFixes = getAllFixes;\n function createCombinedCodeActions(changes, commands) {\n return { changes: changes, commands: commands };\n }\n codefix.createCombinedCodeActions = createCombinedCodeActions;\n function createFileTextChanges(fileName, textChanges) {\n return { fileName: fileName, textChanges: textChanges };\n }\n codefix.createFileTextChanges = createFileTextChanges;\n function codeFixAll(context, errorCodes, use) {\n var commands = [];\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return eachDiagnostic(context, errorCodes, function (diag) { return use(t, diag, commands); }); });\n return createCombinedCodeActions(changes, commands.length === 0 ? undefined : commands);\n }\n codefix.codeFixAll = codeFixAll;\n function eachDiagnostic(context, errorCodes, cb) {\n for (var _i = 0, _a = getDiagnostics(context); _i < _a.length; _i++) {\n var diag = _a[_i];\n if (ts.contains(errorCodes, diag.code)) {\n cb(diag);\n }\n }\n }\n codefix.eachDiagnostic = eachDiagnostic;\n function getDiagnostics(_a) {\n var program = _a.program, sourceFile = _a.sourceFile, cancellationToken = _a.cancellationToken;\n return __spreadArray(__spreadArray(__spreadArray([], program.getSemanticDiagnostics(sourceFile, cancellationToken), true), program.getSyntacticDiagnostics(sourceFile, cancellationToken), true), ts.computeSuggestionDiagnostics(sourceFile, program, cancellationToken), true);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor_1) {\n // A map with the refactor code as key, the refactor itself as value\n // e.g. nonSuggestableRefactors[refactorCode] -> the refactor you want\n var refactors = new ts.Map();\n /** @param name An unique code associated with each refactor. Does not have to be human-readable. */\n function registerRefactor(name, refactor) {\n refactors.set(name, refactor);\n }\n refactor_1.registerRefactor = registerRefactor;\n function getApplicableRefactors(context) {\n return ts.arrayFrom(ts.flatMapIterator(refactors.values(), function (refactor) {\n var _a;\n return context.cancellationToken && context.cancellationToken.isCancellationRequested() ||\n !((_a = refactor.kinds) === null || _a === void 0 ? void 0 : _a.some(function (kind) { return refactor_1.refactorKindBeginsWith(kind, context.kind); })) ? undefined :\n refactor.getAvailableActions(context);\n }));\n }\n refactor_1.getApplicableRefactors = getApplicableRefactors;\n function getEditsForRefactor(context, refactorName, actionName) {\n var refactor = refactors.get(refactorName);\n return refactor && refactor.getEditsForAction(context, actionName);\n }\n refactor_1.getEditsForRefactor = getEditsForRefactor;\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addConvertToUnknownForNonOverlappingTypes\";\n var errorCodes = [ts.Diagnostics.Conversion_of_type_0_to_type_1_may_be_a_mistake_because_neither_type_sufficiently_overlaps_with_the_other_If_this_was_intentional_convert_the_expression_to_unknown_first.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_unknown_conversion_for_non_overlapping_types, fixId, ts.Diagnostics.Add_unknown_to_all_conversions_of_non_overlapping_types)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start); }); },\n });\n function makeChange(changeTracker, sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var assertion = ts.Debug.checkDefined(ts.findAncestor(token, function (n) { return ts.isAsExpression(n) || ts.isTypeAssertionExpression(n); }), \"Expected to find an assertion expression\");\n var replacement = ts.isAsExpression(assertion)\n ? ts.factory.createAsExpression(assertion.expression, ts.factory.createKeywordTypeNode(153 /* UnknownKeyword */))\n : ts.factory.createTypeAssertion(ts.factory.createKeywordTypeNode(153 /* UnknownKeyword */), assertion.expression);\n changeTracker.replaceNode(sourceFile, assertion.expression, replacement);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n codefix.registerCodeFix({\n errorCodes: [\n ts.Diagnostics.await_expressions_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,\n ts.Diagnostics.for_await_loops_are_only_allowed_at_the_top_level_of_a_file_when_that_file_is_a_module_but_this_file_has_no_imports_or_exports_Consider_adding_an_empty_export_to_make_this_file_a_module.code,\n ],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var changes = ts.textChanges.ChangeTracker.with(context, function (changes) {\n var exportDeclaration = ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, ts.factory.createNamedExports([]), \n /*moduleSpecifier*/ undefined);\n changes.insertNodeAtEndOfScope(sourceFile, sourceFile, exportDeclaration);\n });\n return [codefix.createCodeFixActionWithoutFixAll(\"addEmptyExportDeclaration\", changes, ts.Diagnostics.Add_export_to_make_this_file_into_a_module)];\n },\n });\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addMissingAsync\";\n var errorCodes = [\n ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n ts.Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n ts.Diagnostics.Type_0_is_not_comparable_to_type_1.code\n ];\n codefix.registerCodeFix({\n fixIds: [fixId],\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, errorCode = context.errorCode, cancellationToken = context.cancellationToken, program = context.program, span = context.span;\n var diagnostic = ts.find(program.getDiagnosticsProducingTypeChecker().getDiagnostics(sourceFile, cancellationToken), getIsMatchingAsyncError(span, errorCode));\n var directSpan = diagnostic && diagnostic.relatedInformation && ts.find(diagnostic.relatedInformation, function (r) { return r.code === ts.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code; });\n var decl = getFixableErrorSpanDeclaration(sourceFile, directSpan);\n if (!decl) {\n return;\n }\n var trackChanges = function (cb) { return ts.textChanges.ChangeTracker.with(context, cb); };\n return [getFix(context, decl, trackChanges)];\n },\n getAllCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var fixedDeclarations = new ts.Set();\n return codefix.codeFixAll(context, errorCodes, function (t, diagnostic) {\n var span = diagnostic.relatedInformation && ts.find(diagnostic.relatedInformation, function (r) { return r.code === ts.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code; });\n var decl = getFixableErrorSpanDeclaration(sourceFile, span);\n if (!decl) {\n return;\n }\n var trackChanges = function (cb) { return (cb(t), []); };\n return getFix(context, decl, trackChanges, fixedDeclarations);\n });\n },\n });\n function getFix(context, decl, trackChanges, fixedDeclarations) {\n var changes = trackChanges(function (t) { return makeChange(t, context.sourceFile, decl, fixedDeclarations); });\n return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_async_modifier_to_containing_function, fixId, ts.Diagnostics.Add_all_missing_async_modifiers);\n }\n function makeChange(changeTracker, sourceFile, insertionSite, fixedDeclarations) {\n if (fixedDeclarations) {\n if (fixedDeclarations.has(ts.getNodeId(insertionSite))) {\n return;\n }\n }\n fixedDeclarations === null || fixedDeclarations === void 0 ? void 0 : fixedDeclarations.add(ts.getNodeId(insertionSite));\n var cloneWithModifier = ts.factory.updateModifiers(ts.getSynthesizedDeepClone(insertionSite, /*includeTrivia*/ true), ts.factory.createNodeArray(ts.factory.createModifiersFromModifierFlags(ts.getSyntacticModifierFlags(insertionSite) | 256 /* Async */)));\n changeTracker.replaceNode(sourceFile, insertionSite, cloneWithModifier);\n }\n function getFixableErrorSpanDeclaration(sourceFile, span) {\n if (!span)\n return undefined;\n var token = ts.getTokenAtPosition(sourceFile, span.start);\n // Checker has already done work to determine that async might be possible, and has attached\n // related info to the node, so start by finding the signature that exactly matches up\n // with the diagnostic range.\n var decl = ts.findAncestor(token, function (node) {\n if (node.getStart(sourceFile) < span.start || node.getEnd() > ts.textSpanEnd(span)) {\n return \"quit\";\n }\n return (ts.isArrowFunction(node) || ts.isMethodDeclaration(node) || ts.isFunctionExpression(node) || ts.isFunctionDeclaration(node)) && ts.textSpansEqual(span, ts.createTextSpanFromNode(node, sourceFile));\n });\n return decl;\n }\n function getIsMatchingAsyncError(span, errorCode) {\n return function (_a) {\n var start = _a.start, length = _a.length, relatedInformation = _a.relatedInformation, code = _a.code;\n return ts.isNumber(start) && ts.isNumber(length) && ts.textSpansEqual({ start: start, length: length }, span) &&\n code === errorCode &&\n !!relatedInformation &&\n ts.some(relatedInformation, function (related) { return related.code === ts.Diagnostics.Did_you_mean_to_mark_this_function_as_async.code; });\n };\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addMissingAwait\";\n var propertyAccessCode = ts.Diagnostics.Property_0_does_not_exist_on_type_1.code;\n var callableConstructableErrorCodes = [\n ts.Diagnostics.This_expression_is_not_callable.code,\n ts.Diagnostics.This_expression_is_not_constructable.code,\n ];\n var errorCodes = __spreadArray([\n ts.Diagnostics.An_arithmetic_operand_must_be_of_type_any_number_bigint_or_an_enum_type.code,\n ts.Diagnostics.The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,\n ts.Diagnostics.The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_bigint_or_an_enum_type.code,\n ts.Diagnostics.Operator_0_cannot_be_applied_to_type_1.code,\n ts.Diagnostics.Operator_0_cannot_be_applied_to_types_1_and_2.code,\n ts.Diagnostics.This_condition_will_always_return_0_since_the_types_1_and_2_have_no_overlap.code,\n ts.Diagnostics.This_condition_will_always_return_true_since_this_0_is_always_defined.code,\n ts.Diagnostics.Type_0_is_not_an_array_type.code,\n ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type.code,\n ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_Use_compiler_option_downlevelIteration_to_allow_iterating_of_iterators.code,\n ts.Diagnostics.Type_0_is_not_an_array_type_or_a_string_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,\n ts.Diagnostics.Type_0_is_not_an_array_type_or_does_not_have_a_Symbol_iterator_method_that_returns_an_iterator.code,\n ts.Diagnostics.Type_0_must_have_a_Symbol_iterator_method_that_returns_an_iterator.code,\n ts.Diagnostics.Type_0_must_have_a_Symbol_asyncIterator_method_that_returns_an_async_iterator.code,\n ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n propertyAccessCode\n ], callableConstructableErrorCodes, true);\n codefix.registerCodeFix({\n fixIds: [fixId],\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, errorCode = context.errorCode, span = context.span, cancellationToken = context.cancellationToken, program = context.program;\n var expression = getFixableErrorSpanExpression(sourceFile, errorCode, span, cancellationToken, program);\n if (!expression) {\n return;\n }\n var checker = context.program.getTypeChecker();\n var trackChanges = function (cb) { return ts.textChanges.ChangeTracker.with(context, cb); };\n return ts.compact([\n getDeclarationSiteFix(context, expression, errorCode, checker, trackChanges),\n getUseSiteFix(context, expression, errorCode, checker, trackChanges)\n ]);\n },\n getAllCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, cancellationToken = context.cancellationToken;\n var checker = context.program.getTypeChecker();\n var fixedDeclarations = new ts.Set();\n return codefix.codeFixAll(context, errorCodes, function (t, diagnostic) {\n var expression = getFixableErrorSpanExpression(sourceFile, diagnostic.code, diagnostic, cancellationToken, program);\n if (!expression) {\n return;\n }\n var trackChanges = function (cb) { return (cb(t), []); };\n return getDeclarationSiteFix(context, expression, diagnostic.code, checker, trackChanges, fixedDeclarations)\n || getUseSiteFix(context, expression, diagnostic.code, checker, trackChanges, fixedDeclarations);\n });\n },\n });\n function getDeclarationSiteFix(context, expression, errorCode, checker, trackChanges, fixedDeclarations) {\n var sourceFile = context.sourceFile, program = context.program, cancellationToken = context.cancellationToken;\n var awaitableInitializers = findAwaitableInitializers(expression, sourceFile, cancellationToken, program, checker);\n if (awaitableInitializers) {\n var initializerChanges = trackChanges(function (t) {\n ts.forEach(awaitableInitializers.initializers, function (_a) {\n var expression = _a.expression;\n return makeChange(t, errorCode, sourceFile, checker, expression, fixedDeclarations);\n });\n if (fixedDeclarations && awaitableInitializers.needsSecondPassForFixAll) {\n makeChange(t, errorCode, sourceFile, checker, expression, fixedDeclarations);\n }\n });\n // No fix-all because it will already be included once with the use site fix,\n // and for simplicity the fix-all doesn‘t let the user choose between use-site and declaration-site fixes.\n return codefix.createCodeFixActionWithoutFixAll(\"addMissingAwaitToInitializer\", initializerChanges, awaitableInitializers.initializers.length === 1\n ? [ts.Diagnostics.Add_await_to_initializer_for_0, awaitableInitializers.initializers[0].declarationSymbol.name]\n : ts.Diagnostics.Add_await_to_initializers);\n }\n }\n function getUseSiteFix(context, expression, errorCode, checker, trackChanges, fixedDeclarations) {\n var changes = trackChanges(function (t) { return makeChange(t, errorCode, context.sourceFile, checker, expression, fixedDeclarations); });\n return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_await, fixId, ts.Diagnostics.Fix_all_expressions_possibly_missing_await);\n }\n function isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program) {\n var checker = program.getDiagnosticsProducingTypeChecker();\n var diagnostics = checker.getDiagnostics(sourceFile, cancellationToken);\n return ts.some(diagnostics, function (_a) {\n var start = _a.start, length = _a.length, relatedInformation = _a.relatedInformation, code = _a.code;\n return ts.isNumber(start) && ts.isNumber(length) && ts.textSpansEqual({ start: start, length: length }, span) &&\n code === errorCode &&\n !!relatedInformation &&\n ts.some(relatedInformation, function (related) { return related.code === ts.Diagnostics.Did_you_forget_to_use_await.code; });\n });\n }\n function getFixableErrorSpanExpression(sourceFile, errorCode, span, cancellationToken, program) {\n var token = ts.getTokenAtPosition(sourceFile, span.start);\n // Checker has already done work to determine that await might be possible, and has attached\n // related info to the node, so start by finding the expression that exactly matches up\n // with the diagnostic range.\n var expression = ts.findAncestor(token, function (node) {\n if (node.getStart(sourceFile) < span.start || node.getEnd() > ts.textSpanEnd(span)) {\n return \"quit\";\n }\n return ts.isExpression(node) && ts.textSpansEqual(span, ts.createTextSpanFromNode(node, sourceFile));\n });\n return expression\n && isMissingAwaitError(sourceFile, errorCode, span, cancellationToken, program)\n && isInsideAwaitableBody(expression) ? expression : undefined;\n }\n function findAwaitableInitializers(expression, sourceFile, cancellationToken, program, checker) {\n var identifiers = getIdentifiersFromErrorSpanExpression(expression, checker);\n if (!identifiers) {\n return;\n }\n var isCompleteFix = identifiers.isCompleteFix;\n var initializers;\n var _loop_12 = function (identifier) {\n var symbol = checker.getSymbolAtLocation(identifier);\n if (!symbol) {\n return \"continue\";\n }\n var declaration = ts.tryCast(symbol.valueDeclaration, ts.isVariableDeclaration);\n var variableName = declaration && ts.tryCast(declaration.name, ts.isIdentifier);\n var variableStatement = ts.getAncestor(declaration, 235 /* VariableStatement */);\n if (!declaration || !variableStatement ||\n declaration.type ||\n !declaration.initializer ||\n variableStatement.getSourceFile() !== sourceFile ||\n ts.hasSyntacticModifier(variableStatement, 1 /* Export */) ||\n !variableName ||\n !isInsideAwaitableBody(declaration.initializer)) {\n isCompleteFix = false;\n return \"continue\";\n }\n var diagnostics = program.getSemanticDiagnostics(sourceFile, cancellationToken);\n var isUsedElsewhere = ts.FindAllReferences.Core.eachSymbolReferenceInFile(variableName, checker, sourceFile, function (reference) {\n return identifier !== reference && !symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker);\n });\n if (isUsedElsewhere) {\n isCompleteFix = false;\n return \"continue\";\n }\n (initializers || (initializers = [])).push({\n expression: declaration.initializer,\n declarationSymbol: symbol,\n });\n };\n for (var _i = 0, _a = identifiers.identifiers; _i < _a.length; _i++) {\n var identifier = _a[_i];\n _loop_12(identifier);\n }\n return initializers && {\n initializers: initializers,\n needsSecondPassForFixAll: !isCompleteFix,\n };\n }\n function getIdentifiersFromErrorSpanExpression(expression, checker) {\n if (ts.isPropertyAccessExpression(expression.parent) && ts.isIdentifier(expression.parent.expression)) {\n return { identifiers: [expression.parent.expression], isCompleteFix: true };\n }\n if (ts.isIdentifier(expression)) {\n return { identifiers: [expression], isCompleteFix: true };\n }\n if (ts.isBinaryExpression(expression)) {\n var sides = void 0;\n var isCompleteFix = true;\n for (var _i = 0, _a = [expression.left, expression.right]; _i < _a.length; _i++) {\n var side = _a[_i];\n var type = checker.getTypeAtLocation(side);\n if (checker.getPromisedTypeOfPromise(type)) {\n if (!ts.isIdentifier(side)) {\n isCompleteFix = false;\n continue;\n }\n (sides || (sides = [])).push(side);\n }\n }\n return sides && { identifiers: sides, isCompleteFix: isCompleteFix };\n }\n }\n function symbolReferenceIsAlsoMissingAwait(reference, diagnostics, sourceFile, checker) {\n var errorNode = ts.isPropertyAccessExpression(reference.parent) ? reference.parent.name :\n ts.isBinaryExpression(reference.parent) ? reference.parent :\n reference;\n var diagnostic = ts.find(diagnostics, function (diagnostic) {\n return diagnostic.start === errorNode.getStart(sourceFile) &&\n (diagnostic.start + diagnostic.length) === errorNode.getEnd();\n });\n return diagnostic && ts.contains(errorCodes, diagnostic.code) ||\n // A Promise is usually not correct in a binary expression (it’s not valid\n // in an arithmetic expression and an equality comparison seems unusual),\n // but if the other side of the binary expression has an error, the side\n // is typed `any` which will squash the error that would identify this\n // Promise as an invalid operand. So if the whole binary expression is\n // typed `any` as a result, there is a strong likelihood that this Promise\n // is accidentally missing `await`.\n checker.getTypeAtLocation(errorNode).flags & 1 /* Any */;\n }\n function isInsideAwaitableBody(node) {\n return node.kind & 32768 /* AwaitContext */ || !!ts.findAncestor(node, function (ancestor) {\n return ancestor.parent && ts.isArrowFunction(ancestor.parent) && ancestor.parent.body === ancestor ||\n ts.isBlock(ancestor) && (ancestor.parent.kind === 254 /* FunctionDeclaration */ ||\n ancestor.parent.kind === 211 /* FunctionExpression */ ||\n ancestor.parent.kind === 212 /* ArrowFunction */ ||\n ancestor.parent.kind === 167 /* MethodDeclaration */);\n });\n }\n function makeChange(changeTracker, errorCode, sourceFile, checker, insertionSite, fixedDeclarations) {\n if (ts.isBinaryExpression(insertionSite)) {\n for (var _i = 0, _a = [insertionSite.left, insertionSite.right]; _i < _a.length; _i++) {\n var side = _a[_i];\n if (fixedDeclarations && ts.isIdentifier(side)) {\n var symbol = checker.getSymbolAtLocation(side);\n if (symbol && fixedDeclarations.has(ts.getSymbolId(symbol))) {\n continue;\n }\n }\n var type = checker.getTypeAtLocation(side);\n var newNode = checker.getPromisedTypeOfPromise(type) ? ts.factory.createAwaitExpression(side) : side;\n changeTracker.replaceNode(sourceFile, side, newNode);\n }\n }\n else if (errorCode === propertyAccessCode && ts.isPropertyAccessExpression(insertionSite.parent)) {\n if (fixedDeclarations && ts.isIdentifier(insertionSite.parent.expression)) {\n var symbol = checker.getSymbolAtLocation(insertionSite.parent.expression);\n if (symbol && fixedDeclarations.has(ts.getSymbolId(symbol))) {\n return;\n }\n }\n changeTracker.replaceNode(sourceFile, insertionSite.parent.expression, ts.factory.createParenthesizedExpression(ts.factory.createAwaitExpression(insertionSite.parent.expression)));\n insertLeadingSemicolonIfNeeded(changeTracker, insertionSite.parent.expression, sourceFile);\n }\n else if (ts.contains(callableConstructableErrorCodes, errorCode) && ts.isCallOrNewExpression(insertionSite.parent)) {\n if (fixedDeclarations && ts.isIdentifier(insertionSite)) {\n var symbol = checker.getSymbolAtLocation(insertionSite);\n if (symbol && fixedDeclarations.has(ts.getSymbolId(symbol))) {\n return;\n }\n }\n changeTracker.replaceNode(sourceFile, insertionSite, ts.factory.createParenthesizedExpression(ts.factory.createAwaitExpression(insertionSite)));\n insertLeadingSemicolonIfNeeded(changeTracker, insertionSite, sourceFile);\n }\n else {\n if (fixedDeclarations && ts.isVariableDeclaration(insertionSite.parent) && ts.isIdentifier(insertionSite.parent.name)) {\n var symbol = checker.getSymbolAtLocation(insertionSite.parent.name);\n if (symbol && !ts.tryAddToSet(fixedDeclarations, ts.getSymbolId(symbol))) {\n return;\n }\n }\n changeTracker.replaceNode(sourceFile, insertionSite, ts.factory.createAwaitExpression(insertionSite));\n }\n }\n function insertLeadingSemicolonIfNeeded(changeTracker, beforeNode, sourceFile) {\n var precedingToken = ts.findPrecedingToken(beforeNode.pos, sourceFile);\n if (precedingToken && ts.positionIsASICandidate(precedingToken.end, precedingToken.parent, sourceFile)) {\n changeTracker.insertText(sourceFile, beforeNode.getStart(sourceFile), \";\");\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addMissingConst\";\n var errorCodes = [\n ts.Diagnostics.Cannot_find_name_0.code,\n ts.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start, context.program); });\n if (changes.length > 0) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_const_to_unresolved_variable, fixId, ts.Diagnostics.Add_const_to_all_unresolved_variables)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var fixedNodes = new ts.Set();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start, context.program, fixedNodes); });\n },\n });\n function makeChange(changeTracker, sourceFile, pos, program, fixedNodes) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var forInitializer = ts.findAncestor(token, function (node) {\n return ts.isForInOrOfStatement(node.parent) ? node.parent.initializer === node :\n isPossiblyPartOfDestructuring(node) ? false : \"quit\";\n });\n if (forInitializer)\n return applyChange(changeTracker, forInitializer, sourceFile, fixedNodes);\n var parent = token.parent;\n if (ts.isBinaryExpression(parent) && parent.operatorToken.kind === 63 /* EqualsToken */ && ts.isExpressionStatement(parent.parent)) {\n return applyChange(changeTracker, token, sourceFile, fixedNodes);\n }\n if (ts.isArrayLiteralExpression(parent)) {\n var checker_1 = program.getTypeChecker();\n if (!ts.every(parent.elements, function (element) { return arrayElementCouldBeVariableDeclaration(element, checker_1); })) {\n return;\n }\n return applyChange(changeTracker, parent, sourceFile, fixedNodes);\n }\n var commaExpression = ts.findAncestor(token, function (node) {\n return ts.isExpressionStatement(node.parent) ? true :\n isPossiblyPartOfCommaSeperatedInitializer(node) ? false : \"quit\";\n });\n if (commaExpression) {\n var checker = program.getTypeChecker();\n if (!expressionCouldBeVariableDeclaration(commaExpression, checker)) {\n return;\n }\n return applyChange(changeTracker, commaExpression, sourceFile, fixedNodes);\n }\n }\n function applyChange(changeTracker, initializer, sourceFile, fixedNodes) {\n if (!fixedNodes || ts.tryAddToSet(fixedNodes, initializer)) {\n changeTracker.insertModifierBefore(sourceFile, 85 /* ConstKeyword */, initializer);\n }\n }\n function isPossiblyPartOfDestructuring(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n case 202 /* ArrayLiteralExpression */:\n case 203 /* ObjectLiteralExpression */:\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n return true;\n default:\n return false;\n }\n }\n function arrayElementCouldBeVariableDeclaration(expression, checker) {\n var identifier = ts.isIdentifier(expression) ? expression :\n ts.isAssignmentExpression(expression, /*excludeCompoundAssignment*/ true) && ts.isIdentifier(expression.left) ? expression.left :\n undefined;\n return !!identifier && !checker.getSymbolAtLocation(identifier);\n }\n function isPossiblyPartOfCommaSeperatedInitializer(node) {\n switch (node.kind) {\n case 79 /* Identifier */:\n case 219 /* BinaryExpression */:\n case 27 /* CommaToken */:\n return true;\n default:\n return false;\n }\n }\n function expressionCouldBeVariableDeclaration(expression, checker) {\n if (!ts.isBinaryExpression(expression)) {\n return false;\n }\n if (expression.operatorToken.kind === 27 /* CommaToken */) {\n return ts.every([expression.left, expression.right], function (expression) { return expressionCouldBeVariableDeclaration(expression, checker); });\n }\n return expression.operatorToken.kind === 63 /* EqualsToken */\n && ts.isIdentifier(expression.left)\n && !checker.getSymbolAtLocation(expression.left);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addMissingDeclareProperty\";\n var errorCodes = [\n ts.Diagnostics.Property_0_will_overwrite_the_base_property_in_1_If_this_is_intentional_add_an_initializer_Otherwise_add_a_declare_modifier_or_remove_the_redundant_declaration.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });\n if (changes.length > 0) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Prefix_with_declare, fixId, ts.Diagnostics.Prefix_all_incorrect_property_declarations_with_declare)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var fixedNodes = new ts.Set();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start, fixedNodes); });\n },\n });\n function makeChange(changeTracker, sourceFile, pos, fixedNodes) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n if (!ts.isIdentifier(token)) {\n return;\n }\n var declaration = token.parent;\n if (declaration.kind === 165 /* PropertyDeclaration */ &&\n (!fixedNodes || ts.tryAddToSet(fixedNodes, declaration))) {\n changeTracker.insertModifierBefore(sourceFile, 134 /* DeclareKeyword */, declaration);\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addMissingInvocationForDecorator\";\n var errorCodes = [ts.Diagnostics._0_accepts_too_few_arguments_to_be_used_as_a_decorator_here_Did_you_mean_to_call_it_first_and_write_0.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Call_decorator_expression, fixId, ts.Diagnostics.Add_to_all_uncalled_decorators)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start); }); },\n });\n function makeChange(changeTracker, sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var decorator = ts.findAncestor(token, ts.isDecorator);\n ts.Debug.assert(!!decorator, \"Expected position to be owned by a decorator.\");\n var replacement = ts.factory.createCallExpression(decorator.expression, /*typeArguments*/ undefined, /*argumentsArray*/ undefined);\n changeTracker.replaceNode(sourceFile, decorator.expression, replacement);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addNameToNamelessParameter\";\n var errorCodes = [ts.Diagnostics.Parameter_has_a_name_but_no_type_Did_you_mean_0_Colon_1.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span.start); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_parameter_name, fixId, ts.Diagnostics.Add_names_to_all_parameters_without_names)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag.start); }); },\n });\n function makeChange(changeTracker, sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n if (!ts.isIdentifier(token)) {\n return ts.Debug.fail(\"add-name-to-nameless-parameter operates on identifiers, but got a \" + ts.Debug.formatSyntaxKind(token.kind));\n }\n var param = token.parent;\n if (!ts.isParameter(param)) {\n return ts.Debug.fail(\"Tried to add a parameter name to a non-parameter: \" + ts.Debug.formatSyntaxKind(token.kind));\n }\n var i = param.parent.parameters.indexOf(param);\n ts.Debug.assert(!param.type, \"Tried to add a parameter name to a parameter that already had one.\");\n ts.Debug.assert(i > -1, \"Parameter not found in parent parameter list.\");\n var replacement = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, param.modifiers, param.dotDotDotToken, \"arg\" + i, param.questionToken, ts.factory.createTypeReferenceNode(token, /*typeArguments*/ undefined), param.initializer);\n changeTracker.replaceNode(sourceFile, token, replacement);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"annotateWithTypeFromJSDoc\";\n var errorCodes = [ts.Diagnostics.JSDoc_types_may_be_moved_to_TypeScript_types.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var decl = getDeclaration(context.sourceFile, context.span.start);\n if (!decl)\n return;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, decl); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Annotate_with_type_from_JSDoc, fixId, ts.Diagnostics.Annotate_everything_with_types_from_JSDoc)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var decl = getDeclaration(diag.file, diag.start);\n if (decl)\n doChange(changes, diag.file, decl);\n }); },\n });\n function getDeclaration(file, pos) {\n var name = ts.getTokenAtPosition(file, pos);\n // For an arrow function with no name, 'name' lands on the first parameter.\n return ts.tryCast(ts.isParameter(name.parent) ? name.parent.parent : name.parent, parameterShouldGetTypeFromJSDoc);\n }\n function parameterShouldGetTypeFromJSDoc(node) {\n return isDeclarationWithType(node) && hasUsableJSDoc(node);\n }\n codefix.parameterShouldGetTypeFromJSDoc = parameterShouldGetTypeFromJSDoc;\n function hasUsableJSDoc(decl) {\n return ts.isFunctionLikeDeclaration(decl)\n ? decl.parameters.some(hasUsableJSDoc) || (!decl.type && !!ts.getJSDocReturnType(decl))\n : !decl.type && !!ts.getJSDocType(decl);\n }\n function doChange(changes, sourceFile, decl) {\n if (ts.isFunctionLikeDeclaration(decl) && (ts.getJSDocReturnType(decl) || decl.parameters.some(function (p) { return !!ts.getJSDocType(p); }))) {\n if (!decl.typeParameters) {\n var typeParameters = ts.getJSDocTypeParameterDeclarations(decl);\n if (typeParameters.length)\n changes.insertTypeParameters(sourceFile, decl, typeParameters);\n }\n var needParens = ts.isArrowFunction(decl) && !ts.findChildOfKind(decl, 20 /* OpenParenToken */, sourceFile);\n if (needParens)\n changes.insertNodeBefore(sourceFile, ts.first(decl.parameters), ts.factory.createToken(20 /* OpenParenToken */));\n for (var _i = 0, _a = decl.parameters; _i < _a.length; _i++) {\n var param = _a[_i];\n if (!param.type) {\n var paramType = ts.getJSDocType(param);\n if (paramType)\n changes.tryInsertTypeAnnotation(sourceFile, param, transformJSDocType(paramType));\n }\n }\n if (needParens)\n changes.insertNodeAfter(sourceFile, ts.last(decl.parameters), ts.factory.createToken(21 /* CloseParenToken */));\n if (!decl.type) {\n var returnType = ts.getJSDocReturnType(decl);\n if (returnType)\n changes.tryInsertTypeAnnotation(sourceFile, decl, transformJSDocType(returnType));\n }\n }\n else {\n var jsdocType = ts.Debug.checkDefined(ts.getJSDocType(decl), \"A JSDocType for this declaration should exist\"); // If not defined, shouldn't have been an error to fix\n ts.Debug.assert(!decl.type, \"The JSDocType decl should have a type\"); // If defined, shouldn't have been an error to fix.\n changes.tryInsertTypeAnnotation(sourceFile, decl, transformJSDocType(jsdocType));\n }\n }\n function isDeclarationWithType(node) {\n return ts.isFunctionLikeDeclaration(node) ||\n node.kind === 252 /* VariableDeclaration */ ||\n node.kind === 164 /* PropertySignature */ ||\n node.kind === 165 /* PropertyDeclaration */;\n }\n function transformJSDocType(node) {\n switch (node.kind) {\n case 307 /* JSDocAllType */:\n case 308 /* JSDocUnknownType */:\n return ts.factory.createTypeReferenceNode(\"any\", ts.emptyArray);\n case 311 /* JSDocOptionalType */:\n return transformJSDocOptionalType(node);\n case 310 /* JSDocNonNullableType */:\n return transformJSDocType(node.type);\n case 309 /* JSDocNullableType */:\n return transformJSDocNullableType(node);\n case 313 /* JSDocVariadicType */:\n return transformJSDocVariadicType(node);\n case 312 /* JSDocFunctionType */:\n return transformJSDocFunctionType(node);\n case 176 /* TypeReference */:\n return transformJSDocTypeReference(node);\n default:\n var visited = ts.visitEachChild(node, transformJSDocType, ts.nullTransformationContext);\n ts.setEmitFlags(visited, 1 /* SingleLine */);\n return visited;\n }\n }\n function transformJSDocOptionalType(node) {\n return ts.factory.createUnionTypeNode([ts.visitNode(node.type, transformJSDocType), ts.factory.createTypeReferenceNode(\"undefined\", ts.emptyArray)]);\n }\n function transformJSDocNullableType(node) {\n return ts.factory.createUnionTypeNode([ts.visitNode(node.type, transformJSDocType), ts.factory.createTypeReferenceNode(\"null\", ts.emptyArray)]);\n }\n function transformJSDocVariadicType(node) {\n return ts.factory.createArrayTypeNode(ts.visitNode(node.type, transformJSDocType));\n }\n function transformJSDocFunctionType(node) {\n var _a;\n // TODO: This does not properly handle `function(new:C, string)` per https://github.com/google/closure-compiler/wiki/Types-in-the-Closure-Type-System#the-javascript-type-language\n // however we do handle it correctly in `serializeTypeForDeclaration` in checker.ts\n return ts.factory.createFunctionTypeNode(ts.emptyArray, node.parameters.map(transformJSDocParameter), (_a = node.type) !== null && _a !== void 0 ? _a : ts.factory.createKeywordTypeNode(129 /* AnyKeyword */));\n }\n function transformJSDocParameter(node) {\n var index = node.parent.parameters.indexOf(node);\n var isRest = node.type.kind === 313 /* JSDocVariadicType */ && index === node.parent.parameters.length - 1; // TODO: GH#18217\n var name = node.name || (isRest ? \"rest\" : \"arg\" + index);\n var dotdotdot = isRest ? ts.factory.createToken(25 /* DotDotDotToken */) : node.dotDotDotToken;\n return ts.factory.createParameterDeclaration(node.decorators, node.modifiers, dotdotdot, name, node.questionToken, ts.visitNode(node.type, transformJSDocType), node.initializer);\n }\n function transformJSDocTypeReference(node) {\n var name = node.typeName;\n var args = node.typeArguments;\n if (ts.isIdentifier(node.typeName)) {\n if (ts.isJSDocIndexSignature(node)) {\n return transformJSDocIndexSignature(node);\n }\n var text = node.typeName.text;\n switch (node.typeName.text) {\n case \"String\":\n case \"Boolean\":\n case \"Object\":\n case \"Number\":\n text = text.toLowerCase();\n break;\n case \"array\":\n case \"date\":\n case \"promise\":\n text = text[0].toUpperCase() + text.slice(1);\n break;\n }\n name = ts.factory.createIdentifier(text);\n if ((text === \"Array\" || text === \"Promise\") && !node.typeArguments) {\n args = ts.factory.createNodeArray([ts.factory.createTypeReferenceNode(\"any\", ts.emptyArray)]);\n }\n else {\n args = ts.visitNodes(node.typeArguments, transformJSDocType);\n }\n }\n return ts.factory.createTypeReferenceNode(name, args);\n }\n function transformJSDocIndexSignature(node) {\n var index = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, node.typeArguments[0].kind === 145 /* NumberKeyword */ ? \"n\" : \"s\", \n /*questionToken*/ undefined, ts.factory.createTypeReferenceNode(node.typeArguments[0].kind === 145 /* NumberKeyword */ ? \"number\" : \"string\", []), \n /*initializer*/ undefined);\n var indexSignature = ts.factory.createTypeLiteralNode([ts.factory.createIndexSignature(/*decorators*/ undefined, /*modifiers*/ undefined, [index], node.typeArguments[1])]);\n ts.setEmitFlags(indexSignature, 1 /* SingleLine */);\n return indexSignature;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"convertFunctionToEs6Class\";\n var errorCodes = [ts.Diagnostics.This_constructor_function_may_be_converted_to_a_class_declaration.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) {\n return doChange(t, context.sourceFile, context.span.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions());\n });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_function_to_an_ES2015_class, fixId, ts.Diagnostics.Convert_all_constructor_functions_to_classes)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, err) {\n return doChange(changes, err.file, err.start, context.program.getTypeChecker(), context.preferences, context.program.getCompilerOptions());\n }); },\n });\n function doChange(changes, sourceFile, position, checker, preferences, compilerOptions) {\n var ctorSymbol = checker.getSymbolAtLocation(ts.getTokenAtPosition(sourceFile, position));\n if (!ctorSymbol || !ctorSymbol.valueDeclaration || !(ctorSymbol.flags & (16 /* Function */ | 3 /* Variable */))) {\n // Bad input\n return undefined;\n }\n var ctorDeclaration = ctorSymbol.valueDeclaration;\n if (ts.isFunctionDeclaration(ctorDeclaration)) {\n changes.replaceNode(sourceFile, ctorDeclaration, createClassFromFunctionDeclaration(ctorDeclaration));\n }\n else if (ts.isVariableDeclaration(ctorDeclaration)) {\n var classDeclaration = createClassFromVariableDeclaration(ctorDeclaration);\n if (!classDeclaration) {\n return undefined;\n }\n var ancestor = ctorDeclaration.parent.parent;\n if (ts.isVariableDeclarationList(ctorDeclaration.parent) && ctorDeclaration.parent.declarations.length > 1) {\n changes.delete(sourceFile, ctorDeclaration);\n changes.insertNodeAfter(sourceFile, ancestor, classDeclaration);\n }\n else {\n changes.replaceNode(sourceFile, ancestor, classDeclaration);\n }\n }\n function createClassElementsFromSymbol(symbol) {\n var memberElements = [];\n // all instance members are stored in the \"member\" array of symbol\n if (symbol.members) {\n symbol.members.forEach(function (member, key) {\n if (key === \"constructor\" && member.valueDeclaration) {\n // fn.prototype.constructor = fn\n changes.delete(sourceFile, member.valueDeclaration.parent);\n return;\n }\n var memberElement = createClassElement(member, /*modifiers*/ undefined);\n if (memberElement) {\n memberElements.push.apply(memberElements, memberElement);\n }\n });\n }\n // all static members are stored in the \"exports\" array of symbol\n if (symbol.exports) {\n symbol.exports.forEach(function (member) {\n if (member.name === \"prototype\" && member.declarations) {\n var firstDeclaration = member.declarations[0];\n // only one \"x.prototype = { ... }\" will pass\n if (member.declarations.length === 1 &&\n ts.isPropertyAccessExpression(firstDeclaration) &&\n ts.isBinaryExpression(firstDeclaration.parent) &&\n firstDeclaration.parent.operatorToken.kind === 63 /* EqualsToken */ &&\n ts.isObjectLiteralExpression(firstDeclaration.parent.right)) {\n var prototypes = firstDeclaration.parent.right;\n var memberElement = createClassElement(prototypes.symbol, /** modifiers */ undefined);\n if (memberElement) {\n memberElements.push.apply(memberElements, memberElement);\n }\n }\n }\n else {\n var memberElement = createClassElement(member, [ts.factory.createToken(124 /* StaticKeyword */)]);\n if (memberElement) {\n memberElements.push.apply(memberElements, memberElement);\n }\n }\n });\n }\n return memberElements;\n function shouldConvertDeclaration(_target, source) {\n // Right now the only thing we can convert are function expressions, get/set accessors and methods\n // other values like normal value fields ({a: 1}) shouldn't get transformed.\n // We can update this once ES public class properties are available.\n if (ts.isAccessExpression(_target)) {\n if (ts.isPropertyAccessExpression(_target) && isConstructorAssignment(_target))\n return true;\n return ts.isFunctionLike(source);\n }\n else {\n return ts.every(_target.properties, function (property) {\n // a() {}\n if (ts.isMethodDeclaration(property) || ts.isGetOrSetAccessorDeclaration(property))\n return true;\n // a: function() {}\n if (ts.isPropertyAssignment(property) && ts.isFunctionExpression(property.initializer) && !!property.name)\n return true;\n // x.prototype.constructor = fn\n if (isConstructorAssignment(property))\n return true;\n return false;\n });\n }\n }\n function createClassElement(symbol, modifiers) {\n // Right now the only thing we can convert are function expressions, which are marked as methods\n // or { x: y } type prototype assignments, which are marked as ObjectLiteral\n var members = [];\n if (!(symbol.flags & 8192 /* Method */) && !(symbol.flags & 4096 /* ObjectLiteral */)) {\n return members;\n }\n var memberDeclaration = symbol.valueDeclaration;\n var assignmentBinaryExpression = memberDeclaration.parent;\n var assignmentExpr = assignmentBinaryExpression.right;\n if (!shouldConvertDeclaration(memberDeclaration, assignmentExpr)) {\n return members;\n }\n // delete the entire statement if this expression is the sole expression to take care of the semicolon at the end\n var nodeToDelete = assignmentBinaryExpression.parent && assignmentBinaryExpression.parent.kind === 236 /* ExpressionStatement */\n ? assignmentBinaryExpression.parent : assignmentBinaryExpression;\n changes.delete(sourceFile, nodeToDelete);\n if (!assignmentExpr) {\n members.push(ts.factory.createPropertyDeclaration([], modifiers, symbol.name, /*questionToken*/ undefined, \n /*type*/ undefined, /*initializer*/ undefined));\n return members;\n }\n // f.x = expr\n if (ts.isAccessExpression(memberDeclaration) && (ts.isFunctionExpression(assignmentExpr) || ts.isArrowFunction(assignmentExpr))) {\n var quotePreference = ts.getQuotePreference(sourceFile, preferences);\n var name = tryGetPropertyName(memberDeclaration, compilerOptions, quotePreference);\n if (name) {\n return createFunctionLikeExpressionMember(members, assignmentExpr, name);\n }\n return members;\n }\n // f.prototype = { ... }\n else if (ts.isObjectLiteralExpression(assignmentExpr)) {\n return ts.flatMap(assignmentExpr.properties, function (property) {\n if (ts.isMethodDeclaration(property) || ts.isGetOrSetAccessorDeclaration(property)) {\n // MethodDeclaration and AccessorDeclaration can appear in a class directly\n return members.concat(property);\n }\n if (ts.isPropertyAssignment(property) && ts.isFunctionExpression(property.initializer)) {\n return createFunctionLikeExpressionMember(members, property.initializer, property.name);\n }\n // Drop constructor assignments\n if (isConstructorAssignment(property))\n return members;\n return [];\n });\n }\n else {\n // Don't try to declare members in JavaScript files\n if (ts.isSourceFileJS(sourceFile))\n return members;\n if (!ts.isPropertyAccessExpression(memberDeclaration))\n return members;\n var prop = ts.factory.createPropertyDeclaration(/*decorators*/ undefined, modifiers, memberDeclaration.name, /*questionToken*/ undefined, /*type*/ undefined, assignmentExpr);\n ts.copyLeadingComments(assignmentBinaryExpression.parent, prop, sourceFile);\n members.push(prop);\n return members;\n }\n function createFunctionLikeExpressionMember(members, expression, name) {\n if (ts.isFunctionExpression(expression))\n return createFunctionExpressionMember(members, expression, name);\n else\n return createArrowFunctionExpressionMember(members, expression, name);\n }\n function createFunctionExpressionMember(members, functionExpression, name) {\n var fullModifiers = ts.concatenate(modifiers, getModifierKindFromSource(functionExpression, 130 /* AsyncKeyword */));\n var method = ts.factory.createMethodDeclaration(/*decorators*/ undefined, fullModifiers, /*asteriskToken*/ undefined, name, /*questionToken*/ undefined, \n /*typeParameters*/ undefined, functionExpression.parameters, /*type*/ undefined, functionExpression.body);\n ts.copyLeadingComments(assignmentBinaryExpression, method, sourceFile);\n return members.concat(method);\n }\n function createArrowFunctionExpressionMember(members, arrowFunction, name) {\n var arrowFunctionBody = arrowFunction.body;\n var bodyBlock;\n // case 1: () => { return [1,2,3] }\n if (arrowFunctionBody.kind === 233 /* Block */) {\n bodyBlock = arrowFunctionBody;\n }\n // case 2: () => [1,2,3]\n else {\n bodyBlock = ts.factory.createBlock([ts.factory.createReturnStatement(arrowFunctionBody)]);\n }\n var fullModifiers = ts.concatenate(modifiers, getModifierKindFromSource(arrowFunction, 130 /* AsyncKeyword */));\n var method = ts.factory.createMethodDeclaration(/*decorators*/ undefined, fullModifiers, /*asteriskToken*/ undefined, name, /*questionToken*/ undefined, \n /*typeParameters*/ undefined, arrowFunction.parameters, /*type*/ undefined, bodyBlock);\n ts.copyLeadingComments(assignmentBinaryExpression, method, sourceFile);\n return members.concat(method);\n }\n }\n }\n function createClassFromVariableDeclaration(node) {\n var initializer = node.initializer;\n if (!initializer || !ts.isFunctionExpression(initializer) || !ts.isIdentifier(node.name)) {\n return undefined;\n }\n var memberElements = createClassElementsFromSymbol(node.symbol);\n if (initializer.body) {\n memberElements.unshift(ts.factory.createConstructorDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, initializer.parameters, initializer.body));\n }\n var modifiers = getModifierKindFromSource(node.parent.parent, 93 /* ExportKeyword */);\n var cls = ts.factory.createClassDeclaration(/*decorators*/ undefined, modifiers, node.name, \n /*typeParameters*/ undefined, /*heritageClauses*/ undefined, memberElements);\n // Don't call copyComments here because we'll already leave them in place\n return cls;\n }\n function createClassFromFunctionDeclaration(node) {\n var memberElements = createClassElementsFromSymbol(ctorSymbol);\n if (node.body) {\n memberElements.unshift(ts.factory.createConstructorDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, node.parameters, node.body));\n }\n var modifiers = getModifierKindFromSource(node, 93 /* ExportKeyword */);\n var cls = ts.factory.createClassDeclaration(/*decorators*/ undefined, modifiers, node.name, \n /*typeParameters*/ undefined, /*heritageClauses*/ undefined, memberElements);\n // Don't call copyComments here because we'll already leave them in place\n return cls;\n }\n }\n function getModifierKindFromSource(source, kind) {\n return ts.filter(source.modifiers, function (modifier) { return modifier.kind === kind; });\n }\n function isConstructorAssignment(x) {\n if (!x.name)\n return false;\n if (ts.isIdentifier(x.name) && x.name.text === \"constructor\")\n return true;\n return false;\n }\n function tryGetPropertyName(node, compilerOptions, quotePreference) {\n if (ts.isPropertyAccessExpression(node)) {\n return node.name;\n }\n var propName = node.argumentExpression;\n if (ts.isNumericLiteral(propName)) {\n return propName;\n }\n if (ts.isStringLiteralLike(propName)) {\n return ts.isIdentifierText(propName.text, compilerOptions.target) ? ts.factory.createIdentifier(propName.text)\n : ts.isNoSubstitutionTemplateLiteral(propName) ? ts.factory.createStringLiteral(propName.text, quotePreference === 0 /* Single */)\n : propName;\n }\n return undefined;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"convertToAsyncFunction\";\n var errorCodes = [ts.Diagnostics.This_may_be_converted_to_an_async_function.code];\n var codeActionSucceeded = true;\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n codeActionSucceeded = true;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return convertToAsyncFunction(t, context.sourceFile, context.span.start, context.program.getTypeChecker()); });\n return codeActionSucceeded ? [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_to_async_function, fixId, ts.Diagnostics.Convert_all_to_async_functions)] : [];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, err) { return convertToAsyncFunction(changes, err.file, err.start, context.program.getTypeChecker()); }); },\n });\n var SynthBindingNameKind;\n (function (SynthBindingNameKind) {\n SynthBindingNameKind[SynthBindingNameKind[\"Identifier\"] = 0] = \"Identifier\";\n SynthBindingNameKind[SynthBindingNameKind[\"BindingPattern\"] = 1] = \"BindingPattern\";\n })(SynthBindingNameKind || (SynthBindingNameKind = {}));\n function convertToAsyncFunction(changes, sourceFile, position, checker) {\n // get the function declaration - returns a promise\n var tokenAtPosition = ts.getTokenAtPosition(sourceFile, position);\n var functionToConvert;\n // if the parent of a FunctionLikeDeclaration is a variable declaration, the convertToAsync diagnostic will be reported on the variable name\n if (ts.isIdentifier(tokenAtPosition) && ts.isVariableDeclaration(tokenAtPosition.parent) &&\n tokenAtPosition.parent.initializer && ts.isFunctionLikeDeclaration(tokenAtPosition.parent.initializer)) {\n functionToConvert = tokenAtPosition.parent.initializer;\n }\n else {\n functionToConvert = ts.tryCast(ts.getContainingFunction(ts.getTokenAtPosition(sourceFile, position)), ts.canBeConvertedToAsync);\n }\n if (!functionToConvert) {\n return;\n }\n var synthNamesMap = new ts.Map();\n var isInJavascript = ts.isInJSFile(functionToConvert);\n var setOfExpressionsToReturn = getAllPromiseExpressionsToReturn(functionToConvert, checker);\n var functionToConvertRenamed = renameCollidingVarNames(functionToConvert, checker, synthNamesMap);\n if (!ts.returnsPromise(functionToConvertRenamed, checker)) {\n return;\n }\n var returnStatements = functionToConvertRenamed.body && ts.isBlock(functionToConvertRenamed.body) ? getReturnStatementsWithPromiseHandlers(functionToConvertRenamed.body, checker) : ts.emptyArray;\n var transformer = { checker: checker, synthNamesMap: synthNamesMap, setOfExpressionsToReturn: setOfExpressionsToReturn, isInJSFile: isInJavascript };\n if (!returnStatements.length) {\n return;\n }\n var pos = functionToConvert.modifiers ? functionToConvert.modifiers.end :\n functionToConvert.decorators ? ts.skipTrivia(sourceFile.text, functionToConvert.decorators.end) :\n functionToConvert.getStart(sourceFile);\n var options = functionToConvert.modifiers ? { prefix: \" \" } : { suffix: \" \" };\n changes.insertModifierAt(sourceFile, pos, 130 /* AsyncKeyword */, options);\n var _loop_13 = function (returnStatement) {\n ts.forEachChild(returnStatement, function visit(node) {\n if (ts.isCallExpression(node)) {\n var newNodes = transformExpression(node, transformer);\n changes.replaceNodeWithNodes(sourceFile, returnStatement, newNodes);\n }\n else if (!ts.isFunctionLike(node)) {\n ts.forEachChild(node, visit);\n }\n });\n };\n for (var _i = 0, returnStatements_1 = returnStatements; _i < returnStatements_1.length; _i++) {\n var returnStatement = returnStatements_1[_i];\n _loop_13(returnStatement);\n }\n }\n function getReturnStatementsWithPromiseHandlers(body, checker) {\n var res = [];\n ts.forEachReturnStatement(body, function (ret) {\n if (ts.isReturnStatementWithFixablePromiseHandler(ret, checker))\n res.push(ret);\n });\n return res;\n }\n /*\n Finds all of the expressions of promise type that should not be saved in a variable during the refactor\n */\n function getAllPromiseExpressionsToReturn(func, checker) {\n if (!func.body) {\n return new ts.Set();\n }\n var setOfExpressionsToReturn = new ts.Set();\n ts.forEachChild(func.body, function visit(node) {\n if (isPromiseReturningCallExpression(node, checker, \"then\")) {\n setOfExpressionsToReturn.add(ts.getNodeId(node));\n ts.forEach(node.arguments, visit);\n }\n else if (isPromiseReturningCallExpression(node, checker, \"catch\")) {\n setOfExpressionsToReturn.add(ts.getNodeId(node));\n // if .catch() is the last call in the chain, move leftward in the chain until we hit something else that should be returned\n ts.forEachChild(node, visit);\n }\n else if (isPromiseTypedExpression(node, checker)) {\n setOfExpressionsToReturn.add(ts.getNodeId(node));\n // don't recurse here, since we won't refactor any children or arguments of the expression\n }\n else {\n ts.forEachChild(node, visit);\n }\n });\n return setOfExpressionsToReturn;\n }\n function isPromiseReturningCallExpression(node, checker, name) {\n if (!ts.isCallExpression(node))\n return false;\n var isExpressionOfName = ts.hasPropertyAccessExpressionWithName(node, name);\n var nodeType = isExpressionOfName && checker.getTypeAtLocation(node);\n return !!(nodeType && checker.getPromisedTypeOfPromise(nodeType));\n }\n function isPromiseTypedExpression(node, checker) {\n if (!ts.isExpression(node))\n return false;\n return !!checker.getPromisedTypeOfPromise(checker.getTypeAtLocation(node));\n }\n /*\n Renaming of identifiers may be necessary as the refactor changes scopes -\n This function collects all existing identifier names and names of identifiers that will be created in the refactor.\n It then checks for any collisions and renames them through getSynthesizedDeepClone\n */\n function renameCollidingVarNames(nodeToRename, checker, synthNamesMap) {\n var identsToRenameMap = new ts.Map(); // key is the symbol id\n var collidingSymbolMap = ts.createMultiMap();\n ts.forEachChild(nodeToRename, function visit(node) {\n if (!ts.isIdentifier(node)) {\n ts.forEachChild(node, visit);\n return;\n }\n var symbol = checker.getSymbolAtLocation(node);\n if (symbol) {\n var type = checker.getTypeAtLocation(node);\n // Note - the choice of the last call signature is arbitrary\n var lastCallSignature = getLastCallSignature(type, checker);\n var symbolIdString = ts.getSymbolId(symbol).toString();\n // If the identifier refers to a function, we want to add the new synthesized variable for the declaration. Example:\n // fetch('...').then(response => { ... })\n // will eventually become\n // const response = await fetch('...')\n // so we push an entry for 'response'.\n if (lastCallSignature && !ts.isParameter(node.parent) && !ts.isFunctionLikeDeclaration(node.parent) && !synthNamesMap.has(symbolIdString)) {\n var firstParameter = ts.firstOrUndefined(lastCallSignature.parameters);\n var ident = (firstParameter === null || firstParameter === void 0 ? void 0 : firstParameter.valueDeclaration)\n && ts.isParameter(firstParameter.valueDeclaration)\n && ts.tryCast(firstParameter.valueDeclaration.name, ts.isIdentifier)\n || ts.factory.createUniqueName(\"result\", 16 /* Optimistic */);\n var synthName = getNewNameIfConflict(ident, collidingSymbolMap);\n synthNamesMap.set(symbolIdString, synthName);\n collidingSymbolMap.add(ident.text, symbol);\n }\n // We only care about identifiers that are parameters, variable declarations, or binding elements\n else if (node.parent && (ts.isParameter(node.parent) || ts.isVariableDeclaration(node.parent) || ts.isBindingElement(node.parent))) {\n var originalName = node.text;\n var collidingSymbols = collidingSymbolMap.get(originalName);\n // if the identifier name conflicts with a different identifier that we've already seen\n if (collidingSymbols && collidingSymbols.some(function (prevSymbol) { return prevSymbol !== symbol; })) {\n var newName = getNewNameIfConflict(node, collidingSymbolMap);\n identsToRenameMap.set(symbolIdString, newName.identifier);\n synthNamesMap.set(symbolIdString, newName);\n collidingSymbolMap.add(originalName, symbol);\n }\n else {\n var identifier = ts.getSynthesizedDeepClone(node);\n synthNamesMap.set(symbolIdString, createSynthIdentifier(identifier));\n collidingSymbolMap.add(originalName, symbol);\n }\n }\n }\n });\n return ts.getSynthesizedDeepCloneWithReplacements(nodeToRename, /*includeTrivia*/ true, function (original) {\n if (ts.isBindingElement(original) && ts.isIdentifier(original.name) && ts.isObjectBindingPattern(original.parent)) {\n var symbol = checker.getSymbolAtLocation(original.name);\n var renameInfo = symbol && identsToRenameMap.get(String(ts.getSymbolId(symbol)));\n if (renameInfo && renameInfo.text !== (original.name || original.propertyName).getText()) {\n return ts.factory.createBindingElement(original.dotDotDotToken, original.propertyName || original.name, renameInfo, original.initializer);\n }\n }\n else if (ts.isIdentifier(original)) {\n var symbol = checker.getSymbolAtLocation(original);\n var renameInfo = symbol && identsToRenameMap.get(String(ts.getSymbolId(symbol)));\n if (renameInfo) {\n return ts.factory.createIdentifier(renameInfo.text);\n }\n }\n });\n }\n function getNewNameIfConflict(name, originalNames) {\n var numVarsSameName = (originalNames.get(name.text) || ts.emptyArray).length;\n var identifier = numVarsSameName === 0 ? name : ts.factory.createIdentifier(name.text + \"_\" + numVarsSameName);\n return createSynthIdentifier(identifier);\n }\n function silentFail() {\n codeActionSucceeded = false;\n return ts.emptyArray;\n }\n // dispatch function to recursively build the refactoring\n // should be kept up to date with isFixablePromiseHandler in suggestionDiagnostics.ts\n function transformExpression(node, transformer, prevArgName) {\n if (isPromiseReturningCallExpression(node, transformer.checker, \"then\")) {\n if (node.arguments.length === 0)\n return silentFail();\n return transformThen(node, transformer, prevArgName);\n }\n if (isPromiseReturningCallExpression(node, transformer.checker, \"catch\")) {\n return transformCatch(node, transformer, prevArgName);\n }\n if (ts.isPropertyAccessExpression(node)) {\n return transformExpression(node.expression, transformer, prevArgName);\n }\n var nodeType = transformer.checker.getTypeAtLocation(node);\n if (nodeType && transformer.checker.getPromisedTypeOfPromise(nodeType)) {\n ts.Debug.assertNode(node.original.parent, ts.isPropertyAccessExpression);\n return transformPromiseExpressionOfPropertyAccess(node, transformer, prevArgName);\n }\n return silentFail();\n }\n function transformCatch(node, transformer, prevArgName) {\n var func = ts.singleOrUndefined(node.arguments);\n var argName = func ? getArgBindingName(func, transformer) : undefined;\n var possibleNameForVarDecl;\n // If there is another call in the chain after the .catch() we are transforming, we will need to save the result of both paths (try block and catch block)\n // To do this, we will need to synthesize a variable that we were not aware of while we were adding identifiers to the synthNamesMap\n // We will use the prevArgName and then update the synthNamesMap with a new variable name for the next transformation step\n if (prevArgName && !shouldReturn(node, transformer)) {\n if (isSynthIdentifier(prevArgName)) {\n possibleNameForVarDecl = prevArgName;\n transformer.synthNamesMap.forEach(function (val, key) {\n if (val.identifier.text === prevArgName.identifier.text) {\n var newSynthName = createUniqueSynthName(prevArgName);\n transformer.synthNamesMap.set(key, newSynthName);\n }\n });\n }\n else {\n possibleNameForVarDecl = createSynthIdentifier(ts.factory.createUniqueName(\"result\", 16 /* Optimistic */), prevArgName.types);\n }\n // We are about to write a 'let' variable declaration, but `transformExpression` for both\n // the try block and catch block will assign to this name. Setting this flag indicates\n // that future assignments should be written as `name = value` instead of `const name = value`.\n possibleNameForVarDecl.hasBeenDeclared = true;\n }\n var tryBlock = ts.factory.createBlock(transformExpression(node.expression, transformer, possibleNameForVarDecl));\n var transformationBody = func ? getTransformationBody(func, possibleNameForVarDecl, argName, node, transformer) : ts.emptyArray;\n var catchArg = argName ? isSynthIdentifier(argName) ? argName.identifier.text : argName.bindingPattern : \"e\";\n var catchVariableDeclaration = ts.factory.createVariableDeclaration(catchArg);\n var catchClause = ts.factory.createCatchClause(catchVariableDeclaration, ts.factory.createBlock(transformationBody));\n // In order to avoid an implicit any, we will synthesize a type for the declaration using the unions of the types of both paths (try block and catch block)\n var varDeclList;\n var varDeclIdentifier;\n if (possibleNameForVarDecl && !shouldReturn(node, transformer)) {\n varDeclIdentifier = ts.getSynthesizedDeepClone(possibleNameForVarDecl.identifier);\n var typeArray = possibleNameForVarDecl.types;\n var unionType = transformer.checker.getUnionType(typeArray, 2 /* Subtype */);\n var unionTypeNode = transformer.isInJSFile ? undefined : transformer.checker.typeToTypeNode(unionType, /*enclosingDeclaration*/ undefined, /*flags*/ undefined);\n var varDecl = [ts.factory.createVariableDeclaration(varDeclIdentifier, /*exclamationToken*/ undefined, unionTypeNode)];\n varDeclList = ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList(varDecl, 1 /* Let */));\n }\n var tryStatement = ts.factory.createTryStatement(tryBlock, catchClause, /*finallyBlock*/ undefined);\n var destructuredResult = prevArgName && varDeclIdentifier && isSynthBindingPattern(prevArgName)\n && ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(ts.getSynthesizedDeepClone(prevArgName.bindingPattern), /*exclamationToken*/ undefined, /*type*/ undefined, varDeclIdentifier)], 2 /* Const */));\n return ts.compact([varDeclList, tryStatement, destructuredResult]);\n }\n function createUniqueSynthName(prevArgName) {\n var renamedPrevArg = ts.factory.createUniqueName(prevArgName.identifier.text, 16 /* Optimistic */);\n return createSynthIdentifier(renamedPrevArg);\n }\n function transformThen(node, transformer, prevArgName) {\n var _a = node.arguments, onFulfilled = _a[0], onRejected = _a[1];\n var onFulfilledArgumentName = getArgBindingName(onFulfilled, transformer);\n var transformationBody = getTransformationBody(onFulfilled, prevArgName, onFulfilledArgumentName, node, transformer);\n if (onRejected) {\n var onRejectedArgumentName = getArgBindingName(onRejected, transformer);\n var tryBlock = ts.factory.createBlock(transformExpression(node.expression, transformer, onFulfilledArgumentName).concat(transformationBody));\n var transformationBody2 = getTransformationBody(onRejected, prevArgName, onRejectedArgumentName, node, transformer);\n var catchArg = onRejectedArgumentName ? isSynthIdentifier(onRejectedArgumentName) ? onRejectedArgumentName.identifier.text : onRejectedArgumentName.bindingPattern : \"e\";\n var catchVariableDeclaration = ts.factory.createVariableDeclaration(catchArg);\n var catchClause = ts.factory.createCatchClause(catchVariableDeclaration, ts.factory.createBlock(transformationBody2));\n return [ts.factory.createTryStatement(tryBlock, catchClause, /* finallyBlock */ undefined)];\n }\n return transformExpression(node.expression, transformer, onFulfilledArgumentName).concat(transformationBody);\n }\n /**\n * Transforms the 'x' part of `x.then(...)`, or the 'y()' part of `y().catch(...)`, where 'x' and 'y()' are Promises.\n */\n function transformPromiseExpressionOfPropertyAccess(node, transformer, prevArgName) {\n if (shouldReturn(node, transformer)) {\n return [ts.factory.createReturnStatement(ts.getSynthesizedDeepClone(node))];\n }\n return createVariableOrAssignmentOrExpressionStatement(prevArgName, ts.factory.createAwaitExpression(node), /*typeAnnotation*/ undefined);\n }\n function createVariableOrAssignmentOrExpressionStatement(variableName, rightHandSide, typeAnnotation) {\n if (!variableName || isEmptyBindingName(variableName)) {\n // if there's no argName to assign to, there still might be side effects\n return [ts.factory.createExpressionStatement(rightHandSide)];\n }\n if (isSynthIdentifier(variableName) && variableName.hasBeenDeclared) {\n // if the variable has already been declared, we don't need \"let\" or \"const\"\n return [ts.factory.createExpressionStatement(ts.factory.createAssignment(ts.getSynthesizedDeepClone(variableName.identifier), rightHandSide))];\n }\n return [\n ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([\n ts.factory.createVariableDeclaration(ts.getSynthesizedDeepClone(getNode(variableName)), \n /*exclamationToken*/ undefined, typeAnnotation, rightHandSide)\n ], 2 /* Const */))\n ];\n }\n function maybeAnnotateAndReturn(expressionToReturn, typeAnnotation) {\n if (typeAnnotation && expressionToReturn) {\n var name = ts.factory.createUniqueName(\"result\", 16 /* Optimistic */);\n return __spreadArray(__spreadArray([], createVariableOrAssignmentOrExpressionStatement(createSynthIdentifier(name), expressionToReturn, typeAnnotation), true), [\n ts.factory.createReturnStatement(name)\n ], false);\n }\n return [ts.factory.createReturnStatement(expressionToReturn)];\n }\n // should be kept up to date with isFixablePromiseArgument in suggestionDiagnostics.ts\n function getTransformationBody(func, prevArgName, argName, parent, transformer) {\n var _a, _b, _c, _d, _e;\n switch (func.kind) {\n case 104 /* NullKeyword */:\n // do not produce a transformed statement for a null argument\n break;\n case 204 /* PropertyAccessExpression */:\n case 79 /* Identifier */: // identifier includes undefined\n if (!argName) {\n // undefined was argument passed to promise handler\n break;\n }\n var synthCall = ts.factory.createCallExpression(ts.getSynthesizedDeepClone(func), /*typeArguments*/ undefined, isSynthIdentifier(argName) ? [argName.identifier] : []);\n if (shouldReturn(parent, transformer)) {\n return maybeAnnotateAndReturn(synthCall, (_a = parent.typeArguments) === null || _a === void 0 ? void 0 : _a[0]);\n }\n var type = transformer.checker.getTypeAtLocation(func);\n var callSignatures = transformer.checker.getSignaturesOfType(type, 0 /* Call */);\n if (!callSignatures.length) {\n // if identifier in handler has no call signatures, it's invalid\n return silentFail();\n }\n var returnType = callSignatures[0].getReturnType();\n var varDeclOrAssignment = createVariableOrAssignmentOrExpressionStatement(prevArgName, ts.factory.createAwaitExpression(synthCall), (_b = parent.typeArguments) === null || _b === void 0 ? void 0 : _b[0]);\n if (prevArgName) {\n prevArgName.types.push(returnType);\n }\n return varDeclOrAssignment;\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */: {\n var funcBody = func.body;\n var returnType_1 = (_c = getLastCallSignature(transformer.checker.getTypeAtLocation(func), transformer.checker)) === null || _c === void 0 ? void 0 : _c.getReturnType();\n // Arrow functions with block bodies { } will enter this control flow\n if (ts.isBlock(funcBody)) {\n var refactoredStmts = [];\n var seenReturnStatement = false;\n for (var _i = 0, _f = funcBody.statements; _i < _f.length; _i++) {\n var statement = _f[_i];\n if (ts.isReturnStatement(statement)) {\n seenReturnStatement = true;\n if (ts.isReturnStatementWithFixablePromiseHandler(statement, transformer.checker)) {\n refactoredStmts = refactoredStmts.concat(getInnerTransformationBody(transformer, [statement], prevArgName));\n }\n else {\n var possiblyAwaitedRightHandSide = returnType_1 && statement.expression ? getPossiblyAwaitedRightHandSide(transformer.checker, returnType_1, statement.expression) : statement.expression;\n refactoredStmts.push.apply(refactoredStmts, maybeAnnotateAndReturn(possiblyAwaitedRightHandSide, (_d = parent.typeArguments) === null || _d === void 0 ? void 0 : _d[0]));\n }\n }\n else {\n refactoredStmts.push(statement);\n }\n }\n return shouldReturn(parent, transformer)\n ? refactoredStmts.map(function (s) { return ts.getSynthesizedDeepClone(s); })\n : removeReturns(refactoredStmts, prevArgName, transformer, seenReturnStatement);\n }\n else {\n var innerRetStmts = ts.isFixablePromiseHandler(funcBody, transformer.checker) ? [ts.factory.createReturnStatement(funcBody)] : ts.emptyArray;\n var innerCbBody = getInnerTransformationBody(transformer, innerRetStmts, prevArgName);\n if (innerCbBody.length > 0) {\n return innerCbBody;\n }\n if (returnType_1) {\n var possiblyAwaitedRightHandSide = getPossiblyAwaitedRightHandSide(transformer.checker, returnType_1, funcBody);\n if (!shouldReturn(parent, transformer)) {\n var transformedStatement = createVariableOrAssignmentOrExpressionStatement(prevArgName, possiblyAwaitedRightHandSide, /*typeAnnotation*/ undefined);\n if (prevArgName) {\n prevArgName.types.push(returnType_1);\n }\n return transformedStatement;\n }\n else {\n return maybeAnnotateAndReturn(possiblyAwaitedRightHandSide, (_e = parent.typeArguments) === null || _e === void 0 ? void 0 : _e[0]);\n }\n }\n else {\n return silentFail();\n }\n }\n }\n default:\n // If no cases apply, we've found a transformation body we don't know how to handle, so the refactoring should no-op to avoid deleting code.\n return silentFail();\n }\n return ts.emptyArray;\n }\n function getPossiblyAwaitedRightHandSide(checker, type, expr) {\n var rightHandSide = ts.getSynthesizedDeepClone(expr);\n return !!checker.getPromisedTypeOfPromise(type) ? ts.factory.createAwaitExpression(rightHandSide) : rightHandSide;\n }\n function getLastCallSignature(type, checker) {\n var callSignatures = checker.getSignaturesOfType(type, 0 /* Call */);\n return ts.lastOrUndefined(callSignatures);\n }\n function removeReturns(stmts, prevArgName, transformer, seenReturnStatement) {\n var ret = [];\n for (var _i = 0, stmts_1 = stmts; _i < stmts_1.length; _i++) {\n var stmt = stmts_1[_i];\n if (ts.isReturnStatement(stmt)) {\n if (stmt.expression) {\n var possiblyAwaitedExpression = isPromiseTypedExpression(stmt.expression, transformer.checker) ? ts.factory.createAwaitExpression(stmt.expression) : stmt.expression;\n if (prevArgName === undefined) {\n ret.push(ts.factory.createExpressionStatement(possiblyAwaitedExpression));\n }\n else {\n ret.push(ts.factory.createVariableStatement(/*modifiers*/ undefined, (ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(getNode(prevArgName), /*exclamationToken*/ undefined, /*type*/ undefined, possiblyAwaitedExpression)], 2 /* Const */))));\n }\n }\n }\n else {\n ret.push(ts.getSynthesizedDeepClone(stmt));\n }\n }\n // if block has no return statement, need to define prevArgName as undefined to prevent undeclared variables\n if (!seenReturnStatement && prevArgName !== undefined) {\n ret.push(ts.factory.createVariableStatement(/*modifiers*/ undefined, (ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(getNode(prevArgName), /*exclamationToken*/ undefined, /*type*/ undefined, ts.factory.createIdentifier(\"undefined\"))], 2 /* Const */))));\n }\n return ret;\n }\n function getInnerTransformationBody(transformer, innerRetStmts, prevArgName) {\n var innerCbBody = [];\n for (var _i = 0, innerRetStmts_1 = innerRetStmts; _i < innerRetStmts_1.length; _i++) {\n var stmt = innerRetStmts_1[_i];\n ts.forEachChild(stmt, function visit(node) {\n if (ts.isCallExpression(node)) {\n var temp = transformExpression(node, transformer, prevArgName);\n innerCbBody = innerCbBody.concat(temp);\n if (innerCbBody.length > 0) {\n return;\n }\n }\n else if (!ts.isFunctionLike(node)) {\n ts.forEachChild(node, visit);\n }\n });\n }\n return innerCbBody;\n }\n function getArgBindingName(funcNode, transformer) {\n var types = [];\n var name;\n if (ts.isFunctionLikeDeclaration(funcNode)) {\n if (funcNode.parameters.length > 0) {\n var param = funcNode.parameters[0].name;\n name = getMappedBindingNameOrDefault(param);\n }\n }\n else if (ts.isIdentifier(funcNode)) {\n name = getMapEntryOrDefault(funcNode);\n }\n else if (ts.isPropertyAccessExpression(funcNode) && ts.isIdentifier(funcNode.name)) {\n name = getMapEntryOrDefault(funcNode.name);\n }\n // return undefined argName when arg is null or undefined\n // eslint-disable-next-line no-in-operator\n if (!name || \"identifier\" in name && name.identifier.text === \"undefined\") {\n return undefined;\n }\n return name;\n function getMappedBindingNameOrDefault(bindingName) {\n if (ts.isIdentifier(bindingName))\n return getMapEntryOrDefault(bindingName);\n var elements = ts.flatMap(bindingName.elements, function (element) {\n if (ts.isOmittedExpression(element))\n return [];\n return [getMappedBindingNameOrDefault(element.name)];\n });\n return createSynthBindingPattern(bindingName, elements);\n }\n function getMapEntryOrDefault(identifier) {\n var originalNode = getOriginalNode(identifier);\n var symbol = getSymbol(originalNode);\n if (!symbol) {\n return createSynthIdentifier(identifier, types);\n }\n var mapEntry = transformer.synthNamesMap.get(ts.getSymbolId(symbol).toString());\n return mapEntry || createSynthIdentifier(identifier, types);\n }\n function getSymbol(node) {\n return node.symbol ? node.symbol : transformer.checker.getSymbolAtLocation(node);\n }\n function getOriginalNode(node) {\n return node.original ? node.original : node;\n }\n }\n function isEmptyBindingName(bindingName) {\n if (!bindingName) {\n return true;\n }\n if (isSynthIdentifier(bindingName)) {\n return !bindingName.identifier.text;\n }\n return ts.every(bindingName.elements, isEmptyBindingName);\n }\n function getNode(bindingName) {\n return isSynthIdentifier(bindingName) ? bindingName.identifier : bindingName.bindingPattern;\n }\n function createSynthIdentifier(identifier, types) {\n if (types === void 0) { types = []; }\n return { kind: 0 /* Identifier */, identifier: identifier, types: types, hasBeenDeclared: false };\n }\n function createSynthBindingPattern(bindingPattern, elements, types) {\n if (elements === void 0) { elements = ts.emptyArray; }\n if (types === void 0) { types = []; }\n return { kind: 1 /* BindingPattern */, bindingPattern: bindingPattern, elements: elements, types: types };\n }\n function isSynthIdentifier(bindingName) {\n return bindingName.kind === 0 /* Identifier */;\n }\n function isSynthBindingPattern(bindingName) {\n return bindingName.kind === 1 /* BindingPattern */;\n }\n function shouldReturn(expression, transformer) {\n return !!expression.original && transformer.setOfExpressionsToReturn.has(ts.getNodeId(expression.original));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n codefix.registerCodeFix({\n errorCodes: [ts.Diagnostics.File_is_a_CommonJS_module_it_may_be_converted_to_an_ES6_module.code],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, preferences = context.preferences;\n var changes = ts.textChanges.ChangeTracker.with(context, function (changes) {\n var moduleExportsChangedToDefault = convertFileToEs6Module(sourceFile, program.getTypeChecker(), changes, program.getCompilerOptions().target, ts.getQuotePreference(sourceFile, preferences));\n if (moduleExportsChangedToDefault) {\n for (var _i = 0, _a = program.getSourceFiles(); _i < _a.length; _i++) {\n var importingFile = _a[_i];\n fixImportOfModuleExports(importingFile, sourceFile, changes, ts.getQuotePreference(importingFile, preferences));\n }\n }\n });\n // No support for fix-all since this applies to the whole file at once anyway.\n return [codefix.createCodeFixActionWithoutFixAll(\"convertToEs6Module\", changes, ts.Diagnostics.Convert_to_ES6_module)];\n },\n });\n function fixImportOfModuleExports(importingFile, exportingFile, changes, quotePreference) {\n for (var _i = 0, _a = importingFile.imports; _i < _a.length; _i++) {\n var moduleSpecifier = _a[_i];\n var imported = ts.getResolvedModule(importingFile, moduleSpecifier.text);\n if (!imported || imported.resolvedFileName !== exportingFile.fileName) {\n continue;\n }\n var importNode = ts.importFromModuleSpecifier(moduleSpecifier);\n switch (importNode.kind) {\n case 263 /* ImportEqualsDeclaration */:\n changes.replaceNode(importingFile, importNode, ts.makeImport(importNode.name, /*namedImports*/ undefined, moduleSpecifier, quotePreference));\n break;\n case 206 /* CallExpression */:\n if (ts.isRequireCall(importNode, /*checkArgumentIsStringLiteralLike*/ false)) {\n changes.replaceNode(importingFile, importNode, ts.factory.createPropertyAccessExpression(ts.getSynthesizedDeepClone(importNode), \"default\"));\n }\n break;\n }\n }\n }\n /** @returns Whether we converted a `module.exports =` to a default export. */\n function convertFileToEs6Module(sourceFile, checker, changes, target, quotePreference) {\n var identifiers = { original: collectFreeIdentifiers(sourceFile), additional: new ts.Set() };\n var exports = collectExportRenames(sourceFile, checker, identifiers);\n convertExportsAccesses(sourceFile, exports, changes);\n var moduleExportsChangedToDefault = false;\n var useSitesToUnqualify;\n // Process variable statements first to collect use sites that need to be updated inside other transformations\n for (var _i = 0, _a = ts.filter(sourceFile.statements, ts.isVariableStatement); _i < _a.length; _i++) {\n var statement = _a[_i];\n var newUseSites = convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);\n if (newUseSites) {\n ts.copyEntries(newUseSites, useSitesToUnqualify !== null && useSitesToUnqualify !== void 0 ? useSitesToUnqualify : (useSitesToUnqualify = new ts.Map()));\n }\n }\n // `convertStatement` will delete entries from `useSitesToUnqualify` when containing statements are replaced\n for (var _b = 0, _c = ts.filter(sourceFile.statements, function (s) { return !ts.isVariableStatement(s); }); _b < _c.length; _b++) {\n var statement = _c[_b];\n var moduleExportsChanged = convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference);\n moduleExportsChangedToDefault = moduleExportsChangedToDefault || moduleExportsChanged;\n }\n // Remaining use sites can be changed directly\n useSitesToUnqualify === null || useSitesToUnqualify === void 0 ? void 0 : useSitesToUnqualify.forEach(function (replacement, original) {\n changes.replaceNode(sourceFile, original, replacement);\n });\n return moduleExportsChangedToDefault;\n }\n function collectExportRenames(sourceFile, checker, identifiers) {\n var res = new ts.Map();\n forEachExportReference(sourceFile, function (node) {\n var _a = node.name, text = _a.text, originalKeywordKind = _a.originalKeywordKind;\n if (!res.has(text) && (originalKeywordKind !== undefined && ts.isNonContextualKeyword(originalKeywordKind)\n || checker.resolveName(text, node, 111551 /* Value */, /*excludeGlobals*/ true))) {\n // Unconditionally add an underscore in case `text` is a keyword.\n res.set(text, makeUniqueName(\"_\" + text, identifiers));\n }\n });\n return res;\n }\n function convertExportsAccesses(sourceFile, exports, changes) {\n forEachExportReference(sourceFile, function (node, isAssignmentLhs) {\n if (isAssignmentLhs) {\n return;\n }\n var text = node.name.text;\n changes.replaceNode(sourceFile, node, ts.factory.createIdentifier(exports.get(text) || text));\n });\n }\n function forEachExportReference(sourceFile, cb) {\n sourceFile.forEachChild(function recur(node) {\n if (ts.isPropertyAccessExpression(node) && ts.isExportsOrModuleExportsOrAlias(sourceFile, node.expression) && ts.isIdentifier(node.name)) {\n var parent = node.parent;\n cb(node, ts.isBinaryExpression(parent) && parent.left === node && parent.operatorToken.kind === 63 /* EqualsToken */);\n }\n node.forEachChild(recur);\n });\n }\n function convertStatement(sourceFile, statement, checker, changes, identifiers, target, exports, useSitesToUnqualify, quotePreference) {\n switch (statement.kind) {\n case 235 /* VariableStatement */:\n convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference);\n return false;\n case 236 /* ExpressionStatement */: {\n var expression = statement.expression;\n switch (expression.kind) {\n case 206 /* CallExpression */: {\n if (ts.isRequireCall(expression, /*checkArgumentIsStringLiteralLike*/ true)) {\n // For side-effecting require() call, just make a side-effecting import.\n changes.replaceNode(sourceFile, statement, ts.makeImport(/*name*/ undefined, /*namedImports*/ undefined, expression.arguments[0], quotePreference));\n }\n return false;\n }\n case 219 /* BinaryExpression */: {\n var operatorToken = expression.operatorToken;\n return operatorToken.kind === 63 /* EqualsToken */ && convertAssignment(sourceFile, checker, expression, changes, exports, useSitesToUnqualify);\n }\n }\n }\n // falls through\n default:\n return false;\n }\n }\n function convertVariableStatement(sourceFile, statement, changes, checker, identifiers, target, quotePreference) {\n var declarationList = statement.declarationList;\n var foundImport = false;\n var converted = ts.map(declarationList.declarations, function (decl) {\n var name = decl.name, initializer = decl.initializer;\n if (initializer) {\n if (ts.isExportsOrModuleExportsOrAlias(sourceFile, initializer)) {\n // `const alias = module.exports;` can be removed.\n foundImport = true;\n return convertedImports([]);\n }\n else if (ts.isRequireCall(initializer, /*checkArgumentIsStringLiteralLike*/ true)) {\n foundImport = true;\n return convertSingleImport(name, initializer.arguments[0], checker, identifiers, target, quotePreference);\n }\n else if (ts.isPropertyAccessExpression(initializer) && ts.isRequireCall(initializer.expression, /*checkArgumentIsStringLiteralLike*/ true)) {\n foundImport = true;\n return convertPropertyAccessImport(name, initializer.name.text, initializer.expression.arguments[0], identifiers, quotePreference);\n }\n }\n // Move it out to its own variable statement. (This will not be used if `!foundImport`)\n return convertedImports([ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([decl], declarationList.flags))]);\n });\n if (foundImport) {\n // useNonAdjustedEndPosition to ensure we don't eat the newline after the statement.\n changes.replaceNodeWithNodes(sourceFile, statement, ts.flatMap(converted, function (c) { return c.newImports; }));\n var combinedUseSites_1;\n ts.forEach(converted, function (c) {\n if (c.useSitesToUnqualify) {\n ts.copyEntries(c.useSitesToUnqualify, combinedUseSites_1 !== null && combinedUseSites_1 !== void 0 ? combinedUseSites_1 : (combinedUseSites_1 = new ts.Map()));\n }\n });\n return combinedUseSites_1;\n }\n }\n /** Converts `const name = require(\"moduleSpecifier\").propertyName` */\n function convertPropertyAccessImport(name, propertyName, moduleSpecifier, identifiers, quotePreference) {\n switch (name.kind) {\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */: {\n // `const [a, b] = require(\"c\").d` --> `import { d } from \"c\"; const [a, b] = d;`\n var tmp = makeUniqueName(propertyName, identifiers);\n return convertedImports([\n makeSingleImport(tmp, propertyName, moduleSpecifier, quotePreference),\n makeConst(/*modifiers*/ undefined, name, ts.factory.createIdentifier(tmp)),\n ]);\n }\n case 79 /* Identifier */:\n // `const a = require(\"b\").c` --> `import { c as a } from \"./b\";\n return convertedImports([makeSingleImport(name.text, propertyName, moduleSpecifier, quotePreference)]);\n default:\n return ts.Debug.assertNever(name, \"Convert to ES6 module got invalid syntax form \" + name.kind);\n }\n }\n function convertAssignment(sourceFile, checker, assignment, changes, exports, useSitesToUnqualify) {\n var left = assignment.left, right = assignment.right;\n if (!ts.isPropertyAccessExpression(left)) {\n return false;\n }\n if (ts.isExportsOrModuleExportsOrAlias(sourceFile, left)) {\n if (ts.isExportsOrModuleExportsOrAlias(sourceFile, right)) {\n // `const alias = module.exports;` or `module.exports = alias;` can be removed.\n changes.delete(sourceFile, assignment.parent);\n }\n else {\n var replacement = ts.isObjectLiteralExpression(right) ? tryChangeModuleExportsObject(right, useSitesToUnqualify)\n : ts.isRequireCall(right, /*checkArgumentIsStringLiteralLike*/ true) ? convertReExportAll(right.arguments[0], checker)\n : undefined;\n if (replacement) {\n changes.replaceNodeWithNodes(sourceFile, assignment.parent, replacement[0]);\n return replacement[1];\n }\n else {\n changes.replaceRangeWithText(sourceFile, ts.createRange(left.getStart(sourceFile), right.pos), \"export default\");\n return true;\n }\n }\n }\n else if (ts.isExportsOrModuleExportsOrAlias(sourceFile, left.expression)) {\n convertNamedExport(sourceFile, assignment, changes, exports);\n }\n return false;\n }\n /**\n * Convert `module.exports = { ... }` to individual exports..\n * We can't always do this if the module has interesting members -- then it will be a default export instead.\n */\n function tryChangeModuleExportsObject(object, useSitesToUnqualify) {\n var statements = ts.mapAllOrFail(object.properties, function (prop) {\n switch (prop.kind) {\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // TODO: Maybe we should handle this? See fourslash test `refactorConvertToEs6Module_export_object_shorthand.ts`.\n // falls through\n case 292 /* ShorthandPropertyAssignment */:\n case 293 /* SpreadAssignment */:\n return undefined;\n case 291 /* PropertyAssignment */:\n return !ts.isIdentifier(prop.name) ? undefined : convertExportsDotXEquals_replaceNode(prop.name.text, prop.initializer, useSitesToUnqualify);\n case 167 /* MethodDeclaration */:\n return !ts.isIdentifier(prop.name) ? undefined : functionExpressionToDeclaration(prop.name.text, [ts.factory.createToken(93 /* ExportKeyword */)], prop, useSitesToUnqualify);\n default:\n ts.Debug.assertNever(prop, \"Convert to ES6 got invalid prop kind \" + prop.kind);\n }\n });\n return statements && [statements, false];\n }\n function convertNamedExport(sourceFile, assignment, changes, exports) {\n // If \"originalKeywordKind\" was set, this is e.g. `exports.\n var text = assignment.left.name.text;\n var rename = exports.get(text);\n if (rename !== undefined) {\n /*\n const _class = 0;\n export { _class as class };\n */\n var newNodes = [\n makeConst(/*modifiers*/ undefined, rename, assignment.right),\n makeExportDeclaration([ts.factory.createExportSpecifier(rename, text)]),\n ];\n changes.replaceNodeWithNodes(sourceFile, assignment.parent, newNodes);\n }\n else {\n convertExportsPropertyAssignment(assignment, sourceFile, changes);\n }\n }\n function convertReExportAll(reExported, checker) {\n // `module.exports = require(\"x\");` ==> `export * from \"x\"; export { default } from \"x\";`\n var moduleSpecifier = reExported.text;\n var moduleSymbol = checker.getSymbolAtLocation(reExported);\n var exports = moduleSymbol ? moduleSymbol.exports : ts.emptyMap;\n return exports.has(\"export=\" /* ExportEquals */) ? [[reExportDefault(moduleSpecifier)], true] :\n !exports.has(\"default\" /* Default */) ? [[reExportStar(moduleSpecifier)], false] :\n // If there's some non-default export, must include both `export *` and `export default`.\n exports.size > 1 ? [[reExportStar(moduleSpecifier), reExportDefault(moduleSpecifier)], true] : [[reExportDefault(moduleSpecifier)], true];\n }\n function reExportStar(moduleSpecifier) {\n return makeExportDeclaration(/*exportClause*/ undefined, moduleSpecifier);\n }\n function reExportDefault(moduleSpecifier) {\n return makeExportDeclaration([ts.factory.createExportSpecifier(/*propertyName*/ undefined, \"default\")], moduleSpecifier);\n }\n function convertExportsPropertyAssignment(_a, sourceFile, changes) {\n var left = _a.left, right = _a.right, parent = _a.parent;\n var name = left.name.text;\n if ((ts.isFunctionExpression(right) || ts.isArrowFunction(right) || ts.isClassExpression(right)) && (!right.name || right.name.text === name)) {\n // `exports.f = function() {}` -> `export function f() {}` -- Replace `exports.f = ` with `export `, and insert the name after `function`.\n changes.replaceRange(sourceFile, { pos: left.getStart(sourceFile), end: right.getStart(sourceFile) }, ts.factory.createToken(93 /* ExportKeyword */), { suffix: \" \" });\n if (!right.name)\n changes.insertName(sourceFile, right, name);\n var semi = ts.findChildOfKind(parent, 26 /* SemicolonToken */, sourceFile);\n if (semi)\n changes.delete(sourceFile, semi);\n }\n else {\n // `exports.f = function g() {}` -> `export const f = function g() {}` -- just replace `exports.` with `export const `\n changes.replaceNodeRangeWithNodes(sourceFile, left.expression, ts.findChildOfKind(left, 24 /* DotToken */, sourceFile), [ts.factory.createToken(93 /* ExportKeyword */), ts.factory.createToken(85 /* ConstKeyword */)], { joiner: \" \", suffix: \" \" });\n }\n }\n // TODO: GH#22492 this will cause an error if a change has been made inside the body of the node.\n function convertExportsDotXEquals_replaceNode(name, exported, useSitesToUnqualify) {\n var modifiers = [ts.factory.createToken(93 /* ExportKeyword */)];\n switch (exported.kind) {\n case 211 /* FunctionExpression */: {\n var expressionName = exported.name;\n if (expressionName && expressionName.text !== name) {\n // `exports.f = function g() {}` -> `export const f = function g() {}`\n return exportConst();\n }\n }\n // falls through\n case 212 /* ArrowFunction */:\n // `exports.f = function() {}` --> `export function f() {}`\n return functionExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify);\n case 224 /* ClassExpression */:\n // `exports.C = class {}` --> `export class C {}`\n return classExpressionToDeclaration(name, modifiers, exported, useSitesToUnqualify);\n default:\n return exportConst();\n }\n function exportConst() {\n // `exports.x = 0;` --> `export const x = 0;`\n return makeConst(modifiers, ts.factory.createIdentifier(name), replaceImportUseSites(exported, useSitesToUnqualify)); // TODO: GH#18217\n }\n }\n function replaceImportUseSites(nodeOrNodes, useSitesToUnqualify) {\n if (!useSitesToUnqualify || !ts.some(ts.arrayFrom(useSitesToUnqualify.keys()), function (original) { return ts.rangeContainsRange(nodeOrNodes, original); })) {\n return nodeOrNodes;\n }\n return ts.isArray(nodeOrNodes)\n ? ts.getSynthesizedDeepClonesWithReplacements(nodeOrNodes, /*includeTrivia*/ true, replaceNode)\n : ts.getSynthesizedDeepCloneWithReplacements(nodeOrNodes, /*includeTrivia*/ true, replaceNode);\n function replaceNode(original) {\n // We are replacing `mod.SomeExport` wih `SomeExport`, so we only need to look at PropertyAccessExpressions\n if (original.kind === 204 /* PropertyAccessExpression */) {\n var replacement = useSitesToUnqualify.get(original);\n // Remove entry from `useSitesToUnqualify` so the refactor knows it's taken care of by the parent statement we're replacing\n useSitesToUnqualify.delete(original);\n return replacement;\n }\n }\n }\n /**\n * Converts `const <> = require(\"x\");`.\n * Returns nodes that will replace the variable declaration for the commonjs import.\n * May also make use `changes` to remove qualifiers at the use sites of imports, to change `mod.x` to `x`.\n */\n function convertSingleImport(name, moduleSpecifier, checker, identifiers, target, quotePreference) {\n switch (name.kind) {\n case 199 /* ObjectBindingPattern */: {\n var importSpecifiers = ts.mapAllOrFail(name.elements, function (e) {\n return e.dotDotDotToken || e.initializer || e.propertyName && !ts.isIdentifier(e.propertyName) || !ts.isIdentifier(e.name)\n ? undefined\n // (TODO: GH#18217)\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-type-assertion\n : makeImportSpecifier(e.propertyName && e.propertyName.text, e.name.text);\n });\n if (importSpecifiers) {\n return convertedImports([ts.makeImport(/*name*/ undefined, importSpecifiers, moduleSpecifier, quotePreference)]);\n }\n }\n // falls through -- object destructuring has an interesting pattern and must be a variable declaration\n case 200 /* ArrayBindingPattern */: {\n /*\n import x from \"x\";\n const [a, b, c] = x;\n */\n var tmp = makeUniqueName(codefix.moduleSpecifierToValidIdentifier(moduleSpecifier.text, target), identifiers);\n return convertedImports([\n ts.makeImport(ts.factory.createIdentifier(tmp), /*namedImports*/ undefined, moduleSpecifier, quotePreference),\n makeConst(/*modifiers*/ undefined, ts.getSynthesizedDeepClone(name), ts.factory.createIdentifier(tmp)),\n ]);\n }\n case 79 /* Identifier */:\n return convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference);\n default:\n return ts.Debug.assertNever(name, \"Convert to ES6 module got invalid name kind \" + name.kind);\n }\n }\n /**\n * Convert `import x = require(\"x\").`\n * Also:\n * - Convert `x.default()` to `x()` to handle ES6 default export\n * - Converts uses like `x.y()` to `y()` and uses a named import.\n */\n function convertSingleIdentifierImport(name, moduleSpecifier, checker, identifiers, quotePreference) {\n var nameSymbol = checker.getSymbolAtLocation(name);\n // Maps from module property name to name actually used. (The same if there isn't shadowing.)\n var namedBindingsNames = new ts.Map();\n // True if there is some non-property use like `x()` or `f(x)`.\n var needDefaultImport = false;\n var useSitesToUnqualify;\n for (var _i = 0, _a = identifiers.original.get(name.text); _i < _a.length; _i++) {\n var use = _a[_i];\n if (checker.getSymbolAtLocation(use) !== nameSymbol || use === name) {\n // This was a use of a different symbol with the same name, due to shadowing. Ignore.\n continue;\n }\n var parent = use.parent;\n if (ts.isPropertyAccessExpression(parent)) {\n var propertyName = parent.name.text;\n if (propertyName === \"default\") {\n needDefaultImport = true;\n var importDefaultName = use.getText();\n (useSitesToUnqualify !== null && useSitesToUnqualify !== void 0 ? useSitesToUnqualify : (useSitesToUnqualify = new ts.Map())).set(parent, ts.factory.createIdentifier(importDefaultName));\n }\n else {\n ts.Debug.assert(parent.expression === use, \"Didn't expect expression === use\"); // Else shouldn't have been in `collectIdentifiers`\n var idName = namedBindingsNames.get(propertyName);\n if (idName === undefined) {\n idName = makeUniqueName(propertyName, identifiers);\n namedBindingsNames.set(propertyName, idName);\n }\n (useSitesToUnqualify !== null && useSitesToUnqualify !== void 0 ? useSitesToUnqualify : (useSitesToUnqualify = new ts.Map())).set(parent, ts.factory.createIdentifier(idName));\n }\n }\n else {\n needDefaultImport = true;\n }\n }\n var namedBindings = namedBindingsNames.size === 0 ? undefined : ts.arrayFrom(ts.mapIterator(namedBindingsNames.entries(), function (_a) {\n var propertyName = _a[0], idName = _a[1];\n return ts.factory.createImportSpecifier(propertyName === idName ? undefined : ts.factory.createIdentifier(propertyName), ts.factory.createIdentifier(idName));\n }));\n if (!namedBindings) {\n // If it was unused, ensure that we at least import *something*.\n needDefaultImport = true;\n }\n return convertedImports([ts.makeImport(needDefaultImport ? ts.getSynthesizedDeepClone(name) : undefined, namedBindings, moduleSpecifier, quotePreference)], useSitesToUnqualify);\n }\n // Identifiers helpers\n function makeUniqueName(name, identifiers) {\n while (identifiers.original.has(name) || identifiers.additional.has(name)) {\n name = \"_\" + name;\n }\n identifiers.additional.add(name);\n return name;\n }\n function collectFreeIdentifiers(file) {\n var map = ts.createMultiMap();\n forEachFreeIdentifier(file, function (id) { return map.add(id.text, id); });\n return map;\n }\n /**\n * A free identifier is an identifier that can be accessed through name lookup as a local variable.\n * In the expression `x.y`, `x` is a free identifier, but `y` is not.\n */\n function forEachFreeIdentifier(node, cb) {\n if (ts.isIdentifier(node) && isFreeIdentifier(node))\n cb(node);\n node.forEachChild(function (child) { return forEachFreeIdentifier(child, cb); });\n }\n function isFreeIdentifier(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 204 /* PropertyAccessExpression */:\n return parent.name !== node;\n case 201 /* BindingElement */:\n return parent.propertyName !== node;\n case 268 /* ImportSpecifier */:\n return parent.propertyName !== node;\n default:\n return true;\n }\n }\n // Node helpers\n function functionExpressionToDeclaration(name, additionalModifiers, fn, useSitesToUnqualify) {\n return ts.factory.createFunctionDeclaration(ts.getSynthesizedDeepClones(fn.decorators), // TODO: GH#19915 Don't think this is even legal.\n ts.concatenate(additionalModifiers, ts.getSynthesizedDeepClones(fn.modifiers)), ts.getSynthesizedDeepClone(fn.asteriskToken), name, ts.getSynthesizedDeepClones(fn.typeParameters), ts.getSynthesizedDeepClones(fn.parameters), ts.getSynthesizedDeepClone(fn.type), ts.factory.converters.convertToFunctionBlock(replaceImportUseSites(fn.body, useSitesToUnqualify)));\n }\n function classExpressionToDeclaration(name, additionalModifiers, cls, useSitesToUnqualify) {\n return ts.factory.createClassDeclaration(ts.getSynthesizedDeepClones(cls.decorators), // TODO: GH#19915 Don't think this is even legal.\n ts.concatenate(additionalModifiers, ts.getSynthesizedDeepClones(cls.modifiers)), name, ts.getSynthesizedDeepClones(cls.typeParameters), ts.getSynthesizedDeepClones(cls.heritageClauses), replaceImportUseSites(cls.members, useSitesToUnqualify));\n }\n function makeSingleImport(localName, propertyName, moduleSpecifier, quotePreference) {\n return propertyName === \"default\"\n ? ts.makeImport(ts.factory.createIdentifier(localName), /*namedImports*/ undefined, moduleSpecifier, quotePreference)\n : ts.makeImport(/*name*/ undefined, [makeImportSpecifier(propertyName, localName)], moduleSpecifier, quotePreference);\n }\n function makeImportSpecifier(propertyName, name) {\n return ts.factory.createImportSpecifier(propertyName !== undefined && propertyName !== name ? ts.factory.createIdentifier(propertyName) : undefined, ts.factory.createIdentifier(name));\n }\n function makeConst(modifiers, name, init) {\n return ts.factory.createVariableStatement(modifiers, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, /*type*/ undefined, init)], 2 /* Const */));\n }\n function makeExportDeclaration(exportSpecifiers, moduleSpecifier) {\n return ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, exportSpecifiers && ts.factory.createNamedExports(exportSpecifiers), moduleSpecifier === undefined ? undefined : ts.factory.createStringLiteral(moduleSpecifier));\n }\n function convertedImports(newImports, useSitesToUnqualify) {\n return {\n newImports: newImports,\n useSitesToUnqualify: useSitesToUnqualify\n };\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"correctQualifiedNameToIndexedAccessType\";\n var errorCodes = [ts.Diagnostics.Cannot_access_0_1_because_0_is_a_type_but_not_a_namespace_Did_you_mean_to_retrieve_the_type_of_the_property_1_in_0_with_0_1.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var qualifiedName = getQualifiedName(context.sourceFile, context.span.start);\n if (!qualifiedName)\n return undefined;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, qualifiedName); });\n var newText = qualifiedName.left.text + \"[\\\"\" + qualifiedName.right.text + \"\\\"]\";\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Rewrite_as_the_indexed_access_type_0, newText], fixId, ts.Diagnostics.Rewrite_all_as_indexed_access_types)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var q = getQualifiedName(diag.file, diag.start);\n if (q) {\n doChange(changes, diag.file, q);\n }\n }); },\n });\n function getQualifiedName(sourceFile, pos) {\n var qualifiedName = ts.findAncestor(ts.getTokenAtPosition(sourceFile, pos), ts.isQualifiedName);\n ts.Debug.assert(!!qualifiedName, \"Expected position to be owned by a qualified name.\");\n return ts.isIdentifier(qualifiedName.left) ? qualifiedName : undefined;\n }\n function doChange(changeTracker, sourceFile, qualifiedName) {\n var rightText = qualifiedName.right.text;\n var replacement = ts.factory.createIndexedAccessTypeNode(ts.factory.createTypeReferenceNode(qualifiedName.left, /*typeArguments*/ undefined), ts.factory.createLiteralTypeNode(ts.factory.createStringLiteral(rightText)));\n changeTracker.replaceNode(sourceFile, qualifiedName, replacement);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodes = [ts.Diagnostics.Re_exporting_a_type_when_the_isolatedModules_flag_is_provided_requires_using_export_type.code];\n var fixId = \"convertToTypeOnlyExport\";\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return fixSingleExportDeclaration(t, getExportSpecifierForDiagnosticSpan(context.span, context.sourceFile), context); });\n if (changes.length) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_to_type_only_export, fixId, ts.Diagnostics.Convert_all_re_exported_types_to_type_only_exports)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var fixedExportDeclarations = new ts.Map();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var exportSpecifier = getExportSpecifierForDiagnosticSpan(diag, context.sourceFile);\n if (exportSpecifier && ts.addToSeen(fixedExportDeclarations, ts.getNodeId(exportSpecifier.parent.parent))) {\n fixSingleExportDeclaration(changes, exportSpecifier, context);\n }\n });\n }\n });\n function getExportSpecifierForDiagnosticSpan(span, sourceFile) {\n return ts.tryCast(ts.getTokenAtPosition(sourceFile, span.start).parent, ts.isExportSpecifier);\n }\n function fixSingleExportDeclaration(changes, exportSpecifier, context) {\n if (!exportSpecifier) {\n return;\n }\n var exportClause = exportSpecifier.parent;\n var exportDeclaration = exportClause.parent;\n var typeExportSpecifiers = getTypeExportSpecifiers(exportSpecifier, context);\n if (typeExportSpecifiers.length === exportClause.elements.length) {\n changes.insertModifierBefore(context.sourceFile, 150 /* TypeKeyword */, exportClause);\n }\n else {\n var valueExportDeclaration = ts.factory.updateExportDeclaration(exportDeclaration, exportDeclaration.decorators, exportDeclaration.modifiers, \n /*isTypeOnly*/ false, ts.factory.updateNamedExports(exportClause, ts.filter(exportClause.elements, function (e) { return !ts.contains(typeExportSpecifiers, e); })), exportDeclaration.moduleSpecifier);\n var typeExportDeclaration = ts.factory.createExportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ true, ts.factory.createNamedExports(typeExportSpecifiers), exportDeclaration.moduleSpecifier);\n changes.replaceNode(context.sourceFile, exportDeclaration, valueExportDeclaration, {\n leadingTriviaOption: ts.textChanges.LeadingTriviaOption.IncludeAll,\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Exclude\n });\n changes.insertNodeAfter(context.sourceFile, exportDeclaration, typeExportDeclaration);\n }\n }\n function getTypeExportSpecifiers(originExportSpecifier, context) {\n var exportClause = originExportSpecifier.parent;\n if (exportClause.elements.length === 1) {\n return exportClause.elements;\n }\n var diagnostics = ts.getDiagnosticsWithinSpan(ts.createTextSpanFromNode(exportClause), context.program.getSemanticDiagnostics(context.sourceFile, context.cancellationToken));\n return ts.filter(exportClause.elements, function (element) {\n var _a;\n return element === originExportSpecifier || ((_a = ts.findDiagnosticForNode(element, diagnostics)) === null || _a === void 0 ? void 0 : _a.code) === errorCodes[0];\n });\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodes = [ts.Diagnostics.This_import_is_never_used_as_a_value_and_must_use_import_type_because_importsNotUsedAsValues_is_set_to_error.code];\n var fixId = \"convertToTypeOnlyImport\";\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) {\n var importDeclaration = getImportDeclarationForDiagnosticSpan(context.span, context.sourceFile);\n fixSingleImportDeclaration(t, importDeclaration, context);\n });\n if (changes.length) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_to_type_only_import, fixId, ts.Diagnostics.Convert_all_imports_not_used_as_a_value_to_type_only_imports)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var importDeclaration = getImportDeclarationForDiagnosticSpan(diag, context.sourceFile);\n fixSingleImportDeclaration(changes, importDeclaration, context);\n });\n }\n });\n function getImportDeclarationForDiagnosticSpan(span, sourceFile) {\n return ts.tryCast(ts.getTokenAtPosition(sourceFile, span.start).parent, ts.isImportDeclaration);\n }\n function fixSingleImportDeclaration(changes, importDeclaration, context) {\n if (!(importDeclaration === null || importDeclaration === void 0 ? void 0 : importDeclaration.importClause)) {\n return;\n }\n var importClause = importDeclaration.importClause;\n // `changes.insertModifierBefore` produces a range that might overlap further changes\n changes.insertText(context.sourceFile, importDeclaration.getStart() + \"import\".length, \" type\");\n // `import type foo, { Bar }` is not allowed, so move `foo` to new declaration\n if (importClause.name && importClause.namedBindings) {\n changes.deleteNodeRangeExcludingEnd(context.sourceFile, importClause.name, importDeclaration.importClause.namedBindings);\n changes.insertNodeBefore(context.sourceFile, importDeclaration, ts.factory.updateImportDeclaration(importDeclaration, \n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createImportClause(\n /*isTypeOnly*/ true, importClause.name, \n /*namedBindings*/ undefined), importDeclaration.moduleSpecifier));\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"convertLiteralTypeToMappedType\";\n var errorCodes = [ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here_Did_you_mean_to_use_1_in_0.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var info = getInfo(sourceFile, span.start);\n if (!info) {\n return undefined;\n }\n var name = info.name, constraint = info.constraint;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, info); });\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Convert_0_to_1_in_0, constraint, name], fixId, ts.Diagnostics.Convert_all_type_literals_to_mapped_type)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, diag.start);\n if (info) {\n doChange(changes, diag.file, info);\n }\n }); }\n });\n function getInfo(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n if (ts.isIdentifier(token)) {\n var propertySignature = ts.cast(token.parent.parent, ts.isPropertySignature);\n var propertyName = token.getText(sourceFile);\n return {\n container: ts.cast(propertySignature.parent, ts.isTypeLiteralNode),\n typeNode: propertySignature.type,\n constraint: propertyName,\n name: propertyName === \"K\" ? \"P\" : \"K\",\n };\n }\n return undefined;\n }\n function doChange(changes, sourceFile, _a) {\n var container = _a.container, typeNode = _a.typeNode, constraint = _a.constraint, name = _a.name;\n changes.replaceNode(sourceFile, container, ts.factory.createMappedTypeNode(/*readonlyToken*/ undefined, ts.factory.createTypeParameterDeclaration(name, ts.factory.createTypeReferenceNode(constraint)), /*nameType*/ undefined, /*questionToken*/ undefined, typeNode));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodes = [\n ts.Diagnostics.Class_0_incorrectly_implements_interface_1.code,\n ts.Diagnostics.Class_0_incorrectly_implements_class_1_Did_you_mean_to_extend_1_and_inherit_its_members_as_a_subclass.code\n ];\n var fixId = \"fixClassIncorrectlyImplementsInterface\"; // TODO: share a group with fixClassDoesntImplementInheritedAbstractMember?\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var classDeclaration = getClass(sourceFile, span.start);\n return ts.mapDefined(ts.getEffectiveImplementsTypeNodes(classDeclaration), function (implementedTypeNode) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addMissingDeclarations(context, implementedTypeNode, sourceFile, classDeclaration, t, context.preferences); });\n return changes.length === 0 ? undefined : codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Implement_interface_0, implementedTypeNode.getText(sourceFile)], fixId, ts.Diagnostics.Implement_all_unimplemented_interfaces);\n });\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var seenClassDeclarations = new ts.Map();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var classDeclaration = getClass(diag.file, diag.start);\n if (ts.addToSeen(seenClassDeclarations, ts.getNodeId(classDeclaration))) {\n for (var _i = 0, _a = ts.getEffectiveImplementsTypeNodes(classDeclaration); _i < _a.length; _i++) {\n var implementedTypeNode = _a[_i];\n addMissingDeclarations(context, implementedTypeNode, diag.file, classDeclaration, changes, context.preferences);\n }\n }\n });\n },\n });\n function getClass(sourceFile, pos) {\n return ts.Debug.checkDefined(ts.getContainingClass(ts.getTokenAtPosition(sourceFile, pos)), \"There should be a containing class\");\n }\n function symbolPointsToNonPrivateMember(symbol) {\n return !symbol.valueDeclaration || !(ts.getEffectiveModifierFlags(symbol.valueDeclaration) & 8 /* Private */);\n }\n function addMissingDeclarations(context, implementedTypeNode, sourceFile, classDeclaration, changeTracker, preferences) {\n var checker = context.program.getTypeChecker();\n var maybeHeritageClauseSymbol = getHeritageClauseSymbolTable(classDeclaration, checker);\n // Note that this is ultimately derived from a map indexed by symbol names,\n // so duplicates cannot occur.\n var implementedType = checker.getTypeAtLocation(implementedTypeNode);\n var implementedTypeSymbols = checker.getPropertiesOfType(implementedType);\n var nonPrivateAndNotExistedInHeritageClauseMembers = implementedTypeSymbols.filter(ts.and(symbolPointsToNonPrivateMember, function (symbol) { return !maybeHeritageClauseSymbol.has(symbol.escapedName); }));\n var classType = checker.getTypeAtLocation(classDeclaration);\n var constructor = ts.find(classDeclaration.members, function (m) { return ts.isConstructorDeclaration(m); });\n if (!classType.getNumberIndexType()) {\n createMissingIndexSignatureDeclaration(implementedType, 1 /* Number */);\n }\n if (!classType.getStringIndexType()) {\n createMissingIndexSignatureDeclaration(implementedType, 0 /* String */);\n }\n var importAdder = codefix.createImportAdder(sourceFile, context.program, preferences, context.host);\n codefix.createMissingMemberNodes(classDeclaration, nonPrivateAndNotExistedInHeritageClauseMembers, sourceFile, context, preferences, importAdder, function (member) { return insertInterfaceMemberNode(sourceFile, classDeclaration, member); });\n importAdder.writeFixes(changeTracker);\n function createMissingIndexSignatureDeclaration(type, kind) {\n var indexInfoOfKind = checker.getIndexInfoOfType(type, kind);\n if (indexInfoOfKind) {\n insertInterfaceMemberNode(sourceFile, classDeclaration, checker.indexInfoToIndexSignatureDeclaration(indexInfoOfKind, classDeclaration, /*flags*/ undefined, codefix.getNoopSymbolTrackerWithResolver(context)));\n }\n }\n // Either adds the node at the top of the class, or if there's a constructor right after that\n function insertInterfaceMemberNode(sourceFile, cls, newElement) {\n if (constructor) {\n changeTracker.insertNodeAfter(sourceFile, constructor, newElement);\n }\n else {\n changeTracker.insertNodeAtClassStart(sourceFile, cls, newElement);\n }\n }\n }\n function getHeritageClauseSymbolTable(classDeclaration, checker) {\n var heritageClauseNode = ts.getEffectiveBaseTypeNode(classDeclaration);\n if (!heritageClauseNode)\n return ts.createSymbolTable();\n var heritageClauseType = checker.getTypeAtLocation(heritageClauseNode);\n var heritageClauseTypeSymbols = checker.getPropertiesOfType(heritageClauseType);\n return ts.createSymbolTable(heritageClauseTypeSymbols.filter(symbolPointsToNonPrivateMember));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n codefix.importFixName = \"import\";\n var importFixId = \"fixMissingImport\";\n var errorCodes = [\n ts.Diagnostics.Cannot_find_name_0.code,\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,\n ts.Diagnostics.Cannot_find_namespace_0.code,\n ts.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code,\n ts.Diagnostics._0_only_refers_to_a_type_but_is_being_used_as_a_value_here.code,\n ts.Diagnostics.No_value_exists_in_scope_for_the_shorthand_property_0_Either_declare_one_or_provide_an_initializer.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var errorCode = context.errorCode, preferences = context.preferences, sourceFile = context.sourceFile, span = context.span;\n var info = getFixesInfo(context, errorCode, span.start, /*useAutoImportProvider*/ true);\n if (!info)\n return undefined;\n var fixes = info.fixes, symbolName = info.symbolName;\n var quotePreference = ts.getQuotePreference(sourceFile, preferences);\n return fixes.map(function (fix) { return codeActionForFix(context, sourceFile, symbolName, fix, quotePreference); });\n },\n fixIds: [importFixId],\n getAllCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, preferences = context.preferences, host = context.host;\n var importAdder = createImportAdderWorker(sourceFile, program, /*useAutoImportProvider*/ true, preferences, host);\n codefix.eachDiagnostic(context, errorCodes, function (diag) { return importAdder.addImportFromDiagnostic(diag, context); });\n return codefix.createCombinedCodeActions(ts.textChanges.ChangeTracker.with(context, importAdder.writeFixes));\n },\n });\n function createImportAdder(sourceFile, program, preferences, host) {\n return createImportAdderWorker(sourceFile, program, /*useAutoImportProvider*/ false, preferences, host);\n }\n codefix.createImportAdder = createImportAdder;\n function createImportAdderWorker(sourceFile, program, useAutoImportProvider, preferences, host) {\n var compilerOptions = program.getCompilerOptions();\n // Namespace fixes don't conflict, so just build a list.\n var addToNamespace = [];\n var importType = [];\n // Keys are import clause node IDs.\n var addToExisting = new ts.Map();\n var newImports = new ts.Map();\n return { addImportFromDiagnostic: addImportFromDiagnostic, addImportFromExportedSymbol: addImportFromExportedSymbol, writeFixes: writeFixes };\n function addImportFromDiagnostic(diagnostic, context) {\n var info = getFixesInfo(context, diagnostic.code, diagnostic.start, useAutoImportProvider);\n if (!info || !info.fixes.length)\n return;\n addImport(info);\n }\n function addImportFromExportedSymbol(exportedSymbol, usageIsTypeOnly) {\n var moduleSymbol = ts.Debug.checkDefined(exportedSymbol.parent);\n var symbolName = ts.getNameForExportedSymbol(exportedSymbol, ts.getEmitScriptTarget(compilerOptions));\n var checker = program.getTypeChecker();\n var symbol = checker.getMergedSymbol(ts.skipAlias(exportedSymbol, checker));\n var exportInfos = getAllReExportingModules(sourceFile, symbol, moduleSymbol, symbolName, host, program, preferences, useAutoImportProvider);\n var preferTypeOnlyImport = !!usageIsTypeOnly && compilerOptions.importsNotUsedAsValues === 2 /* Error */;\n var useRequire = shouldUseRequire(sourceFile, program);\n var fix = getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, symbolName, program, /*position*/ undefined, preferTypeOnlyImport, useRequire, host, preferences);\n if (fix) {\n addImport({ fixes: [fix], symbolName: symbolName });\n }\n }\n function addImport(info) {\n var fixes = info.fixes, symbolName = info.symbolName;\n var fix = ts.first(fixes);\n switch (fix.kind) {\n case 0 /* UseNamespace */:\n addToNamespace.push(fix);\n break;\n case 1 /* ImportType */:\n importType.push(fix);\n break;\n case 2 /* AddToExisting */: {\n var importClauseOrBindingPattern = fix.importClauseOrBindingPattern, importKind = fix.importKind, canUseTypeOnlyImport = fix.canUseTypeOnlyImport;\n var key = String(ts.getNodeId(importClauseOrBindingPattern));\n var entry = addToExisting.get(key);\n if (!entry) {\n addToExisting.set(key, entry = { importClauseOrBindingPattern: importClauseOrBindingPattern, defaultImport: undefined, namedImports: [], canUseTypeOnlyImport: canUseTypeOnlyImport });\n }\n if (importKind === 0 /* Named */) {\n ts.pushIfUnique(entry.namedImports, symbolName);\n }\n else {\n ts.Debug.assert(entry.defaultImport === undefined || entry.defaultImport === symbolName, \"(Add to Existing) Default import should be missing or match symbolName\");\n entry.defaultImport = symbolName;\n }\n break;\n }\n case 3 /* AddNew */: {\n var moduleSpecifier = fix.moduleSpecifier, importKind = fix.importKind, useRequire = fix.useRequire, typeOnly = fix.typeOnly;\n var entry = newImports.get(moduleSpecifier);\n if (!entry) {\n newImports.set(moduleSpecifier, entry = { namedImports: [], namespaceLikeImport: undefined, typeOnly: typeOnly, useRequire: useRequire });\n }\n else {\n // An import clause can only be type-only if every import fix contributing to it can be type-only.\n entry.typeOnly = entry.typeOnly && typeOnly;\n }\n switch (importKind) {\n case 1 /* Default */:\n ts.Debug.assert(entry.defaultImport === undefined || entry.defaultImport === symbolName, \"(Add new) Default import should be missing or match symbolName\");\n entry.defaultImport = symbolName;\n break;\n case 0 /* Named */:\n ts.pushIfUnique(entry.namedImports || (entry.namedImports = []), symbolName);\n break;\n case 3 /* CommonJS */:\n case 2 /* Namespace */:\n ts.Debug.assert(entry.namespaceLikeImport === undefined || entry.namespaceLikeImport.name === symbolName, \"Namespacelike import shoudl be missing or match symbolName\");\n entry.namespaceLikeImport = { importKind: importKind, name: symbolName };\n break;\n }\n break;\n }\n default:\n ts.Debug.assertNever(fix, \"fix wasn't never - got kind \" + fix.kind);\n }\n }\n function writeFixes(changeTracker) {\n var quotePreference = ts.getQuotePreference(sourceFile, preferences);\n for (var _i = 0, addToNamespace_1 = addToNamespace; _i < addToNamespace_1.length; _i++) {\n var fix = addToNamespace_1[_i];\n addNamespaceQualifier(changeTracker, sourceFile, fix);\n }\n for (var _a = 0, importType_1 = importType; _a < importType_1.length; _a++) {\n var fix = importType_1[_a];\n addImportType(changeTracker, sourceFile, fix, quotePreference);\n }\n addToExisting.forEach(function (_a) {\n var importClauseOrBindingPattern = _a.importClauseOrBindingPattern, defaultImport = _a.defaultImport, namedImports = _a.namedImports, canUseTypeOnlyImport = _a.canUseTypeOnlyImport;\n doAddExistingFix(changeTracker, sourceFile, importClauseOrBindingPattern, defaultImport, namedImports, canUseTypeOnlyImport);\n });\n var newDeclarations;\n newImports.forEach(function (_a, moduleSpecifier) {\n var useRequire = _a.useRequire, imports = __rest(_a, [\"useRequire\"]);\n var getDeclarations = useRequire ? getNewRequires : getNewImports;\n newDeclarations = ts.combine(newDeclarations, getDeclarations(moduleSpecifier, quotePreference, imports));\n });\n if (newDeclarations) {\n ts.insertImports(changeTracker, sourceFile, newDeclarations, /*blankLineBetween*/ true);\n }\n }\n }\n // Sorted with the preferred fix coming first.\n var ImportFixKind;\n (function (ImportFixKind) {\n ImportFixKind[ImportFixKind[\"UseNamespace\"] = 0] = \"UseNamespace\";\n ImportFixKind[ImportFixKind[\"ImportType\"] = 1] = \"ImportType\";\n ImportFixKind[ImportFixKind[\"AddToExisting\"] = 2] = \"AddToExisting\";\n ImportFixKind[ImportFixKind[\"AddNew\"] = 3] = \"AddNew\";\n })(ImportFixKind || (ImportFixKind = {}));\n function getImportCompletionAction(exportedSymbol, moduleSymbol, sourceFile, symbolName, host, program, formatContext, position, preferences) {\n var compilerOptions = program.getCompilerOptions();\n var exportInfos = ts.pathIsBareSpecifier(ts.stripQuotes(moduleSymbol.name))\n ? [getSymbolExportInfoForSymbol(exportedSymbol, moduleSymbol, program, host)]\n : getAllReExportingModules(sourceFile, exportedSymbol, moduleSymbol, symbolName, host, program, preferences, /*useAutoImportProvider*/ true);\n var useRequire = shouldUseRequire(sourceFile, program);\n var preferTypeOnlyImport = compilerOptions.importsNotUsedAsValues === 2 /* Error */ && !ts.isSourceFileJS(sourceFile) && ts.isValidTypeOnlyAliasUseSite(ts.getTokenAtPosition(sourceFile, position));\n var fix = ts.Debug.checkDefined(getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, symbolName, program, position, preferTypeOnlyImport, useRequire, host, preferences));\n return { moduleSpecifier: fix.moduleSpecifier, codeAction: codeFixActionToCodeAction(codeActionForFix({ host: host, formatContext: formatContext, preferences: preferences }, sourceFile, symbolName, fix, ts.getQuotePreference(sourceFile, preferences))) };\n }\n codefix.getImportCompletionAction = getImportCompletionAction;\n function getImportFixForSymbol(sourceFile, exportInfos, moduleSymbol, symbolName, program, position, preferTypeOnlyImport, useRequire, host, preferences) {\n ts.Debug.assert(exportInfos.some(function (info) { return info.moduleSymbol === moduleSymbol || info.symbol.parent === moduleSymbol; }), \"Some exportInfo should match the specified moduleSymbol\");\n return getBestFix(getImportFixes(exportInfos, symbolName, position, preferTypeOnlyImport, useRequire, program, sourceFile, host, preferences), sourceFile, program, host, preferences);\n }\n function codeFixActionToCodeAction(_a) {\n var description = _a.description, changes = _a.changes, commands = _a.commands;\n return { description: description, changes: changes, commands: commands };\n }\n function getSymbolExportInfoForSymbol(symbol, moduleSymbol, program, host) {\n var _a, _b;\n var compilerOptions = program.getCompilerOptions();\n var mainProgramInfo = getInfoWithChecker(program.getTypeChecker(), /*isFromPackageJson*/ false);\n if (mainProgramInfo) {\n return mainProgramInfo;\n }\n var autoImportProvider = (_b = (_a = host.getPackageJsonAutoImportProvider) === null || _a === void 0 ? void 0 : _a.call(host)) === null || _b === void 0 ? void 0 : _b.getTypeChecker();\n return ts.Debug.checkDefined(autoImportProvider && getInfoWithChecker(autoImportProvider, /*isFromPackageJson*/ true), \"Could not find symbol in specified module for code actions\");\n function getInfoWithChecker(checker, isFromPackageJson) {\n var defaultInfo = ts.getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n if (defaultInfo && ts.skipAlias(defaultInfo.symbol, checker) === symbol) {\n return { symbol: defaultInfo.symbol, moduleSymbol: moduleSymbol, moduleFileName: undefined, exportKind: defaultInfo.exportKind, targetFlags: ts.skipAlias(symbol, checker).flags, isFromPackageJson: isFromPackageJson };\n }\n var named = checker.tryGetMemberInModuleExportsAndProperties(symbol.name, moduleSymbol);\n if (named && ts.skipAlias(named, checker) === symbol) {\n return { symbol: named, moduleSymbol: moduleSymbol, moduleFileName: undefined, exportKind: 0 /* Named */, targetFlags: ts.skipAlias(symbol, checker).flags, isFromPackageJson: isFromPackageJson };\n }\n }\n }\n function getAllReExportingModules(importingFile, exportedSymbol, exportingModuleSymbol, symbolName, host, program, preferences, useAutoImportProvider) {\n var result = [];\n var compilerOptions = program.getCompilerOptions();\n var getModuleSpecifierResolutionHost = ts.memoizeOne(function (isFromPackageJson) {\n return ts.createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);\n });\n ts.forEachExternalModuleToImportFrom(program, host, useAutoImportProvider, function (moduleSymbol, moduleFile, program, isFromPackageJson) {\n var checker = program.getTypeChecker();\n // Don't import from a re-export when looking \"up\" like to `./index` or `../index`.\n if (moduleFile && moduleSymbol !== exportingModuleSymbol && ts.startsWith(importingFile.fileName, ts.getDirectoryPath(moduleFile.fileName))) {\n return;\n }\n var defaultInfo = ts.getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n if (defaultInfo && (defaultInfo.name === symbolName || moduleSymbolToValidIdentifier(moduleSymbol, compilerOptions.target) === symbolName) && ts.skipAlias(defaultInfo.symbol, checker) === exportedSymbol && isImportable(program, moduleFile, isFromPackageJson)) {\n result.push({ symbol: defaultInfo.symbol, moduleSymbol: moduleSymbol, moduleFileName: moduleFile === null || moduleFile === void 0 ? void 0 : moduleFile.fileName, exportKind: defaultInfo.exportKind, targetFlags: ts.skipAlias(defaultInfo.symbol, checker).flags, isFromPackageJson: isFromPackageJson });\n }\n for (var _i = 0, _a = checker.getExportsAndPropertiesOfModule(moduleSymbol); _i < _a.length; _i++) {\n var exported = _a[_i];\n if (exported.name === symbolName && ts.skipAlias(exported, checker) === exportedSymbol && isImportable(program, moduleFile, isFromPackageJson)) {\n result.push({ symbol: exported, moduleSymbol: moduleSymbol, moduleFileName: moduleFile === null || moduleFile === void 0 ? void 0 : moduleFile.fileName, exportKind: 0 /* Named */, targetFlags: ts.skipAlias(exported, checker).flags, isFromPackageJson: isFromPackageJson });\n }\n }\n });\n return result;\n function isImportable(program, moduleFile, isFromPackageJson) {\n var _a;\n return !moduleFile || ts.isImportableFile(program, importingFile, moduleFile, preferences, /*packageJsonFilter*/ undefined, getModuleSpecifierResolutionHost(isFromPackageJson), (_a = host.getModuleSpecifierCache) === null || _a === void 0 ? void 0 : _a.call(host));\n }\n }\n function getModuleSpecifierForBestExportInfo(exportInfo, importingFile, program, host, preferences, fromCacheOnly) {\n var _a = getNewImportFixes(program, importingFile, \n /*position*/ undefined, \n /*preferTypeOnlyImport*/ false, \n /*useRequire*/ false, exportInfo, host, preferences, fromCacheOnly), fixes = _a.fixes, computedWithoutCacheCount = _a.computedWithoutCacheCount;\n var result = getBestFix(fixes, importingFile, program, host, preferences);\n return result && __assign(__assign({}, result), { computedWithoutCacheCount: computedWithoutCacheCount });\n }\n codefix.getModuleSpecifierForBestExportInfo = getModuleSpecifierForBestExportInfo;\n function isTypeOnlyPosition(sourceFile, position) {\n return ts.isValidTypeOnlyAliasUseSite(ts.getTokenAtPosition(sourceFile, position));\n }\n function getImportFixes(exportInfos, symbolName, \n /** undefined only for missing JSX namespace */\n position, preferTypeOnlyImport, useRequire, program, sourceFile, host, preferences) {\n var checker = program.getTypeChecker();\n var existingImports = ts.flatMap(exportInfos, function (info) { return getExistingImportDeclarations(info, checker, sourceFile, program.getCompilerOptions()); });\n var useNamespace = position === undefined ? undefined : tryUseExistingNamespaceImport(existingImports, symbolName, position, checker);\n var addToExisting = tryAddToExistingImport(existingImports, position !== undefined && isTypeOnlyPosition(sourceFile, position));\n // Don't bother providing an action to add a new import if we can add to an existing one.\n var addImport = addToExisting ? [addToExisting] : getFixesForAddImport(exportInfos, existingImports, program, sourceFile, position, preferTypeOnlyImport, useRequire, host, preferences);\n return __spreadArray(__spreadArray([], (useNamespace ? [useNamespace] : ts.emptyArray), true), addImport, true);\n }\n function tryUseExistingNamespaceImport(existingImports, symbolName, position, checker) {\n // It is possible that multiple import statements with the same specifier exist in the file.\n // e.g.\n //\n // import * as ns from \"foo\";\n // import { member1, member2 } from \"foo\";\n //\n // member3/**/ <-- cusor here\n //\n // in this case we should provie 2 actions:\n // 1. change \"member3\" to \"ns.member3\"\n // 2. add \"member3\" to the second import statement's import list\n // and it is up to the user to decide which one fits best.\n return ts.firstDefined(existingImports, function (_a) {\n var declaration = _a.declaration;\n var namespacePrefix = getNamespaceLikeImportText(declaration);\n var moduleSpecifier = ts.tryGetModuleSpecifierFromDeclaration(declaration);\n if (namespacePrefix && moduleSpecifier) {\n var moduleSymbol = getTargetModuleFromNamespaceLikeImport(declaration, checker);\n if (moduleSymbol && moduleSymbol.exports.has(ts.escapeLeadingUnderscores(symbolName))) {\n return { kind: 0 /* UseNamespace */, namespacePrefix: namespacePrefix, position: position, moduleSpecifier: moduleSpecifier };\n }\n }\n });\n }\n function getTargetModuleFromNamespaceLikeImport(declaration, checker) {\n var _a;\n switch (declaration.kind) {\n case 252 /* VariableDeclaration */:\n return checker.resolveExternalModuleName(declaration.initializer.arguments[0]);\n case 263 /* ImportEqualsDeclaration */:\n return checker.getAliasedSymbol(declaration.symbol);\n case 264 /* ImportDeclaration */:\n var namespaceImport = ts.tryCast((_a = declaration.importClause) === null || _a === void 0 ? void 0 : _a.namedBindings, ts.isNamespaceImport);\n return namespaceImport && checker.getAliasedSymbol(namespaceImport.symbol);\n default:\n return ts.Debug.assertNever(declaration);\n }\n }\n function getNamespaceLikeImportText(declaration) {\n var _a, _b, _c;\n switch (declaration.kind) {\n case 252 /* VariableDeclaration */:\n return (_a = ts.tryCast(declaration.name, ts.isIdentifier)) === null || _a === void 0 ? void 0 : _a.text;\n case 263 /* ImportEqualsDeclaration */:\n return declaration.name.text;\n case 264 /* ImportDeclaration */:\n return (_c = ts.tryCast((_b = declaration.importClause) === null || _b === void 0 ? void 0 : _b.namedBindings, ts.isNamespaceImport)) === null || _c === void 0 ? void 0 : _c.name.text;\n default:\n return ts.Debug.assertNever(declaration);\n }\n }\n function tryAddToExistingImport(existingImports, canUseTypeOnlyImport) {\n return ts.firstDefined(existingImports, function (_a) {\n var declaration = _a.declaration, importKind = _a.importKind;\n if (declaration.kind === 263 /* ImportEqualsDeclaration */)\n return undefined;\n if (declaration.kind === 252 /* VariableDeclaration */) {\n return (importKind === 0 /* Named */ || importKind === 1 /* Default */) && declaration.name.kind === 199 /* ObjectBindingPattern */\n ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: declaration.name, importKind: importKind, moduleSpecifier: declaration.initializer.arguments[0].text, canUseTypeOnlyImport: false }\n : undefined;\n }\n var importClause = declaration.importClause;\n if (!importClause || !ts.isStringLiteralLike(declaration.moduleSpecifier))\n return undefined;\n var name = importClause.name, namedBindings = importClause.namedBindings;\n // A type-only import may not have both a default and named imports, so the only way a name can\n // be added to an existing type-only import is adding a named import to existing named bindings.\n if (importClause.isTypeOnly && !(importKind === 0 /* Named */ && namedBindings))\n return undefined;\n return importKind === 1 /* Default */ && !name || importKind === 0 /* Named */ && (!namedBindings || namedBindings.kind === 267 /* NamedImports */)\n ? { kind: 2 /* AddToExisting */, importClauseOrBindingPattern: importClause, importKind: importKind, moduleSpecifier: declaration.moduleSpecifier.text, canUseTypeOnlyImport: canUseTypeOnlyImport }\n : undefined;\n });\n }\n function getExistingImportDeclarations(_a, checker, importingFile, compilerOptions) {\n var moduleSymbol = _a.moduleSymbol, exportKind = _a.exportKind, targetFlags = _a.targetFlags;\n // Can't use an es6 import for a type in JS.\n if (!(targetFlags & 111551 /* Value */) && ts.isSourceFileJS(importingFile))\n return ts.emptyArray;\n var importKind = getImportKind(importingFile, exportKind, compilerOptions);\n return ts.mapDefined(importingFile.imports, function (moduleSpecifier) {\n var i = ts.importFromModuleSpecifier(moduleSpecifier);\n if (ts.isRequireVariableDeclaration(i.parent)) {\n return checker.resolveExternalModuleName(moduleSpecifier) === moduleSymbol ? { declaration: i.parent, importKind: importKind } : undefined;\n }\n if (i.kind === 264 /* ImportDeclaration */ || i.kind === 263 /* ImportEqualsDeclaration */) {\n return checker.getSymbolAtLocation(moduleSpecifier) === moduleSymbol ? { declaration: i, importKind: importKind } : undefined;\n }\n });\n }\n function shouldUseRequire(sourceFile, program) {\n // 1. TypeScript files don't use require variable declarations\n if (!ts.isSourceFileJS(sourceFile)) {\n return false;\n }\n // 2. If the current source file is unambiguously CJS or ESM, go with that\n if (sourceFile.commonJsModuleIndicator && !sourceFile.externalModuleIndicator)\n return true;\n if (sourceFile.externalModuleIndicator && !sourceFile.commonJsModuleIndicator)\n return false;\n // 3. If there's a tsconfig/jsconfig, use its module setting\n var compilerOptions = program.getCompilerOptions();\n if (compilerOptions.configFile) {\n return ts.getEmitModuleKind(compilerOptions) < ts.ModuleKind.ES2015;\n }\n // 4. Match the first other JS file in the program that's unambiguously CJS or ESM\n for (var _i = 0, _a = program.getSourceFiles(); _i < _a.length; _i++) {\n var otherFile = _a[_i];\n if (otherFile === sourceFile || !ts.isSourceFileJS(otherFile) || program.isSourceFileFromExternalLibrary(otherFile))\n continue;\n if (otherFile.commonJsModuleIndicator && !otherFile.externalModuleIndicator)\n return true;\n if (otherFile.externalModuleIndicator && !otherFile.commonJsModuleIndicator)\n return false;\n }\n // 5. Literally nothing to go on\n return true;\n }\n function getNewImportFixes(program, sourceFile, position, preferTypeOnlyImport, useRequire, moduleSymbols, host, preferences, fromCacheOnly) {\n var isJs = ts.isSourceFileJS(sourceFile);\n var compilerOptions = program.getCompilerOptions();\n var moduleSpecifierResolutionHost = ts.createModuleSpecifierResolutionHost(program, host);\n var checker = program.getTypeChecker();\n var getModuleSpecifiers = fromCacheOnly\n ? function (moduleSymbol) { return ({ moduleSpecifiers: ts.moduleSpecifiers.tryGetModuleSpecifiersFromCache(moduleSymbol, sourceFile, moduleSpecifierResolutionHost, preferences), computedWithoutCache: false }); }\n : function (moduleSymbol) { return ts.moduleSpecifiers.getModuleSpecifiersWithCacheInfo(moduleSymbol, checker, compilerOptions, sourceFile, moduleSpecifierResolutionHost, preferences); };\n var computedWithoutCacheCount = 0;\n var fixes = ts.flatMap(moduleSymbols, function (exportInfo) {\n var _a = getModuleSpecifiers(exportInfo.moduleSymbol), computedWithoutCache = _a.computedWithoutCache, moduleSpecifiers = _a.moduleSpecifiers;\n computedWithoutCacheCount += computedWithoutCache ? 1 : 0;\n return moduleSpecifiers === null || moduleSpecifiers === void 0 ? void 0 : moduleSpecifiers.map(function (moduleSpecifier) {\n // `position` should only be undefined at a missing jsx namespace, in which case we shouldn't be looking for pure types.\n return !(exportInfo.targetFlags & 111551 /* Value */) && isJs && position !== undefined\n ? { kind: 1 /* ImportType */, moduleSpecifier: moduleSpecifier, position: position, exportInfo: exportInfo }\n : {\n kind: 3 /* AddNew */,\n moduleSpecifier: moduleSpecifier,\n importKind: getImportKind(sourceFile, exportInfo.exportKind, compilerOptions),\n useRequire: useRequire,\n typeOnly: preferTypeOnlyImport,\n exportInfo: exportInfo,\n };\n });\n });\n return { computedWithoutCacheCount: computedWithoutCacheCount, fixes: fixes };\n }\n function getFixesForAddImport(exportInfos, existingImports, program, sourceFile, position, preferTypeOnlyImport, useRequire, host, preferences) {\n var existingDeclaration = ts.firstDefined(existingImports, function (info) { return newImportInfoFromExistingSpecifier(info, preferTypeOnlyImport, useRequire); });\n return existingDeclaration ? [existingDeclaration] : getNewImportFixes(program, sourceFile, position, preferTypeOnlyImport, useRequire, exportInfos, host, preferences).fixes;\n }\n function newImportInfoFromExistingSpecifier(_a, preferTypeOnlyImport, useRequire) {\n var declaration = _a.declaration, importKind = _a.importKind;\n var moduleSpecifier = ts.tryGetModuleSpecifierFromDeclaration(declaration);\n return moduleSpecifier\n ? { kind: 3 /* AddNew */, moduleSpecifier: moduleSpecifier, importKind: importKind, typeOnly: preferTypeOnlyImport, useRequire: useRequire }\n : undefined;\n }\n function getFixesInfo(context, errorCode, pos, useAutoImportProvider) {\n var symbolToken = ts.getTokenAtPosition(context.sourceFile, pos);\n var info = errorCode === ts.Diagnostics._0_refers_to_a_UMD_global_but_the_current_file_is_a_module_Consider_adding_an_import_instead.code\n ? getFixesInfoForUMDImport(context, symbolToken)\n : ts.isIdentifier(symbolToken) ? getFixesInfoForNonUMDImport(context, symbolToken, useAutoImportProvider) : undefined;\n return info && __assign(__assign({}, info), { fixes: sortFixes(info.fixes, context.sourceFile, context.program, context.host, context.preferences) });\n }\n function sortFixes(fixes, sourceFile, program, host, preferences) {\n var allowsImportingSpecifier = ts.createPackageJsonImportFilter(sourceFile, preferences, host).allowsImportingSpecifier;\n return ts.sort(fixes, function (a, b) { return ts.compareValues(a.kind, b.kind) || compareModuleSpecifiers(a, b, sourceFile, program, allowsImportingSpecifier); });\n }\n function getBestFix(fixes, sourceFile, program, host, preferences) {\n if (!ts.some(fixes))\n return;\n // These will always be placed first if available, and are better than other kinds\n if (fixes[0].kind === 0 /* UseNamespace */ || fixes[0].kind === 2 /* AddToExisting */) {\n return fixes[0];\n }\n var allowsImportingSpecifier = ts.createPackageJsonImportFilter(sourceFile, preferences, host).allowsImportingSpecifier;\n return fixes.reduce(function (best, fix) {\n return compareModuleSpecifiers(fix, best, sourceFile, program, allowsImportingSpecifier) === -1 /* LessThan */ ? fix : best;\n });\n }\n function compareModuleSpecifiers(a, b, importingFile, program, allowsImportingSpecifier) {\n if (a.kind !== 0 /* UseNamespace */ && b.kind !== 0 /* UseNamespace */) {\n return ts.compareBooleans(allowsImportingSpecifier(a.moduleSpecifier), allowsImportingSpecifier(b.moduleSpecifier))\n || compareNodeCoreModuleSpecifiers(a.moduleSpecifier, b.moduleSpecifier, importingFile, program)\n || ts.compareNumberOfDirectorySeparators(a.moduleSpecifier, b.moduleSpecifier);\n }\n return 0 /* EqualTo */;\n }\n function compareNodeCoreModuleSpecifiers(a, b, importingFile, program) {\n if (ts.startsWith(a, \"node:\") && !ts.startsWith(b, \"node:\"))\n return ts.shouldUseUriStyleNodeCoreModules(importingFile, program) ? -1 /* LessThan */ : 1 /* GreaterThan */;\n if (ts.startsWith(b, \"node:\") && !ts.startsWith(a, \"node:\"))\n return ts.shouldUseUriStyleNodeCoreModules(importingFile, program) ? 1 /* GreaterThan */ : -1 /* LessThan */;\n return 0 /* EqualTo */;\n }\n function getFixesInfoForUMDImport(_a, token) {\n var sourceFile = _a.sourceFile, program = _a.program, host = _a.host, preferences = _a.preferences;\n var checker = program.getTypeChecker();\n var umdSymbol = getUmdSymbol(token, checker);\n if (!umdSymbol)\n return undefined;\n var symbol = checker.getAliasedSymbol(umdSymbol);\n var symbolName = umdSymbol.name;\n var exportInfos = [{ symbol: umdSymbol, moduleSymbol: symbol, moduleFileName: undefined, exportKind: 3 /* UMD */, targetFlags: symbol.flags, isFromPackageJson: false }];\n var useRequire = shouldUseRequire(sourceFile, program);\n var fixes = getImportFixes(exportInfos, symbolName, ts.isIdentifier(token) ? token.getStart(sourceFile) : undefined, /*preferTypeOnlyImport*/ false, useRequire, program, sourceFile, host, preferences);\n return { fixes: fixes, symbolName: symbolName };\n }\n function getUmdSymbol(token, checker) {\n // try the identifier to see if it is the umd symbol\n var umdSymbol = ts.isIdentifier(token) ? checker.getSymbolAtLocation(token) : undefined;\n if (ts.isUMDExportSymbol(umdSymbol))\n return umdSymbol;\n // The error wasn't for the symbolAtLocation, it was for the JSX tag itself, which needs access to e.g. `React`.\n var parent = token.parent;\n return (ts.isJsxOpeningLikeElement(parent) && parent.tagName === token) || ts.isJsxOpeningFragment(parent)\n ? ts.tryCast(checker.resolveName(checker.getJsxNamespace(parent), ts.isJsxOpeningLikeElement(parent) ? token : parent, 111551 /* Value */, /*excludeGlobals*/ false), ts.isUMDExportSymbol)\n : undefined;\n }\n /**\n * @param forceImportKeyword Indicates that the user has already typed `import`, so the result must start with `import`.\n * (In other words, do not allow `const x = require(\"...\")` for JS files.)\n */\n function getImportKind(importingFile, exportKind, compilerOptions, forceImportKeyword) {\n switch (exportKind) {\n case 0 /* Named */: return 0 /* Named */;\n case 1 /* Default */: return 1 /* Default */;\n case 2 /* ExportEquals */: return getExportEqualsImportKind(importingFile, compilerOptions, !!forceImportKeyword);\n case 3 /* UMD */: return getUmdImportKind(importingFile, compilerOptions, !!forceImportKeyword);\n default: return ts.Debug.assertNever(exportKind);\n }\n }\n codefix.getImportKind = getImportKind;\n function getUmdImportKind(importingFile, compilerOptions, forceImportKeyword) {\n // Import a synthetic `default` if enabled.\n if (ts.getAllowSyntheticDefaultImports(compilerOptions)) {\n return 1 /* Default */;\n }\n // When a synthetic `default` is unavailable, use `import..require` if the module kind supports it.\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n switch (moduleKind) {\n case ts.ModuleKind.AMD:\n case ts.ModuleKind.CommonJS:\n case ts.ModuleKind.UMD:\n if (ts.isInJSFile(importingFile)) {\n return ts.isExternalModule(importingFile) || forceImportKeyword ? 2 /* Namespace */ : 3 /* CommonJS */;\n }\n return 3 /* CommonJS */;\n case ts.ModuleKind.System:\n case ts.ModuleKind.ES2015:\n case ts.ModuleKind.ES2020:\n case ts.ModuleKind.ESNext:\n case ts.ModuleKind.None:\n // Fall back to the `import * as ns` style import.\n return 2 /* Namespace */;\n default:\n return ts.Debug.assertNever(moduleKind, \"Unexpected moduleKind \" + moduleKind);\n }\n }\n function getFixesInfoForNonUMDImport(_a, symbolToken, useAutoImportProvider) {\n var sourceFile = _a.sourceFile, program = _a.program, cancellationToken = _a.cancellationToken, host = _a.host, preferences = _a.preferences;\n var checker = program.getTypeChecker();\n var compilerOptions = program.getCompilerOptions();\n var symbolName = getSymbolName(sourceFile, checker, symbolToken, compilerOptions);\n // \"default\" is a keyword and not a legal identifier for the import, so we don't expect it here\n ts.Debug.assert(symbolName !== \"default\" /* Default */, \"'default' isn't a legal identifier and couldn't occur here\");\n var preferTypeOnlyImport = compilerOptions.importsNotUsedAsValues === 2 /* Error */ && ts.isValidTypeOnlyAliasUseSite(symbolToken);\n var useRequire = shouldUseRequire(sourceFile, program);\n var exportInfos = getExportInfos(symbolName, ts.getMeaningFromLocation(symbolToken), cancellationToken, sourceFile, program, useAutoImportProvider, host, preferences);\n var fixes = ts.arrayFrom(ts.flatMapIterator(exportInfos.entries(), function (_a) {\n var _ = _a[0], exportInfos = _a[1];\n return getImportFixes(exportInfos, symbolName, symbolToken.getStart(sourceFile), preferTypeOnlyImport, useRequire, program, sourceFile, host, preferences);\n }));\n return { fixes: fixes, symbolName: symbolName };\n }\n function getSymbolName(sourceFile, checker, symbolToken, compilerOptions) {\n var parent = symbolToken.parent;\n if ((ts.isJsxOpeningLikeElement(parent) || ts.isJsxClosingElement(parent)) && parent.tagName === symbolToken && compilerOptions.jsx !== 4 /* ReactJSX */ && compilerOptions.jsx !== 5 /* ReactJSXDev */) {\n var jsxNamespace = checker.getJsxNamespace(sourceFile);\n if (ts.isIntrinsicJsxName(symbolToken.text) || !checker.resolveName(jsxNamespace, parent, 111551 /* Value */, /*excludeGlobals*/ true)) {\n return jsxNamespace;\n }\n }\n return symbolToken.text;\n }\n // Returns a map from an exported symbol's ID to a list of every way it's (re-)exported.\n function getExportInfos(symbolName, currentTokenMeaning, cancellationToken, fromFile, program, useAutoImportProvider, host, preferences) {\n var _a;\n // For each original symbol, keep all re-exports of that symbol together so we can call `getCodeActionsForImport` on the whole group at once.\n // Maps symbol id to info for modules providing that symbol (original export + re-exports).\n var originalSymbolToExportInfos = ts.createMultiMap();\n var packageJsonFilter = ts.createPackageJsonImportFilter(fromFile, preferences, host);\n var moduleSpecifierCache = (_a = host.getModuleSpecifierCache) === null || _a === void 0 ? void 0 : _a.call(host);\n var getModuleSpecifierResolutionHost = ts.memoizeOne(function (isFromPackageJson) {\n return ts.createModuleSpecifierResolutionHost(isFromPackageJson ? host.getPackageJsonAutoImportProvider() : program, host);\n });\n function addSymbol(moduleSymbol, toFile, exportedSymbol, exportKind, program, isFromPackageJson) {\n var moduleSpecifierResolutionHost = getModuleSpecifierResolutionHost(isFromPackageJson);\n if (toFile && ts.isImportableFile(program, fromFile, toFile, preferences, packageJsonFilter, moduleSpecifierResolutionHost, moduleSpecifierCache) ||\n !toFile && packageJsonFilter.allowsImportingAmbientModule(moduleSymbol, moduleSpecifierResolutionHost)) {\n var checker = program.getTypeChecker();\n originalSymbolToExportInfos.add(ts.getUniqueSymbolId(exportedSymbol, checker).toString(), { symbol: exportedSymbol, moduleSymbol: moduleSymbol, moduleFileName: toFile === null || toFile === void 0 ? void 0 : toFile.fileName, exportKind: exportKind, targetFlags: ts.skipAlias(exportedSymbol, checker).flags, isFromPackageJson: isFromPackageJson });\n }\n }\n ts.forEachExternalModuleToImportFrom(program, host, useAutoImportProvider, function (moduleSymbol, sourceFile, program, isFromPackageJson) {\n var checker = program.getTypeChecker();\n cancellationToken.throwIfCancellationRequested();\n var compilerOptions = program.getCompilerOptions();\n var defaultInfo = ts.getDefaultLikeExportInfo(moduleSymbol, checker, compilerOptions);\n if (defaultInfo && (defaultInfo.name === symbolName || moduleSymbolToValidIdentifier(moduleSymbol, compilerOptions.target) === symbolName) && symbolHasMeaning(defaultInfo.symbolForMeaning, currentTokenMeaning)) {\n addSymbol(moduleSymbol, sourceFile, defaultInfo.symbol, defaultInfo.exportKind, program, isFromPackageJson);\n }\n // check exports with the same name\n var exportSymbolWithIdenticalName = checker.tryGetMemberInModuleExportsAndProperties(symbolName, moduleSymbol);\n if (exportSymbolWithIdenticalName && symbolHasMeaning(exportSymbolWithIdenticalName, currentTokenMeaning)) {\n addSymbol(moduleSymbol, sourceFile, exportSymbolWithIdenticalName, 0 /* Named */, program, isFromPackageJson);\n }\n });\n return originalSymbolToExportInfos;\n }\n function getExportEqualsImportKind(importingFile, compilerOptions, forceImportKeyword) {\n var allowSyntheticDefaults = ts.getAllowSyntheticDefaultImports(compilerOptions);\n var isJS = ts.isInJSFile(importingFile);\n // 1. 'import =' will not work in es2015+ TS files, so the decision is between a default\n // and a namespace import, based on allowSyntheticDefaultImports/esModuleInterop.\n if (!isJS && ts.getEmitModuleKind(compilerOptions) >= ts.ModuleKind.ES2015) {\n return allowSyntheticDefaults ? 1 /* Default */ : 2 /* Namespace */;\n }\n // 2. 'import =' will not work in JavaScript, so the decision is between a default import,\n // a namespace import, and const/require.\n if (isJS) {\n return ts.isExternalModule(importingFile) || forceImportKeyword\n ? allowSyntheticDefaults ? 1 /* Default */ : 2 /* Namespace */\n : 3 /* CommonJS */;\n }\n // 3. At this point the most correct choice is probably 'import =', but people\n // really hate that, so look to see if the importing file has any precedent\n // on how to handle it.\n for (var _i = 0, _a = importingFile.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n // `import foo` parses as an ImportEqualsDeclaration even though it could be an ImportDeclaration\n if (ts.isImportEqualsDeclaration(statement) && !ts.nodeIsMissing(statement.moduleReference)) {\n return 3 /* CommonJS */;\n }\n }\n // 4. We have no precedent to go on, so just use a default import if\n // allowSyntheticDefaultImports/esModuleInterop is enabled.\n return allowSyntheticDefaults ? 1 /* Default */ : 3 /* CommonJS */;\n }\n function codeActionForFix(context, sourceFile, symbolName, fix, quotePreference) {\n var diag;\n var changes = ts.textChanges.ChangeTracker.with(context, function (tracker) {\n diag = codeActionForFixWorker(tracker, sourceFile, symbolName, fix, quotePreference);\n });\n return codefix.createCodeFixAction(codefix.importFixName, changes, diag, importFixId, ts.Diagnostics.Add_all_missing_imports);\n }\n function codeActionForFixWorker(changes, sourceFile, symbolName, fix, quotePreference) {\n switch (fix.kind) {\n case 0 /* UseNamespace */:\n addNamespaceQualifier(changes, sourceFile, fix);\n return [ts.Diagnostics.Change_0_to_1, symbolName, fix.namespacePrefix + \".\" + symbolName];\n case 1 /* ImportType */:\n addImportType(changes, sourceFile, fix, quotePreference);\n return [ts.Diagnostics.Change_0_to_1, symbolName, getImportTypePrefix(fix.moduleSpecifier, quotePreference) + symbolName];\n case 2 /* AddToExisting */: {\n var importClauseOrBindingPattern = fix.importClauseOrBindingPattern, importKind = fix.importKind, canUseTypeOnlyImport = fix.canUseTypeOnlyImport, moduleSpecifier = fix.moduleSpecifier;\n doAddExistingFix(changes, sourceFile, importClauseOrBindingPattern, importKind === 1 /* Default */ ? symbolName : undefined, importKind === 0 /* Named */ ? [symbolName] : ts.emptyArray, canUseTypeOnlyImport);\n var moduleSpecifierWithoutQuotes = ts.stripQuotes(moduleSpecifier);\n return [importKind === 1 /* Default */ ? ts.Diagnostics.Add_default_import_0_to_existing_import_declaration_from_1 : ts.Diagnostics.Add_0_to_existing_import_declaration_from_1, symbolName, moduleSpecifierWithoutQuotes]; // you too!\n }\n case 3 /* AddNew */: {\n var importKind = fix.importKind, moduleSpecifier = fix.moduleSpecifier, typeOnly = fix.typeOnly, useRequire = fix.useRequire;\n var getDeclarations = useRequire ? getNewRequires : getNewImports;\n var importsCollection = importKind === 1 /* Default */ ? { defaultImport: symbolName, typeOnly: typeOnly } :\n importKind === 0 /* Named */ ? { namedImports: [symbolName], typeOnly: typeOnly } :\n { namespaceLikeImport: { importKind: importKind, name: symbolName }, typeOnly: typeOnly };\n ts.insertImports(changes, sourceFile, getDeclarations(moduleSpecifier, quotePreference, importsCollection), /*blankLineBetween*/ true);\n return [importKind === 1 /* Default */ ? ts.Diagnostics.Import_default_0_from_module_1 : ts.Diagnostics.Import_0_from_module_1, symbolName, moduleSpecifier];\n }\n default:\n return ts.Debug.assertNever(fix, \"Unexpected fix kind \" + fix.kind);\n }\n }\n function doAddExistingFix(changes, sourceFile, clause, defaultImport, namedImports, canUseTypeOnlyImport) {\n if (clause.kind === 199 /* ObjectBindingPattern */) {\n if (defaultImport) {\n addElementToBindingPattern(clause, defaultImport, \"default\");\n }\n for (var _i = 0, namedImports_1 = namedImports; _i < namedImports_1.length; _i++) {\n var specifier = namedImports_1[_i];\n addElementToBindingPattern(clause, specifier, /*propertyName*/ undefined);\n }\n return;\n }\n var convertTypeOnlyToRegular = !canUseTypeOnlyImport && clause.isTypeOnly;\n if (defaultImport) {\n ts.Debug.assert(!clause.name, \"Cannot add a default import to an import clause that already has one\");\n changes.insertNodeAt(sourceFile, clause.getStart(sourceFile), ts.factory.createIdentifier(defaultImport), { suffix: \", \" });\n }\n if (namedImports.length) {\n var existingSpecifiers = clause.namedBindings && ts.cast(clause.namedBindings, ts.isNamedImports).elements;\n var newSpecifiers = ts.stableSort(namedImports.map(function (name) { return ts.factory.createImportSpecifier(/*propertyName*/ undefined, ts.factory.createIdentifier(name)); }), ts.OrganizeImports.compareImportOrExportSpecifiers);\n if ((existingSpecifiers === null || existingSpecifiers === void 0 ? void 0 : existingSpecifiers.length) && ts.OrganizeImports.importSpecifiersAreSorted(existingSpecifiers)) {\n for (var _a = 0, newSpecifiers_1 = newSpecifiers; _a < newSpecifiers_1.length; _a++) {\n var spec = newSpecifiers_1[_a];\n var insertionIndex = ts.OrganizeImports.getImportSpecifierInsertionIndex(existingSpecifiers, spec);\n var prevSpecifier = clause.namedBindings.elements[insertionIndex - 1];\n if (prevSpecifier) {\n changes.insertNodeInListAfter(sourceFile, prevSpecifier, spec);\n }\n else {\n changes.insertNodeBefore(sourceFile, existingSpecifiers[0], spec, !ts.positionsAreOnSameLine(existingSpecifiers[0].getStart(), clause.parent.getStart(), sourceFile));\n }\n }\n }\n else if (existingSpecifiers === null || existingSpecifiers === void 0 ? void 0 : existingSpecifiers.length) {\n for (var _b = 0, newSpecifiers_2 = newSpecifiers; _b < newSpecifiers_2.length; _b++) {\n var spec = newSpecifiers_2[_b];\n changes.insertNodeInListAfter(sourceFile, ts.last(existingSpecifiers), spec, existingSpecifiers);\n }\n }\n else {\n if (newSpecifiers.length) {\n var namedImports_2 = ts.factory.createNamedImports(newSpecifiers);\n if (clause.namedBindings) {\n changes.replaceNode(sourceFile, clause.namedBindings, namedImports_2);\n }\n else {\n changes.insertNodeAfter(sourceFile, ts.Debug.checkDefined(clause.name, \"Import clause must have either named imports or a default import\"), namedImports_2);\n }\n }\n }\n }\n if (convertTypeOnlyToRegular) {\n changes.delete(sourceFile, ts.getTypeKeywordOfTypeOnlyImport(clause, sourceFile));\n }\n function addElementToBindingPattern(bindingPattern, name, propertyName) {\n var element = ts.factory.createBindingElement(/*dotDotDotToken*/ undefined, propertyName, name);\n if (bindingPattern.elements.length) {\n changes.insertNodeInListAfter(sourceFile, ts.last(bindingPattern.elements), element);\n }\n else {\n changes.replaceNode(sourceFile, bindingPattern, ts.factory.createObjectBindingPattern([element]));\n }\n }\n }\n function addNamespaceQualifier(changes, sourceFile, _a) {\n var namespacePrefix = _a.namespacePrefix, position = _a.position;\n changes.insertText(sourceFile, position, namespacePrefix + \".\");\n }\n function addImportType(changes, sourceFile, _a, quotePreference) {\n var moduleSpecifier = _a.moduleSpecifier, position = _a.position;\n changes.insertText(sourceFile, position, getImportTypePrefix(moduleSpecifier, quotePreference));\n }\n function getImportTypePrefix(moduleSpecifier, quotePreference) {\n var quote = ts.getQuoteFromPreference(quotePreference);\n return \"import(\" + quote + moduleSpecifier + quote + \").\";\n }\n function getNewImports(moduleSpecifier, quotePreference, imports) {\n var _a, _b;\n var quotedModuleSpecifier = ts.makeStringLiteral(moduleSpecifier, quotePreference);\n var statements;\n if (imports.defaultImport !== undefined || ((_a = imports.namedImports) === null || _a === void 0 ? void 0 : _a.length)) {\n statements = ts.combine(statements, ts.makeImport(imports.defaultImport === undefined ? undefined : ts.factory.createIdentifier(imports.defaultImport), (_b = imports.namedImports) === null || _b === void 0 ? void 0 : _b.map(function (n) { return ts.factory.createImportSpecifier(/*propertyName*/ undefined, ts.factory.createIdentifier(n)); }), moduleSpecifier, quotePreference, imports.typeOnly));\n }\n var namespaceLikeImport = imports.namespaceLikeImport, typeOnly = imports.typeOnly;\n if (namespaceLikeImport) {\n var declaration = namespaceLikeImport.importKind === 3 /* CommonJS */\n ? ts.factory.createImportEqualsDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, typeOnly, ts.factory.createIdentifier(namespaceLikeImport.name), ts.factory.createExternalModuleReference(quotedModuleSpecifier))\n : ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createImportClause(typeOnly, \n /*name*/ undefined, ts.factory.createNamespaceImport(ts.factory.createIdentifier(namespaceLikeImport.name))), quotedModuleSpecifier);\n statements = ts.combine(statements, declaration);\n }\n return ts.Debug.checkDefined(statements);\n }\n function getNewRequires(moduleSpecifier, quotePreference, imports) {\n var _a, _b;\n var quotedModuleSpecifier = ts.makeStringLiteral(moduleSpecifier, quotePreference);\n var statements;\n // const { default: foo, bar, etc } = require('./mod');\n if (imports.defaultImport || ((_a = imports.namedImports) === null || _a === void 0 ? void 0 : _a.length)) {\n var bindingElements = ((_b = imports.namedImports) === null || _b === void 0 ? void 0 : _b.map(function (name) { return ts.factory.createBindingElement(/*dotDotDotToken*/ undefined, /*propertyName*/ undefined, name); })) || [];\n if (imports.defaultImport) {\n bindingElements.unshift(ts.factory.createBindingElement(/*dotDotDotToken*/ undefined, \"default\", imports.defaultImport));\n }\n var declaration = createConstEqualsRequireDeclaration(ts.factory.createObjectBindingPattern(bindingElements), quotedModuleSpecifier);\n statements = ts.combine(statements, declaration);\n }\n // const foo = require('./mod');\n if (imports.namespaceLikeImport) {\n var declaration = createConstEqualsRequireDeclaration(imports.namespaceLikeImport.name, quotedModuleSpecifier);\n statements = ts.combine(statements, declaration);\n }\n return ts.Debug.checkDefined(statements);\n }\n function createConstEqualsRequireDeclaration(name, quotedModuleSpecifier) {\n return ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([\n ts.factory.createVariableDeclaration(typeof name === \"string\" ? ts.factory.createIdentifier(name) : name, \n /*exclamationToken*/ undefined, \n /*type*/ undefined, ts.factory.createCallExpression(ts.factory.createIdentifier(\"require\"), /*typeArguments*/ undefined, [quotedModuleSpecifier]))\n ], 2 /* Const */));\n }\n function symbolHasMeaning(_a, meaning) {\n var declarations = _a.declarations;\n return ts.some(declarations, function (decl) { return !!(ts.getMeaningFromDeclaration(decl) & meaning); });\n }\n function moduleSymbolToValidIdentifier(moduleSymbol, target) {\n return moduleSpecifierToValidIdentifier(ts.removeFileExtension(ts.stripQuotes(moduleSymbol.name)), target);\n }\n codefix.moduleSymbolToValidIdentifier = moduleSymbolToValidIdentifier;\n function moduleSpecifierToValidIdentifier(moduleSpecifier, target) {\n var baseName = ts.getBaseFileName(ts.removeSuffix(moduleSpecifier, \"/index\"));\n var res = \"\";\n var lastCharWasValid = true;\n var firstCharCode = baseName.charCodeAt(0);\n if (ts.isIdentifierStart(firstCharCode, target)) {\n res += String.fromCharCode(firstCharCode);\n }\n else {\n lastCharWasValid = false;\n }\n for (var i = 1; i < baseName.length; i++) {\n var ch = baseName.charCodeAt(i);\n var isValid = ts.isIdentifierPart(ch, target);\n if (isValid) {\n var char = String.fromCharCode(ch);\n if (!lastCharWasValid) {\n char = char.toUpperCase();\n }\n res += char;\n }\n lastCharWasValid = isValid;\n }\n // Need `|| \"_\"` to ensure result isn't empty.\n return !ts.isStringANonContextualKeyword(res) ? res || \"_\" : \"_\" + res;\n }\n codefix.moduleSpecifierToValidIdentifier = moduleSpecifierToValidIdentifier;\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var _a;\n var fixName = \"fixOverrideModifier\";\n var fixAddOverrideId = \"fixAddOverrideModifier\";\n var fixRemoveOverrideId = \"fixRemoveOverrideModifier\";\n var errorCodes = [\n ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code,\n ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code,\n ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code,\n ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code,\n ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code\n ];\n var errorCodeFixIdMap = (_a = {},\n _a[ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code] = [\n ts.Diagnostics.Add_override_modifier, fixAddOverrideId, ts.Diagnostics.Add_all_missing_override_modifiers,\n ],\n _a[ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code] = [\n ts.Diagnostics.Remove_override_modifier, fixRemoveOverrideId, ts.Diagnostics.Remove_all_unnecessary_override_modifiers\n ],\n _a[ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code] = [\n ts.Diagnostics.Add_override_modifier, fixAddOverrideId, ts.Diagnostics.Add_all_missing_override_modifiers,\n ],\n _a[ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code] = [\n ts.Diagnostics.Add_override_modifier, fixAddOverrideId, ts.Diagnostics.Remove_all_unnecessary_override_modifiers\n ],\n _a[ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code] = [\n ts.Diagnostics.Remove_override_modifier, fixRemoveOverrideId, ts.Diagnostics.Remove_all_unnecessary_override_modifiers\n ],\n _a);\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var errorCode = context.errorCode, span = context.span, sourceFile = context.sourceFile;\n var info = errorCodeFixIdMap[errorCode];\n if (!info)\n return ts.emptyArray;\n var descriptions = info[0], fixId = info[1], fixAllDescriptions = info[2];\n if (ts.isSourceFileJS(sourceFile))\n return ts.emptyArray;\n var changes = ts.textChanges.ChangeTracker.with(context, function (changes) { return dispatchChanges(changes, context, errorCode, span.start); });\n return [\n codefix.createCodeFixActionMaybeFixAll(fixName, changes, descriptions, fixId, fixAllDescriptions)\n ];\n },\n fixIds: [fixName, fixAddOverrideId, fixRemoveOverrideId],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var code = diag.code, start = diag.start, file = diag.file;\n var info = errorCodeFixIdMap[code];\n if (!info || info[1] !== context.fixId || ts.isSourceFileJS(file)) {\n return;\n }\n dispatchChanges(changes, context, code, start);\n });\n }\n });\n function dispatchChanges(changeTracker, context, errorCode, pos) {\n switch (errorCode) {\n case ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_a_member_in_the_base_class_0.code:\n case ts.Diagnostics.This_member_must_have_an_override_modifier_because_it_overrides_an_abstract_method_that_is_declared_in_the_base_class_0.code:\n case ts.Diagnostics.This_parameter_property_must_have_an_override_modifier_because_it_overrides_a_member_in_base_class_0.code:\n return doAddOverrideModifierChange(changeTracker, context.sourceFile, pos);\n case ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0.code:\n case ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_its_containing_class_0_does_not_extend_another_class.code:\n return doRemoveOverrideModifierChange(changeTracker, context.sourceFile, pos);\n default:\n ts.Debug.fail(\"Unexpected error code: \" + errorCode);\n }\n }\n function doAddOverrideModifierChange(changeTracker, sourceFile, pos) {\n var classElement = findContainerClassElementLike(sourceFile, pos);\n var modifiers = classElement.modifiers || ts.emptyArray;\n var staticModifier = ts.find(modifiers, ts.isStaticModifier);\n var abstractModifier = ts.find(modifiers, ts.isAbstractModifier);\n var accessibilityModifier = ts.find(modifiers, function (m) { return ts.isAccessibilityModifier(m.kind); });\n var modifierPos = abstractModifier ? abstractModifier.end :\n staticModifier ? staticModifier.end :\n accessibilityModifier ? accessibilityModifier.end :\n classElement.decorators ? ts.skipTrivia(sourceFile.text, classElement.decorators.end) : classElement.getStart(sourceFile);\n var options = accessibilityModifier || staticModifier || abstractModifier ? { prefix: \" \" } : { suffix: \" \" };\n changeTracker.insertModifierAt(sourceFile, modifierPos, 157 /* OverrideKeyword */, options);\n }\n function doRemoveOverrideModifierChange(changeTracker, sourceFile, pos) {\n var classElement = findContainerClassElementLike(sourceFile, pos);\n var overrideModifier = classElement.modifiers && ts.find(classElement.modifiers, function (modifier) { return modifier.kind === 157 /* OverrideKeyword */; });\n ts.Debug.assertIsDefined(overrideModifier);\n changeTracker.deleteModifier(sourceFile, overrideModifier);\n }\n function isClassElementLikeHasJSDoc(node) {\n switch (node.kind) {\n case 169 /* Constructor */:\n case 165 /* PropertyDeclaration */:\n case 167 /* MethodDeclaration */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n return true;\n case 162 /* Parameter */:\n return ts.isParameterPropertyDeclaration(node, node.parent);\n default:\n return false;\n }\n }\n function findContainerClassElementLike(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var classElement = ts.findAncestor(token, function (node) {\n if (ts.isClassLike(node))\n return \"quit\";\n return isClassElementLikeHasJSDoc(node);\n });\n ts.Debug.assert(classElement && isClassElementLikeHasJSDoc(classElement));\n return classElement;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixNoPropertyAccessFromIndexSignature\";\n var errorCodes = [\n ts.Diagnostics.Property_0_comes_from_an_index_signature_so_it_must_be_accessed_with_0.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixId],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span, preferences = context.preferences;\n var property = getPropertyAccessExpression(sourceFile, span.start);\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, property, preferences); });\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Use_element_access_for_0, property.name.text], fixId, ts.Diagnostics.Use_element_access_for_all_undeclared_properties)];\n },\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return doChange(changes, diag.file, getPropertyAccessExpression(diag.file, diag.start), context.preferences); });\n }\n });\n function doChange(changes, sourceFile, node, preferences) {\n var quotePreference = ts.getQuotePreference(sourceFile, preferences);\n var argumentsExpression = ts.factory.createStringLiteral(node.name.text, quotePreference === 0 /* Single */);\n changes.replaceNode(sourceFile, node, ts.isPropertyAccessChain(node) ?\n ts.factory.createElementAccessChain(node.expression, node.questionDotToken, argumentsExpression) :\n ts.factory.createElementAccessExpression(node.expression, argumentsExpression));\n }\n function getPropertyAccessExpression(sourceFile, pos) {\n return ts.cast(ts.getTokenAtPosition(sourceFile, pos).parent, ts.isPropertyAccessExpression);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixImplicitThis\";\n var errorCodes = [ts.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, span = context.span;\n var diagnostic;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) {\n diagnostic = doChange(t, sourceFile, span.start, program.getTypeChecker());\n });\n return diagnostic ? [codefix.createCodeFixAction(fixId, changes, diagnostic, fixId, ts.Diagnostics.Fix_all_implicit_this_errors)] : ts.emptyArray;\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n doChange(changes, diag.file, diag.start, context.program.getTypeChecker());\n }); },\n });\n function doChange(changes, sourceFile, pos, checker) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n ts.Debug.assert(token.kind === 108 /* ThisKeyword */);\n var fn = ts.getThisContainer(token, /*includeArrowFunctions*/ false);\n if (!ts.isFunctionDeclaration(fn) && !ts.isFunctionExpression(fn))\n return undefined;\n if (!ts.isSourceFile(ts.getThisContainer(fn, /*includeArrowFunctions*/ false))) { // 'this' is defined outside, convert to arrow function\n var fnKeyword = ts.Debug.assertDefined(ts.findChildOfKind(fn, 98 /* FunctionKeyword */, sourceFile));\n var name = fn.name;\n var body = ts.Debug.assertDefined(fn.body); // Should be defined because the function contained a 'this' expression\n if (ts.isFunctionExpression(fn)) {\n if (name && ts.FindAllReferences.Core.isSymbolReferencedInFile(name, checker, sourceFile, body)) {\n // Function expression references itself. To fix we would have to extract it to a const.\n return undefined;\n }\n // `function() {}` --> `() => {}`\n changes.delete(sourceFile, fnKeyword);\n if (name) {\n changes.delete(sourceFile, name);\n }\n changes.insertText(sourceFile, body.pos, \" =>\");\n return [ts.Diagnostics.Convert_function_expression_0_to_arrow_function, name ? name.text : ts.ANONYMOUS];\n }\n else {\n // `function f() {}` => `const f = () => {}`\n // `name` should be defined because we only do this in inner contexts, and name is only undefined for `export default function() {}`.\n changes.replaceNode(sourceFile, fnKeyword, ts.factory.createToken(85 /* ConstKeyword */));\n changes.insertText(sourceFile, name.end, \" = \");\n changes.insertText(sourceFile, body.pos, \" =>\");\n return [ts.Diagnostics.Convert_function_declaration_0_to_arrow_function, name.text];\n }\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixIncorrectNamedTupleSyntax\";\n var errorCodes = [\n ts.Diagnostics.A_labeled_tuple_element_is_declared_as_optional_with_a_question_mark_after_the_name_and_before_the_colon_rather_than_after_the_type.code,\n ts.Diagnostics.A_labeled_tuple_element_is_declared_as_rest_with_a_before_the_name_rather_than_before_the_type.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var namedTupleMember = getNamedTupleMember(sourceFile, span.start);\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, namedTupleMember); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels, fixId, ts.Diagnostics.Move_labeled_tuple_element_modifiers_to_labels)];\n },\n fixIds: [fixId]\n });\n function getNamedTupleMember(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n return ts.findAncestor(token, function (t) { return t.kind === 195 /* NamedTupleMember */; });\n }\n function doChange(changes, sourceFile, namedTupleMember) {\n if (!namedTupleMember) {\n return;\n }\n var unwrappedType = namedTupleMember.type;\n var sawOptional = false;\n var sawRest = false;\n while (unwrappedType.kind === 183 /* OptionalType */ || unwrappedType.kind === 184 /* RestType */ || unwrappedType.kind === 189 /* ParenthesizedType */) {\n if (unwrappedType.kind === 183 /* OptionalType */) {\n sawOptional = true;\n }\n else if (unwrappedType.kind === 184 /* RestType */) {\n sawRest = true;\n }\n unwrappedType = unwrappedType.type;\n }\n var updated = ts.factory.updateNamedTupleMember(namedTupleMember, namedTupleMember.dotDotDotToken || (sawRest ? ts.factory.createToken(25 /* DotDotDotToken */) : undefined), namedTupleMember.name, namedTupleMember.questionToken || (sawOptional ? ts.factory.createToken(57 /* QuestionToken */) : undefined), unwrappedType);\n if (updated === namedTupleMember) {\n return;\n }\n changes.replaceNode(sourceFile, namedTupleMember, updated);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixSpelling\";\n var errorCodes = [\n ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,\n ts.Diagnostics.Property_0_may_not_exist_on_type_1_Did_you_mean_2.code,\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_1.code,\n ts.Diagnostics.Could_not_find_name_0_Did_you_mean_1.code,\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code,\n ts.Diagnostics._0_has_no_exported_member_named_1_Did_you_mean_2.code,\n ts.Diagnostics.This_member_cannot_have_an_override_modifier_because_it_is_not_declared_in_the_base_class_0_Did_you_mean_1.code,\n // for JSX class components\n ts.Diagnostics.No_overload_matches_this_call.code,\n // for JSX FC\n ts.Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, errorCode = context.errorCode;\n var info = getInfo(sourceFile, context.span.start, context, errorCode);\n if (!info)\n return undefined;\n var node = info.node, suggestedSymbol = info.suggestedSymbol;\n var target = context.host.getCompilationSettings().target;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, node, suggestedSymbol, target); });\n return [codefix.createCodeFixAction(\"spelling\", changes, [ts.Diagnostics.Change_spelling_to_0, ts.symbolName(suggestedSymbol)], fixId, ts.Diagnostics.Fix_all_detected_spelling_errors)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, diag.start, context, diag.code);\n var target = context.host.getCompilationSettings().target;\n if (info)\n doChange(changes, context.sourceFile, info.node, info.suggestedSymbol, target);\n }); },\n });\n function getInfo(sourceFile, pos, context, errorCode) {\n // This is the identifier of the misspelled word. eg:\n // this.speling = 1;\n // ^^^^^^^\n var node = ts.getTokenAtPosition(sourceFile, pos);\n var parent = node.parent;\n // Only fix spelling for No_overload_matches_this_call emitted on the React class component\n if ((errorCode === ts.Diagnostics.No_overload_matches_this_call.code ||\n errorCode === ts.Diagnostics.Type_0_is_not_assignable_to_type_1.code) &&\n !ts.isJsxAttribute(parent))\n return undefined;\n var checker = context.program.getTypeChecker();\n var suggestedSymbol;\n if (ts.isPropertyAccessExpression(parent) && parent.name === node) {\n ts.Debug.assert(ts.isMemberName(node), \"Expected an identifier for spelling (property access)\");\n var containingType = checker.getTypeAtLocation(parent.expression);\n if (parent.flags & 32 /* OptionalChain */) {\n containingType = checker.getNonNullableType(containingType);\n }\n suggestedSymbol = checker.getSuggestedSymbolForNonexistentProperty(node, containingType);\n }\n else if (ts.isQualifiedName(parent) && parent.right === node) {\n var symbol = checker.getSymbolAtLocation(parent.left);\n if (symbol && symbol.flags & 1536 /* Module */) {\n suggestedSymbol = checker.getSuggestedSymbolForNonexistentModule(parent.right, symbol);\n }\n }\n else if (ts.isImportSpecifier(parent) && parent.name === node) {\n ts.Debug.assertNode(node, ts.isIdentifier, \"Expected an identifier for spelling (import)\");\n var importDeclaration = ts.findAncestor(node, ts.isImportDeclaration);\n var resolvedSourceFile = getResolvedSourceFileFromImportDeclaration(sourceFile, context, importDeclaration);\n if (resolvedSourceFile && resolvedSourceFile.symbol) {\n suggestedSymbol = checker.getSuggestedSymbolForNonexistentModule(node, resolvedSourceFile.symbol);\n }\n }\n else if (ts.isJsxAttribute(parent) && parent.name === node) {\n ts.Debug.assertNode(node, ts.isIdentifier, \"Expected an identifier for JSX attribute\");\n var tag = ts.findAncestor(node, ts.isJsxOpeningLikeElement);\n var props = checker.getContextualTypeForArgumentAtIndex(tag, 0);\n suggestedSymbol = checker.getSuggestedSymbolForNonexistentJSXAttribute(node, props);\n }\n else if (ts.hasSyntacticModifier(parent, 16384 /* Override */) && ts.isClassElement(parent) && parent.name === node) {\n var baseDeclaration = ts.findAncestor(node, ts.isClassLike);\n var baseTypeNode = baseDeclaration ? ts.getEffectiveBaseTypeNode(baseDeclaration) : undefined;\n var baseType = baseTypeNode ? checker.getTypeAtLocation(baseTypeNode) : undefined;\n if (baseType) {\n suggestedSymbol = checker.getSuggestedSymbolForNonexistentClassMember(ts.getTextOfNode(node), baseType);\n }\n }\n else {\n var meaning = ts.getMeaningFromLocation(node);\n var name = ts.getTextOfNode(node);\n ts.Debug.assert(name !== undefined, \"name should be defined\");\n suggestedSymbol = checker.getSuggestedSymbolForNonexistentSymbol(node, name, convertSemanticMeaningToSymbolFlags(meaning));\n }\n return suggestedSymbol === undefined ? undefined : { node: node, suggestedSymbol: suggestedSymbol };\n }\n function doChange(changes, sourceFile, node, suggestedSymbol, target) {\n var suggestion = ts.symbolName(suggestedSymbol);\n if (!ts.isIdentifierText(suggestion, target) && ts.isPropertyAccessExpression(node.parent)) {\n var valDecl = suggestedSymbol.valueDeclaration;\n if (valDecl && ts.isNamedDeclaration(valDecl) && ts.isPrivateIdentifier(valDecl.name)) {\n changes.replaceNode(sourceFile, node, ts.factory.createIdentifier(suggestion));\n }\n else {\n changes.replaceNode(sourceFile, node.parent, ts.factory.createElementAccessExpression(node.parent.expression, ts.factory.createStringLiteral(suggestion)));\n }\n }\n else {\n changes.replaceNode(sourceFile, node, ts.factory.createIdentifier(suggestion));\n }\n }\n function convertSemanticMeaningToSymbolFlags(meaning) {\n var flags = 0;\n if (meaning & 4 /* Namespace */) {\n flags |= 1920 /* Namespace */;\n }\n if (meaning & 2 /* Type */) {\n flags |= 788968 /* Type */;\n }\n if (meaning & 1 /* Value */) {\n flags |= 111551 /* Value */;\n }\n return flags;\n }\n function getResolvedSourceFileFromImportDeclaration(sourceFile, context, importDeclaration) {\n if (!importDeclaration || !ts.isStringLiteralLike(importDeclaration.moduleSpecifier))\n return undefined;\n var resolvedModule = ts.getResolvedModule(sourceFile, importDeclaration.moduleSpecifier.text);\n if (!resolvedModule)\n return undefined;\n return context.program.getSourceFile(resolvedModule.resolvedFileName);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"returnValueCorrect\";\n var fixIdAddReturnStatement = \"fixAddReturnStatement\";\n var fixRemoveBracesFromArrowFunctionBody = \"fixRemoveBracesFromArrowFunctionBody\";\n var fixIdWrapTheBlockWithParen = \"fixWrapTheBlockWithParen\";\n var errorCodes = [\n ts.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code,\n ts.Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code\n ];\n var ProblemKind;\n (function (ProblemKind) {\n ProblemKind[ProblemKind[\"MissingReturnStatement\"] = 0] = \"MissingReturnStatement\";\n ProblemKind[ProblemKind[\"MissingParentheses\"] = 1] = \"MissingParentheses\";\n })(ProblemKind || (ProblemKind = {}));\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixIdAddReturnStatement, fixRemoveBracesFromArrowFunctionBody, fixIdWrapTheBlockWithParen],\n getCodeActions: function (context) {\n var program = context.program, sourceFile = context.sourceFile, start = context.span.start, errorCode = context.errorCode;\n var info = getInfo(program.getTypeChecker(), sourceFile, start, errorCode);\n if (!info)\n return undefined;\n if (info.kind === ProblemKind.MissingReturnStatement) {\n return ts.append([getActionForfixAddReturnStatement(context, info.expression, info.statement)], ts.isArrowFunction(info.declaration) ? getActionForFixRemoveBracesFromArrowFunctionBody(context, info.declaration, info.expression, info.commentSource) : undefined);\n }\n else {\n return [getActionForfixWrapTheBlockWithParen(context, info.declaration, info.expression)];\n }\n },\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(context.program.getTypeChecker(), diag.file, diag.start, diag.code);\n if (!info)\n return undefined;\n switch (context.fixId) {\n case fixIdAddReturnStatement:\n addReturnStatement(changes, diag.file, info.expression, info.statement);\n break;\n case fixRemoveBracesFromArrowFunctionBody:\n if (!ts.isArrowFunction(info.declaration))\n return undefined;\n removeBlockBodyBrace(changes, diag.file, info.declaration, info.expression, info.commentSource, /* withParen */ false);\n break;\n case fixIdWrapTheBlockWithParen:\n if (!ts.isArrowFunction(info.declaration))\n return undefined;\n wrapBlockWithParen(changes, diag.file, info.declaration, info.expression);\n break;\n default:\n ts.Debug.fail(JSON.stringify(context.fixId));\n }\n }); },\n });\n function createObjectTypeFromLabeledExpression(checker, label, expression) {\n var member = checker.createSymbol(4 /* Property */, label.escapedText);\n member.type = checker.getTypeAtLocation(expression);\n var members = ts.createSymbolTable([member]);\n return checker.createAnonymousType(/*symbol*/ undefined, members, [], [], []);\n }\n function getFixInfo(checker, declaration, expectType, isFunctionType) {\n if (!declaration.body || !ts.isBlock(declaration.body) || ts.length(declaration.body.statements) !== 1)\n return undefined;\n var firstStatement = ts.first(declaration.body.statements);\n if (ts.isExpressionStatement(firstStatement) && checkFixedAssignableTo(checker, declaration, checker.getTypeAtLocation(firstStatement.expression), expectType, isFunctionType)) {\n return {\n declaration: declaration,\n kind: ProblemKind.MissingReturnStatement,\n expression: firstStatement.expression,\n statement: firstStatement,\n commentSource: firstStatement.expression\n };\n }\n else if (ts.isLabeledStatement(firstStatement) && ts.isExpressionStatement(firstStatement.statement)) {\n var node = ts.factory.createObjectLiteralExpression([ts.factory.createPropertyAssignment(firstStatement.label, firstStatement.statement.expression)]);\n var nodeType = createObjectTypeFromLabeledExpression(checker, firstStatement.label, firstStatement.statement.expression);\n if (checkFixedAssignableTo(checker, declaration, nodeType, expectType, isFunctionType)) {\n return ts.isArrowFunction(declaration) ? {\n declaration: declaration,\n kind: ProblemKind.MissingParentheses,\n expression: node,\n statement: firstStatement,\n commentSource: firstStatement.statement.expression\n } : {\n declaration: declaration,\n kind: ProblemKind.MissingReturnStatement,\n expression: node,\n statement: firstStatement,\n commentSource: firstStatement.statement.expression\n };\n }\n }\n else if (ts.isBlock(firstStatement) && ts.length(firstStatement.statements) === 1) {\n var firstBlockStatement = ts.first(firstStatement.statements);\n if (ts.isLabeledStatement(firstBlockStatement) && ts.isExpressionStatement(firstBlockStatement.statement)) {\n var node = ts.factory.createObjectLiteralExpression([ts.factory.createPropertyAssignment(firstBlockStatement.label, firstBlockStatement.statement.expression)]);\n var nodeType = createObjectTypeFromLabeledExpression(checker, firstBlockStatement.label, firstBlockStatement.statement.expression);\n if (checkFixedAssignableTo(checker, declaration, nodeType, expectType, isFunctionType)) {\n return {\n declaration: declaration,\n kind: ProblemKind.MissingReturnStatement,\n expression: node,\n statement: firstStatement,\n commentSource: firstBlockStatement\n };\n }\n }\n }\n return undefined;\n }\n function checkFixedAssignableTo(checker, declaration, exprType, type, isFunctionType) {\n if (isFunctionType) {\n var sig = checker.getSignatureFromDeclaration(declaration);\n if (sig) {\n if (ts.hasSyntacticModifier(declaration, 256 /* Async */)) {\n exprType = checker.createPromiseType(exprType);\n }\n var newSig = checker.createSignature(declaration, sig.typeParameters, sig.thisParameter, sig.parameters, exprType, \n /*typePredicate*/ undefined, sig.minArgumentCount, sig.flags);\n exprType = checker.createAnonymousType(\n /*symbol*/ undefined, ts.createSymbolTable(), [newSig], [], []);\n }\n else {\n exprType = checker.getAnyType();\n }\n }\n return checker.isTypeAssignableTo(exprType, type);\n }\n function getInfo(checker, sourceFile, position, errorCode) {\n var node = ts.getTokenAtPosition(sourceFile, position);\n if (!node.parent)\n return undefined;\n var declaration = ts.findAncestor(node.parent, ts.isFunctionLikeDeclaration);\n switch (errorCode) {\n case ts.Diagnostics.A_function_whose_declared_type_is_neither_void_nor_any_must_return_a_value.code:\n if (!declaration || !declaration.body || !declaration.type || !ts.rangeContainsRange(declaration.type, node))\n return undefined;\n return getFixInfo(checker, declaration, checker.getTypeFromTypeNode(declaration.type), /* isFunctionType */ false);\n case ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code:\n if (!declaration || !ts.isCallExpression(declaration.parent) || !declaration.body)\n return undefined;\n var pos = declaration.parent.arguments.indexOf(declaration);\n var type = checker.getContextualTypeForArgumentAtIndex(declaration.parent, pos);\n if (!type)\n return undefined;\n return getFixInfo(checker, declaration, type, /* isFunctionType */ true);\n case ts.Diagnostics.Type_0_is_not_assignable_to_type_1.code:\n if (!ts.isDeclarationName(node) || !ts.isVariableLike(node.parent) && !ts.isJsxAttribute(node.parent))\n return undefined;\n var initializer = getVariableLikeInitializer(node.parent);\n if (!initializer || !ts.isFunctionLikeDeclaration(initializer) || !initializer.body)\n return undefined;\n return getFixInfo(checker, initializer, checker.getTypeAtLocation(node.parent), /* isFunctionType */ true);\n }\n return undefined;\n }\n function getVariableLikeInitializer(declaration) {\n switch (declaration.kind) {\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */:\n case 201 /* BindingElement */:\n case 165 /* PropertyDeclaration */:\n case 291 /* PropertyAssignment */:\n return declaration.initializer;\n case 283 /* JsxAttribute */:\n return declaration.initializer && (ts.isJsxExpression(declaration.initializer) ? declaration.initializer.expression : undefined);\n case 292 /* ShorthandPropertyAssignment */:\n case 164 /* PropertySignature */:\n case 294 /* EnumMember */:\n case 342 /* JSDocPropertyTag */:\n case 335 /* JSDocParameterTag */:\n return undefined;\n }\n }\n function addReturnStatement(changes, sourceFile, expression, statement) {\n ts.suppressLeadingAndTrailingTrivia(expression);\n var probablyNeedSemi = ts.probablyUsesSemicolons(sourceFile);\n changes.replaceNode(sourceFile, statement, ts.factory.createReturnStatement(expression), {\n leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude,\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Exclude,\n suffix: probablyNeedSemi ? \";\" : undefined\n });\n }\n function removeBlockBodyBrace(changes, sourceFile, declaration, expression, commentSource, withParen) {\n var newBody = (withParen || ts.needsParentheses(expression)) ? ts.factory.createParenthesizedExpression(expression) : expression;\n ts.suppressLeadingAndTrailingTrivia(commentSource);\n ts.copyComments(commentSource, newBody);\n changes.replaceNode(sourceFile, declaration.body, newBody);\n }\n function wrapBlockWithParen(changes, sourceFile, declaration, expression) {\n changes.replaceNode(sourceFile, declaration.body, ts.factory.createParenthesizedExpression(expression));\n }\n function getActionForfixAddReturnStatement(context, expression, statement) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addReturnStatement(t, context.sourceFile, expression, statement); });\n return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_a_return_statement, fixIdAddReturnStatement, ts.Diagnostics.Add_all_missing_return_statement);\n }\n function getActionForFixRemoveBracesFromArrowFunctionBody(context, declaration, expression, commentSource) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return removeBlockBodyBrace(t, context.sourceFile, declaration, expression, commentSource, /* withParen */ false); });\n return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Remove_braces_from_arrow_function_body, fixRemoveBracesFromArrowFunctionBody, ts.Diagnostics.Remove_braces_from_all_arrow_function_bodies_with_relevant_issues);\n }\n function getActionForfixWrapTheBlockWithParen(context, declaration, expression) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return wrapBlockWithParen(t, context.sourceFile, declaration, expression); });\n return codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Wrap_the_following_body_with_parentheses_which_should_be_an_object_literal, fixIdWrapTheBlockWithParen, ts.Diagnostics.Wrap_all_object_literal_with_parentheses);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixMissingMember = \"fixMissingMember\";\n var fixMissingProperties = \"fixMissingProperties\";\n var fixMissingAttributes = \"fixMissingAttributes\";\n var fixMissingFunctionDeclaration = \"fixMissingFunctionDeclaration\";\n var errorCodes = [\n ts.Diagnostics.Property_0_does_not_exist_on_type_1.code,\n ts.Diagnostics.Property_0_does_not_exist_on_type_1_Did_you_mean_2.code,\n ts.Diagnostics.Property_0_is_missing_in_type_1_but_required_in_type_2.code,\n ts.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2.code,\n ts.Diagnostics.Type_0_is_missing_the_following_properties_from_type_1_Colon_2_and_3_more.code,\n ts.Diagnostics.Cannot_find_name_0.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var typeChecker = context.program.getTypeChecker();\n var info = getInfo(context.sourceFile, context.span.start, typeChecker, context.program);\n if (!info) {\n return undefined;\n }\n if (info.kind === 3 /* ObjectLiteral */) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addObjectLiteralProperties(t, context, info); });\n return [codefix.createCodeFixAction(fixMissingProperties, changes, ts.Diagnostics.Add_missing_properties, fixMissingProperties, ts.Diagnostics.Add_all_missing_properties)];\n }\n if (info.kind === 4 /* JsxAttributes */) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addJsxAttributes(t, context, info); });\n return [codefix.createCodeFixAction(fixMissingAttributes, changes, ts.Diagnostics.Add_missing_attributes, fixMissingAttributes, ts.Diagnostics.Add_all_missing_attributes)];\n }\n if (info.kind === 2 /* Function */) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addFunctionDeclaration(t, context, info); });\n return [codefix.createCodeFixAction(fixMissingFunctionDeclaration, changes, [ts.Diagnostics.Add_missing_function_declaration_0, info.token.text], fixMissingFunctionDeclaration, ts.Diagnostics.Add_all_missing_function_declarations)];\n }\n if (info.kind === 0 /* Enum */) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addEnumMemberDeclaration(t, context.program.getTypeChecker(), info); });\n return [codefix.createCodeFixAction(fixMissingMember, changes, [ts.Diagnostics.Add_missing_enum_member_0, info.token.text], fixMissingMember, ts.Diagnostics.Add_all_missing_members)];\n }\n return ts.concatenate(getActionsForMissingMethodDeclaration(context, info), getActionsForMissingMemberDeclaration(context, info));\n },\n fixIds: [fixMissingMember, fixMissingFunctionDeclaration, fixMissingProperties, fixMissingAttributes],\n getAllCodeActions: function (context) {\n var program = context.program, fixId = context.fixId;\n var checker = program.getTypeChecker();\n var seen = new ts.Map();\n var typeDeclToMembers = new ts.Map();\n return codefix.createCombinedCodeActions(ts.textChanges.ChangeTracker.with(context, function (changes) {\n codefix.eachDiagnostic(context, errorCodes, function (diag) {\n var info = getInfo(diag.file, diag.start, checker, context.program);\n if (!info || !ts.addToSeen(seen, ts.getNodeId(info.parentDeclaration) + \"#\" + info.token.text)) {\n return;\n }\n if (fixId === fixMissingFunctionDeclaration && info.kind === 2 /* Function */) {\n addFunctionDeclaration(changes, context, info);\n }\n else if (fixId === fixMissingProperties && info.kind === 3 /* ObjectLiteral */) {\n addObjectLiteralProperties(changes, context, info);\n }\n else if (fixId === fixMissingAttributes && info.kind === 4 /* JsxAttributes */) {\n addJsxAttributes(changes, context, info);\n }\n else {\n if (info.kind === 0 /* Enum */) {\n addEnumMemberDeclaration(changes, checker, info);\n }\n if (info.kind === 1 /* ClassOrInterface */) {\n var parentDeclaration = info.parentDeclaration, token_1 = info.token;\n var infos = ts.getOrUpdate(typeDeclToMembers, parentDeclaration, function () { return []; });\n if (!infos.some(function (i) { return i.token.text === token_1.text; })) {\n infos.push(info);\n }\n }\n }\n });\n typeDeclToMembers.forEach(function (infos, classDeclaration) {\n var supers = codefix.getAllSupers(classDeclaration, checker);\n var _loop_14 = function (info) {\n // If some superclass added this property, don't add it again.\n if (supers.some(function (superClassOrInterface) {\n var superInfos = typeDeclToMembers.get(superClassOrInterface);\n return !!superInfos && superInfos.some(function (_a) {\n var token = _a.token;\n return token.text === info.token.text;\n });\n }))\n return \"continue\";\n var parentDeclaration = info.parentDeclaration, declSourceFile = info.declSourceFile, modifierFlags = info.modifierFlags, token = info.token, call = info.call, isJSFile = info.isJSFile;\n // Always prefer to add a method declaration if possible.\n if (call && !ts.isPrivateIdentifier(token)) {\n addMethodDeclaration(context, changes, call, token, modifierFlags & 32 /* Static */, parentDeclaration, declSourceFile);\n }\n else {\n if (isJSFile && !ts.isInterfaceDeclaration(parentDeclaration)) {\n addMissingMemberInJs(changes, declSourceFile, parentDeclaration, token, !!(modifierFlags & 32 /* Static */));\n }\n else {\n var typeNode = getTypeNode(program.getTypeChecker(), parentDeclaration, token);\n addPropertyDeclaration(changes, declSourceFile, parentDeclaration, token.text, typeNode, modifierFlags & 32 /* Static */);\n }\n }\n };\n for (var _i = 0, infos_1 = infos; _i < infos_1.length; _i++) {\n var info = infos_1[_i];\n _loop_14(info);\n }\n });\n }));\n },\n });\n var InfoKind;\n (function (InfoKind) {\n InfoKind[InfoKind[\"Enum\"] = 0] = \"Enum\";\n InfoKind[InfoKind[\"ClassOrInterface\"] = 1] = \"ClassOrInterface\";\n InfoKind[InfoKind[\"Function\"] = 2] = \"Function\";\n InfoKind[InfoKind[\"ObjectLiteral\"] = 3] = \"ObjectLiteral\";\n InfoKind[InfoKind[\"JsxAttributes\"] = 4] = \"JsxAttributes\";\n })(InfoKind || (InfoKind = {}));\n function getInfo(sourceFile, tokenPos, checker, program) {\n // The identifier of the missing property. eg:\n // this.missing = 1;\n // ^^^^^^^\n var token = ts.getTokenAtPosition(sourceFile, tokenPos);\n if (!ts.isIdentifier(token) && !ts.isPrivateIdentifier(token)) {\n return undefined;\n }\n var parent = token.parent;\n if (ts.isIdentifier(token) && ts.hasInitializer(parent) && parent.initializer && ts.isObjectLiteralExpression(parent.initializer)) {\n var properties = ts.arrayFrom(checker.getUnmatchedProperties(checker.getTypeAtLocation(parent.initializer), checker.getTypeAtLocation(token), /* requireOptionalProperties */ false, /* matchDiscriminantProperties */ false));\n if (ts.length(properties)) {\n return { kind: 3 /* ObjectLiteral */, token: token, properties: properties, parentDeclaration: parent.initializer };\n }\n }\n if (ts.isIdentifier(token) && ts.isJsxOpeningLikeElement(token.parent)) {\n var attributes = getUnmatchedAttributes(checker, token.parent);\n if (ts.length(attributes)) {\n return { kind: 4 /* JsxAttributes */, token: token, attributes: attributes, parentDeclaration: token.parent };\n }\n }\n if (ts.isIdentifier(token) && ts.isCallExpression(parent)) {\n return { kind: 2 /* Function */, token: token, call: parent, sourceFile: sourceFile, modifierFlags: 0 /* None */, parentDeclaration: sourceFile };\n }\n if (!ts.isPropertyAccessExpression(parent)) {\n return undefined;\n }\n var leftExpressionType = ts.skipConstraint(checker.getTypeAtLocation(parent.expression));\n var symbol = leftExpressionType.symbol;\n if (!symbol || !symbol.declarations) {\n return undefined;\n }\n if (ts.isIdentifier(token) && ts.isCallExpression(parent.parent)) {\n var moduleDeclaration = ts.find(symbol.declarations, ts.isModuleDeclaration);\n var moduleDeclarationSourceFile = moduleDeclaration === null || moduleDeclaration === void 0 ? void 0 : moduleDeclaration.getSourceFile();\n if (moduleDeclaration && moduleDeclarationSourceFile && !isSourceFileFromLibrary(program, moduleDeclarationSourceFile)) {\n return { kind: 2 /* Function */, token: token, call: parent.parent, sourceFile: sourceFile, modifierFlags: 1 /* Export */, parentDeclaration: moduleDeclaration };\n }\n var moduleSourceFile = ts.find(symbol.declarations, ts.isSourceFile);\n if (sourceFile.commonJsModuleIndicator) {\n return;\n }\n if (moduleSourceFile && !isSourceFileFromLibrary(program, moduleSourceFile)) {\n return { kind: 2 /* Function */, token: token, call: parent.parent, sourceFile: moduleSourceFile, modifierFlags: 1 /* Export */, parentDeclaration: moduleSourceFile };\n }\n }\n var classDeclaration = ts.find(symbol.declarations, ts.isClassLike);\n // Don't suggest adding private identifiers to anything other than a class.\n if (!classDeclaration && ts.isPrivateIdentifier(token)) {\n return undefined;\n }\n // Prefer to change the class instead of the interface if they are merged\n var classOrInterface = classDeclaration || ts.find(symbol.declarations, ts.isInterfaceDeclaration);\n if (classOrInterface && !isSourceFileFromLibrary(program, classOrInterface.getSourceFile())) {\n var makeStatic = (leftExpressionType.target || leftExpressionType) !== checker.getDeclaredTypeOfSymbol(symbol);\n if (makeStatic && (ts.isPrivateIdentifier(token) || ts.isInterfaceDeclaration(classOrInterface))) {\n return undefined;\n }\n var declSourceFile = classOrInterface.getSourceFile();\n var modifierFlags = (makeStatic ? 32 /* Static */ : 0) | (ts.startsWithUnderscore(token.text) ? 8 /* Private */ : 0);\n var isJSFile = ts.isSourceFileJS(declSourceFile);\n var call = ts.tryCast(parent.parent, ts.isCallExpression);\n return { kind: 1 /* ClassOrInterface */, token: token, call: call, modifierFlags: modifierFlags, parentDeclaration: classOrInterface, declSourceFile: declSourceFile, isJSFile: isJSFile };\n }\n var enumDeclaration = ts.find(symbol.declarations, ts.isEnumDeclaration);\n if (enumDeclaration && !ts.isPrivateIdentifier(token) && !isSourceFileFromLibrary(program, enumDeclaration.getSourceFile())) {\n return { kind: 0 /* Enum */, token: token, parentDeclaration: enumDeclaration };\n }\n return undefined;\n }\n function isSourceFileFromLibrary(program, node) {\n return program.isSourceFileFromExternalLibrary(node) || program.isSourceFileDefaultLibrary(node);\n }\n function getActionsForMissingMemberDeclaration(context, info) {\n return info.isJSFile ? ts.singleElementArray(createActionForAddMissingMemberInJavascriptFile(context, info)) :\n createActionsForAddMissingMemberInTypeScriptFile(context, info);\n }\n function createActionForAddMissingMemberInJavascriptFile(context, _a) {\n var parentDeclaration = _a.parentDeclaration, declSourceFile = _a.declSourceFile, modifierFlags = _a.modifierFlags, token = _a.token;\n if (ts.isInterfaceDeclaration(parentDeclaration)) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addMissingMemberInJs(t, declSourceFile, parentDeclaration, token, !!(modifierFlags & 32 /* Static */)); });\n if (changes.length === 0) {\n return undefined;\n }\n var diagnostic = modifierFlags & 32 /* Static */ ? ts.Diagnostics.Initialize_static_property_0 :\n ts.isPrivateIdentifier(token) ? ts.Diagnostics.Declare_a_private_field_named_0 : ts.Diagnostics.Initialize_property_0_in_the_constructor;\n return codefix.createCodeFixAction(fixMissingMember, changes, [diagnostic, token.text], fixMissingMember, ts.Diagnostics.Add_all_missing_members);\n }\n function addMissingMemberInJs(changeTracker, declSourceFile, classDeclaration, token, makeStatic) {\n var tokenName = token.text;\n if (makeStatic) {\n if (classDeclaration.kind === 224 /* ClassExpression */) {\n return;\n }\n var className = classDeclaration.name.getText();\n var staticInitialization = initializePropertyToUndefined(ts.factory.createIdentifier(className), tokenName);\n changeTracker.insertNodeAfter(declSourceFile, classDeclaration, staticInitialization);\n }\n else if (ts.isPrivateIdentifier(token)) {\n var property = ts.factory.createPropertyDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, tokenName, \n /*questionToken*/ undefined, \n /*type*/ undefined, \n /*initializer*/ undefined);\n var lastProp = getNodeToInsertPropertyAfter(classDeclaration);\n if (lastProp) {\n changeTracker.insertNodeAfter(declSourceFile, lastProp, property);\n }\n else {\n changeTracker.insertNodeAtClassStart(declSourceFile, classDeclaration, property);\n }\n }\n else {\n var classConstructor = ts.getFirstConstructorWithBody(classDeclaration);\n if (!classConstructor) {\n return;\n }\n var propertyInitialization = initializePropertyToUndefined(ts.factory.createThis(), tokenName);\n changeTracker.insertNodeAtConstructorEnd(declSourceFile, classConstructor, propertyInitialization);\n }\n }\n function initializePropertyToUndefined(obj, propertyName) {\n return ts.factory.createExpressionStatement(ts.factory.createAssignment(ts.factory.createPropertyAccessExpression(obj, propertyName), createUndefined()));\n }\n function createActionsForAddMissingMemberInTypeScriptFile(context, _a) {\n var parentDeclaration = _a.parentDeclaration, declSourceFile = _a.declSourceFile, modifierFlags = _a.modifierFlags, token = _a.token;\n var memberName = token.text;\n var isStatic = modifierFlags & 32 /* Static */;\n var typeNode = getTypeNode(context.program.getTypeChecker(), parentDeclaration, token);\n var addPropertyDeclarationChanges = function (modifierFlags) { return ts.textChanges.ChangeTracker.with(context, function (t) { return addPropertyDeclaration(t, declSourceFile, parentDeclaration, memberName, typeNode, modifierFlags); }); };\n var actions = [codefix.createCodeFixAction(fixMissingMember, addPropertyDeclarationChanges(modifierFlags & 32 /* Static */), [isStatic ? ts.Diagnostics.Declare_static_property_0 : ts.Diagnostics.Declare_property_0, memberName], fixMissingMember, ts.Diagnostics.Add_all_missing_members)];\n if (isStatic || ts.isPrivateIdentifier(token)) {\n return actions;\n }\n if (modifierFlags & 8 /* Private */) {\n actions.unshift(codefix.createCodeFixActionWithoutFixAll(fixMissingMember, addPropertyDeclarationChanges(8 /* Private */), [ts.Diagnostics.Declare_private_property_0, memberName]));\n }\n actions.push(createAddIndexSignatureAction(context, declSourceFile, parentDeclaration, token.text, typeNode));\n return actions;\n }\n function getTypeNode(checker, classDeclaration, token) {\n var typeNode;\n if (token.parent.parent.kind === 219 /* BinaryExpression */) {\n var binaryExpression = token.parent.parent;\n var otherExpression = token.parent === binaryExpression.left ? binaryExpression.right : binaryExpression.left;\n var widenedType = checker.getWidenedType(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(otherExpression)));\n typeNode = checker.typeToTypeNode(widenedType, classDeclaration, 1 /* NoTruncation */);\n }\n else {\n var contextualType = checker.getContextualType(token.parent);\n typeNode = contextualType ? checker.typeToTypeNode(contextualType, /*enclosingDeclaration*/ undefined, 1 /* NoTruncation */) : undefined;\n }\n return typeNode || ts.factory.createKeywordTypeNode(129 /* AnyKeyword */);\n }\n function addPropertyDeclaration(changeTracker, declSourceFile, classDeclaration, tokenName, typeNode, modifierFlags) {\n var property = ts.factory.createPropertyDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ modifierFlags ? ts.factory.createNodeArray(ts.factory.createModifiersFromModifierFlags(modifierFlags)) : undefined, tokenName, \n /*questionToken*/ undefined, typeNode, \n /*initializer*/ undefined);\n var lastProp = getNodeToInsertPropertyAfter(classDeclaration);\n if (lastProp) {\n changeTracker.insertNodeAfter(declSourceFile, lastProp, property);\n }\n else {\n changeTracker.insertNodeAtClassStart(declSourceFile, classDeclaration, property);\n }\n }\n // Gets the last of the first run of PropertyDeclarations, or undefined if the class does not start with a PropertyDeclaration.\n function getNodeToInsertPropertyAfter(cls) {\n var res;\n for (var _i = 0, _a = cls.members; _i < _a.length; _i++) {\n var member = _a[_i];\n if (!ts.isPropertyDeclaration(member))\n break;\n res = member;\n }\n return res;\n }\n function createAddIndexSignatureAction(context, declSourceFile, classDeclaration, tokenName, typeNode) {\n // Index signatures cannot have the static modifier.\n var stringTypeNode = ts.factory.createKeywordTypeNode(148 /* StringKeyword */);\n var indexingParameter = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, \"x\", \n /*questionToken*/ undefined, stringTypeNode, \n /*initializer*/ undefined);\n var indexSignature = ts.factory.createIndexSignature(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, [indexingParameter], typeNode);\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return t.insertNodeAtClassStart(declSourceFile, classDeclaration, indexSignature); });\n // No fixId here because code-fix-all currently only works on adding individual named properties.\n return codefix.createCodeFixActionWithoutFixAll(fixMissingMember, changes, [ts.Diagnostics.Add_index_signature_for_property_0, tokenName]);\n }\n function getActionsForMissingMethodDeclaration(context, info) {\n var parentDeclaration = info.parentDeclaration, declSourceFile = info.declSourceFile, modifierFlags = info.modifierFlags, token = info.token, call = info.call;\n if (call === undefined) {\n return undefined;\n }\n // Private methods are not implemented yet.\n if (ts.isPrivateIdentifier(token)) {\n return undefined;\n }\n var methodName = token.text;\n var addMethodDeclarationChanges = function (modifierFlags) { return ts.textChanges.ChangeTracker.with(context, function (t) { return addMethodDeclaration(context, t, call, token, modifierFlags, parentDeclaration, declSourceFile); }); };\n var actions = [codefix.createCodeFixAction(fixMissingMember, addMethodDeclarationChanges(modifierFlags & 32 /* Static */), [modifierFlags & 32 /* Static */ ? ts.Diagnostics.Declare_static_method_0 : ts.Diagnostics.Declare_method_0, methodName], fixMissingMember, ts.Diagnostics.Add_all_missing_members)];\n if (modifierFlags & 8 /* Private */) {\n actions.unshift(codefix.createCodeFixActionWithoutFixAll(fixMissingMember, addMethodDeclarationChanges(8 /* Private */), [ts.Diagnostics.Declare_private_method_0, methodName]));\n }\n return actions;\n }\n function addMethodDeclaration(context, changes, callExpression, name, modifierFlags, parentDeclaration, sourceFile) {\n var importAdder = codefix.createImportAdder(sourceFile, context.program, context.preferences, context.host);\n var methodDeclaration = codefix.createSignatureDeclarationFromCallExpression(167 /* MethodDeclaration */, context, importAdder, callExpression, name, modifierFlags, parentDeclaration);\n var containingMethodDeclaration = ts.findAncestor(callExpression, function (n) { return ts.isMethodDeclaration(n) || ts.isConstructorDeclaration(n); });\n if (containingMethodDeclaration && containingMethodDeclaration.parent === parentDeclaration) {\n changes.insertNodeAfter(sourceFile, containingMethodDeclaration, methodDeclaration);\n }\n else {\n changes.insertNodeAtClassStart(sourceFile, parentDeclaration, methodDeclaration);\n }\n importAdder.writeFixes(changes);\n }\n function addEnumMemberDeclaration(changes, checker, _a) {\n var token = _a.token, parentDeclaration = _a.parentDeclaration;\n /**\n * create initializer only literal enum that has string initializer.\n * value of initializer is a string literal that equal to name of enum member.\n * numeric enum or empty enum will not create initializer.\n */\n var hasStringInitializer = ts.some(parentDeclaration.members, function (member) {\n var type = checker.getTypeAtLocation(member);\n return !!(type && type.flags & 402653316 /* StringLike */);\n });\n var enumMember = ts.factory.createEnumMember(token, hasStringInitializer ? ts.factory.createStringLiteral(token.text) : undefined);\n changes.replaceNode(parentDeclaration.getSourceFile(), parentDeclaration, ts.factory.updateEnumDeclaration(parentDeclaration, parentDeclaration.decorators, parentDeclaration.modifiers, parentDeclaration.name, ts.concatenate(parentDeclaration.members, ts.singleElementArray(enumMember))), {\n leadingTriviaOption: ts.textChanges.LeadingTriviaOption.IncludeAll,\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Exclude\n });\n }\n function addFunctionDeclaration(changes, context, info) {\n var importAdder = codefix.createImportAdder(context.sourceFile, context.program, context.preferences, context.host);\n var functionDeclaration = codefix.createSignatureDeclarationFromCallExpression(254 /* FunctionDeclaration */, context, importAdder, info.call, ts.idText(info.token), info.modifierFlags, info.parentDeclaration);\n changes.insertNodeAtEndOfScope(info.sourceFile, info.parentDeclaration, functionDeclaration);\n }\n function addJsxAttributes(changes, context, info) {\n var importAdder = codefix.createImportAdder(context.sourceFile, context.program, context.preferences, context.host);\n var quotePreference = ts.getQuotePreference(context.sourceFile, context.preferences);\n var checker = context.program.getTypeChecker();\n var jsxAttributesNode = info.parentDeclaration.attributes;\n var hasSpreadAttribute = ts.some(jsxAttributesNode.properties, ts.isJsxSpreadAttribute);\n var attrs = ts.map(info.attributes, function (attr) {\n var value = attr.valueDeclaration ? tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeAtLocation(attr.valueDeclaration)) : createUndefined();\n return ts.factory.createJsxAttribute(ts.factory.createIdentifier(attr.name), ts.factory.createJsxExpression(/*dotDotDotToken*/ undefined, value));\n });\n var jsxAttributes = ts.factory.createJsxAttributes(hasSpreadAttribute ? __spreadArray(__spreadArray([], attrs, true), jsxAttributesNode.properties, true) : __spreadArray(__spreadArray([], jsxAttributesNode.properties, true), attrs, true));\n var options = { prefix: jsxAttributesNode.pos === jsxAttributesNode.end ? \" \" : undefined };\n changes.replaceNode(context.sourceFile, jsxAttributesNode, jsxAttributes, options);\n }\n function addObjectLiteralProperties(changes, context, info) {\n var importAdder = codefix.createImportAdder(context.sourceFile, context.program, context.preferences, context.host);\n var quotePreference = ts.getQuotePreference(context.sourceFile, context.preferences);\n var checker = context.program.getTypeChecker();\n var props = ts.map(info.properties, function (prop) {\n var initializer = prop.valueDeclaration ? tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeAtLocation(prop.valueDeclaration)) : createUndefined();\n return ts.factory.createPropertyAssignment(prop.name, initializer);\n });\n changes.replaceNode(context.sourceFile, info.parentDeclaration, ts.factory.createObjectLiteralExpression(__spreadArray(__spreadArray([], info.parentDeclaration.properties, true), props, true), /*multiLine*/ true));\n }\n function tryGetValueFromType(context, checker, importAdder, quotePreference, type) {\n if (type.flags & 3 /* AnyOrUnknown */) {\n return createUndefined();\n }\n if (type.flags & (4 /* String */ | 134217728 /* TemplateLiteral */)) {\n return ts.factory.createStringLiteral(\"\", /* isSingleQuote */ quotePreference === 0 /* Single */);\n }\n if (type.flags & 8 /* Number */) {\n return ts.factory.createNumericLiteral(0);\n }\n if (type.flags & 64 /* BigInt */) {\n return ts.factory.createBigIntLiteral(\"0n\");\n }\n if (type.flags & 16 /* Boolean */) {\n return ts.factory.createFalse();\n }\n if (type.flags & 1056 /* EnumLike */) {\n var enumMember = type.symbol.exports ? ts.firstOrUndefined(ts.arrayFrom(type.symbol.exports.values())) : type.symbol;\n var name = checker.symbolToExpression(type.symbol.parent ? type.symbol.parent : type.symbol, 111551 /* Value */, /*enclosingDeclaration*/ undefined, /*flags*/ undefined);\n return enumMember === undefined || name === undefined ? ts.factory.createNumericLiteral(0) : ts.factory.createPropertyAccessExpression(name, checker.symbolToString(enumMember));\n }\n if (type.flags & 256 /* NumberLiteral */) {\n return ts.factory.createNumericLiteral(type.value);\n }\n if (type.flags & 2048 /* BigIntLiteral */) {\n return ts.factory.createBigIntLiteral(type.value);\n }\n if (type.flags & 128 /* StringLiteral */) {\n return ts.factory.createStringLiteral(type.value, /* isSingleQuote */ quotePreference === 0 /* Single */);\n }\n if (type.flags & 512 /* BooleanLiteral */) {\n return (type === checker.getFalseType() || type === checker.getFalseType(/*fresh*/ true)) ? ts.factory.createFalse() : ts.factory.createTrue();\n }\n if (type.flags & 65536 /* Null */) {\n return ts.factory.createNull();\n }\n if (type.flags & 1048576 /* Union */) {\n var expression = ts.firstDefined(type.types, function (t) { return tryGetValueFromType(context, checker, importAdder, quotePreference, t); });\n return expression !== null && expression !== void 0 ? expression : createUndefined();\n }\n if (checker.isArrayLikeType(type)) {\n return ts.factory.createArrayLiteralExpression();\n }\n if (isObjectLiteralType(type)) {\n var props = ts.map(checker.getPropertiesOfType(type), function (prop) {\n var initializer = prop.valueDeclaration ? tryGetValueFromType(context, checker, importAdder, quotePreference, checker.getTypeAtLocation(prop.valueDeclaration)) : createUndefined();\n return ts.factory.createPropertyAssignment(prop.name, initializer);\n });\n return ts.factory.createObjectLiteralExpression(props, /*multiLine*/ true);\n }\n if (ts.getObjectFlags(type) & 16 /* Anonymous */) {\n var decl = ts.find(type.symbol.declarations || ts.emptyArray, ts.or(ts.isFunctionTypeNode, ts.isMethodSignature, ts.isMethodDeclaration));\n if (decl === undefined)\n return createUndefined();\n var signature = checker.getSignaturesOfType(type, 0 /* Call */);\n if (signature === undefined)\n return createUndefined();\n var func = codefix.createSignatureDeclarationFromSignature(211 /* FunctionExpression */, context, quotePreference, signature[0], codefix.createStubbedBody(ts.Diagnostics.Function_not_implemented.message, quotePreference), /*name*/ undefined, /*modifiers*/ undefined, /*optional*/ undefined, /*enclosingDeclaration*/ undefined, importAdder);\n return func !== null && func !== void 0 ? func : createUndefined();\n }\n if (ts.getObjectFlags(type) & 1 /* Class */) {\n var classDeclaration = ts.getClassLikeDeclarationOfSymbol(type.symbol);\n if (classDeclaration === undefined || ts.hasAbstractModifier(classDeclaration))\n return createUndefined();\n var constructorDeclaration = ts.getFirstConstructorWithBody(classDeclaration);\n if (constructorDeclaration && ts.length(constructorDeclaration.parameters))\n return createUndefined();\n return ts.factory.createNewExpression(ts.factory.createIdentifier(type.symbol.name), /*typeArguments*/ undefined, /*argumentsArray*/ undefined);\n }\n return createUndefined();\n }\n function createUndefined() {\n return ts.factory.createIdentifier(\"undefined\");\n }\n function isObjectLiteralType(type) {\n return (type.flags & 524288 /* Object */) &&\n ((ts.getObjectFlags(type) & 128 /* ObjectLiteral */) || (type.symbol && ts.tryCast(ts.singleOrUndefined(type.symbol.declarations), ts.isTypeLiteralNode)));\n }\n function getUnmatchedAttributes(checker, source) {\n var attrsType = checker.getContextualType(source.attributes);\n if (attrsType === undefined)\n return ts.emptyArray;\n var targetProps = attrsType.getProperties();\n if (!ts.length(targetProps))\n return ts.emptyArray;\n var seenNames = new ts.Set();\n for (var _i = 0, _a = source.attributes.properties; _i < _a.length; _i++) {\n var sourceProp = _a[_i];\n if (ts.isJsxAttribute(sourceProp)) {\n seenNames.add(sourceProp.name.escapedText);\n }\n if (ts.isJsxSpreadAttribute(sourceProp)) {\n var type = checker.getTypeAtLocation(sourceProp.expression);\n for (var _b = 0, _c = type.getProperties(); _b < _c.length; _b++) {\n var prop = _c[_b];\n seenNames.add(prop.escapedName);\n }\n }\n }\n return ts.filter(targetProps, function (targetProp) {\n return !((targetProp.flags & 16777216 /* Optional */ || ts.getCheckFlags(targetProp) & 48 /* Partial */) || seenNames.has(targetProp.escapedName));\n });\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"addMissingNewOperator\";\n var errorCodes = [ts.Diagnostics.Value_of_type_0_is_not_callable_Did_you_mean_to_include_new.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addMissingNewOperator(t, sourceFile, span); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_new_operator_to_call, fixId, ts.Diagnostics.Add_missing_new_operator_to_all_calls)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n return addMissingNewOperator(changes, context.sourceFile, diag);\n }); },\n });\n function addMissingNewOperator(changes, sourceFile, span) {\n var call = ts.cast(findAncestorMatchingSpan(sourceFile, span), ts.isCallExpression);\n var newExpression = ts.factory.createNewExpression(call.expression, call.typeArguments, call.arguments);\n changes.replaceNode(sourceFile, call, newExpression);\n }\n function findAncestorMatchingSpan(sourceFile, span) {\n var token = ts.getTokenAtPosition(sourceFile, span.start);\n var end = ts.textSpanEnd(span);\n while (token.end < end) {\n token = token.parent;\n }\n return token;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixName = \"fixCannotFindModule\";\n var fixIdInstallTypesPackage = \"installTypesPackage\";\n var errorCodeCannotFindModule = ts.Diagnostics.Cannot_find_module_0_or_its_corresponding_type_declarations.code;\n var errorCodes = [\n errorCodeCannotFindModule,\n ts.Diagnostics.Could_not_find_a_declaration_file_for_module_0_1_implicitly_has_an_any_type.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var host = context.host, sourceFile = context.sourceFile, start = context.span.start;\n var packageName = tryGetImportedPackageName(sourceFile, start);\n if (packageName === undefined)\n return undefined;\n var typesPackageName = getTypesPackageNameToInstall(packageName, host, context.errorCode);\n return typesPackageName === undefined\n ? []\n : [codefix.createCodeFixAction(fixName, /*changes*/ [], [ts.Diagnostics.Install_0, typesPackageName], fixIdInstallTypesPackage, ts.Diagnostics.Install_all_missing_types_packages, getInstallCommand(sourceFile.fileName, typesPackageName))];\n },\n fixIds: [fixIdInstallTypesPackage],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (_changes, diag, commands) {\n var packageName = tryGetImportedPackageName(diag.file, diag.start);\n if (packageName === undefined)\n return undefined;\n switch (context.fixId) {\n case fixIdInstallTypesPackage: {\n var pkg = getTypesPackageNameToInstall(packageName, context.host, diag.code);\n if (pkg) {\n commands.push(getInstallCommand(diag.file.fileName, pkg));\n }\n break;\n }\n default:\n ts.Debug.fail(\"Bad fixId: \" + context.fixId);\n }\n });\n },\n });\n function getInstallCommand(fileName, packageName) {\n return { type: \"install package\", file: fileName, packageName: packageName };\n }\n function tryGetImportedPackageName(sourceFile, pos) {\n var moduleSpecifierText = ts.tryCast(ts.getTokenAtPosition(sourceFile, pos), ts.isStringLiteral);\n if (!moduleSpecifierText)\n return undefined;\n var moduleName = moduleSpecifierText.text;\n var packageName = ts.parsePackageName(moduleName).packageName;\n return ts.isExternalModuleNameRelative(packageName) ? undefined : packageName;\n }\n function getTypesPackageNameToInstall(packageName, host, diagCode) {\n var _a;\n return diagCode === errorCodeCannotFindModule\n ? (ts.JsTyping.nodeCoreModules.has(packageName) ? \"@types/node\" : undefined)\n : (((_a = host.isKnownTypesPackageName) === null || _a === void 0 ? void 0 : _a.call(host, packageName)) ? ts.getTypesPackageName(packageName) : undefined);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodes = [\n ts.Diagnostics.Non_abstract_class_0_does_not_implement_inherited_abstract_member_1_from_class_2.code,\n ts.Diagnostics.Non_abstract_class_expression_does_not_implement_inherited_abstract_member_0_from_class_1.code,\n ];\n var fixId = \"fixClassDoesntImplementInheritedAbstractMember\";\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) {\n return addMissingMembers(getClass(sourceFile, span.start), sourceFile, context, t, context.preferences);\n });\n return changes.length === 0 ? undefined : [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Implement_inherited_abstract_class, fixId, ts.Diagnostics.Implement_all_inherited_abstract_classes)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var seenClassDeclarations = new ts.Map();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var classDeclaration = getClass(diag.file, diag.start);\n if (ts.addToSeen(seenClassDeclarations, ts.getNodeId(classDeclaration))) {\n addMissingMembers(classDeclaration, context.sourceFile, context, changes, context.preferences);\n }\n });\n },\n });\n function getClass(sourceFile, pos) {\n // Token is the identifier in the case of a class declaration\n // or the class keyword token in the case of a class expression.\n var token = ts.getTokenAtPosition(sourceFile, pos);\n return ts.cast(token.parent, ts.isClassLike);\n }\n function addMissingMembers(classDeclaration, sourceFile, context, changeTracker, preferences) {\n var extendsNode = ts.getEffectiveBaseTypeNode(classDeclaration);\n var checker = context.program.getTypeChecker();\n var instantiatedExtendsType = checker.getTypeAtLocation(extendsNode);\n // Note that this is ultimately derived from a map indexed by symbol names,\n // so duplicates cannot occur.\n var abstractAndNonPrivateExtendsSymbols = checker.getPropertiesOfType(instantiatedExtendsType).filter(symbolPointsToNonPrivateAndAbstractMember);\n var importAdder = codefix.createImportAdder(sourceFile, context.program, preferences, context.host);\n codefix.createMissingMemberNodes(classDeclaration, abstractAndNonPrivateExtendsSymbols, sourceFile, context, preferences, importAdder, function (member) { return changeTracker.insertNodeAtClassStart(sourceFile, classDeclaration, member); });\n importAdder.writeFixes(changeTracker);\n }\n function symbolPointsToNonPrivateAndAbstractMember(symbol) {\n // See `codeFixClassExtendAbstractProtectedProperty.ts` in https://github.com/Microsoft/TypeScript/pull/11547/files\n // (now named `codeFixClassExtendAbstractPrivateProperty.ts`)\n var flags = ts.getSyntacticModifierFlags(ts.first(symbol.getDeclarations()));\n return !(flags & 8 /* Private */) && !!(flags & 128 /* Abstract */);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"classSuperMustPrecedeThisAccess\";\n var errorCodes = [ts.Diagnostics.super_must_be_called_before_accessing_this_in_the_constructor_of_a_derived_class.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var nodes = getNodes(sourceFile, span.start);\n if (!nodes)\n return undefined;\n var constructor = nodes.constructor, superCall = nodes.superCall;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, constructor, superCall); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Make_super_call_the_first_statement_in_the_constructor, fixId, ts.Diagnostics.Make_all_super_calls_the_first_statement_in_their_constructor)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var seenClasses = new ts.Map(); // Ensure we only do this once per class.\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var nodes = getNodes(diag.file, diag.start);\n if (!nodes)\n return;\n var constructor = nodes.constructor, superCall = nodes.superCall;\n if (ts.addToSeen(seenClasses, ts.getNodeId(constructor.parent))) {\n doChange(changes, sourceFile, constructor, superCall);\n }\n });\n },\n });\n function doChange(changes, sourceFile, constructor, superCall) {\n changes.insertNodeAtConstructorStart(sourceFile, constructor, superCall);\n changes.delete(sourceFile, superCall);\n }\n function getNodes(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n if (token.kind !== 108 /* ThisKeyword */)\n return undefined;\n var constructor = ts.getContainingFunction(token);\n var superCall = findSuperCall(constructor.body);\n // figure out if the `this` access is actually inside the supercall\n // i.e. super(this.a), since in that case we won't suggest a fix\n return superCall && !superCall.expression.arguments.some(function (arg) { return ts.isPropertyAccessExpression(arg) && arg.expression === token; }) ? { constructor: constructor, superCall: superCall } : undefined;\n }\n function findSuperCall(n) {\n return ts.isExpressionStatement(n) && ts.isSuperCall(n.expression)\n ? n\n : ts.isFunctionLike(n)\n ? undefined\n : ts.forEachChild(n, findSuperCall);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"constructorForDerivedNeedSuperCall\";\n var errorCodes = [ts.Diagnostics.Constructors_for_derived_classes_must_contain_a_super_call.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var ctr = getNode(sourceFile, span.start);\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, ctr); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_super_call, fixId, ts.Diagnostics.Add_all_missing_super_calls)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n return doChange(changes, context.sourceFile, getNode(diag.file, diag.start));\n }); },\n });\n function getNode(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n ts.Debug.assert(ts.isConstructorDeclaration(token.parent), \"token should be at the constructor declaration\");\n return token.parent;\n }\n function doChange(changes, sourceFile, ctr) {\n var superCall = ts.factory.createExpressionStatement(ts.factory.createCallExpression(ts.factory.createSuper(), /*typeArguments*/ undefined, /*argumentsArray*/ ts.emptyArray));\n changes.insertNodeAtConstructorStart(sourceFile, ctr, superCall);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"enableExperimentalDecorators\";\n var errorCodes = [\n ts.Diagnostics.Experimental_support_for_decorators_is_a_feature_that_is_subject_to_change_in_a_future_release_Set_the_experimentalDecorators_option_in_your_tsconfig_or_jsconfig_to_remove_this_warning.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var configFile = context.program.getCompilerOptions().configFile;\n if (configFile === undefined) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (changeTracker) { return doChange(changeTracker, configFile); });\n return [codefix.createCodeFixActionWithoutFixAll(fixId, changes, ts.Diagnostics.Enable_the_experimentalDecorators_option_in_your_configuration_file)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes) {\n var configFile = context.program.getCompilerOptions().configFile;\n if (configFile === undefined) {\n return undefined;\n }\n doChange(changes, configFile);\n }); },\n });\n function doChange(changeTracker, configFile) {\n codefix.setJsonCompilerOptionValue(changeTracker, configFile, \"experimentalDecorators\", ts.factory.createTrue());\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixID = \"fixEnableJsxFlag\";\n var errorCodes = [ts.Diagnostics.Cannot_use_JSX_unless_the_jsx_flag_is_provided.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var configFile = context.program.getCompilerOptions().configFile;\n if (configFile === undefined) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (changeTracker) {\n return doChange(changeTracker, configFile);\n });\n return [\n codefix.createCodeFixActionWithoutFixAll(fixID, changes, ts.Diagnostics.Enable_the_jsx_flag_in_your_configuration_file)\n ];\n },\n fixIds: [fixID],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes) {\n var configFile = context.program.getCompilerOptions().configFile;\n if (configFile === undefined) {\n return undefined;\n }\n doChange(changes, configFile);\n });\n }\n });\n function doChange(changeTracker, configFile) {\n codefix.setJsonCompilerOptionValue(changeTracker, configFile, \"jsx\", ts.factory.createStringLiteral(\"react\"));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n codefix.registerCodeFix({\n errorCodes: [\n ts.Diagnostics.Top_level_await_expressions_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code,\n ts.Diagnostics.Top_level_for_await_loops_are_only_allowed_when_the_module_option_is_set_to_esnext_or_system_and_the_target_option_is_set_to_es2017_or_higher.code,\n ],\n getCodeActions: function (context) {\n var compilerOptions = context.program.getCompilerOptions();\n var configFile = compilerOptions.configFile;\n if (configFile === undefined) {\n return undefined;\n }\n var codeFixes = [];\n var moduleKind = ts.getEmitModuleKind(compilerOptions);\n var moduleOutOfRange = moduleKind >= ts.ModuleKind.ES2015 && moduleKind < ts.ModuleKind.ESNext;\n if (moduleOutOfRange) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (changes) {\n codefix.setJsonCompilerOptionValue(changes, configFile, \"module\", ts.factory.createStringLiteral(\"esnext\"));\n });\n codeFixes.push(codefix.createCodeFixActionWithoutFixAll(\"fixModuleOption\", changes, [ts.Diagnostics.Set_the_module_option_in_your_configuration_file_to_0, \"esnext\"]));\n }\n var target = ts.getEmitScriptTarget(compilerOptions);\n var targetOutOfRange = target < 4 /* ES2017 */ || target > 99 /* ESNext */;\n if (targetOutOfRange) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (tracker) {\n var configObject = ts.getTsConfigObjectLiteralExpression(configFile);\n if (!configObject)\n return;\n var options = [[\"target\", ts.factory.createStringLiteral(\"es2017\")]];\n if (moduleKind === ts.ModuleKind.CommonJS) {\n // Ensure we preserve the default module kind (commonjs), as targets >= ES2015 have a default module kind of es2015.\n options.push([\"module\", ts.factory.createStringLiteral(\"commonjs\")]);\n }\n codefix.setJsonCompilerOptionValues(tracker, configFile, options);\n });\n codeFixes.push(codefix.createCodeFixActionWithoutFixAll(\"fixTargetOption\", changes, [ts.Diagnostics.Set_the_target_option_in_your_configuration_file_to_0, \"es2017\"]));\n }\n return codeFixes.length ? codeFixes : undefined;\n }\n });\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixPropertyAssignment\";\n var errorCodes = [\n ts.Diagnostics.Did_you_mean_to_use_a_Colon_An_can_only_follow_a_property_name_when_the_containing_object_literal_is_part_of_a_destructuring_pattern.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixId],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var property = getProperty(sourceFile, span.start);\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, property); });\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Change_0_to_1, \"=\", \":\"], fixId, [ts.Diagnostics.Switch_each_misused_0_to_1, \"=\", \":\"])];\n },\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return doChange(changes, diag.file, getProperty(diag.file, diag.start)); });\n }\n });\n function doChange(changes, sourceFile, node) {\n changes.replaceNode(sourceFile, node, ts.factory.createPropertyAssignment(node.name, node.objectAssignmentInitializer));\n }\n function getProperty(sourceFile, pos) {\n return ts.cast(ts.getTokenAtPosition(sourceFile, pos).parent, ts.isShorthandPropertyAssignment);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"extendsInterfaceBecomesImplements\";\n var errorCodes = [ts.Diagnostics.Cannot_extend_an_interface_0_Did_you_mean_implements.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var nodes = getNodes(sourceFile, context.span.start);\n if (!nodes)\n return undefined;\n var extendsToken = nodes.extendsToken, heritageClauses = nodes.heritageClauses;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChanges(t, sourceFile, extendsToken, heritageClauses); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Change_extends_to_implements, fixId, ts.Diagnostics.Change_all_extended_interfaces_to_implements)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var nodes = getNodes(diag.file, diag.start);\n if (nodes)\n doChanges(changes, diag.file, nodes.extendsToken, nodes.heritageClauses);\n }); },\n });\n function getNodes(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var heritageClauses = ts.getContainingClass(token).heritageClauses;\n var extendsToken = heritageClauses[0].getFirstToken();\n return extendsToken.kind === 94 /* ExtendsKeyword */ ? { extendsToken: extendsToken, heritageClauses: heritageClauses } : undefined;\n }\n function doChanges(changes, sourceFile, extendsToken, heritageClauses) {\n changes.replaceNode(sourceFile, extendsToken, ts.factory.createToken(117 /* ImplementsKeyword */));\n // If there is already an implements clause, replace the implements keyword with a comma.\n if (heritageClauses.length === 2 &&\n heritageClauses[0].token === 94 /* ExtendsKeyword */ &&\n heritageClauses[1].token === 117 /* ImplementsKeyword */) {\n var implementsToken = heritageClauses[1].getFirstToken();\n var implementsFullStart = implementsToken.getFullStart();\n changes.replaceRange(sourceFile, { pos: implementsFullStart, end: implementsFullStart }, ts.factory.createToken(27 /* CommaToken */));\n // Rough heuristic: delete trailing whitespace after keyword so that it's not excessive.\n // (Trailing because leading might be indentation, which is more sensitive.)\n var text = sourceFile.text;\n var end = implementsToken.end;\n while (end < text.length && ts.isWhiteSpaceSingleLine(text.charCodeAt(end))) {\n end++;\n }\n changes.deleteRange(sourceFile, { pos: implementsToken.getStart(), end: end });\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"forgottenThisPropertyAccess\";\n var didYouMeanStaticMemberCode = ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_static_member_1_0.code;\n var errorCodes = [\n ts.Diagnostics.Cannot_find_name_0_Did_you_mean_the_instance_member_this_0.code,\n ts.Diagnostics.Private_identifiers_are_not_allowed_outside_class_bodies.code,\n didYouMeanStaticMemberCode,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var info = getInfo(sourceFile, context.span.start, context.errorCode);\n if (!info) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, info); });\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Add_0_to_unresolved_variable, info.className || \"this\"], fixId, ts.Diagnostics.Add_qualifier_to_all_unresolved_variables_matching_a_member_name)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, diag.start, diag.code);\n if (info)\n doChange(changes, context.sourceFile, info);\n }); },\n });\n function getInfo(sourceFile, pos, diagCode) {\n var node = ts.getTokenAtPosition(sourceFile, pos);\n if (ts.isIdentifier(node)) {\n return { node: node, className: diagCode === didYouMeanStaticMemberCode ? ts.getContainingClass(node).name.text : undefined };\n }\n }\n function doChange(changes, sourceFile, _a) {\n var node = _a.node, className = _a.className;\n // TODO (https://github.com/Microsoft/TypeScript/issues/21246): use shared helper\n ts.suppressLeadingAndTrailingTrivia(node);\n changes.replaceNode(sourceFile, node, ts.factory.createPropertyAccessExpression(className ? ts.factory.createIdentifier(className) : ts.factory.createThis(), node));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixIdExpression = \"fixInvalidJsxCharacters_expression\";\n var fixIdHtmlEntity = \"fixInvalidJsxCharacters_htmlEntity\";\n var errorCodes = [\n ts.Diagnostics.Unexpected_token_Did_you_mean_or_gt.code,\n ts.Diagnostics.Unexpected_token_Did_you_mean_or_rbrace.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixIdExpression, fixIdHtmlEntity],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, preferences = context.preferences, span = context.span;\n var changeToExpression = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, preferences, sourceFile, span.start, /* useHtmlEntity */ false); });\n var changeToHtmlEntity = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, preferences, sourceFile, span.start, /* useHtmlEntity */ true); });\n return [\n codefix.createCodeFixAction(fixIdExpression, changeToExpression, ts.Diagnostics.Wrap_invalid_character_in_an_expression_container, fixIdExpression, ts.Diagnostics.Wrap_all_invalid_characters_in_an_expression_container),\n codefix.createCodeFixAction(fixIdHtmlEntity, changeToHtmlEntity, ts.Diagnostics.Convert_invalid_character_to_its_html_entity_code, fixIdHtmlEntity, ts.Diagnostics.Convert_all_invalid_characters_to_HTML_entity_code)\n ];\n },\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diagnostic) { return doChange(changes, context.preferences, diagnostic.file, diagnostic.start, context.fixId === fixIdHtmlEntity); });\n }\n });\n var htmlEntity = {\n \">\": \">\",\n \"}\": \"}\",\n };\n function isValidCharacter(character) {\n return ts.hasProperty(htmlEntity, character);\n }\n function doChange(changes, preferences, sourceFile, start, useHtmlEntity) {\n var character = sourceFile.getText()[start];\n // sanity check\n if (!isValidCharacter(character)) {\n return;\n }\n var replacement = useHtmlEntity ? htmlEntity[character] : \"{\" + ts.quote(sourceFile, preferences, character) + \"}\";\n changes.replaceRangeWithText(sourceFile, { pos: start, end: start + 1 }, replacement);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixName = \"unusedIdentifier\";\n var fixIdPrefix = \"unusedIdentifier_prefix\";\n var fixIdDelete = \"unusedIdentifier_delete\";\n var fixIdDeleteImports = \"unusedIdentifier_deleteImports\";\n var fixIdInfer = \"unusedIdentifier_infer\";\n var errorCodes = [\n ts.Diagnostics._0_is_declared_but_its_value_is_never_read.code,\n ts.Diagnostics._0_is_declared_but_never_used.code,\n ts.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code,\n ts.Diagnostics.All_imports_in_import_declaration_are_unused.code,\n ts.Diagnostics.All_destructured_elements_are_unused.code,\n ts.Diagnostics.All_variables_are_unused.code,\n ts.Diagnostics.All_type_parameters_are_unused.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var errorCode = context.errorCode, sourceFile = context.sourceFile, program = context.program, cancellationToken = context.cancellationToken;\n var checker = program.getTypeChecker();\n var sourceFiles = program.getSourceFiles();\n var token = ts.getTokenAtPosition(sourceFile, context.span.start);\n if (ts.isJSDocTemplateTag(token)) {\n return [createDeleteFix(ts.textChanges.ChangeTracker.with(context, function (t) { return t.delete(sourceFile, token); }), ts.Diagnostics.Remove_template_tag)];\n }\n if (token.kind === 29 /* LessThanToken */) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return deleteTypeParameters(t, sourceFile, token); });\n return [createDeleteFix(changes, ts.Diagnostics.Remove_type_parameters)];\n }\n var importDecl = tryGetFullImport(token);\n if (importDecl) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return t.delete(sourceFile, importDecl); });\n return [codefix.createCodeFixAction(fixName, changes, [ts.Diagnostics.Remove_import_from_0, ts.showModuleSpecifier(importDecl)], fixIdDeleteImports, ts.Diagnostics.Delete_all_unused_imports)];\n }\n else if (isImport(token)) {\n var deletion = ts.textChanges.ChangeTracker.with(context, function (t) { return tryDeleteDeclaration(sourceFile, token, t, checker, sourceFiles, program, cancellationToken, /*isFixAll*/ false); });\n if (deletion.length) {\n return [codefix.createCodeFixAction(fixName, deletion, [ts.Diagnostics.Remove_unused_declaration_for_Colon_0, token.getText(sourceFile)], fixIdDeleteImports, ts.Diagnostics.Delete_all_unused_imports)];\n }\n }\n if (ts.isObjectBindingPattern(token.parent) || ts.isArrayBindingPattern(token.parent)) {\n if (ts.isParameter(token.parent.parent)) {\n var elements = token.parent.elements;\n var diagnostic = [\n elements.length > 1 ? ts.Diagnostics.Remove_unused_declarations_for_Colon_0 : ts.Diagnostics.Remove_unused_declaration_for_Colon_0,\n ts.map(elements, function (e) { return e.getText(sourceFile); }).join(\", \")\n ];\n return [\n createDeleteFix(ts.textChanges.ChangeTracker.with(context, function (t) {\n return deleteDestructuringElements(t, sourceFile, token.parent);\n }), diagnostic)\n ];\n }\n return [\n createDeleteFix(ts.textChanges.ChangeTracker.with(context, function (t) {\n return t.delete(sourceFile, token.parent.parent);\n }), ts.Diagnostics.Remove_unused_destructuring_declaration)\n ];\n }\n if (canDeleteEntireVariableStatement(sourceFile, token)) {\n return [\n createDeleteFix(ts.textChanges.ChangeTracker.with(context, function (t) {\n return deleteEntireVariableStatement(t, sourceFile, token.parent);\n }), ts.Diagnostics.Remove_variable_statement)\n ];\n }\n var result = [];\n if (token.kind === 136 /* InferKeyword */) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return changeInferToUnknown(t, sourceFile, token); });\n var name = ts.cast(token.parent, ts.isInferTypeNode).typeParameter.name.text;\n result.push(codefix.createCodeFixAction(fixName, changes, [ts.Diagnostics.Replace_infer_0_with_unknown, name], fixIdInfer, ts.Diagnostics.Replace_all_unused_infer_with_unknown));\n }\n else {\n var deletion = ts.textChanges.ChangeTracker.with(context, function (t) {\n return tryDeleteDeclaration(sourceFile, token, t, checker, sourceFiles, program, cancellationToken, /*isFixAll*/ false);\n });\n if (deletion.length) {\n var name = ts.isComputedPropertyName(token.parent) ? token.parent : token;\n result.push(createDeleteFix(deletion, [ts.Diagnostics.Remove_unused_declaration_for_Colon_0, name.getText(sourceFile)]));\n }\n }\n var prefix = ts.textChanges.ChangeTracker.with(context, function (t) { return tryPrefixDeclaration(t, errorCode, sourceFile, token); });\n if (prefix.length) {\n result.push(codefix.createCodeFixAction(fixName, prefix, [ts.Diagnostics.Prefix_0_with_an_underscore, token.getText(sourceFile)], fixIdPrefix, ts.Diagnostics.Prefix_all_unused_declarations_with_where_possible));\n }\n return result;\n },\n fixIds: [fixIdPrefix, fixIdDelete, fixIdDeleteImports, fixIdInfer],\n getAllCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, cancellationToken = context.cancellationToken;\n var checker = program.getTypeChecker();\n var sourceFiles = program.getSourceFiles();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var token = ts.getTokenAtPosition(sourceFile, diag.start);\n switch (context.fixId) {\n case fixIdPrefix:\n tryPrefixDeclaration(changes, diag.code, sourceFile, token);\n break;\n case fixIdDeleteImports: {\n var importDecl = tryGetFullImport(token);\n if (importDecl) {\n changes.delete(sourceFile, importDecl);\n }\n else if (isImport(token)) {\n tryDeleteDeclaration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, /*isFixAll*/ true);\n }\n break;\n }\n case fixIdDelete: {\n if (token.kind === 136 /* InferKeyword */ || isImport(token)) {\n break; // Can't delete\n }\n else if (ts.isJSDocTemplateTag(token)) {\n changes.delete(sourceFile, token);\n }\n else if (token.kind === 29 /* LessThanToken */) {\n deleteTypeParameters(changes, sourceFile, token);\n }\n else if (ts.isObjectBindingPattern(token.parent)) {\n if (token.parent.parent.initializer) {\n break;\n }\n else if (!ts.isParameter(token.parent.parent) || isNotProvidedArguments(token.parent.parent, checker, sourceFiles)) {\n changes.delete(sourceFile, token.parent.parent);\n }\n }\n else if (ts.isArrayBindingPattern(token.parent.parent) && token.parent.parent.parent.initializer) {\n break;\n }\n else if (canDeleteEntireVariableStatement(sourceFile, token)) {\n deleteEntireVariableStatement(changes, sourceFile, token.parent);\n }\n else {\n tryDeleteDeclaration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, /*isFixAll*/ true);\n }\n break;\n }\n case fixIdInfer:\n if (token.kind === 136 /* InferKeyword */) {\n changeInferToUnknown(changes, sourceFile, token);\n }\n break;\n default:\n ts.Debug.fail(JSON.stringify(context.fixId));\n }\n });\n },\n });\n function changeInferToUnknown(changes, sourceFile, token) {\n changes.replaceNode(sourceFile, token.parent, ts.factory.createKeywordTypeNode(153 /* UnknownKeyword */));\n }\n function createDeleteFix(changes, diag) {\n return codefix.createCodeFixAction(fixName, changes, diag, fixIdDelete, ts.Diagnostics.Delete_all_unused_declarations);\n }\n function deleteTypeParameters(changes, sourceFile, token) {\n changes.delete(sourceFile, ts.Debug.checkDefined(ts.cast(token.parent, ts.isDeclarationWithTypeParameterChildren).typeParameters, \"The type parameter to delete should exist\"));\n }\n function isImport(token) {\n return token.kind === 100 /* ImportKeyword */\n || token.kind === 79 /* Identifier */ && (token.parent.kind === 268 /* ImportSpecifier */ || token.parent.kind === 265 /* ImportClause */);\n }\n /** Sometimes the diagnostic span is an entire ImportDeclaration, so we should remove the whole thing. */\n function tryGetFullImport(token) {\n return token.kind === 100 /* ImportKeyword */ ? ts.tryCast(token.parent, ts.isImportDeclaration) : undefined;\n }\n function canDeleteEntireVariableStatement(sourceFile, token) {\n return ts.isVariableDeclarationList(token.parent) && ts.first(token.parent.getChildren(sourceFile)) === token;\n }\n function deleteEntireVariableStatement(changes, sourceFile, node) {\n changes.delete(sourceFile, node.parent.kind === 235 /* VariableStatement */ ? node.parent : node);\n }\n function deleteDestructuringElements(changes, sourceFile, node) {\n ts.forEach(node.elements, function (n) { return changes.delete(sourceFile, n); });\n }\n function tryPrefixDeclaration(changes, errorCode, sourceFile, token) {\n // Don't offer to prefix a property.\n if (errorCode === ts.Diagnostics.Property_0_is_declared_but_its_value_is_never_read.code)\n return;\n if (token.kind === 136 /* InferKeyword */) {\n token = ts.cast(token.parent, ts.isInferTypeNode).typeParameter.name;\n }\n if (ts.isIdentifier(token) && canPrefix(token)) {\n changes.replaceNode(sourceFile, token, ts.factory.createIdentifier(\"_\" + token.text));\n if (ts.isParameter(token.parent)) {\n ts.getJSDocParameterTags(token.parent).forEach(function (tag) {\n if (ts.isIdentifier(tag.name)) {\n changes.replaceNode(sourceFile, tag.name, ts.factory.createIdentifier(\"_\" + tag.name.text));\n }\n });\n }\n }\n }\n function canPrefix(token) {\n switch (token.parent.kind) {\n case 162 /* Parameter */:\n case 161 /* TypeParameter */:\n return true;\n case 252 /* VariableDeclaration */: {\n var varDecl = token.parent;\n switch (varDecl.parent.parent.kind) {\n case 242 /* ForOfStatement */:\n case 241 /* ForInStatement */:\n return true;\n }\n }\n }\n return false;\n }\n function tryDeleteDeclaration(sourceFile, token, changes, checker, sourceFiles, program, cancellationToken, isFixAll) {\n tryDeleteDeclarationWorker(token, changes, sourceFile, checker, sourceFiles, program, cancellationToken, isFixAll);\n if (ts.isIdentifier(token)) {\n ts.FindAllReferences.Core.eachSymbolReferenceInFile(token, checker, sourceFile, function (ref) {\n if (ts.isPropertyAccessExpression(ref.parent) && ref.parent.name === ref)\n ref = ref.parent;\n if (!isFixAll && mayDeleteExpression(ref)) {\n changes.delete(sourceFile, ref.parent.parent);\n }\n });\n }\n }\n function tryDeleteDeclarationWorker(token, changes, sourceFile, checker, sourceFiles, program, cancellationToken, isFixAll) {\n var parent = token.parent;\n if (ts.isParameter(parent)) {\n tryDeleteParameter(changes, sourceFile, parent, checker, sourceFiles, program, cancellationToken, isFixAll);\n }\n else if (!(isFixAll && ts.isIdentifier(token) && ts.FindAllReferences.Core.isSymbolReferencedInFile(token, checker, sourceFile))) {\n var node = ts.isImportClause(parent) ? token : ts.isComputedPropertyName(parent) ? parent.parent : parent;\n ts.Debug.assert(node !== sourceFile, \"should not delete whole source file\");\n changes.delete(sourceFile, node);\n }\n }\n function tryDeleteParameter(changes, sourceFile, parameter, checker, sourceFiles, program, cancellationToken, isFixAll) {\n if (isFixAll === void 0) { isFixAll = false; }\n if (mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll)) {\n if (parameter.modifiers && parameter.modifiers.length > 0 &&\n (!ts.isIdentifier(parameter.name) || ts.FindAllReferences.Core.isSymbolReferencedInFile(parameter.name, checker, sourceFile))) {\n parameter.modifiers.forEach(function (modifier) { return changes.deleteModifier(sourceFile, modifier); });\n }\n else if (!parameter.initializer && isNotProvidedArguments(parameter, checker, sourceFiles)) {\n changes.delete(sourceFile, parameter);\n }\n }\n }\n function isNotProvidedArguments(parameter, checker, sourceFiles) {\n var index = parameter.parent.parameters.indexOf(parameter);\n // Just in case the call didn't provide enough arguments.\n return !ts.FindAllReferences.Core.someSignatureUsage(parameter.parent, sourceFiles, checker, function (_, call) { return !call || call.arguments.length > index; });\n }\n function mayDeleteParameter(checker, sourceFile, parameter, sourceFiles, program, cancellationToken, isFixAll) {\n var parent = parameter.parent;\n switch (parent.kind) {\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n var index = parent.parameters.indexOf(parameter);\n var referent = ts.isMethodDeclaration(parent) ? parent.name : parent;\n var entries = ts.FindAllReferences.Core.getReferencedSymbolsForNode(parent.pos, referent, program, sourceFiles, cancellationToken);\n if (entries) {\n for (var _i = 0, entries_2 = entries; _i < entries_2.length; _i++) {\n var entry = entries_2[_i];\n for (var _a = 0, _b = entry.references; _a < _b.length; _a++) {\n var reference = _b[_a];\n if (reference.kind === 1 /* Node */) {\n // argument in super(...)\n var isSuperCall_1 = ts.isSuperKeyword(reference.node)\n && ts.isCallExpression(reference.node.parent)\n && reference.node.parent.arguments.length > index;\n // argument in super.m(...)\n var isSuperMethodCall = ts.isPropertyAccessExpression(reference.node.parent)\n && ts.isSuperKeyword(reference.node.parent.expression)\n && ts.isCallExpression(reference.node.parent.parent)\n && reference.node.parent.parent.arguments.length > index;\n // parameter in overridden or overriding method\n var isOverriddenMethod = (ts.isMethodDeclaration(reference.node.parent) || ts.isMethodSignature(reference.node.parent))\n && reference.node.parent !== parameter.parent\n && reference.node.parent.parameters.length > index;\n if (isSuperCall_1 || isSuperMethodCall || isOverriddenMethod)\n return false;\n }\n }\n }\n }\n return true;\n case 254 /* FunctionDeclaration */: {\n if (parent.name && isCallbackLike(checker, sourceFile, parent.name)) {\n return isLastParameter(parent, parameter, isFixAll);\n }\n return true;\n }\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n // Can't remove a non-last parameter in a callback. Can remove a parameter in code-fix-all if future parameters are also unused.\n return isLastParameter(parent, parameter, isFixAll);\n case 171 /* SetAccessor */:\n // Setter must have a parameter\n return false;\n default:\n return ts.Debug.failBadSyntaxKind(parent);\n }\n }\n function isCallbackLike(checker, sourceFile, name) {\n return !!ts.FindAllReferences.Core.eachSymbolReferenceInFile(name, checker, sourceFile, function (reference) {\n return ts.isIdentifier(reference) && ts.isCallExpression(reference.parent) && reference.parent.arguments.indexOf(reference) >= 0;\n });\n }\n function isLastParameter(func, parameter, isFixAll) {\n var parameters = func.parameters;\n var index = parameters.indexOf(parameter);\n ts.Debug.assert(index !== -1, \"The parameter should already be in the list\");\n return isFixAll ?\n parameters.slice(index + 1).every(function (p) { return ts.isIdentifier(p.name) && !p.symbol.isReferenced; }) :\n index === parameters.length - 1;\n }\n function mayDeleteExpression(node) {\n return ((ts.isBinaryExpression(node.parent) && node.parent.left === node) ||\n ((ts.isPostfixUnaryExpression(node.parent) || ts.isPrefixUnaryExpression(node.parent)) && node.parent.operand === node)) && ts.isExpressionStatement(node.parent.parent);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixUnreachableCode\";\n var errorCodes = [ts.Diagnostics.Unreachable_code_detected.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, context.span.start, context.span.length, context.errorCode); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Remove_unreachable_code, fixId, ts.Diagnostics.Remove_all_unreachable_code)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return doChange(changes, diag.file, diag.start, diag.length, diag.code); }); },\n });\n function doChange(changes, sourceFile, start, length, errorCode) {\n var token = ts.getTokenAtPosition(sourceFile, start);\n var statement = ts.findAncestor(token, ts.isStatement);\n if (statement.getStart(sourceFile) !== token.getStart(sourceFile)) {\n var logData = JSON.stringify({\n statementKind: ts.Debug.formatSyntaxKind(statement.kind),\n tokenKind: ts.Debug.formatSyntaxKind(token.kind),\n errorCode: errorCode,\n start: start,\n length: length\n });\n ts.Debug.fail(\"Token and statement should start at the same point. \" + logData);\n }\n var container = (ts.isBlock(statement.parent) ? statement.parent : statement).parent;\n if (!ts.isBlock(statement.parent) || statement === ts.first(statement.parent.statements)) {\n switch (container.kind) {\n case 237 /* IfStatement */:\n if (container.elseStatement) {\n if (ts.isBlock(statement.parent)) {\n break;\n }\n else {\n changes.replaceNode(sourceFile, statement, ts.factory.createBlock(ts.emptyArray));\n }\n return;\n }\n // falls through\n case 239 /* WhileStatement */:\n case 240 /* ForStatement */:\n changes.delete(sourceFile, container);\n return;\n }\n }\n if (ts.isBlock(statement.parent)) {\n var end_3 = start + length;\n var lastStatement = ts.Debug.checkDefined(lastWhere(ts.sliceAfter(statement.parent.statements, statement), function (s) { return s.pos < end_3; }), \"Some statement should be last\");\n changes.deleteNodeRange(sourceFile, statement, lastStatement);\n }\n else {\n changes.delete(sourceFile, statement);\n }\n }\n function lastWhere(a, pred) {\n var last;\n for (var _i = 0, a_1 = a; _i < a_1.length; _i++) {\n var value = a_1[_i];\n if (!pred(value))\n break;\n last = value;\n }\n return last;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixUnusedLabel\";\n var errorCodes = [ts.Diagnostics.Unused_label.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, context.span.start); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Remove_unused_label, fixId, ts.Diagnostics.Remove_all_unused_labels)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return doChange(changes, diag.file, diag.start); }); },\n });\n function doChange(changes, sourceFile, start) {\n var token = ts.getTokenAtPosition(sourceFile, start);\n var labeledStatement = ts.cast(token.parent, ts.isLabeledStatement);\n var pos = token.getStart(sourceFile);\n var statementPos = labeledStatement.statement.getStart(sourceFile);\n // If label is on a separate line, just delete the rest of that line, but not the indentation of the labeled statement.\n var end = ts.positionsAreOnSameLine(pos, statementPos, sourceFile) ? statementPos\n : ts.skipTrivia(sourceFile.text, ts.findChildOfKind(labeledStatement, 58 /* ColonToken */, sourceFile).end, /*stopAfterLineBreak*/ true);\n changes.deleteRange(sourceFile, { pos: pos, end: end });\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixIdPlain = \"fixJSDocTypes_plain\";\n var fixIdNullable = \"fixJSDocTypes_nullable\";\n var errorCodes = [ts.Diagnostics.JSDoc_types_can_only_be_used_inside_documentation_comments.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var checker = context.program.getTypeChecker();\n var info = getInfo(sourceFile, context.span.start, checker);\n if (!info)\n return undefined;\n var typeNode = info.typeNode, type = info.type;\n var original = typeNode.getText(sourceFile);\n var actions = [fix(type, fixIdPlain, ts.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript)];\n if (typeNode.kind === 309 /* JSDocNullableType */) {\n // for nullable types, suggest the flow-compatible `T | null | undefined`\n // in addition to the jsdoc/closure-compatible `T | null`\n actions.push(fix(checker.getNullableType(type, 32768 /* Undefined */), fixIdNullable, ts.Diagnostics.Change_all_jsdoc_style_types_to_TypeScript_and_add_undefined_to_nullable_types));\n }\n return actions;\n function fix(type, fixId, fixAllDescription) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, typeNode, type, checker); });\n return codefix.createCodeFixAction(\"jdocTypes\", changes, [ts.Diagnostics.Change_0_to_1, original, checker.typeToString(type)], fixId, fixAllDescription);\n }\n },\n fixIds: [fixIdPlain, fixIdNullable],\n getAllCodeActions: function (context) {\n var fixId = context.fixId, program = context.program, sourceFile = context.sourceFile;\n var checker = program.getTypeChecker();\n return codefix.codeFixAll(context, errorCodes, function (changes, err) {\n var info = getInfo(err.file, err.start, checker);\n if (!info)\n return;\n var typeNode = info.typeNode, type = info.type;\n var fixedType = typeNode.kind === 309 /* JSDocNullableType */ && fixId === fixIdNullable ? checker.getNullableType(type, 32768 /* Undefined */) : type;\n doChange(changes, sourceFile, typeNode, fixedType, checker);\n });\n }\n });\n function doChange(changes, sourceFile, oldTypeNode, newType, checker) {\n changes.replaceNode(sourceFile, oldTypeNode, checker.typeToTypeNode(newType, /*enclosingDeclaration*/ oldTypeNode, /*flags*/ undefined)); // TODO: GH#18217\n }\n function getInfo(sourceFile, pos, checker) {\n var decl = ts.findAncestor(ts.getTokenAtPosition(sourceFile, pos), isTypeContainer);\n var typeNode = decl && decl.type;\n return typeNode && { typeNode: typeNode, type: checker.getTypeFromTypeNode(typeNode) };\n }\n function isTypeContainer(node) {\n // NOTE: Some locations are not handled yet:\n // MappedTypeNode.typeParameters and SignatureDeclaration.typeParameters, as well as CallExpression.typeArguments\n switch (node.kind) {\n case 227 /* AsExpression */:\n case 172 /* CallSignature */:\n case 173 /* ConstructSignature */:\n case 254 /* FunctionDeclaration */:\n case 170 /* GetAccessor */:\n case 174 /* IndexSignature */:\n case 193 /* MappedType */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 162 /* Parameter */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n case 171 /* SetAccessor */:\n case 257 /* TypeAliasDeclaration */:\n case 209 /* TypeAssertionExpression */:\n case 252 /* VariableDeclaration */:\n return true;\n default:\n return false;\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixMissingCallParentheses\";\n var errorCodes = [\n ts.Diagnostics.This_condition_will_always_return_true_since_this_function_is_always_defined_Did_you_mean_to_call_it_instead.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixId],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var callName = getCallName(sourceFile, span.start);\n if (!callName)\n return;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, callName); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_call_parentheses, fixId, ts.Diagnostics.Add_all_missing_call_parentheses)];\n },\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var callName = getCallName(diag.file, diag.start);\n if (callName)\n doChange(changes, diag.file, callName);\n }); }\n });\n function doChange(changes, sourceFile, name) {\n changes.replaceNodeWithText(sourceFile, name, name.text + \"()\");\n }\n function getCallName(sourceFile, start) {\n var token = ts.getTokenAtPosition(sourceFile, start);\n if (ts.isPropertyAccessExpression(token.parent)) {\n var current = token.parent;\n while (ts.isPropertyAccessExpression(current.parent)) {\n current = current.parent;\n }\n return current.name;\n }\n if (ts.isIdentifier(token)) {\n return token;\n }\n return undefined;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixAwaitInSyncFunction\";\n var errorCodes = [\n ts.Diagnostics.await_expressions_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,\n ts.Diagnostics.for_await_loops_are_only_allowed_within_async_functions_and_at_the_top_levels_of_modules.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var nodes = getNodes(sourceFile, span.start);\n if (!nodes)\n return undefined;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, nodes); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_async_modifier_to_containing_function, fixId, ts.Diagnostics.Add_all_missing_async_modifiers)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var seen = new ts.Map();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var nodes = getNodes(diag.file, diag.start);\n if (!nodes || !ts.addToSeen(seen, ts.getNodeId(nodes.insertBefore)))\n return;\n doChange(changes, context.sourceFile, nodes);\n });\n },\n });\n function getReturnType(expr) {\n if (expr.type) {\n return expr.type;\n }\n if (ts.isVariableDeclaration(expr.parent) &&\n expr.parent.type &&\n ts.isFunctionTypeNode(expr.parent.type)) {\n return expr.parent.type.type;\n }\n }\n function getNodes(sourceFile, start) {\n var token = ts.getTokenAtPosition(sourceFile, start);\n var containingFunction = ts.getContainingFunction(token);\n if (!containingFunction) {\n return;\n }\n var insertBefore;\n switch (containingFunction.kind) {\n case 167 /* MethodDeclaration */:\n insertBefore = containingFunction.name;\n break;\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n insertBefore = ts.findChildOfKind(containingFunction, 98 /* FunctionKeyword */, sourceFile);\n break;\n case 212 /* ArrowFunction */:\n insertBefore = ts.findChildOfKind(containingFunction, 20 /* OpenParenToken */, sourceFile) || ts.first(containingFunction.parameters);\n break;\n default:\n return;\n }\n return insertBefore && {\n insertBefore: insertBefore,\n returnType: getReturnType(containingFunction)\n };\n }\n function doChange(changes, sourceFile, _a) {\n var insertBefore = _a.insertBefore, returnType = _a.returnType;\n if (returnType) {\n var entityName = ts.getEntityNameFromTypeNode(returnType);\n if (!entityName || entityName.kind !== 79 /* Identifier */ || entityName.text !== \"Promise\") {\n changes.replaceNode(sourceFile, returnType, ts.factory.createTypeReferenceNode(\"Promise\", ts.factory.createNodeArray([returnType])));\n }\n }\n changes.insertModifierBefore(sourceFile, 130 /* AsyncKeyword */, insertBefore);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodes = [\n ts.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code,\n ts.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code,\n ];\n var fixId = \"fixPropertyOverrideAccessor\";\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var edits = doChange(context.sourceFile, context.span.start, context.span.length, context.errorCode, context);\n if (edits) {\n return [codefix.createCodeFixAction(fixId, edits, ts.Diagnostics.Generate_get_and_set_accessors, fixId, ts.Diagnostics.Generate_get_and_set_accessors_for_all_overriding_properties)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var edits = doChange(diag.file, diag.start, diag.length, diag.code, context);\n if (edits) {\n for (var _i = 0, edits_2 = edits; _i < edits_2.length; _i++) {\n var edit = edits_2[_i];\n changes.pushRaw(context.sourceFile, edit);\n }\n }\n }); },\n });\n function doChange(file, start, length, code, context) {\n var startPosition;\n var endPosition;\n if (code === ts.Diagnostics._0_is_defined_as_an_accessor_in_class_1_but_is_overridden_here_in_2_as_an_instance_property.code) {\n startPosition = start;\n endPosition = start + length;\n }\n else if (code === ts.Diagnostics._0_is_defined_as_a_property_in_class_1_but_is_overridden_here_in_2_as_an_accessor.code) {\n var checker = context.program.getTypeChecker();\n var node = ts.getTokenAtPosition(file, start).parent;\n ts.Debug.assert(ts.isAccessor(node), \"error span of fixPropertyOverrideAccessor should only be on an accessor\");\n var containingClass = node.parent;\n ts.Debug.assert(ts.isClassLike(containingClass), \"erroneous accessors should only be inside classes\");\n var base = ts.singleOrUndefined(codefix.getAllSupers(containingClass, checker));\n if (!base)\n return [];\n var name = ts.unescapeLeadingUnderscores(ts.getTextOfPropertyName(node.name));\n var baseProp = checker.getPropertyOfType(checker.getTypeAtLocation(base), name);\n if (!baseProp || !baseProp.valueDeclaration)\n return [];\n startPosition = baseProp.valueDeclaration.pos;\n endPosition = baseProp.valueDeclaration.end;\n file = ts.getSourceFileOfNode(baseProp.valueDeclaration);\n }\n else {\n ts.Debug.fail(\"fixPropertyOverrideAccessor codefix got unexpected error code \" + code);\n }\n return codefix.generateAccessorFromProperty(file, context.program, startPosition, endPosition, context, ts.Diagnostics.Generate_get_and_set_accessors.message);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"inferFromUsage\";\n var errorCodes = [\n // Variable declarations\n ts.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code,\n // Variable uses\n ts.Diagnostics.Variable_0_implicitly_has_an_1_type.code,\n // Parameter declarations\n ts.Diagnostics.Parameter_0_implicitly_has_an_1_type.code,\n ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code,\n // Get Accessor declarations\n ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code,\n ts.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code,\n // Set Accessor declarations\n ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code,\n // Property declarations\n ts.Diagnostics.Member_0_implicitly_has_an_1_type.code,\n //// Suggestions\n // Variable declarations\n ts.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code,\n // Variable uses\n ts.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,\n // Parameter declarations\n ts.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,\n ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code,\n // Get Accessor declarations\n ts.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code,\n ts.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code,\n // Set Accessor declarations\n ts.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code,\n // Property declarations\n ts.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code,\n // Function expressions and declarations\n ts.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, start = context.span.start, errorCode = context.errorCode, cancellationToken = context.cancellationToken, host = context.host, preferences = context.preferences;\n var token = ts.getTokenAtPosition(sourceFile, start);\n var declaration;\n var changes = ts.textChanges.ChangeTracker.with(context, function (changes) { declaration = doChange(changes, sourceFile, token, errorCode, program, cancellationToken, /*markSeen*/ ts.returnTrue, host, preferences); });\n var name = declaration && ts.getNameOfDeclaration(declaration);\n return !name || changes.length === 0 ? undefined\n : [codefix.createCodeFixAction(fixId, changes, [getDiagnostic(errorCode, token), name.getText(sourceFile)], fixId, ts.Diagnostics.Infer_all_types_from_usage)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, cancellationToken = context.cancellationToken, host = context.host, preferences = context.preferences;\n var markSeen = ts.nodeSeenTracker();\n return codefix.codeFixAll(context, errorCodes, function (changes, err) {\n doChange(changes, sourceFile, ts.getTokenAtPosition(err.file, err.start), err.code, program, cancellationToken, markSeen, host, preferences);\n });\n },\n });\n function getDiagnostic(errorCode, token) {\n switch (errorCode) {\n case ts.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:\n case ts.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.isSetAccessorDeclaration(ts.getContainingFunction(token)) ? ts.Diagnostics.Infer_type_of_0_from_usage : ts.Diagnostics.Infer_parameter_types_from_usage; // TODO: GH#18217\n case ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:\n case ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Infer_parameter_types_from_usage;\n case ts.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:\n return ts.Diagnostics.Infer_this_type_of_0_from_usage;\n default:\n return ts.Diagnostics.Infer_type_of_0_from_usage;\n }\n }\n /** Map suggestion code to error code */\n function mapSuggestionDiagnostic(errorCode) {\n switch (errorCode) {\n case ts.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code;\n case ts.Diagnostics.Variable_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Variable_0_implicitly_has_an_1_type.code;\n case ts.Diagnostics.Parameter_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Parameter_0_implicitly_has_an_1_type.code;\n case ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code;\n case ts.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_get_accessor_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code;\n case ts.Diagnostics._0_implicitly_has_an_1_return_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code;\n case ts.Diagnostics.Property_0_implicitly_has_type_any_but_a_better_type_for_its_set_accessor_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code;\n case ts.Diagnostics.Member_0_implicitly_has_an_1_type_but_a_better_type_may_be_inferred_from_usage.code:\n return ts.Diagnostics.Member_0_implicitly_has_an_1_type.code;\n }\n return errorCode;\n }\n function doChange(changes, sourceFile, token, errorCode, program, cancellationToken, markSeen, host, preferences) {\n if (!ts.isParameterPropertyModifier(token.kind) && token.kind !== 79 /* Identifier */ && token.kind !== 25 /* DotDotDotToken */ && token.kind !== 108 /* ThisKeyword */) {\n return undefined;\n }\n var parent = token.parent;\n var importAdder = codefix.createImportAdder(sourceFile, program, preferences, host);\n errorCode = mapSuggestionDiagnostic(errorCode);\n switch (errorCode) {\n // Variable and Property declarations\n case ts.Diagnostics.Member_0_implicitly_has_an_1_type.code:\n case ts.Diagnostics.Variable_0_implicitly_has_type_1_in_some_locations_where_its_type_cannot_be_determined.code:\n if ((ts.isVariableDeclaration(parent) && markSeen(parent)) || ts.isPropertyDeclaration(parent) || ts.isPropertySignature(parent)) { // handle bad location\n annotateVariableDeclaration(changes, importAdder, sourceFile, parent, program, host, cancellationToken);\n importAdder.writeFixes(changes);\n return parent;\n }\n if (ts.isPropertyAccessExpression(parent)) {\n var type = inferTypeForVariableFromUsage(parent.name, program, cancellationToken);\n var typeNode = ts.getTypeNodeIfAccessible(type, parent, program, host);\n if (typeNode) {\n // Note that the codefix will never fire with an existing `@type` tag, so there is no need to merge tags\n var typeTag = ts.factory.createJSDocTypeTag(/*tagName*/ undefined, ts.factory.createJSDocTypeExpression(typeNode), /*comment*/ undefined);\n addJSDocTags(changes, sourceFile, ts.cast(parent.parent.parent, ts.isExpressionStatement), [typeTag]);\n }\n importAdder.writeFixes(changes);\n return parent;\n }\n return undefined;\n case ts.Diagnostics.Variable_0_implicitly_has_an_1_type.code: {\n var symbol = program.getTypeChecker().getSymbolAtLocation(token);\n if (symbol && symbol.valueDeclaration && ts.isVariableDeclaration(symbol.valueDeclaration) && markSeen(symbol.valueDeclaration)) {\n annotateVariableDeclaration(changes, importAdder, sourceFile, symbol.valueDeclaration, program, host, cancellationToken);\n importAdder.writeFixes(changes);\n return symbol.valueDeclaration;\n }\n return undefined;\n }\n }\n var containingFunction = ts.getContainingFunction(token);\n if (containingFunction === undefined) {\n return undefined;\n }\n var declaration;\n switch (errorCode) {\n // Parameter declarations\n case ts.Diagnostics.Parameter_0_implicitly_has_an_1_type.code:\n if (ts.isSetAccessorDeclaration(containingFunction)) {\n annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken);\n declaration = containingFunction;\n break;\n }\n // falls through\n case ts.Diagnostics.Rest_parameter_0_implicitly_has_an_any_type.code:\n if (markSeen(containingFunction)) {\n var param = ts.cast(parent, ts.isParameter);\n annotateParameters(changes, importAdder, sourceFile, param, containingFunction, program, host, cancellationToken);\n declaration = param;\n }\n break;\n // Get Accessor declarations\n case ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_get_accessor_lacks_a_return_type_annotation.code:\n case ts.Diagnostics._0_which_lacks_return_type_annotation_implicitly_has_an_1_return_type.code:\n if (ts.isGetAccessorDeclaration(containingFunction) && ts.isIdentifier(containingFunction.name)) {\n annotate(changes, importAdder, sourceFile, containingFunction, inferTypeForVariableFromUsage(containingFunction.name, program, cancellationToken), program, host);\n declaration = containingFunction;\n }\n break;\n // Set Accessor declarations\n case ts.Diagnostics.Property_0_implicitly_has_type_any_because_its_set_accessor_lacks_a_parameter_type_annotation.code:\n if (ts.isSetAccessorDeclaration(containingFunction)) {\n annotateSetAccessor(changes, importAdder, sourceFile, containingFunction, program, host, cancellationToken);\n declaration = containingFunction;\n }\n break;\n // Function 'this'\n case ts.Diagnostics.this_implicitly_has_type_any_because_it_does_not_have_a_type_annotation.code:\n if (ts.textChanges.isThisTypeAnnotatable(containingFunction) && markSeen(containingFunction)) {\n annotateThis(changes, sourceFile, containingFunction, program, host, cancellationToken);\n declaration = containingFunction;\n }\n break;\n default:\n return ts.Debug.fail(String(errorCode));\n }\n importAdder.writeFixes(changes);\n return declaration;\n }\n function annotateVariableDeclaration(changes, importAdder, sourceFile, declaration, program, host, cancellationToken) {\n if (ts.isIdentifier(declaration.name)) {\n annotate(changes, importAdder, sourceFile, declaration, inferTypeForVariableFromUsage(declaration.name, program, cancellationToken), program, host);\n }\n }\n function annotateParameters(changes, importAdder, sourceFile, parameterDeclaration, containingFunction, program, host, cancellationToken) {\n if (!ts.isIdentifier(parameterDeclaration.name)) {\n return;\n }\n var parameterInferences = inferTypeForParametersFromUsage(containingFunction, sourceFile, program, cancellationToken);\n ts.Debug.assert(containingFunction.parameters.length === parameterInferences.length, \"Parameter count and inference count should match\");\n if (ts.isInJSFile(containingFunction)) {\n annotateJSDocParameters(changes, sourceFile, parameterInferences, program, host);\n }\n else {\n var needParens = ts.isArrowFunction(containingFunction) && !ts.findChildOfKind(containingFunction, 20 /* OpenParenToken */, sourceFile);\n if (needParens)\n changes.insertNodeBefore(sourceFile, ts.first(containingFunction.parameters), ts.factory.createToken(20 /* OpenParenToken */));\n for (var _i = 0, parameterInferences_1 = parameterInferences; _i < parameterInferences_1.length; _i++) {\n var _a = parameterInferences_1[_i], declaration = _a.declaration, type = _a.type;\n if (declaration && !declaration.type && !declaration.initializer) {\n annotate(changes, importAdder, sourceFile, declaration, type, program, host);\n }\n }\n if (needParens)\n changes.insertNodeAfter(sourceFile, ts.last(containingFunction.parameters), ts.factory.createToken(21 /* CloseParenToken */));\n }\n }\n function annotateThis(changes, sourceFile, containingFunction, program, host, cancellationToken) {\n var references = getFunctionReferences(containingFunction, sourceFile, program, cancellationToken);\n if (!references || !references.length) {\n return;\n }\n var thisInference = inferTypeFromReferences(program, references, cancellationToken).thisParameter();\n var typeNode = ts.getTypeNodeIfAccessible(thisInference, containingFunction, program, host);\n if (!typeNode) {\n return;\n }\n if (ts.isInJSFile(containingFunction)) {\n annotateJSDocThis(changes, sourceFile, containingFunction, typeNode);\n }\n else {\n changes.tryInsertThisTypeAnnotation(sourceFile, containingFunction, typeNode);\n }\n }\n function annotateJSDocThis(changes, sourceFile, containingFunction, typeNode) {\n addJSDocTags(changes, sourceFile, containingFunction, [\n ts.factory.createJSDocThisTag(/*tagName*/ undefined, ts.factory.createJSDocTypeExpression(typeNode)),\n ]);\n }\n function annotateSetAccessor(changes, importAdder, sourceFile, setAccessorDeclaration, program, host, cancellationToken) {\n var param = ts.firstOrUndefined(setAccessorDeclaration.parameters);\n if (param && ts.isIdentifier(setAccessorDeclaration.name) && ts.isIdentifier(param.name)) {\n var type = inferTypeForVariableFromUsage(setAccessorDeclaration.name, program, cancellationToken);\n if (type === program.getTypeChecker().getAnyType()) {\n type = inferTypeForVariableFromUsage(param.name, program, cancellationToken);\n }\n if (ts.isInJSFile(setAccessorDeclaration)) {\n annotateJSDocParameters(changes, sourceFile, [{ declaration: param, type: type }], program, host);\n }\n else {\n annotate(changes, importAdder, sourceFile, param, type, program, host);\n }\n }\n }\n function annotate(changes, importAdder, sourceFile, declaration, type, program, host) {\n var typeNode = ts.getTypeNodeIfAccessible(type, declaration, program, host);\n if (typeNode) {\n if (ts.isInJSFile(sourceFile) && declaration.kind !== 164 /* PropertySignature */) {\n var parent = ts.isVariableDeclaration(declaration) ? ts.tryCast(declaration.parent.parent, ts.isVariableStatement) : declaration;\n if (!parent) {\n return;\n }\n var typeExpression = ts.factory.createJSDocTypeExpression(typeNode);\n var typeTag = ts.isGetAccessorDeclaration(declaration) ? ts.factory.createJSDocReturnTag(/*tagName*/ undefined, typeExpression, /*comment*/ undefined) : ts.factory.createJSDocTypeTag(/*tagName*/ undefined, typeExpression, /*comment*/ undefined);\n addJSDocTags(changes, sourceFile, parent, [typeTag]);\n }\n else if (!tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, ts.getEmitScriptTarget(program.getCompilerOptions()))) {\n changes.tryInsertTypeAnnotation(sourceFile, declaration, typeNode);\n }\n }\n }\n function tryReplaceImportTypeNodeWithAutoImport(typeNode, declaration, sourceFile, changes, importAdder, scriptTarget) {\n var importableReference = codefix.tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);\n if (importableReference && changes.tryInsertTypeAnnotation(sourceFile, declaration, importableReference.typeNode)) {\n ts.forEach(importableReference.symbols, function (s) { return importAdder.addImportFromExportedSymbol(s, /*usageIsTypeOnly*/ true); });\n return true;\n }\n return false;\n }\n function annotateJSDocParameters(changes, sourceFile, parameterInferences, program, host) {\n var signature = parameterInferences.length && parameterInferences[0].declaration.parent;\n if (!signature) {\n return;\n }\n var inferences = ts.mapDefined(parameterInferences, function (inference) {\n var param = inference.declaration;\n // only infer parameters that have (1) no type and (2) an accessible inferred type\n if (param.initializer || ts.getJSDocType(param) || !ts.isIdentifier(param.name)) {\n return;\n }\n var typeNode = inference.type && ts.getTypeNodeIfAccessible(inference.type, param, program, host);\n if (typeNode) {\n var name = ts.factory.cloneNode(param.name);\n ts.setEmitFlags(name, 1536 /* NoComments */ | 2048 /* NoNestedComments */);\n return { name: ts.factory.cloneNode(param.name), param: param, isOptional: !!inference.isOptional, typeNode: typeNode };\n }\n });\n if (!inferences.length) {\n return;\n }\n if (ts.isArrowFunction(signature) || ts.isFunctionExpression(signature)) {\n var needParens = ts.isArrowFunction(signature) && !ts.findChildOfKind(signature, 20 /* OpenParenToken */, sourceFile);\n if (needParens) {\n changes.insertNodeBefore(sourceFile, ts.first(signature.parameters), ts.factory.createToken(20 /* OpenParenToken */));\n }\n ts.forEach(inferences, function (_a) {\n var typeNode = _a.typeNode, param = _a.param;\n var typeTag = ts.factory.createJSDocTypeTag(/*tagName*/ undefined, ts.factory.createJSDocTypeExpression(typeNode));\n var jsDoc = ts.factory.createJSDocComment(/*comment*/ undefined, [typeTag]);\n changes.insertNodeAt(sourceFile, param.getStart(sourceFile), jsDoc, { suffix: \" \" });\n });\n if (needParens) {\n changes.insertNodeAfter(sourceFile, ts.last(signature.parameters), ts.factory.createToken(21 /* CloseParenToken */));\n }\n }\n else {\n var paramTags = ts.map(inferences, function (_a) {\n var name = _a.name, typeNode = _a.typeNode, isOptional = _a.isOptional;\n return ts.factory.createJSDocParameterTag(/*tagName*/ undefined, name, /*isBracketed*/ !!isOptional, ts.factory.createJSDocTypeExpression(typeNode), /* isNameFirst */ false, /*comment*/ undefined);\n });\n addJSDocTags(changes, sourceFile, signature, paramTags);\n }\n }\n function addJSDocTags(changes, sourceFile, parent, newTags) {\n var comments = ts.flatMap(parent.jsDoc, function (j) { return typeof j.comment === \"string\" ? ts.factory.createJSDocText(j.comment) : j.comment; });\n var oldTags = ts.flatMapToMutable(parent.jsDoc, function (j) { return j.tags; });\n var unmergedNewTags = newTags.filter(function (newTag) { return !oldTags || !oldTags.some(function (tag, i) {\n var merged = tryMergeJsdocTags(tag, newTag);\n if (merged)\n oldTags[i] = merged;\n return !!merged;\n }); });\n var tag = ts.factory.createJSDocComment(ts.factory.createNodeArray(ts.intersperse(comments, ts.factory.createJSDocText(\"\\n\"))), ts.factory.createNodeArray(__spreadArray(__spreadArray([], (oldTags || ts.emptyArray), true), unmergedNewTags, true)));\n var jsDocNode = parent.kind === 212 /* ArrowFunction */ ? getJsDocNodeForArrowFunction(parent) : parent;\n jsDocNode.jsDoc = parent.jsDoc;\n jsDocNode.jsDocCache = parent.jsDocCache;\n changes.insertJsdocCommentBefore(sourceFile, jsDocNode, tag);\n }\n codefix.addJSDocTags = addJSDocTags;\n function getJsDocNodeForArrowFunction(signature) {\n if (signature.parent.kind === 165 /* PropertyDeclaration */) {\n return signature.parent;\n }\n return signature.parent.parent;\n }\n function tryMergeJsdocTags(oldTag, newTag) {\n if (oldTag.kind !== newTag.kind) {\n return undefined;\n }\n switch (oldTag.kind) {\n case 335 /* JSDocParameterTag */: {\n var oldParam = oldTag;\n var newParam = newTag;\n return ts.isIdentifier(oldParam.name) && ts.isIdentifier(newParam.name) && oldParam.name.escapedText === newParam.name.escapedText\n ? ts.factory.createJSDocParameterTag(/*tagName*/ undefined, newParam.name, /*isBracketed*/ false, newParam.typeExpression, newParam.isNameFirst, oldParam.comment)\n : undefined;\n }\n case 336 /* JSDocReturnTag */:\n return ts.factory.createJSDocReturnTag(/*tagName*/ undefined, newTag.typeExpression, oldTag.comment);\n }\n }\n function getReferences(token, program, cancellationToken) {\n // Position shouldn't matter since token is not a SourceFile.\n return ts.mapDefined(ts.FindAllReferences.getReferenceEntriesForNode(-1, token, program, program.getSourceFiles(), cancellationToken), function (entry) {\n return entry.kind !== 0 /* Span */ ? ts.tryCast(entry.node, ts.isIdentifier) : undefined;\n });\n }\n function inferTypeForVariableFromUsage(token, program, cancellationToken) {\n var references = getReferences(token, program, cancellationToken);\n return inferTypeFromReferences(program, references, cancellationToken).single();\n }\n function inferTypeForParametersFromUsage(func, sourceFile, program, cancellationToken) {\n var references = getFunctionReferences(func, sourceFile, program, cancellationToken);\n return references && inferTypeFromReferences(program, references, cancellationToken).parameters(func) ||\n func.parameters.map(function (p) { return ({\n declaration: p,\n type: ts.isIdentifier(p.name) ? inferTypeForVariableFromUsage(p.name, program, cancellationToken) : program.getTypeChecker().getAnyType()\n }); });\n }\n function getFunctionReferences(containingFunction, sourceFile, program, cancellationToken) {\n var searchToken;\n switch (containingFunction.kind) {\n case 169 /* Constructor */:\n searchToken = ts.findChildOfKind(containingFunction, 133 /* ConstructorKeyword */, sourceFile);\n break;\n case 212 /* ArrowFunction */:\n case 211 /* FunctionExpression */:\n var parent = containingFunction.parent;\n searchToken = (ts.isVariableDeclaration(parent) || ts.isPropertyDeclaration(parent)) && ts.isIdentifier(parent.name) ?\n parent.name :\n containingFunction.name;\n break;\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n searchToken = containingFunction.name;\n break;\n }\n if (!searchToken) {\n return undefined;\n }\n return getReferences(searchToken, program, cancellationToken);\n }\n function inferTypeFromReferences(program, references, cancellationToken) {\n var checker = program.getTypeChecker();\n var builtinConstructors = {\n string: function () { return checker.getStringType(); },\n number: function () { return checker.getNumberType(); },\n Array: function (t) { return checker.createArrayType(t); },\n Promise: function (t) { return checker.createPromiseType(t); },\n };\n var builtins = [\n checker.getStringType(),\n checker.getNumberType(),\n checker.createArrayType(checker.getAnyType()),\n checker.createPromiseType(checker.getAnyType()),\n ];\n return {\n single: single,\n parameters: parameters,\n thisParameter: thisParameter,\n };\n function createEmptyUsage() {\n return {\n isNumber: undefined,\n isString: undefined,\n isNumberOrString: undefined,\n candidateTypes: undefined,\n properties: undefined,\n calls: undefined,\n constructs: undefined,\n numberIndex: undefined,\n stringIndex: undefined,\n candidateThisTypes: undefined,\n inferredTypes: undefined,\n };\n }\n function combineUsages(usages) {\n var combinedProperties = new ts.Map();\n for (var _i = 0, usages_1 = usages; _i < usages_1.length; _i++) {\n var u = usages_1[_i];\n if (u.properties) {\n u.properties.forEach(function (p, name) {\n if (!combinedProperties.has(name)) {\n combinedProperties.set(name, []);\n }\n combinedProperties.get(name).push(p);\n });\n }\n }\n var properties = new ts.Map();\n combinedProperties.forEach(function (ps, name) {\n properties.set(name, combineUsages(ps));\n });\n return {\n isNumber: usages.some(function (u) { return u.isNumber; }),\n isString: usages.some(function (u) { return u.isString; }),\n isNumberOrString: usages.some(function (u) { return u.isNumberOrString; }),\n candidateTypes: ts.flatMap(usages, function (u) { return u.candidateTypes; }),\n properties: properties,\n calls: ts.flatMap(usages, function (u) { return u.calls; }),\n constructs: ts.flatMap(usages, function (u) { return u.constructs; }),\n numberIndex: ts.forEach(usages, function (u) { return u.numberIndex; }),\n stringIndex: ts.forEach(usages, function (u) { return u.stringIndex; }),\n candidateThisTypes: ts.flatMap(usages, function (u) { return u.candidateThisTypes; }),\n inferredTypes: undefined, // clear type cache\n };\n }\n function single() {\n return combineTypes(inferTypesFromReferencesSingle(references));\n }\n function parameters(declaration) {\n if (references.length === 0 || !declaration.parameters) {\n return undefined;\n }\n var usage = createEmptyUsage();\n for (var _i = 0, references_3 = references; _i < references_3.length; _i++) {\n var reference = references_3[_i];\n cancellationToken.throwIfCancellationRequested();\n calculateUsageOfNode(reference, usage);\n }\n var calls = __spreadArray(__spreadArray([], usage.constructs || [], true), usage.calls || [], true);\n return declaration.parameters.map(function (parameter, parameterIndex) {\n var types = [];\n var isRest = ts.isRestParameter(parameter);\n var isOptional = false;\n for (var _i = 0, calls_1 = calls; _i < calls_1.length; _i++) {\n var call = calls_1[_i];\n if (call.argumentTypes.length <= parameterIndex) {\n isOptional = ts.isInJSFile(declaration);\n types.push(checker.getUndefinedType());\n }\n else if (isRest) {\n for (var i = parameterIndex; i < call.argumentTypes.length; i++) {\n types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[i]));\n }\n }\n else {\n types.push(checker.getBaseTypeOfLiteralType(call.argumentTypes[parameterIndex]));\n }\n }\n if (ts.isIdentifier(parameter.name)) {\n var inferred = inferTypesFromReferencesSingle(getReferences(parameter.name, program, cancellationToken));\n types.push.apply(types, (isRest ? ts.mapDefined(inferred, checker.getElementTypeOfArrayType) : inferred));\n }\n var type = combineTypes(types);\n return {\n type: isRest ? checker.createArrayType(type) : type,\n isOptional: isOptional && !isRest,\n declaration: parameter\n };\n });\n }\n function thisParameter() {\n var usage = createEmptyUsage();\n for (var _i = 0, references_4 = references; _i < references_4.length; _i++) {\n var reference = references_4[_i];\n cancellationToken.throwIfCancellationRequested();\n calculateUsageOfNode(reference, usage);\n }\n return combineTypes(usage.candidateThisTypes || ts.emptyArray);\n }\n function inferTypesFromReferencesSingle(references) {\n var usage = createEmptyUsage();\n for (var _i = 0, references_5 = references; _i < references_5.length; _i++) {\n var reference = references_5[_i];\n cancellationToken.throwIfCancellationRequested();\n calculateUsageOfNode(reference, usage);\n }\n return inferTypes(usage);\n }\n function calculateUsageOfNode(node, usage) {\n while (ts.isRightSideOfQualifiedNameOrPropertyAccess(node)) {\n node = node.parent;\n }\n switch (node.parent.kind) {\n case 236 /* ExpressionStatement */:\n inferTypeFromExpressionStatement(node, usage);\n break;\n case 218 /* PostfixUnaryExpression */:\n usage.isNumber = true;\n break;\n case 217 /* PrefixUnaryExpression */:\n inferTypeFromPrefixUnaryExpression(node.parent, usage);\n break;\n case 219 /* BinaryExpression */:\n inferTypeFromBinaryExpression(node, node.parent, usage);\n break;\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n inferTypeFromSwitchStatementLabel(node.parent, usage);\n break;\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n if (node.parent.expression === node) {\n inferTypeFromCallExpression(node.parent, usage);\n }\n else {\n inferTypeFromContextualType(node, usage);\n }\n break;\n case 204 /* PropertyAccessExpression */:\n inferTypeFromPropertyAccessExpression(node.parent, usage);\n break;\n case 205 /* ElementAccessExpression */:\n inferTypeFromPropertyElementExpression(node.parent, node, usage);\n break;\n case 291 /* PropertyAssignment */:\n case 292 /* ShorthandPropertyAssignment */:\n inferTypeFromPropertyAssignment(node.parent, usage);\n break;\n case 165 /* PropertyDeclaration */:\n inferTypeFromPropertyDeclaration(node.parent, usage);\n break;\n case 252 /* VariableDeclaration */: {\n var _a = node.parent, name = _a.name, initializer = _a.initializer;\n if (node === name) {\n if (initializer) { // This can happen for `let x = null;` which still has an implicit-any error.\n addCandidateType(usage, checker.getTypeAtLocation(initializer));\n }\n break;\n }\n }\n // falls through\n default:\n return inferTypeFromContextualType(node, usage);\n }\n }\n function inferTypeFromContextualType(node, usage) {\n if (ts.isExpressionNode(node)) {\n addCandidateType(usage, checker.getContextualType(node));\n }\n }\n function inferTypeFromExpressionStatement(node, usage) {\n addCandidateType(usage, ts.isCallExpression(node) ? checker.getVoidType() : checker.getAnyType());\n }\n function inferTypeFromPrefixUnaryExpression(node, usage) {\n switch (node.operator) {\n case 45 /* PlusPlusToken */:\n case 46 /* MinusMinusToken */:\n case 40 /* MinusToken */:\n case 54 /* TildeToken */:\n usage.isNumber = true;\n break;\n case 39 /* PlusToken */:\n usage.isNumberOrString = true;\n break;\n // case SyntaxKind.ExclamationToken:\n // no inferences here;\n }\n }\n function inferTypeFromBinaryExpression(node, parent, usage) {\n switch (parent.operatorToken.kind) {\n // ExponentiationOperator\n case 42 /* AsteriskAsteriskToken */:\n // MultiplicativeOperator\n // falls through\n case 41 /* AsteriskToken */:\n case 43 /* SlashToken */:\n case 44 /* PercentToken */:\n // ShiftOperator\n // falls through\n case 47 /* LessThanLessThanToken */:\n case 48 /* GreaterThanGreaterThanToken */:\n case 49 /* GreaterThanGreaterThanGreaterThanToken */:\n // BitwiseOperator\n // falls through\n case 50 /* AmpersandToken */:\n case 51 /* BarToken */:\n case 52 /* CaretToken */:\n // CompoundAssignmentOperator\n // falls through\n case 65 /* MinusEqualsToken */:\n case 67 /* AsteriskAsteriskEqualsToken */:\n case 66 /* AsteriskEqualsToken */:\n case 68 /* SlashEqualsToken */:\n case 69 /* PercentEqualsToken */:\n case 73 /* AmpersandEqualsToken */:\n case 74 /* BarEqualsToken */:\n case 78 /* CaretEqualsToken */:\n case 70 /* LessThanLessThanEqualsToken */:\n case 72 /* GreaterThanGreaterThanGreaterThanEqualsToken */:\n case 71 /* GreaterThanGreaterThanEqualsToken */:\n // AdditiveOperator\n // falls through\n case 40 /* MinusToken */:\n // RelationalOperator\n // falls through\n case 29 /* LessThanToken */:\n case 32 /* LessThanEqualsToken */:\n case 31 /* GreaterThanToken */:\n case 33 /* GreaterThanEqualsToken */:\n var operandType = checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left);\n if (operandType.flags & 1056 /* EnumLike */) {\n addCandidateType(usage, operandType);\n }\n else {\n usage.isNumber = true;\n }\n break;\n case 64 /* PlusEqualsToken */:\n case 39 /* PlusToken */:\n var otherOperandType = checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left);\n if (otherOperandType.flags & 1056 /* EnumLike */) {\n addCandidateType(usage, otherOperandType);\n }\n else if (otherOperandType.flags & 296 /* NumberLike */) {\n usage.isNumber = true;\n }\n else if (otherOperandType.flags & 402653316 /* StringLike */) {\n usage.isString = true;\n }\n else if (otherOperandType.flags & 1 /* Any */) {\n // do nothing, maybe we'll learn something elsewhere\n }\n else {\n usage.isNumberOrString = true;\n }\n break;\n // AssignmentOperators\n case 63 /* EqualsToken */:\n case 34 /* EqualsEqualsToken */:\n case 36 /* EqualsEqualsEqualsToken */:\n case 37 /* ExclamationEqualsEqualsToken */:\n case 35 /* ExclamationEqualsToken */:\n addCandidateType(usage, checker.getTypeAtLocation(parent.left === node ? parent.right : parent.left));\n break;\n case 101 /* InKeyword */:\n if (node === parent.left) {\n usage.isString = true;\n }\n break;\n // LogicalOperator Or NullishCoalescing\n case 56 /* BarBarToken */:\n case 60 /* QuestionQuestionToken */:\n if (node === parent.left &&\n (node.parent.parent.kind === 252 /* VariableDeclaration */ || ts.isAssignmentExpression(node.parent.parent, /*excludeCompoundAssignment*/ true))) {\n // var x = x || {};\n // TODO: use getFalsyflagsOfType\n addCandidateType(usage, checker.getTypeAtLocation(parent.right));\n }\n break;\n case 55 /* AmpersandAmpersandToken */:\n case 27 /* CommaToken */:\n case 102 /* InstanceOfKeyword */:\n // nothing to infer here\n break;\n }\n }\n function inferTypeFromSwitchStatementLabel(parent, usage) {\n addCandidateType(usage, checker.getTypeAtLocation(parent.parent.parent.expression));\n }\n function inferTypeFromCallExpression(parent, usage) {\n var call = {\n argumentTypes: [],\n return_: createEmptyUsage()\n };\n if (parent.arguments) {\n for (var _i = 0, _a = parent.arguments; _i < _a.length; _i++) {\n var argument = _a[_i];\n call.argumentTypes.push(checker.getTypeAtLocation(argument));\n }\n }\n calculateUsageOfNode(parent, call.return_);\n if (parent.kind === 206 /* CallExpression */) {\n (usage.calls || (usage.calls = [])).push(call);\n }\n else {\n (usage.constructs || (usage.constructs = [])).push(call);\n }\n }\n function inferTypeFromPropertyAccessExpression(parent, usage) {\n var name = ts.escapeLeadingUnderscores(parent.name.text);\n if (!usage.properties) {\n usage.properties = new ts.Map();\n }\n var propertyUsage = usage.properties.get(name) || createEmptyUsage();\n calculateUsageOfNode(parent, propertyUsage);\n usage.properties.set(name, propertyUsage);\n }\n function inferTypeFromPropertyElementExpression(parent, node, usage) {\n if (node === parent.argumentExpression) {\n usage.isNumberOrString = true;\n return;\n }\n else {\n var indexType = checker.getTypeAtLocation(parent.argumentExpression);\n var indexUsage = createEmptyUsage();\n calculateUsageOfNode(parent, indexUsage);\n if (indexType.flags & 296 /* NumberLike */) {\n usage.numberIndex = indexUsage;\n }\n else {\n usage.stringIndex = indexUsage;\n }\n }\n }\n function inferTypeFromPropertyAssignment(assignment, usage) {\n var nodeWithRealType = ts.isVariableDeclaration(assignment.parent.parent) ?\n assignment.parent.parent :\n assignment.parent;\n addCandidateThisType(usage, checker.getTypeAtLocation(nodeWithRealType));\n }\n function inferTypeFromPropertyDeclaration(declaration, usage) {\n addCandidateThisType(usage, checker.getTypeAtLocation(declaration.parent));\n }\n function removeLowPriorityInferences(inferences, priorities) {\n var toRemove = [];\n for (var _i = 0, inferences_1 = inferences; _i < inferences_1.length; _i++) {\n var i = inferences_1[_i];\n for (var _a = 0, priorities_1 = priorities; _a < priorities_1.length; _a++) {\n var _b = priorities_1[_a], high = _b.high, low = _b.low;\n if (high(i)) {\n ts.Debug.assert(!low(i), \"Priority can't have both low and high\");\n toRemove.push(low);\n }\n }\n }\n return inferences.filter(function (i) { return toRemove.every(function (f) { return !f(i); }); });\n }\n function combineFromUsage(usage) {\n return combineTypes(inferTypes(usage));\n }\n function combineTypes(inferences) {\n if (!inferences.length)\n return checker.getAnyType();\n // 1. string or number individually override string | number\n // 2. non-any, non-void overrides any or void\n // 3. non-nullable, non-any, non-void, non-anonymous overrides anonymous types\n var stringNumber = checker.getUnionType([checker.getStringType(), checker.getNumberType()]);\n var priorities = [\n {\n high: function (t) { return t === checker.getStringType() || t === checker.getNumberType(); },\n low: function (t) { return t === stringNumber; }\n },\n {\n high: function (t) { return !(t.flags & (1 /* Any */ | 16384 /* Void */)); },\n low: function (t) { return !!(t.flags & (1 /* Any */ | 16384 /* Void */)); }\n },\n {\n high: function (t) { return !(t.flags & (98304 /* Nullable */ | 1 /* Any */ | 16384 /* Void */)) && !(ts.getObjectFlags(t) & 16 /* Anonymous */); },\n low: function (t) { return !!(ts.getObjectFlags(t) & 16 /* Anonymous */); }\n }\n ];\n var good = removeLowPriorityInferences(inferences, priorities);\n var anons = good.filter(function (i) { return ts.getObjectFlags(i) & 16 /* Anonymous */; });\n if (anons.length) {\n good = good.filter(function (i) { return !(ts.getObjectFlags(i) & 16 /* Anonymous */); });\n good.push(combineAnonymousTypes(anons));\n }\n return checker.getWidenedType(checker.getUnionType(good.map(checker.getBaseTypeOfLiteralType), 2 /* Subtype */));\n }\n function combineAnonymousTypes(anons) {\n if (anons.length === 1) {\n return anons[0];\n }\n var calls = [];\n var constructs = [];\n var stringIndices = [];\n var numberIndices = [];\n var stringIndexReadonly = false;\n var numberIndexReadonly = false;\n var props = ts.createMultiMap();\n for (var _i = 0, anons_1 = anons; _i < anons_1.length; _i++) {\n var anon = anons_1[_i];\n for (var _a = 0, _b = checker.getPropertiesOfType(anon); _a < _b.length; _a++) {\n var p = _b[_a];\n props.add(p.name, p.valueDeclaration ? checker.getTypeOfSymbolAtLocation(p, p.valueDeclaration) : checker.getAnyType());\n }\n calls.push.apply(calls, checker.getSignaturesOfType(anon, 0 /* Call */));\n constructs.push.apply(constructs, checker.getSignaturesOfType(anon, 1 /* Construct */));\n var stringIndexInfo = checker.getIndexInfoOfType(anon, 0 /* String */);\n if (stringIndexInfo) {\n stringIndices.push(stringIndexInfo.type);\n stringIndexReadonly = stringIndexReadonly || stringIndexInfo.isReadonly;\n }\n var numberIndexInfo = checker.getIndexInfoOfType(anon, 1 /* Number */);\n if (numberIndexInfo) {\n numberIndices.push(numberIndexInfo.type);\n numberIndexReadonly = numberIndexReadonly || numberIndexInfo.isReadonly;\n }\n }\n var members = ts.mapEntries(props, function (name, types) {\n var isOptional = types.length < anons.length ? 16777216 /* Optional */ : 0;\n var s = checker.createSymbol(4 /* Property */ | isOptional, name);\n s.type = checker.getUnionType(types);\n return [name, s];\n });\n var indexInfos = [];\n if (stringIndices.length)\n indexInfos.push(checker.createIndexInfo(checker.getStringType(), checker.getUnionType(stringIndices), stringIndexReadonly));\n if (numberIndices.length)\n indexInfos.push(checker.createIndexInfo(checker.getNumberType(), checker.getUnionType(numberIndices), numberIndexReadonly));\n return checker.createAnonymousType(anons[0].symbol, members, calls, constructs, indexInfos);\n }\n function inferTypes(usage) {\n var _a, _b, _c;\n var types = [];\n if (usage.isNumber) {\n types.push(checker.getNumberType());\n }\n if (usage.isString) {\n types.push(checker.getStringType());\n }\n if (usage.isNumberOrString) {\n types.push(checker.getUnionType([checker.getStringType(), checker.getNumberType()]));\n }\n if (usage.numberIndex) {\n types.push(checker.createArrayType(combineFromUsage(usage.numberIndex)));\n }\n if (((_a = usage.properties) === null || _a === void 0 ? void 0 : _a.size) || ((_b = usage.calls) === null || _b === void 0 ? void 0 : _b.length) || ((_c = usage.constructs) === null || _c === void 0 ? void 0 : _c.length) || usage.stringIndex) {\n types.push(inferStructuralType(usage));\n }\n types.push.apply(types, (usage.candidateTypes || []).map(function (t) { return checker.getBaseTypeOfLiteralType(t); }));\n types.push.apply(types, inferNamedTypesFromProperties(usage));\n return types;\n }\n function inferStructuralType(usage) {\n var members = new ts.Map();\n if (usage.properties) {\n usage.properties.forEach(function (u, name) {\n var symbol = checker.createSymbol(4 /* Property */, name);\n symbol.type = combineFromUsage(u);\n members.set(name, symbol);\n });\n }\n var callSignatures = usage.calls ? [getSignatureFromCalls(usage.calls)] : [];\n var constructSignatures = usage.constructs ? [getSignatureFromCalls(usage.constructs)] : [];\n var indexInfos = usage.stringIndex ? [checker.createIndexInfo(checker.getStringType(), combineFromUsage(usage.stringIndex), /*isReadonly*/ false)] : [];\n return checker.createAnonymousType(/*symbol*/ undefined, members, callSignatures, constructSignatures, indexInfos);\n }\n function inferNamedTypesFromProperties(usage) {\n if (!usage.properties || !usage.properties.size)\n return [];\n var types = builtins.filter(function (t) { return allPropertiesAreAssignableToUsage(t, usage); });\n if (0 < types.length && types.length < 3) {\n return types.map(function (t) { return inferInstantiationFromUsage(t, usage); });\n }\n return [];\n }\n function allPropertiesAreAssignableToUsage(type, usage) {\n if (!usage.properties)\n return false;\n return !ts.forEachEntry(usage.properties, function (propUsage, name) {\n var source = checker.getTypeOfPropertyOfType(type, name);\n if (!source) {\n return true;\n }\n if (propUsage.calls) {\n var sigs = checker.getSignaturesOfType(source, 0 /* Call */);\n return !sigs.length || !checker.isTypeAssignableTo(source, getFunctionFromCalls(propUsage.calls));\n }\n else {\n return !checker.isTypeAssignableTo(source, combineFromUsage(propUsage));\n }\n });\n }\n /**\n * inference is limited to\n * 1. generic types with a single parameter\n * 2. inference to/from calls with a single signature\n */\n function inferInstantiationFromUsage(type, usage) {\n if (!(ts.getObjectFlags(type) & 4 /* Reference */) || !usage.properties) {\n return type;\n }\n var generic = type.target;\n var singleTypeParameter = ts.singleOrUndefined(generic.typeParameters);\n if (!singleTypeParameter)\n return type;\n var types = [];\n usage.properties.forEach(function (propUsage, name) {\n var genericPropertyType = checker.getTypeOfPropertyOfType(generic, name);\n ts.Debug.assert(!!genericPropertyType, \"generic should have all the properties of its reference.\");\n types.push.apply(types, inferTypeParameters(genericPropertyType, combineFromUsage(propUsage), singleTypeParameter));\n });\n return builtinConstructors[type.symbol.escapedName](combineTypes(types));\n }\n function inferTypeParameters(genericType, usageType, typeParameter) {\n if (genericType === typeParameter) {\n return [usageType];\n }\n else if (genericType.flags & 3145728 /* UnionOrIntersection */) {\n return ts.flatMap(genericType.types, function (t) { return inferTypeParameters(t, usageType, typeParameter); });\n }\n else if (ts.getObjectFlags(genericType) & 4 /* Reference */ && ts.getObjectFlags(usageType) & 4 /* Reference */) {\n // this is wrong because we need a reference to the targetType to, so we can check that it's also a reference\n var genericArgs = checker.getTypeArguments(genericType);\n var usageArgs = checker.getTypeArguments(usageType);\n var types = [];\n if (genericArgs && usageArgs) {\n for (var i = 0; i < genericArgs.length; i++) {\n if (usageArgs[i]) {\n types.push.apply(types, inferTypeParameters(genericArgs[i], usageArgs[i], typeParameter));\n }\n }\n }\n return types;\n }\n var genericSigs = checker.getSignaturesOfType(genericType, 0 /* Call */);\n var usageSigs = checker.getSignaturesOfType(usageType, 0 /* Call */);\n if (genericSigs.length === 1 && usageSigs.length === 1) {\n return inferFromSignatures(genericSigs[0], usageSigs[0], typeParameter);\n }\n return [];\n }\n function inferFromSignatures(genericSig, usageSig, typeParameter) {\n var types = [];\n for (var i = 0; i < genericSig.parameters.length; i++) {\n var genericParam = genericSig.parameters[i];\n var usageParam = usageSig.parameters[i];\n var isRest = genericSig.declaration && ts.isRestParameter(genericSig.declaration.parameters[i]);\n if (!usageParam) {\n break;\n }\n var genericParamType = genericParam.valueDeclaration ? checker.getTypeOfSymbolAtLocation(genericParam, genericParam.valueDeclaration) : checker.getAnyType();\n var elementType = isRest && checker.getElementTypeOfArrayType(genericParamType);\n if (elementType) {\n genericParamType = elementType;\n }\n var targetType = usageParam.type\n || (usageParam.valueDeclaration ? checker.getTypeOfSymbolAtLocation(usageParam, usageParam.valueDeclaration) : checker.getAnyType());\n types.push.apply(types, inferTypeParameters(genericParamType, targetType, typeParameter));\n }\n var genericReturn = checker.getReturnTypeOfSignature(genericSig);\n var usageReturn = checker.getReturnTypeOfSignature(usageSig);\n types.push.apply(types, inferTypeParameters(genericReturn, usageReturn, typeParameter));\n return types;\n }\n function getFunctionFromCalls(calls) {\n return checker.createAnonymousType(/*symbol*/ undefined, ts.createSymbolTable(), [getSignatureFromCalls(calls)], ts.emptyArray, ts.emptyArray);\n }\n function getSignatureFromCalls(calls) {\n var parameters = [];\n var length = Math.max.apply(Math, calls.map(function (c) { return c.argumentTypes.length; }));\n var _loop_15 = function (i) {\n var symbol = checker.createSymbol(1 /* FunctionScopedVariable */, ts.escapeLeadingUnderscores(\"arg\" + i));\n symbol.type = combineTypes(calls.map(function (call) { return call.argumentTypes[i] || checker.getUndefinedType(); }));\n if (calls.some(function (call) { return call.argumentTypes[i] === undefined; })) {\n symbol.flags |= 16777216 /* Optional */;\n }\n parameters.push(symbol);\n };\n for (var i = 0; i < length; i++) {\n _loop_15(i);\n }\n var returnType = combineFromUsage(combineUsages(calls.map(function (call) { return call.return_; })));\n return checker.createSignature(/*declaration*/ undefined, /*typeParameters*/ undefined, /*thisParameter*/ undefined, parameters, returnType, /*typePredicate*/ undefined, length, 0 /* None */);\n }\n function addCandidateType(usage, type) {\n if (type && !(type.flags & 1 /* Any */) && !(type.flags & 131072 /* Never */)) {\n (usage.candidateTypes || (usage.candidateTypes = [])).push(type);\n }\n }\n function addCandidateThisType(usage, type) {\n if (type && !(type.flags & 1 /* Any */) && !(type.flags & 131072 /* Never */)) {\n (usage.candidateThisTypes || (usage.candidateThisTypes = [])).push(type);\n }\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixReturnTypeInAsyncFunction\";\n var errorCodes = [\n ts.Diagnostics.The_return_type_of_an_async_function_or_method_must_be_the_global_Promise_T_type_Did_you_mean_to_write_Promise_0.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixId],\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, span = context.span;\n var checker = program.getTypeChecker();\n var info = getInfo(sourceFile, program.getTypeChecker(), span.start);\n if (!info) {\n return undefined;\n }\n var returnTypeNode = info.returnTypeNode, returnType = info.returnType, promisedTypeNode = info.promisedTypeNode, promisedType = info.promisedType;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, returnTypeNode, promisedTypeNode); });\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Replace_0_with_Promise_1,\n checker.typeToString(returnType), checker.typeToString(promisedType)], fixId, ts.Diagnostics.Fix_all_incorrect_return_type_of_an_async_functions)];\n },\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, context.program.getTypeChecker(), diag.start);\n if (info) {\n doChange(changes, diag.file, info.returnTypeNode, info.promisedTypeNode);\n }\n }); }\n });\n function getInfo(sourceFile, checker, pos) {\n if (ts.isInJSFile(sourceFile)) {\n return undefined;\n }\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var func = ts.findAncestor(token, ts.isFunctionLikeDeclaration);\n var returnTypeNode = func === null || func === void 0 ? void 0 : func.type;\n if (!returnTypeNode) {\n return undefined;\n }\n var returnType = checker.getTypeFromTypeNode(returnTypeNode);\n var promisedType = checker.getAwaitedType(returnType) || checker.getVoidType();\n var promisedTypeNode = checker.typeToTypeNode(promisedType, /*enclosingDeclaration*/ returnTypeNode, /*flags*/ undefined);\n if (promisedTypeNode) {\n return { returnTypeNode: returnTypeNode, returnType: returnType, promisedTypeNode: promisedTypeNode, promisedType: promisedType };\n }\n }\n function doChange(changes, sourceFile, returnTypeNode, promisedTypeNode) {\n changes.replaceNode(sourceFile, returnTypeNode, ts.factory.createTypeReferenceNode(\"Promise\", [promisedTypeNode]));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixName = \"disableJsDiagnostics\";\n var fixId = \"disableJsDiagnostics\";\n var errorCodes = ts.mapDefined(Object.keys(ts.Diagnostics), function (key) {\n var diag = ts.Diagnostics[key];\n return diag.category === ts.DiagnosticCategory.Error ? diag.code : undefined;\n });\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, program = context.program, span = context.span, host = context.host, formatContext = context.formatContext;\n if (!ts.isInJSFile(sourceFile) || !ts.isCheckJsEnabledForFile(sourceFile, program.getCompilerOptions())) {\n return undefined;\n }\n var newLineCharacter = sourceFile.checkJsDirective ? \"\" : ts.getNewLineOrDefaultFromHost(host, formatContext.options);\n var fixes = [\n // fixId unnecessary because adding `// @ts-nocheck` even once will ignore every error in the file.\n codefix.createCodeFixActionWithoutFixAll(fixName, [codefix.createFileTextChanges(sourceFile.fileName, [\n ts.createTextChange(sourceFile.checkJsDirective\n ? ts.createTextSpanFromBounds(sourceFile.checkJsDirective.pos, sourceFile.checkJsDirective.end)\n : ts.createTextSpan(0, 0), \"// @ts-nocheck\" + newLineCharacter),\n ])], ts.Diagnostics.Disable_checking_for_this_file),\n ];\n if (ts.textChanges.isValidLocationToAddComment(sourceFile, span.start)) {\n fixes.unshift(codefix.createCodeFixAction(fixName, ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, sourceFile, span.start); }), ts.Diagnostics.Ignore_this_error_message, fixId, ts.Diagnostics.Add_ts_ignore_to_all_error_messages));\n }\n return fixes;\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n var seenLines = new ts.Set();\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n if (ts.textChanges.isValidLocationToAddComment(diag.file, diag.start)) {\n makeChange(changes, diag.file, diag.start, seenLines);\n }\n });\n },\n });\n function makeChange(changes, sourceFile, position, seenLines) {\n var lineNumber = ts.getLineAndCharacterOfPosition(sourceFile, position).line;\n // Only need to add `// @ts-ignore` for a line once.\n if (!seenLines || ts.tryAddToSet(seenLines, lineNumber)) {\n changes.insertCommentBeforeLine(sourceFile, lineNumber, position, \" @ts-ignore\");\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n /**\n * Finds members of the resolved type that are missing in the class pointed to by class decl\n * and generates source code for the missing members.\n * @param possiblyMissingSymbols The collection of symbols to filter and then get insertions for.\n * @param importAdder If provided, type annotations will use identifier type references instead of ImportTypeNodes, and the missing imports will be added to the importAdder.\n * @returns Empty string iff there are no member insertions.\n */\n function createMissingMemberNodes(classDeclaration, possiblyMissingSymbols, sourceFile, context, preferences, importAdder, addClassElement) {\n var classMembers = classDeclaration.symbol.members;\n for (var _i = 0, possiblyMissingSymbols_1 = possiblyMissingSymbols; _i < possiblyMissingSymbols_1.length; _i++) {\n var symbol = possiblyMissingSymbols_1[_i];\n if (!classMembers.has(symbol.escapedName)) {\n addNewNodeForMemberSymbol(symbol, classDeclaration, sourceFile, context, preferences, importAdder, addClassElement);\n }\n }\n }\n codefix.createMissingMemberNodes = createMissingMemberNodes;\n function getNoopSymbolTrackerWithResolver(context) {\n return {\n trackSymbol: function () { return false; },\n moduleResolverHost: ts.getModuleSpecifierResolverHost(context.program, context.host),\n };\n }\n codefix.getNoopSymbolTrackerWithResolver = getNoopSymbolTrackerWithResolver;\n /**\n * @returns Empty string iff there we can't figure out a representation for `symbol` in `enclosingDeclaration`.\n */\n function addNewNodeForMemberSymbol(symbol, enclosingDeclaration, sourceFile, context, preferences, importAdder, addClassElement) {\n var declarations = symbol.getDeclarations();\n if (!(declarations && declarations.length)) {\n return undefined;\n }\n var checker = context.program.getTypeChecker();\n var scriptTarget = ts.getEmitScriptTarget(context.program.getCompilerOptions());\n var declaration = declarations[0];\n var name = ts.getSynthesizedDeepClone(ts.getNameOfDeclaration(declaration), /*includeTrivia*/ false);\n var visibilityModifier = createVisibilityModifier(ts.getEffectiveModifierFlags(declaration));\n var modifiers = visibilityModifier ? ts.factory.createNodeArray([visibilityModifier]) : undefined;\n var type = checker.getWidenedType(checker.getTypeOfSymbolAtLocation(symbol, enclosingDeclaration));\n var optional = !!(symbol.flags & 16777216 /* Optional */);\n var ambient = !!(enclosingDeclaration.flags & 8388608 /* Ambient */);\n var quotePreference = ts.getQuotePreference(sourceFile, preferences);\n switch (declaration.kind) {\n case 164 /* PropertySignature */:\n case 165 /* PropertyDeclaration */:\n var flags = quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : undefined;\n var typeNode = checker.typeToTypeNode(type, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context));\n if (importAdder) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);\n if (importableReference) {\n typeNode = importableReference.typeNode;\n importSymbols(importAdder, importableReference.symbols);\n }\n }\n addClassElement(ts.factory.createPropertyDeclaration(\n /*decorators*/ undefined, modifiers, name, optional ? ts.factory.createToken(57 /* QuestionToken */) : undefined, typeNode, \n /*initializer*/ undefined));\n break;\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */: {\n var typeNode_1 = checker.typeToTypeNode(type, enclosingDeclaration, /*flags*/ undefined, getNoopSymbolTrackerWithResolver(context));\n var allAccessors = ts.getAllAccessorDeclarations(declarations, declaration);\n var orderedAccessors = allAccessors.secondAccessor\n ? [allAccessors.firstAccessor, allAccessors.secondAccessor]\n : [allAccessors.firstAccessor];\n if (importAdder) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode_1, scriptTarget);\n if (importableReference) {\n typeNode_1 = importableReference.typeNode;\n importSymbols(importAdder, importableReference.symbols);\n }\n }\n for (var _i = 0, orderedAccessors_1 = orderedAccessors; _i < orderedAccessors_1.length; _i++) {\n var accessor = orderedAccessors_1[_i];\n if (ts.isGetAccessorDeclaration(accessor)) {\n addClassElement(ts.factory.createGetAccessorDeclaration(\n /*decorators*/ undefined, modifiers, name, ts.emptyArray, typeNode_1, ambient ? undefined : createStubbedMethodBody(quotePreference)));\n }\n else {\n ts.Debug.assertNode(accessor, ts.isSetAccessorDeclaration, \"The counterpart to a getter should be a setter\");\n var parameter = ts.getSetAccessorValueParameter(accessor);\n var parameterName = parameter && ts.isIdentifier(parameter.name) ? ts.idText(parameter.name) : undefined;\n addClassElement(ts.factory.createSetAccessorDeclaration(\n /*decorators*/ undefined, modifiers, name, createDummyParameters(1, [parameterName], [typeNode_1], 1, /*inJs*/ false), ambient ? undefined : createStubbedMethodBody(quotePreference)));\n }\n }\n break;\n }\n case 166 /* MethodSignature */:\n case 167 /* MethodDeclaration */:\n // The signature for the implementation appears as an entry in `signatures` iff\n // there is only one signature.\n // If there are overloads and an implementation signature, it appears as an\n // extra declaration that isn't a signature for `type`.\n // If there is more than one overload but no implementation signature\n // (eg: an abstract method or interface declaration), there is a 1-1\n // correspondence of declarations and signatures.\n var signatures = checker.getSignaturesOfType(type, 0 /* Call */);\n if (!ts.some(signatures)) {\n break;\n }\n if (declarations.length === 1) {\n ts.Debug.assert(signatures.length === 1, \"One declaration implies one signature\");\n var signature = signatures[0];\n outputMethod(quotePreference, signature, modifiers, name, ambient ? undefined : createStubbedMethodBody(quotePreference));\n break;\n }\n for (var _a = 0, signatures_1 = signatures; _a < signatures_1.length; _a++) {\n var signature = signatures_1[_a];\n // Ensure nodes are fresh so they can have different positions when going through formatting.\n outputMethod(quotePreference, signature, ts.getSynthesizedDeepClones(modifiers, /*includeTrivia*/ false), ts.getSynthesizedDeepClone(name, /*includeTrivia*/ false));\n }\n if (!ambient) {\n if (declarations.length > signatures.length) {\n var signature = checker.getSignatureFromDeclaration(declarations[declarations.length - 1]);\n outputMethod(quotePreference, signature, modifiers, name, createStubbedMethodBody(quotePreference));\n }\n else {\n ts.Debug.assert(declarations.length === signatures.length, \"Declarations and signatures should match count\");\n addClassElement(createMethodImplementingSignatures(checker, context, enclosingDeclaration, signatures, name, optional, modifiers, quotePreference));\n }\n }\n break;\n }\n function outputMethod(quotePreference, signature, modifiers, name, body) {\n var method = createSignatureDeclarationFromSignature(167 /* MethodDeclaration */, context, quotePreference, signature, body, name, modifiers, optional, enclosingDeclaration, importAdder);\n if (method)\n addClassElement(method);\n }\n }\n function createSignatureDeclarationFromSignature(kind, context, quotePreference, signature, body, name, modifiers, optional, enclosingDeclaration, importAdder) {\n var program = context.program;\n var checker = program.getTypeChecker();\n var scriptTarget = ts.getEmitScriptTarget(program.getCompilerOptions());\n var flags = 1 /* NoTruncation */ | 1073741824 /* NoUndefinedOptionalParameterType */ | 256 /* SuppressAnyReturnType */ | (quotePreference === 0 /* Single */ ? 268435456 /* UseSingleQuotesForStringLiteralType */ : 0);\n var signatureDeclaration = checker.signatureToSignatureDeclaration(signature, kind, enclosingDeclaration, flags, getNoopSymbolTrackerWithResolver(context));\n if (!signatureDeclaration) {\n return undefined;\n }\n var typeParameters = signatureDeclaration.typeParameters;\n var parameters = signatureDeclaration.parameters;\n var type = signatureDeclaration.type;\n if (importAdder) {\n if (typeParameters) {\n var newTypeParameters = ts.sameMap(typeParameters, function (typeParameterDecl) {\n var constraint = typeParameterDecl.constraint;\n var defaultType = typeParameterDecl.default;\n if (constraint) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(constraint, scriptTarget);\n if (importableReference) {\n constraint = importableReference.typeNode;\n importSymbols(importAdder, importableReference.symbols);\n }\n }\n if (defaultType) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(defaultType, scriptTarget);\n if (importableReference) {\n defaultType = importableReference.typeNode;\n importSymbols(importAdder, importableReference.symbols);\n }\n }\n return ts.factory.updateTypeParameterDeclaration(typeParameterDecl, typeParameterDecl.name, constraint, defaultType);\n });\n if (typeParameters !== newTypeParameters) {\n typeParameters = ts.setTextRange(ts.factory.createNodeArray(newTypeParameters, typeParameters.hasTrailingComma), typeParameters);\n }\n }\n var newParameters = ts.sameMap(parameters, function (parameterDecl) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(parameterDecl.type, scriptTarget);\n var type = parameterDecl.type;\n if (importableReference) {\n type = importableReference.typeNode;\n importSymbols(importAdder, importableReference.symbols);\n }\n return ts.factory.updateParameterDeclaration(parameterDecl, parameterDecl.decorators, parameterDecl.modifiers, parameterDecl.dotDotDotToken, parameterDecl.name, parameterDecl.questionToken, type, parameterDecl.initializer);\n });\n if (parameters !== newParameters) {\n parameters = ts.setTextRange(ts.factory.createNodeArray(newParameters, parameters.hasTrailingComma), parameters);\n }\n if (type) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(type, scriptTarget);\n if (importableReference) {\n type = importableReference.typeNode;\n importSymbols(importAdder, importableReference.symbols);\n }\n }\n }\n var questionToken = optional ? ts.factory.createToken(57 /* QuestionToken */) : undefined;\n var asteriskToken = signatureDeclaration.asteriskToken;\n if (ts.isFunctionExpression(signatureDeclaration)) {\n return ts.factory.updateFunctionExpression(signatureDeclaration, modifiers, signatureDeclaration.asteriskToken, ts.tryCast(name, ts.isIdentifier), typeParameters, parameters, type, body !== null && body !== void 0 ? body : signatureDeclaration.body);\n }\n if (ts.isArrowFunction(signatureDeclaration)) {\n return ts.factory.updateArrowFunction(signatureDeclaration, modifiers, typeParameters, parameters, type, signatureDeclaration.equalsGreaterThanToken, body !== null && body !== void 0 ? body : signatureDeclaration.body);\n }\n if (ts.isMethodDeclaration(signatureDeclaration)) {\n return ts.factory.updateMethodDeclaration(signatureDeclaration, /* decorators */ undefined, modifiers, asteriskToken, name !== null && name !== void 0 ? name : ts.factory.createIdentifier(\"\"), questionToken, typeParameters, parameters, type, body);\n }\n return undefined;\n }\n codefix.createSignatureDeclarationFromSignature = createSignatureDeclarationFromSignature;\n function createSignatureDeclarationFromCallExpression(kind, context, importAdder, call, name, modifierFlags, contextNode) {\n var quotePreference = ts.getQuotePreference(context.sourceFile, context.preferences);\n var scriptTarget = ts.getEmitScriptTarget(context.program.getCompilerOptions());\n var tracker = getNoopSymbolTrackerWithResolver(context);\n var checker = context.program.getTypeChecker();\n var isJs = ts.isInJSFile(contextNode);\n var typeArguments = call.typeArguments, args = call.arguments, parent = call.parent;\n var contextualType = isJs ? undefined : checker.getContextualType(call);\n var names = ts.map(args, function (arg) {\n return ts.isIdentifier(arg) ? arg.text : ts.isPropertyAccessExpression(arg) && ts.isIdentifier(arg.name) ? arg.name.text : undefined;\n });\n var types = isJs ? [] : ts.map(args, function (arg) {\n return typeToAutoImportableTypeNode(checker, importAdder, checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(arg)), contextNode, scriptTarget, /*flags*/ undefined, tracker);\n });\n var modifiers = modifierFlags\n ? ts.factory.createNodeArray(ts.factory.createModifiersFromModifierFlags(modifierFlags))\n : undefined;\n var asteriskToken = ts.isYieldExpression(parent)\n ? ts.factory.createToken(41 /* AsteriskToken */)\n : undefined;\n var typeParameters = isJs || typeArguments === undefined\n ? undefined\n : ts.map(typeArguments, function (_, i) {\n return ts.factory.createTypeParameterDeclaration(84 /* T */ + typeArguments.length - 1 <= 90 /* Z */ ? String.fromCharCode(84 /* T */ + i) : \"T\" + i);\n });\n var parameters = createDummyParameters(args.length, names, types, /*minArgumentCount*/ undefined, isJs);\n var type = isJs || contextualType === undefined\n ? undefined\n : checker.typeToTypeNode(contextualType, contextNode, /*flags*/ undefined, tracker);\n if (kind === 167 /* MethodDeclaration */) {\n return ts.factory.createMethodDeclaration(\n /*decorators*/ undefined, modifiers, asteriskToken, name, \n /*questionToken*/ undefined, typeParameters, parameters, type, ts.isInterfaceDeclaration(contextNode) ? undefined : createStubbedMethodBody(quotePreference));\n }\n return ts.factory.createFunctionDeclaration(\n /*decorators*/ undefined, modifiers, asteriskToken, name, typeParameters, parameters, type, createStubbedBody(ts.Diagnostics.Function_not_implemented.message, quotePreference));\n }\n codefix.createSignatureDeclarationFromCallExpression = createSignatureDeclarationFromCallExpression;\n function typeToAutoImportableTypeNode(checker, importAdder, type, contextNode, scriptTarget, flags, tracker) {\n var typeNode = checker.typeToTypeNode(type, contextNode, flags, tracker);\n if (typeNode && ts.isImportTypeNode(typeNode)) {\n var importableReference = tryGetAutoImportableReferenceFromTypeNode(typeNode, scriptTarget);\n if (importableReference) {\n importSymbols(importAdder, importableReference.symbols);\n typeNode = importableReference.typeNode;\n }\n }\n // Ensure nodes are fresh so they can have different positions when going through formatting.\n return ts.getSynthesizedDeepClone(typeNode);\n }\n codefix.typeToAutoImportableTypeNode = typeToAutoImportableTypeNode;\n function createDummyParameters(argCount, names, types, minArgumentCount, inJs) {\n var parameters = [];\n for (var i = 0; i < argCount; i++) {\n var newParameter = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, \n /*name*/ names && names[i] || \"arg\" + i, \n /*questionToken*/ minArgumentCount !== undefined && i >= minArgumentCount ? ts.factory.createToken(57 /* QuestionToken */) : undefined, \n /*type*/ inJs ? undefined : types && types[i] || ts.factory.createKeywordTypeNode(129 /* AnyKeyword */), \n /*initializer*/ undefined);\n parameters.push(newParameter);\n }\n return parameters;\n }\n function createMethodImplementingSignatures(checker, context, enclosingDeclaration, signatures, name, optional, modifiers, quotePreference) {\n /** This is *a* signature with the maximal number of arguments,\n * such that if there is a \"maximal\" signature without rest arguments,\n * this is one of them.\n */\n var maxArgsSignature = signatures[0];\n var minArgumentCount = signatures[0].minArgumentCount;\n var someSigHasRestParameter = false;\n for (var _i = 0, signatures_2 = signatures; _i < signatures_2.length; _i++) {\n var sig = signatures_2[_i];\n minArgumentCount = Math.min(sig.minArgumentCount, minArgumentCount);\n if (ts.signatureHasRestParameter(sig)) {\n someSigHasRestParameter = true;\n }\n if (sig.parameters.length >= maxArgsSignature.parameters.length && (!ts.signatureHasRestParameter(sig) || ts.signatureHasRestParameter(maxArgsSignature))) {\n maxArgsSignature = sig;\n }\n }\n var maxNonRestArgs = maxArgsSignature.parameters.length - (ts.signatureHasRestParameter(maxArgsSignature) ? 1 : 0);\n var maxArgsParameterSymbolNames = maxArgsSignature.parameters.map(function (symbol) { return symbol.name; });\n var parameters = createDummyParameters(maxNonRestArgs, maxArgsParameterSymbolNames, /* types */ undefined, minArgumentCount, /*inJs*/ false);\n if (someSigHasRestParameter) {\n var anyArrayType = ts.factory.createArrayTypeNode(ts.factory.createKeywordTypeNode(129 /* AnyKeyword */));\n var restParameter = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createToken(25 /* DotDotDotToken */), maxArgsParameterSymbolNames[maxNonRestArgs] || \"rest\", \n /*questionToken*/ maxNonRestArgs >= minArgumentCount ? ts.factory.createToken(57 /* QuestionToken */) : undefined, anyArrayType, \n /*initializer*/ undefined);\n parameters.push(restParameter);\n }\n return createStubbedMethod(modifiers, name, optional, \n /*typeParameters*/ undefined, parameters, getReturnTypeFromSignatures(signatures, checker, context, enclosingDeclaration), quotePreference);\n }\n function getReturnTypeFromSignatures(signatures, checker, context, enclosingDeclaration) {\n if (ts.length(signatures)) {\n var type = checker.getUnionType(ts.map(signatures, checker.getReturnTypeOfSignature));\n return checker.typeToTypeNode(type, enclosingDeclaration, /*flags*/ undefined, getNoopSymbolTrackerWithResolver(context));\n }\n }\n function createStubbedMethod(modifiers, name, optional, typeParameters, parameters, returnType, quotePreference) {\n return ts.factory.createMethodDeclaration(\n /*decorators*/ undefined, modifiers, \n /*asteriskToken*/ undefined, name, optional ? ts.factory.createToken(57 /* QuestionToken */) : undefined, typeParameters, parameters, returnType, createStubbedMethodBody(quotePreference));\n }\n function createStubbedMethodBody(quotePreference) {\n return createStubbedBody(ts.Diagnostics.Method_not_implemented.message, quotePreference);\n }\n function createStubbedBody(text, quotePreference) {\n return ts.factory.createBlock([ts.factory.createThrowStatement(ts.factory.createNewExpression(ts.factory.createIdentifier(\"Error\"), \n /*typeArguments*/ undefined, \n // TODO Handle auto quote preference.\n [ts.factory.createStringLiteral(text, /*isSingleQuote*/ quotePreference === 0 /* Single */)]))], \n /*multiline*/ true);\n }\n codefix.createStubbedBody = createStubbedBody;\n function createVisibilityModifier(flags) {\n if (flags & 4 /* Public */) {\n return ts.factory.createToken(123 /* PublicKeyword */);\n }\n else if (flags & 16 /* Protected */) {\n return ts.factory.createToken(122 /* ProtectedKeyword */);\n }\n return undefined;\n }\n function setJsonCompilerOptionValues(changeTracker, configFile, options) {\n var tsconfigObjectLiteral = ts.getTsConfigObjectLiteralExpression(configFile);\n if (!tsconfigObjectLiteral)\n return undefined;\n var compilerOptionsProperty = findJsonProperty(tsconfigObjectLiteral, \"compilerOptions\");\n if (compilerOptionsProperty === undefined) {\n changeTracker.insertNodeAtObjectStart(configFile, tsconfigObjectLiteral, createJsonPropertyAssignment(\"compilerOptions\", ts.factory.createObjectLiteralExpression(options.map(function (_a) {\n var optionName = _a[0], optionValue = _a[1];\n return createJsonPropertyAssignment(optionName, optionValue);\n }), /*multiLine*/ true)));\n return;\n }\n var compilerOptions = compilerOptionsProperty.initializer;\n if (!ts.isObjectLiteralExpression(compilerOptions)) {\n return;\n }\n for (var _i = 0, options_1 = options; _i < options_1.length; _i++) {\n var _a = options_1[_i], optionName = _a[0], optionValue = _a[1];\n var optionProperty = findJsonProperty(compilerOptions, optionName);\n if (optionProperty === undefined) {\n changeTracker.insertNodeAtObjectStart(configFile, compilerOptions, createJsonPropertyAssignment(optionName, optionValue));\n }\n else {\n changeTracker.replaceNode(configFile, optionProperty.initializer, optionValue);\n }\n }\n }\n codefix.setJsonCompilerOptionValues = setJsonCompilerOptionValues;\n function setJsonCompilerOptionValue(changeTracker, configFile, optionName, optionValue) {\n setJsonCompilerOptionValues(changeTracker, configFile, [[optionName, optionValue]]);\n }\n codefix.setJsonCompilerOptionValue = setJsonCompilerOptionValue;\n function createJsonPropertyAssignment(name, initializer) {\n return ts.factory.createPropertyAssignment(ts.factory.createStringLiteral(name), initializer);\n }\n codefix.createJsonPropertyAssignment = createJsonPropertyAssignment;\n function findJsonProperty(obj, name) {\n return ts.find(obj.properties, function (p) { return ts.isPropertyAssignment(p) && !!p.name && ts.isStringLiteral(p.name) && p.name.text === name; });\n }\n codefix.findJsonProperty = findJsonProperty;\n /**\n * Given a type node containing 'import(\"./a\").SomeType>',\n * returns an equivalent type reference node with any nested ImportTypeNodes also replaced\n * with type references, and a list of symbols that must be imported to use the type reference.\n */\n function tryGetAutoImportableReferenceFromTypeNode(importTypeNode, scriptTarget) {\n var symbols;\n var typeNode = ts.visitNode(importTypeNode, visit);\n if (symbols && typeNode) {\n return { typeNode: typeNode, symbols: symbols };\n }\n function visit(node) {\n var _a;\n if (ts.isLiteralImportTypeNode(node) && node.qualifier) {\n // Symbol for the left-most thing after the dot\n var firstIdentifier = ts.getFirstIdentifier(node.qualifier);\n var name = ts.getNameForExportedSymbol(firstIdentifier.symbol, scriptTarget);\n var qualifier = name !== firstIdentifier.text\n ? replaceFirstIdentifierOfEntityName(node.qualifier, ts.factory.createIdentifier(name))\n : node.qualifier;\n symbols = ts.append(symbols, firstIdentifier.symbol);\n var typeArguments = (_a = node.typeArguments) === null || _a === void 0 ? void 0 : _a.map(visit);\n return ts.factory.createTypeReferenceNode(qualifier, typeArguments);\n }\n return ts.visitEachChild(node, visit, ts.nullTransformationContext);\n }\n }\n codefix.tryGetAutoImportableReferenceFromTypeNode = tryGetAutoImportableReferenceFromTypeNode;\n function replaceFirstIdentifierOfEntityName(name, newIdentifier) {\n if (name.kind === 79 /* Identifier */) {\n return newIdentifier;\n }\n return ts.factory.createQualifiedName(replaceFirstIdentifierOfEntityName(name.left, newIdentifier), name.right);\n }\n function importSymbols(importAdder, symbols) {\n symbols.forEach(function (s) { return importAdder.addImportFromExportedSymbol(s, /*usageIsTypeOnly*/ true); });\n }\n codefix.importSymbols = importSymbols;\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n function generateAccessorFromProperty(file, program, start, end, context, _actionName) {\n var fieldInfo = getAccessorConvertiblePropertyAtPosition(file, program, start, end);\n if (!fieldInfo || ts.refactor.isRefactorErrorInfo(fieldInfo))\n return undefined;\n var changeTracker = ts.textChanges.ChangeTracker.fromContext(context);\n var isStatic = fieldInfo.isStatic, isReadonly = fieldInfo.isReadonly, fieldName = fieldInfo.fieldName, accessorName = fieldInfo.accessorName, originalName = fieldInfo.originalName, type = fieldInfo.type, container = fieldInfo.container, declaration = fieldInfo.declaration;\n ts.suppressLeadingAndTrailingTrivia(fieldName);\n ts.suppressLeadingAndTrailingTrivia(accessorName);\n ts.suppressLeadingAndTrailingTrivia(declaration);\n ts.suppressLeadingAndTrailingTrivia(container);\n var accessorModifiers;\n var fieldModifiers;\n if (ts.isClassLike(container)) {\n var modifierFlags = ts.getEffectiveModifierFlags(declaration);\n if (ts.isSourceFileJS(file)) {\n var modifiers = ts.createModifiers(modifierFlags);\n accessorModifiers = modifiers;\n fieldModifiers = modifiers;\n }\n else {\n accessorModifiers = ts.createModifiers(prepareModifierFlagsForAccessor(modifierFlags));\n fieldModifiers = ts.createModifiers(prepareModifierFlagsForField(modifierFlags));\n }\n }\n updateFieldDeclaration(changeTracker, file, declaration, type, fieldName, fieldModifiers);\n var getAccessor = generateGetAccessor(fieldName, accessorName, type, accessorModifiers, isStatic, container);\n ts.suppressLeadingAndTrailingTrivia(getAccessor);\n insertAccessor(changeTracker, file, getAccessor, declaration, container);\n if (isReadonly) {\n // readonly modifier only existed in classLikeDeclaration\n var constructor = ts.getFirstConstructorWithBody(container);\n if (constructor) {\n updateReadonlyPropertyInitializerStatementConstructor(changeTracker, file, constructor, fieldName.text, originalName);\n }\n }\n else {\n var setAccessor = generateSetAccessor(fieldName, accessorName, type, accessorModifiers, isStatic, container);\n ts.suppressLeadingAndTrailingTrivia(setAccessor);\n insertAccessor(changeTracker, file, setAccessor, declaration, container);\n }\n return changeTracker.getChanges();\n }\n codefix.generateAccessorFromProperty = generateAccessorFromProperty;\n function isConvertibleName(name) {\n return ts.isIdentifier(name) || ts.isStringLiteral(name);\n }\n function isAcceptedDeclaration(node) {\n return ts.isParameterPropertyDeclaration(node, node.parent) || ts.isPropertyDeclaration(node) || ts.isPropertyAssignment(node);\n }\n function createPropertyName(name, originalName) {\n return ts.isIdentifier(originalName) ? ts.factory.createIdentifier(name) : ts.factory.createStringLiteral(name);\n }\n function createAccessorAccessExpression(fieldName, isStatic, container) {\n var leftHead = isStatic ? container.name : ts.factory.createThis(); // TODO: GH#18217\n return ts.isIdentifier(fieldName) ? ts.factory.createPropertyAccessExpression(leftHead, fieldName) : ts.factory.createElementAccessExpression(leftHead, ts.factory.createStringLiteralFromNode(fieldName));\n }\n function prepareModifierFlagsForAccessor(modifierFlags) {\n modifierFlags &= ~64 /* Readonly */; // avoid Readonly modifier because it will convert to get accessor\n modifierFlags &= ~8 /* Private */;\n if (!(modifierFlags & 16 /* Protected */)) {\n modifierFlags |= 4 /* Public */;\n }\n return modifierFlags;\n }\n function prepareModifierFlagsForField(modifierFlags) {\n modifierFlags &= ~4 /* Public */;\n modifierFlags &= ~16 /* Protected */;\n modifierFlags |= 8 /* Private */;\n return modifierFlags;\n }\n function getAccessorConvertiblePropertyAtPosition(file, program, start, end, considerEmptySpans) {\n if (considerEmptySpans === void 0) { considerEmptySpans = true; }\n var node = ts.getTokenAtPosition(file, start);\n var cursorRequest = start === end && considerEmptySpans;\n var declaration = ts.findAncestor(node.parent, isAcceptedDeclaration);\n // make sure declaration have AccessibilityModifier or Static Modifier or Readonly Modifier\n var meaning = 28 /* AccessibilityModifier */ | 32 /* Static */ | 64 /* Readonly */;\n if (!declaration || (!(ts.nodeOverlapsWithStartEnd(declaration.name, file, start, end) || cursorRequest))) {\n return {\n error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_property_for_which_to_generate_accessor)\n };\n }\n if (!isConvertibleName(declaration.name)) {\n return {\n error: ts.getLocaleSpecificMessage(ts.Diagnostics.Name_is_not_valid)\n };\n }\n if ((ts.getEffectiveModifierFlags(declaration) | meaning) !== meaning) {\n return {\n error: ts.getLocaleSpecificMessage(ts.Diagnostics.Can_only_convert_property_with_modifier)\n };\n }\n var name = declaration.name.text;\n var startWithUnderscore = ts.startsWithUnderscore(name);\n var fieldName = createPropertyName(startWithUnderscore ? name : ts.getUniqueName(\"_\" + name, file), declaration.name);\n var accessorName = createPropertyName(startWithUnderscore ? ts.getUniqueName(name.substring(1), file) : name, declaration.name);\n return {\n isStatic: ts.hasStaticModifier(declaration),\n isReadonly: ts.hasEffectiveReadonlyModifier(declaration),\n type: getDeclarationType(declaration, program),\n container: declaration.kind === 162 /* Parameter */ ? declaration.parent.parent : declaration.parent,\n originalName: declaration.name.text,\n declaration: declaration,\n fieldName: fieldName,\n accessorName: accessorName,\n renameAccessor: startWithUnderscore\n };\n }\n codefix.getAccessorConvertiblePropertyAtPosition = getAccessorConvertiblePropertyAtPosition;\n function generateGetAccessor(fieldName, accessorName, type, modifiers, isStatic, container) {\n return ts.factory.createGetAccessorDeclaration(\n /*decorators*/ undefined, modifiers, accessorName, \n /*parameters*/ undefined, // TODO: GH#18217\n type, ts.factory.createBlock([\n ts.factory.createReturnStatement(createAccessorAccessExpression(fieldName, isStatic, container))\n ], /*multiLine*/ true));\n }\n function generateSetAccessor(fieldName, accessorName, type, modifiers, isStatic, container) {\n return ts.factory.createSetAccessorDeclaration(\n /*decorators*/ undefined, modifiers, accessorName, [ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, ts.factory.createIdentifier(\"value\"), \n /*questionToken*/ undefined, type)], ts.factory.createBlock([\n ts.factory.createExpressionStatement(ts.factory.createAssignment(createAccessorAccessExpression(fieldName, isStatic, container), ts.factory.createIdentifier(\"value\")))\n ], /*multiLine*/ true));\n }\n function updatePropertyDeclaration(changeTracker, file, declaration, type, fieldName, modifiers) {\n var property = ts.factory.updatePropertyDeclaration(declaration, declaration.decorators, modifiers, fieldName, declaration.questionToken || declaration.exclamationToken, type, declaration.initializer);\n changeTracker.replaceNode(file, declaration, property);\n }\n function updatePropertyAssignmentDeclaration(changeTracker, file, declaration, fieldName) {\n var assignment = ts.factory.updatePropertyAssignment(declaration, fieldName, declaration.initializer);\n changeTracker.replacePropertyAssignment(file, declaration, assignment);\n }\n function updateFieldDeclaration(changeTracker, file, declaration, type, fieldName, modifiers) {\n if (ts.isPropertyDeclaration(declaration)) {\n updatePropertyDeclaration(changeTracker, file, declaration, type, fieldName, modifiers);\n }\n else if (ts.isPropertyAssignment(declaration)) {\n updatePropertyAssignmentDeclaration(changeTracker, file, declaration, fieldName);\n }\n else {\n changeTracker.replaceNode(file, declaration, ts.factory.updateParameterDeclaration(declaration, declaration.decorators, modifiers, declaration.dotDotDotToken, ts.cast(fieldName, ts.isIdentifier), declaration.questionToken, declaration.type, declaration.initializer));\n }\n }\n function insertAccessor(changeTracker, file, accessor, declaration, container) {\n ts.isParameterPropertyDeclaration(declaration, declaration.parent) ? changeTracker.insertNodeAtClassStart(file, container, accessor) :\n ts.isPropertyAssignment(declaration) ? changeTracker.insertNodeAfterComma(file, declaration, accessor) :\n changeTracker.insertNodeAfter(file, declaration, accessor);\n }\n function updateReadonlyPropertyInitializerStatementConstructor(changeTracker, file, constructor, fieldName, originalName) {\n if (!constructor.body)\n return;\n constructor.body.forEachChild(function recur(node) {\n if (ts.isElementAccessExpression(node) &&\n node.expression.kind === 108 /* ThisKeyword */ &&\n ts.isStringLiteral(node.argumentExpression) &&\n node.argumentExpression.text === originalName &&\n ts.isWriteAccess(node)) {\n changeTracker.replaceNode(file, node.argumentExpression, ts.factory.createStringLiteral(fieldName));\n }\n if (ts.isPropertyAccessExpression(node) && node.expression.kind === 108 /* ThisKeyword */ && node.name.text === originalName && ts.isWriteAccess(node)) {\n changeTracker.replaceNode(file, node.name, ts.factory.createIdentifier(fieldName));\n }\n if (!ts.isFunctionLike(node) && !ts.isClassLike(node)) {\n node.forEachChild(recur);\n }\n });\n }\n function getDeclarationType(declaration, program) {\n var typeNode = ts.getTypeAnnotationNode(declaration);\n if (ts.isPropertyDeclaration(declaration) && typeNode && declaration.questionToken) {\n var typeChecker = program.getTypeChecker();\n var type = typeChecker.getTypeFromTypeNode(typeNode);\n if (!typeChecker.isTypeAssignableTo(typeChecker.getUndefinedType(), type)) {\n var types = ts.isUnionTypeNode(typeNode) ? typeNode.types : [typeNode];\n return ts.factory.createUnionTypeNode(__spreadArray(__spreadArray([], types, true), [ts.factory.createKeywordTypeNode(151 /* UndefinedKeyword */)], false));\n }\n }\n return typeNode;\n }\n function getAllSupers(decl, checker) {\n var res = [];\n while (decl) {\n var superElement = ts.getClassExtendsHeritageElement(decl);\n var superSymbol = superElement && checker.getSymbolAtLocation(superElement.expression);\n if (!superSymbol)\n break;\n var symbol = superSymbol.flags & 2097152 /* Alias */ ? checker.getAliasedSymbol(superSymbol) : superSymbol;\n var superDecl = symbol.declarations && ts.find(symbol.declarations, ts.isClassLike);\n if (!superDecl)\n break;\n res.push(superDecl);\n decl = superDecl;\n }\n return res;\n }\n codefix.getAllSupers = getAllSupers;\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixName = \"invalidImportSyntax\";\n function getCodeFixesForImportDeclaration(context, node) {\n var sourceFile = ts.getSourceFileOfNode(node);\n var namespace = ts.getNamespaceDeclarationNode(node);\n var opts = context.program.getCompilerOptions();\n var variations = [];\n // import Bluebird from \"bluebird\";\n variations.push(createAction(context, sourceFile, node, ts.makeImport(namespace.name, /*namedImports*/ undefined, node.moduleSpecifier, ts.getQuotePreference(sourceFile, context.preferences))));\n if (ts.getEmitModuleKind(opts) === ts.ModuleKind.CommonJS) {\n // import Bluebird = require(\"bluebird\");\n variations.push(createAction(context, sourceFile, node, ts.factory.createImportEqualsDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*isTypeOnly*/ false, namespace.name, ts.factory.createExternalModuleReference(node.moduleSpecifier))));\n }\n return variations;\n }\n function createAction(context, sourceFile, node, replacement) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return t.replaceNode(sourceFile, node, replacement); });\n return codefix.createCodeFixActionWithoutFixAll(fixName, changes, [ts.Diagnostics.Replace_import_with_0, changes[0].textChanges[0].newText]);\n }\n codefix.registerCodeFix({\n errorCodes: [\n ts.Diagnostics.This_expression_is_not_callable.code,\n ts.Diagnostics.This_expression_is_not_constructable.code,\n ],\n getCodeActions: getActionsForUsageOfInvalidImport\n });\n function getActionsForUsageOfInvalidImport(context) {\n var sourceFile = context.sourceFile;\n var targetKind = ts.Diagnostics.This_expression_is_not_callable.code === context.errorCode ? 206 /* CallExpression */ : 207 /* NewExpression */;\n var node = ts.findAncestor(ts.getTokenAtPosition(sourceFile, context.span.start), function (a) { return a.kind === targetKind; });\n if (!node) {\n return [];\n }\n var expr = node.expression;\n return getImportCodeFixesForExpression(context, expr);\n }\n codefix.registerCodeFix({\n errorCodes: [\n // The following error codes cover pretty much all assignability errors that could involve an expression\n ts.Diagnostics.Argument_of_type_0_is_not_assignable_to_parameter_of_type_1.code,\n ts.Diagnostics.Type_0_does_not_satisfy_the_constraint_1.code,\n ts.Diagnostics.Type_0_is_not_assignable_to_type_1.code,\n ts.Diagnostics.Type_0_is_not_assignable_to_type_1_Two_different_types_with_this_name_exist_but_they_are_unrelated.code,\n ts.Diagnostics.Type_predicate_0_is_not_assignable_to_1.code,\n ts.Diagnostics.Property_0_of_type_1_is_not_assignable_to_2_index_type_3.code,\n ts.Diagnostics._0_index_type_1_is_not_assignable_to_2_index_type_3.code,\n ts.Diagnostics.Property_0_in_type_1_is_not_assignable_to_the_same_property_in_base_type_2.code,\n ts.Diagnostics.Property_0_in_type_1_is_not_assignable_to_type_2.code,\n ts.Diagnostics.Property_0_of_JSX_spread_attribute_is_not_assignable_to_target_property.code,\n ts.Diagnostics.The_this_context_of_type_0_is_not_assignable_to_method_s_this_of_type_1.code,\n ],\n getCodeActions: getActionsForInvalidImportLocation\n });\n function getActionsForInvalidImportLocation(context) {\n var sourceFile = context.sourceFile;\n var node = ts.findAncestor(ts.getTokenAtPosition(sourceFile, context.span.start), function (a) { return a.getStart() === context.span.start && a.getEnd() === (context.span.start + context.span.length); });\n if (!node) {\n return [];\n }\n return getImportCodeFixesForExpression(context, node);\n }\n function getImportCodeFixesForExpression(context, expr) {\n var type = context.program.getTypeChecker().getTypeAtLocation(expr);\n if (!(type.symbol && type.symbol.originatingImport)) {\n return [];\n }\n var fixes = [];\n var relatedImport = type.symbol.originatingImport; // TODO: GH#18217\n if (!ts.isImportCall(relatedImport)) {\n ts.addRange(fixes, getCodeFixesForImportDeclaration(context, relatedImport));\n }\n if (ts.isExpression(expr) && !(ts.isNamedDeclaration(expr.parent) && expr.parent.name === expr)) {\n var sourceFile_2 = context.sourceFile;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return t.replaceNode(sourceFile_2, expr, ts.factory.createPropertyAccessExpression(expr, \"default\"), {}); });\n fixes.push(codefix.createCodeFixActionWithoutFixAll(fixName, changes, ts.Diagnostics.Use_synthetic_default_member));\n }\n return fixes;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixName = \"strictClassInitialization\";\n var fixIdAddDefiniteAssignmentAssertions = \"addMissingPropertyDefiniteAssignmentAssertions\";\n var fixIdAddUndefinedType = \"addMissingPropertyUndefinedType\";\n var fixIdAddInitializer = \"addMissingPropertyInitializer\";\n var errorCodes = [ts.Diagnostics.Property_0_has_no_initializer_and_is_not_definitely_assigned_in_the_constructor.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var propertyDeclaration = getPropertyDeclaration(context.sourceFile, context.span.start);\n if (!propertyDeclaration)\n return;\n var result = [\n getActionForAddMissingUndefinedType(context, propertyDeclaration),\n getActionForAddMissingDefiniteAssignmentAssertion(context, propertyDeclaration)\n ];\n ts.append(result, getActionForAddMissingInitializer(context, propertyDeclaration));\n return result;\n },\n fixIds: [fixIdAddDefiniteAssignmentAssertions, fixIdAddUndefinedType, fixIdAddInitializer],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var propertyDeclaration = getPropertyDeclaration(diag.file, diag.start);\n if (!propertyDeclaration)\n return;\n switch (context.fixId) {\n case fixIdAddDefiniteAssignmentAssertions:\n addDefiniteAssignmentAssertion(changes, diag.file, propertyDeclaration);\n break;\n case fixIdAddUndefinedType:\n addUndefinedType(changes, diag.file, propertyDeclaration);\n break;\n case fixIdAddInitializer:\n var checker = context.program.getTypeChecker();\n var initializer = getInitializer(checker, propertyDeclaration);\n if (!initializer)\n return;\n addInitializer(changes, diag.file, propertyDeclaration, initializer);\n break;\n default:\n ts.Debug.fail(JSON.stringify(context.fixId));\n }\n });\n },\n });\n function getPropertyDeclaration(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n return ts.isIdentifier(token) ? ts.cast(token.parent, ts.isPropertyDeclaration) : undefined;\n }\n function getActionForAddMissingDefiniteAssignmentAssertion(context, propertyDeclaration) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addDefiniteAssignmentAssertion(t, context.sourceFile, propertyDeclaration); });\n return codefix.createCodeFixAction(fixName, changes, [ts.Diagnostics.Add_definite_assignment_assertion_to_property_0, propertyDeclaration.getText()], fixIdAddDefiniteAssignmentAssertions, ts.Diagnostics.Add_definite_assignment_assertions_to_all_uninitialized_properties);\n }\n function addDefiniteAssignmentAssertion(changeTracker, propertyDeclarationSourceFile, propertyDeclaration) {\n var property = ts.factory.updatePropertyDeclaration(propertyDeclaration, propertyDeclaration.decorators, propertyDeclaration.modifiers, propertyDeclaration.name, ts.factory.createToken(53 /* ExclamationToken */), propertyDeclaration.type, propertyDeclaration.initializer);\n changeTracker.replaceNode(propertyDeclarationSourceFile, propertyDeclaration, property);\n }\n function getActionForAddMissingUndefinedType(context, propertyDeclaration) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addUndefinedType(t, context.sourceFile, propertyDeclaration); });\n return codefix.createCodeFixAction(fixName, changes, [ts.Diagnostics.Add_undefined_type_to_property_0, propertyDeclaration.name.getText()], fixIdAddUndefinedType, ts.Diagnostics.Add_undefined_type_to_all_uninitialized_properties);\n }\n function addUndefinedType(changeTracker, propertyDeclarationSourceFile, propertyDeclaration) {\n var undefinedTypeNode = ts.factory.createKeywordTypeNode(151 /* UndefinedKeyword */);\n var type = propertyDeclaration.type; // TODO: GH#18217\n var types = ts.isUnionTypeNode(type) ? type.types.concat(undefinedTypeNode) : [type, undefinedTypeNode];\n changeTracker.replaceNode(propertyDeclarationSourceFile, type, ts.factory.createUnionTypeNode(types));\n }\n function getActionForAddMissingInitializer(context, propertyDeclaration) {\n var checker = context.program.getTypeChecker();\n var initializer = getInitializer(checker, propertyDeclaration);\n if (!initializer)\n return undefined;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return addInitializer(t, context.sourceFile, propertyDeclaration, initializer); });\n return codefix.createCodeFixAction(fixName, changes, [ts.Diagnostics.Add_initializer_to_property_0, propertyDeclaration.name.getText()], fixIdAddInitializer, ts.Diagnostics.Add_initializers_to_all_uninitialized_properties);\n }\n function addInitializer(changeTracker, propertyDeclarationSourceFile, propertyDeclaration, initializer) {\n var property = ts.factory.updatePropertyDeclaration(propertyDeclaration, propertyDeclaration.decorators, propertyDeclaration.modifiers, propertyDeclaration.name, propertyDeclaration.questionToken, propertyDeclaration.type, initializer);\n changeTracker.replaceNode(propertyDeclarationSourceFile, propertyDeclaration, property);\n }\n function getInitializer(checker, propertyDeclaration) {\n return getDefaultValueFromType(checker, checker.getTypeFromTypeNode(propertyDeclaration.type)); // TODO: GH#18217\n }\n function getDefaultValueFromType(checker, type) {\n if (type.flags & 512 /* BooleanLiteral */) {\n return (type === checker.getFalseType() || type === checker.getFalseType(/*fresh*/ true)) ? ts.factory.createFalse() : ts.factory.createTrue();\n }\n else if (type.isStringLiteral()) {\n return ts.factory.createStringLiteral(type.value);\n }\n else if (type.isNumberLiteral()) {\n return ts.factory.createNumericLiteral(type.value);\n }\n else if (type.flags & 2048 /* BigIntLiteral */) {\n return ts.factory.createBigIntLiteral(type.value);\n }\n else if (type.isUnion()) {\n return ts.firstDefined(type.types, function (t) { return getDefaultValueFromType(checker, t); });\n }\n else if (type.isClass()) {\n var classDeclaration = ts.getClassLikeDeclarationOfSymbol(type.symbol);\n if (!classDeclaration || ts.hasSyntacticModifier(classDeclaration, 128 /* Abstract */))\n return undefined;\n var constructorDeclaration = ts.getFirstConstructorWithBody(classDeclaration);\n if (constructorDeclaration && constructorDeclaration.parameters.length)\n return undefined;\n return ts.factory.createNewExpression(ts.factory.createIdentifier(type.symbol.name), /*typeArguments*/ undefined, /*argumentsArray*/ undefined);\n }\n else if (checker.isArrayLikeType(type)) {\n return ts.factory.createArrayLiteralExpression();\n }\n return undefined;\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"requireInTs\";\n var errorCodes = [ts.Diagnostics.require_call_may_be_converted_to_an_import.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var info = getInfo(context.sourceFile, context.program, context.span.start);\n if (!info) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, context.sourceFile, info); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_require_to_import, fixId, ts.Diagnostics.Convert_all_require_to_import)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, context.program, diag.start);\n if (info) {\n doChange(changes, context.sourceFile, info);\n }\n }); },\n });\n function doChange(changes, sourceFile, info) {\n var allowSyntheticDefaults = info.allowSyntheticDefaults, defaultImportName = info.defaultImportName, namedImports = info.namedImports, statement = info.statement, required = info.required;\n changes.replaceNode(sourceFile, statement, defaultImportName && !allowSyntheticDefaults\n ? ts.factory.createImportEqualsDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*isTypeOnly*/ false, defaultImportName, ts.factory.createExternalModuleReference(required))\n : ts.factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, defaultImportName, namedImports), required));\n }\n function getInfo(sourceFile, program, pos) {\n var parent = ts.getTokenAtPosition(sourceFile, pos).parent;\n if (!ts.isRequireCall(parent, /*checkArgumentIsStringLiteralLike*/ true)) {\n throw ts.Debug.failBadSyntaxKind(parent);\n }\n var decl = ts.cast(parent.parent, ts.isVariableDeclaration);\n var defaultImportName = ts.tryCast(decl.name, ts.isIdentifier);\n var namedImports = ts.isObjectBindingPattern(decl.name) ? tryCreateNamedImportsFromObjectBindingPattern(decl.name) : undefined;\n if (defaultImportName || namedImports) {\n return {\n allowSyntheticDefaults: ts.getAllowSyntheticDefaultImports(program.getCompilerOptions()),\n defaultImportName: defaultImportName,\n namedImports: namedImports,\n statement: ts.cast(decl.parent.parent, ts.isVariableStatement),\n required: ts.first(parent.arguments)\n };\n }\n }\n function tryCreateNamedImportsFromObjectBindingPattern(node) {\n var importSpecifiers = [];\n for (var _i = 0, _a = node.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (!ts.isIdentifier(element.name) || element.initializer) {\n return undefined;\n }\n importSpecifiers.push(ts.factory.createImportSpecifier(ts.tryCast(element.propertyName, ts.isIdentifier), element.name));\n }\n if (importSpecifiers.length) {\n return ts.factory.createNamedImports(importSpecifiers);\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"useDefaultImport\";\n var errorCodes = [ts.Diagnostics.Import_may_be_converted_to_a_default_import.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, start = context.span.start;\n var info = getInfo(sourceFile, start);\n if (!info)\n return undefined;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, info, context.preferences); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_to_default_import, fixId, ts.Diagnostics.Convert_all_to_default_imports)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, diag.start);\n if (info)\n doChange(changes, diag.file, info, context.preferences);\n }); },\n });\n function getInfo(sourceFile, pos) {\n var name = ts.getTokenAtPosition(sourceFile, pos);\n if (!ts.isIdentifier(name))\n return undefined; // bad input\n var parent = name.parent;\n if (ts.isImportEqualsDeclaration(parent) && ts.isExternalModuleReference(parent.moduleReference)) {\n return { importNode: parent, name: name, moduleSpecifier: parent.moduleReference.expression };\n }\n else if (ts.isNamespaceImport(parent)) {\n var importNode = parent.parent.parent;\n return { importNode: importNode, name: name, moduleSpecifier: importNode.moduleSpecifier };\n }\n }\n function doChange(changes, sourceFile, info, preferences) {\n changes.replaceNode(sourceFile, info.importNode, ts.makeImport(info.name, /*namedImports*/ undefined, info.moduleSpecifier, ts.getQuotePreference(sourceFile, preferences)));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"useBigintLiteral\";\n var errorCodes = [\n ts.Diagnostics.Numeric_literals_with_absolute_values_equal_to_2_53_or_greater_are_too_large_to_be_represented_accurately_as_integers.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span); });\n if (changes.length > 0) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_to_a_bigint_numeric_literal, fixId, ts.Diagnostics.Convert_all_to_bigint_numeric_literals)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag); });\n },\n });\n function makeChange(changeTracker, sourceFile, span) {\n var numericLiteral = ts.tryCast(ts.getTokenAtPosition(sourceFile, span.start), ts.isNumericLiteral);\n if (!numericLiteral) {\n return;\n }\n // We use .getText to overcome parser inaccuracies: https://github.com/microsoft/TypeScript/issues/33298\n var newText = numericLiteral.getText(sourceFile) + \"n\";\n changeTracker.replaceNode(sourceFile, numericLiteral, ts.factory.createBigIntLiteral(newText));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixIdAddMissingTypeof = \"fixAddModuleReferTypeMissingTypeof\";\n var fixId = fixIdAddMissingTypeof;\n var errorCodes = [ts.Diagnostics.Module_0_does_not_refer_to_a_type_but_is_used_as_a_type_here_Did_you_mean_typeof_import_0.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var importType = getImportTypeNode(sourceFile, span.start);\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, importType); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Add_missing_typeof, fixId, ts.Diagnostics.Add_missing_typeof)];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n return doChange(changes, context.sourceFile, getImportTypeNode(diag.file, diag.start));\n }); },\n });\n function getImportTypeNode(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n ts.Debug.assert(token.kind === 100 /* ImportKeyword */, \"This token should be an ImportKeyword\");\n ts.Debug.assert(token.parent.kind === 198 /* ImportType */, \"Token parent should be an ImportType\");\n return token.parent;\n }\n function doChange(changes, sourceFile, importType) {\n var newTypeNode = ts.factory.updateImportTypeNode(importType, importType.argument, importType.qualifier, importType.typeArguments, /* isTypeOf */ true);\n changes.replaceNode(sourceFile, importType, newTypeNode);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixID = \"wrapJsxInFragment\";\n var errorCodes = [ts.Diagnostics.JSX_expressions_must_have_one_parent_element.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var node = findNodeToFix(sourceFile, span.start);\n if (!node)\n return undefined;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, node); });\n return [codefix.createCodeFixAction(fixID, changes, ts.Diagnostics.Wrap_in_JSX_fragment, fixID, ts.Diagnostics.Wrap_all_unparented_JSX_in_JSX_fragment)];\n },\n fixIds: [fixID],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var node = findNodeToFix(context.sourceFile, diag.start);\n if (!node)\n return undefined;\n doChange(changes, context.sourceFile, node);\n }); },\n });\n function findNodeToFix(sourceFile, pos) {\n // The error always at 1st token that is \"<\" in \"\"\n var lessThanToken = ts.getTokenAtPosition(sourceFile, pos);\n var firstJsxElementOrOpenElement = lessThanToken.parent;\n var binaryExpr = firstJsxElementOrOpenElement.parent;\n if (!ts.isBinaryExpression(binaryExpr)) {\n // In case the start element is a JsxSelfClosingElement, it the end.\n // For JsxOpenElement, find one more parent\n binaryExpr = binaryExpr.parent;\n if (!ts.isBinaryExpression(binaryExpr))\n return undefined;\n }\n if (!ts.nodeIsMissing(binaryExpr.operatorToken))\n return undefined;\n return binaryExpr;\n }\n function doChange(changeTracker, sf, node) {\n var jsx = flattenInvalidBinaryExpr(node);\n if (jsx)\n changeTracker.replaceNode(sf, node, ts.factory.createJsxFragment(ts.factory.createJsxOpeningFragment(), jsx, ts.factory.createJsxJsxClosingFragment()));\n }\n // The invalid syntax is constructed as\n // InvalidJsxTree :: One of\n // JsxElement CommaToken InvalidJsxTree\n // JsxElement CommaToken JsxElement\n function flattenInvalidBinaryExpr(node) {\n var children = [];\n var current = node;\n while (true) {\n if (ts.isBinaryExpression(current) && ts.nodeIsMissing(current.operatorToken) && current.operatorToken.kind === 27 /* CommaToken */) {\n children.push(current.left);\n if (ts.isJsxChild(current.right)) {\n children.push(current.right);\n // Indicates the tree has go to the bottom\n return children;\n }\n else if (ts.isBinaryExpression(current.right)) {\n current = current.right;\n continue;\n }\n // Unreachable case\n else\n return undefined;\n }\n // Unreachable case\n else\n return undefined;\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixIdAddMissingTypeof = \"fixConvertToMappedObjectType\";\n var fixId = fixIdAddMissingTypeof;\n var errorCodes = [ts.Diagnostics.An_index_signature_parameter_type_cannot_be_a_literal_type_or_generic_type_Consider_using_a_mapped_object_type_instead.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span;\n var info = getInfo(sourceFile, span.start);\n if (!info)\n return undefined;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, info); });\n var name = ts.idText(info.container.name);\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Convert_0_to_mapped_object_type, name], fixId, [ts.Diagnostics.Convert_0_to_mapped_object_type, name])];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, diag.start);\n if (info)\n doChange(changes, diag.file, info);\n }); }\n });\n function getInfo(sourceFile, pos) {\n var token = ts.getTokenAtPosition(sourceFile, pos);\n var indexSignature = ts.cast(token.parent.parent, ts.isIndexSignatureDeclaration);\n if (ts.isClassDeclaration(indexSignature.parent))\n return undefined;\n var container = ts.isInterfaceDeclaration(indexSignature.parent) ? indexSignature.parent : ts.cast(indexSignature.parent.parent, ts.isTypeAliasDeclaration);\n return { indexSignature: indexSignature, container: container };\n }\n function createTypeAliasFromInterface(declaration, type) {\n return ts.factory.createTypeAliasDeclaration(declaration.decorators, declaration.modifiers, declaration.name, declaration.typeParameters, type);\n }\n function doChange(changes, sourceFile, _a) {\n var indexSignature = _a.indexSignature, container = _a.container;\n var members = ts.isInterfaceDeclaration(container) ? container.members : container.type.members;\n var otherMembers = members.filter(function (member) { return !ts.isIndexSignatureDeclaration(member); });\n var parameter = ts.first(indexSignature.parameters);\n var mappedTypeParameter = ts.factory.createTypeParameterDeclaration(ts.cast(parameter.name, ts.isIdentifier), parameter.type);\n var mappedIntersectionType = ts.factory.createMappedTypeNode(ts.hasEffectiveReadonlyModifier(indexSignature) ? ts.factory.createModifier(143 /* ReadonlyKeyword */) : undefined, mappedTypeParameter, \n /*nameType*/ undefined, indexSignature.questionToken, indexSignature.type);\n var intersectionType = ts.factory.createIntersectionTypeNode(__spreadArray(__spreadArray(__spreadArray([], ts.getAllSuperTypeNodes(container), true), [\n mappedIntersectionType\n ], false), (otherMembers.length ? [ts.factory.createTypeLiteralNode(otherMembers)] : ts.emptyArray), true));\n changes.replaceNode(sourceFile, container, createTypeAliasFromInterface(container, intersectionType));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"removeAccidentalCallParentheses\";\n var errorCodes = [\n ts.Diagnostics.This_expression_is_not_callable_because_it_is_a_get_accessor_Did_you_mean_to_use_it_without.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var callExpression = ts.findAncestor(ts.getTokenAtPosition(context.sourceFile, context.span.start), ts.isCallExpression);\n if (!callExpression) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) {\n t.deleteRange(context.sourceFile, { pos: callExpression.expression.end, end: callExpression.end });\n });\n return [codefix.createCodeFixActionWithoutFixAll(fixId, changes, ts.Diagnostics.Remove_parentheses)];\n },\n fixIds: [fixId],\n });\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"removeUnnecessaryAwait\";\n var errorCodes = [\n ts.Diagnostics.await_has_no_effect_on_the_type_of_this_expression.code,\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span); });\n if (changes.length > 0) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Remove_unnecessary_await, fixId, ts.Diagnostics.Remove_all_unnecessary_uses_of_await)];\n }\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag); });\n },\n });\n function makeChange(changeTracker, sourceFile, span) {\n var awaitKeyword = ts.tryCast(ts.getTokenAtPosition(sourceFile, span.start), function (node) { return node.kind === 131 /* AwaitKeyword */; });\n var awaitExpression = awaitKeyword && ts.tryCast(awaitKeyword.parent, ts.isAwaitExpression);\n if (!awaitExpression) {\n return;\n }\n var expressionToReplace = awaitExpression;\n var hasSurroundingParens = ts.isParenthesizedExpression(awaitExpression.parent);\n if (hasSurroundingParens) {\n var leftMostExpression = ts.getLeftmostExpression(awaitExpression.expression, /*stopAtCallExpressions*/ false);\n if (ts.isIdentifier(leftMostExpression)) {\n var precedingToken = ts.findPrecedingToken(awaitExpression.parent.pos, sourceFile);\n if (precedingToken && precedingToken.kind !== 103 /* NewKeyword */) {\n expressionToReplace = awaitExpression.parent;\n }\n }\n }\n changeTracker.replaceNode(sourceFile, expressionToReplace, awaitExpression.expression);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var errorCodes = [ts.Diagnostics.A_type_only_import_can_specify_a_default_import_or_named_bindings_but_not_both.code];\n var fixId = \"splitTypeOnlyImport\";\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixId],\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) {\n return splitTypeOnlyImport(t, getImportDeclaration(context.sourceFile, context.span), context);\n });\n if (changes.length) {\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Split_into_two_separate_import_declarations, fixId, ts.Diagnostics.Split_all_invalid_type_only_imports)];\n }\n },\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, error) {\n splitTypeOnlyImport(changes, getImportDeclaration(context.sourceFile, error), context);\n }); },\n });\n function getImportDeclaration(sourceFile, span) {\n return ts.findAncestor(ts.getTokenAtPosition(sourceFile, span.start), ts.isImportDeclaration);\n }\n function splitTypeOnlyImport(changes, importDeclaration, context) {\n if (!importDeclaration) {\n return;\n }\n var importClause = ts.Debug.checkDefined(importDeclaration.importClause);\n changes.replaceNode(context.sourceFile, importDeclaration, ts.factory.updateImportDeclaration(importDeclaration, importDeclaration.decorators, importDeclaration.modifiers, ts.factory.updateImportClause(importClause, importClause.isTypeOnly, importClause.name, /*namedBindings*/ undefined), importDeclaration.moduleSpecifier));\n changes.insertNodeAfter(context.sourceFile, importDeclaration, ts.factory.createImportDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.updateImportClause(importClause, importClause.isTypeOnly, /*name*/ undefined, importClause.namedBindings), importDeclaration.moduleSpecifier));\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixConvertConstToLet\";\n var errorCodes = [ts.Diagnostics.Cannot_assign_to_0_because_it_is_a_constant.code];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile, span = context.span, program = context.program;\n var range = getConstTokenRange(sourceFile, span.start, program);\n if (range === undefined)\n return;\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, range); });\n return [codefix.createCodeFixAction(fixId, changes, ts.Diagnostics.Convert_const_to_let, fixId, ts.Diagnostics.Convert_const_to_let)];\n },\n fixIds: [fixId]\n });\n function getConstTokenRange(sourceFile, pos, program) {\n var _a;\n var checker = program.getTypeChecker();\n var symbol = checker.getSymbolAtLocation(ts.getTokenAtPosition(sourceFile, pos));\n var declaration = ts.tryCast((_a = symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration) === null || _a === void 0 ? void 0 : _a.parent, ts.isVariableDeclarationList);\n if (declaration === undefined)\n return;\n var constToken = ts.findChildOfKind(declaration, 85 /* ConstKeyword */, sourceFile);\n if (constToken === undefined)\n return;\n return ts.createRange(constToken.pos, constToken.end);\n }\n function doChange(changes, sourceFile, range) {\n changes.replaceRangeWithText(sourceFile, range, \"let\");\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixId = \"fixExpectedComma\";\n var expectedErrorCode = ts.Diagnostics._0_expected.code;\n var errorCodes = [expectedErrorCode];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n getCodeActions: function (context) {\n var sourceFile = context.sourceFile;\n var info = getInfo(sourceFile, context.span.start, context.errorCode);\n if (!info) {\n return undefined;\n }\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(t, sourceFile, info); });\n return [codefix.createCodeFixAction(fixId, changes, [ts.Diagnostics.Change_0_to_1, \";\", \",\"], fixId, [ts.Diagnostics.Change_0_to_1, \";\", \",\"])];\n },\n fixIds: [fixId],\n getAllCodeActions: function (context) { return codefix.codeFixAll(context, errorCodes, function (changes, diag) {\n var info = getInfo(diag.file, diag.start, diag.code);\n if (info)\n doChange(changes, context.sourceFile, info);\n }); },\n });\n function getInfo(sourceFile, pos, _) {\n var node = ts.getTokenAtPosition(sourceFile, pos);\n return (node.kind === 26 /* SemicolonToken */ &&\n node.parent &&\n (ts.isObjectLiteralExpression(node.parent) ||\n ts.isArrayLiteralExpression(node.parent))) ? { node: node } : undefined;\n }\n function doChange(changes, sourceFile, _a) {\n var node = _a.node;\n var newNode = ts.factory.createToken(27 /* CommaToken */);\n changes.replaceNode(sourceFile, node, newNode);\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var codefix;\n (function (codefix) {\n var fixName = \"addVoidToPromise\";\n var fixId = \"addVoidToPromise\";\n var errorCodes = [\n ts.Diagnostics.Expected_0_arguments_but_got_1_Did_you_forget_to_include_void_in_your_type_argument_to_Promise.code\n ];\n codefix.registerCodeFix({\n errorCodes: errorCodes,\n fixIds: [fixId],\n getCodeActions: function (context) {\n var changes = ts.textChanges.ChangeTracker.with(context, function (t) { return makeChange(t, context.sourceFile, context.span, context.program); });\n if (changes.length > 0) {\n return [codefix.createCodeFixAction(fixName, changes, ts.Diagnostics.Add_void_to_Promise_resolved_without_a_value, fixId, ts.Diagnostics.Add_void_to_all_Promises_resolved_without_a_value)];\n }\n },\n getAllCodeActions: function (context) {\n return codefix.codeFixAll(context, errorCodes, function (changes, diag) { return makeChange(changes, diag.file, diag, context.program, new ts.Set()); });\n }\n });\n function makeChange(changes, sourceFile, span, program, seen) {\n var node = ts.getTokenAtPosition(sourceFile, span.start);\n if (!ts.isIdentifier(node) || !ts.isCallExpression(node.parent) || node.parent.expression !== node || node.parent.arguments.length !== 0)\n return;\n var checker = program.getTypeChecker();\n var symbol = checker.getSymbolAtLocation(node);\n // decl should be `new Promise(() => {})`\n var decl = symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration;\n if (!decl || !ts.isParameter(decl) || !ts.isNewExpression(decl.parent.parent))\n return;\n // no need to make this change if we have already seen this parameter.\n if (seen === null || seen === void 0 ? void 0 : seen.has(decl))\n return;\n seen === null || seen === void 0 ? void 0 : seen.add(decl);\n var typeArguments = getEffectiveTypeArguments(decl.parent.parent);\n if (ts.some(typeArguments)) {\n // append ` | void` to type argument\n var typeArgument = typeArguments[0];\n var needsParens = !ts.isUnionTypeNode(typeArgument) && !ts.isParenthesizedTypeNode(typeArgument) &&\n ts.isParenthesizedTypeNode(ts.factory.createUnionTypeNode([typeArgument, ts.factory.createKeywordTypeNode(114 /* VoidKeyword */)]).types[0]);\n if (needsParens) {\n changes.insertText(sourceFile, typeArgument.pos, \"(\");\n }\n changes.insertText(sourceFile, typeArgument.end, needsParens ? \") | void\" : \" | void\");\n }\n else {\n // make sure the Promise is type is untyped (i.e., `unknown`)\n var signature = checker.getResolvedSignature(node.parent);\n var parameter = signature === null || signature === void 0 ? void 0 : signature.parameters[0];\n var parameterType = parameter && checker.getTypeOfSymbolAtLocation(parameter, decl.parent.parent);\n if (ts.isInJSFile(decl)) {\n if (!parameterType || parameterType.flags & 3 /* AnyOrUnknown */) {\n // give the expression a type\n changes.insertText(sourceFile, decl.parent.parent.end, \")\");\n changes.insertText(sourceFile, ts.skipTrivia(sourceFile.text, decl.parent.parent.pos), \"/** @type {Promise} */(\");\n }\n }\n else {\n if (!parameterType || parameterType.flags & 2 /* Unknown */) {\n // add `void` type argument\n changes.insertText(sourceFile, decl.parent.parent.expression.end, \"\");\n }\n }\n }\n }\n function getEffectiveTypeArguments(node) {\n var _a;\n if (ts.isInJSFile(node)) {\n if (ts.isParenthesizedExpression(node.parent)) {\n var jsDocType = (_a = ts.getJSDocTypeTag(node.parent)) === null || _a === void 0 ? void 0 : _a.typeExpression.type;\n if (jsDocType && ts.isTypeReferenceNode(jsDocType) && ts.isIdentifier(jsDocType.typeName) && ts.idText(jsDocType.typeName) === \"Promise\") {\n return jsDocType.typeArguments;\n }\n }\n }\n else {\n return node.typeArguments;\n }\n }\n })(codefix = ts.codefix || (ts.codefix = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var refactorName = \"Convert export\";\n var defaultToNamedAction = {\n name: \"Convert default export to named export\",\n description: ts.Diagnostics.Convert_default_export_to_named_export.message,\n kind: \"refactor.rewrite.export.named\"\n };\n var namedToDefaultAction = {\n name: \"Convert named export to default export\",\n description: ts.Diagnostics.Convert_named_export_to_default_export.message,\n kind: \"refactor.rewrite.export.default\"\n };\n refactor.registerRefactor(refactorName, {\n kinds: [\n defaultToNamedAction.kind,\n namedToDefaultAction.kind\n ],\n getAvailableActions: function (context) {\n var info = getInfo(context, context.triggerReason === \"invoked\");\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n var action = info.wasDefault ? defaultToNamedAction : namedToDefaultAction;\n return [{ name: refactorName, description: action.description, actions: [action] }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [\n { name: refactorName, description: ts.Diagnostics.Convert_default_export_to_named_export.message, actions: [\n __assign(__assign({}, defaultToNamedAction), { notApplicableReason: info.error }),\n __assign(__assign({}, namedToDefaultAction), { notApplicableReason: info.error }),\n ] }\n ];\n }\n return ts.emptyArray;\n },\n getEditsForAction: function (context, actionName) {\n ts.Debug.assert(actionName === defaultToNamedAction.name || actionName === namedToDefaultAction.name, \"Unexpected action name\");\n var info = getInfo(context);\n ts.Debug.assert(info && !refactor.isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(context.file, context.program, info, t, context.cancellationToken); });\n return { edits: edits, renameFilename: undefined, renameLocation: undefined };\n },\n });\n ;\n function getInfo(context, considerPartialSpans) {\n if (considerPartialSpans === void 0) { considerPartialSpans = true; }\n var file = context.file, program = context.program;\n var span = ts.getRefactorContextSpan(context);\n var token = ts.getTokenAtPosition(file, span.start);\n var exportNode = !!(token.parent && ts.getSyntacticModifierFlags(token.parent) & 1 /* Export */) && considerPartialSpans ? token.parent : ts.getParentNodeInSpan(token, file, span);\n if (!exportNode || (!ts.isSourceFile(exportNode.parent) && !(ts.isModuleBlock(exportNode.parent) && ts.isAmbientModule(exportNode.parent.parent)))) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_export_statement) };\n }\n var exportingModuleSymbol = ts.isSourceFile(exportNode.parent) ? exportNode.parent.symbol : exportNode.parent.parent.symbol;\n var flags = ts.getSyntacticModifierFlags(exportNode) || ((ts.isExportAssignment(exportNode) && !exportNode.isExportEquals) ? 513 /* ExportDefault */ : 0 /* None */);\n var wasDefault = !!(flags & 512 /* Default */);\n // If source file already has a default export, don't offer refactor.\n if (!(flags & 1 /* Export */) || !wasDefault && exportingModuleSymbol.exports.has(\"default\" /* Default */)) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.This_file_already_has_a_default_export) };\n }\n var checker = program.getTypeChecker();\n var noSymbolError = function (id) {\n return (ts.isIdentifier(id) && checker.getSymbolAtLocation(id)) ? undefined\n : { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Can_only_convert_named_export) };\n };\n switch (exportNode.kind) {\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 259 /* ModuleDeclaration */: {\n var node = exportNode;\n if (!node.name)\n return undefined;\n return noSymbolError(node.name)\n || { exportNode: node, exportName: node.name, wasDefault: wasDefault, exportingModuleSymbol: exportingModuleSymbol };\n }\n case 235 /* VariableStatement */: {\n var vs = exportNode;\n // Must be `export const x = something;`.\n if (!(vs.declarationList.flags & 2 /* Const */) || vs.declarationList.declarations.length !== 1) {\n return undefined;\n }\n var decl = ts.first(vs.declarationList.declarations);\n if (!decl.initializer)\n return undefined;\n ts.Debug.assert(!wasDefault, \"Can't have a default flag here\");\n return noSymbolError(decl.name)\n || { exportNode: vs, exportName: decl.name, wasDefault: wasDefault, exportingModuleSymbol: exportingModuleSymbol };\n }\n case 269 /* ExportAssignment */: {\n var node = exportNode;\n if (node.isExportEquals)\n return undefined;\n return noSymbolError(node.expression)\n || { exportNode: node, exportName: node.expression, wasDefault: wasDefault, exportingModuleSymbol: exportingModuleSymbol };\n }\n default:\n return undefined;\n }\n }\n function doChange(exportingSourceFile, program, info, changes, cancellationToken) {\n changeExport(exportingSourceFile, info, changes, program.getTypeChecker());\n changeImports(program, info, changes, cancellationToken);\n }\n function changeExport(exportingSourceFile, _a, changes, checker) {\n var wasDefault = _a.wasDefault, exportNode = _a.exportNode, exportName = _a.exportName;\n if (wasDefault) {\n if (ts.isExportAssignment(exportNode) && !exportNode.isExportEquals) {\n var exp = exportNode.expression;\n var spec = makeExportSpecifier(exp.text, exp.text);\n changes.replaceNode(exportingSourceFile, exportNode, ts.factory.createExportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*isTypeOnly*/ false, ts.factory.createNamedExports([spec])));\n }\n else {\n changes.delete(exportingSourceFile, ts.Debug.checkDefined(ts.findModifier(exportNode, 88 /* DefaultKeyword */), \"Should find a default keyword in modifier list\"));\n }\n }\n else {\n var exportKeyword = ts.Debug.checkDefined(ts.findModifier(exportNode, 93 /* ExportKeyword */), \"Should find an export keyword in modifier list\");\n switch (exportNode.kind) {\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 256 /* InterfaceDeclaration */:\n changes.insertNodeAfter(exportingSourceFile, exportKeyword, ts.factory.createToken(88 /* DefaultKeyword */));\n break;\n case 235 /* VariableStatement */:\n // If 'x' isn't used in this file and doesn't have type definition, `export const x = 0;` --> `export default 0;`\n var decl = ts.first(exportNode.declarationList.declarations);\n if (!ts.FindAllReferences.Core.isSymbolReferencedInFile(exportName, checker, exportingSourceFile) && !decl.type) {\n // We checked in `getInfo` that an initializer exists.\n changes.replaceNode(exportingSourceFile, exportNode, ts.factory.createExportDefault(ts.Debug.checkDefined(decl.initializer, \"Initializer was previously known to be present\")));\n break;\n }\n // falls through\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 259 /* ModuleDeclaration */:\n // `export type T = number;` -> `type T = number; export default T;`\n changes.deleteModifier(exportingSourceFile, exportKeyword);\n changes.insertNodeAfter(exportingSourceFile, exportNode, ts.factory.createExportDefault(ts.factory.createIdentifier(exportName.text)));\n break;\n default:\n ts.Debug.fail(\"Unexpected exportNode kind \" + exportNode.kind);\n }\n }\n }\n function changeImports(program, _a, changes, cancellationToken) {\n var wasDefault = _a.wasDefault, exportName = _a.exportName, exportingModuleSymbol = _a.exportingModuleSymbol;\n var checker = program.getTypeChecker();\n var exportSymbol = ts.Debug.checkDefined(checker.getSymbolAtLocation(exportName), \"Export name should resolve to a symbol\");\n ts.FindAllReferences.Core.eachExportReference(program.getSourceFiles(), checker, cancellationToken, exportSymbol, exportingModuleSymbol, exportName.text, wasDefault, function (ref) {\n var importingSourceFile = ref.getSourceFile();\n if (wasDefault) {\n changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName.text);\n }\n else {\n changeNamedToDefaultImport(importingSourceFile, ref, changes);\n }\n });\n }\n function changeDefaultToNamedImport(importingSourceFile, ref, changes, exportName) {\n var parent = ref.parent;\n switch (parent.kind) {\n case 204 /* PropertyAccessExpression */:\n // `a.default` --> `a.foo`\n changes.replaceNode(importingSourceFile, ref, ts.factory.createIdentifier(exportName));\n break;\n case 268 /* ImportSpecifier */:\n case 273 /* ExportSpecifier */: {\n var spec = parent;\n // `default as foo` --> `foo`, `default as bar` --> `foo as bar`\n changes.replaceNode(importingSourceFile, spec, makeImportSpecifier(exportName, spec.name.text));\n break;\n }\n case 265 /* ImportClause */: {\n var clause = parent;\n ts.Debug.assert(clause.name === ref, \"Import clause name should match provided ref\");\n var spec = makeImportSpecifier(exportName, ref.text);\n var namedBindings = clause.namedBindings;\n if (!namedBindings) {\n // `import foo from \"./a\";` --> `import { foo } from \"./a\";`\n changes.replaceNode(importingSourceFile, ref, ts.factory.createNamedImports([spec]));\n }\n else if (namedBindings.kind === 266 /* NamespaceImport */) {\n // `import foo, * as a from \"./a\";` --> `import * as a from \".a/\"; import { foo } from \"./a\";`\n changes.deleteRange(importingSourceFile, { pos: ref.getStart(importingSourceFile), end: namedBindings.getStart(importingSourceFile) });\n var quotePreference = ts.isStringLiteral(clause.parent.moduleSpecifier) ? ts.quotePreferenceFromString(clause.parent.moduleSpecifier, importingSourceFile) : 1 /* Double */;\n var newImport = ts.makeImport(/*default*/ undefined, [makeImportSpecifier(exportName, ref.text)], clause.parent.moduleSpecifier, quotePreference);\n changes.insertNodeAfter(importingSourceFile, clause.parent, newImport);\n }\n else {\n // `import foo, { bar } from \"./a\"` --> `import { bar, foo } from \"./a\";`\n changes.delete(importingSourceFile, ref);\n changes.insertNodeAtEndOfList(importingSourceFile, namedBindings.elements, spec);\n }\n break;\n }\n default:\n ts.Debug.failBadSyntaxKind(parent);\n }\n }\n function changeNamedToDefaultImport(importingSourceFile, ref, changes) {\n var parent = ref.parent;\n switch (parent.kind) {\n case 204 /* PropertyAccessExpression */:\n // `a.foo` --> `a.default`\n changes.replaceNode(importingSourceFile, ref, ts.factory.createIdentifier(\"default\"));\n break;\n case 268 /* ImportSpecifier */: {\n // `import { foo } from \"./a\";` --> `import foo from \"./a\";`\n // `import { foo as bar } from \"./a\";` --> `import bar from \"./a\";`\n var defaultImport = ts.factory.createIdentifier(parent.name.text);\n if (parent.parent.elements.length === 1) {\n changes.replaceNode(importingSourceFile, parent.parent, defaultImport);\n }\n else {\n changes.delete(importingSourceFile, parent);\n changes.insertNodeBefore(importingSourceFile, parent.parent, defaultImport);\n }\n break;\n }\n case 273 /* ExportSpecifier */: {\n // `export { foo } from \"./a\";` --> `export { default as foo } from \"./a\";`\n // `export { foo as bar } from \"./a\";` --> `export { default as bar } from \"./a\";`\n // `export { foo as default } from \"./a\";` --> `export { default } from \"./a\";`\n // (Because `export foo from \"./a\";` isn't valid syntax.)\n changes.replaceNode(importingSourceFile, parent, makeExportSpecifier(\"default\", parent.name.text));\n break;\n }\n default:\n ts.Debug.assertNever(parent, \"Unexpected parent kind \" + parent.kind);\n }\n }\n function makeImportSpecifier(propertyName, name) {\n return ts.factory.createImportSpecifier(propertyName === name ? undefined : ts.factory.createIdentifier(propertyName), ts.factory.createIdentifier(name));\n }\n function makeExportSpecifier(propertyName, name) {\n return ts.factory.createExportSpecifier(propertyName === name ? undefined : ts.factory.createIdentifier(propertyName), ts.factory.createIdentifier(name));\n }\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var refactorName = \"Convert import\";\n var namespaceToNamedAction = {\n name: \"Convert namespace import to named imports\",\n description: ts.Diagnostics.Convert_namespace_import_to_named_imports.message,\n kind: \"refactor.rewrite.import.named\",\n };\n var namedToNamespaceAction = {\n name: \"Convert named imports to namespace import\",\n description: ts.Diagnostics.Convert_named_imports_to_namespace_import.message,\n kind: \"refactor.rewrite.import.namespace\",\n };\n refactor.registerRefactor(refactorName, {\n kinds: [\n namespaceToNamedAction.kind,\n namedToNamespaceAction.kind\n ],\n getAvailableActions: function (context) {\n var info = getImportToConvert(context, context.triggerReason === \"invoked\");\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n var namespaceImport = info.kind === 266 /* NamespaceImport */;\n var action = namespaceImport ? namespaceToNamedAction : namedToNamespaceAction;\n return [{ name: refactorName, description: action.description, actions: [action] }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [\n { name: refactorName, description: namespaceToNamedAction.description,\n actions: [__assign(__assign({}, namespaceToNamedAction), { notApplicableReason: info.error })] },\n { name: refactorName, description: namedToNamespaceAction.description,\n actions: [__assign(__assign({}, namedToNamespaceAction), { notApplicableReason: info.error })] }\n ];\n }\n return ts.emptyArray;\n },\n getEditsForAction: function (context, actionName) {\n ts.Debug.assert(actionName === namespaceToNamedAction.name || actionName === namedToNamespaceAction.name, \"Unexpected action name\");\n var info = getImportToConvert(context);\n ts.Debug.assert(info && !refactor.isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(context.file, context.program, t, info); });\n return { edits: edits, renameFilename: undefined, renameLocation: undefined };\n }\n });\n // Can convert imports of the form `import * as m from \"m\";` or `import d, { x, y } from \"m\";`.\n function getImportToConvert(context, considerPartialSpans) {\n if (considerPartialSpans === void 0) { considerPartialSpans = true; }\n var file = context.file;\n var span = ts.getRefactorContextSpan(context);\n var token = ts.getTokenAtPosition(file, span.start);\n var importDecl = considerPartialSpans ? ts.findAncestor(token, ts.isImportDeclaration) : ts.getParentNodeInSpan(token, file, span);\n if (!importDecl || !ts.isImportDeclaration(importDecl))\n return { error: \"Selection is not an import declaration.\" };\n if (importDecl.getEnd() < span.start + span.length)\n return undefined;\n var importClause = importDecl.importClause;\n if (!importClause) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_import_clause) };\n }\n if (!importClause.namedBindings) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_namespace_import_or_named_imports) };\n }\n return importClause.namedBindings;\n }\n function doChange(sourceFile, program, changes, toConvert) {\n var checker = program.getTypeChecker();\n if (toConvert.kind === 266 /* NamespaceImport */) {\n doChangeNamespaceToNamed(sourceFile, checker, changes, toConvert, ts.getAllowSyntheticDefaultImports(program.getCompilerOptions()));\n }\n else {\n doChangeNamedToNamespace(sourceFile, checker, changes, toConvert);\n }\n }\n function doChangeNamespaceToNamed(sourceFile, checker, changes, toConvert, allowSyntheticDefaultImports) {\n var usedAsNamespaceOrDefault = false;\n var nodesToReplace = [];\n var conflictingNames = new ts.Map();\n ts.FindAllReferences.Core.eachSymbolReferenceInFile(toConvert.name, checker, sourceFile, function (id) {\n if (!ts.isPropertyAccessOrQualifiedName(id.parent)) {\n usedAsNamespaceOrDefault = true;\n }\n else {\n var exportName = getRightOfPropertyAccessOrQualifiedName(id.parent).text;\n if (checker.resolveName(exportName, id, 67108863 /* All */, /*excludeGlobals*/ true)) {\n conflictingNames.set(exportName, true);\n }\n ts.Debug.assert(getLeftOfPropertyAccessOrQualifiedName(id.parent) === id, \"Parent expression should match id\");\n nodesToReplace.push(id.parent);\n }\n });\n // We may need to change `mod.x` to `_x` to avoid a name conflict.\n var exportNameToImportName = new ts.Map();\n for (var _i = 0, nodesToReplace_1 = nodesToReplace; _i < nodesToReplace_1.length; _i++) {\n var propertyAccessOrQualifiedName = nodesToReplace_1[_i];\n var exportName = getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName).text;\n var importName = exportNameToImportName.get(exportName);\n if (importName === undefined) {\n exportNameToImportName.set(exportName, importName = conflictingNames.has(exportName) ? ts.getUniqueName(exportName, sourceFile) : exportName);\n }\n changes.replaceNode(sourceFile, propertyAccessOrQualifiedName, ts.factory.createIdentifier(importName));\n }\n var importSpecifiers = [];\n exportNameToImportName.forEach(function (name, propertyName) {\n importSpecifiers.push(ts.factory.createImportSpecifier(name === propertyName ? undefined : ts.factory.createIdentifier(propertyName), ts.factory.createIdentifier(name)));\n });\n var importDecl = toConvert.parent.parent;\n if (usedAsNamespaceOrDefault && !allowSyntheticDefaultImports) {\n // Need to leave the namespace import alone\n changes.insertNodeAfter(sourceFile, importDecl, updateImport(importDecl, /*defaultImportName*/ undefined, importSpecifiers));\n }\n else {\n changes.replaceNode(sourceFile, importDecl, updateImport(importDecl, usedAsNamespaceOrDefault ? ts.factory.createIdentifier(toConvert.name.text) : undefined, importSpecifiers));\n }\n }\n function getRightOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName) {\n return ts.isPropertyAccessExpression(propertyAccessOrQualifiedName) ? propertyAccessOrQualifiedName.name : propertyAccessOrQualifiedName.right;\n }\n function getLeftOfPropertyAccessOrQualifiedName(propertyAccessOrQualifiedName) {\n return ts.isPropertyAccessExpression(propertyAccessOrQualifiedName) ? propertyAccessOrQualifiedName.expression : propertyAccessOrQualifiedName.left;\n }\n function doChangeNamedToNamespace(sourceFile, checker, changes, toConvert) {\n var importDecl = toConvert.parent.parent;\n var moduleSpecifier = importDecl.moduleSpecifier;\n var toConvertSymbols = new ts.Set();\n toConvert.elements.forEach(function (namedImport) {\n var symbol = checker.getSymbolAtLocation(namedImport.name);\n if (symbol) {\n toConvertSymbols.add(symbol);\n }\n });\n var preferredName = moduleSpecifier && ts.isStringLiteral(moduleSpecifier) ? ts.codefix.moduleSpecifierToValidIdentifier(moduleSpecifier.text, 99 /* ESNext */) : \"module\";\n function hasNamespaceNameConflict(namedImport) {\n // We need to check if the preferred namespace name (`preferredName`) we'd like to use in the refactored code will present a name conflict.\n // A name conflict means that, in a scope where we would like to use the preferred namespace name, there already exists a symbol with that name in that scope.\n // We are going to use the namespace name in the scopes the named imports being refactored are referenced,\n // so we look for conflicts by looking at every reference to those named imports.\n return !!ts.FindAllReferences.Core.eachSymbolReferenceInFile(namedImport.name, checker, sourceFile, function (id) {\n var symbol = checker.resolveName(preferredName, id, 67108863 /* All */, /*excludeGlobals*/ true);\n if (symbol) { // There already is a symbol with the same name as the preferred namespace name.\n if (toConvertSymbols.has(symbol)) { // `preferredName` resolves to a symbol for one of the named import references we are going to transform into namespace import references...\n return ts.isExportSpecifier(id.parent); // ...but if this reference is an export specifier, it will not be transformed, so it is a conflict; otherwise, it will be renamed and is not a conflict.\n }\n return true; // `preferredName` resolves to any other symbol, which will be present in the refactored code and so poses a name conflict.\n }\n return false; // There is no symbol with the same name as the preferred namespace name, so no conflict.\n });\n }\n var namespaceNameConflicts = toConvert.elements.some(hasNamespaceNameConflict);\n var namespaceImportName = namespaceNameConflicts ? ts.getUniqueName(preferredName, sourceFile) : preferredName;\n // Imports that need to be kept as named imports in the refactored code, to avoid changing the semantics.\n // More specifically, those are named imports that appear in named exports in the original code, e.g. `a` in `import { a } from \"m\"; export { a }`.\n var neededNamedImports = new ts.Set();\n var _loop_16 = function (element) {\n var propertyName = (element.propertyName || element.name).text;\n ts.FindAllReferences.Core.eachSymbolReferenceInFile(element.name, checker, sourceFile, function (id) {\n var access = ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(namespaceImportName), propertyName);\n if (ts.isShorthandPropertyAssignment(id.parent)) {\n changes.replaceNode(sourceFile, id.parent, ts.factory.createPropertyAssignment(id.text, access));\n }\n else if (ts.isExportSpecifier(id.parent)) {\n neededNamedImports.add(element);\n }\n else {\n changes.replaceNode(sourceFile, id, access);\n }\n });\n };\n for (var _i = 0, _a = toConvert.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n _loop_16(element);\n }\n changes.replaceNode(sourceFile, toConvert, ts.factory.createNamespaceImport(ts.factory.createIdentifier(namespaceImportName)));\n if (neededNamedImports.size) {\n var newNamedImports = ts.arrayFrom(neededNamedImports.values()).map(function (element) {\n return ts.factory.createImportSpecifier(element.propertyName && ts.factory.createIdentifier(element.propertyName.text), ts.factory.createIdentifier(element.name.text));\n });\n changes.insertNodeAfter(sourceFile, toConvert.parent.parent, updateImport(importDecl, /*defaultImportName*/ undefined, newNamedImports));\n }\n }\n function updateImport(old, defaultImportName, elements) {\n return ts.factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, defaultImportName, elements && elements.length ? ts.factory.createNamedImports(elements) : undefined), old.moduleSpecifier);\n }\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var convertToOptionalChainExpression;\n (function (convertToOptionalChainExpression) {\n var refactorName = \"Convert to optional chain expression\";\n var convertToOptionalChainExpressionMessage = ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_to_optional_chain_expression);\n var toOptionalChainAction = {\n name: refactorName,\n description: convertToOptionalChainExpressionMessage,\n kind: \"refactor.rewrite.expression.optionalChain\",\n };\n refactor.registerRefactor(refactorName, {\n kinds: [toOptionalChainAction.kind],\n getAvailableActions: getAvailableActions,\n getEditsForAction: getEditsForAction\n });\n function getAvailableActions(context) {\n var info = getInfo(context, context.triggerReason === \"invoked\");\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n return [{\n name: refactorName,\n description: convertToOptionalChainExpressionMessage,\n actions: [toOptionalChainAction],\n }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [{\n name: refactorName,\n description: convertToOptionalChainExpressionMessage,\n actions: [__assign(__assign({}, toOptionalChainAction), { notApplicableReason: info.error })],\n }];\n }\n return ts.emptyArray;\n }\n function getEditsForAction(context, actionName) {\n var info = getInfo(context);\n ts.Debug.assert(info && !refactor.isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) {\n return doChange(context.file, context.program.getTypeChecker(), t, info, actionName);\n });\n return { edits: edits, renameFilename: undefined, renameLocation: undefined };\n }\n ;\n function isValidExpression(node) {\n return ts.isBinaryExpression(node) || ts.isConditionalExpression(node);\n }\n function isValidStatement(node) {\n return ts.isExpressionStatement(node) || ts.isReturnStatement(node) || ts.isVariableStatement(node);\n }\n function isValidExpressionOrStatement(node) {\n return isValidExpression(node) || isValidStatement(node);\n }\n function getInfo(context, considerEmptySpans) {\n if (considerEmptySpans === void 0) { considerEmptySpans = true; }\n var file = context.file, program = context.program;\n var span = ts.getRefactorContextSpan(context);\n var forEmptySpan = span.length === 0;\n if (forEmptySpan && !considerEmptySpans)\n return undefined;\n // selecting fo[|o && foo.ba|]r should be valid, so adjust span to fit start and end tokens\n var startToken = ts.getTokenAtPosition(file, span.start);\n var endToken = ts.findTokenOnLeftOfPosition(file, span.start + span.length);\n var adjustedSpan = ts.createTextSpanFromBounds(startToken.pos, endToken && endToken.end >= startToken.pos ? endToken.getEnd() : startToken.getEnd());\n var parent = forEmptySpan ? getValidParentNodeOfEmptySpan(startToken) : getValidParentNodeContainingSpan(startToken, adjustedSpan);\n var expression = parent && isValidExpressionOrStatement(parent) ? getExpression(parent) : undefined;\n if (!expression)\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_convertible_access_expression) };\n var checker = program.getTypeChecker();\n return ts.isConditionalExpression(expression) ? getConditionalInfo(expression, checker) : getBinaryInfo(expression);\n }\n function getConditionalInfo(expression, checker) {\n var condition = expression.condition;\n var finalExpression = getFinalExpressionInChain(expression.whenTrue);\n if (!finalExpression || checker.isNullableType(checker.getTypeAtLocation(finalExpression))) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_convertible_access_expression) };\n }\n if ((ts.isPropertyAccessExpression(condition) || ts.isIdentifier(condition))\n && getMatchingStart(condition, finalExpression.expression)) {\n return { finalExpression: finalExpression, occurrences: [condition], expression: expression };\n }\n else if (ts.isBinaryExpression(condition)) {\n var occurrences = getOccurrencesInExpression(finalExpression.expression, condition);\n return occurrences ? { finalExpression: finalExpression, occurrences: occurrences, expression: expression } :\n { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_matching_access_expressions) };\n }\n }\n function getBinaryInfo(expression) {\n if (expression.operatorToken.kind !== 55 /* AmpersandAmpersandToken */) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Can_only_convert_logical_AND_access_chains) };\n }\n ;\n var finalExpression = getFinalExpressionInChain(expression.right);\n if (!finalExpression)\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_convertible_access_expression) };\n var occurrences = getOccurrencesInExpression(finalExpression.expression, expression.left);\n return occurrences ? { finalExpression: finalExpression, occurrences: occurrences, expression: expression } :\n { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_matching_access_expressions) };\n }\n /**\n * Gets a list of property accesses that appear in matchTo and occur in sequence in expression.\n */\n function getOccurrencesInExpression(matchTo, expression) {\n var occurrences = [];\n while (ts.isBinaryExpression(expression) && expression.operatorToken.kind === 55 /* AmpersandAmpersandToken */) {\n var match = getMatchingStart(ts.skipParentheses(matchTo), ts.skipParentheses(expression.right));\n if (!match) {\n break;\n }\n occurrences.push(match);\n matchTo = match;\n expression = expression.left;\n }\n var finalMatch = getMatchingStart(matchTo, expression);\n if (finalMatch) {\n occurrences.push(finalMatch);\n }\n return occurrences.length > 0 ? occurrences : undefined;\n }\n /**\n * Returns subchain if chain begins with subchain syntactically.\n */\n function getMatchingStart(chain, subchain) {\n if (!ts.isIdentifier(subchain) && !ts.isPropertyAccessExpression(subchain) && !ts.isElementAccessExpression(subchain)) {\n return undefined;\n }\n return chainStartsWith(chain, subchain) ? subchain : undefined;\n }\n /**\n * Returns true if chain begins with subchain syntactically.\n */\n function chainStartsWith(chain, subchain) {\n // skip until we find a matching identifier.\n while (ts.isCallExpression(chain) || ts.isPropertyAccessExpression(chain) || ts.isElementAccessExpression(chain)) {\n if (getTextOfChainNode(chain) === getTextOfChainNode(subchain))\n break;\n chain = chain.expression;\n }\n // check that the chains match at each access. Call chains in subchain are not valid.\n while ((ts.isPropertyAccessExpression(chain) && ts.isPropertyAccessExpression(subchain)) ||\n (ts.isElementAccessExpression(chain) && ts.isElementAccessExpression(subchain))) {\n if (getTextOfChainNode(chain) !== getTextOfChainNode(subchain))\n return false;\n chain = chain.expression;\n subchain = subchain.expression;\n }\n // check if we have reached a final identifier.\n return ts.isIdentifier(chain) && ts.isIdentifier(subchain) && chain.getText() === subchain.getText();\n }\n function getTextOfChainNode(node) {\n if (ts.isIdentifier(node) || ts.isStringOrNumericLiteralLike(node)) {\n return node.getText();\n }\n if (ts.isPropertyAccessExpression(node)) {\n return getTextOfChainNode(node.name);\n }\n if (ts.isElementAccessExpression(node)) {\n return getTextOfChainNode(node.argumentExpression);\n }\n return undefined;\n }\n /**\n * Find the least ancestor of the input node that is a valid type for extraction and contains the input span.\n */\n function getValidParentNodeContainingSpan(node, span) {\n while (node.parent) {\n if (isValidExpressionOrStatement(node) && span.length !== 0 && node.end >= span.start + span.length) {\n return node;\n }\n node = node.parent;\n }\n return undefined;\n }\n /**\n * Finds an ancestor of the input node that is a valid type for extraction, skipping subexpressions.\n */\n function getValidParentNodeOfEmptySpan(node) {\n while (node.parent) {\n if (isValidExpressionOrStatement(node) && !isValidExpressionOrStatement(node.parent)) {\n return node;\n }\n node = node.parent;\n }\n return undefined;\n }\n /**\n * Gets an expression of valid extraction type from a valid statement or expression.\n */\n function getExpression(node) {\n if (isValidExpression(node)) {\n return node;\n }\n if (ts.isVariableStatement(node)) {\n var variable = ts.getSingleVariableOfVariableStatement(node);\n var initializer = variable === null || variable === void 0 ? void 0 : variable.initializer;\n return initializer && isValidExpression(initializer) ? initializer : undefined;\n }\n return node.expression && isValidExpression(node.expression) ? node.expression : undefined;\n }\n /**\n * Gets a property access expression which may be nested inside of a binary expression. The final\n * expression in an && chain will occur as the right child of the parent binary expression, unless\n * it is followed by a different binary operator.\n * @param node the right child of a binary expression or a call expression.\n */\n function getFinalExpressionInChain(node) {\n // foo && |foo.bar === 1|; - here the right child of the && binary expression is another binary expression.\n // the rightmost member of the && chain should be the leftmost child of that expression.\n node = ts.skipParentheses(node);\n if (ts.isBinaryExpression(node)) {\n return getFinalExpressionInChain(node.left);\n }\n // foo && |foo.bar()()| - nested calls are treated like further accesses.\n else if ((ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node) || ts.isCallExpression(node)) && !ts.isOptionalChain(node)) {\n return node;\n }\n return undefined;\n }\n /**\n * Creates an access chain from toConvert with '?.' accesses at expressions appearing in occurrences.\n */\n function convertOccurrences(checker, toConvert, occurrences) {\n if (ts.isPropertyAccessExpression(toConvert) || ts.isElementAccessExpression(toConvert) || ts.isCallExpression(toConvert)) {\n var chain = convertOccurrences(checker, toConvert.expression, occurrences);\n var lastOccurrence = occurrences.length > 0 ? occurrences[occurrences.length - 1] : undefined;\n var isOccurrence = (lastOccurrence === null || lastOccurrence === void 0 ? void 0 : lastOccurrence.getText()) === toConvert.expression.getText();\n if (isOccurrence)\n occurrences.pop();\n if (ts.isCallExpression(toConvert)) {\n return isOccurrence ?\n ts.factory.createCallChain(chain, ts.factory.createToken(28 /* QuestionDotToken */), toConvert.typeArguments, toConvert.arguments) :\n ts.factory.createCallChain(chain, toConvert.questionDotToken, toConvert.typeArguments, toConvert.arguments);\n }\n else if (ts.isPropertyAccessExpression(toConvert)) {\n return isOccurrence ?\n ts.factory.createPropertyAccessChain(chain, ts.factory.createToken(28 /* QuestionDotToken */), toConvert.name) :\n ts.factory.createPropertyAccessChain(chain, toConvert.questionDotToken, toConvert.name);\n }\n else if (ts.isElementAccessExpression(toConvert)) {\n return isOccurrence ?\n ts.factory.createElementAccessChain(chain, ts.factory.createToken(28 /* QuestionDotToken */), toConvert.argumentExpression) :\n ts.factory.createElementAccessChain(chain, toConvert.questionDotToken, toConvert.argumentExpression);\n }\n }\n return toConvert;\n }\n function doChange(sourceFile, checker, changes, info, _actionName) {\n var finalExpression = info.finalExpression, occurrences = info.occurrences, expression = info.expression;\n var firstOccurrence = occurrences[occurrences.length - 1];\n var convertedChain = convertOccurrences(checker, finalExpression, occurrences);\n if (convertedChain && (ts.isPropertyAccessExpression(convertedChain) || ts.isElementAccessExpression(convertedChain) || ts.isCallExpression(convertedChain))) {\n if (ts.isBinaryExpression(expression)) {\n changes.replaceNodeRange(sourceFile, firstOccurrence, finalExpression, convertedChain);\n }\n else if (ts.isConditionalExpression(expression)) {\n changes.replaceNode(sourceFile, expression, ts.factory.createBinaryExpression(convertedChain, ts.factory.createToken(60 /* QuestionQuestionToken */), expression.whenFalse));\n }\n }\n }\n })(convertToOptionalChainExpression = refactor.convertToOptionalChainExpression || (refactor.convertToOptionalChainExpression = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var addOrRemoveBracesToArrowFunction;\n (function (addOrRemoveBracesToArrowFunction) {\n var refactorName = \"Convert overload list to single signature\";\n var refactorDescription = ts.Diagnostics.Convert_overload_list_to_single_signature.message;\n var functionOverloadAction = {\n name: refactorName,\n description: refactorDescription,\n kind: \"refactor.rewrite.function.overloadList\",\n };\n refactor.registerRefactor(refactorName, {\n kinds: [functionOverloadAction.kind],\n getEditsForAction: getEditsForAction,\n getAvailableActions: getAvailableActions\n });\n function getAvailableActions(context) {\n var file = context.file, startPosition = context.startPosition, program = context.program;\n var info = getConvertableOverloadListAtPosition(file, startPosition, program);\n if (!info)\n return ts.emptyArray;\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: [functionOverloadAction]\n }];\n }\n function getEditsForAction(context) {\n var file = context.file, startPosition = context.startPosition, program = context.program;\n var signatureDecls = getConvertableOverloadListAtPosition(file, startPosition, program);\n if (!signatureDecls)\n return undefined;\n var checker = program.getTypeChecker();\n var lastDeclaration = signatureDecls[signatureDecls.length - 1];\n var updated = lastDeclaration;\n switch (lastDeclaration.kind) {\n case 166 /* MethodSignature */: {\n updated = ts.factory.updateMethodSignature(lastDeclaration, lastDeclaration.modifiers, lastDeclaration.name, lastDeclaration.questionToken, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type);\n break;\n }\n case 167 /* MethodDeclaration */: {\n updated = ts.factory.updateMethodDeclaration(lastDeclaration, lastDeclaration.decorators, lastDeclaration.modifiers, lastDeclaration.asteriskToken, lastDeclaration.name, lastDeclaration.questionToken, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type, lastDeclaration.body);\n break;\n }\n case 172 /* CallSignature */: {\n updated = ts.factory.updateCallSignature(lastDeclaration, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type);\n break;\n }\n case 169 /* Constructor */: {\n updated = ts.factory.updateConstructorDeclaration(lastDeclaration, lastDeclaration.decorators, lastDeclaration.modifiers, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.body);\n break;\n }\n case 173 /* ConstructSignature */: {\n updated = ts.factory.updateConstructSignature(lastDeclaration, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type);\n break;\n }\n case 254 /* FunctionDeclaration */: {\n updated = ts.factory.updateFunctionDeclaration(lastDeclaration, lastDeclaration.decorators, lastDeclaration.modifiers, lastDeclaration.asteriskToken, lastDeclaration.name, lastDeclaration.typeParameters, getNewParametersForCombinedSignature(signatureDecls), lastDeclaration.type, lastDeclaration.body);\n break;\n }\n default: return ts.Debug.failBadSyntaxKind(lastDeclaration, \"Unhandled signature kind in overload list conversion refactoring\");\n }\n if (updated === lastDeclaration) {\n return; // No edits to apply, do nothing\n }\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) {\n t.replaceNodeRange(file, signatureDecls[0], signatureDecls[signatureDecls.length - 1], updated);\n });\n return { renameFilename: undefined, renameLocation: undefined, edits: edits };\n function getNewParametersForCombinedSignature(signatureDeclarations) {\n var lastSig = signatureDeclarations[signatureDeclarations.length - 1];\n if (ts.isFunctionLikeDeclaration(lastSig) && lastSig.body) {\n // Trim away implementation signature arguments (they should already be compatible with overloads, but are likely less precise to guarantee compatability with the overloads)\n signatureDeclarations = signatureDeclarations.slice(0, signatureDeclarations.length - 1);\n }\n return ts.factory.createNodeArray([\n ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, ts.factory.createToken(25 /* DotDotDotToken */), \"args\", \n /*questionToken*/ undefined, ts.factory.createUnionTypeNode(ts.map(signatureDeclarations, convertSignatureParametersToTuple)))\n ]);\n }\n function convertSignatureParametersToTuple(decl) {\n var members = ts.map(decl.parameters, convertParameterToNamedTupleMember);\n return ts.setEmitFlags(ts.factory.createTupleTypeNode(members), ts.some(members, function (m) { return !!ts.length(ts.getSyntheticLeadingComments(m)); }) ? 0 /* None */ : 1 /* SingleLine */);\n }\n function convertParameterToNamedTupleMember(p) {\n ts.Debug.assert(ts.isIdentifier(p.name)); // This is checked during refactoring applicability checking\n var result = ts.setTextRange(ts.factory.createNamedTupleMember(p.dotDotDotToken, p.name, p.questionToken, p.type || ts.factory.createKeywordTypeNode(129 /* AnyKeyword */)), p);\n var parameterDocComment = p.symbol && p.symbol.getDocumentationComment(checker);\n if (parameterDocComment) {\n var newComment = ts.displayPartsToString(parameterDocComment);\n if (newComment.length) {\n ts.setSyntheticLeadingComments(result, [{\n text: \"*\\n\" + newComment.split(\"\\n\").map(function (c) { return \" * \" + c; }).join(\"\\n\") + \"\\n \",\n kind: 3 /* MultiLineCommentTrivia */,\n pos: -1,\n end: -1,\n hasTrailingNewLine: true,\n hasLeadingNewline: true,\n }]);\n }\n }\n return result;\n }\n }\n function isConvertableSignatureDeclaration(d) {\n switch (d.kind) {\n case 166 /* MethodSignature */:\n case 167 /* MethodDeclaration */:\n case 172 /* CallSignature */:\n case 169 /* Constructor */:\n case 173 /* ConstructSignature */:\n case 254 /* FunctionDeclaration */:\n return true;\n }\n return false;\n }\n function getConvertableOverloadListAtPosition(file, startPosition, program) {\n var node = ts.getTokenAtPosition(file, startPosition);\n var containingDecl = ts.findAncestor(node, isConvertableSignatureDeclaration);\n if (!containingDecl) {\n return;\n }\n var checker = program.getTypeChecker();\n var signatureSymbol = containingDecl.symbol;\n if (!signatureSymbol) {\n return;\n }\n var decls = signatureSymbol.declarations;\n if (ts.length(decls) <= 1) {\n return;\n }\n if (!ts.every(decls, function (d) { return ts.getSourceFileOfNode(d) === file; })) {\n return;\n }\n if (!isConvertableSignatureDeclaration(decls[0])) {\n return;\n }\n var kindOne = decls[0].kind;\n if (!ts.every(decls, function (d) { return d.kind === kindOne; })) {\n return;\n }\n var signatureDecls = decls;\n if (ts.some(signatureDecls, function (d) { return !!d.typeParameters || ts.some(d.parameters, function (p) { return !!p.decorators || !!p.modifiers || !ts.isIdentifier(p.name); }); })) {\n return;\n }\n var signatures = ts.mapDefined(signatureDecls, function (d) { return checker.getSignatureFromDeclaration(d); });\n if (ts.length(signatures) !== ts.length(decls)) {\n return;\n }\n var returnOne = checker.getReturnTypeOfSignature(signatures[0]);\n if (!ts.every(signatures, function (s) { return checker.getReturnTypeOfSignature(s) === returnOne; })) {\n return;\n }\n return signatureDecls;\n }\n })(addOrRemoveBracesToArrowFunction = refactor.addOrRemoveBracesToArrowFunction || (refactor.addOrRemoveBracesToArrowFunction = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var extractSymbol;\n (function (extractSymbol) {\n var refactorName = \"Extract Symbol\";\n var extractConstantAction = {\n name: \"Extract Constant\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_constant),\n kind: \"refactor.extract.constant\",\n };\n var extractFunctionAction = {\n name: \"Extract Function\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_function),\n kind: \"refactor.extract.function\",\n };\n refactor.registerRefactor(refactorName, {\n kinds: [\n extractConstantAction.kind,\n extractFunctionAction.kind\n ],\n getAvailableActions: getAvailableActions,\n getEditsForAction: getEditsForAction\n });\n /**\n * Compute the associated code actions\n * Exported for tests.\n */\n function getAvailableActions(context) {\n var requestedRefactor = context.kind;\n var rangeToExtract = getRangeToExtract(context.file, ts.getRefactorContextSpan(context), context.triggerReason === \"invoked\");\n var targetRange = rangeToExtract.targetRange;\n if (targetRange === undefined) {\n if (!rangeToExtract.errors || rangeToExtract.errors.length === 0 || !context.preferences.provideRefactorNotApplicableReason) {\n return ts.emptyArray;\n }\n var errors = [];\n if (refactor.refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) {\n errors.push({\n name: refactorName,\n description: extractFunctionAction.description,\n actions: [__assign(__assign({}, extractFunctionAction), { notApplicableReason: getStringError(rangeToExtract.errors) })]\n });\n }\n if (refactor.refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) {\n errors.push({\n name: refactorName,\n description: extractConstantAction.description,\n actions: [__assign(__assign({}, extractConstantAction), { notApplicableReason: getStringError(rangeToExtract.errors) })]\n });\n }\n return errors;\n }\n var extractions = getPossibleExtractions(targetRange, context);\n if (extractions === undefined) {\n // No extractions possible\n return ts.emptyArray;\n }\n var functionActions = [];\n var usedFunctionNames = new ts.Map();\n var innermostErrorFunctionAction;\n var constantActions = [];\n var usedConstantNames = new ts.Map();\n var innermostErrorConstantAction;\n var i = 0;\n for (var _i = 0, extractions_1 = extractions; _i < extractions_1.length; _i++) {\n var _a = extractions_1[_i], functionExtraction = _a.functionExtraction, constantExtraction = _a.constantExtraction;\n var description = functionExtraction.description;\n if (refactor.refactorKindBeginsWith(extractFunctionAction.kind, requestedRefactor)) {\n if (functionExtraction.errors.length === 0) {\n // Don't issue refactorings with duplicated names.\n // Scopes come back in \"innermost first\" order, so extractions will\n // preferentially go into nearer scopes\n if (!usedFunctionNames.has(description)) {\n usedFunctionNames.set(description, true);\n functionActions.push({\n description: description,\n name: \"function_scope_\" + i,\n kind: extractFunctionAction.kind\n });\n }\n }\n else if (!innermostErrorFunctionAction) {\n innermostErrorFunctionAction = {\n description: description,\n name: \"function_scope_\" + i,\n notApplicableReason: getStringError(functionExtraction.errors),\n kind: extractFunctionAction.kind\n };\n }\n }\n if (refactor.refactorKindBeginsWith(extractConstantAction.kind, requestedRefactor)) {\n if (constantExtraction.errors.length === 0) {\n // Don't issue refactorings with duplicated names.\n // Scopes come back in \"innermost first\" order, so extractions will\n // preferentially go into nearer scopes\n var description_1 = constantExtraction.description;\n if (!usedConstantNames.has(description_1)) {\n usedConstantNames.set(description_1, true);\n constantActions.push({\n description: description_1,\n name: \"constant_scope_\" + i,\n kind: extractConstantAction.kind\n });\n }\n }\n else if (!innermostErrorConstantAction) {\n innermostErrorConstantAction = {\n description: description,\n name: \"constant_scope_\" + i,\n notApplicableReason: getStringError(constantExtraction.errors),\n kind: extractConstantAction.kind\n };\n }\n }\n // *do* increment i anyway because we'll look for the i-th scope\n // later when actually doing the refactoring if the user requests it\n i++;\n }\n var infos = [];\n if (functionActions.length) {\n infos.push({\n name: refactorName,\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_function),\n actions: functionActions,\n });\n }\n else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorFunctionAction) {\n infos.push({\n name: refactorName,\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_function),\n actions: [innermostErrorFunctionAction]\n });\n }\n if (constantActions.length) {\n infos.push({\n name: refactorName,\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_constant),\n actions: constantActions\n });\n }\n else if (context.preferences.provideRefactorNotApplicableReason && innermostErrorConstantAction) {\n infos.push({\n name: refactorName,\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_constant),\n actions: [innermostErrorConstantAction]\n });\n }\n return infos.length ? infos : ts.emptyArray;\n function getStringError(errors) {\n var error = errors[0].messageText;\n if (typeof error !== \"string\") {\n error = error.messageText;\n }\n return error;\n }\n }\n extractSymbol.getAvailableActions = getAvailableActions;\n /* Exported for tests */\n function getEditsForAction(context, actionName) {\n var rangeToExtract = getRangeToExtract(context.file, ts.getRefactorContextSpan(context));\n var targetRange = rangeToExtract.targetRange; // TODO:GH#18217\n var parsedFunctionIndexMatch = /^function_scope_(\\d+)$/.exec(actionName);\n if (parsedFunctionIndexMatch) {\n var index = +parsedFunctionIndexMatch[1];\n ts.Debug.assert(isFinite(index), \"Expected to parse a finite number from the function scope index\");\n return getFunctionExtractionAtIndex(targetRange, context, index);\n }\n var parsedConstantIndexMatch = /^constant_scope_(\\d+)$/.exec(actionName);\n if (parsedConstantIndexMatch) {\n var index = +parsedConstantIndexMatch[1];\n ts.Debug.assert(isFinite(index), \"Expected to parse a finite number from the constant scope index\");\n return getConstantExtractionAtIndex(targetRange, context, index);\n }\n ts.Debug.fail(\"Unrecognized action name\");\n }\n extractSymbol.getEditsForAction = getEditsForAction;\n // Move these into diagnostic messages if they become user-facing\n var Messages;\n (function (Messages) {\n function createMessage(message) {\n return { message: message, code: 0, category: ts.DiagnosticCategory.Message, key: message };\n }\n Messages.cannotExtractRange = createMessage(\"Cannot extract range.\");\n Messages.cannotExtractImport = createMessage(\"Cannot extract import statement.\");\n Messages.cannotExtractSuper = createMessage(\"Cannot extract super call.\");\n Messages.cannotExtractJSDoc = createMessage(\"Cannot extract JSDoc.\");\n Messages.cannotExtractEmpty = createMessage(\"Cannot extract empty range.\");\n Messages.expressionExpected = createMessage(\"expression expected.\");\n Messages.uselessConstantType = createMessage(\"No reason to extract constant of type.\");\n Messages.statementOrExpressionExpected = createMessage(\"Statement or expression expected.\");\n Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements = createMessage(\"Cannot extract range containing conditional break or continue statements.\");\n Messages.cannotExtractRangeContainingConditionalReturnStatement = createMessage(\"Cannot extract range containing conditional return statement.\");\n Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange = createMessage(\"Cannot extract range containing labeled break or continue with target outside of the range.\");\n Messages.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators = createMessage(\"Cannot extract range containing writes to references located outside of the target range in generators.\");\n Messages.typeWillNotBeVisibleInTheNewScope = createMessage(\"Type will not visible in the new scope.\");\n Messages.functionWillNotBeVisibleInTheNewScope = createMessage(\"Function will not visible in the new scope.\");\n Messages.cannotExtractIdentifier = createMessage(\"Select more than a single identifier.\");\n Messages.cannotExtractExportedEntity = createMessage(\"Cannot extract exported declaration\");\n Messages.cannotWriteInExpression = createMessage(\"Cannot write back side-effects when extracting an expression\");\n Messages.cannotExtractReadonlyPropertyInitializerOutsideConstructor = createMessage(\"Cannot move initialization of read-only class property outside of the constructor\");\n Messages.cannotExtractAmbientBlock = createMessage(\"Cannot extract code from ambient contexts\");\n Messages.cannotAccessVariablesFromNestedScopes = createMessage(\"Cannot access variables from nested scopes\");\n Messages.cannotExtractToJSClass = createMessage(\"Cannot extract constant to a class scope in JS\");\n Messages.cannotExtractToExpressionArrowFunction = createMessage(\"Cannot extract constant to an arrow function without a block\");\n })(Messages = extractSymbol.Messages || (extractSymbol.Messages = {}));\n var RangeFacts;\n (function (RangeFacts) {\n RangeFacts[RangeFacts[\"None\"] = 0] = \"None\";\n RangeFacts[RangeFacts[\"HasReturn\"] = 1] = \"HasReturn\";\n RangeFacts[RangeFacts[\"IsGenerator\"] = 2] = \"IsGenerator\";\n RangeFacts[RangeFacts[\"IsAsyncFunction\"] = 4] = \"IsAsyncFunction\";\n RangeFacts[RangeFacts[\"UsesThis\"] = 8] = \"UsesThis\";\n /**\n * The range is in a function which needs the 'static' modifier in a class\n */\n RangeFacts[RangeFacts[\"InStaticRegion\"] = 16] = \"InStaticRegion\";\n })(RangeFacts || (RangeFacts = {}));\n /**\n * getRangeToExtract takes a span inside a text file and returns either an expression or an array\n * of statements representing the minimum set of nodes needed to extract the entire span. This\n * process may fail, in which case a set of errors is returned instead. These errors are shown to\n * users if they have the provideRefactorNotApplicableReason option set.\n */\n // exported only for tests\n function getRangeToExtract(sourceFile, span, invoked) {\n if (invoked === void 0) { invoked = true; }\n var length = span.length;\n if (length === 0 && !invoked) {\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractEmpty)] };\n }\n var cursorRequest = length === 0 && invoked;\n var startToken = ts.findFirstNonJsxWhitespaceToken(sourceFile, span.start);\n var endToken = ts.findTokenOnLeftOfPosition(sourceFile, ts.textSpanEnd(span));\n /* If the refactoring command is invoked through a keyboard action it's safe to assume that the user is actively looking for\n refactoring actions at the span location. As they may not know the exact range that will trigger a refactoring, we expand the\n searched span to cover a real node range making it more likely that something useful will show up. */\n var adjustedSpan = startToken && endToken && invoked ? getAdjustedSpanFromNodes(startToken, endToken, sourceFile) : span;\n // Walk up starting from the the start position until we find a non-SourceFile node that subsumes the selected span.\n // This may fail (e.g. you select two statements in the root of a source file)\n var start = cursorRequest ? getExtractableParent(startToken) : ts.getParentNodeInSpan(startToken, sourceFile, adjustedSpan);\n // Do the same for the ending position\n var end = cursorRequest ? start : ts.getParentNodeInSpan(endToken, sourceFile, adjustedSpan);\n var declarations = [];\n // We'll modify these flags as we walk the tree to collect data\n // about what things need to be done as part of the extraction.\n var rangeFacts = RangeFacts.None;\n if (!start || !end) {\n // cannot find either start or end node\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };\n }\n if (ts.isJSDoc(start)) {\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractJSDoc)] };\n }\n if (start.parent !== end.parent) {\n // start and end nodes belong to different subtrees\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };\n }\n if (start !== end) {\n // start and end should be statements and parent should be either block or a source file\n if (!isBlockLike(start.parent)) {\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };\n }\n var statements = [];\n var start2 = start; // TODO: GH#18217 Need to alias `start` to get this to compile. See https://github.com/Microsoft/TypeScript/issues/19955#issuecomment-344118248\n for (var _i = 0, _a = start2.parent.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n if (statement === start || statements.length) {\n var errors_1 = checkNode(statement);\n if (errors_1) {\n return { errors: errors_1 };\n }\n statements.push(statement);\n }\n if (statement === end) {\n break;\n }\n }\n if (!statements.length) {\n // https://github.com/Microsoft/TypeScript/issues/20559\n // Ranges like [|case 1: break;|] will fail to populate `statements` because\n // they will never find `start` in `start.parent.statements`.\n // Consider: We could support ranges like [|case 1:|] by refining them to just\n // the expression.\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };\n }\n return { targetRange: { range: statements, facts: rangeFacts, declarations: declarations } };\n }\n if (ts.isReturnStatement(start) && !start.expression) {\n // Makes no sense to extract an expression-less return statement.\n return { errors: [ts.createFileDiagnostic(sourceFile, span.start, length, Messages.cannotExtractRange)] };\n }\n // We have a single node (start)\n var node = refineNode(start);\n var errors = checkRootNode(node) || checkNode(node);\n if (errors) {\n return { errors: errors };\n }\n return { targetRange: { range: getStatementOrExpressionRange(node), facts: rangeFacts, declarations: declarations } }; // TODO: GH#18217\n /**\n * Attempt to refine the extraction node (generally, by shrinking it) to produce better results.\n * @param node The unrefined extraction node.\n */\n function refineNode(node) {\n if (ts.isReturnStatement(node)) {\n if (node.expression) {\n return node.expression;\n }\n }\n else if (ts.isVariableStatement(node)) {\n var numInitializers = 0;\n var lastInitializer = void 0;\n for (var _i = 0, _a = node.declarationList.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (declaration.initializer) {\n numInitializers++;\n lastInitializer = declaration.initializer;\n }\n }\n if (numInitializers === 1) {\n return lastInitializer;\n }\n // No special handling if there are multiple initializers.\n }\n else if (ts.isVariableDeclaration(node)) {\n if (node.initializer) {\n return node.initializer;\n }\n }\n return node;\n }\n function checkRootNode(node) {\n if (ts.isIdentifier(ts.isExpressionStatement(node) ? node.expression : node)) {\n return [ts.createDiagnosticForNode(node, Messages.cannotExtractIdentifier)];\n }\n return undefined;\n }\n function checkForStaticContext(nodeToCheck, containingClass) {\n var current = nodeToCheck;\n while (current !== containingClass) {\n if (current.kind === 165 /* PropertyDeclaration */) {\n if (ts.isStatic(current)) {\n rangeFacts |= RangeFacts.InStaticRegion;\n }\n break;\n }\n else if (current.kind === 162 /* Parameter */) {\n var ctorOrMethod = ts.getContainingFunction(current);\n if (ctorOrMethod.kind === 169 /* Constructor */) {\n rangeFacts |= RangeFacts.InStaticRegion;\n }\n break;\n }\n else if (current.kind === 167 /* MethodDeclaration */) {\n if (ts.isStatic(current)) {\n rangeFacts |= RangeFacts.InStaticRegion;\n }\n }\n current = current.parent;\n }\n }\n // Verifies whether we can actually extract this node or not.\n function checkNode(nodeToCheck) {\n var PermittedJumps;\n (function (PermittedJumps) {\n PermittedJumps[PermittedJumps[\"None\"] = 0] = \"None\";\n PermittedJumps[PermittedJumps[\"Break\"] = 1] = \"Break\";\n PermittedJumps[PermittedJumps[\"Continue\"] = 2] = \"Continue\";\n PermittedJumps[PermittedJumps[\"Return\"] = 4] = \"Return\";\n })(PermittedJumps || (PermittedJumps = {}));\n // We believe it's true because the node is from the (unmodified) tree.\n ts.Debug.assert(nodeToCheck.pos <= nodeToCheck.end, \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (1)\");\n // For understanding how skipTrivia functioned:\n ts.Debug.assert(!ts.positionIsSynthesized(nodeToCheck.pos), \"This failure could trigger https://github.com/Microsoft/TypeScript/issues/20809 (2)\");\n if (!ts.isStatement(nodeToCheck) && !(ts.isExpressionNode(nodeToCheck) && isExtractableExpression(nodeToCheck))) {\n return [ts.createDiagnosticForNode(nodeToCheck, Messages.statementOrExpressionExpected)];\n }\n if (nodeToCheck.flags & 8388608 /* Ambient */) {\n return [ts.createDiagnosticForNode(nodeToCheck, Messages.cannotExtractAmbientBlock)];\n }\n // If we're in a class, see whether we're in a static region (static property initializer, static method, class constructor parameter default)\n var containingClass = ts.getContainingClass(nodeToCheck);\n if (containingClass) {\n checkForStaticContext(nodeToCheck, containingClass);\n }\n var errors;\n var permittedJumps = 4 /* Return */;\n var seenLabels;\n visit(nodeToCheck);\n return errors;\n function visit(node) {\n if (errors) {\n // already found an error - can stop now\n return true;\n }\n if (ts.isDeclaration(node)) {\n var declaringNode = (node.kind === 252 /* VariableDeclaration */) ? node.parent.parent : node;\n if (ts.hasSyntacticModifier(declaringNode, 1 /* Export */)) {\n // TODO: GH#18217 Silly to use `errors ||` since it's definitely not defined (see top of `visit`)\n // Also, if we're only pushing one error, just use `let error: Diagnostic | undefined`!\n // Also TODO: GH#19956\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractExportedEntity));\n return true;\n }\n declarations.push(node.symbol);\n }\n // Some things can't be extracted in certain situations\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractImport));\n return true;\n case 269 /* ExportAssignment */:\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractExportedEntity));\n return true;\n case 106 /* SuperKeyword */:\n // For a super *constructor call*, we have to be extracting the entire class,\n // but a super *method call* simply implies a 'this' reference\n if (node.parent.kind === 206 /* CallExpression */) {\n // Super constructor call\n var containingClass_1 = ts.getContainingClass(node); // TODO:GH#18217\n if (containingClass_1.pos < span.start || containingClass_1.end >= (span.start + span.length)) {\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractSuper));\n return true;\n }\n }\n else {\n rangeFacts |= RangeFacts.UsesThis;\n }\n break;\n case 212 /* ArrowFunction */:\n // check if arrow function uses this\n ts.forEachChild(node, function check(n) {\n if (ts.isThis(n)) {\n rangeFacts |= RangeFacts.UsesThis;\n }\n else if (ts.isClassLike(n) || (ts.isFunctionLike(n) && !ts.isArrowFunction(n))) {\n return false;\n }\n else {\n ts.forEachChild(n, check);\n }\n });\n // falls through\n case 255 /* ClassDeclaration */:\n case 254 /* FunctionDeclaration */:\n if (ts.isSourceFile(node.parent) && node.parent.externalModuleIndicator === undefined) {\n // You cannot extract global declarations\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.functionWillNotBeVisibleInTheNewScope));\n }\n // falls through\n case 224 /* ClassExpression */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 169 /* Constructor */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n // do not dive into functions or classes\n return false;\n }\n var savedPermittedJumps = permittedJumps;\n switch (node.kind) {\n case 237 /* IfStatement */:\n permittedJumps = 0 /* None */;\n break;\n case 250 /* TryStatement */:\n // forbid all jumps inside try blocks\n permittedJumps = 0 /* None */;\n break;\n case 233 /* Block */:\n if (node.parent && node.parent.kind === 250 /* TryStatement */ && node.parent.finallyBlock === node) {\n // allow unconditional returns from finally blocks\n permittedJumps = 4 /* Return */;\n }\n break;\n case 288 /* DefaultClause */:\n case 287 /* CaseClause */:\n // allow unlabeled break inside case clauses\n permittedJumps |= 1 /* Break */;\n break;\n default:\n if (ts.isIterationStatement(node, /*lookInLabeledStatements*/ false)) {\n // allow unlabeled break/continue inside loops\n permittedJumps |= 1 /* Break */ | 2 /* Continue */;\n }\n break;\n }\n switch (node.kind) {\n case 190 /* ThisType */:\n case 108 /* ThisKeyword */:\n rangeFacts |= RangeFacts.UsesThis;\n break;\n case 248 /* LabeledStatement */: {\n var label = node.label;\n (seenLabels || (seenLabels = [])).push(label.escapedText);\n ts.forEachChild(node, visit);\n seenLabels.pop();\n break;\n }\n case 244 /* BreakStatement */:\n case 243 /* ContinueStatement */: {\n var label = node.label;\n if (label) {\n if (!ts.contains(seenLabels, label.escapedText)) {\n // attempts to jump to label that is not in range to be extracted\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractRangeContainingLabeledBreakOrContinueStatementWithTargetOutsideOfTheRange));\n }\n }\n else {\n if (!(permittedJumps & (node.kind === 244 /* BreakStatement */ ? 1 /* Break */ : 2 /* Continue */))) {\n // attempt to break or continue in a forbidden context\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractRangeContainingConditionalBreakOrContinueStatements));\n }\n }\n break;\n }\n case 216 /* AwaitExpression */:\n rangeFacts |= RangeFacts.IsAsyncFunction;\n break;\n case 222 /* YieldExpression */:\n rangeFacts |= RangeFacts.IsGenerator;\n break;\n case 245 /* ReturnStatement */:\n if (permittedJumps & 4 /* Return */) {\n rangeFacts |= RangeFacts.HasReturn;\n }\n else {\n (errors || (errors = [])).push(ts.createDiagnosticForNode(node, Messages.cannotExtractRangeContainingConditionalReturnStatement));\n }\n break;\n default:\n ts.forEachChild(node, visit);\n break;\n }\n permittedJumps = savedPermittedJumps;\n }\n }\n }\n extractSymbol.getRangeToExtract = getRangeToExtract;\n /**\n * Includes the final semicolon so that the span covers statements in cases where it would otherwise\n * only cover the declaration list.\n */\n function getAdjustedSpanFromNodes(startNode, endNode, sourceFile) {\n var start = startNode.getStart(sourceFile);\n var end = endNode.getEnd();\n if (sourceFile.text.charCodeAt(end) === 59 /* semicolon */) {\n end++;\n }\n return { start: start, length: end - start };\n }\n function getStatementOrExpressionRange(node) {\n if (ts.isStatement(node)) {\n return [node];\n }\n else if (ts.isExpressionNode(node)) {\n // If our selection is the expression in an ExpressionStatement, expand\n // the selection to include the enclosing Statement (this stops us\n // from trying to care about the return value of the extracted function\n // and eliminates double semicolon insertion in certain scenarios)\n return ts.isExpressionStatement(node.parent) ? [node.parent] : node;\n }\n return undefined;\n }\n function isScope(node) {\n return ts.isFunctionLikeDeclaration(node) || ts.isSourceFile(node) || ts.isModuleBlock(node) || ts.isClassLike(node);\n }\n /**\n * Computes possible places we could extract the function into. For example,\n * you may be able to extract into a class method *or* local closure *or* namespace function,\n * depending on what's in the extracted body.\n */\n function collectEnclosingScopes(range) {\n var current = isReadonlyArray(range.range) ? ts.first(range.range) : range.range;\n if (range.facts & RangeFacts.UsesThis) {\n // if range uses this as keyword or as type inside the class then it can only be extracted to a method of the containing class\n var containingClass = ts.getContainingClass(current);\n if (containingClass) {\n var containingFunction = ts.findAncestor(current, ts.isFunctionLikeDeclaration);\n return containingFunction\n ? [containingFunction, containingClass]\n : [containingClass];\n }\n }\n var scopes = [];\n while (true) {\n current = current.parent;\n // A function parameter's initializer is actually in the outer scope, not the function declaration\n if (current.kind === 162 /* Parameter */) {\n // Skip all the way to the outer scope of the function that declared this parameter\n current = ts.findAncestor(current, function (parent) { return ts.isFunctionLikeDeclaration(parent); }).parent;\n }\n // We want to find the nearest parent where we can place an \"equivalent\" sibling to the node we're extracting out of.\n // Walk up to the closest parent of a place where we can logically put a sibling:\n // * Function declaration\n // * Class declaration or expression\n // * Module/namespace or source file\n if (isScope(current)) {\n scopes.push(current);\n if (current.kind === 300 /* SourceFile */) {\n return scopes;\n }\n }\n }\n }\n function getFunctionExtractionAtIndex(targetRange, context, requestedChangesIndex) {\n var _a = getPossibleExtractionsWorker(targetRange, context), scopes = _a.scopes, _b = _a.readsAndWrites, target = _b.target, usagesPerScope = _b.usagesPerScope, functionErrorsPerScope = _b.functionErrorsPerScope, exposedVariableDeclarations = _b.exposedVariableDeclarations;\n ts.Debug.assert(!functionErrorsPerScope[requestedChangesIndex].length, \"The extraction went missing? How?\");\n context.cancellationToken.throwIfCancellationRequested(); // TODO: GH#18217\n return extractFunctionInScope(target, scopes[requestedChangesIndex], usagesPerScope[requestedChangesIndex], exposedVariableDeclarations, targetRange, context);\n }\n function getConstantExtractionAtIndex(targetRange, context, requestedChangesIndex) {\n var _a = getPossibleExtractionsWorker(targetRange, context), scopes = _a.scopes, _b = _a.readsAndWrites, target = _b.target, usagesPerScope = _b.usagesPerScope, constantErrorsPerScope = _b.constantErrorsPerScope, exposedVariableDeclarations = _b.exposedVariableDeclarations;\n ts.Debug.assert(!constantErrorsPerScope[requestedChangesIndex].length, \"The extraction went missing? How?\");\n ts.Debug.assert(exposedVariableDeclarations.length === 0, \"Extract constant accepted a range containing a variable declaration?\");\n context.cancellationToken.throwIfCancellationRequested();\n var expression = ts.isExpression(target)\n ? target\n : target.statements[0].expression;\n return extractConstantInScope(expression, scopes[requestedChangesIndex], usagesPerScope[requestedChangesIndex], targetRange.facts, context);\n }\n /**\n * Given a piece of text to extract ('targetRange'), computes a list of possible extractions.\n * Each returned ExtractResultForScope corresponds to a possible target scope and is either a set of changes\n * or an error explaining why we can't extract into that scope.\n */\n function getPossibleExtractions(targetRange, context) {\n var _a = getPossibleExtractionsWorker(targetRange, context), scopes = _a.scopes, _b = _a.readsAndWrites, functionErrorsPerScope = _b.functionErrorsPerScope, constantErrorsPerScope = _b.constantErrorsPerScope;\n // Need the inner type annotation to avoid https://github.com/Microsoft/TypeScript/issues/7547\n var extractions = scopes.map(function (scope, i) {\n var functionDescriptionPart = getDescriptionForFunctionInScope(scope);\n var constantDescriptionPart = getDescriptionForConstantInScope(scope);\n var scopeDescription = ts.isFunctionLikeDeclaration(scope)\n ? getDescriptionForFunctionLikeDeclaration(scope)\n : ts.isClassLike(scope)\n ? getDescriptionForClassLikeDeclaration(scope)\n : getDescriptionForModuleLikeDeclaration(scope);\n var functionDescription;\n var constantDescription;\n if (scopeDescription === 1 /* Global */) {\n functionDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_1_scope), [functionDescriptionPart, \"global\"]);\n constantDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_1_scope), [constantDescriptionPart, \"global\"]);\n }\n else if (scopeDescription === 0 /* Module */) {\n functionDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_1_scope), [functionDescriptionPart, \"module\"]);\n constantDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_1_scope), [constantDescriptionPart, \"module\"]);\n }\n else {\n functionDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_1), [functionDescriptionPart, scopeDescription]);\n constantDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_1), [constantDescriptionPart, scopeDescription]);\n }\n // Customize the phrasing for the innermost scope to increase clarity.\n if (i === 0 && !ts.isClassLike(scope)) {\n constantDescription = ts.formatStringFromArgs(ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_0_in_enclosing_scope), [constantDescriptionPart]);\n }\n return {\n functionExtraction: {\n description: functionDescription,\n errors: functionErrorsPerScope[i],\n },\n constantExtraction: {\n description: constantDescription,\n errors: constantErrorsPerScope[i],\n },\n };\n });\n return extractions;\n }\n function getPossibleExtractionsWorker(targetRange, context) {\n var sourceFile = context.file;\n var scopes = collectEnclosingScopes(targetRange);\n var enclosingTextRange = getEnclosingTextRange(targetRange, sourceFile);\n var readsAndWrites = collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, context.program.getTypeChecker(), context.cancellationToken);\n return { scopes: scopes, readsAndWrites: readsAndWrites };\n }\n function getDescriptionForFunctionInScope(scope) {\n return ts.isFunctionLikeDeclaration(scope)\n ? \"inner function\"\n : ts.isClassLike(scope)\n ? \"method\"\n : \"function\";\n }\n function getDescriptionForConstantInScope(scope) {\n return ts.isClassLike(scope)\n ? \"readonly field\"\n : \"constant\";\n }\n function getDescriptionForFunctionLikeDeclaration(scope) {\n switch (scope.kind) {\n case 169 /* Constructor */:\n return \"constructor\";\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n return scope.name\n ? \"function '\" + scope.name.text + \"'\"\n : ts.ANONYMOUS;\n case 212 /* ArrowFunction */:\n return \"arrow function\";\n case 167 /* MethodDeclaration */:\n return \"method '\" + scope.name.getText() + \"'\";\n case 170 /* GetAccessor */:\n return \"'get \" + scope.name.getText() + \"'\";\n case 171 /* SetAccessor */:\n return \"'set \" + scope.name.getText() + \"'\";\n default:\n throw ts.Debug.assertNever(scope, \"Unexpected scope kind \" + scope.kind);\n }\n }\n function getDescriptionForClassLikeDeclaration(scope) {\n return scope.kind === 255 /* ClassDeclaration */\n ? scope.name ? \"class '\" + scope.name.text + \"'\" : \"anonymous class declaration\"\n : scope.name ? \"class expression '\" + scope.name.text + \"'\" : \"anonymous class expression\";\n }\n function getDescriptionForModuleLikeDeclaration(scope) {\n return scope.kind === 260 /* ModuleBlock */\n ? \"namespace '\" + scope.parent.name.getText() + \"'\"\n : scope.externalModuleIndicator ? 0 /* Module */ : 1 /* Global */;\n }\n var SpecialScope;\n (function (SpecialScope) {\n SpecialScope[SpecialScope[\"Module\"] = 0] = \"Module\";\n SpecialScope[SpecialScope[\"Global\"] = 1] = \"Global\";\n })(SpecialScope || (SpecialScope = {}));\n /**\n * Result of 'extractRange' operation for a specific scope.\n * Stores either a list of changes that should be applied to extract a range or a list of errors\n */\n function extractFunctionInScope(node, scope, _a, exposedVariableDeclarations, range, context) {\n var usagesInScope = _a.usages, typeParameterUsages = _a.typeParameterUsages, substitutions = _a.substitutions;\n var checker = context.program.getTypeChecker();\n var scriptTarget = ts.getEmitScriptTarget(context.program.getCompilerOptions());\n var importAdder = ts.codefix.createImportAdder(context.file, context.program, context.preferences, context.host);\n // Make a unique name for the extracted function\n var file = scope.getSourceFile();\n var functionNameText = ts.getUniqueName(ts.isClassLike(scope) ? \"newMethod\" : \"newFunction\", file);\n var isJS = ts.isInJSFile(scope);\n var functionName = ts.factory.createIdentifier(functionNameText);\n var returnType;\n var parameters = [];\n var callArguments = [];\n var writes;\n usagesInScope.forEach(function (usage, name) {\n var typeNode;\n if (!isJS) {\n var type = checker.getTypeOfSymbolAtLocation(usage.symbol, usage.node);\n // Widen the type so we don't emit nonsense annotations like \"function fn(x: 3) {\"\n type = checker.getBaseTypeOfLiteralType(type);\n typeNode = ts.codefix.typeToAutoImportableTypeNode(checker, importAdder, type, scope, scriptTarget, 1 /* NoTruncation */);\n }\n var paramDecl = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, \n /*name*/ name, \n /*questionToken*/ undefined, typeNode);\n parameters.push(paramDecl);\n if (usage.usage === 2 /* Write */) {\n (writes || (writes = [])).push(usage);\n }\n callArguments.push(ts.factory.createIdentifier(name));\n });\n var typeParametersAndDeclarations = ts.arrayFrom(typeParameterUsages.values()).map(function (type) { return ({ type: type, declaration: getFirstDeclaration(type) }); });\n var sortedTypeParametersAndDeclarations = typeParametersAndDeclarations.sort(compareTypesByDeclarationOrder);\n var typeParameters = sortedTypeParametersAndDeclarations.length === 0\n ? undefined\n : sortedTypeParametersAndDeclarations.map(function (t) { return t.declaration; });\n // Strictly speaking, we should check whether each name actually binds to the appropriate type\n // parameter. In cases of shadowing, they may not.\n var callTypeArguments = typeParameters !== undefined\n ? typeParameters.map(function (decl) { return ts.factory.createTypeReferenceNode(decl.name, /*typeArguments*/ undefined); })\n : undefined;\n // Provide explicit return types for contextually-typed functions\n // to avoid problems when there are literal types present\n if (ts.isExpression(node) && !isJS) {\n var contextualType = checker.getContextualType(node);\n returnType = checker.typeToTypeNode(contextualType, scope, 1 /* NoTruncation */); // TODO: GH#18217\n }\n var _b = transformFunctionBody(node, exposedVariableDeclarations, writes, substitutions, !!(range.facts & RangeFacts.HasReturn)), body = _b.body, returnValueProperty = _b.returnValueProperty;\n ts.suppressLeadingAndTrailingTrivia(body);\n var newFunction;\n if (ts.isClassLike(scope)) {\n // always create private method in TypeScript files\n var modifiers = isJS ? [] : [ts.factory.createModifier(121 /* PrivateKeyword */)];\n if (range.facts & RangeFacts.InStaticRegion) {\n modifiers.push(ts.factory.createModifier(124 /* StaticKeyword */));\n }\n if (range.facts & RangeFacts.IsAsyncFunction) {\n modifiers.push(ts.factory.createModifier(130 /* AsyncKeyword */));\n }\n newFunction = ts.factory.createMethodDeclaration(\n /*decorators*/ undefined, modifiers.length ? modifiers : undefined, range.facts & RangeFacts.IsGenerator ? ts.factory.createToken(41 /* AsteriskToken */) : undefined, functionName, \n /*questionToken*/ undefined, typeParameters, parameters, returnType, body);\n }\n else {\n newFunction = ts.factory.createFunctionDeclaration(\n /*decorators*/ undefined, range.facts & RangeFacts.IsAsyncFunction ? [ts.factory.createToken(130 /* AsyncKeyword */)] : undefined, range.facts & RangeFacts.IsGenerator ? ts.factory.createToken(41 /* AsteriskToken */) : undefined, functionName, typeParameters, parameters, returnType, body);\n }\n var changeTracker = ts.textChanges.ChangeTracker.fromContext(context);\n var minInsertionPos = (isReadonlyArray(range.range) ? ts.last(range.range) : range.range).end;\n var nodeToInsertBefore = getNodeToInsertFunctionBefore(minInsertionPos, scope);\n if (nodeToInsertBefore) {\n changeTracker.insertNodeBefore(context.file, nodeToInsertBefore, newFunction, /*blankLineBetween*/ true);\n }\n else {\n changeTracker.insertNodeAtEndOfScope(context.file, scope, newFunction);\n }\n importAdder.writeFixes(changeTracker);\n var newNodes = [];\n // replace range with function call\n var called = getCalledExpression(scope, range, functionNameText);\n var call = ts.factory.createCallExpression(called, callTypeArguments, // Note that no attempt is made to take advantage of type argument inference\n callArguments);\n if (range.facts & RangeFacts.IsGenerator) {\n call = ts.factory.createYieldExpression(ts.factory.createToken(41 /* AsteriskToken */), call);\n }\n if (range.facts & RangeFacts.IsAsyncFunction) {\n call = ts.factory.createAwaitExpression(call);\n }\n if (isInJSXContent(node)) {\n call = ts.factory.createJsxExpression(/*dotDotDotToken*/ undefined, call);\n }\n if (exposedVariableDeclarations.length && !writes) {\n // No need to mix declarations and writes.\n // How could any variables be exposed if there's a return statement?\n ts.Debug.assert(!returnValueProperty, \"Expected no returnValueProperty\");\n ts.Debug.assert(!(range.facts & RangeFacts.HasReturn), \"Expected RangeFacts.HasReturn flag to be unset\");\n if (exposedVariableDeclarations.length === 1) {\n // Declaring exactly one variable: let x = newFunction();\n var variableDeclaration = exposedVariableDeclarations[0];\n newNodes.push(ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(ts.getSynthesizedDeepClone(variableDeclaration.name), /*exclamationToken*/ undefined, /*type*/ ts.getSynthesizedDeepClone(variableDeclaration.type), /*initializer*/ call)], // TODO (acasey): test binding patterns\n variableDeclaration.parent.flags)));\n }\n else {\n // Declaring multiple variables / return properties:\n // let {x, y} = newFunction();\n var bindingElements = [];\n var typeElements = [];\n var commonNodeFlags = exposedVariableDeclarations[0].parent.flags;\n var sawExplicitType = false;\n for (var _i = 0, exposedVariableDeclarations_1 = exposedVariableDeclarations; _i < exposedVariableDeclarations_1.length; _i++) {\n var variableDeclaration = exposedVariableDeclarations_1[_i];\n bindingElements.push(ts.factory.createBindingElement(\n /*dotDotDotToken*/ undefined, \n /*propertyName*/ undefined, \n /*name*/ ts.getSynthesizedDeepClone(variableDeclaration.name)));\n // Being returned through an object literal will have widened the type.\n var variableType = checker.typeToTypeNode(checker.getBaseTypeOfLiteralType(checker.getTypeAtLocation(variableDeclaration)), scope, 1 /* NoTruncation */);\n typeElements.push(ts.factory.createPropertySignature(\n /*modifiers*/ undefined, \n /*name*/ variableDeclaration.symbol.name, \n /*questionToken*/ undefined, \n /*type*/ variableType));\n sawExplicitType = sawExplicitType || variableDeclaration.type !== undefined;\n commonNodeFlags = commonNodeFlags & variableDeclaration.parent.flags;\n }\n var typeLiteral = sawExplicitType ? ts.factory.createTypeLiteralNode(typeElements) : undefined;\n if (typeLiteral) {\n ts.setEmitFlags(typeLiteral, 1 /* SingleLine */);\n }\n newNodes.push(ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(ts.factory.createObjectBindingPattern(bindingElements), \n /*exclamationToken*/ undefined, \n /*type*/ typeLiteral, \n /*initializer*/ call)], commonNodeFlags)));\n }\n }\n else if (exposedVariableDeclarations.length || writes) {\n if (exposedVariableDeclarations.length) {\n // CONSIDER: we're going to create one statement per variable, but we could actually preserve their original grouping.\n for (var _c = 0, exposedVariableDeclarations_2 = exposedVariableDeclarations; _c < exposedVariableDeclarations_2.length; _c++) {\n var variableDeclaration = exposedVariableDeclarations_2[_c];\n var flags = variableDeclaration.parent.flags;\n if (flags & 2 /* Const */) {\n flags = (flags & ~2 /* Const */) | 1 /* Let */;\n }\n newNodes.push(ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(variableDeclaration.symbol.name, /*exclamationToken*/ undefined, getTypeDeepCloneUnionUndefined(variableDeclaration.type))], flags)));\n }\n }\n if (returnValueProperty) {\n // has both writes and return, need to create variable declaration to hold return value;\n newNodes.push(ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(returnValueProperty, /*exclamationToken*/ undefined, getTypeDeepCloneUnionUndefined(returnType))], 1 /* Let */)));\n }\n var assignments = getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes);\n if (returnValueProperty) {\n assignments.unshift(ts.factory.createShorthandPropertyAssignment(returnValueProperty));\n }\n // propagate writes back\n if (assignments.length === 1) {\n // We would only have introduced a return value property if there had been\n // other assignments to make.\n ts.Debug.assert(!returnValueProperty, \"Shouldn't have returnValueProperty here\");\n newNodes.push(ts.factory.createExpressionStatement(ts.factory.createAssignment(assignments[0].name, call)));\n if (range.facts & RangeFacts.HasReturn) {\n newNodes.push(ts.factory.createReturnStatement());\n }\n }\n else {\n // emit e.g.\n // { a, b, __return } = newFunction(a, b);\n // return __return;\n newNodes.push(ts.factory.createExpressionStatement(ts.factory.createAssignment(ts.factory.createObjectLiteralExpression(assignments), call)));\n if (returnValueProperty) {\n newNodes.push(ts.factory.createReturnStatement(ts.factory.createIdentifier(returnValueProperty)));\n }\n }\n }\n else {\n if (range.facts & RangeFacts.HasReturn) {\n newNodes.push(ts.factory.createReturnStatement(call));\n }\n else if (isReadonlyArray(range.range)) {\n newNodes.push(ts.factory.createExpressionStatement(call));\n }\n else {\n newNodes.push(call);\n }\n }\n if (isReadonlyArray(range.range)) {\n changeTracker.replaceNodeRangeWithNodes(context.file, ts.first(range.range), ts.last(range.range), newNodes);\n }\n else {\n changeTracker.replaceNodeWithNodes(context.file, range.range, newNodes);\n }\n var edits = changeTracker.getChanges();\n var renameRange = isReadonlyArray(range.range) ? ts.first(range.range) : range.range;\n var renameFilename = renameRange.getSourceFile().fileName;\n var renameLocation = ts.getRenameLocation(edits, renameFilename, functionNameText, /*isDeclaredBeforeUse*/ false);\n return { renameFilename: renameFilename, renameLocation: renameLocation, edits: edits };\n function getTypeDeepCloneUnionUndefined(typeNode) {\n if (typeNode === undefined) {\n return undefined;\n }\n var clone = ts.getSynthesizedDeepClone(typeNode);\n var withoutParens = clone;\n while (ts.isParenthesizedTypeNode(withoutParens)) {\n withoutParens = withoutParens.type;\n }\n return ts.isUnionTypeNode(withoutParens) && ts.find(withoutParens.types, function (t) { return t.kind === 151 /* UndefinedKeyword */; })\n ? clone\n : ts.factory.createUnionTypeNode([clone, ts.factory.createKeywordTypeNode(151 /* UndefinedKeyword */)]);\n }\n }\n /**\n * Result of 'extractRange' operation for a specific scope.\n * Stores either a list of changes that should be applied to extract a range or a list of errors\n */\n function extractConstantInScope(node, scope, _a, rangeFacts, context) {\n var _b;\n var substitutions = _a.substitutions;\n var checker = context.program.getTypeChecker();\n // Make a unique name for the extracted variable\n var file = scope.getSourceFile();\n var localNameText = ts.getUniqueName(ts.isClassLike(scope) ? \"newProperty\" : \"newLocal\", file);\n var isJS = ts.isInJSFile(scope);\n var variableType = isJS || !checker.isContextSensitive(node)\n ? undefined\n : checker.typeToTypeNode(checker.getContextualType(node), scope, 1 /* NoTruncation */); // TODO: GH#18217\n var initializer = transformConstantInitializer(node, substitutions);\n (_b = transformFunctionInitializerAndType(variableType, initializer), variableType = _b.variableType, initializer = _b.initializer);\n ts.suppressLeadingAndTrailingTrivia(initializer);\n var changeTracker = ts.textChanges.ChangeTracker.fromContext(context);\n if (ts.isClassLike(scope)) {\n ts.Debug.assert(!isJS, \"Cannot extract to a JS class\"); // See CannotExtractToJSClass\n var modifiers = [];\n modifiers.push(ts.factory.createModifier(121 /* PrivateKeyword */));\n if (rangeFacts & RangeFacts.InStaticRegion) {\n modifiers.push(ts.factory.createModifier(124 /* StaticKeyword */));\n }\n modifiers.push(ts.factory.createModifier(143 /* ReadonlyKeyword */));\n var newVariable = ts.factory.createPropertyDeclaration(\n /*decorators*/ undefined, modifiers, localNameText, \n /*questionToken*/ undefined, variableType, initializer);\n var localReference = ts.factory.createPropertyAccessExpression(rangeFacts & RangeFacts.InStaticRegion\n ? ts.factory.createIdentifier(scope.name.getText()) // TODO: GH#18217\n : ts.factory.createThis(), ts.factory.createIdentifier(localNameText));\n if (isInJSXContent(node)) {\n localReference = ts.factory.createJsxExpression(/*dotDotDotToken*/ undefined, localReference);\n }\n // Declare\n var maxInsertionPos = node.pos;\n var nodeToInsertBefore = getNodeToInsertPropertyBefore(maxInsertionPos, scope);\n changeTracker.insertNodeBefore(context.file, nodeToInsertBefore, newVariable, /*blankLineBetween*/ true);\n // Consume\n changeTracker.replaceNode(context.file, node, localReference);\n }\n else {\n var newVariableDeclaration = ts.factory.createVariableDeclaration(localNameText, /*exclamationToken*/ undefined, variableType, initializer);\n // If the node is part of an initializer in a list of variable declarations, insert a new\n // variable declaration into the list (in case it depends on earlier ones).\n // CONSIDER: If the declaration list isn't const, we might want to split it into multiple\n // lists so that the newly extracted one can be const.\n var oldVariableDeclaration = getContainingVariableDeclarationIfInList(node, scope);\n if (oldVariableDeclaration) {\n // Declare\n // CONSIDER: could detect that each is on a separate line (See `extractConstant_VariableList_MultipleLines` in `extractConstants.ts`)\n changeTracker.insertNodeBefore(context.file, oldVariableDeclaration, newVariableDeclaration);\n // Consume\n var localReference = ts.factory.createIdentifier(localNameText);\n changeTracker.replaceNode(context.file, node, localReference);\n }\n else if (node.parent.kind === 236 /* ExpressionStatement */ && scope === ts.findAncestor(node, isScope)) {\n // If the parent is an expression statement and the target scope is the immediately enclosing one,\n // replace the statement with the declaration.\n var newVariableStatement = ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([newVariableDeclaration], 2 /* Const */));\n changeTracker.replaceNode(context.file, node.parent, newVariableStatement);\n }\n else {\n var newVariableStatement = ts.factory.createVariableStatement(\n /*modifiers*/ undefined, ts.factory.createVariableDeclarationList([newVariableDeclaration], 2 /* Const */));\n // Declare\n var nodeToInsertBefore = getNodeToInsertConstantBefore(node, scope);\n if (nodeToInsertBefore.pos === 0) {\n changeTracker.insertNodeAtTopOfFile(context.file, newVariableStatement, /*blankLineBetween*/ false);\n }\n else {\n changeTracker.insertNodeBefore(context.file, nodeToInsertBefore, newVariableStatement, /*blankLineBetween*/ false);\n }\n // Consume\n if (node.parent.kind === 236 /* ExpressionStatement */) {\n // If the parent is an expression statement, delete it.\n changeTracker.delete(context.file, node.parent);\n }\n else {\n var localReference = ts.factory.createIdentifier(localNameText);\n // When extract to a new variable in JSX content, need to wrap a {} out of the new variable\n // or it will become a plain text\n if (isInJSXContent(node)) {\n localReference = ts.factory.createJsxExpression(/*dotDotDotToken*/ undefined, localReference);\n }\n changeTracker.replaceNode(context.file, node, localReference);\n }\n }\n }\n var edits = changeTracker.getChanges();\n var renameFilename = node.getSourceFile().fileName;\n var renameLocation = ts.getRenameLocation(edits, renameFilename, localNameText, /*isDeclaredBeforeUse*/ true);\n return { renameFilename: renameFilename, renameLocation: renameLocation, edits: edits };\n function transformFunctionInitializerAndType(variableType, initializer) {\n // If no contextual type exists there is nothing to transfer to the function signature\n if (variableType === undefined)\n return { variableType: variableType, initializer: initializer };\n // Only do this for function expressions and arrow functions that are not generic\n if (!ts.isFunctionExpression(initializer) && !ts.isArrowFunction(initializer) || !!initializer.typeParameters)\n return { variableType: variableType, initializer: initializer };\n var functionType = checker.getTypeAtLocation(node);\n var functionSignature = ts.singleOrUndefined(checker.getSignaturesOfType(functionType, 0 /* Call */));\n // If no function signature, maybe there was an error, do nothing\n if (!functionSignature)\n return { variableType: variableType, initializer: initializer };\n // If the function signature has generic type parameters we don't attempt to move the parameters\n if (!!functionSignature.getTypeParameters())\n return { variableType: variableType, initializer: initializer };\n // We add parameter types if needed\n var parameters = [];\n var hasAny = false;\n for (var _i = 0, _a = initializer.parameters; _i < _a.length; _i++) {\n var p = _a[_i];\n if (p.type) {\n parameters.push(p);\n }\n else {\n var paramType = checker.getTypeAtLocation(p);\n if (paramType === checker.getAnyType())\n hasAny = true;\n parameters.push(ts.factory.updateParameterDeclaration(p, p.decorators, p.modifiers, p.dotDotDotToken, p.name, p.questionToken, p.type || checker.typeToTypeNode(paramType, scope, 1 /* NoTruncation */), p.initializer));\n }\n }\n // If a parameter was inferred as any we skip adding function parameters at all.\n // Turning an implicit any (which under common settings is a error) to an explicit\n // is probably actually a worse refactor outcome.\n if (hasAny)\n return { variableType: variableType, initializer: initializer };\n variableType = undefined;\n if (ts.isArrowFunction(initializer)) {\n initializer = ts.factory.updateArrowFunction(initializer, node.modifiers, initializer.typeParameters, parameters, initializer.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, 1 /* NoTruncation */), initializer.equalsGreaterThanToken, initializer.body);\n }\n else {\n if (functionSignature && !!functionSignature.thisParameter) {\n var firstParameter = ts.firstOrUndefined(parameters);\n // If the function signature has a this parameter and if the first defined parameter is not the this parameter, we must add it\n // Note: If this parameter was already there, it would have been previously updated with the type if not type was present\n if ((!firstParameter || (ts.isIdentifier(firstParameter.name) && firstParameter.name.escapedText !== \"this\"))) {\n var thisType = checker.getTypeOfSymbolAtLocation(functionSignature.thisParameter, node);\n parameters.splice(0, 0, ts.factory.createParameterDeclaration(\n /* decorators */ undefined, \n /* modifiers */ undefined, \n /* dotDotDotToken */ undefined, \"this\", \n /* questionToken */ undefined, checker.typeToTypeNode(thisType, scope, 1 /* NoTruncation */)));\n }\n }\n initializer = ts.factory.updateFunctionExpression(initializer, node.modifiers, initializer.asteriskToken, initializer.name, initializer.typeParameters, parameters, initializer.type || checker.typeToTypeNode(functionSignature.getReturnType(), scope, 1 /* NoTruncation */), initializer.body);\n }\n return { variableType: variableType, initializer: initializer };\n }\n }\n function getContainingVariableDeclarationIfInList(node, scope) {\n var prevNode;\n while (node !== undefined && node !== scope) {\n if (ts.isVariableDeclaration(node) &&\n node.initializer === prevNode &&\n ts.isVariableDeclarationList(node.parent) &&\n node.parent.declarations.length > 1) {\n return node;\n }\n prevNode = node;\n node = node.parent;\n }\n }\n function getFirstDeclaration(type) {\n var firstDeclaration;\n var symbol = type.symbol;\n if (symbol && symbol.declarations) {\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var declaration = _a[_i];\n if (firstDeclaration === undefined || declaration.pos < firstDeclaration.pos) {\n firstDeclaration = declaration;\n }\n }\n }\n return firstDeclaration;\n }\n function compareTypesByDeclarationOrder(_a, _b) {\n var type1 = _a.type, declaration1 = _a.declaration;\n var type2 = _b.type, declaration2 = _b.declaration;\n return ts.compareProperties(declaration1, declaration2, \"pos\", ts.compareValues)\n || ts.compareStringsCaseSensitive(type1.symbol ? type1.symbol.getName() : \"\", type2.symbol ? type2.symbol.getName() : \"\")\n || ts.compareValues(type1.id, type2.id);\n }\n function getCalledExpression(scope, range, functionNameText) {\n var functionReference = ts.factory.createIdentifier(functionNameText);\n if (ts.isClassLike(scope)) {\n var lhs = range.facts & RangeFacts.InStaticRegion ? ts.factory.createIdentifier(scope.name.text) : ts.factory.createThis(); // TODO: GH#18217\n return ts.factory.createPropertyAccessExpression(lhs, functionReference);\n }\n else {\n return functionReference;\n }\n }\n function transformFunctionBody(body, exposedVariableDeclarations, writes, substitutions, hasReturn) {\n var hasWritesOrVariableDeclarations = writes !== undefined || exposedVariableDeclarations.length > 0;\n if (ts.isBlock(body) && !hasWritesOrVariableDeclarations && substitutions.size === 0) {\n // already block, no declarations or writes to propagate back, no substitutions - can use node as is\n return { body: ts.factory.createBlock(body.statements, /*multLine*/ true), returnValueProperty: undefined };\n }\n var returnValueProperty;\n var ignoreReturns = false;\n var statements = ts.factory.createNodeArray(ts.isBlock(body) ? body.statements.slice(0) : [ts.isStatement(body) ? body : ts.factory.createReturnStatement(body)]);\n // rewrite body if either there are writes that should be propagated back via return statements or there are substitutions\n if (hasWritesOrVariableDeclarations || substitutions.size) {\n var rewrittenStatements = ts.visitNodes(statements, visitor).slice();\n if (hasWritesOrVariableDeclarations && !hasReturn && ts.isStatement(body)) {\n // add return at the end to propagate writes back in case if control flow falls out of the function body\n // it is ok to know that range has at least one return since it we only allow unconditional returns\n var assignments = getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes);\n if (assignments.length === 1) {\n rewrittenStatements.push(ts.factory.createReturnStatement(assignments[0].name));\n }\n else {\n rewrittenStatements.push(ts.factory.createReturnStatement(ts.factory.createObjectLiteralExpression(assignments)));\n }\n }\n return { body: ts.factory.createBlock(rewrittenStatements, /*multiLine*/ true), returnValueProperty: returnValueProperty };\n }\n else {\n return { body: ts.factory.createBlock(statements, /*multiLine*/ true), returnValueProperty: undefined };\n }\n function visitor(node) {\n if (!ignoreReturns && ts.isReturnStatement(node) && hasWritesOrVariableDeclarations) {\n var assignments = getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes);\n if (node.expression) {\n if (!returnValueProperty) {\n returnValueProperty = \"__return\";\n }\n assignments.unshift(ts.factory.createPropertyAssignment(returnValueProperty, ts.visitNode(node.expression, visitor)));\n }\n if (assignments.length === 1) {\n return ts.factory.createReturnStatement(assignments[0].name);\n }\n else {\n return ts.factory.createReturnStatement(ts.factory.createObjectLiteralExpression(assignments));\n }\n }\n else {\n var oldIgnoreReturns = ignoreReturns;\n ignoreReturns = ignoreReturns || ts.isFunctionLikeDeclaration(node) || ts.isClassLike(node);\n var substitution = substitutions.get(ts.getNodeId(node).toString());\n var result = substitution ? ts.getSynthesizedDeepClone(substitution) : ts.visitEachChild(node, visitor, ts.nullTransformationContext);\n ignoreReturns = oldIgnoreReturns;\n return result;\n }\n }\n }\n function transformConstantInitializer(initializer, substitutions) {\n return substitutions.size\n ? visitor(initializer)\n : initializer;\n function visitor(node) {\n var substitution = substitutions.get(ts.getNodeId(node).toString());\n return substitution ? ts.getSynthesizedDeepClone(substitution) : ts.visitEachChild(node, visitor, ts.nullTransformationContext);\n }\n }\n function getStatementsOrClassElements(scope) {\n if (ts.isFunctionLikeDeclaration(scope)) {\n var body = scope.body; // TODO: GH#18217\n if (ts.isBlock(body)) {\n return body.statements;\n }\n }\n else if (ts.isModuleBlock(scope) || ts.isSourceFile(scope)) {\n return scope.statements;\n }\n else if (ts.isClassLike(scope)) {\n return scope.members;\n }\n else {\n ts.assertType(scope);\n }\n return ts.emptyArray;\n }\n /**\n * If `scope` contains a function after `minPos`, then return the first such function.\n * Otherwise, return `undefined`.\n */\n function getNodeToInsertFunctionBefore(minPos, scope) {\n return ts.find(getStatementsOrClassElements(scope), function (child) {\n return child.pos >= minPos && ts.isFunctionLikeDeclaration(child) && !ts.isConstructorDeclaration(child);\n });\n }\n function getNodeToInsertPropertyBefore(maxPos, scope) {\n var members = scope.members;\n ts.Debug.assert(members.length > 0, \"Found no members\"); // There must be at least one child, since we extracted from one.\n var prevMember;\n var allProperties = true;\n for (var _i = 0, members_1 = members; _i < members_1.length; _i++) {\n var member = members_1[_i];\n if (member.pos > maxPos) {\n return prevMember || members[0];\n }\n if (allProperties && !ts.isPropertyDeclaration(member)) {\n // If it is non-vacuously true that all preceding members are properties,\n // insert before the current member (i.e. at the end of the list of properties).\n if (prevMember !== undefined) {\n return member;\n }\n allProperties = false;\n }\n prevMember = member;\n }\n if (prevMember === undefined)\n return ts.Debug.fail(); // If the loop didn't return, then it did set prevMember.\n return prevMember;\n }\n function getNodeToInsertConstantBefore(node, scope) {\n ts.Debug.assert(!ts.isClassLike(scope));\n var prevScope;\n for (var curr = node; curr !== scope; curr = curr.parent) {\n if (isScope(curr)) {\n prevScope = curr;\n }\n }\n for (var curr = (prevScope || node).parent;; curr = curr.parent) {\n if (isBlockLike(curr)) {\n var prevStatement = void 0;\n for (var _i = 0, _a = curr.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n if (statement.pos > node.pos) {\n break;\n }\n prevStatement = statement;\n }\n if (!prevStatement && ts.isCaseClause(curr)) {\n // We must have been in the expression of the case clause.\n ts.Debug.assert(ts.isSwitchStatement(curr.parent.parent), \"Grandparent isn't a switch statement\");\n return curr.parent.parent;\n }\n // There must be at least one statement since we started in one.\n return ts.Debug.checkDefined(prevStatement, \"prevStatement failed to get set\");\n }\n ts.Debug.assert(curr !== scope, \"Didn't encounter a block-like before encountering scope\");\n }\n }\n function getPropertyAssignmentsForWritesAndVariableDeclarations(exposedVariableDeclarations, writes) {\n var variableAssignments = ts.map(exposedVariableDeclarations, function (v) { return ts.factory.createShorthandPropertyAssignment(v.symbol.name); });\n var writeAssignments = ts.map(writes, function (w) { return ts.factory.createShorthandPropertyAssignment(w.symbol.name); });\n // TODO: GH#18217 `variableAssignments` not possibly undefined!\n return variableAssignments === undefined\n ? writeAssignments\n : writeAssignments === undefined\n ? variableAssignments\n : variableAssignments.concat(writeAssignments);\n }\n function isReadonlyArray(v) {\n return ts.isArray(v);\n }\n /**\n * Produces a range that spans the entirety of nodes, given a selection\n * that might start/end in the middle of nodes.\n *\n * For example, when the user makes a selection like this\n * v---v\n * var someThing = foo + bar;\n * this returns ^-------^\n */\n function getEnclosingTextRange(targetRange, sourceFile) {\n return isReadonlyArray(targetRange.range)\n ? { pos: ts.first(targetRange.range).getStart(sourceFile), end: ts.last(targetRange.range).getEnd() }\n : targetRange.range;\n }\n var Usage;\n (function (Usage) {\n // value should be passed to extracted method\n Usage[Usage[\"Read\"] = 1] = \"Read\";\n // value should be passed to extracted method and propagated back\n Usage[Usage[\"Write\"] = 2] = \"Write\";\n })(Usage || (Usage = {}));\n function collectReadsAndWrites(targetRange, scopes, enclosingTextRange, sourceFile, checker, cancellationToken) {\n var allTypeParameterUsages = new ts.Map(); // Key is type ID\n var usagesPerScope = [];\n var substitutionsPerScope = [];\n var functionErrorsPerScope = [];\n var constantErrorsPerScope = [];\n var visibleDeclarationsInExtractedRange = [];\n var exposedVariableSymbolSet = new ts.Map(); // Key is symbol ID\n var exposedVariableDeclarations = [];\n var firstExposedNonVariableDeclaration;\n var expression = !isReadonlyArray(targetRange.range)\n ? targetRange.range\n : targetRange.range.length === 1 && ts.isExpressionStatement(targetRange.range[0])\n ? targetRange.range[0].expression\n : undefined;\n var expressionDiagnostic;\n if (expression === undefined) {\n var statements = targetRange.range;\n var start = ts.first(statements).getStart();\n var end = ts.last(statements).end;\n expressionDiagnostic = ts.createFileDiagnostic(sourceFile, start, end - start, Messages.expressionExpected);\n }\n else if (checker.getTypeAtLocation(expression).flags & (16384 /* Void */ | 131072 /* Never */)) {\n expressionDiagnostic = ts.createDiagnosticForNode(expression, Messages.uselessConstantType);\n }\n // initialize results\n for (var _i = 0, scopes_1 = scopes; _i < scopes_1.length; _i++) {\n var scope = scopes_1[_i];\n usagesPerScope.push({ usages: new ts.Map(), typeParameterUsages: new ts.Map(), substitutions: new ts.Map() });\n substitutionsPerScope.push(new ts.Map());\n functionErrorsPerScope.push([]);\n var constantErrors = [];\n if (expressionDiagnostic) {\n constantErrors.push(expressionDiagnostic);\n }\n if (ts.isClassLike(scope) && ts.isInJSFile(scope)) {\n constantErrors.push(ts.createDiagnosticForNode(scope, Messages.cannotExtractToJSClass));\n }\n if (ts.isArrowFunction(scope) && !ts.isBlock(scope.body)) {\n // TODO (https://github.com/Microsoft/TypeScript/issues/18924): allow this\n constantErrors.push(ts.createDiagnosticForNode(scope, Messages.cannotExtractToExpressionArrowFunction));\n }\n constantErrorsPerScope.push(constantErrors);\n }\n var seenUsages = new ts.Map();\n var target = isReadonlyArray(targetRange.range) ? ts.factory.createBlock(targetRange.range) : targetRange.range;\n var unmodifiedNode = isReadonlyArray(targetRange.range) ? ts.first(targetRange.range) : targetRange.range;\n var inGenericContext = isInGenericContext(unmodifiedNode);\n collectUsages(target);\n // Unfortunately, this code takes advantage of the knowledge that the generated method\n // will use the contextual type of an expression as the return type of the extracted\n // method (and will therefore \"use\" all the types involved).\n if (inGenericContext && !isReadonlyArray(targetRange.range)) {\n var contextualType = checker.getContextualType(targetRange.range); // TODO: GH#18217\n recordTypeParameterUsages(contextualType);\n }\n if (allTypeParameterUsages.size > 0) {\n var seenTypeParameterUsages = new ts.Map(); // Key is type ID\n var i_2 = 0;\n for (var curr = unmodifiedNode; curr !== undefined && i_2 < scopes.length; curr = curr.parent) {\n if (curr === scopes[i_2]) {\n // Copy current contents of seenTypeParameterUsages into scope.\n seenTypeParameterUsages.forEach(function (typeParameter, id) {\n usagesPerScope[i_2].typeParameterUsages.set(id, typeParameter);\n });\n i_2++;\n }\n // Note that we add the current node's type parameters *after* updating the corresponding scope.\n if (ts.isDeclarationWithTypeParameters(curr)) {\n for (var _a = 0, _b = ts.getEffectiveTypeParameterDeclarations(curr); _a < _b.length; _a++) {\n var typeParameterDecl = _b[_a];\n var typeParameter = checker.getTypeAtLocation(typeParameterDecl);\n if (allTypeParameterUsages.has(typeParameter.id.toString())) {\n seenTypeParameterUsages.set(typeParameter.id.toString(), typeParameter);\n }\n }\n }\n }\n // If we didn't get through all the scopes, then there were some that weren't in our\n // parent chain (impossible at time of writing). A conservative solution would be to\n // copy allTypeParameterUsages into all remaining scopes.\n ts.Debug.assert(i_2 === scopes.length, \"Should have iterated all scopes\");\n }\n // If there are any declarations in the extracted block that are used in the same enclosing\n // lexical scope, we can't move the extraction \"up\" as those declarations will become unreachable\n if (visibleDeclarationsInExtractedRange.length) {\n var containingLexicalScopeOfExtraction = ts.isBlockScope(scopes[0], scopes[0].parent)\n ? scopes[0]\n : ts.getEnclosingBlockScopeContainer(scopes[0]);\n ts.forEachChild(containingLexicalScopeOfExtraction, checkForUsedDeclarations);\n }\n var _loop_17 = function (i) {\n var scopeUsages = usagesPerScope[i];\n // Special case: in the innermost scope, all usages are available.\n // (The computed value reflects the value at the top-level of the scope, but the\n // local will actually be declared at the same level as the extracted expression).\n if (i > 0 && (scopeUsages.usages.size > 0 || scopeUsages.typeParameterUsages.size > 0)) {\n var errorNode = isReadonlyArray(targetRange.range) ? targetRange.range[0] : targetRange.range;\n constantErrorsPerScope[i].push(ts.createDiagnosticForNode(errorNode, Messages.cannotAccessVariablesFromNestedScopes));\n }\n var hasWrite = false;\n var readonlyClassPropertyWrite;\n usagesPerScope[i].usages.forEach(function (value) {\n if (value.usage === 2 /* Write */) {\n hasWrite = true;\n if (value.symbol.flags & 106500 /* ClassMember */ &&\n value.symbol.valueDeclaration &&\n ts.hasEffectiveModifier(value.symbol.valueDeclaration, 64 /* Readonly */)) {\n readonlyClassPropertyWrite = value.symbol.valueDeclaration;\n }\n }\n });\n // If an expression was extracted, then there shouldn't have been any variable declarations.\n ts.Debug.assert(isReadonlyArray(targetRange.range) || exposedVariableDeclarations.length === 0, \"No variable declarations expected if something was extracted\");\n if (hasWrite && !isReadonlyArray(targetRange.range)) {\n var diag = ts.createDiagnosticForNode(targetRange.range, Messages.cannotWriteInExpression);\n functionErrorsPerScope[i].push(diag);\n constantErrorsPerScope[i].push(diag);\n }\n else if (readonlyClassPropertyWrite && i > 0) {\n var diag = ts.createDiagnosticForNode(readonlyClassPropertyWrite, Messages.cannotExtractReadonlyPropertyInitializerOutsideConstructor);\n functionErrorsPerScope[i].push(diag);\n constantErrorsPerScope[i].push(diag);\n }\n else if (firstExposedNonVariableDeclaration) {\n var diag = ts.createDiagnosticForNode(firstExposedNonVariableDeclaration, Messages.cannotExtractExportedEntity);\n functionErrorsPerScope[i].push(diag);\n constantErrorsPerScope[i].push(diag);\n }\n };\n for (var i = 0; i < scopes.length; i++) {\n _loop_17(i);\n }\n return { target: target, usagesPerScope: usagesPerScope, functionErrorsPerScope: functionErrorsPerScope, constantErrorsPerScope: constantErrorsPerScope, exposedVariableDeclarations: exposedVariableDeclarations };\n function isInGenericContext(node) {\n return !!ts.findAncestor(node, function (n) { return ts.isDeclarationWithTypeParameters(n) && ts.getEffectiveTypeParameterDeclarations(n).length !== 0; });\n }\n function recordTypeParameterUsages(type) {\n // PERF: This is potentially very expensive. `type` could be a library type with\n // a lot of properties, each of which the walker will visit. Unfortunately, the\n // solution isn't as trivial as filtering to user types because of (e.g.) Array.\n var symbolWalker = checker.getSymbolWalker(function () { return (cancellationToken.throwIfCancellationRequested(), true); });\n var visitedTypes = symbolWalker.walkType(type).visitedTypes;\n for (var _i = 0, visitedTypes_1 = visitedTypes; _i < visitedTypes_1.length; _i++) {\n var visitedType = visitedTypes_1[_i];\n if (visitedType.isTypeParameter()) {\n allTypeParameterUsages.set(visitedType.id.toString(), visitedType);\n }\n }\n }\n function collectUsages(node, valueUsage) {\n if (valueUsage === void 0) { valueUsage = 1 /* Read */; }\n if (inGenericContext) {\n var type = checker.getTypeAtLocation(node);\n recordTypeParameterUsages(type);\n }\n if (ts.isDeclaration(node) && node.symbol) {\n visibleDeclarationsInExtractedRange.push(node);\n }\n if (ts.isAssignmentExpression(node)) {\n // use 'write' as default usage for values\n collectUsages(node.left, 2 /* Write */);\n collectUsages(node.right);\n }\n else if (ts.isUnaryExpressionWithWrite(node)) {\n collectUsages(node.operand, 2 /* Write */);\n }\n else if (ts.isPropertyAccessExpression(node) || ts.isElementAccessExpression(node)) {\n // use 'write' as default usage for values\n ts.forEachChild(node, collectUsages);\n }\n else if (ts.isIdentifier(node)) {\n if (!node.parent) {\n return;\n }\n if (ts.isQualifiedName(node.parent) && node !== node.parent.left) {\n return;\n }\n if (ts.isPropertyAccessExpression(node.parent) && node !== node.parent.expression) {\n return;\n }\n recordUsage(node, valueUsage, /*isTypeNode*/ ts.isPartOfTypeNode(node));\n }\n else {\n ts.forEachChild(node, collectUsages);\n }\n }\n function recordUsage(n, usage, isTypeNode) {\n var symbolId = recordUsagebySymbol(n, usage, isTypeNode);\n if (symbolId) {\n for (var i = 0; i < scopes.length; i++) {\n // push substitution from map to map to simplify rewriting\n var substitution = substitutionsPerScope[i].get(symbolId);\n if (substitution) {\n usagesPerScope[i].substitutions.set(ts.getNodeId(n).toString(), substitution);\n }\n }\n }\n }\n function recordUsagebySymbol(identifier, usage, isTypeName) {\n var symbol = getSymbolReferencedByIdentifier(identifier);\n if (!symbol) {\n // cannot find symbol - do nothing\n return undefined;\n }\n var symbolId = ts.getSymbolId(symbol).toString();\n var lastUsage = seenUsages.get(symbolId);\n // there are two kinds of value usages\n // - reads - if range contains a read from the value located outside of the range then value should be passed as a parameter\n // - writes - if range contains a write to a value located outside the range the value should be passed as a parameter and\n // returned as a return value\n // 'write' case is a superset of 'read' so if we already have processed 'write' of some symbol there is not need to handle 'read'\n // since all information is already recorded\n if (lastUsage && lastUsage >= usage) {\n return symbolId;\n }\n seenUsages.set(symbolId, usage);\n if (lastUsage) {\n // if we get here this means that we are trying to handle 'write' and 'read' was already processed\n // walk scopes and update existing records.\n for (var _i = 0, usagesPerScope_1 = usagesPerScope; _i < usagesPerScope_1.length; _i++) {\n var perScope = usagesPerScope_1[_i];\n var prevEntry = perScope.usages.get(identifier.text);\n if (prevEntry) {\n perScope.usages.set(identifier.text, { usage: usage, symbol: symbol, node: identifier });\n }\n }\n return symbolId;\n }\n // find first declaration in this file\n var decls = symbol.getDeclarations();\n var declInFile = decls && ts.find(decls, function (d) { return d.getSourceFile() === sourceFile; });\n if (!declInFile) {\n return undefined;\n }\n if (ts.rangeContainsStartEnd(enclosingTextRange, declInFile.getStart(), declInFile.end)) {\n // declaration is located in range to be extracted - do nothing\n return undefined;\n }\n if (targetRange.facts & RangeFacts.IsGenerator && usage === 2 /* Write */) {\n // this is write to a reference located outside of the target scope and range is extracted into generator\n // currently this is unsupported scenario\n var diag = ts.createDiagnosticForNode(identifier, Messages.cannotExtractRangeThatContainsWritesToReferencesLocatedOutsideOfTheTargetRangeInGenerators);\n for (var _a = 0, functionErrorsPerScope_1 = functionErrorsPerScope; _a < functionErrorsPerScope_1.length; _a++) {\n var errors = functionErrorsPerScope_1[_a];\n errors.push(diag);\n }\n for (var _b = 0, constantErrorsPerScope_1 = constantErrorsPerScope; _b < constantErrorsPerScope_1.length; _b++) {\n var errors = constantErrorsPerScope_1[_b];\n errors.push(diag);\n }\n }\n for (var i = 0; i < scopes.length; i++) {\n var scope = scopes[i];\n var resolvedSymbol = checker.resolveName(symbol.name, scope, symbol.flags, /*excludeGlobals*/ false);\n if (resolvedSymbol === symbol) {\n continue;\n }\n if (!substitutionsPerScope[i].has(symbolId)) {\n var substitution = tryReplaceWithQualifiedNameOrPropertyAccess(symbol.exportSymbol || symbol, scope, isTypeName);\n if (substitution) {\n substitutionsPerScope[i].set(symbolId, substitution);\n }\n else if (isTypeName) {\n // If the symbol is a type parameter that won't be in scope, we'll pass it as a type argument\n // so there's no problem.\n if (!(symbol.flags & 262144 /* TypeParameter */)) {\n var diag = ts.createDiagnosticForNode(identifier, Messages.typeWillNotBeVisibleInTheNewScope);\n functionErrorsPerScope[i].push(diag);\n constantErrorsPerScope[i].push(diag);\n }\n }\n else {\n usagesPerScope[i].usages.set(identifier.text, { usage: usage, symbol: symbol, node: identifier });\n }\n }\n }\n return symbolId;\n }\n function checkForUsedDeclarations(node) {\n // If this node is entirely within the original extraction range, we don't need to do anything.\n if (node === targetRange.range || (isReadonlyArray(targetRange.range) && targetRange.range.indexOf(node) >= 0)) {\n return;\n }\n // Otherwise check and recurse.\n var sym = ts.isIdentifier(node)\n ? getSymbolReferencedByIdentifier(node)\n : checker.getSymbolAtLocation(node);\n if (sym) {\n var decl = ts.find(visibleDeclarationsInExtractedRange, function (d) { return d.symbol === sym; });\n if (decl) {\n if (ts.isVariableDeclaration(decl)) {\n var idString = decl.symbol.id.toString();\n if (!exposedVariableSymbolSet.has(idString)) {\n exposedVariableDeclarations.push(decl);\n exposedVariableSymbolSet.set(idString, true);\n }\n }\n else {\n // CONSIDER: this includes binding elements, which we could\n // expose in the same way as variables.\n firstExposedNonVariableDeclaration = firstExposedNonVariableDeclaration || decl;\n }\n }\n }\n ts.forEachChild(node, checkForUsedDeclarations);\n }\n /**\n * Return the symbol referenced by an identifier (even if it declares a different symbol).\n */\n function getSymbolReferencedByIdentifier(identifier) {\n // If the identifier is both a property name and its value, we're only interested in its value\n // (since the name is a declaration and will be included in the extracted range).\n return identifier.parent && ts.isShorthandPropertyAssignment(identifier.parent) && identifier.parent.name === identifier\n ? checker.getShorthandAssignmentValueSymbol(identifier.parent)\n : checker.getSymbolAtLocation(identifier);\n }\n function tryReplaceWithQualifiedNameOrPropertyAccess(symbol, scopeDecl, isTypeNode) {\n if (!symbol) {\n return undefined;\n }\n var decls = symbol.getDeclarations();\n if (decls && decls.some(function (d) { return d.parent === scopeDecl; })) {\n return ts.factory.createIdentifier(symbol.name);\n }\n var prefix = tryReplaceWithQualifiedNameOrPropertyAccess(symbol.parent, scopeDecl, isTypeNode);\n if (prefix === undefined) {\n return undefined;\n }\n return isTypeNode\n ? ts.factory.createQualifiedName(prefix, ts.factory.createIdentifier(symbol.name))\n : ts.factory.createPropertyAccessExpression(prefix, symbol.name);\n }\n }\n function getExtractableParent(node) {\n return ts.findAncestor(node, function (node) { return node.parent && isExtractableExpression(node) && !ts.isBinaryExpression(node.parent); });\n }\n /**\n * Computes whether or not a node represents an expression in a position where it could\n * be extracted.\n * The isExpression() in utilities.ts returns some false positives we need to handle,\n * such as `import x from 'y'` -- the 'y' is a StringLiteral but is *not* an expression\n * in the sense of something that you could extract on\n */\n function isExtractableExpression(node) {\n var parent = node.parent;\n switch (parent.kind) {\n case 294 /* EnumMember */:\n return false;\n }\n switch (node.kind) {\n case 10 /* StringLiteral */:\n return parent.kind !== 264 /* ImportDeclaration */ &&\n parent.kind !== 268 /* ImportSpecifier */;\n case 223 /* SpreadElement */:\n case 199 /* ObjectBindingPattern */:\n case 201 /* BindingElement */:\n return false;\n case 79 /* Identifier */:\n return parent.kind !== 201 /* BindingElement */ &&\n parent.kind !== 268 /* ImportSpecifier */ &&\n parent.kind !== 273 /* ExportSpecifier */;\n }\n return true;\n }\n function isBlockLike(node) {\n switch (node.kind) {\n case 233 /* Block */:\n case 300 /* SourceFile */:\n case 260 /* ModuleBlock */:\n case 287 /* CaseClause */:\n return true;\n default:\n return false;\n }\n }\n function isInJSXContent(node) {\n return (ts.isJsxElement(node) || ts.isJsxSelfClosingElement(node) || ts.isJsxFragment(node)) && (ts.isJsxElement(node.parent) || ts.isJsxFragment(node.parent));\n }\n })(extractSymbol = refactor.extractSymbol || (refactor.extractSymbol = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var refactorName = \"Extract type\";\n var extractToTypeAliasAction = {\n name: \"Extract to type alias\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_type_alias),\n kind: \"refactor.extract.type\",\n };\n var extractToInterfaceAction = {\n name: \"Extract to interface\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_interface),\n kind: \"refactor.extract.interface\",\n };\n var extractToTypeDefAction = {\n name: \"Extract to typedef\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_to_typedef),\n kind: \"refactor.extract.typedef\"\n };\n refactor.registerRefactor(refactorName, {\n kinds: [\n extractToTypeAliasAction.kind,\n extractToInterfaceAction.kind,\n extractToTypeDefAction.kind\n ],\n getAvailableActions: function (context) {\n var info = getRangeToExtract(context, context.triggerReason === \"invoked\");\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n return [{\n name: refactorName,\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_type),\n actions: info.isJS ?\n [extractToTypeDefAction] : ts.append([extractToTypeAliasAction], info.typeElements && extractToInterfaceAction)\n }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [{\n name: refactorName,\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Extract_type),\n actions: [\n __assign(__assign({}, extractToTypeDefAction), { notApplicableReason: info.error }),\n __assign(__assign({}, extractToTypeAliasAction), { notApplicableReason: info.error }),\n __assign(__assign({}, extractToInterfaceAction), { notApplicableReason: info.error }),\n ]\n }];\n }\n return ts.emptyArray;\n },\n getEditsForAction: function (context, actionName) {\n var file = context.file;\n var info = getRangeToExtract(context);\n ts.Debug.assert(info && !refactor.isRefactorErrorInfo(info), \"Expected to find a range to extract\");\n var name = ts.getUniqueName(\"NewType\", file);\n var edits = ts.textChanges.ChangeTracker.with(context, function (changes) {\n switch (actionName) {\n case extractToTypeAliasAction.name:\n ts.Debug.assert(!info.isJS, \"Invalid actionName/JS combo\");\n return doTypeAliasChange(changes, file, name, info);\n case extractToTypeDefAction.name:\n ts.Debug.assert(info.isJS, \"Invalid actionName/JS combo\");\n return doTypedefChange(changes, file, name, info);\n case extractToInterfaceAction.name:\n ts.Debug.assert(!info.isJS && !!info.typeElements, \"Invalid actionName/JS combo\");\n return doInterfaceChange(changes, file, name, info);\n default:\n ts.Debug.fail(\"Unexpected action name\");\n }\n });\n var renameFilename = file.fileName;\n var renameLocation = ts.getRenameLocation(edits, renameFilename, name, /*preferLastLocation*/ false);\n return { edits: edits, renameFilename: renameFilename, renameLocation: renameLocation };\n }\n });\n function getRangeToExtract(context, considerEmptySpans) {\n if (considerEmptySpans === void 0) { considerEmptySpans = true; }\n var file = context.file, startPosition = context.startPosition;\n var isJS = ts.isSourceFileJS(file);\n var current = ts.getTokenAtPosition(file, startPosition);\n var range = ts.createTextRangeFromSpan(ts.getRefactorContextSpan(context));\n var cursorRequest = range.pos === range.end && considerEmptySpans;\n var selection = ts.findAncestor(current, (function (node) { return node.parent && ts.isTypeNode(node) && !rangeContainsSkipTrivia(range, node.parent, file) &&\n (cursorRequest || ts.nodeOverlapsWithStartEnd(current, file, range.pos, range.end)); }));\n if (!selection || !ts.isTypeNode(selection))\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Selection_is_not_a_valid_type_node) };\n var checker = context.program.getTypeChecker();\n var firstStatement = ts.Debug.checkDefined(ts.findAncestor(selection, ts.isStatement), \"Should find a statement\");\n var typeParameters = collectTypeParameters(checker, selection, firstStatement, file);\n if (!typeParameters)\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.No_type_could_be_extracted_from_this_type_node) };\n var typeElements = flattenTypeLiteralNodeReference(checker, selection);\n return { isJS: isJS, selection: selection, firstStatement: firstStatement, typeParameters: typeParameters, typeElements: typeElements };\n }\n function flattenTypeLiteralNodeReference(checker, node) {\n if (!node)\n return undefined;\n if (ts.isIntersectionTypeNode(node)) {\n var result = [];\n var seen_1 = new ts.Map();\n for (var _i = 0, _a = node.types; _i < _a.length; _i++) {\n var type = _a[_i];\n var flattenedTypeMembers = flattenTypeLiteralNodeReference(checker, type);\n if (!flattenedTypeMembers || !flattenedTypeMembers.every(function (type) { return type.name && ts.addToSeen(seen_1, ts.getNameFromPropertyName(type.name)); })) {\n return undefined;\n }\n ts.addRange(result, flattenedTypeMembers);\n }\n return result;\n }\n else if (ts.isParenthesizedTypeNode(node)) {\n return flattenTypeLiteralNodeReference(checker, node.type);\n }\n else if (ts.isTypeLiteralNode(node)) {\n return node.members;\n }\n return undefined;\n }\n function rangeContainsSkipTrivia(r1, node, file) {\n return ts.rangeContainsStartEnd(r1, ts.skipTrivia(file.text, node.pos), node.end);\n }\n function collectTypeParameters(checker, selection, statement, file) {\n var result = [];\n return visitor(selection) ? undefined : result;\n function visitor(node) {\n if (ts.isTypeReferenceNode(node)) {\n if (ts.isIdentifier(node.typeName)) {\n var symbol = checker.resolveName(node.typeName.text, node.typeName, 262144 /* TypeParameter */, /* excludeGlobals */ true);\n if (symbol === null || symbol === void 0 ? void 0 : symbol.declarations) {\n var declaration = ts.cast(ts.first(symbol.declarations), ts.isTypeParameterDeclaration);\n if (rangeContainsSkipTrivia(statement, declaration, file) && !rangeContainsSkipTrivia(selection, declaration, file)) {\n ts.pushIfUnique(result, declaration);\n }\n }\n }\n }\n else if (ts.isInferTypeNode(node)) {\n var conditionalTypeNode = ts.findAncestor(node, function (n) { return ts.isConditionalTypeNode(n) && rangeContainsSkipTrivia(n.extendsType, node, file); });\n if (!conditionalTypeNode || !rangeContainsSkipTrivia(selection, conditionalTypeNode, file)) {\n return true;\n }\n }\n else if ((ts.isTypePredicateNode(node) || ts.isThisTypeNode(node))) {\n var functionLikeNode = ts.findAncestor(node.parent, ts.isFunctionLike);\n if (functionLikeNode && functionLikeNode.type && rangeContainsSkipTrivia(functionLikeNode.type, node, file) && !rangeContainsSkipTrivia(selection, functionLikeNode, file)) {\n return true;\n }\n }\n else if (ts.isTypeQueryNode(node)) {\n if (ts.isIdentifier(node.exprName)) {\n var symbol = checker.resolveName(node.exprName.text, node.exprName, 111551 /* Value */, /* excludeGlobals */ false);\n if ((symbol === null || symbol === void 0 ? void 0 : symbol.valueDeclaration) && rangeContainsSkipTrivia(statement, symbol.valueDeclaration, file) && !rangeContainsSkipTrivia(selection, symbol.valueDeclaration, file)) {\n return true;\n }\n }\n else {\n if (ts.isThisIdentifier(node.exprName.left) && !rangeContainsSkipTrivia(selection, node.parent, file)) {\n return true;\n }\n }\n }\n if (file && ts.isTupleTypeNode(node) && (ts.getLineAndCharacterOfPosition(file, node.pos).line === ts.getLineAndCharacterOfPosition(file, node.end).line)) {\n ts.setEmitFlags(node, 1 /* SingleLine */);\n }\n return ts.forEachChild(node, visitor);\n }\n }\n function doTypeAliasChange(changes, file, name, info) {\n var firstStatement = info.firstStatement, selection = info.selection, typeParameters = info.typeParameters;\n var newTypeNode = ts.factory.createTypeAliasDeclaration(\n /* decorators */ undefined, \n /* modifiers */ undefined, name, typeParameters.map(function (id) { return ts.factory.updateTypeParameterDeclaration(id, id.name, id.constraint, /* defaultType */ undefined); }), selection);\n changes.insertNodeBefore(file, firstStatement, ts.ignoreSourceNewlines(newTypeNode), /* blankLineBetween */ true);\n changes.replaceNode(file, selection, ts.factory.createTypeReferenceNode(name, typeParameters.map(function (id) { return ts.factory.createTypeReferenceNode(id.name, /* typeArguments */ undefined); })), { leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude, trailingTriviaOption: ts.textChanges.TrailingTriviaOption.ExcludeWhitespace });\n }\n function doInterfaceChange(changes, file, name, info) {\n var _a;\n var firstStatement = info.firstStatement, selection = info.selection, typeParameters = info.typeParameters, typeElements = info.typeElements;\n var newTypeNode = ts.factory.createInterfaceDeclaration(\n /* decorators */ undefined, \n /* modifiers */ undefined, name, typeParameters, \n /* heritageClauses */ undefined, typeElements);\n ts.setTextRange(newTypeNode, (_a = typeElements[0]) === null || _a === void 0 ? void 0 : _a.parent);\n changes.insertNodeBefore(file, firstStatement, ts.ignoreSourceNewlines(newTypeNode), /* blankLineBetween */ true);\n changes.replaceNode(file, selection, ts.factory.createTypeReferenceNode(name, typeParameters.map(function (id) { return ts.factory.createTypeReferenceNode(id.name, /* typeArguments */ undefined); })), { leadingTriviaOption: ts.textChanges.LeadingTriviaOption.Exclude, trailingTriviaOption: ts.textChanges.TrailingTriviaOption.ExcludeWhitespace });\n }\n function doTypedefChange(changes, file, name, info) {\n var firstStatement = info.firstStatement, selection = info.selection, typeParameters = info.typeParameters;\n var node = ts.factory.createJSDocTypedefTag(ts.factory.createIdentifier(\"typedef\"), ts.factory.createJSDocTypeExpression(selection), ts.factory.createIdentifier(name));\n var templates = [];\n ts.forEach(typeParameters, function (typeParameter) {\n var constraint = ts.getEffectiveConstraintOfTypeParameter(typeParameter);\n var parameter = ts.factory.createTypeParameterDeclaration(typeParameter.name);\n var template = ts.factory.createJSDocTemplateTag(ts.factory.createIdentifier(\"template\"), constraint && ts.cast(constraint, ts.isJSDocTypeExpression), [parameter]);\n templates.push(template);\n });\n changes.insertNodeBefore(file, firstStatement, ts.factory.createJSDocComment(/* comment */ undefined, ts.factory.createNodeArray(ts.concatenate(templates, [node]))), /* blankLineBetween */ true);\n changes.replaceNode(file, selection, ts.factory.createTypeReferenceNode(name, typeParameters.map(function (id) { return ts.factory.createTypeReferenceNode(id.name, /* typeArguments */ undefined); })));\n }\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var generateGetAccessorAndSetAccessor;\n (function (generateGetAccessorAndSetAccessor) {\n var actionName = \"Generate 'get' and 'set' accessors\";\n var actionDescription = ts.Diagnostics.Generate_get_and_set_accessors.message;\n var generateGetSetAction = {\n name: actionName,\n description: actionDescription,\n kind: \"refactor.rewrite.property.generateAccessors\",\n };\n refactor.registerRefactor(actionName, {\n kinds: [generateGetSetAction.kind],\n getEditsForAction: function (context, actionName) {\n if (!context.endPosition)\n return undefined;\n var info = ts.codefix.getAccessorConvertiblePropertyAtPosition(context.file, context.program, context.startPosition, context.endPosition);\n ts.Debug.assert(info && !refactor.isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n var edits = ts.codefix.generateAccessorFromProperty(context.file, context.program, context.startPosition, context.endPosition, context, actionName);\n if (!edits)\n return undefined;\n var renameFilename = context.file.fileName;\n var nameNeedRename = info.renameAccessor ? info.accessorName : info.fieldName;\n var renameLocationOffset = ts.isIdentifier(nameNeedRename) ? 0 : -1;\n var renameLocation = renameLocationOffset + ts.getRenameLocation(edits, renameFilename, nameNeedRename.text, /*preferLastLocation*/ ts.isParameter(info.declaration));\n return { renameFilename: renameFilename, renameLocation: renameLocation, edits: edits };\n },\n getAvailableActions: function (context) {\n if (!context.endPosition)\n return ts.emptyArray;\n var info = ts.codefix.getAccessorConvertiblePropertyAtPosition(context.file, context.program, context.startPosition, context.endPosition, context.triggerReason === \"invoked\");\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n return [{\n name: actionName,\n description: actionDescription,\n actions: [generateGetSetAction],\n }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [{\n name: actionName,\n description: actionDescription,\n actions: [__assign(__assign({}, generateGetSetAction), { notApplicableReason: info.error })],\n }];\n }\n return ts.emptyArray;\n }\n });\n })(generateGetAccessorAndSetAccessor = refactor.generateGetAccessorAndSetAccessor || (refactor.generateGetAccessorAndSetAccessor = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n ;\n /**\n * Checks if some refactor info has refactor error info.\n */\n function isRefactorErrorInfo(info) {\n return info.error !== undefined;\n }\n refactor.isRefactorErrorInfo = isRefactorErrorInfo;\n /**\n * Checks if string \"known\" begins with string \"requested\".\n * Used to match requested kinds with a known kind.\n */\n function refactorKindBeginsWith(known, requested) {\n if (!requested)\n return true;\n return known.substr(0, requested.length) === requested;\n }\n refactor.refactorKindBeginsWith = refactorKindBeginsWith;\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var refactorName = \"Move to a new file\";\n var description = ts.getLocaleSpecificMessage(ts.Diagnostics.Move_to_a_new_file);\n var moveToNewFileAction = {\n name: refactorName,\n description: description,\n kind: \"refactor.move.newFile\",\n };\n refactor.registerRefactor(refactorName, {\n kinds: [moveToNewFileAction.kind],\n getAvailableActions: function (context) {\n var statements = getStatementsToMove(context);\n if (context.preferences.allowTextChangesInNewFiles && statements) {\n return [{ name: refactorName, description: description, actions: [moveToNewFileAction] }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [{ name: refactorName, description: description, actions: [__assign(__assign({}, moveToNewFileAction), { notApplicableReason: ts.getLocaleSpecificMessage(ts.Diagnostics.Selection_is_not_a_valid_statement_or_statements) })]\n }];\n }\n return ts.emptyArray;\n },\n getEditsForAction: function (context, actionName) {\n ts.Debug.assert(actionName === refactorName, \"Wrong refactor invoked\");\n var statements = ts.Debug.checkDefined(getStatementsToMove(context));\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(context.file, context.program, statements, t, context.host, context.preferences); });\n return { edits: edits, renameFilename: undefined, renameLocation: undefined };\n }\n });\n function getRangeToMove(context) {\n var file = context.file;\n var range = ts.createTextRangeFromSpan(ts.getRefactorContextSpan(context));\n var statements = file.statements;\n var startNodeIndex = ts.findIndex(statements, function (s) { return s.end > range.pos; });\n if (startNodeIndex === -1)\n return undefined;\n var startStatement = statements[startNodeIndex];\n if (ts.isNamedDeclaration(startStatement) && startStatement.name && ts.rangeContainsRange(startStatement.name, range)) {\n return { toMove: [statements[startNodeIndex]], afterLast: statements[startNodeIndex + 1] };\n }\n // Can't only partially include the start node or be partially into the next node\n if (range.pos > startStatement.getStart(file))\n return undefined;\n var afterEndNodeIndex = ts.findIndex(statements, function (s) { return s.end > range.end; }, startNodeIndex);\n // Can't be partially into the next node\n if (afterEndNodeIndex !== -1 && (afterEndNodeIndex === 0 || statements[afterEndNodeIndex].getStart(file) < range.end))\n return undefined;\n return {\n toMove: statements.slice(startNodeIndex, afterEndNodeIndex === -1 ? statements.length : afterEndNodeIndex),\n afterLast: afterEndNodeIndex === -1 ? undefined : statements[afterEndNodeIndex],\n };\n }\n function doChange(oldFile, program, toMove, changes, host, preferences) {\n var checker = program.getTypeChecker();\n var usage = getUsageInfo(oldFile, toMove.all, checker);\n var currentDirectory = ts.getDirectoryPath(oldFile.fileName);\n var extension = ts.extensionFromPath(oldFile.fileName);\n var newModuleName = makeUniqueModuleName(getNewModuleName(usage.movedSymbols), extension, currentDirectory, host);\n var newFileNameWithExtension = newModuleName + extension;\n // If previous file was global, this is easy.\n changes.createNewFile(oldFile, ts.combinePaths(currentDirectory, newFileNameWithExtension), getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, newModuleName, preferences));\n addNewFileToTsconfig(program, changes, oldFile.fileName, newFileNameWithExtension, ts.hostGetCanonicalFileName(host));\n }\n function getStatementsToMove(context) {\n var rangeToMove = getRangeToMove(context);\n if (rangeToMove === undefined)\n return undefined;\n var all = [];\n var ranges = [];\n var toMove = rangeToMove.toMove, afterLast = rangeToMove.afterLast;\n ts.getRangesWhere(toMove, isAllowedStatementToMove, function (start, afterEndIndex) {\n for (var i = start; i < afterEndIndex; i++)\n all.push(toMove[i]);\n ranges.push({ first: toMove[start], afterLast: afterLast });\n });\n return all.length === 0 ? undefined : { all: all, ranges: ranges };\n }\n function isAllowedStatementToMove(statement) {\n // Filters imports and prologue directives out of the range of statements to move.\n // Imports will be copied to the new file anyway, and may still be needed in the old file.\n // Prologue directives will be copied to the new file and should be left in the old file.\n return !isPureImport(statement) && !ts.isPrologueDirective(statement);\n ;\n }\n function isPureImport(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return true;\n case 263 /* ImportEqualsDeclaration */:\n return !ts.hasSyntacticModifier(node, 1 /* Export */);\n case 235 /* VariableStatement */:\n return node.declarationList.declarations.every(function (d) { return !!d.initializer && ts.isRequireCall(d.initializer, /*checkArgumentIsStringLiteralLike*/ true); });\n default:\n return false;\n }\n }\n function addNewFileToTsconfig(program, changes, oldFileName, newFileNameWithExtension, getCanonicalFileName) {\n var cfg = program.getCompilerOptions().configFile;\n if (!cfg)\n return;\n var newFileAbsolutePath = ts.normalizePath(ts.combinePaths(oldFileName, \"..\", newFileNameWithExtension));\n var newFilePath = ts.getRelativePathFromFile(cfg.fileName, newFileAbsolutePath, getCanonicalFileName);\n var cfgObject = cfg.statements[0] && ts.tryCast(cfg.statements[0].expression, ts.isObjectLiteralExpression);\n var filesProp = cfgObject && ts.find(cfgObject.properties, function (prop) {\n return ts.isPropertyAssignment(prop) && ts.isStringLiteral(prop.name) && prop.name.text === \"files\";\n });\n if (filesProp && ts.isArrayLiteralExpression(filesProp.initializer)) {\n changes.insertNodeInListAfter(cfg, ts.last(filesProp.initializer.elements), ts.factory.createStringLiteral(newFilePath), filesProp.initializer.elements);\n }\n }\n function getNewStatementsAndRemoveFromOldFile(oldFile, usage, changes, toMove, program, newModuleName, preferences) {\n var checker = program.getTypeChecker();\n var prologueDirectives = ts.takeWhile(oldFile.statements, ts.isPrologueDirective);\n if (!oldFile.externalModuleIndicator && !oldFile.commonJsModuleIndicator) {\n deleteMovedStatements(oldFile, toMove.ranges, changes);\n return __spreadArray(__spreadArray([], prologueDirectives, true), toMove.all, true);\n }\n var useEs6ModuleSyntax = !!oldFile.externalModuleIndicator;\n var quotePreference = ts.getQuotePreference(oldFile, preferences);\n var importsFromNewFile = createOldFileImportsFromNewFile(usage.oldFileImportsFromNewFile, newModuleName, useEs6ModuleSyntax, quotePreference);\n if (importsFromNewFile) {\n ts.insertImports(changes, oldFile, importsFromNewFile, /*blankLineBetween*/ true);\n }\n deleteUnusedOldImports(oldFile, toMove.all, changes, usage.unusedImportsFromOldFile, checker);\n deleteMovedStatements(oldFile, toMove.ranges, changes);\n updateImportsInOtherFiles(changes, program, oldFile, usage.movedSymbols, newModuleName);\n var imports = getNewFileImportsAndAddExportInOldFile(oldFile, usage.oldImportsNeededByNewFile, usage.newFileImportsFromOldFile, changes, checker, useEs6ModuleSyntax, quotePreference);\n var body = addExports(oldFile, toMove.all, usage.oldFileImportsFromNewFile, useEs6ModuleSyntax);\n if (imports.length && body.length) {\n return __spreadArray(__spreadArray(__spreadArray(__spreadArray([], prologueDirectives, true), imports, true), [\n 4 /* NewLineTrivia */\n ], false), body, true);\n }\n return __spreadArray(__spreadArray(__spreadArray([], prologueDirectives, true), imports, true), body, true);\n }\n function deleteMovedStatements(sourceFile, moved, changes) {\n for (var _i = 0, moved_1 = moved; _i < moved_1.length; _i++) {\n var _a = moved_1[_i], first_1 = _a.first, afterLast = _a.afterLast;\n changes.deleteNodeRangeExcludingEnd(sourceFile, first_1, afterLast);\n }\n }\n function deleteUnusedOldImports(oldFile, toMove, changes, toDelete, checker) {\n for (var _i = 0, _a = oldFile.statements; _i < _a.length; _i++) {\n var statement = _a[_i];\n if (ts.contains(toMove, statement))\n continue;\n forEachImportInStatement(statement, function (i) { return deleteUnusedImports(oldFile, i, changes, function (name) { return toDelete.has(checker.getSymbolAtLocation(name)); }); });\n }\n }\n function updateImportsInOtherFiles(changes, program, oldFile, movedSymbols, newModuleName) {\n var checker = program.getTypeChecker();\n var _loop_18 = function (sourceFile) {\n if (sourceFile === oldFile)\n return \"continue\";\n var _loop_19 = function (statement) {\n forEachImportInStatement(statement, function (importNode) {\n if (checker.getSymbolAtLocation(moduleSpecifierFromImport(importNode)) !== oldFile.symbol)\n return;\n var shouldMove = function (name) {\n var symbol = ts.isBindingElement(name.parent)\n ? ts.getPropertySymbolFromBindingElement(checker, name.parent)\n : ts.skipAlias(checker.getSymbolAtLocation(name), checker); // TODO: GH#18217\n return !!symbol && movedSymbols.has(symbol);\n };\n deleteUnusedImports(sourceFile, importNode, changes, shouldMove); // These will be changed to imports from the new file\n var newModuleSpecifier = ts.combinePaths(ts.getDirectoryPath(moduleSpecifierFromImport(importNode).text), newModuleName);\n var newImportDeclaration = filterImport(importNode, ts.factory.createStringLiteral(newModuleSpecifier), shouldMove);\n if (newImportDeclaration)\n changes.insertNodeAfter(sourceFile, statement, newImportDeclaration);\n var ns = getNamespaceLikeImport(importNode);\n if (ns)\n updateNamespaceLikeImport(changes, sourceFile, checker, movedSymbols, newModuleName, newModuleSpecifier, ns, importNode);\n });\n };\n for (var _b = 0, _c = sourceFile.statements; _b < _c.length; _b++) {\n var statement = _c[_b];\n _loop_19(statement);\n }\n };\n for (var _i = 0, _a = program.getSourceFiles(); _i < _a.length; _i++) {\n var sourceFile = _a[_i];\n _loop_18(sourceFile);\n }\n }\n function getNamespaceLikeImport(node) {\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return node.importClause && node.importClause.namedBindings && node.importClause.namedBindings.kind === 266 /* NamespaceImport */ ?\n node.importClause.namedBindings.name : undefined;\n case 263 /* ImportEqualsDeclaration */:\n return node.name;\n case 252 /* VariableDeclaration */:\n return ts.tryCast(node.name, ts.isIdentifier);\n default:\n return ts.Debug.assertNever(node, \"Unexpected node kind \" + node.kind);\n }\n }\n function updateNamespaceLikeImport(changes, sourceFile, checker, movedSymbols, newModuleName, newModuleSpecifier, oldImportId, oldImportNode) {\n var preferredNewNamespaceName = ts.codefix.moduleSpecifierToValidIdentifier(newModuleName, 99 /* ESNext */);\n var needUniqueName = false;\n var toChange = [];\n ts.FindAllReferences.Core.eachSymbolReferenceInFile(oldImportId, checker, sourceFile, function (ref) {\n if (!ts.isPropertyAccessExpression(ref.parent))\n return;\n needUniqueName = needUniqueName || !!checker.resolveName(preferredNewNamespaceName, ref, 67108863 /* All */, /*excludeGlobals*/ true);\n if (movedSymbols.has(checker.getSymbolAtLocation(ref.parent.name))) {\n toChange.push(ref);\n }\n });\n if (toChange.length) {\n var newNamespaceName = needUniqueName ? ts.getUniqueName(preferredNewNamespaceName, sourceFile) : preferredNewNamespaceName;\n for (var _i = 0, toChange_1 = toChange; _i < toChange_1.length; _i++) {\n var ref = toChange_1[_i];\n changes.replaceNode(sourceFile, ref, ts.factory.createIdentifier(newNamespaceName));\n }\n changes.insertNodeAfter(sourceFile, oldImportNode, updateNamespaceLikeImportNode(oldImportNode, newModuleName, newModuleSpecifier));\n }\n }\n function updateNamespaceLikeImportNode(node, newNamespaceName, newModuleSpecifier) {\n var newNamespaceId = ts.factory.createIdentifier(newNamespaceName);\n var newModuleString = ts.factory.createStringLiteral(newModuleSpecifier);\n switch (node.kind) {\n case 264 /* ImportDeclaration */:\n return ts.factory.createImportDeclaration(\n /*decorators*/ undefined, /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, /*name*/ undefined, ts.factory.createNamespaceImport(newNamespaceId)), newModuleString);\n case 263 /* ImportEqualsDeclaration */:\n return ts.factory.createImportEqualsDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, /*isTypeOnly*/ false, newNamespaceId, ts.factory.createExternalModuleReference(newModuleString));\n case 252 /* VariableDeclaration */:\n return ts.factory.createVariableDeclaration(newNamespaceId, /*exclamationToken*/ undefined, /*type*/ undefined, createRequireCall(newModuleString));\n default:\n return ts.Debug.assertNever(node, \"Unexpected node kind \" + node.kind);\n }\n }\n function moduleSpecifierFromImport(i) {\n return (i.kind === 264 /* ImportDeclaration */ ? i.moduleSpecifier\n : i.kind === 263 /* ImportEqualsDeclaration */ ? i.moduleReference.expression\n : i.initializer.arguments[0]);\n }\n function forEachImportInStatement(statement, cb) {\n if (ts.isImportDeclaration(statement)) {\n if (ts.isStringLiteral(statement.moduleSpecifier))\n cb(statement);\n }\n else if (ts.isImportEqualsDeclaration(statement)) {\n if (ts.isExternalModuleReference(statement.moduleReference) && ts.isStringLiteralLike(statement.moduleReference.expression)) {\n cb(statement);\n }\n }\n else if (ts.isVariableStatement(statement)) {\n for (var _i = 0, _a = statement.declarationList.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (decl.initializer && ts.isRequireCall(decl.initializer, /*checkArgumentIsStringLiteralLike*/ true)) {\n cb(decl);\n }\n }\n }\n }\n function createOldFileImportsFromNewFile(newFileNeedExport, newFileNameWithExtension, useEs6Imports, quotePreference) {\n var defaultImport;\n var imports = [];\n newFileNeedExport.forEach(function (symbol) {\n if (symbol.escapedName === \"default\" /* Default */) {\n defaultImport = ts.factory.createIdentifier(ts.symbolNameNoDefault(symbol)); // TODO: GH#18217\n }\n else {\n imports.push(symbol.name);\n }\n });\n return makeImportOrRequire(defaultImport, imports, newFileNameWithExtension, useEs6Imports, quotePreference);\n }\n function makeImportOrRequire(defaultImport, imports, path, useEs6Imports, quotePreference) {\n path = ts.ensurePathIsNonModuleName(path);\n if (useEs6Imports) {\n var specifiers = imports.map(function (i) { return ts.factory.createImportSpecifier(/*propertyName*/ undefined, ts.factory.createIdentifier(i)); });\n return ts.makeImportIfNecessary(defaultImport, specifiers, path, quotePreference);\n }\n else {\n ts.Debug.assert(!defaultImport, \"No default import should exist\"); // If there's a default export, it should have been an es6 module.\n var bindingElements = imports.map(function (i) { return ts.factory.createBindingElement(/*dotDotDotToken*/ undefined, /*propertyName*/ undefined, i); });\n return bindingElements.length\n ? makeVariableStatement(ts.factory.createObjectBindingPattern(bindingElements), /*type*/ undefined, createRequireCall(ts.factory.createStringLiteral(path)))\n : undefined;\n }\n }\n function makeVariableStatement(name, type, initializer, flags) {\n if (flags === void 0) { flags = 2 /* Const */; }\n return ts.factory.createVariableStatement(/*modifiers*/ undefined, ts.factory.createVariableDeclarationList([ts.factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, type, initializer)], flags));\n }\n function createRequireCall(moduleSpecifier) {\n return ts.factory.createCallExpression(ts.factory.createIdentifier(\"require\"), /*typeArguments*/ undefined, [moduleSpecifier]);\n }\n function addExports(sourceFile, toMove, needExport, useEs6Exports) {\n return ts.flatMap(toMove, function (statement) {\n if (isTopLevelDeclarationStatement(statement) &&\n !isExported(sourceFile, statement, useEs6Exports) &&\n forEachTopLevelDeclaration(statement, function (d) { return needExport.has(ts.Debug.checkDefined(d.symbol)); })) {\n var exports = addExport(statement, useEs6Exports);\n if (exports)\n return exports;\n }\n return statement;\n });\n }\n function deleteUnusedImports(sourceFile, importDecl, changes, isUnused) {\n switch (importDecl.kind) {\n case 264 /* ImportDeclaration */:\n deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused);\n break;\n case 263 /* ImportEqualsDeclaration */:\n if (isUnused(importDecl.name)) {\n changes.delete(sourceFile, importDecl);\n }\n break;\n case 252 /* VariableDeclaration */:\n deleteUnusedImportsInVariableDeclaration(sourceFile, importDecl, changes, isUnused);\n break;\n default:\n ts.Debug.assertNever(importDecl, \"Unexpected import decl kind \" + importDecl.kind);\n }\n }\n function deleteUnusedImportsInDeclaration(sourceFile, importDecl, changes, isUnused) {\n if (!importDecl.importClause)\n return;\n var _a = importDecl.importClause, name = _a.name, namedBindings = _a.namedBindings;\n var defaultUnused = !name || isUnused(name);\n var namedBindingsUnused = !namedBindings ||\n (namedBindings.kind === 266 /* NamespaceImport */ ? isUnused(namedBindings.name) : namedBindings.elements.length !== 0 && namedBindings.elements.every(function (e) { return isUnused(e.name); }));\n if (defaultUnused && namedBindingsUnused) {\n changes.delete(sourceFile, importDecl);\n }\n else {\n if (name && defaultUnused) {\n changes.delete(sourceFile, name);\n }\n if (namedBindings) {\n if (namedBindingsUnused) {\n changes.replaceNode(sourceFile, importDecl.importClause, ts.factory.updateImportClause(importDecl.importClause, importDecl.importClause.isTypeOnly, name, /*namedBindings*/ undefined));\n }\n else if (namedBindings.kind === 267 /* NamedImports */) {\n for (var _i = 0, _b = namedBindings.elements; _i < _b.length; _i++) {\n var element = _b[_i];\n if (isUnused(element.name))\n changes.delete(sourceFile, element);\n }\n }\n }\n }\n }\n function deleteUnusedImportsInVariableDeclaration(sourceFile, varDecl, changes, isUnused) {\n var name = varDecl.name;\n switch (name.kind) {\n case 79 /* Identifier */:\n if (isUnused(name)) {\n changes.delete(sourceFile, name);\n }\n break;\n case 200 /* ArrayBindingPattern */:\n break;\n case 199 /* ObjectBindingPattern */:\n if (name.elements.every(function (e) { return ts.isIdentifier(e.name) && isUnused(e.name); })) {\n changes.delete(sourceFile, ts.isVariableDeclarationList(varDecl.parent) && varDecl.parent.declarations.length === 1 ? varDecl.parent.parent : varDecl);\n }\n else {\n for (var _i = 0, _a = name.elements; _i < _a.length; _i++) {\n var element = _a[_i];\n if (ts.isIdentifier(element.name) && isUnused(element.name)) {\n changes.delete(sourceFile, element.name);\n }\n }\n }\n break;\n }\n }\n function getNewFileImportsAndAddExportInOldFile(oldFile, importsToCopy, newFileImportsFromOldFile, changes, checker, useEs6ModuleSyntax, quotePreference) {\n var copiedOldImports = [];\n for (var _i = 0, _a = oldFile.statements; _i < _a.length; _i++) {\n var oldStatement = _a[_i];\n forEachImportInStatement(oldStatement, function (i) {\n ts.append(copiedOldImports, filterImport(i, moduleSpecifierFromImport(i), function (name) { return importsToCopy.has(checker.getSymbolAtLocation(name)); }));\n });\n }\n // Also, import things used from the old file, and insert 'export' modifiers as necessary in the old file.\n var oldFileDefault;\n var oldFileNamedImports = [];\n var markSeenTop = ts.nodeSeenTracker(); // Needed because multiple declarations may appear in `const x = 0, y = 1;`.\n newFileImportsFromOldFile.forEach(function (symbol) {\n if (!symbol.declarations) {\n return;\n }\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (!isTopLevelDeclaration(decl))\n continue;\n var name = nameOfTopLevelDeclaration(decl);\n if (!name)\n continue;\n var top = getTopLevelDeclarationStatement(decl);\n if (markSeenTop(top)) {\n addExportToChanges(oldFile, top, name, changes, useEs6ModuleSyntax);\n }\n if (ts.hasSyntacticModifier(decl, 512 /* Default */)) {\n oldFileDefault = name;\n }\n else {\n oldFileNamedImports.push(name.text);\n }\n }\n });\n ts.append(copiedOldImports, makeImportOrRequire(oldFileDefault, oldFileNamedImports, ts.removeFileExtension(ts.getBaseFileName(oldFile.fileName)), useEs6ModuleSyntax, quotePreference));\n return copiedOldImports;\n }\n function makeUniqueModuleName(moduleName, extension, inDirectory, host) {\n var newModuleName = moduleName;\n for (var i = 1;; i++) {\n var name = ts.combinePaths(inDirectory, newModuleName + extension);\n if (!host.fileExists(name))\n return newModuleName; // TODO: GH#18217\n newModuleName = moduleName + \".\" + i;\n }\n }\n function getNewModuleName(movedSymbols) {\n return movedSymbols.forEachEntry(ts.symbolNameNoDefault) || \"newFile\";\n }\n function getUsageInfo(oldFile, toMove, checker) {\n var movedSymbols = new SymbolSet();\n var oldImportsNeededByNewFile = new SymbolSet();\n var newFileImportsFromOldFile = new SymbolSet();\n var containsJsx = ts.find(toMove, function (statement) { return !!(statement.transformFlags & 2 /* ContainsJsx */); });\n var jsxNamespaceSymbol = getJsxNamespaceSymbol(containsJsx);\n if (jsxNamespaceSymbol) { // Might not exist (e.g. in non-compiling code)\n oldImportsNeededByNewFile.add(jsxNamespaceSymbol);\n }\n for (var _i = 0, toMove_1 = toMove; _i < toMove_1.length; _i++) {\n var statement = toMove_1[_i];\n forEachTopLevelDeclaration(statement, function (decl) {\n movedSymbols.add(ts.Debug.checkDefined(ts.isExpressionStatement(decl) ? checker.getSymbolAtLocation(decl.expression.left) : decl.symbol, \"Need a symbol here\"));\n });\n }\n for (var _a = 0, toMove_2 = toMove; _a < toMove_2.length; _a++) {\n var statement = toMove_2[_a];\n forEachReference(statement, checker, function (symbol) {\n if (!symbol.declarations)\n return;\n for (var _i = 0, _a = symbol.declarations; _i < _a.length; _i++) {\n var decl = _a[_i];\n if (isInImport(decl)) {\n oldImportsNeededByNewFile.add(symbol);\n }\n else if (isTopLevelDeclaration(decl) && sourceFileOfTopLevelDeclaration(decl) === oldFile && !movedSymbols.has(symbol)) {\n newFileImportsFromOldFile.add(symbol);\n }\n }\n });\n }\n var unusedImportsFromOldFile = oldImportsNeededByNewFile.clone();\n var oldFileImportsFromNewFile = new SymbolSet();\n for (var _b = 0, _c = oldFile.statements; _b < _c.length; _b++) {\n var statement = _c[_b];\n if (ts.contains(toMove, statement))\n continue;\n // jsxNamespaceSymbol will only be set iff it is in oldImportsNeededByNewFile.\n if (jsxNamespaceSymbol && !!(statement.transformFlags & 2 /* ContainsJsx */)) {\n unusedImportsFromOldFile.delete(jsxNamespaceSymbol);\n }\n forEachReference(statement, checker, function (symbol) {\n if (movedSymbols.has(symbol))\n oldFileImportsFromNewFile.add(symbol);\n unusedImportsFromOldFile.delete(symbol);\n });\n }\n return { movedSymbols: movedSymbols, newFileImportsFromOldFile: newFileImportsFromOldFile, oldFileImportsFromNewFile: oldFileImportsFromNewFile, oldImportsNeededByNewFile: oldImportsNeededByNewFile, unusedImportsFromOldFile: unusedImportsFromOldFile };\n function getJsxNamespaceSymbol(containsJsx) {\n if (containsJsx === undefined) {\n return undefined;\n }\n var jsxNamespace = checker.getJsxNamespace(containsJsx);\n // Strictly speaking, this could resolve to a symbol other than the JSX namespace.\n // This will produce erroneous output (probably, an incorrectly copied import) but\n // is expected to be very rare and easily reversible.\n var jsxNamespaceSymbol = checker.resolveName(jsxNamespace, containsJsx, 1920 /* Namespace */, /*excludeGlobals*/ true);\n return !!jsxNamespaceSymbol && ts.some(jsxNamespaceSymbol.declarations, isInImport)\n ? jsxNamespaceSymbol\n : undefined;\n }\n }\n // Below should all be utilities\n function isInImport(decl) {\n switch (decl.kind) {\n case 263 /* ImportEqualsDeclaration */:\n case 268 /* ImportSpecifier */:\n case 265 /* ImportClause */:\n case 266 /* NamespaceImport */:\n return true;\n case 252 /* VariableDeclaration */:\n return isVariableDeclarationInImport(decl);\n case 201 /* BindingElement */:\n return ts.isVariableDeclaration(decl.parent.parent) && isVariableDeclarationInImport(decl.parent.parent);\n default:\n return false;\n }\n }\n function isVariableDeclarationInImport(decl) {\n return ts.isSourceFile(decl.parent.parent.parent) &&\n !!decl.initializer && ts.isRequireCall(decl.initializer, /*checkArgumentIsStringLiteralLike*/ true);\n }\n function filterImport(i, moduleSpecifier, keep) {\n switch (i.kind) {\n case 264 /* ImportDeclaration */: {\n var clause = i.importClause;\n if (!clause)\n return undefined;\n var defaultImport = clause.name && keep(clause.name) ? clause.name : undefined;\n var namedBindings = clause.namedBindings && filterNamedBindings(clause.namedBindings, keep);\n return defaultImport || namedBindings\n ? ts.factory.createImportDeclaration(/*decorators*/ undefined, /*modifiers*/ undefined, ts.factory.createImportClause(/*isTypeOnly*/ false, defaultImport, namedBindings), moduleSpecifier)\n : undefined;\n }\n case 263 /* ImportEqualsDeclaration */:\n return keep(i.name) ? i : undefined;\n case 252 /* VariableDeclaration */: {\n var name = filterBindingName(i.name, keep);\n return name ? makeVariableStatement(name, i.type, createRequireCall(moduleSpecifier), i.parent.flags) : undefined;\n }\n default:\n return ts.Debug.assertNever(i, \"Unexpected import kind \" + i.kind);\n }\n }\n function filterNamedBindings(namedBindings, keep) {\n if (namedBindings.kind === 266 /* NamespaceImport */) {\n return keep(namedBindings.name) ? namedBindings : undefined;\n }\n else {\n var newElements = namedBindings.elements.filter(function (e) { return keep(e.name); });\n return newElements.length ? ts.factory.createNamedImports(newElements) : undefined;\n }\n }\n function filterBindingName(name, keep) {\n switch (name.kind) {\n case 79 /* Identifier */:\n return keep(name) ? name : undefined;\n case 200 /* ArrayBindingPattern */:\n return name;\n case 199 /* ObjectBindingPattern */: {\n // We can't handle nested destructurings or property names well here, so just copy them all.\n var newElements = name.elements.filter(function (prop) { return prop.propertyName || !ts.isIdentifier(prop.name) || keep(prop.name); });\n return newElements.length ? ts.factory.createObjectBindingPattern(newElements) : undefined;\n }\n }\n }\n function forEachReference(node, checker, onReference) {\n node.forEachChild(function cb(node) {\n if (ts.isIdentifier(node) && !ts.isDeclarationName(node)) {\n var sym = checker.getSymbolAtLocation(node);\n if (sym)\n onReference(sym);\n }\n else {\n node.forEachChild(cb);\n }\n });\n }\n var SymbolSet = /** @class */ (function () {\n function SymbolSet() {\n this.map = new ts.Map();\n }\n SymbolSet.prototype.add = function (symbol) {\n this.map.set(String(ts.getSymbolId(symbol)), symbol);\n };\n SymbolSet.prototype.has = function (symbol) {\n return this.map.has(String(ts.getSymbolId(symbol)));\n };\n SymbolSet.prototype.delete = function (symbol) {\n this.map.delete(String(ts.getSymbolId(symbol)));\n };\n SymbolSet.prototype.forEach = function (cb) {\n this.map.forEach(cb);\n };\n SymbolSet.prototype.forEachEntry = function (cb) {\n return ts.forEachEntry(this.map, cb);\n };\n SymbolSet.prototype.clone = function () {\n var clone = new SymbolSet();\n ts.copyEntries(this.map, clone.map);\n return clone;\n };\n return SymbolSet;\n }());\n function isTopLevelDeclaration(node) {\n return isNonVariableTopLevelDeclaration(node) && ts.isSourceFile(node.parent) || ts.isVariableDeclaration(node) && ts.isSourceFile(node.parent.parent.parent);\n }\n function sourceFileOfTopLevelDeclaration(node) {\n return ts.isVariableDeclaration(node) ? node.parent.parent.parent : node.parent;\n }\n function isTopLevelDeclarationStatement(node) {\n ts.Debug.assert(ts.isSourceFile(node.parent), \"Node parent should be a SourceFile\");\n return isNonVariableTopLevelDeclaration(node) || ts.isVariableStatement(node);\n }\n function isNonVariableTopLevelDeclaration(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n return true;\n default:\n return false;\n }\n }\n function forEachTopLevelDeclaration(statement, cb) {\n switch (statement.kind) {\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n return cb(statement);\n case 235 /* VariableStatement */:\n return ts.firstDefined(statement.declarationList.declarations, function (decl) { return forEachTopLevelDeclarationInBindingName(decl.name, cb); });\n case 236 /* ExpressionStatement */: {\n var expression = statement.expression;\n return ts.isBinaryExpression(expression) && ts.getAssignmentDeclarationKind(expression) === 1 /* ExportsProperty */\n ? cb(statement)\n : undefined;\n }\n }\n }\n function forEachTopLevelDeclarationInBindingName(name, cb) {\n switch (name.kind) {\n case 79 /* Identifier */:\n return cb(ts.cast(name.parent, function (x) { return ts.isVariableDeclaration(x) || ts.isBindingElement(x); }));\n case 200 /* ArrayBindingPattern */:\n case 199 /* ObjectBindingPattern */:\n return ts.firstDefined(name.elements, function (em) { return ts.isOmittedExpression(em) ? undefined : forEachTopLevelDeclarationInBindingName(em.name, cb); });\n default:\n return ts.Debug.assertNever(name, \"Unexpected name kind \" + name.kind);\n }\n }\n function nameOfTopLevelDeclaration(d) {\n return ts.isExpressionStatement(d) ? ts.tryCast(d.expression.left.name, ts.isIdentifier) : ts.tryCast(d.name, ts.isIdentifier);\n }\n function getTopLevelDeclarationStatement(d) {\n switch (d.kind) {\n case 252 /* VariableDeclaration */:\n return d.parent.parent;\n case 201 /* BindingElement */:\n return getTopLevelDeclarationStatement(ts.cast(d.parent.parent, function (p) { return ts.isVariableDeclaration(p) || ts.isBindingElement(p); }));\n default:\n return d;\n }\n }\n function addExportToChanges(sourceFile, decl, name, changes, useEs6Exports) {\n if (isExported(sourceFile, decl, useEs6Exports, name))\n return;\n if (useEs6Exports) {\n if (!ts.isExpressionStatement(decl))\n changes.insertExportModifier(sourceFile, decl);\n }\n else {\n var names = getNamesToExportInCommonJS(decl);\n if (names.length !== 0)\n changes.insertNodesAfter(sourceFile, decl, names.map(createExportAssignment));\n }\n }\n function isExported(sourceFile, decl, useEs6Exports, name) {\n var _a;\n if (useEs6Exports) {\n return !ts.isExpressionStatement(decl) && ts.hasSyntacticModifier(decl, 1 /* Export */) || !!(name && ((_a = sourceFile.symbol.exports) === null || _a === void 0 ? void 0 : _a.has(name.escapedText)));\n }\n return getNamesToExportInCommonJS(decl).some(function (name) { return sourceFile.symbol.exports.has(ts.escapeLeadingUnderscores(name)); });\n }\n function addExport(decl, useEs6Exports) {\n return useEs6Exports ? [addEs6Export(decl)] : addCommonjsExport(decl);\n }\n function addEs6Export(d) {\n var modifiers = ts.concatenate([ts.factory.createModifier(93 /* ExportKeyword */)], d.modifiers);\n switch (d.kind) {\n case 254 /* FunctionDeclaration */:\n return ts.factory.updateFunctionDeclaration(d, d.decorators, modifiers, d.asteriskToken, d.name, d.typeParameters, d.parameters, d.type, d.body);\n case 255 /* ClassDeclaration */:\n return ts.factory.updateClassDeclaration(d, d.decorators, modifiers, d.name, d.typeParameters, d.heritageClauses, d.members);\n case 235 /* VariableStatement */:\n return ts.factory.updateVariableStatement(d, modifiers, d.declarationList);\n case 259 /* ModuleDeclaration */:\n return ts.factory.updateModuleDeclaration(d, d.decorators, modifiers, d.name, d.body);\n case 258 /* EnumDeclaration */:\n return ts.factory.updateEnumDeclaration(d, d.decorators, modifiers, d.name, d.members);\n case 257 /* TypeAliasDeclaration */:\n return ts.factory.updateTypeAliasDeclaration(d, d.decorators, modifiers, d.name, d.typeParameters, d.type);\n case 256 /* InterfaceDeclaration */:\n return ts.factory.updateInterfaceDeclaration(d, d.decorators, modifiers, d.name, d.typeParameters, d.heritageClauses, d.members);\n case 263 /* ImportEqualsDeclaration */:\n return ts.factory.updateImportEqualsDeclaration(d, d.decorators, modifiers, d.isTypeOnly, d.name, d.moduleReference);\n case 236 /* ExpressionStatement */:\n return ts.Debug.fail(); // Shouldn't try to add 'export' keyword to `exports.x = ...`\n default:\n return ts.Debug.assertNever(d, \"Unexpected declaration kind \" + d.kind);\n }\n }\n function addCommonjsExport(decl) {\n return __spreadArray([decl], getNamesToExportInCommonJS(decl).map(createExportAssignment), true);\n }\n function getNamesToExportInCommonJS(decl) {\n switch (decl.kind) {\n case 254 /* FunctionDeclaration */:\n case 255 /* ClassDeclaration */:\n return [decl.name.text]; // TODO: GH#18217\n case 235 /* VariableStatement */:\n return ts.mapDefined(decl.declarationList.declarations, function (d) { return ts.isIdentifier(d.name) ? d.name.text : undefined; });\n case 259 /* ModuleDeclaration */:\n case 258 /* EnumDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 256 /* InterfaceDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n return ts.emptyArray;\n case 236 /* ExpressionStatement */:\n return ts.Debug.fail(\"Can't export an ExpressionStatement\"); // Shouldn't try to add 'export' keyword to `exports.x = ...`\n default:\n return ts.Debug.assertNever(decl, \"Unexpected decl kind \" + decl.kind);\n }\n }\n /** Creates `exports.x = x;` */\n function createExportAssignment(name) {\n return ts.factory.createExpressionStatement(ts.factory.createBinaryExpression(ts.factory.createPropertyAccessExpression(ts.factory.createIdentifier(\"exports\"), ts.factory.createIdentifier(name)), 63 /* EqualsToken */, ts.factory.createIdentifier(name)));\n }\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var addOrRemoveBracesToArrowFunction;\n (function (addOrRemoveBracesToArrowFunction) {\n var refactorName = \"Add or remove braces in an arrow function\";\n var refactorDescription = ts.Diagnostics.Add_or_remove_braces_in_an_arrow_function.message;\n var addBracesAction = {\n name: \"Add braces to arrow function\",\n description: ts.Diagnostics.Add_braces_to_arrow_function.message,\n kind: \"refactor.rewrite.arrow.braces.add\",\n };\n var removeBracesAction = {\n name: \"Remove braces from arrow function\",\n description: ts.Diagnostics.Remove_braces_from_arrow_function.message,\n kind: \"refactor.rewrite.arrow.braces.remove\"\n };\n refactor.registerRefactor(refactorName, {\n kinds: [removeBracesAction.kind],\n getEditsForAction: getEditsForAction,\n getAvailableActions: getAvailableActions\n });\n function getAvailableActions(context) {\n var file = context.file, startPosition = context.startPosition, triggerReason = context.triggerReason;\n var info = getConvertibleArrowFunctionAtPosition(file, startPosition, triggerReason === \"invoked\");\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: [\n info.addBraces ? addBracesAction : removeBracesAction\n ]\n }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: [\n __assign(__assign({}, addBracesAction), { notApplicableReason: info.error }),\n __assign(__assign({}, removeBracesAction), { notApplicableReason: info.error }),\n ]\n }];\n }\n return ts.emptyArray;\n }\n function getEditsForAction(context, actionName) {\n var file = context.file, startPosition = context.startPosition;\n var info = getConvertibleArrowFunctionAtPosition(file, startPosition);\n ts.Debug.assert(info && !refactor.isRefactorErrorInfo(info), \"Expected applicable refactor info\");\n var expression = info.expression, returnStatement = info.returnStatement, func = info.func;\n var body;\n if (actionName === addBracesAction.name) {\n var returnStatement_1 = ts.factory.createReturnStatement(expression);\n body = ts.factory.createBlock([returnStatement_1], /* multiLine */ true);\n ts.suppressLeadingAndTrailingTrivia(body);\n ts.copyLeadingComments(expression, returnStatement_1, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ true);\n }\n else if (actionName === removeBracesAction.name && returnStatement) {\n var actualExpression = expression || ts.factory.createVoidZero();\n body = ts.needsParentheses(actualExpression) ? ts.factory.createParenthesizedExpression(actualExpression) : actualExpression;\n ts.suppressLeadingAndTrailingTrivia(body);\n ts.copyTrailingAsLeadingComments(returnStatement, body, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n ts.copyLeadingComments(returnStatement, body, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n ts.copyTrailingComments(returnStatement, body, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n }\n else {\n ts.Debug.fail(\"invalid action\");\n }\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) {\n t.replaceNode(file, func.body, body);\n });\n return { renameFilename: undefined, renameLocation: undefined, edits: edits };\n }\n function getConvertibleArrowFunctionAtPosition(file, startPosition, considerFunctionBodies, kind) {\n if (considerFunctionBodies === void 0) { considerFunctionBodies = true; }\n var node = ts.getTokenAtPosition(file, startPosition);\n var func = ts.getContainingFunction(node);\n if (!func) {\n return {\n error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_find_a_containing_arrow_function)\n };\n }\n if (!ts.isArrowFunction(func)) {\n return {\n error: ts.getLocaleSpecificMessage(ts.Diagnostics.Containing_function_is_not_an_arrow_function)\n };\n }\n if ((!ts.rangeContainsRange(func, node) || ts.rangeContainsRange(func.body, node) && !considerFunctionBodies)) {\n return undefined;\n }\n if (refactor.refactorKindBeginsWith(addBracesAction.kind, kind) && ts.isExpression(func.body)) {\n return { func: func, addBraces: true, expression: func.body };\n }\n else if (refactor.refactorKindBeginsWith(removeBracesAction.kind, kind) && ts.isBlock(func.body) && func.body.statements.length === 1) {\n var firstStatement = ts.first(func.body.statements);\n if (ts.isReturnStatement(firstStatement)) {\n return { func: func, addBraces: false, expression: firstStatement.expression, returnStatement: firstStatement };\n }\n }\n return undefined;\n }\n })(addOrRemoveBracesToArrowFunction = refactor.addOrRemoveBracesToArrowFunction || (refactor.addOrRemoveBracesToArrowFunction = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var convertParamsToDestructuredObject;\n (function (convertParamsToDestructuredObject) {\n var refactorName = \"Convert parameters to destructured object\";\n var minimumParameterLength = 2;\n var refactorDescription = ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_parameters_to_destructured_object);\n var toDestructuredAction = {\n name: refactorName,\n description: refactorDescription,\n kind: \"refactor.rewrite.parameters.toDestructured\"\n };\n refactor.registerRefactor(refactorName, {\n kinds: [toDestructuredAction.kind],\n getEditsForAction: getEditsForAction,\n getAvailableActions: getAvailableActions\n });\n function getAvailableActions(context) {\n var file = context.file, startPosition = context.startPosition;\n var isJSFile = ts.isSourceFileJS(file);\n if (isJSFile)\n return ts.emptyArray; // TODO: GH#30113\n var functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, context.program.getTypeChecker());\n if (!functionDeclaration)\n return ts.emptyArray;\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: [toDestructuredAction]\n }];\n }\n function getEditsForAction(context, actionName) {\n ts.Debug.assert(actionName === refactorName, \"Unexpected action name\");\n var file = context.file, startPosition = context.startPosition, program = context.program, cancellationToken = context.cancellationToken, host = context.host;\n var functionDeclaration = getFunctionDeclarationAtPosition(file, startPosition, program.getTypeChecker());\n if (!functionDeclaration || !cancellationToken)\n return undefined;\n var groupedReferences = getGroupedReferences(functionDeclaration, program, cancellationToken);\n if (groupedReferences.valid) {\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(file, program, host, t, functionDeclaration, groupedReferences); });\n return { renameFilename: undefined, renameLocation: undefined, edits: edits };\n }\n return { edits: [] }; // TODO: GH#30113\n }\n function doChange(sourceFile, program, host, changes, functionDeclaration, groupedReferences) {\n var signature = groupedReferences.signature;\n var newFunctionDeclarationParams = ts.map(createNewParameters(functionDeclaration, program, host), function (param) { return ts.getSynthesizedDeepClone(param); });\n if (signature) {\n var newSignatureParams = ts.map(createNewParameters(signature, program, host), function (param) { return ts.getSynthesizedDeepClone(param); });\n replaceParameters(signature, newSignatureParams);\n }\n replaceParameters(functionDeclaration, newFunctionDeclarationParams);\n var functionCalls = ts.sortAndDeduplicate(groupedReferences.functionCalls, /*comparer*/ function (a, b) { return ts.compareValues(a.pos, b.pos); });\n for (var _i = 0, functionCalls_1 = functionCalls; _i < functionCalls_1.length; _i++) {\n var call = functionCalls_1[_i];\n if (call.arguments && call.arguments.length) {\n var newArgument = ts.getSynthesizedDeepClone(createNewArgument(functionDeclaration, call.arguments), /*includeTrivia*/ true);\n changes.replaceNodeRange(ts.getSourceFileOfNode(call), ts.first(call.arguments), ts.last(call.arguments), newArgument, { leadingTriviaOption: ts.textChanges.LeadingTriviaOption.IncludeAll, trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Include });\n }\n }\n function replaceParameters(declarationOrSignature, parameterDeclarations) {\n changes.replaceNodeRangeWithNodes(sourceFile, ts.first(declarationOrSignature.parameters), ts.last(declarationOrSignature.parameters), parameterDeclarations, {\n joiner: \", \",\n // indentation is set to 0 because otherwise the object parameter will be indented if there is a `this` parameter\n indentation: 0,\n leadingTriviaOption: ts.textChanges.LeadingTriviaOption.IncludeAll,\n trailingTriviaOption: ts.textChanges.TrailingTriviaOption.Include\n });\n }\n }\n function getGroupedReferences(functionDeclaration, program, cancellationToken) {\n var functionNames = getFunctionNames(functionDeclaration);\n var classNames = ts.isConstructorDeclaration(functionDeclaration) ? getClassNames(functionDeclaration) : [];\n var names = ts.deduplicate(__spreadArray(__spreadArray([], functionNames, true), classNames, true), ts.equateValues);\n var checker = program.getTypeChecker();\n var references = ts.flatMap(names, /*mapfn*/ function (/*mapfn*/ name) { return ts.FindAllReferences.getReferenceEntriesForNode(-1, name, program, program.getSourceFiles(), cancellationToken); });\n var groupedReferences = groupReferences(references);\n if (!ts.every(groupedReferences.declarations, /*callback*/ function (/*callback*/ decl) { return ts.contains(names, decl); })) {\n groupedReferences.valid = false;\n }\n return groupedReferences;\n function groupReferences(referenceEntries) {\n var classReferences = { accessExpressions: [], typeUsages: [] };\n var groupedReferences = { functionCalls: [], declarations: [], classReferences: classReferences, valid: true };\n var functionSymbols = ts.map(functionNames, getSymbolTargetAtLocation);\n var classSymbols = ts.map(classNames, getSymbolTargetAtLocation);\n var isConstructor = ts.isConstructorDeclaration(functionDeclaration);\n var contextualSymbols = ts.map(functionNames, function (name) { return getSymbolForContextualType(name, checker); });\n for (var _i = 0, referenceEntries_1 = referenceEntries; _i < referenceEntries_1.length; _i++) {\n var entry = referenceEntries_1[_i];\n if (entry.kind === 0 /* Span */) {\n groupedReferences.valid = false;\n continue;\n }\n /* Declarations in object literals may be implementations of method signatures which have a different symbol from the declaration\n For example:\n interface IFoo { m(a: number): void }\n const foo: IFoo = { m(a: number): void {} }\n In these cases we get the symbol for the signature from the contextual type.\n */\n if (ts.contains(contextualSymbols, getSymbolTargetAtLocation(entry.node))) {\n if (isValidMethodSignature(entry.node.parent)) {\n groupedReferences.signature = entry.node.parent;\n continue;\n }\n var call = entryToFunctionCall(entry);\n if (call) {\n groupedReferences.functionCalls.push(call);\n continue;\n }\n }\n var contextualSymbol = getSymbolForContextualType(entry.node, checker);\n if (contextualSymbol && ts.contains(contextualSymbols, contextualSymbol)) {\n var decl = entryToDeclaration(entry);\n if (decl) {\n groupedReferences.declarations.push(decl);\n continue;\n }\n }\n /* We compare symbols because in some cases find all references wil return a reference that may or may not be to the refactored function.\n Example from the refactorConvertParamsToDestructuredObject_methodCallUnion.ts test:\n class A { foo(a: number, b: number) { return a + b; } }\n class B { foo(c: number, d: number) { return c + d; } }\n declare const ab: A | B;\n ab.foo(1, 2);\n Find all references will return `ab.foo(1, 2)` as a reference to A's `foo` but we could be calling B's `foo`.\n When looking for constructor calls, however, the symbol on the constructor call reference is going to be the corresponding class symbol.\n So we need to add a special case for this because when calling a constructor of a class through one of its subclasses,\n the symbols are going to be different.\n */\n if (ts.contains(functionSymbols, getSymbolTargetAtLocation(entry.node)) || ts.isNewExpressionTarget(entry.node)) {\n var importOrExportReference = entryToImportOrExport(entry);\n if (importOrExportReference) {\n continue;\n }\n var decl = entryToDeclaration(entry);\n if (decl) {\n groupedReferences.declarations.push(decl);\n continue;\n }\n var call = entryToFunctionCall(entry);\n if (call) {\n groupedReferences.functionCalls.push(call);\n continue;\n }\n }\n // if the refactored function is a constructor, we must also check if the references to its class are valid\n if (isConstructor && ts.contains(classSymbols, getSymbolTargetAtLocation(entry.node))) {\n var importOrExportReference = entryToImportOrExport(entry);\n if (importOrExportReference) {\n continue;\n }\n var decl = entryToDeclaration(entry);\n if (decl) {\n groupedReferences.declarations.push(decl);\n continue;\n }\n var accessExpression = entryToAccessExpression(entry);\n if (accessExpression) {\n classReferences.accessExpressions.push(accessExpression);\n continue;\n }\n // Only class declarations are allowed to be used as a type (in a heritage clause),\n // otherwise `findAllReferences` might not be able to track constructor calls.\n if (ts.isClassDeclaration(functionDeclaration.parent)) {\n var type = entryToType(entry);\n if (type) {\n classReferences.typeUsages.push(type);\n continue;\n }\n }\n }\n groupedReferences.valid = false;\n }\n return groupedReferences;\n }\n function getSymbolTargetAtLocation(node) {\n var symbol = checker.getSymbolAtLocation(node);\n return symbol && ts.getSymbolTarget(symbol, checker);\n }\n }\n /**\n * Gets the symbol for the contextual type of the node if it is not a union or intersection.\n */\n function getSymbolForContextualType(node, checker) {\n var element = ts.getContainingObjectLiteralElement(node);\n if (element) {\n var contextualType = checker.getContextualTypeForObjectLiteralElement(element);\n var symbol = contextualType === null || contextualType === void 0 ? void 0 : contextualType.getSymbol();\n if (symbol && !(ts.getCheckFlags(symbol) & 6 /* Synthetic */)) {\n return symbol;\n }\n }\n }\n function entryToImportOrExport(entry) {\n var node = entry.node;\n if (ts.isImportSpecifier(node.parent)\n || ts.isImportClause(node.parent)\n || ts.isImportEqualsDeclaration(node.parent)\n || ts.isNamespaceImport(node.parent)) {\n return node;\n }\n if (ts.isExportSpecifier(node.parent) || ts.isExportAssignment(node.parent)) {\n return node;\n }\n return undefined;\n }\n function entryToDeclaration(entry) {\n if (ts.isDeclaration(entry.node.parent)) {\n return entry.node;\n }\n return undefined;\n }\n function entryToFunctionCall(entry) {\n if (entry.node.parent) {\n var functionReference = entry.node;\n var parent = functionReference.parent;\n switch (parent.kind) {\n // foo(...) or super(...) or new Foo(...)\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n var callOrNewExpression = ts.tryCast(parent, ts.isCallOrNewExpression);\n if (callOrNewExpression && callOrNewExpression.expression === functionReference) {\n return callOrNewExpression;\n }\n break;\n // x.foo(...)\n case 204 /* PropertyAccessExpression */:\n var propertyAccessExpression = ts.tryCast(parent, ts.isPropertyAccessExpression);\n if (propertyAccessExpression && propertyAccessExpression.parent && propertyAccessExpression.name === functionReference) {\n var callOrNewExpression_1 = ts.tryCast(propertyAccessExpression.parent, ts.isCallOrNewExpression);\n if (callOrNewExpression_1 && callOrNewExpression_1.expression === propertyAccessExpression) {\n return callOrNewExpression_1;\n }\n }\n break;\n // x[\"foo\"](...)\n case 205 /* ElementAccessExpression */:\n var elementAccessExpression = ts.tryCast(parent, ts.isElementAccessExpression);\n if (elementAccessExpression && elementAccessExpression.parent && elementAccessExpression.argumentExpression === functionReference) {\n var callOrNewExpression_2 = ts.tryCast(elementAccessExpression.parent, ts.isCallOrNewExpression);\n if (callOrNewExpression_2 && callOrNewExpression_2.expression === elementAccessExpression) {\n return callOrNewExpression_2;\n }\n }\n break;\n }\n }\n return undefined;\n }\n function entryToAccessExpression(entry) {\n if (entry.node.parent) {\n var reference = entry.node;\n var parent = reference.parent;\n switch (parent.kind) {\n // `C.foo`\n case 204 /* PropertyAccessExpression */:\n var propertyAccessExpression = ts.tryCast(parent, ts.isPropertyAccessExpression);\n if (propertyAccessExpression && propertyAccessExpression.expression === reference) {\n return propertyAccessExpression;\n }\n break;\n // `C[\"foo\"]`\n case 205 /* ElementAccessExpression */:\n var elementAccessExpression = ts.tryCast(parent, ts.isElementAccessExpression);\n if (elementAccessExpression && elementAccessExpression.expression === reference) {\n return elementAccessExpression;\n }\n break;\n }\n }\n return undefined;\n }\n function entryToType(entry) {\n var reference = entry.node;\n if (ts.getMeaningFromLocation(reference) === 2 /* Type */ || ts.isExpressionWithTypeArgumentsInClassExtendsClause(reference.parent)) {\n return reference;\n }\n return undefined;\n }\n function getFunctionDeclarationAtPosition(file, startPosition, checker) {\n var node = ts.getTouchingToken(file, startPosition);\n var functionDeclaration = ts.getContainingFunctionDeclaration(node);\n // don't offer refactor on top-level JSDoc\n if (isTopLevelJSDoc(node))\n return undefined;\n if (functionDeclaration\n && isValidFunctionDeclaration(functionDeclaration, checker)\n && ts.rangeContainsRange(functionDeclaration, node)\n && !(functionDeclaration.body && ts.rangeContainsRange(functionDeclaration.body, node)))\n return functionDeclaration;\n return undefined;\n }\n function isTopLevelJSDoc(node) {\n var containingJSDoc = ts.findAncestor(node, ts.isJSDocNode);\n if (containingJSDoc) {\n var containingNonJSDoc = ts.findAncestor(containingJSDoc, function (n) { return !ts.isJSDocNode(n); });\n return !!containingNonJSDoc && ts.isFunctionLikeDeclaration(containingNonJSDoc);\n }\n return false;\n }\n function isValidMethodSignature(node) {\n return ts.isMethodSignature(node) && (ts.isInterfaceDeclaration(node.parent) || ts.isTypeLiteralNode(node.parent));\n }\n function isValidFunctionDeclaration(functionDeclaration, checker) {\n var _a;\n if (!isValidParameterNodeArray(functionDeclaration.parameters, checker))\n return false;\n switch (functionDeclaration.kind) {\n case 254 /* FunctionDeclaration */:\n return hasNameOrDefault(functionDeclaration) && isSingleImplementation(functionDeclaration, checker);\n case 167 /* MethodDeclaration */:\n if (ts.isObjectLiteralExpression(functionDeclaration.parent)) {\n var contextualSymbol = getSymbolForContextualType(functionDeclaration.name, checker);\n // don't offer the refactor when there are multiple signatures since we won't know which ones the user wants to change\n return ((_a = contextualSymbol === null || contextualSymbol === void 0 ? void 0 : contextualSymbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 && isSingleImplementation(functionDeclaration, checker);\n }\n return isSingleImplementation(functionDeclaration, checker);\n case 169 /* Constructor */:\n if (ts.isClassDeclaration(functionDeclaration.parent)) {\n return hasNameOrDefault(functionDeclaration.parent) && isSingleImplementation(functionDeclaration, checker);\n }\n else {\n return isValidVariableDeclaration(functionDeclaration.parent.parent)\n && isSingleImplementation(functionDeclaration, checker);\n }\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return isValidVariableDeclaration(functionDeclaration.parent);\n }\n return false;\n }\n function isSingleImplementation(functionDeclaration, checker) {\n return !!functionDeclaration.body && !checker.isImplementationOfOverload(functionDeclaration);\n }\n function hasNameOrDefault(functionOrClassDeclaration) {\n if (!functionOrClassDeclaration.name) {\n var defaultKeyword = ts.findModifier(functionOrClassDeclaration, 88 /* DefaultKeyword */);\n return !!defaultKeyword;\n }\n return true;\n }\n function isValidParameterNodeArray(parameters, checker) {\n return getRefactorableParametersLength(parameters) >= minimumParameterLength\n && ts.every(parameters, /*callback*/ function (/*callback*/ paramDecl) { return isValidParameterDeclaration(paramDecl, checker); });\n }\n function isValidParameterDeclaration(parameterDeclaration, checker) {\n if (ts.isRestParameter(parameterDeclaration)) {\n var type = checker.getTypeAtLocation(parameterDeclaration);\n if (!checker.isArrayType(type) && !checker.isTupleType(type))\n return false;\n }\n return !parameterDeclaration.modifiers && !parameterDeclaration.decorators && ts.isIdentifier(parameterDeclaration.name);\n }\n function isValidVariableDeclaration(node) {\n return ts.isVariableDeclaration(node) && ts.isVarConst(node) && ts.isIdentifier(node.name) && !node.type; // TODO: GH#30113\n }\n function hasThisParameter(parameters) {\n return parameters.length > 0 && ts.isThis(parameters[0].name);\n }\n function getRefactorableParametersLength(parameters) {\n if (hasThisParameter(parameters)) {\n return parameters.length - 1;\n }\n return parameters.length;\n }\n function getRefactorableParameters(parameters) {\n if (hasThisParameter(parameters)) {\n parameters = ts.factory.createNodeArray(parameters.slice(1), parameters.hasTrailingComma);\n }\n return parameters;\n }\n function createPropertyOrShorthandAssignment(name, initializer) {\n if (ts.isIdentifier(initializer) && ts.getTextOfIdentifierOrLiteral(initializer) === name) {\n return ts.factory.createShorthandPropertyAssignment(name);\n }\n return ts.factory.createPropertyAssignment(name, initializer);\n }\n function createNewArgument(functionDeclaration, functionArguments) {\n var parameters = getRefactorableParameters(functionDeclaration.parameters);\n var hasRestParameter = ts.isRestParameter(ts.last(parameters));\n var nonRestArguments = hasRestParameter ? functionArguments.slice(0, parameters.length - 1) : functionArguments;\n var properties = ts.map(nonRestArguments, function (arg, i) {\n var parameterName = getParameterName(parameters[i]);\n var property = createPropertyOrShorthandAssignment(parameterName, arg);\n ts.suppressLeadingAndTrailingTrivia(property.name);\n if (ts.isPropertyAssignment(property))\n ts.suppressLeadingAndTrailingTrivia(property.initializer);\n ts.copyComments(arg, property);\n return property;\n });\n if (hasRestParameter && functionArguments.length >= parameters.length) {\n var restArguments = functionArguments.slice(parameters.length - 1);\n var restProperty = ts.factory.createPropertyAssignment(getParameterName(ts.last(parameters)), ts.factory.createArrayLiteralExpression(restArguments));\n properties.push(restProperty);\n }\n var objectLiteral = ts.factory.createObjectLiteralExpression(properties, /*multiLine*/ false);\n return objectLiteral;\n }\n function createNewParameters(functionDeclaration, program, host) {\n var checker = program.getTypeChecker();\n var refactorableParameters = getRefactorableParameters(functionDeclaration.parameters);\n var bindingElements = ts.map(refactorableParameters, createBindingElementFromParameterDeclaration);\n var objectParameterName = ts.factory.createObjectBindingPattern(bindingElements);\n var objectParameterType = createParameterTypeNode(refactorableParameters);\n var objectInitializer;\n // If every parameter in the original function was optional, add an empty object initializer to the new object parameter\n if (ts.every(refactorableParameters, isOptionalParameter)) {\n objectInitializer = ts.factory.createObjectLiteralExpression();\n }\n var objectParameter = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, objectParameterName, \n /*questionToken*/ undefined, objectParameterType, objectInitializer);\n if (hasThisParameter(functionDeclaration.parameters)) {\n var thisParameter = functionDeclaration.parameters[0];\n var newThisParameter = ts.factory.createParameterDeclaration(\n /*decorators*/ undefined, \n /*modifiers*/ undefined, \n /*dotDotDotToken*/ undefined, thisParameter.name, \n /*questionToken*/ undefined, thisParameter.type);\n ts.suppressLeadingAndTrailingTrivia(newThisParameter.name);\n ts.copyComments(thisParameter.name, newThisParameter.name);\n if (thisParameter.type) {\n ts.suppressLeadingAndTrailingTrivia(newThisParameter.type);\n ts.copyComments(thisParameter.type, newThisParameter.type);\n }\n return ts.factory.createNodeArray([newThisParameter, objectParameter]);\n }\n return ts.factory.createNodeArray([objectParameter]);\n function createBindingElementFromParameterDeclaration(parameterDeclaration) {\n var element = ts.factory.createBindingElement(\n /*dotDotDotToken*/ undefined, \n /*propertyName*/ undefined, getParameterName(parameterDeclaration), ts.isRestParameter(parameterDeclaration) && isOptionalParameter(parameterDeclaration) ? ts.factory.createArrayLiteralExpression() : parameterDeclaration.initializer);\n ts.suppressLeadingAndTrailingTrivia(element);\n if (parameterDeclaration.initializer && element.initializer) {\n ts.copyComments(parameterDeclaration.initializer, element.initializer);\n }\n return element;\n }\n function createParameterTypeNode(parameters) {\n var members = ts.map(parameters, createPropertySignatureFromParameterDeclaration);\n var typeNode = ts.addEmitFlags(ts.factory.createTypeLiteralNode(members), 1 /* SingleLine */);\n return typeNode;\n }\n function createPropertySignatureFromParameterDeclaration(parameterDeclaration) {\n var parameterType = parameterDeclaration.type;\n if (!parameterType && (parameterDeclaration.initializer || ts.isRestParameter(parameterDeclaration))) {\n parameterType = getTypeNode(parameterDeclaration);\n }\n var propertySignature = ts.factory.createPropertySignature(\n /*modifiers*/ undefined, getParameterName(parameterDeclaration), isOptionalParameter(parameterDeclaration) ? ts.factory.createToken(57 /* QuestionToken */) : parameterDeclaration.questionToken, parameterType);\n ts.suppressLeadingAndTrailingTrivia(propertySignature);\n ts.copyComments(parameterDeclaration.name, propertySignature.name);\n if (parameterDeclaration.type && propertySignature.type) {\n ts.copyComments(parameterDeclaration.type, propertySignature.type);\n }\n return propertySignature;\n }\n function getTypeNode(node) {\n var type = checker.getTypeAtLocation(node);\n return ts.getTypeNodeIfAccessible(type, node, program, host);\n }\n function isOptionalParameter(parameterDeclaration) {\n if (ts.isRestParameter(parameterDeclaration)) {\n var type = checker.getTypeAtLocation(parameterDeclaration);\n return !checker.isTupleType(type);\n }\n return checker.isOptionalParameter(parameterDeclaration);\n }\n }\n function getParameterName(paramDeclaration) {\n return ts.getTextOfIdentifierOrLiteral(paramDeclaration.name);\n }\n function getClassNames(constructorDeclaration) {\n switch (constructorDeclaration.parent.kind) {\n case 255 /* ClassDeclaration */:\n var classDeclaration = constructorDeclaration.parent;\n if (classDeclaration.name)\n return [classDeclaration.name];\n // If the class declaration doesn't have a name, it should have a default modifier.\n // We validated this in `isValidFunctionDeclaration` through `hasNameOrDefault`\n var defaultModifier = ts.Debug.checkDefined(ts.findModifier(classDeclaration, 88 /* DefaultKeyword */), \"Nameless class declaration should be a default export\");\n return [defaultModifier];\n case 224 /* ClassExpression */:\n var classExpression = constructorDeclaration.parent;\n var variableDeclaration = constructorDeclaration.parent.parent;\n var className = classExpression.name;\n if (className)\n return [className, variableDeclaration.name];\n return [variableDeclaration.name];\n }\n }\n function getFunctionNames(functionDeclaration) {\n switch (functionDeclaration.kind) {\n case 254 /* FunctionDeclaration */:\n if (functionDeclaration.name)\n return [functionDeclaration.name];\n // If the function declaration doesn't have a name, it should have a default modifier.\n // We validated this in `isValidFunctionDeclaration` through `hasNameOrDefault`\n var defaultModifier = ts.Debug.checkDefined(ts.findModifier(functionDeclaration, 88 /* DefaultKeyword */), \"Nameless function declaration should be a default export\");\n return [defaultModifier];\n case 167 /* MethodDeclaration */:\n return [functionDeclaration.name];\n case 169 /* Constructor */:\n var ctrKeyword = ts.Debug.checkDefined(ts.findChildOfKind(functionDeclaration, 133 /* ConstructorKeyword */, functionDeclaration.getSourceFile()), \"Constructor declaration should have constructor keyword\");\n if (functionDeclaration.parent.kind === 224 /* ClassExpression */) {\n var variableDeclaration = functionDeclaration.parent.parent;\n return [variableDeclaration.name, ctrKeyword];\n }\n return [ctrKeyword];\n case 212 /* ArrowFunction */:\n return [functionDeclaration.parent.name];\n case 211 /* FunctionExpression */:\n if (functionDeclaration.name)\n return [functionDeclaration.name, functionDeclaration.parent.name];\n return [functionDeclaration.parent.name];\n default:\n return ts.Debug.assertNever(functionDeclaration, \"Unexpected function declaration kind \" + functionDeclaration.kind);\n }\n }\n })(convertParamsToDestructuredObject = refactor.convertParamsToDestructuredObject || (refactor.convertParamsToDestructuredObject = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var convertStringOrTemplateLiteral;\n (function (convertStringOrTemplateLiteral) {\n var refactorName = \"Convert to template string\";\n var refactorDescription = ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_to_template_string);\n var convertStringAction = {\n name: refactorName,\n description: refactorDescription,\n kind: \"refactor.rewrite.string\"\n };\n refactor.registerRefactor(refactorName, {\n kinds: [convertStringAction.kind],\n getEditsForAction: getEditsForAction,\n getAvailableActions: getAvailableActions\n });\n function getAvailableActions(context) {\n var file = context.file, startPosition = context.startPosition;\n var node = getNodeOrParentOfParentheses(file, startPosition);\n var maybeBinary = getParentBinaryExpression(node);\n var refactorInfo = { name: refactorName, description: refactorDescription, actions: [] };\n if (ts.isBinaryExpression(maybeBinary) && treeToArray(maybeBinary).isValidConcatenation) {\n refactorInfo.actions.push(convertStringAction);\n return [refactorInfo];\n }\n else if (context.preferences.provideRefactorNotApplicableReason) {\n refactorInfo.actions.push(__assign(__assign({}, convertStringAction), { notApplicableReason: ts.getLocaleSpecificMessage(ts.Diagnostics.Can_only_convert_string_concatenation) }));\n return [refactorInfo];\n }\n return ts.emptyArray;\n }\n function getNodeOrParentOfParentheses(file, startPosition) {\n var node = ts.getTokenAtPosition(file, startPosition);\n var nestedBinary = getParentBinaryExpression(node);\n var isNonStringBinary = !treeToArray(nestedBinary).isValidConcatenation;\n if (isNonStringBinary &&\n ts.isParenthesizedExpression(nestedBinary.parent) &&\n ts.isBinaryExpression(nestedBinary.parent.parent)) {\n return nestedBinary.parent.parent;\n }\n return node;\n }\n function getEditsForAction(context, actionName) {\n var file = context.file, startPosition = context.startPosition;\n var node = getNodeOrParentOfParentheses(file, startPosition);\n switch (actionName) {\n case refactorDescription:\n return { edits: getEditsForToTemplateLiteral(context, node) };\n default:\n return ts.Debug.fail(\"invalid action\");\n }\n }\n function getEditsForToTemplateLiteral(context, node) {\n var maybeBinary = getParentBinaryExpression(node);\n var file = context.file;\n var templateLiteral = nodesToTemplate(treeToArray(maybeBinary), file);\n var trailingCommentRanges = ts.getTrailingCommentRanges(file.text, maybeBinary.end);\n if (trailingCommentRanges) {\n var lastComment = trailingCommentRanges[trailingCommentRanges.length - 1];\n var trailingRange_1 = { pos: trailingCommentRanges[0].pos, end: lastComment.end };\n // since suppressTrailingTrivia(maybeBinary) does not work, the trailing comment is removed manually\n // otherwise it would have the trailing comment twice\n return ts.textChanges.ChangeTracker.with(context, function (t) {\n t.deleteRange(file, trailingRange_1);\n t.replaceNode(file, maybeBinary, templateLiteral);\n });\n }\n else {\n return ts.textChanges.ChangeTracker.with(context, function (t) { return t.replaceNode(file, maybeBinary, templateLiteral); });\n }\n }\n function isNotEqualsOperator(node) {\n return node.operatorToken.kind !== 63 /* EqualsToken */;\n }\n function getParentBinaryExpression(expr) {\n var container = ts.findAncestor(expr.parent, function (n) {\n switch (n.kind) {\n case 204 /* PropertyAccessExpression */:\n case 205 /* ElementAccessExpression */:\n return false;\n case 221 /* TemplateExpression */:\n case 219 /* BinaryExpression */:\n return !(ts.isBinaryExpression(n.parent) && isNotEqualsOperator(n.parent));\n default:\n return \"quit\";\n }\n });\n return (container || expr);\n }\n function treeToArray(current) {\n var loop = function (current) {\n if (!ts.isBinaryExpression(current)) {\n return { nodes: [current], operators: [], validOperators: true,\n hasString: ts.isStringLiteral(current) || ts.isNoSubstitutionTemplateLiteral(current) };\n }\n var _a = loop(current.left), nodes = _a.nodes, operators = _a.operators, leftHasString = _a.hasString, leftOperatorValid = _a.validOperators;\n if (!(leftHasString || ts.isStringLiteral(current.right) || ts.isTemplateExpression(current.right))) {\n return { nodes: [current], operators: [], hasString: false, validOperators: true };\n }\n var currentOperatorValid = current.operatorToken.kind === 39 /* PlusToken */;\n var validOperators = leftOperatorValid && currentOperatorValid;\n nodes.push(current.right);\n operators.push(current.operatorToken);\n return { nodes: nodes, operators: operators, hasString: true, validOperators: validOperators };\n };\n var _a = loop(current), nodes = _a.nodes, operators = _a.operators, validOperators = _a.validOperators, hasString = _a.hasString;\n return { nodes: nodes, operators: operators, isValidConcatenation: validOperators && hasString };\n }\n // to copy comments following the operator\n // \"foo\" + /* comment */ \"bar\"\n var copyTrailingOperatorComments = function (operators, file) { return function (index, targetNode) {\n if (index < operators.length) {\n ts.copyTrailingComments(operators[index], targetNode, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n }\n }; };\n // to copy comments following the string\n // \"foo\" /* comment */ + \"bar\" /* comment */ + \"bar2\"\n var copyCommentFromMultiNode = function (nodes, file, copyOperatorComments) {\n return function (indexes, targetNode) {\n while (indexes.length > 0) {\n var index = indexes.shift();\n ts.copyTrailingComments(nodes[index], targetNode, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n copyOperatorComments(index, targetNode);\n }\n };\n };\n function escapeRawStringForTemplate(s) {\n // Escaping for $s in strings that are to be used in template strings\n // Naive implementation: replace \\x by itself and otherwise $ and ` by \\$ and \\`.\n // But to complicate it a bit, this should work for raw strings too.\n return s.replace(/\\\\.|[$`]/g, function (m) { return m[0] === \"\\\\\" ? m : \"\\\\\" + m; });\n // Finally, a less-backslash-happy version can work too, doing only ${ instead of all $s:\n // s.replace(/\\\\.|\\${|`/g, m => m[0] === \"\\\\\" ? m : \"\\\\\" + m);\n // but `\\$${foo}` is likely more clear than the more-confusing-but-still-working `$${foo}`.\n }\n function getRawTextOfTemplate(node) {\n // in these cases the right side is ${\n var rightShaving = ts.isTemplateHead(node) || ts.isTemplateMiddle(node) ? -2 : -1;\n return ts.getTextOfNode(node).slice(1, rightShaving);\n }\n function concatConsecutiveString(index, nodes) {\n var indexes = [];\n var text = \"\", rawText = \"\";\n while (index < nodes.length) {\n var node = nodes[index];\n if (ts.isStringLiteralLike(node)) { // includes isNoSubstitutionTemplateLiteral(node)\n text += node.text;\n rawText += escapeRawStringForTemplate(ts.getTextOfNode(node).slice(1, -1));\n indexes.push(index);\n index++;\n }\n else if (ts.isTemplateExpression(node)) {\n text += node.head.text;\n rawText += getRawTextOfTemplate(node.head);\n break;\n }\n else {\n break;\n }\n }\n return [index, text, rawText, indexes];\n }\n function nodesToTemplate(_a, file) {\n var nodes = _a.nodes, operators = _a.operators;\n var copyOperatorComments = copyTrailingOperatorComments(operators, file);\n var copyCommentFromStringLiterals = copyCommentFromMultiNode(nodes, file, copyOperatorComments);\n var _b = concatConsecutiveString(0, nodes), begin = _b[0], headText = _b[1], rawHeadText = _b[2], headIndexes = _b[3];\n if (begin === nodes.length) {\n var noSubstitutionTemplateLiteral = ts.factory.createNoSubstitutionTemplateLiteral(headText, rawHeadText);\n copyCommentFromStringLiterals(headIndexes, noSubstitutionTemplateLiteral);\n return noSubstitutionTemplateLiteral;\n }\n var templateSpans = [];\n var templateHead = ts.factory.createTemplateHead(headText, rawHeadText);\n copyCommentFromStringLiterals(headIndexes, templateHead);\n var _loop_20 = function (i) {\n var currentNode = getExpressionFromParenthesesOrExpression(nodes[i]);\n copyOperatorComments(i, currentNode);\n var _c = concatConsecutiveString(i + 1, nodes), newIndex = _c[0], subsequentText = _c[1], rawSubsequentText = _c[2], stringIndexes = _c[3];\n i = newIndex - 1;\n var isLast = i === nodes.length - 1;\n if (ts.isTemplateExpression(currentNode)) {\n var spans = ts.map(currentNode.templateSpans, function (span, index) {\n copyExpressionComments(span);\n var isLastSpan = index === currentNode.templateSpans.length - 1;\n var text = span.literal.text + (isLastSpan ? subsequentText : \"\");\n var rawText = getRawTextOfTemplate(span.literal) + (isLastSpan ? rawSubsequentText : \"\");\n return ts.factory.createTemplateSpan(span.expression, isLast\n ? ts.factory.createTemplateTail(text, rawText)\n : ts.factory.createTemplateMiddle(text, rawText));\n });\n templateSpans.push.apply(templateSpans, spans);\n }\n else {\n var templatePart = isLast\n ? ts.factory.createTemplateTail(subsequentText, rawSubsequentText)\n : ts.factory.createTemplateMiddle(subsequentText, rawSubsequentText);\n copyCommentFromStringLiterals(stringIndexes, templatePart);\n templateSpans.push(ts.factory.createTemplateSpan(currentNode, templatePart));\n }\n out_i_1 = i;\n };\n var out_i_1;\n for (var i = begin; i < nodes.length; i++) {\n _loop_20(i);\n i = out_i_1;\n }\n return ts.factory.createTemplateExpression(templateHead, templateSpans);\n }\n // to copy comments following the opening & closing parentheses\n // \"foo\" + ( /* comment */ 5 + 5 ) /* comment */ + \"bar\"\n function copyExpressionComments(node) {\n var file = node.getSourceFile();\n ts.copyTrailingComments(node, node.expression, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n ts.copyTrailingAsLeadingComments(node.expression, node.expression, file, 3 /* MultiLineCommentTrivia */, /* hasTrailingNewLine */ false);\n }\n function getExpressionFromParenthesesOrExpression(node) {\n if (ts.isParenthesizedExpression(node)) {\n copyExpressionComments(node);\n node = node.expression;\n }\n return node;\n }\n })(convertStringOrTemplateLiteral = refactor.convertStringOrTemplateLiteral || (refactor.convertStringOrTemplateLiteral = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var convertArrowFunctionOrFunctionExpression;\n (function (convertArrowFunctionOrFunctionExpression) {\n var refactorName = \"Convert arrow function or function expression\";\n var refactorDescription = ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_arrow_function_or_function_expression);\n var toAnonymousFunctionAction = {\n name: \"Convert to anonymous function\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_to_anonymous_function),\n kind: \"refactor.rewrite.function.anonymous\",\n };\n var toNamedFunctionAction = {\n name: \"Convert to named function\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_to_named_function),\n kind: \"refactor.rewrite.function.named\",\n };\n var toArrowFunctionAction = {\n name: \"Convert to arrow function\",\n description: ts.getLocaleSpecificMessage(ts.Diagnostics.Convert_to_arrow_function),\n kind: \"refactor.rewrite.function.arrow\",\n };\n refactor.registerRefactor(refactorName, {\n kinds: [\n toAnonymousFunctionAction.kind,\n toNamedFunctionAction.kind,\n toArrowFunctionAction.kind\n ],\n getEditsForAction: getEditsForAction,\n getAvailableActions: getAvailableActions\n });\n function getAvailableActions(context) {\n var file = context.file, startPosition = context.startPosition, program = context.program, kind = context.kind;\n var info = getFunctionInfo(file, startPosition, program);\n if (!info)\n return ts.emptyArray;\n var selectedVariableDeclaration = info.selectedVariableDeclaration, func = info.func;\n var possibleActions = [];\n var errors = [];\n if (refactor.refactorKindBeginsWith(toNamedFunctionAction.kind, kind)) {\n var error = selectedVariableDeclaration || (ts.isArrowFunction(func) && ts.isVariableDeclaration(func.parent)) ?\n undefined : ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_convert_to_named_function);\n if (error) {\n errors.push(__assign(__assign({}, toNamedFunctionAction), { notApplicableReason: error }));\n }\n else {\n possibleActions.push(toNamedFunctionAction);\n }\n }\n if (refactor.refactorKindBeginsWith(toAnonymousFunctionAction.kind, kind)) {\n var error = !selectedVariableDeclaration && ts.isArrowFunction(func) ?\n undefined : ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_convert_to_anonymous_function);\n if (error) {\n errors.push(__assign(__assign({}, toAnonymousFunctionAction), { notApplicableReason: error }));\n }\n else {\n possibleActions.push(toAnonymousFunctionAction);\n }\n }\n if (refactor.refactorKindBeginsWith(toArrowFunctionAction.kind, kind)) {\n var error = ts.isFunctionExpression(func) ? undefined : ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_convert_to_arrow_function);\n if (error) {\n errors.push(__assign(__assign({}, toArrowFunctionAction), { notApplicableReason: error }));\n }\n else {\n possibleActions.push(toArrowFunctionAction);\n }\n }\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: possibleActions.length === 0 && context.preferences.provideRefactorNotApplicableReason ?\n errors : possibleActions\n }];\n }\n function getEditsForAction(context, actionName) {\n var file = context.file, startPosition = context.startPosition, program = context.program;\n var info = getFunctionInfo(file, startPosition, program);\n if (!info)\n return undefined;\n var func = info.func;\n var edits = [];\n switch (actionName) {\n case toAnonymousFunctionAction.name:\n edits.push.apply(edits, getEditInfoForConvertToAnonymousFunction(context, func));\n break;\n case toNamedFunctionAction.name:\n var variableInfo = getVariableInfo(func);\n if (!variableInfo)\n return undefined;\n edits.push.apply(edits, getEditInfoForConvertToNamedFunction(context, func, variableInfo));\n break;\n case toArrowFunctionAction.name:\n if (!ts.isFunctionExpression(func))\n return undefined;\n edits.push.apply(edits, getEditInfoForConvertToArrowFunction(context, func));\n break;\n default:\n return ts.Debug.fail(\"invalid action\");\n }\n return { renameFilename: undefined, renameLocation: undefined, edits: edits };\n }\n function containingThis(node) {\n var containsThis = false;\n node.forEachChild(function checkThis(child) {\n if (ts.isThis(child)) {\n containsThis = true;\n return;\n }\n if (!ts.isClassLike(child) && !ts.isFunctionDeclaration(child) && !ts.isFunctionExpression(child)) {\n ts.forEachChild(child, checkThis);\n }\n });\n return containsThis;\n }\n function getFunctionInfo(file, startPosition, program) {\n var token = ts.getTokenAtPosition(file, startPosition);\n var typeChecker = program.getTypeChecker();\n var func = tryGetFunctionFromVariableDeclaration(file, typeChecker, token.parent);\n if (func && !containingThis(func.body) && !typeChecker.containsArgumentsReference(func)) {\n return { selectedVariableDeclaration: true, func: func };\n }\n var maybeFunc = ts.getContainingFunction(token);\n if (maybeFunc &&\n (ts.isFunctionExpression(maybeFunc) || ts.isArrowFunction(maybeFunc)) &&\n !ts.rangeContainsRange(maybeFunc.body, token) &&\n !containingThis(maybeFunc.body) &&\n !typeChecker.containsArgumentsReference(maybeFunc)) {\n if (ts.isFunctionExpression(maybeFunc) && isFunctionReferencedInFile(file, typeChecker, maybeFunc))\n return undefined;\n return { selectedVariableDeclaration: false, func: maybeFunc };\n }\n return undefined;\n }\n function isSingleVariableDeclaration(parent) {\n return ts.isVariableDeclaration(parent) || (ts.isVariableDeclarationList(parent) && parent.declarations.length === 1);\n }\n function tryGetFunctionFromVariableDeclaration(sourceFile, typeChecker, parent) {\n if (!isSingleVariableDeclaration(parent)) {\n return undefined;\n }\n var variableDeclaration = ts.isVariableDeclaration(parent) ? parent : ts.first(parent.declarations);\n var initializer = variableDeclaration.initializer;\n if (initializer && (ts.isArrowFunction(initializer) || ts.isFunctionExpression(initializer) && !isFunctionReferencedInFile(sourceFile, typeChecker, initializer))) {\n return initializer;\n }\n return undefined;\n }\n function convertToBlock(body) {\n if (ts.isExpression(body)) {\n var returnStatement = ts.factory.createReturnStatement(body);\n var file = body.getSourceFile();\n ts.suppressLeadingAndTrailingTrivia(returnStatement);\n ts.copyTrailingAsLeadingComments(body, returnStatement, file, /* commentKind */ undefined, /* hasTrailingNewLine */ true);\n return ts.factory.createBlock([returnStatement], /* multiLine */ true);\n }\n else {\n return body;\n }\n }\n function getVariableInfo(func) {\n var variableDeclaration = func.parent;\n if (!ts.isVariableDeclaration(variableDeclaration) || !ts.isVariableDeclarationInVariableStatement(variableDeclaration))\n return undefined;\n var variableDeclarationList = variableDeclaration.parent;\n var statement = variableDeclarationList.parent;\n if (!ts.isVariableDeclarationList(variableDeclarationList) || !ts.isVariableStatement(statement) || !ts.isIdentifier(variableDeclaration.name))\n return undefined;\n return { variableDeclaration: variableDeclaration, variableDeclarationList: variableDeclarationList, statement: statement, name: variableDeclaration.name };\n }\n function getEditInfoForConvertToAnonymousFunction(context, func) {\n var file = context.file;\n var body = convertToBlock(func.body);\n var newNode = ts.factory.createFunctionExpression(func.modifiers, func.asteriskToken, /* name */ undefined, func.typeParameters, func.parameters, func.type, body);\n return ts.textChanges.ChangeTracker.with(context, function (t) { return t.replaceNode(file, func, newNode); });\n }\n function getEditInfoForConvertToNamedFunction(context, func, variableInfo) {\n var file = context.file;\n var body = convertToBlock(func.body);\n var variableDeclaration = variableInfo.variableDeclaration, variableDeclarationList = variableInfo.variableDeclarationList, statement = variableInfo.statement, name = variableInfo.name;\n ts.suppressLeadingTrivia(statement);\n var modifiersFlags = (ts.getCombinedModifierFlags(variableDeclaration) & 1 /* Export */) | ts.getEffectiveModifierFlags(func);\n var modifiers = ts.factory.createModifiersFromModifierFlags(modifiersFlags);\n var newNode = ts.factory.createFunctionDeclaration(func.decorators, ts.length(modifiers) ? modifiers : undefined, func.asteriskToken, name, func.typeParameters, func.parameters, func.type, body);\n if (variableDeclarationList.declarations.length === 1) {\n return ts.textChanges.ChangeTracker.with(context, function (t) { return t.replaceNode(file, statement, newNode); });\n }\n else {\n return ts.textChanges.ChangeTracker.with(context, function (t) {\n t.delete(file, variableDeclaration);\n t.insertNodeAfter(file, statement, newNode);\n });\n }\n }\n function getEditInfoForConvertToArrowFunction(context, func) {\n var file = context.file;\n var statements = func.body.statements;\n var head = statements[0];\n var body;\n if (canBeConvertedToExpression(func.body, head)) {\n body = head.expression;\n ts.suppressLeadingAndTrailingTrivia(body);\n ts.copyComments(head, body);\n }\n else {\n body = func.body;\n }\n var newNode = ts.factory.createArrowFunction(func.modifiers, func.typeParameters, func.parameters, func.type, ts.factory.createToken(38 /* EqualsGreaterThanToken */), body);\n return ts.textChanges.ChangeTracker.with(context, function (t) { return t.replaceNode(file, func, newNode); });\n }\n function canBeConvertedToExpression(body, head) {\n return body.statements.length === 1 && ((ts.isReturnStatement(head) && !!head.expression));\n }\n function isFunctionReferencedInFile(sourceFile, typeChecker, node) {\n return !!node.name && ts.FindAllReferences.Core.isSymbolReferencedInFile(node.name, typeChecker, sourceFile);\n }\n })(convertArrowFunctionOrFunctionExpression = refactor.convertArrowFunctionOrFunctionExpression || (refactor.convertArrowFunctionOrFunctionExpression = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var refactor;\n (function (refactor) {\n var inferFunctionReturnType;\n (function (inferFunctionReturnType) {\n var refactorName = \"Infer function return type\";\n var refactorDescription = ts.Diagnostics.Infer_function_return_type.message;\n var inferReturnTypeAction = {\n name: refactorName,\n description: refactorDescription,\n kind: \"refactor.rewrite.function.returnType\"\n };\n refactor.registerRefactor(refactorName, {\n kinds: [inferReturnTypeAction.kind],\n getEditsForAction: getEditsForAction,\n getAvailableActions: getAvailableActions\n });\n function getEditsForAction(context) {\n var info = getInfo(context);\n if (info && !refactor.isRefactorErrorInfo(info)) {\n var edits = ts.textChanges.ChangeTracker.with(context, function (t) { return doChange(context.file, t, info.declaration, info.returnTypeNode); });\n return { renameFilename: undefined, renameLocation: undefined, edits: edits };\n }\n return undefined;\n }\n function getAvailableActions(context) {\n var info = getInfo(context);\n if (!info)\n return ts.emptyArray;\n if (!refactor.isRefactorErrorInfo(info)) {\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: [inferReturnTypeAction]\n }];\n }\n if (context.preferences.provideRefactorNotApplicableReason) {\n return [{\n name: refactorName,\n description: refactorDescription,\n actions: [__assign(__assign({}, inferReturnTypeAction), { notApplicableReason: info.error })]\n }];\n }\n return ts.emptyArray;\n }\n function doChange(sourceFile, changes, declaration, typeNode) {\n var closeParen = ts.findChildOfKind(declaration, 21 /* CloseParenToken */, sourceFile);\n var needParens = ts.isArrowFunction(declaration) && closeParen === undefined;\n var endNode = needParens ? ts.first(declaration.parameters) : closeParen;\n if (endNode) {\n if (needParens) {\n changes.insertNodeBefore(sourceFile, endNode, ts.factory.createToken(20 /* OpenParenToken */));\n changes.insertNodeAfter(sourceFile, endNode, ts.factory.createToken(21 /* CloseParenToken */));\n }\n changes.insertNodeAt(sourceFile, endNode.end, typeNode, { prefix: \": \" });\n }\n }\n function getInfo(context) {\n if (ts.isInJSFile(context.file) || !refactor.refactorKindBeginsWith(inferReturnTypeAction.kind, context.kind))\n return;\n var token = ts.getTokenAtPosition(context.file, context.startPosition);\n var declaration = ts.findAncestor(token, function (n) {\n return ts.isBlock(n) || n.parent && ts.isArrowFunction(n.parent) && (n.kind === 38 /* EqualsGreaterThanToken */ || n.parent.body === n) ? \"quit\" :\n isConvertibleDeclaration(n);\n });\n if (!declaration || !declaration.body || declaration.type) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Return_type_must_be_inferred_from_a_function) };\n }\n var typeChecker = context.program.getTypeChecker();\n var returnType = tryGetReturnType(typeChecker, declaration);\n if (!returnType) {\n return { error: ts.getLocaleSpecificMessage(ts.Diagnostics.Could_not_determine_function_return_type) };\n }\n var returnTypeNode = typeChecker.typeToTypeNode(returnType, declaration, 1 /* NoTruncation */);\n if (returnTypeNode) {\n return { declaration: declaration, returnTypeNode: returnTypeNode };\n }\n }\n function isConvertibleDeclaration(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n return true;\n default:\n return false;\n }\n }\n function tryGetReturnType(typeChecker, node) {\n if (typeChecker.isImplementationOfOverload(node)) {\n var signatures = typeChecker.getTypeAtLocation(node).getCallSignatures();\n if (signatures.length > 1) {\n return typeChecker.getUnionType(ts.mapDefined(signatures, function (s) { return s.getReturnType(); }));\n }\n }\n var signature = typeChecker.getSignatureFromDeclaration(node);\n if (signature) {\n return typeChecker.getReturnTypeOfSignature(signature);\n }\n }\n })(inferFunctionReturnType = refactor.inferFunctionReturnType || (refactor.inferFunctionReturnType = {}));\n })(refactor = ts.refactor || (ts.refactor = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /** The version of the language service API */\n ts.servicesVersion = \"0.8\";\n function createNode(kind, pos, end, parent) {\n var node = ts.isNodeKind(kind) ? new NodeObject(kind, pos, end) :\n kind === 79 /* Identifier */ ? new IdentifierObject(79 /* Identifier */, pos, end) :\n kind === 80 /* PrivateIdentifier */ ? new PrivateIdentifierObject(80 /* PrivateIdentifier */, pos, end) :\n new TokenObject(kind, pos, end);\n node.parent = parent;\n node.flags = parent.flags & 25358336 /* ContextFlags */;\n return node;\n }\n var NodeObject = /** @class */ (function () {\n function NodeObject(kind, pos, end) {\n this.pos = pos;\n this.end = end;\n this.flags = 0 /* None */;\n this.modifierFlagsCache = 0 /* None */;\n this.transformFlags = 0 /* None */;\n this.parent = undefined;\n this.kind = kind;\n }\n NodeObject.prototype.assertHasRealPosition = function (message) {\n // eslint-disable-next-line debug-assert\n ts.Debug.assert(!ts.positionIsSynthesized(this.pos) && !ts.positionIsSynthesized(this.end), message || \"Node must have a real position for this operation\");\n };\n NodeObject.prototype.getSourceFile = function () {\n return ts.getSourceFileOfNode(this);\n };\n NodeObject.prototype.getStart = function (sourceFile, includeJsDocComment) {\n this.assertHasRealPosition();\n return ts.getTokenPosOfNode(this, sourceFile, includeJsDocComment);\n };\n NodeObject.prototype.getFullStart = function () {\n this.assertHasRealPosition();\n return this.pos;\n };\n NodeObject.prototype.getEnd = function () {\n this.assertHasRealPosition();\n return this.end;\n };\n NodeObject.prototype.getWidth = function (sourceFile) {\n this.assertHasRealPosition();\n return this.getEnd() - this.getStart(sourceFile);\n };\n NodeObject.prototype.getFullWidth = function () {\n this.assertHasRealPosition();\n return this.end - this.pos;\n };\n NodeObject.prototype.getLeadingTriviaWidth = function (sourceFile) {\n this.assertHasRealPosition();\n return this.getStart(sourceFile) - this.pos;\n };\n NodeObject.prototype.getFullText = function (sourceFile) {\n this.assertHasRealPosition();\n return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);\n };\n NodeObject.prototype.getText = function (sourceFile) {\n this.assertHasRealPosition();\n if (!sourceFile) {\n sourceFile = this.getSourceFile();\n }\n return sourceFile.text.substring(this.getStart(sourceFile), this.getEnd());\n };\n NodeObject.prototype.getChildCount = function (sourceFile) {\n return this.getChildren(sourceFile).length;\n };\n NodeObject.prototype.getChildAt = function (index, sourceFile) {\n return this.getChildren(sourceFile)[index];\n };\n NodeObject.prototype.getChildren = function (sourceFile) {\n this.assertHasRealPosition(\"Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine\");\n return this._children || (this._children = createChildren(this, sourceFile));\n };\n NodeObject.prototype.getFirstToken = function (sourceFile) {\n this.assertHasRealPosition();\n var children = this.getChildren(sourceFile);\n if (!children.length) {\n return undefined;\n }\n var child = ts.find(children, function (kid) { return kid.kind < 304 /* FirstJSDocNode */ || kid.kind > 342 /* LastJSDocNode */; });\n return child.kind < 159 /* FirstNode */ ?\n child :\n child.getFirstToken(sourceFile);\n };\n NodeObject.prototype.getLastToken = function (sourceFile) {\n this.assertHasRealPosition();\n var children = this.getChildren(sourceFile);\n var child = ts.lastOrUndefined(children);\n if (!child) {\n return undefined;\n }\n return child.kind < 159 /* FirstNode */ ? child : child.getLastToken(sourceFile);\n };\n NodeObject.prototype.forEachChild = function (cbNode, cbNodeArray) {\n return ts.forEachChild(this, cbNode, cbNodeArray);\n };\n return NodeObject;\n }());\n function createChildren(node, sourceFile) {\n if (!ts.isNodeKind(node.kind)) {\n return ts.emptyArray;\n }\n var children = [];\n if (ts.isJSDocCommentContainingNode(node)) {\n /** Don't add trivia for \"tokens\" since this is in a comment. */\n node.forEachChild(function (child) { children.push(child); });\n return children;\n }\n ts.scanner.setText((sourceFile || node.getSourceFile()).text);\n var pos = node.pos;\n var processNode = function (child) {\n addSyntheticNodes(children, pos, child.pos, node);\n children.push(child);\n pos = child.end;\n };\n var processNodes = function (nodes) {\n addSyntheticNodes(children, pos, nodes.pos, node);\n children.push(createSyntaxList(nodes, node));\n pos = nodes.end;\n };\n // jsDocComments need to be the first children\n ts.forEach(node.jsDoc, processNode);\n // For syntactic classifications, all trivia are classified together, including jsdoc comments.\n // For that to work, the jsdoc comments should still be the leading trivia of the first child.\n // Restoring the scanner position ensures that.\n pos = node.pos;\n node.forEachChild(processNode, processNodes);\n addSyntheticNodes(children, pos, node.end, node);\n ts.scanner.setText(undefined);\n return children;\n }\n function addSyntheticNodes(nodes, pos, end, parent) {\n ts.scanner.setTextPos(pos);\n while (pos < end) {\n var token = ts.scanner.scan();\n var textPos = ts.scanner.getTextPos();\n if (textPos <= end) {\n if (token === 79 /* Identifier */) {\n ts.Debug.fail(\"Did not expect \" + ts.Debug.formatSyntaxKind(parent.kind) + \" to have an Identifier in its trivia\");\n }\n nodes.push(createNode(token, pos, textPos, parent));\n }\n pos = textPos;\n if (token === 1 /* EndOfFileToken */) {\n break;\n }\n }\n }\n function createSyntaxList(nodes, parent) {\n var list = createNode(343 /* SyntaxList */, nodes.pos, nodes.end, parent);\n list._children = [];\n var pos = nodes.pos;\n for (var _i = 0, nodes_2 = nodes; _i < nodes_2.length; _i++) {\n var node = nodes_2[_i];\n addSyntheticNodes(list._children, pos, node.pos, parent);\n list._children.push(node);\n pos = node.end;\n }\n addSyntheticNodes(list._children, pos, nodes.end, parent);\n return list;\n }\n var TokenOrIdentifierObject = /** @class */ (function () {\n function TokenOrIdentifierObject(pos, end) {\n // Set properties in same order as NodeObject\n this.pos = pos;\n this.end = end;\n this.flags = 0 /* None */;\n this.modifierFlagsCache = 0 /* None */;\n this.transformFlags = 0 /* None */;\n this.parent = undefined;\n }\n TokenOrIdentifierObject.prototype.getSourceFile = function () {\n return ts.getSourceFileOfNode(this);\n };\n TokenOrIdentifierObject.prototype.getStart = function (sourceFile, includeJsDocComment) {\n return ts.getTokenPosOfNode(this, sourceFile, includeJsDocComment);\n };\n TokenOrIdentifierObject.prototype.getFullStart = function () {\n return this.pos;\n };\n TokenOrIdentifierObject.prototype.getEnd = function () {\n return this.end;\n };\n TokenOrIdentifierObject.prototype.getWidth = function (sourceFile) {\n return this.getEnd() - this.getStart(sourceFile);\n };\n TokenOrIdentifierObject.prototype.getFullWidth = function () {\n return this.end - this.pos;\n };\n TokenOrIdentifierObject.prototype.getLeadingTriviaWidth = function (sourceFile) {\n return this.getStart(sourceFile) - this.pos;\n };\n TokenOrIdentifierObject.prototype.getFullText = function (sourceFile) {\n return (sourceFile || this.getSourceFile()).text.substring(this.pos, this.end);\n };\n TokenOrIdentifierObject.prototype.getText = function (sourceFile) {\n if (!sourceFile) {\n sourceFile = this.getSourceFile();\n }\n return sourceFile.text.substring(this.getStart(sourceFile), this.getEnd());\n };\n TokenOrIdentifierObject.prototype.getChildCount = function () {\n return this.getChildren().length;\n };\n TokenOrIdentifierObject.prototype.getChildAt = function (index) {\n return this.getChildren()[index];\n };\n TokenOrIdentifierObject.prototype.getChildren = function () {\n return this.kind === 1 /* EndOfFileToken */ ? this.jsDoc || ts.emptyArray : ts.emptyArray;\n };\n TokenOrIdentifierObject.prototype.getFirstToken = function () {\n return undefined;\n };\n TokenOrIdentifierObject.prototype.getLastToken = function () {\n return undefined;\n };\n TokenOrIdentifierObject.prototype.forEachChild = function () {\n return undefined;\n };\n return TokenOrIdentifierObject;\n }());\n var SymbolObject = /** @class */ (function () {\n function SymbolObject(flags, name) {\n this.flags = flags;\n this.escapedName = name;\n }\n SymbolObject.prototype.getFlags = function () {\n return this.flags;\n };\n Object.defineProperty(SymbolObject.prototype, \"name\", {\n get: function () {\n return ts.symbolName(this);\n },\n enumerable: false,\n configurable: true\n });\n SymbolObject.prototype.getEscapedName = function () {\n return this.escapedName;\n };\n SymbolObject.prototype.getName = function () {\n return this.name;\n };\n SymbolObject.prototype.getDeclarations = function () {\n return this.declarations;\n };\n SymbolObject.prototype.getDocumentationComment = function (checker) {\n if (!this.documentationComment) {\n this.documentationComment = ts.emptyArray; // Set temporarily to avoid an infinite loop finding inherited docs\n if (!this.declarations && this.target && this.target.tupleLabelDeclaration) {\n var labelDecl = this.target.tupleLabelDeclaration;\n this.documentationComment = getDocumentationComment([labelDecl], checker);\n }\n else {\n this.documentationComment = getDocumentationComment(this.declarations, checker);\n }\n }\n return this.documentationComment;\n };\n SymbolObject.prototype.getContextualDocumentationComment = function (context, checker) {\n switch (context === null || context === void 0 ? void 0 : context.kind) {\n case 170 /* GetAccessor */:\n if (!this.contextualGetAccessorDocumentationComment) {\n this.contextualGetAccessorDocumentationComment = ts.emptyArray;\n this.contextualGetAccessorDocumentationComment = getDocumentationComment(ts.filter(this.declarations, ts.isGetAccessor), checker);\n }\n return this.contextualGetAccessorDocumentationComment;\n case 171 /* SetAccessor */:\n if (!this.contextualSetAccessorDocumentationComment) {\n this.contextualSetAccessorDocumentationComment = ts.emptyArray;\n this.contextualSetAccessorDocumentationComment = getDocumentationComment(ts.filter(this.declarations, ts.isSetAccessor), checker);\n }\n return this.contextualSetAccessorDocumentationComment;\n default:\n return this.getDocumentationComment(checker);\n }\n };\n SymbolObject.prototype.getJsDocTags = function (checker) {\n if (this.tags === undefined) {\n this.tags = ts.JsDoc.getJsDocTagsFromDeclarations(this.declarations, checker);\n }\n return this.tags;\n };\n return SymbolObject;\n }());\n var TokenObject = /** @class */ (function (_super) {\n __extends(TokenObject, _super);\n function TokenObject(kind, pos, end) {\n var _this = _super.call(this, pos, end) || this;\n _this.kind = kind;\n return _this;\n }\n return TokenObject;\n }(TokenOrIdentifierObject));\n var IdentifierObject = /** @class */ (function (_super) {\n __extends(IdentifierObject, _super);\n function IdentifierObject(_kind, pos, end) {\n var _this = _super.call(this, pos, end) || this;\n _this.kind = 79 /* Identifier */;\n return _this;\n }\n Object.defineProperty(IdentifierObject.prototype, \"text\", {\n get: function () {\n return ts.idText(this);\n },\n enumerable: false,\n configurable: true\n });\n return IdentifierObject;\n }(TokenOrIdentifierObject));\n IdentifierObject.prototype.kind = 79 /* Identifier */;\n var PrivateIdentifierObject = /** @class */ (function (_super) {\n __extends(PrivateIdentifierObject, _super);\n function PrivateIdentifierObject(_kind, pos, end) {\n return _super.call(this, pos, end) || this;\n }\n Object.defineProperty(PrivateIdentifierObject.prototype, \"text\", {\n get: function () {\n return ts.idText(this);\n },\n enumerable: false,\n configurable: true\n });\n return PrivateIdentifierObject;\n }(TokenOrIdentifierObject));\n PrivateIdentifierObject.prototype.kind = 80 /* PrivateIdentifier */;\n var TypeObject = /** @class */ (function () {\n function TypeObject(checker, flags) {\n this.checker = checker;\n this.flags = flags;\n }\n TypeObject.prototype.getFlags = function () {\n return this.flags;\n };\n TypeObject.prototype.getSymbol = function () {\n return this.symbol;\n };\n TypeObject.prototype.getProperties = function () {\n return this.checker.getPropertiesOfType(this);\n };\n TypeObject.prototype.getProperty = function (propertyName) {\n return this.checker.getPropertyOfType(this, propertyName);\n };\n TypeObject.prototype.getApparentProperties = function () {\n return this.checker.getAugmentedPropertiesOfType(this);\n };\n TypeObject.prototype.getCallSignatures = function () {\n return this.checker.getSignaturesOfType(this, 0 /* Call */);\n };\n TypeObject.prototype.getConstructSignatures = function () {\n return this.checker.getSignaturesOfType(this, 1 /* Construct */);\n };\n TypeObject.prototype.getStringIndexType = function () {\n return this.checker.getIndexTypeOfType(this, 0 /* String */);\n };\n TypeObject.prototype.getNumberIndexType = function () {\n return this.checker.getIndexTypeOfType(this, 1 /* Number */);\n };\n TypeObject.prototype.getBaseTypes = function () {\n return this.isClassOrInterface() ? this.checker.getBaseTypes(this) : undefined;\n };\n TypeObject.prototype.isNullableType = function () {\n return this.checker.isNullableType(this);\n };\n TypeObject.prototype.getNonNullableType = function () {\n return this.checker.getNonNullableType(this);\n };\n TypeObject.prototype.getNonOptionalType = function () {\n return this.checker.getNonOptionalType(this);\n };\n TypeObject.prototype.getConstraint = function () {\n return this.checker.getBaseConstraintOfType(this);\n };\n TypeObject.prototype.getDefault = function () {\n return this.checker.getDefaultFromTypeParameter(this);\n };\n TypeObject.prototype.isUnion = function () {\n return !!(this.flags & 1048576 /* Union */);\n };\n TypeObject.prototype.isIntersection = function () {\n return !!(this.flags & 2097152 /* Intersection */);\n };\n TypeObject.prototype.isUnionOrIntersection = function () {\n return !!(this.flags & 3145728 /* UnionOrIntersection */);\n };\n TypeObject.prototype.isLiteral = function () {\n return !!(this.flags & 384 /* StringOrNumberLiteral */);\n };\n TypeObject.prototype.isStringLiteral = function () {\n return !!(this.flags & 128 /* StringLiteral */);\n };\n TypeObject.prototype.isNumberLiteral = function () {\n return !!(this.flags & 256 /* NumberLiteral */);\n };\n TypeObject.prototype.isTypeParameter = function () {\n return !!(this.flags & 262144 /* TypeParameter */);\n };\n TypeObject.prototype.isClassOrInterface = function () {\n return !!(ts.getObjectFlags(this) & 3 /* ClassOrInterface */);\n };\n TypeObject.prototype.isClass = function () {\n return !!(ts.getObjectFlags(this) & 1 /* Class */);\n };\n Object.defineProperty(TypeObject.prototype, \"typeArguments\", {\n /**\n * This polyfills `referenceType.typeArguments` for API consumers\n */\n get: function () {\n if (ts.getObjectFlags(this) & 4 /* Reference */) {\n return this.checker.getTypeArguments(this);\n }\n return undefined;\n },\n enumerable: false,\n configurable: true\n });\n return TypeObject;\n }());\n var SignatureObject = /** @class */ (function () {\n function SignatureObject(checker, flags) {\n this.checker = checker;\n this.flags = flags;\n }\n SignatureObject.prototype.getDeclaration = function () {\n return this.declaration;\n };\n SignatureObject.prototype.getTypeParameters = function () {\n return this.typeParameters;\n };\n SignatureObject.prototype.getParameters = function () {\n return this.parameters;\n };\n SignatureObject.prototype.getReturnType = function () {\n return this.checker.getReturnTypeOfSignature(this);\n };\n SignatureObject.prototype.getDocumentationComment = function () {\n return this.documentationComment || (this.documentationComment = getDocumentationComment(ts.singleElementArray(this.declaration), this.checker));\n };\n SignatureObject.prototype.getJsDocTags = function () {\n if (this.jsDocTags === undefined) {\n this.jsDocTags = this.declaration ? getJsDocTagsOfSignature(this.declaration, this.checker) : [];\n }\n return this.jsDocTags;\n };\n return SignatureObject;\n }());\n /**\n * Returns whether or not the given node has a JSDoc \"inheritDoc\" tag on it.\n * @param node the Node in question.\n * @returns `true` if `node` has a JSDoc \"inheritDoc\" tag on it, otherwise `false`.\n */\n function hasJSDocInheritDocTag(node) {\n return ts.getJSDocTags(node).some(function (tag) { return tag.tagName.text === \"inheritDoc\"; });\n }\n function getJsDocTagsOfSignature(declaration, checker) {\n var tags = ts.JsDoc.getJsDocTagsFromDeclarations([declaration], checker);\n if (tags.length === 0 || hasJSDocInheritDocTag(declaration)) {\n var inheritedTags = findBaseOfDeclaration(checker, declaration, function (symbol) { var _a; return ((_a = symbol.declarations) === null || _a === void 0 ? void 0 : _a.length) === 1 ? symbol.getJsDocTags() : undefined; });\n if (inheritedTags) {\n tags = __spreadArray(__spreadArray([], inheritedTags, true), tags, true);\n }\n }\n return tags;\n }\n function getDocumentationComment(declarations, checker) {\n if (!declarations)\n return ts.emptyArray;\n var doc = ts.JsDoc.getJsDocCommentsFromDeclarations(declarations, checker);\n if (checker && (doc.length === 0 || declarations.some(hasJSDocInheritDocTag))) {\n var seenSymbols_1 = new ts.Set();\n for (var _i = 0, declarations_4 = declarations; _i < declarations_4.length; _i++) {\n var declaration = declarations_4[_i];\n var inheritedDocs = findBaseOfDeclaration(checker, declaration, function (symbol) {\n if (!seenSymbols_1.has(symbol)) {\n seenSymbols_1.add(symbol);\n return symbol.getDocumentationComment(checker);\n }\n });\n // TODO: GH#16312 Return a ReadonlyArray, avoid copying inheritedDocs\n if (inheritedDocs)\n doc = doc.length === 0 ? inheritedDocs.slice() : inheritedDocs.concat(ts.lineBreakPart(), doc);\n }\n }\n return doc;\n }\n function findBaseOfDeclaration(checker, declaration, cb) {\n var _a;\n var classOrInterfaceDeclaration = ((_a = declaration.parent) === null || _a === void 0 ? void 0 : _a.kind) === 169 /* Constructor */ ? declaration.parent.parent : declaration.parent;\n if (!classOrInterfaceDeclaration) {\n return;\n }\n return ts.firstDefined(ts.getAllSuperTypeNodes(classOrInterfaceDeclaration), function (superTypeNode) {\n var symbol = checker.getPropertyOfType(checker.getTypeAtLocation(superTypeNode), declaration.symbol.name);\n return symbol ? cb(symbol) : undefined;\n });\n }\n var SourceFileObject = /** @class */ (function (_super) {\n __extends(SourceFileObject, _super);\n function SourceFileObject(kind, pos, end) {\n var _this = _super.call(this, kind, pos, end) || this;\n _this.kind = 300 /* SourceFile */;\n return _this;\n }\n SourceFileObject.prototype.update = function (newText, textChangeRange) {\n return ts.updateSourceFile(this, newText, textChangeRange);\n };\n SourceFileObject.prototype.getLineAndCharacterOfPosition = function (position) {\n return ts.getLineAndCharacterOfPosition(this, position);\n };\n SourceFileObject.prototype.getLineStarts = function () {\n return ts.getLineStarts(this);\n };\n SourceFileObject.prototype.getPositionOfLineAndCharacter = function (line, character, allowEdits) {\n return ts.computePositionOfLineAndCharacter(ts.getLineStarts(this), line, character, this.text, allowEdits);\n };\n SourceFileObject.prototype.getLineEndOfPosition = function (pos) {\n var line = this.getLineAndCharacterOfPosition(pos).line;\n var lineStarts = this.getLineStarts();\n var lastCharPos;\n if (line + 1 >= lineStarts.length) {\n lastCharPos = this.getEnd();\n }\n if (!lastCharPos) {\n lastCharPos = lineStarts[line + 1] - 1;\n }\n var fullText = this.getFullText();\n // if the new line is \"\\r\\n\", we should return the last non-new-line-character position\n return fullText[lastCharPos] === \"\\n\" && fullText[lastCharPos - 1] === \"\\r\" ? lastCharPos - 1 : lastCharPos;\n };\n SourceFileObject.prototype.getNamedDeclarations = function () {\n if (!this.namedDeclarations) {\n this.namedDeclarations = this.computeNamedDeclarations();\n }\n return this.namedDeclarations;\n };\n SourceFileObject.prototype.computeNamedDeclarations = function () {\n var result = ts.createMultiMap();\n this.forEachChild(visit);\n return result;\n function addDeclaration(declaration) {\n var name = getDeclarationName(declaration);\n if (name) {\n result.add(name, declaration);\n }\n }\n function getDeclarations(name) {\n var declarations = result.get(name);\n if (!declarations) {\n result.set(name, declarations = []);\n }\n return declarations;\n }\n function getDeclarationName(declaration) {\n var name = ts.getNonAssignedNameOfDeclaration(declaration);\n return name && (ts.isComputedPropertyName(name) && ts.isPropertyAccessExpression(name.expression) ? name.expression.name.text\n : ts.isPropertyName(name) ? ts.getNameFromPropertyName(name) : undefined);\n }\n function visit(node) {\n switch (node.kind) {\n case 254 /* FunctionDeclaration */:\n case 211 /* FunctionExpression */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n var functionDeclaration = node;\n var declarationName = getDeclarationName(functionDeclaration);\n if (declarationName) {\n var declarations = getDeclarations(declarationName);\n var lastDeclaration = ts.lastOrUndefined(declarations);\n // Check whether this declaration belongs to an \"overload group\".\n if (lastDeclaration && functionDeclaration.parent === lastDeclaration.parent && functionDeclaration.symbol === lastDeclaration.symbol) {\n // Overwrite the last declaration if it was an overload\n // and this one is an implementation.\n if (functionDeclaration.body && !lastDeclaration.body) {\n declarations[declarations.length - 1] = functionDeclaration;\n }\n }\n else {\n declarations.push(functionDeclaration);\n }\n }\n ts.forEachChild(node, visit);\n break;\n case 255 /* ClassDeclaration */:\n case 224 /* ClassExpression */:\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n case 258 /* EnumDeclaration */:\n case 259 /* ModuleDeclaration */:\n case 263 /* ImportEqualsDeclaration */:\n case 273 /* ExportSpecifier */:\n case 268 /* ImportSpecifier */:\n case 265 /* ImportClause */:\n case 266 /* NamespaceImport */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 180 /* TypeLiteral */:\n addDeclaration(node);\n ts.forEachChild(node, visit);\n break;\n case 162 /* Parameter */:\n // Only consider parameter properties\n if (!ts.hasSyntacticModifier(node, 16476 /* ParameterPropertyModifier */)) {\n break;\n }\n // falls through\n case 252 /* VariableDeclaration */:\n case 201 /* BindingElement */: {\n var decl = node;\n if (ts.isBindingPattern(decl.name)) {\n ts.forEachChild(decl.name, visit);\n break;\n }\n if (decl.initializer) {\n visit(decl.initializer);\n }\n }\n // falls through\n case 294 /* EnumMember */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n addDeclaration(node);\n break;\n case 270 /* ExportDeclaration */:\n // Handle named exports case e.g.:\n // export {a, b as B} from \"mod\";\n var exportDeclaration = node;\n if (exportDeclaration.exportClause) {\n if (ts.isNamedExports(exportDeclaration.exportClause)) {\n ts.forEach(exportDeclaration.exportClause.elements, visit);\n }\n else {\n visit(exportDeclaration.exportClause.name);\n }\n }\n break;\n case 264 /* ImportDeclaration */:\n var importClause = node.importClause;\n if (importClause) {\n // Handle default import case e.g.:\n // import d from \"mod\";\n if (importClause.name) {\n addDeclaration(importClause.name);\n }\n // Handle named bindings in imports e.g.:\n // import * as NS from \"mod\";\n // import {a, b as B} from \"mod\";\n if (importClause.namedBindings) {\n if (importClause.namedBindings.kind === 266 /* NamespaceImport */) {\n addDeclaration(importClause.namedBindings);\n }\n else {\n ts.forEach(importClause.namedBindings.elements, visit);\n }\n }\n }\n break;\n case 219 /* BinaryExpression */:\n if (ts.getAssignmentDeclarationKind(node) !== 0 /* None */) {\n addDeclaration(node);\n }\n // falls through\n default:\n ts.forEachChild(node, visit);\n }\n }\n };\n return SourceFileObject;\n }(NodeObject));\n var SourceMapSourceObject = /** @class */ (function () {\n function SourceMapSourceObject(fileName, text, skipTrivia) {\n this.fileName = fileName;\n this.text = text;\n this.skipTrivia = skipTrivia;\n }\n SourceMapSourceObject.prototype.getLineAndCharacterOfPosition = function (pos) {\n return ts.getLineAndCharacterOfPosition(this, pos);\n };\n return SourceMapSourceObject;\n }());\n function getServicesObjectAllocator() {\n return {\n getNodeConstructor: function () { return NodeObject; },\n getTokenConstructor: function () { return TokenObject; },\n getIdentifierConstructor: function () { return IdentifierObject; },\n getPrivateIdentifierConstructor: function () { return PrivateIdentifierObject; },\n getSourceFileConstructor: function () { return SourceFileObject; },\n getSymbolConstructor: function () { return SymbolObject; },\n getTypeConstructor: function () { return TypeObject; },\n getSignatureConstructor: function () { return SignatureObject; },\n getSourceMapSourceConstructor: function () { return SourceMapSourceObject; },\n };\n }\n function toEditorSettings(optionsAsMap) {\n var allPropertiesAreCamelCased = true;\n for (var key in optionsAsMap) {\n if (ts.hasProperty(optionsAsMap, key) && !isCamelCase(key)) {\n allPropertiesAreCamelCased = false;\n break;\n }\n }\n if (allPropertiesAreCamelCased) {\n return optionsAsMap;\n }\n var settings = {};\n for (var key in optionsAsMap) {\n if (ts.hasProperty(optionsAsMap, key)) {\n var newKey = isCamelCase(key) ? key : key.charAt(0).toLowerCase() + key.substr(1);\n settings[newKey] = optionsAsMap[key];\n }\n }\n return settings;\n }\n ts.toEditorSettings = toEditorSettings;\n function isCamelCase(s) {\n return !s.length || s.charAt(0) === s.charAt(0).toLowerCase();\n }\n function displayPartsToString(displayParts) {\n if (displayParts) {\n return ts.map(displayParts, function (displayPart) { return displayPart.text; }).join(\"\");\n }\n return \"\";\n }\n ts.displayPartsToString = displayPartsToString;\n function getDefaultCompilerOptions() {\n // Always default to \"ScriptTarget.ES5\" for the language service\n return {\n target: 1 /* ES5 */,\n jsx: 1 /* Preserve */\n };\n }\n ts.getDefaultCompilerOptions = getDefaultCompilerOptions;\n function getSupportedCodeFixes() {\n return ts.codefix.getSupportedErrorCodes();\n }\n ts.getSupportedCodeFixes = getSupportedCodeFixes;\n // Cache host information about script Should be refreshed\n // at each language service public entry point, since we don't know when\n // the set of scripts handled by the host changes.\n var HostCache = /** @class */ (function () {\n function HostCache(host, getCanonicalFileName) {\n this.host = host;\n // script id => script index\n this.currentDirectory = host.getCurrentDirectory();\n this.fileNameToEntry = new ts.Map();\n // Initialize the list with the root file names\n var rootFileNames = host.getScriptFileNames();\n for (var _i = 0, rootFileNames_1 = rootFileNames; _i < rootFileNames_1.length; _i++) {\n var fileName = rootFileNames_1[_i];\n this.createEntry(fileName, ts.toPath(fileName, this.currentDirectory, getCanonicalFileName));\n }\n }\n HostCache.prototype.createEntry = function (fileName, path) {\n var entry;\n var scriptSnapshot = this.host.getScriptSnapshot(fileName);\n if (scriptSnapshot) {\n entry = {\n hostFileName: fileName,\n version: this.host.getScriptVersion(fileName),\n scriptSnapshot: scriptSnapshot,\n scriptKind: ts.getScriptKind(fileName, this.host)\n };\n }\n else {\n entry = fileName;\n }\n this.fileNameToEntry.set(path, entry);\n return entry;\n };\n HostCache.prototype.getEntryByPath = function (path) {\n return this.fileNameToEntry.get(path);\n };\n HostCache.prototype.getHostFileInformation = function (path) {\n var entry = this.fileNameToEntry.get(path);\n return !ts.isString(entry) ? entry : undefined;\n };\n HostCache.prototype.getOrCreateEntryByPath = function (fileName, path) {\n var info = this.getEntryByPath(path) || this.createEntry(fileName, path);\n return ts.isString(info) ? undefined : info; // TODO: GH#18217\n };\n HostCache.prototype.getRootFileNames = function () {\n var names = [];\n this.fileNameToEntry.forEach(function (entry) {\n if (ts.isString(entry)) {\n names.push(entry);\n }\n else {\n names.push(entry.hostFileName);\n }\n });\n return names;\n };\n HostCache.prototype.getScriptSnapshot = function (path) {\n var file = this.getHostFileInformation(path);\n return (file && file.scriptSnapshot); // TODO: GH#18217\n };\n return HostCache;\n }());\n var SyntaxTreeCache = /** @class */ (function () {\n function SyntaxTreeCache(host) {\n this.host = host;\n }\n SyntaxTreeCache.prototype.getCurrentSourceFile = function (fileName) {\n var scriptSnapshot = this.host.getScriptSnapshot(fileName);\n if (!scriptSnapshot) {\n // The host does not know about this file.\n throw new Error(\"Could not find file: '\" + fileName + \"'.\");\n }\n var scriptKind = ts.getScriptKind(fileName, this.host);\n var version = this.host.getScriptVersion(fileName);\n var sourceFile;\n if (this.currentFileName !== fileName) {\n // This is a new file, just parse it\n sourceFile = createLanguageServiceSourceFile(fileName, scriptSnapshot, 99 /* Latest */, version, /*setNodeParents*/ true, scriptKind);\n }\n else if (this.currentFileVersion !== version) {\n // This is the same file, just a newer version. Incrementally parse the file.\n var editRange = scriptSnapshot.getChangeRange(this.currentFileScriptSnapshot);\n sourceFile = updateLanguageServiceSourceFile(this.currentSourceFile, scriptSnapshot, version, editRange);\n }\n if (sourceFile) {\n // All done, ensure state is up to date\n this.currentFileVersion = version;\n this.currentFileName = fileName;\n this.currentFileScriptSnapshot = scriptSnapshot;\n this.currentSourceFile = sourceFile;\n }\n return this.currentSourceFile;\n };\n return SyntaxTreeCache;\n }());\n function setSourceFileFields(sourceFile, scriptSnapshot, version) {\n sourceFile.version = version;\n sourceFile.scriptSnapshot = scriptSnapshot;\n }\n function createLanguageServiceSourceFile(fileName, scriptSnapshot, scriptTarget, version, setNodeParents, scriptKind) {\n var sourceFile = ts.createSourceFile(fileName, ts.getSnapshotText(scriptSnapshot), scriptTarget, setNodeParents, scriptKind);\n setSourceFileFields(sourceFile, scriptSnapshot, version);\n return sourceFile;\n }\n ts.createLanguageServiceSourceFile = createLanguageServiceSourceFile;\n function updateLanguageServiceSourceFile(sourceFile, scriptSnapshot, version, textChangeRange, aggressiveChecks) {\n // If we were given a text change range, and our version or open-ness changed, then\n // incrementally parse this file.\n if (textChangeRange) {\n if (version !== sourceFile.version) {\n var newText = void 0;\n // grab the fragment from the beginning of the original text to the beginning of the span\n var prefix = textChangeRange.span.start !== 0\n ? sourceFile.text.substr(0, textChangeRange.span.start)\n : \"\";\n // grab the fragment from the end of the span till the end of the original text\n var suffix = ts.textSpanEnd(textChangeRange.span) !== sourceFile.text.length\n ? sourceFile.text.substr(ts.textSpanEnd(textChangeRange.span))\n : \"\";\n if (textChangeRange.newLength === 0) {\n // edit was a deletion - just combine prefix and suffix\n newText = prefix && suffix ? prefix + suffix : prefix || suffix;\n }\n else {\n // it was actual edit, fetch the fragment of new text that correspond to new span\n var changedText = scriptSnapshot.getText(textChangeRange.span.start, textChangeRange.span.start + textChangeRange.newLength);\n // combine prefix, changed text and suffix\n newText = prefix && suffix\n ? prefix + changedText + suffix\n : prefix\n ? (prefix + changedText)\n : (changedText + suffix);\n }\n var newSourceFile = ts.updateSourceFile(sourceFile, newText, textChangeRange, aggressiveChecks);\n setSourceFileFields(newSourceFile, scriptSnapshot, version);\n // after incremental parsing nameTable might not be up-to-date\n // drop it so it can be lazily recreated later\n newSourceFile.nameTable = undefined;\n // dispose all resources held by old script snapshot\n if (sourceFile !== newSourceFile && sourceFile.scriptSnapshot) {\n if (sourceFile.scriptSnapshot.dispose) {\n sourceFile.scriptSnapshot.dispose();\n }\n sourceFile.scriptSnapshot = undefined;\n }\n return newSourceFile;\n }\n }\n // Otherwise, just create a new source file.\n return createLanguageServiceSourceFile(sourceFile.fileName, scriptSnapshot, sourceFile.languageVersion, version, /*setNodeParents*/ true, sourceFile.scriptKind);\n }\n ts.updateLanguageServiceSourceFile = updateLanguageServiceSourceFile;\n var NoopCancellationToken = {\n isCancellationRequested: ts.returnFalse,\n throwIfCancellationRequested: ts.noop,\n };\n var CancellationTokenObject = /** @class */ (function () {\n function CancellationTokenObject(cancellationToken) {\n this.cancellationToken = cancellationToken;\n }\n CancellationTokenObject.prototype.isCancellationRequested = function () {\n return this.cancellationToken.isCancellationRequested();\n };\n CancellationTokenObject.prototype.throwIfCancellationRequested = function () {\n if (this.isCancellationRequested()) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"session\" /* Session */, \"cancellationThrown\", { kind: \"CancellationTokenObject\" });\n throw new ts.OperationCanceledException();\n }\n };\n return CancellationTokenObject;\n }());\n /* @internal */\n /** A cancellation that throttles calls to the host */\n var ThrottledCancellationToken = /** @class */ (function () {\n function ThrottledCancellationToken(hostCancellationToken, throttleWaitMilliseconds) {\n if (throttleWaitMilliseconds === void 0) { throttleWaitMilliseconds = 20; }\n this.hostCancellationToken = hostCancellationToken;\n this.throttleWaitMilliseconds = throttleWaitMilliseconds;\n // Store when we last tried to cancel. Checking cancellation can be expensive (as we have\n // to marshall over to the host layer). So we only bother actually checking once enough\n // time has passed.\n this.lastCancellationCheckTime = 0;\n }\n ThrottledCancellationToken.prototype.isCancellationRequested = function () {\n var time = ts.timestamp();\n var duration = Math.abs(time - this.lastCancellationCheckTime);\n if (duration >= this.throttleWaitMilliseconds) {\n // Check no more than once every throttle wait milliseconds\n this.lastCancellationCheckTime = time;\n return this.hostCancellationToken.isCancellationRequested();\n }\n return false;\n };\n ThrottledCancellationToken.prototype.throwIfCancellationRequested = function () {\n if (this.isCancellationRequested()) {\n ts.tracing === null || ts.tracing === void 0 ? void 0 : ts.tracing.instant(\"session\" /* Session */, \"cancellationThrown\", { kind: \"ThrottledCancellationToken\" });\n throw new ts.OperationCanceledException();\n }\n };\n return ThrottledCancellationToken;\n }());\n ts.ThrottledCancellationToken = ThrottledCancellationToken;\n var invalidOperationsInPartialSemanticMode = [\n \"getSemanticDiagnostics\",\n \"getSuggestionDiagnostics\",\n \"getCompilerOptionsDiagnostics\",\n \"getSemanticClassifications\",\n \"getEncodedSemanticClassifications\",\n \"getCodeFixesAtPosition\",\n \"getCombinedCodeFix\",\n \"applyCodeActionCommand\",\n \"organizeImports\",\n \"getEditsForFileRename\",\n \"getEmitOutput\",\n \"getApplicableRefactors\",\n \"getEditsForRefactor\",\n \"prepareCallHierarchy\",\n \"provideCallHierarchyIncomingCalls\",\n \"provideCallHierarchyOutgoingCalls\",\n \"provideInlayHints\"\n ];\n var invalidOperationsInSyntacticMode = __spreadArray(__spreadArray([], invalidOperationsInPartialSemanticMode, true), [\n \"getCompletionsAtPosition\",\n \"getCompletionEntryDetails\",\n \"getCompletionEntrySymbol\",\n \"getSignatureHelpItems\",\n \"getQuickInfoAtPosition\",\n \"getDefinitionAtPosition\",\n \"getDefinitionAndBoundSpan\",\n \"getImplementationAtPosition\",\n \"getTypeDefinitionAtPosition\",\n \"getReferencesAtPosition\",\n \"findReferences\",\n \"getOccurrencesAtPosition\",\n \"getDocumentHighlights\",\n \"getNavigateToItems\",\n \"getRenameInfo\",\n \"findRenameLocations\",\n \"getApplicableRefactors\",\n ], false);\n function createLanguageService(host, documentRegistry, syntaxOnlyOrLanguageServiceMode) {\n var _a;\n if (documentRegistry === void 0) { documentRegistry = ts.createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory()); }\n var languageServiceMode;\n if (syntaxOnlyOrLanguageServiceMode === undefined) {\n languageServiceMode = ts.LanguageServiceMode.Semantic;\n }\n else if (typeof syntaxOnlyOrLanguageServiceMode === \"boolean\") {\n // languageServiceMode = SyntaxOnly\n languageServiceMode = syntaxOnlyOrLanguageServiceMode ? ts.LanguageServiceMode.Syntactic : ts.LanguageServiceMode.Semantic;\n }\n else {\n languageServiceMode = syntaxOnlyOrLanguageServiceMode;\n }\n var syntaxTreeCache = new SyntaxTreeCache(host);\n var program;\n var lastProjectVersion;\n var lastTypesRootVersion = 0;\n var cancellationToken = host.getCancellationToken\n ? new CancellationTokenObject(host.getCancellationToken())\n : NoopCancellationToken;\n var currentDirectory = host.getCurrentDirectory();\n // Check if the localized messages json is set, otherwise query the host for it\n if (!ts.localizedDiagnosticMessages && host.getLocalizedDiagnosticMessages) {\n ts.setLocalizedDiagnosticMessages(host.getLocalizedDiagnosticMessages());\n }\n function log(message) {\n if (host.log) {\n host.log(message);\n }\n }\n var useCaseSensitiveFileNames = ts.hostUsesCaseSensitiveFileNames(host);\n var getCanonicalFileName = ts.createGetCanonicalFileName(useCaseSensitiveFileNames);\n var sourceMapper = ts.getSourceMapper({\n useCaseSensitiveFileNames: function () { return useCaseSensitiveFileNames; },\n getCurrentDirectory: function () { return currentDirectory; },\n getProgram: getProgram,\n fileExists: ts.maybeBind(host, host.fileExists),\n readFile: ts.maybeBind(host, host.readFile),\n getDocumentPositionMapper: ts.maybeBind(host, host.getDocumentPositionMapper),\n getSourceFileLike: ts.maybeBind(host, host.getSourceFileLike),\n log: log\n });\n function getValidSourceFile(fileName) {\n var sourceFile = program.getSourceFile(fileName);\n if (!sourceFile) {\n var error = new Error(\"Could not find source file: '\" + fileName + \"'.\");\n // We've been having trouble debugging this, so attach sidecar data for the tsserver log.\n // See https://github.com/microsoft/TypeScript/issues/30180.\n error.ProgramFiles = program.getSourceFiles().map(function (f) { return f.fileName; });\n throw error;\n }\n return sourceFile;\n }\n function synchronizeHostData() {\n var _a, _b, _c;\n ts.Debug.assert(languageServiceMode !== ts.LanguageServiceMode.Syntactic);\n // perform fast check if host supports it\n if (host.getProjectVersion) {\n var hostProjectVersion = host.getProjectVersion();\n if (hostProjectVersion) {\n if (lastProjectVersion === hostProjectVersion && !((_a = host.hasChangedAutomaticTypeDirectiveNames) === null || _a === void 0 ? void 0 : _a.call(host))) {\n return;\n }\n lastProjectVersion = hostProjectVersion;\n }\n }\n var typeRootsVersion = host.getTypeRootsVersion ? host.getTypeRootsVersion() : 0;\n if (lastTypesRootVersion !== typeRootsVersion) {\n log(\"TypeRoots version has changed; provide new program\");\n program = undefined; // TODO: GH#18217\n lastTypesRootVersion = typeRootsVersion;\n }\n // Get a fresh cache of the host information\n var hostCache = new HostCache(host, getCanonicalFileName);\n var rootFileNames = hostCache.getRootFileNames();\n var newSettings = host.getCompilationSettings() || getDefaultCompilerOptions();\n var hasInvalidatedResolution = host.hasInvalidatedResolution || ts.returnFalse;\n var hasChangedAutomaticTypeDirectiveNames = ts.maybeBind(host, host.hasChangedAutomaticTypeDirectiveNames);\n var projectReferences = (_b = host.getProjectReferences) === null || _b === void 0 ? void 0 : _b.call(host);\n var parsedCommandLines;\n var parseConfigHost = {\n useCaseSensitiveFileNames: useCaseSensitiveFileNames,\n fileExists: fileExists,\n readFile: readFile,\n readDirectory: readDirectory,\n trace: ts.maybeBind(host, host.trace),\n getCurrentDirectory: function () { return currentDirectory; },\n onUnRecoverableConfigFileDiagnostic: ts.noop,\n };\n // If the program is already up-to-date, we can reuse it\n if (ts.isProgramUptoDate(program, rootFileNames, newSettings, function (_path, fileName) { return host.getScriptVersion(fileName); }, fileExists, hasInvalidatedResolution, hasChangedAutomaticTypeDirectiveNames, getParsedCommandLine, projectReferences)) {\n return;\n }\n // IMPORTANT - It is critical from this moment onward that we do not check\n // cancellation tokens. We are about to mutate source files from a previous program\n // instance. If we cancel midway through, we may end up in an inconsistent state where\n // the program points to old source files that have been invalidated because of\n // incremental parsing.\n // Now create a new compiler\n var compilerHost = {\n getSourceFile: getOrCreateSourceFile,\n getSourceFileByPath: getOrCreateSourceFileByPath,\n getCancellationToken: function () { return cancellationToken; },\n getCanonicalFileName: getCanonicalFileName,\n useCaseSensitiveFileNames: function () { return useCaseSensitiveFileNames; },\n getNewLine: function () { return ts.getNewLineCharacter(newSettings, function () { return ts.getNewLineOrDefaultFromHost(host); }); },\n getDefaultLibFileName: function (options) { return host.getDefaultLibFileName(options); },\n writeFile: ts.noop,\n getCurrentDirectory: function () { return currentDirectory; },\n fileExists: fileExists,\n readFile: readFile,\n getSymlinkCache: ts.maybeBind(host, host.getSymlinkCache),\n realpath: ts.maybeBind(host, host.realpath),\n directoryExists: function (directoryName) {\n return ts.directoryProbablyExists(directoryName, host);\n },\n getDirectories: function (path) {\n return host.getDirectories ? host.getDirectories(path) : [];\n },\n readDirectory: readDirectory,\n onReleaseOldSourceFile: onReleaseOldSourceFile,\n onReleaseParsedCommandLine: onReleaseParsedCommandLine,\n hasInvalidatedResolution: hasInvalidatedResolution,\n hasChangedAutomaticTypeDirectiveNames: hasChangedAutomaticTypeDirectiveNames,\n trace: parseConfigHost.trace,\n resolveModuleNames: ts.maybeBind(host, host.resolveModuleNames),\n resolveTypeReferenceDirectives: ts.maybeBind(host, host.resolveTypeReferenceDirectives),\n useSourceOfProjectReferenceRedirect: ts.maybeBind(host, host.useSourceOfProjectReferenceRedirect),\n getParsedCommandLine: getParsedCommandLine,\n };\n (_c = host.setCompilerHost) === null || _c === void 0 ? void 0 : _c.call(host, compilerHost);\n var documentRegistryBucketKey = documentRegistry.getKeyForCompilationSettings(newSettings);\n var options = {\n rootNames: rootFileNames,\n options: newSettings,\n host: compilerHost,\n oldProgram: program,\n projectReferences: projectReferences\n };\n program = ts.createProgram(options);\n // hostCache is captured in the closure for 'getOrCreateSourceFile' but it should not be used past this point.\n // It needs to be cleared to allow all collected snapshots to be released\n hostCache = undefined;\n parsedCommandLines = undefined;\n // We reset this cache on structure invalidation so we don't hold on to outdated files for long; however we can't use the `compilerHost` above,\n // Because it only functions until `hostCache` is cleared, while we'll potentially need the functionality to lazily read sourcemap files during\n // the course of whatever called `synchronizeHostData`\n sourceMapper.clearCache();\n // Make sure all the nodes in the program are both bound, and have their parent\n // pointers set property.\n program.getTypeChecker();\n return;\n function getParsedCommandLine(fileName) {\n var path = ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n var existing = parsedCommandLines === null || parsedCommandLines === void 0 ? void 0 : parsedCommandLines.get(path);\n if (existing !== undefined)\n return existing || undefined;\n var result = host.getParsedCommandLine ?\n host.getParsedCommandLine(fileName) :\n getParsedCommandLineOfConfigFileUsingSourceFile(fileName);\n (parsedCommandLines || (parsedCommandLines = new ts.Map())).set(path, result || false);\n return result;\n }\n function getParsedCommandLineOfConfigFileUsingSourceFile(configFileName) {\n var result = getOrCreateSourceFile(configFileName, 100 /* JSON */);\n if (!result)\n return undefined;\n result.path = ts.toPath(configFileName, currentDirectory, getCanonicalFileName);\n result.resolvedPath = result.path;\n result.originalFileName = result.fileName;\n return ts.parseJsonSourceFileConfigFileContent(result, parseConfigHost, ts.getNormalizedAbsolutePath(ts.getDirectoryPath(configFileName), currentDirectory), \n /*optionsToExtend*/ undefined, ts.getNormalizedAbsolutePath(configFileName, currentDirectory));\n }\n function onReleaseParsedCommandLine(configFileName, oldResolvedRef, oldOptions) {\n var _a;\n if (host.getParsedCommandLine) {\n (_a = host.onReleaseParsedCommandLine) === null || _a === void 0 ? void 0 : _a.call(host, configFileName, oldResolvedRef, oldOptions);\n }\n else if (oldResolvedRef) {\n onReleaseOldSourceFile(oldResolvedRef.sourceFile, oldOptions);\n }\n }\n function fileExists(fileName) {\n var path = ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n var entry = hostCache && hostCache.getEntryByPath(path);\n return entry ?\n !ts.isString(entry) :\n (!!host.fileExists && host.fileExists(fileName));\n }\n function readFile(fileName) {\n // stub missing host functionality\n var path = ts.toPath(fileName, currentDirectory, getCanonicalFileName);\n var entry = hostCache && hostCache.getEntryByPath(path);\n if (entry) {\n return ts.isString(entry) ? undefined : ts.getSnapshotText(entry.scriptSnapshot);\n }\n return host.readFile && host.readFile(fileName);\n }\n function readDirectory(path, extensions, exclude, include, depth) {\n ts.Debug.checkDefined(host.readDirectory, \"'LanguageServiceHost.readDirectory' must be implemented to correctly process 'projectReferences'\");\n return host.readDirectory(path, extensions, exclude, include, depth);\n }\n // Release any files we have acquired in the old program but are\n // not part of the new program.\n function onReleaseOldSourceFile(oldSourceFile, oldOptions) {\n var oldSettingsKey = documentRegistry.getKeyForCompilationSettings(oldOptions);\n documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, oldSettingsKey, oldSourceFile.scriptKind);\n }\n function getOrCreateSourceFile(fileName, languageVersion, onError, shouldCreateNewSourceFile) {\n return getOrCreateSourceFileByPath(fileName, ts.toPath(fileName, currentDirectory, getCanonicalFileName), languageVersion, onError, shouldCreateNewSourceFile);\n }\n function getOrCreateSourceFileByPath(fileName, path, _languageVersion, _onError, shouldCreateNewSourceFile) {\n ts.Debug.assert(hostCache !== undefined, \"getOrCreateSourceFileByPath called after typical CompilerHost lifetime, check the callstack something with a reference to an old host.\");\n // The program is asking for this file, check first if the host can locate it.\n // If the host can not locate the file, then it does not exist. return undefined\n // to the program to allow reporting of errors for missing files.\n var hostFileInformation = hostCache && hostCache.getOrCreateEntryByPath(fileName, path);\n if (!hostFileInformation) {\n return undefined;\n }\n // Check if the language version has changed since we last created a program; if they are the same,\n // it is safe to reuse the sourceFiles; if not, then the shape of the AST can change, and the oldSourceFile\n // can not be reused. we have to dump all syntax trees and create new ones.\n if (!shouldCreateNewSourceFile) {\n // Check if the old program had this file already\n var oldSourceFile = program && program.getSourceFileByPath(path);\n if (oldSourceFile) {\n // We already had a source file for this file name. Go to the registry to\n // ensure that we get the right up to date version of it. We need this to\n // address the following race-condition. Specifically, say we have the following:\n //\n // LS1\n // \\\n // DocumentRegistry\n // /\n // LS2\n //\n // Each LS has a reference to file 'foo.ts' at version 1. LS2 then updates\n // it's version of 'foo.ts' to version 2. This will cause LS2 and the\n // DocumentRegistry to have version 2 of the document. However, LS1 will\n // have version 1. And *importantly* this source file will be *corrupt*.\n // The act of creating version 2 of the file irrevocably damages the version\n // 1 file.\n //\n // So, later when we call into LS1, we need to make sure that it doesn't use\n // it's source file any more, and instead defers to DocumentRegistry to get\n // either version 1, version 2 (or some other version) depending on what the\n // host says should be used.\n // We do not support the scenario where a host can modify a registered\n // file's script kind, i.e. in one project some file is treated as \".ts\"\n // and in another as \".js\"\n if (hostFileInformation.scriptKind === oldSourceFile.scriptKind) {\n return documentRegistry.updateDocumentWithKey(fileName, path, newSettings, documentRegistryBucketKey, hostFileInformation.scriptSnapshot, hostFileInformation.version, hostFileInformation.scriptKind);\n }\n else {\n // Release old source file and fall through to aquire new file with new script kind\n documentRegistry.releaseDocumentWithKey(oldSourceFile.resolvedPath, documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions()), oldSourceFile.scriptKind);\n }\n }\n // We didn't already have the file. Fall through and acquire it from the registry.\n }\n // Could not find this file in the old program, create a new SourceFile for it.\n return documentRegistry.acquireDocumentWithKey(fileName, path, newSettings, documentRegistryBucketKey, hostFileInformation.scriptSnapshot, hostFileInformation.version, hostFileInformation.scriptKind);\n }\n }\n // TODO: GH#18217 frequently asserted as defined\n function getProgram() {\n if (languageServiceMode === ts.LanguageServiceMode.Syntactic) {\n ts.Debug.assert(program === undefined);\n return undefined;\n }\n synchronizeHostData();\n return program;\n }\n function getAutoImportProvider() {\n var _a;\n return (_a = host.getPackageJsonAutoImportProvider) === null || _a === void 0 ? void 0 : _a.call(host);\n }\n function cleanupSemanticCache() {\n program = undefined; // TODO: GH#18217\n }\n function dispose() {\n if (program) {\n // Use paths to ensure we are using correct key and paths as document registry could be created with different current directory than host\n var key_1 = documentRegistry.getKeyForCompilationSettings(program.getCompilerOptions());\n ts.forEach(program.getSourceFiles(), function (f) {\n return documentRegistry.releaseDocumentWithKey(f.resolvedPath, key_1, f.scriptKind);\n });\n program = undefined; // TODO: GH#18217\n }\n host = undefined;\n }\n /// Diagnostics\n function getSyntacticDiagnostics(fileName) {\n synchronizeHostData();\n return program.getSyntacticDiagnostics(getValidSourceFile(fileName), cancellationToken).slice();\n }\n /**\n * getSemanticDiagnostics return array of Diagnostics. If '-d' is not enabled, only report semantic errors\n * If '-d' enabled, report both semantic and emitter errors\n */\n function getSemanticDiagnostics(fileName) {\n synchronizeHostData();\n var targetSourceFile = getValidSourceFile(fileName);\n // Only perform the action per file regardless of '-out' flag as LanguageServiceHost is expected to call this function per file.\n // Therefore only get diagnostics for given file.\n var semanticDiagnostics = program.getSemanticDiagnostics(targetSourceFile, cancellationToken);\n if (!ts.getEmitDeclarations(program.getCompilerOptions())) {\n return semanticDiagnostics.slice();\n }\n // If '-d' is enabled, check for emitter error. One example of emitter error is export class implements non-export interface\n var declarationDiagnostics = program.getDeclarationDiagnostics(targetSourceFile, cancellationToken);\n return __spreadArray(__spreadArray([], semanticDiagnostics, true), declarationDiagnostics, true);\n }\n function getSuggestionDiagnostics(fileName) {\n synchronizeHostData();\n return ts.computeSuggestionDiagnostics(getValidSourceFile(fileName), program, cancellationToken);\n }\n function getCompilerOptionsDiagnostics() {\n synchronizeHostData();\n return __spreadArray(__spreadArray([], program.getOptionsDiagnostics(cancellationToken), true), program.getGlobalDiagnostics(cancellationToken), true);\n }\n function getCompletionsAtPosition(fileName, position, options) {\n if (options === void 0) { options = ts.emptyOptions; }\n // Convert from deprecated options names to new names\n var fullPreferences = __assign(__assign({}, ts.identity(options)), { includeCompletionsForModuleExports: options.includeCompletionsForModuleExports || options.includeExternalModuleExports, includeCompletionsWithInsertText: options.includeCompletionsWithInsertText || options.includeInsertTextCompletions });\n synchronizeHostData();\n return ts.Completions.getCompletionsAtPosition(host, program, log, getValidSourceFile(fileName), position, fullPreferences, options.triggerCharacter, options.triggerKind, cancellationToken);\n }\n function getCompletionEntryDetails(fileName, position, name, formattingOptions, source, preferences, data) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n return ts.Completions.getCompletionEntryDetails(program, log, getValidSourceFile(fileName), position, { name: name, source: source, data: data }, host, (formattingOptions && ts.formatting.getFormatContext(formattingOptions, host)), // TODO: GH#18217\n preferences, cancellationToken);\n }\n function getCompletionEntrySymbol(fileName, position, name, source, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n return ts.Completions.getCompletionEntrySymbol(program, log, getValidSourceFile(fileName), position, { name: name, source: source }, host, preferences);\n }\n function getQuickInfoAtPosition(fileName, position) {\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n var node = ts.getTouchingPropertyName(sourceFile, position);\n if (node === sourceFile) {\n // Avoid giving quickInfo for the sourceFile as a whole.\n return undefined;\n }\n var typeChecker = program.getTypeChecker();\n var nodeForQuickInfo = getNodeForQuickInfo(node);\n var symbol = getSymbolAtLocationForQuickInfo(nodeForQuickInfo, typeChecker);\n if (!symbol || typeChecker.isUnknownSymbol(symbol)) {\n var type_2 = shouldGetType(sourceFile, nodeForQuickInfo, position) ? typeChecker.getTypeAtLocation(nodeForQuickInfo) : undefined;\n return type_2 && {\n kind: \"\" /* unknown */,\n kindModifiers: \"\" /* none */,\n textSpan: ts.createTextSpanFromNode(nodeForQuickInfo, sourceFile),\n displayParts: typeChecker.runWithCancellationToken(cancellationToken, function (typeChecker) { return ts.typeToDisplayParts(typeChecker, type_2, ts.getContainerNode(nodeForQuickInfo)); }),\n documentation: type_2.symbol ? type_2.symbol.getDocumentationComment(typeChecker) : undefined,\n tags: type_2.symbol ? type_2.symbol.getJsDocTags(typeChecker) : undefined\n };\n }\n var _a = typeChecker.runWithCancellationToken(cancellationToken, function (typeChecker) {\n return ts.SymbolDisplay.getSymbolDisplayPartsDocumentationAndSymbolKind(typeChecker, symbol, sourceFile, ts.getContainerNode(nodeForQuickInfo), nodeForQuickInfo);\n }), symbolKind = _a.symbolKind, displayParts = _a.displayParts, documentation = _a.documentation, tags = _a.tags;\n return {\n kind: symbolKind,\n kindModifiers: ts.SymbolDisplay.getSymbolModifiers(typeChecker, symbol),\n textSpan: ts.createTextSpanFromNode(nodeForQuickInfo, sourceFile),\n displayParts: displayParts,\n documentation: documentation,\n tags: tags,\n };\n }\n function getNodeForQuickInfo(node) {\n if (ts.isNewExpression(node.parent) && node.pos === node.parent.pos) {\n return node.parent.expression;\n }\n if (ts.isNamedTupleMember(node.parent) && node.pos === node.parent.pos) {\n return node.parent;\n }\n return node;\n }\n function shouldGetType(sourceFile, node, position) {\n switch (node.kind) {\n case 79 /* Identifier */:\n return !ts.isLabelName(node) && !ts.isTagName(node) && !ts.isConstTypeReference(node.parent);\n case 204 /* PropertyAccessExpression */:\n case 159 /* QualifiedName */:\n // Don't return quickInfo if inside the comment in `a/**/.b`\n return !ts.isInComment(sourceFile, position);\n case 108 /* ThisKeyword */:\n case 190 /* ThisType */:\n case 106 /* SuperKeyword */:\n case 195 /* NamedTupleMember */:\n return true;\n default:\n return false;\n }\n }\n /// Goto definition\n function getDefinitionAtPosition(fileName, position) {\n synchronizeHostData();\n return ts.GoToDefinition.getDefinitionAtPosition(program, getValidSourceFile(fileName), position);\n }\n function getDefinitionAndBoundSpan(fileName, position) {\n synchronizeHostData();\n return ts.GoToDefinition.getDefinitionAndBoundSpan(program, getValidSourceFile(fileName), position);\n }\n function getTypeDefinitionAtPosition(fileName, position) {\n synchronizeHostData();\n return ts.GoToDefinition.getTypeDefinitionAtPosition(program.getTypeChecker(), getValidSourceFile(fileName), position);\n }\n /// Goto implementation\n function getImplementationAtPosition(fileName, position) {\n synchronizeHostData();\n return ts.FindAllReferences.getImplementationsAtPosition(program, cancellationToken, program.getSourceFiles(), getValidSourceFile(fileName), position);\n }\n /// References and Occurrences\n function getOccurrencesAtPosition(fileName, position) {\n return ts.flatMap(getDocumentHighlights(fileName, position, [fileName]), function (entry) { return entry.highlightSpans.map(function (highlightSpan) { return (__assign(__assign({ fileName: entry.fileName, textSpan: highlightSpan.textSpan, isWriteAccess: highlightSpan.kind === \"writtenReference\" /* writtenReference */, isDefinition: false }, highlightSpan.isInString && { isInString: true }), highlightSpan.contextSpan && { contextSpan: highlightSpan.contextSpan })); }); });\n }\n function getDocumentHighlights(fileName, position, filesToSearch) {\n var normalizedFileName = ts.normalizePath(fileName);\n ts.Debug.assert(filesToSearch.some(function (f) { return ts.normalizePath(f) === normalizedFileName; }));\n synchronizeHostData();\n var sourceFilesToSearch = ts.mapDefined(filesToSearch, function (fileName) { return program.getSourceFile(fileName); });\n var sourceFile = getValidSourceFile(fileName);\n return ts.DocumentHighlights.getDocumentHighlights(program, cancellationToken, sourceFile, position, sourceFilesToSearch);\n }\n function findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename) {\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n var node = ts.getAdjustedRenameLocation(ts.getTouchingPropertyName(sourceFile, position));\n if (ts.isIdentifier(node) && (ts.isJsxOpeningElement(node.parent) || ts.isJsxClosingElement(node.parent)) && ts.isIntrinsicJsxName(node.escapedText)) {\n var _a = node.parent.parent, openingElement = _a.openingElement, closingElement = _a.closingElement;\n return [openingElement, closingElement].map(function (node) {\n var textSpan = ts.createTextSpanFromNode(node.tagName, sourceFile);\n return __assign({ fileName: sourceFile.fileName, textSpan: textSpan }, ts.FindAllReferences.toContextSpan(textSpan, sourceFile, node.parent));\n });\n }\n else {\n return getReferencesWorker(node, position, { findInStrings: findInStrings, findInComments: findInComments, providePrefixAndSuffixTextForRename: providePrefixAndSuffixTextForRename, use: 2 /* Rename */ }, function (entry, originalNode, checker) { return ts.FindAllReferences.toRenameLocation(entry, originalNode, checker, providePrefixAndSuffixTextForRename || false); });\n }\n }\n function getReferencesAtPosition(fileName, position) {\n synchronizeHostData();\n return getReferencesWorker(ts.getTouchingPropertyName(getValidSourceFile(fileName), position), position, { use: 1 /* References */ }, ts.FindAllReferences.toReferenceEntry);\n }\n function getReferencesWorker(node, position, options, cb) {\n synchronizeHostData();\n // Exclude default library when renaming as commonly user don't want to change that file.\n var sourceFiles = options && options.use === 2 /* Rename */\n ? program.getSourceFiles().filter(function (sourceFile) { return !program.isSourceFileDefaultLibrary(sourceFile); })\n : program.getSourceFiles();\n return ts.FindAllReferences.findReferenceOrRenameEntries(program, cancellationToken, sourceFiles, node, position, options, cb);\n }\n function findReferences(fileName, position) {\n synchronizeHostData();\n return ts.FindAllReferences.findReferencedSymbols(program, cancellationToken, program.getSourceFiles(), getValidSourceFile(fileName), position);\n }\n function getFileReferences(fileName) {\n synchronizeHostData();\n return ts.FindAllReferences.Core.getReferencesForFileName(fileName, program, program.getSourceFiles()).map(ts.FindAllReferences.toReferenceEntry);\n }\n function getNavigateToItems(searchValue, maxResultCount, fileName, excludeDtsFiles) {\n if (excludeDtsFiles === void 0) { excludeDtsFiles = false; }\n synchronizeHostData();\n var sourceFiles = fileName ? [getValidSourceFile(fileName)] : program.getSourceFiles();\n return ts.NavigateTo.getNavigateToItems(sourceFiles, program.getTypeChecker(), cancellationToken, searchValue, maxResultCount, excludeDtsFiles);\n }\n function getEmitOutput(fileName, emitOnlyDtsFiles, forceDtsEmit) {\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n var customTransformers = host.getCustomTransformers && host.getCustomTransformers();\n return ts.getFileEmitOutput(program, sourceFile, !!emitOnlyDtsFiles, cancellationToken, customTransformers, forceDtsEmit);\n }\n // Signature help\n /**\n * This is a semantic operation.\n */\n function getSignatureHelpItems(fileName, position, _a) {\n var _b = _a === void 0 ? ts.emptyOptions : _a, triggerReason = _b.triggerReason;\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n return ts.SignatureHelp.getSignatureHelpItems(program, sourceFile, position, triggerReason, cancellationToken);\n }\n /// Syntactic features\n function getNonBoundSourceFile(fileName) {\n return syntaxTreeCache.getCurrentSourceFile(fileName);\n }\n function getNameOrDottedNameSpan(fileName, startPos, _endPos) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n // Get node at the location\n var node = ts.getTouchingPropertyName(sourceFile, startPos);\n if (node === sourceFile) {\n return undefined;\n }\n switch (node.kind) {\n case 204 /* PropertyAccessExpression */:\n case 159 /* QualifiedName */:\n case 10 /* StringLiteral */:\n case 95 /* FalseKeyword */:\n case 110 /* TrueKeyword */:\n case 104 /* NullKeyword */:\n case 106 /* SuperKeyword */:\n case 108 /* ThisKeyword */:\n case 190 /* ThisType */:\n case 79 /* Identifier */:\n break;\n // Cant create the text span\n default:\n return undefined;\n }\n var nodeForStartPos = node;\n while (true) {\n if (ts.isRightSideOfPropertyAccess(nodeForStartPos) || ts.isRightSideOfQualifiedName(nodeForStartPos)) {\n // If on the span is in right side of the the property or qualified name, return the span from the qualified name pos to end of this node\n nodeForStartPos = nodeForStartPos.parent;\n }\n else if (ts.isNameOfModuleDeclaration(nodeForStartPos)) {\n // If this is name of a module declarations, check if this is right side of dotted module name\n // If parent of the module declaration which is parent of this node is module declaration and its body is the module declaration that this node is name of\n // Then this name is name from dotted module\n if (nodeForStartPos.parent.parent.kind === 259 /* ModuleDeclaration */ &&\n nodeForStartPos.parent.parent.body === nodeForStartPos.parent) {\n // Use parent module declarations name for start pos\n nodeForStartPos = nodeForStartPos.parent.parent.name;\n }\n else {\n // We have to use this name for start pos\n break;\n }\n }\n else {\n // Is not a member expression so we have found the node for start pos\n break;\n }\n }\n return ts.createTextSpanFromBounds(nodeForStartPos.getStart(), node.getEnd());\n }\n function getBreakpointStatementAtPosition(fileName, position) {\n // doesn't use compiler - no need to synchronize with host\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n return ts.BreakpointResolver.spanInSourceFileAtLocation(sourceFile, position);\n }\n function getNavigationBarItems(fileName) {\n return ts.NavigationBar.getNavigationBarItems(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken);\n }\n function getNavigationTree(fileName) {\n return ts.NavigationBar.getNavigationTree(syntaxTreeCache.getCurrentSourceFile(fileName), cancellationToken);\n }\n function getSemanticClassifications(fileName, span, format) {\n synchronizeHostData();\n var responseFormat = format || \"original\" /* Original */;\n if (responseFormat === \"2020\" /* TwentyTwenty */) {\n return ts.classifier.v2020.getSemanticClassifications(program, cancellationToken, getValidSourceFile(fileName), span);\n }\n else {\n return ts.getSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span);\n }\n }\n function getEncodedSemanticClassifications(fileName, span, format) {\n synchronizeHostData();\n var responseFormat = format || \"original\" /* Original */;\n if (responseFormat === \"original\" /* Original */) {\n return ts.getEncodedSemanticClassifications(program.getTypeChecker(), cancellationToken, getValidSourceFile(fileName), program.getClassifiableNames(), span);\n }\n else {\n return ts.classifier.v2020.getEncodedSemanticClassifications(program, cancellationToken, getValidSourceFile(fileName), span);\n }\n }\n function getSyntacticClassifications(fileName, span) {\n // doesn't use compiler - no need to synchronize with host\n return ts.getSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span);\n }\n function getEncodedSyntacticClassifications(fileName, span) {\n // doesn't use compiler - no need to synchronize with host\n return ts.getEncodedSyntacticClassifications(cancellationToken, syntaxTreeCache.getCurrentSourceFile(fileName), span);\n }\n function getOutliningSpans(fileName) {\n // doesn't use compiler - no need to synchronize with host\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n return ts.OutliningElementsCollector.collectElements(sourceFile, cancellationToken);\n }\n var braceMatching = new ts.Map(ts.getEntries((_a = {},\n _a[18 /* OpenBraceToken */] = 19 /* CloseBraceToken */,\n _a[20 /* OpenParenToken */] = 21 /* CloseParenToken */,\n _a[22 /* OpenBracketToken */] = 23 /* CloseBracketToken */,\n _a[31 /* GreaterThanToken */] = 29 /* LessThanToken */,\n _a)));\n braceMatching.forEach(function (value, key) { return braceMatching.set(value.toString(), Number(key)); });\n function getBraceMatchingAtPosition(fileName, position) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var token = ts.getTouchingToken(sourceFile, position);\n var matchKind = token.getStart(sourceFile) === position ? braceMatching.get(token.kind.toString()) : undefined;\n var match = matchKind && ts.findChildOfKind(token.parent, matchKind, sourceFile);\n // We want to order the braces when we return the result.\n return match ? [ts.createTextSpanFromNode(token, sourceFile), ts.createTextSpanFromNode(match, sourceFile)].sort(function (a, b) { return a.start - b.start; }) : ts.emptyArray;\n }\n function getIndentationAtPosition(fileName, position, editorOptions) {\n var start = ts.timestamp();\n var settings = toEditorSettings(editorOptions);\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n log(\"getIndentationAtPosition: getCurrentSourceFile: \" + (ts.timestamp() - start));\n start = ts.timestamp();\n var result = ts.formatting.SmartIndenter.getIndentation(position, sourceFile, settings);\n log(\"getIndentationAtPosition: computeIndentation : \" + (ts.timestamp() - start));\n return result;\n }\n function getFormattingEditsForRange(fileName, start, end, options) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n return ts.formatting.formatSelection(start, end, sourceFile, ts.formatting.getFormatContext(toEditorSettings(options), host));\n }\n function getFormattingEditsForDocument(fileName, options) {\n return ts.formatting.formatDocument(syntaxTreeCache.getCurrentSourceFile(fileName), ts.formatting.getFormatContext(toEditorSettings(options), host));\n }\n function getFormattingEditsAfterKeystroke(fileName, position, key, options) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var formatContext = ts.formatting.getFormatContext(toEditorSettings(options), host);\n if (!ts.isInComment(sourceFile, position)) {\n switch (key) {\n case \"{\":\n return ts.formatting.formatOnOpeningCurly(position, sourceFile, formatContext);\n case \"}\":\n return ts.formatting.formatOnClosingCurly(position, sourceFile, formatContext);\n case \";\":\n return ts.formatting.formatOnSemicolon(position, sourceFile, formatContext);\n case \"\\n\":\n return ts.formatting.formatOnEnter(position, sourceFile, formatContext);\n }\n }\n return [];\n }\n function getCodeFixesAtPosition(fileName, start, end, errorCodes, formatOptions, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n var span = ts.createTextSpanFromBounds(start, end);\n var formatContext = ts.formatting.getFormatContext(formatOptions, host);\n return ts.flatMap(ts.deduplicate(errorCodes, ts.equateValues, ts.compareValues), function (errorCode) {\n cancellationToken.throwIfCancellationRequested();\n return ts.codefix.getFixes({ errorCode: errorCode, sourceFile: sourceFile, span: span, program: program, host: host, cancellationToken: cancellationToken, formatContext: formatContext, preferences: preferences });\n });\n }\n function getCombinedCodeFix(scope, fixId, formatOptions, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n ts.Debug.assert(scope.type === \"file\");\n var sourceFile = getValidSourceFile(scope.fileName);\n var formatContext = ts.formatting.getFormatContext(formatOptions, host);\n return ts.codefix.getAllFixes({ fixId: fixId, sourceFile: sourceFile, program: program, host: host, cancellationToken: cancellationToken, formatContext: formatContext, preferences: preferences });\n }\n function organizeImports(args, formatOptions, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n ts.Debug.assert(args.type === \"file\");\n var sourceFile = getValidSourceFile(args.fileName);\n var formatContext = ts.formatting.getFormatContext(formatOptions, host);\n return ts.OrganizeImports.organizeImports(sourceFile, formatContext, host, program, preferences, args.skipDestructiveCodeActions);\n }\n function getEditsForFileRename(oldFilePath, newFilePath, formatOptions, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n return ts.getEditsForFileRename(getProgram(), oldFilePath, newFilePath, host, ts.formatting.getFormatContext(formatOptions, host), preferences, sourceMapper);\n }\n function applyCodeActionCommand(fileName, actionOrFormatSettingsOrUndefined) {\n var action = typeof fileName === \"string\" ? actionOrFormatSettingsOrUndefined : fileName;\n return ts.isArray(action) ? Promise.all(action.map(function (a) { return applySingleCodeActionCommand(a); })) : applySingleCodeActionCommand(action);\n }\n function applySingleCodeActionCommand(action) {\n var getPath = function (path) { return ts.toPath(path, currentDirectory, getCanonicalFileName); };\n ts.Debug.assertEqual(action.type, \"install package\");\n return host.installPackage\n ? host.installPackage({ fileName: getPath(action.file), packageName: action.packageName })\n : Promise.reject(\"Host does not implement `installPackage`\");\n }\n function getDocCommentTemplateAtPosition(fileName, position, options) {\n return ts.JsDoc.getDocCommentTemplateAtPosition(ts.getNewLineOrDefaultFromHost(host), syntaxTreeCache.getCurrentSourceFile(fileName), position, options);\n }\n function isValidBraceCompletionAtPosition(fileName, position, openingBrace) {\n // '<' is currently not supported, figuring out if we're in a Generic Type vs. a comparison is too\n // expensive to do during typing scenarios\n // i.e. whether we're dealing with:\n // var x = new foo<| ( with class foo{} )\n // or\n // var y = 3 <|\n if (openingBrace === 60 /* lessThan */) {\n return false;\n }\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n // Check if in a context where we don't want to perform any insertion\n if (ts.isInString(sourceFile, position)) {\n return false;\n }\n if (ts.isInsideJsxElementOrAttribute(sourceFile, position)) {\n return openingBrace === 123 /* openBrace */;\n }\n if (ts.isInTemplateString(sourceFile, position)) {\n return false;\n }\n switch (openingBrace) {\n case 39 /* singleQuote */:\n case 34 /* doubleQuote */:\n case 96 /* backtick */:\n return !ts.isInComment(sourceFile, position);\n }\n return true;\n }\n function getJsxClosingTagAtPosition(fileName, position) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var token = ts.findPrecedingToken(position, sourceFile);\n if (!token)\n return undefined;\n var element = token.kind === 31 /* GreaterThanToken */ && ts.isJsxOpeningElement(token.parent) ? token.parent.parent\n : ts.isJsxText(token) ? token.parent : undefined;\n if (element && isUnclosedTag(element)) {\n return { newText: \"\" };\n }\n }\n function getLinesForRange(sourceFile, textRange) {\n return {\n lineStarts: sourceFile.getLineStarts(),\n firstLine: sourceFile.getLineAndCharacterOfPosition(textRange.pos).line,\n lastLine: sourceFile.getLineAndCharacterOfPosition(textRange.end).line\n };\n }\n function toggleLineComment(fileName, textRange, insertComment) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var textChanges = [];\n var _a = getLinesForRange(sourceFile, textRange), lineStarts = _a.lineStarts, firstLine = _a.firstLine, lastLine = _a.lastLine;\n var isCommenting = insertComment || false;\n var leftMostPosition = Number.MAX_VALUE;\n var lineTextStarts = new ts.Map();\n var firstNonWhitespaceCharacterRegex = new RegExp(/\\S/);\n var isJsx = ts.isInsideJsxElement(sourceFile, lineStarts[firstLine]);\n var openComment = isJsx ? \"{/*\" : \"//\";\n // Check each line before any text changes.\n for (var i = firstLine; i <= lastLine; i++) {\n var lineText = sourceFile.text.substring(lineStarts[i], sourceFile.getLineEndOfPosition(lineStarts[i]));\n // Find the start of text and the left-most character. No-op on empty lines.\n var regExec = firstNonWhitespaceCharacterRegex.exec(lineText);\n if (regExec) {\n leftMostPosition = Math.min(leftMostPosition, regExec.index);\n lineTextStarts.set(i.toString(), regExec.index);\n if (lineText.substr(regExec.index, openComment.length) !== openComment) {\n isCommenting = insertComment === undefined || insertComment;\n }\n }\n }\n // Push all text changes.\n for (var i = firstLine; i <= lastLine; i++) {\n // If the range is multiline and ends on a beginning of a line, don't comment/uncomment.\n if (firstLine !== lastLine && lineStarts[i] === textRange.end) {\n continue;\n }\n var lineTextStart = lineTextStarts.get(i.toString());\n // If the line is not an empty line; otherwise no-op.\n if (lineTextStart !== undefined) {\n if (isJsx) {\n textChanges.push.apply(textChanges, toggleMultilineComment(fileName, { pos: lineStarts[i] + leftMostPosition, end: sourceFile.getLineEndOfPosition(lineStarts[i]) }, isCommenting, isJsx));\n }\n else if (isCommenting) {\n textChanges.push({\n newText: openComment,\n span: {\n length: 0,\n start: lineStarts[i] + leftMostPosition\n }\n });\n }\n else if (sourceFile.text.substr(lineStarts[i] + lineTextStart, openComment.length) === openComment) {\n textChanges.push({\n newText: \"\",\n span: {\n length: openComment.length,\n start: lineStarts[i] + lineTextStart\n }\n });\n }\n }\n }\n return textChanges;\n }\n function toggleMultilineComment(fileName, textRange, insertComment, isInsideJsx) {\n var _a;\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var textChanges = [];\n var text = sourceFile.text;\n var hasComment = false;\n var isCommenting = insertComment || false;\n var positions = [];\n var pos = textRange.pos;\n var isJsx = isInsideJsx !== undefined ? isInsideJsx : ts.isInsideJsxElement(sourceFile, pos);\n var openMultiline = isJsx ? \"{/*\" : \"/*\";\n var closeMultiline = isJsx ? \"*/}\" : \"*/\";\n var openMultilineRegex = isJsx ? \"\\\\{\\\\/\\\\*\" : \"\\\\/\\\\*\";\n var closeMultilineRegex = isJsx ? \"\\\\*\\\\/\\\\}\" : \"\\\\*\\\\/\";\n // Get all comment positions\n while (pos <= textRange.end) {\n // Start of comment is considered inside comment.\n var offset = text.substr(pos, openMultiline.length) === openMultiline ? openMultiline.length : 0;\n var commentRange = ts.isInComment(sourceFile, pos + offset);\n // If position is in a comment add it to the positions array.\n if (commentRange) {\n // Comment range doesn't include the brace character. Increase it to include them.\n if (isJsx) {\n commentRange.pos--;\n commentRange.end++;\n }\n positions.push(commentRange.pos);\n if (commentRange.kind === 3 /* MultiLineCommentTrivia */) {\n positions.push(commentRange.end);\n }\n hasComment = true;\n pos = commentRange.end + 1;\n }\n else { // If it's not in a comment range, then we need to comment the uncommented portions.\n var newPos = text.substring(pos, textRange.end).search(\"(\" + openMultilineRegex + \")|(\" + closeMultilineRegex + \")\");\n isCommenting = insertComment !== undefined\n ? insertComment\n : isCommenting || !ts.isTextWhiteSpaceLike(text, pos, newPos === -1 ? textRange.end : pos + newPos); // If isCommenting is already true we don't need to check whitespace again.\n pos = newPos === -1 ? textRange.end + 1 : pos + newPos + closeMultiline.length;\n }\n }\n // If it didn't found a comment and isCommenting is false means is only empty space.\n // We want to insert comment in this scenario.\n if (isCommenting || !hasComment) {\n if (((_a = ts.isInComment(sourceFile, textRange.pos)) === null || _a === void 0 ? void 0 : _a.kind) !== 2 /* SingleLineCommentTrivia */) {\n ts.insertSorted(positions, textRange.pos, ts.compareValues);\n }\n ts.insertSorted(positions, textRange.end, ts.compareValues);\n // Insert open comment if the first position is not a comment already.\n var firstPos = positions[0];\n if (text.substr(firstPos, openMultiline.length) !== openMultiline) {\n textChanges.push({\n newText: openMultiline,\n span: {\n length: 0,\n start: firstPos\n }\n });\n }\n // Insert open and close comment to all positions between first and last. Exclusive.\n for (var i = 1; i < positions.length - 1; i++) {\n if (text.substr(positions[i] - closeMultiline.length, closeMultiline.length) !== closeMultiline) {\n textChanges.push({\n newText: closeMultiline,\n span: {\n length: 0,\n start: positions[i]\n }\n });\n }\n if (text.substr(positions[i], openMultiline.length) !== openMultiline) {\n textChanges.push({\n newText: openMultiline,\n span: {\n length: 0,\n start: positions[i]\n }\n });\n }\n }\n // Insert open comment if the last position is not a comment already.\n if (textChanges.length % 2 !== 0) {\n textChanges.push({\n newText: closeMultiline,\n span: {\n length: 0,\n start: positions[positions.length - 1]\n }\n });\n }\n }\n else {\n // If is not commenting then remove all comments found.\n for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {\n var pos_2 = positions_1[_i];\n var from = pos_2 - closeMultiline.length > 0 ? pos_2 - closeMultiline.length : 0;\n var offset = text.substr(from, closeMultiline.length) === closeMultiline ? closeMultiline.length : 0;\n textChanges.push({\n newText: \"\",\n span: {\n length: openMultiline.length,\n start: pos_2 - offset\n }\n });\n }\n }\n return textChanges;\n }\n function commentSelection(fileName, textRange) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var _a = getLinesForRange(sourceFile, textRange), firstLine = _a.firstLine, lastLine = _a.lastLine;\n // If there is a selection that is on the same line, add multiline.\n return firstLine === lastLine && textRange.pos !== textRange.end\n ? toggleMultilineComment(fileName, textRange, /*insertComment*/ true)\n : toggleLineComment(fileName, textRange, /*insertComment*/ true);\n }\n function uncommentSelection(fileName, textRange) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var textChanges = [];\n var pos = textRange.pos;\n var end = textRange.end;\n // If cursor is not a selection we need to increase the end position\n // to include the start of the comment.\n if (pos === end) {\n end += ts.isInsideJsxElement(sourceFile, pos) ? 2 : 1;\n }\n for (var i = pos; i <= end; i++) {\n var commentRange = ts.isInComment(sourceFile, i);\n if (commentRange) {\n switch (commentRange.kind) {\n case 2 /* SingleLineCommentTrivia */:\n textChanges.push.apply(textChanges, toggleLineComment(fileName, { end: commentRange.end, pos: commentRange.pos + 1 }, /*insertComment*/ false));\n break;\n case 3 /* MultiLineCommentTrivia */:\n textChanges.push.apply(textChanges, toggleMultilineComment(fileName, { end: commentRange.end, pos: commentRange.pos + 1 }, /*insertComment*/ false));\n }\n i = commentRange.end + 1;\n }\n }\n return textChanges;\n }\n function isUnclosedTag(_a) {\n var openingElement = _a.openingElement, closingElement = _a.closingElement, parent = _a.parent;\n return !ts.tagNamesAreEquivalent(openingElement.tagName, closingElement.tagName) ||\n ts.isJsxElement(parent) && ts.tagNamesAreEquivalent(openingElement.tagName, parent.openingElement.tagName) && isUnclosedTag(parent);\n }\n function getSpanOfEnclosingComment(fileName, position, onlyMultiLine) {\n var sourceFile = syntaxTreeCache.getCurrentSourceFile(fileName);\n var range = ts.formatting.getRangeOfEnclosingComment(sourceFile, position);\n return range && (!onlyMultiLine || range.kind === 3 /* MultiLineCommentTrivia */) ? ts.createTextSpanFromRange(range) : undefined;\n }\n function getTodoComments(fileName, descriptors) {\n // Note: while getting todo comments seems like a syntactic operation, we actually\n // treat it as a semantic operation here. This is because we expect our host to call\n // this on every single file. If we treat this syntactically, then that will cause\n // us to populate and throw away the tree in our syntax tree cache for each file. By\n // treating this as a semantic operation, we can access any tree without throwing\n // anything away.\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n cancellationToken.throwIfCancellationRequested();\n var fileContents = sourceFile.text;\n var result = [];\n // Exclude node_modules files as we don't want to show the todos of external libraries.\n if (descriptors.length > 0 && !isNodeModulesFile(sourceFile.fileName)) {\n var regExp = getTodoCommentsRegExp();\n var matchArray = void 0;\n while (matchArray = regExp.exec(fileContents)) {\n cancellationToken.throwIfCancellationRequested();\n // If we got a match, here is what the match array will look like. Say the source text is:\n //\n // \" // hack 1\"\n //\n // The result array with the regexp: will be:\n //\n // [\"// hack 1\", \"// \", \"hack 1\", undefined, \"hack\"]\n //\n // Here are the relevant capture groups:\n // 0) The full match for the entire regexp.\n // 1) The preamble to the message portion.\n // 2) The message portion.\n // 3...N) The descriptor that was matched - by index. 'undefined' for each\n // descriptor that didn't match. an actual value if it did match.\n //\n // i.e. 'undefined' in position 3 above means TODO(jason) didn't match.\n // \"hack\" in position 4 means HACK did match.\n var firstDescriptorCaptureIndex = 3;\n ts.Debug.assert(matchArray.length === descriptors.length + firstDescriptorCaptureIndex);\n var preamble = matchArray[1];\n var matchPosition = matchArray.index + preamble.length;\n // OK, we have found a match in the file. This is only an acceptable match if\n // it is contained within a comment.\n if (!ts.isInComment(sourceFile, matchPosition)) {\n continue;\n }\n var descriptor = void 0;\n for (var i = 0; i < descriptors.length; i++) {\n if (matchArray[i + firstDescriptorCaptureIndex]) {\n descriptor = descriptors[i];\n }\n }\n if (descriptor === undefined)\n return ts.Debug.fail();\n // We don't want to match something like 'TODOBY', so we make sure a non\n // letter/digit follows the match.\n if (isLetterOrDigit(fileContents.charCodeAt(matchPosition + descriptor.text.length))) {\n continue;\n }\n var message = matchArray[2];\n result.push({ descriptor: descriptor, message: message, position: matchPosition });\n }\n }\n return result;\n function escapeRegExp(str) {\n return str.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, \"\\\\$&\");\n }\n function getTodoCommentsRegExp() {\n // NOTE: `?:` means 'non-capture group'. It allows us to have groups without having to\n // filter them out later in the final result array.\n // TODO comments can appear in one of the following forms:\n //\n // 1) // TODO or /////////// TODO\n //\n // 2) /* TODO or /********** TODO\n //\n // 3) /*\n // * TODO\n // */\n //\n // The following three regexps are used to match the start of the text up to the TODO\n // comment portion.\n var singleLineCommentStart = /(?:\\/\\/+\\s*)/.source;\n var multiLineCommentStart = /(?:\\/\\*+\\s*)/.source;\n var anyNumberOfSpacesAndAsterisksAtStartOfLine = /(?:^(?:\\s|\\*)*)/.source;\n // Match any of the above three TODO comment start regexps.\n // Note that the outermost group *is* a capture group. We want to capture the preamble\n // so that we can determine the starting position of the TODO comment match.\n var preamble = \"(\" + anyNumberOfSpacesAndAsterisksAtStartOfLine + \"|\" + singleLineCommentStart + \"|\" + multiLineCommentStart + \")\";\n // Takes the descriptors and forms a regexp that matches them as if they were literals.\n // For example, if the descriptors are \"TODO(jason)\" and \"HACK\", then this will be:\n //\n // (?:(TODO\\(jason\\))|(HACK))\n //\n // Note that the outermost group is *not* a capture group, but the innermost groups\n // *are* capture groups. By capturing the inner literals we can determine after\n // matching which descriptor we are dealing with.\n var literals = \"(?:\" + ts.map(descriptors, function (d) { return \"(\" + escapeRegExp(d.text) + \")\"; }).join(\"|\") + \")\";\n // After matching a descriptor literal, the following regexp matches the rest of the\n // text up to the end of the line (or */).\n var endOfLineOrEndOfComment = /(?:$|\\*\\/)/.source;\n var messageRemainder = /(?:.*?)/.source;\n // This is the portion of the match we'll return as part of the TODO comment result. We\n // match the literal portion up to the end of the line or end of comment.\n var messagePortion = \"(\" + literals + messageRemainder + \")\";\n var regExpString = preamble + messagePortion + endOfLineOrEndOfComment;\n // The final regexp will look like this:\n // /((?:\\/\\/+\\s*)|(?:\\/\\*+\\s*)|(?:^(?:\\s|\\*)*))((?:(TODO\\(jason\\))|(HACK))(?:.*?))(?:$|\\*\\/)/gim\n // The flags of the regexp are important here.\n // 'g' is so that we are doing a global search and can find matches several times\n // in the input.\n //\n // 'i' is for case insensitivity (We do this to match C# TODO comment code).\n //\n // 'm' is so we can find matches in a multi-line input.\n return new RegExp(regExpString, \"gim\");\n }\n function isLetterOrDigit(char) {\n return (char >= 97 /* a */ && char <= 122 /* z */) ||\n (char >= 65 /* A */ && char <= 90 /* Z */) ||\n (char >= 48 /* _0 */ && char <= 57 /* _9 */);\n }\n function isNodeModulesFile(path) {\n return ts.stringContains(path, \"/node_modules/\");\n }\n }\n function getRenameInfo(fileName, position, options) {\n synchronizeHostData();\n return ts.Rename.getRenameInfo(program, getValidSourceFile(fileName), position, options);\n }\n function getRefactorContext(file, positionOrRange, preferences, formatOptions, triggerReason, kind) {\n var _a = typeof positionOrRange === \"number\" ? [positionOrRange, undefined] : [positionOrRange.pos, positionOrRange.end], startPosition = _a[0], endPosition = _a[1];\n return {\n file: file,\n startPosition: startPosition,\n endPosition: endPosition,\n program: getProgram(),\n host: host,\n formatContext: ts.formatting.getFormatContext(formatOptions, host),\n cancellationToken: cancellationToken,\n preferences: preferences,\n triggerReason: triggerReason,\n kind: kind\n };\n }\n function getInlayHintsContext(file, span, preferences) {\n return {\n file: file,\n program: getProgram(),\n host: host,\n span: span,\n preferences: preferences,\n cancellationToken: cancellationToken,\n };\n }\n function getSmartSelectionRange(fileName, position) {\n return ts.SmartSelectionRange.getSmartSelectionRange(position, syntaxTreeCache.getCurrentSourceFile(fileName));\n }\n function getApplicableRefactors(fileName, positionOrRange, preferences, triggerReason, kind) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n var file = getValidSourceFile(fileName);\n return ts.refactor.getApplicableRefactors(getRefactorContext(file, positionOrRange, preferences, ts.emptyOptions, triggerReason, kind));\n }\n function getEditsForRefactor(fileName, formatOptions, positionOrRange, refactorName, actionName, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n var file = getValidSourceFile(fileName);\n return ts.refactor.getEditsForRefactor(getRefactorContext(file, positionOrRange, preferences, formatOptions), refactorName, actionName);\n }\n function toLineColumnOffset(fileName, position) {\n // Go to Definition supports returning a zero-length span at position 0 for\n // non-existent files. We need to special-case the conversion of position 0\n // to avoid a crash trying to get the text for that file, since this function\n // otherwise assumes that 'fileName' is the name of a file that exists.\n if (position === 0) {\n return { line: 0, character: 0 };\n }\n return sourceMapper.toLineColumnOffset(fileName, position);\n }\n function prepareCallHierarchy(fileName, position) {\n synchronizeHostData();\n var declarations = ts.CallHierarchy.resolveCallHierarchyDeclaration(program, ts.getTouchingPropertyName(getValidSourceFile(fileName), position));\n return declarations && ts.mapOneOrMany(declarations, function (declaration) { return ts.CallHierarchy.createCallHierarchyItem(program, declaration); });\n }\n function provideCallHierarchyIncomingCalls(fileName, position) {\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n var declaration = ts.firstOrOnly(ts.CallHierarchy.resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : ts.getTouchingPropertyName(sourceFile, position)));\n return declaration ? ts.CallHierarchy.getIncomingCalls(program, declaration, cancellationToken) : [];\n }\n function provideCallHierarchyOutgoingCalls(fileName, position) {\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n var declaration = ts.firstOrOnly(ts.CallHierarchy.resolveCallHierarchyDeclaration(program, position === 0 ? sourceFile : ts.getTouchingPropertyName(sourceFile, position)));\n return declaration ? ts.CallHierarchy.getOutgoingCalls(program, declaration) : [];\n }\n function provideInlayHints(fileName, span, preferences) {\n if (preferences === void 0) { preferences = ts.emptyOptions; }\n synchronizeHostData();\n var sourceFile = getValidSourceFile(fileName);\n return ts.InlayHints.provideInlayHints(getInlayHintsContext(sourceFile, span, preferences));\n }\n var ls = {\n dispose: dispose,\n cleanupSemanticCache: cleanupSemanticCache,\n getSyntacticDiagnostics: getSyntacticDiagnostics,\n getSemanticDiagnostics: getSemanticDiagnostics,\n getSuggestionDiagnostics: getSuggestionDiagnostics,\n getCompilerOptionsDiagnostics: getCompilerOptionsDiagnostics,\n getSyntacticClassifications: getSyntacticClassifications,\n getSemanticClassifications: getSemanticClassifications,\n getEncodedSyntacticClassifications: getEncodedSyntacticClassifications,\n getEncodedSemanticClassifications: getEncodedSemanticClassifications,\n getCompletionsAtPosition: getCompletionsAtPosition,\n getCompletionEntryDetails: getCompletionEntryDetails,\n getCompletionEntrySymbol: getCompletionEntrySymbol,\n getSignatureHelpItems: getSignatureHelpItems,\n getQuickInfoAtPosition: getQuickInfoAtPosition,\n getDefinitionAtPosition: getDefinitionAtPosition,\n getDefinitionAndBoundSpan: getDefinitionAndBoundSpan,\n getImplementationAtPosition: getImplementationAtPosition,\n getTypeDefinitionAtPosition: getTypeDefinitionAtPosition,\n getReferencesAtPosition: getReferencesAtPosition,\n findReferences: findReferences,\n getFileReferences: getFileReferences,\n getOccurrencesAtPosition: getOccurrencesAtPosition,\n getDocumentHighlights: getDocumentHighlights,\n getNameOrDottedNameSpan: getNameOrDottedNameSpan,\n getBreakpointStatementAtPosition: getBreakpointStatementAtPosition,\n getNavigateToItems: getNavigateToItems,\n getRenameInfo: getRenameInfo,\n getSmartSelectionRange: getSmartSelectionRange,\n findRenameLocations: findRenameLocations,\n getNavigationBarItems: getNavigationBarItems,\n getNavigationTree: getNavigationTree,\n getOutliningSpans: getOutliningSpans,\n getTodoComments: getTodoComments,\n getBraceMatchingAtPosition: getBraceMatchingAtPosition,\n getIndentationAtPosition: getIndentationAtPosition,\n getFormattingEditsForRange: getFormattingEditsForRange,\n getFormattingEditsForDocument: getFormattingEditsForDocument,\n getFormattingEditsAfterKeystroke: getFormattingEditsAfterKeystroke,\n getDocCommentTemplateAtPosition: getDocCommentTemplateAtPosition,\n isValidBraceCompletionAtPosition: isValidBraceCompletionAtPosition,\n getJsxClosingTagAtPosition: getJsxClosingTagAtPosition,\n getSpanOfEnclosingComment: getSpanOfEnclosingComment,\n getCodeFixesAtPosition: getCodeFixesAtPosition,\n getCombinedCodeFix: getCombinedCodeFix,\n applyCodeActionCommand: applyCodeActionCommand,\n organizeImports: organizeImports,\n getEditsForFileRename: getEditsForFileRename,\n getEmitOutput: getEmitOutput,\n getNonBoundSourceFile: getNonBoundSourceFile,\n getProgram: getProgram,\n getAutoImportProvider: getAutoImportProvider,\n getApplicableRefactors: getApplicableRefactors,\n getEditsForRefactor: getEditsForRefactor,\n toLineColumnOffset: toLineColumnOffset,\n getSourceMapper: function () { return sourceMapper; },\n clearSourceMapperCache: function () { return sourceMapper.clearCache(); },\n prepareCallHierarchy: prepareCallHierarchy,\n provideCallHierarchyIncomingCalls: provideCallHierarchyIncomingCalls,\n provideCallHierarchyOutgoingCalls: provideCallHierarchyOutgoingCalls,\n toggleLineComment: toggleLineComment,\n toggleMultilineComment: toggleMultilineComment,\n commentSelection: commentSelection,\n uncommentSelection: uncommentSelection,\n provideInlayHints: provideInlayHints,\n };\n switch (languageServiceMode) {\n case ts.LanguageServiceMode.Semantic:\n break;\n case ts.LanguageServiceMode.PartialSemantic:\n invalidOperationsInPartialSemanticMode.forEach(function (key) {\n return ls[key] = function () {\n throw new Error(\"LanguageService Operation: \" + key + \" not allowed in LanguageServiceMode.PartialSemantic\");\n };\n });\n break;\n case ts.LanguageServiceMode.Syntactic:\n invalidOperationsInSyntacticMode.forEach(function (key) {\n return ls[key] = function () {\n throw new Error(\"LanguageService Operation: \" + key + \" not allowed in LanguageServiceMode.Syntactic\");\n };\n });\n break;\n default:\n ts.Debug.assertNever(languageServiceMode);\n }\n return ls;\n }\n ts.createLanguageService = createLanguageService;\n /* @internal */\n /** Names in the name table are escaped, so an identifier `__foo` will have a name table entry `___foo`. */\n function getNameTable(sourceFile) {\n if (!sourceFile.nameTable) {\n initializeNameTable(sourceFile);\n }\n return sourceFile.nameTable; // TODO: GH#18217\n }\n ts.getNameTable = getNameTable;\n function initializeNameTable(sourceFile) {\n var nameTable = sourceFile.nameTable = new ts.Map();\n sourceFile.forEachChild(function walk(node) {\n if (ts.isIdentifier(node) && !ts.isTagName(node) && node.escapedText || ts.isStringOrNumericLiteralLike(node) && literalIsName(node)) {\n var text = ts.getEscapedTextOfIdentifierOrLiteral(node);\n nameTable.set(text, nameTable.get(text) === undefined ? node.pos : -1);\n }\n else if (ts.isPrivateIdentifier(node)) {\n var text = node.escapedText;\n nameTable.set(text, nameTable.get(text) === undefined ? node.pos : -1);\n }\n ts.forEachChild(node, walk);\n if (ts.hasJSDocNodes(node)) {\n for (var _i = 0, _a = node.jsDoc; _i < _a.length; _i++) {\n var jsDoc = _a[_i];\n ts.forEachChild(jsDoc, walk);\n }\n }\n });\n }\n /**\n * We want to store any numbers/strings if they were a name that could be\n * related to a declaration. So, if we have 'import x = require(\"something\")'\n * then we want 'something' to be in the name table. Similarly, if we have\n * \"a['propname']\" then we want to store \"propname\" in the name table.\n */\n function literalIsName(node) {\n return ts.isDeclarationName(node) ||\n node.parent.kind === 275 /* ExternalModuleReference */ ||\n isArgumentOfElementAccessExpression(node) ||\n ts.isLiteralComputedPropertyDeclarationName(node);\n }\n /**\n * Returns the containing object literal property declaration given a possible name node, e.g. \"a\" in x = { \"a\": 1 }\n */\n /* @internal */\n function getContainingObjectLiteralElement(node) {\n var element = getContainingObjectLiteralElementWorker(node);\n return element && (ts.isObjectLiteralExpression(element.parent) || ts.isJsxAttributes(element.parent)) ? element : undefined;\n }\n ts.getContainingObjectLiteralElement = getContainingObjectLiteralElement;\n function getContainingObjectLiteralElementWorker(node) {\n switch (node.kind) {\n case 10 /* StringLiteral */:\n case 14 /* NoSubstitutionTemplateLiteral */:\n case 8 /* NumericLiteral */:\n if (node.parent.kind === 160 /* ComputedPropertyName */) {\n return ts.isObjectLiteralElement(node.parent.parent) ? node.parent.parent : undefined;\n }\n // falls through\n case 79 /* Identifier */:\n return ts.isObjectLiteralElement(node.parent) &&\n (node.parent.parent.kind === 203 /* ObjectLiteralExpression */ || node.parent.parent.kind === 284 /* JsxAttributes */) &&\n node.parent.name === node ? node.parent : undefined;\n }\n return undefined;\n }\n function getSymbolAtLocationForQuickInfo(node, checker) {\n var object = getContainingObjectLiteralElement(node);\n if (object) {\n var contextualType = checker.getContextualType(object.parent);\n var properties = contextualType && getPropertySymbolsFromContextualType(object, checker, contextualType, /*unionSymbolOk*/ false);\n if (properties && properties.length === 1) {\n return ts.first(properties);\n }\n }\n return checker.getSymbolAtLocation(node);\n }\n /** Gets all symbols for one property. Does not get symbols for every property. */\n /* @internal */\n function getPropertySymbolsFromContextualType(node, checker, contextualType, unionSymbolOk) {\n var name = ts.getNameFromPropertyName(node.name);\n if (!name)\n return ts.emptyArray;\n if (!contextualType.isUnion()) {\n var symbol = contextualType.getProperty(name);\n return symbol ? [symbol] : ts.emptyArray;\n }\n var discriminatedPropertySymbols = ts.mapDefined(contextualType.types, function (t) { return (ts.isObjectLiteralExpression(node.parent) || ts.isJsxAttributes(node.parent)) && checker.isTypeInvalidDueToUnionDiscriminant(t, node.parent) ? undefined : t.getProperty(name); });\n if (unionSymbolOk && (discriminatedPropertySymbols.length === 0 || discriminatedPropertySymbols.length === contextualType.types.length)) {\n var symbol = contextualType.getProperty(name);\n if (symbol)\n return [symbol];\n }\n if (discriminatedPropertySymbols.length === 0) {\n // Bad discriminant -- do again without discriminating\n return ts.mapDefined(contextualType.types, function (t) { return t.getProperty(name); });\n }\n return discriminatedPropertySymbols;\n }\n ts.getPropertySymbolsFromContextualType = getPropertySymbolsFromContextualType;\n function isArgumentOfElementAccessExpression(node) {\n return node &&\n node.parent &&\n node.parent.kind === 205 /* ElementAccessExpression */ &&\n node.parent.argumentExpression === node;\n }\n /**\n * Get the path of the default library files (lib.d.ts) as distributed with the typescript\n * node package.\n * The functionality is not supported if the ts module is consumed outside of a node module.\n */\n function getDefaultLibFilePath(options) {\n // Check __dirname is defined and that we are on a node.js system.\n if (typeof __dirname !== \"undefined\") {\n return __dirname + ts.directorySeparator + ts.getDefaultLibFileName(options);\n }\n throw new Error(\"getDefaultLibFilePath is only supported when consumed as a node module. \");\n }\n ts.getDefaultLibFilePath = getDefaultLibFilePath;\n ts.setObjectAllocator(getServicesObjectAllocator());\n})(ts || (ts = {}));\n/* @internal */\nvar ts;\n(function (ts) {\n var BreakpointResolver;\n (function (BreakpointResolver) {\n /**\n * Get the breakpoint span in given sourceFile\n */\n function spanInSourceFileAtLocation(sourceFile, position) {\n // Cannot set breakpoint in dts file\n if (sourceFile.isDeclarationFile) {\n return undefined;\n }\n var tokenAtLocation = ts.getTokenAtPosition(sourceFile, position);\n var lineOfPosition = sourceFile.getLineAndCharacterOfPosition(position).line;\n if (sourceFile.getLineAndCharacterOfPosition(tokenAtLocation.getStart(sourceFile)).line > lineOfPosition) {\n // Get previous token if the token is returned starts on new line\n // eg: let x =10; |--- cursor is here\n // let y = 10;\n // token at position will return let keyword on second line as the token but we would like to use\n // token on same line if trailing trivia (comments or white spaces on same line) part of the last token on that line\n var preceding = ts.findPrecedingToken(tokenAtLocation.pos, sourceFile);\n // It's a blank line\n if (!preceding || sourceFile.getLineAndCharacterOfPosition(preceding.getEnd()).line !== lineOfPosition) {\n return undefined;\n }\n tokenAtLocation = preceding;\n }\n // Cannot set breakpoint in ambient declarations\n if (tokenAtLocation.flags & 8388608 /* Ambient */) {\n return undefined;\n }\n // Get the span in the node based on its syntax\n return spanInNode(tokenAtLocation);\n function textSpan(startNode, endNode) {\n var start = startNode.decorators ?\n ts.skipTrivia(sourceFile.text, startNode.decorators.end) :\n startNode.getStart(sourceFile);\n return ts.createTextSpanFromBounds(start, (endNode || startNode).getEnd());\n }\n function textSpanEndingAtNextToken(startNode, previousTokenToFindNextEndToken) {\n return textSpan(startNode, ts.findNextToken(previousTokenToFindNextEndToken, previousTokenToFindNextEndToken.parent, sourceFile));\n }\n function spanInNodeIfStartsOnSameLine(node, otherwiseOnNode) {\n if (node && lineOfPosition === sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line) {\n return spanInNode(node);\n }\n return spanInNode(otherwiseOnNode);\n }\n function spanInNodeArray(nodeArray) {\n return ts.createTextSpanFromBounds(ts.skipTrivia(sourceFile.text, nodeArray.pos), nodeArray.end);\n }\n function spanInPreviousNode(node) {\n return spanInNode(ts.findPrecedingToken(node.pos, sourceFile));\n }\n function spanInNextNode(node) {\n return spanInNode(ts.findNextToken(node, node.parent, sourceFile));\n }\n function spanInNode(node) {\n if (node) {\n var parent = node.parent;\n switch (node.kind) {\n case 235 /* VariableStatement */:\n // Span on first variable declaration\n return spanInVariableDeclaration(node.declarationList.declarations[0]);\n case 252 /* VariableDeclaration */:\n case 165 /* PropertyDeclaration */:\n case 164 /* PropertySignature */:\n return spanInVariableDeclaration(node);\n case 162 /* Parameter */:\n return spanInParameterDeclaration(node);\n case 254 /* FunctionDeclaration */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 169 /* Constructor */:\n case 211 /* FunctionExpression */:\n case 212 /* ArrowFunction */:\n return spanInFunctionDeclaration(node);\n case 233 /* Block */:\n if (ts.isFunctionBlock(node)) {\n return spanInFunctionBlock(node);\n }\n // falls through\n case 260 /* ModuleBlock */:\n return spanInBlock(node);\n case 290 /* CatchClause */:\n return spanInBlock(node.block);\n case 236 /* ExpressionStatement */:\n // span on the expression\n return textSpan(node.expression);\n case 245 /* ReturnStatement */:\n // span on return keyword and expression if present\n return textSpan(node.getChildAt(0), node.expression);\n case 239 /* WhileStatement */:\n // Span on while(...)\n return textSpanEndingAtNextToken(node, node.expression);\n case 238 /* DoStatement */:\n // span in statement of the do statement\n return spanInNode(node.statement);\n case 251 /* DebuggerStatement */:\n // span on debugger keyword\n return textSpan(node.getChildAt(0));\n case 237 /* IfStatement */:\n // set on if(..) span\n return textSpanEndingAtNextToken(node, node.expression);\n case 248 /* LabeledStatement */:\n // span in statement\n return spanInNode(node.statement);\n case 244 /* BreakStatement */:\n case 243 /* ContinueStatement */:\n // On break or continue keyword and label if present\n return textSpan(node.getChildAt(0), node.label);\n case 240 /* ForStatement */:\n return spanInForStatement(node);\n case 241 /* ForInStatement */:\n // span of for (a in ...)\n return textSpanEndingAtNextToken(node, node.expression);\n case 242 /* ForOfStatement */:\n // span in initializer\n return spanInInitializerOfForLike(node);\n case 247 /* SwitchStatement */:\n // span on switch(...)\n return textSpanEndingAtNextToken(node, node.expression);\n case 287 /* CaseClause */:\n case 288 /* DefaultClause */:\n // span in first statement of the clause\n return spanInNode(node.statements[0]);\n case 250 /* TryStatement */:\n // span in try block\n return spanInBlock(node.tryBlock);\n case 249 /* ThrowStatement */:\n // span in throw ...\n return textSpan(node, node.expression);\n case 269 /* ExportAssignment */:\n // span on export = id\n return textSpan(node, node.expression);\n case 263 /* ImportEqualsDeclaration */:\n // import statement without including semicolon\n return textSpan(node, node.moduleReference);\n case 264 /* ImportDeclaration */:\n // import statement without including semicolon\n return textSpan(node, node.moduleSpecifier);\n case 270 /* ExportDeclaration */:\n // import statement without including semicolon\n return textSpan(node, node.moduleSpecifier);\n case 259 /* ModuleDeclaration */:\n // span on complete module if it is instantiated\n if (ts.getModuleInstanceState(node) !== 1 /* Instantiated */) {\n return undefined;\n }\n // falls through\n case 255 /* ClassDeclaration */:\n case 258 /* EnumDeclaration */:\n case 294 /* EnumMember */:\n case 201 /* BindingElement */:\n // span on complete node\n return textSpan(node);\n case 246 /* WithStatement */:\n // span in statement\n return spanInNode(node.statement);\n case 163 /* Decorator */:\n return spanInNodeArray(parent.decorators);\n case 199 /* ObjectBindingPattern */:\n case 200 /* ArrayBindingPattern */:\n return spanInBindingPattern(node);\n // No breakpoint in interface, type alias\n case 256 /* InterfaceDeclaration */:\n case 257 /* TypeAliasDeclaration */:\n return undefined;\n // Tokens:\n case 26 /* SemicolonToken */:\n case 1 /* EndOfFileToken */:\n return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile));\n case 27 /* CommaToken */:\n return spanInPreviousNode(node);\n case 18 /* OpenBraceToken */:\n return spanInOpenBraceToken(node);\n case 19 /* CloseBraceToken */:\n return spanInCloseBraceToken(node);\n case 23 /* CloseBracketToken */:\n return spanInCloseBracketToken(node);\n case 20 /* OpenParenToken */:\n return spanInOpenParenToken(node);\n case 21 /* CloseParenToken */:\n return spanInCloseParenToken(node);\n case 58 /* ColonToken */:\n return spanInColonToken(node);\n case 31 /* GreaterThanToken */:\n case 29 /* LessThanToken */:\n return spanInGreaterThanOrLessThanToken(node);\n // Keywords:\n case 115 /* WhileKeyword */:\n return spanInWhileKeyword(node);\n case 91 /* ElseKeyword */:\n case 83 /* CatchKeyword */:\n case 96 /* FinallyKeyword */:\n return spanInNextNode(node);\n case 158 /* OfKeyword */:\n return spanInOfKeyword(node);\n default:\n // Destructuring pattern in destructuring assignment\n // [a, b, c] of\n // [a, b, c] = expression\n if (ts.isArrayLiteralOrObjectLiteralDestructuringPattern(node)) {\n return spanInArrayLiteralOrObjectLiteralDestructuringPattern(node);\n }\n // Set breakpoint on identifier element of destructuring pattern\n // `a` or `...c` or `d: x` from\n // `[a, b, ...c]` or `{ a, b }` or `{ d: x }` from destructuring pattern\n if ((node.kind === 79 /* Identifier */ ||\n node.kind === 223 /* SpreadElement */ ||\n node.kind === 291 /* PropertyAssignment */ ||\n node.kind === 292 /* ShorthandPropertyAssignment */) &&\n ts.isArrayLiteralOrObjectLiteralDestructuringPattern(parent)) {\n return textSpan(node);\n }\n if (node.kind === 219 /* BinaryExpression */) {\n var _a = node, left = _a.left, operatorToken = _a.operatorToken;\n // Set breakpoint in destructuring pattern if its destructuring assignment\n // [a, b, c] or {a, b, c} of\n // [a, b, c] = expression or\n // {a, b, c} = expression\n if (ts.isArrayLiteralOrObjectLiteralDestructuringPattern(left)) {\n return spanInArrayLiteralOrObjectLiteralDestructuringPattern(left);\n }\n if (operatorToken.kind === 63 /* EqualsToken */ && ts.isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent)) {\n // Set breakpoint on assignment expression element of destructuring pattern\n // a = expression of\n // [a = expression, b, c] = someExpression or\n // { a = expression, b, c } = someExpression\n return textSpan(node);\n }\n if (operatorToken.kind === 27 /* CommaToken */) {\n return spanInNode(left);\n }\n }\n if (ts.isExpressionNode(node)) {\n switch (parent.kind) {\n case 238 /* DoStatement */:\n // Set span as if on while keyword\n return spanInPreviousNode(node);\n case 163 /* Decorator */:\n // Set breakpoint on the decorator emit\n return spanInNode(node.parent);\n case 240 /* ForStatement */:\n case 242 /* ForOfStatement */:\n return textSpan(node);\n case 219 /* BinaryExpression */:\n if (node.parent.operatorToken.kind === 27 /* CommaToken */) {\n // If this is a comma expression, the breakpoint is possible in this expression\n return textSpan(node);\n }\n break;\n case 212 /* ArrowFunction */:\n if (node.parent.body === node) {\n // If this is body of arrow function, it is allowed to have the breakpoint\n return textSpan(node);\n }\n break;\n }\n }\n switch (node.parent.kind) {\n case 291 /* PropertyAssignment */:\n // If this is name of property assignment, set breakpoint in the initializer\n if (node.parent.name === node &&\n !ts.isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent.parent)) {\n return spanInNode(node.parent.initializer);\n }\n break;\n case 209 /* TypeAssertionExpression */:\n // Breakpoint in type assertion goes to its operand\n if (node.parent.type === node) {\n return spanInNextNode(node.parent.type);\n }\n break;\n case 252 /* VariableDeclaration */:\n case 162 /* Parameter */: {\n // initializer of variable/parameter declaration go to previous node\n var _b = node.parent, initializer = _b.initializer, type = _b.type;\n if (initializer === node || type === node || ts.isAssignmentOperator(node.kind)) {\n return spanInPreviousNode(node);\n }\n break;\n }\n case 219 /* BinaryExpression */: {\n var left = node.parent.left;\n if (ts.isArrayLiteralOrObjectLiteralDestructuringPattern(left) && node !== left) {\n // If initializer of destructuring assignment move to previous token\n return spanInPreviousNode(node);\n }\n break;\n }\n default:\n // return type of function go to previous token\n if (ts.isFunctionLike(node.parent) && node.parent.type === node) {\n return spanInPreviousNode(node);\n }\n }\n // Default go to parent to set the breakpoint\n return spanInNode(node.parent);\n }\n }\n function textSpanFromVariableDeclaration(variableDeclaration) {\n if (ts.isVariableDeclarationList(variableDeclaration.parent) && variableDeclaration.parent.declarations[0] === variableDeclaration) {\n // First declaration - include let keyword\n return textSpan(ts.findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent), variableDeclaration);\n }\n else {\n // Span only on this declaration\n return textSpan(variableDeclaration);\n }\n }\n function spanInVariableDeclaration(variableDeclaration) {\n // If declaration of for in statement, just set the span in parent\n if (variableDeclaration.parent.parent.kind === 241 /* ForInStatement */) {\n return spanInNode(variableDeclaration.parent.parent);\n }\n var parent = variableDeclaration.parent;\n // If this is a destructuring pattern, set breakpoint in binding pattern\n if (ts.isBindingPattern(variableDeclaration.name)) {\n return spanInBindingPattern(variableDeclaration.name);\n }\n // Breakpoint is possible in variableDeclaration only if there is initialization\n // or its declaration from 'for of'\n if (variableDeclaration.initializer ||\n ts.hasSyntacticModifier(variableDeclaration, 1 /* Export */) ||\n parent.parent.kind === 242 /* ForOfStatement */) {\n return textSpanFromVariableDeclaration(variableDeclaration);\n }\n if (ts.isVariableDeclarationList(variableDeclaration.parent) &&\n variableDeclaration.parent.declarations[0] !== variableDeclaration) {\n // If we cannot set breakpoint on this declaration, set it on previous one\n // Because the variable declaration may be binding pattern and\n // we would like to set breakpoint in last binding element if that's the case,\n // use preceding token instead\n return spanInNode(ts.findPrecedingToken(variableDeclaration.pos, sourceFile, variableDeclaration.parent));\n }\n }\n function canHaveSpanInParameterDeclaration(parameter) {\n // Breakpoint is possible on parameter only if it has initializer, is a rest parameter, or has public or private modifier\n return !!parameter.initializer || parameter.dotDotDotToken !== undefined ||\n ts.hasSyntacticModifier(parameter, 4 /* Public */ | 8 /* Private */);\n }\n function spanInParameterDeclaration(parameter) {\n if (ts.isBindingPattern(parameter.name)) {\n // Set breakpoint in binding pattern\n return spanInBindingPattern(parameter.name);\n }\n else if (canHaveSpanInParameterDeclaration(parameter)) {\n return textSpan(parameter);\n }\n else {\n var functionDeclaration = parameter.parent;\n var indexOfParameter = functionDeclaration.parameters.indexOf(parameter);\n ts.Debug.assert(indexOfParameter !== -1);\n if (indexOfParameter !== 0) {\n // Not a first parameter, go to previous parameter\n return spanInParameterDeclaration(functionDeclaration.parameters[indexOfParameter - 1]);\n }\n else {\n // Set breakpoint in the function declaration body\n return spanInNode(functionDeclaration.body);\n }\n }\n }\n function canFunctionHaveSpanInWholeDeclaration(functionDeclaration) {\n return ts.hasSyntacticModifier(functionDeclaration, 1 /* Export */) ||\n (functionDeclaration.parent.kind === 255 /* ClassDeclaration */ && functionDeclaration.kind !== 169 /* Constructor */);\n }\n function spanInFunctionDeclaration(functionDeclaration) {\n // No breakpoints in the function signature\n if (!functionDeclaration.body) {\n return undefined;\n }\n if (canFunctionHaveSpanInWholeDeclaration(functionDeclaration)) {\n // Set the span on whole function declaration\n return textSpan(functionDeclaration);\n }\n // Set span in function body\n return spanInNode(functionDeclaration.body);\n }\n function spanInFunctionBlock(block) {\n var nodeForSpanInBlock = block.statements.length ? block.statements[0] : block.getLastToken();\n if (canFunctionHaveSpanInWholeDeclaration(block.parent)) {\n return spanInNodeIfStartsOnSameLine(block.parent, nodeForSpanInBlock);\n }\n return spanInNode(nodeForSpanInBlock);\n }\n function spanInBlock(block) {\n switch (block.parent.kind) {\n case 259 /* ModuleDeclaration */:\n if (ts.getModuleInstanceState(block.parent) !== 1 /* Instantiated */) {\n return undefined;\n }\n // Set on parent if on same line otherwise on first statement\n // falls through\n case 239 /* WhileStatement */:\n case 237 /* IfStatement */:\n case 241 /* ForInStatement */:\n return spanInNodeIfStartsOnSameLine(block.parent, block.statements[0]);\n // Set span on previous token if it starts on same line otherwise on the first statement of the block\n case 240 /* ForStatement */:\n case 242 /* ForOfStatement */:\n return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(block.pos, sourceFile, block.parent), block.statements[0]);\n }\n // Default action is to set on first statement\n return spanInNode(block.statements[0]);\n }\n function spanInInitializerOfForLike(forLikeStatement) {\n if (forLikeStatement.initializer.kind === 253 /* VariableDeclarationList */) {\n // Declaration list - set breakpoint in first declaration\n var variableDeclarationList = forLikeStatement.initializer;\n if (variableDeclarationList.declarations.length > 0) {\n return spanInNode(variableDeclarationList.declarations[0]);\n }\n }\n else {\n // Expression - set breakpoint in it\n return spanInNode(forLikeStatement.initializer);\n }\n }\n function spanInForStatement(forStatement) {\n if (forStatement.initializer) {\n return spanInInitializerOfForLike(forStatement);\n }\n if (forStatement.condition) {\n return textSpan(forStatement.condition);\n }\n if (forStatement.incrementor) {\n return textSpan(forStatement.incrementor);\n }\n }\n function spanInBindingPattern(bindingPattern) {\n // Set breakpoint in first binding element\n var firstBindingElement = ts.forEach(bindingPattern.elements, function (element) { return element.kind !== 225 /* OmittedExpression */ ? element : undefined; });\n if (firstBindingElement) {\n return spanInNode(firstBindingElement);\n }\n // Empty binding pattern of binding element, set breakpoint on binding element\n if (bindingPattern.parent.kind === 201 /* BindingElement */) {\n return textSpan(bindingPattern.parent);\n }\n // Variable declaration is used as the span\n return textSpanFromVariableDeclaration(bindingPattern.parent);\n }\n function spanInArrayLiteralOrObjectLiteralDestructuringPattern(node) {\n ts.Debug.assert(node.kind !== 200 /* ArrayBindingPattern */ && node.kind !== 199 /* ObjectBindingPattern */);\n var elements = node.kind === 202 /* ArrayLiteralExpression */ ? node.elements : node.properties;\n var firstBindingElement = ts.forEach(elements, function (element) { return element.kind !== 225 /* OmittedExpression */ ? element : undefined; });\n if (firstBindingElement) {\n return spanInNode(firstBindingElement);\n }\n // Could be ArrayLiteral from destructuring assignment or\n // just nested element in another destructuring assignment\n // set breakpoint on assignment when parent is destructuring assignment\n // Otherwise set breakpoint for this element\n return textSpan(node.parent.kind === 219 /* BinaryExpression */ ? node.parent : node);\n }\n // Tokens:\n function spanInOpenBraceToken(node) {\n switch (node.parent.kind) {\n case 258 /* EnumDeclaration */:\n var enumDeclaration = node.parent;\n return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile, node.parent), enumDeclaration.members.length ? enumDeclaration.members[0] : enumDeclaration.getLastToken(sourceFile));\n case 255 /* ClassDeclaration */:\n var classDeclaration = node.parent;\n return spanInNodeIfStartsOnSameLine(ts.findPrecedingToken(node.pos, sourceFile, node.parent), classDeclaration.members.length ? classDeclaration.members[0] : classDeclaration.getLastToken(sourceFile));\n case 261 /* CaseBlock */:\n return spanInNodeIfStartsOnSameLine(node.parent.parent, node.parent.clauses[0]);\n }\n // Default to parent node\n return spanInNode(node.parent);\n }\n function spanInCloseBraceToken(node) {\n switch (node.parent.kind) {\n case 260 /* ModuleBlock */:\n // If this is not an instantiated module block, no bp span\n if (ts.getModuleInstanceState(node.parent.parent) !== 1 /* Instantiated */) {\n return undefined;\n }\n // falls through\n case 258 /* EnumDeclaration */:\n case 255 /* ClassDeclaration */:\n // Span on close brace token\n return textSpan(node);\n case 233 /* Block */:\n if (ts.isFunctionBlock(node.parent)) {\n // Span on close brace token\n return textSpan(node);\n }\n // falls through\n case 290 /* CatchClause */:\n return spanInNode(ts.lastOrUndefined(node.parent.statements));\n case 261 /* CaseBlock */:\n // breakpoint in last statement of the last clause\n var caseBlock = node.parent;\n var lastClause = ts.lastOrUndefined(caseBlock.clauses);\n if (lastClause) {\n return spanInNode(ts.lastOrUndefined(lastClause.statements));\n }\n return undefined;\n case 199 /* ObjectBindingPattern */:\n // Breakpoint in last binding element or binding pattern if it contains no elements\n var bindingPattern = node.parent;\n return spanInNode(ts.lastOrUndefined(bindingPattern.elements) || bindingPattern);\n // Default to parent node\n default:\n if (ts.isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent)) {\n // Breakpoint in last binding element or binding pattern if it contains no elements\n var objectLiteral = node.parent;\n return textSpan(ts.lastOrUndefined(objectLiteral.properties) || objectLiteral);\n }\n return spanInNode(node.parent);\n }\n }\n function spanInCloseBracketToken(node) {\n switch (node.parent.kind) {\n case 200 /* ArrayBindingPattern */:\n // Breakpoint in last binding element or binding pattern if it contains no elements\n var bindingPattern = node.parent;\n return textSpan(ts.lastOrUndefined(bindingPattern.elements) || bindingPattern);\n default:\n if (ts.isArrayLiteralOrObjectLiteralDestructuringPattern(node.parent)) {\n // Breakpoint in last binding element or binding pattern if it contains no elements\n var arrayLiteral = node.parent;\n return textSpan(ts.lastOrUndefined(arrayLiteral.elements) || arrayLiteral);\n }\n // Default to parent node\n return spanInNode(node.parent);\n }\n }\n function spanInOpenParenToken(node) {\n if (node.parent.kind === 238 /* DoStatement */ || // Go to while keyword and do action instead\n node.parent.kind === 206 /* CallExpression */ ||\n node.parent.kind === 207 /* NewExpression */) {\n return spanInPreviousNode(node);\n }\n if (node.parent.kind === 210 /* ParenthesizedExpression */) {\n return spanInNextNode(node);\n }\n // Default to parent node\n return spanInNode(node.parent);\n }\n function spanInCloseParenToken(node) {\n // Is this close paren token of parameter list, set span in previous token\n switch (node.parent.kind) {\n case 211 /* FunctionExpression */:\n case 254 /* FunctionDeclaration */:\n case 212 /* ArrowFunction */:\n case 167 /* MethodDeclaration */:\n case 166 /* MethodSignature */:\n case 170 /* GetAccessor */:\n case 171 /* SetAccessor */:\n case 169 /* Constructor */:\n case 239 /* WhileStatement */:\n case 238 /* DoStatement */:\n case 240 /* ForStatement */:\n case 242 /* ForOfStatement */:\n case 206 /* CallExpression */:\n case 207 /* NewExpression */:\n case 210 /* ParenthesizedExpression */:\n return spanInPreviousNode(node);\n // Default to parent node\n default:\n return spanInNode(node.parent);\n }\n }\n function spanInColonToken(node) {\n // Is this : specifying return annotation of the function declaration\n if (ts.isFunctionLike(node.parent) ||\n node.parent.kind === 291 /* PropertyAssignment */ ||\n node.parent.kind === 162 /* Parameter */) {\n return spanInPreviousNode(node);\n }\n return spanInNode(node.parent);\n }\n function spanInGreaterThanOrLessThanToken(node) {\n if (node.parent.kind === 209 /* TypeAssertionExpression */) {\n return spanInNextNode(node);\n }\n return spanInNode(node.parent);\n }\n function spanInWhileKeyword(node) {\n if (node.parent.kind === 238 /* DoStatement */) {\n // Set span on while expression\n return textSpanEndingAtNextToken(node, node.parent.expression);\n }\n // Default to parent node\n return spanInNode(node.parent);\n }\n function spanInOfKeyword(node) {\n if (node.parent.kind === 242 /* ForOfStatement */) {\n // Set using next token\n return spanInNextNode(node);\n }\n // Default to parent node\n return spanInNode(node.parent);\n }\n }\n }\n BreakpointResolver.spanInSourceFileAtLocation = spanInSourceFileAtLocation;\n })(BreakpointResolver = ts.BreakpointResolver || (ts.BreakpointResolver = {}));\n})(ts || (ts = {}));\nvar ts;\n(function (ts) {\n /**\n * Transform one or more nodes using the supplied transformers.\n * @param source A single `Node` or an array of `Node` objects.\n * @param transformers An array of `TransformerFactory` callbacks used to process the transformation.\n * @param compilerOptions Optional compiler options.\n */\n function transform(source, transformers, compilerOptions) {\n var diagnostics = [];\n compilerOptions = ts.fixupCompilerOptions(compilerOptions, diagnostics); // TODO: GH#18217\n var nodes = ts.isArray(source) ? source : [source];\n var result = ts.transformNodes(/*resolver*/ undefined, /*emitHost*/ undefined, ts.factory, compilerOptions, nodes, transformers, /*allowDtsFiles*/ true);\n result.diagnostics = ts.concatenate(result.diagnostics, diagnostics);\n return result;\n }\n ts.transform = transform;\n})(ts || (ts = {}));\n//\n// Copyright (c) Microsoft Corporation. All rights reserved.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\n/* @internal */\nvar debugObjectHost = (function () { return this; })(); // eslint-disable-line prefer-const\n// We need to use 'null' to interface with the managed side.\n/* eslint-disable no-in-operator */\n/* @internal */\nvar ts;\n(function (ts) {\n function logInternalError(logger, err) {\n if (logger) {\n logger.log(\"*INTERNAL ERROR* - Exception in typescript services: \" + err.message);\n }\n }\n var ScriptSnapshotShimAdapter = /** @class */ (function () {\n function ScriptSnapshotShimAdapter(scriptSnapshotShim) {\n this.scriptSnapshotShim = scriptSnapshotShim;\n }\n ScriptSnapshotShimAdapter.prototype.getText = function (start, end) {\n return this.scriptSnapshotShim.getText(start, end);\n };\n ScriptSnapshotShimAdapter.prototype.getLength = function () {\n return this.scriptSnapshotShim.getLength();\n };\n ScriptSnapshotShimAdapter.prototype.getChangeRange = function (oldSnapshot) {\n var oldSnapshotShim = oldSnapshot;\n var encoded = this.scriptSnapshotShim.getChangeRange(oldSnapshotShim.scriptSnapshotShim);\n /* eslint-disable no-null/no-null */\n if (encoded === null) {\n return null; // TODO: GH#18217\n }\n /* eslint-enable no-null/no-null */\n var decoded = JSON.parse(encoded); // TODO: GH#18217\n return ts.createTextChangeRange(ts.createTextSpan(decoded.span.start, decoded.span.length), decoded.newLength);\n };\n ScriptSnapshotShimAdapter.prototype.dispose = function () {\n // if scriptSnapshotShim is a COM object then property check becomes method call with no arguments\n // 'in' does not have this effect\n if (\"dispose\" in this.scriptSnapshotShim) {\n this.scriptSnapshotShim.dispose(); // TODO: GH#18217 Can we just use `if (this.scriptSnapshotShim.dispose)`?\n }\n };\n return ScriptSnapshotShimAdapter;\n }());\n var LanguageServiceShimHostAdapter = /** @class */ (function () {\n function LanguageServiceShimHostAdapter(shimHost) {\n var _this = this;\n this.shimHost = shimHost;\n this.loggingEnabled = false;\n this.tracingEnabled = false;\n // if shimHost is a COM object then property check will become method call with no arguments.\n // 'in' does not have this effect.\n if (\"getModuleResolutionsForFile\" in this.shimHost) {\n this.resolveModuleNames = function (moduleNames, containingFile) {\n var resolutionsInFile = JSON.parse(_this.shimHost.getModuleResolutionsForFile(containingFile)); // TODO: GH#18217\n return ts.map(moduleNames, function (name) {\n var result = ts.getProperty(resolutionsInFile, name);\n return result ? { resolvedFileName: result, extension: ts.extensionFromPath(result), isExternalLibraryImport: false } : undefined;\n });\n };\n }\n if (\"directoryExists\" in this.shimHost) {\n this.directoryExists = function (directoryName) { return _this.shimHost.directoryExists(directoryName); };\n }\n if (\"getTypeReferenceDirectiveResolutionsForFile\" in this.shimHost) {\n this.resolveTypeReferenceDirectives = function (typeDirectiveNames, containingFile) {\n var typeDirectivesForFile = JSON.parse(_this.shimHost.getTypeReferenceDirectiveResolutionsForFile(containingFile)); // TODO: GH#18217\n return ts.map(typeDirectiveNames, function (name) { return ts.getProperty(typeDirectivesForFile, name); });\n };\n }\n }\n LanguageServiceShimHostAdapter.prototype.log = function (s) {\n if (this.loggingEnabled) {\n this.shimHost.log(s);\n }\n };\n LanguageServiceShimHostAdapter.prototype.trace = function (s) {\n if (this.tracingEnabled) {\n this.shimHost.trace(s);\n }\n };\n LanguageServiceShimHostAdapter.prototype.error = function (s) {\n this.shimHost.error(s);\n };\n LanguageServiceShimHostAdapter.prototype.getProjectVersion = function () {\n if (!this.shimHost.getProjectVersion) {\n // shimmed host does not support getProjectVersion\n return undefined; // TODO: GH#18217\n }\n return this.shimHost.getProjectVersion();\n };\n LanguageServiceShimHostAdapter.prototype.getTypeRootsVersion = function () {\n if (!this.shimHost.getTypeRootsVersion) {\n return 0;\n }\n return this.shimHost.getTypeRootsVersion();\n };\n LanguageServiceShimHostAdapter.prototype.useCaseSensitiveFileNames = function () {\n return this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : false;\n };\n LanguageServiceShimHostAdapter.prototype.getCompilationSettings = function () {\n var settingsJson = this.shimHost.getCompilationSettings();\n // eslint-disable-next-line no-null/no-null\n if (settingsJson === null || settingsJson === \"\") {\n throw Error(\"LanguageServiceShimHostAdapter.getCompilationSettings: empty compilationSettings\");\n }\n var compilerOptions = JSON.parse(settingsJson);\n // permit language service to handle all files (filtering should be performed on the host side)\n compilerOptions.allowNonTsExtensions = true;\n return compilerOptions;\n };\n LanguageServiceShimHostAdapter.prototype.getScriptFileNames = function () {\n var encoded = this.shimHost.getScriptFileNames();\n return JSON.parse(encoded);\n };\n LanguageServiceShimHostAdapter.prototype.getScriptSnapshot = function (fileName) {\n var scriptSnapshot = this.shimHost.getScriptSnapshot(fileName);\n return scriptSnapshot && new ScriptSnapshotShimAdapter(scriptSnapshot);\n };\n LanguageServiceShimHostAdapter.prototype.getScriptKind = function (fileName) {\n if (\"getScriptKind\" in this.shimHost) {\n return this.shimHost.getScriptKind(fileName); // TODO: GH#18217\n }\n else {\n return 0 /* Unknown */;\n }\n };\n LanguageServiceShimHostAdapter.prototype.getScriptVersion = function (fileName) {\n return this.shimHost.getScriptVersion(fileName);\n };\n LanguageServiceShimHostAdapter.prototype.getLocalizedDiagnosticMessages = function () {\n /* eslint-disable no-null/no-null */\n var diagnosticMessagesJson = this.shimHost.getLocalizedDiagnosticMessages();\n if (diagnosticMessagesJson === null || diagnosticMessagesJson === \"\") {\n return null;\n }\n try {\n return JSON.parse(diagnosticMessagesJson);\n }\n catch (e) {\n this.log(e.description || \"diagnosticMessages.generated.json has invalid JSON format\");\n return null;\n }\n /* eslint-enable no-null/no-null */\n };\n LanguageServiceShimHostAdapter.prototype.getCancellationToken = function () {\n var hostCancellationToken = this.shimHost.getCancellationToken();\n return new ts.ThrottledCancellationToken(hostCancellationToken);\n };\n LanguageServiceShimHostAdapter.prototype.getCurrentDirectory = function () {\n return this.shimHost.getCurrentDirectory();\n };\n LanguageServiceShimHostAdapter.prototype.getDirectories = function (path) {\n return JSON.parse(this.shimHost.getDirectories(path));\n };\n LanguageServiceShimHostAdapter.prototype.getDefaultLibFileName = function (options) {\n return this.shimHost.getDefaultLibFileName(JSON.stringify(options));\n };\n LanguageServiceShimHostAdapter.prototype.readDirectory = function (path, extensions, exclude, include, depth) {\n var pattern = ts.getFileMatcherPatterns(path, exclude, include, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory()); // TODO: GH#18217\n return JSON.parse(this.shimHost.readDirectory(path, JSON.stringify(extensions), JSON.stringify(pattern.basePaths), pattern.excludePattern, pattern.includeFilePattern, pattern.includeDirectoryPattern, depth));\n };\n LanguageServiceShimHostAdapter.prototype.readFile = function (path, encoding) {\n return this.shimHost.readFile(path, encoding);\n };\n LanguageServiceShimHostAdapter.prototype.fileExists = function (path) {\n return this.shimHost.fileExists(path);\n };\n return LanguageServiceShimHostAdapter;\n }());\n ts.LanguageServiceShimHostAdapter = LanguageServiceShimHostAdapter;\n var CoreServicesShimHostAdapter = /** @class */ (function () {\n function CoreServicesShimHostAdapter(shimHost) {\n var _this = this;\n this.shimHost = shimHost;\n this.useCaseSensitiveFileNames = this.shimHost.useCaseSensitiveFileNames ? this.shimHost.useCaseSensitiveFileNames() : false;\n if (\"directoryExists\" in this.shimHost) {\n this.directoryExists = function (directoryName) { return _this.shimHost.directoryExists(directoryName); };\n }\n else {\n this.directoryExists = undefined; // TODO: GH#18217\n }\n if (\"realpath\" in this.shimHost) {\n this.realpath = function (path) { return _this.shimHost.realpath(path); }; // TODO: GH#18217\n }\n else {\n this.realpath = undefined; // TODO: GH#18217\n }\n }\n CoreServicesShimHostAdapter.prototype.readDirectory = function (rootDir, extensions, exclude, include, depth) {\n var pattern = ts.getFileMatcherPatterns(rootDir, exclude, include, this.shimHost.useCaseSensitiveFileNames(), this.shimHost.getCurrentDirectory()); // TODO: GH#18217\n return JSON.parse(this.shimHost.readDirectory(rootDir, JSON.stringify(extensions), JSON.stringify(pattern.basePaths), pattern.excludePattern, pattern.includeFilePattern, pattern.includeDirectoryPattern, depth));\n };\n CoreServicesShimHostAdapter.prototype.fileExists = function (fileName) {\n return this.shimHost.fileExists(fileName);\n };\n CoreServicesShimHostAdapter.prototype.readFile = function (fileName) {\n return this.shimHost.readFile(fileName);\n };\n CoreServicesShimHostAdapter.prototype.getDirectories = function (path) {\n return JSON.parse(this.shimHost.getDirectories(path));\n };\n return CoreServicesShimHostAdapter;\n }());\n ts.CoreServicesShimHostAdapter = CoreServicesShimHostAdapter;\n function simpleForwardCall(logger, actionDescription, action, logPerformance) {\n var start;\n if (logPerformance) {\n logger.log(actionDescription);\n start = ts.timestamp();\n }\n var result = action();\n if (logPerformance) {\n var end = ts.timestamp();\n logger.log(actionDescription + \" completed in \" + (end - start) + \" msec\");\n if (ts.isString(result)) {\n var str = result;\n if (str.length > 128) {\n str = str.substring(0, 128) + \"...\";\n }\n logger.log(\" result.length=\" + str.length + \", result='\" + JSON.stringify(str) + \"'\");\n }\n }\n return result;\n }\n function forwardJSONCall(logger, actionDescription, action, logPerformance) {\n return forwardCall(logger, actionDescription, /*returnJson*/ true, action, logPerformance);\n }\n function forwardCall(logger, actionDescription, returnJson, action, logPerformance) {\n try {\n var result = simpleForwardCall(logger, actionDescription, action, logPerformance);\n return returnJson ? JSON.stringify({ result: result }) : result;\n }\n catch (err) {\n if (err instanceof ts.OperationCanceledException) {\n return JSON.stringify({ canceled: true });\n }\n logInternalError(logger, err);\n err.description = actionDescription;\n return JSON.stringify({ error: err });\n }\n }\n var ShimBase = /** @class */ (function () {\n function ShimBase(factory) {\n this.factory = factory;\n factory.registerShim(this);\n }\n ShimBase.prototype.dispose = function (_dummy) {\n this.factory.unregisterShim(this);\n };\n return ShimBase;\n }());\n function realizeDiagnostics(diagnostics, newLine) {\n return diagnostics.map(function (d) { return realizeDiagnostic(d, newLine); });\n }\n ts.realizeDiagnostics = realizeDiagnostics;\n function realizeDiagnostic(diagnostic, newLine) {\n return {\n message: ts.flattenDiagnosticMessageText(diagnostic.messageText, newLine),\n start: diagnostic.start,\n length: diagnostic.length,\n category: ts.diagnosticCategoryName(diagnostic),\n code: diagnostic.code,\n reportsUnnecessary: diagnostic.reportsUnnecessary,\n reportsDeprecated: diagnostic.reportsDeprecated\n };\n }\n var LanguageServiceShimObject = /** @class */ (function (_super) {\n __extends(LanguageServiceShimObject, _super);\n function LanguageServiceShimObject(factory, host, languageService) {\n var _this = _super.call(this, factory) || this;\n _this.host = host;\n _this.languageService = languageService;\n _this.logPerformance = false;\n _this.logger = _this.host;\n return _this;\n }\n LanguageServiceShimObject.prototype.forwardJSONCall = function (actionDescription, action) {\n return forwardJSONCall(this.logger, actionDescription, action, this.logPerformance);\n };\n /// DISPOSE\n /**\n * Ensure (almost) deterministic release of internal Javascript resources when\n * some external native objects holds onto us (e.g. Com/Interop).\n */\n LanguageServiceShimObject.prototype.dispose = function (dummy) {\n this.logger.log(\"dispose()\");\n this.languageService.dispose();\n this.languageService = null; // eslint-disable-line no-null/no-null\n // force a GC\n if (debugObjectHost && debugObjectHost.CollectGarbage) {\n debugObjectHost.CollectGarbage();\n this.logger.log(\"CollectGarbage()\");\n }\n this.logger = null; // eslint-disable-line no-null/no-null\n _super.prototype.dispose.call(this, dummy);\n };\n /// REFRESH\n /**\n * Update the list of scripts known to the compiler\n */\n LanguageServiceShimObject.prototype.refresh = function (throwOnError) {\n this.forwardJSONCall(\"refresh(\" + throwOnError + \")\", function () { return null; } // eslint-disable-line no-null/no-null\n );\n };\n LanguageServiceShimObject.prototype.cleanupSemanticCache = function () {\n var _this = this;\n this.forwardJSONCall(\"cleanupSemanticCache()\", function () {\n _this.languageService.cleanupSemanticCache();\n return null; // eslint-disable-line no-null/no-null\n });\n };\n LanguageServiceShimObject.prototype.realizeDiagnostics = function (diagnostics) {\n var newLine = ts.getNewLineOrDefaultFromHost(this.host);\n return realizeDiagnostics(diagnostics, newLine);\n };\n LanguageServiceShimObject.prototype.getSyntacticClassifications = function (fileName, start, length) {\n var _this = this;\n return this.forwardJSONCall(\"getSyntacticClassifications('\" + fileName + \"', \" + start + \", \" + length + \")\", function () { return _this.languageService.getSyntacticClassifications(fileName, ts.createTextSpan(start, length)); });\n };\n LanguageServiceShimObject.prototype.getSemanticClassifications = function (fileName, start, length) {\n var _this = this;\n return this.forwardJSONCall(\"getSemanticClassifications('\" + fileName + \"', \" + start + \", \" + length + \")\", function () { return _this.languageService.getSemanticClassifications(fileName, ts.createTextSpan(start, length)); });\n };\n LanguageServiceShimObject.prototype.getEncodedSyntacticClassifications = function (fileName, start, length) {\n var _this = this;\n return this.forwardJSONCall(\"getEncodedSyntacticClassifications('\" + fileName + \"', \" + start + \", \" + length + \")\", \n // directly serialize the spans out to a string. This is much faster to decode\n // on the managed side versus a full JSON array.\n function () { return convertClassifications(_this.languageService.getEncodedSyntacticClassifications(fileName, ts.createTextSpan(start, length))); });\n };\n LanguageServiceShimObject.prototype.getEncodedSemanticClassifications = function (fileName, start, length) {\n var _this = this;\n return this.forwardJSONCall(\"getEncodedSemanticClassifications('\" + fileName + \"', \" + start + \", \" + length + \")\", \n // directly serialize the spans out to a string. This is much faster to decode\n // on the managed side versus a full JSON array.\n function () { return convertClassifications(_this.languageService.getEncodedSemanticClassifications(fileName, ts.createTextSpan(start, length))); });\n };\n LanguageServiceShimObject.prototype.getSyntacticDiagnostics = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getSyntacticDiagnostics('\" + fileName + \"')\", function () {\n var diagnostics = _this.languageService.getSyntacticDiagnostics(fileName);\n return _this.realizeDiagnostics(diagnostics);\n });\n };\n LanguageServiceShimObject.prototype.getSemanticDiagnostics = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getSemanticDiagnostics('\" + fileName + \"')\", function () {\n var diagnostics = _this.languageService.getSemanticDiagnostics(fileName);\n return _this.realizeDiagnostics(diagnostics);\n });\n };\n LanguageServiceShimObject.prototype.getSuggestionDiagnostics = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getSuggestionDiagnostics('\" + fileName + \"')\", function () { return _this.realizeDiagnostics(_this.languageService.getSuggestionDiagnostics(fileName)); });\n };\n LanguageServiceShimObject.prototype.getCompilerOptionsDiagnostics = function () {\n var _this = this;\n return this.forwardJSONCall(\"getCompilerOptionsDiagnostics()\", function () {\n var diagnostics = _this.languageService.getCompilerOptionsDiagnostics();\n return _this.realizeDiagnostics(diagnostics);\n });\n };\n /// QUICKINFO\n /**\n * Computes a string representation of the type at the requested position\n * in the active file.\n */\n LanguageServiceShimObject.prototype.getQuickInfoAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getQuickInfoAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getQuickInfoAtPosition(fileName, position); });\n };\n /// NAMEORDOTTEDNAMESPAN\n /**\n * Computes span information of the name or dotted name at the requested position\n * in the active file.\n */\n LanguageServiceShimObject.prototype.getNameOrDottedNameSpan = function (fileName, startPos, endPos) {\n var _this = this;\n return this.forwardJSONCall(\"getNameOrDottedNameSpan('\" + fileName + \"', \" + startPos + \", \" + endPos + \")\", function () { return _this.languageService.getNameOrDottedNameSpan(fileName, startPos, endPos); });\n };\n /**\n * STATEMENTSPAN\n * Computes span information of statement at the requested position in the active file.\n */\n LanguageServiceShimObject.prototype.getBreakpointStatementAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getBreakpointStatementAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getBreakpointStatementAtPosition(fileName, position); });\n };\n /// SIGNATUREHELP\n LanguageServiceShimObject.prototype.getSignatureHelpItems = function (fileName, position, options) {\n var _this = this;\n return this.forwardJSONCall(\"getSignatureHelpItems('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getSignatureHelpItems(fileName, position, options); });\n };\n /// GOTO DEFINITION\n /**\n * Computes the definition location and file for the symbol\n * at the requested position.\n */\n LanguageServiceShimObject.prototype.getDefinitionAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getDefinitionAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getDefinitionAtPosition(fileName, position); });\n };\n /**\n * Computes the definition location and file for the symbol\n * at the requested position.\n */\n LanguageServiceShimObject.prototype.getDefinitionAndBoundSpan = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getDefinitionAndBoundSpan('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getDefinitionAndBoundSpan(fileName, position); });\n };\n /// GOTO Type\n /**\n * Computes the definition location of the type of the symbol\n * at the requested position.\n */\n LanguageServiceShimObject.prototype.getTypeDefinitionAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getTypeDefinitionAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getTypeDefinitionAtPosition(fileName, position); });\n };\n /// GOTO Implementation\n /**\n * Computes the implementation location of the symbol\n * at the requested position.\n */\n LanguageServiceShimObject.prototype.getImplementationAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getImplementationAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getImplementationAtPosition(fileName, position); });\n };\n LanguageServiceShimObject.prototype.getRenameInfo = function (fileName, position, options) {\n var _this = this;\n return this.forwardJSONCall(\"getRenameInfo('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getRenameInfo(fileName, position, options); });\n };\n LanguageServiceShimObject.prototype.getSmartSelectionRange = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getSmartSelectionRange('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getSmartSelectionRange(fileName, position); });\n };\n LanguageServiceShimObject.prototype.findRenameLocations = function (fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename) {\n var _this = this;\n return this.forwardJSONCall(\"findRenameLocations('\" + fileName + \"', \" + position + \", \" + findInStrings + \", \" + findInComments + \", \" + providePrefixAndSuffixTextForRename + \")\", function () { return _this.languageService.findRenameLocations(fileName, position, findInStrings, findInComments, providePrefixAndSuffixTextForRename); });\n };\n /// GET BRACE MATCHING\n LanguageServiceShimObject.prototype.getBraceMatchingAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getBraceMatchingAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getBraceMatchingAtPosition(fileName, position); });\n };\n LanguageServiceShimObject.prototype.isValidBraceCompletionAtPosition = function (fileName, position, openingBrace) {\n var _this = this;\n return this.forwardJSONCall(\"isValidBraceCompletionAtPosition('\" + fileName + \"', \" + position + \", \" + openingBrace + \")\", function () { return _this.languageService.isValidBraceCompletionAtPosition(fileName, position, openingBrace); });\n };\n LanguageServiceShimObject.prototype.getSpanOfEnclosingComment = function (fileName, position, onlyMultiLine) {\n var _this = this;\n return this.forwardJSONCall(\"getSpanOfEnclosingComment('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getSpanOfEnclosingComment(fileName, position, onlyMultiLine); });\n };\n /// GET SMART INDENT\n LanguageServiceShimObject.prototype.getIndentationAtPosition = function (fileName, position, options /*Services.EditorOptions*/) {\n var _this = this;\n return this.forwardJSONCall(\"getIndentationAtPosition('\" + fileName + \"', \" + position + \")\", function () {\n var localOptions = JSON.parse(options);\n return _this.languageService.getIndentationAtPosition(fileName, position, localOptions);\n });\n };\n /// GET REFERENCES\n LanguageServiceShimObject.prototype.getReferencesAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getReferencesAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getReferencesAtPosition(fileName, position); });\n };\n LanguageServiceShimObject.prototype.findReferences = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"findReferences('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.findReferences(fileName, position); });\n };\n LanguageServiceShimObject.prototype.getFileReferences = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getFileReferences('\" + fileName + \")\", function () { return _this.languageService.getFileReferences(fileName); });\n };\n LanguageServiceShimObject.prototype.getOccurrencesAtPosition = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"getOccurrencesAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getOccurrencesAtPosition(fileName, position); });\n };\n LanguageServiceShimObject.prototype.getDocumentHighlights = function (fileName, position, filesToSearch) {\n var _this = this;\n return this.forwardJSONCall(\"getDocumentHighlights('\" + fileName + \"', \" + position + \")\", function () {\n var results = _this.languageService.getDocumentHighlights(fileName, position, JSON.parse(filesToSearch));\n // workaround for VS document highlighting issue - keep only items from the initial file\n var normalizedName = ts.toFileNameLowerCase(ts.normalizeSlashes(fileName));\n return ts.filter(results, function (r) { return ts.toFileNameLowerCase(ts.normalizeSlashes(r.fileName)) === normalizedName; });\n });\n };\n /// COMPLETION LISTS\n /**\n * Get a string based representation of the completions\n * to provide at the given source position and providing a member completion\n * list if requested.\n */\n LanguageServiceShimObject.prototype.getCompletionsAtPosition = function (fileName, position, preferences) {\n var _this = this;\n return this.forwardJSONCall(\"getCompletionsAtPosition('\" + fileName + \"', \" + position + \", \" + preferences + \")\", function () { return _this.languageService.getCompletionsAtPosition(fileName, position, preferences); });\n };\n /** Get a string based representation of a completion list entry details */\n LanguageServiceShimObject.prototype.getCompletionEntryDetails = function (fileName, position, entryName, formatOptions, source, preferences, data) {\n var _this = this;\n return this.forwardJSONCall(\"getCompletionEntryDetails('\" + fileName + \"', \" + position + \", '\" + entryName + \"')\", function () {\n var localOptions = formatOptions === undefined ? undefined : JSON.parse(formatOptions);\n return _this.languageService.getCompletionEntryDetails(fileName, position, entryName, localOptions, source, preferences, data);\n });\n };\n LanguageServiceShimObject.prototype.getFormattingEditsForRange = function (fileName, start, end, options /*Services.FormatCodeOptions*/) {\n var _this = this;\n return this.forwardJSONCall(\"getFormattingEditsForRange('\" + fileName + \"', \" + start + \", \" + end + \")\", function () {\n var localOptions = JSON.parse(options);\n return _this.languageService.getFormattingEditsForRange(fileName, start, end, localOptions);\n });\n };\n LanguageServiceShimObject.prototype.getFormattingEditsForDocument = function (fileName, options /*Services.FormatCodeOptions*/) {\n var _this = this;\n return this.forwardJSONCall(\"getFormattingEditsForDocument('\" + fileName + \"')\", function () {\n var localOptions = JSON.parse(options);\n return _this.languageService.getFormattingEditsForDocument(fileName, localOptions);\n });\n };\n LanguageServiceShimObject.prototype.getFormattingEditsAfterKeystroke = function (fileName, position, key, options /*Services.FormatCodeOptions*/) {\n var _this = this;\n return this.forwardJSONCall(\"getFormattingEditsAfterKeystroke('\" + fileName + \"', \" + position + \", '\" + key + \"')\", function () {\n var localOptions = JSON.parse(options);\n return _this.languageService.getFormattingEditsAfterKeystroke(fileName, position, key, localOptions);\n });\n };\n LanguageServiceShimObject.prototype.getDocCommentTemplateAtPosition = function (fileName, position, options) {\n var _this = this;\n return this.forwardJSONCall(\"getDocCommentTemplateAtPosition('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.getDocCommentTemplateAtPosition(fileName, position, options); });\n };\n /// NAVIGATE TO\n /** Return a list of symbols that are interesting to navigate to */\n LanguageServiceShimObject.prototype.getNavigateToItems = function (searchValue, maxResultCount, fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getNavigateToItems('\" + searchValue + \"', \" + maxResultCount + \", \" + fileName + \")\", function () { return _this.languageService.getNavigateToItems(searchValue, maxResultCount, fileName); });\n };\n LanguageServiceShimObject.prototype.getNavigationBarItems = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getNavigationBarItems('\" + fileName + \"')\", function () { return _this.languageService.getNavigationBarItems(fileName); });\n };\n LanguageServiceShimObject.prototype.getNavigationTree = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getNavigationTree('\" + fileName + \"')\", function () { return _this.languageService.getNavigationTree(fileName); });\n };\n LanguageServiceShimObject.prototype.getOutliningSpans = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getOutliningSpans('\" + fileName + \"')\", function () { return _this.languageService.getOutliningSpans(fileName); });\n };\n LanguageServiceShimObject.prototype.getTodoComments = function (fileName, descriptors) {\n var _this = this;\n return this.forwardJSONCall(\"getTodoComments('\" + fileName + \"')\", function () { return _this.languageService.getTodoComments(fileName, JSON.parse(descriptors)); });\n };\n /// CALL HIERARCHY\n LanguageServiceShimObject.prototype.prepareCallHierarchy = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"prepareCallHierarchy('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.prepareCallHierarchy(fileName, position); });\n };\n LanguageServiceShimObject.prototype.provideCallHierarchyIncomingCalls = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"provideCallHierarchyIncomingCalls('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.provideCallHierarchyIncomingCalls(fileName, position); });\n };\n LanguageServiceShimObject.prototype.provideCallHierarchyOutgoingCalls = function (fileName, position) {\n var _this = this;\n return this.forwardJSONCall(\"provideCallHierarchyOutgoingCalls('\" + fileName + \"', \" + position + \")\", function () { return _this.languageService.provideCallHierarchyOutgoingCalls(fileName, position); });\n };\n LanguageServiceShimObject.prototype.provideInlayHints = function (fileName, span, preference) {\n var _this = this;\n return this.forwardJSONCall(\"provideInlayHints('\" + fileName + \"', '\" + JSON.stringify(span) + \"', \" + JSON.stringify(preference) + \")\", function () { return _this.languageService.provideInlayHints(fileName, span, preference); });\n };\n /// Emit\n LanguageServiceShimObject.prototype.getEmitOutput = function (fileName) {\n var _this = this;\n return this.forwardJSONCall(\"getEmitOutput('\" + fileName + \"')\", function () {\n var _a = _this.languageService.getEmitOutput(fileName), diagnostics = _a.diagnostics, rest = __rest(_a, [\"diagnostics\"]);\n return __assign(__assign({}, rest), { diagnostics: _this.realizeDiagnostics(diagnostics) });\n });\n };\n LanguageServiceShimObject.prototype.getEmitOutputObject = function (fileName) {\n var _this = this;\n return forwardCall(this.logger, \"getEmitOutput('\" + fileName + \"')\", \n /*returnJson*/ false, function () { return _this.languageService.getEmitOutput(fileName); }, this.logPerformance);\n };\n LanguageServiceShimObject.prototype.toggleLineComment = function (fileName, textRange) {\n var _this = this;\n return this.forwardJSONCall(\"toggleLineComment('\" + fileName + \"', '\" + JSON.stringify(textRange) + \"')\", function () { return _this.languageService.toggleLineComment(fileName, textRange); });\n };\n LanguageServiceShimObject.prototype.toggleMultilineComment = function (fileName, textRange) {\n var _this = this;\n return this.forwardJSONCall(\"toggleMultilineComment('\" + fileName + \"', '\" + JSON.stringify(textRange) + \"')\", function () { return _this.languageService.toggleMultilineComment(fileName, textRange); });\n };\n LanguageServiceShimObject.prototype.commentSelection = function (fileName, textRange) {\n var _this = this;\n return this.forwardJSONCall(\"commentSelection('\" + fileName + \"', '\" + JSON.stringify(textRange) + \"')\", function () { return _this.languageService.commentSelection(fileName, textRange); });\n };\n LanguageServiceShimObject.prototype.uncommentSelection = function (fileName, textRange) {\n var _this = this;\n return this.forwardJSONCall(\"uncommentSelection('\" + fileName + \"', '\" + JSON.stringify(textRange) + \"')\", function () { return _this.languageService.uncommentSelection(fileName, textRange); });\n };\n return LanguageServiceShimObject;\n }(ShimBase));\n function convertClassifications(classifications) {\n return { spans: classifications.spans.join(\",\"), endOfLineState: classifications.endOfLineState };\n }\n var ClassifierShimObject = /** @class */ (function (_super) {\n __extends(ClassifierShimObject, _super);\n function ClassifierShimObject(factory, logger) {\n var _this = _super.call(this, factory) || this;\n _this.logger = logger;\n _this.logPerformance = false;\n _this.classifier = ts.createClassifier();\n return _this;\n }\n ClassifierShimObject.prototype.getEncodedLexicalClassifications = function (text, lexState, syntacticClassifierAbsent) {\n var _this = this;\n if (syntacticClassifierAbsent === void 0) { syntacticClassifierAbsent = false; }\n return forwardJSONCall(this.logger, \"getEncodedLexicalClassifications\", function () { return convertClassifications(_this.classifier.getEncodedLexicalClassifications(text, lexState, syntacticClassifierAbsent)); }, this.logPerformance);\n };\n /// COLORIZATION\n ClassifierShimObject.prototype.getClassificationsForLine = function (text, lexState, classifyKeywordsInGenerics) {\n if (classifyKeywordsInGenerics === void 0) { classifyKeywordsInGenerics = false; }\n var classification = this.classifier.getClassificationsForLine(text, lexState, classifyKeywordsInGenerics);\n var result = \"\";\n for (var _i = 0, _a = classification.entries; _i < _a.length; _i++) {\n var item = _a[_i];\n result += item.length + \"\\n\";\n result += item.classification + \"\\n\";\n }\n result += classification.finalLexState;\n return result;\n };\n return ClassifierShimObject;\n }(ShimBase));\n var CoreServicesShimObject = /** @class */ (function (_super) {\n __extends(CoreServicesShimObject, _super);\n function CoreServicesShimObject(factory, logger, host) {\n var _this = _super.call(this, factory) || this;\n _this.logger = logger;\n _this.host = host;\n _this.logPerformance = false;\n return _this;\n }\n CoreServicesShimObject.prototype.forwardJSONCall = function (actionDescription, action) {\n return forwardJSONCall(this.logger, actionDescription, action, this.logPerformance);\n };\n CoreServicesShimObject.prototype.resolveModuleName = function (fileName, moduleName, compilerOptionsJson) {\n var _this = this;\n return this.forwardJSONCall(\"resolveModuleName('\" + fileName + \"')\", function () {\n var compilerOptions = JSON.parse(compilerOptionsJson);\n var result = ts.resolveModuleName(moduleName, ts.normalizeSlashes(fileName), compilerOptions, _this.host);\n var resolvedFileName = result.resolvedModule ? result.resolvedModule.resolvedFileName : undefined;\n if (result.resolvedModule && result.resolvedModule.extension !== \".ts\" /* Ts */ && result.resolvedModule.extension !== \".tsx\" /* Tsx */ && result.resolvedModule.extension !== \".d.ts\" /* Dts */) {\n resolvedFileName = undefined;\n }\n return {\n resolvedFileName: resolvedFileName,\n failedLookupLocations: result.failedLookupLocations\n };\n });\n };\n CoreServicesShimObject.prototype.resolveTypeReferenceDirective = function (fileName, typeReferenceDirective, compilerOptionsJson) {\n var _this = this;\n return this.forwardJSONCall(\"resolveTypeReferenceDirective(\" + fileName + \")\", function () {\n var compilerOptions = JSON.parse(compilerOptionsJson);\n var result = ts.resolveTypeReferenceDirective(typeReferenceDirective, ts.normalizeSlashes(fileName), compilerOptions, _this.host);\n return {\n resolvedFileName: result.resolvedTypeReferenceDirective ? result.resolvedTypeReferenceDirective.resolvedFileName : undefined,\n primary: result.resolvedTypeReferenceDirective ? result.resolvedTypeReferenceDirective.primary : true,\n failedLookupLocations: result.failedLookupLocations\n };\n });\n };\n CoreServicesShimObject.prototype.getPreProcessedFileInfo = function (fileName, sourceTextSnapshot) {\n var _this = this;\n return this.forwardJSONCall(\"getPreProcessedFileInfo('\" + fileName + \"')\", function () {\n // for now treat files as JavaScript\n var result = ts.preProcessFile(ts.getSnapshotText(sourceTextSnapshot), /* readImportFiles */ true, /* detectJavaScriptImports */ true);\n return {\n referencedFiles: _this.convertFileReferences(result.referencedFiles),\n importedFiles: _this.convertFileReferences(result.importedFiles),\n ambientExternalModules: result.ambientExternalModules,\n isLibFile: result.isLibFile,\n typeReferenceDirectives: _this.convertFileReferences(result.typeReferenceDirectives),\n libReferenceDirectives: _this.convertFileReferences(result.libReferenceDirectives)\n };\n });\n };\n CoreServicesShimObject.prototype.getAutomaticTypeDirectiveNames = function (compilerOptionsJson) {\n var _this = this;\n return this.forwardJSONCall(\"getAutomaticTypeDirectiveNames('\" + compilerOptionsJson + \"')\", function () {\n var compilerOptions = JSON.parse(compilerOptionsJson);\n return ts.getAutomaticTypeDirectiveNames(compilerOptions, _this.host);\n });\n };\n CoreServicesShimObject.prototype.convertFileReferences = function (refs) {\n if (!refs) {\n return undefined;\n }\n var result = [];\n for (var _i = 0, refs_1 = refs; _i < refs_1.length; _i++) {\n var ref = refs_1[_i];\n result.push({\n path: ts.normalizeSlashes(ref.fileName),\n position: ref.pos,\n length: ref.end - ref.pos\n });\n }\n return result;\n };\n CoreServicesShimObject.prototype.getTSConfigFileInfo = function (fileName, sourceTextSnapshot) {\n var _this = this;\n return this.forwardJSONCall(\"getTSConfigFileInfo('\" + fileName + \"')\", function () {\n var result = ts.parseJsonText(fileName, ts.getSnapshotText(sourceTextSnapshot));\n var normalizedFileName = ts.normalizeSlashes(fileName);\n var configFile = ts.parseJsonSourceFileConfigFileContent(result, _this.host, ts.getDirectoryPath(normalizedFileName), /*existingOptions*/ {}, normalizedFileName);\n return {\n options: configFile.options,\n typeAcquisition: configFile.typeAcquisition,\n files: configFile.fileNames,\n raw: configFile.raw,\n errors: realizeDiagnostics(__spreadArray(__spreadArray([], result.parseDiagnostics, true), configFile.errors, true), \"\\r\\n\")\n };\n });\n };\n CoreServicesShimObject.prototype.getDefaultCompilationSettings = function () {\n return this.forwardJSONCall(\"getDefaultCompilationSettings()\", function () { return ts.getDefaultCompilerOptions(); });\n };\n CoreServicesShimObject.prototype.discoverTypings = function (discoverTypingsJson) {\n var _this = this;\n var getCanonicalFileName = ts.createGetCanonicalFileName(/*useCaseSensitivefileNames:*/ false);\n return this.forwardJSONCall(\"discoverTypings()\", function () {\n var info = JSON.parse(discoverTypingsJson);\n if (_this.safeList === undefined) {\n _this.safeList = ts.JsTyping.loadSafeList(_this.host, ts.toPath(info.safeListPath, info.safeListPath, getCanonicalFileName));\n }\n return ts.JsTyping.discoverTypings(_this.host, function (msg) { return _this.logger.log(msg); }, info.fileNames, ts.toPath(info.projectRootPath, info.projectRootPath, getCanonicalFileName), _this.safeList, info.packageNameToTypingLocation, info.typeAcquisition, info.unresolvedImports, info.typesRegistry);\n });\n };\n return CoreServicesShimObject;\n }(ShimBase));\n var TypeScriptServicesFactory = /** @class */ (function () {\n function TypeScriptServicesFactory() {\n this._shims = [];\n }\n /*\n * Returns script API version.\n */\n TypeScriptServicesFactory.prototype.getServicesVersion = function () {\n return ts.servicesVersion;\n };\n TypeScriptServicesFactory.prototype.createLanguageServiceShim = function (host) {\n try {\n if (this.documentRegistry === undefined) {\n this.documentRegistry = ts.createDocumentRegistry(host.useCaseSensitiveFileNames && host.useCaseSensitiveFileNames(), host.getCurrentDirectory());\n }\n var hostAdapter = new LanguageServiceShimHostAdapter(host);\n var languageService = ts.createLanguageService(hostAdapter, this.documentRegistry, /*syntaxOnly*/ false);\n return new LanguageServiceShimObject(this, host, languageService);\n }\n catch (err) {\n logInternalError(host, err);\n throw err;\n }\n };\n TypeScriptServicesFactory.prototype.createClassifierShim = function (logger) {\n try {\n return new ClassifierShimObject(this, logger);\n }\n catch (err) {\n logInternalError(logger, err);\n throw err;\n }\n };\n TypeScriptServicesFactory.prototype.createCoreServicesShim = function (host) {\n try {\n var adapter = new CoreServicesShimHostAdapter(host);\n return new CoreServicesShimObject(this, host, adapter);\n }\n catch (err) {\n logInternalError(host, err);\n throw err;\n }\n };\n TypeScriptServicesFactory.prototype.close = function () {\n // Forget all the registered shims\n ts.clear(this._shims);\n this.documentRegistry = undefined;\n };\n TypeScriptServicesFactory.prototype.registerShim = function (shim) {\n this._shims.push(shim);\n };\n TypeScriptServicesFactory.prototype.unregisterShim = function (shim) {\n for (var i = 0; i < this._shims.length; i++) {\n if (this._shims[i] === shim) {\n delete this._shims[i];\n return;\n }\n }\n throw new Error(\"Invalid operation\");\n };\n return TypeScriptServicesFactory;\n }());\n ts.TypeScriptServicesFactory = TypeScriptServicesFactory;\n})(ts || (ts = {}));\n/* eslint-enable no-in-operator */\n// We polyfill `globalThis` here so re can reliably patch the global scope\n// in the contexts we want to in the same way across script and module formats\n/* eslint-enable no-var */\n((function () {\n if (typeof globalThis === \"object\")\n return;\n try {\n Object.defineProperty(Object.prototype, \"__magic__\", {\n get: function () {\n return this;\n },\n configurable: true\n });\n //@ts-ignore\n __magic__.globalThis = __magic__;\n // The previous line should have made `globalThis` globally\n // available, but it fails in Internet Explorer 10 and older.\n // Detect this failure and fall back.\n if (typeof globalThis === \"undefined\") {\n // Assume `window` exists.\n //@ts-ignore\n window.globalThis = window;\n }\n //@ts-ignore\n delete Object.prototype.__magic__;\n }\n catch (error) {\n // In IE8, Object.defineProperty only works on DOM objects.\n // If we hit this code path, assume `window` exists.\n //@ts-ignore\n window.globalThis = window;\n }\n})());\n// #endregion The polyfill ends here.\n// if `process` is undefined, we're probably not running in node - patch legacy members onto the global scope\n// @ts-ignore\nif (typeof process === \"undefined\" || process.browser) {\n /// TODO: this is used by VS, clean this up on both sides of the interface\n //@ts-ignore\n globalThis.TypeScript = globalThis.TypeScript || {};\n //@ts-ignore\n globalThis.TypeScript.Services = globalThis.TypeScript.Services || {};\n //@ts-ignore\n globalThis.TypeScript.Services.TypeScriptServicesFactory = ts.TypeScriptServicesFactory;\n // 'toolsVersion' gets consumed by the managed side, so it's not unused.\n // TODO: it should be moved into a namespace though.\n //@ts-ignore\n globalThis.toolsVersion = ts.versionMajorMinor;\n}\nif (typeof module !== \"undefined\" && module.exports) {\n module.exports = ts;\n}\nvar ts;\n(function (ts) {\n // The following are deprecations for the public API. Deprecated exports are removed from the compiler itself\n // and compatible implementations are added here, along with an appropriate deprecation warning using\n // the `@deprecated` JSDoc tag as well as the `Debug.deprecate` API.\n //\n // Deprecations fall into one of three categories:\n //\n // * \"soft\" - Soft deprecations are indicated with the `@deprecated` JSDoc Tag.\n // * \"warn\" - Warning deprecations are indicated with the `@deprecated` JSDoc Tag and a diagnostic message (assuming a compatible host)\n // * \"error\" - Error deprecations are indicated with the `@deprecated` JSDoc tag and will throw a `TypeError` when invoked.\n // DEPRECATION: Node factory top-level exports\n // DEPRECATION PLAN:\n // - soft: 4.0\n // - warn: 4.1\n // - error: TBD\n // #region Node factory top-level exports\n // NOTE: These exports are deprecated in favor of using a `NodeFactory` instance and exist here purely for backwards compatibility reasons.\n var factoryDeprecation = { since: \"4.0\", warnAfter: \"4.1\", message: \"Use the appropriate method on 'ts.factory' or the 'factory' supplied by your transformation context instead.\" };\n /** @deprecated Use `factory.createNodeArray` or the factory supplied by your transformation context instead. */\n ts.createNodeArray = ts.Debug.deprecate(ts.factory.createNodeArray, factoryDeprecation);\n /** @deprecated Use `factory.createNumericLiteral` or the factory supplied by your transformation context instead. */\n ts.createNumericLiteral = ts.Debug.deprecate(ts.factory.createNumericLiteral, factoryDeprecation);\n /** @deprecated Use `factory.createBigIntLiteral` or the factory supplied by your transformation context instead. */\n ts.createBigIntLiteral = ts.Debug.deprecate(ts.factory.createBigIntLiteral, factoryDeprecation);\n /** @deprecated Use `factory.createStringLiteral` or the factory supplied by your transformation context instead. */\n ts.createStringLiteral = ts.Debug.deprecate(ts.factory.createStringLiteral, factoryDeprecation);\n /** @deprecated Use `factory.createStringLiteralFromNode` or the factory supplied by your transformation context instead. */\n ts.createStringLiteralFromNode = ts.Debug.deprecate(ts.factory.createStringLiteralFromNode, factoryDeprecation);\n /** @deprecated Use `factory.createRegularExpressionLiteral` or the factory supplied by your transformation context instead. */\n ts.createRegularExpressionLiteral = ts.Debug.deprecate(ts.factory.createRegularExpressionLiteral, factoryDeprecation);\n /** @deprecated Use `factory.createLoopVariable` or the factory supplied by your transformation context instead. */\n ts.createLoopVariable = ts.Debug.deprecate(ts.factory.createLoopVariable, factoryDeprecation);\n /** @deprecated Use `factory.createUniqueName` or the factory supplied by your transformation context instead. */\n ts.createUniqueName = ts.Debug.deprecate(ts.factory.createUniqueName, factoryDeprecation);\n /** @deprecated Use `factory.createPrivateIdentifier` or the factory supplied by your transformation context instead. */\n ts.createPrivateIdentifier = ts.Debug.deprecate(ts.factory.createPrivateIdentifier, factoryDeprecation);\n /** @deprecated Use `factory.createSuper` or the factory supplied by your transformation context instead. */\n ts.createSuper = ts.Debug.deprecate(ts.factory.createSuper, factoryDeprecation);\n /** @deprecated Use `factory.createThis` or the factory supplied by your transformation context instead. */\n ts.createThis = ts.Debug.deprecate(ts.factory.createThis, factoryDeprecation);\n /** @deprecated Use `factory.createNull` or the factory supplied by your transformation context instead. */\n ts.createNull = ts.Debug.deprecate(ts.factory.createNull, factoryDeprecation);\n /** @deprecated Use `factory.createTrue` or the factory supplied by your transformation context instead. */\n ts.createTrue = ts.Debug.deprecate(ts.factory.createTrue, factoryDeprecation);\n /** @deprecated Use `factory.createFalse` or the factory supplied by your transformation context instead. */\n ts.createFalse = ts.Debug.deprecate(ts.factory.createFalse, factoryDeprecation);\n /** @deprecated Use `factory.createModifier` or the factory supplied by your transformation context instead. */\n ts.createModifier = ts.Debug.deprecate(ts.factory.createModifier, factoryDeprecation);\n /** @deprecated Use `factory.createModifiersFromModifierFlags` or the factory supplied by your transformation context instead. */\n ts.createModifiersFromModifierFlags = ts.Debug.deprecate(ts.factory.createModifiersFromModifierFlags, factoryDeprecation);\n /** @deprecated Use `factory.createQualifiedName` or the factory supplied by your transformation context instead. */\n ts.createQualifiedName = ts.Debug.deprecate(ts.factory.createQualifiedName, factoryDeprecation);\n /** @deprecated Use `factory.updateQualifiedName` or the factory supplied by your transformation context instead. */\n ts.updateQualifiedName = ts.Debug.deprecate(ts.factory.updateQualifiedName, factoryDeprecation);\n /** @deprecated Use `factory.createComputedPropertyName` or the factory supplied by your transformation context instead. */\n ts.createComputedPropertyName = ts.Debug.deprecate(ts.factory.createComputedPropertyName, factoryDeprecation);\n /** @deprecated Use `factory.updateComputedPropertyName` or the factory supplied by your transformation context instead. */\n ts.updateComputedPropertyName = ts.Debug.deprecate(ts.factory.updateComputedPropertyName, factoryDeprecation);\n /** @deprecated Use `factory.createTypeParameterDeclaration` or the factory supplied by your transformation context instead. */\n ts.createTypeParameterDeclaration = ts.Debug.deprecate(ts.factory.createTypeParameterDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeParameterDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateTypeParameterDeclaration = ts.Debug.deprecate(ts.factory.updateTypeParameterDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createParameterDeclaration` or the factory supplied by your transformation context instead. */\n ts.createParameter = ts.Debug.deprecate(ts.factory.createParameterDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateParameterDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateParameter = ts.Debug.deprecate(ts.factory.updateParameterDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createDecorator` or the factory supplied by your transformation context instead. */\n ts.createDecorator = ts.Debug.deprecate(ts.factory.createDecorator, factoryDeprecation);\n /** @deprecated Use `factory.updateDecorator` or the factory supplied by your transformation context instead. */\n ts.updateDecorator = ts.Debug.deprecate(ts.factory.updateDecorator, factoryDeprecation);\n /** @deprecated Use `factory.createPropertyDeclaration` or the factory supplied by your transformation context instead. */\n ts.createProperty = ts.Debug.deprecate(ts.factory.createPropertyDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updatePropertyDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateProperty = ts.Debug.deprecate(ts.factory.updatePropertyDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createMethodDeclaration` or the factory supplied by your transformation context instead. */\n ts.createMethod = ts.Debug.deprecate(ts.factory.createMethodDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateMethodDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateMethod = ts.Debug.deprecate(ts.factory.updateMethodDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createConstructorDeclaration` or the factory supplied by your transformation context instead. */\n ts.createConstructor = ts.Debug.deprecate(ts.factory.createConstructorDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateConstructorDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateConstructor = ts.Debug.deprecate(ts.factory.updateConstructorDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createGetAccessorDeclaration` or the factory supplied by your transformation context instead. */\n ts.createGetAccessor = ts.Debug.deprecate(ts.factory.createGetAccessorDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateGetAccessorDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateGetAccessor = ts.Debug.deprecate(ts.factory.updateGetAccessorDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createSetAccessorDeclaration` or the factory supplied by your transformation context instead. */\n ts.createSetAccessor = ts.Debug.deprecate(ts.factory.createSetAccessorDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateSetAccessorDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateSetAccessor = ts.Debug.deprecate(ts.factory.updateSetAccessorDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createCallSignature` or the factory supplied by your transformation context instead. */\n ts.createCallSignature = ts.Debug.deprecate(ts.factory.createCallSignature, factoryDeprecation);\n /** @deprecated Use `factory.updateCallSignature` or the factory supplied by your transformation context instead. */\n ts.updateCallSignature = ts.Debug.deprecate(ts.factory.updateCallSignature, factoryDeprecation);\n /** @deprecated Use `factory.createConstructSignature` or the factory supplied by your transformation context instead. */\n ts.createConstructSignature = ts.Debug.deprecate(ts.factory.createConstructSignature, factoryDeprecation);\n /** @deprecated Use `factory.updateConstructSignature` or the factory supplied by your transformation context instead. */\n ts.updateConstructSignature = ts.Debug.deprecate(ts.factory.updateConstructSignature, factoryDeprecation);\n /** @deprecated Use `factory.updateIndexSignature` or the factory supplied by your transformation context instead. */\n ts.updateIndexSignature = ts.Debug.deprecate(ts.factory.updateIndexSignature, factoryDeprecation);\n /** @deprecated Use `factory.createKeywordTypeNode` or the factory supplied by your transformation context instead. */\n ts.createKeywordTypeNode = ts.Debug.deprecate(ts.factory.createKeywordTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */\n ts.createTypePredicateNodeWithModifier = ts.Debug.deprecate(ts.factory.createTypePredicateNode, factoryDeprecation);\n /** @deprecated Use `factory.updateTypePredicateNode` or the factory supplied by your transformation context instead. */\n ts.updateTypePredicateNodeWithModifier = ts.Debug.deprecate(ts.factory.updateTypePredicateNode, factoryDeprecation);\n /** @deprecated Use `factory.createTypeReferenceNode` or the factory supplied by your transformation context instead. */\n ts.createTypeReferenceNode = ts.Debug.deprecate(ts.factory.createTypeReferenceNode, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeReferenceNode` or the factory supplied by your transformation context instead. */\n ts.updateTypeReferenceNode = ts.Debug.deprecate(ts.factory.updateTypeReferenceNode, factoryDeprecation);\n /** @deprecated Use `factory.createFunctionTypeNode` or the factory supplied by your transformation context instead. */\n ts.createFunctionTypeNode = ts.Debug.deprecate(ts.factory.createFunctionTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateFunctionTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateFunctionTypeNode = ts.Debug.deprecate(ts.factory.updateFunctionTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createConstructorTypeNode` or the factory supplied by your transformation context instead. */\n ts.createConstructorTypeNode = ts.Debug.deprecate(function (typeParameters, parameters, type) {\n return ts.factory.createConstructorTypeNode(/*modifiers*/ undefined, typeParameters, parameters, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateConstructorTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateConstructorTypeNode = ts.Debug.deprecate(function (node, typeParameters, parameters, type) {\n return ts.factory.updateConstructorTypeNode(node, node.modifiers, typeParameters, parameters, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createTypeQueryNode` or the factory supplied by your transformation context instead. */\n ts.createTypeQueryNode = ts.Debug.deprecate(ts.factory.createTypeQueryNode, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeQueryNode` or the factory supplied by your transformation context instead. */\n ts.updateTypeQueryNode = ts.Debug.deprecate(ts.factory.updateTypeQueryNode, factoryDeprecation);\n /** @deprecated Use `factory.createTypeLiteralNode` or the factory supplied by your transformation context instead. */\n ts.createTypeLiteralNode = ts.Debug.deprecate(ts.factory.createTypeLiteralNode, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeLiteralNode` or the factory supplied by your transformation context instead. */\n ts.updateTypeLiteralNode = ts.Debug.deprecate(ts.factory.updateTypeLiteralNode, factoryDeprecation);\n /** @deprecated Use `factory.createArrayTypeNode` or the factory supplied by your transformation context instead. */\n ts.createArrayTypeNode = ts.Debug.deprecate(ts.factory.createArrayTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateArrayTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateArrayTypeNode = ts.Debug.deprecate(ts.factory.updateArrayTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createTupleTypeNode` or the factory supplied by your transformation context instead. */\n ts.createTupleTypeNode = ts.Debug.deprecate(ts.factory.createTupleTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateTupleTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateTupleTypeNode = ts.Debug.deprecate(ts.factory.updateTupleTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createOptionalTypeNode` or the factory supplied by your transformation context instead. */\n ts.createOptionalTypeNode = ts.Debug.deprecate(ts.factory.createOptionalTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateOptionalTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateOptionalTypeNode = ts.Debug.deprecate(ts.factory.updateOptionalTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createRestTypeNode` or the factory supplied by your transformation context instead. */\n ts.createRestTypeNode = ts.Debug.deprecate(ts.factory.createRestTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateRestTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateRestTypeNode = ts.Debug.deprecate(ts.factory.updateRestTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createUnionTypeNode` or the factory supplied by your transformation context instead. */\n ts.createUnionTypeNode = ts.Debug.deprecate(ts.factory.createUnionTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateUnionTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateUnionTypeNode = ts.Debug.deprecate(ts.factory.updateUnionTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createIntersectionTypeNode` or the factory supplied by your transformation context instead. */\n ts.createIntersectionTypeNode = ts.Debug.deprecate(ts.factory.createIntersectionTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateIntersectionTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateIntersectionTypeNode = ts.Debug.deprecate(ts.factory.updateIntersectionTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createConditionalTypeNode` or the factory supplied by your transformation context instead. */\n ts.createConditionalTypeNode = ts.Debug.deprecate(ts.factory.createConditionalTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateConditionalTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateConditionalTypeNode = ts.Debug.deprecate(ts.factory.updateConditionalTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createInferTypeNode` or the factory supplied by your transformation context instead. */\n ts.createInferTypeNode = ts.Debug.deprecate(ts.factory.createInferTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateInferTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateInferTypeNode = ts.Debug.deprecate(ts.factory.updateInferTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createImportTypeNode` or the factory supplied by your transformation context instead. */\n ts.createImportTypeNode = ts.Debug.deprecate(ts.factory.createImportTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateImportTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateImportTypeNode = ts.Debug.deprecate(ts.factory.updateImportTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createParenthesizedType` or the factory supplied by your transformation context instead. */\n ts.createParenthesizedType = ts.Debug.deprecate(ts.factory.createParenthesizedType, factoryDeprecation);\n /** @deprecated Use `factory.updateParenthesizedType` or the factory supplied by your transformation context instead. */\n ts.updateParenthesizedType = ts.Debug.deprecate(ts.factory.updateParenthesizedType, factoryDeprecation);\n /** @deprecated Use `factory.createThisTypeNode` or the factory supplied by your transformation context instead. */\n ts.createThisTypeNode = ts.Debug.deprecate(ts.factory.createThisTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeOperatorNode` or the factory supplied by your transformation context instead. */\n ts.updateTypeOperatorNode = ts.Debug.deprecate(ts.factory.updateTypeOperatorNode, factoryDeprecation);\n /** @deprecated Use `factory.createIndexedAccessTypeNode` or the factory supplied by your transformation context instead. */\n ts.createIndexedAccessTypeNode = ts.Debug.deprecate(ts.factory.createIndexedAccessTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateIndexedAccessTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateIndexedAccessTypeNode = ts.Debug.deprecate(ts.factory.updateIndexedAccessTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createMappedTypeNode` or the factory supplied by your transformation context instead. */\n ts.createMappedTypeNode = ts.Debug.deprecate(ts.factory.createMappedTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateMappedTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateMappedTypeNode = ts.Debug.deprecate(ts.factory.updateMappedTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createLiteralTypeNode` or the factory supplied by your transformation context instead. */\n ts.createLiteralTypeNode = ts.Debug.deprecate(ts.factory.createLiteralTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.updateLiteralTypeNode` or the factory supplied by your transformation context instead. */\n ts.updateLiteralTypeNode = ts.Debug.deprecate(ts.factory.updateLiteralTypeNode, factoryDeprecation);\n /** @deprecated Use `factory.createObjectBindingPattern` or the factory supplied by your transformation context instead. */\n ts.createObjectBindingPattern = ts.Debug.deprecate(ts.factory.createObjectBindingPattern, factoryDeprecation);\n /** @deprecated Use `factory.updateObjectBindingPattern` or the factory supplied by your transformation context instead. */\n ts.updateObjectBindingPattern = ts.Debug.deprecate(ts.factory.updateObjectBindingPattern, factoryDeprecation);\n /** @deprecated Use `factory.createArrayBindingPattern` or the factory supplied by your transformation context instead. */\n ts.createArrayBindingPattern = ts.Debug.deprecate(ts.factory.createArrayBindingPattern, factoryDeprecation);\n /** @deprecated Use `factory.updateArrayBindingPattern` or the factory supplied by your transformation context instead. */\n ts.updateArrayBindingPattern = ts.Debug.deprecate(ts.factory.updateArrayBindingPattern, factoryDeprecation);\n /** @deprecated Use `factory.createBindingElement` or the factory supplied by your transformation context instead. */\n ts.createBindingElement = ts.Debug.deprecate(ts.factory.createBindingElement, factoryDeprecation);\n /** @deprecated Use `factory.updateBindingElement` or the factory supplied by your transformation context instead. */\n ts.updateBindingElement = ts.Debug.deprecate(ts.factory.updateBindingElement, factoryDeprecation);\n /** @deprecated Use `factory.createArrayLiteralExpression` or the factory supplied by your transformation context instead. */\n ts.createArrayLiteral = ts.Debug.deprecate(ts.factory.createArrayLiteralExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateArrayLiteralExpression` or the factory supplied by your transformation context instead. */\n ts.updateArrayLiteral = ts.Debug.deprecate(ts.factory.updateArrayLiteralExpression, factoryDeprecation);\n /** @deprecated Use `factory.createObjectLiteralExpression` or the factory supplied by your transformation context instead. */\n ts.createObjectLiteral = ts.Debug.deprecate(ts.factory.createObjectLiteralExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateObjectLiteralExpression` or the factory supplied by your transformation context instead. */\n ts.updateObjectLiteral = ts.Debug.deprecate(ts.factory.updateObjectLiteralExpression, factoryDeprecation);\n /** @deprecated Use `factory.createPropertyAccessExpression` or the factory supplied by your transformation context instead. */\n ts.createPropertyAccess = ts.Debug.deprecate(ts.factory.createPropertyAccessExpression, factoryDeprecation);\n /** @deprecated Use `factory.updatePropertyAccessExpression` or the factory supplied by your transformation context instead. */\n ts.updatePropertyAccess = ts.Debug.deprecate(ts.factory.updatePropertyAccessExpression, factoryDeprecation);\n /** @deprecated Use `factory.createPropertyAccessChain` or the factory supplied by your transformation context instead. */\n ts.createPropertyAccessChain = ts.Debug.deprecate(ts.factory.createPropertyAccessChain, factoryDeprecation);\n /** @deprecated Use `factory.updatePropertyAccessChain` or the factory supplied by your transformation context instead. */\n ts.updatePropertyAccessChain = ts.Debug.deprecate(ts.factory.updatePropertyAccessChain, factoryDeprecation);\n /** @deprecated Use `factory.createElementAccessExpression` or the factory supplied by your transformation context instead. */\n ts.createElementAccess = ts.Debug.deprecate(ts.factory.createElementAccessExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateElementAccessExpression` or the factory supplied by your transformation context instead. */\n ts.updateElementAccess = ts.Debug.deprecate(ts.factory.updateElementAccessExpression, factoryDeprecation);\n /** @deprecated Use `factory.createElementAccessChain` or the factory supplied by your transformation context instead. */\n ts.createElementAccessChain = ts.Debug.deprecate(ts.factory.createElementAccessChain, factoryDeprecation);\n /** @deprecated Use `factory.updateElementAccessChain` or the factory supplied by your transformation context instead. */\n ts.updateElementAccessChain = ts.Debug.deprecate(ts.factory.updateElementAccessChain, factoryDeprecation);\n /** @deprecated Use `factory.createCallExpression` or the factory supplied by your transformation context instead. */\n ts.createCall = ts.Debug.deprecate(ts.factory.createCallExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateCallExpression` or the factory supplied by your transformation context instead. */\n ts.updateCall = ts.Debug.deprecate(ts.factory.updateCallExpression, factoryDeprecation);\n /** @deprecated Use `factory.createCallChain` or the factory supplied by your transformation context instead. */\n ts.createCallChain = ts.Debug.deprecate(ts.factory.createCallChain, factoryDeprecation);\n /** @deprecated Use `factory.updateCallChain` or the factory supplied by your transformation context instead. */\n ts.updateCallChain = ts.Debug.deprecate(ts.factory.updateCallChain, factoryDeprecation);\n /** @deprecated Use `factory.createNewExpression` or the factory supplied by your transformation context instead. */\n ts.createNew = ts.Debug.deprecate(ts.factory.createNewExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateNewExpression` or the factory supplied by your transformation context instead. */\n ts.updateNew = ts.Debug.deprecate(ts.factory.updateNewExpression, factoryDeprecation);\n /** @deprecated Use `factory.createTypeAssertion` or the factory supplied by your transformation context instead. */\n ts.createTypeAssertion = ts.Debug.deprecate(ts.factory.createTypeAssertion, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeAssertion` or the factory supplied by your transformation context instead. */\n ts.updateTypeAssertion = ts.Debug.deprecate(ts.factory.updateTypeAssertion, factoryDeprecation);\n /** @deprecated Use `factory.createParenthesizedExpression` or the factory supplied by your transformation context instead. */\n ts.createParen = ts.Debug.deprecate(ts.factory.createParenthesizedExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateParenthesizedExpression` or the factory supplied by your transformation context instead. */\n ts.updateParen = ts.Debug.deprecate(ts.factory.updateParenthesizedExpression, factoryDeprecation);\n /** @deprecated Use `factory.createFunctionExpression` or the factory supplied by your transformation context instead. */\n ts.createFunctionExpression = ts.Debug.deprecate(ts.factory.createFunctionExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateFunctionExpression` or the factory supplied by your transformation context instead. */\n ts.updateFunctionExpression = ts.Debug.deprecate(ts.factory.updateFunctionExpression, factoryDeprecation);\n /** @deprecated Use `factory.createDeleteExpression` or the factory supplied by your transformation context instead. */\n ts.createDelete = ts.Debug.deprecate(ts.factory.createDeleteExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateDeleteExpression` or the factory supplied by your transformation context instead. */\n ts.updateDelete = ts.Debug.deprecate(ts.factory.updateDeleteExpression, factoryDeprecation);\n /** @deprecated Use `factory.createTypeOfExpression` or the factory supplied by your transformation context instead. */\n ts.createTypeOf = ts.Debug.deprecate(ts.factory.createTypeOfExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeOfExpression` or the factory supplied by your transformation context instead. */\n ts.updateTypeOf = ts.Debug.deprecate(ts.factory.updateTypeOfExpression, factoryDeprecation);\n /** @deprecated Use `factory.createVoidExpression` or the factory supplied by your transformation context instead. */\n ts.createVoid = ts.Debug.deprecate(ts.factory.createVoidExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateVoidExpression` or the factory supplied by your transformation context instead. */\n ts.updateVoid = ts.Debug.deprecate(ts.factory.updateVoidExpression, factoryDeprecation);\n /** @deprecated Use `factory.createAwaitExpression` or the factory supplied by your transformation context instead. */\n ts.createAwait = ts.Debug.deprecate(ts.factory.createAwaitExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateAwaitExpression` or the factory supplied by your transformation context instead. */\n ts.updateAwait = ts.Debug.deprecate(ts.factory.updateAwaitExpression, factoryDeprecation);\n /** @deprecated Use `factory.createPrefixExpression` or the factory supplied by your transformation context instead. */\n ts.createPrefix = ts.Debug.deprecate(ts.factory.createPrefixUnaryExpression, factoryDeprecation);\n /** @deprecated Use `factory.updatePrefixExpression` or the factory supplied by your transformation context instead. */\n ts.updatePrefix = ts.Debug.deprecate(ts.factory.updatePrefixUnaryExpression, factoryDeprecation);\n /** @deprecated Use `factory.createPostfixUnaryExpression` or the factory supplied by your transformation context instead. */\n ts.createPostfix = ts.Debug.deprecate(ts.factory.createPostfixUnaryExpression, factoryDeprecation);\n /** @deprecated Use `factory.updatePostfixUnaryExpression` or the factory supplied by your transformation context instead. */\n ts.updatePostfix = ts.Debug.deprecate(ts.factory.updatePostfixUnaryExpression, factoryDeprecation);\n /** @deprecated Use `factory.createBinaryExpression` or the factory supplied by your transformation context instead. */\n ts.createBinary = ts.Debug.deprecate(ts.factory.createBinaryExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateConditionalExpression` or the factory supplied by your transformation context instead. */\n ts.updateConditional = ts.Debug.deprecate(ts.factory.updateConditionalExpression, factoryDeprecation);\n /** @deprecated Use `factory.createTemplateExpression` or the factory supplied by your transformation context instead. */\n ts.createTemplateExpression = ts.Debug.deprecate(ts.factory.createTemplateExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateTemplateExpression` or the factory supplied by your transformation context instead. */\n ts.updateTemplateExpression = ts.Debug.deprecate(ts.factory.updateTemplateExpression, factoryDeprecation);\n /** @deprecated Use `factory.createTemplateHead` or the factory supplied by your transformation context instead. */\n ts.createTemplateHead = ts.Debug.deprecate(ts.factory.createTemplateHead, factoryDeprecation);\n /** @deprecated Use `factory.createTemplateMiddle` or the factory supplied by your transformation context instead. */\n ts.createTemplateMiddle = ts.Debug.deprecate(ts.factory.createTemplateMiddle, factoryDeprecation);\n /** @deprecated Use `factory.createTemplateTail` or the factory supplied by your transformation context instead. */\n ts.createTemplateTail = ts.Debug.deprecate(ts.factory.createTemplateTail, factoryDeprecation);\n /** @deprecated Use `factory.createNoSubstitutionTemplateLiteral` or the factory supplied by your transformation context instead. */\n ts.createNoSubstitutionTemplateLiteral = ts.Debug.deprecate(ts.factory.createNoSubstitutionTemplateLiteral, factoryDeprecation);\n /** @deprecated Use `factory.updateYieldExpression` or the factory supplied by your transformation context instead. */\n ts.updateYield = ts.Debug.deprecate(ts.factory.updateYieldExpression, factoryDeprecation);\n /** @deprecated Use `factory.createSpreadExpression` or the factory supplied by your transformation context instead. */\n ts.createSpread = ts.Debug.deprecate(ts.factory.createSpreadElement, factoryDeprecation);\n /** @deprecated Use `factory.updateSpreadExpression` or the factory supplied by your transformation context instead. */\n ts.updateSpread = ts.Debug.deprecate(ts.factory.updateSpreadElement, factoryDeprecation);\n /** @deprecated Use `factory.createOmittedExpression` or the factory supplied by your transformation context instead. */\n ts.createOmittedExpression = ts.Debug.deprecate(ts.factory.createOmittedExpression, factoryDeprecation);\n /** @deprecated Use `factory.createAsExpression` or the factory supplied by your transformation context instead. */\n ts.createAsExpression = ts.Debug.deprecate(ts.factory.createAsExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateAsExpression` or the factory supplied by your transformation context instead. */\n ts.updateAsExpression = ts.Debug.deprecate(ts.factory.updateAsExpression, factoryDeprecation);\n /** @deprecated Use `factory.createNonNullExpression` or the factory supplied by your transformation context instead. */\n ts.createNonNullExpression = ts.Debug.deprecate(ts.factory.createNonNullExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateNonNullExpression` or the factory supplied by your transformation context instead. */\n ts.updateNonNullExpression = ts.Debug.deprecate(ts.factory.updateNonNullExpression, factoryDeprecation);\n /** @deprecated Use `factory.createNonNullChain` or the factory supplied by your transformation context instead. */\n ts.createNonNullChain = ts.Debug.deprecate(ts.factory.createNonNullChain, factoryDeprecation);\n /** @deprecated Use `factory.updateNonNullChain` or the factory supplied by your transformation context instead. */\n ts.updateNonNullChain = ts.Debug.deprecate(ts.factory.updateNonNullChain, factoryDeprecation);\n /** @deprecated Use `factory.createMetaProperty` or the factory supplied by your transformation context instead. */\n ts.createMetaProperty = ts.Debug.deprecate(ts.factory.createMetaProperty, factoryDeprecation);\n /** @deprecated Use `factory.updateMetaProperty` or the factory supplied by your transformation context instead. */\n ts.updateMetaProperty = ts.Debug.deprecate(ts.factory.updateMetaProperty, factoryDeprecation);\n /** @deprecated Use `factory.createTemplateSpan` or the factory supplied by your transformation context instead. */\n ts.createTemplateSpan = ts.Debug.deprecate(ts.factory.createTemplateSpan, factoryDeprecation);\n /** @deprecated Use `factory.updateTemplateSpan` or the factory supplied by your transformation context instead. */\n ts.updateTemplateSpan = ts.Debug.deprecate(ts.factory.updateTemplateSpan, factoryDeprecation);\n /** @deprecated Use `factory.createSemicolonClassElement` or the factory supplied by your transformation context instead. */\n ts.createSemicolonClassElement = ts.Debug.deprecate(ts.factory.createSemicolonClassElement, factoryDeprecation);\n /** @deprecated Use `factory.createBlock` or the factory supplied by your transformation context instead. */\n ts.createBlock = ts.Debug.deprecate(ts.factory.createBlock, factoryDeprecation);\n /** @deprecated Use `factory.updateBlock` or the factory supplied by your transformation context instead. */\n ts.updateBlock = ts.Debug.deprecate(ts.factory.updateBlock, factoryDeprecation);\n /** @deprecated Use `factory.createVariableStatement` or the factory supplied by your transformation context instead. */\n ts.createVariableStatement = ts.Debug.deprecate(ts.factory.createVariableStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateVariableStatement` or the factory supplied by your transformation context instead. */\n ts.updateVariableStatement = ts.Debug.deprecate(ts.factory.updateVariableStatement, factoryDeprecation);\n /** @deprecated Use `factory.createEmptyStatement` or the factory supplied by your transformation context instead. */\n ts.createEmptyStatement = ts.Debug.deprecate(ts.factory.createEmptyStatement, factoryDeprecation);\n /** @deprecated Use `factory.createExpressionStatement` or the factory supplied by your transformation context instead. */\n ts.createExpressionStatement = ts.Debug.deprecate(ts.factory.createExpressionStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateExpressionStatement` or the factory supplied by your transformation context instead. */\n ts.updateExpressionStatement = ts.Debug.deprecate(ts.factory.updateExpressionStatement, factoryDeprecation);\n /** @deprecated Use `factory.createExpressionStatement` or the factory supplied by your transformation context instead. */\n ts.createStatement = ts.Debug.deprecate(ts.factory.createExpressionStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateExpressionStatement` or the factory supplied by your transformation context instead. */\n ts.updateStatement = ts.Debug.deprecate(ts.factory.updateExpressionStatement, factoryDeprecation);\n /** @deprecated Use `factory.createIfStatement` or the factory supplied by your transformation context instead. */\n ts.createIf = ts.Debug.deprecate(ts.factory.createIfStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateIfStatement` or the factory supplied by your transformation context instead. */\n ts.updateIf = ts.Debug.deprecate(ts.factory.updateIfStatement, factoryDeprecation);\n /** @deprecated Use `factory.createDoStatement` or the factory supplied by your transformation context instead. */\n ts.createDo = ts.Debug.deprecate(ts.factory.createDoStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateDoStatement` or the factory supplied by your transformation context instead. */\n ts.updateDo = ts.Debug.deprecate(ts.factory.updateDoStatement, factoryDeprecation);\n /** @deprecated Use `factory.createWhileStatement` or the factory supplied by your transformation context instead. */\n ts.createWhile = ts.Debug.deprecate(ts.factory.createWhileStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateWhileStatement` or the factory supplied by your transformation context instead. */\n ts.updateWhile = ts.Debug.deprecate(ts.factory.updateWhileStatement, factoryDeprecation);\n /** @deprecated Use `factory.createForStatement` or the factory supplied by your transformation context instead. */\n ts.createFor = ts.Debug.deprecate(ts.factory.createForStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateForStatement` or the factory supplied by your transformation context instead. */\n ts.updateFor = ts.Debug.deprecate(ts.factory.updateForStatement, factoryDeprecation);\n /** @deprecated Use `factory.createForInStatement` or the factory supplied by your transformation context instead. */\n ts.createForIn = ts.Debug.deprecate(ts.factory.createForInStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateForInStatement` or the factory supplied by your transformation context instead. */\n ts.updateForIn = ts.Debug.deprecate(ts.factory.updateForInStatement, factoryDeprecation);\n /** @deprecated Use `factory.createForOfStatement` or the factory supplied by your transformation context instead. */\n ts.createForOf = ts.Debug.deprecate(ts.factory.createForOfStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateForOfStatement` or the factory supplied by your transformation context instead. */\n ts.updateForOf = ts.Debug.deprecate(ts.factory.updateForOfStatement, factoryDeprecation);\n /** @deprecated Use `factory.createContinueStatement` or the factory supplied by your transformation context instead. */\n ts.createContinue = ts.Debug.deprecate(ts.factory.createContinueStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateContinueStatement` or the factory supplied by your transformation context instead. */\n ts.updateContinue = ts.Debug.deprecate(ts.factory.updateContinueStatement, factoryDeprecation);\n /** @deprecated Use `factory.createBreakStatement` or the factory supplied by your transformation context instead. */\n ts.createBreak = ts.Debug.deprecate(ts.factory.createBreakStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateBreakStatement` or the factory supplied by your transformation context instead. */\n ts.updateBreak = ts.Debug.deprecate(ts.factory.updateBreakStatement, factoryDeprecation);\n /** @deprecated Use `factory.createReturnStatement` or the factory supplied by your transformation context instead. */\n ts.createReturn = ts.Debug.deprecate(ts.factory.createReturnStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateReturnStatement` or the factory supplied by your transformation context instead. */\n ts.updateReturn = ts.Debug.deprecate(ts.factory.updateReturnStatement, factoryDeprecation);\n /** @deprecated Use `factory.createWithStatement` or the factory supplied by your transformation context instead. */\n ts.createWith = ts.Debug.deprecate(ts.factory.createWithStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateWithStatement` or the factory supplied by your transformation context instead. */\n ts.updateWith = ts.Debug.deprecate(ts.factory.updateWithStatement, factoryDeprecation);\n /** @deprecated Use `factory.createSwitchStatement` or the factory supplied by your transformation context instead. */\n ts.createSwitch = ts.Debug.deprecate(ts.factory.createSwitchStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateSwitchStatement` or the factory supplied by your transformation context instead. */\n ts.updateSwitch = ts.Debug.deprecate(ts.factory.updateSwitchStatement, factoryDeprecation);\n /** @deprecated Use `factory.createLabelStatement` or the factory supplied by your transformation context instead. */\n ts.createLabel = ts.Debug.deprecate(ts.factory.createLabeledStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateLabelStatement` or the factory supplied by your transformation context instead. */\n ts.updateLabel = ts.Debug.deprecate(ts.factory.updateLabeledStatement, factoryDeprecation);\n /** @deprecated Use `factory.createThrowStatement` or the factory supplied by your transformation context instead. */\n ts.createThrow = ts.Debug.deprecate(ts.factory.createThrowStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateThrowStatement` or the factory supplied by your transformation context instead. */\n ts.updateThrow = ts.Debug.deprecate(ts.factory.updateThrowStatement, factoryDeprecation);\n /** @deprecated Use `factory.createTryStatement` or the factory supplied by your transformation context instead. */\n ts.createTry = ts.Debug.deprecate(ts.factory.createTryStatement, factoryDeprecation);\n /** @deprecated Use `factory.updateTryStatement` or the factory supplied by your transformation context instead. */\n ts.updateTry = ts.Debug.deprecate(ts.factory.updateTryStatement, factoryDeprecation);\n /** @deprecated Use `factory.createDebuggerStatement` or the factory supplied by your transformation context instead. */\n ts.createDebuggerStatement = ts.Debug.deprecate(ts.factory.createDebuggerStatement, factoryDeprecation);\n /** @deprecated Use `factory.createVariableDeclarationList` or the factory supplied by your transformation context instead. */\n ts.createVariableDeclarationList = ts.Debug.deprecate(ts.factory.createVariableDeclarationList, factoryDeprecation);\n /** @deprecated Use `factory.updateVariableDeclarationList` or the factory supplied by your transformation context instead. */\n ts.updateVariableDeclarationList = ts.Debug.deprecate(ts.factory.updateVariableDeclarationList, factoryDeprecation);\n /** @deprecated Use `factory.createFunctionDeclaration` or the factory supplied by your transformation context instead. */\n ts.createFunctionDeclaration = ts.Debug.deprecate(ts.factory.createFunctionDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateFunctionDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateFunctionDeclaration = ts.Debug.deprecate(ts.factory.updateFunctionDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createClassDeclaration` or the factory supplied by your transformation context instead. */\n ts.createClassDeclaration = ts.Debug.deprecate(ts.factory.createClassDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateClassDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateClassDeclaration = ts.Debug.deprecate(ts.factory.updateClassDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createInterfaceDeclaration` or the factory supplied by your transformation context instead. */\n ts.createInterfaceDeclaration = ts.Debug.deprecate(ts.factory.createInterfaceDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateInterfaceDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateInterfaceDeclaration = ts.Debug.deprecate(ts.factory.updateInterfaceDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createTypeAliasDeclaration` or the factory supplied by your transformation context instead. */\n ts.createTypeAliasDeclaration = ts.Debug.deprecate(ts.factory.createTypeAliasDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateTypeAliasDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateTypeAliasDeclaration = ts.Debug.deprecate(ts.factory.updateTypeAliasDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createEnumDeclaration` or the factory supplied by your transformation context instead. */\n ts.createEnumDeclaration = ts.Debug.deprecate(ts.factory.createEnumDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateEnumDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateEnumDeclaration = ts.Debug.deprecate(ts.factory.updateEnumDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createModuleDeclaration` or the factory supplied by your transformation context instead. */\n ts.createModuleDeclaration = ts.Debug.deprecate(ts.factory.createModuleDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateModuleDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateModuleDeclaration = ts.Debug.deprecate(ts.factory.updateModuleDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createModuleBlock` or the factory supplied by your transformation context instead. */\n ts.createModuleBlock = ts.Debug.deprecate(ts.factory.createModuleBlock, factoryDeprecation);\n /** @deprecated Use `factory.updateModuleBlock` or the factory supplied by your transformation context instead. */\n ts.updateModuleBlock = ts.Debug.deprecate(ts.factory.updateModuleBlock, factoryDeprecation);\n /** @deprecated Use `factory.createCaseBlock` or the factory supplied by your transformation context instead. */\n ts.createCaseBlock = ts.Debug.deprecate(ts.factory.createCaseBlock, factoryDeprecation);\n /** @deprecated Use `factory.updateCaseBlock` or the factory supplied by your transformation context instead. */\n ts.updateCaseBlock = ts.Debug.deprecate(ts.factory.updateCaseBlock, factoryDeprecation);\n /** @deprecated Use `factory.createNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */\n ts.createNamespaceExportDeclaration = ts.Debug.deprecate(ts.factory.createNamespaceExportDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateNamespaceExportDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateNamespaceExportDeclaration = ts.Debug.deprecate(ts.factory.updateNamespaceExportDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createImportEqualsDeclaration` or the factory supplied by your transformation context instead. */\n ts.createImportEqualsDeclaration = ts.Debug.deprecate(ts.factory.createImportEqualsDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateImportEqualsDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateImportEqualsDeclaration = ts.Debug.deprecate(ts.factory.updateImportEqualsDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createImportDeclaration` or the factory supplied by your transformation context instead. */\n ts.createImportDeclaration = ts.Debug.deprecate(ts.factory.createImportDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.updateImportDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateImportDeclaration = ts.Debug.deprecate(ts.factory.updateImportDeclaration, factoryDeprecation);\n /** @deprecated Use `factory.createNamespaceImport` or the factory supplied by your transformation context instead. */\n ts.createNamespaceImport = ts.Debug.deprecate(ts.factory.createNamespaceImport, factoryDeprecation);\n /** @deprecated Use `factory.updateNamespaceImport` or the factory supplied by your transformation context instead. */\n ts.updateNamespaceImport = ts.Debug.deprecate(ts.factory.updateNamespaceImport, factoryDeprecation);\n /** @deprecated Use `factory.createNamedImports` or the factory supplied by your transformation context instead. */\n ts.createNamedImports = ts.Debug.deprecate(ts.factory.createNamedImports, factoryDeprecation);\n /** @deprecated Use `factory.updateNamedImports` or the factory supplied by your transformation context instead. */\n ts.updateNamedImports = ts.Debug.deprecate(ts.factory.updateNamedImports, factoryDeprecation);\n /** @deprecated Use `factory.createImportSpecifier` or the factory supplied by your transformation context instead. */\n ts.createImportSpecifier = ts.Debug.deprecate(ts.factory.createImportSpecifier, factoryDeprecation);\n /** @deprecated Use `factory.updateImportSpecifier` or the factory supplied by your transformation context instead. */\n ts.updateImportSpecifier = ts.Debug.deprecate(ts.factory.updateImportSpecifier, factoryDeprecation);\n /** @deprecated Use `factory.createExportAssignment` or the factory supplied by your transformation context instead. */\n ts.createExportAssignment = ts.Debug.deprecate(ts.factory.createExportAssignment, factoryDeprecation);\n /** @deprecated Use `factory.updateExportAssignment` or the factory supplied by your transformation context instead. */\n ts.updateExportAssignment = ts.Debug.deprecate(ts.factory.updateExportAssignment, factoryDeprecation);\n /** @deprecated Use `factory.createNamedExports` or the factory supplied by your transformation context instead. */\n ts.createNamedExports = ts.Debug.deprecate(ts.factory.createNamedExports, factoryDeprecation);\n /** @deprecated Use `factory.updateNamedExports` or the factory supplied by your transformation context instead. */\n ts.updateNamedExports = ts.Debug.deprecate(ts.factory.updateNamedExports, factoryDeprecation);\n /** @deprecated Use `factory.createExportSpecifier` or the factory supplied by your transformation context instead. */\n ts.createExportSpecifier = ts.Debug.deprecate(ts.factory.createExportSpecifier, factoryDeprecation);\n /** @deprecated Use `factory.updateExportSpecifier` or the factory supplied by your transformation context instead. */\n ts.updateExportSpecifier = ts.Debug.deprecate(ts.factory.updateExportSpecifier, factoryDeprecation);\n /** @deprecated Use `factory.createExternalModuleReference` or the factory supplied by your transformation context instead. */\n ts.createExternalModuleReference = ts.Debug.deprecate(ts.factory.createExternalModuleReference, factoryDeprecation);\n /** @deprecated Use `factory.updateExternalModuleReference` or the factory supplied by your transformation context instead. */\n ts.updateExternalModuleReference = ts.Debug.deprecate(ts.factory.updateExternalModuleReference, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocTypeExpression` or the factory supplied by your transformation context instead. */\n ts.createJSDocTypeExpression = ts.Debug.deprecate(ts.factory.createJSDocTypeExpression, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocTypeTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocTypeTag = ts.Debug.deprecate(ts.factory.createJSDocTypeTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocReturnTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocReturnTag = ts.Debug.deprecate(ts.factory.createJSDocReturnTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocThisTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocThisTag = ts.Debug.deprecate(ts.factory.createJSDocThisTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocComment` or the factory supplied by your transformation context instead. */\n ts.createJSDocComment = ts.Debug.deprecate(ts.factory.createJSDocComment, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocParameterTag = ts.Debug.deprecate(ts.factory.createJSDocParameterTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocClassTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocClassTag = ts.Debug.deprecate(ts.factory.createJSDocClassTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocAugmentsTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocAugmentsTag = ts.Debug.deprecate(ts.factory.createJSDocAugmentsTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocEnumTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocEnumTag = ts.Debug.deprecate(ts.factory.createJSDocEnumTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocTemplateTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocTemplateTag = ts.Debug.deprecate(ts.factory.createJSDocTemplateTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocTypedefTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocTypedefTag = ts.Debug.deprecate(ts.factory.createJSDocTypedefTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocCallbackTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocCallbackTag = ts.Debug.deprecate(ts.factory.createJSDocCallbackTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocSignature` or the factory supplied by your transformation context instead. */\n ts.createJSDocSignature = ts.Debug.deprecate(ts.factory.createJSDocSignature, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocPropertyTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocPropertyTag = ts.Debug.deprecate(ts.factory.createJSDocPropertyTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocTypeLiteral` or the factory supplied by your transformation context instead. */\n ts.createJSDocTypeLiteral = ts.Debug.deprecate(ts.factory.createJSDocTypeLiteral, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocImplementsTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocImplementsTag = ts.Debug.deprecate(ts.factory.createJSDocImplementsTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocAuthorTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocAuthorTag = ts.Debug.deprecate(ts.factory.createJSDocAuthorTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocPublicTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocPublicTag = ts.Debug.deprecate(ts.factory.createJSDocPublicTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocPrivateTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocPrivateTag = ts.Debug.deprecate(ts.factory.createJSDocPrivateTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocProtectedTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocProtectedTag = ts.Debug.deprecate(ts.factory.createJSDocProtectedTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocReadonlyTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocReadonlyTag = ts.Debug.deprecate(ts.factory.createJSDocReadonlyTag, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocUnknownTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocTag = ts.Debug.deprecate(ts.factory.createJSDocUnknownTag, factoryDeprecation);\n /** @deprecated Use `factory.createJsxElement` or the factory supplied by your transformation context instead. */\n ts.createJsxElement = ts.Debug.deprecate(ts.factory.createJsxElement, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxElement` or the factory supplied by your transformation context instead. */\n ts.updateJsxElement = ts.Debug.deprecate(ts.factory.updateJsxElement, factoryDeprecation);\n /** @deprecated Use `factory.createJsxSelfClosingElement` or the factory supplied by your transformation context instead. */\n ts.createJsxSelfClosingElement = ts.Debug.deprecate(ts.factory.createJsxSelfClosingElement, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxSelfClosingElement` or the factory supplied by your transformation context instead. */\n ts.updateJsxSelfClosingElement = ts.Debug.deprecate(ts.factory.updateJsxSelfClosingElement, factoryDeprecation);\n /** @deprecated Use `factory.createJsxOpeningElement` or the factory supplied by your transformation context instead. */\n ts.createJsxOpeningElement = ts.Debug.deprecate(ts.factory.createJsxOpeningElement, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxOpeningElement` or the factory supplied by your transformation context instead. */\n ts.updateJsxOpeningElement = ts.Debug.deprecate(ts.factory.updateJsxOpeningElement, factoryDeprecation);\n /** @deprecated Use `factory.createJsxClosingElement` or the factory supplied by your transformation context instead. */\n ts.createJsxClosingElement = ts.Debug.deprecate(ts.factory.createJsxClosingElement, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxClosingElement` or the factory supplied by your transformation context instead. */\n ts.updateJsxClosingElement = ts.Debug.deprecate(ts.factory.updateJsxClosingElement, factoryDeprecation);\n /** @deprecated Use `factory.createJsxFragment` or the factory supplied by your transformation context instead. */\n ts.createJsxFragment = ts.Debug.deprecate(ts.factory.createJsxFragment, factoryDeprecation);\n /** @deprecated Use `factory.createJsxText` or the factory supplied by your transformation context instead. */\n ts.createJsxText = ts.Debug.deprecate(ts.factory.createJsxText, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxText` or the factory supplied by your transformation context instead. */\n ts.updateJsxText = ts.Debug.deprecate(ts.factory.updateJsxText, factoryDeprecation);\n /** @deprecated Use `factory.createJsxOpeningFragment` or the factory supplied by your transformation context instead. */\n ts.createJsxOpeningFragment = ts.Debug.deprecate(ts.factory.createJsxOpeningFragment, factoryDeprecation);\n /** @deprecated Use `factory.createJsxJsxClosingFragment` or the factory supplied by your transformation context instead. */\n ts.createJsxJsxClosingFragment = ts.Debug.deprecate(ts.factory.createJsxJsxClosingFragment, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxFragment` or the factory supplied by your transformation context instead. */\n ts.updateJsxFragment = ts.Debug.deprecate(ts.factory.updateJsxFragment, factoryDeprecation);\n /** @deprecated Use `factory.createJsxAttribute` or the factory supplied by your transformation context instead. */\n ts.createJsxAttribute = ts.Debug.deprecate(ts.factory.createJsxAttribute, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxAttribute` or the factory supplied by your transformation context instead. */\n ts.updateJsxAttribute = ts.Debug.deprecate(ts.factory.updateJsxAttribute, factoryDeprecation);\n /** @deprecated Use `factory.createJsxAttributes` or the factory supplied by your transformation context instead. */\n ts.createJsxAttributes = ts.Debug.deprecate(ts.factory.createJsxAttributes, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxAttributes` or the factory supplied by your transformation context instead. */\n ts.updateJsxAttributes = ts.Debug.deprecate(ts.factory.updateJsxAttributes, factoryDeprecation);\n /** @deprecated Use `factory.createJsxSpreadAttribute` or the factory supplied by your transformation context instead. */\n ts.createJsxSpreadAttribute = ts.Debug.deprecate(ts.factory.createJsxSpreadAttribute, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxSpreadAttribute` or the factory supplied by your transformation context instead. */\n ts.updateJsxSpreadAttribute = ts.Debug.deprecate(ts.factory.updateJsxSpreadAttribute, factoryDeprecation);\n /** @deprecated Use `factory.createJsxExpression` or the factory supplied by your transformation context instead. */\n ts.createJsxExpression = ts.Debug.deprecate(ts.factory.createJsxExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateJsxExpression` or the factory supplied by your transformation context instead. */\n ts.updateJsxExpression = ts.Debug.deprecate(ts.factory.updateJsxExpression, factoryDeprecation);\n /** @deprecated Use `factory.createCaseClause` or the factory supplied by your transformation context instead. */\n ts.createCaseClause = ts.Debug.deprecate(ts.factory.createCaseClause, factoryDeprecation);\n /** @deprecated Use `factory.updateCaseClause` or the factory supplied by your transformation context instead. */\n ts.updateCaseClause = ts.Debug.deprecate(ts.factory.updateCaseClause, factoryDeprecation);\n /** @deprecated Use `factory.createDefaultClause` or the factory supplied by your transformation context instead. */\n ts.createDefaultClause = ts.Debug.deprecate(ts.factory.createDefaultClause, factoryDeprecation);\n /** @deprecated Use `factory.updateDefaultClause` or the factory supplied by your transformation context instead. */\n ts.updateDefaultClause = ts.Debug.deprecate(ts.factory.updateDefaultClause, factoryDeprecation);\n /** @deprecated Use `factory.createHeritageClause` or the factory supplied by your transformation context instead. */\n ts.createHeritageClause = ts.Debug.deprecate(ts.factory.createHeritageClause, factoryDeprecation);\n /** @deprecated Use `factory.updateHeritageClause` or the factory supplied by your transformation context instead. */\n ts.updateHeritageClause = ts.Debug.deprecate(ts.factory.updateHeritageClause, factoryDeprecation);\n /** @deprecated Use `factory.createCatchClause` or the factory supplied by your transformation context instead. */\n ts.createCatchClause = ts.Debug.deprecate(ts.factory.createCatchClause, factoryDeprecation);\n /** @deprecated Use `factory.updateCatchClause` or the factory supplied by your transformation context instead. */\n ts.updateCatchClause = ts.Debug.deprecate(ts.factory.updateCatchClause, factoryDeprecation);\n /** @deprecated Use `factory.createPropertyAssignment` or the factory supplied by your transformation context instead. */\n ts.createPropertyAssignment = ts.Debug.deprecate(ts.factory.createPropertyAssignment, factoryDeprecation);\n /** @deprecated Use `factory.updatePropertyAssignment` or the factory supplied by your transformation context instead. */\n ts.updatePropertyAssignment = ts.Debug.deprecate(ts.factory.updatePropertyAssignment, factoryDeprecation);\n /** @deprecated Use `factory.createShorthandPropertyAssignment` or the factory supplied by your transformation context instead. */\n ts.createShorthandPropertyAssignment = ts.Debug.deprecate(ts.factory.createShorthandPropertyAssignment, factoryDeprecation);\n /** @deprecated Use `factory.updateShorthandPropertyAssignment` or the factory supplied by your transformation context instead. */\n ts.updateShorthandPropertyAssignment = ts.Debug.deprecate(ts.factory.updateShorthandPropertyAssignment, factoryDeprecation);\n /** @deprecated Use `factory.createSpreadAssignment` or the factory supplied by your transformation context instead. */\n ts.createSpreadAssignment = ts.Debug.deprecate(ts.factory.createSpreadAssignment, factoryDeprecation);\n /** @deprecated Use `factory.updateSpreadAssignment` or the factory supplied by your transformation context instead. */\n ts.updateSpreadAssignment = ts.Debug.deprecate(ts.factory.updateSpreadAssignment, factoryDeprecation);\n /** @deprecated Use `factory.createEnumMember` or the factory supplied by your transformation context instead. */\n ts.createEnumMember = ts.Debug.deprecate(ts.factory.createEnumMember, factoryDeprecation);\n /** @deprecated Use `factory.updateEnumMember` or the factory supplied by your transformation context instead. */\n ts.updateEnumMember = ts.Debug.deprecate(ts.factory.updateEnumMember, factoryDeprecation);\n /** @deprecated Use `factory.updateSourceFile` or the factory supplied by your transformation context instead. */\n ts.updateSourceFileNode = ts.Debug.deprecate(ts.factory.updateSourceFile, factoryDeprecation);\n /** @deprecated Use `factory.createNotEmittedStatement` or the factory supplied by your transformation context instead. */\n ts.createNotEmittedStatement = ts.Debug.deprecate(ts.factory.createNotEmittedStatement, factoryDeprecation);\n /** @deprecated Use `factory.createPartiallyEmittedExpression` or the factory supplied by your transformation context instead. */\n ts.createPartiallyEmittedExpression = ts.Debug.deprecate(ts.factory.createPartiallyEmittedExpression, factoryDeprecation);\n /** @deprecated Use `factory.updatePartiallyEmittedExpression` or the factory supplied by your transformation context instead. */\n ts.updatePartiallyEmittedExpression = ts.Debug.deprecate(ts.factory.updatePartiallyEmittedExpression, factoryDeprecation);\n /** @deprecated Use `factory.createCommaListExpression` or the factory supplied by your transformation context instead. */\n ts.createCommaList = ts.Debug.deprecate(ts.factory.createCommaListExpression, factoryDeprecation);\n /** @deprecated Use `factory.updateCommaListExpression` or the factory supplied by your transformation context instead. */\n ts.updateCommaList = ts.Debug.deprecate(ts.factory.updateCommaListExpression, factoryDeprecation);\n /** @deprecated Use `factory.createBundle` or the factory supplied by your transformation context instead. */\n ts.createBundle = ts.Debug.deprecate(ts.factory.createBundle, factoryDeprecation);\n /** @deprecated Use `factory.updateBundle` or the factory supplied by your transformation context instead. */\n ts.updateBundle = ts.Debug.deprecate(ts.factory.updateBundle, factoryDeprecation);\n /** @deprecated Use `factory.createImmediatelyInvokedFunctionExpression` or the factory supplied by your transformation context instead. */\n ts.createImmediatelyInvokedFunctionExpression = ts.Debug.deprecate(ts.factory.createImmediatelyInvokedFunctionExpression, factoryDeprecation);\n /** @deprecated Use `factory.createImmediatelyInvokedArrowFunction` or the factory supplied by your transformation context instead. */\n ts.createImmediatelyInvokedArrowFunction = ts.Debug.deprecate(ts.factory.createImmediatelyInvokedArrowFunction, factoryDeprecation);\n /** @deprecated Use `factory.createVoidZero` or the factory supplied by your transformation context instead. */\n ts.createVoidZero = ts.Debug.deprecate(ts.factory.createVoidZero, factoryDeprecation);\n /** @deprecated Use `factory.createExportDefault` or the factory supplied by your transformation context instead. */\n ts.createExportDefault = ts.Debug.deprecate(ts.factory.createExportDefault, factoryDeprecation);\n /** @deprecated Use `factory.createExternalModuleExport` or the factory supplied by your transformation context instead. */\n ts.createExternalModuleExport = ts.Debug.deprecate(ts.factory.createExternalModuleExport, factoryDeprecation);\n /** @deprecated Use `factory.createNamespaceExport` or the factory supplied by your transformation context instead. */\n ts.createNamespaceExport = ts.Debug.deprecate(ts.factory.createNamespaceExport, factoryDeprecation);\n /** @deprecated Use `factory.updateNamespaceExport` or the factory supplied by your transformation context instead. */\n ts.updateNamespaceExport = ts.Debug.deprecate(ts.factory.updateNamespaceExport, factoryDeprecation);\n /** @deprecated Use `factory.createToken` or the factory supplied by your transformation context instead. */\n ts.createToken = ts.Debug.deprecate(function createToken(kind) {\n return ts.factory.createToken(kind);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createIdentifier` or the factory supplied by your transformation context instead. */\n ts.createIdentifier = ts.Debug.deprecate(function createIdentifier(text) {\n return ts.factory.createIdentifier(text, /*typeArguments*/ undefined, /*originalKeywordKind*/ undefined);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createTempVariable` or the factory supplied by your transformation context instead. */\n ts.createTempVariable = ts.Debug.deprecate(function createTempVariable(recordTempVariable) {\n return ts.factory.createTempVariable(recordTempVariable, /*reserveInNestedScopes*/ undefined);\n }, factoryDeprecation);\n /** @deprecated Use `factory.getGeneratedNameForNode` or the factory supplied by your transformation context instead. */\n ts.getGeneratedNameForNode = ts.Debug.deprecate(function getGeneratedNameForNode(node) {\n return ts.factory.getGeneratedNameForNode(node, /*flags*/ undefined);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createUniqueName(text, GeneratedIdentifierFlags.Optimistic)` or the factory supplied by your transformation context instead. */\n ts.createOptimisticUniqueName = ts.Debug.deprecate(function createOptimisticUniqueName(text) {\n return ts.factory.createUniqueName(text, 16 /* Optimistic */);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createUniqueName(text, GeneratedIdentifierFlags.Optimistic | GeneratedIdentifierFlags.FileLevel)` or the factory supplied by your transformation context instead. */\n ts.createFileLevelUniqueName = ts.Debug.deprecate(function createFileLevelUniqueName(text) {\n return ts.factory.createUniqueName(text, 16 /* Optimistic */ | 32 /* FileLevel */);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createIndexSignature` or the factory supplied by your transformation context instead. */\n ts.createIndexSignature = ts.Debug.deprecate(function createIndexSignature(decorators, modifiers, parameters, type) {\n return ts.factory.createIndexSignature(decorators, modifiers, parameters, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createTypePredicateNode` or the factory supplied by your transformation context instead. */\n ts.createTypePredicateNode = ts.Debug.deprecate(function createTypePredicateNode(parameterName, type) {\n return ts.factory.createTypePredicateNode(/*assertsModifier*/ undefined, parameterName, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateTypePredicateNode` or the factory supplied by your transformation context instead. */\n ts.updateTypePredicateNode = ts.Debug.deprecate(function updateTypePredicateNode(node, parameterName, type) {\n return ts.factory.updateTypePredicateNode(node, /*assertsModifier*/ undefined, parameterName, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead. */\n ts.createLiteral = ts.Debug.deprecate(function createLiteral(value) {\n if (typeof value === \"number\") {\n return ts.factory.createNumericLiteral(value);\n }\n // eslint-disable-next-line no-in-operator\n if (typeof value === \"object\" && \"base10Value\" in value) { // PseudoBigInt\n return ts.factory.createBigIntLiteral(value);\n }\n if (typeof value === \"boolean\") {\n return value ? ts.factory.createTrue() : ts.factory.createFalse();\n }\n if (typeof value === \"string\") {\n return ts.factory.createStringLiteral(value, /*isSingleQuote*/ undefined);\n }\n return ts.factory.createStringLiteralFromNode(value);\n }, { since: \"4.0\", warnAfter: \"4.1\", message: \"Use `factory.createStringLiteral`, `factory.createStringLiteralFromNode`, `factory.createNumericLiteral`, `factory.createBigIntLiteral`, `factory.createTrue`, `factory.createFalse`, or the factory supplied by your transformation context instead.\" });\n /** @deprecated Use `factory.createMethodSignature` or the factory supplied by your transformation context instead. */\n ts.createMethodSignature = ts.Debug.deprecate(function createMethodSignature(typeParameters, parameters, type, name, questionToken) {\n return ts.factory.createMethodSignature(/*modifiers*/ undefined, name, questionToken, typeParameters, parameters, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateMethodSignature` or the factory supplied by your transformation context instead. */\n ts.updateMethodSignature = ts.Debug.deprecate(function updateMethodSignature(node, typeParameters, parameters, type, name, questionToken) {\n return ts.factory.updateMethodSignature(node, node.modifiers, name, questionToken, typeParameters, parameters, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createTypeOperatorNode` or the factory supplied by your transformation context instead. */\n ts.createTypeOperatorNode = ts.Debug.deprecate(function createTypeOperatorNode(operatorOrType, type) {\n var operator;\n if (type) {\n operator = operatorOrType;\n }\n else {\n type = operatorOrType;\n operator = 139 /* KeyOfKeyword */;\n }\n return ts.factory.createTypeOperatorNode(operator, type);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createTaggedTemplate` or the factory supplied by your transformation context instead. */\n ts.createTaggedTemplate = ts.Debug.deprecate(function createTaggedTemplate(tag, typeArgumentsOrTemplate, template) {\n var typeArguments;\n if (template) {\n typeArguments = typeArgumentsOrTemplate;\n }\n else {\n template = typeArgumentsOrTemplate;\n }\n return ts.factory.createTaggedTemplateExpression(tag, typeArguments, template);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateTaggedTemplate` or the factory supplied by your transformation context instead. */\n ts.updateTaggedTemplate = ts.Debug.deprecate(function updateTaggedTemplate(node, tag, typeArgumentsOrTemplate, template) {\n var typeArguments;\n if (template) {\n typeArguments = typeArgumentsOrTemplate;\n }\n else {\n template = typeArgumentsOrTemplate;\n }\n return ts.factory.updateTaggedTemplateExpression(node, tag, typeArguments, template);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateBinary` or the factory supplied by your transformation context instead. */\n ts.updateBinary = ts.Debug.deprecate(function updateBinary(node, left, right, operator) {\n if (operator === void 0) { operator = node.operatorToken; }\n if (typeof operator === \"number\") {\n operator = operator === node.operatorToken.kind ? node.operatorToken : ts.factory.createToken(operator);\n }\n return ts.factory.updateBinaryExpression(node, left, operator, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createConditional` or the factory supplied by your transformation context instead. */\n ts.createConditional = ts.Debug.deprecate(function createConditional(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) {\n return arguments.length === 5 ? ts.factory.createConditionalExpression(condition, questionTokenOrWhenTrue, whenTrueOrWhenFalse, colonToken, whenFalse) :\n arguments.length === 3 ? ts.factory.createConditionalExpression(condition, ts.factory.createToken(57 /* QuestionToken */), questionTokenOrWhenTrue, ts.factory.createToken(58 /* ColonToken */), whenTrueOrWhenFalse) :\n ts.Debug.fail(\"Argument count mismatch\");\n }, factoryDeprecation);\n /** @deprecated Use `factory.createYield` or the factory supplied by your transformation context instead. */\n ts.createYield = ts.Debug.deprecate(function createYield(asteriskTokenOrExpression, expression) {\n var asteriskToken;\n if (expression) {\n asteriskToken = asteriskTokenOrExpression;\n }\n else {\n expression = asteriskTokenOrExpression;\n }\n return ts.factory.createYieldExpression(asteriskToken, expression);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createClassExpression` or the factory supplied by your transformation context instead. */\n ts.createClassExpression = ts.Debug.deprecate(function createClassExpression(modifiers, name, typeParameters, heritageClauses, members) {\n return ts.factory.createClassExpression(/*decorators*/ undefined, modifiers, name, typeParameters, heritageClauses, members);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateClassExpression` or the factory supplied by your transformation context instead. */\n ts.updateClassExpression = ts.Debug.deprecate(function updateClassExpression(node, modifiers, name, typeParameters, heritageClauses, members) {\n return ts.factory.updateClassExpression(node, /*decorators*/ undefined, modifiers, name, typeParameters, heritageClauses, members);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createPropertySignature` or the factory supplied by your transformation context instead. */\n ts.createPropertySignature = ts.Debug.deprecate(function createPropertySignature(modifiers, name, questionToken, type, initializer) {\n var node = ts.factory.createPropertySignature(modifiers, name, questionToken, type);\n node.initializer = initializer;\n return node;\n }, factoryDeprecation);\n /** @deprecated Use `factory.updatePropertySignature` or the factory supplied by your transformation context instead. */\n ts.updatePropertySignature = ts.Debug.deprecate(function updatePropertySignature(node, modifiers, name, questionToken, type, initializer) {\n var updated = ts.factory.updatePropertySignature(node, modifiers, name, questionToken, type);\n if (node.initializer !== initializer) {\n if (updated === node) {\n updated = ts.factory.cloneNode(node);\n }\n updated.initializer = initializer;\n }\n return updated;\n }, factoryDeprecation);\n /** @deprecated Use `factory.createExpressionWithTypeArguments` or the factory supplied by your transformation context instead. */\n ts.createExpressionWithTypeArguments = ts.Debug.deprecate(function createExpressionWithTypeArguments(typeArguments, expression) {\n return ts.factory.createExpressionWithTypeArguments(expression, typeArguments);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateExpressionWithTypeArguments` or the factory supplied by your transformation context instead. */\n ts.updateExpressionWithTypeArguments = ts.Debug.deprecate(function updateExpressionWithTypeArguments(node, typeArguments, expression) {\n return ts.factory.updateExpressionWithTypeArguments(node, expression, typeArguments);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createArrowFunction` or the factory supplied by your transformation context instead. */\n ts.createArrowFunction = ts.Debug.deprecate(function createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {\n return arguments.length === 6 ? ts.factory.createArrowFunction(modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) :\n arguments.length === 5 ? ts.factory.createArrowFunction(modifiers, typeParameters, parameters, type, /*equalsGreaterThanToken*/ undefined, equalsGreaterThanTokenOrBody) :\n ts.Debug.fail(\"Argument count mismatch\");\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateArrowFunction` or the factory supplied by your transformation context instead. */\n ts.updateArrowFunction = ts.Debug.deprecate(function updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) {\n return arguments.length === 7 ? ts.factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, equalsGreaterThanTokenOrBody, body) :\n arguments.length === 6 ? ts.factory.updateArrowFunction(node, modifiers, typeParameters, parameters, type, node.equalsGreaterThanToken, equalsGreaterThanTokenOrBody) :\n ts.Debug.fail(\"Argument count mismatch\");\n }, factoryDeprecation);\n /** @deprecated Use `factory.createVariableDeclaration` or the factory supplied by your transformation context instead. */\n ts.createVariableDeclaration = ts.Debug.deprecate(function createVariableDeclaration(name, exclamationTokenOrType, typeOrInitializer, initializer) {\n return arguments.length === 4 ? ts.factory.createVariableDeclaration(name, exclamationTokenOrType, typeOrInitializer, initializer) :\n arguments.length >= 1 && arguments.length <= 3 ? ts.factory.createVariableDeclaration(name, /*exclamationToken*/ undefined, exclamationTokenOrType, typeOrInitializer) :\n ts.Debug.fail(\"Argument count mismatch\");\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateVariableDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateVariableDeclaration = ts.Debug.deprecate(function updateVariableDeclaration(node, name, exclamationTokenOrType, typeOrInitializer, initializer) {\n return arguments.length === 5 ? ts.factory.updateVariableDeclaration(node, name, exclamationTokenOrType, typeOrInitializer, initializer) :\n arguments.length === 4 ? ts.factory.updateVariableDeclaration(node, name, node.exclamationToken, exclamationTokenOrType, typeOrInitializer) :\n ts.Debug.fail(\"Argument count mismatch\");\n }, factoryDeprecation);\n /** @deprecated Use `factory.createImportClause` or the factory supplied by your transformation context instead. */\n ts.createImportClause = ts.Debug.deprecate(function createImportClause(name, namedBindings, isTypeOnly) {\n if (isTypeOnly === void 0) { isTypeOnly = false; }\n return ts.factory.createImportClause(isTypeOnly, name, namedBindings);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateImportClause` or the factory supplied by your transformation context instead. */\n ts.updateImportClause = ts.Debug.deprecate(function updateImportClause(node, name, namedBindings, isTypeOnly) {\n return ts.factory.updateImportClause(node, isTypeOnly, name, namedBindings);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createExportDeclaration` or the factory supplied by your transformation context instead. */\n ts.createExportDeclaration = ts.Debug.deprecate(function createExportDeclaration(decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {\n if (isTypeOnly === void 0) { isTypeOnly = false; }\n return ts.factory.createExportDeclaration(decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);\n }, factoryDeprecation);\n /** @deprecated Use `factory.updateExportDeclaration` or the factory supplied by your transformation context instead. */\n ts.updateExportDeclaration = ts.Debug.deprecate(function updateExportDeclaration(node, decorators, modifiers, exportClause, moduleSpecifier, isTypeOnly) {\n return ts.factory.updateExportDeclaration(node, decorators, modifiers, isTypeOnly, exportClause, moduleSpecifier);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createJSDocParameterTag` or the factory supplied by your transformation context instead. */\n ts.createJSDocParamTag = ts.Debug.deprecate(function createJSDocParamTag(name, isBracketed, typeExpression, comment) {\n return ts.factory.createJSDocParameterTag(/*tagName*/ undefined, name, isBracketed, typeExpression, /*isNameFirst*/ false, comment ? ts.factory.createNodeArray([ts.factory.createJSDocText(comment)]) : undefined);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createComma` or the factory supplied by your transformation context instead. */\n ts.createComma = ts.Debug.deprecate(function createComma(left, right) {\n return ts.factory.createComma(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createLessThan` or the factory supplied by your transformation context instead. */\n ts.createLessThan = ts.Debug.deprecate(function createLessThan(left, right) {\n return ts.factory.createLessThan(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createAssignment` or the factory supplied by your transformation context instead. */\n ts.createAssignment = ts.Debug.deprecate(function createAssignment(left, right) {\n return ts.factory.createAssignment(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createStrictEquality` or the factory supplied by your transformation context instead. */\n ts.createStrictEquality = ts.Debug.deprecate(function createStrictEquality(left, right) {\n return ts.factory.createStrictEquality(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createStrictInequality` or the factory supplied by your transformation context instead. */\n ts.createStrictInequality = ts.Debug.deprecate(function createStrictInequality(left, right) {\n return ts.factory.createStrictInequality(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createAdd` or the factory supplied by your transformation context instead. */\n ts.createAdd = ts.Debug.deprecate(function createAdd(left, right) {\n return ts.factory.createAdd(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createSubtract` or the factory supplied by your transformation context instead. */\n ts.createSubtract = ts.Debug.deprecate(function createSubtract(left, right) {\n return ts.factory.createSubtract(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createLogicalAnd` or the factory supplied by your transformation context instead. */\n ts.createLogicalAnd = ts.Debug.deprecate(function createLogicalAnd(left, right) {\n return ts.factory.createLogicalAnd(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createLogicalOr` or the factory supplied by your transformation context instead. */\n ts.createLogicalOr = ts.Debug.deprecate(function createLogicalOr(left, right) {\n return ts.factory.createLogicalOr(left, right);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createPostfixIncrement` or the factory supplied by your transformation context instead. */\n ts.createPostfixIncrement = ts.Debug.deprecate(function createPostfixIncrement(operand) {\n return ts.factory.createPostfixIncrement(operand);\n }, factoryDeprecation);\n /** @deprecated Use `factory.createLogicalNot` or the factory supplied by your transformation context instead. */\n ts.createLogicalNot = ts.Debug.deprecate(function createLogicalNot(operand) {\n return ts.factory.createLogicalNot(operand);\n }, factoryDeprecation);\n /** @deprecated Use an appropriate `factory` method instead. */\n ts.createNode = ts.Debug.deprecate(function createNode(kind, pos, end) {\n if (pos === void 0) { pos = 0; }\n if (end === void 0) { end = 0; }\n return ts.setTextRangePosEnd(kind === 300 /* SourceFile */ ? ts.parseBaseNodeFactory.createBaseSourceFileNode(kind) :\n kind === 79 /* Identifier */ ? ts.parseBaseNodeFactory.createBaseIdentifierNode(kind) :\n kind === 80 /* PrivateIdentifier */ ? ts.parseBaseNodeFactory.createBasePrivateIdentifierNode(kind) :\n !ts.isNodeKind(kind) ? ts.parseBaseNodeFactory.createBaseTokenNode(kind) :\n ts.parseBaseNodeFactory.createBaseNode(kind), pos, end);\n }, { since: \"4.0\", warnAfter: \"4.1\", message: \"Use an appropriate `factory` method instead.\" });\n /**\n * Creates a shallow, memberwise clone of a node ~for mutation~ with its `pos`, `end`, and `parent` set.\n *\n * NOTE: It is unsafe to change any properties of a `Node` that relate to its AST children, as those changes won't be\n * captured with respect to transformations.\n *\n * @deprecated Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.\n */\n ts.getMutableClone = ts.Debug.deprecate(function getMutableClone(node) {\n var clone = ts.factory.cloneNode(node);\n ts.setTextRange(clone, node);\n ts.setParent(clone, node.parent);\n return clone;\n }, { since: \"4.0\", warnAfter: \"4.1\", message: \"Use an appropriate `factory.update...` method instead, use `setCommentRange` or `setSourceMapRange`, and avoid setting `parent`.\" });\n // #endregion Node Factory top-level exports\n // DEPRECATION: Renamed node tests\n // DEPRECATION PLAN:\n // - soft: 4.0\n // - warn: 4.1\n // - error: TBD\n // #region Renamed node Tests\n /** @deprecated Use `isTypeAssertionExpression` instead. */\n ts.isTypeAssertion = ts.Debug.deprecate(function isTypeAssertion(node) {\n return node.kind === 209 /* TypeAssertionExpression */;\n }, {\n since: \"4.0\",\n warnAfter: \"4.1\",\n message: \"Use `isTypeAssertionExpression` instead.\"\n });\n // #endregion\n // DEPRECATION: Renamed node tests\n // DEPRECATION PLAN:\n // - soft: 4.2\n // - warn: 4.3\n // - error: TBD\n // #region Renamed node Tests\n /**\n * @deprecated Use `isMemberName` instead.\n */\n ts.isIdentifierOrPrivateIdentifier = ts.Debug.deprecate(function isIdentifierOrPrivateIdentifier(node) {\n return ts.isMemberName(node);\n }, {\n since: \"4.2\",\n warnAfter: \"4.3\",\n message: \"Use `isMemberName` instead.\"\n });\n // #endregion Renamed node Tests\n})(ts || (ts = {}));\n\n\n\n// MONACOCHANGE\nexport var createClassifier = ts.createClassifier;\nexport var createLanguageService = ts.createLanguageService;\nexport var displayPartsToString = ts.displayPartsToString;\nexport var EndOfLineState = ts.EndOfLineState;\nexport var flattenDiagnosticMessageText = ts.flattenDiagnosticMessageText;\nexport var IndentStyle = ts.IndentStyle;\nexport var ScriptKind = ts.ScriptKind;\nexport var ScriptTarget = ts.ScriptTarget;\nexport var TokenClass = ts.TokenClass;\n// END MONACOCHANGE\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { globals, isMacintosh, isWindows, setImmediate } from './platform.js';\nlet safeProcess;\n// Native sandbox environment\nif (typeof globals.vscode !== 'undefined' && typeof globals.vscode.process !== 'undefined') {\n const sandboxProcess = globals.vscode.process;\n safeProcess = {\n get platform() { return sandboxProcess.platform; },\n get arch() { return sandboxProcess.arch; },\n get env() { return sandboxProcess.env; },\n cwd() { return sandboxProcess.cwd(); },\n nextTick(callback) { return setImmediate(callback); }\n };\n}\n// Native node.js environment\nelse if (typeof process !== 'undefined') {\n safeProcess = {\n get platform() { return process.platform; },\n get arch() { return process.arch; },\n get env() { return process.env; },\n cwd() { return process.env['VSCODE_CWD'] || process.cwd(); },\n nextTick(callback) { return process.nextTick(callback); }\n };\n}\n// Web environment\nelse {\n safeProcess = {\n // Supported\n get platform() { return isWindows ? 'win32' : isMacintosh ? 'darwin' : 'linux'; },\n get arch() { return undefined; /* arch is undefined in web */ },\n nextTick(callback) { return setImmediate(callback); },\n // Unsupported\n get env() { return {}; },\n cwd() { return '/'; }\n };\n}\n/**\n * Provides safe access to the `cwd` property in node.js, sandboxed or web\n * environments.\n *\n * Note: in web, this property is hardcoded to be `/`.\n */\nexport const cwd = safeProcess.cwd;\n/**\n * Provides safe access to the `env` property in node.js, sandboxed or web\n * environments.\n *\n * Note: in web, this property is hardcoded to be `{}`.\n */\nexport const env = safeProcess.env;\n/**\n * Provides safe access to the `platform` property in node.js, sandboxed or web\n * environments.\n */\nexport const platform = safeProcess.platform;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// Avoid circular dependency on EventEmitter by implementing a subset of the interface.\nexport class ErrorHandler {\n constructor() {\n this.listeners = [];\n this.unexpectedErrorHandler = function (e) {\n setTimeout(() => {\n if (e.stack) {\n throw new Error(e.message + '\\n\\n' + e.stack);\n }\n throw e;\n }, 0);\n };\n }\n emit(e) {\n this.listeners.forEach((listener) => {\n listener(e);\n });\n }\n onUnexpectedError(e) {\n this.unexpectedErrorHandler(e);\n this.emit(e);\n }\n // For external errors, we don't want the listeners to be called\n onUnexpectedExternalError(e) {\n this.unexpectedErrorHandler(e);\n }\n}\nexport const errorHandler = new ErrorHandler();\nexport function onUnexpectedError(e) {\n // ignore errors from cancelled promises\n if (!isPromiseCanceledError(e)) {\n errorHandler.onUnexpectedError(e);\n }\n return undefined;\n}\nexport function onUnexpectedExternalError(e) {\n // ignore errors from cancelled promises\n if (!isPromiseCanceledError(e)) {\n errorHandler.onUnexpectedExternalError(e);\n }\n return undefined;\n}\nexport function transformErrorForSerialization(error) {\n if (error instanceof Error) {\n let { name, message } = error;\n const stack = error.stacktrace || error.stack;\n return {\n $isError: true,\n name,\n message,\n stack\n };\n }\n // return as is\n return error;\n}\nconst canceledName = 'Canceled';\n/**\n * Checks if the given error is a promise in canceled state\n */\nexport function isPromiseCanceledError(error) {\n return error instanceof Error && error.name === canceledName && error.message === canceledName;\n}\n/**\n * Returns an error that signals cancellation.\n */\nexport function canceled() {\n const error = new Error(canceledName);\n error.name = error.message;\n return error;\n}\nexport function illegalArgument(name) {\n if (name) {\n return new Error(`Illegal argument: ${name}`);\n }\n else {\n return new Error('Illegal argument');\n }\n}\nexport function illegalState(name) {\n if (name) {\n return new Error(`Illegal state: ${name}`);\n }\n else {\n return new Error('Illegal state');\n }\n}\nexport class NotSupportedError extends Error {\n constructor(message) {\n super('NotSupported');\n if (message) {\n this.message = message;\n }\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport function once(fn) {\n const _this = this;\n let didCall = false;\n let result;\n return function () {\n if (didCall) {\n return result;\n }\n didCall = true;\n result = fn.apply(_this, arguments);\n return result;\n };\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport var Iterable;\n(function (Iterable) {\n function is(thing) {\n return thing && typeof thing === 'object' && typeof thing[Symbol.iterator] === 'function';\n }\n Iterable.is = is;\n const _empty = Object.freeze([]);\n function empty() {\n return _empty;\n }\n Iterable.empty = empty;\n function* single(element) {\n yield element;\n }\n Iterable.single = single;\n function from(iterable) {\n return iterable || _empty;\n }\n Iterable.from = from;\n function isEmpty(iterable) {\n return !iterable || iterable[Symbol.iterator]().next().done === true;\n }\n Iterable.isEmpty = isEmpty;\n function first(iterable) {\n return iterable[Symbol.iterator]().next().value;\n }\n Iterable.first = first;\n function some(iterable, predicate) {\n for (const element of iterable) {\n if (predicate(element)) {\n return true;\n }\n }\n return false;\n }\n Iterable.some = some;\n function find(iterable, predicate) {\n for (const element of iterable) {\n if (predicate(element)) {\n return element;\n }\n }\n return undefined;\n }\n Iterable.find = find;\n function* filter(iterable, predicate) {\n for (const element of iterable) {\n if (predicate(element)) {\n yield element;\n }\n }\n }\n Iterable.filter = filter;\n function* map(iterable, fn) {\n let index = 0;\n for (const element of iterable) {\n yield fn(element, index++);\n }\n }\n Iterable.map = map;\n function* concat(...iterables) {\n for (const iterable of iterables) {\n for (const element of iterable) {\n yield element;\n }\n }\n }\n Iterable.concat = concat;\n function* concatNested(iterables) {\n for (const iterable of iterables) {\n for (const element of iterable) {\n yield element;\n }\n }\n }\n Iterable.concatNested = concatNested;\n function reduce(iterable, reducer, initialValue) {\n let value = initialValue;\n for (const element of iterable) {\n value = reducer(value, element);\n }\n return value;\n }\n Iterable.reduce = reduce;\n /**\n * Returns an iterable slice of the array, with the same semantics as `array.slice()`.\n */\n function* slice(arr, from, to = arr.length) {\n if (from < 0) {\n from += arr.length;\n }\n if (to < 0) {\n to += arr.length;\n }\n else if (to > arr.length) {\n to = arr.length;\n }\n for (; from < to; from++) {\n yield arr[from];\n }\n }\n Iterable.slice = slice;\n /**\n * Consumes `atMost` elements from iterable and returns the consumed elements,\n * and an iterable for the rest of the elements.\n */\n function consume(iterable, atMost = Number.POSITIVE_INFINITY) {\n const consumed = [];\n if (atMost === 0) {\n return [consumed, iterable];\n }\n const iterator = iterable[Symbol.iterator]();\n for (let i = 0; i < atMost; i++) {\n const next = iterator.next();\n if (next.done) {\n return [consumed, Iterable.empty()];\n }\n consumed.push(next.value);\n }\n return [consumed, { [Symbol.iterator]() { return iterator; } }];\n }\n Iterable.consume = consume;\n /**\n * Returns whether the iterables are the same length and all items are\n * equal using the comparator function.\n */\n function equals(a, b, comparator = (at, bt) => at === bt) {\n const ai = a[Symbol.iterator]();\n const bi = b[Symbol.iterator]();\n while (true) {\n const an = ai.next();\n const bn = bi.next();\n if (an.done !== bn.done) {\n return false;\n }\n else if (an.done) {\n return true;\n }\n else if (!comparator(an.value, bn.value)) {\n return false;\n }\n }\n }\n Iterable.equals = equals;\n})(Iterable || (Iterable = {}));\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { once } from './functional.js';\nimport { Iterable } from './iterator.js';\n/**\n * Enables logging of potentially leaked disposables.\n *\n * A disposable is considered leaked if it is not disposed or not registered as the child of\n * another disposable. This tracking is very simple an only works for classes that either\n * extend Disposable or use a DisposableStore. This means there are a lot of false positives.\n */\nconst TRACK_DISPOSABLES = false;\nlet disposableTracker = null;\nexport function setDisposableTracker(tracker) {\n disposableTracker = tracker;\n}\nif (TRACK_DISPOSABLES) {\n const __is_disposable_tracked__ = '__is_disposable_tracked__';\n setDisposableTracker(new class {\n trackDisposable(x) {\n const stack = new Error('Potentially leaked disposable').stack;\n setTimeout(() => {\n if (!x[__is_disposable_tracked__]) {\n console.log(stack);\n }\n }, 3000);\n }\n setParent(child, parent) {\n if (child && child !== Disposable.None) {\n try {\n child[__is_disposable_tracked__] = true;\n }\n catch (_a) {\n // noop\n }\n }\n }\n markAsDisposed(disposable) {\n if (disposable && disposable !== Disposable.None) {\n try {\n disposable[__is_disposable_tracked__] = true;\n }\n catch (_a) {\n // noop\n }\n }\n }\n markAsSingleton(disposable) { }\n });\n}\nfunction trackDisposable(x) {\n disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.trackDisposable(x);\n return x;\n}\nfunction markAsDisposed(disposable) {\n disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.markAsDisposed(disposable);\n}\nfunction setParentOfDisposable(child, parent) {\n disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.setParent(child, parent);\n}\nfunction setParentOfDisposables(children, parent) {\n if (!disposableTracker) {\n return;\n }\n for (const child of children) {\n disposableTracker.setParent(child, parent);\n }\n}\n/**\n * Indicates that the given object is a singleton which does not need to be disposed.\n*/\nexport function markAsSingleton(singleton) {\n disposableTracker === null || disposableTracker === void 0 ? void 0 : disposableTracker.markAsSingleton(singleton);\n return singleton;\n}\nexport class MultiDisposeError extends Error {\n constructor(errors) {\n super(`Encountered errors while disposing of store. Errors: [${errors.join(', ')}]`);\n this.errors = errors;\n }\n}\nexport function isDisposable(thing) {\n return typeof thing.dispose === 'function' && thing.dispose.length === 0;\n}\nexport function dispose(arg) {\n if (Iterable.is(arg)) {\n let errors = [];\n for (const d of arg) {\n if (d) {\n try {\n d.dispose();\n }\n catch (e) {\n errors.push(e);\n }\n }\n }\n if (errors.length === 1) {\n throw errors[0];\n }\n else if (errors.length > 1) {\n throw new MultiDisposeError(errors);\n }\n return Array.isArray(arg) ? [] : arg;\n }\n else if (arg) {\n arg.dispose();\n return arg;\n }\n}\nexport function combinedDisposable(...disposables) {\n const parent = toDisposable(() => dispose(disposables));\n setParentOfDisposables(disposables, parent);\n return parent;\n}\nexport function toDisposable(fn) {\n const self = trackDisposable({\n dispose: once(() => {\n markAsDisposed(self);\n fn();\n })\n });\n return self;\n}\nexport class DisposableStore {\n constructor() {\n this._toDispose = new Set();\n this._isDisposed = false;\n trackDisposable(this);\n }\n /**\n * Dispose of all registered disposables and mark this object as disposed.\n *\n * Any future disposables added to this object will be disposed of on `add`.\n */\n dispose() {\n if (this._isDisposed) {\n return;\n }\n markAsDisposed(this);\n this._isDisposed = true;\n this.clear();\n }\n /**\n * Dispose of all registered disposables but do not mark this object as disposed.\n */\n clear() {\n try {\n dispose(this._toDispose.values());\n }\n finally {\n this._toDispose.clear();\n }\n }\n add(o) {\n if (!o) {\n return o;\n }\n if (o === this) {\n throw new Error('Cannot register a disposable on itself!');\n }\n setParentOfDisposable(o, this);\n if (this._isDisposed) {\n if (!DisposableStore.DISABLE_DISPOSED_WARNING) {\n console.warn(new Error('Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!').stack);\n }\n }\n else {\n this._toDispose.add(o);\n }\n return o;\n }\n}\nDisposableStore.DISABLE_DISPOSED_WARNING = false;\nexport class Disposable {\n constructor() {\n this._store = new DisposableStore();\n trackDisposable(this);\n setParentOfDisposable(this._store, this);\n }\n dispose() {\n markAsDisposed(this);\n this._store.dispose();\n }\n _register(o) {\n if (o === this) {\n throw new Error('Cannot register a disposable on itself!');\n }\n return this._store.add(o);\n }\n}\nDisposable.None = Object.freeze({ dispose() { } });\n/**\n * Manages the lifecycle of a disposable value that may be changed.\n *\n * This ensures that when the disposable value is changed, the previously held disposable is disposed of. You can\n * also register a `MutableDisposable` on a `Disposable` to ensure it is automatically cleaned up.\n */\nexport class MutableDisposable {\n constructor() {\n this._isDisposed = false;\n trackDisposable(this);\n }\n get value() {\n return this._isDisposed ? undefined : this._value;\n }\n set value(value) {\n var _a;\n if (this._isDisposed || value === this._value) {\n return;\n }\n (_a = this._value) === null || _a === void 0 ? void 0 : _a.dispose();\n if (value) {\n setParentOfDisposable(value, this);\n }\n this._value = value;\n }\n clear() {\n this.value = undefined;\n }\n dispose() {\n var _a;\n this._isDisposed = true;\n markAsDisposed(this);\n (_a = this._value) === null || _a === void 0 ? void 0 : _a.dispose();\n this._value = undefined;\n }\n /**\n * Clears the value, but does not dispose it.\n * The old value is returned.\n */\n clearAndLeak() {\n const oldValue = this._value;\n this._value = undefined;\n if (oldValue) {\n setParentOfDisposable(oldValue, null);\n }\n return oldValue;\n }\n}\nexport class ImmortalReference {\n constructor(object) {\n this.object = object;\n }\n dispose() { }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass Node {\n constructor(element) {\n this.element = element;\n this.next = Node.Undefined;\n this.prev = Node.Undefined;\n }\n}\nNode.Undefined = new Node(undefined);\nexport class LinkedList {\n constructor() {\n this._first = Node.Undefined;\n this._last = Node.Undefined;\n this._size = 0;\n }\n get size() {\n return this._size;\n }\n isEmpty() {\n return this._first === Node.Undefined;\n }\n clear() {\n let node = this._first;\n while (node !== Node.Undefined) {\n const next = node.next;\n node.prev = Node.Undefined;\n node.next = Node.Undefined;\n node = next;\n }\n this._first = Node.Undefined;\n this._last = Node.Undefined;\n this._size = 0;\n }\n unshift(element) {\n return this._insert(element, false);\n }\n push(element) {\n return this._insert(element, true);\n }\n _insert(element, atTheEnd) {\n const newNode = new Node(element);\n if (this._first === Node.Undefined) {\n this._first = newNode;\n this._last = newNode;\n }\n else if (atTheEnd) {\n // push\n const oldLast = this._last;\n this._last = newNode;\n newNode.prev = oldLast;\n oldLast.next = newNode;\n }\n else {\n // unshift\n const oldFirst = this._first;\n this._first = newNode;\n newNode.next = oldFirst;\n oldFirst.prev = newNode;\n }\n this._size += 1;\n let didRemove = false;\n return () => {\n if (!didRemove) {\n didRemove = true;\n this._remove(newNode);\n }\n };\n }\n shift() {\n if (this._first === Node.Undefined) {\n return undefined;\n }\n else {\n const res = this._first.element;\n this._remove(this._first);\n return res;\n }\n }\n pop() {\n if (this._last === Node.Undefined) {\n return undefined;\n }\n else {\n const res = this._last.element;\n this._remove(this._last);\n return res;\n }\n }\n _remove(node) {\n if (node.prev !== Node.Undefined && node.next !== Node.Undefined) {\n // middle\n const anchor = node.prev;\n anchor.next = node.next;\n node.next.prev = anchor;\n }\n else if (node.prev === Node.Undefined && node.next === Node.Undefined) {\n // only node\n this._first = Node.Undefined;\n this._last = Node.Undefined;\n }\n else if (node.next === Node.Undefined) {\n // last\n this._last = this._last.prev;\n this._last.next = Node.Undefined;\n }\n else if (node.prev === Node.Undefined) {\n // first\n this._first = this._first.next;\n this._first.prev = Node.Undefined;\n }\n // done\n this._size -= 1;\n }\n *[Symbol.iterator]() {\n let node = this._first;\n while (node !== Node.Undefined) {\n yield node.element;\n node = node.next;\n }\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { globals } from './platform.js';\nconst hasPerformanceNow = (globals.performance && typeof globals.performance.now === 'function');\nexport class StopWatch {\n constructor(highResolution) {\n this._highResolution = hasPerformanceNow && highResolution;\n this._startTime = this._now();\n this._stopTime = -1;\n }\n static create(highResolution = true) {\n return new StopWatch(highResolution);\n }\n stop() {\n this._stopTime = this._now();\n }\n elapsed() {\n if (this._stopTime !== -1) {\n return this._stopTime - this._startTime;\n }\n return this._now() - this._startTime;\n }\n _now() {\n return this._highResolution ? globals.performance.now() : Date.now();\n }\n}\n","import { onUnexpectedError } from './errors.js';\nimport { combinedDisposable, Disposable, DisposableStore, toDisposable } from './lifecycle.js';\nimport { LinkedList } from './linkedList.js';\nimport { StopWatch } from './stopwatch.js';\nexport var Event;\n(function (Event) {\n Event.None = () => Disposable.None;\n /**\n * Given an event, returns another event which only fires once.\n */\n function once(event) {\n return (listener, thisArgs = null, disposables) => {\n // we need this, in case the event fires during the listener call\n let didFire = false;\n let result;\n result = event(e => {\n if (didFire) {\n return;\n }\n else if (result) {\n result.dispose();\n }\n else {\n didFire = true;\n }\n return listener.call(thisArgs, e);\n }, null, disposables);\n if (didFire) {\n result.dispose();\n }\n return result;\n };\n }\n Event.once = once;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function map(event, map) {\n return snapshot((listener, thisArgs = null, disposables) => event(i => listener.call(thisArgs, map(i)), null, disposables));\n }\n Event.map = map;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function forEach(event, each) {\n return snapshot((listener, thisArgs = null, disposables) => event(i => { each(i); listener.call(thisArgs, i); }, null, disposables));\n }\n Event.forEach = forEach;\n function filter(event, filter) {\n return snapshot((listener, thisArgs = null, disposables) => event(e => filter(e) && listener.call(thisArgs, e), null, disposables));\n }\n Event.filter = filter;\n /**\n * Given an event, returns the same event but typed as `Event`.\n */\n function signal(event) {\n return event;\n }\n Event.signal = signal;\n function any(...events) {\n return (listener, thisArgs = null, disposables) => combinedDisposable(...events.map(event => event(e => listener.call(thisArgs, e), null, disposables)));\n }\n Event.any = any;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function reduce(event, merge, initial) {\n let output = initial;\n return map(event, e => {\n output = merge(output, e);\n return output;\n });\n }\n Event.reduce = reduce;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function snapshot(event) {\n let listener;\n const emitter = new Emitter({\n onFirstListenerAdd() {\n listener = event(emitter.fire, emitter);\n },\n onLastListenerRemove() {\n listener.dispose();\n }\n });\n return emitter.event;\n }\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function debounce(event, merge, delay = 100, leading = false, leakWarningThreshold) {\n let subscription;\n let output = undefined;\n let handle = undefined;\n let numDebouncedCalls = 0;\n const emitter = new Emitter({\n leakWarningThreshold,\n onFirstListenerAdd() {\n subscription = event(cur => {\n numDebouncedCalls++;\n output = merge(output, cur);\n if (leading && !handle) {\n emitter.fire(output);\n output = undefined;\n }\n clearTimeout(handle);\n handle = setTimeout(() => {\n const _output = output;\n output = undefined;\n handle = undefined;\n if (!leading || numDebouncedCalls > 1) {\n emitter.fire(_output);\n }\n numDebouncedCalls = 0;\n }, delay);\n });\n },\n onLastListenerRemove() {\n subscription.dispose();\n }\n });\n return emitter.event;\n }\n Event.debounce = debounce;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function latch(event, equals = (a, b) => a === b) {\n let firstCall = true;\n let cache;\n return filter(event, value => {\n const shouldEmit = firstCall || !equals(value, cache);\n firstCall = false;\n cache = value;\n return shouldEmit;\n });\n }\n Event.latch = latch;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function split(event, isT) {\n return [\n Event.filter(event, isT),\n Event.filter(event, e => !isT(e)),\n ];\n }\n Event.split = split;\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function buffer(event, nextTick = false, _buffer = []) {\n let buffer = _buffer.slice();\n let listener = event(e => {\n if (buffer) {\n buffer.push(e);\n }\n else {\n emitter.fire(e);\n }\n });\n const flush = () => {\n if (buffer) {\n buffer.forEach(e => emitter.fire(e));\n }\n buffer = null;\n };\n const emitter = new Emitter({\n onFirstListenerAdd() {\n if (!listener) {\n listener = event(e => emitter.fire(e));\n }\n },\n onFirstListenerDidAdd() {\n if (buffer) {\n if (nextTick) {\n setTimeout(flush);\n }\n else {\n flush();\n }\n }\n },\n onLastListenerRemove() {\n if (listener) {\n listener.dispose();\n }\n listener = null;\n }\n });\n return emitter.event;\n }\n Event.buffer = buffer;\n class ChainableEvent {\n constructor(event) {\n this.event = event;\n }\n map(fn) {\n return new ChainableEvent(map(this.event, fn));\n }\n forEach(fn) {\n return new ChainableEvent(forEach(this.event, fn));\n }\n filter(fn) {\n return new ChainableEvent(filter(this.event, fn));\n }\n reduce(merge, initial) {\n return new ChainableEvent(reduce(this.event, merge, initial));\n }\n latch() {\n return new ChainableEvent(latch(this.event));\n }\n debounce(merge, delay = 100, leading = false, leakWarningThreshold) {\n return new ChainableEvent(debounce(this.event, merge, delay, leading, leakWarningThreshold));\n }\n on(listener, thisArgs, disposables) {\n return this.event(listener, thisArgs, disposables);\n }\n once(listener, thisArgs, disposables) {\n return once(this.event)(listener, thisArgs, disposables);\n }\n }\n /**\n * @deprecated DO NOT use, this leaks memory\n */\n function chain(event) {\n return new ChainableEvent(event);\n }\n Event.chain = chain;\n function fromNodeEventEmitter(emitter, eventName, map = id => id) {\n const fn = (...args) => result.fire(map(...args));\n const onFirstListenerAdd = () => emitter.on(eventName, fn);\n const onLastListenerRemove = () => emitter.removeListener(eventName, fn);\n const result = new Emitter({ onFirstListenerAdd, onLastListenerRemove });\n return result.event;\n }\n Event.fromNodeEventEmitter = fromNodeEventEmitter;\n function fromDOMEventEmitter(emitter, eventName, map = id => id) {\n const fn = (...args) => result.fire(map(...args));\n const onFirstListenerAdd = () => emitter.addEventListener(eventName, fn);\n const onLastListenerRemove = () => emitter.removeEventListener(eventName, fn);\n const result = new Emitter({ onFirstListenerAdd, onLastListenerRemove });\n return result.event;\n }\n Event.fromDOMEventEmitter = fromDOMEventEmitter;\n function toPromise(event) {\n return new Promise(resolve => once(event)(resolve));\n }\n Event.toPromise = toPromise;\n})(Event || (Event = {}));\nclass EventProfiling {\n constructor(name) {\n this._listenerCount = 0;\n this._invocationCount = 0;\n this._elapsedOverall = 0;\n this._name = `${name}_${EventProfiling._idPool++}`;\n }\n start(listenerCount) {\n this._stopWatch = new StopWatch(true);\n this._listenerCount = listenerCount;\n }\n stop() {\n if (this._stopWatch) {\n const elapsed = this._stopWatch.elapsed();\n this._elapsedOverall += elapsed;\n this._invocationCount += 1;\n console.info(`did FIRE ${this._name}: elapsed_ms: ${elapsed.toFixed(5)}, listener: ${this._listenerCount} (elapsed_overall: ${this._elapsedOverall.toFixed(2)}, invocations: ${this._invocationCount})`);\n this._stopWatch = undefined;\n }\n }\n}\nEventProfiling._idPool = 0;\nlet _globalLeakWarningThreshold = -1;\nclass LeakageMonitor {\n constructor(customThreshold, name = Math.random().toString(18).slice(2, 5)) {\n this.customThreshold = customThreshold;\n this.name = name;\n this._warnCountdown = 0;\n }\n dispose() {\n if (this._stacks) {\n this._stacks.clear();\n }\n }\n check(listenerCount) {\n let threshold = _globalLeakWarningThreshold;\n if (typeof this.customThreshold === 'number') {\n threshold = this.customThreshold;\n }\n if (threshold <= 0 || listenerCount < threshold) {\n return undefined;\n }\n if (!this._stacks) {\n this._stacks = new Map();\n }\n const stack = new Error().stack.split('\\n').slice(3).join('\\n');\n const count = (this._stacks.get(stack) || 0);\n this._stacks.set(stack, count + 1);\n this._warnCountdown -= 1;\n if (this._warnCountdown <= 0) {\n // only warn on first exceed and then every time the limit\n // is exceeded by 50% again\n this._warnCountdown = threshold * 0.5;\n // find most frequent listener and print warning\n let topStack;\n let topCount = 0;\n for (const [stack, count] of this._stacks) {\n if (!topStack || topCount < count) {\n topStack = stack;\n topCount = count;\n }\n }\n console.warn(`[${this.name}] potential listener LEAK detected, having ${listenerCount} listeners already. MOST frequent listener (${topCount}):`);\n console.warn(topStack);\n }\n return () => {\n const count = (this._stacks.get(stack) || 0);\n this._stacks.set(stack, count - 1);\n };\n }\n}\n/**\n * The Emitter can be used to expose an Event to the public\n * to fire it from the insides.\n * Sample:\n class Document {\n\n private readonly _onDidChange = new Emitter<(value:string)=>any>();\n\n public onDidChange = this._onDidChange.event;\n\n // getter-style\n // get onDidChange(): Event<(value:string)=>any> {\n // \treturn this._onDidChange.event;\n // }\n\n private _doIt() {\n //...\n this._onDidChange.fire(value);\n }\n }\n */\nexport class Emitter {\n constructor(options) {\n var _a;\n this._disposed = false;\n this._options = options;\n this._leakageMon = _globalLeakWarningThreshold > 0 ? new LeakageMonitor(this._options && this._options.leakWarningThreshold) : undefined;\n this._perfMon = ((_a = this._options) === null || _a === void 0 ? void 0 : _a._profName) ? new EventProfiling(this._options._profName) : undefined;\n }\n /**\n * For the public to allow to subscribe\n * to events from this Emitter\n */\n get event() {\n if (!this._event) {\n this._event = (listener, thisArgs, disposables) => {\n var _a;\n if (!this._listeners) {\n this._listeners = new LinkedList();\n }\n const firstListener = this._listeners.isEmpty();\n if (firstListener && this._options && this._options.onFirstListenerAdd) {\n this._options.onFirstListenerAdd(this);\n }\n const remove = this._listeners.push(!thisArgs ? listener : [listener, thisArgs]);\n if (firstListener && this._options && this._options.onFirstListenerDidAdd) {\n this._options.onFirstListenerDidAdd(this);\n }\n if (this._options && this._options.onListenerDidAdd) {\n this._options.onListenerDidAdd(this, listener, thisArgs);\n }\n // check and record this emitter for potential leakage\n const removeMonitor = (_a = this._leakageMon) === null || _a === void 0 ? void 0 : _a.check(this._listeners.size);\n const result = toDisposable(() => {\n if (removeMonitor) {\n removeMonitor();\n }\n if (!this._disposed) {\n remove();\n if (this._options && this._options.onLastListenerRemove) {\n const hasListeners = (this._listeners && !this._listeners.isEmpty());\n if (!hasListeners) {\n this._options.onLastListenerRemove(this);\n }\n }\n }\n });\n if (disposables instanceof DisposableStore) {\n disposables.add(result);\n }\n else if (Array.isArray(disposables)) {\n disposables.push(result);\n }\n return result;\n };\n }\n return this._event;\n }\n /**\n * To be kept private to fire an event to\n * subscribers\n */\n fire(event) {\n var _a, _b;\n if (this._listeners) {\n // put all [listener,event]-pairs into delivery queue\n // then emit all event. an inner/nested event might be\n // the driver of this\n if (!this._deliveryQueue) {\n this._deliveryQueue = new LinkedList();\n }\n for (let listener of this._listeners) {\n this._deliveryQueue.push([listener, event]);\n }\n // start/stop performance insight collection\n (_a = this._perfMon) === null || _a === void 0 ? void 0 : _a.start(this._deliveryQueue.size);\n while (this._deliveryQueue.size > 0) {\n const [listener, event] = this._deliveryQueue.shift();\n try {\n if (typeof listener === 'function') {\n listener.call(undefined, event);\n }\n else {\n listener[0].call(listener[1], event);\n }\n }\n catch (e) {\n onUnexpectedError(e);\n }\n }\n (_b = this._perfMon) === null || _b === void 0 ? void 0 : _b.stop();\n }\n }\n dispose() {\n var _a, _b, _c, _d, _e;\n if (!this._disposed) {\n this._disposed = true;\n (_a = this._listeners) === null || _a === void 0 ? void 0 : _a.clear();\n (_b = this._deliveryQueue) === null || _b === void 0 ? void 0 : _b.clear();\n (_d = (_c = this._options) === null || _c === void 0 ? void 0 : _c.onLastListenerRemove) === null || _d === void 0 ? void 0 : _d.call(_c);\n (_e = this._leakageMon) === null || _e === void 0 ? void 0 : _e.dispose();\n }\n }\n}\nexport class PauseableEmitter extends Emitter {\n constructor(options) {\n super(options);\n this._isPaused = 0;\n this._eventQueue = new LinkedList();\n this._mergeFn = options === null || options === void 0 ? void 0 : options.merge;\n }\n pause() {\n this._isPaused++;\n }\n resume() {\n if (this._isPaused !== 0 && --this._isPaused === 0) {\n if (this._mergeFn) {\n // use the merge function to create a single composite\n // event. make a copy in case firing pauses this emitter\n const events = Array.from(this._eventQueue);\n this._eventQueue.clear();\n super.fire(this._mergeFn(events));\n }\n else {\n // no merging, fire each event individually and test\n // that this emitter isn't paused halfway through\n while (!this._isPaused && this._eventQueue.size !== 0) {\n super.fire(this._eventQueue.shift());\n }\n }\n }\n }\n fire(event) {\n if (this._listeners) {\n if (this._isPaused !== 0) {\n this._eventQueue.push(event);\n }\n else {\n super.fire(event);\n }\n }\n }\n}\nexport class DebounceEmitter extends PauseableEmitter {\n constructor(options) {\n var _a;\n super(options);\n this._delay = (_a = options.delay) !== null && _a !== void 0 ? _a : 100;\n }\n fire(event) {\n if (!this._handle) {\n this.pause();\n this._handle = setTimeout(() => {\n this._handle = undefined;\n this.resume();\n }, this._delay);\n }\n super.fire(event);\n }\n}\n/**\n * The EventBufferer is useful in situations in which you want\n * to delay firing your events during some code.\n * You can wrap that code and be sure that the event will not\n * be fired during that wrap.\n *\n * ```\n * const emitter: Emitter;\n * const delayer = new EventDelayer();\n * const delayedEvent = delayer.wrapEvent(emitter.event);\n *\n * delayedEvent(console.log);\n *\n * delayer.bufferEvents(() => {\n * emitter.fire(); // event will not be fired yet\n * });\n *\n * // event will only be fired at this point\n * ```\n */\nexport class EventBufferer {\n constructor() {\n this.buffers = [];\n }\n wrapEvent(event) {\n return (listener, thisArgs, disposables) => {\n return event(i => {\n const buffer = this.buffers[this.buffers.length - 1];\n if (buffer) {\n buffer.push(() => listener.call(thisArgs, i));\n }\n else {\n listener.call(thisArgs, i);\n }\n }, undefined, disposables);\n };\n }\n bufferEvents(fn) {\n const buffer = [];\n this.buffers.push(buffer);\n const r = fn();\n this.buffers.pop();\n buffer.forEach(flush => flush());\n return r;\n }\n}\n/**\n * A Relay is an event forwarder which functions as a replugabble event pipe.\n * Once created, you can connect an input event to it and it will simply forward\n * events from that input event through its own `event` property. The `input`\n * can be changed at any point in time.\n */\nexport class Relay {\n constructor() {\n this.listening = false;\n this.inputEvent = Event.None;\n this.inputEventListener = Disposable.None;\n this.emitter = new Emitter({\n onFirstListenerDidAdd: () => {\n this.listening = true;\n this.inputEventListener = this.inputEvent(this.emitter.fire, this.emitter);\n },\n onLastListenerRemove: () => {\n this.listening = false;\n this.inputEventListener.dispose();\n }\n });\n this.event = this.emitter.event;\n }\n set input(event) {\n this.inputEvent = event;\n if (this.listening) {\n this.inputEventListener.dispose();\n this.inputEventListener = event(this.emitter.fire, this.emitter);\n }\n }\n dispose() {\n this.inputEventListener.dispose();\n this.emitter.dispose();\n }\n}\n","/**\n * @returns whether the provided parameter is a JavaScript Array or not.\n */\nexport function isArray(array) {\n return Array.isArray(array);\n}\n/**\n * @returns whether the provided parameter is a JavaScript String or not.\n */\nexport function isString(str) {\n return (typeof str === 'string');\n}\n/**\n *\n * @returns whether the provided parameter is of type `object` but **not**\n *\t`null`, an `array`, a `regexp`, nor a `date`.\n */\nexport function isObject(obj) {\n // The method can't do a type cast since there are type (like strings) which\n // are subclasses of any put not positvely matched by the function. Hence type\n // narrowing results in wrong results.\n return typeof obj === 'object'\n && obj !== null\n && !Array.isArray(obj)\n && !(obj instanceof RegExp)\n && !(obj instanceof Date);\n}\n/**\n * In **contrast** to just checking `typeof` this will return `false` for `NaN`.\n * @returns whether the provided parameter is a JavaScript Number or not.\n */\nexport function isNumber(obj) {\n return (typeof obj === 'number' && !isNaN(obj));\n}\n/**\n * @returns whether the provided parameter is a JavaScript Boolean or not.\n */\nexport function isBoolean(obj) {\n return (obj === true || obj === false);\n}\n/**\n * @returns whether the provided parameter is undefined.\n */\nexport function isUndefined(obj) {\n return (typeof obj === 'undefined');\n}\n/**\n * @returns whether the provided parameter is defined.\n */\nexport function isDefined(arg) {\n return !isUndefinedOrNull(arg);\n}\n/**\n * @returns whether the provided parameter is undefined or null.\n */\nexport function isUndefinedOrNull(obj) {\n return (isUndefined(obj) || obj === null);\n}\nexport function assertType(condition, type) {\n if (!condition) {\n throw new Error(type ? `Unexpected type, expected '${type}'` : 'Unexpected type');\n }\n}\n/**\n * Asserts that the argument passed in is neither undefined nor null.\n */\nexport function assertIsDefined(arg) {\n if (isUndefinedOrNull(arg)) {\n throw new Error('Assertion Failed: argument is undefined or null');\n }\n return arg;\n}\n/**\n * @returns whether the provided parameter is a JavaScript Function or not.\n */\nexport function isFunction(obj) {\n return (typeof obj === 'function');\n}\nexport function validateConstraints(args, constraints) {\n const len = Math.min(args.length, constraints.length);\n for (let i = 0; i < len; i++) {\n validateConstraint(args[i], constraints[i]);\n }\n}\nexport function validateConstraint(arg, constraint) {\n if (isString(constraint)) {\n if (typeof arg !== constraint) {\n throw new Error(`argument does not match constraint: typeof ${constraint}`);\n }\n }\n else if (isFunction(constraint)) {\n try {\n if (arg instanceof constraint) {\n return;\n }\n }\n catch (_a) {\n // ignore\n }\n if (!isUndefinedOrNull(arg) && arg.constructor === constraint) {\n return;\n }\n if (constraint.length === 1 && constraint.call(undefined, arg) === true) {\n return;\n }\n throw new Error(`argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true`);\n }\n}\nexport function getAllPropertyNames(obj) {\n let res = [];\n let proto = Object.getPrototypeOf(obj);\n while (Object.prototype !== proto) {\n res = res.concat(Object.getOwnPropertyNames(proto));\n proto = Object.getPrototypeOf(proto);\n }\n return res;\n}\nexport function getAllMethodNames(obj) {\n const methods = [];\n for (const prop of getAllPropertyNames(obj)) {\n if (typeof obj[prop] === 'function') {\n methods.push(prop);\n }\n }\n return methods;\n}\nexport function createProxyObject(methodNames, invoke) {\n const createProxyMethod = (method) => {\n return function () {\n const args = Array.prototype.slice.call(arguments, 0);\n return invoke(method, args);\n };\n };\n let result = {};\n for (const methodName of methodNames) {\n result[methodName] = createProxyMethod(methodName);\n }\n return result;\n}\n/**\n * Converts null to undefined, passes all other values through.\n */\nexport function withNullAsUndefined(x) {\n return x === null ? undefined : x;\n}\nexport function assertNever(value, message = 'Unreachable') {\n throw new Error(message);\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport function isFalsyOrWhitespace(str) {\n if (!str || typeof str !== 'string') {\n return true;\n }\n return str.trim().length === 0;\n}\nconst _formatRegexp = /{(\\d+)}/g;\n/**\n * Helper to produce a string with a variable number of arguments. Insert variable segments\n * into the string using the {n} notation where N is the index of the argument following the string.\n * @param value string to which formatting is applied\n * @param args replacements for {n}-entries\n */\nexport function format(value, ...args) {\n if (args.length === 0) {\n return value;\n }\n return value.replace(_formatRegexp, function (match, group) {\n const idx = parseInt(group, 10);\n return isNaN(idx) || idx < 0 || idx >= args.length ?\n match :\n args[idx];\n });\n}\n/**\n * Converts HTML characters inside the string to use entities instead. Makes the string safe from\n * being used e.g. in HTMLElement.innerHTML.\n */\nexport function escape(html) {\n return html.replace(/[<>&]/g, function (match) {\n switch (match) {\n case '<': return '<';\n case '>': return '>';\n case '&': return '&';\n default: return match;\n }\n });\n}\n/**\n * Escapes regular expression characters in a given string\n */\nexport function escapeRegExpCharacters(value) {\n return value.replace(/[\\\\\\{\\}\\*\\+\\?\\|\\^\\$\\.\\[\\]\\(\\)]/g, '\\\\$&');\n}\n/**\n * Removes all occurrences of needle from the beginning and end of haystack.\n * @param haystack string to trim\n * @param needle the thing to trim (default is a blank)\n */\nexport function trim(haystack, needle = ' ') {\n const trimmed = ltrim(haystack, needle);\n return rtrim(trimmed, needle);\n}\n/**\n * Removes all occurrences of needle from the beginning of haystack.\n * @param haystack string to trim\n * @param needle the thing to trim\n */\nexport function ltrim(haystack, needle) {\n if (!haystack || !needle) {\n return haystack;\n }\n const needleLen = needle.length;\n if (needleLen === 0 || haystack.length === 0) {\n return haystack;\n }\n let offset = 0;\n while (haystack.indexOf(needle, offset) === offset) {\n offset = offset + needleLen;\n }\n return haystack.substring(offset);\n}\n/**\n * Removes all occurrences of needle from the end of haystack.\n * @param haystack string to trim\n * @param needle the thing to trim\n */\nexport function rtrim(haystack, needle) {\n if (!haystack || !needle) {\n return haystack;\n }\n const needleLen = needle.length, haystackLen = haystack.length;\n if (needleLen === 0 || haystackLen === 0) {\n return haystack;\n }\n let offset = haystackLen, idx = -1;\n while (true) {\n idx = haystack.lastIndexOf(needle, offset - 1);\n if (idx === -1 || idx + needleLen !== offset) {\n break;\n }\n if (idx === 0) {\n return '';\n }\n offset = idx;\n }\n return haystack.substring(0, offset);\n}\nexport function convertSimple2RegExpPattern(pattern) {\n return pattern.replace(/[\\-\\\\\\{\\}\\+\\?\\|\\^\\$\\.\\,\\[\\]\\(\\)\\#\\s]/g, '\\\\$&').replace(/[\\*]/g, '.*');\n}\nexport function stripWildcards(pattern) {\n return pattern.replace(/\\*/g, '');\n}\nexport function createRegExp(searchString, isRegex, options = {}) {\n if (!searchString) {\n throw new Error('Cannot create regex from empty string');\n }\n if (!isRegex) {\n searchString = escapeRegExpCharacters(searchString);\n }\n if (options.wholeWord) {\n if (!/\\B/.test(searchString.charAt(0))) {\n searchString = '\\\\b' + searchString;\n }\n if (!/\\B/.test(searchString.charAt(searchString.length - 1))) {\n searchString = searchString + '\\\\b';\n }\n }\n let modifiers = '';\n if (options.global) {\n modifiers += 'g';\n }\n if (!options.matchCase) {\n modifiers += 'i';\n }\n if (options.multiline) {\n modifiers += 'm';\n }\n if (options.unicode) {\n modifiers += 'u';\n }\n return new RegExp(searchString, modifiers);\n}\nexport function regExpLeadsToEndlessLoop(regexp) {\n // Exit early if it's one of these special cases which are meant to match\n // against an empty string\n if (regexp.source === '^' || regexp.source === '^$' || regexp.source === '$' || regexp.source === '^\\\\s*$') {\n return false;\n }\n // We check against an empty string. If the regular expression doesn't advance\n // (e.g. ends in an endless loop) it will match an empty string.\n const match = regexp.exec('');\n return !!(match && regexp.lastIndex === 0);\n}\nexport function regExpFlags(regexp) {\n return (regexp.global ? 'g' : '')\n + (regexp.ignoreCase ? 'i' : '')\n + (regexp.multiline ? 'm' : '')\n + (regexp /* standalone editor compilation */.unicode ? 'u' : '');\n}\nexport function splitLines(str) {\n return str.split(/\\r\\n|\\r|\\n/);\n}\n/**\n * Returns first index of the string that is not whitespace.\n * If string is empty or contains only whitespaces, returns -1\n */\nexport function firstNonWhitespaceIndex(str) {\n for (let i = 0, len = str.length; i < len; i++) {\n const chCode = str.charCodeAt(i);\n if (chCode !== 32 /* Space */ && chCode !== 9 /* Tab */) {\n return i;\n }\n }\n return -1;\n}\n/**\n * Returns the leading whitespace of the string.\n * If the string contains only whitespaces, returns entire string\n */\nexport function getLeadingWhitespace(str, start = 0, end = str.length) {\n for (let i = start; i < end; i++) {\n const chCode = str.charCodeAt(i);\n if (chCode !== 32 /* Space */ && chCode !== 9 /* Tab */) {\n return str.substring(start, i);\n }\n }\n return str.substring(start, end);\n}\n/**\n * Returns last index of the string that is not whitespace.\n * If string is empty or contains only whitespaces, returns -1\n */\nexport function lastNonWhitespaceIndex(str, startIndex = str.length - 1) {\n for (let i = startIndex; i >= 0; i--) {\n const chCode = str.charCodeAt(i);\n if (chCode !== 32 /* Space */ && chCode !== 9 /* Tab */) {\n return i;\n }\n }\n return -1;\n}\nexport function compare(a, b) {\n if (a < b) {\n return -1;\n }\n else if (a > b) {\n return 1;\n }\n else {\n return 0;\n }\n}\nexport function compareSubstring(a, b, aStart = 0, aEnd = a.length, bStart = 0, bEnd = b.length) {\n for (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n let codeA = a.charCodeAt(aStart);\n let codeB = b.charCodeAt(bStart);\n if (codeA < codeB) {\n return -1;\n }\n else if (codeA > codeB) {\n return 1;\n }\n }\n const aLen = aEnd - aStart;\n const bLen = bEnd - bStart;\n if (aLen < bLen) {\n return -1;\n }\n else if (aLen > bLen) {\n return 1;\n }\n return 0;\n}\nexport function compareIgnoreCase(a, b) {\n return compareSubstringIgnoreCase(a, b, 0, a.length, 0, b.length);\n}\nexport function compareSubstringIgnoreCase(a, b, aStart = 0, aEnd = a.length, bStart = 0, bEnd = b.length) {\n for (; aStart < aEnd && bStart < bEnd; aStart++, bStart++) {\n let codeA = a.charCodeAt(aStart);\n let codeB = b.charCodeAt(bStart);\n if (codeA === codeB) {\n // equal\n continue;\n }\n if (codeA >= 128 || codeB >= 128) {\n // not ASCII letters -> fallback to lower-casing strings\n return compareSubstring(a.toLowerCase(), b.toLowerCase(), aStart, aEnd, bStart, bEnd);\n }\n // mapper lower-case ascii letter onto upper-case varinats\n // [97-122] (lower ascii) --> [65-90] (upper ascii)\n if (isLowerAsciiLetter(codeA)) {\n codeA -= 32;\n }\n if (isLowerAsciiLetter(codeB)) {\n codeB -= 32;\n }\n // compare both code points\n const diff = codeA - codeB;\n if (diff === 0) {\n continue;\n }\n return diff;\n }\n const aLen = aEnd - aStart;\n const bLen = bEnd - bStart;\n if (aLen < bLen) {\n return -1;\n }\n else if (aLen > bLen) {\n return 1;\n }\n return 0;\n}\nexport function isLowerAsciiLetter(code) {\n return code >= 97 /* a */ && code <= 122 /* z */;\n}\nexport function isUpperAsciiLetter(code) {\n return code >= 65 /* A */ && code <= 90 /* Z */;\n}\nexport function equalsIgnoreCase(a, b) {\n return a.length === b.length && compareSubstringIgnoreCase(a, b) === 0;\n}\nexport function startsWithIgnoreCase(str, candidate) {\n const candidateLength = candidate.length;\n if (candidate.length > str.length) {\n return false;\n }\n return compareSubstringIgnoreCase(str, candidate, 0, candidateLength) === 0;\n}\n/**\n * @returns the length of the common prefix of the two strings.\n */\nexport function commonPrefixLength(a, b) {\n let i, len = Math.min(a.length, b.length);\n for (i = 0; i < len; i++) {\n if (a.charCodeAt(i) !== b.charCodeAt(i)) {\n return i;\n }\n }\n return len;\n}\n/**\n * @returns the length of the common suffix of the two strings.\n */\nexport function commonSuffixLength(a, b) {\n let i, len = Math.min(a.length, b.length);\n const aLastIndex = a.length - 1;\n const bLastIndex = b.length - 1;\n for (i = 0; i < len; i++) {\n if (a.charCodeAt(aLastIndex - i) !== b.charCodeAt(bLastIndex - i)) {\n return i;\n }\n }\n return len;\n}\n/**\n * See http://en.wikipedia.org/wiki/Surrogate_pair\n */\nexport function isHighSurrogate(charCode) {\n return (0xD800 <= charCode && charCode <= 0xDBFF);\n}\n/**\n * See http://en.wikipedia.org/wiki/Surrogate_pair\n */\nexport function isLowSurrogate(charCode) {\n return (0xDC00 <= charCode && charCode <= 0xDFFF);\n}\n/**\n * See http://en.wikipedia.org/wiki/Surrogate_pair\n */\nexport function computeCodePoint(highSurrogate, lowSurrogate) {\n return ((highSurrogate - 0xD800) << 10) + (lowSurrogate - 0xDC00) + 0x10000;\n}\n/**\n * get the code point that begins at offset `offset`\n */\nexport function getNextCodePoint(str, len, offset) {\n const charCode = str.charCodeAt(offset);\n if (isHighSurrogate(charCode) && offset + 1 < len) {\n const nextCharCode = str.charCodeAt(offset + 1);\n if (isLowSurrogate(nextCharCode)) {\n return computeCodePoint(charCode, nextCharCode);\n }\n }\n return charCode;\n}\n/**\n * get the code point that ends right before offset `offset`\n */\nfunction getPrevCodePoint(str, offset) {\n const charCode = str.charCodeAt(offset - 1);\n if (isLowSurrogate(charCode) && offset > 1) {\n const prevCharCode = str.charCodeAt(offset - 2);\n if (isHighSurrogate(prevCharCode)) {\n return computeCodePoint(prevCharCode, charCode);\n }\n }\n return charCode;\n}\nexport function nextCharLength(str, offset) {\n const graphemeBreakTree = GraphemeBreakTree.getInstance();\n const initialOffset = offset;\n const len = str.length;\n const initialCodePoint = getNextCodePoint(str, len, offset);\n offset += (initialCodePoint >= 65536 /* UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1);\n let graphemeBreakType = graphemeBreakTree.getGraphemeBreakType(initialCodePoint);\n while (offset < len) {\n const nextCodePoint = getNextCodePoint(str, len, offset);\n const nextGraphemeBreakType = graphemeBreakTree.getGraphemeBreakType(nextCodePoint);\n if (breakBetweenGraphemeBreakType(graphemeBreakType, nextGraphemeBreakType)) {\n break;\n }\n offset += (nextCodePoint >= 65536 /* UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1);\n graphemeBreakType = nextGraphemeBreakType;\n }\n return (offset - initialOffset);\n}\nexport function prevCharLength(str, offset) {\n const graphemeBreakTree = GraphemeBreakTree.getInstance();\n const initialOffset = offset;\n const initialCodePoint = getPrevCodePoint(str, offset);\n offset -= (initialCodePoint >= 65536 /* UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1);\n let graphemeBreakType = graphemeBreakTree.getGraphemeBreakType(initialCodePoint);\n while (offset > 0) {\n const prevCodePoint = getPrevCodePoint(str, offset);\n const prevGraphemeBreakType = graphemeBreakTree.getGraphemeBreakType(prevCodePoint);\n if (breakBetweenGraphemeBreakType(prevGraphemeBreakType, graphemeBreakType)) {\n break;\n }\n offset -= (prevCodePoint >= 65536 /* UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1);\n graphemeBreakType = prevGraphemeBreakType;\n }\n return (initialOffset - offset);\n}\n/**\n * Generated using https://github.com/alexdima/unicode-utils/blob/master/generate-rtl-test.js\n */\nconst CONTAINS_RTL = /(?:[\\u05BE\\u05C0\\u05C3\\u05C6\\u05D0-\\u05F4\\u0608\\u060B\\u060D\\u061B-\\u064A\\u066D-\\u066F\\u0671-\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1-\\u07EA\\u07F4\\u07F5\\u07FA-\\u0815\\u081A\\u0824\\u0828\\u0830-\\u0858\\u085E-\\u08BD\\u200F\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFD3D\\uFD50-\\uFDFC\\uFE70-\\uFEFC]|\\uD802[\\uDC00-\\uDD1B\\uDD20-\\uDE00\\uDE10-\\uDE33\\uDE40-\\uDEE4\\uDEEB-\\uDF35\\uDF40-\\uDFFF]|\\uD803[\\uDC00-\\uDCFF]|\\uD83A[\\uDC00-\\uDCCF\\uDD00-\\uDD43\\uDD50-\\uDFFF]|\\uD83B[\\uDC00-\\uDEBB])/;\n/**\n * Returns true if `str` contains any Unicode character that is classified as \"R\" or \"AL\".\n */\nexport function containsRTL(str) {\n return CONTAINS_RTL.test(str);\n}\n/**\n * Generated using https://github.com/alexdima/unicode-utils/blob/master/generate-emoji-test.js\n */\nconst CONTAINS_EMOJI = /(?:[\\u231A\\u231B\\u23F0\\u23F3\\u2600-\\u27BF\\u2B50\\u2B55]|\\uD83C[\\uDDE6-\\uDDFF\\uDF00-\\uDFFF]|\\uD83D[\\uDC00-\\uDE4F\\uDE80-\\uDEFC\\uDFE0-\\uDFEB]|\\uD83E[\\uDD00-\\uDDFF\\uDE70-\\uDED6])/;\nexport function containsEmoji(str) {\n return CONTAINS_EMOJI.test(str);\n}\nconst IS_BASIC_ASCII = /^[\\t\\n\\r\\x20-\\x7E]*$/;\n/**\n * Returns true if `str` contains only basic ASCII characters in the range 32 - 126 (including 32 and 126) or \\n, \\r, \\t\n */\nexport function isBasicASCII(str) {\n return IS_BASIC_ASCII.test(str);\n}\nexport const UNUSUAL_LINE_TERMINATORS = /[\\u2028\\u2029]/; // LINE SEPARATOR (LS) or PARAGRAPH SEPARATOR (PS)\n/**\n * Returns true if `str` contains unusual line terminators, like LS or PS\n */\nexport function containsUnusualLineTerminators(str) {\n return UNUSUAL_LINE_TERMINATORS.test(str);\n}\nexport function containsFullWidthCharacter(str) {\n for (let i = 0, len = str.length; i < len; i++) {\n if (isFullWidthCharacter(str.charCodeAt(i))) {\n return true;\n }\n }\n return false;\n}\nexport function isFullWidthCharacter(charCode) {\n // Do a cheap trick to better support wrapping of wide characters, treat them as 2 columns\n // http://jrgraphix.net/research/unicode_blocks.php\n // 2E80 — 2EFF CJK Radicals Supplement\n // 2F00 — 2FDF Kangxi Radicals\n // 2FF0 — 2FFF Ideographic Description Characters\n // 3000 — 303F CJK Symbols and Punctuation\n // 3040 — 309F Hiragana\n // 30A0 — 30FF Katakana\n // 3100 — 312F Bopomofo\n // 3130 — 318F Hangul Compatibility Jamo\n // 3190 — 319F Kanbun\n // 31A0 — 31BF Bopomofo Extended\n // 31F0 — 31FF Katakana Phonetic Extensions\n // 3200 — 32FF Enclosed CJK Letters and Months\n // 3300 — 33FF CJK Compatibility\n // 3400 — 4DBF CJK Unified Ideographs Extension A\n // 4DC0 — 4DFF Yijing Hexagram Symbols\n // 4E00 — 9FFF CJK Unified Ideographs\n // A000 — A48F Yi Syllables\n // A490 — A4CF Yi Radicals\n // AC00 — D7AF Hangul Syllables\n // [IGNORE] D800 — DB7F High Surrogates\n // [IGNORE] DB80 — DBFF High Private Use Surrogates\n // [IGNORE] DC00 — DFFF Low Surrogates\n // [IGNORE] E000 — F8FF Private Use Area\n // F900 — FAFF CJK Compatibility Ideographs\n // [IGNORE] FB00 — FB4F Alphabetic Presentation Forms\n // [IGNORE] FB50 — FDFF Arabic Presentation Forms-A\n // [IGNORE] FE00 — FE0F Variation Selectors\n // [IGNORE] FE20 — FE2F Combining Half Marks\n // [IGNORE] FE30 — FE4F CJK Compatibility Forms\n // [IGNORE] FE50 — FE6F Small Form Variants\n // [IGNORE] FE70 — FEFF Arabic Presentation Forms-B\n // FF00 — FFEF Halfwidth and Fullwidth Forms\n // [https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms]\n // of which FF01 - FF5E fullwidth ASCII of 21 to 7E\n // [IGNORE] and FF65 - FFDC halfwidth of Katakana and Hangul\n // [IGNORE] FFF0 — FFFF Specials\n charCode = +charCode; // @perf\n return ((charCode >= 0x2E80 && charCode <= 0xD7AF)\n || (charCode >= 0xF900 && charCode <= 0xFAFF)\n || (charCode >= 0xFF01 && charCode <= 0xFF5E));\n}\n/**\n * A fast function (therefore imprecise) to check if code points are emojis.\n * Generated using https://github.com/alexdima/unicode-utils/blob/master/generate-emoji-test.js\n */\nexport function isEmojiImprecise(x) {\n return ((x >= 0x1F1E6 && x <= 0x1F1FF) || (x === 8986) || (x === 8987) || (x === 9200)\n || (x === 9203) || (x >= 9728 && x <= 10175) || (x === 11088) || (x === 11093)\n || (x >= 127744 && x <= 128591) || (x >= 128640 && x <= 128764)\n || (x >= 128992 && x <= 129003) || (x >= 129280 && x <= 129535)\n || (x >= 129648 && x <= 129750));\n}\n// -- UTF-8 BOM\nexport const UTF8_BOM_CHARACTER = String.fromCharCode(65279 /* UTF8_BOM */);\nexport function startsWithUTF8BOM(str) {\n return !!(str && str.length > 0 && str.charCodeAt(0) === 65279 /* UTF8_BOM */);\n}\nexport function containsUppercaseCharacter(target, ignoreEscapedChars = false) {\n if (!target) {\n return false;\n }\n if (ignoreEscapedChars) {\n target = target.replace(/\\\\./g, '');\n }\n return target.toLowerCase() !== target;\n}\n/**\n * Produces 'a'-'z', followed by 'A'-'Z'... followed by 'a'-'z', etc.\n */\nexport function singleLetterHash(n) {\n const LETTERS_CNT = (90 /* Z */ - 65 /* A */ + 1);\n n = n % (2 * LETTERS_CNT);\n if (n < LETTERS_CNT) {\n return String.fromCharCode(97 /* a */ + n);\n }\n return String.fromCharCode(65 /* A */ + n - LETTERS_CNT);\n}\n//#region Unicode Grapheme Break\nexport function getGraphemeBreakType(codePoint) {\n const graphemeBreakTree = GraphemeBreakTree.getInstance();\n return graphemeBreakTree.getGraphemeBreakType(codePoint);\n}\nexport function breakBetweenGraphemeBreakType(breakTypeA, breakTypeB) {\n // http://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundary_Rules\n // !!! Let's make the common case a bit faster\n if (breakTypeA === 0 /* Other */) {\n // see https://www.unicode.org/Public/13.0.0/ucd/auxiliary/GraphemeBreakTest-13.0.0d10.html#table\n return (breakTypeB !== 5 /* Extend */ && breakTypeB !== 7 /* SpacingMark */);\n }\n // Do not break between a CR and LF. Otherwise, break before and after controls.\n // GB3 CR × LF\n // GB4 (Control | CR | LF) ÷\n // GB5 ÷ (Control | CR | LF)\n if (breakTypeA === 2 /* CR */) {\n if (breakTypeB === 3 /* LF */) {\n return false; // GB3\n }\n }\n if (breakTypeA === 4 /* Control */ || breakTypeA === 2 /* CR */ || breakTypeA === 3 /* LF */) {\n return true; // GB4\n }\n if (breakTypeB === 4 /* Control */ || breakTypeB === 2 /* CR */ || breakTypeB === 3 /* LF */) {\n return true; // GB5\n }\n // Do not break Hangul syllable sequences.\n // GB6 L × (L | V | LV | LVT)\n // GB7 (LV | V) × (V | T)\n // GB8 (LVT | T) × T\n if (breakTypeA === 8 /* L */) {\n if (breakTypeB === 8 /* L */ || breakTypeB === 9 /* V */ || breakTypeB === 11 /* LV */ || breakTypeB === 12 /* LVT */) {\n return false; // GB6\n }\n }\n if (breakTypeA === 11 /* LV */ || breakTypeA === 9 /* V */) {\n if (breakTypeB === 9 /* V */ || breakTypeB === 10 /* T */) {\n return false; // GB7\n }\n }\n if (breakTypeA === 12 /* LVT */ || breakTypeA === 10 /* T */) {\n if (breakTypeB === 10 /* T */) {\n return false; // GB8\n }\n }\n // Do not break before extending characters or ZWJ.\n // GB9 × (Extend | ZWJ)\n if (breakTypeB === 5 /* Extend */ || breakTypeB === 13 /* ZWJ */) {\n return false; // GB9\n }\n // The GB9a and GB9b rules only apply to extended grapheme clusters:\n // Do not break before SpacingMarks, or after Prepend characters.\n // GB9a × SpacingMark\n // GB9b Prepend ×\n if (breakTypeB === 7 /* SpacingMark */) {\n return false; // GB9a\n }\n if (breakTypeA === 1 /* Prepend */) {\n return false; // GB9b\n }\n // Do not break within emoji modifier sequences or emoji zwj sequences.\n // GB11 \\p{Extended_Pictographic} Extend* ZWJ × \\p{Extended_Pictographic}\n if (breakTypeA === 13 /* ZWJ */ && breakTypeB === 14 /* Extended_Pictographic */) {\n // Note: we are not implementing the rule entirely here to avoid introducing states\n return false; // GB11\n }\n // GB12 sot (RI RI)* RI × RI\n // GB13 [^RI] (RI RI)* RI × RI\n if (breakTypeA === 6 /* Regional_Indicator */ && breakTypeB === 6 /* Regional_Indicator */) {\n // Note: we are not implementing the rule entirely here to avoid introducing states\n return false; // GB12 & GB13\n }\n // GB999 Any ÷ Any\n return true;\n}\nclass GraphemeBreakTree {\n constructor() {\n this._data = getGraphemeBreakRawData();\n }\n static getInstance() {\n if (!GraphemeBreakTree._INSTANCE) {\n GraphemeBreakTree._INSTANCE = new GraphemeBreakTree();\n }\n return GraphemeBreakTree._INSTANCE;\n }\n getGraphemeBreakType(codePoint) {\n // !!! Let's make 7bit ASCII a bit faster: 0..31\n if (codePoint < 32) {\n if (codePoint === 10 /* LineFeed */) {\n return 3 /* LF */;\n }\n if (codePoint === 13 /* CarriageReturn */) {\n return 2 /* CR */;\n }\n return 4 /* Control */;\n }\n // !!! Let's make 7bit ASCII a bit faster: 32..126\n if (codePoint < 127) {\n return 0 /* Other */;\n }\n const data = this._data;\n const nodeCount = data.length / 3;\n let nodeIndex = 1;\n while (nodeIndex <= nodeCount) {\n if (codePoint < data[3 * nodeIndex]) {\n // go left\n nodeIndex = 2 * nodeIndex;\n }\n else if (codePoint > data[3 * nodeIndex + 1]) {\n // go right\n nodeIndex = 2 * nodeIndex + 1;\n }\n else {\n // hit\n return data[3 * nodeIndex + 2];\n }\n }\n return 0 /* Other */;\n }\n}\nGraphemeBreakTree._INSTANCE = null;\nfunction getGraphemeBreakRawData() {\n // generated using https://github.com/alexdima/unicode-utils/blob/master/generate-grapheme-break.js\n return JSON.parse('[0,0,0,51592,51592,11,44424,44424,11,72251,72254,5,7150,7150,7,48008,48008,11,55176,55176,11,128420,128420,14,3276,3277,5,9979,9980,14,46216,46216,11,49800,49800,11,53384,53384,11,70726,70726,5,122915,122916,5,129320,129327,14,2558,2558,5,5906,5908,5,9762,9763,14,43360,43388,8,45320,45320,11,47112,47112,11,48904,48904,11,50696,50696,11,52488,52488,11,54280,54280,11,70082,70083,1,71350,71350,7,73111,73111,5,127892,127893,14,128726,128727,14,129473,129474,14,2027,2035,5,2901,2902,5,3784,3789,5,6754,6754,5,8418,8420,5,9877,9877,14,11088,11088,14,44008,44008,5,44872,44872,11,45768,45768,11,46664,46664,11,47560,47560,11,48456,48456,11,49352,49352,11,50248,50248,11,51144,51144,11,52040,52040,11,52936,52936,11,53832,53832,11,54728,54728,11,69811,69814,5,70459,70460,5,71096,71099,7,71998,71998,5,72874,72880,5,119149,119149,7,127374,127374,14,128335,128335,14,128482,128482,14,128765,128767,14,129399,129400,14,129680,129685,14,1476,1477,5,2377,2380,7,2759,2760,5,3137,3140,7,3458,3459,7,4153,4154,5,6432,6434,5,6978,6978,5,7675,7679,5,9723,9726,14,9823,9823,14,9919,9923,14,10035,10036,14,42736,42737,5,43596,43596,5,44200,44200,11,44648,44648,11,45096,45096,11,45544,45544,11,45992,45992,11,46440,46440,11,46888,46888,11,47336,47336,11,47784,47784,11,48232,48232,11,48680,48680,11,49128,49128,11,49576,49576,11,50024,50024,11,50472,50472,11,50920,50920,11,51368,51368,11,51816,51816,11,52264,52264,11,52712,52712,11,53160,53160,11,53608,53608,11,54056,54056,11,54504,54504,11,54952,54952,11,68108,68111,5,69933,69940,5,70197,70197,7,70498,70499,7,70845,70845,5,71229,71229,5,71727,71735,5,72154,72155,5,72344,72345,5,73023,73029,5,94095,94098,5,121403,121452,5,126981,127182,14,127538,127546,14,127990,127990,14,128391,128391,14,128445,128449,14,128500,128505,14,128752,128752,14,129160,129167,14,129356,129356,14,129432,129442,14,129648,129651,14,129751,131069,14,173,173,4,1757,1757,1,2274,2274,1,2494,2494,5,2641,2641,5,2876,2876,5,3014,3016,7,3262,3262,7,3393,3396,5,3570,3571,7,3968,3972,5,4228,4228,7,6086,6086,5,6679,6680,5,6912,6915,5,7080,7081,5,7380,7392,5,8252,8252,14,9096,9096,14,9748,9749,14,9784,9786,14,9833,9850,14,9890,9894,14,9938,9938,14,9999,9999,14,10085,10087,14,12349,12349,14,43136,43137,7,43454,43456,7,43755,43755,7,44088,44088,11,44312,44312,11,44536,44536,11,44760,44760,11,44984,44984,11,45208,45208,11,45432,45432,11,45656,45656,11,45880,45880,11,46104,46104,11,46328,46328,11,46552,46552,11,46776,46776,11,47000,47000,11,47224,47224,11,47448,47448,11,47672,47672,11,47896,47896,11,48120,48120,11,48344,48344,11,48568,48568,11,48792,48792,11,49016,49016,11,49240,49240,11,49464,49464,11,49688,49688,11,49912,49912,11,50136,50136,11,50360,50360,11,50584,50584,11,50808,50808,11,51032,51032,11,51256,51256,11,51480,51480,11,51704,51704,11,51928,51928,11,52152,52152,11,52376,52376,11,52600,52600,11,52824,52824,11,53048,53048,11,53272,53272,11,53496,53496,11,53720,53720,11,53944,53944,11,54168,54168,11,54392,54392,11,54616,54616,11,54840,54840,11,55064,55064,11,65438,65439,5,69633,69633,5,69837,69837,1,70018,70018,7,70188,70190,7,70368,70370,7,70465,70468,7,70712,70719,5,70835,70840,5,70850,70851,5,71132,71133,5,71340,71340,7,71458,71461,5,71985,71989,7,72002,72002,7,72193,72202,5,72281,72283,5,72766,72766,7,72885,72886,5,73104,73105,5,92912,92916,5,113824,113827,4,119173,119179,5,121505,121519,5,125136,125142,5,127279,127279,14,127489,127490,14,127570,127743,14,127900,127901,14,128254,128254,14,128369,128370,14,128400,128400,14,128425,128432,14,128468,128475,14,128489,128494,14,128715,128720,14,128745,128745,14,128759,128760,14,129004,129023,14,129296,129304,14,129340,129342,14,129388,129392,14,129404,129407,14,129454,129455,14,129485,129487,14,129659,129663,14,129719,129727,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2363,2363,7,2402,2403,5,2507,2508,7,2622,2624,7,2691,2691,7,2786,2787,5,2881,2884,5,3006,3006,5,3072,3072,5,3170,3171,5,3267,3268,7,3330,3331,7,3406,3406,1,3538,3540,5,3655,3662,5,3897,3897,5,4038,4038,5,4184,4185,5,4352,4447,8,6068,6069,5,6155,6157,5,6448,6449,7,6742,6742,5,6783,6783,5,6966,6970,5,7042,7042,7,7143,7143,7,7212,7219,5,7412,7412,5,8206,8207,4,8294,8303,4,8596,8601,14,9410,9410,14,9742,9742,14,9757,9757,14,9770,9770,14,9794,9794,14,9828,9828,14,9855,9855,14,9882,9882,14,9900,9903,14,9929,9933,14,9963,9967,14,9987,9988,14,10006,10006,14,10062,10062,14,10175,10175,14,11744,11775,5,42607,42607,5,43043,43044,7,43263,43263,5,43444,43445,7,43569,43570,5,43698,43700,5,43766,43766,5,44032,44032,11,44144,44144,11,44256,44256,11,44368,44368,11,44480,44480,11,44592,44592,11,44704,44704,11,44816,44816,11,44928,44928,11,45040,45040,11,45152,45152,11,45264,45264,11,45376,45376,11,45488,45488,11,45600,45600,11,45712,45712,11,45824,45824,11,45936,45936,11,46048,46048,11,46160,46160,11,46272,46272,11,46384,46384,11,46496,46496,11,46608,46608,11,46720,46720,11,46832,46832,11,46944,46944,11,47056,47056,11,47168,47168,11,47280,47280,11,47392,47392,11,47504,47504,11,47616,47616,11,47728,47728,11,47840,47840,11,47952,47952,11,48064,48064,11,48176,48176,11,48288,48288,11,48400,48400,11,48512,48512,11,48624,48624,11,48736,48736,11,48848,48848,11,48960,48960,11,49072,49072,11,49184,49184,11,49296,49296,11,49408,49408,11,49520,49520,11,49632,49632,11,49744,49744,11,49856,49856,11,49968,49968,11,50080,50080,11,50192,50192,11,50304,50304,11,50416,50416,11,50528,50528,11,50640,50640,11,50752,50752,11,50864,50864,11,50976,50976,11,51088,51088,11,51200,51200,11,51312,51312,11,51424,51424,11,51536,51536,11,51648,51648,11,51760,51760,11,51872,51872,11,51984,51984,11,52096,52096,11,52208,52208,11,52320,52320,11,52432,52432,11,52544,52544,11,52656,52656,11,52768,52768,11,52880,52880,11,52992,52992,11,53104,53104,11,53216,53216,11,53328,53328,11,53440,53440,11,53552,53552,11,53664,53664,11,53776,53776,11,53888,53888,11,54000,54000,11,54112,54112,11,54224,54224,11,54336,54336,11,54448,54448,11,54560,54560,11,54672,54672,11,54784,54784,11,54896,54896,11,55008,55008,11,55120,55120,11,64286,64286,5,66272,66272,5,68900,68903,5,69762,69762,7,69817,69818,5,69927,69931,5,70003,70003,5,70070,70078,5,70094,70094,7,70194,70195,7,70206,70206,5,70400,70401,5,70463,70463,7,70475,70477,7,70512,70516,5,70722,70724,5,70832,70832,5,70842,70842,5,70847,70848,5,71088,71089,7,71102,71102,7,71219,71226,5,71231,71232,5,71342,71343,7,71453,71455,5,71463,71467,5,71737,71738,5,71995,71996,5,72000,72000,7,72145,72147,7,72160,72160,5,72249,72249,7,72273,72278,5,72330,72342,5,72752,72758,5,72850,72871,5,72882,72883,5,73018,73018,5,73031,73031,5,73109,73109,5,73461,73462,7,94031,94031,5,94192,94193,7,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,126976,126979,14,127184,127231,14,127344,127345,14,127405,127461,14,127514,127514,14,127561,127567,14,127778,127779,14,127896,127896,14,127985,127986,14,127995,127999,5,128326,128328,14,128360,128366,14,128378,128378,14,128394,128397,14,128405,128406,14,128422,128423,14,128435,128443,14,128453,128464,14,128479,128480,14,128484,128487,14,128496,128498,14,128640,128709,14,128723,128724,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129096,129103,14,129292,129292,14,129311,129311,14,129329,129330,14,129344,129349,14,129360,129374,14,129394,129394,14,129402,129402,14,129413,129425,14,129445,129450,14,129466,129471,14,129483,129483,14,129511,129535,14,129653,129655,14,129667,129670,14,129705,129711,14,129731,129743,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2307,2307,7,2366,2368,7,2382,2383,7,2434,2435,7,2497,2500,5,2519,2519,5,2563,2563,7,2631,2632,5,2677,2677,5,2750,2752,7,2763,2764,7,2817,2817,5,2879,2879,5,2891,2892,7,2914,2915,5,3008,3008,5,3021,3021,5,3076,3076,5,3146,3149,5,3202,3203,7,3264,3265,7,3271,3272,7,3298,3299,5,3390,3390,5,3402,3404,7,3426,3427,5,3535,3535,5,3544,3550,7,3635,3635,7,3763,3763,7,3893,3893,5,3953,3966,5,3981,3991,5,4145,4145,7,4157,4158,5,4209,4212,5,4237,4237,5,4520,4607,10,5970,5971,5,6071,6077,5,6089,6099,5,6277,6278,5,6439,6440,5,6451,6456,7,6683,6683,5,6744,6750,5,6765,6770,7,6846,6846,5,6964,6964,5,6972,6972,5,7019,7027,5,7074,7077,5,7083,7085,5,7146,7148,7,7154,7155,7,7222,7223,5,7394,7400,5,7416,7417,5,8204,8204,5,8233,8233,4,8288,8292,4,8413,8416,5,8482,8482,14,8986,8987,14,9193,9203,14,9654,9654,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9775,14,9792,9792,14,9800,9811,14,9825,9826,14,9831,9831,14,9852,9853,14,9872,9873,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9936,9936,14,9941,9960,14,9974,9974,14,9982,9985,14,9992,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10145,10145,14,11013,11015,14,11503,11505,5,12334,12335,5,12951,12951,14,42612,42621,5,43014,43014,5,43047,43047,7,43204,43205,5,43335,43345,5,43395,43395,7,43450,43451,7,43561,43566,5,43573,43574,5,43644,43644,5,43710,43711,5,43758,43759,7,44005,44005,5,44012,44012,7,44060,44060,11,44116,44116,11,44172,44172,11,44228,44228,11,44284,44284,11,44340,44340,11,44396,44396,11,44452,44452,11,44508,44508,11,44564,44564,11,44620,44620,11,44676,44676,11,44732,44732,11,44788,44788,11,44844,44844,11,44900,44900,11,44956,44956,11,45012,45012,11,45068,45068,11,45124,45124,11,45180,45180,11,45236,45236,11,45292,45292,11,45348,45348,11,45404,45404,11,45460,45460,11,45516,45516,11,45572,45572,11,45628,45628,11,45684,45684,11,45740,45740,11,45796,45796,11,45852,45852,11,45908,45908,11,45964,45964,11,46020,46020,11,46076,46076,11,46132,46132,11,46188,46188,11,46244,46244,11,46300,46300,11,46356,46356,11,46412,46412,11,46468,46468,11,46524,46524,11,46580,46580,11,46636,46636,11,46692,46692,11,46748,46748,11,46804,46804,11,46860,46860,11,46916,46916,11,46972,46972,11,47028,47028,11,47084,47084,11,47140,47140,11,47196,47196,11,47252,47252,11,47308,47308,11,47364,47364,11,47420,47420,11,47476,47476,11,47532,47532,11,47588,47588,11,47644,47644,11,47700,47700,11,47756,47756,11,47812,47812,11,47868,47868,11,47924,47924,11,47980,47980,11,48036,48036,11,48092,48092,11,48148,48148,11,48204,48204,11,48260,48260,11,48316,48316,11,48372,48372,11,48428,48428,11,48484,48484,11,48540,48540,11,48596,48596,11,48652,48652,11,48708,48708,11,48764,48764,11,48820,48820,11,48876,48876,11,48932,48932,11,48988,48988,11,49044,49044,11,49100,49100,11,49156,49156,11,49212,49212,11,49268,49268,11,49324,49324,11,49380,49380,11,49436,49436,11,49492,49492,11,49548,49548,11,49604,49604,11,49660,49660,11,49716,49716,11,49772,49772,11,49828,49828,11,49884,49884,11,49940,49940,11,49996,49996,11,50052,50052,11,50108,50108,11,50164,50164,11,50220,50220,11,50276,50276,11,50332,50332,11,50388,50388,11,50444,50444,11,50500,50500,11,50556,50556,11,50612,50612,11,50668,50668,11,50724,50724,11,50780,50780,11,50836,50836,11,50892,50892,11,50948,50948,11,51004,51004,11,51060,51060,11,51116,51116,11,51172,51172,11,51228,51228,11,51284,51284,11,51340,51340,11,51396,51396,11,51452,51452,11,51508,51508,11,51564,51564,11,51620,51620,11,51676,51676,11,51732,51732,11,51788,51788,11,51844,51844,11,51900,51900,11,51956,51956,11,52012,52012,11,52068,52068,11,52124,52124,11,52180,52180,11,52236,52236,11,52292,52292,11,52348,52348,11,52404,52404,11,52460,52460,11,52516,52516,11,52572,52572,11,52628,52628,11,52684,52684,11,52740,52740,11,52796,52796,11,52852,52852,11,52908,52908,11,52964,52964,11,53020,53020,11,53076,53076,11,53132,53132,11,53188,53188,11,53244,53244,11,53300,53300,11,53356,53356,11,53412,53412,11,53468,53468,11,53524,53524,11,53580,53580,11,53636,53636,11,53692,53692,11,53748,53748,11,53804,53804,11,53860,53860,11,53916,53916,11,53972,53972,11,54028,54028,11,54084,54084,11,54140,54140,11,54196,54196,11,54252,54252,11,54308,54308,11,54364,54364,11,54420,54420,11,54476,54476,11,54532,54532,11,54588,54588,11,54644,54644,11,54700,54700,11,54756,54756,11,54812,54812,11,54868,54868,11,54924,54924,11,54980,54980,11,55036,55036,11,55092,55092,11,55148,55148,11,55216,55238,9,65056,65071,5,65529,65531,4,68097,68099,5,68159,68159,5,69446,69456,5,69688,69702,5,69808,69810,7,69815,69816,7,69821,69821,1,69888,69890,5,69932,69932,7,69957,69958,7,70016,70017,5,70067,70069,7,70079,70080,7,70089,70092,5,70095,70095,5,70191,70193,5,70196,70196,5,70198,70199,5,70367,70367,5,70371,70378,5,70402,70403,7,70462,70462,5,70464,70464,5,70471,70472,7,70487,70487,5,70502,70508,5,70709,70711,7,70720,70721,7,70725,70725,7,70750,70750,5,70833,70834,7,70841,70841,7,70843,70844,7,70846,70846,7,70849,70849,7,71087,71087,5,71090,71093,5,71100,71101,5,71103,71104,5,71216,71218,7,71227,71228,7,71230,71230,7,71339,71339,5,71341,71341,5,71344,71349,5,71351,71351,5,71456,71457,7,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123628,123631,5,125252,125258,5,126980,126980,14,127183,127183,14,127245,127247,14,127340,127343,14,127358,127359,14,127377,127386,14,127462,127487,6,127491,127503,14,127535,127535,14,127548,127551,14,127568,127569,14,127744,127777,14,127780,127891,14,127894,127895,14,127897,127899,14,127902,127984,14,127987,127989,14,127991,127994,14,128000,128253,14,128255,128317,14,128329,128334,14,128336,128359,14,128367,128368,14,128371,128377,14,128379,128390,14,128392,128393,14,128398,128399,14,128401,128404,14,128407,128419,14,128421,128421,14,128424,128424,14,128433,128434,14,128444,128444,14,128450,128452,14,128465,128467,14,128476,128478,14,128481,128481,14,128483,128483,14,128488,128488,14,128495,128495,14,128499,128499,14,128506,128591,14,128710,128714,14,128721,128722,14,128725,128725,14,128728,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129664,129666,14,129671,129679,14,129686,129704,14,129712,129718,14,129728,129730,14,129744,129750,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2259,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3134,3136,5,3142,3144,5,3157,3158,5,3201,3201,5,3260,3260,5,3263,3263,5,3266,3266,5,3270,3270,5,3274,3275,7,3285,3286,5,3328,3329,5,3387,3388,5,3391,3392,7,3398,3400,7,3405,3405,5,3415,3415,5,3457,3457,5,3530,3530,5,3536,3537,7,3542,3542,5,3551,3551,5,3633,3633,5,3636,3642,5,3761,3761,5,3764,3772,5,3864,3865,5,3895,3895,5,3902,3903,7,3967,3967,7,3974,3975,5,3993,4028,5,4141,4144,5,4146,4151,5,4155,4156,7,4182,4183,7,4190,4192,5,4226,4226,5,4229,4230,5,4253,4253,5,4448,4519,9,4957,4959,5,5938,5940,5,6002,6003,5,6070,6070,7,6078,6085,7,6087,6088,7,6109,6109,5,6158,6158,4,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6848,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7673,5,8203,8203,4,8205,8205,13,8232,8232,4,8234,8238,4,8265,8265,14,8293,8293,4,8400,8412,5,8417,8417,5,8421,8432,5,8505,8505,14,8617,8618,14,9000,9000,14,9167,9167,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9776,9783,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9935,14,9937,9937,14,9939,9940,14,9961,9962,14,9968,9973,14,9975,9978,14,9981,9981,14,9986,9986,14,9989,9989,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10084,14,10133,10135,14,10160,10160,14,10548,10549,14,11035,11036,14,11093,11093,14,11647,11647,5,12330,12333,5,12336,12336,14,12441,12442,5,12953,12953,14,42608,42610,5,42654,42655,5,43010,43010,5,43019,43019,5,43045,43046,5,43052,43052,5,43188,43203,7,43232,43249,5,43302,43309,5,43346,43347,7,43392,43394,5,43443,43443,5,43446,43449,5,43452,43453,5,43493,43493,5,43567,43568,7,43571,43572,7,43587,43587,5,43597,43597,7,43696,43696,5,43703,43704,5,43713,43713,5,43756,43757,5,43765,43765,7,44003,44004,7,44006,44007,7,44009,44010,7,44013,44013,5,44033,44059,12,44061,44087,12,44089,44115,12,44117,44143,12,44145,44171,12,44173,44199,12,44201,44227,12,44229,44255,12,44257,44283,12,44285,44311,12,44313,44339,12,44341,44367,12,44369,44395,12,44397,44423,12,44425,44451,12,44453,44479,12,44481,44507,12,44509,44535,12,44537,44563,12,44565,44591,12,44593,44619,12,44621,44647,12,44649,44675,12,44677,44703,12,44705,44731,12,44733,44759,12,44761,44787,12,44789,44815,12,44817,44843,12,44845,44871,12,44873,44899,12,44901,44927,12,44929,44955,12,44957,44983,12,44985,45011,12,45013,45039,12,45041,45067,12,45069,45095,12,45097,45123,12,45125,45151,12,45153,45179,12,45181,45207,12,45209,45235,12,45237,45263,12,45265,45291,12,45293,45319,12,45321,45347,12,45349,45375,12,45377,45403,12,45405,45431,12,45433,45459,12,45461,45487,12,45489,45515,12,45517,45543,12,45545,45571,12,45573,45599,12,45601,45627,12,45629,45655,12,45657,45683,12,45685,45711,12,45713,45739,12,45741,45767,12,45769,45795,12,45797,45823,12,45825,45851,12,45853,45879,12,45881,45907,12,45909,45935,12,45937,45963,12,45965,45991,12,45993,46019,12,46021,46047,12,46049,46075,12,46077,46103,12,46105,46131,12,46133,46159,12,46161,46187,12,46189,46215,12,46217,46243,12,46245,46271,12,46273,46299,12,46301,46327,12,46329,46355,12,46357,46383,12,46385,46411,12,46413,46439,12,46441,46467,12,46469,46495,12,46497,46523,12,46525,46551,12,46553,46579,12,46581,46607,12,46609,46635,12,46637,46663,12,46665,46691,12,46693,46719,12,46721,46747,12,46749,46775,12,46777,46803,12,46805,46831,12,46833,46859,12,46861,46887,12,46889,46915,12,46917,46943,12,46945,46971,12,46973,46999,12,47001,47027,12,47029,47055,12,47057,47083,12,47085,47111,12,47113,47139,12,47141,47167,12,47169,47195,12,47197,47223,12,47225,47251,12,47253,47279,12,47281,47307,12,47309,47335,12,47337,47363,12,47365,47391,12,47393,47419,12,47421,47447,12,47449,47475,12,47477,47503,12,47505,47531,12,47533,47559,12,47561,47587,12,47589,47615,12,47617,47643,12,47645,47671,12,47673,47699,12,47701,47727,12,47729,47755,12,47757,47783,12,47785,47811,12,47813,47839,12,47841,47867,12,47869,47895,12,47897,47923,12,47925,47951,12,47953,47979,12,47981,48007,12,48009,48035,12,48037,48063,12,48065,48091,12,48093,48119,12,48121,48147,12,48149,48175,12,48177,48203,12,48205,48231,12,48233,48259,12,48261,48287,12,48289,48315,12,48317,48343,12,48345,48371,12,48373,48399,12,48401,48427,12,48429,48455,12,48457,48483,12,48485,48511,12,48513,48539,12,48541,48567,12,48569,48595,12,48597,48623,12,48625,48651,12,48653,48679,12,48681,48707,12,48709,48735,12,48737,48763,12,48765,48791,12,48793,48819,12,48821,48847,12,48849,48875,12,48877,48903,12,48905,48931,12,48933,48959,12,48961,48987,12,48989,49015,12,49017,49043,12,49045,49071,12,49073,49099,12,49101,49127,12,49129,49155,12,49157,49183,12,49185,49211,12,49213,49239,12,49241,49267,12,49269,49295,12,49297,49323,12,49325,49351,12,49353,49379,12,49381,49407,12,49409,49435,12,49437,49463,12,49465,49491,12,49493,49519,12,49521,49547,12,49549,49575,12,49577,49603,12,49605,49631,12,49633,49659,12,49661,49687,12,49689,49715,12,49717,49743,12,49745,49771,12,49773,49799,12,49801,49827,12,49829,49855,12,49857,49883,12,49885,49911,12,49913,49939,12,49941,49967,12,49969,49995,12,49997,50023,12,50025,50051,12,50053,50079,12,50081,50107,12,50109,50135,12,50137,50163,12,50165,50191,12,50193,50219,12,50221,50247,12,50249,50275,12,50277,50303,12,50305,50331,12,50333,50359,12,50361,50387,12,50389,50415,12,50417,50443,12,50445,50471,12,50473,50499,12,50501,50527,12,50529,50555,12,50557,50583,12,50585,50611,12,50613,50639,12,50641,50667,12,50669,50695,12,50697,50723,12,50725,50751,12,50753,50779,12,50781,50807,12,50809,50835,12,50837,50863,12,50865,50891,12,50893,50919,12,50921,50947,12,50949,50975,12,50977,51003,12,51005,51031,12,51033,51059,12,51061,51087,12,51089,51115,12,51117,51143,12,51145,51171,12,51173,51199,12,51201,51227,12,51229,51255,12,51257,51283,12,51285,51311,12,51313,51339,12,51341,51367,12,51369,51395,12,51397,51423,12,51425,51451,12,51453,51479,12,51481,51507,12,51509,51535,12,51537,51563,12,51565,51591,12,51593,51619,12,51621,51647,12,51649,51675,12,51677,51703,12,51705,51731,12,51733,51759,12,51761,51787,12,51789,51815,12,51817,51843,12,51845,51871,12,51873,51899,12,51901,51927,12,51929,51955,12,51957,51983,12,51985,52011,12,52013,52039,12,52041,52067,12,52069,52095,12,52097,52123,12,52125,52151,12,52153,52179,12,52181,52207,12,52209,52235,12,52237,52263,12,52265,52291,12,52293,52319,12,52321,52347,12,52349,52375,12,52377,52403,12,52405,52431,12,52433,52459,12,52461,52487,12,52489,52515,12,52517,52543,12,52545,52571,12,52573,52599,12,52601,52627,12,52629,52655,12,52657,52683,12,52685,52711,12,52713,52739,12,52741,52767,12,52769,52795,12,52797,52823,12,52825,52851,12,52853,52879,12,52881,52907,12,52909,52935,12,52937,52963,12,52965,52991,12,52993,53019,12,53021,53047,12,53049,53075,12,53077,53103,12,53105,53131,12,53133,53159,12,53161,53187,12,53189,53215,12,53217,53243,12,53245,53271,12,53273,53299,12,53301,53327,12,53329,53355,12,53357,53383,12,53385,53411,12,53413,53439,12,53441,53467,12,53469,53495,12,53497,53523,12,53525,53551,12,53553,53579,12,53581,53607,12,53609,53635,12,53637,53663,12,53665,53691,12,53693,53719,12,53721,53747,12,53749,53775,12,53777,53803,12,53805,53831,12,53833,53859,12,53861,53887,12,53889,53915,12,53917,53943,12,53945,53971,12,53973,53999,12,54001,54027,12,54029,54055,12,54057,54083,12,54085,54111,12,54113,54139,12,54141,54167,12,54169,54195,12,54197,54223,12,54225,54251,12,54253,54279,12,54281,54307,12,54309,54335,12,54337,54363,12,54365,54391,12,54393,54419,12,54421,54447,12,54449,54475,12,54477,54503,12,54505,54531,12,54533,54559,12,54561,54587,12,54589,54615,12,54617,54643,12,54645,54671,12,54673,54699,12,54701,54727,12,54729,54755,12,54757,54783,12,54785,54811,12,54813,54839,12,54841,54867,12,54869,54895,12,54897,54923,12,54925,54951,12,54953,54979,12,54981,55007,12,55009,55035,12,55037,55063,12,55065,55091,12,55093,55119,12,55121,55147,12,55149,55175,12,55177,55203,12,55243,55291,10,65024,65039,5,65279,65279,4,65520,65528,4,66045,66045,5,66422,66426,5,68101,68102,5,68152,68154,5,68325,68326,5,69291,69292,5,69632,69632,7,69634,69634,7,69759,69761,5]');\n}\n//#endregion\n/**\n * Computes the offset after performing a left delete on the given string,\n * while considering unicode grapheme/emoji rules.\n*/\nexport function getLeftDeleteOffset(offset, str) {\n if (offset === 0) {\n return 0;\n }\n // Try to delete emoji part.\n const emojiOffset = getOffsetBeforeLastEmojiComponent(offset, str);\n if (emojiOffset !== undefined) {\n return emojiOffset;\n }\n // Otherwise, just skip a single code point.\n const codePoint = getPrevCodePoint(str, offset);\n offset -= getUTF16Length(codePoint);\n return offset;\n}\nfunction getOffsetBeforeLastEmojiComponent(offset, str) {\n // See https://www.unicode.org/reports/tr51/tr51-14.html#EBNF_and_Regex for the\n // structure of emojis.\n let codePoint = getPrevCodePoint(str, offset);\n offset -= getUTF16Length(codePoint);\n // Skip modifiers\n while ((isEmojiModifier(codePoint) || codePoint === 65039 /* emojiVariantSelector */ || codePoint === 8419 /* enclosingKeyCap */)) {\n if (offset === 0) {\n // Cannot skip modifier, no preceding emoji base.\n return undefined;\n }\n codePoint = getPrevCodePoint(str, offset);\n offset -= getUTF16Length(codePoint);\n }\n // Expect base emoji\n if (!isEmojiImprecise(codePoint)) {\n // Unexpected code point, not a valid emoji.\n return undefined;\n }\n if (offset >= 0) {\n // Skip optional ZWJ code points that combine multiple emojis.\n // In theory, we should check if that ZWJ actually combines multiple emojis\n // to prevent deleting ZWJs in situations we didn't account for.\n const optionalZwjCodePoint = getPrevCodePoint(str, offset);\n if (optionalZwjCodePoint === 8205 /* zwj */) {\n offset -= getUTF16Length(optionalZwjCodePoint);\n }\n }\n return offset;\n}\nfunction getUTF16Length(codePoint) {\n return codePoint >= 65536 /* UNICODE_SUPPLEMENTARY_PLANE_BEGIN */ ? 2 : 1;\n}\nfunction isEmojiModifier(codePoint) {\n return 0x1F3FB <= codePoint && codePoint <= 0x1F3FF;\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { transformErrorForSerialization } from '../errors.js';\nimport { Emitter } from '../event.js';\nimport { Disposable } from '../lifecycle.js';\nimport { globals, isWeb } from '../platform.js';\nimport * as types from '../types.js';\nimport * as strings from '../strings.js';\nconst INITIALIZE = '$initialize';\nlet webWorkerWarningLogged = false;\nexport function logOnceWebWorkerWarning(err) {\n if (!isWeb) {\n // running tests\n return;\n }\n if (!webWorkerWarningLogged) {\n webWorkerWarningLogged = true;\n console.warn('Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/microsoft/monaco-editor#faq');\n }\n console.warn(err.message);\n}\nclass RequestMessage {\n constructor(vsWorker, req, method, args) {\n this.vsWorker = vsWorker;\n this.req = req;\n this.method = method;\n this.args = args;\n this.type = 0 /* Request */;\n }\n}\nclass ReplyMessage {\n constructor(vsWorker, seq, res, err) {\n this.vsWorker = vsWorker;\n this.seq = seq;\n this.res = res;\n this.err = err;\n this.type = 1 /* Reply */;\n }\n}\nclass SubscribeEventMessage {\n constructor(vsWorker, req, eventName, arg) {\n this.vsWorker = vsWorker;\n this.req = req;\n this.eventName = eventName;\n this.arg = arg;\n this.type = 2 /* SubscribeEvent */;\n }\n}\nclass EventMessage {\n constructor(vsWorker, req, event) {\n this.vsWorker = vsWorker;\n this.req = req;\n this.event = event;\n this.type = 3 /* Event */;\n }\n}\nclass UnsubscribeEventMessage {\n constructor(vsWorker, req) {\n this.vsWorker = vsWorker;\n this.req = req;\n this.type = 4 /* UnsubscribeEvent */;\n }\n}\nclass SimpleWorkerProtocol {\n constructor(handler) {\n this._workerId = -1;\n this._handler = handler;\n this._lastSentReq = 0;\n this._pendingReplies = Object.create(null);\n this._pendingEmitters = new Map();\n this._pendingEvents = new Map();\n }\n setWorkerId(workerId) {\n this._workerId = workerId;\n }\n sendMessage(method, args) {\n const req = String(++this._lastSentReq);\n return new Promise((resolve, reject) => {\n this._pendingReplies[req] = {\n resolve: resolve,\n reject: reject\n };\n this._send(new RequestMessage(this._workerId, req, method, args));\n });\n }\n listen(eventName, arg) {\n let req = null;\n const emitter = new Emitter({\n onFirstListenerAdd: () => {\n req = String(++this._lastSentReq);\n this._pendingEmitters.set(req, emitter);\n this._send(new SubscribeEventMessage(this._workerId, req, eventName, arg));\n },\n onLastListenerRemove: () => {\n this._pendingEmitters.delete(req);\n this._send(new UnsubscribeEventMessage(this._workerId, req));\n req = null;\n }\n });\n return emitter.event;\n }\n handleMessage(message) {\n if (!message || !message.vsWorker) {\n return;\n }\n if (this._workerId !== -1 && message.vsWorker !== this._workerId) {\n return;\n }\n this._handleMessage(message);\n }\n _handleMessage(msg) {\n switch (msg.type) {\n case 1 /* Reply */:\n return this._handleReplyMessage(msg);\n case 0 /* Request */:\n return this._handleRequestMessage(msg);\n case 2 /* SubscribeEvent */:\n return this._handleSubscribeEventMessage(msg);\n case 3 /* Event */:\n return this._handleEventMessage(msg);\n case 4 /* UnsubscribeEvent */:\n return this._handleUnsubscribeEventMessage(msg);\n }\n }\n _handleReplyMessage(replyMessage) {\n if (!this._pendingReplies[replyMessage.seq]) {\n console.warn('Got reply to unknown seq');\n return;\n }\n let reply = this._pendingReplies[replyMessage.seq];\n delete this._pendingReplies[replyMessage.seq];\n if (replyMessage.err) {\n let err = replyMessage.err;\n if (replyMessage.err.$isError) {\n err = new Error();\n err.name = replyMessage.err.name;\n err.message = replyMessage.err.message;\n err.stack = replyMessage.err.stack;\n }\n reply.reject(err);\n return;\n }\n reply.resolve(replyMessage.res);\n }\n _handleRequestMessage(requestMessage) {\n let req = requestMessage.req;\n let result = this._handler.handleMessage(requestMessage.method, requestMessage.args);\n result.then((r) => {\n this._send(new ReplyMessage(this._workerId, req, r, undefined));\n }, (e) => {\n if (e.detail instanceof Error) {\n // Loading errors have a detail property that points to the actual error\n e.detail = transformErrorForSerialization(e.detail);\n }\n this._send(new ReplyMessage(this._workerId, req, undefined, transformErrorForSerialization(e)));\n });\n }\n _handleSubscribeEventMessage(msg) {\n const req = msg.req;\n const disposable = this._handler.handleEvent(msg.eventName, msg.arg)((event) => {\n this._send(new EventMessage(this._workerId, req, event));\n });\n this._pendingEvents.set(req, disposable);\n }\n _handleEventMessage(msg) {\n if (!this._pendingEmitters.has(msg.req)) {\n console.warn('Got event for unknown req');\n return;\n }\n this._pendingEmitters.get(msg.req).fire(msg.event);\n }\n _handleUnsubscribeEventMessage(msg) {\n if (!this._pendingEvents.has(msg.req)) {\n console.warn('Got unsubscribe for unknown req');\n return;\n }\n this._pendingEvents.get(msg.req).dispose();\n this._pendingEvents.delete(msg.req);\n }\n _send(msg) {\n let transfer = [];\n if (msg.type === 0 /* Request */) {\n for (let i = 0; i < msg.args.length; i++) {\n if (msg.args[i] instanceof ArrayBuffer) {\n transfer.push(msg.args[i]);\n }\n }\n }\n else if (msg.type === 1 /* Reply */) {\n if (msg.res instanceof ArrayBuffer) {\n transfer.push(msg.res);\n }\n }\n this._handler.sendMessage(msg, transfer);\n }\n}\n/**\n * Main thread side\n */\nexport class SimpleWorkerClient extends Disposable {\n constructor(workerFactory, moduleId, host) {\n super();\n let lazyProxyReject = null;\n this._worker = this._register(workerFactory.create('vs/base/common/worker/simpleWorker', (msg) => {\n this._protocol.handleMessage(msg);\n }, (err) => {\n // in Firefox, web workers fail lazily :(\n // we will reject the proxy\n if (lazyProxyReject) {\n lazyProxyReject(err);\n }\n }));\n this._protocol = new SimpleWorkerProtocol({\n sendMessage: (msg, transfer) => {\n this._worker.postMessage(msg, transfer);\n },\n handleMessage: (method, args) => {\n if (typeof host[method] !== 'function') {\n return Promise.reject(new Error('Missing method ' + method + ' on main thread host.'));\n }\n try {\n return Promise.resolve(host[method].apply(host, args));\n }\n catch (e) {\n return Promise.reject(e);\n }\n },\n handleEvent: (eventName, arg) => {\n if (propertyIsDynamicEvent(eventName)) {\n const event = host[eventName].call(host, arg);\n if (typeof event !== 'function') {\n throw new Error(`Missing dynamic event ${eventName} on main thread host.`);\n }\n return event;\n }\n if (propertyIsEvent(eventName)) {\n const event = host[eventName];\n if (typeof event !== 'function') {\n throw new Error(`Missing event ${eventName} on main thread host.`);\n }\n return event;\n }\n throw new Error(`Malformed event name ${eventName}`);\n }\n });\n this._protocol.setWorkerId(this._worker.getId());\n // Gather loader configuration\n let loaderConfiguration = null;\n if (typeof globals.require !== 'undefined' && typeof globals.require.getConfig === 'function') {\n // Get the configuration from the Monaco AMD Loader\n loaderConfiguration = globals.require.getConfig();\n }\n else if (typeof globals.requirejs !== 'undefined') {\n // Get the configuration from requirejs\n loaderConfiguration = globals.requirejs.s.contexts._.config;\n }\n const hostMethods = types.getAllMethodNames(host);\n // Send initialize message\n this._onModuleLoaded = this._protocol.sendMessage(INITIALIZE, [\n this._worker.getId(),\n JSON.parse(JSON.stringify(loaderConfiguration)),\n moduleId,\n hostMethods,\n ]);\n // Create proxy to loaded code\n const proxyMethodRequest = (method, args) => {\n return this._request(method, args);\n };\n const proxyListen = (eventName, arg) => {\n return this._protocol.listen(eventName, arg);\n };\n this._lazyProxy = new Promise((resolve, reject) => {\n lazyProxyReject = reject;\n this._onModuleLoaded.then((availableMethods) => {\n resolve(createProxyObject(availableMethods, proxyMethodRequest, proxyListen));\n }, (e) => {\n reject(e);\n this._onError('Worker failed to load ' + moduleId, e);\n });\n });\n }\n getProxyObject() {\n return this._lazyProxy;\n }\n _request(method, args) {\n return new Promise((resolve, reject) => {\n this._onModuleLoaded.then(() => {\n this._protocol.sendMessage(method, args).then(resolve, reject);\n }, reject);\n });\n }\n _onError(message, error) {\n console.error(message);\n console.info(error);\n }\n}\nfunction propertyIsEvent(name) {\n // Assume a property is an event if it has a form of \"onSomething\"\n return name[0] === 'o' && name[1] === 'n' && strings.isUpperAsciiLetter(name.charCodeAt(2));\n}\nfunction propertyIsDynamicEvent(name) {\n // Assume a property is a dynamic event (a method that returns an event) if it has a form of \"onDynamicSomething\"\n return /^onDynamic/.test(name) && strings.isUpperAsciiLetter(name.charCodeAt(9));\n}\nfunction createProxyObject(methodNames, invoke, proxyListen) {\n const createProxyMethod = (method) => {\n return function () {\n const args = Array.prototype.slice.call(arguments, 0);\n return invoke(method, args);\n };\n };\n const createProxyDynamicEvent = (eventName) => {\n return function (arg) {\n return proxyListen(eventName, arg);\n };\n };\n let result = {};\n for (const methodName of methodNames) {\n if (propertyIsDynamicEvent(methodName)) {\n result[methodName] = createProxyDynamicEvent(methodName);\n continue;\n }\n if (propertyIsEvent(methodName)) {\n result[methodName] = proxyListen(methodName, undefined);\n continue;\n }\n result[methodName] = createProxyMethod(methodName);\n }\n return result;\n}\n/**\n * Worker side\n */\nexport class SimpleWorkerServer {\n constructor(postMessage, requestHandlerFactory) {\n this._requestHandlerFactory = requestHandlerFactory;\n this._requestHandler = null;\n this._protocol = new SimpleWorkerProtocol({\n sendMessage: (msg, transfer) => {\n postMessage(msg, transfer);\n },\n handleMessage: (method, args) => this._handleMessage(method, args),\n handleEvent: (eventName, arg) => this._handleEvent(eventName, arg)\n });\n }\n onmessage(msg) {\n this._protocol.handleMessage(msg);\n }\n _handleMessage(method, args) {\n if (method === INITIALIZE) {\n return this.initialize(args[0], args[1], args[2], args[3]);\n }\n if (!this._requestHandler || typeof this._requestHandler[method] !== 'function') {\n return Promise.reject(new Error('Missing requestHandler or method: ' + method));\n }\n try {\n return Promise.resolve(this._requestHandler[method].apply(this._requestHandler, args));\n }\n catch (e) {\n return Promise.reject(e);\n }\n }\n _handleEvent(eventName, arg) {\n if (!this._requestHandler) {\n throw new Error(`Missing requestHandler`);\n }\n if (propertyIsDynamicEvent(eventName)) {\n const event = this._requestHandler[eventName].call(this._requestHandler, arg);\n if (typeof event !== 'function') {\n throw new Error(`Missing dynamic event ${eventName} on request handler.`);\n }\n return event;\n }\n if (propertyIsEvent(eventName)) {\n const event = this._requestHandler[eventName];\n if (typeof event !== 'function') {\n throw new Error(`Missing event ${eventName} on request handler.`);\n }\n return event;\n }\n throw new Error(`Malformed event name ${eventName}`);\n }\n initialize(workerId, loaderConfig, moduleId, hostMethods) {\n this._protocol.setWorkerId(workerId);\n const proxyMethodRequest = (method, args) => {\n return this._protocol.sendMessage(method, args);\n };\n const proxyListen = (eventName, arg) => {\n return this._protocol.listen(eventName, arg);\n };\n const hostProxy = createProxyObject(hostMethods, proxyMethodRequest, proxyListen);\n if (this._requestHandlerFactory) {\n // static request handler\n this._requestHandler = this._requestHandlerFactory(hostProxy);\n return Promise.resolve(types.getAllMethodNames(this._requestHandler));\n }\n if (loaderConfig) {\n // Remove 'baseUrl', handling it is beyond scope for now\n if (typeof loaderConfig.baseUrl !== 'undefined') {\n delete loaderConfig['baseUrl'];\n }\n if (typeof loaderConfig.paths !== 'undefined') {\n if (typeof loaderConfig.paths.vs !== 'undefined') {\n delete loaderConfig.paths['vs'];\n }\n }\n if (typeof loaderConfig.trustedTypesPolicy !== undefined) {\n // don't use, it has been destroyed during serialize\n delete loaderConfig['trustedTypesPolicy'];\n }\n // Since this is in a web worker, enable catching errors\n loaderConfig.catchError = true;\n globals.require.config(loaderConfig);\n }\n return new Promise((resolve, reject) => {\n // Use the global require to be sure to get the global config\n // ESM-comment-begin\n // \t\t\tconst req = (globals.require || require);\n // ESM-comment-end\n // ESM-uncomment-begin\n const req = globals.require;\n // ESM-uncomment-end\n req([moduleId], (module) => {\n this._requestHandler = module.create(hostProxy);\n if (!this._requestHandler) {\n reject(new Error(`No RequestHandler!`));\n return;\n }\n resolve(types.getAllMethodNames(this._requestHandler));\n }, reject);\n });\n }\n}\n/**\n * Called on the worker side\n */\nexport function create(postMessage) {\n return new SimpleWorkerServer(postMessage, null);\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/**\n * Represents information about a specific difference between two sequences.\n */\nexport class DiffChange {\n /**\n * Constructs a new DiffChange with the given sequence information\n * and content.\n */\n constructor(originalStart, originalLength, modifiedStart, modifiedLength) {\n //Debug.Assert(originalLength > 0 || modifiedLength > 0, \"originalLength and modifiedLength cannot both be <= 0\");\n this.originalStart = originalStart;\n this.originalLength = originalLength;\n this.modifiedStart = modifiedStart;\n this.modifiedLength = modifiedLength;\n }\n /**\n * The end point (exclusive) of the change in the original sequence.\n */\n getOriginalEnd() {\n return this.originalStart + this.originalLength;\n }\n /**\n * The end point (exclusive) of the change in the modified sequence.\n */\n getModifiedEnd() {\n return this.modifiedStart + this.modifiedLength;\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport * as strings from './strings.js';\n/**\n * Return a hash value for an object.\n */\nexport function hash(obj) {\n return doHash(obj, 0);\n}\nexport function doHash(obj, hashVal) {\n switch (typeof obj) {\n case 'object':\n if (obj === null) {\n return numberHash(349, hashVal);\n }\n else if (Array.isArray(obj)) {\n return arrayHash(obj, hashVal);\n }\n return objectHash(obj, hashVal);\n case 'string':\n return stringHash(obj, hashVal);\n case 'boolean':\n return booleanHash(obj, hashVal);\n case 'number':\n return numberHash(obj, hashVal);\n case 'undefined':\n return numberHash(937, hashVal);\n default:\n return numberHash(617, hashVal);\n }\n}\nexport function numberHash(val, initialHashVal) {\n return (((initialHashVal << 5) - initialHashVal) + val) | 0; // hashVal * 31 + ch, keep as int32\n}\nfunction booleanHash(b, initialHashVal) {\n return numberHash(b ? 433 : 863, initialHashVal);\n}\nexport function stringHash(s, hashVal) {\n hashVal = numberHash(149417, hashVal);\n for (let i = 0, length = s.length; i < length; i++) {\n hashVal = numberHash(s.charCodeAt(i), hashVal);\n }\n return hashVal;\n}\nfunction arrayHash(arr, initialHashVal) {\n initialHashVal = numberHash(104579, initialHashVal);\n return arr.reduce((hashVal, item) => doHash(item, hashVal), initialHashVal);\n}\nfunction objectHash(obj, initialHashVal) {\n initialHashVal = numberHash(181387, initialHashVal);\n return Object.keys(obj).sort().reduce((hashVal, key) => {\n hashVal = stringHash(key, hashVal);\n return doHash(obj[key], hashVal);\n }, initialHashVal);\n}\nfunction leftRotate(value, bits, totalBits = 32) {\n // delta + bits = totalBits\n const delta = totalBits - bits;\n // All ones, expect `delta` zeros aligned to the right\n const mask = ~((1 << delta) - 1);\n // Join (value left-shifted `bits` bits) with (masked value right-shifted `delta` bits)\n return ((value << bits) | ((mask & value) >>> delta)) >>> 0;\n}\nfunction fill(dest, index = 0, count = dest.byteLength, value = 0) {\n for (let i = 0; i < count; i++) {\n dest[index + i] = value;\n }\n}\nfunction leftPad(value, length, char = '0') {\n while (value.length < length) {\n value = char + value;\n }\n return value;\n}\nexport function toHexString(bufferOrValue, bitsize = 32) {\n if (bufferOrValue instanceof ArrayBuffer) {\n return Array.from(new Uint8Array(bufferOrValue)).map(b => b.toString(16).padStart(2, '0')).join('');\n }\n return leftPad((bufferOrValue >>> 0).toString(16), bitsize / 4);\n}\n/**\n * A SHA1 implementation that works with strings and does not allocate.\n */\nexport class StringSHA1 {\n constructor() {\n this._h0 = 0x67452301;\n this._h1 = 0xEFCDAB89;\n this._h2 = 0x98BADCFE;\n this._h3 = 0x10325476;\n this._h4 = 0xC3D2E1F0;\n this._buff = new Uint8Array(64 /* BLOCK_SIZE */ + 3 /* to fit any utf-8 */);\n this._buffDV = new DataView(this._buff.buffer);\n this._buffLen = 0;\n this._totalLen = 0;\n this._leftoverHighSurrogate = 0;\n this._finished = false;\n }\n update(str) {\n const strLen = str.length;\n if (strLen === 0) {\n return;\n }\n const buff = this._buff;\n let buffLen = this._buffLen;\n let leftoverHighSurrogate = this._leftoverHighSurrogate;\n let charCode;\n let offset;\n if (leftoverHighSurrogate !== 0) {\n charCode = leftoverHighSurrogate;\n offset = -1;\n leftoverHighSurrogate = 0;\n }\n else {\n charCode = str.charCodeAt(0);\n offset = 0;\n }\n while (true) {\n let codePoint = charCode;\n if (strings.isHighSurrogate(charCode)) {\n if (offset + 1 < strLen) {\n const nextCharCode = str.charCodeAt(offset + 1);\n if (strings.isLowSurrogate(nextCharCode)) {\n offset++;\n codePoint = strings.computeCodePoint(charCode, nextCharCode);\n }\n else {\n // illegal => unicode replacement character\n codePoint = 65533 /* UNICODE_REPLACEMENT */;\n }\n }\n else {\n // last character is a surrogate pair\n leftoverHighSurrogate = charCode;\n break;\n }\n }\n else if (strings.isLowSurrogate(charCode)) {\n // illegal => unicode replacement character\n codePoint = 65533 /* UNICODE_REPLACEMENT */;\n }\n buffLen = this._push(buff, buffLen, codePoint);\n offset++;\n if (offset < strLen) {\n charCode = str.charCodeAt(offset);\n }\n else {\n break;\n }\n }\n this._buffLen = buffLen;\n this._leftoverHighSurrogate = leftoverHighSurrogate;\n }\n _push(buff, buffLen, codePoint) {\n if (codePoint < 0x0080) {\n buff[buffLen++] = codePoint;\n }\n else if (codePoint < 0x0800) {\n buff[buffLen++] = 0b11000000 | ((codePoint & 0b00000000000000000000011111000000) >>> 6);\n buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000000000111111) >>> 0);\n }\n else if (codePoint < 0x10000) {\n buff[buffLen++] = 0b11100000 | ((codePoint & 0b00000000000000001111000000000000) >>> 12);\n buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000111111000000) >>> 6);\n buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000000000111111) >>> 0);\n }\n else {\n buff[buffLen++] = 0b11110000 | ((codePoint & 0b00000000000111000000000000000000) >>> 18);\n buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000111111000000000000) >>> 12);\n buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000111111000000) >>> 6);\n buff[buffLen++] = 0b10000000 | ((codePoint & 0b00000000000000000000000000111111) >>> 0);\n }\n if (buffLen >= 64 /* BLOCK_SIZE */) {\n this._step();\n buffLen -= 64 /* BLOCK_SIZE */;\n this._totalLen += 64 /* BLOCK_SIZE */;\n // take last 3 in case of UTF8 overflow\n buff[0] = buff[64 /* BLOCK_SIZE */ + 0];\n buff[1] = buff[64 /* BLOCK_SIZE */ + 1];\n buff[2] = buff[64 /* BLOCK_SIZE */ + 2];\n }\n return buffLen;\n }\n digest() {\n if (!this._finished) {\n this._finished = true;\n if (this._leftoverHighSurrogate) {\n // illegal => unicode replacement character\n this._leftoverHighSurrogate = 0;\n this._buffLen = this._push(this._buff, this._buffLen, 65533 /* UNICODE_REPLACEMENT */);\n }\n this._totalLen += this._buffLen;\n this._wrapUp();\n }\n return toHexString(this._h0) + toHexString(this._h1) + toHexString(this._h2) + toHexString(this._h3) + toHexString(this._h4);\n }\n _wrapUp() {\n this._buff[this._buffLen++] = 0x80;\n fill(this._buff, this._buffLen);\n if (this._buffLen > 56) {\n this._step();\n fill(this._buff);\n }\n // this will fit because the mantissa can cover up to 52 bits\n const ml = 8 * this._totalLen;\n this._buffDV.setUint32(56, Math.floor(ml / 4294967296), false);\n this._buffDV.setUint32(60, ml % 4294967296, false);\n this._step();\n }\n _step() {\n const bigBlock32 = StringSHA1._bigBlock32;\n const data = this._buffDV;\n for (let j = 0; j < 64 /* 16*4 */; j += 4) {\n bigBlock32.setUint32(j, data.getUint32(j, false), false);\n }\n for (let j = 64; j < 320 /* 80*4 */; j += 4) {\n bigBlock32.setUint32(j, leftRotate((bigBlock32.getUint32(j - 12, false) ^ bigBlock32.getUint32(j - 32, false) ^ bigBlock32.getUint32(j - 56, false) ^ bigBlock32.getUint32(j - 64, false)), 1), false);\n }\n let a = this._h0;\n let b = this._h1;\n let c = this._h2;\n let d = this._h3;\n let e = this._h4;\n let f, k;\n let temp;\n for (let j = 0; j < 80; j++) {\n if (j < 20) {\n f = (b & c) | ((~b) & d);\n k = 0x5A827999;\n }\n else if (j < 40) {\n f = b ^ c ^ d;\n k = 0x6ED9EBA1;\n }\n else if (j < 60) {\n f = (b & c) | (b & d) | (c & d);\n k = 0x8F1BBCDC;\n }\n else {\n f = b ^ c ^ d;\n k = 0xCA62C1D6;\n }\n temp = (leftRotate(a, 5) + f + e + k + bigBlock32.getUint32(j * 4, false)) & 0xffffffff;\n e = d;\n d = c;\n c = leftRotate(b, 30);\n b = a;\n a = temp;\n }\n this._h0 = (this._h0 + a) & 0xffffffff;\n this._h1 = (this._h1 + b) & 0xffffffff;\n this._h2 = (this._h2 + c) & 0xffffffff;\n this._h3 = (this._h3 + d) & 0xffffffff;\n this._h4 = (this._h4 + e) & 0xffffffff;\n }\n}\nStringSHA1._bigBlock32 = new DataView(new ArrayBuffer(320)); // 80 * 4 = 320\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { DiffChange } from './diffChange.js';\nimport { stringHash } from '../hash.js';\nexport class StringDiffSequence {\n constructor(source) {\n this.source = source;\n }\n getElements() {\n const source = this.source;\n const characters = new Int32Array(source.length);\n for (let i = 0, len = source.length; i < len; i++) {\n characters[i] = source.charCodeAt(i);\n }\n return characters;\n }\n}\nexport function stringDiff(original, modified, pretty) {\n return new LcsDiff(new StringDiffSequence(original), new StringDiffSequence(modified)).ComputeDiff(pretty).changes;\n}\n//\n// The code below has been ported from a C# implementation in VS\n//\nexport class Debug {\n static Assert(condition, message) {\n if (!condition) {\n throw new Error(message);\n }\n }\n}\nexport class MyArray {\n /**\n * Copies a range of elements from an Array starting at the specified source index and pastes\n * them to another Array starting at the specified destination index. The length and the indexes\n * are specified as 64-bit integers.\n * sourceArray:\n *\t\tThe Array that contains the data to copy.\n * sourceIndex:\n *\t\tA 64-bit integer that represents the index in the sourceArray at which copying begins.\n * destinationArray:\n *\t\tThe Array that receives the data.\n * destinationIndex:\n *\t\tA 64-bit integer that represents the index in the destinationArray at which storing begins.\n * length:\n *\t\tA 64-bit integer that represents the number of elements to copy.\n */\n static Copy(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {\n for (let i = 0; i < length; i++) {\n destinationArray[destinationIndex + i] = sourceArray[sourceIndex + i];\n }\n }\n static Copy2(sourceArray, sourceIndex, destinationArray, destinationIndex, length) {\n for (let i = 0; i < length; i++) {\n destinationArray[destinationIndex + i] = sourceArray[sourceIndex + i];\n }\n }\n}\n/**\n * A utility class which helps to create the set of DiffChanges from\n * a difference operation. This class accepts original DiffElements and\n * modified DiffElements that are involved in a particular change. The\n * MarkNextChange() method can be called to mark the separation between\n * distinct changes. At the end, the Changes property can be called to retrieve\n * the constructed changes.\n */\nclass DiffChangeHelper {\n /**\n * Constructs a new DiffChangeHelper for the given DiffSequences.\n */\n constructor() {\n this.m_changes = [];\n this.m_originalStart = 1073741824 /* MAX_SAFE_SMALL_INTEGER */;\n this.m_modifiedStart = 1073741824 /* MAX_SAFE_SMALL_INTEGER */;\n this.m_originalCount = 0;\n this.m_modifiedCount = 0;\n }\n /**\n * Marks the beginning of the next change in the set of differences.\n */\n MarkNextChange() {\n // Only add to the list if there is something to add\n if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {\n // Add the new change to our list\n this.m_changes.push(new DiffChange(this.m_originalStart, this.m_originalCount, this.m_modifiedStart, this.m_modifiedCount));\n }\n // Reset for the next change\n this.m_originalCount = 0;\n this.m_modifiedCount = 0;\n this.m_originalStart = 1073741824 /* MAX_SAFE_SMALL_INTEGER */;\n this.m_modifiedStart = 1073741824 /* MAX_SAFE_SMALL_INTEGER */;\n }\n /**\n * Adds the original element at the given position to the elements\n * affected by the current change. The modified index gives context\n * to the change position with respect to the original sequence.\n * @param originalIndex The index of the original element to add.\n * @param modifiedIndex The index of the modified element that provides corresponding position in the modified sequence.\n */\n AddOriginalElement(originalIndex, modifiedIndex) {\n // The 'true' start index is the smallest of the ones we've seen\n this.m_originalStart = Math.min(this.m_originalStart, originalIndex);\n this.m_modifiedStart = Math.min(this.m_modifiedStart, modifiedIndex);\n this.m_originalCount++;\n }\n /**\n * Adds the modified element at the given position to the elements\n * affected by the current change. The original index gives context\n * to the change position with respect to the modified sequence.\n * @param originalIndex The index of the original element that provides corresponding position in the original sequence.\n * @param modifiedIndex The index of the modified element to add.\n */\n AddModifiedElement(originalIndex, modifiedIndex) {\n // The 'true' start index is the smallest of the ones we've seen\n this.m_originalStart = Math.min(this.m_originalStart, originalIndex);\n this.m_modifiedStart = Math.min(this.m_modifiedStart, modifiedIndex);\n this.m_modifiedCount++;\n }\n /**\n * Retrieves all of the changes marked by the class.\n */\n getChanges() {\n if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {\n // Finish up on whatever is left\n this.MarkNextChange();\n }\n return this.m_changes;\n }\n /**\n * Retrieves all of the changes marked by the class in the reverse order\n */\n getReverseChanges() {\n if (this.m_originalCount > 0 || this.m_modifiedCount > 0) {\n // Finish up on whatever is left\n this.MarkNextChange();\n }\n this.m_changes.reverse();\n return this.m_changes;\n }\n}\n/**\n * An implementation of the difference algorithm described in\n * \"An O(ND) Difference Algorithm and its variations\" by Eugene W. Myers\n */\nexport class LcsDiff {\n /**\n * Constructs the DiffFinder\n */\n constructor(originalSequence, modifiedSequence, continueProcessingPredicate = null) {\n this.ContinueProcessingPredicate = continueProcessingPredicate;\n this._originalSequence = originalSequence;\n this._modifiedSequence = modifiedSequence;\n const [originalStringElements, originalElementsOrHash, originalHasStrings] = LcsDiff._getElements(originalSequence);\n const [modifiedStringElements, modifiedElementsOrHash, modifiedHasStrings] = LcsDiff._getElements(modifiedSequence);\n this._hasStrings = (originalHasStrings && modifiedHasStrings);\n this._originalStringElements = originalStringElements;\n this._originalElementsOrHash = originalElementsOrHash;\n this._modifiedStringElements = modifiedStringElements;\n this._modifiedElementsOrHash = modifiedElementsOrHash;\n this.m_forwardHistory = [];\n this.m_reverseHistory = [];\n }\n static _isStringArray(arr) {\n return (arr.length > 0 && typeof arr[0] === 'string');\n }\n static _getElements(sequence) {\n const elements = sequence.getElements();\n if (LcsDiff._isStringArray(elements)) {\n const hashes = new Int32Array(elements.length);\n for (let i = 0, len = elements.length; i < len; i++) {\n hashes[i] = stringHash(elements[i], 0);\n }\n return [elements, hashes, true];\n }\n if (elements instanceof Int32Array) {\n return [[], elements, false];\n }\n return [[], new Int32Array(elements), false];\n }\n ElementsAreEqual(originalIndex, newIndex) {\n if (this._originalElementsOrHash[originalIndex] !== this._modifiedElementsOrHash[newIndex]) {\n return false;\n }\n return (this._hasStrings ? this._originalStringElements[originalIndex] === this._modifiedStringElements[newIndex] : true);\n }\n ElementsAreStrictEqual(originalIndex, newIndex) {\n if (!this.ElementsAreEqual(originalIndex, newIndex)) {\n return false;\n }\n const originalElement = LcsDiff._getStrictElement(this._originalSequence, originalIndex);\n const modifiedElement = LcsDiff._getStrictElement(this._modifiedSequence, newIndex);\n return (originalElement === modifiedElement);\n }\n static _getStrictElement(sequence, index) {\n if (typeof sequence.getStrictElement === 'function') {\n return sequence.getStrictElement(index);\n }\n return null;\n }\n OriginalElementsAreEqual(index1, index2) {\n if (this._originalElementsOrHash[index1] !== this._originalElementsOrHash[index2]) {\n return false;\n }\n return (this._hasStrings ? this._originalStringElements[index1] === this._originalStringElements[index2] : true);\n }\n ModifiedElementsAreEqual(index1, index2) {\n if (this._modifiedElementsOrHash[index1] !== this._modifiedElementsOrHash[index2]) {\n return false;\n }\n return (this._hasStrings ? this._modifiedStringElements[index1] === this._modifiedStringElements[index2] : true);\n }\n ComputeDiff(pretty) {\n return this._ComputeDiff(0, this._originalElementsOrHash.length - 1, 0, this._modifiedElementsOrHash.length - 1, pretty);\n }\n /**\n * Computes the differences between the original and modified input\n * sequences on the bounded range.\n * @returns An array of the differences between the two input sequences.\n */\n _ComputeDiff(originalStart, originalEnd, modifiedStart, modifiedEnd, pretty) {\n const quitEarlyArr = [false];\n let changes = this.ComputeDiffRecursive(originalStart, originalEnd, modifiedStart, modifiedEnd, quitEarlyArr);\n if (pretty) {\n // We have to clean up the computed diff to be more intuitive\n // but it turns out this cannot be done correctly until the entire set\n // of diffs have been computed\n changes = this.PrettifyChanges(changes);\n }\n return {\n quitEarly: quitEarlyArr[0],\n changes: changes\n };\n }\n /**\n * Private helper method which computes the differences on the bounded range\n * recursively.\n * @returns An array of the differences between the two input sequences.\n */\n ComputeDiffRecursive(originalStart, originalEnd, modifiedStart, modifiedEnd, quitEarlyArr) {\n quitEarlyArr[0] = false;\n // Find the start of the differences\n while (originalStart <= originalEnd && modifiedStart <= modifiedEnd && this.ElementsAreEqual(originalStart, modifiedStart)) {\n originalStart++;\n modifiedStart++;\n }\n // Find the end of the differences\n while (originalEnd >= originalStart && modifiedEnd >= modifiedStart && this.ElementsAreEqual(originalEnd, modifiedEnd)) {\n originalEnd--;\n modifiedEnd--;\n }\n // In the special case where we either have all insertions or all deletions or the sequences are identical\n if (originalStart > originalEnd || modifiedStart > modifiedEnd) {\n let changes;\n if (modifiedStart <= modifiedEnd) {\n Debug.Assert(originalStart === originalEnd + 1, 'originalStart should only be one more than originalEnd');\n // All insertions\n changes = [\n new DiffChange(originalStart, 0, modifiedStart, modifiedEnd - modifiedStart + 1)\n ];\n }\n else if (originalStart <= originalEnd) {\n Debug.Assert(modifiedStart === modifiedEnd + 1, 'modifiedStart should only be one more than modifiedEnd');\n // All deletions\n changes = [\n new DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, 0)\n ];\n }\n else {\n Debug.Assert(originalStart === originalEnd + 1, 'originalStart should only be one more than originalEnd');\n Debug.Assert(modifiedStart === modifiedEnd + 1, 'modifiedStart should only be one more than modifiedEnd');\n // Identical sequences - No differences\n changes = [];\n }\n return changes;\n }\n // This problem can be solved using the Divide-And-Conquer technique.\n const midOriginalArr = [0];\n const midModifiedArr = [0];\n const result = this.ComputeRecursionPoint(originalStart, originalEnd, modifiedStart, modifiedEnd, midOriginalArr, midModifiedArr, quitEarlyArr);\n const midOriginal = midOriginalArr[0];\n const midModified = midModifiedArr[0];\n if (result !== null) {\n // Result is not-null when there was enough memory to compute the changes while\n // searching for the recursion point\n return result;\n }\n else if (!quitEarlyArr[0]) {\n // We can break the problem down recursively by finding the changes in the\n // First Half: (originalStart, modifiedStart) to (midOriginal, midModified)\n // Second Half: (midOriginal + 1, minModified + 1) to (originalEnd, modifiedEnd)\n // NOTE: ComputeDiff() is inclusive, therefore the second range starts on the next point\n const leftChanges = this.ComputeDiffRecursive(originalStart, midOriginal, modifiedStart, midModified, quitEarlyArr);\n let rightChanges = [];\n if (!quitEarlyArr[0]) {\n rightChanges = this.ComputeDiffRecursive(midOriginal + 1, originalEnd, midModified + 1, modifiedEnd, quitEarlyArr);\n }\n else {\n // We didn't have time to finish the first half, so we don't have time to compute this half.\n // Consider the entire rest of the sequence different.\n rightChanges = [\n new DiffChange(midOriginal + 1, originalEnd - (midOriginal + 1) + 1, midModified + 1, modifiedEnd - (midModified + 1) + 1)\n ];\n }\n return this.ConcatenateChanges(leftChanges, rightChanges);\n }\n // If we hit here, we quit early, and so can't return anything meaningful\n return [\n new DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)\n ];\n }\n WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr) {\n let forwardChanges = null;\n let reverseChanges = null;\n // First, walk backward through the forward diagonals history\n let changeHelper = new DiffChangeHelper();\n let diagonalMin = diagonalForwardStart;\n let diagonalMax = diagonalForwardEnd;\n let diagonalRelative = (midOriginalArr[0] - midModifiedArr[0]) - diagonalForwardOffset;\n let lastOriginalIndex = -1073741824 /* MIN_SAFE_SMALL_INTEGER */;\n let historyIndex = this.m_forwardHistory.length - 1;\n do {\n // Get the diagonal index from the relative diagonal number\n const diagonal = diagonalRelative + diagonalForwardBase;\n // Figure out where we came from\n if (diagonal === diagonalMin || (diagonal < diagonalMax && forwardPoints[diagonal - 1] < forwardPoints[diagonal + 1])) {\n // Vertical line (the element is an insert)\n originalIndex = forwardPoints[diagonal + 1];\n modifiedIndex = originalIndex - diagonalRelative - diagonalForwardOffset;\n if (originalIndex < lastOriginalIndex) {\n changeHelper.MarkNextChange();\n }\n lastOriginalIndex = originalIndex;\n changeHelper.AddModifiedElement(originalIndex + 1, modifiedIndex);\n diagonalRelative = (diagonal + 1) - diagonalForwardBase; //Setup for the next iteration\n }\n else {\n // Horizontal line (the element is a deletion)\n originalIndex = forwardPoints[diagonal - 1] + 1;\n modifiedIndex = originalIndex - diagonalRelative - diagonalForwardOffset;\n if (originalIndex < lastOriginalIndex) {\n changeHelper.MarkNextChange();\n }\n lastOriginalIndex = originalIndex - 1;\n changeHelper.AddOriginalElement(originalIndex, modifiedIndex + 1);\n diagonalRelative = (diagonal - 1) - diagonalForwardBase; //Setup for the next iteration\n }\n if (historyIndex >= 0) {\n forwardPoints = this.m_forwardHistory[historyIndex];\n diagonalForwardBase = forwardPoints[0]; //We stored this in the first spot\n diagonalMin = 1;\n diagonalMax = forwardPoints.length - 1;\n }\n } while (--historyIndex >= -1);\n // Ironically, we get the forward changes as the reverse of the\n // order we added them since we technically added them backwards\n forwardChanges = changeHelper.getReverseChanges();\n if (quitEarlyArr[0]) {\n // TODO: Calculate a partial from the reverse diagonals.\n // For now, just assume everything after the midOriginal/midModified point is a diff\n let originalStartPoint = midOriginalArr[0] + 1;\n let modifiedStartPoint = midModifiedArr[0] + 1;\n if (forwardChanges !== null && forwardChanges.length > 0) {\n const lastForwardChange = forwardChanges[forwardChanges.length - 1];\n originalStartPoint = Math.max(originalStartPoint, lastForwardChange.getOriginalEnd());\n modifiedStartPoint = Math.max(modifiedStartPoint, lastForwardChange.getModifiedEnd());\n }\n reverseChanges = [\n new DiffChange(originalStartPoint, originalEnd - originalStartPoint + 1, modifiedStartPoint, modifiedEnd - modifiedStartPoint + 1)\n ];\n }\n else {\n // Now walk backward through the reverse diagonals history\n changeHelper = new DiffChangeHelper();\n diagonalMin = diagonalReverseStart;\n diagonalMax = diagonalReverseEnd;\n diagonalRelative = (midOriginalArr[0] - midModifiedArr[0]) - diagonalReverseOffset;\n lastOriginalIndex = 1073741824 /* MAX_SAFE_SMALL_INTEGER */;\n historyIndex = (deltaIsEven) ? this.m_reverseHistory.length - 1 : this.m_reverseHistory.length - 2;\n do {\n // Get the diagonal index from the relative diagonal number\n const diagonal = diagonalRelative + diagonalReverseBase;\n // Figure out where we came from\n if (diagonal === diagonalMin || (diagonal < diagonalMax && reversePoints[diagonal - 1] >= reversePoints[diagonal + 1])) {\n // Horizontal line (the element is a deletion))\n originalIndex = reversePoints[diagonal + 1] - 1;\n modifiedIndex = originalIndex - diagonalRelative - diagonalReverseOffset;\n if (originalIndex > lastOriginalIndex) {\n changeHelper.MarkNextChange();\n }\n lastOriginalIndex = originalIndex + 1;\n changeHelper.AddOriginalElement(originalIndex + 1, modifiedIndex + 1);\n diagonalRelative = (diagonal + 1) - diagonalReverseBase; //Setup for the next iteration\n }\n else {\n // Vertical line (the element is an insertion)\n originalIndex = reversePoints[diagonal - 1];\n modifiedIndex = originalIndex - diagonalRelative - diagonalReverseOffset;\n if (originalIndex > lastOriginalIndex) {\n changeHelper.MarkNextChange();\n }\n lastOriginalIndex = originalIndex;\n changeHelper.AddModifiedElement(originalIndex + 1, modifiedIndex + 1);\n diagonalRelative = (diagonal - 1) - diagonalReverseBase; //Setup for the next iteration\n }\n if (historyIndex >= 0) {\n reversePoints = this.m_reverseHistory[historyIndex];\n diagonalReverseBase = reversePoints[0]; //We stored this in the first spot\n diagonalMin = 1;\n diagonalMax = reversePoints.length - 1;\n }\n } while (--historyIndex >= -1);\n // There are cases where the reverse history will find diffs that\n // are correct, but not intuitive, so we need shift them.\n reverseChanges = changeHelper.getChanges();\n }\n return this.ConcatenateChanges(forwardChanges, reverseChanges);\n }\n /**\n * Given the range to compute the diff on, this method finds the point:\n * (midOriginal, midModified)\n * that exists in the middle of the LCS of the two sequences and\n * is the point at which the LCS problem may be broken down recursively.\n * This method will try to keep the LCS trace in memory. If the LCS recursion\n * point is calculated and the full trace is available in memory, then this method\n * will return the change list.\n * @param originalStart The start bound of the original sequence range\n * @param originalEnd The end bound of the original sequence range\n * @param modifiedStart The start bound of the modified sequence range\n * @param modifiedEnd The end bound of the modified sequence range\n * @param midOriginal The middle point of the original sequence range\n * @param midModified The middle point of the modified sequence range\n * @returns The diff changes, if available, otherwise null\n */\n ComputeRecursionPoint(originalStart, originalEnd, modifiedStart, modifiedEnd, midOriginalArr, midModifiedArr, quitEarlyArr) {\n let originalIndex = 0, modifiedIndex = 0;\n let diagonalForwardStart = 0, diagonalForwardEnd = 0;\n let diagonalReverseStart = 0, diagonalReverseEnd = 0;\n // To traverse the edit graph and produce the proper LCS, our actual\n // start position is just outside the given boundary\n originalStart--;\n modifiedStart--;\n // We set these up to make the compiler happy, but they will\n // be replaced before we return with the actual recursion point\n midOriginalArr[0] = 0;\n midModifiedArr[0] = 0;\n // Clear out the history\n this.m_forwardHistory = [];\n this.m_reverseHistory = [];\n // Each cell in the two arrays corresponds to a diagonal in the edit graph.\n // The integer value in the cell represents the originalIndex of the furthest\n // reaching point found so far that ends in that diagonal.\n // The modifiedIndex can be computed mathematically from the originalIndex and the diagonal number.\n const maxDifferences = (originalEnd - originalStart) + (modifiedEnd - modifiedStart);\n const numDiagonals = maxDifferences + 1;\n const forwardPoints = new Int32Array(numDiagonals);\n const reversePoints = new Int32Array(numDiagonals);\n // diagonalForwardBase: Index into forwardPoints of the diagonal which passes through (originalStart, modifiedStart)\n // diagonalReverseBase: Index into reversePoints of the diagonal which passes through (originalEnd, modifiedEnd)\n const diagonalForwardBase = (modifiedEnd - modifiedStart);\n const diagonalReverseBase = (originalEnd - originalStart);\n // diagonalForwardOffset: Geometric offset which allows modifiedIndex to be computed from originalIndex and the\n // diagonal number (relative to diagonalForwardBase)\n // diagonalReverseOffset: Geometric offset which allows modifiedIndex to be computed from originalIndex and the\n // diagonal number (relative to diagonalReverseBase)\n const diagonalForwardOffset = (originalStart - modifiedStart);\n const diagonalReverseOffset = (originalEnd - modifiedEnd);\n // delta: The difference between the end diagonal and the start diagonal. This is used to relate diagonal numbers\n // relative to the start diagonal with diagonal numbers relative to the end diagonal.\n // The Even/Oddn-ness of this delta is important for determining when we should check for overlap\n const delta = diagonalReverseBase - diagonalForwardBase;\n const deltaIsEven = (delta % 2 === 0);\n // Here we set up the start and end points as the furthest points found so far\n // in both the forward and reverse directions, respectively\n forwardPoints[diagonalForwardBase] = originalStart;\n reversePoints[diagonalReverseBase] = originalEnd;\n // Remember if we quit early, and thus need to do a best-effort result instead of a real result.\n quitEarlyArr[0] = false;\n // A couple of points:\n // --With this method, we iterate on the number of differences between the two sequences.\n // The more differences there actually are, the longer this will take.\n // --Also, as the number of differences increases, we have to search on diagonals further\n // away from the reference diagonal (which is diagonalForwardBase for forward, diagonalReverseBase for reverse).\n // --We extend on even diagonals (relative to the reference diagonal) only when numDifferences\n // is even and odd diagonals only when numDifferences is odd.\n for (let numDifferences = 1; numDifferences <= (maxDifferences / 2) + 1; numDifferences++) {\n let furthestOriginalIndex = 0;\n let furthestModifiedIndex = 0;\n // Run the algorithm in the forward direction\n diagonalForwardStart = this.ClipDiagonalBound(diagonalForwardBase - numDifferences, numDifferences, diagonalForwardBase, numDiagonals);\n diagonalForwardEnd = this.ClipDiagonalBound(diagonalForwardBase + numDifferences, numDifferences, diagonalForwardBase, numDiagonals);\n for (let diagonal = diagonalForwardStart; diagonal <= diagonalForwardEnd; diagonal += 2) {\n // STEP 1: We extend the furthest reaching point in the present diagonal\n // by looking at the diagonals above and below and picking the one whose point\n // is further away from the start point (originalStart, modifiedStart)\n if (diagonal === diagonalForwardStart || (diagonal < diagonalForwardEnd && forwardPoints[diagonal - 1] < forwardPoints[diagonal + 1])) {\n originalIndex = forwardPoints[diagonal + 1];\n }\n else {\n originalIndex = forwardPoints[diagonal - 1] + 1;\n }\n modifiedIndex = originalIndex - (diagonal - diagonalForwardBase) - diagonalForwardOffset;\n // Save the current originalIndex so we can test for false overlap in step 3\n const tempOriginalIndex = originalIndex;\n // STEP 2: We can continue to extend the furthest reaching point in the present diagonal\n // so long as the elements are equal.\n while (originalIndex < originalEnd && modifiedIndex < modifiedEnd && this.ElementsAreEqual(originalIndex + 1, modifiedIndex + 1)) {\n originalIndex++;\n modifiedIndex++;\n }\n forwardPoints[diagonal] = originalIndex;\n if (originalIndex + modifiedIndex > furthestOriginalIndex + furthestModifiedIndex) {\n furthestOriginalIndex = originalIndex;\n furthestModifiedIndex = modifiedIndex;\n }\n // STEP 3: If delta is odd (overlap first happens on forward when delta is odd)\n // and diagonal is in the range of reverse diagonals computed for numDifferences-1\n // (the previous iteration; we haven't computed reverse diagonals for numDifferences yet)\n // then check for overlap.\n if (!deltaIsEven && Math.abs(diagonal - diagonalReverseBase) <= (numDifferences - 1)) {\n if (originalIndex >= reversePoints[diagonal]) {\n midOriginalArr[0] = originalIndex;\n midModifiedArr[0] = modifiedIndex;\n if (tempOriginalIndex <= reversePoints[diagonal] && 1447 /* MaxDifferencesHistory */ > 0 && numDifferences <= (1447 /* MaxDifferencesHistory */ + 1)) {\n // BINGO! We overlapped, and we have the full trace in memory!\n return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n }\n else {\n // Either false overlap, or we didn't have enough memory for the full trace\n // Just return the recursion point\n return null;\n }\n }\n }\n }\n // Check to see if we should be quitting early, before moving on to the next iteration.\n const matchLengthOfLongest = ((furthestOriginalIndex - originalStart) + (furthestModifiedIndex - modifiedStart) - numDifferences) / 2;\n if (this.ContinueProcessingPredicate !== null && !this.ContinueProcessingPredicate(furthestOriginalIndex, matchLengthOfLongest)) {\n // We can't finish, so skip ahead to generating a result from what we have.\n quitEarlyArr[0] = true;\n // Use the furthest distance we got in the forward direction.\n midOriginalArr[0] = furthestOriginalIndex;\n midModifiedArr[0] = furthestModifiedIndex;\n if (matchLengthOfLongest > 0 && 1447 /* MaxDifferencesHistory */ > 0 && numDifferences <= (1447 /* MaxDifferencesHistory */ + 1)) {\n // Enough of the history is in memory to walk it backwards\n return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n }\n else {\n // We didn't actually remember enough of the history.\n //Since we are quitting the diff early, we need to shift back the originalStart and modified start\n //back into the boundary limits since we decremented their value above beyond the boundary limit.\n originalStart++;\n modifiedStart++;\n return [\n new DiffChange(originalStart, originalEnd - originalStart + 1, modifiedStart, modifiedEnd - modifiedStart + 1)\n ];\n }\n }\n // Run the algorithm in the reverse direction\n diagonalReverseStart = this.ClipDiagonalBound(diagonalReverseBase - numDifferences, numDifferences, diagonalReverseBase, numDiagonals);\n diagonalReverseEnd = this.ClipDiagonalBound(diagonalReverseBase + numDifferences, numDifferences, diagonalReverseBase, numDiagonals);\n for (let diagonal = diagonalReverseStart; diagonal <= diagonalReverseEnd; diagonal += 2) {\n // STEP 1: We extend the furthest reaching point in the present diagonal\n // by looking at the diagonals above and below and picking the one whose point\n // is further away from the start point (originalEnd, modifiedEnd)\n if (diagonal === diagonalReverseStart || (diagonal < diagonalReverseEnd && reversePoints[diagonal - 1] >= reversePoints[diagonal + 1])) {\n originalIndex = reversePoints[diagonal + 1] - 1;\n }\n else {\n originalIndex = reversePoints[diagonal - 1];\n }\n modifiedIndex = originalIndex - (diagonal - diagonalReverseBase) - diagonalReverseOffset;\n // Save the current originalIndex so we can test for false overlap\n const tempOriginalIndex = originalIndex;\n // STEP 2: We can continue to extend the furthest reaching point in the present diagonal\n // as long as the elements are equal.\n while (originalIndex > originalStart && modifiedIndex > modifiedStart && this.ElementsAreEqual(originalIndex, modifiedIndex)) {\n originalIndex--;\n modifiedIndex--;\n }\n reversePoints[diagonal] = originalIndex;\n // STEP 4: If delta is even (overlap first happens on reverse when delta is even)\n // and diagonal is in the range of forward diagonals computed for numDifferences\n // then check for overlap.\n if (deltaIsEven && Math.abs(diagonal - diagonalForwardBase) <= numDifferences) {\n if (originalIndex <= forwardPoints[diagonal]) {\n midOriginalArr[0] = originalIndex;\n midModifiedArr[0] = modifiedIndex;\n if (tempOriginalIndex >= forwardPoints[diagonal] && 1447 /* MaxDifferencesHistory */ > 0 && numDifferences <= (1447 /* MaxDifferencesHistory */ + 1)) {\n // BINGO! We overlapped, and we have the full trace in memory!\n return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n }\n else {\n // Either false overlap, or we didn't have enough memory for the full trace\n // Just return the recursion point\n return null;\n }\n }\n }\n }\n // Save current vectors to history before the next iteration\n if (numDifferences <= 1447 /* MaxDifferencesHistory */) {\n // We are allocating space for one extra int, which we fill with\n // the index of the diagonal base index\n let temp = new Int32Array(diagonalForwardEnd - diagonalForwardStart + 2);\n temp[0] = diagonalForwardBase - diagonalForwardStart + 1;\n MyArray.Copy2(forwardPoints, diagonalForwardStart, temp, 1, diagonalForwardEnd - diagonalForwardStart + 1);\n this.m_forwardHistory.push(temp);\n temp = new Int32Array(diagonalReverseEnd - diagonalReverseStart + 2);\n temp[0] = diagonalReverseBase - diagonalReverseStart + 1;\n MyArray.Copy2(reversePoints, diagonalReverseStart, temp, 1, diagonalReverseEnd - diagonalReverseStart + 1);\n this.m_reverseHistory.push(temp);\n }\n }\n // If we got here, then we have the full trace in history. We just have to convert it to a change list\n // NOTE: This part is a bit messy\n return this.WALKTRACE(diagonalForwardBase, diagonalForwardStart, diagonalForwardEnd, diagonalForwardOffset, diagonalReverseBase, diagonalReverseStart, diagonalReverseEnd, diagonalReverseOffset, forwardPoints, reversePoints, originalIndex, originalEnd, midOriginalArr, modifiedIndex, modifiedEnd, midModifiedArr, deltaIsEven, quitEarlyArr);\n }\n /**\n * Shifts the given changes to provide a more intuitive diff.\n * While the first element in a diff matches the first element after the diff,\n * we shift the diff down.\n *\n * @param changes The list of changes to shift\n * @returns The shifted changes\n */\n PrettifyChanges(changes) {\n // Shift all the changes down first\n for (let i = 0; i < changes.length; i++) {\n const change = changes[i];\n const originalStop = (i < changes.length - 1) ? changes[i + 1].originalStart : this._originalElementsOrHash.length;\n const modifiedStop = (i < changes.length - 1) ? changes[i + 1].modifiedStart : this._modifiedElementsOrHash.length;\n const checkOriginal = change.originalLength > 0;\n const checkModified = change.modifiedLength > 0;\n while (change.originalStart + change.originalLength < originalStop\n && change.modifiedStart + change.modifiedLength < modifiedStop\n && (!checkOriginal || this.OriginalElementsAreEqual(change.originalStart, change.originalStart + change.originalLength))\n && (!checkModified || this.ModifiedElementsAreEqual(change.modifiedStart, change.modifiedStart + change.modifiedLength))) {\n const startStrictEqual = this.ElementsAreStrictEqual(change.originalStart, change.modifiedStart);\n const endStrictEqual = this.ElementsAreStrictEqual(change.originalStart + change.originalLength, change.modifiedStart + change.modifiedLength);\n if (endStrictEqual && !startStrictEqual) {\n // moving the change down would create an equal change, but the elements are not strict equal\n break;\n }\n change.originalStart++;\n change.modifiedStart++;\n }\n let mergedChangeArr = [null];\n if (i < changes.length - 1 && this.ChangesOverlap(changes[i], changes[i + 1], mergedChangeArr)) {\n changes[i] = mergedChangeArr[0];\n changes.splice(i + 1, 1);\n i--;\n continue;\n }\n }\n // Shift changes back up until we hit empty or whitespace-only lines\n for (let i = changes.length - 1; i >= 0; i--) {\n const change = changes[i];\n let originalStop = 0;\n let modifiedStop = 0;\n if (i > 0) {\n const prevChange = changes[i - 1];\n originalStop = prevChange.originalStart + prevChange.originalLength;\n modifiedStop = prevChange.modifiedStart + prevChange.modifiedLength;\n }\n const checkOriginal = change.originalLength > 0;\n const checkModified = change.modifiedLength > 0;\n let bestDelta = 0;\n let bestScore = this._boundaryScore(change.originalStart, change.originalLength, change.modifiedStart, change.modifiedLength);\n for (let delta = 1;; delta++) {\n const originalStart = change.originalStart - delta;\n const modifiedStart = change.modifiedStart - delta;\n if (originalStart < originalStop || modifiedStart < modifiedStop) {\n break;\n }\n if (checkOriginal && !this.OriginalElementsAreEqual(originalStart, originalStart + change.originalLength)) {\n break;\n }\n if (checkModified && !this.ModifiedElementsAreEqual(modifiedStart, modifiedStart + change.modifiedLength)) {\n break;\n }\n const touchingPreviousChange = (originalStart === originalStop && modifiedStart === modifiedStop);\n const score = ((touchingPreviousChange ? 5 : 0)\n + this._boundaryScore(originalStart, change.originalLength, modifiedStart, change.modifiedLength));\n if (score > bestScore) {\n bestScore = score;\n bestDelta = delta;\n }\n }\n change.originalStart -= bestDelta;\n change.modifiedStart -= bestDelta;\n const mergedChangeArr = [null];\n if (i > 0 && this.ChangesOverlap(changes[i - 1], changes[i], mergedChangeArr)) {\n changes[i - 1] = mergedChangeArr[0];\n changes.splice(i, 1);\n i++;\n continue;\n }\n }\n // There could be multiple longest common substrings.\n // Give preference to the ones containing longer lines\n if (this._hasStrings) {\n for (let i = 1, len = changes.length; i < len; i++) {\n const aChange = changes[i - 1];\n const bChange = changes[i];\n const matchedLength = bChange.originalStart - aChange.originalStart - aChange.originalLength;\n const aOriginalStart = aChange.originalStart;\n const bOriginalEnd = bChange.originalStart + bChange.originalLength;\n const abOriginalLength = bOriginalEnd - aOriginalStart;\n const aModifiedStart = aChange.modifiedStart;\n const bModifiedEnd = bChange.modifiedStart + bChange.modifiedLength;\n const abModifiedLength = bModifiedEnd - aModifiedStart;\n // Avoid wasting a lot of time with these searches\n if (matchedLength < 5 && abOriginalLength < 20 && abModifiedLength < 20) {\n const t = this._findBetterContiguousSequence(aOriginalStart, abOriginalLength, aModifiedStart, abModifiedLength, matchedLength);\n if (t) {\n const [originalMatchStart, modifiedMatchStart] = t;\n if (originalMatchStart !== aChange.originalStart + aChange.originalLength || modifiedMatchStart !== aChange.modifiedStart + aChange.modifiedLength) {\n // switch to another sequence that has a better score\n aChange.originalLength = originalMatchStart - aChange.originalStart;\n aChange.modifiedLength = modifiedMatchStart - aChange.modifiedStart;\n bChange.originalStart = originalMatchStart + matchedLength;\n bChange.modifiedStart = modifiedMatchStart + matchedLength;\n bChange.originalLength = bOriginalEnd - bChange.originalStart;\n bChange.modifiedLength = bModifiedEnd - bChange.modifiedStart;\n }\n }\n }\n }\n }\n return changes;\n }\n _findBetterContiguousSequence(originalStart, originalLength, modifiedStart, modifiedLength, desiredLength) {\n if (originalLength < desiredLength || modifiedLength < desiredLength) {\n return null;\n }\n const originalMax = originalStart + originalLength - desiredLength + 1;\n const modifiedMax = modifiedStart + modifiedLength - desiredLength + 1;\n let bestScore = 0;\n let bestOriginalStart = 0;\n let bestModifiedStart = 0;\n for (let i = originalStart; i < originalMax; i++) {\n for (let j = modifiedStart; j < modifiedMax; j++) {\n const score = this._contiguousSequenceScore(i, j, desiredLength);\n if (score > 0 && score > bestScore) {\n bestScore = score;\n bestOriginalStart = i;\n bestModifiedStart = j;\n }\n }\n }\n if (bestScore > 0) {\n return [bestOriginalStart, bestModifiedStart];\n }\n return null;\n }\n _contiguousSequenceScore(originalStart, modifiedStart, length) {\n let score = 0;\n for (let l = 0; l < length; l++) {\n if (!this.ElementsAreEqual(originalStart + l, modifiedStart + l)) {\n return 0;\n }\n score += this._originalStringElements[originalStart + l].length;\n }\n return score;\n }\n _OriginalIsBoundary(index) {\n if (index <= 0 || index >= this._originalElementsOrHash.length - 1) {\n return true;\n }\n return (this._hasStrings && /^\\s*$/.test(this._originalStringElements[index]));\n }\n _OriginalRegionIsBoundary(originalStart, originalLength) {\n if (this._OriginalIsBoundary(originalStart) || this._OriginalIsBoundary(originalStart - 1)) {\n return true;\n }\n if (originalLength > 0) {\n const originalEnd = originalStart + originalLength;\n if (this._OriginalIsBoundary(originalEnd - 1) || this._OriginalIsBoundary(originalEnd)) {\n return true;\n }\n }\n return false;\n }\n _ModifiedIsBoundary(index) {\n if (index <= 0 || index >= this._modifiedElementsOrHash.length - 1) {\n return true;\n }\n return (this._hasStrings && /^\\s*$/.test(this._modifiedStringElements[index]));\n }\n _ModifiedRegionIsBoundary(modifiedStart, modifiedLength) {\n if (this._ModifiedIsBoundary(modifiedStart) || this._ModifiedIsBoundary(modifiedStart - 1)) {\n return true;\n }\n if (modifiedLength > 0) {\n const modifiedEnd = modifiedStart + modifiedLength;\n if (this._ModifiedIsBoundary(modifiedEnd - 1) || this._ModifiedIsBoundary(modifiedEnd)) {\n return true;\n }\n }\n return false;\n }\n _boundaryScore(originalStart, originalLength, modifiedStart, modifiedLength) {\n const originalScore = (this._OriginalRegionIsBoundary(originalStart, originalLength) ? 1 : 0);\n const modifiedScore = (this._ModifiedRegionIsBoundary(modifiedStart, modifiedLength) ? 1 : 0);\n return (originalScore + modifiedScore);\n }\n /**\n * Concatenates the two input DiffChange lists and returns the resulting\n * list.\n * @param The left changes\n * @param The right changes\n * @returns The concatenated list\n */\n ConcatenateChanges(left, right) {\n let mergedChangeArr = [];\n if (left.length === 0 || right.length === 0) {\n return (right.length > 0) ? right : left;\n }\n else if (this.ChangesOverlap(left[left.length - 1], right[0], mergedChangeArr)) {\n // Since we break the problem down recursively, it is possible that we\n // might recurse in the middle of a change thereby splitting it into\n // two changes. Here in the combining stage, we detect and fuse those\n // changes back together\n const result = new Array(left.length + right.length - 1);\n MyArray.Copy(left, 0, result, 0, left.length - 1);\n result[left.length - 1] = mergedChangeArr[0];\n MyArray.Copy(right, 1, result, left.length, right.length - 1);\n return result;\n }\n else {\n const result = new Array(left.length + right.length);\n MyArray.Copy(left, 0, result, 0, left.length);\n MyArray.Copy(right, 0, result, left.length, right.length);\n return result;\n }\n }\n /**\n * Returns true if the two changes overlap and can be merged into a single\n * change\n * @param left The left change\n * @param right The right change\n * @param mergedChange The merged change if the two overlap, null otherwise\n * @returns True if the two changes overlap\n */\n ChangesOverlap(left, right, mergedChangeArr) {\n Debug.Assert(left.originalStart <= right.originalStart, 'Left change is not less than or equal to right change');\n Debug.Assert(left.modifiedStart <= right.modifiedStart, 'Left change is not less than or equal to right change');\n if (left.originalStart + left.originalLength >= right.originalStart || left.modifiedStart + left.modifiedLength >= right.modifiedStart) {\n const originalStart = left.originalStart;\n let originalLength = left.originalLength;\n const modifiedStart = left.modifiedStart;\n let modifiedLength = left.modifiedLength;\n if (left.originalStart + left.originalLength >= right.originalStart) {\n originalLength = right.originalStart + right.originalLength - left.originalStart;\n }\n if (left.modifiedStart + left.modifiedLength >= right.modifiedStart) {\n modifiedLength = right.modifiedStart + right.modifiedLength - left.modifiedStart;\n }\n mergedChangeArr[0] = new DiffChange(originalStart, originalLength, modifiedStart, modifiedLength);\n return true;\n }\n else {\n mergedChangeArr[0] = null;\n return false;\n }\n }\n /**\n * Helper method used to clip a diagonal index to the range of valid\n * diagonals. This also decides whether or not the diagonal index,\n * if it exceeds the boundary, should be clipped to the boundary or clipped\n * one inside the boundary depending on the Even/Odd status of the boundary\n * and numDifferences.\n * @param diagonal The index of the diagonal to clip.\n * @param numDifferences The current number of differences being iterated upon.\n * @param diagonalBaseIndex The base reference diagonal.\n * @param numDiagonals The total number of diagonals.\n * @returns The clipped diagonal index.\n */\n ClipDiagonalBound(diagonal, numDifferences, diagonalBaseIndex, numDiagonals) {\n if (diagonal >= 0 && diagonal < numDiagonals) {\n // Nothing to clip, its in range\n return diagonal;\n }\n // diagonalsBelow: The number of diagonals below the reference diagonal\n // diagonalsAbove: The number of diagonals above the reference diagonal\n const diagonalsBelow = diagonalBaseIndex;\n const diagonalsAbove = numDiagonals - diagonalBaseIndex - 1;\n const diffEven = (numDifferences % 2 === 0);\n if (diagonal < 0) {\n const lowerBoundEven = (diagonalsBelow % 2 === 0);\n return (diffEven === lowerBoundEven) ? 0 : 1;\n }\n else {\n const upperBoundEven = (diagonalsAbove % 2 === 0);\n return (diffEven === upperBoundEven) ? numDiagonals - 1 : numDiagonals - 2;\n }\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// NOTE: VSCode's copy of nodejs path library to be usable in common (non-node) namespace\n// Copied from: https://github.com/nodejs/node/blob/v14.16.0/lib/path.js\n/**\n * Copyright Joyent, Inc. and other Node contributors.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to permit\n * persons to whom the Software is furnished to do so, subject to the\n * following conditions:\n *\n * The above copyright notice and this permission notice shall be included\n * in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n * USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\nimport * as process from './process.js';\nconst CHAR_UPPERCASE_A = 65; /* A */\nconst CHAR_LOWERCASE_A = 97; /* a */\nconst CHAR_UPPERCASE_Z = 90; /* Z */\nconst CHAR_LOWERCASE_Z = 122; /* z */\nconst CHAR_DOT = 46; /* . */\nconst CHAR_FORWARD_SLASH = 47; /* / */\nconst CHAR_BACKWARD_SLASH = 92; /* \\ */\nconst CHAR_COLON = 58; /* : */\nconst CHAR_QUESTION_MARK = 63; /* ? */\nclass ErrorInvalidArgType extends Error {\n constructor(name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n let determiner;\n if (typeof expected === 'string' && expected.indexOf('not ') === 0) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n }\n else {\n determiner = 'must be';\n }\n const type = name.indexOf('.') !== -1 ? 'property' : 'argument';\n let msg = `The \"${name}\" ${type} ${determiner} of type ${expected}`;\n msg += `. Received type ${typeof actual}`;\n super(msg);\n this.code = 'ERR_INVALID_ARG_TYPE';\n }\n}\nfunction validateString(value, name) {\n if (typeof value !== 'string') {\n throw new ErrorInvalidArgType(name, 'string', value);\n }\n}\nfunction isPathSeparator(code) {\n return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;\n}\nfunction isPosixPathSeparator(code) {\n return code === CHAR_FORWARD_SLASH;\n}\nfunction isWindowsDeviceRoot(code) {\n return (code >= CHAR_UPPERCASE_A && code <= CHAR_UPPERCASE_Z) ||\n (code >= CHAR_LOWERCASE_A && code <= CHAR_LOWERCASE_Z);\n}\n// Resolves . and .. elements in a path with directory names\nfunction normalizeString(path, allowAboveRoot, separator, isPathSeparator) {\n let res = '';\n let lastSegmentLength = 0;\n let lastSlash = -1;\n let dots = 0;\n let code = 0;\n for (let i = 0; i <= path.length; ++i) {\n if (i < path.length) {\n code = path.charCodeAt(i);\n }\n else if (isPathSeparator(code)) {\n break;\n }\n else {\n code = CHAR_FORWARD_SLASH;\n }\n if (isPathSeparator(code)) {\n if (lastSlash === i - 1 || dots === 1) {\n // NOOP\n }\n else if (dots === 2) {\n if (res.length < 2 || lastSegmentLength !== 2 ||\n res.charCodeAt(res.length - 1) !== CHAR_DOT ||\n res.charCodeAt(res.length - 2) !== CHAR_DOT) {\n if (res.length > 2) {\n const lastSlashIndex = res.lastIndexOf(separator);\n if (lastSlashIndex === -1) {\n res = '';\n lastSegmentLength = 0;\n }\n else {\n res = res.slice(0, lastSlashIndex);\n lastSegmentLength = res.length - 1 - res.lastIndexOf(separator);\n }\n lastSlash = i;\n dots = 0;\n continue;\n }\n else if (res.length !== 0) {\n res = '';\n lastSegmentLength = 0;\n lastSlash = i;\n dots = 0;\n continue;\n }\n }\n if (allowAboveRoot) {\n res += res.length > 0 ? `${separator}..` : '..';\n lastSegmentLength = 2;\n }\n }\n else {\n if (res.length > 0) {\n res += `${separator}${path.slice(lastSlash + 1, i)}`;\n }\n else {\n res = path.slice(lastSlash + 1, i);\n }\n lastSegmentLength = i - lastSlash - 1;\n }\n lastSlash = i;\n dots = 0;\n }\n else if (code === CHAR_DOT && dots !== -1) {\n ++dots;\n }\n else {\n dots = -1;\n }\n }\n return res;\n}\nfunction _format(sep, pathObject) {\n if (pathObject === null || typeof pathObject !== 'object') {\n throw new ErrorInvalidArgType('pathObject', 'Object', pathObject);\n }\n const dir = pathObject.dir || pathObject.root;\n const base = pathObject.base ||\n `${pathObject.name || ''}${pathObject.ext || ''}`;\n if (!dir) {\n return base;\n }\n return dir === pathObject.root ? `${dir}${base}` : `${dir}${sep}${base}`;\n}\nexport const win32 = {\n // path.resolve([from ...], to)\n resolve(...pathSegments) {\n let resolvedDevice = '';\n let resolvedTail = '';\n let resolvedAbsolute = false;\n for (let i = pathSegments.length - 1; i >= -1; i--) {\n let path;\n if (i >= 0) {\n path = pathSegments[i];\n validateString(path, 'path');\n // Skip empty entries\n if (path.length === 0) {\n continue;\n }\n }\n else if (resolvedDevice.length === 0) {\n path = process.cwd();\n }\n else {\n // Windows has the concept of drive-specific current working\n // directories. If we've resolved a drive letter but not yet an\n // absolute path, get cwd for that drive, or the process cwd if\n // the drive cwd is not available. We're sure the device is not\n // a UNC path at this points, because UNC paths are always absolute.\n path = process.env[`=${resolvedDevice}`] || process.cwd();\n // Verify that a cwd was found and that it actually points\n // to our drive. If not, default to the drive's root.\n if (path === undefined ||\n (path.slice(0, 2).toLowerCase() !== resolvedDevice.toLowerCase() &&\n path.charCodeAt(2) === CHAR_BACKWARD_SLASH)) {\n path = `${resolvedDevice}\\\\`;\n }\n }\n const len = path.length;\n let rootEnd = 0;\n let device = '';\n let isAbsolute = false;\n const code = path.charCodeAt(0);\n // Try to match a root\n if (len === 1) {\n if (isPathSeparator(code)) {\n // `path` contains just a path separator\n rootEnd = 1;\n isAbsolute = true;\n }\n }\n else if (isPathSeparator(code)) {\n // Possible UNC root\n // If we started with a separator, we know we at least have an\n // absolute path of some kind (UNC or otherwise)\n isAbsolute = true;\n if (isPathSeparator(path.charCodeAt(1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n const firstPart = path.slice(last, j);\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len && isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j === len || j !== last) {\n // We matched a UNC root\n device = `\\\\\\\\${firstPart}\\\\${path.slice(last, j)}`;\n rootEnd = j;\n }\n }\n }\n }\n else {\n rootEnd = 1;\n }\n }\n else if (isWindowsDeviceRoot(code) &&\n path.charCodeAt(1) === CHAR_COLON) {\n // Possible device root\n device = path.slice(0, 2);\n rootEnd = 2;\n if (len > 2 && isPathSeparator(path.charCodeAt(2))) {\n // Treat separator following drive name as an absolute path\n // indicator\n isAbsolute = true;\n rootEnd = 3;\n }\n }\n if (device.length > 0) {\n if (resolvedDevice.length > 0) {\n if (device.toLowerCase() !== resolvedDevice.toLowerCase()) {\n // This path points to another device so it is not applicable\n continue;\n }\n }\n else {\n resolvedDevice = device;\n }\n }\n if (resolvedAbsolute) {\n if (resolvedDevice.length > 0) {\n break;\n }\n }\n else {\n resolvedTail = `${path.slice(rootEnd)}\\\\${resolvedTail}`;\n resolvedAbsolute = isAbsolute;\n if (isAbsolute && resolvedDevice.length > 0) {\n break;\n }\n }\n }\n // At this point the path should be resolved to a full absolute path,\n // but handle relative paths to be safe (might happen when process.cwd()\n // fails)\n // Normalize the tail path\n resolvedTail = normalizeString(resolvedTail, !resolvedAbsolute, '\\\\', isPathSeparator);\n return resolvedAbsolute ?\n `${resolvedDevice}\\\\${resolvedTail}` :\n `${resolvedDevice}${resolvedTail}` || '.';\n },\n normalize(path) {\n validateString(path, 'path');\n const len = path.length;\n if (len === 0) {\n return '.';\n }\n let rootEnd = 0;\n let device;\n let isAbsolute = false;\n const code = path.charCodeAt(0);\n // Try to match a root\n if (len === 1) {\n // `path` contains just a single char, exit early to avoid\n // unnecessary work\n return isPosixPathSeparator(code) ? '\\\\' : path;\n }\n if (isPathSeparator(code)) {\n // Possible UNC root\n // If we started with a separator, we know we at least have an absolute\n // path of some kind (UNC or otherwise)\n isAbsolute = true;\n if (isPathSeparator(path.charCodeAt(1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n const firstPart = path.slice(last, j);\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len && isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j === len) {\n // We matched a UNC root only\n // Return the normalized version of the UNC root since there\n // is nothing left to process\n return `\\\\\\\\${firstPart}\\\\${path.slice(last)}\\\\`;\n }\n if (j !== last) {\n // We matched a UNC root with leftovers\n device = `\\\\\\\\${firstPart}\\\\${path.slice(last, j)}`;\n rootEnd = j;\n }\n }\n }\n }\n else {\n rootEnd = 1;\n }\n }\n else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {\n // Possible device root\n device = path.slice(0, 2);\n rootEnd = 2;\n if (len > 2 && isPathSeparator(path.charCodeAt(2))) {\n // Treat separator following drive name as an absolute path\n // indicator\n isAbsolute = true;\n rootEnd = 3;\n }\n }\n let tail = rootEnd < len ?\n normalizeString(path.slice(rootEnd), !isAbsolute, '\\\\', isPathSeparator) :\n '';\n if (tail.length === 0 && !isAbsolute) {\n tail = '.';\n }\n if (tail.length > 0 && isPathSeparator(path.charCodeAt(len - 1))) {\n tail += '\\\\';\n }\n if (device === undefined) {\n return isAbsolute ? `\\\\${tail}` : tail;\n }\n return isAbsolute ? `${device}\\\\${tail}` : `${device}${tail}`;\n },\n isAbsolute(path) {\n validateString(path, 'path');\n const len = path.length;\n if (len === 0) {\n return false;\n }\n const code = path.charCodeAt(0);\n return isPathSeparator(code) ||\n // Possible device root\n (len > 2 &&\n isWindowsDeviceRoot(code) &&\n path.charCodeAt(1) === CHAR_COLON &&\n isPathSeparator(path.charCodeAt(2)));\n },\n join(...paths) {\n if (paths.length === 0) {\n return '.';\n }\n let joined;\n let firstPart;\n for (let i = 0; i < paths.length; ++i) {\n const arg = paths[i];\n validateString(arg, 'path');\n if (arg.length > 0) {\n if (joined === undefined) {\n joined = firstPart = arg;\n }\n else {\n joined += `\\\\${arg}`;\n }\n }\n }\n if (joined === undefined) {\n return '.';\n }\n // Make sure that the joined path doesn't start with two slashes, because\n // normalize() will mistake it for a UNC path then.\n //\n // This step is skipped when it is very clear that the user actually\n // intended to point at a UNC path. This is assumed when the first\n // non-empty string arguments starts with exactly two slashes followed by\n // at least one more non-slash character.\n //\n // Note that for normalize() to treat a path as a UNC path it needs to\n // have at least 2 components, so we don't filter for that here.\n // This means that the user can use join to construct UNC paths from\n // a server name and a share name; for example:\n // path.join('//server', 'share') -> '\\\\\\\\server\\\\share\\\\')\n let needsReplace = true;\n let slashCount = 0;\n if (typeof firstPart === 'string' && isPathSeparator(firstPart.charCodeAt(0))) {\n ++slashCount;\n const firstLen = firstPart.length;\n if (firstLen > 1 && isPathSeparator(firstPart.charCodeAt(1))) {\n ++slashCount;\n if (firstLen > 2) {\n if (isPathSeparator(firstPart.charCodeAt(2))) {\n ++slashCount;\n }\n else {\n // We matched a UNC path in the first part\n needsReplace = false;\n }\n }\n }\n }\n if (needsReplace) {\n // Find any more consecutive slashes we need to replace\n while (slashCount < joined.length &&\n isPathSeparator(joined.charCodeAt(slashCount))) {\n slashCount++;\n }\n // Replace the slashes if needed\n if (slashCount >= 2) {\n joined = `\\\\${joined.slice(slashCount)}`;\n }\n }\n return win32.normalize(joined);\n },\n // It will solve the relative path from `from` to `to`, for instance:\n // from = 'C:\\\\orandea\\\\test\\\\aaa'\n // to = 'C:\\\\orandea\\\\impl\\\\bbb'\n // The output of the function should be: '..\\\\..\\\\impl\\\\bbb'\n relative(from, to) {\n validateString(from, 'from');\n validateString(to, 'to');\n if (from === to) {\n return '';\n }\n const fromOrig = win32.resolve(from);\n const toOrig = win32.resolve(to);\n if (fromOrig === toOrig) {\n return '';\n }\n from = fromOrig.toLowerCase();\n to = toOrig.toLowerCase();\n if (from === to) {\n return '';\n }\n // Trim any leading backslashes\n let fromStart = 0;\n while (fromStart < from.length &&\n from.charCodeAt(fromStart) === CHAR_BACKWARD_SLASH) {\n fromStart++;\n }\n // Trim trailing backslashes (applicable to UNC paths only)\n let fromEnd = from.length;\n while (fromEnd - 1 > fromStart &&\n from.charCodeAt(fromEnd - 1) === CHAR_BACKWARD_SLASH) {\n fromEnd--;\n }\n const fromLen = fromEnd - fromStart;\n // Trim any leading backslashes\n let toStart = 0;\n while (toStart < to.length &&\n to.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) {\n toStart++;\n }\n // Trim trailing backslashes (applicable to UNC paths only)\n let toEnd = to.length;\n while (toEnd - 1 > toStart &&\n to.charCodeAt(toEnd - 1) === CHAR_BACKWARD_SLASH) {\n toEnd--;\n }\n const toLen = toEnd - toStart;\n // Compare paths to find the longest common path from root\n const length = fromLen < toLen ? fromLen : toLen;\n let lastCommonSep = -1;\n let i = 0;\n for (; i < length; i++) {\n const fromCode = from.charCodeAt(fromStart + i);\n if (fromCode !== to.charCodeAt(toStart + i)) {\n break;\n }\n else if (fromCode === CHAR_BACKWARD_SLASH) {\n lastCommonSep = i;\n }\n }\n // We found a mismatch before the first common path separator was seen, so\n // return the original `to`.\n if (i !== length) {\n if (lastCommonSep === -1) {\n return toOrig;\n }\n }\n else {\n if (toLen > length) {\n if (to.charCodeAt(toStart + i) === CHAR_BACKWARD_SLASH) {\n // We get here if `from` is the exact base path for `to`.\n // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\foo\\\\bar\\\\baz'\n return toOrig.slice(toStart + i + 1);\n }\n if (i === 2) {\n // We get here if `from` is the device root.\n // For example: from='C:\\\\'; to='C:\\\\foo'\n return toOrig.slice(toStart + i);\n }\n }\n if (fromLen > length) {\n if (from.charCodeAt(fromStart + i) === CHAR_BACKWARD_SLASH) {\n // We get here if `to` is the exact base path for `from`.\n // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\foo'\n lastCommonSep = i;\n }\n else if (i === 2) {\n // We get here if `to` is the device root.\n // For example: from='C:\\\\foo\\\\bar'; to='C:\\\\'\n lastCommonSep = 3;\n }\n }\n if (lastCommonSep === -1) {\n lastCommonSep = 0;\n }\n }\n let out = '';\n // Generate the relative path based on the path difference between `to` and\n // `from`\n for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n if (i === fromEnd || from.charCodeAt(i) === CHAR_BACKWARD_SLASH) {\n out += out.length === 0 ? '..' : '\\\\..';\n }\n }\n toStart += lastCommonSep;\n // Lastly, append the rest of the destination (`to`) path that comes after\n // the common path parts\n if (out.length > 0) {\n return `${out}${toOrig.slice(toStart, toEnd)}`;\n }\n if (toOrig.charCodeAt(toStart) === CHAR_BACKWARD_SLASH) {\n ++toStart;\n }\n return toOrig.slice(toStart, toEnd);\n },\n toNamespacedPath(path) {\n // Note: this will *probably* throw somewhere.\n if (typeof path !== 'string') {\n return path;\n }\n if (path.length === 0) {\n return '';\n }\n const resolvedPath = win32.resolve(path);\n if (resolvedPath.length <= 2) {\n return path;\n }\n if (resolvedPath.charCodeAt(0) === CHAR_BACKWARD_SLASH) {\n // Possible UNC root\n if (resolvedPath.charCodeAt(1) === CHAR_BACKWARD_SLASH) {\n const code = resolvedPath.charCodeAt(2);\n if (code !== CHAR_QUESTION_MARK && code !== CHAR_DOT) {\n // Matched non-long UNC root, convert the path to a long UNC path\n return `\\\\\\\\?\\\\UNC\\\\${resolvedPath.slice(2)}`;\n }\n }\n }\n else if (isWindowsDeviceRoot(resolvedPath.charCodeAt(0)) &&\n resolvedPath.charCodeAt(1) === CHAR_COLON &&\n resolvedPath.charCodeAt(2) === CHAR_BACKWARD_SLASH) {\n // Matched device root, convert the path to a long UNC path\n return `\\\\\\\\?\\\\${resolvedPath}`;\n }\n return path;\n },\n dirname(path) {\n validateString(path, 'path');\n const len = path.length;\n if (len === 0) {\n return '.';\n }\n let rootEnd = -1;\n let offset = 0;\n const code = path.charCodeAt(0);\n if (len === 1) {\n // `path` contains just a path separator, exit early to avoid\n // unnecessary work or a dot.\n return isPathSeparator(code) ? path : '.';\n }\n // Try to match a root\n if (isPathSeparator(code)) {\n // Possible UNC root\n rootEnd = offset = 1;\n if (isPathSeparator(path.charCodeAt(1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len && isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j === len) {\n // We matched a UNC root only\n return path;\n }\n if (j !== last) {\n // We matched a UNC root with leftovers\n // Offset by 1 to include the separator after the UNC root to\n // treat it as a \"normal root\" on top of a (UNC) root\n rootEnd = offset = j + 1;\n }\n }\n }\n }\n // Possible device root\n }\n else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {\n rootEnd = len > 2 && isPathSeparator(path.charCodeAt(2)) ? 3 : 2;\n offset = rootEnd;\n }\n let end = -1;\n let matchedSlash = true;\n for (let i = len - 1; i >= offset; --i) {\n if (isPathSeparator(path.charCodeAt(i))) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n }\n else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n if (end === -1) {\n if (rootEnd === -1) {\n return '.';\n }\n end = rootEnd;\n }\n return path.slice(0, end);\n },\n basename(path, ext) {\n if (ext !== undefined) {\n validateString(ext, 'ext');\n }\n validateString(path, 'path');\n let start = 0;\n let end = -1;\n let matchedSlash = true;\n let i;\n // Check for a drive letter prefix so as not to mistake the following\n // path separator as an extra separator at the end of the path that can be\n // disregarded\n if (path.length >= 2 &&\n isWindowsDeviceRoot(path.charCodeAt(0)) &&\n path.charCodeAt(1) === CHAR_COLON) {\n start = 2;\n }\n if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n if (ext === path) {\n return '';\n }\n let extIdx = ext.length - 1;\n let firstNonSlashEnd = -1;\n for (i = path.length - 1; i >= start; --i) {\n const code = path.charCodeAt(i);\n if (isPathSeparator(code)) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n }\n else {\n if (firstNonSlashEnd === -1) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching\n matchedSlash = false;\n firstNonSlashEnd = i + 1;\n }\n if (extIdx >= 0) {\n // Try to match the explicit extension\n if (code === ext.charCodeAt(extIdx)) {\n if (--extIdx === -1) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = i;\n }\n }\n else {\n // Extension does not match, so our result is the entire path\n // component\n extIdx = -1;\n end = firstNonSlashEnd;\n }\n }\n }\n }\n if (start === end) {\n end = firstNonSlashEnd;\n }\n else if (end === -1) {\n end = path.length;\n }\n return path.slice(start, end);\n }\n for (i = path.length - 1; i >= start; --i) {\n if (isPathSeparator(path.charCodeAt(i))) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n }\n else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n if (end === -1) {\n return '';\n }\n return path.slice(start, end);\n },\n extname(path) {\n validateString(path, 'path');\n let start = 0;\n let startDot = -1;\n let startPart = 0;\n let end = -1;\n let matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n // Check for a drive letter prefix so as not to mistake the following\n // path separator as an extra separator at the end of the path that can be\n // disregarded\n if (path.length >= 2 &&\n path.charCodeAt(1) === CHAR_COLON &&\n isWindowsDeviceRoot(path.charCodeAt(0))) {\n start = startPart = 2;\n }\n for (let i = path.length - 1; i >= start; --i) {\n const code = path.charCodeAt(i);\n if (isPathSeparator(code)) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1) {\n startDot = i;\n }\n else if (preDotState !== 1) {\n preDotState = 1;\n }\n }\n else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n if (startDot === -1 ||\n end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n return '';\n }\n return path.slice(startDot, end);\n },\n format: _format.bind(null, '\\\\'),\n parse(path) {\n validateString(path, 'path');\n const ret = { root: '', dir: '', base: '', ext: '', name: '' };\n if (path.length === 0) {\n return ret;\n }\n const len = path.length;\n let rootEnd = 0;\n let code = path.charCodeAt(0);\n if (len === 1) {\n if (isPathSeparator(code)) {\n // `path` contains just a path separator, exit early to avoid\n // unnecessary work\n ret.root = ret.dir = path;\n return ret;\n }\n ret.base = ret.name = path;\n return ret;\n }\n // Try to match a root\n if (isPathSeparator(code)) {\n // Possible UNC root\n rootEnd = 1;\n if (isPathSeparator(path.charCodeAt(1))) {\n // Matched double path separator at beginning\n let j = 2;\n let last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more path separators\n while (j < len && isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j < len && j !== last) {\n // Matched!\n last = j;\n // Match 1 or more non-path separators\n while (j < len && !isPathSeparator(path.charCodeAt(j))) {\n j++;\n }\n if (j === len) {\n // We matched a UNC root only\n rootEnd = j;\n }\n else if (j !== last) {\n // We matched a UNC root with leftovers\n rootEnd = j + 1;\n }\n }\n }\n }\n }\n else if (isWindowsDeviceRoot(code) && path.charCodeAt(1) === CHAR_COLON) {\n // Possible device root\n if (len <= 2) {\n // `path` contains just a drive root, exit early to avoid\n // unnecessary work\n ret.root = ret.dir = path;\n return ret;\n }\n rootEnd = 2;\n if (isPathSeparator(path.charCodeAt(2))) {\n if (len === 3) {\n // `path` contains just a drive root, exit early to avoid\n // unnecessary work\n ret.root = ret.dir = path;\n return ret;\n }\n rootEnd = 3;\n }\n }\n if (rootEnd > 0) {\n ret.root = path.slice(0, rootEnd);\n }\n let startDot = -1;\n let startPart = rootEnd;\n let end = -1;\n let matchedSlash = true;\n let i = path.length - 1;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n // Get non-dir info\n for (; i >= rootEnd; --i) {\n code = path.charCodeAt(i);\n if (isPathSeparator(code)) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1) {\n startDot = i;\n }\n else if (preDotState !== 1) {\n preDotState = 1;\n }\n }\n else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n if (end !== -1) {\n if (startDot === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n ret.base = ret.name = path.slice(startPart, end);\n }\n else {\n ret.name = path.slice(startPart, startDot);\n ret.base = path.slice(startPart, end);\n ret.ext = path.slice(startDot, end);\n }\n }\n // If the directory is the root, use the entire root as the `dir` including\n // the trailing slash if any (`C:\\abc` -> `C:\\`). Otherwise, strip out the\n // trailing slash (`C:\\abc\\def` -> `C:\\abc`).\n if (startPart > 0 && startPart !== rootEnd) {\n ret.dir = path.slice(0, startPart - 1);\n }\n else {\n ret.dir = ret.root;\n }\n return ret;\n },\n sep: '\\\\',\n delimiter: ';',\n win32: null,\n posix: null\n};\nexport const posix = {\n // path.resolve([from ...], to)\n resolve(...pathSegments) {\n let resolvedPath = '';\n let resolvedAbsolute = false;\n for (let i = pathSegments.length - 1; i >= -1 && !resolvedAbsolute; i--) {\n const path = i >= 0 ? pathSegments[i] : process.cwd();\n validateString(path, 'path');\n // Skip empty entries\n if (path.length === 0) {\n continue;\n }\n resolvedPath = `${path}/${resolvedPath}`;\n resolvedAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n }\n // At this point the path should be resolved to a full absolute path, but\n // handle relative paths to be safe (might happen when process.cwd() fails)\n // Normalize the path\n resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute, '/', isPosixPathSeparator);\n if (resolvedAbsolute) {\n return `/${resolvedPath}`;\n }\n return resolvedPath.length > 0 ? resolvedPath : '.';\n },\n normalize(path) {\n validateString(path, 'path');\n if (path.length === 0) {\n return '.';\n }\n const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n const trailingSeparator = path.charCodeAt(path.length - 1) === CHAR_FORWARD_SLASH;\n // Normalize the path\n path = normalizeString(path, !isAbsolute, '/', isPosixPathSeparator);\n if (path.length === 0) {\n if (isAbsolute) {\n return '/';\n }\n return trailingSeparator ? './' : '.';\n }\n if (trailingSeparator) {\n path += '/';\n }\n return isAbsolute ? `/${path}` : path;\n },\n isAbsolute(path) {\n validateString(path, 'path');\n return path.length > 0 && path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n },\n join(...paths) {\n if (paths.length === 0) {\n return '.';\n }\n let joined;\n for (let i = 0; i < paths.length; ++i) {\n const arg = paths[i];\n validateString(arg, 'path');\n if (arg.length > 0) {\n if (joined === undefined) {\n joined = arg;\n }\n else {\n joined += `/${arg}`;\n }\n }\n }\n if (joined === undefined) {\n return '.';\n }\n return posix.normalize(joined);\n },\n relative(from, to) {\n validateString(from, 'from');\n validateString(to, 'to');\n if (from === to) {\n return '';\n }\n // Trim leading forward slashes.\n from = posix.resolve(from);\n to = posix.resolve(to);\n if (from === to) {\n return '';\n }\n const fromStart = 1;\n const fromEnd = from.length;\n const fromLen = fromEnd - fromStart;\n const toStart = 1;\n const toLen = to.length - toStart;\n // Compare paths to find the longest common path from root\n const length = (fromLen < toLen ? fromLen : toLen);\n let lastCommonSep = -1;\n let i = 0;\n for (; i < length; i++) {\n const fromCode = from.charCodeAt(fromStart + i);\n if (fromCode !== to.charCodeAt(toStart + i)) {\n break;\n }\n else if (fromCode === CHAR_FORWARD_SLASH) {\n lastCommonSep = i;\n }\n }\n if (i === length) {\n if (toLen > length) {\n if (to.charCodeAt(toStart + i) === CHAR_FORWARD_SLASH) {\n // We get here if `from` is the exact base path for `to`.\n // For example: from='/foo/bar'; to='/foo/bar/baz'\n return to.slice(toStart + i + 1);\n }\n if (i === 0) {\n // We get here if `from` is the root\n // For example: from='/'; to='/foo'\n return to.slice(toStart + i);\n }\n }\n else if (fromLen > length) {\n if (from.charCodeAt(fromStart + i) === CHAR_FORWARD_SLASH) {\n // We get here if `to` is the exact base path for `from`.\n // For example: from='/foo/bar/baz'; to='/foo/bar'\n lastCommonSep = i;\n }\n else if (i === 0) {\n // We get here if `to` is the root.\n // For example: from='/foo/bar'; to='/'\n lastCommonSep = 0;\n }\n }\n }\n let out = '';\n // Generate the relative path based on the path difference between `to`\n // and `from`.\n for (i = fromStart + lastCommonSep + 1; i <= fromEnd; ++i) {\n if (i === fromEnd || from.charCodeAt(i) === CHAR_FORWARD_SLASH) {\n out += out.length === 0 ? '..' : '/..';\n }\n }\n // Lastly, append the rest of the destination (`to`) path that comes after\n // the common path parts.\n return `${out}${to.slice(toStart + lastCommonSep)}`;\n },\n toNamespacedPath(path) {\n // Non-op on posix systems\n return path;\n },\n dirname(path) {\n validateString(path, 'path');\n if (path.length === 0) {\n return '.';\n }\n const hasRoot = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n let end = -1;\n let matchedSlash = true;\n for (let i = path.length - 1; i >= 1; --i) {\n if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) {\n if (!matchedSlash) {\n end = i;\n break;\n }\n }\n else {\n // We saw the first non-path separator\n matchedSlash = false;\n }\n }\n if (end === -1) {\n return hasRoot ? '/' : '.';\n }\n if (hasRoot && end === 1) {\n return '//';\n }\n return path.slice(0, end);\n },\n basename(path, ext) {\n if (ext !== undefined) {\n validateString(ext, 'ext');\n }\n validateString(path, 'path');\n let start = 0;\n let end = -1;\n let matchedSlash = true;\n let i;\n if (ext !== undefined && ext.length > 0 && ext.length <= path.length) {\n if (ext === path) {\n return '';\n }\n let extIdx = ext.length - 1;\n let firstNonSlashEnd = -1;\n for (i = path.length - 1; i >= 0; --i) {\n const code = path.charCodeAt(i);\n if (code === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n }\n else {\n if (firstNonSlashEnd === -1) {\n // We saw the first non-path separator, remember this index in case\n // we need it if the extension ends up not matching\n matchedSlash = false;\n firstNonSlashEnd = i + 1;\n }\n if (extIdx >= 0) {\n // Try to match the explicit extension\n if (code === ext.charCodeAt(extIdx)) {\n if (--extIdx === -1) {\n // We matched the extension, so mark this as the end of our path\n // component\n end = i;\n }\n }\n else {\n // Extension does not match, so our result is the entire path\n // component\n extIdx = -1;\n end = firstNonSlashEnd;\n }\n }\n }\n }\n if (start === end) {\n end = firstNonSlashEnd;\n }\n else if (end === -1) {\n end = path.length;\n }\n return path.slice(start, end);\n }\n for (i = path.length - 1; i >= 0; --i) {\n if (path.charCodeAt(i) === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n start = i + 1;\n break;\n }\n }\n else if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // path component\n matchedSlash = false;\n end = i + 1;\n }\n }\n if (end === -1) {\n return '';\n }\n return path.slice(start, end);\n },\n extname(path) {\n validateString(path, 'path');\n let startDot = -1;\n let startPart = 0;\n let end = -1;\n let matchedSlash = true;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n for (let i = path.length - 1; i >= 0; --i) {\n const code = path.charCodeAt(i);\n if (code === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1) {\n startDot = i;\n }\n else if (preDotState !== 1) {\n preDotState = 1;\n }\n }\n else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n if (startDot === -1 ||\n end === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n return '';\n }\n return path.slice(startDot, end);\n },\n format: _format.bind(null, '/'),\n parse(path) {\n validateString(path, 'path');\n const ret = { root: '', dir: '', base: '', ext: '', name: '' };\n if (path.length === 0) {\n return ret;\n }\n const isAbsolute = path.charCodeAt(0) === CHAR_FORWARD_SLASH;\n let start;\n if (isAbsolute) {\n ret.root = '/';\n start = 1;\n }\n else {\n start = 0;\n }\n let startDot = -1;\n let startPart = 0;\n let end = -1;\n let matchedSlash = true;\n let i = path.length - 1;\n // Track the state of characters (if any) we see before our first dot and\n // after any path separator we find\n let preDotState = 0;\n // Get non-dir info\n for (; i >= start; --i) {\n const code = path.charCodeAt(i);\n if (code === CHAR_FORWARD_SLASH) {\n // If we reached a path separator that was not part of a set of path\n // separators at the end of the string, stop now\n if (!matchedSlash) {\n startPart = i + 1;\n break;\n }\n continue;\n }\n if (end === -1) {\n // We saw the first non-path separator, mark this as the end of our\n // extension\n matchedSlash = false;\n end = i + 1;\n }\n if (code === CHAR_DOT) {\n // If this is our first dot, mark it as the start of our extension\n if (startDot === -1) {\n startDot = i;\n }\n else if (preDotState !== 1) {\n preDotState = 1;\n }\n }\n else if (startDot !== -1) {\n // We saw a non-dot and non-path separator before our dot, so we should\n // have a good chance at having a non-empty extension\n preDotState = -1;\n }\n }\n if (end !== -1) {\n const start = startPart === 0 && isAbsolute ? 1 : startPart;\n if (startDot === -1 ||\n // We saw a non-dot character immediately before the dot\n preDotState === 0 ||\n // The (right-most) trimmed path component is exactly '..'\n (preDotState === 1 &&\n startDot === end - 1 &&\n startDot === startPart + 1)) {\n ret.base = ret.name = path.slice(start, end);\n }\n else {\n ret.name = path.slice(start, startDot);\n ret.base = path.slice(start, end);\n ret.ext = path.slice(startDot, end);\n }\n }\n if (startPart > 0) {\n ret.dir = path.slice(0, startPart - 1);\n }\n else if (isAbsolute) {\n ret.dir = '/';\n }\n return ret;\n },\n sep: '/',\n delimiter: ':',\n win32: null,\n posix: null\n};\nposix.win32 = win32.win32 = win32;\nposix.posix = win32.posix = posix;\nexport const normalize = (process.platform === 'win32' ? win32.normalize : posix.normalize);\nexport const resolve = (process.platform === 'win32' ? win32.resolve : posix.resolve);\nexport const relative = (process.platform === 'win32' ? win32.relative : posix.relative);\nexport const dirname = (process.platform === 'win32' ? win32.dirname : posix.dirname);\nexport const basename = (process.platform === 'win32' ? win32.basename : posix.basename);\nexport const extname = (process.platform === 'win32' ? win32.extname : posix.extname);\nexport const sep = (process.platform === 'win32' ? win32.sep : posix.sep);\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport * as paths from './path.js';\nimport { isWindows } from './platform.js';\nconst _schemePattern = /^\\w[\\w\\d+.-]*$/;\nconst _singleSlashStart = /^\\//;\nconst _doubleSlashStart = /^\\/\\//;\nfunction _validateUri(ret, _strict) {\n // scheme, must be set\n if (!ret.scheme && _strict) {\n throw new Error(`[UriError]: Scheme is missing: {scheme: \"\", authority: \"${ret.authority}\", path: \"${ret.path}\", query: \"${ret.query}\", fragment: \"${ret.fragment}\"}`);\n }\n // scheme, https://tools.ietf.org/html/rfc3986#section-3.1\n // ALPHA *( ALPHA / DIGIT / \"+\" / \"-\" / \".\" )\n if (ret.scheme && !_schemePattern.test(ret.scheme)) {\n throw new Error('[UriError]: Scheme contains illegal characters.');\n }\n // path, http://tools.ietf.org/html/rfc3986#section-3.3\n // If a URI contains an authority component, then the path component\n // must either be empty or begin with a slash (\"/\") character. If a URI\n // does not contain an authority component, then the path cannot begin\n // with two slash characters (\"//\").\n if (ret.path) {\n if (ret.authority) {\n if (!_singleSlashStart.test(ret.path)) {\n throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash (\"/\") character');\n }\n }\n else {\n if (_doubleSlashStart.test(ret.path)) {\n throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters (\"//\")');\n }\n }\n }\n}\n// for a while we allowed uris *without* schemes and this is the migration\n// for them, e.g. an uri without scheme and without strict-mode warns and falls\n// back to the file-scheme. that should cause the least carnage and still be a\n// clear warning\nfunction _schemeFix(scheme, _strict) {\n if (!scheme && !_strict) {\n return 'file';\n }\n return scheme;\n}\n// implements a bit of https://tools.ietf.org/html/rfc3986#section-5\nfunction _referenceResolution(scheme, path) {\n // the slash-character is our 'default base' as we don't\n // support constructing URIs relative to other URIs. This\n // also means that we alter and potentially break paths.\n // see https://tools.ietf.org/html/rfc3986#section-5.1.4\n switch (scheme) {\n case 'https':\n case 'http':\n case 'file':\n if (!path) {\n path = _slash;\n }\n else if (path[0] !== _slash) {\n path = _slash + path;\n }\n break;\n }\n return path;\n}\nconst _empty = '';\nconst _slash = '/';\nconst _regexp = /^(([^:/?#]+?):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?/;\n/**\n * Uniform Resource Identifier (URI) http://tools.ietf.org/html/rfc3986.\n * This class is a simple parser which creates the basic component parts\n * (http://tools.ietf.org/html/rfc3986#section-3) with minimal validation\n * and encoding.\n *\n * ```txt\n * foo://example.com:8042/over/there?name=ferret#nose\n * \\_/ \\______________/\\_________/ \\_________/ \\__/\n * | | | | |\n * scheme authority path query fragment\n * | _____________________|__\n * / \\ / \\\n * urn:example:animal:ferret:nose\n * ```\n */\nexport class URI {\n /**\n * @internal\n */\n constructor(schemeOrData, authority, path, query, fragment, _strict = false) {\n if (typeof schemeOrData === 'object') {\n this.scheme = schemeOrData.scheme || _empty;\n this.authority = schemeOrData.authority || _empty;\n this.path = schemeOrData.path || _empty;\n this.query = schemeOrData.query || _empty;\n this.fragment = schemeOrData.fragment || _empty;\n // no validation because it's this URI\n // that creates uri components.\n // _validateUri(this);\n }\n else {\n this.scheme = _schemeFix(schemeOrData, _strict);\n this.authority = authority || _empty;\n this.path = _referenceResolution(this.scheme, path || _empty);\n this.query = query || _empty;\n this.fragment = fragment || _empty;\n _validateUri(this, _strict);\n }\n }\n static isUri(thing) {\n if (thing instanceof URI) {\n return true;\n }\n if (!thing) {\n return false;\n }\n return typeof thing.authority === 'string'\n && typeof thing.fragment === 'string'\n && typeof thing.path === 'string'\n && typeof thing.query === 'string'\n && typeof thing.scheme === 'string'\n && typeof thing.fsPath === 'string'\n && typeof thing.with === 'function'\n && typeof thing.toString === 'function';\n }\n // ---- filesystem path -----------------------\n /**\n * Returns a string representing the corresponding file system path of this URI.\n * Will handle UNC paths, normalizes windows drive letters to lower-case, and uses the\n * platform specific path separator.\n *\n * * Will *not* validate the path for invalid characters and semantics.\n * * Will *not* look at the scheme of this URI.\n * * The result shall *not* be used for display purposes but for accessing a file on disk.\n *\n *\n * The *difference* to `URI#path` is the use of the platform specific separator and the handling\n * of UNC paths. See the below sample of a file-uri with an authority (UNC path).\n *\n * ```ts\n const u = URI.parse('file://server/c$/folder/file.txt')\n u.authority === 'server'\n u.path === '/shares/c$/file.txt'\n u.fsPath === '\\\\server\\c$\\folder\\file.txt'\n ```\n *\n * Using `URI#path` to read a file (using fs-apis) would not be enough because parts of the path,\n * namely the server name, would be missing. Therefore `URI#fsPath` exists - it's sugar to ease working\n * with URIs that represent files on disk (`file` scheme).\n */\n get fsPath() {\n // if (this.scheme !== 'file') {\n // \tconsole.warn(`[UriError] calling fsPath with scheme ${this.scheme}`);\n // }\n return uriToFsPath(this, false);\n }\n // ---- modify to new -------------------------\n with(change) {\n if (!change) {\n return this;\n }\n let { scheme, authority, path, query, fragment } = change;\n if (scheme === undefined) {\n scheme = this.scheme;\n }\n else if (scheme === null) {\n scheme = _empty;\n }\n if (authority === undefined) {\n authority = this.authority;\n }\n else if (authority === null) {\n authority = _empty;\n }\n if (path === undefined) {\n path = this.path;\n }\n else if (path === null) {\n path = _empty;\n }\n if (query === undefined) {\n query = this.query;\n }\n else if (query === null) {\n query = _empty;\n }\n if (fragment === undefined) {\n fragment = this.fragment;\n }\n else if (fragment === null) {\n fragment = _empty;\n }\n if (scheme === this.scheme\n && authority === this.authority\n && path === this.path\n && query === this.query\n && fragment === this.fragment) {\n return this;\n }\n return new Uri(scheme, authority, path, query, fragment);\n }\n // ---- parse & validate ------------------------\n /**\n * Creates a new URI from a string, e.g. `http://www.msft.com/some/path`,\n * `file:///usr/home`, or `scheme:with/path`.\n *\n * @param value A string which represents an URI (see `URI#toString`).\n */\n static parse(value, _strict = false) {\n const match = _regexp.exec(value);\n if (!match) {\n return new Uri(_empty, _empty, _empty, _empty, _empty);\n }\n return new Uri(match[2] || _empty, percentDecode(match[4] || _empty), percentDecode(match[5] || _empty), percentDecode(match[7] || _empty), percentDecode(match[9] || _empty), _strict);\n }\n /**\n * Creates a new URI from a file system path, e.g. `c:\\my\\files`,\n * `/usr/home`, or `\\\\server\\share\\some\\path`.\n *\n * The *difference* between `URI#parse` and `URI#file` is that the latter treats the argument\n * as path, not as stringified-uri. E.g. `URI.file(path)` is **not the same as**\n * `URI.parse('file://' + path)` because the path might contain characters that are\n * interpreted (# and ?). See the following sample:\n * ```ts\n const good = URI.file('/coding/c#/project1');\n good.scheme === 'file';\n good.path === '/coding/c#/project1';\n good.fragment === '';\n const bad = URI.parse('file://' + '/coding/c#/project1');\n bad.scheme === 'file';\n bad.path === '/coding/c'; // path is now broken\n bad.fragment === '/project1';\n ```\n *\n * @param path A file system path (see `URI#fsPath`)\n */\n static file(path) {\n let authority = _empty;\n // normalize to fwd-slashes on windows,\n // on other systems bwd-slashes are valid\n // filename character, eg /f\\oo/ba\\r.txt\n if (isWindows) {\n path = path.replace(/\\\\/g, _slash);\n }\n // check for authority as used in UNC shares\n // or use the path as given\n if (path[0] === _slash && path[1] === _slash) {\n const idx = path.indexOf(_slash, 2);\n if (idx === -1) {\n authority = path.substring(2);\n path = _slash;\n }\n else {\n authority = path.substring(2, idx);\n path = path.substring(idx) || _slash;\n }\n }\n return new Uri('file', authority, path, _empty, _empty);\n }\n static from(components) {\n const result = new Uri(components.scheme, components.authority, components.path, components.query, components.fragment);\n _validateUri(result, true);\n return result;\n }\n /**\n * Join a URI path with path fragments and normalizes the resulting path.\n *\n * @param uri The input URI.\n * @param pathFragment The path fragment to add to the URI path.\n * @returns The resulting URI.\n */\n static joinPath(uri, ...pathFragment) {\n if (!uri.path) {\n throw new Error(`[UriError]: cannot call joinPath on URI without path`);\n }\n let newPath;\n if (isWindows && uri.scheme === 'file') {\n newPath = URI.file(paths.win32.join(uriToFsPath(uri, true), ...pathFragment)).path;\n }\n else {\n newPath = paths.posix.join(uri.path, ...pathFragment);\n }\n return uri.with({ path: newPath });\n }\n // ---- printing/externalize ---------------------------\n /**\n * Creates a string representation for this URI. It's guaranteed that calling\n * `URI.parse` with the result of this function creates an URI which is equal\n * to this URI.\n *\n * * The result shall *not* be used for display purposes but for externalization or transport.\n * * The result will be encoded using the percentage encoding and encoding happens mostly\n * ignore the scheme-specific encoding rules.\n *\n * @param skipEncoding Do not encode the result, default is `false`\n */\n toString(skipEncoding = false) {\n return _asFormatted(this, skipEncoding);\n }\n toJSON() {\n return this;\n }\n static revive(data) {\n if (!data) {\n return data;\n }\n else if (data instanceof URI) {\n return data;\n }\n else {\n const result = new Uri(data);\n result._formatted = data.external;\n result._fsPath = data._sep === _pathSepMarker ? data.fsPath : null;\n return result;\n }\n }\n}\nconst _pathSepMarker = isWindows ? 1 : undefined;\n// This class exists so that URI is compatible with vscode.Uri (API).\nclass Uri extends URI {\n constructor() {\n super(...arguments);\n this._formatted = null;\n this._fsPath = null;\n }\n get fsPath() {\n if (!this._fsPath) {\n this._fsPath = uriToFsPath(this, false);\n }\n return this._fsPath;\n }\n toString(skipEncoding = false) {\n if (!skipEncoding) {\n if (!this._formatted) {\n this._formatted = _asFormatted(this, false);\n }\n return this._formatted;\n }\n else {\n // we don't cache that\n return _asFormatted(this, true);\n }\n }\n toJSON() {\n const res = {\n $mid: 1 /* Uri */\n };\n // cached state\n if (this._fsPath) {\n res.fsPath = this._fsPath;\n res._sep = _pathSepMarker;\n }\n if (this._formatted) {\n res.external = this._formatted;\n }\n // uri components\n if (this.path) {\n res.path = this.path;\n }\n if (this.scheme) {\n res.scheme = this.scheme;\n }\n if (this.authority) {\n res.authority = this.authority;\n }\n if (this.query) {\n res.query = this.query;\n }\n if (this.fragment) {\n res.fragment = this.fragment;\n }\n return res;\n }\n}\n// reserved characters: https://tools.ietf.org/html/rfc3986#section-2.2\nconst encodeTable = {\n [58 /* Colon */]: '%3A',\n [47 /* Slash */]: '%2F',\n [63 /* QuestionMark */]: '%3F',\n [35 /* Hash */]: '%23',\n [91 /* OpenSquareBracket */]: '%5B',\n [93 /* CloseSquareBracket */]: '%5D',\n [64 /* AtSign */]: '%40',\n [33 /* ExclamationMark */]: '%21',\n [36 /* DollarSign */]: '%24',\n [38 /* Ampersand */]: '%26',\n [39 /* SingleQuote */]: '%27',\n [40 /* OpenParen */]: '%28',\n [41 /* CloseParen */]: '%29',\n [42 /* Asterisk */]: '%2A',\n [43 /* Plus */]: '%2B',\n [44 /* Comma */]: '%2C',\n [59 /* Semicolon */]: '%3B',\n [61 /* Equals */]: '%3D',\n [32 /* Space */]: '%20',\n};\nfunction encodeURIComponentFast(uriComponent, allowSlash) {\n let res = undefined;\n let nativeEncodePos = -1;\n for (let pos = 0; pos < uriComponent.length; pos++) {\n const code = uriComponent.charCodeAt(pos);\n // unreserved characters: https://tools.ietf.org/html/rfc3986#section-2.3\n if ((code >= 97 /* a */ && code <= 122 /* z */)\n || (code >= 65 /* A */ && code <= 90 /* Z */)\n || (code >= 48 /* Digit0 */ && code <= 57 /* Digit9 */)\n || code === 45 /* Dash */\n || code === 46 /* Period */\n || code === 95 /* Underline */\n || code === 126 /* Tilde */\n || (allowSlash && code === 47 /* Slash */)) {\n // check if we are delaying native encode\n if (nativeEncodePos !== -1) {\n res += encodeURIComponent(uriComponent.substring(nativeEncodePos, pos));\n nativeEncodePos = -1;\n }\n // check if we write into a new string (by default we try to return the param)\n if (res !== undefined) {\n res += uriComponent.charAt(pos);\n }\n }\n else {\n // encoding needed, we need to allocate a new string\n if (res === undefined) {\n res = uriComponent.substr(0, pos);\n }\n // check with default table first\n const escaped = encodeTable[code];\n if (escaped !== undefined) {\n // check if we are delaying native encode\n if (nativeEncodePos !== -1) {\n res += encodeURIComponent(uriComponent.substring(nativeEncodePos, pos));\n nativeEncodePos = -1;\n }\n // append escaped variant to result\n res += escaped;\n }\n else if (nativeEncodePos === -1) {\n // use native encode only when needed\n nativeEncodePos = pos;\n }\n }\n }\n if (nativeEncodePos !== -1) {\n res += encodeURIComponent(uriComponent.substring(nativeEncodePos));\n }\n return res !== undefined ? res : uriComponent;\n}\nfunction encodeURIComponentMinimal(path) {\n let res = undefined;\n for (let pos = 0; pos < path.length; pos++) {\n const code = path.charCodeAt(pos);\n if (code === 35 /* Hash */ || code === 63 /* QuestionMark */) {\n if (res === undefined) {\n res = path.substr(0, pos);\n }\n res += encodeTable[code];\n }\n else {\n if (res !== undefined) {\n res += path[pos];\n }\n }\n }\n return res !== undefined ? res : path;\n}\n/**\n * Compute `fsPath` for the given uri\n */\nexport function uriToFsPath(uri, keepDriveLetterCasing) {\n let value;\n if (uri.authority && uri.path.length > 1 && uri.scheme === 'file') {\n // unc path: file://shares/c$/far/boo\n value = `//${uri.authority}${uri.path}`;\n }\n else if (uri.path.charCodeAt(0) === 47 /* Slash */\n && (uri.path.charCodeAt(1) >= 65 /* A */ && uri.path.charCodeAt(1) <= 90 /* Z */ || uri.path.charCodeAt(1) >= 97 /* a */ && uri.path.charCodeAt(1) <= 122 /* z */)\n && uri.path.charCodeAt(2) === 58 /* Colon */) {\n if (!keepDriveLetterCasing) {\n // windows drive letter: file:///c:/far/boo\n value = uri.path[1].toLowerCase() + uri.path.substr(2);\n }\n else {\n value = uri.path.substr(1);\n }\n }\n else {\n // other path\n value = uri.path;\n }\n if (isWindows) {\n value = value.replace(/\\//g, '\\\\');\n }\n return value;\n}\n/**\n * Create the external version of a uri\n */\nfunction _asFormatted(uri, skipEncoding) {\n const encoder = !skipEncoding\n ? encodeURIComponentFast\n : encodeURIComponentMinimal;\n let res = '';\n let { scheme, authority, path, query, fragment } = uri;\n if (scheme) {\n res += scheme;\n res += ':';\n }\n if (authority || scheme === 'file') {\n res += _slash;\n res += _slash;\n }\n if (authority) {\n let idx = authority.indexOf('@');\n if (idx !== -1) {\n // @\n const userinfo = authority.substr(0, idx);\n authority = authority.substr(idx + 1);\n idx = userinfo.indexOf(':');\n if (idx === -1) {\n res += encoder(userinfo, false);\n }\n else {\n // :@\n res += encoder(userinfo.substr(0, idx), false);\n res += ':';\n res += encoder(userinfo.substr(idx + 1), false);\n }\n res += '@';\n }\n authority = authority.toLowerCase();\n idx = authority.indexOf(':');\n if (idx === -1) {\n res += encoder(authority, false);\n }\n else {\n // :\n res += encoder(authority.substr(0, idx), false);\n res += authority.substr(idx);\n }\n }\n if (path) {\n // lower-case windows drive letters in /C:/fff or C:/fff\n if (path.length >= 3 && path.charCodeAt(0) === 47 /* Slash */ && path.charCodeAt(2) === 58 /* Colon */) {\n const code = path.charCodeAt(1);\n if (code >= 65 /* A */ && code <= 90 /* Z */) {\n path = `/${String.fromCharCode(code + 32)}:${path.substr(3)}`; // \"/c:\".length === 3\n }\n }\n else if (path.length >= 2 && path.charCodeAt(1) === 58 /* Colon */) {\n const code = path.charCodeAt(0);\n if (code >= 65 /* A */ && code <= 90 /* Z */) {\n path = `${String.fromCharCode(code + 32)}:${path.substr(2)}`; // \"/c:\".length === 3\n }\n }\n // encode the rest of the path\n res += encoder(path, true);\n }\n if (query) {\n res += '?';\n res += encoder(query, false);\n }\n if (fragment) {\n res += '#';\n res += !skipEncoding ? encodeURIComponentFast(fragment, false) : fragment;\n }\n return res;\n}\n// --- decode\nfunction decodeURIComponentGraceful(str) {\n try {\n return decodeURIComponent(str);\n }\n catch (_a) {\n if (str.length > 3) {\n return str.substr(0, 3) + decodeURIComponentGraceful(str.substr(3));\n }\n else {\n return str;\n }\n }\n}\nconst _rEncodedAsHex = /(%[0-9A-Za-z][0-9A-Za-z])+/g;\nfunction percentDecode(str) {\n if (!str.match(_rEncodedAsHex)) {\n return str;\n }\n return str.replace(_rEncodedAsHex, (match) => decodeURIComponentGraceful(match));\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n/**\n * A position in the editor.\n */\nexport class Position {\n constructor(lineNumber, column) {\n this.lineNumber = lineNumber;\n this.column = column;\n }\n /**\n * Create a new position from this position.\n *\n * @param newLineNumber new line number\n * @param newColumn new column\n */\n with(newLineNumber = this.lineNumber, newColumn = this.column) {\n if (newLineNumber === this.lineNumber && newColumn === this.column) {\n return this;\n }\n else {\n return new Position(newLineNumber, newColumn);\n }\n }\n /**\n * Derive a new position from this position.\n *\n * @param deltaLineNumber line number delta\n * @param deltaColumn column delta\n */\n delta(deltaLineNumber = 0, deltaColumn = 0) {\n return this.with(this.lineNumber + deltaLineNumber, this.column + deltaColumn);\n }\n /**\n * Test if this position equals other position\n */\n equals(other) {\n return Position.equals(this, other);\n }\n /**\n * Test if position `a` equals position `b`\n */\n static equals(a, b) {\n if (!a && !b) {\n return true;\n }\n return (!!a &&\n !!b &&\n a.lineNumber === b.lineNumber &&\n a.column === b.column);\n }\n /**\n * Test if this position is before other position.\n * If the two positions are equal, the result will be false.\n */\n isBefore(other) {\n return Position.isBefore(this, other);\n }\n /**\n * Test if position `a` is before position `b`.\n * If the two positions are equal, the result will be false.\n */\n static isBefore(a, b) {\n if (a.lineNumber < b.lineNumber) {\n return true;\n }\n if (b.lineNumber < a.lineNumber) {\n return false;\n }\n return a.column < b.column;\n }\n /**\n * Test if this position is before other position.\n * If the two positions are equal, the result will be true.\n */\n isBeforeOrEqual(other) {\n return Position.isBeforeOrEqual(this, other);\n }\n /**\n * Test if position `a` is before position `b`.\n * If the two positions are equal, the result will be true.\n */\n static isBeforeOrEqual(a, b) {\n if (a.lineNumber < b.lineNumber) {\n return true;\n }\n if (b.lineNumber < a.lineNumber) {\n return false;\n }\n return a.column <= b.column;\n }\n /**\n * A function that compares positions, useful for sorting\n */\n static compare(a, b) {\n let aLineNumber = a.lineNumber | 0;\n let bLineNumber = b.lineNumber | 0;\n if (aLineNumber === bLineNumber) {\n let aColumn = a.column | 0;\n let bColumn = b.column | 0;\n return aColumn - bColumn;\n }\n return aLineNumber - bLineNumber;\n }\n /**\n * Clone this position.\n */\n clone() {\n return new Position(this.lineNumber, this.column);\n }\n /**\n * Convert to a human-readable representation.\n */\n toString() {\n return '(' + this.lineNumber + ',' + this.column + ')';\n }\n // ---\n /**\n * Create a `Position` from an `IPosition`.\n */\n static lift(pos) {\n return new Position(pos.lineNumber, pos.column);\n }\n /**\n * Test if `obj` is an `IPosition`.\n */\n static isIPosition(obj) {\n return (obj\n && (typeof obj.lineNumber === 'number')\n && (typeof obj.column === 'number'));\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { Position } from './position.js';\n/**\n * A range in the editor. (startLineNumber,startColumn) is <= (endLineNumber,endColumn)\n */\nexport class Range {\n constructor(startLineNumber, startColumn, endLineNumber, endColumn) {\n if ((startLineNumber > endLineNumber) || (startLineNumber === endLineNumber && startColumn > endColumn)) {\n this.startLineNumber = endLineNumber;\n this.startColumn = endColumn;\n this.endLineNumber = startLineNumber;\n this.endColumn = startColumn;\n }\n else {\n this.startLineNumber = startLineNumber;\n this.startColumn = startColumn;\n this.endLineNumber = endLineNumber;\n this.endColumn = endColumn;\n }\n }\n /**\n * Test if this range is empty.\n */\n isEmpty() {\n return Range.isEmpty(this);\n }\n /**\n * Test if `range` is empty.\n */\n static isEmpty(range) {\n return (range.startLineNumber === range.endLineNumber && range.startColumn === range.endColumn);\n }\n /**\n * Test if position is in this range. If the position is at the edges, will return true.\n */\n containsPosition(position) {\n return Range.containsPosition(this, position);\n }\n /**\n * Test if `position` is in `range`. If the position is at the edges, will return true.\n */\n static containsPosition(range, position) {\n if (position.lineNumber < range.startLineNumber || position.lineNumber > range.endLineNumber) {\n return false;\n }\n if (position.lineNumber === range.startLineNumber && position.column < range.startColumn) {\n return false;\n }\n if (position.lineNumber === range.endLineNumber && position.column > range.endColumn) {\n return false;\n }\n return true;\n }\n /**\n * Test if range is in this range. If the range is equal to this range, will return true.\n */\n containsRange(range) {\n return Range.containsRange(this, range);\n }\n /**\n * Test if `otherRange` is in `range`. If the ranges are equal, will return true.\n */\n static containsRange(range, otherRange) {\n if (otherRange.startLineNumber < range.startLineNumber || otherRange.endLineNumber < range.startLineNumber) {\n return false;\n }\n if (otherRange.startLineNumber > range.endLineNumber || otherRange.endLineNumber > range.endLineNumber) {\n return false;\n }\n if (otherRange.startLineNumber === range.startLineNumber && otherRange.startColumn < range.startColumn) {\n return false;\n }\n if (otherRange.endLineNumber === range.endLineNumber && otherRange.endColumn > range.endColumn) {\n return false;\n }\n return true;\n }\n /**\n * Test if `range` is strictly in this range. `range` must start after and end before this range for the result to be true.\n */\n strictContainsRange(range) {\n return Range.strictContainsRange(this, range);\n }\n /**\n * Test if `otherRange` is strictly in `range` (must start after, and end before). If the ranges are equal, will return false.\n */\n static strictContainsRange(range, otherRange) {\n if (otherRange.startLineNumber < range.startLineNumber || otherRange.endLineNumber < range.startLineNumber) {\n return false;\n }\n if (otherRange.startLineNumber > range.endLineNumber || otherRange.endLineNumber > range.endLineNumber) {\n return false;\n }\n if (otherRange.startLineNumber === range.startLineNumber && otherRange.startColumn <= range.startColumn) {\n return false;\n }\n if (otherRange.endLineNumber === range.endLineNumber && otherRange.endColumn >= range.endColumn) {\n return false;\n }\n return true;\n }\n /**\n * A reunion of the two ranges.\n * The smallest position will be used as the start point, and the largest one as the end point.\n */\n plusRange(range) {\n return Range.plusRange(this, range);\n }\n /**\n * A reunion of the two ranges.\n * The smallest position will be used as the start point, and the largest one as the end point.\n */\n static plusRange(a, b) {\n let startLineNumber;\n let startColumn;\n let endLineNumber;\n let endColumn;\n if (b.startLineNumber < a.startLineNumber) {\n startLineNumber = b.startLineNumber;\n startColumn = b.startColumn;\n }\n else if (b.startLineNumber === a.startLineNumber) {\n startLineNumber = b.startLineNumber;\n startColumn = Math.min(b.startColumn, a.startColumn);\n }\n else {\n startLineNumber = a.startLineNumber;\n startColumn = a.startColumn;\n }\n if (b.endLineNumber > a.endLineNumber) {\n endLineNumber = b.endLineNumber;\n endColumn = b.endColumn;\n }\n else if (b.endLineNumber === a.endLineNumber) {\n endLineNumber = b.endLineNumber;\n endColumn = Math.max(b.endColumn, a.endColumn);\n }\n else {\n endLineNumber = a.endLineNumber;\n endColumn = a.endColumn;\n }\n return new Range(startLineNumber, startColumn, endLineNumber, endColumn);\n }\n /**\n * A intersection of the two ranges.\n */\n intersectRanges(range) {\n return Range.intersectRanges(this, range);\n }\n /**\n * A intersection of the two ranges.\n */\n static intersectRanges(a, b) {\n let resultStartLineNumber = a.startLineNumber;\n let resultStartColumn = a.startColumn;\n let resultEndLineNumber = a.endLineNumber;\n let resultEndColumn = a.endColumn;\n let otherStartLineNumber = b.startLineNumber;\n let otherStartColumn = b.startColumn;\n let otherEndLineNumber = b.endLineNumber;\n let otherEndColumn = b.endColumn;\n if (resultStartLineNumber < otherStartLineNumber) {\n resultStartLineNumber = otherStartLineNumber;\n resultStartColumn = otherStartColumn;\n }\n else if (resultStartLineNumber === otherStartLineNumber) {\n resultStartColumn = Math.max(resultStartColumn, otherStartColumn);\n }\n if (resultEndLineNumber > otherEndLineNumber) {\n resultEndLineNumber = otherEndLineNumber;\n resultEndColumn = otherEndColumn;\n }\n else if (resultEndLineNumber === otherEndLineNumber) {\n resultEndColumn = Math.min(resultEndColumn, otherEndColumn);\n }\n // Check if selection is now empty\n if (resultStartLineNumber > resultEndLineNumber) {\n return null;\n }\n if (resultStartLineNumber === resultEndLineNumber && resultStartColumn > resultEndColumn) {\n return null;\n }\n return new Range(resultStartLineNumber, resultStartColumn, resultEndLineNumber, resultEndColumn);\n }\n /**\n * Test if this range equals other.\n */\n equalsRange(other) {\n return Range.equalsRange(this, other);\n }\n /**\n * Test if range `a` equals `b`.\n */\n static equalsRange(a, b) {\n return (!!a &&\n !!b &&\n a.startLineNumber === b.startLineNumber &&\n a.startColumn === b.startColumn &&\n a.endLineNumber === b.endLineNumber &&\n a.endColumn === b.endColumn);\n }\n /**\n * Return the end position (which will be after or equal to the start position)\n */\n getEndPosition() {\n return Range.getEndPosition(this);\n }\n /**\n * Return the end position (which will be after or equal to the start position)\n */\n static getEndPosition(range) {\n return new Position(range.endLineNumber, range.endColumn);\n }\n /**\n * Return the start position (which will be before or equal to the end position)\n */\n getStartPosition() {\n return Range.getStartPosition(this);\n }\n /**\n * Return the start position (which will be before or equal to the end position)\n */\n static getStartPosition(range) {\n return new Position(range.startLineNumber, range.startColumn);\n }\n /**\n * Transform to a user presentable string representation.\n */\n toString() {\n return '[' + this.startLineNumber + ',' + this.startColumn + ' -> ' + this.endLineNumber + ',' + this.endColumn + ']';\n }\n /**\n * Create a new range using this range's start position, and using endLineNumber and endColumn as the end position.\n */\n setEndPosition(endLineNumber, endColumn) {\n return new Range(this.startLineNumber, this.startColumn, endLineNumber, endColumn);\n }\n /**\n * Create a new range using this range's end position, and using startLineNumber and startColumn as the start position.\n */\n setStartPosition(startLineNumber, startColumn) {\n return new Range(startLineNumber, startColumn, this.endLineNumber, this.endColumn);\n }\n /**\n * Create a new empty range using this range's start position.\n */\n collapseToStart() {\n return Range.collapseToStart(this);\n }\n /**\n * Create a new empty range using this range's start position.\n */\n static collapseToStart(range) {\n return new Range(range.startLineNumber, range.startColumn, range.startLineNumber, range.startColumn);\n }\n // ---\n static fromPositions(start, end = start) {\n return new Range(start.lineNumber, start.column, end.lineNumber, end.column);\n }\n static lift(range) {\n if (!range) {\n return null;\n }\n return new Range(range.startLineNumber, range.startColumn, range.endLineNumber, range.endColumn);\n }\n /**\n * Test if `obj` is an `IRange`.\n */\n static isIRange(obj) {\n return (obj\n && (typeof obj.startLineNumber === 'number')\n && (typeof obj.startColumn === 'number')\n && (typeof obj.endLineNumber === 'number')\n && (typeof obj.endColumn === 'number'));\n }\n /**\n * Test if the two ranges are touching in any way.\n */\n static areIntersectingOrTouching(a, b) {\n // Check if `a` is before `b`\n if (a.endLineNumber < b.startLineNumber || (a.endLineNumber === b.startLineNumber && a.endColumn < b.startColumn)) {\n return false;\n }\n // Check if `b` is before `a`\n if (b.endLineNumber < a.startLineNumber || (b.endLineNumber === a.startLineNumber && b.endColumn < a.startColumn)) {\n return false;\n }\n // These ranges must intersect\n return true;\n }\n /**\n * Test if the two ranges are intersecting. If the ranges are touching it returns true.\n */\n static areIntersecting(a, b) {\n // Check if `a` is before `b`\n if (a.endLineNumber < b.startLineNumber || (a.endLineNumber === b.startLineNumber && a.endColumn <= b.startColumn)) {\n return false;\n }\n // Check if `b` is before `a`\n if (b.endLineNumber < a.startLineNumber || (b.endLineNumber === a.startLineNumber && b.endColumn <= a.startColumn)) {\n return false;\n }\n // These ranges must intersect\n return true;\n }\n /**\n * A function that compares ranges, useful for sorting ranges\n * It will first compare ranges on the startPosition and then on the endPosition\n */\n static compareRangesUsingStarts(a, b) {\n if (a && b) {\n const aStartLineNumber = a.startLineNumber | 0;\n const bStartLineNumber = b.startLineNumber | 0;\n if (aStartLineNumber === bStartLineNumber) {\n const aStartColumn = a.startColumn | 0;\n const bStartColumn = b.startColumn | 0;\n if (aStartColumn === bStartColumn) {\n const aEndLineNumber = a.endLineNumber | 0;\n const bEndLineNumber = b.endLineNumber | 0;\n if (aEndLineNumber === bEndLineNumber) {\n const aEndColumn = a.endColumn | 0;\n const bEndColumn = b.endColumn | 0;\n return aEndColumn - bEndColumn;\n }\n return aEndLineNumber - bEndLineNumber;\n }\n return aStartColumn - bStartColumn;\n }\n return aStartLineNumber - bStartLineNumber;\n }\n const aExists = (a ? 1 : 0);\n const bExists = (b ? 1 : 0);\n return aExists - bExists;\n }\n /**\n * A function that compares ranges, useful for sorting ranges\n * It will first compare ranges on the endPosition and then on the startPosition\n */\n static compareRangesUsingEnds(a, b) {\n if (a.endLineNumber === b.endLineNumber) {\n if (a.endColumn === b.endColumn) {\n if (a.startLineNumber === b.startLineNumber) {\n return a.startColumn - b.startColumn;\n }\n return a.startLineNumber - b.startLineNumber;\n }\n return a.endColumn - b.endColumn;\n }\n return a.endLineNumber - b.endLineNumber;\n }\n /**\n * Test if the range spans multiple lines.\n */\n static spansMultipleLines(range) {\n return range.endLineNumber > range.startLineNumber;\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { LcsDiff } from '../../../base/common/diff/diff.js';\nimport * as strings from '../../../base/common/strings.js';\nconst MINIMUM_MATCHING_CHARACTER_LENGTH = 3;\nfunction computeDiff(originalSequence, modifiedSequence, continueProcessingPredicate, pretty) {\n const diffAlgo = new LcsDiff(originalSequence, modifiedSequence, continueProcessingPredicate);\n return diffAlgo.ComputeDiff(pretty);\n}\nclass LineSequence {\n constructor(lines) {\n const startColumns = [];\n const endColumns = [];\n for (let i = 0, length = lines.length; i < length; i++) {\n startColumns[i] = getFirstNonBlankColumn(lines[i], 1);\n endColumns[i] = getLastNonBlankColumn(lines[i], 1);\n }\n this.lines = lines;\n this._startColumns = startColumns;\n this._endColumns = endColumns;\n }\n getElements() {\n const elements = [];\n for (let i = 0, len = this.lines.length; i < len; i++) {\n elements[i] = this.lines[i].substring(this._startColumns[i] - 1, this._endColumns[i] - 1);\n }\n return elements;\n }\n getStrictElement(index) {\n return this.lines[index];\n }\n getStartLineNumber(i) {\n return i + 1;\n }\n getEndLineNumber(i) {\n return i + 1;\n }\n createCharSequence(shouldIgnoreTrimWhitespace, startIndex, endIndex) {\n const charCodes = [];\n const lineNumbers = [];\n const columns = [];\n let len = 0;\n for (let index = startIndex; index <= endIndex; index++) {\n const lineContent = this.lines[index];\n const startColumn = (shouldIgnoreTrimWhitespace ? this._startColumns[index] : 1);\n const endColumn = (shouldIgnoreTrimWhitespace ? this._endColumns[index] : lineContent.length + 1);\n for (let col = startColumn; col < endColumn; col++) {\n charCodes[len] = lineContent.charCodeAt(col - 1);\n lineNumbers[len] = index + 1;\n columns[len] = col;\n len++;\n }\n }\n return new CharSequence(charCodes, lineNumbers, columns);\n }\n}\nclass CharSequence {\n constructor(charCodes, lineNumbers, columns) {\n this._charCodes = charCodes;\n this._lineNumbers = lineNumbers;\n this._columns = columns;\n }\n getElements() {\n return this._charCodes;\n }\n getStartLineNumber(i) {\n return this._lineNumbers[i];\n }\n getStartColumn(i) {\n return this._columns[i];\n }\n getEndLineNumber(i) {\n return this._lineNumbers[i];\n }\n getEndColumn(i) {\n return this._columns[i] + 1;\n }\n}\nclass CharChange {\n constructor(originalStartLineNumber, originalStartColumn, originalEndLineNumber, originalEndColumn, modifiedStartLineNumber, modifiedStartColumn, modifiedEndLineNumber, modifiedEndColumn) {\n this.originalStartLineNumber = originalStartLineNumber;\n this.originalStartColumn = originalStartColumn;\n this.originalEndLineNumber = originalEndLineNumber;\n this.originalEndColumn = originalEndColumn;\n this.modifiedStartLineNumber = modifiedStartLineNumber;\n this.modifiedStartColumn = modifiedStartColumn;\n this.modifiedEndLineNumber = modifiedEndLineNumber;\n this.modifiedEndColumn = modifiedEndColumn;\n }\n static createFromDiffChange(diffChange, originalCharSequence, modifiedCharSequence) {\n let originalStartLineNumber;\n let originalStartColumn;\n let originalEndLineNumber;\n let originalEndColumn;\n let modifiedStartLineNumber;\n let modifiedStartColumn;\n let modifiedEndLineNumber;\n let modifiedEndColumn;\n if (diffChange.originalLength === 0) {\n originalStartLineNumber = 0;\n originalStartColumn = 0;\n originalEndLineNumber = 0;\n originalEndColumn = 0;\n }\n else {\n originalStartLineNumber = originalCharSequence.getStartLineNumber(diffChange.originalStart);\n originalStartColumn = originalCharSequence.getStartColumn(diffChange.originalStart);\n originalEndLineNumber = originalCharSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1);\n originalEndColumn = originalCharSequence.getEndColumn(diffChange.originalStart + diffChange.originalLength - 1);\n }\n if (diffChange.modifiedLength === 0) {\n modifiedStartLineNumber = 0;\n modifiedStartColumn = 0;\n modifiedEndLineNumber = 0;\n modifiedEndColumn = 0;\n }\n else {\n modifiedStartLineNumber = modifiedCharSequence.getStartLineNumber(diffChange.modifiedStart);\n modifiedStartColumn = modifiedCharSequence.getStartColumn(diffChange.modifiedStart);\n modifiedEndLineNumber = modifiedCharSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1);\n modifiedEndColumn = modifiedCharSequence.getEndColumn(diffChange.modifiedStart + diffChange.modifiedLength - 1);\n }\n return new CharChange(originalStartLineNumber, originalStartColumn, originalEndLineNumber, originalEndColumn, modifiedStartLineNumber, modifiedStartColumn, modifiedEndLineNumber, modifiedEndColumn);\n }\n}\nfunction postProcessCharChanges(rawChanges) {\n if (rawChanges.length <= 1) {\n return rawChanges;\n }\n const result = [rawChanges[0]];\n let prevChange = result[0];\n for (let i = 1, len = rawChanges.length; i < len; i++) {\n const currChange = rawChanges[i];\n const originalMatchingLength = currChange.originalStart - (prevChange.originalStart + prevChange.originalLength);\n const modifiedMatchingLength = currChange.modifiedStart - (prevChange.modifiedStart + prevChange.modifiedLength);\n // Both of the above should be equal, but the continueProcessingPredicate may prevent this from being true\n const matchingLength = Math.min(originalMatchingLength, modifiedMatchingLength);\n if (matchingLength < MINIMUM_MATCHING_CHARACTER_LENGTH) {\n // Merge the current change into the previous one\n prevChange.originalLength = (currChange.originalStart + currChange.originalLength) - prevChange.originalStart;\n prevChange.modifiedLength = (currChange.modifiedStart + currChange.modifiedLength) - prevChange.modifiedStart;\n }\n else {\n // Add the current change\n result.push(currChange);\n prevChange = currChange;\n }\n }\n return result;\n}\nclass LineChange {\n constructor(originalStartLineNumber, originalEndLineNumber, modifiedStartLineNumber, modifiedEndLineNumber, charChanges) {\n this.originalStartLineNumber = originalStartLineNumber;\n this.originalEndLineNumber = originalEndLineNumber;\n this.modifiedStartLineNumber = modifiedStartLineNumber;\n this.modifiedEndLineNumber = modifiedEndLineNumber;\n this.charChanges = charChanges;\n }\n static createFromDiffResult(shouldIgnoreTrimWhitespace, diffChange, originalLineSequence, modifiedLineSequence, continueCharDiff, shouldComputeCharChanges, shouldPostProcessCharChanges) {\n let originalStartLineNumber;\n let originalEndLineNumber;\n let modifiedStartLineNumber;\n let modifiedEndLineNumber;\n let charChanges = undefined;\n if (diffChange.originalLength === 0) {\n originalStartLineNumber = originalLineSequence.getStartLineNumber(diffChange.originalStart) - 1;\n originalEndLineNumber = 0;\n }\n else {\n originalStartLineNumber = originalLineSequence.getStartLineNumber(diffChange.originalStart);\n originalEndLineNumber = originalLineSequence.getEndLineNumber(diffChange.originalStart + diffChange.originalLength - 1);\n }\n if (diffChange.modifiedLength === 0) {\n modifiedStartLineNumber = modifiedLineSequence.getStartLineNumber(diffChange.modifiedStart) - 1;\n modifiedEndLineNumber = 0;\n }\n else {\n modifiedStartLineNumber = modifiedLineSequence.getStartLineNumber(diffChange.modifiedStart);\n modifiedEndLineNumber = modifiedLineSequence.getEndLineNumber(diffChange.modifiedStart + diffChange.modifiedLength - 1);\n }\n if (shouldComputeCharChanges && diffChange.originalLength > 0 && diffChange.originalLength < 20 && diffChange.modifiedLength > 0 && diffChange.modifiedLength < 20 && continueCharDiff()) {\n // Compute character changes for diff chunks of at most 20 lines...\n const originalCharSequence = originalLineSequence.createCharSequence(shouldIgnoreTrimWhitespace, diffChange.originalStart, diffChange.originalStart + diffChange.originalLength - 1);\n const modifiedCharSequence = modifiedLineSequence.createCharSequence(shouldIgnoreTrimWhitespace, diffChange.modifiedStart, diffChange.modifiedStart + diffChange.modifiedLength - 1);\n let rawChanges = computeDiff(originalCharSequence, modifiedCharSequence, continueCharDiff, true).changes;\n if (shouldPostProcessCharChanges) {\n rawChanges = postProcessCharChanges(rawChanges);\n }\n charChanges = [];\n for (let i = 0, length = rawChanges.length; i < length; i++) {\n charChanges.push(CharChange.createFromDiffChange(rawChanges[i], originalCharSequence, modifiedCharSequence));\n }\n }\n return new LineChange(originalStartLineNumber, originalEndLineNumber, modifiedStartLineNumber, modifiedEndLineNumber, charChanges);\n }\n}\nexport class DiffComputer {\n constructor(originalLines, modifiedLines, opts) {\n this.shouldComputeCharChanges = opts.shouldComputeCharChanges;\n this.shouldPostProcessCharChanges = opts.shouldPostProcessCharChanges;\n this.shouldIgnoreTrimWhitespace = opts.shouldIgnoreTrimWhitespace;\n this.shouldMakePrettyDiff = opts.shouldMakePrettyDiff;\n this.originalLines = originalLines;\n this.modifiedLines = modifiedLines;\n this.original = new LineSequence(originalLines);\n this.modified = new LineSequence(modifiedLines);\n this.continueLineDiff = createContinueProcessingPredicate(opts.maxComputationTime);\n this.continueCharDiff = createContinueProcessingPredicate(opts.maxComputationTime === 0 ? 0 : Math.min(opts.maxComputationTime, 5000)); // never run after 5s for character changes...\n }\n computeDiff() {\n if (this.original.lines.length === 1 && this.original.lines[0].length === 0) {\n // empty original => fast path\n if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0) {\n return {\n quitEarly: false,\n changes: []\n };\n }\n return {\n quitEarly: false,\n changes: [{\n originalStartLineNumber: 1,\n originalEndLineNumber: 1,\n modifiedStartLineNumber: 1,\n modifiedEndLineNumber: this.modified.lines.length,\n charChanges: [{\n modifiedEndColumn: 0,\n modifiedEndLineNumber: 0,\n modifiedStartColumn: 0,\n modifiedStartLineNumber: 0,\n originalEndColumn: 0,\n originalEndLineNumber: 0,\n originalStartColumn: 0,\n originalStartLineNumber: 0\n }]\n }]\n };\n }\n if (this.modified.lines.length === 1 && this.modified.lines[0].length === 0) {\n // empty modified => fast path\n return {\n quitEarly: false,\n changes: [{\n originalStartLineNumber: 1,\n originalEndLineNumber: this.original.lines.length,\n modifiedStartLineNumber: 1,\n modifiedEndLineNumber: 1,\n charChanges: [{\n modifiedEndColumn: 0,\n modifiedEndLineNumber: 0,\n modifiedStartColumn: 0,\n modifiedStartLineNumber: 0,\n originalEndColumn: 0,\n originalEndLineNumber: 0,\n originalStartColumn: 0,\n originalStartLineNumber: 0\n }]\n }]\n };\n }\n const diffResult = computeDiff(this.original, this.modified, this.continueLineDiff, this.shouldMakePrettyDiff);\n const rawChanges = diffResult.changes;\n const quitEarly = diffResult.quitEarly;\n // The diff is always computed with ignoring trim whitespace\n // This ensures we get the prettiest diff\n if (this.shouldIgnoreTrimWhitespace) {\n const lineChanges = [];\n for (let i = 0, length = rawChanges.length; i < length; i++) {\n lineChanges.push(LineChange.createFromDiffResult(this.shouldIgnoreTrimWhitespace, rawChanges[i], this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));\n }\n return {\n quitEarly: quitEarly,\n changes: lineChanges\n };\n }\n // Need to post-process and introduce changes where the trim whitespace is different\n // Note that we are looping starting at -1 to also cover the lines before the first change\n const result = [];\n let originalLineIndex = 0;\n let modifiedLineIndex = 0;\n for (let i = -1 /* !!!! */, len = rawChanges.length; i < len; i++) {\n const nextChange = (i + 1 < len ? rawChanges[i + 1] : null);\n const originalStop = (nextChange ? nextChange.originalStart : this.originalLines.length);\n const modifiedStop = (nextChange ? nextChange.modifiedStart : this.modifiedLines.length);\n while (originalLineIndex < originalStop && modifiedLineIndex < modifiedStop) {\n const originalLine = this.originalLines[originalLineIndex];\n const modifiedLine = this.modifiedLines[modifiedLineIndex];\n if (originalLine !== modifiedLine) {\n // These lines differ only in trim whitespace\n // Check the leading whitespace\n {\n let originalStartColumn = getFirstNonBlankColumn(originalLine, 1);\n let modifiedStartColumn = getFirstNonBlankColumn(modifiedLine, 1);\n while (originalStartColumn > 1 && modifiedStartColumn > 1) {\n const originalChar = originalLine.charCodeAt(originalStartColumn - 2);\n const modifiedChar = modifiedLine.charCodeAt(modifiedStartColumn - 2);\n if (originalChar !== modifiedChar) {\n break;\n }\n originalStartColumn--;\n modifiedStartColumn--;\n }\n if (originalStartColumn > 1 || modifiedStartColumn > 1) {\n this._pushTrimWhitespaceCharChange(result, originalLineIndex + 1, 1, originalStartColumn, modifiedLineIndex + 1, 1, modifiedStartColumn);\n }\n }\n // Check the trailing whitespace\n {\n let originalEndColumn = getLastNonBlankColumn(originalLine, 1);\n let modifiedEndColumn = getLastNonBlankColumn(modifiedLine, 1);\n const originalMaxColumn = originalLine.length + 1;\n const modifiedMaxColumn = modifiedLine.length + 1;\n while (originalEndColumn < originalMaxColumn && modifiedEndColumn < modifiedMaxColumn) {\n const originalChar = originalLine.charCodeAt(originalEndColumn - 1);\n const modifiedChar = originalLine.charCodeAt(modifiedEndColumn - 1);\n if (originalChar !== modifiedChar) {\n break;\n }\n originalEndColumn++;\n modifiedEndColumn++;\n }\n if (originalEndColumn < originalMaxColumn || modifiedEndColumn < modifiedMaxColumn) {\n this._pushTrimWhitespaceCharChange(result, originalLineIndex + 1, originalEndColumn, originalMaxColumn, modifiedLineIndex + 1, modifiedEndColumn, modifiedMaxColumn);\n }\n }\n }\n originalLineIndex++;\n modifiedLineIndex++;\n }\n if (nextChange) {\n // Emit the actual change\n result.push(LineChange.createFromDiffResult(this.shouldIgnoreTrimWhitespace, nextChange, this.original, this.modified, this.continueCharDiff, this.shouldComputeCharChanges, this.shouldPostProcessCharChanges));\n originalLineIndex += nextChange.originalLength;\n modifiedLineIndex += nextChange.modifiedLength;\n }\n }\n return {\n quitEarly: quitEarly,\n changes: result\n };\n }\n _pushTrimWhitespaceCharChange(result, originalLineNumber, originalStartColumn, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedEndColumn) {\n if (this._mergeTrimWhitespaceCharChange(result, originalLineNumber, originalStartColumn, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedEndColumn)) {\n // Merged into previous\n return;\n }\n let charChanges = undefined;\n if (this.shouldComputeCharChanges) {\n charChanges = [new CharChange(originalLineNumber, originalStartColumn, originalLineNumber, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedLineNumber, modifiedEndColumn)];\n }\n result.push(new LineChange(originalLineNumber, originalLineNumber, modifiedLineNumber, modifiedLineNumber, charChanges));\n }\n _mergeTrimWhitespaceCharChange(result, originalLineNumber, originalStartColumn, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedEndColumn) {\n const len = result.length;\n if (len === 0) {\n return false;\n }\n const prevChange = result[len - 1];\n if (prevChange.originalEndLineNumber === 0 || prevChange.modifiedEndLineNumber === 0) {\n // Don't merge with inserts/deletes\n return false;\n }\n if (prevChange.originalEndLineNumber + 1 === originalLineNumber && prevChange.modifiedEndLineNumber + 1 === modifiedLineNumber) {\n prevChange.originalEndLineNumber = originalLineNumber;\n prevChange.modifiedEndLineNumber = modifiedLineNumber;\n if (this.shouldComputeCharChanges && prevChange.charChanges) {\n prevChange.charChanges.push(new CharChange(originalLineNumber, originalStartColumn, originalLineNumber, originalEndColumn, modifiedLineNumber, modifiedStartColumn, modifiedLineNumber, modifiedEndColumn));\n }\n return true;\n }\n return false;\n }\n}\nfunction getFirstNonBlankColumn(txt, defaultValue) {\n const r = strings.firstNonWhitespaceIndex(txt);\n if (r === -1) {\n return defaultValue;\n }\n return r + 1;\n}\nfunction getLastNonBlankColumn(txt, defaultValue) {\n const r = strings.lastNonWhitespaceIndex(txt);\n if (r === -1) {\n return defaultValue;\n }\n return r + 2;\n}\nfunction createContinueProcessingPredicate(maximumRuntime) {\n if (maximumRuntime === 0) {\n return () => true;\n }\n const startTime = Date.now();\n return () => {\n return Date.now() - startTime < maximumRuntime;\n };\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport function toUint8(v) {\n if (v < 0) {\n return 0;\n }\n if (v > 255 /* MAX_UINT_8 */) {\n return 255 /* MAX_UINT_8 */;\n }\n return v | 0;\n}\nexport function toUint32(v) {\n if (v < 0) {\n return 0;\n }\n if (v > 4294967295 /* MAX_UINT_32 */) {\n return 4294967295 /* MAX_UINT_32 */;\n }\n return v | 0;\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { toUint32 } from '../../../base/common/uint.js';\nexport class PrefixSumIndexOfResult {\n constructor(index, remainder) {\n this._prefixSumIndexOfResultBrand = undefined;\n this.index = index;\n this.remainder = remainder;\n }\n}\nexport class PrefixSumComputer {\n constructor(values) {\n this.values = values;\n this.prefixSum = new Uint32Array(values.length);\n this.prefixSumValidIndex = new Int32Array(1);\n this.prefixSumValidIndex[0] = -1;\n }\n insertValues(insertIndex, insertValues) {\n insertIndex = toUint32(insertIndex);\n const oldValues = this.values;\n const oldPrefixSum = this.prefixSum;\n const insertValuesLen = insertValues.length;\n if (insertValuesLen === 0) {\n return false;\n }\n this.values = new Uint32Array(oldValues.length + insertValuesLen);\n this.values.set(oldValues.subarray(0, insertIndex), 0);\n this.values.set(oldValues.subarray(insertIndex), insertIndex + insertValuesLen);\n this.values.set(insertValues, insertIndex);\n if (insertIndex - 1 < this.prefixSumValidIndex[0]) {\n this.prefixSumValidIndex[0] = insertIndex - 1;\n }\n this.prefixSum = new Uint32Array(this.values.length);\n if (this.prefixSumValidIndex[0] >= 0) {\n this.prefixSum.set(oldPrefixSum.subarray(0, this.prefixSumValidIndex[0] + 1));\n }\n return true;\n }\n changeValue(index, value) {\n index = toUint32(index);\n value = toUint32(value);\n if (this.values[index] === value) {\n return false;\n }\n this.values[index] = value;\n if (index - 1 < this.prefixSumValidIndex[0]) {\n this.prefixSumValidIndex[0] = index - 1;\n }\n return true;\n }\n removeValues(startIndex, count) {\n startIndex = toUint32(startIndex);\n count = toUint32(count);\n const oldValues = this.values;\n const oldPrefixSum = this.prefixSum;\n if (startIndex >= oldValues.length) {\n return false;\n }\n let maxCount = oldValues.length - startIndex;\n if (count >= maxCount) {\n count = maxCount;\n }\n if (count === 0) {\n return false;\n }\n this.values = new Uint32Array(oldValues.length - count);\n this.values.set(oldValues.subarray(0, startIndex), 0);\n this.values.set(oldValues.subarray(startIndex + count), startIndex);\n this.prefixSum = new Uint32Array(this.values.length);\n if (startIndex - 1 < this.prefixSumValidIndex[0]) {\n this.prefixSumValidIndex[0] = startIndex - 1;\n }\n if (this.prefixSumValidIndex[0] >= 0) {\n this.prefixSum.set(oldPrefixSum.subarray(0, this.prefixSumValidIndex[0] + 1));\n }\n return true;\n }\n getTotalSum() {\n if (this.values.length === 0) {\n return 0;\n }\n return this._getPrefixSum(this.values.length - 1);\n }\n getPrefixSum(index) {\n if (index < 0) {\n return 0;\n }\n index = toUint32(index);\n return this._getPrefixSum(index);\n }\n _getPrefixSum(index) {\n if (index <= this.prefixSumValidIndex[0]) {\n return this.prefixSum[index];\n }\n let startIndex = this.prefixSumValidIndex[0] + 1;\n if (startIndex === 0) {\n this.prefixSum[0] = this.values[0];\n startIndex++;\n }\n if (index >= this.values.length) {\n index = this.values.length - 1;\n }\n for (let i = startIndex; i <= index; i++) {\n this.prefixSum[i] = this.prefixSum[i - 1] + this.values[i];\n }\n this.prefixSumValidIndex[0] = Math.max(this.prefixSumValidIndex[0], index);\n return this.prefixSum[index];\n }\n getIndexOf(sum) {\n sum = Math.floor(sum); //@perf\n // Compute all sums (to get a fully valid prefixSum)\n this.getTotalSum();\n let low = 0;\n let high = this.values.length - 1;\n let mid = 0;\n let midStop = 0;\n let midStart = 0;\n while (low <= high) {\n mid = low + ((high - low) / 2) | 0;\n midStop = this.prefixSum[mid];\n midStart = midStop - this.values[mid];\n if (sum < midStart) {\n high = mid - 1;\n }\n else if (sum >= midStop) {\n low = mid + 1;\n }\n else {\n break;\n }\n }\n return new PrefixSumIndexOfResult(mid, sum - midStart);\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { splitLines } from '../../../base/common/strings.js';\nimport { Position } from '../core/position.js';\nimport { PrefixSumComputer } from '../viewModel/prefixSumComputer.js';\nexport class MirrorTextModel {\n constructor(uri, lines, eol, versionId) {\n this._uri = uri;\n this._lines = lines;\n this._eol = eol;\n this._versionId = versionId;\n this._lineStarts = null;\n this._cachedTextValue = null;\n }\n dispose() {\n this._lines.length = 0;\n }\n get version() {\n return this._versionId;\n }\n getText() {\n if (this._cachedTextValue === null) {\n this._cachedTextValue = this._lines.join(this._eol);\n }\n return this._cachedTextValue;\n }\n onEvents(e) {\n if (e.eol && e.eol !== this._eol) {\n this._eol = e.eol;\n this._lineStarts = null;\n }\n // Update my lines\n const changes = e.changes;\n for (const change of changes) {\n this._acceptDeleteRange(change.range);\n this._acceptInsertText(new Position(change.range.startLineNumber, change.range.startColumn), change.text);\n }\n this._versionId = e.versionId;\n this._cachedTextValue = null;\n }\n _ensureLineStarts() {\n if (!this._lineStarts) {\n const eolLength = this._eol.length;\n const linesLength = this._lines.length;\n const lineStartValues = new Uint32Array(linesLength);\n for (let i = 0; i < linesLength; i++) {\n lineStartValues[i] = this._lines[i].length + eolLength;\n }\n this._lineStarts = new PrefixSumComputer(lineStartValues);\n }\n }\n /**\n * All changes to a line's text go through this method\n */\n _setLineText(lineIndex, newValue) {\n this._lines[lineIndex] = newValue;\n if (this._lineStarts) {\n // update prefix sum\n this._lineStarts.changeValue(lineIndex, this._lines[lineIndex].length + this._eol.length);\n }\n }\n _acceptDeleteRange(range) {\n if (range.startLineNumber === range.endLineNumber) {\n if (range.startColumn === range.endColumn) {\n // Nothing to delete\n return;\n }\n // Delete text on the affected line\n this._setLineText(range.startLineNumber - 1, this._lines[range.startLineNumber - 1].substring(0, range.startColumn - 1)\n + this._lines[range.startLineNumber - 1].substring(range.endColumn - 1));\n return;\n }\n // Take remaining text on last line and append it to remaining text on first line\n this._setLineText(range.startLineNumber - 1, this._lines[range.startLineNumber - 1].substring(0, range.startColumn - 1)\n + this._lines[range.endLineNumber - 1].substring(range.endColumn - 1));\n // Delete middle lines\n this._lines.splice(range.startLineNumber, range.endLineNumber - range.startLineNumber);\n if (this._lineStarts) {\n // update prefix sum\n this._lineStarts.removeValues(range.startLineNumber, range.endLineNumber - range.startLineNumber);\n }\n }\n _acceptInsertText(position, insertText) {\n if (insertText.length === 0) {\n // Nothing to insert\n return;\n }\n let insertLines = splitLines(insertText);\n if (insertLines.length === 1) {\n // Inserting text on one line\n this._setLineText(position.lineNumber - 1, this._lines[position.lineNumber - 1].substring(0, position.column - 1)\n + insertLines[0]\n + this._lines[position.lineNumber - 1].substring(position.column - 1));\n return;\n }\n // Append overflowing text from first line to the end of text to insert\n insertLines[insertLines.length - 1] += this._lines[position.lineNumber - 1].substring(position.column - 1);\n // Delete overflowing text from first line and insert text on first line\n this._setLineText(position.lineNumber - 1, this._lines[position.lineNumber - 1].substring(0, position.column - 1)\n + insertLines[0]);\n // Insert new lines & store lengths\n let newLengths = new Uint32Array(insertLines.length - 1);\n for (let i = 1; i < insertLines.length; i++) {\n this._lines.splice(position.lineNumber + i - 1, 0, insertLines[i]);\n newLengths[i - 1] = insertLines[i].length + this._eol.length;\n }\n if (this._lineStarts) {\n // update prefix sum\n this._lineStarts.insertValues(position.lineNumber, newLengths);\n }\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport const USUAL_WORD_SEPARATORS = '`~!@#$%^&*()-=+[{]}\\\\|;:\\'\",.<>/?';\n/**\n * Create a word definition regular expression based on default word separators.\n * Optionally provide allowed separators that should be included in words.\n *\n * The default would look like this:\n * /(-?\\d*\\.\\d\\w*)|([^\\`\\~\\!\\@\\#\\$\\%\\^\\&\\*\\(\\)\\-\\=\\+\\[\\{\\]\\}\\\\\\|\\;\\:\\'\\\"\\,\\.\\<\\>\\/\\?\\s]+)/g\n */\nfunction createWordRegExp(allowInWords = '') {\n let source = '(-?\\\\d*\\\\.\\\\d\\\\w*)|([^';\n for (const sep of USUAL_WORD_SEPARATORS) {\n if (allowInWords.indexOf(sep) >= 0) {\n continue;\n }\n source += '\\\\' + sep;\n }\n source += '\\\\s]+)';\n return new RegExp(source, 'g');\n}\n// catches numbers (including floating numbers) in the first group, and alphanum in the second\nexport const DEFAULT_WORD_REGEXP = createWordRegExp();\nexport function ensureValidWordDefinition(wordDefinition) {\n let result = DEFAULT_WORD_REGEXP;\n if (wordDefinition && (wordDefinition instanceof RegExp)) {\n if (!wordDefinition.global) {\n let flags = 'g';\n if (wordDefinition.ignoreCase) {\n flags += 'i';\n }\n if (wordDefinition.multiline) {\n flags += 'm';\n }\n if (wordDefinition.unicode) {\n flags += 'u';\n }\n result = new RegExp(wordDefinition.source, flags);\n }\n else {\n result = wordDefinition;\n }\n }\n result.lastIndex = 0;\n return result;\n}\nconst _defaultConfig = {\n maxLen: 1000,\n windowSize: 15,\n timeBudget: 150\n};\nexport function getWordAtText(column, wordDefinition, text, textOffset, config = _defaultConfig) {\n if (text.length > config.maxLen) {\n // don't throw strings that long at the regexp\n // but use a sub-string in which a word must occur\n let start = column - config.maxLen / 2;\n if (start < 0) {\n start = 0;\n }\n else {\n textOffset += start;\n }\n text = text.substring(start, column + config.maxLen / 2);\n return getWordAtText(column, wordDefinition, text, textOffset, config);\n }\n const t1 = Date.now();\n const pos = column - 1 - textOffset;\n let prevRegexIndex = -1;\n let match = null;\n for (let i = 1;; i++) {\n // check time budget\n if (Date.now() - t1 >= config.timeBudget) {\n break;\n }\n // reset the index at which the regexp should start matching, also know where it\n // should stop so that subsequent search don't repeat previous searches\n const regexIndex = pos - config.windowSize * i;\n wordDefinition.lastIndex = Math.max(0, regexIndex);\n const thisMatch = _findRegexMatchEnclosingPosition(wordDefinition, text, pos, prevRegexIndex);\n if (!thisMatch && match) {\n // stop: we have something\n break;\n }\n match = thisMatch;\n // stop: searched at start\n if (regexIndex <= 0) {\n break;\n }\n prevRegexIndex = regexIndex;\n }\n if (match) {\n let result = {\n word: match[0],\n startColumn: textOffset + 1 + match.index,\n endColumn: textOffset + 1 + match.index + match[0].length\n };\n wordDefinition.lastIndex = 0;\n return result;\n }\n return null;\n}\nfunction _findRegexMatchEnclosingPosition(wordDefinition, text, pos, stopPos) {\n let match;\n while (match = wordDefinition.exec(text)) {\n const matchIndex = match.index || 0;\n if (matchIndex <= pos && wordDefinition.lastIndex >= pos) {\n return match;\n }\n else if (stopPos > 0 && matchIndex > stopPos) {\n return null;\n }\n }\n return null;\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { toUint8 } from '../../../base/common/uint.js';\n/**\n * A fast character classifier that uses a compact array for ASCII values.\n */\nexport class CharacterClassifier {\n constructor(_defaultValue) {\n let defaultValue = toUint8(_defaultValue);\n this._defaultValue = defaultValue;\n this._asciiMap = CharacterClassifier._createAsciiMap(defaultValue);\n this._map = new Map();\n }\n static _createAsciiMap(defaultValue) {\n let asciiMap = new Uint8Array(256);\n for (let i = 0; i < 256; i++) {\n asciiMap[i] = defaultValue;\n }\n return asciiMap;\n }\n set(charCode, _value) {\n let value = toUint8(_value);\n if (charCode >= 0 && charCode < 256) {\n this._asciiMap[charCode] = value;\n }\n else {\n this._map.set(charCode, value);\n }\n }\n get(charCode) {\n if (charCode >= 0 && charCode < 256) {\n return this._asciiMap[charCode];\n }\n else {\n return (this._map.get(charCode) || this._defaultValue);\n }\n }\n}\nexport class CharacterSet {\n constructor() {\n this._actual = new CharacterClassifier(0 /* False */);\n }\n add(charCode) {\n this._actual.set(charCode, 1 /* True */);\n }\n has(charCode) {\n return (this._actual.get(charCode) === 1 /* True */);\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { CharacterClassifier } from '../core/characterClassifier.js';\nexport class Uint8Matrix {\n constructor(rows, cols, defaultValue) {\n const data = new Uint8Array(rows * cols);\n for (let i = 0, len = rows * cols; i < len; i++) {\n data[i] = defaultValue;\n }\n this._data = data;\n this.rows = rows;\n this.cols = cols;\n }\n get(row, col) {\n return this._data[row * this.cols + col];\n }\n set(row, col, value) {\n this._data[row * this.cols + col] = value;\n }\n}\nexport class StateMachine {\n constructor(edges) {\n let maxCharCode = 0;\n let maxState = 0 /* Invalid */;\n for (let i = 0, len = edges.length; i < len; i++) {\n let [from, chCode, to] = edges[i];\n if (chCode > maxCharCode) {\n maxCharCode = chCode;\n }\n if (from > maxState) {\n maxState = from;\n }\n if (to > maxState) {\n maxState = to;\n }\n }\n maxCharCode++;\n maxState++;\n let states = new Uint8Matrix(maxState, maxCharCode, 0 /* Invalid */);\n for (let i = 0, len = edges.length; i < len; i++) {\n let [from, chCode, to] = edges[i];\n states.set(from, chCode, to);\n }\n this._states = states;\n this._maxCharCode = maxCharCode;\n }\n nextState(currentState, chCode) {\n if (chCode < 0 || chCode >= this._maxCharCode) {\n return 0 /* Invalid */;\n }\n return this._states.get(currentState, chCode);\n }\n}\n// State machine for http:// or https:// or file://\nlet _stateMachine = null;\nfunction getStateMachine() {\n if (_stateMachine === null) {\n _stateMachine = new StateMachine([\n [1 /* Start */, 104 /* h */, 2 /* H */],\n [1 /* Start */, 72 /* H */, 2 /* H */],\n [1 /* Start */, 102 /* f */, 6 /* F */],\n [1 /* Start */, 70 /* F */, 6 /* F */],\n [2 /* H */, 116 /* t */, 3 /* HT */],\n [2 /* H */, 84 /* T */, 3 /* HT */],\n [3 /* HT */, 116 /* t */, 4 /* HTT */],\n [3 /* HT */, 84 /* T */, 4 /* HTT */],\n [4 /* HTT */, 112 /* p */, 5 /* HTTP */],\n [4 /* HTT */, 80 /* P */, 5 /* HTTP */],\n [5 /* HTTP */, 115 /* s */, 9 /* BeforeColon */],\n [5 /* HTTP */, 83 /* S */, 9 /* BeforeColon */],\n [5 /* HTTP */, 58 /* Colon */, 10 /* AfterColon */],\n [6 /* F */, 105 /* i */, 7 /* FI */],\n [6 /* F */, 73 /* I */, 7 /* FI */],\n [7 /* FI */, 108 /* l */, 8 /* FIL */],\n [7 /* FI */, 76 /* L */, 8 /* FIL */],\n [8 /* FIL */, 101 /* e */, 9 /* BeforeColon */],\n [8 /* FIL */, 69 /* E */, 9 /* BeforeColon */],\n [9 /* BeforeColon */, 58 /* Colon */, 10 /* AfterColon */],\n [10 /* AfterColon */, 47 /* Slash */, 11 /* AlmostThere */],\n [11 /* AlmostThere */, 47 /* Slash */, 12 /* End */],\n ]);\n }\n return _stateMachine;\n}\nlet _classifier = null;\nfunction getClassifier() {\n if (_classifier === null) {\n _classifier = new CharacterClassifier(0 /* None */);\n const FORCE_TERMINATION_CHARACTERS = ' \\t<>\\'\\\"、。。、,.:;‘〈「『〔([{「」}])〕』」〉’`~…';\n for (let i = 0; i < FORCE_TERMINATION_CHARACTERS.length; i++) {\n _classifier.set(FORCE_TERMINATION_CHARACTERS.charCodeAt(i), 1 /* ForceTermination */);\n }\n const CANNOT_END_WITH_CHARACTERS = '.,;';\n for (let i = 0; i < CANNOT_END_WITH_CHARACTERS.length; i++) {\n _classifier.set(CANNOT_END_WITH_CHARACTERS.charCodeAt(i), 2 /* CannotEndIn */);\n }\n }\n return _classifier;\n}\nexport class LinkComputer {\n static _createLink(classifier, line, lineNumber, linkBeginIndex, linkEndIndex) {\n // Do not allow to end link in certain characters...\n let lastIncludedCharIndex = linkEndIndex - 1;\n do {\n const chCode = line.charCodeAt(lastIncludedCharIndex);\n const chClass = classifier.get(chCode);\n if (chClass !== 2 /* CannotEndIn */) {\n break;\n }\n lastIncludedCharIndex--;\n } while (lastIncludedCharIndex > linkBeginIndex);\n // Handle links enclosed in parens, square brackets and curlys.\n if (linkBeginIndex > 0) {\n const charCodeBeforeLink = line.charCodeAt(linkBeginIndex - 1);\n const lastCharCodeInLink = line.charCodeAt(lastIncludedCharIndex);\n if ((charCodeBeforeLink === 40 /* OpenParen */ && lastCharCodeInLink === 41 /* CloseParen */)\n || (charCodeBeforeLink === 91 /* OpenSquareBracket */ && lastCharCodeInLink === 93 /* CloseSquareBracket */)\n || (charCodeBeforeLink === 123 /* OpenCurlyBrace */ && lastCharCodeInLink === 125 /* CloseCurlyBrace */)) {\n // Do not end in ) if ( is before the link start\n // Do not end in ] if [ is before the link start\n // Do not end in } if { is before the link start\n lastIncludedCharIndex--;\n }\n }\n return {\n range: {\n startLineNumber: lineNumber,\n startColumn: linkBeginIndex + 1,\n endLineNumber: lineNumber,\n endColumn: lastIncludedCharIndex + 2\n },\n url: line.substring(linkBeginIndex, lastIncludedCharIndex + 1)\n };\n }\n static computeLinks(model, stateMachine = getStateMachine()) {\n const classifier = getClassifier();\n let result = [];\n for (let i = 1, lineCount = model.getLineCount(); i <= lineCount; i++) {\n const line = model.getLineContent(i);\n const len = line.length;\n let j = 0;\n let linkBeginIndex = 0;\n let linkBeginChCode = 0;\n let state = 1 /* Start */;\n let hasOpenParens = false;\n let hasOpenSquareBracket = false;\n let inSquareBrackets = false;\n let hasOpenCurlyBracket = false;\n while (j < len) {\n let resetStateMachine = false;\n const chCode = line.charCodeAt(j);\n if (state === 13 /* Accept */) {\n let chClass;\n switch (chCode) {\n case 40 /* OpenParen */:\n hasOpenParens = true;\n chClass = 0 /* None */;\n break;\n case 41 /* CloseParen */:\n chClass = (hasOpenParens ? 0 /* None */ : 1 /* ForceTermination */);\n break;\n case 91 /* OpenSquareBracket */:\n inSquareBrackets = true;\n hasOpenSquareBracket = true;\n chClass = 0 /* None */;\n break;\n case 93 /* CloseSquareBracket */:\n inSquareBrackets = false;\n chClass = (hasOpenSquareBracket ? 0 /* None */ : 1 /* ForceTermination */);\n break;\n case 123 /* OpenCurlyBrace */:\n hasOpenCurlyBracket = true;\n chClass = 0 /* None */;\n break;\n case 125 /* CloseCurlyBrace */:\n chClass = (hasOpenCurlyBracket ? 0 /* None */ : 1 /* ForceTermination */);\n break;\n /* The following three rules make it that ' or \" or ` are allowed inside links if the link began with a different one */\n case 39 /* SingleQuote */:\n chClass = (linkBeginChCode === 34 /* DoubleQuote */ || linkBeginChCode === 96 /* BackTick */) ? 0 /* None */ : 1 /* ForceTermination */;\n break;\n case 34 /* DoubleQuote */:\n chClass = (linkBeginChCode === 39 /* SingleQuote */ || linkBeginChCode === 96 /* BackTick */) ? 0 /* None */ : 1 /* ForceTermination */;\n break;\n case 96 /* BackTick */:\n chClass = (linkBeginChCode === 39 /* SingleQuote */ || linkBeginChCode === 34 /* DoubleQuote */) ? 0 /* None */ : 1 /* ForceTermination */;\n break;\n case 42 /* Asterisk */:\n // `*` terminates a link if the link began with `*`\n chClass = (linkBeginChCode === 42 /* Asterisk */) ? 1 /* ForceTermination */ : 0 /* None */;\n break;\n case 124 /* Pipe */:\n // `|` terminates a link if the link began with `|`\n chClass = (linkBeginChCode === 124 /* Pipe */) ? 1 /* ForceTermination */ : 0 /* None */;\n break;\n case 32 /* Space */:\n // ` ` allow space in between [ and ]\n chClass = (inSquareBrackets ? 0 /* None */ : 1 /* ForceTermination */);\n break;\n default:\n chClass = classifier.get(chCode);\n }\n // Check if character terminates link\n if (chClass === 1 /* ForceTermination */) {\n result.push(LinkComputer._createLink(classifier, line, i, linkBeginIndex, j));\n resetStateMachine = true;\n }\n }\n else if (state === 12 /* End */) {\n let chClass;\n if (chCode === 91 /* OpenSquareBracket */) {\n // Allow for the authority part to contain ipv6 addresses which contain [ and ]\n hasOpenSquareBracket = true;\n chClass = 0 /* None */;\n }\n else {\n chClass = classifier.get(chCode);\n }\n // Check if character terminates link\n if (chClass === 1 /* ForceTermination */) {\n resetStateMachine = true;\n }\n else {\n state = 13 /* Accept */;\n }\n }\n else {\n state = stateMachine.nextState(state, chCode);\n if (state === 0 /* Invalid */) {\n resetStateMachine = true;\n }\n }\n if (resetStateMachine) {\n state = 1 /* Start */;\n hasOpenParens = false;\n hasOpenSquareBracket = false;\n hasOpenCurlyBracket = false;\n // Record where the link started\n linkBeginIndex = j + 1;\n linkBeginChCode = chCode;\n }\n j++;\n }\n if (state === 13 /* Accept */) {\n result.push(LinkComputer._createLink(classifier, line, i, linkBeginIndex, len));\n }\n }\n return result;\n }\n}\n/**\n * Returns an array of all links contains in the provided\n * document. *Note* that this operation is computational\n * expensive and should not run in the UI thread.\n */\nexport function computeLinks(model) {\n if (!model || typeof model.getLineCount !== 'function' || typeof model.getLineContent !== 'function') {\n // Unknown caller!\n return [];\n }\n return LinkComputer.computeLinks(model);\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport class BasicInplaceReplace {\n constructor() {\n this._defaultValueSet = [\n ['true', 'false'],\n ['True', 'False'],\n ['Private', 'Public', 'Friend', 'ReadOnly', 'Partial', 'Protected', 'WriteOnly'],\n ['public', 'protected', 'private'],\n ];\n }\n navigateValueSet(range1, text1, range2, text2, up) {\n if (range1 && text1) {\n let result = this.doNavigateValueSet(text1, up);\n if (result) {\n return {\n range: range1,\n value: result\n };\n }\n }\n if (range2 && text2) {\n let result = this.doNavigateValueSet(text2, up);\n if (result) {\n return {\n range: range2,\n value: result\n };\n }\n }\n return null;\n }\n doNavigateValueSet(text, up) {\n let numberResult = this.numberReplace(text, up);\n if (numberResult !== null) {\n return numberResult;\n }\n return this.textReplace(text, up);\n }\n numberReplace(value, up) {\n let precision = Math.pow(10, value.length - (value.lastIndexOf('.') + 1));\n let n1 = Number(value);\n let n2 = parseFloat(value);\n if (!isNaN(n1) && !isNaN(n2) && n1 === n2) {\n if (n1 === 0 && !up) {\n return null; // don't do negative\n //\t\t\t} else if(n1 === 9 && up) {\n //\t\t\t\treturn null; // don't insert 10 into a number\n }\n else {\n n1 = Math.floor(n1 * precision);\n n1 += up ? precision : -precision;\n return String(n1 / precision);\n }\n }\n return null;\n }\n textReplace(value, up) {\n return this.valueSetsReplace(this._defaultValueSet, value, up);\n }\n valueSetsReplace(valueSets, value, up) {\n let result = null;\n for (let i = 0, len = valueSets.length; result === null && i < len; i++) {\n result = this.valueSetReplace(valueSets[i], value, up);\n }\n return result;\n }\n valueSetReplace(valueSet, value, up) {\n let idx = valueSet.indexOf(value);\n if (idx >= 0) {\n idx += up ? +1 : -1;\n if (idx < 0) {\n idx = valueSet.length - 1;\n }\n else {\n idx %= valueSet.length;\n }\n return valueSet[idx];\n }\n return null;\n }\n}\nBasicInplaceReplace.INSTANCE = new BasicInplaceReplace();\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { Emitter, Event } from './event.js';\nconst shortcutEvent = Object.freeze(function (callback, context) {\n const handle = setTimeout(callback.bind(context), 0);\n return { dispose() { clearTimeout(handle); } };\n});\nexport var CancellationToken;\n(function (CancellationToken) {\n function isCancellationToken(thing) {\n if (thing === CancellationToken.None || thing === CancellationToken.Cancelled) {\n return true;\n }\n if (thing instanceof MutableToken) {\n return true;\n }\n if (!thing || typeof thing !== 'object') {\n return false;\n }\n return typeof thing.isCancellationRequested === 'boolean'\n && typeof thing.onCancellationRequested === 'function';\n }\n CancellationToken.isCancellationToken = isCancellationToken;\n CancellationToken.None = Object.freeze({\n isCancellationRequested: false,\n onCancellationRequested: Event.None\n });\n CancellationToken.Cancelled = Object.freeze({\n isCancellationRequested: true,\n onCancellationRequested: shortcutEvent\n });\n})(CancellationToken || (CancellationToken = {}));\nclass MutableToken {\n constructor() {\n this._isCancelled = false;\n this._emitter = null;\n }\n cancel() {\n if (!this._isCancelled) {\n this._isCancelled = true;\n if (this._emitter) {\n this._emitter.fire(undefined);\n this.dispose();\n }\n }\n }\n get isCancellationRequested() {\n return this._isCancelled;\n }\n get onCancellationRequested() {\n if (this._isCancelled) {\n return shortcutEvent;\n }\n if (!this._emitter) {\n this._emitter = new Emitter();\n }\n return this._emitter.event;\n }\n dispose() {\n if (this._emitter) {\n this._emitter.dispose();\n this._emitter = null;\n }\n }\n}\nexport class CancellationTokenSource {\n constructor(parent) {\n this._token = undefined;\n this._parentListener = undefined;\n this._parentListener = parent && parent.onCancellationRequested(this.cancel, this);\n }\n get token() {\n if (!this._token) {\n // be lazy and create the token only when\n // actually needed\n this._token = new MutableToken();\n }\n return this._token;\n }\n cancel() {\n if (!this._token) {\n // save an object by returning the default\n // cancelled token when cancellation happens\n // before someone asks for the token\n this._token = CancellationToken.Cancelled;\n }\n else if (this._token instanceof MutableToken) {\n // actually cancel\n this._token.cancel();\n }\n }\n dispose(cancel = false) {\n if (cancel) {\n this.cancel();\n }\n if (this._parentListener) {\n this._parentListener.dispose();\n }\n if (!this._token) {\n // ensure to initialize with an empty token if we had none\n this._token = CancellationToken.None;\n }\n else if (this._token instanceof MutableToken) {\n // actually dispose\n this._token.dispose();\n }\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nclass KeyCodeStrMap {\n constructor() {\n this._keyCodeToStr = [];\n this._strToKeyCode = Object.create(null);\n }\n define(keyCode, str) {\n this._keyCodeToStr[keyCode] = str;\n this._strToKeyCode[str.toLowerCase()] = keyCode;\n }\n keyCodeToStr(keyCode) {\n return this._keyCodeToStr[keyCode];\n }\n strToKeyCode(str) {\n return this._strToKeyCode[str.toLowerCase()] || 0 /* Unknown */;\n }\n}\nconst uiMap = new KeyCodeStrMap();\nconst userSettingsUSMap = new KeyCodeStrMap();\nconst userSettingsGeneralMap = new KeyCodeStrMap();\nexport const EVENT_KEY_CODE_MAP = new Array(230);\nexport const NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE = {};\nconst scanCodeIntToStr = [];\nconst scanCodeStrToInt = Object.create(null);\nconst scanCodeLowerCaseStrToInt = Object.create(null);\n/**\n * -1 if a ScanCode => KeyCode mapping depends on kb layout.\n */\nexport const IMMUTABLE_CODE_TO_KEY_CODE = [];\n/**\n * -1 if a KeyCode => ScanCode mapping depends on kb layout.\n */\nexport const IMMUTABLE_KEY_CODE_TO_CODE = [];\nfor (let i = 0; i <= 193 /* MAX_VALUE */; i++) {\n IMMUTABLE_CODE_TO_KEY_CODE[i] = -1 /* DependsOnKbLayout */;\n}\nfor (let i = 0; i <= 126 /* MAX_VALUE */; i++) {\n IMMUTABLE_KEY_CODE_TO_CODE[i] = -1 /* DependsOnKbLayout */;\n}\n(function () {\n // See https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx\n // See https://github.com/microsoft/node-native-keymap/blob/master/deps/chromium/keyboard_codes_win.h\n const empty = '';\n const mappings = [\n // keyCodeOrd, immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel\n [0, 1, 0 /* None */, 'None', 0 /* Unknown */, 'unknown', 0, 'VK_UNKNOWN', empty, empty],\n [0, 1, 1 /* Hyper */, 'Hyper', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 2 /* Super */, 'Super', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 3 /* Fn */, 'Fn', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 4 /* FnLock */, 'FnLock', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 5 /* Suspend */, 'Suspend', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 6 /* Resume */, 'Resume', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 7 /* Turbo */, 'Turbo', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 8 /* Sleep */, 'Sleep', 0 /* Unknown */, empty, 0, 'VK_SLEEP', empty, empty],\n [0, 1, 9 /* WakeUp */, 'WakeUp', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [31, 0, 10 /* KeyA */, 'KeyA', 31 /* KeyA */, 'A', 65, 'VK_A', empty, empty],\n [32, 0, 11 /* KeyB */, 'KeyB', 32 /* KeyB */, 'B', 66, 'VK_B', empty, empty],\n [33, 0, 12 /* KeyC */, 'KeyC', 33 /* KeyC */, 'C', 67, 'VK_C', empty, empty],\n [34, 0, 13 /* KeyD */, 'KeyD', 34 /* KeyD */, 'D', 68, 'VK_D', empty, empty],\n [35, 0, 14 /* KeyE */, 'KeyE', 35 /* KeyE */, 'E', 69, 'VK_E', empty, empty],\n [36, 0, 15 /* KeyF */, 'KeyF', 36 /* KeyF */, 'F', 70, 'VK_F', empty, empty],\n [37, 0, 16 /* KeyG */, 'KeyG', 37 /* KeyG */, 'G', 71, 'VK_G', empty, empty],\n [38, 0, 17 /* KeyH */, 'KeyH', 38 /* KeyH */, 'H', 72, 'VK_H', empty, empty],\n [39, 0, 18 /* KeyI */, 'KeyI', 39 /* KeyI */, 'I', 73, 'VK_I', empty, empty],\n [40, 0, 19 /* KeyJ */, 'KeyJ', 40 /* KeyJ */, 'J', 74, 'VK_J', empty, empty],\n [41, 0, 20 /* KeyK */, 'KeyK', 41 /* KeyK */, 'K', 75, 'VK_K', empty, empty],\n [42, 0, 21 /* KeyL */, 'KeyL', 42 /* KeyL */, 'L', 76, 'VK_L', empty, empty],\n [43, 0, 22 /* KeyM */, 'KeyM', 43 /* KeyM */, 'M', 77, 'VK_M', empty, empty],\n [44, 0, 23 /* KeyN */, 'KeyN', 44 /* KeyN */, 'N', 78, 'VK_N', empty, empty],\n [45, 0, 24 /* KeyO */, 'KeyO', 45 /* KeyO */, 'O', 79, 'VK_O', empty, empty],\n [46, 0, 25 /* KeyP */, 'KeyP', 46 /* KeyP */, 'P', 80, 'VK_P', empty, empty],\n [47, 0, 26 /* KeyQ */, 'KeyQ', 47 /* KeyQ */, 'Q', 81, 'VK_Q', empty, empty],\n [48, 0, 27 /* KeyR */, 'KeyR', 48 /* KeyR */, 'R', 82, 'VK_R', empty, empty],\n [49, 0, 28 /* KeyS */, 'KeyS', 49 /* KeyS */, 'S', 83, 'VK_S', empty, empty],\n [50, 0, 29 /* KeyT */, 'KeyT', 50 /* KeyT */, 'T', 84, 'VK_T', empty, empty],\n [51, 0, 30 /* KeyU */, 'KeyU', 51 /* KeyU */, 'U', 85, 'VK_U', empty, empty],\n [52, 0, 31 /* KeyV */, 'KeyV', 52 /* KeyV */, 'V', 86, 'VK_V', empty, empty],\n [53, 0, 32 /* KeyW */, 'KeyW', 53 /* KeyW */, 'W', 87, 'VK_W', empty, empty],\n [54, 0, 33 /* KeyX */, 'KeyX', 54 /* KeyX */, 'X', 88, 'VK_X', empty, empty],\n [55, 0, 34 /* KeyY */, 'KeyY', 55 /* KeyY */, 'Y', 89, 'VK_Y', empty, empty],\n [56, 0, 35 /* KeyZ */, 'KeyZ', 56 /* KeyZ */, 'Z', 90, 'VK_Z', empty, empty],\n [22, 0, 36 /* Digit1 */, 'Digit1', 22 /* Digit1 */, '1', 49, 'VK_1', empty, empty],\n [23, 0, 37 /* Digit2 */, 'Digit2', 23 /* Digit2 */, '2', 50, 'VK_2', empty, empty],\n [24, 0, 38 /* Digit3 */, 'Digit3', 24 /* Digit3 */, '3', 51, 'VK_3', empty, empty],\n [25, 0, 39 /* Digit4 */, 'Digit4', 25 /* Digit4 */, '4', 52, 'VK_4', empty, empty],\n [26, 0, 40 /* Digit5 */, 'Digit5', 26 /* Digit5 */, '5', 53, 'VK_5', empty, empty],\n [27, 0, 41 /* Digit6 */, 'Digit6', 27 /* Digit6 */, '6', 54, 'VK_6', empty, empty],\n [28, 0, 42 /* Digit7 */, 'Digit7', 28 /* Digit7 */, '7', 55, 'VK_7', empty, empty],\n [29, 0, 43 /* Digit8 */, 'Digit8', 29 /* Digit8 */, '8', 56, 'VK_8', empty, empty],\n [30, 0, 44 /* Digit9 */, 'Digit9', 30 /* Digit9 */, '9', 57, 'VK_9', empty, empty],\n [21, 0, 45 /* Digit0 */, 'Digit0', 21 /* Digit0 */, '0', 48, 'VK_0', empty, empty],\n [3, 1, 46 /* Enter */, 'Enter', 3 /* Enter */, 'Enter', 13, 'VK_RETURN', empty, empty],\n [9, 1, 47 /* Escape */, 'Escape', 9 /* Escape */, 'Escape', 27, 'VK_ESCAPE', empty, empty],\n [1, 1, 48 /* Backspace */, 'Backspace', 1 /* Backspace */, 'Backspace', 8, 'VK_BACK', empty, empty],\n [2, 1, 49 /* Tab */, 'Tab', 2 /* Tab */, 'Tab', 9, 'VK_TAB', empty, empty],\n [10, 1, 50 /* Space */, 'Space', 10 /* Space */, 'Space', 32, 'VK_SPACE', empty, empty],\n [83, 0, 51 /* Minus */, 'Minus', 83 /* Minus */, '-', 189, 'VK_OEM_MINUS', '-', 'OEM_MINUS'],\n [81, 0, 52 /* Equal */, 'Equal', 81 /* Equal */, '=', 187, 'VK_OEM_PLUS', '=', 'OEM_PLUS'],\n [87, 0, 53 /* BracketLeft */, 'BracketLeft', 87 /* BracketLeft */, '[', 219, 'VK_OEM_4', '[', 'OEM_4'],\n [89, 0, 54 /* BracketRight */, 'BracketRight', 89 /* BracketRight */, ']', 221, 'VK_OEM_6', ']', 'OEM_6'],\n [88, 0, 55 /* Backslash */, 'Backslash', 88 /* Backslash */, '\\\\', 220, 'VK_OEM_5', '\\\\', 'OEM_5'],\n [0, 0, 56 /* IntlHash */, 'IntlHash', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [80, 0, 57 /* Semicolon */, 'Semicolon', 80 /* Semicolon */, ';', 186, 'VK_OEM_1', ';', 'OEM_1'],\n [90, 0, 58 /* Quote */, 'Quote', 90 /* Quote */, '\\'', 222, 'VK_OEM_7', '\\'', 'OEM_7'],\n [86, 0, 59 /* Backquote */, 'Backquote', 86 /* Backquote */, '`', 192, 'VK_OEM_3', '`', 'OEM_3'],\n [82, 0, 60 /* Comma */, 'Comma', 82 /* Comma */, ',', 188, 'VK_OEM_COMMA', ',', 'OEM_COMMA'],\n [84, 0, 61 /* Period */, 'Period', 84 /* Period */, '.', 190, 'VK_OEM_PERIOD', '.', 'OEM_PERIOD'],\n [85, 0, 62 /* Slash */, 'Slash', 85 /* Slash */, '/', 191, 'VK_OEM_2', '/', 'OEM_2'],\n [8, 1, 63 /* CapsLock */, 'CapsLock', 8 /* CapsLock */, 'CapsLock', 20, 'VK_CAPITAL', empty, empty],\n [59, 1, 64 /* F1 */, 'F1', 59 /* F1 */, 'F1', 112, 'VK_F1', empty, empty],\n [60, 1, 65 /* F2 */, 'F2', 60 /* F2 */, 'F2', 113, 'VK_F2', empty, empty],\n [61, 1, 66 /* F3 */, 'F3', 61 /* F3 */, 'F3', 114, 'VK_F3', empty, empty],\n [62, 1, 67 /* F4 */, 'F4', 62 /* F4 */, 'F4', 115, 'VK_F4', empty, empty],\n [63, 1, 68 /* F5 */, 'F5', 63 /* F5 */, 'F5', 116, 'VK_F5', empty, empty],\n [64, 1, 69 /* F6 */, 'F6', 64 /* F6 */, 'F6', 117, 'VK_F6', empty, empty],\n [65, 1, 70 /* F7 */, 'F7', 65 /* F7 */, 'F7', 118, 'VK_F7', empty, empty],\n [66, 1, 71 /* F8 */, 'F8', 66 /* F8 */, 'F8', 119, 'VK_F8', empty, empty],\n [67, 1, 72 /* F9 */, 'F9', 67 /* F9 */, 'F9', 120, 'VK_F9', empty, empty],\n [68, 1, 73 /* F10 */, 'F10', 68 /* F10 */, 'F10', 121, 'VK_F10', empty, empty],\n [69, 1, 74 /* F11 */, 'F11', 69 /* F11 */, 'F11', 122, 'VK_F11', empty, empty],\n [70, 1, 75 /* F12 */, 'F12', 70 /* F12 */, 'F12', 123, 'VK_F12', empty, empty],\n [0, 1, 76 /* PrintScreen */, 'PrintScreen', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [79, 1, 77 /* ScrollLock */, 'ScrollLock', 79 /* ScrollLock */, 'ScrollLock', 145, 'VK_SCROLL', empty, empty],\n [7, 1, 78 /* Pause */, 'Pause', 7 /* PauseBreak */, 'PauseBreak', 19, 'VK_PAUSE', empty, empty],\n [19, 1, 79 /* Insert */, 'Insert', 19 /* Insert */, 'Insert', 45, 'VK_INSERT', empty, empty],\n [14, 1, 80 /* Home */, 'Home', 14 /* Home */, 'Home', 36, 'VK_HOME', empty, empty],\n [11, 1, 81 /* PageUp */, 'PageUp', 11 /* PageUp */, 'PageUp', 33, 'VK_PRIOR', empty, empty],\n [20, 1, 82 /* Delete */, 'Delete', 20 /* Delete */, 'Delete', 46, 'VK_DELETE', empty, empty],\n [13, 1, 83 /* End */, 'End', 13 /* End */, 'End', 35, 'VK_END', empty, empty],\n [12, 1, 84 /* PageDown */, 'PageDown', 12 /* PageDown */, 'PageDown', 34, 'VK_NEXT', empty, empty],\n [17, 1, 85 /* ArrowRight */, 'ArrowRight', 17 /* RightArrow */, 'RightArrow', 39, 'VK_RIGHT', 'Right', empty],\n [15, 1, 86 /* ArrowLeft */, 'ArrowLeft', 15 /* LeftArrow */, 'LeftArrow', 37, 'VK_LEFT', 'Left', empty],\n [18, 1, 87 /* ArrowDown */, 'ArrowDown', 18 /* DownArrow */, 'DownArrow', 40, 'VK_DOWN', 'Down', empty],\n [16, 1, 88 /* ArrowUp */, 'ArrowUp', 16 /* UpArrow */, 'UpArrow', 38, 'VK_UP', 'Up', empty],\n [78, 1, 89 /* NumLock */, 'NumLock', 78 /* NumLock */, 'NumLock', 144, 'VK_NUMLOCK', empty, empty],\n [108, 1, 90 /* NumpadDivide */, 'NumpadDivide', 108 /* NumpadDivide */, 'NumPad_Divide', 111, 'VK_DIVIDE', empty, empty],\n [103, 1, 91 /* NumpadMultiply */, 'NumpadMultiply', 103 /* NumpadMultiply */, 'NumPad_Multiply', 106, 'VK_MULTIPLY', empty, empty],\n [106, 1, 92 /* NumpadSubtract */, 'NumpadSubtract', 106 /* NumpadSubtract */, 'NumPad_Subtract', 109, 'VK_SUBTRACT', empty, empty],\n [104, 1, 93 /* NumpadAdd */, 'NumpadAdd', 104 /* NumpadAdd */, 'NumPad_Add', 107, 'VK_ADD', empty, empty],\n [3, 1, 94 /* NumpadEnter */, 'NumpadEnter', 3 /* Enter */, empty, 0, empty, empty, empty],\n [94, 1, 95 /* Numpad1 */, 'Numpad1', 94 /* Numpad1 */, 'NumPad1', 97, 'VK_NUMPAD1', empty, empty],\n [95, 1, 96 /* Numpad2 */, 'Numpad2', 95 /* Numpad2 */, 'NumPad2', 98, 'VK_NUMPAD2', empty, empty],\n [96, 1, 97 /* Numpad3 */, 'Numpad3', 96 /* Numpad3 */, 'NumPad3', 99, 'VK_NUMPAD3', empty, empty],\n [97, 1, 98 /* Numpad4 */, 'Numpad4', 97 /* Numpad4 */, 'NumPad4', 100, 'VK_NUMPAD4', empty, empty],\n [98, 1, 99 /* Numpad5 */, 'Numpad5', 98 /* Numpad5 */, 'NumPad5', 101, 'VK_NUMPAD5', empty, empty],\n [99, 1, 100 /* Numpad6 */, 'Numpad6', 99 /* Numpad6 */, 'NumPad6', 102, 'VK_NUMPAD6', empty, empty],\n [100, 1, 101 /* Numpad7 */, 'Numpad7', 100 /* Numpad7 */, 'NumPad7', 103, 'VK_NUMPAD7', empty, empty],\n [101, 1, 102 /* Numpad8 */, 'Numpad8', 101 /* Numpad8 */, 'NumPad8', 104, 'VK_NUMPAD8', empty, empty],\n [102, 1, 103 /* Numpad9 */, 'Numpad9', 102 /* Numpad9 */, 'NumPad9', 105, 'VK_NUMPAD9', empty, empty],\n [93, 1, 104 /* Numpad0 */, 'Numpad0', 93 /* Numpad0 */, 'NumPad0', 96, 'VK_NUMPAD0', empty, empty],\n [107, 1, 105 /* NumpadDecimal */, 'NumpadDecimal', 107 /* NumpadDecimal */, 'NumPad_Decimal', 110, 'VK_DECIMAL', empty, empty],\n [92, 0, 106 /* IntlBackslash */, 'IntlBackslash', 92 /* IntlBackslash */, 'OEM_102', 226, 'VK_OEM_102', empty, empty],\n [58, 1, 107 /* ContextMenu */, 'ContextMenu', 58 /* ContextMenu */, 'ContextMenu', 93, empty, empty, empty],\n [0, 1, 108 /* Power */, 'Power', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 109 /* NumpadEqual */, 'NumpadEqual', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [71, 1, 110 /* F13 */, 'F13', 71 /* F13 */, 'F13', 124, 'VK_F13', empty, empty],\n [72, 1, 111 /* F14 */, 'F14', 72 /* F14 */, 'F14', 125, 'VK_F14', empty, empty],\n [73, 1, 112 /* F15 */, 'F15', 73 /* F15 */, 'F15', 126, 'VK_F15', empty, empty],\n [74, 1, 113 /* F16 */, 'F16', 74 /* F16 */, 'F16', 127, 'VK_F16', empty, empty],\n [75, 1, 114 /* F17 */, 'F17', 75 /* F17 */, 'F17', 128, 'VK_F17', empty, empty],\n [76, 1, 115 /* F18 */, 'F18', 76 /* F18 */, 'F18', 129, 'VK_F18', empty, empty],\n [77, 1, 116 /* F19 */, 'F19', 77 /* F19 */, 'F19', 130, 'VK_F19', empty, empty],\n [0, 1, 117 /* F20 */, 'F20', 0 /* Unknown */, empty, 0, 'VK_F20', empty, empty],\n [0, 1, 118 /* F21 */, 'F21', 0 /* Unknown */, empty, 0, 'VK_F21', empty, empty],\n [0, 1, 119 /* F22 */, 'F22', 0 /* Unknown */, empty, 0, 'VK_F22', empty, empty],\n [0, 1, 120 /* F23 */, 'F23', 0 /* Unknown */, empty, 0, 'VK_F23', empty, empty],\n [0, 1, 121 /* F24 */, 'F24', 0 /* Unknown */, empty, 0, 'VK_F24', empty, empty],\n [0, 1, 122 /* Open */, 'Open', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 123 /* Help */, 'Help', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 124 /* Select */, 'Select', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 125 /* Again */, 'Again', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 126 /* Undo */, 'Undo', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 127 /* Cut */, 'Cut', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 128 /* Copy */, 'Copy', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 129 /* Paste */, 'Paste', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 130 /* Find */, 'Find', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 131 /* AudioVolumeMute */, 'AudioVolumeMute', 112 /* AudioVolumeMute */, 'AudioVolumeMute', 173, 'VK_VOLUME_MUTE', empty, empty],\n [0, 1, 132 /* AudioVolumeUp */, 'AudioVolumeUp', 113 /* AudioVolumeUp */, 'AudioVolumeUp', 175, 'VK_VOLUME_UP', empty, empty],\n [0, 1, 133 /* AudioVolumeDown */, 'AudioVolumeDown', 114 /* AudioVolumeDown */, 'AudioVolumeDown', 174, 'VK_VOLUME_DOWN', empty, empty],\n [105, 1, 134 /* NumpadComma */, 'NumpadComma', 105 /* NUMPAD_SEPARATOR */, 'NumPad_Separator', 108, 'VK_SEPARATOR', empty, empty],\n [110, 0, 135 /* IntlRo */, 'IntlRo', 110 /* ABNT_C1 */, 'ABNT_C1', 193, 'VK_ABNT_C1', empty, empty],\n [0, 1, 136 /* KanaMode */, 'KanaMode', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 0, 137 /* IntlYen */, 'IntlYen', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 138 /* Convert */, 'Convert', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 139 /* NonConvert */, 'NonConvert', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 140 /* Lang1 */, 'Lang1', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 141 /* Lang2 */, 'Lang2', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 142 /* Lang3 */, 'Lang3', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 143 /* Lang4 */, 'Lang4', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 144 /* Lang5 */, 'Lang5', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 145 /* Abort */, 'Abort', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 146 /* Props */, 'Props', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 147 /* NumpadParenLeft */, 'NumpadParenLeft', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 148 /* NumpadParenRight */, 'NumpadParenRight', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 149 /* NumpadBackspace */, 'NumpadBackspace', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 150 /* NumpadMemoryStore */, 'NumpadMemoryStore', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 151 /* NumpadMemoryRecall */, 'NumpadMemoryRecall', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 152 /* NumpadMemoryClear */, 'NumpadMemoryClear', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 153 /* NumpadMemoryAdd */, 'NumpadMemoryAdd', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 154 /* NumpadMemorySubtract */, 'NumpadMemorySubtract', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 155 /* NumpadClear */, 'NumpadClear', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 156 /* NumpadClearEntry */, 'NumpadClearEntry', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [5, 1, 0 /* None */, empty, 5 /* Ctrl */, 'Ctrl', 17, 'VK_CONTROL', empty, empty],\n [4, 1, 0 /* None */, empty, 4 /* Shift */, 'Shift', 16, 'VK_SHIFT', empty, empty],\n [6, 1, 0 /* None */, empty, 6 /* Alt */, 'Alt', 18, 'VK_MENU', empty, empty],\n [57, 1, 0 /* None */, empty, 57 /* Meta */, 'Meta', 0, 'VK_COMMAND', empty, empty],\n [5, 1, 157 /* ControlLeft */, 'ControlLeft', 5 /* Ctrl */, empty, 0, 'VK_LCONTROL', empty, empty],\n [4, 1, 158 /* ShiftLeft */, 'ShiftLeft', 4 /* Shift */, empty, 0, 'VK_LSHIFT', empty, empty],\n [6, 1, 159 /* AltLeft */, 'AltLeft', 6 /* Alt */, empty, 0, 'VK_LMENU', empty, empty],\n [57, 1, 160 /* MetaLeft */, 'MetaLeft', 57 /* Meta */, empty, 0, 'VK_LWIN', empty, empty],\n [5, 1, 161 /* ControlRight */, 'ControlRight', 5 /* Ctrl */, empty, 0, 'VK_RCONTROL', empty, empty],\n [4, 1, 162 /* ShiftRight */, 'ShiftRight', 4 /* Shift */, empty, 0, 'VK_RSHIFT', empty, empty],\n [6, 1, 163 /* AltRight */, 'AltRight', 6 /* Alt */, empty, 0, 'VK_RMENU', empty, empty],\n [57, 1, 164 /* MetaRight */, 'MetaRight', 57 /* Meta */, empty, 0, 'VK_RWIN', empty, empty],\n [0, 1, 165 /* BrightnessUp */, 'BrightnessUp', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 166 /* BrightnessDown */, 'BrightnessDown', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 167 /* MediaPlay */, 'MediaPlay', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 168 /* MediaRecord */, 'MediaRecord', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 169 /* MediaFastForward */, 'MediaFastForward', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 170 /* MediaRewind */, 'MediaRewind', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [114, 1, 171 /* MediaTrackNext */, 'MediaTrackNext', 119 /* MediaTrackNext */, 'MediaTrackNext', 176, 'VK_MEDIA_NEXT_TRACK', empty, empty],\n [115, 1, 172 /* MediaTrackPrevious */, 'MediaTrackPrevious', 120 /* MediaTrackPrevious */, 'MediaTrackPrevious', 177, 'VK_MEDIA_PREV_TRACK', empty, empty],\n [116, 1, 173 /* MediaStop */, 'MediaStop', 121 /* MediaStop */, 'MediaStop', 178, 'VK_MEDIA_STOP', empty, empty],\n [0, 1, 174 /* Eject */, 'Eject', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [117, 1, 175 /* MediaPlayPause */, 'MediaPlayPause', 122 /* MediaPlayPause */, 'MediaPlayPause', 179, 'VK_MEDIA_PLAY_PAUSE', empty, empty],\n [0, 1, 176 /* MediaSelect */, 'MediaSelect', 123 /* LaunchMediaPlayer */, 'LaunchMediaPlayer', 181, 'VK_MEDIA_LAUNCH_MEDIA_SELECT', empty, empty],\n [0, 1, 177 /* LaunchMail */, 'LaunchMail', 124 /* LaunchMail */, 'LaunchMail', 180, 'VK_MEDIA_LAUNCH_MAIL', empty, empty],\n [0, 1, 178 /* LaunchApp2 */, 'LaunchApp2', 125 /* LaunchApp2 */, 'LaunchApp2', 183, 'VK_MEDIA_LAUNCH_APP2', empty, empty],\n [0, 1, 179 /* LaunchApp1 */, 'LaunchApp1', 0 /* Unknown */, empty, 0, 'VK_MEDIA_LAUNCH_APP1', empty, empty],\n [0, 1, 180 /* SelectTask */, 'SelectTask', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 181 /* LaunchScreenSaver */, 'LaunchScreenSaver', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 182 /* BrowserSearch */, 'BrowserSearch', 115 /* BrowserSearch */, 'BrowserSearch', 170, 'VK_BROWSER_SEARCH', empty, empty],\n [0, 1, 183 /* BrowserHome */, 'BrowserHome', 116 /* BrowserHome */, 'BrowserHome', 172, 'VK_BROWSER_HOME', empty, empty],\n [112, 1, 184 /* BrowserBack */, 'BrowserBack', 117 /* BrowserBack */, 'BrowserBack', 166, 'VK_BROWSER_BACK', empty, empty],\n [113, 1, 185 /* BrowserForward */, 'BrowserForward', 118 /* BrowserForward */, 'BrowserForward', 167, 'VK_BROWSER_FORWARD', empty, empty],\n [0, 1, 186 /* BrowserStop */, 'BrowserStop', 0 /* Unknown */, empty, 0, 'VK_BROWSER_STOP', empty, empty],\n [0, 1, 187 /* BrowserRefresh */, 'BrowserRefresh', 0 /* Unknown */, empty, 0, 'VK_BROWSER_REFRESH', empty, empty],\n [0, 1, 188 /* BrowserFavorites */, 'BrowserFavorites', 0 /* Unknown */, empty, 0, 'VK_BROWSER_FAVORITES', empty, empty],\n [0, 1, 189 /* ZoomToggle */, 'ZoomToggle', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 190 /* MailReply */, 'MailReply', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 191 /* MailForward */, 'MailForward', 0 /* Unknown */, empty, 0, empty, empty, empty],\n [0, 1, 192 /* MailSend */, 'MailSend', 0 /* Unknown */, empty, 0, empty, empty, empty],\n // See https://lists.w3.org/Archives/Public/www-dom/2010JulSep/att-0182/keyCode-spec.html\n // If an Input Method Editor is processing key input and the event is keydown, return 229.\n [109, 1, 0 /* None */, empty, 109 /* KEY_IN_COMPOSITION */, 'KeyInComposition', 229, empty, empty, empty],\n [111, 1, 0 /* None */, empty, 111 /* ABNT_C2 */, 'ABNT_C2', 194, 'VK_ABNT_C2', empty, empty],\n [91, 1, 0 /* None */, empty, 91 /* OEM_8 */, 'OEM_8', 223, 'VK_OEM_8', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_CLEAR', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_KANA', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_HANGUL', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_JUNJA', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_FINAL', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_HANJA', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_KANJI', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_CONVERT', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_NONCONVERT', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_ACCEPT', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_MODECHANGE', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_SELECT', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_PRINT', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_EXECUTE', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_SNAPSHOT', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_HELP', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_APPS', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_PROCESSKEY', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_PACKET', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_DBE_SBCSCHAR', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_DBE_DBCSCHAR', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_ATTN', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_CRSEL', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_EXSEL', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_EREOF', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_PLAY', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_ZOOM', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_NONAME', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_PA1', empty, empty],\n [0, 1, 0 /* None */, empty, 0 /* Unknown */, empty, 0, 'VK_OEM_CLEAR', empty, empty],\n ];\n let seenKeyCode = [];\n let seenScanCode = [];\n for (const mapping of mappings) {\n const [_keyCodeOrd, immutable, scanCode, scanCodeStr, keyCode, keyCodeStr, eventKeyCode, vkey, usUserSettingsLabel, generalUserSettingsLabel] = mapping;\n if (!seenScanCode[scanCode]) {\n seenScanCode[scanCode] = true;\n scanCodeIntToStr[scanCode] = scanCodeStr;\n scanCodeStrToInt[scanCodeStr] = scanCode;\n scanCodeLowerCaseStrToInt[scanCodeStr.toLowerCase()] = scanCode;\n if (immutable) {\n IMMUTABLE_CODE_TO_KEY_CODE[scanCode] = keyCode;\n if ((keyCode !== 0 /* Unknown */)\n && (keyCode !== 3 /* Enter */)\n && (keyCode !== 5 /* Ctrl */)\n && (keyCode !== 4 /* Shift */)\n && (keyCode !== 6 /* Alt */)\n && (keyCode !== 57 /* Meta */)) {\n IMMUTABLE_KEY_CODE_TO_CODE[keyCode] = scanCode;\n }\n }\n }\n if (!seenKeyCode[keyCode]) {\n seenKeyCode[keyCode] = true;\n if (!keyCodeStr) {\n throw new Error(`String representation missing for key code ${keyCode} around scan code ${scanCodeStr}`);\n }\n uiMap.define(keyCode, keyCodeStr);\n userSettingsUSMap.define(keyCode, usUserSettingsLabel || keyCodeStr);\n userSettingsGeneralMap.define(keyCode, generalUserSettingsLabel || usUserSettingsLabel || keyCodeStr);\n }\n if (eventKeyCode) {\n EVENT_KEY_CODE_MAP[eventKeyCode] = keyCode;\n }\n if (vkey) {\n NATIVE_WINDOWS_KEY_CODE_TO_KEY_CODE[vkey] = keyCode;\n }\n }\n // Manually added due to the exclusion above (due to duplication with NumpadEnter)\n IMMUTABLE_KEY_CODE_TO_CODE[3 /* Enter */] = 46 /* Enter */;\n})();\nexport var KeyCodeUtils;\n(function (KeyCodeUtils) {\n function toString(keyCode) {\n return uiMap.keyCodeToStr(keyCode);\n }\n KeyCodeUtils.toString = toString;\n function fromString(key) {\n return uiMap.strToKeyCode(key);\n }\n KeyCodeUtils.fromString = fromString;\n function toUserSettingsUS(keyCode) {\n return userSettingsUSMap.keyCodeToStr(keyCode);\n }\n KeyCodeUtils.toUserSettingsUS = toUserSettingsUS;\n function toUserSettingsGeneral(keyCode) {\n return userSettingsGeneralMap.keyCodeToStr(keyCode);\n }\n KeyCodeUtils.toUserSettingsGeneral = toUserSettingsGeneral;\n function fromUserSettings(key) {\n return userSettingsUSMap.strToKeyCode(key) || userSettingsGeneralMap.strToKeyCode(key);\n }\n KeyCodeUtils.fromUserSettings = fromUserSettings;\n function toElectronAccelerator(keyCode) {\n if (keyCode >= 93 /* Numpad0 */ && keyCode <= 108 /* NumpadDivide */) {\n // [Electron Accelerators] Electron is able to parse numpad keys, but unfortunately it\n // renders them just as regular keys in menus. For example, num0 is rendered as \"0\",\n // numdiv is rendered as \"/\", numsub is rendered as \"-\".\n //\n // This can lead to incredible confusion, as it makes numpad based keybindings indistinguishable\n // from keybindings based on regular keys.\n //\n // We therefore need to fall back to custom rendering for numpad keys.\n return null;\n }\n switch (keyCode) {\n case 16 /* UpArrow */:\n return 'Up';\n case 18 /* DownArrow */:\n return 'Down';\n case 15 /* LeftArrow */:\n return 'Left';\n case 17 /* RightArrow */:\n return 'Right';\n }\n return uiMap.keyCodeToStr(keyCode);\n }\n KeyCodeUtils.toElectronAccelerator = toElectronAccelerator;\n})(KeyCodeUtils || (KeyCodeUtils = {}));\nexport function KeyChord(firstPart, secondPart) {\n const chordPart = ((secondPart & 0x0000FFFF) << 16) >>> 0;\n return (firstPart | chordPart) >>> 0;\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n// THIS IS A GENERATED FILE. DO NOT EDIT DIRECTLY.\nexport var AccessibilitySupport;\n(function (AccessibilitySupport) {\n /**\n * This should be the browser case where it is not known if a screen reader is attached or no.\n */\n AccessibilitySupport[AccessibilitySupport[\"Unknown\"] = 0] = \"Unknown\";\n AccessibilitySupport[AccessibilitySupport[\"Disabled\"] = 1] = \"Disabled\";\n AccessibilitySupport[AccessibilitySupport[\"Enabled\"] = 2] = \"Enabled\";\n})(AccessibilitySupport || (AccessibilitySupport = {}));\nexport var CompletionItemInsertTextRule;\n(function (CompletionItemInsertTextRule) {\n /**\n * Adjust whitespace/indentation of multiline insert texts to\n * match the current line indentation.\n */\n CompletionItemInsertTextRule[CompletionItemInsertTextRule[\"KeepWhitespace\"] = 1] = \"KeepWhitespace\";\n /**\n * `insertText` is a snippet.\n */\n CompletionItemInsertTextRule[CompletionItemInsertTextRule[\"InsertAsSnippet\"] = 4] = \"InsertAsSnippet\";\n})(CompletionItemInsertTextRule || (CompletionItemInsertTextRule = {}));\nexport var CompletionItemKind;\n(function (CompletionItemKind) {\n CompletionItemKind[CompletionItemKind[\"Method\"] = 0] = \"Method\";\n CompletionItemKind[CompletionItemKind[\"Function\"] = 1] = \"Function\";\n CompletionItemKind[CompletionItemKind[\"Constructor\"] = 2] = \"Constructor\";\n CompletionItemKind[CompletionItemKind[\"Field\"] = 3] = \"Field\";\n CompletionItemKind[CompletionItemKind[\"Variable\"] = 4] = \"Variable\";\n CompletionItemKind[CompletionItemKind[\"Class\"] = 5] = \"Class\";\n CompletionItemKind[CompletionItemKind[\"Struct\"] = 6] = \"Struct\";\n CompletionItemKind[CompletionItemKind[\"Interface\"] = 7] = \"Interface\";\n CompletionItemKind[CompletionItemKind[\"Module\"] = 8] = \"Module\";\n CompletionItemKind[CompletionItemKind[\"Property\"] = 9] = \"Property\";\n CompletionItemKind[CompletionItemKind[\"Event\"] = 10] = \"Event\";\n CompletionItemKind[CompletionItemKind[\"Operator\"] = 11] = \"Operator\";\n CompletionItemKind[CompletionItemKind[\"Unit\"] = 12] = \"Unit\";\n CompletionItemKind[CompletionItemKind[\"Value\"] = 13] = \"Value\";\n CompletionItemKind[CompletionItemKind[\"Constant\"] = 14] = \"Constant\";\n CompletionItemKind[CompletionItemKind[\"Enum\"] = 15] = \"Enum\";\n CompletionItemKind[CompletionItemKind[\"EnumMember\"] = 16] = \"EnumMember\";\n CompletionItemKind[CompletionItemKind[\"Keyword\"] = 17] = \"Keyword\";\n CompletionItemKind[CompletionItemKind[\"Text\"] = 18] = \"Text\";\n CompletionItemKind[CompletionItemKind[\"Color\"] = 19] = \"Color\";\n CompletionItemKind[CompletionItemKind[\"File\"] = 20] = \"File\";\n CompletionItemKind[CompletionItemKind[\"Reference\"] = 21] = \"Reference\";\n CompletionItemKind[CompletionItemKind[\"Customcolor\"] = 22] = \"Customcolor\";\n CompletionItemKind[CompletionItemKind[\"Folder\"] = 23] = \"Folder\";\n CompletionItemKind[CompletionItemKind[\"TypeParameter\"] = 24] = \"TypeParameter\";\n CompletionItemKind[CompletionItemKind[\"User\"] = 25] = \"User\";\n CompletionItemKind[CompletionItemKind[\"Issue\"] = 26] = \"Issue\";\n CompletionItemKind[CompletionItemKind[\"Snippet\"] = 27] = \"Snippet\";\n})(CompletionItemKind || (CompletionItemKind = {}));\nexport var CompletionItemTag;\n(function (CompletionItemTag) {\n CompletionItemTag[CompletionItemTag[\"Deprecated\"] = 1] = \"Deprecated\";\n})(CompletionItemTag || (CompletionItemTag = {}));\n/**\n * How a suggest provider was triggered.\n */\nexport var CompletionTriggerKind;\n(function (CompletionTriggerKind) {\n CompletionTriggerKind[CompletionTriggerKind[\"Invoke\"] = 0] = \"Invoke\";\n CompletionTriggerKind[CompletionTriggerKind[\"TriggerCharacter\"] = 1] = \"TriggerCharacter\";\n CompletionTriggerKind[CompletionTriggerKind[\"TriggerForIncompleteCompletions\"] = 2] = \"TriggerForIncompleteCompletions\";\n})(CompletionTriggerKind || (CompletionTriggerKind = {}));\n/**\n * A positioning preference for rendering content widgets.\n */\nexport var ContentWidgetPositionPreference;\n(function (ContentWidgetPositionPreference) {\n /**\n * Place the content widget exactly at a position\n */\n ContentWidgetPositionPreference[ContentWidgetPositionPreference[\"EXACT\"] = 0] = \"EXACT\";\n /**\n * Place the content widget above a position\n */\n ContentWidgetPositionPreference[ContentWidgetPositionPreference[\"ABOVE\"] = 1] = \"ABOVE\";\n /**\n * Place the content widget below a position\n */\n ContentWidgetPositionPreference[ContentWidgetPositionPreference[\"BELOW\"] = 2] = \"BELOW\";\n})(ContentWidgetPositionPreference || (ContentWidgetPositionPreference = {}));\n/**\n * Describes the reason the cursor has changed its position.\n */\nexport var CursorChangeReason;\n(function (CursorChangeReason) {\n /**\n * Unknown or not set.\n */\n CursorChangeReason[CursorChangeReason[\"NotSet\"] = 0] = \"NotSet\";\n /**\n * A `model.setValue()` was called.\n */\n CursorChangeReason[CursorChangeReason[\"ContentFlush\"] = 1] = \"ContentFlush\";\n /**\n * The `model` has been changed outside of this cursor and the cursor recovers its position from associated markers.\n */\n CursorChangeReason[CursorChangeReason[\"RecoverFromMarkers\"] = 2] = \"RecoverFromMarkers\";\n /**\n * There was an explicit user gesture.\n */\n CursorChangeReason[CursorChangeReason[\"Explicit\"] = 3] = \"Explicit\";\n /**\n * There was a Paste.\n */\n CursorChangeReason[CursorChangeReason[\"Paste\"] = 4] = \"Paste\";\n /**\n * There was an Undo.\n */\n CursorChangeReason[CursorChangeReason[\"Undo\"] = 5] = \"Undo\";\n /**\n * There was a Redo.\n */\n CursorChangeReason[CursorChangeReason[\"Redo\"] = 6] = \"Redo\";\n})(CursorChangeReason || (CursorChangeReason = {}));\n/**\n * The default end of line to use when instantiating models.\n */\nexport var DefaultEndOfLine;\n(function (DefaultEndOfLine) {\n /**\n * Use line feed (\\n) as the end of line character.\n */\n DefaultEndOfLine[DefaultEndOfLine[\"LF\"] = 1] = \"LF\";\n /**\n * Use carriage return and line feed (\\r\\n) as the end of line character.\n */\n DefaultEndOfLine[DefaultEndOfLine[\"CRLF\"] = 2] = \"CRLF\";\n})(DefaultEndOfLine || (DefaultEndOfLine = {}));\n/**\n * A document highlight kind.\n */\nexport var DocumentHighlightKind;\n(function (DocumentHighlightKind) {\n /**\n * A textual occurrence.\n */\n DocumentHighlightKind[DocumentHighlightKind[\"Text\"] = 0] = \"Text\";\n /**\n * Read-access of a symbol, like reading a variable.\n */\n DocumentHighlightKind[DocumentHighlightKind[\"Read\"] = 1] = \"Read\";\n /**\n * Write-access of a symbol, like writing to a variable.\n */\n DocumentHighlightKind[DocumentHighlightKind[\"Write\"] = 2] = \"Write\";\n})(DocumentHighlightKind || (DocumentHighlightKind = {}));\n/**\n * Configuration options for auto indentation in the editor\n */\nexport var EditorAutoIndentStrategy;\n(function (EditorAutoIndentStrategy) {\n EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"None\"] = 0] = \"None\";\n EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Keep\"] = 1] = \"Keep\";\n EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Brackets\"] = 2] = \"Brackets\";\n EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Advanced\"] = 3] = \"Advanced\";\n EditorAutoIndentStrategy[EditorAutoIndentStrategy[\"Full\"] = 4] = \"Full\";\n})(EditorAutoIndentStrategy || (EditorAutoIndentStrategy = {}));\nexport var EditorOption;\n(function (EditorOption) {\n EditorOption[EditorOption[\"acceptSuggestionOnCommitCharacter\"] = 0] = \"acceptSuggestionOnCommitCharacter\";\n EditorOption[EditorOption[\"acceptSuggestionOnEnter\"] = 1] = \"acceptSuggestionOnEnter\";\n EditorOption[EditorOption[\"accessibilitySupport\"] = 2] = \"accessibilitySupport\";\n EditorOption[EditorOption[\"accessibilityPageSize\"] = 3] = \"accessibilityPageSize\";\n EditorOption[EditorOption[\"ariaLabel\"] = 4] = \"ariaLabel\";\n EditorOption[EditorOption[\"autoClosingBrackets\"] = 5] = \"autoClosingBrackets\";\n EditorOption[EditorOption[\"autoClosingDelete\"] = 6] = \"autoClosingDelete\";\n EditorOption[EditorOption[\"autoClosingOvertype\"] = 7] = \"autoClosingOvertype\";\n EditorOption[EditorOption[\"autoClosingQuotes\"] = 8] = \"autoClosingQuotes\";\n EditorOption[EditorOption[\"autoIndent\"] = 9] = \"autoIndent\";\n EditorOption[EditorOption[\"automaticLayout\"] = 10] = \"automaticLayout\";\n EditorOption[EditorOption[\"autoSurround\"] = 11] = \"autoSurround\";\n EditorOption[EditorOption[\"bracketPairColorization\"] = 12] = \"bracketPairColorization\";\n EditorOption[EditorOption[\"guides\"] = 13] = \"guides\";\n EditorOption[EditorOption[\"codeLens\"] = 14] = \"codeLens\";\n EditorOption[EditorOption[\"codeLensFontFamily\"] = 15] = \"codeLensFontFamily\";\n EditorOption[EditorOption[\"codeLensFontSize\"] = 16] = \"codeLensFontSize\";\n EditorOption[EditorOption[\"colorDecorators\"] = 17] = \"colorDecorators\";\n EditorOption[EditorOption[\"columnSelection\"] = 18] = \"columnSelection\";\n EditorOption[EditorOption[\"comments\"] = 19] = \"comments\";\n EditorOption[EditorOption[\"contextmenu\"] = 20] = \"contextmenu\";\n EditorOption[EditorOption[\"copyWithSyntaxHighlighting\"] = 21] = \"copyWithSyntaxHighlighting\";\n EditorOption[EditorOption[\"cursorBlinking\"] = 22] = \"cursorBlinking\";\n EditorOption[EditorOption[\"cursorSmoothCaretAnimation\"] = 23] = \"cursorSmoothCaretAnimation\";\n EditorOption[EditorOption[\"cursorStyle\"] = 24] = \"cursorStyle\";\n EditorOption[EditorOption[\"cursorSurroundingLines\"] = 25] = \"cursorSurroundingLines\";\n EditorOption[EditorOption[\"cursorSurroundingLinesStyle\"] = 26] = \"cursorSurroundingLinesStyle\";\n EditorOption[EditorOption[\"cursorWidth\"] = 27] = \"cursorWidth\";\n EditorOption[EditorOption[\"disableLayerHinting\"] = 28] = \"disableLayerHinting\";\n EditorOption[EditorOption[\"disableMonospaceOptimizations\"] = 29] = \"disableMonospaceOptimizations\";\n EditorOption[EditorOption[\"domReadOnly\"] = 30] = \"domReadOnly\";\n EditorOption[EditorOption[\"dragAndDrop\"] = 31] = \"dragAndDrop\";\n EditorOption[EditorOption[\"emptySelectionClipboard\"] = 32] = \"emptySelectionClipboard\";\n EditorOption[EditorOption[\"extraEditorClassName\"] = 33] = \"extraEditorClassName\";\n EditorOption[EditorOption[\"fastScrollSensitivity\"] = 34] = \"fastScrollSensitivity\";\n EditorOption[EditorOption[\"find\"] = 35] = \"find\";\n EditorOption[EditorOption[\"fixedOverflowWidgets\"] = 36] = \"fixedOverflowWidgets\";\n EditorOption[EditorOption[\"folding\"] = 37] = \"folding\";\n EditorOption[EditorOption[\"foldingStrategy\"] = 38] = \"foldingStrategy\";\n EditorOption[EditorOption[\"foldingHighlight\"] = 39] = \"foldingHighlight\";\n EditorOption[EditorOption[\"foldingImportsByDefault\"] = 40] = \"foldingImportsByDefault\";\n EditorOption[EditorOption[\"unfoldOnClickAfterEndOfLine\"] = 41] = \"unfoldOnClickAfterEndOfLine\";\n EditorOption[EditorOption[\"fontFamily\"] = 42] = \"fontFamily\";\n EditorOption[EditorOption[\"fontInfo\"] = 43] = \"fontInfo\";\n EditorOption[EditorOption[\"fontLigatures\"] = 44] = \"fontLigatures\";\n EditorOption[EditorOption[\"fontSize\"] = 45] = \"fontSize\";\n EditorOption[EditorOption[\"fontWeight\"] = 46] = \"fontWeight\";\n EditorOption[EditorOption[\"formatOnPaste\"] = 47] = \"formatOnPaste\";\n EditorOption[EditorOption[\"formatOnType\"] = 48] = \"formatOnType\";\n EditorOption[EditorOption[\"glyphMargin\"] = 49] = \"glyphMargin\";\n EditorOption[EditorOption[\"gotoLocation\"] = 50] = \"gotoLocation\";\n EditorOption[EditorOption[\"hideCursorInOverviewRuler\"] = 51] = \"hideCursorInOverviewRuler\";\n EditorOption[EditorOption[\"hover\"] = 52] = \"hover\";\n EditorOption[EditorOption[\"inDiffEditor\"] = 53] = \"inDiffEditor\";\n EditorOption[EditorOption[\"inlineSuggest\"] = 54] = \"inlineSuggest\";\n EditorOption[EditorOption[\"letterSpacing\"] = 55] = \"letterSpacing\";\n EditorOption[EditorOption[\"lightbulb\"] = 56] = \"lightbulb\";\n EditorOption[EditorOption[\"lineDecorationsWidth\"] = 57] = \"lineDecorationsWidth\";\n EditorOption[EditorOption[\"lineHeight\"] = 58] = \"lineHeight\";\n EditorOption[EditorOption[\"lineNumbers\"] = 59] = \"lineNumbers\";\n EditorOption[EditorOption[\"lineNumbersMinChars\"] = 60] = \"lineNumbersMinChars\";\n EditorOption[EditorOption[\"linkedEditing\"] = 61] = \"linkedEditing\";\n EditorOption[EditorOption[\"links\"] = 62] = \"links\";\n EditorOption[EditorOption[\"matchBrackets\"] = 63] = \"matchBrackets\";\n EditorOption[EditorOption[\"minimap\"] = 64] = \"minimap\";\n EditorOption[EditorOption[\"mouseStyle\"] = 65] = \"mouseStyle\";\n EditorOption[EditorOption[\"mouseWheelScrollSensitivity\"] = 66] = \"mouseWheelScrollSensitivity\";\n EditorOption[EditorOption[\"mouseWheelZoom\"] = 67] = \"mouseWheelZoom\";\n EditorOption[EditorOption[\"multiCursorMergeOverlapping\"] = 68] = \"multiCursorMergeOverlapping\";\n EditorOption[EditorOption[\"multiCursorModifier\"] = 69] = \"multiCursorModifier\";\n EditorOption[EditorOption[\"multiCursorPaste\"] = 70] = \"multiCursorPaste\";\n EditorOption[EditorOption[\"occurrencesHighlight\"] = 71] = \"occurrencesHighlight\";\n EditorOption[EditorOption[\"overviewRulerBorder\"] = 72] = \"overviewRulerBorder\";\n EditorOption[EditorOption[\"overviewRulerLanes\"] = 73] = \"overviewRulerLanes\";\n EditorOption[EditorOption[\"padding\"] = 74] = \"padding\";\n EditorOption[EditorOption[\"parameterHints\"] = 75] = \"parameterHints\";\n EditorOption[EditorOption[\"peekWidgetDefaultFocus\"] = 76] = \"peekWidgetDefaultFocus\";\n EditorOption[EditorOption[\"definitionLinkOpensInPeek\"] = 77] = \"definitionLinkOpensInPeek\";\n EditorOption[EditorOption[\"quickSuggestions\"] = 78] = \"quickSuggestions\";\n EditorOption[EditorOption[\"quickSuggestionsDelay\"] = 79] = \"quickSuggestionsDelay\";\n EditorOption[EditorOption[\"readOnly\"] = 80] = \"readOnly\";\n EditorOption[EditorOption[\"renameOnType\"] = 81] = \"renameOnType\";\n EditorOption[EditorOption[\"renderControlCharacters\"] = 82] = \"renderControlCharacters\";\n EditorOption[EditorOption[\"renderFinalNewline\"] = 83] = \"renderFinalNewline\";\n EditorOption[EditorOption[\"renderLineHighlight\"] = 84] = \"renderLineHighlight\";\n EditorOption[EditorOption[\"renderLineHighlightOnlyWhenFocus\"] = 85] = \"renderLineHighlightOnlyWhenFocus\";\n EditorOption[EditorOption[\"renderValidationDecorations\"] = 86] = \"renderValidationDecorations\";\n EditorOption[EditorOption[\"renderWhitespace\"] = 87] = \"renderWhitespace\";\n EditorOption[EditorOption[\"revealHorizontalRightPadding\"] = 88] = \"revealHorizontalRightPadding\";\n EditorOption[EditorOption[\"roundedSelection\"] = 89] = \"roundedSelection\";\n EditorOption[EditorOption[\"rulers\"] = 90] = \"rulers\";\n EditorOption[EditorOption[\"scrollbar\"] = 91] = \"scrollbar\";\n EditorOption[EditorOption[\"scrollBeyondLastColumn\"] = 92] = \"scrollBeyondLastColumn\";\n EditorOption[EditorOption[\"scrollBeyondLastLine\"] = 93] = \"scrollBeyondLastLine\";\n EditorOption[EditorOption[\"scrollPredominantAxis\"] = 94] = \"scrollPredominantAxis\";\n EditorOption[EditorOption[\"selectionClipboard\"] = 95] = \"selectionClipboard\";\n EditorOption[EditorOption[\"selectionHighlight\"] = 96] = \"selectionHighlight\";\n EditorOption[EditorOption[\"selectOnLineNumbers\"] = 97] = \"selectOnLineNumbers\";\n EditorOption[EditorOption[\"showFoldingControls\"] = 98] = \"showFoldingControls\";\n EditorOption[EditorOption[\"showUnused\"] = 99] = \"showUnused\";\n EditorOption[EditorOption[\"snippetSuggestions\"] = 100] = \"snippetSuggestions\";\n EditorOption[EditorOption[\"smartSelect\"] = 101] = \"smartSelect\";\n EditorOption[EditorOption[\"smoothScrolling\"] = 102] = \"smoothScrolling\";\n EditorOption[EditorOption[\"stickyTabStops\"] = 103] = \"stickyTabStops\";\n EditorOption[EditorOption[\"stopRenderingLineAfter\"] = 104] = \"stopRenderingLineAfter\";\n EditorOption[EditorOption[\"suggest\"] = 105] = \"suggest\";\n EditorOption[EditorOption[\"suggestFontSize\"] = 106] = \"suggestFontSize\";\n EditorOption[EditorOption[\"suggestLineHeight\"] = 107] = \"suggestLineHeight\";\n EditorOption[EditorOption[\"suggestOnTriggerCharacters\"] = 108] = \"suggestOnTriggerCharacters\";\n EditorOption[EditorOption[\"suggestSelection\"] = 109] = \"suggestSelection\";\n EditorOption[EditorOption[\"tabCompletion\"] = 110] = \"tabCompletion\";\n EditorOption[EditorOption[\"tabIndex\"] = 111] = \"tabIndex\";\n EditorOption[EditorOption[\"unusualLineTerminators\"] = 112] = \"unusualLineTerminators\";\n EditorOption[EditorOption[\"useShadowDOM\"] = 113] = \"useShadowDOM\";\n EditorOption[EditorOption[\"useTabStops\"] = 114] = \"useTabStops\";\n EditorOption[EditorOption[\"wordSeparators\"] = 115] = \"wordSeparators\";\n EditorOption[EditorOption[\"wordWrap\"] = 116] = \"wordWrap\";\n EditorOption[EditorOption[\"wordWrapBreakAfterCharacters\"] = 117] = \"wordWrapBreakAfterCharacters\";\n EditorOption[EditorOption[\"wordWrapBreakBeforeCharacters\"] = 118] = \"wordWrapBreakBeforeCharacters\";\n EditorOption[EditorOption[\"wordWrapColumn\"] = 119] = \"wordWrapColumn\";\n EditorOption[EditorOption[\"wordWrapOverride1\"] = 120] = \"wordWrapOverride1\";\n EditorOption[EditorOption[\"wordWrapOverride2\"] = 121] = \"wordWrapOverride2\";\n EditorOption[EditorOption[\"wrappingIndent\"] = 122] = \"wrappingIndent\";\n EditorOption[EditorOption[\"wrappingStrategy\"] = 123] = \"wrappingStrategy\";\n EditorOption[EditorOption[\"showDeprecated\"] = 124] = \"showDeprecated\";\n EditorOption[EditorOption[\"inlayHints\"] = 125] = \"inlayHints\";\n EditorOption[EditorOption[\"editorClassName\"] = 126] = \"editorClassName\";\n EditorOption[EditorOption[\"pixelRatio\"] = 127] = \"pixelRatio\";\n EditorOption[EditorOption[\"tabFocusMode\"] = 128] = \"tabFocusMode\";\n EditorOption[EditorOption[\"layoutInfo\"] = 129] = \"layoutInfo\";\n EditorOption[EditorOption[\"wrappingInfo\"] = 130] = \"wrappingInfo\";\n})(EditorOption || (EditorOption = {}));\n/**\n * End of line character preference.\n */\nexport var EndOfLinePreference;\n(function (EndOfLinePreference) {\n /**\n * Use the end of line character identified in the text buffer.\n */\n EndOfLinePreference[EndOfLinePreference[\"TextDefined\"] = 0] = \"TextDefined\";\n /**\n * Use line feed (\\n) as the end of line character.\n */\n EndOfLinePreference[EndOfLinePreference[\"LF\"] = 1] = \"LF\";\n /**\n * Use carriage return and line feed (\\r\\n) as the end of line character.\n */\n EndOfLinePreference[EndOfLinePreference[\"CRLF\"] = 2] = \"CRLF\";\n})(EndOfLinePreference || (EndOfLinePreference = {}));\n/**\n * End of line character preference.\n */\nexport var EndOfLineSequence;\n(function (EndOfLineSequence) {\n /**\n * Use line feed (\\n) as the end of line character.\n */\n EndOfLineSequence[EndOfLineSequence[\"LF\"] = 0] = \"LF\";\n /**\n * Use carriage return and line feed (\\r\\n) as the end of line character.\n */\n EndOfLineSequence[EndOfLineSequence[\"CRLF\"] = 1] = \"CRLF\";\n})(EndOfLineSequence || (EndOfLineSequence = {}));\n/**\n * Describes what to do with the indentation when pressing Enter.\n */\nexport var IndentAction;\n(function (IndentAction) {\n /**\n * Insert new line and copy the previous line's indentation.\n */\n IndentAction[IndentAction[\"None\"] = 0] = \"None\";\n /**\n * Insert new line and indent once (relative to the previous line's indentation).\n */\n IndentAction[IndentAction[\"Indent\"] = 1] = \"Indent\";\n /**\n * Insert two new lines:\n * - the first one indented which will hold the cursor\n * - the second one at the same indentation level\n */\n IndentAction[IndentAction[\"IndentOutdent\"] = 2] = \"IndentOutdent\";\n /**\n * Insert new line and outdent once (relative to the previous line's indentation).\n */\n IndentAction[IndentAction[\"Outdent\"] = 3] = \"Outdent\";\n})(IndentAction || (IndentAction = {}));\nexport var InlayHintKind;\n(function (InlayHintKind) {\n InlayHintKind[InlayHintKind[\"Other\"] = 0] = \"Other\";\n InlayHintKind[InlayHintKind[\"Type\"] = 1] = \"Type\";\n InlayHintKind[InlayHintKind[\"Parameter\"] = 2] = \"Parameter\";\n})(InlayHintKind || (InlayHintKind = {}));\n/**\n * How an {@link InlineCompletionsProvider inline completion provider} was triggered.\n */\nexport var InlineCompletionTriggerKind;\n(function (InlineCompletionTriggerKind) {\n /**\n * Completion was triggered automatically while editing.\n * It is sufficient to return a single completion item in this case.\n */\n InlineCompletionTriggerKind[InlineCompletionTriggerKind[\"Automatic\"] = 0] = \"Automatic\";\n /**\n * Completion was triggered explicitly by a user gesture.\n * Return multiple completion items to enable cycling through them.\n */\n InlineCompletionTriggerKind[InlineCompletionTriggerKind[\"Explicit\"] = 1] = \"Explicit\";\n})(InlineCompletionTriggerKind || (InlineCompletionTriggerKind = {}));\n/**\n * Virtual Key Codes, the value does not hold any inherent meaning.\n * Inspired somewhat from https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx\n * But these are \"more general\", as they should work across browsers & OS`s.\n */\nexport var KeyCode;\n(function (KeyCode) {\n KeyCode[KeyCode[\"DependsOnKbLayout\"] = -1] = \"DependsOnKbLayout\";\n /**\n * Placed first to cover the 0 value of the enum.\n */\n KeyCode[KeyCode[\"Unknown\"] = 0] = \"Unknown\";\n KeyCode[KeyCode[\"Backspace\"] = 1] = \"Backspace\";\n KeyCode[KeyCode[\"Tab\"] = 2] = \"Tab\";\n KeyCode[KeyCode[\"Enter\"] = 3] = \"Enter\";\n KeyCode[KeyCode[\"Shift\"] = 4] = \"Shift\";\n KeyCode[KeyCode[\"Ctrl\"] = 5] = \"Ctrl\";\n KeyCode[KeyCode[\"Alt\"] = 6] = \"Alt\";\n KeyCode[KeyCode[\"PauseBreak\"] = 7] = \"PauseBreak\";\n KeyCode[KeyCode[\"CapsLock\"] = 8] = \"CapsLock\";\n KeyCode[KeyCode[\"Escape\"] = 9] = \"Escape\";\n KeyCode[KeyCode[\"Space\"] = 10] = \"Space\";\n KeyCode[KeyCode[\"PageUp\"] = 11] = \"PageUp\";\n KeyCode[KeyCode[\"PageDown\"] = 12] = \"PageDown\";\n KeyCode[KeyCode[\"End\"] = 13] = \"End\";\n KeyCode[KeyCode[\"Home\"] = 14] = \"Home\";\n KeyCode[KeyCode[\"LeftArrow\"] = 15] = \"LeftArrow\";\n KeyCode[KeyCode[\"UpArrow\"] = 16] = \"UpArrow\";\n KeyCode[KeyCode[\"RightArrow\"] = 17] = \"RightArrow\";\n KeyCode[KeyCode[\"DownArrow\"] = 18] = \"DownArrow\";\n KeyCode[KeyCode[\"Insert\"] = 19] = \"Insert\";\n KeyCode[KeyCode[\"Delete\"] = 20] = \"Delete\";\n KeyCode[KeyCode[\"Digit0\"] = 21] = \"Digit0\";\n KeyCode[KeyCode[\"Digit1\"] = 22] = \"Digit1\";\n KeyCode[KeyCode[\"Digit2\"] = 23] = \"Digit2\";\n KeyCode[KeyCode[\"Digit3\"] = 24] = \"Digit3\";\n KeyCode[KeyCode[\"Digit4\"] = 25] = \"Digit4\";\n KeyCode[KeyCode[\"Digit5\"] = 26] = \"Digit5\";\n KeyCode[KeyCode[\"Digit6\"] = 27] = \"Digit6\";\n KeyCode[KeyCode[\"Digit7\"] = 28] = \"Digit7\";\n KeyCode[KeyCode[\"Digit8\"] = 29] = \"Digit8\";\n KeyCode[KeyCode[\"Digit9\"] = 30] = \"Digit9\";\n KeyCode[KeyCode[\"KeyA\"] = 31] = \"KeyA\";\n KeyCode[KeyCode[\"KeyB\"] = 32] = \"KeyB\";\n KeyCode[KeyCode[\"KeyC\"] = 33] = \"KeyC\";\n KeyCode[KeyCode[\"KeyD\"] = 34] = \"KeyD\";\n KeyCode[KeyCode[\"KeyE\"] = 35] = \"KeyE\";\n KeyCode[KeyCode[\"KeyF\"] = 36] = \"KeyF\";\n KeyCode[KeyCode[\"KeyG\"] = 37] = \"KeyG\";\n KeyCode[KeyCode[\"KeyH\"] = 38] = \"KeyH\";\n KeyCode[KeyCode[\"KeyI\"] = 39] = \"KeyI\";\n KeyCode[KeyCode[\"KeyJ\"] = 40] = \"KeyJ\";\n KeyCode[KeyCode[\"KeyK\"] = 41] = \"KeyK\";\n KeyCode[KeyCode[\"KeyL\"] = 42] = \"KeyL\";\n KeyCode[KeyCode[\"KeyM\"] = 43] = \"KeyM\";\n KeyCode[KeyCode[\"KeyN\"] = 44] = \"KeyN\";\n KeyCode[KeyCode[\"KeyO\"] = 45] = \"KeyO\";\n KeyCode[KeyCode[\"KeyP\"] = 46] = \"KeyP\";\n KeyCode[KeyCode[\"KeyQ\"] = 47] = \"KeyQ\";\n KeyCode[KeyCode[\"KeyR\"] = 48] = \"KeyR\";\n KeyCode[KeyCode[\"KeyS\"] = 49] = \"KeyS\";\n KeyCode[KeyCode[\"KeyT\"] = 50] = \"KeyT\";\n KeyCode[KeyCode[\"KeyU\"] = 51] = \"KeyU\";\n KeyCode[KeyCode[\"KeyV\"] = 52] = \"KeyV\";\n KeyCode[KeyCode[\"KeyW\"] = 53] = \"KeyW\";\n KeyCode[KeyCode[\"KeyX\"] = 54] = \"KeyX\";\n KeyCode[KeyCode[\"KeyY\"] = 55] = \"KeyY\";\n KeyCode[KeyCode[\"KeyZ\"] = 56] = \"KeyZ\";\n KeyCode[KeyCode[\"Meta\"] = 57] = \"Meta\";\n KeyCode[KeyCode[\"ContextMenu\"] = 58] = \"ContextMenu\";\n KeyCode[KeyCode[\"F1\"] = 59] = \"F1\";\n KeyCode[KeyCode[\"F2\"] = 60] = \"F2\";\n KeyCode[KeyCode[\"F3\"] = 61] = \"F3\";\n KeyCode[KeyCode[\"F4\"] = 62] = \"F4\";\n KeyCode[KeyCode[\"F5\"] = 63] = \"F5\";\n KeyCode[KeyCode[\"F6\"] = 64] = \"F6\";\n KeyCode[KeyCode[\"F7\"] = 65] = \"F7\";\n KeyCode[KeyCode[\"F8\"] = 66] = \"F8\";\n KeyCode[KeyCode[\"F9\"] = 67] = \"F9\";\n KeyCode[KeyCode[\"F10\"] = 68] = \"F10\";\n KeyCode[KeyCode[\"F11\"] = 69] = \"F11\";\n KeyCode[KeyCode[\"F12\"] = 70] = \"F12\";\n KeyCode[KeyCode[\"F13\"] = 71] = \"F13\";\n KeyCode[KeyCode[\"F14\"] = 72] = \"F14\";\n KeyCode[KeyCode[\"F15\"] = 73] = \"F15\";\n KeyCode[KeyCode[\"F16\"] = 74] = \"F16\";\n KeyCode[KeyCode[\"F17\"] = 75] = \"F17\";\n KeyCode[KeyCode[\"F18\"] = 76] = \"F18\";\n KeyCode[KeyCode[\"F19\"] = 77] = \"F19\";\n KeyCode[KeyCode[\"NumLock\"] = 78] = \"NumLock\";\n KeyCode[KeyCode[\"ScrollLock\"] = 79] = \"ScrollLock\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the ';:' key\n */\n KeyCode[KeyCode[\"Semicolon\"] = 80] = \"Semicolon\";\n /**\n * For any country/region, the '+' key\n * For the US standard keyboard, the '=+' key\n */\n KeyCode[KeyCode[\"Equal\"] = 81] = \"Equal\";\n /**\n * For any country/region, the ',' key\n * For the US standard keyboard, the ',<' key\n */\n KeyCode[KeyCode[\"Comma\"] = 82] = \"Comma\";\n /**\n * For any country/region, the '-' key\n * For the US standard keyboard, the '-_' key\n */\n KeyCode[KeyCode[\"Minus\"] = 83] = \"Minus\";\n /**\n * For any country/region, the '.' key\n * For the US standard keyboard, the '.>' key\n */\n KeyCode[KeyCode[\"Period\"] = 84] = \"Period\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the '/?' key\n */\n KeyCode[KeyCode[\"Slash\"] = 85] = \"Slash\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the '`~' key\n */\n KeyCode[KeyCode[\"Backquote\"] = 86] = \"Backquote\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the '[{' key\n */\n KeyCode[KeyCode[\"BracketLeft\"] = 87] = \"BracketLeft\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the '\\|' key\n */\n KeyCode[KeyCode[\"Backslash\"] = 88] = \"Backslash\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the ']}' key\n */\n KeyCode[KeyCode[\"BracketRight\"] = 89] = \"BracketRight\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n * For the US standard keyboard, the ''\"' key\n */\n KeyCode[KeyCode[\"Quote\"] = 90] = \"Quote\";\n /**\n * Used for miscellaneous characters; it can vary by keyboard.\n */\n KeyCode[KeyCode[\"OEM_8\"] = 91] = \"OEM_8\";\n /**\n * Either the angle bracket key or the backslash key on the RT 102-key keyboard.\n */\n KeyCode[KeyCode[\"IntlBackslash\"] = 92] = \"IntlBackslash\";\n KeyCode[KeyCode[\"Numpad0\"] = 93] = \"Numpad0\";\n KeyCode[KeyCode[\"Numpad1\"] = 94] = \"Numpad1\";\n KeyCode[KeyCode[\"Numpad2\"] = 95] = \"Numpad2\";\n KeyCode[KeyCode[\"Numpad3\"] = 96] = \"Numpad3\";\n KeyCode[KeyCode[\"Numpad4\"] = 97] = \"Numpad4\";\n KeyCode[KeyCode[\"Numpad5\"] = 98] = \"Numpad5\";\n KeyCode[KeyCode[\"Numpad6\"] = 99] = \"Numpad6\";\n KeyCode[KeyCode[\"Numpad7\"] = 100] = \"Numpad7\";\n KeyCode[KeyCode[\"Numpad8\"] = 101] = \"Numpad8\";\n KeyCode[KeyCode[\"Numpad9\"] = 102] = \"Numpad9\";\n KeyCode[KeyCode[\"NumpadMultiply\"] = 103] = \"NumpadMultiply\";\n KeyCode[KeyCode[\"NumpadAdd\"] = 104] = \"NumpadAdd\";\n KeyCode[KeyCode[\"NUMPAD_SEPARATOR\"] = 105] = \"NUMPAD_SEPARATOR\";\n KeyCode[KeyCode[\"NumpadSubtract\"] = 106] = \"NumpadSubtract\";\n KeyCode[KeyCode[\"NumpadDecimal\"] = 107] = \"NumpadDecimal\";\n KeyCode[KeyCode[\"NumpadDivide\"] = 108] = \"NumpadDivide\";\n /**\n * Cover all key codes when IME is processing input.\n */\n KeyCode[KeyCode[\"KEY_IN_COMPOSITION\"] = 109] = \"KEY_IN_COMPOSITION\";\n KeyCode[KeyCode[\"ABNT_C1\"] = 110] = \"ABNT_C1\";\n KeyCode[KeyCode[\"ABNT_C2\"] = 111] = \"ABNT_C2\";\n KeyCode[KeyCode[\"AudioVolumeMute\"] = 112] = \"AudioVolumeMute\";\n KeyCode[KeyCode[\"AudioVolumeUp\"] = 113] = \"AudioVolumeUp\";\n KeyCode[KeyCode[\"AudioVolumeDown\"] = 114] = \"AudioVolumeDown\";\n KeyCode[KeyCode[\"BrowserSearch\"] = 115] = \"BrowserSearch\";\n KeyCode[KeyCode[\"BrowserHome\"] = 116] = \"BrowserHome\";\n KeyCode[KeyCode[\"BrowserBack\"] = 117] = \"BrowserBack\";\n KeyCode[KeyCode[\"BrowserForward\"] = 118] = \"BrowserForward\";\n KeyCode[KeyCode[\"MediaTrackNext\"] = 119] = \"MediaTrackNext\";\n KeyCode[KeyCode[\"MediaTrackPrevious\"] = 120] = \"MediaTrackPrevious\";\n KeyCode[KeyCode[\"MediaStop\"] = 121] = \"MediaStop\";\n KeyCode[KeyCode[\"MediaPlayPause\"] = 122] = \"MediaPlayPause\";\n KeyCode[KeyCode[\"LaunchMediaPlayer\"] = 123] = \"LaunchMediaPlayer\";\n KeyCode[KeyCode[\"LaunchMail\"] = 124] = \"LaunchMail\";\n KeyCode[KeyCode[\"LaunchApp2\"] = 125] = \"LaunchApp2\";\n /**\n * Placed last to cover the length of the enum.\n * Please do not depend on this value!\n */\n KeyCode[KeyCode[\"MAX_VALUE\"] = 126] = \"MAX_VALUE\";\n})(KeyCode || (KeyCode = {}));\nexport var MarkerSeverity;\n(function (MarkerSeverity) {\n MarkerSeverity[MarkerSeverity[\"Hint\"] = 1] = \"Hint\";\n MarkerSeverity[MarkerSeverity[\"Info\"] = 2] = \"Info\";\n MarkerSeverity[MarkerSeverity[\"Warning\"] = 4] = \"Warning\";\n MarkerSeverity[MarkerSeverity[\"Error\"] = 8] = \"Error\";\n})(MarkerSeverity || (MarkerSeverity = {}));\nexport var MarkerTag;\n(function (MarkerTag) {\n MarkerTag[MarkerTag[\"Unnecessary\"] = 1] = \"Unnecessary\";\n MarkerTag[MarkerTag[\"Deprecated\"] = 2] = \"Deprecated\";\n})(MarkerTag || (MarkerTag = {}));\n/**\n * Position in the minimap to render the decoration.\n */\nexport var MinimapPosition;\n(function (MinimapPosition) {\n MinimapPosition[MinimapPosition[\"Inline\"] = 1] = \"Inline\";\n MinimapPosition[MinimapPosition[\"Gutter\"] = 2] = \"Gutter\";\n})(MinimapPosition || (MinimapPosition = {}));\n/**\n * Type of hit element with the mouse in the editor.\n */\nexport var MouseTargetType;\n(function (MouseTargetType) {\n /**\n * Mouse is on top of an unknown element.\n */\n MouseTargetType[MouseTargetType[\"UNKNOWN\"] = 0] = \"UNKNOWN\";\n /**\n * Mouse is on top of the textarea used for input.\n */\n MouseTargetType[MouseTargetType[\"TEXTAREA\"] = 1] = \"TEXTAREA\";\n /**\n * Mouse is on top of the glyph margin\n */\n MouseTargetType[MouseTargetType[\"GUTTER_GLYPH_MARGIN\"] = 2] = \"GUTTER_GLYPH_MARGIN\";\n /**\n * Mouse is on top of the line numbers\n */\n MouseTargetType[MouseTargetType[\"GUTTER_LINE_NUMBERS\"] = 3] = \"GUTTER_LINE_NUMBERS\";\n /**\n * Mouse is on top of the line decorations\n */\n MouseTargetType[MouseTargetType[\"GUTTER_LINE_DECORATIONS\"] = 4] = \"GUTTER_LINE_DECORATIONS\";\n /**\n * Mouse is on top of the whitespace left in the gutter by a view zone.\n */\n MouseTargetType[MouseTargetType[\"GUTTER_VIEW_ZONE\"] = 5] = \"GUTTER_VIEW_ZONE\";\n /**\n * Mouse is on top of text in the content.\n */\n MouseTargetType[MouseTargetType[\"CONTENT_TEXT\"] = 6] = \"CONTENT_TEXT\";\n /**\n * Mouse is on top of empty space in the content (e.g. after line text or below last line)\n */\n MouseTargetType[MouseTargetType[\"CONTENT_EMPTY\"] = 7] = \"CONTENT_EMPTY\";\n /**\n * Mouse is on top of a view zone in the content.\n */\n MouseTargetType[MouseTargetType[\"CONTENT_VIEW_ZONE\"] = 8] = \"CONTENT_VIEW_ZONE\";\n /**\n * Mouse is on top of a content widget.\n */\n MouseTargetType[MouseTargetType[\"CONTENT_WIDGET\"] = 9] = \"CONTENT_WIDGET\";\n /**\n * Mouse is on top of the decorations overview ruler.\n */\n MouseTargetType[MouseTargetType[\"OVERVIEW_RULER\"] = 10] = \"OVERVIEW_RULER\";\n /**\n * Mouse is on top of a scrollbar.\n */\n MouseTargetType[MouseTargetType[\"SCROLLBAR\"] = 11] = \"SCROLLBAR\";\n /**\n * Mouse is on top of an overlay widget.\n */\n MouseTargetType[MouseTargetType[\"OVERLAY_WIDGET\"] = 12] = \"OVERLAY_WIDGET\";\n /**\n * Mouse is outside of the editor.\n */\n MouseTargetType[MouseTargetType[\"OUTSIDE_EDITOR\"] = 13] = \"OUTSIDE_EDITOR\";\n})(MouseTargetType || (MouseTargetType = {}));\n/**\n * A positioning preference for rendering overlay widgets.\n */\nexport var OverlayWidgetPositionPreference;\n(function (OverlayWidgetPositionPreference) {\n /**\n * Position the overlay widget in the top right corner\n */\n OverlayWidgetPositionPreference[OverlayWidgetPositionPreference[\"TOP_RIGHT_CORNER\"] = 0] = \"TOP_RIGHT_CORNER\";\n /**\n * Position the overlay widget in the bottom right corner\n */\n OverlayWidgetPositionPreference[OverlayWidgetPositionPreference[\"BOTTOM_RIGHT_CORNER\"] = 1] = \"BOTTOM_RIGHT_CORNER\";\n /**\n * Position the overlay widget in the top center\n */\n OverlayWidgetPositionPreference[OverlayWidgetPositionPreference[\"TOP_CENTER\"] = 2] = \"TOP_CENTER\";\n})(OverlayWidgetPositionPreference || (OverlayWidgetPositionPreference = {}));\n/**\n * Vertical Lane in the overview ruler of the editor.\n */\nexport var OverviewRulerLane;\n(function (OverviewRulerLane) {\n OverviewRulerLane[OverviewRulerLane[\"Left\"] = 1] = \"Left\";\n OverviewRulerLane[OverviewRulerLane[\"Center\"] = 2] = \"Center\";\n OverviewRulerLane[OverviewRulerLane[\"Right\"] = 4] = \"Right\";\n OverviewRulerLane[OverviewRulerLane[\"Full\"] = 7] = \"Full\";\n})(OverviewRulerLane || (OverviewRulerLane = {}));\nexport var RenderLineNumbersType;\n(function (RenderLineNumbersType) {\n RenderLineNumbersType[RenderLineNumbersType[\"Off\"] = 0] = \"Off\";\n RenderLineNumbersType[RenderLineNumbersType[\"On\"] = 1] = \"On\";\n RenderLineNumbersType[RenderLineNumbersType[\"Relative\"] = 2] = \"Relative\";\n RenderLineNumbersType[RenderLineNumbersType[\"Interval\"] = 3] = \"Interval\";\n RenderLineNumbersType[RenderLineNumbersType[\"Custom\"] = 4] = \"Custom\";\n})(RenderLineNumbersType || (RenderLineNumbersType = {}));\nexport var RenderMinimap;\n(function (RenderMinimap) {\n RenderMinimap[RenderMinimap[\"None\"] = 0] = \"None\";\n RenderMinimap[RenderMinimap[\"Text\"] = 1] = \"Text\";\n RenderMinimap[RenderMinimap[\"Blocks\"] = 2] = \"Blocks\";\n})(RenderMinimap || (RenderMinimap = {}));\nexport var ScrollType;\n(function (ScrollType) {\n ScrollType[ScrollType[\"Smooth\"] = 0] = \"Smooth\";\n ScrollType[ScrollType[\"Immediate\"] = 1] = \"Immediate\";\n})(ScrollType || (ScrollType = {}));\nexport var ScrollbarVisibility;\n(function (ScrollbarVisibility) {\n ScrollbarVisibility[ScrollbarVisibility[\"Auto\"] = 1] = \"Auto\";\n ScrollbarVisibility[ScrollbarVisibility[\"Hidden\"] = 2] = \"Hidden\";\n ScrollbarVisibility[ScrollbarVisibility[\"Visible\"] = 3] = \"Visible\";\n})(ScrollbarVisibility || (ScrollbarVisibility = {}));\n/**\n * The direction of a selection.\n */\nexport var SelectionDirection;\n(function (SelectionDirection) {\n /**\n * The selection starts above where it ends.\n */\n SelectionDirection[SelectionDirection[\"LTR\"] = 0] = \"LTR\";\n /**\n * The selection starts below where it ends.\n */\n SelectionDirection[SelectionDirection[\"RTL\"] = 1] = \"RTL\";\n})(SelectionDirection || (SelectionDirection = {}));\nexport var SignatureHelpTriggerKind;\n(function (SignatureHelpTriggerKind) {\n SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"Invoke\"] = 1] = \"Invoke\";\n SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"TriggerCharacter\"] = 2] = \"TriggerCharacter\";\n SignatureHelpTriggerKind[SignatureHelpTriggerKind[\"ContentChange\"] = 3] = \"ContentChange\";\n})(SignatureHelpTriggerKind || (SignatureHelpTriggerKind = {}));\n/**\n * A symbol kind.\n */\nexport var SymbolKind;\n(function (SymbolKind) {\n SymbolKind[SymbolKind[\"File\"] = 0] = \"File\";\n SymbolKind[SymbolKind[\"Module\"] = 1] = \"Module\";\n SymbolKind[SymbolKind[\"Namespace\"] = 2] = \"Namespace\";\n SymbolKind[SymbolKind[\"Package\"] = 3] = \"Package\";\n SymbolKind[SymbolKind[\"Class\"] = 4] = \"Class\";\n SymbolKind[SymbolKind[\"Method\"] = 5] = \"Method\";\n SymbolKind[SymbolKind[\"Property\"] = 6] = \"Property\";\n SymbolKind[SymbolKind[\"Field\"] = 7] = \"Field\";\n SymbolKind[SymbolKind[\"Constructor\"] = 8] = \"Constructor\";\n SymbolKind[SymbolKind[\"Enum\"] = 9] = \"Enum\";\n SymbolKind[SymbolKind[\"Interface\"] = 10] = \"Interface\";\n SymbolKind[SymbolKind[\"Function\"] = 11] = \"Function\";\n SymbolKind[SymbolKind[\"Variable\"] = 12] = \"Variable\";\n SymbolKind[SymbolKind[\"Constant\"] = 13] = \"Constant\";\n SymbolKind[SymbolKind[\"String\"] = 14] = \"String\";\n SymbolKind[SymbolKind[\"Number\"] = 15] = \"Number\";\n SymbolKind[SymbolKind[\"Boolean\"] = 16] = \"Boolean\";\n SymbolKind[SymbolKind[\"Array\"] = 17] = \"Array\";\n SymbolKind[SymbolKind[\"Object\"] = 18] = \"Object\";\n SymbolKind[SymbolKind[\"Key\"] = 19] = \"Key\";\n SymbolKind[SymbolKind[\"Null\"] = 20] = \"Null\";\n SymbolKind[SymbolKind[\"EnumMember\"] = 21] = \"EnumMember\";\n SymbolKind[SymbolKind[\"Struct\"] = 22] = \"Struct\";\n SymbolKind[SymbolKind[\"Event\"] = 23] = \"Event\";\n SymbolKind[SymbolKind[\"Operator\"] = 24] = \"Operator\";\n SymbolKind[SymbolKind[\"TypeParameter\"] = 25] = \"TypeParameter\";\n})(SymbolKind || (SymbolKind = {}));\nexport var SymbolTag;\n(function (SymbolTag) {\n SymbolTag[SymbolTag[\"Deprecated\"] = 1] = \"Deprecated\";\n})(SymbolTag || (SymbolTag = {}));\n/**\n * The kind of animation in which the editor's cursor should be rendered.\n */\nexport var TextEditorCursorBlinkingStyle;\n(function (TextEditorCursorBlinkingStyle) {\n /**\n * Hidden\n */\n TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Hidden\"] = 0] = \"Hidden\";\n /**\n * Blinking\n */\n TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Blink\"] = 1] = \"Blink\";\n /**\n * Blinking with smooth fading\n */\n TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Smooth\"] = 2] = \"Smooth\";\n /**\n * Blinking with prolonged filled state and smooth fading\n */\n TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Phase\"] = 3] = \"Phase\";\n /**\n * Expand collapse animation on the y axis\n */\n TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Expand\"] = 4] = \"Expand\";\n /**\n * No-Blinking\n */\n TextEditorCursorBlinkingStyle[TextEditorCursorBlinkingStyle[\"Solid\"] = 5] = \"Solid\";\n})(TextEditorCursorBlinkingStyle || (TextEditorCursorBlinkingStyle = {}));\n/**\n * The style in which the editor's cursor should be rendered.\n */\nexport var TextEditorCursorStyle;\n(function (TextEditorCursorStyle) {\n /**\n * As a vertical line (sitting between two characters).\n */\n TextEditorCursorStyle[TextEditorCursorStyle[\"Line\"] = 1] = \"Line\";\n /**\n * As a block (sitting on top of a character).\n */\n TextEditorCursorStyle[TextEditorCursorStyle[\"Block\"] = 2] = \"Block\";\n /**\n * As a horizontal line (sitting under a character).\n */\n TextEditorCursorStyle[TextEditorCursorStyle[\"Underline\"] = 3] = \"Underline\";\n /**\n * As a thin vertical line (sitting between two characters).\n */\n TextEditorCursorStyle[TextEditorCursorStyle[\"LineThin\"] = 4] = \"LineThin\";\n /**\n * As an outlined block (sitting on top of a character).\n */\n TextEditorCursorStyle[TextEditorCursorStyle[\"BlockOutline\"] = 5] = \"BlockOutline\";\n /**\n * As a thin horizontal line (sitting under a character).\n */\n TextEditorCursorStyle[TextEditorCursorStyle[\"UnderlineThin\"] = 6] = \"UnderlineThin\";\n})(TextEditorCursorStyle || (TextEditorCursorStyle = {}));\n/**\n * Describes the behavior of decorations when typing/editing near their edges.\n * Note: Please do not edit the values, as they very carefully match `DecorationRangeBehavior`\n */\nexport var TrackedRangeStickiness;\n(function (TrackedRangeStickiness) {\n TrackedRangeStickiness[TrackedRangeStickiness[\"AlwaysGrowsWhenTypingAtEdges\"] = 0] = \"AlwaysGrowsWhenTypingAtEdges\";\n TrackedRangeStickiness[TrackedRangeStickiness[\"NeverGrowsWhenTypingAtEdges\"] = 1] = \"NeverGrowsWhenTypingAtEdges\";\n TrackedRangeStickiness[TrackedRangeStickiness[\"GrowsOnlyWhenTypingBefore\"] = 2] = \"GrowsOnlyWhenTypingBefore\";\n TrackedRangeStickiness[TrackedRangeStickiness[\"GrowsOnlyWhenTypingAfter\"] = 3] = \"GrowsOnlyWhenTypingAfter\";\n})(TrackedRangeStickiness || (TrackedRangeStickiness = {}));\n/**\n * Describes how to indent wrapped lines.\n */\nexport var WrappingIndent;\n(function (WrappingIndent) {\n /**\n * No indentation => wrapped lines begin at column 1.\n */\n WrappingIndent[WrappingIndent[\"None\"] = 0] = \"None\";\n /**\n * Same => wrapped lines get the same indentation as the parent.\n */\n WrappingIndent[WrappingIndent[\"Same\"] = 1] = \"Same\";\n /**\n * Indent => wrapped lines get +1 indentation toward the parent.\n */\n WrappingIndent[WrappingIndent[\"Indent\"] = 2] = \"Indent\";\n /**\n * DeepIndent => wrapped lines get +2 indentation toward the parent.\n */\n WrappingIndent[WrappingIndent[\"DeepIndent\"] = 3] = \"DeepIndent\";\n})(WrappingIndent || (WrappingIndent = {}));\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { Position } from './position.js';\nimport { Range } from './range.js';\n/**\n * A selection in the editor.\n * The selection is a range that has an orientation.\n */\nexport class Selection extends Range {\n constructor(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn) {\n super(selectionStartLineNumber, selectionStartColumn, positionLineNumber, positionColumn);\n this.selectionStartLineNumber = selectionStartLineNumber;\n this.selectionStartColumn = selectionStartColumn;\n this.positionLineNumber = positionLineNumber;\n this.positionColumn = positionColumn;\n }\n /**\n * Transform to a human-readable representation.\n */\n toString() {\n return '[' + this.selectionStartLineNumber + ',' + this.selectionStartColumn + ' -> ' + this.positionLineNumber + ',' + this.positionColumn + ']';\n }\n /**\n * Test if equals other selection.\n */\n equalsSelection(other) {\n return (Selection.selectionsEqual(this, other));\n }\n /**\n * Test if the two selections are equal.\n */\n static selectionsEqual(a, b) {\n return (a.selectionStartLineNumber === b.selectionStartLineNumber &&\n a.selectionStartColumn === b.selectionStartColumn &&\n a.positionLineNumber === b.positionLineNumber &&\n a.positionColumn === b.positionColumn);\n }\n /**\n * Get directions (LTR or RTL).\n */\n getDirection() {\n if (this.selectionStartLineNumber === this.startLineNumber && this.selectionStartColumn === this.startColumn) {\n return 0 /* LTR */;\n }\n return 1 /* RTL */;\n }\n /**\n * Create a new selection with a different `positionLineNumber` and `positionColumn`.\n */\n setEndPosition(endLineNumber, endColumn) {\n if (this.getDirection() === 0 /* LTR */) {\n return new Selection(this.startLineNumber, this.startColumn, endLineNumber, endColumn);\n }\n return new Selection(endLineNumber, endColumn, this.startLineNumber, this.startColumn);\n }\n /**\n * Get the position at `positionLineNumber` and `positionColumn`.\n */\n getPosition() {\n return new Position(this.positionLineNumber, this.positionColumn);\n }\n /**\n * Create a new selection with a different `selectionStartLineNumber` and `selectionStartColumn`.\n */\n setStartPosition(startLineNumber, startColumn) {\n if (this.getDirection() === 0 /* LTR */) {\n return new Selection(startLineNumber, startColumn, this.endLineNumber, this.endColumn);\n }\n return new Selection(this.endLineNumber, this.endColumn, startLineNumber, startColumn);\n }\n // ----\n /**\n * Create a `Selection` from one or two positions\n */\n static fromPositions(start, end = start) {\n return new Selection(start.lineNumber, start.column, end.lineNumber, end.column);\n }\n /**\n * Create a `Selection` from an `ISelection`.\n */\n static liftSelection(sel) {\n return new Selection(sel.selectionStartLineNumber, sel.selectionStartColumn, sel.positionLineNumber, sel.positionColumn);\n }\n /**\n * `a` equals `b`.\n */\n static selectionsArrEqual(a, b) {\n if (a && !b || !a && b) {\n return false;\n }\n if (!a && !b) {\n return true;\n }\n if (a.length !== b.length) {\n return false;\n }\n for (let i = 0, len = a.length; i < len; i++) {\n if (!this.selectionsEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n /**\n * Test if `obj` is an `ISelection`.\n */\n static isISelection(obj) {\n return (obj\n && (typeof obj.selectionStartLineNumber === 'number')\n && (typeof obj.selectionStartColumn === 'number')\n && (typeof obj.positionLineNumber === 'number')\n && (typeof obj.positionColumn === 'number'));\n }\n /**\n * Create with a direction.\n */\n static createWithDirection(startLineNumber, startColumn, endLineNumber, endColumn, direction) {\n if (direction === 0 /* LTR */) {\n return new Selection(startLineNumber, startColumn, endLineNumber, endColumn);\n }\n return new Selection(endLineNumber, endColumn, startLineNumber, startColumn);\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nexport class Token {\n constructor(offset, type, language) {\n this._tokenBrand = undefined;\n this.offset = offset | 0; // @perf\n this.type = type;\n this.language = language;\n }\n toString() {\n return '(' + this.offset + ', ' + this.type + ')';\n }\n}\nexport class TokenizationResult {\n constructor(tokens, endState) {\n this._tokenizationResultBrand = undefined;\n this.tokens = tokens;\n this.endState = endState;\n }\n}\nexport class TokenizationResult2 {\n constructor(tokens, endState) {\n this._tokenizationResult2Brand = undefined;\n this.tokens = tokens;\n this.endState = endState;\n }\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { CancellationTokenSource } from '../../../base/common/cancellation.js';\nimport { Emitter } from '../../../base/common/event.js';\nimport { KeyChord } from '../../../base/common/keyCodes.js';\nimport { URI } from '../../../base/common/uri.js';\nimport { Position } from '../core/position.js';\nimport { Range } from '../core/range.js';\nimport { Selection } from '../core/selection.js';\nimport { Token } from '../core/token.js';\nimport * as standaloneEnums from './standaloneEnums.js';\nexport class KeyMod {\n static chord(firstPart, secondPart) {\n return KeyChord(firstPart, secondPart);\n }\n}\nKeyMod.CtrlCmd = 2048 /* CtrlCmd */;\nKeyMod.Shift = 1024 /* Shift */;\nKeyMod.Alt = 512 /* Alt */;\nKeyMod.WinCtrl = 256 /* WinCtrl */;\nexport function createMonacoBaseAPI() {\n return {\n editor: undefined,\n languages: undefined,\n CancellationTokenSource: CancellationTokenSource,\n Emitter: Emitter,\n KeyCode: standaloneEnums.KeyCode,\n KeyMod: KeyMod,\n Position: Position,\n Range: Range,\n Selection: Selection,\n SelectionDirection: standaloneEnums.SelectionDirection,\n MarkerSeverity: standaloneEnums.MarkerSeverity,\n MarkerTag: standaloneEnums.MarkerTag,\n Uri: URI,\n Token: Token\n };\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nvar __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { stringDiff } from '../../../base/common/diff/diff.js';\nimport { globals } from '../../../base/common/platform.js';\nimport { URI } from '../../../base/common/uri.js';\nimport { Position } from '../core/position.js';\nimport { Range } from '../core/range.js';\nimport { DiffComputer } from '../diff/diffComputer.js';\nimport { MirrorTextModel as BaseMirrorModel } from '../model/mirrorTextModel.js';\nimport { ensureValidWordDefinition, getWordAtText } from '../model/wordHelper.js';\nimport { computeLinks } from '../modes/linkComputer.js';\nimport { BasicInplaceReplace } from '../modes/supports/inplaceReplaceSupport.js';\nimport { createMonacoBaseAPI } from '../standalone/standaloneBase.js';\nimport * as types from '../../../base/common/types.js';\nimport { StopWatch } from '../../../base/common/stopwatch.js';\n/**\n * @internal\n */\nexport class MirrorModel extends BaseMirrorModel {\n get uri() {\n return this._uri;\n }\n get eol() {\n return this._eol;\n }\n getValue() {\n return this.getText();\n }\n getLinesContent() {\n return this._lines.slice(0);\n }\n getLineCount() {\n return this._lines.length;\n }\n getLineContent(lineNumber) {\n return this._lines[lineNumber - 1];\n }\n getWordAtPosition(position, wordDefinition) {\n let wordAtText = getWordAtText(position.column, ensureValidWordDefinition(wordDefinition), this._lines[position.lineNumber - 1], 0);\n if (wordAtText) {\n return new Range(position.lineNumber, wordAtText.startColumn, position.lineNumber, wordAtText.endColumn);\n }\n return null;\n }\n words(wordDefinition) {\n const lines = this._lines;\n const wordenize = this._wordenize.bind(this);\n let lineNumber = 0;\n let lineText = '';\n let wordRangesIdx = 0;\n let wordRanges = [];\n return {\n *[Symbol.iterator]() {\n while (true) {\n if (wordRangesIdx < wordRanges.length) {\n const value = lineText.substring(wordRanges[wordRangesIdx].start, wordRanges[wordRangesIdx].end);\n wordRangesIdx += 1;\n yield value;\n }\n else {\n if (lineNumber < lines.length) {\n lineText = lines[lineNumber];\n wordRanges = wordenize(lineText, wordDefinition);\n wordRangesIdx = 0;\n lineNumber += 1;\n }\n else {\n break;\n }\n }\n }\n }\n };\n }\n getLineWords(lineNumber, wordDefinition) {\n let content = this._lines[lineNumber - 1];\n let ranges = this._wordenize(content, wordDefinition);\n let words = [];\n for (const range of ranges) {\n words.push({\n word: content.substring(range.start, range.end),\n startColumn: range.start + 1,\n endColumn: range.end + 1\n });\n }\n return words;\n }\n _wordenize(content, wordDefinition) {\n const result = [];\n let match;\n wordDefinition.lastIndex = 0; // reset lastIndex just to be sure\n while (match = wordDefinition.exec(content)) {\n if (match[0].length === 0) {\n // it did match the empty string\n break;\n }\n result.push({ start: match.index, end: match.index + match[0].length });\n }\n return result;\n }\n getValueInRange(range) {\n range = this._validateRange(range);\n if (range.startLineNumber === range.endLineNumber) {\n return this._lines[range.startLineNumber - 1].substring(range.startColumn - 1, range.endColumn - 1);\n }\n let lineEnding = this._eol;\n let startLineIndex = range.startLineNumber - 1;\n let endLineIndex = range.endLineNumber - 1;\n let resultLines = [];\n resultLines.push(this._lines[startLineIndex].substring(range.startColumn - 1));\n for (let i = startLineIndex + 1; i < endLineIndex; i++) {\n resultLines.push(this._lines[i]);\n }\n resultLines.push(this._lines[endLineIndex].substring(0, range.endColumn - 1));\n return resultLines.join(lineEnding);\n }\n offsetAt(position) {\n position = this._validatePosition(position);\n this._ensureLineStarts();\n return this._lineStarts.getPrefixSum(position.lineNumber - 2) + (position.column - 1);\n }\n positionAt(offset) {\n offset = Math.floor(offset);\n offset = Math.max(0, offset);\n this._ensureLineStarts();\n let out = this._lineStarts.getIndexOf(offset);\n let lineLength = this._lines[out.index].length;\n // Ensure we return a valid position\n return {\n lineNumber: 1 + out.index,\n column: 1 + Math.min(out.remainder, lineLength)\n };\n }\n _validateRange(range) {\n const start = this._validatePosition({ lineNumber: range.startLineNumber, column: range.startColumn });\n const end = this._validatePosition({ lineNumber: range.endLineNumber, column: range.endColumn });\n if (start.lineNumber !== range.startLineNumber\n || start.column !== range.startColumn\n || end.lineNumber !== range.endLineNumber\n || end.column !== range.endColumn) {\n return {\n startLineNumber: start.lineNumber,\n startColumn: start.column,\n endLineNumber: end.lineNumber,\n endColumn: end.column\n };\n }\n return range;\n }\n _validatePosition(position) {\n if (!Position.isIPosition(position)) {\n throw new Error('bad position');\n }\n let { lineNumber, column } = position;\n let hasChanged = false;\n if (lineNumber < 1) {\n lineNumber = 1;\n column = 1;\n hasChanged = true;\n }\n else if (lineNumber > this._lines.length) {\n lineNumber = this._lines.length;\n column = this._lines[lineNumber - 1].length + 1;\n hasChanged = true;\n }\n else {\n let maxCharacter = this._lines[lineNumber - 1].length + 1;\n if (column < 1) {\n column = 1;\n hasChanged = true;\n }\n else if (column > maxCharacter) {\n column = maxCharacter;\n hasChanged = true;\n }\n }\n if (!hasChanged) {\n return position;\n }\n else {\n return { lineNumber, column };\n }\n }\n}\n/**\n * @internal\n */\nexport class EditorSimpleWorker {\n constructor(host, foreignModuleFactory) {\n this._host = host;\n this._models = Object.create(null);\n this._foreignModuleFactory = foreignModuleFactory;\n this._foreignModule = null;\n }\n dispose() {\n this._models = Object.create(null);\n }\n _getModel(uri) {\n return this._models[uri];\n }\n _getModels() {\n let all = [];\n Object.keys(this._models).forEach((key) => all.push(this._models[key]));\n return all;\n }\n acceptNewModel(data) {\n this._models[data.url] = new MirrorModel(URI.parse(data.url), data.lines, data.EOL, data.versionId);\n }\n acceptModelChanged(strURL, e) {\n if (!this._models[strURL]) {\n return;\n }\n let model = this._models[strURL];\n model.onEvents(e);\n }\n acceptRemovedModel(strURL) {\n if (!this._models[strURL]) {\n return;\n }\n delete this._models[strURL];\n }\n // ---- BEGIN diff --------------------------------------------------------------------------\n computeDiff(originalUrl, modifiedUrl, ignoreTrimWhitespace, maxComputationTime) {\n return __awaiter(this, void 0, void 0, function* () {\n const original = this._getModel(originalUrl);\n const modified = this._getModel(modifiedUrl);\n if (!original || !modified) {\n return null;\n }\n const originalLines = original.getLinesContent();\n const modifiedLines = modified.getLinesContent();\n const diffComputer = new DiffComputer(originalLines, modifiedLines, {\n shouldComputeCharChanges: true,\n shouldPostProcessCharChanges: true,\n shouldIgnoreTrimWhitespace: ignoreTrimWhitespace,\n shouldMakePrettyDiff: true,\n maxComputationTime: maxComputationTime\n });\n const diffResult = diffComputer.computeDiff();\n const identical = (diffResult.changes.length > 0 ? false : this._modelsAreIdentical(original, modified));\n return {\n quitEarly: diffResult.quitEarly,\n identical: identical,\n changes: diffResult.changes\n };\n });\n }\n _modelsAreIdentical(original, modified) {\n const originalLineCount = original.getLineCount();\n const modifiedLineCount = modified.getLineCount();\n if (originalLineCount !== modifiedLineCount) {\n return false;\n }\n for (let line = 1; line <= originalLineCount; line++) {\n const originalLine = original.getLineContent(line);\n const modifiedLine = modified.getLineContent(line);\n if (originalLine !== modifiedLine) {\n return false;\n }\n }\n return true;\n }\n computeMoreMinimalEdits(modelUrl, edits) {\n return __awaiter(this, void 0, void 0, function* () {\n const model = this._getModel(modelUrl);\n if (!model) {\n return edits;\n }\n const result = [];\n let lastEol = undefined;\n edits = edits.slice(0).sort((a, b) => {\n if (a.range && b.range) {\n return Range.compareRangesUsingStarts(a.range, b.range);\n }\n // eol only changes should go to the end\n let aRng = a.range ? 0 : 1;\n let bRng = b.range ? 0 : 1;\n return aRng - bRng;\n });\n for (let { range, text, eol } of edits) {\n if (typeof eol === 'number') {\n lastEol = eol;\n }\n if (Range.isEmpty(range) && !text) {\n // empty change\n continue;\n }\n const original = model.getValueInRange(range);\n text = text.replace(/\\r\\n|\\n|\\r/g, model.eol);\n if (original === text) {\n // noop\n continue;\n }\n // make sure diff won't take too long\n if (Math.max(text.length, original.length) > EditorSimpleWorker._diffLimit) {\n result.push({ range, text });\n continue;\n }\n // compute diff between original and edit.text\n const changes = stringDiff(original, text, false);\n const editOffset = model.offsetAt(Range.lift(range).getStartPosition());\n for (const change of changes) {\n const start = model.positionAt(editOffset + change.originalStart);\n const end = model.positionAt(editOffset + change.originalStart + change.originalLength);\n const newEdit = {\n text: text.substr(change.modifiedStart, change.modifiedLength),\n range: { startLineNumber: start.lineNumber, startColumn: start.column, endLineNumber: end.lineNumber, endColumn: end.column }\n };\n if (model.getValueInRange(newEdit.range) !== newEdit.text) {\n result.push(newEdit);\n }\n }\n }\n if (typeof lastEol === 'number') {\n result.push({ eol: lastEol, text: '', range: { startLineNumber: 0, startColumn: 0, endLineNumber: 0, endColumn: 0 } });\n }\n return result;\n });\n }\n // ---- END minimal edits ---------------------------------------------------------------\n computeLinks(modelUrl) {\n return __awaiter(this, void 0, void 0, function* () {\n let model = this._getModel(modelUrl);\n if (!model) {\n return null;\n }\n return computeLinks(model);\n });\n }\n textualSuggest(modelUrls, leadingWord, wordDef, wordDefFlags) {\n return __awaiter(this, void 0, void 0, function* () {\n const sw = new StopWatch(true);\n const wordDefRegExp = new RegExp(wordDef, wordDefFlags);\n const seen = new Set();\n outer: for (let url of modelUrls) {\n const model = this._getModel(url);\n if (!model) {\n continue;\n }\n for (let word of model.words(wordDefRegExp)) {\n if (word === leadingWord || !isNaN(Number(word))) {\n continue;\n }\n seen.add(word);\n if (seen.size > EditorSimpleWorker._suggestionsLimit) {\n break outer;\n }\n }\n }\n return { words: Array.from(seen), duration: sw.elapsed() };\n });\n }\n // ---- END suggest --------------------------------------------------------------------------\n //#region -- word ranges --\n computeWordRanges(modelUrl, range, wordDef, wordDefFlags) {\n return __awaiter(this, void 0, void 0, function* () {\n let model = this._getModel(modelUrl);\n if (!model) {\n return Object.create(null);\n }\n const wordDefRegExp = new RegExp(wordDef, wordDefFlags);\n const result = Object.create(null);\n for (let line = range.startLineNumber; line < range.endLineNumber; line++) {\n let words = model.getLineWords(line, wordDefRegExp);\n for (const word of words) {\n if (!isNaN(Number(word.word))) {\n continue;\n }\n let array = result[word.word];\n if (!array) {\n array = [];\n result[word.word] = array;\n }\n array.push({\n startLineNumber: line,\n startColumn: word.startColumn,\n endLineNumber: line,\n endColumn: word.endColumn\n });\n }\n }\n return result;\n });\n }\n //#endregion\n navigateValueSet(modelUrl, range, up, wordDef, wordDefFlags) {\n return __awaiter(this, void 0, void 0, function* () {\n let model = this._getModel(modelUrl);\n if (!model) {\n return null;\n }\n let wordDefRegExp = new RegExp(wordDef, wordDefFlags);\n if (range.startColumn === range.endColumn) {\n range = {\n startLineNumber: range.startLineNumber,\n startColumn: range.startColumn,\n endLineNumber: range.endLineNumber,\n endColumn: range.endColumn + 1\n };\n }\n let selectionText = model.getValueInRange(range);\n let wordRange = model.getWordAtPosition({ lineNumber: range.startLineNumber, column: range.startColumn }, wordDefRegExp);\n if (!wordRange) {\n return null;\n }\n let word = model.getValueInRange(wordRange);\n let result = BasicInplaceReplace.INSTANCE.navigateValueSet(range, selectionText, wordRange, word, up);\n return result;\n });\n }\n // ---- BEGIN foreign module support --------------------------------------------------------------------------\n loadForeignModule(moduleId, createData, foreignHostMethods) {\n const proxyMethodRequest = (method, args) => {\n return this._host.fhr(method, args);\n };\n const foreignHost = types.createProxyObject(foreignHostMethods, proxyMethodRequest);\n let ctx = {\n host: foreignHost,\n getMirrorModels: () => {\n return this._getModels();\n }\n };\n if (this._foreignModuleFactory) {\n this._foreignModule = this._foreignModuleFactory(ctx, createData);\n // static foreing module\n return Promise.resolve(types.getAllMethodNames(this._foreignModule));\n }\n // ESM-comment-begin\n // \t\treturn new Promise((resolve, reject) => {\n // \t\t\trequire([moduleId], (foreignModule: { create: IForeignModuleFactory }) => {\n // \t\t\t\tthis._foreignModule = foreignModule.create(ctx, createData);\n // \n // \t\t\t\tresolve(types.getAllMethodNames(this._foreignModule));\n // \n // \t\t\t}, reject);\n // \t\t});\n // ESM-comment-end\n // ESM-uncomment-begin\n return Promise.reject(new Error(`Unexpected usage`));\n // ESM-uncomment-end\n }\n // foreign method request\n fmr(method, args) {\n if (!this._foreignModule || typeof this._foreignModule[method] !== 'function') {\n return Promise.reject(new Error('Missing requestHandler or method: ' + method));\n }\n try {\n return Promise.resolve(this._foreignModule[method].apply(this._foreignModule, args));\n }\n catch (e) {\n return Promise.reject(e);\n }\n }\n}\n// ---- END diff --------------------------------------------------------------------------\n// ---- BEGIN minimal edits ---------------------------------------------------------------\nEditorSimpleWorker._diffLimit = 100000;\n// ---- BEGIN suggest --------------------------------------------------------------------------\nEditorSimpleWorker._suggestionsLimit = 10000;\n/**\n * Called on the worker side\n * @internal\n */\nexport function create(host) {\n return new EditorSimpleWorker(host, null);\n}\nif (typeof importScripts === 'function') {\n // Running in a web worker\n globals.monaco = createMonacoBaseAPI();\n}\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\nimport { SimpleWorkerServer } from '../base/common/worker/simpleWorker.js';\nimport { EditorSimpleWorker } from './common/services/editorSimpleWorker.js';\nlet initialized = false;\nexport function initialize(foreignModule) {\n if (initialized) {\n return;\n }\n initialized = true;\n const simpleWorker = new SimpleWorkerServer((msg) => {\n self.postMessage(msg);\n }, (host) => new EditorSimpleWorker(host, foreignModule));\n self.onmessage = (e) => {\n simpleWorker.onmessage(e.data);\n };\n}\nself.onmessage = (e) => {\n // Ignore first message in this case and initialize if not yet initialized\n if (!initialized) {\n initialize(null);\n }\n};\n","/*---------------------------------------------------------------------------------------------\n * Copyright (c) Microsoft Corporation. All rights reserved.\n * Licensed under the MIT License. See License.txt in the project root for license information.\n *--------------------------------------------------------------------------------------------*/\n//\n// **NOTE**: Do not edit directly! This file is generated using `npm run import-typescript`\n//\n/** Contains all the lib files */\nexport var libFileMap = {};\nlibFileMap['lib.d.ts'] = \"/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \\\"License\\\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n\\n/// \\n\\n\\n/// \\n/// \\n/// \\n/// \\n\";\nlibFileMap['lib.dom.d.ts'] = \"/*! *****************************************************************************\\nCopyright (c) Microsoft Corporation. All rights reserved.\\nLicensed under the Apache License, Version 2.0 (the \\\"License\\\"); you may not use\\nthis file except in compliance with the License. You may obtain a copy of the\\nLicense at http://www.apache.org/licenses/LICENSE-2.0\\n\\nTHIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY\\nKIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED\\nWARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,\\nMERCHANTABLITY OR NON-INFRINGEMENT.\\n\\nSee the Apache Version 2.0 License for specific language governing permissions\\nand limitations under the License.\\n***************************************************************************** */\\n\\n\\n\\n/// \\n\\n\\n/////////////////////////////\\n/// Window APIs\\n/////////////////////////////\\n\\ninterface AddEventListenerOptions extends EventListenerOptions {\\n once?: boolean;\\n passive?: boolean;\\n signal?: AbortSignal;\\n}\\n\\ninterface AesCbcParams extends Algorithm {\\n iv: BufferSource;\\n}\\n\\ninterface AesCtrParams extends Algorithm {\\n counter: BufferSource;\\n length: number;\\n}\\n\\ninterface AesDerivedKeyParams extends Algorithm {\\n length: number;\\n}\\n\\ninterface AesGcmParams extends Algorithm {\\n additionalData?: BufferSource;\\n iv: BufferSource;\\n tagLength?: number;\\n}\\n\\ninterface AesKeyAlgorithm extends KeyAlgorithm {\\n length: number;\\n}\\n\\ninterface AesKeyGenParams extends Algorithm {\\n length: number;\\n}\\n\\ninterface Algorithm {\\n name: string;\\n}\\n\\ninterface AnalyserOptions extends AudioNodeOptions {\\n fftSize?: number;\\n maxDecibels?: number;\\n minDecibels?: number;\\n smoothingTimeConstant?: number;\\n}\\n\\ninterface AnimationEventInit extends EventInit {\\n animationName?: string;\\n elapsedTime?: number;\\n pseudoElement?: string;\\n}\\n\\ninterface AnimationPlaybackEventInit extends EventInit {\\n currentTime?: number | null;\\n timelineTime?: number | null;\\n}\\n\\ninterface AssignedNodesOptions {\\n flatten?: boolean;\\n}\\n\\ninterface AudioBufferOptions {\\n length: number;\\n numberOfChannels?: number;\\n sampleRate: number;\\n}\\n\\ninterface AudioBufferSourceOptions {\\n buffer?: AudioBuffer | null;\\n detune?: number;\\n loop?: boolean;\\n loopEnd?: number;\\n loopStart?: number;\\n playbackRate?: number;\\n}\\n\\ninterface AudioConfiguration {\\n bitrate?: number;\\n channels?: string;\\n contentType: string;\\n samplerate?: number;\\n spatialRendering?: boolean;\\n}\\n\\ninterface AudioContextOptions {\\n latencyHint?: AudioContextLatencyCategory | number;\\n sampleRate?: number;\\n}\\n\\ninterface AudioNodeOptions {\\n channelCount?: number;\\n channelCountMode?: ChannelCountMode;\\n channelInterpretation?: ChannelInterpretation;\\n}\\n\\ninterface AudioProcessingEventInit extends EventInit {\\n inputBuffer: AudioBuffer;\\n outputBuffer: AudioBuffer;\\n playbackTime: number;\\n}\\n\\ninterface AudioTimestamp {\\n contextTime?: number;\\n performanceTime?: DOMHighResTimeStamp;\\n}\\n\\ninterface AudioWorkletNodeOptions extends AudioNodeOptions {\\n numberOfInputs?: number;\\n numberOfOutputs?: number;\\n outputChannelCount?: number[];\\n parameterData?: Record;\\n processorOptions?: any;\\n}\\n\\ninterface AuthenticationExtensionsClientInputs {\\n appid?: string;\\n appidExclude?: string;\\n credProps?: boolean;\\n uvm?: boolean;\\n}\\n\\ninterface AuthenticationExtensionsClientOutputs {\\n appid?: boolean;\\n credProps?: CredentialPropertiesOutput;\\n uvm?: UvmEntries;\\n}\\n\\ninterface AuthenticatorSelectionCriteria {\\n authenticatorAttachment?: AuthenticatorAttachment;\\n requireResidentKey?: boolean;\\n residentKey?: ResidentKeyRequirement;\\n userVerification?: UserVerificationRequirement;\\n}\\n\\ninterface BiquadFilterOptions extends AudioNodeOptions {\\n Q?: number;\\n detune?: number;\\n frequency?: number;\\n gain?: number;\\n type?: BiquadFilterType;\\n}\\n\\ninterface BlobEventInit {\\n data: Blob;\\n timecode?: DOMHighResTimeStamp;\\n}\\n\\ninterface BlobPropertyBag {\\n endings?: EndingType;\\n type?: string;\\n}\\n\\ninterface CSSStyleSheetInit {\\n baseURL?: string;\\n disabled?: boolean;\\n media?: MediaList | string;\\n}\\n\\ninterface CacheQueryOptions {\\n ignoreMethod?: boolean;\\n ignoreSearch?: boolean;\\n ignoreVary?: boolean;\\n}\\n\\ninterface CanvasRenderingContext2DSettings {\\n alpha?: boolean;\\n colorSpace?: PredefinedColorSpace;\\n desynchronized?: boolean;\\n willReadFrequently?: boolean;\\n}\\n\\ninterface ChannelMergerOptions extends AudioNodeOptions {\\n numberOfInputs?: number;\\n}\\n\\ninterface ChannelSplitterOptions extends AudioNodeOptions {\\n numberOfOutputs?: number;\\n}\\n\\ninterface ClientQueryOptions {\\n includeUncontrolled?: boolean;\\n type?: ClientTypes;\\n}\\n\\ninterface ClipboardEventInit extends EventInit {\\n clipboardData?: DataTransfer | null;\\n}\\n\\ninterface ClipboardItemOptions {\\n presentationStyle?: PresentationStyle;\\n}\\n\\ninterface CloseEventInit extends EventInit {\\n code?: number;\\n reason?: string;\\n wasClean?: boolean;\\n}\\n\\ninterface CompositionEventInit extends UIEventInit {\\n data?: string;\\n}\\n\\ninterface ComputedEffectTiming extends EffectTiming {\\n activeDuration?: CSSNumberish;\\n currentIteration?: number | null;\\n endTime?: CSSNumberish;\\n localTime?: CSSNumberish | null;\\n progress?: CSSNumberish | null;\\n startTime?: CSSNumberish;\\n}\\n\\ninterface ComputedKeyframe {\\n composite: CompositeOperationOrAuto;\\n computedOffset: number;\\n easing: string;\\n offset: number | null;\\n [property: string]: string | number | null | undefined;\\n}\\n\\ninterface ConstantSourceOptions {\\n offset?: number;\\n}\\n\\ninterface ConstrainBooleanParameters {\\n exact?: boolean;\\n ideal?: boolean;\\n}\\n\\ninterface ConstrainDOMStringParameters {\\n exact?: string | string[];\\n ideal?: string | string[];\\n}\\n\\ninterface ConstrainDoubleRange extends DoubleRange {\\n exact?: number;\\n ideal?: number;\\n}\\n\\ninterface ConstrainULongRange extends ULongRange {\\n exact?: number;\\n ideal?: number;\\n}\\n\\ninterface ConvolverOptions extends AudioNodeOptions {\\n buffer?: AudioBuffer | null;\\n disableNormalization?: boolean;\\n}\\n\\ninterface CredentialCreationOptions {\\n publicKey?: PublicKeyCredentialCreationOptions;\\n signal?: AbortSignal;\\n}\\n\\ninterface CredentialPropertiesOutput {\\n rk?: boolean;\\n}\\n\\ninterface CredentialRequestOptions {\\n mediation?: CredentialMediationRequirement;\\n publicKey?: PublicKeyCredentialRequestOptions;\\n signal?: AbortSignal;\\n}\\n\\ninterface CryptoKeyPair {\\n privateKey?: CryptoKey;\\n publicKey?: CryptoKey;\\n}\\n\\ninterface CustomEventInit extends EventInit {\\n detail?: T;\\n}\\n\\ninterface DOMMatrix2DInit {\\n a?: number;\\n b?: number;\\n c?: number;\\n d?: number;\\n e?: number;\\n f?: number;\\n m11?: number;\\n m12?: number;\\n m21?: number;\\n m22?: number;\\n m41?: number;\\n m42?: number;\\n}\\n\\ninterface DOMMatrixInit extends DOMMatrix2DInit {\\n is2D?: boolean;\\n m13?: number;\\n m14?: number;\\n m23?: number;\\n m24?: number;\\n m31?: number;\\n m32?: number;\\n m33?: number;\\n m34?: number;\\n m43?: number;\\n m44?: number;\\n}\\n\\ninterface DOMPointInit {\\n w?: number;\\n x?: number;\\n y?: number;\\n z?: number;\\n}\\n\\ninterface DOMQuadInit {\\n p1?: DOMPointInit;\\n p2?: DOMPointInit;\\n p3?: DOMPointInit;\\n p4?: DOMPointInit;\\n}\\n\\ninterface DOMRectInit {\\n height?: number;\\n width?: number;\\n x?: number;\\n y?: number;\\n}\\n\\ninterface DelayOptions extends AudioNodeOptions {\\n delayTime?: number;\\n maxDelayTime?: number;\\n}\\n\\ninterface DeviceMotionEventAccelerationInit {\\n x?: number | null;\\n y?: number | null;\\n z?: number | null;\\n}\\n\\ninterface DeviceMotionEventInit extends EventInit {\\n acceleration?: DeviceMotionEventAccelerationInit;\\n accelerationIncludingGravity?: DeviceMotionEventAccelerationInit;\\n interval?: number;\\n rotationRate?: DeviceMotionEventRotationRateInit;\\n}\\n\\ninterface DeviceMotionEventRotationRateInit {\\n alpha?: number | null;\\n beta?: number | null;\\n gamma?: number | null;\\n}\\n\\ninterface DeviceOrientationEventInit extends EventInit {\\n absolute?: boolean;\\n alpha?: number | null;\\n beta?: number | null;\\n gamma?: number | null;\\n}\\n\\ninterface DisplayMediaStreamConstraints {\\n audio?: boolean | MediaTrackConstraints;\\n video?: boolean | MediaTrackConstraints;\\n}\\n\\ninterface DocumentTimelineOptions {\\n originTime?: DOMHighResTimeStamp;\\n}\\n\\ninterface DoubleRange {\\n max?: number;\\n min?: number;\\n}\\n\\ninterface DragEventInit extends MouseEventInit {\\n dataTransfer?: DataTransfer | null;\\n}\\n\\ninterface DynamicsCompressorOptions extends AudioNodeOptions {\\n attack?: number;\\n knee?: number;\\n ratio?: number;\\n release?: number;\\n threshold?: number;\\n}\\n\\ninterface EcKeyAlgorithm extends KeyAlgorithm {\\n namedCurve: NamedCurve;\\n}\\n\\ninterface EcKeyGenParams extends Algorithm {\\n namedCurve: NamedCurve;\\n}\\n\\ninterface EcKeyImportParams extends Algorithm {\\n namedCurve: NamedCurve;\\n}\\n\\ninterface EcdhKeyDeriveParams extends Algorithm {\\n public: CryptoKey;\\n}\\n\\ninterface EcdsaParams extends Algorithm {\\n hash: HashAlgorithmIdentifier;\\n}\\n\\ninterface EffectTiming {\\n delay?: number;\\n direction?: PlaybackDirection;\\n duration?: number | string;\\n easing?: string;\\n endDelay?: number;\\n fill?: FillMode;\\n iterationStart?: number;\\n iterations?: number;\\n playbackRate?: number;\\n}\\n\\ninterface ElementCreationOptions {\\n is?: string;\\n}\\n\\ninterface ElementDefinitionOptions {\\n extends?: string;\\n}\\n\\ninterface ErrorEventInit extends EventInit {\\n colno?: number;\\n error?: any;\\n filename?: string;\\n lineno?: number;\\n message?: string;\\n}\\n\\ninterface EventInit {\\n bubbles?: boolean;\\n cancelable?: boolean;\\n composed?: boolean;\\n}\\n\\ninterface EventListenerOptions {\\n capture?: boolean;\\n}\\n\\ninterface EventModifierInit extends UIEventInit {\\n altKey?: boolean;\\n ctrlKey?: boolean;\\n metaKey?: boolean;\\n modifierAltGraph?: boolean;\\n modifierCapsLock?: boolean;\\n modifierFn?: boolean;\\n modifierFnLock?: boolean;\\n modifierHyper?: boolean;\\n modifierNumLock?: boolean;\\n modifierScrollLock?: boolean;\\n modifierSuper?: boolean;\\n modifierSymbol?: boolean;\\n modifierSymbolLock?: boolean;\\n shiftKey?: boolean;\\n}\\n\\ninterface EventSourceInit {\\n withCredentials?: boolean;\\n}\\n\\ninterface FilePropertyBag extends BlobPropertyBag {\\n lastModified?: number;\\n}\\n\\ninterface FileSystemFlags {\\n create?: boolean;\\n exclusive?: boolean;\\n}\\n\\ninterface FocusEventInit extends UIEventInit {\\n relatedTarget?: EventTarget | null;\\n}\\n\\ninterface FocusOptions {\\n preventScroll?: boolean;\\n}\\n\\ninterface FontFaceDescriptors {\\n display?: string;\\n featureSettings?: string;\\n stretch?: string;\\n style?: string;\\n unicodeRange?: string;\\n variant?: string;\\n weight?: string;\\n}\\n\\ninterface FontFaceSetLoadEventInit extends EventInit {\\n fontfaces?: FontFace[];\\n}\\n\\ninterface FormDataEventInit extends EventInit {\\n formData: FormData;\\n}\\n\\ninterface FullscreenOptions {\\n navigationUI?: FullscreenNavigationUI;\\n}\\n\\ninterface GainOptions extends AudioNodeOptions {\\n gain?: number;\\n}\\n\\ninterface GamepadEventInit extends EventInit {\\n gamepad: Gamepad;\\n}\\n\\ninterface GetAnimationsOptions {\\n subtree?: boolean;\\n}\\n\\ninterface GetNotificationOptions {\\n tag?: string;\\n}\\n\\ninterface GetRootNodeOptions {\\n composed?: boolean;\\n}\\n\\ninterface HashChangeEventInit extends EventInit {\\n newURL?: string;\\n oldURL?: string;\\n}\\n\\ninterface HkdfParams extends Algorithm {\\n hash: HashAlgorithmIdentifier;\\n info: BufferSource;\\n salt: BufferSource;\\n}\\n\\ninterface HmacImportParams extends Algorithm {\\n hash: HashAlgorithmIdentifier;\\n length?: number;\\n}\\n\\ninterface HmacKeyAlgorithm extends KeyAlgorithm {\\n hash: KeyAlgorithm;\\n length: number;\\n}\\n\\ninterface HmacKeyGenParams extends Algorithm {\\n hash: HashAlgorithmIdentifier;\\n length?: number;\\n}\\n\\ninterface IDBDatabaseInfo {\\n name?: string;\\n version?: number;\\n}\\n\\ninterface IDBIndexParameters {\\n multiEntry?: boolean;\\n unique?: boolean;\\n}\\n\\ninterface IDBObjectStoreParameters {\\n autoIncrement?: boolean;\\n keyPath?: string | string[] | null;\\n}\\n\\ninterface IDBVersionChangeEventInit extends EventInit {\\n newVersion?: number | null;\\n oldVersion?: number;\\n}\\n\\ninterface IIRFilterOptions extends AudioNodeOptions {\\n feedback: number[];\\n feedforward: number[];\\n}\\n\\ninterface IdleRequestOptions {\\n timeout?: number;\\n}\\n\\ninterface ImageBitmapOptions {\\n colorSpaceConversion?: ColorSpaceConversion;\\n imageOrientation?: ImageOrientation;\\n premultiplyAlpha?: PremultiplyAlpha;\\n resizeHeight?: number;\\n resizeQuality?: ResizeQuality;\\n resizeWidth?: number;\\n}\\n\\ninterface ImageBitmapRenderingContextSettings {\\n alpha?: boolean;\\n}\\n\\ninterface ImageDataSettings {\\n colorSpace?: PredefinedColorSpace;\\n}\\n\\ninterface ImportMeta {\\n url: string;\\n}\\n\\ninterface InputEventInit extends UIEventInit {\\n data?: string | null;\\n dataTransfer?: DataTransfer | null;\\n inputType?: string;\\n isComposing?: boolean;\\n targetRanges?: StaticRange[];\\n}\\n\\ninterface IntersectionObserverEntryInit {\\n boundingClientRect: DOMRectInit;\\n intersectionRatio: number;\\n intersectionRect: DOMRectInit;\\n isIntersecting: boolean;\\n rootBounds: DOMRectInit | null;\\n target: Element;\\n time: DOMHighResTimeStamp;\\n}\\n\\ninterface IntersectionObserverInit {\\n root?: Element | Document | null;\\n rootMargin?: string;\\n threshold?: number | number[];\\n}\\n\\ninterface JsonWebKey {\\n alg?: string;\\n crv?: string;\\n d?: string;\\n dp?: string;\\n dq?: string;\\n e?: string;\\n ext?: boolean;\\n k?: string;\\n key_ops?: string[];\\n kty?: string;\\n n?: string;\\n oth?: RsaOtherPrimesInfo[];\\n p?: string;\\n q?: string;\\n qi?: string;\\n use?: string;\\n x?: string;\\n y?: string;\\n}\\n\\ninterface KeyAlgorithm {\\n name: string;\\n}\\n\\ninterface KeyboardEventInit extends EventModifierInit {\\n /** @deprecated */\\n charCode?: number;\\n code?: string;\\n isComposing?: boolean;\\n key?: string;\\n /** @deprecated */\\n keyCode?: number;\\n location?: number;\\n repeat?: boolean;\\n}\\n\\ninterface Keyframe {\\n composite?: CompositeOperationOrAuto;\\n easing?: string;\\n offset?: number | null;\\n [property: string]: string | number | null | undefined;\\n}\\n\\ninterface KeyframeAnimationOptions extends KeyframeEffectOptions {\\n id?: string;\\n}\\n\\ninterface KeyframeEffectOptions extends EffectTiming {\\n composite?: CompositeOperation;\\n iterationComposite?: IterationCompositeOperation;\\n pseudoElement?: string | null;\\n}\\n\\ninterface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {\\n configuration?: MediaDecodingConfiguration;\\n}\\n\\ninterface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {\\n configuration?: MediaEncodingConfiguration;\\n}\\n\\ninterface MediaCapabilitiesInfo {\\n powerEfficient: boolean;\\n smooth: boolean;\\n supported: boolean;\\n}\\n\\ninterface MediaConfiguration {\\n audio?: AudioConfiguration;\\n video?: VideoConfiguration;\\n}\\n\\ninterface MediaDecodingConfiguration extends MediaConfiguration {\\n type: MediaDecodingType;\\n}\\n\\ninterface MediaElementAudioSourceOptions {\\n mediaElement: HTMLMediaElement;\\n}\\n\\ninterface MediaEncodingConfiguration extends MediaConfiguration {\\n type: MediaEncodingType;\\n}\\n\\ninterface MediaEncryptedEventInit extends EventInit {\\n initData?: ArrayBuffer | null;\\n initDataType?: string;\\n}\\n\\ninterface MediaImage {\\n sizes?: string;\\n src: string;\\n type?: string;\\n}\\n\\ninterface MediaKeyMessageEventInit extends EventInit {\\n message: ArrayBuffer;\\n messageType: MediaKeyMessageType;\\n}\\n\\ninterface MediaKeySystemConfiguration {\\n audioCapabilities?: MediaKeySystemMediaCapability[];\\n distinctiveIdentifier?: MediaKeysRequirement;\\n initDataTypes?: string[];\\n label?: string;\\n persistentState?: MediaKeysRequirement;\\n sessionTypes?: string[];\\n videoCapabilities?: MediaKeySystemMediaCapability[];\\n}\\n\\ninterface MediaKeySystemMediaCapability {\\n contentType?: string;\\n encryptionScheme?: string | null;\\n robustness?: string;\\n}\\n\\ninterface MediaMetadataInit {\\n album?: string;\\n artist?: string;\\n artwork?: MediaImage[];\\n title?: string;\\n}\\n\\ninterface MediaPositionState {\\n duration?: number;\\n playbackRate?: number;\\n position?: number;\\n}\\n\\ninterface MediaQueryListEventInit extends EventInit {\\n matches?: boolean;\\n media?: string;\\n}\\n\\ninterface MediaRecorderErrorEventInit extends EventInit {\\n error: DOMException;\\n}\\n\\ninterface MediaRecorderOptions {\\n audioBitsPerSecond?: number;\\n bitsPerSecond?: number;\\n mimeType?: string;\\n videoBitsPerSecond?: number;\\n}\\n\\ninterface MediaSessionActionDetails {\\n action: MediaSessionAction;\\n fastSeek?: boolean | null;\\n seekOffset?: number | null;\\n seekTime?: number | null;\\n}\\n\\ninterface MediaStreamAudioSourceOptions {\\n mediaStream: MediaStream;\\n}\\n\\ninterface MediaStreamConstraints {\\n audio?: boolean | MediaTrackConstraints;\\n peerIdentity?: string;\\n video?: boolean | MediaTrackConstraints;\\n}\\n\\ninterface MediaStreamTrackEventInit extends EventInit {\\n track: MediaStreamTrack;\\n}\\n\\ninterface MediaTrackCapabilities {\\n aspectRatio?: DoubleRange;\\n autoGainControl?: boolean[];\\n channelCount?: ULongRange;\\n cursor?: string[];\\n deviceId?: string;\\n displaySurface?: string;\\n echoCancellation?: boolean[];\\n facingMode?: string[];\\n frameRate?: DoubleRange;\\n groupId?: string;\\n height?: ULongRange;\\n latency?: DoubleRange;\\n logicalSurface?: boolean;\\n noiseSuppression?: boolean[];\\n resizeMode?: string[];\\n sampleRate?: ULongRange;\\n sampleSize?: ULongRange;\\n width?: ULongRange;\\n}\\n\\ninterface MediaTrackConstraintSet {\\n aspectRatio?: ConstrainDouble;\\n channelCount?: ConstrainULong;\\n deviceId?: ConstrainDOMString;\\n echoCancellation?: ConstrainBoolean;\\n facingMode?: ConstrainDOMString;\\n frameRate?: ConstrainDouble;\\n groupId?: ConstrainDOMString;\\n height?: ConstrainULong;\\n latency?: ConstrainDouble;\\n sampleRate?: ConstrainULong;\\n sampleSize?: ConstrainULong;\\n suppressLocalAudioPlayback?: ConstrainBoolean;\\n width?: ConstrainULong;\\n}\\n\\ninterface MediaTrackConstraints extends MediaTrackConstraintSet {\\n advanced?: MediaTrackConstraintSet[];\\n}\\n\\ninterface MediaTrackSettings {\\n aspectRatio?: number;\\n deviceId?: string;\\n echoCancellation?: boolean;\\n facingMode?: string;\\n frameRate?: number;\\n groupId?: string;\\n height?: number;\\n restrictOwnAudio?: boolean;\\n sampleRate?: number;\\n sampleSize?: number;\\n width?: number;\\n}\\n\\ninterface MediaTrackSupportedConstraints {\\n aspectRatio?: boolean;\\n deviceId?: boolean;\\n echoCancellation?: boolean;\\n facingMode?: boolean;\\n frameRate?: boolean;\\n groupId?: boolean;\\n height?: boolean;\\n sampleRate?: boolean;\\n sampleSize?: boolean;\\n suppressLocalAudioPlayback?: boolean;\\n width?: boolean;\\n}\\n\\ninterface MessageEventInit extends EventInit {\\n data?: T;\\n lastEventId?: string;\\n origin?: string;\\n ports?: MessagePort[];\\n source?: MessageEventSource | null;\\n}\\n\\ninterface MouseEventInit extends EventModifierInit {\\n button?: number;\\n buttons?: number;\\n clientX?: number;\\n clientY?: number;\\n movementX?: number;\\n movementY?: number;\\n relatedTarget?: EventTarget | null;\\n screenX?: number;\\n screenY?: number;\\n}\\n\\ninterface MultiCacheQueryOptions extends CacheQueryOptions {\\n cacheName?: string;\\n}\\n\\ninterface MutationObserverInit {\\n /**\\n * Set to a list of attribute local names (without namespace) if not all attribute mutations need to be observed and attributes is true or omitted.\\n */\\n attributeFilter?: string[];\\n /**\\n * Set to true if attributes is true or omitted and target's attribute value before the mutation needs to be recorded.\\n */\\n attributeOldValue?: boolean;\\n /**\\n * Set to true if mutations to target's attributes are to be observed. Can be omitted if attributeOldValue or attributeFilter is specified.\\n */\\n attributes?: boolean;\\n /**\\n * Set to true if mutations to target's data are to be observed. Can be omitted if characterDataOldValue is specified.\\n */\\n characterData?: boolean;\\n /**\\n * Set to true if characterData is set to true or omitted and target's data before the mutation needs to be recorded.\\n */\\n characterDataOldValue?: boolean;\\n /**\\n * Set to true if mutations to target's children are to be observed.\\n */\\n childList?: boolean;\\n /**\\n * Set to true if mutations to not just target, but also target's descendants are to be observed.\\n */\\n subtree?: boolean;\\n}\\n\\ninterface NotificationAction {\\n action: string;\\n icon?: string;\\n title: string;\\n}\\n\\ninterface NotificationOptions {\\n actions?: NotificationAction[];\\n badge?: string;\\n body?: string;\\n data?: any;\\n dir?: NotificationDirection;\\n icon?: string;\\n image?: string;\\n lang?: string;\\n renotify?: boolean;\\n requireInteraction?: boolean;\\n silent?: boolean;\\n tag?: string;\\n timestamp?: DOMTimeStamp;\\n vibrate?: VibratePattern;\\n}\\n\\ninterface OfflineAudioCompletionEventInit extends EventInit {\\n renderedBuffer: AudioBuffer;\\n}\\n\\ninterface OfflineAudioContextOptions {\\n length: number;\\n numberOfChannels?: number;\\n sampleRate: number;\\n}\\n\\ninterface OptionalEffectTiming {\\n delay?: number;\\n direction?: PlaybackDirection;\\n duration?: number | string;\\n easing?: string;\\n endDelay?: number;\\n fill?: FillMode;\\n iterationStart?: number;\\n iterations?: number;\\n playbackRate?: number;\\n}\\n\\ninterface OscillatorOptions extends AudioNodeOptions {\\n detune?: number;\\n frequency?: number;\\n periodicWave?: PeriodicWave;\\n type?: OscillatorType;\\n}\\n\\ninterface PageTransitionEventInit extends EventInit {\\n persisted?: boolean;\\n}\\n\\ninterface PannerOptions extends AudioNodeOptions {\\n coneInnerAngle?: number;\\n coneOuterAngle?: number;\\n coneOuterGain?: number;\\n distanceModel?: DistanceModelType;\\n maxDistance?: number;\\n orientationX?: number;\\n orientationY?: number;\\n orientationZ?: number;\\n panningModel?: PanningModelType;\\n positionX?: number;\\n positionY?: number;\\n positionZ?: number;\\n refDistance?: number;\\n rolloffFactor?: number;\\n}\\n\\ninterface PaymentCurrencyAmount {\\n currency: string;\\n value: string;\\n}\\n\\ninterface PaymentDetailsBase {\\n displayItems?: PaymentItem[];\\n modifiers?: PaymentDetailsModifier[];\\n}\\n\\ninterface PaymentDetailsInit extends PaymentDetailsBase {\\n id?: string;\\n total: PaymentItem;\\n}\\n\\ninterface PaymentDetailsModifier {\\n additionalDisplayItems?: PaymentItem[];\\n data?: any;\\n supportedMethods: string;\\n total?: PaymentItem;\\n}\\n\\ninterface PaymentDetailsUpdate extends PaymentDetailsBase {\\n paymentMethodErrors?: any;\\n total?: PaymentItem;\\n}\\n\\ninterface PaymentItem {\\n amount: PaymentCurrencyAmount;\\n label: string;\\n pending?: boolean;\\n}\\n\\ninterface PaymentMethodChangeEventInit extends PaymentRequestUpdateEventInit {\\n methodDetails?: any;\\n methodName?: string;\\n}\\n\\ninterface PaymentMethodData {\\n data?: any;\\n supportedMethods: string;\\n}\\n\\ninterface PaymentRequestUpdateEventInit extends EventInit {\\n}\\n\\ninterface PaymentValidationErrors {\\n error?: string;\\n paymentMethod?: any;\\n}\\n\\ninterface Pbkdf2Params extends Algorithm {\\n hash: HashAlgorithmIdentifier;\\n iterations: number;\\n salt: BufferSource;\\n}\\n\\ninterface PerformanceMarkOptions {\\n detail?: any;\\n startTime?: DOMHighResTimeStamp;\\n}\\n\\ninterface PerformanceMeasureOptions {\\n detail?: any;\\n duration?: DOMHighResTimeStamp;\\n end?: string | DOMHighResTimeStamp;\\n start?: string | DOMHighResTimeStamp;\\n}\\n\\ninterface PerformanceObserverInit {\\n buffered?: boolean;\\n entryTypes?: string[];\\n type?: string;\\n}\\n\\ninterface PeriodicWaveConstraints {\\n disableNormalization?: boolean;\\n}\\n\\ninterface PeriodicWaveOptions extends PeriodicWaveConstraints {\\n imag?: number[] | Float32Array;\\n real?: number[] | Float32Array;\\n}\\n\\ninterface PermissionDescriptor {\\n name: PermissionName;\\n}\\n\\ninterface PointerEventInit extends MouseEventInit {\\n coalescedEvents?: PointerEvent[];\\n height?: number;\\n isPrimary?: boolean;\\n pointerId?: number;\\n pointerType?: string;\\n predictedEvents?: PointerEvent[];\\n pressure?: number;\\n tangentialPressure?: number;\\n tiltX?: number;\\n tiltY?: number;\\n twist?: number;\\n width?: number;\\n}\\n\\ninterface PopStateEventInit extends EventInit {\\n state?: any;\\n}\\n\\ninterface PositionOptions {\\n enableHighAccuracy?: boolean;\\n maximumAge?: number;\\n timeout?: number;\\n}\\n\\ninterface PostMessageOptions {\\n transfer?: any[];\\n}\\n\\ninterface ProgressEventInit extends EventInit {\\n lengthComputable?: boolean;\\n loaded?: number;\\n total?: number;\\n}\\n\\ninterface PromiseRejectionEventInit extends EventInit {\\n promise: Promise;\\n reason?: any;\\n}\\n\\ninterface PropertyIndexedKeyframes {\\n composite?: CompositeOperationOrAuto | CompositeOperationOrAuto[];\\n easing?: string | string[];\\n offset?: number | (number | null)[];\\n [property: string]: string | string[] | number | null | (number | null)[] | undefined;\\n}\\n\\ninterface PublicKeyCredentialCreationOptions {\\n attestation?: AttestationConveyancePreference;\\n authenticatorSelection?: AuthenticatorSelectionCriteria;\\n challenge: BufferSource;\\n excludeCredentials?: PublicKeyCredentialDescriptor[];\\n extensions?: AuthenticationExtensionsClientInputs;\\n pubKeyCredParams: PublicKeyCredentialParameters[];\\n rp: PublicKeyCredentialRpEntity;\\n timeout?: number;\\n user: PublicKeyCredentialUserEntity;\\n}\\n\\ninterface PublicKeyCredentialDescriptor {\\n id: BufferSource;\\n transports?: AuthenticatorTransport[];\\n type: PublicKeyCredentialType;\\n}\\n\\ninterface PublicKeyCredentialEntity {\\n name: string;\\n}\\n\\ninterface PublicKeyCredentialParameters {\\n alg: COSEAlgorithmIdentifier;\\n type: PublicKeyCredentialType;\\n}\\n\\ninterface PublicKeyCredentialRequestOptions {\\n allowCredentials?: PublicKeyCredentialDescriptor[];\\n challenge: BufferSource;\\n extensions?: AuthenticationExtensionsClientInputs;\\n rpId?: string;\\n timeout?: number;\\n userVerification?: UserVerificationRequirement;\\n}\\n\\ninterface PublicKeyCredentialRpEntity extends PublicKeyCredentialEntity {\\n id?: string;\\n}\\n\\ninterface PublicKeyCredentialUserEntity extends PublicKeyCredentialEntity {\\n displayName: string;\\n id: BufferSource;\\n}\\n\\ninterface PushSubscriptionJSON {\\n endpoint?: string;\\n expirationTime?: DOMTimeStamp | null;\\n keys?: Record;\\n}\\n\\ninterface PushSubscriptionOptionsInit {\\n applicationServerKey?: BufferSource | string | null;\\n userVisibleOnly?: boolean;\\n}\\n\\ninterface QueuingStrategy {\\n highWaterMark?: number;\\n size?: QueuingStrategySize;\\n}\\n\\ninterface QueuingStrategyInit {\\n /**\\n * Creates a new ByteLengthQueuingStrategy with the provided high water mark.\\n *\\n * Note that the provided high water mark will not be validated ahead of time. Instead, if it is negative, NaN, or not a number, the resulting ByteLengthQueuingStrategy will cause the corresponding stream constructor to throw.\\n */\\n highWaterMark: number;\\n}\\n\\ninterface RTCAnswerOptions extends RTCOfferAnswerOptions {\\n}\\n\\ninterface RTCCertificateExpiration {\\n expires?: DOMTimeStamp;\\n}\\n\\ninterface RTCConfiguration {\\n bundlePolicy?: RTCBundlePolicy;\\n certificates?: RTCCertificate[];\\n iceCandidatePoolSize?: number;\\n iceServers?: RTCIceServer[];\\n iceTransportPolicy?: RTCIceTransportPolicy;\\n rtcpMuxPolicy?: RTCRtcpMuxPolicy;\\n}\\n\\ninterface RTCDTMFToneChangeEventInit extends EventInit {\\n tone?: string;\\n}\\n\\ninterface RTCDataChannelEventInit extends EventInit {\\n channel: RTCDataChannel;\\n}\\n\\ninterface RTCDataChannelInit {\\n id?: number;\\n maxPacketLifeTime?: number;\\n maxRetransmits?: number;\\n negotiated?: boolean;\\n ordered?: boolean;\\n protocol?: string;\\n}\\n\\ninterface RTCDtlsFingerprint {\\n algorithm?: string;\\n value?: string;\\n}\\n\\ninterface RTCIceCandidateInit {\\n candidate?: string;\\n sdpMLineIndex?: number | null;\\n sdpMid?: string | null;\\n usernameFragment?: string | null;\\n}\\n\\ninterface RTCIceCandidatePairStats extends RTCStats {\\n availableIncomingBitrate?: number;\\n availableOutgoingBitrate?: number;\\n bytesReceived?: number;\\n bytesSent?: number;\\n currentRoundTripTime?: number;\\n localCandidateId: string;\\n nominated?: boolean;\\n remoteCandidateId: string;\\n requestsReceived?: number;\\n requestsSent?: number;\\n responsesReceived?: number;\\n responsesSent?: number;\\n state: RTCStatsIceCandidatePairState;\\n totalRoundTripTime?: number;\\n transportId: string;\\n}\\n\\ninterface RTCIceServer {\\n credential?: string;\\n credentialType?: RTCIceCredentialType;\\n urls: string | string[];\\n username?: string;\\n}\\n\\ninterface RTCInboundRtpStreamStats extends RTCReceivedRtpStreamStats {\\n firCount?: number;\\n framesDecoded?: number;\\n nackCount?: number;\\n pliCount?: number;\\n qpSum?: number;\\n remoteId?: string;\\n}\\n\\ninterface RTCLocalSessionDescriptionInit {\\n sdp?: string;\\n type?: RTCSdpType;\\n}\\n\\ninterface RTCOfferAnswerOptions {\\n}\\n\\ninterface RTCOfferOptions extends RTCOfferAnswerOptions {\\n iceRestart?: boolean;\\n offerToReceiveAudio?: boolean;\\n offerToReceiveVideo?: boolean;\\n}\\n\\ninterface RTCOutboundRtpStreamStats extends RTCSentRtpStreamStats {\\n firCount?: number;\\n framesEncoded?: number;\\n nackCount?: number;\\n pliCount?: number;\\n qpSum?: number;\\n remoteId?: string;\\n}\\n\\ninterface RTCPeerConnectionIceErrorEventInit extends EventInit {\\n address?: string | null;\\n errorCode: number;\\n errorText?: string;\\n port?: number | null;\\n url?: string;\\n}\\n\\ninterface RTCPeerConnectionIceEventInit extends EventInit {\\n candidate?: RTCIceCandidate | null;\\n url?: string | null;\\n}\\n\\ninterface RTCReceivedRtpStreamStats extends RTCRtpStreamStats {\\n jitter?: number;\\n packetsDiscarded?: number;\\n packetsLost?: number;\\n packetsReceived?: number;\\n}\\n\\ninterface RTCRtcpParameters {\\n cname?: string;\\n reducedSize?: boolean;\\n}\\n\\ninterface RTCRtpCapabilities {\\n codecs: RTCRtpCodecCapability[];\\n headerExtensions: RTCRtpHeaderExtensionCapability[];\\n}\\n\\ninterface RTCRtpCodecCapability {\\n channels?: number;\\n clockRate: number;\\n mimeType: string;\\n sdpFmtpLine?: string;\\n}\\n\\ninterface RTCRtpCodecParameters {\\n channels?: number;\\n clockRate: number;\\n mimeType: string;\\n payloadType: number;\\n sdpFmtpLine?: string;\\n}\\n\\ninterface RTCRtpCodingParameters {\\n rid?: string;\\n}\\n\\ninterface RTCRtpContributingSource {\\n audioLevel?: number;\\n rtpTimestamp: number;\\n source: number;\\n timestamp: DOMHighResTimeStamp;\\n}\\n\\ninterface RTCRtpEncodingParameters extends RTCRtpCodingParameters {\\n active?: boolean;\\n maxBitrate?: number;\\n priority?: RTCPriorityType;\\n scaleResolutionDownBy?: number;\\n}\\n\\ninterface RTCRtpHeaderExtensionCapability {\\n uri?: string;\\n}\\n\\ninterface RTCRtpHeaderExtensionParameters {\\n encrypted?: boolean;\\n id: number;\\n uri: string;\\n}\\n\\ninterface RTCRtpParameters {\\n codecs: RTCRtpCodecParameters[];\\n headerExtensions: RTCRtpHeaderExtensionParameters[];\\n rtcp: RTCRtcpParameters;\\n}\\n\\ninterface RTCRtpReceiveParameters extends RTCRtpParameters {\\n}\\n\\ninterface RTCRtpSendParameters extends RTCRtpParameters {\\n degradationPreference?: RTCDegradationPreference;\\n encodings: RTCRtpEncodingParameters[];\\n transactionId: string;\\n}\\n\\ninterface RTCRtpStreamStats extends RTCStats {\\n codecId?: string;\\n kind: string;\\n ssrc: number;\\n transportId?: string;\\n}\\n\\ninterface RTCRtpSynchronizationSource extends RTCRtpContributingSource {\\n}\\n\\ninterface RTCRtpTransceiverInit {\\n direction?: RTCRtpTransceiverDirection;\\n sendEncodings?: RTCRtpEncodingParameters[];\\n streams?: MediaStream[];\\n}\\n\\ninterface RTCSentRtpStreamStats extends RTCRtpStreamStats {\\n bytesSent?: number;\\n packetsSent?: number;\\n}\\n\\ninterface RTCSessionDescriptionInit {\\n sdp?: string;\\n type: RTCSdpType;\\n}\\n\\ninterface RTCStats {\\n id: string;\\n timestamp: DOMHighResTimeStamp;\\n type: RTCStatsType;\\n}\\n\\ninterface RTCTrackEventInit extends EventInit {\\n receiver: RTCRtpReceiver;\\n streams?: MediaStream[];\\n track: MediaStreamTrack;\\n transceiver: RTCRtpTransceiver;\\n}\\n\\ninterface RTCTransportStats extends RTCStats {\\n bytesReceived?: number;\\n bytesSent?: number;\\n dtlsCipher?: string;\\n dtlsState: RTCDtlsTransportState;\\n localCertificateId?: string;\\n remoteCertificateId?: string;\\n rtcpTransportStatsId?: string;\\n selectedCandidatePairId?: string;\\n srtpCipher?: string;\\n tlsVersion?: string;\\n}\\n\\ninterface ReadableStreamDefaultReadDoneResult {\\n done: true;\\n value?: undefined;\\n}\\n\\ninterface ReadableStreamDefaultReadValueResult {\\n done: false;\\n value: T;\\n}\\n\\ninterface ReadableWritablePair {\\n readable: ReadableStream;\\n /**\\n * Provides a convenient, chainable way of piping this readable stream through a transform stream (or any other { writable, readable } pair). It simply pipes the stream into the writable side of the supplied pair, and returns the readable side for further use.\\n *\\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\\n */\\n writable: WritableStream;\\n}\\n\\ninterface RegistrationOptions {\\n scope?: string;\\n type?: WorkerType;\\n updateViaCache?: ServiceWorkerUpdateViaCache;\\n}\\n\\ninterface RequestInit {\\n /**\\n * A BodyInit object or null to set request's body.\\n */\\n body?: BodyInit | null;\\n /**\\n * A string indicating how the request will interact with the browser's cache to set request's cache.\\n */\\n cache?: RequestCache;\\n /**\\n * A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.\\n */\\n credentials?: RequestCredentials;\\n /**\\n * A Headers object, an object literal, or an array of two-item arrays to set request's headers.\\n */\\n headers?: HeadersInit;\\n /**\\n * A cryptographic hash of the resource to be fetched by request. Sets request's integrity.\\n */\\n integrity?: string;\\n /**\\n * A boolean to set request's keepalive.\\n */\\n keepalive?: boolean;\\n /**\\n * A string to set request's method.\\n */\\n method?: string;\\n /**\\n * A string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.\\n */\\n mode?: RequestMode;\\n /**\\n * A string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.\\n */\\n redirect?: RequestRedirect;\\n /**\\n * A string whose value is a same-origin URL, \\\"about:client\\\", or the empty string, to set request's referrer.\\n */\\n referrer?: string;\\n /**\\n * A referrer policy to set request's referrerPolicy.\\n */\\n referrerPolicy?: ReferrerPolicy;\\n /**\\n * An AbortSignal to set request's signal.\\n */\\n signal?: AbortSignal | null;\\n /**\\n * Can only be null. Used to disassociate request from any Window.\\n */\\n window?: any;\\n}\\n\\ninterface ResizeObserverOptions {\\n box?: ResizeObserverBoxOptions;\\n}\\n\\ninterface ResponseInit {\\n headers?: HeadersInit;\\n status?: number;\\n statusText?: string;\\n}\\n\\ninterface RsaHashedImportParams extends Algorithm {\\n hash: HashAlgorithmIdentifier;\\n}\\n\\ninterface RsaHashedKeyAlgorithm extends RsaKeyAlgorithm {\\n hash: KeyAlgorithm;\\n}\\n\\ninterface RsaHashedKeyGenParams extends RsaKeyGenParams {\\n hash: HashAlgorithmIdentifier;\\n}\\n\\ninterface RsaKeyAlgorithm extends KeyAlgorithm {\\n modulusLength: number;\\n publicExponent: BigInteger;\\n}\\n\\ninterface RsaKeyGenParams extends Algorithm {\\n modulusLength: number;\\n publicExponent: BigInteger;\\n}\\n\\ninterface RsaOaepParams extends Algorithm {\\n label?: BufferSource;\\n}\\n\\ninterface RsaOtherPrimesInfo {\\n d?: string;\\n r?: string;\\n t?: string;\\n}\\n\\ninterface RsaPssParams extends Algorithm {\\n saltLength: number;\\n}\\n\\ninterface SVGBoundingBoxOptions {\\n clipped?: boolean;\\n fill?: boolean;\\n markers?: boolean;\\n stroke?: boolean;\\n}\\n\\ninterface ScrollIntoViewOptions extends ScrollOptions {\\n block?: ScrollLogicalPosition;\\n inline?: ScrollLogicalPosition;\\n}\\n\\ninterface ScrollOptions {\\n behavior?: ScrollBehavior;\\n}\\n\\ninterface ScrollToOptions extends ScrollOptions {\\n left?: number;\\n top?: number;\\n}\\n\\ninterface SecurityPolicyViolationEventInit extends EventInit {\\n blockedURI?: string;\\n columnNumber?: number;\\n disposition: SecurityPolicyViolationEventDisposition;\\n documentURI: string;\\n effectiveDirective: string;\\n lineNumber?: number;\\n originalPolicy: string;\\n referrer?: string;\\n sample?: string;\\n sourceFile?: string;\\n statusCode: number;\\n violatedDirective: string;\\n}\\n\\ninterface ShadowRootInit {\\n delegatesFocus?: boolean;\\n mode: ShadowRootMode;\\n slotAssignment?: SlotAssignmentMode;\\n}\\n\\ninterface ShareData {\\n files?: File[];\\n text?: string;\\n title?: string;\\n url?: string;\\n}\\n\\ninterface SpeechSynthesisErrorEventInit extends SpeechSynthesisEventInit {\\n error: SpeechSynthesisErrorCode;\\n}\\n\\ninterface SpeechSynthesisEventInit extends EventInit {\\n charIndex?: number;\\n charLength?: number;\\n elapsedTime?: number;\\n name?: string;\\n utterance: SpeechSynthesisUtterance;\\n}\\n\\ninterface StaticRangeInit {\\n endContainer: Node;\\n endOffset: number;\\n startContainer: Node;\\n startOffset: number;\\n}\\n\\ninterface StereoPannerOptions extends AudioNodeOptions {\\n pan?: number;\\n}\\n\\ninterface StorageEstimate {\\n quota?: number;\\n usage?: number;\\n}\\n\\ninterface StorageEventInit extends EventInit {\\n key?: string | null;\\n newValue?: string | null;\\n oldValue?: string | null;\\n storageArea?: Storage | null;\\n url?: string;\\n}\\n\\ninterface StreamPipeOptions {\\n preventAbort?: boolean;\\n preventCancel?: boolean;\\n /**\\n * Pipes this readable stream to a given writable stream destination. The way in which the piping process behaves under various error conditions can be customized with a number of passed options. It returns a promise that fulfills when the piping process completes successfully, or rejects if any errors were encountered.\\n *\\n * Piping a stream will lock it for the duration of the pipe, preventing any other consumer from acquiring a reader.\\n *\\n * Errors and closures of the source and destination streams propagate as follows:\\n *\\n * An error in this source readable stream will abort destination, unless preventAbort is truthy. The returned promise will be rejected with the source's error, or with any error that occurs during aborting the destination.\\n *\\n * An error in destination will cancel this source readable stream, unless preventCancel is truthy. The returned promise will be rejected with the destination's error, or with any error that occurs during canceling the source.\\n *\\n * When this source readable stream closes, destination will be closed, unless preventClose is truthy. The returned promise will be fulfilled once this process completes, unless an error is encountered while closing the destination, in which case it will be rejected with that error.\\n *\\n * If destination starts out closed or closing, this source readable stream will be canceled, unless preventCancel is true. The returned promise will be rejected with an error indicating piping to a closed stream failed, or with any error that occurs during canceling the source.\\n *\\n * The signal option can be set to an AbortSignal to allow aborting an ongoing pipe operation via the corresponding AbortController. In this case, this source readable stream will be canceled, and destination aborted, unless the respective options preventCancel or preventAbort are set.\\n */\\n preventClose?: boolean;\\n signal?: AbortSignal;\\n}\\n\\ninterface SubmitEventInit extends EventInit {\\n submitter?: HTMLElement | null;\\n}\\n\\ninterface TextDecodeOptions {\\n stream?: boolean;\\n}\\n\\ninterface TextDecoderOptions {\\n fatal?: boolean;\\n ignoreBOM?: boolean;\\n}\\n\\ninterface TextEncoderEncodeIntoResult {\\n read?: number;\\n written?: number;\\n}\\n\\ninterface TouchEventInit extends EventModifierInit {\\n changedTouches?: Touch[];\\n targetTouches?: Touch[];\\n touches?: Touch[];\\n}\\n\\ninterface TouchInit {\\n altitudeAngle?: number;\\n azimuthAngle?: number;\\n clientX?: number;\\n clientY?: number;\\n force?: number;\\n identifier: number;\\n pageX?: number;\\n pageY?: number;\\n radiusX?: number;\\n radiusY?: number;\\n rotationAngle?: number;\\n screenX?: number;\\n screenY?: number;\\n target: EventTarget;\\n touchType?: TouchType;\\n}\\n\\ninterface TrackEventInit extends EventInit {\\n track?: TextTrack | null;\\n}\\n\\ninterface Transformer {\\n flush?: TransformerFlushCallback;\\n readableType?: undefined;\\n start?: TransformerStartCallback;\\n transform?: TransformerTransformCallback;\\n writableType?: undefined;\\n}\\n\\ninterface TransitionEventInit extends EventInit {\\n elapsedTime?: number;\\n propertyName?: string;\\n pseudoElement?: string;\\n}\\n\\ninterface UIEventInit extends EventInit {\\n detail?: number;\\n view?: Window | null;\\n /** @deprecated */\\n which?: number;\\n}\\n\\ninterface ULongRange {\\n max?: number;\\n min?: number;\\n}\\n\\ninterface UnderlyingSink {\\n abort?: UnderlyingSinkAbortCallback;\\n close?: UnderlyingSinkCloseCallback;\\n start?: UnderlyingSinkStartCallback;\\n type?: undefined;\\n write?: UnderlyingSinkWriteCallback;\\n}\\n\\ninterface UnderlyingSource {\\n cancel?: UnderlyingSourceCancelCallback;\\n pull?: UnderlyingSourcePullCallback;\\n start?: UnderlyingSourceStartCallback;\\n type?: undefined;\\n}\\n\\ninterface VideoConfiguration {\\n bitrate: number;\\n colorGamut?: ColorGamut;\\n contentType: string;\\n framerate: number;\\n hdrMetadataType?: HdrMetadataType;\\n height: number;\\n scalabilityMode?: string;\\n transferFunction?: TransferFunction;\\n width: number;\\n}\\n\\ninterface WaveShaperOptions extends AudioNodeOptions {\\n curve?: number[] | Float32Array;\\n oversample?: OverSampleType;\\n}\\n\\ninterface WebGLContextAttributes {\\n alpha?: boolean;\\n antialias?: boolean;\\n depth?: boolean;\\n desynchronized?: boolean;\\n failIfMajorPerformanceCaveat?: boolean;\\n powerPreference?: WebGLPowerPreference;\\n premultipliedAlpha?: boolean;\\n preserveDrawingBuffer?: boolean;\\n stencil?: boolean;\\n}\\n\\ninterface WebGLContextEventInit extends EventInit {\\n statusMessage?: string;\\n}\\n\\ninterface WheelEventInit extends MouseEventInit {\\n deltaMode?: number;\\n deltaX?: number;\\n deltaY?: number;\\n deltaZ?: number;\\n}\\n\\ninterface WindowPostMessageOptions extends PostMessageOptions {\\n targetOrigin?: string;\\n}\\n\\ninterface WorkerOptions {\\n credentials?: RequestCredentials;\\n name?: string;\\n type?: WorkerType;\\n}\\n\\ninterface WorkletOptions {\\n credentials?: RequestCredentials;\\n}\\n\\ntype NodeFilter = ((node: Node) => number) | { acceptNode(node: Node): number; };\\n\\ndeclare var NodeFilter: {\\n readonly FILTER_ACCEPT: number;\\n readonly FILTER_REJECT: number;\\n readonly FILTER_SKIP: number;\\n readonly SHOW_ALL: number;\\n readonly SHOW_ATTRIBUTE: number;\\n readonly SHOW_CDATA_SECTION: number;\\n readonly SHOW_COMMENT: number;\\n readonly SHOW_DOCUMENT: number;\\n readonly SHOW_DOCUMENT_FRAGMENT: number;\\n readonly SHOW_DOCUMENT_TYPE: number;\\n readonly SHOW_ELEMENT: number;\\n readonly SHOW_ENTITY: number;\\n readonly SHOW_ENTITY_REFERENCE: number;\\n readonly SHOW_NOTATION: number;\\n readonly SHOW_PROCESSING_INSTRUCTION: number;\\n readonly SHOW_TEXT: number;\\n};\\n\\ntype XPathNSResolver = ((prefix: string | null) => string | null) | { lookupNamespaceURI(prefix: string | null): string | null; };\\n\\n/** The ANGLE_instanced_arrays extension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type. */\\ninterface ANGLE_instanced_arrays {\\n drawArraysInstancedANGLE(mode: GLenum, first: GLint, count: GLsizei, primcount: GLsizei): void;\\n drawElementsInstancedANGLE(mode: GLenum, count: GLsizei, type: GLenum, offset: GLintptr, primcount: GLsizei): void;\\n vertexAttribDivisorANGLE(index: GLuint, divisor: GLuint): void;\\n readonly VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: GLenum;\\n}\\n\\ninterface ARIAMixin {\\n ariaAtomic: string;\\n ariaAutoComplete: string;\\n ariaBusy: string;\\n ariaChecked: string;\\n ariaColCount: string;\\n ariaColIndex: string;\\n ariaColSpan: string;\\n ariaCurrent: string;\\n ariaDisabled: string;\\n ariaExpanded: string;\\n ariaHasPopup: string;\\n ariaHidden: string;\\n ariaKeyShortcuts: string;\\n ariaLabel: string;\\n ariaLevel: string;\\n ariaLive: string;\\n ariaModal: string;\\n ariaMultiLine: string;\\n ariaMultiSelectable: string;\\n ariaOrientation: string;\\n ariaPlaceholder: string;\\n ariaPosInSet: string;\\n ariaPressed: string;\\n ariaReadOnly: string;\\n ariaRequired: string;\\n ariaRoleDescription: string;\\n ariaRowCount: string;\\n ariaRowIndex: string;\\n ariaRowSpan: string;\\n ariaSelected: string;\\n ariaSetSize: string;\\n ariaSort: string;\\n ariaValueMax: string;\\n ariaValueMin: string;\\n ariaValueNow: string;\\n ariaValueText: string;\\n}\\n\\n/** A controller object that allows you to abort one or more DOM requests as and when desired. */\\ninterface AbortController {\\n /**\\n * Returns the AbortSignal object associated with this object.\\n */\\n readonly signal: AbortSignal;\\n /**\\n * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.\\n */\\n abort(): void;\\n}\\n\\ndeclare var AbortController: {\\n prototype: AbortController;\\n new(): AbortController;\\n};\\n\\ninterface AbortSignalEventMap {\\n \\\"abort\\\": Event;\\n}\\n\\n/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */\\ninterface AbortSignal extends EventTarget {\\n /**\\n * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.\\n */\\n readonly aborted: boolean;\\n onabort: ((this: AbortSignal, ev: Event) => any) | null;\\n addEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var AbortSignal: {\\n prototype: AbortSignal;\\n new(): AbortSignal;\\n};\\n\\ninterface AbstractRange {\\n /**\\n * Returns true if range is collapsed, and false otherwise.\\n */\\n readonly collapsed: boolean;\\n /**\\n * Returns range's end node.\\n */\\n readonly endContainer: Node;\\n /**\\n * Returns range's end offset.\\n */\\n readonly endOffset: number;\\n /**\\n * Returns range's start node.\\n */\\n readonly startContainer: Node;\\n /**\\n * Returns range's start offset.\\n */\\n readonly startOffset: number;\\n}\\n\\ndeclare var AbstractRange: {\\n prototype: AbstractRange;\\n new(): AbstractRange;\\n};\\n\\ninterface AbstractWorkerEventMap {\\n \\\"error\\\": ErrorEvent;\\n}\\n\\ninterface AbstractWorker {\\n onerror: ((this: AbstractWorker, ev: ErrorEvent) => any) | null;\\n addEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: AbstractWorker, ev: AbstractWorkerEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\n/** A node able to provide real-time frequency and time-domain analysis information. It is an AudioNode that passes the audio stream unchanged from the input to the output, but allows you to take the generated data, process it, and create audio visualizations. */\\ninterface AnalyserNode extends AudioNode {\\n fftSize: number;\\n readonly frequencyBinCount: number;\\n maxDecibels: number;\\n minDecibels: number;\\n smoothingTimeConstant: number;\\n getByteFrequencyData(array: Uint8Array): void;\\n getByteTimeDomainData(array: Uint8Array): void;\\n getFloatFrequencyData(array: Float32Array): void;\\n getFloatTimeDomainData(array: Float32Array): void;\\n}\\n\\ndeclare var AnalyserNode: {\\n prototype: AnalyserNode;\\n new(context: BaseAudioContext, options?: AnalyserOptions): AnalyserNode;\\n};\\n\\ninterface Animatable {\\n animate(keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions): Animation;\\n getAnimations(options?: GetAnimationsOptions): Animation[];\\n}\\n\\ninterface AnimationEventMap {\\n \\\"cancel\\\": AnimationPlaybackEvent;\\n \\\"finish\\\": AnimationPlaybackEvent;\\n \\\"remove\\\": Event;\\n}\\n\\ninterface Animation extends EventTarget {\\n currentTime: number | null;\\n effect: AnimationEffect | null;\\n readonly finished: Promise;\\n id: string;\\n oncancel: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\\n onfinish: ((this: Animation, ev: AnimationPlaybackEvent) => any) | null;\\n onremove: ((this: Animation, ev: Event) => any) | null;\\n readonly pending: boolean;\\n readonly playState: AnimationPlayState;\\n playbackRate: number;\\n readonly ready: Promise;\\n readonly replaceState: AnimationReplaceState;\\n startTime: number | null;\\n timeline: AnimationTimeline | null;\\n cancel(): void;\\n commitStyles(): void;\\n finish(): void;\\n pause(): void;\\n persist(): void;\\n play(): void;\\n reverse(): void;\\n updatePlaybackRate(playbackRate: number): void;\\n addEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: Animation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var Animation: {\\n prototype: Animation;\\n new(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null): Animation;\\n};\\n\\ninterface AnimationEffect {\\n getComputedTiming(): ComputedEffectTiming;\\n getTiming(): EffectTiming;\\n updateTiming(timing?: OptionalEffectTiming): void;\\n}\\n\\ndeclare var AnimationEffect: {\\n prototype: AnimationEffect;\\n new(): AnimationEffect;\\n};\\n\\n/** Events providing information related to animations. */\\ninterface AnimationEvent extends Event {\\n readonly animationName: string;\\n readonly elapsedTime: number;\\n readonly pseudoElement: string;\\n}\\n\\ndeclare var AnimationEvent: {\\n prototype: AnimationEvent;\\n new(type: string, animationEventInitDict?: AnimationEventInit): AnimationEvent;\\n};\\n\\ninterface AnimationFrameProvider {\\n cancelAnimationFrame(handle: number): void;\\n requestAnimationFrame(callback: FrameRequestCallback): number;\\n}\\n\\ninterface AnimationPlaybackEvent extends Event {\\n readonly currentTime: number | null;\\n readonly timelineTime: number | null;\\n}\\n\\ndeclare var AnimationPlaybackEvent: {\\n prototype: AnimationPlaybackEvent;\\n new(type: string, eventInitDict?: AnimationPlaybackEventInit): AnimationPlaybackEvent;\\n};\\n\\ninterface AnimationTimeline {\\n readonly currentTime: number | null;\\n}\\n\\ndeclare var AnimationTimeline: {\\n prototype: AnimationTimeline;\\n new(): AnimationTimeline;\\n};\\n\\n/** A DOM element's attribute as an object. In most DOM methods, you will probably directly retrieve the attribute as a string (e.g., Element.getAttribute(), but certain functions (e.g., Element.getAttributeNode()) or means of iterating give Attr types. */\\ninterface Attr extends Node {\\n readonly localName: string;\\n readonly name: string;\\n readonly namespaceURI: string | null;\\n readonly ownerDocument: Document;\\n readonly ownerElement: Element | null;\\n readonly prefix: string | null;\\n readonly specified: boolean;\\n value: string;\\n}\\n\\ndeclare var Attr: {\\n prototype: Attr;\\n new(): Attr;\\n};\\n\\n/** A short audio asset residing in memory, created from an audio file using the AudioContext.decodeAudioData() method, or from raw data using AudioContext.createBuffer(). Once put into an AudioBuffer, the audio can then be played by being passed into an AudioBufferSourceNode. */\\ninterface AudioBuffer {\\n readonly duration: number;\\n readonly length: number;\\n readonly numberOfChannels: number;\\n readonly sampleRate: number;\\n copyFromChannel(destination: Float32Array, channelNumber: number, bufferOffset?: number): void;\\n copyToChannel(source: Float32Array, channelNumber: number, bufferOffset?: number): void;\\n getChannelData(channel: number): Float32Array;\\n}\\n\\ndeclare var AudioBuffer: {\\n prototype: AudioBuffer;\\n new(options: AudioBufferOptions): AudioBuffer;\\n};\\n\\n/** An AudioScheduledSourceNode which represents an audio source consisting of in-memory audio data, stored in an AudioBuffer. It's especially useful for playing back audio which has particularly stringent timing accuracy requirements, such as for sounds that must match a specific rhythm and can be kept in memory rather than being played from disk or the network. */\\ninterface AudioBufferSourceNode extends AudioScheduledSourceNode {\\n buffer: AudioBuffer | null;\\n readonly detune: AudioParam;\\n loop: boolean;\\n loopEnd: number;\\n loopStart: number;\\n readonly playbackRate: AudioParam;\\n start(when?: number, offset?: number, duration?: number): void;\\n addEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: AudioBufferSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var AudioBufferSourceNode: {\\n prototype: AudioBufferSourceNode;\\n new(context: BaseAudioContext, options?: AudioBufferSourceOptions): AudioBufferSourceNode;\\n};\\n\\n/** An audio-processing graph built from audio modules linked together, each represented by an AudioNode. */\\ninterface AudioContext extends BaseAudioContext {\\n readonly baseLatency: number;\\n close(): Promise;\\n createMediaElementSource(mediaElement: HTMLMediaElement): MediaElementAudioSourceNode;\\n createMediaStreamDestination(): MediaStreamAudioDestinationNode;\\n createMediaStreamSource(mediaStream: MediaStream): MediaStreamAudioSourceNode;\\n getOutputTimestamp(): AudioTimestamp;\\n resume(): Promise;\\n suspend(): Promise;\\n addEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: AudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var AudioContext: {\\n prototype: AudioContext;\\n new(contextOptions?: AudioContextOptions): AudioContext;\\n};\\n\\n/** AudioDestinationNode has no output (as it is the output, no more AudioNode can be linked after it in the audio graph) and one input. The number of channels in the input must be between 0 and the maxChannelCount value or an exception is raised. */\\ninterface AudioDestinationNode extends AudioNode {\\n readonly maxChannelCount: number;\\n}\\n\\ndeclare var AudioDestinationNode: {\\n prototype: AudioDestinationNode;\\n new(): AudioDestinationNode;\\n};\\n\\n/** The position and orientation of the unique person listening to the audio scene, and is used in audio spatialization. All PannerNodes spatialize in relation to the AudioListener stored in the BaseAudioContext.listener attribute. */\\ninterface AudioListener {\\n readonly forwardX: AudioParam;\\n readonly forwardY: AudioParam;\\n readonly forwardZ: AudioParam;\\n readonly positionX: AudioParam;\\n readonly positionY: AudioParam;\\n readonly positionZ: AudioParam;\\n readonly upX: AudioParam;\\n readonly upY: AudioParam;\\n readonly upZ: AudioParam;\\n /** @deprecated */\\n setOrientation(x: number, y: number, z: number, xUp: number, yUp: number, zUp: number): void;\\n /** @deprecated */\\n setPosition(x: number, y: number, z: number): void;\\n}\\n\\ndeclare var AudioListener: {\\n prototype: AudioListener;\\n new(): AudioListener;\\n};\\n\\n/** A generic interface for representing an audio processing module. Examples include: */\\ninterface AudioNode extends EventTarget {\\n channelCount: number;\\n channelCountMode: ChannelCountMode;\\n channelInterpretation: ChannelInterpretation;\\n readonly context: BaseAudioContext;\\n readonly numberOfInputs: number;\\n readonly numberOfOutputs: number;\\n connect(destinationNode: AudioNode, output?: number, input?: number): AudioNode;\\n connect(destinationParam: AudioParam, output?: number): void;\\n disconnect(): void;\\n disconnect(output: number): void;\\n disconnect(destinationNode: AudioNode): void;\\n disconnect(destinationNode: AudioNode, output: number): void;\\n disconnect(destinationNode: AudioNode, output: number, input: number): void;\\n disconnect(destinationParam: AudioParam): void;\\n disconnect(destinationParam: AudioParam, output: number): void;\\n}\\n\\ndeclare var AudioNode: {\\n prototype: AudioNode;\\n new(): AudioNode;\\n};\\n\\n/** The Web Audio API's AudioParam interface represents an audio-related parameter, usually a parameter of an AudioNode (such as GainNode.gain). */\\ninterface AudioParam {\\n automationRate: AutomationRate;\\n readonly defaultValue: number;\\n readonly maxValue: number;\\n readonly minValue: number;\\n value: number;\\n cancelAndHoldAtTime(cancelTime: number): AudioParam;\\n cancelScheduledValues(cancelTime: number): AudioParam;\\n exponentialRampToValueAtTime(value: number, endTime: number): AudioParam;\\n linearRampToValueAtTime(value: number, endTime: number): AudioParam;\\n setTargetAtTime(target: number, startTime: number, timeConstant: number): AudioParam;\\n setValueAtTime(value: number, startTime: number): AudioParam;\\n setValueCurveAtTime(values: number[] | Float32Array, startTime: number, duration: number): AudioParam;\\n}\\n\\ndeclare var AudioParam: {\\n prototype: AudioParam;\\n new(): AudioParam;\\n};\\n\\ninterface AudioParamMap {\\n forEach(callbackfn: (value: AudioParam, key: string, parent: AudioParamMap) => void, thisArg?: any): void;\\n}\\n\\ndeclare var AudioParamMap: {\\n prototype: AudioParamMap;\\n new(): AudioParamMap;\\n};\\n\\n/**\\n * The Web Audio API events that occur when a ScriptProcessorNode input buffer is ready to be processed.\\n * @deprecated As of the August 29 2014 Web Audio API spec publication, this feature has been marked as deprecated, and is soon to be replaced by AudioWorklet.\\n */\\ninterface AudioProcessingEvent extends Event {\\n /** @deprecated */\\n readonly inputBuffer: AudioBuffer;\\n /** @deprecated */\\n readonly outputBuffer: AudioBuffer;\\n /** @deprecated */\\n readonly playbackTime: number;\\n}\\n\\n/** @deprecated */\\ndeclare var AudioProcessingEvent: {\\n prototype: AudioProcessingEvent;\\n new(type: string, eventInitDict: AudioProcessingEventInit): AudioProcessingEvent;\\n};\\n\\ninterface AudioScheduledSourceNodeEventMap {\\n \\\"ended\\\": Event;\\n}\\n\\ninterface AudioScheduledSourceNode extends AudioNode {\\n onended: ((this: AudioScheduledSourceNode, ev: Event) => any) | null;\\n start(when?: number): void;\\n stop(when?: number): void;\\n addEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: AudioScheduledSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var AudioScheduledSourceNode: {\\n prototype: AudioScheduledSourceNode;\\n new(): AudioScheduledSourceNode;\\n};\\n\\ninterface AudioWorklet extends Worklet {\\n}\\n\\ndeclare var AudioWorklet: {\\n prototype: AudioWorklet;\\n new(): AudioWorklet;\\n};\\n\\ninterface AudioWorkletNodeEventMap {\\n \\\"processorerror\\\": Event;\\n}\\n\\ninterface AudioWorkletNode extends AudioNode {\\n onprocessorerror: ((this: AudioWorkletNode, ev: Event) => any) | null;\\n readonly parameters: AudioParamMap;\\n readonly port: MessagePort;\\n addEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: AudioWorkletNode, ev: AudioWorkletNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var AudioWorkletNode: {\\n prototype: AudioWorkletNode;\\n new(context: BaseAudioContext, name: string, options?: AudioWorkletNodeOptions): AudioWorkletNode;\\n};\\n\\ninterface AuthenticatorAssertionResponse extends AuthenticatorResponse {\\n readonly authenticatorData: ArrayBuffer;\\n readonly signature: ArrayBuffer;\\n readonly userHandle: ArrayBuffer | null;\\n}\\n\\ndeclare var AuthenticatorAssertionResponse: {\\n prototype: AuthenticatorAssertionResponse;\\n new(): AuthenticatorAssertionResponse;\\n};\\n\\ninterface AuthenticatorAttestationResponse extends AuthenticatorResponse {\\n readonly attestationObject: ArrayBuffer;\\n}\\n\\ndeclare var AuthenticatorAttestationResponse: {\\n prototype: AuthenticatorAttestationResponse;\\n new(): AuthenticatorAttestationResponse;\\n};\\n\\ninterface AuthenticatorResponse {\\n readonly clientDataJSON: ArrayBuffer;\\n}\\n\\ndeclare var AuthenticatorResponse: {\\n prototype: AuthenticatorResponse;\\n new(): AuthenticatorResponse;\\n};\\n\\ninterface BarProp {\\n readonly visible: boolean;\\n}\\n\\ndeclare var BarProp: {\\n prototype: BarProp;\\n new(): BarProp;\\n};\\n\\ninterface BaseAudioContextEventMap {\\n \\\"statechange\\\": Event;\\n}\\n\\ninterface BaseAudioContext extends EventTarget {\\n readonly audioWorklet: AudioWorklet;\\n readonly currentTime: number;\\n readonly destination: AudioDestinationNode;\\n readonly listener: AudioListener;\\n onstatechange: ((this: BaseAudioContext, ev: Event) => any) | null;\\n readonly sampleRate: number;\\n readonly state: AudioContextState;\\n createAnalyser(): AnalyserNode;\\n createBiquadFilter(): BiquadFilterNode;\\n createBuffer(numberOfChannels: number, length: number, sampleRate: number): AudioBuffer;\\n createBufferSource(): AudioBufferSourceNode;\\n createChannelMerger(numberOfInputs?: number): ChannelMergerNode;\\n createChannelSplitter(numberOfOutputs?: number): ChannelSplitterNode;\\n createConstantSource(): ConstantSourceNode;\\n createConvolver(): ConvolverNode;\\n createDelay(maxDelayTime?: number): DelayNode;\\n createDynamicsCompressor(): DynamicsCompressorNode;\\n createGain(): GainNode;\\n createIIRFilter(feedforward: number[], feedback: number[]): IIRFilterNode;\\n createOscillator(): OscillatorNode;\\n createPanner(): PannerNode;\\n createPeriodicWave(real: number[] | Float32Array, imag: number[] | Float32Array, constraints?: PeriodicWaveConstraints): PeriodicWave;\\n /** @deprecated */\\n createScriptProcessor(bufferSize?: number, numberOfInputChannels?: number, numberOfOutputChannels?: number): ScriptProcessorNode;\\n createStereoPanner(): StereoPannerNode;\\n createWaveShaper(): WaveShaperNode;\\n decodeAudioData(audioData: ArrayBuffer, successCallback?: DecodeSuccessCallback | null, errorCallback?: DecodeErrorCallback | null): Promise;\\n addEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: BaseAudioContext, ev: BaseAudioContextEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var BaseAudioContext: {\\n prototype: BaseAudioContext;\\n new(): BaseAudioContext;\\n};\\n\\n/** The beforeunload event is fired when the window, the document and its resources are about to be unloaded. */\\ninterface BeforeUnloadEvent extends Event {\\n returnValue: any;\\n}\\n\\ndeclare var BeforeUnloadEvent: {\\n prototype: BeforeUnloadEvent;\\n new(): BeforeUnloadEvent;\\n};\\n\\n/** A simple low-order filter, and is created using the AudioContext.createBiquadFilter() method. It is an AudioNode that can represent different kinds of filters, tone control devices, and graphic equalizers. */\\ninterface BiquadFilterNode extends AudioNode {\\n readonly Q: AudioParam;\\n readonly detune: AudioParam;\\n readonly frequency: AudioParam;\\n readonly gain: AudioParam;\\n type: BiquadFilterType;\\n getFrequencyResponse(frequencyHz: Float32Array, magResponse: Float32Array, phaseResponse: Float32Array): void;\\n}\\n\\ndeclare var BiquadFilterNode: {\\n prototype: BiquadFilterNode;\\n new(context: BaseAudioContext, options?: BiquadFilterOptions): BiquadFilterNode;\\n};\\n\\n/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */\\ninterface Blob {\\n readonly size: number;\\n readonly type: string;\\n arrayBuffer(): Promise;\\n slice(start?: number, end?: number, contentType?: string): Blob;\\n stream(): ReadableStream;\\n text(): Promise;\\n}\\n\\ndeclare var Blob: {\\n prototype: Blob;\\n new(blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;\\n};\\n\\ninterface BlobEvent extends Event {\\n readonly data: Blob;\\n readonly timecode: DOMHighResTimeStamp;\\n}\\n\\ndeclare var BlobEvent: {\\n prototype: BlobEvent;\\n new(type: string, eventInitDict: BlobEventInit): BlobEvent;\\n};\\n\\ninterface Body {\\n readonly body: ReadableStream | null;\\n readonly bodyUsed: boolean;\\n arrayBuffer(): Promise;\\n blob(): Promise;\\n formData(): Promise;\\n json(): Promise;\\n text(): Promise;\\n}\\n\\ninterface BroadcastChannelEventMap {\\n \\\"message\\\": MessageEvent;\\n \\\"messageerror\\\": MessageEvent;\\n}\\n\\ninterface BroadcastChannel extends EventTarget {\\n /**\\n * Returns the channel name (as passed to the constructor).\\n */\\n readonly name: string;\\n onmessage: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\\n onmessageerror: ((this: BroadcastChannel, ev: MessageEvent) => any) | null;\\n /**\\n * Closes the BroadcastChannel object, opening it up to garbage collection.\\n */\\n close(): void;\\n /**\\n * Sends the given message to other BroadcastChannel objects set up for this channel. Messages can be structured objects, e.g. nested objects and arrays.\\n */\\n postMessage(message: any): void;\\n addEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: BroadcastChannel, ev: BroadcastChannelEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var BroadcastChannel: {\\n prototype: BroadcastChannel;\\n new(name: string): BroadcastChannel;\\n};\\n\\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\\ninterface ByteLengthQueuingStrategy extends QueuingStrategy {\\n readonly highWaterMark: number;\\n readonly size: QueuingStrategySize;\\n}\\n\\ndeclare var ByteLengthQueuingStrategy: {\\n prototype: ByteLengthQueuingStrategy;\\n new(init: QueuingStrategyInit): ByteLengthQueuingStrategy;\\n};\\n\\n/** A CDATA section that can be used within XML to include extended portions of unescaped text. The symbols < and & don’t need escaping as they normally do when inside a CDATA section. */\\ninterface CDATASection extends Text {\\n}\\n\\ndeclare var CDATASection: {\\n prototype: CDATASection;\\n new(): CDATASection;\\n};\\n\\ninterface CSSAnimation extends Animation {\\n readonly animationName: string;\\n addEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var CSSAnimation: {\\n prototype: CSSAnimation;\\n new(): CSSAnimation;\\n};\\n\\n/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */\\ninterface CSSConditionRule extends CSSGroupingRule {\\n conditionText: string;\\n}\\n\\ndeclare var CSSConditionRule: {\\n prototype: CSSConditionRule;\\n new(): CSSConditionRule;\\n};\\n\\ninterface CSSCounterStyleRule extends CSSRule {\\n additiveSymbols: string;\\n fallback: string;\\n name: string;\\n negative: string;\\n pad: string;\\n prefix: string;\\n range: string;\\n speakAs: string;\\n suffix: string;\\n symbols: string;\\n system: string;\\n}\\n\\ndeclare var CSSCounterStyleRule: {\\n prototype: CSSCounterStyleRule;\\n new(): CSSCounterStyleRule;\\n};\\n\\ninterface CSSFontFaceRule extends CSSRule {\\n readonly style: CSSStyleDeclaration;\\n}\\n\\ndeclare var CSSFontFaceRule: {\\n prototype: CSSFontFaceRule;\\n new(): CSSFontFaceRule;\\n};\\n\\n/** Any CSS at-rule that contains other rules nested within it. */\\ninterface CSSGroupingRule extends CSSRule {\\n readonly cssRules: CSSRuleList;\\n deleteRule(index: number): void;\\n insertRule(rule: string, index?: number): number;\\n}\\n\\ndeclare var CSSGroupingRule: {\\n prototype: CSSGroupingRule;\\n new(): CSSGroupingRule;\\n};\\n\\ninterface CSSImportRule extends CSSRule {\\n readonly href: string;\\n readonly media: MediaList;\\n readonly styleSheet: CSSStyleSheet;\\n}\\n\\ndeclare var CSSImportRule: {\\n prototype: CSSImportRule;\\n new(): CSSImportRule;\\n};\\n\\n/** An object representing a set of style for a given keyframe. It corresponds to the contains of a single keyframe of a @keyframes at-rule. It implements the CSSRule interface with a type value of 8 (CSSRule.KEYFRAME_RULE). */\\ninterface CSSKeyframeRule extends CSSRule {\\n keyText: string;\\n readonly style: CSSStyleDeclaration;\\n}\\n\\ndeclare var CSSKeyframeRule: {\\n prototype: CSSKeyframeRule;\\n new(): CSSKeyframeRule;\\n};\\n\\n/** An object representing a complete set of keyframes for a CSS animation. It corresponds to the contains of a whole @keyframes at-rule. It implements the CSSRule interface with a type value of 7 (CSSRule.KEYFRAMES_RULE). */\\ninterface CSSKeyframesRule extends CSSRule {\\n readonly cssRules: CSSRuleList;\\n name: string;\\n appendRule(rule: string): void;\\n deleteRule(select: string): void;\\n findRule(select: string): CSSKeyframeRule | null;\\n}\\n\\ndeclare var CSSKeyframesRule: {\\n prototype: CSSKeyframesRule;\\n new(): CSSKeyframesRule;\\n};\\n\\n/** A single CSS @media rule. It implements the CSSConditionRule interface, and therefore the CSSGroupingRule and the CSSRule interface with a type value of 4 (CSSRule.MEDIA_RULE). */\\ninterface CSSMediaRule extends CSSConditionRule {\\n readonly media: MediaList;\\n}\\n\\ndeclare var CSSMediaRule: {\\n prototype: CSSMediaRule;\\n new(): CSSMediaRule;\\n};\\n\\n/** An object representing a single CSS @namespace at-rule. It implements the CSSRule interface, with a type value of 10 (CSSRule.NAMESPACE_RULE). */\\ninterface CSSNamespaceRule extends CSSRule {\\n readonly namespaceURI: string;\\n readonly prefix: string;\\n}\\n\\ndeclare var CSSNamespaceRule: {\\n prototype: CSSNamespaceRule;\\n new(): CSSNamespaceRule;\\n};\\n\\n/** CSSPageRule is an interface representing a single CSS @page rule. It implements the CSSRule interface with a type value of 6 (CSSRule.PAGE_RULE). */\\ninterface CSSPageRule extends CSSGroupingRule {\\n selectorText: string;\\n readonly style: CSSStyleDeclaration;\\n}\\n\\ndeclare var CSSPageRule: {\\n prototype: CSSPageRule;\\n new(): CSSPageRule;\\n};\\n\\n/** A single CSS rule. There are several types of rules, listed in the Type constants section below. */\\ninterface CSSRule {\\n cssText: string;\\n readonly parentRule: CSSRule | null;\\n readonly parentStyleSheet: CSSStyleSheet | null;\\n /** @deprecated */\\n readonly type: number;\\n readonly CHARSET_RULE: number;\\n readonly FONT_FACE_RULE: number;\\n readonly IMPORT_RULE: number;\\n readonly KEYFRAMES_RULE: number;\\n readonly KEYFRAME_RULE: number;\\n readonly MEDIA_RULE: number;\\n readonly NAMESPACE_RULE: number;\\n readonly PAGE_RULE: number;\\n readonly STYLE_RULE: number;\\n readonly SUPPORTS_RULE: number;\\n}\\n\\ndeclare var CSSRule: {\\n prototype: CSSRule;\\n new(): CSSRule;\\n readonly CHARSET_RULE: number;\\n readonly FONT_FACE_RULE: number;\\n readonly IMPORT_RULE: number;\\n readonly KEYFRAMES_RULE: number;\\n readonly KEYFRAME_RULE: number;\\n readonly MEDIA_RULE: number;\\n readonly NAMESPACE_RULE: number;\\n readonly PAGE_RULE: number;\\n readonly STYLE_RULE: number;\\n readonly SUPPORTS_RULE: number;\\n};\\n\\n/** A CSSRuleList is an (indirect-modify only) array-like object containing an ordered collection of CSSRule objects. */\\ninterface CSSRuleList {\\n readonly length: number;\\n item(index: number): CSSRule | null;\\n [index: number]: CSSRule;\\n}\\n\\ndeclare var CSSRuleList: {\\n prototype: CSSRuleList;\\n new(): CSSRuleList;\\n};\\n\\n/** An object that is a CSS declaration block, and exposes style information and various style-related methods and properties. */\\ninterface CSSStyleDeclaration {\\n alignContent: string;\\n alignItems: string;\\n alignSelf: string;\\n alignmentBaseline: string;\\n all: string;\\n animation: string;\\n animationDelay: string;\\n animationDirection: string;\\n animationDuration: string;\\n animationFillMode: string;\\n animationIterationCount: string;\\n animationName: string;\\n animationPlayState: string;\\n animationTimingFunction: string;\\n appearance: string;\\n aspectRatio: string;\\n backfaceVisibility: string;\\n background: string;\\n backgroundAttachment: string;\\n backgroundBlendMode: string;\\n backgroundClip: string;\\n backgroundColor: string;\\n backgroundImage: string;\\n backgroundOrigin: string;\\n backgroundPosition: string;\\n backgroundPositionX: string;\\n backgroundPositionY: string;\\n backgroundRepeat: string;\\n backgroundSize: string;\\n baselineShift: string;\\n blockSize: string;\\n border: string;\\n borderBlock: string;\\n borderBlockColor: string;\\n borderBlockEnd: string;\\n borderBlockEndColor: string;\\n borderBlockEndStyle: string;\\n borderBlockEndWidth: string;\\n borderBlockStart: string;\\n borderBlockStartColor: string;\\n borderBlockStartStyle: string;\\n borderBlockStartWidth: string;\\n borderBlockStyle: string;\\n borderBlockWidth: string;\\n borderBottom: string;\\n borderBottomColor: string;\\n borderBottomLeftRadius: string;\\n borderBottomRightRadius: string;\\n borderBottomStyle: string;\\n borderBottomWidth: string;\\n borderCollapse: string;\\n borderColor: string;\\n borderEndEndRadius: string;\\n borderEndStartRadius: string;\\n borderImage: string;\\n borderImageOutset: string;\\n borderImageRepeat: string;\\n borderImageSlice: string;\\n borderImageSource: string;\\n borderImageWidth: string;\\n borderInline: string;\\n borderInlineColor: string;\\n borderInlineEnd: string;\\n borderInlineEndColor: string;\\n borderInlineEndStyle: string;\\n borderInlineEndWidth: string;\\n borderInlineStart: string;\\n borderInlineStartColor: string;\\n borderInlineStartStyle: string;\\n borderInlineStartWidth: string;\\n borderInlineStyle: string;\\n borderInlineWidth: string;\\n borderLeft: string;\\n borderLeftColor: string;\\n borderLeftStyle: string;\\n borderLeftWidth: string;\\n borderRadius: string;\\n borderRight: string;\\n borderRightColor: string;\\n borderRightStyle: string;\\n borderRightWidth: string;\\n borderSpacing: string;\\n borderStartEndRadius: string;\\n borderStartStartRadius: string;\\n borderStyle: string;\\n borderTop: string;\\n borderTopColor: string;\\n borderTopLeftRadius: string;\\n borderTopRightRadius: string;\\n borderTopStyle: string;\\n borderTopWidth: string;\\n borderWidth: string;\\n bottom: string;\\n boxShadow: string;\\n boxSizing: string;\\n breakAfter: string;\\n breakBefore: string;\\n breakInside: string;\\n captionSide: string;\\n caretColor: string;\\n clear: string;\\n /** @deprecated */\\n clip: string;\\n clipPath: string;\\n clipRule: string;\\n color: string;\\n colorInterpolation: string;\\n colorInterpolationFilters: string;\\n colorScheme: string;\\n columnCount: string;\\n columnFill: string;\\n columnGap: string;\\n columnRule: string;\\n columnRuleColor: string;\\n columnRuleStyle: string;\\n columnRuleWidth: string;\\n columnSpan: string;\\n columnWidth: string;\\n columns: string;\\n contain: string;\\n content: string;\\n counterIncrement: string;\\n counterReset: string;\\n counterSet: string;\\n cssFloat: string;\\n cssText: string;\\n cursor: string;\\n direction: string;\\n display: string;\\n dominantBaseline: string;\\n emptyCells: string;\\n fill: string;\\n fillOpacity: string;\\n fillRule: string;\\n filter: string;\\n flex: string;\\n flexBasis: string;\\n flexDirection: string;\\n flexFlow: string;\\n flexGrow: string;\\n flexShrink: string;\\n flexWrap: string;\\n float: string;\\n floodColor: string;\\n floodOpacity: string;\\n font: string;\\n fontFamily: string;\\n fontFeatureSettings: string;\\n fontKerning: string;\\n fontOpticalSizing: string;\\n fontSize: string;\\n fontSizeAdjust: string;\\n fontStretch: string;\\n fontStyle: string;\\n fontSynthesis: string;\\n fontVariant: string;\\n /** @deprecated */\\n fontVariantAlternates: string;\\n fontVariantCaps: string;\\n fontVariantEastAsian: string;\\n fontVariantLigatures: string;\\n fontVariantNumeric: string;\\n fontVariantPosition: string;\\n fontVariationSettings: string;\\n fontWeight: string;\\n gap: string;\\n grid: string;\\n gridArea: string;\\n gridAutoColumns: string;\\n gridAutoFlow: string;\\n gridAutoRows: string;\\n gridColumn: string;\\n gridColumnEnd: string;\\n gridColumnGap: string;\\n gridColumnStart: string;\\n gridGap: string;\\n gridRow: string;\\n gridRowEnd: string;\\n gridRowGap: string;\\n gridRowStart: string;\\n gridTemplate: string;\\n gridTemplateAreas: string;\\n gridTemplateColumns: string;\\n gridTemplateRows: string;\\n height: string;\\n hyphens: string;\\n /** @deprecated */\\n imageOrientation: string;\\n imageRendering: string;\\n inlineSize: string;\\n inset: string;\\n insetBlock: string;\\n insetBlockEnd: string;\\n insetBlockStart: string;\\n insetInline: string;\\n insetInlineEnd: string;\\n insetInlineStart: string;\\n isolation: string;\\n justifyContent: string;\\n justifyItems: string;\\n justifySelf: string;\\n left: string;\\n readonly length: number;\\n letterSpacing: string;\\n lightingColor: string;\\n lineBreak: string;\\n lineHeight: string;\\n listStyle: string;\\n listStyleImage: string;\\n listStylePosition: string;\\n listStyleType: string;\\n margin: string;\\n marginBlock: string;\\n marginBlockEnd: string;\\n marginBlockStart: string;\\n marginBottom: string;\\n marginInline: string;\\n marginInlineEnd: string;\\n marginInlineStart: string;\\n marginLeft: string;\\n marginRight: string;\\n marginTop: string;\\n marker: string;\\n markerEnd: string;\\n markerMid: string;\\n markerStart: string;\\n mask: string;\\n maskType: string;\\n maxBlockSize: string;\\n maxHeight: string;\\n maxInlineSize: string;\\n maxWidth: string;\\n minBlockSize: string;\\n minHeight: string;\\n minInlineSize: string;\\n minWidth: string;\\n mixBlendMode: string;\\n objectFit: string;\\n objectPosition: string;\\n offset: string;\\n offsetAnchor: string;\\n offsetDistance: string;\\n offsetPath: string;\\n offsetRotate: string;\\n opacity: string;\\n order: string;\\n orphans: string;\\n outline: string;\\n outlineColor: string;\\n outlineOffset: string;\\n outlineStyle: string;\\n outlineWidth: string;\\n overflow: string;\\n overflowAnchor: string;\\n overflowWrap: string;\\n overflowX: string;\\n overflowY: string;\\n overscrollBehavior: string;\\n overscrollBehaviorBlock: string;\\n overscrollBehaviorInline: string;\\n overscrollBehaviorX: string;\\n overscrollBehaviorY: string;\\n padding: string;\\n paddingBlock: string;\\n paddingBlockEnd: string;\\n paddingBlockStart: string;\\n paddingBottom: string;\\n paddingInline: string;\\n paddingInlineEnd: string;\\n paddingInlineStart: string;\\n paddingLeft: string;\\n paddingRight: string;\\n paddingTop: string;\\n pageBreakAfter: string;\\n pageBreakBefore: string;\\n pageBreakInside: string;\\n paintOrder: string;\\n readonly parentRule: CSSRule | null;\\n perspective: string;\\n perspectiveOrigin: string;\\n placeContent: string;\\n placeItems: string;\\n placeSelf: string;\\n pointerEvents: string;\\n position: string;\\n quotes: string;\\n resize: string;\\n right: string;\\n rotate: string;\\n rowGap: string;\\n rubyPosition: string;\\n scale: string;\\n scrollBehavior: string;\\n scrollMargin: string;\\n scrollMarginBlock: string;\\n scrollMarginBlockEnd: string;\\n scrollMarginBlockStart: string;\\n scrollMarginBottom: string;\\n scrollMarginInline: string;\\n scrollMarginInlineEnd: string;\\n scrollMarginInlineStart: string;\\n scrollMarginLeft: string;\\n scrollMarginRight: string;\\n scrollMarginTop: string;\\n scrollPadding: string;\\n scrollPaddingBlock: string;\\n scrollPaddingBlockEnd: string;\\n scrollPaddingBlockStart: string;\\n scrollPaddingBottom: string;\\n scrollPaddingInline: string;\\n scrollPaddingInlineEnd: string;\\n scrollPaddingInlineStart: string;\\n scrollPaddingLeft: string;\\n scrollPaddingRight: string;\\n scrollPaddingTop: string;\\n scrollSnapAlign: string;\\n scrollSnapStop: string;\\n scrollSnapType: string;\\n shapeImageThreshold: string;\\n shapeMargin: string;\\n shapeOutside: string;\\n shapeRendering: string;\\n stopColor: string;\\n stopOpacity: string;\\n stroke: string;\\n strokeDasharray: string;\\n strokeDashoffset: string;\\n strokeLinecap: string;\\n strokeLinejoin: string;\\n strokeMiterlimit: string;\\n strokeOpacity: string;\\n strokeWidth: string;\\n tabSize: string;\\n tableLayout: string;\\n textAlign: string;\\n textAlignLast: string;\\n textAnchor: string;\\n textCombineUpright: string;\\n textDecoration: string;\\n textDecorationColor: string;\\n textDecorationLine: string;\\n textDecorationSkipInk: string;\\n textDecorationStyle: string;\\n textDecorationThickness: string;\\n textEmphasis: string;\\n textEmphasisColor: string;\\n textEmphasisPosition: string;\\n textEmphasisStyle: string;\\n textIndent: string;\\n textOrientation: string;\\n textOverflow: string;\\n textRendering: string;\\n textShadow: string;\\n textTransform: string;\\n textUnderlineOffset: string;\\n textUnderlinePosition: string;\\n top: string;\\n touchAction: string;\\n transform: string;\\n transformBox: string;\\n transformOrigin: string;\\n transformStyle: string;\\n transition: string;\\n transitionDelay: string;\\n transitionDuration: string;\\n transitionProperty: string;\\n transitionTimingFunction: string;\\n translate: string;\\n unicodeBidi: string;\\n userSelect: string;\\n verticalAlign: string;\\n visibility: string;\\n /** @deprecated This is a legacy alias of `alignContent`. */\\n webkitAlignContent: string;\\n /** @deprecated This is a legacy alias of `alignItems`. */\\n webkitAlignItems: string;\\n /** @deprecated This is a legacy alias of `alignSelf`. */\\n webkitAlignSelf: string;\\n /** @deprecated This is a legacy alias of `animation`. */\\n webkitAnimation: string;\\n /** @deprecated This is a legacy alias of `animationDelay`. */\\n webkitAnimationDelay: string;\\n /** @deprecated This is a legacy alias of `animationDirection`. */\\n webkitAnimationDirection: string;\\n /** @deprecated This is a legacy alias of `animationDuration`. */\\n webkitAnimationDuration: string;\\n /** @deprecated This is a legacy alias of `animationFillMode`. */\\n webkitAnimationFillMode: string;\\n /** @deprecated This is a legacy alias of `animationIterationCount`. */\\n webkitAnimationIterationCount: string;\\n /** @deprecated This is a legacy alias of `animationName`. */\\n webkitAnimationName: string;\\n /** @deprecated This is a legacy alias of `animationPlayState`. */\\n webkitAnimationPlayState: string;\\n /** @deprecated This is a legacy alias of `animationTimingFunction`. */\\n webkitAnimationTimingFunction: string;\\n /** @deprecated This is a legacy alias of `appearance`. */\\n webkitAppearance: string;\\n /** @deprecated This is a legacy alias of `backfaceVisibility`. */\\n webkitBackfaceVisibility: string;\\n /** @deprecated This is a legacy alias of `backgroundClip`. */\\n webkitBackgroundClip: string;\\n /** @deprecated This is a legacy alias of `backgroundOrigin`. */\\n webkitBackgroundOrigin: string;\\n /** @deprecated This is a legacy alias of `backgroundSize`. */\\n webkitBackgroundSize: string;\\n /** @deprecated This is a legacy alias of `borderBottomLeftRadius`. */\\n webkitBorderBottomLeftRadius: string;\\n /** @deprecated This is a legacy alias of `borderBottomRightRadius`. */\\n webkitBorderBottomRightRadius: string;\\n /** @deprecated This is a legacy alias of `borderRadius`. */\\n webkitBorderRadius: string;\\n /** @deprecated This is a legacy alias of `borderTopLeftRadius`. */\\n webkitBorderTopLeftRadius: string;\\n /** @deprecated This is a legacy alias of `borderTopRightRadius`. */\\n webkitBorderTopRightRadius: string;\\n /** @deprecated */\\n webkitBoxAlign: string;\\n /** @deprecated */\\n webkitBoxFlex: string;\\n /** @deprecated */\\n webkitBoxOrdinalGroup: string;\\n /** @deprecated */\\n webkitBoxOrient: string;\\n /** @deprecated */\\n webkitBoxPack: string;\\n /** @deprecated This is a legacy alias of `boxShadow`. */\\n webkitBoxShadow: string;\\n /** @deprecated This is a legacy alias of `boxSizing`. */\\n webkitBoxSizing: string;\\n /** @deprecated This is a legacy alias of `filter`. */\\n webkitFilter: string;\\n /** @deprecated This is a legacy alias of `flex`. */\\n webkitFlex: string;\\n /** @deprecated This is a legacy alias of `flexBasis`. */\\n webkitFlexBasis: string;\\n /** @deprecated This is a legacy alias of `flexDirection`. */\\n webkitFlexDirection: string;\\n /** @deprecated This is a legacy alias of `flexFlow`. */\\n webkitFlexFlow: string;\\n /** @deprecated This is a legacy alias of `flexGrow`. */\\n webkitFlexGrow: string;\\n /** @deprecated This is a legacy alias of `flexShrink`. */\\n webkitFlexShrink: string;\\n /** @deprecated This is a legacy alias of `flexWrap`. */\\n webkitFlexWrap: string;\\n /** @deprecated This is a legacy alias of `justifyContent`. */\\n webkitJustifyContent: string;\\n webkitLineClamp: string;\\n /** @deprecated This is a legacy alias of `mask`. */\\n webkitMask: string;\\n /** @deprecated This is a legacy alias of `maskBorder`. */\\n webkitMaskBoxImage: string;\\n /** @deprecated This is a legacy alias of `maskBorderOutset`. */\\n webkitMaskBoxImageOutset: string;\\n /** @deprecated This is a legacy alias of `maskBorderRepeat`. */\\n webkitMaskBoxImageRepeat: string;\\n /** @deprecated This is a legacy alias of `maskBorderSlice`. */\\n webkitMaskBoxImageSlice: string;\\n /** @deprecated This is a legacy alias of `maskBorderSource`. */\\n webkitMaskBoxImageSource: string;\\n /** @deprecated This is a legacy alias of `maskBorderWidth`. */\\n webkitMaskBoxImageWidth: string;\\n /** @deprecated This is a legacy alias of `maskClip`. */\\n webkitMaskClip: string;\\n webkitMaskComposite: string;\\n /** @deprecated This is a legacy alias of `maskImage`. */\\n webkitMaskImage: string;\\n /** @deprecated This is a legacy alias of `maskOrigin`. */\\n webkitMaskOrigin: string;\\n /** @deprecated This is a legacy alias of `maskPosition`. */\\n webkitMaskPosition: string;\\n /** @deprecated This is a legacy alias of `maskRepeat`. */\\n webkitMaskRepeat: string;\\n /** @deprecated This is a legacy alias of `maskSize`. */\\n webkitMaskSize: string;\\n /** @deprecated This is a legacy alias of `order`. */\\n webkitOrder: string;\\n /** @deprecated This is a legacy alias of `perspective`. */\\n webkitPerspective: string;\\n /** @deprecated This is a legacy alias of `perspectiveOrigin`. */\\n webkitPerspectiveOrigin: string;\\n webkitTextFillColor: string;\\n webkitTextStroke: string;\\n webkitTextStrokeColor: string;\\n webkitTextStrokeWidth: string;\\n /** @deprecated This is a legacy alias of `transform`. */\\n webkitTransform: string;\\n /** @deprecated This is a legacy alias of `transformOrigin`. */\\n webkitTransformOrigin: string;\\n /** @deprecated This is a legacy alias of `transformStyle`. */\\n webkitTransformStyle: string;\\n /** @deprecated This is a legacy alias of `transition`. */\\n webkitTransition: string;\\n /** @deprecated This is a legacy alias of `transitionDelay`. */\\n webkitTransitionDelay: string;\\n /** @deprecated This is a legacy alias of `transitionDuration`. */\\n webkitTransitionDuration: string;\\n /** @deprecated This is a legacy alias of `transitionProperty`. */\\n webkitTransitionProperty: string;\\n /** @deprecated This is a legacy alias of `transitionTimingFunction`. */\\n webkitTransitionTimingFunction: string;\\n /** @deprecated This is a legacy alias of `userSelect`. */\\n webkitUserSelect: string;\\n whiteSpace: string;\\n widows: string;\\n width: string;\\n willChange: string;\\n wordBreak: string;\\n wordSpacing: string;\\n /** @deprecated */\\n wordWrap: string;\\n writingMode: string;\\n zIndex: string;\\n getPropertyPriority(property: string): string;\\n getPropertyValue(property: string): string;\\n item(index: number): string;\\n removeProperty(property: string): string;\\n setProperty(property: string, value: string | null, priority?: string): void;\\n [index: number]: string;\\n}\\n\\ndeclare var CSSStyleDeclaration: {\\n prototype: CSSStyleDeclaration;\\n new(): CSSStyleDeclaration;\\n};\\n\\n/** CSSStyleRule represents a single CSS style rule. It implements the CSSRule interface with a type value of 1 (CSSRule.STYLE_RULE). */\\ninterface CSSStyleRule extends CSSRule {\\n selectorText: string;\\n readonly style: CSSStyleDeclaration;\\n}\\n\\ndeclare var CSSStyleRule: {\\n prototype: CSSStyleRule;\\n new(): CSSStyleRule;\\n};\\n\\n/** A single CSS style sheet. It inherits properties and methods from its parent, StyleSheet. */\\ninterface CSSStyleSheet extends StyleSheet {\\n readonly cssRules: CSSRuleList;\\n readonly ownerRule: CSSRule | null;\\n /** @deprecated */\\n readonly rules: CSSRuleList;\\n /** @deprecated */\\n addRule(selector?: string, style?: string, index?: number): number;\\n deleteRule(index: number): void;\\n insertRule(rule: string, index?: number): number;\\n /** @deprecated */\\n removeRule(index?: number): void;\\n}\\n\\ndeclare var CSSStyleSheet: {\\n prototype: CSSStyleSheet;\\n new(options?: CSSStyleSheetInit): CSSStyleSheet;\\n};\\n\\n/** An object representing a single CSS @supports at-rule. It implements the CSSConditionRule interface, and therefore the CSSRule and CSSGroupingRule interfaces with a type value of 12 (CSSRule.SUPPORTS_RULE). */\\ninterface CSSSupportsRule extends CSSConditionRule {\\n}\\n\\ndeclare var CSSSupportsRule: {\\n prototype: CSSSupportsRule;\\n new(): CSSSupportsRule;\\n};\\n\\ninterface CSSTransition extends Animation {\\n readonly transitionProperty: string;\\n addEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var CSSTransition: {\\n prototype: CSSTransition;\\n new(): CSSTransition;\\n};\\n\\n/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */\\ninterface Cache {\\n add(request: RequestInfo): Promise;\\n addAll(requests: RequestInfo[]): Promise;\\n delete(request: RequestInfo, options?: CacheQueryOptions): Promise;\\n keys(request?: RequestInfo, options?: CacheQueryOptions): Promise>;\\n match(request: RequestInfo, options?: CacheQueryOptions): Promise;\\n matchAll(request?: RequestInfo, options?: CacheQueryOptions): Promise>;\\n put(request: RequestInfo, response: Response): Promise;\\n}\\n\\ndeclare var Cache: {\\n prototype: Cache;\\n new(): Cache;\\n};\\n\\n/** The storage for Cache objects. */\\ninterface CacheStorage {\\n delete(cacheName: string): Promise;\\n has(cacheName: string): Promise;\\n keys(): Promise;\\n match(request: RequestInfo, options?: MultiCacheQueryOptions): Promise;\\n open(cacheName: string): Promise;\\n}\\n\\ndeclare var CacheStorage: {\\n prototype: CacheStorage;\\n new(): CacheStorage;\\n};\\n\\ninterface CanvasCompositing {\\n globalAlpha: number;\\n globalCompositeOperation: string;\\n}\\n\\ninterface CanvasDrawImage {\\n drawImage(image: CanvasImageSource, dx: number, dy: number): void;\\n drawImage(image: CanvasImageSource, dx: number, dy: number, dw: number, dh: number): void;\\n drawImage(image: CanvasImageSource, sx: number, sy: number, sw: number, sh: number, dx: number, dy: number, dw: number, dh: number): void;\\n}\\n\\ninterface CanvasDrawPath {\\n beginPath(): void;\\n clip(fillRule?: CanvasFillRule): void;\\n clip(path: Path2D, fillRule?: CanvasFillRule): void;\\n fill(fillRule?: CanvasFillRule): void;\\n fill(path: Path2D, fillRule?: CanvasFillRule): void;\\n isPointInPath(x: number, y: number, fillRule?: CanvasFillRule): boolean;\\n isPointInPath(path: Path2D, x: number, y: number, fillRule?: CanvasFillRule): boolean;\\n isPointInStroke(x: number, y: number): boolean;\\n isPointInStroke(path: Path2D, x: number, y: number): boolean;\\n stroke(): void;\\n stroke(path: Path2D): void;\\n}\\n\\ninterface CanvasFillStrokeStyles {\\n fillStyle: string | CanvasGradient | CanvasPattern;\\n strokeStyle: string | CanvasGradient | CanvasPattern;\\n createLinearGradient(x0: number, y0: number, x1: number, y1: number): CanvasGradient;\\n createPattern(image: CanvasImageSource, repetition: string | null): CanvasPattern | null;\\n createRadialGradient(x0: number, y0: number, r0: number, x1: number, y1: number, r1: number): CanvasGradient;\\n}\\n\\ninterface CanvasFilters {\\n filter: string;\\n}\\n\\n/** An opaque object describing a gradient. It is returned by the methods CanvasRenderingContext2D.createLinearGradient() or CanvasRenderingContext2D.createRadialGradient(). */\\ninterface CanvasGradient {\\n /**\\n * Adds a color stop with the given color to the gradient at the given offset. 0.0 is the offset at one end of the gradient, 1.0 is the offset at the other end.\\n *\\n * Throws an \\\"IndexSizeError\\\" DOMException if the offset is out of range. Throws a \\\"SyntaxError\\\" DOMException if the color cannot be parsed.\\n */\\n addColorStop(offset: number, color: string): void;\\n}\\n\\ndeclare var CanvasGradient: {\\n prototype: CanvasGradient;\\n new(): CanvasGradient;\\n};\\n\\ninterface CanvasImageData {\\n createImageData(sw: number, sh: number, settings?: ImageDataSettings): ImageData;\\n createImageData(imagedata: ImageData): ImageData;\\n getImageData(sx: number, sy: number, sw: number, sh: number, settings?: ImageDataSettings): ImageData;\\n putImageData(imagedata: ImageData, dx: number, dy: number): void;\\n putImageData(imagedata: ImageData, dx: number, dy: number, dirtyX: number, dirtyY: number, dirtyWidth: number, dirtyHeight: number): void;\\n}\\n\\ninterface CanvasImageSmoothing {\\n imageSmoothingEnabled: boolean;\\n imageSmoothingQuality: ImageSmoothingQuality;\\n}\\n\\ninterface CanvasPath {\\n arc(x: number, y: number, radius: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\\n arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;\\n bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;\\n closePath(): void;\\n ellipse(x: number, y: number, radiusX: number, radiusY: number, rotation: number, startAngle: number, endAngle: number, counterclockwise?: boolean): void;\\n lineTo(x: number, y: number): void;\\n moveTo(x: number, y: number): void;\\n quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;\\n rect(x: number, y: number, w: number, h: number): void;\\n}\\n\\ninterface CanvasPathDrawingStyles {\\n lineCap: CanvasLineCap;\\n lineDashOffset: number;\\n lineJoin: CanvasLineJoin;\\n lineWidth: number;\\n miterLimit: number;\\n getLineDash(): number[];\\n setLineDash(segments: number[]): void;\\n}\\n\\n/** An opaque object describing a pattern, based on an image, a canvas, or a video, created by the CanvasRenderingContext2D.createPattern() method. */\\ninterface CanvasPattern {\\n /**\\n * Sets the transformation matrix that will be used when rendering the pattern during a fill or stroke painting operation.\\n */\\n setTransform(transform?: DOMMatrix2DInit): void;\\n}\\n\\ndeclare var CanvasPattern: {\\n prototype: CanvasPattern;\\n new(): CanvasPattern;\\n};\\n\\ninterface CanvasRect {\\n clearRect(x: number, y: number, w: number, h: number): void;\\n fillRect(x: number, y: number, w: number, h: number): void;\\n strokeRect(x: number, y: number, w: number, h: number): void;\\n}\\n\\n/** The CanvasRenderingContext2D interface, part of the Canvas API, provides the 2D rendering context for the drawing surface of a element. It is used for drawing shapes, text, images, and other objects. */\\ninterface CanvasRenderingContext2D extends CanvasCompositing, CanvasDrawImage, CanvasDrawPath, CanvasFillStrokeStyles, CanvasFilters, CanvasImageData, CanvasImageSmoothing, CanvasPath, CanvasPathDrawingStyles, CanvasRect, CanvasShadowStyles, CanvasState, CanvasText, CanvasTextDrawingStyles, CanvasTransform, CanvasUserInterface {\\n readonly canvas: HTMLCanvasElement;\\n getContextAttributes(): CanvasRenderingContext2DSettings;\\n}\\n\\ndeclare var CanvasRenderingContext2D: {\\n prototype: CanvasRenderingContext2D;\\n new(): CanvasRenderingContext2D;\\n};\\n\\ninterface CanvasShadowStyles {\\n shadowBlur: number;\\n shadowColor: string;\\n shadowOffsetX: number;\\n shadowOffsetY: number;\\n}\\n\\ninterface CanvasState {\\n restore(): void;\\n save(): void;\\n}\\n\\ninterface CanvasText {\\n fillText(text: string, x: number, y: number, maxWidth?: number): void;\\n measureText(text: string): TextMetrics;\\n strokeText(text: string, x: number, y: number, maxWidth?: number): void;\\n}\\n\\ninterface CanvasTextDrawingStyles {\\n direction: CanvasDirection;\\n font: string;\\n textAlign: CanvasTextAlign;\\n textBaseline: CanvasTextBaseline;\\n}\\n\\ninterface CanvasTransform {\\n getTransform(): DOMMatrix;\\n resetTransform(): void;\\n rotate(angle: number): void;\\n scale(x: number, y: number): void;\\n setTransform(a: number, b: number, c: number, d: number, e: number, f: number): void;\\n setTransform(transform?: DOMMatrix2DInit): void;\\n transform(a: number, b: number, c: number, d: number, e: number, f: number): void;\\n translate(x: number, y: number): void;\\n}\\n\\ninterface CanvasUserInterface {\\n drawFocusIfNeeded(element: Element): void;\\n drawFocusIfNeeded(path: Path2D, element: Element): void;\\n}\\n\\n/** The ChannelMergerNode interface, often used in conjunction with its opposite, ChannelSplitterNode, reunites different mono inputs into a single output. Each input is used to fill a channel of the output. This is useful for accessing each channels separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\\ninterface ChannelMergerNode extends AudioNode {\\n}\\n\\ndeclare var ChannelMergerNode: {\\n prototype: ChannelMergerNode;\\n new(context: BaseAudioContext, options?: ChannelMergerOptions): ChannelMergerNode;\\n};\\n\\n/** The ChannelSplitterNode interface, often used in conjunction with its opposite, ChannelMergerNode, separates the different channels of an audio source into a set of mono outputs. This is useful for accessing each channel separately, e.g. for performing channel mixing where gain must be separately controlled on each channel. */\\ninterface ChannelSplitterNode extends AudioNode {\\n}\\n\\ndeclare var ChannelSplitterNode: {\\n prototype: ChannelSplitterNode;\\n new(context: BaseAudioContext, options?: ChannelSplitterOptions): ChannelSplitterNode;\\n};\\n\\n/** The CharacterData abstract interface represents a Node object that contains characters. This is an abstract interface, meaning there aren't any object of type CharacterData: it is implemented by other interfaces, like Text, Comment, or ProcessingInstruction which aren't abstract. */\\ninterface CharacterData extends Node, ChildNode, NonDocumentTypeChildNode {\\n data: string;\\n readonly length: number;\\n readonly ownerDocument: Document;\\n appendData(data: string): void;\\n deleteData(offset: number, count: number): void;\\n insertData(offset: number, data: string): void;\\n replaceData(offset: number, count: number, data: string): void;\\n substringData(offset: number, count: number): string;\\n}\\n\\ndeclare var CharacterData: {\\n prototype: CharacterData;\\n new(): CharacterData;\\n};\\n\\ninterface ChildNode extends Node {\\n /**\\n * Inserts nodes just after node, while replacing strings in nodes with equivalent Text nodes.\\n *\\n * Throws a \\\"HierarchyRequestError\\\" DOMException if the constraints of the node tree are violated.\\n */\\n after(...nodes: (Node | string)[]): void;\\n /**\\n * Inserts nodes just before node, while replacing strings in nodes with equivalent Text nodes.\\n *\\n * Throws a \\\"HierarchyRequestError\\\" DOMException if the constraints of the node tree are violated.\\n */\\n before(...nodes: (Node | string)[]): void;\\n /**\\n * Removes node.\\n */\\n remove(): void;\\n /**\\n * Replaces node with nodes, while replacing strings in nodes with equivalent Text nodes.\\n *\\n * Throws a \\\"HierarchyRequestError\\\" DOMException if the constraints of the node tree are violated.\\n */\\n replaceWith(...nodes: (Node | string)[]): void;\\n}\\n\\n/** @deprecated */\\ninterface ClientRect extends DOMRect {\\n}\\n\\ninterface Clipboard extends EventTarget {\\n read(): Promise;\\n readText(): Promise;\\n write(data: ClipboardItems): Promise;\\n writeText(data: string): Promise;\\n}\\n\\ndeclare var Clipboard: {\\n prototype: Clipboard;\\n new(): Clipboard;\\n};\\n\\n/** Events providing information related to modification of the clipboard, that is cut, copy, and paste events. */\\ninterface ClipboardEvent extends Event {\\n readonly clipboardData: DataTransfer | null;\\n}\\n\\ndeclare var ClipboardEvent: {\\n prototype: ClipboardEvent;\\n new(type: string, eventInitDict?: ClipboardEventInit): ClipboardEvent;\\n};\\n\\ninterface ClipboardItem {\\n readonly types: ReadonlyArray;\\n getType(type: string): Promise;\\n}\\n\\ndeclare var ClipboardItem: {\\n prototype: ClipboardItem;\\n new(items: Record, options?: ClipboardItemOptions): ClipboardItem;\\n};\\n\\n/** A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute. */\\ninterface CloseEvent extends Event {\\n /**\\n * Returns the WebSocket connection close code provided by the server.\\n */\\n readonly code: number;\\n /**\\n * Returns the WebSocket connection close reason provided by the server.\\n */\\n readonly reason: string;\\n /**\\n * Returns true if the connection closed cleanly; false otherwise.\\n */\\n readonly wasClean: boolean;\\n}\\n\\ndeclare var CloseEvent: {\\n prototype: CloseEvent;\\n new(type: string, eventInitDict?: CloseEventInit): CloseEvent;\\n};\\n\\n/** Textual notations within markup; although it is generally not visually shown, such comments are available to be read in the source view. */\\ninterface Comment extends CharacterData {\\n}\\n\\ndeclare var Comment: {\\n prototype: Comment;\\n new(data?: string): Comment;\\n};\\n\\n/** The DOM CompositionEvent represents events that occur due to the user indirectly entering text. */\\ninterface CompositionEvent extends UIEvent {\\n readonly data: string;\\n /** @deprecated */\\n initCompositionEvent(typeArg: string, bubblesArg?: boolean, cancelableArg?: boolean, viewArg?: WindowProxy | null, dataArg?: string): void;\\n}\\n\\ndeclare var CompositionEvent: {\\n prototype: CompositionEvent;\\n new(type: string, eventInitDict?: CompositionEventInit): CompositionEvent;\\n};\\n\\ninterface ConstantSourceNode extends AudioScheduledSourceNode {\\n readonly offset: AudioParam;\\n addEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: ConstantSourceNode, ev: AudioScheduledSourceNodeEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var ConstantSourceNode: {\\n prototype: ConstantSourceNode;\\n new(context: BaseAudioContext, options?: ConstantSourceOptions): ConstantSourceNode;\\n};\\n\\n/** An AudioNode that performs a Linear Convolution on a given AudioBuffer, often used to achieve a reverb effect. A ConvolverNode always has exactly one input and one output. */\\ninterface ConvolverNode extends AudioNode {\\n buffer: AudioBuffer | null;\\n normalize: boolean;\\n}\\n\\ndeclare var ConvolverNode: {\\n prototype: ConvolverNode;\\n new(context: BaseAudioContext, options?: ConvolverOptions): ConvolverNode;\\n};\\n\\n/** This Streams API interface provides a built-in byte length queuing strategy that can be used when constructing streams. */\\ninterface CountQueuingStrategy extends QueuingStrategy {\\n readonly highWaterMark: number;\\n readonly size: QueuingStrategySize;\\n}\\n\\ndeclare var CountQueuingStrategy: {\\n prototype: CountQueuingStrategy;\\n new(init: QueuingStrategyInit): CountQueuingStrategy;\\n};\\n\\ninterface Credential {\\n readonly id: string;\\n readonly type: string;\\n}\\n\\ndeclare var Credential: {\\n prototype: Credential;\\n new(): Credential;\\n};\\n\\ninterface CredentialsContainer {\\n create(options?: CredentialCreationOptions): Promise;\\n get(options?: CredentialRequestOptions): Promise;\\n preventSilentAccess(): Promise;\\n store(credential: Credential): Promise;\\n}\\n\\ndeclare var CredentialsContainer: {\\n prototype: CredentialsContainer;\\n new(): CredentialsContainer;\\n};\\n\\n/** Basic cryptography features available in the current context. It allows access to a cryptographically strong random number generator and to cryptographic primitives. */\\ninterface Crypto {\\n readonly subtle: SubtleCrypto;\\n getRandomValues(array: T): T;\\n}\\n\\ndeclare var Crypto: {\\n prototype: Crypto;\\n new(): Crypto;\\n};\\n\\n/** The CryptoKey dictionary of the Web Crypto API represents a cryptographic key. */\\ninterface CryptoKey {\\n readonly algorithm: KeyAlgorithm;\\n readonly extractable: boolean;\\n readonly type: KeyType;\\n readonly usages: KeyUsage[];\\n}\\n\\ndeclare var CryptoKey: {\\n prototype: CryptoKey;\\n new(): CryptoKey;\\n};\\n\\ninterface CustomElementRegistry {\\n define(name: string, constructor: CustomElementConstructor, options?: ElementDefinitionOptions): void;\\n get(name: string): CustomElementConstructor | undefined;\\n upgrade(root: Node): void;\\n whenDefined(name: string): Promise;\\n}\\n\\ndeclare var CustomElementRegistry: {\\n prototype: CustomElementRegistry;\\n new(): CustomElementRegistry;\\n};\\n\\ninterface CustomEvent extends Event {\\n /**\\n * Returns any custom data event was created with. Typically used for synthetic events.\\n */\\n readonly detail: T;\\n /** @deprecated */\\n initCustomEvent(type: string, bubbles?: boolean, cancelable?: boolean, detail?: T): void;\\n}\\n\\ndeclare var CustomEvent: {\\n prototype: CustomEvent;\\n new(type: string, eventInitDict?: CustomEventInit): CustomEvent;\\n};\\n\\n/** An abnormal event (called an exception) which occurs as a result of calling a method or accessing a property of a web API. */\\ninterface DOMException {\\n readonly code: number;\\n readonly message: string;\\n readonly name: string;\\n readonly ABORT_ERR: number;\\n readonly DATA_CLONE_ERR: number;\\n readonly DOMSTRING_SIZE_ERR: number;\\n readonly HIERARCHY_REQUEST_ERR: number;\\n readonly INDEX_SIZE_ERR: number;\\n readonly INUSE_ATTRIBUTE_ERR: number;\\n readonly INVALID_ACCESS_ERR: number;\\n readonly INVALID_CHARACTER_ERR: number;\\n readonly INVALID_MODIFICATION_ERR: number;\\n readonly INVALID_NODE_TYPE_ERR: number;\\n readonly INVALID_STATE_ERR: number;\\n readonly NAMESPACE_ERR: number;\\n readonly NETWORK_ERR: number;\\n readonly NOT_FOUND_ERR: number;\\n readonly NOT_SUPPORTED_ERR: number;\\n readonly NO_DATA_ALLOWED_ERR: number;\\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\\n readonly QUOTA_EXCEEDED_ERR: number;\\n readonly SECURITY_ERR: number;\\n readonly SYNTAX_ERR: number;\\n readonly TIMEOUT_ERR: number;\\n readonly TYPE_MISMATCH_ERR: number;\\n readonly URL_MISMATCH_ERR: number;\\n readonly VALIDATION_ERR: number;\\n readonly WRONG_DOCUMENT_ERR: number;\\n}\\n\\ndeclare var DOMException: {\\n prototype: DOMException;\\n new(message?: string, name?: string): DOMException;\\n readonly ABORT_ERR: number;\\n readonly DATA_CLONE_ERR: number;\\n readonly DOMSTRING_SIZE_ERR: number;\\n readonly HIERARCHY_REQUEST_ERR: number;\\n readonly INDEX_SIZE_ERR: number;\\n readonly INUSE_ATTRIBUTE_ERR: number;\\n readonly INVALID_ACCESS_ERR: number;\\n readonly INVALID_CHARACTER_ERR: number;\\n readonly INVALID_MODIFICATION_ERR: number;\\n readonly INVALID_NODE_TYPE_ERR: number;\\n readonly INVALID_STATE_ERR: number;\\n readonly NAMESPACE_ERR: number;\\n readonly NETWORK_ERR: number;\\n readonly NOT_FOUND_ERR: number;\\n readonly NOT_SUPPORTED_ERR: number;\\n readonly NO_DATA_ALLOWED_ERR: number;\\n readonly NO_MODIFICATION_ALLOWED_ERR: number;\\n readonly QUOTA_EXCEEDED_ERR: number;\\n readonly SECURITY_ERR: number;\\n readonly SYNTAX_ERR: number;\\n readonly TIMEOUT_ERR: number;\\n readonly TYPE_MISMATCH_ERR: number;\\n readonly URL_MISMATCH_ERR: number;\\n readonly VALIDATION_ERR: number;\\n readonly WRONG_DOCUMENT_ERR: number;\\n};\\n\\n/** An object providing methods which are not dependent on any particular document. Such an object is returned by the Document.implementation property. */\\ninterface DOMImplementation {\\n createDocument(namespace: string | null, qualifiedName: string | null, doctype?: DocumentType | null): XMLDocument;\\n createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;\\n createHTMLDocument(title?: string): Document;\\n /** @deprecated */\\n hasFeature(...args: any[]): true;\\n}\\n\\ndeclare var DOMImplementation: {\\n prototype: DOMImplementation;\\n new(): DOMImplementation;\\n};\\n\\ninterface DOMMatrix extends DOMMatrixReadOnly {\\n a: number;\\n b: number;\\n c: number;\\n d: number;\\n e: number;\\n f: number;\\n m11: number;\\n m12: number;\\n m13: number;\\n m14: number;\\n m21: number;\\n m22: number;\\n m23: number;\\n m24: number;\\n m31: number;\\n m32: number;\\n m33: number;\\n m34: number;\\n m41: number;\\n m42: number;\\n m43: number;\\n m44: number;\\n invertSelf(): DOMMatrix;\\n multiplySelf(other?: DOMMatrixInit): DOMMatrix;\\n preMultiplySelf(other?: DOMMatrixInit): DOMMatrix;\\n rotateAxisAngleSelf(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\\n rotateFromVectorSelf(x?: number, y?: number): DOMMatrix;\\n rotateSelf(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\\n scale3dSelf(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\\n scaleSelf(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\\n setMatrixValue(transformList: string): DOMMatrix;\\n skewXSelf(sx?: number): DOMMatrix;\\n skewYSelf(sy?: number): DOMMatrix;\\n translateSelf(tx?: number, ty?: number, tz?: number): DOMMatrix;\\n}\\n\\ndeclare var DOMMatrix: {\\n prototype: DOMMatrix;\\n new(init?: string | number[]): DOMMatrix;\\n fromFloat32Array(array32: Float32Array): DOMMatrix;\\n fromFloat64Array(array64: Float64Array): DOMMatrix;\\n fromMatrix(other?: DOMMatrixInit): DOMMatrix;\\n};\\n\\ntype SVGMatrix = DOMMatrix;\\ndeclare var SVGMatrix: typeof DOMMatrix;\\n\\ntype WebKitCSSMatrix = DOMMatrix;\\ndeclare var WebKitCSSMatrix: typeof DOMMatrix;\\n\\ninterface DOMMatrixReadOnly {\\n readonly a: number;\\n readonly b: number;\\n readonly c: number;\\n readonly d: number;\\n readonly e: number;\\n readonly f: number;\\n readonly is2D: boolean;\\n readonly isIdentity: boolean;\\n readonly m11: number;\\n readonly m12: number;\\n readonly m13: number;\\n readonly m14: number;\\n readonly m21: number;\\n readonly m22: number;\\n readonly m23: number;\\n readonly m24: number;\\n readonly m31: number;\\n readonly m32: number;\\n readonly m33: number;\\n readonly m34: number;\\n readonly m41: number;\\n readonly m42: number;\\n readonly m43: number;\\n readonly m44: number;\\n flipX(): DOMMatrix;\\n flipY(): DOMMatrix;\\n inverse(): DOMMatrix;\\n multiply(other?: DOMMatrixInit): DOMMatrix;\\n rotate(rotX?: number, rotY?: number, rotZ?: number): DOMMatrix;\\n rotateAxisAngle(x?: number, y?: number, z?: number, angle?: number): DOMMatrix;\\n rotateFromVector(x?: number, y?: number): DOMMatrix;\\n scale(scaleX?: number, scaleY?: number, scaleZ?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\\n scale3d(scale?: number, originX?: number, originY?: number, originZ?: number): DOMMatrix;\\n /** @deprecated */\\n scaleNonUniform(scaleX?: number, scaleY?: number): DOMMatrix;\\n skewX(sx?: number): DOMMatrix;\\n skewY(sy?: number): DOMMatrix;\\n toFloat32Array(): Float32Array;\\n toFloat64Array(): Float64Array;\\n toJSON(): any;\\n transformPoint(point?: DOMPointInit): DOMPoint;\\n translate(tx?: number, ty?: number, tz?: number): DOMMatrix;\\n toString(): string;\\n}\\n\\ndeclare var DOMMatrixReadOnly: {\\n prototype: DOMMatrixReadOnly;\\n new(init?: string | number[]): DOMMatrixReadOnly;\\n fromFloat32Array(array32: Float32Array): DOMMatrixReadOnly;\\n fromFloat64Array(array64: Float64Array): DOMMatrixReadOnly;\\n fromMatrix(other?: DOMMatrixInit): DOMMatrixReadOnly;\\n toString(): string;\\n};\\n\\n/** Provides the ability to parse XML or HTML source code from a string into a DOM Document. */\\ninterface DOMParser {\\n /**\\n * Parses string using either the HTML or XML parser, according to type, and returns the resulting Document. type can be \\\"text/html\\\" (which will invoke the HTML parser), or any of \\\"text/xml\\\", \\\"application/xml\\\", \\\"application/xhtml+xml\\\", or \\\"image/svg+xml\\\" (which will invoke the XML parser).\\n *\\n * For the XML parser, if string cannot be parsed, then the returned Document will contain elements describing the resulting error.\\n *\\n * Note that script elements are not evaluated during parsing, and the resulting document's encoding will always be UTF-8.\\n *\\n * Values other than the above for type will cause a TypeError exception to be thrown.\\n */\\n parseFromString(string: string, type: DOMParserSupportedType): Document;\\n}\\n\\ndeclare var DOMParser: {\\n prototype: DOMParser;\\n new(): DOMParser;\\n};\\n\\ninterface DOMPoint extends DOMPointReadOnly {\\n w: number;\\n x: number;\\n y: number;\\n z: number;\\n}\\n\\ndeclare var DOMPoint: {\\n prototype: DOMPoint;\\n new(x?: number, y?: number, z?: number, w?: number): DOMPoint;\\n fromPoint(other?: DOMPointInit): DOMPoint;\\n};\\n\\ntype SVGPoint = DOMPoint;\\ndeclare var SVGPoint: typeof DOMPoint;\\n\\ninterface DOMPointReadOnly {\\n readonly w: number;\\n readonly x: number;\\n readonly y: number;\\n readonly z: number;\\n matrixTransform(matrix?: DOMMatrixInit): DOMPoint;\\n toJSON(): any;\\n}\\n\\ndeclare var DOMPointReadOnly: {\\n prototype: DOMPointReadOnly;\\n new(x?: number, y?: number, z?: number, w?: number): DOMPointReadOnly;\\n fromPoint(other?: DOMPointInit): DOMPointReadOnly;\\n};\\n\\ninterface DOMQuad {\\n readonly p1: DOMPoint;\\n readonly p2: DOMPoint;\\n readonly p3: DOMPoint;\\n readonly p4: DOMPoint;\\n getBounds(): DOMRect;\\n toJSON(): any;\\n}\\n\\ndeclare var DOMQuad: {\\n prototype: DOMQuad;\\n new(p1?: DOMPointInit, p2?: DOMPointInit, p3?: DOMPointInit, p4?: DOMPointInit): DOMQuad;\\n fromQuad(other?: DOMQuadInit): DOMQuad;\\n fromRect(other?: DOMRectInit): DOMQuad;\\n};\\n\\ninterface DOMRect extends DOMRectReadOnly {\\n height: number;\\n width: number;\\n x: number;\\n y: number;\\n}\\n\\ndeclare var DOMRect: {\\n prototype: DOMRect;\\n new(x?: number, y?: number, width?: number, height?: number): DOMRect;\\n fromRect(other?: DOMRectInit): DOMRect;\\n};\\n\\ntype SVGRect = DOMRect;\\ndeclare var SVGRect: typeof DOMRect;\\n\\ninterface DOMRectList {\\n readonly length: number;\\n item(index: number): DOMRect | null;\\n [index: number]: DOMRect;\\n}\\n\\ndeclare var DOMRectList: {\\n prototype: DOMRectList;\\n new(): DOMRectList;\\n};\\n\\ninterface DOMRectReadOnly {\\n readonly bottom: number;\\n readonly height: number;\\n readonly left: number;\\n readonly right: number;\\n readonly top: number;\\n readonly width: number;\\n readonly x: number;\\n readonly y: number;\\n toJSON(): any;\\n}\\n\\ndeclare var DOMRectReadOnly: {\\n prototype: DOMRectReadOnly;\\n new(x?: number, y?: number, width?: number, height?: number): DOMRectReadOnly;\\n fromRect(other?: DOMRectInit): DOMRectReadOnly;\\n};\\n\\n/** A type returned by some APIs which contains a list of DOMString (strings). */\\ninterface DOMStringList {\\n /**\\n * Returns the number of strings in strings.\\n */\\n readonly length: number;\\n /**\\n * Returns true if strings contains string, and false otherwise.\\n */\\n contains(string: string): boolean;\\n /**\\n * Returns the string with index index from strings.\\n */\\n item(index: number): string | null;\\n [index: number]: string;\\n}\\n\\ndeclare var DOMStringList: {\\n prototype: DOMStringList;\\n new(): DOMStringList;\\n};\\n\\n/** Used by the dataset HTML attribute to represent data for custom attributes added to elements. */\\ninterface DOMStringMap {\\n [name: string]: string | undefined;\\n}\\n\\ndeclare var DOMStringMap: {\\n prototype: DOMStringMap;\\n new(): DOMStringMap;\\n};\\n\\n/** A set of space-separated tokens. Such a set is returned by Element.classList, HTMLLinkElement.relList, HTMLAnchorElement.relList, HTMLAreaElement.relList, HTMLIframeElement.sandbox, or HTMLOutputElement.htmlFor. It is indexed beginning with 0 as with JavaScript Array objects. DOMTokenList is always case-sensitive. */\\ninterface DOMTokenList {\\n /**\\n * Returns the number of tokens.\\n */\\n readonly length: number;\\n /**\\n * Returns the associated set as string.\\n *\\n * Can be set, to change the associated attribute.\\n */\\n value: string;\\n toString(): string;\\n /**\\n * Adds all arguments passed, except those already present.\\n *\\n * Throws a \\\"SyntaxError\\\" DOMException if one of the arguments is the empty string.\\n *\\n * Throws an \\\"InvalidCharacterError\\\" DOMException if one of the arguments contains any ASCII whitespace.\\n */\\n add(...tokens: string[]): void;\\n /**\\n * Returns true if token is present, and false otherwise.\\n */\\n contains(token: string): boolean;\\n /**\\n * Returns the token with index index.\\n */\\n item(index: number): string | null;\\n /**\\n * Removes arguments passed, if they are present.\\n *\\n * Throws a \\\"SyntaxError\\\" DOMException if one of the arguments is the empty string.\\n *\\n * Throws an \\\"InvalidCharacterError\\\" DOMException if one of the arguments contains any ASCII whitespace.\\n */\\n remove(...tokens: string[]): void;\\n /**\\n * Replaces token with newToken.\\n *\\n * Returns true if token was replaced with newToken, and false otherwise.\\n *\\n * Throws a \\\"SyntaxError\\\" DOMException if one of the arguments is the empty string.\\n *\\n * Throws an \\\"InvalidCharacterError\\\" DOMException if one of the arguments contains any ASCII whitespace.\\n */\\n replace(token: string, newToken: string): boolean;\\n /**\\n * Returns true if token is in the associated attribute's supported tokens. Returns false otherwise.\\n *\\n * Throws a TypeError if the associated attribute has no supported tokens defined.\\n */\\n supports(token: string): boolean;\\n /**\\n * If force is not given, \\\"toggles\\\" token, removing it if it's present and adding it if it's not present. If force is true, adds token (same as add()). If force is false, removes token (same as remove()).\\n *\\n * Returns true if token is now present, and false otherwise.\\n *\\n * Throws a \\\"SyntaxError\\\" DOMException if token is empty.\\n *\\n * Throws an \\\"InvalidCharacterError\\\" DOMException if token contains any spaces.\\n */\\n toggle(token: string, force?: boolean): boolean;\\n forEach(callbackfn: (value: string, key: number, parent: DOMTokenList) => void, thisArg?: any): void;\\n [index: number]: string;\\n}\\n\\ndeclare var DOMTokenList: {\\n prototype: DOMTokenList;\\n new(): DOMTokenList;\\n};\\n\\n/** Used to hold the data that is being dragged during a drag and drop operation. It may hold one or more data items, each of one or more data types. For more information about drag and drop, see HTML Drag and Drop API. */\\ninterface DataTransfer {\\n /**\\n * Returns the kind of operation that is currently selected. If the kind of operation isn't one of those that is allowed by the effectAllowed attribute, then the operation will fail.\\n *\\n * Can be set, to change the selected operation.\\n *\\n * The possible values are \\\"none\\\", \\\"copy\\\", \\\"link\\\", and \\\"move\\\".\\n */\\n dropEffect: \\\"none\\\" | \\\"copy\\\" | \\\"link\\\" | \\\"move\\\";\\n /**\\n * Returns the kinds of operations that are to be allowed.\\n *\\n * Can be set (during the dragstart event), to change the allowed operations.\\n *\\n * The possible values are \\\"none\\\", \\\"copy\\\", \\\"copyLink\\\", \\\"copyMove\\\", \\\"link\\\", \\\"linkMove\\\", \\\"move\\\", \\\"all\\\", and \\\"uninitialized\\\",\\n */\\n effectAllowed: \\\"none\\\" | \\\"copy\\\" | \\\"copyLink\\\" | \\\"copyMove\\\" | \\\"link\\\" | \\\"linkMove\\\" | \\\"move\\\" | \\\"all\\\" | \\\"uninitialized\\\";\\n /**\\n * Returns a FileList of the files being dragged, if any.\\n */\\n readonly files: FileList;\\n /**\\n * Returns a DataTransferItemList object, with the drag data.\\n */\\n readonly items: DataTransferItemList;\\n /**\\n * Returns a frozen array listing the formats that were set in the dragstart event. In addition, if any files are being dragged, then one of the types will be the string \\\"Files\\\".\\n */\\n readonly types: ReadonlyArray;\\n /**\\n * Removes the data of the specified formats. Removes all data if the argument is omitted.\\n */\\n clearData(format?: string): void;\\n /**\\n * Returns the specified data. If there is no such data, returns the empty string.\\n */\\n getData(format: string): string;\\n /**\\n * Adds the specified data.\\n */\\n setData(format: string, data: string): void;\\n /**\\n * Uses the given element to update the drag feedback, replacing any previously specified feedback.\\n */\\n setDragImage(image: Element, x: number, y: number): void;\\n}\\n\\ndeclare var DataTransfer: {\\n prototype: DataTransfer;\\n new(): DataTransfer;\\n};\\n\\n/** One drag data item. During a drag operation, each drag event has a dataTransfer property which contains a list of drag data items. Each item in the list is a DataTransferItem object. */\\ninterface DataTransferItem {\\n /**\\n * Returns the drag data item kind, one of: \\\"string\\\", \\\"file\\\".\\n */\\n readonly kind: string;\\n /**\\n * Returns the drag data item type string.\\n */\\n readonly type: string;\\n /**\\n * Returns a File object, if the drag data item kind is File.\\n */\\n getAsFile(): File | null;\\n /**\\n * Invokes the callback with the string data as the argument, if the drag data item kind is text.\\n */\\n getAsString(callback: FunctionStringCallback | null): void;\\n webkitGetAsEntry(): FileSystemEntry | null;\\n}\\n\\ndeclare var DataTransferItem: {\\n prototype: DataTransferItem;\\n new(): DataTransferItem;\\n};\\n\\n/** A list of DataTransferItem objects representing items being dragged. During a drag operation, each DragEvent has a dataTransfer property and that property is a DataTransferItemList. */\\ninterface DataTransferItemList {\\n /**\\n * Returns the number of items in the drag data store.\\n */\\n readonly length: number;\\n /**\\n * Adds a new entry for the given data to the drag data store. If the data is plain text then a type string has to be provided also.\\n */\\n add(data: string, type: string): DataTransferItem | null;\\n add(data: File): DataTransferItem | null;\\n /**\\n * Removes all the entries in the drag data store.\\n */\\n clear(): void;\\n /**\\n * Removes the indexth entry in the drag data store.\\n */\\n remove(index: number): void;\\n [index: number]: DataTransferItem;\\n}\\n\\ndeclare var DataTransferItemList: {\\n prototype: DataTransferItemList;\\n new(): DataTransferItemList;\\n};\\n\\n/** A delay-line; an AudioNode audio-processing module that causes a delay between the arrival of an input data and its propagation to the output. */\\ninterface DelayNode extends AudioNode {\\n readonly delayTime: AudioParam;\\n}\\n\\ndeclare var DelayNode: {\\n prototype: DelayNode;\\n new(context: BaseAudioContext, options?: DelayOptions): DelayNode;\\n};\\n\\n/** The DeviceMotionEvent provides web developers with information about the speed of changes for the device's position and orientation. */\\ninterface DeviceMotionEvent extends Event {\\n readonly acceleration: DeviceMotionEventAcceleration | null;\\n readonly accelerationIncludingGravity: DeviceMotionEventAcceleration | null;\\n readonly interval: number;\\n readonly rotationRate: DeviceMotionEventRotationRate | null;\\n}\\n\\ndeclare var DeviceMotionEvent: {\\n prototype: DeviceMotionEvent;\\n new(type: string, eventInitDict?: DeviceMotionEventInit): DeviceMotionEvent;\\n};\\n\\ninterface DeviceMotionEventAcceleration {\\n readonly x: number | null;\\n readonly y: number | null;\\n readonly z: number | null;\\n}\\n\\ninterface DeviceMotionEventRotationRate {\\n readonly alpha: number | null;\\n readonly beta: number | null;\\n readonly gamma: number | null;\\n}\\n\\n/** The DeviceOrientationEvent provides web developers with information from the physical orientation of the device running the web page. */\\ninterface DeviceOrientationEvent extends Event {\\n readonly absolute: boolean;\\n readonly alpha: number | null;\\n readonly beta: number | null;\\n readonly gamma: number | null;\\n}\\n\\ndeclare var DeviceOrientationEvent: {\\n prototype: DeviceOrientationEvent;\\n new(type: string, eventInitDict?: DeviceOrientationEventInit): DeviceOrientationEvent;\\n};\\n\\ninterface DocumentEventMap extends DocumentAndElementEventHandlersEventMap, GlobalEventHandlersEventMap {\\n \\\"fullscreenchange\\\": Event;\\n \\\"fullscreenerror\\\": Event;\\n \\\"pointerlockchange\\\": Event;\\n \\\"pointerlockerror\\\": Event;\\n \\\"readystatechange\\\": Event;\\n \\\"visibilitychange\\\": Event;\\n}\\n\\n/** Any web page loaded in the browser and serves as an entry point into the web page's content, which is the DOM tree. */\\ninterface Document extends Node, DocumentAndElementEventHandlers, DocumentOrShadowRoot, FontFaceSource, GlobalEventHandlers, NonElementParentNode, ParentNode, XPathEvaluatorBase {\\n /**\\n * Sets or gets the URL for the current document.\\n */\\n readonly URL: string;\\n /**\\n * Sets or gets the color of all active links in the document.\\n * @deprecated\\n */\\n alinkColor: string;\\n /**\\n * Returns a reference to the collection of elements contained by the object.\\n * @deprecated\\n */\\n readonly all: HTMLAllCollection;\\n /**\\n * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.\\n * @deprecated\\n */\\n readonly anchors: HTMLCollectionOf;\\n /**\\n * Retrieves a collection of all applet objects in the document.\\n * @deprecated\\n */\\n readonly applets: HTMLCollection;\\n /**\\n * Deprecated. Sets or retrieves a value that indicates the background color behind the object.\\n * @deprecated\\n */\\n bgColor: string;\\n /**\\n * Specifies the beginning and end of the document body.\\n */\\n body: HTMLElement;\\n /**\\n * Returns document's encoding.\\n */\\n readonly characterSet: string;\\n /**\\n * Gets or sets the character set used to encode the object.\\n * @deprecated This is a legacy alias of `characterSet`.\\n */\\n readonly charset: string;\\n /**\\n * Gets a value that indicates whether standards-compliant mode is switched on for the object.\\n */\\n readonly compatMode: string;\\n /**\\n * Returns document's content type.\\n */\\n readonly contentType: string;\\n /**\\n * Returns the HTTP cookies that apply to the Document. If there are no cookies or cookies can't be applied to this resource, the empty string will be returned.\\n *\\n * Can be set, to add a new cookie to the element's set of HTTP cookies.\\n *\\n * If the contents are sandboxed into a unique origin (e.g. in an iframe with the sandbox attribute), a \\\"SecurityError\\\" DOMException will be thrown on getting and setting.\\n */\\n cookie: string;\\n /**\\n * Returns the script element, or the SVG script element, that is currently executing, as long as the element represents a classic script. In the case of reentrant script execution, returns the one that most recently started executing amongst those that have not yet finished executing.\\n *\\n * Returns null if the Document is not currently executing a script or SVG script element (e.g., because the running script is an event handler, or a timeout), or if the currently executing script or SVG script element represents a module script.\\n */\\n readonly currentScript: HTMLOrSVGScriptElement | null;\\n /**\\n * Returns the Window object of the active document.\\n */\\n readonly defaultView: (WindowProxy & typeof globalThis) | null;\\n /**\\n * Sets or gets a value that indicates whether the document can be edited.\\n */\\n designMode: string;\\n /**\\n * Sets or retrieves a value that indicates the reading order of the object.\\n */\\n dir: string;\\n /**\\n * Gets an object representing the document type declaration associated with the current document.\\n */\\n readonly doctype: DocumentType | null;\\n /**\\n * Gets a reference to the root node of the document.\\n */\\n readonly documentElement: HTMLElement;\\n /**\\n * Returns document's URL.\\n */\\n readonly documentURI: string;\\n /**\\n * Sets or gets the security domain of the document.\\n */\\n domain: string;\\n /**\\n * Retrieves a collection of all embed objects in the document.\\n */\\n readonly embeds: HTMLCollectionOf;\\n /**\\n * Sets or gets the foreground (text) color of the document.\\n * @deprecated\\n */\\n fgColor: string;\\n /**\\n * Retrieves a collection, in source order, of all form objects in the document.\\n */\\n readonly forms: HTMLCollectionOf;\\n /** @deprecated */\\n readonly fullscreen: boolean;\\n /**\\n * Returns true if document has the ability to display elements fullscreen and fullscreen is supported, or false otherwise.\\n */\\n readonly fullscreenEnabled: boolean;\\n /**\\n * Returns the head element.\\n */\\n readonly head: HTMLHeadElement;\\n readonly hidden: boolean;\\n /**\\n * Retrieves a collection, in source order, of img objects in the document.\\n */\\n readonly images: HTMLCollectionOf;\\n /**\\n * Gets the implementation object of the current document.\\n */\\n readonly implementation: DOMImplementation;\\n /**\\n * Returns the character encoding used to create the webpage that is loaded into the document object.\\n * @deprecated This is a legacy alias of `characterSet`.\\n */\\n readonly inputEncoding: string;\\n /**\\n * Gets the date that the page was last modified, if the page supplies one.\\n */\\n readonly lastModified: string;\\n /**\\n * Sets or gets the color of the document links.\\n * @deprecated\\n */\\n linkColor: string;\\n /**\\n * Retrieves a collection of all a objects that specify the href property and all area objects in the document.\\n */\\n readonly links: HTMLCollectionOf;\\n /**\\n * Contains information about the current URL.\\n */\\n get location(): Location;\\n set location(href: string | Location);\\n onfullscreenchange: ((this: Document, ev: Event) => any) | null;\\n onfullscreenerror: ((this: Document, ev: Event) => any) | null;\\n onpointerlockchange: ((this: Document, ev: Event) => any) | null;\\n onpointerlockerror: ((this: Document, ev: Event) => any) | null;\\n /**\\n * Fires when the state of the object has changed.\\n * @param ev The event\\n */\\n onreadystatechange: ((this: Document, ev: Event) => any) | null;\\n onvisibilitychange: ((this: Document, ev: Event) => any) | null;\\n readonly ownerDocument: null;\\n readonly pictureInPictureEnabled: boolean;\\n /**\\n * Return an HTMLCollection of the embed elements in the Document.\\n */\\n readonly plugins: HTMLCollectionOf;\\n /**\\n * Retrieves a value that indicates the current state of the object.\\n */\\n readonly readyState: DocumentReadyState;\\n /**\\n * Gets the URL of the location that referred the user to the current page.\\n */\\n readonly referrer: string;\\n /** @deprecated */\\n readonly rootElement: SVGSVGElement | null;\\n /**\\n * Retrieves a collection of all script objects in the document.\\n */\\n readonly scripts: HTMLCollectionOf;\\n readonly scrollingElement: Element | null;\\n readonly timeline: DocumentTimeline;\\n /**\\n * Contains the title of the document.\\n */\\n title: string;\\n readonly visibilityState: VisibilityState;\\n /**\\n * Sets or gets the color of the links that the user has visited.\\n * @deprecated\\n */\\n vlinkColor: string;\\n /**\\n * Moves node from another document and returns it.\\n *\\n * If node is a document, throws a \\\"NotSupportedError\\\" DOMException or, if node is a shadow root, throws a \\\"HierarchyRequestError\\\" DOMException.\\n */\\n adoptNode(node: T): T;\\n /** @deprecated */\\n captureEvents(): void;\\n /** @deprecated */\\n caretRangeFromPoint(x: number, y: number): Range | null;\\n /** @deprecated */\\n clear(): void;\\n /**\\n * Closes an output stream and forces the sent data to display.\\n */\\n close(): void;\\n /**\\n * Creates an attribute object with a specified name.\\n * @param name String that sets the attribute object's name.\\n */\\n createAttribute(localName: string): Attr;\\n createAttributeNS(namespace: string | null, qualifiedName: string): Attr;\\n /**\\n * Returns a CDATASection node whose data is data.\\n */\\n createCDATASection(data: string): CDATASection;\\n /**\\n * Creates a comment object with the specified data.\\n * @param data Sets the comment object's data.\\n */\\n createComment(data: string): Comment;\\n /**\\n * Creates a new document.\\n */\\n createDocumentFragment(): DocumentFragment;\\n /**\\n * Creates an instance of the element for the specified tag.\\n * @param tagName The name of an element.\\n */\\n createElement(tagName: K, options?: ElementCreationOptions): HTMLElementTagNameMap[K];\\n /** @deprecated */\\n createElement(tagName: K, options?: ElementCreationOptions): HTMLElementDeprecatedTagNameMap[K];\\n createElement(tagName: string, options?: ElementCreationOptions): HTMLElement;\\n /**\\n * Returns an element with namespace namespace. Its namespace prefix will be everything before \\\":\\\" (U+003E) in qualifiedName or null. Its local name will be everything after \\\":\\\" (U+003E) in qualifiedName or qualifiedName.\\n *\\n * If localName does not match the Name production an \\\"InvalidCharacterError\\\" DOMException will be thrown.\\n *\\n * If one of the following conditions is true a \\\"NamespaceError\\\" DOMException will be thrown:\\n *\\n * localName does not match the QName production.\\n * Namespace prefix is not null and namespace is the empty string.\\n * Namespace prefix is \\\"xml\\\" and namespace is not the XML namespace.\\n * qualifiedName or namespace prefix is \\\"xmlns\\\" and namespace is not the XMLNS namespace.\\n * namespace is the XMLNS namespace and neither qualifiedName nor namespace prefix is \\\"xmlns\\\".\\n *\\n * When supplied, options's is can be used to create a customized built-in element.\\n */\\n createElementNS(namespaceURI: \\\"http://www.w3.org/1999/xhtml\\\", qualifiedName: string): HTMLElement;\\n createElementNS(namespaceURI: \\\"http://www.w3.org/2000/svg\\\", qualifiedName: K): SVGElementTagNameMap[K];\\n createElementNS(namespaceURI: \\\"http://www.w3.org/2000/svg\\\", qualifiedName: string): SVGElement;\\n createElementNS(namespaceURI: string | null, qualifiedName: string, options?: ElementCreationOptions): Element;\\n createElementNS(namespace: string | null, qualifiedName: string, options?: string | ElementCreationOptions): Element;\\n createEvent(eventInterface: \\\"AnimationEvent\\\"): AnimationEvent;\\n createEvent(eventInterface: \\\"AnimationPlaybackEvent\\\"): AnimationPlaybackEvent;\\n createEvent(eventInterface: \\\"AudioProcessingEvent\\\"): AudioProcessingEvent;\\n createEvent(eventInterface: \\\"BeforeUnloadEvent\\\"): BeforeUnloadEvent;\\n createEvent(eventInterface: \\\"BlobEvent\\\"): BlobEvent;\\n createEvent(eventInterface: \\\"ClipboardEvent\\\"): ClipboardEvent;\\n createEvent(eventInterface: \\\"CloseEvent\\\"): CloseEvent;\\n createEvent(eventInterface: \\\"CompositionEvent\\\"): CompositionEvent;\\n createEvent(eventInterface: \\\"CustomEvent\\\"): CustomEvent;\\n createEvent(eventInterface: \\\"DeviceMotionEvent\\\"): DeviceMotionEvent;\\n createEvent(eventInterface: \\\"DeviceOrientationEvent\\\"): DeviceOrientationEvent;\\n createEvent(eventInterface: \\\"DragEvent\\\"): DragEvent;\\n createEvent(eventInterface: \\\"ErrorEvent\\\"): ErrorEvent;\\n createEvent(eventInterface: \\\"FocusEvent\\\"): FocusEvent;\\n createEvent(eventInterface: \\\"FontFaceSetLoadEvent\\\"): FontFaceSetLoadEvent;\\n createEvent(eventInterface: \\\"FormDataEvent\\\"): FormDataEvent;\\n createEvent(eventInterface: \\\"GamepadEvent\\\"): GamepadEvent;\\n createEvent(eventInterface: \\\"HashChangeEvent\\\"): HashChangeEvent;\\n createEvent(eventInterface: \\\"IDBVersionChangeEvent\\\"): IDBVersionChangeEvent;\\n createEvent(eventInterface: \\\"InputEvent\\\"): InputEvent;\\n createEvent(eventInterface: \\\"KeyboardEvent\\\"): KeyboardEvent;\\n createEvent(eventInterface: \\\"MediaEncryptedEvent\\\"): MediaEncryptedEvent;\\n createEvent(eventInterface: \\\"MediaKeyMessageEvent\\\"): MediaKeyMessageEvent;\\n createEvent(eventInterface: \\\"MediaQueryListEvent\\\"): MediaQueryListEvent;\\n createEvent(eventInterface: \\\"MediaRecorderErrorEvent\\\"): MediaRecorderErrorEvent;\\n createEvent(eventInterface: \\\"MediaStreamTrackEvent\\\"): MediaStreamTrackEvent;\\n createEvent(eventInterface: \\\"MessageEvent\\\"): MessageEvent;\\n createEvent(eventInterface: \\\"MouseEvent\\\"): MouseEvent;\\n createEvent(eventInterface: \\\"MouseEvents\\\"): MouseEvent;\\n createEvent(eventInterface: \\\"MutationEvent\\\"): MutationEvent;\\n createEvent(eventInterface: \\\"MutationEvents\\\"): MutationEvent;\\n createEvent(eventInterface: \\\"OfflineAudioCompletionEvent\\\"): OfflineAudioCompletionEvent;\\n createEvent(eventInterface: \\\"PageTransitionEvent\\\"): PageTransitionEvent;\\n createEvent(eventInterface: \\\"PaymentMethodChangeEvent\\\"): PaymentMethodChangeEvent;\\n createEvent(eventInterface: \\\"PaymentRequestUpdateEvent\\\"): PaymentRequestUpdateEvent;\\n createEvent(eventInterface: \\\"PointerEvent\\\"): PointerEvent;\\n createEvent(eventInterface: \\\"PopStateEvent\\\"): PopStateEvent;\\n createEvent(eventInterface: \\\"ProgressEvent\\\"): ProgressEvent;\\n createEvent(eventInterface: \\\"PromiseRejectionEvent\\\"): PromiseRejectionEvent;\\n createEvent(eventInterface: \\\"RTCDTMFToneChangeEvent\\\"): RTCDTMFToneChangeEvent;\\n createEvent(eventInterface: \\\"RTCDataChannelEvent\\\"): RTCDataChannelEvent;\\n createEvent(eventInterface: \\\"RTCPeerConnectionIceErrorEvent\\\"): RTCPeerConnectionIceErrorEvent;\\n createEvent(eventInterface: \\\"RTCPeerConnectionIceEvent\\\"): RTCPeerConnectionIceEvent;\\n createEvent(eventInterface: \\\"RTCTrackEvent\\\"): RTCTrackEvent;\\n createEvent(eventInterface: \\\"SecurityPolicyViolationEvent\\\"): SecurityPolicyViolationEvent;\\n createEvent(eventInterface: \\\"SpeechSynthesisErrorEvent\\\"): SpeechSynthesisErrorEvent;\\n createEvent(eventInterface: \\\"SpeechSynthesisEvent\\\"): SpeechSynthesisEvent;\\n createEvent(eventInterface: \\\"StorageEvent\\\"): StorageEvent;\\n createEvent(eventInterface: \\\"SubmitEvent\\\"): SubmitEvent;\\n createEvent(eventInterface: \\\"TouchEvent\\\"): TouchEvent;\\n createEvent(eventInterface: \\\"TrackEvent\\\"): TrackEvent;\\n createEvent(eventInterface: \\\"TransitionEvent\\\"): TransitionEvent;\\n createEvent(eventInterface: \\\"UIEvent\\\"): UIEvent;\\n createEvent(eventInterface: \\\"UIEvents\\\"): UIEvent;\\n createEvent(eventInterface: \\\"WebGLContextEvent\\\"): WebGLContextEvent;\\n createEvent(eventInterface: \\\"WheelEvent\\\"): WheelEvent;\\n createEvent(eventInterface: string): Event;\\n /**\\n * Creates a NodeIterator object that you can use to traverse filtered lists of nodes or elements in a document.\\n * @param root The root element or node to start traversing on.\\n * @param whatToShow The type of nodes or elements to appear in the node list\\n * @param filter A custom NodeFilter function to use. For more information, see filter. Use null for no filter.\\n */\\n createNodeIterator(root: Node, whatToShow?: number, filter?: NodeFilter | null): NodeIterator;\\n /**\\n * Returns a ProcessingInstruction node whose target is target and data is data. If target does not match the Name production an \\\"InvalidCharacterError\\\" DOMException will be thrown. If data contains \\\"?>\\\" an \\\"InvalidCharacterError\\\" DOMException will be thrown.\\n */\\n createProcessingInstruction(target: string, data: string): ProcessingInstruction;\\n /**\\n * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.\\n */\\n createRange(): Range;\\n /**\\n * Creates a text string from the specified value.\\n * @param data String that specifies the nodeValue property of the text node.\\n */\\n createTextNode(data: string): Text;\\n /**\\n * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.\\n * @param root The root element or node to start traversing on.\\n * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.\\n * @param filter A custom NodeFilter function to use.\\n */\\n createTreeWalker(root: Node, whatToShow?: number, filter?: NodeFilter | null): TreeWalker;\\n /**\\n * Returns the element for the specified x coordinate and the specified y coordinate.\\n * @param x The x-offset\\n * @param y The y-offset\\n */\\n elementFromPoint(x: number, y: number): Element | null;\\n elementsFromPoint(x: number, y: number): Element[];\\n /**\\n * Executes a command on the current document, current selection, or the given range.\\n * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.\\n * @param showUI Display the user interface, defaults to false.\\n * @param value Value to assign.\\n * @deprecated\\n */\\n execCommand(commandId: string, showUI?: boolean, value?: string): boolean;\\n /**\\n * Stops document's fullscreen element from being displayed fullscreen and resolves promise when done.\\n */\\n exitFullscreen(): Promise;\\n exitPictureInPicture(): Promise;\\n exitPointerLock(): void;\\n /**\\n * Returns a reference to the first object with the specified value of the ID attribute.\\n * @param elementId String that specifies the ID value.\\n */\\n getElementById(elementId: string): HTMLElement | null;\\n /**\\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\\n */\\n getElementsByClassName(classNames: string): HTMLCollectionOf;\\n /**\\n * Gets a collection of objects based on the value of the NAME or ID attribute.\\n * @param elementName Gets a collection of objects based on the value of the NAME or ID attribute.\\n */\\n getElementsByName(elementName: string): NodeListOf;\\n /**\\n * Retrieves a collection of objects based on the specified element name.\\n * @param name Specifies the name of an element.\\n */\\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf;\\n /**\\n * If namespace and localName are \\\"*\\\" returns a HTMLCollection of all descendant elements.\\n *\\n * If only namespace is \\\"*\\\" returns a HTMLCollection of all descendant elements whose local name is localName.\\n *\\n * If only localName is \\\"*\\\" returns a HTMLCollection of all descendant elements whose namespace is namespace.\\n *\\n * Otherwise, returns a HTMLCollection of all descendant elements whose namespace is namespace and local name is localName.\\n */\\n getElementsByTagNameNS(namespaceURI: \\\"http://www.w3.org/1999/xhtml\\\", localName: string): HTMLCollectionOf;\\n getElementsByTagNameNS(namespaceURI: \\\"http://www.w3.org/2000/svg\\\", localName: string): HTMLCollectionOf;\\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf;\\n /**\\n * Returns an object representing the current selection of the document that is loaded into the object displaying a webpage.\\n */\\n getSelection(): Selection | null;\\n /**\\n * Gets a value indicating whether the object currently has focus.\\n */\\n hasFocus(): boolean;\\n hasStorageAccess(): Promise;\\n /**\\n * Returns a copy of node. If deep is true, the copy also includes the node's descendants.\\n *\\n * If node is a document or a shadow root, throws a \\\"NotSupportedError\\\" DOMException.\\n */\\n importNode(node: T, deep?: boolean): T;\\n /**\\n * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.\\n * @param url Specifies a MIME type for the document.\\n * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.\\n * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, \\\"fullscreen=yes, toolbar=yes\\\"). The following values are supported.\\n * @param replace Specifies whether the existing entry for the document is replaced in the history list.\\n */\\n open(unused1?: string, unused2?: string): Document;\\n open(url: string | URL, name: string, features: string): WindowProxy | null;\\n /**\\n * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.\\n * @param commandId Specifies a command identifier.\\n * @deprecated\\n */\\n queryCommandEnabled(commandId: string): boolean;\\n /**\\n * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.\\n * @param commandId String that specifies a command identifier.\\n */\\n queryCommandIndeterm(commandId: string): boolean;\\n /**\\n * Returns a Boolean value that indicates the current state of the command.\\n * @param commandId String that specifies a command identifier.\\n * @deprecated\\n */\\n queryCommandState(commandId: string): boolean;\\n /**\\n * Returns a Boolean value that indicates whether the current command is supported on the current range.\\n * @param commandId Specifies a command identifier.\\n * @deprecated\\n */\\n queryCommandSupported(commandId: string): boolean;\\n /**\\n * Returns the current value of the document, range, or current selection for the given command.\\n * @param commandId String that specifies a command identifier.\\n */\\n queryCommandValue(commandId: string): string;\\n /** @deprecated */\\n releaseEvents(): void;\\n requestStorageAccess(): Promise;\\n /**\\n * Writes one or more HTML expressions to a document in the specified window.\\n * @param content Specifies the text and HTML tags to write.\\n */\\n write(...text: string[]): void;\\n /**\\n * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.\\n * @param content The text and HTML tags to write.\\n */\\n writeln(...text: string[]): void;\\n addEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: Document, ev: DocumentEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var Document: {\\n prototype: Document;\\n new(): Document;\\n};\\n\\ninterface DocumentAndElementEventHandlersEventMap {\\n \\\"copy\\\": ClipboardEvent;\\n \\\"cut\\\": ClipboardEvent;\\n \\\"paste\\\": ClipboardEvent;\\n}\\n\\ninterface DocumentAndElementEventHandlers {\\n oncopy: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\\n oncut: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\\n onpaste: ((this: DocumentAndElementEventHandlers, ev: ClipboardEvent) => any) | null;\\n addEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: DocumentAndElementEventHandlers, ev: DocumentAndElementEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\n/** A minimal document object that has no parent. It is used as a lightweight version of Document that stores a segment of a document structure comprised of nodes just like a standard document. The key difference is that because the document fragment isn't part of the active document tree structure, changes made to the fragment don't affect the document, cause reflow, or incur any performance impact that can occur when changes are made. */\\ninterface DocumentFragment extends Node, NonElementParentNode, ParentNode {\\n readonly ownerDocument: Document;\\n getElementById(elementId: string): HTMLElement | null;\\n}\\n\\ndeclare var DocumentFragment: {\\n prototype: DocumentFragment;\\n new(): DocumentFragment;\\n};\\n\\ninterface DocumentOrShadowRoot {\\n /**\\n * Returns the deepest element in the document through which or to which key events are being routed. This is, roughly speaking, the focused element in the document.\\n *\\n * For the purposes of this API, when a child browsing context is focused, its container is focused in the parent browsing context. For example, if the user moves the focus to a text control in an iframe, the iframe is the element returned by the activeElement API in the iframe's node document.\\n *\\n * Similarly, when the focused element is in a different node tree than documentOrShadowRoot, the element returned will be the host that's located in the same node tree as documentOrShadowRoot if documentOrShadowRoot is a shadow-including inclusive ancestor of the focused element, and null if not.\\n */\\n readonly activeElement: Element | null;\\n /**\\n * Returns document's fullscreen element.\\n */\\n readonly fullscreenElement: Element | null;\\n readonly pictureInPictureElement: Element | null;\\n readonly pointerLockElement: Element | null;\\n /**\\n * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.\\n */\\n readonly styleSheets: StyleSheetList;\\n getAnimations(): Animation[];\\n}\\n\\ninterface DocumentTimeline extends AnimationTimeline {\\n}\\n\\ndeclare var DocumentTimeline: {\\n prototype: DocumentTimeline;\\n new(options?: DocumentTimelineOptions): DocumentTimeline;\\n};\\n\\n/** A Node containing a doctype. */\\ninterface DocumentType extends Node, ChildNode {\\n readonly name: string;\\n readonly ownerDocument: Document;\\n readonly publicId: string;\\n readonly systemId: string;\\n}\\n\\ndeclare var DocumentType: {\\n prototype: DocumentType;\\n new(): DocumentType;\\n};\\n\\n/** A DOM event that represents a drag and drop interaction. The user initiates a drag by placing a pointer device (such as a mouse) on the touch surface and then dragging the pointer to a new location (such as another DOM element). Applications are free to interpret a drag and drop interaction in an application-specific way. */\\ninterface DragEvent extends MouseEvent {\\n /**\\n * Returns the DataTransfer object for the event.\\n */\\n readonly dataTransfer: DataTransfer | null;\\n}\\n\\ndeclare var DragEvent: {\\n prototype: DragEvent;\\n new(type: string, eventInitDict?: DragEventInit): DragEvent;\\n};\\n\\n/** Inherits properties from its parent, AudioNode. */\\ninterface DynamicsCompressorNode extends AudioNode {\\n readonly attack: AudioParam;\\n readonly knee: AudioParam;\\n readonly ratio: AudioParam;\\n readonly reduction: number;\\n readonly release: AudioParam;\\n readonly threshold: AudioParam;\\n}\\n\\ndeclare var DynamicsCompressorNode: {\\n prototype: DynamicsCompressorNode;\\n new(context: BaseAudioContext, options?: DynamicsCompressorOptions): DynamicsCompressorNode;\\n};\\n\\ninterface EXT_blend_minmax {\\n readonly MAX_EXT: GLenum;\\n readonly MIN_EXT: GLenum;\\n}\\n\\ninterface EXT_color_buffer_float {\\n}\\n\\ninterface EXT_color_buffer_half_float {\\n readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;\\n readonly RGB16F_EXT: GLenum;\\n readonly RGBA16F_EXT: GLenum;\\n readonly UNSIGNED_NORMALIZED_EXT: GLenum;\\n}\\n\\ninterface EXT_float_blend {\\n}\\n\\n/** The EXT_frag_depth extension is part of the WebGL API and enables to set a depth value of a fragment from within the fragment shader. */\\ninterface EXT_frag_depth {\\n}\\n\\ninterface EXT_sRGB {\\n readonly FRAMEBUFFER_ATTACHMENT_COLOR_ENCODING_EXT: GLenum;\\n readonly SRGB8_ALPHA8_EXT: GLenum;\\n readonly SRGB_ALPHA_EXT: GLenum;\\n readonly SRGB_EXT: GLenum;\\n}\\n\\ninterface EXT_shader_texture_lod {\\n}\\n\\ninterface EXT_texture_compression_rgtc {\\n readonly COMPRESSED_RED_GREEN_RGTC2_EXT: GLenum;\\n readonly COMPRESSED_RED_RGTC1_EXT: GLenum;\\n readonly COMPRESSED_SIGNED_RED_GREEN_RGTC2_EXT: GLenum;\\n readonly COMPRESSED_SIGNED_RED_RGTC1_EXT: GLenum;\\n}\\n\\n/** The EXT_texture_filter_anisotropic extension is part of the WebGL API and exposes two constants for anisotropic filtering (AF). */\\ninterface EXT_texture_filter_anisotropic {\\n readonly MAX_TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\\n readonly TEXTURE_MAX_ANISOTROPY_EXT: GLenum;\\n}\\n\\ninterface ElementEventMap {\\n \\\"fullscreenchange\\\": Event;\\n \\\"fullscreenerror\\\": Event;\\n}\\n\\n/** Element is the most general base class from which all objects in a Document inherit. It only has methods and properties common to all kinds of elements. More specific classes inherit from Element. */\\ninterface Element extends Node, ARIAMixin, Animatable, ChildNode, InnerHTML, NonDocumentTypeChildNode, ParentNode, Slottable {\\n readonly attributes: NamedNodeMap;\\n /**\\n * Allows for manipulation of element's class content attribute as a set of whitespace-separated tokens through a DOMTokenList object.\\n */\\n readonly classList: DOMTokenList;\\n /**\\n * Returns the value of element's class content attribute. Can be set to change it.\\n */\\n className: string;\\n readonly clientHeight: number;\\n readonly clientLeft: number;\\n readonly clientTop: number;\\n readonly clientWidth: number;\\n /**\\n * Returns the value of element's id content attribute. Can be set to change it.\\n */\\n id: string;\\n /**\\n * Returns the local name.\\n */\\n readonly localName: string;\\n /**\\n * Returns the namespace.\\n */\\n readonly namespaceURI: string | null;\\n onfullscreenchange: ((this: Element, ev: Event) => any) | null;\\n onfullscreenerror: ((this: Element, ev: Event) => any) | null;\\n outerHTML: string;\\n readonly ownerDocument: Document;\\n readonly part: DOMTokenList;\\n /**\\n * Returns the namespace prefix.\\n */\\n readonly prefix: string | null;\\n readonly scrollHeight: number;\\n scrollLeft: number;\\n scrollTop: number;\\n readonly scrollWidth: number;\\n /**\\n * Returns element's shadow root, if any, and if shadow root's mode is \\\"open\\\", and null otherwise.\\n */\\n readonly shadowRoot: ShadowRoot | null;\\n /**\\n * Returns the value of element's slot content attribute. Can be set to change it.\\n */\\n slot: string;\\n /**\\n * Returns the HTML-uppercased qualified name.\\n */\\n readonly tagName: string;\\n /**\\n * Creates a shadow root for element and returns it.\\n */\\n attachShadow(init: ShadowRootInit): ShadowRoot;\\n /**\\n * Returns the first (starting at element) inclusive ancestor that matches selectors, and null otherwise.\\n */\\n closest(selector: K): HTMLElementTagNameMap[K] | null;\\n closest(selector: K): SVGElementTagNameMap[K] | null;\\n closest(selectors: string): E | null;\\n /**\\n * Returns element's first attribute whose qualified name is qualifiedName, and null if there is no such attribute otherwise.\\n */\\n getAttribute(qualifiedName: string): string | null;\\n /**\\n * Returns element's attribute whose namespace is namespace and local name is localName, and null if there is no such attribute otherwise.\\n */\\n getAttributeNS(namespace: string | null, localName: string): string | null;\\n /**\\n * Returns the qualified names of all element's attributes. Can contain duplicates.\\n */\\n getAttributeNames(): string[];\\n getAttributeNode(qualifiedName: string): Attr | null;\\n getAttributeNodeNS(namespace: string | null, localName: string): Attr | null;\\n getBoundingClientRect(): DOMRect;\\n getClientRects(): DOMRectList;\\n /**\\n * Returns a HTMLCollection of the elements in the object on which the method was invoked (a document or an element) that have all the classes given by classNames. The classNames argument is interpreted as a space-separated list of classes.\\n */\\n getElementsByClassName(classNames: string): HTMLCollectionOf;\\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\\n getElementsByTagName(qualifiedName: K): HTMLCollectionOf;\\n getElementsByTagName(qualifiedName: string): HTMLCollectionOf;\\n getElementsByTagNameNS(namespaceURI: \\\"http://www.w3.org/1999/xhtml\\\", localName: string): HTMLCollectionOf;\\n getElementsByTagNameNS(namespaceURI: \\\"http://www.w3.org/2000/svg\\\", localName: string): HTMLCollectionOf;\\n getElementsByTagNameNS(namespace: string | null, localName: string): HTMLCollectionOf;\\n /**\\n * Returns true if element has an attribute whose qualified name is qualifiedName, and false otherwise.\\n */\\n hasAttribute(qualifiedName: string): boolean;\\n /**\\n * Returns true if element has an attribute whose namespace is namespace and local name is localName.\\n */\\n hasAttributeNS(namespace: string | null, localName: string): boolean;\\n /**\\n * Returns true if element has attributes, and false otherwise.\\n */\\n hasAttributes(): boolean;\\n hasPointerCapture(pointerId: number): boolean;\\n insertAdjacentElement(where: InsertPosition, element: Element): Element | null;\\n insertAdjacentHTML(position: InsertPosition, text: string): void;\\n insertAdjacentText(where: InsertPosition, data: string): void;\\n /**\\n * Returns true if matching selectors against element's root yields element, and false otherwise.\\n */\\n matches(selectors: string): boolean;\\n releasePointerCapture(pointerId: number): void;\\n /**\\n * Removes element's first attribute whose qualified name is qualifiedName.\\n */\\n removeAttribute(qualifiedName: string): void;\\n /**\\n * Removes element's attribute whose namespace is namespace and local name is localName.\\n */\\n removeAttributeNS(namespace: string | null, localName: string): void;\\n removeAttributeNode(attr: Attr): Attr;\\n /**\\n * Displays element fullscreen and resolves promise when done.\\n *\\n * When supplied, options's navigationUI member indicates whether showing navigation UI while in fullscreen is preferred or not. If set to \\\"show\\\", navigation simplicity is preferred over screen space, and if set to \\\"hide\\\", more screen space is preferred. User agents are always free to honor user preference over the application's. The default value \\\"auto\\\" indicates no application preference.\\n */\\n requestFullscreen(options?: FullscreenOptions): Promise;\\n requestPointerLock(): void;\\n scroll(options?: ScrollToOptions): void;\\n scroll(x: number, y: number): void;\\n scrollBy(options?: ScrollToOptions): void;\\n scrollBy(x: number, y: number): void;\\n scrollIntoView(arg?: boolean | ScrollIntoViewOptions): void;\\n scrollTo(options?: ScrollToOptions): void;\\n scrollTo(x: number, y: number): void;\\n /**\\n * Sets the value of element's first attribute whose qualified name is qualifiedName to value.\\n */\\n setAttribute(qualifiedName: string, value: string): void;\\n /**\\n * Sets the value of element's attribute whose namespace is namespace and local name is localName to value.\\n */\\n setAttributeNS(namespace: string | null, qualifiedName: string, value: string): void;\\n setAttributeNode(attr: Attr): Attr | null;\\n setAttributeNodeNS(attr: Attr): Attr | null;\\n setPointerCapture(pointerId: number): void;\\n /**\\n * If force is not given, \\\"toggles\\\" qualifiedName, removing it if it is present and adding it if it is not present. If force is true, adds qualifiedName. If force is false, removes qualifiedName.\\n *\\n * Returns true if qualifiedName is now present, and false otherwise.\\n */\\n toggleAttribute(qualifiedName: string, force?: boolean): boolean;\\n /** @deprecated This is a legacy alias of `matches`. */\\n webkitMatchesSelector(selectors: string): boolean;\\n addEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: Element, ev: ElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var Element: {\\n prototype: Element;\\n new(): Element;\\n};\\n\\ninterface ElementCSSInlineStyle {\\n readonly style: CSSStyleDeclaration;\\n}\\n\\ninterface ElementContentEditable {\\n contentEditable: string;\\n enterKeyHint: string;\\n inputMode: string;\\n readonly isContentEditable: boolean;\\n}\\n\\n/** Events providing information related to errors in scripts or in files. */\\ninterface ErrorEvent extends Event {\\n readonly colno: number;\\n readonly error: any;\\n readonly filename: string;\\n readonly lineno: number;\\n readonly message: string;\\n}\\n\\ndeclare var ErrorEvent: {\\n prototype: ErrorEvent;\\n new(type: string, eventInitDict?: ErrorEventInit): ErrorEvent;\\n};\\n\\n/** An event which takes place in the DOM. */\\ninterface Event {\\n /**\\n * Returns true or false depending on how event was initialized. True if event goes through its target's ancestors in reverse tree order, and false otherwise.\\n */\\n readonly bubbles: boolean;\\n cancelBubble: boolean;\\n /**\\n * Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method.\\n */\\n readonly cancelable: boolean;\\n /**\\n * Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise.\\n */\\n readonly composed: boolean;\\n /**\\n * Returns the object whose event listener's callback is currently being invoked.\\n */\\n readonly currentTarget: EventTarget | null;\\n /**\\n * Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise.\\n */\\n readonly defaultPrevented: boolean;\\n /**\\n * Returns the event's phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE.\\n */\\n readonly eventPhase: number;\\n /**\\n * Returns true if event was dispatched by the user agent, and false otherwise.\\n */\\n readonly isTrusted: boolean;\\n /** @deprecated */\\n returnValue: boolean;\\n /** @deprecated */\\n readonly srcElement: EventTarget | null;\\n /**\\n * Returns the object to which event is dispatched (its target).\\n */\\n readonly target: EventTarget | null;\\n /**\\n * Returns the event's timestamp as the number of milliseconds measured relative to the time origin.\\n */\\n readonly timeStamp: DOMHighResTimeStamp;\\n /**\\n * Returns the type of event, e.g. \\\"click\\\", \\\"hashchange\\\", or \\\"submit\\\".\\n */\\n readonly type: string;\\n /**\\n * Returns the invocation target objects of event's path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root's mode is \\\"closed\\\" that are not reachable from event's currentTarget.\\n */\\n composedPath(): EventTarget[];\\n /** @deprecated */\\n initEvent(type: string, bubbles?: boolean, cancelable?: boolean): void;\\n /**\\n * If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.\\n */\\n preventDefault(): void;\\n /**\\n * Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.\\n */\\n stopImmediatePropagation(): void;\\n /**\\n * When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.\\n */\\n stopPropagation(): void;\\n readonly AT_TARGET: number;\\n readonly BUBBLING_PHASE: number;\\n readonly CAPTURING_PHASE: number;\\n readonly NONE: number;\\n}\\n\\ndeclare var Event: {\\n prototype: Event;\\n new(type: string, eventInitDict?: EventInit): Event;\\n readonly AT_TARGET: number;\\n readonly BUBBLING_PHASE: number;\\n readonly CAPTURING_PHASE: number;\\n readonly NONE: number;\\n};\\n\\ninterface EventListener {\\n (evt: Event): void;\\n}\\n\\ninterface EventListenerObject {\\n handleEvent(object: Event): void;\\n}\\n\\ninterface EventSourceEventMap {\\n \\\"error\\\": Event;\\n \\\"message\\\": MessageEvent;\\n \\\"open\\\": Event;\\n}\\n\\ninterface EventSource extends EventTarget {\\n onerror: ((this: EventSource, ev: Event) => any) | null;\\n onmessage: ((this: EventSource, ev: MessageEvent) => any) | null;\\n onopen: ((this: EventSource, ev: Event) => any) | null;\\n /**\\n * Returns the state of this EventSource object's connection. It can have the values described below.\\n */\\n readonly readyState: number;\\n /**\\n * Returns the URL providing the event stream.\\n */\\n readonly url: string;\\n /**\\n * Returns true if the credentials mode for connection requests to the URL providing the event stream is set to \\\"include\\\", and false otherwise.\\n */\\n readonly withCredentials: boolean;\\n /**\\n * Aborts any instances of the fetch algorithm started for this EventSource object, and sets the readyState attribute to CLOSED.\\n */\\n close(): void;\\n readonly CLOSED: number;\\n readonly CONNECTING: number;\\n readonly OPEN: number;\\n addEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: EventSource, ev: EventSourceEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var EventSource: {\\n prototype: EventSource;\\n new(url: string | URL, eventSourceInitDict?: EventSourceInit): EventSource;\\n readonly CLOSED: number;\\n readonly CONNECTING: number;\\n readonly OPEN: number;\\n};\\n\\n/** EventTarget is a DOM interface implemented by objects that can receive events and may have listeners for them. */\\ninterface EventTarget {\\n /**\\n * Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched.\\n *\\n * The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture.\\n *\\n * When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET.\\n *\\n * When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in § 2.8 Observing event listeners.\\n *\\n * When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed.\\n *\\n * If an AbortSignal is passed for options's signal, then the event listener will be removed when signal is aborted.\\n *\\n * The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.\\n */\\n addEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: AddEventListenerOptions | boolean): void;\\n /**\\n * Dispatches a synthetic event event to target and returns true if either event's cancelable attribute value is false or its preventDefault() method was not invoked, and false otherwise.\\n */\\n dispatchEvent(event: Event): boolean;\\n /**\\n * Removes the event listener in target's event listener list with the same type, callback, and options.\\n */\\n removeEventListener(type: string, callback: EventListenerOrEventListenerObject | null, options?: EventListenerOptions | boolean): void;\\n}\\n\\ndeclare var EventTarget: {\\n prototype: EventTarget;\\n new(): EventTarget;\\n};\\n\\n/** @deprecated */\\ninterface External {\\n /** @deprecated */\\n AddSearchProvider(): void;\\n /** @deprecated */\\n IsSearchProviderInstalled(): void;\\n}\\n\\n/** @deprecated */\\ndeclare var External: {\\n prototype: External;\\n new(): External;\\n};\\n\\n/** Provides information about files and allows JavaScript in a web page to access their content. */\\ninterface File extends Blob {\\n readonly lastModified: number;\\n readonly name: string;\\n readonly webkitRelativePath: string;\\n}\\n\\ndeclare var File: {\\n prototype: File;\\n new(fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;\\n};\\n\\n/** An object of this type is returned by the files property of the HTML element; this lets you access the list of files selected with the element. It's also used for a list of files dropped into web content when using the drag and drop API; see the DataTransfer object for details on this usage. */\\ninterface FileList {\\n readonly length: number;\\n item(index: number): File | null;\\n [index: number]: File;\\n}\\n\\ndeclare var FileList: {\\n prototype: FileList;\\n new(): FileList;\\n};\\n\\ninterface FileReaderEventMap {\\n \\\"abort\\\": ProgressEvent;\\n \\\"error\\\": ProgressEvent;\\n \\\"load\\\": ProgressEvent;\\n \\\"loadend\\\": ProgressEvent;\\n \\\"loadstart\\\": ProgressEvent;\\n \\\"progress\\\": ProgressEvent;\\n}\\n\\n/** Lets web applications asynchronously read the contents of files (or raw data buffers) stored on the user's computer, using File or Blob objects to specify the file or data to read. */\\ninterface FileReader extends EventTarget {\\n readonly error: DOMException | null;\\n onabort: ((this: FileReader, ev: ProgressEvent) => any) | null;\\n onerror: ((this: FileReader, ev: ProgressEvent) => any) | null;\\n onload: ((this: FileReader, ev: ProgressEvent) => any) | null;\\n onloadend: ((this: FileReader, ev: ProgressEvent) => any) | null;\\n onloadstart: ((this: FileReader, ev: ProgressEvent) => any) | null;\\n onprogress: ((this: FileReader, ev: ProgressEvent) => any) | null;\\n readonly readyState: number;\\n readonly result: string | ArrayBuffer | null;\\n abort(): void;\\n readAsArrayBuffer(blob: Blob): void;\\n readAsBinaryString(blob: Blob): void;\\n readAsDataURL(blob: Blob): void;\\n readAsText(blob: Blob, encoding?: string): void;\\n readonly DONE: number;\\n readonly EMPTY: number;\\n readonly LOADING: number;\\n addEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: FileReader, ev: FileReaderEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var FileReader: {\\n prototype: FileReader;\\n new(): FileReader;\\n readonly DONE: number;\\n readonly EMPTY: number;\\n readonly LOADING: number;\\n};\\n\\ninterface FileSystem {\\n readonly name: string;\\n readonly root: FileSystemDirectoryEntry;\\n}\\n\\ndeclare var FileSystem: {\\n prototype: FileSystem;\\n new(): FileSystem;\\n};\\n\\ninterface FileSystemDirectoryEntry extends FileSystemEntry {\\n createReader(): FileSystemDirectoryReader;\\n getDirectory(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\\n getFile(path?: string | null, options?: FileSystemFlags, successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\\n}\\n\\ndeclare var FileSystemDirectoryEntry: {\\n prototype: FileSystemDirectoryEntry;\\n new(): FileSystemDirectoryEntry;\\n};\\n\\n/** @deprecated */\\ninterface FileSystemDirectoryReader {\\n /** @deprecated */\\n readEntries(successCallback: FileSystemEntriesCallback, errorCallback?: ErrorCallback): void;\\n}\\n\\n/** @deprecated */\\ndeclare var FileSystemDirectoryReader: {\\n prototype: FileSystemDirectoryReader;\\n new(): FileSystemDirectoryReader;\\n};\\n\\ninterface FileSystemEntry {\\n readonly filesystem: FileSystem;\\n readonly fullPath: string;\\n readonly isDirectory: boolean;\\n readonly isFile: boolean;\\n readonly name: string;\\n getParent(successCallback?: FileSystemEntryCallback, errorCallback?: ErrorCallback): void;\\n}\\n\\ndeclare var FileSystemEntry: {\\n prototype: FileSystemEntry;\\n new(): FileSystemEntry;\\n};\\n\\ninterface FileSystemFileEntry extends FileSystemEntry {\\n file(successCallback: FileCallback, errorCallback?: ErrorCallback): void;\\n}\\n\\ndeclare var FileSystemFileEntry: {\\n prototype: FileSystemFileEntry;\\n new(): FileSystemFileEntry;\\n};\\n\\n/** Focus-related events like focus, blur, focusin, or focusout. */\\ninterface FocusEvent extends UIEvent {\\n readonly relatedTarget: EventTarget | null;\\n}\\n\\ndeclare var FocusEvent: {\\n prototype: FocusEvent;\\n new(type: string, eventInitDict?: FocusEventInit): FocusEvent;\\n};\\n\\ninterface FontFace {\\n ascentOverride: string;\\n descentOverride: string;\\n display: string;\\n family: string;\\n featureSettings: string;\\n lineGapOverride: string;\\n readonly loaded: Promise;\\n readonly status: FontFaceLoadStatus;\\n stretch: string;\\n style: string;\\n unicodeRange: string;\\n variant: string;\\n variationSettings: string;\\n weight: string;\\n load(): Promise;\\n}\\n\\ndeclare var FontFace: {\\n prototype: FontFace;\\n new(family: string, source: string | BinaryData, descriptors?: FontFaceDescriptors): FontFace;\\n};\\n\\ninterface FontFaceSetEventMap {\\n \\\"loading\\\": Event;\\n \\\"loadingdone\\\": Event;\\n \\\"loadingerror\\\": Event;\\n}\\n\\ninterface FontFaceSet extends EventTarget {\\n onloading: ((this: FontFaceSet, ev: Event) => any) | null;\\n onloadingdone: ((this: FontFaceSet, ev: Event) => any) | null;\\n onloadingerror: ((this: FontFaceSet, ev: Event) => any) | null;\\n readonly ready: Promise;\\n readonly status: FontFaceSetLoadStatus;\\n check(font: string, text?: string): boolean;\\n load(font: string, text?: string): Promise;\\n forEach(callbackfn: (value: FontFace, key: FontFace, parent: FontFaceSet) => void, thisArg?: any): void;\\n addEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: FontFaceSet, ev: FontFaceSetEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var FontFaceSet: {\\n prototype: FontFaceSet;\\n new(initialFaces: FontFace[]): FontFaceSet;\\n};\\n\\ninterface FontFaceSetLoadEvent extends Event {\\n readonly fontfaces: ReadonlyArray;\\n}\\n\\ndeclare var FontFaceSetLoadEvent: {\\n prototype: FontFaceSetLoadEvent;\\n new(type: string, eventInitDict?: FontFaceSetLoadEventInit): FontFaceSetLoadEvent;\\n};\\n\\ninterface FontFaceSource {\\n readonly fonts: FontFaceSet;\\n}\\n\\n/** Provides a way to easily construct a set of key/value pairs representing form fields and their values, which can then be easily sent using the XMLHttpRequest.send() method. It uses the same format a form would use if the encoding type were set to \\\"multipart/form-data\\\". */\\ninterface FormData {\\n append(name: string, value: string | Blob, fileName?: string): void;\\n delete(name: string): void;\\n get(name: string): FormDataEntryValue | null;\\n getAll(name: string): FormDataEntryValue[];\\n has(name: string): boolean;\\n set(name: string, value: string | Blob, fileName?: string): void;\\n forEach(callbackfn: (value: FormDataEntryValue, key: string, parent: FormData) => void, thisArg?: any): void;\\n}\\n\\ndeclare var FormData: {\\n prototype: FormData;\\n new(form?: HTMLFormElement): FormData;\\n};\\n\\ninterface FormDataEvent extends Event {\\n /**\\n * Returns a FormData object representing names and values of elements associated to the target form. Operations on the FormData object will affect form data to be submitted.\\n */\\n readonly formData: FormData;\\n}\\n\\ndeclare var FormDataEvent: {\\n prototype: FormDataEvent;\\n new(type: string, eventInitDict: FormDataEventInit): FormDataEvent;\\n};\\n\\n/** A change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels. */\\ninterface GainNode extends AudioNode {\\n readonly gain: AudioParam;\\n}\\n\\ndeclare var GainNode: {\\n prototype: GainNode;\\n new(context: BaseAudioContext, options?: GainOptions): GainNode;\\n};\\n\\n/** This Gamepad API interface defines an individual gamepad or other controller, allowing access to information such as button presses, axis positions, and id. */\\ninterface Gamepad {\\n readonly axes: ReadonlyArray;\\n readonly buttons: ReadonlyArray;\\n readonly connected: boolean;\\n readonly hapticActuators: ReadonlyArray;\\n readonly id: string;\\n readonly index: number;\\n readonly mapping: GamepadMappingType;\\n readonly timestamp: DOMHighResTimeStamp;\\n}\\n\\ndeclare var Gamepad: {\\n prototype: Gamepad;\\n new(): Gamepad;\\n};\\n\\n/** An individual button of a gamepad or other controller, allowing access to the current state of different types of buttons available on the control device. */\\ninterface GamepadButton {\\n readonly pressed: boolean;\\n readonly touched: boolean;\\n readonly value: number;\\n}\\n\\ndeclare var GamepadButton: {\\n prototype: GamepadButton;\\n new(): GamepadButton;\\n};\\n\\n/** This Gamepad API interface contains references to gamepads connected to the system, which is what the gamepad events Window.gamepadconnected and Window.gamepaddisconnected are fired in response to. */\\ninterface GamepadEvent extends Event {\\n readonly gamepad: Gamepad;\\n}\\n\\ndeclare var GamepadEvent: {\\n prototype: GamepadEvent;\\n new(type: string, eventInitDict: GamepadEventInit): GamepadEvent;\\n};\\n\\n/** This Gamepad API interface represents hardware in the controller designed to provide haptic feedback to the user (if available), most commonly vibration hardware. */\\ninterface GamepadHapticActuator {\\n readonly type: GamepadHapticActuatorType;\\n}\\n\\ndeclare var GamepadHapticActuator: {\\n prototype: GamepadHapticActuator;\\n new(): GamepadHapticActuator;\\n};\\n\\ninterface GenericTransformStream {\\n readonly readable: ReadableStream;\\n readonly writable: WritableStream;\\n}\\n\\n/** An object able to programmatically obtain the position of the device. It gives Web content access to the location of the device. This allows a Web site or app to offer customized results based on the user's location. */\\ninterface Geolocation {\\n clearWatch(watchId: number): void;\\n getCurrentPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): void;\\n watchPosition(successCallback: PositionCallback, errorCallback?: PositionErrorCallback | null, options?: PositionOptions): number;\\n}\\n\\ndeclare var Geolocation: {\\n prototype: Geolocation;\\n new(): Geolocation;\\n};\\n\\ninterface GeolocationCoordinates {\\n readonly accuracy: number;\\n readonly altitude: number | null;\\n readonly altitudeAccuracy: number | null;\\n readonly heading: number | null;\\n readonly latitude: number;\\n readonly longitude: number;\\n readonly speed: number | null;\\n}\\n\\ndeclare var GeolocationCoordinates: {\\n prototype: GeolocationCoordinates;\\n new(): GeolocationCoordinates;\\n};\\n\\ninterface GeolocationPosition {\\n readonly coords: GeolocationCoordinates;\\n readonly timestamp: DOMTimeStamp;\\n}\\n\\ndeclare var GeolocationPosition: {\\n prototype: GeolocationPosition;\\n new(): GeolocationPosition;\\n};\\n\\ninterface GeolocationPositionError {\\n readonly code: number;\\n readonly message: string;\\n readonly PERMISSION_DENIED: number;\\n readonly POSITION_UNAVAILABLE: number;\\n readonly TIMEOUT: number;\\n}\\n\\ndeclare var GeolocationPositionError: {\\n prototype: GeolocationPositionError;\\n new(): GeolocationPositionError;\\n readonly PERMISSION_DENIED: number;\\n readonly POSITION_UNAVAILABLE: number;\\n readonly TIMEOUT: number;\\n};\\n\\ninterface GlobalEventHandlersEventMap {\\n \\\"abort\\\": UIEvent;\\n \\\"animationcancel\\\": AnimationEvent;\\n \\\"animationend\\\": AnimationEvent;\\n \\\"animationiteration\\\": AnimationEvent;\\n \\\"animationstart\\\": AnimationEvent;\\n \\\"auxclick\\\": MouseEvent;\\n \\\"beforeinput\\\": InputEvent;\\n \\\"blur\\\": FocusEvent;\\n \\\"canplay\\\": Event;\\n \\\"canplaythrough\\\": Event;\\n \\\"change\\\": Event;\\n \\\"click\\\": MouseEvent;\\n \\\"close\\\": Event;\\n \\\"compositionend\\\": CompositionEvent;\\n \\\"compositionstart\\\": CompositionEvent;\\n \\\"compositionupdate\\\": CompositionEvent;\\n \\\"contextmenu\\\": MouseEvent;\\n \\\"cuechange\\\": Event;\\n \\\"dblclick\\\": MouseEvent;\\n \\\"drag\\\": DragEvent;\\n \\\"dragend\\\": DragEvent;\\n \\\"dragenter\\\": DragEvent;\\n \\\"dragleave\\\": DragEvent;\\n \\\"dragover\\\": DragEvent;\\n \\\"dragstart\\\": DragEvent;\\n \\\"drop\\\": DragEvent;\\n \\\"durationchange\\\": Event;\\n \\\"emptied\\\": Event;\\n \\\"ended\\\": Event;\\n \\\"error\\\": ErrorEvent;\\n \\\"focus\\\": FocusEvent;\\n \\\"focusin\\\": FocusEvent;\\n \\\"focusout\\\": FocusEvent;\\n \\\"formdata\\\": FormDataEvent;\\n \\\"gotpointercapture\\\": PointerEvent;\\n \\\"input\\\": Event;\\n \\\"invalid\\\": Event;\\n \\\"keydown\\\": KeyboardEvent;\\n \\\"keypress\\\": KeyboardEvent;\\n \\\"keyup\\\": KeyboardEvent;\\n \\\"load\\\": Event;\\n \\\"loadeddata\\\": Event;\\n \\\"loadedmetadata\\\": Event;\\n \\\"loadstart\\\": Event;\\n \\\"lostpointercapture\\\": PointerEvent;\\n \\\"mousedown\\\": MouseEvent;\\n \\\"mouseenter\\\": MouseEvent;\\n \\\"mouseleave\\\": MouseEvent;\\n \\\"mousemove\\\": MouseEvent;\\n \\\"mouseout\\\": MouseEvent;\\n \\\"mouseover\\\": MouseEvent;\\n \\\"mouseup\\\": MouseEvent;\\n \\\"pause\\\": Event;\\n \\\"play\\\": Event;\\n \\\"playing\\\": Event;\\n \\\"pointercancel\\\": PointerEvent;\\n \\\"pointerdown\\\": PointerEvent;\\n \\\"pointerenter\\\": PointerEvent;\\n \\\"pointerleave\\\": PointerEvent;\\n \\\"pointermove\\\": PointerEvent;\\n \\\"pointerout\\\": PointerEvent;\\n \\\"pointerover\\\": PointerEvent;\\n \\\"pointerup\\\": PointerEvent;\\n \\\"progress\\\": ProgressEvent;\\n \\\"ratechange\\\": Event;\\n \\\"reset\\\": Event;\\n \\\"resize\\\": UIEvent;\\n \\\"scroll\\\": Event;\\n \\\"securitypolicyviolation\\\": SecurityPolicyViolationEvent;\\n \\\"seeked\\\": Event;\\n \\\"seeking\\\": Event;\\n \\\"select\\\": Event;\\n \\\"selectionchange\\\": Event;\\n \\\"selectstart\\\": Event;\\n \\\"stalled\\\": Event;\\n \\\"submit\\\": Event;\\n \\\"suspend\\\": Event;\\n \\\"timeupdate\\\": Event;\\n \\\"toggle\\\": Event;\\n \\\"touchcancel\\\": TouchEvent;\\n \\\"touchend\\\": TouchEvent;\\n \\\"touchmove\\\": TouchEvent;\\n \\\"touchstart\\\": TouchEvent;\\n \\\"transitioncancel\\\": TransitionEvent;\\n \\\"transitionend\\\": TransitionEvent;\\n \\\"transitionrun\\\": TransitionEvent;\\n \\\"transitionstart\\\": TransitionEvent;\\n \\\"volumechange\\\": Event;\\n \\\"waiting\\\": Event;\\n \\\"webkitanimationend\\\": Event;\\n \\\"webkitanimationiteration\\\": Event;\\n \\\"webkitanimationstart\\\": Event;\\n \\\"webkittransitionend\\\": Event;\\n \\\"wheel\\\": WheelEvent;\\n}\\n\\ninterface GlobalEventHandlers {\\n /**\\n * Fires when the user aborts the download.\\n * @param ev The event.\\n */\\n onabort: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\\n onanimationcancel: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\\n onanimationend: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\\n onanimationiteration: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\\n onanimationstart: ((this: GlobalEventHandlers, ev: AnimationEvent) => any) | null;\\n onauxclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Fires when the object loses the input focus.\\n * @param ev The focus event.\\n */\\n onblur: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\\n /**\\n * Occurs when playback is possible, but would require further buffering.\\n * @param ev The event.\\n */\\n oncanplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n oncanplaythrough: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the contents of the object or selection have changed.\\n * @param ev The event.\\n */\\n onchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the user clicks the left mouse button on the object\\n * @param ev The mouse event.\\n */\\n onclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n onclose: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the user clicks the right mouse button in the client area, opening the context menu.\\n * @param ev The mouse event.\\n */\\n oncontextmenu: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n oncuechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the user double-clicks the object.\\n * @param ev The mouse event.\\n */\\n ondblclick: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Fires on the source object continuously during a drag operation.\\n * @param ev The event.\\n */\\n ondrag: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n /**\\n * Fires on the source object when the user releases the mouse at the close of a drag operation.\\n * @param ev The event.\\n */\\n ondragend: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n /**\\n * Fires on the target element when the user drags the object to a valid drop target.\\n * @param ev The drag event.\\n */\\n ondragenter: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n /**\\n * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.\\n * @param ev The drag event.\\n */\\n ondragleave: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n /**\\n * Fires on the target element continuously while the user drags the object over a valid drop target.\\n * @param ev The event.\\n */\\n ondragover: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n /**\\n * Fires on the source object when the user starts to drag a text selection or selected object.\\n * @param ev The event.\\n */\\n ondragstart: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n ondrop: ((this: GlobalEventHandlers, ev: DragEvent) => any) | null;\\n /**\\n * Occurs when the duration attribute is updated.\\n * @param ev The event.\\n */\\n ondurationchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the media element is reset to its initial state.\\n * @param ev The event.\\n */\\n onemptied: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the end of playback is reached.\\n * @param ev The event\\n */\\n onended: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when an error occurs during object loading.\\n * @param ev The event.\\n */\\n onerror: OnErrorEventHandler;\\n /**\\n * Fires when the object receives focus.\\n * @param ev The event.\\n */\\n onfocus: ((this: GlobalEventHandlers, ev: FocusEvent) => any) | null;\\n onformdata: ((this: GlobalEventHandlers, ev: FormDataEvent) => any) | null;\\n ongotpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n oninput: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n oninvalid: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the user presses a key.\\n * @param ev The keyboard event\\n */\\n onkeydown: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\\n /**\\n * Fires when the user presses an alphanumeric key.\\n * @param ev The event.\\n * @deprecated\\n */\\n onkeypress: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\\n /**\\n * Fires when the user releases a key.\\n * @param ev The keyboard event\\n */\\n onkeyup: ((this: GlobalEventHandlers, ev: KeyboardEvent) => any) | null;\\n /**\\n * Fires immediately after the browser loads the object.\\n * @param ev The event.\\n */\\n onload: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when media data is loaded at the current playback position.\\n * @param ev The event.\\n */\\n onloadeddata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the duration and dimensions of the media have been determined.\\n * @param ev The event.\\n */\\n onloadedmetadata: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when Internet Explorer begins looking for media data.\\n * @param ev The event.\\n */\\n onloadstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onlostpointercapture: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n /**\\n * Fires when the user clicks the object with either mouse button.\\n * @param ev The mouse event.\\n */\\n onmousedown: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n onmouseenter: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n onmouseleave: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Fires when the user moves the mouse over the object.\\n * @param ev The mouse event.\\n */\\n onmousemove: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Fires when the user moves the mouse pointer outside the boundaries of the object.\\n * @param ev The mouse event.\\n */\\n onmouseout: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Fires when the user moves the mouse pointer into the object.\\n * @param ev The mouse event.\\n */\\n onmouseover: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Fires when the user releases a mouse button while the mouse is over the object.\\n * @param ev The mouse event.\\n */\\n onmouseup: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null;\\n /**\\n * Occurs when playback is paused.\\n * @param ev The event.\\n */\\n onpause: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the play method is requested.\\n * @param ev The event.\\n */\\n onplay: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the audio or video has started playing.\\n * @param ev The event.\\n */\\n onplaying: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onpointercancel: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointerdown: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointerenter: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointerleave: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointermove: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointerout: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointerover: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n onpointerup: ((this: GlobalEventHandlers, ev: PointerEvent) => any) | null;\\n /**\\n * Occurs to indicate progress while downloading media data.\\n * @param ev The event.\\n */\\n onprogress: ((this: GlobalEventHandlers, ev: ProgressEvent) => any) | null;\\n /**\\n * Occurs when the playback rate is increased or decreased.\\n * @param ev The event.\\n */\\n onratechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the user resets a form.\\n * @param ev The event.\\n */\\n onreset: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onresize: ((this: GlobalEventHandlers, ev: UIEvent) => any) | null;\\n /**\\n * Fires when the user repositions the scroll box in the scroll bar on the object.\\n * @param ev The event.\\n */\\n onscroll: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the seek operation ends.\\n * @param ev The event.\\n */\\n onseeked: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the current playback position is moved.\\n * @param ev The event.\\n */\\n onseeking: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Fires when the current selection changes.\\n * @param ev The event.\\n */\\n onselect: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onselectionchange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onselectstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when the download has stopped.\\n * @param ev The event.\\n */\\n onstalled: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onsubmit: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs if the load operation has been intentionally halted.\\n * @param ev The event.\\n */\\n onsuspend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs to indicate the current playback position.\\n * @param ev The event.\\n */\\n ontimeupdate: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n ontoggle: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n ontouchcancel?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\\n ontouchend?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\\n ontouchmove?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\\n ontouchstart?: ((this: GlobalEventHandlers, ev: TouchEvent) => any) | null | undefined;\\n ontransitioncancel: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\\n ontransitionend: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\\n ontransitionrun: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\\n ontransitionstart: ((this: GlobalEventHandlers, ev: TransitionEvent) => any) | null;\\n /**\\n * Occurs when the volume is changed, or playback is muted or unmuted.\\n * @param ev The event.\\n */\\n onvolumechange: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n /**\\n * Occurs when playback stops because the next frame of a video resource is not available.\\n * @param ev The event.\\n */\\n onwaiting: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onwebkitanimationend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onwebkitanimationiteration: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;\\n onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;\\n addEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: GlobalEventHandlers, ev: GlobalEventHandlersEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ninterface HTMLAllCollection {\\n /**\\n * Returns the number of elements in the collection.\\n */\\n readonly length: number;\\n /**\\n * Returns the item with index index from the collection (determined by tree order).\\n */\\n item(nameOrIndex?: string): HTMLCollection | Element | null;\\n /**\\n * Returns the item with ID or name name from the collection.\\n *\\n * If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.\\n *\\n * Only button, form, iframe, input, map, meta, object, select, and textarea elements can have a name for the purpose of this method; their name is given by the value of their name attribute.\\n */\\n namedItem(name: string): HTMLCollection | Element | null;\\n [index: number]: Element;\\n}\\n\\ndeclare var HTMLAllCollection: {\\n prototype: HTMLAllCollection;\\n new(): HTMLAllCollection;\\n};\\n\\n/** Hyperlink elements and provides special properties and methods (beyond those of the regular HTMLElement object interface that they inherit from) for manipulating the layout and presentation of such elements. */\\ninterface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {\\n /**\\n * Sets or retrieves the character set used to encode the object.\\n * @deprecated\\n */\\n charset: string;\\n /**\\n * Sets or retrieves the coordinates of the object.\\n * @deprecated\\n */\\n coords: string;\\n download: string;\\n /**\\n * Sets or retrieves the language code of the object.\\n */\\n hreflang: string;\\n /**\\n * Sets or retrieves the shape of the object.\\n * @deprecated\\n */\\n name: string;\\n ping: string;\\n referrerPolicy: string;\\n /**\\n * Sets or retrieves the relationship between the object and the destination of the link.\\n */\\n rel: string;\\n readonly relList: DOMTokenList;\\n /**\\n * Sets or retrieves the relationship between the object and the destination of the link.\\n * @deprecated\\n */\\n rev: string;\\n /**\\n * Sets or retrieves the shape of the object.\\n * @deprecated\\n */\\n shape: string;\\n /**\\n * Sets or retrieves the window or frame at which to target content.\\n */\\n target: string;\\n /**\\n * Retrieves or sets the text of the object as a string.\\n */\\n text: string;\\n type: string;\\n addEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var HTMLAnchorElement: {\\n prototype: HTMLAnchorElement;\\n new(): HTMLAnchorElement;\\n};\\n\\n/** Provides special properties and methods (beyond those of the regular object HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of elements. */\\ninterface HTMLAreaElement extends HTMLElement, HTMLHyperlinkElementUtils {\\n /**\\n * Sets or retrieves a text alternative to the graphic.\\n */\\n alt: string;\\n /**\\n * Sets or retrieves the coordinates of the object.\\n */\\n coords: string;\\n download: string;\\n /**\\n * Sets or gets whether clicks in this region cause action.\\n * @deprecated\\n */\\n noHref: boolean;\\n ping: string;\\n referrerPolicy: string;\\n rel: string;\\n readonly relList: DOMTokenList;\\n /**\\n * Sets or retrieves the shape of the object.\\n */\\n shape: string;\\n /**\\n * Sets or retrieves the window or frame at which to target content.\\n */\\n target: string;\\n addEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;\\n addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;\\n removeEventListener(type: K, listener: (this: HTMLAreaElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;\\n removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;\\n}\\n\\ndeclare var HTMLAreaElement: {\\n prototype: HTMLAreaElement;\\n new(): HTMLAreaElement;\\n};\\n\\n/** Provides access to the properties of