@@ -334,30 +334,26 @@ module JWTEncoding {
334334 * Extend this class to refine existing API models. If you want to model new APIs,
335335 * extend `JWTEncoding::Range` instead.
336336 */
337- class JWTEncoding extends DataFlow:: Node {
338- JWTEncoding:: Range range ;
339-
340- JWTEncoding ( ) { this = range }
341-
337+ class JWTEncoding extends DataFlow:: Node instanceof JWTEncoding:: Range {
342338 /**
343339 * Gets the argument containing the payload.
344340 */
345- DataFlow:: Node getPayload ( ) { result = range .getPayload ( ) }
341+ DataFlow:: Node getPayload ( ) { result = super .getPayload ( ) }
346342
347343 /**
348344 * Gets the argument containing the encoding key.
349345 */
350- DataFlow:: Node getKey ( ) { result = range .getKey ( ) }
346+ DataFlow:: Node getKey ( ) { result = super .getKey ( ) }
351347
352348 /**
353349 * Gets the algorithm Node used in the encoding.
354350 */
355- DataFlow:: Node getAlgorithm ( ) { result = range .getAlgorithm ( ) }
351+ DataFlow:: Node getAlgorithm ( ) { result = super .getAlgorithm ( ) }
356352
357353 /**
358354 * Tries to get the algorithm used in the encoding.
359355 */
360- string getAlgorithmString ( ) { result = range .getAlgorithmString ( ) }
356+ string getAlgorithmString ( ) { result = super .getAlgorithmString ( ) }
361357}
362358
363359/** Provides classes for modeling JWT decoding-related APIs. */
@@ -407,38 +403,34 @@ module JWTDecoding {
407403 * Extend this class to refine existing API models. If you want to model new APIs,
408404 * extend `JWTDecoding::Range` instead.
409405 */
410- class JWTDecoding extends DataFlow:: Node {
411- JWTDecoding:: Range range ;
412-
413- JWTDecoding ( ) { this = range }
414-
406+ class JWTDecoding extends DataFlow:: Node instanceof JWTDecoding:: Range {
415407 /**
416408 * Gets the argument containing the payload.
417409 */
418- DataFlow:: Node getPayload ( ) { result = range .getPayload ( ) }
410+ DataFlow:: Node getPayload ( ) { result = super .getPayload ( ) }
419411
420412 /**
421413 * Gets the argument containing the encoding key.
422414 */
423- DataFlow:: Node getKey ( ) { result = range .getKey ( ) }
415+ DataFlow:: Node getKey ( ) { result = super .getKey ( ) }
424416
425417 /**
426418 * Gets the algorithm Node used in the encoding.
427419 */
428- DataFlow:: Node getAlgorithm ( ) { result = range .getAlgorithm ( ) }
420+ DataFlow:: Node getAlgorithm ( ) { result = super .getAlgorithm ( ) }
429421
430422 /**
431423 * Tries to get the algorithm used in the encoding.
432424 */
433- string getAlgorithmString ( ) { result = range .getAlgorithmString ( ) }
425+ string getAlgorithmString ( ) { result = super .getAlgorithmString ( ) }
434426
435427 /**
436428 * Gets the options Node used in the encoding.
437429 */
438- DataFlow:: Node getOptions ( ) { result = range .getOptions ( ) }
430+ DataFlow:: Node getOptions ( ) { result = super .getOptions ( ) }
439431
440432 /**
441433 * Checks if the signature gets verified while decoding.
442434 */
443- predicate verifiesSignature ( ) { range .verifiesSignature ( ) }
435+ predicate verifiesSignature ( ) { super .verifiesSignature ( ) }
444436}
0 commit comments