repoburg 1.0.58 → 1.0.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/backend/dist/context-generation/context-generation.service.js +5 -3
- package/backend/dist/context-generation/context-generation.service.js.map +1 -1
- package/backend/dist/tsconfig.build.tsbuildinfo +1 -1
- package/backend/dist/workspace/workspace.service.js +5 -3
- package/backend/dist/workspace/workspace.service.js.map +1 -1
- package/backend/node_modules/@eslint/eslintrc/LICENSE +19 -0
- package/backend/node_modules/@eslint/eslintrc/README.md +115 -0
- package/backend/node_modules/@eslint/eslintrc/conf/config-schema.js +79 -0
- package/backend/node_modules/@eslint/eslintrc/conf/environments.js +215 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs +1104 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc-universal.cjs.map +1 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs +4344 -0
- package/backend/node_modules/@eslint/eslintrc/dist/eslintrc.cjs.map +1 -0
- package/backend/node_modules/@eslint/eslintrc/lib/cascading-config-array-factory.js +532 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-array.js +523 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/config-dependency.js +124 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/extracted-config.js +145 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/ignore-pattern.js +238 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/index.js +19 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array/override-tester.js +225 -0
- package/backend/node_modules/@eslint/eslintrc/lib/config-array-factory.js +1151 -0
- package/backend/node_modules/@eslint/eslintrc/lib/flat-compat.js +318 -0
- package/backend/node_modules/@eslint/eslintrc/lib/index-universal.js +29 -0
- package/backend/node_modules/@eslint/eslintrc/lib/index.js +56 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/ajv.js +191 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/config-ops.js +135 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/config-validator.js +325 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/deprecation-warnings.js +63 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/naming.js +96 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/relative-module-resolver.js +42 -0
- package/backend/node_modules/@eslint/eslintrc/lib/shared/types.js +149 -0
- package/backend/node_modules/@eslint/eslintrc/package.json +82 -0
- package/backend/node_modules/@eslint/eslintrc/universal.js +9 -0
- package/backend/node_modules/{brace-expansion → @typescript-eslint/scope-manager}/LICENSE +1 -1
- package/backend/node_modules/@typescript-eslint/scope-manager/README.md +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts +4 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.js +21 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ID.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts +72 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +183 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts +56 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.js +42 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/analyze.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.js +11 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/assert.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/CatchClauseDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ClassNameDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/Definition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts +39 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js +19 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionBase.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +18 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/FunctionNameDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImplicitGlobalVariableDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts +11 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ImportBindingDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/ParameterDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumMemberDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSEnumNameDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TSModuleNameDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/TypeDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/VariableDefinition.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js +30 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/definition/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts +9 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.js +31 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts +16 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js +23 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/base-config.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js +23 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/decorators.legacy.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js +75 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.iterable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js +1436 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/dom.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js +21 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.collection.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js +23 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.core.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js +16 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.generator.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js +55 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.iterable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js +30 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.promise.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js +13 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.proxy.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.reflect.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js +46 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2015.symbol.wellknown.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.array.include.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2016.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.date.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js +24 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.object.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js +19 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.sharedmemory.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2017.typedarrays.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js +16 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asyncgenerator.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js +19 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.asynciterable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.promise.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2018.regexp.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.array.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.object.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2019.symbol.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.bigint.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.date.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js +28 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.number.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.promise.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.sharedmemory.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js +17 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2020.symbol.wellknown.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.promise.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2021.weakref.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js +24 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.array.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js +21 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.error.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js +26 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.object.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.regexp.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.sharedmemory.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2022.string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js +24 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.array.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.collection.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js +16 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es2023.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js +117 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es5.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js +30 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es6.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/es7.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js +24 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.array.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js +19 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.asynciterable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.bigint.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.collection.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js +17 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.decorators.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.disposable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.full.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.intl.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js +18 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.promise.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.string.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.symbol.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/esnext.weakref.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts +93 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js +189 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js +18 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/lib.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js +24 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/scripthost.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js +9 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.importscripts.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js +34 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.iterable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js +589 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/lib/webworker.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts +29 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +311 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts +15 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js +84 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ExportVisitor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts +14 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js +50 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/ImportVisitor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts +29 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +108 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts +89 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +107 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts +87 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +548 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts +33 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js +230 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/TypeVisitor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts +13 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js +41 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/Visitor.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js +80 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/VisitorBase.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts +2 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js +6 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/referencer/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/BlockScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/CatchScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassFieldInitializerScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ClassStaticBlockScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ConditionalTypeScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ForScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts +11 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js +17 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionExpressionNameScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts +13 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js +36 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/FunctionTypeScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts +18 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js +39 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/GlobalScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/MappedTypeScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ModuleScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts +21 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js +3 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/Scope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts +107 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js +351 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeBase.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +25 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/SwitchScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSEnumScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TSModuleScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/TypeScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts +11 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js +22 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/WithScope.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts +20 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js +36 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/scope/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts +34 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js +12 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ESLintScopeVariable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts +25 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js +19 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/ImplicitLibVariable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts +18 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js +33 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/Variable.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts +44 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js +39 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/VariableBase.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts +4 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js +10 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/dist/variable/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/scope-manager/package.json +71 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/LICENSE +21 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/README.md +10 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts +4 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js +7 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/get-keys.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts +3 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.js +8 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/index.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts +4 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.d.ts.map +1 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js +190 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/dist/visitor-keys.js.map +1 -0
- package/backend/node_modules/@typescript-eslint/visitor-keys/package.json +70 -0
- package/backend/node_modules/ansi-styles/index.d.ts +345 -0
- package/backend/node_modules/ansi-styles/index.js +163 -0
- package/backend/node_modules/{strip-ansi → ansi-styles}/package.json +13 -11
- package/backend/node_modules/ansi-styles/readme.md +152 -0
- package/backend/node_modules/ts-api-utils/LICENSE.md +20 -0
- package/backend/node_modules/ts-api-utils/README.md +83 -0
- package/backend/node_modules/ts-api-utils/lib/index.cjs +2307 -0
- package/backend/node_modules/ts-api-utils/lib/index.d.cts +3063 -0
- package/backend/node_modules/ts-api-utils/lib/index.d.ts +3063 -0
- package/backend/node_modules/ts-api-utils/lib/index.js +2106 -0
- package/backend/node_modules/ts-api-utils/package.json +107 -0
- package/backend/node_modules/tsconfig-paths/CHANGELOG.md +407 -0
- package/backend/node_modules/{ms/license.md → tsconfig-paths/LICENSE} +1 -1
- package/backend/node_modules/tsconfig-paths/README.md +269 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js +87 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts +17 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js +216 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js +56 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js +39 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js +18 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js +14 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js +124 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts +1 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js +328 -0
- package/backend/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/config-loader.d.ts +33 -0
- package/backend/node_modules/tsconfig-paths/lib/config-loader.js +48 -0
- package/backend/node_modules/tsconfig-paths/lib/config-loader.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/filesystem.d.ts +34 -0
- package/backend/node_modules/tsconfig-paths/lib/filesystem.js +61 -0
- package/backend/node_modules/tsconfig-paths/lib/filesystem.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/index.d.ts +5 -0
- package/backend/node_modules/tsconfig-paths/lib/index.js +15 -0
- package/backend/node_modules/tsconfig-paths/lib/index.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
- package/backend/node_modules/tsconfig-paths/lib/mapping-entry.js +54 -0
- package/backend/node_modules/tsconfig-paths/lib/mapping-entry.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/match-path-async.d.ts +21 -0
- package/backend/node_modules/tsconfig-paths/lib/match-path-async.js +116 -0
- package/backend/node_modules/tsconfig-paths/lib/match-path-async.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
- package/backend/node_modules/tsconfig-paths/lib/match-path-sync.js +91 -0
- package/backend/node_modules/tsconfig-paths/lib/match-path-sync.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/register.d.ts +12 -0
- package/backend/node_modules/tsconfig-paths/lib/register.js +112 -0
- package/backend/node_modules/tsconfig-paths/lib/register.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/try-path.d.ts +15 -0
- package/backend/node_modules/tsconfig-paths/lib/try-path.js +91 -0
- package/backend/node_modules/tsconfig-paths/lib/try-path.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
- package/backend/node_modules/tsconfig-paths/lib/tsconfig-loader.js +148 -0
- package/backend/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map +1 -0
- package/backend/node_modules/tsconfig-paths/package.json +74 -0
- package/backend/node_modules/tsconfig-paths/register.js +1 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/config-loader.test.ts +101 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/data/match-path-data.ts +230 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/filesystem.test.ts +57 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/mapping-entry.test.ts +43 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts +26 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts +22 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/try-path.test.ts +141 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/tsconfig-loader.test.ts +428 -0
- package/backend/node_modules/tsconfig-paths/src/__tests__/tsconfig-named.json +10 -0
- package/backend/node_modules/tsconfig-paths/src/config-loader.ts +89 -0
- package/backend/node_modules/tsconfig-paths/src/filesystem.ts +93 -0
- package/backend/node_modules/tsconfig-paths/src/index.ts +24 -0
- package/backend/node_modules/tsconfig-paths/src/mapping-entry.ts +65 -0
- package/backend/node_modules/tsconfig-paths/src/match-path-async.ts +223 -0
- package/backend/node_modules/tsconfig-paths/src/match-path-sync.ts +146 -0
- package/backend/node_modules/tsconfig-paths/src/register.ts +123 -0
- package/backend/node_modules/tsconfig-paths/src/try-path.ts +103 -0
- package/backend/node_modules/tsconfig-paths/src/tsconfig-loader.ts +229 -0
- package/package.json +1 -1
- package/backend/node_modules/brace-expansion/README.md +0 -129
- package/backend/node_modules/brace-expansion/index.js +0 -201
- package/backend/node_modules/brace-expansion/package.json +0 -50
- package/backend/node_modules/debug/LICENSE +0 -20
- package/backend/node_modules/debug/README.md +0 -481
- package/backend/node_modules/debug/package.json +0 -64
- package/backend/node_modules/debug/src/browser.js +0 -272
- package/backend/node_modules/debug/src/common.js +0 -292
- package/backend/node_modules/debug/src/index.js +0 -10
- package/backend/node_modules/debug/src/node.js +0 -263
- package/backend/node_modules/glob-parent/LICENSE +0 -15
- package/backend/node_modules/glob-parent/README.md +0 -134
- package/backend/node_modules/glob-parent/index.js +0 -75
- package/backend/node_modules/glob-parent/package.json +0 -54
- package/backend/node_modules/minimatch/LICENSE +0 -15
- package/backend/node_modules/minimatch/README.md +0 -230
- package/backend/node_modules/minimatch/minimatch.js +0 -947
- package/backend/node_modules/minimatch/package.json +0 -33
- package/backend/node_modules/ms/index.js +0 -162
- package/backend/node_modules/ms/package.json +0 -38
- package/backend/node_modules/ms/readme.md +0 -59
- package/backend/node_modules/strip-ansi/index.d.ts +0 -17
- package/backend/node_modules/strip-ansi/index.js +0 -4
- package/backend/node_modules/strip-ansi/readme.md +0 -46
- /package/backend/node_modules/{strip-ansi → ansi-styles}/license +0 -0
|
@@ -0,0 +1,2106 @@
|
|
|
1
|
+
import ts9 from 'typescript';
|
|
2
|
+
|
|
3
|
+
// src/comments.ts
|
|
4
|
+
function forEachToken(node, callback, sourceFile = node.getSourceFile()) {
|
|
5
|
+
const queue = [];
|
|
6
|
+
while (true) {
|
|
7
|
+
if (ts9.isTokenKind(node.kind)) {
|
|
8
|
+
callback(node);
|
|
9
|
+
} else if (
|
|
10
|
+
// eslint-disable-next-line deprecation/deprecation -- need for support of TS < 4.7
|
|
11
|
+
node.kind !== ts9.SyntaxKind.JSDocComment
|
|
12
|
+
) {
|
|
13
|
+
const children = node.getChildren(sourceFile);
|
|
14
|
+
if (children.length === 1) {
|
|
15
|
+
node = children[0];
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
for (let i = children.length - 1; i >= 0; --i) {
|
|
19
|
+
queue.push(children[i]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
if (queue.length === 0) {
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
node = queue.pop();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// src/comments.ts
|
|
30
|
+
function canHaveTrailingTrivia(token) {
|
|
31
|
+
switch (token.kind) {
|
|
32
|
+
case ts9.SyntaxKind.CloseBraceToken:
|
|
33
|
+
return token.parent.kind !== ts9.SyntaxKind.JsxExpression || !isJsxElementOrFragment(token.parent.parent);
|
|
34
|
+
case ts9.SyntaxKind.GreaterThanToken:
|
|
35
|
+
switch (token.parent.kind) {
|
|
36
|
+
case ts9.SyntaxKind.JsxOpeningElement:
|
|
37
|
+
return token.end !== token.parent.end;
|
|
38
|
+
case ts9.SyntaxKind.JsxOpeningFragment:
|
|
39
|
+
return false;
|
|
40
|
+
// would be inside the fragment
|
|
41
|
+
case ts9.SyntaxKind.JsxSelfClosingElement:
|
|
42
|
+
return token.end !== token.parent.end || // if end is not equal, this is part of the type arguments list
|
|
43
|
+
!isJsxElementOrFragment(token.parent.parent);
|
|
44
|
+
// there's only trailing trivia if it's the end of the top element
|
|
45
|
+
case ts9.SyntaxKind.JsxClosingElement:
|
|
46
|
+
case ts9.SyntaxKind.JsxClosingFragment:
|
|
47
|
+
return !isJsxElementOrFragment(token.parent.parent.parent);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
52
|
+
function isJsxElementOrFragment(node) {
|
|
53
|
+
return node.kind === ts9.SyntaxKind.JsxElement || node.kind === ts9.SyntaxKind.JsxFragment;
|
|
54
|
+
}
|
|
55
|
+
function forEachComment(node, callback, sourceFile = node.getSourceFile()) {
|
|
56
|
+
const fullText = sourceFile.text;
|
|
57
|
+
const notJsx = sourceFile.languageVariant !== ts9.LanguageVariant.JSX;
|
|
58
|
+
return forEachToken(
|
|
59
|
+
node,
|
|
60
|
+
(token) => {
|
|
61
|
+
if (token.pos === token.end) {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (token.kind !== ts9.SyntaxKind.JsxText) {
|
|
65
|
+
ts9.forEachLeadingCommentRange(
|
|
66
|
+
fullText,
|
|
67
|
+
// skip shebang at position 0
|
|
68
|
+
token.pos === 0 ? (ts9.getShebang(fullText) ?? "").length : token.pos,
|
|
69
|
+
commentCallback
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
if (notJsx || canHaveTrailingTrivia(token)) {
|
|
73
|
+
return ts9.forEachTrailingCommentRange(
|
|
74
|
+
fullText,
|
|
75
|
+
token.end,
|
|
76
|
+
commentCallback
|
|
77
|
+
);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
sourceFile
|
|
81
|
+
);
|
|
82
|
+
function commentCallback(pos, end, kind) {
|
|
83
|
+
callback(fullText, { end, kind, pos });
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function isCompilerOptionEnabled(options, option) {
|
|
87
|
+
switch (option) {
|
|
88
|
+
case "stripInternal":
|
|
89
|
+
case "declarationMap":
|
|
90
|
+
case "emitDeclarationOnly":
|
|
91
|
+
return options[option] === true && isCompilerOptionEnabled(options, "declaration");
|
|
92
|
+
case "declaration":
|
|
93
|
+
return options.declaration || isCompilerOptionEnabled(options, "composite");
|
|
94
|
+
case "incremental":
|
|
95
|
+
return options.incremental === void 0 ? isCompilerOptionEnabled(options, "composite") : options.incremental;
|
|
96
|
+
case "skipDefaultLibCheck":
|
|
97
|
+
return options.skipDefaultLibCheck || isCompilerOptionEnabled(options, "skipLibCheck");
|
|
98
|
+
case "suppressImplicitAnyIndexErrors":
|
|
99
|
+
return options.suppressImplicitAnyIndexErrors === true && isCompilerOptionEnabled(options, "noImplicitAny");
|
|
100
|
+
case "allowSyntheticDefaultImports":
|
|
101
|
+
return options.allowSyntheticDefaultImports !== void 0 ? options.allowSyntheticDefaultImports : isCompilerOptionEnabled(options, "esModuleInterop") || options.module === ts9.ModuleKind.System;
|
|
102
|
+
case "noUncheckedIndexedAccess":
|
|
103
|
+
return options.noUncheckedIndexedAccess === true && isCompilerOptionEnabled(options, "strictNullChecks");
|
|
104
|
+
case "allowJs":
|
|
105
|
+
return options.allowJs === void 0 ? isCompilerOptionEnabled(options, "checkJs") : options.allowJs;
|
|
106
|
+
case "noImplicitAny":
|
|
107
|
+
case "noImplicitThis":
|
|
108
|
+
case "strictNullChecks":
|
|
109
|
+
case "strictFunctionTypes":
|
|
110
|
+
case "strictPropertyInitialization":
|
|
111
|
+
case "alwaysStrict":
|
|
112
|
+
case "strictBindCallApply":
|
|
113
|
+
return isStrictCompilerOptionEnabled(
|
|
114
|
+
options,
|
|
115
|
+
option
|
|
116
|
+
);
|
|
117
|
+
}
|
|
118
|
+
return options[option] === true;
|
|
119
|
+
}
|
|
120
|
+
function isStrictCompilerOptionEnabled(options, option) {
|
|
121
|
+
return (options.strict ? options[option] !== false : options[option] === true) && (option !== "strictPropertyInitialization" || isStrictCompilerOptionEnabled(options, "strictNullChecks"));
|
|
122
|
+
}
|
|
123
|
+
function isFlagSet(allFlags, flag) {
|
|
124
|
+
return (allFlags & flag) !== 0;
|
|
125
|
+
}
|
|
126
|
+
function isFlagSetOnObject(obj, flag) {
|
|
127
|
+
return isFlagSet(obj.flags, flag);
|
|
128
|
+
}
|
|
129
|
+
function isModifierFlagSet(node, flag) {
|
|
130
|
+
return isFlagSet(ts9.getCombinedModifierFlags(node), flag);
|
|
131
|
+
}
|
|
132
|
+
var isNodeFlagSet = isFlagSetOnObject;
|
|
133
|
+
function isObjectFlagSet(objectType, flag) {
|
|
134
|
+
return isFlagSet(objectType.objectFlags, flag);
|
|
135
|
+
}
|
|
136
|
+
var isSymbolFlagSet = isFlagSetOnObject;
|
|
137
|
+
function isTransientSymbolLinksFlagSet(links, flag) {
|
|
138
|
+
return isFlagSet(links.checkFlags, flag);
|
|
139
|
+
}
|
|
140
|
+
var isTypeFlagSet = isFlagSetOnObject;
|
|
141
|
+
|
|
142
|
+
// src/modifiers.ts
|
|
143
|
+
function includesModifier(modifiers, ...kinds) {
|
|
144
|
+
if (modifiers === void 0) {
|
|
145
|
+
return false;
|
|
146
|
+
}
|
|
147
|
+
for (const modifier of modifiers) {
|
|
148
|
+
if (kinds.includes(modifier.kind)) {
|
|
149
|
+
return true;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
return false;
|
|
153
|
+
}
|
|
154
|
+
function isAssignmentKind(kind) {
|
|
155
|
+
return kind >= ts9.SyntaxKind.FirstAssignment && kind <= ts9.SyntaxKind.LastAssignment;
|
|
156
|
+
}
|
|
157
|
+
function isNumericPropertyName(name) {
|
|
158
|
+
return String(+name) === name;
|
|
159
|
+
}
|
|
160
|
+
function charSize(ch) {
|
|
161
|
+
return ch >= 65536 ? 2 : 1;
|
|
162
|
+
}
|
|
163
|
+
function isValidPropertyAccess(text, languageVersion = ts9.ScriptTarget.Latest) {
|
|
164
|
+
if (text.length === 0) {
|
|
165
|
+
return false;
|
|
166
|
+
}
|
|
167
|
+
let ch = text.codePointAt(0);
|
|
168
|
+
if (!ts9.isIdentifierStart(ch, languageVersion)) {
|
|
169
|
+
return false;
|
|
170
|
+
}
|
|
171
|
+
for (let i = charSize(ch); i < text.length; i += charSize(ch)) {
|
|
172
|
+
ch = text.codePointAt(i);
|
|
173
|
+
if (!ts9.isIdentifierPart(ch, languageVersion)) {
|
|
174
|
+
return false;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
// src/nodes/access.ts
|
|
181
|
+
var AccessKind = /* @__PURE__ */ ((AccessKind2) => {
|
|
182
|
+
AccessKind2[AccessKind2["None"] = 0] = "None";
|
|
183
|
+
AccessKind2[AccessKind2["Read"] = 1] = "Read";
|
|
184
|
+
AccessKind2[AccessKind2["Write"] = 2] = "Write";
|
|
185
|
+
AccessKind2[AccessKind2["Delete"] = 4] = "Delete";
|
|
186
|
+
AccessKind2[AccessKind2["ReadWrite"] = 3] = "ReadWrite";
|
|
187
|
+
return AccessKind2;
|
|
188
|
+
})(AccessKind || {});
|
|
189
|
+
function getAccessKind(node) {
|
|
190
|
+
const parent = node.parent;
|
|
191
|
+
switch (parent.kind) {
|
|
192
|
+
case ts9.SyntaxKind.DeleteExpression:
|
|
193
|
+
return 4 /* Delete */;
|
|
194
|
+
case ts9.SyntaxKind.PostfixUnaryExpression:
|
|
195
|
+
return 3 /* ReadWrite */;
|
|
196
|
+
case ts9.SyntaxKind.PrefixUnaryExpression:
|
|
197
|
+
return parent.operator === ts9.SyntaxKind.PlusPlusToken || parent.operator === ts9.SyntaxKind.MinusMinusToken ? 3 /* ReadWrite */ : 1 /* Read */;
|
|
198
|
+
case ts9.SyntaxKind.BinaryExpression:
|
|
199
|
+
return parent.right === node ? 1 /* Read */ : !isAssignmentKind(parent.operatorToken.kind) ? 1 /* Read */ : parent.operatorToken.kind === ts9.SyntaxKind.EqualsToken ? 2 /* Write */ : 3 /* ReadWrite */;
|
|
200
|
+
case ts9.SyntaxKind.ShorthandPropertyAssignment:
|
|
201
|
+
return parent.objectAssignmentInitializer === node ? 1 /* Read */ : isInDestructuringAssignment(parent) ? 2 /* Write */ : 1 /* Read */;
|
|
202
|
+
case ts9.SyntaxKind.PropertyAssignment:
|
|
203
|
+
return parent.name === node ? 0 /* None */ : isInDestructuringAssignment(parent) ? 2 /* Write */ : 1 /* Read */;
|
|
204
|
+
case ts9.SyntaxKind.ArrayLiteralExpression:
|
|
205
|
+
case ts9.SyntaxKind.SpreadElement:
|
|
206
|
+
case ts9.SyntaxKind.SpreadAssignment:
|
|
207
|
+
return isInDestructuringAssignment(
|
|
208
|
+
parent
|
|
209
|
+
) ? 2 /* Write */ : 1 /* Read */;
|
|
210
|
+
case ts9.SyntaxKind.ParenthesizedExpression:
|
|
211
|
+
case ts9.SyntaxKind.NonNullExpression:
|
|
212
|
+
case ts9.SyntaxKind.TypeAssertionExpression:
|
|
213
|
+
case ts9.SyntaxKind.AsExpression:
|
|
214
|
+
return getAccessKind(parent);
|
|
215
|
+
case ts9.SyntaxKind.ForOfStatement:
|
|
216
|
+
case ts9.SyntaxKind.ForInStatement:
|
|
217
|
+
return parent.initializer === node ? 2 /* Write */ : 1 /* Read */;
|
|
218
|
+
case ts9.SyntaxKind.ExpressionWithTypeArguments:
|
|
219
|
+
return parent.parent.token === ts9.SyntaxKind.ExtendsKeyword && parent.parent.parent.kind !== ts9.SyntaxKind.InterfaceDeclaration ? 1 /* Read */ : 0 /* None */;
|
|
220
|
+
case ts9.SyntaxKind.ComputedPropertyName:
|
|
221
|
+
case ts9.SyntaxKind.ExpressionStatement:
|
|
222
|
+
case ts9.SyntaxKind.TypeOfExpression:
|
|
223
|
+
case ts9.SyntaxKind.ElementAccessExpression:
|
|
224
|
+
case ts9.SyntaxKind.ForStatement:
|
|
225
|
+
case ts9.SyntaxKind.IfStatement:
|
|
226
|
+
case ts9.SyntaxKind.DoStatement:
|
|
227
|
+
case ts9.SyntaxKind.WhileStatement:
|
|
228
|
+
case ts9.SyntaxKind.SwitchStatement:
|
|
229
|
+
case ts9.SyntaxKind.WithStatement:
|
|
230
|
+
case ts9.SyntaxKind.ThrowStatement:
|
|
231
|
+
case ts9.SyntaxKind.CallExpression:
|
|
232
|
+
case ts9.SyntaxKind.NewExpression:
|
|
233
|
+
case ts9.SyntaxKind.TaggedTemplateExpression:
|
|
234
|
+
case ts9.SyntaxKind.JsxExpression:
|
|
235
|
+
case ts9.SyntaxKind.Decorator:
|
|
236
|
+
case ts9.SyntaxKind.TemplateSpan:
|
|
237
|
+
case ts9.SyntaxKind.JsxOpeningElement:
|
|
238
|
+
case ts9.SyntaxKind.JsxSelfClosingElement:
|
|
239
|
+
case ts9.SyntaxKind.JsxSpreadAttribute:
|
|
240
|
+
case ts9.SyntaxKind.VoidExpression:
|
|
241
|
+
case ts9.SyntaxKind.ReturnStatement:
|
|
242
|
+
case ts9.SyntaxKind.AwaitExpression:
|
|
243
|
+
case ts9.SyntaxKind.YieldExpression:
|
|
244
|
+
case ts9.SyntaxKind.ConditionalExpression:
|
|
245
|
+
case ts9.SyntaxKind.CaseClause:
|
|
246
|
+
case ts9.SyntaxKind.JsxElement:
|
|
247
|
+
return 1 /* Read */;
|
|
248
|
+
case ts9.SyntaxKind.ArrowFunction:
|
|
249
|
+
return parent.body === node ? 1 /* Read */ : 2 /* Write */;
|
|
250
|
+
case ts9.SyntaxKind.PropertyDeclaration:
|
|
251
|
+
case ts9.SyntaxKind.VariableDeclaration:
|
|
252
|
+
case ts9.SyntaxKind.Parameter:
|
|
253
|
+
case ts9.SyntaxKind.EnumMember:
|
|
254
|
+
case ts9.SyntaxKind.BindingElement:
|
|
255
|
+
case ts9.SyntaxKind.JsxAttribute:
|
|
256
|
+
return parent.initializer === node ? 1 /* Read */ : 0 /* None */;
|
|
257
|
+
case ts9.SyntaxKind.PropertyAccessExpression:
|
|
258
|
+
return parent.expression === node ? 1 /* Read */ : 0 /* None */;
|
|
259
|
+
case ts9.SyntaxKind.ExportAssignment:
|
|
260
|
+
return parent.isExportEquals ? 1 /* Read */ : 0 /* None */;
|
|
261
|
+
}
|
|
262
|
+
return 0 /* None */;
|
|
263
|
+
}
|
|
264
|
+
function isInDestructuringAssignment(node) {
|
|
265
|
+
switch (node.kind) {
|
|
266
|
+
case ts9.SyntaxKind.ShorthandPropertyAssignment:
|
|
267
|
+
if (node.objectAssignmentInitializer !== void 0) {
|
|
268
|
+
return true;
|
|
269
|
+
}
|
|
270
|
+
// falls through
|
|
271
|
+
case ts9.SyntaxKind.PropertyAssignment:
|
|
272
|
+
case ts9.SyntaxKind.SpreadAssignment:
|
|
273
|
+
node = node.parent;
|
|
274
|
+
break;
|
|
275
|
+
case ts9.SyntaxKind.SpreadElement:
|
|
276
|
+
if (node.parent.kind !== ts9.SyntaxKind.ArrayLiteralExpression) {
|
|
277
|
+
return false;
|
|
278
|
+
}
|
|
279
|
+
node = node.parent;
|
|
280
|
+
}
|
|
281
|
+
while (true) {
|
|
282
|
+
switch (node.parent.kind) {
|
|
283
|
+
case ts9.SyntaxKind.BinaryExpression:
|
|
284
|
+
return node.parent.left === node && node.parent.operatorToken.kind === ts9.SyntaxKind.EqualsToken;
|
|
285
|
+
case ts9.SyntaxKind.ForOfStatement:
|
|
286
|
+
return node.parent.initializer === node;
|
|
287
|
+
case ts9.SyntaxKind.ArrayLiteralExpression:
|
|
288
|
+
case ts9.SyntaxKind.ObjectLiteralExpression:
|
|
289
|
+
node = node.parent;
|
|
290
|
+
break;
|
|
291
|
+
case ts9.SyntaxKind.SpreadAssignment:
|
|
292
|
+
case ts9.SyntaxKind.PropertyAssignment:
|
|
293
|
+
node = node.parent.parent;
|
|
294
|
+
break;
|
|
295
|
+
case ts9.SyntaxKind.SpreadElement:
|
|
296
|
+
if (node.parent.parent.kind !== ts9.SyntaxKind.ArrayLiteralExpression) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
node = node.parent.parent;
|
|
300
|
+
break;
|
|
301
|
+
default:
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
function isAbstractKeyword(node) {
|
|
307
|
+
return node.kind === ts9.SyntaxKind.AbstractKeyword;
|
|
308
|
+
}
|
|
309
|
+
function isAccessorKeyword(node) {
|
|
310
|
+
return node.kind === ts9.SyntaxKind.AccessorKeyword;
|
|
311
|
+
}
|
|
312
|
+
function isAnyKeyword(node) {
|
|
313
|
+
return node.kind === ts9.SyntaxKind.AnyKeyword;
|
|
314
|
+
}
|
|
315
|
+
function isAssertKeyword(node) {
|
|
316
|
+
return node.kind === ts9.SyntaxKind.AssertKeyword;
|
|
317
|
+
}
|
|
318
|
+
function isAssertsKeyword(node) {
|
|
319
|
+
return node.kind === ts9.SyntaxKind.AssertsKeyword;
|
|
320
|
+
}
|
|
321
|
+
function isAsyncKeyword(node) {
|
|
322
|
+
return node.kind === ts9.SyntaxKind.AsyncKeyword;
|
|
323
|
+
}
|
|
324
|
+
function isAwaitKeyword(node) {
|
|
325
|
+
return node.kind === ts9.SyntaxKind.AwaitKeyword;
|
|
326
|
+
}
|
|
327
|
+
function isBigIntKeyword(node) {
|
|
328
|
+
return node.kind === ts9.SyntaxKind.BigIntKeyword;
|
|
329
|
+
}
|
|
330
|
+
function isBooleanKeyword(node) {
|
|
331
|
+
return node.kind === ts9.SyntaxKind.BooleanKeyword;
|
|
332
|
+
}
|
|
333
|
+
function isColonToken(node) {
|
|
334
|
+
return node.kind === ts9.SyntaxKind.ColonToken;
|
|
335
|
+
}
|
|
336
|
+
function isConstKeyword(node) {
|
|
337
|
+
return node.kind === ts9.SyntaxKind.ConstKeyword;
|
|
338
|
+
}
|
|
339
|
+
function isDeclareKeyword(node) {
|
|
340
|
+
return node.kind === ts9.SyntaxKind.DeclareKeyword;
|
|
341
|
+
}
|
|
342
|
+
function isDefaultKeyword(node) {
|
|
343
|
+
return node.kind === ts9.SyntaxKind.DefaultKeyword;
|
|
344
|
+
}
|
|
345
|
+
function isDotToken(node) {
|
|
346
|
+
return node.kind === ts9.SyntaxKind.DotToken;
|
|
347
|
+
}
|
|
348
|
+
function isEndOfFileToken(node) {
|
|
349
|
+
return node.kind === ts9.SyntaxKind.EndOfFileToken;
|
|
350
|
+
}
|
|
351
|
+
function isEqualsGreaterThanToken(node) {
|
|
352
|
+
return node.kind === ts9.SyntaxKind.EqualsGreaterThanToken;
|
|
353
|
+
}
|
|
354
|
+
function isEqualsToken(node) {
|
|
355
|
+
return node.kind === ts9.SyntaxKind.EqualsToken;
|
|
356
|
+
}
|
|
357
|
+
function isExclamationToken(node) {
|
|
358
|
+
return node.kind === ts9.SyntaxKind.ExclamationToken;
|
|
359
|
+
}
|
|
360
|
+
function isExportKeyword(node) {
|
|
361
|
+
return node.kind === ts9.SyntaxKind.ExportKeyword;
|
|
362
|
+
}
|
|
363
|
+
function isFalseKeyword(node) {
|
|
364
|
+
return node.kind === ts9.SyntaxKind.FalseKeyword;
|
|
365
|
+
}
|
|
366
|
+
function isFalseLiteral(node) {
|
|
367
|
+
return node.kind === ts9.SyntaxKind.FalseKeyword;
|
|
368
|
+
}
|
|
369
|
+
function isImportExpression(node) {
|
|
370
|
+
return node.kind === ts9.SyntaxKind.ImportKeyword;
|
|
371
|
+
}
|
|
372
|
+
function isImportKeyword(node) {
|
|
373
|
+
return node.kind === ts9.SyntaxKind.ImportKeyword;
|
|
374
|
+
}
|
|
375
|
+
function isInKeyword(node) {
|
|
376
|
+
return node.kind === ts9.SyntaxKind.InKeyword;
|
|
377
|
+
}
|
|
378
|
+
function isInputFiles(node) {
|
|
379
|
+
return node.kind === ts9.SyntaxKind.InputFiles;
|
|
380
|
+
}
|
|
381
|
+
function isJSDocText(node) {
|
|
382
|
+
return node.kind === ts9.SyntaxKind.JSDocText;
|
|
383
|
+
}
|
|
384
|
+
function isJsonMinusNumericLiteral(node) {
|
|
385
|
+
return node.kind === ts9.SyntaxKind.PrefixUnaryExpression;
|
|
386
|
+
}
|
|
387
|
+
function isNeverKeyword(node) {
|
|
388
|
+
return node.kind === ts9.SyntaxKind.NeverKeyword;
|
|
389
|
+
}
|
|
390
|
+
function isNullKeyword(node) {
|
|
391
|
+
return node.kind === ts9.SyntaxKind.NullKeyword;
|
|
392
|
+
}
|
|
393
|
+
function isNullLiteral(node) {
|
|
394
|
+
return node.kind === ts9.SyntaxKind.NullKeyword;
|
|
395
|
+
}
|
|
396
|
+
function isNumberKeyword(node) {
|
|
397
|
+
return node.kind === ts9.SyntaxKind.NumberKeyword;
|
|
398
|
+
}
|
|
399
|
+
function isObjectKeyword(node) {
|
|
400
|
+
return node.kind === ts9.SyntaxKind.ObjectKeyword;
|
|
401
|
+
}
|
|
402
|
+
function isOutKeyword(node) {
|
|
403
|
+
return node.kind === ts9.SyntaxKind.OutKeyword;
|
|
404
|
+
}
|
|
405
|
+
function isOverrideKeyword(node) {
|
|
406
|
+
return node.kind === ts9.SyntaxKind.OverrideKeyword;
|
|
407
|
+
}
|
|
408
|
+
function isPrivateKeyword(node) {
|
|
409
|
+
return node.kind === ts9.SyntaxKind.PrivateKeyword;
|
|
410
|
+
}
|
|
411
|
+
function isProtectedKeyword(node) {
|
|
412
|
+
return node.kind === ts9.SyntaxKind.ProtectedKeyword;
|
|
413
|
+
}
|
|
414
|
+
function isPublicKeyword(node) {
|
|
415
|
+
return node.kind === ts9.SyntaxKind.PublicKeyword;
|
|
416
|
+
}
|
|
417
|
+
function isQuestionDotToken(node) {
|
|
418
|
+
return node.kind === ts9.SyntaxKind.QuestionDotToken;
|
|
419
|
+
}
|
|
420
|
+
function isQuestionToken(node) {
|
|
421
|
+
return node.kind === ts9.SyntaxKind.QuestionToken;
|
|
422
|
+
}
|
|
423
|
+
function isReadonlyKeyword(node) {
|
|
424
|
+
return node.kind === ts9.SyntaxKind.ReadonlyKeyword;
|
|
425
|
+
}
|
|
426
|
+
function isStaticKeyword(node) {
|
|
427
|
+
return node.kind === ts9.SyntaxKind.StaticKeyword;
|
|
428
|
+
}
|
|
429
|
+
function isStringKeyword(node) {
|
|
430
|
+
return node.kind === ts9.SyntaxKind.StringKeyword;
|
|
431
|
+
}
|
|
432
|
+
function isSuperExpression(node) {
|
|
433
|
+
return node.kind === ts9.SyntaxKind.SuperKeyword;
|
|
434
|
+
}
|
|
435
|
+
function isSuperKeyword(node) {
|
|
436
|
+
return node.kind === ts9.SyntaxKind.SuperKeyword;
|
|
437
|
+
}
|
|
438
|
+
function isSymbolKeyword(node) {
|
|
439
|
+
return node.kind === ts9.SyntaxKind.SymbolKeyword;
|
|
440
|
+
}
|
|
441
|
+
function isSyntaxList(node) {
|
|
442
|
+
return node.kind === ts9.SyntaxKind.SyntaxList;
|
|
443
|
+
}
|
|
444
|
+
function isThisExpression(node) {
|
|
445
|
+
return node.kind === ts9.SyntaxKind.ThisKeyword;
|
|
446
|
+
}
|
|
447
|
+
function isThisKeyword(node) {
|
|
448
|
+
return node.kind === ts9.SyntaxKind.ThisKeyword;
|
|
449
|
+
}
|
|
450
|
+
function isTrueKeyword(node) {
|
|
451
|
+
return node.kind === ts9.SyntaxKind.TrueKeyword;
|
|
452
|
+
}
|
|
453
|
+
function isTrueLiteral(node) {
|
|
454
|
+
return node.kind === ts9.SyntaxKind.TrueKeyword;
|
|
455
|
+
}
|
|
456
|
+
function isUndefinedKeyword(node) {
|
|
457
|
+
return node.kind === ts9.SyntaxKind.UndefinedKeyword;
|
|
458
|
+
}
|
|
459
|
+
function isUnknownKeyword(node) {
|
|
460
|
+
return node.kind === ts9.SyntaxKind.UnknownKeyword;
|
|
461
|
+
}
|
|
462
|
+
function isUnparsedPrologue(node) {
|
|
463
|
+
return node.kind === ts9.SyntaxKind.UnparsedPrologue;
|
|
464
|
+
}
|
|
465
|
+
function isUnparsedSyntheticReference(node) {
|
|
466
|
+
return node.kind === ts9.SyntaxKind.UnparsedSyntheticReference;
|
|
467
|
+
}
|
|
468
|
+
function isVoidKeyword(node) {
|
|
469
|
+
return node.kind === ts9.SyntaxKind.VoidKeyword;
|
|
470
|
+
}
|
|
471
|
+
var [tsMajor, tsMinor] = ts9.versionMajorMinor.split(".").map((raw) => Number.parseInt(raw, 10));
|
|
472
|
+
function isTsVersionAtLeast(major, minor = 0) {
|
|
473
|
+
return tsMajor > major || tsMajor === major && tsMinor >= minor;
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// src/nodes/typeGuards/union.ts
|
|
477
|
+
function isAccessExpression(node) {
|
|
478
|
+
return ts9.isPropertyAccessExpression(node) || ts9.isElementAccessExpression(node);
|
|
479
|
+
}
|
|
480
|
+
function isAccessibilityModifier(node) {
|
|
481
|
+
return isPublicKeyword(node) || isPrivateKeyword(node) || isProtectedKeyword(node);
|
|
482
|
+
}
|
|
483
|
+
function isAccessorDeclaration(node) {
|
|
484
|
+
return ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node);
|
|
485
|
+
}
|
|
486
|
+
function isArrayBindingElement(node) {
|
|
487
|
+
return ts9.isBindingElement(node) || ts9.isOmittedExpression(node);
|
|
488
|
+
}
|
|
489
|
+
function isArrayBindingOrAssignmentPattern(node) {
|
|
490
|
+
return ts9.isArrayBindingPattern(node) || ts9.isArrayLiteralExpression(node);
|
|
491
|
+
}
|
|
492
|
+
function isAssignmentPattern(node) {
|
|
493
|
+
return ts9.isObjectLiteralExpression(node) || ts9.isArrayLiteralExpression(node);
|
|
494
|
+
}
|
|
495
|
+
function isBindingOrAssignmentElementRestIndicator(node) {
|
|
496
|
+
if (ts9.isSpreadElement(node) || ts9.isSpreadAssignment(node)) {
|
|
497
|
+
return true;
|
|
498
|
+
}
|
|
499
|
+
if (isTsVersionAtLeast(4, 4)) {
|
|
500
|
+
return ts9.isDotDotDotToken(node);
|
|
501
|
+
}
|
|
502
|
+
return false;
|
|
503
|
+
}
|
|
504
|
+
function isBindingOrAssignmentElementTarget(node) {
|
|
505
|
+
return isBindingOrAssignmentPattern(node) || ts9.isIdentifier(node) || ts9.isPropertyAccessExpression(node) || ts9.isElementAccessExpression(node) || ts9.isOmittedExpression(node);
|
|
506
|
+
}
|
|
507
|
+
function isBindingOrAssignmentPattern(node) {
|
|
508
|
+
return isObjectBindingOrAssignmentPattern(node) || isArrayBindingOrAssignmentPattern(node);
|
|
509
|
+
}
|
|
510
|
+
function isBindingPattern(node) {
|
|
511
|
+
return ts9.isObjectBindingPattern(node) || ts9.isArrayBindingPattern(node);
|
|
512
|
+
}
|
|
513
|
+
function isBlockLike(node) {
|
|
514
|
+
return ts9.isSourceFile(node) || ts9.isBlock(node) || ts9.isModuleBlock(node) || ts9.isCaseOrDefaultClause(node);
|
|
515
|
+
}
|
|
516
|
+
function isBooleanLiteral(node) {
|
|
517
|
+
return isTrueLiteral(node) || isFalseLiteral(node);
|
|
518
|
+
}
|
|
519
|
+
function isClassLikeDeclaration(node) {
|
|
520
|
+
return ts9.isClassDeclaration(node) || ts9.isClassExpression(node);
|
|
521
|
+
}
|
|
522
|
+
function isClassMemberModifier(node) {
|
|
523
|
+
return isAccessibilityModifier(node) || isReadonlyKeyword(node) || isStaticKeyword(node) || isAccessorKeyword(node);
|
|
524
|
+
}
|
|
525
|
+
function isDeclarationName(node) {
|
|
526
|
+
return ts9.isIdentifier(node) || ts9.isPrivateIdentifier(node) || ts9.isStringLiteralLike(node) || ts9.isNumericLiteral(node) || ts9.isComputedPropertyName(node) || ts9.isElementAccessExpression(node) || isBindingPattern(node) || isEntityNameExpression(node);
|
|
527
|
+
}
|
|
528
|
+
function isDeclarationWithTypeParameterChildren(node) {
|
|
529
|
+
return isSignatureDeclaration(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5
|
|
530
|
+
isClassLikeDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isTypeAliasDeclaration(node) || ts9.isJSDocTemplateTag(node);
|
|
531
|
+
}
|
|
532
|
+
function isDeclarationWithTypeParameters(node) {
|
|
533
|
+
return isDeclarationWithTypeParameterChildren(node) || ts9.isJSDocTypedefTag(node) || ts9.isJSDocCallbackTag(node) || ts9.isJSDocSignature(node);
|
|
534
|
+
}
|
|
535
|
+
function isDestructuringPattern(node) {
|
|
536
|
+
return isBindingPattern(node) || ts9.isObjectLiteralExpression(node) || ts9.isArrayLiteralExpression(node);
|
|
537
|
+
}
|
|
538
|
+
function isEntityNameExpression(node) {
|
|
539
|
+
return ts9.isIdentifier(node) || isPropertyAccessEntityNameExpression(node);
|
|
540
|
+
}
|
|
541
|
+
function isEntityNameOrEntityNameExpression(node) {
|
|
542
|
+
return ts9.isEntityName(node) || isEntityNameExpression(node);
|
|
543
|
+
}
|
|
544
|
+
function isForInOrOfStatement(node) {
|
|
545
|
+
return ts9.isForInStatement(node) || ts9.isForOfStatement(node);
|
|
546
|
+
}
|
|
547
|
+
function isFunctionLikeDeclaration(node) {
|
|
548
|
+
return ts9.isFunctionDeclaration(node) || ts9.isMethodDeclaration(node) || ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node) || ts9.isConstructorDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isArrowFunction(node);
|
|
549
|
+
}
|
|
550
|
+
function hasDecorators(node) {
|
|
551
|
+
return ts9.isParameter(node) || ts9.isPropertyDeclaration(node) || ts9.isMethodDeclaration(node) || ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node) || ts9.isClassExpression(node) || ts9.isClassDeclaration(node);
|
|
552
|
+
}
|
|
553
|
+
function hasExpressionInitializer(node) {
|
|
554
|
+
return ts9.isVariableDeclaration(node) || ts9.isParameter(node) || ts9.isBindingElement(node) || ts9.isPropertyDeclaration(node) || ts9.isPropertyAssignment(node) || ts9.isEnumMember(node);
|
|
555
|
+
}
|
|
556
|
+
function hasInitializer(node) {
|
|
557
|
+
return hasExpressionInitializer(node) || ts9.isForStatement(node) || ts9.isForInStatement(node) || ts9.isForOfStatement(node) || ts9.isJsxAttribute(node);
|
|
558
|
+
}
|
|
559
|
+
function hasJSDoc(node) {
|
|
560
|
+
if (
|
|
561
|
+
// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5
|
|
562
|
+
isAccessorDeclaration(node) || ts9.isArrowFunction(node) || ts9.isBlock(node) || ts9.isBreakStatement(node) || ts9.isCallSignatureDeclaration(node) || ts9.isCaseClause(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5
|
|
563
|
+
isClassLikeDeclaration(node) || ts9.isConstructorDeclaration(node) || ts9.isConstructorTypeNode(node) || ts9.isConstructSignatureDeclaration(node) || ts9.isContinueStatement(node) || ts9.isDebuggerStatement(node) || ts9.isDoStatement(node) || ts9.isEmptyStatement(node) || isEndOfFileToken(node) || ts9.isEnumDeclaration(node) || ts9.isEnumMember(node) || ts9.isExportAssignment(node) || ts9.isExportDeclaration(node) || ts9.isExportSpecifier(node) || ts9.isExpressionStatement(node) || ts9.isForInStatement(node) || ts9.isForOfStatement(node) || ts9.isForStatement(node) || ts9.isFunctionDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isFunctionTypeNode(node) || ts9.isIfStatement(node) || ts9.isImportDeclaration(node) || ts9.isImportEqualsDeclaration(node) || ts9.isIndexSignatureDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isJSDocFunctionType(node) || ts9.isLabeledStatement(node) || ts9.isMethodDeclaration(node) || ts9.isMethodSignature(node) || ts9.isModuleDeclaration(node) || ts9.isNamedTupleMember(node) || ts9.isNamespaceExportDeclaration(node) || ts9.isParameter(node) || ts9.isParenthesizedExpression(node) || ts9.isPropertyAssignment(node) || ts9.isPropertyDeclaration(node) || ts9.isPropertySignature(node) || ts9.isReturnStatement(node) || ts9.isShorthandPropertyAssignment(node) || ts9.isSpreadAssignment(node) || ts9.isSwitchStatement(node) || ts9.isThrowStatement(node) || ts9.isTryStatement(node) || ts9.isTypeAliasDeclaration(node) || ts9.isVariableDeclaration(node) || ts9.isVariableStatement(node) || ts9.isWhileStatement(node) || ts9.isWithStatement(node)
|
|
564
|
+
) {
|
|
565
|
+
return true;
|
|
566
|
+
}
|
|
567
|
+
if (isTsVersionAtLeast(4, 4) && ts9.isClassStaticBlockDeclaration(node)) {
|
|
568
|
+
return true;
|
|
569
|
+
}
|
|
570
|
+
if (isTsVersionAtLeast(5, 0) && (ts9.isBinaryExpression(node) || ts9.isElementAccessExpression(node) || ts9.isIdentifier(node) || ts9.isJSDocSignature(node) || ts9.isObjectLiteralExpression(node) || ts9.isPropertyAccessExpression(node) || ts9.isTypeParameterDeclaration(node))) {
|
|
571
|
+
return true;
|
|
572
|
+
}
|
|
573
|
+
return false;
|
|
574
|
+
}
|
|
575
|
+
function hasModifiers(node) {
|
|
576
|
+
return ts9.isTypeParameterDeclaration(node) || ts9.isParameter(node) || ts9.isConstructorTypeNode(node) || ts9.isPropertySignature(node) || ts9.isPropertyDeclaration(node) || ts9.isMethodSignature(node) || ts9.isMethodDeclaration(node) || ts9.isConstructorDeclaration(node) || ts9.isGetAccessorDeclaration(node) || ts9.isSetAccessorDeclaration(node) || ts9.isIndexSignatureDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isArrowFunction(node) || ts9.isClassExpression(node) || ts9.isVariableStatement(node) || ts9.isFunctionDeclaration(node) || ts9.isClassDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isTypeAliasDeclaration(node) || ts9.isEnumDeclaration(node) || ts9.isModuleDeclaration(node) || ts9.isImportEqualsDeclaration(node) || ts9.isImportDeclaration(node) || ts9.isExportAssignment(node) || ts9.isExportDeclaration(node);
|
|
577
|
+
}
|
|
578
|
+
function hasType(node) {
|
|
579
|
+
return isSignatureDeclaration(node) || ts9.isVariableDeclaration(node) || ts9.isParameter(node) || ts9.isPropertySignature(node) || ts9.isPropertyDeclaration(node) || ts9.isTypePredicateNode(node) || ts9.isParenthesizedTypeNode(node) || ts9.isTypeOperatorNode(node) || ts9.isMappedTypeNode(node) || ts9.isAssertionExpression(node) || ts9.isTypeAliasDeclaration(node) || ts9.isJSDocTypeExpression(node) || ts9.isJSDocNonNullableType(node) || ts9.isJSDocNullableType(node) || ts9.isJSDocOptionalType(node) || ts9.isJSDocVariadicType(node);
|
|
580
|
+
}
|
|
581
|
+
function hasTypeArguments(node) {
|
|
582
|
+
return ts9.isCallExpression(node) || ts9.isNewExpression(node) || ts9.isTaggedTemplateExpression(node) || ts9.isJsxOpeningElement(node) || ts9.isJsxSelfClosingElement(node);
|
|
583
|
+
}
|
|
584
|
+
function isJSDocComment(node) {
|
|
585
|
+
if (isJSDocText(node)) {
|
|
586
|
+
return true;
|
|
587
|
+
}
|
|
588
|
+
if (isTsVersionAtLeast(4, 4)) {
|
|
589
|
+
return ts9.isJSDocLink(node) || ts9.isJSDocLinkCode(node) || ts9.isJSDocLinkPlain(node);
|
|
590
|
+
}
|
|
591
|
+
return false;
|
|
592
|
+
}
|
|
593
|
+
function isJSDocNamespaceBody(node) {
|
|
594
|
+
return ts9.isIdentifier(node) || isJSDocNamespaceDeclaration(node);
|
|
595
|
+
}
|
|
596
|
+
function isJSDocTypeReferencingNode(node) {
|
|
597
|
+
return ts9.isJSDocVariadicType(node) || ts9.isJSDocOptionalType(node) || ts9.isJSDocNullableType(node) || ts9.isJSDocNonNullableType(node);
|
|
598
|
+
}
|
|
599
|
+
function isJsonObjectExpression(node) {
|
|
600
|
+
return ts9.isObjectLiteralExpression(node) || ts9.isArrayLiteralExpression(node) || isJsonMinusNumericLiteral(node) || ts9.isNumericLiteral(node) || ts9.isStringLiteral(node) || isBooleanLiteral(node) || isNullLiteral(node);
|
|
601
|
+
}
|
|
602
|
+
function isJsxAttributeLike(node) {
|
|
603
|
+
return ts9.isJsxAttribute(node) || ts9.isJsxSpreadAttribute(node);
|
|
604
|
+
}
|
|
605
|
+
function isJsxAttributeValue(node) {
|
|
606
|
+
return ts9.isStringLiteral(node) || ts9.isJsxExpression(node) || ts9.isJsxElement(node) || ts9.isJsxSelfClosingElement(node) || ts9.isJsxFragment(node);
|
|
607
|
+
}
|
|
608
|
+
function isJsxChild(node) {
|
|
609
|
+
return ts9.isJsxText(node) || ts9.isJsxExpression(node) || ts9.isJsxElement(node) || ts9.isJsxSelfClosingElement(node) || ts9.isJsxFragment(node);
|
|
610
|
+
}
|
|
611
|
+
function isJsxTagNameExpression(node) {
|
|
612
|
+
return ts9.isIdentifier(node) || isThisExpression(node) || isJsxTagNamePropertyAccess(node);
|
|
613
|
+
}
|
|
614
|
+
function isLiteralToken(node) {
|
|
615
|
+
return ts9.isNumericLiteral(node) || ts9.isBigIntLiteral(node) || ts9.isStringLiteral(node) || ts9.isJsxText(node) || ts9.isRegularExpressionLiteral(node) || ts9.isNoSubstitutionTemplateLiteral(node);
|
|
616
|
+
}
|
|
617
|
+
function isModuleBody(node) {
|
|
618
|
+
return isNamespaceBody(node) || isJSDocNamespaceBody(node);
|
|
619
|
+
}
|
|
620
|
+
function isModuleName(node) {
|
|
621
|
+
return ts9.isIdentifier(node) || ts9.isStringLiteral(node);
|
|
622
|
+
}
|
|
623
|
+
function isModuleReference(node) {
|
|
624
|
+
return ts9.isEntityName(node) || ts9.isExternalModuleReference(node);
|
|
625
|
+
}
|
|
626
|
+
function isNamedImportBindings(node) {
|
|
627
|
+
return ts9.isNamespaceImport(node) || ts9.isNamedImports(node);
|
|
628
|
+
}
|
|
629
|
+
function isNamedImportsOrExports(node) {
|
|
630
|
+
return ts9.isNamedImports(node) || ts9.isNamedExports(node);
|
|
631
|
+
}
|
|
632
|
+
function isNamespaceBody(node) {
|
|
633
|
+
return ts9.isModuleBlock(node) || isNamespaceDeclaration(node);
|
|
634
|
+
}
|
|
635
|
+
function isObjectBindingOrAssignmentElement(node) {
|
|
636
|
+
return ts9.isBindingElement(node) || ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node) || ts9.isSpreadAssignment(node);
|
|
637
|
+
}
|
|
638
|
+
function isObjectBindingOrAssignmentPattern(node) {
|
|
639
|
+
return ts9.isObjectBindingPattern(node) || ts9.isObjectLiteralExpression(node);
|
|
640
|
+
}
|
|
641
|
+
function isObjectTypeDeclaration(node) {
|
|
642
|
+
return (
|
|
643
|
+
// eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5
|
|
644
|
+
isClassLikeDeclaration(node) || ts9.isInterfaceDeclaration(node) || ts9.isTypeLiteralNode(node)
|
|
645
|
+
);
|
|
646
|
+
}
|
|
647
|
+
function isParameterPropertyModifier(node) {
|
|
648
|
+
return isAccessibilityModifier(node) || isReadonlyKeyword(node);
|
|
649
|
+
}
|
|
650
|
+
function isPropertyNameLiteral(node) {
|
|
651
|
+
return ts9.isIdentifier(node) || ts9.isStringLiteralLike(node) || ts9.isNumericLiteral(node);
|
|
652
|
+
}
|
|
653
|
+
function isPseudoLiteralToken(node) {
|
|
654
|
+
return ts9.isTemplateHead(node) || ts9.isTemplateMiddle(node) || ts9.isTemplateTail(node);
|
|
655
|
+
}
|
|
656
|
+
function isSignatureDeclaration(node) {
|
|
657
|
+
return ts9.isCallSignatureDeclaration(node) || ts9.isConstructSignatureDeclaration(node) || ts9.isMethodSignature(node) || ts9.isIndexSignatureDeclaration(node) || ts9.isFunctionTypeNode(node) || ts9.isConstructorTypeNode(node) || ts9.isJSDocFunctionType(node) || ts9.isFunctionDeclaration(node) || ts9.isMethodDeclaration(node) || ts9.isConstructorDeclaration(node) || // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts <5
|
|
658
|
+
isAccessorDeclaration(node) || ts9.isFunctionExpression(node) || ts9.isArrowFunction(node);
|
|
659
|
+
}
|
|
660
|
+
function isSuperProperty(node) {
|
|
661
|
+
return isSuperPropertyAccessExpression(node) || isSuperElementAccessExpression(node);
|
|
662
|
+
}
|
|
663
|
+
function isTypeOnlyCompatibleAliasDeclaration(node) {
|
|
664
|
+
if (ts9.isImportClause(node) || ts9.isImportEqualsDeclaration(node) || ts9.isNamespaceImport(node) || ts9.isImportOrExportSpecifier(node)) {
|
|
665
|
+
return true;
|
|
666
|
+
}
|
|
667
|
+
if (isTsVersionAtLeast(5, 0) && (ts9.isExportDeclaration(node) || ts9.isNamespaceExport(node))) {
|
|
668
|
+
return true;
|
|
669
|
+
}
|
|
670
|
+
return false;
|
|
671
|
+
}
|
|
672
|
+
function isTypeReferenceType(node) {
|
|
673
|
+
return ts9.isTypeReferenceNode(node) || ts9.isExpressionWithTypeArguments(node);
|
|
674
|
+
}
|
|
675
|
+
function isUnionOrIntersectionTypeNode(node) {
|
|
676
|
+
return ts9.isUnionTypeNode(node) || ts9.isIntersectionTypeNode(node);
|
|
677
|
+
}
|
|
678
|
+
function isUnparsedSourceText(node) {
|
|
679
|
+
return ts9.isUnparsedPrepend(node) || ts9.isUnparsedTextLike(node);
|
|
680
|
+
}
|
|
681
|
+
function isVariableLikeDeclaration(node) {
|
|
682
|
+
return ts9.isVariableDeclaration(node) || ts9.isParameter(node) || ts9.isBindingElement(node) || ts9.isPropertyDeclaration(node) || ts9.isPropertyAssignment(node) || ts9.isPropertySignature(node) || ts9.isJsxAttribute(node) || ts9.isShorthandPropertyAssignment(node) || ts9.isEnumMember(node) || ts9.isJSDocPropertyTag(node) || ts9.isJSDocParameterTag(node);
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
// src/nodes/typeGuards/compound.ts
|
|
686
|
+
function isConstAssertionExpression(node) {
|
|
687
|
+
return ts9.isTypeReferenceNode(node.type) && ts9.isIdentifier(node.type.typeName) && node.type.typeName.escapedText === "const";
|
|
688
|
+
}
|
|
689
|
+
function isIterationStatement(node) {
|
|
690
|
+
switch (node.kind) {
|
|
691
|
+
case ts9.SyntaxKind.DoStatement:
|
|
692
|
+
case ts9.SyntaxKind.ForInStatement:
|
|
693
|
+
case ts9.SyntaxKind.ForOfStatement:
|
|
694
|
+
case ts9.SyntaxKind.ForStatement:
|
|
695
|
+
case ts9.SyntaxKind.WhileStatement:
|
|
696
|
+
return true;
|
|
697
|
+
default:
|
|
698
|
+
return false;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
function isJSDocNamespaceDeclaration(node) {
|
|
702
|
+
return ts9.isModuleDeclaration(node) && ts9.isIdentifier(node.name) && (node.body === void 0 || isJSDocNamespaceBody(node.body));
|
|
703
|
+
}
|
|
704
|
+
function isJsxTagNamePropertyAccess(node) {
|
|
705
|
+
return ts9.isPropertyAccessExpression(node) && // eslint-disable-next-line deprecation/deprecation -- Keep compatibility with ts < 5
|
|
706
|
+
isJsxTagNameExpression(node.expression);
|
|
707
|
+
}
|
|
708
|
+
function isNamedDeclarationWithName(node) {
|
|
709
|
+
return "name" in node && node.name !== void 0 && node.name !== null && isDeclarationName(node.name);
|
|
710
|
+
}
|
|
711
|
+
function isNamespaceDeclaration(node) {
|
|
712
|
+
return ts9.isModuleDeclaration(node) && ts9.isIdentifier(node.name) && node.body !== void 0 && isNamespaceBody(node.body);
|
|
713
|
+
}
|
|
714
|
+
function isNumericOrStringLikeLiteral(node) {
|
|
715
|
+
switch (node.kind) {
|
|
716
|
+
case ts9.SyntaxKind.StringLiteral:
|
|
717
|
+
case ts9.SyntaxKind.NumericLiteral:
|
|
718
|
+
case ts9.SyntaxKind.NoSubstitutionTemplateLiteral:
|
|
719
|
+
return true;
|
|
720
|
+
default:
|
|
721
|
+
return false;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
function isPropertyAccessEntityNameExpression(node) {
|
|
725
|
+
return ts9.isPropertyAccessExpression(node) && ts9.isIdentifier(node.name) && isEntityNameExpression(node.expression);
|
|
726
|
+
}
|
|
727
|
+
function isSuperElementAccessExpression(node) {
|
|
728
|
+
return ts9.isElementAccessExpression(node) && isSuperExpression(node.expression);
|
|
729
|
+
}
|
|
730
|
+
function isSuperPropertyAccessExpression(node) {
|
|
731
|
+
return ts9.isPropertyAccessExpression(node) && isSuperExpression(node.expression);
|
|
732
|
+
}
|
|
733
|
+
function isFunctionScopeBoundary(node) {
|
|
734
|
+
switch (node.kind) {
|
|
735
|
+
case ts9.SyntaxKind.FunctionExpression:
|
|
736
|
+
case ts9.SyntaxKind.ArrowFunction:
|
|
737
|
+
case ts9.SyntaxKind.Constructor:
|
|
738
|
+
case ts9.SyntaxKind.ModuleDeclaration:
|
|
739
|
+
case ts9.SyntaxKind.ClassDeclaration:
|
|
740
|
+
case ts9.SyntaxKind.ClassExpression:
|
|
741
|
+
case ts9.SyntaxKind.EnumDeclaration:
|
|
742
|
+
case ts9.SyntaxKind.MethodDeclaration:
|
|
743
|
+
case ts9.SyntaxKind.FunctionDeclaration:
|
|
744
|
+
case ts9.SyntaxKind.GetAccessor:
|
|
745
|
+
case ts9.SyntaxKind.SetAccessor:
|
|
746
|
+
case ts9.SyntaxKind.MethodSignature:
|
|
747
|
+
case ts9.SyntaxKind.CallSignature:
|
|
748
|
+
case ts9.SyntaxKind.ConstructSignature:
|
|
749
|
+
case ts9.SyntaxKind.ConstructorType:
|
|
750
|
+
case ts9.SyntaxKind.FunctionType:
|
|
751
|
+
return true;
|
|
752
|
+
case ts9.SyntaxKind.SourceFile:
|
|
753
|
+
return ts9.isExternalModule(node);
|
|
754
|
+
default:
|
|
755
|
+
return false;
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
function isIntrinsicAnyType(type) {
|
|
759
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Any);
|
|
760
|
+
}
|
|
761
|
+
function isIntrinsicBooleanType(type) {
|
|
762
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Boolean);
|
|
763
|
+
}
|
|
764
|
+
function isIntrinsicBigIntType(type) {
|
|
765
|
+
return isTypeFlagSet(type, ts9.TypeFlags.BigInt);
|
|
766
|
+
}
|
|
767
|
+
function isIntrinsicErrorType(type) {
|
|
768
|
+
return isIntrinsicType(type) && type.intrinsicName === "error";
|
|
769
|
+
}
|
|
770
|
+
function isIntrinsicESSymbolType(type) {
|
|
771
|
+
return isTypeFlagSet(type, ts9.TypeFlags.ESSymbol);
|
|
772
|
+
}
|
|
773
|
+
var IntrinsicTypeFlags = ts9.TypeFlags.Intrinsic ?? ts9.TypeFlags.Any | ts9.TypeFlags.Unknown | ts9.TypeFlags.String | ts9.TypeFlags.Number | ts9.TypeFlags.BigInt | ts9.TypeFlags.Boolean | ts9.TypeFlags.BooleanLiteral | ts9.TypeFlags.ESSymbol | ts9.TypeFlags.Void | ts9.TypeFlags.Undefined | ts9.TypeFlags.Null | ts9.TypeFlags.Never | ts9.TypeFlags.NonPrimitive;
|
|
774
|
+
function isIntrinsicType(type) {
|
|
775
|
+
return isTypeFlagSet(type, IntrinsicTypeFlags);
|
|
776
|
+
}
|
|
777
|
+
function isIntrinsicNeverType(type) {
|
|
778
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Never);
|
|
779
|
+
}
|
|
780
|
+
function isIntrinsicNonPrimitiveType(type) {
|
|
781
|
+
return isTypeFlagSet(type, ts9.TypeFlags.NonPrimitive);
|
|
782
|
+
}
|
|
783
|
+
function isIntrinsicNullType(type) {
|
|
784
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Null);
|
|
785
|
+
}
|
|
786
|
+
function isIntrinsicNumberType(type) {
|
|
787
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Number);
|
|
788
|
+
}
|
|
789
|
+
function isIntrinsicStringType(type) {
|
|
790
|
+
return isTypeFlagSet(type, ts9.TypeFlags.String);
|
|
791
|
+
}
|
|
792
|
+
function isIntrinsicUndefinedType(type) {
|
|
793
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Undefined);
|
|
794
|
+
}
|
|
795
|
+
function isIntrinsicUnknownType(type) {
|
|
796
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Unknown);
|
|
797
|
+
}
|
|
798
|
+
function isIntrinsicVoidType(type) {
|
|
799
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Void);
|
|
800
|
+
}
|
|
801
|
+
function isConditionalType(type) {
|
|
802
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Conditional);
|
|
803
|
+
}
|
|
804
|
+
function isEnumType(type) {
|
|
805
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Enum);
|
|
806
|
+
}
|
|
807
|
+
function isFreshableType(type) {
|
|
808
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Freshable);
|
|
809
|
+
}
|
|
810
|
+
function isIndexType(type) {
|
|
811
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Index);
|
|
812
|
+
}
|
|
813
|
+
function isIndexedAccessType(type) {
|
|
814
|
+
return isTypeFlagSet(type, ts9.TypeFlags.IndexedAccess);
|
|
815
|
+
}
|
|
816
|
+
function isInstantiableType(type) {
|
|
817
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Instantiable);
|
|
818
|
+
}
|
|
819
|
+
function isIntersectionType(type) {
|
|
820
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Intersection);
|
|
821
|
+
}
|
|
822
|
+
function isObjectType(type) {
|
|
823
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Object);
|
|
824
|
+
}
|
|
825
|
+
function isStringMappingType(type) {
|
|
826
|
+
return isTypeFlagSet(type, ts9.TypeFlags.StringMapping);
|
|
827
|
+
}
|
|
828
|
+
function isSubstitutionType(type) {
|
|
829
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Substitution);
|
|
830
|
+
}
|
|
831
|
+
function isTypeParameter(type) {
|
|
832
|
+
return isTypeFlagSet(type, ts9.TypeFlags.TypeParameter);
|
|
833
|
+
}
|
|
834
|
+
function isTypeVariable(type) {
|
|
835
|
+
return isTypeFlagSet(type, ts9.TypeFlags.TypeVariable);
|
|
836
|
+
}
|
|
837
|
+
function isUnionType(type) {
|
|
838
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Union);
|
|
839
|
+
}
|
|
840
|
+
function isUnionOrIntersectionType(type) {
|
|
841
|
+
return isTypeFlagSet(type, ts9.TypeFlags.UnionOrIntersection);
|
|
842
|
+
}
|
|
843
|
+
function isUniqueESSymbolType(type) {
|
|
844
|
+
return isTypeFlagSet(type, ts9.TypeFlags.UniqueESSymbol);
|
|
845
|
+
}
|
|
846
|
+
|
|
847
|
+
// src/types/typeGuards/objects.ts
|
|
848
|
+
function isEvolvingArrayType(type) {
|
|
849
|
+
return isObjectType(type) && isObjectFlagSet(type, ts9.ObjectFlags.EvolvingArray);
|
|
850
|
+
}
|
|
851
|
+
function isTupleType(type) {
|
|
852
|
+
return isObjectType(type) && isObjectFlagSet(type, ts9.ObjectFlags.Tuple);
|
|
853
|
+
}
|
|
854
|
+
function isTypeReference(type) {
|
|
855
|
+
return isObjectType(type) && isObjectFlagSet(type, ts9.ObjectFlags.Reference);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
// src/types/typeGuards/compound.ts
|
|
859
|
+
function isFreshableIntrinsicType(type) {
|
|
860
|
+
return isIntrinsicType(type) && isFreshableType(type);
|
|
861
|
+
}
|
|
862
|
+
function isTupleTypeReference(type) {
|
|
863
|
+
return isTypeReference(type) && isTupleType(type.target);
|
|
864
|
+
}
|
|
865
|
+
function isBooleanLiteralType(type) {
|
|
866
|
+
return isTypeFlagSet(type, ts9.TypeFlags.BooleanLiteral);
|
|
867
|
+
}
|
|
868
|
+
function isBigIntLiteralType(type) {
|
|
869
|
+
return isTypeFlagSet(type, ts9.TypeFlags.BigIntLiteral);
|
|
870
|
+
}
|
|
871
|
+
function isFalseLiteralType(type) {
|
|
872
|
+
return isBooleanLiteralType(type) && type.intrinsicName === "false";
|
|
873
|
+
}
|
|
874
|
+
function isLiteralType(type) {
|
|
875
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Literal);
|
|
876
|
+
}
|
|
877
|
+
function isNumberLiteralType(type) {
|
|
878
|
+
return isTypeFlagSet(type, ts9.TypeFlags.NumberLiteral);
|
|
879
|
+
}
|
|
880
|
+
function isStringLiteralType(type) {
|
|
881
|
+
return isTypeFlagSet(type, ts9.TypeFlags.StringLiteral);
|
|
882
|
+
}
|
|
883
|
+
function isTemplateLiteralType(type) {
|
|
884
|
+
return isTypeFlagSet(type, ts9.TypeFlags.TemplateLiteral);
|
|
885
|
+
}
|
|
886
|
+
function isTrueLiteralType(type) {
|
|
887
|
+
return isBooleanLiteralType(type) && type.intrinsicName === "true";
|
|
888
|
+
}
|
|
889
|
+
function isUnknownLiteralType(type) {
|
|
890
|
+
return isTypeFlagSet(type, ts9.TypeFlags.Literal);
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
// src/types/getters.ts
|
|
894
|
+
function getCallSignaturesOfType(type) {
|
|
895
|
+
if (isUnionType(type)) {
|
|
896
|
+
const signatures = [];
|
|
897
|
+
for (const subType of type.types) {
|
|
898
|
+
signatures.push(...getCallSignaturesOfType(subType));
|
|
899
|
+
}
|
|
900
|
+
return signatures;
|
|
901
|
+
}
|
|
902
|
+
if (isIntersectionType(type)) {
|
|
903
|
+
let signatures;
|
|
904
|
+
for (const subType of type.types) {
|
|
905
|
+
const sig = getCallSignaturesOfType(subType);
|
|
906
|
+
if (sig.length !== 0) {
|
|
907
|
+
if (signatures !== void 0) {
|
|
908
|
+
return [];
|
|
909
|
+
}
|
|
910
|
+
signatures = sig;
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
return signatures === void 0 ? [] : signatures;
|
|
914
|
+
}
|
|
915
|
+
return type.getCallSignatures();
|
|
916
|
+
}
|
|
917
|
+
function getPropertyOfType(type, name) {
|
|
918
|
+
if (!name.startsWith("__")) {
|
|
919
|
+
return type.getProperty(name);
|
|
920
|
+
}
|
|
921
|
+
return type.getProperties().find((s) => s.escapedName === name);
|
|
922
|
+
}
|
|
923
|
+
function getWellKnownSymbolPropertyOfType(type, wellKnownSymbolName, typeChecker) {
|
|
924
|
+
const prefix = "__@" + wellKnownSymbolName;
|
|
925
|
+
for (const prop of type.getProperties()) {
|
|
926
|
+
if (!prop.name.startsWith(prefix)) {
|
|
927
|
+
continue;
|
|
928
|
+
}
|
|
929
|
+
const declaration = prop.valueDeclaration ?? prop.getDeclarations()[0];
|
|
930
|
+
if (!isNamedDeclarationWithName(declaration) || declaration.name === void 0 || !ts9.isComputedPropertyName(declaration.name)) {
|
|
931
|
+
continue;
|
|
932
|
+
}
|
|
933
|
+
const globalSymbol = typeChecker.getApparentType(
|
|
934
|
+
typeChecker.getTypeAtLocation(declaration.name.expression)
|
|
935
|
+
).symbol;
|
|
936
|
+
if (prop.escapedName === getPropertyNameOfWellKnownSymbol(
|
|
937
|
+
typeChecker,
|
|
938
|
+
globalSymbol,
|
|
939
|
+
wellKnownSymbolName
|
|
940
|
+
)) {
|
|
941
|
+
return prop;
|
|
942
|
+
}
|
|
943
|
+
}
|
|
944
|
+
return void 0;
|
|
945
|
+
}
|
|
946
|
+
function getPropertyNameOfWellKnownSymbol(typeChecker, symbolConstructor, symbolName) {
|
|
947
|
+
const knownSymbol = symbolConstructor && typeChecker.getTypeOfSymbolAtLocation(
|
|
948
|
+
symbolConstructor,
|
|
949
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
950
|
+
symbolConstructor.valueDeclaration
|
|
951
|
+
).getProperty(symbolName);
|
|
952
|
+
const knownSymbolType = knownSymbol && typeChecker.getTypeOfSymbolAtLocation(
|
|
953
|
+
knownSymbol,
|
|
954
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-argument, @typescript-eslint/no-unsafe-member-access
|
|
955
|
+
knownSymbol.valueDeclaration
|
|
956
|
+
);
|
|
957
|
+
if (knownSymbolType && isUniqueESSymbolType(knownSymbolType)) {
|
|
958
|
+
return knownSymbolType.escapedName;
|
|
959
|
+
}
|
|
960
|
+
return "__@" + symbolName;
|
|
961
|
+
}
|
|
962
|
+
function isBindableObjectDefinePropertyCall(node) {
|
|
963
|
+
return node.arguments.length === 3 && isEntityNameExpression(node.arguments[0]) && isNumericOrStringLikeLiteral(node.arguments[1]) && ts9.isPropertyAccessExpression(node.expression) && node.expression.name.escapedText === "defineProperty" && ts9.isIdentifier(node.expression.expression) && node.expression.expression.escapedText === "Object";
|
|
964
|
+
}
|
|
965
|
+
function isInConstContext(node, typeChecker) {
|
|
966
|
+
var _a, _b;
|
|
967
|
+
let current = node;
|
|
968
|
+
while (true) {
|
|
969
|
+
const parent = current.parent;
|
|
970
|
+
outer: switch (parent.kind) {
|
|
971
|
+
case ts9.SyntaxKind.TypeAssertionExpression:
|
|
972
|
+
case ts9.SyntaxKind.AsExpression:
|
|
973
|
+
return isConstAssertionExpression(parent);
|
|
974
|
+
case ts9.SyntaxKind.PrefixUnaryExpression:
|
|
975
|
+
if (current.kind !== ts9.SyntaxKind.NumericLiteral) {
|
|
976
|
+
return false;
|
|
977
|
+
}
|
|
978
|
+
switch (parent.operator) {
|
|
979
|
+
case ts9.SyntaxKind.PlusToken:
|
|
980
|
+
case ts9.SyntaxKind.MinusToken:
|
|
981
|
+
current = parent;
|
|
982
|
+
break outer;
|
|
983
|
+
default:
|
|
984
|
+
return false;
|
|
985
|
+
}
|
|
986
|
+
case ts9.SyntaxKind.PropertyAssignment:
|
|
987
|
+
if (parent.initializer !== current) {
|
|
988
|
+
return false;
|
|
989
|
+
}
|
|
990
|
+
current = parent.parent;
|
|
991
|
+
break;
|
|
992
|
+
case ts9.SyntaxKind.ShorthandPropertyAssignment:
|
|
993
|
+
current = parent.parent;
|
|
994
|
+
break;
|
|
995
|
+
case ts9.SyntaxKind.ParenthesizedExpression:
|
|
996
|
+
case ts9.SyntaxKind.ArrayLiteralExpression:
|
|
997
|
+
case ts9.SyntaxKind.ObjectLiteralExpression:
|
|
998
|
+
case ts9.SyntaxKind.TemplateExpression:
|
|
999
|
+
current = parent;
|
|
1000
|
+
break;
|
|
1001
|
+
case ts9.SyntaxKind.CallExpression:
|
|
1002
|
+
if (!ts9.isExpression(current)) {
|
|
1003
|
+
return false;
|
|
1004
|
+
}
|
|
1005
|
+
const functionSignature = typeChecker.getResolvedSignature(
|
|
1006
|
+
parent
|
|
1007
|
+
);
|
|
1008
|
+
if (functionSignature === void 0) {
|
|
1009
|
+
return false;
|
|
1010
|
+
}
|
|
1011
|
+
const argumentIndex = parent.arguments.indexOf(
|
|
1012
|
+
current
|
|
1013
|
+
);
|
|
1014
|
+
if (argumentIndex < 0) {
|
|
1015
|
+
return false;
|
|
1016
|
+
}
|
|
1017
|
+
const parameterSymbol = functionSignature.getParameters()[argumentIndex];
|
|
1018
|
+
if (parameterSymbol === void 0 || !("links" in parameterSymbol)) {
|
|
1019
|
+
return false;
|
|
1020
|
+
}
|
|
1021
|
+
const parameterSymbolLinks = parameterSymbol.links;
|
|
1022
|
+
const propertySymbol = (_b = (_a = parameterSymbolLinks.type) == null ? void 0 : _a.getProperties()) == null ? void 0 : _b[argumentIndex];
|
|
1023
|
+
if (propertySymbol === void 0 || !("links" in propertySymbol)) {
|
|
1024
|
+
return false;
|
|
1025
|
+
}
|
|
1026
|
+
return isTransientSymbolLinksFlagSet(
|
|
1027
|
+
propertySymbol.links,
|
|
1028
|
+
ts9.CheckFlags.Readonly
|
|
1029
|
+
);
|
|
1030
|
+
default:
|
|
1031
|
+
return false;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
// src/types/utilities.ts
|
|
1037
|
+
function isFalsyType(type) {
|
|
1038
|
+
if (isTypeFlagSet(
|
|
1039
|
+
type,
|
|
1040
|
+
ts9.TypeFlags.Undefined | ts9.TypeFlags.Null | ts9.TypeFlags.Void
|
|
1041
|
+
)) {
|
|
1042
|
+
return true;
|
|
1043
|
+
}
|
|
1044
|
+
if (typeIsLiteral(type)) {
|
|
1045
|
+
if (typeof type.value === "object") {
|
|
1046
|
+
return type.value.base10Value === "0";
|
|
1047
|
+
} else {
|
|
1048
|
+
return !type.value;
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
return isFalseLiteralType(type);
|
|
1052
|
+
}
|
|
1053
|
+
function intersectionTypeParts(type) {
|
|
1054
|
+
return isIntersectionType(type) ? type.types : [type];
|
|
1055
|
+
}
|
|
1056
|
+
function typeParts(type) {
|
|
1057
|
+
return isIntersectionType(type) || isUnionType(type) ? type.types : [type];
|
|
1058
|
+
}
|
|
1059
|
+
function isReadonlyPropertyIntersection(type, name, typeChecker) {
|
|
1060
|
+
const typeParts2 = isIntersectionType(type) ? type.types : [type];
|
|
1061
|
+
return typeParts2.some((subType) => {
|
|
1062
|
+
const prop = getPropertyOfType(subType, name);
|
|
1063
|
+
if (prop === void 0) {
|
|
1064
|
+
return false;
|
|
1065
|
+
}
|
|
1066
|
+
if (prop.flags & ts9.SymbolFlags.Transient) {
|
|
1067
|
+
if (/^(?:[1-9]\d*|0)$/.test(name) && isTupleTypeReference(subType)) {
|
|
1068
|
+
return subType.target.readonly;
|
|
1069
|
+
}
|
|
1070
|
+
switch (isReadonlyPropertyFromMappedType(subType, name, typeChecker)) {
|
|
1071
|
+
case true:
|
|
1072
|
+
return true;
|
|
1073
|
+
case false:
|
|
1074
|
+
return false;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
return !!// members of namespace import
|
|
1078
|
+
(isSymbolFlagSet(prop, ts9.SymbolFlags.ValueModule) || // we unwrapped every mapped type, now we can check the actual declarations
|
|
1079
|
+
symbolHasReadonlyDeclaration(prop, typeChecker));
|
|
1080
|
+
});
|
|
1081
|
+
}
|
|
1082
|
+
function isReadonlyPropertyFromMappedType(type, name, typeChecker) {
|
|
1083
|
+
if (!isObjectType(type) || !isObjectFlagSet(type, ts9.ObjectFlags.Mapped)) {
|
|
1084
|
+
return;
|
|
1085
|
+
}
|
|
1086
|
+
const declaration = type.symbol.declarations[0];
|
|
1087
|
+
if (declaration.readonlyToken !== void 0 && !/^__@[^@]+$/.test(name)) {
|
|
1088
|
+
return declaration.readonlyToken.kind !== ts9.SyntaxKind.MinusToken;
|
|
1089
|
+
}
|
|
1090
|
+
const { modifiersType } = type;
|
|
1091
|
+
return modifiersType && isPropertyReadonlyInType(modifiersType, name, typeChecker);
|
|
1092
|
+
}
|
|
1093
|
+
function isCallback(typeChecker, param, node) {
|
|
1094
|
+
let type = typeChecker.getApparentType(
|
|
1095
|
+
typeChecker.getTypeOfSymbolAtLocation(param, node)
|
|
1096
|
+
);
|
|
1097
|
+
if (param.valueDeclaration.dotDotDotToken) {
|
|
1098
|
+
type = type.getNumberIndexType();
|
|
1099
|
+
if (type === void 0) {
|
|
1100
|
+
return false;
|
|
1101
|
+
}
|
|
1102
|
+
}
|
|
1103
|
+
for (const subType of unionTypeParts(type)) {
|
|
1104
|
+
if (subType.getCallSignatures().length !== 0) {
|
|
1105
|
+
return true;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
1108
|
+
return false;
|
|
1109
|
+
}
|
|
1110
|
+
function isPropertyReadonlyInType(type, name, typeChecker) {
|
|
1111
|
+
let seenProperty = false;
|
|
1112
|
+
let seenReadonlySignature = false;
|
|
1113
|
+
for (const subType of unionTypeParts(type)) {
|
|
1114
|
+
if (getPropertyOfType(subType, name) === void 0) {
|
|
1115
|
+
const index = (isNumericPropertyName(name) ? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.Number) : void 0) ?? typeChecker.getIndexInfoOfType(subType, ts9.IndexKind.String);
|
|
1116
|
+
if (index == null ? void 0 : index.isReadonly) {
|
|
1117
|
+
if (seenProperty) {
|
|
1118
|
+
return true;
|
|
1119
|
+
}
|
|
1120
|
+
seenReadonlySignature = true;
|
|
1121
|
+
}
|
|
1122
|
+
} else if (seenReadonlySignature || isReadonlyPropertyIntersection(subType, name, typeChecker)) {
|
|
1123
|
+
return true;
|
|
1124
|
+
} else {
|
|
1125
|
+
seenProperty = true;
|
|
1126
|
+
}
|
|
1127
|
+
}
|
|
1128
|
+
return false;
|
|
1129
|
+
}
|
|
1130
|
+
function isReadonlyAssignmentDeclaration(node, typeChecker) {
|
|
1131
|
+
if (!isBindableObjectDefinePropertyCall(node)) {
|
|
1132
|
+
return false;
|
|
1133
|
+
}
|
|
1134
|
+
const descriptorType = typeChecker.getTypeAtLocation(node.arguments[2]);
|
|
1135
|
+
if (descriptorType.getProperty("value") === void 0) {
|
|
1136
|
+
return descriptorType.getProperty("set") === void 0;
|
|
1137
|
+
}
|
|
1138
|
+
const writableProp = descriptorType.getProperty("writable");
|
|
1139
|
+
if (writableProp === void 0) {
|
|
1140
|
+
return false;
|
|
1141
|
+
}
|
|
1142
|
+
const writableType = writableProp.valueDeclaration !== void 0 && ts9.isPropertyAssignment(writableProp.valueDeclaration) ? typeChecker.getTypeAtLocation(writableProp.valueDeclaration.initializer) : typeChecker.getTypeOfSymbolAtLocation(writableProp, node.arguments[2]);
|
|
1143
|
+
return isFalseLiteralType(writableType);
|
|
1144
|
+
}
|
|
1145
|
+
function isThenableType(typeChecker, node, type = typeChecker.getTypeAtLocation(node)) {
|
|
1146
|
+
for (const typePart of unionTypeParts(typeChecker.getApparentType(type))) {
|
|
1147
|
+
const then = typePart.getProperty("then");
|
|
1148
|
+
if (then === void 0) {
|
|
1149
|
+
continue;
|
|
1150
|
+
}
|
|
1151
|
+
const thenType = typeChecker.getTypeOfSymbolAtLocation(then, node);
|
|
1152
|
+
for (const subTypePart of unionTypeParts(thenType)) {
|
|
1153
|
+
for (const signature of subTypePart.getCallSignatures()) {
|
|
1154
|
+
if (signature.parameters.length !== 0 && isCallback(typeChecker, signature.parameters[0], node)) {
|
|
1155
|
+
return true;
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
return false;
|
|
1161
|
+
}
|
|
1162
|
+
function symbolHasReadonlyDeclaration(symbol, typeChecker) {
|
|
1163
|
+
var _a;
|
|
1164
|
+
return !!((symbol.flags & ts9.SymbolFlags.Accessor) === ts9.SymbolFlags.GetAccessor || ((_a = symbol.declarations) == null ? void 0 : _a.some(
|
|
1165
|
+
(node) => isModifierFlagSet(node, ts9.ModifierFlags.Readonly) || ts9.isVariableDeclaration(node) && isNodeFlagSet(node.parent, ts9.NodeFlags.Const) || ts9.isCallExpression(node) && isReadonlyAssignmentDeclaration(node, typeChecker) || ts9.isEnumMember(node) || (ts9.isPropertyAssignment(node) || ts9.isShorthandPropertyAssignment(node)) && isInConstContext(node, typeChecker)
|
|
1166
|
+
)));
|
|
1167
|
+
}
|
|
1168
|
+
function unionTypeParts(type) {
|
|
1169
|
+
return isUnionType(type) ? type.types : [type];
|
|
1170
|
+
}
|
|
1171
|
+
function typeIsLiteral(type) {
|
|
1172
|
+
if (isTsVersionAtLeast(5, 0)) {
|
|
1173
|
+
return type.isLiteral();
|
|
1174
|
+
} else {
|
|
1175
|
+
return isTypeFlagSet(
|
|
1176
|
+
type,
|
|
1177
|
+
ts9.TypeFlags.StringLiteral | ts9.TypeFlags.NumberLiteral | ts9.TypeFlags.BigIntLiteral
|
|
1178
|
+
);
|
|
1179
|
+
}
|
|
1180
|
+
}
|
|
1181
|
+
function isBlockScopeBoundary(node) {
|
|
1182
|
+
switch (node.kind) {
|
|
1183
|
+
case ts9.SyntaxKind.Block: {
|
|
1184
|
+
const parent = node.parent;
|
|
1185
|
+
return parent.kind !== ts9.SyntaxKind.CatchClause && // blocks inside SourceFile are block scope boundaries
|
|
1186
|
+
(parent.kind === ts9.SyntaxKind.SourceFile || // blocks that are direct children of a function scope boundary are no scope boundary
|
|
1187
|
+
// for example the FunctionBlock is part of the function scope of the containing function
|
|
1188
|
+
!isFunctionScopeBoundary(parent)) ? 2 /* Block */ : 0 /* None */;
|
|
1189
|
+
}
|
|
1190
|
+
case ts9.SyntaxKind.ForStatement:
|
|
1191
|
+
case ts9.SyntaxKind.ForInStatement:
|
|
1192
|
+
case ts9.SyntaxKind.ForOfStatement:
|
|
1193
|
+
case ts9.SyntaxKind.CaseBlock:
|
|
1194
|
+
case ts9.SyntaxKind.CatchClause:
|
|
1195
|
+
case ts9.SyntaxKind.WithStatement:
|
|
1196
|
+
return 2 /* Block */;
|
|
1197
|
+
default:
|
|
1198
|
+
return 0 /* None */;
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
function identifierToKeywordKind(node) {
|
|
1202
|
+
return "identifierToKeywordKind" in ts9 ? ts9.identifierToKeywordKind(node) : (
|
|
1203
|
+
// eslint-disable-next-line deprecation/deprecation
|
|
1204
|
+
node.originalKeywordKind
|
|
1205
|
+
);
|
|
1206
|
+
}
|
|
1207
|
+
function canHaveDecorators(node) {
|
|
1208
|
+
return "canHaveDecorators" in ts9 ? ts9.canHaveDecorators(node) : "decorators" in node;
|
|
1209
|
+
}
|
|
1210
|
+
function getDecorators(node) {
|
|
1211
|
+
return "getDecorators" in ts9 ? ts9.getDecorators(node) : node.decorators;
|
|
1212
|
+
}
|
|
1213
|
+
|
|
1214
|
+
// src/usage/declarations.ts
|
|
1215
|
+
var DeclarationDomain = /* @__PURE__ */ ((DeclarationDomain2) => {
|
|
1216
|
+
DeclarationDomain2[DeclarationDomain2["Import"] = 8] = "Import";
|
|
1217
|
+
DeclarationDomain2[DeclarationDomain2["Namespace"] = 1] = "Namespace";
|
|
1218
|
+
DeclarationDomain2[DeclarationDomain2["Type"] = 2] = "Type";
|
|
1219
|
+
DeclarationDomain2[DeclarationDomain2["Value"] = 4] = "Value";
|
|
1220
|
+
DeclarationDomain2[DeclarationDomain2["Any"] = 7] = "Any";
|
|
1221
|
+
return DeclarationDomain2;
|
|
1222
|
+
})(DeclarationDomain || {});
|
|
1223
|
+
function getDeclarationDomain(node) {
|
|
1224
|
+
switch (node.parent.kind) {
|
|
1225
|
+
case ts9.SyntaxKind.TypeParameter:
|
|
1226
|
+
case ts9.SyntaxKind.InterfaceDeclaration:
|
|
1227
|
+
case ts9.SyntaxKind.TypeAliasDeclaration:
|
|
1228
|
+
return 2 /* Type */;
|
|
1229
|
+
case ts9.SyntaxKind.ClassDeclaration:
|
|
1230
|
+
case ts9.SyntaxKind.ClassExpression:
|
|
1231
|
+
return 2 /* Type */ | 4 /* Value */;
|
|
1232
|
+
case ts9.SyntaxKind.EnumDeclaration:
|
|
1233
|
+
return 7 /* Any */;
|
|
1234
|
+
case ts9.SyntaxKind.NamespaceImport:
|
|
1235
|
+
case ts9.SyntaxKind.ImportClause:
|
|
1236
|
+
return 7 /* Any */ | 8 /* Import */;
|
|
1237
|
+
// TODO handle type-only imports
|
|
1238
|
+
case ts9.SyntaxKind.ImportEqualsDeclaration:
|
|
1239
|
+
case ts9.SyntaxKind.ImportSpecifier:
|
|
1240
|
+
return node.parent.name === node ? 7 /* Any */ | 8 /* Import */ : void 0;
|
|
1241
|
+
case ts9.SyntaxKind.ModuleDeclaration:
|
|
1242
|
+
return 1 /* Namespace */;
|
|
1243
|
+
case ts9.SyntaxKind.Parameter:
|
|
1244
|
+
if (node.parent.parent.kind === ts9.SyntaxKind.IndexSignature || identifierToKeywordKind(node) === ts9.SyntaxKind.ThisKeyword) {
|
|
1245
|
+
return;
|
|
1246
|
+
}
|
|
1247
|
+
// falls through
|
|
1248
|
+
case ts9.SyntaxKind.BindingElement:
|
|
1249
|
+
case ts9.SyntaxKind.VariableDeclaration:
|
|
1250
|
+
return node.parent.name === node ? 4 /* Value */ : void 0;
|
|
1251
|
+
case ts9.SyntaxKind.FunctionDeclaration:
|
|
1252
|
+
case ts9.SyntaxKind.FunctionExpression:
|
|
1253
|
+
return 4 /* Value */;
|
|
1254
|
+
}
|
|
1255
|
+
}
|
|
1256
|
+
function unwrapParentheses(node) {
|
|
1257
|
+
while (node.kind === ts9.SyntaxKind.ParenthesizedExpression) {
|
|
1258
|
+
node = node.expression;
|
|
1259
|
+
}
|
|
1260
|
+
return node;
|
|
1261
|
+
}
|
|
1262
|
+
function getPropertyName(propertyName) {
|
|
1263
|
+
if (propertyName.kind === ts9.SyntaxKind.ComputedPropertyName) {
|
|
1264
|
+
const expression = unwrapParentheses(propertyName.expression);
|
|
1265
|
+
if (ts9.isPrefixUnaryExpression(expression)) {
|
|
1266
|
+
let negate = false;
|
|
1267
|
+
switch (expression.operator) {
|
|
1268
|
+
case ts9.SyntaxKind.MinusToken:
|
|
1269
|
+
negate = true;
|
|
1270
|
+
// falls through
|
|
1271
|
+
case ts9.SyntaxKind.PlusToken:
|
|
1272
|
+
return ts9.isNumericLiteral(expression.operand) ? `${negate ? "-" : ""}${expression.operand.text}` : ts9.isBigIntLiteral(expression.operand) ? `${negate ? "-" : ""}${expression.operand.text.slice(0, -1)}` : void 0;
|
|
1273
|
+
default:
|
|
1274
|
+
return;
|
|
1275
|
+
}
|
|
1276
|
+
}
|
|
1277
|
+
if (ts9.isBigIntLiteral(expression)) {
|
|
1278
|
+
return expression.text.slice(0, -1);
|
|
1279
|
+
}
|
|
1280
|
+
if (isNumericOrStringLikeLiteral(expression)) {
|
|
1281
|
+
return expression.text;
|
|
1282
|
+
}
|
|
1283
|
+
return;
|
|
1284
|
+
}
|
|
1285
|
+
return propertyName.kind === ts9.SyntaxKind.PrivateIdentifier ? void 0 : propertyName.text;
|
|
1286
|
+
}
|
|
1287
|
+
var UsageDomain = /* @__PURE__ */ ((UsageDomain2) => {
|
|
1288
|
+
UsageDomain2[UsageDomain2["Namespace"] = 1] = "Namespace";
|
|
1289
|
+
UsageDomain2[UsageDomain2["Type"] = 2] = "Type";
|
|
1290
|
+
UsageDomain2[UsageDomain2["TypeQuery"] = 8] = "TypeQuery";
|
|
1291
|
+
UsageDomain2[UsageDomain2["Value"] = 4] = "Value";
|
|
1292
|
+
UsageDomain2[UsageDomain2["ValueOrNamespace"] = 5] = "ValueOrNamespace";
|
|
1293
|
+
UsageDomain2[UsageDomain2["Any"] = 7] = "Any";
|
|
1294
|
+
return UsageDomain2;
|
|
1295
|
+
})(UsageDomain || {});
|
|
1296
|
+
function getUsageDomain(node) {
|
|
1297
|
+
const parent = node.parent;
|
|
1298
|
+
switch (parent.kind) {
|
|
1299
|
+
case ts9.SyntaxKind.TypeReference:
|
|
1300
|
+
return identifierToKeywordKind(node) !== ts9.SyntaxKind.ConstKeyword ? 2 /* Type */ : void 0;
|
|
1301
|
+
case ts9.SyntaxKind.ExpressionWithTypeArguments:
|
|
1302
|
+
return parent.parent.token === ts9.SyntaxKind.ImplementsKeyword || parent.parent.parent.kind === ts9.SyntaxKind.InterfaceDeclaration ? 2 /* Type */ : 4 /* Value */;
|
|
1303
|
+
case ts9.SyntaxKind.TypeQuery:
|
|
1304
|
+
return 5 /* ValueOrNamespace */ | 8 /* TypeQuery */;
|
|
1305
|
+
case ts9.SyntaxKind.QualifiedName:
|
|
1306
|
+
if (parent.left === node) {
|
|
1307
|
+
if (getEntityNameParent(parent).kind === ts9.SyntaxKind.TypeQuery) {
|
|
1308
|
+
return 1 /* Namespace */ | 8 /* TypeQuery */;
|
|
1309
|
+
}
|
|
1310
|
+
return 1 /* Namespace */;
|
|
1311
|
+
}
|
|
1312
|
+
break;
|
|
1313
|
+
case ts9.SyntaxKind.ExportSpecifier:
|
|
1314
|
+
if (parent.propertyName === void 0 || parent.propertyName === node) {
|
|
1315
|
+
return 7 /* Any */;
|
|
1316
|
+
}
|
|
1317
|
+
break;
|
|
1318
|
+
case ts9.SyntaxKind.ExportAssignment:
|
|
1319
|
+
return 7 /* Any */;
|
|
1320
|
+
// Value
|
|
1321
|
+
case ts9.SyntaxKind.BindingElement:
|
|
1322
|
+
if (parent.initializer === node) {
|
|
1323
|
+
return 5 /* ValueOrNamespace */;
|
|
1324
|
+
}
|
|
1325
|
+
break;
|
|
1326
|
+
case ts9.SyntaxKind.Parameter:
|
|
1327
|
+
case ts9.SyntaxKind.EnumMember:
|
|
1328
|
+
case ts9.SyntaxKind.PropertyDeclaration:
|
|
1329
|
+
case ts9.SyntaxKind.VariableDeclaration:
|
|
1330
|
+
case ts9.SyntaxKind.PropertyAssignment:
|
|
1331
|
+
case ts9.SyntaxKind.PropertyAccessExpression:
|
|
1332
|
+
case ts9.SyntaxKind.ImportEqualsDeclaration:
|
|
1333
|
+
if (parent.name !== node) {
|
|
1334
|
+
return 5 /* ValueOrNamespace */;
|
|
1335
|
+
}
|
|
1336
|
+
break;
|
|
1337
|
+
case ts9.SyntaxKind.JsxAttribute:
|
|
1338
|
+
case ts9.SyntaxKind.FunctionDeclaration:
|
|
1339
|
+
case ts9.SyntaxKind.FunctionExpression:
|
|
1340
|
+
case ts9.SyntaxKind.NamespaceImport:
|
|
1341
|
+
case ts9.SyntaxKind.ClassDeclaration:
|
|
1342
|
+
case ts9.SyntaxKind.ClassExpression:
|
|
1343
|
+
case ts9.SyntaxKind.ModuleDeclaration:
|
|
1344
|
+
case ts9.SyntaxKind.MethodDeclaration:
|
|
1345
|
+
case ts9.SyntaxKind.EnumDeclaration:
|
|
1346
|
+
case ts9.SyntaxKind.GetAccessor:
|
|
1347
|
+
case ts9.SyntaxKind.SetAccessor:
|
|
1348
|
+
case ts9.SyntaxKind.LabeledStatement:
|
|
1349
|
+
case ts9.SyntaxKind.BreakStatement:
|
|
1350
|
+
case ts9.SyntaxKind.ContinueStatement:
|
|
1351
|
+
case ts9.SyntaxKind.ImportClause:
|
|
1352
|
+
case ts9.SyntaxKind.ImportSpecifier:
|
|
1353
|
+
case ts9.SyntaxKind.TypePredicate:
|
|
1354
|
+
// TODO this actually references a parameter
|
|
1355
|
+
case ts9.SyntaxKind.MethodSignature:
|
|
1356
|
+
case ts9.SyntaxKind.PropertySignature:
|
|
1357
|
+
case ts9.SyntaxKind.NamespaceExportDeclaration:
|
|
1358
|
+
case ts9.SyntaxKind.NamespaceExport:
|
|
1359
|
+
case ts9.SyntaxKind.InterfaceDeclaration:
|
|
1360
|
+
case ts9.SyntaxKind.TypeAliasDeclaration:
|
|
1361
|
+
case ts9.SyntaxKind.TypeParameter:
|
|
1362
|
+
case ts9.SyntaxKind.NamedTupleMember:
|
|
1363
|
+
break;
|
|
1364
|
+
default:
|
|
1365
|
+
return 5 /* ValueOrNamespace */;
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
function getEntityNameParent(name) {
|
|
1369
|
+
let parent = name.parent;
|
|
1370
|
+
while (parent.kind === ts9.SyntaxKind.QualifiedName) {
|
|
1371
|
+
parent = parent.parent;
|
|
1372
|
+
}
|
|
1373
|
+
return parent;
|
|
1374
|
+
}
|
|
1375
|
+
|
|
1376
|
+
// src/usage/scopes.ts
|
|
1377
|
+
var AbstractScope = class {
|
|
1378
|
+
constructor(global) {
|
|
1379
|
+
this.global = global;
|
|
1380
|
+
this.#enumScopes = void 0;
|
|
1381
|
+
this.namespaceScopes = void 0;
|
|
1382
|
+
this.uses = [];
|
|
1383
|
+
this.variables = /* @__PURE__ */ new Map();
|
|
1384
|
+
}
|
|
1385
|
+
#enumScopes;
|
|
1386
|
+
addUse(use) {
|
|
1387
|
+
this.uses.push(use);
|
|
1388
|
+
}
|
|
1389
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1390
|
+
addUseToParent(_use) {
|
|
1391
|
+
}
|
|
1392
|
+
addVariable(identifier, name, selector, exported, domain) {
|
|
1393
|
+
const variables = this.getDestinationScope(selector).getVariables();
|
|
1394
|
+
const declaration = {
|
|
1395
|
+
declaration: name,
|
|
1396
|
+
domain,
|
|
1397
|
+
exported
|
|
1398
|
+
};
|
|
1399
|
+
const variable = variables.get(identifier);
|
|
1400
|
+
if (variable === void 0) {
|
|
1401
|
+
variables.set(identifier, {
|
|
1402
|
+
declarations: [declaration],
|
|
1403
|
+
domain,
|
|
1404
|
+
uses: []
|
|
1405
|
+
});
|
|
1406
|
+
} else {
|
|
1407
|
+
variable.domain |= domain;
|
|
1408
|
+
variable.declarations.push(declaration);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
applyUse(use, variables = this.variables) {
|
|
1412
|
+
const variable = variables.get(use.location.text);
|
|
1413
|
+
if (variable === void 0 || (variable.domain & use.domain) === 0) {
|
|
1414
|
+
return false;
|
|
1415
|
+
}
|
|
1416
|
+
variable.uses.push(use);
|
|
1417
|
+
return true;
|
|
1418
|
+
}
|
|
1419
|
+
applyUses() {
|
|
1420
|
+
for (const use of this.uses) {
|
|
1421
|
+
if (!this.applyUse(use)) {
|
|
1422
|
+
this.addUseToParent(use);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
this.uses = [];
|
|
1426
|
+
}
|
|
1427
|
+
createOrReuseEnumScope(name, _exported) {
|
|
1428
|
+
let scope;
|
|
1429
|
+
if (this.#enumScopes === void 0) {
|
|
1430
|
+
this.#enumScopes = /* @__PURE__ */ new Map();
|
|
1431
|
+
} else {
|
|
1432
|
+
scope = this.#enumScopes.get(name);
|
|
1433
|
+
}
|
|
1434
|
+
if (scope === void 0) {
|
|
1435
|
+
scope = new EnumScope(this);
|
|
1436
|
+
this.#enumScopes.set(name, scope);
|
|
1437
|
+
}
|
|
1438
|
+
return scope;
|
|
1439
|
+
}
|
|
1440
|
+
// only relevant for the root scope
|
|
1441
|
+
createOrReuseNamespaceScope(name, _exported, ambient, hasExportStatement) {
|
|
1442
|
+
let scope;
|
|
1443
|
+
if (this.namespaceScopes === void 0) {
|
|
1444
|
+
this.namespaceScopes = /* @__PURE__ */ new Map();
|
|
1445
|
+
} else {
|
|
1446
|
+
scope = this.namespaceScopes.get(name);
|
|
1447
|
+
}
|
|
1448
|
+
if (scope === void 0) {
|
|
1449
|
+
scope = new NamespaceScope(ambient, hasExportStatement, this);
|
|
1450
|
+
this.namespaceScopes.set(name, scope);
|
|
1451
|
+
} else {
|
|
1452
|
+
scope.refresh(ambient, hasExportStatement);
|
|
1453
|
+
}
|
|
1454
|
+
return scope;
|
|
1455
|
+
}
|
|
1456
|
+
end(cb) {
|
|
1457
|
+
if (this.namespaceScopes !== void 0) {
|
|
1458
|
+
this.namespaceScopes.forEach((value) => value.finish(cb));
|
|
1459
|
+
}
|
|
1460
|
+
this.namespaceScopes = this.#enumScopes = void 0;
|
|
1461
|
+
this.applyUses();
|
|
1462
|
+
this.variables.forEach((variable) => {
|
|
1463
|
+
for (const declaration of variable.declarations) {
|
|
1464
|
+
const result = {
|
|
1465
|
+
declarations: [],
|
|
1466
|
+
domain: declaration.domain,
|
|
1467
|
+
exported: declaration.exported,
|
|
1468
|
+
inGlobalScope: this.global,
|
|
1469
|
+
uses: []
|
|
1470
|
+
};
|
|
1471
|
+
for (const other of variable.declarations) {
|
|
1472
|
+
if (other.domain & declaration.domain) {
|
|
1473
|
+
result.declarations.push(other.declaration);
|
|
1474
|
+
}
|
|
1475
|
+
}
|
|
1476
|
+
for (const use of variable.uses) {
|
|
1477
|
+
if (use.domain & declaration.domain) {
|
|
1478
|
+
result.uses.push(use);
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
cb(result, declaration.declaration, this);
|
|
1482
|
+
}
|
|
1483
|
+
});
|
|
1484
|
+
}
|
|
1485
|
+
getFunctionScope() {
|
|
1486
|
+
return this;
|
|
1487
|
+
}
|
|
1488
|
+
getVariables() {
|
|
1489
|
+
return this.variables;
|
|
1490
|
+
}
|
|
1491
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1492
|
+
markExported(_name) {
|
|
1493
|
+
}
|
|
1494
|
+
};
|
|
1495
|
+
var NonRootScope = class extends AbstractScope {
|
|
1496
|
+
constructor(parent, boundary) {
|
|
1497
|
+
super(false);
|
|
1498
|
+
this.parent = parent;
|
|
1499
|
+
this.boundary = boundary;
|
|
1500
|
+
}
|
|
1501
|
+
addUseToParent(use) {
|
|
1502
|
+
return this.parent.addUse(use, this);
|
|
1503
|
+
}
|
|
1504
|
+
getDestinationScope(selector) {
|
|
1505
|
+
return this.boundary & selector ? this : this.parent.getDestinationScope(selector);
|
|
1506
|
+
}
|
|
1507
|
+
};
|
|
1508
|
+
var EnumScope = class extends NonRootScope {
|
|
1509
|
+
constructor(parent) {
|
|
1510
|
+
super(parent, 1 /* Function */);
|
|
1511
|
+
}
|
|
1512
|
+
end() {
|
|
1513
|
+
this.applyUses();
|
|
1514
|
+
}
|
|
1515
|
+
};
|
|
1516
|
+
var RootScope = class extends AbstractScope {
|
|
1517
|
+
#exportAll;
|
|
1518
|
+
#exports = void 0;
|
|
1519
|
+
#innerScope = new NonRootScope(this, 1 /* Function */);
|
|
1520
|
+
constructor(exportAll, global) {
|
|
1521
|
+
super(global);
|
|
1522
|
+
this.#exportAll = exportAll;
|
|
1523
|
+
}
|
|
1524
|
+
addUse(use, origin) {
|
|
1525
|
+
if (origin === this.#innerScope) {
|
|
1526
|
+
return super.addUse(use);
|
|
1527
|
+
}
|
|
1528
|
+
return this.#innerScope.addUse(use);
|
|
1529
|
+
}
|
|
1530
|
+
addVariable(identifier, name, selector, exported, domain) {
|
|
1531
|
+
if (domain & 8 /* Import */) {
|
|
1532
|
+
return super.addVariable(identifier, name, selector, exported, domain);
|
|
1533
|
+
}
|
|
1534
|
+
return this.#innerScope.addVariable(
|
|
1535
|
+
identifier,
|
|
1536
|
+
name,
|
|
1537
|
+
selector,
|
|
1538
|
+
exported,
|
|
1539
|
+
domain
|
|
1540
|
+
);
|
|
1541
|
+
}
|
|
1542
|
+
end(cb) {
|
|
1543
|
+
this.#innerScope.end((value, key) => {
|
|
1544
|
+
value.exported ||= this.#exportAll || this.#exports !== void 0 && this.#exports.includes(key.text);
|
|
1545
|
+
value.inGlobalScope = this.global;
|
|
1546
|
+
return cb(value, key, this);
|
|
1547
|
+
});
|
|
1548
|
+
return super.end((value, key, scope) => {
|
|
1549
|
+
value.exported ||= scope === this && this.#exports !== void 0 && this.#exports.includes(key.text);
|
|
1550
|
+
return cb(value, key, scope);
|
|
1551
|
+
});
|
|
1552
|
+
}
|
|
1553
|
+
getDestinationScope() {
|
|
1554
|
+
return this;
|
|
1555
|
+
}
|
|
1556
|
+
markExported(id) {
|
|
1557
|
+
if (this.#exports === void 0) {
|
|
1558
|
+
this.#exports = [id.text];
|
|
1559
|
+
} else {
|
|
1560
|
+
this.#exports.push(id.text);
|
|
1561
|
+
}
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1564
|
+
var NamespaceScope = class extends NonRootScope {
|
|
1565
|
+
#ambient;
|
|
1566
|
+
#exports = void 0;
|
|
1567
|
+
#hasExport;
|
|
1568
|
+
#innerScope = new NonRootScope(this, 1 /* Function */);
|
|
1569
|
+
constructor(ambient, hasExport, parent) {
|
|
1570
|
+
super(parent, 1 /* Function */);
|
|
1571
|
+
this.#ambient = ambient;
|
|
1572
|
+
this.#hasExport = hasExport;
|
|
1573
|
+
}
|
|
1574
|
+
addUse(use, source) {
|
|
1575
|
+
if (source !== this.#innerScope) {
|
|
1576
|
+
return this.#innerScope.addUse(use);
|
|
1577
|
+
}
|
|
1578
|
+
this.uses.push(use);
|
|
1579
|
+
}
|
|
1580
|
+
createOrReuseEnumScope(name, exported) {
|
|
1581
|
+
if (!exported && (!this.#ambient || this.#hasExport)) {
|
|
1582
|
+
return this.#innerScope.createOrReuseEnumScope(name, exported);
|
|
1583
|
+
}
|
|
1584
|
+
return super.createOrReuseEnumScope(name, exported);
|
|
1585
|
+
}
|
|
1586
|
+
createOrReuseNamespaceScope(name, exported, ambient, hasExportStatement) {
|
|
1587
|
+
if (!exported && (!this.#ambient || this.#hasExport)) {
|
|
1588
|
+
return this.#innerScope.createOrReuseNamespaceScope(
|
|
1589
|
+
name,
|
|
1590
|
+
exported,
|
|
1591
|
+
ambient || this.#ambient,
|
|
1592
|
+
hasExportStatement
|
|
1593
|
+
);
|
|
1594
|
+
}
|
|
1595
|
+
return super.createOrReuseNamespaceScope(
|
|
1596
|
+
name,
|
|
1597
|
+
exported,
|
|
1598
|
+
ambient || this.#ambient,
|
|
1599
|
+
hasExportStatement
|
|
1600
|
+
);
|
|
1601
|
+
}
|
|
1602
|
+
end(cb) {
|
|
1603
|
+
this.#innerScope.end((variable, key, scope) => {
|
|
1604
|
+
if (scope !== this.#innerScope || !variable.exported && (!this.#ambient || this.#exports !== void 0 && !this.#exports.has(key.text))) {
|
|
1605
|
+
return cb(variable, key, scope);
|
|
1606
|
+
}
|
|
1607
|
+
const namespaceVar = this.variables.get(key.text);
|
|
1608
|
+
if (namespaceVar === void 0) {
|
|
1609
|
+
this.variables.set(key.text, {
|
|
1610
|
+
declarations: variable.declarations.map(mapDeclaration),
|
|
1611
|
+
domain: variable.domain,
|
|
1612
|
+
uses: [...variable.uses]
|
|
1613
|
+
});
|
|
1614
|
+
} else {
|
|
1615
|
+
outer: for (const declaration of variable.declarations) {
|
|
1616
|
+
for (const existing of namespaceVar.declarations) {
|
|
1617
|
+
if (existing.declaration === declaration) {
|
|
1618
|
+
continue outer;
|
|
1619
|
+
}
|
|
1620
|
+
namespaceVar.declarations.push(mapDeclaration(declaration));
|
|
1621
|
+
}
|
|
1622
|
+
}
|
|
1623
|
+
namespaceVar.domain |= variable.domain;
|
|
1624
|
+
for (const use of variable.uses) {
|
|
1625
|
+
if (namespaceVar.uses.includes(use)) {
|
|
1626
|
+
continue;
|
|
1627
|
+
}
|
|
1628
|
+
namespaceVar.uses.push(use);
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
});
|
|
1632
|
+
this.applyUses();
|
|
1633
|
+
this.#innerScope = new NonRootScope(this, 1 /* Function */);
|
|
1634
|
+
}
|
|
1635
|
+
finish(cb) {
|
|
1636
|
+
return super.end(cb);
|
|
1637
|
+
}
|
|
1638
|
+
getDestinationScope() {
|
|
1639
|
+
return this.#innerScope;
|
|
1640
|
+
}
|
|
1641
|
+
markExported(name) {
|
|
1642
|
+
if (this.#exports === void 0) {
|
|
1643
|
+
this.#exports = /* @__PURE__ */ new Set();
|
|
1644
|
+
}
|
|
1645
|
+
this.#exports.add(name.text);
|
|
1646
|
+
}
|
|
1647
|
+
refresh(ambient, hasExport) {
|
|
1648
|
+
this.#ambient = ambient;
|
|
1649
|
+
this.#hasExport = hasExport;
|
|
1650
|
+
}
|
|
1651
|
+
};
|
|
1652
|
+
function mapDeclaration(declaration) {
|
|
1653
|
+
return {
|
|
1654
|
+
declaration,
|
|
1655
|
+
domain: getDeclarationDomain(declaration),
|
|
1656
|
+
exported: true
|
|
1657
|
+
};
|
|
1658
|
+
}
|
|
1659
|
+
var FunctionScope = class extends NonRootScope {
|
|
1660
|
+
constructor(parent) {
|
|
1661
|
+
super(parent, 1 /* Function */);
|
|
1662
|
+
}
|
|
1663
|
+
beginBody() {
|
|
1664
|
+
this.applyUses();
|
|
1665
|
+
}
|
|
1666
|
+
};
|
|
1667
|
+
var AbstractNamedExpressionScope = class extends NonRootScope {
|
|
1668
|
+
#domain;
|
|
1669
|
+
#name;
|
|
1670
|
+
constructor(name, domain, parent) {
|
|
1671
|
+
super(parent, 1 /* Function */);
|
|
1672
|
+
this.#name = name;
|
|
1673
|
+
this.#domain = domain;
|
|
1674
|
+
}
|
|
1675
|
+
addUse(use, source) {
|
|
1676
|
+
if (source !== this.innerScope) {
|
|
1677
|
+
return this.innerScope.addUse(use);
|
|
1678
|
+
}
|
|
1679
|
+
if (use.domain & this.#domain && use.location.text === this.#name.text) {
|
|
1680
|
+
this.uses.push(use);
|
|
1681
|
+
} else {
|
|
1682
|
+
return this.parent.addUse(use, this);
|
|
1683
|
+
}
|
|
1684
|
+
}
|
|
1685
|
+
end(cb) {
|
|
1686
|
+
this.innerScope.end(cb);
|
|
1687
|
+
return cb(
|
|
1688
|
+
{
|
|
1689
|
+
declarations: [this.#name],
|
|
1690
|
+
domain: this.#domain,
|
|
1691
|
+
exported: false,
|
|
1692
|
+
inGlobalScope: false,
|
|
1693
|
+
uses: this.uses
|
|
1694
|
+
},
|
|
1695
|
+
this.#name,
|
|
1696
|
+
this
|
|
1697
|
+
);
|
|
1698
|
+
}
|
|
1699
|
+
getDestinationScope() {
|
|
1700
|
+
return this.innerScope;
|
|
1701
|
+
}
|
|
1702
|
+
getFunctionScope() {
|
|
1703
|
+
return this.innerScope;
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
var FunctionExpressionScope = class extends AbstractNamedExpressionScope {
|
|
1707
|
+
constructor(name, parent) {
|
|
1708
|
+
super(name, 4 /* Value */, parent);
|
|
1709
|
+
this.innerScope = new FunctionScope(this);
|
|
1710
|
+
}
|
|
1711
|
+
beginBody() {
|
|
1712
|
+
return this.innerScope.beginBody();
|
|
1713
|
+
}
|
|
1714
|
+
};
|
|
1715
|
+
var BlockScope = class extends NonRootScope {
|
|
1716
|
+
#functionScope;
|
|
1717
|
+
constructor(functionScope, parent) {
|
|
1718
|
+
super(parent, 2 /* Block */);
|
|
1719
|
+
this.#functionScope = functionScope;
|
|
1720
|
+
}
|
|
1721
|
+
getFunctionScope() {
|
|
1722
|
+
return this.#functionScope;
|
|
1723
|
+
}
|
|
1724
|
+
};
|
|
1725
|
+
var ClassExpressionScope = class extends AbstractNamedExpressionScope {
|
|
1726
|
+
constructor(name, parent) {
|
|
1727
|
+
super(name, 4 /* Value */ | 2 /* Type */, parent);
|
|
1728
|
+
this.innerScope = new NonRootScope(this, 1 /* Function */);
|
|
1729
|
+
}
|
|
1730
|
+
};
|
|
1731
|
+
var ConditionalTypeScope = class extends NonRootScope {
|
|
1732
|
+
#state = 0 /* Initial */;
|
|
1733
|
+
constructor(parent) {
|
|
1734
|
+
super(parent, 8 /* ConditionalType */);
|
|
1735
|
+
}
|
|
1736
|
+
addUse(use) {
|
|
1737
|
+
if (this.#state === 2 /* TrueType */) {
|
|
1738
|
+
return void this.uses.push(use);
|
|
1739
|
+
}
|
|
1740
|
+
return this.parent.addUse(use, this);
|
|
1741
|
+
}
|
|
1742
|
+
updateState(newState) {
|
|
1743
|
+
this.#state = newState;
|
|
1744
|
+
}
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
// src/usage/UsageWalker.ts
|
|
1748
|
+
var UsageWalker = class {
|
|
1749
|
+
#result = /* @__PURE__ */ new Map();
|
|
1750
|
+
#scope;
|
|
1751
|
+
#handleBindingName(name, blockScoped, exported) {
|
|
1752
|
+
if (name.kind === ts9.SyntaxKind.Identifier) {
|
|
1753
|
+
return this.#scope.addVariable(
|
|
1754
|
+
name.text,
|
|
1755
|
+
name,
|
|
1756
|
+
blockScoped ? 3 /* Block */ : 1 /* Function */,
|
|
1757
|
+
exported,
|
|
1758
|
+
4 /* Value */
|
|
1759
|
+
);
|
|
1760
|
+
}
|
|
1761
|
+
forEachDestructuringIdentifier(name, (declaration) => {
|
|
1762
|
+
this.#scope.addVariable(
|
|
1763
|
+
declaration.name.text,
|
|
1764
|
+
declaration.name,
|
|
1765
|
+
blockScoped ? 3 /* Block */ : 1 /* Function */,
|
|
1766
|
+
exported,
|
|
1767
|
+
4 /* Value */
|
|
1768
|
+
);
|
|
1769
|
+
});
|
|
1770
|
+
}
|
|
1771
|
+
#handleConditionalType(node, cb, varCb) {
|
|
1772
|
+
const savedScope = this.#scope;
|
|
1773
|
+
const scope = this.#scope = new ConditionalTypeScope(savedScope);
|
|
1774
|
+
cb(node.checkType);
|
|
1775
|
+
scope.updateState(1 /* Extends */);
|
|
1776
|
+
cb(node.extendsType);
|
|
1777
|
+
scope.updateState(2 /* TrueType */);
|
|
1778
|
+
cb(node.trueType);
|
|
1779
|
+
scope.updateState(3 /* FalseType */);
|
|
1780
|
+
cb(node.falseType);
|
|
1781
|
+
scope.end(varCb);
|
|
1782
|
+
this.#scope = savedScope;
|
|
1783
|
+
}
|
|
1784
|
+
#handleDeclaration(node, blockScoped, domain) {
|
|
1785
|
+
if (node.name !== void 0) {
|
|
1786
|
+
this.#scope.addVariable(
|
|
1787
|
+
node.name.text,
|
|
1788
|
+
node.name,
|
|
1789
|
+
blockScoped ? 3 /* Block */ : 1 /* Function */,
|
|
1790
|
+
includesModifier(
|
|
1791
|
+
node.modifiers,
|
|
1792
|
+
ts9.SyntaxKind.ExportKeyword
|
|
1793
|
+
),
|
|
1794
|
+
domain
|
|
1795
|
+
);
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
#handleFunctionLikeDeclaration(node, cb, varCb) {
|
|
1799
|
+
var _a;
|
|
1800
|
+
if (canHaveDecorators(node)) {
|
|
1801
|
+
(_a = getDecorators(node)) == null ? void 0 : _a.forEach(cb);
|
|
1802
|
+
}
|
|
1803
|
+
const savedScope = this.#scope;
|
|
1804
|
+
if (node.kind === ts9.SyntaxKind.FunctionDeclaration) {
|
|
1805
|
+
this.#handleDeclaration(node, false, 4 /* Value */);
|
|
1806
|
+
}
|
|
1807
|
+
const scope = this.#scope = node.kind === ts9.SyntaxKind.FunctionExpression && node.name !== void 0 ? new FunctionExpressionScope(node.name, savedScope) : new FunctionScope(savedScope);
|
|
1808
|
+
if (node.name !== void 0) {
|
|
1809
|
+
cb(node.name);
|
|
1810
|
+
}
|
|
1811
|
+
if (node.typeParameters !== void 0) {
|
|
1812
|
+
node.typeParameters.forEach(cb);
|
|
1813
|
+
}
|
|
1814
|
+
node.parameters.forEach(cb);
|
|
1815
|
+
if (node.type !== void 0) {
|
|
1816
|
+
cb(node.type);
|
|
1817
|
+
}
|
|
1818
|
+
if (node.body !== void 0) {
|
|
1819
|
+
scope.beginBody();
|
|
1820
|
+
cb(node.body);
|
|
1821
|
+
}
|
|
1822
|
+
scope.end(varCb);
|
|
1823
|
+
this.#scope = savedScope;
|
|
1824
|
+
}
|
|
1825
|
+
#handleModule(node, next) {
|
|
1826
|
+
if (node.flags & ts9.NodeFlags.GlobalAugmentation) {
|
|
1827
|
+
return next(
|
|
1828
|
+
node,
|
|
1829
|
+
this.#scope.createOrReuseNamespaceScope("-global", false, true, false)
|
|
1830
|
+
);
|
|
1831
|
+
}
|
|
1832
|
+
if (node.name.kind === ts9.SyntaxKind.Identifier) {
|
|
1833
|
+
const exported = isNamespaceExported(node);
|
|
1834
|
+
this.#scope.addVariable(
|
|
1835
|
+
node.name.text,
|
|
1836
|
+
node.name,
|
|
1837
|
+
1 /* Function */,
|
|
1838
|
+
exported,
|
|
1839
|
+
1 /* Namespace */ | 4 /* Value */
|
|
1840
|
+
);
|
|
1841
|
+
const ambient = includesModifier(
|
|
1842
|
+
node.modifiers,
|
|
1843
|
+
ts9.SyntaxKind.DeclareKeyword
|
|
1844
|
+
);
|
|
1845
|
+
return next(
|
|
1846
|
+
node,
|
|
1847
|
+
this.#scope.createOrReuseNamespaceScope(
|
|
1848
|
+
node.name.text,
|
|
1849
|
+
exported,
|
|
1850
|
+
ambient,
|
|
1851
|
+
ambient && namespaceHasExportStatement(node)
|
|
1852
|
+
)
|
|
1853
|
+
);
|
|
1854
|
+
}
|
|
1855
|
+
return next(
|
|
1856
|
+
node,
|
|
1857
|
+
this.#scope.createOrReuseNamespaceScope(
|
|
1858
|
+
`"${node.name.text}"`,
|
|
1859
|
+
false,
|
|
1860
|
+
true,
|
|
1861
|
+
namespaceHasExportStatement(node)
|
|
1862
|
+
)
|
|
1863
|
+
);
|
|
1864
|
+
}
|
|
1865
|
+
#handleVariableDeclaration(declarationList) {
|
|
1866
|
+
const blockScoped = isBlockScopedVariableDeclarationList(declarationList);
|
|
1867
|
+
const exported = declarationList.parent.kind === ts9.SyntaxKind.VariableStatement && includesModifier(
|
|
1868
|
+
declarationList.parent.modifiers,
|
|
1869
|
+
ts9.SyntaxKind.ExportKeyword
|
|
1870
|
+
);
|
|
1871
|
+
for (const declaration of declarationList.declarations) {
|
|
1872
|
+
this.#handleBindingName(declaration.name, blockScoped, exported);
|
|
1873
|
+
}
|
|
1874
|
+
}
|
|
1875
|
+
getUsage(sourceFile) {
|
|
1876
|
+
const variableCallback = (variable, key) => {
|
|
1877
|
+
this.#result.set(key, variable);
|
|
1878
|
+
};
|
|
1879
|
+
const isModule = ts9.isExternalModule(sourceFile);
|
|
1880
|
+
this.#scope = new RootScope(
|
|
1881
|
+
sourceFile.isDeclarationFile && isModule && !containsExportStatement(sourceFile),
|
|
1882
|
+
!isModule
|
|
1883
|
+
);
|
|
1884
|
+
const cb = (node) => {
|
|
1885
|
+
if (isBlockScopeBoundary(node)) {
|
|
1886
|
+
return continueWithScope(
|
|
1887
|
+
node,
|
|
1888
|
+
new BlockScope(this.#scope.getFunctionScope(), this.#scope),
|
|
1889
|
+
handleBlockScope
|
|
1890
|
+
);
|
|
1891
|
+
}
|
|
1892
|
+
switch (node.kind) {
|
|
1893
|
+
case ts9.SyntaxKind.ClassExpression:
|
|
1894
|
+
return continueWithScope(
|
|
1895
|
+
node,
|
|
1896
|
+
node.name !== void 0 ? new ClassExpressionScope(
|
|
1897
|
+
node.name,
|
|
1898
|
+
this.#scope
|
|
1899
|
+
) : new NonRootScope(this.#scope, 1 /* Function */)
|
|
1900
|
+
);
|
|
1901
|
+
case ts9.SyntaxKind.ClassDeclaration:
|
|
1902
|
+
this.#handleDeclaration(
|
|
1903
|
+
node,
|
|
1904
|
+
true,
|
|
1905
|
+
4 /* Value */ | 2 /* Type */
|
|
1906
|
+
);
|
|
1907
|
+
return continueWithScope(
|
|
1908
|
+
node,
|
|
1909
|
+
new NonRootScope(this.#scope, 1 /* Function */)
|
|
1910
|
+
);
|
|
1911
|
+
case ts9.SyntaxKind.InterfaceDeclaration:
|
|
1912
|
+
case ts9.SyntaxKind.TypeAliasDeclaration:
|
|
1913
|
+
this.#handleDeclaration(
|
|
1914
|
+
node,
|
|
1915
|
+
true,
|
|
1916
|
+
2 /* Type */
|
|
1917
|
+
);
|
|
1918
|
+
return continueWithScope(
|
|
1919
|
+
node,
|
|
1920
|
+
new NonRootScope(this.#scope, 4 /* Type */)
|
|
1921
|
+
);
|
|
1922
|
+
case ts9.SyntaxKind.EnumDeclaration:
|
|
1923
|
+
this.#handleDeclaration(
|
|
1924
|
+
node,
|
|
1925
|
+
true,
|
|
1926
|
+
7 /* Any */
|
|
1927
|
+
);
|
|
1928
|
+
return continueWithScope(
|
|
1929
|
+
node,
|
|
1930
|
+
this.#scope.createOrReuseEnumScope(
|
|
1931
|
+
node.name.text,
|
|
1932
|
+
includesModifier(
|
|
1933
|
+
node.modifiers,
|
|
1934
|
+
ts9.SyntaxKind.ExportKeyword
|
|
1935
|
+
)
|
|
1936
|
+
)
|
|
1937
|
+
);
|
|
1938
|
+
case ts9.SyntaxKind.ModuleDeclaration:
|
|
1939
|
+
return this.#handleModule(
|
|
1940
|
+
node,
|
|
1941
|
+
continueWithScope
|
|
1942
|
+
);
|
|
1943
|
+
case ts9.SyntaxKind.MappedType:
|
|
1944
|
+
return continueWithScope(
|
|
1945
|
+
node,
|
|
1946
|
+
new NonRootScope(this.#scope, 4 /* Type */)
|
|
1947
|
+
);
|
|
1948
|
+
case ts9.SyntaxKind.FunctionExpression:
|
|
1949
|
+
case ts9.SyntaxKind.ArrowFunction:
|
|
1950
|
+
case ts9.SyntaxKind.Constructor:
|
|
1951
|
+
case ts9.SyntaxKind.MethodDeclaration:
|
|
1952
|
+
case ts9.SyntaxKind.FunctionDeclaration:
|
|
1953
|
+
case ts9.SyntaxKind.GetAccessor:
|
|
1954
|
+
case ts9.SyntaxKind.SetAccessor:
|
|
1955
|
+
case ts9.SyntaxKind.MethodSignature:
|
|
1956
|
+
case ts9.SyntaxKind.CallSignature:
|
|
1957
|
+
case ts9.SyntaxKind.ConstructSignature:
|
|
1958
|
+
case ts9.SyntaxKind.ConstructorType:
|
|
1959
|
+
case ts9.SyntaxKind.FunctionType:
|
|
1960
|
+
return this.#handleFunctionLikeDeclaration(
|
|
1961
|
+
node,
|
|
1962
|
+
cb,
|
|
1963
|
+
variableCallback
|
|
1964
|
+
);
|
|
1965
|
+
case ts9.SyntaxKind.ConditionalType:
|
|
1966
|
+
return this.#handleConditionalType(
|
|
1967
|
+
node,
|
|
1968
|
+
cb,
|
|
1969
|
+
variableCallback
|
|
1970
|
+
);
|
|
1971
|
+
// End of Scope specific handling
|
|
1972
|
+
case ts9.SyntaxKind.VariableDeclarationList:
|
|
1973
|
+
this.#handleVariableDeclaration(node);
|
|
1974
|
+
break;
|
|
1975
|
+
case ts9.SyntaxKind.Parameter:
|
|
1976
|
+
if (node.parent.kind !== ts9.SyntaxKind.IndexSignature && (node.name.kind !== ts9.SyntaxKind.Identifier || identifierToKeywordKind(
|
|
1977
|
+
node.name
|
|
1978
|
+
) !== ts9.SyntaxKind.ThisKeyword)) {
|
|
1979
|
+
this.#handleBindingName(
|
|
1980
|
+
node.name,
|
|
1981
|
+
false,
|
|
1982
|
+
false
|
|
1983
|
+
);
|
|
1984
|
+
}
|
|
1985
|
+
break;
|
|
1986
|
+
case ts9.SyntaxKind.EnumMember:
|
|
1987
|
+
this.#scope.addVariable(
|
|
1988
|
+
getPropertyName(node.name),
|
|
1989
|
+
node.name,
|
|
1990
|
+
1 /* Function */,
|
|
1991
|
+
true,
|
|
1992
|
+
4 /* Value */
|
|
1993
|
+
);
|
|
1994
|
+
break;
|
|
1995
|
+
case ts9.SyntaxKind.ImportClause:
|
|
1996
|
+
case ts9.SyntaxKind.ImportSpecifier:
|
|
1997
|
+
case ts9.SyntaxKind.NamespaceImport:
|
|
1998
|
+
case ts9.SyntaxKind.ImportEqualsDeclaration:
|
|
1999
|
+
this.#handleDeclaration(
|
|
2000
|
+
node,
|
|
2001
|
+
false,
|
|
2002
|
+
7 /* Any */ | 8 /* Import */
|
|
2003
|
+
);
|
|
2004
|
+
break;
|
|
2005
|
+
case ts9.SyntaxKind.TypeParameter:
|
|
2006
|
+
this.#scope.addVariable(
|
|
2007
|
+
node.name.text,
|
|
2008
|
+
node.name,
|
|
2009
|
+
node.parent.kind === ts9.SyntaxKind.InferType ? 8 /* InferType */ : 7 /* Type */,
|
|
2010
|
+
false,
|
|
2011
|
+
2 /* Type */
|
|
2012
|
+
);
|
|
2013
|
+
break;
|
|
2014
|
+
case ts9.SyntaxKind.ExportSpecifier:
|
|
2015
|
+
if (node.propertyName !== void 0) {
|
|
2016
|
+
return this.#scope.markExported(
|
|
2017
|
+
node.propertyName,
|
|
2018
|
+
node.name
|
|
2019
|
+
);
|
|
2020
|
+
}
|
|
2021
|
+
return this.#scope.markExported(node.name);
|
|
2022
|
+
case ts9.SyntaxKind.ExportAssignment:
|
|
2023
|
+
if (node.expression.kind === ts9.SyntaxKind.Identifier) {
|
|
2024
|
+
return this.#scope.markExported(
|
|
2025
|
+
node.expression
|
|
2026
|
+
);
|
|
2027
|
+
}
|
|
2028
|
+
break;
|
|
2029
|
+
case ts9.SyntaxKind.Identifier: {
|
|
2030
|
+
const domain = getUsageDomain(node);
|
|
2031
|
+
if (domain !== void 0) {
|
|
2032
|
+
this.#scope.addUse({ domain, location: node });
|
|
2033
|
+
}
|
|
2034
|
+
return;
|
|
2035
|
+
}
|
|
2036
|
+
}
|
|
2037
|
+
return ts9.forEachChild(node, cb);
|
|
2038
|
+
};
|
|
2039
|
+
const continueWithScope = (node, scope, next = forEachChild) => {
|
|
2040
|
+
const savedScope = this.#scope;
|
|
2041
|
+
this.#scope = scope;
|
|
2042
|
+
next(node);
|
|
2043
|
+
this.#scope.end(variableCallback);
|
|
2044
|
+
this.#scope = savedScope;
|
|
2045
|
+
};
|
|
2046
|
+
const handleBlockScope = (node) => {
|
|
2047
|
+
if (node.kind === ts9.SyntaxKind.CatchClause && node.variableDeclaration !== void 0) {
|
|
2048
|
+
this.#handleBindingName(
|
|
2049
|
+
node.variableDeclaration.name,
|
|
2050
|
+
true,
|
|
2051
|
+
false
|
|
2052
|
+
);
|
|
2053
|
+
}
|
|
2054
|
+
return ts9.forEachChild(node, cb);
|
|
2055
|
+
};
|
|
2056
|
+
ts9.forEachChild(sourceFile, cb);
|
|
2057
|
+
this.#scope.end(variableCallback);
|
|
2058
|
+
return this.#result;
|
|
2059
|
+
function forEachChild(node) {
|
|
2060
|
+
return ts9.forEachChild(node, cb);
|
|
2061
|
+
}
|
|
2062
|
+
}
|
|
2063
|
+
};
|
|
2064
|
+
function isNamespaceExported(node) {
|
|
2065
|
+
return node.parent.kind === ts9.SyntaxKind.ModuleDeclaration || includesModifier(node.modifiers, ts9.SyntaxKind.ExportKeyword);
|
|
2066
|
+
}
|
|
2067
|
+
function namespaceHasExportStatement(ns) {
|
|
2068
|
+
if (ns.body === void 0 || ns.body.kind !== ts9.SyntaxKind.ModuleBlock) {
|
|
2069
|
+
return false;
|
|
2070
|
+
}
|
|
2071
|
+
return containsExportStatement(ns.body);
|
|
2072
|
+
}
|
|
2073
|
+
function containsExportStatement(block) {
|
|
2074
|
+
for (const statement of block.statements) {
|
|
2075
|
+
if (statement.kind === ts9.SyntaxKind.ExportDeclaration || statement.kind === ts9.SyntaxKind.ExportAssignment) {
|
|
2076
|
+
return true;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
return false;
|
|
2080
|
+
}
|
|
2081
|
+
function isBlockScopedVariableDeclarationList(declarationList) {
|
|
2082
|
+
return (declarationList.flags & ts9.NodeFlags.BlockScoped) !== 0;
|
|
2083
|
+
}
|
|
2084
|
+
function forEachDestructuringIdentifier(pattern, fn) {
|
|
2085
|
+
for (const element of pattern.elements) {
|
|
2086
|
+
if (element.kind !== ts9.SyntaxKind.BindingElement) {
|
|
2087
|
+
continue;
|
|
2088
|
+
}
|
|
2089
|
+
let result;
|
|
2090
|
+
if (element.name.kind === ts9.SyntaxKind.Identifier) {
|
|
2091
|
+
result = fn(element);
|
|
2092
|
+
} else {
|
|
2093
|
+
result = forEachDestructuringIdentifier(element.name, fn);
|
|
2094
|
+
}
|
|
2095
|
+
if (result) {
|
|
2096
|
+
return result;
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
|
|
2101
|
+
// src/usage/collectVariableUsage.ts
|
|
2102
|
+
function collectVariableUsage(sourceFile) {
|
|
2103
|
+
return new UsageWalker().getUsage(sourceFile);
|
|
2104
|
+
}
|
|
2105
|
+
|
|
2106
|
+
export { AccessKind, DeclarationDomain, UsageDomain, collectVariableUsage, forEachComment, forEachToken, getAccessKind, getCallSignaturesOfType, getPropertyOfType, getWellKnownSymbolPropertyOfType, hasDecorators, hasExpressionInitializer, hasInitializer, hasJSDoc, hasModifiers, hasType, hasTypeArguments, includesModifier, intersectionTypeParts, isAbstractKeyword, isAccessExpression, isAccessibilityModifier, isAccessorDeclaration, isAccessorKeyword, isAnyKeyword, isArrayBindingElement, isArrayBindingOrAssignmentPattern, isAssertKeyword, isAssertsKeyword, isAssignmentKind, isAssignmentPattern, isAsyncKeyword, isAwaitKeyword, isBigIntKeyword, isBigIntLiteralType, isBindingOrAssignmentElementRestIndicator, isBindingOrAssignmentElementTarget, isBindingOrAssignmentPattern, isBindingPattern, isBlockLike, isBooleanKeyword, isBooleanLiteral, isBooleanLiteralType, isClassLikeDeclaration, isClassMemberModifier, isColonToken, isCompilerOptionEnabled, isConditionalType, isConstAssertionExpression, isConstKeyword, isDeclarationName, isDeclarationWithTypeParameterChildren, isDeclarationWithTypeParameters, isDeclareKeyword, isDefaultKeyword, isDestructuringPattern, isDotToken, isEndOfFileToken, isEntityNameExpression, isEntityNameOrEntityNameExpression, isEnumType, isEqualsGreaterThanToken, isEqualsToken, isEvolvingArrayType, isExclamationToken, isExportKeyword, isFalseKeyword, isFalseLiteral, isFalseLiteralType, isFalsyType, isForInOrOfStatement, isFreshableIntrinsicType, isFreshableType, isFunctionLikeDeclaration, isFunctionScopeBoundary, isImportExpression, isImportKeyword, isInKeyword, isIndexType, isIndexedAccessType, isInputFiles, isInstantiableType, isIntersectionType, isIntrinsicAnyType, isIntrinsicBigIntType, isIntrinsicBooleanType, isIntrinsicESSymbolType, isIntrinsicErrorType, isIntrinsicNeverType, isIntrinsicNonPrimitiveType, isIntrinsicNullType, isIntrinsicNumberType, isIntrinsicStringType, isIntrinsicType, isIntrinsicUndefinedType, isIntrinsicUnknownType, isIntrinsicVoidType, isIterationStatement, isJSDocComment, isJSDocNamespaceBody, isJSDocNamespaceDeclaration, isJSDocText, isJSDocTypeReferencingNode, isJsonMinusNumericLiteral, isJsonObjectExpression, isJsxAttributeLike, isJsxAttributeValue, isJsxChild, isJsxTagNameExpression, isJsxTagNamePropertyAccess, isLiteralToken, isLiteralType, isModifierFlagSet, isModuleBody, isModuleName, isModuleReference, isNamedDeclarationWithName, isNamedImportBindings, isNamedImportsOrExports, isNamespaceBody, isNamespaceDeclaration, isNeverKeyword, isNodeFlagSet, isNullKeyword, isNullLiteral, isNumberKeyword, isNumberLiteralType, isNumericOrStringLikeLiteral, isNumericPropertyName, isObjectBindingOrAssignmentElement, isObjectBindingOrAssignmentPattern, isObjectFlagSet, isObjectKeyword, isObjectType, isObjectTypeDeclaration, isOutKeyword, isOverrideKeyword, isParameterPropertyModifier, isPrivateKeyword, isPropertyAccessEntityNameExpression, isPropertyNameLiteral, isPropertyReadonlyInType, isProtectedKeyword, isPseudoLiteralToken, isPublicKeyword, isQuestionDotToken, isQuestionToken, isReadonlyKeyword, isSignatureDeclaration, isStaticKeyword, isStrictCompilerOptionEnabled, isStringKeyword, isStringLiteralType, isStringMappingType, isSubstitutionType, isSuperElementAccessExpression, isSuperExpression, isSuperKeyword, isSuperProperty, isSuperPropertyAccessExpression, isSymbolFlagSet, isSymbolKeyword, isSyntaxList, isTemplateLiteralType, isThenableType, isThisExpression, isThisKeyword, isTransientSymbolLinksFlagSet, isTrueKeyword, isTrueLiteral, isTrueLiteralType, isTupleType, isTupleTypeReference, isTypeFlagSet, isTypeOnlyCompatibleAliasDeclaration, isTypeParameter, isTypeReference, isTypeReferenceType, isTypeVariable, isUndefinedKeyword, isUnionOrIntersectionType, isUnionOrIntersectionTypeNode, isUnionType, isUniqueESSymbolType, isUnknownKeyword, isUnknownLiteralType, isUnparsedPrologue, isUnparsedSourceText, isUnparsedSyntheticReference, isValidPropertyAccess, isVariableLikeDeclaration, isVoidKeyword, symbolHasReadonlyDeclaration, typeIsLiteral, typeParts, unionTypeParts };
|