json-native: token positions (line/column); escape utils BMP coverage + surrogate guard; add smokes for string escapes, nested, and error cases (AST/VM)
This commit is contained in:
@ -53,6 +53,13 @@ box JsonToken {
|
||||
get_line() { return me.line }
|
||||
get_column() { return me.column }
|
||||
|
||||
// 位置情報の設定(トークナイザーから付与)
|
||||
set_line_column(line, column) {
|
||||
me.line = line
|
||||
me.column = column
|
||||
return me
|
||||
}
|
||||
|
||||
// ===== 判定メソッド =====
|
||||
|
||||
is_literal() {
|
||||
@ -247,4 +254,4 @@ static box TokenStats {
|
||||
i = i + 1
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user