W3cubDocs

/Haxe

IncludePosition(String)

package haxe.macro

from String to String

import haxe.macro.Compiler

Available on all platforms

Variables

@:value(cast "closure") @:enum @:impl inline read only Closure:IncludePosition = "closure"

Prepend the file content to the body of the top-level closure.

Since the closure is in strict-mode, there may be run-time error if the input is not strict-mode-compatible.

@:value(cast "inline") @:enum @:impl inline read only Inline:IncludePosition = "inline"

Directly inject the file content at the call site.

@:value(cast "top") @:enum @:impl inline read only Top:IncludePosition = "top"

Prepend the file content to the output file.

Static variables

@:value(cast "closure") @:enum @:impl static inline read only Closure:IncludePosition = "closure"

Prepend the file content to the body of the top-level closure.

Since the closure is in strict-mode, there may be run-time error if the input is not strict-mode-compatible.

@:value(cast "inline") @:enum @:impl static inline read only Inline:IncludePosition = "inline"

Directly inject the file content at the call site.

@:value(cast "top") @:enum @:impl static inline read only Top:IncludePosition = "top"

Prepend the file content to the output file.

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/haxe/macro/IncludePosition.html