ShaderTools.Hlsl.Syntax.SyntaxTree.GetDiagnostics C# (CSharp) Méthode

GetDiagnostics() public méthode

public GetDiagnostics ( ) : IEnumerable
Résultat IEnumerable
        public IEnumerable<Diagnostic> GetDiagnostics()
        {
            return Root.GetDiagnostics();
        }

Usage Example

 public static void CheckForParseErrors(SyntaxTree syntaxTree)
 {
     foreach (var diagnostic in syntaxTree.GetDiagnostics())
         Debug.WriteLine(diagnostic.ToString());
     Assert.That(syntaxTree.GetDiagnostics().Count(), Is.EqualTo(0));
 }