コード例 #1
0
        public static PrefixOperator Create(string symbol, Expression expression, Type.Expression type = null)
        {
            PrefixOperator result;

            switch (symbol)
            {
            default:
                result = null;
                break;

            case "++":
            case "--":
            case "!":
            case "~":
            case "+":
            case "-":
                result = new PrefixOperator(symbol, expression, type);
                break;
            }
            return(result);
        }
コード例 #2
0
 public virtual void Visit(PrefixOperator prefixOperator)
 {
     Visit(( dynamic )prefixOperator);
 }
コード例 #3
0
 public IType GetPrefixOperationResultType(PrefixOperator @operator) => @operator switch
 {
コード例 #4
0
ファイル: FunctionType.cs プロジェクト: Daouki/wire
 public IType GetPrefixOperationResultType(PrefixOperator operationKind) => null;
コード例 #5
0
ファイル: PointerType.cs プロジェクト: Daouki/wire
 public IType GetPrefixOperationResultType(PrefixOperator @operator) => null;