Skip to content

Commit

Permalink
fix: rename AstPhantomCommand to AstCommandSentinel
Browse files Browse the repository at this point in the history
  • Loading branch information
vberlier committed Nov 22, 2022
1 parent 2dc38dc commit 28cb612
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions mecha/ast.py
Expand Up @@ -3,7 +3,7 @@
"AstChildren",
"AstRoot",
"AstCommand",
"AstPhantomCommand",
"AstCommandSentinel",
"AstString",
"AstBool",
"AstNumber",
Expand Down Expand Up @@ -221,10 +221,10 @@ class AstCommand(AstNode):


@dataclass(frozen=True)
class AstPhantomCommand(AstCommand):
"""Ast phantom command node."""
class AstCommandSentinel(AstCommand):
"""Ast command sentinel node."""

identifier: str = "mecha:phantom"
identifier: str = "mecha:sentinel"
arguments: AstChildren[AstNode] = AstChildren([])

parser = None
Expand Down
4 changes: 2 additions & 2 deletions mecha/contrib/source_map.py
Expand Up @@ -20,7 +20,7 @@

from mecha import (
AstChildren,
AstPhantomCommand,
AstCommandSentinel,
AstRoot,
CompilationDatabase,
Mecha,
Expand Down Expand Up @@ -54,7 +54,7 @@ def source_map(ctx: Context, opts: SourceMapOptions):


@dataclass(frozen=True)
class AstSourceMap(AstPhantomCommand):
class AstSourceMap(AstCommandSentinel):
"""Ast source map node."""

header: str = required_field()
Expand Down

0 comments on commit 28cb612

Please sign in to comment.