-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
CodeAPI-BytecodeWriter provides a way to generate line numbers based on CodeSource index. To help to find out the CodePart that causes the error, we should provide a findLine utility method for CodeSource.
Usage example:
val codeSource = CodeAPI.sourceOfParts(
a, // 0
b, // 1
CodeAPI.sourceOfParts(
c, // 2
d // 3
)
)
CodeSourceUtil.findLine(3, codeSource) // dMetadata
Metadata
Assignees
Labels
No labels