Commit Graph

23471 Commits

Author SHA1 Message Date
Mohamed Hegazy a5a6c6f242 Allow const and let declarations to be exported in modules. Also ensure that const module elements are not used as references. 2014-10-17 15:15:22 -07:00
Anders Hejlsberg 411ca6afab Accepting new baselines 2014-10-17 13:46:41 -07:00
Anders Hejlsberg 766010e531 Parentheses in type literals 2014-10-17 13:45:13 -07:00
Vladimir Matveev 4e84377187 multiline comments support 2014-10-17 13:22:39 -07:00
Mohamed Hegazy 4ef68b9fb0 Respond to code review comments 2014-10-17 10:09:21 -07:00
Mohamed Hegazy fd469d63b1 Fix search for shadowed const declarations by a var declarations to search for any variable instead of only a blockScoped one to ensure we are not picking it up from a wrong scope. 2014-10-17 09:28:42 -07:00
Anders Hejlsberg c00ee42b11 Adding tests 2014-10-16 20:52:36 -07:00
Daniel Rosenwasser ad6203f4a3 Merge pull request #860 from Microsoft/numbersAreHard
Take runtime semantics of numerically named properties into account.
2014-10-16 19:31:41 -07:00
Mohamed Hegazy 2cef9ab852 Merge pull request #907 from Microsoft/rwcRunner
Update Rwc runner
2014-10-16 17:42:35 -07:00
Mohamed Hegazy d0e8350452 import ior utilites 2014-10-16 17:39:05 -07:00
Jason Freeman 8402d1410d Merge pull request #893 from Microsoft/displayBuilder
Extract the write methods into a display builder in the checker
2014-10-16 14:19:38 -07:00
Anders Hejlsberg b435f149aa Merge pull request #905 from Microsoft/langSpecStraightQuotes
Straight quotes in Language Specification
2014-10-16 14:06:05 -07:00
Anders Hejlsberg f5052633a3 Addressing CR feedback and fixing issue with document title 2014-10-16 13:43:34 -07:00
Jason Freeman 3961ad3b82 Merge branch 'master' into displayBuilder
Conflicts:
	src/compiler/checker.ts
2014-10-16 13:32:22 -07:00
Anders Hejlsberg 2e64a22178 Changing word2md tool to map Windows-1252 characters to Unicode 2014-10-16 13:27:48 -07:00
Jason Freeman e0e9fe83d2 Address PR feedback for displayBuilder 2014-10-16 13:11:19 -07:00
Ryan Cavanaugh 24eb35bb48 IOR is a simple script for dealing with IO Replay files 2014-10-16 13:00:14 -07:00
Mohamed Hegazy e561049429 Merge branch 'master' into rwcRunner 2014-10-16 12:37:29 -07:00
Mohamed Hegazy 3aedac4171 disable source map record validation in RWC runner 2014-10-16 12:35:14 -07:00
Anders Hejlsberg c457acf872 Straight quotes in Language Specification 2014-10-16 11:33:03 -07:00
Anders Hejlsberg 87b562c5dc Union types in contextual signature instantiations 2014-10-16 10:30:58 -07:00
Mohamed Hegazy 60bb37be60 Add language service support for const 2014-10-16 10:28:00 -07:00
Mohamed Hegazy e15f4e6d34 Merge branch 'master' into letAndConst
Conflicts:
	src/compiler/types.ts
2014-10-16 09:30:58 -07:00
Daniel Rosenwasser 73d575e317 Merge branch 'master' into numbersAreHard
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations2.errors.txt
2014-10-15 17:07:22 -07:00
Vladimir Matveev c211f97169 Adjust rules to handle interfaces correctly - 19 failing tests 2014-10-15 16:53:59 -07:00
Anders Hejlsberg 49e606a2fd Merge pull request #900 from Microsoft/langSpecUnionTypes
Adding Union Types and Type Guards to Language Specification
2014-10-15 15:48:18 -07:00
Vladimir Matveev 62f464e8bc update baseline 2014-10-15 15:44:01 -07:00
Daniel Rosenwasser ea81831fb3 More comments. 2014-10-15 15:15:08 -07:00
Daniel Rosenwasser d33aa4335f Switched syntactic classifier to use new tree.
Also added tests.
2014-10-15 15:01:38 -07:00
Mohamed Hegazy d94fb10317 Update CONTRIBUTING.md
Add link to pdf version of CLA
2014-10-15 15:00:12 -07:00
Vladimir Matveev c0466b636f fix a few issues in rules 2014-10-15 14:54:49 -07:00
Sheetal Nandi 781661f719 Merge pull request #884 from Microsoft/moveSymbolDisplayPartKindToServices
Move symbolDisplayPartKind to services side
2014-10-15 13:57:58 -07:00
Anders Hejlsberg 881306d3c7 Adding documents with revision marks 2014-10-15 13:53:01 -07:00
Anders Hejlsberg 1b3bbf9d5b Adding PDF document 2014-10-15 13:04:43 -07:00
Sheetal Nandi 730ef1a6e5 Further refactoring the rwc tests 2014-10-15 13:02:40 -07:00
Jason Freeman 672d8e576f Get rid of getRootSymbol and include target's flags in transient symbol's flags 2014-10-15 12:20:22 -07:00
Anders Hejlsberg 60693fcbed Formatting fixes 2014-10-15 12:17:05 -07:00
Mohamed Hegazy 4902d16497 Merge pull request #898 from DickvdBrink/unused-vars2
Removed some unused var statements
2014-10-15 12:04:55 -07:00
Anders Hejlsberg 7a2701b5c5 Adding union types to language specification 2014-10-15 12:04:22 -07:00
Dick van den Brink 648c697257 Removed some unused var statements 2014-10-15 20:11:35 +02:00
Sheetal Nandi 9399e1ea99 Add after block to the describe blocks of project runner and rwc runner 2014-10-15 10:56:43 -07:00
Sheetal Nandi 15e479fa95 Merge branch 'master' into rwcRunner 2014-10-15 10:36:36 -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
Vladimir Matveev 27cb5b0c18 temporary disable smart indentation for type literals, fix computation for end line position 2014-10-14 18:39:51 -07:00
Daniel Rosenwasser 84fbfbad51 Merge pull request #883 from Microsoft/semanticColorizationModules
Fixed semantic colorization for module names on the value side.
2014-10-14 17:38:15 -07:00
Mohamed Hegazy 3e4560147b Allow const in for statements 2014-10-14 17:37:46 -07:00
Jason Freeman 1619738b93 Extract the write methods into a display builder in the checker 2014-10-14 17:30:30 -07:00
Daniel Rosenwasser d266b68f9d Added test case for semantic classification with union types. 2014-10-14 17:29:46 -07:00
Vladimir Matveev b9e5384f10 do not check Missing 2014-10-14 17:19:34 -07:00