ShaderTools.Hlsl.Diagnostics.DiagnosticExtensions.ReportCannotApplyBinaryOperator C# (CSharp) Method

ReportCannotApplyBinaryOperator() public static method

public static ReportCannotApplyBinaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol leftType, TypeSymbol rightType ) : void
diagnostics this
operatorToken SyntaxToken
leftType ShaderTools.Hlsl.Symbols.TypeSymbol
rightType ShaderTools.Hlsl.Symbols.TypeSymbol
return void
        public static void ReportCannotApplyBinaryOperator(this ICollection<Diagnostic> diagnostics, SyntaxToken operatorToken, TypeSymbol leftType, TypeSymbol rightType)
        {
            var operatorName = operatorToken.Text;
            var leftTypeName = leftType.ToDisplayName();
            var rightTypeName = rightType.ToDisplayName();
            diagnostics.Report(operatorToken.Span, DiagnosticId.CannotApplyBinaryOperator, operatorName, leftTypeName, rightTypeName);
        }