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