58 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (13)
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);
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)
268TypeWithAnnotations 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\SourcePropertySymbol.cs (1)
576typeSyntax = typeSyntax.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 _); 27591Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27592Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27597type = type.SkipScoped(out _); 27681Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27682Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27687type = type.SkipScoped(out _); 27954type = type.SkipScoped(out _); 28014type = type.SkipScoped(out _); 28233Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 28281Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString());