Options
All
  • Public
  • Public/Protected
  • All
Menu

Class JSXElementAnalyzer

Hierarchy

  • JSXElementAnalyzer

Index

Constructors

constructor

Properties

Private analysis

analysis: JSXAnalysis

Private classProperties

classProperties: Flags

Private filename

filename: string

Private isRewriteMode

isRewriteMode: boolean

Methods

Private addPossibleDynamicStyles

  • addPossibleDynamicStyles(element: JSXElementAnalysis, expression: Expression, path: NodePath<Node>): void
  • Given a well formed style expression CallExpression, add all Block style references to the given analysis object.

    Parameters

    • element: JSXElementAnalysis
    • expression: Expression
    • path: NodePath<Node>

      The objstr CallExpression Path.

    Returns void

analyzeAssignment

Private analyzeClassAttribute

Private analyzeClassExpression

  • analyzeClassExpression(expression: NodePath<Expression>, element: JSXElementAnalysis, suppressErrors?: boolean): void

analyzeJSXElement

classAttributePaths

  • classAttributePaths(path: NodePath<JSXOpeningElement>): Array<NodePath<JSXAttribute>>

Private endElement

Private isClassAttribute

  • isClassAttribute(attr: JSXAttribute): boolean

Private location

  • location(loc: SourceLocation | Node | NodePath<Node>): TemplateSourceLocation

Private nodeLoc

  • nodeLoc(node: Node | NodePath<Node>): TemplateSourcePosition

Private startElement

  • startElement(location: TemplateSourceLocation, tagName?: undefined | string): JSXElementAnalysis

styleVariableBinding

  • styleVariableBinding(path: NodePath<JSXAttribute>): Binding | undefined

Generated using TypeDoc