26 references to TryGetSpeculativeSemanticModelForMethodBody
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
125
return model.
TryGetSpeculativeSemanticModelForMethodBody
(oldMethod.Body.OpenBraceToken.Span.End, newMethod, out speculativeModel);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Semantics\OutVarTests.cs (6)
36364
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
36410
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
36450
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
36492
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
36527
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
36565
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Semantics\LambdaTests.cs (2)
3988
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(m.Body.SpanStart, m, out model));
8086
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(m2Syntax.Body.SpanStart, newMethod, out var speculativeModel));
Semantics\LocalFunctionTests.cs (4)
351
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(m.Body.SpanStart, m, out model));
407
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(m.Body.SpanStart, m, out model));
446
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(mMethod.Body.SpanStart, mMethod, out var newModel));
8740
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(method.Body.SpanStart, method, out var speculativeModel));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Compilation\SemanticModelAPITests.cs (8)
49
model.
TryGetSpeculativeSemanticModelForMethodBody
(indexerAccess.SpanStart, m2, out var speculativeModel);
2356
var success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2571
var success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2586
success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2600
success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2643
var success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
2679
var success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].Span.End, speculatedMethod, out speculativeModel);
2779
var success = model.
TryGetSpeculativeSemanticModelForMethodBody
(methodDecl.Body.Statements[0].SpanStart, speculatedMethod, out speculativeModel);
SymbolDisplay\SymbolDisplayTests.cs (1)
6073
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(position, methodDecl, out model));
Symbols\Source\NullablePublicAPITests.cs (2)
4518
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(type.SpanStart, methodDeclaration, out var speculativeModel));
4551
Assert.True(model.
TryGetSpeculativeSemanticModelForMethodBody
(type.SpanStart, methodDeclaration, out var speculativeModel));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
SemanticModelReuse\CSharpSemanticModelReuseLanguageService.cs (1)
60
previousSemanticModel.
TryGetSpeculativeSemanticModelForMethodBody
(previousBaseMethod.Body.SpanStart, currentBaseMethod, out var speculativeModel))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (1)
125
return model.
TryGetSpeculativeSemanticModelForMethodBody
(oldMethod.Body.OpenBraceToken.Span.End, newMethod, out speculativeModel);