Skip to content

Commit bc5b2ef

Browse files
authored
Merge branch 'master' into fetch-perf
2 parents 0fa18af + 5ac4a1a commit bc5b2ef

File tree

22 files changed

+1610
-948
lines changed

22 files changed

+1610
-948
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,9 @@ func main() {
149149
* [GoDaddy](https://godaddy.com) employs Expr for the customization of its GoDaddy Pro product.
150150
* [ByteDance](https://bytedance.com) incorporates Expr into its internal business rule engine.
151151
* [Aviasales](https://aviasales.ru) utilizes Expr as a business rule engine for its flight search engine.
152-
* [Wish.com](https://www.wish.com) employs Expr in its decision-making rule engine for the Wish Assistant.
153-
* [Naoma.AI](https://www.naoma.ai) uses Expr as a part of its call scoring engine.
152+
* [Alibaba](https://alibaba.com) uses Expr in a web framework for building recommendation services.
154153
* [Argo](https://argoproj.github.io) integrates Expr into Argo Rollouts and Argo Workflows for Kubernetes.
154+
* [Wish.com](https://www.wish.com) employs Expr in its decision-making rule engine for the Wish Assistant.
155155
* [OpenTelemetry](https://opentelemetry.io) integrates Expr into the OpenTelemetry Collector.
156156
* [Philips Labs](https://github.com/philips-labs/tabia) employs Expr in Tabia, a tool designed to collect insights on their code bases.
157157
* [CrowdSec](https://crowdsec.net) incorporates Expr into its security automation tool.
@@ -172,6 +172,7 @@ func main() {
172172
* [FastSchema](https://github.com/fastschema/fastschema) - A BaaS leveraging Expr for its customizable and dynamic Access Control system.
173173
* [WunderGraph Cosmo](https://github.com/wundergraph/cosmo) - GraphQL Federeration Router uses Expr to customize Middleware behaviour
174174
* [SOLO](https://solo.one) uses Expr interally to allow dynamic code execution with custom defined functions.
175+
* [Naoma.AI](https://www.naoma.ai) uses Expr as a part of its call scoring engine.
175176

176177
[Add your company too](https://github.com/expr-lang/expr/edit/master/README.md)
177178

ast/node.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var (
1515
type Node interface {
1616
Location() file.Location
1717
SetLocation(file.Location)
18-
Nature() nature.Nature
18+
Nature() *nature.Nature
1919
SetNature(nature.Nature)
2020
Type() reflect.Type
2121
SetType(reflect.Type)
@@ -47,8 +47,8 @@ func (n *base) SetLocation(loc file.Location) {
4747
}
4848

4949
// Nature returns the nature of the node.
50-
func (n *base) Nature() nature.Nature {
51-
return n.nature
50+
func (n *base) Nature() *nature.Nature {
51+
return &n.nature
5252
}
5353

5454
// SetNature sets the nature of the node.
@@ -66,7 +66,7 @@ func (n *base) Type() reflect.Type {
6666

6767
// SetType sets the type of the node.
6868
func (n *base) SetType(t reflect.Type) {
69-
n.nature.Type = t
69+
n.nature = nature.FromType(t)
7070
}
7171

7272
// NilNode represents nil.

0 commit comments

Comments
 (0)