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

ReportCannotApplyUnaryOperator() public static method

public static ReportCannotApplyUnaryOperator ( this diagnostics, SyntaxToken operatorToken, TypeSymbol type ) : void
diagnostics this
operatorToken SyntaxToken
type ShaderTools.Hlsl.Symbols.TypeSymbol
return void
        public static void ReportCannotApplyUnaryOperator(this ICollection<Diagnostic> diagnostics, SyntaxToken operatorToken, TypeSymbol type)
        {
            var operatorName = operatorToken.Text;
            var typeName = type.ToDisplayName();
            diagnostics.Report(operatorToken.Span, DiagnosticId.CannotApplyUnaryOperator, operatorName, typeName);
        }