Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for LiteralValue (0.29 sec)

  1. platforms/software/build-init/src/main/java/org/gradle/buildinit/plugins/internal/BuildScriptBuilder.java

            return new LiteralValue(value);
        }
    
        /**
         * Creates a property expression, to use as a method argument or the RHS of a property assignment.
         */
        public Expression propertyExpression(Expression expression, String value) {
            return new ChainedPropertyExpression(expressionValue(expression), new LiteralValue(value));
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 21 12:02:29 UTC 2023
    - 90K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/syntax/parser.go

    	}
    	return false
    }
    
    // Element = Expression | LiteralValue .
    func (p *parser) bare_complitexpr() Expr {
    	if trace {
    		defer p.trace("bare_complitexpr")()
    	}
    
    	if p.tok == _Lbrace {
    		// '{' start_complit braced_keyval_list '}'
    		return p.complitexpr()
    	}
    
    	return p.expr()
    }
    
    // LiteralValue = "{" [ ElementList [ "," ] ] "}" .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 62.9K bytes
    - Viewed (0)
  3. src/go/printer/testdata/parser.go

    		if p.tok != token.COMMA {
    			break
    		}
    		p.next()
    	}
    
    	return
    }
    
    func (p *parser) parseLiteralValue(typ ast.Expr) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "LiteralValue"))
    	}
    
    	lbrace := p.expect(token.LBRACE)
    	var elts []ast.Expr
    	p.exprLev++
    	if p.tok != token.RBRACE {
    		elts = p.parseElementList()
    	}
    	p.exprLev--
    	rbrace := p.expect(token.RBRACE)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 20:19:51 UTC 2023
    - 50.5K bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    </p>
    
    <pre class="ebnf">
    CompositeLit  = LiteralType LiteralValue .
    LiteralType   = StructType | ArrayType | "[" "..." "]" ElementType |
                    SliceType | MapType | TypeName .
    LiteralValue  = "{" [ ElementList [ "," ] ] "}" .
    ElementList   = KeyedElement { "," KeyedElement } .
    KeyedElement  = [ Key ":" ] Element .
    Key           = FieldName | Expression | LiteralValue .
    FieldName     = identifier .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/go/parser/parser.go

    			break
    		}
    		p.next()
    	}
    
    	return
    }
    
    func (p *parser) parseLiteralValue(typ ast.Expr) ast.Expr {
    	if p.trace {
    		defer un(trace(p, "LiteralValue"))
    	}
    
    	lbrace := p.expect(token.LBRACE)
    	var elts []ast.Expr
    	p.exprLev++
    	if p.tok != token.RBRACE {
    		elts = p.parseElementList()
    	}
    	p.exprLev--
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 08 20:07:50 UTC 2023
    - 72.2K bytes
    - Viewed (0)
  6. doc/go_spec.html

    <pre class="ebnf">
    CompositeLit  = LiteralType LiteralValue .
    LiteralType   = StructType | ArrayType | "[" "..." "]" ElementType |
                    SliceType | MapType | TypeName [ TypeArgs ] .
    LiteralValue  = "{" [ ElementList [ "," ] ] "}" .
    ElementList   = KeyedElement { "," KeyedElement } .
    KeyedElement  = [ Key ":" ] Element .
    Key           = FieldName | Expression | LiteralValue .
    FieldName     = identifier .
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
Back to top