Sheetal Nandi
5353128387
Emit pinned/tripleslash reference comments of ambient declarations
...
Fixes #501
2014-08-22 16:10:26 -07:00
Sheetal Nandi
393464eb18
Emit pinned/tripleslash reference comments of interfaces
...
Fixes #501
2014-08-22 16:10:19 -07:00
Sheetal Nandi
85b892fd6a
Emit pinned/tripleslash reference comments of signatures
...
Fixes #501
2014-08-22 16:10:11 -07:00
Sheetal Nandi
e6cd3e15b0
Merge pull request #509 from Microsoft/emitLeadingCommentsForCurly
...
Emit leading comments for '}' of function/constructor block
2014-08-22 16:01:49 -07:00
Daniel Rosenwasser
48c6bdb2aa
Merge branch 'master' into printDiagnosticCodes
2014-08-22 15:52:04 -07:00
Daniel Rosenwasser
7f4ae93904
Updated error reporting within harness to match that of tsc.
2014-08-22 15:32:40 -07:00
Cyrus Najmabadi
9aee22b943
Merge branch 'master' into newLanguageService
...
Conflicts:
src/compiler/diagnosticInformationMap.generated.ts
src/compiler/diagnosticMessages.json
src/harness/fourslash.ts
src/harness/harness.ts
src/harness/harnessLanguageService.ts
src/harness/rwcRunner.ts
src/services/services.ts
2014-08-22 14:23:14 -07:00
Sheetal Nandi
519ef5b383
Correct the declaration emit for overload implementation if there is single overload signature
...
Fixes #480
2014-08-22 13:24:57 -07:00
Sheetal Nandi
53d79a25d3
Emit leading comments for '}' of the constructor block
...
Fixes #503
2014-08-21 17:17:32 -07:00
Sheetal Nandi
45e76e2bd2
Emit leading comments for '}' of the function block
...
Fixes #503
2014-08-21 17:17:02 -07:00
Sheetal Nandi
d2ae999a48
Enable test case for declaration emit for multiple file emit scenario
2014-08-21 16:15:30 -07:00
Sheetal Nandi
3e2de14933
Emit new lines between source files emit so that the file contents always start on new line
...
Fixes #500
2014-08-21 13:44:26 -07:00
Mohamed Hegazy
6965a06b04
Support getReferences on rightside of export assignment and import statements
2014-08-21 13:03:46 -07:00
Mohamed Hegazy
bbeeb8df7f
update getSymbolInfo
2014-08-21 00:13:29 -07:00
Mohamed Hegazy
e0ffc47acc
Merge branch 'master' into getReferences
...
Conflicts:
src/compiler/checker.ts
2014-08-20 22:55:41 -07:00
Mohamed Hegazy
74518a9b7f
respond to code review comments
2014-08-20 22:46:47 -07:00
Sheetal Nandi
6e4d0ef1ef
Merge pull request #452 from Microsoft/emitComments
...
Emit comments in the .js and .d.ts files
2014-08-20 17:07:24 -07:00
Sheetal Nandi
8ad66bb6c6
Compiler test case for commit 0636a06
2014-08-20 16:18:40 -07:00
Mohamed Hegazy
978c2ef670
Fix getReferences for labels
2014-08-20 15:35:30 -07:00
Mohamed Hegazy
55512faa0d
Use new tree to get Bloom filters
2014-08-20 11:25:39 -07:00
Jason Freeman
bfa2e940c0
Support resolution of any part of the RHS of an import
2014-08-19 15:04:30 -07:00
Sheetal Nandi
b5bd1bf505
Emit detached comments for constructor body
2014-08-19 12:38:56 -07:00
Sheetal Nandi
ebd00bd1bc
Emit detached comments for function body
2014-08-19 12:06:52 -07:00
Sheetal Nandi
a11ad539c4
Emit copyright headers before anything else in the sourceFile
2014-08-19 10:43:13 -07:00
Sheetal Nandi
ce89da227d
Include previous token trailing comments for parameters and type parameters as part of leading comments of them
2014-08-19 10:00:38 -07:00
Jason Freeman
f949c5014a
Merge branch 'master' into typeWriter
...
Conflicts:
src/compiler/types.ts
2014-08-18 19:57:35 -07:00
Jason Freeman
a8c2f82f3c
Temporary fix for import case in getTypeOfNode
2014-08-18 19:56:03 -07:00
Daniel Rosenwasser
8baee8a785
Merge branch 'master' into diagnosticsCleanup
2014-08-18 15:42:58 -07:00
Daniel Rosenwasser
a366984bc9
Reassigned diagnostic codes.
2014-08-18 15:42:27 -07:00
Jason Freeman
58a99f3aea
Accept new typeWriter baseline
2014-08-18 14:40:15 -07:00
Jason Freeman
d02d9bfa7e
Merge branch 'master' into typeWriter
...
Conflicts:
src/compiler/checker.ts
2014-08-18 14:37:21 -07:00
Mohamed Hegazy
54d8722189
Merge branch 'master' into classifier
2014-08-18 14:33:30 -07:00
Jason Freeman
f72ceab987
Accept recent changes in typeWriter baselines
2014-08-18 14:29:42 -07:00
Sheetal Nandi
ecaf4ad221
Baselines update after comment formatting pull request ( #455 ) was merged
2014-08-18 13:44:18 -07:00
Sheetal Nandi
e0faa65d4b
Merge pull request #455 from Microsoft/formatComment
...
Align the multiline comments in the generated outputs by retaining its position relative to the first line in the comment
2014-08-18 13:26:18 -07:00
Mohamed Hegazy
3251b7e234
Support filtering references based on meaning
2014-08-18 13:06:18 -07:00
Mohamed Hegazy
f8122977a7
include inherited properties from base classes and interfaces in getReference results
2014-08-18 13:03:55 -07:00
Mohamed Hegazy
7f53783ed4
add new test for getReferences on enums
2014-08-18 13:03:45 -07:00
Mohamed Hegazy
922d6d6258
support getReferences on properties and index access wiht numeric and string values
2014-08-18 13:03:35 -07:00
Mohamed Hegazy
d419982422
Support getReferences on contextually typed object literal properties
2014-08-18 13:03:25 -07:00
Mohamed Hegazy
55d002117c
support getReferences on object literals
2014-08-18 13:00:31 -07:00
Mohamed Hegazy
fa1033ab7a
add support for getReferences on property string index access
2014-08-18 12:41:22 -07:00
Mohamed Hegazy
bfd13347d4
Handel getRefrences for labels
2014-08-18 12:41:12 -07:00
Mohamed Hegazy
69c653d5e8
add some debug methods
2014-08-18 12:41:01 -07:00
Mohamed Hegazy
f45ab4229c
Enable some more tests
2014-08-18 12:40:31 -07:00
Mohamed Hegazy
6a92b21151
enable reference tests
2014-08-18 12:40:21 -07:00
Anders Hejlsberg
63b83e7c3f
Contextual typing of array literals is now based on the presence or absence
...
of numerically named properties and doesn't directly test for tuple types.
2014-08-16 12:06:51 -07:00
Anders Hejlsberg
c0e802deb5
Accepting new baselines after merge.
2014-08-16 11:15:31 -07:00
Anders Hejlsberg
0cf503fd9f
Merge branch 'master' into tupleTypes
...
Conflicts:
tests/baselines/reference/typeName1.errors.txt
2014-08-16 11:11:59 -07:00
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