70 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (25)
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)
938
var declType = BindVariableTypeWithAnnotations(node.Designation, diagnostics, node.Type.
SkipScoped
(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Lambda.cs (1)
296
syntax = syntax.
SkipScoped
(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
799
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)
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)
258
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)
62
typeSyntax = typeSyntax.
SkipScoped
(out isScoped);
147
return closestTypeSyntax.
SkipScoped
(out _).SkipRef().IsVar
178
return typeSyntax?.
SkipScoped
(out _).SkipRef().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable
319
TypeSyntax typeSyntax = _typeSyntax.
SkipScoped
(out _).SkipRef();
355
declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.
SkipScoped
(out _).SkipRef(), diagnostics, out isVar);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5512
_ = fieldSyntax.Declaration.Type.
SkipScoped
(out _).SkipRefInField(out var refKind);
Symbols\Source\SourceMemberFieldSymbol.cs (4)
499
var typeOnly = typeSyntax.
SkipScoped
(out _).SkipRefInField(out refKind);
504
MessageID.IDS_FeatureRefFields.CheckFeatureAvailability(diagnostics, compilation, typeSyntax.
SkipScoped
(out _).Location);
512
diagnostics.Add(ErrorCode.ERR_RefFieldCannotReferToRefStruct, typeSyntax.
SkipScoped
(out _).Location);
518
type = binder.BindTypeOrVarKeyword(typeSyntax.
SkipScoped
(out _).SkipRefInField(out RefKind refKindToAssert), diagnostics, out isVar);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
95
methodKind, refKind: syntax.ReturnType.
SkipScoped
(out _).GetRefKindInLocalOrReturn(diagnostics),
136
returnTypeSyntax = returnTypeSyntax.
SkipScoped
(out _).SkipRef();
Symbols\Source\SourcePropertySymbol.cs (2)
138
syntax.Type.
SkipScoped
(out _).GetRefKindInLocalOrReturn(diagnostics),
577
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)
12143
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12144
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12149
type = type.
SkipScoped
(out _);
12213
type = type.
SkipScoped
(out _);
12277
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12278
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12283
type = type.
SkipScoped
(out _);
12466
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12467
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12472
type = type.
SkipScoped
(out _);
12498
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12499
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12504
type = type.
SkipScoped
(out _);
12652
type = type.
SkipScoped
(out _);
12680
type = type.
SkipScoped
(out _);
12877
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12878
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12883
type = type.
SkipScoped
(out _);
12911
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
12912
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
12917
type = type.
SkipScoped
(out _);
13059
type = type.
SkipScoped
(out _);
13087
type = type.
SkipScoped
(out _);
13525
type = type.
SkipScoped
(out _);
13589
type = type.
SkipScoped
(out _);
13666
type = type.
SkipScoped
(out _);
13736
type = type.
SkipScoped
(out _);
14430
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
14472
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
14677
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
14678
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
14683
type = type.
SkipScoped
(out _);
14927
type = type.
SkipScoped
(out _);
14955
type = type.
SkipScoped
(out _);
15218
type = type.
SkipScoped
(out _);
27676
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
27677
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
27682
type = type.
SkipScoped
(out _);
27766
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _)));
27767
Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.
SkipScoped
(out _).SkipRef()));
27772
type = type.
SkipScoped
(out _);
28039
type = type.
SkipScoped
(out _);
28099
type = type.
SkipScoped
(out _);
28318
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());
28366
Assert.Equal("R", model.GetSymbolInfo(type.
SkipScoped
(out _).SkipRef()).Symbol.ToTestDisplayString());