Lines Matching refs:Args
149 // call.Args[formatIndex] is (well, should be) the format argument.
151 if formatIndex >= len(call.Args) {
155 lit := f.pkg.types[call.Args[formatIndex]].Value
169 if len(call.Args) > firstArg {
174 // Hard part: check formats against args.
198 if call.Ellipsis.IsValid() && argNum >= len(call.Args)-1 {
203 if !indexed && argNum != len(call.Args) {
205 numArgs := len(call.Args) - firstArg
206 f.Badf(call.Pos(), "wrong number of args for format in %s call: %d needed but %d args", name, expect, numArgs)
434 arg := call.Args[argNum]
447 arg := call.Args[argNum]
506 if argNum < len(call.Args)-1 {
512 if argNum < len(call.Args) {
518 f.Badf(call.Pos(), `missing argument for %s("%s"): format reads arg %d, have only %d args`, state.name, state.format, arg, len(call.Args)-state.firstArg)
523 // call.Args[firstArg] is the first argument to be printed.
527 args := call.Args
528 if name == "Log" && len(args) > 0 {
532 if sel, ok := args[0].(*ast.SelectorExpr); ok {
541 if firstArg == 0 && !isF && len(args) > 0 {
542 if sel, ok := args[0].(*ast.SelectorExpr); ok {
550 if len(args) <= firstArg {
561 f.Badf(call.Pos(), "no args in %s call", name)
566 arg := args[firstArg]
574 arg = args[len(call.Args)-1]
581 for _, arg := range args {