mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
C#: Use var everywhere
This commit is contained in:
@@ -31,7 +31,7 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
ContainingType.PopulateGenerics();
|
||||
PopulateNullability(trapFile, symbol.GetAnnotatedType());
|
||||
|
||||
Field unboundFieldKey = Field.Create(Context, symbol.OriginalDefinition);
|
||||
var unboundFieldKey = Field.Create(Context, symbol.OriginalDefinition);
|
||||
trapFile.fields(this, (symbol.IsConst ? 2 : 1), symbol.Name, ContainingType, Type.Type.TypeRef, unboundFieldKey);
|
||||
|
||||
PopulateModifiers(trapFile);
|
||||
@@ -57,7 +57,7 @@ namespace Semmle.Extraction.CSharp.Entities
|
||||
|
||||
Context.BindComments(this, Location.symbol);
|
||||
|
||||
int child = 0;
|
||||
var child = 0;
|
||||
foreach (var initializer in symbol.DeclaringSyntaxReferences
|
||||
.Select(n => n.GetSyntax())
|
||||
.OfType<VariableDeclaratorSyntax>()
|
||||
|
||||
Reference in New Issue
Block a user