Commit Graph

7816 Commits

Author SHA1 Message Date
Daniel Rosenwasser 5c5fca64f0 Just make the compiler option internal. 2015-10-05 23:56:38 -07:00
Daniel Rosenwasser c3e00a24f3 Only use colors if we are certain we are using a pseudoterminal. 2015-10-05 23:38:32 -07:00
Daniel Rosenwasser 2b4febee1c Moved JSX diagnostics to a more sensical spot. 2015-10-05 23:10:13 -07:00
Daniel Rosenwasser 7c73a661c5 Merge branch 'master' into iFeelPrettyErr
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/sys.ts
	src/compiler/tsc.ts
2015-10-05 23:08:59 -07:00
Daniel Rosenwasser ac5bed86b2 Added '--diagnosticStyle' compiler argument with options 'simple' and 'pretty'. 2015-10-05 22:59:34 -07:00
Sheetal Nandi 17fca985cc Fix tslint error 2015-10-05 22:09:32 -07:00
Yui T 80cdfd4187 Fix emitting parenthesis when downlevel 2015-10-05 18:57:11 -07:00
Yui T 7b3de842a0 Update test harness to pick up new ScriptTarget of ES7 2015-10-05 18:56:39 -07:00
Yui T 69dc707c14 Update parse to use new grammar 2015-10-05 18:56:08 -07:00
Sheetal Nandi b580c5588e Merge branch 'master' into tscJsFiles 2015-10-05 16:42:37 -07:00
Ryan Cavanaugh 7280509058 Don't show lib.d.ts line numbers in symbol baselines 2015-10-05 16:37:45 -07:00
zhengbli 3b6f283669 Merge branch Microsoft/master 2015-10-05 16:24:25 -07:00
zhengbli f7e35d5975 Incorporating changes from #3780 2015-10-05 16:19:09 -07:00
Sheetal Nandi 756052a4e0 Removing console logs that were for debugging 2015-10-05 16:06:12 -07:00
Mohamed Hegazy 53cff210fd Merge pull request #5103 from SaschaNaz/formatStringTemplates
Format template internal spaces
2015-10-05 16:01:10 -07:00
Sheetal Nandi db9faf6039 Temp change to investigate test failure 2015-10-05 15:37:13 -07:00
Vladimir Matveev a975895e4d parse/check/emit shorthand property assignment in destructuring 2015-10-05 14:39:57 -07:00
zhengbli 17f0cce772 Update comments 2015-10-05 14:31:43 -07:00
Wesley Wigham 732ec343fc update comment 2015-10-05 14:25:48 -07:00
Wesley Wigham 6c1f3effcb m'lint 2015-10-05 14:14:00 -07:00
zhengbli 7741ec0999 Use fs.watch for all directory watchers and some bug fixes 2015-10-05 14:07:51 -07:00
Wesley Wigham d07e33dd98 Correct output, accept new baselines 2015-10-05 14:06:34 -07:00
Wesley Wigham d8ec703370 merge with master 2015-10-05 13:25:40 -07:00
Wesley Wigham 05dc9daf7d concatenated type emit 2015-10-05 13:22:42 -07:00
zhengbli 9db53f23cf Add directory watcher to tsc 2015-10-05 13:12:13 -07:00
Anders Hejlsberg c7fdc0a6e5 Merge pull request #5099 from Microsoft/deferMemberInstantiation
Defer member instantiation
2015-10-05 12:46:49 -07:00
Sheetal Nandi 460c5978cd Changes in harness to emit expected and actual
to figure out baseline error thats reported only on travis run tests
2015-10-05 12:28:23 -07:00
Sheetal Nandi ce652dc7fb Fixing few code review comments 2015-10-05 12:27:06 -07:00
Wesley Wigham 28475c345d Change prologue emit location to inside module IIFEs 2015-10-05 11:22:16 -07:00
Nathan Shively-Sanders 4ecf4f4e71 Merge pull request #5086 from Microsoft/abstract-semicolon-insertion
Automatic semicolon insertion for class modifiers
2015-10-05 10:35:42 -07:00
Yui T ce7a054407 Update parser with new grammar 2015-10-05 10:34:48 -07:00
Ryan Cavanaugh 1e3125b8ed Merge pull request #5046 from RyanCavanaugh/fix4675
Handle indirect imports of JSX elements from external modules
2015-10-05 10:28:07 -07:00
zhengbli 7fa26adf28 Redesigned directory watchers 2015-10-05 02:58:40 -07:00
Vladimir Matveev 6120f1f3da fix linter issues 2015-10-04 22:45:08 -07:00
Vladimir Matveev 32b1ad36ec do not emit exportsStar function if module does not expose any values 2015-10-04 22:00:57 -07:00
SaschaNaz c9e237c2b3 Format template internal spaces 2015-10-05 07:02:22 +09:00
SaschaNaz d0a20c7fbc Merge remote-tracking branch 'Microsoft/master' into tsconfigpath 2015-10-05 04:55:31 +09:00
Anders Hejlsberg 676a271aab Defer instantiation of members of instantiated anonymous types 2015-10-03 18:08:29 -07:00
Vladimir Matveev eb04f32e0e Merge branch 'master' into reachabilityChecks 2015-10-03 00:30:26 -07:00
Vladimir Matveev f0f5a0d71e updated command line options, accepted baselines 2015-10-03 00:20:15 -07:00
Yui T 1326ba9820 Update grammar to error on none-parenthesis 2015-10-02 19:23:58 -07:00
Yui T 5f7914ca62 Downlevel emit 2015-10-02 18:50:45 -07:00
Wesley Wigham 03256e7c86 cusotm tests, forbid umd 2015-10-02 17:43:58 -07:00
Wesley Wigham 4c4087c656 Add compiler error for incompatible module formats 2015-10-02 17:03:29 -07:00
Ron Buckton 331d26f402 Merge pull request #4741 from Microsoft/es3Decorators
Allow decorators in ES3
2015-10-02 16:22:14 -07:00
Daniel Rosenwasser d8d72aabae Separated the concept of apparent types from contextual types for string literal types.
In most cases, expressions are interested in the apparent type of the
contextual type. For instance:

    var x = { hasOwnProperty(prop) { /* ... */ };

In the above, 'prop' should be contextually typed as 'string' from the
signature of 'hasOwnProperty' in the global 'Object' type.

However, in the case of string literal types, we don't want to get the
apparent type after fetching the contextual type. This is because the
apparent type of the '"onload"' string literal type is the global 'String'
type. This has adverse effects in simple assignments like the following:

    let x: "onload" = "onload";

In this example, the right-hand side of the assignment will grab the type
of 'x'. After figuring out the type is "onload", we then get the apparent
type which is 'String'. This is problematic because when we then check the
assignment itself, 'String's are not assignable to '"onload"'s.

So in this case, we grab the contextual type *without* getting its
apparent type.
2015-10-02 16:05:32 -07:00
Nathan Shively-Sanders be9548ade9 Merge branch 'master' into abstract-semicolon-insertion 2015-10-02 15:46:02 -07:00
Daniel Rosenwasser f721971063 Capture compatible contextual types for unions containing string literals. 2015-10-02 15:41:12 -07:00
Wesley Wigham e16a14b5b3 tslint had a new release and added this rule, theirs was a little stricter 2015-10-02 15:15:39 -07:00
Daniel Rosenwasser a3e7ccb108 Use normalized text for text on string literal types. 2015-10-02 15:00:46 -07:00