TypeScript/tests/cases/conformance
Nathan Shively-Sanders d2443a5df1
@typedef: Improve error spans from declaration emit (#42501)
* @typedef: Improve error spans from declaration emit

This is a proof-of-concept fix. I think it could be expanded for all of
jsdoc, but I only set it up for jsdoc type aliases. It could use a lot
of polish too.

* track error node in isSymbolAccessible instead

* Switch to using enclosingDeclaration

Remove trueErrorNode

* add test of @callback and @enum

* Better error + fix @enum error

Since enums don't have a name property, you *have* to call
`getNameOfDeclaration` to go looking through the AST for one.
2021-01-28 08:35:05 -08:00
..
additionalChecks Add support for pedantic property access (#40171) 2020-11-02 15:19:00 -08:00
ambient Add bad test case 2019-04-24 08:44:24 -07:00
async Fix async function block return expr error in js (#37845) 2020-04-08 15:26:56 -07:00
classes fix(42166): allow assertion signature for private identifiers (#42176) 2021-01-11 09:25:51 -08:00
constEnums fix compiler crash (#25925) 2019-04-25 10:51:36 -07:00
controlFlow Narrow via discriminant property through optional chain (#42450) 2021-01-25 09:29:51 -08:00
declarationEmit Reverts #39277 removing bundledPackageName (#41499) 2021-01-08 10:55:34 +00:00
decorators Emit fallback for decorator metadata for type only imports (#39337) 2020-07-02 11:39:27 -07:00
directives don't emit "unused @ts-expect-error" in unchecked js files (#40046) 2020-08-25 11:04:23 -07:00
dynamicImport Template literal types for template literal expressions (#41891) 2020-12-11 15:07:37 -10:00
emitter Reset error variable in downlevel for-await-of loop (#38170) 2020-04-24 14:59:41 -07:00
enums Improve error message for computed enums (#37790) 2020-04-15 13:50:33 -04:00
es6 Fix module resolution for import call emit (#41390) 2021-01-04 15:08:57 -08:00
es7 Allow trailing commas after-rest elements in destructuring 2018-06-04 14:58:30 -07:00
es2017 lib: remove length field from SharedArrayBuffer (#40858) 2020-10-06 08:27:56 -07:00
es2018 add support for Lift Template Literal Restriction (#23801) 2020-02-05 08:59:51 -08:00
es2019 feat(41249): allow import.meta with module: es2020 (#41274) 2020-10-27 17:26:15 -07:00
es2020 fix export * as default syntax (#39803) 2020-08-10 16:56:45 -07:00
esnext/logicalAssignment Avoid effect of element access expression (#39174) 2020-06-25 17:38:05 -07:00
expressions Fix single-line comment disrupting return w/optional chain (#42026) 2020-12-17 18:55:09 -08:00
externalModules Support top level "for await of" (#37424) 2021-01-25 13:40:45 -08:00
functions Fix regression in name resolution in parameter (#38351) 2020-05-06 12:04:28 -07:00
generators Report implicit any error for 'yield' result with no contextual type (#41348) 2020-12-18 09:55:33 -08:00
interfaces fix(41420): forbid optional chain in extends/implements (#41481) 2021-01-04 15:38:54 -08:00
internalModules
jsdoc @typedef: Improve error spans from declaration emit (#42501) 2021-01-28 08:35:05 -08:00
jsx Support xml namespace prefix for JSX elements and attributes (#37421) 2020-11-02 15:34:36 -08:00
moduleResolution Fix handling of empty 'types', 'typings', etc. fields in package.json (#31539) 2019-05-23 17:19:32 -07:00
parser fix spelling errors (#36523) 2020-01-30 13:39:54 -08:00
pedantic Fix noUncheckedIndexedAccess with tuple rest types and generic index types (#40681) 2020-10-01 13:56:13 -07:00
references
salsa Add missed resolveSymbol in commonjs import resolution (#41479) 2020-11-10 11:28:49 -08:00
scanner Add error message for keywords with escapes in them (#32718) 2019-08-12 16:00:38 -07:00
statements Fix typos in comments (#41307) 2020-11-30 15:02:07 -08:00
Symbols
types Add support for abstract constructor types (#36392) 2021-01-07 17:11:14 -08:00
typings Only suggest adding to types if present in compilerOptions 2018-10-30 21:31:22 +01:00
fixSignatureCaching.ts Property assignments in Typescript (#26368) 2018-08-15 15:25:25 -07:00
inferFromBindingPattern.ts Make no inferences from binding patterns with no defaults (#35454) 2019-12-05 07:09:45 -08:00