Skip to main content

ActionScriptElementType

Enum ActionScriptElementType 

Source
pub enum ActionScriptElementType {
Show 176 variants Whitespace, Newline, Comment, Identifier, StringLiteral, CharLiteral, NumberLiteral, BooleanLiteral, NullLiteral, As, Break, Case, Catch, Class, Const, Continue, Default, Delete, Do, Else, Extends, False, Finally, For, Function, If, Implements, Import, In, Instanceof, Interface, Internal, Is, Native, New, Null, Package, Private, Protected, Public, Return, Static, Super, Switch, This, Throw, True, Try, Typeof, Use, Var, Void, While, With, Each, Get, Set, Namespace, Include, Dynamic, Final, Override, Array, Boolean, Date, Number, ObjectType, RegExp, StringType, Uint, Vector, VoidType, Xml, XmlList, Plus, Minus, Star, Slash, Percent, Equal, EqualEqual, EqualEqualEqual, NotEqual, NotEqualEqual, LessThan, LessEqual, GreaterThan, GreaterEqual, LogicalAnd, LogicalOr, LogicalNot, BitwiseAnd, BitwiseOr, BitwiseXor, BitwiseNot, LeftShift, RightShift, UnsignedRightShift, Increment, Decrement, PlusAssign, MinusAssign, StarAssign, SlashAssign, PercentAssign, LeftShiftAssign, RightShiftAssign, UnsignedRightShiftAssign, BitwiseAndAssign, BitwiseOrAssign, BitwiseXorAssign, Question, Colon, Dot, Arrow, LeftParen, RightParen, LeftBrace, RightBrace, LeftBracket, RightBracket, Semicolon, Comma, At, Hash, Dollar, Ampersand, Backslash, Quote, DoubleQuote, Backtick, Eof, Program, Block, Variable, FunctionCall, MethodCall, PropertyAccess, ArrayAccess, ParameterList, UseItem, ModuleItem, StructItem, EnumItem, FunctionType, Root, Statement, Expression, Assignment, ConditionalExpression, BinaryExpression, UnaryExpression, IfStatement, ForStatement, WhileStatement, DoWhileStatement, SwitchStatement, TryStatement, ThrowStatement, ReturnStatement, BreakStatement, ContinueStatement, Error, LiteralExpression, IdentifierExpression, ParenthesizedExpression, SourceFile, BlockExpression, LetStatement, IfExpression, WhileExpression, LoopExpression, ForExpression, CallExpression, IndexExpression, FieldExpression,
}
Expand description

Element types for ActionScript.

Variants§

§

Whitespace

Whitespace.

§

Newline

Newline.

§

Comment

Comment.

§

Identifier

Identifier.

§

StringLiteral

String literal.

§

CharLiteral

Character literal.

§

NumberLiteral

Number literal.

§

BooleanLiteral

Boolean literal.

§

NullLiteral

Null literal.

§

As

as keyword.

§

Break

break keyword.

§

Case

case keyword.

§

Catch

catch keyword.

§

Class

class keyword.

§

Const

const keyword.

§

Continue

continue keyword.

§

Default

default keyword.

§

Delete

delete keyword.

§

Do

do keyword.

§

Else

else keyword.

§

Extends

extends keyword.

§

False

false keyword.

§

Finally

finally keyword.

§

For

for keyword.

§

Function

function keyword.

§

If

if keyword.

§

Implements

implements keyword.

§

Import

import keyword.

§

In

in keyword.

§

Instanceof

instanceof keyword.

§

Interface

interface keyword.

§

Internal

internal keyword.

§

Is

is keyword.

§

Native

native keyword.

§

New

new keyword.

§

Null

null keyword.

§

Package

package keyword.

§

Private

private keyword.

§

Protected

protected keyword.

§

Public

public keyword.

§

Return

return keyword.

§

Static

static keyword.

§

Super

super keyword.

§

Switch

switch keyword.

§

This

this keyword.

§

Throw

throw keyword.

§

True

true keyword.

§

Try

try keyword.

§

Typeof

typeof keyword.

§

Use

use keyword.

§

Var

var keyword.

§

Void

void keyword.

§

While

while keyword.

§

With

with keyword.

§

Each

each keyword.

§

Get

get keyword.

§

Set

set keyword.

§

Namespace

namespace keyword.

§

Include

include keyword.

§

Dynamic

dynamic keyword.

§

Final

final keyword.

§

Override

override keyword.

§

Array

Array type.

§

Boolean

Boolean type.

§

Date

Date type.

§

Number

Number type.

§

ObjectType

Object type.

§

RegExp

RegExp type.

§

StringType

String type.

§

Uint

uint type.

§

Vector

Vector type.

§

VoidType

void type.

§

Xml

XML type.

§

XmlList

XMLList type.

§

Plus

+.

§

Minus

-.

§

Star

*.

§

Slash

/.

§

Percent

%.

§

Equal

=.

§

EqualEqual

==.

§

EqualEqualEqual

===.

§

NotEqual

!=.

§

NotEqualEqual

!==.

§

LessThan

<.

§

LessEqual

<=.

§

GreaterThan

>.

§

GreaterEqual

>=.

§

LogicalAnd

&&.

§

LogicalOr

||.

§

LogicalNot

!.

§

BitwiseAnd

&.

§

BitwiseOr

|.

§

BitwiseXor

^.

§

BitwiseNot

~.

§

LeftShift

<<.

§

RightShift

>>.

§

UnsignedRightShift

>>>.

§

Increment

++.

§

Decrement

--.

§

PlusAssign

+=.

§

MinusAssign

-=.

§

StarAssign

*=.

§

SlashAssign

/=.

§

PercentAssign

%=.

§

LeftShiftAssign

<<=.

§

RightShiftAssign

>>=.

§

UnsignedRightShiftAssign

>>>=.

§

BitwiseAndAssign

&=.

§

BitwiseOrAssign

|=.

§

BitwiseXorAssign

^=.

§

Question

?.

§

Colon

:.

§

Dot

..

§

Arrow

->.

§

LeftParen

(.

§

RightParen

).

§

LeftBrace

{.

§

RightBrace

}.

§

LeftBracket

[.

§

RightBracket

].

§

Semicolon

;.

§

Comma

,.

§

At

@.

§

Hash

#.

§

Dollar

$.

§

Ampersand

&.

§

Backslash

\.

§

Quote

'.

§

DoubleQuote

".

§

Backtick

`.

§

Eof

End of file.

§

Program

A program.

§

Block

A block.

§

Variable

A variable declaration.

§

FunctionCall

A function call.

§

MethodCall

A method call.

§

PropertyAccess

A property access.

§

ArrayAccess

An array access.

§

ParameterList

A parameter list.

§

UseItem

A use item.

§

ModuleItem

A module item.

§

StructItem

A struct item.

§

EnumItem

An enum item.

§

FunctionType

A function type.

§

Root

The root node.

§

Statement

A statement.

§

Expression

An expression.

§

Assignment

An assignment expression.

§

ConditionalExpression

A conditional expression.

§

BinaryExpression

A binary expression.

§

UnaryExpression

A unary expression.

§

IfStatement

An if statement.

§

ForStatement

A for statement.

§

WhileStatement

A while statement.

§

DoWhileStatement

A do-while statement.

§

SwitchStatement

A switch statement.

§

TryStatement

A try statement.

§

ThrowStatement

A throw statement.

§

ReturnStatement

A return statement.

§

BreakStatement

A break statement.

§

ContinueStatement

A continue statement.

§

Error

An error node.

§

LiteralExpression

A literal expression.

§

IdentifierExpression

An identifier expression.

§

ParenthesizedExpression

A parenthesized expression.

§

SourceFile

A source file.

§

BlockExpression

A block expression.

§

LetStatement

A let statement.

§

IfExpression

An if expression.

§

WhileExpression

A while expression.

§

LoopExpression

A loop expression.

§

ForExpression

A for expression.

§

CallExpression

A call expression.

§

IndexExpression

An index expression.

§

FieldExpression

A field expression.

Trait Implementations§

Source§

impl Clone for ActionScriptElementType

Source§

fn clone(&self) -> ActionScriptElementType

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ActionScriptElementType

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ActionScriptElementType

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl ElementType for ActionScriptElementType

Source§

type Role = UniversalElementRole

The associated role type for this element kind.
Source§

fn role(&self) -> Self::Role

Returns the general syntactic role of this element.
Source§

fn is_role(&self, role: Self::Role) -> bool

Returns true if this element matches the specified language-specific role.
Source§

fn is_universal(&self, role: UniversalElementRole) -> bool

Returns true if this element matches the specified universal role.
Source§

fn is_root(&self) -> bool

Returns true if this element represents the root of the parsed tree.
Source§

fn is_error(&self) -> bool

Returns true if this element represents an error condition.
Source§

impl From<ActionScriptTokenType> for ActionScriptElementType

Source§

fn from(token: ActionScriptTokenType) -> Self

Converts to this type from the input type.
Source§

impl Hash for ActionScriptElementType

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ActionScriptElementType

Source§

fn eq(&self, other: &ActionScriptElementType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ActionScriptElementType

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Copy for ActionScriptElementType

Source§

impl Eq for ActionScriptElementType

Source§

impl StructuralPartialEq for ActionScriptElementType

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,