@@ -101,47 +101,38 @@ class FuncDef extends @funcdef, StmtParent, ExprParent {
101101
102102 /** Gets the `i`th result variable of this function. */
103103 ResultVariable getResultVar ( int i ) {
104- result = rank [ i + 1 ] ( ResultVariable res , int j , int k |
104+ result =
105+ rank [ i + 1 ] ( ResultVariable res , int j , int k |
105106 res .getDeclaration ( ) = getTypeExpr ( ) .getResultDecl ( j ) .getNameExpr ( k )
106107 |
107108 res order by j , k
108109 )
109110 }
110111
111112 /** Gets a result variable of this function. */
112- ResultVariable getAResultVar ( ) {
113- result .getFunction ( ) = this
114- }
113+ ResultVariable getAResultVar ( ) { result .getFunction ( ) = this }
115114
116115 /**
117116 * Gets the `i`th parameter of this function.
118117 *
119118 * The receiver variable, if any, is considered to be the -1st parameter.
120119 */
121- Parameter getParameter ( int i ) {
122- result .isParameterOf ( this , i )
123- }
120+ Parameter getParameter ( int i ) { result .isParameterOf ( this , i ) }
124121
125122 /**
126123 * Gets a parameter of this function.
127124 */
128- Parameter getAParameter ( ) {
129- result .getFunction ( ) = this
130- }
125+ Parameter getAParameter ( ) { result .getFunction ( ) = this }
131126
132127 /**
133128 * Gets the number of parameters of this function.
134129 */
135- int getNumParameter ( ) {
136- result = count ( getAParameter ( ) )
137- }
130+ int getNumParameter ( ) { result = count ( getAParameter ( ) ) }
138131
139132 /**
140133 * Gets a call to this function.
141134 */
142- DataFlow:: CallNode getACall ( ) {
143- result .getACallee ( ) = this
144- }
135+ DataFlow:: CallNode getACall ( ) { result .getACallee ( ) = this }
145136}
146137
147138/**
@@ -526,9 +517,7 @@ class ResultVariableDecl extends @field, Documentable, ExprParent {
526517 /**
527518 * Gets an expression representing the name of a result variable declared in this declaration.
528519 */
529- Expr getANameExpr ( ) {
530- result = getNameExpr ( _)
531- }
520+ Expr getANameExpr ( ) { result = getNameExpr ( _) }
532521
533522 /**
534523 * Gets the function type expression to which this result variable declaration belongs.
@@ -549,7 +538,6 @@ class ResultVariableDecl extends @field, Documentable, ExprParent {
549538 */
550539class InterfaceMemberSpec extends @field, Documentable , ExprParent {
551540 InterfaceTypeExpr ite ;
552-
553541 int idx ;
554542
555543 InterfaceMemberSpec ( ) { fields ( this , ite , idx ) }
0 commit comments