32 lines
1006 B
C#
32 lines
1006 B
C#
using Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax;
|
|||
|
|
|
||
|
|
namespace Microsoft.CodeAnalysis.CSharp.Syntax;
|
||
|
|
|
||
|
|
public abstract class SwitchLabelSyntax : CSharpSyntaxNode
|
||
|
|
{
|
||
|
|
public abstract SyntaxToken Keyword { get; }
|
||
|
|
|
||
|
|
public abstract SyntaxToken ColonToken { get; }
|
||
|
|
|
||
|
|
internal SwitchLabelSyntax(Microsoft.CodeAnalysis.CSharp.Syntax.InternalSyntax.CSharpSyntaxNode green, SyntaxNode? parent, int position)
|
||
|
|
: base((GreenNode)(object)green, parent, position)
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
public SwitchLabelSyntax WithKeyword(SyntaxToken keyword)
|
||
|
|
{
|
||
|
|
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
|
||
|
|
return WithKeywordCore(keyword);
|
||
|
|
}
|
||
|
|
|
||
|
|
internal abstract SwitchLabelSyntax WithKeywordCore(SyntaxToken keyword);
|
||
|
|
|
||
|
|
public SwitchLabelSyntax WithColonToken(SyntaxToken colonToken)
|
||
|
|
{
|
||
|
|
//IL_0001: Unknown result type (might be due to invalid IL or missing references)
|
||
|
|
return WithColonTokenCore(colonToken);
|
||
|
|
}
|
||
|
|
|
||
|
|
internal abstract SwitchLabelSyntax WithColonTokenCore(SyntaxToken colonToken);
|
||
|
|
}
|