Commit Graph

659 Commits

Author SHA1 Message Date
Mohamed Hegazy 511c0769ff fix typo 2014-09-15 13:56:41 -07:00
Mohamed Hegazy 4e17787cb5 Do not colorize a keyword following an identifier.<newLine> as it is likely an error scenario as the user is typing 2014-09-15 13:55:50 -07:00
Mohamed Hegazy 5d577df69e Add better error recovery logic for cases with line ending with "id." followed by a declaration e.g. "class id" 2014-09-15 13:55:39 -07:00
Mohamed Hegazy aa571ff088 Short-circuit semantic operations within with blocks 2014-09-15 13:55:18 -07:00
Mohamed Hegazy 85c6d34047 add basic support for contextual object literal completions 2014-09-15 13:55:01 -07:00
Mohamed Hegazy 57fa018a19 Use scanner APIs to identify if a display name is valid completion entry 2014-09-15 13:54:50 -07:00
Mohamed Hegazy 91b52b271f Support enum and module completions 2014-09-15 13:54:40 -07:00
Mohamed Hegazy 5db12f357f Filter private mebemers in class completions 2014-09-15 13:54:30 -07:00
Mohamed Hegazy 44adc06496 expose getAncestor method 2014-09-15 13:54:19 -07:00
Mohamed Hegazy 1a58afbd9f do not consider keywords tokens for compleation reasons, to allow completion on this and super 2014-09-15 13:54:08 -07:00
Mohamed Hegazy 5149c8f037 handel completion on missing symbols correctelly 2014-09-15 13:53:57 -07:00
Mohamed Hegazy 885569d4e7 Get correct kind for generic symbol completion entries 2014-09-15 13:53:46 -07:00
Mohamed Hegazy 8e0227eba2 Enable completion on expressions 2014-09-15 13:53:35 -07:00
Anders Hejlsberg b4cddc3903 Merge branch 'master' into tupleTypes 2014-09-15 11:04:58 -07:00
Anders Hejlsberg b805037cf2 Improved error messages 2014-09-12 10:23:31 -07:00
Anders Hejlsberg 74536cc6ed Report circular type inference errors with -noImplicitAny 2014-09-12 07:28:49 -07:00
Anders Hejlsberg b61c722eec Merge pull request #649 from Microsoft/propertyAssignmentWidening
Fix widening in object literal property assignments
2014-09-11 13:10:08 -07:00
Daniel Rosenwasser 0af26bcb8b Merge branch 'master' into getOccurrences 2014-09-11 11:11:00 -07:00
Daniel Rosenwasser 480aac9ede Merge branch 'master' into getOccurrences 2014-09-11 11:04:01 -07:00
Jason Freeman fad5650be6 Fix the error spans issue 2014-09-10 17:57:51 -07:00
Jason Freeman c27379827b Add asserts for bounds on diagnostics 2014-09-10 16:44:57 -07:00
Anders Hejlsberg b9ae6cec17 Adding a comment 2014-09-10 13:14:30 -07:00
Anders Hejlsberg 3d92adec7b Fix widening in object literal property assignments 2014-09-10 12:58:30 -07:00
Anders Hejlsberg bf084f159d Merge pull request #640 from Microsoft/contextualSignatureInstantiation
Fix contextual signature instantiation during type inference
2014-09-09 18:46:42 -07:00
Sheetal Nandi 163674d07c Merge pull request #638 from Microsoft/qualificationOfMethods
Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
2014-09-09 16:21:41 -07:00
Anders Hejlsberg 34c4b312f9 Fix contextual signature instantiation during type inference 2014-09-09 15:17:33 -07:00
Daniel Rosenwasser 6cc0305a5d Implemented getOccurrences for 'constructor' keywords. 2014-09-09 14:54:19 -07:00
Anders Hejlsberg e2c3b50ed1 Merge branch 'master' into truncateTypesInErrors
Conflicts:
	src/compiler/checker.ts
2014-09-09 13:51:08 -07:00
Daniel Rosenwasser 83c35ad059 Addressed CR feedback. 2014-09-09 12:50:14 -07:00
Sheetal Nandi 840481da3b Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
Fixes #604
2014-09-09 12:45:10 -07:00
Daniel Rosenwasser 0e93d283e3 Separated 'super'/'this' keyword searching to simplify logic. 2014-09-09 12:41:57 -07:00
Anders Hejlsberg aa58dcbee0 Adding noErrorTruncation compiler option 2014-09-09 12:25:03 -07:00
Mohamed Hegazy f61d07db69 add constructor paramters to Blob 2014-09-08 22:30:01 -07:00
Daniel Rosenwasser 131ac2f188 Disabled findAllRefs for 'this'/'super'. 2014-09-08 17:44:15 -07:00
Mohamed Hegazy 6fee404152 Merge pull request #602 from Microsoft/noImplicitAnyOnCast
Do not show noImplictAny errors when widening for a cast expression
2014-09-08 17:28:49 -07:00
Anders Hejlsberg 9f3d83adeb Truncate long types in error messages 2014-09-08 16:14:43 -07:00
Daniel Rosenwasser 1121e11c45 Basic implementation without tests for findAllRefs/getOccs for 'super' keywords. 2014-09-08 13:52:28 -07:00
Daniel Rosenwasser 5edf075142 Corrected some spelling/grammar issues. 2014-09-08 13:07:45 -07:00
Mohamed Hegazy 06888e86f9 Merge branch 'master' into noImplicitAnyOnCast
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/arrayCast.errors.txt
	tests/baselines/reference/contextualTyping39.errors.txt
	tests/baselines/reference/contextualTyping41.errors.txt
	tests/baselines/reference/fuzzy.errors.txt
	tests/baselines/reference/genericTypeAssertions2.errors.txt
	tests/baselines/reference/genericTypeAssertions4.errors.txt
	tests/baselines/reference/genericTypeAssertions5.errors.txt
	tests/baselines/reference/intTypeCheck.errors.txt
	tests/baselines/reference/typeAssertions.errors.txt
2014-09-08 10:23:37 -07:00
Anders Hejlsberg 59889d871d Corrected codegen to support shadowed module names. 2014-09-06 17:40:19 -07:00
Anders Hejlsberg 2d7d491f4f Merge pull request #618 from Microsoft/typeAssertionErrors
Properly report errors for failed type assertions
2014-09-06 12:19:01 -07:00
CyrusNajmabadi 1eacacdc24 Merge pull request #620 from Microsoft/incrementalParsingBug
Fix incremental parsing bug due to non invalidating cached data in nodes...
2014-09-05 18:06:15 -07:00
Cyrus Najmabadi aeb428e9e5 Fix incremental parsing bug due to non invalidating cached data in nodes. 2014-09-05 17:59:52 -07:00
Anders Hejlsberg 8e7be9ad98 Properly report errors for failed type assertions 2014-09-05 17:09:00 -07:00
Mohamed Hegazy 90ecf811ff Merge pull request #609 from Microsoft/HTMLElementIndexer
Add numeric indexer to HTMLElementCollection
2014-09-05 17:06:10 -07:00
Mohamed Hegazy dd3bb9cc69 Merge branch 'master' into noImplicitAnyOnCast 2014-09-05 16:46:41 -07:00
Mohamed Hegazy b3260653ce move getWidenedType* functions inside the getWidenedType function scope 2014-09-05 16:45:30 -07:00
Mohamed Hegazy 3b6afb8499 respond to code review remarks 2014-09-05 16:41:37 -07:00
Daniel Rosenwasser 024ca6d6ac Addressed CR feedback. 2014-09-05 15:58:22 -07:00
Anders Hejlsberg e157763d6c Merge pull request #610 from Microsoft/circularFunctionExpressions
Circular function expressions
2014-09-05 15:43:44 -07:00