| 240 | } |
| 241 | |
| 242 | TableType ParseContext::parse_tabletype() { |
| 243 | TableType tt; |
| 244 | tt.limits = parse_limits(); |
| 245 | Token ref = tok_.expect(TokenType::Keyword, "RefType"); |
| 246 | tt.reftype = (ref.text == "externref") ? RefType::externref : RefType::funcref; |
| 247 | return tt; |
| 248 | } |
| 249 | |
| 250 | GlobalType ParseContext::parse_globaltype() { |
| 251 | GlobalType gt; |