// Generated by Haxe 4.3.3
package transform;

import haxe.root.*;

@SuppressWarnings(value={"rawtypes", "unchecked"})
public class DiagramToMLD_subsetsToParent_197__Fun extends haxe.lang.Function
{
	public DiagramToMLD_subsetsToParent_197__Fun(model.Relation pr)
	{
		//line 197 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		super(1, 0);
		//line 197 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		this.pr = pr;
	}
	
	
	@Override public java.lang.Object __hx_invoke1_o(double __fn_float1, java.lang.Object __fn_dyn1)
	{
		//line 197 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		model.Field f = ( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (((model.Field) (((java.lang.Object) (__fn_float1) )) )) : (((model.Field) (__fn_dyn1) )) );
		//line 197 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		if (( this.pr.key.indexOf(f.name, null) == -1 )) 
		{
			//line 197 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
			this.pr.fields.push(f);
		}
		
		//line 197 "/home/frank/Documents/Developpements/dbconcept-0.5.1/src/transform/DiagramToMLD.hx"
		return null;
	}
	
	
	public model.Relation pr;
	
}


