Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
asdf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hugo Ishimaru
asdf
Commits
9a338e76
Commit
9a338e76
authored
11 years ago
by
Robert P. Goldman
Browse files
Options
Downloads
Patches
Plain Diff
Document strings for the OPERATION subclasses that handle propagation.
parent
03bff8ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
action.lisp
+24
-4
24 additions, 4 deletions
action.lisp
with
24 additions
and
4 deletions
action.lisp
+
24
−
4
View file @
9a338e76
...
@@ -130,9 +130,16 @@ You can put together sentences using this phrase."))
...
@@ -130,9 +130,16 @@ You can put together sentences using this phrase."))
;; operation on a parent depends-on operation on its children.
;; operation on a parent depends-on operation on its children.
;; By default, an operation propagates itself, but it may propagate another one instead.
;; By default, an operation propagates itself, but it may propagate another one instead.
(
with-upgradability
()
(
with-upgradability
()
(
deftype
op-class-designator
()
'
(
or
symbol
class
))
(
defclass
downward-operation
(
operation
)
(
defclass
downward-operation
(
operation
)
((
downward-operation
((
downward-operation
:initform
nil
:initarg
:downward-operation
:reader
downward-operation
:allocation
:class
)))
:initform
nil
:initarg
:downward-operation
:reader
downward-operation
:type
op-class-designator
:allocation
:class
))
(
:documentation
"A DOWNWARD-OPERATION object propagates its DOWNWARD-OPERATION value to its children.
I.e., if DOWNWARD-OPERATION OP is requested on C, \(DOWNWARD-OPERATION OP\) will be propagated to C's
children. E.g., in order to load a MODULE, you must load all of the children of the MODULE.
\(DOWNWARD-OPERATION OP\) defaults to be the same as OP's class."
))
(
defmethod
component-depends-on
((
o
downward-operation
)
(
c
parent-component
))
(
defmethod
component-depends-on
((
o
downward-operation
)
(
c
parent-component
))
`
((
,
(
or
(
downward-operation
o
)
o
)
,@
(
component-children
c
))
,@
(
call-next-method
)))
`
((
,
(
or
(
downward-operation
o
)
o
)
,@
(
component-children
c
))
,@
(
call-next-method
)))
;; Upward operations like prepare-op propagate up the component hierarchy:
;; Upward operations like prepare-op propagate up the component hierarchy:
...
@@ -140,7 +147,12 @@ You can put together sentences using this phrase."))
...
@@ -140,7 +147,12 @@ You can put together sentences using this phrase."))
;; By default, an operation propagates itself, but it may propagate another one instead.
;; By default, an operation propagates itself, but it may propagate another one instead.
(
defclass
upward-operation
(
operation
)
(
defclass
upward-operation
(
operation
)
((
upward-operation
((
upward-operation
:initform
nil
:initarg
:downward-operation
:reader
upward-operation
:allocation
:class
)))
:initform
nil
:initarg
:downward-operation
:reader
upward-operation
:allocation
:class
))
(
:documentation
"An UPWARD-OPERATION object propagates its UPWARD-OPERATION value to its parent.
I.e., if UPWARD-OPERATION OP is requested on C, \(UPWARD-OPERATION OP\) will be propagated to C's
parent. E.g., in order to PREPARE-OP (prepare to load) a file C, ASDF must perform PREPARE-OP
on C's parent MODULE or SYSTEM.
\(UPWARD-OPERATION OP\) defaults to be the same as OP's class."
))
;; For backward-compatibility reasons, a system inherits from module and is a child-component
;; For backward-compatibility reasons, a system inherits from module and is a child-component
;; so we must guard against this case. ASDF4: remove that.
;; so we must guard against this case. ASDF4: remove that.
(
defmethod
component-depends-on
((
o
upward-operation
)
(
c
child-component
))
(
defmethod
component-depends-on
((
o
upward-operation
)
(
c
child-component
))
...
@@ -151,7 +163,11 @@ You can put together sentences using this phrase."))
...
@@ -151,7 +163,11 @@ You can put together sentences using this phrase."))
;; By default, an operation propagates itself, but it may propagate another one instead.
;; By default, an operation propagates itself, but it may propagate another one instead.
(
defclass
sideway-operation
(
operation
)
(
defclass
sideway-operation
(
operation
)
((
sideway-operation
((
sideway-operation
:initform
nil
:initarg
:sideway-operation
:reader
sideway-operation
:allocation
:class
)))
:initform
nil
:initarg
:sideway-operation
:reader
sideway-operation
:allocation
:class
))
(
:documentation
"A SIDEWAY-OPERATION object propagates its SIDEWAY-OPERATION value to its \"leftward\"
siblings: those components that have the same parent as the object component, C, and that are ordered prior to
C in the :DEPENDS-ON graph of C's parent.
\(SIDEWAY-OPERATION OP\) defaults to be the same as OP's class."
))
(
defmethod
component-depends-on
((
o
sideway-operation
)
(
c
component
))
(
defmethod
component-depends-on
((
o
sideway-operation
)
(
c
component
))
`
((
,
(
or
(
sideway-operation
o
)
o
)
`
((
,
(
or
(
sideway-operation
o
)
o
)
,@
(
loop
:for
dep
:in
(
component-sideway-dependencies
c
)
,@
(
loop
:for
dep
:in
(
component-sideway-dependencies
c
)
...
@@ -161,7 +177,11 @@ You can put together sentences using this phrase."))
...
@@ -161,7 +177,11 @@ You can put together sentences using this phrase."))
;; they depend on some other operation being acted on the same component.
;; they depend on some other operation being acted on the same component.
(
defclass
selfward-operation
(
operation
)
(
defclass
selfward-operation
(
operation
)
((
selfward-operation
((
selfward-operation
:initform
nil
:initarg
:selfward-operation
:reader
selfward-operation
:allocation
:class
)))
;; no :initform -- if you are going to propagate an operation to yourself, you must
;; specify it explicitly.
:initarg
:selfward-operation
:reader
selfward-operation
:allocation
:class
))
(
:documentation
"A SELFWARD-OPERATION object propagates its SELFWARD-OPERATION value to itself.
I.e., if SELFWARD-OPERATION OP is requested on C, \(SELFWARD-OPERATION OP\) will first be performed on C."
))
(
defmethod
component-depends-on
((
o
selfward-operation
)
(
c
component
))
(
defmethod
component-depends-on
((
o
selfward-operation
)
(
c
component
))
`
(
,@
(
loop
:for
op
:in
(
ensure-list
(
selfward-operation
o
))
`
(
,@
(
loop
:for
op
:in
(
ensure-list
(
selfward-operation
o
))
:collect
`
(
,
op
,
c
))
:collect
`
(
,
op
,
c
))
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment