Skip to content

Commit 17573af

Browse files
committed
JS: Hyphenate type-tracking when used as adjective
1 parent ad67015 commit 17573af

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

docs/language/learn-ql/javascript/type-tracking.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ Tutorial: API modelling using type tracking
22
===========================================
33

44
This tutorial demonstrates how to build a simple model of the Firebase API in QL
5-
using the JavaScript type tracking library.
5+
using the JavaScript type-tracking library.
66

7-
The type tracking library makes it possible to track values through properties and function calls,
7+
The type-tracking library makes it possible to track values through properties and function calls,
88
usually to recognize method calls and properties accessed on a specific type of object.
99

1010
This is an advanced topic and is intended for readers already familiar with the
@@ -280,10 +280,10 @@ It's been modified slightly to handle a bit more of the API, which is out of sco
280280
Tracking associated data
281281
------------------------
282282

283-
By adding extra parameters to the type tracking predicate we can carry along
283+
By adding extra parameters to the type-tracking predicate we can carry along
284284
extra bits of information about the result.
285285

286-
For example, here's a type tracking version of ``firebaseRef()``, which
286+
For example, here's a type-tracking version of ``firebaseRef()``, which
287287
tracks the string that was passed to the ``ref`` call:
288288

289289
.. code-block:: ql
@@ -314,7 +314,7 @@ So now we can use ``firebaseSetterCall("forecast")`` to find assignments to the
314314
Back-tracking callbacks
315315
-----------------------
316316

317-
The type tracking predicates we've seen above all use *forward* tracking.
317+
The type-tracking predicates we've seen above all use *forward* tracking.
318318
That is, they all start with some value of interest and ask "where does this flow?".
319319

320320
Sometimes it's more useful to work backwards, starting at the desired end-point and asking "what flows to here?".
@@ -394,7 +394,7 @@ With this addition, ``firebaseDatabaseRead("forecast")`` finds the call to ``sna
394394
Summary
395395
-------
396396

397-
This covers the use of the type tracking library. To recap, use this template to define forward type tracking predicates:
397+
This covers the use of the type-tracking library. To recap, use this template to define forward type-tracking predicates:
398398

399399
.. code-block:: ql
400400
@@ -411,7 +411,7 @@ This covers the use of the type tracking library. To recap, use this template to
411411
result = myType(TypeTracker::end())
412412
}
413413
414-
Use this template to define backward type tracking predicates:
414+
Use this template to define backward type-tracking predicates:
415415

416416
.. code-block:: ql
417417
@@ -465,8 +465,8 @@ problem, each with their own tradeoffs.
465465

466466
Type tracking can be used in any number of predicates, which may depend on each other
467467
in fairly unrestricted ways. The result of one predicate may be the starting
468-
point for another. Type tracking predicates may be mutually recursive.
469-
Type tracking predicates can have any number of extra parameters, making it possible, but optional,
468+
point for another. Type-tracking predicates may be mutually recursive.
469+
Type-tracking predicates can have any number of extra parameters, making it possible, but optional,
470470
to construct source/sink pairs. Omitting source/sink pairs can be useful when there is a huge number
471471
of sources and sinks.
472472

0 commit comments

Comments
 (0)