module Dhall::Parser::AnnotatedExpression

Public Instance Methods

value() click to toggle source
# File lib/dhall/parser.rb, line 478
def value
        if matches[1].string.empty?
                first.value
        else
                TypeAnnotation.new(
                        value: first.value,
                        type:  capture(:expression).value
                )
        end
end