Daniel Rosenwasser
bf4b63d3ba
Only error on 'export =' declarations.
2016-02-01 14:17:31 -08:00
Vladimir Matveev
b0b0712c73
suppress validation of output paths in transpile scenarios
2016-02-01 10:36:47 -08:00
Noj Vek
f04f93c414
Fix typo in compiler reactNamespace error string
2016-01-30 11:37:02 -08:00
Vladimir Matveev
3661b66be4
add extra argument to 'isRequireCall' to check if argument is string literal
2016-01-28 14:18:23 -08:00
Vladimir Matveev
f23c35f04d
Merge pull request #5728 from Microsoft/pathMappingModuleResolution
...
Path mapping module resolution
2016-01-27 11:38:33 -08:00
Anders Hejlsberg
98603f9f49
Merge pull request #6532 from Microsoft/readonlyMembers
...
Readonly properties and index signatures
2016-01-27 10:50:26 -08:00
Vladimir Matveev
adacad326a
addressed PR feedback
2016-01-26 21:38:12 -08:00
Mohamed Hegazy
add91052bb
Update version
2016-01-25 17:08:15 -08:00
Vladimir Matveev
8a8ed0a871
update implementation based on the results of design meeting
2016-01-25 11:49:26 -08:00
Vladimir Matveev
9d828e3916
Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution
2016-01-20 15:32:19 -08:00
Anders Hejlsberg
a499607845
Merge branch 'master' into readonlyMembers
...
Conflicts:
src/compiler/parser.ts
src/compiler/types.ts
2016-01-18 21:03:15 -08:00
Daniel Rosenwasser
26fdf891e9
Fix lint errors.
2016-01-16 14:05:46 -08:00
Vladimir Matveev
3aa92f5611
addressed PR feedback
2016-01-14 10:56:49 -08:00
Anders Hejlsberg
b46efc9b55
Allow modifies on type members + introduce "readonly" modifier
2016-01-13 18:34:38 -08:00
vladima
39ad0774ae
merge with origin/master
2016-01-11 22:49:19 -08:00
vladima
0e1c6e3c9a
fix linter issues
2016-01-11 22:34:38 -08:00
vladima
7cef1efb4e
merge with origin/master
2016-01-11 22:12:03 -08:00
Mohamed Hegazy
ec70105c9d
Add check for reactNamespace value
2016-01-07 15:00:50 -08:00
Vladimir Matveev
3d4e2203b8
merge with origin/master
2016-01-06 14:16:56 -08:00
Vladimir Matveev
36af815bba
add optional 'directoryExists' method to hosts to reduce amount of disk probings that are known to fail
2016-01-06 12:37:52 -08:00
Vladimir Matveev
39a50fa8a3
merge with origin/master
2016-01-04 12:07:26 -08:00
Vladimir Matveev
7f2ebf928a
use 'declare global' to define augmentations for the global scope
2015-12-28 12:03:54 -08:00
Nathan Shively-Sanders
abf9961528
Merge branch 'master' into lint-nested-++
2015-12-22 16:12:07 -08:00
Nathan Shively-Sanders
401a393519
Fix ++/-- lint
2015-12-22 15:45:00 -08:00
Vladimir Matveev
4a963a26c3
initial revision of external module augmentations
2015-12-22 13:56:22 -08:00
Vladimir Matveev
a399208d73
Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution
2015-12-22 11:06:18 -08:00
vladima
39605fe5f8
report pre-emit diagnostics that blocked emit
2015-12-21 21:43:51 -08:00
vladima
6a63c0d52c
Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution
2015-12-08 21:41:29 -08:00
yaoyao
e95ae4f100
Improve 'Cannot compile modules unless the '--module' flag is provided.' message
2015-12-08 08:56:41 +08:00
Vladimir Matveev
2dbf621e97
merge with origin/master, add trace message with type of 'typings' field is not 'string'
2015-12-07 11:40:35 -08:00
Tim Perry
384ee18c7b
Gracefully handle errors where 'typings' is not a string ( fixes #4828 )
2015-12-07 18:25:25 +01:00
vladima
0130c23028
Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution
2015-12-03 22:49:55 -08:00
Sheetal Nandi
5772dade97
Add test case for reporting file preprocessing error in javascript file
2015-11-30 13:59:03 -08:00
Sheetal Nandi
6b42712eb2
Report bind diagnostics, program diagnostics and file pre processing diagnostics in javascript file
...
Handles #5785
2015-11-30 13:26:00 -08:00
Vladimir Matveev
4e3cba1f7c
Merge remote-tracking branch 'origin/master' into pathMappingModuleResolution
2015-11-25 21:23:45 -08:00
Vladimir Matveev
62370a0d08
addressed PR feedback
2015-11-25 16:41:09 -08:00
Vladimir Matveev
25cc97bb75
addressed PR feedback
2015-11-24 16:41:41 -08:00
Wesley Wigham
b11786866b
Merge branch 'master' into use-common-directory-for-out
2015-11-20 13:32:12 -08:00
Vladimir Matveev
6844285782
verbose module resolution
2015-11-19 21:33:33 -08:00
Vladimir Matveev
6bed1ba53a
merge with master
2015-11-19 21:11:57 -08:00
Vladimir Matveev
d2fd6437d7
initial implementation of path mapping based module resolution
2015-11-18 21:46:45 -08:00
Wesley Wigham
08045dfd31
Refactor getCommonSourceDirectory into a closure function
2015-11-18 17:10:22 -08:00
Wesley Wigham
c0f185943c
remove comment
2015-11-18 14:10:53 -08:00
Wesley Wigham
a44ebbbc7e
only make common dir on call
2015-11-18 13:19:56 -08:00
Wesley Wigham
c7a3bee916
Merge branch 'master' into use-common-directory-for-out
2015-11-18 13:10:23 -08:00
Sheetal Nandi
a19307d533
Merge branch 'master' into jsFileCompilation
2015-11-18 11:26:58 -08:00
Sheetal Nandi
5ac6eb2d79
PR feedback
2015-11-18 10:48:03 -08:00
Wesley Wigham
a989595044
use getCanonicalFileName on path fragments as in other utility methods
2015-11-17 11:24:17 -08:00
Wesley Wigham
3fd9eb5637
Merge branch 'master' into compute-common-source-dir
2015-11-17 10:11:37 -08:00
Sheetal Nandi
073b69aaf5
Merge branch 'master' into jsFileCompilation
2015-11-16 12:04:42 -08:00
Sheetal Nandi
1ee5022350
Change the api for node name resolver to take compiler options instead of supportedExtensions
2015-11-16 11:49:26 -08:00
Vladimir Matveev
078ed3f485
use normalized absolute file names when doing consistency check
2015-11-16 09:49:58 -08:00
Wesley Wigham
39ebe81b89
Merge branch 'master' into compute-common-source-dir
2015-11-13 17:56:04 -08:00
Wesley Wigham
e41bfd1ccc
fix many lints
2015-11-13 17:43:53 -08:00
Wesley Wigham
7e69f014f3
Always compute a common source directory for a program
2015-11-13 14:41:09 -08:00
Sheetal Nandi
0482afdc1e
Load only typescript files if resolving from node modules
2015-11-13 14:28:40 -08:00
Sheetal Nandi
fc07763499
Merge branch 'master' into jsFileCompilation
2015-11-13 13:44:57 -08:00
Wesley Wigham
ecd4435986
Go all the way back to the original solution
2015-11-12 16:22:35 -08:00
Wesley Wigham
52fbf9e12b
Merge branch 'master' into compute-common-source-dir
2015-11-12 15:59:11 -08:00
Wesley Wigham
5bcf861121
use relative path from current directory
2015-11-12 15:58:11 -08:00
Sheetal Nandi
1ed67f41ba
Removed the TODO as created bug for it
2015-11-12 11:50:58 -08:00
Sheetal Nandi
d2445b6286
PR feedback
2015-11-11 16:10:23 -08:00
Sheetal Nandi
1659300ddb
Fix the --sourceRoot and --mapRoot option handling
2015-11-11 12:59:03 -08:00
Wesley Wigham
c3af8bb6cc
Merge branch 'master' into compute-common-source-dir
2015-11-11 10:57:36 -08:00
Wesley Wigham
a1cf51faac
use canonical filename function
2015-11-10 13:25:09 -08:00
Wesley Wigham
6dcf3cf756
Add case sensitivity-check, only error on failure when outDir is specified and resource based paths are found
2015-11-10 12:06:25 -08:00
Ryan Cavanaugh
ad61788113
Merge pull request #5266 from Microsoft/javaScriptModules
...
JavaScript LS scaffolding + JS module inference
2015-11-10 11:59:09 -08:00
Daniel Rosenwasser
92d37c3029
Merge pull request #5511 from Microsoft/skipDefaultLibCheckWithNoDefaultLib
...
Skip files with no-default-lib when '--skipDefaultLibCheck' and '--noLib' are used
2015-11-09 15:43:26 -08:00
Ryan Cavanaugh
69ca1f2e1d
Merge remote-tracking branch 'origin/master' into javaScriptModules
...
# Conflicts:
# src/compiler/parser.ts
2015-11-09 14:48:37 -08:00
Daniel Rosenwasser
cece4411ca
Get rid of the concept of 'isDefaultLib'.
2015-11-09 14:40:57 -08:00
Ryan Cavanaugh
e630ce247b
Fix merge problems from master
2015-11-09 12:49:36 -08:00
Wesley Wigham
cadf54334b
Merge branch 'master' into out-module-concat
2015-11-09 12:38:23 -08:00
Ryan Cavanaugh
7dd1bf487d
Merge branch 'master' into javaScriptModules
...
# Conflicts:
# lib/lib.es6.d.ts
# lib/tsc.js
# lib/tsserver.js
# lib/typescript.d.ts
# lib/typescript.js
# lib/typescriptServices.d.ts
# lib/typescriptServices.js
# src/compiler/binder.ts
# src/compiler/checker.ts
# src/compiler/parser.ts
# src/compiler/program.ts
# src/harness/fourslash.ts
2015-11-06 16:49:09 -08:00
Ryan Cavanaugh
d880d4f4fb
Don't look for .js files when resolving node modules
2015-11-06 14:38:29 -08:00
Sheetal Nandi
4c842591f7
Merge branch 'master' into jsFileCompilation
2015-11-06 12:39:42 -08:00
Sheetal Nandi
def7b665bb
PR feedback
2015-11-05 20:09:40 -08:00
Wesley Wigham
8a93b48945
fix lint: prefer const
2015-11-04 14:51:36 -08:00
Mohamed Hegazy
ec716549a5
Update default configurations
2015-11-04 09:08:33 -08:00
Sheetal Nandi
51caf1a9ee
Use of FileMap instead of Map as per PR feedback
2015-10-30 15:54:31 -07:00
Wesley Wigham
70fba0b820
Merge branch 'master' into out-module-concat
2015-10-30 15:47:35 -07:00
Sheetal Nandi
62d4fd6d35
Take pr feedback into account
2015-10-30 15:06:23 -07:00
Wesley Wigham
95a3fc7143
feedback form pr, new baselines
2015-10-30 14:52:45 -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
9f337bc681
Merge branch 'master' into jsFileCompilation
2015-10-30 12:16:50 -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
Wesley Wigham
6c812420ec
Merge branch 'master' into out-module-concat
2015-10-30 11:27:34 -07:00
Sheetal Nandi
b217b8b620
Merge branch 'master' into jsFileCompilation
2015-10-30 09:34:32 -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
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
2d3a345fd3
Since there arent any user given extensions, have extensions start with "." like before
2015-10-28 16:24:53 -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
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
3215438ddf
Dont emit declaration file if there are errors in the source file
2015-10-28 13:06:52 -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
60d8cf3bdf
Merge pull request #5405 from Microsoft/allowAllFilesAsPackages
...
allow other files except .d.ts as external library packages
2015-10-26 11:43:38 -07:00
Vladimir Matveev
751a8ea148
allow other files except .d.ts as external library packages
2015-10-26 10:43:55 -07:00
Vladimir Matveev
abf270a9b4
do not look into nested es6 exports / imports when collecting external modules
2015-10-22 14:12:57 -07:00
Nathan Shively-Sanders
36050cdefd
Update diagnostic text to use ES2015, not ES6.
2015-10-22 13:23:12 -07:00
Wesley Wigham
37bc2773a3
feedback form pr
2015-10-21 15:27:33 -07:00
Wesley Wigham
a83b85870c
Merge branch 'master' into out-module-concat
2015-10-19 17:17:08 -07:00
Ryan Cavanaugh
eda6eca3c7
Merge remote-tracking branch 'upstream/master' into javaScriptModules
2015-10-19 13:53:52 -07:00
Sheetal Nandi
0496bfe278
Merge branch 'master' into tscJsFiles
2015-10-19 12:32:51 -07:00
Daniel Rosenwasser
3749fe854d
Bumped version to 1.8.0.
2015-10-16 12:28:48 -07:00
Vladimir Matveev
b8a3564d28
use absolute path as key to store files, correctly handle scenarios when file names differ only in casing
2015-10-15 14:43:51 -07:00
Sheetal Nandi
acf7de7d34
Merge branch 'master' into tscJsFiles
2015-10-15 12:30:55 -07:00
Ryan Cavanaugh
1a36fce4c2
JavaScript LS scaffolding + JS module inference
2015-10-14 17:36:03 -07:00
Mohamed Hegazy
99d448a167
Merge pull request #5231 from Microsoft/removeExperimentalAsyncFunctions
...
Remove experimental async functions
2015-10-13 14:17:36 -07:00
Mohamed Hegazy
92f1b48cc8
Remove --experimentalAsyncFunctions
2015-10-12 14:27:33 -07:00
Vladimir Matveev
4ccf630f63
merge with master
2015-10-12 13:45:06 -07:00
Sheetal Nandi
286fb3e948
Fix the lint error
2015-10-12 13:10:54 -07:00
Sheetal Nandi
5e14edb4b7
Verify the emit file name is unique and doesnt overwrite input file
...
Fixes #4424
2015-10-12 12:25:13 -07:00
Sheetal Nandi
b580c5588e
Merge branch 'master' into tscJsFiles
2015-10-05 16:42:37 -07:00
Wesley Wigham
732ec343fc
update comment
2015-10-05 14:25:48 -07:00
Sheetal Nandi
ce652dc7fb
Fixing few code review comments
2015-10-05 12:27:06 -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
Wesley Wigham
122753b50a
sourcemap correctness
2015-10-01 19:23:12 -07:00
Wesley Wigham
b6a57ea8af
Concatenated module emit fixes up all included paths
2015-10-01 12:44:24 -07:00
Wesley Wigham
b95e1ff6d8
This is what zero linter errors feels like
2015-09-30 16:10:52 -07:00
Vladimir Matveev
b4f326ab04
collect imports and exports in ambient external modules
2015-09-29 15:06:03 -07:00
Vladimir Matveev
e53646a0cd
harden the implementation of Program.getSourceFile to handle all relative file names correctly
2015-09-27 13:32:13 -07:00
Vladimir Matveev
dae5a626da
record resolution for relative file name if file was found via absolute name
2015-09-26 21:29:07 -07:00
Sheetal Nandi
7f09c81251
Syntax changes if the extensions to treat as javascript change
2015-09-22 12:33:20 -07:00
Wesley Wigham
8ff551ce08
merge with master
2015-09-21 17:38:56 -07:00
Vladimir Matveev
d57ceb1d32
extend the list of extensions for module file names in node_modules folder
2015-09-21 16:10:03 -07:00
Sheetal Nandi
c30104e3b6
Add option --jsExtensions to handle extensions to treat as javascript
...
- Command line now takes --jsExtension multiple times or comma separated list of extensions
- tsconfig accepts array of extension strings
2015-09-21 15:39:53 -07:00
Wesley Wigham
8d6cb5fbb5
Feedback from PR
2015-09-17 13:26:04 -07:00
Wesley Wigham
f2b901a3c7
reverts 60a120f
, reexposes es6 option
2015-09-17 13:14:31 -07:00
Sheetal Nandi
bc48c7c9f0
Merge branch 'master' into tscJsFiles
2015-09-16 11:38:11 -07:00
Wesley Wigham
60a120f22a
remove es6 as option from command line
2015-09-16 11:08:03 -07:00
Sheetal Nandi
8da3bd2ffd
Project testcase to run tsconfig file
2015-09-15 15:53:44 -07:00
Wesley Wigham
48ba708e5e
Add es6 module kind, stop using script version to infer it
2015-09-15 15:36:37 -07:00
Daniel Rosenwasser
00dcb57e3b
Bump version back to 1.7.0.
2015-09-15 15:08:48 -07:00
Daniel Rosenwasser
38b605ea7d
Merge branch 'release-1.6'
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/program.ts
tests/baselines/reference/emptyObjectBindingPatternParameter04.symbols
tests/baselines/reference/emptyObjectBindingPatternParameter04.types
tests/baselines/reference/nodeResolution5.errors.txt
tests/baselines/reference/nodeResolution7.errors.txt
2015-09-15 13:36:08 -07:00
Sheetal Nandi
885babc9bc
Merge branch 'master' into tscJsFiles
2015-09-14 12:40:47 -07:00
Vladimir Matveev
d37eaa8d70
update error message text
2015-09-12 12:46:18 -07:00
Vladimir Matveev
a880be1f75
resolve merge conflicts, update tests
2015-09-10 21:53:49 -07:00
Vladimir Matveev
031fdf19e0
addressed PR feedback
2015-09-10 21:53:15 -07:00
Vladimir Matveev
98f31635f8
Check if imported file is a proper external module
2015-09-10 21:46:03 -07:00
Vladimir Matveev
4b5c2fe31c
reattach file diagnostics for modified files when reusing program structure
2015-09-10 21:29:52 -07:00
Vladimir Matveev
87e1569d1f
resolve merge conflicts, update tests
2015-09-10 17:00:29 -07:00
Vladimir Matveev
04949a005c
Merge remote-tracking branch 'origin/master' into properExternalModules
2015-09-10 16:42:17 -07:00
Vladimir Matveev
297c60ea01
addressed PR feedback
2015-09-10 16:42:02 -07:00
Vladimir Matveev
e0c16b4332
Check if imported file is a proper external module
2015-09-10 16:00:44 -07:00
Mohamed Hegazy
c18051d5ff
Update version to 1.6.2
2015-09-10 14:22:31 -07:00
Vladimir Matveev
6e24570135
reattach file diagnostics for modified files when reusing program structure
2015-09-10 10:46:39 -07:00
Sheetal Nandi
74a3f67250
Emit the diagnostics for javascript file instead of doing semantic check
2015-09-10 09:44:00 -07:00
Mohamed Hegazy
155a8870f3
Revert "Update version to 1.7"
...
This reverts commit 6fbf4494b5
.
2015-08-27 15:49:50 -07:00
Mohamed Hegazy
6fbf4494b5
Update version to 1.7
2015-08-27 15:46:25 -07:00
Mohamed Hegazy
509232f477
Move handeling to a diffrent function, and remove specialized serialization
2015-08-25 17:42:39 -07:00
Mohamed Hegazy
b85665cd38
Make new exported functions internal
2015-08-25 14:34:34 -07:00
Mohamed Hegazy
f3d36616b7
Merge branch 'init' of https://github.com/tinganho/TypeScript into tinganho-init
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/types.ts
2015-08-25 14:23:41 -07:00
Tingan Ho
963ba1918e
Addresses CR feedback
2015-08-25 15:05:02 +08:00
Mohamed Hegazy
ab6fe49d56
Merge branch 'master' into moduleResolutionStrategies
...
Conflicts:
src/compiler/diagnosticMessages.json
2015-08-24 15:46:06 -07:00
Mohamed Hegazy
00cd8ad745
Add --outFile and revert change make --out relative in tsconfig.json
2015-08-20 17:37:56 -07:00
Vladimir Matveev
dde7545d34
address PR feedback
2015-08-20 16:13:49 -07:00
Mohamed Hegazy
cfc164b044
Consolidate option error messages into two
2015-08-20 15:58:57 -07:00
Vladimir Matveev
4a829572be
added tests
2015-08-19 15:37:37 -07:00
Vladimir Matveev
ffadce6335
always process imported modules in 'createProgram' to record module resolutions
2015-08-19 11:58:02 -07:00
Vladimir Matveev
f415097d0d
addressed PR feedback
2015-08-18 14:52:21 -07:00
Vladimir Matveev
049a5fba07
added tests
2015-08-18 13:36:08 -07:00
Vladimir Matveev
1cb5280971
Merge branch 'master' into moduleResolutionStrategies
2015-08-17 18:31:53 -07:00
Vladimir Matveev
3b95ea460e
initial implementation of module resolution for node/requirejs
2015-08-17 18:31:12 -07:00
Mohamed Hegazy
25dfcec83b
Merge pull request #4290 from Microsoft/fix4277
...
Fix #4277 : Ensure we are passing refEnd and not length to findSourceFile
2015-08-17 15:21:04 -07:00
Mohamed Hegazy
fdda66f055
handel merge conflict, use refPos instead of start
2015-08-13 12:45:26 -07:00
Mohamed Hegazy
94fa6b92b4
Fix #4277 : Ensure we are passing refEnd and not length to findSourceFile.
...
Also add a more conservative check for empty refPos and refEnd to ensure diagnostic emit does not fail
2015-08-12 13:04:10 -07:00
Vladimir Matveev
fc1e89ace5
addressed CR feedback: merged getDefaultModuleResolver and resolveModuleName into one function, added comments
2015-08-05 14:30:41 -07:00
Vladimir Matveev
03aaf7cd7c
addressed PR feedback
2015-08-04 21:22:37 -07:00
Vladimir Matveev
49ad395de1
resolveModuleName => resolvedModuleNames, added tests
2015-08-04 15:21:16 -07:00
Vladimir Matveev
f22c160a24
Merge remote-tracking branch 'origin/master' into reuseAndCache
2015-08-03 15:30:05 -07:00
Vladimir Matveev
36043cd88a
merge with master
2015-07-29 17:16:58 -07:00
Vladimir Matveev
d7661ecf8a
do not try to resolve modules that has '!' in the name, put .tsx extension to the end of the list
2015-07-29 16:24:16 -07:00
Tingan Ho
db6e46df12
Removes trailing comma logic and fixes default values
2015-07-29 10:26:18 +08:00
Tingan Ho
38f4c2dc8d
Adds project init
2015-07-27 19:52:57 +08:00
Vladimir Matveev
e1fa3c5515
Merge pull request #3982 from Microsoft/sourceMapsInTranspile
...
add transpileModule function that can return emitted source map
2015-07-23 17:25:30 -07:00
Vladimir Matveev
500cadac5c
add transpileModule function that can return emitted source map
2015-07-22 11:58:27 -07:00
Vladimir Matveev
9332f7e1e3
introduce ModuleResolutionHost interface
2015-07-15 11:40:49 -07:00
Daniel Rosenwasser
b8b4c0f5d4
Bump version number.
2015-07-14 17:25:34 -07:00
Daniel Rosenwasser
8a8a412a7f
Fix file endings.
2015-07-14 16:51:22 -07:00
Vladimir Matveev
e15c700549
clean old program to prevent it from being captured into the closure
2015-07-09 14:45:39 -07:00
Vladimir Matveev
6a502cdacc
Merge remote-tracking branch 'origin/master' into reuseProgramStructure
2015-07-09 14:40:54 -07:00
Vladimir Matveev
2685d409d5
addressed PR feedback
2015-07-09 14:40:33 -07:00
Dan Quirk
5dfa6104f9
Turn off a few rules and more cleanup post merge
2015-07-08 17:42:26 -07:00
Dan Quirk
be1371d3cd
Merge master
2015-07-08 15:35:49 -07:00
Cyrus Najmabadi
3a26cd21f9
Adding comments.
2015-07-06 15:31:22 -07:00
Cyrus Najmabadi
1dfcc3ec0e
Merge branch 'master' into cancellableDiagnostics
...
Conflicts:
src/services/services.ts
src/services/shims.ts
2015-07-06 15:19:57 -07:00
Ron Buckton
4b4a96b9dc
Merge branch 'master' into asyncFunctions
2015-07-01 09:27:45 -07:00
Dan Quirk
d4403df35e
var -> let
2015-06-25 17:36:19 -07:00
Dan Quirk
ed1ff3d57d
Fixing up whitespace and semicolons
2015-06-25 16:24:41 -07:00
Vladimir Matveev
66f673618a
addressed PR feedback
2015-06-24 18:12:02 -07:00
Vladimir Matveev
c968b3653e
addressed PR feedback
2015-06-24 17:40:04 -07:00
Dick van den Brink
2a483187a7
Remove unused variables
2015-06-25 00:23:13 +02:00
Vladimir Matveev
ba3eb0d0cf
added Program.structureIsReused property, disallow reuse if target module
...
kind differs in old and new programs, move setting of resolvedModules
cache to the program, added tests
2015-06-24 12:59:22 -07:00
Vladimir Matveev
39e832da55
use existing information about module resolutions
2015-06-23 10:51:00 -07:00
Vladimir Matveev
226deec4b0
reuse structure of the program if changes in files don't affect imports/references, remove module resolution from the checker
2015-06-22 22:19:28 -07:00
Ron Buckton
76c0d32f9d
Moved async functions for ES6 behind experimental flag
2015-06-19 18:05:43 -07:00
Cyrus Najmabadi
c9c0f3a4ad
PR feedback.
2015-06-18 12:04:26 -07:00
Cyrus Najmabadi
e015b17638
Merge branch 'master' into cancellableDiagnostics
...
Conflicts:
src/compiler/checker.ts
src/compiler/program.ts
src/compiler/types.ts
src/services/services.ts
2015-06-18 11:23:14 -07:00
Cyrus Najmabadi
c4f65f8bbf
PR feedback.
2015-06-18 11:00:50 -07:00
Cyrus Najmabadi
1a96a146ed
Make type-checking cancellable.
2015-06-18 10:52:19 -07:00
Cyrus Najmabadi
ef7d1136b8
Make it so all our diagnostics APIs return an independent set of diagnostics.
...
In order to get all diagnostics, you must call all the APIs. And no APIs return
diagnostics produced by other APIs. This is how things were before hte addition
of the getCompletionOptionsDiagnostics API, and i'm returning things to that state.
2015-06-18 09:32:52 -07:00
Colby Russell
5f1fe3740b
Fix line endings in program.ts
2015-06-17 13:08:13 -05:00
Daniel Rosenwasser
1f4812f9dd
Merge branch 'testPerf2' into testPerf
...
Conflicts:
src/compiler/program.ts
src/compiler/types.ts
src/harness/harness.ts
2015-06-12 16:39:03 -07:00
Daniel Rosenwasser
e1c1da578c
Merge branch 'master' into testPerf2
...
Conflicts:
Jakefile.js
src/compiler/program.ts
src/compiler/types.ts
src/harness/harness.ts
src/harness/projectsRunner.ts
src/harness/runner.ts
2015-06-12 16:16:09 -07:00
Vladimir Matveev
97afc1d410
Merge pull request #3484 from Microsoft/noExtension_noExtraErrors
...
do not report extra error if file was already found without extension
2015-06-12 13:38:49 -07:00
Cyrus Najmabadi
5b7ca78c92
PR feedback.
2015-06-12 12:53:24 -07:00
Cyrus Najmabadi
c27b3d37da
Merge branch 'master' into classificationPerf2
2015-06-12 12:30:48 -07:00
Mohamed Hegazy
224e7630ea
use namespaces instead of modules in the codebase
2015-06-12 09:01:48 -07:00
Vladimir Matveev
970dc49a2d
do not report extra error if file was already found without extension
2015-06-11 14:43:57 -07:00
Cyrus Najmabadi
9560895ec2
Don't bother trying to semantically classify names that could never be typenames.
2015-06-10 18:18:37 -07:00
Daniel Rosenwasser
50c4290da6
Merge branch 'master' into testPerf
...
Conflicts:
Jakefile.js
src/compiler/program.ts
src/compiler/types.ts
src/harness/harness.ts
src/harness/projectsRunner.ts
src/harness/runner.ts
2015-06-08 14:45:38 -07:00
Vladimir Matveev
6658e0fc58
wrap host.getCanonicalFileName in arrow function
2015-06-05 12:00:53 -07:00
Cyrus Najmabadi
2de07f3563
Merge branch 'master' into lightMode
...
Conflicts:
src/compiler/program.ts
2015-06-04 12:47:12 -07:00
Cyrus Najmabadi
a9e2089818
PR feedback.
2015-06-04 12:24:07 -07:00
Cyrus Najmabadi
2bf19e80c3
Speed up tests by not type-checking lib.d.ts unless the test asks for that.
2015-06-04 01:03:02 -07:00
Vladimir Matveev
113b7ed13d
Merge pull request #3368 from Microsoft/fileMap
...
introduce FileMap to store mappings with filenames as keys
2015-06-03 23:13:06 -07:00
Jason Freeman
abf18c5a11
Merge branch 'release-1.5'
2015-06-03 17:56:53 -07:00
Daniel Rosenwasser
68aca7ee30
Use a separate variable to track for if no-default-lib tag was encountered.
2015-06-03 17:39:52 -07:00
Vladimir Matveev
ef54047a65
address PR feedback
2015-06-03 15:22:17 -07:00
Daniel Rosenwasser
ca884d434f
Merge branch 'master' into testPerf
...
Conflicts:
src/harness/harness.ts
2015-06-03 14:56:08 -07:00
Vladimir Matveev
269ae3ab99
introduce FileMap to store mappings with filenames as keys
2015-06-03 13:48:34 -07:00
Mohamed Hegazy
c83054cd4b
Merge branch 'release-1.5' into filterTranspileDiagnostics
2015-06-02 18:01:05 -07:00
Ron Buckton
f96cf338d9
Merge branch 'release-1.5' into master
2015-06-01 17:40:35 -07:00
Ron Buckton
62ba36908b
Added experimentalDecorators flag
2015-06-01 15:01:24 -07:00
Mohamed Hegazy
2cbe14e131
Respond to code review comments
2015-05-27 10:20:01 -07:00
Mohamed Hegazy
e7eef830e1
Fix #3245 : ensure transpile diagnostics only include syntactic and compiler options diagnostics
2015-05-26 20:18:13 -07:00
Paul van Brenk
3853489628
Update version to 1.5.3 for the VS 2015 release
2015-05-19 16:25:12 -07:00
Mohamed Hegazy
5ea2cea95d
Merge pull request #3208 from Microsoft/updateSingleCompilationFlagName
...
Update singleCompilation flag name to isolatedModules
2015-05-19 13:54:49 -07:00
Vladimir Matveev
fd5dfb63af
program should store file names with normalized slashes
2015-05-19 11:07:52 -07:00
Mohamed Hegazy
1da04ba8f4
Change flag --singleCompilation to --isolatedModules
2015-05-18 21:49:41 -07:00
Daniel Rosenwasser
31ea4ba666
Merge branch 'master' into testPerf
2015-05-15 14:44:22 -07:00
Jason Freeman
d5a9affac4
Merge branch 'release-1.5'
2015-05-13 15:43:27 -07:00
Daniel Rosenwasser
300cb8d9f2
Merge pull request #3121 from Microsoft/consistent-sourceMap-naming
...
Consistent usage of 'sourceMap' in diagnostics
2015-05-12 11:48:49 -07:00
Daniel Rosenwasser
4cd0127822
sourcemap -> sourceMap
2015-05-11 14:53:18 -07:00
Vladimir Matveev
947d4a29c2
program should store file names with normalized slashes
2015-05-11 14:01:46 -07:00
Jason Freeman
e0931d8629
Type check all files when emitting a file under -out
2015-05-08 15:03:55 -07:00
Jason Freeman
0401553810
Type check all files when emitting a file under -out
2015-05-08 13:58:20 -07:00
Mohamed Hegazy
805558b7ee
Update version
2015-05-06 22:39:23 -07:00
Mohamed Hegazy
60b7bbb6c5
Merge branch 'master' into release-1.5
...
Conflicts:
bin/tsc.js
bin/tsserver.js
bin/typescript.js
bin/typescriptServices.js
src/compiler/checker.ts
src/compiler/emitter.ts
src/services/services.ts
src/services/shims.ts
tests/baselines/reference/classExpressionWithDecorator1.js
tests/baselines/reference/decoratedClassFromExternalModule.js
tests/baselines/reference/decoratorOnClass1.js
tests/baselines/reference/decoratorOnClass2.js
tests/baselines/reference/decoratorOnClass3.js
tests/baselines/reference/decoratorOnClass4.js
tests/baselines/reference/decoratorOnClass5.js
tests/baselines/reference/decoratorOnClass8.js
tests/baselines/reference/decoratorOnClassAccessor1.js
tests/baselines/reference/decoratorOnClassAccessor2.js
tests/baselines/reference/decoratorOnClassAccessor3.js
tests/baselines/reference/decoratorOnClassAccessor4.js
tests/baselines/reference/decoratorOnClassAccessor5.js
tests/baselines/reference/decoratorOnClassAccessor6.js
tests/baselines/reference/decoratorOnClassConstructorParameter1.js
tests/baselines/reference/decoratorOnClassConstructorParameter4.js
tests/baselines/reference/decoratorOnClassMethod1.js
tests/baselines/reference/decoratorOnClassMethod10.js
tests/baselines/reference/decoratorOnClassMethod11.js
tests/baselines/reference/decoratorOnClassMethod12.js
tests/baselines/reference/decoratorOnClassMethod13.js
tests/baselines/reference/decoratorOnClassMethod2.js
tests/baselines/reference/decoratorOnClassMethod3.js
tests/baselines/reference/decoratorOnClassMethod4.js
tests/baselines/reference/decoratorOnClassMethod5.js
tests/baselines/reference/decoratorOnClassMethod6.js
tests/baselines/reference/decoratorOnClassMethod7.js
tests/baselines/reference/decoratorOnClassMethod8.js
tests/baselines/reference/decoratorOnClassMethodParameter1.js
tests/baselines/reference/decoratorOnClassProperty1.js
tests/baselines/reference/decoratorOnClassProperty10.js
tests/baselines/reference/decoratorOnClassProperty11.js
tests/baselines/reference/decoratorOnClassProperty2.js
tests/baselines/reference/decoratorOnClassProperty3.js
tests/baselines/reference/decoratorOnClassProperty6.js
tests/baselines/reference/decoratorOnClassProperty7.js
tests/baselines/reference/missingDecoratorType.js
tests/baselines/reference/sourceMapValidationDecorators.js
tests/baselines/reference/sourceMapValidationDecorators.sourcemap.txt
2015-05-06 22:36:01 -07:00
Mohamed Hegazy
19933870a4
Update error message
2015-05-04 23:30:43 -07:00
Mohamed Hegazy
b7f4480656
unify file extension resolution logic
2015-05-04 22:46:31 -07:00
Daniel Rosenwasser
79bea92ed6
Merge branch 'master' into testPerf
...
Conflicts:
src/harness/harness.ts
2015-05-04 15:16:36 -07:00
Mohamed Hegazy
91fedf4df1
Update description message and variable names
2015-05-04 13:21:39 -07:00
kmashint
2e0a55c4d3
Compiler flag to specify line ending #1693 unit tests
2015-05-03 02:07:39 -04:00
kmashint
c783e3781a
Compiler flag to specify line ending #1693 code review adjustments
2015-05-03 02:07:28 -04:00
kmashint
c1d2aeab84
Compiler flag to specify line ending #1693 code review adjustments
2015-05-03 02:07:18 -04:00
Keith Mashinter
16d7e5cad7
Compiler flag to specify line ending #1693 fix whitespace
2015-05-03 02:07:13 -04:00
Keith Mashinter
532f92b88f
Compiler flag to specify line ending #1693
2015-05-03 02:07:03 -04:00
Daniel Rosenwasser
d5d7f9f504
Document/rename flag used in compiler.
2015-05-01 16:53:55 -07:00
Daniel Rosenwasser
f988a11cfc
Merge pull request #2949 from Microsoft/cleanupAndSpeedupFourslash
...
Cleanup and speedup fourslash
2015-04-28 17:50:25 -07:00
Daniel Rosenwasser
97cd07d1d4
Cache the emit of 'fourslash.ts'.
...
Yields a >25% decrease in running time for fourslash tests on my machine.
2015-04-28 17:20:38 -07:00
Anders Hejlsberg
4c5aeaf0c9
Merge branch 'master' into namespaces
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/program.ts
tests/baselines/reference/constDeclarations-access5.errors.txt
tests/baselines/reference/es6-amd.errors.txt
tests/baselines/reference/es6-declaration-amd.errors.txt
tests/baselines/reference/es6-sourcemap-amd.errors.txt
tests/baselines/reference/es6-umd.errors.txt
tests/baselines/reference/es6-umd2.errors.txt
tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamedImport.errors.txt
tests/baselines/reference/es6ImportNameSpaceImport.errors.txt
tests/baselines/reference/es6ImportNamedImport.errors.txt
tests/baselines/reference/es6ImportNamedImportInExportAssignment.errors.txt
tests/baselines/reference/es6ModuleWithModuleGenTargetAmd.errors.txt
tests/baselines/reference/es6ModuleWithModuleGenTargetCommonjs.errors.txt
2015-04-28 16:49:23 -07:00
Mohamed Hegazy
32409f9b9b
Merge branch 'master' into inlineSourceMaps
2015-04-27 10:11:43 -07:00
Anders Hejlsberg
034e8b052c
Adjusting error messages
2015-04-26 18:29:37 -07:00
Vladimir Matveev
b1cc06e44c
merge with master
2015-04-23 20:50:35 -07:00
Mohamed Hegazy
ded0e398b4
update error messages
2015-04-23 10:53:19 -07:00
Mohamed Hegazy
658bba9eaf
Add --inlineSources option
2015-04-20 20:33:31 -07:00
Mohamed Hegazy
7aee43b6da
Merge branch 'master' into release-1.5
2015-04-20 15:48:15 -07:00
Mohamed Hegazy
08a869212b
Respond to code review commmetns
2015-04-20 14:23:24 -07:00
Vladimir Matveev
dcb4c24b43
merge with master
2015-04-20 13:40:13 -07:00
Mohamed Hegazy
c940b1651a
Merge branch 'master' into inlineSourceMaps
2015-04-19 13:33:50 -07:00
Mohamed Hegazy
021f309151
Merge branch 'master' into rootDir
2015-04-19 13:25:03 -07:00
Mohamed Hegazy
b3fcae88b9
Fix typo
2015-04-19 13:24:39 -07:00
Mohamed Hegazy
2049684154
Update version
2015-04-19 12:46:38 -07:00
Mohamed Hegazy
3013aba309
Merge branch 'master' into release-1.5
...
Conflicts:
bin/tsc.js
bin/typescript.js
bin/typescriptServices.js
src/compiler/program.ts
2015-04-19 12:44:53 -07:00
Daniel Rosenwasser
79dc0f96d3
Merge pull request #1546 from Arnavion/fix-emithost-this-binding
...
Don't lose the this reference for compilerHost methods.
2015-04-18 11:29:44 -07:00
Mohamed Hegazy
8964b8e5b6
Merge branch 'master' into rootDir
...
Conflicts:
tests/baselines/reference/APISample_compile.types
tests/baselines/reference/APISample_linter.types
tests/baselines/reference/APISample_transform.types
tests/baselines/reference/APISample_watcher.types
2015-04-16 16:52:51 -07:00
Mohamed Hegazy
b6ef32346b
Respond to code review comments
2015-04-16 16:35:48 -07:00
Mohamed Hegazy
261adffe50
Add rootDir option
2015-04-14 22:11:25 -07:00
Mohamed Hegazy
e7895c59d4
Move commonSourceDirectory computation to its own function
2015-04-14 15:05:08 -07:00
Cyrus Najmabadi
61951e5d94
Use a single scanner for all parsing tasks.
2015-04-12 14:02:58 -07:00
Vladimir Matveev
1781ce1bd8
Merge remote-tracking branch 'origin/master' into systemModule
2015-04-11 12:31:52 -07:00
Vladimir Matveev
e8fcf8fa2a
initial support for system module
2015-04-10 12:10:38 -07:00
Mohamed Hegazy
e30f0d4ae6
Make version const
2015-04-09 14:18:43 -07:00
Mohamed Hegazy
a998abb153
Add inlineSourceMap option
2015-04-08 00:14:23 -07:00
Mohamed Hegazy
9c4734901c
Update version
2015-04-01 09:30:13 -07:00
Vladimir Matveev
f239bbc3b1
Merge pull request #2550 from Microsoft/separateCompilation
...
Relax import/export elision rules for separate compilation
2015-03-31 14:51:39 -07:00
Vladimir Matveev
c885f59d1b
do not include declaration files in 'is external module' check
2015-03-30 22:41:49 -07:00
Vladimir Matveev
4b7e6cfc2e
addressed CR feedback, accepted baselines
2015-03-30 20:16:50 -07:00
Mohamed Hegazy
83e8910dc1
update version in program
2015-03-26 10:44:44 -07:00
steveluc
48482071f6
Moved findConfigFile to program.ts. Addressed pull request comments.
2015-03-24 14:03:21 -07:00
Arnavion
0d6ce02405
Don't lose the this reference for compilerHost methods.
...
Fixes #1545
2015-03-24 10:05:24 -07:00
Cyrus Najmabadi
19517ac0dd
Emit, even in the presence of declaration errors and noEmitOnError.
...
We're reverting to the previous behavior we had until there is more consensus
on the best way to deal with this issue.
2015-03-22 21:39:07 -07:00
Cyrus Najmabadi
791a0e4e39
Don't actually emit declarations when we just want the diagnostics for them.
2015-03-19 21:12:25 -07:00
Cyrus Najmabadi
85d71b2883
No emit should happen if there are declaration errors and noEmitOnErrors is specified.
2015-03-19 16:55:07 -07:00
Mohamed Hegazy
7462915baf
Expose setParentNodes on createCompilerHost
2015-03-18 14:11:50 -07:00
Mohamed Hegazy
a06ce61684
Merge branch 'master' into es6ImportExportEmit
2015-03-17 13:03:17 -07:00
Anders Hejlsberg
ad75193528
Merge branch 'master' into cleanupDiagnostics
...
Conflicts:
src/compiler/program.ts
2015-03-17 06:26:24 -07:00
Mohamed Hegazy
b6a6d85e6b
Merge branch 'master' into es6ImportExportEmit
...
Conflicts:
src/compiler/checker.ts
src/compiler/emitter.ts
src/compiler/program.ts
2015-03-15 15:48:23 -07:00
Cyrus Najmabadi
2e8eb4e17a
Use 'let' in the ompiler layer.
2015-03-13 15:03:17 -07:00
Anders Hejlsberg
c4b0302acf
Clean up diagnostic timers and -diagnostic output
2015-03-13 14:49:32 -07:00
Sheetal Nandi
4b7548487c
Fix the checks with language version to use default es3
2015-03-12 00:36:14 -07:00
Mohamed Hegazy
b52d9ec23e
Report error if module gen target is specified in es6
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/compiler/program.ts
tests/baselines/reference/constDeclarations-access5.errors.txt
tests/baselines/reference/es6ExportAssignment.errors.txt
tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.errors.txt
tests/baselines/reference/es6ImportDefaultBindingFollowedWithNamespaceBinding.js
tests/baselines/reference/es6ImportDefaultBindingMergeErrors.errors.txt
tests/baselines/reference/es6ImportEqualsDeclaration.errors.txt
tests/cases/compiler/es6ImportDefaultBinding.ts
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport.ts
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImport1.ts
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamedImportDts.ts
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding.ts
tests/cases/compiler/es6ImportDefaultBindingFollowedWithNamespaceBinding1.ts
tests/cases/compiler/es6ImportDefaultBindingMergeErrors.ts
tests/cases/compiler/es6ImportDefaultBindingNoDefaultProperty.ts
tests/cases/compiler/es6ImportNameSpaceImport.ts
tests/cases/compiler/es6ImportNamedImport.ts
tests/cases/compiler/es6ImportNamedImportMergeErrors.ts
tests/cases/compiler/es6ImportNamedImportNoExportMember.ts
tests/cases/compiler/es6ImportWithoutFromClause.ts
tests/cases/compiler/es6ImportWithoutFromClauseNonInstantiatedModule.ts
2015-03-11 22:53:36 -07:00
Bill Ticehurst
a6816fc128
Added description to version exports
2015-03-07 20:12:16 -08:00
Bill Ticehurst
da5caf5f72
Made the 'version' string an exported property
2015-03-06 17:09:55 -08:00
Cyrus Najmabadi
d3fbebf3fb
Never use the entire span of a function declaration or function expression when reporting a checker error.
2015-03-04 18:15:55 -08:00
Cyrus Najmabadi
0be645943a
Print times in a manner more consistent with the 1.3 compiler.
...
This allows us to more accurately compare and constrast times between that
compiler and the current one.
2015-02-26 14:51:04 -08:00
Cyrus Najmabadi
a020a43216
Ensure that the cost for typechecking is not billed to the emit portion of the compiler.
2015-02-25 16:45:45 -08:00
Anders Hejlsberg
79be0a7d26
Support for ES6 export declarations (except export default and export *)
2015-02-12 18:05:02 -08:00
Anders Hejlsberg
e47f64c510
Checking of ES6 import declarations
2015-02-08 17:33:45 -08:00
Anders Hejlsberg
69bd05946a
CommonJS emit for ES6 import declarations
2015-02-08 08:03:15 -08:00
Anders Hejlsberg
7bd14a7895
Merge branch 'master' into es6importcheck
...
Conflicts:
src/compiler/checker.ts
2015-02-06 14:36:36 -08:00
Anders Hejlsberg
35583e6694
Process ES6 imports when creating program
2015-02-06 06:15:03 -08:00
Cyrus Najmabadi
c77f732762
CR feedback.
2015-02-05 17:24:46 -08:00
Cyrus Najmabadi
66a363f449
Simplify the API for emitting and reporting exit statuses to callers.
2015-02-05 15:50:18 -08:00
Cyrus Najmabadi
b0061c1420
Emit both javascript and declarations in the presence of errors (*unless* -noEmitOnError is specified).
2015-02-05 14:41:04 -08:00
Cyrus Najmabadi
ea4e3de91c
Remove unnecessary diagnostics split on SourceFile.
2015-02-05 13:38:11 -08:00
Cyrus Najmabadi
c1dfdaa436
Simplify code for getting diagnostics in the Program.
2015-02-05 02:15:38 -08:00
Cyrus Najmabadi
337a99f62a
Change the API for getting diagnostics so that all calls go through a Program instance.
2015-02-05 01:47:29 -08:00
Cyrus Najmabadi
b12be3db19
Remove dependency from the typechecker to the compiler host.
...
This also lets us not expose the compiler host from the Program instance.
The compiler host was only needed by the type checker to get the host newline.
The host newline was used for concatenating diagnostic message chains. Now
we don't concatenate them up front. Instead, we just store the message chain
in the diagnostic itself. Then when we pass it to the host, it can then decide
what newline to use.
2015-02-04 23:20:26 -08:00
Cyrus Najmabadi
28c1a23e7c
Track performance statistics in the ts module.
...
This allows us to greatly simplify the compile function in tsc.
2015-02-04 18:42:44 -08:00
Cyrus Najmabadi
3cadb3c30c
Use a diagnostics collection inside the program instance.
2015-02-04 18:12:13 -08:00
Cyrus Najmabadi
476c8249ac
Remove 'isEmitBlocked' from the program API.
...
If emitting is blocked, then calling .emit on the program will simply return
immediately with an appropriate reason given in the EmitResult.
2015-02-04 17:48:29 -08:00
Cyrus Najmabadi
2a1d78d9e3
Simplify the createProgram API.
...
Allow the host parameter to be optional to simplify command line programs.
2015-02-04 17:02:26 -08:00
Cyrus Najmabadi
bb307f8163
Simplify the API for emitting code from the Program instance.
2015-02-04 16:53:14 -08:00
Cyrus Najmabadi
b6d083fa40
Do not publicly expose a way on a Program instance to get typecheckers with differing behavior.
...
Now, you can only get the non-diagnostics, pull-type-checker from the Program instance.
If you want diagnostics, you simply ask the Program instance for the diagnostics you want.
2015-02-04 16:11:38 -08:00
Cyrus Najmabadi
5b049feb36
Hide the diagnostic producing methods from TypeChecker.
...
Instead, consumers should get these diagnostics through the Program instance.
2015-02-04 14:29:25 -08:00
Cyrus Najmabadi
95702a89a7
Fix spelling of 'Filename' to be 'FileName'.
2015-02-03 16:08:46 -08:00
Vladimir Matveev
288e38fa36
merge with master
2015-02-03 11:26:39 -08:00
Mohamed Hegazy
d6bd9f74d2
Merge branch 'master' into LSAPICleanup
2015-02-02 18:49:13 -08:00
Cyrus Najmabadi
d66e70a960
Emit even in the presence of parse errors.
2015-02-02 15:28:23 -08:00
Cyrus Najmabadi
dd8d3535ff
Remove the concept of early errors from the compiler.
...
Currently only parse errors prevent emitting (And this will be changed in the next
code review as well).
2015-02-02 15:14:19 -08:00
Mohamed Hegazy
0ce51e684f
Fix #1871 by ensuring the at we get the canonical filename before we check the extension
2015-01-30 18:22:12 -08:00
Mohamed Hegazy
04d8f5af12
Merge branch 'master' into LSAPICleanup
...
Conflicts:
src/services/services.ts
2015-01-27 20:11:16 -08:00
Sheetal Nandi
e0581899fa
Rename existing import declaration to ImportEqualsDeclaration
2015-01-27 14:42:20 -08:00
Mohamed Hegazy
0257acebd3
Respond to code review comments
2015-01-26 16:45:34 -08:00
Vladimir Matveev
ad42afc4af
resolve merge conflicts
2015-01-22 11:23:27 -08:00
Vladimir Matveev
c40977c5fb
move getSyntacticDiagnostics out of SourceFile
2015-01-16 12:32:37 -08:00
Anders Hejlsberg
65452aa011
Hardening compiler to accept empty CompilerOptions object
2015-01-15 15:57:08 -08:00
Anders Hejlsberg
f9f95ba614
Support for tsconfig.json files in command-line compiler
2015-01-15 13:22:23 -08:00
Mohamed Hegazy
3c59b9fe9c
Add getDefaultLibraryFilePath to retrive the default lib file path for node package consumers
2015-01-14 15:52:53 -08:00
Mohamed Hegazy
a99b958484
Manual port of fixe for #1593 from release-1.4
2015-01-13 09:30:54 -08:00
Cyrus Najmabadi
67b2f13cce
Merge branch 'master' into layering
...
Conflicts:
src/compiler/parser.ts
2014-12-18 00:39:56 -08:00
Cyrus Najmabadi
71c82dd33f
Remove obsolete comment.
2014-12-16 15:32:56 -08:00
Cyrus Najmabadi
5a2fb94a95
Clean things up so the services layer can easily emit without having to contort compiler hosts.
2014-12-16 14:42:58 -08:00
Cyrus Najmabadi
f5ad79fe7a
Remove the dependency that TypeChecker and Emitter have on Program.
...
Instead, these layers explicitly specify the functionality they need, and don't take in anything extra.
2014-12-16 14:12:17 -08:00
Cyrus Najmabadi
b665323d45
Make the emitter no longer depend on the Program.
...
This breaks layering. Also, it means the emitter depends on too large a surface area.
Now the emitter declares exactly what it needs, and only gets that.
2014-12-16 13:52:47 -08:00
Cyrus Najmabadi
96c3c90d9a
Rename typechecker parameter related to whether or not we produce diagnostics.
...
Comment what the flag means.
2014-12-16 13:30:34 -08:00
Cyrus Najmabadi
4aa361d4bf
Layer the compiler so that every layer only depends on hte layers below it.
...
The layering is now:
types
core
scanner
parser
binder
checker
emitter
program
2014-12-16 13:14:14 -08:00