Пример #1
0
 public JParameter(ISignature signature, ParameterResult param, Span locus)
 {
     _signature = signature;
     _param = param;
     _locus = locus;
 }
Пример #2
0
 public OverloadDoc(string doc, ParameterResult[] parameters)
 {
     _doc = doc;
     _params = parameters;
 }
Пример #3
0
            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();
            }
Пример #4
0
 public SimpleOverloadResult(ParameterResult[] parameters, string name, string documentation)
     : base(parameters, name)
 {
     _documentation = ParameterResult.Trim(documentation);
 }
Пример #5
0
 public OverloadResult(ParameterResult[] parameters, string name)
 {
     _parameters = parameters;
     _name = name;
 }
Пример #6
0
        internal static string GetSafeArgumentName(ParameterResult result) {
            var match = ValidArgumentName.Match(result.Name);

            return match.Success ? match.Value : result.Name;
        }