Commit Graph
258 Commits
Author SHA1 Message Date
AndyandGitHub a23bbe65e6 Use substring instead of substr (#20578)
* Use substring instead of substr

* Remove unused scanning of SyntaxKind.DotDotDotToken in jsdoc

* Remove other unnecessary jsdoc syntax kinds

* Move all pos++ together
2018-01-08 14:54:18 -08:00
AndyandGitHub 6f2ba15446 Start linting for double spaces (#20820)
* Start linting for double spaces

* Code review

* Fix cases that were excluded by countDoubleSpaces

* Remove extraneous closing parenthesis
2018-01-08 08:52:13 -08:00
Yuichi NukiyamaandWesley Wigham 792b8bb78e Fix error messeage (#20601)
* Fix error messeage

* delete extra lint
2017-12-11 18:05:49 -05:00
Wesley WighamandGitHub 9e51882d9c Numeric separators (#20324)
* Add support into octal and binary literals

* Add hex support

* And finally support all numeric literals and fix spelling

* Update error message

* Refactor error in scanner to take a position

* Scan no separators in escape sequences, add escape sequence tests

* More decimal tests from the spec presentation examples

* Permissive scanning of excess separators

* Remove unnecessary assignment

* Make code easier to follow
2017-12-08 20:20:18 -05:00
Wesley WighamandGitHub a1669bb431 handle multiline jsx strings correctly, emit escapes in jsx attributes correctly (#20309) 2017-11-29 17:08:51 -08:00
Wesley WighamandGitHub a551c4cd64 Allow curly around @type jsdoc to be optional (#20074)
* Allow curly around `@type` jsdoc to be optional

* Incorporate restructuring from @andy-ms
2017-11-20 16:10:50 -08:00
Anders HejlsbergandGitHub b6f96052d8 Merge pull request #19976 from Microsoft/optimizeParser
Optimize parsing
2017-11-16 10:19:10 -08:00
Ron Buckton 804c7d3690 Merge branch 'master' into dynamicNames 2017-11-13 13:24:20 -08:00
Anders Hejlsberg 3411318e6b Use TokenFlags.PrecedingJSDocComment to guide JSDoc comment processing 2017-11-13 09:51:56 -08:00
Anders Hejlsberg ddf0df9cbb Introduce TokenFlags enum 2017-11-12 09:11:09 -08:00
AndyandGitHub 65a191fa2b For import completion of default import, convert module name to identifier (#19875)
* For import completion of default import, convert module name to identifier

* Suggestions from code review
2017-11-09 13:13:23 -08:00
Ron Buckton 31c3d444f1 Merge branch 'master' into compareStrings 2017-11-03 23:01:51 -07:00
Ron Buckton 208dfa6b01 Merge branch 'master' into dynamicNames 2017-11-03 22:10:28 -07:00
AndyandGitHub fd41521421 Enable 'callable-types' tslint rule (#19654) 2017-11-02 17:16:09 -07:00
uniqueiniquity 3ebb2e8a34 Merge branch 'master' into jsxFragment 2017-10-31 10:53:57 -07:00
Ron Buckton 3cb15378d7 Improve performance of deduplication of sorted arrays 2017-10-26 17:51:09 -07:00
Ron Buckton 51929acb89 Merge branch 'master' into dynamicNames 2017-10-21 00:36:52 -07:00
AndyandGitHub 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
Ron Buckton ee23f93275 Switch to 'unique symbol' 2017-10-04 19:34:29 -07:00
AndyandGitHub 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 WighamandGitHub 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
AndyandGitHub 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
AndyandGitHub f667357aad Use ReadonlyArray in utilities.ts (#17413) 2017-07-25 15:46:29 -07:00
AndyandGitHub 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 MeinhardtandMohamed Hegazy 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 MeinhardtandMohamed Hegazy 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
YuiandGitHub 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
YuiandGitHub 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 MatveevandGitHub 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