@@ -252,11 +252,6 @@ class CompositeActionImpl extends AstNodeImpl, TCompositeAction {
252
252
253
253
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
254
254
255
- // override AstNodeImpl getAChildNode() {
256
- // result = this.getInputs() or
257
- // result = this.getOutputs() or
258
- // result = this.getRuns()
259
- // }
260
255
override AstNodeImpl getParentNode ( ) { none ( ) }
261
256
262
257
override string getAPrimaryQlClass ( ) { result = "CompositeActionImpl" }
@@ -292,12 +287,6 @@ class WorkflowImpl extends AstNodeImpl, TWorkflowNode {
292
287
293
288
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
294
289
295
- // override AstNodeImpl getAChildNode() {
296
- // result = this.getAJob() or
297
- // result = this.getStrategy() or
298
- // result = this.getEnv() or
299
- // result = this.getPermissions()
300
- // }
301
290
override AstNodeImpl getParentNode ( ) { none ( ) }
302
291
303
292
override string getAPrimaryQlClass ( ) { result = "WorkflowImpl" }
@@ -306,8 +295,6 @@ class WorkflowImpl extends AstNodeImpl, TWorkflowNode {
306
295
307
296
override YamlMapping getNode ( ) { result = n }
308
297
309
- // /** Gets the `jobs` mapping from job IDs to job definitions in this workflow. */
310
- // YamlMapping getJobs() { result = this.asYamlMapping().lookup("jobs") }
311
298
/** Gets the 'global' `env` mapping in this workflow. */
312
299
EnvImpl getEnv ( ) { result .getNode ( ) = n .lookup ( "env" ) }
313
300
@@ -346,11 +333,6 @@ class ReusableWorkflowImpl extends AstNodeImpl, WorkflowImpl {
346
333
347
334
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
348
335
349
- // override AstNodeImpl getAChildNode() {
350
- // result = super.getAChildNode() or
351
- // result = this.getInputs() or
352
- // result = this.getOutputs()
353
- // }
354
336
OutputsImpl getOutputs ( ) { result .getNode ( ) = workflow_call .( YamlMapping ) .lookup ( "outputs" ) }
355
337
356
338
ExpressionImpl getAnOutputExpr ( ) { result = this .getOutputs ( ) .getAnOutputExpr ( ) }
@@ -378,7 +360,6 @@ class RunsImpl extends AstNodeImpl, TRunsNode {
378
360
379
361
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
380
362
381
- //override AstNodeImpl getAChildNode() { result = this.getAStep() }
382
363
override CompositeActionImpl getParentNode ( ) { result .getAChildNode ( ) = this }
383
364
384
365
override string getAPrimaryQlClass ( ) { result = "RunsImpl" }
@@ -450,7 +431,6 @@ class OutputsImpl extends AstNodeImpl, TOutputsNode {
450
431
451
432
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
452
433
453
- //override AstNodeImpl getAChildNode() { result = this.getAnOutputExpr() }
454
434
override AstNodeImpl getParentNode ( ) { result .getAChildNode ( ) = this }
455
435
456
436
override string getAPrimaryQlClass ( ) { result = "OutputsImpl" }
@@ -503,7 +483,6 @@ class StrategyImpl extends AstNodeImpl, TStrategyNode {
503
483
504
484
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
505
485
506
- //override ExpressionImpl getAChildNode() { result = this.getAMatrixVarExpr() }
507
486
override AstNodeImpl getParentNode ( ) { result .getAChildNode ( ) = this }
508
487
509
488
override string getAPrimaryQlClass ( ) { result = "StrategyImpl" }
@@ -557,10 +536,8 @@ class JobImpl extends AstNodeImpl, TJobNode {
557
536
workflow .getNode ( ) .lookup ( "jobs" ) .( YamlMapping ) .lookup ( jobId ) = n
558
537
}
559
538
560
- // TODO: REMOVE
561
539
override string toString ( ) { result = "Job: " + jobId }
562
540
563
- //override string toString() { result = n.toString() }
564
541
override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
565
542
566
543
override WorkflowImpl getParentNode ( ) { result .getAChildNode ( ) = this }
@@ -739,7 +716,6 @@ class UsesStepImpl extends StepImpl, UsesImpl {
739
716
result .getParentNode ( ) .getNode ( ) = n .lookup ( "with" ) .( YamlMapping ) .lookup ( key )
740
717
}
741
718
742
- // TODO: REMOVE
743
719
override string toString ( ) {
744
720
if exists ( this .getId ( ) ) then result = "Uses Step: " + this .getId ( ) else result = "Uses Step"
745
721
}
@@ -760,7 +736,6 @@ class ExternalJobImpl extends JobImpl, UsesImpl {
760
736
761
737
ExternalJobImpl ( ) { n .lookup ( "uses" ) = u }
762
738
763
- //override AstNodeImpl getAChildNode() { result.getNode() = n.getAChildNode*() }
764
739
override string getCallee ( ) {
765
740
if u .getValue ( ) .matches ( "./%" )
766
741
then result = u .getValue ( ) .regexpCapture ( pathUsesParser ( ) , 1 )
@@ -796,7 +771,6 @@ class RunImpl extends StepImpl {
796
771
797
772
ExpressionImpl getAnScriptExpr ( ) { result .getParentNode ( ) .getNode ( ) = script }
798
773
799
- // TODO: REMOVE
800
774
override string toString ( ) {
801
775
if exists ( this .getId ( ) ) then result = "Run Step: " + this .getId ( ) else result = "Run Step"
802
776
}
@@ -807,14 +781,6 @@ class RunImpl extends StepImpl {
807
781
* https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
808
782
*/
809
783
abstract class ContextExpressionImpl extends ExpressionImpl {
810
- // TODO: REMOVE
811
- // ContextExpressionImpl() {
812
- // expression
813
- // .regexpMatch([
814
- // stepsCtxRegex(), needsCtxRegex(), jobsCtxRegex(), envCtxRegex(), inputsCtxRegex(),
815
- // matrixCtxRegex()
816
- // ])
817
- // }
818
784
abstract string getFieldName ( ) ;
819
785
820
786
abstract AstNodeImpl getTarget ( ) ;
0 commit comments