CyrusNajmabadi
bb53c38786
Merge pull request #3850 from Microsoft/textClassification
...
Classify Identifiers as 'Identifier', not 'Text'.
2015-07-13 17:08:02 -07:00
Cyrus Najmabadi
785097445e
Update shim tests.
2015-07-13 17:02:55 -07:00
Cyrus Najmabadi
557b795ca7
Merge branch 'master' into textClassification
2015-07-13 17:01:17 -07:00
Cyrus Najmabadi
9c7d1211a7
Update tests.
2015-07-13 16:57:11 -07:00
Cyrus Najmabadi
96c1b9c358
Classify Identifiers as 'Identifier', not 'Text'.
2015-07-13 16:44:07 -07:00
CyrusNajmabadi
aaf0f78553
Merge pull request #3778 from Microsoft/noPushApply
...
Don't call push.apply, it can stack overflow with large arrays.
2015-07-08 11:25:48 -07:00
Cyrus Najmabadi
e0e9bcff46
Don't call push.apply, it can stack overflow with large arrays.
2015-07-07 17:44:22 -07:00
CyrusNajmabadi
9b2d44a676
Merge pull request #3561 from Microsoft/cancellableDiagnostics
...
Make it possible to cancel requests to get diagnostics.
2015-07-06 15:58:35 -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
CyrusNajmabadi
e009d68d6b
Merge pull request #3556 from Microsoft/cancellableClassification
...
Make classification cancellable.
2015-07-06 14:33:45 -07:00
Cyrus Najmabadi
370372e043
Remove shim cancellation test.
2015-07-06 14:25:18 -07:00
Cyrus Najmabadi
af94f1c5d0
Throttle how often we call into the host side to check for cancellation.
2015-07-06 14:04:42 -07:00
Cyrus Najmabadi
bcd8cce03d
Merge branch 'master' into cancellableClassification
2015-07-06 13:22:40 -07:00
Cyrus Najmabadi
5e672b7791
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-19 15:21:08 -07:00
Cyrus Najmabadi
b0f291b175
Merge branch 'master' into cancellableClassification
...
Conflicts:
src/services/services.ts
2015-06-18 15:35:14 -07:00
Cyrus Najmabadi
053be425c7
Add tests.
2015-06-18 15:25:08 -07:00
CyrusNajmabadi
ae17c61dc2
Merge pull request #3565 from Microsoft/incrementalParserReuse
...
Fix incremental parsing issue.
2015-06-18 14:50:37 -07:00
Cyrus Najmabadi
38a54bc0b9
Fix incremental parsing issue.
...
We were moving a method-declaration called "constructor" into a class. This is incorrect
as that same code should be parsed as a constructor-declaration now that it is in the
class context.
2015-06-18 14:16:00 -07:00
Cyrus Najmabadi
c9c0f3a4ad
PR feedback.
2015-06-18 12:04:26 -07:00
Cyrus Najmabadi
df13b8ffd1
Update comment.
2015-06-18 11:43:16 -07:00
Cyrus Najmabadi
6717c79537
Merge branch 'master' into cancellableDiagnostics
2015-06-18 11:23:39 -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
CyrusNajmabadi
dd671ed431
Merge pull request #3530 from Microsoft/lessScanningDuringClassification
...
Scan less during classification.
2015-06-18 11:19:22 -07:00
CyrusNajmabadi
3a9bc99d9b
Merge pull request #3558 from Microsoft/diagnosticCleanup2
...
Make it so all our diagnostics APIs return an independent set of diagnostics.
2015-06-18 11:12:12 -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
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
CyrusNajmabadi
2905f41e7d
Merge pull request #3557 from Microsoft/spreadStackOverflow
...
Don't use spread operator when pushing arrays onto other arrays.
2015-06-18 09:29:26 -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
958a423142
Make classification cancellable.
2015-06-18 08:56:48 -07:00
Cyrus Najmabadi
151306f423
PR feedback.
2015-06-18 08:30:26 -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
CyrusNajmabadi
1b93265257
Merge pull request #3526 from Microsoft/removeGeneratorParameter
...
Remove generatorParameter and asyncParameter contexts.
2015-06-16 14:10:55 -07:00
Cyrus Najmabadi
2e16680f01
Re-number enum.
2015-06-16 14:00:31 -07:00
Cyrus Najmabadi
009c3ee43a
Merge branch 'master' into removeGeneratorParameter
...
Conflicts:
src/compiler/checker.ts
src/compiler/parser.ts
src/compiler/types.ts
2015-06-16 13:48:03 -07:00
Cyrus Najmabadi
f1c99f3397
Remove generatorParameter and asyncParameter contexts.
2015-06-16 13:25:46 -07:00
CyrusNajmabadi
718dc5b7a8
Merge pull request #3517 from Microsoft/strictMode
...
Remove 'strict mode' from parsing and checking, and make it purely something purely checked at bind time.
2015-06-15 23:41:41 -07:00
Cyrus Najmabadi
300089ce2d
PR feedback.
2015-06-15 23:31:40 -07:00
Cyrus Najmabadi
d558e42d94
External modules are always in strict mode in ES6
2015-06-15 18:20:44 -07:00
Cyrus Najmabadi
dcbfa6988a
Modules are always in strict mode in ES6.
2015-06-15 18:01:18 -07:00
Cyrus Najmabadi
417cfa5c2c
Check namespaces for strict mode.
2015-06-15 17:48:15 -07:00
Cyrus Najmabadi
ec9e461869
Remove 'strict mode' from parsing and checking, and make it purely something purely checked at bind time.
2015-06-15 17:31:15 -07:00
CyrusNajmabadi
05b8609f04
Merge pull request #3495 from Microsoft/disableTracing
...
Don't log by default.
2015-06-12 14:03:52 -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
CyrusNajmabadi
a3916ffb50
Merge pull request #3476 from Microsoft/classificationPerf2
...
Don't bother trying to semantically classify names that could never be typenames.
2015-06-12 13:14:08 -07:00
Cyrus Najmabadi
804b976c73
PR feedback.
2015-06-12 13:13:45 -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
Cyrus Najmabadi
dbfdb96f39
Add explanatory comment
2015-06-10 18:24:34 -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
CyrusNajmabadi
29fcd4aa90
Merge pull request #3474 from Microsoft/classificationPerf
...
Use full spans in the classifier. Non-full spans are very expensive to compute.
2015-06-10 17:45:37 -07:00
Cyrus Najmabadi
3a96923061
Use full spans in the classifier. Non-full spans are very expensive to compute.
2015-06-10 17:28:58 -07:00
CyrusNajmabadi
482e333b12
Merge pull request #3384 from Microsoft/lightMode
...
Speed up tests by not type-checking lib.d.ts unless the test asks for that.
2015-06-04 13:29:05 -07:00
Cyrus Najmabadi
fcf6129c7b
PR feedback.
2015-06-04 12:59:51 -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
CyrusNajmabadi
343a923a35
Merge pull request #3372 from Microsoft/taggedAny
...
Simplify handling of the 'any' type inside the checker.
2015-06-03 17:25:15 -07:00
Cyrus Najmabadi
f526a1b0ff
Merge branch 'master' into taggedAny
2015-06-03 16:47:07 -07:00
CyrusNajmabadi
22a1f02665
Merge pull request #3371 from Microsoft/harnessDiagnostics
...
Remove HarnessDiagnostics. Just use the normal ts Diagnostic instead.
2015-06-03 16:42:22 -07:00
Cyrus Najmabadi
b5077bf372
Remove HarnessDiagnostics. Just use the normal ts Diagnostic instead.
2015-06-03 16:28:14 -07:00
Cyrus Najmabadi
12bea33fe3
Remove last read reference of TypeFlags.Any
2015-06-03 15:37:09 -07:00
Cyrus Najmabadi
7b17f6ec8c
Don't check if *all* constituent types are 'any'.
...
Instead check if *any* of hte constituent types are 'any', or if *all*
if the constituent types have some other flag.
2015-06-03 15:16:16 -07:00
Cyrus Najmabadi
7ca13ee945
Check for 'any' only by using the flag, not by checking for instance equality.
2015-06-03 15:06:58 -07:00
Cyrus Najmabadi
cdb6d5bca5
Don't access the anyType directly. Encapsulate all access to it behind a helper.
2015-06-03 13:56:55 -07:00
CyrusNajmabadi
e39a2e7078
Merge pull request #3355 from Microsoft/LKG4
...
Update LKG.
2015-06-02 23:00:17 -07:00
Cyrus Najmabadi
c7ea876b72
Update LKG.
2015-06-02 20:14:40 -07:00
CyrusNajmabadi
fc445aab04
Merge pull request #2843 from Microsoft/binderSimplification3
...
Simplify binder flow. (alternate approach)
2015-06-02 18:00:25 -07:00
Cyrus Najmabadi
4c18b2bcf8
Simplify code.
2015-06-02 17:41:34 -07:00
Cyrus Najmabadi
a85c27739a
Merge branch 'master' into binderSimplification3
...
Conflicts:
src/compiler/binder.ts
2015-06-02 17:09:23 -07:00
CyrusNajmabadi
e671bd6a83
Merge pull request #3351 from Microsoft/minorJsDocMerges
...
Simple changes to the compiler to make the jsDoc work easier.
2015-06-02 16:20:35 -07:00
Cyrus Najmabadi
7ef2cfeaeb
Simple changes to the compiler to make the jsDoc work easier.
2015-06-02 16:05:01 -07:00
CyrusNajmabadi
f624c0fd7e
Merge pull request #3296 from Microsoft/jsDocClassification
...
Add syntactic classification for doc comments.
2015-06-02 15:17:39 -07:00
Cyrus Najmabadi
8fcd29f843
Adding tests.
2015-06-02 15:00:39 -07:00
Cyrus Najmabadi
513183e7b1
PR feedback.
2015-06-02 13:58:49 -07:00
Cyrus Najmabadi
be97bd250c
Merge branch 'master' into jsDocClassification
2015-06-02 13:48:56 -07:00
Cyrus Najmabadi
26103b8548
Remove unnecessary code.
2015-05-28 15:18:39 -07:00
Cyrus Najmabadi
0f3584e9cc
Removing unnecessary code.
2015-05-28 15:04:08 -07:00
Cyrus Najmabadi
caddec902a
Remove uneeded code.
2015-05-28 14:58:22 -07:00
CyrusNajmabadi
1ecb896b87
Merge pull request #3292 from Microsoft/jsDocTests1
...
Add a couple of tests for jsdoccomments.
2015-05-28 14:46:11 -07:00
Cyrus Najmabadi
64c7f3d38b
Add syntactic classification for doc comments.
2015-05-28 14:45:43 -07:00
Cyrus Najmabadi
302a0da7e7
Add tests for jsdoccomments.
2015-05-28 11:49:11 -07:00
CyrusNajmabadi
3f87259ef5
Merge pull request #3291 from Microsoft/jsDocParsing2
...
Parsing support for jsDocComments.
2015-05-28 11:10:17 -07:00
Cyrus Najmabadi
9aab98419b
Parsing support for jsDocComments.
2015-05-28 10:14:18 -07:00
CyrusNajmabadi
8d6dd18b61
Merge pull request #3182 from Microsoft/LKG2
...
Update LKG
2015-05-15 10:53:24 -07:00
Cyrus Najmabadi
8af0cbcef4
Update LKG
2015-05-15 10:35:06 -07:00
CyrusNajmabadi
79ec3ec5a3
Merge pull request #3092 from Microsoft/classificationLoop1.5
...
Prevent infinite loop when classifying.
2015-05-08 13:59:49 -07:00
Cyrus Najmabadi
a8d25c82ac
Prevent infinite loop when classifying.
2015-05-08 13:10:17 -07:00
CyrusNajmabadi
5aed73ff72
Merge pull request #3091 from Microsoft/classificationLoop
...
Prevent infinite loop when classifying.
2015-05-08 12:54:05 -07:00
Cyrus Najmabadi
286f0150a6
Prevent infinite loop when classifying.
2015-05-08 10:54:00 -07:00
CyrusNajmabadi
0c92cf624e
Merge pull request #3088 from Microsoft/fixTSConfigParsing
...
Don't wrap an array of errors in an additional array.
2015-05-08 10:10:28 -07:00
Cyrus Najmabadi
4c809eddfb
Don't wrap an array of errors in an additional array.
2015-05-08 09:55:59 -07:00
CyrusNajmabadi
4c435e0977
Merge pull request #2981 from Microsoft/getClassifications1.5
...
Release-1.5: Add a common, dense, format for classification operations to lower cost of processing on the host side.
2015-04-30 18:35:51 -07:00
CyrusNajmabadi
3bd4dd4095
Merge pull request #2977 from Microsoft/getClassifications2
...
Add a common, dense, format for classification operations to lower cost of processing on the host side.
2015-04-30 18:02:45 -07:00
Cyrus Najmabadi
1c7600b4f5
Update names.
2015-04-30 17:51:07 -07:00
Cyrus Najmabadi
d0ccc11405
Fix name.
2015-04-30 17:51:00 -07:00