@@ -252,11 +252,6 @@ class CompositeActionImpl extends AstNodeImpl, TCompositeAction {
252252
253253 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
254254
255- // override AstNodeImpl getAChildNode() {
256- // result = this.getInputs() or
257- // result = this.getOutputs() or
258- // result = this.getRuns()
259- // }
260255 override AstNodeImpl getParentNode ( ) { none ( ) }
261256
262257 override string getAPrimaryQlClass ( ) { result = "CompositeActionImpl" }
@@ -292,12 +287,6 @@ class WorkflowImpl extends AstNodeImpl, TWorkflowNode {
292287
293288 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
294289
295- // override AstNodeImpl getAChildNode() {
296- // result = this.getAJob() or
297- // result = this.getStrategy() or
298- // result = this.getEnv() or
299- // result = this.getPermissions()
300- // }
301290 override AstNodeImpl getParentNode ( ) { none ( ) }
302291
303292 override string getAPrimaryQlClass ( ) { result = "WorkflowImpl" }
@@ -306,8 +295,6 @@ class WorkflowImpl extends AstNodeImpl, TWorkflowNode {
306295
307296 override YamlMapping getNode ( ) { result = n }
308297
309- // /** Gets the `jobs` mapping from job IDs to job definitions in this workflow. */
310- // YamlMapping getJobs() { result = this.asYamlMapping().lookup("jobs") }
311298 /** Gets the 'global' `env` mapping in this workflow. */
312299 EnvImpl getEnv ( ) { result .getNode ( ) = n .lookup ( "env" ) }
313300
@@ -346,11 +333,6 @@ class ReusableWorkflowImpl extends AstNodeImpl, WorkflowImpl {
346333
347334 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
348335
349- // override AstNodeImpl getAChildNode() {
350- // result = super.getAChildNode() or
351- // result = this.getInputs() or
352- // result = this.getOutputs()
353- // }
354336 OutputsImpl getOutputs ( ) { result .getNode ( ) = workflow_call .( YamlMapping ) .lookup ( "outputs" ) }
355337
356338 ExpressionImpl getAnOutputExpr ( ) { result = this .getOutputs ( ) .getAnOutputExpr ( ) }
@@ -378,7 +360,6 @@ class RunsImpl extends AstNodeImpl, TRunsNode {
378360
379361 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
380362
381- //override AstNodeImpl getAChildNode() { result = this.getAStep() }
382363 override CompositeActionImpl getParentNode ( ) { result .getAChildNode ( ) = this }
383364
384365 override string getAPrimaryQlClass ( ) { result = "RunsImpl" }
@@ -450,7 +431,6 @@ class OutputsImpl extends AstNodeImpl, TOutputsNode {
450431
451432 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
452433
453- //override AstNodeImpl getAChildNode() { result = this.getAnOutputExpr() }
454434 override AstNodeImpl getParentNode ( ) { result .getAChildNode ( ) = this }
455435
456436 override string getAPrimaryQlClass ( ) { result = "OutputsImpl" }
@@ -503,7 +483,6 @@ class StrategyImpl extends AstNodeImpl, TStrategyNode {
503483
504484 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
505485
506- //override ExpressionImpl getAChildNode() { result = this.getAMatrixVarExpr() }
507486 override AstNodeImpl getParentNode ( ) { result .getAChildNode ( ) = this }
508487
509488 override string getAPrimaryQlClass ( ) { result = "StrategyImpl" }
@@ -557,10 +536,8 @@ class JobImpl extends AstNodeImpl, TJobNode {
557536 workflow .getNode ( ) .lookup ( "jobs" ) .( YamlMapping ) .lookup ( jobId ) = n
558537 }
559538
560- // TODO: REMOVE
561539 override string toString ( ) { result = "Job: " + jobId }
562540
563- //override string toString() { result = n.toString() }
564541 override AstNodeImpl getAChildNode ( ) { result .getNode ( ) = n .getAChildNode * ( ) }
565542
566543 override WorkflowImpl getParentNode ( ) { result .getAChildNode ( ) = this }
@@ -739,7 +716,6 @@ class UsesStepImpl extends StepImpl, UsesImpl {
739716 result .getParentNode ( ) .getNode ( ) = n .lookup ( "with" ) .( YamlMapping ) .lookup ( key )
740717 }
741718
742- // TODO: REMOVE
743719 override string toString ( ) {
744720 if exists ( this .getId ( ) ) then result = "Uses Step: " + this .getId ( ) else result = "Uses Step"
745721 }
@@ -760,7 +736,6 @@ class ExternalJobImpl extends JobImpl, UsesImpl {
760736
761737 ExternalJobImpl ( ) { n .lookup ( "uses" ) = u }
762738
763- //override AstNodeImpl getAChildNode() { result.getNode() = n.getAChildNode*() }
764739 override string getCallee ( ) {
765740 if u .getValue ( ) .matches ( "./%" )
766741 then result = u .getValue ( ) .regexpCapture ( pathUsesParser ( ) , 1 )
@@ -796,7 +771,6 @@ class RunImpl extends StepImpl {
796771
797772 ExpressionImpl getAnScriptExpr ( ) { result .getParentNode ( ) .getNode ( ) = script }
798773
799- // TODO: REMOVE
800774 override string toString ( ) {
801775 if exists ( this .getId ( ) ) then result = "Run Step: " + this .getId ( ) else result = "Run Step"
802776 }
@@ -807,14 +781,6 @@ class RunImpl extends StepImpl {
807781 * https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability
808782 */
809783abstract class ContextExpressionImpl extends ExpressionImpl {
810- // TODO: REMOVE
811- // ContextExpressionImpl() {
812- // expression
813- // .regexpMatch([
814- // stepsCtxRegex(), needsCtxRegex(), jobsCtxRegex(), envCtxRegex(), inputsCtxRegex(),
815- // matrixCtxRegex()
816- // ])
817- // }
818784 abstract string getFieldName ( ) ;
819785
820786 abstract AstNodeImpl getTarget ( ) ;
0 commit comments