contentEquals method

  1. @nonVirtual
bool contentEquals(
  1. AstNode other
)

Whether the content of this node is equal to the other node of the same type. The "content" refers to anything stored only in this node, children are ignored.

Implementation

@nonVirtual
bool contentEquals(AstNode other) {
  final checker = EqualityEnforcingVisitor(this, considerChildren: false);
  try {
    checker.visit(other, null);
    return true;
  } on NotEqualException {
    return false;
  }
}