Uses of Class
mars.assembler.log.SourceLocation
Packages that use SourceLocation
-
Uses of SourceLocation in mars.assembler
Methods in mars.assembler with parameters of type SourceLocationModifier and TypeMethodDescriptionvoid
Assembler.logError
(SourceLocation location, String content) void
Assembler.logInfo
(SourceLocation location, String content) void
Assembler.logWarning
(SourceLocation location, String content) -
Uses of SourceLocation in mars.assembler.log
Methods in mars.assembler.log that return SourceLocationModifier and TypeMethodDescriptionLogMessage.getLocation()
Get the location in the source code this message refers to.SourceLocation.toColumnLocation
(int columnIndex) Generates a new location referencing a column in the line referenced by this location.SourceLocation.toLineLocation()
Generates a new location referencing the line as a whole rather than a particular column in the line.Methods in mars.assembler.log with parameters of type SourceLocationModifier and TypeMethodDescriptionint
SourceLocation.compareTo
(SourceLocation that) Compare two locations.static LogMessage
LogMessage.error
(SourceLocation location, String content) Create a newLogMessage
with levelLogLevel.ERROR
.static LogMessage
LogMessage.info
(SourceLocation location, String content) Create a newLogMessage
with levelLogLevel.INFO
.void
AssemblerLog.log
(LogLevel level, SourceLocation location, String content) void
AssemblerLog.logError
(SourceLocation location, String content) void
AssemblerLog.logInfo
(SourceLocation location, String content) void
AssemblerLog.logWarning
(SourceLocation location, String content) static LogMessage
LogMessage.warning
(SourceLocation location, String content) Create a newLogMessage
with levelLogLevel.WARNING
.Constructors in mars.assembler.log with parameters of type SourceLocationModifierConstructorDescriptionLogMessage
(LogLevel level, SourceLocation location, String content) Create a newLogMessage
.SourceLocation
(SourceLocation location) Create a clone of an existingSourceLocation
. -
Uses of SourceLocation in mars.assembler.syntax
Methods in mars.assembler.syntax that return SourceLocation -
Uses of SourceLocation in mars.assembler.token
Methods in mars.assembler.token that return SourceLocationModifier and TypeMethodDescriptionMacro.getLocation()
Get the location of the.macro
directive which started this macro's definition.SourceLine.getLocation()
Get the location of this line in the source code.Token.getLocation()
Get the location of this token in the source code.Methods in mars.assembler.token with parameters of type SourceLocationModifier and TypeMethodDescriptionstatic int
Tokenizer.handleCharEscape
(StringBuilder value, SourceLocation lineLocation, int columnIndex, String line, AssemblerLog log) Handle an escape for a character or string literal.void
SourceLine.setLocation
(SourceLocation location) Constructors in mars.assembler.token with parameters of type SourceLocationModifierConstructorDescriptionMacro
(SourceLocation location, String name, List<Token> parameters) Create a new macro with the given signature.SourceLine
(SourceLocation location, String content, List<Token> tokens) Create a newSourceLine
with the given information.SourceLine
(SourceLocation location, String content, List<Token> tokens, SourceLine originalLine) Create a new macro expansionSourceLine
with the given information.Token
(SourceLocation location, String literal, TokenType type, Object value) Create a newToken
with the given information.