mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-23 08:47:56 +01:00
Add token_writer.write_fast_token
This commit is contained in:
1 parent
36857984c7
commit
e9aba8924a
6 files changed
+74
-44
No files matched your search
@@ -1040,7 +1040,7 @@ func (q *checker) bcheckExprCallSpecialCases(n *a.Expr, depth uint32) (bounds, e
|
||||
}
|
||||
}
|
||||
|
||||
} else if recvTyp.IsIOType() {
|
||||
} else if recvTyp.IsIOTokenType() {
|
||||
advance, update := (*big.Int)(nil), false
|
||||
|
||||
if method == t.IDUndoByte {
|
||||
@@ -1260,6 +1260,8 @@ var ioMethodAdvances = [...]struct {
|
||||
t.IDWriteFastU56LE - t.IDPeekU8: {seven, true},
|
||||
t.IDWriteFastU64BE - t.IDPeekU8: {eight, true},
|
||||
t.IDWriteFastU64LE - t.IDPeekU8: {eight, true},
|
||||
|
||||
t.IDWriteFastToken - t.IDPeekU8: {one, true},
|
||||
}
|
||||
|
||||
func makeConstValueExpr(tm *t.Map, cv *big.Int) (*a.Expr, error) {
|
||||
|
||||
Reference in new issue
Block a user