-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #795 from Shopify/uk-refactor-dsl-compilers
Refactor DSL compilers
- Loading branch information
Showing
35 changed files
with
861 additions
and
773 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# typed: strict | ||
# frozen_string_literal: true | ||
|
||
require "tapioca/rbi_ext/model" | ||
require "tapioca/dsl/helpers/param_helper" | ||
require "tapioca/dsl/pipeline" | ||
|
||
module Tapioca | ||
module Dsl | ||
module Compilers | ||
DIRECTORY = T.let( | ||
File.expand_path("compilers", __dir__), | ||
String | ||
) | ||
|
||
# DSL compilers are either built-in to Tapioca and live under the | ||
# `Tapioca::Dsl::Compilers` namespace (i.e. this namespace), and | ||
# can be referred to by just using the class name, or they live in | ||
# a different namespace and can only be referred to using their fully | ||
# qualified name. This constant encapsulates that dual lookup when | ||
# a compiler needs to be resolved by name. | ||
NAMESPACES = T.let( | ||
[ | ||
"#{name}::", # compilers in this namespace | ||
"::", # compilers that need to be fully namespaced | ||
], | ||
T::Array[String] | ||
) | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.