public void Apply(ILambdaApplier applier) { if (!RegisterOccursLater) { // The arrow registration occurs now, parse the statement. applier.GetLambdaContent(Type); } else { // Otherwise, add it to the _apply list so we can apply it later. _apply.Add(applier); } }
public void Check() { // If no lambda was expected, throw an error since the parameter types can not be determined. if (ParseInfo.ExpectingLambda == null) { // Parameter data is known. if (ParameterState == ParameterState.CountAndTypesKnown) { Applier.GetLambdaContent(); } else { ParseInfo.Script.Diagnostics.Error(ErrorMessage, Range); } } else { ParseInfo.ExpectingLambda.Apply(Applier); } }