From a55cbb43f7874e2ba575462474b6895800adec3a Mon Sep 17 00:00:00 2001 From: mike <@192.168.0.102> Date: Sat, 3 Mar 2012 10:15:46 +0100 Subject: [PATCH] Semantic change: Contains now excludes the end location. --- ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs b/ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs index 6134230e6d..411579d8be 100644 --- a/ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs +++ b/ICSharpCode.NRefactory.CSharp/Ast/AstNode.cs @@ -662,11 +662,11 @@ namespace ICSharpCode.NRefactory.CSharp /// Returns true, if the given coordinates are in the node. /// /// - /// True, if location is between StartLocation and EndLocation (inclusive); otherwise, false. + /// True, if location is between StartLocation and EndLocation (exclusive); otherwise, false. /// public bool Contains (TextLocation location) { - return this.StartLocation <= location && location <= this.EndLocation; + return this.StartLocation <= location && location < this.EndLocation; } public override void AddAnnotation (object annotation)