ItemExpression.From

構文

ItemExpression.From(function as function) as record

バージョン情報

"item 式" に正規化された function の本文の抽象構文ツリー (AST) を返します。

  • 関数は、1 引数ラムダである必要があります。
  • 関数パラメーターへのすべての参照は、ItemExpression.Item と置き換えられます。
  • AST は、次の種類のノードのみを含むように簡素化されます。
    • Constant
    • Invocation
    • Unary
    • Binary
    • If
    • FieldAccess

function の本文に対して item 式の AST が返されない場合は、エラーが発生します。

この関数は RowExpression.From と同じです。

例 1

関数 each _ <> null の本文の AST を返します。

使用方法

ItemExpression.From(each _ <> null)

出力

[
    Kind = "Binary",
    Operator = "NotEquals",
    Left = ItemExpression.Item,
    Right =
    [
        Kind = "Constant",
        Value = null
    ]
]