github.com/andybalholm/cascadia.parser.s (field)

97 uses

	github.com/andybalholm/cascadia (current package)
		parser.go#L14: 	s string // the source text
		parser.go#L20: 	if len(p.s) < p.i+2 || p.s[p.i] != '\\' {
		parser.go#L25: 	c := p.s[start]
		parser.go#L32: 		for i = start; i < p.i+6 && i < len(p.s) && hexDigit(p.s[i]); i++ {
		parser.go#L35: 		v, _ := strconv.ParseUint(p.s[start:i], 16, 21)
		parser.go#L36: 		if len(p.s) > i {
		parser.go#L37: 			switch p.s[i] {
		parser.go#L40: 				if len(p.s) > i && p.s[i] == '\n' {
		parser.go#L52: 	result = p.s[start : start+1]
		parser.go#L97: 	if len(p.s) > p.i && p.s[p.i] == '-' {
		parser.go#L102: 	if len(p.s) <= p.i {
		parser.go#L106: 	if c := p.s[p.i]; !(nameStart(c) || c == '\\') {
		parser.go#L122: 	for i < len(p.s) {
		parser.go#L123: 		c := p.s[i]
		parser.go#L127: 			for i < len(p.s) && nameChar(p.s[i]) {
		parser.go#L130: 			result += p.s[start:i]
		parser.go#L155: 	if len(p.s) < i+2 {
		parser.go#L159: 	quote := p.s[i]
		parser.go#L163: 	for i < len(p.s) {
		parser.go#L164: 		switch p.s[i] {
		parser.go#L166: 			if len(p.s) > i+1 {
		parser.go#L167: 				switch c := p.s[i+1]; c {
		parser.go#L169: 					if len(p.s) > i+2 && p.s[i+2] == '\n' {
		parser.go#L192: 			for i < len(p.s) {
		parser.go#L193: 				if c := p.s[i]; c == quote || c == '\\' || c == '\r' || c == '\n' || c == '\f' {
		parser.go#L198: 			result += p.s[start:i]
		parser.go#L202: 	if i >= len(p.s) {
		parser.go#L217: 	if len(p.s) < i+2 {
		parser.go#L226: 	for i < len(p.s) {
		parser.go#L227: 		switch p.s[i] {
		parser.go#L239: 	if i >= len(p.s) {
		parser.go#L242: 	rx, err = regexp.Compile(p.s[p.i:i])
		parser.go#L251: 	for i < len(p.s) {
		parser.go#L252: 		switch p.s[i] {
		parser.go#L257: 			if strings.HasPrefix(p.s[i:], "/*") {
		parser.go#L258: 				end := strings.Index(p.s[i+len("/*"):], "*/")
		parser.go#L279: 	if p.i < len(p.s) && p.s[p.i] == '(' {
		parser.go#L292: 	if p.i < len(p.s) && p.s[p.i] == ')' {
		parser.go#L311: 	if p.i >= len(p.s) {
		parser.go#L314: 	if p.s[p.i] != '#' {
		parser.go#L315: 		return idSelector{}, fmt.Errorf("expected id selector (#id), found '%c' instead", p.s[p.i])
		parser.go#L329: 	if p.i >= len(p.s) {
		parser.go#L332: 	if p.s[p.i] != '.' {
		parser.go#L333: 		return classSelector{}, fmt.Errorf("expected class selector (.class), found '%c' instead", p.s[p.i])
		parser.go#L347: 	if p.i >= len(p.s) {
		parser.go#L350: 	if p.s[p.i] != '[' {
		parser.go#L351: 		return attrSelector{}, fmt.Errorf("expected attribute selector ([attribute]), found '%c' instead", p.s[p.i])
		parser.go#L363: 	if p.i >= len(p.s) {
		parser.go#L367: 	if p.s[p.i] == ']' {
		parser.go#L372: 	if p.i+2 >= len(p.s) {
		parser.go#L376: 	op := p.s[p.i : p.i+2]
		parser.go#L385: 	if p.i >= len(p.s) {
		parser.go#L393: 		switch p.s[p.i] {
		parser.go#L405: 	if p.i >= len(p.s) {
		parser.go#L408: 	if p.s[p.i] != ']' {
		parser.go#L409: 		return attrSelector{}, fmt.Errorf("expected ']', found '%c' instead", p.s[p.i])
		parser.go#L427: 	if p.i >= len(p.s) {
		parser.go#L430: 	if p.s[p.i] != ':' {
		parser.go#L431: 		return nil, fmt.Errorf("expected attribute selector (:pseudoclass), found '%c' instead", p.s[p.i])
		parser.go#L435: 	if p.s[p.i] == ':' { // we found a pseudo-element
		parser.go#L463: 		if p.i == len(p.s) {
		parser.go#L467: 		switch p.s[p.i] {
		parser.go#L478: 		if p.i >= len(p.s) {
		parser.go#L495: 		if p.i >= len(p.s) {
		parser.go#L549: 	for i < len(p.s) && '0' <= p.s[i] && p.s[i] <= '9' {
		parser.go#L557: 	val, err := strconv.Atoi(p.s[start:i])
		parser.go#L568: 	if p.i >= len(p.s) {
		parser.go#L571: 	switch p.s[p.i] {
		parser.go#L602: 	if p.i >= len(p.s) {
		parser.go#L605: 	switch p.s[p.i] {
		parser.go#L621: 	if p.i >= len(p.s) {
		parser.go#L624: 	switch p.s[p.i] {
		parser.go#L641: 	if p.i >= len(p.s) {
		parser.go#L644: 	switch p.s[p.i] {
		parser.go#L655: 	if p.i >= len(p.s) {
		parser.go#L658: 	switch p.s[p.i] {
		parser.go#L691: 	if p.i >= len(p.s) {
		parser.go#L695: 	switch p.s[p.i] {
		parser.go#L710: 	for p.i < len(p.s) {
		parser.go#L715: 		switch p.s[p.i] {
		parser.go#L755: 		if p.i >= len(p.s) {
		parser.go#L759: 		switch p.s[p.i] {
		parser.go#L761: 			combinator = p.s[p.i]
		parser.go#L789: 	for p.i < len(p.s) {
		parser.go#L790: 		if p.s[p.i] != ',' {
		selector.go#L28: 	p := &parser{s: sel}
		selector.go#L43: 	p := &parser{s: sel}