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