protected CreateGroupOrSingleton ( bool isCapturing, |
||
isCapturing | bool | |
children | ||
리턴 |
protected BasePattern CreateGroupOrSingleton(bool isCapturing, BasePattern[] children)
{
if (!isCapturing && children.Length == 1)
return children[0];
else
return new GroupPattern(isCapturing, children);
}