Skip to content

Commit 3a733bd

Browse files
authored
add info about line number and column
1 parent ad18cc4 commit 3a733bd

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ This document covers how to write a [TypeScript](https://typescriptlang.org/) [T
5858
- [Checking if a local variable is referenced](#checking-if-a-local-variable-is-referenced)
5959
- [Defining a unique variable](#defining-a-unique-variable)
6060
- [Rename a binding and its references](#rename-a-binding-and-its-references)
61+
- [Finding](#finding)
62+
- [Get line number and column](#get-line-number-and-column)
6163
- [Advanced](#advanced)
6264
- [Evaluating expressions](#evaluating-expressions)
6365
- [Following module imports](#following-module-imports)
@@ -1289,6 +1291,14 @@ return ts.visitEachChild(node, visitor, context);
12891291

12901292
> **TODO** - Is this possible in a concise way?
12911293
1294+
## Finding
1295+
1296+
### Get line number and column
1297+
1298+
```
1299+
sourceFile.getLineAndCharacterOfPosition(node.getStart());
1300+
```
1301+
12921302
## Advanced
12931303

12941304
### Evaluating expressions

0 commit comments

Comments
 (0)