@@ -18,8 +18,7 @@ module JsonSchema {
1818 }
1919
2020 /** A data flow node that is used a JSON schema. */
21- abstract class SchemaRoot extends DataFlow:: Node {
22- }
21+ abstract class SchemaRoot extends DataFlow:: Node { }
2322
2423 /** An object literal with a `$schema` property indicating it is the root of a JSON schema. */
2524 private class SchemaNodeByTag extends SchemaRoot , DataFlow:: ObjectLiteralNode {
@@ -35,9 +34,7 @@ module JsonSchema {
3534 or
3635 result = getAPartOfJsonSchema ( t .continue ( ) ) .getAPropertySource ( )
3736 or
38- exists ( DataFlow:: TypeBackTracker t2 |
39- result = getAPartOfJsonSchema ( t2 ) .backtrack ( t2 , t )
40- )
37+ exists ( DataFlow:: TypeBackTracker t2 | result = getAPartOfJsonSchema ( t2 ) .backtrack ( t2 , t ) )
4138 }
4239
4340 /** Gets a data flow node that is part of a JSON schema. */
@@ -68,7 +65,7 @@ module JsonSchema {
6865 }
6966
7067 /**
71- * Gets an API node for a function produced by `new Ajv().compile()` or similar.
68+ * Gets an API node for a function produced by `new Ajv().compile()` or similar.
7269 *
7370 * Note that this does not include the instance method `new Ajv().validate` as its
7471 * signature is different.
@@ -83,9 +80,7 @@ module JsonSchema {
8380 * Gets an API node that refers to an error produced by this Ajv instance.
8481 */
8582 API:: Node getAValidationError ( ) {
86- exists ( API:: Node base |
87- base = [ ref ( ) , getAValidationFunction ( ) ]
88- |
83+ exists ( API:: Node base | base = [ ref ( ) , getAValidationFunction ( ) ] |
8984 result = base .getMember ( "errors" )
9085 or
9186 result = base .getMember ( "errorsText" ) .getReturn ( )
@@ -122,7 +117,12 @@ module JsonSchema {
122117
123118 private class AjvSchemaNode extends SchemaRoot {
124119 AjvSchemaNode ( ) {
125- this = any ( Instance i ) .ref ( ) .getMember ( [ "addSchema" , "validate" , "compile" , "compileAsync" ] ) .getParameter ( 0 ) .getARhs ( )
120+ this =
121+ any ( Instance i )
122+ .ref ( )
123+ .getMember ( [ "addSchema" , "validate" , "compile" , "compileAsync" ] )
124+ .getParameter ( 0 )
125+ .getARhs ( )
126126 }
127127 }
128128 }
0 commit comments