Example #1
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration WithName(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStDeclarationName name)
 {
     subject.name = name;
     return(subject);
 }
Example #2
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration WithModifier(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStModifier modifier)
 {
     subject.modifiers.Add(modifier);
     return(subject);
 }
Example #3
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration WithDecorator(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration 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);
 }
Example #4
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration WithFlags(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.NodeFlags flags)
 {
     subject.flags = flags;
     return(subject);
 }
Example #5
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration WithHeritageClaus(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StHeritageClause, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StHeritageClause> heritageClausBuilder)
 {
     subject.heritageClauses.Add(heritageClausBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StHeritageClause()));
     return(subject);
 }
Example #6
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration WithTypeParameter(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StInterfaceDeclaration subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StTypeParameterDeclaration, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StTypeParameterDeclaration> typeParameterBuilder)
 {
     subject.typeParameters.Add(typeParameterBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StTypeParameterDeclaration()));
     return(subject);
 }