Lines Matching refs:Args
140 func (comp *compiler) error(pos ast.Pos, msg string, args ...interface{}) {
142 comp.eh(pos, fmt.Sprintf(msg, args...))
145 func (comp *compiler) warning(pos ast.Pos, msg string, args ...interface{}) {
146 comp.warnings = append(comp.warnings, warn{pos, fmt.Sprintf(msg, args...)})
177 if len(attr.Args) != 0 {
178 comp.error(attr.Pos, "%v attribute has args", attr.Ident)
196 if len(attr.Args) != 0 {
197 comp.error(attr.Pos, "%v attribute has args", attr.Ident)
201 if len(attr.Args) != 0 {
202 comp.error(attr.Pos, "%v attribute has args", attr.Ident)
206 if len(attr.Args) != 0 {
207 comp.error(attr.Pos, "%v attribute has args", attr.Ident)
231 if len(attr.Args) != 1 {
235 sz := attr.Args[0]
240 if sz.HasColon || len(sz.Args) != 0 {
241 comp.error(sz.Pos, "size attribute has colon or args")
269 args, opt := removeOpt(t)
275 baseType := args[len(args)-1]
276 args = args[:len(args)-1]
280 return desc, args, base
287 for _, arg := range n.Args {
300 if len(n.Args) == 0 {
310 desc, args, base := comp.getArgsBase(t, "", prog.DirIn, isArg)
311 cb(t, desc, args, base)
312 for i, arg := range args {
313 if desc.Args[i].Type == typeArgType {
314 comp.foreachSubType(arg, desc.Args[i].IsArg, cb)
320 args := t.Args
321 if last := len(args) - 1; last >= 0 && args[last].Ident == "opt" {
322 return args[:last], args[last]
324 return args, nil