Commit Graph

12444 Commits

Author SHA1 Message Date
Mohamed Hegazy b3161e365a Merge pull request #14222 from Microsoft/addAnyStringIndexerToJSObjects
Add a string indexer to any for object literals on a .js file
2017-03-06 16:44:30 -08:00
Nathan Shively-Sanders eaca169b11 Remove optionality from the initial type of default-valued parameters
When narrowing, remove optionality from the initial type of
parameters with initialisers. Note that the type of the initialiser is
not used; its presence just means that the initial type of the parameter
can't contain undefined. It could contain any other member of a declared
union type.
2017-03-06 16:21:54 -08:00
Yui 0425175b3a Merge pull request #14493 from Microsoft/master-fixEmitExtraESModuleMark
[Master] Do not emit ESModule marker if file is not external module
2017-03-06 14:09:14 -08:00
Mohamed Hegazy 9f0c5ce141 Add support for //@check directives 2017-03-06 13:50:27 -08:00
Mohamed Hegazy 0b1fff7e66 Add --checkJsFiles 2017-03-06 13:47:27 -08:00
Mohamed Hegazy 8f7fd0918b Set inference result to any isntead of {} for .js files if generic type parameter inference found no candidates 2017-03-06 13:35:03 -08:00
Kanchalai Tanglertsampan ed071a9b02 Only emit ESModule marker when there is no export equal and the file is external module 2017-03-06 13:33:51 -08:00
Anders Hejlsberg f7242f3983 Merge pull request #14486 from Microsoft/strictChecks
New --strict master option
2017-03-06 11:23:15 -10:00
Anders Hejlsberg c968eed968 Merge pull request #14472 from Microsoft/typeParameterTypeGuards
Fix type parameter type guards
2017-03-06 11:12:17 -10:00
Anders Hejlsberg 41226d0d75 Merge pull request #14141 from Microsoft/contextualThisType
Typed 'this' in object literal methods
2017-03-06 11:11:40 -10:00
Anders Hejlsberg d3b7058c29 Change 'tsc --init' to default to 'strict: true' 2017-03-06 13:04:59 -08:00
Kanchalai Tanglertsampan 7b43d7a142 Merge branch 'master' into master-14217
# Conflicts:
#	tests/baselines/reference/controlFlowIterationErrors.errors.txt
#	tests/baselines/reference/implicitAnyFromCircularInference.errors.txt
2017-03-06 12:40:03 -08:00
Kanchalai Tanglertsampan b7ce6f05ce Address PR comment 2017-03-06 09:57:37 -08:00
Andy 3295ca3c73 Merge pull request #14385 from Microsoft/path-completions
Move code from 'Completions' to 'PathCompletions' namespace
2017-03-06 09:11:44 -08:00
Andy Hanson d58cfa238b Merge branch 'master' into lint_better 2017-03-06 06:20:48 -08:00
kpreisser 39d1c8b844 Allow the right-hand side of an 'in' expression to be of non-primitive object type.
Fixes #14269
2017-03-06 08:29:57 +01:00
Anders Hejlsberg a4e80b5004 Merge branch 'master' into strictChecks 2017-03-05 16:31:22 -08:00
Anders Hejlsberg 91b658da36 Construct intersection types for type guards involving type parameters 2017-03-05 14:12:55 -08:00
Anders Hejlsberg 65cea207da Use getTypeOfExpression when inferring variable type from initializer 2017-03-03 14:32:18 -08:00
Vladimir Matveev d7e62bb9f7 initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer 2017-03-03 13:50:58 -08:00
Anders Hejlsberg cda741d14a Introduce --strict compiler option 2017-03-03 10:25:10 -08:00
Andy 8bc21f9f68 Merge pull request #13597 from Microsoft/enum_member
Set ScriptElementKind for enum members to "enum member" instead of "const"
2017-03-03 07:35:22 -08:00
Andy Hanson 556e8c3845 Merge branch 'master' into enum_member 2017-03-03 07:04:40 -08:00
Andy Hanson 3bc125463b Add more missing semicolons 2017-03-03 07:00:52 -08:00
Andy Hanson 5f52549047 Merge branch 'master' into semicolon 2017-03-03 06:56:05 -08:00
Yui T 51e40112ec Address PR comments 2017-03-02 10:51:51 -08:00
Yui T b335adbb21 Merge branch 'master' into master-14217 2017-03-02 10:01:10 -08:00
Yui 5abb8f3caa Merge pull request #14371 from Microsoft/master-fix14254
[Master] Fix 14254: Return JsDoc tagName when there is no "@" sign prefix
2017-03-01 21:48:17 -08:00
Yui T da51f39695 FIx minor stuffs 2017-03-01 21:11:34 -08:00
Kanchalai Tanglertsampan b5c6221e36 Address PR 2017-03-01 17:46:35 -08:00
Anders Hejlsberg 7561cdf6bf Add ThisType<any> to Object.{create|defineProperty|defineProperties} 2017-03-01 17:16:09 -08:00
Arthur Ozga e9fd831a9d Merge pull request #14140 from aozgaa/ImplementMissingThis
Implement Missing Property of Type `this`
2017-03-01 16:17:35 -08:00
Ron Buckton a0271ef6c4 Merge pull request #14177 from ajafff/parent-type
Add specific types to parent property of Node interfaces
2017-03-01 13:27:45 -08:00
Arthur Ozga 0261586d6e cleanup 2017-03-01 11:27:59 -08:00
Arthur Ozga d878f80f90 more rigorous implements-clause check 2017-03-01 11:23:49 -08:00
Mohamed Hegazy 609008a520 Merge pull request #14387 from magnushiie/master
Add insert...Braces Option to Server Protocol
2017-03-01 11:21:44 -08:00
Arthur Ozga 207b7b0449 Merge branch 'ImplementMissingThis' of github.com:aozgaa/TypeScript into ImplementMissingThis 2017-03-01 10:42:11 -08:00
Andy 69060025ba Merge pull request #12352 from Microsoft/untyped_module_symbol
Use a symbol for untyped modules to distinguish from unknownSymbol
2017-03-01 10:38:47 -08:00
Andy Hanson 8371eb6401 Update tslint to latest (next is still on 4.3) and lint for BOM 2017-03-01 10:37:13 -08:00
Klaus Meinhardt 6ad9fe146a Add parent type to ExpressionWithTypeArguments 2017-03-01 18:08:53 +01:00
Magnus Hiie 9ac2ea722d Add insert...Braces Option to Server Protocol
Closes #13275
2017-03-01 18:48:08 +02:00
Andy Hanson aac3d80fc4 Merge branch 'master' into refactor_findallrefs 2017-03-01 08:45:41 -08:00
Andy Hanson 0f50a5ffa7 Move code from 'Completions' to 'PathCompletions' namespace 2017-03-01 08:29:33 -08:00
Andy Hanson 5ea43c8ba3 Merge branch 'master' into semicolon 2017-03-01 08:09:59 -08:00
Arthur Ozga 5bcbd7aabc instantiate generic this param correctly 2017-02-28 19:35:15 -08:00
Vladimir Matveev c77ea9e9ea ignore request for codefixes with no error codes (#14215) 2017-02-28 19:35:07 -08:00
Vladimir Matveev a2f61a8041 handle the case when conversion of tsconfig.json failed (#14160) 2017-02-28 19:35:07 -08:00
Jason Jarrett bb86e9e291 Update protocol.ts 2017-02-28 19:35:07 -08:00
Ron Buckton a4904935e0 Fix for-await-of emit in async function 2017-02-28 19:35:06 -08:00
Mohamed Hegazy a5d104c841 Fix #14136: Make Object.create return any all the time 2017-02-28 19:35:06 -08:00