1
0
mirror of https://github.com/golang/go synced 2024-11-22 21:30:02 -07:00

struct annotations in imports.

distribute tag across multiple names.

R=ken
OCL=18178
CL=18178
This commit is contained in:
Russ Cox 2008-10-30 15:25:26 -07:00
parent f27aaf4819
commit 1850b29da6
2 changed files with 5 additions and 2 deletions

View File

@ -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
{

View File

@ -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;
}