argumentsOfInterestFor method

Map argumentsOfInterestFor(
  1. MethodInvocation node
)

Return the arguments that affect this SubMessage as a map of argument names and values.

Implementation

Map argumentsOfInterestFor(MethodInvocation node) {
  var basicArguments = node.argumentList.arguments;
  var others = basicArguments.where((each) => each is NamedExpression);
  return new Map.fromIterable(others,
      key: (node) => node.name.label.token.value(),
      value: (node) => node.expression);
}