예제 #1
0
    public static NeuOperation Execute(
        this NeuInterpreter interpreter,
        NeuSizeOfExpression sizeOfExpr)
    {
        var typeId = sizeOfExpr.GetTypeIdentifier();

        ///

        switch (typeId)
        {
        case NeuSimpleTypeId simpleTypeId:

            return(interpreter.Execute(simpleTypeId));

        ///

        default:

            throw new Exception();
        }
    }
예제 #2
0
 public static NeuTypeIdentifier?GetTypeIdentifier(
     this NeuSizeOfExpression sizeOfExpr)
 {
     return(sizeOfExpr.GetFirstOrDefault <NeuTypeIdentifier>());
 }