70 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (25)
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_Lambda.cs (1)
287
syntax = syntax.
SkipScoped
(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
800
TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.
SkipScoped
(out _).SkipRef(), diagnostics, out isVar, out alias);
Binder\ForLoopBinder.cs (1)
75
var type = _syntax.Declaration.Type.
SkipScoped
(out _);
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\SourceDelegateMethodSymbol.cs (1)
52
returnTypeSyntax = returnTypeSyntax.
SkipScoped
(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Symbols\Source\SourceLocalSymbol.cs (5)
60
typeSyntax = typeSyntax.
SkipScoped
(out isScoped);
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\SourceMemberContainerSymbol.cs (1)
4650
_ = fieldSyntax.Declaration.Type.
SkipScoped
(out _).SkipRefInField(out var refKind);
Symbols\Source\SourceMemberFieldSymbol.cs (4)
484
var typeOnly = typeSyntax.
SkipScoped
(out _).SkipRefInField(out refKind);
489
MessageID.IDS_FeatureRefFields.CheckFeatureAvailability(diagnostics, compilation, typeSyntax.
SkipScoped
(out _).Location);
497
diagnostics.Add(ErrorCode.ERR_RefFieldCannotReferToRefStruct, typeSyntax.
SkipScoped
(out _).Location);
503
type = binder.BindTypeOrVarKeyword(typeSyntax.
SkipScoped
(out _).SkipRefInField(out RefKind refKindToAssert), diagnostics, out isVar);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
102
_refKind = syntax.ReturnType.
SkipScoped
(out _).GetRefKindInLocalOrReturn(diagnostics);
147
returnTypeSyntax = returnTypeSyntax.
SkipScoped
(out _).SkipRef();
Symbols\Source\SourcePropertySymbol.cs (2)
112
syntax.Type.
SkipScoped
(out _).GetRefKindInLocalOrReturn(diagnostics),
451
typeSyntax = typeSyntax.
SkipScoped
(out _).SkipRef();
Syntax\SyntaxFacts.cs (1)
456
return node == parent?.Type.
SkipScoped
(out _).SkipRef();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
Semantics\RefFieldTests.cs (45)
11583
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
11584
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
11589
type = type.
SkipScoped
(out _);
11653
type = type.
SkipScoped
(out _);
11717
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
11718
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
11723
type = type.
SkipScoped
(out _);
11906
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
11907
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
11912
type = type.
SkipScoped
(out _);
11938
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
11939
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
11944
type = type.
SkipScoped
(out _);
12092
type = type.
SkipScoped
(out _);
12120
type = type.
SkipScoped
(out _);
12317
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12318
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12323
type = type.
SkipScoped
(out _);
12351
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12352
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12357
type = type.
SkipScoped
(out _);
12499
type = type.
SkipScoped
(out _);
12527
type = type.
SkipScoped
(out _);
12965
type = type.
SkipScoped
(out _);
13029
type = type.
SkipScoped
(out _);
13106
type = type.
SkipScoped
(out _);
13176
type = type.
SkipScoped
(out _);
13870
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
13912
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
14117
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
14118
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
14123
type = type.
SkipScoped
(out _);
14367
type = type.
SkipScoped
(out _);
14395
type = type.
SkipScoped
(out _);
14658
type = type.
SkipScoped
(out _);
26304
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
26305
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
26310
type = type.
SkipScoped
(out _);
26394
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
26395
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
26400
type = type.
SkipScoped
(out _);
26667
type = type.
SkipScoped
(out _);
26727
type = type.
SkipScoped
(out _);
26946
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
26994
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());