コード例 #1
0
ファイル: ConstantUse.cs プロジェクト: proff/Phalanger
		public PseudoConstUse(Position position, Types type)
			: base(position)
		{
			this.type = type;
		}
コード例 #2
0
ファイル: ConstantUse.cs プロジェクト: proff/Phalanger
 /// <summary>
 /// Get the value indicating if the given constant is evaluable in compile time.
 /// </summary>
 /// <param name="type"></param>
 /// <returns></returns>
 private bool IsEvaluable(Types type)
 {
     switch (type)
     {
         case Types.File:
         case Types.Dir:
             return false;
         default:
             return true;
     }
 }
コード例 #3
0
ファイル: JumpStmt.cs プロジェクト: hansdude/Phalanger
		private Expression expr; // can be null

		public JumpStmt(Position position, Types type, Expression expr)
			: base(position)
		{
			this.type = type;
			this.expr = expr;
		}