Skip to content
This repository has been archived by the owner on Nov 16, 2020. It is now read-only.

Commit

Permalink
document TemplateExpression public var
Browse files Browse the repository at this point in the history
Adds API documentation to `TemplateExpression` for exposed var `order`.
(feel free to modify, but should probably be documented in some way if exposed)
  • Loading branch information
grundoon authored Aug 9, 2018
1 parent db35b1c commit a58072e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/TemplateKit/AST/TemplateExpression.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ public enum TemplateExpression: CustomStringConvertible {
/// a || b
///
case or


/// Operator precedence order (used internally by `LeafParser` when extracting parameters).
public var order: Int {
switch self {
case .add: return 4
Expand Down

0 comments on commit a58072e

Please sign in to comment.