use of dyvilx.tools.compiler.ast.expression.operator.IOperator in project Dyvil by Dyvil.
the class HeaderContext method putOperator.
private void putOperator(IOperator operator) {
if (operator.getType() != IOperator.INFIX) {
return;
}
final Name name = operator.getName();
if (this.infixOperatorMap == null) {
this.infixOperatorMap = new IdentityHashMap<>();
this.infixOperatorMap.put(name, operator);
return;
}
final IOperator existing = this.infixOperatorMap.get(name);
if (existing == null) {
this.infixOperatorMap.put(name, operator);
}
}