if(ambigParsedParameterResult instanceof IFunctionParameter) {
nodeToCompareAgainst = reparseAsFunctionParam ? (ASTNode) ambigParsedParameterResult : null;
} else if(ambigParsedParameterResult instanceof TemplateParameter) {
nodeToCompareAgainst = !reparseAsFunctionParam ? (ASTNode) ambigParsedParameterResult : null;
} else {
AmbiguousParameter ambigParsedParameter = (AmbiguousParameter) ambigParsedParameterResult;
nodeToCompareAgainst = reparseAsFunctionParam ?
ambigParsedParameter.convertToFunction().asNode() : ambigParsedParameter.convertToTemplate();
}
if(nodeToCompareAgainst != null) {
assertTrue(unambigParser.lookAhead() == DeeTokens.EOF);
DeeParsingChecks.checkNodeEquality(unambigParsedParameter.asNode(), nodeToCompareAgainst);