aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java
diff options
context:
space:
mode:
authorHarald Musum <musum@yahoo-inc.com>2018-02-21 23:43:02 +0100
committerGitHub <noreply@github.com>2018-02-21 23:43:02 +0100
commitfdff142dab4a75ace0623c2c8bf513a0a4597aca (patch)
tree0101a275869dd270a1609d1199381e0137e5d1f6 /searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java
parent2238f0d8d3b8a07e5e9d0ce1a01fc7f3e149cece (diff)
Revert "Bratseth/typecheck all 3"
Diffstat (limited to 'searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java')
-rwxr-xr-xsearchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java
index f1adf331630..f55ed59b65c 100755
--- a/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java
+++ b/searchlib/src/main/java/com/yahoo/searchlib/rankingexpression/rule/NameNode.java
@@ -1,7 +1,6 @@
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.rankingexpression.rule;
-import com.yahoo.searchlib.rankingexpression.Reference;
import com.yahoo.searchlib.rankingexpression.evaluation.Context;
import com.yahoo.searchlib.rankingexpression.evaluation.Value;
import com.yahoo.tensor.TensorType;
@@ -15,7 +14,6 @@ import java.util.Deque;
*
* @author Simon Thoresen
*/
-// TODO: This is achieved by ReferenceNode in almost all cases - remove this
public final class NameNode extends ExpressionNode {
private final String name;
@@ -34,7 +32,7 @@ public final class NameNode extends ExpressionNode {
}
@Override
- public TensorType type(TypeContext<Reference> context) { throw new RuntimeException("Named nodes can not have a type"); }
+ public TensorType type(TypeContext context) { throw new RuntimeException("Named nodes can not have a type"); }
@Override
public Value evaluate(Context context) {