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

ReportCannotConvert() public static method

public static ReportCannotConvert ( this diagnostics, TextSpan span, TypeSymbol sourceType, TypeSymbol targetType ) : void
diagnostics this
span TextSpan
sourceType ShaderTools.Hlsl.Symbols.TypeSymbol
targetType ShaderTools.Hlsl.Symbols.TypeSymbol
return void
        public static void ReportCannotConvert(this ICollection<Diagnostic> diagnostics, TextSpan span, TypeSymbol sourceType, TypeSymbol targetType)
        {
            var sourceTypeName = sourceType.ToDisplayName();
            var targetTypeName = targetType.ToDisplayName();
            diagnostics.Report(span, DiagnosticId.CannotConvert, sourceTypeName, targetTypeName);
        }