Commit Graph

90 Commits

Author SHA1 Message Date
vladima
7cef1efb4e merge with origin/master 2016-01-11 22:12:03 -08:00
Vladimir Matveev
7f2ebf928a use 'declare global' to define augmentations for the global scope 2015-12-28 12:03:54 -08:00
Nathan Shively-Sanders
abf9961528 Merge branch 'master' into lint-nested-++ 2015-12-22 16:12:07 -08:00
Nathan Shively-Sanders
401a393519 Fix ++/-- lint 2015-12-22 15:45:00 -08:00
Vladimir Matveev
4a963a26c3 initial revision of external module augmentations 2015-12-22 13:56:22 -08:00
Daniel Rosenwasser
80c7f3a529 Removed unused declarations from 'declarationEmitter.ts'. 2015-12-17 14:39:20 -08:00
Anders Hejlsberg
5ab5338574 Fix declaration emitter scoping issue for type parameter constraints 2015-12-10 13:55:57 -08:00
Sheetal Nandi
acedf3c247 Do not emit files if noEmit is specified
Handles #5799
2015-11-30 12:46:53 -08:00
Wesley Wigham
d1c467ff4d Merge branch 'master' into use-common-directory-for-out 2015-11-25 16:41:58 -08:00
Ron Buckton
8909c3a2dd Merge pull request #5725 from Microsoft/stringTypesCleanup
Disambiguate string literal types from other string literals.
2015-11-24 15:23:25 -08:00
Wesley Wigham
b11786866b Merge branch 'master' into use-common-directory-for-out 2015-11-20 13:32:12 -08:00
Ron Buckton
f5b8619199 Adds StringLiteralType to SyntaxKind to disambiguate string literals in a type position. 2015-11-19 17:08:51 -08:00
Sheetal Nandi
883b8d9347 Merge pull request #5471 from Microsoft/jsFileCompilation
Compilation of Js Files
2015-11-19 16:30:40 -08:00
Sheetal Nandi
5ac6eb2d79 PR feedback 2015-11-18 10:48:03 -08:00
Ron Buckton
443abe6dea Adds ThisType to SyntaxKind, to distinguish between a 'this' expression and a 'this' type. Needed for transforms 2015-11-17 10:53:29 -08:00
Wesley Wigham
78e7804668 handle things more rightly 2015-11-13 15:46:48 -08:00
Wesley Wigham
cb1724bd44 in declaration emit, handle = require (again) 2015-11-13 15:26:38 -08:00
Sheetal Nandi
fc07763499 Merge branch 'master' into jsFileCompilation 2015-11-13 13:44:57 -08:00
Wesley Wigham
977c3eec22 fix lints 2015-11-09 12:50:38 -08:00
Wesley Wigham
cadf54334b Merge branch 'master' into out-module-concat 2015-11-09 12:38:23 -08:00
Vladimir Matveev
45746d11a6 make emitter singleton, replace reading file properties with local access, use one constructor function for all nodes 2015-11-06 16:21:43 -08:00
Sheetal Nandi
4c842591f7 Merge branch 'master' into jsFileCompilation 2015-11-06 12:39:42 -08:00
Wesley Wigham
8a93b48945 fix lint: prefer const 2015-11-04 14:51:36 -08:00
Wesley Wigham
6f9702112f Merge branch 'master' into out-module-concat 2015-11-02 16:57:07 -08:00
Wesley Wigham
265fb518a8 feedback from CR 2015-11-02 16:54:12 -08:00
Wesley Wigham
6de5221dcd dont mutate 2015-11-02 12:53:27 -08:00
Martin Vseticka
1703972dd2 Preserve copyright comments when generating d.ts files 2015-11-02 17:07:16 +01:00
Sheetal Nandi
2b582a0b71 Simplifty declaration emitter logic by using forEachExpectedEmitFile 2015-10-30 15:04:46 -07:00
Sheetal Nandi
06bf08c17f Simplify logic to get declaration diagnostis 2015-10-30 13:43:52 -07:00
Sheetal Nandi
94a647b72b Do not emit declarations for javascript files 2015-10-30 11:36:39 -07:00
Sheetal Nandi
fdb7a3e452 Revert the change to block declaration emit in case of syntax or semantic errors 2015-10-28 16:52:05 -07:00
Sheetal Nandi
ff933be5ff Populate if emit was skipped correctly as part of emit result 2015-10-28 13:07:50 -07:00
Sheetal Nandi
c26d2da572 Do not emit declarations file if we reported error about inaccessible This type 2015-10-28 13:07:27 -07:00
Sheetal Nandi
3215438ddf Dont emit declaration file if there are errors in the source file 2015-10-28 13:06:52 -07:00
Wesley Wigham
c165be8b3a change triple-slash ref emit critaera, add a new tests and accept new baselines 2015-10-21 17:36:49 -07:00
Wesley Wigham
255cde582d remove assertion 2015-10-21 16:15:53 -07:00
Wesley Wigham
3f52686974 cleanup a bit, think toward the future 2015-10-21 15:37:58 -07:00
Wesley Wigham
37bc2773a3 feedback form pr 2015-10-21 15:27:33 -07:00
Wesley Wigham
7a4e995f01 feedback form pr 2015-10-20 15:14:18 -07:00
Sheetal Nandi
b38a81bc73 Emit enabled for JS files 2015-10-12 14:31:44 -07:00
Sheetal Nandi
5e14edb4b7 Verify the emit file name is unique and doesnt overwrite input file
Fixes #4424
2015-10-12 12:25:13 -07:00
Sheetal Nandi
f7b72047f0 Remove extension for emitting output should remove any of supported extensions + js/jsx to get the dts file 2015-10-08 14:26:40 -07:00
Sheetal Nandi
b580c5588e Merge branch 'master' into tscJsFiles 2015-10-05 16:42:37 -07:00
Wesley Wigham
6c1f3effcb m'lint 2015-10-05 14:14:00 -07:00
Wesley Wigham
d07e33dd98 Correct output, accept new baselines 2015-10-05 14:06:34 -07:00
Wesley Wigham
05dc9daf7d concatenated type emit 2015-10-05 13:22:42 -07:00
Wesley Wigham
b95e1ff6d8 This is what zero linter errors feels like 2015-09-30 16:10:52 -07:00
Anders Hejlsberg
24f906a143 Error when emitted type in declaration file references inaccessible 'this' 2015-09-29 15:15:30 -07:00
Anders Hejlsberg
8fd2d7a7db Properly emit "this" type in declaration files 2015-09-25 14:07:24 -07:00
Sheetal Nandi
60e15b267d Report error when emitting declarations if the reference is to .js file 2015-09-16 15:11:11 -07:00