示例#1
0
 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));
     }
 }
示例#2
0
 private AliasStatement /*!*/ MakeGlobalAlias(RegexMatchReference /*!*/ newVar, string /*!*/ existingVar, SourceSpan location)
 {
     return(new AliasStatement(false, newVar.VariableName, existingVar, location));
 }
示例#3
0
 private void MatchReferenceReadOnlyError(RegexMatchReference /*!*/ matchRef)
 {
     Tokenizer.ReportError(Errors.MatchGroupReferenceReadOnly, matchRef.VariableName);
 }