Nathan Shively-Sanders
ab8233c5d3
Two JSdoc parsing fixes ( #22705 )
...
* Correctly parse JSDoc type *=
* Allow `markdown` quoted param names in JSDoc
* Add tests and update baselines
* Get correct span for the type '*'
* Fix whitespace lint
* Add unbracketed type test
2018-03-20 09:23:08 -07:00
Andy
0c6ef348ce
Simplify parseJsxChildren ( #22511 )
2018-03-13 12:28:21 -07:00
Anders Hejlsberg
7c241ba2f7
Merge branch 'conditionalTypes' into inferTypes
...
# Conflicts:
# src/compiler/checker.ts
# tests/cases/fourslash/completionInJSDocFunctionNew.ts
# tests/cases/fourslash/completionInJSDocFunctionThis.ts
2018-01-30 13:40:16 -08:00
Anders Hejlsberg
d608941480
Implement type inference in conditional types
2018-01-25 12:25:00 -08:00
Andy
058e3ad75e
Improve assertion in computePositionOfLineAndCharacter ( #21361 )
2018-01-25 07:36:38 -08:00
Klaus Meinhardt
7c7651d617
Add overloads for forEach{Leading,Trailing}CommentRange ( #21190 )
...
Avoids runtime errors when passing callback with state parameter but not passing a state.
2018-01-16 12:11:05 -08:00
Andy
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
Andy
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 Nukiyama
792b8bb78e
Fix error messeage ( #20601 )
...
* Fix error messeage
* delete extra lint
2017-12-11 18:05:49 -05:00
Wesley Wigham
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 Wigham
a1669bb431
handle multiline jsx strings correctly, emit escapes in jsx attributes correctly ( #20309 )
2017-11-29 17:08:51 -08:00
Wesley Wigham
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 Hejlsberg
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
Andy
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
Andy
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
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
Ron Buckton
ee23f93275
Switch to 'unique symbol'
2017-10-04 19:34:29 -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