14 references to TryEnqueue
Microsoft.CodeAnalysis (2)
Compilation\Compilation.cs (1)
1802EventQueue.TryEnqueue(new CompilationCompletedEvent(this));
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
1138eventQueue.TryEnqueue(compilationEvent);
Microsoft.CodeAnalysis.CSharp (4)
Compilation\CSharpCompilation.cs (3)
502if (EventQueue != null) EventQueue.TryEnqueue(new CompilationStartedEvent(this)); 2364EventQueue?.TryEnqueue(new CompilationUnitCompletedEvent(this, tree)); 4448EventQueue?.TryEnqueue(new SymbolDeclaredCompilationEvent(this, symbol.GetPublicSymbol()));
Compiler\MethodCompiler.cs (1)
1186_compilation.EventQueue.TryEnqueue(new SymbolDeclaredCompilationEvent(_compilation, methodSymbol.GetPublicSymbol(), semanticModelWithCachedBoundNodes));
Microsoft.CodeAnalysis.UnitTests (4)
AsyncQueueTests.cs (4)
45Assert.True(queue.TryEnqueue(42)); 47Assert.False(queue.TryEnqueue(42)); 54Assert.True(queue.TryEnqueue(42)); 58queue.TryEnqueue(42);
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\MethodCompiler.vb (1)
1278compilation.EventQueue.TryEnqueue(New SymbolDeclaredCompilationEvent(compilation, method, semanticModelWithCachedBoundNodes))
Compilation\VisualBasicCompilation.vb (3)
471Me.EventQueue.TryEnqueue(New CompilationStartedEvent(Me)) 1792EventQueue.TryEnqueue(New CompilationUnitCompletedEvent(Me, tree)) 1808EventQueue.TryEnqueue(New SymbolDeclaredCompilationEvent(Me, symbol))