You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The length of the swift file's content is 652, but result of parse is 668
The "key.name":"buttonAction()" "key.bodyoffset":604, i use this bodyoffset to divide content like below
first = content[0:604]
// result of the first
class ItemModel {
var item: String
var interger: Int
init(item: String, interger: Int) {
self.item = item
self.interger = interger
}
@objc func buttonAction() {
print("
In some simple data scenarios, there are no such problems if the content is below. Use the same way to parse, the result is right.
class CapModel {
static var modeName: String = "CapModel"
var name: String
var age: Int
init(name: String, age: Int) {
self.name = name
self.age = age
}
func addAge(index: Int) {
self.age += 1
}
static func printStatic() {}
}
The text was updated successfully, but these errors were encountered:
Env
sourcekitten --version
0.34.1
CapModel.swift
i use python to parse
Log
Question
The length of the swift file's content is
652
, but result of parse is 668The
"key.name":"buttonAction()" "key.bodyoffset":604
, i use this bodyoffset to divide content like belowIn some simple data scenarios, there are no such problems if the content is below. Use the same way to parse, the result is right.
The text was updated successfully, but these errors were encountered: