Merge pull request #292 from stefanomondino/master

Make tokens public
This commit is contained in:
David Jennes
2022-07-26 15:20:17 +02:00
committed by GitHub
2 changed files with 6 additions and 2 deletions

View File

@@ -6,7 +6,9 @@ _None_
### Enhancements ### Enhancements
_None_ - Made the `tokens` property on a `Template` public.
[Stefanomondino](https://github.com/stefanomondino)
[#292](https://github.com/stencilproject/Stencil/pull/292)
### Deprecations ### Deprecations

View File

@@ -9,7 +9,9 @@ let NSFileNoSuchFileError = 4
open class Template: ExpressibleByStringLiteral { open class Template: ExpressibleByStringLiteral {
let templateString: String let templateString: String
var environment: Environment var environment: Environment
let tokens: [Token]
/// The list of parsed (lexed) tokens
public let tokens: [Token]
/// The name of the loaded Template if the Template was loaded from a Loader /// The name of the loaded Template if the Template was loaded from a Loader
public let name: String? public let name: String?