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>();
|
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;
|
||||||
}
|
}
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user