ExitFile_list ( [NotNull] CLIParser.File_listContext Context ) { // // A little LINQ magic. Get the list of string tokens, skipping commas which are separators, strip off any surrounding double quotes, // and store them in the list member variable // _file_list = ( from e in Context.children let txt = e.GetText() where !txt.Equals(",") select txt.StartsWith("\"") && txt.EndsWith("\"") ? txt.Substring(1, txt.Length - 2) : txt).ToList(); } // End ExitFile_list
/// <summary> /// Exit a parse tree produced by <see cref="CLIParser.file_list"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitFile_list([NotNull] CLIParser.File_listContext context) { }