42 references to GetEntryPoint
Microsoft.AspNetCore.Analyzers (1)
StartupAnalyzer.cs (1)
39var entryPoint = context.Compilation.GetEntryPoint(context.CancellationToken);
Microsoft.AspNetCore.App.SourceGenerators (1)
PublicTopLevelProgramGenerator.cs (1)
22.Select(static (compilation, cancellationToken) => compilation.GetEntryPoint(cancellationToken))
Microsoft.CodeAnalysis.CodeStyle (1)
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
469var entryPoint = symbolEndContext.Compilation.GetEntryPoint(cancellationToken);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
77var entryPointMethod = semanticModel.Compilation.GetEntryPoint(cancellationToken);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (10)
CodeGen\CodeGenAsyncMainTests.cs (9)
603var entry = compilation.GetEntryPoint(CancellationToken.None); 625var entry = compilation.GetEntryPoint(CancellationToken.None); 714var entry = compilation.GetEntryPoint(CancellationToken.None); 791var entry = compilation.GetEntryPoint(CancellationToken.None); 841var entry = compilation.GetEntryPoint(CancellationToken.None); 885var entry = compilation.GetEntryPoint(CancellationToken.None); 905var entry = compilation.GetEntryPoint(CancellationToken.None); 969var entry = compilation.GetEntryPoint(CancellationToken.None); 989var entry = compilation.GetEntryPoint(CancellationToken.None);
CodeGen\CodeGenFunctionPointersTests.cs (1)
9861var method = comp.GetEntryPoint(System.Threading.CancellationToken.None);
Microsoft.CodeAnalysis.CSharp.Features (1)
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertProgramAnalysis_TopLevelStatements.cs (1)
77var entryPointMethod = semanticModel.Compilation.GetEntryPoint(cancellationToken);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Semantics\TopLevelStatementsTests.cs (4)
49Assert.Same(entryPoint, comp.GetEntryPoint(default)); 9052Assert.Same(entryPoint, comp.GetEntryPoint(default)); 9107Assert.Same(entryPoint, comp.GetEntryPoint(default)); 9149Assert.Same(entryPoint, comp.GetEntryPoint(default));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (7)
Compilation\CompilationAPITests.cs (7)
1641Assert.Equal(mainMethod, compilation.GetEntryPoint(default(CancellationToken))); 1660Assert.Null(compilation.GetEntryPoint(default(CancellationToken))); 1676Assert.Null(compilation.GetEntryPoint(default(CancellationToken))); 1732var entryPoint = compilation.GetEntryPoint(default(CancellationToken)); 1774var method = compilation.GetEntryPoint(default(CancellationToken)); 1818var method = compilation.GetEntryPoint(default(CancellationToken)); 1874Assert.Equal(mainMethod, compilation.GetEntryPoint(default(CancellationToken)));
Microsoft.CodeAnalysis.Features (2)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
1106if (!hasLambdaBodyUpdate && !bodyHasActiveStatement && oldMember == oldCompilation.GetEntryPoint(cancellationToken))
src\Analyzers\Core\Analyzers\RemoveUnusedMembers\AbstractRemoveUnusedMembersDiagnosticAnalyzer.cs (1)
469var entryPoint = symbolEndContext.Compilation.GetEntryPoint(cancellationToken);
Microsoft.CodeAnalysis.Scripting (1)
ScriptBuilder.cs (1)
128var entryPoint = compilation.GetEntryPoint(cancellationToken);
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (6)
Emit\EntryPointTests.vb (6)
1362compilation.GetEntryPoint(Nothing)) 1384compilation.GetEntryPoint(Nothing)) 1406Assert.Null(compilation.GetEntryPoint(Nothing)) 1428Assert.Null(compilation.GetEntryPoint(Nothing)) 1452Assert.Null(compilation.GetEntryPoint(Nothing)) 1479Assert.Null(compilation2.GetEntryPoint(Nothing))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (7)
Compilation\CompilationAPITests.vb (7)
2012Assert.Equal(mainMethod, compilation.GetEntryPoint(Nothing)) 2033Assert.Null(compilation.GetEntryPoint(Nothing)) 2051Assert.Null(compilation.GetEntryPoint(Nothing)) 2104Dim entryPoint = compilation.GetEntryPoint(Nothing) 2143Dim method = compilation.GetEntryPoint(Nothing) 2180Dim method = compilation.GetEntryPoint(Nothing) 2230Assert.Equal(mainMethod, compilation.GetEntryPoint(Nothing))