28 references to SkipRef
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Deconstruct.cs (1)
752
var declType = BindVariableTypeWithAnnotations(component.Designation, diagnostics, component.Type.SkipScoped(out _).
SkipRef
(), ref isConst, out isVar, out alias);
Binder\Binder_Expressions.cs (1)
948
var declType = BindVariableTypeWithAnnotations(node.Designation, diagnostics, node.Type.SkipScoped(out _).
SkipRef
(), ref isConst, out isVar, out alias);
Binder\Binder_Statements.cs (2)
804
TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics, out isVar, out alias);
2862
typeSyntax = typeSyntax.
SkipRef
();
BoundTree\VariablePendingInference.cs (1)
70
(typeOrDesignationSyntax is TypeSyntax typeSyntax ? typeSyntax.SkipScoped(out _).
SkipRef
() : typeOrDesignationSyntax).Location);
Symbols\Source\GlobalExpressionVariable.cs (2)
55
return (typeSyntax == null || typeSyntax.SkipScoped(out _).
SkipRef
().IsVar)
93
type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics, out isVar);
Symbols\Source\LocalFunctionSymbol.cs (1)
259
TypeWithAnnotations returnType = WithTypeParametersBinder.BindType(returnTypeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics);
Symbols\Source\SourceLocalSymbol.cs (4)
178
return closestTypeSyntax.SkipScoped(out _).
SkipRef
().IsVar
210
return typeSyntax?.SkipScoped(out _).
SkipRef
().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable
349
TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).
SkipRef
();
396
declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.SkipScoped(out _).
SkipRef
(), BindingDiagnosticBag.Discarded, out isVar);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
137
returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).
SkipRef
();
Symbols\Source\SourcePropertySymbol.cs (1)
576
typeSyntax = typeSyntax.SkipScoped(out _).
SkipRef
();
Syntax\SyntaxFacts.cs (1)
456
return node == parent?.Type.SkipScoped(out _).
SkipRef
();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (13)
Semantics\RefFieldTests.cs (13)
12144
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12278
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12467
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12499
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12878
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12912
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
14430
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
14472
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
14678
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
27666
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
27756
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
28307
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
28355
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());