public static void Rule(Query lhs, ColonDash colonDash, StatementElement statementElement, AdditionalStatementElements additionalStatementElements) { var codeCompoundTerms = new List<CodeCompoundTerm> {statementElement.CodeCompoundTerm}; codeCompoundTerms.AddRange(additionalStatementElements.CodeCompoundTerms); lhs.CodeSentence = new CodeSentence(null, null, codeCompoundTerms); }
public static void Rule(List lhs, OpenBracket openBracket, OptionalListBody optionalListBody, CloseBracket closeBracket) { if (optionalListBody.CodeList == null) { lhs.CodeList = new CodeList(); } else { lhs.CodeList = optionalListBody.CodeList; } }
public static void Rule(ListTailItem lhs, List list) { lhs.CodeTerm = list.CodeList; }
public static void Rule(Value lhs, List list) { lhs.CodeTerm = list.CodeList; }
public static void Rule(List lhs, OpenBracket openBracket, OptionalListBody optionalListBody, CloseBracket closeBracket) { lhs.CodeList = optionalListBody.CodeList ?? new CodeList(); }