From 2a7be40f09cbcb57b819b41f83f3fe3808ef7ed2 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Sun, 15 Sep 2024 13:13:37 +0200 Subject: [PATCH] Implement parsing read only from properties --- class.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/class.go b/class.go index 53ebbe8..346fecb 100644 --- a/class.go +++ b/class.go @@ -289,6 +289,12 @@ func parseField(s *goquery.Selection) (Field, error) { } res.Type = MapType(CleanUp(typeElement.Text())) + readonlyElement := s.Find("td[align='right']") + if readonlyElement.Length() != 0 { + // return res, fmt.Errorf("no readonly found") + res.Comment = CleanUp(readonlyElement.Text()) + } + comments := s.ChildrenFiltered("div") if comments.Length() == 0 { return res, fmt.Errorf("no comments found")