70 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (25)
Binder\Binder_Deconstruct.cs (1)
754var declType = BindVariableTypeWithAnnotations(component.Designation, diagnostics, component.Type.SkipScoped(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Expressions.cs (1)
970var declType = BindVariableTypeWithAnnotations(node.Designation, diagnostics, node.Type.SkipScoped(out _).SkipRef(), ref isConst, out isVar, out alias);
Binder\Binder_Lambda.cs (1)
297syntax = syntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
804TypeWithAnnotations 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)
55return (typeSyntax == null || typeSyntax.SkipScoped(out _).SkipRef().IsVar) 93type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar);
Symbols\Source\LocalFunctionSymbol.cs (1)
259TypeWithAnnotations returnType = WithTypeParametersBinder.BindType(returnTypeSyntax.SkipScoped(out _).SkipRef(), diagnostics);
Symbols\Source\SourceDelegateMethodSymbol.cs (1)
56returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Symbols\Source\SourceLocalSymbol.cs (5)
93typeSyntax = typeSyntax.SkipScoped(out isScoped); 178return closestTypeSyntax.SkipScoped(out _).SkipRef().IsVar 210return typeSyntax?.SkipScoped(out _).SkipRef().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable 349TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).SkipRef(); 396declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.SkipScoped(out _).SkipRef(), BindingDiagnosticBag.Discarded, out isVar);
Symbols\Source\SourceMemberContainerSymbol.cs (1)
5518_ = fieldSyntax.Declaration.Type.SkipScoped(out _).SkipRefInField(out var refKind);
Symbols\Source\SourceMemberFieldSymbol.cs (4)
499var typeOnly = typeSyntax.SkipScoped(out _).SkipRefInField(out refKind); 504MessageID.IDS_FeatureRefFields.CheckFeatureAvailability(diagnostics, compilation, typeSyntax.SkipScoped(out _).Location); 512diagnostics.Add(ErrorCode.ERR_RefFieldCannotReferToRefStruct, typeSyntax.SkipScoped(out _).Location); 518type = binder.BindTypeOrVarKeyword(typeSyntax.SkipScoped(out _).SkipRefInField(out RefKind refKindToAssert), diagnostics, out isVar);
Symbols\Source\SourceOrdinaryMethodSymbol.cs (2)
95methodKind, refKind: syntax.ReturnType.SkipScoped(out _).GetRefKindInLocalOrReturn(diagnostics), 137returnTypeSyntax = returnTypeSyntax.SkipScoped(out _).SkipRef();
Symbols\Source\SourcePropertySymbol.cs (2)
137syntax.Type.SkipScoped(out _).GetRefKindInLocalOrReturn(diagnostics), 576typeSyntax = 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)
12106Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12107Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12112type = type.SkipScoped(out _); 12176type = type.SkipScoped(out _); 12240Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12241Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12246type = type.SkipScoped(out _); 12429Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12430Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12435type = type.SkipScoped(out _); 12461Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12462Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12467type = type.SkipScoped(out _); 12615type = type.SkipScoped(out _); 12643type = type.SkipScoped(out _); 12840Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12841Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12846type = type.SkipScoped(out _); 12874Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12875Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12880type = type.SkipScoped(out _); 13022type = type.SkipScoped(out _); 13050type = type.SkipScoped(out _); 13488type = type.SkipScoped(out _); 13552type = type.SkipScoped(out _); 13629type = type.SkipScoped(out _); 13699type = type.SkipScoped(out _); 14393Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14435Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14640Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 14641Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 14646type = type.SkipScoped(out _); 14890type = type.SkipScoped(out _); 14918type = type.SkipScoped(out _); 15181type = type.SkipScoped(out _); 27582Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27583Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27588type = type.SkipScoped(out _); 27672Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27673Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27678type = type.SkipScoped(out _); 27945type = type.SkipScoped(out _); 28005type = type.SkipScoped(out _); 28224Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 28272Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString());