Commit Graph
2507 Commits
Author SHA1 Message Date
Jason Freeman de5aa6c0d2 Fix source map scope name for computed properties 2015-01-21 11:01:05 -08:00
Jason Freeman eb7798fbb2 Skip computed properties on declaration emit 2015-01-20 18:29:04 -08:00
Jason Freeman 26da3782b5 Move subroutine function to the bottom of checkIndexConstraints 2015-01-20 17:08:55 -08:00
Jason Freeman 85219ee5e1 Check computed properties against indexers in classes 2015-01-20 17:07:55 -08:00
Jason Freeman 89f36bb9c5 Disallow computed properties referencing type parameters from containing type 2015-01-19 18:44:15 -08:00
Jason Freeman b5349a5038 Disallow super and fix this capturing for computed properties 2015-01-19 16:37:17 -08:00
Jason Freeman e317767966 Consolidate getSuperContainer 2015-01-19 16:37:14 -08:00
Jason Freeman 4cc2722700 Disallow this in computed properties in classes 2015-01-19 16:37:10 -08:00
Jason Freeman 1973b42946 Indexers in object literals include computed property types 2015-01-19 16:37:03 -08:00
Jason Freeman 1b35a1be25 Contextual typing for computed properties 2015-01-19 16:37:00 -08:00
Jason Freeman 4c5db716f9 Remove some unnecessary TODOs 2015-01-19 16:36:56 -08:00
Jason Freeman 4c0122d879 Move computed property checks so that they will be checked in classes and interfaces 2015-01-19 16:36:46 -08:00
Jason Freeman 7192767a00 Add type checking for computed properties in object literals 2015-01-19 16:36:39 -08:00
Jason Freeman ef06879a75 Create symbols for computed properties 2015-01-19 16:36:36 -08:00
Jason Freeman d192fea774 Switch checkObjectLiteral to iterate over element declarations 2015-01-19 16:36:32 -08:00
Jason Freeman 15187e5e1d Enable computed properties 2015-01-19 16:36:28 -08:00
Mohamed Hegazy 8d5b65a533 Merge pull request #1654 from csnover/fix-1653
Use system line ending in services compiler host
2015-01-19 15:54:27 -08:00
Colin Snover d736014f35 Expose optional getNewLine for language service hosts
Fixes #1653.
2015-01-19 05:02:36 +00:00
Jason Freeman ca9cd9af2b Change sys to ts.sys in instrumenter 2015-01-16 15:25:39 -08:00
Daniel Rosenwasser 5bcb52f9b0 Merge pull request #1676 from Microsoft/disallowOptionalBindingParameters
Disallow optional destructured parameters in implementation signatures.
2015-01-15 16:55:14 -08:00
Daniel Rosenwasser 2a11222050 'may not' -> 'cannot' 2015-01-15 16:29:50 -08:00
Daniel Rosenwasser 8dd81ea4fc Merge pull request #1673 from Microsoft/unDestructuringParameterProperties
Disallow destructured parameter properties
2015-01-15 13:39:47 -08:00
Yui T 02b78da64b Merge branch 'master' into fixCurrentDirectoryForRwc 2015-01-15 10:36:45 -08:00
Yui T ffbdf46f25 Address code review 2015-01-15 09:56:43 -08:00
Daniel Rosenwasser 75a1a8a493 Disallow optional destructured parameters in implementation signatures. 2015-01-14 17:25:46 -08:00
Yui T 6e8957da34 Pass information of rwc's currentDirectory to the compiler host in the Harness 2015-01-14 16:28:10 -08:00
Daniel Rosenwasser e19ebc6d3e Disallow binding patterns in parameter properties. 2015-01-14 16:15:00 -08:00
Daniel Rosenwasser bfe63cc4cb Merge pull request #1648 from Microsoft/contextualTypeParenthesizedExpressions
Contextually type parenthesized expressions
2015-01-14 14:52:07 -08:00
Yui T cf81938ec8 Merge branch 'master' into fixTypeGuardWithInstanceOf 2015-01-14 11:50:11 -08:00
Yui T fdadd3c18e Fix narrow type for instanceOf and add testcases 2015-01-14 11:30:58 -08:00
Vladimir Matveev 2ce6c5635d do not apply format on enter for the first line 2015-01-13 19:11:21 -08:00
Jason Freeman 4a1851c7b8 Merge pull request #1562 from csnover/fix-1133
Ensure specialized signatures are always at the top when performing call candidate resolution
2015-01-13 17:33:57 -08:00
Daniel Rosenwasser e20b22c18b Minor changes. 2015-01-13 16:46:41 -08:00
Daniel Rosenwasser 372b0a4e15 Updated parser lookahead for modifiers to anticipate object literals. 2015-01-13 16:24:23 -08:00
Vladimir Matveev 87bcdff9a8 Merge pull request #1660 from Microsoft/saveNumericTokensInScanner
save token when scanning binary\octal literals
2015-01-13 15:42:49 -08:00
Vladimir Matveev f2338016df save token when scanning binary\octal literals 2015-01-13 14:37:55 -08:00
Vladimir Matveev 150720bd70 when formatting lists check if end list token still belongs to the parent node 2015-01-13 14:22:53 -08:00
Anders Hejlsberg cbecae3cf3 Merge pull request #1657 from Microsoft/unionTypeGuards
Improved union type guards
2015-01-13 11:59:54 -08:00
Vladimir Matveev 8256ddf756 Merge pull request #1647 from Microsoft/badPropNamesInConstEnums
disallow incorrect literal property names in indexed access for const en...
2015-01-13 11:33:30 -08:00
Mohamed Hegazy a99b958484 Manual port of fixe for #1593 from release-1.4 2015-01-13 09:30:54 -08:00
Anders Hejlsberg 59e266de02 Improved handing of union types in type guards 2015-01-12 14:51:20 -08:00
Dick van den Brink e4701a6600 Remove unused timer.ts file 2015-01-12 23:34:21 +01:00
Vladimir Matveev c25f3eb9a3 addressed CR feedback 2015-01-12 11:31:54 -08:00
Vladimir Matveev ecac4a519d disallow incorrect literal property names in indexed access for const enums 2015-01-12 10:58:21 -08:00
Colin Snover 4aef3d6012 Address code review comments from @JsonFreeman 2015-01-12 05:37:58 +00:00
Lorant Pinter 47b8deb382 Show --noImplicitAny as an option to throw errors, not warnings
Fixes #1632
2015-01-11 11:14:06 +01:00
Daniel Rosenwasser 22174a17c6 Contextually type parenthesized expressions. 2015-01-09 15:10:32 -08:00
Anders Hejlsberg a8cf58939b Adding comment 2015-01-09 06:52:24 -08:00
Anders Hejlsberg bdfb655d66 Renaming helpers and cleaning up logic 2015-01-08 18:46:48 -08:00
Anders Hejlsberg 78bb71f837 Optimizing forEachChild function to not create closures 2015-01-08 16:43:37 -08:00