1498 Commits

Author SHA1 Message Date
Jason Freeman
b022ccd430 Merge branch 'master' into computedProperties
Conflicts:
	src/compiler/checker.ts
2015-01-21 11:03:24 -08:00
Jason Freeman
de5aa6c0d2 Fix source map scope name for computed properties 2015-01-21 11:01:05 -08:00
Sheetal Nandi
e8e2356afa Fixes the emit of comment when comment ends on last line
This fixes regression from 5a7500ca5e62d7e6c7863cf42d156e8bcdc3017c with addition of eof token
Handles #1714
2015-01-20 21:16:14 -08:00
Jason Freeman
eb7798fbb2 Skip computed properties on declaration emit 2015-01-20 18:29:04 -08:00
Vladimir Matveev
7f749909da Merge pull request #1746 from Microsoft/formattingTemplateLiterals
fixed smart indentation\formatting in template literals
2015-01-20 17:54:47 -08:00
Anders Hejlsberg
bb33167f7e Merge pull request #1692 from Microsoft/tsconfig
Support for tsconfig.json files
2015-01-20 17:08:26 -08:00
Jason Freeman
85219ee5e1 Check computed properties against indexers in classes 2015-01-20 17:07:55 -08:00
Vladimir Matveev
8497667f33 drop trailing trivia prior to rescanning it 2015-01-20 14:44:24 -08:00
Vladimir Matveev
a6d374ee21 fixed smart indentation\formatting in template literals 2015-01-20 14:07:01 -08:00
Jason Freeman
89f36bb9c5 Disallow computed properties referencing type parameters from containing type 2015-01-19 18:44:15 -08:00
Yui T
15800b7d78 Merge branch 'master' into fixUnicodeComparisonTest262 2015-01-19 17:00:53 -08:00
Jason Freeman
b5349a5038 Disallow super and fix this capturing for computed properties 2015-01-19 16:37:17 -08:00
Jason Freeman
4cc2722700 Disallow this in computed properties in classes 2015-01-19 16:37:10 -08:00
Jason Freeman
f943f6c486 Adjust error numbers 2015-01-19 16:37:07 -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
96b5f1fe43 Add tests for classes, methods, accessors with computed properties 2015-01-19 16:36:53 -08:00
Jason Freeman
de3eb36b2c Update baselines 2015-01-19 16:36:50 -08:00
Jason Freeman
4ac2b4b9c8 Add tests for object literals with computed properties 2015-01-19 16:36:43 -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
Yui T
c727efd323 Fix unicode comparision and counting error for test262 2015-01-19 15:48:40 -08:00
Anders Hejlsberg
a2ecaf60f0 Merge branch 'master' into tsconfig 2015-01-19 14:50:18 -08:00
Anders Hejlsberg
ee6f2faabb Accepting baselines for corrected error messages 2015-01-15 17:19:22 -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
Anders Hejlsberg
50b0cb98cc Adding missing @module to several fourslash tests 2015-01-15 15:57:48 -08:00
Yui T
6d678b7d4f Merge branch 'master' into addTestsForRestAndDefault 2015-01-15 13:57:25 -08:00
Daniel Rosenwasser
8dd81ea4fc Merge pull request #1673 from Microsoft/unDestructuringParameterProperties
Disallow destructured parameter properties
2015-01-15 13:39:47 -08:00
Daniel Rosenwasser
75a1a8a493 Disallow optional destructured parameters in implementation signatures. 2015-01-14 17:25:46 -08:00
Daniel Rosenwasser
dafe7c8958 Added tests. 2015-01-14 17:02:31 -08:00
Daniel Rosenwasser
e19ebc6d3e Disallow binding patterns in parameter properties. 2015-01-14 16:15:00 -08:00
Daniel Rosenwasser
61e2eb6b89 Renamed tests. 2015-01-14 16:13:12 -08:00
Daniel Rosenwasser
f58e6fc4a1 Fixed incorrect tests. 2015-01-14 16:08:29 -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
fdadd3c18e Fix narrow type for instanceOf and add testcases 2015-01-14 11:30:58 -08:00
Mohamed Hegazy
c3e47979f3 Merge pull request #1661 from DickvdBrink/fix-perftsc
Fix jake perftsc task
2015-01-13 21:32:47 -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
Dick van den Brink
e9f098bdfd Fix jake perftsc task
Added ts module prefix andd depend on types.ts (for ts.Map<string>)
2015-01-14 01:34:17 +01:00
Daniel Rosenwasser
372b0a4e15 Updated parser lookahead for modifiers to anticipate object literals. 2015-01-13 16:24:23 -08:00
Daniel Rosenwasser
b434ee42a8 Added tests. 2015-01-13 16:06:34 -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
Anders Hejlsberg
59e266de02 Improved handing of union types in type guards 2015-01-12 14:51:20 -08: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
Daniel Rosenwasser
6783e35f89 Removed probably-unnecessary statement from test. 2015-01-11 00:21:37 -08:00
Daniel Rosenwasser
22174a17c6 Contextually type parenthesized expressions. 2015-01-09 15:10:32 -08:00