MCPcopy Create free account
hub / github.com/Squirrel/Squirrel.Windows / AddSource

Method AddSource

src/SyncReleases/Mono.Options/Options.cs:1006–1016  ·  view source on GitHub ↗
(ArgumentEnumerator ae, string argument)

Source from the content-addressed store, hash-verified

1004 }
1005
1006 bool AddSource (ArgumentEnumerator ae, string argument)
1007 {
1008 foreach (ArgumentSource source in sources) {
1009 IEnumerable<string> replacement;
1010 if (!source.GetArguments (argument, out replacement))
1011 continue;
1012 ae.Add (replacement);
1013 return true;
1014 }
1015 return false;
1016 }
1017
1018 private static bool Unprocessed (ICollection<string> extra, Option def, OptionContext c, string argument)
1019 {

Callers

nothing calls this directly

Calls 2

GetArgumentsMethod · 0.45
AddMethod · 0.45

Tested by

no test coverage detected