Beispiel #1
0
 public static ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementCompound WithStatement(this ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementCompound subject, ForgedOnce.GlslLanguageServices.LanguageModels.Ast.Statement statement)
 {
     subject.Statements.Add(statement);
     return(subject);
 }
 public static ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementWhile WithBody(this ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementWhile subject, ForgedOnce.GlslLanguageServices.LanguageModels.Ast.Statement body)
 {
     subject.Body = body;
     return(subject);
 }
Beispiel #3
0
 public static ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementIf WithThen(this ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementIf subject, ForgedOnce.GlslLanguageServices.LanguageModels.Ast.Statement then)
 {
     subject.Then = then;
     return(subject);
 }
Beispiel #4
0
 public static ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementIf WithElse(this ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementIf subject, ForgedOnce.GlslLanguageServices.LanguageModels.Ast.Statement @else)
 {
     subject.Else = @else;
     return(subject);
 }
Beispiel #5
0
 public static ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementFor WithInit(this ForgedOnce.GlslLanguageServices.LanguageModels.Ast.StatementFor subject, ForgedOnce.GlslLanguageServices.LanguageModels.Ast.Statement init)
 {
     subject.Init = init;
     return(subject);
 }