Skip to content

Commit

Permalink
Renamed ASTContext parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Jun 23, 2014
1 parent ca6884c commit 7f927db
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions examples/SDL/SDL.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,18 +54,18 @@ public void Preprocess(Driver driver, ASTContext ctx)
ctx.IgnoreFunctionWithName("SDL_Error");
}

public void Postprocess(Driver driver, ASTContext lib)
public void Postprocess(Driver driver, ASTContext ctx)
{
lib.SetNameOfEnumWithName("PIXELTYPE", "PixelType");
lib.SetNameOfEnumWithName("BITMAPORDER", "BitmapOrder");
lib.SetNameOfEnumWithName("PACKEDORDER", "PackedOrder");
lib.SetNameOfEnumWithName("ARRAYORDER", "ArrayOrder");
lib.SetNameOfEnumWithName("PACKEDLAYOUT", "PackedLayout");
lib.SetNameOfEnumWithName("PIXELFORMAT", "PixelFormats");
lib.SetNameOfEnumWithName("assert_state", "AssertState");
lib.SetClassBindName("assert_data", "AssertData");
lib.SetNameOfEnumWithName("eventaction", "EventAction");
lib.SetNameOfEnumWithName("LOG_CATEGORY", "LogCategory");
ctx.SetNameOfEnumWithName("PIXELTYPE", "PixelType");
ctx.SetNameOfEnumWithName("BITMAPORDER", "BitmapOrder");
ctx.SetNameOfEnumWithName("PACKEDORDER", "PackedOrder");
ctx.SetNameOfEnumWithName("ARRAYORDER", "ArrayOrder");
ctx.SetNameOfEnumWithName("PACKEDLAYOUT", "PackedLayout");
ctx.SetNameOfEnumWithName("PIXELFORMAT", "PixelFormats");
ctx.SetNameOfEnumWithName("assert_state", "AssertState");
ctx.SetClassBindName("assert_data", "AssertData");
ctx.SetNameOfEnumWithName("eventaction", "EventAction");
ctx.SetNameOfEnumWithName("LOG_CATEGORY", "LogCategory");
}

static class Program
Expand Down
2 changes: 1 addition & 1 deletion src/CppParser/Bindings/ParserGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public void Preprocess(Driver driver, ASTContext ctx)
ctx.RenameNamespace("CppSharp::CppParser", "Parser");
}

public void Postprocess(Driver driver, ASTContext lib)
public void Postprocess(Driver driver, ASTContext ctx)
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/Generator.Tests/GeneratorTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public virtual void Preprocess(Driver driver, ASTContext ctx)
{
}

public virtual void Postprocess(Driver driver, ASTContext lib)
public virtual void Postprocess(Driver driver, ASTContext ctx)
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/Generator/Library.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public interface ILibrary
/// <summary>
/// Do transformations that should happen after passes are processed.
/// </summary>
void Postprocess(Driver driver, ASTContext lib);
void Postprocess(Driver driver, ASTContext ctx);

/// <summary>
/// Setup the driver options here.
Expand Down
2 changes: 1 addition & 1 deletion tests/CSharpTemp/CSharpTemp.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public override void Preprocess(Driver driver, ASTContext ctx)
ctx.SetClassAsValueType("TestCopyConstructorVal");
}

public override void Postprocess(Driver driver, ASTContext lib)
public override void Postprocess(Driver driver, ASTContext ctx)
{
new CaseRenamePass(
RenameTargets.Function | RenameTargets.Method | RenameTargets.Property | RenameTargets.Delegate,
Expand Down

0 comments on commit 7f927db

Please sign in to comment.