def check.go

bolt@1.27.0.0 · src/rules/correctness/escape.bend:112

import bolt@1.27.0.0/src/rules/correctness/escape.bend as Escape
import Base
import bolt@1.27.0.0/src/finding.bend as F
import bolt@1.27.0.0/src/syntax/lex.bend as Lex

112def check.go(toks: List<&2, Lex.Tok>, +path: String) -> List<&2, F.Finding>:
113  match toks:
114    case Con{Lex.Tok{Lex.TStr{}, t, l, c}, rest}:
115      List.append(&2, F.Finding, scan(syms(String.to_list(t)), path, l, c), check.go(rest, path))
116    case Con{Lex.Tok{Lex.TChar{}, t, l, c}, rest}:
117      List.append(&2, F.Finding, scan(syms(String.to_list(t)), path, l, c), check.go(rest, path))
118    case Con{h, rest}:
119      check.go(rest, path)
120    case Nil{}:
121      Nil{}

Uses (9)

Used by (1)