mirror of
https://github.com/vlang/v.git
synced 2025-09-23 12:28:29 -04:00
v.ast: add a mod
field to ast.FnTypeDecl too
This commit is contained in:
parent
fd479a2bcd
commit
d73ebc1aca
@ -897,6 +897,7 @@ fn (t Tree) fn_type_decl(node ast.FnTypeDecl) &Node {
|
||||
mut obj := create_object()
|
||||
obj.add_terse('ast_type', t.string_node('FnTypeDecl'))
|
||||
obj.add_terse('name', t.string_node(node.name))
|
||||
obj.add_terse('mod', t.string_node(node.mod))
|
||||
obj.add_terse('is_pub', t.bool_node(node.is_pub))
|
||||
obj.add_terse('typ', t.type_node(node.typ))
|
||||
obj.add('pos', t.pos(node.pos))
|
||||
|
@ -1522,6 +1522,7 @@ pub mut:
|
||||
pub struct FnTypeDecl {
|
||||
pub:
|
||||
name string
|
||||
mod string
|
||||
is_pub bool
|
||||
typ Type
|
||||
pos token.Pos
|
||||
|
@ -2782,6 +2782,7 @@ fn (mut p Parser) type_decl() ast.TypeDecl {
|
||||
p.attrs = []
|
||||
return ast.FnTypeDecl{
|
||||
name: fn_name
|
||||
mod: p.mod
|
||||
is_pub: is_pub
|
||||
typ: fn_type
|
||||
pos: decl_pos
|
||||
|
Loading…
x
Reference in New Issue
Block a user