el.SetAttribute ("name", name);
string normalized = mc.DocComment;
el.InnerXml = normalized;
- // csc keeps lines as written in the sources
- // and inserts formatting indentation (which
- // is different from XmlTextWriter.Formatting
- // one), but when a start tag contains an
- // endline, it joins the next line. We don't
- // have to follow such a hacky behavior.
- string [] split =
- normalized.Split ('\n');
- int j = 0;
- for (int i = 0; i < split.Length; i++) {
- string s = split [i].TrimEnd ();
- if (s.Length > 0)
- split [j++] = s;
- }
- el.InnerXml = line_head + String.Join (
- line_head, split, 0, j);
+
+ string [] split = normalized.Split ('\n');
+ el.InnerXml = line_head + String.Join (line_head, split);
return el;
} catch (Exception ex) {
Report.Warning (1570, 1, mc.Location, "XML documentation comment on `{0}' is not well-formed XML markup ({1})",
TypeExpr texpr = left as TypeExpr;
if (texpr != null) {
- var found = MemberCache.FindNestedType (texpr.Type, mn.Name, mn.Arity);
+ var found = MemberCache.FindNestedType (texpr.Type, mn.Name, mn.Arity, false);
if (found != null)
return new TypeExpression (found, Location.Null);
int parameters_match = -1;
do {
- //
- // Include base type search only for interface types
- //
- var members = MemberCache.FindMembers (type, member_name, !(type.IsInterface && ParsedName.Left == null));
+ var members = MemberCache.FindMembers (type, member_name, true);
if (members != null) {
foreach (var m in members) {
if (ParsedName != null && m.Arity != ParsedName.Arity)
return host.GetSignatureForError ();
}
- public ExtensionMethodCandidates LookupExtensionMethod (TypeSpec extensionType, string name, int arity)
+ public ExtensionMethodCandidates LookupExtensionMethod (string name, int arity)
{
return null;
}