internal VariableDeclarationStatementSyntax(SyntaxToken varKeyword, SyntaxToken identifier, TypeClauseSyntax typeClause, SyntaxToken equalToken, ExpressionSyntax expression, bool isValid, TextLocation location) : base(isValid, location) { VarKeyword = varKeyword; Identifier = identifier; TypeClause = typeClause; EqualToken = equalToken; Expression = expression; }
internal FunctionDeclarationSyntax(SyntaxToken functionKeyword, SyntaxToken identifier, SyntaxToken leftParenthesis, SeperatedSyntaxList <ParameterSyntax> parameters, SyntaxToken rightParenthesis, TypeClauseSyntax returnType, BlockStatmentSyntax body, bool isValid, TextLocation location) : base(isValid, location) { FunctionKeyword = functionKeyword; Identifier = identifier; LeftParenthesis = leftParenthesis; Parameters = parameters; RightParenthesis = rightParenthesis; ReturnType = returnType; Body = body; }
internal ParameterSyntax(SyntaxToken identifier, TypeClauseSyntax typeClause, bool isValid, TextLocation location) : base(isValid, location) { Identifier = identifier; TypeClause = typeClause; }