Commit Graph

740 Commits

Author SHA1 Message Date
Yui T
15ef20db3c Set the structureReused to be safemoudles when dynamic import change 2017-06-19 16:49:35 -07:00
Yui T
11b9f6e89d Wip-fix incremental parsing 2017-06-19 16:49:27 -07:00
Mohamed Hegazy
0968ed97ad Revert string enum changes (#16569)
* Revert "Convert Extension to a string enum (#16425)"

This reverts commit 09321b3834.

* Revert "Also convert ClassificationTypeNames and CommandTypes/CommandNames"

This reverts commit f94818da36.

* Revert "Make ScriptElementKind and HighlightSpanKind string enums"

This reverts commit b162097c3c.

* Revert "Make ScriptElementKind and HighlightSpanKind string enums"

This reverts commit b162097c3c.

# Conflicts:
#	lib/lib.d.ts
#	lib/lib.es2016.full.d.ts
#	lib/lib.es2017.full.d.ts
#	lib/lib.es5.d.ts
#	lib/lib.es6.d.ts
#	lib/lib.esnext.full.d.ts
#	lib/tsc.js
#	lib/tsserver.js
#	lib/tsserverlibrary.d.ts
#	lib/tsserverlibrary.js
#	lib/typescript.d.ts
#	lib/typescript.js
#	lib/typescriptServices.d.ts
#	lib/typescriptServices.js
#	lib/typingsInstaller.js

* Update LKG

* Revert "Make CommandTypes a const enum and use `allCommandTypes` for unit test"

This reverts commit f6240cb6f9.
2017-06-15 14:19:03 -07:00
Andy
09321b3834 Convert Extension to a string enum (#16425) 2017-06-09 19:32:44 -07:00
Daniel Rosenwasser
86e54ac787 Correct pluralization of 'Contain' to 'Contains', made the nodeflag internal. 2017-06-08 16:00:38 -07:00
Yui T
b9017795a0 Revert "Revert "[Master] wip-dynamic import" (#16264)"
This reverts commit ccc60c8b3b.
2017-06-05 17:16:29 -07:00
Andy
8ace7b826f importFixes: Support missing "React" at a JSXOpeningElement (#16066)
* importFixes: Support missing "React" at a JSXOpeningElement

* Fix nextLineRule linting

* Rename to resolveJsxNamespaceAtLocation

* Expose getJsxNamespace and resolveNameAtLocation separately
2017-06-05 14:23:39 -07:00
Andy
70564110c0 Make use of array helper functions (#16226)
* Make use of array helper functions

* Remove unnecessary 'ts.'
2017-06-05 14:11:43 -07:00
Mohamed Hegazy
ccc60c8b3b Revert "[Master] wip-dynamic import" (#16264) 2017-06-05 10:49:20 -07:00
Yui
9d16d34c6a Merge pull request #14774 from Microsoft/master-dynamicImport
[Master] wip-dynamic import
2017-06-05 06:59:14 -07:00
Yui T
2f476bf22f Merge branch 'master' into master-dynamicImport 2017-06-02 09:10:20 -07:00
Yui T
e6d7327c3f Address PR: error message, fix capitalization, only allow functionLikeDeclaration and ImportCall for create Promise, use fall through comment 2017-06-01 23:21:59 -07:00
Andrew Casey
cd84d2a85a Use emptyArray, rather than [] 2017-06-01 19:05:07 -07:00
Andrew Casey
9d0bbc4e44 Apply --checkJs to bind diagnostics as well as check diagnostics 2017-06-01 18:10:52 -07:00
Nathan Shively-Sanders
2dd6627022 Report jsdoc syntax errors when checkJs is on 2017-05-30 13:32:46 -07:00
Kanchalai Tanglertsampan
faab927c8d Merge branch 'master' into master-dynamicImport
# Conflicts:
#	src/compiler/checker.ts
#	src/compiler/emitter.ts
#	src/compiler/parser.ts
#	src/compiler/transformers/module/module.ts
#	src/compiler/transformers/module/system.ts
2017-05-24 11:26:06 -07:00
Donald Pipowitch
e4d6752a93 add createProgram docs (#15697)
* add `createProgram` docs

* updated `createProgram` docs
2017-05-23 10:40:46 -07:00
Andy
38ece3b703 Merge pull request #15737 from Microsoft/findAllRefs_module
Support find-all-references for a module specifier
2017-05-19 08:11:56 -07:00
Andy Hanson
0ff187c8ac Remove 'isDeclarationFile()' function, use '.isDeclarationFile' 2017-05-17 08:12:23 -07:00
Alex Eagle
4240f6f5d9 Extract diagnostics formatter used by --pretty
This allows compilers other than tsc.js to display nice in-context diagnostics
2017-05-12 16:19:46 -07:00
Andy Hanson
71fb02c099 Support find-all-references for a module specifier 2017-05-10 11:02:17 -07:00
Kanchalai Tanglertsampan
1b7d3bfa07 Merge branch 'master' into master-dynamicImport 2017-05-04 10:14:32 -07:00
Arthur Ozga
2150a7796b Merge pull request #15261 from aozgaa/moduleReuse
Reuse Module Resolutions from Unchanged Files
2017-05-01 17:49:44 -07:00
Arthur Ozga
60825143a4 respond to comments 2017-05-01 17:49:19 -07:00
Arthur Ozga
2118de09e7 Simplify returns 2017-05-01 15:16:42 -07:00
Arthur Ozga
ef1cd50dfc clarifying comments 2017-05-01 11:47:12 -07:00
Arthur Ozga
c63d6d145a Avoid double-resolving modified files 2017-04-28 16:27:41 -07:00
Arthur Ozga
86d7031932 inline createOldProgramState 2017-04-28 10:40:31 -07:00
Arthur Ozga
6547c1816f check ambient modules before reusing old state 2017-04-27 20:27:48 -07:00
Yui T
feb41f7d7c Merge branch 'master' into master-dynamicImport
# Conflicts:
#	src/compiler/diagnosticMessages.json
#	src/compiler/program.ts
2017-04-26 15:35:30 -07:00
Yui T
e50667e49e Address minor PR comment 2017-04-26 15:02:54 -07:00
Yui T
2f61d472ed Address minor PR comment 2017-04-26 12:56:15 -07:00
Arthur Ozga
ac20fc2d26 consolidate program-structure reuse flags 2017-04-21 16:54:42 -07:00
Arthur Ozga
0ea1b82a85 test module reuse 2017-04-20 18:55:15 -07:00
Arthur Ozga
7966c08cc4 make enum bitflag and add trace message 2017-04-20 11:02:35 -07:00
Arthur Ozga
044152e50f Merge branch 'moduleReuse' of github.com:aozgaa/TypeScript into moduleReuse 2017-04-19 11:13:52 -07:00
Arthur Ozga
c3582d2443 cleanup 2017-04-18 16:23:01 -07:00
Mohamed Hegazy
8c33a792b3 Do not query for bind errors if skipLibCheck or skipDefaultLibCheck is set 2017-04-18 16:19:58 -07:00
Arthur Ozga
77f9099423 Remove WIP comment 2017-04-18 16:15:39 -07:00
Arthur Ozga
d5f246fd99 Reuse module resolutions in unmodified files 2017-04-18 15:48:01 -07:00
Mohamed Hegazy
e6ecfa46f0 Merge pull request #15229 from Microsoft/Fix15220
Fix #15220: Check for file on diagnostics before getting line map
2017-04-18 14:39:54 -07:00
Andy Hanson
455492d887 Merge branch 'master' into fallthrough 2017-04-18 09:48:21 -07:00
Arthur Ozga
cbbf6f8847 Merge branch 'master' into tripleEquals 2017-04-17 15:57:51 -07:00
Mohamed Hegazy
26d5af384c Check for the file before getting line map 2017-04-17 13:15:06 -07:00
Andy Hanson
a82ac45e36 Merge branch 'master' into fallthrough 2017-04-12 10:58:03 -07:00
Andy Hanson
ed5eca2b7b boolean-trivia lint rule: Enforce space between comment and argument 2017-04-11 09:44:58 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -07:00
Arthur Ozga
7e03429a8e enforce triple-equals 2017-04-04 15:51:13 -07:00
Kanchalai Tanglertsampan
55430c46e6 Add boolean flag to not walk the tree if there is no dynamic import 2017-04-04 15:43:45 -07:00
Kanchalai Tanglertsampan
11f6eaec5b Merge branch 'master' into master-dynamicImport
# Conflicts:
#	src/compiler/commandLineParser.ts
2017-03-29 10:51:05 -07:00