diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-11 10:12:09 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-05-11 10:12:09 +0200 |
commit | 4f5504d75359bc182fa25f0dc0f85354241c4f7f (patch) | |
tree | f8c509836d17103984cca763b0455e9442976175 /config-model/src/main/javacc | |
parent | 631c539a74a1500b7956071e1ccf375e45ceca7b (diff) |
Key on Reference
Diffstat (limited to 'config-model/src/main/javacc')
-rw-r--r-- | config-model/src/main/javacc/IntermediateParser.jj | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config-model/src/main/javacc/IntermediateParser.jj b/config-model/src/main/javacc/IntermediateParser.jj index 240c89d3171..c6898cdad0f 100644 --- a/config-model/src/main/javacc/IntermediateParser.jj +++ b/config-model/src/main/javacc/IntermediateParser.jj @@ -2448,7 +2448,7 @@ void constant(ParsedSchema schema, ParsedRankProfile profile) : LOOKAHEAD(4) ( ( type = valueType(name) )? <COLON> (<NL>)* ( value = tensorValue(type) | valuePath = fileItem()) { if (value != null) - profile.addConstant(name.simpleArgument().get(), new RankProfile.Constant(name, value)); + profile.addConstant(name, new RankProfile.Constant(name, value)); else schema.addRankingConstant(new RankingConstant(name.simpleArgument().get(), type, valuePath, DistributableResource.PathType.FILE)); // TODO JON: Move to RankProfile } @@ -2478,7 +2478,7 @@ void constantValue(ParsedRankProfile profile, Reference name) : } { <COLON> ( value = <DOUBLE> | value = <INTEGER> | value = <IDENTIFIER> ) - { profile.addConstant(name.simpleArgument().get(), new RankProfile.Constant(name, Tensor.from(value.image))); } + { profile.addConstant(name, new RankProfile.Constant(name, Tensor.from(value.image))); } } // Deprecated form @@ -2491,7 +2491,7 @@ void constantTensor(ParsedRankProfile profile, Reference name) : <LBRACE> (<NL>)* (( tensorString = tensorValuePrefixedByValue() | type = tensorTypeWithPrefix(constantTensorErrorMessage(profile.name(), name)) ) (<NL>)* )* <RBRACE> - { profile.addConstant(name.simpleArgument().get(), + { profile.addConstant(name, new RankProfile.Constant(name, type != null ? Tensor.from(type, tensorString) : Tensor.from(tensorString))); } } |