Project

EarthSciAST

The EarthSciML Abstract Syntax Tree format: schema, operators, coupling, and five language bindings.

Contents

This is the documentation for the older version v0.16.0. For the latest release, see v0.17.0.

reject_expression_templates_pre_v04

Stable function · Versions and migration

Tier: stable · Kind: function · Topic: Versions and migration

JuliaTypeScriptPythonRustGo
reject_expression_templates_pre_v04rejectExpressionTemplatesPreV04reject_expression_templates_pre_v04not exportedRejectExpressionTemplatesPreV04

Julia

reject_expression_templates_pre_v04(raw_data)
reject_expression_templates_pre_v04(raw_data)

Reject expression_templates blocks and apply_expression_template ops in files declaring esm < 0.4.0, with apply_expression_template_version_too_old naming every offending path. The rule is the expression_templates row of _VERSION_GATES.

Source

TypeScript

function rejectExpressionTemplatesPreV04(view: unknown): void

Reject apply_operator and operators in files declaring esm < 0.4.0. Operates on the pre-coercion JSON view.

Source

Python

reject_expression_templates_pre_v04(view: Any) -> None

Reject template constructs in files declaring esm < 0.4.0.

Mirrors the equivalent TS / Julia / Rust / Go checks for cross-binding-uniform diagnostics.

Source

Rust

Rust does not export this function.

Go

func RejectExpressionTemplatesPreV04(view map[string]any) error

RejectExpressionTemplatesPreV04 rejects operators blocks and apply_operator ops in files declaring esm < 0.4.0. Mirrors the equivalent TS / Python / Julia / Rust checks.

Source · Go docs