-
Notifications
You must be signed in to change notification settings - Fork 183
/
NewNode.cs
37 lines (30 loc) · 916 Bytes
/
NewNode.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// NewNode.cs
// Script#/Core/Compiler
// This source code is subject to terms and conditions of the Apache License, Version 2.0.
//
using System;
using System.Diagnostics;
namespace ScriptSharp.CodeModel {
internal sealed class NewNode : ExpressionNode {
private ParseNode _typeReference;
private ParseNode _arguments;
public NewNode(Token token, ParseNode typeReference, ParseNode arguments)
: base(ParseNodeType.New, token) {
_typeReference = GetParentedNode(typeReference);
_arguments = GetParentedNode(arguments);
}
public ParseNode Arguments {
get {
return _arguments;
}
}
public ParseNode TypeReference {
get {
return _typeReference;
}
set {
_typeReference = value;
}
}
}
}