MacRabbit

SXZone

JavaScriptAPI : TextActionContext : SXZoneTree : SXZone

An SXZone object represents a syntax zone in the current TextActionContext.

Read-only properties

  • range: returns the Range this zone spans
  • text: returns the string within this zone
  • parent: returns the SXZone parent for this zone; may return null if a top-level zone
  • childCount: returns the number of immediate children contained within this zone

Methods

childAtIndex(index)

Returns an SXZone. Accepts integer index from 0 to zone.childCount - 1.