public OperationMetaData <IN> GetOperation(IN token = default(IN)) { if (IsExpressionRule) { OperationMetaData <IN> operation = VisitorMethodsForOperation.ContainsKey(token) ? VisitorMethodsForOperation[token] : null; return(operation); } return(null); }
public MethodInfo GetVisitor(IN token = default(IN)) { MethodInfo visitor = null; if (IsExpressionRule) { OperationMetaData <IN> operation = VisitorMethodsForOperation.ContainsKey(token) ? VisitorMethodsForOperation[token] : null; visitor = operation?.VisitorMethod; } else { visitor = Visitor; } return(visitor); }
public void SetVisitor(OperationMetaData <IN> operation) { VisitorMethodsForOperation[operation.OperatorToken] = operation; }