Ejemplo n.º 1
0
 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));
 }
Ejemplo n.º 2
0
 /// <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));
 }
Ejemplo n.º 3
0
        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));
        }
Ejemplo n.º 4
0
        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));
        }
Ejemplo n.º 5
0
Archivo: Span.cs Proyecto: yy1987/Razor
        /// <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));
        }