Skip to content

Commit a04423c

Browse files
committed
added startColumn option
1 parent d92e7e3 commit a04423c

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/parser.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ mind. When in doubt, use `.parse()`.
3333
<summary>History</summary>
3434
| Version | Changes |
3535
| --- | --- |
36+
| `v7.16.0` | Added `startColumn` |
3637
| `v7.15.0` | Added `attachComment` |
3738
| `v7.7.0` | Added `errorRecovery` |
3839
| `v7.5.0` | Added `allowUndeclaredExports` |
@@ -82,7 +83,9 @@ mind. When in doubt, use `.parse()`.
8283

8384
- **sourceFilename**: Correlate output AST nodes with their source filename. Useful when generating code and source maps from the ASTs of multiple input files.
8485

85-
- **startLine**: By default, the first line of code parsed is treated as line 1. You can provide a line number to alternatively start with. Useful for integration with other source tools.
86+
- **startColumn**: By default, the parsed code is treated as if it starts from line 1, column 0. You can provide a column number to alternatively start with. Useful for integration with other source tools.
87+
88+
- **startLine**: By default, the parsed code is treated as if it starts from line 1, column 0. You can provide a line number to alternatively start with. Useful for integration with other source tools.
8689

8790
- **strictMode**: By default, ECMAScript code is parsed as strict only if a
8891
`"use strict";` directive is present or if the parsed file is an ECMAScript

0 commit comments

Comments
 (0)