コード例 #1
0
void case_521()
#line 4480 "ps-parser.jay"
{
		var ai = new AsArrayInitializer ((List<Expression>) yyVals[-2+yyTop], GetLocation (yyVals[-3+yyTop]));
		if (current_variable != null) {
			ai.VariableDeclaration = current_variable;
		}
		if (yyVals[-1+yyTop] != null) {
			lbag.AddLocation (ai, GetLocation (yyVals[-1+yyTop]), GetLocation (yyVals[0+yyTop]));
		} else {
			lbag.AddLocation (ai, GetLocation (yyVals[0+yyTop]));
		}
		yyVal = ai;
	  }
コード例 #2
0
void case_520()
#line 4471 "ps-parser.jay"
{
		var ai = new AsArrayInitializer (0, GetLocation (yyVals[-1+yyTop]));
		if (current_variable != null) {
			ai.VariableDeclaration = current_variable;
		}
		lbag.AddLocation (ai, GetLocation (yyVals[0+yyTop]));
		yyVal = ai;
	  }