Yui T
271bb29c94
Minor spelling and spacing fix
2014-09-10 15:58:09 -07:00
Yui T
0435c14081
Add getEmitOutput and update call to getCurrentDirectory
2014-09-10 15:58:07 -07:00
Anders Hejlsberg
b9ae6cec17
Adding a comment
2014-09-10 13:14:30 -07:00
Anders Hejlsberg
3d92adec7b
Fix widening in object literal property assignments
2014-09-10 12:58:30 -07:00
Yui T
9bbbdec0c2
Check for repeating meta-data flag.
2014-09-10 09:57:42 -07:00
Yui T
609d1bc92c
Chage test framework from manual comparing the result to using baseline;
...
Add compilerOptions into fourslash
2014-09-10 09:57:38 -07:00
Yui T
6cba535f20
Fix spelling
2014-09-10 09:57:36 -07:00
Yui T
2a24ea5854
Fix spelling
2014-09-10 09:57:30 -07:00
Yui T
be4133a162
Add meta-data flag name to modify compilationSettings
2014-09-10 09:57:28 -07:00
Yui T
6ef41a74c7
Move checking semantic diagnostics into emitFiles function rather than
...
getEmitOutput
2014-09-10 09:57:26 -07:00
Yui T
537f55cede
Change getCurrentDirectory and getDefaultLibname from passing around
...
function to its final value
2014-09-10 09:57:24 -07:00
Yui T
623b97f2ec
Add check if the compilationSetting object hasOwnProperty before add the property to TypeScriptLS object
2014-09-10 09:57:20 -07:00
Yui T
b0654dc044
Remove enableSingleOutputFile boolean and use singleOutputFilename to check if singleOutputFile is specified
2014-09-10 09:57:18 -07:00
Yui T
451f92bc24
Expose function shouldEmitToOwnFile to be called in services.ts
2014-09-10 09:57:16 -07:00
Yui T
2acd98e03e
Minor spelling and spacing fix
2014-09-10 09:54:42 -07:00
Yui T
8e37730d85
Update fourslash for getEmitOutput
2014-09-10 09:54:36 -07:00
Yui T
d52fe20df3
Add getEmitOutput and update call to getCurrentDirectory
2014-09-10 09:54:34 -07:00
Yui T
6cb5096087
Make getCurrentDirectory and getDefaultLibFilename invocation in management side
2014-09-10 09:54:28 -07:00
Anders Hejlsberg
bf084f159d
Merge pull request #640 from Microsoft/contextualSignatureInstantiation
...
Fix contextual signature instantiation during type inference
2014-09-09 18:46:42 -07:00
Daniel Rosenwasser
2e2d0c3bf1
Extracted 'break'/'continue' aggregation into common helper function.
...
Also addressed other CR feedback. Still need tests.
2014-09-09 17:43:46 -07:00
Sheetal Nandi
163674d07c
Merge pull request #638 from Microsoft/qualificationOfMethods
...
Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
2014-09-09 16:21:41 -07:00
Anders Hejlsberg
34c4b312f9
Fix contextual signature instantiation during type inference
2014-09-09 15:17:33 -07:00
Daniel Rosenwasser
6cc0305a5d
Implemented getOccurrences for 'constructor' keywords.
2014-09-09 14:54:19 -07:00
Daniel Rosenwasser
90dd327635
Changed logic for break/continue search in switch statements and loops.
...
Now if a labeled break in a switch refers to its original switch statement, we also highlight the 'switch' keyword.
Also added tests for loop/break/continue.
2014-09-09 14:30:14 -07:00
Daniel Rosenwasser
69803d4d3c
Implemented getOccurrences for for/for-in/while/do-while loops and their breaks/continues.
...
This includes labelled break/continue.
2014-09-09 14:28:06 -07:00
Anders Hejlsberg
e2c3b50ed1
Merge branch 'master' into truncateTypesInErrors
...
Conflicts:
src/compiler/checker.ts
2014-09-09 13:51:08 -07:00
Daniel Rosenwasser
83c35ad059
Addressed CR feedback.
2014-09-09 12:50:14 -07:00
Sheetal Nandi
840481da3b
Fix the condition for qualifying the symbol of methods and functions in the enclosing declaration
...
Fixes #604
2014-09-09 12:45:10 -07:00
Daniel Rosenwasser
0e93d283e3
Separated 'super'/'this' keyword searching to simplify logic.
2014-09-09 12:41:57 -07:00
Anders Hejlsberg
aa58dcbee0
Adding noErrorTruncation compiler option
2014-09-09 12:25:03 -07:00
Mohamed Hegazy
f61d07db69
add constructor paramters to Blob
2014-09-08 22:30:01 -07:00
Daniel Rosenwasser
131ac2f188
Disabled findAllRefs for 'this'/'super'.
2014-09-08 17:44:15 -07:00
Mohamed Hegazy
6fee404152
Merge pull request #602 from Microsoft/noImplicitAnyOnCast
...
Do not show noImplictAny errors when widening for a cast expression
2014-09-08 17:28:49 -07:00
Anders Hejlsberg
9f3d83adeb
Truncate long types in error messages
2014-09-08 16:14:43 -07:00
Daniel Rosenwasser
1121e11c45
Basic implementation without tests for findAllRefs/getOccs for 'super' keywords.
2014-09-08 13:52:28 -07:00
Daniel Rosenwasser
5edf075142
Corrected some spelling/grammar issues.
2014-09-08 13:07:45 -07:00
Mohamed Hegazy
06888e86f9
Merge branch 'master' into noImplicitAnyOnCast
...
Conflicts:
src/compiler/checker.ts
tests/baselines/reference/arrayCast.errors.txt
tests/baselines/reference/contextualTyping39.errors.txt
tests/baselines/reference/contextualTyping41.errors.txt
tests/baselines/reference/fuzzy.errors.txt
tests/baselines/reference/genericTypeAssertions2.errors.txt
tests/baselines/reference/genericTypeAssertions4.errors.txt
tests/baselines/reference/genericTypeAssertions5.errors.txt
tests/baselines/reference/intTypeCheck.errors.txt
tests/baselines/reference/typeAssertions.errors.txt
2014-09-08 10:23:37 -07:00
Anders Hejlsberg
59889d871d
Corrected codegen to support shadowed module names.
2014-09-06 17:40:19 -07:00
Anders Hejlsberg
2d7d491f4f
Merge pull request #618 from Microsoft/typeAssertionErrors
...
Properly report errors for failed type assertions
2014-09-06 12:19:01 -07:00
CyrusNajmabadi
1eacacdc24
Merge pull request #620 from Microsoft/incrementalParsingBug
...
Fix incremental parsing bug due to non invalidating cached data in nodes...
2014-09-05 18:06:15 -07:00
Cyrus Najmabadi
aeb428e9e5
Fix incremental parsing bug due to non invalidating cached data in nodes.
2014-09-05 17:59:52 -07:00
Anders Hejlsberg
8e7be9ad98
Properly report errors for failed type assertions
2014-09-05 17:09:00 -07:00
Mohamed Hegazy
90ecf811ff
Merge pull request #609 from Microsoft/HTMLElementIndexer
...
Add numeric indexer to HTMLElementCollection
2014-09-05 17:06:10 -07:00
Mohamed Hegazy
dd3bb9cc69
Merge branch 'master' into noImplicitAnyOnCast
2014-09-05 16:46:41 -07:00
Mohamed Hegazy
b3260653ce
move getWidenedType* functions inside the getWidenedType function scope
2014-09-05 16:45:30 -07:00
Mohamed Hegazy
3b6afb8499
respond to code review remarks
2014-09-05 16:41:37 -07:00
Daniel Rosenwasser
024ca6d6ac
Addressed CR feedback.
2014-09-05 15:58:22 -07:00
Anders Hejlsberg
e157763d6c
Merge pull request #610 from Microsoft/circularFunctionExpressions
...
Circular function expressions
2014-09-05 15:43:44 -07:00
Anders Hejlsberg
be7e0a75e9
Merge branch 'master' into tupleTypes
2014-09-05 13:52:45 -07:00
Mohamed Hegazy
901c72808d
Merge branch 'master' into emitDeclarationWithNoResolve
2014-09-05 13:07:14 -07:00
Mohamed Hegazy
cc3cae34e9
respond to code review remarks and reverted tryResolveScriptReference to resolveScriptReference
2014-09-05 13:06:10 -07:00
Anders Hejlsberg
5fdc908a36
Deferred type checking of function expressions to support circular definitions.
2014-09-05 12:55:28 -07:00
Mohamed Hegazy
3bcde460fd
Add numeric indexer to HTMLElementCollection
2014-09-05 12:54:56 -07:00
Daniel Rosenwasser
84e385ddfa
Made a getThisContainer function.
2014-09-05 12:14:50 -07:00
Sheetal Nandi
0dc95ceb60
Use double quotes in declaration file's reference path generation so that quotes in file name wouldnt affect reference resolution
...
Fixes #474
2014-09-04 16:21:56 -07:00
Mohamed Hegazy
5422e56d48
Do not show noImplictAny errors when widening for a cast expression
2014-09-04 14:25:12 -07:00
Sheetal Nandi
f582902ec0
Merge pull request #569 from Microsoft/collisions
...
Report error if exports or require is used for declaration name in external module
2014-09-04 13:44:43 -07:00
Daniel Rosenwasser
e6e9979482
getRefs/getOccs support for 'this' keyword.
2014-09-04 13:30:16 -07:00
Daniel Rosenwasser
492e1c5d72
Merge pull request #593 from Microsoft/getOccurrencesReturn
...
Get occurrences for return keywords.
2014-09-04 13:20:07 -07:00
Mohamed Hegazy
acf557dd3c
Do not emit references in generated declaration files if the --noresolve flag was set. This fixes a crash in the compiler when generating declarations with /// reference and noResolve
2014-09-04 13:16:22 -07:00
Daniel Rosenwasser
7b5440bb8d
Addressed more CR feedback.
2014-09-04 12:44:18 -07:00
Daniel Rosenwasser
294ad06b68
Merge branch 'getOccurrences' of https://github.com/Microsoft/TypeScript into getOccurrences
2014-09-04 12:01:24 -07:00
Daniel Rosenwasser
837dddaec3
Addressed CR feedback.
2014-09-04 11:54:16 -07:00
Ryan Cavanaugh
4381f725ed
Merge pull request #581 from Microsoft/instrument
...
Add jake task for making instrumented tsc
2014-09-04 10:55:01 -07:00
Anders Hejlsberg
5b1789b2b8
Merge pull request #597 from Microsoft/cacheFileLookups
...
Cache unsuccessful file lookups for improved performance.
2014-09-04 10:48:52 -07:00
Ryan Cavanaugh
b8b522784c
Address CR feedback
2014-09-04 10:44:36 -07:00
Anders Hejlsberg
f62bbc238d
Cache unsuccessful file lookups for improved performance.
2014-09-04 10:17:39 -07:00
Sheetal Nandi
3cc4b73858
Merge pull request #570 from Microsoft/linemaps
...
Handles all the line breaks in calculation of line-character position
2014-09-04 09:53:06 -07:00
Ryan Cavanaugh
0aba039a0d
Speed up RWC IO playback by removing unfound files from resolution candidates
2014-09-04 09:18:29 -07:00
Ryan Cavanaugh
f2546c1392
Correctly handle zero-length test inputs
2014-09-04 09:09:22 -07:00
Mohamed Hegazy
755fce2fd3
Merge pull request #493 from RReverser/patch-1
...
Fix for importing modules from definitions
2014-09-03 13:13:29 -07:00
Anders Hejlsberg
be08411a6c
Merge branch 'master' into deferredTypeLiterals
2014-09-03 10:53:21 -07:00
Ingvar Stepanyan
797ab01467
Return undefined instead of null.
2014-09-03 20:06:17 +03:00
Ingvar Stepanyan
4083d9299b
Fixes #492
...
Conflicts:
src/services/services.ts
2014-09-03 20:06:14 +03:00
Sheetal Nandi
7181184e32
Fixed the parenthesis around the expression around line indent calculation
2014-09-02 21:13:11 -07:00
Sheetal Nandi
223aaca674
Corrected linepos assignment
2014-09-02 21:11:21 -07:00
Ryan Cavanaugh
f328c7c6f8
Handle missing files more gracefully; big perf gains in loggedIO
2014-09-02 17:16:25 -07:00
Ryan Cavanaugh
1249e9d06c
Add timestamp to capture files for better tracking
2014-09-02 15:40:15 -07:00
Ryan Cavanaugh
18de560402
Add jake task for making instrumented tsc
2014-09-02 12:19:58 -07:00
Anders Hejlsberg
2105404931
Merge branch 'master' into deferredTypeLiterals
2014-08-30 16:14:11 -07:00
Sheetal Nandi
816b018ae2
Fix the tab and indent calculation when formatting comments in the emitted output
2014-08-29 20:49:47 -07:00
Sheetal Nandi
a87a7794f4
Report error if exports or require is used for declaration name in external module
...
Fixes #63
2014-08-29 18:45:38 -07:00
Sheetal Nandi
c2b78ead05
Handles all the line breaks in calculation of line-character position
...
lineFeed = 0x0A, // \n
carriageReturn = 0x0D, // \r
lineSeparator = 0x2028,
paragraphSeparator = 0x2029,
nextLine = 0x0085,
Fixes #131
2014-08-29 17:27:47 -07:00
Daniel Rosenwasser
ba396ed28f
Utilize getContainingFunction in services.
2014-08-29 17:13:14 -07:00
Mohamed Hegazy
dc0560ae59
Merge branch 'master' into getReferences
...
Conflicts:
tests/baselines/reference/aliasUsageInGenericFunction.types
tests/baselines/reference/aliasUsageInObjectLiteral.types
tests/baselines/reference/aliasUsageInOrExpression.types
tests/baselines/reference/extendingClassFromAliasAndUsageInIndexer.types
2014-08-29 15:56:36 -07:00
Daniel Rosenwasser
fbb10cd6b3
Added getOccs support for return keywords.
2014-08-29 14:57:48 -07:00
Daniel Rosenwasser
3f3dd29461
Use isWhitespace in getIfElseOccurrences.
2014-08-29 14:52:43 -07:00
Mohamed Hegazy
ee0c0f6cea
Merge branch 'master' into restrictUseOfSys
2014-08-29 14:46:17 -07:00
Daniel Rosenwasser
38d7ba612f
Added missing break statement.
2014-08-29 14:38:08 -07:00
Sheetal Nandi
b514fa58a9
Merge pull request #514 from Microsoft/overloadSignatureDeclaration
...
Correct the declaration emit for overload implementation if there is single overload signature
2014-08-29 14:33:53 -07:00
Daniel Rosenwasser
0632d0c38c
Addressed CR feedback, no longer highlighting elseifs with comments between.
2014-08-29 13:08:48 -07:00
Mohamed Hegazy
49d8157d28
ensure that sys is not used outside tsc.ts
2014-08-28 23:10:05 -07:00
Jason Freeman
ad27af1a33
Merge branch 'master' into typeBaselines
2014-08-28 17:24:45 -07:00
Daniel Rosenwasser
24f6e41de1
Added getOccs support for if/else keywords, and some tests.
2014-08-28 17:14:57 -07:00
Jason Freeman
088ca88bfd
Revert condition inside shouldWriteTypeOfFunctionSymbol
2014-08-28 13:18:59 -07:00
Jason Freeman
44c2453ec6
Don't use UseTypeOfFunction in typeWriter
2014-08-28 12:52:44 -07:00
Jason Freeman
46825ab05d
Print Array as T[]
2014-08-28 12:48:30 -07:00
Jason Freeman
6a7d912fe4
Print pure namespaces as unknown
2014-08-28 12:40:58 -07:00
Jason Freeman
4e1bb26ad1
Print type of super
2014-08-28 12:31:37 -07:00
Daniel Rosenwasser
41d8d6c4e1
Merge pull request #549 from Microsoft/getOccurrences_switchCaseDefault
...
Get occurrences for switch/case/default/break keywords.
2014-08-28 11:41:33 -07:00