public FunctionDefinitionSyntax(List <AttributeSyntax> attributes, List <SyntaxToken> modifiers, TypeSyntax returnType, DeclarationNameSyntax name, ParameterListSyntax parameterList, SemanticSyntax semantic, BlockSyntax body, SyntaxToken semicolonToken)
     : base(SyntaxKind.FunctionDefinition, attributes, modifiers, returnType, name, parameterList, semantic)
 {
     RegisterChildNode(out Body, body);
     RegisterChildNode(out SemicolonToken, semicolonToken);
 }
 public FunctionDeclarationSyntax(List <AttributeSyntax> attributes, List <SyntaxToken> modifiers, TypeSyntax returnType, SyntaxToken name, ParameterListSyntax parameterList, SemanticSyntax semantic, SyntaxToken semicolonToken)
     : base(SyntaxKind.FunctionDeclaration)
 {
     RegisterChildNodes(out Attributes, attributes);
     RegisterChildNodes(out Modifiers, modifiers);
     RegisterChildNode(out ReturnType, returnType);
     RegisterChildNode(out Name, name);
     RegisterChildNode(out ParameterList, parameterList);
     RegisterChildNode(out Semantic, semantic);
     RegisterChildNode(out SemicolonToken, semicolonToken);
 }
Beispiel #3
0
 protected FunctionSyntax(SyntaxKind kind, List <AttributeSyntax> attributes, List <SyntaxToken> modifiers, TypeSyntax returnType, DeclarationNameSyntax name, ParameterListSyntax parameterList, SemanticSyntax semantic)
     : base(kind)
 {
     RegisterChildNodes(out Attributes, attributes);
     RegisterChildNodes(out Modifiers, modifiers);
     RegisterChildNode(out ReturnType, returnType);
     RegisterChildNode(out Name, name);
     RegisterChildNode(out ParameterList, parameterList);
     RegisterChildNode(out Semantic, semantic);
 }