Commit Graph

2276 Commits

Author SHA1 Message Date
Andy
fd4d8ab96e Support a 'recommended' completion entry (#20020)
* Support a 'recommended' completion entry

* Code review

* Restore duplicate comments
2017-12-01 13:00:01 -08:00
Nathan Shively-Sanders
69bbfedd63 Merge branch 'master' into jsdoc-values-as-namespaces 2017-11-30 10:34:50 -08:00
Nathan Shively-Sanders
665c2ecf91 Add SymbolFlag for containers of JS special decls
And update some doc comments
2017-11-30 10:27:38 -08:00
Klaus Meinhardt
0b9e4987f4 Make AccessorDeclaration.body optional (#20329)
* Make AccessorDeclaration.body optional

* Accept baselines
2017-11-29 13:59:40 -08:00
Nathan Shively-Sanders
61fe04ba0d Merge branch 'master' into jsdoc-values-as-namespaces 2017-11-28 15:01:40 -08:00
Andy
94ea38859b Disable import fix for method of 'export =' value (#20208)
* Disable import fix for method of 'export =' value

* Exclude primitives, but allow other interfaces

* Use type.flags

* Fix comment
2017-11-28 17:46:06 -05:00
Wesley Wigham
5ee640d2b6 Move utilities for getting type parameter constraints and defaults from public lazy members to services (#20162) 2017-11-28 13:37:42 -08:00
Nathan Shively-Sanders
bee7d06761 Binder-based prop-assignment decls: messy version 2017-11-22 13:52:45 -08:00
Anders Hejlsberg
1624e1bc1a Definite assignment assertion '!' on variable and property declarations 2017-11-19 16:48:43 -08:00
Anders Hejlsberg
8c4c529d8e Merge branch 'master' into strictPropertyInitialization 2017-11-17 14:30:23 -08:00
Andy
74a44e09a7 Support semantic classification of alias (#20012) 2017-11-17 08:04:51 -08:00
Anders Hejlsberg
c11969f804 Mark returnFlowNode property as internal 2017-11-16 10:57:15 -08:00
Anders Hejlsberg
f1762a04ea Attach return control flow graph to contructor declaration nodes 2017-11-16 10:35:14 -08:00
Anders Hejlsberg
b6f96052d8 Merge pull request #19976 from Microsoft/optimizeParser
Optimize parsing
2017-11-16 10:19:10 -08:00
Ron Buckton
804c7d3690 Merge branch 'master' into dynamicNames 2017-11-13 13:24:20 -08:00
Ron Buckton
ae11ae55c5 Fix getReturnTypeFromBody widening 2017-11-13 13:19:49 -08:00
Anders Hejlsberg
3411318e6b Use TokenFlags.PrecedingJSDocComment to guide JSDoc comment processing 2017-11-13 09:51:56 -08:00
Anders Hejlsberg
ddf0df9cbb Introduce TokenFlags enum 2017-11-12 09:11:09 -08:00
Anders Hejlsberg
2010c4cda1 Give lowest priority to inferences made from empty array literals 2017-11-10 08:30:59 -08:00
Andy
65a191fa2b For import completion of default import, convert module name to identifier (#19875)
* For import completion of default import, convert module name to identifier

* Suggestions from code review
2017-11-09 13:13:23 -08:00
Andy
90ae9ffe6e If there is an export default x; alias declaration, disallow other default exports (#19872) 2017-11-09 12:21:37 -08:00
Mohamed Hegazy
1de3bbac2e Merge branch 'update-types3' of https://github.com/ajafff/TypeScript into ajafff-update-types3 2017-11-07 15:23:38 -08:00
Ron Buckton
3f248ecfe1 Merge pull request #19452 from Microsoft/compareStrings
Clean up outdated string comparison logic
2017-11-06 18:48:15 -08:00
Ron Buckton
ee36e6a2ff Merge branch 'master' into dynamicNames 2017-11-06 17:54:48 -08:00
Ron Buckton
8b717d34a1 PR Feedback 2017-11-06 16:56:36 -08:00
Wesley Wigham
4f48bf80fe Revised emit for computed property names, including with decorators (#19430)
* Revised emit for computed property names

* Fix downlevel name generation scopes

* Accept slightly more conservative baseline

* First feedback pass

* Reduce number of nonrequired variable declarations and assignments

* Remove side-effect-free identifier references

* skip partially emitted expressions

* Comments, move starsOnNewLine to emitNode

* Put expressions on newlines when inlined in class expressions for consistency

* Update new ref

* Fix typo in comment
2017-11-06 12:51:34 -08:00
Ron Buckton
31c3d444f1 Merge branch 'master' into compareStrings 2017-11-03 23:01:51 -07:00
Ron Buckton
208dfa6b01 Merge branch 'master' into dynamicNames 2017-11-03 22:10:28 -07:00
Andy
cc2a2a79b5 Use NodeFlags to detect nodes in ambient contexts instead of climbing ancestors (#17831)
* Use NodeFlags to detect nodes in ambient contexts instead of climbing ancestors

* Set context flags on tokens

* Remove 'isDeclarationFile' parameter to 'initializeState' and move to 'parseSourceFileWorker'

* Changes based on code review

* Update API baselines
2017-11-03 08:08:48 -07:00
Andy
fd41521421 Enable 'callable-types' tslint rule (#19654) 2017-11-02 17:16:09 -07:00
uniqueiniquity
3ebb2e8a34 Merge branch 'master' into jsxFragment 2017-10-31 10:53:57 -07:00
Ron Buckton
26ca98c820 Merge branch 'master' into dynamicNames 2017-10-30 18:02:53 -07:00
Nathan Shively-Sanders
aea2ee5726 Fix the order of JSDocTag kinds
JSDocTypeLiteral should not be grouped with the JSDocTag kinds, so move
it just before they start, instead of just after. This updates the
LastJSDocNode and LastJSDocTagNode.
2017-10-30 15:00:34 -07:00
Ron Buckton
1f961cda11 PR Feedback, cleanup 2017-10-29 13:24:22 -07:00
Ron Buckton
e6cdd6334b PR Feedback 2017-10-29 12:35:48 -07:00
Ron Buckton
44117e19ea Reduce noise in PR, minor cleanup 2017-10-26 17:57:54 -07:00
Ron Buckton
3cb15378d7 Improve performance of deduplication of sorted arrays 2017-10-26 17:51:09 -07:00
Ron Buckton
170e6ec130 Ensure correct errors when emitting declarations 2017-10-26 15:50:07 -07:00
Ron Buckton
3febc802cf More repetitive but less complex widening logic for literals/symbols 2017-10-26 14:50:41 -07:00
Ron Buckton
bfba32b71d Cleanup, merge #19475 2017-10-26 13:49:32 -07:00
Anders Hejlsberg
1641f9bb0e Normalize nested object literals 2017-10-26 06:53:41 -07:00
Anders Hejlsberg
b435c90f86 Normalize object literals in widened union types 2017-10-25 11:46:51 -07:00
Wesley Wigham
fa3ce9fe6c Fix build break (#19431) 2017-10-23 14:28:20 -07:00
Andy
159a0a2197 Use NodeFlags to detect nodes inside with statements instead of climbing ancestors (#17721)
* Use NodeFlags to detect nodes inside with statements instead of climbing ancestors

* Add to ContextFlags
2017-10-23 13:38:50 -07:00
Klaus Meinhardt
3416e91468 Merge branch 'master' of https://github.com/Microsoft/TypeScript into update-types3 2017-10-22 22:35:21 +02:00
Ron Buckton
51929acb89 Merge branch 'master' into dynamicNames 2017-10-21 00:36:52 -07:00
Ron Buckton
b5a7b036c3 Address PR feedback 2017-10-20 23:51:58 -07:00
Ron Buckton
3341e07e67 Refactor widening 2017-10-20 22:52:20 -07:00
Andy
c1b4d59752 Fixup line and offset of rename location of refactor (#19265)
* Fixup line and offset of rename location of refactor

* Fixes

* Handle "\r" only documents

* Update api baselines

* Fix error if an edit comes *after* the rename location

* Add bounds check

* Simpler implementation: get new text, then calculate line starts the usual way
2017-10-19 14:31:23 -07:00
Bill Ticehurst
45ba0ac3b9 Set the scriptKind from the host configuration if present 2017-10-18 10:41:57 -07:00