Lines Matching refs:lastElement
873 …erable<String> SuggestFiles(String allButLast, String prefix, String directory, String lastElement) in SuggestFiles() argument
883 … var files = Directory.GetFiles(directoryPath, lastElement + '*', SearchOption.TopDirectoryOnly) in SuggestFiles()
885 …var dirs = Directory.GetDirectories(directoryPath, lastElement + '*', SearchOption.TopDirectoryOnl… in SuggestFiles()
899 …"{0}@{1}/".FormatWith(allButLast, Path.Combine(StripPrefix(directoryPath, prefix), lastElement)) }; in SuggestFiles()
918 var lastElement = String.Empty; in SuggestCommands()
922 lastElement = prefixSplit.Last(); in SuggestCommands()
935 if(lastElement.StartsWith('@')) in SuggestCommands()
937 lastElement = Regex.Replace(lastElement.Substring(1), @"\\([^\\])", "$1"); in SuggestCommands()
940 if(!String.IsNullOrWhiteSpace(lastElement)) in SuggestCommands()
943 directory = Path.GetDirectoryName(lastElement) ?? lastElement; in SuggestCommands()
944 file = Path.GetFileName(lastElement); in SuggestCommands()
951 if(Regex.Match(lastElement, rootIndicator).Success) in SuggestCommands()
979 else if(lastElement.StartsWith('$')) in SuggestCommands()
981 var varName = lastElement.Substring(1); in SuggestCommands()