Browse Source

newNR: fixed build errors in AvalonEdit.AddIn and CSharpBinding.

newNRvisualizers
Daniel Grunwald 14 years ago
parent
commit
fa7e478101
  1. 10
      ICSharpCode.NRefactory/CSharp/Ast/AstLocation.cs
  2. 4
      ICSharpCode.NRefactory/ICSharpCode.NRefactory.csproj

10
ICSharpCode.NRefactory/CSharp/Ast/AstLocation.cs

@ -133,5 +133,15 @@ namespace ICSharpCode.NRefactory.CSharp @@ -133,5 +133,15 @@ namespace ICSharpCode.NRefactory.CSharp
{
return !(left < right);
}
public static implicit operator AstLocation(ICSharpCode.Editor.TextLocation location)
{
return new AstLocation(location.Line, location.Column);
}
public static implicit operator ICSharpCode.Editor.TextLocation(AstLocation location)
{
return new ICSharpCode.Editor.TextLocation(location.Line, location.Column);
}
}
}

4
ICSharpCode.NRefactory/ICSharpCode.NRefactory.csproj

@ -421,6 +421,10 @@ @@ -421,6 +421,10 @@
<Project>{D68133BD-1E63-496E-9EDE-4FBDBF77B486}</Project>
<Name>Mono.Cecil</Name>
</ProjectReference>
<ProjectReference Include="..\ICSharpCode.Editor\ICSharpCode.Editor.csproj">
<Project>{F054A788-B591-4561-A8BA-AE745BBEB817}</Project>
<Name>ICSharpCode.Editor</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>
Loading…
Cancel
Save