64 matches across 1 files for func main path:packages/compiler-sfc/src/compileScript.ts lang:TypeScript
snippet_mode: auto · sorted by relevance
packages/compiler-sfc/src/compileScript.ts TYPESCRIPT 64 matches · showing 5 view file →
1import MagicString from 'magic-string'
2import LRU from 'lru-cache'
3import { walkIdentifiers, isFunctionType } from './babelUtils'
4import { BindingMetadata, BindingTypes } from './types'
5import { SFCDescriptor, SFCScriptBlock } from './parseComponent'
· · ·
24 TSType,
25 TSTypeLiteral,
26 TSFunctionType,
27 ObjectProperty,
28 ArrayExpression,
· · ·
96 * normal `<script>` + `<script setup>` if both are present.
97 */
98export function compileScript(
99 sfc: SFCDescriptor,
100 options: SFCScriptCompileOptions = { id: '' }
· · ·
208 let emitsRuntimeDecl: Node | undefined
209 let emitsTypeDecl:
210 | TSFunctionType
211 | TSTypeLiteral
212 | TSInterfaceBody
· · ·
236 const scriptEndOffset = script && script.end
237
238 function helper(key: string): string {
239 helperImports.add(key)
240 return `_${key}`
+ 59 more matches in this file
Search syntax
auth loginboth terms (AND is implicit)
auth OR logineither term
NOT path:vendorexclude matches
"exact phrase"quoted exact match
/func\s+Test/regex
handler~1fuzzy (Levenshtein 1)
file:*_test.gofilename glob
path:pkg/auth/**full path glob
lang:golanguage filter

Search any public repo from your terminal

This page calls POST /api/v1/code_search. Same tool, available over MCP for Claude/Cursor/Copilot.