Exemplo n.º 1
0
 public InvalidOperationException(OperationNode op, StatementNode operand1, StatementNode operand2, params string[] expected)
     : base($"{op.Token.Location} : Cannot apply operator '{op.Representation} to operands of type '{operand1.GetFriendlyName()}' and '{operand2.GetFriendlyName()}'."
            + $"'{op.Representation}' can only be applied to operand of type '{String.Join("', or '", new List<string>(expected))}'")
 {
 }
Exemplo n.º 2
0
 public InvalidOperationException(OperationNode op, StatementNode operand1, StatementNode operand2)
     : base($"{op.Token.Location} : Cannot apply operator '{op.Representation} to operands of type '{operand1.GetFriendlyName()}' and '{operand2.GetFriendlyName()}'.")
 {
 }