File tree Expand file tree Collapse file tree 2 files changed +7
-13
lines changed
go/ql/lib/semmle/go/dataflow/internal Expand file tree Collapse file tree 2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change @@ -186,9 +186,7 @@ class Content extends TContent {
186
186
/**
187
187
* Gets the `ContentSet` contaning only this content.
188
188
*/
189
- ContentSet asContentSet ( ) {
190
- result .asOneContent ( ) = this
191
- }
189
+ ContentSet asContentSet ( ) { result .asOneContent ( ) = this }
192
190
}
193
191
194
192
/** A reference through a field. */
@@ -268,9 +266,7 @@ private newtype TContentSet =
268
266
*/
269
267
class ContentSet instanceof TContentSet {
270
268
/** Gets a content that may be stored into when storing into this set. */
271
- Content getAStoreContent ( ) {
272
- this = TOneContent ( result )
273
- }
269
+ Content getAStoreContent ( ) { this = TOneContent ( result ) }
274
270
275
271
/** Gets a content that may be read from when reading from this set. */
276
272
Content getAReadContent ( ) {
@@ -311,16 +307,12 @@ class ContentSet instanceof TContentSet {
311
307
/**
312
308
* If this is a singleton content set, returns the content.
313
309
*/
314
- Content asOneContent ( ) {
315
- this = TOneContent ( result )
316
- }
310
+ Content asOneContent ( ) { this = TOneContent ( result ) }
317
311
318
312
/**
319
313
* Holds if this is a universal content set.
320
314
*/
321
- predicate isUniversalContent ( ) {
322
- this = TAllContent ( )
323
- }
315
+ predicate isUniversalContent ( ) { this = TAllContent ( ) }
324
316
}
325
317
326
318
/**
Original file line number Diff line number Diff line change @@ -515,7 +515,9 @@ module Private {
515
515
SummaryComponent qualifier ( ) { result = argument ( - 1 ) }
516
516
517
517
/** Gets a summary component for field `f`. */
518
- SummaryComponent field ( Field f ) { result = content ( any ( FieldContent c | c .getField ( ) = f ) .asContentSet ( ) ) }
518
+ SummaryComponent field ( Field f ) {
519
+ result = content ( any ( FieldContent c | c .getField ( ) = f ) .asContentSet ( ) )
520
+ }
519
521
520
522
/** Gets a summary component that represents the return value of a call. */
521
523
SummaryComponent return ( ) { result = SC:: return ( _) }
You can’t perform that action at this time.
0 commit comments