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 {
186186 /**
187187 * Gets the `ContentSet` contaning only this content.
188188 */
189- ContentSet asContentSet ( ) {
190- result .asOneContent ( ) = this
191- }
189+ ContentSet asContentSet ( ) { result .asOneContent ( ) = this }
192190}
193191
194192/** A reference through a field. */
@@ -268,9 +266,7 @@ private newtype TContentSet =
268266 */
269267class ContentSet instanceof TContentSet {
270268 /** 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 ) }
274270
275271 /** Gets a content that may be read from when reading from this set. */
276272 Content getAReadContent ( ) {
@@ -311,16 +307,12 @@ class ContentSet instanceof TContentSet {
311307 /**
312308 * If this is a singleton content set, returns the content.
313309 */
314- Content asOneContent ( ) {
315- this = TOneContent ( result )
316- }
310+ Content asOneContent ( ) { this = TOneContent ( result ) }
317311
318312 /**
319313 * Holds if this is a universal content set.
320314 */
321- predicate isUniversalContent ( ) {
322- this = TAllContent ( )
323- }
315+ predicate isUniversalContent ( ) { this = TAllContent ( ) }
324316}
325317
326318/**
Original file line number Diff line number Diff line change @@ -525,7 +525,9 @@ module Private {
525525 SummaryComponent qualifier ( ) { result = argument ( - 1 ) }
526526
527527 /** Gets a summary component for field `f`. */
528- SummaryComponent field ( Field f ) { result = content ( any ( FieldContent c | c .getField ( ) = f ) .asContentSet ( ) ) }
528+ SummaryComponent field ( Field f ) {
529+ result = content ( any ( FieldContent c | c .getField ( ) = f ) .asContentSet ( ) )
530+ }
529531
530532 /** Gets a summary component that represents the return value of a call. */
531533 SummaryComponent return ( ) { result = SC:: return ( _) }
You can’t perform that action at this time.
0 commit comments