Navigation Menu

Skip to content

Commit

Permalink
Bring in steps for backwards compatability (#257)
Browse files Browse the repository at this point in the history
* Bring in steps for backwards compat.

* scalafmt.

* Fix build.
  • Loading branch information
fabsx00 committed Jul 17, 2019
1 parent fa586c9 commit 26c5d84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Expand Up @@ -49,6 +49,11 @@ trait AstNodeBase[NodeType <: nodes.AstNode, Labels <: HList] { this: NodeSteps[
def isExpression: Expression[Labels] = new Expression[Labels](
raw.filterOnEnd(_.isInstanceOf[nodes.Expression]).cast[nodes.Expression]
)
@deprecated("replaced by isCall", "July 19")
def call: Call[Labels] = isCall

@deprecated("replaced by isLiteral", "July 19")
def literal: Literal[Labels] = isLiteral

/**
* Traverse only to AST nodes that are calls
Expand Down
Expand Up @@ -277,7 +277,7 @@ class Method[Labels <: HList](override val raw: GremlinScala.Aux[nodes.Method, L
/**
* Traverse to literals of method
* */
def literal: Literal[Labels] =
override def literal: Literal[Labels] =
new Literal[Labels](raw.out(EdgeTypes.CONTAINS).hasLabel(NodeTypes.LITERAL).cast[nodes.Literal])

def topLevelExpressions: Expression[Labels] =
Expand Down

0 comments on commit 26c5d84

Please sign in to comment.