generated from Templates/Dotnet_Library
fix: fix build issues, ref: NOISSUE
This commit is contained in:
parent
4c67e8efb0
commit
f942954678
@ -36,7 +36,7 @@ public static class DataManipulationHelpers
|
||||
var newList = new List<TNewType>();
|
||||
foreach (List<TType> dataItemList in data)
|
||||
{
|
||||
newList.Add(transformer(dataItem));
|
||||
newList.Add(transformer(dataItemList));
|
||||
}
|
||||
return newList;
|
||||
}
|
||||
|
@ -159,17 +159,22 @@ public class TokenConverter
|
||||
|
||||
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)
|
||||
{
|
||||
if(inputTypes.Contains(token.GetInputType()))
|
||||
var newTokenList = new List<IToken>();
|
||||
foreach(var token in tokenList)
|
||||
{
|
||||
newTokenList.Add(token);
|
||||
if(inputTypes.Contains(token.GetInputType()))
|
||||
{
|
||||
newTokenList.Add(token);
|
||||
}
|
||||
}
|
||||
newTokenListList.Add(newTokenList);
|
||||
}
|
||||
|
||||
this.rawTokens = newTokenList;
|
||||
this.rawTokens = newTokenListList;
|
||||
|
||||
return this;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user