@ Override public void exitRange ( VersionParser . RangeContext ctx ) { Object o = stack . pop ( ) ; if ( o instanceof IVersion ) { //range = new SemanticVersionRange((SemanticVersion)o); range = new VersionSet ( ( IVersion ) o ) ; } else if ( o instanceof IVersionRange ) { range = ( IVersionRange ) o ; } }
Get whatever is on the stack and make a version range out of it