mirror of https://github.com/golang/go.git
allow predefined identifiers (len, etc.) to be exported.
(they were not accepted as names by the import parser) R=ken DELTA=3 (0 added, 0 deleted, 3 changed) OCL=14159 CL=14159
This commit is contained in:
parent
3aecf2ed07
commit
b59b551be7
|
|
@ -1583,7 +1583,7 @@ hidden_import:
|
|||
}
|
||||
|
||||
isym:
|
||||
sym '.' sym2
|
||||
sym1 '.' sym2
|
||||
{
|
||||
$$ = nod(OIMPORT, N, N);
|
||||
$$->osym = $1;
|
||||
|
|
@ -1591,7 +1591,7 @@ isym:
|
|||
$$->sym = $3;
|
||||
renamepkg($$);
|
||||
}
|
||||
| '(' sym ')' sym '.' sym2
|
||||
| '(' sym1 ')' sym1 '.' sym2
|
||||
{
|
||||
$$ = nod(OIMPORT, N, N);
|
||||
$$->osym = $2;
|
||||
|
|
@ -1609,7 +1609,7 @@ hidden_importsym:
|
|||
}
|
||||
|
||||
hidden_importfield:
|
||||
sym isym
|
||||
sym1 isym
|
||||
{
|
||||
$$ = $2;
|
||||
$$->fsym = $1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue