@Test public void not_originated_from_undefined() throws Exception { IdentifierTree undefined = identifier("undefined"); assertThat(IdentifierProgramPoint.originatesFrom(undefined)).isFalse(); }
public static boolean originatesFrom(Tree element) { return element.is(Kind.IDENTIFIER_REFERENCE) && !LiteralProgramPoint.isUndefined(element); }
IdentifierProgramPoint implements ProgramPoint { public static boolean originatesFrom(Tree element) { return element.is(Kind.IDENTIFIER_REFERENCE) && !LiteralProgramPoint.isUndefined(element); } }
IdentifierProgramPoint implements ProgramPoint { public static boolean originatesFrom(Tree element) { return element.is(Kind.IDENTIFIER_REFERENCE) && !LiteralProgramPoint.isUndefined(element); } IdentifierProgramPoint(Tree tree, SymbolicExecution execution); }
IdentifierProgramPoint implements ProgramPoint { public static boolean originatesFrom(Tree element) { return element.is(Kind.IDENTIFIER_REFERENCE) && !LiteralProgramPoint.isUndefined(element); } IdentifierProgramPoint(Tree tree, SymbolicExecution execution); @Override Optional<ProgramState> execute(ProgramState state); static boolean originatesFrom(Tree element); }
IdentifierProgramPoint implements ProgramPoint { public static boolean originatesFrom(Tree element) { return element.is(Kind.IDENTIFIER_REFERENCE) && !LiteralProgramPoint.isUndefined(element); } IdentifierProgramPoint(Tree tree, SymbolicExecution execution); @Override Optional<ProgramState> execute(ProgramState state); static boolean originatesFrom(Tree element);  }