#NEWLINE# def serializeArgumentsAsStruct( self , serializer ) : #NEWLINE# #INDENT# if self . invalid : #NEWLINE# #INDENT# raise CompilationException ( True , '{0} Attempting to generate code for an invalid action' , self . hliraction ) #NEWLINE# #UNINDENT# serializer . emitIndent ( ) #NEWLINE# serializer . append ( 'struct ' ) #NEWLINE# serializer . blockStart ( ) #NEWLINE# assert isinstance ( serializer , ProgramSerializer ) #NEWLINE# for arg in self . arguments : #NEWLINE# #INDENT# assert isinstance ( arg , EbpfActionData ) #NEWLINE# serializer . emitIndent ( ) #NEWLINE# argtype = arg . argtype #NEWLINE# assert isinstance ( argtype , ebpfType . EbpfType ) #NEWLINE# argtype . declare ( serializer , arg . name , False ) #NEWLINE# serializer . endOfStatement ( True ) #NEWLINE# #UNINDENT# serializer . blockEnd ( False ) #NEWLINE# serializer . space ( ) #NEWLINE# serializer . append ( self . name ) #NEWLINE# serializer . endOfStatement ( True )