Lines Matching refs:argument
307 def __init__(self, argument, caller, dataContainer, program): argument
316 if isinstance(argument, int):
317 self.asString = str(argument)
320 elif isinstance(argument, p4_field):
322 argument.instance):
323 if isinstance(argument.instance.index, int):
324 index = "[" + str(argument.instance.index) + "]"
329 argument.instance.index)
331 argument.instance.base_name)
333 fieldtype = stackInstance.basetype.getField(argument.name)
337 stackInstance.name, argument.name, index)
339 instance = program.getInstance(argument.instance.base_name)
344 fieldtype = instance.type.getField(argument.name)
347 parent, instance.name, argument.name)
348 elif isinstance(argument, p4_signature_ref):
349 refarg = caller.arguments[argument.idx]
352 self.width = caller.arguments[argument.idx].argtype.widthInBits()
353 elif isinstance(argument, p4_header_instance):
358 if ebpfProgram.EbpfProgram.isArrayElementInstance(argument):
359 if isinstance(argument.index, int):
360 index = "[" + str(argument.index) + "]"
364 "Unexpected index for array {0}", argument.index)
365 stackInstance = program.getStackInstance(argument.base_name)
372 instance = program.getInstance(argument.name)
376 program.headerStructName, argument.name)
379 True, "Unexpected action argument {0}", argument)