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(); } }
public static NeuTypeIdentifier?GetTypeIdentifier( this NeuSizeOfExpression sizeOfExpr) { return(sizeOfExpr.GetFirstOrDefault <NeuTypeIdentifier>()); }