mirror of
				https://github.com/qemu/qemu.git
				synced 2025-10-31 12:07:31 +00:00 
			
		
		
		
	 4ebda5abdb
			
		
	
	
		4ebda5abdb
		
	
	
	
	
		
			
			QAPISchemaCommand.check() and QAPISchemaEvent().check() check 'data' is present when 'boxed': true. That's context-free. Move to check_command() and check_event(). Tweak the error message while there. check_exprs() & friends now check exactly what qapi-code-gen.txt calls the second layer of syntax. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-Id: <20190927134639.4284-18-armbru@redhat.com>
		
			
				
	
	
		
			3 lines
		
	
	
		
			132 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			3 lines
		
	
	
		
			132 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| tests/qapi-schema/event-boxed-empty.json: In event 'FOO':
 | |
| tests/qapi-schema/event-boxed-empty.json:2: 'boxed': true requires 'data'
 |