Lines Matching refs:i

117 	for i := 0; i < len(str); i++ {
118 r := rune(str[i])
119 state, err = state(parseState, i, r)
133 func parseFirstRuneState(state *parseState, i int, r rune) (stateFunc, error) {
137 return parseStringState(state, i, r)
140 func parseStringState(state *parseState, i int, r rune) (stateFunc, error) {
143 state.varStart = i + 1
147 state.pushString(state.str[state.stringStart:i])
155 func parseDollarStartState(state *parseState, i int, r rune) (stateFunc, error) {
161 state.pushString(state.str[state.stringStart : i-1])
172 state.pushString(state.str[state.stringStart : i-1])
173 state.varStart = i + 1
183 "offset %d", i)
187 func parseDollarState(state *parseState, i int, r rune) (stateFunc, error) {
197 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
203 state.varStart = i + 1
204 state.stringStart = i
210 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
225 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
231 state.stringStart = i
236 func parseBracketsState(state *parseState, i int, r rune) (stateFunc, error) {
244 if state.varStart == i {
247 i)
251 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
257 state.stringStart = i + 1
266 "byte offset %d", i)
277 for i, str := range strs {
280 return nil, fmt.Errorf("error parsing element %d: %s", i, err)
282 result[i] = ninjaStr
300 for i, v := range n.variables {
304 w.WriteString(escaper.Replace(n.strings[i+1]))
310 for i, v := range n.variables {
319 str += value + n.strings[i+1]
346 for i, r := range name {
356 "%q at byte offset %d", name, r, i)