1 | #include "stdafx.h"
|
---|
2 | #include <jenga/include/jenga.h>
|
---|
3 | #include <abdev/ab_common/include/ab_common.h>
|
---|
4 |
|
---|
5 |
|
---|
6 | Member::Member( Prototype::Accessibility accessibility, const std::string &name, const Type &newType, bool isConst, const Subscripts &subscripts, const std::string &initializeExpression, const std::string &constructParameter )
|
---|
7 | : MemberPrototype( accessibility )
|
---|
8 | , name( name )
|
---|
9 | , type( newType )
|
---|
10 | , isConst( isConst )
|
---|
11 | , subscripts( subscripts )
|
---|
12 | , initializeExpression( initializeExpression )
|
---|
13 | , constructParameter( constructParameter )
|
---|
14 | {
|
---|
15 | }
|
---|
16 |
|
---|
17 | Member::Member( const Member &member )
|
---|
18 | : MemberPrototype( member.GetAccessibility() )
|
---|
19 | , name( member.GetName() )
|
---|
20 | , type( member.GetType() )
|
---|
21 | , isConst( member.IsConst() )
|
---|
22 | , subscripts( member.GetSubscripts() )
|
---|
23 | , source_code_address( member.source_code_address )
|
---|
24 | {
|
---|
25 | }
|
---|
26 |
|
---|
27 | Member::Member( const Member &member, const Type &actualType )
|
---|
28 | : MemberPrototype( member.GetAccessibility() )
|
---|
29 | , name( member.GetName() )
|
---|
30 | , type( actualType )
|
---|
31 | , isConst( member.IsConst() )
|
---|
32 | , subscripts( member.GetSubscripts() )
|
---|
33 | , source_code_address( member.source_code_address )
|
---|
34 | {
|
---|
35 | }
|
---|
36 |
|
---|
37 | Member::Member()
|
---|
38 | {
|
---|
39 | }
|
---|
40 |
|
---|
41 | Member::~Member()
|
---|
42 | {
|
---|
43 | }
|
---|
44 |
|
---|
45 | bool Member::Resolve( const ObjectModule &resolver, ResolveErrors &resolveErrors )
|
---|
46 | {
|
---|
47 | type.Resolve( resolver, resolveErrors );
|
---|
48 | return true;
|
---|
49 | }
|
---|