// Generated by Haxe 4.3.1
package transform;

import haxe.root.*;

@SuppressWarnings(value={"rawtypes", "unchecked"})
public class DiagramToMLD_transform_17__Fun extends haxe.lang.Function
{
	public DiagramToMLD_transform_17__Fun(haxe.root.Array<java.lang.String> unneeded)
	{
		//line 17 "/home/frank/Documents/Developpements/dbconcept-0.5.0/src/transform/DiagramToMLD.hx"
		super(1, 0);
		//line 17 "/home/frank/Documents/Developpements/dbconcept-0.5.0/src/transform/DiagramToMLD.hx"
		this.unneeded = unneeded;
	}
	
	
	@Override public java.lang.Object __hx_invoke1_o(double __fn_float1, java.lang.Object __fn_dyn1)
	{
		//line 17 "/home/frank/Documents/Developpements/dbconcept-0.5.0/src/transform/DiagramToMLD.hx"
		model.Relation r = ( (( __fn_dyn1 == haxe.lang.Runtime.undefined )) ? (((model.Relation) (((java.lang.Object) (__fn_float1) )) )) : (((model.Relation) (__fn_dyn1) )) );
		//line 17 "/home/frank/Documents/Developpements/dbconcept-0.5.0/src/transform/DiagramToMLD.hx"
		if (( ( r.foreignKeys.length == 0 ) && ( r.key.length == r.fields.length ) )) 
		{
			//line 17 "/home/frank/Documents/Developpements/dbconcept-0.5.0/src/transform/DiagramToMLD.hx"
			this.unneeded.push(r.name);
		}
		
		//line 17 "/home/frank/Documents/Developpements/dbconcept-0.5.0/src/transform/DiagramToMLD.hx"
		return null;
	}
	
	
	public haxe.root.Array<java.lang.String> unneeded;
	
}


