mirror of
https://github.com/golang/go
synced 2024-11-23 00:20:12 -07:00
struct annotations in imports.
distribute tag across multiple names. R=ken OCL=18178 CL=18178
This commit is contained in:
parent
f27aaf4819
commit
1850b29da6
@ -1892,10 +1892,11 @@ hidden_dcl:
|
||||
}
|
||||
|
||||
hidden_structdcl:
|
||||
sym1 hidden_type
|
||||
sym1 hidden_type oliteral
|
||||
{
|
||||
$$ = nod(ODCLFIELD, newname($1), N);
|
||||
$$->type = $2;
|
||||
$$->val = $3;
|
||||
}
|
||||
| '?' hidden_type
|
||||
{
|
||||
|
@ -2192,8 +2192,10 @@ cleanidlist(Node *na)
|
||||
if(last->type == T)
|
||||
fatal("cleanidlist: no type");
|
||||
|
||||
for(n=na; n->op == OLIST; n=n->right)
|
||||
for(n=na; n->op == OLIST; n=n->right) {
|
||||
n->left->type = last->type;
|
||||
n->left->val = last->val;
|
||||
}
|
||||
return na;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user