274 Commits

Author SHA1 Message Date
CyrusNajmabadi
1b29b51d54 Merge pull request #1268 from Microsoft/generators
Report errors for using yield/generators right now.
2014-11-25 14:02:46 -08:00
Cyrus Najmabadi
d37368e39f Report error on asterisk token. 2014-11-25 13:54:26 -08:00
Yui T
44e6bcf7ff Merge branch 'master' of https://github.com/Microsoft/TypeScript 2014-11-25 10:30:20 -08:00
Yui T
92f8d0ba28 Change the name invokeEmitter back to emitFiles 2014-11-25 10:30:13 -08:00
CyrusNajmabadi
af4a12151c Merge pull request #1261 from Microsoft/contextFlags
Use a separate field on a node to specify parser context flags.
2014-11-25 01:38:51 -08:00
Cyrus Najmabadi
ce2e7fc5d5 Have a node flag to indicate if a yield expression has a *. 2014-11-25 01:11:58 -08:00
Cyrus Najmabadi
626e90ed3f Mark generator functions with an appropriate nodeflag. 2014-11-25 00:45:25 -08:00
Cyrus Najmabadi
bdaccf6f81 Rename parser context flags. 2014-11-25 00:39:15 -08:00
Cyrus Najmabadi
1bf3ba85a2 Initialize enum in a way that makes it clearer that it is a Flags-enum. 2014-11-25 00:23:03 -08:00
Cyrus Najmabadi
7e1a62a8c2 Add support for parsing generator functions and yield expressions. 2014-11-24 22:40:28 -08:00
Cyrus Najmabadi
8a615669e5 Extract context flags into their own enum. 2014-11-24 18:56:53 -08:00
Cyrus Najmabadi
f0b7315a2c Use a separate field on a node to specify parser context flags. 2014-11-24 18:47:49 -08:00
Daniel Rosenwasser
229eb2afc2 Merge pull request #1204 from Microsoft/taggedSigHelp
Tagged Template Signature Help Support in Language Service
2014-11-24 17:48:12 -08:00
Daniel Rosenwasser
ad39bdfb01 Merge branch 'master' into taggedSigHelp
Conflicts:
	src/services/signatureHelp.ts
2014-11-24 16:34:00 -08:00
Cyrus Najmabadi
f6c1fe710e Move 'disallowIn' into being an ambient parser context flag.
This greatly simplifies how we will do incremental parsing.
2014-11-24 14:15:57 -08:00
Sheetal Nandi
77572dab0c Merge remote-tracking branch release-1.3 2014-11-20 20:24:08 -08:00
Sheetal Nandi
f44d0c07d4 Merge branch 'master' into useTypeAnnotationInDeclarationsEmitter 2014-11-20 16:10:14 -08:00
Vladimir Matveev
a6bb527278 merge 2014-11-19 19:59:07 -08:00
Vladimir Matveev
4fb489e64b move checking modifiers out of parser 2014-11-19 19:22:39 -08:00
Cyrus Najmabadi
f605699604 Merge branch 'master' into grammarChecks
Conflicts:
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
	tests/baselines/reference/objectTypesWithOptionalProperties.errors.txt
2014-11-19 17:29:39 -08:00
Cyrus Najmabadi
1a0f32213f Move type parameter error handling code to the grammar checker. 2014-11-19 16:55:18 -08:00
Cyrus Najmabadi
75977add21 Move octal checks to the grammar checker. 2014-11-19 16:32:27 -08:00
Cyrus Najmabadi
f634bc19d8 Expose parse errors and grammar errors off the source file. 2014-11-19 14:29:20 -08:00
Cyrus Najmabadi
9170962998 Move declaration list checking to the grammar checks. 2014-11-19 02:11:17 -08:00
Cyrus Najmabadi
7fb21a25f6 Move catch block checks to the grammar checker. 2014-11-18 23:43:12 -08:00
Yui T
df54db758a Merge branch 'master' into usingShorthand
Conflicts:
	bin/tsc.js
	bin/typescriptServices.js
	src/compiler/parser.ts
2014-11-18 18:25:51 -08:00
Daniel Rosenwasser
780823836c Merge branch 'master' into taggedSigHelp 2014-11-18 17:42:27 -08:00
Cyrus Najmabadi
6fdc5dc148 Move parameter name 'strict' checking to the grammar walker. 2014-11-18 17:01:39 -08:00
Yui T
970aac6458 Address code review 2014-11-18 16:32:18 -08:00
Cyrus Najmabadi
00a49536fe Initial refactoring to support doing grammar checks as a separate pass of the tree.
Right now, this means hiding 'syntacticDiagnostics' behind a getter function that
only computes all the syntactic diagnostics (parser+grammar checks) lazily.

This will help incremental parsing out as we can reuse nodes that have grammar
errors in them, and we dont' have to even do grammar checks if this is not the
full-type-check type-checker.
2014-11-18 15:51:55 -08:00
Mohamed Hegazy
22e2bde7e9 Merge pull request #1158 from gisenberg/master
Adding support for named AMD modules.
2014-11-18 12:18:48 -08:00
Yui T
d50ce1cb47 Refactoring compiler utility-related files to use short-hand 2014-11-18 12:05:40 -08:00
Daniel Rosenwasser
fb91a518cf Merge branch 'master' into taggedSigHelp
Conflicts:
	src/services/signatureHelp.ts
2014-11-17 18:41:50 -08:00
Daniel Rosenwasser
c79c124adb Merge branch 'master' into taggedSigHelp 2014-11-17 12:20:16 -08:00
Yui T
1b66ee6f3a Merge branch 'master' into shorthandProperty
Conflicts:
	src/compiler/checker.ts
2014-11-17 11:35:02 -08:00
Dick van den Brink
e7bb2e0ba7 Merge branch 'master' into warnaserror
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/types.ts
	src/harness/harness.ts
2014-11-16 22:02:00 +01:00
Cyrus Najmabadi
d948510425 Function and constructor types in the syntax tree. 2014-11-14 16:23:51 -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
Yui T
8bd7aae869 Add comment and clean up implementation on findAllReferences 2014-11-13 17:50:34 -08:00
Yui T
a8ebdf0cbd Address code review 2014-11-13 12:02:13 -08:00
Gabriel Isenberg
2302bd23ab Initial support for named AMD modules. 2014-11-12 11:45:43 -08:00
Daniel Rosenwasser
1532f721d0 Initial signature help work for tagged templates. 2014-11-11 17:04:11 -08:00
Sheetal Nandi
60f79da623 Show error for visibility only on the identifier resulting the error 2014-11-10 18:50:28 -08:00
Sheetal Nandi
9ba4d37d7b Emit the type annotation as it is in the declaration file if we have it 2014-11-10 17:01:05 -08:00
Yui T
7e39622d5d Basic implementation for finding all references 2014-11-10 14:55:41 -08:00
Vladimir Matveev
8960ab9712 addressed CR feedback, added comments, dropped unused code 2014-11-10 13:30:00 -08:00
Vladimir Matveev
89dee07bf2 merge with master 2014-11-09 23:23:49 -08:00
Daniel Rosenwasser
6d353c078c Merge branch 'master' into taggedTemplates 2014-11-07 16:24:40 -08:00
Daniel Rosenwasser
986a0b7343 Fixed issues with incomplete calls, cleaned some code up. 2014-11-07 16:23:59 -08:00