Commit Graph

4491 Commits

Author SHA1 Message Date
Anders Hejlsberg
483afea57f Less aggressive subtype reduction in union types 2014-10-10 16:57:53 -07:00
Yui T
fee4343218 Refactoring emitDeclaration, separate emitDeclaration from emitFiles 2014-10-10 16:44:14 -07:00
Mohamed Hegazy
f5a9feee9f ensure unionProperty symbols have declarations set at creation time 2014-10-10 16:41:05 -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
Sheetal Nandi
6f6be7e0e4 Removed incorrect check of symbolKind determination of undefined symbol 2014-10-10 15:58:33 -07:00
Sheetal Nandi
3715af1a5a Show call and construct signatures when using aliases 2014-10-10 15:52:34 -07:00
Sheetal Nandi
471d80d91e Show better alias information in completion entry and quickInfo 2014-10-10 15:24:19 -07:00
Sheetal Nandi
8ff6251200 Do not use internal aliasing when getting symbol full name to show in quickInfo or completion list 2014-10-10 15:02:48 -07:00
Daniel Rosenwasser
9f32f64a48 Make things more conformant with 9.8.1 of EC-262 spec.
Specifically, a numeric property is simply now any property whose name N is equal to ToString(ToNumber(N)).
2014-10-10 14:12:21 -07:00
Mohamed Hegazy
9f43ac02de respond to code review remarks 2014-10-10 10:59:30 -07:00
Daniel Rosenwasser
b2457bd9b3 Re-added semantic colorization fix for colliding types colliding in value and namespace space, added a test. 2014-10-09 17:02:23 -07:00
Yui T
016c3a0759 Merge branch 'master' into fixThrowExceptionOnEmitFile 2014-10-09 14:53:29 -07:00
Daniel Rosenwasser
c5c05769d7 Merge pull request #865 from Microsoft/undoContextualSemanticClassification
Undid changes where contextual semantics are taken into account.
2014-10-09 14:38:49 -07:00
Daniel Rosenwasser
291982007a Merge branch 'master' into numbersAreHard
Conflicts:
	tests/baselines/reference/numericIndexerConstrainsPropertyDeclarations.errors.txt
2014-10-09 14:38:19 -07:00
Yui T
00c30a3ed7 Merge branch 'master' into fixThrowExceptionOnEmitFile 2014-10-09 14:36:48 -07:00
Yui T
3cb6c9cf45 Add isDeclarationFile and update similar all usage 2014-10-09 14:19:36 -07:00
Daniel Rosenwasser
c79619bce5 Quick edit to comment. 2014-10-09 14:16:19 -07:00
Daniel Rosenwasser
8659dc5ca0 Addressed CR feedback. 2014-10-09 13:54:37 -07:00
Daniel Rosenwasser
8fd1c7915c Undid changes where contextual semantics are taken into account. 2014-10-09 13:38:33 -07:00
Sheetal Nandi
87a92b3dd3 Fixed the bad merge and tests failing because of it 2014-10-09 13:18:08 -07:00
Daniel Rosenwasser
13b5fe0573 Ensure that numeric names are in their printed form. 2014-10-09 12:50:01 -07:00
Mohamed Hegazy
927f04f64f Fix contextually typed object literal proeprties that are not properties of the union type but are properties on of one of its constituant types 2014-10-09 11:16:04 -07:00
Mohamed Hegazy
dc43e83646 Merge branch 'unionTypes' into unionTypesLS
Conflicts:
	src/compiler/checker.ts
	src/services/services.ts
2014-10-09 11:02:57 -07:00
Yui T
ab5f0241eb Fix comments 2014-10-09 10:12:49 -07:00
ChrisBubernak
708ddf19e7 removed old comment 2014-10-09 09:43:40 -07:00
ChrisBubernak
facd52f593 removed hidden tabs + moved check into isNumericName 2014-10-09 09:36:32 -07:00
ChrisBubernak
2b4f48996e Moved the error check from parser to checker & updated baselines 2014-10-09 08:52:53 -07:00
Daniel Rosenwasser
5a49bb610a Handle numeric signs in 'isNumericName'.
To be fair, I don't think humanity knew about negative numbers until like 200 B.C.E.
2014-10-09 00:39:20 -07:00
Mohamed Hegazy
2eb51ab874 Use getRootSymbols for all union property needs 2014-10-08 23:28:17 -07:00
Mohamed Hegazy
779db6e76a Support find all refs on union properties 2014-10-08 23:21:56 -07:00
Sheetal Nandi
279791e99e Merge branch 'master' into symbolInfoFormatting 2014-10-08 19:00:26 -07:00
Sheetal Nandi
58cfc985b9 Merge branch 'master' into symbolInfoFormatting 2014-10-08 18:25:42 -07:00
Yui T
90ed17b21e Fix formatting 2014-10-08 18:18:41 -07:00
Yui T
67eff65e03 Add more test cases 2014-10-08 18:15:07 -07:00
Daniel Rosenwasser
400f6eb654 Merge pull request #859 from Microsoft/useProperMeaningAtLocation
Use proper meanings when requesting information about a node
2014-10-08 17:59:29 -07:00
Sheetal Nandi
4061e02b42 Fixed the typo 2014-10-08 17:58:07 -07:00
Mohamed Hegazy
29c5b402a3 Merge branch 'master' into objectLiteralCompletion 2014-10-08 17:29:47 -07:00
Mohamed Hegazy
2e9a20f8ce Respond to code review comments 2014-10-08 17:29:14 -07:00
Chris Bubernak
16f91b1ef3 fixed error message and updated necessary baselines 2014-10-08 17:23:16 -07:00
Daniel Rosenwasser
92a2c7ff3c Use our own scanner for 'isNumericName'. 2014-10-08 17:12:36 -07:00
Mohamed Hegazy
a8a1fa27d8 Try to pick a good signature, if no signature matches 2014-10-08 15:47:30 -07:00
Daniel Rosenwasser
eb3106d2b7 CR feedback on the checker 2014-10-08 15:44:49 -07:00
Anders Hejlsberg
ea4cbbee4e Merge branch 'master' into unionTypes 2014-10-08 15:23:37 -07:00
Anders Hejlsberg
3a17b02393 Improved type argument inference with union types 2014-10-08 14:25:13 -07:00
Daniel Rosenwasser
3debebe555 Fixed ordering, syntax, addressed CR feedback, made things work. 2014-10-08 14:23:23 -07:00
Sheetal Nandi
063e3aca9f Use string to marshal in SymbolDisplayPartKind instead of enum 2014-10-08 13:51:11 -07:00
Daniel Rosenwasser
712e877762 Make 'getSymbolKind' semantically sensitive to the location of requests. 2014-10-08 12:42:34 -07:00
Sheetal Nandi
b405045106 Code Review feedback: Quick info will show type of undefined as undefined instead of any 2014-10-08 12:20:54 -07:00
Sheetal Nandi
e1b76523b3 Code review feedback - Show the type as any even inside the with block 2014-10-08 12:19:11 -07:00
Yui T
b90c5f2ca4 Address code review 2014-10-08 10:26:39 -07:00