Browse Source

fix bug in InsertMissingTokensDecorator: unbound generic types have an Identifier node that is null (thus frozen)

newNRILSpyDebugger
Siegfried Pammer 12 years ago
parent
commit
693898abad
  1. 3
      src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/InsertMissingTokensDecorator.cs

3
src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/InsertMissingTokensDecorator.cs

@ -93,7 +93,8 @@ namespace ICSharpCode.NRefactory.CSharp @@ -93,7 +93,8 @@ namespace ICSharpCode.NRefactory.CSharp
public override void WriteIdentifier(Identifier identifier)
{
identifier.SetStartLocation(locationProvider.Location);
if (!identifier.IsNull)
identifier.SetStartLocation(locationProvider.Location);
currentList.Add(identifier);
base.WriteIdentifier(identifier);
}

Loading…
Cancel
Save