예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 internal ParameterSyntax(SyntaxToken identifier, TypeClauseSyntax typeClause, bool isValid, TextLocation location) : base(isValid, location)
 {
     Identifier = identifier;
     TypeClause = typeClause;
 }