Bind unary operators

This commit is contained in:
2018-11-11 19:56:53 +01:00
parent 4e331712a8
commit 82dff87d4d
9 changed files with 119 additions and 23 deletions

View File

@@ -45,10 +45,16 @@ namespace Upsilon
LogError($"Unknown Type found", eSpan);
}
public void LogUnknownOperator(TextSpan eSpan, SyntaxKind text, Type leftType, Type rightType)
public void LogUnknownBinaryOperator(TextSpan eSpan, SyntaxKind text, Type leftType, Type rightType)
{
LogError($"No binary operator {text} found for types '{leftType}' and '{rightType}'", eSpan);
}
public void LogUnknownUnaryOperator(TextSpan eSpan, SyntaxKind text, Type inType)
{
LogError($"No unary operator {text} found for type '{inType}'", eSpan);
}
}
public class DiagnosticsMessage