extractSourceLocation

fun PartiqlAst.PartiqlAstNode.extractSourceLocation(): MetaContainer

Returns a MetaContainer with only the source location of the receiver MetaContainer, if present.

Avoids creating a new MetaContainer if its not needed.