isPatternNonLocal

@JvmName(name = "isPatternNonLocal")
actual external fun isPatternNonLocal(index: UInt): Boolean(source)

Check if the pattern with the given index is "non-local".

A non-local pattern has multiple root nodes and can match within a repeating sequence of nodes, as specified by the grammar. Non-local patterns disable certain optimizations that would otherwise be possible when executing a query on a specific range of a syntax tree.

Throws

If the index exceeds the pattern count.

expect fun isPatternNonLocal(index: UInt): Boolean(source)

Check if the pattern with the given index is "non-local".

A non-local pattern has multiple root nodes and can match within a repeating sequence of nodes, as specified by the grammar. Non-local patterns disable certain optimizations that would otherwise be possible when executing a query on a specific range of a syntax tree.

Throws

If the index exceeds the pattern count.

@JvmName(name = "isPatternNonLocal")
actual external fun isPatternNonLocal(index: UInt): Boolean(source)

Check if the pattern with the given index is "non-local".

A non-local pattern has multiple root nodes and can match within a repeating sequence of nodes, as specified by the grammar. Non-local patterns disable certain optimizations that would otherwise be possible when executing a query on a specific range of a syntax tree.

Throws

If the index exceeds the pattern count.

actual fun isPatternNonLocal(index: UInt): Boolean(source)

Check if the pattern with the given index is "non-local".

A non-local pattern has multiple root nodes and can match within a repeating sequence of nodes, as specified by the grammar. Non-local patterns disable certain optimizations that would otherwise be possible when executing a query on a specific range of a syntax tree.

Throws

If the index exceeds the pattern count.