18 references to FormatClause
Microsoft.CodeAnalysis.CSharp (12)
_generated\0\Syntax.xml.Main.Generated.cs (1)
1831
=> node.Update(VisitToken(node.OpenBraceToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), (InterpolationAlignmentClauseSyntax?)Visit(node.AlignmentClause), (InterpolationFormatClauseSyntax?)Visit(node.
FormatClause
), VisitToken(node.CloseBraceToken));
_generated\2\Syntax.xml.Syntax.Generated.cs (5)
6097
if (openBraceToken != this.OpenBraceToken || expression != this.Expression || alignmentClause != this.AlignmentClause || formatClause != this.
FormatClause
|| closeBraceToken != this.CloseBraceToken)
6107
public InterpolationSyntax WithOpenBraceToken(SyntaxToken openBraceToken) => Update(openBraceToken, this.Expression, this.AlignmentClause, this.
FormatClause
, this.CloseBraceToken);
6108
public InterpolationSyntax WithExpression(ExpressionSyntax expression) => Update(this.OpenBraceToken, expression, this.AlignmentClause, this.
FormatClause
, this.CloseBraceToken);
6109
public InterpolationSyntax WithAlignmentClause(InterpolationAlignmentClauseSyntax? alignmentClause) => Update(this.OpenBraceToken, this.Expression, alignmentClause, this.
FormatClause
, this.CloseBraceToken);
6111
public InterpolationSyntax WithCloseBraceToken(SyntaxToken closeBraceToken) => Update(this.OpenBraceToken, this.Expression, this.AlignmentClause, this.
FormatClause
, closeBraceToken);
Binder\Binder_InterpolatedString.cs (6)
121
if (interpolation.
FormatClause
!= null)
123
var text = interpolation.
FormatClause
.FormatStringToken.ValueText;
128
diagnostics.Add(ErrorCode.ERR_EmptyFormatSpecifier, interpolation.
FormatClause
.Location);
133
diagnostics.Add(ErrorCode.ERR_TrailingWhitespaceInFormatSpecifier, interpolation.
FormatClause
.Location);
137
format = new BoundLiteral(interpolation.
FormatClause
, ConstantValue.Create(text), stringType, hasErrors);
143
!(interpolation is {
FormatClause
: null, AlignmentClause: null }) ||
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
510
if (interpolation.
FormatClause
is null)
Microsoft.CodeAnalysis.CSharp.Features (3)
ConvertToRawString\ConvertInterpolatedStringToRawStringCodeRefactoringProvider.cs (3)
85
if (interpolation.
FormatClause
!= null)
87
var characters = TryConvertToVirtualChars(interpolation.
FormatClause
.FormatStringToken);
445
.WithFormatClause(RewriteFormatClause(interpolation.
FormatClause
))
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
510
if (interpolation.
FormatClause
is null)
Roslyn.Diagnostics.CSharp.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\SpacingFormattingRule.cs (1)
510
if (interpolation.
FormatClause
is null)