package dyvil.tools.compiler.ast.statement;

import dyvil.tools.compiler.ast.context.IContext;
import dyvil.tools.compiler.ast.expression.IValue;
import dyvil.tools.compiler.ast.generic.ITypeContext;
import dyvil.tools.compiler.ast.type.IType;
import dyvil.tools.compiler.lexer.marker.MarkerList;
import dyvil.tools.compiler.lexer.position.ICodePosition;

public class AppliedStatementList extends StatementList
{
	public AppliedStatementList()
	{
	}
	
	public AppliedStatementList(ICodePosition position)
	{
		this.position = position;
	}
	
	@Override
	public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context)
	{
		super.resolve(markers, context);
		
		return super.withType(type, typeContext, markers, context);
	}
	
	@Override
	public IValue resolve(MarkerList markers, IContext context)
	{
		// Values are resolved in withType
		return this;
	}
}

@@ -70,821 +70,218 @@
 ler.
-ast.context.IContext;%0Aimport dyvil.tools.compiler.ast.expression.IValue;%0Aimport dyvil.tools.compiler.ast.generic.ITypeContext;%0Aimport dyvil.tools.compiler.ast.type.IType;%0Aimport dyvil.tools.compiler.lexer.marker.MarkerList;%0Aimport dyvil.tools.compiler.lexer.position.ICodePosition;%0A%0Apublic class AppliedStatementList extends StatementList%0A%7B%0A%09public AppliedStatementList()%0A%09%7B%0A%09%7D%0A%09%0A%09public AppliedStatementList(ICodePosition position)%0A%09%7B%0A%09%09this.position = position;%0A%09%7D%0A%09%0A%09@Override%0A%09public IValue withType(IType type, ITypeContext typeContext, MarkerList markers, IContext context)%0A%09%7B%0A%09%09super.resolve(markers, context);%0A%09%09%0A%09%09return super.withType(type, typeContext, markers, context);%0A%09%7D%0A%09%0A%09@Override%0A%09public IValue resolve(MarkerList markers, IContext context)%0A%09%7B%0A%09%09// Values are resolved in withType%0A%09%09return this
+lexer.position.ICodePosition;%0A%0Apublic class AppliedStatementList extends StatementList%0A%7B%0A%09public AppliedStatementList()%0A%09%7B%0A%09%7D%0A%09%0A%09public AppliedStatementList(ICodePosition position)%0A%09%7B%0A%09%09this.position = position
 ;%0A%09%7D

Fix Applied Statement Lists