Exemplo n.º 1
0
        private void ReadMixin(ScopeNode currentScope)
        {
            var name = ReadName();

            VariableNode[] args = new VariableNode[0];

            SkipWhitespace();

            if (Peek() == '(')
                args = ReadArgumentDefinition().ToArray();

            var node = new MixinNode(name, args);
            Expect('{');
            ReadScopeContent(node);
            currentScope.Add(node);
        }
Exemplo n.º 2
0
 public override void SetMixin(MixinNode node)
 {
     _mixins[node.Name] = node;
 }
Exemplo n.º 3
0
 public virtual void SetMixin(MixinNode node)
 {
     Parent.SetMixin(node);
 }