From 9b5fdd94f702fdeea279a10cf4337e2a06fb63b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Mon, 14 Feb 2011 15:05:11 +0100 Subject: [PATCH] fixed endlocation bug. --- ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs b/ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs index f0be55c98f..6bc7d0f733 100644 --- a/ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs +++ b/ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs @@ -56,7 +56,7 @@ namespace ICSharpCode.NRefactory.CSharp } public override AstLocation EndLocation { get { - return new AstLocation (Location.Line, Location.Column + Keyword != null ? Keyword.Length : 0); + return new AstLocation (Location.Line, Location.Column + (Keyword != null ? Keyword.Length : 0)); } }