58 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Lambda.cs (1)
297
syntax = syntax.
SkipScoped
(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
804
TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.
SkipScoped
(out _).SkipRef(), diagnostics, out isVar, out alias);
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)
268
TypeWithAnnotations returnType = WithTypeParametersBinder.BindType(returnTypeSyntax.
SkipScoped
(out _).SkipRef(), diagnostics);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
56
returnTypeSyntax = returnTypeSyntax.
SkipScoped
(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Symbols\Source\SourceLocalSymbol.cs (5)
93
typeSyntax = typeSyntax.
SkipScoped
(out isScoped);
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\SourcePropertySymbol.cs (1)
576
typeSyntax = typeSyntax.
SkipScoped
(out _).SkipRef();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
Semantics\RefFieldTests.cs (45)
12178
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12179
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12184
type = type.
SkipScoped
(out _);
12248
type = type.
SkipScoped
(out _);
12312
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12313
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12318
type = type.
SkipScoped
(out _);
12501
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12502
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12507
type = type.
SkipScoped
(out _);
12533
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12534
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12539
type = type.
SkipScoped
(out _);
12687
type = type.
SkipScoped
(out _);
12715
type = type.
SkipScoped
(out _);
12912
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12913
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12918
type = type.
SkipScoped
(out _);
12946
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12947
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12952
type = type.
SkipScoped
(out _);
13094
type = type.
SkipScoped
(out _);
13122
type = type.
SkipScoped
(out _);
13560
type = type.
SkipScoped
(out _);
13624
type = type.
SkipScoped
(out _);
13701
type = type.
SkipScoped
(out _);
13771
type = type.
SkipScoped
(out _);
14465
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
14507
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
14712
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
14713
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
14718
type = type.
SkipScoped
(out _);
14962
type = type.
SkipScoped
(out _);
14990
type = type.
SkipScoped
(out _);
15253
type = type.
SkipScoped
(out _);
27663
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
27664
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
27669
type = type.
SkipScoped
(out _);
27753
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
27754
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
27759
type = type.
SkipScoped
(out _);
28026
type = type.
SkipScoped
(out _);
28086
type = type.
SkipScoped
(out _);
28305
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
28353
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());