object compiler
- Alphabetic
- By Inheritance
- compiler
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- macro def graphqlGen(s: String): Any
Buckle up.
Buckle up.
This is a dummy function that basically acts as a marker so that the js type generation can process the GQL statements, and this will substitute, the generated code in question. That generated code has some types attached to it to make all the scala magic work.
it attaches a type like GQLTaggedNode[Input <: js.Any, Output <: js.Any]. This gives any sort of call which needs to deal with the input or output enough information to be useful.
HOWEVER, there are some real rules involved.
1) It has to be a string literal, with triple quotes, """ this is because regexes are used on the js side to make this work. Eventually we could use scala.meta to make this a lot better. 2) it can't be a final val s = "foo" either. it has to be a plan string. 3) You cannot use strip margin, strip margin makes it not a literal string. 4) !IMPORTANT! THE WORD graphql in all lowercase must show up in the file.
- s
plan old graphql string.
- returns
Type of the Object generated from the relay-compiler-language-scalajs
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- object genGraphqlMacrosImpl