Commit Graph

7816 Commits

Author SHA1 Message Date
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
T18970237136 dbfc269e42 Add missing semicolon when emitting return statement.
Fixes #6824.
2016-02-02 08:54:07 +01:00
Daniel Rosenwasser 0855933757 Merge pull request #6587 from nojvek/master
pretty output for jsx and createElement emits to children array
2016-02-01 21:38:15 -08:00
Ryan Cavanaugh a4c6f66686 Treat multiple prototype property assignments as union property declarations 2016-02-01 20:59:37 -08:00
Kanchalai Tanglertsampan bcf22157d8 Fix lastEncodedSourceMapSpan from being set to undefined 2016-02-01 16:51:12 -08:00
Vladimir Matveev a17dbd5c2b Merge pull request #6798 from Microsoft/dottedNamesInJsx
properly classify dotted tag names in jsx
2016-02-01 16:49:59 -08:00
Vladimir Matveev 555f35e2cd Merge pull request #6803 from Microsoft/noDirExistsCheckInClassic
don't do 'directoryExists' check in classic resolution scheme
2016-02-01 16:49:51 -08:00
Vladimir Matveev 1f1f4d2442 fix linter issues 2016-02-01 15:34:03 -08:00
Vladimir Matveev 4f2cd6c4a2 don't do 'directoryExists' check in classic resolution scheme 2016-02-01 15:19:13 -08:00
Daniel Rosenwasser bf4b63d3ba Only error on 'export =' declarations. 2016-02-01 14:17:31 -08:00
Vladimir Matveev e6c6d3090a properly classify dotted tag names in jsx 2016-02-01 13:35:57 -08:00
Zhengbo Li 640db0d010 Merge pull request #6769 from zhengbli/updateLib20160131
Routine update of lib.d.ts 20160131
2016-02-01 13:07:27 -08:00
Vladimir Matveev 4a01708c13 Merge pull request #6789 from Microsoft/transpileJs
suppress validation of output paths in transpile scenarios
2016-02-01 11:27:27 -08:00
Vladimir Matveev b0b0712c73 suppress validation of output paths in transpile scenarios 2016-02-01 10:36:47 -08:00
Ryan Cavanaugh bb7216a1ea Merge pull request #6741 from RyanCavanaugh/fix6673
Fixes bug #6673
2016-02-01 10:18:47 -08:00
Ryan Cavanaugh 95196886f7 Fix lint 2016-02-01 10:14:14 -08:00
Ryan Cavanaugh 202c1e6e4b Merge pull request #6707 from RyanCavanaugh/fix6693
Don't show the currently-completing thing at the cursor in JS files
2016-02-01 10:03:22 -08:00
Vladimir Matveev e168e945e5 Merge pull request #6770 from Microsoft/dottedNamesInSystem
properly handle dotted namespace names in System modules
2016-02-01 10:01:05 -08:00
Vladimir Matveev 726514bac0 Merge pull request #6763 from Microsoft/classInterfaceCrossFileMerge
properly handle merged declarations across files
2016-02-01 10:00:54 -08:00
Anders Hejlsberg 8ad6e74e97 Merge pull request #6773 from Microsoft/nodeFlagsCleanup
Merge ParserContextFlags into NodeFlags
2016-02-01 09:38:18 -08:00
Anders Hejlsberg dc657b8696 Adding /*@internal*/ directives 2016-02-01 06:55:53 -08:00
Anders Hejlsberg 4421c52b83 Remove parserContextFlags from Node type 2016-01-31 14:00:54 -08:00
Vladimir Matveev 4d2cd6f88b properly dotted namespace names in System modules 2016-01-31 12:10:33 -08:00
Anders Hejlsberg f4ee49f24e Renaming parsing context flags to NodeFlags.xxxContext 2016-01-31 08:57:32 -08:00
Anders Hejlsberg 83859c0d91 Merge ParserContextFlags into NodeFlags 2016-01-31 08:45:14 -08:00
zhengbli 064de382cf Routine update of lib.d.ts 20160131 2016-01-31 08:13:26 -08:00
Anders Hejlsberg f0abb86158 Removing MultiLine, Synthetic, DeclarationFile, and OctalLiteral flags 2016-01-31 08:08:19 -08:00
Vladimir Matveev e5aa9cbc6f properly handle merged declarations across files 2016-01-30 19:58:29 -08:00
Vladimir Matveev 39216e8811 Merge pull request #6742 from Microsoft/augmentExportEquals
allow augmentation for entities exported via 'export='
2016-01-30 19:47:06 -08:00
Vladimir Matveev ac528cc948 addressed PR feedback 2016-01-30 16:20:48 -08:00
Noj Vek f04f93c414 Fix typo in compiler reactNamespace error string 2016-01-30 11:37:02 -08:00
Noj Vek bd86e2ec80 remove uncommented lines 2016-01-30 11:31:43 -08:00
Ron Buckton fe23cc3c44 Merge pull request #6684 from Microsoft/fixDecoratedClassName
Fix ES6 decorated class double binding.
2016-01-29 17:37:24 -08:00
Vladimir Matveev 5d22d18a70 allow augmentation for entities exported via 'export=' 2016-01-29 16:27:34 -08:00
Ryan Cavanaugh f89ebb8fd8 Fixes bug #6673
#6673
2016-01-29 16:01:41 -08:00
Daniel Rosenwasser ad9bff88fa Merge branch 'master' into theyreNotTHATSpecial 2016-01-29 14:47:23 -08:00
Nathan Shively-Sanders 5fe8478159 Add overloads for Function.apply/call/bind
The new overloads use this types to specify the return type of these
functions as well as the type of `thisArg`.
2016-01-29 14:46:01 -08:00
Nathan Shively-Sanders 22e571f1e9 Add services support for this types. 2016-01-29 14:44:20 -08:00
Nathan Shively-Sanders ca16209032 Make compiler strictThis clean. 2016-01-29 14:43:50 -08:00
Nathan Shively-Sanders 9bd7afb143 Add new error message and strictThis flag 2016-01-29 14:39:01 -08:00
Nathan Shively-Sanders a639b71ed0 Skip emit of this types as first parameter. 2016-01-29 14:34:44 -08:00
Nathan Shively-Sanders d8a77c0055 Check this type in functions.
If `this` is not provided, it defaults to `void` for functions and `this`
for methods. The rules for checking are similar to parameter checking, but
there's still quite a bit of duplication for this implementation.
2016-01-29 14:30:01 -08:00
Nathan Shively-Sanders 0a968f0868 Parse this type using parameter syntax
Syntax is the same as a normal parameter:

```ts
function f(this: void, x: number) {
}
```
2016-01-29 14:10:43 -08:00
Vladimir Matveev 56355d1d17 fix access check issues when declaration is in multiple files 2016-01-29 13:28:27 -08:00
guybedford 94fe3e0fb2 set __moduleName from context.id argument 2016-01-29 18:42:23 +02:00
Noj Vek fcd96cb3d8 fix tslint 2016-01-28 23:33:14 -08:00
Noj Vek 238fcbcee9 single iteration through children array without any array allocation 2016-01-28 23:29:08 -08:00
Ron Buckton 4835e43a8f Merge branch 'master' into fixDecoratedClassName 2016-01-28 17:59:04 -08:00
Ron Buckton 0978639ab2 Merge branch 'master' into fixDecoratedClassName 2016-01-28 17:53:56 -08:00
Ryan Cavanaugh 1f503f1b27 Add explicit return undefined; 2016-01-28 16:07:06 -08:00