Skip to content

Commit

Permalink
Merge pull request #41467 from reginareynolds/master
Browse files Browse the repository at this point in the history
Move `Iterable` and `RawTemplate` objects to same file in `lang.object`
  • Loading branch information
MaryamZi authored Oct 23, 2023
2 parents 74c138e + ff420a6 commit 0c76135
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 29 deletions.
13 changes: 13 additions & 0 deletions langlib/lang.object/src/main/ballerina/object.bal
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,16 @@ public type Iterable distinct object {
public function next() returns record {| any|error value; |}|error?;
};
};

# Distinct RawTemplate type.
# A raw template expression constructs an object belonging to this type.
public type RawTemplate distinct object {
# An array of the strings containing the characters in BacktickString
# outside of interpolations, split at the interpolation points.
# The length of this array is one greater than
# the length of the `insertions` array.
public (readonly & string[]) strings;
# An array containing the results of evaluating the
# interpolations in the BacktickString.
public (any|error)[] insertions;
};
29 changes: 0 additions & 29 deletions langlib/lang.object/src/main/ballerina/raw_template.bal

This file was deleted.

0 comments on commit 0c76135

Please sign in to comment.