JSSymUtils
Additional extensions for Symbol
s that are only relevant for Scala.js.
Attributes
- Graph
-
- Supertypes
- Self type
-
JSSymUtils.type
Members list
Type members
Classlikes
Attributes
- Companion
- enum
- Supertypes
- Self type
-
JSCallingConvention.type
The result type for sym.jsName
.
The result type for sym.jsName
.
It is either a literal string, or a computed name represented by a reference to a static Symbol
(a dotc.core.Symbols.Symbol
, not a js.Symbol
).
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Info about a Scala method param when called as JS method.
Info about a Scala method param when called as JS method.
Value parameters
- capture
-
Whether the parameter is a capture.
- info
-
Parameter type (type of a single element if repeated).
- repeated
-
Whether the parameter is repeated.
Attributes
- Supertypes
Extensions
Extensions
Should this symbol be translated into a JS bracket access?
Should this symbol be translated into a JS bracket access?
Attributes
Should this symbol be translated into a JS bracket call?
Should this symbol be translated into a JS bracket call?
Attributes
Tests whether the given member is exposed, i.e., whether it was originally a public or protected member of a non-native JS class.
Tests whether the given member is exposed, i.e., whether it was originally a public or protected member of a non-native JS class.
Attributes
Should this symbol be translated into a JS getter?
Should this symbol be translated into a JS getter?
Attributes
Is this symbol a JS getter or setter?
Is this symbol a JS getter or setter?
Attributes
Should this symbol be translated into a JS setter?
Should this symbol be translated into a JS setter?
Attributes
Is this symbol a JavaScript type?
Is this symbol a JavaScript type?
Attributes
Is this symbol a nested JS class, i.e., an inner or local JS class?
Is this symbol a nested JS class, i.e., an inner or local JS class?
Attributes
Is this symbol a non-native JS class?
Is this symbol a non-native JS class?
Attributes
Gets the unqualified JS name of the symbol.
Gets the unqualified JS name of the symbol.
If it is not explicitly specified with an @JSName
annotation, the JS name is inferred from the Scala name.
Attributes
Tests whether the semantics of Scala.js require a field for this symbol, irrespective of any optimization we think we can do.
Tests whether the semantics of Scala.js require a field for this symbol, irrespective of any optimization we think we can do.
This is the case if one of the following is true:
- it is a member of a JS type, since it needs to be visible as a JavaScript field
- is is exported as static member of the companion class, since it needs to be visible as a JavaScript static field
- it is exported to the top-level, since that can only be done as a true top-level variable, i.e., a field