AstCreatorBase

abstract class AstCreatorBase(filename: String)
class Object
trait Matchable
class Any

Value members

Abstract methods

def createAst(): DiffGraphBuilder

Concrete methods

def absolutePath(filename: String): String

Absolute path for the given file name

Absolute path for the given file name

def callAst(callNode: NewCall, arguments: List[Ast], receiver: Option[Ast]): Ast

For a given call node, arguments, and optionally, a receiver, create an AST that represents the call site. The main purpose of this method is to automatically assign the correct argument indices.

For a given call node, arguments, and optionally, a receiver, create an AST that represents the call site. The main purpose of this method is to automatically assign the correct argument indices.

def globalNamespaceBlock(): NewNamespaceBlock

Create a global namespace block for the given filename

Create a global namespace block for the given filename

def methodAst(method: NewMethod, parameters: Seq[NewMethodParameterIn], body: Ast, methodReturn: NewMethodReturn): Ast

Creates an AST that represents an entire method, including its content.

Creates an AST that represents an entire method, including its content.

def methodReturnNode(line: Option[Integer], column: Option[Integer], tpe: String): NewMethodReturn

Create a method return node

Create a method return node

def methodStubAst(method: NewMethod, parameters: Seq[NewMethodParameterIn], methodReturn: NewMethodReturn): Ast

Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.

Creates an AST that represents a method stub, containing information about the method, its parameters, and the return type.

def withIndex[T, X](nodes: Seq[T])(f: (T, Int) => X): Seq[X]
def withIndex[T, X](nodes: Array[T])(f: (T, Int) => X): Seq[X]

Concrete fields

val diffGraph: DiffGraphBuilder