@malloydata/malloy 0.0.43-dev230620232755 → 0.0.43-dev230621180201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Dialect } from './dialect';
|
|
2
|
-
import { FunctionDef } from '../model';
|
|
2
|
+
import { FunctionDef } from '../model/malloy_types';
|
|
3
3
|
export declare function getDialect(name: string): Dialect;
|
|
4
4
|
export declare function registerDialect(d: Dialect): void;
|
|
5
5
|
export declare function getDialectFunction(name: string): FunctionDef | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FunctionParameterDef, Fragment, FieldValueType, TypeDesc, Expr, FunctionParamTypeDesc } from '
|
|
1
|
+
import { FunctionParameterDef, Fragment, FieldValueType, TypeDesc, Expr, FunctionParamTypeDesc } from '../../model/malloy_types';
|
|
2
2
|
export interface DialectFunctionOverloadDef {
|
|
3
3
|
returnType: TypeDesc;
|
|
4
4
|
params: FunctionParameterDef[];
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
*/
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.GlobalNameSpace = void 0;
|
|
26
|
-
const
|
|
26
|
+
const dialect_map_1 = require("../../../dialect/dialect_map");
|
|
27
27
|
/**
|
|
28
28
|
* We may want to remove this in the future...
|
|
29
29
|
*
|
|
@@ -34,7 +34,7 @@ class GlobalNameSpace {
|
|
|
34
34
|
getEntry(name) {
|
|
35
35
|
// TODO cache this or precompute this so we're not comparing/merging dialect
|
|
36
36
|
// overloads on every usage
|
|
37
|
-
const func = (0,
|
|
37
|
+
const func = (0, dialect_map_1.getDialectFunction)(name);
|
|
38
38
|
if (func === undefined) {
|
|
39
39
|
return undefined;
|
|
40
40
|
}
|