public override bool Equals(object obj) { return(obj is Span other && Kind.Equals(other.Kind) && EditHandler.Equals(other.EditHandler) && ChunkGenerator.Equals(other.ChunkGenerator) && Tokens.SequenceEqual(other.Tokens, SyntaxTokenComparer.Default)); }
/// <summary> /// Checks that the specified span is equivalent to the other in that it has the same start point and content. /// </summary> public override bool EquivalentTo(SyntaxTreeNode node) { return(node is Span other && Kind.Equals(other.Kind) && Start.Equals(other.Start) && EditHandler.Equals(other.EditHandler) && string.Equals(other.Content, Content, StringComparison.Ordinal)); }
public override bool Equals(object obj) { Span other = obj as Span; return(other != null && Kind.Equals(other.Kind) && EditHandler.Equals(other.EditHandler) && CodeGenerator.Equals(other.CodeGenerator) && Symbols.SequenceEqual(other.Symbols)); }
public override bool Equals(object obj) { var other = obj as Span; return(other != null && Kind.Equals(other.Kind) && EditHandler.Equals(other.EditHandler) && ChunkGenerator.Equals(other.ChunkGenerator) && Tokens.SequenceEqual(other.Tokens)); }
/// <summary> /// Checks that the specified span is equivalent to the other in that it has the same start point and content. /// </summary> public override bool EquivalentTo(SyntaxTreeNode node) { var other = node as Span; return(other != null && Kind.Equals(other.Kind) && Start.Equals(other.Start) && EditHandler.Equals(other.EditHandler) && String.Equals(other.Content, Content, StringComparison.Ordinal)); }