C#: Use var everywhere

This commit is contained in:
Tamas Vajk
2020-10-02 13:45:38 +02:00
parent 7d544e34af
commit aec4481cfb
73 changed files with 196 additions and 195 deletions

View File

@@ -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>()