Пример #1
0
 public GrapeMethod(GrapeList<GrapeModifier> modifiers, GrapeType returnType, GrapeIdentifier name, GrapeList<GrapeParameter> parameters, GrapeList<GrapeStatement> body)
     : base(modifiers)
 {
     this.returnType = returnType;
     this.name = name.Name;
     this.parameters = parameters.ToList(this).AsReadOnly();
     this.body = body.ToList(this).AsReadOnly();
 }
Пример #2
0
 public GrapeClass(GrapeList<GrapeModifier> modifiers, GrapeIdentifier identifier, GrapeOptional<GrapeLiteralExpression<int>> size, GrapeOptional<GrapeSimpleType> inherits, GrapeList<GrapeClassItem> classItems)
     : base(modifiers)
 {
     GrapeLiteralExpression<int> sizeLiteral = size;
     this.size = (sizeLiteral == null) ? default(int?) : sizeLiteral.Value;
     this.inherits = inherits;
     this.classItems = classItems.ToList(this).AsReadOnly();
     name = identifier.Name;
 }
Пример #3
0
 public GrapeArrayInitializer(GrapeList<GrapeInitializer> initializers)
 {
     this.initializers = initializers.ToList(this).AsReadOnly();
 }
Пример #4
0
		public GrapeSwitchStatement(GrapeExpression expression, GrapeList<GrapeSwitchCase> cases): base() {
			this.expression = expression;
			this.cases = cases.ToList(this).AsReadOnly();
		}
Пример #5
0
 public GrapeMember(GrapeMember ofMember, GrapeList<GrapeIdentifier> identifiers)
 {
     this.ofMember = ofMember;
     this.identifiers = identifiers.ToList(this);
 }
Пример #6
0
		private GrapeCallExpression(GrapeIdentifier identifier, GrapeList<GrapeExpression> parameters, GrapeAccessExpression next): base(GrapeAccessExpressionType.Method, identifier, next) {
			this.parameters = parameters.ToList(this).AsReadOnly();
		}
		protected GrapeStatementWithBlock(GrapeList<GrapeStatement> statements) {
			this.statements = statements.ToList(this).AsReadOnly();
		}