Base:
property
ExpressionBody
Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax.ExpressionBody
16 references to ExpressionBody
Microsoft.CodeAnalysis.CSharp (12)
Binder\LocalBinderFactory.cs (1)
191
Visit(node.
ExpressionBody
);
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
460
arrowExpr = ((DestructorDeclarationSyntax)node).
ExpressionBody
;
Symbols\Source\SourceDestructorSymbol.cs (1)
62
syntax.Body, syntax.
ExpressionBody
, syntax, diagnostics);
Syntax.xml.Main.Generated.cs (1)
2074
=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.TildeToken), VisitToken(node.Identifier), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.
ExpressionBody
), VisitToken(node.SemicolonToken));
Syntax.xml.Syntax.Generated.cs (8)
12964
if (attributeLists != this.AttributeLists || modifiers != this.Modifiers || tildeToken != this.TildeToken || identifier != this.Identifier || parameterList != this.ParameterList || body != this.Body || expressionBody != this.
ExpressionBody
|| semicolonToken != this.SemicolonToken)
12975
public new DestructorDeclarationSyntax WithAttributeLists(SyntaxList<AttributeListSyntax> attributeLists) => Update(attributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.
ExpressionBody
, this.SemicolonToken);
12977
public new DestructorDeclarationSyntax WithModifiers(SyntaxTokenList modifiers) => Update(this.AttributeLists, modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.
ExpressionBody
, this.SemicolonToken);
12978
public DestructorDeclarationSyntax WithTildeToken(SyntaxToken tildeToken) => Update(this.AttributeLists, this.Modifiers, tildeToken, this.Identifier, this.ParameterList, this.Body, this.
ExpressionBody
, this.SemicolonToken);
12979
public DestructorDeclarationSyntax WithIdentifier(SyntaxToken identifier) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, identifier, this.ParameterList, this.Body, this.
ExpressionBody
, this.SemicolonToken);
12981
public new DestructorDeclarationSyntax WithParameterList(ParameterListSyntax parameterList) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, parameterList, this.Body, this.
ExpressionBody
, this.SemicolonToken);
12983
public new DestructorDeclarationSyntax WithBody(BlockSyntax? body) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, body, this.
ExpressionBody
, this.SemicolonToken);
12987
public new DestructorDeclarationSyntax WithSemicolonToken(SyntaxToken semicolonToken) => Update(this.AttributeLists, this.Modifiers, this.TildeToken, this.Identifier, this.ParameterList, this.Body, this.
ExpressionBody
, semicolonToken);
Microsoft.CodeAnalysis.CSharp.Features (2)
EditAndContinue\SyntaxUtilities.cs (1)
27
DestructorDeclarationSyntax destructorDeclaration => CreateSimpleBody(BlockOrExpression(destructorDeclaration.Body, destructorDeclaration.
ExpressionBody
)),
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (1)
460
arrowExpr = ((DestructorDeclarationSyntax)node).
ExpressionBody
;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Generated\Syntax.Test.xml.Generated.cs (2)
13520
Assert.Null(node.
ExpressionBody
);
13522
var newNode = node.WithAttributeLists(node.AttributeLists).WithModifiers(node.Modifiers).WithTildeToken(node.TildeToken).WithIdentifier(node.Identifier).WithParameterList(node.ParameterList).WithBody(node.Body).WithExpressionBody(node.
ExpressionBody
).WithSemicolonToken(node.SemicolonToken);