(source sourcemap.Source)
| 910 | } |
| 911 | |
| 912 | func newLineCharacterCache(source sourcemap.Source) *lineCharacterCache { |
| 913 | return &lineCharacterCache{ |
| 914 | lineMap: source.ECMALineMap(), |
| 915 | text: source.Text(), |
| 916 | } |
| 917 | } |
| 918 | |
| 919 | // getLineAndCharacter returns the 0-based line number and UTF-16 code unit |
| 920 | // offset from the start of that line for the given byte position. |
no test coverage detected