mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 08:52:18 +01:00
Un-special-case parsing base."etc"
This commit is contained in:
1 parent
4e2d0c1e5f
commit
74d291453d
5 files changed
+40
-31
No files matched your search
+6
-3
@@ -502,9 +502,12 @@ func (q *checker) tcheckExprXDotY(n *a.Expr, x t.ID, y t.ID) error {
|
||||
n.SetMType(c.XType())
|
||||
return nil
|
||||
}
|
||||
// TODO: look for other (global) names: consts, funcs, statuses,
|
||||
// structs from used packages.
|
||||
return fmt.Errorf("check: unrecognized identifier %q", qid.Str(q.tm))
|
||||
if _, ok := q.c.statuses[t.QID{x, y}]; ok {
|
||||
n.SetMType(typeExprStatus)
|
||||
return nil
|
||||
}
|
||||
// TODO: look in q.c.structs.
|
||||
return fmt.Errorf("check: unrecognized name %q", qid.Str(q.tm))
|
||||
}
|
||||
|
||||
func (q *checker) tcheckExprCall(n *a.Expr, depth uint32) error {
|
||||
|
||||
Reference in new issue
Block a user