File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
test/library-tests/cil/dataflow Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import Member
77import Stmt
88private import semmle.code.csharp.ExprOrStmtParent
99private import dotnet
10+ private import cil
1011
1112/**
1213 * A declaration that may have accessors. Either an event (`Event`), a property
@@ -495,6 +496,8 @@ class TrivialProperty extends Property {
495496 isAutoImplemented ( )
496497 or
497498 getGetter ( ) .trivialGetterField ( ) = getSetter ( ) .trivialSetterField ( )
499+ or
500+ exists ( CIL:: TrivialProperty prop | this .matchesHandle ( prop ) )
498501 }
499502}
500503
Original file line number Diff line number Diff line change 1+ | System.Collections.DictionaryEntry.Key |
2+ | System.Collections.DictionaryEntry.Value |
3+ | System.Reflection.AssemblyName.CodeBase |
4+ | System.Reflection.AssemblyName.CultureInfo |
5+ | System.Reflection.AssemblyName.HashAlgorithm |
6+ | System.Reflection.AssemblyName.KeyPair |
7+ | System.Reflection.AssemblyName.Name |
8+ | System.Reflection.AssemblyName.Version |
9+ | System.Reflection.AssemblyName.VersionCompatibility |
Original file line number Diff line number Diff line change 1+ import csharp
2+
3+ from TrivialProperty prop
4+ where
5+ prop .getDeclaringType ( ) .hasQualifiedName ( "System.Reflection.AssemblyName" )
6+ or
7+ prop .getDeclaringType ( ) .hasQualifiedName ( "System.Collections.DictionaryEntry" )
8+ select prop .getQualifiedName ( )
You can’t perform that action at this time.
0 commit comments