JavaScriptDeclarationSyntaxGenerator Class

This is a JavaScript declaration syntax generator that is used to add a JavaScript Syntax section to each generated API topic.

Definition

Namespace: Sandcastle.Tools.SyntaxGenerators
Assembly: Sandcastle.Tools.SyntaxGenerators (in Sandcastle.Tools.SyntaxGenerators.dll) Version: 2024.12.21.0
public sealed class JavaScriptDeclarationSyntaxGenerator : SyntaxGeneratorTemplate
Inheritance
Object    SyntaxGeneratorCore    SyntaxGeneratorTemplate    JavaScriptDeclarationSyntaxGenerator

Remarks

This version differs from the ScriptSharpDeclarationSyntaxGenerator in that it looks for a <scriptSharp /> element in the <api> node and, if found, only then will it apply the casing rules to the member name. If not present, no casing rules are applied to the member names thus it is suitable for use with regular JavaScript such as that used in AjaxDoc projects.

In order to use this script generator with Script# content, the Sandcastle reflection data file must first be transformed using the Script# Reflection File Fixer plug-in so that the necessary changes are made to it.

Constructors

JavaScriptDeclarationSyntaxGeneratorInitializes a new instance of the JavaScriptDeclarationSyntaxGenerator class

Properties

Language This is used to get or set the language name
(Inherited from SyntaxGeneratorTemplate)
StyleId This is used to get or set the style ID
(Inherited from SyntaxGeneratorTemplate)

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
Initialize Initialize the syntax generator
(Inherited from SyntaxGeneratorTemplate)
ToStringReturns a string that represents the current object.
(Inherited from Object)
WriteAttachedEventSyntax Not used by this syntax generator
(Overrides SyntaxGeneratorTemplate.WriteAttachedEventSyntax(XPathNavigator, SyntaxWriter))
WriteAttachedPropertySyntax Write out attached property syntax
(Overrides SyntaxGeneratorTemplate.WriteAttachedPropertySyntax(XPathNavigator, SyntaxWriter))
WriteCastSyntax Cast syntax is unsupported
(Overrides SyntaxGeneratorTemplate.WriteCastSyntax(XPathNavigator, SyntaxWriter))
WriteClassSyntax Write out class syntax
(Overrides SyntaxGeneratorTemplate.WriteClassSyntax(XPathNavigator, SyntaxWriter))
WriteConstructorSyntax Write out constructor syntax
(Overrides SyntaxGeneratorTemplate.WriteConstructorSyntax(XPathNavigator, SyntaxWriter))
WriteDelegateSyntax Write out delegate syntax
(Overrides SyntaxGeneratorTemplate.WriteDelegateSyntax(XPathNavigator, SyntaxWriter))
WriteEnumerationSyntax Write out enumeration syntax
(Overrides SyntaxGeneratorTemplate.WriteEnumerationSyntax(XPathNavigator, SyntaxWriter))
WriteEventSyntax Write out event syntax
(Overrides SyntaxGeneratorTemplate.WriteEventSyntax(XPathNavigator, SyntaxWriter))
WriteFieldSyntax Write out field syntax
(Overrides SyntaxGeneratorTemplate.WriteFieldSyntax(XPathNavigator, SyntaxWriter))
WriteInterfaceSyntax Write out interface syntax
(Overrides SyntaxGeneratorTemplate.WriteInterfaceSyntax(XPathNavigator, SyntaxWriter))
WriteMemberSyntax Write member syntax
(Inherited from SyntaxGeneratorTemplate)
WriteMethodSyntax Write method syntax
(Inherited from SyntaxGeneratorTemplate)
WriteNamespaceSyntax Write out namespace syntax
(Overrides SyntaxGeneratorTemplate.WriteNamespaceSyntax(XPathNavigator, SyntaxWriter))
WriteNormalMethodSyntax Write out normal method syntax
(Overrides SyntaxGeneratorTemplate.WriteNormalMethodSyntax(XPathNavigator, SyntaxWriter))
WriteOperatorSyntax Operator syntax is unsupported
(Overrides SyntaxGeneratorTemplate.WriteOperatorSyntax(XPathNavigator, SyntaxWriter))
WritePropertySyntax Write out property syntax if supported
(Overrides SyntaxGeneratorTemplate.WritePropertySyntax(XPathNavigator, SyntaxWriter))
WriteStructureSyntax Structure syntax is unsupported
(Overrides SyntaxGeneratorTemplate.WriteStructureSyntax(XPathNavigator, SyntaxWriter))
WriteSyntax This is the main syntax writing method
(Inherited from SyntaxGeneratorTemplate)
WriteTypeSyntax Write type syntax
(Inherited from SyntaxGeneratorTemplate)

See Also