1081 Commits

Author SHA1 Message Date
zhengbli
e2a1a78dd3 reuse the fixupParentReferences function 2016-06-02 13:26:15 -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
Yui
7521891760 Fix 8262: allow unparenthesized parameter in async arrow-function (#8444)
* Allow unparenthesize of parameter in async arrow-function

* Add tests and baselines

* Address PR

* Address PR: refactor to use "parseSimpleArrowFunctionExpression"

* Address PR: add comment

* Address PR
2016-05-04 17:00:28 -07:00
zhengbli
d568d79b49 resolve build error 2016-04-22 15:19:57 -07:00
zhengbli
870fd84233 Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc 2016-04-22 15:04:35 -07:00
Anders Hejlsberg
5ed6f30f1f Merge pull request #8010 from Microsoft/controlFlowTypes
Control flow based type analysis
2016-04-22 14:18:56 -07:00
zhengbli
46f4bd4215 Allow keywords in jsdoc comments parsing 2016-04-21 14:16:21 -07:00
Zhengbo Li
350f62ff29 treat TS only keywords as identifiers in jsdoc comments 2016-04-20 19:49:48 -07:00
zhengbli
0dddcf4b84 code clean up 2016-04-14 16:51:22 -07:00
zhengbli
a3d74ad550 Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
# Conflicts:
#	src/compiler/diagnosticMessages.json
#	src/services/services.ts
2016-04-13 16:57:35 -07:00
zhengbli
2945f64e3b Add tests for renaming and incremental parsing. Changed how the AST was hydrated
with jsdocComment nodes.
2016-04-13 16:45:06 -07:00
Anders Hejlsberg
b1e9f43d28 Merge branch 'master' into controlFlowTypes
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/typeAssertions.errors.txt
2016-04-10 09:30:30 -07:00
Vladimir Matveev
e5e7d47782 merge with origin/master 2016-04-08 14:38:47 -07:00
Zhengbo Li
9a8f6395e4 Support the case with variable name as @typedef type name 2016-04-06 20:22:23 -07:00
Zhengbo Li
23bca4eda6 Support the case with @property and @type 2016-04-05 16:34:48 -07:00
zhengbli
df91ef0b38 Simple case and scoping 2016-04-03 11:52:04 -07:00
Vladimir Matveev
aaaa9c0895 expose type reference resolution for external consumption 2016-04-01 12:41:01 -07:00
Ryan Cavanaugh
05444eaabb Support reference library directives 2016-04-01 12:19:16 -07:00
Nathan Shively-Sanders
9e5f26048b Merge branch 'master' into this-function-types 2016-03-28 10:12:25 -07:00
Anders Hejlsberg
afa1714c03 Add type annotations to suppress circularity errors 2016-03-22 10:22:08 -07:00
Anders Hejlsberg
b497243f90 Merge branch 'master' into strictNullChecks 2016-03-14 16:31:29 -07:00
Anders Hejlsberg
b1bef15a1e Removing 'T?' type notation (use 'T | null | undefined' instead) 2016-03-14 15:11:27 -07:00
Nathan Shively-Sanders
fa22250110 Merge branch 'master' into this-function-types 2016-03-09 13:36:42 -08:00
Anders Hejlsberg
cf9e08b75c Merge branch 'master' into strictNullChecks
Conflicts:
	src/compiler/checker.ts
2016-03-09 13:00:59 -08:00
Ryan Cavanaugh
e9f4bef3ac Address CR feedback 2016-03-09 10:08:24 -08:00
Ryan Cavanaugh
44aa7388ea UMD support 2016-03-09 10:08:24 -08:00
Daniel Rosenwasser
01c329c05e Merge pull request #7396 from mattmccutchen/issue7359
Expose ts.isExternalModule as public API.
2016-03-07 10:15:06 -08:00
Matt McCutchen
49172207bf Expose ts.isExternalModule as public API.
Fixes #7359
2016-03-04 18:45:42 -05:00
Ryan Cavanaugh
311f8dd7d3 Merge pull request #7309 from RyanCavanaugh/fix6878
Support JSDoc on class / obj. literal getters
2016-03-03 15:50:15 -08:00
Anders Hejlsberg
ea4b13bdf9 Allow 'null' and 'undefined' as type names 2016-03-03 11:18:12 -08:00
Ryan Cavanaugh
50eca44e46 Support JSDoc on class / obj. literal getters
Fixes #6878
2016-02-29 18:55:32 -08:00
Jason Ramsay
284d9f527c Salsa: JS support for discovering and acquiring d.ts files
(Mostly isolating VS host changes from PR#6448)
2016-02-21 21:35:02 -08:00
Anders Hejlsberg
74d8c40007 Merge branch 'master' into strictNullChecks 2016-02-19 19:38:00 -08:00
jramsay
6b05ad7627 Merge pull request #7107 from Microsoft/ScriptBlockSupport
Salsa: adding ScriptKind to ensure script blocks are processed as JS.
2016-02-19 14:40:18 -08:00
Jason Ramsay
2da73b3340 Change to getScriptKindFromFileName to avoid unnecessary array allocation in split 2016-02-19 14:20:32 -08:00
Anders Hejlsberg
44d7897d6d Merge branch 'master' into strictNullChecks
Conflicts:
	src/compiler/checker.ts
	src/compiler/types.ts
2016-02-18 18:48:10 -08:00
Jason Ramsay
11acf3a4a8 Applying getScriptKindFRomFileName to HostFileInformation before we set the ScriptKind.
If the host returns ScriptKind 'Unknown' or 'undefined' we attempt to get the correct ScriptKind based on the file name.
If this cannot be determined we return the default ScriptKind 'TS'
2016-02-18 16:33:01 -08:00
Jason Ramsay
3e124ad35d parser and services changes due to CR comments
- Adding assert to ensure script kinds are not modified for registered docs
- setting script kind in parseSourceFile and consuming it initialize state and getLanguageVariant
2016-02-18 12:19:34 -08:00
Jason Ramsay
81df1cbc0b Addressing CR comments
- Adding ScriptKind to SourceFile
- Only update ScriptKind on creation, on update use the SourceFile's scriptKind
- If scriptKind is unknown, default to ScriptKind.Ts
- Replacing try-catch with in this.shimHost
2016-02-17 19:07:19 -08:00
Anders Hejlsberg
46837fd77d Disallow line breaks between operand and '!' non-null assertion operator 2016-02-17 19:03:56 -08:00