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
public interface ILibrary public interface ILibrary
{ {
/// <summary> /// <summary>
/// Do transformations that should happen before processing here. /// Do transformations that should happen before passes are processed.
/// </summary> /// </summary>
void Preprocess(LibraryHelpers g); void Preprocess(LibraryHelpers g);
/// <summary> /// <summary>
/// Do transformations that should happen after processing here. /// Do transformations that should happen after passes are processed.
/// </summary> /// </summary>
void Postprocess(LibraryHelpers g); void Postprocess(LibraryHelpers g);

4
src/Generator/Passes/FunctionToStaticMethodPass.cs

@ -26,11 +26,11 @@ namespace Cxxi.Passes
if (@class == null) if (@class == null)
return false; 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.Name = function.Name.Substring(@class.Name.Length);
function.ExplicityIgnored = true; 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() var method = new Method()
{ {
Namespace = @class.Namespace, Namespace = @class.Namespace,

Loading…
Cancel
Save