Commit Graph

1342 Commits

Author SHA1 Message Date
zhengbli
0e96c5eaf1 Run fixupParentReferences when parsing isolated jsDocComment 2016-06-01 22:57:25 -07:00
zhengbli
630517b8ad Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc 2016-05-31 15:30:42 -07:00
zhengbli
58fdd011df avoid eating all preceding empty lines 2016-05-31 14:11:39 -07:00
zhengbli
3433a7800a Fix formatOnEnter for double newlines 2016-05-31 12:35:12 -07:00
Zhengbo Li
e93f9df955 Fix broken test 2016-05-31 10:48:25 -07:00
Zhengbo Li
5261467a32 Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc 2016-05-31 10:39:23 -07:00
zhengbli
59b188d4ca Add navigationTo test for jsdoc typedef 2016-05-31 02:05:26 -07:00
Andy Hanson
f3d1b46dcb Add tests for private and readonly parameter properties in navbar 2016-05-27 10:40:28 -07:00
Sheetal Nandi
35156527a3 Merge pull request #8789 from Microsoft/getSymbolAtAliasLocation
Do not resolve alias when getting symbol of import equal's right hand side
2016-05-27 09:27:23 -07:00
Andy Hanson
b2664e7f84 Use a JSON.stringify replacer function instead of changing the value beforehand 2016-05-27 06:27:13 -07:00
zhengbli
e69976c4b7 Merge branch 'master' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
# Conflicts:
#	src/services/utilities.ts
2016-05-26 14:50:09 -07:00
Andy Hanson
63b5790dcd Merge branch 'master' into navbar_root 2016-05-26 13:29:33 -07:00
Nathan Shively-Sanders
6304d79536 Merge pull request #8844 from Microsoft/create-symbol-for-assignments-in-javascript-constructors
Symbol for property assignments in Salsa/ES6 constructors
2016-05-26 13:26:48 -07:00
Nathan Shively-Sanders
abfcdd2cfd Symbol for property assignments in Salsa/ES6 constructors
Previously no symbol at all was created, meaning that Salsa didn't track
properties in ES6 code.
2016-05-26 12:42:35 -07:00
Andy Hanson
fdd5c06b63 Include type aliases as childItems in navigation bar 2016-05-26 12:18:19 -07:00
Andy Hanson
fe970abc81 Change tests to use the full JSON output of the navigation bar.
This reduces the confusion of verify.navigationBarCount() counting duplicate items.
2016-05-26 08:40:35 -07:00
Andy Hanson
1be09c9c57 Merge branch 'navbar_class_child_item' into navbar_modules 2016-05-26 06:23:01 -07:00
Andy Hanson
5c23b3bc20 Fix more tests 2016-05-26 06:04:42 -07:00
Andy Hanson
1bae2c4982 Merge branch 'master' into navbar_class_child_item 2016-05-25 13:49:31 -07:00
Andy Hanson
109c05863e Include modules as childItems in navigation bar 2016-05-25 07:49:56 -07:00
Andy Hanson
91b473389b Include interfaces as childItems in navigation bar 2016-05-25 07:34:35 -07:00
Andy Hanson
dbd30542a6 Include classes as childItems in navigation bar 2016-05-25 07:16:23 -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
Sheetal Nandi
b8b38f3b86 Do not resolve alias when getting symbol of import equal's right hand side
Fixes #5501
2016-05-24 12:11:15 -07:00
Andy Hanson
11d51867f2 Include enums in childItems in navigation bar 2016-05-24 05:58:14 -07:00
Andy
5035df665d Merge pull request #8756 from Microsoft/no_navigate_to_import
Don't include imports in navigateTo if the imported declaration is also in the items and has the same name
2016-05-23 13:07:14 -07:00
Andy Hanson
db65724330 Make fourslash tests actually test parentName for navbar items 2016-05-23 09:44:28 -07:00
Andy Hanson
5e799b8773 Don't include imports in navigateTo if the imported declaration is also in the items and has the same name 2016-05-23 07:01:16 -07:00
Zhengbo Li
e8862a7168 Merge pull request #8504 from zhengbli/i8334
Tolerate non-existing files specified for tsserver
2016-05-19 16:52:55 -07:00
Ryan Cavanaugh
dd02c11e3a Merge pull request #8369 from zhengbli/jsModuleExportsNotWorking
Support module.exports.name = expr format for JavaScript module
2016-05-19 15:47:08 -07:00
zhengbli
30718144ec Merge branch 'master' of https://github.com/Microsoft/TypeScript into i8334 2016-05-19 15:42:06 -07:00
Nathan Shively-Sanders
8e668441b3 Mark IIFE signature with anySignature during contextual typing
Avoids recursion -- during batch compilation, `checkCallExpression` already
sets the signature to `anySignature` as a sentinel value, the services
layer calls directly into `checkParameter`, skipping `checkCallExpression`
entirely. So `getContextuallyTypedParameterType` also needs to set this
sentinel value.
2016-05-19 12:33:37 -07:00
Andy
c62b6cb6fc Merge pull request #8603 from Microsoft/hover_over_comment
Fix bug: getTouchingPropertyName does not return undefined, but it may return the source file node
2016-05-17 12:39:50 -07:00
Andy
cb6e444158 Merge pull request #8595 from Microsoft/declaration_expressions
Declaration expressions
2016-05-17 12:36:39 -07:00
Andy
42f25b3b1f Merge pull request #8645 from Microsoft/navbar_export_type
Add type aliases to navigation bar
2016-05-17 11:23:04 -07:00
Mohamed Hegazy
66dd91bb76 Merge pull request #8640 from mihailik/patch-3
Extra test for #8364 - non-breaking of one-liners
2016-05-17 11:18:11 -07:00
Andy Hanson
eabafc4b09 Add type aliases to navigation bar 2016-05-17 10:45:04 -07:00
Andy Hanson
cdc00086b2 Add printNavigationBar declaration 2016-05-17 07:59:41 -07:00
Andy Hanson
bbbe3666b6 Rename "getScriptLexicalStructureList" to "navigationBar" in fourslash test helpers and remove unnecessary duplicate helpers 2016-05-17 07:59:41 -07:00
Andy Hanson
df8e7409c1 Add test for #7301 2016-05-17 07:59:41 -07:00
mihailik
d541d434ea Extra test for #8364 - non-breaking of one-liners 2016-05-17 09:09:46 +01:00
Zhengbo Li
3fb16f5930 Merge pull request #8364 from zhengbli/i7503
Fix indentation for array items
2016-05-16 21:53:27 -07:00
Andy Hanson
3a896d8ee7 Remove broken test 2016-05-16 09:20:42 -07:00
Andy Hanson
b91d14fd6c Test expressions with no name 2016-05-16 06:41:39 -07:00
Andy Hanson
8c5fe7d733 Change other uses of getTouchingPropertyName to check for node === sourceFile instead of undefined. 2016-05-16 06:37:49 -07:00
Andy Hanson
a1cc88b080 Fix bug: getTouchingPropertyName does not return undefined, but it may return the source file node 2016-05-13 14:44:15 -07:00
Andy Hanson
67beb00299 Improve test 2016-05-13 12:56:52 -07:00
Andy Hanson
81a43f0c7e Look for declaration expressions in nested expressions 2016-05-13 08:38:52 -07:00
Andy Hanson
3e32a6131b Include declaration expressions (class expressions and function expressions) in named declarations 2016-05-13 08:26:41 -07:00
Andy Hanson
b1cd3de89c Use NodeFlags.ParameterPropertyModifier rather than NodeFLags.AccessibilityModifier to detect parameter properties.
This is a continuation of #8555.
2016-05-12 13:26:35 -07:00