28 references to SkipRef
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Deconstruct.cs (1)
754
var declType = BindVariableTypeWithAnnotations(component.Designation, diagnostics, component.Type.SkipScoped(out _).
SkipRef
(), ref isConst, out isVar, out alias);
Binder\Binder_Expressions.cs (1)
970
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);
2865
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)
12107
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12241
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12430
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12462
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12841
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12875
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
14393
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
14435
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
14641
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
27583
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
27673
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
28224
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
28272
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());