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. 1
      src/Libraries/NRefactory/ICSharpCode.NRefactory.CSharp/OutputVisitor/InsertMissingTokensDecorator.cs

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

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

Loading…
Cancel
Save