public JParameter(ISignature signature, ParameterResult param, Span locus) { _signature = signature; _param = param; _locus = locus; }
public OverloadDoc(string doc, ParameterResult[] parameters) { _doc = doc; _params = parameters; }
private void HandleSigResult() { int overloadCount = Stream.ReadInt32(); OverloadDoc[] docs = new OverloadDoc[overloadCount]; for (int i = 0; i < overloadCount; i++) { string doc = Stream.ReadString(); int paramCount = Stream.ReadInt32(); ParameterResult[] parameters = new ParameterResult[paramCount]; for (int curParam = 0; curParam < paramCount; curParam++) { string name = Stream.ReadString(); parameters[curParam] = new ParameterResult(name); } docs[i] = new OverloadDoc(doc, parameters); } _overloads = docs; _completionResultEvent.Set(); }
public SimpleOverloadResult(ParameterResult[] parameters, string name, string documentation) : base(parameters, name) { _documentation = ParameterResult.Trim(documentation); }
public OverloadResult(ParameterResult[] parameters, string name) { _parameters = parameters; _name = name; }
internal static string GetSafeArgumentName(ParameterResult result) { var match = ValidArgumentName.Match(result.Name); return match.Success ? match.Value : result.Name; }