public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement WithTagName(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStJsxTagNameExpression tagName)
 {
     subject.tagName = tagName;
     return(subject);
 }
Exemplo n.º 2
0
 public StJsxElement(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.StJsxOpeningElement openingElement, System.Collections.Generic.List <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStJsxChild> children, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxClosingElement closingElement) : base(flags, decorators, modifiers)
 {
     this.kind           = ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.SyntaxKind.JsxElement;
     this.children       = new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StNodeCollection <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStJsxChild>(this);
     this.openingElement = openingElement;
     this.children.AddRange(children);
     this.closingElement = closingElement;
 }
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement WithModifier(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStModifier modifier)
 {
     subject.modifiers.Add(modifier);
     return(subject);
 }
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement WithDecorator(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement 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 static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement WithFlags(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.TransportModel.NodeFlags flags)
 {
     subject.flags = flags;
     return(subject);
 }
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement WithAttributes(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement subject, Func <ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxAttributes, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxAttributes> attributesBuilder)
 {
     subject.attributes = attributesBuilder(new ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxAttributes());
     return(subject);
 }
 public static ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement WithTypeArgument(this ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.StJsxOpeningElement subject, ForgedOnce.TsLanguageServices.FullSyntaxTree.AstModel.IStTypeNode typeArgument)
 {
     subject.typeArguments.Add(typeArgument);
     return(subject);
 }