/
generatedTStackRef.go
35 lines (30 loc) · 1.27 KB
/
generatedTStackRef.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package model
//*****************************************************************************
//
// _ _ ____ _ _
// / \ _ _| |_ ___ / ___| ___ _ __ ___ _ __ __ _| |_ ___ __| |
// / _ \| | | | __/ _ \ | | _ / _ \ '_ \ / _ \ '__/ _` | __/ _ \/ _` |
// / ___ \ |_| | || (_) | | |_| | __/ | | | __/ | | (_| | || __/ (_| |
// /_/ \_\__,_|\__\___/ \____|\___|_| |_|\___|_| \__,_|\__\___|\__,_|
//
// This file is autogenerated by "go generate .". Do not modify.
//
//*****************************************************************************
// ----------------------------------------------------
// Implementation(s) of TStackRef
// ----------------------------------------------------
//TStackRefOnStackRefHolder is the struct containing the StackRef in order to implement TStackRef
type TStackRefOnStackRefHolder struct {
h StackRef
}
//CreateTStackRefForStackRef returns an holder of StackRef implementing TStackRef
func CreateTStackRefForStackRef(o StackRef) TStackRefOnStackRefHolder {
return TStackRefOnStackRefHolder{
h: o,
}
}
//Stack returns the stack corresponding to the ref
func (r TStackRefOnStackRefHolder) Stack() (TStack, error) {
v, err := r.h.Resolve()
return CreateTStackForStack(v), err
}