10 references to TryGetSpeculativeSemanticModel
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
146
semanticModel.
TryGetSpeculativeSemanticModel
(position, typeNode, out speculativeModel, bindingOption);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (2)
Semantics\NullableContextTests.cs (1)
2230
Assert.True(model.
TryGetSpeculativeSemanticModel
(typeOf.Type.SpanStart, type, out model, SpeculativeBindingOption.BindAsTypeOrNamespace));
Semantics\NullableReferenceTypesTests.cs (1)
114036
Assert.True(model.
TryGetSpeculativeSemanticModel
(decl.Identifier.SpanStart, type, out model, SpeculativeBindingOption.BindAsTypeOrNamespace));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (6)
Compilation\SemanticModelAPITests.cs (4)
2703
var success = model.
TryGetSpeculativeSemanticModel
(position, speculatedTypeSyntax, out speculativeModel, bindingOption);
2841
model.
TryGetSpeculativeSemanticModel
(baseList.SpanStart, speculatedTypeExpression, out speculativeModel);
2898
var success = model.
TryGetSpeculativeSemanticModel
(fieldDecl.SpanStart, speculatedAliasName, out speculativeModel);
3226
var success = model.
TryGetSpeculativeSemanticModel
(position, typeSyntax, out speculativeModel);
DocumentationComments\CrefTests.cs (1)
6292
var success = model.
TryGetSpeculativeSemanticModel
(crefName.Position, speculatedName, out speculativeModel);
Symbols\Source\NullablePublicAPITests.cs (1)
4244
model.
TryGetSpeculativeSemanticModel
(typeOf.Type.SpanStart, type, out model, SpeculativeBindingOption.BindAsTypeOrNamespace);
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (1)
146
semanticModel.
TryGetSpeculativeSemanticModel
(position, typeNode, out speculativeModel, bindingOption);