stage2 提供sys包装 解决stage1的bug
This commit is contained in:
1 parent
5de4937637
commit
1a6df012cd
5 files changed
+178
-29
No files matched your search
@@ -941,17 +941,6 @@ static spl_ast_node_ref_t parse_type_base(spl_parser_t *p) {
|
||||
spl_ast_node_t *tp = node_at(p->ast, ref);
|
||||
SET_STR_FIELD(p->ast, tp->type_path.name, bt);
|
||||
vec_init(tp->type_path.generic_args);
|
||||
|
||||
while (peek(p) && peek(p)->type == TOK_DOT) {
|
||||
advance(p);
|
||||
const spl_tok_t *seg = peek(p);
|
||||
if (!seg || seg->type != TOK_IDENT) {
|
||||
PARSE_ERROR(p, SPL_DIAG_KIND_PARSE_EXPECTED, seg,
|
||||
"expected identifier after '.' in type path");
|
||||
break;
|
||||
}
|
||||
advance(p);
|
||||
}
|
||||
return ref;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user