public StructTypeSyntax(SyntaxToken structKeyword, SyntaxToken name, BaseListSyntax baseList, SyntaxToken openBraceToken, List <VariableDeclarationStatementSyntax> fields, SyntaxToken closeBraceToken)
     : base(SyntaxKind.StructType)
 {
     RegisterChildNode(out StructKeyword, structKeyword);
     RegisterChildNode(out Name, name);
     RegisterChildNode(out BaseList, baseList);
     RegisterChildNode(out OpenBraceToken, openBraceToken);
     RegisterChildNodes(out Fields, fields);
     RegisterChildNode(out CloseBraceToken, closeBraceToken);
 }
示例#2
0
 public ClassTypeSyntax(SyntaxToken classKeyword, SyntaxToken name, BaseListSyntax baseList, SyntaxToken openBraceToken, List <SyntaxNode> members, SyntaxToken closeBraceToken)
     : base(SyntaxKind.ClassType)
 {
     RegisterChildNode(out ClassKeyword, classKeyword);
     RegisterChildNode(out Name, name);
     RegisterChildNode(out BaseList, baseList);
     RegisterChildNode(out OpenBraceToken, openBraceToken);
     RegisterChildNodes(out Members, members);
     RegisterChildNode(out CloseBraceToken, closeBraceToken);
 }