<commit_before>import ceylon.ast.core {
    Node
}

import com.redhat.ceylon.compiler.typechecker.tree {
    TcNode=Node
}
import com.vasileff.ceylon.dart.nodeinfo {
    keys
}

shared
void augmentNode(TcNode tcNode, Node node) {
    node.put(keys.location, tcNode.location);
    node.put(keys.tcNode, tcNode);
}<commit_msg>hack in missing info for Tree.SequencedArgument<commit_after>import ceylon.ast.core {
    Node,
    PositionalArguments
}
import ceylon.interop.java {
    CeylonIterable
}

import com.redhat.ceylon.compiler.typechecker.tree {
    TcNode=Node,
    Tree
}
import com.vasileff.ceylon.dart.nodeinfo {
    keys
}

shared
void augmentNode(TcNode tcNode, Node node) {
    node.put(keys.location, tcNode.location);
    node.put(keys.tcNode, tcNode);

    // hack to populate info for synthetic node
    if (is PositionalArguments node,
        is Tree.SequencedArgument sa = node.argumentList.get(keys.tcNode),
            !sa.token exists) {
        sa.scope = tcNode.scope;
        sa.unit = tcNode.unit;
        sa.token = tcNode.token;
        sa.endToken = tcNode.endToken;
        for (error in CeylonIterable(tcNode.errors)) {
            sa.addError(error);
        }
    }
}
{'fraction_non_alphanumeric': 0.10758965804837364, 'fraction_numerical': 0.0, 'mean_word_length': 2.9215686274509802, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5147532', 'n_tokens_mistral': 415, 'n_tokens_neox': 412, 'n_words': 78}