Doc comment errors with tuple method parameters
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Start by reproducing the issue with the two tuple-parameter examples and inspect the generated inheritdoc cref shown in the report. Trace how the source generator formats tuple parameters, then verify that the generated cref resolves in Visual Studio and no CS1584 or CS1658 warnings are produced.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Great Project! Love it!
i think there is some problem with tuple parameters within comments... any Doc Comments on that method are not rendered on the Interface method in Visual Studio.
Some Method
public List<string> Method((Class1, Class2) param) {}
is generated as:
/// <inheritdoc cref="Namespace.Method((Namespace.Class1, Namespace.Class2))" />
global::System.Collections.Generic.List<string> Method((global::Namespace.Class1, global::Namespace.Class2) param);
and i get no Intellisense after the cref inside the generated inheritdoc comment attribute, meaning it probably cant resolve that method reference.
And in another instance a named tuple parameter even throws a compiler warning CS1584
"XML comment has syntactically incorrect cref attribute 'Namespace.Method((System.DateTime? from, System.DateTime? to))'"
and within that tuple also the warning CS1658:
") expected. See also error CS1026."
List<string> Method((DateTime? from, DateTime? to) timespan) {}
generates:
/// <inheritdoc cref="Namespace.Method((System.DateTime? from, System.DateTime? to))" />
global::System.Collections.Generic.List<string> Method((global::System.DateTime? from, global::System.DateTime? to) timespan);
In that instance it also cant resolve the cref inside the generated inheritdoc comment attribute.
Unfortunately i cannot find a solution at this moment. Any Solution very appreciated!
- Lingua principale
- C#
- Stelle
- 116
- Fork
- 26
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di codecentric/net_automatic_interface
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 1/100
codecentric/net_automatic_interface#93 · 2 reazioni ·
Tutte le issue di codecentric/net_automatic_interface
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nightscout/nocturne#1425 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
RayWangQvQ/BiliBiliToolPro#1137 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100