Browse Source

fixed endlocation bug.

newNRvisualizers
Mike Krüger 15 years ago
parent
commit
9b5fdd94f7
  1. 2
      ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs

2
ICSharpCode.NRefactory/CSharp/Ast/PrimitiveType.cs

@ -56,7 +56,7 @@ namespace ICSharpCode.NRefactory.CSharp @@ -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));
}
}

Loading…
Cancel
Save