MCPcopy Create free account

hub / github.com/c9s/c6 / functions

Functions854 in github.com/c9s/c6

↓ 154 callersMethodnext
next returns the next rune in the input.
lexer/lexer.go:201
↓ 106 callersMethodemit
* Emit a token to the channel emit(ast.T_SEMICOLON) emit(ast.T_PSEUDO_SELECTOR, true) // contains interpolation */
lexer/lexer.go:306
↓ 98 callersFunctionRunParserTest
(code string)
parser/parser_test.go:13
↓ 91 callersFunctionAssertLexerTokenSequence
(t *testing.T, scss string, tokenList []ast.TokenType)
lexer/test_utils.go:16
↓ 67 callersMethodString
()
ast/expr.go:4
↓ 55 callersFunctionNewLexerWithString
** Create a lexer object with string */
lexer/lexer.go:82
↓ 51 callersMethodexpect
(tokenType ast.TokenType)
parser/parser.go:158
↓ 50 callersMethodRun
()
lexer/lexer.go:471
↓ 49 callersMethodClose
()
lexer/lexer.go:479
↓ 47 callersMethodpeek
peek returns but does not consume the next rune in the input.
lexer/lexer.go:223
↓ 46 callersMethodpeek
()
parser/parser.go:205
↓ 44 callersMethodaccept
accept() accepts one token type one time. rolls back if the token type mismatch
parser/parser.go:118
↓ 44 callersMethodbackup
backup steps back one rune. Can be called only once per call of next.
lexer/lexer.go:216
↓ 40 callersFunctionAssertTokenSequence
(t *testing.T, l *Lexer, tokenList []ast.TokenType)
lexer/test_utils.go:37
↓ 35 callersFunctiondebug
(format string, args ...interface{})
parser/parser.go:22
↓ 27 callersFunctionAssertLexerTokenSequenceFromState
(t *testing.T, scss string, fn stateFn, tokenList []ast.TokenType)
lexer/test_utils.go:7
↓ 26 callersMethodnext
()
parser/parser.go:171
↓ 25 callersMethodignoreSpaces
* ignore space characters return true if there is space */
lexer/lexer.go:407
↓ 24 callersMethoderrorf
(msg string, r rune)
lexer/lexer_state.go:14
↓ 21 callersMethodParseExpr
** We here treat the property values as expressions: padding: {expression} {expression} {expression}; margin: {expression}; */
parser/rules.go:709
↓ 21 callersMethodmatch
lookahead match method to match a string
lexer/lexer.go:332
↓ 20 callersFunctionlexExpr
* Lexing expression with interpolation support. */
lexer/lexer_expr.go:9
↓ 17 callersFunctionNewParser
(context *runtime.Context)
parser/parser.go:64
↓ 17 callersMethodParseScss
(code string)
parser/rules.go:62
↓ 16 callersMethodaccept
test the next character, if it's not matched, go back to the original offset. Note, this method only match the first character
lexer/lexer.go:149
↓ 15 callersMethodadvance
()
parser/parser.go:197
↓ 13 callersMethodignore
ignore skips over the pending input before this point.
lexer/lexer.go:327
↓ 13 callersMethodrestore
(pos int)
parser/parser.go:103
↓ 12 callersMethodTokenStream
()
lexer/lexer.go:111
↓ 11 callersMethodAppend
(expr Expr)
ast/list.go:33
↓ 10 callersMethodParseDeclBlock
()
parser/rules.go:1177
↓ 9 callersFunctionAssertCompile
(t *testing.T, code string, expected string)
compiler/compact_compiler_test.go:8
↓ 9 callersFunctionIsInterpolationStartToken
(r rune, r2 rune)
lexer/lexer_selector.go:7
↓ 9 callersMethodbackup
()
parser/parser.go:99
↓ 9 callersFunctionuintsub
(a, b uint32)
runtime/color.go:24
↓ 8 callersFunctionCompute
(op *ast.Op, a ast.Value, b ast.Value)
runtime/compute.go:60
↓ 7 callersFunctionlexInterpolation
* There are 3 scope that users may use interpolation syntax: {selector interpolation} { {property name inpterpolation}: {property value interpola
lexer/lexer_interpolation.go:15
↓ 7 callersMethodpeekBy
peek more characters peekBy(1) == peek()
lexer/lexer.go:249
↓ 6 callersMethodBoolean
()
ast/boolean.go:6
↓ 6 callersMethodHex
()
ast/color_rgba.go:57
↓ 6 callersFunctionIsComparable
(av ast.Value, bv ast.Value)
runtime/compare.go:5
↓ 6 callersMethodremember
remember the current offset, can be rolled back by using the `rollback` method
lexer/lexer.go:121
↓ 6 callersMethodrollback
rollback reset the offset to the backup point (this is a rune-wise rollback)
lexer/lexer.go:128
↓ 5 callersFunctionEvaluateUnaryExpr
(expr *ast.UnaryExpr, context *Context)
runtime/compute.go:488
↓ 5 callersFunctionHexToRGBA
HexToRGB converts an Hex string to a RGB triple.
ast/color.go:45
↓ 5 callersMethodLen
()
ast/list.go:29
↓ 5 callersMethodexpect
(valid string)
lexer/lexer.go:140
↓ 5 callersFunctionlexComment
(l *Lexer, emit bool)
lexer/lexer_comment.go:52
↓ 5 callersMethodmatchKeywordList
(keywords ast.KeywordTokenList)
lexer/lexer.go:365
↓ 4 callersFunctionEvaluateBinaryExpr
* EvaluateBinaryExpr recursively. */
runtime/compute.go:444
↓ 4 callersMethodGetVariable
(name string)
runtime/context.go:62
↓ 4 callersMethodHasCompliant
(compliant int)
compiler/compact_compiler.go:51
↓ 4 callersFunctionIsValue
* This function returns true when the val is a scalar value, not an expression. */
runtime/compute.go:322
↓ 4 callersFunctionNewRGBAColor
(r, g, b uint32, a float32, token *Token)
ast/color_rgba.go:35
↓ 4 callersFunctionOutputRed
(t *testing.T, msg string, args ...interface{})
lexer/test_utils.go:31
↓ 4 callersMethodRGBColor
()
ast/color_hsl.go:27
↓ 4 callersMethodacceptAnyOf2
(tokType1, tokType2 ast.TokenType)
parser/parser.go:140
↓ 4 callersMethodcreateToken
(tokenType ast.TokenType)
lexer/lexer.go:283
↓ 4 callersMethodemitToken
(token *ast.Token)
lexer/lexer.go:264
↓ 4 callersMethodlength
Return the length of the current token
lexer/lexer.go:191
↓ 4 callersFunctionlexString
(l *Lexer)
lexer/lexer_string.go:7
↓ 4 callersMethodpeek2
()
lexer/lexer.go:229
↓ 4 callersMethodtil
(str string)
lexer/lexer.go:315
↓ 3 callersFunctionConvertHUE
(p, q, t float64)
ast/color_hsl.go:92
↓ 3 callersFunctionEvaluateUnaryExprInBooleanContext
(expr *ast.UnaryExpr, context *Context)
runtime/compute.go:380
↓ 3 callersFunctionNewRGBColor
(r, g, b uint32, token *Token)
ast/color_rgba.go:65
↓ 3 callersMethodParseCondition
* The operator precedence is described here @see http://introcs.cs.princeton.edu/java/11precedence/ */
parser/rules.go:205
↓ 3 callersMethodParseFunctionPrototype
()
parser/rules.go:1623
↓ 3 callersMethodParseList
()
parser/rules.go:941
↓ 3 callersMethodParseLogicExpr
()
parser/rules.go:216
↓ 3 callersMethodParseStmts
()
parser/rules.go:89
↓ 3 callersMethodParseTerm
()
parser/rules.go:678
↓ 3 callersMethodParseVariable
()
parser/rules.go:999
↓ 3 callersMethodReadFile
()
ast/file.go:21
↓ 3 callersMethodSet
(key Expr, val Expr)
ast/map.go:13
↓ 3 callersMethodTopRuleSet
()
runtime/context.go:55
↓ 3 callersMethodlastToken
()
lexer/lexer.go:58
↓ 3 callersFunctionlexInterpolation2
Lex the expression inside interpolation
lexer/lexer_interpolation.go:54
↓ 3 callersFunctionlexVariableName
$var-rgba(255,255,0)
lexer/lexer_var.go:9
↓ 2 callersMethodAdd
type ArgumentList []*Argument
ast/argument_list.go:10
↓ 2 callersMethodCompileStmt
(anyStm ast.Stmt)
compiler/compact_compiler.go:82
↓ 2 callersMethodDispatchFn
(fn stateFn)
lexer/lexer.go:447
↓ 2 callersMethodEnableCompliant
* * Enable compliant */
compiler/compact_compiler.go:40
↓ 2 callersMethodGet
(key Expr)
ast/map.go:21
↓ 2 callersFunctionHSLToRGB
* h = 0~360 s = 0~1 l = 0~1 */
ast/color_hsl.go:67
↓ 2 callersFunctionHSVToRGB
(h, s, v float64)
ast/color_hsv.go:72
↓ 2 callersFunctionHexColorAddNumber
(c *ast.HexColor, num *ast.Number)
runtime/color.go:10
↓ 2 callersMethodIsCssSlash
** The the divide expression will only be evaluated in the following 3 conditions: 1. If the value, or any part of it, is stored in a variable or re
ast/expr.go:67
↓ 2 callersFunctionIsSelector
(t ast.TokenType)
lexer/lexer_selector.go:16
↓ 2 callersFunctionNewClassSelector
(className string)
ast/selector.go:64
↓ 2 callersFunctionNewCompactCompiler
(context *runtime.Context)
compiler/compact_compiler.go:29
↓ 2 callersFunctionNewHSLColor
(h, s, v float64, token *Token)
ast/color_hsl.go:36
↓ 2 callersFunctionNewHSVColor
(h, s, v float64, token *Token)
ast/color_hsv.go:35
↓ 2 callersFunctionNewHexColor
(hex string, token *Token)
ast/color.go:39
↓ 2 callersFunctionNewNumber
(num float64, unit *Unit, token *Token)
ast/number.go:12
↓ 2 callersFunctionNewUnit
(unitType TokenType, token *Token)
ast/unit.go:10
↓ 2 callersFunctionOutputGreen
(t *testing.T, msg string, args ...interface{})
lexer/test_utils.go:25
↓ 2 callersMethodParseCommaSepList
()
parser/rules.go:951
↓ 2 callersMethodParseComparisonExpr
()
parser/rules.go:239
↓ 2 callersMethodParseComplexSelector
(parentRuleSet *ast.RuleSet)
parser/rules.go:353
next →1–100 of 854, ranked by callers