public override void EnterVoglobal([NotNull] XSharpParser.VoglobalContext context) { var tokens = context.Modifiers?._Tokens; this._currentVarVisibility = decodeVisibility(tokens); this._currentVarStatic = isStatic(tokens); }
public override void ExitVoglobal([NotNull] XSharpParser.VoglobalContext context) { foreach (var member in _classVars) { // convert from classvars to voglobal var newMember = new XTypeMember(member.Name, Kind.VOGlobal, member.Modifiers, member.Visibility, member.Range, member.Interval, member.TypeName, _currentVarStatic); addGlobalMember(newMember); } _classVars.Clear(); endMember(context); }