GlobalVariable Class

Definition

Line 7 of cmsxi/Data.cm

Inheritance

Constructors & Destructor

public nothrow GlobalVariable(Type* type_, const String<char>& name_, ConstantValue* initializer_, int line_, Location* homeLocation_, bool once_)

Member Functions

public void GenerateDeclaration(MachineCode& machineCode)
public void GenerateDefinition(MachineCode& machineCode, Context& context)
public override nothrow Location* HomeLocation() const
public override nothrow String<char> Name() const
public void Print(CodeFormatter& formatter)
public void Validate()

Member Variables

public Location* homeLocation
public ConstantValue* initializer
public String<char> name
public bool once

Constructor& Destructor Details

GlobalVariable Constructor

public nothrow GlobalVariable(Type* type_, const String<char>& name_, ConstantValue* initializer_, int line_, Location* homeLocation_, bool once_)

Definition
Line 9 of cmsxi/Data.cm


Member Function Details

GenerateDeclaration Member Function

public void GenerateDeclaration(MachineCode& machineCode)

Definition
Line 37 of cmsxi/Data.cm


GenerateDefinition Member Function

public void GenerateDefinition(MachineCode& machineCode, Context& context)

Definition
Line 53 of cmsxi/Data.cm


HomeLocation Member Function

public override nothrow Location* HomeLocation()

Definition
Line 15 of cmsxi/Data.cm


Name Member Function

public override nothrow String<char> Name()

Definition
Line 19 of cmsxi/Data.cm


Print Member Function

public void Print(CodeFormatter& formatter)

Definition
Line 65 of cmsxi/Data.cm


Validate Member Function

public void Validate()

Definition
Line 23 of cmsxi/Data.cm