395 Commits

Author SHA1 Message Date
Mohamed Hegazy
e15f4e6d34 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-16 09:30:58 -07:00
Mohamed Hegazy
61549239d8 Fix emitting for const in for loops 2014-10-15 09:20:46 -07:00
Mohamed Hegazy
03a100d039 Do not allow let and const declarations to be exported from a module 2014-10-15 09:15:00 -07:00
Mohamed Hegazy
3e4560147b Allow const in for statements 2014-10-14 17:37:46 -07:00
Mohamed Hegazy
82f5fb4055 Flag const declarations shodowed by var redeclarations 2014-10-14 17:15:11 -07:00
Mohamed Hegazy
f5c2740093 Flag assignments to a const 2014-10-14 16:52:12 -07:00
Mohamed Hegazy
cffc62aa1b Report duplicate identifier errors on all locations for merged declarations to align with local declarations 2014-10-14 15:18:44 -07:00
Mohamed Hegazy
318575ce75 Ensure duplicate let/const declarations accross files are reported 2014-10-14 14:51:28 -07:00
Mohamed Hegazy
1dde985f1d Do not allow use of block-scoped variable before its definition 2014-10-13 22:19:19 -07:00
Mohamed Hegazy
cf89f5cf58 Add binder support for block scoped variable declarations 2014-10-13 20:54:26 -07:00
Anders Hejlsberg
fc842b177e Merge branch 'master' into unionTypes
Conflicts:
	src/compiler/checker.ts
	src/compiler/types.ts
	src/services/services.ts
	tests/baselines/reference/assignmentCompatBetweenTupleAndArray.errors.txt
	tests/baselines/reference/bestCommonTypeOfTuple.types
	tests/baselines/reference/bestCommonTypeOfTuple2.types
	tests/baselines/reference/castingTuple.errors.txt
	tests/baselines/reference/contextualTypeWithTuple.errors.txt
	tests/baselines/reference/genericCallWithTupleType.errors.txt
	tests/baselines/reference/indexerWithTuple.types
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
2014-10-13 12:37:34 -07:00
Anders Hejlsberg
a76a418814 Accepting new baselines 2014-10-13 06:56:58 -07:00
Mohamed Hegazy
6f6f4afeb1 Fix line endings 2014-10-12 21:44:29 -07:00
Mohamed Hegazy
979d45eb67 Disallow let and const declarations outside blocks 2014-10-12 21:43:09 -07:00
Mohamed Hegazy
778f101dea Add basic parsing support for let and const 2014-10-12 21:10:04 -07:00
Mohamed Hegazy
873c1df74b Add es6 target 2014-10-11 12:52:42 -07:00
Anders Hejlsberg
c9a42c19ab Accepting new baselines 2014-10-10 17:01:28 -07:00
Mohamed Hegazy
bdac6ca895 Merge pull request #841 from chrisbubernak/disallowNumericEnumMembers
Fix for issue #134 (Disallow numeric enum members)
2014-10-10 16:24:12 -07:00
Dan Quirk
8ce1760d9e Fixing merge conflicts 2014-10-10 14:49:35 -07:00
Dan Quirk
bacb9d0b22 Test updates from union changes 2014-10-10 14:41:14 -07:00
Cyrus Najmabadi
d003561464 Fix newlines in tests 2014-10-10 14:23:12 -07:00
Yui T
00c30a3ed7 Merge branch 'master' into fixThrowExceptionOnEmitFile 2014-10-09 14:36:48 -07:00
Yui T
6cb7ffb725 Add baseline 2014-10-09 10:34:22 -07:00
ChrisBubernak
2b4f48996e Moved the error check from parser to checker & updated baselines 2014-10-09 08:52:53 -07:00
ChrisBubernak
3d6dc58f85 Merge branch 'disallowNumericEnumMembers' of https://github.com/chrisbubernak/TypeScript into disallowNumericEnumMembers 2014-10-09 08:09:11 -07:00
Sheetal Nandi
58cfc985b9 Merge branch 'master' into symbolInfoFormatting 2014-10-08 18:25:42 -07:00
Yui T
67eff65e03 Add more test cases 2014-10-08 18:15:07 -07:00
Chris Bubernak
16f91b1ef3 fixed error message and updated necessary baselines 2014-10-08 17:23:16 -07:00
Anders Hejlsberg
5c661baddc Accepting new baselines after merge with master
The tuple type tests from master need to be updated to reflect the new
best common type behavior from union types. This commit simply accepts
the baselines as they are.
2014-10-08 15:37:01 -07:00
Anders Hejlsberg
ea4cbbee4e Merge branch 'master' into unionTypes 2014-10-08 15:23:37 -07:00
Yui T
40f6b6719f Add baseline 2014-10-08 15:05:58 -07:00
Anders Hejlsberg
fd5b80805e Accepting new baselines
The new baselines all look correct to me, but obviously a number of the
tests need to be updated to reflect union types and the new behavior of
best common type. This commit does not cover that.
2014-10-08 13:48:44 -07:00
Sheetal Nandi
966e697f2a Compiler test case for usage of contextual rest parameter 2014-10-08 12:31:03 -07:00
ChrisBubernak
15c5c77704 Fixing tests and baselines 2014-10-08 11:11:36 -07:00
Yui T
530a5c0650 Merge branch 'master' into getEmitOutputExternalModule 2014-10-07 13:21:19 -07:00
Chris Bubernak
8286b67c09 Fixed another bug in parser & fixed up baselines 2014-10-06 22:27:22 -07:00
Yui T
747ae1b1f5 Add fourslash tests to cover external module case 2014-10-06 18:37:01 -07:00
Sheetal Nandi
2de4ad0335 Merge pull request #818 from Microsoft/sourceMapRelativeDirName
Fixes incorrect path resolution of sources to sourcemap when the directory paths differ in only case
2014-10-06 11:48:10 -07:00
Sheetal Nandi
4cf78744e3 Added test cases for --outDir option 2014-10-06 11:37:08 -07:00
Yui T
0ef3cd1b22 Merge branch 'master' into tupleConformance 2014-10-06 10:39:12 -07:00
Mohamed Hegazy
432fff1362 Merge pull request #823 from chrisbubernak/betterErrorsForBitwiseOperatorsOnBooleans
Fix for issue #712
2014-10-05 09:51:11 -07:00
Chris Bubernak
6044e3aea3 Made fixes based on CR feedback 2014-10-04 10:10:55 -07:00
Chris Bubernak
e6b5591ae9 Updated baselines 2014-10-03 18:50:48 -07:00
Daniel Rosenwasser
c1d15c792b Merge branch 'master' into navbar
Also fixed getSourceText and renamed it to getTextOfNode
2014-10-03 17:44:52 -07:00
Yui T
52f8ae3eec Tuple conformance 2014-10-03 17:37:29 -07:00
Sheetal Nandi
61994a7e62 Show the type information in places where there is no symbol associated 2014-10-03 15:50:38 -07:00
Sheetal Nandi
710bac6d81 Fix the source map directory resolution with non case sensitive file names 2014-10-03 15:10:12 -07:00
Sheetal Nandi
fe8f736207 Enable tests for the case sensitive and non case sensitive path resolution during soucemap path calculation 2014-10-03 15:07:18 -07:00
Yui T
5926a03363 Merge branch 'master' into flagAllDuplication 2014-10-01 14:27:41 -07:00
Mohamed Hegazy
a37106d4da Merge pull request #748 from chrisbubernak/selfReferencingFileError
Fix issue #568 (no error for file self reference)
2014-10-01 13:44:47 -07:00