Browse Source

Fixed some comments.

pull/1/head
triton 13 years ago
parent
commit
497625bd67
  1. 4
      src/Generator/LibraryHelpers.cs
  2. 4
      src/Generator/Passes/FunctionToStaticMethodPass.cs

4
src/Generator/LibraryHelpers.cs

@ -18,12 +18,12 @@ namespace Cxxi @@ -18,12 +18,12 @@ namespace Cxxi
public interface ILibrary
{
/// <summary>
/// Do transformations that should happen before processing here.
/// Do transformations that should happen before passes are processed.
/// </summary>
void Preprocess(LibraryHelpers g);
/// <summary>
/// Do transformations that should happen after processing here.
/// Do transformations that should happen after passes are processed.
/// </summary>
void Postprocess(LibraryHelpers g);

4
src/Generator/Passes/FunctionToStaticMethodPass.cs

@ -26,11 +26,11 @@ namespace Cxxi.Passes @@ -26,11 +26,11 @@ namespace Cxxi.Passes
if (@class == null)
return false;
// Clean up the name of the function now that it will be an instance method.
// Clean up the name of the function now that it will be a static method.
function.Name = function.Name.Substring(@class.Name.Length);
function.ExplicityIgnored = true;
// Create a new fake method so it acts as an instance method.
// Create a new fake method so it acts as a static method.
var method = new Method()
{
Namespace = @class.Namespace,

Loading…
Cancel
Save