Skip to main content

ItemExpression.From

ส่งกลับทรีไวยากรณ์เชิงนามธรรม (AST) สําหรับเนื้อความของฟังก์ชัน

Syntax

ItemExpression.From(
function as function
) as record

Remarks

ส่งกลับทรีไวยากรณ์เชิงนามธรรม (AST) สำหรับเนื้อความของ function ปรับให้เป็นมาตรฐานในนิพจน์รายการ:

  • ฟังก์ชันต้องเป็น lambda ชนิดอาร์กิวเมนต์ 1
  • การอ้างอิงทั้งหมดไปยังพารามิเตอร์ฟังก์ชันจะถูกแทนที่ด้วย ItemExpression.Item
  • AST จะง่ายขึ้นเพื่อให้มีเฉพาะโหนดชนิด:
    • Constant
    • Invocation
    • Unary
    • Binary
    • If
    • FieldAccess


จะมีการแสดงข้อผิดพลาด ถ้าไม่สามารถส่งกลับนิพจน์รายการ AST สำหรับเนื้อความของ function

Examples

Example #1

ส่งคืน AST สำหรับเนื้อความของฟังก์ชัน <code>each _ <> null</code>

ItemExpression.From(each _ <> null)

Result:

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

Category

Table.Table construction