1635 Commits

Author SHA1 Message Date
Daniel Rosenwasser
7abe8a1550 Add builder in computed properties and index signatures. 2015-07-02 12:22:07 -07:00
Ryan Cavanaugh
77d93625cb Merge pull request #3699 from RyanCavanaugh/fixJsxAttribCompletion
Fix attribute completion following JSX exprs
2015-07-01 23:52:40 -07:00
Ryan Cavanaugh
ef765e56df Filter out would-be-duplicate names from JSX attribute completion 2015-07-01 16:04:29 -07:00
Ryan Cavanaugh
f465d99492 Fix attribute completion following JSX exprs 2015-07-01 15:00:06 -07:00
Arthur Ozga
d8fe237edf merged in master 2015-06-29 14:34:12 -07:00
Ryan Cavanaugh
e1c9d28cb0 Merge pull request #3564 from RyanCavanaugh/jsxAndAs
JSX and `as` operator
2015-06-29 10:54:28 -07:00
Daniel Rosenwasser
591a0db45d Merge pull request #3367 from Microsoft/fixDeFaultOfFindAllRefsToMaster
Fix findAllRefs, getHighlightSpans, renameLocs, renameInfo for default exports and functions expressions
2015-06-29 12:27:02 -04:00
Ryan Cavanaugh
634d35a7d0 Merge remote-tracking branch 'upstream/master' into jsxAndAs
Conflicts:
	src/compiler/checker.ts
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/diagnosticMessages.json
	src/services/services.ts
2015-06-29 09:23:44 -07:00
Daniel Rosenwasser
4143d1df7f Addressed CR feedback. 2015-06-29 10:29:23 -04:00
Ryan Cavanaugh
306de4d681 CR feedback 2015-06-26 14:18:51 -07:00
Daniel Rosenwasser
eeec05d5a9 Merge branch 'master' into fixDeFaultOfFindAllRefsToMaster 2015-06-26 12:23:06 -04:00
Yui T
c3af662e32 Change var -> let and use destructuring 2015-06-25 18:39:29 -07:00
Arthur Ozga
a7ec1c4874 merged master 2015-06-25 13:25:44 -07:00
Dick van den Brink
627ebc86eb Fixed formatting spaces on default keyword 2015-06-25 20:47:40 +02:00
Daniel Rosenwasser
816cfe3ec6 Merge pull request #3615 from Microsoft/completionsInObjectPatterns
Enable completions in object binding patterns
2015-06-24 22:53:53 -04:00
Dick van den Brink
2a483187a7 Remove unused variables 2015-06-25 00:23:13 +02:00
Daniel Rosenwasser
e52a27b3de Renamed function. 2015-06-24 18:07:49 -04:00
Dick van den Brink
4853fd0267 Fixed formatting spaces on protected keyword 2015-06-24 23:26:13 +02:00
Mohamed Hegazy
36a30c42b5 Rename functions and variables, also a small refactoring. 2015-06-24 11:53:53 -07:00
Daniel Rosenwasser
d892a55aa9 Use 'propertyName' when available in a BindingPattern. 2015-06-24 12:35:11 -04:00
Daniel Rosenwasser
498d06f6c0 Got filtering working in object binding patterns. 2015-06-24 11:41:59 -04:00
Daniel Rosenwasser
c114de1a83 Basic completion in object destructuring working. 2015-06-24 11:31:36 -04:00
Mohamed Hegazy
f5f4af2825 Merge branch 'blockFormParameterIndentation' of https://github.com/SaschaNaz/TypeScript into SaschaNaz-blockFormParameterIndentation 2015-06-23 16:48:31 -07:00
Daniel Rosenwasser
6accbdf029 Generalize logic for upcoming work on object binding completion. 2015-06-23 16:43:39 -07:00
Daniel Rosenwasser
0b78d03746 Clean up 'getContainingObjectLiteralApplicableForCompletion'. 2015-06-23 15:32:47 -07:00
Arthur Ozga
d34b23a7a1 Merge branch 'master' into abstract-classes2 2015-06-23 11:49:18 -07:00
Vladimir Matveev
8e2b204ace do not try to classify missing nodes 2015-06-23 11:25:33 -07:00
Daniel Rosenwasser
abd7db7614 Merge branch 'master' into fixDeFaultOfFindAllRefsToMaster
Conflicts:
	src/compiler/checker.ts
	src/compiler/types.ts
2015-06-22 17:14:12 -07:00
Ryan Cavanaugh
16c834420c More cleanup 2015-06-22 13:55:09 -07:00
Ryan Cavanaugh
e448d8b932 Treat </ as a token in TSX files 2015-06-22 11:53:38 -07:00
Arthur Ozga
b7f4ee5478 Merge branch 'master' into abstract-classes2 2015-06-19 15:46:26 -07:00
Ryan Cavanaugh
6d01a44be0 Formatting and LS for JSX and As 2015-06-18 14:02:02 -07:00
CyrusNajmabadi
dd671ed431 Merge pull request #3530 from Microsoft/lessScanningDuringClassification
Scan less during classification.
2015-06-18 11:19:22 -07:00
Cyrus Najmabadi
3f40e47fcc Don't access diagnostics directly. Use the supported Program API for them. 2015-06-18 09:45:32 -07:00
Cyrus Najmabadi
febe320b62 Merge branch 'master' into diagnosticCleanup2
Conflicts:
	src/services/services.ts
2015-06-18 09:36:37 -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
Cyrus Najmabadi
ede80c1de2 Don't use spread operator when pushing arrays onto other arrays.
Spreading emits as ".push.apply(reciver, values)".  This pushes every elements in
values onto the stack before calling the function.  This can easily stack overflow
if the amount of values is high (i hit this with ~10k values on my own system).
2015-06-18 09:12:08 -07:00
Cyrus Najmabadi
151306f423 PR feedback. 2015-06-18 08:30:26 -07:00
Anders Hejlsberg
26fd879843 Merge branch 'master' into extendsExpressions 2015-06-17 14:12:47 -07:00
Anders Hejlsberg
d71af8a3fb Addressing CR feedback 2015-06-17 13:28:39 -07:00
Cyrus Najmabadi
d206f62adb Squueze perf in syntactic classification. 2015-06-16 17:56:11 -07:00
Cyrus Najmabadi
3bb7be96fa Scan less during classification. 2015-06-16 16:07:24 -07:00
Arthur Ozga
1d5dcf0d0c changes that are non-breaking 2015-06-16 15:39:34 -07:00
Arthur Ozga
aed48ecb99 changed to '==' to '===', '!=' to '!==' 2015-06-16 14:56:31 -07:00
Arthur Ozga
388e2fd926 merge with extendsExpressions 2015-06-16 13:33:03 -07:00
Anders Hejlsberg
2c57776f91 Merge branch 'master' into extendsExpressions
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/strictModeReservedWordInClassDeclaration.errors.txt
2015-06-16 12:04:04 -07:00
Arthur Ozga
506349f9c5 Fix merge conflicts with master 2015-06-15 16:48:09 -07:00
Arthur Ozga
5316d0d0df Abstract keyword: Added parsing and some checks
keyword `abstract` is parsed at the head of class declarations and as a modifier for class member functions/variables.

The following checks have been implemented:
* Objects whose type is an abstract class cannot be instantiated with `new`.
* all overloads of a function must match w/r/t having the abstract keyword.
* a member/class decl can't use the `abstract` keyword multiple times.
* a member can't be both `abstract` and `static`.
* a member can't be both `abstract` and `private`.
* Accessibility modifiers can't follow `abstract`
* Only classes and member functions can be declared abstract.
* abstract methods don't need an implementation
* abstract methods can only appear in abstract classes.

TODO:

* forbid abstract methods from having an implementation.
* make sure, barring overriding, an inherited method is abstract iff it is abstract in the parent.
* If a class has an abstract members, then it must be abstract. (eg: class B does not implement inherited member 'foo()')
* prevent overriding a non-abstract method with an abstract method.
* update "abstractness" flag when overriding abstract method with non-abstract method.
* prevent calling an abstract method via super.<abstract method name>()
* make all overloads of an abstract method adjacent to eachother.
* constructors can't be declared abstract -- give appropriate error.
* figure out what to emit to the *.ts file -- probably nothing.
* figure out what to emit to the *.d.ts file.
* process abstract declarations.
2015-06-15 16:29:34 -07:00
Anders Hejlsberg
cc81cc77f9 Check that base constructor return types are identical
Treat class extends clause as expression position in services.ts
2015-06-15 15:44:43 -07:00
Cyrus Najmabadi
d7c791f581 Don't log by default.
On the managed side tracing is disabled by default anyways.  By logging we still
cause tons of allocations of strings on the managed side.  These then cause
expensive GCs which can pause editing.
2015-06-12 13:49:38 -07:00