Kagami Sascha Rosylight
f65c865957
Merge branch 'master' of https://github.com/SaschaNaz/TypeScript into formatDestruct
2016-12-22 11:04:06 +09:00
Kagami Sascha Rosylight
82be6d1746
Format destructuring by brace format option
2016-12-22 11:03:20 +09:00
Mohamed Hegazy
c563e83c99
Merge pull request #13092 from SaschaNaz/jsxdangling
...
Format JSX expression and closing token
2016-12-21 16:43:35 -08:00
Nathan Shively-Sanders
e8b3ff0a1a
Merge pull request #12694 from Microsoft/destructuring-initialisers-can-reference-previous-elements
...
Binding element initialisers can reference previous elements
2016-12-21 16:29:44 -08:00
Kagami Sascha Rosylight
784f29bc83
merge conflict
2016-12-22 09:00:31 +09:00
Nathan Shively-Sanders
3b1309d53f
Test parameter initialisation narrowing rules
2016-12-21 14:58:44 -08:00
Sheetal Nandi
0c2cce565c
Merge pull request #13103 from Microsoft/metadataOfClassFromModule
...
Update current scope when visiting namespace elements
2016-12-21 13:59:31 -08:00
Sheetal Nandi
74a9924db7
Merge pull request #13100 from Microsoft/unusedLocalsInSpread
...
Do not report error on unused removed property from object spread when its module member
2016-12-21 13:59:05 -08:00
Sheetal Nandi
32c477a448
Test case for metadata type of class from a module
2016-12-21 12:28:29 -08:00
Sheetal Nandi
4cbb50a00c
Merge pull request #13034 from Microsoft/unionWithNull
...
Add serialization of typenode for null/undefined/never as part of metadata type
2016-12-21 12:21:55 -08:00
Mohamed Hegazy
e9da643518
Merge pull request #13090 from SaschaNaz/maptype
...
Format mapped type
2016-12-21 11:08:10 -08:00
Nathan Shively-Sanders
6281d1dd18
Merge pull request #12982 from Microsoft/jsdoc-instantiate-signature-with-function-arg
...
JSDoc functions are now in scope for instantiation
2016-12-21 10:42:11 -08:00
Vladimir Matveev
330cceda17
cache results of module resolution for non-relative module names ( #13047 )
...
* cache results of module resolution for non-relative module names
* use cache to short-circuit failures
2016-12-21 10:02:28 -08:00
Sheetal Nandi
32568b3fc2
Test case when module member is object spread pattern
2016-12-21 09:45:04 -08:00
Kagami Sascha Rosylight
ba7c1a13c3
do not insert space after function expressions
2016-12-21 21:54:40 +09:00
Kagami Sascha Rosylight
c28625f45b
merge conflict
2016-12-21 21:03:43 +09:00
Kagami Sascha Rosylight
f4c33aaec4
indent inside mapped type
2016-12-21 21:01:47 +09:00
Mohamed Hegazy
c90af3aa94
Merge pull request #13045 from aochsner/fix-12234
...
space-before-function-paren
2016-12-20 16:13:19 -08:00
Daniel Rosenwasser
6c60bfc4f0
Merge pull request #13072 from DanCorder/fix12218
...
Fix formatting for 'readonly' properties and linter error
2016-12-20 16:10:16 -08:00
Mohamed Hegazy
328a5ef2ba
Merge pull request #13024 from Microsoft/package_json_unsupported_extension
...
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-20 15:44:37 -08:00
Dan Corder
dc94264220
Fix issue 12218 and linter error
2016-12-20 22:32:37 +00:00
Anders Hejlsberg
e569edd8e6
Add regression test
2016-12-20 10:27:34 -08:00
Andrew Ochsner
3b3d71542c
Add InsertSpaceAfterConstructor option & additonal test cases
...
Fixes #12234
2016-12-20 10:05:10 -06:00
Andrew Ochsner
7bf73be7fe
space-before-function-paren
...
Adding option InsertSpaceBeforeFunctionParenthesis
Should be optional
Typically used to support http://eslint.org/docs/rules/space-before-function-paren
Fixes #12234
2016-12-19 23:05:30 -06:00
Sheetal Nandi
73a829279a
Support union of non identifier serialized type node with null/undefined/never
2016-12-19 16:50:17 -08:00
Sheetal Nandi
59403796c7
Add serialization of typenode for null/undefined/never as part of metadata type
...
Fixes #12684 and #11933
2016-12-19 14:17:42 -08:00
Mohamed Hegazy
8ae0376e75
Merge pull request #13016 from arusakov/disallow_old_style_octal_literal_types
...
Disallow old style octal literal types
2016-12-19 13:58:20 -08:00
Vladimir Matveev
0649c2272c
cache per-folder module resolutions during construction of the program ( #13030 )
2016-12-19 13:48:45 -08:00
Ron Buckton
87eeb577a3
Merge branch 'master' into asyncGenerators
2016-12-19 11:51:52 -08:00
Ron Buckton
5f32d3ba03
Merge branch 'master' into es6-new-target
2016-12-19 11:39:33 -08:00
Andy Hanson
720a3bfa16
Skip files from package.json "main" or "types" if they have an unsupported extension.
2016-12-19 08:10:05 -08:00
arusakov
142a6f6420
Disallow old style octal literal types
2016-12-19 11:49:01 +03:00
Anders Hejlsberg
f834caf27a
Add tests
2016-12-16 15:01:34 -08:00
Nathan Shively-Sanders
739c0838e0
More tests of initialised parameters adding undefined
2016-12-16 13:40:16 -08:00
Nathan Shively-Sanders
8b29e8235f
Merge branch 'master' into add-undefined-to-default-valued-parameters
2016-12-16 10:03:01 -08:00
Nathan Shively-Sanders
8ae9c7de21
JSDoc functions are now in scope for instantiation
...
Previously, `isSymbolInScopeOfMappedTypeParameter` did not understand
JSDoc, so it would cause generic function declarations in JSDoc not be
instantiated.
2016-12-16 09:49:29 -08:00
Ron Buckton
0f78f53780
Merge pull request #12967 from Microsoft/fix12749
...
Do not transform JSX tag names for ES3
2016-12-15 20:50:02 -08:00
Ron Buckton
40d08df90b
Do not transform JSX tag names for ES3
2016-12-15 16:33:49 -08:00
Vladimir Matveev
f034022e25
lift multiple statements into block if necessary ( #12965 )
2016-12-15 16:31:50 -08:00
Anders Hejlsberg
8265e29038
Merge pull request #12927 from Microsoft/mappedTypesPropsAndIndex
...
Preserve declared properties when mapping types with index signatures
2016-12-14 15:23:29 -08:00
Anders Hejlsberg
6cd7454a9b
Add tests
2016-12-14 14:59:10 -08:00
Daniel Rosenwasser
8e94d84953
Merge pull request #12893 from Microsoft/capturedThisFix
...
Avoid replacing last statement of derived constructors if 'this' is referenced.
2016-12-14 13:31:08 -08:00
Daniel Rosenwasser
dd0a3809d6
Added a tests for super property accesses within super calls of derived classes.
2016-12-14 12:48:02 -08:00
jramsay
2e97cffe61
Merge pull request #12898 from Microsoft/NavigateToFixForIIFE
...
NavigateTo is not working correctly for declarations in IIFEs
2016-12-14 10:56:44 -08:00
Arthur Ozga
3fc94bbd3b
Rename Tests
2016-12-14 10:38:00 -08:00
Arthur Ozga
4af3937e37
Merge branch 'master' into interfaceFixes
2016-12-14 09:35:09 -08:00
Nathan Shively-Sanders
f097eafd11
More tests of parameter initialiser type
2016-12-14 08:49:21 -08:00
Arthur Ozga
4b02099372
add tests
2016-12-14 08:42:05 -08:00
Arthur Ozga
3cfac081d5
abstract class expr instantiation and abstract fix works with class expr
2016-12-14 08:40:41 -08:00
Yuichi Nukiyama
ec72ad64b6
update
2016-12-14 23:55:18 +09:00
Jason Ramsay
97641e7c3c
NavigateTo is not working correctly for declarations in IIFEs
...
Fix: visit the node's children even when the function declaration name is undefined
2016-12-13 16:47:32 -08:00
Mohamed Hegazy
c9111a0dbb
Fix https://github.com/Microsoft/TypeScript/issues/12316 : Add method
to known tag names
2016-12-13 16:36:54 -08:00
Nathan Shively-Sanders
ae2a13cf18
Merge pull request #12896 from Microsoft/implicit-any-error-on-explicit-any
...
Set symbol/flags only on (fresh) object spreads
2016-12-13 14:15:52 -08:00
Nathan Shively-Sanders
587ba8d0ae
Test:spreading any doesn't set flags on anyType
...
And update baselines
2016-12-13 13:55:13 -08:00
Vladimir Matveev
c71e6cc9ef
add a new line if after writing trailing comments ( #12894 )
2016-12-13 12:57:21 -08:00
Vladimir Matveev
e5e1533d49
mark types used in decorator metadata as referenced ( #12890 )
2016-12-13 11:46:06 -08:00
Nathan Shively-Sanders
caad486a46
More test cases and notes
2016-12-13 11:10:12 -08:00
Nathan Shively-Sanders
d62dd291bd
Merge branch 'master' into add-undefined-to-default-valued-parameters
2016-12-13 10:40:04 -08:00
Mohamed Hegazy
c76a3a6fef
Merge pull request #12782 from Microsoft/fix12439
...
Fix paramtypes metadata emit
2016-12-12 16:22:34 -08:00
Mohamed Hegazy
24c56a5733
Merge pull request #12775 from Microsoft/fix12724
...
Fix error on extends in declaration file with importHelpers
2016-12-12 16:18:22 -08:00
Nathan Shively-Sanders
525a06f2b3
Merge pull request #12858 from Knagis/master
...
Fixed missing whitespace in jsDoc comments. Fixes #12236
2016-12-12 15:12:57 -08:00
Kārlis Gaņģis
aa4a0b6469
Fixed jsDoc parser - no longer omits asterisks in the middle (if the line does not start with asterisk) and additional case for whitespaces being ignored
2016-12-13 00:05:16 +02:00
Anders Hejlsberg
055c0af397
Merge pull request #12843 from Microsoft/mappedTypeModifiers3
...
Additional tweak to mapped type property modifier propagation
2016-12-12 13:15:19 -08:00
Vladimir Matveev
d0506735e3
elaborate check before converting fresh literal type to regular ( #12595 )
2016-12-12 12:37:06 -08:00
Kārlis Gaņģis
19070648eb
Added test for https://github.com/Microsoft/TypeScript/issues/12236
2016-12-12 22:33:45 +02:00
Andy
a33e6536e0
Merge pull request #12852 from Microsoft/untyped_augmentation_2
...
Produce an error for an augmentation of an untyped module even if `moduleNotFoundError` is not defined
2016-12-12 12:33:37 -08:00
Nathan Shively-Sanders
65bb78d569
Merge pull request #12808 from Microsoft/self-referencing-spread-recursive-loop
...
Self-referencing spread recursive loop
2016-12-12 10:40:34 -08:00
Vladimir Matveev
496a14a021
create new lexical environment for the body of converted loop ( #12831 )
2016-12-12 10:18:30 -08:00
Vladimir Matveev
a604d84f5c
guard against visiting the same symbol table multiple times ( #12818 )
2016-12-12 10:17:07 -08:00
Andy Hanson
55fc62bc45
Merge branch 'master' into map5
2016-12-12 07:50:09 -08:00
Andy Hanson
83eddb549e
Produce an error for an augmentation of an untyped module even if moduleNotFoundError
is not defined
2016-12-12 07:36:54 -08:00
Arthur Ozga
ad011108e6
Consolidate Tests
2016-12-11 22:07:49 -08:00
Arthur Ozga
1ba6c8605b
Merge branch 'master' into interfaceFixes
2016-12-11 21:51:29 -08:00
Arthur Ozga
469745b181
Synthetic signature uses existing parameter names
2016-12-11 21:50:46 -08:00
Anders Hejlsberg
cedc53eb27
Add more tests
2016-12-11 17:44:29 -08:00
Anders Hejlsberg
7c5c664a1c
Merge pull request #12826 from Microsoft/mappedTypeModifiers2
...
Improve propagation of modifiers in mapped types
2016-12-10 15:16:05 -08:00
Anders Hejlsberg
57cb4aceb7
Merge pull request #12770 from Microsoft/deferIndexedAccess
...
Defer indexed access T[K] with non-generic K
2016-12-10 15:15:39 -08:00
Anders Hejlsberg
7fdfcf11cd
Add test to verify use of Pick<T, K> with setState
2016-12-10 10:15:18 -08:00
Anders Hejlsberg
7e974fadb6
Modify tests
2016-12-10 10:04:49 -08:00
Arthur Ozga
d724517110
Merge branch 'master' into interfaceFixes
2016-12-09 13:28:05 -08:00
Nathan Shively-Sanders
809706ba00
Test self-assignment w/array spread in loop
2016-12-09 10:52:49 -08:00
Sheetal Nandi
a2fb5f9ce8
Merge pull request #12778 from Microsoft/unusedLocalsAndObjectSpread
...
Do not report unused local error on locals that are intended for removing properties with object spread
2016-12-09 09:28:54 -08:00
Arthur Ozga
819a654bb3
Add tests and fix rest parameters
2016-12-08 18:34:35 -08:00
Ron Buckton
6a1ccd8de4
Adds support for new.target
2016-12-08 17:31:18 -08:00
Arthur Ozga
97b3d7a9ef
make index signature fix work with generics
2016-12-08 17:19:19 -08:00
Ron Buckton
00abd7e28b
Fix paramtypes metadata emit
2016-12-08 17:04:37 -08:00
Arthur Ozga
2f51b363bf
add missing index signature support
2016-12-08 16:34:15 -08:00
Sheetal Nandi
81452c544a
Do not report unused local error on locals that are intended for removing properties with object spread
...
Fixes #12766
2016-12-08 15:12:35 -08:00
anubmat
9dd769dc3c
Merge pull request #12741 from Microsoft/allowBracketCompletionInComments
...
Allow brace completion in comments
2016-12-08 14:37:11 -08:00
Sheetal Nandi
9505a18894
Add tests when object spread is used in destructuring
2016-12-08 14:35:35 -08:00
Ron Buckton
09761b5f07
Fix error on extends in declaration file with importHelpers
2016-12-08 13:43:32 -08:00
Nathan Shively-Sanders
96c14de26a
More tests:default-valued parameter+strictNullChecks
2016-12-08 10:25:21 -08:00
Anders Hejlsberg
29f6e7ff12
Merge branch 'master' into deferIndexedAccess
...
# Conflicts:
# src/compiler/checker.ts
# tests/baselines/reference/keyofAndIndexedAccess.js
# tests/baselines/reference/keyofAndIndexedAccess.symbols
# tests/baselines/reference/keyofAndIndexedAccess.types
# tests/cases/conformance/types/keyof/keyofAndIndexedAccess.ts
2016-12-08 09:53:56 -08:00
Nathan Shively-Sanders
f79fca7087
Merge pull request #12675 from Microsoft/subsubclass-can-access-protected-constructor
...
Subsubclass can access protected constructor
2016-12-08 08:58:58 -08:00
Anders Hejlsberg
311bb3b2da
Add circularity tests
2016-12-08 06:53:29 -08:00
Andy Hanson
6b1cc8972d
Use native maps when they're available
2016-12-08 06:40:31 -08:00
Ron Buckton
91f0194e6a
Merge pull request #12743 from Microsoft/fix12737
...
Fix await for inherited promise
2016-12-07 17:38:47 -08:00
Mohamed Hegazy
da4d41ff21
Merge pull request #12740 from Microsoft/fix12727
...
Fix decorator emit for accessors
2016-12-07 17:18:58 -08:00
Ron Buckton
8dcbea9675
Fix await for inherited promise
2016-12-07 17:17:17 -08:00
Arthur Ozga
c22e47d26d
add test for computed literals
2016-12-07 17:12:42 -08:00
Arthur Ozga
5cd0ea3741
handle well-known computed property/method names
2016-12-07 17:00:20 -08:00
Nathan Shively-Sanders
bb9b6819b3
Merge branch 'master' into add-undefined-to-default-valued-parameters
2016-12-07 16:12:25 -08:00
Anubha Mathur
cb0beb8343
Merge remote-tracking branch 'origin/master' into allowBracketCompletionInComments
2016-12-07 16:02:18 -08:00
Anubha Mathur
31dde97bbd
Allowing brace completion inside comments in JS and TS files
2016-12-07 15:58:05 -08:00
Ron Buckton
7eca4bc9be
Fix decorator emit for accessors
2016-12-07 15:48:23 -08:00
Andy
b0bbbcbe07
Merge pull request #12730 from Microsoft/memberList_to_completionList
...
Use "completionList" methods instead of "memberList" ones, since they're identical
2016-12-07 15:34:32 -08:00
Andy Hanson
6d37a60445
Remove debug statement
2016-12-07 14:07:35 -08:00
Andy Hanson
9f20077914
Use "completionList" methods instead of "memberList" ones, since they're identical
2016-12-07 13:36:11 -08:00
Nathan Shively-Sanders
f15a7a3bac
Test:instanceof allows callable/constructable RHS
2016-12-07 13:16:23 -08:00
Arthur Ozga
c511aea581
Add Support for multiple signatures
2016-12-06 19:46:08 -08:00
Anders Hejlsberg
d7908d19be
Add tests
2016-12-06 14:42:08 -08:00
Nathan Shively-Sanders
4efa61cf80
More tests for binding elements referencing previous elements
2016-12-06 13:05:52 -08:00
Sheetal Nandi
2a65f5ba09
Merge pull request #12691 from Microsoft/displayPartKind
...
Write property name of destructuring pattern explicitly when writing symbol display for binding element
2016-12-06 12:48:57 -08:00
Sheetal Nandi
7d049c2742
Write property name of destructuring pattern explicitly
...
There wont be any symbol for the property name but we already know it is a property name
Fixes #12166
2016-12-06 11:42:44 -08:00
Ron Buckton
f89156bf55
Add error for super property before super
2016-12-06 10:47:02 -08:00
Nathan Shively-Sanders
7a9c11c72b
Test:destructuring array initialisers refer to previous elements
2016-12-05 16:27:59 -08:00
Arthur Ozga
f0c771303d
implement getters/setters as property
2016-12-05 14:52:08 -08:00
Arthur Ozga
0c1772b7e0
Merge branch 'interfaceFixes' of https://github.com/Microsoft/TypeScript into interfaceFixes
2016-12-05 14:06:02 -08:00
Arthur Ozga
8134d64a16
Merge branch 'master' into interfaceFixes
2016-12-05 13:49:23 -08:00
Nathan Shively-Sanders
e3fb305d5a
Test that sub-subclass can access protected ctor
2016-12-05 12:24:31 -08:00
Andy Hanson
157a9b02fc
Properly determine whether an augmentation is a ValueModule or NamespaceModule
2016-12-05 10:43:40 -08:00
Nathan Shively-Sanders
fe3ed12a20
Update tests and baselines
2016-12-05 09:58:33 -08:00
Nathan Shively-Sanders
a90d63a414
Add tests for property access w/string index sigs
2016-12-05 09:58:09 -08:00
Anders Hejlsberg
95aed3f4ee
Add regression test
2016-12-04 07:49:55 -08:00
Anders Hejlsberg
b7e8a6d1f1
Merge pull request #12643 from Microsoft/keyofUnionIntersection
...
Properly handle unions and intersections with keyof T and T[K]
2016-12-04 07:03:15 -08:00
Anders Hejlsberg
b4836e3d3d
Add tests
2016-12-03 17:19:10 -08:00
Anders Hejlsberg
773c9a734f
Add tests
2016-12-03 11:03:40 -08:00
Anders Hejlsberg
a230cb7e77
Merge pull request #12623 from Microsoft/nestedIndexedAccess
...
Treat indexed access types 'T[K]' as type variables
2016-12-02 15:53:49 -08:00
Anders Hejlsberg
1e2425ebfc
Add tests
2016-12-02 14:50:14 -08:00
Sheetal Nandi
86f69f13fa
Add test for the decorated method beginning with underscore
2016-12-01 13:04:11 -08:00
Nathan Shively-Sanders
fc1f6e3ee6
Merge pull request #12564 from Microsoft/rest-of-untyped-binding-pattern-is-any
...
Rest of untyped binding pattern is { [s: string]: any }
2016-11-30 17:39:18 -08:00
Nathan Shively-Sanders
77226318ef
Update baselines
2016-11-30 17:26:30 -08:00
Sheetal Nandi
adf9b26f50
Handle parameter type error for index signature in declaration emit
...
Fixes #12572
2016-11-30 16:28:26 -08:00
Nathan Shively-Sanders
8e648f9f6d
Add property access and --noImplicitAny tests
...
And update baselines
2016-11-30 13:14:52 -08:00
Ron Buckton
8af87dce8b
Merge branch 'master' into asyncGenerators
2016-11-30 12:47:50 -08:00
Anders Hejlsberg
2517187c4a
Add tests
2016-11-30 10:24:19 -08:00
Mohamed Hegazy
4c9bdb932a
Merge pull request #12552 from Microsoft/spreadRestIntersectionAndUnions
...
Spread & rest over intersection and unions
2016-11-29 17:27:04 -08:00
Anders Hejlsberg
aaf0c89ed3
Merge pull request #12563 from Microsoft/mappedTypeModifiers
...
Preserve modifiers in homomorphic mapped types
2016-11-29 16:06:20 -08:00
Anders Hejlsberg
65e98c84d5
Add more tests
2016-11-29 14:06:10 -08:00
Arthur Ozga
4b0697ff9d
fix test
2016-11-29 16:04:56 -06:00
Arthur Ozga
3cd1731628
abstract accessors can't have implementations
2016-11-29 15:59:28 -06:00
Nathan Shively-Sanders
f85ca9c395
Test that rest of untyped binding pattern is any
2016-11-29 13:50:56 -08:00
Mohamed Hegazy
51f5ef6752
Update test
2016-11-29 13:37:21 -08:00
Anders Hejlsberg
f366ae0332
Add tests
2016-11-29 12:48:55 -08:00
Arthur Ozga
ba80ce63ad
stubbing extra completions
2016-11-29 14:33:20 -06:00
Mohamed Hegazy
e4f0a50a7c
Update test name
2016-11-29 12:29:40 -08:00
Mohamed Hegazy
9ab55c1576
change test
2016-11-29 12:27:56 -08:00
Mohamed Hegazy
216f286133
Handel null and undefined in object spread and rest
2016-11-29 12:25:10 -08:00
Arthur Ozga
bf48564cc8
FIx typo in method stub.
2016-11-29 13:36:09 -06:00
Mohamed Hegazy
f2e30f6693
Allow union and intersection as targets for object spread and rest, and distribute spread&rest over unions
2016-11-29 00:04:20 -08:00
Anders Hejlsberg
c89b1eb9e9
Merge pull request #12386 from mariusschulz/union-and-intersection-types-with-leading-operator
...
Union and intersection types with leading operator
2016-11-28 15:57:24 -08:00
Anders Hejlsberg
5dd4c9ef54
Merge pull request #12528 from Microsoft/mappedTypeInference
...
Type inference for isomorphic mapped types
2016-11-28 13:30:45 -08:00
Iwata Hidetaka
8df1c7ed13
add test for #12536
2016-11-29 06:28:39 +09:00
Arthur Ozga
680af0f782
use getStart()
2016-11-28 14:42:55 -06:00
Arthur Ozga
4af0e2ab5b
Merge branch 'master' into interfaceFixes
2016-11-28 14:13:10 -06:00
Mohamed Hegazy
9cac35be25
Merge pull request #12533 from ethanresnick/keyof-tests
...
Update keyof tests to reflect #12425
2016-11-28 12:08:03 -08:00
Anders Hejlsberg
2b0721672c
Add regression test
2016-11-28 11:01:19 -08:00
Anders Hejlsberg
0be4edefca
Add regression test
2016-11-28 09:35:03 -08:00
Ethan Resnick
8b7252c4b0
Update keyof tests to reflect #12425
...
Removes number from all the keyof types, and adds a test that numeric
indexes are ignored.
2016-11-28 04:21:33 -08:00
Anders Hejlsberg
997184708d
Add tests
2016-11-27 12:49:27 -08:00
Anders Hejlsberg
88b7d53978
Merge pull request #12515 from Microsoft/fixMappedTypeInference
...
Include mapped types in type inference infinite recursion check
2016-11-26 18:14:18 -08:00
Anders Hejlsberg
d1393a60d4
Add regression test
2016-11-26 12:22:29 -08:00
Anders Hejlsberg
12b63d230a
Add regression test
2016-11-26 10:06:33 -08:00
Yuichi Nukiyama
67b621eae4
remove extra files
2016-11-26 08:06:44 +09:00
Yuichi Nukiyama
e18901a61e
Revert "remove extra files"
...
This reverts commit b293257640
.
2016-11-26 08:03:42 +09:00
Yuichi Nukiyama
b293257640
remove extra files
2016-11-26 01:19:41 +09:00
Yuichi Nukiyama
40252248e0
remove extra tests
2016-11-25 07:10:05 +09:00
Anders Hejlsberg
2cec4c5ebb
Add regression test
2016-11-23 18:28:59 -08:00
Anders Hejlsberg
e128add54e
Merge pull request #12447 from Microsoft/mappedTypesAndUnions
...
Isomorphic mapped types and unions
2016-11-23 17:36:44 -08:00
Mohamed Hegazy
72cee3e045
Merge pull request #12434 from Microsoft/Fix12377
...
Add special handeling for function and array in Object.freeze
2016-11-23 13:26:36 -08:00
Sheetal Nandi
20a8a30b76
Instead of creating clone of the jsxFactory's leaf node, create synthesized node
...
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:26:02 -08:00
Sheetal Nandi
79bf477b67
Revert "Instead of creating clone of the jsxFactory's leaf node, create synthesized node"
...
This reverts commit 4e7313b4f6
.
2016-11-23 12:24:44 -08:00
Sheetal Nandi
4e7313b4f6
Instead of creating clone of the jsxFactory's leaf node, create synthesized node
...
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:22:28 -08:00
Mohamed Hegazy
60395565e6
Handel call and construct signatures
2016-11-23 09:48:25 -08:00
Daniel Rosenwasser
4701eb70e2
Merge pull request #12357 from mylesmegyesi/12075-incorrectErrorMessageForUseOfTypeAsNamespace
...
Fixes error message when Type is used as a Namespace
2016-11-23 11:08:38 -05:00
Yuichi Nukiyama
4c9ab41e3d
Merge branch 'master' into defult_export_error_message
2016-11-23 11:40:10 +09:00
Yuichi Nukiyama
31d0a5f225
Merge remote-tracking branch 'tsupstream/master'
2016-11-23 11:39:44 +09:00
Anders Hejlsberg
864e1797d9
Merge pull request #12396 from Microsoft/getTypeOfExpression
...
Introduce 'getTypeOfExpression' function
2016-11-22 15:33:37 -08:00
Anders Hejlsberg
43e383f20b
Add more tests
2016-11-22 14:28:45 -08:00
Anders Hejlsberg
66f8a406dd
Update tests
2016-11-22 14:28:21 -08:00
Ryan Cavanaugh
86583d495c
Merge pull request #12441 from RyanCavanaugh/jsDocAugments
...
Support JSDoc @augments tag
2016-11-22 11:23:45 -08:00
Ryan Cavanaugh
6a5682c4a3
Support JSDoc @augments tag
...
Fixes #12428
2016-11-22 10:52:47 -08:00
Mohamed Hegazy
72df02cbbd
Add function
2016-11-21 23:27:18 -08:00
Mohamed Hegazy
8a334ac00d
Add special handeling for function and array in Object.freeze
2016-11-21 23:13:22 -08:00
Anders Hejlsberg
77c0540433
Merge pull request #12425 from Microsoft/keyofOnlyStrings
...
Change 'keyof T' to always be string-like
2016-11-21 15:51:00 -08:00
Anders Hejlsberg
b662a8b319
Add test case
2016-11-21 13:10:42 -08:00
Vladimir Matveev
4c6b94f16f
wrap subexpressions of conditional expressions in parens if necessary ( #12420 )
2016-11-21 12:52:13 -08:00
Anders Hejlsberg
5498a95245
Update tests
2016-11-21 11:42:38 -08:00
Vladimir Matveev
b060107b51
recompute character to column when comparing indentations ( #12375 )
...
recompute character to column when comparing indentations
2016-11-21 11:34:09 -08:00
Anders Hejlsberg
998246af9c
Merge pull request #12389 from Microsoft/keyofRelations
...
Minor fixes for 'keyof T' and indexed acces types
2016-11-20 15:54:41 -08:00
Marius Schulz
d040db42f5
Add test for proper tuple type handling
2016-11-20 22:26:32 +01:00
Anders Hejlsberg
c1c12c75f7
Add regression test
2016-11-20 08:55:20 -08:00
Anders Hejlsberg
a439e62138
Add tests
2016-11-19 15:10:22 -08:00
Marius Schulz
e45c5dbcea
Add tests and accept new baselines
2016-11-19 22:30:33 +01:00
Yuichi Nukiyama
94c78961ef
modify error message
2016-11-19 16:18:20 +09:00
Ron Buckton
1980334328
Merge branch 'master' into asyncGenerators
2016-11-18 17:55:56 -08:00
Ron Buckton
38b7757e57
Tests for iterationMode=iterable
2016-11-18 17:55:06 -08:00
Yuichi Nukiyama
725dbc2add
Merge branch 'master' into defult_export_error_message
2016-11-19 10:51:42 +09:00
Yuichi Nukiyama
4edf1b714a
Merge remote-tracking branch 'tsupstream/master'
2016-11-19 10:49:52 +09:00
Ron Buckton
c72509b190
Added iterationMode switch, consolidate some tests, cleanup
2016-11-18 16:50:43 -08:00
Nathan Shively-Sanders
71b28a024a
Merge pull request #12310 from Microsoft/check-object-rest-destructuring-assignment
...
Check object rest destructuring assignment
2016-11-18 16:01:25 -08:00
Nathan Shively-Sanders
b514d7c91c
Merge pull request #12362 from Microsoft/disable-evolving-types-with-implicit-any
...
Disable evolving types with implicit any
2016-11-18 15:39:02 -08:00
Sheetal Nandi
f626ff777f
Merge pull request #12363 from Microsoft/declarationsInFilesWithErrors
...
Fixes for #12291 and #12326 : Declaration emit when there are errors in the source file
2016-11-18 14:57:09 -08:00
Nathan Shively-Sanders
7750fe1a7c
Always enable evolving types in Javascript files
2016-11-18 14:13:56 -08:00
Sheetal Nandi
aa556502f3
Handle when type alias's type parameter extends type that wont get emitted in .d.ts
...
Fixes #12326
2016-11-18 14:02:57 -08:00
Nathan Shively-Sanders
8674d92bdb
Disable evolving types with implicit any
...
That is, without --noImplicitAny
2016-11-18 13:51:44 -08:00
Anders Hejlsberg
a789990781
Add tests
2016-11-18 13:31:10 -08:00
Sheetal Nandi
cbde25f229
Handle the scenario when heritage clause of interface is not entity name expression
...
Fixes #12291
2016-11-18 13:11:33 -08:00
Ron Buckton
1c0917abef
Merge branch 'master' into asyncGenerators
2016-11-18 10:32:54 -08:00
Myles Megyesi
d8b0f239f1
Fixes error message when Type is used as a Namespace
...
Fixes #12075
2016-11-18 11:38:24 -06:00
Anders Hejlsberg
075a3eb98f
Add new tests
2016-11-18 06:27:45 -08:00
Ron Buckton
281c8902a6
ES5 tests for async generators
2016-11-18 00:22:26 -08:00
Ron Buckton
c758359a63
ES6 tests for async generators
2016-11-18 00:11:53 -08:00
Ron Buckton
42085a6576
Conformance tests for for-await-of
2016-11-17 23:25:24 -08:00
Ron Buckton
e53263edbb
Added conformance tests for async generators
2016-11-17 23:17:42 -08:00
Arthur Ozga
69118cd3e4
Merge branch 'master' into interfaceFixes
...
* resolved conflicts with 4/ interface for codefixes
2016-11-16 17:13:31 -08:00
Paul van Brenk
52ec508e27
Code fix for missing imports ( #11768 )
...
* Add codefix for missing imports + tests
* Re-order and cleanup
* refactor
* make tests pass
* Make import specifier for new imports more comprehensive
* Fix existing import cases
* refactor
* Fix multiple import statement case
* add multiple code fixes and code action filtering and polishing
* not using the generic verify method for import fixes.
* Correct insert position for new imports
* improve the code action filtering logic
* Fix line ending issue
* cache where we can
2016-11-16 16:01:16 -08:00
Nathan Shively-Sanders
c7b0083820
Test widen literal types of parameter properties
2016-11-16 15:15:30 -08:00
Nathan Shively-Sanders
641948fb0c
Test assignability checking of object rests
2016-11-16 13:41:18 -08:00
Ron Buckton
d6a5e39c3a
Merge branch 'improveImportHelpersDiagnostics' into asyncGenerators
2016-11-16 12:36:27 -08:00
Ron Buckton
ab1dc522a4
Merge branch 'emitHelper' into asyncGenerators
2016-11-16 12:23:32 -08:00
Anders Hejlsberg
a5d9e9624d
Merge pull request #12301 from Microsoft/recursiveMappedTypes
...
Fix recursive mapped types
2016-11-16 10:23:14 -08:00
Anders Hejlsberg
c00a04d781
Add tests
2016-11-16 06:49:04 -08:00
Ron Buckton
ec95f4f0f7
Merge branch 'streamlineDestructuring' into emitHelper
2016-11-15 18:13:52 -08:00
Ron Buckton
3a67174314
Merge branch 'master' into streamlineDestructuring
2016-11-15 18:10:02 -08:00
Ron Buckton
ba4f52c055
Merge remote-tracking branch 'origin/object-rest-emit-for-method-and-accessor-parameters' into streamlineDestructuring
2016-11-15 17:09:49 -08:00
Arthur Ozga
389959a5b5
Merge branch 'master' into interfaceFixes
...
* additionally consolidated codeFix testing
2016-11-15 14:43:14 -08:00
Anders Hejlsberg
73ada7a78d
Merge pull request #12251 from Microsoft/fixTypePredicateStructuralMatch
...
Fix type predicates with structurally identical types
2016-11-15 13:20:35 -08:00
Anders Hejlsberg
0ba23483e8
Merge pull request #12276 from Microsoft/libMappedTypes
...
Predefined mapped types in lib.d.ts
2016-11-15 13:19:58 -08:00
Anders Hejlsberg
04a0f55e96
Revise tests
2016-11-15 12:15:11 -08:00
Arthur Ozga
d7d4bf6b04
Handle class expressions
2016-11-15 11:41:23 -08:00
Nathan Shively-Sanders
2496756aed
Merge branch 'master' into object-spread-rest-fixes
2016-11-15 11:19:01 -08:00
Paul van Brenk
1924298d87
Merge branch 'master' into unusedidentifier
2016-11-15 10:17:37 -08:00
Nathan Shively-Sanders
498d978c21
Test object rest parameter emit: methods/accessors
2016-11-15 09:55:56 -08:00
Nathan Shively-Sanders
a74e9d8ccf
Merge pull request #12158 from Microsoft/fix-literal-comparability-in-relational-comparison-operators
...
Fix literal comparability in relational comparison operators
2016-11-15 08:24:06 -08:00
Anders Hejlsberg
6d28595e5a
Add repro test
2016-11-14 17:06:46 -08:00
Nathan Shively-Sanders
fe66d9ef9f
Add spread tests and update rest tests
2016-11-14 16:23:40 -08:00
Nathan Shively-Sanders
e50adc0904
Merge pull request #12223 from Microsoft/fix-object-spread-rest-async-emit
...
Fix object spread+async emit
2016-11-14 16:15:15 -08:00
Mohamed Hegazy
1164df2c6d
Merge pull request #12197 from Microsoft/commentsSuperCallReturns
...
Fix up comments for super calls rewritten as returns
2016-11-14 16:10:03 -08:00
Arthur Ozga
6400d53394
Fix handling of default class
2016-11-14 15:43:24 -08:00
Ron Buckton
06a13b9d10
Fix string constituent check in checkElementTypeOfArrayOrString
2016-11-14 15:22:04 -08:00
Arthur Ozga
cfe50d1b92
Fix extends -> implements for decorators/modifiers
2016-11-14 15:13:46 -08:00
Mohamed Hegazy
2827b370cc
Merge pull request #12207 from ethanresnick/precise-object-entry-types
...
More precise Object.entries type declarations
2016-11-14 13:55:27 -08:00
Arthur Ozga
263734f333
Add a test
2016-11-14 13:53:59 -08:00
Mohamed Hegazy
a0338d15e1
Ignore optionality in the comparable relationship ( #12202 )
...
* Added tests.
* Accepted baselines.
* Avoid checking for optionality in comparability checks.
* Accepted baselines.
2016-11-14 10:47:48 -08:00
Nathan Shively-Sanders
0adc76bd2b
Test object spread+async emit & nested spread emit
2016-11-14 08:54:32 -08:00
Nathan Shively-Sanders
0cda239e1c
Merge pull request #12156 from Microsoft/fix-jsdoc-missing-space-from-bad-indent
...
Fix jsdoc missing space from bad indent
2016-11-14 08:21:40 -08:00
Anders Hejlsberg
f437c8f318
Merge pull request #12114 from Microsoft/mappedTypes
...
Mapped types
2016-11-13 15:39:32 -08:00
Anders Hejlsberg
85702197b4
Add regression test
2016-11-13 08:35:40 -08:00
Ethan Resnick
ea33d6e501
More precise Object.entries type declarations
...
We can leverage the new index type queries and indexed access types
from #11929 to get better type inference for Object.entries.
2016-11-13 02:59:50 -05:00
Daniel Rosenwasser
ffed2484d3
Added tests.
2016-11-12 12:46:01 -08:00
Anders Hejlsberg
9ac7667d5c
Address CR feedback
2016-11-12 08:55:23 -08:00
Daniel Rosenwasser
486f156a69
Added test.
2016-11-12 01:40:37 -08:00
Andy Hanson
1e92a9803b
Merge branch 'master' into path_mapping_exact_extension
2016-11-11 14:11:40 -08:00
Andy Hanson
a0e4ab94f1
Allow JS files
2016-11-11 13:59:13 -08:00
Andy Hanson
240b474ba3
Merge branch 'master' into path_mapping_exact_extension
2016-11-11 13:52:10 -08:00
Andy Hanson
6c7e1b6913
Merge branch 'master' into symlink3
2016-11-11 13:35:47 -08:00
Andy Hanson
b65729e5b2
Merge branch 'master' into common_source_directory
2016-11-11 13:10:29 -08:00
Anders Hejlsberg
ca3f797832
More tests
2016-11-11 11:00:09 -08:00
Nathan Shively-Sanders
de9f59a301
Test non-identifier rest in destructuring assignment
2016-11-11 08:57:11 -08:00
Anders Hejlsberg
e9b6ddc9ae
Add tests
2016-11-11 07:40:05 -08:00
Daniel Rosenwasser
da356b075a
Added tests for missing 'this' property accesses.
2016-11-11 01:25:50 -08:00
Nathan Shively-Sanders
e301cfe58c
Raise literal type to its base in a comparison
...
Similar to ===, except that it always applies, even when comparing two
literals.
2016-11-10 14:29:48 -08:00
Mohamed Hegazy
d537b79c61
Merge release-2.1 into master ( #12157 )
...
* Update LKG
* Update version
* Update LKG
* Skip overloads with too-short function parameters
If the parameter of an overload is a function and the argument is also a
function, skip the overload if the parameter has fewer arguments than
the argument does. That overload cannot possibly apply, and should not
participate in, for example, contextual typing.
Example:
```ts
interface I {
(a: number): void;
(b: string, c): void;
}
declare function f(i: I): void;
f((x, y) => {});
```
This code now skips the first overload instead of considering.
This was a longstanding bug but was only uncovered now that more
functions expressions are context sensitive.
* Test skip overloads w/too-short function params
1. Update changed baseline.
2. Add a new test with baseline.
* Minor style improvements
* Ignore optionality when skipping overloads
* Do not use contextual signatures with too few parameters
* isAritySmaller runs later: getNonGenericSignature
* rewrite void-returning statements in constructors that capture result of super call (#11868 )
* rewrite void-returning statements in constructors that capture result of super call
* linter
* Update LKG
* Fix emit inferred type which is a generic type-alias both fully and partially fill type parameters
* Add tests and baselines
* Skip trying to use alias if there is target type
* Update baselines
* Add diagnostics to remind adding tsconfig file for certain external project (#11932 )
* Add diagnostics for certain external project
* Show tsconfig suggestion
* fix lint error
* Address pr
* fix comment
* Update error message
* Flag for not overwrite js files by default without generating errors (#11980 )
* WIP
* Properly naming things
* refactor
* apply the option to all files and check out options
* Fix typo
* Update LKG
* lockLinter
* use local registry to check if typings package exist (#12014 ) (#12032 )
use local registry to check if typings package exist
* Add test for https://github.com/Microsoft/TypeScript/pull/11980 (#12027 )
* add test for the fix for overwrite emitting error
* cr feedback
* enable sending telemetry events to tsserver client (#12034 ) (#12051 )
enable sending telemetry events
* Update LKG
* Reuse subtree transform flags for incrementally parsed nodes (#12088 )
* Update LKG
* Update version
* Update LKG
* Do not emit "use strict" when targeting es6 or higher or module kind is es2015 and the file is external module
* Add tests and baselines
* [Release 2.1] fix11754 global augmentation (#12133 )
* Exclude global augmentation from module resolution logic
* Address PR: check using string literal instead of NodeFlags.globalAugmentation
* Remove comment
2016-11-10 14:28:34 -08:00
Nathan Shively-Sanders
6e1aac1c42
Merge pull request #12147 from mylesmegyesi/12050-IncompatableAssignementOfIdenticallyNamedTypes
...
Adds error message for incompatible assignment of identically named type
2016-11-10 13:17:31 -08:00
Nathan Shively-Sanders
973d83ce93
Merge branch 'master' into fix-jsdoc-missing-space-from-bad-indent
2016-11-10 13:12:32 -08:00
Nathan Shively-Sanders
8bd0a47c82
Retain space after first word in multiline jsdoc
...
For words that were shorter than the jsdoc indent level, the space was
omitted previously.
2016-11-10 13:11:32 -08:00
Nathan Shively-Sanders
ba6e5a0ffa
Test error for import helpers with no __rest
2016-11-10 11:47:03 -08:00
Sheetal Nandi
c87bce1119
Merge pull request #11978 from Microsoft/errorReportingInJsFile
...
Report all the js file errors and skip only the nodes that are not allowed in JS file
2016-11-10 10:37:16 -08:00
Andy Hanson
0422a756d9
Add test with a referenced dts file
2016-11-10 10:25:33 -08:00
Sheetal Nandi
c458576553
Merge pull request #12135 from Microsoft/jsxFactory
...
Support for --jsxFactory option
2016-11-10 09:49:57 -08:00
Myles Megyesi
c05e226c4b
Adds error message for incompatible assignment of identically named type
...
Fixes issue #12050
2016-11-10 11:32:03 -06:00
Nathan Shively-Sanders
be5e5fb872
Merge pull request #11150 from Microsoft/object-spread
...
Object spread/rest
2016-11-10 09:28:58 -08:00
Nathan Shively-Sanders
6398e0d6dd
Merge pull request #11633 from Microsoft/fix-comparable-in-switch
...
Fix comparable in switch
2016-11-10 09:20:46 -08:00
Nathan Shively-Sanders
25462c9571
Merge pull request #12028 from Microsoft/object-rest
...
Object rest
2016-11-10 09:18:13 -08:00
Herrington Darkholme
4c82e2de4f
Merge branch 'master' of github.com:Microsoft/TypeScript into delete-readonly
2016-11-10 11:17:06 +08:00
Arthur Ozga
0591e1bd20
Simplify Testing
2016-11-09 17:47:52 -08:00
Ron Buckton
4b5686a52f
Added emit transforms for async generators.
2016-11-09 17:06:08 -08:00
Sheetal Nandi
a88c2ae1e4
Add test cases for when jsxFactory cannot be resolved
2016-11-09 16:56:43 -08:00
Sheetal Nandi
c6b1bbe12d
Enabled test case for source map
2016-11-09 16:51:10 -08:00
Arthur Ozga
c650c33bb5
Update tests
2016-11-09 16:37:48 -08:00
Ron Buckton
549ac8f7ae
Updated baselines
2016-11-09 14:41:11 -08:00
Sheetal Nandi
f7bac98948
Verify that jsxFactory is either identifier or qualified name
2016-11-09 14:32:42 -08:00
Nathan Shively-Sanders
9b1f43bdda
Add strictNullChecks test for object spread
2016-11-09 13:40:21 -08:00
Sheetal Nandi
4b8a55793a
Add support for taking in jsxFactory option and report errors for invalid combinations
2016-11-09 12:23:59 -08:00
about-code
02ee7c7953
Merge remote-tracking branch 'upstream/master'
2016-11-09 21:12:56 +01:00
about-code
b623f3771e
Fix #442 : (es3, es5, es6+) Show compiler errors for conflicting properties.
2016-11-09 21:08:56 +01:00
Sheetal Nandi
78bb276216
Merge branch 'master' into errorReportingInJsFile
2016-11-09 11:38:11 -08:00
Nathan Shively-Sanders
01969475cf
Improve nested destructuring test for ESNext emit
...
Now with object destructuring inside array destructuring inside object
destructuring! Each with their own array/object rest!
Also updates baselines.
2016-11-09 10:51:56 -08:00
Sheetal Nandi
6456325973
Handle abstract and const modifiers
2016-11-09 10:39:46 -08:00
Andy Hanson
d8b541afa1
Fix test
2016-11-09 10:14:25 -08:00
Andy Hanson
d559f7f17d
Merge branch 'master' into symlink3
2016-11-09 09:11:25 -08:00
Andy Hanson
9c80909a90
Resolve symlinks for type reference directives too.
2016-11-09 08:08:10 -08:00
Arthur Ozga
d842a6f665
Merge branch 'master' into interfaceFixes
2016-11-08 16:49:49 -08:00
Arthur Ozga
1d6ef6aedd
cleanup
2016-11-08 16:48:54 -08:00
Vladimir Matveev
28cc938503
(signature help) type parameter lists are never variadic ( #12112 )
2016-11-08 16:10:34 -08:00
Arthur Ozga
6bd35fb066
Fix Type Param method Tests
2016-11-08 14:26:50 -08:00
Arthur Ozga
1ec234af32
Edit error handling tests
2016-11-08 14:13:25 -08:00
Arthur Ozga
4441380e6f
tests: edit expected type params
2016-11-08 13:20:56 -08:00
Arthur Ozga
0ce53f0230
rename tests
2016-11-08 10:43:36 -08:00
Andy Hanson
1c64615e32
Allow a path mapping to provide a file extension
2016-11-08 07:19:17 -08:00
Anders Hejlsberg
be0358cc0c
Include declaration file emit
2016-11-08 06:09:41 -08:00
Arthur Ozga
71d17445f7
Test Fixes
...
* remove abstract modifier on insertion
* use semi-colon to delimit object types
* remove bad type param
2016-11-07 19:00:27 -08:00
Paul van Brenk
78fdd44dd1
Remove error-codes from fourslash tests
2016-11-07 13:01:14 -08:00
Nathan Shively-Sanders
9977936190
Do not emit __rest for --target esnext
2016-11-07 11:34:37 -08:00
Nathan Shively-Sanders
609cd0016b
Merge branch 'object-spread' into object-rest
2016-11-07 11:10:29 -08:00
Nathan Shively-Sanders
f03fecbd31
Merge branch 'master' into object-spread
2016-11-07 11:02:49 -08:00
Nathan Shively-Sanders
d4a5b0855c
Add --target esnext tests and update baselines
2016-11-07 09:56:48 -08:00
Andy Hanson
07630e95e0
Add source maps and declarations to test
2016-11-07 07:14:47 -08:00
about-code
d9a46e1ae6
Allowing static arguments()
and static caller()
for target "es6"
.
...
Disallow non-function properties `static arguments` and `static caller`, though.
2016-11-06 17:59:38 +01:00
Anders Hejlsberg
adfa271e44
Add regression test
2016-11-05 17:36:13 -07:00
about-code
189dbddb10
Accept baseline tests. Fixing diagnosticMessages.json
(merge result not included in prior commit).
2016-11-05 18:42:53 +01:00
about-code
8fa07d695e
Merge remote-tracking branch 'upstream/master'
2016-11-05 17:15:51 +01:00
Arthur Ozga
b7b30aab46
Add straggling Test
2016-11-04 16:36:28 -07:00
Arthur Ozga
36c5befae9
Add tests and simplify existing ones
2016-11-04 16:34:10 -07:00
Nathan Shively-Sanders
a55ed26d2b
Spread any types to any
2016-11-04 16:06:33 -07:00
Sheetal Nandi
4a906143c6
Merge pull request #11998 from Microsoft/unusedProperty
...
Mark property referenced in the destructuring as referenced
2016-11-04 10:42:05 -07:00
Ron Buckton
cbec19afd7
Ensure transformFlags are correct before visiting a node.
2016-11-03 17:21:36 -07:00
Nathan Shively-Sanders
286845c6c5
Test adding undefined to default-valued parameters
...
When --strictNullChecks is on
Also update a baseline that changes now.
2016-11-03 15:35:29 -07:00
Nathan Shively-Sanders
14f8b9990f
Update objectRestAssignment test
...
Missed previously, just got the baselines
2016-11-03 13:33:16 -07:00
Paul van Brenk
2f453ce674
Handle most module cases
2016-11-03 12:48:28 -07:00
Andy Hanson
0b71df5099
Add a .d.ts
file to the test to ensure it is excluded from the calculation too
2016-11-03 12:33:03 -07:00
Nathan Shively-Sanders
7ff8876096
Merge branch 'object-spread' into object-rest-syntax
2016-11-03 10:12:45 -07:00
Anders Hejlsberg
4019265fe1
Update tests
2016-11-03 10:01:42 -07:00
Nathan Shively-Sanders
a077fd104a
Remove spread type tests from spread tests
2016-11-03 09:39:58 -07:00
Andy Hanson
b6727ea582
Only resolve symlinks in node_modules
2016-11-03 07:53:10 -07:00
Andy Hanson
2eca0af91b
Leave files from node_modules
out when calculating getCommonSourceDirectory
2016-11-03 07:50:07 -07:00
Herrington Darkholme
023d5caf3b
accept new baseline
2016-11-03 13:27:22 +08:00
Herrington Darkholme
8ea8044f80
add new tests and accept baselines
2016-11-03 13:27:21 +08:00
Nathan Shively-Sanders
ac20b46f4f
Add rest tests
2016-11-02 14:56:58 -07:00
Arthur Ozga
e5279fd828
Rename and simplify fourslash interface
2016-11-02 12:39:55 -07:00
Nathan Shively-Sanders
f65dd2101c
Test index [access] types inside spread types
2016-11-02 11:37:52 -07:00
Sheetal Nandi
116c87819a
Test case for property used in destructuring variable declaration
2016-11-02 11:07:33 -07:00
Nathan Shively-Sanders
2ae6ecc1a5
Merge branch 'master' into object-spread
2016-11-02 10:57:20 -07:00
Anders Hejlsberg
4bbe29ab73
Adding tests
2016-11-02 09:13:45 -07:00
Arthur Ozga
0380f3f38e
Recognize modifiers
2016-11-01 17:19:06 -07:00
Paul van Brenk
b59714ea7e
Add more testcases and simplify
2016-11-01 16:31:23 -07:00
Arthur Ozga
324000020c
Merge branch 'master' into interfaceFixes
2016-11-01 15:43:54 -07:00
Arthur Ozga
99ae5d9a99
Remove unused tests
2016-11-01 15:38:35 -07:00
Arthur Ozga
bc2134681d
Refactor fourslash testing for codeFixes
2016-11-01 15:38:07 -07:00
Sheetal Nandi
06331b57de
Report all the js file errors and skip only the nodes that are not allowed in js
...
Fixes #11800
2016-11-01 13:00:30 -07:00
Sheetal Nandi
d896d3f8a9
Add test cases to report errors for decorators in js file
2016-11-01 11:05:09 -07:00
Nathan Shively-Sanders
d58a13f6a1
Add missed test update
2016-11-01 10:07:30 -07:00
Andy
ecb7b00e1c
Forbid augmentation of untyped module ( #11962 )
...
* Forbid augmentation of untyped module
* Just use `undefined` for untyped modules
2016-10-31 15:04:22 -07:00
Nathan Shively-Sanders
b0080a253d
Merge branch 'master' into fix-comparable-in-switch
2016-10-31 14:20:10 -07:00
Andy Hanson
03ce7b0145
Fix realPathMap in test harness: Must be used in directoryExists
2016-10-31 08:23:02 -07:00
jramsay
980f9fd2a9
Merge pull request #11848 from Microsoft/AddJavaScriptSemanticErrorsToSyntacticErrors
...
Fix for #11719 - TSServer: JS files should display syntactic errors for TS syntax
2016-10-28 16:49:53 -07:00
Vladimir Matveev
fcdeecfa4a
Merge pull request #11925 from Microsoft/vladima/11880
...
update CFG to properly handle do statements
2016-10-28 16:12:53 -07:00
Vladimir Matveev
9bb7ba5862
Merge pull request #11928 from Microsoft/vladima/11738
...
do not inline async IIFEs in control flow graph
2016-10-28 16:12:31 -07:00
Vladimir Matveev
73c59bbf85
do not inline async IIFEs in control flow graph
2016-10-28 14:43:08 -07:00