Zhengbo Li
a082857ae8
Add APIs for enabling CompileOnSave on tsserver ( #9837 )
...
* Add API to get only the emited declarations output
* Add nonModuleBuilder
* Add basic tests for CompileOnSaveAffectedFileList API
* Add API for compile single file
* Avoid invoking project.languageService directly
* Add API to query if compileOnSave is enabled for a project
* Seperate check and emit signatures
* Use Path type for internal file name matching and simplifying builder logic
* Always return cascaded affected list
* Correct the tsconfig file in compileOnSave tests
Also move the CompileOnSave option out of compilerOptions
* Reduce string to path conversion
2016-08-23 16:11:52 -07:00
Vladimir Matveev
683d6ef6e1
merge with origin/master
2016-08-19 13:15:59 -07:00
Andy Hanson
b482fa58f4
Merge branch 'master' into cast_of_await
2016-08-19 06:16:57 -07:00
Andy Hanson
952d2fecc1
Fix comment
2016-08-18 14:19:17 -07:00
Vladimir Matveev
a2e5c2d2b5
merge with origin/master
2016-08-17 14:38:30 -07:00
Nathan Shively-Sanders
c218d37191
Merge pull request #9995 from Microsoft/jsdoc-string-literal-types
...
JSDoc string literal types
2016-08-17 10:25:58 -07:00
Ron Buckton
4e04b75d4b
Aligned mark names with values used by ts-perf.
2016-08-15 11:07:49 -07:00
Vladimir Matveev
9a180122a5
merge with origin/master
2016-08-14 11:42:08 -07:00
Ron Buckton
c81624435a
Simplifies performance API
2016-08-12 16:34:35 -07:00
Anders Hejlsberg
65e1293b2e
Optimize performance of maps
2016-08-10 16:47:06 -07:00
Nathan Shively-Sanders
3c32478b8f
Support other (new) literal types in jsdoc
2016-08-04 13:01:17 -07:00
Nathan Shively-Sanders
4c3529680d
Merge branch 'master' into jsdoc-string-literal-types
2016-08-04 09:52:15 -07:00
Vladimir Matsveyeu
2cb3122e62
Merge remote-tracking branch 'origin/master' into tsserverVS-WIP
2016-07-28 13:05:32 -07:00
Nathan Shively-Sanders
a6642d68c9
JSDoc understands string literal types
...
Unfortunately, I didn't find a way to reuse the normal string literal
type, so I had to extend the existing JSDoc type hierarchy. Otherwise,
this feature is very simple.
2016-07-27 13:21:42 -07:00
Andy Hanson
52fd0334be
Allow await await
2016-07-25 11:08:02 -07:00
Anders Hejlsberg
ff0cbb5b29
Merge branch 'master' into literalTypes
...
# Conflicts:
# src/compiler/checker.ts
2016-07-24 07:28:11 -07:00
Anders Hejlsberg
9a23b11b6a
Change parser to use token() function for accessing current token
2016-07-22 14:28:53 -07:00
Andy Hanson
275dbc7537
Forbid await await
2016-07-22 14:01:59 -07:00
Andy Hanson
bc5c7b654a
More tests
2016-07-22 13:33:22 -07:00
Andy Hanson
95e391ec72
Allow await in a simple unary expression
2016-07-22 06:00:37 -07:00
Vladimir Matveev
c0f4fdd489
merge with origin/master
2016-07-21 10:38:15 -07:00
Wesley Wigham
2a26beb9d8
Add performance framework from transforms branch ( #9536 )
...
* Port performance tools from transforms branch
* Use friendlier names, add compiler option to print all recorded measures
* Always print total time
* + -> .getTime
2016-07-19 15:10:29 -07:00
Vladimir Matveev
69789928b3
Merge remote-tracking branch 'origin/master' into tsserverVS-WIP
2016-07-18 16:43:08 -07:00
Sheetal Nandi
f16f27661f
Merge pull request #9529 from Microsoft/identifierAndTokenConstructor
...
Create separate constructors for Tokens and Identifiers
2016-07-14 13:35:09 -07:00
Sheetal Nandi
767da71cc1
Add __tokentag to Token
2016-07-11 11:28:14 -07:00
Vladimir Matveev
8ec02c0e77
merge with origin/master
2016-07-11 10:36:05 -07:00
zhengbli
fd6676049b
Avoid putting children tags in jsdoccomment
2016-07-07 13:50:11 -07:00
Anders Hejlsberg
868d5e602f
Merge branch 'master' into literalTypes
2016-07-06 19:51:34 -07:00
Mohamed Hegazy
bf240d2c69
Fix #9531 : account for async as an contextual keyword when parsing export assignments
2016-07-06 14:08:21 -07:00
Anders Hejlsberg
5225997c8c
Merge branch 'master' into literalTypes
...
# Conflicts:
# src/compiler/checker.ts
2016-07-05 13:25:15 -07:00
Sheetal Nandi
a2ff4ea0f8
Identifier constructor
2016-07-05 11:37:15 -07:00
Sheetal Nandi
4a77c97ae7
Create tokens using different constructor
2016-07-05 11:37:15 -07:00
Vladimir Matveev
f6d672eddf
Merge remote-tracking branch 'origin/master' into tsserverVS-WIP-projectsystem
2016-06-30 20:26:00 -07:00
Andy Hanson
4195eb3670
Parse export default async function as a declaration
2016-06-30 07:11:36 -07:00
Vladimir Matveev
15f825b6b3
merge with origin/master
2016-06-27 14:25:18 -07:00
Yui
db0d8e094b
Fix 8549: Using variable as Jsx tagname ( #9337 )
...
* Parse JSXElement's name as property access instead of just entity name. So when one accesses property of the class through this, checker will check correctly
* wip - just resolve to any type for now
* Resolve string type to anytype and look up property in intrinsicElementsType of Jsx
* Add tests and update baselines
* Remove unneccessary comment
* wip-address PR
* Address PR
* Add tets and update baselines
* Fix linting error
2016-06-24 14:15:44 -07:00
Andy Hanson
a011b4df12
Fix bug where exports. was prepended to namespace export accesses
2016-06-24 06:51:19 -07:00
Mohamed Hegazy
25da96561a
Merge branch 'tsserverVS-WIP' into reuseTrees
2016-06-21 11:35:25 -07:00
Mohamed Hegazy
a45ac2420c
Use document registry to get sourceFiles in SyntaxTreeCache to share trees between semantic and syntaxtic oprations
2016-06-21 11:34:49 -07:00
Erik Edrosa
1a66f54e89
Add error message for rest parameter properties
2016-06-21 14:27:14 -04:00
Anders Hejlsberg
89596cb73b
Numeric and boolean literal types
2016-06-18 07:21:23 -07:00
Sheetal Nandi
5ea469a8a8
No Need to store dot token when parsing property access expression
2016-06-14 11:02:40 -07:00
Andy Hanson
75c1d77606
Merge branch 'master' into shorthand_ambient_module
2016-06-09 11:43:18 -07:00
zhengbli
e2a1a78dd3
reuse the fixupParentReferences function
2016-06-02 13:26:15 -07:00
Andy Hanson
7e9cb46a1a
Support shorthand ambient module declarations
2016-06-02 12:55:48 -07:00
zhengbli
d41ac8aa9a
Add null check and CR feedback
2016-06-02 11:12:38 -07:00
zhengbli
0e96c5eaf1
Run fixupParentReferences when parsing isolated jsDocComment
2016-06-01 22:57:25 -07:00
zhengbli
eb0f035c78
Remove unused parameter
2016-05-31 16:08:12 -07:00
zhengbli
59b188d4ca
Add navigationTo test for jsdoc typedef
2016-05-31 02:05:26 -07:00
zhengbli
18ee4b0a1e
cr feedback
2016-05-30 22:11:43 -07:00