Commit Graph

398 Commits

Author SHA1 Message Date
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
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
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
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
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
Sheetal Nandi
2654eed32d Report privacy errors for accessors 2014-08-06 18:42:14 -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
Sheetal Nandi
5d21db9ccf Test baselines after asynchronous alias declaration writing 2014-08-06 13:16:41 -07:00
Sheetal Nandi
875d0c0c75 Emit unexported aliases that need to be emitted to .d.ts to make correct result 2014-08-06 13:12:49 -07:00
Sheetal Nandi
0b227d5196 Test baselines because of change 2014-08-06 13:12:34 -07:00
Sheetal Nandi
00b4c2e96d Report errors on properties and variable type visibility
Fixes #69
2014-08-06 11:53:54 -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
Sheetal Nandi
e31aa9e12a Added more comments and todos as per code review feedback 2014-08-06 11:26:34 -07:00
Anders Hejlsberg
afeabe8100 Merge pull request #365 from Microsoft/extensionlessReferences
Support extensionless <reference> comments.
2014-08-05 15:02:03 -07:00
Anders Hejlsberg
a2a6b8a410 Support extensionless <reference> comments.
Fixes #344.
2014-08-05 14:32:53 -07:00
Mohamed Hegazy
97987b1c3e Merge pull request #359 from Microsoft/cleanup
Wire cleanupSemanticCache
2014-08-04 19:06:18 -07:00
Mohamed Hegazy
0c9510e6f1 Wire cleanupSemanticCache 2014-08-04 17:23:09 -07:00
Mohamed Hegazy
3a0d40a212 Merge pull request #358 from Microsoft/uptodatecheck
Add uptodate checks for program
2014-08-04 16:57:21 -07:00
Mohamed Hegazy
93a48a314e respond to code review comments 2014-08-04 16:56:58 -07:00
Mohamed Hegazy
acfcf40735 Add uptodate checks for program object to avoid recomputation if not needed 2014-08-04 16:09:25 -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
21fb3bc675 Update check for syntax tree existance 2014-08-04 15:36:26 -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
Mohamed Hegazy
2ae1432644 Merge branch 'master' into getDefinition 2014-08-04 15:08:26 -07:00
Mohamed Hegazy
a48ec090ae add missing semicolons 2014-08-04 15:07:42 -07:00
Vladimir Matveev
3fc10ed809 fix misplaced brackets 2014-08-04 15:05:15 -07:00
Vladimir Matveev
059b57f417 fixed check for call\construct signatures in interfaces 2014-08-04 14:37:24 -07:00
Anders Hejlsberg
7fc1b8c4ec Merge pull request #355 from Microsoft/pullContextualTypes3
Consistently record contextual types in function expressions.
2014-08-04 14:36:43 -07:00
Mohamed Hegazy
3c0fd5324c Merge branch 'master' into getDefinition 2014-08-04 13:43:14 -07:00
Mohamed Hegazy
28f73121d6 Merge pull request #356 from DickvdBrink/missing-semicolon
Code style: Missing semicolons
2014-08-04 13:38:26 -07:00
Mohamed Hegazy
f8228e1544 Change variabel names:
* documentsByName to sourceFilesByName
* getSymbolOfIdentifierLikeNode to getSymbolInfo
2014-08-04 13:37:17 -07:00
Dick van den Brink
c9c8748152 Code style: Missing semicolons 2014-08-04 22:32:32 +02:00
Mohamed Hegazy
c92addf821 Revert "remove documentsByName"
This reverts commit 5d26599811.
2014-08-04 13:20:02 -07:00
Anders Hejlsberg
261ff5b338 Consistently record contextual types in function expressions.
Removing check that would guard against recording contextual type. The NodeFlags.ContextChecked flag already
protects against assigning more than once.
2014-08-04 12:58:33 -07:00
Mohamed Hegazy
5c350e4d3d adapt to changes after merge 2014-08-04 12:56:48 -07:00
Mohamed Hegazy
1667894ec6 Merge branch 'master' into getDefinition 2014-08-04 12:52:27 -07:00
Mohamed Hegazy
a061f99541 undo moving unknownSymbol to global 2014-08-04 12:52:19 -07:00
Mohamed Hegazy
5d26599811 remove documentsByName 2014-08-04 12:26:44 -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
Mohamed Hegazy
4da02cbc06 rename values named document to sourceFile 2014-08-04 12:00:47 -07:00
Mohamed Hegazy
aa75de9c70 Consolidate Document and SoruceFile 2014-08-04 12:00:37 -07:00