Esempio n. 1
0
        public override void AfterBehaviour()
        {
            modifiers = FindChild<VisibilityModifierNode>();
            var symbol = new ST.Symbol(Name, "property");
            if (modifiers.IsPublic)
                symbol.SetPublic();
            symbol.Scope = AST.Table.CurrentClass.Name;

            var type = FindChild("qualified-type");
            symbol.Type = type.ToJs();
            if (string.IsNullOrEmpty(symbol.Type))
                symbol.Type = "void";

            AST.Table.Elements.Add(symbol);
        }
Esempio n. 2
0
 public override void BeforeBehaviour()
 {
     modifiers = FindChild<VisibilityModifierNode>();
     id = FindChild<IdentifierToken>();
     parameters = FindChild<ParametersNode>();
 }