mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-22 00:47:28 +01:00
Remove token ID/Key distinction, part 8 of N
This commit is contained in:
1 parent
81e02e7db6
commit
1717d5befd
4 files changed
+16
-16
No files matched your search
+2
-2
@@ -375,7 +375,7 @@ func (q *checker) tcheckExprOther(n *a.Expr, depth uint32) error {
|
||||
switch n.Operator().Key() {
|
||||
case 0:
|
||||
id1 := n.Ident()
|
||||
if id1.IsNumLiteral() {
|
||||
if id1.IsNumLiteral(q.tm) {
|
||||
z := big.NewInt(0)
|
||||
s := id1.Str(q.tm)
|
||||
if _, ok := z.SetString(s, 0); !ok {
|
||||
@@ -385,7 +385,7 @@ func (q *checker) tcheckExprOther(n *a.Expr, depth uint32) error {
|
||||
n.SetMType(typeExprIdeal)
|
||||
return nil
|
||||
|
||||
} else if id1.IsIdent() {
|
||||
} else if id1.IsIdent(q.tm) {
|
||||
if q.localVars != nil {
|
||||
if typ, ok := q.localVars[id1]; ok {
|
||||
n.SetMType(typ)
|
||||
|
||||
Reference in new issue
Block a user