src/Misc/EFTools/EntityDesign/VisualStudio/SingleFileGenerator/BaseCodeGenerator.cs
/// <summary>
///     method that will communicate an error via the shell callback mechanism.
/// </summary>
/// <param name="warning">true if this is a warning</param>
/// <param name="level">level or severity</param>
/// <param name="message">text displayed to the user</param>
/// <param name="line">line number of error/warning</param>
/// <param name="column">column number of error/warning</param>
method that will communicate an error via the shell callback mechanism.
method that will communicate an error via the shell callback mechanism .
[SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "Microsoft.VisualStudio.Shell.Interop.IVsGeneratorProgress.GeneratorError(System.Int32,System.UInt32,System.String,System.UInt32,System.UInt32)")]
        protected virtual void GeneratorErrorCallback(bool warning, int level, string message, int line, int column)
        {
            var progress = CodeGeneratorProgress;
            if (progress != null)
            {
                progress.GeneratorError(warning ? 1 : 0, (uint)level, message, (uint)line, (uint)column);
            }
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] protected virtual void GeneratorErrorCallback ( bool warning , int level , string message , int line , int column ) { var progress = CodeGeneratorProgress ; if ( progress != null ) { progress . GeneratorError ( warning ? 1 : 0 , ( uint ) level , message , ( uint ) line , ( uint ) column ) ; } }
method that will communicate an error via the shell callback mechanism.
method that will communicate an error via the shell callback mechanism .
warning
bool
true if this is a warning
true if this is a warning
level
int
level or severity
level or severity
message
string
text displayed to the user
text displayed to the user
line
int
line number of error/warning
line number of error / warning
column
int
column number of error/warning
column number of error / warning