function getInTypeScope(key) {
    return stack[stack.length - 1][key];
  }
Gets a node from the scope.
@param {string} key The name of the identifier to access.
@returns {ASTNode} The ASTNode associated with the given identifier.