58 references to SkipScoped
Microsoft.CodeAnalysis.CSharp (13)
Binder\Binder_Lambda.cs (1)
296syntax = syntax.SkipScoped(out _).SkipRefInLocalOrReturn(diagnostics, out RefKind refKind);
Binder\Binder_Statements.cs (1)
799TypeWithAnnotations 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)
258TypeWithAnnotations 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)
62typeSyntax = typeSyntax.SkipScoped(out isScoped); 147return closestTypeSyntax.SkipScoped(out _).SkipRef().IsVar 178return typeSyntax?.SkipScoped(out _).SkipRef().IsVar != false && kind != LocalDeclarationKind.DeclarationExpressionVariable 319TypeSyntax typeSyntax = _typeSyntax.SkipScoped(out _).SkipRef(); 355declType = typeBinder.BindTypeOrVarKeyword(_typeSyntax.SkipScoped(out _).SkipRef(), diagnostics, out isVar);
Symbols\Source\SourcePropertySymbol.cs (1)
577typeSyntax = typeSyntax.SkipScoped(out _).SkipRef();
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (45)
Semantics\RefFieldTests.cs (45)
12143Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12144Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12149type = type.SkipScoped(out _); 12213type = type.SkipScoped(out _); 12277Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12278Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12283type = type.SkipScoped(out _); 12466Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12467Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12472type = type.SkipScoped(out _); 12498Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12499Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12504type = type.SkipScoped(out _); 12652type = type.SkipScoped(out _); 12680type = type.SkipScoped(out _); 12877Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12878Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12883type = type.SkipScoped(out _); 12911Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 12912Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 12917type = type.SkipScoped(out _); 13059type = type.SkipScoped(out _); 13087type = type.SkipScoped(out _); 13525type = type.SkipScoped(out _); 13589type = type.SkipScoped(out _); 13666type = type.SkipScoped(out _); 13736type = type.SkipScoped(out _); 14430Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14472Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 14677Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 14678Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 14683type = type.SkipScoped(out _); 14927type = type.SkipScoped(out _); 14955type = type.SkipScoped(out _); 15218type = type.SkipScoped(out _); 27676Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27677Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27682type = type.SkipScoped(out _); 27766Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _))); 27767Assert.True(SyntaxFacts.IsInTypeOnlyContext(type.SkipScoped(out _).SkipRef())); 27772type = type.SkipScoped(out _); 28039type = type.SkipScoped(out _); 28099type = type.SkipScoped(out _); 28318Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString()); 28366Assert.Equal("R", model.GetSymbolInfo(type.SkipScoped(out _).SkipRef()).Symbol.ToTestDisplayString());