fix: fix build issues, ref: NOISSUE

This commit is contained in:
Simon Diesenreiter 2024-12-13 13:23:02 +01:00
parent 4c67e8efb0
commit f942954678
2 changed files with 11 additions and 6 deletions

View File

@ -36,7 +36,7 @@ public static class DataManipulationHelpers
var newList = new List<TNewType>(); var newList = new List<TNewType>();
foreach (List<TType> dataItemList in data) foreach (List<TType> dataItemList in data)
{ {
newList.Add(transformer(dataItem)); newList.Add(transformer(dataItemList));
} }
return newList; return newList;
} }

View File

@ -159,17 +159,22 @@ public class TokenConverter
public TokenConverter Filter<T>(params InputType[] inputTypes) public TokenConverter Filter<T>(params InputType[] inputTypes)
{ {
var newTokenList = new List<List<IToken>>() var newTokenListList = new List<List<IToken>>();
foreach(var token in rawTokens) foreach(var tokenList in rawTokens)
{
var newTokenList = new List<IToken>();
foreach(var token in tokenList)
{ {
if(inputTypes.Contains(token.GetInputType())) if(inputTypes.Contains(token.GetInputType()))
{ {
newTokenList.Add(token); newTokenList.Add(token);
} }
} }
newTokenListList.Add(newTokenList);
}
this.rawTokens = newTokenList; this.rawTokens = newTokenListList;
return this; return this;
} }