Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for ARGS_LIST (0.36 sec)

  1. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/AbstractExpression.java

            }
            if (expression.getType() == IncludeType.ARGS_LIST && !expression.getArguments().isEmpty()) {
                List<Expression> mapped = new ArrayList<Expression>(expression.getArguments().size());
                for (Expression arg : expression.getArguments()) {
                    mapped.add(arg.asMacroExpansion());
                }
                return new ComplexExpression(IncludeType.ARGS_LIST, null, mapped);
            }
            return expression;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/main/java/org/gradle/language/nativeplatform/internal/Expression.java

         * Returns the left and right arguments of the expression when type is {@link IncludeType#TOKEN_CONCATENATION}.
         * Returns the sequence of arguments when type is {@link IncludeType#ARGS_LIST}.
         * Returns the sequence of expressions when type is {@link IncludeType#EXPRESSIONS}.
         */
        List<Expression> getArguments();
    
        /**
         * Returns this expression as a macro expansion expression.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/SimpleExpression.java

        public static final Expression EMPTY_EXPRESSIONS = new SimpleExpression(null, IncludeType.EXPRESSIONS);
        static final Expression EMPTY_ARGS = new SimpleExpression(null, IncludeType.ARGS_LIST);
        static final Expression LEFT_PAREN = new SimpleExpression("(", IncludeType.TOKEN);
        static final Expression COMMA = new SimpleExpression(",", IncludeType.TOKEN);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  4. platforms/native/platform-native/src/main/java/org/gradle/language/nativeplatform/internal/IncludeType.java

         */
        IDENTIFIER,
        /**
         * A macro function argument list. These appear in the body of a directive or as the arguments to a {@link #MACRO_FUNCTION} eg {@code #include ABC(a b c)}.
         */
        ARGS_LIST,
        /**
         * A sequence of expressions. These appear as the arguments to a {@link #MACRO_FUNCTION} eg {@code #include ABC(a b c)}.
         */
        EXPRESSIONS,
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  5. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolver.java

                visitor.visitQuoted(expression);
            } else if (expression.getType() == IncludeType.IDENTIFIER) {
                visitor.visitIdentifier(expression);
            } else if (expression.getType() == IncludeType.ARGS_LIST) {
                visitor.visitTokens(expression);
            } else {
                if (!visitor.startVisit(expression)) {
                    // Skip, visitor is not interested
                    return;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  6. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/IncludeDirectivesSerializerTest.groovy

            def include = new IncludeWithMacroFunctionCallExpression("A", true, ImmutableList.of(
                new SimpleExpression(null, IncludeType.EXPRESSIONS),
                new SimpleExpression(null, IncludeType.ARGS_LIST),
                new SimpleExpression(",", IncludeType.TOKEN),
                new SimpleExpression("(", IncludeType.TOKEN),
                new SimpleExpression(")", IncludeType.TOKEN)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  7. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParserTest.groovy

            }
            def e = RegexBackedCSourceParser.parseExpression("m($value)")
            assert e.arguments.size() == 1 && (e.arguments[0].type == IncludeType.EXPRESSIONS || e.arguments[0].type == IncludeType.ARGS_LIST || e.arguments[0].type == IncludeType.TOKEN_CONCATENATION)
            return e.arguments[0]
        }
    
        Include include(String value, boolean isImport = false) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 34.3K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/sourceparser/RegexBackedCSourceParser.java

                return;
            }
            Expression expression = parseDirectiveBodyExpression(buffer);
            if (expression.getType() == IncludeType.TOKEN_CONCATENATION || expression.getType() == IncludeType.ARGS_LIST || expression.getType() == IncludeType.EXPRESSIONS) {
                // Token concatenation is only allowed inside a #define body
                // Arbitrary tokens won't resolve to an include path
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 25.5K bytes
    - Viewed (0)
Back to top