buildMethod function

MethodNode buildMethod(
  1. List parts
)

Implementation

MethodNode buildMethod(List parts) {
  final result = MethodNode();
  addTo<Token>(result.selectorToken, parts[0]);
  addTo<VariableNode>(result.arguments, parts[0]);
  addTo<PragmaNode>(result.pragmas, parts[1]);
  addTo<VariableNode>(result.body.temporaries, parts[1][3]);
  addTo<IsStatement>(result.body.statements, parts[1][7]);
  addTo<Token>(result.body.periods, parts[1][7]);
  return result;
}