public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock WithClaus(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStCaseOrDefaultClause claus) { subject.clauses.Add(claus); return(subject); }
public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock WithModifier(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStModifier modifier) { subject.modifiers.Add(modifier); return(subject); }
public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock WithFlags(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.NodeFlags flags) { subject.flags = flags; return(subject); }
public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock WithDecorator(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StDecorator, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StDecorator> decoratorBuilder) { subject.decorators.Add(decoratorBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StDecorator())); return(subject); }
public StSwitchStatement(ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.NodeFlags flags, System.Collections.Generic.List <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StDecorator> decorators, System.Collections.Generic.List <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStModifier> modifiers, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStExpression expression, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StCaseBlock caseBlock, System.Nullable <System.Boolean> possiblyExhaustive) : base(flags, decorators, modifiers) { this.kind = ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.SyntaxKind.SwitchStatement; this.expression = expression; this.caseBlock = caseBlock; this.possiblyExhaustive = possiblyExhaustive; }