Wesley Wigham
e41f1ae04d
only check against default flag
2015-11-17 13:03:15 -08:00
Wesley Wigham
21250edb0c
Merge branch 'master' into default-commonjs-es6
2015-11-17 12:55:13 -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
Vladimir Matveev
33fc598a8a
clean residual state in binder and emitter, clean test data in version cache test
2015-11-16 23:24:25 -08:00
Sheetal Nandi
073b69aaf5
Merge branch 'master' into jsFileCompilation
2015-11-16 12:04:42 -08:00
Wesley Wigham
e41bfd1ccc
fix many lints
2015-11-13 17:43:53 -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
521a0a160c
Fix class exports with varrying module emits while targeting es6
2015-11-12 19:03:52 -08:00
Wesley Wigham
e79253a07c
fix handling of decorated default exports on es6 with nones6 modules
2015-11-12 18:27:47 -08:00
Sheetal Nandi
3d6312a1da
Merge pull request #5643 from Microsoft/lambdaSourceMap
...
Fix sourcemap emit for the labda expression that is on another line
2015-11-12 16:09:45 -08:00
Sheetal Nandi
127a30e151
Fix the sourcemap emit of lambda expression without return on another line
...
Handles #5122
2015-11-12 14:15:33 -08:00
Ryan Cavanaugh
f90ef92e7c
Simplify regex a bit
2015-11-12 13:37:03 -08:00
Ryan Cavanaugh
ea29793acd
Quote only names that need to be quoted, not the reverse
2015-11-12 11:02:19 -08:00
Vladimir Matveev
072e93898d
Merge pull request #5535 from Microsoft/computedPropertiesInDestructuringPR
...
allow computed properties in destructuring, treat computed properties…
2015-11-10 13:11:05 -08:00
Vladimir Matveev
9da2d3ee3f
merge with master
2015-11-10 12:22:48 -08:00
Vladimir Matveev
5d9e7e10c0
Merge pull request #5576 from Microsoft/importsInShorthandProps
...
use modulekind to check if initializer for shorthand property assignm…
2015-11-09 14:57:47 -08:00
Vladimir Matveev
6f08e89455
use modulekind to check if initializer for shorthand property assignment should be emitted
2015-11-09 13:34:30 -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
a531610eb9
fix merge issue
2015-11-09 10:46:50 -08:00
Vladimir Matveev
810c45b5fb
Merge branch 'master' into elideExportStarForNonValues
2015-11-09 10:38:38 -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
Vladimir Matveev
572db9c403
merge with master
2015-11-05 14:46:27 -08:00
Vladimir Matveev
2de55febb1
merge with master
2015-11-04 21:49:44 -08:00
Vladimir Matveev
db2b23da00
allow computed properties in destructuring, treat computed properties with literal expressions similar to literal named properties
2015-11-04 15:35:21 -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
Vladimir Matveev
fb15e9c7c0
Merge pull request #4788 from Microsoft/reachabilityChecks
...
initial revision of reachability checks
2015-11-02 14:55:19 -08:00
Wesley Wigham
6de5221dcd
dont mutate
2015-11-02 12:53:27 -08:00
Yui
f503169f8c
Merge pull request #5472 from MartyIX/issue-5183
...
Fix copyright comments are not preserved when generating d.ts files
2015-11-02 11:21:47 -08:00
Nathan Shively-Sanders
cc64210519
Merge pull request #5474 from Microsoft/forbid-this-as-constructor-parameter-type
...
Forbid this as constructor parameter type
2015-11-02 11:04:36 -08:00
Martin Vseticka
1703972dd2
Preserve copyright comments when generating d.ts files
2015-11-02 17:07:16 +01:00
Nathan Shively-Sanders
201266b97f
Switch to isNodeDescendantOf
2015-10-31 12:42:04 -07:00
Daniel Rosenwasser
90bac23be4
Always generate an identifier in a for-of loop.
2015-10-30 15:59:16 -07:00
Sheetal Nandi
2b582a0b71
Simplifty declaration emitter logic by using forEachExpectedEmitFile
2015-10-30 15:04:46 -07:00
Wesley Wigham
95a3fc7143
feedback form pr, new baselines
2015-10-30 14:52:45 -07:00
Sheetal Nandi
06bf08c17f
Simplify logic to get declaration diagnostis
2015-10-30 13:43:52 -07:00
Sheetal Nandi
a0318c7b63
Create a utility to iterate over each emitFileName and use it in emitter
...
TODO: declaration emitter to use this utility
TODO: emit file name compiler option verification to use this utility
2015-10-30 12:54:30 -07:00
Sheetal Nandi
94a647b72b
Do not emit declarations for javascript files
2015-10-30 11:36:39 -07:00
Wesley Wigham
6c812420ec
Merge branch 'master' into out-module-concat
2015-10-30 11:27:34 -07:00
Sheetal Nandi
b217b8b620
Merge branch 'master' into jsFileCompilation
2015-10-30 09:34:32 -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
93cc1e530b
Check source map files are being overwritten
2015-10-28 13:07:35 -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
Vladimir Matveev
dafcf26a06
merge with master
2015-10-27 10:50:18 -07:00
Vladimir Matveev
d2a11b55dc
merge with master
2015-10-27 10:41:21 -07:00
Vladimir Matveev
4dbd04cdeb
Merge pull request #5208 from Microsoft/capturedBlockScopedVars
...
support block scoped vars captured in closures inside loops
2015-10-26 16:58:15 -07:00
Wesley Wigham
8e492a496f
Merge pull request #5370 from weswigham/system-export-var
...
Fix system export var when targeting ES6
2015-10-23 11:20:22 -07:00
Ryan Cavanaugh
bede6edc51
Merge pull request #5366 from RyanCavanaugh/typeOperatorSpacingRule
...
Type operator spacing rule
2015-10-22 16:33:21 -07:00
Wesley Wigham
dfada8ec84
remove es6 check form system module
2015-10-22 14:24:04 -07:00
Ryan Cavanaugh
69236c9be8
Add rule to check spaces around intersection/union type operators
2015-10-22 11:35:48 -07:00
Wesley Wigham
d18facbdc1
fix lint
2015-10-21 15:54:35 -07:00
Wesley Wigham
2fcdb0f700
bit more cleanup
2015-10-21 15:53:59 -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
Ron Buckton
85e587e1d3
Fixes issue in emitExpressionIdentifier when combining --target ES6 with --module.
...
Fixes #5315 .
2015-10-20 10:59:23 -07:00
Wesley Wigham
a83b85870c
Merge branch 'master' into out-module-concat
2015-10-19 17:17:08 -07:00
Vladimir Matveev
d2045a8784
fix typo
2015-10-19 15:51:20 -07:00
Vladimir Matveev
96a4b237ac
Merge branch 'master' into capturedBlockScopedVars
2015-10-19 14:22:25 -07:00
Vladimir Matveev
f279c82409
fix linter issues
2015-10-19 14:21:53 -07:00
Vladimir Matveev
c13c8bf316
addressed PR feedback
2015-10-19 14:10:27 -07:00
Vladimir Matveev
b632b5fdcf
merge with master/address PR feedback
2015-10-16 11:21:32 -07:00
Sheetal Nandi
acf7de7d34
Merge branch 'master' into tscJsFiles
2015-10-15 12:30:55 -07:00
Yui
77eaf04386
Merge pull request #4914 from Microsoft/exponentiation
...
[ES7] Exponentiation
2015-10-12 16:37:45 -07:00
Yui T
90258794a6
Address PR feedback
2015-10-12 14:32:48 -07:00
Sheetal Nandi
b38a81bc73
Emit enabled for JS files
2015-10-12 14:31:44 -07:00
Sheetal Nandi
f28fbfd7c5
Merge branch 'master' into tscJsFiles
2015-10-12 12:51:24 -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
Ryan Cavanaugh
c05297cfea
Merge pull request #5178 from RyanCavanaugh/fix5132
...
Escape quotes when emitting React
2015-10-12 11:56:46 -07:00
Yui T
e405ccebec
fix linter failure
2015-10-12 11:48:38 -07:00
Wesley Wigham
1ae7b7c254
Merge branch 'master' into out-module-concat
2015-10-12 10:21:01 -07:00
Vladimir Matveev
f0ba3f471a
support block scoped vars captured in closures inside loops
2015-10-11 01:12:26 -07:00
Vladimir Matveev
1b5dc0d7d1
Merge pull request #5121 from Microsoft/shorthandPropsInDestructuring
...
parse/check/emit shorthand property assignment in destructuring
2015-10-10 22:39:05 -07:00
Yui T
d57ee1db79
Merge branch 'master' into errorsuperbeforethis
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/types.ts
2015-10-08 23:57:26 -07:00
Yui T
1fc11aa18f
Address PR feedback, add comment
2015-10-08 23:25:05 -07:00
Yui T
5e921c1d8d
Address PR feedback, remove scriptTarget ES7
2015-10-08 17:12:22 -07:00
Yui T
af5dc3e3b3
Address PR feedback. Always emit parentheses around emit capturing
2015-10-08 16:59:49 -07:00
Sheetal Nandi
2c3c321593
Merge branch 'master' into tscJsFiles
2015-10-08 14:40:40 -07:00
Yui T
cd3f711a76
Address PR feedback
2015-10-08 14:38:58 -07:00
Ryan Cavanaugh
d229ae4be5
Escape quotes when emitting React
2015-10-08 11:28:18 -07:00
Anders Hejlsberg
533c4eb0c2
Emit export assignments when target is ES6 and module kind is not ES6
2015-10-08 10:18:14 -07:00
Yui T
3b8cdb684b
Address comment to increment emitCount in separate line
2015-10-07 15:26:09 -07:00
Ron Buckton
f52b7cc2c5
Removed unnecessary check
2015-10-06 15:41:47 -07:00
Yui T
bfaa51b4e9
Add comment and address PR on comment
2015-10-06 14:09:47 -07:00
Ron Buckton
ab73b4f103
Fix linter warnings.
2015-10-06 12:37:10 -07:00
Ron Buckton
64b6c9f52e
Fix emit for ES6 export default class with static initializers. Fixes #5136 .
2015-10-06 12:02:55 -07:00
Yui T
80cdfd4187
Fix emitting parenthesis when downlevel
2015-10-05 18:57:11 -07:00
Sheetal Nandi
b580c5588e
Merge branch 'master' into tscJsFiles
2015-10-05 16:42:37 -07:00
Vladimir Matveev
a975895e4d
parse/check/emit shorthand property assignment in destructuring
2015-10-05 14:39:57 -07:00
Wesley Wigham
d8ec703370
merge with master
2015-10-05 13:25:40 -07:00
Wesley Wigham
05dc9daf7d
concatenated type emit
2015-10-05 13:22:42 -07:00
Wesley Wigham
28475c345d
Change prologue emit location to inside module IIFEs
2015-10-05 11:22:16 -07:00
Vladimir Matveev
32b1ad36ec
do not emit exportsStar function if module does not expose any values
2015-10-04 22:00:57 -07:00
Yui T
5f7914ca62
Downlevel emit
2015-10-02 18:50:45 -07:00
Wesley Wigham
03256e7c86
cusotm tests, forbid umd
2015-10-02 17:43:58 -07:00
Wesley Wigham
4c4087c656
Add compiler error for incompatible module formats
2015-10-02 17:03:29 -07:00
Wesley Wigham
8e409f34c7
new baselines for sourcemaps tests (given that modules can now get emitted into single out)
2015-10-02 13:22:36 -07:00
Wesley Wigham
122753b50a
sourcemap correctness
2015-10-01 19:23:12 -07:00
Ron Buckton
be6e43e108
Merge branch 'master' into es3Decorators
2015-10-01 16:56:25 -07:00
Wesley Wigham
b6a57ea8af
Concatenated module emit fixes up all included paths
2015-10-01 12:44:24 -07:00
Wesley Wigham
7d067890ce
naive change
2015-10-01 11:25:47 -07:00
Wesley Wigham
3fe379ce52
lint harness, disablow control flow analysis because buggy
2015-09-30 15:45:23 -07:00
Ryan Cavanaugh
b2797bbaab
Correctly emit 'as' operator left operand as expression
...
Fixes #4832
2015-09-28 17:24:59 -07:00
Vladimir Matveev
b046c3a570
Merge pull request #4980 from csnover/fix-4952
...
Put AMD dependency list inline with define call in UMD modules
2015-09-28 10:41:23 -07:00
MartyIX
08a494ecbf
Update emitter.ts
...
Proposed fix for #4908
Can anybody confirm if I'm on a right track?
2015-09-28 07:53:15 +02:00
Colin Snover
f3969048c5
Put AMD dependency list inline with define call in UMD modules
...
Fixes #4952 .
2015-09-25 23:57:47 +00:00
Wesley Wigham
8ff551ce08
merge with master
2015-09-21 17:38:56 -07:00
Yui T
072089f0ec
Downlevel emit for **=
2015-09-21 15:43:49 -07:00
Yui T
76ef7b40de
Initial operator. Need to fix the grammar for unaryExpression
2015-09-18 18:31:52 -07:00
Sheetal Nandi
400b353de2
Merge branch 'master' into tscJsFiles
2015-09-18 10:50:30 -07:00
Wesley Wigham
04b0aa269f
s/var/let
2015-09-18 10:29:54 -07:00
Wesley Wigham
8d6cb5fbb5
Feedback from PR
2015-09-17 13:26:04 -07:00
Wesley Wigham
f3062c59fd
style nits
2015-09-17 13:03:47 -07:00
Wesley Wigham
5dfca610f9
When targeting ES3 emit default alias as indexer
2015-09-16 17:33:49 -07:00
Sheetal Nandi
2860435a2e
Do not emit javascript files
2015-09-16 13:18:29 -07:00
Sheetal Nandi
bc48c7c9f0
Merge branch 'master' into tscJsFiles
2015-09-16 11:38:11 -07:00
Wesley Wigham
48ba708e5e
Add es6 module kind, stop using script version to infer it
2015-09-15 15:36:37 -07:00
Daniel Rosenwasser
38b605ea7d
Merge branch 'release-1.6'
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/program.ts
tests/baselines/reference/emptyObjectBindingPatternParameter04.symbols
tests/baselines/reference/emptyObjectBindingPatternParameter04.types
tests/baselines/reference/nodeResolution5.errors.txt
tests/baselines/reference/nodeResolution7.errors.txt
2015-09-15 13:36:08 -07:00
Sheetal Nandi
885babc9bc
Merge branch 'master' into tscJsFiles
2015-09-14 12:40:47 -07:00
Vladimir Matveev
90273f995d
Merge pull request #4749 from Microsoft/systemExportOnlyValues
...
Emit export specifiers in system modules only if export has a value side
2015-09-11 10:21:11 -07:00
Vladimir Matveev
0e5196180e
emit export specifiers in system modules only if export has a value side
2015-09-11 09:38:51 -07:00
Vladimir Matveev
c72469a66f
emit export specifiers in system modules only if export has a value side
2015-09-11 09:36:17 -07:00
Ron Buckton
7610048997
Allow decorators in ES3
2015-09-10 16:27:35 -07:00
Yui
047b6ace6a
Merge pull request #3883 from Microsoft/omitComments
...
Do not emit /// comments when remove comments is specified
2015-09-10 14:34:53 -07:00
Yui T
40f05b7f7d
Address CR
2015-09-10 13:05:51 -07:00
Daniel Rosenwasser
bed25ddf18
Merge pull request #4641 from vilic/cast-expression-parentheses-with-numeric-literal
...
Do not omit parentheses for numeric literal with ".property" if it can not be followed by dot operator directly.
2015-09-10 12:14:49 -07:00
vilicvane
c3323c9a69
Keep parentheses for all numeric literals with property access expression
2015-09-11 03:06:13 +08:00
Vladimir Matveev
ee56e60ca0
do not emit '=' in jsx attribute if initializer is missing
2015-09-10 11:39:06 -07:00
Sheetal Nandi
fad0db2a0b
Report error if output file is among the input files
2015-09-10 09:44:14 -07:00
Daniel Rosenwasser
96a815878c
Merge pull request #4657 from Microsoft/emptyVariableDeclarationBindingPattern
...
Fix emitted code for variable statement with no bound variables
2015-09-09 16:47:45 -07:00
Vladimir Matveev
83214150f8
do not emit '=' in jsx attribute if initializer is missing
2015-09-08 18:40:30 -07:00
Daniel Rosenwasser
5297a7f319
Ensure that zero-element binding patterns don't try to reuse assigned identifiers.
2015-09-04 17:53:56 -07:00
vilicvane
8d45711395
Else on the next line
2015-09-05 06:43:37 +08:00
vilicvane
856f2d895c
Fix issue #4603
2015-09-04 21:47:28 +08:00
Sheetal Nandi
5f78d39662
If Type annotation is missing, emit design:Type as Object
...
Fixes #4549
2015-09-01 13:46:44 -07:00
Yui T
1854adb56b
address PR
2015-08-31 20:33:02 -07:00
Ryan Cavanaugh
90aff0c654
Use synthetic identifier during emit instead
2015-08-28 14:00:36 -07:00
Ryan Cavanaugh
0e4fdf8373
Use synthetic identifier during emit instead
2015-08-26 16:12:50 -07:00
Ryan Cavanaugh
c68fc53e37
Correctly emit imported 'React' references in JSX.
...
Fixes bug #4422
2015-08-26 13:26:51 -07:00
Mohamed Hegazy
f3d36616b7
Merge branch 'init' of https://github.com/tinganho/TypeScript into tinganho-init
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/types.ts
2015-08-25 14:23:41 -07:00
Yui T
cb8ad4f134
Merge branch 'master' into omitComments
...
Conflicts:
src/compiler/emitter.ts
2015-08-25 14:03:21 -07:00
Yui T
e36285c82c
Optimize removing comment when removeComment flag is true
2015-08-25 13:47:02 -07:00
Sheetal Nandi
979e2bf7c4
Write synthesized node's text property instead of getting text from source file
...
This fixes issue of not being able to emit qualified expression correctly
2015-08-24 12:06:21 -07:00
Sheetal Nandi
1ca28b739e
Merge pull request #4402 from Microsoft/metadataTypeName
...
Instead of writing text from source file use text property to write t…
2015-08-24 10:59:05 -07:00
Ryan Cavanaugh
27dabe49e0
Merge remote-tracking branch 'upstream/master' into fix4376_2
...
# Conflicts:
# src/compiler/emitter.ts
2015-08-21 14:49:48 -07:00
Ryan Cavanaugh
65f4ac6d6f
Merge pull request #4381 from RyanCavanaugh/fix4125
...
Convert HTML entities to strings (#4125 )
2015-08-21 13:30:09 -07:00
Sheetal Nandi
060dbd24f4
Instead of writing text from source file use text property to write text of synthesized node
...
Fixes #4364
2015-08-21 13:10:30 -07:00
Mohamed Hegazy
b395fb9f45
Merge branch 'master' into outFile
...
Conflicts:
src/harness/fourslash.ts
2015-08-20 17:46:38 -07:00
Mohamed Hegazy
00cd8ad745
Add --outFile and revert change make --out relative in tsconfig.json
2015-08-20 17:37:56 -07:00
Yui T
c88908e300
Add comments
2015-08-20 16:29:55 -07:00
Yui T
eda9aead11
Add comments
2015-08-20 16:21:58 -07:00
Mohamed Hegazy
2a751abe4e
Merge pull request #4371 from Microsoft/emitOutputForTsx
...
Emit tsx files correctly in getEmitOutput calls
2015-08-20 15:12:22 -07:00
Yui T
3f66968776
Only preseve pinned comment at the top of file
2015-08-20 15:01:59 -07:00
Ryan Cavanaugh
6eca09b062
Handle non-entities as well
2015-08-20 12:30:12 -07:00
Ryan Cavanaugh
16e72971d9
Add comments
2015-08-20 12:23:27 -07:00
Ryan Cavanaugh
67f81bc53c
Convert HTML entities to strings ( #4125 )
2015-08-20 12:20:28 -07:00
Ryan Cavanaugh
f659c9098c
Fix React whitespace emit #4376
2015-08-20 11:38:03 -07:00
Yui T
21ebc71325
Don't emit detached comment if removeComment is true
2015-08-20 09:47:45 -07:00
Mohamed Hegazy
f95fcf9671
Emit tsx files correctelly in getEmitOutput calls
2015-08-19 22:18:32 -07:00
Yui T
5d15218cbe
Remove /// comment when removeComment is true
2015-08-19 16:19:17 -07:00
Vladimir Matveev
4a829572be
added tests
2015-08-19 15:37:37 -07:00
Sheetal Nandi
ebe7ca75a6
Merge branch 'master' into sourcemap
2015-08-17 11:26:49 -07:00
Vladimir Matveev
cbb2425ccd
addressed PR feedback
2015-08-17 10:37:44 -07:00
Vladimir Matveev
7e8cfa0859
allow transpiler to provide alternative names for dependencies
2015-08-14 13:00:41 -07:00
Yui T
7950cc7ca3
Merge branch 'master' into omitComments
...
Conflicts:
src/compiler/emitter.ts
src/compiler/scanner.ts
2015-08-13 11:01:20 -07:00
Yui
f92aa8681a
Merge pull request #4230 from Microsoft/commentsNotPreserveForCallExp
...
Preserve comments on parameters in call expressions
2015-08-12 18:54:34 -07:00
Yui T
6adf7feb5e
Remove asterisks
2015-08-12 17:52:36 -07:00
Yui T
732376a73b
Merge branch 'master' into commentsNotPreserveForCallExp
2015-08-12 17:46:39 -07:00
Yui T
c0801b1388
Add asterisks
2015-08-12 17:46:24 -07:00
Yui T
86b104133f
Fix comments
2015-08-10 17:34:39 -07:00
Vladimir Matveev
586abacec4
Merge pull request #4179 from Microsoft/exportDeclarationsInSystem
...
emit export declarations for system modules as a part of 'execute' me…
2015-08-10 13:59:45 -07:00
Vladimir Matveev
7ecaea3926
addressed PR feedback
2015-08-10 13:51:54 -07:00
Yui T
673e741f57
Add comments to do clean-up
2015-08-07 16:30:16 -07:00
Yui T
01667eff1c
Preserve comment in arguments of call expression and object literal
2015-08-06 17:20:35 -07:00
Vladimir Matveev
02539d91e2
deduplicate module dependencies
2015-08-06 16:38:53 -07:00
Ron Buckton
f0458f4e60
Merge branch 'master' into fixTypeResolutionInTypeSerialization
2015-08-06 15:45:24 -07:00
Vladimir Matveev
eab6911bce
emit export declarations for system modules as a part of 'execute' method
2015-08-05 21:45:04 -07:00
Daniel Rosenwasser
2b8ef5e6fd
Merge pull request #4008 from weswigham/fix-many-linter-errors
...
Fix as many linter errors as possible
2015-08-05 17:09:46 -07:00
Vladimir Matveev
fd46d205f9
addressed PR feedback, added more tests
2015-08-05 10:36:47 -07:00
Vladimir Matveev
c2fe8428a9
emit space before the dot for property/element access expressions if expression part is integer const enum
2015-08-05 00:02:29 -07:00
Wesley Wigham
91f034669d
Conform lint of the future, unify quotations
2015-08-04 13:33:01 -07:00
Wesley Wigham
5a6d476797
Fix as many linter errors as possible
2015-08-04 13:31:25 -07:00
basarat
5fcf3d7c90
emit shebang
2015-08-02 12:24:18 +10:00
Sheetal Nandi
bfc4dd14da
Emit the helpers inside the module body
...
Fixes #3655
2015-07-31 11:55:08 -07:00
Ryan Cavanaugh
7e9e920d1e
Merge pull request #4079 from RyanCavanaugh/fixJsxSourceMaps
...
Correctly emit source maps when emitting JSX text under --jsx preserve
2015-07-30 22:11:14 -07:00
Daniel Rosenwasser
7c90d6251c
Style and rename test.
2015-07-30 11:22:58 -07:00
Sheetal Nandi
00e9173505
Fixed the comments and source map emit interaction.
...
Fixes #4003
2015-07-30 11:11:36 -07:00
Mohamed Hegazy
4b55d38645
Merge pull request #3935 from pcan/issue_3932
...
Added null-check in 'emitSerializedTypeNode'
2015-07-30 10:44:23 -07:00
Ryan Cavanaugh
da35fef88e
Correctly emit source maps when emitting JSX text under --jsx preserve
2015-07-29 14:27:41 -07:00
Tingan Ho
db6e46df12
Removes trailing comma logic and fixes default values
2015-07-29 10:26:18 +08:00
Ryan Cavanaugh
9f7e71d9e8
Merge remote-tracking branch 'upstream/master' into fix4060
...
Conflicts:
src/compiler/emitter.ts
2015-07-28 15:32:53 -07:00
Ryan Cavanaugh
da39a8be10
Don't forget about spread attributes
2015-07-28 15:31:39 -07:00
Ryan Cavanaugh
fc9b10eeb6
Correctly identify JSX expressions as identifier parents
2015-07-28 13:49:39 -07:00
Arthur Ozga
a95f608f1d
Merge branch 'master' into removeForLoop
2015-07-27 13:17:18 -07:00
Tingan Ho
5daf3f1101
Defaults to no files property
2015-07-27 20:18:21 +08:00
Tingan Ho
38f4c2dc8d
Adds project init
2015-07-27 19:52:57 +08:00
pcan
bcf89e89e6
Invert null-check in emitSerializedTypeNode
2015-07-25 09:13:31 +02:00
Ryan Cavanaugh
8fcca92e4e
Merge pull request #3955 from RyanCavanaugh/fix3928
...
Correctly identify identifiers inside JSX exprs as expression identifiers
2015-07-22 10:27:55 -07:00
Vladimir Matveev
4259417821
hoist top level import equals declarations in System modules
2015-07-21 15:56:30 -07:00
Ryan Cavanaugh
4ac078be0e
Remove debugger statement
2015-07-21 12:32:24 -07:00
Ryan Cavanaugh
d86fd85bd5
Correctly identify identifiers inside JSX exprs as expression identifiers
2015-07-21 11:35:05 -07:00
Vladimir Matveev
d057f56d8c
Merge pull request #3945 from Microsoft/bulkReexportInSystem
...
System: use batching when doing star exports
2015-07-21 10:52:38 -07:00
Yui T
880202d982
Clean up some code
2015-07-21 09:05:56 -07:00
Jason Freeman
4e0acc9fc1
Merge pull request #3586 from vvakame/addEsModule
...
improve module loading interoperability for babel
2015-07-20 23:52:38 -07:00
Vladimir Matveev
22961e5240
System: use bulk exports
2015-07-20 22:40:22 -07:00
pcan
fa643b110c
Fix for issue #3932 . Moved the null-check in emitSerializedTypeNode
2015-07-20 21:27:28 +02:00
pcan
82933ef680
Fix for issue #3932 , added null-check.
2015-07-20 20:58:35 +02:00
Yui T
d11fc48066
Only remove triple-slash if it is not at top of file
2015-07-20 09:55:04 -07:00
Arthur Ozga
4e8203d295
fixed a comment
2015-07-17 10:48:54 -07:00
Arthur Ozga
005b8583f5
remove for-loops
2015-07-17 10:33:07 -07:00
Daniel Rosenwasser
0bdc79fbb8
Only emit the RHS in an empty assignment pattern.
2015-07-16 17:40:07 -07:00
Ron Buckton
b620cace92
Fixes an issue when resolving a type name as an expression when emitting type metadata for decorators
2015-07-16 15:13:31 -07:00
Mohamed Hegazy
4cd7f079e3
Move startIndex declaration to the top
2015-07-15 16:43:13 -07:00
Yui T
87c1c6573c
Only remove triple-slash when compilerOptions.removecomments is true
2015-07-15 11:49:27 -07:00
vvakame
a512e9eeae
PR feedback
2015-07-16 03:05:10 +09:00
shyyko.serhiy@gmail.com
12809125f8
added comment
2015-07-14 17:21:47 +03:00
shyyko.serhiy@gmail.com
1066f0e3cc
fixed issue #3454
2015-07-14 15:28:05 +03:00
vvakame
86d106aff0
PR feedback
2015-07-11 20:55:27 +09:00
vvakame
75466e6321
Merge branch 'master' into addEsModule
2015-07-11 18:10:13 +09:00
Ron Buckton
bba6d1e564
Added type serialization for intersection types
2015-07-10 13:56:00 -07:00
Ron Buckton
a894f04495
Merge branch 'master' into moveTypeSerializationToEmitter
2015-07-10 13:18:56 -07:00
Ron Buckton
990ce29c00
PR feedback
2015-07-10 13:13:42 -07:00
Dan Quirk
1a3dbc0a5f
Final CR feedback fixes
2015-07-09 18:07:48 -07:00
Dan Quirk
27f5bf10de
CR feedback
2015-07-09 14:44:47 -07:00
Dan Quirk
be1371d3cd
Merge master
2015-07-08 15:35:49 -07:00
Ron Buckton
4b4a96b9dc
Merge branch 'master' into asyncFunctions
2015-07-01 09:27:45 -07:00
Ron Buckton
739f5f25cf
Adds additional logic to determine how to emit a type reference for decorator metadata
2015-06-30 20:19:25 -07:00
Ron Buckton
9eab88570f
Moves type serialization to the emitter.
2015-06-30 19:02:35 -07:00
Ryan Cavanaugh
1d09c6e9c1
Don't use ES5 array APIs
2015-06-29 09:37:40 -07:00
Ryan Cavanaugh
634d35a7d0
Merge remote-tracking branch 'upstream/master' into jsxAndAs
...
Conflicts:
src/compiler/checker.ts
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/services/services.ts
2015-06-29 09:23:44 -07:00
Ryan Cavanaugh
042f1fc4a8
Update for style 🎩
2015-06-29 09:07:12 -07:00
Ryan Cavanaugh
306de4d681
CR feedback
2015-06-26 14:18:51 -07:00
vvakame
e9d590f634
PR feedback
2015-06-27 02:40:05 +09:00
Dan Quirk
cd48d8181a
Fix build errors due to naive var->let replacement
2015-06-25 18:23:28 -07:00
Dan Quirk
d4403df35e
var -> let
2015-06-25 17:36:19 -07:00
Dan Quirk
ed1ff3d57d
Fixing up whitespace and semicolons
2015-06-25 16:24:41 -07:00
Mohamed Hegazy
b754cc1c73
Merge branch 'jbondc-minor-3'
2015-06-24 15:02:41 -07:00
Mohamed Hegazy
14f7dd02d7
Revert changes to the parser and augment check to the emitter to handel '1..toString' case
2015-06-24 15:02:20 -07:00
Daniel Rosenwasser
3d8650cd0a
Merge pull request #3601 from Microsoft/emptyBindingPatternParam
...
Emit valid code when a parameter's binding pattern has no elements
2015-06-24 16:50:27 -04:00
Mohamed Hegazy
464f65533e
Merge branch 'minor-3' of https://github.com/jbondc/TypeScript into jbondc-minor-3
2015-06-24 12:59:06 -07:00
jbondc
da1bc6bac8
Don't report an error for 1.toString(), just emit a space for JS compat.
2015-06-24 10:56:23 -04:00
Anders Hejlsberg
c5567490c6
Merge pull request #3568 from Microsoft/classExpressions
...
Class expressions
2015-06-23 17:21:35 -07:00
Daniel Rosenwasser
60ed259a90
Preserve initializer.
2015-06-23 15:05:33 -07:00
Ryan Cavanaugh
b3ca00986f
Merge remote-tracking branch 'upstream/master' into jsxAndAs
2015-06-22 22:41:41 -07:00
Daniel Rosenwasser
0f871b9812
Check for number of binding elements in parameter patterns.
2015-06-22 16:44:13 -07:00
Daniel Rosenwasser
db316b94d8
p -> parameter
2015-06-22 14:41:35 -07:00
Ryan Cavanaugh
16c834420c
More cleanup
2015-06-22 13:55:09 -07:00
Ryan Cavanaugh
e448d8b932
Treat </ as a token in TSX files
2015-06-22 11:53:38 -07:00
vvakame
3aba5aa9b5
do not use Object.defineProperty
in es3 target
2015-06-22 10:46:45 +09:00
vvakame
54a4e9e57d
improve module loading interoperability for babel
2015-06-21 16:15:21 +09:00
Ron Buckton
5b32903ab4
Fix async function emit for lexical arguments
2015-06-19 16:01:12 -07:00
Ryan Cavanaugh
388e73f49f
Fix React emit for spread attributes when they are the first attribute
2015-06-19 11:30:34 -07:00
Ryan Cavanaugh
b0750c25b2
Fix emit for boolean attributes
2015-06-18 18:37:32 -07:00
Jason Freeman
111fdcb499
Merge branch 'release-1.5'
...
Conflicts:
src/compiler/emitter.ts
src/compiler/parser.ts
src/compiler/program.ts
src/services/services.ts
tests/cases/unittests/transpile.ts
2015-06-18 15:06:03 -07:00
Anders Hejlsberg
413f278424
Generate names of form class_N for anonymous classes
2015-06-18 14:17:13 -07:00
Ryan Cavanaugh
f5336db82a
Emitter for JSX
2015-06-18 14:01:49 -07:00
Ron Buckton
2891a1d1b7
Cleaned up async return type check
2015-06-18 11:31:03 -07:00
Anders Hejlsberg
33b0a5633e
Merge pull request #3524 from Microsoft/extendsNull
...
Support null in __extends helper
2015-06-17 13:15:22 -07:00
Arthur Ozga
1d5dcf0d0c
changes that are non-breaking
2015-06-16 15:39:34 -07:00
Anders Hejlsberg
3b5d73f5ce
Use Object.create(null) in __extends when base is null
2015-06-16 12:13:18 -07:00
Ron Buckton
5ebad5889c
Merge branch 'master' into asyncFunctions
2015-06-15 11:47:15 -07:00
Mohamed Hegazy
224e7630ea
use namespaces instead of modules in the codebase
2015-06-12 09:01:48 -07:00
Vladimir Matveev
1f587069da
Merge pull request #3434 from Microsoft/port-3433
...
Port PR 3433 into release 1.5
2015-06-11 14:24:29 -07:00
Ron Buckton
c259d7e172
Merge pull request #3455 from weswigham/asyncFunctions
...
Emit awaiter arguments on new line
2015-06-10 12:35:14 -07:00
Ron Buckton
6fc07e65f5
Merged branch 'master' into asyncFunctions
2015-06-10 12:31:35 -07:00
Daniel Rosenwasser
13ed900e66
Encode compiler files as UTF8.
2015-06-09 14:58:56 -07:00
Wesley Wigham
02557b1403
Emit awaiter arguments on new line
2015-06-09 14:50:46 -07:00
Anders Hejlsberg
8e096d50b9
Merge branch 'master' into emitterNameRewriting
...
Conflicts:
src/compiler/types.ts
2015-06-09 06:56:45 -07:00
Anders Hejlsberg
7b67ac243c
Addressing CR feedback
2015-06-09 06:48:20 -07:00
Vladimir Matveev
185b2aff08
added missing semicolon
2015-06-08 22:46:59 -07:00
Vladimir Matveev
26a1ed6017
move temp declarations out of object literal
2015-06-08 19:52:55 -07:00
Vladimir Matveev
364cd1146b
move temp declarations out of object literal
2015-06-08 18:31:56 -07:00
Vladimir Matveev
7c8a50336d
emit module name for system modules, add moduleName argument to 'transpile' function
...
Conflicts:
src/services/services.ts
2015-06-04 22:37:52 -07:00
Vladimir Matveev
6269598c52
Merge branch 'master' into named_modules
2015-06-04 21:38:25 -07:00
Vladimir Matveev
e34d28f530
added missing semicolon after calling exporter function
2015-06-04 12:30:19 -07:00
Ron Buckton
72a6865f93
Updated emit to align with current proposal for ES7 async functions
2015-06-04 12:08:09 -07:00
Ron Buckton
9560d6f1e9
Merge branch 'master' into asyncFunctions
2015-06-04 11:53:51 -07:00
Vladimir Matveev
d51d616813
merge with master
2015-06-04 10:57:34 -07:00
Vladimir Matveev
b76cc37560
added missing semicolon after calling exporter function
2015-06-04 10:52:43 -07:00
Anders Hejlsberg
f3e6f5ba1f
Removing getGeneratedNameForNode from type serializers
2015-06-04 07:16:06 -07:00
Jason Freeman
abf18c5a11
Merge branch 'release-1.5'
2015-06-03 17:56:53 -07:00
Jason Freeman
e940fdc534
Don't use innerExpression in parenthesizeForAccess
2015-06-03 17:34:56 -07:00
Jason Freeman
4ccf088734
Don't try to strip parentheses when emitting synthesized parenthesized expressions
2015-06-03 17:22:11 -07:00
Vladimir Matveev
7e3a3f45e1
emit module name for system modules, add moduleName argument to 'transpile' function
2015-06-03 14:55:42 -07:00
Anders Hejlsberg
334b22452a
Moving logic around in getReferencedImportDeclaration
2015-06-03 10:59:14 -07:00
Anders Hejlsberg
1e39130f41
Unified logic for renamed block scoped locals and other generated names
2015-06-03 06:57:20 -07:00
Cyrus Najmabadi
7ef2cfeaeb
Simple changes to the compiler to make the jsDoc work easier.
2015-06-02 16:05:01 -07:00
Anders Hejlsberg
8b7caedbec
Remove EmitResolver.getExpressionNameSubstitution
...
Add EmitResolver.getReferencedExportContainer
Add EmitResolver.getReferencedImportDeclaration
Clean up getGeneratedNameForNode in emitter.ts
Switch isNotExpressionIdentifier to isExpressionIdentifier in emitter.ts
Revise emitExpressionIdentifier in emitter.ts
2015-06-02 10:45:50 -07:00
Ron Buckton
f96cf338d9
Merge branch 'release-1.5' into master
2015-06-01 17:40:35 -07:00
Ivo Gabe de Wolff
3bfc5359ad
emitWithStatement should emit a WithStatement
2015-05-21 22:02:02 +02:00
Ron Buckton
b5df4b1653
Merge branch 'master' into asyncFunctions
2015-05-20 17:28:44 -07:00
Mohamed Hegazy
5ea2cea95d
Merge pull request #3208 from Microsoft/updateSingleCompilationFlagName
...
Update singleCompilation flag name to isolatedModules
2015-05-19 13:54:49 -07:00
Vladimir Matveev
eaee9ec600
Merge pull request #3223 from Microsoft/port-3109
...
Port PR 3109 into release 1.5
2015-05-19 11:03:46 -07:00
Vladimir Matveev
409dddc2f3
do not hoist ambient declarations
2015-05-19 10:31:09 -07:00
Vladimir Matveev
c828bcb0c7
addressed PR feedback
2015-05-19 10:28:40 -07:00
Vladimir Matveev
546330ed7d
correct typos
2015-05-19 10:28:20 -07:00