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
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
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
Anders Hejlsberg
1f096bd080
Add '!' non-null assertion postfix operator
2016-02-17 18:44:15 -08:00
Jason Ramsay
2aa8f05e64
Fix to test harness and addressing CR comments
2016-02-16 22:44:43 -08:00
Jason Ramsay
a71fa457bd
Salsa: adding ScriptKind to ensure script blocks (.html, .aspx, .ascx, etc) are processed as JS
2016-02-16 17:37:24 -08:00
Nathan Shively-Sanders
e7aa7e4958
Merge branch 'master' into this-function-types
2016-02-16 13:57:25 -08:00
Anders Hejlsberg
8e926035b7
Parsing of nullable types
2016-02-14 18:59:58 -08:00
Daniel Rosenwasser
f944d3e997
Addressed CR feedback.
2016-02-12 15:22:33 -08:00
Daniel Rosenwasser
ec0eabb2e9
Minor rename.
2016-02-12 15:22:03 -08:00
Josh Soref
196d90a4ce
spelling fixes for src/compiler/binder.ts src/compiler/parser.ts
...
* accidentally
* children
* exhaustive
* initialize
* initializer
* otherwise
* argument
* current
* delimiter
* differently
* expression
* further
* increment
* precedence
* presence
* proceed
* signatures
* specifier
* that
* this
* unusable
2016-02-10 20:57:53 +00:00
Ryan Cavanaugh
a324176102
Merge pull request #6869 from RyanCavanaugh/fix6811
...
Recognize `=` as equivalent to `?` in JSDoc signatures
2016-02-04 15:48:03 -08:00
Ryan Cavanaugh
68befc0f12
Merge pull request #6851 from RyanCavanaugh/fix6814
...
Allow parsing TS-style generics in JSDoc
2016-02-04 15:37:53 -08:00
Ryan Cavanaugh
6f261f5b0b
Merge pull request #6870 from RyanCavanaugh/fix6825
...
Recognize object literal method JSDoc comments
2016-02-04 10:17:43 -08:00
Ryan Cavanaugh
d47097f009
Use different syntax kind here
2016-02-03 10:05:58 -08:00
Anders Hejlsberg
1154ab8def
Merge pull request #6855 from Microsoft/destructuringInTypes
...
Destructuring parameters in function/constructor types
2016-02-03 09:05:24 -08:00
Anders Hejlsberg
98e8a25d1e
Addressing CR feedback
2016-02-03 06:52:53 -08:00
Ryan Cavanaugh
8aad976c69
Recognize object literal method JSDoc comments
...
Fixes #6825
2016-02-03 00:18:36 -08:00
Ryan Cavanaugh
f7eac73a6f
Recognize = as equivalent to ? in JSDoc signatures
...
Fixes #6811
2016-02-03 00:09:38 -08:00
Nathan Shively-Sanders
8032b06f33
Merge branch 'master' into this-function-types
2016-02-02 16:16:46 -08:00
Anders Hejlsberg
c89f2b75ad
Properly parse function/constructor types with destructuring parameters
2016-02-02 14:14:37 -08:00
Ryan Cavanaugh
6e06bb39a1
Allow parsing TS-style generics in JSDoc
...
Fixes #6814
2016-02-02 13:32:21 -08:00
Ryan Cavanaugh
2d7a2f4d30
Merge pull request #6680 from RyanCavanaugh/fix6646
...
Parse JSDoc comments for ES6 class constructors and methods
2016-02-02 10:48:29 -08:00