28 references to SkipRef
Microsoft.CodeAnalysis.CSharp (15)
Binder\Binder_Deconstruct.cs (1)
751
var declType = BindVariableTypeWithAnnotations(component.Designation, diagnostics, component.Type.SkipScoped(out _).
SkipRef
(), ref isConst, out isVar, out alias);
Binder\Binder_Expressions.cs (1)
895
var declType = BindVariableTypeWithAnnotations(node.Designation, diagnostics, node.Type.SkipScoped(out _).
SkipRef
(), ref isConst, out isVar, out alias);
Binder\Binder_Statements.cs (2)
800
TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics, out isVar, out alias);
2715
typeSyntax = typeSyntax.
SkipRef
();
BoundTree\VariablePendingInference.cs (1)
70
(typeOrDesignationSyntax is TypeSyntax typeSyntax ? typeSyntax.SkipScoped(out _).
SkipRef
() : typeOrDesignationSyntax).Location);
Symbols\Source\GlobalExpressionVariable.cs (2)
53
return (typeSyntax == null || typeSyntax.SkipScoped(out _).
SkipRef
().IsVar)
91
type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics, out isVar);
Symbols\Source\LocalFunctionSymbol.cs (1)
222
TypeWithAnnotations returnType = WithTypeParametersBinder.BindType(returnTypeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics);
Symbols\Source\SourceLocalSymbol.cs (4)
148
return closestTypeSyntax.SkipScoped(out _).
SkipRef
().IsVar
179
return typeSyntax?.SkipScoped(out _).
SkipRef
().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable
320
TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).
SkipRef
();
356
declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.SkipScoped(out _).
SkipRef
(), diagnostics, out isVar);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (1)
147
returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).
SkipRef
();
Symbols\Source\SourcePropertySymbol.cs (1)
451
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)
11584
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
11718
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
11907
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
11939
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12318
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
12352
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
13870
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
13912
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
14118
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
26305
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
26395
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).
SkipRef
()));
26946
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());
26994
Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).
SkipRef
()).Symbol.ToTestDisplayString());