translateTo<A extends AST> method

A translateTo<A extends AST>(
  1. Context other,
  2. A ast
)

Translate the given AST element to another context.

Implementation

A translateTo<A extends AST>(Context other, A ast) {
  return other._getAST(_translateTo(other, ast, _createAST(ast))) as A;
}