private Expression /*!*/ MakeGlobalAlias(RegexMatchReference /*!*/ newVar, RegexMatchReference /*!*/ existingVar, SourceSpan location) { if (existingVar.CanAlias) { return(new AliasStatement(false, newVar.VariableName, existingVar.VariableName, location)); } else { _tokenizer.ReportError(Errors.CannotAliasGroupMatchVariable); return(new ErrorExpression(location)); } }
private AliasStatement /*!*/ MakeGlobalAlias(RegexMatchReference /*!*/ newVar, string /*!*/ existingVar, SourceSpan location) { return(new AliasStatement(false, newVar.VariableName, existingVar, location)); }
private void MatchReferenceReadOnlyError(RegexMatchReference /*!*/ matchRef) { Tokenizer.ReportError(Errors.MatchGroupReferenceReadOnly, matchRef.VariableName); }