public static bool TryGetCallFunctionCommandFast(string name, List <string> args, out DHJassCommand functionCall) { functionCall = new DHJassCallFunctionCommand(name, args); return(true); }
public DHJassCallOperation(List<string> lines, ref int line, List<string> args) { // concat this line with next if it contains a string with newline character // the determining factor is odd number of quotes int quotes = -1; string result = ""; string currentLine = args[0]; do { if (quotes != -1) { currentLine = lines[++line]; result += Environment.NewLine + currentLine; } else { quotes = 0; result += currentLine; } quotes += DHJassSyntax.getQuoteCountFast(currentLine); } while (quotes % 2 != 0); command = new DHJassCallFunctionCommand(result); }
public static bool TryGetCallFunctionCommandFast(string name, List<string> args, out DHJassCommand functionCall) { functionCall = new DHJassCallFunctionCommand(name, args); return true; }