Nathan Shively-Sanders
0a985ee287
Parse untyped object type members separated by ','
...
Previously if the first member was untyped and the separator was ',',
then parsing would fail.
2016-08-26 13:25:19 -07:00
Yui
36130ffa64
Fix 10472: Invalid emitted code for await expression ( #10483 )
...
* Properly emit await expression with yield expression
* Add tests and update baselines
* Move parsing await expression into parse unary-expression
* Update incorrect comment
2016-08-22 16:37:04 -07:00
Yui
4a58e68d00
Update parser comment with es7 grammar ( #10459 )
...
* Use ES7 term of ExponentiationExpression
* Update timeout for mac OS
* Address PR: add space
2016-08-22 14:38:07 -07:00
Nathan Shively-Sanders
a0137597f9
Merge pull request #10399 from Microsoft/jsdoc-never-undefined-null-types
...
JSDoc supports null, undefined and never types
2016-08-22 13:48:37 -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
Nathan Shively-Sanders
164beb38d8
Update baselines in jsDocParsing unit tests
2016-08-17 16:11:45 -07:00
Nathan Shively-Sanders
aa834d7f17
JSDoc supports null, undefined and never types
2016-08-17 15:49:57 -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
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
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
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
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
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
Andy Hanson
4195eb3670
Parse export default async function as a declaration
2016-06-30 07:11:36 -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
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
zhengbli
81ce532cde
Change how typedef tag is parsed
2016-05-26 14:33:30 -07:00
zhengbli
5f9fa69587
Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
...
# Conflicts:
# src/services/services.ts
# tests/cases/unittests/jsDocParsing.ts
2016-05-24 21:06:00 -07:00
Ryan Cavanaugh
41290db9c6
Tweak UMD semantics
2016-05-18 17:59:43 -07:00
Anders Hejlsberg
c11d691d6f
Introduce 'never' type
2016-05-17 06:15:57 -07:00
Yui
bbbb56b08c
Allow async as parameter in arrowfunction ( #8488 )
...
* Allow async as a parameter name in simple arrow function
* Add tests
2016-05-05 15:33:29 -07:00
Yui
990f1c7c37
Check that token is AsyncKeyword before calling lookAhead ( #8477 )
...
* Check that token is AsyncKeyword before calling lookAhead
* Fix linting errors
2016-05-05 14:18:12 -07:00