6160 Commits

Author SHA1 Message Date
Sheetal Nandi
def7b665bb PR feedback 2015-11-05 20:09:40 -08:00
Sheetal Nandi
51caf1a9ee Use of FileMap instead of Map as per PR feedback 2015-10-30 15:54:31 -07:00
Sheetal Nandi
62d4fd6d35 Take pr feedback into account 2015-10-30 15:06:23 -07:00
Sheetal Nandi
2b582a0b71 Simplifty declaration emitter logic by using forEachExpectedEmitFile 2015-10-30 15:04:46 -07:00
Sheetal Nandi
06bf08c17f Simplify logic to get declaration diagnostis 2015-10-30 13:43:52 -07:00
Sheetal Nandi
c6d54d6ae6 Simplify verification of emit file paths using utility to iterate over each emit file
This also makes sure we dont emit --out or --outFile if there are no files that can go in that file(non module and non declaration files)
2015-10-30 13:22:23 -07:00
Sheetal Nandi
a0318c7b63 Create a utility to iterate over each emitFileName and use it in emitter
TODO: declaration emitter to use this utility
TODO: emit file name compiler option verification to use this utility
2015-10-30 12:54:30 -07:00
Sheetal Nandi
9f337bc681 Merge branch 'master' into jsFileCompilation 2015-10-30 12:16:50 -07:00
Sheetal Nandi
4d3457ca4d Some refactoring as per PR feedback 2015-10-30 12:03:59 -07:00
Sheetal Nandi
67bed265b7 Since js extensions are not user specified, no need to check if source map file will overwrite input file 2015-10-30 11:57:20 -07:00
Sheetal Nandi
6ea74ae7f1 Update the error messages as per PR feedback 2015-10-30 11:56:44 -07:00
Sheetal Nandi
daba901619 Report error if --allowJs option is used along with --declaration 2015-10-30 11:50:07 -07:00
Sheetal Nandi
94a647b72b Do not emit declarations for javascript files 2015-10-30 11:36:39 -07:00
Nathan Shively-Sanders
16f69daf10 Merge pull request #5469 from Microsoft/improve-constructor-object-return-error-message
Improve constructor object return error message
2015-10-30 10:17:47 -07:00
Vladimir Matveev
83919f0a3e addressed PR feedback: renamed 'toRelativePath' to 'convertToRelativePath' 2015-10-30 09:52:14 -07:00
Sheetal Nandi
b217b8b620 Merge branch 'master' into jsFileCompilation 2015-10-30 09:34:32 -07:00
Nathan Shively-Sanders
79f09dab4f Add more detailed error message
When an object literal, for example, is returned that does not match the
type of the consturctor, add detail about a field that is required but
missing.

Do this by passing `node.expression` instead of `undefined` -- the rest of
the error reporting infrastructure is already in place.
2015-10-30 09:16:10 -07:00
Vladimir Matveev
534bb62c59 remove 'path' suffix from FileMap methods 2015-10-29 16:43:12 -07:00
Vladimir Matveev
e1b4f01e77 introduce Path as branded string type, switch FileMap to use Path 2015-10-29 16:24:00 -07:00
Vladimir Matveev
93e942a6de FileMap now internally stores absolute normalized file names 2015-10-29 13:52:43 -07:00
Vladimir Matveev
67026f3461 use resolvedFileName as is when calling methods on host 2015-10-29 13:09:46 -07:00
Vladimir Matveev
067e1ccef2 Merge pull request #5440 from Microsoft/lintServer
lint code in 'server' folder
2015-10-28 20:55:46 -07:00
Sheetal Nandi
fdb7a3e452 Revert the change to block declaration emit in case of syntax or semantic errors 2015-10-28 16:52:05 -07:00
Sheetal Nandi
0c3c7f1a1b Treat the .jsx and .tsx files as jsx when parsing and .js files are parsed in standard mode 2015-10-28 16:39:22 -07:00
Sheetal Nandi
2d3a345fd3 Since there arent any user given extensions, have extensions start with "." like before 2015-10-28 16:24:53 -07:00
Vladimir Matveev
9c0982051d lint node.d.ts 2015-10-28 16:02:16 -07:00
Sheetal Nandi
45b995d030 Remove extensions doesnt need to depend on compiler options any more 2015-10-28 15:45:00 -07:00
Vladimir Matveev
5ce7fd9781 lint server 2015-10-28 15:42:15 -07:00
Sheetal Nandi
a8eb76fde1 Remove the logic for parsing compilation of comma seperated list of strings on command line
Also removed logic to accept multiple values for the option
2015-10-28 15:26:48 -07:00
Mohamed Hegazy
8e732c9b95 Merge pull request #5375 from MartyIX/issue-5109
Add warning message empty THEN clause
2015-10-28 14:19:51 -07:00
Ron Buckton
9201ba2857 Merge pull request #5429 from Microsoft/fixAsyncTypeAlias
Fix type check for async function with alias return type.
2015-10-28 14:10:44 -07:00
Sheetal Nandi
ba3d34f9df Instead of --jsExtensions support --allowJs with .js and .jsx as supported extensions 2015-10-28 14:02:46 -07:00
Ron Buckton
fdac86fab9 Linter errors 2015-10-28 13:48:13 -07:00
Mohamed Hegazy
0d71ec3120 Fix #5430: Use FileMap instead of a simple Map for storing file list in tsserver 2015-10-28 13:38:39 -07:00
Sheetal Nandi
ff933be5ff Populate if emit was skipped correctly as part of emit result 2015-10-28 13:07:50 -07:00
Sheetal Nandi
93cc1e530b Check source map files are being overwritten 2015-10-28 13:07:35 -07:00
Sheetal Nandi
c26d2da572 Do not emit declarations file if we reported error about inaccessible This type 2015-10-28 13:07:27 -07:00
Sheetal Nandi
3215438ddf Dont emit declaration file if there are errors in the source file 2015-10-28 13:06:52 -07:00
Sheetal Nandi
68040879c9 Refactoring to fix build issues 2015-10-28 13:06:30 -07:00
Martin Všetička
1e2108854b Add warning message empty THEN clause 2015-10-28 08:25:41 +01:00
Ron Buckton
96504fa604 Use resolvedSymbol instead of mergedSymbol.
Fixes #5333.
2015-10-28 00:09:50 -07:00
Vladimir Matveev
e811fecda6 Merge pull request #5275 from Microsoft/fixCasingAndPathFormat
use absolute path as key to store files, correctly handle scenarios w…
2015-10-27 14:02:35 -07:00
Vladimir Matveev
f5d4aa7d9c addressed PR feedback (change command line flag description), added tests 2015-10-27 13:27:51 -07:00
Wesley Wigham
6e78b9c34d Merge pull request #5358 from Microsoft/debugger
Add JS breakpoint into Debug.assert failure
2015-10-27 10:27:02 -07:00
Vladimir Matveev
ea054f7cbb Merge pull request #5412 from Microsoft/classesInLoop
treat local classes as block scoped variables
2015-10-27 10:23:16 -07:00
Vladimir Matveev
847a074f5b Merge pull request #5408 from Microsoft/asyncWriteOnServer
use process.stdout.write on server instead of fs.write
2015-10-27 09:59:30 -07:00
Mohamed Hegazy
33d7a1fc13 Merge pull request #5397 from seanchas116/fix-nested-parameter-destructuring
Fix nested parameter destructuring
2015-10-27 09:46:23 -07:00
Vladimir Matveev
654befa781 treat local classes as block scoped variables 2015-10-26 22:18:04 -07:00
Zhengbo Li
a9058f9aa9 Merge pull request #5402 from zhengbli/i4177
Add string overloads to document.createElementNS
2015-10-26 23:41:28 -04:00
Vladimir Matveev
4dbd04cdeb Merge pull request #5208 from Microsoft/capturedBlockScopedVars
support block scoped vars captured in closures inside loops
2015-10-26 16:58:15 -07:00