Class LessParserBaseVisitor<Result>
This class provides an empty implementation of ILessParserVisitor<Result>, which can be extended to create a visitor which only needs to handle a subset of the available methods.
Inheritance
Namespace: GCore.Antlr.Grammers.Less
Assembly: Less.dll
Syntax
public class LessParserBaseVisitor<Result> : AbstractParseTreeVisitor<Result>, ILessParserVisitor<Result>, IParseTreeVisitor<Result>
Type Parameters
Name | Description |
---|---|
Result | The return type of the visit operation. |
Methods
| Improve this Doc View SourceVisitAttrib(LessParser.AttribContext)
Visit a parse tree produced by attrib().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAttrib(LessParser.AttribContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.AttribContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitAttribRelate(LessParser.AttribRelateContext)
Visit a parse tree produced by attribRelate().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitAttribRelate(LessParser.AttribRelateContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.AttribRelateContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitBlock(LessParser.BlockContext)
Visit a parse tree produced by block().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitBlock(LessParser.BlockContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.BlockContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCommandStatement(LessParser.CommandStatementContext)
Visit a parse tree produced by commandStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCommandStatement(LessParser.CommandStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.CommandStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitCondition(LessParser.ConditionContext)
Visit a parse tree produced by condition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitCondition(LessParser.ConditionContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ConditionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConditions(LessParser.ConditionsContext)
Visit a parse tree produced by conditions().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConditions(LessParser.ConditionsContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ConditionsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitConditionStatement(LessParser.ConditionStatementContext)
Visit a parse tree produced by conditionStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitConditionStatement(LessParser.ConditionStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ConditionStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitElement(LessParser.ElementContext)
Visit a parse tree produced by element().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitElement(LessParser.ElementContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ElementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitExpression(LessParser.ExpressionContext)
Visit a parse tree produced by expression().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitExpression(LessParser.ExpressionContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ExpressionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitFunction_(LessParser.Function_Context)
Visit a parse tree produced by function_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitFunction_(LessParser.Function_Context context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.Function_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifier(LessParser.IdentifierContext)
Visit a parse tree produced by identifier().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifier(LessParser.IdentifierContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.IdentifierContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifierPart(LessParser.IdentifierPartContext)
Visit a parse tree produced by identifierPart().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifierPart(LessParser.IdentifierPartContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.IdentifierPartContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitIdentifierVariableName(LessParser.IdentifierVariableNameContext)
Visit a parse tree produced by identifierVariableName().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitIdentifierVariableName(LessParser.IdentifierVariableNameContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.IdentifierVariableNameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitImportDeclaration(LessParser.ImportDeclarationContext)
Visit a parse tree produced by importDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitImportDeclaration(LessParser.ImportDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ImportDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitImportOption(LessParser.ImportOptionContext)
Visit a parse tree produced by importOption().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitImportOption(LessParser.ImportOptionContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ImportOptionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMathCharacter(LessParser.MathCharacterContext)
Visit a parse tree produced by mathCharacter().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMathCharacter(LessParser.MathCharacterContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MathCharacterContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMathStatement(LessParser.MathStatementContext)
Visit a parse tree produced by mathStatement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMathStatement(LessParser.MathStatementContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MathStatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMeasurement(LessParser.MeasurementContext)
Visit a parse tree produced by measurement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMeasurement(LessParser.MeasurementContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MeasurementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMediaTypes(LessParser.MediaTypesContext)
Visit a parse tree produced by mediaTypes().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMediaTypes(LessParser.MediaTypesContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MediaTypesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMixinDefinition(LessParser.MixinDefinitionContext)
Visit a parse tree produced by mixinDefinition().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMixinDefinition(LessParser.MixinDefinitionContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MixinDefinitionContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMixinDefinitionParam(LessParser.MixinDefinitionParamContext)
Visit a parse tree produced by mixinDefinitionParam().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMixinDefinitionParam(LessParser.MixinDefinitionParamContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MixinDefinitionParamContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMixinGuard(LessParser.MixinGuardContext)
Visit a parse tree produced by mixinGuard().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMixinGuard(LessParser.MixinGuardContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MixinGuardContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitMixinReference(LessParser.MixinReferenceContext)
Visit a parse tree produced by mixinReference().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitMixinReference(LessParser.MixinReferenceContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.MixinReferenceContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitNegation(LessParser.NegationContext)
Visit a parse tree produced by negation().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitNegation(LessParser.NegationContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.NegationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitProperty_(LessParser.Property_Context)
Visit a parse tree produced by property_().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitProperty_(LessParser.Property_Context context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.Property_Context | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitPseudo(LessParser.PseudoContext)
Visit a parse tree produced by pseudo().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitPseudo(LessParser.PseudoContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.PseudoContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitReferenceUrl(LessParser.ReferenceUrlContext)
Visit a parse tree produced by referenceUrl().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitReferenceUrl(LessParser.ReferenceUrlContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ReferenceUrlContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitRuleset(LessParser.RulesetContext)
Visit a parse tree produced by ruleset().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitRuleset(LessParser.RulesetContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.RulesetContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSelector(LessParser.SelectorContext)
Visit a parse tree produced by selector().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSelector(LessParser.SelectorContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.SelectorContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSelectorPrefix(LessParser.SelectorPrefixContext)
Visit a parse tree produced by selectorPrefix().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSelectorPrefix(LessParser.SelectorPrefixContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.SelectorPrefixContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitSelectors(LessParser.SelectorsContext)
Visit a parse tree produced by selectors().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitSelectors(LessParser.SelectorsContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.SelectorsContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStatement(LessParser.StatementContext)
Visit a parse tree produced by statement().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStatement(LessParser.StatementContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.StatementContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitStylesheet(LessParser.StylesheetContext)
Visit a parse tree produced by stylesheet().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitStylesheet(LessParser.StylesheetContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.StylesheetContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitUrl(LessParser.UrlContext)
Visit a parse tree produced by url().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitUrl(LessParser.UrlContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.UrlContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitValues(LessParser.ValuesContext)
Visit a parse tree produced by values().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitValues(LessParser.ValuesContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.ValuesContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariableDeclaration(LessParser.VariableDeclarationContext)
Visit a parse tree produced by variableDeclaration().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariableDeclaration(LessParser.VariableDeclarationContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.VariableDeclarationContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |
VisitVariableName(LessParser.VariableNameContext)
Visit a parse tree produced by variableName().
The default implementation returns the result of calling context
.
Declaration
public virtual Result VisitVariableName(LessParser.VariableNameContext context)
Parameters
Type | Name | Description |
---|---|---|
LessParser.VariableNameContext | context | The parse tree. |
Returns
Type | Description |
---|---|
Result |