public void InitializeContext() { foreach (var(dataType, name, value) in Platform.CompilerConstants) { GeneralScope.ReserveNewConstant(dataType, name, value); } }
public string GetLastFunctionCallStorageVariable(TypeDescriptor typeDescriptor, TextWriter metaTextWriter) { const string VariableName = "LastFunctionCall"; var existed = GeneralScope.ReserveOrUpdateNewVariable(typeDescriptor, VariableName); if (!existed) { BashVariableDefinitionStatementTranspiler.WriteVariableDefinition(this, GeneralScope, metaTextWriter, VariableName, "0"); } return(VariableName); }