Search in sources :

Example 6 with LocalVariableInfo

use of org.wso2.ballerinalang.programfile.LocalVariableInfo in project ballerina by ballerina-lang.

the class CodeGenerator method visitVarSymbol.

private void visitVarSymbol(BVarSymbol varSymbol, VariableIndex variableIndex, LocalVariableAttributeInfo localVarAttrInfo) {
    varSymbol.varIndex = getRegIndexInternal(varSymbol.type.tag, variableIndex.kind);
    LocalVariableInfo localVarInfo = getLocalVarAttributeInfo(varSymbol);
    localVarAttrInfo.localVars.add(localVarInfo);
}
Also used : LocalVariableInfo(org.wso2.ballerinalang.programfile.LocalVariableInfo)

Aggregations

LocalVariableInfo (org.wso2.ballerinalang.programfile.LocalVariableInfo)5 BLangEndpoint (org.wso2.ballerinalang.compiler.tree.BLangEndpoint)3 LocalVariableAttributeInfo (org.wso2.ballerinalang.programfile.attributes.LocalVariableAttributeInfo)3 BVarSymbol (org.wso2.ballerinalang.compiler.semantics.model.symbols.BVarSymbol)2 BLangExpression (org.wso2.ballerinalang.compiler.tree.expressions.BLangExpression)1 PackageVarInfo (org.wso2.ballerinalang.programfile.PackageVarInfo)1 AttributeInfo (org.wso2.ballerinalang.programfile.attributes.AttributeInfo)1 CodeAttributeInfo (org.wso2.ballerinalang.programfile.attributes.CodeAttributeInfo)1 DefaultValueAttributeInfo (org.wso2.ballerinalang.programfile.attributes.DefaultValueAttributeInfo)1 ErrorTableAttributeInfo (org.wso2.ballerinalang.programfile.attributes.ErrorTableAttributeInfo)1 LineNumberTableAttributeInfo (org.wso2.ballerinalang.programfile.attributes.LineNumberTableAttributeInfo)1 ParamDefaultValueAttributeInfo (org.wso2.ballerinalang.programfile.attributes.ParamDefaultValueAttributeInfo)1 VarTypeCountAttributeInfo (org.wso2.ballerinalang.programfile.attributes.VarTypeCountAttributeInfo)1