code: function(raw_directive) {
  
  		var widget_config = this._parseWidgetDefinition(raw_directive);
  
  		if (Lava.schema.DEBUG && ('sugar' in widget_config)) Lava.t("Inline widgets must not have sugar");
  		if (Lava.schema.DEBUG && !widget_config['class'] && !widget_config['extends']) Lava.t("x:define: widget definition is missing either 'controller' or 'extends' attribute");
  		if (raw_directive.attributes.resource_id) widget_config.resource_id = Lava.parsers.Common.parseResourceId(raw_directive.attributes.resource_id);
  
  		widget_config.type = 'widget';
  		return widget_config;
  
  	}
docs: Inline widget definition
  @param {_cRawDirective} raw_directive