Пример #1
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithModifier(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStModifier modifier)
 {
     subject.modifiers.Add(modifier);
     return(subject);
 }
Пример #2
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration With_classElementBrand(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, object _classElementBrand)
 {
     subject._classElementBrand = _classElementBrand;
     return(subject);
 }
Пример #3
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithDecorator(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration 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);
 }
Пример #4
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithType(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStTypeNode type)
 {
     subject.type = type;
     return(subject);
 }
Пример #5
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithFlags(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.NodeFlags flags)
 {
     subject.flags = flags;
     return(subject);
 }
Пример #6
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithParameter(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StParameterDeclaration, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StParameterDeclaration> parameterBuilder)
 {
     subject.parameters.Add(parameterBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StParameterDeclaration()));
     return(subject);
 }
Пример #7
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithName(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStDeclarationName name)
 {
     subject.name = name;
     return(subject);
 }
Пример #8
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithExclamationToken(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StExclamationTokenToken, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StExclamationTokenToken> exclamationTokenBuilder)
 {
     subject.exclamationToken = exclamationTokenBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StExclamationTokenToken());
     return(subject);
 }
Пример #9
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration With_functionLikeDeclarationBrand(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, object _functionLikeDeclarationBrand)
 {
     subject._functionLikeDeclarationBrand = _functionLikeDeclarationBrand;
     return(subject);
 }
Пример #10
0
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration WithBody(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StMethodDeclaration subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StBlock, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StBlock> bodyBuilder)
 {
     subject.body = bodyBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StBlock());
     return(subject);
 }