Beispiel #1
0
 public SymbolBase(DiagnosticBag diagnostics)
 {
     _diagnostics    = diagnostics.CreateChildBag(this);
     _allDiagnostics = new Lazy <ImmutableArray <Diagnostic> >(() =>
     {
         _diagnostics.EnsureAllDiagnosticsCollectedForSymbol();
         return(_diagnostics.ToImmutableArray());
     });
 }