Commit Graph
548 Commits
Author SHA1 Message Date
Vladimir Matveev 959b6b6c07 remove unused dependencies to reduce the size of output file 2016-08-12 14:26:09 -07:00
Anders Hejlsberg ff0cbb5b29 Merge branch 'master' into literalTypes
# Conflicts:
#	src/compiler/checker.ts
2016-07-24 07:28:11 -07:00
Anders Hejlsberg afd39cccaa Enum type is also a union of the literal enum types it declares 2016-07-22 14:27:33 -07:00
Vladimir Matveev 4f9a23468b move endsWith to core.ts 2016-07-13 17:08:57 -07:00
Andy Hanson df59058812 Fix endsWith bug 2016-07-13 11:47:53 -07:00
Andy Hanson e6e6a8b110 Use regex 2016-07-13 09:55:57 -07:00
Andy Hanson c90897ccdd Treat "." and ".." as relative module names 2016-07-13 06:51:00 -07:00
Mohamed Hegazy 1102fa6bae Merge pull request #9420 from Microsoft/formatting_loc
Do not scan nodes preceding formatted region, just skip over them
2016-07-05 14:40:48 -07:00
Andy Hanson 2c40fea9f1 Improve names of whitespace functions 2016-07-01 13:57:20 -07:00
Bill Ticehurst d8047b607f Renamed API 2016-06-29 17:05:55 -07:00
Bill Ticehurst 5f8cf1af3e Don't emit source files found under node_modules 2016-06-29 08:44:06 -07:00
Bill Ticehurst ddad35a680 Marked new method internal 2016-06-27 16:49:53 -07:00
Bill Ticehurst d8e3bd99e8 Added emitHost method to return source from node modules 2016-06-27 16:32:29 -07:00
Bill Ticehurst 0174bda004 Merge branch 'master' into loadJsFromModules 2016-06-26 23:24:26 -07:00
Bill Ticehurst e9a0c56d3c Fixed bugs and linting 2016-06-26 20:48:22 -07:00
Sarangan Rajamanickam a0a96667ed Unused identifiers compiler code (#9200)
* Code changes to update references of the Identifiers

* Added code for handling function, method and coonstructor level local variables and parameters

* Rebased with origin master

* Code changes to handle unused private variables, private methods and typed parameters

* Code changes to handle namespace level elements

* Code changes to handle unimplemented interfaces

* Code to optimize the d.ts check

* Correct Code change to handle the parameters for methods inside interfaces

* Fix for lint error

* Remove Trailing whitespace

* Code changes to handle interface implementations

* Changes to display the error position correctly

* Compiler Test Cases

* Adding condition to ignore constructor parameters

* Removing unnecessary tests

* Additional changes for compiler code

* Additional changes to handle constructor scenario

* Fixing the consolidated case

* Changed logic to search for private instead of public

* Response to PR Comments

* Changed the error code in test cases as result  of merge with master

* Adding the missing file

* Adding the missing file II

* Response to PR comments

* Code changes for checking unused imports

* Test Cases for Unused Imports

* Response to PR comments

* Code change specific to position of Import Declaration

* Code change for handling the position for unused import

* New scenarios for handling parameters in lambda function, type parameters in methods, etc.

* Additional scenarios based on PR comments

* Removing a redundant check

* Added ambient check to imports and typeparatmeter reporting

* Added one more scenario to handle type parameters

* Added new scenario for TypeParameter on Interface

* Refactoring the code

* Added scenario to handle private class elements declared in constructor.

* Minor change to erro reporting
2016-06-24 15:38:39 -07:00
Bill Ticehurst 07bfbab6ff Changed implementation to use closure 2016-06-21 13:47:17 -07:00
Bill Ticehurst 4d4f679ec4 Merge branch 'master' into loadJsFromModules 2016-06-21 09:03:38 -07:00
zhengbli d9bd31fc52 Use getCanonicalFileName 2016-06-20 12:39:07 -07:00
zhengbli 478d76347b ignore casing when converting a source file path to relative path 2016-06-16 02:16:47 -07:00
zhengbli 335443693f Merge branch 'master' of https://github.com/Microsoft/TypeScript into fixLargeProjectTry2
# Conflicts:
#	src/compiler/program.ts
#	tests/cases/unittests/tsserverProjectSystem.ts
2016-06-15 14:36:45 -07:00
Nathan Shively-Sanders 7890fd58b9 Merge pull request #9088 from Microsoft/add-members-to-variable-declarations-initialised-with-function-expressions
Add members to variable declarations initialised with function expressions
2016-06-14 11:37:36 -07:00
york yao 61534225e5 minor fix: add missing return clause 2016-06-13 18:48:39 +08:00
Nathan Shively-Sanders 642583771d Salsa: get members of variables whose initialisers are functions 2016-06-10 14:10:30 -07:00
zhengbli 94d44ad81d Merge branch 'master' of https://github.com/Microsoft/TypeScript into fixLargeProjectTry2
# Conflicts:
#	src/compiler/commandLineParser.ts
#	src/compiler/program.ts
#	src/compiler/sys.ts
#	src/compiler/types.ts
#	src/server/editorServices.ts
#	src/server/session.ts
2016-06-09 14:58:28 -07:00
Andy Hanson 75c1d77606 Merge branch 'master' into shorthand_ambient_module 2016-06-09 11:43:18 -07:00
Nathan Shively-Sanders 179d42323a Merge pull request #9010 from Microsoft/merge-jsdoc-of-assignment-and-function-expression
Merge JSDoc of assignments from function expressions
2016-06-08 13:03:03 -07:00
Nathan Shively-Sanders 17cc206271 Merge JSDoc of assignments from function expressions 2016-06-07 16:22:18 -07:00
Anders Hejlsberg 52d8a78419 Merge pull request #8970 from Microsoft/propertyControlFlow
Fix control flow analysis for property initializers
2016-06-06 17:00:21 -07:00
Andy Hanson 543b484ec5 Remove trailing whitespace 2016-06-06 08:17:14 -07:00
Anders Hejlsberg bb7818b837 Consider property declarations to be control flow containers 2016-06-04 14:42:45 -07:00
Andy Hanson 7e9cb46a1a Support shorthand ambient module declarations 2016-06-02 12:55:48 -07:00
zhengbli 241920c960 Merge branch 'outerControlFlows' of https://github.com/Microsoft/TypeScript into typedefForJsdoc
# Conflicts:
#	src/compiler/binder.ts
2016-05-31 14:02:45 -07:00
Anders Hejlsberg e8ecf0e615 Track return statements in IIFE using a flow label 2016-05-28 06:43:28 -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 675d176cef Allow duplicate identifiers as long as their declarations span multiple blocks
Fixes #8675
2016-05-24 09:58:56 -07:00
Bill Ticehurst 75d84dcf61 Merge remote-tracking branch 'upstream/master' into loadJsFromModules 2016-05-23 17:14:23 -07:00
Bill Ticehurst c76dc72b40 Merge remote-tracking branch 'upstream/master' into loadJsFromModules 2016-05-23 17:00:10 -07:00
Ryan Cavanaugh 27292e4292 Merge pull request #8678 from RyanCavanaugh/fix8255
Tweak UMD / global semantics
2016-05-23 16:15:56 -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
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
Andy 7806de0f45 Merge pull request #8555 from Microsoft/readonly_ctr
Fix #7590: Allow 'readonly' to be used in constructor parameters
2016-05-12 10:29:22 -07:00
Andy Hanson a9742c5861 Change name from ConstructorParameterModifier to ParameterPropertyModifier 2016-05-11 09:48:37 -07:00
Andy Hanson ad2634e343 Fix #7590: Allow 'readonly' to be used in constructor parameters 2016-05-11 08:32:17 -07:00
Vladimir Matveev 5e94c76190 expose code path that will use Path type to avoid redundant string conversions 2016-05-10 23:43:26 -07:00
Mohamed Hegazy 0de410627e Code review comments 2016-05-08 15:59:15 -07:00
Mohamed Hegazy 02bae234c6 Merge branch 'master' into Fix8415 2016-05-08 15:31:48 -07:00
Yui 72c19ec806 Fix 7304: show correct quickinfo on "this" in type position (#8508)
* Show correct quickinfo when using this in type position

* Split quickinfo test into smaller files and add test case
2016-05-07 09:12:53 -07:00
Nathan Shively-Sanders 2c70051691 Allow this parameters for accessors
Also refactor getSignatureFromDeclaration a bit
2016-05-04 11:02:54 -07:00