Browse Source

Switch the type checkers to the AstVisitor interface.

pull/1/head
triton 13 years ago
parent
commit
dbf927e73d
  1. 6
      src/Generator/Types/Types.cs

6
src/Generator/Types/Types.cs

@ -7,7 +7,7 @@ namespace Cxxi
/// <summary> /// <summary>
/// This type checker is used to check if a type is complete. /// This type checker is used to check if a type is complete.
/// </summary> /// </summary>
public class TypeCompletionChecker : TypeChecker public class TypeCompletionChecker : AstVisitor
{ {
public override bool VisitDeclaration(Declaration decl) public override bool VisitDeclaration(Declaration decl)
{ {
@ -51,7 +51,7 @@ namespace Cxxi
/// <summary> /// <summary>
/// This type checker is used to check if a type is ignored. /// This type checker is used to check if a type is ignored.
/// </summary> /// </summary>
public class TypeIgnoreChecker : TypeChecker public class TypeIgnoreChecker : AstVisitor
{ {
public override bool VisitDeclaration(Declaration decl) public override bool VisitDeclaration(Declaration decl)
{ {
@ -99,7 +99,7 @@ namespace Cxxi
/// that a file needs to be reference something that has not been declared /// that a file needs to be reference something that has not been declared
/// yet. In that case, we need to declare it before referencing it. /// yet. In that case, we need to declare it before referencing it.
/// </summary> /// </summary>
class TypeRefsVisitor : TypeChecker class TypeRefsVisitor : AstVisitor
{ {
public ISet<Declaration> ForwardReferences; public ISet<Declaration> ForwardReferences;

Loading…
Cancel
Save