File tree Expand file tree Collapse file tree
javascript/ql/lib/semmle/javascript Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,6 +21,8 @@ module Actions {
2121 }
2222
2323 /**
24+ * A YAML node that may contain sub-nodes.
25+ *
2426 * Actions are quite flexible in parsing YAML.
2527 *
2628 * For example:
@@ -48,6 +50,7 @@ module Actions {
4850 this instanceof YAMLScalar
4951 }
5052
53+ /** Gets sub-name identified by `name`. */
5154 YAMLNode getNode ( string name ) {
5255 exists ( YAMLMapping mapping |
5356 mapping = this and
@@ -68,6 +71,7 @@ module Actions {
6871 )
6972 }
7073
74+ /** Gets the number of elements in this mapping or sequence. */
7175 int getElementCount ( ) {
7276 exists ( YAMLMapping mapping |
7377 mapping = this and
@@ -113,6 +117,7 @@ module Actions {
113117
114118 On ( ) { workflow .lookup ( "on" ) = this }
115119
120+ /** Gets the workflow that this trigger is in. */
116121 Workflow getWorkflow ( ) { result = workflow }
117122 }
118123
@@ -283,6 +288,7 @@ module Actions {
283288
284289 Ref ( ) { with .lookup ( "ref" ) = this }
285290
291+ /** Gets the `with` field this field belongs to. */
286292 With getWith ( ) { result = with }
287293 }
288294
You can’t perform that action at this time.
0 commit comments