Browse Source

Fixed nullable position.

newNRvisualizers
Mike Krüger 14 years ago
parent
commit
aee84bdaa6
  1. 4
      ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs

4
ICSharpCode.NRefactory.CSharp/Parser/CSharpParser.cs

@ -156,9 +156,9 @@ namespace ICSharpCode.NRefactory.CSharp
var ccSpec = cc.Spec; var ccSpec = cc.Spec;
while (ccSpec != null) { while (ccSpec != null) {
if (ccSpec.IsNullable) { if (ccSpec.IsNullable) {
result.HasNullableSpecifier = true; result.AddChild (new CSharpTokenNode (Convert (ccSpec.Location), 1), ComposedType.NullableRole);
} else if (ccSpec.IsPointer) { } else if (ccSpec.IsPointer) {
result.PointerRank++; result.AddChild (new CSharpTokenNode (Convert (ccSpec.Location), 1), ComposedType.PointerRole);
} else { } else {
var location = LocationsBag.GetLocations (ccSpec); var location = LocationsBag.GetLocations (ccSpec);
var spec = new ArraySpecifier () { Dimensions = ccSpec.Dimension }; var spec = new ArraySpecifier () { Dimensions = ccSpec.Dimension };

Loading…
Cancel
Save