equals abstract method

bool equals(
  1. FluentNode other, {
  2. bool ignoreSpans = true,
})

Structural equality.

When ignoreSpans is true (the default), two ASTs from differently- positioned sources compare equal as long as their structure matches — useful for testing parser output against expected shapes regardless of whitespace placement. Set false for a strict, position-aware comparison that requires every Span to match.

Implementation

bool equals(FluentNode other, {bool ignoreSpans = true});