Пример #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>());
 }