mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	BindingsGenerator+LibIDL: Parse "inherit" attributes
An "inherit attribute" calls an ancestor's getter with the same name, but defines its own setter. Since a parent class's public methods are exposed to child classes, we don't have to do any special handling here to call the parent's methods, it just works. :^)
This commit is contained in:
		
							parent
							
								
									c30c6eb1c1
								
							
						
					
					
						commit
						a6f0508f9f
					
				
					 3 changed files with 10 additions and 3 deletions
				
			
		|  | @ -111,7 +111,8 @@ int main(int argc, char** argv) | |||
|     if constexpr (BINDINGS_GENERATOR_DEBUG) { | ||||
|         dbgln("Attributes:"); | ||||
|         for (auto& attribute : interface.attributes) { | ||||
|             dbgln("  {}{}{} {}", | ||||
|             dbgln("  {}{}{}{} {}", | ||||
|                 attribute.inherit ? "inherit " : "", | ||||
|                 attribute.readonly ? "readonly " : "", | ||||
|                 attribute.type->name(), | ||||
|                 attribute.type->is_nullable() ? "?" : "", | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Sam Atkins
						Sam Atkins