loom
1/*
2MIT License
3
4Copyright (c) 2019 МГТУ им. Н.Э. Баумана, кафедра ИУ-6, Михаил Фетисов,
5
6https://bmstu.codes/lsx/simodo/loom
7*/
8
9#include "simodo/ast/Node.h"
10
11namespace simodo::ast
12{
13void Node::swap(Node & node)
14{
15_branches.swap(node._branches);
16
17std::u16string host = node._host;
18OperationCode operation = node._operation;
19inout::Token token = node._token;
20inout::Token bound = node._bound;
21
22node._host = _host;
23node._operation = _operation;
24node._token = _token;
25node._bound = _bound;
26
27_host = host;
28_operation = operation;
29_token = token;
30_bound = bound;
31}
32
33}
34