Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typecheck symbol help description #13643

Merged
merged 2 commits into from
Aug 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Compiler/FSComp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1384,7 +1384,7 @@ tcAnonRecdFieldNameSubset,"This anonymous record does not have enough fields. Ad
tcAnonRecdFieldNameSuperset,"This anonymous record has too many fields. Remove the extra fields %s."
tcAnonRecdFieldNameDifferent,"This is the wrong anonymous record. It should have the fields %s."
keywordDescriptionAbstract,"Indicates a method that either has no implementation in the type in which it is declared or that is virtual and has a default implementation."
keyworkDescriptionAnd,"Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters."
keywordDescriptionAnd,"Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters."
keywordDescriptionAs,"Used to give the current class object an object name. Also used to give a name to a whole pattern within a pattern match."
keywordDescriptionAssert,"Used to verify code during debugging."
keywordDescriptionBase,"Used as the name of the base class object."
Expand Down Expand Up @@ -1442,6 +1442,7 @@ keywordDescriptionThen,"Used in conditional expressions. Also used to perform si
keywordDescriptionTo,"Used in for loops to indicate a range."
keywordDescriptionTry,"Used to introduce a block of code that might generate an exception. Used together with with or finally."
keywordDescriptionType,"Used to declare a class, record, structure, discriminated union, enumeration type, unit of measure, or type abbreviation."
keywordDescriptionTypeTest,"Used to check if an object is of the given type in a pattern or binding."
keywordDescriptionUpcast,"Used to convert to a type that is higher in the inheritance chain."
keywordDescriptionUse,"Used instead of let for values that implement IDisposable"
keywordDescriptionUseBang,"Used instead of let! in computation expressions for computation expression results that implement IDisposable."
Expand Down
3 changes: 2 additions & 1 deletion src/Compiler/SyntaxTree/PrettyNaming.fs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ let IsIdentifierPartCharacter c =
let keywordsWithDescription: (string * string) list =
[
"abstract", FSComp.SR.keywordDescriptionAbstract ()
"and", FSComp.SR.keyworkDescriptionAnd ()
"and", FSComp.SR.keywordDescriptionAnd ()
"as", FSComp.SR.keywordDescriptionAs ()
"assert", FSComp.SR.keywordDescriptionAssert ()
"base", FSComp.SR.keywordDescriptionBase ()
Expand Down Expand Up @@ -244,6 +244,7 @@ let keywordsWithDescription: (string * string) list =
"->", FSComp.SR.keywordDescriptionRightArrow ()
"<-", FSComp.SR.keywordDescriptionLeftArrow ()
":>", FSComp.SR.keywordDescriptionCast ()
":?", FSComp.SR.keywordDescriptionTypeTest ()
":?>", FSComp.SR.keywordDescriptionDynamicCast ()
"<@", FSComp.SR.keywordDescriptionTypedQuotation ()
"@>", FSComp.SR.keywordDescriptionTypedQuotation ()
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Klíčové slovo, které specifikuje konstantní literál jako argument parametru typu v poskytovatelích typů</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">Bajtový řetězec se nedá interpolovat.</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Označuje metodu, která buď nemá implementaci v typu, ve kterém je deklarovaná, nebo která je virtuální a má výchozí implementaci.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Používá se ve vzájemně rekurzivních vazbách, v deklaracích vlastností a s několika omezeními u generických parametrů.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.de.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Schlüsselwort, um ein konstantes Literal als Typparameterargument in Typanbietern anzugeben.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">Eine Bytezeichenfolge darf nicht interpoliert werden.</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Gibt eine Methode an, die entweder im Typ, in dem sie deklariert wird, über keine Implementierung verfügt oder die virtuell ist und über eine Standardimplementierung verfügt.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Wird in gegenseitig rekursiven Bindungen, in Eigenschaftendeklarationen und bei mehreren Beschränkungen in Bezug auf generische Parameter verwendet.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.es.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Palabra clave para especificar un literal de constante como argumento de parámetro de tipo en los proveedores de tipo.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">no se puede interpolar una cadena de bytes</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Indica un método que no tiene ninguna implementación en el tipo en el que se declara o un método que es virtual y tiene una implementación predeterminada.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Se usa en enlaces mutuamente recursivos, en declaraciones de propiedad y con varias restricciones en parámetros genéricos.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.fr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Mot clé permettant de spécifier une constante littérale en tant qu'argument de paramètre de type dans les fournisseurs de types.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">une chaîne d'octets ne peut pas être interpolée</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Indique une méthode qui n'a aucune implémentation dans le type dans lequel elle est déclarée, ou qui est virtuelle avec une implémentation par défaut.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Utilisé dans les liaisons mutuellement récursives, dans les déclarations de propriété et avec plusieurs contraintes sur des paramètres génériques.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.it.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Parola chiave per specificare un valore letterale di costante come argomento del parametro di tipo in Provider di tipi.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">non è possibile interpolare una stringa di byte</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Indica un metodo per il quale non esiste alcuna implementazione nel tipo in cui viene dichiarato oppure che è virtuale e per il quale esiste un'implementazione predefinita.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Usata in binding ricorsivi reciproci, dichiarazioni di proprietà e con più vincoli su parametri generici.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.ja.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">定数リテラルを型プロバイダーの型パラメーター引数として指定するキーワード。</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">バイト文字列は補間されていない可能性があります</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">宣言された型に実装がないメソッド、または既定の実装がある仮想のメソッドを示します。</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">相互に再帰的なバインディング、プロパティの宣言、およびジェネリック パラメーターの複数の制約に使用します。</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.ko.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">상수 리터럴을 형식 공급자의 형식 매개 변수 인수로 지정하는 키워드입니다.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">바이트 문자열을 보간하지 못할 수 있습니다.</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">선언된 형식에 구현이 없는 메서드 또는 기본 구현이 있는 가상 메서드를 나타냅니다.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">상호 재귀적 바인딩과 속성 선언에 사용되며 제네릭 매개 변수의 여러 제약 조건과 함께 사용됩니다.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.pl.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Słowo kluczowe na potrzeby określania literału stałej jako argumentu parametru typu w przypadku dostawców typów.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">ciąg bajtowy nie może być interpolowany</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Wskazuje metodę, która nie ma implementacji w typie, w którym została zadeklarowana, lub jest wirtualna i ma implementację domyślną.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Używane w powiązaniach wzajemnie cyklicznych, deklaracjach właściwości oraz z wieloma ograniczeniami parametrów ogólnych.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.pt-BR.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Palavra-chave para especificar um literal constante como um argumento de parâmetro de tipo nos Provedores de Tipo.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">uma cadeia de caracteres de byte não pode ser interpolada</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Indica um método que não tem implementação no tipo no qual ele é declarado ou que é virtual e tem uma implementação padrão.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Usado em associações mutualmente recursivas, em declarações de propriedade e em múltiplas restrições em parâmetros genéricos.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.ru.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Ключевое слово для указания константного литерала в качестве аргумента параметра типа в поставщиках типов.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">невозможно выполнить интерполяцию для строки байтов</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">Обозначает метод, который не имеет реализации в типе, в котором он объявлен, или является виртуальным и имеет реализацию по умолчанию.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Используется во взаимно рекурсивных привязках, объявлениях свойств и с несколькими ограничениями для универсальных параметров.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.tr.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">Tür Sağlayıcılarında tür parametresi bağımsız değişkeni olarak sabit değişmez değeri belirtmek için anahtar sözcük.</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">bir bayt dizesi, düz metin arasına kod eklenerek kullanılamaz</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">İçinde bildirildiği türde hiç uygulaması olmayan veya sanal olup varsayılan uygulaması olan bir metodu belirtir.</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">Karşılıklı yinelemeli bağlamalarda, özellik bildirimlerinde ve genel parametreler üzerinde birden çok kısıtlamayla kullanılır.</target>
<note />
Expand Down
7 changes: 6 additions & 1 deletion src/Compiler/xlf/FSComp.txt.zh-Hans.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,11 @@
<target state="translated">用于将常量文本指定为类型提供程序中的类型形参实参的关键字。</target>
<note />
</trans-unit>
<trans-unit id="keywordDescriptionTypeTest">
<source>Used to check if an object is of the given type in a pattern or binding.</source>
<target state="new">Used to check if an object is of the given type in a pattern or binding.</target>
<note />
</trans-unit>
<trans-unit id="lexByteStringMayNotBeInterpolated">
<source>a byte string may not be interpolated</source>
<target state="translated">不能内插字节字符串</target>
Expand Down Expand Up @@ -7442,7 +7447,7 @@
<target state="translated">表示一种方法,该方法在进行声明的类型中没有任何实现,或该方法为虚拟方法且包含默认实现。</target>
<note />
</trans-unit>
<trans-unit id="keyworkDescriptionAnd">
<trans-unit id="keywordDescriptionAnd">
<source>Used in mutually recursive bindings, in property declarations, and with multiple constraints on generic parameters.</source>
<target state="translated">用于互相递归绑定、属性声明,并用于对泛型参数的多个约束。</target>
<note />
Expand Down
Loading