private void CreateLineMatcher() { lineMatcher = new LineMatcher(Children); }
private LineMatcher BuildMatcherForAllLines() { var t = this; if (matchAllLines == null) { var lexers = new Dictionary<Type, Lexer>(); while (t != null) { BuildMatcherForAllLines(t.Children, lexers); t = t.parent; } matchAllLines = new LineMatcher(lexers.Values); } return matchAllLines; }