text:
// Generated by Haxe 3.3.0
#include <hxcpp.h>

#ifndef INCLUDED_Std
#include <Std.h>
#endif
#ifndef INCLUDED_openfl__legacy_Lib
#include <openfl/_legacy/Lib.h>
#endif
#ifndef INCLUDED_openfl__legacy_display_DisplayObject
#include <openfl/_legacy/display/DisplayObject.h>
#endif
#ifndef INCLUDED_openfl__legacy_display_DisplayObjectContainer
#include <openfl/_legacy/display/DisplayObjectContainer.h>
#endif
#ifndef INCLUDED_openfl__legacy_display_IBitmapDrawable
#include <openfl/_legacy/display/IBitmapDrawable.h>
#endif
#ifndef INCLUDED_openfl__legacy_display_InteractiveObject
#include <openfl/_legacy/display/InteractiveObject.h>
#endif
#ifndef INCLUDED_openfl__legacy_display_Stage
#include <openfl/_legacy/display/Stage.h>
#endif
#ifndef INCLUDED_openfl__legacy_events_Event
#include <openfl/_legacy/events/Event.h>
#endif
#ifndef INCLUDED_openfl__legacy_events_EventDispatcher
#include <openfl/_legacy/events/EventDispatcher.h>
#endif
#ifndef INCLUDED_openfl__legacy_events_IEventDispatcher
#include <openfl/_legacy/events/IEventDispatcher.h>
#endif
#ifndef INCLUDED_openfl__legacy_geom_Point
#include <openfl/_legacy/geom/Point.h>
#endif
#ifndef INCLUDED_openfl_errors_ArgumentError
#include <openfl/errors/ArgumentError.h>
#endif
#ifndef INCLUDED_openfl_errors_Error
#include <openfl/errors/Error.h>
#endif
#ifndef INCLUDED_openfl_errors_RangeError
#include <openfl/errors/RangeError.h>
#endif

namespace openfl{
namespace _legacy{
namespace display{

void DisplayObjectContainer_obj::__construct( ::Dynamic handle,::String type){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","new",0x440fc302,"openfl._legacy.display.DisplayObjectContainer.new","openfl/_legacy/display/DisplayObjectContainer.hx",21,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(handle,"handle")
            	HX_STACK_ARG(type,"type")
HXLINE(  23)		super::__construct(handle,type);
HXLINE(  24)		this->_hx___children = ::Array_obj< ::Dynamic>::__new(0);
            	}

Dynamic DisplayObjectContainer_obj::__CreateEmpty() { return new DisplayObjectContainer_obj; }

hx::ObjectPtr< DisplayObjectContainer_obj > DisplayObjectContainer_obj::__new( ::Dynamic handle,::String type)
{
	hx::ObjectPtr< DisplayObjectContainer_obj > _hx_result = new DisplayObjectContainer_obj();
	_hx_result->__construct(handle,type);
	return _hx_result;
}

Dynamic DisplayObjectContainer_obj::__Create(hx::DynamicArray inArgs)
{
	hx::ObjectPtr< DisplayObjectContainer_obj > _hx_result = new DisplayObjectContainer_obj();
	_hx_result->__construct(inArgs[0],inArgs[1]);
	return _hx_result;
}

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::addChild( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","addChild",0x389e11d9,"openfl._legacy.display.DisplayObjectContainer.addChild","openfl/_legacy/display/DisplayObjectContainer.hx",29,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE(  31)		{
HXLINE(  31)			if (hx::IsEq( child,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE(  31)				HX_STACK_DO_THROW(HX_("Adding to self",b2,fe,1c,cf));
            			}
HXDLIN(  31)			if (hx::IsEq( child->_hx___parent,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE(  31)				Int _hx_tmp = (this->_hx___children->length - (int)1);
HXDLIN(  31)				this->setChildIndex(child,_hx_tmp);
            			}
            			else {
HXLINE(  31)				child->_hx___setParent(null());
HXDLIN(  31)				this->_hx___children->push(child);
HXDLIN(  31)				::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_add_child(this->_hx___handle,child->_hx___handle);
HXDLIN(  31)				child->_hx___setParent(hx::ObjectPtr<OBJ_>(this));
            			}
            		}
HXLINE(  32)		return child;
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,addChild,return )

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::addChildAt( ::openfl::_legacy::display::DisplayObject child,Int index){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","addChildAt",0x29a9332c,"openfl._legacy.display.DisplayObjectContainer.addChildAt","openfl/_legacy/display/DisplayObjectContainer.hx",37,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
            	HX_STACK_ARG(index,"index")
HXLINE(  39)		{
HXLINE(  39)			if (hx::IsEq( child,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE(  39)				HX_STACK_DO_THROW(HX_("Adding to self",b2,fe,1c,cf));
            			}
HXDLIN(  39)			if (hx::IsEq( child->_hx___parent,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE(  39)				Int _hx_tmp = (this->_hx___children->length - (int)1);
HXDLIN(  39)				this->setChildIndex(child,_hx_tmp);
            			}
            			else {
HXLINE(  39)				child->_hx___setParent(null());
HXDLIN(  39)				this->_hx___children->push(child);
HXDLIN(  39)				::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_add_child(this->_hx___handle,child->_hx___handle);
HXDLIN(  39)				child->_hx___setParent(hx::ObjectPtr<OBJ_>(this));
            			}
            		}
HXLINE(  40)		{
HXLINE(  40)			if ((index > this->_hx___children->length)) {
HXLINE(  40)				HX_STACK_DO_THROW((HX_("Invalid index position ",80,59,50,86) + index));
            			}
HXDLIN(  40)			HX_VARI( Int,firstIndex) = this->_hx___getChildIndex(child);
HXDLIN(  40)			if ((firstIndex < (int)0)) {
HXLINE(  40)				::String _hx_tmp1 = child->toString();
HXDLIN(  40)				HX_VARI( ::String,msg) = ((HX_("setChildIndex : object ",93,4a,81,b4) + _hx_tmp1) + HX_(" not found.",39,f7,8e,4f));
HXDLIN(  40)				if (hx::IsEq( child->_hx___parent,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE(  40)					HX_VARI( Int,actualIndex) = (int)-1;
HXDLIN(  40)					{
HXLINE(  40)						HX_VARI( Int,_g1) = (int)0;
HXDLIN(  40)						HX_VARI( Int,_g) = this->_hx___children->length;
HXDLIN(  40)						while((_g1 < _g)){
HXLINE(  40)							HX_VARI( Int,i) = _g1++;
HXDLIN(  40)							if (hx::IsEq( this->_hx___children->__get(i).StaticCast<  ::openfl::_legacy::display::DisplayObject >(),child )) {
HXLINE(  40)								actualIndex = i;
HXDLIN(  40)								goto _hx_goto_0;
            							}
            						}
            						_hx_goto_0:;
            					}
HXDLIN(  40)					if ((actualIndex != (int)-1)) {
HXLINE(  40)						::String _hx_tmp2 = ::Std_obj::string(actualIndex);
HXDLIN(  40)						hx::AddEq(msg,(HX_("Internal error: Real child index was ",00,bf,50,8a) + _hx_tmp2));
            					}
            					else {
HXLINE(  40)						hx::AddEq(msg,HX_("Internal error: Child was not in __children array!",a1,b9,1b,be));
            					}
            				}
HXDLIN(  40)				HX_STACK_DO_THROW(msg);
            			}
HXDLIN(  40)			::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_set_child_index(this->_hx___handle,child->_hx___handle,index);
HXDLIN(  40)			if ((index < firstIndex)) {
HXLINE(  40)				HX_VARI_NAME( Int,i1,"i") = firstIndex;
HXDLIN(  40)				while((i1 > index)){
HXLINE(  40)					 ::openfl::_legacy::display::DisplayObject _hx_tmp3 = this->_hx___children->__get((i1 - (int)1)).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN(  40)					this->_hx___children[i1] = _hx_tmp3;
HXDLIN(  40)					--i1;
            				}
HXDLIN(  40)				this->_hx___children[index] = child;
            			}
            			else {
HXLINE(  40)				if ((firstIndex < index)) {
HXLINE(  40)					HX_VARI_NAME( Int,i2,"i") = firstIndex;
HXDLIN(  40)					while((i2 < index)){
HXLINE(  40)						 ::openfl::_legacy::display::DisplayObject _hx_tmp4 = this->_hx___children->__get((i2 + (int)1)).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN(  40)						this->_hx___children[i2] = _hx_tmp4;
HXDLIN(  40)						++i2;
            					}
HXDLIN(  40)					this->_hx___children[index] = child;
            				}
            			}
            		}
HXLINE(  41)		return child;
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,addChildAt,return )

Bool DisplayObjectContainer_obj::areInaccessibleObjectsUnderPoint( ::openfl::_legacy::geom::Point point){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","areInaccessibleObjectsUnderPoint",0xa1314e5b,"openfl._legacy.display.DisplayObjectContainer.areInaccessibleObjectsUnderPoint","openfl/_legacy/display/DisplayObjectContainer.hx",48,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(point,"point")
HXLINE(  48)		return false;
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,areInaccessibleObjectsUnderPoint,return )

Bool DisplayObjectContainer_obj::contains( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","contains",0xa6029c3d,"openfl._legacy.display.DisplayObjectContainer.contains","openfl/_legacy/display/DisplayObjectContainer.hx",55,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE(  55)		return this->_hx___contains(child);
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,contains,return )

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::getChildAt(Int index){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","getChildAt",0x11808d57,"openfl._legacy.display.DisplayObjectContainer.getChildAt","openfl/_legacy/display/DisplayObjectContainer.hx",60,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(index,"index")
HXLINE(  62)		Bool _hx_tmp;
HXDLIN(  62)		if ((index >= (int)0)) {
HXLINE(  62)			_hx_tmp = (index < this->_hx___children->length);
            		}
            		else {
HXLINE(  62)			_hx_tmp = false;
            		}
HXDLIN(  62)		if (_hx_tmp) {
HXLINE(  64)			return this->_hx___children->__get(index).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
            		}
HXLINE(  68)		::String _hx_tmp1 = (((HX_("getChildAt : index out of bounds ",cf,fc,a7,dc) + index) + HX_("/",2f,00,00,00)) + this->_hx___children->length);
HXDLIN(  68)		HX_STACK_DO_THROW( ::openfl::errors::RangeError_obj::__new(_hx_tmp1));
HXDLIN(  68)		return null();
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,getChildAt,return )

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::getChildByName(::String name){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","getChildByName",0xe45c6626,"openfl._legacy.display.DisplayObjectContainer.getChildByName","openfl/_legacy/display/DisplayObjectContainer.hx",74,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(name,"name")
HXLINE(  76)		{
HXLINE(  76)			HX_VARI( Int,_g) = (int)0;
HXDLIN(  76)			HX_VARI( ::Array< ::Dynamic>,_g1) = this->_hx___children;
HXDLIN(  76)			while((_g < _g1->length)){
HXLINE(  76)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,child) = _g1->__get(_g).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN(  76)				++_g;
HXLINE(  78)				::String _hx_tmp = child->get_name();
HXDLIN(  78)				if ((name == _hx_tmp)) {
HXLINE(  80)					return child;
            				}
            			}
            		}
HXLINE(  86)		return null();
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,getChildByName,return )

Int DisplayObjectContainer_obj::getChildIndex( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","getChildIndex",0xe2a0b92e,"openfl._legacy.display.DisplayObjectContainer.getChildIndex","openfl/_legacy/display/DisplayObjectContainer.hx",93,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE(  93)		return this->_hx___getChildIndex(child);
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,getChildIndex,return )

::Array< ::Dynamic> DisplayObjectContainer_obj::getObjectsUnderPoint( ::openfl::_legacy::geom::Point point){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","getObjectsUnderPoint",0x75c607b4,"openfl._legacy.display.DisplayObjectContainer.getObjectsUnderPoint","openfl/_legacy/display/DisplayObjectContainer.hx",98,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(point,"point")
HXLINE( 101)		 ::openfl::_legacy::display::Stage _hx_tmp = this->get_stage();
HXDLIN( 101)		HX_VARI( Bool,onStage) = hx::IsNotNull( _hx_tmp );
HXLINE( 102)		HX_VARI( Bool,cacheVisible) = this->get_visible();
HXLINE( 104)		if (!(onStage)) {
HXLINE( 106)			this->set_visible(false);
HXLINE( 107)			::openfl::_legacy::Lib_obj::get_stage()->addChild(hx::ObjectPtr<OBJ_>(this));
            		}
HXLINE( 111)		HX_VARI( ::Array< ::Dynamic>,result) = ::Array_obj< ::Dynamic>::__new();
HXLINE( 112)		this->_hx___getObjectsUnderPoint(point,result);
HXLINE( 114)		if (!(onStage)) {
HXLINE( 116)			::openfl::_legacy::Lib_obj::get_stage()->removeChild(hx::ObjectPtr<OBJ_>(this));
HXLINE( 117)			this->set_visible(cacheVisible);
            		}
HXLINE( 121)		return result;
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,getObjectsUnderPoint,return )

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::removeChild( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","removeChild",0xecafeb5a,"openfl._legacy.display.DisplayObjectContainer.removeChild","openfl/_legacy/display/DisplayObjectContainer.hx",126,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE( 128)		HX_VARI( Int,index) = this->_hx___getChildIndex(child);
HXLINE( 130)		if ((index >= (int)0)) {
HXLINE( 132)			child->_hx___setParent(null());
HXLINE( 133)			return child;
            		}
HXLINE( 137)		return null();
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,removeChild,return )

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::removeChildAt(Int index){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","removeChildAt",0x69052eed,"openfl._legacy.display.DisplayObjectContainer.removeChildAt","openfl/_legacy/display/DisplayObjectContainer.hx",142,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(index,"index")
HXLINE( 144)		Bool _hx_tmp;
HXDLIN( 144)		if ((index >= (int)0)) {
HXLINE( 144)			_hx_tmp = (index < this->_hx___children->length);
            		}
            		else {
HXLINE( 144)			_hx_tmp = false;
            		}
HXDLIN( 144)		if (_hx_tmp) {
HXLINE( 146)			HX_VARI(  ::openfl::_legacy::display::DisplayObject,result) = this->_hx___children->__get(index).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXLINE( 147)			result->_hx___setParent(null());
HXLINE( 148)			return result;
            		}
HXLINE( 152)		HX_STACK_DO_THROW( ::openfl::errors::ArgumentError_obj::__new(HX_("The supplied DisplayObject must be a child of the caller.",e6,f4,27,a5)));
HXDLIN( 152)		return null();
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,removeChildAt,return )

void DisplayObjectContainer_obj::removeChildren(hx::Null< Int >  __o_beginIndex,hx::Null< Int >  __o_endIndex){
Int beginIndex = __o_beginIndex.Default(0);
Int endIndex = __o_endIndex.Default(2147483647);
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","removeChildren",0x7ba90241,"openfl._legacy.display.DisplayObjectContainer.removeChildren","openfl/_legacy/display/DisplayObjectContainer.hx",157,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(beginIndex,"beginIndex")
            	HX_STACK_ARG(endIndex,"endIndex")
HXLINE( 159)		Bool _hx_tmp = (endIndex == (int)2147483647);
HXDLIN( 159)		if (_hx_tmp) {
HXLINE( 161)			endIndex = (this->_hx___children->length - (int)1);
HXLINE( 163)			if ((endIndex < (int)0)) {
HXLINE( 165)				return;
            			}
            		}
HXLINE( 171)		Bool _hx_tmp1 = (beginIndex > (this->_hx___children->length - (int)1));
HXDLIN( 171)		if (_hx_tmp1) {
HXLINE( 173)			return;
            		}
            		else {
HXLINE( 175)			Bool _hx_tmp2;
HXDLIN( 175)			Bool _hx_tmp3;
HXDLIN( 175)			if ((endIndex >= beginIndex)) {
HXLINE( 175)				_hx_tmp3 = (beginIndex < (int)0);
            			}
            			else {
HXLINE( 175)				_hx_tmp3 = true;
            			}
HXDLIN( 175)			if (!(_hx_tmp3)) {
HXLINE( 175)				_hx_tmp2 = (endIndex > this->_hx___children->length);
            			}
            			else {
HXLINE( 175)				_hx_tmp2 = true;
            			}
HXDLIN( 175)			if (_hx_tmp2) {
HXLINE( 177)				HX_STACK_DO_THROW( ::openfl::errors::RangeError_obj::__new(HX_("The supplied index is out of bounds.",17,96,1b,51)));
            			}
            		}
HXLINE( 181)		HX_VARI( Int,numRemovals) = (endIndex - beginIndex);
HXLINE( 182)		while((numRemovals >= (int)0)){
HXLINE( 184)			this->removeChildAt(beginIndex);
HXLINE( 185)			--numRemovals;
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,removeChildren,(void))

void DisplayObjectContainer_obj::setChildIndex( ::openfl::_legacy::display::DisplayObject child,Int index){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","setChildIndex",0x27a69b3a,"openfl._legacy.display.DisplayObjectContainer.setChildIndex","openfl/_legacy/display/DisplayObjectContainer.hx",194,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
            	HX_STACK_ARG(index,"index")
HXLINE( 194)		if ((index > this->_hx___children->length)) {
HXLINE( 194)			HX_STACK_DO_THROW((HX_("Invalid index position ",80,59,50,86) + index));
            		}
HXDLIN( 194)		HX_VARI( Int,firstIndex) = this->_hx___getChildIndex(child);
HXDLIN( 194)		if ((firstIndex < (int)0)) {
HXLINE( 194)			::String _hx_tmp = child->toString();
HXDLIN( 194)			HX_VARI( ::String,msg) = ((HX_("setChildIndex : object ",93,4a,81,b4) + _hx_tmp) + HX_(" not found.",39,f7,8e,4f));
HXDLIN( 194)			if (hx::IsEq( child->_hx___parent,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE( 194)				HX_VARI( Int,actualIndex) = (int)-1;
HXDLIN( 194)				{
HXLINE( 194)					HX_VARI( Int,_g1) = (int)0;
HXDLIN( 194)					HX_VARI( Int,_g) = this->_hx___children->length;
HXDLIN( 194)					while((_g1 < _g)){
HXLINE( 194)						HX_VARI( Int,i) = _g1++;
HXDLIN( 194)						if (hx::IsEq( this->_hx___children->__get(i).StaticCast<  ::openfl::_legacy::display::DisplayObject >(),child )) {
HXLINE( 194)							actualIndex = i;
HXDLIN( 194)							goto _hx_goto_5;
            						}
            					}
            					_hx_goto_5:;
            				}
HXDLIN( 194)				if ((actualIndex != (int)-1)) {
HXLINE( 194)					::String _hx_tmp1 = ::Std_obj::string(actualIndex);
HXDLIN( 194)					hx::AddEq(msg,(HX_("Internal error: Real child index was ",00,bf,50,8a) + _hx_tmp1));
            				}
            				else {
HXLINE( 194)					hx::AddEq(msg,HX_("Internal error: Child was not in __children array!",a1,b9,1b,be));
            				}
            			}
HXDLIN( 194)			HX_STACK_DO_THROW(msg);
            		}
HXDLIN( 194)		::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_set_child_index(this->_hx___handle,child->_hx___handle,index);
HXDLIN( 194)		if ((index < firstIndex)) {
HXLINE( 194)			HX_VARI_NAME( Int,i1,"i") = firstIndex;
HXDLIN( 194)			while((i1 > index)){
HXLINE( 194)				 ::openfl::_legacy::display::DisplayObject _hx_tmp2 = this->_hx___children->__get((i1 - (int)1)).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 194)				this->_hx___children[i1] = _hx_tmp2;
HXDLIN( 194)				--i1;
            			}
HXDLIN( 194)			this->_hx___children[index] = child;
            		}
            		else {
HXLINE( 194)			if ((firstIndex < index)) {
HXLINE( 194)				HX_VARI_NAME( Int,i2,"i") = firstIndex;
HXDLIN( 194)				while((i2 < index)){
HXLINE( 194)					 ::openfl::_legacy::display::DisplayObject _hx_tmp3 = this->_hx___children->__get((i2 + (int)1)).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 194)					this->_hx___children[i2] = _hx_tmp3;
HXDLIN( 194)					++i2;
            				}
HXDLIN( 194)				this->_hx___children[index] = child;
            			}
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,setChildIndex,(void))

void DisplayObjectContainer_obj::swapChildren( ::openfl::_legacy::display::DisplayObject child1, ::openfl::_legacy::display::DisplayObject child2){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","swapChildren",0xe1a8f410,"openfl._legacy.display.DisplayObjectContainer.swapChildren","openfl/_legacy/display/DisplayObjectContainer.hx",199,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child1,"child1")
            	HX_STACK_ARG(child2,"child2")
HXLINE( 201)		HX_VARI( Int,index1) = this->_hx___getChildIndex(child1);
HXLINE( 202)		HX_VARI( Int,index2) = this->_hx___getChildIndex(child2);
HXLINE( 204)		Bool _hx_tmp;
HXDLIN( 204)		if ((index1 >= (int)0)) {
HXLINE( 204)			_hx_tmp = (index2 < (int)0);
            		}
            		else {
HXLINE( 204)			_hx_tmp = true;
            		}
HXDLIN( 204)		if (_hx_tmp) {
HXLINE( 206)			HX_STACK_DO_THROW(HX_("swapChildren:Could not find children",32,ad,6e,85));
            		}
HXLINE( 210)		{
HXLINE( 210)			Bool _hx_tmp1;
HXDLIN( 210)			Bool _hx_tmp2;
HXDLIN( 210)			Bool _hx_tmp3;
HXDLIN( 210)			if ((index1 >= (int)0)) {
HXLINE( 210)				_hx_tmp3 = (index2 < (int)0);
            			}
            			else {
HXLINE( 210)				_hx_tmp3 = true;
            			}
HXDLIN( 210)			if (!(_hx_tmp3)) {
HXLINE( 210)				_hx_tmp2 = (index1 > this->_hx___children->length);
            			}
            			else {
HXLINE( 210)				_hx_tmp2 = true;
            			}
HXDLIN( 210)			if (!(_hx_tmp2)) {
HXLINE( 210)				_hx_tmp1 = (index2 > this->_hx___children->length);
            			}
            			else {
HXLINE( 210)				_hx_tmp1 = true;
            			}
HXDLIN( 210)			if (_hx_tmp1) {
HXLINE( 210)				HX_STACK_DO_THROW( ::openfl::errors::RangeError_obj::__new(HX_("swapChildrenAt : index out of bounds",fd,03,a9,7f)));
            			}
HXDLIN( 210)			if ((index1 != index2)) {
HXLINE( 210)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,temp) = this->_hx___children->__get(index1).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 210)				 ::openfl::_legacy::display::DisplayObject _hx_tmp4 = this->_hx___children->__get(index2).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 210)				this->_hx___children[index1] = _hx_tmp4;
HXDLIN( 210)				this->_hx___children[index2] = temp;
HXDLIN( 210)				::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_swap_children(this->_hx___handle,index1,index2);
            			}
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,swapChildren,(void))

void DisplayObjectContainer_obj::swapChildrenAt(Int index1,Int index2){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","swapChildrenAt",0x54da5123,"openfl._legacy.display.DisplayObjectContainer.swapChildrenAt","openfl/_legacy/display/DisplayObjectContainer.hx",217,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(index1,"index1")
            	HX_STACK_ARG(index2,"index2")
HXLINE( 217)		Bool _hx_tmp;
HXDLIN( 217)		Bool _hx_tmp1;
HXDLIN( 217)		Bool _hx_tmp2;
HXDLIN( 217)		if ((index1 >= (int)0)) {
HXLINE( 217)			_hx_tmp2 = (index2 < (int)0);
            		}
            		else {
HXLINE( 217)			_hx_tmp2 = true;
            		}
HXDLIN( 217)		if (!(_hx_tmp2)) {
HXLINE( 217)			_hx_tmp1 = (index1 > this->_hx___children->length);
            		}
            		else {
HXLINE( 217)			_hx_tmp1 = true;
            		}
HXDLIN( 217)		if (!(_hx_tmp1)) {
HXLINE( 217)			_hx_tmp = (index2 > this->_hx___children->length);
            		}
            		else {
HXLINE( 217)			_hx_tmp = true;
            		}
HXDLIN( 217)		if (_hx_tmp) {
HXLINE( 217)			HX_STACK_DO_THROW( ::openfl::errors::RangeError_obj::__new(HX_("swapChildrenAt : index out of bounds",fd,03,a9,7f)));
            		}
HXDLIN( 217)		if ((index1 != index2)) {
HXLINE( 217)			HX_VARI(  ::openfl::_legacy::display::DisplayObject,temp) = this->_hx___children->__get(index1).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 217)			 ::openfl::_legacy::display::DisplayObject _hx_tmp3 = this->_hx___children->__get(index2).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 217)			this->_hx___children[index1] = _hx_tmp3;
HXDLIN( 217)			this->_hx___children[index2] = temp;
HXDLIN( 217)			::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_swap_children(this->_hx___handle,index1,index2);
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,swapChildrenAt,(void))

void DisplayObjectContainer_obj::_hx___addChild( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__addChild",0xbdc1c879,"openfl._legacy.display.DisplayObjectContainer.__addChild","openfl/_legacy/display/DisplayObjectContainer.hx",222,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE( 224)		if (hx::IsEq( child,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE( 226)			HX_STACK_DO_THROW(HX_("Adding to self",b2,fe,1c,cf));
            		}
HXLINE( 230)		if (hx::IsEq( child->_hx___parent,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE( 232)			Int _hx_tmp = (this->_hx___children->length - (int)1);
HXDLIN( 232)			this->setChildIndex(child,_hx_tmp);
            		}
            		else {
HXLINE( 236)			child->_hx___setParent(null());
HXLINE( 237)			this->_hx___children->push(child);
HXLINE( 238)			::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_add_child(this->_hx___handle,child->_hx___handle);
HXLINE( 239)			child->_hx___setParent(hx::ObjectPtr<OBJ_>(this));
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,_hx___addChild,(void))

void DisplayObjectContainer_obj::_hx___broadcast( ::openfl::_legacy::events::Event event){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__broadcast",0xb6085083,"openfl._legacy.display.DisplayObjectContainer.__broadcast","openfl/_legacy/display/DisplayObjectContainer.hx",246,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(event,"event")
HXLINE( 248)		HX_VARI( Int,i) = (int)0;
HXLINE( 250)		Bool _hx_tmp = (this->_hx___children->length > (int)0);
HXDLIN( 250)		if (_hx_tmp) {
HXLINE( 252)			HX_VAR(  ::openfl::_legacy::display::DisplayObject,child);
HXLINE( 254)			while(true){
HXLINE( 256)				child = this->_hx___children->__get(i).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXLINE( 258)				Bool _hx_tmp1 = hx::IsNotNull( child );
HXDLIN( 258)				if (_hx_tmp1) {
HXLINE( 260)					child->_hx___broadcast(event);
            				}
HXLINE( 264)				if ((i >= this->_hx___children->length)) {
HXLINE( 266)					goto _hx_goto_8;
            				}
HXLINE( 270)				Bool _hx_tmp2 = hx::IsEq( this->_hx___children->__get(i).StaticCast<  ::openfl::_legacy::display::DisplayObject >(),child );
HXDLIN( 270)				if (_hx_tmp2) {
HXLINE( 272)					++i;
HXLINE( 274)					if ((i >= this->_hx___children->length)) {
HXLINE( 276)						goto _hx_goto_8;
            					}
            				}
            			}
            			_hx_goto_8:;
            		}
HXLINE( 286)		this->super::_hx___broadcast(event);
            	}

Bool DisplayObjectContainer_obj::_hx___contains( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__contains",0x2b2652dd,"openfl._legacy.display.DisplayObjectContainer.__contains","openfl/_legacy/display/DisplayObjectContainer.hx",291,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE( 293)		Bool _hx_tmp = hx::IsNull( child );
HXDLIN( 293)		if (_hx_tmp) {
HXLINE( 295)			return false;
            		}
HXLINE( 299)		if (hx::IsEq( hx::ObjectPtr<OBJ_>(this),child )) {
HXLINE( 301)			return true;
            		}
HXLINE( 305)		{
HXLINE( 305)			HX_VARI( Int,_g) = (int)0;
HXDLIN( 305)			HX_VARI( ::Array< ::Dynamic>,_g1) = this->_hx___children;
HXDLIN( 305)			while((_g < _g1->length)){
HXLINE( 305)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,c) = _g1->__get(_g).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 305)				++_g;
HXLINE( 307)				Bool _hx_tmp1;
HXDLIN( 307)				if (hx::IsNotEq( c,child )) {
HXLINE( 307)					_hx_tmp1 = c->_hx___contains(child);
            				}
            				else {
HXLINE( 307)					_hx_tmp1 = true;
            				}
HXDLIN( 307)				if (_hx_tmp1) {
HXLINE( 309)					return true;
            				}
            			}
            		}
HXLINE( 315)		return false;
            	}

 ::openfl::_legacy::display::DisplayObject DisplayObjectContainer_obj::_hx___findByID(Int id){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__findByID",0x9261ff09,"openfl._legacy.display.DisplayObjectContainer.__findByID","openfl/_legacy/display/DisplayObjectContainer.hx",320,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(id,"id")
HXLINE( 322)		if ((this->_hx___id == id)) {
HXLINE( 324)			return hx::ObjectPtr<OBJ_>(this);
            		}
HXLINE( 328)		HX_VAR(  ::openfl::_legacy::display::DisplayObject,found);
HXLINE( 330)		{
HXLINE( 330)			HX_VARI( Int,_g) = (int)0;
HXDLIN( 330)			HX_VARI( ::Array< ::Dynamic>,_g1) = this->_hx___children;
HXDLIN( 330)			while((_g < _g1->length)){
HXLINE( 330)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,child) = _g1->__get(_g).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 330)				++_g;
HXLINE( 332)				found = child->_hx___findByID(id);
HXLINE( 334)				Bool _hx_tmp = hx::IsNotNull( found );
HXDLIN( 334)				if (_hx_tmp) {
HXLINE( 336)					return found;
            				}
            			}
            		}
HXLINE( 342)		return this->super::_hx___findByID(id);
            	}

Int DisplayObjectContainer_obj::_hx___getChildIndex( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__getChildIndex",0xcb62fe8e,"openfl._legacy.display.DisplayObjectContainer.__getChildIndex","openfl/_legacy/display/DisplayObjectContainer.hx",347,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE( 349)		{
HXLINE( 349)			HX_VARI( Int,_g1) = (int)0;
HXDLIN( 349)			HX_VARI( Int,_g) = this->_hx___children->length;
HXDLIN( 349)			while((_g1 < _g)){
HXLINE( 349)				HX_VARI( Int,i) = _g1++;
HXLINE( 351)				if (hx::IsEq( this->_hx___children->__get(i).StaticCast<  ::openfl::_legacy::display::DisplayObject >(),child )) {
HXLINE( 353)					return i;
            				}
            			}
            		}
HXLINE( 359)		return (int)-1;
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,_hx___getChildIndex,return )

void DisplayObjectContainer_obj::_hx___getObjectsUnderPoint( ::openfl::_legacy::geom::Point point,::Array< ::Dynamic> result){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__getObjectsUnderPoint",0x14f12e54,"openfl._legacy.display.DisplayObjectContainer.__getObjectsUnderPoint","openfl/_legacy/display/DisplayObjectContainer.hx",364,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(point,"point")
            	HX_STACK_ARG(result,"result")
HXLINE( 366)		this->super::_hx___getObjectsUnderPoint(point,result);
HXLINE( 368)		{
HXLINE( 368)			HX_VARI( Int,_g) = (int)0;
HXDLIN( 368)			HX_VARI( ::Array< ::Dynamic>,_g1) = this->_hx___children;
HXDLIN( 368)			while((_g < _g1->length)){
HXLINE( 368)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,child) = _g1->__get(_g).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 368)				++_g;
HXLINE( 370)				child->_hx___getObjectsUnderPoint(point,result);
            			}
            		}
            	}

void DisplayObjectContainer_obj::_hx___onAdded( ::openfl::_legacy::display::DisplayObject object,Bool isOnStage){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__onAdded",0x10a25c23,"openfl._legacy.display.DisplayObjectContainer.__onAdded","openfl/_legacy/display/DisplayObjectContainer.hx",377,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(object,"object")
            	HX_STACK_ARG(isOnStage,"isOnStage")
HXLINE( 379)		this->super::_hx___onAdded(object,isOnStage);
HXLINE( 381)		{
HXLINE( 381)			HX_VARI( Int,_g) = (int)0;
HXDLIN( 381)			HX_VARI( ::Array< ::Dynamic>,_g1) = this->_hx___children;
HXDLIN( 381)			while((_g < _g1->length)){
HXLINE( 381)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,child) = _g1->__get(_g).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 381)				++_g;
HXLINE( 383)				child->_hx___onAdded(object,isOnStage);
            			}
            		}
            	}

void DisplayObjectContainer_obj::_hx___onRemoved( ::openfl::_legacy::display::DisplayObject object,Bool wasOnStage){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__onRemoved",0xa19985c3,"openfl._legacy.display.DisplayObjectContainer.__onRemoved","openfl/_legacy/display/DisplayObjectContainer.hx",390,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(object,"object")
            	HX_STACK_ARG(wasOnStage,"wasOnStage")
HXLINE( 392)		this->super::_hx___onRemoved(object,wasOnStage);
HXLINE( 394)		{
HXLINE( 394)			HX_VARI( Int,_g) = (int)0;
HXDLIN( 394)			HX_VARI( ::Array< ::Dynamic>,_g1) = this->_hx___children;
HXDLIN( 394)			while((_g < _g1->length)){
HXLINE( 394)				HX_VARI(  ::openfl::_legacy::display::DisplayObject,child) = _g1->__get(_g).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 394)				++_g;
HXLINE( 396)				child->_hx___onRemoved(object,wasOnStage);
            			}
            		}
            	}

void DisplayObjectContainer_obj::_hx___removeChildFromArray( ::openfl::_legacy::display::DisplayObject child){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__removeChildFromArray",0x96bf37b5,"openfl._legacy.display.DisplayObjectContainer.__removeChildFromArray","openfl/_legacy/display/DisplayObjectContainer.hx",403,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
HXLINE( 405)		HX_VARI( Int,i) = this->_hx___getChildIndex(child);
HXLINE( 407)		if ((i >= (int)0)) {
HXLINE( 409)			::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_remove_child(this->_hx___handle,i);
HXLINE( 410)			this->_hx___children->removeRange(i,(int)1);
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,_hx___removeChildFromArray,(void))

void DisplayObjectContainer_obj::_hx___setChildIndex( ::openfl::_legacy::display::DisplayObject child,Int index){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__setChildIndex",0x1068e09a,"openfl._legacy.display.DisplayObjectContainer.__setChildIndex","openfl/_legacy/display/DisplayObjectContainer.hx",417,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(child,"child")
            	HX_STACK_ARG(index,"index")
HXLINE( 419)		if ((index > this->_hx___children->length)) {
HXLINE( 421)			HX_STACK_DO_THROW((HX_("Invalid index position ",80,59,50,86) + index));
            		}
HXLINE( 425)		HX_VARI( Int,firstIndex) = this->_hx___getChildIndex(child);
HXLINE( 427)		if ((firstIndex < (int)0)) {
HXLINE( 429)			::String _hx_tmp = child->toString();
HXDLIN( 429)			HX_VARI( ::String,msg) = ((HX_("setChildIndex : object ",93,4a,81,b4) + _hx_tmp) + HX_(" not found.",39,f7,8e,4f));
HXLINE( 431)			if (hx::IsEq( child->_hx___parent,hx::ObjectPtr<OBJ_>(this) )) {
HXLINE( 433)				HX_VARI( Int,actualIndex) = (int)-1;
HXLINE( 435)				{
HXLINE( 435)					HX_VARI( Int,_g1) = (int)0;
HXDLIN( 435)					HX_VARI( Int,_g) = this->_hx___children->length;
HXDLIN( 435)					while((_g1 < _g)){
HXLINE( 435)						HX_VARI( Int,i) = _g1++;
HXLINE( 437)						if (hx::IsEq( this->_hx___children->__get(i).StaticCast<  ::openfl::_legacy::display::DisplayObject >(),child )) {
HXLINE( 439)							actualIndex = i;
HXLINE( 440)							goto _hx_goto_15;
            						}
            					}
            					_hx_goto_15:;
            				}
HXLINE( 446)				if ((actualIndex != (int)-1)) {
HXLINE( 448)					::String _hx_tmp1 = ::Std_obj::string(actualIndex);
HXDLIN( 448)					hx::AddEq(msg,(HX_("Internal error: Real child index was ",00,bf,50,8a) + _hx_tmp1));
            				}
            				else {
HXLINE( 452)					hx::AddEq(msg,HX_("Internal error: Child was not in __children array!",a1,b9,1b,be));
            				}
            			}
HXLINE( 458)			HX_STACK_DO_THROW(msg);
            		}
HXLINE( 462)		::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_set_child_index(this->_hx___handle,child->_hx___handle,index);
HXLINE( 464)		if ((index < firstIndex)) {
HXLINE( 466)			HX_VARI_NAME( Int,i1,"i") = firstIndex;
HXLINE( 468)			while((i1 > index)){
HXLINE( 470)				 ::openfl::_legacy::display::DisplayObject _hx_tmp2 = this->_hx___children->__get((i1 - (int)1)).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 470)				this->_hx___children[i1] = _hx_tmp2;
HXLINE( 471)				--i1;
            			}
HXLINE( 475)			this->_hx___children[index] = child;
            		}
            		else {
HXLINE( 477)			if ((firstIndex < index)) {
HXLINE( 479)				HX_VARI_NAME( Int,i2,"i") = firstIndex;
HXLINE( 481)				while((i2 < index)){
HXLINE( 483)					 ::openfl::_legacy::display::DisplayObject _hx_tmp3 = this->_hx___children->__get((i2 + (int)1)).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 483)					this->_hx___children[i2] = _hx_tmp3;
HXLINE( 484)					++i2;
            				}
HXLINE( 488)				this->_hx___children[index] = child;
            			}
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,_hx___setChildIndex,(void))

void DisplayObjectContainer_obj::_hx___swapChildrenAt(Int index1,Int index2){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","__swapChildrenAt",0x1614bfc3,"openfl._legacy.display.DisplayObjectContainer.__swapChildrenAt","openfl/_legacy/display/DisplayObjectContainer.hx",495,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(index1,"index1")
            	HX_STACK_ARG(index2,"index2")
HXLINE( 497)		Bool _hx_tmp;
HXDLIN( 497)		Bool _hx_tmp1;
HXDLIN( 497)		Bool _hx_tmp2;
HXDLIN( 497)		if ((index1 >= (int)0)) {
HXLINE( 497)			_hx_tmp2 = (index2 < (int)0);
            		}
            		else {
HXLINE( 497)			_hx_tmp2 = true;
            		}
HXDLIN( 497)		if (!(_hx_tmp2)) {
HXLINE( 497)			_hx_tmp1 = (index1 > this->_hx___children->length);
            		}
            		else {
HXLINE( 497)			_hx_tmp1 = true;
            		}
HXDLIN( 497)		if (!(_hx_tmp1)) {
HXLINE( 497)			_hx_tmp = (index2 > this->_hx___children->length);
            		}
            		else {
HXLINE( 497)			_hx_tmp = true;
            		}
HXDLIN( 497)		if (_hx_tmp) {
HXLINE( 499)			HX_STACK_DO_THROW( ::openfl::errors::RangeError_obj::__new(HX_("swapChildrenAt : index out of bounds",fd,03,a9,7f)));
            		}
HXLINE( 503)		if ((index1 != index2)) {
HXLINE( 505)			HX_VARI(  ::openfl::_legacy::display::DisplayObject,temp) = this->_hx___children->__get(index1).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXLINE( 506)			 ::openfl::_legacy::display::DisplayObject _hx_tmp3 = this->_hx___children->__get(index2).StaticCast<  ::openfl::_legacy::display::DisplayObject >();
HXDLIN( 506)			this->_hx___children[index1] = _hx_tmp3;
HXLINE( 507)			this->_hx___children[index2] = temp;
HXLINE( 508)			::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_swap_children(this->_hx___handle,index1,index2);
            		}
            	}

HX_DEFINE_DYNAMIC_FUNC2(DisplayObjectContainer_obj,_hx___swapChildrenAt,(void))

Bool DisplayObjectContainer_obj::get_mouseChildren(){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","get_mouseChildren",0x5f15adfd,"openfl._legacy.display.DisplayObjectContainer.get_mouseChildren","openfl/_legacy/display/DisplayObjectContainer.hx",522,0xf33fa94b)
            	HX_STACK_THIS(this)
HXLINE( 522)		return ( (Bool)(::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_get_mouse_children(this->_hx___handle)) );
            	}

HX_DEFINE_DYNAMIC_FUNC0(DisplayObjectContainer_obj,get_mouseChildren,return )

Bool DisplayObjectContainer_obj::set_mouseChildren(Bool value){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","set_mouseChildren",0x82838609,"openfl._legacy.display.DisplayObjectContainer.set_mouseChildren","openfl/_legacy/display/DisplayObjectContainer.hx",523,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(value,"value")
HXLINE( 525)		::openfl::_legacy::display::DisplayObjectContainer_obj::lime_doc_set_mouse_children(this->_hx___handle,value);
HXLINE( 526)		return value;
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,set_mouseChildren,return )

Int DisplayObjectContainer_obj::get_numChildren(){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","get_numChildren",0xa8107ede,"openfl._legacy.display.DisplayObjectContainer.get_numChildren","openfl/_legacy/display/DisplayObjectContainer.hx",531,0xf33fa94b)
            	HX_STACK_THIS(this)
HXLINE( 531)		return this->_hx___children->length;
            	}

HX_DEFINE_DYNAMIC_FUNC0(DisplayObjectContainer_obj,get_numChildren,return )

Bool DisplayObjectContainer_obj::get_tabChildren(){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","get_tabChildren",0x971621ed,"openfl._legacy.display.DisplayObjectContainer.get_tabChildren","openfl/_legacy/display/DisplayObjectContainer.hx",532,0xf33fa94b)
            	HX_STACK_THIS(this)
HXLINE( 532)		return false;
            	}

HX_DEFINE_DYNAMIC_FUNC0(DisplayObjectContainer_obj,get_tabChildren,return )

Bool DisplayObjectContainer_obj::set_tabChildren(Bool value){
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","set_tabChildren",0x92e19ef9,"openfl._legacy.display.DisplayObjectContainer.set_tabChildren","openfl/_legacy/display/DisplayObjectContainer.hx",533,0xf33fa94b)
            	HX_STACK_THIS(this)
            	HX_STACK_ARG(value,"value")
HXLINE( 533)		return false;
            	}

HX_DEFINE_DYNAMIC_FUNC1(DisplayObjectContainer_obj,set_tabChildren,return )

 ::Dynamic DisplayObjectContainer_obj::lime_create_display_object_container;

 ::Dynamic DisplayObjectContainer_obj::lime_doc_add_child;

 ::Dynamic DisplayObjectContainer_obj::lime_doc_remove_child;

 ::Dynamic DisplayObjectContainer_obj::lime_doc_set_child_index;

 ::Dynamic DisplayObjectContainer_obj::lime_doc_get_mouse_children;

 ::Dynamic DisplayObjectContainer_obj::lime_doc_set_mouse_children;

 ::Dynamic DisplayObjectContainer_obj::lime_doc_swap_children;

DisplayObjectContainer_obj::DisplayObjectContainer_obj()
{
}

void DisplayObjectContainer_obj::__Mark(HX_MARK_PARAMS)
{
	HX_MARK_BEGIN_CLASS(DisplayObjectContainer);
	HX_MARK_MEMBER_NAME(numChildren,"numChildren");
	HX_MARK_MEMBER_NAME(_hx___children,"__children");
	 ::openfl::_legacy::display::DisplayObject_obj::__Mark(HX_MARK_ARG);
	HX_MARK_END_CLASS();
}

void DisplayObjectContainer_obj::__Visit(HX_VISIT_PARAMS)
{
	HX_VISIT_MEMBER_NAME(numChildren,"numChildren");
	HX_VISIT_MEMBER_NAME(_hx___children,"__children");
	 ::openfl::_legacy::display::DisplayObject_obj::__Visit(HX_VISIT_ARG);
}

hx::Val DisplayObjectContainer_obj::__Field(const ::String &inName,hx::PropertyAccess inCallProp)
{
	switch(inName.length) {
	case 8:
		if (HX_FIELD_EQ(inName,"addChild") ) { return hx::Val( addChild_dyn()); }
		if (HX_FIELD_EQ(inName,"contains") ) { return hx::Val( contains_dyn()); }
		break;
	case 9:
		if (HX_FIELD_EQ(inName,"__onAdded") ) { return hx::Val( _hx___onAdded_dyn()); }
		break;
	case 10:
		if (HX_FIELD_EQ(inName,"__children") ) { return hx::Val( _hx___children); }
		if (HX_FIELD_EQ(inName,"addChildAt") ) { return hx::Val( addChildAt_dyn()); }
		if (HX_FIELD_EQ(inName,"getChildAt") ) { return hx::Val( getChildAt_dyn()); }
		if (HX_FIELD_EQ(inName,"__addChild") ) { return hx::Val( _hx___addChild_dyn()); }
		if (HX_FIELD_EQ(inName,"__contains") ) { return hx::Val( _hx___contains_dyn()); }
		if (HX_FIELD_EQ(inName,"__findByID") ) { return hx::Val( _hx___findByID_dyn()); }
		break;
	case 11:
		if (HX_FIELD_EQ(inName,"numChildren") ) { return hx::Val( inCallProp == hx::paccAlways ? get_numChildren() : numChildren); }
		if (HX_FIELD_EQ(inName,"tabChildren") ) { if (inCallProp == hx::paccAlways) return hx::Val(get_tabChildren()); }
		if (HX_FIELD_EQ(inName,"removeChild") ) { return hx::Val( removeChild_dyn()); }
		if (HX_FIELD_EQ(inName,"__broadcast") ) { return hx::Val( _hx___broadcast_dyn()); }
		if (HX_FIELD_EQ(inName,"__onRemoved") ) { return hx::Val( _hx___onRemoved_dyn()); }
		break;
	case 12:
		if (HX_FIELD_EQ(inName,"swapChildren") ) { return hx::Val( swapChildren_dyn()); }
		break;
	case 13:
		if (HX_FIELD_EQ(inName,"mouseChildren") ) { if (inCallProp == hx::paccAlways) return hx::Val(get_mouseChildren()); }
		if (HX_FIELD_EQ(inName,"getChildIndex") ) { return hx::Val( getChildIndex_dyn()); }
		if (HX_FIELD_EQ(inName,"removeChildAt") ) { return hx::Val( removeChildAt_dyn()); }
		if (HX_FIELD_EQ(inName,"setChildIndex") ) { return hx::Val( setChildIndex_dyn()); }
		break;
	case 14:
		if (HX_FIELD_EQ(inName,"getChildByName") ) { return hx::Val( getChildByName_dyn()); }
		if (HX_FIELD_EQ(inName,"removeChildren") ) { return hx::Val( removeChildren_dyn()); }
		if (HX_FIELD_EQ(inName,"swapChildrenAt") ) { return hx::Val( swapChildrenAt_dyn()); }
		break;
	case 15:
		if (HX_FIELD_EQ(inName,"__getChildIndex") ) { return hx::Val( _hx___getChildIndex_dyn()); }
		if (HX_FIELD_EQ(inName,"__setChildIndex") ) { return hx::Val( _hx___setChildIndex_dyn()); }
		if (HX_FIELD_EQ(inName,"get_numChildren") ) { return hx::Val( get_numChildren_dyn()); }
		if (HX_FIELD_EQ(inName,"get_tabChildren") ) { return hx::Val( get_tabChildren_dyn()); }
		if (HX_FIELD_EQ(inName,"set_tabChildren") ) { return hx::Val( set_tabChildren_dyn()); }
		break;
	case 16:
		if (HX_FIELD_EQ(inName,"__swapChildrenAt") ) { return hx::Val( _hx___swapChildrenAt_dyn()); }
		break;
	case 17:
		if (HX_FIELD_EQ(inName,"get_mouseChildren") ) { return hx::Val( get_mouseChildren_dyn()); }
		if (HX_FIELD_EQ(inName,"set_mouseChildren") ) { return hx::Val( set_mouseChildren_dyn()); }
		break;
	case 20:
		if (HX_FIELD_EQ(inName,"getObjectsUnderPoint") ) { return hx::Val( getObjectsUnderPoint_dyn()); }
		break;
	case 22:
		if (HX_FIELD_EQ(inName,"__getObjectsUnderPoint") ) { return hx::Val( _hx___getObjectsUnderPoint_dyn()); }
		if (HX_FIELD_EQ(inName,"__removeChildFromArray") ) { return hx::Val( _hx___removeChildFromArray_dyn()); }
		break;
	case 32:
		if (HX_FIELD_EQ(inName,"areInaccessibleObjectsUnderPoint") ) { return hx::Val( areInaccessibleObjectsUnderPoint_dyn()); }
	}
	return super::__Field(inName,inCallProp);
}

bool DisplayObjectContainer_obj::__GetStatic(const ::String &inName, Dynamic &outValue, hx::PropertyAccess inCallProp)
{
	switch(inName.length) {
	case 18:
		if (HX_FIELD_EQ(inName,"lime_doc_add_child") ) { outValue = lime_doc_add_child; return true; }
		break;
	case 21:
		if (HX_FIELD_EQ(inName,"lime_doc_remove_child") ) { outValue = lime_doc_remove_child; return true; }
		break;
	case 22:
		if (HX_FIELD_EQ(inName,"lime_doc_swap_children") ) { outValue = lime_doc_swap_children; return true; }
		break;
	case 24:
		if (HX_FIELD_EQ(inName,"lime_doc_set_child_index") ) { outValue = lime_doc_set_child_index; return true; }
		break;
	case 27:
		if (HX_FIELD_EQ(inName,"lime_doc_get_mouse_children") ) { outValue = lime_doc_get_mouse_children; return true; }
		if (HX_FIELD_EQ(inName,"lime_doc_set_mouse_children") ) { outValue = lime_doc_set_mouse_children; return true; }
		break;
	case 36:
		if (HX_FIELD_EQ(inName,"lime_create_display_object_container") ) { outValue = lime_create_display_object_container; return true; }
	}
	return false;
}

hx::Val DisplayObjectContainer_obj::__SetField(const ::String &inName,const hx::Val &inValue,hx::PropertyAccess inCallProp)
{
	switch(inName.length) {
	case 10:
		if (HX_FIELD_EQ(inName,"__children") ) { _hx___children=inValue.Cast< ::Array< ::Dynamic> >(); return inValue; }
		break;
	case 11:
		if (HX_FIELD_EQ(inName,"numChildren") ) { numChildren=inValue.Cast< Int >(); return inValue; }
		if (HX_FIELD_EQ(inName,"tabChildren") ) { if (inCallProp == hx::paccAlways) return hx::Val( set_tabChildren(inValue) ); }
		break;
	case 13:
		if (HX_FIELD_EQ(inName,"mouseChildren") ) { if (inCallProp == hx::paccAlways) return hx::Val( set_mouseChildren(inValue) ); }
	}
	return super::__SetField(inName,inValue,inCallProp);
}

bool DisplayObjectContainer_obj::__SetStatic(const ::String &inName,Dynamic &ioValue,hx::PropertyAccess inCallProp)
{
	switch(inName.length) {
	case 18:
		if (HX_FIELD_EQ(inName,"lime_doc_add_child") ) { lime_doc_add_child=ioValue.Cast<  ::Dynamic >(); return true; }
		break;
	case 21:
		if (HX_FIELD_EQ(inName,"lime_doc_remove_child") ) { lime_doc_remove_child=ioValue.Cast<  ::Dynamic >(); return true; }
		break;
	case 22:
		if (HX_FIELD_EQ(inName,"lime_doc_swap_children") ) { lime_doc_swap_children=ioValue.Cast<  ::Dynamic >(); return true; }
		break;
	case 24:
		if (HX_FIELD_EQ(inName,"lime_doc_set_child_index") ) { lime_doc_set_child_index=ioValue.Cast<  ::Dynamic >(); return true; }
		break;
	case 27:
		if (HX_FIELD_EQ(inName,"lime_doc_get_mouse_children") ) { lime_doc_get_mouse_children=ioValue.Cast<  ::Dynamic >(); return true; }
		if (HX_FIELD_EQ(inName,"lime_doc_set_mouse_children") ) { lime_doc_set_mouse_children=ioValue.Cast<  ::Dynamic >(); return true; }
		break;
	case 36:
		if (HX_FIELD_EQ(inName,"lime_create_display_object_container") ) { lime_create_display_object_container=ioValue.Cast<  ::Dynamic >(); return true; }
	}
	return false;
}

void DisplayObjectContainer_obj::__GetFields(Array< ::String> &outFields)
{
	outFields->push(HX_HCSTRING("mouseChildren","\x84","\x18","\x6b","\xff"));
	outFields->push(HX_HCSTRING("numChildren","\xa5","\x69","\x80","\x5c"));
	outFields->push(HX_HCSTRING("tabChildren","\xb4","\x0c","\x86","\x4b"));
	outFields->push(HX_HCSTRING("__children","\x5f","\x8c","\xa2","\x13"));
	super::__GetFields(outFields);
};

#if HXCPP_SCRIPTABLE
static hx::StorageInfo DisplayObjectContainer_obj_sMemberStorageInfo[] = {
	{hx::fsInt,(int)offsetof(DisplayObjectContainer_obj,numChildren),HX_HCSTRING("numChildren","\xa5","\x69","\x80","\x5c")},
	{hx::fsObject /*Array< ::Dynamic >*/ ,(int)offsetof(DisplayObjectContainer_obj,_hx___children),HX_HCSTRING("__children","\x5f","\x8c","\xa2","\x13")},
	{ hx::fsUnknown, 0, null()}
};
static hx::StaticInfo DisplayObjectContainer_obj_sStaticStorageInfo[] = {
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_create_display_object_container,HX_HCSTRING("lime_create_display_object_container","\xd7","\xb4","\x24","\x09")},
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_doc_add_child,HX_HCSTRING("lime_doc_add_child","\x0d","\x98","\x4b","\x05")},
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_doc_remove_child,HX_HCSTRING("lime_doc_remove_child","\x32","\xcd","\xaa","\x03")},
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_doc_set_child_index,HX_HCSTRING("lime_doc_set_child_index","\x21","\xe9","\x06","\xbd")},
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_doc_get_mouse_children,HX_HCSTRING("lime_doc_get_mouse_children","\x73","\xc6","\xf8","\x6e")},
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_doc_set_mouse_children,HX_HCSTRING("lime_doc_set_mouse_children","\xe7","\xf8","\xa7","\x4b")},
	{hx::fsObject /*Dynamic*/ ,(void *) &DisplayObjectContainer_obj::lime_doc_swap_children,HX_HCSTRING("lime_doc_swap_children","\x7a","\x35","\x7d","\x8d")},
	{ hx::fsUnknown, 0, null()}
};
#endif

static ::String DisplayObjectContainer_obj_sMemberFields[] = {
	HX_HCSTRING("numChildren","\xa5","\x69","\x80","\x5c"),
	HX_HCSTRING("__children","\x5f","\x8c","\xa2","\x13"),
	HX_HCSTRING("addChild","\xbb","\xcf","\x16","\xbf"),
	HX_HCSTRING("addChildAt","\x8e","\xad","\x36","\xce"),
	HX_HCSTRING("areInaccessibleObjectsUnderPoint","\x3d","\x22","\x9b","\x1e"),
	HX_HCSTRING("contains","\x1f","\x5a","\x7b","\x2c"),
	HX_HCSTRING("getChildAt","\xb9","\x07","\x0e","\xb6"),
	HX_HCSTRING("getChildByName","\x88","\xb9","\x73","\xa3"),
	HX_HCSTRING("getChildIndex","\x0c","\x68","\x02","\xb9"),
	HX_HCSTRING("getObjectsUnderPoint","\x96","\x10","\xd5","\x80"),
	HX_HCSTRING("removeChild","\xb8","\x86","\xed","\x43"),
	HX_HCSTRING("removeChildAt","\xcb","\xdd","\x66","\x3f"),
	HX_HCSTRING("removeChildren","\xa3","\x55","\xc0","\x3a"),
	HX_HCSTRING("setChildIndex","\x18","\x4a","\x08","\xfe"),
	HX_HCSTRING("swapChildren","\xf2","\x4a","\x53","\xe0"),
	HX_HCSTRING("swapChildrenAt","\x85","\xa4","\xf1","\x13"),
	HX_HCSTRING("__addChild","\xdb","\x42","\x4f","\x62"),
	HX_HCSTRING("__broadcast","\xe1","\xeb","\x45","\x0d"),
	HX_HCSTRING("__contains","\x3f","\xcd","\xb3","\xcf"),
	HX_HCSTRING("__findByID","\x6b","\x79","\xef","\x36"),
	HX_HCSTRING("__getChildIndex","\xec","\xa0","\xb4","\x40"),
	HX_HCSTRING("__getObjectsUnderPoint","\xb6","\xb3","\x7d","\x48"),
	HX_HCSTRING("__onAdded","\x01","\xc4","\xcf","\x33"),
	HX_HCSTRING("__onRemoved","\x21","\x21","\xd7","\xf8"),
	HX_HCSTRING("__removeChildFromArray","\x17","\xbd","\x4b","\xca"),
	HX_HCSTRING("__setChildIndex","\xf8","\x82","\xba","\x85"),
	HX_HCSTRING("__swapChildrenAt","\xa5","\x2f","\x31","\x48"),
	HX_HCSTRING("get_mouseChildren","\xdb","\x23","\xdb","\x05"),
	HX_HCSTRING("set_mouseChildren","\xe7","\xfb","\x48","\x29"),
	HX_HCSTRING("get_numChildren","\x3c","\x21","\x62","\x1d"),
	HX_HCSTRING("get_tabChildren","\x4b","\xc4","\x67","\x0c"),
	HX_HCSTRING("set_tabChildren","\x57","\x41","\x33","\x08"),
	::String(null()) };

static void DisplayObjectContainer_obj_sMarkStatics(HX_MARK_PARAMS) {
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::__mClass,"__mClass");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_create_display_object_container,"lime_create_display_object_container");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_add_child,"lime_doc_add_child");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_remove_child,"lime_doc_remove_child");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_set_child_index,"lime_doc_set_child_index");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_get_mouse_children,"lime_doc_get_mouse_children");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_set_mouse_children,"lime_doc_set_mouse_children");
	HX_MARK_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_swap_children,"lime_doc_swap_children");
};

#ifdef HXCPP_VISIT_ALLOCS
static void DisplayObjectContainer_obj_sVisitStatics(HX_VISIT_PARAMS) {
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::__mClass,"__mClass");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_create_display_object_container,"lime_create_display_object_container");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_add_child,"lime_doc_add_child");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_remove_child,"lime_doc_remove_child");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_set_child_index,"lime_doc_set_child_index");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_get_mouse_children,"lime_doc_get_mouse_children");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_set_mouse_children,"lime_doc_set_mouse_children");
	HX_VISIT_MEMBER_NAME(DisplayObjectContainer_obj::lime_doc_swap_children,"lime_doc_swap_children");
};

#endif

hx::Class DisplayObjectContainer_obj::__mClass;

static ::String DisplayObjectContainer_obj_sStaticFields[] = {
	HX_HCSTRING("lime_create_display_object_container","\xd7","\xb4","\x24","\x09"),
	HX_HCSTRING("lime_doc_add_child","\x0d","\x98","\x4b","\x05"),
	HX_HCSTRING("lime_doc_remove_child","\x32","\xcd","\xaa","\x03"),
	HX_HCSTRING("lime_doc_set_child_index","\x21","\xe9","\x06","\xbd"),
	HX_HCSTRING("lime_doc_get_mouse_children","\x73","\xc6","\xf8","\x6e"),
	HX_HCSTRING("lime_doc_set_mouse_children","\xe7","\xf8","\xa7","\x4b"),
	HX_HCSTRING("lime_doc_swap_children","\x7a","\x35","\x7d","\x8d"),
	::String(null())
};

void DisplayObjectContainer_obj::__register()
{
	hx::Static(__mClass) = new hx::Class_obj();
	__mClass->mName = HX_HCSTRING("openfl._legacy.display.DisplayObjectContainer","\x10","\xda","\xf5","\xf5");
	__mClass->mSuper = &super::__SGetClass();
	__mClass->mConstructEmpty = &__CreateEmpty;
	__mClass->mConstructArgs = &__Create;
	__mClass->mGetStaticField = &DisplayObjectContainer_obj::__GetStatic;
	__mClass->mSetStaticField = &DisplayObjectContainer_obj::__SetStatic;
	__mClass->mMarkFunc = DisplayObjectContainer_obj_sMarkStatics;
	__mClass->mStatics = hx::Class_obj::dupFunctions(DisplayObjectContainer_obj_sStaticFields);
	__mClass->mMembers = hx::Class_obj::dupFunctions(DisplayObjectContainer_obj_sMemberFields);
	__mClass->mCanCast = hx::TCanCast< DisplayObjectContainer_obj >;
#ifdef HXCPP_VISIT_ALLOCS
	__mClass->mVisitFunc = DisplayObjectContainer_obj_sVisitStatics;
#endif
#ifdef HXCPP_SCRIPTABLE
	__mClass->mMemberStorageInfo = DisplayObjectContainer_obj_sMemberStorageInfo;
#endif
#ifdef HXCPP_SCRIPTABLE
	__mClass->mStaticStorageInfo = DisplayObjectContainer_obj_sStaticStorageInfo;
#endif
	hx::_hx_RegisterClass(__mClass->mName, __mClass);
}

void DisplayObjectContainer_obj::__boot()
{
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",543,0xf33fa94b)
HXLINE( 543)		lime_create_display_object_container = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_create_display_object_container",35,87,0a,79),(int)0);
            	}
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",544,0xf33fa94b)
HXLINE( 544)		lime_doc_add_child = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_doc_add_child",eb,5a,41,09),(int)2);
            	}
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",545,0xf33fa94b)
HXLINE( 545)		lime_doc_remove_child = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_doc_remove_child",14,a9,f7,f4),(int)2);
            	}
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",546,0xf33fa94b)
HXLINE( 546)		lime_doc_set_child_index = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_doc_set_child_index",7f,26,57,fa),(int)3);
            	}
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",547,0xf33fa94b)
HXLINE( 547)		lime_doc_get_mouse_children = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_doc_get_mouse_children",d5,b7,ce,f3),(int)1);
            	}
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",548,0xf33fa94b)
HXLINE( 548)		lime_doc_set_mouse_children = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_doc_set_mouse_children",49,ea,7d,d0),(int)2);
            	}
{
            	HX_STACK_FRAME("openfl._legacy.display.DisplayObjectContainer","boot",0x41d3df50,"openfl._legacy.display.DisplayObjectContainer.boot","openfl/_legacy/display/DisplayObjectContainer.hx",549,0xf33fa94b)
HXLINE( 549)		lime_doc_swap_children = ::openfl::_legacy::Lib_obj::load(HX_("lime-legacy",c1,7f,b9,87),HX_("lime_legacy_doc_swap_children",58,bf,70,bf),(int)3);
            	}
}

} // end namespace openfl
} // end namespace _legacy
} // end namespace display


text:
/* ************************************************************************ */

#include "konoha3.h"

#ifdef __cplusplus
extern "C" {
#endif

// --------------------------------------------------------------------------
// String Interpolation

/* copied from src/sugar/sugarfunc.h */
static kString *kToken_ResolveEscapeSequence(KonohaContext *kctx, kToken *tk, size_t start)
{
	KBuffer wb;
	KLIB KBuffer_Init(&(kctx->stack->cwb), &wb);
	const char *text = kString_text(tk->text) + start;
	const char *end  = kString_text(tk->text) + kString_size(tk->text);
	KLIB KBuffer_Write(kctx, &wb, kString_text(tk->text), start);
	while(text < end) {
		int ch = *text;
		if(ch == '\\' && *(text+1) != '\0') {
			switch (*(text+1)) {
			/*
			 * compatible with ECMA-262
			 * http://ecma-international.org/ecma-262/5.1/#sec-7.8.4
			 */
			case 'b':  ch = '\b'; text++; break;
			case 't':  ch = '\t'; text++; break;
			case 'n':  ch = '\n'; text++; break;
			case 'v':  ch = '\v'; text++; break;
			case 'f':  ch = '\f'; text++; break;
			case 'r':  ch = '\r'; text++; break;
			case '"':  ch = '"';  text++; break;
			case '\'': ch = '\''; text++; break;
			case '\\': ch = '\\'; text++; break;
			default: return NULL;
			}
		}
		{
			char buf[1] = {ch};
			KLIB KBuffer_Write(kctx, &wb, (const char *)buf, 1);
		}
		text++;
	}
	return KLIB KBuffer_Stringfy(kctx, &wb, OnGcStack, StringPolicy_FreeKBuffer);
}

static kString *remove_escapes(KonohaContext *kctx, kToken *tk)
{
	kString *text = tk->text;
	if(kToken_Is(RequiredReformat, tk)) {
		const char *escape = strchr(kString_text(text), '\\');
		DBG_ASSERT(escape != NULL);
		text = kToken_ResolveEscapeSequence(kctx, tk, escape - kString_text(text));
	}
	return text;
}

static kNode *ParseSource(KonohaContext *kctx, kNameSpace *ns, const char *script, size_t len)
{
	KBuffer wb;
	KLIB KBuffer_Init(&(kctx->stack->cwb), &wb);
	KLIB KBuffer_Write(kctx, &wb, "(", 1);
	KLIB KBuffer_Write(kctx, &wb, script, len);
	KLIB KBuffer_Write(kctx, &wb, ")", 1);

	KTokenSeq tokens = {ns, KGetParserContext(kctx)->preparedTokenList};
	KTokenSeq_Push(kctx, tokens);
	const char *buf = KLIB KBuffer_text(kctx, &wb, EnsureZero);
	KLIB Tokenize(kctx, ns, buf, 0, 0, tokens.tokenList);
	KTokenSeq_End(kctx, tokens);

	KTokenSeq step2 = {ns, tokens.tokenList, kArray_size(tokens.tokenList)};
	KLIB Preprocess(kctx, ns, RangeTokenSeq(tokens), NULL, step2.tokenList);
	KTokenSeq_End(kctx, step2);
	kNode *newexpr = KLIB ParseNewNode(kctx, ns, step2.tokenList, &step2.beginIdx, step2.endIdx, ParseExpressionOption, NULL);
	KTokenSeq_Pop(kctx, tokens);
	KLIB KBuffer_Free(&wb);
	return newexpr;
}

static KMETHOD Expression_ExtendedTextLiteral(KonohaContext *kctx, KonohaStack *sfp)
{
	VAR_Expression(expr, tokenList, beginIdx, opIdx, endIdx);
	kNameSpace *ns = kNode_ns(expr);
	kToken *tk = tokenList->TokenItems[opIdx];
	INIT_GCSTACK();
	kString *text = remove_escapes(kctx, tk);
	if(beginIdx != opIdx) {
		/* FIXME */
		assert(0 && "FIXME");
		KReturnUnboxValue(-1);
	}

	if(text == NULL) {
		/* text contain unsupported escape sequences */
		RESET_GCSTACK();
		KReturnUnboxValue(-1);
	}

	const char *str = kString_text(text);
	const char *end = NULL;
	const char *start = strstr(str, "${");
	if(start == NULL) {
		/* text does not contain Interpolation expressions */
		RESET_GCSTACK();
		KReturnUnboxValue(beginIdx+1);
	}
	kSyntax *addSyntax = kSyntax_(ns, KSymbol_("+"));
	kTokenVar *opToken = tokenList->TokenVarItems[beginIdx];
	opToken->symbol = KSymbol_("+");
	opToken->text   = KLIB new_kString(kctx, OnGcStack, "+", 1, 0);
	KFieldSet(opToken, opToken->resolvedSyntaxInfo, addSyntax);
	KLIB kNode_Op(kctx, expr, opToken, 0);

	/* [before] "aaa${bbb}ccc"
	 * [after]  "" + "aaa" + bbb + "ccc"
	 */
	KLIB kNode_AddNode(kctx, expr, new_ConstNode(kctx, ns, NULL, UPCAST(TS_EMPTY)));
	while(true) {
		start = strstr(str, "${");
		if(start == NULL)
			break;
		if(start == strstr(str, "${}")) {
			str += 3;
			continue;
		}
		end = strchr(start, '}');
		if(end == NULL)
			break;
		kNode *newexpr = ParseSource(kctx, ns, start+2, end-(start+2));
		if(start - str > 0) {
			kNode *first = new_ConstNode(kctx, ns, NULL,
					UPCAST(KLIB new_kString(kctx, OnGcStack, str, (start - str), 0)));
			KLIB kNode_AddNode(kctx, expr, first);
		}
		KLIB kNode_AddNode(kctx, expr, newexpr);
		str = end + 1;
	}

	if((start == NULL) || (start != NULL && end == NULL)) {
		kNode *rest = new_ConstNode(kctx, ns, KClass_String,
				UPCAST(KLIB new_kString(kctx, OnGcStack, str, strlen(str), 0)));
		KLIB kNode_AddNode(kctx, expr, rest);
	}

	/* (+ 1 2 3 4) => (+ (+ (+ 1 2) 3 ) 4) */
	int i, size = kNode_GetNodeListSize(kctx, expr);
	assert(size > 2);
	kNode *leftNode = kNode_At(expr, 1), *rightNode;
	for(i = 2; i < size-1; i++) {
		kNode *node = KNewNode(ns);
		rightNode = kNode_At(expr, i);
		KLIB kNode_Op(kctx, node, opToken, 2, leftNode, rightNode);
		leftNode = node;
	}
	rightNode = kNode_At(expr, i);
	KLIB kArray_Clear(kctx, expr->NodeList, 1);
	KLIB kArray_Add(kctx, expr->NodeList, leftNode);
	KLIB kArray_Add(kctx, expr->NodeList, rightNode);
	RESET_GCSTACK();
	KReturnUnboxValue(beginIdx+1);
}

// --------------------------------------------------------------------------

static kbool_t StringInterpolation_PackupNameSpace(KonohaContext *kctx, kNameSpace *ns, int option, KTraceInfo *trace)
{
#define PATTERN(X) KSymbol_##X##Pattern
	kSyntax *textSyntax = kSyntax_(KNULL(NameSpace), PATTERN(Text));
	KDEFINE_SYNTAX SYNTAX[] = {
		{ KSymbol_TextPattern, SYNFLAG_CParseFunc, 0, 0, {SUGARFUNC Expression_ExtendedTextLiteral}, {textSyntax->TypeFuncNULL}, },
		{ KSymbol_END, },
	};
	KLIB kNameSpace_DefineSyntax(kctx, ns, SYNTAX, trace);
	return true;
}

static kbool_t StringInterpolation_ExportNameSpace(KonohaContext *kctx, kNameSpace *ns, kNameSpace *exportNS, int option, KTraceInfo *trace)
{
	return true;
}

KONOHA_EXPORT(KDEFINE_PACKAGE *) StringInterpolation_Init(void)
{
	static KDEFINE_PACKAGE d = {0};
	KSetPackageName(d, "StringInterpolation", "1.0");
	d.PackupNameSpace = StringInterpolation_PackupNameSpace;
	d.ExportNameSpace = StringInterpolation_ExportNameSpace;
	return &d;
}

#ifdef __cplusplus
} /* extern "C" */
#endif

redpajama_set_name: RedPajamaGithub


text:
/*
    Firebase/User account Status -
    Date: 2014-11-26

    isCloudConnected - isCloudConnected()
    isLoggedIn - isLoggedIn()
    getLoggedInStatus - getLoggedInStatus()
    writeData -

*/
/* Parse has no notion of JSON object relationships. These pointer won't be needed. */
var gMybaseRef   = undefined;
var gFirebaseRef = undefined;
// This reference is for our (single, logged-in) user on a mobile device or similiar.
var gUserDataRef = null;
var gUserData    = {};
var gLoggedIn    = undefined;

//
//
// NOTE: Parse has no notion of being connected. We must check the connection status through phonegap or similar.
var isCloudConnected = function () {
}

//
//
// This call is synchronous.
var isLoggedIn = function () {
    if (getLoggedInStatus()) {
        // user authenticated with Parse
        getUserReference(
            function(user) {
                gUserDataRef = user[0];
                console.log("isLoggedIn as ID: '" + JSON.stringify(gUserDataRef));
            },
            function(strg) { console.log(strg);
            }
        );
        gLoggedIn    = true;

    } else {
        gLoggedIn    = false;
        console.log("user logged out.")
    }

    return gLoggedIn;
}

//
//
// This call is synchronous.
var getLoggedInStatus = function () {
    var iAm = whoami();
    if (iAm === null) {
        iAm = "Not logged in.";
        gLoggedIn = false;
    } else {
        gLoggedIn = true;
    }
    return gLoggedIn;
}

//
//    Write some actual data
//
var writeData = function (ref, data, callback, err) {
    //user = new Parse.User();
    ref.set('phone', data.phone);
    ref.save(null, {
        success : function (data) {console.log("writeData success:" + JSON.stringify(data));},
        error : function (data,err) {console.log("writeData error:" + JSON.stringify(err));}
    });

}

var readData = function (ref, callback, err) {

}


text:
<?php

namespace Roots\Sage\Models;

/**
 *
 * Model for Glossary terms
 *
 */

function publication_classes() {
  $classes = 'publication';
  if(is_single()) $classes .= ' publication--single';
  if(is_archive()) $classes .= ' publication--excerpt publication--collapse';
  return $classes;
}

?>


text:
<?php

namespace AppBundle\Service;

use AppBundle\Soap\SoapManufacturer;
use AppBundle\Soap\SoapProduct;
use AppBundle\Soap\SoapProductAttachment;
use AppBundle\Soap\SoapProductDetail;
use AppBundle\Soap\SoapProductType;
use DateTime;
use Doctrine\ORM\EntityManager;
use SoapClient;
use SoapFault;
use Symfony\Component\Console\Output\OutputInterface;

class ErpProductSyncService {

    /**
     *
     * @var EntityManager
     */
    private $_em;

    /**
     *
     * @var ErpOneConnectorService
     */
    private $_erp;
    private $_wsdlLocation;
    private $_soapClient;
    private $_wholesaleUrl = "http://wholesale.williams-trading.com/rest";

    public function __construct(EntityManager $em, ErpOneConnectorService $erp, $wsdlLocation, $soapUser, $soapPass) {
        $this->_em = $em;
        $this->_erp = $erp;
        $this->_wsdlLocation = $wsdlLocation;

        $this->_soapClient = new SoapClient($this->_wsdlLocation, array(
            'login' => $soapUser,
            'password' => $soapPass,
            'keep_alive' => true,
            'trace' => 1));
    }

    public function loadFromWholesale(OutputInterface $output) {

        $headers = get_headers($this->_wholesaleUrl . "/products?format=json", 1);

        $ch = curl_init();

        $matches = array();

        preg_match("/items [0-9]+-[0-9]+\/([0-9]+)/", $headers['X-Content-Range'], $matches);

        $offset = 0;
        $limit = 100;
        $total = $matches[1];
        $next = $limit;

        while ($offset < $total) {

            $productData = array();

            curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
            curl_setopt($ch, CURLOPT_HTTPHEADER, array("Range: $offset-$next"));
            curl_setopt($ch, CURLOPT_URL, $this->_wholesaleUrl . "/products?format=json");
            $response = json_decode(curl_exec($ch));

            if (!isset($response->products)) {
                break;
            }

            foreach ($response->products as $product) {
                $productData[$product->sku] = array(
                    'description' => $product->description,
                    'height' => $product->height,
                    'length' => $product->length,
                    'width' => $product->width,
                    'weight' => $product->weight,
                    'color' => $product->color,
                    'material' => $product->material,
                    'images' => array()
                );
            }

            $mh = curl_multi_init();
            $chs = array();

            foreach (array_keys($productData) as $sku) {

                $chx = curl_init();
                curl_setopt($chx, CURLOPT_RETURNTRANSFER, 1);
                curl_setopt($chx, CURLOPT_URL, $this->_wholesaleUrl . "/product-images/{$sku}?format=json");
                $chs[$sku] = $chx;
                curl_multi_add_handle($mh, $chx);
            }

            $active = null;

            do {
                $mrc = curl_multi_exec($mh, $active);
            } while ($mrc == CURLM_CALL_MULTI_PERFORM);

            while ($active && $mrc == CURLM_OK) {
                if (curl_multi_select($mh) != -1) {
                    do {
                        $mrc = curl_multi_exec($mh, $active);
                    } while ($mrc == CURLM_CALL_MULTI_PERFORM);
                }
            }

            foreach ($chs as $sku => $chx) {

                $response2 = json_decode(curl_multi_getcontent($chx));

                if (isset($response2->images)) {
                    foreach ($response2->images as $image) {
                        $productData[$sku]['images'][] = array(
                            'path' => $image->image_url,
                            'explicit' => $image->explicit,
                            'primary' => $image->primary
                        );
                    }
                }

                curl_multi_remove_handle($mh, $chx);
                curl_close($chx);
            }

            curl_multi_close($mh);

            $existingData = $this->_soapClient->findProducts(array('skus' => array_keys($productData)));

            $list = array();

            if (isset($existingData->products->product) && is_array($existingData->products->product)) {
                $list = $existingData->products->product;
            } else {
                $list = $existingData->products;
            }

            foreach ($list as $p) {
                $p->detail->textDescription = $productData[$p->sku]['description'];
                $p->detail->packageHeight = $productData[$p->sku]['height'];
                $p->detail->packageLength = $productData[$p->sku]['length'];
                $p->detail->packageWidth = $productData[$p->sku]['width'];
                $p->detail->packageWeight = $productData[$p->sku]['weight'];
                $p->detail->color = $productData[$p->sku]['color'];
                $p->detail->material = $productData[$p->sku]['material'];

                $p->attachments = array();

                foreach ($productData[$p->sku]['images'] as $i) {
                    $a = new SoapProductAttachment();
                    $a->path = $i['path'];
                    $a->explicit = $i['explicit'];
                    $a->primaryAttachment = $i['primary'];
                    $p->attachments[] = $a;
                }
            }

            try {
                $this->_soapClient->updateProducts(array('products' => $list));
            } catch (SoapFault $fault) {
                $output->writeln("REQUEST:\n" . $this->_soapClient->__getLastRequest());
                $output->writeln("Couldn't submit webservice call " . $fault->getMessage());
            }

            $output->writeln("Loaded {$limit} items, total {$next}");

            $offset += $limit;
            $next = $offset + $limit;
        }

        curl_close($ch);
    }

    public function loadFromErp(OutputInterface $output) {

        $query = "FOR EACH item NO-LOCK WHERE "
                . "item.company_it = '{$this->_erp->getCompany()}' AND item.web_item = yes, "
                . "EACH wa_item NO-LOCK WHERE "
                . "wa_item.company_it = item.company_it AND wa_item.item = item.item";

        $fields = "item.item,item.manufacturer,item.product_line,item.descr,item.date_added,wa_item.qty_oh,wa_item.list_price,item.upc1";

        $batch = 0;
        $batchSize = 1000;

        $manufacturers = array();
        foreach ($this->_soapClient->findAllManufacturers() as $x) {
            if (is_array($x->manufacturer)) {
                foreach ($x->manufacturer as $m) {
                    $manufacturers[$m->code] = $m;
                }
            } else {
                $manufacturers[$x->manufacturer->code] = $x->manufacturer;
            }
        }

        $types = array();
        foreach ($this->_soapClient->findAllProductTypes() as $x) {
            if (is_array($x->productType)) {
                foreach ($x->productType as $t) {
                    $types[$t->code] = $t;
                }
            } else {
                $types[$x->productType->code] = $x->productType;
            }
        }

        do {

            $result = $this->_erp->read($query, $fields, $batch, $batchSize);

            $skus = array();
            $productData = array();

            $products = array();

            foreach ($result as $item) {

                $releaseDate = new DateTime($item->item_date_added);

                $skus[] = $item->item_item;
                $productData[$item->item_item]['sku'] = $item->item_item;
                $productData[$item->item_item]['name'] = implode(" ", $item->item_descr);
                $productData[$item->item_item]['price'] = $item->wa_item_list_price;
                $productData[$item->item_item]['stockQuantity'] = $item->wa_item_qty_oh;
                $productData[$item->item_item]['releaseDate'] = $releaseDate->format('Y-m-d');
                $productData[$item->item_item]['barcode'] = $item->item_upc1;
                $productData[$item->item_item]['manufacturerCode'] = $item->item_manufacturer;
                $productData[$item->item_item]['productTypeCode'] = $item->item_product_line;
            }

            $existingData = $this->_soapClient->findProducts(array('skus' => $skus));

            $list = array();

            if (isset($existingData->products->product) && is_array($existingData->products->product)) {
                $list = $existingData->products->product;
            } else {
                $list = $existingData->products;
            }

            foreach ($list as $e) {

                $e->name = $productData[$e->sku]['name'];
                $e->price = $productData[$e->sku]['price'];
                $e->stockQuantity = $productData[$e->sku]['stockQuantity'];
                $e->releaseDate = $productData[$e->sku]['releaseDate'];
                $e->barcode = $productData[$e->sku]['barcode'];

                if (array_key_exists($productData[$e->sku]['manufacturerCode'], $manufacturers)) {
                    $e->manufacturer = clone $manufacturers[$productData[$e->sku]['manufacturerCode']];
                } else {
                    $newm = new SoapManufacturer();
                    $newm->code = $productData[$e->sku]['manufacturerCode'];
                    $newm->name = $productData[$e->sku]['manufacturerCode'];
                    $e->manufacturer = $newm;
                }

                if (array_key_exists($productData[$e->sku]['productTypeCode'], $types)) {
                    $e->productType = clone $types[$productData[$e->sku]['productTypeCode']];
                } else {
                    $newpt = new SoapProductType();
                    $newpt->code = $productData[$e->sku]['productTypeCode'];
                    $newpt->name = $productData[$e->sku]['productTypeCode'];
                    $e->productType = $newpt;
                }

                $products[] = $e;

                unset($productData[$e->sku]);
            }

            foreach ($productData as $d) {

                $p = new SoapProduct();
                $p->sku = $d['sku'];
                $p->name = $d['name'];
                $p->price = $d['price'];
                $p->stockQuantity = $d['stockQuantity'];
                $p->releaseDate = $d['releaseDate'];
                $p->barcode = $d['barcode'];

                if (array_key_exists($d['manufacturerCode'], $manufacturers)) {
                    $p->manufacturer = $manufacturers[$d['manufacturerCode']];
                } else {
                    $newm = new SoapManufacturer();
                    $newm->code = $d['manufacturerCode'];
                    $newm->name = $d['manufacturerCode'];
                    $p->manufacturer = $newm;
                }

                if (array_key_exists($d['productTypeCode'], $types)) {
                    $p->productType = $types[$d['productTypeCode']];
                } else {
                    $newpt = new SoapProductType();
                    $newpt->code = $d['productTypeCode'];
                    $newpt->name = $d['productTypeCode'];
                    $p->productType = $newpt;
                }

                $products[] = $p;
            }

            try {
                $this->_soapClient->updateProducts(array('products' => $products));
            } catch (SoapFault $fault) {
                $output->writeln("REQUEST:\n" . $this->_soapClient->__getLastRequest());
                $output->writeln("Couldn't submit webservice call " . $fault->getMessage());
            }

            $batch += $batchSize;

            $output->writeln("Loaded {$batchSize} items, total {$batch}");
        } while (!empty($result));
    }

}


text:
module Marmot
  class OptionsSanitizer
    OPTIONS = {
      :id                   => [:string, ""],
      :mode                 => [:radio, "optimal", "basic", "expert"],
      :formats              => [:array, "ttf", "woff", "woff2", "svg", "eotz", "eot"],
      :tt_instructor        => [:radio, "default", "keep"],
      :fix_vertical_metrics => [:checkbox, "Y"],
      :fix_gasp             => [:checkbox, "xy"],
      :remove_kerning       => [:checkbox, nil, "Y"],
      :add_spaces           => [:checkbox, "Y"],
      :add_hyphens          => [:checkbox, "Y"],
      :fallback             => [:radio, "none", "arial", "verdana", "trebuchet", "georgia", "times", "courier", "custom"],
      :fallback_custom      => [:number, 100],
      :webonly              => [:checkbox, nil, "Y"],
      :options_subset       => [:radio, "basic", "advanced", "none"],
      :subset_range         => [:array, "macroman", "lowercase", "uppercase", "numbers", "punctuation", "currency",
                                        "typographics", "math", "altpunctuation", "accentedlower", "accentedupper",
                                        "diacriticals", "albanian", "bosnian", "catalan", "croatian", "cyrillic",
                                        "czech", "danish", "dutch", "english", "esperanto", "estonian", "faroese",
                                        "french", "german", "greek", "hebrew", "hungarian", "icelandic", "italian",
                                        "latvian", "lithuanian", "malagasy", "maltese", "norwegian", "polish",
                                        "portuguese", "romanian", "serbian", "slovak", "slovenian", "spanish",
                                        "swedish", "turkish", "ubasic", "ulatin1", "ucurrency", "upunctuation",
                                        "ulatina", "ulatinb", "ulatinaddl"],
      :subset_custom        => [:string, ""],
      :subset_custom_range  => [:string, ""],
      :base64               => [:checkbox, nil, "Y"],
      :style_link           => [:checkbox, nil, "Y"],
      :css_stylesheet       => [:string, "stylesheet.css"],
      :ot_features          => [:array, "onum", "lnum", "tnum", "pnum", "zero", "ss01", "ss02", "ss03", "ss04", "ss05"],
      :filename_suffix      => [:string, "-webfont"],
      :emsquare             => [:number, 2048],
      :spacing_adjustment   => [:number, 0],
      :agreement            => [:checkbox, "Y"]
    }

    NON_EXPERT_OPTIONS = [:id, :agreement, :mode]
    SUBSET_OPTIONS     = [:subset_range, :subset_custom, :subset_custom_range]

    #{:fix_vertical_metrics=>false, :fix_gasp=>false, :remove_kerning=>false, :add_spaces=>false, :add_hyphens=>false, :webonly=>false, :base64=>false, :style_link=>false, :agreement=>false}
    FALSE_CHECKBOXES   = Hash[OPTIONS.collect{|k,v| [k,false] if v[0] == :checkbox }.compact]

    # Sanitize options
    def self.sanitize options, custom_options={}
      options = options.clone
      custom_options ||= {}
      result = {}
      OPTIONS.each_pair do |key,array|
        type = array[0]
        allowed_values = array[1..999]
        user_value = options[key].nil? ? options[key.to_s] : options[key]

        if !user_value.nil? && OPTIONS.has_key?(key) && !NON_EXPERT_OPTIONS.include?(key)
          options[:mode] = result[:mode] = "expert" if options[:mode].nil?
        end

        if !user_value.nil? && OPTIONS.has_key?(key) && SUBSET_OPTIONS.include?(key)
          options[:options_subset] = result[:options_subset] = "advanced" if options[:options_subset].nil?
        end

        case type
        when :array
          if !user_value.kind_of?(Array)
            if user_value.kind_of?(String)
              user_value = user_value.split(",").map{|v| v.strip}
            else
              user_value = [user_value]
            end
          end

          user_value = user_value.delete_if {|val| !allowed_values.include? val }

          result[key] = user_value unless user_value.empty?
        when :number
          result[key] = (user_value || allowed_values[0]).to_i
        when :string
          result[key] = user_value || allowed_values[0]
        when :checkbox
          if user_value == true
            result[key] = allowed_values.last
          elsif user_value == false
            #nil
          else
            result[key] = allowed_values.include?(user_value) ? (user_value) : (allowed_values[0])
          end
        when :radio
          result[key] = allowed_values.include?(user_value) ? (user_value) : (allowed_values[0])
        end
      end

      result[:formats] = ["ttf", "woff", "svg", "eotz"] if result[:formats].nil?
      result[:dirname] = [result[:id]]
      result.merge!(custom_options).delete_if { |k, v| v.nil? }
    end

  end
end


text:
function D = compute_distance_graph(W, point_list)

% compute the distance between each point on a graph
%
%   D = compute_distance_graph(W, point_list);
%
%   Uses either 'perform_dijkstra_fast' or 'perform_dijkstra' mex code
%   (depending on which is available).
%
%   D(i,j) is the geodesic graph distance between vertex point_list(i) and
%   vertex j.
%
%   Copyright (c) 2006 Gabriel Peyr?

n = size(W,1); % number of points in the graph
if nargin<2
    point_list = 1:n;
end

%% use the fastest code available
if exist('perform_dijkstra_fast')==3
	D = perform_dijkstra_fast(W, point_list);
    return;
end

%% use slow mex code
W = full(W);

D = zeros(length(point_list),n);
hh = waitbar(0,['Computing distances.']);
for i=1:length(point_list)
    waitbar( i/length(point_list) ,hh);
    warning off;
    [d,S] = perform_dijkstra(W, point_list(i));
    warning on;
    D(i,:) = d(:)';
end
close(hh);

% symmetrize
if length(point_list)==n
    D = (D+D')/2;
end


text: Yeoman, Marionette.js


text:
using namespace noise;
using namespace ark::plugin::noise;

namespace ark {
namespace plugin {
namespace noise {

namespace {

}

}
}
}

int sky (CommandLineOptions& options)
{
  // This texture map is made up two layers.  The bottom layer is a wavy water
  // texture.  The top layer is a cloud texture.  These two layers are
  // combined together to create the final texture map.

  // Lower layer: water texture
  // --------------------------

  // Base of the water texture.  The Voronoi polygons generate the waves.  At
  // the center of the polygons, the values are at their lowest.  At the edges
  // of the polygons, the values are at their highest.  The values smoothly
  // change between the center and the edges of the polygons, producing a
  // wave-like effect.
  module::Voronoi baseWater;
  baseWater.SetSeed (0);
  baseWater.SetFrequency (8.0);
  baseWater.EnableDistance (true);
  baseWater.SetDisplacement (0.0);

  // Stretch the waves along the z axis.
  module::ScalePoint baseStretchedWater;
  baseStretchedWater.SetSourceModule (0, baseWater);
  baseStretchedWater.SetScale (1.0, 1.0, 3.0);

  // Smoothly perturb the water texture for more realism.
  module::Turbulence finalWater;
  finalWater.SetSourceModule (0, baseStretchedWater);
  finalWater.SetSeed (1);
  finalWater.SetFrequency (8.0);
  finalWater.SetPower (1.0 / 32.0);
  finalWater.SetRoughness (1);

  // Upper layer: cloud texture
  // --------------------------

  // Base of the cloud texture.  The billowy noise produces the basic shape
  // of soft, fluffy clouds.
  module::Billow cloudBase;
  cloudBase.SetSeed (2);
  cloudBase.SetFrequency (2.0);
  cloudBase.SetPersistence (0.375);
  cloudBase.SetLacunarity (2.12109375);
  cloudBase.SetOctaveCount (4);
  cloudBase.SetNoiseQuality (QUALITY_BEST);

  // Perturb the cloud texture for more realism.
  module::Turbulence finalClouds;
  finalClouds.SetSourceModule (0, cloudBase);
  finalClouds.SetSeed (3);
  finalClouds.SetFrequency (16.0);
  finalClouds.SetPower (1.0 / 64.0);
  finalClouds.SetRoughness (2);

  // Given the water and cloud noise modules, create a non-seamless texture
  // map, a seamless texture map, and a spherical texture map.

  return 0;
}

void CreateTextureColorLayer1 (utils::RendererImage& renderer)
{
  // Create a water palette with varying shades of blue.
  renderer.ClearGradient ();
  renderer.AddGradientPoint (-1.00, utils::Color ( 48,  64, 192, 255));
  renderer.AddGradientPoint ( 0.50, utils::Color ( 96, 192, 255, 255));
  renderer.AddGradientPoint ( 1.00, utils::Color (255, 255, 255, 255));
}

void CreateTextureColorLayer2 (utils::RendererImage& renderer)
{
  // Create an entirely white palette with varying alpha (transparency) values
  // for the clouds.  These transparent values allows the water to show
  // through.
  renderer.ClearGradient ();
  renderer.AddGradientPoint (-1.00, utils::Color (255, 255, 255,   0));
  renderer.AddGradientPoint (-0.50, utils::Color (255, 255, 255,   0));
  renderer.AddGradientPoint ( 1.00, utils::Color (255, 255, 255, 255));
}

void CreatePlanarTexture (const module::Module& lowerNoiseModule,
  const module::Module& upperNoiseModule, bool seamless, int height,
  const char* filename)
{
  // Map the output values from both noise module onto two planes.  This will
  // create two two-dimensional noise maps which can be rendered as two flat
  // texture maps.
  utils::NoiseMapBuilderPlane plane;
  utils::NoiseMap lowerNoiseMap;
  utils::NoiseMap upperNoiseMap;
  plane.SetBounds (-1.0, 1.0, -1.0, 1.0);
  plane.SetDestSize (height, height);
  plane.EnableSeamless (seamless);

  // Generate the lower noise map.
  plane.SetSourceModule (lowerNoiseModule);
  plane.SetDestNoiseMap (lowerNoiseMap);
  plane.Build ();

  // Generate the upper noise map.
  plane.SetSourceModule (upperNoiseModule);
  plane.SetDestNoiseMap (upperNoiseMap);
  plane.Build ();

  // Given these two noise maps, render the lower texture map, then render the
  // upper texture map on top of the lower texture map.
//  RenderTexture (lowerNoiseMap, upperNoiseMap, filename);
}

void CreateSphericalTexture (const module::Module& lowerNoiseModule,
  const module::Module& upperNoiseModule, int height, const char* filename)
{
  // Map the output values from both noise module onto two spheres.  This will
  // create two two-dimensional noise maps which can be rendered as two
  // spherical texture maps.
  utils::NoiseMapBuilderSphere sphere;
  utils::NoiseMap lowerNoiseMap;
  utils::NoiseMap upperNoiseMap;
  sphere.SetBounds (-90.0, 90.0, -180.0, 180.0); // degrees
  sphere.SetDestSize (height * 2, height);

  // Generate the lower noise map.
  sphere.SetSourceModule (lowerNoiseModule);
  sphere.SetDestNoiseMap (lowerNoiseMap);
  sphere.Build ();

  // Generate the upper noise map.
  sphere.SetSourceModule (upperNoiseModule);
  sphere.SetDestNoiseMap (upperNoiseMap);
  sphere.Build ();

  // Given these two noise maps, render the lower texture map, then render the
  // upper texture map on top of the lower texture map.
//  RenderTexture (lowerNoiseMap, upperNoiseMap, filename);
}

void RenderTexture (const utils::NoiseMap& lowerNoiseMap,
  const utils::NoiseMap& upperNoiseMap, const char* filename)
{
  // Create the color gradients for the lower texture.
  utils::RendererImage textureRenderer;
  CreateTextureColorLayer1 (textureRenderer);

  // Set up us the texture renderer and pass the lower noise map to it.
  utils::Image destTexture;
  textureRenderer.SetSourceNoiseMap (lowerNoiseMap);
  textureRenderer.SetDestImage (destTexture);
  textureRenderer.EnableLight (true);
  textureRenderer.SetLightAzimuth (135.0);
  textureRenderer.SetLightElev (60.0);
  textureRenderer.SetLightContrast (2.0);
  textureRenderer.SetLightColor (utils::Color (255, 255, 255, 0));

  // Render the texture.
  textureRenderer.Render ();

  // Create the color gradients for the upper texture.
  CreateTextureColorLayer2 (textureRenderer);

  // Set up us the texture renderer and pass the upper noise map to it.  Also
  // use the lower texture map as a background so that the upper texture map
  // can be rendered on top of the lower texture map.
  textureRenderer.SetSourceNoiseMap (upperNoiseMap);
  textureRenderer.SetBackgroundImage (destTexture);
  textureRenderer.SetDestImage (destTexture);
  textureRenderer.EnableLight (false);

  // Render the texture.
  textureRenderer.Render ();

  // Write the texture as a Windows bitmap file (*.bmp).
  utils::WriterBMP textureWriter;
  textureWriter.SetSourceImage (destTexture);
  textureWriter.SetDestFilename (filename);
  textureWriter.WriteDestFile ();
}


text:
import {InputBindingEvents} from '../../../common/binding/input';
import {Emitter} from '../../../common/model/emitter';
import {forceCast} from '../../../misc/type-util';
import {BladeApi} from '../../common/api/blade';
import {TpChangeEvent} from '../../common/api/tp-event';
import {InputBindingController} from '../controller/input-binding';

export interface InputBindingApiEvents<Ex> {
	change: {
		event: TpChangeEvent<Ex>;
	};
}

/**
 * The API for the input binding between the parameter and the pane.
 * @template In The internal type.
 * @template Ex The external type (= parameter object).
 */
export class InputBindingApi<In, Ex> extends BladeApi<
	InputBindingController<In>
> {
	private readonly emitter_: Emitter<InputBindingApiEvents<Ex>>;

	/**
	 * @hidden
	 */
	constructor(controller: InputBindingController<In>) {
		super(controller);

		this.onBindingChange_ = this.onBindingChange_.bind(this);

		this.emitter_ = new Emitter();

		this.controller_.binding.emitter.on('change', this.onBindingChange_);
	}

	get label(): string | undefined {
		return this.controller_.props.get('label');
	}

	set label(label: string | undefined) {
		this.controller_.props.set('label', label);
	}

	public on<EventName extends keyof InputBindingApiEvents<Ex>>(
		eventName: EventName,
		handler: (ev: InputBindingApiEvents<Ex>[EventName]['event']) => void,
	): InputBindingApi<In, Ex> {
		const bh = handler.bind(this);
		this.emitter_.on(eventName, (ev) => {
			bh(ev.event);
		});
		return this;
	}

	public refresh(): void {
		this.controller_.binding.read();
	}

	private onBindingChange_(ev: InputBindingEvents<In>['change']) {
		const value = ev.sender.target.read();
		this.emitter_.emit('change', {
			event: new TpChangeEvent(
				this,
				forceCast(value),
				this.controller_.binding.target.presetKey,
				ev.options.last,
			),
		});
	}
}


text:
import base
from models.person import Person
from django.utils import simplejson

class CirclesHandler(base.BaseController):
  def show(self, circle):
    people = None
    if circle == '*':
      people = Person.get(self.account.people)
    else:
      people = self.account.people_in(circle)
    people = map(
                 lambda person: dict(key=str(person.key()),
                                     name=person.name,
                                     identifiers=person.identifiers,
                                     circles=person.circles),
                 people)
    self.write(simplejson.dumps(dict(people=people)));


text:
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;

namespace SQLgNerator.sqlCURD.Shell
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application
    {
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            // create the bootstrapper to start the application.
            ApplicaitionBootStrapper bootstrapper = new ApplicaitionBootStrapper();
            bootstrapper.Run();
        }
    }
}


text:
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android" >

    <item android:state_checked="true" android:color="#0eb290" ></item>
	<item android:color="#000"></item>
</selector>


text:
require 'test_helper'

class CustomizingNameTest < ActiveSupport::TestCase
  # test "the truth" do
  #   assert true
  # end
end


text:
using System;
using System.Collections.Generic;
using System.Security.Claims;

namespace LearnWordsFast.Infrastructure
{
    public static class Extensions
    {
        private static readonly Random Random = new Random();

        public static Guid GetId(this ClaimsPrincipal user)
        {
            return Guid.Parse(user.GetUserId());
        }

        public static IList<T> Shuffle<T>(this IList<T> list)
        {
            int n = list.Count;
            while (n > 1)
            {
                n--;
                int k = Random.Next(n + 1);
                T value = list[k];
                list[k] = list[n];
                list[n] = value;
            }

            return list;
        }
    }
}


text:
ul.thumbnails.image_picker_selector {
overflow: auto;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
padding: 0px;
margin: 0px;
}

ul.thumbnails.image_picker_selector ul {
overflow: auto;
list-style-image: none;
list-style-position: outside;
list-style-type: none;
padding: 0px;
margin: 0px;
}

ul.thumbnails.image_picker_selector li.group_title {
float: none;
}

ul.thumbnails.image_picker_selector li {
margin: 0px 12px 12px 0px;
float: left;
}

ul.thumbnails.image_picker_selector li .thumbnail {
padding: 4px;
border: 1px solid #dddddd;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
}
ul.thumbnails.image_picker_selector li .thumbnail img {
-webkit-user-drag: none;
}

ul.thumbnails.image_picker_selector li .thumbnail.selected {
background: #0088cc;
}

.picker .thumbnail{
margin-bottom: 0;
display: block;
padding: 4px;
line-height: 20px;
border: 1px solid #ddd;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
-moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055);
-webkit-transition: all 0.2s ease-in-out;
-moz-transition: all 0.2s ease-in-out;
-o-transition: all 0.2s ease-in-out;
transition: all 0.2s ease-in-out;
}
.picker .thumbnail img{
    width: 32px;
    height: 32px;
}
ul.thumbnails p {
margin: 0;
}


text:
package ninchat

import (
	"time"
)

type duration time.Duration

const (
	second      = duration(time.Second)
	millisecond = duration(time.Millisecond)
)

type timeTime time.Time

func timeNow() timeTime {
	return timeTime(time.Now())
}

func timeAdd(t timeTime, d duration) timeTime {
	return timeTime(time.Time(t).Add(time.Duration(d)))
}

func timeSub(t1, t2 timeTime) duration {
	return duration(time.Time(t1).Sub(time.Time(t2)))
}

type timer struct {
	C <-chan time.Time

	impl *time.Timer
}

func newTimer(timeout duration) *timer {
	impl := time.NewTimer(time.Duration(timeout))

	return &timer{
		C:    impl.C,
		impl: impl,
	}
}

func (timer *timer) Active() bool {
	return timer.impl != nil
}

func (timer *timer) Reset(timeout duration) {
	timer.impl.Reset(time.Duration(timeout))
}

func (timer *timer) Stop() {
	timer.impl.Stop()
	timer.impl = nil
}