Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions 19 checker/src/main/java/dev/cel/checker/Standard.java
Original file line number Diff line number Diff line change
Expand Up @@ -419,25 +419,6 @@ private static ImmutableList<CelFunctionDecl> coreFunctionDeclarations() {
CelOverloadDecl.newGlobalOverload(
"duration_to_string", "type_conversion", SimpleType.STRING, SimpleType.DURATION)));

// Conversions to list
celFunctionDeclBuilder.add(
CelFunctionDecl.newFunctionDeclaration(
Function.LIST.getFunction(),
CelOverloadDecl.newGlobalOverload(
"to_list", "type conversion", listOfA, TypeType.create(typeParamA), listOfA)));

// Conversions to map
celFunctionDeclBuilder.add(
CelFunctionDecl.newFunctionDeclaration(
Function.MAP.getFunction(),
CelOverloadDecl.newGlobalOverload(
"to_map",
"type conversion",
mapOfAb,
TypeType.create(typeParamA),
TypeType.create(typeParamB),
mapOfAb)));

// Conversions to bytes
celFunctionDeclBuilder.add(
CelFunctionDecl.newFunctionDeclaration(
Expand Down
2 changes: 0 additions & 2 deletions 2 checker/src/test/resources/standardEnvDump.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -220,11 +220,9 @@ declare int {
}
declare list {
value type(list(dyn))
function to_list (type(A), list(A)) -> list(A)
}
declare map {
value type(map(dyn, dyn))
function to_map (type(A), type(B), map(A, B)) -> map(A, B)
}
declare matches {
function matches (string, string) -> bool
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.