private ParseInfo(ParseInfo other) { Script = other.Script; TranslateInfo = other.TranslateInfo; CurrentCallInfo = other.CurrentCallInfo; BreakHandler = other.BreakHandler; ContinueHandler = other.ContinueHandler; // SourceExpression = other.SourceExpression; TODO: Should this be here? RestrictedCallHandler = other.RestrictedCallHandler; }
public ParseInfo SetRestrictedCallHandler(IRestrictedCallHandler callHandler) => new ParseInfo(this) { RestrictedCallHandler = callHandler };
public MacroVarRestrictedCallHandler(MacroVar macroVar, IRestrictedCallHandler callHandler, Location callLocation) { _macroVar = macroVar; _callHandler = callHandler; _callLocation = callLocation; }