public override void ConstantDeclaration(ConstantDecl x, MemoryEntry constantValue) { var constantName = ".constant_" + x.Name; var constantVar = new VariableIdentifier(constantName); OutSet.FetchFromGlobal(constantVar.DirectName); OutSet.GetVariable(constantVar).WriteMemory(OutSnapshot, constantValue); }
public override ReadWriteSnapshotEntryBase ResolveIndirectStaticField(MemoryEntry typeNames, VariableIdentifier field) { var variables = new List <string>(); foreach (var typeName in TypeNames(typeNames)) { var varName = string.Format("{0}::{1}", typeName, field.DirectName); variables.Add(varName); } var identifier = new VariableIdentifier(variables.ToArray()); return(OutSet.GetVariable(identifier)); }
public override ReadWriteSnapshotEntryBase ResolveStaticField(GenericQualifiedName type, VariableIdentifier field) { var varName = string.Format("{0}::{1}", type, field.DirectName); return(OutSet.GetVariable(new VariableIdentifier(varName))); }
public override ReadWriteSnapshotEntryBase ResolveVariable(VariableIdentifier variable) { var value = OutSet.GetVariable(variable); return(value); }