Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ebussieres authored Jul 25, 2020
1 parent d6435f7 commit bf76894
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions docs/src/orchid/resources/wiki/guide/extending-pebble.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,13 @@ public class AdditionOperator implements BinaryOperator {
return "+";
}

public Class<? extends BinaryExpression<?>> getNodeClass(){
return AdditionExpression.class;
}
public BinaryExpression<?> getInstance() {
return new AddExpression();
}

public BinaryOperatorType getType() {
return BinaryOperatorType.NORMAL;
}

public Associativity getAssociativity(){
return Associativity.LEFT;
Expand Down Expand Up @@ -308,7 +312,7 @@ public class DefaultAttributeResolver implements AttributeResolver {
String filename,
int lineNumber) {
if (instance instanceof CustomObject) {
return "customValue"
return "customValue";
}
return null;
}
Expand Down

0 comments on commit bf76894

Please sign in to comment.