1
0
mirror of https://github.com/chylex/Code-Statistics.git synced 2025-07-31 01:59:01 +02:00

Add an 'assets' flag to AssetHandler and optimize language flags by moving them to SetupProject

This commit is contained in:
chylex 2016-03-05 17:22:14 +01:00
parent e3cd0ad8fe
commit 96d2e925fe
2 changed files with 2 additions and 1 deletions
CodeStatistics/Handling

View File

@ -33,6 +33,7 @@ namespace CodeStatistics.Handling.General{
public override void SetupProject(Variables.Root variables){
base.SetupProject(variables);
variables.AddFlag("assets");
variables.AddStateObject(this,new State());
}

View File

@ -13,13 +13,13 @@ namespace CodeStatistics.Handling.Languages{
public override void SetupProject(Variables.Root variables){
base.SetupProject(variables);
variables.AddFlag(Key);
variables.AddStateObject(stateOwner,new State());
}
public override void Process(File file, Variables.Root variables){
base.Process(file,variables);
variables.AddFlag(Key);
variables.Increment("fileTypeCode");
variables.Increment(Key+"CodeFiles");