Commit Graph
1939 Commits
Author SHA1 Message Date
TypeScript BotandOleksandr T a0a3a79882 🤖 Pick PR #59026 (fix(59011): TypeScript generates in...) into release-5.5 (#59039)
Co-authored-by: Oleksandr T <oleksandr.tarasiuk@outlook.com>
2024-07-17 05:49:21 +09:00
TypeScript BotandDaniel Rosenwasser e28a76c7e4 🤖 Pick PR #59154 (Create a SourceFile-level indirec...) into release-5.5 (#59211)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
2024-07-17 03:22:48 +09:00
graphemeclusterandRon Buckton d0ef028841 Improve Recovery of Unterminated Regular Expressions (#58289)
Co-authored-by: Ron Buckton <ron.buckton@microsoft.com>
2024-05-24 15:46:26 -04:00
Jake Bailey 16beff101a Use explicit extensions for imports within src (#58421) 2024-05-06 17:07:54 -07:00
42f238bfbb Provide Syntax Checking for Regular Expressions (#55600)
Co-authored-by: Daniel Rosenwasser <DanielRosenwasser@users.noreply.github.com>
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2024-04-19 16:51:08 -07:00
Jake Bailey 207932a8fe Move incremental state to WeakSets (#58087) 2024-04-18 11:30:11 -07:00
Jake Bailey 17e420daf6 Use built-in no-restricted-syntax to ban null instead of plugin, ban null type too (#58095) 2024-04-18 09:06:32 -07:00
Jake Bailey 3456c6e21c Monomorphize allocators for tsserver/public API, just like core compiler (#58045) 2024-04-04 17:03:03 -07:00
Jake Bailey 772c29072e Don't clear _children on NodeArrays (#58069) 2024-04-04 07:50:10 -07:00
Oleksandr T 2de69b09c5 feat(41825): JSDoc equivalent of import * (#57207) 2024-03-26 13:52:43 -07:00
Jake Bailey 7d504551ae Do not perserve references in declaration emit, unless preserve=true (#57681) 2024-03-20 15:06:02 -07:00
Mateusz Burzyński af81456247 Fixed referencing properties that are reserved keywords in @link (#57739) 2024-03-20 09:01:49 -07:00
Jake Bailey 76f8de0a0d Require exactly 'true' for truthy reference directive prop (#57782) 2024-03-15 14:38:37 -07:00
Abraham Guo 0b044f729f When attaching JSDoc diagnostics, make sure to only include diagnostics that actually belong with the JSDoc (#57271) 2024-02-13 12:13:43 -08:00
Andrew Branch 0ea57f6ca1 Let AutoImportProvider find non-declaration files in wildcard exports... (#56848) 2024-01-03 15:01:49 -08:00
Oleksandr T a36d04fc63 feat(56634): Support for "const modifier on type parameters" with JSDoc (#56649) 2023-12-15 09:21:10 -08:00
Nathan Shively-Sanders 3d112515cb Improve JSDocFunctionType readability (#56694) 2023-12-06 15:31:59 -08:00
Oleksandr T 3500c92a78 feat(56600): JSDoc @callback doesn't support this parameters via @this (#56610) 2023-12-01 15:48:36 -08:00
Oleksandr T 4eae150282 fix(50303): Using @linkcode in combination with private methods causes TS1003 in JavaScript files. (#56338) 2023-11-28 15:07:31 -08:00
Oleksandr T 921259ee02 fix(56567): import type from = require('foo') fails to parse (#56568) 2023-11-27 15:22:27 -08:00
Sheetal Nandi 13c9b16b2a When reparsing top level await dont set original node for the new source file (#56439) 2023-11-21 13:35:49 -08:00
Oleksandr T 628bf0ec85 fix(56376): import type from from "foo" (#56385) 2023-11-13 14:43:24 -08:00
Mateusz Burzyński 3e12250839 Allow of in await using declarations in for-of loops (#55558) 2023-10-31 15:06:36 -04:00
Oleksandr T 2e9e9a292c feat(53656): Add support for the updated import attributes proposal (#54242) 2023-09-26 13:20:15 -07:00
Jake Bailey a3c5d5d37e Make JSDoc skipping public, plus more configurable (#55739) 2023-09-21 15:31:09 -07:00
c0b39c6967 Skip parsing JSDoc when not needed (#52921)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Sheetal Nandi <shkamat@microsoft.com>
2023-09-13 15:58:20 -07:00
Mateusz Burzyński fe70ec984e Parse reserved identifiers as dotted names of ambient modules (#55282) 2023-08-28 14:48:20 -07:00
Jake Bailey b5b6048bb3 Clean up helpers which are always present in ES2020 (#55515) 2023-08-28 12:26:22 -07:00
Jake Bailey 4d7753ae3e Ensure parsing context is restored in jsdoc parser (#55537) 2023-08-28 09:52:54 -07:00
Sampo Kivistö ec2bd4e252 perf: replace String and Array indexOf method calls with includes method call (#55482) 2023-08-25 11:27:55 -07:00
Mateusz Burzyński e0a324b050 Don't parse DotDotDotToken in JSX attribute values (#55284) 2023-08-24 10:17:33 -07:00
Nils 3790c921dd Fix typo isInvalid -> isValid (#55414) 2023-08-17 10:07:13 -07:00
Jake Bailey 5e8c261b6a dprint the codebase (#54820) 2023-08-16 14:26:38 -07:00
Jake Bailey f37d2ad669 Prevent detached diagnostics from running off the end of the file (#55381) 2023-08-15 08:29:36 -07:00
Jack WorksandJake Bailey cd391b066b chore: disallows unicode escape sequence in JSX (#48609)
Co-authored-by: Jake Bailey <5341706+jakebailey@users.noreply.github.com>
2023-08-09 15:59:39 -07:00
Kyℓe Hensel a86be554ab allow a colon directly after @ts-check/nocheck (#54893) 2023-07-21 09:16:31 -07:00
Mateusz BurzyńskiandEvan Wallace 2623fe7049 Fixed false positive syntax errors with in inside for (#54801)
Co-authored-by: Evan Wallace <evan.exe@gmail.com>
2023-07-20 12:13:44 -07:00
strager e607c8ed81 fix(54760): Report error for 'declare type' followed by newline (#54761) 2023-07-20 12:13:08 -07:00
Jake Bailey 8c7385f8b5 Eliminate addJSDocComment in favor of consistently using withJSDoc (#54802) 2023-06-30 17:05:07 -07:00
34f6e107a3 Enable parsing of nested parameters for @callback JSDoc tag. (#54681)
Co-authored-by: Matej Sadovsky <matej.sadov@gmail.com>
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:36:38 -07:00
Jack WorksandNathan Shively-Sanders ed5008da68 Improve error for unclosed imports and exports (#54634)
Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
2023-06-29 10:22:05 -07:00
Ron Buckton f9cf8216c6 Support using and await using declarations (#54505) 2023-06-22 17:02:56 -04:00
Wesley Wigham 02bb3108ad JSX namespace names should not be considered expressions (#54104) 2023-05-09 10:45:58 -07:00
Jake Bailey c333e14578 Ensure that JSDoc parsing happens within a ParsingContext (#52710) 2023-05-04 09:55:34 -07:00
Nathan Shively-Sanders 840a0bfc08 Error on template tag inside callback/overload/typedef tag (#54118) 2023-05-04 09:51:43 -07:00
Nathan Shively-Sanders 063276aac9 Bind JSDoc on SemicolonClassElement (#54044) 2023-04-27 11:47:16 -07:00
Oleksandr T c74efad46e fix(53645): JSDoc extends doesn't work with multiple lines (#53705) 2023-04-20 16:06:38 -07:00
Oleksandr T 0c5be02dcc feat(7411): JSX namespaced attribute syntax not supported (#47356) 2023-04-14 16:58:49 -07:00
Jake Bailey f243b987af Fix crash in parseJsxChild found by fuzzing (#53674) 2023-04-05 13:47:02 -07:00
Jake Bailey bebb6d0086 Disable JSX recovery hack when in unary expression context (#53666) 2023-04-05 13:04:37 -07:00