Commit Graph
769 Commits
Author SHA1 Message Date
Daniel Rosenwasser 34087bd9ec Refactored code, adjusted for residing out of bounds of the template. 2014-11-17 15:13:58 -08:00
Daniel Rosenwasser c79c124adb Merge branch 'master' into taggedSigHelp 2014-11-17 12:20:16 -08:00
Vladimir Matveev 9a5df8585b scan starting from the beginning of target span 2014-11-14 22:34:36 -08:00
Daniel Rosenwasser 6f8f79efe2 Got sig help working in tagged no-sub templates. 2014-11-14 17:30:19 -08:00
Daniel Rosenwasser 64960cf873 Got sig help working in the template head. 2014-11-14 17:13:00 -08:00
Vladimir Matveev 4609d242cf formatting: handle templates spans 2014-11-14 14:36:52 -08:00
Daniel Rosenwasser 4bf023982c Merge branch 'master' into taggedSigHelp 2014-11-14 13:09:09 -08:00
Vladimir Matveev 23e35bcfc1 Merge branch 'master' into formatting_scanner 2014-11-14 11:01:17 -08:00
Vladimir Matveev 9e9f94abbb code cleanup: added comments 2014-11-14 11:00:28 -08:00
CyrusNajmabadi bc40997aed Merge pull request #1129 from Microsoft/yieldExpressions
Parsing support (including incremental parsing) for 'yield' expressions.
2014-11-13 16:44:29 -08:00
Cyrus Najmabadi f7890d4ddb When entering a type context, 'yield' should be allowed (as long as you're not in strict mode). 2014-11-12 19:09:09 -08:00
Cyrus Najmabadi 9e273ddb78 Add support for [GeneratorParameter] grammar parameter. 2014-11-12 18:10:36 -08:00
Cyrus Najmabadi a496ade945 Update context names. 2014-11-12 18:10:21 -08:00
Daniel Rosenwasser 15560a80ea Stylistic changes/comment fixups. 2014-11-12 16:31:37 -08:00
Daniel Rosenwasser 0a6dbe3b30 Merge branch 'master' into taggedSigHelp 2014-11-12 15:49:18 -08:00
Daniel Rosenwasser d951388cdf Merge branch 'master' into taggedSigHelp 2014-11-12 15:47:56 -08:00
Daniel Rosenwasser 32f6cf33ce Corrected token start position calculation & nodeHasTokens predicate. 2014-11-12 15:10:57 -08:00
Cyrus Najmabadi 122cf8a52c Add clarifying comments. 2014-11-11 21:19:06 -08:00
Cyrus Najmabadi 9c48b23f43 Fix spelling mistakes, and remove unused function. 2014-11-11 19:19:44 -08:00
Cyrus Najmabadi 7ab80d260e Add support for parsing yield expressions.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-11 19:03:02 -08:00
Cyrus Najmabadi 6895efc7c5 Function property assignments can also be generators.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-11 19:02:12 -08:00
Cyrus Najmabadi e0c93a1c08 Add support for parsing generator declarations.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-11 19:01:33 -08:00
Cyrus Najmabadi ecfc60ff16 Update comment 2014-11-11 19:00:57 -08:00
Cyrus Najmabadi e5b997c530 Provide more consistent behavior in how parseFunctionBlock works. 2014-11-11 19:00:35 -08:00
Cyrus Najmabadi be202a4e71 Spec conformance for function blocks versus statement blocks. 2014-11-11 19:00:12 -08:00
Cyrus Najmabadi 95a7437ba0 Clean up function names. 2014-11-11 18:55:58 -08:00
Daniel Rosenwasser 1532f721d0 Initial signature help work for tagged templates. 2014-11-11 17:04:11 -08:00
Sheetal Nandi 37d84996db Fix the completion entry for __proto
Fixes #850
2014-11-11 15:56:56 -08:00
Vladimir Matveev f53254b538 if preceding token cannot be found - scan from the beginning of enclosing node 2014-11-11 13:25:54 -08:00
Vladimir Matveev 31763a31d3 code cleanup: moved captured locals to parameters 2014-11-11 13:17:57 -08:00
Vladimir Matveev 4c5d1fb2d6 code cleanup: move code from lambda into separate functon 2014-11-11 13:05:49 -08:00
Cyrus Najmabadi ba11e68ac3 CR feedback. 2014-11-10 23:44:31 -08:00
Cyrus Najmabadi 766cb28a3e Keep track of 'disallowIn' as an ambient parser flag instead of having to pass it along everywhere.
Conflicts:
	src/services/syntax/parser.ts
2014-11-10 19:07:20 -08:00
Vladimir Matveev 29497b8933 add comments, update fourslash tests 2014-11-10 19:04:57 -08:00
Vladimir Matveev 7c67759ecf merge with master 2014-11-10 17:24:22 -08:00
Vladimir Matveev 068e58965b code cleanup: add more comments, rename methods 2014-11-10 17:16:28 -08:00
Vladimir Matveev d6769ae090 make smart indenter respect actual start line of the list 2014-11-10 16:33:53 -08:00
Sheetal Nandi 04e2169f03 Merge pull request #1116 from Microsoft/normalizeSlashes
Consolidate normalizing slashes from harness to use it from typescript core.ts
2014-11-10 16:28:11 -08:00
Sheetal Nandi 45e4e16afc Consolidated normalizing slashes to use from typescript core in services 2014-11-10 16:09:00 -08:00
CyrusNajmabadi 25e28b22a1 Merge pull request #1105 from Microsoft/trailingTrivia
Trailing trivia
2014-11-10 15:52:30 -08:00
Mohamed Hegazy 03c80ac8b3 set the correct range for paramters in signature help 2014-11-10 15:09:16 -08:00
Vladimir Matveev 0e5d7aad68 code cleanup: removed unused code 2014-11-10 14:42:06 -08:00
Vladimir Matveev 8960ab9712 addressed CR feedback, added comments, dropped unused code 2014-11-10 13:30:00 -08:00
Cyrus Najmabadi 8262bc24ec Body is optional.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:14:04 -08:00
Cyrus Najmabadi 3174cbca0a Use union types to make For/ForIn statements simpler.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:04:26 -08:00
Cyrus Najmabadi 2288f4268f Simplify API for nodes that have both a block and an expression.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:04:02 -08:00
Cyrus Najmabadi f59cb6044d Simplify API for nodes htat have both a block and a semicolon token.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:03:40 -08:00
Cyrus Najmabadi 535dc0dc46 Simplify module name parsing.
Conflicts:
	src/services/syntax/SyntaxGenerator.js.map
2014-11-10 01:03:02 -08:00
Cyrus Najmabadi fc25dfbf1a Simplified parsing. 2014-11-10 01:02:23 -08:00
Cyrus Najmabadi b83c37a764 Tiny perf tweaks to scanning. 2014-11-10 01:02:08 -08:00