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
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
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
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
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
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
Sheetal Nandi
12370332a1
Show narrowed type in quickInfo/completion entry
...
Fixes #927
2014-11-06 15:20:31 -08:00
Yui T
8a779e1e85
Basic typechecking and emitting for short hand property assignment
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/emitter.ts
2014-11-06 15:01:39 -08:00
Jason Freeman
5164fbc3bd
Merge branch 'master' into computedPropertyName
2014-11-06 11:52:19 -08:00
Jason Freeman
279166be50
Address feedback
2014-11-06 11:51:49 -08:00
Jason Freeman
bc70e4a29d
Make certain types of FunctionLike require block bodies
2014-11-05 18:04:19 -08:00
Jason Freeman
6c85dbe140
Refactor Declaration.name into Identifier | ComputedPropertyName
2014-11-05 17:47:30 -08:00
Vladimir Matveev
edbb99d959
merge with master
2014-11-05 17:34:42 -08:00
Cyrus Najmabadi
cb97682d83
Add the IPropertyNameSyntax.
...
This will help us introduce the ComputedPropertyName concept in the future.
Conflicts:
src/services/syntax/syntaxNodes.concrete.generated.ts
2014-11-05 00:54:53 -08:00
Anders Hejlsberg
d8080a0b46
Merge pull request #1035 from Microsoft/improvedTypeInference
...
Improved type inference (fixes #1011 )
2014-11-04 17:09:31 -08:00
Vladimir Matveev
a8e5aad6e8
use const enums in compiler
2014-11-03 23:31:38 -08:00
Anders Hejlsberg
9d99b47b51
Improved type inferences involving union types
2014-11-02 10:24:34 -08:00
Vladimir Matveev
2d94030f58
inline enum constant values for indexed access when index is string literal
2014-11-01 18:16:48 -07:00
Vladimir Matveev
0b738e86c4
merge with master
2014-11-01 02:06:37 -07:00
Vladimir Matveev
7d80b7186d
do not treat module that contains only const enums as instantiated
2014-11-01 00:56:00 -07:00
Daniel Rosenwasser
63340a0d94
Addressed CR feedback.
2014-10-31 14:53:22 -07:00
Vladimir Matveev
270d18711c
addressed CR feedback
2014-10-30 00:55:44 -07:00