Example #1
0
        private CommandSyntax ParseUnitySetTextureCombine()
        {
            var keyword = Match(SyntaxKind.CombineKeyword);
            var value   = ParseUnitySetTextureCombineValue();

            SyntaxToken modifierToken = null;

            if (Current.Kind == SyntaxKind.DoubleKeyword || Current.Kind == SyntaxKind.QuadKeyword)
            {
                modifierToken = NextToken();
            }

            CommandSetTextureCombineAlphaComponentSyntax alphaComponent = null;

            if (Current.Kind == SyntaxKind.CommaToken)
            {
                alphaComponent = ParseUnityCommandSetTextureCombineAlphaComponent();
            }

            return(new CommandSetTextureCombineSyntax(keyword, value, modifierToken, alphaComponent));
        }
Example #2
0
 public virtual void VisitCommandSetTextureCombineAlphaComponent(CommandSetTextureCombineAlphaComponentSyntax node)
 {
     DefaultVisit(node);
 }
Example #3
0
 public virtual void VisitCommandSetTextureCombineAlphaComponent(CommandSetTextureCombineAlphaComponentSyntax node)
 {
     DefaultVisit(node);
 }
 public CommandSetTextureCombineSyntax(SyntaxToken combineKeyword, BaseCommandSetTextureCombineValueSyntax value, SyntaxToken modifier, CommandSetTextureCombineAlphaComponentSyntax alphaComponent)
     : base(SyntaxKind.CommandSetTextureCombine)
 {
     RegisterChildNode(out CombineKeyword, combineKeyword);
     RegisterChildNode(out Value, value);
     RegisterChildNode(out Modifier, modifier);
     RegisterChildNode(out AlphaComponent, alphaComponent);
 }