Commit graph

419 commits

Author SHA1 Message Date
Adam Freidin
d43f28d3a0 baseline for typechecking --declaration 2014-08-15 21:15:41 -07:00
Daniel Rosenwasser
5c59360ef7 Merge branch 'master' into diagnosticsCleanup 2014-08-15 17:17:27 -07:00
Sheetal Nandi
94e0d953c5 Makes sure leading comments are emitting only once 2014-08-15 15:52:30 -07:00
Sheetal Nandi
c4b22d338f Emit comments for expression statements 2014-08-15 15:49:09 -07:00
Sheetal Nandi
0a75cc2926 Emit comments for if statement 2014-08-15 15:32:43 -07:00
Sheetal Nandi
1b5023bad3 Emit leading/trailing comments for return statement
Note the detachedComments and copyright headers comment emitting is not part of this change
2014-08-15 15:16:17 -07:00
Cyrus Najmabadi
323ecebf81 Add todo comment tests. 2014-08-15 14:47:10 -07:00
Jason Freeman
27bf9b702e Accept type baselines 2014-08-15 14:37:48 -07:00
Jason Freeman
971a4c55d4 Remove problematic test (should be added back after issue #463 is fixed) 2014-08-15 14:37:38 -07:00
Jason Freeman
8d13a65d8b Fix test chainedImportAlias to use all of its file regions 2014-08-15 14:37:36 -07:00
Sheetal Nandi
6ab3adfd43 Modified the emitComment logic to handle emitting leading or trailing spaces depending on flags
Leading comments have trailing separator while trailing comments have leading space
This removes the extra trailing space in the trailing comments
2014-08-15 14:32:08 -07:00
Sheetal Nandi
45e8ff8467 Emit the new line before leading declaration comments in the declaration file if source code had it 2014-08-15 14:21:41 -07:00
Sheetal Nandi
bb638db18d Test cases for trailing comments for import declaration 2014-08-15 13:57:55 -07:00
Sheetal Nandi
720fae1699 Test cases for trailing comments for modules 2014-08-15 13:53:39 -07:00
Sheetal Nandi
4983252056 Test case for trailing comment of enum 2014-08-15 13:50:47 -07:00
Sheetal Nandi
a9092c331d Test cases for trailing comments for class and constructor 2014-08-15 13:49:05 -07:00
Sheetal Nandi
f1df7589ff Test cases for trailing comments for properties 2014-08-15 13:46:20 -07:00
Sheetal Nandi
d8e11e7d25 Test cases for trailing comments for functions and methods 2014-08-15 13:40:48 -07:00
Sheetal Nandi
f2620a4c3d Test cases for trailing comments of accessors 2014-08-15 13:33:24 -07:00
Sheetal Nandi
48c3abd445 Test cases for trailing comments of object literal 2014-08-15 13:30:26 -07:00
Sheetal Nandi
3dd21fc3a7 Trailing comment tests for parameters, fixes the trailing // comments and parameter indentation 2014-08-15 13:18:54 -07:00
Sheetal Nandi
1b64519d52 Tailing Comments for var declarations 2014-08-15 12:44:31 -07:00
Sheetal Nandi
29dcc5ba41 Start leading comments on new line if the comment starts on different line as node 2014-08-15 12:17:36 -07:00
Sheetal Nandi
adc700aba5 Emit space before emitting trailing comments 2014-08-14 16:36:33 -07:00
Sheetal Nandi
f428a16680 Fix the trailing comments for variable declaration and function/arrow expressions 2014-08-14 16:32:21 -07:00
Sheetal Nandi
e76d8f36b6 Align the multiline comments in the generated outputs by retaining its position relative to the first line in the comment 2014-08-14 14:43:28 -07:00
Sheetal Nandi
0caa1f6dc7 Emit trailing comments 2014-08-14 09:47:50 -07:00
Sheetal Nandi
c949543f49 Fix the indent for the parameter and typeparameter emit in .d.ts file 2014-08-14 09:38:22 -07:00
Sheetal Nandi
b8bbb0d547 Declaration comments for parameters in .d.ts file 2014-08-14 09:35:58 -07:00
Sheetal Nandi
6bf73a691a Declaration comments for call, constructo and index signatures in .d.ts 2014-08-14 09:12:20 -07:00
Sheetal Nandi
d970c89856 Declaration comments for function declarations in .d.ts 2014-08-14 09:08:53 -07:00
Sheetal Nandi
758fc937e4 Declaration comments for accessors in .d.ts 2014-08-14 09:01:38 -07:00
Sheetal Nandi
83ea28cf39 Declaration comments for the variable declaration in .d.ts 2014-08-14 08:57:28 -07:00
Sheetal Nandi
77a336689f Declaration comments for the property declaration in .d.ts 2014-08-14 08:53:02 -07:00
Sheetal Nandi
5f8f184f9a Declaration comments for the interface declaration in .d.ts 2014-08-14 08:50:17 -07:00
Sheetal Nandi
84dc3ff419 Declaration comments for the class declaration in .d.ts 2014-08-14 08:47:21 -07:00
Sheetal Nandi
ca1eb9fa8d Fix the compiler runner to handle comments flag to determine if it is --removeComments 2014-08-14 08:43:45 -07:00
Sheetal Nandi
a828507e4e Declaration comments for the type parameter declaration in .d.ts 2014-08-14 08:23:42 -07:00
Sheetal Nandi
93790c5709 Declaration comments for the enum member declaration in .d.ts 2014-08-14 08:02:03 -07:00
Sheetal Nandi
bf2f795807 Declaration comments for the enum declaration in .d.ts 2014-08-14 07:59:41 -07:00
Sheetal Nandi
95a473c6e6 Declaration comments for the module declaration in .d.ts 2014-08-14 07:56:46 -07:00
Sheetal Nandi
5accc9962a Write JsDoc comments for ImportDeclaration in .d.ts file 2014-08-14 07:48:14 -07:00
Sheetal Nandi
ea238c47e8 Comments for import declaration 2014-08-14 06:57:59 -07:00
Sheetal Nandi
c9d16b002d Comments for module declaration 2014-08-14 06:53:37 -07:00
Sheetal Nandi
84fa5b421a Emit commens for enum and enum members 2014-08-14 06:48:40 -07:00
Sheetal Nandi
6d6f27cdce Emit comments for class and constructor 2014-08-14 06:42:18 -07:00
Sheetal Nandi
72cff32c96 Emit comments for properties 2014-08-14 06:31:00 -07:00
Sheetal Nandi
86c2f2c444 Emit comments for function and method declarations 2014-08-14 06:21:30 -07:00
Sheetal Nandi
c9b7c63b63 Emit comments for accessors 2014-08-14 06:12:14 -07:00
Sheetal Nandi
d815c14943 Emit the property assignment comments of the object literal 2014-08-14 05:57:24 -07:00
Sheetal Nandi
871507e386 Emit leading and trailing comments for parameter 2014-08-14 05:47:38 -07:00
Sheetal Nandi
3e95358486 Emit comments in the javascript code if --removecomments is not specified 2014-08-14 05:41:04 -07:00
Sheetal Nandi
f622cb4d11 Merge pull request #381 from branch 'remote/privacyErrors'
Report privacy errors on variable/property declarations and also emit import declarations that get used to defined visible type
2014-08-13 18:48:05 -07:00
Anders Hejlsberg
f0b33b345b Accepting new baselines. 2014-08-13 15:45:43 -07:00
Mohamed Hegazy
85b53c74d1 Merge branch 'master' into classifier 2014-08-12 21:43:38 -07:00
Mohamed Hegazy
2a106bf923 Merge pull request #427 from sparecycles/fix/reference-static-regex
fix: /// <reference path="..." static='true' />
2014-08-12 17:46:06 -07:00
Mohamed Hegazy
bc61807d85 Merge pull request #443 from Microsoft/fourslash
Reenable Fourslash tests after they have been accidentlly disabled
2014-08-12 17:45:04 -07:00
Mohamed Hegazy
a8df9c1586 update test 2014-08-12 17:43:15 -07:00
Mohamed Hegazy
c16d0df7b2 Disable test as it needs resolution which the test harness does not support yet 2014-08-12 17:43:02 -07:00
Vladimir Matveev
ccaf904cfa support outlining for arbitrary blocks 2014-08-12 15:47:57 -07:00
Daniel Rosenwasser
90c173dd16 Merge branch 'master' into diagnosticsCleanup 2014-08-12 14:59:01 -07:00
Adam Freidin
785b80ff27 baseline update
jake runtests
jake baseline-accept
2014-08-12 13:57:47 -07:00
Anders Hejlsberg
d3621bf042 Merge pull request #436 from Microsoft/improvedArrayErrors
Rearranging members of Array<T> to improve error reporting.
2014-08-12 13:07:00 -07:00
Vladimir Matveev
551a532f5d Merge pull request #430 from Microsoft/outlining
enable outlining atop of new compiler
2014-08-12 11:59:14 -07:00
Anders Hejlsberg
e0a4b3c1cc Rearranging members of Array<T> to improve error reporting. 2014-08-12 11:13:15 -07:00
Adam Freidin
5e2316d642 added tests for <reference path="" static='' /> 2014-08-11 16:34:31 -07:00
Mohamed Hegazy
349367d991 Consolidate logic to use the lib in one location in the tests 2014-08-11 15:35:15 -07:00
Anders Hejlsberg
3b1dbadb88 Addressing CR feedback, adding baselines. 2014-08-11 14:52:32 -07:00
Sheetal Nandi
98f631e23f Make changes to report error if the type used from external module cannot be named
Adds test cases too
2014-08-11 14:15:57 -07:00
Vladimir Matveev
785c083888 enable outlining atop of new compiler 2014-08-11 13:15:07 -07:00
Anders Hejlsberg
5b255243c9 Adding support for tuple types (e.g. [number, string]) 2014-08-11 12:21:26 -07:00
Sheetal Nandi
e27e6b2bbb During qualification if we are looking in value space, the left qualifier meaning is also value 2014-08-08 17:07:00 -07:00
Mohamed Hegazy
be47b94c8f clean up tests 2014-08-08 16:45:10 -07:00
Mohamed Hegazy
17c45ed986 revert changes to classify a keyword as an identifier if the last token is keyword 2014-08-08 16:43:31 -07:00
Sheetal Nandi
09ea12d95c Use typeof function in the declaration emitter instead of unwinding first level 2014-08-08 16:15:09 -07:00
Sheetal Nandi
1347621d0c Report error if the entityname reference in the import declaration is using private module 2014-08-08 13:56:53 -07:00
Sheetal Nandi
c643f39557 Check for the accessible symbol from exported import
eg:
// @Filename: w1.ts
export = Widget1
class Widget1 { name = 'one'; }

// @Filename: exporter.ts
export import w = require('./w1');

// @Filename: consumer.ts
import e = require('./exporter');

export function w(): e.w { // Should be OK
    return new e.w();
}

In this looking for the name of return type of function w,
not just look for the alias == SymbolOfReturnType but also
look for alias.exportedSymbols === symbolOfReturnType
and qualify it during the toString
2014-08-08 12:57:59 -07:00
Mohamed Hegazy
a90c62bf8b Merge branch 'master' into tsc 2014-08-08 12:56:46 -07:00
Mohamed Hegazy
ad9a87dfb6 Add some huristic optimization to not colorize a keyword if precceded by a dot or a keyword. this should handel cases for "a.var" or "module string { }" 2014-08-08 10:37:10 -07:00
Mohamed Hegazy
bae6ddd1b5 add unterminated multiline comment classification tests 2014-08-07 23:51:15 -07:00
Mohamed Hegazy
38cacc967f Enable unit tests for DocumentRegistry 2014-08-07 23:45:43 -07:00
Mohamed Hegazy
d502ae20e5 move formatting unit tests to a diffrent folder 2014-08-07 23:45:23 -07:00
Mohamed Hegazy
05d2e75e7c delete unused tests 2014-08-07 23:45:13 -07:00
Mohamed Hegazy
3fcd33ec32 Enable clorizer unit tests 2014-08-07 23:45:03 -07:00
Sheetal Nandi
54f5f15796 Update the project runner to emit errors in more readable way 2014-08-07 17:49:47 -07:00
Sheetal Nandi
2264322380 Enable project runner to compile generated .d.ts files
Uncovered bug in quoted .d.ts compilation
2014-08-07 17:26:29 -07:00
Daniel Rosenwasser
122b78612c Recovered deleted, renumbered existing, reworded some. 2014-08-07 15:59:49 -07:00
Daniel Rosenwasser
0c0d607087 Removed duplicate messages from diagnosticMessages.json. 2014-08-07 15:59:44 -07:00
Sheetal Nandi
5657c28b8b Fix the incorrect declaration file path during d.ts file compile in the compilerrunner 2014-08-07 14:59:00 -07:00
Sheetal Nandi
cac18738df Removing bug numbers from the testcases which are fixed and adding declaration generation in few testcases 2014-08-07 14:47:49 -07:00
Sheetal Nandi
4801c3447f Emit the declarations for the chained import usage in the export assignment 2014-08-07 12:24:28 -07:00
Jason Freeman
92f7c98adb Merge branch 'master' into octal 2014-08-07 12:11:13 -07:00
Jason Freeman
b1f71e6504 Address feedback 2014-08-07 12:08:31 -07:00
Vladimir Matveev
02d0b024c6 Merge pull request #378 from Microsoft/inherited_overloads_with_specialized_signatures
do not reorder signatures from derived and base types
2014-08-07 10:35:47 -07:00
Vladimir Matveev
d99fe9f2b7 adjust perftc to match the most recent implementation of createSourceFile 2014-08-06 23:58:20 -07:00
Vladimir Matveev
cc52e1f428 Handle sys.exit in perftc 2014-08-06 23:53:42 -07:00
Mohamed Hegazy
9d8cee1f72 rename tc.js to tsc.js 2014-08-06 23:21:53 -07:00
Mohamed Hegazy
9e6cacb701 Merge branch 'master' into bom 2014-08-06 22:50:40 -07:00
Vladimir Matveev
702b27b3ca fixed build breaks in perftc 2014-08-06 22:42:35 -07:00
Sheetal Nandi
2654eed32d Report privacy errors for accessors 2014-08-06 18:42:14 -07:00
Jason Freeman
083815893b Add test for octal literals in es3 strict mode 2014-08-06 18:10:19 -07:00
Jason Freeman
72cf78f681 Error on octal literals in ES5 and strict mode 2014-08-06 18:10:16 -07:00
Jason Freeman
60e7f0850a Add es5 directive on scanner es5 tests 2014-08-06 18:10:13 -07:00
Jason Freeman
f744113edf Scan octal literals 2014-08-06 18:10:11 -07:00
Sheetal Nandi
4cd2d3f8dd Report privacy errors on return types 2014-08-06 17:58:03 -07:00
Sheetal Nandi
41150776d1 Report privacy errors on parameter types 2014-08-06 17:06:59 -07:00
Sheetal Nandi
4b12353a78 Test case for the privacy check of variables and properties during declaration emit 2014-08-06 15:17:44 -07:00
Sheetal Nandi
5810bfed6d Ambient module declarations (exception import declaration) are visible 2014-08-06 15:13:06 -07:00
Mohamed Hegazy
3295cdaa19 rename test 2014-08-06 14:33:06 -07:00
Mohamed Hegazy
9222711ace change name of the flag to emitBOM 2014-08-06 14:24:47 -07:00
Vladimir Matveev
236e24b468 do not reorder signatures from derived and base types 2014-08-06 13:39:09 -07:00
Sheetal Nandi
5d21db9ccf Test baselines after asynchronous alias declaration writing 2014-08-06 13:16:41 -07:00
Sheetal Nandi
0b227d5196 Test baselines because of change 2014-08-06 13:12:34 -07:00
Mohamed Hegazy
f125ee20bb Merge branch 'master' into bom
Conflicts:
	src/compiler/commandLineParser.ts
	src/compiler/emitter.ts
2014-08-06 12:55:57 -07:00
Mohamed Hegazy
a4a773a352 make the BOM visible in the test output 2014-08-06 12:36:39 -07:00
Mohamed Hegazy
35c1577ff5 Add tests for generateBOM switch 2014-08-06 12:05:01 -07:00
Sheetal Nandi
5c4009a163 Merge pull request #161 from Microsoft/privacyErrors
Report errors for usage of private types when generating declaration file
2014-08-06 11:51:55 -07:00
Anders Hejlsberg
a2a6b8a410 Support extensionless <reference> comments.
Fixes #344.
2014-08-05 14:32:53 -07:00
Daniel Rosenwasser
40f6ed0b65 Merge pull request #262 from Microsoft/trylessCatchesFinallyParseNicely
Improved errors for 'catch'/'finally' blocks missing 'try' statements
2014-08-04 15:56:20 -07:00
Mohamed Hegazy
ab05b75297 Merge pull request #326 from Microsoft/getDefinition
Wire getDefinitionAtPosition using the new compiler implementation
2014-08-04 15:11:58 -07:00
Vladimir Matveev
017a76bd85 Merge pull request #357 from Microsoft/specialized_signatures
fixed check for call\construct signatures in interfaces
2014-08-04 15:11:44 -07:00
Vladimir Matveev
059b57f417 fixed check for call\construct signatures in interfaces 2014-08-04 14:37:24 -07:00
Mohamed Hegazy
1667894ec6 Merge branch 'master' into getDefinition 2014-08-04 12:52:27 -07:00
Sheetal Nandi
0e76a82072 Fix the incorrect error reporting and declaration file emit for the type parameter constraint of private methods
Also incorporates code review feedback
2014-08-04 12:06:07 -07:00
Anders Hejlsberg
9a5324347e Merge pull request #330 from Microsoft/pullContextualTypes
Pull model for contextual types
2014-08-04 11:51:23 -07:00
Anders Hejlsberg
52ca6071c9 Merge pull request #333 from Microsoft/fixContainerList
Properly build container list in binder.
2014-08-03 15:23:10 -07:00
Mohamed Hegazy
8956c4947c update test to add true and false values 2014-08-01 17:15:25 -07:00
Mohamed Hegazy
e2b02c6bdd Add new go to def test 2014-08-01 17:12:00 -07:00
Mohamed Hegazy
41b7eb25a3 Make goto def jump to labels across function boundries 2014-08-01 17:11:41 -07:00
Anders Hejlsberg
afe3abde5b Adding test output file. 2014-08-01 15:24:02 -07:00
Anders Hejlsberg
cb038467d6 Adding regression test for #325 2014-08-01 15:20:08 -07:00
Mohamed Hegazy
e6f930b53a support goto def on object literal properties 2014-08-01 15:09:12 -07:00
Ryan Cavanaugh
fedbc1cd9e Fix compile errors in fourslash tests 2014-08-01 14:36:18 -07:00
Mohamed Hegazy
205974d453 Add new GotoDefinition tests 2014-08-01 14:29:42 -07:00
Mohamed Hegazy
76bca3a766 Add support for goto def on external module name 2014-08-01 13:07:52 -07:00
Ryan Cavanaugh
acd3ba35cc Remove debugger statements from fourslash tests 2014-08-01 13:05:23 -07:00
Mohamed Hegazy
a303c1eb27 Update getSymbolOfIdentifier to ensure we are gettting the alas symbol in both type and value positions 2014-08-01 12:55:20 -07:00
Vladimir Matveev
c0b3efbbb4 emit this capturing as a first action in the constructor 2014-08-01 11:16:09 -07:00
Mohamed Hegazy
c406662bc4 Wire getDefinitionAtPosition using the new compiler implementation 2014-07-31 19:58:18 -07:00
Mohamed Hegazy
61436368b5 Merge branch 'master' into ls 2014-07-31 18:43:53 -07:00
Anders Hejlsberg
352a44df3f Accepting new baselines.
Previous commit fixes overly aggressive -noImplictAny reporting. In the test case the source
of the error is the 'getAndSet' property that implicitly gets type any. The fact that the setter
then gets type any isn't actually an error.
2014-07-31 15:56:00 -07:00
Daniel Rosenwasser
add65f1f29 Merge branch 'master' into trylessCatchesFinallyParseNicely
Conflicts:
	src/compiler/diagnosticMessages.json
2014-07-31 14:49:14 -07:00
Daniel Rosenwasser
3ba4ad55c0 Merge pull request #320 from Microsoft/slashInCharClass
Fixed error when parsing slashes in RegExp literals.
2014-07-31 14:33:58 -07:00
Vladimir Matveev
fee596b2d5 added test for skipped node case 2014-07-31 12:01:46 -07:00
Vladimir Matveev
ed26563146 Merge pull request #317 from Microsoft/order_of_overloads
Disallow statements between overloads
fixed #75 and #92
2014-07-31 11:37:34 -07:00
Vladimir Matveev
a62b47eace addressed CR feedback: changed error message 2014-07-31 11:06:42 -07:00
Daniel Rosenwasser
35803db2e6 Fixed error when parsing slashes in RegExp literals.
Basically we weren't recognizing that a slash can occur in a character class, so we were bailing out too early on code like `/[/]/`.

Fixes issue #318.
2014-07-31 00:36:50 -07:00
Vladimir Matveev
59b1e46102 disallow statements between overloads 2014-07-30 16:27:13 -07:00
Anders Hejlsberg
8199b0b236 Pull model for contextual types.
New baselines reflect a couple of unrelated bug fixes.
2014-07-29 18:21:16 -07:00
Daniel Rosenwasser
ef5ae6e969 Merge pull request #273 from Microsoft/es3HatesTrailingCommas
No longer emit trailing comma on object literals for ES3.
2014-07-29 16:31:17 -07:00
Daniel Rosenwasser
c5349dc95f Accept object literal commas in ES3, preserve in ES5. 2014-07-29 16:25:10 -07:00
Mohamed Hegazy
990669972a update error positions after rebase 2014-07-29 15:28:25 -07:00
Mohamed Hegazy
648af3801a react to changes after rebase 2014-07-29 12:35:26 -07:00
Mohamed Hegazy
4ad7452a58 Enable passing fourslash tests 2014-07-29 12:17:44 -07:00
Mohamed Hegazy
85393abfd9 enable formatting tests 2014-07-29 12:17:23 -07:00
Mohamed Hegazy
d4ba45cb36 move failing tests to old 2014-07-29 12:17:03 -07:00
Mohamed Hegazy
c6c77ea989 move todoComment tests to old for now 2014-07-29 12:16:53 -07:00
Daniel Rosenwasser
fce3bdd171 Merge pull request #256 from Microsoft/ambientAccessorErrors
Gracefully handle accessor declarations in ambient classes.
2014-07-29 11:46:32 -07:00
Daniel Rosenwasser
fe4c738b01 No longer emit trailing comma on object literals.
This was done because trailing commas in object literals are not accepted by ES3.

Fixes #271.
2014-07-28 11:37:36 -07:00
Vladimir Matveev
df3567c7db Merge pull request #197 from Microsoft/locals_exports
Alternative proposal for grouping exported and local declarations
2014-07-28 11:26:08 -07:00
Anders Hejlsberg
fc0004749f Merge pull request #264 from Microsoft/errorOnHiddenModuleImport
Error when importing shadowed internal module.
2014-07-27 18:09:04 -07:00
Daniel Rosenwasser
79735b4431 Simplified error recovery by just using 'parseTryStatement'. 2014-07-26 21:23:50 -07:00
Anders Hejlsberg
3da5f1ef6f Error when importing shadowed internal module.
Fixes #73.
2014-07-26 08:13:52 -07:00
Daniel Rosenwasser
0939f77d77 Added tests for missing 'try' parsing 2014-07-25 18:25:43 -07:00
Daniel Rosenwasser
efb6db8757 Gracefully handle 'catch' and 'finally' blocks without a preceding 'try' block.
Fixes #216.

As a note of this fix, when a 'catch' block is followed by a 'finally' block, only the 'catch' keyword gets an error reported on it.
2014-07-25 18:10:27 -07:00
Vladimir Matveev
e4256d827d Merge pull request #252 from Microsoft/array_symbol_links
Use symbol links to access global array type
2014-07-25 17:12:14 -07:00
Jason Freeman
9e039f53b5 Merge pull request #259 from Microsoft/canParseSemicolon
Remove isSemicolon
2014-07-25 17:09:08 -07:00
Jason Freeman
478fadfe3d Disallow modifiers on export assignments (fix #164) 2014-07-25 16:39:24 -07:00
Jason Freeman
61731eefdf Remove isSemicolon (fix #200) 2014-07-25 16:17:30 -07:00
Jason Freeman
936863c299 Update error message to be more consistent with others 2014-07-25 14:01:50 -07:00
Daniel Rosenwasser
fc80c300a0 Gracefully handle accessor declarations in ambient classes. 2014-07-25 13:21:55 -07:00
Jason Freeman
b2abab2f93 Improve the error in a 'for in' statement 2014-07-25 12:38:36 -07:00
Vladimir Matveev
442ad4b032 use symbol links to access global array type 2014-07-25 12:06:18 -07:00
Vladimir Matveev
42df260eb5 use getEffectiveDeclarationFlags to get Export flag 2014-07-25 11:15:19 -07:00
Anders Hejlsberg
155b71881b Merging with master.
Accepting new baselines (not sure why this wasn't already done).
2014-07-25 06:48:57 -07:00
Anders Hejlsberg
f991054691 Merge branch 'master' into argumentTypeErrors 2014-07-25 06:40:51 -07:00
Anders Hejlsberg
511402cd84 Addressing CR feedback. 2014-07-24 19:39:50 -07:00
Daniel Rosenwasser
c625cd9259 Merge pull request #203 from Microsoft/arrowLookAhead
Improved lookahead for arrow functions.
2014-07-24 18:41:34 -07:00
Daniel Rosenwasser
b0c59e7c37 Merge branch 'master' into arrowLookAhead 2014-07-24 18:17:30 -07:00
Daniel Rosenwasser
b76c13cfd5 Addressed code review feedback. 2014-07-24 18:05:05 -07:00
Jason Freeman
86007cc137 Merge branch 'master' into labelledStatements
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/compiler/parser.ts
2014-07-24 17:48:11 -07:00
Vladimir Matveev
bb193fedb9 augment check for colliding declaration spaces 2014-07-24 17:03:37 -07:00
Vladimir Matveev
d7f67083b2 check groups of local symbols 2014-07-24 17:03:33 -07:00
Anders Hejlsberg
a515b199b7 Better error messages in function calls.
Fixes #93.
This is an evolution of #220.
2014-07-24 17:00:03 -07:00
Vladimir Matveev
7072711cf9 updated test baselines 2014-07-24 13:09:03 -07:00
Vladimir Matveev
6572c826a1 update check for object literal properties according to ECMA spec 2014-07-24 13:02:31 -07:00
Vladimir Matveev
9112a0e2e2 enabled strict mode 2014-07-24 13:01:25 -07:00
Jason Freeman
742637bec9 Add tracking for labelled statements, and errors on labelled jumps 2014-07-24 12:36:10 -07:00
Dan Quirk
439ee1eaee Merge pull request #223 from Microsoft/linuxTestFixes
Linux test fixes
2014-07-23 17:22:47 -07:00
Anders Hejlsberg
e742694b1a Merge pull request #199 from Microsoft/reservedWordsInTypeQueries
Allow reserved words in type queries.
2014-07-23 15:52:09 -07:00
Jason Freeman
1a66243d4f Remove inModuleBody 2014-07-23 14:09:17 -07:00
Daniel Rosenwasser
57d7cf54c6 Improved "certainty" when parsing arrow-function-lookin' expressions. 2014-07-23 13:31:24 -07:00
Jason Freeman
76804eb1f9 Add errors for break and continue statements 2014-07-23 12:07:46 -07:00
Jason Freeman
29284cb1b9 Merge branch 'master' into errorOnWithStatement 2014-07-23 11:53:58 -07:00
Jason Freeman
ed3d740df4 Merge branch 'master' into errorOnWithStatement 2014-07-23 11:52:40 -07:00
Daniel Rosenwasser
5fc2792297 Covered more cases for arrow functions omitting arrows.
Specifically where we have a full signature followed by an open curly brace.
2014-07-23 11:49:51 -07:00
Vladimir Matveev
d10f2e713e do not propagate property name as name for function expression 2014-07-23 11:48:29 -07:00
Dan Quirk
3ad77c6ea0 Be less clever, just use \r\n for newlines by default, tests can opt into different newlines, fix one more file casing test 2014-07-23 03:27:56 -07:00
Dan Quirk
329be5f77b Make a test that explicitly sets newline type 2014-07-23 15:56:50 -07:00
Dan Quirk
ec9d25f980 Trying to fix newlines in sourcemap baselines for *nix 2014-07-23 15:51:03 -07:00