241 Commits

Author SHA1 Message Date
uniqueiniquity
3ebb2e8a34 Merge branch 'master' into jsxFragment 2017-10-31 10:53:57 -07:00
Andy
c1b4d59752 Fixup line and offset of rename location of refactor (#19265)
* Fixup line and offset of rename location of refactor

* Fixes

* Handle "\r" only documents

* Update api baselines

* Fix error if an edit comes *after* the rename location

* Add bounds check

* Simpler implementation: get new text, then calculate line starts the usual way
2017-10-19 14:31:23 -07:00
uniqueiniquity
75665294a9 Respond to CR 2017-10-17 13:39:16 -07:00
uniqueiniquity
abb3f58db2 Add support for JSX fragment syntax 2017-10-17 09:38:09 -07:00
Andy
1a2de721b5 Fixes to @augments handling (#18775)
* Fixes to @augments handling

* Renames and diagnostic changes

* Add test for < > characters

* Use more specific return type
2017-09-28 12:34:54 -07:00
Wesley Wigham
6695255d86 Allow trailing newline to have fake position (#18298)
* Actually support baselining pretty in the harness

* Test case from 18216

* Use host newline in formatDiagnosticsWithColorAndContext

* Merge statements
2017-09-07 12:26:23 -07:00
Andy
e2141ad469 Mark some arrays as readonly (#17725)
* Mark some arrays as readonly

* Avoid unnecessary allocations and style changes

* Fix lint
2017-08-24 09:55:01 -07:00
Andy
f667357aad Use ReadonlyArray in utilities.ts (#17413) 2017-07-25 15:46:29 -07:00
Andy
dbbf051886 Add assertion to computePositionOfLineAndCharacter (#17121) 2017-07-13 06:49:28 -07:00
Chuck Jazdzewski
ce1d1c81ef Add support for external file references in source maps 2017-06-06 17:45:08 -07:00
Klaus Meinhardt
e8f42c4a7b Make tokenToString return string|undefined (#16106) 2017-06-02 10:09:36 -07:00
Kate Miháliková
e3e81b8673
Add support for diff3-style conflict 2017-05-30 08:03:58 +02:00
Klaus Meinhardt
5fb77a0901 Update return types of APIs (#15887)
* Update types.ts

* Update types in parser.ts and scanner.ts
2017-05-16 14:13:58 -07:00
Yui
a1a2006074 Merge pull request #15160 from Microsoft/master-jsxChildren
[Master] Type checking JSX children
2017-04-21 10:02:13 -07:00
Kanchalai Tanglertsampan
f6f0813528 Merge branch 'master' into master-jsxChildren
# Conflicts:
#	src/compiler/checker.ts
#	src/compiler/diagnosticMessages.json
2017-04-17 13:31:12 -07:00
Kanchalai Tanglertsampan
58e2189f45 Add tests and update baselines 2017-04-12 13:38:11 -07:00
Kanchalai Tanglertsampan
012f459594 Fix linting error 2017-04-12 12:28:34 -07:00
Kanchalai Tanglertsampan
e5b95fcfbb Merge branch 'master-jsxChildren' of https://github.com/Microsoft/TypeScript into master-jsxChildren
# Conflicts:
#	src/compiler/scanner.ts
2017-04-12 12:18:18 -07:00
Kanchalai Tanglertsampan
4fa23127fc Fixing consuming whitespace in children 2017-04-12 12:08:12 -07:00
Andy Hanson
a82ac45e36 Merge branch 'master' into fallthrough 2017-04-12 10:58:03 -07:00
Kanchalai Tanglertsampan
c1ea3034d5 wip-fixing consuming whitespace in children 2017-04-11 15:35:06 -07:00
Kanchalai Tanglertsampan
4562fd089c Store scanning information whether JSXText is just an all whitespaces 2017-04-11 14:55:26 -07:00
Kanchalai Tanglertsampan
f86a730371 Consider whitespace that won't be emitted to be different kind so that we won't include in typ-checking 2017-04-11 10:52:18 -07:00
Andy Hanson
7320891933 boolean-trivia lint rule: Lint for null/undefined too 2017-04-07 13:13:39 -07:00
Ron Buckton
fd081f40a8 Clean up literal emit 2017-04-03 14:17:03 -07:00
Andy Hanson
1cf765d664 Lint for fallthrough in switch 2017-03-27 15:09:00 -07:00
Yui
de5211352a Merge pull request #14132 from Microsoft/master-fix12952
[Master] Fix 12952 : throw exception when parsing conflict marker in JSX
2017-03-20 14:32:52 -07:00
Vladimir Matveev
2b10611fbf initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer (#14441)
initial revision of infrastructure to produce text changes that uses existing node factory, formatter and printer
2017-03-15 11:44:36 -07:00
Kanchalai Tanglertsampan
e66c824f31 Remove unnecessary else clause 2017-02-16 14:07:27 -08:00
Kanchalai Tanglertsampan
ea01ad4cbd Check for conflict marker when trying to parse JSX child 2017-02-16 14:03:41 -08:00
Ron Buckton
2f624f5df3 Expose transformations as public API 2017-02-07 14:36:15 -08:00
Andy Hanson
30ccc7a5d0 Merge branch 'master' into map5 2017-01-17 10:42:27 -08:00
MANISH-GIRI
ebf36ac06b Fix incorrect return type 2017-01-13 12:53:21 -05:00
Andy Hanson
37e18d9741 Add createMapFromTemplate helper 2017-01-11 09:52:50 -08:00
Andy Hanson
8c5afd7f54 Merge branch 'master' into map5 2017-01-06 13:03:34 -08:00
Nathan Shively-Sanders
e9e7fcecbd Merge pull request #12501 from HerringtonDarkholme/non-primitive
Fix #1809, introduce non primitive object type
2017-01-06 09:51:08 -08:00
Andy Hanson
9e33585a80 Merge branch 'master' into map5 2016-12-27 12:56:05 -08:00
Herrington Darkholme
ebe2fdb4c8 Fix #1809, introduce non primitive type 2016-12-22 10:04:24 +08:00
Kagami Sascha Rosylight
2a941a7222 inline length 2016-12-20 03:12:35 +09:00
Kagami Sascha Rosylight
27a60e4580 fix linting errors 2016-12-18 15:44:54 +09:00
Andy Hanson
6b1cc8972d Use native maps when they're available 2016-12-08 06:40:31 -08:00
Anders Hejlsberg
6b28d21a82 Merge branch 'master' into keyoftypes
# Conflicts:
#	src/compiler/diagnosticMessages.json
2016-10-31 16:04:40 -07:00
Andy Hanson
12f6dcefa1 Revert "Merge pull request #11354 from Microsoft/map4"
This reverts commit adfdae0dc47db5ad8248d26929a7b31cb895a539, reversing
changes made to aad663cebf6a89f7029af57d8cb6a0a011854978.
2016-10-27 15:50:21 -07:00
Andy Hanson
c958c47ef5 Merge branch 'master' into map4 2016-10-26 11:05:51 -07:00
Zhengbo Li
d0170d1ac8 Support dotted name in @typedef tag (#11695)
* Support dotted name in @typedef tag

* Use a new node flag to get rid of the extra logics

* replace jsdoc namespace node flag with optional property

* Fix linting error
2016-10-25 13:32:48 -07:00
Anders Hejlsberg
ad88109420 Initial implementation of 'keyof T' type operator 2016-10-24 15:24:26 -07:00
Andy Hanson
a11838215c Merge branch 'master' into map4 2016-10-19 13:16:55 -07:00
Andy Hanson
7685e6af15 Forbid unused locals/parameters in compiler 2016-10-18 14:00:52 -07:00
Andy Hanson
7292f9f67e Merge branch 'master' into map4 2016-10-17 06:49:53 -07:00
Anders Hejlsberg
4c581def93 Fix bug in scanner 2016-10-12 14:12:47 -07:00