70 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Deconstruct.cs (1)
751var declType = BindVariableTypeWithAnnotations(component.Designation, diagnostics, component.Type.SkipScoped(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Expressions.cs (1)
895var declType = BindVariableTypeWithAnnotations(node.Designation, diagnostics, node.Type.SkipScoped(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Lambda.cs (1)
287syntax = syntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
800TypeWithAnnotations declType = BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar, out alias);
Binder\ForLoopBinder.cs (1)
75var 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)
53return (typeSyntax == null || typeSyntax.SkipScoped(out _).SkipRef().IsVar) 91type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar);
Symbols\Source\LocalFunctionSymbol.cs (1)
222TypeWithAnnotations returnType = WithTypeParametersBinder.BindType(returnTypeSyntax.SkipScoped(out _).SkipRef(), diagnostics);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
52returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Symbols\Source\SourceLocalSymbol.cs (5)
60typeSyntax = typeSyntax.SkipScoped(out isScoped); 148return closestTypeSyntax.SkipScoped(out _).SkipRef().IsVar 179return typeSyntax?.SkipScoped(out _).SkipRef().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable 320TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).SkipRef(); 356declType = 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)
484var typeOnly = typeSyntax.SkipScoped(out _).SkipRefInField(out refKind); 489MessageID.IDS_FeatureRefFields.CheckFeatureAvailability(diagnostics, compilation, typeSyntax.SkipScoped(out _).Location); 497diagnostics.Add(ErrorCode.ERR_RefFieldCannotReferToRefStruct, typeSyntax.SkipScoped(out _).Location); 503type = 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); 147returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).SkipRef();
Symbols\Source\SourcePropertySymbol.cs (2)
112syntax.Type.SkipScoped(out _).GetRefKindInLocalOrReturn(diagnostics), 451typeSyntax = typeSyntax.SkipScoped(out _).SkipRef();
Syntax\SyntaxFacts.cs (1)
456return node == parent?.Type.SkipScoped(out _).SkipRef();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
Semantics\RefFieldTests.cs (45)
11583Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 11584Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 11589type = type.SkipScoped(out _); 11653type = type.SkipScoped(out _); 11717Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 11718Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 11723type = type.SkipScoped(out _); 11906Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 11907Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 11912type = type.SkipScoped(out _); 11938Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 11939Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 11944type = type.SkipScoped(out _); 12092type = type.SkipScoped(out _); 12120type = type.SkipScoped(out _); 12317Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12318Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12323type = type.SkipScoped(out _); 12351Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12352Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12357type = type.SkipScoped(out _); 12499type = type.SkipScoped(out _); 12527type = type.SkipScoped(out _); 12965type = type.SkipScoped(out _); 13029type = type.SkipScoped(out _); 13106type = type.SkipScoped(out _); 13176type = type.SkipScoped(out _); 13870Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 13912Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14117Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 14118Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 14123type = type.SkipScoped(out _); 14367type = type.SkipScoped(out _); 14395type = type.SkipScoped(out _); 14658type = type.SkipScoped(out _); 26304Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 26305Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 26310type = type.SkipScoped(out _); 26394Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 26395Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 26400type = type.SkipScoped(out _); 26667type = type.SkipScoped(out _); 26727type = type.SkipScoped(out _); 26946Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 26994Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString());