13 references to GetSpeculativeTypeInfo
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Semantics\PrimaryConstructorTests.cs (6)
2216
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
2217
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(tree.GetRoot().DescendantNodes().OfType<ConstructorInitializerSyntax>().Single().ArgumentList.OpenParenToken.SpanStart,
2252
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
2355
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
2356
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(tree.GetRoot().DescendantNodes().OfType<ConstructorInitializerSyntax>().Single().ArgumentList.OpenParenToken.SpanStart,
2391
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
Semantics\RecordTests.cs (6)
22373
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
22374
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(tree.GetRoot().DescendantNodes().OfType<ConstructorInitializerSyntax>().Single().ArgumentList.OpenParenToken.SpanStart,
22409
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
22512
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
22513
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(tree.GetRoot().DescendantNodes().OfType<ConstructorInitializerSyntax>().Single().ArgumentList.OpenParenToken.SpanStart,
22548
Assert.Equal(TypeInfo.None, model.
GetSpeculativeTypeInfo
(baseWithargs.ArgumentList.OpenParenToken.SpanStart, (SyntaxNode)speculativePrimaryInitializer, SpeculativeBindingOption.BindAsExpression));
Microsoft.CodeAnalysis.Features (1)
Snippets\SnippetProviders\AbstractInlineStatementSnippetProvider.cs (1)
156
var typeInfo = semanticModel.
GetSpeculativeTypeInfo
(expression.SpanStart, expression, SpeculativeBindingOption.BindAsExpression);